[03:07:11]OFD Sender: No OFD packet to send [03:07:16]OFD Sender: No OFD packet to send [03:07:21]OFD Sender: No OFD packet to send [03:07:26]OFD Sender: No OFD packet to send [03:07:31]OFD Sender: No OFD packet to send [03:07:36]OFD Sender: No OFD packet to send [03:07:41]OFD Sender: No OFD packet to send [03:07:46]OFD Sender: No OFD packet to send [03:07:51]OFD Sender: No OFD packet to send [03:07:56]OFD Sender: No OFD packet to send [03:08:01]OFD Sender: No OFD packet to send [03:08:06]OFD Sender: No OFD packet to send [03:08:11]OFD Sender: No OFD packet to send [03:08:16]OFD Sender: No OFD packet to send [03:08:21]OFD Sender: No OFD packet to send [03:08:26]OFD Sender: No OFD packet to send [03:08:31]OFD Sender: No OFD packet to send [03:08:36]OFD Sender: No OFD packet to send [03:08:41]OFD Sender: No OFD packet to send [03:08:46]OFD Sender: No OFD packet to send [03:08:51]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:48]OFD Sender: No OFD packet to send [03:12:53]OFD Sender: No OFD packet to send [03:12:58]OFD Sender: No OFD packet to send [03:13:03]OFD Sender: No OFD packet to send [03:13:08]OFD Sender: No OFD packet to send [03:13:13]OFD Sender: No OFD packet to send [03:13:18]OFD Sender: No OFD packet to send [03:13:23]OFD Sender: No OFD packet to send [03:13:28]OFD Sender: No OFD packet to send [03:13:33]OFD Sender: No OFD packet to send [03:13:38]OFD Sender: No OFD packet to send [03:13:43]OFD Sender: No OFD packet to send [03:13:48]OFD Sender: No OFD packet to send [03:13:53]OFD Sender: No OFD packet to send [03:13:58]OFD Sender: No OFD packet to send [03:14:03]OFD Sender: No OFD packet to send [03:14:08]OFD Sender: No OFD packet to send [03:14:13]OFD Sender: No OFD packet to send [03:14:18]OFD Sender: No OFD packet to send [03:14:23]OFD Sender: No OFD packet to send [03:14:28]OFD Sender: No OFD packet to send [03:14:33]OFD Sender: No OFD packet to send [03:14:38]OFD Sender: No OFD packet to send [03:14:43]OFD Sender: No OFD packet to send [03:14:48]OFD Sender: No OFD packet to send [03:14:53]OFD Sender: No OFD packet to send [03:14:58]OFD Sender: No OFD packet to send [03:15:03]OFD Sender: No OFD packet to send [03:15:08]OFD Sender: No OFD packet to send [03:15:13]OFD Sender: No OFD packet to send [03:15:18]OFD Sender: No OFD packet to send [03:15:23]OFD Sender: No OFD packet to send [03:15:28]OFD Sender: No OFD packet to send [03:15:33]OFD Sender: No OFD packet to send [03:15:38]OFD Sender: No OFD packet to send [03:15:43]OFD Sender: No OFD packet to send [03:15:48]OFD Sender: No OFD packet to send [03:15:53]OFD Sender: No OFD packet to send [03:15:58]OFD Sender: No OFD packet to send [03:16:03]OFD Sender: No OFD packet to send [03:16:08]OFD Sender: No OFD packet to send [03:16:13]OFD Sender: No OFD packet to send [03:16:18]OFD Sender: No OFD packet to send [03:16:23]OFD Sender: No OFD packet to send [03:16:28]OFD Sender: No OFD packet to send [03:16:34]OFD Sender: No OFD packet to send [03:16:39]OFD Sender: No OFD packet to send [03:16:44]OFD Sender: No OFD packet to send [03:16:49]OFD Sender: No OFD packet to send [03:16:54]OFD Sender: No OFD packet to send [03:16:59]OFD Sender: No OFD packet to send [03:17:04]OFD Sender: No OFD packet to send [03:17:09]OFD Sender: No OFD packet to send [03:17:14]OFD Sender: No OFD packet to send [03:17:19]OFD Sender: No OFD packet to send [03:17:24]OFD Sender: No OFD packet to send [03:17:29]OFD Sender: No OFD packet to send [03:17:34]OFD Sender: No OFD packet to send [03:17:39]OFD Sender: No OFD packet to send [03:17:44]OFD Sender: No OFD packet to send [03:17:49]OFD Sender: No OFD packet to send [03:17:54]OFD Sender: No OFD packet to send [03:17:59]OFD Sender: No OFD packet to send [03:18:04]OFD Sender: No OFD packet to send [03:18:09]OFD Sender: No OFD packet to send [03:18:14]OFD Sender: No OFD packet to send [03:18:19]OFD Sender: No OFD packet to send [03:18:24]OFD Sender: No OFD packet to send [03:18:29]OFD Sender: No OFD packet to send [03:18:34]OFD Sender: No OFD packet to send [03:18:39]OFD Sender: No OFD packet to send [03:18:44]OFD Sender: No OFD packet to send [03:18:49]OFD Sender: No OFD packet to send [03:18:54]OFD Sender: No OFD packet to send [03:18:59]OFD Sender: No OFD packet to send [03:19:04]OFD Sender: No OFD packet to send [03:19:09]OFD Sender: No OFD packet to send [03:19:14]OFD Sender: No OFD packet to send [03:19:19]OFD Sender: No OFD packet to send [03:19:24]OFD Sender: No OFD packet to send [03:19:29]OFD Sender: No OFD packet to send [03:19:34]OFD Sender: No OFD packet to send [03:19:39]OFD Sender: No OFD packet to send [03:19:44]OFD Sender: No OFD packet to send [03:19:49]OFD Sender: No OFD packet to send [03:19:54]OFD Sender: No OFD packet to send [03:19:59]OFD Sender: No OFD packet to send [03:20:04]OFD Sender: No OFD packet to send [03:20:09]OFD Sender: No OFD packet to send [03:20:14]OFD Sender: No OFD packet to send [03:20:19]OFD Sender: No OFD packet to send [03:20:25]OFD Sender: No OFD packet to send [03:20:30]OFD Sender: No OFD packet to send [03:20:35]OFD Sender: No OFD packet to send [03:20:40]OFD Sender: No OFD packet to send [03:20:45]OFD Sender: No OFD packet to send [03:20:50]OFD Sender: No OFD packet to send [03:20:55]OFD Sender: No OFD packet to send [03:21:00]OFD Sender: No OFD packet to send [03:21:05]OFD Sender: No OFD packet to send [03:21:10]OFD Sender: No OFD packet to send [03:21:15]OFD Sender: No OFD packet to send [03:21:20]OFD Sender: No OFD packet to send [03:21:25]OFD Sender: No OFD packet to send [03:21:30]OFD Sender: No OFD packet to send [03:21:35]OFD Sender: No OFD packet to send [03:21:40]OFD Sender: No OFD packet to send [03:21:45]OFD Sender: No OFD packet to send [03:21:50]OFD Sender: No OFD packet to send [03:21:55]OFD Sender: No OFD packet to send [03:22:00]OFD Sender: No OFD packet to send [03:22:05]OFD Sender: No OFD packet to send [03:22:10]OFD Sender: No OFD packet to send [03:22:15]OFD Sender: No OFD packet to send [03:22:20]OFD Sender: No OFD packet to send [03:22:25]OFD Sender: No OFD packet to send [03:22:30]OFD Sender: No OFD packet to send [03:22:35]OFD Sender: No OFD packet to send [03:22:40]OFD Sender: No OFD packet to send [03:22:45]OFD Sender: No OFD packet to send [03:22:50]OFD Sender: No OFD packet to send [03:22:55]OFD Sender: No OFD packet to send [03:23:00]OFD Sender: No OFD packet to send [03:23:05]OFD Sender: No OFD packet to send [03:23:10]OFD Sender: No OFD packet to send [03:23:15]OFD Sender: No OFD packet to send [03:23:20]OFD Sender: No OFD packet to send [03:23:25]OFD Sender: No OFD packet to send [03:23:30]OFD Sender: No OFD packet to send [03:23:35]OFD Sender: No OFD packet to send [03:23:40]OFD Sender: No OFD packet to send [03:23:45]OFD Sender: No OFD packet to send [03:23:50]OFD Sender: No OFD packet to send [03:23:52]accept exits with 8 [03:23:52]New connection [03:23:52]New thread 3067157860 created [03:23:52]Thread 3067014500 joined [03:23:52]Waiting for new connection... [03:23:52] Sock 8.Parse request [03:23:52]Sock 8.Check first char [03:23:52]Sock 8.First char is OK [03:23:52]request: POST /json_proto HTTP/1.0 [03:23:52]Method: POST [03:23:52]URL: /json_proto [03:23:52]Method is POST - this is cgi request [03:23:52]url: /json_proto [03:23:52]query_string will be loaded in cgi processing [03:23:52]execute_cgi json_proto POST (null) [03:23:52]execute_cgi path=json_proto method=POST [03:23:52]POST find Content-Length [03:23:52]Host: 172.17.42.131:8080 [03:23:52]Content-Length: 682 [03:23:52]Content-Type: application/json [03:23:52] [03:23:52]POST finish read [03:23:52]Found Content-Length = 682 [03:23:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209609", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 26.910, "sum" : 1996.72, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 1996.00, "payments": [ { "type": 0, "sum" : 1996.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:23:52]execute_script... [03:23:52]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209609", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 26.910, "sum" : 1996.72, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 1996.00, "payments": [ { "type": 0, "sum" : 1996.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:23:52]POST & json_proto [03:23:52]process_json_proto [03:23:52]json parsed OK: [03:23:52]protocol is kg_v1.0 [03:23:52]action value=close_receipt [03:23:52]process_action close_receipt [03:23:52]cmd_close_receipt [03:23:52]MH_GetDate [03:23:52]Write to MH i2c: F0 00 00 B6 24 C9 [03:23:52]Write i2c OK [03:23:52]MH_I2C_Read... [03:23:52]Read from MH i2c: F0 [03:23:52]MH_I2C_Read... [03:23:52]Read from MH i2c: F0 09 00 [03:23:52]MH_I2C_Read... [03:23:52]Read from MH i2c: F0 09 00 B6 24 00 4A C9 15 67 A0 18 CA 66 49 [03:23:52]GetLastDocTimeStamp 1729478965 [03:23:52]current date 1729481034 [03:23:52]FM_GetShiftState [03:23:52]SAM_PROTO_GetShiftState [03:23:52]wFMCommunicate request_size=4 [03:23:52]MH_SAM_APDU [03:23:52]CAPDU: 80 13 01 00 [03:23:52]Write to MH i2c: E2 08 00 B7 24 80 13 01 00 00 00 00 00 58 [03:23:52]Write i2c OK [03:23:52]MH_I2C_Read... [03:23:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:23:52]Read from MH i2c: E2 [03:23:52]MH_I2C_Read... [03:23:52]Read from MH i2c: E2 0E 00 [03:23:52]MH_I2C_Read... [03:23:52]Read from MH i2c: E2 0E 00 B7 24 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 B7 [03:23:52]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [03:23:52]wFMCommunicate OK [03:23:52]SAM_PROTO_GetShiftState done [03:23:52]FM_GetShiftState done [03:23:52]opened in 1729469754 [03:23:52]opened+sec_in_day 1729556154 [03:23:52]quantity*price = 199672 [03:23:52]sum+1 = 199673 [03:23:52]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.72 ИТОГО: 1996.00 Внесено: 2000.00 СДАЧА: 4.00 НСП 1% : 17.67 НДС 12% : 212.04 Наличными: 1996.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 22 21.10.2024 03:23 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 187558 ФПД: 179182661591346 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T032354&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187558&fm=179182661591346&tin=02508201610067®Number=0000000000100030&sum=199600 [03:23:53]StoreToDocumentArchive [03:23:53]shift 460 fd 187558 [03:23:53]save to /storage/0460/doc_00187558 [03:23:53]save last doc name /storage/0460/doc_00187558 to /storage/kkm_last_doc_name [03:23:53]save OK [03:23:53]Clear old archive folders... [03:23:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [03:23:53]tlvbuf is 01084050 [03:23:53]SAM_PROTO_ClearQueue [03:23:53]wFMCommunicate request_size=4 [03:23:53]MH_SAM_APDU [03:23:53]CAPDU: 80 09 00 00 [03:23:53]Write to MH i2c: E2 08 00 C4 24 80 09 00 00 00 00 00 00 5A [03:23:53]Write i2c OK [03:23:53]MH_I2C_Read... [03:23:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [03:23:53]Read from MH i2c: E2 [03:23:53]MH_I2C_Read... [03:23:53]Read from MH i2c: E2 03 00 [03:23:53]MH_I2C_Read... [03:23:53]Read from MH i2c: E2 03 00 C4 24 00 90 00 5C [03:23:53]RAPDU: 90 00 [03:23:53]wFMCommunicate OK [03:23:53]SAM_PROTO_ClearQueue done [03:23:53]KKMCreateOFDPacket [03:23:53]OFDProtocolAddRootSTLVToBuf [03:23:53]FM_MakeSignedData [03:23:53]FM_MakeSignedData [03:23:53]SAM_PROTO_SignData [03:23:53]wFMCommunicate request_size=4 [03:23:53]MH_SAM_APDU [03:23:53]CAPDU: 80 0D 01 02 [03:23:53]Write to MH i2c: E2 08 00 C5 24 80 0D 01 02 00 00 00 00 62 [03:23:53]Write i2c OK [03:23:53]MH_I2C_Read... [03:23:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [03:23:53]Read from MH i2c: E2 [03:23:53]MH_I2C_Read... [03:23:53]Read from MH i2c: E2 03 00 [03:23:53]MH_I2C_Read... [03:23:53]Read from MH i2c: E2 03 00 C5 24 00 90 00 5D [03:23:53]RAPDU: 90 00 [03:23:53]wFMCommunicate OK [03:23:53]wFMCommunicate request_size=255 [03:23:53]MH_SAM_APDU [03:23:53]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 1E 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 F8 0B 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 0B 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E7 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D4 52 00 00 00 00 07 04 06 00 B0 0B 03 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 4A C9 15 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 A6 DC 02 00 35 04 06 00 A2 [03:23:53]Write to MH i2c: E2 02 01 C6 24 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 1E 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 F8 0B 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 0B 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E7 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D4 52 00 00 00 00 07 04 06 00 B0 0B 03 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 4A C9 15 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 A6 DC 02 00 35 04 06 00 A2 00 00 20 [03:23:53]Write i2c OK [03:23:53]MH_I2C_Read... [03:23:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:23:54]Read from MH i2c: E2 [03:23:54]MH_I2C_Read... [03:23:54]Read from MH i2c: E2 03 00 [03:23:54]MH_I2C_Read... [03:23:54]Read from MH i2c: E2 03 00 C6 24 00 90 00 5E [03:23:54]RAPDU: 90 00 [03:23:54]wFMCommunicate OK [03:23:54]wFMCommunicate request_size=10 [03:23:54]MH_SAM_APDU [03:23:54]CAPDU: 80 0D 02 02 05 F7 36 E4 E1 32 [03:23:54]Write to MH i2c: E2 0D 00 C7 24 80 0D 02 02 05 00 F7 36 E4 E1 32 00 00 93 [03:23:54]Write i2c OK [03:23:54]MH_I2C_Read... [03:23:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:23:54]Read from MH i2c: E2 [03:23:54]MH_I2C_Read... [03:23:54]Read from MH i2c: E2 03 00 [03:23:54]MH_I2C_Read... [03:23:54]Read from MH i2c: E2 03 00 C7 24 00 90 00 5F [03:23:54]RAPDU: 90 00 [03:23:54]wFMCommunicate OK [03:23:54]wFMCommunicate request_size=4 [03:23:54]MH_SAM_APDU [03:23:54]CAPDU: 80 0D 03 02 [03:23:54]Write to MH i2c: E2 08 00 C8 24 80 0D 03 02 00 00 00 00 67 [03:23:54]Write i2c OK [03:23:54]MH_I2C_Read... [03:23:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [03:23:54]Read from MH i2c: E2 [03:23:54]MH_I2C_Read... [03:23:54]Read from MH i2c: E2 0B 00 [03:23:54]MH_I2C_Read... [03:23:54]Read from MH i2c: E2 0B 00 C8 24 00 2D D1 5B CC A2 48 61 5A 90 00 32 [03:23:54]RAPDU: 2D D1 5B CC A2 48 61 5A 90 00 [03:23:54]wFMCommunicate OK [03:23:54]SAM_PROTO_SignData done [03:23:54]FM_MakeSignedData done [03:23:54]CreateOFDProtocolMessage [03:23:54]wFMCommunicate request_size=4 [03:23:54]MH_SAM_APDU [03:23:54]CAPDU: 80 11 00 00 [03:23:54]Write to MH i2c: E2 08 00 C9 24 80 11 00 00 00 00 00 00 67 [03:23:54]Write i2c OK [03:23:54]MH_I2C_Read... [03:23:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:23:54]Read from MH i2c: E2 [03:23:54]MH_I2C_Read... [03:23:54]Read from MH i2c: E2 17 00 [03:23:54]MH_I2C_Read... [03:23:54]Read from MH i2c: E2 17 00 C9 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 B5 [03:23:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [03:23:54]wFMCommunicate OK [03:23:54]CreateOFDProtocolMessage done [03:23:54]OFDSenderStorePacket 187558 [03:23:54]StoreOFDPacket docnum=187558 [03:23:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 11 9B 07 01 B7 B9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 1E 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 F8 0B 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 0B 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E7 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D4 52 00 00 00 00 07 04 06 00 B0 0B 03 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 4A C9 15 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 A6 DC 02 00 35 04 06 00 A2 F7 36 E4 E1 32 2D D1 5B CC A2 48 61 5A [03:23:54]CheckFolder [03:23:54]dirname=/storage/ofd_packets [03:23:54]CheckFolder done [03:23:54]ProducePacketName [03:23:54]name=ofd_packets/00187558 [03:23:54]NVStorageSaveData ofd_packets/00187558 [03:23:54]File name is /storage/ofd_packets/00187558 [03:23:54]Write 301 bytes [03:23:54]NVStorageSaveData done [03:23:54]OFDSenderStorePacket done [03:23:54]KKMCreateOFDPacket done [03:23:54]NVStorageSaveData kkm_last_timestamp [03:23:54]File name is /storage/kkm_last_timestamp [03:23:54]Write 4 bytes [03:23:54]NVStorageSaveData done [03:23:54]ExternCall_PrintAddStr [03:23:54]wPrintStart [03:23:54]Write to MH i2c: 01 00 00 CA 24 EE [03:23:54]Write i2c OK [03:23:54]MH_I2C_Read... [03:23:54]Read from MH i2c: 01 [03:23:54]MH_I2C_Read... [03:23:54]Read from MH i2c: 01 07 00 [03:23:54]MH_I2C_Read... [03:23:54]Read from MH i2c: 01 07 00 CA 24 00 00 00 00 00 FF 0F 03 [03:23:54]RasterBufferAndPrint [03:23:54]line Счет N : (1)209609 [03:23:54]line ИНН: 02508201610067 [03:23:54]line Контрольно-Кассовый Чек [03:23:54]line ПРОДАЖА [03:23:54]line ТРК (МРК, ГНК) : 33 [03:23:54]line Товар: 2710124500 [03:23:54]line Аи-95-К-3 [03:23:54]line 26.910 * 74.20 [03:23:54]line = 1996.72 [03:23:54]line НДС 12% НСП 1% [03:23:54]line > о реализуемом товаре [03:23:54]line ОКРУГЛЕНИЕ: -0.72 [03:23:54]line ИТОГО: 1996.00 [03:23:54]line Внесено: 2000.00 [03:23:54]line СДАЧА: 4.00 [03:23:54]line НСП 1% : 17.67 [03:23:54]line НДС 12% : 212.04 [03:23:54]line Наличными: 1996.00 [03:23:54]line Безнал.: 0.00 [03:23:54]line Место: АЗС № 86 "Партнер Нефть" [03:23:54]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [03:23:54]line СНО: Общий режим [03:23:54]line Чек 22 21.10.2024 03:23 [03:23:54]line Смена: 460 ФФД: 1.0 [03:23:54]line ЗНМ: 0300000155 [03:23:54]line РНМ: 0000000000100030 [03:23:54]line Версия ККМ: 001 [03:23:54]line ФМ: 0000000000965340 [03:23:54]line ФД: 187558 [03:23:54]line ФПД: 179182661591346 [03:23:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T032354&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187558&fm=179182661591346&tin=02508201610067®Number=0000000000100030&sum=199600 [03:23:54]written 0, free lines is 4095 [03:23:54]OFD Sender: Processing packet 187558 [packets to send 1062, broken 1061] [03:23:54]ProducePacketName [03:23:54]name=ofd_packets/00187558 [03:23:54]OFD Sender: To server: pG, [03:23:54]CommunicateWithHost lk.salyk.kg:30040 [03:23:54]ConnectInit lk.salyk.kg [03:23:54]Connected sock=10 [03:23:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 11 9B 07 01 B7 B9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 1E 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 F8 0B 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 0B 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E7 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D4 52 00 00 00 00 07 04 06 00 B0 0B 03 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 4A C9 15 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 A6 DC 02 00 35 04 06 00 A2 F7 36 E4 E1 32 2D D1 5B CC A2 48 61 5A [03:23:54]Write to MH i2c: 01 00 00 F5 24 19 [03:23:54]Write i2c OK [03:23:54]MH_I2C_Read... [03:23:54]Read from MH i2c: 01 [03:23:54]MH_I2C_Read... [03:23:54]Read from MH i2c: 01 07 00 [03:23:54]MH_I2C_Read... [03:23:54]Read from MH i2c: 01 07 00 F5 24 00 00 00 00 00 56 0C 82 [03:23:54]RasterBufferAndPrint [03:23:54]line [03:23:54]line [03:23:54]line [03:23:54]line [03:23:54]line [03:23:54]written 0, free lines is 3161 [03:23:54]MH_Cut [03:23:54]Write to MH i2c: D1 01 00 FC 24 01 F2 [03:23:54]Write i2c OK [03:23:54]MH_I2C_Read... [03:23:54]Read from MH i2c: D1 [03:23:54]MH_I2C_Read... [03:23:54]Read from MH i2c: D1 01 00 [03:23:54]MH_I2C_Read... [03:23:54]Read from MH i2c: D1 01 00 FC 24 00 F1 [03:23:54]Write to MH i2c: 01 00 00 FD 24 21 [03:23:54]Write i2c OK [03:23:54]MH_I2C_Read... [03:23:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 BA DB 47 00 F1 4A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 A6 DC 02 00 F4 03 04 00 3B 73 15 67 B6 04 01 00 00 A6 50 F1 4C 3A 46 A5 8E [03:23:55]CommunicateWithHost err = 0 [03:23:55]CheckOFDResponse [03:23:55]1017 (14) - 77093643461234 [03:23:55]1041 (16) - 0000000000965340 [03:23:55]1040 (4) - 187558 [03:23:55]1012 (4) - 20.10.2024 21:16 [03:23:55]1206 (1) - 0 [03:23:55]OFD Sender: Remove packet 187558 [03:23:55]ProducePacketName [03:23:55]name=ofd_packets/00187558 [03:23:55]NVStorageDeleteData [03:23:55]OFD Sender: No OFD packet to send [03:23:56]*** Cut start [03:23:56]*** Partial cut [03:23:56]*** CUTSNS_PIN = 1 [03:23:56]*** CUTSNS_PIN = 0 [03:23:56]*** Brake cut motor [03:23:56]Read from MH i2c: 01 [03:23:56]MH_I2C_Read... [03:23:56]*** Stop cut motor [03:23:56]*** Cut end [03:23:56]Read from MH i2c: 01 07 00 [03:23:56]MH_I2C_Read... [03:23:56]Read from MH i2c: 01 07 00 FD 24 00 00 00 00 00 FF 0F 36 [03:23:56]process_action close_receipt done [03:23:56]requested_data is exist [03:23:56]produce_requested_data [03:23:56]requested_item fm.sn is exist - process it [03:23:56]wFMCommunicate request_size=4 [03:23:56]MH_SAM_APDU [03:23:56]CAPDU: 80 11 00 00 [03:23:56]Write to MH i2c: E2 08 00 FE 24 80 11 00 00 00 00 00 00 9C [03:23:56]Write i2c OK [03:23:56]MH_I2C_Read... [03:23:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:23:56]Read from MH i2c: E2 [03:23:56]MH_I2C_Read... [03:23:56]Read from MH i2c: E2 17 00 [03:23:56]MH_I2C_Read... [03:23:56]Read from MH i2c: E2 17 00 FE 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 EA [03:23:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [03:23:56]wFMCommunicate OK [03:23:56]requested_item fd.num is exist - process it [03:23:56]SAM_PROTO_GetFieldsCounters [03:23:56]wFMCommunicate request_size=4 [03:23:56]MH_SAM_APDU [03:23:56]CAPDU: 80 13 00 00 [03:23:56]Write to MH i2c: E2 08 00 FF 24 80 13 00 00 00 00 00 00 9F [03:23:56]Write i2c OK [03:23:56]MH_I2C_Read... [03:23:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [03:23:57]Read from MH i2c: E2 [03:23:57]MH_I2C_Read... [03:23:57]Read from MH i2c: E2 62 00 [03:23:57]MH_I2C_Read... [03:23:57]Read from MH i2c: E2 62 00 FF 24 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 A6 DC 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 16 00 00 00 5E 04 04 00 16 00 00 00 57 04 04 00 17 00 00 00 19 04 04 00 00 00 00 00 90 00 39 [03:23:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 A6 DC 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 16 00 00 00 5E 04 04 00 16 00 00 00 57 04 04 00 17 00 00 00 19 04 04 00 00 00 00 00 90 00 [03:23:57]wFMCommunicate OK [03:23:57]SAM_PROTO_GetFieldsCounters done [03:23:57]requested_item shift.num is exist - process it [03:23:57]requested_item shift.opened is exist - process it [03:23:57]req_shift_opened [03:23:57]FM_GetShiftState [03:23:57]SAM_PROTO_GetShiftState [03:23:57]wFMCommunicate request_size=4 [03:23:57]MH_SAM_APDU [03:23:57]CAPDU: 80 13 01 00 [03:23:57]Write to MH i2c: E2 08 00 00 25 80 13 01 00 00 00 00 00 A2 [03:23:57]Write i2c OK [03:23:57]MH_I2C_Read... [03:23:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:23:57]Read from MH i2c: E2 [03:23:57]MH_I2C_Read... [03:23:57]Read from MH i2c: E2 0E 00 [03:23:57]MH_I2C_Read... [03:23:57]Read from MH i2c: E2 0E 00 00 25 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 01 [03:23:57]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [03:23:57]wFMCommunicate OK [03:23:57]SAM_PROTO_GetShiftState done [03:23:57]FM_GetShiftState done [03:23:57]req_shift_opened done [03:23:57]requested_item shift.open_date is exist - process it [03:23:57]req_shift_open_date [03:23:57]req_shift_open_date done [03:23:57]produce_requested_data done [03:23:57]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187558,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [03:23:57]process_action_free close_receipt [03:23:57]json_value_free [03:23:57]json_value_free done [03:23:57]process_json_proto returns [03:23:57]Send response to host [03:23:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187558,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [03:23:57]free response buf [03:23:57]execute_script done [03:23:57]execute_script returns [03:23:57]free content buf [03:23:57]Sock 8.Close socket [03:23:57]Sock 8.Thread stoped [03:24:00]OFD Sender: No OFD packet to send [03:24:05]OFD Sender: No OFD packet to send [03:24:10]OFD Sender: No OFD packet to send [03:24:15]OFD Sender: No OFD packet to send [03:24:20]OFD Sender: No OFD packet to send [03:24:25]OFD Sender: No OFD packet to send [03:24:30]OFD Sender: No OFD packet to send [03:24:35]OFD Sender: No OFD packet to send [03:24:40]OFD Sender: No OFD packet to send [03:24:45]OFD Sender: No OFD packet to send [03:24:50]OFD Sender: No OFD packet to send [03:24:55]OFD Sender: No OFD packet to send [03:25:00]OFD Sender: No OFD packet to send [03:25:05]OFD Sender: No OFD packet to send [03:25:10]OFD Sender: No OFD packet to send [03:25:15]OFD Sender: No OFD packet to send [03:25:20]OFD Sender: No OFD packet to send [03:25:26]OFD Sender: No OFD packet to send [03:25:31]OFD Sender: No OFD packet to send [03:25:36]OFD Sender: No OFD packet to send [03:25:41]OFD Sender: No OFD packet to send [03:25:46]OFD Sender: No OFD packet to send [03:25:51]OFD Sender: No OFD packet to send [03:25:56]OFD Sender: No OFD packet to send [03:26:01]OFD Sender: No OFD packet to send [03:26:06]OFD Sender: No OFD packet to send [03:26:11]OFD Sender: No OFD packet to send [03:26:16]OFD Sender: No OFD packet to send [03:26:21]OFD Sender: No OFD packet to send [03:26:26]OFD Sender: No OFD packet to send [03:26:31]OFD Sender: No OFD packet to send [03:26:36]OFD Sender: No OFD packet to send [03:26:41]OFD Sender: No OFD packet to send [03:26:46]OFD Sender: No OFD packet to send [03:26:51]OFD Sender: No OFD packet to send [03:26:56]OFD Sender: No OFD packet to send [03:27:01]OFD Sender: No OFD packet to send [03:27:06]OFD Sender: No OFD packet to send [03:27:11]OFD Sender: No OFD packet to send [03:27:16]OFD Sender: No OFD packet to send [03:27:21]OFD Sender: No OFD packet to send [03:27:26]OFD Sender: No OFD packet to send [03:27:31]OFD Sender: No OFD packet to send [03:27:36]OFD Sender: No OFD packet to send [03:27:41]OFD Sender: No OFD packet to send [03:27:46]OFD Sender: No OFD packet to send [03:27:51]OFD Sender: No OFD packet to send [03:27:56]OFD Sender: No OFD packet to send [03:28:01]OFD Sender: No OFD packet to send [03:28:06]OFD Sender: No OFD packet to send [03:28:11]OFD Sender: No OFD packet to send [03:28:16]OFD Sender: No OFD packet to send [03:28:21]OFD Sender: No OFD packet to send [03:28:26]OFD Sender: No OFD packet to send [03:28:31]OFD Sender: No OFD packet to send [03:28:36]OFD Sender: No OFD packet to send [03:28:41]OFD Sender: No OFD packet to send [03:28:46]OFD Sender: No OFD packet to send [03:28:51]OFD Sender: No OFD packet to send [03:28:56]OFD Sender: No OFD packet to send [03:29:01]OFD Sender: No OFD packet to send [03:29:06]OFD Sender: No OFD packet to send [03:29:11]OFD Sender: No OFD packet to send [03:29:17]OFD Sender: No OFD packet to send [03:29:22]OFD Sender: No OFD packet to send [03:29:27]OFD Sender: No OFD packet to send [03:29:32]OFD Sender: No OFD packet to send [03:29:37]OFD Sender: No OFD packet to send [03:29:42]OFD Sender: No OFD packet to send [03:29:47]OFD Sender: No OFD packet to send [03:29:52]OFD Sender: No OFD packet to send [03:29:57]OFD Sender: No OFD packet to send [03:30:02]OFD Sender: No OFD packet to send [03:30:07]OFD Sender: No OFD packet to send [03:30:12]OFD Sender: No OFD packet to send [03:30:17]OFD Sender: No OFD packet to send [03:30:22]OFD Sender: No OFD packet to send [03:30:27]OFD Sender: No OFD packet to send [03:30:32]OFD Sender: No OFD packet to send [03:30:37]OFD Sender: No OFD packet to send [03:30:42]OFD Sender: No OFD packet to send [03:30:47]OFD Sender: No OFD packet to send [03:30:52]OFD Sender: No OFD packet to send [03:30:57]OFD Sender: No OFD packet to send [03:31:02]OFD Sender: No OFD packet to send [03:31:07]OFD Sender: No OFD packet to send [03:31:12]OFD Sender: No OFD packet to send [03:31:17]OFD Sender: No OFD packet to send [03:31:22]OFD Sender: No OFD packet to send [03:31:27]OFD Sender: No OFD packet to send [03:31:32]OFD Sender: No OFD packet to send [03:31:37]OFD Sender: No OFD packet to send [03:31:42]OFD Sender: No OFD packet to send [03:31:47]OFD Sender: No OFD packet to send [03:31:52]OFD Sender: No OFD packet to send [03:31:57]OFD Sender: No OFD packet to send [03:32:02]OFD Sender: No OFD packet to send [03:32:07]OFD Sender: No OFD packet to send [03:32:12]OFD Sender: No OFD packet to send [03:32:17]OFD Sender: No OFD packet to send [03:32:22]OFD Sender: No OFD packet to send [03:32:27]OFD Sender: No OFD packet to send [03:32:32]OFD Sender: No OFD packet to send [03:32:37]OFD Sender: No OFD packet to send [03:32:42]OFD Sender: No OFD packet to send [03:32:47]OFD Sender: No OFD packet to send [03:32:52]OFD Sender: No OFD packet to send [03:32:57]OFD Sender: No OFD packet to send [03:33:03]OFD Sender: No OFD packet to send [03:33:08]OFD Sender: No OFD packet to send [03:33:13]OFD Sender: No OFD packet to send [03:33:18]OFD Sender: No OFD packet to send [03:33:23]OFD Sender: No OFD packet to send [03:33:28]OFD Sender: No OFD packet to send [03:33:33]OFD Sender: No OFD packet to send [03:33:38]OFD Sender: No OFD packet to send [03:33:43]OFD Sender: No OFD packet to send [03:33:48]OFD Sender: No OFD packet to send [03:33:53]OFD Sender: No OFD packet to send [03:33:58]OFD Sender: No OFD packet to send [03:34:03]OFD Sender: No OFD packet to send [03:34:08]OFD Sender: No OFD packet to send [03:34:13]OFD Sender: No OFD packet to send [03:34:18]OFD Sender: No OFD packet to send [03:34:23]OFD Sender: No OFD packet to send [03:34:28]OFD Sender: No OFD packet to send [03:34:33]OFD Sender: No OFD packet to send [03:34:38]OFD Sender: No OFD packet to send [03:34:43]OFD Sender: No OFD packet to send [03:34:48]OFD Sender: No OFD packet to send [03:34:53]OFD Sender: No OFD packet to send [03:34:58]OFD Sender: No OFD packet to send [03:35:03]OFD Sender: No OFD packet to send [03:35:08]OFD Sender: No OFD packet to send [03:35:13]OFD Sender: No OFD packet to send [03:35:18]OFD Sender: No OFD packet to send [03:35:23]OFD Sender: No OFD packet to send [03:35:28]OFD Sender: No OFD packet to send [03:35:33]OFD Sender: No OFD packet to send [03:35:38]OFD Sender: No OFD packet to send [03:35:43]OFD Sender: No OFD packet to send [03:35:48]OFD Sender: No OFD packet to send [03:35:53]OFD Sender: No OFD packet to send [03:35:58]OFD Sender: No OFD packet to send [03:36:03]OFD Sender: No OFD packet to send [03:36:08]OFD Sender: No OFD packet to send [03:36:12]accept exits with 9 [03:36:12]New connection [03:36:12]New thread 3067014500 created [03:36:12]Thread 3067157860 joined [03:36:12]Waiting for new connection... [03:36:12] Sock 9.Parse request [03:36:12]Sock 9.Check first char [03:36:12]Sock 9.First char is OK [03:36:12]request: POST /json_proto HTTP/1.0 [03:36:12]Method: POST [03:36:12]URL: /json_proto [03:36:12]Method is POST - this is cgi request [03:36:12]url: /json_proto [03:36:12]query_string will be loaded in cgi processing [03:36:12]execute_cgi json_proto POST (null) [03:36:12]execute_cgi path=json_proto method=POST [03:36:12]POST find Content-Length [03:36:12]Host: 172.17.42.131:8080 [03:36:12]Content-Length: 983 [03:36:12]Content-Type: application/json [03:36:12] [03:36:12]POST finish read [03:36:12]Found Content-Length = 983 [03:36:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209610", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 65.90, "quantity" : 30.350, "sum" : 2000.07, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0410\u0418-92\u000A\u043D\u043E\u043C\u0435\u0440 86\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 30.35 \u0441\u043E\u043C", "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:36:12]execute_script... [03:36: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)209610", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 65.90, "quantity" : 30.350, "sum" : 2000.07, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0410\u0418-92\u000A\u043D\u043E\u043C\u0435\u0440 86\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 30.35 \u0441\u043E\u043C", "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:36:12]POST & json_proto [03:36:12]process_json_proto [03:36:12]json parsed OK: [03:36:12]protocol is kg_v1.0 [03:36:12]action value=close_receipt [03:36:12]process_action close_receipt [03:36:12]cmd_close_receipt [03:36:12]MH_GetDate [03:36:12]Write to MH i2c: F0 00 00 01 25 15 [03:36:12]Write i2c OK [03:36:12]MH_I2C_Read... [03:36:12]Read from MH i2c: F0 [03:36:12]MH_I2C_Read... [03:36:12]Read from MH i2c: F0 09 00 [03:36:12]MH_I2C_Read... [03:36:12]Read from MH i2c: F0 09 00 01 25 00 2E CC 15 67 A0 18 CA 66 7C [03:36:12]GetLastDocTimeStamp 1729481034 [03:36:12]current date 1729481774 [03:36:12]FM_GetShiftState [03:36:12]SAM_PROTO_GetShiftState [03:36:12]wFMCommunicate request_size=4 [03:36:12]MH_SAM_APDU [03:36:12]CAPDU: 80 13 01 00 [03:36:12]Write to MH i2c: E2 08 00 02 25 80 13 01 00 00 00 00 00 A4 [03:36:12]Write i2c OK [03:36:12]MH_I2C_Read... [03:36:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:36:12]Read from MH i2c: E2 [03:36:12]MH_I2C_Read... [03:36:12]Read from MH i2c: E2 0E 00 [03:36:12]MH_I2C_Read... [03:36:12]Read from MH i2c: E2 0E 00 02 25 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 03 [03:36:12]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [03:36:12]wFMCommunicate OK [03:36:12]SAM_PROTO_GetShiftState done [03:36:12]FM_GetShiftState done [03:36:12]opened in 1729469754 [03:36:12]opened+sec_in_day 1729556154 [03:36:12]quantity*price = 200006 [03:36:12]sum+1 = 200008 [03:36:12]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.07 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.40 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 23 21.10.2024 03:36 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Дисконтная программа АИ-92 номер 86 сэкономлено 30.35 сом ФМ: 0000000000965340 ФД: 187559 ФПД: 203758854954953 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T033614&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187559&fm=203758854954953&tin=02508201610067®Number=0000000000100030&sum=200000 [03:36:13]StoreToDocumentArchive [03:36:13]shift 460 fd 187559 [03:36:13]save to /storage/0460/doc_00187559 [03:36:13]save last doc name /storage/0460/doc_00187559 to /storage/kkm_last_doc_name [03:36:13]save OK [03:36:13]Clear old archive folders... [03:36:13]ProcessDocumentItem done err = 0, tmpTLVsize=251 [03:36:13]tlvbuf is B6EDA540 [03:36:13]SAM_PROTO_ClearQueue [03:36:13]wFMCommunicate request_size=4 [03:36:13]MH_SAM_APDU [03:36:13]CAPDU: 80 09 00 00 [03:36:13]Write to MH i2c: E2 08 00 0F 25 80 09 00 00 00 00 00 00 A6 [03:36:13]Write i2c OK [03:36:13]MH_I2C_Read... [03:36:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [03:36:13]Read from MH i2c: E2 [03:36:13]MH_I2C_Read... [03:36:13]Read from MH i2c: E2 03 00 [03:36:13]MH_I2C_Read... [03:36:13]Read from MH i2c: E2 03 00 0F 25 00 90 00 A8 [03:36:13]RAPDU: 90 00 [03:36:13]wFMCommunicate OK [03:36:13]SAM_PROTO_ClearQueue done [03:36:13]KKMCreateOFDPacket [03:36:13]OFDProtocolAddRootSTLVToBuf [03:36:13]FM_MakeSignedData [03:36:13]FM_MakeSignedData [03:36:13]SAM_PROTO_SignData [03:36:13]wFMCommunicate request_size=4 [03:36:13]MH_SAM_APDU [03:36:13]CAPDU: 80 0D 01 02 [03:36:13]Write to MH i2c: E2 08 00 10 25 80 0D 01 02 00 00 00 00 AE [03:36:13]Write i2c OK [03:36:13]MH_I2C_Read... [03:36:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [03:36:13]Read from MH i2c: E2 [03:36:13]MH_I2C_Read... [03:36:13]Read from MH i2c: E2 03 00 [03:36:13]MH_I2C_Read... [03:36:13]Read from MH i2c: E2 03 00 10 25 00 90 00 A9 [03:36:13]RAPDU: 90 00 [03:36:13]wFMCommunicate OK [03:36:13]wFMCommunicate request_size=255 [03:36:13]MH_SAM_APDU [03:36: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 33 FF 03 08 00 03 8E 76 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 47 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 F8 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 17 00 00 00 F4 03 04 00 2E CC 15 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 A7 DC 02 00 35 04 06 00 B9 [03:36:13]Write to MH i2c: E2 02 01 11 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 33 FF 03 08 00 03 8E 76 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 47 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 F8 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 17 00 00 00 F4 03 04 00 2E CC 15 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 A7 DC 02 00 35 04 06 00 B9 00 00 40 [03:36:13]Write i2c OK [03:36:13]MH_I2C_Read... [03:36:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:36:13]Read from MH i2c: E2 [03:36:13]MH_I2C_Read... [03:36:13]Read from MH i2c: E2 03 00 [03:36:13]MH_I2C_Read... [03:36:13]Read from MH i2c: E2 03 00 11 25 00 90 00 AA [03:36:13]RAPDU: 90 00 [03:36:13]wFMCommunicate OK [03:36:13]wFMCommunicate request_size=10 [03:36:13]MH_SAM_APDU [03:36:13]CAPDU: 80 0D 02 02 05 51 4E 2B 5F C9 [03:36:13]Write to MH i2c: E2 0D 00 12 25 80 0D 02 02 05 00 51 4E 2B 5F C9 00 00 AD [03:36:13]Write i2c OK [03:36:13]MH_I2C_Read... [03:36:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:36:13]Read from MH i2c: E2 [03:36:13]MH_I2C_Read... [03:36:13]Read from MH i2c: E2 03 00 [03:36:13]MH_I2C_Read... [03:36:13]Read from MH i2c: E2 03 00 12 25 00 90 00 AB [03:36:13]RAPDU: 90 00 [03:36:13]wFMCommunicate OK [03:36:13]wFMCommunicate request_size=4 [03:36:13]MH_SAM_APDU [03:36:13]CAPDU: 80 0D 03 02 [03:36:13]Write to MH i2c: E2 08 00 13 25 80 0D 03 02 00 00 00 00 B3 [03:36:13]Write i2c OK [03:36:13]MH_I2C_Read... [03:36:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [03:36:13]Read from MH i2c: E2 [03:36:13]MH_I2C_Read... [03:36:13]Read from MH i2c: E2 0B 00 [03:36:13]MH_I2C_Read... [03:36:13]Read from MH i2c: E2 0B 00 13 25 00 43 F3 13 B1 8A 39 8D F0 90 00 EE [03:36:13]RAPDU: 43 F3 13 B1 8A 39 8D F0 90 00 [03:36:13]wFMCommunicate OK [03:36:13]SAM_PROTO_SignData done [03:36:13]FM_MakeSignedData done [03:36:13]CreateOFDProtocolMessage [03:36:13]wFMCommunicate request_size=4 [03:36:13]MH_SAM_APDU [03:36:13]CAPDU: 80 11 00 00 [03:36:13]Write to MH i2c: E2 08 00 14 25 80 11 00 00 00 00 00 00 B3 [03:36:13]Write i2c OK [03:36:13]MH_I2C_Read... [03:36:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:36:13]Read from MH i2c: E2 [03:36:13]MH_I2C_Read... [03:36:13]Read from MH i2c: E2 17 00 [03:36:13]MH_I2C_Read... [03:36:13]Read from MH i2c: E2 17 00 14 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 01 [03:36:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [03:36:13]wFMCommunicate OK [03:36:13]CreateOFDProtocolMessage done [03:36:13]OFDSenderStorePacket 187559 [03:36:13]StoreOFDPacket docnum=187559 [03:36:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 17 15 07 01 D3 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 33 FF 03 08 00 03 8E 76 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 47 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 F8 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 17 00 00 00 F4 03 04 00 2E CC 15 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 A7 DC 02 00 35 04 06 00 B9 51 4E 2B 5F C9 43 F3 13 B1 8A 39 8D F0 [03:36:13]CheckFolder [03:36:13]dirname=/storage/ofd_packets [03:36:13]CheckFolder done [03:36:13]ProducePacketName [03:36:13]name=ofd_packets/00187559 [03:36:13]NVStorageSaveData ofd_packets/00187559 [03:36:13]File name is /storage/ofd_packets/00187559 [03:36:13]Write 301 bytes [03:36:13]NVStorageSaveData done [03:36:13]OFDSenderStorePacket done [03:36:13]KKMCreateOFDPacket done [03:36:13]NVStorageSaveData kkm_last_timestamp [03:36:13]File name is /storage/kkm_last_timestamp [03:36:13]Write 4 bytes [03:36:13]NVStorageSaveData done [03:36:13]ExternCall_PrintAddStr [03:36:13]wPrintStart [03:36:13]Write to MH i2c: 01 00 00 15 25 3A [03:36:13]Write i2c OK [03:36:13]MH_I2C_Read... [03:36:13]Read from MH i2c: 01 [03:36:13]MH_I2C_Read... [03:36:13]Read from MH i2c: 01 07 00 [03:36:13]MH_I2C_Read... [03:36:13]Read from MH i2c: 01 07 00 15 25 00 00 00 00 00 FF 0F 4F [03:36:13]RasterBufferAndPrint [03:36:13]line Счет N : (1)209610 [03:36:13]line ИНН: 02508201610067 [03:36:13]line Контрольно-Кассовый Чек [03:36:13]line ПРОДАЖА [03:36:13]line ТРК (МРК, ГНК) : 32 [03:36:13]line Товар: 2710124130 [03:36:13]line Аи-92-К-3 [03:36:13]line 30.350 * 65.90 [03:36:13]line = 2000.07 [03:36:13]line НДС 12% НСП 1% [03:36:13]line > о реализуемом товаре [03:36:13]line ОКРУГЛЕНИЕ: -0.07 [03:36:13]line ИТОГО: 2000.00 [03:36:13]line Внесено: 2000.00 [03:36:13]line СДАЧА: 0.00 [03:36:13]line НСП 1% : 17.70 [03:36:13]line НДС 12% : 212.40 [03:36:13]line Наличными: 2000.00 [03:36:13]line Безнал.: 0.00 [03:36:13]line Место: АЗС № 86 "Партнер Нефть" [03:36:13]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [03:36:13]line СНО: Общий режим [03:36:13]line Чек 23 21.10.2024 03:36 [03:36:13]line Смена: 460 ФФД: 1.0 [03:36:13]line ЗНМ: 0300000155 [03:36:13]line РНМ: 0000000000100030 [03:36:13]line Версия ККМ: 001 [03:36:13]line [03:36:13]line Дисконтная программа [03:36:13]line АИ-92 [03:36:13]line номер 86 [03:36:13]line сэкономлено 30.35 сом [03:36:13]line ФМ: 0000000000965340 [03:36:13]line ФД: 187559 [03:36:13]line ФПД: 203758854954953 [03:36:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T033614&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187559&fm=203758854954953&tin=02508201610067®Number=0000000000100030&sum=200000 [03:36:13]written 0, free lines is 4095 [03:36:13]OFD Sender: Processing packet 187559 [packets to send 1062, broken 1061] [03:36:13]ProducePacketName [03:36:13]name=ofd_packets/00187559 [03:36:13]OFD Sender: To server: pG, [03:36:13]CommunicateWithHost lk.salyk.kg:30040 [03:36:13]ConnectInit lk.salyk.kg [03:36:14]Connected sock=10 [03:36:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 17 15 07 01 D3 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 33 FF 03 08 00 03 8E 76 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 47 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 F8 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 17 00 00 00 F4 03 04 00 2E CC 15 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 A7 DC 02 00 35 04 06 00 B9 51 4E 2B 5F C9 43 F3 13 B1 8A 39 8D F0 [03:36:14]Write to MH i2c: 01 00 00 45 25 6A [03:36:14]Write i2c OK [03:36:14]MH_I2C_Read... [03:36:14]Read from MH i2c: 01 [03:36:14]MH_I2C_Read... [03:36:14]Read from MH i2c: 01 07 00 [03:36:14]MH_I2C_Read... [03:36:14]Read from MH i2c: 01 07 00 45 25 00 00 00 00 00 DE 0B 5A [03:36:14]RasterBufferAndPrint [03:36:14]line [03:36:14]line [03:36:14]line [03:36:14]line [03:36:14]line [03:36:14]written 0, free lines is 3040 [03:36:14]MH_Cut [03:36:14]Write to MH i2c: D1 01 00 4C 25 01 43 [03:36:14]Write i2c OK [03:36:14]MH_I2C_Read... [03:36:14]Read from MH i2c: D1 [03:36:14]MH_I2C_Read... [03:36:14]Read from MH i2c: D1 01 00 [03:36:14]MH_I2C_Read... [03:36:14]Read from MH i2c: D1 01 00 4C 25 00 42 [03:36:14]Write to MH i2c: 01 00 00 4D 25 72 [03:36:14]Write i2c OK [03:36:14]MH_I2C_Read... [03:36:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 78 6B 47 00 64 07 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 A7 DC 02 00 F4 03 04 00 1E 76 15 67 B6 04 01 00 00 8C CF 55 03 62 EA 80 80 [03:36:14]CommunicateWithHost err = 0 [03:36:14]CheckOFDResponse [03:36:14]1017 (14) - 77093643461234 [03:36:14]1041 (16) - 0000000000965340 [03:36:14]1040 (4) - 187559 [03:36:14]1012 (4) - 20.10.2024 21:29 [03:36:14]1206 (1) - 0 [03:36:14]OFD Sender: Remove packet 187559 [03:36:14]ProducePacketName [03:36:14]name=ofd_packets/00187559 [03:36:14]NVStorageDeleteData [03:36:14]OFD Sender: No OFD packet to send [03:36:15]*** Cut start [03:36:15]*** Partial cut [03:36:15]*** CUTSNS_PIN = 1 [03:36:15]*** CUTSNS_PIN = 0 [03:36:16]*** Brake cut motor [03:36:16]Read from MH i2c: 01 [03:36:16]MH_I2C_Read... [03:36:16]*** Stop cut motor [03:36:16]*** Cut end [03:36:16]Read from MH i2c: 01 07 00 [03:36:16]MH_I2C_Read... [03:36:16]Read from MH i2c: 01 07 00 4D 25 00 00 00 00 00 FF 0F 87 [03:36:16]process_action close_receipt done [03:36:16]requested_data is exist [03:36:16]produce_requested_data [03:36:16]requested_item fm.sn is exist - process it [03:36:16]wFMCommunicate request_size=4 [03:36:16]MH_SAM_APDU [03:36:16]CAPDU: 80 11 00 00 [03:36:16]Write to MH i2c: E2 08 00 4E 25 80 11 00 00 00 00 00 00 ED [03:36:16]Write i2c OK [03:36:16]MH_I2C_Read... [03:36:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:36:16]Read from MH i2c: E2 [03:36:16]MH_I2C_Read... [03:36:16]Read from MH i2c: E2 17 00 [03:36:16]MH_I2C_Read... [03:36:16]Read from MH i2c: E2 17 00 4E 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 3B [03:36:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [03:36:16]wFMCommunicate OK [03:36:16]requested_item fd.num is exist - process it [03:36:16]SAM_PROTO_GetFieldsCounters [03:36:16]wFMCommunicate request_size=4 [03:36:16]MH_SAM_APDU [03:36:16]CAPDU: 80 13 00 00 [03:36:16]Write to MH i2c: E2 08 00 4F 25 80 13 00 00 00 00 00 00 F0 [03:36:16]Write i2c OK [03:36:16]MH_I2C_Read... [03:36:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [03:36:16]Read from MH i2c: E2 [03:36:16]MH_I2C_Read... [03:36:16]Read from MH i2c: E2 62 00 [03:36:16]MH_I2C_Read... [03:36:16]Read from MH i2c: E2 62 00 4F 25 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 A7 DC 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 17 00 00 00 5E 04 04 00 17 00 00 00 57 04 04 00 18 00 00 00 19 04 04 00 00 00 00 00 90 00 8E [03:36:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 A7 DC 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 17 00 00 00 5E 04 04 00 17 00 00 00 57 04 04 00 18 00 00 00 19 04 04 00 00 00 00 00 90 00 [03:36:16]wFMCommunicate OK [03:36:16]SAM_PROTO_GetFieldsCounters done [03:36:16]requested_item shift.num is exist - process it [03:36:16]requested_item shift.opened is exist - process it [03:36:16]req_shift_opened [03:36:16]FM_GetShiftState [03:36:16]SAM_PROTO_GetShiftState [03:36:16]wFMCommunicate request_size=4 [03:36:16]MH_SAM_APDU [03:36:16]CAPDU: 80 13 01 00 [03:36:16]Write to MH i2c: E2 08 00 50 25 80 13 01 00 00 00 00 00 F2 [03:36:16]Write i2c OK [03:36:16]MH_I2C_Read... [03:36:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:36:16]Read from MH i2c: E2 [03:36:16]MH_I2C_Read... [03:36:16]Read from MH i2c: E2 0E 00 [03:36:16]MH_I2C_Read... [03:36:16]Read from MH i2c: E2 0E 00 50 25 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 51 [03:36:16]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [03:36:16]wFMCommunicate OK [03:36:16]SAM_PROTO_GetShiftState done [03:36:16]FM_GetShiftState done [03:36:16]req_shift_opened done [03:36:16]requested_item shift.open_date is exist - process it [03:36:16]req_shift_open_date [03:36:16]req_shift_open_date done [03:36:16]produce_requested_data done [03:36:16]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187559,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [03:36:16]process_action_free close_receipt [03:36:16]json_value_free [03:36:16]json_value_free done [03:36:16]process_json_proto returns [03:36:16]Send response to host [03:36:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187559,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [03:36:16]free response buf [03:36:16]execute_script done [03:36:16]execute_script returns [03:36:16]free content buf [03:36:16]Sock 9.Close socket [03:36:16]Sock 9.Thread stoped [03:36:20]OFD Sender: No OFD packet to send [03:36:25]OFD Sender: No OFD packet to send [03:36:30]OFD Sender: No OFD packet to send [03:36:35]OFD Sender: No OFD packet to send [03:36:40]OFD Sender: No OFD packet to send [03:36:45]OFD Sender: No OFD packet to send [03:36:50]OFD Sender: No OFD packet to send [03:36:55]OFD Sender: No OFD packet to send [03:37:00]OFD Sender: No OFD packet to send [03:37:05]OFD Sender: No OFD packet to send [03:37:10]OFD Sender: No OFD packet to send [03:37:15]OFD Sender: No OFD packet to send [03:37:20]OFD Sender: No OFD packet to send [03:37:25]OFD Sender: No OFD packet to send [03:37:30]OFD Sender: No OFD packet to send [03:37:35]OFD Sender: No OFD packet to send [03:37:40]OFD Sender: No OFD packet to send [03:37:45]OFD Sender: No OFD packet to send [03:37:50]OFD Sender: No OFD packet to send [03:37:55]OFD Sender: No OFD packet to send [03:38:00]OFD Sender: No OFD packet to send [03:38:05]OFD Sender: No OFD packet to send [03:38:10]OFD Sender: No OFD packet to send [03:38:15]OFD Sender: No OFD packet to send [03:38:20]OFD Sender: No OFD packet to send [03:38:25]OFD Sender: No OFD packet to send [03:38:30]OFD Sender: No OFD packet to send [03:38:35]OFD Sender: No OFD packet to send [03:38:40]OFD Sender: No OFD packet to send [03:38:45]OFD Sender: No OFD packet to send [03:38:50]OFD Sender: No OFD packet to send [03:38:55]OFD Sender: No OFD packet to send [03:39:00]OFD Sender: No OFD packet to send [03:39:05]OFD Sender: No OFD packet to send [03:39:10]OFD Sender: No OFD packet to send [03:39:15]OFD Sender: No OFD packet to send [03:39:20]OFD Sender: No OFD packet to send [03:39:25]OFD Sender: No OFD packet to send [03:39:30]OFD Sender: No OFD packet to send [03:39:35]OFD Sender: No OFD packet to send [03:39:40]OFD Sender: No OFD packet to send [03:39:45]OFD Sender: No OFD packet to send [03:39:50]OFD Sender: No OFD packet to send [03:39:55]OFD Sender: No OFD packet to send [03:40:00]OFD Sender: No OFD packet to send [03:40:06]OFD Sender: No OFD packet to send [03:40:11]OFD Sender: No OFD packet to send [03:40:16]OFD Sender: No OFD packet to send [03:40:21]OFD Sender: No OFD packet to send [03:40:26]OFD Sender: No OFD packet to send [03:40:31]OFD Sender: No OFD packet to send [03:40:36]OFD Sender: No OFD packet to send [03:40:41]OFD Sender: No OFD packet to send [03:40:46]OFD Sender: No OFD packet to send [03:40:51]OFD Sender: No OFD packet to send [03:40:56]OFD Sender: No OFD packet to send [03:41:01]OFD Sender: No OFD packet to send [03:41:06]OFD Sender: No OFD packet to send [03:41:11]OFD Sender: No OFD packet to send [03:41:16]OFD Sender: No OFD packet to send [03:41:21]OFD Sender: No OFD packet to send [03:41:26]OFD Sender: No OFD packet to send [03:41:31]OFD Sender: No OFD packet to send [03:41:36]OFD Sender: No OFD packet to send [03:41:41]OFD Sender: No OFD packet to send [03:41:46]OFD Sender: No OFD packet to send [03:41:51]OFD Sender: No OFD packet to send [03:41:56]OFD Sender: No OFD packet to send [03:42:01]OFD Sender: No OFD packet to send [03:42:06]OFD Sender: No OFD packet to send [03:42:11]OFD Sender: No OFD packet to send [03:42:16]OFD Sender: No OFD packet to send [03:42:21]OFD Sender: No OFD packet to send [03:42:26]OFD Sender: No OFD packet to send [03:42:31]OFD Sender: No OFD packet to send [03:42:36]OFD Sender: No OFD packet to send [03:42:41]OFD Sender: No OFD packet to send [03:42:46]OFD Sender: No OFD packet to send [03:42:51]OFD Sender: No OFD packet to send [03:42:56]OFD Sender: No OFD packet to send [03:43:01]OFD Sender: No OFD packet to send [03:43:06]OFD Sender: No OFD packet to send [03:43:11]OFD Sender: No OFD packet to send [03:43:16]OFD Sender: No OFD packet to send [03:43:21]OFD Sender: No OFD packet to send [03:43:26]OFD Sender: No OFD packet to send [03:43:31]OFD Sender: No OFD packet to send [03:43:36]OFD Sender: No OFD packet to send [03:43:41]OFD Sender: No OFD packet to send [03:43:46]OFD Sender: No OFD packet to send [03:43: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:43]OFD Sender: No OFD packet to send [03:47:48]OFD Sender: No OFD packet to send [03:47:53]OFD Sender: No OFD packet to send [03:47:58]OFD Sender: No OFD packet to send [03:48:03]OFD Sender: No OFD packet to send [03:48:08]OFD Sender: No OFD packet to send [03:48:13]OFD Sender: No OFD packet to send [03:48:18]OFD Sender: No OFD packet to send [03:48:23]OFD Sender: No OFD packet to send [03:48:28]OFD Sender: No OFD packet to send [03:48:33]OFD Sender: No OFD packet to send [03:48:38]OFD Sender: No OFD packet to send [03:48:43]OFD Sender: No OFD packet to send [03:48:48]OFD Sender: No OFD packet to send [03:48:53]OFD Sender: No OFD packet to send [03:48:58]OFD Sender: No OFD packet to send [03:49:03]OFD Sender: No OFD packet to send [03:49:08]OFD Sender: No OFD packet to send [03:49:13]OFD Sender: No OFD packet to send [03:49:18]OFD Sender: No OFD packet to send [03:49:23]OFD Sender: No OFD packet to send [03:49:28]OFD Sender: No OFD packet to send [03:49:33]OFD Sender: No OFD packet to send [03:49:38]OFD Sender: No OFD packet to send [03:49:43]OFD Sender: No OFD packet to send [03:49:48]OFD Sender: No OFD packet to send [03:49:53]OFD Sender: No OFD packet to send [03:49:58]OFD Sender: No OFD packet to send [03:50:03]OFD Sender: No OFD packet to send [03:50:08]OFD Sender: No OFD packet to send [03:50:13]OFD Sender: No OFD packet to send [03:50:18]OFD Sender: No OFD packet to send [03:50:23]OFD Sender: No OFD packet to send [03:50:28]OFD Sender: No OFD packet to send [03:50:33]OFD Sender: No OFD packet to send [03:50:38]OFD Sender: No OFD packet to send [03:50:43]OFD Sender: No OFD packet to send [03:50:48]OFD Sender: No OFD packet to send [03:50:53]OFD Sender: No OFD packet to send [03:50:58]OFD Sender: No OFD packet to send [03:51:03]OFD Sender: No OFD packet to send [03:51:08]OFD Sender: No OFD packet to send [03:51:13]OFD Sender: No OFD packet to send [03:51:18]OFD Sender: No OFD packet to send [03:51:23]OFD Sender: No OFD packet to send [03:51:29]OFD Sender: No OFD packet to send [03:51:34]OFD Sender: No OFD packet to send [03:51:39]OFD Sender: No OFD packet to send [03:51:44]OFD Sender: No OFD packet to send [03:51:49]OFD Sender: No OFD packet to send [03:51:54]OFD Sender: No OFD packet to send [03:51:59]OFD Sender: No OFD packet to send [03:52:04]OFD Sender: No OFD packet to send [03:52:09]OFD Sender: No OFD packet to send [03:52:14]OFD Sender: No OFD packet to send [03:52:19]OFD Sender: No OFD packet to send [03:52:24]OFD Sender: No OFD packet to send [03:52:29]OFD Sender: No OFD packet to send [03:52:34]OFD Sender: No OFD packet to send [03:52:39]OFD Sender: No OFD packet to send [03:52:44]OFD Sender: No OFD packet to send [03:52:49]OFD Sender: No OFD packet to send [03:52:54]OFD Sender: No OFD packet to send [03:52:59]OFD Sender: No OFD packet to send [03:53:04]OFD Sender: No OFD packet to send [03:53:09]OFD Sender: No OFD packet to send [03:53:14]OFD Sender: No OFD packet to send [03:53:19]OFD Sender: No OFD packet to send [03:53:24]OFD Sender: No OFD packet to send [03:53:29]OFD Sender: No OFD packet to send [03:53:34]OFD Sender: No OFD packet to send [03:53:39]OFD Sender: No OFD packet to send [03:53:44]OFD Sender: No OFD packet to send [03:53:49]OFD Sender: No OFD packet to send [03:53:54]OFD Sender: No OFD packet to send [03:53:59]OFD Sender: No OFD packet to send [03:54:04]OFD Sender: No OFD packet to send [03:54:09]OFD Sender: No OFD packet to send [03:54:14]OFD Sender: No OFD packet to send [03:54:19]OFD Sender: No OFD packet to send [03:54:24]OFD Sender: No OFD packet to send [03:54:29]OFD Sender: No OFD packet to send [03:54:34]OFD Sender: No OFD packet to send [03:54:39]OFD Sender: No OFD packet to send [03:54:44]OFD Sender: No OFD packet to send [03:54:49]OFD Sender: No OFD packet to send [03:54:54]OFD Sender: No OFD packet to send [03:54:59]OFD Sender: No OFD packet to send [03:55:04]OFD Sender: No OFD packet to send [03:55:09]OFD Sender: No OFD packet to send [03:55:14]OFD Sender: No OFD packet to send [03:55:20]OFD Sender: No OFD packet to send [03:55:25]OFD Sender: No OFD packet to send [03:55:30]OFD Sender: No OFD packet to send [03:55:35]OFD Sender: No OFD packet to send [03:55:40]OFD Sender: No OFD packet to send [03:55:45]OFD Sender: No OFD packet to send [03:55:50]OFD Sender: No OFD packet to send [03:55:55]OFD Sender: No OFD packet to send [03:56:00]OFD Sender: No OFD packet to send [03:56:05]OFD Sender: No OFD packet to send [03:56:10]OFD Sender: No OFD packet to send [03:56:15]OFD Sender: No OFD packet to send [03:56:20]OFD Sender: No OFD packet to send [03:56:25]OFD Sender: No OFD packet to send [03:56:30]OFD Sender: No OFD packet to send [03:56:35]OFD Sender: No OFD packet to send [03:56:40]OFD Sender: No OFD packet to send [03:56:45]OFD Sender: No OFD packet to send [03:56:50]OFD Sender: No OFD packet to send [03:56:55]OFD Sender: No OFD packet to send [03:57:00]OFD Sender: No OFD packet to send [03:57:05]OFD Sender: No OFD packet to send [03:57:10]OFD Sender: No OFD packet to send [03:57:15]OFD Sender: No OFD packet to send [03:57:20]OFD Sender: No OFD packet to send [03:57:25]OFD Sender: No OFD packet to send [03:57:30]OFD Sender: No OFD packet to send [03:57:35]OFD Sender: No OFD packet to send [03:57:40]OFD Sender: No OFD packet to send [03:57:45]OFD Sender: No OFD packet to send [03:57:50]OFD Sender: No OFD packet to send [03:57:55]OFD Sender: No OFD packet to send [03:58:00]OFD Sender: No OFD packet to send [03:58:05]OFD Sender: No OFD packet to send [03:58:10]OFD Sender: No OFD packet to send [03:58:15]OFD Sender: No OFD packet to send [03:58:20]OFD Sender: No OFD packet to send [03:58:25]OFD Sender: No OFD packet to send [03:58:30]OFD Sender: No OFD packet to send [03:58:35]OFD Sender: No OFD packet to send [03:58:40]OFD Sender: No OFD packet to send [03:58:45]OFD Sender: No OFD packet to send [03:58:50]OFD Sender: No OFD packet to send [03:58:55]OFD Sender: No OFD packet to send [03:59:00]OFD Sender: No OFD packet to send [03:59:06]OFD Sender: No OFD packet to send [03:59:11]OFD Sender: No OFD packet to send [03:59:16]OFD Sender: No OFD packet to send [03:59:21]OFD Sender: No OFD packet to send [03:59:26]OFD Sender: No OFD packet to send [03:59:31]OFD Sender: No OFD packet to send [03:59:36]OFD Sender: No OFD packet to send [03:59:41]OFD Sender: No OFD packet to send [03:59:46]OFD Sender: No OFD packet to send [03:59:51]OFD Sender: No OFD packet to send [03:59:56]OFD Sender: No OFD packet to send [04:00:01]OFD Sender: No OFD packet to send [04:00:06]OFD Sender: No OFD packet to send [04:00:11]OFD Sender: No OFD packet to send [04:00:16]OFD Sender: No OFD packet to send [04:00:21]OFD Sender: No OFD packet to send [04:00:26]OFD Sender: No OFD packet to send [04:00:31]OFD Sender: No OFD packet to send [04:00:36]OFD Sender: No OFD packet to send [04:00:41]OFD Sender: No OFD packet to send [04:00:46]OFD Sender: No OFD packet to send [04:00:51]OFD Sender: No OFD packet to send [04:00:56]OFD Sender: No OFD packet to send [04:01:01]OFD Sender: No OFD packet to send [04:01:06]OFD Sender: No OFD packet to send [04:01:11]OFD Sender: No OFD packet to send [04:01:16]OFD Sender: No OFD packet to send [04:01:21]OFD Sender: No OFD packet to send [04:01:26]OFD Sender: No OFD packet to send [04:01:31]OFD Sender: No OFD packet to send [04:01:36]OFD Sender: No OFD packet to send [04:01:41]OFD Sender: No OFD packet to send [04:01:46]OFD Sender: No OFD packet to send [04:01:51]OFD Sender: No OFD packet to send [04:01:56]OFD Sender: No OFD packet to send [04:02:01]OFD Sender: No OFD packet to send [04:02:06]OFD Sender: No OFD packet to send [04:02:11]OFD Sender: No OFD packet to send [04:02:16]OFD Sender: No OFD packet to send [04:02:21]OFD Sender: No OFD packet to send [04:02:26]OFD Sender: No OFD packet to send [04:02:31]OFD Sender: No OFD packet to send [04:02:36]OFD Sender: No OFD packet to send [04:02:41]OFD Sender: No OFD packet to send [04:02:46]OFD Sender: No OFD packet to send [04:02:51]OFD Sender: No OFD packet to send [04:02:57]OFD Sender: No OFD packet to send [04:03:02]OFD Sender: No OFD packet to send [04:03:07]OFD Sender: No OFD packet to send [04:03:12]OFD Sender: No OFD packet to send [04:03:17]OFD Sender: No OFD packet to send [04:03:22]OFD Sender: No OFD packet to send [04:03:27]OFD Sender: No OFD packet to send [04:03:32]OFD Sender: No OFD packet to send [04:03:37]OFD Sender: No OFD packet to send [04:03:42]OFD Sender: No OFD packet to send [04:03:47]OFD Sender: No OFD packet to send [04:03:52]OFD Sender: No OFD packet to send [04:03:57]OFD Sender: No OFD packet to send [04:04:02]OFD Sender: No OFD packet to send [04:04:07]OFD Sender: No OFD packet to send [04:04:12]OFD Sender: No OFD packet to send [04:04:17]OFD Sender: No OFD packet to send [04:04:22]OFD Sender: No OFD packet to send [04:04:27]OFD Sender: No OFD packet to send [04:04:32]OFD Sender: No OFD packet to send [04:04:37]OFD Sender: No OFD packet to send [04:04:42]OFD Sender: No OFD packet to send [04:04:47]OFD Sender: No OFD packet to send [04:04:52]OFD Sender: No OFD packet to send [04:04:57]OFD Sender: No OFD packet to send [04:05:02]OFD Sender: No OFD packet to send [04:05:07]OFD Sender: No OFD packet to send [04:05:12]OFD Sender: No OFD packet to send [04:05:17]OFD Sender: No OFD packet to send [04:05:22]OFD Sender: No OFD packet to send [04:05:27]OFD Sender: No OFD packet to send [04:05:32]OFD Sender: No OFD packet to send [04:05:37]OFD Sender: No OFD packet to send [04:05:42]OFD Sender: No OFD packet to send [04:05:47]OFD Sender: No OFD packet to send [04:05:52]OFD Sender: No OFD packet to send [04:05:57]OFD Sender: No OFD packet to send [04:06:02]OFD Sender: No OFD packet to send [04:06:07]OFD Sender: No OFD packet to send [04:06:12]OFD Sender: No OFD packet to send [04:06:17]OFD Sender: No OFD packet to send [04:06:22]OFD Sender: No OFD packet to send [04:06:27]OFD Sender: No OFD packet to send [04:06:32]OFD Sender: No OFD packet to send [04:06:37]OFD Sender: No OFD packet to send [04:06: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:29]OFD Sender: No OFD packet to send [04:10:34]OFD Sender: No OFD packet to send [04:10:39]OFD Sender: No OFD packet to send [04:10:44]OFD Sender: No OFD packet to send [04:10:49]OFD Sender: No OFD packet to send [04:10:54]OFD Sender: No OFD packet to send [04:10:59]OFD Sender: No OFD packet to send [04:11:04]OFD Sender: No OFD packet to send [04:11:09]OFD Sender: No OFD packet to send [04:11:14]OFD Sender: No OFD packet to send [04:11:19]OFD Sender: No OFD packet to send [04:11:24]OFD Sender: No OFD packet to send [04:11:29]OFD Sender: No OFD packet to send [04:11:34]OFD Sender: No OFD packet to send [04:11:39]OFD Sender: No OFD packet to send [04:11:44]OFD Sender: No OFD packet to send [04:11:49]OFD Sender: No OFD packet to send [04:11:54]OFD Sender: No OFD packet to send [04:11:59]OFD Sender: No OFD packet to send [04:12:04]OFD Sender: No OFD packet to send [04:12:09]OFD Sender: No OFD packet to send [04:12:14]OFD Sender: No OFD packet to send [04:12:19]OFD Sender: No OFD packet to send [04:12:24]OFD Sender: No OFD packet to send [04:12:29]OFD Sender: No OFD packet to send [04:12:34]OFD Sender: No OFD packet to send [04:12:39]OFD Sender: No OFD packet to send [04:12:44]OFD Sender: No OFD packet to send [04:12:49]OFD Sender: No OFD packet to send [04:12:54]OFD Sender: No OFD packet to send [04:12:59]OFD Sender: No OFD packet to send [04:13:04]OFD Sender: No OFD packet to send [04:13:09]OFD Sender: No OFD packet to send [04:13:14]OFD Sender: No OFD packet to send [04:13:19]OFD Sender: No OFD packet to send [04:13:24]OFD Sender: No OFD packet to send [04:13:29]OFD Sender: No OFD packet to send [04:13:34]OFD Sender: No OFD packet to send [04:13:39]OFD Sender: No OFD packet to send [04:13:44]OFD Sender: No OFD packet to send [04:13:49]OFD Sender: No OFD packet to send [04:13:54]OFD Sender: No OFD packet to send [04:13:59]OFD Sender: No OFD packet to send [04:14:04]OFD Sender: No OFD packet to send [04:14:09]OFD Sender: No OFD packet to send [04:14:14]OFD Sender: No OFD packet to send [04:14:20]OFD Sender: No OFD packet to send [04:14:25]OFD Sender: No OFD packet to send [04:14:30]OFD Sender: No OFD packet to send [04:14:35]OFD Sender: No OFD packet to send [04:14:40]OFD Sender: No OFD packet to send [04:14:45]OFD Sender: No OFD packet to send [04:14:50]OFD Sender: No OFD packet to send [04:14:55]OFD Sender: No OFD packet to send [04:15:00]OFD Sender: No OFD packet to send [04:15:05]OFD Sender: No OFD packet to send [04:15:10]OFD Sender: No OFD packet to send [04:15:15]OFD Sender: No OFD packet to send [04:15:20]OFD Sender: No OFD packet to send [04:15:25]OFD Sender: No OFD packet to send [04:15:30]OFD Sender: No OFD packet to send [04:15:35]OFD Sender: No OFD packet to send [04:15:40]OFD Sender: No OFD packet to send [04:15:45]OFD Sender: No OFD packet to send [04:15:50]OFD Sender: No OFD packet to send [04:15:55]OFD Sender: No OFD packet to send [04:16:00]OFD Sender: No OFD packet to send [04:16:05]OFD Sender: No OFD packet to send [04:16:10]OFD Sender: No OFD packet to send [04:16:15]OFD Sender: No OFD packet to send [04:16:20]OFD Sender: No OFD packet to send [04:16:25]OFD Sender: No OFD packet to send [04:16:30]OFD Sender: No OFD packet to send [04:16:35]OFD Sender: No OFD packet to send [04:16:40]OFD Sender: No OFD packet to send [04:16:45]OFD Sender: No OFD packet to send [04:16:50]OFD Sender: No OFD packet to send [04:16:55]OFD Sender: No OFD packet to send [04:17:00]OFD Sender: No OFD packet to send [04:17:05]OFD Sender: No OFD packet to send [04:17:10]OFD Sender: No OFD packet to send [04:17:15]OFD Sender: No OFD packet to send [04:17:20]OFD Sender: No OFD packet to send [04:17:25]OFD Sender: No OFD packet to send [04:17:30]OFD Sender: No OFD packet to send [04:17:35]OFD Sender: No OFD packet to send [04:17:40]OFD Sender: No OFD packet to send [04:17:45]OFD Sender: No OFD packet to send [04:17:50]OFD Sender: No OFD packet to send [04:17:55]OFD Sender: No OFD packet to send [04:18:00]OFD Sender: No OFD packet to send [04:18:06]OFD Sender: No OFD packet to send [04:18:11]OFD Sender: No OFD packet to send [04:18:16]OFD Sender: No OFD packet to send [04:18:21]OFD Sender: No OFD packet to send [04:18:26]OFD Sender: No OFD packet to send [04:18:31]OFD Sender: No OFD packet to send [04:18:36]OFD Sender: No OFD packet to send [04:18:41]OFD Sender: No OFD packet to send [04:18:46]OFD Sender: No OFD packet to send [04:18:51]OFD Sender: No OFD packet to send [04:18:56]OFD Sender: No OFD packet to send [04:19:01]OFD Sender: No OFD packet to send [04:19:06]OFD Sender: No OFD packet to send [04:19:11]OFD Sender: No OFD packet to send [04:19:16]OFD Sender: No OFD packet to send [04:19:21]OFD Sender: No OFD packet to send [04:19:26]OFD Sender: No OFD packet to send [04:19:31]OFD Sender: No OFD packet to send [04:19:36]OFD Sender: No OFD packet to send [04:19:41]OFD Sender: No OFD packet to send [04:19:46]OFD Sender: No OFD packet to send [04:19:51]OFD Sender: No OFD packet to send [04:19:56]OFD Sender: No OFD packet to send [04:20:01]OFD Sender: No OFD packet to send [04:20:06]OFD Sender: No OFD packet to send [04:20:11]OFD Sender: No OFD packet to send [04:20:16]OFD Sender: No OFD packet to send [04:20:21]OFD Sender: No OFD packet to send [04:20:26]OFD Sender: No OFD packet to send [04:20:31]OFD Sender: No OFD packet to send [04:20:36]OFD Sender: No OFD packet to send [04:20:41]OFD Sender: No OFD packet to send [04:20:46]OFD Sender: No OFD packet to send [04:20:51]OFD Sender: No OFD packet to send [04:20:56]OFD Sender: No OFD packet to send [04:21:01]OFD Sender: No OFD packet to send [04:21:06]OFD Sender: No OFD packet to send [04:21:11]OFD Sender: No OFD packet to send [04:21:16]OFD Sender: No OFD packet to send [04:21:21]OFD Sender: No OFD packet to send [04:21:26]OFD Sender: No OFD packet to send [04:21:31]OFD Sender: No OFD packet to send [04:21:36]OFD Sender: No OFD packet to send [04:21:41]OFD Sender: No OFD packet to send [04:21:46]OFD Sender: No OFD packet to send [04:21:51]OFD Sender: No OFD packet to send [04:21: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:43]OFD Sender: No OFD packet to send [04:25:48]OFD Sender: No OFD packet to send [04:25:53]OFD Sender: No OFD packet to send [04:25:58]OFD Sender: No OFD packet to send [04:26:03]OFD Sender: No OFD packet to send [04:26:08]OFD Sender: No OFD packet to send [04:26:13]OFD Sender: No OFD packet to send [04:26:18]OFD Sender: No OFD packet to send [04:26:23]OFD Sender: No OFD packet to send [04:26:28]OFD Sender: No OFD packet to send [04:26:33]OFD Sender: No OFD packet to send [04:26:38]OFD Sender: No OFD packet to send [04:26:43]OFD Sender: No OFD packet to send [04:26:48]OFD Sender: No OFD packet to send [04:26:53]OFD Sender: No OFD packet to send [04:26:58]OFD Sender: No OFD packet to send [04:27:03]OFD Sender: No OFD packet to send [04:27:08]OFD Sender: No OFD packet to send [04:27:13]OFD Sender: No OFD packet to send [04:27:18]OFD Sender: No OFD packet to send [04:27:23]OFD Sender: No OFD packet to send [04:27:28]OFD Sender: No OFD packet to send [04:27:33]OFD Sender: No OFD packet to send [04:27:38]OFD Sender: No OFD packet to send [04:27:43]OFD Sender: No OFD packet to send [04:27:48]OFD Sender: No OFD packet to send [04:27:53]OFD Sender: No OFD packet to send [04:27:58]OFD Sender: No OFD packet to send [04:28:03]OFD Sender: No OFD packet to send [04:28:08]OFD Sender: No OFD packet to send [04:28:13]OFD Sender: No OFD packet to send [04:28:18]OFD Sender: No OFD packet to send [04:28:23]OFD Sender: No OFD packet to send [04:28:28]OFD Sender: No OFD packet to send [04:28:33]OFD Sender: No OFD packet to send [04:28:38]OFD Sender: No OFD packet to send [04:28:43]OFD Sender: No OFD packet to send [04:28:48]OFD Sender: No OFD packet to send [04:28:53]OFD Sender: No OFD packet to send [04:28:58]OFD Sender: No OFD packet to send [04:29:03]OFD Sender: No OFD packet to send [04:29:08]OFD Sender: No OFD packet to send [04:29:13]OFD Sender: No OFD packet to send [04:29:18]OFD Sender: No OFD packet to send [04:29:23]OFD Sender: No OFD packet to send [04:29:28]OFD Sender: No OFD packet to send [04:29:34]OFD Sender: No OFD packet to send [04:29:39]OFD Sender: No OFD packet to send [04:29:44]OFD Sender: No OFD packet to send [04:29:49]OFD Sender: No OFD packet to send [04:29:54]OFD Sender: No OFD packet to send [04:29:59]OFD Sender: No OFD packet to send [04:30:04]OFD Sender: No OFD packet to send [04:30:09]OFD Sender: No OFD packet to send [04:30:14]OFD Sender: No OFD packet to send [04:30:19]OFD Sender: No OFD packet to send [04:30:24]OFD Sender: No OFD packet to send [04:30:29]OFD Sender: No OFD packet to send [04:30:34]OFD Sender: No OFD packet to send [04:30:39]OFD Sender: No OFD packet to send [04:30:44]OFD Sender: No OFD packet to send [04:30:49]OFD Sender: No OFD packet to send [04:30:54]OFD Sender: No OFD packet to send [04:30:59]OFD Sender: No OFD packet to send [04:31:04]OFD Sender: No OFD packet to send [04:31:09]OFD Sender: No OFD packet to send [04:31:14]OFD Sender: No OFD packet to send [04:31:19]OFD Sender: No OFD packet to send [04:31:24]OFD Sender: No OFD packet to send [04:31:29]OFD Sender: No OFD packet to send [04:31:34]OFD Sender: No OFD packet to send [04:31:39]OFD Sender: No OFD packet to send [04:31:44]OFD Sender: No OFD packet to send [04:31:49]OFD Sender: No OFD packet to send [04:31:54]OFD Sender: No OFD packet to send [04:31:59]OFD Sender: No OFD packet to send [04:32:04]OFD Sender: No OFD packet to send [04:32:09]OFD Sender: No OFD packet to send [04:32:14]OFD Sender: No OFD packet to send [04:32:19]OFD Sender: No OFD packet to send [04:32:24]OFD Sender: No OFD packet to send [04:32:29]OFD Sender: No OFD packet to send [04:32:34]OFD Sender: No OFD packet to send [04:32:39]OFD Sender: No OFD packet to send [04:32:44]OFD Sender: No OFD packet to send [04:32:49]OFD Sender: No OFD packet to send [04:32:54]OFD Sender: No OFD packet to send [04:32:59]OFD Sender: No OFD packet to send [04:33:04]OFD Sender: No OFD packet to send [04:33:09]OFD Sender: No OFD packet to send [04:33:14]OFD Sender: No OFD packet to send [04:33:20]OFD Sender: No OFD packet to send [04:33:25]OFD Sender: No OFD packet to send [04:33:30]OFD Sender: No OFD packet to send [04:33:35]OFD Sender: No OFD packet to send [04:33:40]OFD Sender: No OFD packet to send [04:33:45]OFD Sender: No OFD packet to send [04:33:50]OFD Sender: No OFD packet to send [04:33:55]OFD Sender: No OFD packet to send [04:34:00]OFD Sender: No OFD packet to send [04:34:05]OFD Sender: No OFD packet to send [04:34:10]OFD Sender: No OFD packet to send [04:34:15]OFD Sender: No OFD packet to send [04:34:20]OFD Sender: No OFD packet to send [04:34:25]OFD Sender: No OFD packet to send [04:34:30]OFD Sender: No OFD packet to send [04:34:35]OFD Sender: No OFD packet to send [04:34:40]OFD Sender: No OFD packet to send [04:34:45]OFD Sender: No OFD packet to send [04:34:50]OFD Sender: No OFD packet to send [04:34:55]OFD Sender: No OFD packet to send [04:35:00]OFD Sender: No OFD packet to send [04:35:05]OFD Sender: No OFD packet to send [04:35:10]OFD Sender: No OFD packet to send [04:35:15]OFD Sender: No OFD packet to send [04:35:20]OFD Sender: No OFD packet to send [04:35:25]OFD Sender: No OFD packet to send [04:35:30]OFD Sender: No OFD packet to send [04:35:35]OFD Sender: No OFD packet to send [04:35:40]OFD Sender: No OFD packet to send [04:35:45]OFD Sender: No OFD packet to send [04:35:50]OFD Sender: No OFD packet to send [04:35:55]OFD Sender: No OFD packet to send [04:36:00]OFD Sender: No OFD packet to send [04:36:05]OFD Sender: No OFD packet to send [04:36:10]OFD Sender: No OFD packet to send [04:36:15]OFD Sender: No OFD packet to send [04:36:20]OFD Sender: No OFD packet to send [04:36:25]OFD Sender: No OFD packet to send [04:36:30]OFD Sender: No OFD packet to send [04:36:35]OFD Sender: No OFD packet to send [04:36:40]OFD Sender: No OFD packet to send [04:36:45]OFD Sender: No OFD packet to send [04:36:50]OFD Sender: No OFD packet to send [04:36:55]OFD Sender: No OFD packet to send [04:37:00]OFD Sender: No OFD packet to send [04:37:05]OFD Sender: No OFD packet to send [04:37:11]OFD Sender: No OFD packet to send [04:37:16]OFD Sender: No OFD packet to send [04:37:21]OFD Sender: No OFD packet to send [04:37:26]OFD Sender: No OFD packet to send [04:37:31]OFD Sender: No OFD packet to send [04:37:36]OFD Sender: No OFD packet to send [04:37:41]OFD Sender: No OFD packet to send [04:37:46]OFD Sender: No OFD packet to send [04:37:51]OFD Sender: No OFD packet to send [04:37:56]OFD Sender: No OFD packet to send [04:38:01]OFD Sender: No OFD packet to send [04:38:06]OFD Sender: No OFD packet to send [04:38:11]OFD Sender: No OFD packet to send [04:38:16]OFD Sender: No OFD packet to send [04:38:21]OFD Sender: No OFD packet to send [04:38:26]OFD Sender: No OFD packet to send [04:38:31]OFD Sender: No OFD packet to send [04:38:36]OFD Sender: No OFD packet to send [04:38:41]OFD Sender: No OFD packet to send [04:38:46]OFD Sender: No OFD packet to send [04:38:51]OFD Sender: No OFD packet to send [04:38:56]OFD Sender: No OFD packet to send [04:39:01]OFD Sender: No OFD packet to send [04:39:06]OFD Sender: No OFD packet to send [04:39:11]OFD Sender: No OFD packet to send [04:39:16]OFD Sender: No OFD packet to send [04:39:21]OFD Sender: No OFD packet to send [04:39:26]OFD Sender: No OFD packet to send [04:39:31]OFD Sender: No OFD packet to send [04:39:36]OFD Sender: No OFD packet to send [04:39:41]OFD Sender: No OFD packet to send [04:39:46]OFD Sender: No OFD packet to send [04:39:51]OFD Sender: No OFD packet to send [04:39:56]OFD Sender: No OFD packet to send [04:40:01]OFD Sender: No OFD packet to send [04:40:06]OFD Sender: No OFD packet to send [04:40:11]OFD Sender: No OFD packet to send [04:40:16]OFD Sender: No OFD packet to send [04:40:21]OFD Sender: No OFD packet to send [04:40:26]OFD Sender: No OFD packet to send [04:40:31]OFD Sender: No OFD packet to send [04:40:36]OFD Sender: No OFD packet to send [04:40:41]OFD Sender: No OFD packet to send [04:40:46]OFD Sender: No OFD packet to send [04:40:51]OFD Sender: No OFD packet to send [04:40:56]OFD Sender: No OFD packet to send [04:41:02]OFD Sender: No OFD packet to send [04:41:07]OFD Sender: No OFD packet to send [04:41:12]OFD Sender: No OFD packet to send [04:41:17]OFD Sender: No OFD packet to send [04:41:22]OFD Sender: No OFD packet to send [04:41:27]OFD Sender: No OFD packet to send [04:41:32]OFD Sender: No OFD packet to send [04:41:37]OFD Sender: No OFD packet to send [04:41:42]OFD Sender: No OFD packet to send [04:41:47]OFD Sender: No OFD packet to send [04:41:52]OFD Sender: No OFD packet to send [04:41:57]OFD Sender: No OFD packet to send [04:42:02]OFD Sender: No OFD packet to send [04:42:07]OFD Sender: No OFD packet to send [04:42:12]OFD Sender: No OFD packet to send [04:42:17]OFD Sender: No OFD packet to send [04:42:22]OFD Sender: No OFD packet to send [04:42:27]OFD Sender: No OFD packet to send [04:42:32]OFD Sender: No OFD packet to send [04:42:37]OFD Sender: No OFD packet to send [04:42:42]OFD Sender: No OFD packet to send [04:42:47]OFD Sender: No OFD packet to send [04:42:52]OFD Sender: No OFD packet to send [04:42:57]OFD Sender: No OFD packet to send [04:43:02]OFD Sender: No OFD packet to send [04:43:07]OFD Sender: No OFD packet to send [04:43:12]OFD Sender: No OFD packet to send [04:43:17]OFD Sender: No OFD packet to send [04:43:22]OFD Sender: No OFD packet to send [04:43:27]OFD Sender: No OFD packet to send [04:43:32]OFD Sender: No OFD packet to send [04:43:37]OFD Sender: No OFD packet to send [04:43:42]OFD Sender: No OFD packet to send [04:43:47]OFD Sender: No OFD packet to send [04:43:52]OFD Sender: No OFD packet to send [04:43:57]OFD Sender: No OFD packet to send [04:44:02]OFD Sender: No OFD packet to send [04:44:07]OFD Sender: No OFD packet to send [04:44:12]OFD Sender: No OFD packet to send [04:44:17]OFD Sender: No OFD packet to send [04:44:22]OFD Sender: No OFD packet to send [04:44:27]OFD Sender: No OFD packet to send [04:44:32]OFD Sender: No OFD packet to send [04:44:37]OFD Sender: No OFD packet to send [04:44:42]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:39]OFD Sender: No OFD packet to send [04:48:41]accept exits with 8 [04:48:41]New connection [04:48:41]New thread 3067157860 created [04:48:41]Thread 3067014500 joined [04:48:41]Waiting for new connection... [04:48:41] Sock 8.Parse request [04:48:41]Sock 8.Check first char [04:48:41]Sock 8.First char is OK [04:48:41]request: POST /json_proto HTTP/1.0 [04:48:41]Method: POST [04:48:41]URL: /json_proto [04:48:41]Method is POST - this is cgi request [04:48:41]url: /json_proto [04:48:41]query_string will be loaded in cgi processing [04:48:41]execute_cgi json_proto POST (null) [04:48:41]execute_cgi path=json_proto method=POST [04:48:41]POST find Content-Length [04:48:41]Host: 172.17.42.131:8080 [04:48:41]Content-Length: 682 [04:48:41]Content-Type: application/json [04:48:41] [04:48:41]POST finish read [04:48:41]Found Content-Length = 682 [04:48:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209611", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "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" ] } } [04:48:41]execute_script... [04: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)209611", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "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" ] } } [04:48:41]POST & json_proto [04:48:41]process_json_proto [04:48:41]json parsed OK: [04:48:41]protocol is kg_v1.0 [04:48:41]action value=close_receipt [04:48:41]process_action close_receipt [04:48:41]cmd_close_receipt [04:48:41]MH_GetDate [04:48:41]Write to MH i2c: F0 00 00 51 25 65 [04:48:41]Write i2c OK [04:48:41]MH_I2C_Read... [04:48:41]Read from MH i2c: F0 [04:48:41]MH_I2C_Read... [04:48:41]Read from MH i2c: F0 09 00 [04:48:41]MH_I2C_Read... [04:48:41]Read from MH i2c: F0 09 00 51 25 00 2B DD 15 67 A0 18 CA 66 DA [04:48:41]GetLastDocTimeStamp 1729481774 [04:48:41]current date 1729486123 [04:48:41]FM_GetShiftState [04:48:41]SAM_PROTO_GetShiftState [04:48:41]wFMCommunicate request_size=4 [04:48:41]MH_SAM_APDU [04:48:41]CAPDU: 80 13 01 00 [04:48:41]Write to MH i2c: E2 08 00 52 25 80 13 01 00 00 00 00 00 F4 [04:48:41]Write i2c OK [04:48:41]MH_I2C_Read... [04:48:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:48:41]Read from MH i2c: E2 [04:48:41]MH_I2C_Read... [04:48:41]Read from MH i2c: E2 0E 00 [04:48:41]MH_I2C_Read... [04:48:41]Read from MH i2c: E2 0E 00 52 25 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 53 [04:48:41]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [04:48:41]wFMCommunicate OK [04:48:41]SAM_PROTO_GetShiftState done [04:48:41]FM_GetShiftState done [04:48:41]opened in 1729469754 [04:48:41]opened+sec_in_day 1729556154 [04:48:41]quantity*price = 100015 [04:48:41]sum+1 = 100017 [04:48: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 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 24 21.10.2024 04:48 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 187560 ФПД: 15708931814664 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T044843&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187560&fm=15708931814664&tin=02508201610067®Number=0000000000100030&sum=100000 [04:48:42]StoreToDocumentArchive [04:48:42]shift 460 fd 187560 [04:48:42]save to /storage/0460/doc_00187560 [04:48:42]save last doc name /storage/0460/doc_00187560 to /storage/kkm_last_doc_name [04:48:42]save OK [04:48:42]Clear old archive folders... [04:48:42]ProcessDocumentItem done err = 0, tmpTLVsize=251 [04:48:42]tlvbuf is 010C7AF0 [04:48:42]SAM_PROTO_ClearQueue [04:48:42]wFMCommunicate request_size=4 [04:48:42]MH_SAM_APDU [04:48:42]CAPDU: 80 09 00 00 [04:48:42]Write to MH i2c: E2 08 00 5F 25 80 09 00 00 00 00 00 00 F6 [04:48:42]Write i2c OK [04:48:42]MH_I2C_Read... [04:48:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [04:48:42]Read from MH i2c: E2 [04:48:42]MH_I2C_Read... [04:48:42]Read from MH i2c: E2 03 00 [04:48:42]MH_I2C_Read... [04:48:42]Read from MH i2c: E2 03 00 5F 25 00 90 00 F8 [04:48:42]RAPDU: 90 00 [04:48:42]wFMCommunicate OK [04:48:42]SAM_PROTO_ClearQueue done [04:48:42]KKMCreateOFDPacket [04:48:42]OFDProtocolAddRootSTLVToBuf [04:48:42]FM_MakeSignedData [04:48:42]FM_MakeSignedData [04:48:42]SAM_PROTO_SignData [04:48:42]wFMCommunicate request_size=4 [04:48:42]MH_SAM_APDU [04:48:42]CAPDU: 80 0D 01 02 [04:48:42]Write to MH i2c: E2 08 00 60 25 80 0D 01 02 00 00 00 00 FE [04:48:42]Write i2c OK [04:48:42]MH_I2C_Read... [04:48:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [04:48:42]Read from MH i2c: E2 [04:48:42]MH_I2C_Read... [04:48:42]Read from MH i2c: E2 03 00 [04:48:42]MH_I2C_Read... [04:48:42]Read from MH i2c: E2 03 00 60 25 00 90 00 F9 [04:48:42]RAPDU: 90 00 [04:48:42]wFMCommunicate OK [04:48:42]wFMCommunicate request_size=255 [04:48:42]MH_SAM_APDU [04:48: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 33 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 18 00 00 00 F4 03 04 00 2B DD 15 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 A8 DC 02 00 35 04 06 00 0E [04:48:42]Write to MH i2c: E2 02 01 61 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 33 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 18 00 00 00 F4 03 04 00 2B DD 15 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 A8 DC 02 00 35 04 06 00 0E 00 00 68 [04:48:42]Write i2c OK [04:48:42]MH_I2C_Read... [04:48:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:48:42]Read from MH i2c: E2 [04:48:42]MH_I2C_Read... [04:48:42]Read from MH i2c: E2 03 00 [04:48:42]MH_I2C_Read... [04:48:42]Read from MH i2c: E2 03 00 61 25 00 90 00 FA [04:48:42]RAPDU: 90 00 [04:48:42]wFMCommunicate OK [04:48:42]wFMCommunicate request_size=10 [04:48:42]MH_SAM_APDU [04:48:42]CAPDU: 80 0D 02 02 05 49 85 4C F5 08 [04:48:42]Write to MH i2c: E2 0D 00 62 25 80 0D 02 02 05 00 49 85 4C F5 08 00 00 22 [04:48:42]Write i2c OK [04:48:42]MH_I2C_Read... [04:48:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:48:42]Read from MH i2c: E2 [04:48:42]MH_I2C_Read... [04:48:42]Read from MH i2c: E2 03 00 [04:48:42]MH_I2C_Read... [04:48:42]Read from MH i2c: E2 03 00 62 25 00 90 00 FB [04:48:42]RAPDU: 90 00 [04:48:42]wFMCommunicate OK [04:48:42]wFMCommunicate request_size=4 [04:48:42]MH_SAM_APDU [04:48:42]CAPDU: 80 0D 03 02 [04:48:42]Write to MH i2c: E2 08 00 63 25 80 0D 03 02 00 00 00 00 03 [04:48:42]Write i2c OK [04:48:42]MH_I2C_Read... [04:48:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [04:48:42]Read from MH i2c: E2 [04:48:42]MH_I2C_Read... [04:48:42]Read from MH i2c: E2 0B 00 [04:48:42]MH_I2C_Read... [04:48:42]Read from MH i2c: E2 0B 00 63 25 00 E3 7E 40 C2 C4 DD 78 07 90 00 87 [04:48:42]RAPDU: E3 7E 40 C2 C4 DD 78 07 90 00 [04:48:42]wFMCommunicate OK [04:48:42]SAM_PROTO_SignData done [04:48:42]FM_MakeSignedData done [04:48:42]CreateOFDProtocolMessage [04:48:42]wFMCommunicate request_size=4 [04:48:42]MH_SAM_APDU [04:48:42]CAPDU: 80 11 00 00 [04:48:42]Write to MH i2c: E2 08 00 64 25 80 11 00 00 00 00 00 00 03 [04:48:42]Write i2c OK [04:48:42]MH_I2C_Read... [04:48:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:48:42]Read from MH i2c: E2 [04:48:42]MH_I2C_Read... [04:48:42]Read from MH i2c: E2 17 00 [04:48:42]MH_I2C_Read... [04:48:42]Read from MH i2c: E2 17 00 64 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 51 [04:48:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [04:48:42]wFMCommunicate OK [04:48:42]CreateOFDProtocolMessage done [04:48:42]OFDSenderStorePacket 187560 [04:48:42]StoreOFDPacket docnum=187560 [04:48:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 AD 8B 07 01 5E 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 33 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 18 00 00 00 F4 03 04 00 2B DD 15 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 A8 DC 02 00 35 04 06 00 0E 49 85 4C F5 08 E3 7E 40 C2 C4 DD 78 07 [04:48:42]CheckFolder [04:48:42]dirname=/storage/ofd_packets [04:48:42]CheckFolder done [04:48:42]ProducePacketName [04:48:42]name=ofd_packets/00187560 [04:48:42]NVStorageSaveData ofd_packets/00187560 [04:48:42]File name is /storage/ofd_packets/00187560 [04:48:42]Write 301 bytes [04:48:42]NVStorageSaveData done [04:48:42]OFDSenderStorePacket done [04:48:42]KKMCreateOFDPacket done [04:48:42]NVStorageSaveData kkm_last_timestamp [04:48:42]File name is /storage/kkm_last_timestamp [04:48:42]Write 4 bytes [04:48:42]NVStorageSaveData done [04:48:42]ExternCall_PrintAddStr [04:48:42]wPrintStart [04:48:42]Write to MH i2c: 01 00 00 65 25 8A [04:48:42]Write i2c OK [04:48:42]MH_I2C_Read... [04:48:42]Read from MH i2c: 01 [04:48:42]MH_I2C_Read... [04:48:42]Read from MH i2c: 01 07 00 [04:48:42]MH_I2C_Read... [04:48:42]Read from MH i2c: 01 07 00 65 25 00 00 00 00 00 FF 0F 9F [04:48:42]RasterBufferAndPrint [04:48:42]line Счет N : (1)209611 [04:48:42]line ИНН: 02508201610067 [04:48:42]line Контрольно-Кассовый Чек [04:48:42]line ПРОДАЖА [04:48:42]line ТРК (МРК, ГНК) : 12 [04:48:42]line Товар: 2710124130 [04:48:42]line Аи-92-К-3 [04:48:42]line 14.950 * 66.90 [04:48:42]line = 1000.16 [04:48:42]line НДС 12% НСП 1% [04:48:42]line > о реализуемом товаре [04:48:42]line ОКРУГЛЕНИЕ: -0.16 [04:48:42]line ИТОГО: 1000.00 [04:48:42]line Внесено: 1000.00 [04:48:42]line СДАЧА: 0.00 [04:48:42]line НСП 1% : 8.85 [04:48:42]line НДС 12% : 106.21 [04:48:42]line Наличными: 1000.00 [04:48:42]line Безнал.: 0.00 [04:48:42]line Место: АЗС № 86 "Партнер Нефть" [04:48:42]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [04:48:42]line СНО: Общий режим [04:48:42]line Чек 24 21.10.2024 04:48 [04:48:42]line Смена: 460 ФФД: 1.0 [04:48:42]line ЗНМ: 0300000155 [04:48:42]line РНМ: 0000000000100030 [04:48:42]line Версия ККМ: 001 [04:48:42]line ФМ: 0000000000965340 [04:48:42]line ФД: 187560 [04:48:42]line ФПД: 15708931814664 [04:48:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T044843&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187560&fm=15708931814664&tin=02508201610067®Number=0000000000100030&sum=100000 [04:48:42]written 0, free lines is 4095 [04:48:43]OFD Sender: Processing packet 187560 [packets to send 1062, broken 1061] [04:48:43]ProducePacketName [04:48:43]name=ofd_packets/00187560 [04:48:43]OFD Sender: To server: pG, [04:48:43]CommunicateWithHost lk.salyk.kg:30040 [04:48:43]ConnectInit lk.salyk.kg [04:48:43]Connected sock=10 [04:48:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 AD 8B 07 01 5E 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 33 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 18 00 00 00 F4 03 04 00 2B DD 15 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 A8 DC 02 00 35 04 06 00 0E 49 85 4C F5 08 E3 7E 40 C2 C4 DD 78 07 [04:48:43]Write to MH i2c: 01 00 00 90 25 B5 [04:48:43]Write i2c OK [04:48:43]MH_I2C_Read... [04:48:43]Read from MH i2c: 01 [04:48:43]MH_I2C_Read... [04:48:43]Read from MH i2c: 01 07 00 [04:48:43]MH_I2C_Read... [04:48:43]Read from MH i2c: 01 07 00 90 25 00 00 00 00 00 48 0C 10 [04:48:43]RasterBufferAndPrint [04:48:43]line [04:48:43]line [04:48:43]line [04:48:43]line [04:48:43]line [04:48:43]written 0, free lines is 3149 [04:48:43]MH_Cut [04:48:43]Write to MH i2c: D1 01 00 97 25 01 8E [04:48:43]Write i2c OK [04:48:43]MH_I2C_Read... [04:48:43]Read from MH i2c: D1 [04:48:43]MH_I2C_Read... [04:48:43]Read from MH i2c: D1 01 00 [04:48:43]MH_I2C_Read... [04:48:43]Read from MH i2c: D1 01 00 97 25 00 8D [04:48:43]Write to MH i2c: 01 00 00 98 25 BD [04:48:43]Write i2c OK [04:48:43]MH_I2C_Read... [04:48:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 C0 45 47 00 F9 27 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 A8 DC 02 00 F4 03 04 00 1C 87 15 67 B6 04 01 00 00 50 49 E9 7A 60 70 48 4F [04:48:43]CommunicateWithHost err = 0 [04:48:43]CheckOFDResponse [04:48:43]1017 (14) - 77093643461234 [04:48:43]1041 (16) - 0000000000965340 [04:48:43]1040 (4) - 187560 [04:48:43]1012 (4) - 20.10.2024 22:41 [04:48:43]1206 (1) - 0 [04:48:43]OFD Sender: Remove packet 187560 [04:48:43]ProducePacketName [04:48:43]name=ofd_packets/00187560 [04:48:43]NVStorageDeleteData [04:48:44]OFD Sender: No OFD packet to send [04:48:44]*** Cut start [04:48:44]*** Partial cut [04:48:44]*** CUTSNS_PIN = 1 [04:48:44]*** CUTSNS_PIN = 0 [04:48:45]*** Brake cut motor [04:48:45]Read from MH i2c: 01 [04:48:45]MH_I2C_Read... [04:48:45]*** Stop cut motor [04:48:45]*** Cut end [04:48:45]Read from MH i2c: 01 07 00 [04:48:45]MH_I2C_Read... [04:48:45]Read from MH i2c: 01 07 00 98 25 00 00 00 00 00 FF 0F D2 [04:48:45]process_action close_receipt done [04:48:45]requested_data is exist [04:48:45]produce_requested_data [04:48:45]requested_item fm.sn is exist - process it [04:48:45]wFMCommunicate request_size=4 [04:48:45]MH_SAM_APDU [04:48:45]CAPDU: 80 11 00 00 [04:48:45]Write to MH i2c: E2 08 00 99 25 80 11 00 00 00 00 00 00 38 [04:48:45]Write i2c OK [04:48:45]MH_I2C_Read... [04:48:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:48:45]Read from MH i2c: E2 [04:48:45]MH_I2C_Read... [04:48:45]Read from MH i2c: E2 17 00 [04:48:45]MH_I2C_Read... [04:48:45]Read from MH i2c: E2 17 00 99 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 86 [04:48:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [04:48:45]wFMCommunicate OK [04:48:45]requested_item fd.num is exist - process it [04:48:45]SAM_PROTO_GetFieldsCounters [04:48:45]wFMCommunicate request_size=4 [04:48:45]MH_SAM_APDU [04:48:45]CAPDU: 80 13 00 00 [04:48:45]Write to MH i2c: E2 08 00 9A 25 80 13 00 00 00 00 00 00 3B [04:48:45]Write i2c OK [04:48:45]MH_I2C_Read... [04:48:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [04:48:45]Read from MH i2c: E2 [04:48:45]MH_I2C_Read... [04:48:45]Read from MH i2c: E2 62 00 [04:48:45]MH_I2C_Read... [04:48:45]Read from MH i2c: E2 62 00 9A 25 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 A8 DC 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 18 00 00 00 5E 04 04 00 18 00 00 00 57 04 04 00 19 00 00 00 19 04 04 00 00 00 00 00 90 00 DD [04:48:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 A8 DC 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 18 00 00 00 5E 04 04 00 18 00 00 00 57 04 04 00 19 00 00 00 19 04 04 00 00 00 00 00 90 00 [04:48:45]wFMCommunicate OK [04:48:45]SAM_PROTO_GetFieldsCounters done [04:48:45]requested_item shift.num is exist - process it [04:48:45]requested_item shift.opened is exist - process it [04:48:45]req_shift_opened [04:48:45]FM_GetShiftState [04:48:45]SAM_PROTO_GetShiftState [04:48:45]wFMCommunicate request_size=4 [04:48:45]MH_SAM_APDU [04:48:45]CAPDU: 80 13 01 00 [04:48:45]Write to MH i2c: E2 08 00 9B 25 80 13 01 00 00 00 00 00 3D [04:48:45]Write i2c OK [04:48:45]MH_I2C_Read... [04:48:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:48:45]Read from MH i2c: E2 [04:48:45]MH_I2C_Read... [04:48:45]Read from MH i2c: E2 0E 00 [04:48:45]MH_I2C_Read... [04:48:45]Read from MH i2c: E2 0E 00 9B 25 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 9C [04:48:45]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [04:48:45]wFMCommunicate OK [04:48:45]SAM_PROTO_GetShiftState done [04:48:45]FM_GetShiftState done [04:48:45]req_shift_opened done [04:48:45]requested_item shift.open_date is exist - process it [04:48:45]req_shift_open_date [04:48:45]req_shift_open_date done [04:48:45]produce_requested_data done [04:48:45]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187560,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [04:48:45]process_action_free close_receipt [04:48:45]json_value_free [04:48:45]json_value_free done [04:48:45]process_json_proto returns [04:48:45]Send response to host [04:48:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187560,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [04:48:45]free response buf [04:48:45]execute_script done [04:48:45]execute_script returns [04:48:45]free content buf [04:48:45]Sock 8.Close socket [04:48:45]Sock 8.Thread stoped [04:48:49]OFD Sender: No OFD packet to send [04:48:54]OFD Sender: No OFD packet to send [04:48:59]OFD Sender: No OFD packet to send [04:49:04]OFD Sender: No OFD packet to send [04:49:09]OFD Sender: No OFD packet to send [04:49:14]OFD Sender: No OFD packet to send [04:49:19]OFD Sender: No OFD packet to send [04:49:24]OFD Sender: No OFD packet to send [04:49:29]OFD Sender: No OFD packet to send [04:49:34]OFD Sender: No OFD packet to send [04:49:39]OFD Sender: No OFD packet to send [04:49:44]OFD Sender: No OFD packet to send [04:49:49]OFD Sender: No OFD packet to send [04:49:54]OFD Sender: No OFD packet to send [04:49:59]OFD Sender: No OFD packet to send [04:50:04]OFD Sender: No OFD packet to send [04:50:09]OFD Sender: No OFD packet to send [04:50:14]OFD Sender: No OFD packet to send [04:50:19]OFD Sender: No OFD packet to send [04:50:24]OFD Sender: No OFD packet to send [04:50:29]OFD Sender: No OFD packet to send [04:50:34]OFD Sender: No OFD packet to send [04:50:39]OFD Sender: No OFD packet to send [04:50:44]OFD Sender: No OFD packet to send [04:50:49]OFD Sender: No OFD packet to send [04:50:54]OFD Sender: No OFD packet to send [04:50:59]OFD Sender: No OFD packet to send [04:51:04]OFD Sender: No OFD packet to send [04:51:09]OFD Sender: No OFD packet to send [04:51:14]OFD Sender: No OFD packet to send [04:51:19]OFD Sender: No OFD packet to send [04:51:24]OFD Sender: No OFD packet to send [04:51:29]OFD Sender: No OFD packet to send [04:51:34]OFD Sender: No OFD packet to send [04:51:39]OFD Sender: No OFD packet to send [04:51:44]OFD Sender: No OFD packet to send [04:51:49]OFD Sender: No OFD packet to send [04:51:54]OFD Sender: No OFD packet to send [04:51:59]OFD Sender: No OFD packet to send [04:52:04]OFD Sender: No OFD packet to send [04:52:10]OFD Sender: No OFD packet to send [04:52:15]OFD Sender: No OFD packet to send [04:52:20]OFD Sender: No OFD packet to send [04:52:25]OFD Sender: No OFD packet to send [04:52:30]OFD Sender: No OFD packet to send [04:52:35]OFD Sender: No OFD packet to send [04:52:40]OFD Sender: No OFD packet to send [04:52:45]OFD Sender: No OFD packet to send [04:52:50]OFD Sender: No OFD packet to send [04:52:55]OFD Sender: No OFD packet to send [04:53:00]OFD Sender: No OFD packet to send [04:53:05]OFD Sender: No OFD packet to send [04:53:10]OFD Sender: No OFD packet to send [04:53:15]OFD Sender: No OFD packet to send [04:53:20]OFD Sender: No OFD packet to send [04:53:25]OFD Sender: No OFD packet to send [04:53:30]OFD Sender: No OFD packet to send [04:53:35]OFD Sender: No OFD packet to send [04:53:40]OFD Sender: No OFD packet to send [04:53:45]OFD Sender: No OFD packet to send [04:53:50]OFD Sender: No OFD packet to send [04:53:55]OFD Sender: No OFD packet to send [04:54:00]OFD Sender: No OFD packet to send [04:54:05]OFD Sender: No OFD packet to send [04:54:10]OFD Sender: No OFD packet to send [04:54:15]OFD Sender: No OFD packet to send [04:54:20]OFD Sender: No OFD packet to send [04:54:25]OFD Sender: No OFD packet to send [04:54:30]OFD Sender: No OFD packet to send [04:54:35]OFD Sender: No OFD packet to send [04:54:40]OFD Sender: No OFD packet to send [04:54:45]OFD Sender: No OFD packet to send [04:54:50]OFD Sender: No OFD packet to send [04:54:55]OFD Sender: No OFD packet to send [04:55:00]OFD Sender: No OFD packet to send [04:55:05]OFD Sender: No OFD packet to send [04:55:10]OFD Sender: No OFD packet to send [04:55:15]OFD Sender: No OFD packet to send [04:55:20]OFD Sender: No OFD packet to send [04:55:25]OFD Sender: No OFD packet to send [04:55:30]OFD Sender: No OFD packet to send [04:55:35]OFD Sender: No OFD packet to send [04:55:40]OFD Sender: No OFD packet to send [04:55:45]OFD Sender: No OFD packet to send [04:55:50]OFD Sender: No OFD packet to send [04:55:56]OFD Sender: No OFD packet to send [04:56:01]OFD Sender: No OFD packet to send [04:56:06]OFD Sender: No OFD packet to send [04:56:11]OFD Sender: No OFD packet to send [04:56:16]OFD Sender: No OFD packet to send [04:56:21]OFD Sender: No OFD packet to send [04:56:26]OFD Sender: No OFD packet to send [04:56:31]OFD Sender: No OFD packet to send [04:56:36]OFD Sender: No OFD packet to send [04:56:41]OFD Sender: No OFD packet to send [04:56:46]OFD Sender: No OFD packet to send [04:56:51]OFD Sender: No OFD packet to send [04:56:56]OFD Sender: No OFD packet to send [04:57:01]OFD Sender: No OFD packet to send [04:57:06]OFD Sender: No OFD packet to send [04:57:11]OFD Sender: No OFD packet to send [04:57:16]OFD Sender: No OFD packet to send [04:57:21]OFD Sender: No OFD packet to send [04:57:26]OFD Sender: No OFD packet to send [04:57:31]OFD Sender: No OFD packet to send [04:57:36]OFD Sender: No OFD packet to send [04:57:41]OFD Sender: No OFD packet to send [04:57:46]OFD Sender: No OFD packet to send [04:57:51]OFD Sender: No OFD packet to send [04:57:56]OFD Sender: No OFD packet to send [04:58:01]OFD Sender: No OFD packet to send [04:58:06]OFD Sender: No OFD packet to send [04:58:11]OFD Sender: No OFD packet to send [04:58:16]OFD Sender: No OFD packet to send [04:58:21]OFD Sender: No OFD packet to send [04:58:26]OFD Sender: No OFD packet to send [04:58:31]OFD Sender: No OFD packet to send [04:58:36]OFD Sender: No OFD packet to send [04:58:41]OFD Sender: No OFD packet to send [04:58:46]OFD Sender: No OFD packet to send [04:58:51]OFD Sender: No OFD packet to send [04:58:56]OFD Sender: No OFD packet to send [04:59:01]OFD Sender: No OFD packet to send [04:59:06]OFD Sender: No OFD packet to send [04:59:11]OFD Sender: No OFD packet to send [04:59:16]OFD Sender: No OFD packet to send [04:59:21]OFD Sender: No OFD packet to send [04:59:26]OFD Sender: No OFD packet to send [04:59:31]OFD Sender: No OFD packet to send [04:59:36]OFD Sender: No OFD packet to send [04:59:41]OFD Sender: No OFD packet to send [04:59:47]OFD Sender: No OFD packet to send [04:59:52]OFD Sender: No OFD packet to send [04:59:57]OFD Sender: No OFD packet to send [05:00:02]OFD Sender: No OFD packet to send [05:00:07]OFD Sender: No OFD packet to send [05:00:12]OFD Sender: No OFD packet to send [05:00:17]OFD Sender: No OFD packet to send [05:00:22]OFD Sender: No OFD packet to send [05:00:27]OFD Sender: No OFD packet to send [05:00:32]OFD Sender: No OFD packet to send [05:00:37]OFD Sender: No OFD packet to send [05:00:42]OFD Sender: No OFD packet to send [05:00:47]OFD Sender: No OFD packet to send [05:00:52]OFD Sender: No OFD packet to send [05:00:57]OFD Sender: No OFD packet to send [05:01:02]OFD Sender: No OFD packet to send [05:01:07]OFD Sender: No OFD packet to send [05:01:12]OFD Sender: No OFD packet to send [05:01:17]OFD Sender: No OFD packet to send [05:01:22]OFD Sender: No OFD packet to send [05:01:27]OFD Sender: No OFD packet to send [05:01:32]OFD Sender: No OFD packet to send [05:01:37]OFD Sender: No OFD packet to send [05:01:42]OFD Sender: No OFD packet to send [05:01:47]OFD Sender: No OFD packet to send [05:01:52]OFD Sender: No OFD packet to send [05:01:57]OFD Sender: No OFD packet to send [05:02:02]OFD Sender: No OFD packet to send [05:02:07]OFD Sender: No OFD packet to send [05:02:12]OFD Sender: No OFD packet to send [05:02:17]OFD Sender: No OFD packet to send [05:02:22]OFD Sender: No OFD packet to send [05:02:27]OFD Sender: No OFD packet to send [05:02:32]OFD Sender: No OFD packet to send [05:02:37]OFD Sender: No OFD packet to send [05:02:42]OFD Sender: No OFD packet to send [05:02:47]OFD Sender: No OFD packet to send [05:02:52]OFD Sender: No OFD packet to send [05:02:57]OFD Sender: No OFD packet to send [05:03:02]OFD Sender: No OFD packet to send [05:03:07]OFD Sender: No OFD packet to send [05:03:12]OFD Sender: No OFD packet to send [05:03:17]OFD Sender: No OFD packet to send [05:03:22]OFD Sender: No OFD packet to send [05:03:27]OFD Sender: No OFD packet to send [05:03:33]OFD Sender: No OFD packet to send [05:03:38]OFD Sender: No OFD packet to send [05:03:43]OFD Sender: No OFD packet to send [05:03:48]OFD Sender: No OFD packet to send [05:03:53]OFD Sender: No OFD packet to send [05:03:58]OFD Sender: No OFD packet to send [05:04:03]OFD Sender: No OFD packet to send [05:04:08]OFD Sender: No OFD packet to send [05:04:13]OFD Sender: No OFD packet to send [05:04:18]OFD Sender: No OFD packet to send [05:04:23]OFD Sender: No OFD packet to send [05:04:28]OFD Sender: No OFD packet to send [05:04:33]OFD Sender: No OFD packet to send [05:04:38]OFD Sender: No OFD packet to send [05:04:43]OFD Sender: No OFD packet to send [05:04:48]OFD Sender: No OFD packet to send [05:04:53]OFD Sender: No OFD packet to send [05:04:58]OFD Sender: No OFD packet to send [05:05:03]OFD Sender: No OFD packet to send [05:05:08]OFD Sender: No OFD packet to send [05:05:13]OFD Sender: No OFD packet to send [05:05:18]OFD Sender: No OFD packet to send [05:05:23]OFD Sender: No OFD packet to send [05:05:28]OFD Sender: No OFD packet to send [05:05:33]OFD Sender: No OFD packet to send [05:05:38]OFD Sender: No OFD packet to send [05:05:43]OFD Sender: No OFD packet to send [05:05:48]OFD Sender: No OFD packet to send [05:05:53]OFD Sender: No OFD packet to send [05:05:58]OFD Sender: No OFD packet to send [05:06:03]OFD Sender: No OFD packet to send [05:06:08]OFD Sender: No OFD packet to send [05:06:13]OFD Sender: No OFD packet to send [05:06:18]OFD Sender: No OFD packet to send [05:06:23]OFD Sender: No OFD packet to send [05:06:28]OFD Sender: No OFD packet to send [05:06:33]OFD Sender: No OFD packet to send [05:06:38]OFD Sender: No OFD packet to send [05:06:43]OFD Sender: No OFD packet to send [05:06:48]OFD Sender: No OFD packet to send [05:06:53]OFD Sender: No OFD packet to send [05:06:58]OFD Sender: No OFD packet to send [05:07:03]OFD Sender: No OFD packet to send [05:07:08]OFD Sender: No OFD packet to send [05:07:13]OFD Sender: No OFD packet to send [05:07:18]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:10]OFD Sender: No OFD packet to send [05:11:15]OFD Sender: No OFD packet to send [05:11:20]OFD Sender: No OFD packet to send [05:11:25]OFD Sender: No OFD packet to send [05:11:30]OFD Sender: No OFD packet to send [05:11:35]OFD Sender: No OFD packet to send [05:11:40]OFD Sender: No OFD packet to send [05:11:45]OFD Sender: No OFD packet to send [05:11:50]OFD Sender: No OFD packet to send [05:11:55]OFD Sender: No OFD packet to send [05:12:00]OFD Sender: No OFD packet to send [05:12:05]OFD Sender: No OFD packet to send [05:12:10]OFD Sender: No OFD packet to send [05:12:15]OFD Sender: No OFD packet to send [05:12:20]OFD Sender: No OFD packet to send [05:12:25]OFD Sender: No OFD packet to send [05:12:30]OFD Sender: No OFD packet to send [05:12:35]OFD Sender: No OFD packet to send [05:12:40]OFD Sender: No OFD packet to send [05:12:45]OFD Sender: No OFD packet to send [05:12:50]OFD Sender: No OFD packet to send [05:12:55]OFD Sender: No OFD packet to send [05:13:00]OFD Sender: No OFD packet to send [05:13:05]OFD Sender: No OFD packet to send [05:13:10]OFD Sender: No OFD packet to send [05:13:15]OFD Sender: No OFD packet to send [05:13:20]OFD Sender: No OFD packet to send [05:13:25]OFD Sender: No OFD packet to send [05:13:30]OFD Sender: No OFD packet to send [05:13:35]OFD Sender: No OFD packet to send [05:13:40]OFD Sender: No OFD packet to send [05:13:45]OFD Sender: No OFD packet to send [05:13:50]OFD Sender: No OFD packet to send [05:13:55]OFD Sender: No OFD packet to send [05:14:00]OFD Sender: No OFD packet to send [05:14:05]OFD Sender: No OFD packet to send [05:14:10]OFD Sender: No OFD packet to send [05:14:15]OFD Sender: No OFD packet to send [05:14:20]OFD Sender: No OFD packet to send [05:14:25]OFD Sender: No OFD packet to send [05:14:30]OFD Sender: No OFD packet to send [05:14:35]OFD Sender: No OFD packet to send [05:14:40]OFD Sender: No OFD packet to send [05:14:45]OFD Sender: No OFD packet to send [05:14:50]OFD Sender: No OFD packet to send [05:14:55]OFD Sender: No OFD packet to send [05:15:01]OFD Sender: No OFD packet to send [05:15:06]OFD Sender: No OFD packet to send [05:15:11]OFD Sender: No OFD packet to send [05:15:16]OFD Sender: No OFD packet to send [05:15:21]OFD Sender: No OFD packet to send [05:15:26]OFD Sender: No OFD packet to send [05:15:31]OFD Sender: No OFD packet to send [05:15:36]OFD Sender: No OFD packet to send [05:15:41]OFD Sender: No OFD packet to send [05:15:46]OFD Sender: No OFD packet to send [05:15:51]OFD Sender: No OFD packet to send [05:15:56]OFD Sender: No OFD packet to send [05:16:01]OFD Sender: No OFD packet to send [05:16:06]OFD Sender: No OFD packet to send [05:16:11]OFD Sender: No OFD packet to send [05:16:16]OFD Sender: No OFD packet to send [05:16:21]OFD Sender: No OFD packet to send [05:16:26]OFD Sender: No OFD packet to send [05:16:31]OFD Sender: No OFD packet to send [05:16:36]OFD Sender: No OFD packet to send [05:16:41]OFD Sender: No OFD packet to send [05:16:46]OFD Sender: No OFD packet to send [05:16:51]OFD Sender: No OFD packet to send [05:16:56]OFD Sender: No OFD packet to send [05:17:01]OFD Sender: No OFD packet to send [05:17:06]OFD Sender: No OFD packet to send [05:17:11]OFD Sender: No OFD packet to send [05:17:16]OFD Sender: No OFD packet to send [05:17:21]OFD Sender: No OFD packet to send [05:17:26]OFD Sender: No OFD packet to send [05:17:31]OFD Sender: No OFD packet to send [05:17:36]OFD Sender: No OFD packet to send [05:17:41]OFD Sender: No OFD packet to send [05:17:46]OFD Sender: No OFD packet to send [05:17:51]OFD Sender: No OFD packet to send [05:17:56]OFD Sender: No OFD packet to send [05:18:01]OFD Sender: No OFD packet to send [05:18:06]OFD Sender: No OFD packet to send [05:18:11]OFD Sender: No OFD packet to send [05:18:16]OFD Sender: No OFD packet to send [05:18:21]OFD Sender: No OFD packet to send [05:18:26]OFD Sender: No OFD packet to send [05:18:31]OFD Sender: No OFD packet to send [05:18:36]OFD Sender: No OFD packet to send [05:18:41]OFD Sender: No OFD packet to send [05:18:47]OFD Sender: No OFD packet to send [05:18:52]OFD Sender: No OFD packet to send [05:18:57]OFD Sender: No OFD packet to send [05:19:02]OFD Sender: No OFD packet to send [05:19:07]OFD Sender: No OFD packet to send [05:19:12]OFD Sender: No OFD packet to send [05:19:17]OFD Sender: No OFD packet to send [05:19:22]OFD Sender: No OFD packet to send [05:19:27]OFD Sender: No OFD packet to send [05:19:32]OFD Sender: No OFD packet to send [05:19:37]OFD Sender: No OFD packet to send [05:19:42]OFD Sender: No OFD packet to send [05:19:47]OFD Sender: No OFD packet to send [05:19:52]OFD Sender: No OFD packet to send [05:19:57]OFD Sender: No OFD packet to send [05:20:02]OFD Sender: No OFD packet to send [05:20:07]OFD Sender: No OFD packet to send [05:20:12]OFD Sender: No OFD packet to send [05:20:17]OFD Sender: No OFD packet to send [05:20:22]OFD Sender: No OFD packet to send [05:20:27]OFD Sender: No OFD packet to send [05:20:32]OFD Sender: No OFD packet to send [05:20:37]OFD Sender: No OFD packet to send [05:20:42]OFD Sender: No OFD packet to send [05:20:47]OFD Sender: No OFD packet to send [05:20:52]OFD Sender: No OFD packet to send [05:20:57]OFD Sender: No OFD packet to send [05:21:02]OFD Sender: No OFD packet to send [05:21:07]OFD Sender: No OFD packet to send [05:21:12]OFD Sender: No OFD packet to send [05:21:17]OFD Sender: No OFD packet to send [05:21:22]OFD Sender: No OFD packet to send [05:21:27]OFD Sender: No OFD packet to send [05:21:32]OFD Sender: No OFD packet to send [05:21:37]OFD Sender: No OFD packet to send [05:21:42]OFD Sender: No OFD packet to send [05:21:47]OFD Sender: No OFD packet to send [05:21:52]OFD Sender: No OFD packet to send [05:21:57]OFD Sender: No OFD packet to send [05:22:02]OFD Sender: No OFD packet to send [05:22:07]OFD Sender: No OFD packet to send [05:22:12]OFD Sender: No OFD packet to send [05:22:17]OFD Sender: No OFD packet to send [05:22:22]OFD Sender: No OFD packet to send [05:22:27]OFD Sender: No OFD packet to send [05:22:32]OFD Sender: No OFD packet to send [05:22:38]OFD Sender: No OFD packet to send [05:22:43]OFD Sender: No OFD packet to send [05:22:48]OFD Sender: No OFD packet to send [05:22:53]OFD Sender: No OFD packet to send [05:22:58]OFD Sender: No OFD packet to send [05:23:03]OFD Sender: No OFD packet to send [05:23:08]OFD Sender: No OFD packet to send [05:23:13]OFD Sender: No OFD packet to send [05:23:18]OFD Sender: No OFD packet to send [05:23:23]OFD Sender: No OFD packet to send [05:23:28]OFD Sender: No OFD packet to send [05:23:33]OFD Sender: No OFD packet to send [05:23:38]OFD Sender: No OFD packet to send [05:23:43]OFD Sender: No OFD packet to send [05:23:48]OFD Sender: No OFD packet to send [05:23:53]OFD Sender: No OFD packet to send [05:23:58]OFD Sender: No OFD packet to send [05:24:03]OFD Sender: No OFD packet to send [05:24:08]OFD Sender: No OFD packet to send [05:24:13]OFD Sender: No OFD packet to send [05:24:18]OFD Sender: No OFD packet to send [05:24:23]OFD Sender: No OFD packet to send [05:24:28]OFD Sender: No OFD packet to send [05:24:33]OFD Sender: No OFD packet to send [05:24:38]OFD Sender: No OFD packet to send [05:24:43]OFD Sender: No OFD packet to send [05:24:48]OFD Sender: No OFD packet to send [05:24:53]OFD Sender: No OFD packet to send [05:24:58]OFD Sender: No OFD packet to send [05:25:03]OFD Sender: No OFD packet to send [05:25:08]OFD Sender: No OFD packet to send [05:25:13]OFD Sender: No OFD packet to send [05:25:18]OFD Sender: No OFD packet to send [05:25:23]OFD Sender: No OFD packet to send [05:25:28]OFD Sender: No OFD packet to send [05:25:33]OFD Sender: No OFD packet to send [05:25:38]OFD Sender: No OFD packet to send [05:25:43]OFD Sender: No OFD packet to send [05:25:48]OFD Sender: No OFD packet to send [05:25:53]OFD Sender: No OFD packet to send [05:25:58]OFD Sender: No OFD packet to send [05:26:03]OFD Sender: No OFD packet to send [05:26:08]OFD Sender: No OFD packet to send [05:26:13]OFD Sender: No OFD packet to send [05:26:18]OFD Sender: No OFD packet to send [05:26:24]OFD Sender: No OFD packet to send [05:26:29]OFD Sender: No OFD packet to send [05:26:34]OFD Sender: No OFD packet to send [05:26:39]OFD Sender: No OFD packet to send [05:26:44]OFD Sender: No OFD packet to send [05:26:49]OFD Sender: No OFD packet to send [05:26:54]OFD Sender: No OFD packet to send [05:26:59]OFD Sender: No OFD packet to send [05:27:04]OFD Sender: No OFD packet to send [05:27:09]OFD Sender: No OFD packet to send [05:27:14]OFD Sender: No OFD packet to send [05:27:19]OFD Sender: No OFD packet to send [05:27:24]OFD Sender: No OFD packet to send [05:27:29]OFD Sender: No OFD packet to send [05:27:34]OFD Sender: No OFD packet to send [05:27:39]OFD Sender: No OFD packet to send [05:27:44]OFD Sender: No OFD packet to send [05:27:49]OFD Sender: No OFD packet to send [05:27:54]OFD Sender: No OFD packet to send [05:27:59]OFD Sender: No OFD packet to send [05:28:04]OFD Sender: No OFD packet to send [05:28:09]OFD Sender: No OFD packet to send [05:28:14]OFD Sender: No OFD packet to send [05:28:19]OFD Sender: No OFD packet to send [05:28:24]OFD Sender: No OFD packet to send [05:28:29]OFD Sender: No OFD packet to send [05:28:34]OFD Sender: No OFD packet to send [05:28:39]OFD Sender: No OFD packet to send [05:28:44]OFD Sender: No OFD packet to send [05:28:49]OFD Sender: No OFD packet to send [05:28:54]OFD Sender: No OFD packet to send [05:28:59]OFD Sender: No OFD packet to send [05:29:04]OFD Sender: No OFD packet to send [05:29:09]OFD Sender: No OFD packet to send [05:29:14]OFD Sender: No OFD packet to send [05:29:19]OFD Sender: No OFD packet to send [05:29:24]OFD Sender: No OFD packet to send [05:29:29]OFD Sender: No OFD packet to send [05:29:34]OFD Sender: No OFD packet to send [05:29:39]OFD Sender: No OFD packet to send [05:29:44]OFD Sender: No OFD packet to send [05:29:49]OFD Sender: No OFD packet to send [05:29:54]OFD Sender: No OFD packet to send [05:29:59]OFD Sender: No OFD packet to send [05:30:04]OFD Sender: No OFD packet to send [05:30:09]OFD Sender: No OFD packet to send [05:30:15]OFD Sender: No OFD packet to send [05:30:20]OFD Sender: No OFD packet to send [05:30:25]OFD Sender: No OFD packet to send [05:30:30]OFD Sender: No OFD packet to send [05:30:35]OFD Sender: No OFD packet to send [05:30:40]OFD Sender: No OFD packet to send [05:30:45]OFD Sender: No OFD packet to send [05:30:50]OFD Sender: No OFD packet to send [05:30:55]OFD Sender: No OFD packet to send [05:31:00]OFD Sender: No OFD packet to send [05:31:05]OFD Sender: No OFD packet to send [05:31:10]OFD Sender: No OFD packet to send [05:31:15]OFD Sender: No OFD packet to send [05:31:20]OFD Sender: No OFD packet to send [05:31:25]OFD Sender: No OFD packet to send [05:31:30]OFD Sender: No OFD packet to send [05:31:35]OFD Sender: No OFD packet to send [05:31:40]OFD Sender: No OFD packet to send [05:31:45]OFD Sender: No OFD packet to send [05:31:50]OFD Sender: No OFD packet to send [05:31:55]OFD Sender: No OFD packet to send [05:32:00]OFD Sender: No OFD packet to send [05:32:05]OFD Sender: No OFD packet to send [05:32:10]OFD Sender: No OFD packet to send [05:32:15]OFD Sender: No OFD packet to send [05:32:20]OFD Sender: No OFD packet to send [05:32:25]OFD Sender: No OFD packet to send [05:32:30]OFD Sender: No OFD packet to send [05:32:35]OFD Sender: No OFD packet to send [05:32:40]OFD Sender: No OFD packet to send [05:32:45]OFD Sender: No OFD packet to send [05:32:50]OFD Sender: No OFD packet to send [05:32:55]OFD Sender: No OFD packet to send [05:33:00]OFD Sender: No OFD packet to send [05:33:05]OFD Sender: No OFD packet to send [05:33:10]OFD Sender: No OFD packet to send [05:33:15]OFD Sender: No OFD packet to send [05:33:20]OFD Sender: No OFD packet to send [05:33:25]OFD Sender: No OFD packet to send [05:33:30]OFD Sender: No OFD packet to send [05:33:35]OFD Sender: No OFD packet to send [05:33:40]OFD Sender: No OFD packet to send [05:33:45]OFD Sender: No OFD packet to send [05:33:50]OFD Sender: No OFD packet to send [05:33:55]OFD Sender: No OFD packet to send [05:34:01]OFD Sender: No OFD packet to send [05:34:06]OFD Sender: No OFD packet to send [05:34:11]OFD Sender: No OFD packet to send [05:34:16]OFD Sender: No OFD packet to send [05:34:21]OFD Sender: No OFD packet to send [05:34:26]OFD Sender: No OFD packet to send [05:34:31]OFD Sender: No OFD packet to send [05:34:36]OFD Sender: No OFD packet to send [05:34:41]OFD Sender: No OFD packet to send [05:34:46]OFD Sender: No OFD packet to send [05:34:51]OFD Sender: No OFD packet to send [05:34:56]OFD Sender: No OFD packet to send [05:35:01]OFD Sender: No OFD packet to send [05:35:06]OFD Sender: No OFD packet to send [05:35:11]OFD Sender: No OFD packet to send [05:35:16]OFD Sender: No OFD packet to send [05:35:21]OFD Sender: No OFD packet to send [05:35:26]OFD Sender: No OFD packet to send [05:35:31]OFD Sender: No OFD packet to send [05:35:36]OFD Sender: No OFD packet to send [05:35:41]OFD Sender: No OFD packet to send [05:35:46]OFD Sender: No OFD packet to send [05:35:51]OFD Sender: No OFD packet to send [05:35:56]OFD Sender: No OFD packet to send [05:36:01]OFD Sender: No OFD packet to send [05:36:06]OFD Sender: No OFD packet to send [05:36:11]OFD Sender: No OFD packet to send [05:36:16]OFD Sender: No OFD packet to send [05:36:21]OFD Sender: No OFD packet to send [05:36:26]OFD Sender: No OFD packet to send [05:36:31]OFD Sender: No OFD packet to send [05:36:36]OFD Sender: No OFD packet to send [05:36:41]OFD Sender: No OFD packet to send [05:36:46]OFD Sender: No OFD packet to send [05:36:51]OFD Sender: No OFD packet to send [05:36:56]OFD Sender: No OFD packet to send [05:37:01]OFD Sender: No OFD packet to send [05:37:06]OFD Sender: No OFD packet to send [05:37:11]OFD Sender: No OFD packet to send [05:37:16]OFD Sender: No OFD packet to send [05:37:21]OFD Sender: No OFD packet to send [05:37:26]OFD Sender: No OFD packet to send [05:37:31]OFD Sender: No OFD packet to send [05:37:36]OFD Sender: No OFD packet to send [05:37:41]OFD Sender: No OFD packet to send [05:37:46]OFD Sender: No OFD packet to send [05:37:52]OFD Sender: No OFD packet to send [05:37:57]OFD Sender: No OFD packet to send [05:38:02]OFD Sender: No OFD packet to send [05:38:07]OFD Sender: No OFD packet to send [05:38:12]OFD Sender: No OFD packet to send [05:38:17]OFD Sender: No OFD packet to send [05:38:22]OFD Sender: No OFD packet to send [05:38:27]OFD Sender: No OFD packet to send [05:38:32]OFD Sender: No OFD packet to send [05:38:37]OFD Sender: No OFD packet to send [05:38:42]OFD Sender: No OFD packet to send [05:38:47]OFD Sender: No OFD packet to send [05:38:52]OFD Sender: No OFD packet to send [05:38:57]OFD Sender: No OFD packet to send [05:39:02]OFD Sender: No OFD packet to send [05:39:07]OFD Sender: No OFD packet to send [05:39:12]OFD Sender: No OFD packet to send [05:39:17]OFD Sender: No OFD packet to send [05:39:22]OFD Sender: No OFD packet to send [05:39:27]OFD Sender: No OFD packet to send [05:39:32]OFD Sender: No OFD packet to send [05:39:37]OFD Sender: No OFD packet to send [05:39:42]OFD Sender: No OFD packet to send [05:39:47]OFD Sender: No OFD packet to send [05:39:52]OFD Sender: No OFD packet to send [05:39:57]OFD Sender: No OFD packet to send [05:40:02]OFD Sender: No OFD packet to send [05:40:07]OFD Sender: No OFD packet to send [05:40:12]OFD Sender: No OFD packet to send [05:40:17]OFD Sender: No OFD packet to send [05:40:22]OFD Sender: No OFD packet to send [05:40:27]OFD Sender: No OFD packet to send [05:40:32]OFD Sender: No OFD packet to send [05:40:37]OFD Sender: No OFD packet to send [05:40:42]OFD Sender: No OFD packet to send [05:40:47]OFD Sender: No OFD packet to send [05:40:52]OFD Sender: No OFD packet to send [05:40:57]OFD Sender: No OFD packet to send [05:41:02]OFD Sender: No OFD packet to send [05:41:07]OFD Sender: No OFD packet to send [05:41:12]OFD Sender: No OFD packet to send [05:41:17]OFD Sender: No OFD packet to send [05:41:22]OFD Sender: No OFD packet to send [05:41:27]OFD Sender: No OFD packet to send [05:41:32]OFD Sender: No OFD packet to send [05:41:37]OFD Sender: No OFD packet to send [05:41:43]OFD Sender: No OFD packet to send [05:41:48]OFD Sender: No OFD packet to send [05:41:53]OFD Sender: No OFD packet to send [05:41:58]OFD Sender: No OFD packet to send [05:42:03]OFD Sender: No OFD packet to send [05:42:08]OFD Sender: No OFD packet to send [05:42:13]OFD Sender: No OFD packet to send [05:42:18]OFD Sender: No OFD packet to send [05:42:23]OFD Sender: No OFD packet to send [05:42:28]OFD Sender: No OFD packet to send [05:42:33]OFD Sender: No OFD packet to send [05:42:38]OFD Sender: No OFD packet to send [05:42:43]OFD Sender: No OFD packet to send [05:42:48]OFD Sender: No OFD packet to send [05:42:53]OFD Sender: No OFD packet to send [05:42:58]OFD Sender: No OFD packet to send [05:43:03]OFD Sender: No OFD packet to send [05:43:08]OFD Sender: No OFD packet to send [05:43:13]OFD Sender: No OFD packet to send [05:43:18]OFD Sender: No OFD packet to send [05:43:23]OFD Sender: No OFD packet to send [05:43:28]OFD Sender: No OFD packet to send [05:43:33]OFD Sender: No OFD packet to send [05:43:38]OFD Sender: No OFD packet to send [05:43:43]OFD Sender: No OFD packet to send [05:43:48]OFD Sender: No OFD packet to send [05:43:53]OFD Sender: No OFD packet to send [05:43:58]OFD Sender: No OFD packet to send [05:44:03]OFD Sender: No OFD packet to send [05:44:08]OFD Sender: No OFD packet to send [05:44:13]OFD Sender: No OFD packet to send [05:44:18]OFD Sender: No OFD packet to send [05:44:23]OFD Sender: No OFD packet to send [05:44:28]OFD Sender: No OFD packet to send [05:44:33]OFD Sender: No OFD packet to send [05:44:38]OFD Sender: No OFD packet to send [05:44:43]OFD Sender: No OFD packet to send [05:44:48]OFD Sender: No OFD packet to send [05:44:53]OFD Sender: No OFD packet to send [05:44:58]OFD Sender: No OFD packet to send [05:45:03]OFD Sender: No OFD packet to send [05:45:08]OFD Sender: No OFD packet to send [05:45:13]OFD Sender: No OFD packet to send [05:45:18]OFD Sender: No OFD packet to send [05:45:23]OFD Sender: No OFD packet to send [05:45:29]OFD Sender: No OFD packet to send [05:45:34]OFD Sender: No OFD packet to send [05:45:39]OFD Sender: No OFD packet to send [05:45:44]OFD Sender: No OFD packet to send [05:45:49]OFD Sender: No OFD packet to send [05:45:54]OFD Sender: No OFD packet to send [05:45:59]OFD Sender: No OFD packet to send [05:46:04]OFD Sender: No OFD packet to send [05:46:09]OFD Sender: No OFD packet to send [05:46:14]OFD Sender: No OFD packet to send [05:46:19]OFD Sender: No OFD packet to send [05:46:24]OFD Sender: No OFD packet to send [05:46:29]OFD Sender: No OFD packet to send [05:46:34]OFD Sender: No OFD packet to send [05:46:39]OFD Sender: No OFD packet to send [05:46:44]OFD Sender: No OFD packet to send [05:46:49]OFD Sender: No OFD packet to send [05:46:54]OFD Sender: No OFD packet to send [05:46:59]OFD Sender: No OFD packet to send [05:47:04]OFD Sender: No OFD packet to send [05:47:09]OFD Sender: No OFD packet to send [05:47:14]OFD Sender: No OFD packet to send [05:47:19]OFD Sender: No OFD packet to send [05:47:24]OFD Sender: No OFD packet to send [05:47:29]OFD Sender: No OFD packet to send [05:47:34]OFD Sender: No OFD packet to send [05:47:39]OFD Sender: No OFD packet to send [05:47:44]OFD Sender: No OFD packet to send [05:47:49]OFD Sender: No OFD packet to send [05:47:54]OFD Sender: No OFD packet to send [05:47:59]OFD Sender: No OFD packet to send [05:48:04]OFD Sender: No OFD packet to send [05:48:09]OFD Sender: No OFD packet to send [05:48:14]OFD Sender: No OFD packet to send [05:48:19]OFD Sender: No OFD packet to send [05:48:24]OFD Sender: No OFD packet to send [05:48:29]OFD Sender: No OFD packet to send [05:48:34]OFD Sender: No OFD packet to send [05:48:39]OFD Sender: No OFD packet to send [05:48:44]OFD Sender: No OFD packet to send [05:48:49]OFD Sender: No OFD packet to send [05:48:54]OFD Sender: No OFD packet to send [05:48:59]OFD Sender: No OFD packet to send [05:49:04]OFD Sender: No OFD packet to send [05:49:09]OFD Sender: No OFD packet to send [05:49:14]OFD Sender: No OFD packet to send [05:49:20]OFD Sender: No OFD packet to send [05:49:25]OFD Sender: No OFD packet to send [05:49:30]OFD Sender: No OFD packet to send [05:49:35]OFD Sender: No OFD packet to send [05:49:40]OFD Sender: No OFD packet to send [05:49:45]OFD Sender: No OFD packet to send [05:49:50]OFD Sender: No OFD packet to send [05:49:55]OFD Sender: No OFD packet to send [05:50:00]OFD Sender: No OFD packet to send [05:50:05]OFD Sender: No OFD packet to send [05:50:10]OFD Sender: No OFD packet to send [05:50:15]OFD Sender: No OFD packet to send [05:50:20]OFD Sender: No OFD packet to send [05:50:25]OFD Sender: No OFD packet to send [05:50:30]OFD Sender: No OFD packet to send [05:50:35]OFD Sender: No OFD packet to send [05:50:40]OFD Sender: No OFD packet to send [05:50:45]OFD Sender: No OFD packet to send [05:50:50]OFD Sender: No OFD packet to send [05:50:55]OFD Sender: No OFD packet to send [05:51:00]OFD Sender: No OFD packet to send [05:51:05]OFD Sender: No OFD packet to send [05:51:10]OFD Sender: No OFD packet to send [05:51:15]OFD Sender: No OFD packet to send [05:51:20]OFD Sender: No OFD packet to send [05:51:25]OFD Sender: No OFD packet to send [05:51:30]OFD Sender: No OFD packet to send [05:51:35]OFD Sender: No OFD packet to send [05:51:40]OFD Sender: No OFD packet to send [05:51:45]OFD Sender: No OFD packet to send [05:51:50]OFD Sender: No OFD packet to send [05:51:55]OFD Sender: No OFD packet to send [05:52:00]OFD Sender: No OFD packet to send [05:52:05]OFD Sender: No OFD packet to send [05:52:10]OFD Sender: No OFD packet to send [05:52:15]OFD Sender: No OFD packet to send [05:52:20]OFD Sender: No OFD packet to send [05:52:25]OFD Sender: No OFD packet to send [05:52:30]OFD Sender: No OFD packet to send [05:52:35]OFD Sender: No OFD packet to send [05:52:40]OFD Sender: No OFD packet to send [05:52:45]OFD Sender: No OFD packet to send [05:52:50]OFD Sender: No OFD packet to send [05:52:55]OFD Sender: No OFD packet to send [05:53:00]OFD Sender: No OFD packet to send [05:53:05]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:49]accept exits with 9 [05:56:49]New connection [05:56:49]New thread 3067014500 created [05:56:49]Thread 3067157860 joined [05:56:49]Waiting for new connection... [05:56:49] Sock 9.Parse request [05:56:49]Sock 9.Check first char [05:56:49]Sock 9.First char is OK [05:56:49]request: POST /json_proto HTTP/1.0 [05:56:49]Method: POST [05:56:49]URL: /json_proto [05:56:49]Method is POST - this is cgi request [05:56:49]url: /json_proto [05:56:49]query_string will be loaded in cgi processing [05:56:49]execute_cgi json_proto POST (null) [05:56:49]execute_cgi path=json_proto method=POST [05:56:49]POST find Content-Length [05:56:49]Host: 172.17.42.131:8080 [05:56:49]Content-Length: 754 [05:56:49]Content-Type: application/json [05:56:49] [05:56:49]POST finish read [05:56:49]Found Content-Length = 754 [05:56:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209612", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "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\u000A30053203", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:56:49]execute_script... [05: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)209612", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "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\u000A30053203", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:56:49]POST & json_proto [05:56:49]process_json_proto [05:56:49]json parsed OK: [05:56:49]protocol is kg_v1.0 [05:56:49]action value=close_receipt [05:56:49]process_action close_receipt [05:56:49]cmd_close_receipt [05:56:49]MH_GetDate [05:56:49]Write to MH i2c: F0 00 00 9C 25 B0 [05:56:49]Write i2c OK [05:56:49]MH_I2C_Read... [05:56:49]Read from MH i2c: F0 [05:56:49]MH_I2C_Read... [05:56:49]Read from MH i2c: F0 09 00 [05:56:49]MH_I2C_Read... [05:56:49]Read from MH i2c: F0 09 00 9C 25 00 24 ED 15 67 A0 18 CA 66 2E [05:56:49]GetLastDocTimeStamp 1729486123 [05:56:49]current date 1729490212 [05:56:49]FM_GetShiftState [05:56:49]SAM_PROTO_GetShiftState [05:56:49]wFMCommunicate request_size=4 [05:56:49]MH_SAM_APDU [05:56:49]CAPDU: 80 13 01 00 [05:56:49]Write to MH i2c: E2 08 00 9D 25 80 13 01 00 00 00 00 00 3F [05:56:49]Write i2c OK [05:56:49]MH_I2C_Read... [05:56:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:56:49]Read from MH i2c: E2 [05:56:49]MH_I2C_Read... [05:56:49]Read from MH i2c: E2 0E 00 [05:56:49]MH_I2C_Read... [05:56:49]Read from MH i2c: E2 0E 00 9D 25 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 9E [05:56:49]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [05:56:49]wFMCommunicate OK [05:56:49]SAM_PROTO_GetShiftState done [05:56:49]FM_GetShiftState done [05:56:49]opened in 1729469754 [05:56:49]opened+sec_in_day 1729556154 [05:56:49]quantity*price = 0 [05:56:49]sum+1 = 1 [05:56:49]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 25 21.10.2024 05:56 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Талоны: ТК ГПНА Online 30053203 ФМ: 0000000000965340 ФД: 187561 ФПД: 140898673282250 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T055652&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187561&fm=140898673282250&tin=02508201610067®Number=0000000000100030&sum=0 [05:56:50]StoreToDocumentArchive [05:56:50]shift 460 fd 187561 [05:56:50]save to /storage/0460/doc_00187561 [05:56:50]save last doc name /storage/0460/doc_00187561 to /storage/kkm_last_doc_name [05:56:50]save OK [05:56:50]Clear old archive folders... [05:56:50]ProcessDocumentItem done err = 0, tmpTLVsize=251 [05:56:50]tlvbuf is 010D3EA0 [05:56:50]SAM_PROTO_ClearQueue [05:56:50]wFMCommunicate request_size=4 [05:56:50]MH_SAM_APDU [05:56:50]CAPDU: 80 09 00 00 [05:56:50]Write to MH i2c: E2 08 00 AA 25 80 09 00 00 00 00 00 00 41 [05:56:50]Write i2c OK [05:56:50]MH_I2C_Read... [05:56:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:56:51]Read from MH i2c: E2 [05:56:51]MH_I2C_Read... [05:56:51]Read from MH i2c: E2 03 00 [05:56:51]MH_I2C_Read... [05:56:51]Read from MH i2c: E2 03 00 AA 25 00 90 00 43 [05:56:51]RAPDU: 90 00 [05:56:51]wFMCommunicate OK [05:56:51]SAM_PROTO_ClearQueue done [05:56:51]KKMCreateOFDPacket [05:56:51]OFDProtocolAddRootSTLVToBuf [05:56:51]FM_MakeSignedData [05:56:51]FM_MakeSignedData [05:56:51]SAM_PROTO_SignData [05:56:51]wFMCommunicate request_size=4 [05:56:51]MH_SAM_APDU [05:56:51]CAPDU: 80 0D 01 02 [05:56:51]Write to MH i2c: E2 08 00 AB 25 80 0D 01 02 00 00 00 00 49 [05:56:51]Write i2c OK [05:56:51]MH_I2C_Read... [05:56:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:56:51]Read from MH i2c: E2 [05:56:51]MH_I2C_Read... [05:56:51]Read from MH i2c: E2 03 00 [05:56:51]MH_I2C_Read... [05:56:51]Read from MH i2c: E2 03 00 AB 25 00 90 00 44 [05:56:51]RAPDU: 90 00 [05:56:51]wFMCommunicate OK [05:56:51]wFMCommunicate request_size=255 [05:56:51]MH_SAM_APDU [05:56: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 33 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 19 00 00 00 F4 03 04 00 24 ED 15 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 A9 DC 02 00 35 04 06 00 80 [05:56:51]Write to MH i2c: E2 02 01 AC 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 33 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 19 00 00 00 F4 03 04 00 24 ED 15 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 A9 DC 02 00 35 04 06 00 80 00 00 1F [05:56:51]Write i2c OK [05:56:51]MH_I2C_Read... [05:56:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:56:51]Read from MH i2c: E2 [05:56:51]MH_I2C_Read... [05:56:51]Read from MH i2c: E2 03 00 [05:56:51]MH_I2C_Read... [05:56:51]Read from MH i2c: E2 03 00 AC 25 00 90 00 45 [05:56:51]RAPDU: 90 00 [05:56:51]wFMCommunicate OK [05:56:51]wFMCommunicate request_size=10 [05:56:51]MH_SAM_APDU [05:56:51]CAPDU: 80 0D 02 02 05 25 87 5E CC CA [05:56:51]Write to MH i2c: E2 0D 00 AD 25 80 0D 02 02 05 00 25 87 5E CC CA 00 00 F6 [05:56:51]Write i2c OK [05:56:51]MH_I2C_Read... [05:56:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:56:51]Read from MH i2c: E2 [05:56:51]MH_I2C_Read... [05:56:51]Read from MH i2c: E2 03 00 [05:56:51]MH_I2C_Read... [05:56:51]Read from MH i2c: E2 03 00 AD 25 00 90 00 46 [05:56:51]RAPDU: 90 00 [05:56:51]wFMCommunicate OK [05:56:51]wFMCommunicate request_size=4 [05:56:51]MH_SAM_APDU [05:56:51]CAPDU: 80 0D 03 02 [05:56:51]Write to MH i2c: E2 08 00 AE 25 80 0D 03 02 00 00 00 00 4E [05:56:51]Write i2c OK [05:56:51]MH_I2C_Read... [05:56:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:56:51]Read from MH i2c: E2 [05:56:51]MH_I2C_Read... [05:56:51]Read from MH i2c: E2 0B 00 [05:56:51]MH_I2C_Read... [05:56:51]Read from MH i2c: E2 0B 00 AE 25 00 65 90 9D 28 AF 27 30 3D 90 00 4C [05:56:51]RAPDU: 65 90 9D 28 AF 27 30 3D 90 00 [05:56:51]wFMCommunicate OK [05:56:51]SAM_PROTO_SignData done [05:56:51]FM_MakeSignedData done [05:56:51]CreateOFDProtocolMessage [05:56:51]wFMCommunicate request_size=4 [05:56:51]MH_SAM_APDU [05:56:51]CAPDU: 80 11 00 00 [05:56:51]Write to MH i2c: E2 08 00 AF 25 80 11 00 00 00 00 00 00 4E [05:56:51]Write i2c OK [05:56:51]MH_I2C_Read... [05:56:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:56:51]Read from MH i2c: E2 [05:56:51]MH_I2C_Read... [05:56:51]Read from MH i2c: E2 17 00 [05:56:51]MH_I2C_Read... [05:56:51]Read from MH i2c: E2 17 00 AF 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 9C [05:56:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [05:56:51]wFMCommunicate OK [05:56:51]CreateOFDProtocolMessage done [05:56:51]OFDSenderStorePacket 187561 [05:56:51]StoreOFDPacket docnum=187561 [05:56:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 4D 13 07 01 81 44 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 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 19 00 00 00 F4 03 04 00 24 ED 15 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 A9 DC 02 00 35 04 06 00 80 25 87 5E CC CA 65 90 9D 28 AF 27 30 3D [05:56:51]CheckFolder [05:56:51]dirname=/storage/ofd_packets [05:56:51]CheckFolder done [05:56:51]ProducePacketName [05:56:51]name=ofd_packets/00187561 [05:56:51]NVStorageSaveData ofd_packets/00187561 [05:56:51]File name is /storage/ofd_packets/00187561 [05:56:51]Write 301 bytes [05:56:51]NVStorageSaveData done [05:56:51]OFDSenderStorePacket done [05:56:51]KKMCreateOFDPacket done [05:56:51]NVStorageSaveData kkm_last_timestamp [05:56:51]File name is /storage/kkm_last_timestamp [05:56:51]Write 4 bytes [05:56:51]NVStorageSaveData done [05:56:51]ExternCall_PrintAddStr [05:56:51]wPrintStart [05:56:51]Write to MH i2c: 01 00 00 B0 25 D5 [05:56:51]Write i2c OK [05:56:51]MH_I2C_Read... [05:56:51]Read from MH i2c: 01 [05:56:51]MH_I2C_Read... [05:56:51]Read from MH i2c: 01 07 00 [05:56:51]MH_I2C_Read... [05:56:51]Read from MH i2c: 01 07 00 B0 25 00 00 00 00 00 FF 0F EA [05:56:51]RasterBufferAndPrint [05:56:51]line Счет N : (1)209612 [05:56:51]line ИНН: 02508201610067 [05:56:51]line Контрольно-Кассовый Чек [05:56:51]line ПРОДАЖА [05:56:51]line ТРК (МРК, ГНК) : 32 [05:56:51]line Товар: 2710124130 [05:56:51]line Аи-92-К-3 [05:56:51]line 20.000 * 0.00 [05:56:51]line = 0.00 [05:56:51]line НДС 12% НСП 1% [05:56:51]line > о реализуемом товаре [05:56:51]line ИТОГО: 0.00 [05:56:51]line НСП 1% : 0.00 [05:56:51]line НДС 12% : 0.00 [05:56:51]line Наличными: 0.00 [05:56:51]line Безнал.: 0.00 [05:56:51]line Место: АЗС № 86 "Партнер Нефть" [05:56:51]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [05:56:51]line СНО: Общий режим [05:56:51]line Чек 25 21.10.2024 05:56 [05:56:51]line Смена: 460 ФФД: 1.0 [05:56:51]line ЗНМ: 0300000155 [05:56:51]line РНМ: 0000000000100030 [05:56:51]line Версия ККМ: 001 [05:56:51]line Талоны: ТК ГПНА Online [05:56:51]line 30053203 [05:56:51]line ФМ: 0000000000965340 [05:56:51]line ФД: 187561 [05:56:51]line ФПД: 140898673282250 [05:56:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T055652&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187561&fm=140898673282250&tin=02508201610067®Number=0000000000100030&sum=0 [05:56:51]written 0, free lines is 4095 [05:56:51]OFD Sender: Processing packet 187561 [packets to send 1062, broken 1061] [05:56:51]ProducePacketName [05:56:51]name=ofd_packets/00187561 [05:56:51]OFD Sender: To server: pG, [05:56:51]CommunicateWithHost lk.salyk.kg:30040 [05:56:51]ConnectInit lk.salyk.kg [05:56:51]Connected sock=10 [05:56:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 4D 13 07 01 81 44 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 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 19 00 00 00 F4 03 04 00 24 ED 15 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 A9 DC 02 00 35 04 06 00 80 25 87 5E CC CA 65 90 9D 28 AF 27 30 3D [05:56:51]Write to MH i2c: 01 00 00 DA 25 FF [05:56:51]Write i2c OK [05:56:51]MH_I2C_Read... [05:56:51]Read from MH i2c: 01 [05:56:51]MH_I2C_Read... [05:56:51]Read from MH i2c: 01 07 00 [05:56:51]MH_I2C_Read... [05:56:51]Read from MH i2c: 01 07 00 DA 25 00 00 00 00 00 5F 0C 71 [05:56:51]RasterBufferAndPrint [05:56:51]line [05:56:51]line [05:56:51]line [05:56:51]line [05:56:51]line [05:56:51]written 0, free lines is 3173 [05:56:52]MH_Cut [05:56:52]Write to MH i2c: D1 01 00 E1 25 01 D8 [05:56:52]Write i2c OK [05:56:52]MH_I2C_Read... [05:56:52]Read from MH i2c: D1 [05:56:52]MH_I2C_Read... [05:56:52]Read from MH i2c: D1 01 00 [05:56:52]MH_I2C_Read... [05:56:52]Read from MH i2c: D1 01 00 E1 25 00 D7 [05:56:52]Write to MH i2c: 01 00 00 E2 25 07 [05:56:52]Write i2c OK [05:56:52]MH_I2C_Read... [05:56:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 61 09 47 00 F4 DD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 A9 DC 02 00 F4 03 04 00 14 97 15 67 B6 04 01 00 00 BF 92 8A 57 56 E3 91 EC [05:56:52]CommunicateWithHost err = 0 [05:56:52]CheckOFDResponse [05:56:52]1017 (14) - 77093643461234 [05:56:52]1041 (16) - 0000000000965340 [05:56:52]1040 (4) - 187561 [05:56:52]1012 (4) - 20.10.2024 23:49 [05:56:52]1206 (1) - 0 [05:56:52]OFD Sender: Remove packet 187561 [05:56:52]ProducePacketName [05:56:52]name=ofd_packets/00187561 [05:56:52]NVStorageDeleteData [05:56:52]OFD Sender: No OFD packet to send [05:56:53]*** Cut start [05:56:53]*** Partial cut [05:56:53]*** CUTSNS_PIN = 1 [05:56:53]*** CUTSNS_PIN = 0 [05:56:53]*** Brake cut motor [05:56:53]Read from MH i2c: 01 [05:56:53]MH_I2C_Read... [05:56:53]*** Stop cut motor [05:56:53]*** Cut end [05:56:53]Read from MH i2c: 01 07 00 [05:56:53]MH_I2C_Read... [05:56:53]Read from MH i2c: 01 07 00 E2 25 00 00 00 00 00 FF 0F 1C [05:56:53]process_action close_receipt done [05:56:53]requested_data is exist [05:56:53]produce_requested_data [05:56:53]requested_item fm.sn is exist - process it [05:56:53]wFMCommunicate request_size=4 [05:56:53]MH_SAM_APDU [05:56:53]CAPDU: 80 11 00 00 [05:56:53]Write to MH i2c: E2 08 00 E3 25 80 11 00 00 00 00 00 00 82 [05:56:53]Write i2c OK [05:56:53]MH_I2C_Read... [05:56:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:56:53]Read from MH i2c: E2 [05:56:53]MH_I2C_Read... [05:56:53]Read from MH i2c: E2 17 00 [05:56:53]MH_I2C_Read... [05:56:53]Read from MH i2c: E2 17 00 E3 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 D0 [05:56:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [05:56:53]wFMCommunicate OK [05:56:53]requested_item fd.num is exist - process it [05:56:53]SAM_PROTO_GetFieldsCounters [05:56:53]wFMCommunicate request_size=4 [05:56:53]MH_SAM_APDU [05:56:53]CAPDU: 80 13 00 00 [05:56:53]Write to MH i2c: E2 08 00 E4 25 80 13 00 00 00 00 00 00 85 [05:56:53]Write i2c OK [05:56:53]MH_I2C_Read... [05:56:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:56:54]Read from MH i2c: E2 [05:56:54]MH_I2C_Read... [05:56:54]Read from MH i2c: E2 62 00 [05:56:54]MH_I2C_Read... [05:56:54]Read from MH i2c: E2 62 00 E4 25 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 A9 DC 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 19 00 00 00 5E 04 04 00 19 00 00 00 57 04 04 00 1A 00 00 00 19 04 04 00 00 00 00 00 90 00 2B [05:56:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 A9 DC 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 19 00 00 00 5E 04 04 00 19 00 00 00 57 04 04 00 1A 00 00 00 19 04 04 00 00 00 00 00 90 00 [05:56:54]wFMCommunicate OK [05:56:54]SAM_PROTO_GetFieldsCounters done [05:56:54]requested_item shift.num is exist - process it [05:56:54]requested_item shift.opened is exist - process it [05:56:54]req_shift_opened [05:56:54]FM_GetShiftState [05:56:54]SAM_PROTO_GetShiftState [05:56:54]wFMCommunicate request_size=4 [05:56:54]MH_SAM_APDU [05:56:54]CAPDU: 80 13 01 00 [05:56:54]Write to MH i2c: E2 08 00 E5 25 80 13 01 00 00 00 00 00 87 [05:56:54]Write i2c OK [05:56:54]MH_I2C_Read... [05:56:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:56:54]Read from MH i2c: E2 [05:56:54]MH_I2C_Read... [05:56:54]Read from MH i2c: E2 0E 00 [05:56:54]MH_I2C_Read... [05:56:54]Read from MH i2c: E2 0E 00 E5 25 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 E6 [05:56:54]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [05:56:54]wFMCommunicate OK [05:56:54]SAM_PROTO_GetShiftState done [05:56:54]FM_GetShiftState done [05:56:54]req_shift_opened done [05:56:54]requested_item shift.open_date is exist - process it [05:56:54]req_shift_open_date [05:56:54]req_shift_open_date done [05:56:54]produce_requested_data done [05:56:54]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187561,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [05:56:54]process_action_free close_receipt [05:56:54]json_value_free [05:56:54]json_value_free done [05:56:54]process_json_proto returns [05:56:54]Send response to host [05:56:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187561,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [05:56:54]free response buf [05:56:54]execute_script done [05:56:54]execute_script returns [05:56:54]free content buf [05:56:54]Sock 9.Close socket [05:56:54]Sock 9.Thread stoped [05:56:57]OFD Sender: No OFD packet to send [05:57:02]OFD Sender: No OFD packet to send [05:57:07]OFD Sender: No OFD packet to send [05:57:12]OFD Sender: No OFD packet to send [05:57:17]OFD Sender: No OFD packet to send [05:57:22]OFD Sender: No OFD packet to send [05:57:27]OFD Sender: No OFD packet to send [05:57:32]OFD Sender: No OFD packet to send [05:57:37]OFD Sender: No OFD packet to send [05:57:42]OFD Sender: No OFD packet to send [05:57:47]OFD Sender: No OFD packet to send [05:57:52]OFD Sender: No OFD packet to send [05:57:57]OFD Sender: No OFD packet to send [05:58:02]OFD Sender: No OFD packet to send [05:58:08]OFD Sender: No OFD packet to send [05:58:13]OFD Sender: No OFD packet to send [05:58:18]OFD Sender: No OFD packet to send [05:58:23]OFD Sender: No OFD packet to send [05:58:28]OFD Sender: No OFD packet to send [05:58:33]OFD Sender: No OFD packet to send [05:58:38]OFD Sender: No OFD packet to send [05:58:43]OFD Sender: No OFD packet to send [05:58:48]OFD Sender: No OFD packet to send [05:58:53]OFD Sender: No OFD packet to send [05:58:58]OFD Sender: No OFD packet to send [05:59:03]OFD Sender: No OFD packet to send [05:59:08]OFD Sender: No OFD packet to send [05:59:13]OFD Sender: No OFD packet to send [05:59:18]OFD Sender: No OFD packet to send [05:59:23]OFD Sender: No OFD packet to send [05:59:28]OFD Sender: No OFD packet to send [05:59:33]OFD Sender: No OFD packet to send [05:59:38]OFD Sender: No OFD packet to send [05:59:43]OFD Sender: No OFD packet to send [05:59:48]OFD Sender: No OFD packet to send [05:59:53]OFD Sender: No OFD packet to send [05:59:58]OFD Sender: No OFD packet to send [06:00:03]OFD Sender: No OFD packet to send [06:00:08]OFD Sender: No OFD packet to send [06:00:13]OFD Sender: No OFD packet to send [06:00:18]OFD Sender: No OFD packet to send [06:00:23]OFD Sender: No OFD packet to send [06:00:28]OFD Sender: No OFD packet to send [06:00:33]OFD Sender: No OFD packet to send [06:00:38]OFD Sender: No OFD packet to send [06:00:43]OFD Sender: No OFD packet to send [06:00:48]OFD Sender: No OFD packet to send [06:00:53]OFD Sender: No OFD packet to send [06:00:58]OFD Sender: No OFD packet to send [06:01:03]OFD Sender: No OFD packet to send [06:01:08]OFD Sender: No OFD packet to send [06:01:13]OFD Sender: No OFD packet to send [06:01:18]OFD Sender: No OFD packet to send [06:01:23]OFD Sender: No OFD packet to send [06:01:28]OFD Sender: No OFD packet to send [06:01:33]OFD Sender: No OFD packet to send [06:01:38]OFD Sender: No OFD packet to send [06:01:43]OFD Sender: No OFD packet to send [06:01:48]OFD Sender: No OFD packet to send [06:01:53]OFD Sender: No OFD packet to send [06:01:59]OFD Sender: No OFD packet to send [06:02:04]OFD Sender: No OFD packet to send [06:02:09]OFD Sender: No OFD packet to send [06:02:14]OFD Sender: No OFD packet to send [06:02:19]OFD Sender: No OFD packet to send [06:02:24]OFD Sender: No OFD packet to send [06:02:29]OFD Sender: No OFD packet to send [06:02:34]OFD Sender: No OFD packet to send [06:02:39]OFD Sender: No OFD packet to send [06:02:44]OFD Sender: No OFD packet to send [06:02:49]OFD Sender: No OFD packet to send [06:02:54]OFD Sender: No OFD packet to send [06:02:59]OFD Sender: No OFD packet to send [06:03:04]OFD Sender: No OFD packet to send [06:03:07]accept exits with 8 [06:03:07]New connection [06:03:07]New thread 3067157860 created [06:03:07]Thread 3067014500 joined [06:03:07]Waiting for new connection... [06:03:07] Sock 8.Parse request [06:03:07]Sock 8.Check first char [06:03:07]Sock 8.First char is OK [06:03:07]request: POST /json_proto HTTP/1.0 [06:03:07]Method: POST [06:03:07]URL: /json_proto [06:03:07]Method is POST - this is cgi request [06:03:07]url: /json_proto [06:03:07]query_string will be loaded in cgi processing [06:03:07]execute_cgi json_proto POST (null) [06:03:07]execute_cgi path=json_proto method=POST [06:03:07]POST find Content-Length [06:03:07]Host: 172.17.42.131:8080 [06:03:07]Content-Length: 983 [06:03:07]Content-Type: application/json [06:03:07] [06:03:07]POST finish read [06:03:07]Found Content-Length = 983 [06:03:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209613", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 65.90, "quantity" : 60.700, "sum" : 4000.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0410\u0418-92\u000A\u043D\u043E\u043C\u0435\u0440 86\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 60.70 \u0441\u043E\u043C", "deposit" : 4000.00, "total" : 4000.00, "payments": [ { "type": 0, "sum" : 4000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:03:07]execute_script... [06:03:07]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209613", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 65.90, "quantity" : 60.700, "sum" : 4000.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0410\u0418-92\u000A\u043D\u043E\u043C\u0435\u0440 86\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 60.70 \u0441\u043E\u043C", "deposit" : 4000.00, "total" : 4000.00, "payments": [ { "type": 0, "sum" : 4000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:03:07]POST & json_proto [06:03:07]process_json_proto [06:03:07]json parsed OK: [06:03:07]protocol is kg_v1.0 [06:03:07]action value=close_receipt [06:03:07]process_action close_receipt [06:03:07]cmd_close_receipt [06:03:07]MH_GetDate [06:03:07]Write to MH i2c: F0 00 00 E6 25 FA [06:03:07]Write i2c OK [06:03:07]MH_I2C_Read... [06:03:07]Read from MH i2c: F0 [06:03:07]MH_I2C_Read... [06:03:07]Read from MH i2c: F0 09 00 [06:03:07]MH_I2C_Read... [06:03:07]Read from MH i2c: F0 09 00 E6 25 00 9E EE 15 67 A0 18 CA 66 F3 [06:03:07]GetLastDocTimeStamp 1729490212 [06:03:07]current date 1729490590 [06:03:07]FM_GetShiftState [06:03:07]SAM_PROTO_GetShiftState [06:03:07]wFMCommunicate request_size=4 [06:03:07]MH_SAM_APDU [06:03:07]CAPDU: 80 13 01 00 [06:03:07]Write to MH i2c: E2 08 00 E7 25 80 13 01 00 00 00 00 00 89 [06:03:07]Write i2c OK [06:03:07]MH_I2C_Read... [06:03:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:03:07]Read from MH i2c: E2 [06:03:07]MH_I2C_Read... [06:03:07]Read from MH i2c: E2 0E 00 [06:03:07]MH_I2C_Read... [06:03:07]Read from MH i2c: E2 0E 00 E7 25 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 E8 [06:03:07]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [06:03:07]wFMCommunicate OK [06:03:07]SAM_PROTO_GetShiftState done [06:03:07]FM_GetShiftState done [06:03:07]opened in 1729469754 [06:03:07]opened+sec_in_day 1729556154 [06:03:07]quantity*price = 400013 [06:03:07]sum+1 = 400014 [06:03:07]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.13 ИТОГО: 4000.00 Внесено: 4000.00 СДАЧА: 0.00 НСП 1% : 35.40 НДС 12% : 424.79 Наличными: 4000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 26 21.10.2024 06:03 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Дисконтная программа АИ-92 номер 86 сэкономлено 60.70 сом ФМ: 0000000000965340 ФД: 187562 ФПД: 183896016270057 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T060310&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187562&fm=183896016270057&tin=02508201610067®Number=0000000000100030&sum=400000 [06:03:08]StoreToDocumentArchive [06:03:08]shift 460 fd 187562 [06:03:08]save to /storage/0460/doc_00187562 [06:03:08]save last doc name /storage/0460/doc_00187562 to /storage/kkm_last_doc_name [06:03:08]save OK [06:03:08]Clear old archive folders... [06:03:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [06:03:08]tlvbuf is 010903A0 [06:03:08]SAM_PROTO_ClearQueue [06:03:08]wFMCommunicate request_size=4 [06:03:08]MH_SAM_APDU [06:03:08]CAPDU: 80 09 00 00 [06:03:08]Write to MH i2c: E2 08 00 F4 25 80 09 00 00 00 00 00 00 8B [06:03:08]Write i2c OK [06:03:08]MH_I2C_Read... [06:03:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:03:08]Read from MH i2c: E2 [06:03:08]MH_I2C_Read... [06:03:08]Read from MH i2c: E2 03 00 [06:03:08]MH_I2C_Read... [06:03:08]Read from MH i2c: E2 03 00 F4 25 00 90 00 8D [06:03:08]RAPDU: 90 00 [06:03:08]wFMCommunicate OK [06:03:08]SAM_PROTO_ClearQueue done [06:03:08]KKMCreateOFDPacket [06:03:08]OFDProtocolAddRootSTLVToBuf [06:03:08]FM_MakeSignedData [06:03:08]FM_MakeSignedData [06:03:08]SAM_PROTO_SignData [06:03:08]wFMCommunicate request_size=4 [06:03:08]MH_SAM_APDU [06:03:08]CAPDU: 80 0D 01 02 [06:03:08]Write to MH i2c: E2 08 00 F5 25 80 0D 01 02 00 00 00 00 93 [06:03:08]Write i2c OK [06:03:08]MH_I2C_Read... [06:03:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:03:08]Read from MH i2c: E2 [06:03:08]MH_I2C_Read... [06:03:08]Read from MH i2c: E2 03 00 [06:03:08]MH_I2C_Read... [06:03:08]Read from MH i2c: E2 03 00 F5 25 00 90 00 8E [06:03:08]RAPDU: 90 00 [06:03:08]wFMCommunicate OK [06:03:08]wFMCommunicate request_size=255 [06:03:08]MH_SAM_APDU [06:03: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 33 FF 03 08 00 03 1C ED 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 8D 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EF A5 00 00 00 00 07 04 06 00 80 1A 06 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 9E EE 15 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 AA DC 02 00 35 04 06 00 A7 [06:03:08]Write to MH i2c: E2 02 01 F6 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 33 FF 03 08 00 03 1C ED 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 8D 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EF A5 00 00 00 00 07 04 06 00 80 1A 06 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 9E EE 15 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 AA DC 02 00 35 04 06 00 A7 00 00 E1 [06:03:08]Write i2c OK [06:03:08]MH_I2C_Read... [06:03:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:03:08]Read from MH i2c: E2 [06:03:08]MH_I2C_Read... [06:03:08]Read from MH i2c: E2 03 00 [06:03:08]MH_I2C_Read... [06:03:08]Read from MH i2c: E2 03 00 F6 25 00 90 00 8F [06:03:08]RAPDU: 90 00 [06:03:08]wFMCommunicate OK [06:03:08]wFMCommunicate request_size=10 [06:03:08]MH_SAM_APDU [06:03:08]CAPDU: 80 0D 02 02 05 40 A0 B9 B2 E9 [06:03:08]Write to MH i2c: E2 0D 00 F7 25 80 0D 02 02 05 00 40 A0 B9 B2 E9 00 00 D4 [06:03:08]Write i2c OK [06:03:08]MH_I2C_Read... [06:03:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:03:08]Read from MH i2c: E2 [06:03:08]MH_I2C_Read... [06:03:08]Read from MH i2c: E2 03 00 [06:03:08]MH_I2C_Read... [06:03:08]Read from MH i2c: E2 03 00 F7 25 00 90 00 90 [06:03:08]RAPDU: 90 00 [06:03:08]wFMCommunicate OK [06:03:08]wFMCommunicate request_size=4 [06:03:08]MH_SAM_APDU [06:03:08]CAPDU: 80 0D 03 02 [06:03:08]Write to MH i2c: E2 08 00 F8 25 80 0D 03 02 00 00 00 00 98 [06:03:08]Write i2c OK [06:03:08]MH_I2C_Read... [06:03:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:03:09]Read from MH i2c: E2 [06:03:09]MH_I2C_Read... [06:03:09]Read from MH i2c: E2 0B 00 [06:03:09]MH_I2C_Read... [06:03:09]Read from MH i2c: E2 0B 00 F8 25 00 43 F6 6A 35 B2 90 02 7C 90 00 31 [06:03:09]RAPDU: 43 F6 6A 35 B2 90 02 7C 90 00 [06:03:09]wFMCommunicate OK [06:03:09]SAM_PROTO_SignData done [06:03:09]FM_MakeSignedData done [06:03:09]CreateOFDProtocolMessage [06:03:09]wFMCommunicate request_size=4 [06:03:09]MH_SAM_APDU [06:03:09]CAPDU: 80 11 00 00 [06:03:09]Write to MH i2c: E2 08 00 F9 25 80 11 00 00 00 00 00 00 98 [06:03:09]Write i2c OK [06:03:09]MH_I2C_Read... [06:03:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:03:09]Read from MH i2c: E2 [06:03:09]MH_I2C_Read... [06:03:09]Read from MH i2c: E2 17 00 [06:03:09]MH_I2C_Read... [06:03:09]Read from MH i2c: E2 17 00 F9 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 E6 [06:03:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [06:03:09]wFMCommunicate OK [06:03:09]CreateOFDProtocolMessage done [06:03:09]OFDSenderStorePacket 187562 [06:03:09]StoreOFDPacket docnum=187562 [06:03:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 6C 8A 07 01 B1 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 33 FF 03 08 00 03 1C ED 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 8D 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EF A5 00 00 00 00 07 04 06 00 80 1A 06 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 9E EE 15 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 AA DC 02 00 35 04 06 00 A7 40 A0 B9 B2 E9 43 F6 6A 35 B2 90 02 7C [06:03:09]CheckFolder [06:03:09]dirname=/storage/ofd_packets [06:03:09]CheckFolder done [06:03:09]ProducePacketName [06:03:09]name=ofd_packets/00187562 [06:03:09]NVStorageSaveData ofd_packets/00187562 [06:03:09]File name is /storage/ofd_packets/00187562 [06:03:09]Write 301 bytes [06:03:09]NVStorageSaveData done [06:03:09]OFDSenderStorePacket done [06:03:09]KKMCreateOFDPacket done [06:03:09]NVStorageSaveData kkm_last_timestamp [06:03:09]File name is /storage/kkm_last_timestamp [06:03:09]Write 4 bytes [06:03:09]NVStorageSaveData done [06:03:09]ExternCall_PrintAddStr [06:03:09]wPrintStart [06:03:09]Write to MH i2c: 01 00 00 FA 25 1F [06:03:09]Write i2c OK [06:03:09]MH_I2C_Read... [06:03:09]Read from MH i2c: 01 [06:03:09]MH_I2C_Read... [06:03:09]Read from MH i2c: 01 07 00 [06:03:09]MH_I2C_Read... [06:03:09]Read from MH i2c: 01 07 00 FA 25 00 00 00 00 00 FF 0F 34 [06:03:09]RasterBufferAndPrint [06:03:09]line Счет N : (1)209613 [06:03:09]line ИНН: 02508201610067 [06:03:09]line Контрольно-Кассовый Чек [06:03:09]line ПРОДАЖА [06:03:09]line ТРК (МРК, ГНК) : 32 [06:03:09]line Товар: 2710124130 [06:03:09]line Аи-92-К-3 [06:03:09]line 60.700 * 65.90 [06:03:09]line = 4000.13 [06:03:09]line НДС 12% НСП 1% [06:03:09]line > о реализуемом товаре [06:03:09]line ОКРУГЛЕНИЕ: -0.13 [06:03:09]line ИТОГО: 4000.00 [06:03:09]line Внесено: 4000.00 [06:03:09]line СДАЧА: 0.00 [06:03:09]line НСП 1% : 35.40 [06:03:09]line НДС 12% : 424.79 [06:03:09]line Наличными: 4000.00 [06:03:09]line Безнал.: 0.00 [06:03:09]line Место: АЗС № 86 "Партнер Нефть" [06:03:09]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [06:03:09]line СНО: Общий режим [06:03:09]line Чек 26 21.10.2024 06:03 [06:03:09]line Смена: 460 ФФД: 1.0 [06:03:09]line ЗНМ: 0300000155 [06:03:09]line РНМ: 0000000000100030 [06:03:09]line Версия ККМ: 001 [06:03:09]line [06:03:09]line Дисконтная программа [06:03:09]line АИ-92 [06:03:09]line номер 86 [06:03:09]line сэкономлено 60.70 сом [06:03:09]line ФМ: 0000000000965340 [06:03:09]line ФД: 187562 [06:03:09]line ФПД: 183896016270057 [06:03:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T060310&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187562&fm=183896016270057&tin=02508201610067®Number=0000000000100030&sum=400000 [06:03:09]written 0, free lines is 4095 [06:03:09]OFD Sender: Processing packet 187562 [packets to send 1062, broken 1061] [06:03:09]ProducePacketName [06:03:09]name=ofd_packets/00187562 [06:03:09]OFD Sender: To server: pG, [06:03:09]CommunicateWithHost lk.salyk.kg:30040 [06:03:09]ConnectInit lk.salyk.kg [06:03:09]Connected sock=10 [06:03:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 6C 8A 07 01 B1 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 33 FF 03 08 00 03 1C ED 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 8D 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EF A5 00 00 00 00 07 04 06 00 80 1A 06 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 9E EE 15 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 AA DC 02 00 35 04 06 00 A7 40 A0 B9 B2 E9 43 F6 6A 35 B2 90 02 7C [06:03:09]Write to MH i2c: 01 00 00 2A 26 50 [06:03:09]Write i2c OK [06:03:09]MH_I2C_Read... [06:03:09]Read from MH i2c: 01 [06:03:09]MH_I2C_Read... [06:03:09]Read from MH i2c: 01 07 00 [06:03:09]MH_I2C_Read... [06:03:09]Read from MH i2c: 01 07 00 2A 26 00 00 00 00 00 DA 0B 3C [06:03:09]RasterBufferAndPrint [06:03:09]line [06:03:09]line [06:03:09]line [06:03:09]line [06:03:09]line [06:03:09]written 0, free lines is 3036 [06:03:09]MH_Cut [06:03:09]Write to MH i2c: D1 01 00 31 26 01 29 [06:03:09]Write i2c OK [06:03:09]MH_I2C_Read... [06:03:09]Read from MH i2c: D1 [06:03:09]MH_I2C_Read... [06:03:09]Read from MH i2c: D1 01 00 [06:03:09]MH_I2C_Read... [06:03:09]Read from MH i2c: D1 01 00 31 26 00 28 [06:03:09]Write to MH i2c: 01 00 00 32 26 58 [06:03:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 33 43 47 00 90 12 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 AA DC 02 00 F4 03 04 00 8E 98 15 67 B6 04 01 00 00 A2 D7 62 E1 68 F3 36 79 [06:03:09]CommunicateWithHost err = 0 [06:03:09]CheckOFDResponse [06:03:09]1017 (14) - 77093643461234 [06:03:09]1041 (16) - 0000000000965340 [06:03:09]1040 (4) - 187562 [06:03:09]1012 (4) - 20.10.2024 23:55 [06:03:09]1206 (1) - 0 [06:03:09]OFD Sender: Remove packet 187562 [06:03:09]ProducePacketName [06:03:09]name=ofd_packets/00187562 [06:03:09]NVStorageDeleteData [06:03:09]Write i2c OK [06:03:09]MH_I2C_Read... [06:03:10]OFD Sender: No OFD packet to send [06:03:11]*** Cut start [06:03:11]*** Partial cut [06:03:11]*** CUTSNS_PIN = 1 [06:03:11]*** CUTSNS_PIN = 0 [06:03:11]*** Brake cut motor [06:03:11]Read from MH i2c: 01 [06:03:11]MH_I2C_Read... [06:03:11]*** Stop cut motor [06:03:11]*** Cut end [06:03:11]Read from MH i2c: 01 07 00 [06:03:11]MH_I2C_Read... [06:03:11]Read from MH i2c: 01 07 00 32 26 00 00 00 00 00 FF 0F 6D [06:03:11]process_action close_receipt done [06:03:11]requested_data is exist [06:03:11]produce_requested_data [06:03:11]requested_item fm.sn is exist - process it [06:03:11]wFMCommunicate request_size=4 [06:03:11]MH_SAM_APDU [06:03:11]CAPDU: 80 11 00 00 [06:03:11]Write to MH i2c: E2 08 00 33 26 80 11 00 00 00 00 00 00 D3 [06:03:11]Write i2c OK [06:03:11]MH_I2C_Read... [06:03:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:03:11]Read from MH i2c: E2 [06:03:11]MH_I2C_Read... [06:03:11]Read from MH i2c: E2 17 00 [06:03:11]MH_I2C_Read... [06:03:11]Read from MH i2c: E2 17 00 33 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 21 [06:03:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [06:03:11]wFMCommunicate OK [06:03:11]requested_item fd.num is exist - process it [06:03:11]SAM_PROTO_GetFieldsCounters [06:03:11]wFMCommunicate request_size=4 [06:03:11]MH_SAM_APDU [06:03:11]CAPDU: 80 13 00 00 [06:03:11]Write to MH i2c: E2 08 00 34 26 80 13 00 00 00 00 00 00 D6 [06:03:11]Write i2c OK [06:03:11]MH_I2C_Read... [06:03:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:03:11]Read from MH i2c: E2 [06:03:11]MH_I2C_Read... [06:03:11]Read from MH i2c: E2 62 00 [06:03:11]MH_I2C_Read... [06:03:11]Read from MH i2c: E2 62 00 34 26 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 AA DC 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 1A 00 00 00 5E 04 04 00 1A 00 00 00 57 04 04 00 1B 00 00 00 19 04 04 00 00 00 00 00 90 00 80 [06:03:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 AA DC 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 1A 00 00 00 5E 04 04 00 1A 00 00 00 57 04 04 00 1B 00 00 00 19 04 04 00 00 00 00 00 90 00 [06:03:11]wFMCommunicate OK [06:03:11]SAM_PROTO_GetFieldsCounters done [06:03:11]requested_item shift.num is exist - process it [06:03:11]requested_item shift.opened is exist - process it [06:03:11]req_shift_opened [06:03:11]FM_GetShiftState [06:03:11]SAM_PROTO_GetShiftState [06:03:11]wFMCommunicate request_size=4 [06:03:11]MH_SAM_APDU [06:03:11]CAPDU: 80 13 01 00 [06:03:11]Write to MH i2c: E2 08 00 35 26 80 13 01 00 00 00 00 00 D8 [06:03:11]Write i2c OK [06:03:11]MH_I2C_Read... [06:03:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:03:11]Read from MH i2c: E2 [06:03:11]MH_I2C_Read... [06:03:11]Read from MH i2c: E2 0E 00 [06:03:11]MH_I2C_Read... [06:03:11]Read from MH i2c: E2 0E 00 35 26 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 37 [06:03:11]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [06:03:11]wFMCommunicate OK [06:03:11]SAM_PROTO_GetShiftState done [06:03:11]FM_GetShiftState done [06:03:11]req_shift_opened done [06:03:11]requested_item shift.open_date is exist - process it [06:03:11]req_shift_open_date [06:03:11]req_shift_open_date done [06:03:11]produce_requested_data done [06:03:11]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187562,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [06:03:11]process_action_free close_receipt [06:03:11]json_value_free [06:03:11]json_value_free done [06:03:11]process_json_proto returns [06:03:11]Send response to host [06:03:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187562,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [06:03:11]free response buf [06:03:11]execute_script done [06:03:11]execute_script returns [06:03:11]free content buf [06:03:11]Sock 8.Close socket [06:03:11]Sock 8.Thread stoped [06:03:15]OFD Sender: No OFD packet to send [06:03:20]OFD Sender: No OFD packet to send [06:03:25]OFD Sender: No OFD packet to send [06:03:30]OFD Sender: No OFD packet to send [06:03:35]OFD Sender: No OFD packet to send [06:03:40]OFD Sender: No OFD packet to send [06:03:45]OFD Sender: No OFD packet to send [06:03:50]OFD Sender: No OFD packet to send [06:03:55]OFD Sender: No OFD packet to send [06:04:00]OFD Sender: No OFD packet to send [06:04:05]OFD Sender: No OFD packet to send [06:04:10]OFD Sender: No OFD packet to send [06:04:15]OFD Sender: No OFD packet to send [06:04:20]OFD Sender: No OFD packet to send [06:04:25]OFD Sender: No OFD packet to send [06:04:30]OFD Sender: No OFD packet to send [06:04:35]OFD Sender: No OFD packet to send [06:04:40]OFD Sender: No OFD packet to send [06:04:45]OFD Sender: No OFD packet to send [06:04:50]OFD Sender: No OFD packet to send [06:04:55]OFD Sender: No OFD packet to send [06:05:00]OFD Sender: No OFD packet to send [06:05:05]OFD Sender: No OFD packet to send [06:05:10]OFD Sender: No OFD packet to send [06:05:15]OFD Sender: No OFD packet to send [06:05:20]OFD Sender: No OFD packet to send [06:05:25]OFD Sender: No OFD packet to send [06:05:30]OFD Sender: No OFD packet to send [06:05:35]OFD Sender: No OFD packet to send [06:05:40]OFD Sender: No OFD packet to send [06:05:45]OFD Sender: No OFD packet to send [06:05:50]OFD Sender: No OFD packet to send [06:05:55]OFD Sender: No OFD packet to send [06:06:00]OFD Sender: No OFD packet to send [06:06:05]OFD Sender: No OFD packet to send [06:06:10]OFD Sender: No OFD packet to send [06:06:15]OFD Sender: No OFD packet to send [06:06:20]OFD Sender: No OFD packet to send [06:06:26]OFD Sender: No OFD packet to send [06:06:31]OFD Sender: No OFD packet to send [06:06:36]OFD Sender: No OFD packet to send [06:06:41]OFD Sender: No OFD packet to send [06:06:46]OFD Sender: No OFD packet to send [06:06:51]OFD Sender: No OFD packet to send [06:06:56]OFD Sender: No OFD packet to send [06:07:01]OFD Sender: No OFD packet to send [06:07:06]OFD Sender: No OFD packet to send [06:07:11]OFD Sender: No OFD packet to send [06:07:16]OFD Sender: No OFD packet to send [06:07:21]OFD Sender: No OFD packet to send [06:07:26]OFD Sender: No OFD packet to send [06:07:31]OFD Sender: No OFD packet to send [06:07:36]OFD Sender: No OFD packet to send [06:07:41]OFD Sender: No OFD packet to send [06:07:46]OFD Sender: No OFD packet to send [06:07:51]OFD Sender: No OFD packet to send [06:07:56]OFD Sender: No OFD packet to send [06:08:01]OFD Sender: No OFD packet to send [06:08:06]OFD Sender: No OFD packet to send [06:08:11]OFD Sender: No OFD packet to send [06:08:16]OFD Sender: No OFD packet to send [06:08:21]OFD Sender: No OFD packet to send [06:08:26]OFD Sender: No OFD packet to send [06:08:31]OFD Sender: No OFD packet to send [06:08:36]OFD Sender: No OFD packet to send [06:08:41]OFD Sender: No OFD packet to send [06:08:46]OFD Sender: No OFD packet to send [06:08:51]OFD Sender: No OFD packet to send [06:08:56]OFD Sender: No OFD packet to send [06:09:01]OFD Sender: No OFD packet to send [06:09:06]OFD Sender: No OFD packet to send [06:09:11]OFD Sender: No OFD packet to send [06:09:16]OFD Sender: No OFD packet to send [06:09:21]OFD Sender: No OFD packet to send [06:09:26]OFD Sender: No OFD packet to send [06:09:31]OFD Sender: No OFD packet to send [06:09:36]OFD Sender: No OFD packet to send [06:09:41]OFD Sender: No OFD packet to send [06:09:46]OFD Sender: No OFD packet to send [06:09:51]OFD Sender: No OFD packet to send [06:09:56]OFD Sender: No OFD packet to send [06:10:01]OFD Sender: No OFD packet to send [06:10:06]OFD Sender: No OFD packet to send [06:10: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:12]OFD Sender: No OFD packet to send [06:12:17]OFD Sender: No OFD packet to send [06:12:22]OFD Sender: No OFD packet to send [06:12:27]OFD Sender: No OFD packet to send [06:12:32]OFD Sender: No OFD packet to send [06:12:37]OFD Sender: No OFD packet to send [06:12:42]OFD Sender: No OFD packet to send [06:12:47]OFD Sender: No OFD packet to send [06:12:52]OFD Sender: No OFD packet to send [06:12:57]OFD Sender: No OFD packet to send [06:13:02]OFD Sender: No OFD packet to send [06:13:07]OFD Sender: No OFD packet to send [06:13:12]OFD Sender: No OFD packet to send [06:13:17]OFD Sender: No OFD packet to send [06:13:22]OFD Sender: No OFD packet to send [06:13:27]OFD Sender: No OFD packet to send [06:13:32]OFD Sender: No OFD packet to send [06:13:37]OFD Sender: No OFD packet to send [06:13:42]OFD Sender: No OFD packet to send [06:13:47]OFD Sender: No OFD packet to send [06:13:52]OFD Sender: No OFD packet to send [06:13:57]OFD Sender: No OFD packet to send [06:14:03]OFD Sender: No OFD packet to send [06:14:08]OFD Sender: No OFD packet to send [06:14:13]OFD Sender: No OFD packet to send [06:14:18]OFD Sender: No OFD packet to send [06:14:23]OFD Sender: No OFD packet to send [06:14:28]OFD Sender: No OFD packet to send [06:14:33]OFD Sender: No OFD packet to send [06:14:38]OFD Sender: No OFD packet to send [06:14:43]OFD Sender: No OFD packet to send [06:14:48]OFD Sender: No OFD packet to send [06:14:53]OFD Sender: No OFD packet to send [06:14:58]OFD Sender: No OFD packet to send [06:15:03]OFD Sender: No OFD packet to send [06:15:08]OFD Sender: No OFD packet to send [06:15:13]OFD Sender: No OFD packet to send [06:15:18]OFD Sender: No OFD packet to send [06:15:23]OFD Sender: No OFD packet to send [06:15:28]OFD Sender: No OFD packet to send [06:15:33]OFD Sender: No OFD packet to send [06:15:33]accept exits with 9 [06:15:33]New connection [06:15:33]New thread 3067014500 created [06:15:33]Thread 3067157860 joined [06:15:33]Waiting for new connection... [06:15:33] Sock 9.Parse request [06:15:33]Sock 9.Check first char [06:15:33]Sock 9.First char is OK [06:15:33]request: POST /json_proto HTTP/1.0 [06:15:33]Method: POST [06:15:33]URL: /json_proto [06:15:33]Method is POST - this is cgi request [06:15:33]url: /json_proto [06:15:33]query_string will be loaded in cgi processing [06:15:33]execute_cgi json_proto POST (null) [06:15:33]execute_cgi path=json_proto method=POST [06:15:33]POST find Content-Length [06:15:33]Host: 172.17.42.131:8080 [06:15:33]Content-Length: 677 [06:15:33]Content-Type: application/json [06:15:33] [06:15:33]POST finish read [06:15:33]Found Content-Length = 677 [06:15:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209614", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "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" ] } } [06:15:33]execute_script... [06:15: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)209614", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "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" ] } } [06:15:33]POST & json_proto [06:15:33]process_json_proto [06:15:33]json parsed OK: [06:15:33]protocol is kg_v1.0 [06:15:33]action value=close_receipt [06:15:33]process_action close_receipt [06:15:33]cmd_close_receipt [06:15:33]MH_GetDate [06:15:33]Write to MH i2c: F0 00 00 36 26 4B [06:15:33]Write i2c OK [06:15:33]MH_I2C_Read... [06:15:33]Read from MH i2c: F0 [06:15:33]MH_I2C_Read... [06:15:33]Read from MH i2c: F0 09 00 [06:15:33]MH_I2C_Read... [06:15:33]Read from MH i2c: F0 09 00 36 26 00 88 F1 15 67 A0 18 CA 66 31 [06:15:33]GetLastDocTimeStamp 1729490590 [06:15:33]current date 1729491336 [06:15:33]FM_GetShiftState [06:15:33]SAM_PROTO_GetShiftState [06:15:33]wFMCommunicate request_size=4 [06:15:33]MH_SAM_APDU [06:15:33]CAPDU: 80 13 01 00 [06:15:33]Write to MH i2c: E2 08 00 37 26 80 13 01 00 00 00 00 00 DA [06:15:33]Write i2c OK [06:15:33]MH_I2C_Read... [06:15:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:15:33]Read from MH i2c: E2 [06:15:33]MH_I2C_Read... [06:15:33]Read from MH i2c: E2 0E 00 [06:15:33]MH_I2C_Read... [06:15:33]Read from MH i2c: E2 0E 00 37 26 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 39 [06:15:33]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [06:15:33]wFMCommunicate OK [06:15:33]SAM_PROTO_GetShiftState done [06:15:33]FM_GetShiftState done [06:15:33]opened in 1729469754 [06:15:33]opened+sec_in_day 1729556154 [06:15:33]quantity*price = 50041 [06:15:33]sum+1 = 50042 [06:15:33]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 27 21.10.2024 06:15 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 187563 ФПД: 244880352778080 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T061536&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187563&fm=244880352778080&tin=02508201610067®Number=0000000000100030&sum=50000 [06:15:34]StoreToDocumentArchive [06:15:34]shift 460 fd 187563 [06:15:34]save to /storage/0460/doc_00187563 [06:15:34]save last doc name /storage/0460/doc_00187563 to /storage/kkm_last_doc_name [06:15:34]save OK [06:15:34]Clear old archive folders... [06:15:34]ProcessDocumentItem done err = 0, tmpTLVsize=251 [06:15:34]tlvbuf is 01090250 [06:15:34]SAM_PROTO_ClearQueue [06:15:34]wFMCommunicate request_size=4 [06:15:34]MH_SAM_APDU [06:15:34]CAPDU: 80 09 00 00 [06:15:34]Write to MH i2c: E2 08 00 44 26 80 09 00 00 00 00 00 00 DC [06:15:34]Write i2c OK [06:15:34]MH_I2C_Read... [06:15:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:15:35]Read from MH i2c: E2 [06:15:35]MH_I2C_Read... [06:15:35]Read from MH i2c: E2 03 00 [06:15:35]MH_I2C_Read... [06:15:35]Read from MH i2c: E2 03 00 44 26 00 90 00 DE [06:15:35]RAPDU: 90 00 [06:15:35]wFMCommunicate OK [06:15:35]SAM_PROTO_ClearQueue done [06:15:35]KKMCreateOFDPacket [06:15:35]OFDProtocolAddRootSTLVToBuf [06:15:35]FM_MakeSignedData [06:15:35]FM_MakeSignedData [06:15:35]SAM_PROTO_SignData [06:15:35]wFMCommunicate request_size=4 [06:15:35]MH_SAM_APDU [06:15:35]CAPDU: 80 0D 01 02 [06:15:35]Write to MH i2c: E2 08 00 45 26 80 0D 01 02 00 00 00 00 E4 [06:15:35]Write i2c OK [06:15:35]MH_I2C_Read... [06:15:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:15:35]Read from MH i2c: E2 [06:15:35]MH_I2C_Read... [06:15:35]Read from MH i2c: E2 03 00 [06:15:35]MH_I2C_Read... [06:15:35]Read from MH i2c: E2 03 00 45 26 00 90 00 DF [06:15:35]RAPDU: 90 00 [06:15:35]wFMCommunicate OK [06:15:35]wFMCommunicate request_size=255 [06:15:35]MH_SAM_APDU [06:15: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 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 88 F1 15 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 AB DC 02 00 35 04 06 00 DE [06:15:35]Write to MH i2c: E2 02 01 46 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 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 88 F1 15 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 AB DC 02 00 35 04 06 00 DE 00 00 9B [06:15:35]Write i2c OK [06:15:35]MH_I2C_Read... [06:15:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:15:35]Read from MH i2c: E2 [06:15:35]MH_I2C_Read... [06:15:35]Read from MH i2c: E2 03 00 [06:15:35]MH_I2C_Read... [06:15:35]Read from MH i2c: E2 03 00 46 26 00 90 00 E0 [06:15:35]RAPDU: 90 00 [06:15:35]wFMCommunicate OK [06:15:35]wFMCommunicate request_size=10 [06:15:35]MH_SAM_APDU [06:15:35]CAPDU: 80 0D 02 02 05 B7 A6 70 97 60 [06:15:35]Write to MH i2c: E2 0D 00 47 26 80 0D 02 02 05 00 B7 A6 70 97 60 00 00 B5 [06:15:35]Write i2c OK [06:15:35]MH_I2C_Read... [06:15:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:15:35]Read from MH i2c: E2 [06:15:35]MH_I2C_Read... [06:15:35]Read from MH i2c: E2 03 00 [06:15:35]MH_I2C_Read... [06:15:35]Read from MH i2c: E2 03 00 47 26 00 90 00 E1 [06:15:35]RAPDU: 90 00 [06:15:35]wFMCommunicate OK [06:15:35]wFMCommunicate request_size=4 [06:15:35]MH_SAM_APDU [06:15:35]CAPDU: 80 0D 03 02 [06:15:35]Write to MH i2c: E2 08 00 48 26 80 0D 03 02 00 00 00 00 E9 [06:15:35]Write i2c OK [06:15:35]MH_I2C_Read... [06:15:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:15:35]Read from MH i2c: E2 [06:15:35]MH_I2C_Read... [06:15:35]Read from MH i2c: E2 0B 00 [06:15:35]MH_I2C_Read... [06:15:35]Read from MH i2c: E2 0B 00 48 26 00 75 6C 6C 4A D9 10 5B E6 90 00 AB [06:15:35]RAPDU: 75 6C 6C 4A D9 10 5B E6 90 00 [06:15:35]wFMCommunicate OK [06:15:35]SAM_PROTO_SignData done [06:15:35]FM_MakeSignedData done [06:15:35]CreateOFDProtocolMessage [06:15:35]wFMCommunicate request_size=4 [06:15:35]MH_SAM_APDU [06:15:35]CAPDU: 80 11 00 00 [06:15:35]Write to MH i2c: E2 08 00 49 26 80 11 00 00 00 00 00 00 E9 [06:15:35]Write i2c OK [06:15:35]MH_I2C_Read... [06:15:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:15:35]Read from MH i2c: E2 [06:15:35]MH_I2C_Read... [06:15:35]Read from MH i2c: E2 17 00 [06:15:35]MH_I2C_Read... [06:15:35]Read from MH i2c: E2 17 00 49 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 37 [06:15:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [06:15:35]wFMCommunicate OK [06:15:35]CreateOFDProtocolMessage done [06:15:35]OFDSenderStorePacket 187563 [06:15:35]StoreOFDPacket docnum=187563 [06:15:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 BC B4 07 01 69 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 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 88 F1 15 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 AB DC 02 00 35 04 06 00 DE B7 A6 70 97 60 75 6C 6C 4A D9 10 5B E6 [06:15:35]CheckFolder [06:15:35]dirname=/storage/ofd_packets [06:15:35]CheckFolder done [06:15:35]ProducePacketName [06:15:35]name=ofd_packets/00187563 [06:15:35]NVStorageSaveData ofd_packets/00187563 [06:15:35]File name is /storage/ofd_packets/00187563 [06:15:35]Write 301 bytes [06:15:35]NVStorageSaveData done [06:15:35]OFDSenderStorePacket done [06:15:35]KKMCreateOFDPacket done [06:15:35]NVStorageSaveData kkm_last_timestamp [06:15:35]File name is /storage/kkm_last_timestamp [06:15:35]Write 4 bytes [06:15:35]NVStorageSaveData done [06:15:35]ExternCall_PrintAddStr [06:15:35]wPrintStart [06:15:35]Write to MH i2c: 01 00 00 4A 26 70 [06:15:35]Write i2c OK [06:15:35]MH_I2C_Read... [06:15:35]Read from MH i2c: 01 [06:15:35]MH_I2C_Read... [06:15:35]Read from MH i2c: 01 07 00 [06:15:35]MH_I2C_Read... [06:15:35]Read from MH i2c: 01 07 00 4A 26 00 00 00 00 00 FF 0F 85 [06:15:35]RasterBufferAndPrint [06:15:35]line Счет N : (1)209614 [06:15:35]line ИНН: 02508201610067 [06:15:35]line Контрольно-Кассовый Чек [06:15:35]line ПРОДАЖА [06:15:35]line ТРК (МРК, ГНК) : 42 [06:15:35]line Товар: 2710124130 [06:15:35]line Аи-92-К-3 [06:15:35]line 7.480 * 66.90 [06:15:35]line = 500.41 [06:15:35]line НДС 12% НСП 1% [06:15:35]line > о реализуемом товаре [06:15:35]line ОКРУГЛЕНИЕ: -0.41 [06:15:35]line ИТОГО: 500.00 [06:15:35]line Внесено: 500.00 [06:15:35]line СДАЧА: 0.00 [06:15:35]line НСП 1% : 4.43 [06:15:35]line НДС 12% : 53.14 [06:15:35]line Наличными: 500.00 [06:15:35]line Безнал.: 0.00 [06:15:35]line Место: АЗС № 86 "Партнер Нефть" [06:15:35]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [06:15:35]line СНО: Общий режим [06:15:35]line Чек 27 21.10.2024 06:15 [06:15:35]line Смена: 460 ФФД: 1.0 [06:15:35]line ЗНМ: 0300000155 [06:15:35]line РНМ: 0000000000100030 [06:15:35]line Версия ККМ: 001 [06:15:35]line ФМ: 0000000000965340 [06:15:35]line ФД: 187563 [06:15:35]line ФПД: 244880352778080 [06:15:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T061536&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187563&fm=244880352778080&tin=02508201610067®Number=0000000000100030&sum=50000 [06:15:35]written 0, free lines is 4095 [06:15:35]OFD Sender: Processing packet 187563 [packets to send 1062, broken 1061] [06:15:35]ProducePacketName [06:15:35]name=ofd_packets/00187563 [06:15:35]OFD Sender: To server: pG, [06:15:35]CommunicateWithHost lk.salyk.kg:30040 [06:15:35]ConnectInit lk.salyk.kg [06:15:35]Connected sock=10 [06:15:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 BC B4 07 01 69 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 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 88 F1 15 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 AB DC 02 00 35 04 06 00 DE B7 A6 70 97 60 75 6C 6C 4A D9 10 5B E6 [06:15:36]Write to MH i2c: 01 00 00 75 26 9B [06:15:36]Write i2c OK [06:15:36]MH_I2C_Read... [06:15:36]Read from MH i2c: 01 [06:15:36]MH_I2C_Read... [06:15:36]Read from MH i2c: 01 07 00 [06:15:36]MH_I2C_Read... [06:15:36]Read from MH i2c: 01 07 00 75 26 00 00 00 00 00 52 0C 00 [06:15:36]RasterBufferAndPrint [06:15:36]line [06:15:36]line [06:15:36]line [06:15:36]line [06:15:36]line [06:15:36]written 0, free lines is 3159 [06:15:36]MH_Cut [06:15:36]Write to MH i2c: D1 01 00 7C 26 01 74 [06:15:36]Write i2c OK [06:15:36]MH_I2C_Read... [06:15:36]Read from MH i2c: D1 [06:15:36]MH_I2C_Read... [06:15:36]Read from MH i2c: D1 01 00 [06:15:36]MH_I2C_Read... [06:15:36]Read from MH i2c: D1 01 00 7C 26 00 73 [06:15:36]Write to MH i2c: 01 00 00 7D 26 A3 [06:15:36]Write i2c OK [06:15:36]MH_I2C_Read... [06:15:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 BD A7 47 00 7B 75 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 AB DC 02 00 F4 03 04 00 78 9B 15 67 B6 04 01 00 00 B8 4D 10 44 8A 5E B4 98 [06:15:36]CommunicateWithHost err = 0 [06:15:36]CheckOFDResponse [06:15:36]1017 (14) - 77093643461234 [06:15:36]1041 (16) - 0000000000965340 [06:15:36]1040 (4) - 187563 [06:15:36]1012 (4) - 21.10.2024 00:08 [06:15:36]1206 (1) - 0 [06:15:36]OFD Sender: Remove packet 187563 [06:15:36]ProducePacketName [06:15:36]name=ofd_packets/00187563 [06:15:36]NVStorageDeleteData [06:15:36]OFD Sender: No OFD packet to send [06:15:37]*** Cut start [06:15:37]*** Partial cut [06:15:37]*** CUTSNS_PIN = 1 [06:15:37]*** CUTSNS_PIN = 0 [06:15:37]*** Brake cut motor [06:15:37]Read from MH i2c: 01 [06:15:37]MH_I2C_Read... [06:15:37]*** Stop cut motor [06:15:37]*** Cut end [06:15:37]Read from MH i2c: 01 07 00 [06:15:37]MH_I2C_Read... [06:15:37]Read from MH i2c: 01 07 00 7D 26 00 00 00 00 00 FF 0F B8 [06:15:37]process_action close_receipt done [06:15:37]requested_data is exist [06:15:37]produce_requested_data [06:15:37]requested_item fm.sn is exist - process it [06:15:37]wFMCommunicate request_size=4 [06:15:37]MH_SAM_APDU [06:15:37]CAPDU: 80 11 00 00 [06:15:37]Write to MH i2c: E2 08 00 7E 26 80 11 00 00 00 00 00 00 1E [06:15:37]Write i2c OK [06:15:37]MH_I2C_Read... [06:15:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:15:37]Read from MH i2c: E2 [06:15:37]MH_I2C_Read... [06:15:37]Read from MH i2c: E2 17 00 [06:15:37]MH_I2C_Read... [06:15:37]Read from MH i2c: E2 17 00 7E 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 6C [06:15:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [06:15:37]wFMCommunicate OK [06:15:37]requested_item fd.num is exist - process it [06:15:37]SAM_PROTO_GetFieldsCounters [06:15:37]wFMCommunicate request_size=4 [06:15:37]MH_SAM_APDU [06:15:37]CAPDU: 80 13 00 00 [06:15:37]Write to MH i2c: E2 08 00 7F 26 80 13 00 00 00 00 00 00 21 [06:15:37]Write i2c OK [06:15:37]MH_I2C_Read... [06:15:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:15:38]Read from MH i2c: E2 [06:15:38]MH_I2C_Read... [06:15:38]Read from MH i2c: E2 62 00 [06:15:38]MH_I2C_Read... [06:15:38]Read from MH i2c: E2 62 00 7F 26 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 AB DC 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 1B 00 00 00 5E 04 04 00 1B 00 00 00 57 04 04 00 1C 00 00 00 19 04 04 00 00 00 00 00 90 00 CF [06:15:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 AB DC 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 1B 00 00 00 5E 04 04 00 1B 00 00 00 57 04 04 00 1C 00 00 00 19 04 04 00 00 00 00 00 90 00 [06:15:38]wFMCommunicate OK [06:15:38]SAM_PROTO_GetFieldsCounters done [06:15:38]requested_item shift.num is exist - process it [06:15:38]requested_item shift.opened is exist - process it [06:15:38]req_shift_opened [06:15:38]FM_GetShiftState [06:15:38]SAM_PROTO_GetShiftState [06:15:38]wFMCommunicate request_size=4 [06:15:38]MH_SAM_APDU [06:15:38]CAPDU: 80 13 01 00 [06:15:38]Write to MH i2c: E2 08 00 80 26 80 13 01 00 00 00 00 00 23 [06:15:38]Write i2c OK [06:15:38]MH_I2C_Read... [06:15:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:15:38]Read from MH i2c: E2 [06:15:38]MH_I2C_Read... [06:15:38]Read from MH i2c: E2 0E 00 [06:15:38]MH_I2C_Read... [06:15:38]Read from MH i2c: E2 0E 00 80 26 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 82 [06:15:38]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [06:15:38]wFMCommunicate OK [06:15:38]SAM_PROTO_GetShiftState done [06:15:38]FM_GetShiftState done [06:15:38]req_shift_opened done [06:15:38]requested_item shift.open_date is exist - process it [06:15:38]req_shift_open_date [06:15:38]req_shift_open_date done [06:15:38]produce_requested_data done [06:15:38]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187563,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [06:15:38]process_action_free close_receipt [06:15:38]json_value_free [06:15:38]json_value_free done [06:15:38]process_json_proto returns [06:15:38]Send response to host [06:15:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187563,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [06:15:38]free response buf [06:15:38]execute_script done [06:15:38]execute_script returns [06:15:38]free content buf [06:15:38]Sock 9.Close socket [06:15:38]Sock 9.Thread stoped [06:15:41]OFD Sender: No OFD packet to send [06:15:46]OFD Sender: No OFD packet to send [06:15:51]OFD Sender: No OFD packet to send [06:15:56]OFD Sender: No OFD packet to send [06:16:01]OFD Sender: No OFD packet to send [06:16:06]OFD Sender: No OFD packet to send [06:16:11]OFD Sender: No OFD packet to send [06:16:16]OFD Sender: No OFD packet to send [06:16:21]OFD Sender: No OFD packet to send [06:16:26]OFD Sender: No OFD packet to send [06:16:31]OFD Sender: No OFD packet to send [06:16:36]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]accept exits with 8 [06:20:27]New connection [06:20:27]New thread 3067157860 created [06:20:27]Thread 3067014500 joined [06:20:27]Waiting for new connection... [06:20:27] Sock 8.Parse request [06:20:27]Sock 8.Check first char [06:20:27]Sock 8.First char is OK [06:20:27]request: POST /json_proto HTTP/1.0 [06:20:27]Method: POST [06:20:27]URL: /json_proto [06:20:27]Method is POST - this is cgi request [06:20:27]url: /json_proto [06:20:27]query_string will be loaded in cgi processing [06:20:27]execute_cgi json_proto POST (null) [06:20:27]execute_cgi path=json_proto method=POST [06:20:27]POST find Content-Length [06:20:27]Host: 172.17.42.131:8080 [06:20:27]Content-Length: 679 [06:20:27]Content-Type: application/json [06:20:27] [06:20:27]POST finish read [06:20:27]Found Content-Length = 679 [06:20:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209615", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 78.750, "sum" : 6000.75, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 6000.00, "total" : 6000.00, "payments": [ { "type": 0, "sum" : 6000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:20:27]execute_script... [06:20: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)209615", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 78.750, "sum" : 6000.75, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 6000.00, "total" : 6000.00, "payments": [ { "type": 0, "sum" : 6000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:20:27]POST & json_proto [06:20:27]process_json_proto [06:20:27]json parsed OK: [06:20:27]protocol is kg_v1.0 [06:20:27]action value=close_receipt [06:20:27]process_action close_receipt [06:20:27]cmd_close_receipt [06:20:27]MH_GetDate [06:20:27]Write to MH i2c: F0 00 00 81 26 96 [06:20:27]Write i2c OK [06:20:27]MH_I2C_Read... [06:20:27]Read from MH i2c: F0 [06:20:27]MH_I2C_Read... [06:20:27]Read from MH i2c: F0 09 00 [06:20:27]MH_I2C_Read... [06:20:27]Read from MH i2c: F0 09 00 81 26 00 AE F2 15 67 A0 18 CA 66 A3 [06:20:27]GetLastDocTimeStamp 1729491336 [06:20:27]current date 1729491630 [06:20:27]FM_GetShiftState [06:20:27]SAM_PROTO_GetShiftState [06:20:27]wFMCommunicate request_size=4 [06:20:27]MH_SAM_APDU [06:20:27]CAPDU: 80 13 01 00 [06:20:27]Write to MH i2c: E2 08 00 82 26 80 13 01 00 00 00 00 00 25 [06:20:27]Write i2c OK [06:20:27]MH_I2C_Read... [06:20:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:20:27]Read from MH i2c: E2 [06:20:27]MH_I2C_Read... [06:20:27]Read from MH i2c: E2 0E 00 [06:20:27]MH_I2C_Read... [06:20:27]Read from MH i2c: E2 0E 00 82 26 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 84 [06:20:27]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [06:20:27]wFMCommunicate OK [06:20:27]SAM_PROTO_GetShiftState done [06:20:27]FM_GetShiftState done [06:20:27]opened in 1729469754 [06:20:27]opened+sec_in_day 1729556154 [06:20:27]quantity*price = 600075 [06:20:27]sum+1 = 600076 [06:20:27]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.75 ИТОГО: 6000.00 Внесено: 6000.00 СДАЧА: 0.00 НСП 1% : 53.10 НДС 12% : 637.25 Наличными: 6000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 28 21.10.2024 06:20 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 187564 ФПД: 122499981879364 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T062030&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187564&fm=122499981879364&tin=02508201610067®Number=0000000000100030&sum=600000 [06:20:28]StoreToDocumentArchive [06:20:28]shift 460 fd 187564 [06:20:28]save to /storage/0460/doc_00187564 [06:20:28]save last doc name /storage/0460/doc_00187564 to /storage/kkm_last_doc_name [06:20:28]save OK [06:20:28]Clear old archive folders... [06:20:28]ProcessDocumentItem done err = 0, tmpTLVsize=248 [06:20:28]tlvbuf is B6F0C530 [06:20:28]SAM_PROTO_ClearQueue [06:20:28]wFMCommunicate request_size=4 [06:20:28]MH_SAM_APDU [06:20:28]CAPDU: 80 09 00 00 [06:20:28]Write to MH i2c: E2 08 00 8F 26 80 09 00 00 00 00 00 00 27 [06:20:28]Write i2c OK [06:20:28]MH_I2C_Read... [06:20:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:20:28]Read from MH i2c: E2 [06:20:28]MH_I2C_Read... [06:20:28]Read from MH i2c: E2 03 00 [06:20:28]MH_I2C_Read... [06:20:28]Read from MH i2c: E2 03 00 8F 26 00 90 00 29 [06:20:28]RAPDU: 90 00 [06:20:28]wFMCommunicate OK [06:20:28]SAM_PROTO_ClearQueue done [06:20:28]KKMCreateOFDPacket [06:20:28]OFDProtocolAddRootSTLVToBuf [06:20:28]FM_MakeSignedData [06:20:28]FM_MakeSignedData [06:20:28]SAM_PROTO_SignData [06:20:28]wFMCommunicate request_size=4 [06:20:28]MH_SAM_APDU [06:20:28]CAPDU: 80 0D 01 02 [06:20:28]Write to MH i2c: E2 08 00 90 26 80 0D 01 02 00 00 00 00 2F [06:20:28]Write i2c OK [06:20:28]MH_I2C_Read... [06:20:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:20:28]Read from MH i2c: E2 [06:20:28]MH_I2C_Read... [06:20:28]Read from MH i2c: E2 03 00 [06:20:28]MH_I2C_Read... [06:20:28]Read from MH i2c: E2 03 00 90 26 00 90 00 2A [06:20:28]RAPDU: 90 00 [06:20:28]wFMCommunicate OK [06:20:28]wFMCommunicate request_size=255 [06:20:28]MH_SAM_APDU [06:20:28]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 9E 33 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 0B 28 09 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 27 09 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BE 14 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 ED F8 00 00 00 00 07 04 06 00 C0 27 09 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 AE F2 15 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 AC DC 02 00 35 04 06 00 6F 69 BF E7 [06:20:28]Write to MH i2c: E2 02 01 91 26 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 9E 33 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 0B 28 09 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 27 09 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BE 14 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 ED F8 00 00 00 00 07 04 06 00 C0 27 09 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 AE F2 15 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 AC DC 02 00 35 04 06 00 6F 69 BF E7 00 00 05 [06:20:28]Write i2c OK [06:20:28]MH_I2C_Read... [06:20:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:20:28]Read from MH i2c: E2 [06:20:28]MH_I2C_Read... [06:20:28]Read from MH i2c: E2 03 00 [06:20:28]MH_I2C_Read... [06:20:28]Read from MH i2c: E2 03 00 91 26 00 90 00 2B [06:20:28]RAPDU: 90 00 [06:20:28]wFMCommunicate OK [06:20:28]wFMCommunicate request_size=7 [06:20:28]MH_SAM_APDU [06:20:28]CAPDU: 80 0D 02 02 02 A8 44 [06:20:28]Write to MH i2c: E2 0A 00 92 26 80 0D 02 02 02 00 A8 44 00 00 22 [06:20:28]Write i2c OK [06:20:28]MH_I2C_Read... [06:20:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:20:28]Read from MH i2c: E2 [06:20:28]MH_I2C_Read... [06:20:28]Read from MH i2c: E2 03 00 [06:20:28]MH_I2C_Read... [06:20:28]Read from MH i2c: E2 03 00 92 26 00 90 00 2C [06:20:28]RAPDU: 90 00 [06:20:28]wFMCommunicate OK [06:20:28]wFMCommunicate request_size=4 [06:20:28]MH_SAM_APDU [06:20:28]CAPDU: 80 0D 03 02 [06:20:28]Write to MH i2c: E2 08 00 93 26 80 0D 03 02 00 00 00 00 34 [06:20:28]Write i2c OK [06:20:28]MH_I2C_Read... [06:20:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:20:28]Read from MH i2c: E2 [06:20:28]MH_I2C_Read... [06:20:28]Read from MH i2c: E2 0B 00 [06:20:28]MH_I2C_Read... [06:20:28]Read from MH i2c: E2 0B 00 93 26 00 EB 8E 89 CB 52 EB 0A 32 90 00 7B [06:20:28]RAPDU: EB 8E 89 CB 52 EB 0A 32 90 00 [06:20:28]wFMCommunicate OK [06:20:28]SAM_PROTO_SignData done [06:20:28]FM_MakeSignedData done [06:20:28]CreateOFDProtocolMessage [06:20:28]wFMCommunicate request_size=4 [06:20:28]MH_SAM_APDU [06:20:28]CAPDU: 80 11 00 00 [06:20:28]Write to MH i2c: E2 08 00 94 26 80 11 00 00 00 00 00 00 34 [06:20:28]Write i2c OK [06:20:28]MH_I2C_Read... [06:20:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:20:29]Read from MH i2c: E2 [06:20:29]MH_I2C_Read... [06:20:29]Read from MH i2c: E2 17 00 [06:20:29]MH_I2C_Read... [06:20:29]Read from MH i2c: E2 17 00 94 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 82 [06:20:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [06:20:29]wFMCommunicate OK [06:20:29]CreateOFDProtocolMessage done [06:20:29]OFDSenderStorePacket 187564 [06:20:29]StoreOFDPacket docnum=187564 [06:20:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 8B 70 04 01 EB BA 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 9E 33 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 0B 28 09 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 27 09 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BE 14 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 ED F8 00 00 00 00 07 04 06 00 C0 27 09 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 AE F2 15 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 AC DC 02 00 35 04 06 00 6F 69 BF E7 A8 44 EB 8E 89 CB 52 EB 0A 32 [06:20:29]CheckFolder [06:20:29]dirname=/storage/ofd_packets [06:20:29]CheckFolder done [06:20:29]ProducePacketName [06:20:29]name=ofd_packets/00187564 [06:20:29]NVStorageSaveData ofd_packets/00187564 [06:20:29]File name is /storage/ofd_packets/00187564 [06:20:29]Write 298 bytes [06:20:29]NVStorageSaveData done [06:20:29]OFDSenderStorePacket done [06:20:29]KKMCreateOFDPacket done [06:20:29]NVStorageSaveData kkm_last_timestamp [06:20:29]File name is /storage/kkm_last_timestamp [06:20:29]Write 4 bytes [06:20:29]NVStorageSaveData done [06:20:29]ExternCall_PrintAddStr [06:20:29]wPrintStart [06:20:29]Write to MH i2c: 01 00 00 95 26 BB [06:20:29]Write i2c OK [06:20:29]MH_I2C_Read... [06:20:29]Read from MH i2c: 01 [06:20:29]MH_I2C_Read... [06:20:29]Read from MH i2c: 01 07 00 [06:20:29]MH_I2C_Read... [06:20:29]Read from MH i2c: 01 07 00 95 26 00 00 00 00 00 FF 0F D0 [06:20:29]RasterBufferAndPrint [06:20:29]line Счет N : (1)209615 [06:20:29]line ИНН: 02508201610067 [06:20:29]line Контрольно-Кассовый Чек [06:20:29]line ПРОДАЖА [06:20:29]line ТРК (МРК, ГНК) : 51 [06:20:29]line Товар: 2710194210 [06:20:29]line ДТ-К-5 [06:20:29]line 78.750 * 76.20 [06:20:29]line = 6000.75 [06:20:29]line НДС 12% НСП 1% [06:20:29]line > о реализуемом товаре [06:20:29]line ОКРУГЛЕНИЕ: -0.75 [06:20:29]line ИТОГО: 6000.00 [06:20:29]line Внесено: 6000.00 [06:20:29]line СДАЧА: 0.00 [06:20:29]line НСП 1% : 53.10 [06:20:29]line НДС 12% : 637.25 [06:20:29]line Наличными: 6000.00 [06:20:29]line Безнал.: 0.00 [06:20:29]line Место: АЗС № 86 "Партнер Нефть" [06:20:29]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [06:20:29]line СНО: Общий режим [06:20:29]line Чек 28 21.10.2024 06:20 [06:20:29]line Смена: 460 ФФД: 1.0 [06:20:29]line ЗНМ: 0300000155 [06:20:29]line РНМ: 0000000000100030 [06:20:29]line Версия ККМ: 001 [06:20:29]line ФМ: 0000000000965340 [06:20:29]line ФД: 187564 [06:20:29]line ФПД: 122499981879364 [06:20:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T062030&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187564&fm=122499981879364&tin=02508201610067®Number=0000000000100030&sum=600000 [06:20:29]OFD Sender: Processing packet 187564 [packets to send 1062, broken 1061] [06:20:29]ProducePacketName [06:20:29]name=ofd_packets/00187564 [06:20:29]OFD Sender: To server: pG, [06:20:29]CommunicateWithHost lk.salyk.kg:30040 [06:20:29]ConnectInit lk.salyk.kg [06:20:29]written 0, free lines is 4095 [06:20:29]Connected sock=10 [06:20:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 8B 70 04 01 EB BA 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 9E 33 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 0B 28 09 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 27 09 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BE 14 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 ED F8 00 00 00 00 07 04 06 00 C0 27 09 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 AE F2 15 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 AC DC 02 00 35 04 06 00 6F 69 BF E7 A8 44 EB 8E 89 CB 52 EB 0A 32 [06:20:29]Write to MH i2c: 01 00 00 C0 26 E6 [06:20:29]Write i2c OK [06:20:29]MH_I2C_Read... [06:20:29]Read from MH i2c: 01 [06:20:29]MH_I2C_Read... [06:20:29]Read from MH i2c: 01 07 00 [06:20:29]MH_I2C_Read... [06:20:29]Read from MH i2c: 01 07 00 C0 26 00 00 00 00 00 4D 0C 46 [06:20:29]RasterBufferAndPrint [06:20:29]line [06:20:29]line [06:20:29]line [06:20:29]line [06:20:29]line [06:20:29]written 0, free lines is 3153 [06:20:29]MH_Cut [06:20:29]Write to MH i2c: D1 01 00 C7 26 01 BF [06:20:29]Write i2c OK [06:20:29]MH_I2C_Read... [06:20:29]Read from MH i2c: D1 [06:20:29]MH_I2C_Read... [06:20:29]Read from MH i2c: D1 01 00 [06:20:29]MH_I2C_Read... [06:20:29]Read from MH i2c: D1 01 00 C7 26 00 BE [06:20:29]Write to MH i2c: 01 00 00 C8 26 EE [06:20:29]Write i2c OK [06:20:29]MH_I2C_Read... [06:20:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 C4 E8 47 00 33 F4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 AC DC 02 00 F4 03 04 00 9E 9C 15 67 B6 04 01 00 00 9D 75 51 16 96 DD 65 9E [06:20:29]CommunicateWithHost err = 0 [06:20:29]CheckOFDResponse [06:20:29]1017 (14) - 77093643461234 [06:20:29]1041 (16) - 0000000000965340 [06:20:29]1040 (4) - 187564 [06:20:29]1012 (4) - 21.10.2024 00:13 [06:20:29]1206 (1) - 0 [06:20:29]OFD Sender: Remove packet 187564 [06:20:29]ProducePacketName [06:20:29]name=ofd_packets/00187564 [06:20:29]NVStorageDeleteData [06:20:30]OFD Sender: No OFD packet to send [06:20:31]*** Cut start [06:20:31]*** Partial cut [06:20:31]*** CUTSNS_PIN = 1 [06:20:31]*** CUTSNS_PIN = 0 [06:20:31]*** Brake cut motor [06:20:31]Read from MH i2c: 01 [06:20:31]MH_I2C_Read... [06:20:31]*** Stop cut motor [06:20:31]*** Cut end [06:20:31]Read from MH i2c: 01 07 00 [06:20:31]MH_I2C_Read... [06:20:31]Read from MH i2c: 01 07 00 C8 26 00 00 00 00 00 FF 0F 03 [06:20:31]process_action close_receipt done [06:20:31]requested_data is exist [06:20:31]produce_requested_data [06:20:31]requested_item fm.sn is exist - process it [06:20:31]wFMCommunicate request_size=4 [06:20:31]MH_SAM_APDU [06:20:31]CAPDU: 80 11 00 00 [06:20:31]Write to MH i2c: E2 08 00 C9 26 80 11 00 00 00 00 00 00 69 [06:20:31]Write i2c OK [06:20:31]MH_I2C_Read... [06:20:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:20:31]Read from MH i2c: E2 [06:20:31]MH_I2C_Read... [06:20:31]Read from MH i2c: E2 17 00 [06:20:31]MH_I2C_Read... [06:20:31]Read from MH i2c: E2 17 00 C9 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 B7 [06:20:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [06:20:31]wFMCommunicate OK [06:20:31]requested_item fd.num is exist - process it [06:20:31]SAM_PROTO_GetFieldsCounters [06:20:31]wFMCommunicate request_size=4 [06:20:31]MH_SAM_APDU [06:20:31]CAPDU: 80 13 00 00 [06:20:31]Write to MH i2c: E2 08 00 CA 26 80 13 00 00 00 00 00 00 6C [06:20:31]Write i2c OK [06:20:31]MH_I2C_Read... [06:20:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:20:31]Read from MH i2c: E2 [06:20:31]MH_I2C_Read... [06:20:31]Read from MH i2c: E2 62 00 [06:20:31]MH_I2C_Read... [06:20:31]Read from MH i2c: E2 62 00 CA 26 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 AC DC 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 1C 00 00 00 5E 04 04 00 1C 00 00 00 57 04 04 00 1D 00 00 00 19 04 04 00 00 00 00 00 90 00 1E [06:20:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 AC DC 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 1C 00 00 00 5E 04 04 00 1C 00 00 00 57 04 04 00 1D 00 00 00 19 04 04 00 00 00 00 00 90 00 [06:20:31]wFMCommunicate OK [06:20:31]SAM_PROTO_GetFieldsCounters done [06:20:31]requested_item shift.num is exist - process it [06:20:31]requested_item shift.opened is exist - process it [06:20:31]req_shift_opened [06:20:31]FM_GetShiftState [06:20:31]SAM_PROTO_GetShiftState [06:20:31]wFMCommunicate request_size=4 [06:20:31]MH_SAM_APDU [06:20:31]CAPDU: 80 13 01 00 [06:20:31]Write to MH i2c: E2 08 00 CB 26 80 13 01 00 00 00 00 00 6E [06:20:31]Write i2c OK [06:20:31]MH_I2C_Read... [06:20:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:20:32]Read from MH i2c: E2 [06:20:32]MH_I2C_Read... [06:20:32]Read from MH i2c: E2 0E 00 [06:20:32]MH_I2C_Read... [06:20:32]Read from MH i2c: E2 0E 00 CB 26 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 CD [06:20:32]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [06:20:32]wFMCommunicate OK [06:20:32]SAM_PROTO_GetShiftState done [06:20:32]FM_GetShiftState done [06:20:32]req_shift_opened done [06:20:32]requested_item shift.open_date is exist - process it [06:20:32]req_shift_open_date [06:20:32]req_shift_open_date done [06:20:32]produce_requested_data done [06:20:32]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187564,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [06:20:32]process_action_free close_receipt [06:20:32]json_value_free [06:20:32]json_value_free done [06:20:32]process_json_proto returns [06:20:32]Send response to host [06:20:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187564,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [06:20:32]free response buf [06:20:32]execute_script done [06:20:32]execute_script returns [06:20:32]free content buf [06:20:32]Sock 8.Close socket [06:20:32]Sock 8.Thread stoped [06:20:35]OFD Sender: No OFD packet to send [06:20:40]OFD Sender: No OFD packet to send [06:20:45]OFD Sender: No OFD packet to send [06:20:50]OFD Sender: No OFD packet to send [06:20:55]OFD Sender: No OFD packet to send [06:21:00]OFD Sender: No OFD packet to send [06:21:05]OFD Sender: No OFD packet to send [06:21:10]OFD Sender: No OFD packet to send [06:21:15]OFD Sender: No OFD packet to send [06:21:20]OFD Sender: No OFD packet to send [06:21:25]OFD Sender: No OFD packet to send [06:21:30]OFD Sender: No OFD packet to send [06:21:35]OFD Sender: No OFD packet to send [06:21:40]OFD Sender: No OFD packet to send [06:21:45]OFD Sender: No OFD packet to send [06:21:50]OFD Sender: No OFD packet to send [06:21:55]OFD Sender: No OFD packet to send [06:22:00]OFD Sender: No OFD packet to send [06:22:05]OFD Sender: No OFD packet to send [06:22:10]OFD Sender: No OFD packet to send [06:22:15]OFD Sender: No OFD packet to send [06:22:20]OFD Sender: No OFD packet to send [06:22:25]OFD Sender: No OFD packet to send [06:22:30]OFD Sender: No OFD packet to send [06:22:35]OFD Sender: No OFD packet to send [06:22:41]OFD Sender: No OFD packet to send [06:22:46]OFD Sender: No OFD packet to send [06:22:51]OFD Sender: No OFD packet to send [06:22:53]accept exits with 9 [06:22:53]New connection [06:22:53]New thread 3067014500 created [06:22:53]Thread 3067157860 joined [06:22:53]Waiting for new connection... [06:22:53] Sock 9.Parse request [06:22:53]Sock 9.Check first char [06:22:53]Sock 9.First char is OK [06:22:53]request: POST /json_proto HTTP/1.0 [06:22:53]Method: POST [06:22:53]URL: /json_proto [06:22:53]Method is POST - this is cgi request [06:22:53]url: /json_proto [06:22:53]query_string will be loaded in cgi processing [06:22:53]execute_cgi json_proto POST (null) [06:22:53]execute_cgi path=json_proto method=POST [06:22:53]POST find Content-Length [06:22:53]Host: 172.17.42.131:8080 [06:22:53]Content-Length: 682 [06:22:53]Content-Type: application/json [06:22:53] [06:22:53]POST finish read [06:22:53]Found Content-Length = 682 [06:22:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209616", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 36.610, "sum" : 2716.46, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 6000.00, "total" : 2716.00, "payments": [ { "type": 0, "sum" : 2716.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:22:53]execute_script... [06: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)209616", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 36.610, "sum" : 2716.46, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 6000.00, "total" : 2716.00, "payments": [ { "type": 0, "sum" : 2716.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:22:53]POST & json_proto [06:22:53]process_json_proto [06:22:53]json parsed OK: [06:22:53]protocol is kg_v1.0 [06:22:53]action value=close_receipt [06:22:53]process_action close_receipt [06:22:53]cmd_close_receipt [06:22:53]MH_GetDate [06:22:53]Write to MH i2c: F0 00 00 CC 26 E1 [06:22:53]Write i2c OK [06:22:53]MH_I2C_Read... [06:22:53]Read from MH i2c: F0 [06:22:53]MH_I2C_Read... [06:22:53]Read from MH i2c: F0 09 00 [06:22:53]MH_I2C_Read... [06:22:53]Read from MH i2c: F0 09 00 CC 26 00 40 F3 15 67 A0 18 CA 66 81 [06:22:53]GetLastDocTimeStamp 1729491630 [06:22:53]current date 1729491776 [06:22:53]FM_GetShiftState [06:22:53]SAM_PROTO_GetShiftState [06:22:53]wFMCommunicate request_size=4 [06:22:53]MH_SAM_APDU [06:22:53]CAPDU: 80 13 01 00 [06:22:53]Write to MH i2c: E2 08 00 CD 26 80 13 01 00 00 00 00 00 70 [06:22:53]Write i2c OK [06:22:53]MH_I2C_Read... [06:22:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:22:53]Read from MH i2c: E2 [06:22:53]MH_I2C_Read... [06:22:53]Read from MH i2c: E2 0E 00 [06:22:53]MH_I2C_Read... [06:22:53]Read from MH i2c: E2 0E 00 CD 26 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 CF [06:22:53]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [06:22:53]wFMCommunicate OK [06:22:53]SAM_PROTO_GetShiftState done [06:22:53]FM_GetShiftState done [06:22:53]opened in 1729469754 [06:22:53]opened+sec_in_day 1729556154 [06:22:53]quantity*price = 271646 [06:22:53]sum+1 = 271647 [06:22:53]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.46 ИТОГО: 2716.00 Внесено: 6000.00 СДАЧА: 3284.00 НСП 1% : 24.04 НДС 12% : 288.47 Наличными: 2716.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 29 21.10.2024 06:22 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 187565 ФПД: 100277238793413 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T062256&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187565&fm=100277238793413&tin=02508201610067®Number=0000000000100030&sum=271600 [06:22:54]StoreToDocumentArchive [06:22:54]shift 460 fd 187565 [06:22:54]save to /storage/0460/doc_00187565 [06:22:54]save last doc name /storage/0460/doc_00187565 to /storage/kkm_last_doc_name [06:22:54]save OK [06:22:54]Clear old archive folders... [06:22:54]ProcessDocumentItem done err = 0, tmpTLVsize=251 [06:22:54]tlvbuf is 0106CB60 [06:22:54]SAM_PROTO_ClearQueue [06:22:54]wFMCommunicate request_size=4 [06:22:54]MH_SAM_APDU [06:22:54]CAPDU: 80 09 00 00 [06:22:54]Write to MH i2c: E2 08 00 DA 26 80 09 00 00 00 00 00 00 72 [06:22:54]Write i2c OK [06:22:54]MH_I2C_Read... [06:22:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:22:54]Read from MH i2c: E2 [06:22:54]MH_I2C_Read... [06:22:54]Read from MH i2c: E2 03 00 [06:22:54]MH_I2C_Read... [06:22:54]Read from MH i2c: E2 03 00 DA 26 00 90 00 74 [06:22:54]RAPDU: 90 00 [06:22:54]wFMCommunicate OK [06:22:54]SAM_PROTO_ClearQueue done [06:22:54]KKMCreateOFDPacket [06:22:54]OFDProtocolAddRootSTLVToBuf [06:22:54]FM_MakeSignedData [06:22:54]FM_MakeSignedData [06:22:54]SAM_PROTO_SignData [06:22:54]wFMCommunicate request_size=4 [06:22:54]MH_SAM_APDU [06:22:54]CAPDU: 80 0D 01 02 [06:22:54]Write to MH i2c: E2 08 00 DB 26 80 0D 01 02 00 00 00 00 7A [06:22:54]Write i2c OK [06:22:54]MH_I2C_Read... [06:22:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:22:54]Read from MH i2c: E2 [06:22:54]MH_I2C_Read... [06:22:54]Read from MH i2c: E2 03 00 [06:22:54]MH_I2C_Read... [06:22:54]Read from MH i2c: E2 03 00 DB 26 00 90 00 75 [06:22:54]RAPDU: 90 00 [06:22:54]wFMCommunicate OK [06:22:54]wFMCommunicate request_size=255 [06:22:54]MH_SAM_APDU [06:22:54]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 02 8F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 1E 25 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 24 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 64 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AF 70 00 00 00 00 07 04 06 00 F0 24 04 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 40 F3 15 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 AD DC 02 00 35 04 06 00 5B [06:22:54]Write to MH i2c: E2 02 01 DC 26 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 02 8F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 1E 25 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 24 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 64 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AF 70 00 00 00 00 07 04 06 00 F0 24 04 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 40 F3 15 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 AD DC 02 00 35 04 06 00 5B 00 00 97 [06:22:54]Write i2c OK [06:22:54]MH_I2C_Read... [06:22:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:22:55]Read from MH i2c: E2 [06:22:55]MH_I2C_Read... [06:22:55]Read from MH i2c: E2 03 00 [06:22:55]MH_I2C_Read... [06:22:55]Read from MH i2c: E2 03 00 DC 26 00 90 00 76 [06:22:55]RAPDU: 90 00 [06:22:55]wFMCommunicate OK [06:22:55]wFMCommunicate request_size=10 [06:22:55]MH_SAM_APDU [06:22:55]CAPDU: 80 0D 02 02 05 33 9D 32 84 C5 [06:22:55]Write to MH i2c: E2 0D 00 DD 26 80 0D 02 02 05 00 33 9D 32 84 C5 00 00 D2 [06:22:55]Write i2c OK [06:22:55]MH_I2C_Read... [06:22:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:22:55]Read from MH i2c: E2 [06:22:55]MH_I2C_Read... [06:22:55]Read from MH i2c: E2 03 00 [06:22:55]MH_I2C_Read... [06:22:55]Read from MH i2c: E2 03 00 DD 26 00 90 00 77 [06:22:55]RAPDU: 90 00 [06:22:55]wFMCommunicate OK [06:22:55]wFMCommunicate request_size=4 [06:22:55]MH_SAM_APDU [06:22:55]CAPDU: 80 0D 03 02 [06:22:55]Write to MH i2c: E2 08 00 DE 26 80 0D 03 02 00 00 00 00 7F [06:22:55]Write i2c OK [06:22:55]MH_I2C_Read... [06:22:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:22:55]Read from MH i2c: E2 [06:22:55]MH_I2C_Read... [06:22:55]Read from MH i2c: E2 0B 00 [06:22:55]MH_I2C_Read... [06:22:55]Read from MH i2c: E2 0B 00 DE 26 00 86 D9 78 29 F9 CC 45 0C 90 00 96 [06:22:55]RAPDU: 86 D9 78 29 F9 CC 45 0C 90 00 [06:22:55]wFMCommunicate OK [06:22:55]SAM_PROTO_SignData done [06:22:55]FM_MakeSignedData done [06:22:55]CreateOFDProtocolMessage [06:22:55]wFMCommunicate request_size=4 [06:22:55]MH_SAM_APDU [06:22:55]CAPDU: 80 11 00 00 [06:22:55]Write to MH i2c: E2 08 00 DF 26 80 11 00 00 00 00 00 00 7F [06:22:55]Write i2c OK [06:22:55]MH_I2C_Read... [06:22:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:22:55]Read from MH i2c: E2 [06:22:55]MH_I2C_Read... [06:22:55]Read from MH i2c: E2 17 00 [06:22:55]MH_I2C_Read... [06:22:55]Read from MH i2c: E2 17 00 DF 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 CD [06:22:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [06:22:55]wFMCommunicate OK [06:22:55]CreateOFDProtocolMessage done [06:22:55]OFDSenderStorePacket 187565 [06:22:55]StoreOFDPacket docnum=187565 [06:22:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 77 4A 07 01 0A 5E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 02 8F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 1E 25 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 24 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 64 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AF 70 00 00 00 00 07 04 06 00 F0 24 04 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 40 F3 15 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 AD DC 02 00 35 04 06 00 5B 33 9D 32 84 C5 86 D9 78 29 F9 CC 45 0C [06:22:55]CheckFolder [06:22:55]dirname=/storage/ofd_packets [06:22:55]CheckFolder done [06:22:55]ProducePacketName [06:22:55]name=ofd_packets/00187565 [06:22:55]NVStorageSaveData ofd_packets/00187565 [06:22:55]File name is /storage/ofd_packets/00187565 [06:22:55]Write 301 bytes [06:22:55]NVStorageSaveData done [06:22:55]OFDSenderStorePacket done [06:22:55]KKMCreateOFDPacket done [06:22:55]NVStorageSaveData kkm_last_timestamp [06:22:55]File name is /storage/kkm_last_timestamp [06:22:55]Write 4 bytes [06:22:55]NVStorageSaveData done [06:22:55]ExternCall_PrintAddStr [06:22:55]wPrintStart [06:22:55]Write to MH i2c: 01 00 00 E0 26 06 [06:22:55]Write i2c OK [06:22:55]MH_I2C_Read... [06:22:55]Read from MH i2c: 01 [06:22:55]MH_I2C_Read... [06:22:55]Read from MH i2c: 01 07 00 [06:22:55]MH_I2C_Read... [06:22:55]Read from MH i2c: 01 07 00 E0 26 00 00 00 00 00 FF 0F 1B [06:22:55]RasterBufferAndPrint [06:22:55]line Счет N : (1)209616 [06:22:55]line ИНН: 02508201610067 [06:22:55]line Контрольно-Кассовый Чек [06:22:55]line ПРОДАЖА [06:22:55]line ТРК (МРК, ГНК) : 33 [06:22:55]line Товар: 2710124500 [06:22:55]line Аи-95-К-3 [06:22:55]line 36.610 * 74.20 [06:22:55]line = 2716.46 [06:22:55]line НДС 12% НСП 1% [06:22:55]line > о реализуемом товаре [06:22:55]line ОКРУГЛЕНИЕ: -0.46 [06:22:55]line ИТОГО: 2716.00 [06:22:55]line Внесено: 6000.00 [06:22:55]line СДАЧА: 3284.00 [06:22:55]line НСП 1% : 24.04 [06:22:55]line НДС 12% : 288.47 [06:22:55]line Наличными: 2716.00 [06:22:55]line Безнал.: 0.00 [06:22:55]line Место: АЗС № 86 "Партнер Нефть" [06:22:55]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [06:22:55]line СНО: Общий режим [06:22:55]line Чек 29 21.10.2024 06:22 [06:22:55]line Смена: 460 ФФД: 1.0 [06:22:55]line ЗНМ: 0300000155 [06:22:55]line РНМ: 0000000000100030 [06:22:55]line Версия ККМ: 001 [06:22:55]line ФМ: 0000000000965340 [06:22:55]line ФД: 187565 [06:22:55]line ФПД: 100277238793413 [06:22:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T062256&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187565&fm=100277238793413&tin=02508201610067®Number=0000000000100030&sum=271600 [06:22:55]written 0, free lines is 4095 [06:22:55]OFD Sender: Processing packet 187565 [packets to send 1062, broken 1061] [06:22:55]ProducePacketName [06:22:55]name=ofd_packets/00187565 [06:22:55]OFD Sender: To server: pG, [06:22:55]CommunicateWithHost lk.salyk.kg:30040 [06:22:55]ConnectInit lk.salyk.kg [06:22:55]Connected sock=10 [06:22:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 77 4A 07 01 0A 5E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 02 8F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 1E 25 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 24 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 64 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AF 70 00 00 00 00 07 04 06 00 F0 24 04 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 40 F3 15 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 AD DC 02 00 35 04 06 00 5B 33 9D 32 84 C5 86 D9 78 29 F9 CC 45 0C [06:22:55]Write to MH i2c: 01 00 00 0B 27 32 [06:22:55]Write i2c OK [06:22:55]MH_I2C_Read... [06:22:55]Read from MH i2c: 01 [06:22:55]MH_I2C_Read... [06:22:55]Read from MH i2c: 01 07 00 [06:22:55]MH_I2C_Read... [06:22:55]Read from MH i2c: 01 07 00 0B 27 00 00 00 00 00 53 0C 98 [06:22:55]RasterBufferAndPrint [06:22:55]line [06:22:55]line [06:22:55]line [06:22:55]line [06:22:55]line [06:22:55]written 0, free lines is 3159 [06:22:55]MH_Cut [06:22:55]Write to MH i2c: D1 01 00 12 27 01 0B [06:22:55]Write i2c OK [06:22:55]MH_I2C_Read... [06:22:55]Read from MH i2c: D1 [06:22:55]MH_I2C_Read... [06:22:55]Read from MH i2c: D1 01 00 [06:22:55]MH_I2C_Read... [06:22:55]Read from MH i2c: D1 01 00 12 27 00 0A [06:22:55]Write to MH i2c: 01 00 00 13 27 3A [06:22:55]Write i2c OK [06:22:55]MH_I2C_Read... [06:22:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 C0 52 47 00 20 B7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 AD DC 02 00 F4 03 04 00 30 9D 15 67 B6 04 01 00 00 2E 1A D9 2E B4 26 D0 05 [06:22:55]CommunicateWithHost err = 0 [06:22:55]CheckOFDResponse [06:22:55]1017 (14) - 77093643461234 [06:22:55]1041 (16) - 0000000000965340 [06:22:55]1040 (4) - 187565 [06:22:55]1012 (4) - 21.10.2024 00:15 [06:22:55]1206 (1) - 0 [06:22:55]OFD Sender: Remove packet 187565 [06:22:55]ProducePacketName [06:22:55]name=ofd_packets/00187565 [06:22:55]NVStorageDeleteData [06:22:56]OFD Sender: No OFD packet to send [06:22:56]*** Cut start [06:22:56]*** Partial cut [06:22:56]*** CUTSNS_PIN = 1 [06:22:57]*** CUTSNS_PIN = 0 [06:22:57]*** Brake cut motor [06:22:57]Read from MH i2c: 01 [06:22:57]MH_I2C_Read... [06:22:57]*** Stop cut motor [06:22:57]*** Cut end [06:22:57]Read from MH i2c: 01 07 00 [06:22:57]MH_I2C_Read... [06:22:57]Read from MH i2c: 01 07 00 13 27 00 00 00 00 00 FF 0F 4F [06:22:57]process_action close_receipt done [06:22:57]requested_data is exist [06:22:57]produce_requested_data [06:22:57]requested_item fm.sn is exist - process it [06:22:57]wFMCommunicate request_size=4 [06:22:57]MH_SAM_APDU [06:22:57]CAPDU: 80 11 00 00 [06:22:57]Write to MH i2c: E2 08 00 14 27 80 11 00 00 00 00 00 00 B5 [06:22:57]Write i2c OK [06:22:57]MH_I2C_Read... [06:22:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:22:57]Read from MH i2c: E2 [06:22:57]MH_I2C_Read... [06:22:57]Read from MH i2c: E2 17 00 [06:22:57]MH_I2C_Read... [06:22:57]Read from MH i2c: E2 17 00 14 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 03 [06:22:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [06:22:57]wFMCommunicate OK [06:22:57]requested_item fd.num is exist - process it [06:22:57]SAM_PROTO_GetFieldsCounters [06:22:57]wFMCommunicate request_size=4 [06:22:57]MH_SAM_APDU [06:22:57]CAPDU: 80 13 00 00 [06:22:57]Write to MH i2c: E2 08 00 15 27 80 13 00 00 00 00 00 00 B8 [06:22:57]Write i2c OK [06:22:57]MH_I2C_Read... [06:22:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:22:57]Read from MH i2c: E2 [06:22:57]MH_I2C_Read... [06:22:57]Read from MH i2c: E2 62 00 [06:22:57]MH_I2C_Read... [06:22:57]Read from MH i2c: E2 62 00 15 27 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 AD DC 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 1D 00 00 00 5E 04 04 00 1D 00 00 00 57 04 04 00 1E 00 00 00 19 04 04 00 00 00 00 00 90 00 6E [06:22:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 AD DC 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 1D 00 00 00 5E 04 04 00 1D 00 00 00 57 04 04 00 1E 00 00 00 19 04 04 00 00 00 00 00 90 00 [06:22:57]wFMCommunicate OK [06:22:57]SAM_PROTO_GetFieldsCounters done [06:22:57]requested_item shift.num is exist - process it [06:22:57]requested_item shift.opened is exist - process it [06:22:57]req_shift_opened [06:22:57]FM_GetShiftState [06:22:57]SAM_PROTO_GetShiftState [06:22:57]wFMCommunicate request_size=4 [06:22:57]MH_SAM_APDU [06:22:57]CAPDU: 80 13 01 00 [06:22:57]Write to MH i2c: E2 08 00 16 27 80 13 01 00 00 00 00 00 BA [06:22:57]Write i2c OK [06:22:57]MH_I2C_Read... [06:22:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:22:57]Read from MH i2c: E2 [06:22:57]MH_I2C_Read... [06:22:57]Read from MH i2c: E2 0E 00 [06:22:57]MH_I2C_Read... [06:22:57]Read from MH i2c: E2 0E 00 16 27 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 19 [06:22:57]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [06:22:57]wFMCommunicate OK [06:22:57]SAM_PROTO_GetShiftState done [06:22:57]FM_GetShiftState done [06:22:57]req_shift_opened done [06:22:57]requested_item shift.open_date is exist - process it [06:22:57]req_shift_open_date [06:22:57]req_shift_open_date done [06:22:57]produce_requested_data done [06:22:57]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187565,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [06:22:57]process_action_free close_receipt [06:22:57]json_value_free [06:22:57]json_value_free done [06:22:57]process_json_proto returns [06:22:57]Send response to host [06:22:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187565,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [06:22:57]free response buf [06:22:57]execute_script done [06:22:57]execute_script returns [06:22:57]free content buf [06:22:57]Sock 9.Close socket [06:22:57]Sock 9.Thread stoped [06:22:58]accept exits with 8 [06:22:58]New connection [06:22:58]New thread 3067157860 created [06:22:58]Thread 3067014500 joined [06:22:58]Waiting for new connection... [06:22:58] Sock 8.Parse request [06:22:58]Sock 8.Check first char [06:22:58]Sock 8.First char is OK [06:22:58]request: POST /json_proto HTTP/1.0 [06:22:58]Method: POST [06:22:58]URL: /json_proto [06:22:58]Method is POST - this is cgi request [06:22:58]url: /json_proto [06:22:58]query_string will be loaded in cgi processing [06:22:58]execute_cgi json_proto POST (null) [06:22:58]execute_cgi path=json_proto method=POST [06:22:58]POST find Content-Length [06:22:58]Host: 172.17.42.131:8080 [06:22:58]Content-Length: 679 [06:22:58]Content-Type: application/json [06:22:58] [06:22:58]POST finish read [06:22:58]Found Content-Length = 679 [06:22:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209617", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 78.750, "sum" : 6000.75, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 6000.00, "total" : 6000.00, "payments": [ { "type": 0, "sum" : 6000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:22:58]execute_script... [06:22: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)209617", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 78.750, "sum" : 6000.75, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 6000.00, "total" : 6000.00, "payments": [ { "type": 0, "sum" : 6000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:22:58]POST & json_proto [06:22:58]process_json_proto [06:22:58]json parsed OK: [06:22:58]protocol is kg_v1.0 [06:22:58]action value=close_receipt [06:22:58]process_action close_receipt [06:22:58]cmd_close_receipt [06:22:58]MH_GetDate [06:22:58]Write to MH i2c: F0 00 00 17 27 2D [06:22:58]Write i2c OK [06:22:58]MH_I2C_Read... [06:22:58]Read from MH i2c: F0 [06:22:58]MH_I2C_Read... [06:22:58]Read from MH i2c: F0 09 00 [06:22:58]MH_I2C_Read... [06:22:58]Read from MH i2c: F0 09 00 17 27 00 45 F3 15 67 A0 18 CA 66 D2 [06:22:58]GetLastDocTimeStamp 1729491776 [06:22:58]current date 1729491781 [06:22:58]FM_GetShiftState [06:22:58]SAM_PROTO_GetShiftState [06:22:58]wFMCommunicate request_size=4 [06:22:58]MH_SAM_APDU [06:22:58]CAPDU: 80 13 01 00 [06:22:58]Write to MH i2c: E2 08 00 18 27 80 13 01 00 00 00 00 00 BC [06:22:58]Write i2c OK [06:22:58]MH_I2C_Read... [06:22:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:22:58]Read from MH i2c: E2 [06:22:58]MH_I2C_Read... [06:22:58]Read from MH i2c: E2 0E 00 [06:22:58]MH_I2C_Read... [06:22:58]Read from MH i2c: E2 0E 00 18 27 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 1B [06:22:58]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [06:22:58]wFMCommunicate OK [06:22:58]SAM_PROTO_GetShiftState done [06:22:58]FM_GetShiftState done [06:22:58]opened in 1729469754 [06:22:58]opened+sec_in_day 1729556154 [06:22:58]quantity*price = 600075 [06:22:58]sum+1 = 600076 [06:22:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.75 ИТОГО: 6000.00 Внесено: 6000.00 СДАЧА: 0.00 НСП 1% : 53.10 НДС 12% : 637.25 Наличными: 6000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 30 21.10.2024 06:23 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 187566 ФПД: 276459241595801 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T062301&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187566&fm=276459241595801&tin=02508201610067®Number=0000000000100030&sum=600000 [06:22:59]StoreToDocumentArchive [06:22:59]shift 460 fd 187566 [06:22:59]save to /storage/0460/doc_00187566 [06:22:59]save last doc name /storage/0460/doc_00187566 to /storage/kkm_last_doc_name [06:22:59]save OK [06:22:59]Clear old archive folders... [06:22:59]ProcessDocumentItem done err = 0, tmpTLVsize=248 [06:22:59]tlvbuf is 01167090 [06:22:59]SAM_PROTO_ClearQueue [06:22:59]wFMCommunicate request_size=4 [06:22:59]MH_SAM_APDU [06:22:59]CAPDU: 80 09 00 00 [06:22:59]Write to MH i2c: E2 08 00 25 27 80 09 00 00 00 00 00 00 BE [06:22:59]Write i2c OK [06:22:59]MH_I2C_Read... [06:22:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:22:59]Read from MH i2c: E2 [06:22:59]MH_I2C_Read... [06:22:59]Read from MH i2c: E2 03 00 [06:22:59]MH_I2C_Read... [06:22:59]Read from MH i2c: E2 03 00 25 27 00 90 00 C0 [06:22:59]RAPDU: 90 00 [06:22:59]wFMCommunicate OK [06:22:59]SAM_PROTO_ClearQueue done [06:22:59]KKMCreateOFDPacket [06:22:59]OFDProtocolAddRootSTLVToBuf [06:22:59]FM_MakeSignedData [06:22:59]FM_MakeSignedData [06:22:59]SAM_PROTO_SignData [06:22:59]wFMCommunicate request_size=4 [06:22:59]MH_SAM_APDU [06:22:59]CAPDU: 80 0D 01 02 [06:22:59]Write to MH i2c: E2 08 00 26 27 80 0D 01 02 00 00 00 00 C6 [06:22:59]Write i2c OK [06:22:59]MH_I2C_Read... [06:22:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:22:59]Read from MH i2c: E2 [06:22:59]MH_I2C_Read... [06:22:59]Read from MH i2c: E2 03 00 [06:22:59]MH_I2C_Read... [06:22:59]Read from MH i2c: E2 03 00 26 27 00 90 00 C1 [06:22:59]RAPDU: 90 00 [06:22:59]wFMCommunicate OK [06:22:59]wFMCommunicate request_size=255 [06:22:59]MH_SAM_APDU [06:22:59]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 9E 33 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 0B 28 09 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 27 09 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BE 14 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 ED F8 00 00 00 00 07 04 06 00 C0 27 09 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 45 F3 15 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 AE DC 02 00 35 04 06 00 FB 70 2E E3 [06:22:59]Write to MH i2c: E2 02 01 27 27 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 9E 33 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 0B 28 09 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 27 09 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BE 14 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 ED F8 00 00 00 00 07 04 06 00 C0 27 09 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 45 F3 15 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 AE DC 02 00 35 04 06 00 FB 70 2E E3 00 00 36 [06:22:59]Write i2c OK [06:22:59]MH_I2C_Read... [06:23:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:23:00]Read from MH i2c: E2 [06:23:00]MH_I2C_Read... [06:23:00]Read from MH i2c: E2 03 00 [06:23:00]MH_I2C_Read... [06:23:00]Read from MH i2c: E2 03 00 27 27 00 90 00 C2 [06:23:00]RAPDU: 90 00 [06:23:00]wFMCommunicate OK [06:23:00]wFMCommunicate request_size=7 [06:23:00]MH_SAM_APDU [06:23:00]CAPDU: 80 0D 02 02 02 E3 99 [06:23:00]Write to MH i2c: E2 0A 00 28 27 80 0D 02 02 02 00 E3 99 00 00 49 [06:23:00]Write i2c OK [06:23:00]MH_I2C_Read... [06:23:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:23:00]Read from MH i2c: E2 [06:23:00]MH_I2C_Read... [06:23:00]Read from MH i2c: E2 03 00 [06:23:00]MH_I2C_Read... [06:23:00]Read from MH i2c: E2 03 00 28 27 00 90 00 C3 [06:23:00]RAPDU: 90 00 [06:23:00]wFMCommunicate OK [06:23:00]wFMCommunicate request_size=4 [06:23:00]MH_SAM_APDU [06:23:00]CAPDU: 80 0D 03 02 [06:23:00]Write to MH i2c: E2 08 00 29 27 80 0D 03 02 00 00 00 00 CB [06:23:00]Write i2c OK [06:23:00]MH_I2C_Read... [06:23:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:23:00]Read from MH i2c: E2 [06:23:00]MH_I2C_Read... [06:23:00]Read from MH i2c: E2 0B 00 [06:23:00]MH_I2C_Read... [06:23:00]Read from MH i2c: E2 0B 00 29 27 00 8E E2 56 D8 A6 BF 00 51 90 00 20 [06:23:00]RAPDU: 8E E2 56 D8 A6 BF 00 51 90 00 [06:23:00]wFMCommunicate OK [06:23:00]SAM_PROTO_SignData done [06:23:00]FM_MakeSignedData done [06:23:00]CreateOFDProtocolMessage [06:23:00]wFMCommunicate request_size=4 [06:23:00]MH_SAM_APDU [06:23:00]CAPDU: 80 11 00 00 [06:23:00]Write to MH i2c: E2 08 00 2A 27 80 11 00 00 00 00 00 00 CB [06:23:00]Write i2c OK [06:23:00]MH_I2C_Read... [06:23:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:23:00]Read from MH i2c: E2 [06:23:00]MH_I2C_Read... [06:23:00]Read from MH i2c: E2 17 00 [06:23:00]MH_I2C_Read... [06:23:00]Read from MH i2c: E2 17 00 2A 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 19 [06:23:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [06:23:00]wFMCommunicate OK [06:23:00]CreateOFDProtocolMessage done [06:23:00]OFDSenderStorePacket 187566 [06:23:00]StoreOFDPacket docnum=187566 [06:23:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 9E ED 04 01 29 4A 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 9E 33 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 0B 28 09 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 27 09 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BE 14 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 ED F8 00 00 00 00 07 04 06 00 C0 27 09 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 45 F3 15 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 AE DC 02 00 35 04 06 00 FB 70 2E E3 E3 99 8E E2 56 D8 A6 BF 00 51 [06:23:00]CheckFolder [06:23:00]dirname=/storage/ofd_packets [06:23:00]CheckFolder done [06:23:00]ProducePacketName [06:23:00]name=ofd_packets/00187566 [06:23:00]NVStorageSaveData ofd_packets/00187566 [06:23:00]File name is /storage/ofd_packets/00187566 [06:23:00]Write 298 bytes [06:23:00]NVStorageSaveData done [06:23:00]OFDSenderStorePacket done [06:23:00]KKMCreateOFDPacket done [06:23:00]NVStorageSaveData kkm_last_timestamp [06:23:00]File name is /storage/kkm_last_timestamp [06:23:00]Write 4 bytes [06:23:00]NVStorageSaveData done [06:23:00]ExternCall_PrintAddStr [06:23:00]wPrintStart [06:23:00]Write to MH i2c: 01 00 00 2B 27 52 [06:23:00]Write i2c OK [06:23:00]MH_I2C_Read... [06:23:00]Read from MH i2c: 01 [06:23:00]MH_I2C_Read... [06:23:00]Read from MH i2c: 01 07 00 [06:23:00]MH_I2C_Read... [06:23:00]Read from MH i2c: 01 07 00 2B 27 00 00 00 00 00 FF 0F 67 [06:23:00]RasterBufferAndPrint [06:23:00]line Счет N : (1)209617 [06:23:00]line ИНН: 02508201610067 [06:23:00]line Контрольно-Кассовый Чек [06:23:00]line ПРОДАЖА [06:23:00]line ТРК (МРК, ГНК) : 51 [06:23:00]line Товар: 2710194210 [06:23:00]line ДТ-К-5 [06:23:00]line 78.750 * 76.20 [06:23:00]line = 6000.75 [06:23:00]line НДС 12% НСП 1% [06:23:00]line > о реализуемом товаре [06:23:00]line ОКРУГЛЕНИЕ: -0.75 [06:23:00]line ИТОГО: 6000.00 [06:23:00]line Внесено: 6000.00 [06:23:00]line СДАЧА: 0.00 [06:23:00]line НСП 1% : 53.10 [06:23:00]line НДС 12% : 637.25 [06:23:00]line Наличными: 6000.00 [06:23:00]line Безнал.: 0.00 [06:23:00]line Место: АЗС № 86 "Партнер Нефть" [06:23:00]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [06:23:00]line СНО: Общий режим [06:23:00]line Чек 30 21.10.2024 06:23 [06:23:00]line Смена: 460 ФФД: 1.0 [06:23:00]line ЗНМ: 0300000155 [06:23:00]line РНМ: 0000000000100030 [06:23:00]line Версия ККМ: 001 [06:23:00]line ФМ: 0000000000965340 [06:23:00]line ФД: 187566 [06:23:00]line ФПД: 276459241595801 [06:23:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T062301&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187566&fm=276459241595801&tin=02508201610067®Number=0000000000100030&sum=600000 [06:23:00]OFD Sender: Processing packet 187566 [packets to send 1062, broken 1061] [06:23:00]ProducePacketName [06:23:00]name=ofd_packets/00187566 [06:23:00]OFD Sender: To server: pG, [06:23:00]CommunicateWithHost lk.salyk.kg:30040 [06:23:00]ConnectInit lk.salyk.kg [06:23:00]written 0, free lines is 4095 [06:23:00]Connected sock=10 [06:23:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 9E ED 04 01 29 4A 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 9E 33 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 0B 28 09 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 27 09 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BE 14 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 ED F8 00 00 00 00 07 04 06 00 C0 27 09 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 45 F3 15 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 AE DC 02 00 35 04 06 00 FB 70 2E E3 E3 99 8E E2 56 D8 A6 BF 00 51 [06:23:01]Write to MH i2c: 01 00 00 56 27 7D [06:23:01]Write i2c OK [06:23:01]MH_I2C_Read... [06:23:01]Read from MH i2c: 01 [06:23:01]MH_I2C_Read... [06:23:01]Read from MH i2c: 01 07 00 [06:23:01]MH_I2C_Read... [06:23:01]Read from MH i2c: 01 07 00 56 27 00 00 00 00 00 58 0C E8 [06:23:01]RasterBufferAndPrint [06:23:01]line [06:23:01]line [06:23:01]line [06:23:01]line [06:23:01]line [06:23:01]written 0, free lines is 3165 [06:23:01]MH_Cut [06:23:01]Write to MH i2c: D1 01 00 5D 27 01 56 [06:23:01]Write i2c OK [06:23:01]MH_I2C_Read... [06:23:01]Read from MH i2c: D1 [06:23:01]MH_I2C_Read... [06:23:01]Read from MH i2c: D1 01 00 [06:23:01]MH_I2C_Read... [06:23:01]Read from MH i2c: D1 01 00 5D 27 00 55 [06:23:01]Write to MH i2c: 01 00 00 5E 27 85 [06:23:01]Write i2c OK [06:23:01]MH_I2C_Read... [06:23:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 86 FF 47 00 39 AE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 AE DC 02 00 F4 03 04 00 35 9D 15 67 B6 04 01 00 00 12 44 1A 2B A5 0E A8 D0 [06:23:01]CommunicateWithHost err = 0 [06:23:01]CheckOFDResponse [06:23:01]1017 (14) - 77093643461234 [06:23:01]1041 (16) - 0000000000965340 [06:23:01]1040 (4) - 187566 [06:23:01]1012 (4) - 21.10.2024 00:15 [06:23:01]1206 (1) - 0 [06:23:01]OFD Sender: Remove packet 187566 [06:23:01]ProducePacketName [06:23:01]name=ofd_packets/00187566 [06:23:01]NVStorageDeleteData [06:23:01]OFD Sender: No OFD packet to send [06:23:02]*** Cut start [06:23:02]*** Partial cut [06:23:02]*** CUTSNS_PIN = 1 [06:23:02]*** CUTSNS_PIN = 0 [06:23:02]*** Brake cut motor [06:23:03]Read from MH i2c: 01 [06:23:03]MH_I2C_Read... [06:23:03]*** Stop cut motor [06:23:03]*** Cut end [06:23:03]Read from MH i2c: 01 07 00 [06:23:03]MH_I2C_Read... [06:23:03]Read from MH i2c: 01 07 00 5E 27 00 00 00 00 00 FF 0F 9A [06:23:03]process_action close_receipt done [06:23:03]requested_data is exist [06:23:03]produce_requested_data [06:23:03]requested_item fm.sn is exist - process it [06:23:03]wFMCommunicate request_size=4 [06:23:03]MH_SAM_APDU [06:23:03]CAPDU: 80 11 00 00 [06:23:03]Write to MH i2c: E2 08 00 5F 27 80 11 00 00 00 00 00 00 00 [06:23:03]Write i2c OK [06:23:03]MH_I2C_Read... [06:23:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:23:03]Read from MH i2c: E2 [06:23:03]MH_I2C_Read... [06:23:03]Read from MH i2c: E2 17 00 [06:23:03]MH_I2C_Read... [06:23:03]Read from MH i2c: E2 17 00 5F 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 4E [06:23:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [06:23:03]wFMCommunicate OK [06:23:03]requested_item fd.num is exist - process it [06:23:03]SAM_PROTO_GetFieldsCounters [06:23:03]wFMCommunicate request_size=4 [06:23:03]MH_SAM_APDU [06:23:03]CAPDU: 80 13 00 00 [06:23:03]Write to MH i2c: E2 08 00 60 27 80 13 00 00 00 00 00 00 03 [06:23:03]Write i2c OK [06:23:03]MH_I2C_Read... [06:23:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:23:03]Read from MH i2c: E2 [06:23:03]MH_I2C_Read... [06:23:03]Read from MH i2c: E2 62 00 [06:23:03]MH_I2C_Read... [06:23:03]Read from MH i2c: E2 62 00 60 27 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 AE DC 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 1E 00 00 00 5E 04 04 00 1E 00 00 00 57 04 04 00 1F 00 00 00 19 04 04 00 00 00 00 00 90 00 BD [06:23:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 AE DC 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 1E 00 00 00 5E 04 04 00 1E 00 00 00 57 04 04 00 1F 00 00 00 19 04 04 00 00 00 00 00 90 00 [06:23:03]wFMCommunicate OK [06:23:03]SAM_PROTO_GetFieldsCounters done [06:23:03]requested_item shift.num is exist - process it [06:23:03]requested_item shift.opened is exist - process it [06:23:03]req_shift_opened [06:23:03]FM_GetShiftState [06:23:03]SAM_PROTO_GetShiftState [06:23:03]wFMCommunicate request_size=4 [06:23:03]MH_SAM_APDU [06:23:03]CAPDU: 80 13 01 00 [06:23:03]Write to MH i2c: E2 08 00 61 27 80 13 01 00 00 00 00 00 05 [06:23:03]Write i2c OK [06:23:03]MH_I2C_Read... [06:23:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:23:03]Read from MH i2c: E2 [06:23:03]MH_I2C_Read... [06:23:03]Read from MH i2c: E2 0E 00 [06:23:03]MH_I2C_Read... [06:23:03]Read from MH i2c: E2 0E 00 61 27 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 64 [06:23:03]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [06:23:03]wFMCommunicate OK [06:23:03]SAM_PROTO_GetShiftState done [06:23:03]FM_GetShiftState done [06:23:03]req_shift_opened done [06:23:03]requested_item shift.open_date is exist - process it [06:23:03]req_shift_open_date [06:23:03]req_shift_open_date done [06:23:03]produce_requested_data done [06:23:03]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187566,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [06:23:03]process_action_free close_receipt [06:23:03]json_value_free [06:23:03]json_value_free done [06:23:03]process_json_proto returns [06:23:03]Send response to host [06:23:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187566,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [06:23:03]free response buf [06:23:03]execute_script done [06:23:03]execute_script returns [06:23:03]free content buf [06:23:03]Sock 8.Close socket [06:23:03]Sock 8.Thread stoped [06:23:06]OFD Sender: No OFD packet to send [06:23:11]OFD Sender: No OFD packet to send [06:23:16]OFD Sender: No OFD packet to send [06:23:21]OFD Sender: No OFD packet to send [06:23:26]OFD Sender: No OFD packet to send [06:23:31]OFD Sender: No OFD packet to send [06:23:36]OFD Sender: No OFD packet to send [06:23:41]OFD Sender: No OFD packet to send [06:23:46]OFD Sender: No OFD packet to send [06:23:51]OFD Sender: No OFD packet to send [06:23:56]OFD Sender: No OFD packet to send [06:24: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:51]accept exits with 9 [06:24:51]New connection [06:24:51]New thread 3067014500 created [06:24:51]Thread 3067157860 joined [06:24:51]Waiting for new connection... [06:24:51] Sock 9.Parse request [06:24:51]Sock 9.Check first char [06:24:51]Sock 9.First char is OK [06:24:51]request: POST /json_proto HTTP/1.0 [06:24:51]Method: POST [06:24:51]URL: /json_proto [06:24:51]Method is POST - this is cgi request [06:24:51]url: /json_proto [06:24:51]query_string will be loaded in cgi processing [06:24:51]execute_cgi json_proto POST (null) [06:24:51]execute_cgi path=json_proto method=POST [06:24:51]POST find Content-Length [06:24:51]Host: 172.17.42.131:8080 [06:24:51]Content-Length: 682 [06:24:51]Content-Type: application/json [06:24:51] [06:24:51]POST finish read [06:24:51]Found Content-Length = 682 [06:24:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209619", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "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" ] } } [06:24:51]execute_script... [06:24: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)209619", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "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" ] } } [06:24:51]POST & json_proto [06:24:51]process_json_proto [06:24:51]json parsed OK: [06:24:51]protocol is kg_v1.0 [06:24:51]action value=close_receipt [06:24:51]process_action close_receipt [06:24:51]cmd_close_receipt [06:24:51]MH_GetDate [06:24:51]Write to MH i2c: F0 00 00 62 27 78 [06:24:51]Write i2c OK [06:24:51]MH_I2C_Read... [06:24:51]Read from MH i2c: F0 [06:24:51]MH_I2C_Read... [06:24:51]Read from MH i2c: F0 09 00 [06:24:51]MH_I2C_Read... [06:24:51]Read from MH i2c: F0 09 00 62 27 00 B6 F3 15 67 A0 18 CA 66 8E [06:24:51]GetLastDocTimeStamp 1729491781 [06:24:51]current date 1729491894 [06:24:51]FM_GetShiftState [06:24:51]SAM_PROTO_GetShiftState [06:24:51]wFMCommunicate request_size=4 [06:24:51]MH_SAM_APDU [06:24:51]CAPDU: 80 13 01 00 [06:24:51]Write to MH i2c: E2 08 00 63 27 80 13 01 00 00 00 00 00 07 [06:24:51]Write i2c OK [06:24:51]MH_I2C_Read... [06:24:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:24:51]Read from MH i2c: E2 [06:24:51]MH_I2C_Read... [06:24:51]Read from MH i2c: E2 0E 00 [06:24:51]MH_I2C_Read... [06:24:51]Read from MH i2c: E2 0E 00 63 27 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 66 [06:24:51]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [06:24:51]wFMCommunicate OK [06:24:51]SAM_PROTO_GetShiftState done [06:24:51]FM_GetShiftState done [06:24:51]opened in 1729469754 [06:24:51]opened+sec_in_day 1729556154 [06:24:51]quantity*price = 100015 [06:24:51]sum+1 = 100017 [06:24: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 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 31 21.10.2024 06:24 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 187567 ФПД: 271930595047929 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T062454&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187567&fm=271930595047929&tin=02508201610067®Number=0000000000100030&sum=100000 [06:24:52]StoreToDocumentArchive [06:24:52]shift 460 fd 187567 [06:24:52]save to /storage/0460/doc_00187567 [06:24:52]save last doc name /storage/0460/doc_00187567 to /storage/kkm_last_doc_name [06:24:52]save OK [06:24:52]Clear old archive folders... [06:24:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [06:24:52]tlvbuf is 01084420 [06:24:52]SAM_PROTO_ClearQueue [06:24:52]wFMCommunicate request_size=4 [06:24:52]MH_SAM_APDU [06:24:52]CAPDU: 80 09 00 00 [06:24:52]Write to MH i2c: E2 08 00 70 27 80 09 00 00 00 00 00 00 09 [06:24:52]Write i2c OK [06:24:52]MH_I2C_Read... [06:24:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:24:52]Read from MH i2c: E2 [06:24:52]MH_I2C_Read... [06:24:52]Read from MH i2c: E2 03 00 [06:24:52]MH_I2C_Read... [06:24:52]Read from MH i2c: E2 03 00 70 27 00 90 00 0B [06:24:52]RAPDU: 90 00 [06:24:52]wFMCommunicate OK [06:24:52]SAM_PROTO_ClearQueue done [06:24:52]KKMCreateOFDPacket [06:24:52]OFDProtocolAddRootSTLVToBuf [06:24:52]FM_MakeSignedData [06:24:52]FM_MakeSignedData [06:24:52]SAM_PROTO_SignData [06:24:52]wFMCommunicate request_size=4 [06:24:52]MH_SAM_APDU [06:24:52]CAPDU: 80 0D 01 02 [06:24:52]Write to MH i2c: E2 08 00 71 27 80 0D 01 02 00 00 00 00 11 [06:24:52]Write i2c OK [06:24:52]MH_I2C_Read... [06:24:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:24:52]Read from MH i2c: E2 [06:24:52]MH_I2C_Read... [06:24:52]Read from MH i2c: E2 03 00 [06:24:52]MH_I2C_Read... [06:24:52]Read from MH i2c: E2 03 00 71 27 00 90 00 0C [06:24:52]RAPDU: 90 00 [06:24:52]wFMCommunicate OK [06:24:52]wFMCommunicate request_size=255 [06:24:52]MH_SAM_APDU [06:24: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 33 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 B6 F3 15 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 AF DC 02 00 35 04 06 00 F7 [06:24:52]Write to MH i2c: E2 02 01 72 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 33 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 B6 F3 15 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 AF DC 02 00 35 04 06 00 F7 00 00 13 [06:24:52]Write i2c OK [06:24:52]MH_I2C_Read... [06:24:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:24:52]Read from MH i2c: E2 [06:24:52]MH_I2C_Read... [06:24:52]Read from MH i2c: E2 03 00 [06:24:52]MH_I2C_Read... [06:24:52]Read from MH i2c: E2 03 00 72 27 00 90 00 0D [06:24:52]RAPDU: 90 00 [06:24:52]wFMCommunicate OK [06:24:52]wFMCommunicate request_size=10 [06:24:52]MH_SAM_APDU [06:24:52]CAPDU: 80 0D 02 02 05 51 C6 85 79 F9 [06:24:52]Write to MH i2c: E2 0D 00 73 27 80 0D 02 02 05 00 51 C6 85 79 F9 00 00 2C [06:24:52]Write i2c OK [06:24:52]MH_I2C_Read... [06:24:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:24:52]Read from MH i2c: E2 [06:24:52]MH_I2C_Read... [06:24:52]Read from MH i2c: E2 03 00 [06:24:52]MH_I2C_Read... [06:24:52]Read from MH i2c: E2 03 00 73 27 00 90 00 0E [06:24:52]RAPDU: 90 00 [06:24:52]wFMCommunicate OK [06:24:52]wFMCommunicate request_size=4 [06:24:52]MH_SAM_APDU [06:24:52]CAPDU: 80 0D 03 02 [06:24:52]Write to MH i2c: E2 08 00 74 27 80 0D 03 02 00 00 00 00 16 [06:24:52]Write i2c OK [06:24:52]MH_I2C_Read... [06:24:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:24:52]Read from MH i2c: E2 [06:24:52]MH_I2C_Read... [06:24:52]Read from MH i2c: E2 0B 00 [06:24:52]MH_I2C_Read... [06:24:52]Read from MH i2c: E2 0B 00 74 27 00 9D BE 34 D6 DC 7E BE F6 90 00 8A [06:24:52]RAPDU: 9D BE 34 D6 DC 7E BE F6 90 00 [06:24:52]wFMCommunicate OK [06:24:52]SAM_PROTO_SignData done [06:24:52]FM_MakeSignedData done [06:24:52]CreateOFDProtocolMessage [06:24:52]wFMCommunicate request_size=4 [06:24:52]MH_SAM_APDU [06:24:52]CAPDU: 80 11 00 00 [06:24:52]Write to MH i2c: E2 08 00 75 27 80 11 00 00 00 00 00 00 16 [06:24:52]Write i2c OK [06:24:52]MH_I2C_Read... [06:24:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:24:52]Read from MH i2c: E2 [06:24:52]MH_I2C_Read... [06:24:52]Read from MH i2c: E2 17 00 [06:24:52]MH_I2C_Read... [06:24:52]Read from MH i2c: E2 17 00 75 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 64 [06:24:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [06:24:52]wFMCommunicate OK [06:24:52]CreateOFDProtocolMessage done [06:24:52]OFDSenderStorePacket 187567 [06:24:52]StoreOFDPacket docnum=187567 [06:24:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 13 8D 07 01 13 FF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 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 B6 F3 15 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 AF DC 02 00 35 04 06 00 F7 51 C6 85 79 F9 9D BE 34 D6 DC 7E BE F6 [06:24:52]CheckFolder [06:24:52]dirname=/storage/ofd_packets [06:24:52]CheckFolder done [06:24:52]ProducePacketName [06:24:52]name=ofd_packets/00187567 [06:24:52]NVStorageSaveData ofd_packets/00187567 [06:24:52]File name is /storage/ofd_packets/00187567 [06:24:52]Write 301 bytes [06:24:52]NVStorageSaveData done [06:24:52]OFDSenderStorePacket done [06:24:52]KKMCreateOFDPacket done [06:24:52]NVStorageSaveData kkm_last_timestamp [06:24:52]File name is /storage/kkm_last_timestamp [06:24:52]Write 4 bytes [06:24:53]NVStorageSaveData done [06:24:53]ExternCall_PrintAddStr [06:24:53]wPrintStart [06:24:53]Write to MH i2c: 01 00 00 76 27 9D [06:24:53]Write i2c OK [06:24:53]MH_I2C_Read... [06:24:53]Read from MH i2c: 01 [06:24:53]MH_I2C_Read... [06:24:53]Read from MH i2c: 01 07 00 [06:24:53]MH_I2C_Read... [06:24:53]Read from MH i2c: 01 07 00 76 27 00 00 00 00 00 FF 0F B2 [06:24:53]RasterBufferAndPrint [06:24:53]line Счет N : (1)209619 [06:24:53]line ИНН: 02508201610067 [06:24:53]line Контрольно-Кассовый Чек [06:24:53]line ПРОДАЖА [06:24:53]line ТРК (МРК, ГНК) : 12 [06:24:53]line Товар: 2710124130 [06:24:53]line Аи-92-К-3 [06:24:53]line 14.950 * 66.90 [06:24:53]line = 1000.16 [06:24:53]line НДС 12% НСП 1% [06:24:53]line > о реализуемом товаре [06:24:53]line ОКРУГЛЕНИЕ: -0.16 [06:24:53]line ИТОГО: 1000.00 [06:24:53]line Внесено: 1000.00 [06:24:53]line СДАЧА: 0.00 [06:24:53]line НСП 1% : 8.85 [06:24:53]line НДС 12% : 106.21 [06:24:53]line Наличными: 1000.00 [06:24:53]line Безнал.: 0.00 [06:24:53]line Место: АЗС № 86 "Партнер Нефть" [06:24:53]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [06:24:53]line СНО: Общий режим [06:24:53]line Чек 31 21.10.2024 06:24 [06:24:53]line Смена: 460 ФФД: 1.0 [06:24:53]line ЗНМ: 0300000155 [06:24:53]line РНМ: 0000000000100030 [06:24:53]line Версия ККМ: 001 [06:24:53]line ФМ: 0000000000965340 [06:24:53]line ФД: 187567 [06:24:53]line ФПД: 271930595047929 [06:24:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T062454&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187567&fm=271930595047929&tin=02508201610067®Number=0000000000100030&sum=100000 [06:24:53]written 0, free lines is 4095 [06:24:53]OFD Sender: Processing packet 187567 [packets to send 1062, broken 1061] [06:24:53]ProducePacketName [06:24:53]name=ofd_packets/00187567 [06:24:53]OFD Sender: To server: pG, [06:24:53]CommunicateWithHost lk.salyk.kg:30040 [06:24:53]ConnectInit lk.salyk.kg [06:24:53]Connected sock=10 [06:24:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 13 8D 07 01 13 FF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 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 B6 F3 15 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 AF DC 02 00 35 04 06 00 F7 51 C6 85 79 F9 9D BE 34 D6 DC 7E BE F6 [06:24:53]Write to MH i2c: 01 00 00 A1 27 C8 [06:24:53]Write i2c OK [06:24:53]MH_I2C_Read... [06:24:53]Read from MH i2c: 01 [06:24:53]MH_I2C_Read... [06:24:53]Read from MH i2c: 01 07 00 [06:24:53]MH_I2C_Read... [06:24:53]Read from MH i2c: 01 07 00 A1 27 00 00 00 00 00 4F 0C 2A [06:24:53]RasterBufferAndPrint [06:24:53]line [06:24:53]line [06:24:53]line [06:24:53]line [06:24:53]line [06:24:53]written 0, free lines is 3155 [06:24:53]MH_Cut [06:24:53]Write to MH i2c: D1 01 00 A8 27 01 A1 [06:24:53]Write i2c OK [06:24:53]MH_I2C_Read... [06:24:53]Read from MH i2c: D1 [06:24:53]MH_I2C_Read... [06:24:53]Read from MH i2c: D1 01 00 [06:24:53]MH_I2C_Read... [06:24:53]Read from MH i2c: D1 01 00 A8 27 00 A0 [06:24:53]Write to MH i2c: 01 00 00 A9 27 D0 [06:24:53]Write i2c OK [06:24:53]MH_I2C_Read... [06:24:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 7E B0 47 00 5E F1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 AF DC 02 00 F4 03 04 00 A6 9D 15 67 B6 04 01 00 00 66 19 9A B6 0D 40 4B FA [06:24:53]CommunicateWithHost err = 0 [06:24:53]CheckOFDResponse [06:24:53]1017 (14) - 77093643461234 [06:24:53]1041 (16) - 0000000000965340 [06:24:53]1040 (4) - 187567 [06:24:53]1012 (4) - 21.10.2024 00:17 [06:24:53]1206 (1) - 0 [06:24:53]OFD Sender: Remove packet 187567 [06:24:53]ProducePacketName [06:24:53]name=ofd_packets/00187567 [06:24:53]NVStorageDeleteData [06:24:54]OFD Sender: No OFD packet to send [06:24:54]*** Cut start [06:24:54]*** Partial cut [06:24:54]*** CUTSNS_PIN = 1 [06:24:54]*** CUTSNS_PIN = 0 [06:24:55]*** Brake cut motor [06:24:55]Read from MH i2c: 01 [06:24:55]MH_I2C_Read... [06:24:55]*** Stop cut motor [06:24:55]*** Cut end [06:24:55]Read from MH i2c: 01 07 00 [06:24:55]MH_I2C_Read... [06:24:55]Read from MH i2c: 01 07 00 A9 27 00 00 00 00 00 FF 0F E5 [06:24:55]process_action close_receipt done [06:24:55]requested_data is exist [06:24:55]produce_requested_data [06:24:55]requested_item fm.sn is exist - process it [06:24:55]wFMCommunicate request_size=4 [06:24:55]MH_SAM_APDU [06:24:55]CAPDU: 80 11 00 00 [06:24:55]Write to MH i2c: E2 08 00 AA 27 80 11 00 00 00 00 00 00 4B [06:24:55]Write i2c OK [06:24:55]MH_I2C_Read... [06:24:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:24:55]Read from MH i2c: E2 [06:24:55]MH_I2C_Read... [06:24:55]Read from MH i2c: E2 17 00 [06:24:55]MH_I2C_Read... [06:24:55]Read from MH i2c: E2 17 00 AA 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 99 [06:24:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [06:24:55]wFMCommunicate OK [06:24:55]requested_item fd.num is exist - process it [06:24:55]SAM_PROTO_GetFieldsCounters [06:24:55]wFMCommunicate request_size=4 [06:24:55]MH_SAM_APDU [06:24:55]CAPDU: 80 13 00 00 [06:24:55]Write to MH i2c: E2 08 00 AB 27 80 13 00 00 00 00 00 00 4E [06:24:55]Write i2c OK [06:24:55]MH_I2C_Read... [06:24:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:24:55]Read from MH i2c: E2 [06:24:55]MH_I2C_Read... [06:24:55]Read from MH i2c: E2 62 00 [06:24:55]MH_I2C_Read... [06:24:55]Read from MH i2c: E2 62 00 AB 27 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 AF DC 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 1F 00 00 00 5E 04 04 00 1F 00 00 00 57 04 04 00 20 00 00 00 19 04 04 00 00 00 00 00 90 00 0C [06:24:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 AF DC 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 1F 00 00 00 5E 04 04 00 1F 00 00 00 57 04 04 00 20 00 00 00 19 04 04 00 00 00 00 00 90 00 [06:24:55]wFMCommunicate OK [06:24:55]SAM_PROTO_GetFieldsCounters done [06:24:55]requested_item shift.num is exist - process it [06:24:55]requested_item shift.opened is exist - process it [06:24:55]req_shift_opened [06:24:55]FM_GetShiftState [06:24:55]SAM_PROTO_GetShiftState [06:24:55]wFMCommunicate request_size=4 [06:24:55]MH_SAM_APDU [06:24:55]CAPDU: 80 13 01 00 [06:24:55]Write to MH i2c: E2 08 00 AC 27 80 13 01 00 00 00 00 00 50 [06:24:55]Write i2c OK [06:24:55]MH_I2C_Read... [06:24:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:24:55]Read from MH i2c: E2 [06:24:55]MH_I2C_Read... [06:24:55]Read from MH i2c: E2 0E 00 [06:24:55]MH_I2C_Read... [06:24:55]Read from MH i2c: E2 0E 00 AC 27 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 AF [06:24:55]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [06:24:55]wFMCommunicate OK [06:24:55]SAM_PROTO_GetShiftState done [06:24:55]FM_GetShiftState done [06:24:55]req_shift_opened done [06:24:55]requested_item shift.open_date is exist - process it [06:24:55]req_shift_open_date [06:24:55]req_shift_open_date done [06:24:55]produce_requested_data done [06:24:55]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187567,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [06:24:55]process_action_free close_receipt [06:24:55]json_value_free [06:24:55]json_value_free done [06:24:55]process_json_proto returns [06:24:55]Send response to host [06:24:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187567,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [06:24:55]free response buf [06:24:55]execute_script done [06:24:55]execute_script returns [06:24:55]free content buf [06:24:55]Sock 9.Close socket [06:24:55]Sock 9.Thread stoped [06:24:59]OFD Sender: No OFD packet to send [06:25:04]OFD Sender: No OFD packet to send [06:25:07]accept exits with 8 [06:25:07]New connection [06:25:07]New thread 3067157860 created [06:25:07]Thread 3067014500 joined [06:25:07]Waiting for new connection... [06:25:07] Sock 8.Parse request [06:25:07]Sock 8.Check first char [06:25:07]Sock 8.First char is OK [06:25:07]request: POST /json_proto HTTP/1.0 [06:25:07]Method: POST [06:25:07]URL: /json_proto [06:25:07]Method is POST - this is cgi request [06:25:07]url: /json_proto [06:25:07]query_string will be loaded in cgi processing [06:25:07]execute_cgi json_proto POST (null) [06:25:07]execute_cgi path=json_proto method=POST [06:25:07]POST find Content-Length [06:25:07]Host: 172.17.42.131:8080 [06:25:07]Content-Length: 682 [06:25:07]Content-Type: application/json [06:25:07] [06:25:07]POST finish read [06:25:07]Found Content-Length = 682 [06:25:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209618", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 23.930, "sum" : 1600.92, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1881.00, "total" : 1600.00, "payments": [ { "type": 0, "sum" : 1600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:25:07]execute_script... [06:25: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)209618", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 23.930, "sum" : 1600.92, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1881.00, "total" : 1600.00, "payments": [ { "type": 0, "sum" : 1600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:25:07]POST & json_proto [06:25:07]process_json_proto [06:25:07]json parsed OK: [06:25:07]protocol is kg_v1.0 [06:25:07]action value=close_receipt [06:25:07]process_action close_receipt [06:25:07]cmd_close_receipt [06:25:07]MH_GetDate [06:25:07]Write to MH i2c: F0 00 00 AD 27 C3 [06:25:07]Write i2c OK [06:25:07]MH_I2C_Read... [06:25:07]Read from MH i2c: F0 [06:25:07]MH_I2C_Read... [06:25:07]Read from MH i2c: F0 09 00 [06:25:07]MH_I2C_Read... [06:25:07]Read from MH i2c: F0 09 00 AD 27 00 C6 F3 15 67 A0 18 CA 66 E9 [06:25:07]GetLastDocTimeStamp 1729491894 [06:25:07]current date 1729491910 [06:25:07]FM_GetShiftState [06:25:07]SAM_PROTO_GetShiftState [06:25:07]wFMCommunicate request_size=4 [06:25:07]MH_SAM_APDU [06:25:07]CAPDU: 80 13 01 00 [06:25:07]Write to MH i2c: E2 08 00 AE 27 80 13 01 00 00 00 00 00 52 [06:25:07]Write i2c OK [06:25:07]MH_I2C_Read... [06:25:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:25:07]Read from MH i2c: E2 [06:25:07]MH_I2C_Read... [06:25:07]Read from MH i2c: E2 0E 00 [06:25:07]MH_I2C_Read... [06:25:07]Read from MH i2c: E2 0E 00 AE 27 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 B1 [06:25:07]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [06:25:07]wFMCommunicate OK [06:25:07]SAM_PROTO_GetShiftState done [06:25:07]FM_GetShiftState done [06:25:07]opened in 1729469754 [06:25:07]opened+sec_in_day 1729556154 [06:25:07]quantity*price = 160091 [06:25:07]sum+1 = 160093 [06:25:07]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.92 ИТОГО: 1600.00 Внесено: 1881.00 СДАЧА: 281.00 НСП 1% : 14.17 НДС 12% : 170.01 Наличными: 1600.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 32 21.10.2024 06:25 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 187568 ФПД: 47462744221070 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T062510&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187568&fm=47462744221070&tin=02508201610067®Number=0000000000100030&sum=160000 [06:25:08]StoreToDocumentArchive [06:25:08]shift 460 fd 187568 [06:25:08]save to /storage/0460/doc_00187568 [06:25:08]save last doc name /storage/0460/doc_00187568 to /storage/kkm_last_doc_name [06:25:08]save OK [06:25:08]Clear old archive folders... [06:25:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [06:25:08]tlvbuf is 0112F010 [06:25:08]SAM_PROTO_ClearQueue [06:25:08]wFMCommunicate request_size=4 [06:25:08]MH_SAM_APDU [06:25:08]CAPDU: 80 09 00 00 [06:25:08]Write to MH i2c: E2 08 00 BB 27 80 09 00 00 00 00 00 00 54 [06:25:08]Write i2c OK [06:25:08]MH_I2C_Read... [06:25:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:25:08]Read from MH i2c: E2 [06:25:08]MH_I2C_Read... [06:25:08]Read from MH i2c: E2 03 00 [06:25:08]MH_I2C_Read... [06:25:08]Read from MH i2c: E2 03 00 BB 27 00 90 00 56 [06:25:08]RAPDU: 90 00 [06:25:08]wFMCommunicate OK [06:25:08]SAM_PROTO_ClearQueue done [06:25:08]KKMCreateOFDPacket [06:25:08]OFDProtocolAddRootSTLVToBuf [06:25:08]FM_MakeSignedData [06:25:08]FM_MakeSignedData [06:25:08]SAM_PROTO_SignData [06:25:08]wFMCommunicate request_size=4 [06:25:08]MH_SAM_APDU [06:25:08]CAPDU: 80 0D 01 02 [06:25:08]Write to MH i2c: E2 08 00 BC 27 80 0D 01 02 00 00 00 00 5C [06:25:08]Write i2c OK [06:25:08]MH_I2C_Read... [06:25:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:25:08]Read from MH i2c: E2 [06:25:08]MH_I2C_Read... [06:25:08]Read from MH i2c: E2 03 00 [06:25:08]MH_I2C_Read... [06:25:08]Read from MH i2c: E2 03 00 BC 27 00 90 00 57 [06:25:08]RAPDU: 90 00 [06:25:08]wFMCommunicate OK [06:25:08]wFMCommunicate request_size=255 [06:25:08]MH_SAM_APDU [06:25: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 33 FF 03 08 00 03 7A 5D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5C 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 89 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 69 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 20 00 00 00 F4 03 04 00 C6 F3 15 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 B0 DC 02 00 35 04 06 00 2B [06:25:08]Write to MH i2c: E2 02 01 BD 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 33 FF 03 08 00 03 7A 5D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5C 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 89 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 69 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 20 00 00 00 F4 03 04 00 C6 F3 15 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 B0 DC 02 00 35 04 06 00 2B 00 00 26 [06:25:08]Write i2c OK [06:25:08]MH_I2C_Read... [06:25:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:25:08]Read from MH i2c: E2 [06:25:08]MH_I2C_Read... [06:25:08]Read from MH i2c: E2 03 00 [06:25:08]MH_I2C_Read... [06:25:08]Read from MH i2c: E2 03 00 BD 27 00 90 00 58 [06:25:08]RAPDU: 90 00 [06:25:08]wFMCommunicate OK [06:25:08]wFMCommunicate request_size=10 [06:25:08]MH_SAM_APDU [06:25:08]CAPDU: 80 0D 02 02 05 2A C8 02 65 8E [06:25:08]Write to MH i2c: E2 0D 00 BE 27 80 0D 02 02 05 00 2A C8 02 65 8E 00 00 50 [06:25:08]Write i2c OK [06:25:08]MH_I2C_Read... [06:25:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:25:08]Read from MH i2c: E2 [06:25:08]MH_I2C_Read... [06:25:08]Read from MH i2c: E2 03 00 [06:25:08]MH_I2C_Read... [06:25:08]Read from MH i2c: E2 03 00 BE 27 00 90 00 59 [06:25:08]RAPDU: 90 00 [06:25:08]wFMCommunicate OK [06:25:08]wFMCommunicate request_size=4 [06:25:08]MH_SAM_APDU [06:25:08]CAPDU: 80 0D 03 02 [06:25:08]Write to MH i2c: E2 08 00 BF 27 80 0D 03 02 00 00 00 00 61 [06:25:08]Write i2c OK [06:25:08]MH_I2C_Read... [06:25:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:25:08]Read from MH i2c: E2 [06:25:08]MH_I2C_Read... [06:25:08]Read from MH i2c: E2 0B 00 [06:25:08]MH_I2C_Read... [06:25:08]Read from MH i2c: E2 0B 00 BF 27 00 36 B6 51 24 90 B5 1E 34 90 00 5A [06:25:08]RAPDU: 36 B6 51 24 90 B5 1E 34 90 00 [06:25:08]wFMCommunicate OK [06:25:08]SAM_PROTO_SignData done [06:25:08]FM_MakeSignedData done [06:25:08]CreateOFDProtocolMessage [06:25:08]wFMCommunicate request_size=4 [06:25:08]MH_SAM_APDU [06:25:08]CAPDU: 80 11 00 00 [06:25:08]Write to MH i2c: E2 08 00 C0 27 80 11 00 00 00 00 00 00 61 [06:25:08]Write i2c OK [06:25:08]MH_I2C_Read... [06:25:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:25:08]Read from MH i2c: E2 [06:25:08]MH_I2C_Read... [06:25:08]Read from MH i2c: E2 17 00 [06:25:08]MH_I2C_Read... [06:25:08]Read from MH i2c: E2 17 00 C0 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 AF [06:25:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [06:25:08]wFMCommunicate OK [06:25:08]CreateOFDProtocolMessage done [06:25:08]OFDSenderStorePacket 187568 [06:25:08]StoreOFDPacket docnum=187568 [06:25:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 87 CE 07 01 ED 57 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 7A 5D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5C 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 89 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 69 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 20 00 00 00 F4 03 04 00 C6 F3 15 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 B0 DC 02 00 35 04 06 00 2B 2A C8 02 65 8E 36 B6 51 24 90 B5 1E 34 [06:25:08]CheckFolder [06:25:08]dirname=/storage/ofd_packets [06:25:08]CheckFolder done [06:25:08]ProducePacketName [06:25:08]name=ofd_packets/00187568 [06:25:08]NVStorageSaveData ofd_packets/00187568 [06:25:08]File name is /storage/ofd_packets/00187568 [06:25:08]Write 301 bytes [06:25:08]NVStorageSaveData done [06:25:08]OFDSenderStorePacket done [06:25:08]KKMCreateOFDPacket done [06:25:08]NVStorageSaveData kkm_last_timestamp [06:25:08]File name is /storage/kkm_last_timestamp [06:25:08]Write 4 bytes [06:25:08]NVStorageSaveData done [06:25:08]ExternCall_PrintAddStr [06:25:08]wPrintStart [06:25:08]Write to MH i2c: 01 00 00 C1 27 E8 [06:25:08]Write i2c OK [06:25:08]MH_I2C_Read... [06:25:08]Read from MH i2c: 01 [06:25:08]MH_I2C_Read... [06:25:08]Read from MH i2c: 01 07 00 [06:25:08]MH_I2C_Read... [06:25:08]Read from MH i2c: 01 07 00 C1 27 00 00 00 00 00 FF 0F FD [06:25:08]RasterBufferAndPrint [06:25:08]line Счет N : (1)209618 [06:25:08]line ИНН: 02508201610067 [06:25:08]line Контрольно-Кассовый Чек [06:25:08]line ПРОДАЖА [06:25:08]line ТРК (МРК, ГНК) : 22 [06:25:08]line Товар: 2710124130 [06:25:08]line Аи-92-К-3 [06:25:08]line 23.930 * 66.90 [06:25:08]line = 1600.92 [06:25:08]line НДС 12% НСП 1% [06:25:08]line > о реализуемом товаре [06:25:08]line ОКРУГЛЕНИЕ: -0.92 [06:25:08]line ИТОГО: 1600.00 [06:25:08]line Внесено: 1881.00 [06:25:08]line СДАЧА: 281.00 [06:25:08]line НСП 1% : 14.17 [06:25:08]line НДС 12% : 170.01 [06:25:08]line Наличными: 1600.00 [06:25:08]line Безнал.: 0.00 [06:25:08]line Место: АЗС № 86 "Партнер Нефть" [06:25:08]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [06:25:08]line СНО: Общий режим [06:25:08]line Чек 32 21.10.2024 06:25 [06:25:08]line Смена: 460 ФФД: 1.0 [06:25:08]line ЗНМ: 0300000155 [06:25:08]line РНМ: 0000000000100030 [06:25:08]line Версия ККМ: 001 [06:25:08]line ФМ: 0000000000965340 [06:25:08]line ФД: 187568 [06:25:08]line ФПД: 47462744221070 [06:25:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T062510&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187568&fm=47462744221070&tin=02508201610067®Number=0000000000100030&sum=160000 [06:25:08]written 0, free lines is 4095 [06:25:09]OFD Sender: Processing packet 187568 [packets to send 1062, broken 1061] [06:25:09]ProducePacketName [06:25:09]name=ofd_packets/00187568 [06:25:09]OFD Sender: To server: pG, [06:25:09]CommunicateWithHost lk.salyk.kg:30040 [06:25:09]ConnectInit lk.salyk.kg [06:25:09]Connected sock=10 [06:25:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 87 CE 07 01 ED 57 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 7A 5D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5C 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 89 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 69 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 20 00 00 00 F4 03 04 00 C6 F3 15 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 B0 DC 02 00 35 04 06 00 2B 2A C8 02 65 8E 36 B6 51 24 90 B5 1E 34 [06:25:09]Write to MH i2c: 01 00 00 EC 27 13 [06:25:09]Write i2c OK [06:25:09]MH_I2C_Read... [06:25:09]Read from MH i2c: 01 [06:25:09]MH_I2C_Read... [06:25:09]Read from MH i2c: 01 07 00 [06:25:09]MH_I2C_Read... [06:25:09]Read from MH i2c: 01 07 00 EC 27 00 00 00 00 00 50 0C 76 [06:25:09]RasterBufferAndPrint [06:25:09]line [06:25:09]line [06:25:09]line [06:25:09]line [06:25:09]line [06:25:09]written 0, free lines is 3157 [06:25:09]MH_Cut [06:25:09]Write to MH i2c: D1 01 00 F3 27 01 EC [06:25:09]Write i2c OK [06:25:09]MH_I2C_Read... [06:25:09]Read from MH i2c: D1 [06:25:09]MH_I2C_Read... [06:25:09]Read from MH i2c: D1 01 00 [06:25:09]MH_I2C_Read... [06:25:09]Read from MH i2c: D1 01 00 F3 27 00 EB [06:25:09]Write to MH i2c: 01 00 00 F4 27 1B [06:25:09]Write i2c OK [06:25:09]MH_I2C_Read... [06:25:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 07 D8 47 00 C6 27 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 B0 DC 02 00 F4 03 04 00 B6 9D 15 67 B6 04 01 00 00 C1 9D CD E7 1E EB 70 06 [06:25:09]CommunicateWithHost err = 0 [06:25:09]CheckOFDResponse [06:25:09]1017 (14) - 77093643461234 [06:25:09]1041 (16) - 0000000000965340 [06:25:09]1040 (4) - 187568 [06:25:09]1012 (4) - 21.10.2024 00:17 [06:25:09]1206 (1) - 0 [06:25:09]OFD Sender: Remove packet 187568 [06:25:09]ProducePacketName [06:25:09]name=ofd_packets/00187568 [06:25:09]NVStorageDeleteData [06:25:10]OFD Sender: No OFD packet to send [06:25:10]*** Cut start [06:25:10]*** Partial cut [06:25:10]*** CUTSNS_PIN = 1 [06:25:10]*** CUTSNS_PIN = 0 [06:25:11]*** Brake cut motor [06:25:11]Read from MH i2c: 01 [06:25:11]MH_I2C_Read... [06:25:11]*** Stop cut motor [06:25:11]*** Cut end [06:25:11]Read from MH i2c: 01 07 00 [06:25:11]MH_I2C_Read... [06:25:11]Read from MH i2c: 01 07 00 F4 27 00 00 00 00 00 FF 0F 30 [06:25:11]process_action close_receipt done [06:25:11]requested_data is exist [06:25:11]produce_requested_data [06:25:11]requested_item fm.sn is exist - process it [06:25:11]wFMCommunicate request_size=4 [06:25:11]MH_SAM_APDU [06:25:11]CAPDU: 80 11 00 00 [06:25:11]Write to MH i2c: E2 08 00 F5 27 80 11 00 00 00 00 00 00 96 [06:25:11]Write i2c OK [06:25:11]MH_I2C_Read... [06:25:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:25:11]Read from MH i2c: E2 [06:25:11]MH_I2C_Read... [06:25:11]Read from MH i2c: E2 17 00 [06:25:11]MH_I2C_Read... [06:25:11]Read from MH i2c: E2 17 00 F5 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 E4 [06:25:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [06:25:11]wFMCommunicate OK [06:25:11]requested_item fd.num is exist - process it [06:25:11]SAM_PROTO_GetFieldsCounters [06:25:11]wFMCommunicate request_size=4 [06:25:11]MH_SAM_APDU [06:25:11]CAPDU: 80 13 00 00 [06:25:11]Write to MH i2c: E2 08 00 F6 27 80 13 00 00 00 00 00 00 99 [06:25:11]Write i2c OK [06:25:11]MH_I2C_Read... [06:25:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:25:11]Read from MH i2c: E2 [06:25:11]MH_I2C_Read... [06:25:11]Read from MH i2c: E2 62 00 [06:25:11]MH_I2C_Read... [06:25:11]Read from MH i2c: E2 62 00 F6 27 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 B0 DC 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 20 00 00 00 5E 04 04 00 20 00 00 00 57 04 04 00 21 00 00 00 19 04 04 00 00 00 00 00 90 00 5B [06:25:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 B0 DC 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 20 00 00 00 5E 04 04 00 20 00 00 00 57 04 04 00 21 00 00 00 19 04 04 00 00 00 00 00 90 00 [06:25:11]wFMCommunicate OK [06:25:11]SAM_PROTO_GetFieldsCounters done [06:25:11]requested_item shift.num is exist - process it [06:25:11]requested_item shift.opened is exist - process it [06:25:11]req_shift_opened [06:25:11]FM_GetShiftState [06:25:11]SAM_PROTO_GetShiftState [06:25:11]wFMCommunicate request_size=4 [06:25:11]MH_SAM_APDU [06:25:11]CAPDU: 80 13 01 00 [06:25:11]Write to MH i2c: E2 08 00 F7 27 80 13 01 00 00 00 00 00 9B [06:25:11]Write i2c OK [06:25:11]MH_I2C_Read... [06:25:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:25:11]Read from MH i2c: E2 [06:25:11]MH_I2C_Read... [06:25:11]Read from MH i2c: E2 0E 00 [06:25:11]MH_I2C_Read... [06:25:11]Read from MH i2c: E2 0E 00 F7 27 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 FA [06:25:11]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [06:25:11]wFMCommunicate OK [06:25:11]SAM_PROTO_GetShiftState done [06:25:11]FM_GetShiftState done [06:25:11]req_shift_opened done [06:25:11]requested_item shift.open_date is exist - process it [06:25:11]req_shift_open_date [06:25:11]req_shift_open_date done [06:25:11]produce_requested_data done [06:25:11]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187568,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [06:25:11]process_action_free close_receipt [06:25:11]json_value_free [06:25:11]json_value_free done [06:25:11]process_json_proto returns [06:25:11]Send response to host [06:25:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187568,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [06:25:11]free response buf [06:25:11]execute_script done [06:25:11]execute_script returns [06:25:11]free content buf [06:25:11]Sock 8.Close socket [06:25:11]Sock 8.Thread stoped [06:25:15]OFD Sender: No OFD packet to send [06:25:20]OFD Sender: No OFD packet to send [06:25:25]OFD Sender: No OFD packet to send [06:25:30]OFD Sender: No OFD packet to send [06:25:35]OFD Sender: No OFD packet to send [06:25:40]OFD Sender: No OFD packet to send [06:25:45]OFD Sender: No OFD packet to send [06:25:50]OFD Sender: No OFD packet to send [06:25:55]OFD Sender: No OFD packet to send [06:26:00]OFD Sender: No OFD packet to send [06:26:05]OFD Sender: No OFD packet to send [06:26:10]OFD Sender: No OFD packet to send [06:26:15]OFD Sender: No OFD packet to send [06:26:20]OFD Sender: No OFD packet to send [06:26:25]OFD Sender: No OFD packet to send [06:26:30]OFD Sender: No OFD packet to send [06:26:35]OFD Sender: No OFD packet to send [06:26:40]OFD Sender: No OFD packet to send [06:26:45]OFD Sender: No OFD packet to send [06:26:50]OFD Sender: No OFD packet to send [06:26:55]OFD Sender: No OFD packet to send [06:27:00]OFD Sender: No OFD packet to send [06:27:05]OFD Sender: No OFD packet to send [06:27:10]OFD Sender: No OFD packet to send [06:27:15]OFD Sender: No OFD packet to send [06:27:20]OFD Sender: No OFD packet to send [06:27:24]accept exits with 9 [06:27:24]New connection [06:27:24]New thread 3067014500 created [06:27:24]Thread 3067157860 joined [06:27:24]Waiting for new connection... [06:27:24] Sock 9.Parse request [06:27:24]Sock 9.Check first char [06:27:24]Sock 9.First char is OK [06:27:24]request: POST /json_proto HTTP/1.0 [06:27:24]Method: POST [06:27:24]URL: /json_proto [06:27:24]Method is POST - this is cgi request [06:27:24]url: /json_proto [06:27:24]query_string will be loaded in cgi processing [06:27:24]execute_cgi json_proto POST (null) [06:27:24]execute_cgi path=json_proto method=POST [06:27:24]POST find Content-Length [06:27:24]Host: 172.17.42.131:8080 [06:27:24]Content-Length: 682 [06:27:24]Content-Type: application/json [06:27:24] [06:27:24]POST finish read [06:27:24]Found Content-Length = 682 [06:27:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209620", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "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" ] } } [06:27:24]execute_script... [06:27: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)209620", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "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" ] } } [06:27:24]POST & json_proto [06:27:24]process_json_proto [06:27:24]json parsed OK: [06:27:24]protocol is kg_v1.0 [06:27:24]action value=close_receipt [06:27:24]process_action close_receipt [06:27:24]cmd_close_receipt [06:27:24]MH_GetDate [06:27:24]Write to MH i2c: F0 00 00 F8 27 0E [06:27:24]Write i2c OK [06:27:24]MH_I2C_Read... [06:27:24]Read from MH i2c: F0 [06:27:24]MH_I2C_Read... [06:27:24]Read from MH i2c: F0 09 00 [06:27:24]MH_I2C_Read... [06:27:24]Read from MH i2c: F0 09 00 F8 27 00 4E F4 15 67 A0 18 CA 66 BD [06:27:24]GetLastDocTimeStamp 1729491910 [06:27:24]current date 1729492046 [06:27:24]FM_GetShiftState [06:27:24]SAM_PROTO_GetShiftState [06:27:24]wFMCommunicate request_size=4 [06:27:24]MH_SAM_APDU [06:27:24]CAPDU: 80 13 01 00 [06:27:24]Write to MH i2c: E2 08 00 F9 27 80 13 01 00 00 00 00 00 9D [06:27:24]Write i2c OK [06:27:24]MH_I2C_Read... [06:27:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:27:24]Read from MH i2c: E2 [06:27:24]MH_I2C_Read... [06:27:24]Read from MH i2c: E2 0E 00 [06:27:24]MH_I2C_Read... [06:27:24]Read from MH i2c: E2 0E 00 F9 27 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 FC [06:27:24]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [06:27:24]wFMCommunicate OK [06:27:24]SAM_PROTO_GetShiftState done [06:27:24]FM_GetShiftState done [06:27:24]opened in 1729469754 [06:27:24]opened+sec_in_day 1729556154 [06:27:24]quantity*price = 150056 [06:27:24]sum+1 = 150058 [06:27:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.57 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.35 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 33 21.10.2024 06:27 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 187569 ФПД: 121249571503985 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T062727&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187569&fm=121249571503985&tin=02508201610067®Number=0000000000100030&sum=150000 [06:27:25]StoreToDocumentArchive [06:27:25]shift 460 fd 187569 [06:27:25]save to /storage/0460/doc_00187569 [06:27:25]save last doc name /storage/0460/doc_00187569 to /storage/kkm_last_doc_name [06:27:25]save OK [06:27:25]Clear old archive folders... [06:27:25]ProcessDocumentItem done err = 0, tmpTLVsize=251 [06:27:25]tlvbuf is 01084150 [06:27:25]SAM_PROTO_ClearQueue [06:27:25]wFMCommunicate request_size=4 [06:27:25]MH_SAM_APDU [06:27:25]CAPDU: 80 09 00 00 [06:27:25]Write to MH i2c: E2 08 00 06 28 80 09 00 00 00 00 00 00 A0 [06:27:25]Write i2c OK [06:27:25]MH_I2C_Read... [06:27:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:27:25]Read from MH i2c: E2 [06:27:25]MH_I2C_Read... [06:27:25]Read from MH i2c: E2 03 00 [06:27:25]MH_I2C_Read... [06:27:25]Read from MH i2c: E2 03 00 06 28 00 90 00 A2 [06:27:25]RAPDU: 90 00 [06:27:25]wFMCommunicate OK [06:27:25]SAM_PROTO_ClearQueue done [06:27:25]KKMCreateOFDPacket [06:27:25]OFDProtocolAddRootSTLVToBuf [06:27:25]FM_MakeSignedData [06:27:25]FM_MakeSignedData [06:27:25]SAM_PROTO_SignData [06:27:25]wFMCommunicate request_size=4 [06:27:25]MH_SAM_APDU [06:27:25]CAPDU: 80 0D 01 02 [06:27:25]Write to MH i2c: E2 08 00 07 28 80 0D 01 02 00 00 00 00 A8 [06:27:25]Write i2c OK [06:27:25]MH_I2C_Read... [06:27:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:27:25]Read from MH i2c: E2 [06:27:25]MH_I2C_Read... [06:27:25]Read from MH i2c: E2 03 00 [06:27:25]MH_I2C_Read... [06:27:25]Read from MH i2c: E2 03 00 07 28 00 90 00 A3 [06:27:25]RAPDU: 90 00 [06:27:25]wFMCommunicate OK [06:27:25]wFMCommunicate request_size=255 [06:27:25]MH_SAM_APDU [06:27:25]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 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 21 00 00 00 F4 03 04 00 4F F4 15 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 B1 DC 02 00 35 04 06 00 6E [06:27:25]Write to MH i2c: E2 02 01 08 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 33 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 21 00 00 00 F4 03 04 00 4F F4 15 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 B1 DC 02 00 35 04 06 00 6E 00 00 0E [06:27:25]Write i2c OK [06:27:25]MH_I2C_Read... [06:27:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:27:25]OFD Sender: No OFD packet to send [06:27:25]Read from MH i2c: E2 [06:27:25]MH_I2C_Read... [06:27:25]Read from MH i2c: E2 03 00 [06:27:25]MH_I2C_Read... [06:27:25]Read from MH i2c: E2 03 00 08 28 00 90 00 A4 [06:27:25]RAPDU: 90 00 [06:27:25]wFMCommunicate OK [06:27:25]wFMCommunicate request_size=10 [06:27:25]MH_SAM_APDU [06:27:25]CAPDU: 80 0D 02 02 05 46 9D A3 7F 71 [06:27:25]Write to MH i2c: E2 0D 00 09 28 80 0D 02 02 05 00 46 9D A3 7F 71 00 00 2B [06:27:25]Write i2c OK [06:27:25]MH_I2C_Read... [06:27:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:27:25]Read from MH i2c: E2 [06:27:25]MH_I2C_Read... [06:27:25]Read from MH i2c: E2 03 00 [06:27:25]MH_I2C_Read... [06:27:25]Read from MH i2c: E2 03 00 09 28 00 90 00 A5 [06:27:25]RAPDU: 90 00 [06:27:25]wFMCommunicate OK [06:27:25]wFMCommunicate request_size=4 [06:27:25]MH_SAM_APDU [06:27:25]CAPDU: 80 0D 03 02 [06:27:25]Write to MH i2c: E2 08 00 0A 28 80 0D 03 02 00 00 00 00 AD [06:27:25]Write i2c OK [06:27:25]MH_I2C_Read... [06:27:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:27:25]Read from MH i2c: E2 [06:27:25]MH_I2C_Read... [06:27:25]Read from MH i2c: E2 0B 00 [06:27:25]MH_I2C_Read... [06:27:25]Read from MH i2c: E2 0B 00 0A 28 00 2D D8 F5 00 CF 72 8C BF 90 00 34 [06:27:25]RAPDU: 2D D8 F5 00 CF 72 8C BF 90 00 [06:27:25]wFMCommunicate OK [06:27:25]SAM_PROTO_SignData done [06:27:25]FM_MakeSignedData done [06:27:25]CreateOFDProtocolMessage [06:27:25]wFMCommunicate request_size=4 [06:27:25]MH_SAM_APDU [06:27:25]CAPDU: 80 11 00 00 [06:27:25]Write to MH i2c: E2 08 00 0B 28 80 11 00 00 00 00 00 00 AD [06:27:25]Write i2c OK [06:27:25]MH_I2C_Read... [06:27:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:27:25]Read from MH i2c: E2 [06:27:25]MH_I2C_Read... [06:27:25]Read from MH i2c: E2 17 00 [06:27:25]MH_I2C_Read... [06:27:25]Read from MH i2c: E2 17 00 0B 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 FB [06:27:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [06:27:25]wFMCommunicate OK [06:27:25]CreateOFDProtocolMessage done [06:27:25]OFDSenderStorePacket 187569 [06:27:25]StoreOFDPacket docnum=187569 [06:27:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 FA 43 07 01 30 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 33 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 21 00 00 00 F4 03 04 00 4F F4 15 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 B1 DC 02 00 35 04 06 00 6E 46 9D A3 7F 71 2D D8 F5 00 CF 72 8C BF [06:27:25]CheckFolder [06:27:25]dirname=/storage/ofd_packets [06:27:25]CheckFolder done [06:27:25]ProducePacketName [06:27:25]name=ofd_packets/00187569 [06:27:25]NVStorageSaveData ofd_packets/00187569 [06:27:25]File name is /storage/ofd_packets/00187569 [06:27:25]Write 301 bytes [06:27:25]NVStorageSaveData done [06:27:25]OFDSenderStorePacket done [06:27:25]KKMCreateOFDPacket done [06:27:25]NVStorageSaveData kkm_last_timestamp [06:27:25]File name is /storage/kkm_last_timestamp [06:27:25]Write 4 bytes [06:27:25]NVStorageSaveData done [06:27:25]ExternCall_PrintAddStr [06:27:25]wPrintStart [06:27:25]Write to MH i2c: 01 00 00 0C 28 34 [06:27:25]Write i2c OK [06:27:25]MH_I2C_Read... [06:27:25]Read from MH i2c: 01 [06:27:25]MH_I2C_Read... [06:27:25]Read from MH i2c: 01 07 00 [06:27:25]MH_I2C_Read... [06:27:25]Read from MH i2c: 01 07 00 0C 28 00 00 00 00 00 FF 0F 49 [06:27:25]RasterBufferAndPrint [06:27:25]line Счет N : (1)209620 [06:27:25]line ИНН: 02508201610067 [06:27:25]line Контрольно-Кассовый Чек [06:27:25]line ПРОДАЖА [06:27:25]line ТРК (МРК, ГНК) : 32 [06:27:25]line Товар: 2710124130 [06:27:25]line Аи-92-К-3 [06:27:25]line 22.430 * 66.90 [06:27:25]line = 1500.57 [06:27:25]line НДС 12% НСП 1% [06:27:25]line > о реализуемом товаре [06:27:25]line ОКРУГЛЕНИЕ: -0.57 [06:27:25]line ИТОГО: 1500.00 [06:27:25]line Внесено: 1500.00 [06:27:25]line СДАЧА: 0.00 [06:27:25]line НСП 1% : 13.28 [06:27:25]line НДС 12% : 159.35 [06:27:25]line Наличными: 1500.00 [06:27:25]line Безнал.: 0.00 [06:27:25]line Место: АЗС № 86 "Партнер Нефть" [06:27:25]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [06:27:25]line СНО: Общий режим [06:27:25]line Чек 33 21.10.2024 06:27 [06:27:25]line Смена: 460 ФФД: 1.0 [06:27:25]line ЗНМ: 0300000155 [06:27:25]line РНМ: 0000000000100030 [06:27:25]line Версия ККМ: 001 [06:27:25]line ФМ: 0000000000965340 [06:27:25]line ФД: 187569 [06:27:25]line ФПД: 121249571503985 [06:27:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T062727&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187569&fm=121249571503985&tin=02508201610067®Number=0000000000100030&sum=150000 [06:27:25]written 0, free lines is 4095 [06:27:25]OFD Sender: Processing packet 187569 [packets to send 1062, broken 1061] [06:27:25]ProducePacketName [06:27:25]name=ofd_packets/00187569 [06:27:25]OFD Sender: To server: pG, [06:27:25]CommunicateWithHost lk.salyk.kg:30040 [06:27:25]ConnectInit lk.salyk.kg [06:27:26]Connected sock=10 [06:27:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 FA 43 07 01 30 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 33 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 21 00 00 00 F4 03 04 00 4F F4 15 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 B1 DC 02 00 35 04 06 00 6E 46 9D A3 7F 71 2D D8 F5 00 CF 72 8C BF [06:27:26]Write to MH i2c: 01 00 00 37 28 5F [06:27:26]Write i2c OK [06:27:26]MH_I2C_Read... [06:27:26]Read from MH i2c: 01 [06:27:26]MH_I2C_Read... [06:27:26]Read from MH i2c: 01 07 00 [06:27:26]MH_I2C_Read... [06:27:26]Read from MH i2c: 01 07 00 37 28 00 00 00 00 00 52 0C C4 [06:27:26]RasterBufferAndPrint [06:27:26]line [06:27:26]line [06:27:26]line [06:27:26]line [06:27:26]line [06:27:26]written 0, free lines is 3158 [06:27:26]MH_Cut [06:27:26]Write to MH i2c: D1 01 00 3E 28 01 38 [06:27:26]Write i2c OK [06:27:26]MH_I2C_Read... [06:27:26]Read from MH i2c: D1 [06:27:26]MH_I2C_Read... [06:27:26]Read from MH i2c: D1 01 00 [06:27:26]MH_I2C_Read... [06:27:26]Read from MH i2c: D1 01 00 3E 28 00 37 [06:27:26]Write to MH i2c: 01 00 00 3F 28 67 [06:27:26]Write i2c OK [06:27:26]MH_I2C_Read... [06:27:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 EE FB 47 00 D5 5E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 B1 DC 02 00 F4 03 04 00 3F 9E 15 67 B6 04 01 00 00 7B 3A 68 9B FC 84 C8 C8 [06:27:26]CommunicateWithHost err = 0 [06:27:26]CheckOFDResponse [06:27:26]1017 (14) - 77093643461234 [06:27:26]1041 (16) - 0000000000965340 [06:27:26]1040 (4) - 187569 [06:27:26]1012 (4) - 21.10.2024 00:20 [06:27:26]1206 (1) - 0 [06:27:26]OFD Sender: Remove packet 187569 [06:27:26]ProducePacketName [06:27:26]name=ofd_packets/00187569 [06:27:26]NVStorageDeleteData [06:27:26]OFD Sender: No OFD packet to send [06:27:27]*** Cut start [06:27:27]*** Partial cut [06:27:27]*** CUTSNS_PIN = 1 [06:27:27]*** CUTSNS_PIN = 0 [06:27:27]*** Brake cut motor [06:27:28]Read from MH i2c: 01 [06:27:28]MH_I2C_Read... [06:27:28]*** Stop cut motor [06:27:28]*** Cut end [06:27:28]Read from MH i2c: 01 07 00 [06:27:28]MH_I2C_Read... [06:27:28]Read from MH i2c: 01 07 00 3F 28 00 00 00 00 00 FF 0F 7C [06:27:28]process_action close_receipt done [06:27:28]requested_data is exist [06:27:28]produce_requested_data [06:27:28]requested_item fm.sn is exist - process it [06:27:28]wFMCommunicate request_size=4 [06:27:28]MH_SAM_APDU [06:27:28]CAPDU: 80 11 00 00 [06:27:28]Write to MH i2c: E2 08 00 40 28 80 11 00 00 00 00 00 00 E2 [06:27:28]Write i2c OK [06:27:28]MH_I2C_Read... [06:27:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:27:28]Read from MH i2c: E2 [06:27:28]MH_I2C_Read... [06:27:28]Read from MH i2c: E2 17 00 [06:27:28]MH_I2C_Read... [06:27:28]Read from MH i2c: E2 17 00 40 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 30 [06:27:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [06:27:28]wFMCommunicate OK [06:27:28]requested_item fd.num is exist - process it [06:27:28]SAM_PROTO_GetFieldsCounters [06:27:28]wFMCommunicate request_size=4 [06:27:28]MH_SAM_APDU [06:27:28]CAPDU: 80 13 00 00 [06:27:28]Write to MH i2c: E2 08 00 41 28 80 13 00 00 00 00 00 00 E5 [06:27:28]Write i2c OK [06:27:28]MH_I2C_Read... [06:27:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:27:28]Read from MH i2c: E2 [06:27:28]MH_I2C_Read... [06:27:28]Read from MH i2c: E2 62 00 [06:27:28]MH_I2C_Read... [06:27:28]Read from MH i2c: E2 62 00 41 28 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 B1 DC 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 21 00 00 00 5E 04 04 00 21 00 00 00 57 04 04 00 22 00 00 00 19 04 04 00 00 00 00 00 90 00 AB [06:27:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 B1 DC 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 21 00 00 00 5E 04 04 00 21 00 00 00 57 04 04 00 22 00 00 00 19 04 04 00 00 00 00 00 90 00 [06:27:28]wFMCommunicate OK [06:27:28]SAM_PROTO_GetFieldsCounters done [06:27:28]requested_item shift.num is exist - process it [06:27:28]requested_item shift.opened is exist - process it [06:27:28]req_shift_opened [06:27:28]FM_GetShiftState [06:27:28]SAM_PROTO_GetShiftState [06:27:28]wFMCommunicate request_size=4 [06:27:28]MH_SAM_APDU [06:27:28]CAPDU: 80 13 01 00 [06:27:28]Write to MH i2c: E2 08 00 42 28 80 13 01 00 00 00 00 00 E7 [06:27:28]Write i2c OK [06:27:28]MH_I2C_Read... [06:27:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:27:28]Read from MH i2c: E2 [06:27:28]MH_I2C_Read... [06:27:28]Read from MH i2c: E2 0E 00 [06:27:28]MH_I2C_Read... [06:27:28]Read from MH i2c: E2 0E 00 42 28 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 46 [06:27:28]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [06:27:28]wFMCommunicate OK [06:27:28]SAM_PROTO_GetShiftState done [06:27:28]FM_GetShiftState done [06:27:28]req_shift_opened done [06:27:28]requested_item shift.open_date is exist - process it [06:27:28]req_shift_open_date [06:27:28]req_shift_open_date done [06:27:28]produce_requested_data done [06:27:28]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187569,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [06:27:28]process_action_free close_receipt [06:27:28]json_value_free [06:27:28]json_value_free done [06:27:28]process_json_proto returns [06:27:28]Send response to host [06:27:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187569,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [06:27:28]free response buf [06:27:28]execute_script done [06:27:28]execute_script returns [06:27:28]free content buf [06:27:28]Sock 9.Close socket [06:27:28]Sock 9.Thread stoped [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:22]OFD Sender: No OFD packet to send [06:29:27]OFD Sender: No OFD packet to send [06:29:32]OFD Sender: No OFD packet to send [06:29:37]OFD Sender: No OFD packet to send [06:29:42]OFD Sender: No OFD packet to send [06:29:47]OFD Sender: No OFD packet to send [06:29:52]OFD Sender: No OFD packet to send [06:29:57]OFD Sender: No OFD packet to send [06:30:02]OFD Sender: No OFD packet to send [06:30:07]OFD Sender: No OFD packet to send [06:30:12]OFD Sender: No OFD packet to send [06:30:17]OFD Sender: No OFD packet to send [06:30:22]OFD Sender: No OFD packet to send [06:30:27]OFD Sender: No OFD packet to send [06:30:32]OFD Sender: No OFD packet to send [06:30:37]OFD Sender: No OFD packet to send [06:30:42]OFD Sender: No OFD packet to send [06:30:47]OFD Sender: No OFD packet to send [06:30:52]OFD Sender: No OFD packet to send [06:30:57]OFD Sender: No OFD packet to send [06:31:02]OFD Sender: No OFD packet to send [06:31:07]OFD Sender: No OFD packet to send [06:31:12]OFD Sender: No OFD packet to send [06:31:17]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:09]OFD Sender: No OFD packet to send [06:35:14]OFD Sender: No OFD packet to send [06:35:19]OFD Sender: No OFD packet to send [06:35:24]OFD Sender: No OFD packet to send [06:35:29]OFD Sender: No OFD packet to send [06:35:34]OFD Sender: No OFD packet to send [06:35:39]OFD Sender: No OFD packet to send [06:35:44]OFD Sender: No OFD packet to send [06:35:49]OFD Sender: No OFD packet to send [06:35:54]OFD Sender: No OFD packet to send [06:35:59]OFD Sender: No OFD packet to send [06:36:04]OFD Sender: No OFD packet to send [06:36:09]OFD Sender: No OFD packet to send [06:36:14]OFD Sender: No OFD packet to send [06:36:19]OFD Sender: No OFD packet to send [06:36:24]OFD Sender: No OFD packet to send [06:36:29]OFD Sender: No OFD packet to send [06:36:34]OFD Sender: No OFD packet to send [06:36:39]OFD Sender: No OFD packet to send [06:36:44]OFD Sender: No OFD packet to send [06:36:49]OFD Sender: No OFD packet to send [06:36:54]OFD Sender: No OFD packet to send [06:36:59]OFD Sender: No OFD packet to send [06:37:04]OFD Sender: No OFD packet to send [06:37:09]OFD Sender: No OFD packet to send [06:37:14]OFD Sender: No OFD packet to send [06:37:19]OFD Sender: No OFD packet to send [06:37:24]OFD Sender: No OFD packet to send [06:37:29]OFD Sender: No OFD packet to send [06:37:34]OFD Sender: No OFD packet to send [06:37:39]OFD Sender: No OFD packet to send [06:37:44]OFD Sender: No OFD packet to send [06:37:49]OFD Sender: No OFD packet to send [06:37:54]OFD Sender: No OFD packet to send [06:37:59]OFD Sender: No OFD packet to send [06:38:04]OFD Sender: No OFD packet to send [06:38:09]OFD Sender: No OFD packet to send [06:38:14]OFD Sender: No OFD packet to send [06:38:19]OFD Sender: No OFD packet to send [06:38:24]OFD Sender: No OFD packet to send [06:38:29]OFD Sender: No OFD packet to send [06:38:34]OFD Sender: No OFD packet to send [06:38:39]OFD Sender: No OFD packet to send [06:38:44]OFD Sender: No OFD packet to send [06:38:49]OFD Sender: No OFD packet to send [06:38:54]OFD Sender: No OFD packet to send [06:39:00]OFD Sender: No OFD packet to send [06:39:05]OFD Sender: No OFD packet to send [06:39:10]OFD Sender: No OFD packet to send [06:39:15]OFD Sender: No OFD packet to send [06:39:20]OFD Sender: No OFD packet to send [06:39:25]OFD Sender: No OFD packet to send [06:39:30]OFD Sender: No OFD packet to send [06:39:35]OFD Sender: No OFD packet to send [06:39:40]OFD Sender: No OFD packet to send [06:39:45]OFD Sender: No OFD packet to send [06:39:50]OFD Sender: No OFD packet to send [06:39:55]OFD Sender: No OFD packet to send [06:40:00]OFD Sender: No OFD packet to send [06:40:05]OFD Sender: No OFD packet to send [06:40:10]OFD Sender: No OFD packet to send [06:40:15]OFD Sender: No OFD packet to send [06:40:20]OFD Sender: No OFD packet to send [06:40:25]OFD Sender: No OFD packet to send [06:40:30]OFD Sender: No OFD packet to send [06:40:35]OFD Sender: No OFD packet to send [06:40:40]OFD Sender: No OFD packet to send [06:40:45]OFD Sender: No OFD packet to send [06:40:50]OFD Sender: No OFD packet to send [06:40:55]OFD Sender: No OFD packet to send [06:41:00]OFD Sender: No OFD packet to send [06:41:05]OFD Sender: No OFD packet to send [06:41:10]OFD Sender: No OFD packet to send [06:41:10]accept exits with 8 [06:41:10]New connection [06:41:10]New thread 3067157860 created [06:41:10]Thread 3067014500 joined [06:41:10]Waiting for new connection... [06:41:10] Sock 8.Parse request [06:41:10]Sock 8.Check first char [06:41:10]Sock 8.First char is OK [06:41:10]request: POST /json_proto HTTP/1.0 [06:41:10]Method: POST [06:41:10]URL: /json_proto [06:41:10]Method is POST - this is cgi request [06:41:10]url: /json_proto [06:41:10]query_string will be loaded in cgi processing [06:41:10]execute_cgi json_proto POST (null) [06:41:10]execute_cgi path=json_proto method=POST [06:41:10]POST find Content-Length [06:41:10]Host: 172.17.42.131:8080 [06:41:10]Content-Length: 682 [06:41:10]Content-Type: application/json [06:41:10] [06:41:10]POST finish read [06:41:10]Found Content-Length = 682 [06:41:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209621", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "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" ] } } [06:41:10]execute_script... [06:41: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)209621", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "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" ] } } [06:41:10]POST & json_proto [06:41:10]process_json_proto [06:41:10]json parsed OK: [06:41:10]protocol is kg_v1.0 [06:41:10]action value=close_receipt [06:41:10]process_action close_receipt [06:41:10]cmd_close_receipt [06:41:10]MH_GetDate [06:41:10]Write to MH i2c: F0 00 00 43 28 5A [06:41:10]Write i2c OK [06:41:10]MH_I2C_Read... [06:41:10]Read from MH i2c: F0 [06:41:10]MH_I2C_Read... [06:41:10]Read from MH i2c: F0 09 00 [06:41:10]MH_I2C_Read... [06:41:10]Read from MH i2c: F0 09 00 43 28 00 89 F7 15 67 A0 18 CA 66 47 [06:41:10]GetLastDocTimeStamp 1729492047 [06:41:10]current date 1729492873 [06:41:10]FM_GetShiftState [06:41:10]SAM_PROTO_GetShiftState [06:41:10]wFMCommunicate request_size=4 [06:41:10]MH_SAM_APDU [06:41:10]CAPDU: 80 13 01 00 [06:41:10]Write to MH i2c: E2 08 00 44 28 80 13 01 00 00 00 00 00 E9 [06:41:10]Write i2c OK [06:41:10]MH_I2C_Read... [06:41:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:41:11]Read from MH i2c: E2 [06:41:11]MH_I2C_Read... [06:41:11]Read from MH i2c: E2 0E 00 [06:41:11]MH_I2C_Read... [06:41:11]Read from MH i2c: E2 0E 00 44 28 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 48 [06:41:11]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [06:41:11]wFMCommunicate OK [06:41:11]SAM_PROTO_GetShiftState done [06:41:11]FM_GetShiftState done [06:41:11]opened in 1729469754 [06:41:11]opened+sec_in_day 1729556154 [06:41:11]quantity*price = 150056 [06:41:11]sum+1 = 150058 [06:41:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.57 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.35 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 34 21.10.2024 06:41 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 187570 ФПД: 92487280279313 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T064113&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187570&fm=92487280279313&tin=02508201610067®Number=0000000000100030&sum=150000 [06:41:12]StoreToDocumentArchive [06:41:12]shift 460 fd 187570 [06:41:12]save to /storage/0460/doc_00187570 [06:41:12]save last doc name /storage/0460/doc_00187570 to /storage/kkm_last_doc_name [06:41:12]save OK [06:41:12]Clear old archive folders... [06:41:12]ProcessDocumentItem done err = 0, tmpTLVsize=251 [06:41:12]tlvbuf is B6F0C430 [06:41:12]SAM_PROTO_ClearQueue [06:41:12]wFMCommunicate request_size=4 [06:41:12]MH_SAM_APDU [06:41:12]CAPDU: 80 09 00 00 [06:41:12]Write to MH i2c: E2 08 00 51 28 80 09 00 00 00 00 00 00 EB [06:41:12]Write i2c OK [06:41:12]MH_I2C_Read... [06:41:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:41:12]Read from MH i2c: E2 [06:41:12]MH_I2C_Read... [06:41:12]Read from MH i2c: E2 03 00 [06:41:12]MH_I2C_Read... [06:41:12]Read from MH i2c: E2 03 00 51 28 00 90 00 ED [06:41:12]RAPDU: 90 00 [06:41:12]wFMCommunicate OK [06:41:12]SAM_PROTO_ClearQueue done [06:41:12]KKMCreateOFDPacket [06:41:12]OFDProtocolAddRootSTLVToBuf [06:41:12]FM_MakeSignedData [06:41:12]FM_MakeSignedData [06:41:12]SAM_PROTO_SignData [06:41:12]wFMCommunicate request_size=4 [06:41:12]MH_SAM_APDU [06:41:12]CAPDU: 80 0D 01 02 [06:41:12]Write to MH i2c: E2 08 00 52 28 80 0D 01 02 00 00 00 00 F3 [06:41:12]Write i2c OK [06:41:12]MH_I2C_Read... [06:41:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:41:12]Read from MH i2c: E2 [06:41:12]MH_I2C_Read... [06:41:12]Read from MH i2c: E2 03 00 [06:41:12]MH_I2C_Read... [06:41:12]Read from MH i2c: E2 03 00 52 28 00 90 00 EE [06:41:12]RAPDU: 90 00 [06:41:12]wFMCommunicate OK [06:41:12]wFMCommunicate request_size=255 [06:41:12]MH_SAM_APDU [06:41: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 33 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 22 00 00 00 F4 03 04 00 89 F7 15 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 B2 DC 02 00 35 04 06 00 54 [06:41:12]Write to MH i2c: E2 02 01 53 28 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 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 22 00 00 00 F4 03 04 00 89 F7 15 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 B2 DC 02 00 35 04 06 00 54 00 00 7E [06:41:12]Write i2c OK [06:41:12]MH_I2C_Read... [06:41:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:41:12]Read from MH i2c: E2 [06:41:12]MH_I2C_Read... [06:41:12]Read from MH i2c: E2 03 00 [06:41:12]MH_I2C_Read... [06:41:12]Read from MH i2c: E2 03 00 53 28 00 90 00 EF [06:41:12]RAPDU: 90 00 [06:41:12]wFMCommunicate OK [06:41:12]wFMCommunicate request_size=10 [06:41:12]MH_SAM_APDU [06:41:12]CAPDU: 80 0D 02 02 05 1D DF 7C BF 11 [06:41:12]Write to MH i2c: E2 0D 00 54 28 80 0D 02 02 05 00 1D DF 7C BF 11 00 00 48 [06:41:12]Write i2c OK [06:41:12]MH_I2C_Read... [06:41:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:41:12]Read from MH i2c: E2 [06:41:12]MH_I2C_Read... [06:41:12]Read from MH i2c: E2 03 00 [06:41:12]MH_I2C_Read... [06:41:12]Read from MH i2c: E2 03 00 54 28 00 90 00 F0 [06:41:12]RAPDU: 90 00 [06:41:12]wFMCommunicate OK [06:41:12]wFMCommunicate request_size=4 [06:41:12]MH_SAM_APDU [06:41:12]CAPDU: 80 0D 03 02 [06:41:12]Write to MH i2c: E2 08 00 55 28 80 0D 03 02 00 00 00 00 F8 [06:41:12]Write i2c OK [06:41:12]MH_I2C_Read... [06:41:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:41:12]Read from MH i2c: E2 [06:41:12]MH_I2C_Read... [06:41:12]Read from MH i2c: E2 0B 00 [06:41:12]MH_I2C_Read... [06:41:12]Read from MH i2c: E2 0B 00 55 28 00 B7 03 22 77 DE 2E 40 65 90 00 FD [06:41:12]RAPDU: B7 03 22 77 DE 2E 40 65 90 00 [06:41:12]wFMCommunicate OK [06:41:12]SAM_PROTO_SignData done [06:41:12]FM_MakeSignedData done [06:41:12]CreateOFDProtocolMessage [06:41:12]wFMCommunicate request_size=4 [06:41:12]MH_SAM_APDU [06:41:12]CAPDU: 80 11 00 00 [06:41:12]Write to MH i2c: E2 08 00 56 28 80 11 00 00 00 00 00 00 F8 [06:41:12]Write i2c OK [06:41:12]MH_I2C_Read... [06:41:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:41:12]Read from MH i2c: E2 [06:41:12]MH_I2C_Read... [06:41:12]Read from MH i2c: E2 17 00 [06:41:12]MH_I2C_Read... [06:41:12]Read from MH i2c: E2 17 00 56 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 46 [06:41:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [06:41:12]wFMCommunicate OK [06:41:12]CreateOFDProtocolMessage done [06:41:12]OFDSenderStorePacket 187570 [06:41:12]StoreOFDPacket docnum=187570 [06:41:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 B2 D9 07 01 CA 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 33 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 22 00 00 00 F4 03 04 00 89 F7 15 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 B2 DC 02 00 35 04 06 00 54 1D DF 7C BF 11 B7 03 22 77 DE 2E 40 65 [06:41:12]CheckFolder [06:41:12]dirname=/storage/ofd_packets [06:41:12]CheckFolder done [06:41:12]ProducePacketName [06:41:12]name=ofd_packets/00187570 [06:41:12]NVStorageSaveData ofd_packets/00187570 [06:41:12]File name is /storage/ofd_packets/00187570 [06:41:12]Write 301 bytes [06:41:12]NVStorageSaveData done [06:41:12]OFDSenderStorePacket done [06:41:12]KKMCreateOFDPacket done [06:41:12]NVStorageSaveData kkm_last_timestamp [06:41:12]File name is /storage/kkm_last_timestamp [06:41:12]Write 4 bytes [06:41:12]NVStorageSaveData done [06:41:12]ExternCall_PrintAddStr [06:41:12]wPrintStart [06:41:12]Write to MH i2c: 01 00 00 57 28 7F [06:41:12]Write i2c OK [06:41:12]MH_I2C_Read... [06:41:12]Read from MH i2c: 01 [06:41:12]MH_I2C_Read... [06:41:12]Read from MH i2c: 01 07 00 [06:41:12]MH_I2C_Read... [06:41:12]Read from MH i2c: 01 07 00 57 28 00 00 00 00 00 FF 0F 94 [06:41:12]RasterBufferAndPrint [06:41:12]line Счет N : (1)209621 [06:41:12]line ИНН: 02508201610067 [06:41:12]line Контрольно-Кассовый Чек [06:41:12]line ПРОДАЖА [06:41:12]line ТРК (МРК, ГНК) : 42 [06:41:12]line Товар: 2710124130 [06:41:12]line Аи-92-К-3 [06:41:12]line 22.430 * 66.90 [06:41:12]line = 1500.57 [06:41:12]line НДС 12% НСП 1% [06:41:12]line > о реализуемом товаре [06:41:12]line ОКРУГЛЕНИЕ: -0.57 [06:41:12]line ИТОГО: 1500.00 [06:41:12]line Внесено: 1500.00 [06:41:12]line СДАЧА: 0.00 [06:41:12]line НСП 1% : 13.28 [06:41:12]line НДС 12% : 159.35 [06:41:12]line Наличными: 1500.00 [06:41:12]line Безнал.: 0.00 [06:41:12]line Место: АЗС № 86 "Партнер Нефть" [06:41:12]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [06:41:12]line СНО: Общий режим [06:41:12]line Чек 34 21.10.2024 06:41 [06:41:12]line Смена: 460 ФФД: 1.0 [06:41:12]line ЗНМ: 0300000155 [06:41:12]line РНМ: 0000000000100030 [06:41:12]line Версия ККМ: 001 [06:41:12]line ФМ: 0000000000965340 [06:41:12]line ФД: 187570 [06:41:12]line ФПД: 92487280279313 [06:41:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T064113&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187570&fm=92487280279313&tin=02508201610067®Number=0000000000100030&sum=150000 [06:41:13]OFD Sender: Processing packet 187570 [packets to send 1062, broken 1061] [06:41:13]ProducePacketName [06:41:13]name=ofd_packets/00187570 [06:41:13]OFD Sender: To server: pG, [06:41:13]CommunicateWithHost lk.salyk.kg:30040 [06:41:13]ConnectInit lk.salyk.kg [06:41:13]written 0, free lines is 4095 [06:41:13]Connected sock=10 [06:41:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 B2 D9 07 01 CA 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 33 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 22 00 00 00 F4 03 04 00 89 F7 15 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 B2 DC 02 00 35 04 06 00 54 1D DF 7C BF 11 B7 03 22 77 DE 2E 40 65 [06:41:13]Write to MH i2c: 01 00 00 82 28 AA [06:41:13]Write i2c OK [06:41:13]MH_I2C_Read... [06:41:13]Read from MH i2c: 01 [06:41:13]MH_I2C_Read... [06:41:13]Read from MH i2c: 01 07 00 [06:41:13]MH_I2C_Read... [06:41:13]Read from MH i2c: 01 07 00 82 28 00 00 00 00 00 58 0C 15 [06:41:13]RasterBufferAndPrint [06:41:13]line [06:41:13]line [06:41:13]line [06:41:13]line [06:41:13]line [06:41:13]written 0, free lines is 3164 [06:41:13]MH_Cut [06:41:13]Write to MH i2c: D1 01 00 89 28 01 83 [06:41:13]Write i2c OK [06:41:13]MH_I2C_Read... [06:41:13]Read from MH i2c: D1 [06:41:13]MH_I2C_Read... [06:41:13]Read from MH i2c: D1 01 00 [06:41:13]MH_I2C_Read... [06:41:13]Read from MH i2c: D1 01 00 89 28 00 82 [06:41:13]Write to MH i2c: 01 00 00 8A 28 B2 [06:41:13]Write i2c OK [06:41:13]MH_I2C_Read... [06:41:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 3C 61 47 00 69 6C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 B2 DC 02 00 F4 03 04 00 7A A1 15 67 B6 04 01 00 00 73 97 10 F3 A2 E6 7A D6 [06:41:13]CommunicateWithHost err = 0 [06:41:13]CheckOFDResponse [06:41:13]1017 (14) - 77093643461234 [06:41:13]1041 (16) - 0000000000965340 [06:41:13]1040 (4) - 187570 [06:41:13]1012 (4) - 21.10.2024 00:34 [06:41:13]1206 (1) - 0 [06:41:13]OFD Sender: Remove packet 187570 [06:41:13]ProducePacketName [06:41:13]name=ofd_packets/00187570 [06:41:13]NVStorageDeleteData [06:41:14]OFD Sender: No OFD packet to send [06:41:14]*** Cut start [06:41:14]*** Partial cut [06:41:14]*** CUTSNS_PIN = 1 [06:41:14]*** CUTSNS_PIN = 0 [06:41:15]*** Brake cut motor [06:41:15]Read from MH i2c: 01 [06:41:15]MH_I2C_Read... [06:41:15]*** Stop cut motor [06:41:15]*** Cut end [06:41:15]Read from MH i2c: 01 07 00 [06:41:15]MH_I2C_Read... [06:41:15]Read from MH i2c: 01 07 00 8A 28 00 00 00 00 00 FF 0F C7 [06:41:15]process_action close_receipt done [06:41:15]requested_data is exist [06:41:15]produce_requested_data [06:41:15]requested_item fm.sn is exist - process it [06:41:15]wFMCommunicate request_size=4 [06:41:15]MH_SAM_APDU [06:41:15]CAPDU: 80 11 00 00 [06:41:15]Write to MH i2c: E2 08 00 8B 28 80 11 00 00 00 00 00 00 2D [06:41:15]Write i2c OK [06:41:15]MH_I2C_Read... [06:41:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:41:15]Read from MH i2c: E2 [06:41:15]MH_I2C_Read... [06:41:15]Read from MH i2c: E2 17 00 [06:41:15]MH_I2C_Read... [06:41:15]Read from MH i2c: E2 17 00 8B 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 7B [06:41:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [06:41:15]wFMCommunicate OK [06:41:15]requested_item fd.num is exist - process it [06:41:15]SAM_PROTO_GetFieldsCounters [06:41:15]wFMCommunicate request_size=4 [06:41:15]MH_SAM_APDU [06:41:15]CAPDU: 80 13 00 00 [06:41:15]Write to MH i2c: E2 08 00 8C 28 80 13 00 00 00 00 00 00 30 [06:41:15]Write i2c OK [06:41:15]MH_I2C_Read... [06:41:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:41:15]Read from MH i2c: E2 [06:41:15]MH_I2C_Read... [06:41:15]Read from MH i2c: E2 62 00 [06:41:15]MH_I2C_Read... [06:41:15]Read from MH i2c: E2 62 00 8C 28 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 B2 DC 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 22 00 00 00 5E 04 04 00 22 00 00 00 57 04 04 00 23 00 00 00 19 04 04 00 00 00 00 00 90 00 FA [06:41:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 B2 DC 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 22 00 00 00 5E 04 04 00 22 00 00 00 57 04 04 00 23 00 00 00 19 04 04 00 00 00 00 00 90 00 [06:41:15]wFMCommunicate OK [06:41:15]SAM_PROTO_GetFieldsCounters done [06:41:15]requested_item shift.num is exist - process it [06:41:15]requested_item shift.opened is exist - process it [06:41:15]req_shift_opened [06:41:15]FM_GetShiftState [06:41:15]SAM_PROTO_GetShiftState [06:41:15]wFMCommunicate request_size=4 [06:41:15]MH_SAM_APDU [06:41:15]CAPDU: 80 13 01 00 [06:41:15]Write to MH i2c: E2 08 00 8D 28 80 13 01 00 00 00 00 00 32 [06:41:15]Write i2c OK [06:41:15]MH_I2C_Read... [06:41:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:41:15]Read from MH i2c: E2 [06:41:15]MH_I2C_Read... [06:41:15]Read from MH i2c: E2 0E 00 [06:41:15]MH_I2C_Read... [06:41:15]Read from MH i2c: E2 0E 00 8D 28 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 91 [06:41:15]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [06:41:15]wFMCommunicate OK [06:41:15]SAM_PROTO_GetShiftState done [06:41:15]FM_GetShiftState done [06:41:15]req_shift_opened done [06:41:15]requested_item shift.open_date is exist - process it [06:41:15]req_shift_open_date [06:41:15]req_shift_open_date done [06:41:15]produce_requested_data done [06:41:15]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187570,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [06:41:15]process_action_free close_receipt [06:41:15]json_value_free [06:41:15]json_value_free done [06:41:15]process_json_proto returns [06:41:15]Send response to host [06:41:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187570,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [06:41:15]free response buf [06:41:15]execute_script done [06:41:15]execute_script returns [06:41:15]free content buf [06:41:15]Sock 8.Close socket [06:41:15]Sock 8.Thread stoped [06:41:19]OFD Sender: No OFD packet to send [06:41:24]OFD Sender: No OFD packet to send [06:41:29]OFD Sender: No OFD packet to send [06:41:34]OFD Sender: No OFD packet to send [06:41:39]OFD Sender: No OFD packet to send [06:41:44]OFD Sender: No OFD packet to send [06:41:49]OFD Sender: No OFD packet to send [06:41:54]OFD Sender: No OFD packet to send [06:41:59]OFD Sender: No OFD packet to send [06:42:04]OFD Sender: No OFD packet to send [06:42:09]OFD Sender: No OFD packet to send [06:42:14]OFD Sender: No OFD packet to send [06:42:19]OFD Sender: No OFD packet to send [06:42:24]OFD Sender: No OFD packet to send [06:42:29]OFD Sender: No OFD packet to send [06:42:34]OFD Sender: No OFD packet to send [06:42:39]OFD Sender: No OFD packet to send [06:42:44]OFD Sender: No OFD packet to send [06:42:49]OFD Sender: No OFD packet to send [06:42:54]OFD Sender: No OFD packet to send [06:42:59]OFD Sender: No OFD packet to send [06:43:04]OFD Sender: No OFD packet to send [06:43:09]OFD Sender: No OFD packet to send [06:43:14]OFD Sender: No OFD packet to send [06:43:19]OFD Sender: No OFD packet to send [06:43:24]OFD Sender: No OFD packet to send [06:43:29]OFD Sender: No OFD packet to send [06:43:34]OFD Sender: No OFD packet to send [06:43:39]OFD Sender: No OFD packet to send [06:43:44]OFD Sender: No OFD packet to send [06:43:49]OFD Sender: No OFD packet to send [06:43:54]OFD Sender: No OFD packet to send [06:43:59]OFD Sender: No OFD packet to send [06:44:04]OFD Sender: No OFD packet to send [06:44:09]OFD Sender: No OFD packet to send [06:44:14]OFD Sender: No OFD packet to send [06:44:19]OFD Sender: No OFD packet to send [06:44:24]OFD Sender: No OFD packet to send [06:44:29]OFD Sender: No OFD packet to send [06:44:34]OFD Sender: No OFD packet to send [06:44:39]OFD Sender: No OFD packet to send [06:44:44]OFD Sender: No OFD packet to send [06:44:46]accept exits with 9 [06:44:46]New connection [06:44:46]New thread 3067014500 created [06:44:46]Thread 3067157860 joined [06:44:46]Waiting for new connection... [06:44:46] Sock 9.Parse request [06:44:46]Sock 9.Check first char [06:44:46]Sock 9.First char is OK [06:44:46]request: POST /json_proto HTTP/1.0 [06:44:46]Method: POST [06:44:46]URL: /json_proto [06:44:46]Method is POST - this is cgi request [06:44:46]url: /json_proto [06:44:46]query_string will be loaded in cgi processing [06:44:46]execute_cgi json_proto POST (null) [06:44:46]execute_cgi path=json_proto method=POST [06:44:46]POST find Content-Length [06:44:46]Host: 172.17.42.131:8080 [06:44:46]Content-Length: 688 [06:44:46]Content-Type: application/json [06:44:46] [06:44:46]POST finish read [06:44:46]Found Content-Length = 688 [06:44:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209622", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 38.870, "sum" : 3000.76, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:44:46]execute_script... [06:44: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)209622", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 38.870, "sum" : 3000.76, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:44:46]POST & json_proto [06:44:46]process_json_proto [06:44:46]json parsed OK: [06:44:46]protocol is kg_v1.0 [06:44:46]action value=close_receipt [06:44:46]process_action close_receipt [06:44:46]cmd_close_receipt [06:44:46]MH_GetDate [06:44:46]Write to MH i2c: F0 00 00 8E 28 A5 [06:44:46]Write i2c OK [06:44:46]MH_I2C_Read... [06:44:46]Read from MH i2c: F0 [06:44:46]MH_I2C_Read... [06:44:46]Read from MH i2c: F0 09 00 [06:44:46]MH_I2C_Read... [06:44:46]Read from MH i2c: F0 09 00 8E 28 00 61 F8 15 67 A0 18 CA 66 6B [06:44:46]GetLastDocTimeStamp 1729492873 [06:44:46]current date 1729493089 [06:44:46]FM_GetShiftState [06:44:46]SAM_PROTO_GetShiftState [06:44:46]wFMCommunicate request_size=4 [06:44:46]MH_SAM_APDU [06:44:46]CAPDU: 80 13 01 00 [06:44:46]Write to MH i2c: E2 08 00 8F 28 80 13 01 00 00 00 00 00 34 [06:44:46]Write i2c OK [06:44:46]MH_I2C_Read... [06:44:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:44:46]Read from MH i2c: E2 [06:44:46]MH_I2C_Read... [06:44:46]Read from MH i2c: E2 0E 00 [06:44:46]MH_I2C_Read... [06:44:46]Read from MH i2c: E2 0E 00 8F 28 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 93 [06:44:46]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [06:44:46]wFMCommunicate OK [06:44:46]SAM_PROTO_GetShiftState done [06:44:46]FM_GetShiftState done [06:44:46]opened in 1729469754 [06:44:46]opened+sec_in_day 1729556154 [06:44:46]quantity*price = 300076 [06:44:46]sum+1 = 300077 [06:44:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.76 ИТОГО: 3000.00 Внесено: 3000.00 СДАЧА: 0.00 НСП 1% : 26.55 НДС 12% : 318.66 Наличными: 3000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 35 21.10.2024 06:44 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 187571 ФПД: 174473149962039 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T064449&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187571&fm=174473149962039&tin=02508201610067®Number=0000000000100030&sum=300000 [06:44:47]StoreToDocumentArchive [06:44:47]shift 460 fd 187571 [06:44:47]save to /storage/0460/doc_00187571 [06:44:47]save last doc name /storage/0460/doc_00187571 to /storage/kkm_last_doc_name [06:44:47]save OK [06:44:47]Clear old archive folders... [06:44:47]ProcessDocumentItem done err = 0, tmpTLVsize=257 [06:44:47]tlvbuf is 010E3870 [06:44:47]SAM_PROTO_ClearQueue [06:44:47]wFMCommunicate request_size=4 [06:44:47]MH_SAM_APDU [06:44:47]CAPDU: 80 09 00 00 [06:44:47]Write to MH i2c: E2 08 00 9C 28 80 09 00 00 00 00 00 00 36 [06:44:47]Write i2c OK [06:44:47]MH_I2C_Read... [06:44:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:44:47]Read from MH i2c: E2 [06:44:47]MH_I2C_Read... [06:44:47]Read from MH i2c: E2 03 00 [06:44:47]MH_I2C_Read... [06:44:47]Read from MH i2c: E2 03 00 9C 28 00 90 00 38 [06:44:47]RAPDU: 90 00 [06:44:47]wFMCommunicate OK [06:44:47]SAM_PROTO_ClearQueue done [06:44:47]KKMCreateOFDPacket [06:44:47]OFDProtocolAddRootSTLVToBuf [06:44:47]FM_MakeSignedData [06:44:47]FM_MakeSignedData [06:44:47]SAM_PROTO_SignData [06:44:47]wFMCommunicate request_size=4 [06:44:47]MH_SAM_APDU [06:44:47]CAPDU: 80 0D 01 02 [06:44:47]Write to MH i2c: E2 08 00 9D 28 80 0D 01 02 00 00 00 00 3E [06:44:47]Write i2c OK [06:44:47]MH_I2C_Read... [06:44:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:44:47]Read from MH i2c: E2 [06:44:47]MH_I2C_Read... [06:44:47]Read from MH i2c: E2 03 00 [06:44:47]MH_I2C_Read... [06:44:47]Read from MH i2c: E2 03 00 9D 28 00 90 00 39 [06:44:47]RAPDU: 90 00 [06:44:47]wFMCommunicate OK [06:44:47]wFMCommunicate request_size=255 [06:44:47]MH_SAM_APDU [06:44:47]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 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D6 97 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 61 F8 15 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 B3 DC 02 [06:44:47]Write to MH i2c: E2 02 01 9E 28 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 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D6 97 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 61 F8 15 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 B3 DC 02 00 00 D3 [06:44:47]Write i2c OK [06:44:47]MH_I2C_Read... [06:44:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:44:47]Read from MH i2c: E2 [06:44:47]MH_I2C_Read... [06:44:47]Read from MH i2c: E2 03 00 [06:44:47]MH_I2C_Read... [06:44:47]Read from MH i2c: E2 03 00 9E 28 00 90 00 3A [06:44:47]RAPDU: 90 00 [06:44:47]wFMCommunicate OK [06:44:47]wFMCommunicate request_size=16 [06:44:47]MH_SAM_APDU [06:44:47]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 9E AE B2 20 57 37 [06:44:47]Write to MH i2c: E2 13 00 9F 28 80 0D 02 02 0B 00 00 35 04 06 00 9E AE B2 20 57 37 00 00 42 [06:44:47]Write i2c OK [06:44:47]MH_I2C_Read... [06:44:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:44:47]Read from MH i2c: E2 [06:44:47]MH_I2C_Read... [06:44:47]Read from MH i2c: E2 03 00 [06:44:47]MH_I2C_Read... [06:44:47]Read from MH i2c: E2 03 00 9F 28 00 90 00 3B [06:44:47]RAPDU: 90 00 [06:44:47]wFMCommunicate OK [06:44:47]wFMCommunicate request_size=4 [06:44:47]MH_SAM_APDU [06:44:47]CAPDU: 80 0D 03 02 [06:44:47]Write to MH i2c: E2 08 00 A0 28 80 0D 03 02 00 00 00 00 43 [06:44:48]Write i2c OK [06:44:48]MH_I2C_Read... [06:44:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:44:48]Read from MH i2c: E2 [06:44:48]MH_I2C_Read... [06:44:48]Read from MH i2c: E2 0B 00 [06:44:48]MH_I2C_Read... [06:44:48]Read from MH i2c: E2 0B 00 A0 28 00 67 B0 0C 9C 09 47 25 A5 90 00 1D [06:44:48]RAPDU: 67 B0 0C 9C 09 47 25 A5 90 00 [06:44:48]wFMCommunicate OK [06:44:48]SAM_PROTO_SignData done [06:44:48]FM_MakeSignedData done [06:44:48]CreateOFDProtocolMessage [06:44:48]wFMCommunicate request_size=4 [06:44:48]MH_SAM_APDU [06:44:48]CAPDU: 80 11 00 00 [06:44:48]Write to MH i2c: E2 08 00 A1 28 80 11 00 00 00 00 00 00 43 [06:44:48]Write i2c OK [06:44:48]MH_I2C_Read... [06:44:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:44:48]Read from MH i2c: E2 [06:44:48]MH_I2C_Read... [06:44:48]Read from MH i2c: E2 17 00 [06:44:48]MH_I2C_Read... [06:44:48]Read from MH i2c: E2 17 00 A1 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 91 [06:44:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [06:44:48]wFMCommunicate OK [06:44:48]CreateOFDProtocolMessage done [06:44:48]OFDSenderStorePacket 187571 [06:44:48]StoreOFDPacket docnum=187571 [06:44:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 7A FE 0D 01 B0 1F 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 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D6 97 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 61 F8 15 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 B3 DC 02 00 35 04 06 00 9E AE B2 20 57 37 67 B0 0C 9C 09 47 25 A5 [06:44:48]CheckFolder [06:44:48]dirname=/storage/ofd_packets [06:44:48]CheckFolder done [06:44:48]ProducePacketName [06:44:48]name=ofd_packets/00187571 [06:44:48]NVStorageSaveData ofd_packets/00187571 [06:44:48]File name is /storage/ofd_packets/00187571 [06:44:48]Write 307 bytes [06:44:48]NVStorageSaveData done [06:44:48]OFDSenderStorePacket done [06:44:48]KKMCreateOFDPacket done [06:44:48]NVStorageSaveData kkm_last_timestamp [06:44:48]File name is /storage/kkm_last_timestamp [06:44:48]Write 4 bytes [06:44:48]NVStorageSaveData done [06:44:48]ExternCall_PrintAddStr [06:44:48]wPrintStart [06:44:48]Write to MH i2c: 01 00 00 A2 28 CA [06:44:48]Write i2c OK [06:44:48]MH_I2C_Read... [06:44:48]Read from MH i2c: 01 [06:44:48]MH_I2C_Read... [06:44:48]Read from MH i2c: 01 07 00 [06:44:48]MH_I2C_Read... [06:44:48]Read from MH i2c: 01 07 00 A2 28 00 00 00 00 00 FF 0F DF [06:44:48]RasterBufferAndPrint [06:44:48]line Счет N : (1)209622 [06:44:48]line ИНН: 02508201610067 [06:44:48]line Контрольно-Кассовый Чек [06:44:48]line ПРОДАЖА [06:44:48]line ТРК (МРК, ГНК) : 21 [06:44:48]line Товар: 2710194210 [06:44:48]line D-ENERGY ДТ-К-5 [06:44:48]line 38.870 * 77.20 [06:44:48]line = 3000.76 [06:44:48]line НДС 12% НСП 1% [06:44:48]line > о реализуемом товаре [06:44:48]line ОКРУГЛЕНИЕ: -0.76 [06:44:48]line ИТОГО: 3000.00 [06:44:48]line Внесено: 3000.00 [06:44:48]line СДАЧА: 0.00 [06:44:48]line НСП 1% : 26.55 [06:44:48]line НДС 12% : 318.66 [06:44:48]line Наличными: 3000.00 [06:44:48]line Безнал.: 0.00 [06:44:48]line Место: АЗС № 86 "Партнер Нефть" [06:44:48]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [06:44:48]line СНО: Общий режим [06:44:48]line Чек 35 21.10.2024 06:44 [06:44:48]line Смена: 460 ФФД: 1.0 [06:44:48]line ЗНМ: 0300000155 [06:44:48]line РНМ: 0000000000100030 [06:44:48]line Версия ККМ: 001 [06:44:48]line ФМ: 0000000000965340 [06:44:48]line ФД: 187571 [06:44:48]line ФПД: 174473149962039 [06:44:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T064449&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187571&fm=174473149962039&tin=02508201610067®Number=0000000000100030&sum=300000 [06:44:48]written 0, free lines is 4095 [06:44:48]OFD Sender: Processing packet 187571 [packets to send 1062, broken 1061] [06:44:48]ProducePacketName [06:44:48]name=ofd_packets/00187571 [06:44:48]OFD Sender: To server: pG, [06:44:48]CommunicateWithHost lk.salyk.kg:30040 [06:44:48]ConnectInit lk.salyk.kg [06:44:48]Connected sock=10 [06:44:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 7A FE 0D 01 B0 1F 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 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D6 97 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 61 F8 15 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 B3 DC 02 00 35 04 06 00 9E AE B2 20 57 37 67 B0 0C 9C 09 47 25 A5 [06:44:48]Write to MH i2c: 01 00 00 CD 28 F5 [06:44:48]Write i2c OK [06:44:48]MH_I2C_Read... [06:44:48]Read from MH i2c: 01 [06:44:48]MH_I2C_Read... [06:44:48]Read from MH i2c: 01 07 00 [06:44:48]MH_I2C_Read... [06:44:48]Read from MH i2c: 01 07 00 CD 28 00 00 00 00 00 51 0C 59 [06:44:48]RasterBufferAndPrint [06:44:48]line [06:44:48]line [06:44:48]line [06:44:48]line [06:44:48]line [06:44:48]written 0, free lines is 3156 [06:44:48]MH_Cut [06:44:48]Write to MH i2c: D1 01 00 D4 28 01 CE [06:44:48]Write i2c OK [06:44:48]MH_I2C_Read... [06:44:48]Read from MH i2c: D1 [06:44:48]MH_I2C_Read... [06:44:48]Read from MH i2c: D1 01 00 [06:44:48]MH_I2C_Read... [06:44:48]Read from MH i2c: D1 01 00 D4 28 00 CD [06:44:48]Write to MH i2c: 01 00 00 D5 28 FD [06:44:48]Write i2c OK [06:44:48]MH_I2C_Read... [06:44:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 8D D9 47 00 46 0E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 B3 DC 02 00 F4 03 04 00 51 A2 15 67 B6 04 01 00 00 90 F8 55 B4 30 DB C4 0A [06:44:48]CommunicateWithHost err = 0 [06:44:48]CheckOFDResponse [06:44:48]1017 (14) - 77093643461234 [06:44:48]1041 (16) - 0000000000965340 [06:44:48]1040 (4) - 187571 [06:44:48]1012 (4) - 21.10.2024 00:37 [06:44:48]1206 (1) - 0 [06:44:48]OFD Sender: Remove packet 187571 [06:44:48]ProducePacketName [06:44:48]name=ofd_packets/00187571 [06:44:48]NVStorageDeleteData [06:44:49]OFD Sender: No OFD packet to send [06:44:49]*** Cut start [06:44:49]*** Partial cut [06:44:49]*** CUTSNS_PIN = 1 [06:44:49]*** CUTSNS_PIN = 0 [06:44:50]*** Brake cut motor [06:44:50]Read from MH i2c: 01 [06:44:50]MH_I2C_Read... [06:44:50]*** Stop cut motor [06:44:50]*** Cut end [06:44:50]Read from MH i2c: 01 07 00 [06:44:50]MH_I2C_Read... [06:44:50]Read from MH i2c: 01 07 00 D5 28 00 00 00 00 00 FF 0F 12 [06:44:50]process_action close_receipt done [06:44:50]requested_data is exist [06:44:50]produce_requested_data [06:44:50]requested_item fm.sn is exist - process it [06:44:50]wFMCommunicate request_size=4 [06:44:50]MH_SAM_APDU [06:44:50]CAPDU: 80 11 00 00 [06:44:50]Write to MH i2c: E2 08 00 D6 28 80 11 00 00 00 00 00 00 78 [06:44:50]Write i2c OK [06:44:50]MH_I2C_Read... [06:44:50]Read from MH i2c: E2 [06:44:50]MH_I2C_Read... [06:44:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:44:50]Read from MH i2c: E2 17 00 [06:44:50]MH_I2C_Read... [06:44:50]Read from MH i2c: E2 17 00 D6 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 C6 [06:44:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [06:44:50]wFMCommunicate OK [06:44:50]requested_item fd.num is exist - process it [06:44:50]SAM_PROTO_GetFieldsCounters [06:44:50]wFMCommunicate request_size=4 [06:44:50]MH_SAM_APDU [06:44:50]CAPDU: 80 13 00 00 [06:44:50]Write to MH i2c: E2 08 00 D7 28 80 13 00 00 00 00 00 00 7B [06:44:50]Write i2c OK [06:44:50]MH_I2C_Read... [06:44:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:44:50]Read from MH i2c: E2 [06:44:50]MH_I2C_Read... [06:44:50]Read from MH i2c: E2 62 00 [06:44:50]MH_I2C_Read... [06:44:50]Read from MH i2c: E2 62 00 D7 28 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 B3 DC 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 23 00 00 00 5E 04 04 00 23 00 00 00 57 04 04 00 24 00 00 00 19 04 04 00 00 00 00 00 90 00 49 [06:44:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 B3 DC 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 23 00 00 00 5E 04 04 00 23 00 00 00 57 04 04 00 24 00 00 00 19 04 04 00 00 00 00 00 90 00 [06:44:50]wFMCommunicate OK [06:44:50]SAM_PROTO_GetFieldsCounters done [06:44:50]requested_item shift.num is exist - process it [06:44:50]requested_item shift.opened is exist - process it [06:44:50]req_shift_opened [06:44:50]FM_GetShiftState [06:44:50]SAM_PROTO_GetShiftState [06:44:50]wFMCommunicate request_size=4 [06:44:50]MH_SAM_APDU [06:44:50]CAPDU: 80 13 01 00 [06:44:50]Write to MH i2c: E2 08 00 D8 28 80 13 01 00 00 00 00 00 7D [06:44:50]Write i2c OK [06:44:50]MH_I2C_Read... [06:44:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:44:50]Read from MH i2c: E2 [06:44:50]MH_I2C_Read... [06:44:50]Read from MH i2c: E2 0E 00 [06:44:50]MH_I2C_Read... [06:44:50]Read from MH i2c: E2 0E 00 D8 28 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 DC [06:44:50]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [06:44:50]wFMCommunicate OK [06:44:50]SAM_PROTO_GetShiftState done [06:44:50]FM_GetShiftState done [06:44:50]req_shift_opened done [06:44:50]requested_item shift.open_date is exist - process it [06:44:50]req_shift_open_date [06:44:50]req_shift_open_date done [06:44:50]produce_requested_data done [06:44:50]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187571,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [06:44:50]process_action_free close_receipt [06:44:50]json_value_free [06:44:50]json_value_free done [06:44:50]process_json_proto returns [06:44:50]Send response to host [06:44:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187571,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [06:44:50]free response buf [06:44:50]execute_script done [06:44:50]execute_script returns [06:44:50]free content buf [06:44:50]Sock 9.Close socket [06:44:50]Sock 9.Thread stoped [06:44:54]OFD Sender: No OFD packet to send [06:44:59]OFD Sender: No OFD packet to send [06:45:04]OFD Sender: No OFD packet to send [06:45:09]OFD Sender: No OFD packet to send [06:45:14]OFD Sender: No OFD packet to send [06:45:19]OFD Sender: No OFD packet to send [06:45:24]OFD Sender: No OFD packet to send [06:45:29]OFD Sender: No OFD packet to send [06:45:34]OFD Sender: No OFD packet to send [06:45:39]OFD Sender: No OFD packet to send [06:45:44]OFD Sender: No OFD packet to send [06:45:49]OFD Sender: No OFD packet to send [06:45:54]OFD Sender: No OFD packet to send [06:45:59]OFD Sender: No OFD packet to send [06:46:04]OFD Sender: No OFD packet to send [06:46:09]OFD Sender: No OFD packet to send [06:46:14]OFD Sender: No OFD packet to send [06:46:19]OFD Sender: No OFD packet to send [06:46:24]OFD Sender: No OFD packet to send [06:46:29]OFD Sender: No OFD packet to send [06:46:34]OFD Sender: No OFD packet to send [06:46:39]OFD Sender: No OFD packet to send [06:46:44]OFD Sender: No OFD packet to send [06:46:49]OFD Sender: No OFD packet to send [06:46:54]OFD Sender: No OFD packet to send [06:46:59]OFD Sender: No OFD packet to send [06:47:04]OFD Sender: No OFD packet to send [06:47:09]OFD Sender: No OFD packet to send [06:47:14]OFD Sender: No OFD packet to send [06:47:20]OFD Sender: No OFD packet to send [06:47:25]OFD Sender: No OFD packet to send [06:47:30]OFD Sender: No OFD packet to send [06:47:35]OFD Sender: No OFD packet to send [06:47:40]OFD Sender: No OFD packet to send [06:47:45]OFD Sender: No OFD packet to send [06:47:50]OFD Sender: No OFD packet to send [06:47:55]OFD Sender: No OFD packet to send [06:48:00]OFD Sender: No OFD packet to send [06:48:05]OFD Sender: No OFD packet to send [06:48:10]OFD Sender: No OFD packet to send [06:48:15]OFD Sender: No OFD packet to send [06:48:20]OFD Sender: No OFD packet to send [06:48:25]OFD Sender: No OFD packet to send [06:48:30]OFD Sender: No OFD packet to send [06:48:35]OFD Sender: No OFD packet to send [06:48:40]OFD Sender: No OFD packet to send [06:48:45]OFD Sender: No OFD packet to send [06:48:50]OFD Sender: No OFD packet to send [06:48:55]OFD Sender: No OFD packet to send [06:49:00]OFD Sender: No OFD packet to send [06:49:05]OFD Sender: No OFD packet to send [06:49:10]OFD Sender: No OFD packet to send [06:49:13]accept exits with 8 [06:49:13]New connection [06:49:13]New thread 3067157860 created [06:49:13]Thread 3067014500 joined [06:49:13]Waiting for new connection... [06:49:13] Sock 8.Parse request [06:49:13]Sock 8.Check first char [06:49:13]Sock 8.First char is OK [06:49:13]request: POST /json_proto HTTP/1.0 [06:49:13]Method: POST [06:49:13]URL: /json_proto [06:49:13]Method is POST - this is cgi request [06:49:13]url: /json_proto [06:49:13]query_string will be loaded in cgi processing [06:49:13]execute_cgi json_proto POST (null) [06:49:13]execute_cgi path=json_proto method=POST [06:49:13]POST find Content-Length [06:49:13]Host: 172.17.42.131:8080 [06:49:13]Content-Length: 682 [06:49:13]Content-Type: application/json [06:49:13] [06:49:13]POST finish read [06:49:13]Found Content-Length = 682 [06:49:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209623", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "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" ] } } [06:49:13]execute_script... [06:49: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)209623", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "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" ] } } [06:49:13]POST & json_proto [06:49:13]process_json_proto [06:49:13]json parsed OK: [06:49:13]protocol is kg_v1.0 [06:49:13]action value=close_receipt [06:49:13]process_action close_receipt [06:49:13]cmd_close_receipt [06:49:13]MH_GetDate [06:49:13]Write to MH i2c: F0 00 00 D9 28 F0 [06:49:13]Write i2c OK [06:49:13]MH_I2C_Read... [06:49:13]Read from MH i2c: F0 [06:49:13]MH_I2C_Read... [06:49:13]Read from MH i2c: F0 09 00 [06:49:13]MH_I2C_Read... [06:49:13]Read from MH i2c: F0 09 00 D9 28 00 6C F9 15 67 A0 18 CA 66 C2 [06:49:13]GetLastDocTimeStamp 1729493089 [06:49:13]current date 1729493356 [06:49:13]FM_GetShiftState [06:49:13]SAM_PROTO_GetShiftState [06:49:13]wFMCommunicate request_size=4 [06:49:13]MH_SAM_APDU [06:49:13]CAPDU: 80 13 01 00 [06:49:13]Write to MH i2c: E2 08 00 DA 28 80 13 01 00 00 00 00 00 7F [06:49:13]Write i2c OK [06:49:13]MH_I2C_Read... [06:49:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:49:13]Read from MH i2c: E2 [06:49:13]MH_I2C_Read... [06:49:13]Read from MH i2c: E2 0E 00 [06:49:13]MH_I2C_Read... [06:49:13]Read from MH i2c: E2 0E 00 DA 28 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 DE [06:49:13]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [06:49:13]wFMCommunicate OK [06:49:13]SAM_PROTO_GetShiftState done [06:49:13]FM_GetShiftState done [06:49:13]opened in 1729469754 [06:49:13]opened+sec_in_day 1729556154 [06:49:13]quantity*price = 100015 [06:49:13]sum+1 = 100017 [06:49:13]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 36 21.10.2024 06:49 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 187572 ФПД: 147783594194537 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T064916&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187572&fm=147783594194537&tin=02508201610067®Number=0000000000100030&sum=100000 [06:49:14]StoreToDocumentArchive [06:49:14]shift 460 fd 187572 [06:49:14]save to /storage/0460/doc_00187572 [06:49:14]save last doc name /storage/0460/doc_00187572 to /storage/kkm_last_doc_name [06:49:14]save OK [06:49:14]Clear old archive folders... [06:49:14]ProcessDocumentItem done err = 0, tmpTLVsize=251 [06:49:14]tlvbuf is 010EAF70 [06:49:14]SAM_PROTO_ClearQueue [06:49:14]wFMCommunicate request_size=4 [06:49:14]MH_SAM_APDU [06:49:14]CAPDU: 80 09 00 00 [06:49:14]Write to MH i2c: E2 08 00 E7 28 80 09 00 00 00 00 00 00 81 [06:49:14]Write i2c OK [06:49:14]MH_I2C_Read... [06:49:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:49:14]Read from MH i2c: E2 [06:49:14]MH_I2C_Read... [06:49:14]Read from MH i2c: E2 03 00 [06:49:14]MH_I2C_Read... [06:49:14]Read from MH i2c: E2 03 00 E7 28 00 90 00 83 [06:49:14]RAPDU: 90 00 [06:49:14]wFMCommunicate OK [06:49:14]SAM_PROTO_ClearQueue done [06:49:14]KKMCreateOFDPacket [06:49:14]OFDProtocolAddRootSTLVToBuf [06:49:14]FM_MakeSignedData [06:49:14]FM_MakeSignedData [06:49:14]SAM_PROTO_SignData [06:49:14]wFMCommunicate request_size=4 [06:49:14]MH_SAM_APDU [06:49:14]CAPDU: 80 0D 01 02 [06:49:14]Write to MH i2c: E2 08 00 E8 28 80 0D 01 02 00 00 00 00 89 [06:49:14]Write i2c OK [06:49:14]MH_I2C_Read... [06:49:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:49:14]Read from MH i2c: E2 [06:49:14]MH_I2C_Read... [06:49:14]Read from MH i2c: E2 03 00 [06:49:14]MH_I2C_Read... [06:49:14]Read from MH i2c: E2 03 00 E8 28 00 90 00 84 [06:49:14]RAPDU: 90 00 [06:49:14]wFMCommunicate OK [06:49:14]wFMCommunicate request_size=255 [06:49:14]MH_SAM_APDU [06:49: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 33 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 24 00 00 00 F4 03 04 00 6C F9 15 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 B4 DC 02 00 35 04 06 00 86 [06:49:14]Write to MH i2c: E2 02 01 E9 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 33 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 24 00 00 00 F4 03 04 00 6C F9 15 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 B4 DC 02 00 35 04 06 00 86 00 00 E0 [06:49:14]Write i2c OK [06:49:14]MH_I2C_Read... [06:49:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:49:15]Read from MH i2c: E2 [06:49:15]MH_I2C_Read... [06:49:15]Read from MH i2c: E2 03 00 [06:49:15]MH_I2C_Read... [06:49:15]Read from MH i2c: E2 03 00 E9 28 00 90 00 85 [06:49:15]RAPDU: 90 00 [06:49:15]wFMCommunicate OK [06:49:15]wFMCommunicate request_size=10 [06:49:15]MH_SAM_APDU [06:49:15]CAPDU: 80 0D 02 02 05 68 8C A2 B6 69 [06:49:15]Write to MH i2c: E2 0D 00 EA 28 80 0D 02 02 05 00 68 8C A2 B6 69 00 00 4B [06:49:15]Write i2c OK [06:49:15]MH_I2C_Read... [06:49:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:49:15]Read from MH i2c: E2 [06:49:15]MH_I2C_Read... [06:49:15]Read from MH i2c: E2 03 00 [06:49:15]MH_I2C_Read... [06:49:15]Read from MH i2c: E2 03 00 EA 28 00 90 00 86 [06:49:15]RAPDU: 90 00 [06:49:15]wFMCommunicate OK [06:49:15]wFMCommunicate request_size=4 [06:49:15]MH_SAM_APDU [06:49:15]CAPDU: 80 0D 03 02 [06:49:15]Write to MH i2c: E2 08 00 EB 28 80 0D 03 02 00 00 00 00 8E [06:49:15]Write i2c OK [06:49:15]MH_I2C_Read... [06:49:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:49:15]Read from MH i2c: E2 [06:49:15]MH_I2C_Read... [06:49:15]Read from MH i2c: E2 0B 00 [06:49:15]MH_I2C_Read... [06:49:15]Read from MH i2c: E2 0B 00 EB 28 00 A9 3F CC FC 60 D4 7F 37 90 00 29 [06:49:15]RAPDU: A9 3F CC FC 60 D4 7F 37 90 00 [06:49:15]wFMCommunicate OK [06:49:15]SAM_PROTO_SignData done [06:49:15]FM_MakeSignedData done [06:49:15]CreateOFDProtocolMessage [06:49:15]wFMCommunicate request_size=4 [06:49:15]MH_SAM_APDU [06:49:15]CAPDU: 80 11 00 00 [06:49:15]Write to MH i2c: E2 08 00 EC 28 80 11 00 00 00 00 00 00 8E [06:49:15]Write i2c OK [06:49:15]MH_I2C_Read... [06:49:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:49:15]Read from MH i2c: E2 [06:49:15]MH_I2C_Read... [06:49:15]Read from MH i2c: E2 17 00 [06:49:15]MH_I2C_Read... [06:49:15]Read from MH i2c: E2 17 00 EC 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 DC [06:49:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [06:49:15]wFMCommunicate OK [06:49:15]CreateOFDProtocolMessage done [06:49:15]OFDSenderStorePacket 187572 [06:49:15]StoreOFDPacket docnum=187572 [06:49:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 B9 CC 07 01 0A 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 33 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 24 00 00 00 F4 03 04 00 6C F9 15 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 B4 DC 02 00 35 04 06 00 86 68 8C A2 B6 69 A9 3F CC FC 60 D4 7F 37 [06:49:15]CheckFolder [06:49:15]dirname=/storage/ofd_packets [06:49:15]CheckFolder done [06:49:15]ProducePacketName [06:49:15]name=ofd_packets/00187572 [06:49:15]NVStorageSaveData ofd_packets/00187572 [06:49:15]File name is /storage/ofd_packets/00187572 [06:49:15]Write 301 bytes [06:49:15]NVStorageSaveData done [06:49:15]OFDSenderStorePacket done [06:49:15]KKMCreateOFDPacket done [06:49:15]NVStorageSaveData kkm_last_timestamp [06:49:15]File name is /storage/kkm_last_timestamp [06:49:15]Write 4 bytes [06:49:15]NVStorageSaveData done [06:49:15]ExternCall_PrintAddStr [06:49:15]wPrintStart [06:49:15]Write to MH i2c: 01 00 00 ED 28 15 [06:49:15]Write i2c OK [06:49:15]MH_I2C_Read... [06:49:15]Read from MH i2c: 01 [06:49:15]MH_I2C_Read... [06:49:15]Read from MH i2c: 01 07 00 [06:49:15]MH_I2C_Read... [06:49:15]Read from MH i2c: 01 07 00 ED 28 00 00 00 00 00 FF 0F 2A [06:49:15]RasterBufferAndPrint [06:49:15]line Счет N : (1)209623 [06:49:15]line ИНН: 02508201610067 [06:49:15]line Контрольно-Кассовый Чек [06:49:15]line ПРОДАЖА [06:49:15]line ТРК (МРК, ГНК) : 42 [06:49:15]line Товар: 2710124130 [06:49:15]line Аи-92-К-3 [06:49:15]line 14.950 * 66.90 [06:49:15]line = 1000.16 [06:49:15]line НДС 12% НСП 1% [06:49:15]line > о реализуемом товаре [06:49:15]line ОКРУГЛЕНИЕ: -0.16 [06:49:15]line ИТОГО: 1000.00 [06:49:15]line Внесено: 1000.00 [06:49:15]line СДАЧА: 0.00 [06:49:15]line НСП 1% : 8.85 [06:49:15]line НДС 12% : 106.21 [06:49:15]line Наличными: 1000.00 [06:49:15]line Безнал.: 0.00 [06:49:15]line Место: АЗС № 86 "Партнер Нефть" [06:49:15]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [06:49:15]line СНО: Общий режим [06:49:15]line Чек 36 21.10.2024 06:49 [06:49:15]line Смена: 460 ФФД: 1.0 [06:49:15]line ЗНМ: 0300000155 [06:49:15]line РНМ: 0000000000100030 [06:49:15]line Версия ККМ: 001 [06:49:15]line ФМ: 0000000000965340 [06:49:15]line ФД: 187572 [06:49:15]line ФПД: 147783594194537 [06:49:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T064916&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187572&fm=147783594194537&tin=02508201610067®Number=0000000000100030&sum=100000 [06:49:15]written 0, free lines is 4095 [06:49:15]OFD Sender: Processing packet 187572 [packets to send 1062, broken 1061] [06:49:15]ProducePacketName [06:49:15]name=ofd_packets/00187572 [06:49:15]OFD Sender: To server: pG, [06:49:15]CommunicateWithHost lk.salyk.kg:30040 [06:49:15]ConnectInit lk.salyk.kg [06:49:15]Connected sock=10 [06:49:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 B9 CC 07 01 0A 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 33 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 24 00 00 00 F4 03 04 00 6C F9 15 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 B4 DC 02 00 35 04 06 00 86 68 8C A2 B6 69 A9 3F CC FC 60 D4 7F 37 [06:49:15]Write to MH i2c: 01 00 00 18 29 41 [06:49:15]Write i2c OK [06:49:15]MH_I2C_Read... [06:49:15]Read from MH i2c: 01 [06:49:15]MH_I2C_Read... [06:49:15]Read from MH i2c: 01 07 00 [06:49:15]MH_I2C_Read... [06:49:15]Read from MH i2c: 01 07 00 18 29 00 00 00 00 00 4A 0C 9E [06:49:15]RasterBufferAndPrint [06:49:15]line [06:49:15]line [06:49:15]line [06:49:15]line [06:49:15]line [06:49:15]written 0, free lines is 3151 [06:49:15]MH_Cut [06:49:15]Write to MH i2c: D1 01 00 1F 29 01 1A [06:49:15]Write i2c OK [06:49:15]MH_I2C_Read... [06:49:15]Read from MH i2c: D1 [06:49:15]MH_I2C_Read... [06:49:15]Read from MH i2c: D1 01 00 [06:49:15]MH_I2C_Read... [06:49:15]Read from MH i2c: D1 01 00 1F 29 00 19 [06:49:15]Write to MH i2c: 01 00 00 20 29 49 [06:49:15]Write i2c OK [06:49:15]MH_I2C_Read... [06:49:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 5C 37 47 00 CE B0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 B4 DC 02 00 F4 03 04 00 5C A3 15 67 B6 04 01 00 00 D2 CF CF 31 7A 84 F8 F0 [06:49:15]CommunicateWithHost err = 0 [06:49:15]CheckOFDResponse [06:49:15]1017 (14) - 77093643461234 [06:49:15]1041 (16) - 0000000000965340 [06:49:15]1040 (4) - 187572 [06:49:15]1012 (4) - 21.10.2024 00:42 [06:49:15]1206 (1) - 0 [06:49:15]OFD Sender: Remove packet 187572 [06:49:15]ProducePacketName [06:49:15]name=ofd_packets/00187572 [06:49:15]NVStorageDeleteData [06:49:16]OFD Sender: No OFD packet to send [06:49:16]*** Cut start [06:49:16]*** Partial cut [06:49:16]*** CUTSNS_PIN = 1 [06:49:17]*** CUTSNS_PIN = 0 [06:49:17]*** Brake cut motor [06:49:17]Read from MH i2c: 01 [06:49:17]MH_I2C_Read... [06:49:17]*** Stop cut motor [06:49:17]*** Cut end [06:49:17]Read from MH i2c: 01 07 00 [06:49:17]MH_I2C_Read... [06:49:17]Read from MH i2c: 01 07 00 20 29 00 00 00 00 00 FF 0F 5E [06:49:17]process_action close_receipt done [06:49:17]requested_data is exist [06:49:17]produce_requested_data [06:49:17]requested_item fm.sn is exist - process it [06:49:17]wFMCommunicate request_size=4 [06:49:17]MH_SAM_APDU [06:49:17]CAPDU: 80 11 00 00 [06:49:17]Write to MH i2c: E2 08 00 21 29 80 11 00 00 00 00 00 00 C4 [06:49:17]Write i2c OK [06:49:17]MH_I2C_Read... [06:49:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:49:17]Read from MH i2c: E2 [06:49:17]MH_I2C_Read... [06:49:17]Read from MH i2c: E2 17 00 [06:49:17]MH_I2C_Read... [06:49:17]Read from MH i2c: E2 17 00 21 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 12 [06:49:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [06:49:17]wFMCommunicate OK [06:49:17]requested_item fd.num is exist - process it [06:49:17]SAM_PROTO_GetFieldsCounters [06:49:17]wFMCommunicate request_size=4 [06:49:17]MH_SAM_APDU [06:49:17]CAPDU: 80 13 00 00 [06:49:17]Write to MH i2c: E2 08 00 22 29 80 13 00 00 00 00 00 00 C7 [06:49:17]Write i2c OK [06:49:17]MH_I2C_Read... [06:49:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:49:17]Read from MH i2c: E2 [06:49:17]MH_I2C_Read... [06:49:17]Read from MH i2c: E2 62 00 [06:49:17]MH_I2C_Read... [06:49:17]Read from MH i2c: E2 62 00 22 29 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 B4 DC 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 24 00 00 00 5E 04 04 00 24 00 00 00 57 04 04 00 25 00 00 00 19 04 04 00 00 00 00 00 90 00 99 [06:49:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 B4 DC 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 24 00 00 00 5E 04 04 00 24 00 00 00 57 04 04 00 25 00 00 00 19 04 04 00 00 00 00 00 90 00 [06:49:17]wFMCommunicate OK [06:49:17]SAM_PROTO_GetFieldsCounters done [06:49:17]requested_item shift.num is exist - process it [06:49:17]requested_item shift.opened is exist - process it [06:49:17]req_shift_opened [06:49:17]FM_GetShiftState [06:49:17]SAM_PROTO_GetShiftState [06:49:17]wFMCommunicate request_size=4 [06:49:17]MH_SAM_APDU [06:49:17]CAPDU: 80 13 01 00 [06:49:17]Write to MH i2c: E2 08 00 23 29 80 13 01 00 00 00 00 00 C9 [06:49:17]Write i2c OK [06:49:17]MH_I2C_Read... [06:49:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:49:17]Read from MH i2c: E2 [06:49:17]MH_I2C_Read... [06:49:17]Read from MH i2c: E2 0E 00 [06:49:17]MH_I2C_Read... [06:49:17]Read from MH i2c: E2 0E 00 23 29 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 28 [06:49:17]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [06:49:17]wFMCommunicate OK [06:49:17]SAM_PROTO_GetShiftState done [06:49:17]FM_GetShiftState done [06:49:17]req_shift_opened done [06:49:17]requested_item shift.open_date is exist - process it [06:49:17]req_shift_open_date [06:49:17]req_shift_open_date done [06:49:17]produce_requested_data done [06:49:17]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187572,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [06:49:17]process_action_free close_receipt [06:49:17]json_value_free [06:49:17]json_value_free done [06:49:17]process_json_proto returns [06:49:17]Send response to host [06:49:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187572,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [06:49:17]free response buf [06:49:17]execute_script done [06:49:17]execute_script returns [06:49:17]free content buf [06:49:17]Sock 8.Close socket [06:49:17]Sock 8.Thread stoped [06:49:21]OFD Sender: No OFD packet to send [06:49:26]OFD Sender: No OFD packet to send [06:49:31]OFD Sender: No OFD packet to send [06:49:36]OFD Sender: No OFD packet to send [06:49:41]OFD Sender: No OFD packet to send [06:49:46]OFD Sender: No OFD packet to send [06:49:51]OFD Sender: No OFD packet to send [06:49:56]OFD Sender: No OFD packet to send [06:50:01]OFD Sender: No OFD packet to send [06:50:06]OFD Sender: No OFD packet to send [06:50:11]OFD Sender: No OFD packet to send [06:50:16]OFD Sender: No OFD packet to send [06:50:21]OFD Sender: No OFD packet to send [06:50:26]OFD Sender: No OFD packet to send [06:50:31]OFD Sender: No OFD packet to send [06:50:36]OFD Sender: No OFD packet to send [06:50:41]OFD Sender: No OFD packet to send [06:50:46]OFD Sender: No OFD packet to send [06:50:51]OFD Sender: No OFD packet to send [06:50:56]OFD Sender: No OFD packet to send [06:51:01]OFD Sender: No OFD packet to send [06:51:06]OFD Sender: No OFD packet to send [06:51:11]OFD Sender: No OFD packet to send [06:51:16]OFD Sender: No OFD packet to send [06:51:21]OFD Sender: No OFD packet to send [06:51:26]OFD Sender: No OFD packet to send [06:51:31]OFD Sender: No OFD packet to send [06:51:36]OFD Sender: No OFD packet to send [06:51:41]OFD Sender: No OFD packet to send [06:51:46]OFD Sender: No OFD packet to send [06:51:51]OFD Sender: No OFD packet to send [06:51:57]OFD Sender: No OFD packet to send [06:52:02]OFD Sender: No OFD packet to send [06:52:07]OFD Sender: No OFD packet to send [06:52:12]OFD Sender: No OFD packet to send [06:52:17]OFD Sender: No OFD packet to send [06:52:22]OFD Sender: No OFD packet to send [06:52:27]OFD Sender: No OFD packet to send [06:52:32]OFD Sender: No OFD packet to send [06:52:37]OFD Sender: No OFD packet to send [06:52:42]OFD Sender: No OFD packet to send [06:52:47]OFD Sender: No OFD packet to send [06:52:52]OFD Sender: No OFD packet to send [06:52:57]OFD Sender: No OFD packet to send [06:53:02]OFD Sender: No OFD packet to send [06:53:07]OFD Sender: No OFD packet to send [06:53:12]OFD Sender: No OFD packet to send [06:53:17]OFD Sender: No OFD packet to send [06:53:22]OFD Sender: No OFD packet to send [06:53:27]OFD Sender: No OFD packet to send [06:53:32]OFD Sender: No OFD packet to send [06:53:37]OFD Sender: No OFD packet to send [06:53:42]OFD Sender: No OFD packet to send [06:53:47]OFD Sender: No OFD packet to send [06:53:52]OFD Sender: No OFD packet to send [06:53:57]OFD Sender: No OFD packet to send [06:54:02]OFD Sender: No OFD packet to send [06:54:07]OFD Sender: No OFD packet to send [06:54:12]OFD Sender: No OFD packet to send [06:54:17]OFD Sender: No OFD packet to send [06:54:22]OFD Sender: No OFD packet to send [06:54:27]OFD Sender: No OFD packet to send [06:54:32]OFD Sender: No OFD packet to send [06:54:37]OFD Sender: No OFD packet to send [06:54:42]OFD Sender: No OFD packet to send [06:54:47]OFD Sender: No OFD packet to send [06:54:52]OFD Sender: No OFD packet to send [06:54:57]OFD Sender: No OFD packet to send [06:55:02]OFD Sender: No OFD packet to send [06:55:07]OFD Sender: No OFD packet to send [06:55:12]OFD Sender: No OFD packet to send [06:55:17]OFD Sender: No OFD packet to send [06:55:22]OFD Sender: No OFD packet to send [06:55:27]OFD Sender: No OFD packet to send [06:55:32]OFD Sender: No OFD packet to send [06:55:37]OFD Sender: No OFD packet to send [06:55:42]OFD Sender: No OFD packet to send [06:55: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:16]accept exits with 9 [06:59:16]New connection [06:59:16]New thread 3067014500 created [06:59:16]Thread 3067157860 joined [06:59:16]Waiting for new connection... [06:59:16] Sock 9.Parse request [06:59:16]Sock 9.Check first char [06:59:16]Sock 9.First char is OK [06:59:16]request: POST /json_proto HTTP/1.0 [06:59:16]Method: POST [06:59:16]URL: /json_proto [06:59:16]Method is POST - this is cgi request [06:59:16]url: /json_proto [06:59:16]query_string will be loaded in cgi processing [06:59:16]execute_cgi json_proto POST (null) [06:59:16]execute_cgi path=json_proto method=POST [06:59:16]POST find Content-Length [06:59:16]Host: 172.17.42.131:8080 [06:59:16]Content-Length: 682 [06:59:16]Content-Type: application/json [06:59:16] [06:59:16]POST finish read [06:59:16]Found Content-Length = 682 [06:59:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209624", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "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" ] } } [06:59:16]execute_script... [06:59: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)209624", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "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" ] } } [06:59:16]POST & json_proto [06:59:16]process_json_proto [06:59:16]json parsed OK: [06:59:16]protocol is kg_v1.0 [06:59:16]action value=close_receipt [06:59:16]process_action close_receipt [06:59:16]cmd_close_receipt [06:59:16]MH_GetDate [06:59:16]Write to MH i2c: F0 00 00 24 29 3C [06:59:16]Write i2c OK [06:59:16]MH_I2C_Read... [06:59:16]Read from MH i2c: F0 [06:59:16]MH_I2C_Read... [06:59:16]Read from MH i2c: F0 09 00 [06:59:16]MH_I2C_Read... [06:59:16]Read from MH i2c: F0 09 00 24 29 00 C7 FB 15 67 A0 18 CA 66 6B [06:59:16]GetLastDocTimeStamp 1729493356 [06:59:16]current date 1729493959 [06:59:16]FM_GetShiftState [06:59:16]SAM_PROTO_GetShiftState [06:59:16]wFMCommunicate request_size=4 [06:59:16]MH_SAM_APDU [06:59:16]CAPDU: 80 13 01 00 [06:59:16]Write to MH i2c: E2 08 00 25 29 80 13 01 00 00 00 00 00 CB [06:59:16]Write i2c OK [06:59:16]MH_I2C_Read... [06:59:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:59:16]Read from MH i2c: E2 [06:59:16]MH_I2C_Read... [06:59:16]Read from MH i2c: E2 0E 00 [06:59:16]MH_I2C_Read... [06:59:16]Read from MH i2c: E2 0E 00 25 29 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 2A [06:59:16]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [06:59:16]wFMCommunicate OK [06:59:16]SAM_PROTO_GetShiftState done [06:59:16]FM_GetShiftState done [06:59:16]opened in 1729469754 [06:59:16]opened+sec_in_day 1729556154 [06:59:16]quantity*price = 150056 [06:59:16]sum+1 = 150058 [06:59:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.57 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.35 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 37 21.10.2024 06:59 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 187573 ФПД: 131671286969935 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T065919&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187573&fm=131671286969935&tin=02508201610067®Number=0000000000100030&sum=150000 [06:59:17]StoreToDocumentArchive [06:59:17]shift 460 fd 187573 [06:59:17]save to /storage/0460/doc_00187573 [06:59:17]save last doc name /storage/0460/doc_00187573 to /storage/kkm_last_doc_name [06:59:17]save OK [06:59:17]Clear old archive folders... [06:59:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [06:59:17]tlvbuf is 0112EE90 [06:59:17]SAM_PROTO_ClearQueue [06:59:17]wFMCommunicate request_size=4 [06:59:17]MH_SAM_APDU [06:59:17]CAPDU: 80 09 00 00 [06:59:17]Write to MH i2c: E2 08 00 32 29 80 09 00 00 00 00 00 00 CD [06:59:17]Write i2c OK [06:59:17]MH_I2C_Read... [06:59:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:59:17]Read from MH i2c: E2 [06:59:17]MH_I2C_Read... [06:59:17]Read from MH i2c: E2 03 00 [06:59:17]MH_I2C_Read... [06:59:17]Read from MH i2c: E2 03 00 32 29 00 90 00 CF [06:59:17]RAPDU: 90 00 [06:59:17]wFMCommunicate OK [06:59:17]SAM_PROTO_ClearQueue done [06:59:17]KKMCreateOFDPacket [06:59:17]OFDProtocolAddRootSTLVToBuf [06:59:17]FM_MakeSignedData [06:59:17]FM_MakeSignedData [06:59:17]SAM_PROTO_SignData [06:59:17]wFMCommunicate request_size=4 [06:59:17]MH_SAM_APDU [06:59:17]CAPDU: 80 0D 01 02 [06:59:17]Write to MH i2c: E2 08 00 33 29 80 0D 01 02 00 00 00 00 D5 [06:59:17]Write i2c OK [06:59:17]MH_I2C_Read... [06:59:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:59:17]Read from MH i2c: E2 [06:59:17]MH_I2C_Read... [06:59:17]Read from MH i2c: E2 03 00 [06:59:17]MH_I2C_Read... [06:59:17]Read from MH i2c: E2 03 00 33 29 00 90 00 D0 [06:59:17]RAPDU: 90 00 [06:59:17]wFMCommunicate OK [06:59:17]wFMCommunicate request_size=255 [06:59:17]MH_SAM_APDU [06:59: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 33 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 25 00 00 00 F4 03 04 00 C7 FB 15 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 B5 DC 02 00 35 04 06 00 77 [06:59:17]Write to MH i2c: E2 02 01 34 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 33 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 25 00 00 00 F4 03 04 00 C7 FB 15 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 B5 DC 02 00 35 04 06 00 77 00 00 CB [06:59:17]Write i2c OK [06:59:17]MH_I2C_Read... [06:59:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:59:18]Read from MH i2c: E2 [06:59:18]MH_I2C_Read... [06:59:18]Read from MH i2c: E2 03 00 [06:59:18]MH_I2C_Read... [06:59:18]Read from MH i2c: E2 03 00 34 29 00 90 00 D1 [06:59:18]RAPDU: 90 00 [06:59:18]wFMCommunicate OK [06:59:18]wFMCommunicate request_size=10 [06:59:18]MH_SAM_APDU [06:59:18]CAPDU: 80 0D 02 02 05 C1 1C 49 76 4F [06:59:18]Write to MH i2c: E2 0D 00 35 29 80 0D 02 02 05 00 C1 1C 49 76 4F 00 00 CD [06:59:18]Write i2c OK [06:59:18]MH_I2C_Read... [06:59:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:59:18]Read from MH i2c: E2 [06:59:18]MH_I2C_Read... [06:59:18]Read from MH i2c: E2 03 00 [06:59:18]MH_I2C_Read... [06:59:18]Read from MH i2c: E2 03 00 35 29 00 90 00 D2 [06:59:18]RAPDU: 90 00 [06:59:18]wFMCommunicate OK [06:59:18]wFMCommunicate request_size=4 [06:59:18]MH_SAM_APDU [06:59:18]CAPDU: 80 0D 03 02 [06:59:18]Write to MH i2c: E2 08 00 36 29 80 0D 03 02 00 00 00 00 DA [06:59:18]Write i2c OK [06:59:18]MH_I2C_Read... [06:59:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:59:18]Read from MH i2c: E2 [06:59:18]MH_I2C_Read... [06:59:18]Read from MH i2c: E2 0B 00 [06:59:18]MH_I2C_Read... [06:59:18]Read from MH i2c: E2 0B 00 36 29 00 54 E6 62 0F C4 02 86 0D 90 00 DF [06:59:18]RAPDU: 54 E6 62 0F C4 02 86 0D 90 00 [06:59:18]wFMCommunicate OK [06:59:18]SAM_PROTO_SignData done [06:59:18]FM_MakeSignedData done [06:59:18]CreateOFDProtocolMessage [06:59:18]wFMCommunicate request_size=4 [06:59:18]MH_SAM_APDU [06:59:18]CAPDU: 80 11 00 00 [06:59:18]Write to MH i2c: E2 08 00 37 29 80 11 00 00 00 00 00 00 DA [06:59:18]Write i2c OK [06:59:18]MH_I2C_Read... [06:59:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:59:18]Read from MH i2c: E2 [06:59:18]MH_I2C_Read... [06:59:18]Read from MH i2c: E2 17 00 [06:59:18]MH_I2C_Read... [06:59:18]Read from MH i2c: E2 17 00 37 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 28 [06:59:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [06:59:18]wFMCommunicate OK [06:59:18]CreateOFDProtocolMessage done [06:59:18]OFDSenderStorePacket 187573 [06:59:18]StoreOFDPacket docnum=187573 [06:59:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 A4 88 07 01 BD 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 33 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 25 00 00 00 F4 03 04 00 C7 FB 15 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 B5 DC 02 00 35 04 06 00 77 C1 1C 49 76 4F 54 E6 62 0F C4 02 86 0D [06:59:18]CheckFolder [06:59:18]dirname=/storage/ofd_packets [06:59:18]CheckFolder done [06:59:18]ProducePacketName [06:59:18]name=ofd_packets/00187573 [06:59:18]NVStorageSaveData ofd_packets/00187573 [06:59:18]File name is /storage/ofd_packets/00187573 [06:59:18]Write 301 bytes [06:59:18]NVStorageSaveData done [06:59:18]OFDSenderStorePacket done [06:59:18]KKMCreateOFDPacket done [06:59:18]NVStorageSaveData kkm_last_timestamp [06:59:18]File name is /storage/kkm_last_timestamp [06:59:18]Write 4 bytes [06:59:18]NVStorageSaveData done [06:59:18]ExternCall_PrintAddStr [06:59:18]wPrintStart [06:59:18]Write to MH i2c: 01 00 00 38 29 61 [06:59:18]Write i2c OK [06:59:18]MH_I2C_Read... [06:59:18]Read from MH i2c: 01 [06:59:18]MH_I2C_Read... [06:59:18]Read from MH i2c: 01 07 00 [06:59:18]MH_I2C_Read... [06:59:18]Read from MH i2c: 01 07 00 38 29 00 00 00 00 00 FF 0F 76 [06:59:18]RasterBufferAndPrint [06:59:18]line Счет N : (1)209624 [06:59:18]line ИНН: 02508201610067 [06:59:18]line Контрольно-Кассовый Чек [06:59:18]line ПРОДАЖА [06:59:18]line ТРК (МРК, ГНК) : 12 [06:59:18]line Товар: 2710124130 [06:59:18]line Аи-92-К-3 [06:59:18]line 22.430 * 66.90 [06:59:18]line = 1500.57 [06:59:18]line НДС 12% НСП 1% [06:59:18]line > о реализуемом товаре [06:59:18]line ОКРУГЛЕНИЕ: -0.57 [06:59:18]line ИТОГО: 1500.00 [06:59:18]line Внесено: 1500.00 [06:59:18]line СДАЧА: 0.00 [06:59:18]line НСП 1% : 13.28 [06:59:18]line НДС 12% : 159.35 [06:59:18]line Наличными: 1500.00 [06:59:18]line Безнал.: 0.00 [06:59:18]line Место: АЗС № 86 "Партнер Нефть" [06:59:18]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [06:59:18]line СНО: Общий режим [06:59:18]line Чек 37 21.10.2024 06:59 [06:59:18]line Смена: 460 ФФД: 1.0 [06:59:18]line ЗНМ: 0300000155 [06:59:18]line РНМ: 0000000000100030 [06:59:18]line Версия ККМ: 001 [06:59:18]line ФМ: 0000000000965340 [06:59:18]line ФД: 187573 [06:59:18]line ФПД: 131671286969935 [06:59:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T065919&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187573&fm=131671286969935&tin=02508201610067®Number=0000000000100030&sum=150000 [06:59:18]written 0, free lines is 4095 [06:59:18]OFD Sender: Processing packet 187573 [packets to send 1062, broken 1061] [06:59:18]ProducePacketName [06:59:18]name=ofd_packets/00187573 [06:59:18]OFD Sender: To server: pG, [06:59:18]CommunicateWithHost lk.salyk.kg:30040 [06:59:18]ConnectInit lk.salyk.kg [06:59:18]Connected sock=10 [06:59:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 A4 88 07 01 BD 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 33 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 25 00 00 00 F4 03 04 00 C7 FB 15 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 B5 DC 02 00 35 04 06 00 77 C1 1C 49 76 4F 54 E6 62 0F C4 02 86 0D [06:59:18]Write to MH i2c: 01 00 00 63 29 8C [06:59:18]Write i2c OK [06:59:18]MH_I2C_Read... [06:59:18]Read from MH i2c: 01 [06:59:18]MH_I2C_Read... [06:59:18]Read from MH i2c: 01 07 00 [06:59:18]MH_I2C_Read... [06:59:18]Read from MH i2c: 01 07 00 63 29 00 00 00 00 00 50 0C EF [06:59:18]RasterBufferAndPrint [06:59:18]line [06:59:18]line [06:59:18]line [06:59:18]line [06:59:18]line [06:59:18]written 0, free lines is 3157 [06:59:18]MH_Cut [06:59:18]Write to MH i2c: D1 01 00 6A 29 01 65 [06:59:18]Write i2c OK [06:59:18]MH_I2C_Read... [06:59:18]Read from MH i2c: D1 [06:59:18]MH_I2C_Read... [06:59:18]Read from MH i2c: D1 01 00 [06:59:18]MH_I2C_Read... [06:59:18]Read from MH i2c: D1 01 00 6A 29 00 64 [06:59:18]Write to MH i2c: 01 00 00 6B 29 94 [06:59:18]Write i2c OK [06:59:18]MH_I2C_Read... [06:59:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 87 37 47 00 9D 2A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 B5 DC 02 00 F4 03 04 00 B7 A5 15 67 B6 04 01 00 00 30 C4 FB CB 7C 90 49 19 [06:59:18]CommunicateWithHost err = 0 [06:59:18]CheckOFDResponse [06:59:18]1017 (14) - 77093643461234 [06:59:18]1041 (16) - 0000000000965340 [06:59:18]1040 (4) - 187573 [06:59:18]1012 (4) - 21.10.2024 00:52 [06:59:18]1206 (1) - 0 [06:59:18]OFD Sender: Remove packet 187573 [06:59:18]ProducePacketName [06:59:18]name=ofd_packets/00187573 [06:59:18]NVStorageDeleteData [06:59:19]OFD Sender: No OFD packet to send [06:59:20]*** Cut start [06:59:20]*** Partial cut [06:59:20]*** CUTSNS_PIN = 1 [06:59:20]*** CUTSNS_PIN = 0 [06:59:20]*** Brake cut motor [06:59:20]Read from MH i2c: 01 [06:59:20]MH_I2C_Read... [06:59:20]*** Stop cut motor [06:59:20]*** Cut end [06:59:20]Read from MH i2c: 01 07 00 [06:59:20]MH_I2C_Read... [06:59:20]Read from MH i2c: 01 07 00 6B 29 00 00 00 00 00 FF 0F A9 [06:59:20]process_action close_receipt done [06:59:20]requested_data is exist [06:59:20]produce_requested_data [06:59:20]requested_item fm.sn is exist - process it [06:59:20]wFMCommunicate request_size=4 [06:59:20]MH_SAM_APDU [06:59:20]CAPDU: 80 11 00 00 [06:59:20]Write to MH i2c: E2 08 00 6C 29 80 11 00 00 00 00 00 00 0F [06:59:20]Write i2c OK [06:59:20]MH_I2C_Read... [06:59:20]Read from MH i2c: E2 [06:59:20]MH_I2C_Read... [06:59:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:59:20]Read from MH i2c: E2 17 00 [06:59:20]MH_I2C_Read... [06:59:20]Read from MH i2c: E2 17 00 6C 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 5D [06:59:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [06:59:20]wFMCommunicate OK [06:59:20]requested_item fd.num is exist - process it [06:59:20]SAM_PROTO_GetFieldsCounters [06:59:20]wFMCommunicate request_size=4 [06:59:20]MH_SAM_APDU [06:59:20]CAPDU: 80 13 00 00 [06:59:20]Write to MH i2c: E2 08 00 6D 29 80 13 00 00 00 00 00 00 12 [06:59:20]Write i2c OK [06:59:20]MH_I2C_Read... [06:59:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:59:20]Read from MH i2c: E2 [06:59:20]MH_I2C_Read... [06:59:20]Read from MH i2c: E2 62 00 [06:59:20]MH_I2C_Read... [06:59:20]Read from MH i2c: E2 62 00 6D 29 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 B5 DC 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 25 00 00 00 5E 04 04 00 25 00 00 00 57 04 04 00 26 00 00 00 19 04 04 00 00 00 00 00 90 00 E8 [06:59:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 B5 DC 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 25 00 00 00 5E 04 04 00 25 00 00 00 57 04 04 00 26 00 00 00 19 04 04 00 00 00 00 00 90 00 [06:59:20]wFMCommunicate OK [06:59:20]SAM_PROTO_GetFieldsCounters done [06:59:20]requested_item shift.num is exist - process it [06:59:20]requested_item shift.opened is exist - process it [06:59:20]req_shift_opened [06:59:20]FM_GetShiftState [06:59:20]SAM_PROTO_GetShiftState [06:59:20]wFMCommunicate request_size=4 [06:59:20]MH_SAM_APDU [06:59:20]CAPDU: 80 13 01 00 [06:59:20]Write to MH i2c: E2 08 00 6E 29 80 13 01 00 00 00 00 00 14 [06:59:20]Write i2c OK [06:59:20]MH_I2C_Read... [06:59:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:59:20]Read from MH i2c: E2 [06:59:20]MH_I2C_Read... [06:59:20]Read from MH i2c: E2 0E 00 [06:59:20]MH_I2C_Read... [06:59:20]Read from MH i2c: E2 0E 00 6E 29 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 73 [06:59:20]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [06:59:20]wFMCommunicate OK [06:59:20]SAM_PROTO_GetShiftState done [06:59:20]FM_GetShiftState done [06:59:20]req_shift_opened done [06:59:20]requested_item shift.open_date is exist - process it [06:59:20]req_shift_open_date [06:59:20]req_shift_open_date done [06:59:20]produce_requested_data done [06:59:20]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187573,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [06:59:20]process_action_free close_receipt [06:59:20]json_value_free [06:59:20]json_value_free done [06:59:20]process_json_proto returns [06:59:20]Send response to host [06:59:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187573,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [06:59:20]free response buf [06:59:20]execute_script done [06:59:20]execute_script returns [06:59:20]free content buf [06:59:20]Sock 9.Close socket [06:59:20]Sock 9.Thread stoped [06:59:24]OFD Sender: No OFD packet to send [06:59:29]OFD Sender: No OFD packet to send [06:59:34]OFD Sender: No OFD packet to send [06:59:39]OFD Sender: No OFD packet to send [06:59:44]OFD Sender: No OFD packet to send [06:59:49]accept exits with 8 [06:59:49]New connection [06:59:49]New thread 3067157860 created [06:59:49]Thread 3067014500 joined [06:59:49]Waiting for new connection... [06:59:49] Sock 8.Parse request [06:59:49]Sock 8.Check first char [06:59:49]Sock 8.First char is OK [06:59:49]request: POST /json_proto HTTP/1.0 [06:59:49]Method: POST [06:59:49]URL: /json_proto [06:59:49]Method is POST - this is cgi request [06:59:49]url: /json_proto [06:59:49]query_string will be loaded in cgi processing [06:59:49]execute_cgi json_proto POST (null) [06:59:49]execute_cgi path=json_proto method=POST [06:59:49]POST find Content-Length [06:59:49]Host: 172.17.42.131:8080 [06:59:49]Content-Length: 751 [06:59:49]Content-Type: application/json [06:59:49] [06:59:49]POST finish read [06:59:49]Found Content-Length = 751 [06:59:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209625", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 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\u000A30137675", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:59:49]execute_script... [06:59: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)209625", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 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\u000A30137675", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:59:49]POST & json_proto [06:59:49]process_json_proto [06:59:49]json parsed OK: [06:59:49]protocol is kg_v1.0 [06:59:49]action value=close_receipt [06:59:49]process_action close_receipt [06:59:49]cmd_close_receipt [06:59:49]MH_GetDate [06:59:49]Write to MH i2c: F0 00 00 6F 29 87 [06:59:49]Write i2c OK [06:59:49]MH_I2C_Read... [06:59:49]Read from MH i2c: F0 [06:59:49]MH_I2C_Read... [06:59:49]Read from MH i2c: F0 09 00 [06:59:49]MH_I2C_Read... [06:59:49]Read from MH i2c: F0 09 00 6F 29 00 E8 FB 15 67 A0 18 CA 66 D7 [06:59:49]GetLastDocTimeStamp 1729493959 [06:59:49]current date 1729493992 [06:59:49]FM_GetShiftState [06:59:49]SAM_PROTO_GetShiftState [06:59:49]wFMCommunicate request_size=4 [06:59:49]MH_SAM_APDU [06:59:49]CAPDU: 80 13 01 00 [06:59:49]Write to MH i2c: E2 08 00 70 29 80 13 01 00 00 00 00 00 16 [06:59:49]Write i2c OK [06:59:49]MH_I2C_Read... [06:59:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:59:49]Read from MH i2c: E2 [06:59:49]MH_I2C_Read... [06:59:49]Read from MH i2c: E2 0E 00 [06:59:49]MH_I2C_Read... [06:59:49]Read from MH i2c: E2 0E 00 70 29 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 75 [06:59:49]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [06:59:49]wFMCommunicate OK [06:59:49]SAM_PROTO_GetShiftState done [06:59:49]FM_GetShiftState done [06:59:49]opened in 1729469754 [06:59:49]opened+sec_in_day 1729556154 [06:59:49]quantity*price = 0 [06:59:49]sum+1 = 1 [06:59:49]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 38 21.10.2024 06:59 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Талоны: ТК ГПНА Online 30137675 ФМ: 0000000000965340 ФД: 187574 ФПД: 165280131327383 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T065952&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187574&fm=165280131327383&tin=02508201610067®Number=0000000000100030&sum=0 [06:59:50]StoreToDocumentArchive [06:59:50]shift 460 fd 187574 [06:59:50]save to /storage/0460/doc_00187574 [06:59:50]save last doc name /storage/0460/doc_00187574 to /storage/kkm_last_doc_name [06:59:50]save OK [06:59:50]Clear old archive folders... [06:59:50]ProcessDocumentItem done err = 0, tmpTLVsize=248 [06:59:50]tlvbuf is B6DDA460 [06:59:50]SAM_PROTO_ClearQueue [06:59:50]wFMCommunicate request_size=4 [06:59:50]MH_SAM_APDU [06:59:50]CAPDU: 80 09 00 00 [06:59:50]Write to MH i2c: E2 08 00 7D 29 80 09 00 00 00 00 00 00 18 [06:59:50]Write i2c OK [06:59:50]MH_I2C_Read... [06:59:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:59:50]Read from MH i2c: E2 [06:59:50]MH_I2C_Read... [06:59:50]Read from MH i2c: E2 03 00 [06:59:50]MH_I2C_Read... [06:59:50]Read from MH i2c: E2 03 00 7D 29 00 90 00 1A [06:59:50]RAPDU: 90 00 [06:59:50]wFMCommunicate OK [06:59:50]SAM_PROTO_ClearQueue done [06:59:50]KKMCreateOFDPacket [06:59:50]OFDProtocolAddRootSTLVToBuf [06:59:50]FM_MakeSignedData [06:59:50]FM_MakeSignedData [06:59:50]SAM_PROTO_SignData [06:59:50]wFMCommunicate request_size=4 [06:59:50]MH_SAM_APDU [06:59:50]CAPDU: 80 0D 01 02 [06:59:50]Write to MH i2c: E2 08 00 7E 29 80 0D 01 02 00 00 00 00 20 [06:59:50]Write i2c OK [06:59:50]MH_I2C_Read... [06:59:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:59:50]Read from MH i2c: E2 [06:59:50]MH_I2C_Read... [06:59:50]Read from MH i2c: E2 03 00 [06:59:50]MH_I2C_Read... [06:59:50]Read from MH i2c: E2 03 00 7E 29 00 90 00 1B [06:59:50]RAPDU: 90 00 [06:59:50]wFMCommunicate OK [06:59:50]wFMCommunicate request_size=255 [06:59:50]MH_SAM_APDU [06:59:50]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 26 00 00 00 F4 03 04 00 E8 FB 15 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 B6 DC 02 00 35 04 06 00 96 52 47 84 [06:59:50]Write to MH i2c: E2 02 01 7F 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 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 26 00 00 00 F4 03 04 00 E8 FB 15 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 B6 DC 02 00 35 04 06 00 96 52 47 84 00 00 6A [06:59:50]Write i2c OK [06:59:50]MH_I2C_Read... [06:59:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:59:50]Read from MH i2c: E2 [06:59:50]MH_I2C_Read... [06:59:50]Read from MH i2c: E2 03 00 [06:59:50]MH_I2C_Read... [06:59:50]Read from MH i2c: E2 03 00 7F 29 00 90 00 1C [06:59:50]RAPDU: 90 00 [06:59:50]wFMCommunicate OK [06:59:50]wFMCommunicate request_size=7 [06:59:50]MH_SAM_APDU [06:59:50]CAPDU: 80 0D 02 02 02 25 97 [06:59:50]Write to MH i2c: E2 0A 00 80 29 80 0D 02 02 02 00 25 97 00 00 E3 [06:59:50]Write i2c OK [06:59:50]MH_I2C_Read... [06:59:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:59:50]Read from MH i2c: E2 [06:59:50]MH_I2C_Read... [06:59:50]Read from MH i2c: E2 03 00 [06:59:50]MH_I2C_Read... [06:59:50]Read from MH i2c: E2 03 00 80 29 00 90 00 1D [06:59:50]RAPDU: 90 00 [06:59:50]wFMCommunicate OK [06:59:50]wFMCommunicate request_size=4 [06:59:50]MH_SAM_APDU [06:59:50]CAPDU: 80 0D 03 02 [06:59:50]Write to MH i2c: E2 08 00 81 29 80 0D 03 02 00 00 00 00 25 [06:59:50]Write i2c OK [06:59:50]MH_I2C_Read... [06:59:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:59:50]Read from MH i2c: E2 [06:59:50]MH_I2C_Read... [06:59:50]Read from MH i2c: E2 0B 00 [06:59:50]MH_I2C_Read... [06:59:50]Read from MH i2c: E2 0B 00 81 29 00 E0 48 8C A5 02 E3 74 46 90 00 1E [06:59:50]RAPDU: E0 48 8C A5 02 E3 74 46 90 00 [06:59:50]wFMCommunicate OK [06:59:50]SAM_PROTO_SignData done [06:59:50]FM_MakeSignedData done [06:59:50]CreateOFDProtocolMessage [06:59:50]wFMCommunicate request_size=4 [06:59:50]MH_SAM_APDU [06:59:50]CAPDU: 80 11 00 00 [06:59:50]Write to MH i2c: E2 08 00 82 29 80 11 00 00 00 00 00 00 25 [06:59:50]Write i2c OK [06:59:50]MH_I2C_Read... [06:59:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:59:50]Read from MH i2c: E2 [06:59:50]MH_I2C_Read... [06:59:50]Read from MH i2c: E2 17 00 [06:59:50]MH_I2C_Read... [06:59:50]Read from MH i2c: E2 17 00 82 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 73 [06:59:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [06:59:50]wFMCommunicate OK [06:59:50]CreateOFDProtocolMessage done [06:59:50]OFDSenderStorePacket 187574 [06:59:50]StoreOFDPacket docnum=187574 [06:59:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 72 76 04 01 C0 19 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 E8 FB 15 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 B6 DC 02 00 35 04 06 00 96 52 47 84 25 97 E0 48 8C A5 02 E3 74 46 [06:59:50]CheckFolder [06:59:50]dirname=/storage/ofd_packets [06:59:50]CheckFolder done [06:59:50]ProducePacketName [06:59:50]name=ofd_packets/00187574 [06:59:50]NVStorageSaveData ofd_packets/00187574 [06:59:50]File name is /storage/ofd_packets/00187574 [06:59:50]Write 298 bytes [06:59:50]NVStorageSaveData done [06:59:50]OFDSenderStorePacket done [06:59:50]KKMCreateOFDPacket done [06:59:50]NVStorageSaveData kkm_last_timestamp [06:59:50]File name is /storage/kkm_last_timestamp [06:59:50]Write 4 bytes [06:59:50]NVStorageSaveData done [06:59:50]ExternCall_PrintAddStr [06:59:50]wPrintStart [06:59:50]Write to MH i2c: 01 00 00 83 29 AC [06:59:50]Write i2c OK [06:59:50]MH_I2C_Read... [06:59:50]Read from MH i2c: 01 [06:59:50]MH_I2C_Read... [06:59:50]Read from MH i2c: 01 07 00 [06:59:50]MH_I2C_Read... [06:59:50]Read from MH i2c: 01 07 00 83 29 00 00 00 00 00 FF 0F C1 [06:59:50]RasterBufferAndPrint [06:59:50]line Счет N : (1)209625 [06:59:50]line ИНН: 02508201610067 [06:59:50]line Контрольно-Кассовый Чек [06:59:50]line ПРОДАЖА [06:59:50]line ТРК (МРК, ГНК) : 51 [06:59:50]line Товар: 2710194210 [06:59:50]line ДТ-К-5 [06:59:50]line 20.000 * 0.00 [06:59:50]line = 0.00 [06:59:50]line НДС 12% НСП 1% [06:59:50]line > о реализуемом товаре [06:59:50]line ИТОГО: 0.00 [06:59:50]line НСП 1% : 0.00 [06:59:50]line НДС 12% : 0.00 [06:59:50]line Наличными: 0.00 [06:59:50]line Безнал.: 0.00 [06:59:50]line Место: АЗС № 86 "Партнер Нефть" [06:59:50]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [06:59:50]line СНО: Общий режим [06:59:50]line Чек 38 21.10.2024 06:59 [06:59:50]line Смена: 460 ФФД: 1.0 [06:59:50]line ЗНМ: 0300000155 [06:59:50]line РНМ: 0000000000100030 [06:59:50]line Версия ККМ: 001 [06:59:50]line Талоны: ТК ГПНА Online [06:59:50]line 30137675 [06:59:50]line ФМ: 0000000000965340 [06:59:50]line ФД: 187574 [06:59:50]line ФПД: 165280131327383 [06:59:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T065952&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187574&fm=165280131327383&tin=02508201610067®Number=0000000000100030&sum=0 [06:59:51]written 0, free lines is 4095 [06:59:51]OFD Sender: Processing packet 187574 [packets to send 1062, broken 1061] [06:59:51]ProducePacketName [06:59:51]name=ofd_packets/00187574 [06:59:51]OFD Sender: To server: pG, [06:59:51]CommunicateWithHost lk.salyk.kg:30040 [06:59:51]ConnectInit lk.salyk.kg [06:59:51]Connected sock=10 [06:59:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 72 76 04 01 C0 19 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 E8 FB 15 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 B6 DC 02 00 35 04 06 00 96 52 47 84 25 97 E0 48 8C A5 02 E3 74 46 [06:59:51]Write to MH i2c: 01 00 00 AD 29 D6 [06:59:51]Write i2c OK [06:59:51]MH_I2C_Read... [06:59:51]Read from MH i2c: 01 [06:59:51]MH_I2C_Read... [06:59:51]Read from MH i2c: 01 07 00 [06:59:51]MH_I2C_Read... [06:59:51]Read from MH i2c: 01 07 00 AD 29 00 00 00 00 00 5A 0C 43 [06:59:51]RasterBufferAndPrint [06:59:51]line [06:59:51]line [06:59:51]line [06:59:51]line [06:59:51]line [06:59:51]written 0, free lines is 3167 [06:59:51]MH_Cut [06:59:51]Write to MH i2c: D1 01 00 B4 29 01 AF [06:59:51]Write i2c OK [06:59:51]MH_I2C_Read... [06:59:51]Read from MH i2c: D1 [06:59:51]MH_I2C_Read... [06:59:51]Read from MH i2c: D1 01 00 [06:59:51]MH_I2C_Read... [06:59:51]Read from MH i2c: D1 01 00 B4 29 00 AE [06:59:51]Write to MH i2c: 01 00 00 B5 29 DE [06:59:51]Write i2c OK [06:59:51]MH_I2C_Read... [06:59:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 3D 78 47 00 4C 38 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 B6 DC 02 00 F4 03 04 00 D8 A5 15 67 B6 04 01 00 00 B4 85 75 EB 26 44 61 77 [06:59:51]CommunicateWithHost err = 0 [06:59:51]CheckOFDResponse [06:59:51]1017 (14) - 77093643461234 [06:59:51]1041 (16) - 0000000000965340 [06:59:51]1040 (4) - 187574 [06:59:51]1012 (4) - 21.10.2024 00:52 [06:59:51]1206 (1) - 0 [06:59:51]OFD Sender: Remove packet 187574 [06:59:51]ProducePacketName [06:59:51]name=ofd_packets/00187574 [06:59:51]NVStorageDeleteData [06:59:52]OFD Sender: No OFD packet to send [06:59:52]*** Cut start [06:59:52]*** Partial cut [06:59:52]*** CUTSNS_PIN = 1 [06:59:52]*** CUTSNS_PIN = 0 [06:59:52]*** Brake cut motor [06:59:53]Read from MH i2c: 01 [06:59:53]MH_I2C_Read... [06:59:53]*** Stop cut motor [06:59:53]*** Cut end [06:59:53]Read from MH i2c: 01 07 00 [06:59:53]MH_I2C_Read... [06:59:53]Read from MH i2c: 01 07 00 B5 29 00 00 00 00 00 FF 0F F3 [06:59:53]process_action close_receipt done [06:59:53]requested_data is exist [06:59:53]produce_requested_data [06:59:53]requested_item fm.sn is exist - process it [06:59:53]wFMCommunicate request_size=4 [06:59:53]MH_SAM_APDU [06:59:53]CAPDU: 80 11 00 00 [06:59:53]Write to MH i2c: E2 08 00 B6 29 80 11 00 00 00 00 00 00 59 [06:59:53]Write i2c OK [06:59:53]MH_I2C_Read... [06:59:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:59:53]Read from MH i2c: E2 [06:59:53]MH_I2C_Read... [06:59:53]Read from MH i2c: E2 17 00 [06:59:53]MH_I2C_Read... [06:59:53]Read from MH i2c: E2 17 00 B6 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 A7 [06:59:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [06:59:53]wFMCommunicate OK [06:59:53]requested_item fd.num is exist - process it [06:59:53]SAM_PROTO_GetFieldsCounters [06:59:53]wFMCommunicate request_size=4 [06:59:53]MH_SAM_APDU [06:59:53]CAPDU: 80 13 00 00 [06:59:53]Write to MH i2c: E2 08 00 B7 29 80 13 00 00 00 00 00 00 5C [06:59:53]Write i2c OK [06:59:53]MH_I2C_Read... [06:59:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:59:53]Read from MH i2c: E2 [06:59:53]MH_I2C_Read... [06:59:53]Read from MH i2c: E2 62 00 [06:59:53]MH_I2C_Read... [06:59:53]Read from MH i2c: E2 62 00 B7 29 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 B6 DC 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 26 00 00 00 5E 04 04 00 26 00 00 00 57 04 04 00 27 00 00 00 19 04 04 00 00 00 00 00 90 00 36 [06:59:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 B6 DC 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 26 00 00 00 5E 04 04 00 26 00 00 00 57 04 04 00 27 00 00 00 19 04 04 00 00 00 00 00 90 00 [06:59:53]wFMCommunicate OK [06:59:53]SAM_PROTO_GetFieldsCounters done [06:59:53]requested_item shift.num is exist - process it [06:59:53]requested_item shift.opened is exist - process it [06:59:53]req_shift_opened [06:59:53]FM_GetShiftState [06:59:53]SAM_PROTO_GetShiftState [06:59:53]wFMCommunicate request_size=4 [06:59:53]MH_SAM_APDU [06:59:53]CAPDU: 80 13 01 00 [06:59:53]Write to MH i2c: E2 08 00 B8 29 80 13 01 00 00 00 00 00 5E [06:59:53]Write i2c OK [06:59:53]MH_I2C_Read... [06:59:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:59:53]Read from MH i2c: E2 [06:59:53]MH_I2C_Read... [06:59:53]Read from MH i2c: E2 0E 00 [06:59:53]MH_I2C_Read... [06:59:53]Read from MH i2c: E2 0E 00 B8 29 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 BD [06:59:53]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [06:59:53]wFMCommunicate OK [06:59:53]SAM_PROTO_GetShiftState done [06:59:53]FM_GetShiftState done [06:59:53]req_shift_opened done [06:59:53]requested_item shift.open_date is exist - process it [06:59:53]req_shift_open_date [06:59:53]req_shift_open_date done [06:59:53]produce_requested_data done [06:59:53]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187574,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [06:59:53]process_action_free close_receipt [06:59:53]json_value_free [06:59:53]json_value_free done [06:59:53]process_json_proto returns [06:59:53]Send response to host [06:59:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187574,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [06:59:53]free response buf [06:59:53]execute_script done [06:59:53]execute_script returns [06:59:53]free content buf [06:59:53]Sock 8.Close socket [06:59:53]Sock 8.Thread stoped [06:59:57]OFD Sender: No OFD packet to send [07:00:02]OFD Sender: No OFD packet to send [07:00:07]OFD Sender: No OFD packet to send [07:00:12]OFD Sender: No OFD packet to send [07:00:17]OFD Sender: No OFD packet to send [07:00:22]OFD Sender: No OFD packet to send [07:00:27]OFD Sender: No OFD packet to send [07:00:32]OFD Sender: No OFD packet to send [07:00:37]OFD Sender: No OFD packet to send [07:00:42]OFD Sender: No OFD packet to send [07:00:47]OFD Sender: No OFD packet to send [07:00:52]OFD Sender: No OFD packet to send [07:00:57]OFD Sender: No OFD packet to send [07:01:02]OFD Sender: No OFD packet to send [07:01:07]OFD Sender: No OFD packet to send [07:01:12]OFD Sender: No OFD packet to send [07:01:17]OFD Sender: No OFD packet to send [07:01:22]OFD Sender: No OFD packet to send [07:01:27]OFD Sender: No OFD packet to send [07:01:32]OFD Sender: No OFD packet to send [07:01:37]OFD Sender: No OFD packet to send [07:01:42]OFD Sender: No OFD packet to send [07:01:47]OFD Sender: No OFD packet to send [07:01:52]OFD Sender: No OFD packet to send [07:01:57]OFD Sender: No OFD packet to send [07:02:02]OFD Sender: No OFD packet to send [07:02:07]OFD Sender: No OFD packet to send [07:02:12]OFD Sender: No OFD packet to send [07:02:17]OFD Sender: No OFD packet to send [07:02:22]OFD Sender: No OFD packet to send [07:02:27]OFD Sender: No OFD packet to send [07:02:32]OFD Sender: No OFD packet to send [07:02:37]OFD Sender: No OFD packet to send [07:02:42]OFD Sender: No OFD packet to send [07:02:47]OFD Sender: No OFD packet to send [07:02:52]OFD Sender: No OFD packet to send [07:02:57]OFD Sender: No OFD packet to send [07:03:02]OFD Sender: No OFD packet to send [07:03:07]OFD Sender: No OFD packet to send [07:03:12]OFD Sender: No OFD packet to send [07:03:17]OFD Sender: No OFD packet to send [07:03:22]OFD Sender: No OFD packet to send [07:03:27]OFD Sender: No OFD packet to send [07:03:33]OFD Sender: No OFD packet to send [07:03:38]OFD Sender: No OFD packet to send [07:03:43]OFD Sender: No OFD packet to send [07:03:48]OFD Sender: No OFD packet to send [07:03:53]OFD Sender: No OFD packet to send [07:03:58]OFD Sender: No OFD packet to send [07:04:03]OFD Sender: No OFD packet to send [07:04:08]OFD Sender: No OFD packet to send [07:04:13]OFD Sender: No OFD packet to send [07:04:18]OFD Sender: No OFD packet to send [07:04:23]OFD Sender: No OFD packet to send [07:04:28]OFD Sender: No OFD packet to send [07:04:33]OFD Sender: No OFD packet to send [07:04:38]OFD Sender: No OFD packet to send [07:04:43]OFD Sender: No OFD packet to send [07:04:48]OFD Sender: No OFD packet to send [07:04:53]OFD Sender: No OFD packet to send [07:04:58]OFD Sender: No OFD packet to send [07:05:03]OFD Sender: No OFD packet to send [07:05:08]OFD Sender: No OFD packet to send [07:05:13]OFD Sender: No OFD packet to send [07:05:18]OFD Sender: No OFD packet to send [07:05:23]OFD Sender: No OFD packet to send [07:05:28]OFD Sender: No OFD packet to send [07:05:33]OFD Sender: No OFD packet to send [07:05:34]accept exits with 9 [07:05:34]New connection [07:05:34]New thread 3067014500 created [07:05:34]Thread 3067157860 joined [07:05:34]Waiting for new connection... [07:05:34] Sock 9.Parse request [07:05:34]Sock 9.Check first char [07:05:34]Sock 9.First char is OK [07:05:34]request: POST /json_proto HTTP/1.0 [07:05:34]Method: POST [07:05:34]URL: /json_proto [07:05:34]Method is POST - this is cgi request [07:05:34]url: /json_proto [07:05:34]query_string will be loaded in cgi processing [07:05:34]execute_cgi json_proto POST (null) [07:05:34]execute_cgi path=json_proto method=POST [07:05:34]POST find Content-Length [07:05:34]Host: 172.17.42.131:8080 [07:05:34]Content-Length: 677 [07:05:34]Content-Type: application/json [07:05:34] [07:05:34]POST finish read [07:05:34]Found Content-Length = 677 [07:05:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209626", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "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:05:34]execute_script... [07:05: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)209626", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "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:05:34]POST & json_proto [07:05:34]process_json_proto [07:05:34]json parsed OK: [07:05:34]protocol is kg_v1.0 [07:05:34]action value=close_receipt [07:05:34]process_action close_receipt [07:05:34]cmd_close_receipt [07:05:34]MH_GetDate [07:05:34]Write to MH i2c: F0 00 00 B9 29 D1 [07:05:34]Write i2c OK [07:05:34]MH_I2C_Read... [07:05:34]Read from MH i2c: F0 [07:05:34]MH_I2C_Read... [07:05:34]Read from MH i2c: F0 09 00 [07:05:34]MH_I2C_Read... [07:05:34]Read from MH i2c: F0 09 00 B9 29 00 41 FD 15 67 A0 18 CA 66 7C [07:05:34]GetLastDocTimeStamp 1729493992 [07:05:34]current date 1729494337 [07:05:34]FM_GetShiftState [07:05:34]SAM_PROTO_GetShiftState [07:05:34]wFMCommunicate request_size=4 [07:05:34]MH_SAM_APDU [07:05:34]CAPDU: 80 13 01 00 [07:05:34]Write to MH i2c: E2 08 00 BA 29 80 13 01 00 00 00 00 00 60 [07:05:34]Write i2c OK [07:05:34]MH_I2C_Read... [07:05:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:05:34]Read from MH i2c: E2 [07:05:34]MH_I2C_Read... [07:05:34]Read from MH i2c: E2 0E 00 [07:05:34]MH_I2C_Read... [07:05:34]Read from MH i2c: E2 0E 00 BA 29 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 BF [07:05:34]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [07:05:34]wFMCommunicate OK [07:05:34]SAM_PROTO_GetShiftState done [07:05:34]FM_GetShiftState done [07:05:34]opened in 1729469754 [07:05:34]opened+sec_in_day 1729556154 [07:05:34]quantity*price = 50041 [07:05:34]sum+1 = 50042 [07:05:34]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 39 21.10.2024 07:05 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 187575 ФПД: 140223344179477 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T070537&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187575&fm=140223344179477&tin=02508201610067®Number=0000000000100030&sum=50000 [07:05:35]StoreToDocumentArchive [07:05:35]shift 460 fd 187575 [07:05:35]save to /storage/0460/doc_00187575 [07:05:35]save last doc name /storage/0460/doc_00187575 to /storage/kkm_last_doc_name [07:05:35]save OK [07:05:35]Clear old archive folders... [07:05:35]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:05:35]tlvbuf is B6DDA010 [07:05:35]SAM_PROTO_ClearQueue [07:05:35]wFMCommunicate request_size=4 [07:05:35]MH_SAM_APDU [07:05:35]CAPDU: 80 09 00 00 [07:05:35]Write to MH i2c: E2 08 00 C7 29 80 09 00 00 00 00 00 00 62 [07:05:35]Write i2c OK [07:05:35]MH_I2C_Read... [07:05:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:05:35]Read from MH i2c: E2 [07:05:35]MH_I2C_Read... [07:05:35]Read from MH i2c: E2 03 00 [07:05:35]MH_I2C_Read... [07:05:35]Read from MH i2c: E2 03 00 C7 29 00 90 00 64 [07:05:35]RAPDU: 90 00 [07:05:35]wFMCommunicate OK [07:05:35]SAM_PROTO_ClearQueue done [07:05:35]KKMCreateOFDPacket [07:05:35]OFDProtocolAddRootSTLVToBuf [07:05:35]FM_MakeSignedData [07:05:35]FM_MakeSignedData [07:05:35]SAM_PROTO_SignData [07:05:35]wFMCommunicate request_size=4 [07:05:35]MH_SAM_APDU [07:05:35]CAPDU: 80 0D 01 02 [07:05:35]Write to MH i2c: E2 08 00 C8 29 80 0D 01 02 00 00 00 00 6A [07:05:35]Write i2c OK [07:05:35]MH_I2C_Read... [07:05:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:05:35]Read from MH i2c: E2 [07:05:35]MH_I2C_Read... [07:05:35]Read from MH i2c: E2 03 00 [07:05:35]MH_I2C_Read... [07:05:35]Read from MH i2c: E2 03 00 C8 29 00 90 00 65 [07:05:35]RAPDU: 90 00 [07:05:35]wFMCommunicate OK [07:05:35]wFMCommunicate request_size=255 [07:05:35]MH_SAM_APDU [07:05: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 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 41 FD 15 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 B7 DC 02 00 35 04 06 00 7F [07:05:35]Write to MH i2c: E2 02 01 C9 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 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 41 FD 15 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 B7 DC 02 00 35 04 06 00 7F 00 00 9F [07:05:35]Write i2c OK [07:05:35]MH_I2C_Read... [07:05:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:05:35]Read from MH i2c: E2 [07:05:35]MH_I2C_Read... [07:05:35]Read from MH i2c: E2 03 00 [07:05:35]MH_I2C_Read... [07:05:35]Read from MH i2c: E2 03 00 C9 29 00 90 00 66 [07:05:35]RAPDU: 90 00 [07:05:35]wFMCommunicate OK [07:05:35]wFMCommunicate request_size=10 [07:05:35]MH_SAM_APDU [07:05:35]CAPDU: 80 0D 02 02 05 88 4A 9E 79 15 [07:05:35]Write to MH i2c: E2 0D 00 CA 29 80 0D 02 02 05 00 88 4A 9E 79 15 00 00 75 [07:05:35]Write i2c OK [07:05:35]MH_I2C_Read... [07:05:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:05:35]Read from MH i2c: E2 [07:05:35]MH_I2C_Read... [07:05:35]Read from MH i2c: E2 03 00 [07:05:35]MH_I2C_Read... [07:05:35]Read from MH i2c: E2 03 00 CA 29 00 90 00 67 [07:05:35]RAPDU: 90 00 [07:05:35]wFMCommunicate OK [07:05:35]wFMCommunicate request_size=4 [07:05:35]MH_SAM_APDU [07:05:35]CAPDU: 80 0D 03 02 [07:05:35]Write to MH i2c: E2 08 00 CB 29 80 0D 03 02 00 00 00 00 6F [07:05:35]Write i2c OK [07:05:35]MH_I2C_Read... [07:05:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:05:35]Read from MH i2c: E2 [07:05:35]MH_I2C_Read... [07:05:35]Read from MH i2c: E2 0B 00 [07:05:35]MH_I2C_Read... [07:05:35]Read from MH i2c: E2 0B 00 CB 29 00 48 E8 5E 05 1C B2 FF B7 90 00 87 [07:05:35]RAPDU: 48 E8 5E 05 1C B2 FF B7 90 00 [07:05:35]wFMCommunicate OK [07:05:35]SAM_PROTO_SignData done [07:05:35]FM_MakeSignedData done [07:05:35]CreateOFDProtocolMessage [07:05:35]wFMCommunicate request_size=4 [07:05:35]MH_SAM_APDU [07:05:35]CAPDU: 80 11 00 00 [07:05:35]Write to MH i2c: E2 08 00 CC 29 80 11 00 00 00 00 00 00 6F [07:05:35]Write i2c OK [07:05:35]MH_I2C_Read... [07:05:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:05:35]Read from MH i2c: E2 [07:05:35]MH_I2C_Read... [07:05:35]Read from MH i2c: E2 17 00 [07:05:35]MH_I2C_Read... [07:05:35]Read from MH i2c: E2 17 00 CC 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 BD [07:05:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [07:05:35]wFMCommunicate OK [07:05:35]CreateOFDProtocolMessage done [07:05:35]OFDSenderStorePacket 187575 [07:05:35]StoreOFDPacket docnum=187575 [07:05:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 4F 2B 07 01 C3 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 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 41 FD 15 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 B7 DC 02 00 35 04 06 00 7F 88 4A 9E 79 15 48 E8 5E 05 1C B2 FF B7 [07:05:35]CheckFolder [07:05:35]dirname=/storage/ofd_packets [07:05:35]CheckFolder done [07:05:35]ProducePacketName [07:05:35]name=ofd_packets/00187575 [07:05:35]NVStorageSaveData ofd_packets/00187575 [07:05:35]File name is /storage/ofd_packets/00187575 [07:05:35]Write 301 bytes [07:05:35]NVStorageSaveData done [07:05:35]OFDSenderStorePacket done [07:05:35]KKMCreateOFDPacket done [07:05:35]NVStorageSaveData kkm_last_timestamp [07:05:35]File name is /storage/kkm_last_timestamp [07:05:35]Write 4 bytes [07:05:35]NVStorageSaveData done [07:05:35]ExternCall_PrintAddStr [07:05:35]wPrintStart [07:05:35]Write to MH i2c: 01 00 00 CD 29 F6 [07:05:35]Write i2c OK [07:05:35]MH_I2C_Read... [07:05:35]Read from MH i2c: 01 [07:05:35]MH_I2C_Read... [07:05:35]Read from MH i2c: 01 07 00 [07:05:35]MH_I2C_Read... [07:05:35]Read from MH i2c: 01 07 00 CD 29 00 00 00 00 00 FF 0F 0B [07:05:35]RasterBufferAndPrint [07:05:35]line Счет N : (1)209626 [07:05:35]line ИНН: 02508201610067 [07:05:35]line Контрольно-Кассовый Чек [07:05:35]line ПРОДАЖА [07:05:35]line ТРК (МРК, ГНК) : 32 [07:05:35]line Товар: 2710124130 [07:05:35]line Аи-92-К-3 [07:05:35]line 7.480 * 66.90 [07:05:35]line = 500.41 [07:05:35]line НДС 12% НСП 1% [07:05:35]line > о реализуемом товаре [07:05:35]line ОКРУГЛЕНИЕ: -0.41 [07:05:35]line ИТОГО: 500.00 [07:05:35]line Внесено: 500.00 [07:05:35]line СДАЧА: 0.00 [07:05:35]line НСП 1% : 4.43 [07:05:35]line НДС 12% : 53.14 [07:05:35]line Наличными: 500.00 [07:05:35]line Безнал.: 0.00 [07:05:35]line Место: АЗС № 86 "Партнер Нефть" [07:05:35]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [07:05:35]line СНО: Общий режим [07:05:35]line Чек 39 21.10.2024 07:05 [07:05:35]line Смена: 460 ФФД: 1.0 [07:05:35]line ЗНМ: 0300000155 [07:05:35]line РНМ: 0000000000100030 [07:05:35]line Версия ККМ: 001 [07:05:35]line ФМ: 0000000000965340 [07:05:35]line ФД: 187575 [07:05:35]line ФПД: 140223344179477 [07:05:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T070537&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187575&fm=140223344179477&tin=02508201610067®Number=0000000000100030&sum=50000 [07:05:35]written 0, free lines is 4095 [07:05:35]OFD Sender: Processing packet 187575 [packets to send 1062, broken 1061] [07:05:35]ProducePacketName [07:05:35]name=ofd_packets/00187575 [07:05:35]OFD Sender: To server: pG, [07:05:35]CommunicateWithHost lk.salyk.kg:30040 [07:05:35]ConnectInit lk.salyk.kg [07:05:36]Connected sock=10 [07:05:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 4F 2B 07 01 C3 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 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 41 FD 15 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 B7 DC 02 00 35 04 06 00 7F 88 4A 9E 79 15 48 E8 5E 05 1C B2 FF B7 [07:05:36]Write to MH i2c: 01 00 00 F8 29 21 [07:05:36]Write i2c OK [07:05:36]MH_I2C_Read... [07:05:36]Read from MH i2c: 01 [07:05:36]MH_I2C_Read... [07:05:36]Read from MH i2c: 01 07 00 [07:05:36]MH_I2C_Read... [07:05:36]Read from MH i2c: 01 07 00 F8 29 00 00 00 00 00 45 0C 79 [07:05:36]RasterBufferAndPrint [07:05:36]line [07:05:36]line [07:05:36]line [07:05:36]line [07:05:36]line [07:05:36]written 0, free lines is 3146 [07:05:36]MH_Cut [07:05:36]Write to MH i2c: D1 01 00 FF 29 01 FA [07:05:36]Write i2c OK [07:05:36]MH_I2C_Read... [07:05:36]Read from MH i2c: D1 [07:05:36]MH_I2C_Read... [07:05:36]Read from MH i2c: D1 01 00 [07:05:36]MH_I2C_Read... [07:05:36]Read from MH i2c: D1 01 00 FF 29 00 F9 [07:05:36]Write to MH i2c: 01 00 00 00 2A 2A [07:05:36]Write i2c OK [07:05:36]MH_I2C_Read... [07:05:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 D6 FC 47 00 0D C9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 B7 DC 02 00 F4 03 04 00 31 A7 15 67 B6 04 01 00 00 B2 87 1D 1C DD 2A E0 54 [07:05:36]CommunicateWithHost err = 0 [07:05:36]CheckOFDResponse [07:05:36]1017 (14) - 77093643461234 [07:05:36]1041 (16) - 0000000000965340 [07:05:36]1040 (4) - 187575 [07:05:36]1012 (4) - 21.10.2024 00:58 [07:05:36]1206 (1) - 0 [07:05:36]OFD Sender: Remove packet 187575 [07:05:36]ProducePacketName [07:05:36]name=ofd_packets/00187575 [07:05:36]NVStorageDeleteData [07:05:36]OFD Sender: No OFD packet to send [07:05:37]*** Cut start [07:05:37]*** Partial cut [07:05:37]*** CUTSNS_PIN = 1 [07:05:37]*** CUTSNS_PIN = 0 [07:05:37]*** Brake cut motor [07:05:38]Read from MH i2c: 01 [07:05:38]MH_I2C_Read... [07:05:38]*** Stop cut motor [07:05:38]*** Cut end [07:05:38]Read from MH i2c: 01 07 00 [07:05:38]MH_I2C_Read... [07:05:38]Read from MH i2c: 01 07 00 00 2A 00 00 00 00 00 FF 0F 3F [07:05:38]process_action close_receipt done [07:05:38]requested_data is exist [07:05:38]produce_requested_data [07:05:38]requested_item fm.sn is exist - process it [07:05:38]wFMCommunicate request_size=4 [07:05:38]MH_SAM_APDU [07:05:38]CAPDU: 80 11 00 00 [07:05:38]Write to MH i2c: E2 08 00 01 2A 80 11 00 00 00 00 00 00 A5 [07:05:38]Write i2c OK [07:05:38]MH_I2C_Read... [07:05:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:05:38]Read from MH i2c: E2 [07:05:38]MH_I2C_Read... [07:05:38]Read from MH i2c: E2 17 00 [07:05:38]MH_I2C_Read... [07:05:38]Read from MH i2c: E2 17 00 01 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 F3 [07:05:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [07:05:38]wFMCommunicate OK [07:05:38]requested_item fd.num is exist - process it [07:05:38]SAM_PROTO_GetFieldsCounters [07:05:38]wFMCommunicate request_size=4 [07:05:38]MH_SAM_APDU [07:05:38]CAPDU: 80 13 00 00 [07:05:38]Write to MH i2c: E2 08 00 02 2A 80 13 00 00 00 00 00 00 A8 [07:05:38]Write i2c OK [07:05:38]MH_I2C_Read... [07:05:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:05:38]Read from MH i2c: E2 [07:05:38]MH_I2C_Read... [07:05:38]Read from MH i2c: E2 62 00 [07:05:38]MH_I2C_Read... [07:05:38]Read from MH i2c: E2 62 00 02 2A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 B7 DC 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 27 00 00 00 5E 04 04 00 27 00 00 00 57 04 04 00 28 00 00 00 19 04 04 00 00 00 00 00 90 00 86 [07:05:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 B7 DC 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 27 00 00 00 5E 04 04 00 27 00 00 00 57 04 04 00 28 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:05:38]wFMCommunicate OK [07:05:38]SAM_PROTO_GetFieldsCounters done [07:05:38]requested_item shift.num is exist - process it [07:05:38]requested_item shift.opened is exist - process it [07:05:38]req_shift_opened [07:05:38]FM_GetShiftState [07:05:38]SAM_PROTO_GetShiftState [07:05:38]wFMCommunicate request_size=4 [07:05:38]MH_SAM_APDU [07:05:38]CAPDU: 80 13 01 00 [07:05:38]Write to MH i2c: E2 08 00 03 2A 80 13 01 00 00 00 00 00 AA [07:05:38]Write i2c OK [07:05:38]MH_I2C_Read... [07:05:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:05:38]Read from MH i2c: E2 [07:05:38]MH_I2C_Read... [07:05:38]Read from MH i2c: E2 0E 00 [07:05:38]MH_I2C_Read... [07:05:38]Read from MH i2c: E2 0E 00 03 2A 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 09 [07:05:38]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [07:05:38]wFMCommunicate OK [07:05:38]SAM_PROTO_GetShiftState done [07:05:38]FM_GetShiftState done [07:05:38]req_shift_opened done [07:05:38]requested_item shift.open_date is exist - process it [07:05:38]req_shift_open_date [07:05:38]req_shift_open_date done [07:05:38]produce_requested_data done [07:05:38]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187575,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [07:05:38]process_action_free close_receipt [07:05:38]json_value_free [07:05:38]json_value_free done [07:05:38]process_json_proto returns [07:05:38]Send response to host [07:05:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187575,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [07:05:38]free response buf [07:05:38]execute_script done [07:05:38]execute_script returns [07:05:38]free content buf [07:05:38]Sock 9.Close socket [07:05:38]Sock 9.Thread stoped [07:05:41]OFD Sender: No OFD packet to send [07:05:47]OFD Sender: No OFD packet to send [07:05:52]OFD Sender: No OFD packet to send [07:05:57]OFD Sender: No OFD packet to send [07:06:02]OFD Sender: No OFD packet to send [07:06:07]OFD Sender: No OFD packet to send [07:06:12]OFD Sender: No OFD packet to send [07:06:17]OFD Sender: No OFD packet to send [07:06:22]OFD Sender: No OFD packet to send [07:06:27]OFD Sender: No OFD packet to send [07:06:32]OFD Sender: No OFD packet to send [07:06:37]OFD Sender: No OFD packet to send [07:06:42]OFD Sender: No OFD packet to send [07:06:47]OFD Sender: No OFD packet to send [07:06:52]OFD Sender: No OFD packet to send [07:06:57]OFD Sender: No OFD packet to send [07:07:02]OFD Sender: No OFD packet to send [07:07:07]OFD Sender: No OFD packet to send [07:07:12]OFD Sender: No OFD packet to send [07:07:17]OFD Sender: No OFD packet to send [07:07:22]OFD Sender: No OFD packet to send [07:07:27]OFD Sender: No OFD packet to send [07:07:32]OFD Sender: No OFD packet to send [07:07:37]OFD Sender: No OFD packet to send [07:07:42]OFD Sender: No OFD packet to send [07:07:47]OFD Sender: No OFD packet to send [07:07:52]OFD Sender: No OFD packet to send [07:07:57]OFD Sender: No OFD packet to send [07:08:02]OFD Sender: No OFD packet to send [07:08:07]OFD Sender: No OFD packet to send [07:08:12]OFD Sender: No OFD packet to send [07:08:17]OFD Sender: No OFD packet to send [07:08:22]OFD Sender: No OFD packet to send [07:08:27]OFD Sender: No OFD packet to send [07:08:32]OFD Sender: No OFD packet to send [07:08:37]OFD Sender: No OFD packet to send [07:08:42]OFD Sender: No OFD packet to send [07:08:47]OFD Sender: No OFD packet to send [07:08:52]OFD Sender: No OFD packet to send [07:08:57]OFD Sender: No OFD packet to send [07:09:02]OFD Sender: No OFD packet to send [07:09:07]OFD Sender: No OFD packet to send [07:09:12]OFD Sender: No OFD packet to send [07:09:17]OFD Sender: No OFD packet to send [07:09:22]OFD Sender: No OFD packet to send [07:09:27]OFD Sender: No OFD packet to send [07:09:32]OFD Sender: No OFD packet to send [07:09:38]OFD Sender: No OFD packet to send [07:09:43]OFD Sender: No OFD packet to send [07:09:48]OFD Sender: No OFD packet to send [07:09:53]OFD Sender: No OFD packet to send [07:09:58]OFD Sender: No OFD packet to send [07:10:03]OFD Sender: No OFD packet to send [07:10:08]OFD Sender: No OFD packet to send [07:10:13]OFD Sender: No OFD packet to send [07:10:18]OFD Sender: No OFD packet to send [07:10:23]OFD Sender: No OFD packet to send [07:10:28]OFD Sender: No OFD packet to send [07:10:33]OFD Sender: No OFD packet to send [07:10:38]OFD Sender: No OFD packet to send [07:10:43]OFD Sender: No OFD packet to send [07:10:48]OFD Sender: No OFD packet to send [07:10:53]OFD Sender: No OFD packet to send [07:10:58]OFD Sender: No OFD packet to send [07:11:03]OFD Sender: No OFD packet to send [07:11:08]OFD Sender: No OFD packet to send [07:11:13]OFD Sender: No OFD packet to send [07:11:18]OFD Sender: No OFD packet to send [07:11:23]OFD Sender: No OFD packet to send [07:11:28]OFD Sender: No OFD packet to send [07:11:33]OFD Sender: No OFD packet to send [07:11:38]OFD Sender: No OFD packet to send [07:11:43]OFD Sender: No OFD packet to send [07:11:48]OFD Sender: No OFD packet to send [07:11:53]OFD Sender: No OFD packet to send [07:11:58]OFD Sender: No OFD packet to send [07:12:03]OFD Sender: No OFD packet to send [07:12:08]OFD Sender: No OFD packet to send [07:12:13]OFD Sender: No OFD packet to send [07:12:18]OFD Sender: No OFD packet to send [07:12:23]OFD Sender: No OFD packet to send [07:12:28]OFD Sender: No OFD packet to send [07:12:33]OFD Sender: No OFD packet to send [07:12:38]OFD Sender: No OFD packet to send [07:12:43]OFD Sender: No OFD packet to send [07:12:48]OFD Sender: No OFD packet to send [07:12:53]OFD Sender: No OFD packet to send [07:12:58]OFD Sender: No OFD packet to send [07:13:03]OFD Sender: No OFD packet to send [07:13:08]OFD Sender: No OFD packet to send [07:13:13]OFD Sender: No OFD packet to send [07:13:18]OFD Sender: No OFD packet to send [07:13: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:08]accept exits with 8 [07:14:08]New connection [07:14:08]New thread 3067157860 created [07:14:08]Thread 3067014500 joined [07:14:08]Waiting for new connection... [07:14:08] Sock 8.Parse request [07:14:08]Sock 8.Check first char [07:14:08]Sock 8.First char is OK [07:14:08]request: POST /json_proto HTTP/1.0 [07:14:08]Method: POST [07:14:08]URL: /json_proto [07:14:08]Method is POST - this is cgi request [07:14:08]url: /json_proto [07:14:08]query_string will be loaded in cgi processing [07:14:08]execute_cgi json_proto POST (null) [07:14:08]execute_cgi path=json_proto method=POST [07:14:08]POST find Content-Length [07:14:08]Host: 172.17.42.131:8080 [07:14:08]Content-Length: 682 [07:14:08]Content-Type: application/json [07:14:08] [07:14:08]POST finish read [07:14:08]Found Content-Length = 682 [07:14:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209627", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 29.900, "sum" : 2000.31, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:14:08]execute_script... [07:14: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)209627", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 29.900, "sum" : 2000.31, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:14:08]POST & json_proto [07:14:08]process_json_proto [07:14:08]json parsed OK: [07:14:08]protocol is kg_v1.0 [07:14:08]action value=close_receipt [07:14:08]process_action close_receipt [07:14:08]cmd_close_receipt [07:14:08]MH_GetDate [07:14:08]Write to MH i2c: F0 00 00 04 2A 1D [07:14:08]Write i2c OK [07:14:08]MH_I2C_Read... [07:14:08]Read from MH i2c: F0 [07:14:08]MH_I2C_Read... [07:14:08]Read from MH i2c: F0 09 00 [07:14:08]MH_I2C_Read... [07:14:08]Read from MH i2c: F0 09 00 04 2A 00 43 FF 15 67 A0 18 CA 66 CC [07:14:08]GetLastDocTimeStamp 1729494337 [07:14:08]current date 1729494851 [07:14:08]FM_GetShiftState [07:14:08]SAM_PROTO_GetShiftState [07:14:08]wFMCommunicate request_size=4 [07:14:08]MH_SAM_APDU [07:14:08]CAPDU: 80 13 01 00 [07:14:08]Write to MH i2c: E2 08 00 05 2A 80 13 01 00 00 00 00 00 AC [07:14:08]Write i2c OK [07:14:08]MH_I2C_Read... [07:14:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:14:08]Read from MH i2c: E2 [07:14:08]MH_I2C_Read... [07:14:08]Read from MH i2c: E2 0E 00 [07:14:08]MH_I2C_Read... [07:14:08]Read from MH i2c: E2 0E 00 05 2A 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 0B [07:14:08]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [07:14:08]wFMCommunicate OK [07:14:08]SAM_PROTO_GetShiftState done [07:14:08]FM_GetShiftState done [07:14:08]opened in 1729469754 [07:14:08]opened+sec_in_day 1729556154 [07:14:08]quantity*price = 200031 [07:14:08]sum+1 = 200032 [07:14:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.31 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 40 21.10.2024 07:14 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 187576 ФПД: 20698735909594 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T071411&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187576&fm=20698735909594&tin=02508201610067®Number=0000000000100030&sum=200000 [07:14:09]StoreToDocumentArchive [07:14:09]shift 460 fd 187576 [07:14:09]save to /storage/0460/doc_00187576 [07:14:09]save last doc name /storage/0460/doc_00187576 to /storage/kkm_last_doc_name [07:14:09]save OK [07:14:09]Clear old archive folders... [07:14:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:14:09]tlvbuf is B6DDA010 [07:14:09]SAM_PROTO_ClearQueue [07:14:09]wFMCommunicate request_size=4 [07:14:09]MH_SAM_APDU [07:14:09]CAPDU: 80 09 00 00 [07:14:09]Write to MH i2c: E2 08 00 12 2A 80 09 00 00 00 00 00 00 AE [07:14:09]Write i2c OK [07:14:09]MH_I2C_Read... [07:14:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:14:09]Read from MH i2c: E2 [07:14:09]MH_I2C_Read... [07:14:09]Read from MH i2c: E2 03 00 [07:14:09]MH_I2C_Read... [07:14:09]Read from MH i2c: E2 03 00 12 2A 00 90 00 B0 [07:14:09]RAPDU: 90 00 [07:14:09]wFMCommunicate OK [07:14:09]SAM_PROTO_ClearQueue done [07:14:09]KKMCreateOFDPacket [07:14:09]OFDProtocolAddRootSTLVToBuf [07:14:09]FM_MakeSignedData [07:14:09]FM_MakeSignedData [07:14:09]SAM_PROTO_SignData [07:14:09]wFMCommunicate request_size=4 [07:14:09]MH_SAM_APDU [07:14:09]CAPDU: 80 0D 01 02 [07:14:09]Write to MH i2c: E2 08 00 13 2A 80 0D 01 02 00 00 00 00 B6 [07:14:09]Write i2c OK [07:14:09]MH_I2C_Read... [07:14:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:14:09]Read from MH i2c: E2 [07:14:09]MH_I2C_Read... [07:14:09]Read from MH i2c: E2 03 00 [07:14:09]MH_I2C_Read... [07:14:09]Read from MH i2c: E2 03 00 13 2A 00 90 00 B1 [07:14:09]RAPDU: 90 00 [07:14:09]wFMCommunicate OK [07:14:09]wFMCommunicate request_size=255 [07:14:09]MH_SAM_APDU [07:14:09]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 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 28 00 00 00 F4 03 04 00 43 FF 15 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 B8 DC 02 00 35 04 06 00 12 [07:14:09]Write to MH i2c: E2 02 01 14 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 33 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 28 00 00 00 F4 03 04 00 43 FF 15 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 B8 DC 02 00 35 04 06 00 12 00 00 C6 [07:14:09]Write i2c OK [07:14:09]MH_I2C_Read... [07:14:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:14:09]Read from MH i2c: E2 [07:14:09]MH_I2C_Read... [07:14:09]Read from MH i2c: E2 03 00 [07:14:09]MH_I2C_Read... [07:14:09]Read from MH i2c: E2 03 00 14 2A 00 90 00 B2 [07:14:09]RAPDU: 90 00 [07:14:09]wFMCommunicate OK [07:14:09]wFMCommunicate request_size=10 [07:14:09]MH_SAM_APDU [07:14:09]CAPDU: 80 0D 02 02 05 D3 4C CD 1A DA [07:14:09]Write to MH i2c: E2 0D 00 15 2A 80 0D 02 02 05 00 D3 4C CD 1A DA 00 00 A3 [07:14:09]Write i2c OK [07:14:09]MH_I2C_Read... [07:14:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:14:09]Read from MH i2c: E2 [07:14:09]MH_I2C_Read... [07:14:09]Read from MH i2c: E2 03 00 [07:14:09]MH_I2C_Read... [07:14:09]Read from MH i2c: E2 03 00 15 2A 00 90 00 B3 [07:14:09]RAPDU: 90 00 [07:14:09]wFMCommunicate OK [07:14:09]wFMCommunicate request_size=4 [07:14:09]MH_SAM_APDU [07:14:09]CAPDU: 80 0D 03 02 [07:14:09]Write to MH i2c: E2 08 00 16 2A 80 0D 03 02 00 00 00 00 BB [07:14:09]Write i2c OK [07:14:09]MH_I2C_Read... [07:14:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:14:09]Read from MH i2c: E2 [07:14:09]MH_I2C_Read... [07:14:09]Read from MH i2c: E2 0B 00 [07:14:09]MH_I2C_Read... [07:14:09]Read from MH i2c: E2 0B 00 16 2A 00 DC 81 89 D3 D0 9B CD 12 90 00 BF [07:14:09]RAPDU: DC 81 89 D3 D0 9B CD 12 90 00 [07:14:09]wFMCommunicate OK [07:14:09]SAM_PROTO_SignData done [07:14:09]FM_MakeSignedData done [07:14:09]CreateOFDProtocolMessage [07:14:09]wFMCommunicate request_size=4 [07:14:09]MH_SAM_APDU [07:14:09]CAPDU: 80 11 00 00 [07:14:09]Write to MH i2c: E2 08 00 17 2A 80 11 00 00 00 00 00 00 BB [07:14:09]Write i2c OK [07:14:09]MH_I2C_Read... [07:14:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:14:10]Read from MH i2c: E2 [07:14:10]MH_I2C_Read... [07:14:10]Read from MH i2c: E2 17 00 [07:14:10]MH_I2C_Read... [07:14:10]Read from MH i2c: E2 17 00 17 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 09 [07:14:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [07:14:10]wFMCommunicate OK [07:14:10]CreateOFDProtocolMessage done [07:14:10]OFDSenderStorePacket 187576 [07:14:10]StoreOFDPacket docnum=187576 [07:14:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 B2 9E 07 01 15 C3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 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 28 00 00 00 F4 03 04 00 43 FF 15 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 B8 DC 02 00 35 04 06 00 12 D3 4C CD 1A DA DC 81 89 D3 D0 9B CD 12 [07:14:10]CheckFolder [07:14:10]dirname=/storage/ofd_packets [07:14:10]CheckFolder done [07:14:10]ProducePacketName [07:14:10]name=ofd_packets/00187576 [07:14:10]NVStorageSaveData ofd_packets/00187576 [07:14:10]File name is /storage/ofd_packets/00187576 [07:14:10]Write 301 bytes [07:14:10]NVStorageSaveData done [07:14:10]OFDSenderStorePacket done [07:14:10]KKMCreateOFDPacket done [07:14:10]NVStorageSaveData kkm_last_timestamp [07:14:10]File name is /storage/kkm_last_timestamp [07:14:10]Write 4 bytes [07:14:10]NVStorageSaveData done [07:14:10]ExternCall_PrintAddStr [07:14:10]wPrintStart [07:14:10]Write to MH i2c: 01 00 00 18 2A 42 [07:14:10]Write i2c OK [07:14:10]MH_I2C_Read... [07:14:10]Read from MH i2c: 01 [07:14:10]MH_I2C_Read... [07:14:10]Read from MH i2c: 01 07 00 [07:14:10]MH_I2C_Read... [07:14:10]Read from MH i2c: 01 07 00 18 2A 00 00 00 00 00 FF 0F 57 [07:14:10]RasterBufferAndPrint [07:14:10]line Счет N : (1)209627 [07:14:10]line ИНН: 02508201610067 [07:14:10]line Контрольно-Кассовый Чек [07:14:10]line ПРОДАЖА [07:14:10]line ТРК (МРК, ГНК) : 32 [07:14:10]line Товар: 2710124130 [07:14:10]line Аи-92-К-3 [07:14:10]line 29.900 * 66.90 [07:14:10]line = 2000.31 [07:14:10]line НДС 12% НСП 1% [07:14:10]line > о реализуемом товаре [07:14:10]line ОКРУГЛЕНИЕ: -0.31 [07:14:10]line ИТОГО: 2000.00 [07:14:10]line Внесено: 2000.00 [07:14:10]line СДАЧА: 0.00 [07:14:10]line НСП 1% : 17.70 [07:14:10]line НДС 12% : 212.42 [07:14:10]line Наличными: 2000.00 [07:14:10]line Безнал.: 0.00 [07:14:10]line Место: АЗС № 86 "Партнер Нефть" [07:14:10]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [07:14:10]line СНО: Общий режим [07:14:10]line Чек 40 21.10.2024 07:14 [07:14:10]line Смена: 460 ФФД: 1.0 [07:14:10]line ЗНМ: 0300000155 [07:14:10]line РНМ: 0000000000100030 [07:14:10]line Версия ККМ: 001 [07:14:10]line ФМ: 0000000000965340 [07:14:10]line ФД: 187576 [07:14:10]line ФПД: 20698735909594 [07:14:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T071411&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187576&fm=20698735909594&tin=02508201610067®Number=0000000000100030&sum=200000 [07:14:10]written 0, free lines is 4095 [07:14:10]OFD Sender: Processing packet 187576 [packets to send 1062, broken 1061] [07:14:10]ProducePacketName [07:14:10]name=ofd_packets/00187576 [07:14:10]OFD Sender: To server: pG, [07:14:10]CommunicateWithHost lk.salyk.kg:30040 [07:14:10]ConnectInit lk.salyk.kg [07:14:10]Connected sock=10 [07:14:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 B2 9E 07 01 15 C3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 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 28 00 00 00 F4 03 04 00 43 FF 15 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 B8 DC 02 00 35 04 06 00 12 D3 4C CD 1A DA DC 81 89 D3 D0 9B CD 12 [07:14:10]Write to MH i2c: 01 00 00 43 2A 6D [07:14:10]Write i2c OK [07:14:10]MH_I2C_Read... [07:14:10]Read from MH i2c: 01 [07:14:10]MH_I2C_Read... [07:14:10]Read from MH i2c: 01 07 00 [07:14:10]MH_I2C_Read... [07:14:10]Read from MH i2c: 01 07 00 43 2A 00 00 00 00 00 54 0C D4 [07:14:10]RasterBufferAndPrint [07:14:10]line [07:14:10]line [07:14:10]line [07:14:10]line [07:14:10]line [07:14:10]written 0, free lines is 3160 [07:14:10]MH_Cut [07:14:10]Write to MH i2c: D1 01 00 4A 2A 01 46 [07:14:10]Write i2c OK [07:14:10]MH_I2C_Read... [07:14:10]Read from MH i2c: D1 [07:14:10]MH_I2C_Read... [07:14:10]Read from MH i2c: D1 01 00 [07:14:10]MH_I2C_Read... [07:14:10]Read from MH i2c: D1 01 00 4A 2A 00 45 [07:14:10]Write to MH i2c: 01 00 00 4B 2A 75 [07:14:10]Write i2c OK [07:14:10]MH_I2C_Read... [07:14:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 88 F7 47 00 3B 9E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 B8 DC 02 00 F4 03 04 00 33 A9 15 67 B6 04 01 00 00 02 2F 83 9F 70 AA 58 42 [07:14:10]CommunicateWithHost err = 0 [07:14:10]CheckOFDResponse [07:14:10]1017 (14) - 77093643461234 [07:14:10]1041 (16) - 0000000000965340 [07:14:10]1040 (4) - 187576 [07:14:10]1012 (4) - 21.10.2024 01:06 [07:14:10]1206 (1) - 0 [07:14:10]OFD Sender: Remove packet 187576 [07:14:10]ProducePacketName [07:14:10]name=ofd_packets/00187576 [07:14:10]NVStorageDeleteData [07:14:11]OFD Sender: No OFD packet to send [07:14:11]*** Cut start [07:14:11]*** Partial cut [07:14:11]*** CUTSNS_PIN = 1 [07:14:11]*** CUTSNS_PIN = 0 [07:14:12]*** Brake cut motor [07:14:12]Read from MH i2c: 01 [07:14:12]MH_I2C_Read... [07:14:12]*** Stop cut motor [07:14:12]*** Cut end [07:14:12]Read from MH i2c: 01 07 00 [07:14:12]MH_I2C_Read... [07:14:12]Read from MH i2c: 01 07 00 4B 2A 00 00 00 00 00 FF 0F 8A [07:14:12]process_action close_receipt done [07:14:12]requested_data is exist [07:14:12]produce_requested_data [07:14:12]requested_item fm.sn is exist - process it [07:14:12]wFMCommunicate request_size=4 [07:14:12]MH_SAM_APDU [07:14:12]CAPDU: 80 11 00 00 [07:14:12]Write to MH i2c: E2 08 00 4C 2A 80 11 00 00 00 00 00 00 F0 [07:14:12]Write i2c OK [07:14:12]MH_I2C_Read... [07:14:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:14:12]Read from MH i2c: E2 [07:14:12]MH_I2C_Read... [07:14:12]Read from MH i2c: E2 17 00 [07:14:12]MH_I2C_Read... [07:14:12]Read from MH i2c: E2 17 00 4C 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 3E [07:14:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [07:14:12]wFMCommunicate OK [07:14:12]requested_item fd.num is exist - process it [07:14:12]SAM_PROTO_GetFieldsCounters [07:14:12]wFMCommunicate request_size=4 [07:14:12]MH_SAM_APDU [07:14:12]CAPDU: 80 13 00 00 [07:14:12]Write to MH i2c: E2 08 00 4D 2A 80 13 00 00 00 00 00 00 F3 [07:14:12]Write i2c OK [07:14:12]MH_I2C_Read... [07:14:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:14:12]Read from MH i2c: E2 [07:14:12]MH_I2C_Read... [07:14:12]Read from MH i2c: E2 62 00 [07:14:12]MH_I2C_Read... [07:14:12]Read from MH i2c: E2 62 00 4D 2A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 B8 DC 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 28 00 00 00 5E 04 04 00 28 00 00 00 57 04 04 00 29 00 00 00 19 04 04 00 00 00 00 00 90 00 D5 [07:14:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 B8 DC 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 28 00 00 00 5E 04 04 00 28 00 00 00 57 04 04 00 29 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:14:12]wFMCommunicate OK [07:14:12]SAM_PROTO_GetFieldsCounters done [07:14:12]requested_item shift.num is exist - process it [07:14:12]requested_item shift.opened is exist - process it [07:14:12]req_shift_opened [07:14:12]FM_GetShiftState [07:14:12]SAM_PROTO_GetShiftState [07:14:12]wFMCommunicate request_size=4 [07:14:12]MH_SAM_APDU [07:14:12]CAPDU: 80 13 01 00 [07:14:12]Write to MH i2c: E2 08 00 4E 2A 80 13 01 00 00 00 00 00 F5 [07:14:12]Write i2c OK [07:14:12]MH_I2C_Read... [07:14:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:14:12]Read from MH i2c: E2 [07:14:12]MH_I2C_Read... [07:14:12]Read from MH i2c: E2 0E 00 [07:14:12]MH_I2C_Read... [07:14:12]Read from MH i2c: E2 0E 00 4E 2A 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 54 [07:14:12]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [07:14:12]wFMCommunicate OK [07:14:12]SAM_PROTO_GetShiftState done [07:14:12]FM_GetShiftState done [07:14:12]req_shift_opened done [07:14:12]requested_item shift.open_date is exist - process it [07:14:12]req_shift_open_date [07:14:12]req_shift_open_date done [07:14:12]produce_requested_data done [07:14:12]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187576,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [07:14:12]process_action_free close_receipt [07:14:12]json_value_free [07:14:12]json_value_free done [07:14:12]process_json_proto returns [07:14:12]Send response to host [07:14:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187576,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [07:14:12]free response buf [07:14:12]execute_script done [07:14:12]execute_script returns [07:14:12]free content buf [07:14:12]Sock 8.Close socket [07:14:12]Sock 8.Thread stoped [07:14:16]OFD Sender: No OFD packet to send [07:14:21]OFD Sender: No OFD packet to send [07:14:26]OFD Sender: No OFD packet to send [07:14:31]OFD Sender: No OFD packet to send [07:14:36]OFD Sender: No OFD packet to send [07:14:41]OFD Sender: No OFD packet to send [07:14:46]OFD Sender: No OFD packet to send [07:14:51]OFD Sender: No OFD packet to send [07:14:56]OFD Sender: No OFD packet to send [07:15:01]OFD Sender: No OFD packet to send [07:15:06]OFD Sender: No OFD packet to send [07:15:11]OFD Sender: No OFD packet to send [07:15:16]OFD Sender: No OFD packet to send [07:15:21]OFD Sender: No OFD packet to send [07:15:26]OFD Sender: No OFD packet to send [07:15:31]OFD Sender: No OFD packet to send [07:15:36]OFD Sender: No OFD packet to send [07:15:41]OFD Sender: No OFD packet to send [07:15:46]OFD Sender: No OFD packet to send [07:15:51]OFD Sender: No OFD packet to send [07:15:56]OFD Sender: No OFD packet to send [07:16:01]OFD Sender: No OFD packet to send [07:16:06]OFD Sender: No OFD packet to send [07:16:11]OFD Sender: No OFD packet to send [07:16:16]OFD Sender: No OFD packet to send [07:16:21]OFD Sender: No OFD packet to send [07:16:26]OFD Sender: No OFD packet to send [07:16:31]OFD Sender: No OFD packet to send [07:16:36]OFD Sender: No OFD packet to send [07:16:41]OFD Sender: No OFD packet to send [07:16:46]OFD Sender: No OFD packet to send [07:16:51]OFD Sender: No OFD packet to send [07:16:56]OFD Sender: No OFD packet to send [07:17:01]OFD Sender: No OFD packet to send [07:17:06]OFD Sender: No OFD packet to send [07:17:11]OFD Sender: No OFD packet to send [07:17:16]OFD Sender: No OFD packet to send [07:17:21]OFD Sender: No OFD packet to send [07:17:27]OFD Sender: No OFD packet to send [07:17:32]OFD Sender: No OFD packet to send [07:17:37]OFD Sender: No OFD packet to send [07:17:42]OFD Sender: No OFD packet to send [07:17:47]OFD Sender: No OFD packet to send [07:17:52]OFD Sender: No OFD packet to send [07:17:57]OFD Sender: No OFD packet to send [07:18:02]OFD Sender: No OFD packet to send [07:18:07]OFD Sender: No OFD packet to send [07:18:12]OFD Sender: No OFD packet to send [07:18:17]OFD Sender: No OFD packet to send [07:18:22]OFD Sender: No OFD packet to send [07:18:27]OFD Sender: No OFD packet to send [07:18:32]OFD Sender: No OFD packet to send [07:18:37]OFD Sender: No OFD packet to send [07:18:42]OFD Sender: No OFD packet to send [07:18:47]OFD Sender: No OFD packet to send [07:18:52]OFD Sender: No OFD packet to send [07:18:57]OFD Sender: No OFD packet to send [07:19:02]OFD Sender: No OFD packet to send [07:19:07]OFD Sender: No OFD packet to send [07:19:12]OFD Sender: No OFD packet to send [07:19:17]OFD Sender: No OFD packet to send [07:19:22]OFD Sender: No OFD packet to send [07:19:27]OFD Sender: No OFD packet to send [07:19:32]OFD Sender: No OFD packet to send [07:19:37]OFD Sender: No OFD packet to send [07:19:42]OFD Sender: No OFD packet to send [07:19:47]OFD Sender: No OFD packet to send [07:19:52]OFD Sender: No OFD packet to send [07:19:57]OFD Sender: No OFD packet to send [07:20:02]OFD Sender: No OFD packet to send [07:20:07]OFD Sender: No OFD packet to send [07:20:12]OFD Sender: No OFD packet to send [07:20:17]OFD Sender: No OFD packet to send [07:20:22]OFD Sender: No OFD packet to send [07:20:27]OFD Sender: No OFD packet to send [07:20:32]OFD Sender: No OFD packet to send [07:20:37]OFD Sender: No OFD packet to send [07:20:42]OFD Sender: No OFD packet to send [07:20:57]OFD Sender: No OFD packet to send [07:21:02]OFD Sender: No OFD packet to send [07:21:07]OFD Sender: No OFD packet to send [07:21:12]OFD Sender: No OFD packet to send [07:21:18]OFD Sender: No OFD packet to send [07:21:23]OFD Sender: No OFD packet to send [07:21:28]OFD Sender: No OFD packet to send [07:21:33]OFD Sender: No OFD packet to send [07:21:38]OFD Sender: No OFD packet to send [07:21:43]OFD Sender: No OFD packet to send [07:21:48]OFD Sender: No OFD packet to send [07:21:53]OFD Sender: No OFD packet to send [07:21:58]OFD Sender: No OFD packet to send [07:22:03]OFD Sender: No OFD packet to send [07:22:08]OFD Sender: No OFD packet to send [07:22:13]OFD Sender: No OFD packet to send [07:22:18]OFD Sender: No OFD packet to send [07:22:23]OFD Sender: No OFD packet to send [07:22:28]OFD Sender: No OFD packet to send [07:22:33]OFD Sender: No OFD packet to send [07:22:38]OFD Sender: No OFD packet to send [07:22:43]OFD Sender: No OFD packet to send [07:22:48]OFD Sender: No OFD packet to send [07:22:53]OFD Sender: No OFD packet to send [07:22:58]OFD Sender: No OFD packet to send [07:23:03]OFD Sender: No OFD packet to send [07:23:05]ConnectInit Can't connect to host [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: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:04]OFD Sender: No OFD packet to send [07:25:09]OFD Sender: No OFD packet to send [07:25:14]OFD Sender: No OFD packet to send [07:25:19]OFD Sender: No OFD packet to send [07:25:24]OFD Sender: No OFD packet to send [07:25:29]OFD Sender: No OFD packet to send [07:25:34]OFD Sender: No OFD packet to send [07:25:39]OFD Sender: No OFD packet to send [07:25:44]OFD Sender: No OFD packet to send [07:25:49]OFD Sender: No OFD packet to send [07:25:54]OFD Sender: No OFD packet to send [07:25:59]OFD Sender: No OFD packet to send [07:26:04]OFD Sender: No OFD packet to send [07:26:09]OFD Sender: No OFD packet to send [07:26:14]OFD Sender: No OFD packet to send [07:26:19]OFD Sender: No OFD packet to send [07:26:24]OFD Sender: No OFD packet to send [07:26:29]OFD Sender: No OFD packet to send [07:26:34]OFD Sender: No OFD packet to send [07:26:39]OFD Sender: No OFD packet to send [07:26:44]OFD Sender: No OFD packet to send [07:26:49]OFD Sender: No OFD packet to send [07:26:54]OFD Sender: No OFD packet to send [07:26:59]OFD Sender: No OFD packet to send [07:27:04]OFD Sender: No OFD packet to send [07:27:09]OFD Sender: No OFD packet to send [07:27:14]OFD Sender: No OFD packet to send [07:27:19]OFD Sender: No OFD packet to send [07:27:24]OFD Sender: No OFD packet to send [07:27:29]OFD Sender: No OFD packet to send [07:27:34]OFD Sender: No OFD packet to send [07:27:39]OFD Sender: No OFD packet to send [07:27:44]OFD Sender: No OFD packet to send [07:27:49]OFD Sender: No OFD packet to send [07:27:54]OFD Sender: No OFD packet to send [07:27:59]OFD Sender: No OFD packet to send [07:28:04]OFD Sender: No OFD packet to send [07:28:09]OFD Sender: No OFD packet to send [07:28:14]OFD Sender: No OFD packet to send [07:28:19]OFD Sender: No OFD packet to send [07:28:24]OFD Sender: No OFD packet to send [07:28:29]OFD Sender: No OFD packet to send [07:28:34]OFD Sender: No OFD packet to send [07:28:39]OFD Sender: No OFD packet to send [07:28:44]OFD Sender: No OFD packet to send [07:28:49]OFD Sender: No OFD packet to send [07:28:55]OFD Sender: No OFD packet to send [07:29:00]OFD Sender: No OFD packet to send [07:29:05]OFD Sender: No OFD packet to send [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: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:29:59]accept exits with 9 [07:29:59]New connection [07:29:59]New thread 3067014500 created [07:29:59]Thread 3067157860 joined [07:29:59]Waiting for new connection... [07:29:59] Sock 9.Parse request [07:29:59]Sock 9.Check first char [07:29:59]Sock 9.First char is OK [07:29:59]request: POST /json_proto HTTP/1.0 [07:29:59]Method: POST [07:29:59]URL: /json_proto [07:29:59]Method is POST - this is cgi request [07:29:59]url: /json_proto [07:29:59]query_string will be loaded in cgi processing [07:29:59]execute_cgi json_proto POST (null) [07:29:59]execute_cgi path=json_proto method=POST [07:29:59]POST find Content-Length [07:29:59]Host: 172.17.42.131:8080 [07:29:59]Content-Length: 682 [07:29:59]Content-Type: application/json [07:29:59] [07:29:59]POST finish read [07:29:59]Found Content-Length = 682 [07:29:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209628", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 20.930, "sum" : 1400.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1400.00, "total" : 1400.00, "payments": [ { "type": 0, "sum" : 1400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:29:59]execute_script... [07:29: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)209628", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 20.930, "sum" : 1400.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1400.00, "total" : 1400.00, "payments": [ { "type": 0, "sum" : 1400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:29:59]POST & json_proto [07:29:59]process_json_proto [07:29:59]json parsed OK: [07:29:59]protocol is kg_v1.0 [07:29:59]action value=close_receipt [07:29:59]process_action close_receipt [07:29:59]cmd_close_receipt [07:29:59]MH_GetDate [07:29:59]Write to MH i2c: F0 00 00 4F 2A 68 [07:29:59]Write i2c OK [07:29:59]MH_I2C_Read... [07:29:59]Read from MH i2c: F0 [07:29:59]MH_I2C_Read... [07:29:59]Read from MH i2c: F0 09 00 [07:29:59]MH_I2C_Read... [07:29:59]Read from MH i2c: F0 09 00 4F 2A 00 FA 02 16 67 A0 18 CA 66 D2 [07:29:59]GetLastDocTimeStamp 1729494851 [07:29:59]current date 1729495802 [07:29:59]FM_GetShiftState [07:29:59]SAM_PROTO_GetShiftState [07:29:59]wFMCommunicate request_size=4 [07:29:59]MH_SAM_APDU [07:29:59]CAPDU: 80 13 01 00 [07:29:59]Write to MH i2c: E2 08 00 50 2A 80 13 01 00 00 00 00 00 F7 [07:29:59]Write i2c OK [07:29:59]MH_I2C_Read... [07:29:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:29:59]Read from MH i2c: E2 [07:29:59]MH_I2C_Read... [07:29:59]Read from MH i2c: E2 0E 00 [07:29:59]MH_I2C_Read... [07:29:59]Read from MH i2c: E2 0E 00 50 2A 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 56 [07:29:59]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [07:29:59]wFMCommunicate OK [07:29:59]SAM_PROTO_GetShiftState done [07:29:59]FM_GetShiftState done [07:29:59]opened in 1729469754 [07:29:59]opened+sec_in_day 1729556154 [07:29:59]quantity*price = 140021 [07:29:59]sum+1 = 140023 [07:29:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1400.00 Внесено: 1400.00 СДАЧА: 0.00 НСП 1% : 12.39 НДС 12% : 148.70 Наличными: 1400.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 41 21.10.2024 07:30 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 187577 ФПД: 138187619437574 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T073002&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187577&fm=138187619437574&tin=02508201610067®Number=0000000000100030&sum=140000 [07:30:00]StoreToDocumentArchive [07:30:00]shift 460 fd 187577 [07:30:00]save to /storage/0460/doc_00187577 [07:30:00]save last doc name /storage/0460/doc_00187577 to /storage/kkm_last_doc_name [07:30:00]save OK [07:30:00]Clear old archive folders... [07:30:00]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:30:00]tlvbuf is 0112ECA0 [07:30:00]SAM_PROTO_ClearQueue [07:30:00]wFMCommunicate request_size=4 [07:30:00]MH_SAM_APDU [07:30:00]CAPDU: 80 09 00 00 [07:30:00]Write to MH i2c: E2 08 00 5D 2A 80 09 00 00 00 00 00 00 F9 [07:30:00]Write i2c OK [07:30:00]MH_I2C_Read... [07:30:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:30:00]Read from MH i2c: E2 [07:30:00]MH_I2C_Read... [07:30:00]Read from MH i2c: E2 03 00 [07:30:00]MH_I2C_Read... [07:30:00]Read from MH i2c: E2 03 00 5D 2A 00 90 00 FB [07:30:00]RAPDU: 90 00 [07:30:00]wFMCommunicate OK [07:30:00]SAM_PROTO_ClearQueue done [07:30:00]KKMCreateOFDPacket [07:30:00]OFDProtocolAddRootSTLVToBuf [07:30:00]FM_MakeSignedData [07:30:00]FM_MakeSignedData [07:30:00]SAM_PROTO_SignData [07:30:00]wFMCommunicate request_size=4 [07:30:00]MH_SAM_APDU [07:30:00]CAPDU: 80 0D 01 02 [07:30:00]Write to MH i2c: E2 08 00 5E 2A 80 0D 01 02 00 00 00 00 01 [07:30:00]Write i2c OK [07:30:00]MH_I2C_Read... [07:30:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:30:00]Read from MH i2c: E2 [07:30:00]MH_I2C_Read... [07:30:00]OFD Sender: No OFD packet to send [07:30:00]Read from MH i2c: E2 03 00 [07:30:00]MH_I2C_Read... [07:30:00]Read from MH i2c: E2 03 00 5E 2A 00 90 00 FC [07:30:00]RAPDU: 90 00 [07:30:00]wFMCommunicate OK [07:30:00]wFMCommunicate request_size=255 [07:30:00]MH_SAM_APDU [07:30:00]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 C2 51 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F6 22 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 22 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 16 3A 00 00 00 00 07 04 06 00 E0 22 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 FA 02 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 B9 DC 02 00 35 04 06 00 7D [07:30:00]Write to MH i2c: E2 02 01 5F 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 33 FF 03 08 00 03 C2 51 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F6 22 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 22 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 16 3A 00 00 00 00 07 04 06 00 E0 22 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 FA 02 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 B9 DC 02 00 35 04 06 00 7D 00 00 0E [07:30:00]Write i2c OK [07:30:00]MH_I2C_Read... [07:30:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:30:00]Read from MH i2c: E2 [07:30:00]MH_I2C_Read... [07:30:00]Read from MH i2c: E2 03 00 [07:30:00]MH_I2C_Read... [07:30:00]Read from MH i2c: E2 03 00 5F 2A 00 90 00 FD [07:30:00]RAPDU: 90 00 [07:30:00]wFMCommunicate OK [07:30:00]wFMCommunicate request_size=10 [07:30:00]MH_SAM_APDU [07:30:00]CAPDU: 80 0D 02 02 05 AE 4F F8 0C 06 [07:30:00]Write to MH i2c: E2 0D 00 60 2A 80 0D 02 02 05 00 AE 4F F8 0C 06 00 00 15 [07:30:00]Write i2c OK [07:30:00]MH_I2C_Read... [07:30:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:30:00]Read from MH i2c: E2 [07:30:00]MH_I2C_Read... [07:30:00]Read from MH i2c: E2 03 00 [07:30:00]MH_I2C_Read... [07:30:00]Read from MH i2c: E2 03 00 60 2A 00 90 00 FE [07:30:00]RAPDU: 90 00 [07:30:00]wFMCommunicate OK [07:30:00]wFMCommunicate request_size=4 [07:30:00]MH_SAM_APDU [07:30:00]CAPDU: 80 0D 03 02 [07:30:00]Write to MH i2c: E2 08 00 61 2A 80 0D 03 02 00 00 00 00 06 [07:30:00]Write i2c OK [07:30:00]MH_I2C_Read... [07:30:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:30:00]Read from MH i2c: E2 [07:30:00]MH_I2C_Read... [07:30:00]Read from MH i2c: E2 0B 00 [07:30:00]MH_I2C_Read... [07:30:00]Read from MH i2c: E2 0B 00 61 2A 00 62 6E 56 76 CB 8A E2 8E 90 00 68 [07:30:00]RAPDU: 62 6E 56 76 CB 8A E2 8E 90 00 [07:30:00]wFMCommunicate OK [07:30:00]SAM_PROTO_SignData done [07:30:00]FM_MakeSignedData done [07:30:00]CreateOFDProtocolMessage [07:30:00]wFMCommunicate request_size=4 [07:30:00]MH_SAM_APDU [07:30:00]CAPDU: 80 11 00 00 [07:30:00]Write to MH i2c: E2 08 00 62 2A 80 11 00 00 00 00 00 00 06 [07:30:00]Write i2c OK [07:30:00]MH_I2C_Read... [07:30:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:30:00]Read from MH i2c: E2 [07:30:00]MH_I2C_Read... [07:30:00]Read from MH i2c: E2 17 00 [07:30:00]MH_I2C_Read... [07:30:00]Read from MH i2c: E2 17 00 62 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 54 [07:30:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [07:30:00]wFMCommunicate OK [07:30:00]CreateOFDProtocolMessage done [07:30:00]OFDSenderStorePacket 187577 [07:30:00]StoreOFDPacket docnum=187577 [07:30:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 45 EB 07 01 77 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 33 FF 03 08 00 03 C2 51 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F6 22 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 22 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 16 3A 00 00 00 00 07 04 06 00 E0 22 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 FA 02 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 B9 DC 02 00 35 04 06 00 7D AE 4F F8 0C 06 62 6E 56 76 CB 8A E2 8E [07:30:00]CheckFolder [07:30:00]dirname=/storage/ofd_packets [07:30:00]CheckFolder done [07:30:00]ProducePacketName [07:30:00]name=ofd_packets/00187577 [07:30:00]NVStorageSaveData ofd_packets/00187577 [07:30:00]File name is /storage/ofd_packets/00187577 [07:30:00]Write 301 bytes [07:30:00]NVStorageSaveData done [07:30:00]OFDSenderStorePacket done [07:30:00]KKMCreateOFDPacket done [07:30:00]NVStorageSaveData kkm_last_timestamp [07:30:00]File name is /storage/kkm_last_timestamp [07:30:00]Write 4 bytes [07:30:00]NVStorageSaveData done [07:30:00]ExternCall_PrintAddStr [07:30:00]wPrintStart [07:30:00]Write to MH i2c: 01 00 00 63 2A 8D [07:30:00]Write i2c OK [07:30:00]MH_I2C_Read... [07:30:00]Read from MH i2c: 01 [07:30:00]MH_I2C_Read... [07:30:00]Read from MH i2c: 01 07 00 [07:30:00]MH_I2C_Read... [07:30:00]Read from MH i2c: 01 07 00 63 2A 00 00 00 00 00 FF 0F A2 [07:30:00]RasterBufferAndPrint [07:30:00]line Счет N : (1)209628 [07:30:00]line ИНН: 02508201610067 [07:30:00]line Контрольно-Кассовый Чек [07:30:00]line ПРОДАЖА [07:30:00]line ТРК (МРК, ГНК) : 32 [07:30:00]line Товар: 2710124130 [07:30:00]line Аи-92-К-3 [07:30:00]line 20.930 * 66.90 [07:30:00]line = 1400.22 [07:30:00]line НДС 12% НСП 1% [07:30:00]line > о реализуемом товаре [07:30:00]line ОКРУГЛЕНИЕ: -0.22 [07:30:00]line ИТОГО: 1400.00 [07:30:00]line Внесено: 1400.00 [07:30:00]line СДАЧА: 0.00 [07:30:00]line НСП 1% : 12.39 [07:30:00]line НДС 12% : 148.70 [07:30:00]line Наличными: 1400.00 [07:30:00]line Безнал.: 0.00 [07:30:00]line Место: АЗС № 86 "Партнер Нефть" [07:30:00]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [07:30:00]line СНО: Общий режим [07:30:00]line Чек 41 21.10.2024 07:30 [07:30:00]line Смена: 460 ФФД: 1.0 [07:30:00]line ЗНМ: 0300000155 [07:30:00]line РНМ: 0000000000100030 [07:30:00]line Версия ККМ: 001 [07:30:00]line ФМ: 0000000000965340 [07:30:00]line ФД: 187577 [07:30:00]line ФПД: 138187619437574 [07:30:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T073002&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187577&fm=138187619437574&tin=02508201610067®Number=0000000000100030&sum=140000 [07:30:00]written 0, free lines is 4095 [07:30:00]OFD Sender: Processing packet 187577 [packets to send 1062, broken 1061] [07:30:00]ProducePacketName [07:30:00]name=ofd_packets/00187577 [07:30:00]OFD Sender: To server: pG, [07:30:00]CommunicateWithHost lk.salyk.kg:30040 [07:30:00]ConnectInit lk.salyk.kg [07:30:01]Connected sock=10 [07:30:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 45 EB 07 01 77 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 33 FF 03 08 00 03 C2 51 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F6 22 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 22 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 16 3A 00 00 00 00 07 04 06 00 E0 22 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 FA 02 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 B9 DC 02 00 35 04 06 00 7D AE 4F F8 0C 06 62 6E 56 76 CB 8A E2 8E [07:30:01]Write to MH i2c: 01 00 00 8E 2A B8 [07:30:01]Write i2c OK [07:30:01]MH_I2C_Read... [07:30:01]Read from MH i2c: 01 [07:30:01]MH_I2C_Read... [07:30:01]Read from MH i2c: 01 07 00 [07:30:01]MH_I2C_Read... [07:30:01]Read from MH i2c: 01 07 00 8E 2A 00 00 00 00 00 47 0C 12 [07:30:01]RasterBufferAndPrint [07:30:01]line [07:30:01]line [07:30:01]line [07:30:01]line [07:30:01]line [07:30:01]written 0, free lines is 3148 [07:30:01]MH_Cut [07:30:01]Write to MH i2c: D1 01 00 95 2A 01 91 [07:30:01]Write i2c OK [07:30:01]MH_I2C_Read... [07:30:01]Read from MH i2c: D1 [07:30:01]MH_I2C_Read... [07:30:01]Read from MH i2c: D1 01 00 [07:30:01]MH_I2C_Read... [07:30:01]Read from MH i2c: D1 01 00 95 2A 00 90 [07:30:01]Write to MH i2c: 01 00 00 96 2A C0 [07:30:01]Write i2c OK [07:30:01]MH_I2C_Read... [07:30:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 35 E0 47 00 02 BE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 B9 DC 02 00 F4 03 04 00 EA AC 15 67 B6 04 01 00 00 F9 5A F8 95 9F 33 39 EF [07:30:01]CommunicateWithHost err = 0 [07:30:01]CheckOFDResponse [07:30:01]1017 (14) - 77093643461234 [07:30:01]1041 (16) - 0000000000965340 [07:30:01]1040 (4) - 187577 [07:30:01]1012 (4) - 21.10.2024 01:22 [07:30:01]1206 (1) - 0 [07:30:01]OFD Sender: Remove packet 187577 [07:30:01]ProducePacketName [07:30:01]name=ofd_packets/00187577 [07:30:01]NVStorageDeleteData [07:30:01]OFD Sender: No OFD packet to send [07:30:02]*** Cut start [07:30:02]*** Partial cut [07:30:02]*** CUTSNS_PIN = 1 [07:30:02]*** CUTSNS_PIN = 0 [07:30:02]*** Brake cut motor [07:30:03]Read from MH i2c: 01 [07:30:03]MH_I2C_Read... [07:30:03]*** Stop cut motor [07:30:03]*** Cut end [07:30:03]Read from MH i2c: 01 07 00 [07:30:03]MH_I2C_Read... [07:30:03]Read from MH i2c: 01 07 00 96 2A 00 00 00 00 00 FF 0F D5 [07:30:03]process_action close_receipt done [07:30:03]requested_data is exist [07:30:03]produce_requested_data [07:30:03]requested_item fm.sn is exist - process it [07:30:03]wFMCommunicate request_size=4 [07:30:03]MH_SAM_APDU [07:30:03]CAPDU: 80 11 00 00 [07:30:03]Write to MH i2c: E2 08 00 97 2A 80 11 00 00 00 00 00 00 3B [07:30:03]Write i2c OK [07:30:03]MH_I2C_Read... [07:30:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:30:03]Read from MH i2c: E2 [07:30:03]MH_I2C_Read... [07:30:03]Read from MH i2c: E2 17 00 [07:30:03]MH_I2C_Read... [07:30:03]Read from MH i2c: E2 17 00 97 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 89 [07:30:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [07:30:03]wFMCommunicate OK [07:30:03]requested_item fd.num is exist - process it [07:30:03]SAM_PROTO_GetFieldsCounters [07:30:03]wFMCommunicate request_size=4 [07:30:03]MH_SAM_APDU [07:30:03]CAPDU: 80 13 00 00 [07:30:03]Write to MH i2c: E2 08 00 98 2A 80 13 00 00 00 00 00 00 3E [07:30:03]Write i2c OK [07:30:03]MH_I2C_Read... [07:30:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:30:03]Read from MH i2c: E2 [07:30:03]MH_I2C_Read... [07:30:03]Read from MH i2c: E2 62 00 [07:30:03]MH_I2C_Read... [07:30:03]Read from MH i2c: E2 62 00 98 2A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 B9 DC 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 29 00 00 00 5E 04 04 00 29 00 00 00 57 04 04 00 2A 00 00 00 19 04 04 00 00 00 00 00 90 00 24 [07:30:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 B9 DC 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 29 00 00 00 5E 04 04 00 29 00 00 00 57 04 04 00 2A 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:30:03]wFMCommunicate OK [07:30:03]SAM_PROTO_GetFieldsCounters done [07:30:03]requested_item shift.num is exist - process it [07:30:03]requested_item shift.opened is exist - process it [07:30:03]req_shift_opened [07:30:03]FM_GetShiftState [07:30:03]SAM_PROTO_GetShiftState [07:30:03]wFMCommunicate request_size=4 [07:30:03]MH_SAM_APDU [07:30:03]CAPDU: 80 13 01 00 [07:30:03]Write to MH i2c: E2 08 00 99 2A 80 13 01 00 00 00 00 00 40 [07:30:03]Write i2c OK [07:30:03]MH_I2C_Read... [07:30:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:30:03]Read from MH i2c: E2 [07:30:03]MH_I2C_Read... [07:30:03]Read from MH i2c: E2 0E 00 [07:30:03]MH_I2C_Read... [07:30:03]Read from MH i2c: E2 0E 00 99 2A 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 9F [07:30:03]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [07:30:03]wFMCommunicate OK [07:30:03]SAM_PROTO_GetShiftState done [07:30:03]FM_GetShiftState done [07:30:03]req_shift_opened done [07:30:03]requested_item shift.open_date is exist - process it [07:30:03]req_shift_open_date [07:30:03]req_shift_open_date done [07:30:03]produce_requested_data done [07:30:03]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187577,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [07:30:03]process_action_free close_receipt [07:30:03]json_value_free [07:30:03]json_value_free done [07:30:03]process_json_proto returns [07:30:03]Send response to host [07:30:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187577,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [07:30:03]free response buf [07:30:03]execute_script done [07:30:03]execute_script returns [07:30:03]free content buf [07:30:03]Sock 9.Close socket [07:30:03]Sock 9.Thread stoped [07:30:06]OFD Sender: No OFD packet to send [07:30:11]OFD Sender: No OFD packet to send [07:30:17]OFD Sender: No OFD packet to send [07:30:22]OFD Sender: No OFD packet to send [07:30:27]OFD Sender: No OFD packet to send [07:30:32]OFD Sender: No OFD packet to send [07:30:37]OFD Sender: No OFD packet to send [07:30:42]OFD Sender: No OFD packet to send [07:30:47]OFD Sender: No OFD packet to send [07:30:47]accept exits with 8 [07:30:47]New connection [07:30:47]New thread 3067157860 created [07:30:47]Thread 3067014500 joined [07:30:47]Waiting for new connection... [07:30:47] Sock 8.Parse request [07:30:47]Sock 8.Check first char [07:30:47]Sock 8.First char is OK [07:30:47]request: POST /json_proto HTTP/1.0 [07:30:47]Method: POST [07:30:47]URL: /json_proto [07:30:47]Method is POST - this is cgi request [07:30:47]url: /json_proto [07:30:47]query_string will be loaded in cgi processing [07:30:47]execute_cgi json_proto POST (null) [07:30:47]execute_cgi path=json_proto method=POST [07:30:47]POST find Content-Length [07:30:47]Host: 172.17.42.131:8080 [07:30:47]Content-Length: 678 [07:30:47]Content-Type: application/json [07:30:47] [07:30:47]POST finish read [07:30:47]Found Content-Length = 678 [07:30:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209629", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "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" ] } } [07:30:47]execute_script... [07: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)209629", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "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" ] } } [07:30:47]POST & json_proto [07:30:47]process_json_proto [07:30:47]json parsed OK: [07:30:47]protocol is kg_v1.0 [07:30:47]action value=close_receipt [07:30:47]process_action close_receipt [07:30:47]cmd_close_receipt [07:30:47]MH_GetDate [07:30:47]Write to MH i2c: F0 00 00 9A 2A B3 [07:30:47]Write i2c OK [07:30:47]MH_I2C_Read... [07:30:47]Read from MH i2c: F0 [07:30:47]MH_I2C_Read... [07:30:47]Read from MH i2c: F0 09 00 [07:30:47]MH_I2C_Read... [07:30:47]Read from MH i2c: F0 09 00 9A 2A 00 2A 03 16 67 A0 18 CA 66 4E [07:30:47]GetLastDocTimeStamp 1729495802 [07:30:47]current date 1729495850 [07:30:47]FM_GetShiftState [07:30:47]SAM_PROTO_GetShiftState [07:30:47]wFMCommunicate request_size=4 [07:30:47]MH_SAM_APDU [07:30:47]CAPDU: 80 13 01 00 [07:30:47]Write to MH i2c: E2 08 00 9B 2A 80 13 01 00 00 00 00 00 42 [07:30:47]Write i2c OK [07:30:47]MH_I2C_Read... [07:30:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:30:47]Read from MH i2c: E2 [07:30:47]MH_I2C_Read... [07:30:47]Read from MH i2c: E2 0E 00 [07:30:47]MH_I2C_Read... [07:30:47]Read from MH i2c: E2 0E 00 9B 2A 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 A1 [07:30:47]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [07:30:47]wFMCommunicate OK [07:30:47]SAM_PROTO_GetShiftState done [07:30:47]FM_GetShiftState done [07:30:47]opened in 1729469754 [07:30:47]opened+sec_in_day 1729556154 [07:30:47]quantity*price = 70044 [07:30:47]sum+1 = 70045 [07:30:47]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 42 21.10.2024 07:30 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 187578 ФПД: 195404731656513 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T073050&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187578&fm=195404731656513&tin=02508201610067®Number=0000000000100030&sum=70000 [07:30:48]StoreToDocumentArchive [07:30:48]shift 460 fd 187578 [07:30:48]save to /storage/0460/doc_00187578 [07:30:48]save last doc name /storage/0460/doc_00187578 to /storage/kkm_last_doc_name [07:30:48]save OK [07:30:48]Clear old archive folders... [07:30:48]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:30:48]tlvbuf is 0112EC90 [07:30:48]SAM_PROTO_ClearQueue [07:30:48]wFMCommunicate request_size=4 [07:30:48]MH_SAM_APDU [07:30:48]CAPDU: 80 09 00 00 [07:30:48]Write to MH i2c: E2 08 00 A8 2A 80 09 00 00 00 00 00 00 44 [07:30:48]Write i2c OK [07:30:48]MH_I2C_Read... [07:30:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:30:48]Read from MH i2c: E2 [07:30:48]MH_I2C_Read... [07:30:48]Read from MH i2c: E2 03 00 [07:30:48]MH_I2C_Read... [07:30:48]Read from MH i2c: E2 03 00 A8 2A 00 90 00 46 [07:30:48]RAPDU: 90 00 [07:30:48]wFMCommunicate OK [07:30:48]SAM_PROTO_ClearQueue done [07:30:48]KKMCreateOFDPacket [07:30:48]OFDProtocolAddRootSTLVToBuf [07:30:48]FM_MakeSignedData [07:30:48]FM_MakeSignedData [07:30:48]SAM_PROTO_SignData [07:30:48]wFMCommunicate request_size=4 [07:30:48]MH_SAM_APDU [07:30:48]CAPDU: 80 0D 01 02 [07:30:48]Write to MH i2c: E2 08 00 A9 2A 80 0D 01 02 00 00 00 00 4C [07:30:48]Write i2c OK [07:30:48]MH_I2C_Read... [07:30:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:30:48]Read from MH i2c: E2 [07:30:48]MH_I2C_Read... [07:30:48]Read from MH i2c: E2 03 00 [07:30:48]MH_I2C_Read... [07:30:48]Read from MH i2c: E2 03 00 A9 2A 00 90 00 47 [07:30:48]RAPDU: 90 00 [07:30:48]wFMCommunicate OK [07:30:48]wFMCommunicate request_size=255 [07:30:48]MH_SAM_APDU [07:30: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 33 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 2A 00 00 00 F4 03 04 00 2A 03 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 BA DC 02 00 35 04 06 00 B1 [07:30:48]Write to MH i2c: E2 02 01 AA 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 33 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 2A 00 00 00 F4 03 04 00 2A 03 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 BA DC 02 00 35 04 06 00 B1 00 00 B9 [07:30:48]Write i2c OK [07:30:48]MH_I2C_Read... [07:30:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:30:49]Read from MH i2c: E2 [07:30:49]MH_I2C_Read... [07:30:49]Read from MH i2c: E2 03 00 [07:30:49]MH_I2C_Read... [07:30:49]Read from MH i2c: E2 03 00 AA 2A 00 90 00 48 [07:30:49]RAPDU: 90 00 [07:30:49]wFMCommunicate OK [07:30:49]wFMCommunicate request_size=10 [07:30:49]MH_SAM_APDU [07:30:49]CAPDU: 80 0D 02 02 05 B8 35 9E 29 41 [07:30:49]Write to MH i2c: E2 0D 00 AB 2A 80 0D 02 02 05 00 B8 35 9E 29 41 00 00 4E [07:30:49]Write i2c OK [07:30:49]MH_I2C_Read... [07:30:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:30:49]Read from MH i2c: E2 [07:30:49]MH_I2C_Read... [07:30:49]Read from MH i2c: E2 03 00 [07:30:49]MH_I2C_Read... [07:30:49]Read from MH i2c: E2 03 00 AB 2A 00 90 00 49 [07:30:49]RAPDU: 90 00 [07:30:49]wFMCommunicate OK [07:30:49]wFMCommunicate request_size=4 [07:30:49]MH_SAM_APDU [07:30:49]CAPDU: 80 0D 03 02 [07:30:49]Write to MH i2c: E2 08 00 AC 2A 80 0D 03 02 00 00 00 00 51 [07:30:49]Write i2c OK [07:30:49]MH_I2C_Read... [07:30:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:30:49]Read from MH i2c: E2 [07:30:49]MH_I2C_Read... [07:30:49]Read from MH i2c: E2 0B 00 [07:30:49]MH_I2C_Read... [07:30:49]Read from MH i2c: E2 0B 00 AC 2A 00 C6 13 66 90 D7 C2 FB EE 90 00 A3 [07:30:49]RAPDU: C6 13 66 90 D7 C2 FB EE 90 00 [07:30:49]wFMCommunicate OK [07:30:49]SAM_PROTO_SignData done [07:30:49]FM_MakeSignedData done [07:30:49]CreateOFDProtocolMessage [07:30:49]wFMCommunicate request_size=4 [07:30:49]MH_SAM_APDU [07:30:49]CAPDU: 80 11 00 00 [07:30:49]Write to MH i2c: E2 08 00 AD 2A 80 11 00 00 00 00 00 00 51 [07:30:49]Write i2c OK [07:30:49]MH_I2C_Read... [07:30:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:30:49]Read from MH i2c: E2 [07:30:49]MH_I2C_Read... [07:30:49]Read from MH i2c: E2 17 00 [07:30:49]MH_I2C_Read... [07:30:49]Read from MH i2c: E2 17 00 AD 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 9F [07:30:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [07:30:49]wFMCommunicate OK [07:30:49]CreateOFDProtocolMessage done [07:30:49]OFDSenderStorePacket 187578 [07:30:49]StoreOFDPacket docnum=187578 [07:30:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 CC C7 07 01 FA 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 33 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 2A 00 00 00 F4 03 04 00 2A 03 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 BA DC 02 00 35 04 06 00 B1 B8 35 9E 29 41 C6 13 66 90 D7 C2 FB EE [07:30:49]CheckFolder [07:30:49]dirname=/storage/ofd_packets [07:30:49]CheckFolder done [07:30:49]ProducePacketName [07:30:49]name=ofd_packets/00187578 [07:30:49]NVStorageSaveData ofd_packets/00187578 [07:30:49]File name is /storage/ofd_packets/00187578 [07:30:49]Write 301 bytes [07:30:49]NVStorageSaveData done [07:30:49]OFDSenderStorePacket done [07:30:49]KKMCreateOFDPacket done [07:30:49]NVStorageSaveData kkm_last_timestamp [07:30:49]File name is /storage/kkm_last_timestamp [07:30:49]Write 4 bytes [07:30:49]NVStorageSaveData done [07:30:49]ExternCall_PrintAddStr [07:30:49]wPrintStart [07:30:49]Write to MH i2c: 01 00 00 AE 2A D8 [07:30:49]Write i2c OK [07:30:49]MH_I2C_Read... [07:30:49]Read from MH i2c: 01 [07:30:49]MH_I2C_Read... [07:30:49]Read from MH i2c: 01 07 00 [07:30:49]MH_I2C_Read... [07:30:49]Read from MH i2c: 01 07 00 AE 2A 00 00 00 00 00 FF 0F ED [07:30:49]RasterBufferAndPrint [07:30:49]line Счет N : (1)209629 [07:30:49]line ИНН: 02508201610067 [07:30:49]line Контрольно-Кассовый Чек [07:30:49]line ПРОДАЖА [07:30:49]line ТРК (МРК, ГНК) : 42 [07:30:49]line Товар: 2710124130 [07:30:49]line Аи-92-К-3 [07:30:49]line 10.470 * 66.90 [07:30:49]line = 700.44 [07:30:49]line НДС 12% НСП 1% [07:30:49]line > о реализуемом товаре [07:30:49]line ОКРУГЛЕНИЕ: -0.44 [07:30:49]line ИТОГО: 700.00 [07:30:49]line Внесено: 700.00 [07:30:49]line СДАЧА: 0.00 [07:30:49]line НСП 1% : 6.20 [07:30:49]line НДС 12% : 74.38 [07:30:49]line Наличными: 700.00 [07:30:49]line Безнал.: 0.00 [07:30:49]line Место: АЗС № 86 "Партнер Нефть" [07:30:49]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [07:30:49]line СНО: Общий режим [07:30:49]line Чек 42 21.10.2024 07:30 [07:30:49]line Смена: 460 ФФД: 1.0 [07:30:49]line ЗНМ: 0300000155 [07:30:49]line РНМ: 0000000000100030 [07:30:49]line Версия ККМ: 001 [07:30:49]line ФМ: 0000000000965340 [07:30:49]line ФД: 187578 [07:30:49]line ФПД: 195404731656513 [07:30:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T073050&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187578&fm=195404731656513&tin=02508201610067®Number=0000000000100030&sum=70000 [07:30:49]written 0, free lines is 4095 [07:30:49]OFD Sender: Processing packet 187578 [packets to send 1062, broken 1061] [07:30:49]ProducePacketName [07:30:49]name=ofd_packets/00187578 [07:30:49]OFD Sender: To server: pG, [07:30:49]CommunicateWithHost lk.salyk.kg:30040 [07:30:49]ConnectInit lk.salyk.kg [07:30:49]Connected sock=10 [07:30:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 CC C7 07 01 FA 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 33 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 2A 00 00 00 F4 03 04 00 2A 03 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 BA DC 02 00 35 04 06 00 B1 B8 35 9E 29 41 C6 13 66 90 D7 C2 FB EE [07:30:49]Write to MH i2c: 01 00 00 D9 2A 03 [07:30:49]Write i2c OK [07:30:49]MH_I2C_Read... [07:30:49]Read from MH i2c: 01 [07:30:49]MH_I2C_Read... [07:30:49]Read from MH i2c: 01 07 00 [07:30:49]MH_I2C_Read... [07:30:49]Read from MH i2c: 01 07 00 D9 2A 00 00 00 00 00 50 0C 66 [07:30:49]RasterBufferAndPrint [07:30:49]line [07:30:49]line [07:30:49]line [07:30:49]line [07:30:49]line [07:30:49]written 0, free lines is 3156 [07:30:49]MH_Cut [07:30:49]Write to MH i2c: D1 01 00 E0 2A 01 DC [07:30:49]Write i2c OK [07:30:49]MH_I2C_Read... [07:30:49]Read from MH i2c: D1 [07:30:49]MH_I2C_Read... [07:30:49]Read from MH i2c: D1 01 00 [07:30:49]MH_I2C_Read... [07:30:49]Read from MH i2c: D1 01 00 E0 2A 00 DB [07:30:49]Write to MH i2c: 01 00 00 E1 2A 0B [07:30:49]Write i2c OK [07:30:49]MH_I2C_Read... [07:30:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 50 83 47 00 1A 72 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 BA DC 02 00 F4 03 04 00 1A AD 15 67 B6 04 01 00 00 27 FD 96 81 1B 6D 84 01 [07:30:49]CommunicateWithHost err = 0 [07:30:49]CheckOFDResponse [07:30:49]1017 (14) - 77093643461234 [07:30:49]1041 (16) - 0000000000965340 [07:30:49]1040 (4) - 187578 [07:30:49]1012 (4) - 21.10.2024 01:23 [07:30:49]1206 (1) - 0 [07:30:49]OFD Sender: Remove packet 187578 [07:30:49]ProducePacketName [07:30:49]name=ofd_packets/00187578 [07:30:49]NVStorageDeleteData [07:30:50]OFD Sender: No OFD packet to send [07:30:51]*** Cut start [07:30:51]*** Partial cut [07:30:51]*** CUTSNS_PIN = 1 [07:30:51]*** CUTSNS_PIN = 0 [07:30:51]*** Brake cut motor [07:30:51]Read from MH i2c: 01 [07:30:51]MH_I2C_Read... [07:30:51]*** Stop cut motor [07:30:51]*** Cut end [07:30:51]Read from MH i2c: 01 07 00 [07:30:51]MH_I2C_Read... [07:30:51]Read from MH i2c: 01 07 00 E1 2A 00 00 00 00 00 FF 0F 20 [07:30:51]process_action close_receipt done [07:30:51]requested_data is exist [07:30:51]produce_requested_data [07:30:51]requested_item fm.sn is exist - process it [07:30:51]wFMCommunicate request_size=4 [07:30:51]MH_SAM_APDU [07:30:51]CAPDU: 80 11 00 00 [07:30:51]Write to MH i2c: E2 08 00 E2 2A 80 11 00 00 00 00 00 00 86 [07:30:51]Write i2c OK [07:30:51]MH_I2C_Read... [07:30:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:30:51]Read from MH i2c: E2 [07:30:51]MH_I2C_Read... [07:30:51]Read from MH i2c: E2 17 00 [07:30:51]MH_I2C_Read... [07:30:51]Read from MH i2c: E2 17 00 E2 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 D4 [07:30:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [07:30:51]wFMCommunicate OK [07:30:51]requested_item fd.num is exist - process it [07:30:51]SAM_PROTO_GetFieldsCounters [07:30:51]wFMCommunicate request_size=4 [07:30:51]MH_SAM_APDU [07:30:51]CAPDU: 80 13 00 00 [07:30:51]Write to MH i2c: E2 08 00 E3 2A 80 13 00 00 00 00 00 00 89 [07:30:51]Write i2c OK [07:30:51]MH_I2C_Read... [07:30:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:30:51]Read from MH i2c: E2 [07:30:51]MH_I2C_Read... [07:30:51]Read from MH i2c: E2 62 00 [07:30:51]MH_I2C_Read... [07:30:51]Read from MH i2c: E2 62 00 E3 2A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 BA DC 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 2A 00 00 00 5E 04 04 00 2A 00 00 00 57 04 04 00 2B 00 00 00 19 04 04 00 00 00 00 00 90 00 73 [07:30:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 BA DC 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 2A 00 00 00 5E 04 04 00 2A 00 00 00 57 04 04 00 2B 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:30:51]wFMCommunicate OK [07:30:51]SAM_PROTO_GetFieldsCounters done [07:30:51]requested_item shift.num is exist - process it [07:30:51]requested_item shift.opened is exist - process it [07:30:51]req_shift_opened [07:30:51]FM_GetShiftState [07:30:51]SAM_PROTO_GetShiftState [07:30:51]wFMCommunicate request_size=4 [07:30:51]MH_SAM_APDU [07:30:51]CAPDU: 80 13 01 00 [07:30:51]Write to MH i2c: E2 08 00 E4 2A 80 13 01 00 00 00 00 00 8B [07:30:51]Write i2c OK [07:30:51]MH_I2C_Read... [07:30:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:30:51]Read from MH i2c: E2 [07:30:51]MH_I2C_Read... [07:30:51]Read from MH i2c: E2 0E 00 [07:30:51]MH_I2C_Read... [07:30:51]Read from MH i2c: E2 0E 00 E4 2A 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 EA [07:30:51]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [07:30:51]wFMCommunicate OK [07:30:51]SAM_PROTO_GetShiftState done [07:30:51]FM_GetShiftState done [07:30:51]req_shift_opened done [07:30:51]requested_item shift.open_date is exist - process it [07:30:51]req_shift_open_date [07:30:51]req_shift_open_date done [07:30:51]produce_requested_data done [07:30:51]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187578,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [07:30:51]process_action_free close_receipt [07:30:51]json_value_free [07:30:51]json_value_free done [07:30:51]process_json_proto returns [07:30:51]Send response to host [07:30:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187578,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [07:30:51]free response buf [07:30:51]execute_script done [07:30:51]execute_script returns [07:30:51]free content buf [07:30:51]Sock 8.Close socket [07:30:51]Sock 8.Thread stoped [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:23]accept exits with 9 [07:32:23]New connection [07:32:23]New thread 3067014500 created [07:32:23]Thread 3067157860 joined [07:32:23]Waiting for new connection... [07:32:23] Sock 9.Parse request [07:32:23]Sock 9.Check first char [07:32:23]Sock 9.First char is OK [07:32:23]request: POST /json_proto HTTP/1.0 [07:32:23]Method: POST [07:32:23]URL: /json_proto [07:32:23]Method is POST - this is cgi request [07:32:23]url: /json_proto [07:32:23]query_string will be loaded in cgi processing [07:32:23]execute_cgi json_proto POST (null) [07:32:23]execute_cgi path=json_proto method=POST [07:32:23]POST find Content-Length [07:32:23]Host: 172.17.42.131:8080 [07:32:23]Content-Length: 679 [07:32:23]Content-Type: application/json [07:32:23] [07:32:23]POST finish read [07:32:23]Found Content-Length = 679 [07:32:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209630", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:32:23]execute_script... [07:32:23]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209630", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:32:23]POST & json_proto [07:32:23]process_json_proto [07:32:23]json parsed OK: [07:32:23]protocol is kg_v1.0 [07:32:23]action value=close_receipt [07:32:23]process_action close_receipt [07:32:23]cmd_close_receipt [07:32:23]MH_GetDate [07:32:23]Write to MH i2c: F0 00 00 E5 2A FE [07:32:23]Write i2c OK [07:32:23]MH_I2C_Read... [07:32:23]Read from MH i2c: F0 [07:32:23]MH_I2C_Read... [07:32:23]Read from MH i2c: F0 09 00 [07:32:23]MH_I2C_Read... [07:32:23]Read from MH i2c: F0 09 00 E5 2A 00 8A 03 16 67 A0 18 CA 66 F9 [07:32:23]GetLastDocTimeStamp 1729495850 [07:32:23]current date 1729495946 [07:32:23]FM_GetShiftState [07:32:23]SAM_PROTO_GetShiftState [07:32:23]wFMCommunicate request_size=4 [07:32:23]MH_SAM_APDU [07:32:23]CAPDU: 80 13 01 00 [07:32:23]Write to MH i2c: E2 08 00 E6 2A 80 13 01 00 00 00 00 00 8D [07:32:23]Write i2c OK [07:32:23]MH_I2C_Read... [07:32:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:32:23]Read from MH i2c: E2 [07:32:23]MH_I2C_Read... [07:32:23]Read from MH i2c: E2 0E 00 [07:32:23]MH_I2C_Read... [07:32:23]Read from MH i2c: E2 0E 00 E6 2A 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 EC [07:32:23]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [07:32:23]wFMCommunicate OK [07:32:23]SAM_PROTO_GetShiftState done [07:32:23]FM_GetShiftState done [07:32:23]opened in 1729469754 [07:32:23]opened+sec_in_day 1729556154 [07:32:23]quantity*price = 200025 [07:32:23]sum+1 = 200026 [07:32: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 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 43 21.10.2024 07:32 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 187579 ФПД: 274645946184916 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T073226&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187579&fm=274645946184916&tin=02508201610067®Number=0000000000100030&sum=200000 [07:32:24]StoreToDocumentArchive [07:32:24]shift 460 fd 187579 [07:32:24]save to /storage/0460/doc_00187579 [07:32:24]save last doc name /storage/0460/doc_00187579 to /storage/kkm_last_doc_name [07:32:24]save OK [07:32:24]Clear old archive folders... [07:32:24]ProcessDocumentItem done err = 0, tmpTLVsize=248 [07:32:24]tlvbuf is 010EAB90 [07:32:24]SAM_PROTO_ClearQueue [07:32:24]wFMCommunicate request_size=4 [07:32:24]MH_SAM_APDU [07:32:24]CAPDU: 80 09 00 00 [07:32:24]Write to MH i2c: E2 08 00 F3 2A 80 09 00 00 00 00 00 00 8F [07:32:24]Write i2c OK [07:32:24]MH_I2C_Read... [07:32:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:32:24]Read from MH i2c: E2 [07:32:24]MH_I2C_Read... [07:32:24]Read from MH i2c: E2 03 00 [07:32:24]MH_I2C_Read... [07:32:24]Read from MH i2c: E2 03 00 F3 2A 00 90 00 91 [07:32:24]RAPDU: 90 00 [07:32:24]wFMCommunicate OK [07:32:24]SAM_PROTO_ClearQueue done [07:32:24]KKMCreateOFDPacket [07:32:24]OFDProtocolAddRootSTLVToBuf [07:32:24]FM_MakeSignedData [07:32:24]FM_MakeSignedData [07:32:24]SAM_PROTO_SignData [07:32:24]wFMCommunicate request_size=4 [07:32:24]MH_SAM_APDU [07:32:24]CAPDU: 80 0D 01 02 [07:32:24]Write to MH i2c: E2 08 00 F4 2A 80 0D 01 02 00 00 00 00 97 [07:32:24]Write i2c OK [07:32:24]MH_I2C_Read... [07:32:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:32:24]Read from MH i2c: E2 [07:32:24]MH_I2C_Read... [07:32:24]Read from MH i2c: E2 03 00 [07:32:24]MH_I2C_Read... [07:32:24]Read from MH i2c: E2 03 00 F4 2A 00 90 00 92 [07:32:24]RAPDU: 90 00 [07:32:24]wFMCommunicate OK [07:32:24]wFMCommunicate request_size=255 [07:32:24]MH_SAM_APDU [07:32: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 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 8A 03 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 BB DC 02 00 35 04 06 00 F9 C9 FE 0F [07:32:24]Write to MH i2c: E2 02 01 F5 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 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 8A 03 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 BB DC 02 00 35 04 06 00 F9 C9 FE 0F 00 00 5A [07:32:24]Write i2c OK [07:32:24]MH_I2C_Read... [07:32:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:32:24]Read from MH i2c: E2 [07:32:24]MH_I2C_Read... [07:32:24]Read from MH i2c: E2 03 00 [07:32:24]MH_I2C_Read... [07:32:24]Read from MH i2c: E2 03 00 F5 2A 00 90 00 93 [07:32:24]RAPDU: 90 00 [07:32:24]wFMCommunicate OK [07:32:24]wFMCommunicate request_size=7 [07:32:24]MH_SAM_APDU [07:32:24]CAPDU: 80 0D 02 02 02 B4 D4 [07:32:24]Write to MH i2c: E2 0A 00 F6 2A 80 0D 02 02 02 00 B4 D4 00 00 26 [07:32:24]Write i2c OK [07:32:24]MH_I2C_Read... [07:32:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:32:24]Read from MH i2c: E2 [07:32:24]MH_I2C_Read... [07:32:24]Read from MH i2c: E2 03 00 [07:32:24]MH_I2C_Read... [07:32:24]Read from MH i2c: E2 03 00 F6 2A 00 90 00 94 [07:32:24]RAPDU: 90 00 [07:32:24]wFMCommunicate OK [07:32:24]wFMCommunicate request_size=4 [07:32:24]MH_SAM_APDU [07:32:24]CAPDU: 80 0D 03 02 [07:32:24]Write to MH i2c: E2 08 00 F7 2A 80 0D 03 02 00 00 00 00 9C [07:32:24]Write i2c OK [07:32:24]MH_I2C_Read... [07:32:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:32:24]Read from MH i2c: E2 [07:32:24]MH_I2C_Read... [07:32:24]Read from MH i2c: E2 0B 00 [07:32:24]MH_I2C_Read... [07:32:24]Read from MH i2c: E2 0B 00 F7 2A 00 64 D7 3A 11 66 01 B6 B6 90 00 F6 [07:32:24]RAPDU: 64 D7 3A 11 66 01 B6 B6 90 00 [07:32:24]wFMCommunicate OK [07:32:24]SAM_PROTO_SignData done [07:32:24]FM_MakeSignedData done [07:32:24]CreateOFDProtocolMessage [07:32:24]wFMCommunicate request_size=4 [07:32:24]MH_SAM_APDU [07:32:24]CAPDU: 80 11 00 00 [07:32:24]Write to MH i2c: E2 08 00 F8 2A 80 11 00 00 00 00 00 00 9C [07:32:24]Write i2c OK [07:32:24]MH_I2C_Read... [07:32:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:32:24]Read from MH i2c: E2 [07:32:24]MH_I2C_Read... [07:32:24]Read from MH i2c: E2 17 00 [07:32:24]MH_I2C_Read... [07:32:24]Read from MH i2c: E2 17 00 F8 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 EA [07:32:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [07:32:24]wFMCommunicate OK [07:32:24]CreateOFDProtocolMessage done [07:32:24]OFDSenderStorePacket 187579 [07:32:24]StoreOFDPacket docnum=187579 [07:32:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 40 9C 04 01 A8 83 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 2B 00 00 00 F4 03 04 00 8A 03 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 BB DC 02 00 35 04 06 00 F9 C9 FE 0F B4 D4 64 D7 3A 11 66 01 B6 B6 [07:32:24]CheckFolder [07:32:24]dirname=/storage/ofd_packets [07:32:24]CheckFolder done [07:32:24]ProducePacketName [07:32:24]name=ofd_packets/00187579 [07:32:24]NVStorageSaveData ofd_packets/00187579 [07:32:24]File name is /storage/ofd_packets/00187579 [07:32:24]Write 298 bytes [07:32:24]NVStorageSaveData done [07:32:24]OFDSenderStorePacket done [07:32:24]KKMCreateOFDPacket done [07:32:24]NVStorageSaveData kkm_last_timestamp [07:32:24]File name is /storage/kkm_last_timestamp [07:32:24]Write 4 bytes [07:32:24]NVStorageSaveData done [07:32:24]ExternCall_PrintAddStr [07:32:24]wPrintStart [07:32:24]Write to MH i2c: 01 00 00 F9 2A 23 [07:32:24]Write i2c OK [07:32:24]MH_I2C_Read... [07:32:24]Read from MH i2c: 01 [07:32:24]MH_I2C_Read... [07:32:24]Read from MH i2c: 01 07 00 [07:32:24]MH_I2C_Read... [07:32:24]Read from MH i2c: 01 07 00 F9 2A 00 00 00 00 00 FF 0F 38 [07:32:24]RasterBufferAndPrint [07:32:24]line Счет N : (1)209630 [07:32:24]line ИНН: 02508201610067 [07:32:24]line Контрольно-Кассовый Чек [07:32:24]line ПРОДАЖА [07:32:24]line ТРК (МРК, ГНК) : 51 [07:32:24]line Товар: 2710194210 [07:32:24]line ДТ-К-5 [07:32:24]line 26.250 * 76.20 [07:32:24]line = 2000.25 [07:32:24]line НДС 12% НСП 1% [07:32:24]line > о реализуемом товаре [07:32:24]line ОКРУГЛЕНИЕ: -0.25 [07:32:24]line ИТОГО: 2000.00 [07:32:24]line Внесено: 2000.00 [07:32:24]line СДАЧА: 0.00 [07:32:24]line НСП 1% : 17.70 [07:32:24]line НДС 12% : 212.42 [07:32:24]line Наличными: 2000.00 [07:32:24]line Безнал.: 0.00 [07:32:24]line Место: АЗС № 86 "Партнер Нефть" [07:32:24]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [07:32:24]line СНО: Общий режим [07:32:24]line Чек 43 21.10.2024 07:32 [07:32:24]line Смена: 460 ФФД: 1.0 [07:32:24]line ЗНМ: 0300000155 [07:32:24]line РНМ: 0000000000100030 [07:32:24]line Версия ККМ: 001 [07:32:24]line ФМ: 0000000000965340 [07:32:24]line ФД: 187579 [07:32:24]line ФПД: 274645946184916 [07:32:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T073226&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187579&fm=274645946184916&tin=02508201610067®Number=0000000000100030&sum=200000 [07:32:24]written 0, free lines is 4095 [07:32:24]OFD Sender: Processing packet 187579 [packets to send 1062, broken 1061] [07:32:24]ProducePacketName [07:32:24]name=ofd_packets/00187579 [07:32:24]OFD Sender: To server: pG, [07:32:24]CommunicateWithHost lk.salyk.kg:30040 [07:32:24]ConnectInit lk.salyk.kg [07:32:25]Connected sock=10 [07:32:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 40 9C 04 01 A8 83 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 2B 00 00 00 F4 03 04 00 8A 03 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 BB DC 02 00 35 04 06 00 F9 C9 FE 0F B4 D4 64 D7 3A 11 66 01 B6 B6 [07:32:25]Write to MH i2c: 01 00 00 24 2B 4F [07:32:25]Write i2c OK [07:32:25]MH_I2C_Read... [07:32:25]Read from MH i2c: 01 [07:32:25]MH_I2C_Read... [07:32:25]Read from MH i2c: 01 07 00 [07:32:25]MH_I2C_Read... [07:32:25]Read from MH i2c: 01 07 00 24 2B 00 00 00 00 00 4C 0C AE [07:32:25]RasterBufferAndPrint [07:32:25]line [07:32:25]line [07:32:25]line [07:32:25]line [07:32:25]line [07:32:25]written 0, free lines is 3151 [07:32:25]MH_Cut [07:32:25]Write to MH i2c: D1 01 00 2B 2B 01 28 [07:32:25]Write i2c OK [07:32:25]MH_I2C_Read... [07:32:25]Read from MH i2c: D1 [07:32:25]MH_I2C_Read... [07:32:25]Read from MH i2c: D1 01 00 [07:32:25]MH_I2C_Read... [07:32:25]Read from MH i2c: D1 01 00 2B 2B 00 27 [07:32:25]Write to MH i2c: 01 00 00 2C 2B 57 [07:32:25]Write i2c OK [07:32:25]MH_I2C_Read... [07:32:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 E0 3A 47 00 43 E3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 BB DC 02 00 F4 03 04 00 7A AD 15 67 B6 04 01 00 00 D8 BB 2C EF 08 0C 2F 75 [07:32:25]CommunicateWithHost err = 0 [07:32:25]CheckOFDResponse [07:32:25]1017 (14) - 77093643461234 [07:32:25]1041 (16) - 0000000000965340 [07:32:25]1040 (4) - 187579 [07:32:25]1012 (4) - 21.10.2024 01:25 [07:32:25]1206 (1) - 0 [07:32:25]OFD Sender: Remove packet 187579 [07:32:25]ProducePacketName [07:32:25]name=ofd_packets/00187579 [07:32:25]NVStorageDeleteData [07:32:25]OFD Sender: No OFD packet to send [07:32:26]*** Cut start [07:32:26]*** Partial cut [07:32:26]*** CUTSNS_PIN = 1 [07:32:26]*** CUTSNS_PIN = 0 [07:32:26]*** Brake cut motor [07:32:27]Read from MH i2c: 01 [07:32:27]MH_I2C_Read... [07:32:27]*** Stop cut motor [07:32:27]*** Cut end [07:32:27]Read from MH i2c: 01 07 00 [07:32:27]MH_I2C_Read... [07:32:27]Read from MH i2c: 01 07 00 2C 2B 00 00 00 00 00 FF 0F 6C [07:32:27]process_action close_receipt done [07:32:27]requested_data is exist [07:32:27]produce_requested_data [07:32:27]requested_item fm.sn is exist - process it [07:32:27]wFMCommunicate request_size=4 [07:32:27]MH_SAM_APDU [07:32:27]CAPDU: 80 11 00 00 [07:32:27]Write to MH i2c: E2 08 00 2D 2B 80 11 00 00 00 00 00 00 D2 [07:32:27]Write i2c OK [07:32:27]MH_I2C_Read... [07:32:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:32:27]Read from MH i2c: E2 [07:32:27]MH_I2C_Read... [07:32:27]Read from MH i2c: E2 17 00 [07:32:27]MH_I2C_Read... [07:32:27]Read from MH i2c: E2 17 00 2D 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 20 [07:32:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [07:32:27]wFMCommunicate OK [07:32:27]requested_item fd.num is exist - process it [07:32:27]SAM_PROTO_GetFieldsCounters [07:32:27]wFMCommunicate request_size=4 [07:32:27]MH_SAM_APDU [07:32:27]CAPDU: 80 13 00 00 [07:32:27]Write to MH i2c: E2 08 00 2E 2B 80 13 00 00 00 00 00 00 D5 [07:32:27]Write i2c OK [07:32:27]MH_I2C_Read... [07:32:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:32:27]Read from MH i2c: E2 [07:32:27]MH_I2C_Read... [07:32:27]Read from MH i2c: E2 62 00 [07:32:27]MH_I2C_Read... [07:32:27]Read from MH i2c: E2 62 00 2E 2B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 BB DC 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 2B 00 00 00 5E 04 04 00 2B 00 00 00 57 04 04 00 2C 00 00 00 19 04 04 00 00 00 00 00 90 00 C3 [07:32:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 BB DC 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 2B 00 00 00 5E 04 04 00 2B 00 00 00 57 04 04 00 2C 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:32:27]wFMCommunicate OK [07:32:27]SAM_PROTO_GetFieldsCounters done [07:32:27]requested_item shift.num is exist - process it [07:32:27]requested_item shift.opened is exist - process it [07:32:27]req_shift_opened [07:32:27]FM_GetShiftState [07:32:27]SAM_PROTO_GetShiftState [07:32:27]wFMCommunicate request_size=4 [07:32:27]MH_SAM_APDU [07:32:27]CAPDU: 80 13 01 00 [07:32:27]Write to MH i2c: E2 08 00 2F 2B 80 13 01 00 00 00 00 00 D7 [07:32:27]Write i2c OK [07:32:27]MH_I2C_Read... [07:32:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:32:27]Read from MH i2c: E2 [07:32:27]MH_I2C_Read... [07:32:27]Read from MH i2c: E2 0E 00 [07:32:27]MH_I2C_Read... [07:32:27]Read from MH i2c: E2 0E 00 2F 2B 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 36 [07:32:27]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [07:32:27]wFMCommunicate OK [07:32:27]SAM_PROTO_GetShiftState done [07:32:27]FM_GetShiftState done [07:32:27]req_shift_opened done [07:32:27]requested_item shift.open_date is exist - process it [07:32:27]req_shift_open_date [07:32:27]req_shift_open_date done [07:32:27]produce_requested_data done [07:32:27]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187579,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [07:32:27]process_action_free close_receipt [07:32:27]json_value_free [07:32:27]json_value_free done [07:32:27]process_json_proto returns [07:32:27]Send response to host [07:32:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187579,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [07:32:27]free response buf [07:32:27]execute_script done [07:32:27]execute_script returns [07:32:27]free content buf [07:32:27]Sock 9.Close socket [07:32:27]Sock 9.Thread stoped [07:32:30]OFD Sender: No OFD packet to send [07:32:35]OFD Sender: No OFD packet to send [07:32:41]OFD Sender: No OFD packet to send [07:32:46]OFD Sender: No OFD packet to send [07:32:51]OFD Sender: No OFD packet to send [07:32:56]OFD Sender: No OFD packet to send [07:33:01]OFD Sender: No OFD packet to send [07:33:06]OFD Sender: No OFD packet to send [07:33:11]OFD Sender: No OFD packet to send [07:33:16]OFD Sender: No OFD packet to send [07:33:21]OFD Sender: No OFD packet to send [07:33:26]OFD Sender: No OFD packet to send [07:33:31]OFD Sender: No OFD packet to send [07:33:36]OFD Sender: No OFD packet to send [07:33:41]OFD Sender: No OFD packet to send [07:33:46]OFD Sender: No OFD packet to send [07:33:51]OFD Sender: No OFD packet to send [07:33:56]OFD Sender: No OFD packet to send [07:34:01]OFD Sender: No OFD packet to send [07:34:06]OFD Sender: No OFD packet to send [07:34:11]OFD Sender: No OFD packet to send [07:34:16]OFD Sender: No OFD packet to send [07:34:21]OFD Sender: No OFD packet to send [07:34:26]OFD Sender: No OFD packet to send [07:34:31]OFD Sender: No OFD packet to send [07:34:36]OFD Sender: No OFD packet to send [07:34:41]OFD Sender: No OFD packet to send [07:34:46]OFD Sender: No OFD packet to send [07:34:51]OFD Sender: No OFD packet to send [07:34:56]OFD Sender: No OFD packet to send [07:35:01]OFD Sender: No OFD packet to send [07:35:06]OFD Sender: No OFD packet to send [07:35:11]OFD Sender: No OFD packet to send [07:35:16]OFD Sender: No OFD packet to send [07:35:21]OFD Sender: No OFD packet to send [07:35:26]OFD Sender: No OFD packet to send [07:35:31]OFD Sender: No OFD packet to send [07:35:32]accept exits with 8 [07:35:32]New connection [07:35:32]New thread 3067157860 created [07:35:32]Thread 3067014500 joined [07:35:32]Waiting for new connection... [07:35:32] Sock 8.Parse request [07:35:32]Sock 8.Check first char [07:35:32]Sock 8.First char is OK [07:35:32]request: POST /json_proto HTTP/1.0 [07:35:32]Method: POST [07:35:32]URL: /json_proto [07:35:32]Method is POST - this is cgi request [07:35:32]url: /json_proto [07:35:32]query_string will be loaded in cgi processing [07:35:32]execute_cgi json_proto POST (null) [07:35:32]execute_cgi path=json_proto method=POST [07:35:32]POST find Content-Length [07:35:32]Host: 172.17.42.131:8080 [07:35:32]Content-Length: 679 [07:35:32]Content-Type: application/json [07:35:32] [07:35:32]POST finish read [07:35:32]Found Content-Length = 679 [07:35:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209631", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 32.810, "sum" : 2500.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2500.00, "total" : 2500.00, "payments": [ { "type": 0, "sum" : 2500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:35:32]execute_script... [07:35: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)209631", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 32.810, "sum" : 2500.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2500.00, "total" : 2500.00, "payments": [ { "type": 0, "sum" : 2500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:35:32]POST & json_proto [07:35:32]process_json_proto [07:35:32]json parsed OK: [07:35:32]protocol is kg_v1.0 [07:35:32]action value=close_receipt [07:35:32]process_action close_receipt [07:35:32]cmd_close_receipt [07:35:32]MH_GetDate [07:35:32]Write to MH i2c: F0 00 00 30 2B 4A [07:35:32]Write i2c OK [07:35:32]MH_I2C_Read... [07:35:32]Read from MH i2c: F0 [07:35:32]MH_I2C_Read... [07:35:32]Read from MH i2c: F0 09 00 [07:35:32]MH_I2C_Read... [07:35:32]Read from MH i2c: F0 09 00 30 2B 00 47 04 16 67 A0 18 CA 66 03 [07:35:32]GetLastDocTimeStamp 1729495946 [07:35:32]current date 1729496135 [07:35:32]FM_GetShiftState [07:35:32]SAM_PROTO_GetShiftState [07:35:32]wFMCommunicate request_size=4 [07:35:32]MH_SAM_APDU [07:35:32]CAPDU: 80 13 01 00 [07:35:32]Write to MH i2c: E2 08 00 31 2B 80 13 01 00 00 00 00 00 D9 [07:35:32]Write i2c OK [07:35:32]MH_I2C_Read... [07:35:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:35:32]Read from MH i2c: E2 [07:35:32]MH_I2C_Read... [07:35:32]Read from MH i2c: E2 0E 00 [07:35:32]MH_I2C_Read... [07:35:32]Read from MH i2c: E2 0E 00 31 2B 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 38 [07:35:32]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [07:35:32]wFMCommunicate OK [07:35:32]SAM_PROTO_GetShiftState done [07:35:32]FM_GetShiftState done [07:35:32]opened in 1729469754 [07:35:32]opened+sec_in_day 1729556154 [07:35:32]quantity*price = 250012 [07:35:32]sum+1 = 250013 [07:35:32]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 2500.00 Внесено: 2500.00 СДАЧА: 0.00 НСП 1% : 22.12 НДС 12% : 265.50 Наличными: 2500.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 44 21.10.2024 07:35 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 187580 ФПД: 192121849213143 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T073535&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187580&fm=192121849213143&tin=02508201610067®Number=0000000000100030&sum=250000 [07:35:33]StoreToDocumentArchive [07:35:33]shift 460 fd 187580 [07:35:33]save to /storage/0460/doc_00187580 [07:35:33]save last doc name /storage/0460/doc_00187580 to /storage/kkm_last_doc_name [07:35:33]save OK [07:35:33]Clear old archive folders... [07:35:33]ProcessDocumentItem done err = 0, tmpTLVsize=248 [07:35:33]tlvbuf is 010C77E0 [07:35:33]SAM_PROTO_ClearQueue [07:35:33]wFMCommunicate request_size=4 [07:35:33]MH_SAM_APDU [07:35:33]CAPDU: 80 09 00 00 [07:35:33]Write to MH i2c: E2 08 00 3E 2B 80 09 00 00 00 00 00 00 DB [07:35:33]Write i2c OK [07:35:33]MH_I2C_Read... [07:35:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:35:33]Read from MH i2c: E2 [07:35:33]MH_I2C_Read... [07:35:33]Read from MH i2c: E2 03 00 [07:35:33]MH_I2C_Read... [07:35:33]Read from MH i2c: E2 03 00 3E 2B 00 90 00 DD [07:35:33]RAPDU: 90 00 [07:35:33]wFMCommunicate OK [07:35:33]SAM_PROTO_ClearQueue done [07:35:33]KKMCreateOFDPacket [07:35:33]OFDProtocolAddRootSTLVToBuf [07:35:33]FM_MakeSignedData [07:35:33]FM_MakeSignedData [07:35:33]SAM_PROTO_SignData [07:35:33]wFMCommunicate request_size=4 [07:35:33]MH_SAM_APDU [07:35:33]CAPDU: 80 0D 01 02 [07:35:33]Write to MH i2c: E2 08 00 3F 2B 80 0D 01 02 00 00 00 00 E3 [07:35:33]Write i2c OK [07:35:33]MH_I2C_Read... [07:35:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:35:33]Read from MH i2c: E2 [07:35:33]MH_I2C_Read... [07:35:33]Read from MH i2c: E2 03 00 [07:35:33]MH_I2C_Read... [07:35:33]Read from MH i2c: E2 03 00 3F 2B 00 90 00 DE [07:35:33]RAPDU: 90 00 [07:35:33]wFMCommunicate OK [07:35:33]wFMCommunicate request_size=255 [07:35:33]MH_SAM_APDU [07:35:33]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 2A 80 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 9C D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A4 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 47 04 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 BC DC 02 00 35 04 06 00 AE BB DA 93 [07:35:33]Write to MH i2c: E2 02 01 40 2B 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 2A 80 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 9C D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A4 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 47 04 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 BC DC 02 00 35 04 06 00 AE BB DA 93 00 00 E0 [07:35:33]Write i2c OK [07:35:33]MH_I2C_Read... [07:35:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:35:33]Read from MH i2c: E2 [07:35:33]MH_I2C_Read... [07:35:33]Read from MH i2c: E2 03 00 [07:35:33]MH_I2C_Read... [07:35:33]Read from MH i2c: E2 03 00 40 2B 00 90 00 DF [07:35:33]RAPDU: 90 00 [07:35:33]wFMCommunicate OK [07:35:33]wFMCommunicate request_size=7 [07:35:33]MH_SAM_APDU [07:35:33]CAPDU: 80 0D 02 02 02 70 D7 [07:35:33]Write to MH i2c: E2 0A 00 41 2B 80 0D 02 02 02 00 70 D7 00 00 31 [07:35:33]Write i2c OK [07:35:33]MH_I2C_Read... [07:35:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:35:33]Read from MH i2c: E2 [07:35:33]MH_I2C_Read... [07:35:33]Read from MH i2c: E2 03 00 [07:35:33]MH_I2C_Read... [07:35:33]Read from MH i2c: E2 03 00 41 2B 00 90 00 E0 [07:35:33]RAPDU: 90 00 [07:35:33]wFMCommunicate OK [07:35:33]wFMCommunicate request_size=4 [07:35:33]MH_SAM_APDU [07:35:33]CAPDU: 80 0D 03 02 [07:35:33]Write to MH i2c: E2 08 00 42 2B 80 0D 03 02 00 00 00 00 E8 [07:35:33]Write i2c OK [07:35:33]MH_I2C_Read... [07:35:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:35:33]Read from MH i2c: E2 [07:35:33]MH_I2C_Read... [07:35:33]Read from MH i2c: E2 0B 00 [07:35:33]MH_I2C_Read... [07:35:33]Read from MH i2c: E2 0B 00 42 2B 00 FA F4 47 70 C3 51 99 19 90 00 54 [07:35:33]RAPDU: FA F4 47 70 C3 51 99 19 90 00 [07:35:33]wFMCommunicate OK [07:35:33]SAM_PROTO_SignData done [07:35:33]FM_MakeSignedData done [07:35:33]CreateOFDProtocolMessage [07:35:33]wFMCommunicate request_size=4 [07:35:33]MH_SAM_APDU [07:35:33]CAPDU: 80 11 00 00 [07:35:33]Write to MH i2c: E2 08 00 43 2B 80 11 00 00 00 00 00 00 E8 [07:35:33]Write i2c OK [07:35:33]MH_I2C_Read... [07:35:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:35:33]Read from MH i2c: E2 [07:35:33]MH_I2C_Read... [07:35:33]Read from MH i2c: E2 17 00 [07:35:33]MH_I2C_Read... [07:35:33]Read from MH i2c: E2 17 00 43 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 36 [07:35:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [07:35:33]wFMCommunicate OK [07:35:33]CreateOFDProtocolMessage done [07:35:33]OFDSenderStorePacket 187580 [07:35:33]StoreOFDPacket docnum=187580 [07:35:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 D8 92 04 01 E5 82 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 2A 80 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 9C D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A4 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 47 04 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 BC DC 02 00 35 04 06 00 AE BB DA 93 70 D7 FA F4 47 70 C3 51 99 19 [07:35:33]CheckFolder [07:35:33]dirname=/storage/ofd_packets [07:35:33]CheckFolder done [07:35:33]ProducePacketName [07:35:33]name=ofd_packets/00187580 [07:35:33]NVStorageSaveData ofd_packets/00187580 [07:35:33]File name is /storage/ofd_packets/00187580 [07:35:33]Write 298 bytes [07:35:33]NVStorageSaveData done [07:35:33]OFDSenderStorePacket done [07:35:33]KKMCreateOFDPacket done [07:35:33]NVStorageSaveData kkm_last_timestamp [07:35:33]File name is /storage/kkm_last_timestamp [07:35:33]Write 4 bytes [07:35:33]NVStorageSaveData done [07:35:33]ExternCall_PrintAddStr [07:35:33]wPrintStart [07:35:33]Write to MH i2c: 01 00 00 44 2B 6F [07:35:33]Write i2c OK [07:35:33]MH_I2C_Read... [07:35:33]Read from MH i2c: 01 [07:35:33]MH_I2C_Read... [07:35:33]Read from MH i2c: 01 07 00 [07:35:33]MH_I2C_Read... [07:35:33]Read from MH i2c: 01 07 00 44 2B 00 00 00 00 00 FF 0F 84 [07:35:33]RasterBufferAndPrint [07:35:33]line Счет N : (1)209631 [07:35:33]line ИНН: 02508201610067 [07:35:33]line Контрольно-Кассовый Чек [07:35:33]line ПРОДАЖА [07:35:33]line ТРК (МРК, ГНК) : 51 [07:35:33]line Товар: 2710194210 [07:35:33]line ДТ-К-5 [07:35:33]line 32.810 * 76.20 [07:35:33]line = 2500.12 [07:35:33]line НДС 12% НСП 1% [07:35:33]line > о реализуемом товаре [07:35:33]line ОКРУГЛЕНИЕ: -0.12 [07:35:33]line ИТОГО: 2500.00 [07:35:33]line Внесено: 2500.00 [07:35:33]line СДАЧА: 0.00 [07:35:33]line НСП 1% : 22.12 [07:35:33]line НДС 12% : 265.50 [07:35:33]line Наличными: 2500.00 [07:35:33]line Безнал.: 0.00 [07:35:33]line Место: АЗС № 86 "Партнер Нефть" [07:35:33]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [07:35:33]line СНО: Общий режим [07:35:33]line Чек 44 21.10.2024 07:35 [07:35:33]line Смена: 460 ФФД: 1.0 [07:35:33]line ЗНМ: 0300000155 [07:35:33]line РНМ: 0000000000100030 [07:35:33]line Версия ККМ: 001 [07:35:33]line ФМ: 0000000000965340 [07:35:33]line ФД: 187580 [07:35:33]line ФПД: 192121849213143 [07:35:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T073535&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187580&fm=192121849213143&tin=02508201610067®Number=0000000000100030&sum=250000 [07:35:33]written 0, free lines is 4095 [07:35:34]OFD Sender: Processing packet 187580 [packets to send 1062, broken 1061] [07:35:34]ProducePacketName [07:35:34]name=ofd_packets/00187580 [07:35:34]OFD Sender: To server: pG, [07:35:34]CommunicateWithHost lk.salyk.kg:30040 [07:35:34]ConnectInit lk.salyk.kg [07:35:34]Connected sock=9 [07:35:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 D8 92 04 01 E5 82 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 2A 80 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 9C D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A4 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 47 04 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 BC DC 02 00 35 04 06 00 AE BB DA 93 70 D7 FA F4 47 70 C3 51 99 19 [07:35:34]Write to MH i2c: 01 00 00 6F 2B 9A [07:35:34]Write i2c OK [07:35:34]MH_I2C_Read... [07:35:34]Read from MH i2c: 01 [07:35:34]MH_I2C_Read... [07:35:34]Read from MH i2c: 01 07 00 [07:35:34]MH_I2C_Read... [07:35:34]Read from MH i2c: 01 07 00 6F 2B 00 00 00 00 00 4A 0C F7 [07:35:34]RasterBufferAndPrint [07:35:34]line [07:35:34]line [07:35:34]line [07:35:34]line [07:35:34]line [07:35:34]written 0, free lines is 3151 [07:35:34]MH_Cut [07:35:34]Write to MH i2c: D1 01 00 76 2B 01 73 [07:35:34]Write i2c OK [07:35:34]MH_I2C_Read... [07:35:34]Read from MH i2c: D1 [07:35:34]MH_I2C_Read... [07:35:34]Read from MH i2c: D1 01 00 [07:35:34]MH_I2C_Read... [07:35:34]Read from MH i2c: D1 01 00 76 2B 00 72 [07:35:34]Write to MH i2c: 01 00 00 77 2B A2 [07:35:34]Write i2c OK [07:35:34]MH_I2C_Read... [07:35:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 BD BC 47 00 B9 F5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 BC DC 02 00 F4 03 04 00 37 AE 15 67 B6 04 01 00 00 D3 EF FF B0 B4 92 1F D4 [07:35:34]CommunicateWithHost err = 0 [07:35:34]CheckOFDResponse [07:35:34]1017 (14) - 77093643461234 [07:35:34]1041 (16) - 0000000000965340 [07:35:34]1040 (4) - 187580 [07:35:34]1012 (4) - 21.10.2024 01:28 [07:35:34]1206 (1) - 0 [07:35:34]OFD Sender: Remove packet 187580 [07:35:34]ProducePacketName [07:35:34]name=ofd_packets/00187580 [07:35:34]NVStorageDeleteData [07:35:35]OFD Sender: No OFD packet to send [07:35:35]*** Cut start [07:35:35]*** Partial cut [07:35:35]*** CUTSNS_PIN = 1 [07:35:35]*** CUTSNS_PIN = 0 [07:35:36]*** Brake cut motor [07:35:36]Read from MH i2c: 01 [07:35:36]MH_I2C_Read... [07:35:36]*** Stop cut motor [07:35:36]*** Cut end [07:35:36]Read from MH i2c: 01 07 00 [07:35:36]MH_I2C_Read... [07:35:36]Read from MH i2c: 01 07 00 77 2B 00 00 00 00 00 FF 0F B7 [07:35:36]process_action close_receipt done [07:35:36]requested_data is exist [07:35:36]produce_requested_data [07:35:36]requested_item fm.sn is exist - process it [07:35:36]wFMCommunicate request_size=4 [07:35:36]MH_SAM_APDU [07:35:36]CAPDU: 80 11 00 00 [07:35:36]Write to MH i2c: E2 08 00 78 2B 80 11 00 00 00 00 00 00 1D [07:35:36]Write i2c OK [07:35:36]MH_I2C_Read... [07:35:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:35:36]Read from MH i2c: E2 [07:35:36]MH_I2C_Read... [07:35:36]Read from MH i2c: E2 17 00 [07:35:36]MH_I2C_Read... [07:35:36]Read from MH i2c: E2 17 00 78 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 6B [07:35:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [07:35:36]wFMCommunicate OK [07:35:36]requested_item fd.num is exist - process it [07:35:36]SAM_PROTO_GetFieldsCounters [07:35:36]wFMCommunicate request_size=4 [07:35:36]MH_SAM_APDU [07:35:36]CAPDU: 80 13 00 00 [07:35:36]Write to MH i2c: E2 08 00 79 2B 80 13 00 00 00 00 00 00 20 [07:35:36]Write i2c OK [07:35:36]MH_I2C_Read... [07:35:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:35:36]Read from MH i2c: E2 [07:35:36]MH_I2C_Read... [07:35:36]Read from MH i2c: E2 62 00 [07:35:36]MH_I2C_Read... [07:35:36]Read from MH i2c: E2 62 00 79 2B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 BC DC 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 2C 00 00 00 5E 04 04 00 2C 00 00 00 57 04 04 00 2D 00 00 00 19 04 04 00 00 00 00 00 90 00 12 [07:35:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 BC DC 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 2C 00 00 00 5E 04 04 00 2C 00 00 00 57 04 04 00 2D 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:35:36]wFMCommunicate OK [07:35:36]SAM_PROTO_GetFieldsCounters done [07:35:36]requested_item shift.num is exist - process it [07:35:36]requested_item shift.opened is exist - process it [07:35:36]req_shift_opened [07:35:36]FM_GetShiftState [07:35:36]SAM_PROTO_GetShiftState [07:35:36]wFMCommunicate request_size=4 [07:35:36]MH_SAM_APDU [07:35:36]CAPDU: 80 13 01 00 [07:35:36]Write to MH i2c: E2 08 00 7A 2B 80 13 01 00 00 00 00 00 22 [07:35:36]Write i2c OK [07:35:36]MH_I2C_Read... [07:35:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:35:36]Read from MH i2c: E2 [07:35:36]MH_I2C_Read... [07:35:36]Read from MH i2c: E2 0E 00 [07:35:36]MH_I2C_Read... [07:35:36]Read from MH i2c: E2 0E 00 7A 2B 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 81 [07:35:36]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [07:35:36]wFMCommunicate OK [07:35:36]SAM_PROTO_GetShiftState done [07:35:36]FM_GetShiftState done [07:35:36]req_shift_opened done [07:35:36]requested_item shift.open_date is exist - process it [07:35:36]req_shift_open_date [07:35:36]req_shift_open_date done [07:35:36]produce_requested_data done [07:35:36]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187580,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [07:35:36]process_action_free close_receipt [07:35:36]json_value_free [07:35:36]json_value_free done [07:35:36]process_json_proto returns [07:35:36]Send response to host [07:35:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187580,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [07:35:36]free response buf [07:35:36]execute_script done [07:35:36]execute_script returns [07:35:36]free content buf [07:35:36]Sock 8.Close socket [07:35:36]Sock 8.Thread stoped [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:14]accept exits with 10 [07:36:14]New connection [07:36:14]New thread 3067014500 created [07:36:14]Thread 3067157860 joined [07:36:14]Waiting for new connection... [07:36:14] Sock 10.Parse request [07:36:14]Sock 10.Check first char [07:36:14]Sock 10.First char is OK [07:36:14]request: POST /json_proto HTTP/1.0 [07:36:14]Method: POST [07:36:14]URL: /json_proto [07:36:14]Method is POST - this is cgi request [07:36:14]url: /json_proto [07:36:14]query_string will be loaded in cgi processing [07:36:14]execute_cgi json_proto POST (null) [07:36:14]execute_cgi path=json_proto method=POST [07:36:14]POST find Content-Length [07:36:14]Host: 172.17.42.131:8080 [07:36:14]Content-Length: 767 [07:36:14]Content-Type: application/json [07:36:14] [07:36:14]POST finish read [07:36:14]Found Content-Length = 767 [07:36:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209632", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 13.280, "sum" : 985.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" : 985.38 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:36:14]execute_script... [07:36:14]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209632", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 13.280, "sum" : 985.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" : 985.38 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:36:14]POST & json_proto [07:36:14]process_json_proto [07:36:14]json parsed OK: [07:36:14]protocol is kg_v1.0 [07:36:14]action value=close_receipt [07:36:14]process_action close_receipt [07:36:14]cmd_close_receipt [07:36:14]MH_GetDate [07:36:14]Write to MH i2c: F0 00 00 7B 2B 95 [07:36:14]Write i2c OK [07:36:14]MH_I2C_Read... [07:36:14]Read from MH i2c: F0 [07:36:14]MH_I2C_Read... [07:36:14]Read from MH i2c: F0 09 00 [07:36:14]MH_I2C_Read... [07:36:14]Read from MH i2c: F0 09 00 7B 2B 00 71 04 16 67 A0 18 CA 66 78 [07:36:14]GetLastDocTimeStamp 1729496135 [07:36:14]current date 1729496177 [07:36:14]FM_GetShiftState [07:36:14]SAM_PROTO_GetShiftState [07:36:14]wFMCommunicate request_size=4 [07:36:14]MH_SAM_APDU [07:36:14]CAPDU: 80 13 01 00 [07:36:14]Write to MH i2c: E2 08 00 7C 2B 80 13 01 00 00 00 00 00 24 [07:36:14]Write i2c OK [07:36:14]MH_I2C_Read... [07:36:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:36:14]Read from MH i2c: E2 [07:36:14]MH_I2C_Read... [07:36:14]Read from MH i2c: E2 0E 00 [07:36:14]MH_I2C_Read... [07:36:14]Read from MH i2c: E2 0E 00 7C 2B 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 83 [07:36:14]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [07:36:14]wFMCommunicate OK [07:36:14]SAM_PROTO_GetShiftState done [07:36:14]FM_GetShiftState done [07:36:14]opened in 1729469754 [07:36:14]opened+sec_in_day 1729556154 [07:36:14]quantity*price = 98537 [07:36:14]sum+1 = 98539 [07:36:14]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 985.38 НСП 1% : 8.72 НДС 12% : 104.64 Наличными: 0.00 Безнал.: 985.38 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 45 21.10.2024 07:36 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000965340 ФД: 187581 ФПД: 54681990673385 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T073617&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187581&fm=54681990673385&tin=02508201610067®Number=0000000000100030&sum=98538 [07:36:15]StoreToDocumentArchive [07:36:15]shift 460 fd 187581 [07:36:15]save to /storage/0460/doc_00187581 [07:36:15]save last doc name /storage/0460/doc_00187581 to /storage/kkm_last_doc_name [07:36:15]save OK [07:36:15]Clear old archive folders... [07:36:15]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:36:15]tlvbuf is 01090130 [07:36:15]SAM_PROTO_ClearQueue [07:36:15]wFMCommunicate request_size=4 [07:36:15]MH_SAM_APDU [07:36:15]CAPDU: 80 09 00 00 [07:36:15]Write to MH i2c: E2 08 00 89 2B 80 09 00 00 00 00 00 00 26 [07:36:15]Write i2c OK [07:36:15]MH_I2C_Read... [07:36:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:36:15]Read from MH i2c: E2 [07:36:15]MH_I2C_Read... [07:36:15]Read from MH i2c: E2 03 00 [07:36:15]MH_I2C_Read... [07:36:15]Read from MH i2c: E2 03 00 89 2B 00 90 00 28 [07:36:15]RAPDU: 90 00 [07:36:15]wFMCommunicate OK [07:36:15]SAM_PROTO_ClearQueue done [07:36:15]KKMCreateOFDPacket [07:36:15]OFDProtocolAddRootSTLVToBuf [07:36:15]FM_MakeSignedData [07:36:15]FM_MakeSignedData [07:36:15]SAM_PROTO_SignData [07:36:15]wFMCommunicate request_size=4 [07:36:15]MH_SAM_APDU [07:36:15]CAPDU: 80 0D 01 02 [07:36:15]Write to MH i2c: E2 08 00 8A 2B 80 0D 01 02 00 00 00 00 2E [07:36:15]Write i2c OK [07:36:15]MH_I2C_Read... [07:36:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:36:15]Read from MH i2c: E2 [07:36:15]MH_I2C_Read... [07:36:15]Read from MH i2c: E2 03 00 [07:36:15]MH_I2C_Read... [07:36:15]Read from MH i2c: E2 03 00 8A 2B 00 90 00 29 [07:36:15]RAPDU: 90 00 [07:36:15]wFMCommunicate OK [07:36:15]wFMCommunicate request_size=255 [07:36:15]MH_SAM_APDU [07:36:15]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 E0 33 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 EA 80 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EA 80 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 68 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E0 28 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 EA 80 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 71 04 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 BD DC 02 00 35 04 06 00 31 [07:36:15]Write to MH i2c: E2 02 01 8B 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 E0 33 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 EA 80 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EA 80 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 68 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E0 28 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 EA 80 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 71 04 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 BD DC 02 00 35 04 06 00 31 00 00 B7 [07:36:15]Write i2c OK [07:36:15]MH_I2C_Read... [07:36:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:36:15]Read from MH i2c: E2 [07:36:15]MH_I2C_Read... [07:36:15]Read from MH i2c: E2 03 00 [07:36:15]MH_I2C_Read... [07:36:15]Read from MH i2c: E2 03 00 8B 2B 00 90 00 2A [07:36:15]RAPDU: 90 00 [07:36:15]wFMCommunicate OK [07:36:15]wFMCommunicate request_size=10 [07:36:15]MH_SAM_APDU [07:36:15]CAPDU: 80 0D 02 02 05 BB A4 A1 33 E9 [07:36:15]Write to MH i2c: E2 0D 00 8C 2B 80 0D 02 02 05 00 BB A4 A1 33 E9 00 00 57 [07:36:15]Write i2c OK [07:36:15]MH_I2C_Read... [07:36:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:36:15]Read from MH i2c: E2 [07:36:15]MH_I2C_Read... [07:36:15]Read from MH i2c: E2 03 00 [07:36:15]MH_I2C_Read... [07:36:15]Read from MH i2c: E2 03 00 8C 2B 00 90 00 2B [07:36:15]RAPDU: 90 00 [07:36:15]wFMCommunicate OK [07:36:15]wFMCommunicate request_size=4 [07:36:15]MH_SAM_APDU [07:36:15]CAPDU: 80 0D 03 02 [07:36:15]Write to MH i2c: E2 08 00 8D 2B 80 0D 03 02 00 00 00 00 33 [07:36:15]Write i2c OK [07:36:15]MH_I2C_Read... [07:36:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:36:15]Read from MH i2c: E2 [07:36:15]MH_I2C_Read... [07:36:15]Read from MH i2c: E2 0B 00 [07:36:15]MH_I2C_Read... [07:36:15]Read from MH i2c: E2 0B 00 8D 2B 00 D8 FD 6C B7 94 2D B7 3B 90 00 DF [07:36:15]RAPDU: D8 FD 6C B7 94 2D B7 3B 90 00 [07:36:15]wFMCommunicate OK [07:36:15]SAM_PROTO_SignData done [07:36:15]FM_MakeSignedData done [07:36:15]CreateOFDProtocolMessage [07:36:15]wFMCommunicate request_size=4 [07:36:15]MH_SAM_APDU [07:36:15]CAPDU: 80 11 00 00 [07:36:15]Write to MH i2c: E2 08 00 8E 2B 80 11 00 00 00 00 00 00 33 [07:36:15]Write i2c OK [07:36:15]MH_I2C_Read... [07:36:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:36:15]Read from MH i2c: E2 [07:36:15]MH_I2C_Read... [07:36:15]Read from MH i2c: E2 17 00 [07:36:15]MH_I2C_Read... [07:36:15]Read from MH i2c: E2 17 00 8E 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 81 [07:36:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [07:36:15]wFMCommunicate OK [07:36:15]CreateOFDProtocolMessage done [07:36:15]OFDSenderStorePacket 187581 [07:36:15]StoreOFDPacket docnum=187581 [07:36:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 B5 82 07 01 DA 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 E0 33 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 EA 80 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EA 80 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 68 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E0 28 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 EA 80 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 71 04 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 BD DC 02 00 35 04 06 00 31 BB A4 A1 33 E9 D8 FD 6C B7 94 2D B7 3B [07:36:15]CheckFolder [07:36:15]dirname=/storage/ofd_packets [07:36:15]CheckFolder done [07:36:15]ProducePacketName [07:36:15]name=ofd_packets/00187581 [07:36:15]NVStorageSaveData ofd_packets/00187581 [07:36:15]File name is /storage/ofd_packets/00187581 [07:36:15]Write 301 bytes [07:36:15]NVStorageSaveData done [07:36:15]OFDSenderStorePacket done [07:36:15]KKMCreateOFDPacket done [07:36:15]NVStorageSaveData kkm_last_timestamp [07:36:15]File name is /storage/kkm_last_timestamp [07:36:15]Write 4 bytes [07:36:15]NVStorageSaveData done [07:36:15]ExternCall_PrintAddStr [07:36:15]wPrintStart [07:36:15]Write to MH i2c: 01 00 00 8F 2B BA [07:36:15]Write i2c OK [07:36:15]MH_I2C_Read... [07:36:15]Read from MH i2c: 01 [07:36:15]MH_I2C_Read... [07:36:15]Read from MH i2c: 01 07 00 [07:36:15]MH_I2C_Read... [07:36:15]Read from MH i2c: 01 07 00 8F 2B 00 00 00 00 00 FF 0F CF [07:36:15]RasterBufferAndPrint [07:36:15]line Счет N : (1)209632 [07:36:15]line ИНН: 02508201610067 [07:36:15]line Контрольно-Кассовый Чек [07:36:15]line ПРОДАЖА [07:36:15]line ТРК (МРК, ГНК) : 13 [07:36:15]line Товар: 2710124500 [07:36:15]line Аи-95-К-3 [07:36:15]line 13.280 * 74.20 [07:36:15]line = 985.38 [07:36:15]line НДС 12% НСП 1% [07:36:15]line > о реализуемом товаре [07:36:15]line ИТОГО: 985.38 [07:36:15]line НСП 1% : 8.72 [07:36:15]line НДС 12% : 104.64 [07:36:15]line Наличными: 0.00 [07:36:15]line Безнал.: 985.38 [07:36:15]line Место: АЗС № 86 "Партнер Нефть" [07:36:15]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [07:36:15]line СНО: Общий режим [07:36:15]line Чек 45 21.10.2024 07:36 [07:36:15]line Смена: 460 ФФД: 1.0 [07:36:15]line ЗНМ: 0300000155 [07:36:15]line РНМ: 0000000000100030 [07:36:15]line Версия ККМ: 001 [07:36:15]line Платежная система: Mbank [07:36:15]line ФМ: 0000000000965340 [07:36:15]line ФД: 187581 [07:36:15]line ФПД: 54681990673385 [07:36:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T073617&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187581&fm=54681990673385&tin=02508201610067®Number=0000000000100030&sum=98538 [07:36:15]written 0, free lines is 4095 [07:36:15]OFD Sender: Processing packet 187581 [packets to send 1062, broken 1061] [07:36:15]ProducePacketName [07:36:15]name=ofd_packets/00187581 [07:36:15]OFD Sender: To server: pG, [07:36:15]CommunicateWithHost lk.salyk.kg:30040 [07:36:15]ConnectInit lk.salyk.kg [07:36:16]Connected sock=11 [07:36:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 B5 82 07 01 DA 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 E0 33 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 EA 80 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EA 80 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 68 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E0 28 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 EA 80 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 71 04 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 BD DC 02 00 35 04 06 00 31 BB A4 A1 33 E9 D8 FD 6C B7 94 2D B7 3B [07:36:16]Write to MH i2c: 01 00 00 B8 2B E3 [07:36:16]Write i2c OK [07:36:16]MH_I2C_Read... [07:36:16]Read from MH i2c: 01 [07:36:16]MH_I2C_Read... [07:36:16]Read from MH i2c: 01 07 00 [07:36:16]MH_I2C_Read... [07:36:16]Read from MH i2c: 01 07 00 B8 2B 00 00 00 00 00 79 0C 6F [07:36:16]RasterBufferAndPrint [07:36:16]line [07:36:16]line [07:36:16]line [07:36:16]line [07:36:16]line [07:36:16]written 0, free lines is 3197 [07:36:16]MH_Cut [07:36:16]Write to MH i2c: D1 01 00 BF 2B 01 BC [07:36:16]Write i2c OK [07:36:16]MH_I2C_Read... [07:36:16]Read from MH i2c: D1 [07:36:16]MH_I2C_Read... [07:36:16]Read from MH i2c: D1 01 00 [07:36:16]MH_I2C_Read... [07:36:16]Read from MH i2c: D1 01 00 BF 2B 00 BB [07:36:16]Write to MH i2c: 01 00 00 C0 2B EB [07:36:16]Write i2c OK [07:36:16]MH_I2C_Read... [07:36:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 D9 99 47 00 BA 9A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 BD DC 02 00 F4 03 04 00 61 AE 15 67 B6 04 01 00 00 AA 56 21 F2 38 5C 6C BB [07:36:16]CommunicateWithHost err = 0 [07:36:16]CheckOFDResponse [07:36:16]1017 (14) - 77093643461234 [07:36:16]1041 (16) - 0000000000965340 [07:36:16]1040 (4) - 187581 [07:36:16]1012 (4) - 21.10.2024 01:29 [07:36:16]1206 (1) - 0 [07:36:16]OFD Sender: Remove packet 187581 [07:36:16]ProducePacketName [07:36:16]name=ofd_packets/00187581 [07:36:16]NVStorageDeleteData [07:36:16]OFD Sender: No OFD packet to send [07:36:17]*** Cut start [07:36:17]*** Partial cut [07:36:17]*** CUTSNS_PIN = 1 [07:36:17]*** CUTSNS_PIN = 0 [07:36:17]*** Brake cut motor [07:36:18]Read from MH i2c: 01 [07:36:18]MH_I2C_Read... [07:36:18]*** Stop cut motor [07:36:18]*** Cut end [07:36:18]Read from MH i2c: 01 07 00 [07:36:18]MH_I2C_Read... [07:36:18]Read from MH i2c: 01 07 00 C0 2B 00 00 00 00 00 FF 0F 00 [07:36:18]process_action close_receipt done [07:36:18]requested_data is exist [07:36:18]produce_requested_data [07:36:18]requested_item fm.sn is exist - process it [07:36:18]wFMCommunicate request_size=4 [07:36:18]MH_SAM_APDU [07:36:18]CAPDU: 80 11 00 00 [07:36:18]Write to MH i2c: E2 08 00 C1 2B 80 11 00 00 00 00 00 00 66 [07:36:18]Write i2c OK [07:36:18]MH_I2C_Read... [07:36:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:36:18]Read from MH i2c: E2 [07:36:18]MH_I2C_Read... [07:36:18]Read from MH i2c: E2 17 00 [07:36:18]MH_I2C_Read... [07:36:18]Read from MH i2c: E2 17 00 C1 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 B4 [07:36:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [07:36:18]wFMCommunicate OK [07:36:18]requested_item fd.num is exist - process it [07:36:18]SAM_PROTO_GetFieldsCounters [07:36:18]wFMCommunicate request_size=4 [07:36:18]MH_SAM_APDU [07:36:18]CAPDU: 80 13 00 00 [07:36:18]Write to MH i2c: E2 08 00 C2 2B 80 13 00 00 00 00 00 00 69 [07:36:18]Write i2c OK [07:36:18]MH_I2C_Read... [07:36:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:36:18]Read from MH i2c: E2 [07:36:18]MH_I2C_Read... [07:36:18]Read from MH i2c: E2 62 00 [07:36:18]MH_I2C_Read... [07:36:18]Read from MH i2c: E2 62 00 C2 2B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 BD DC 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 2D 00 00 00 5E 04 04 00 2D 00 00 00 57 04 04 00 2E 00 00 00 19 04 04 00 00 00 00 00 90 00 5F [07:36:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 BD DC 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 2D 00 00 00 5E 04 04 00 2D 00 00 00 57 04 04 00 2E 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:36:18]wFMCommunicate OK [07:36:18]SAM_PROTO_GetFieldsCounters done [07:36:18]requested_item shift.num is exist - process it [07:36:18]requested_item shift.opened is exist - process it [07:36:18]req_shift_opened [07:36:18]FM_GetShiftState [07:36:18]SAM_PROTO_GetShiftState [07:36:18]wFMCommunicate request_size=4 [07:36:18]MH_SAM_APDU [07:36:18]CAPDU: 80 13 01 00 [07:36:18]Write to MH i2c: E2 08 00 C3 2B 80 13 01 00 00 00 00 00 6B [07:36:18]Write i2c OK [07:36:18]MH_I2C_Read... [07:36:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:36:18]Read from MH i2c: E2 [07:36:18]MH_I2C_Read... [07:36:18]Read from MH i2c: E2 0E 00 [07:36:18]MH_I2C_Read... [07:36:18]Read from MH i2c: E2 0E 00 C3 2B 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 CA [07:36:18]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [07:36:18]wFMCommunicate OK [07:36:18]SAM_PROTO_GetShiftState done [07:36:18]FM_GetShiftState done [07:36:18]req_shift_opened done [07:36:18]requested_item shift.open_date is exist - process it [07:36:18]req_shift_open_date [07:36:18]req_shift_open_date done [07:36:18]produce_requested_data done [07:36:18]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187581,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [07:36:18]process_action_free close_receipt [07:36:18]json_value_free [07:36:18]json_value_free done [07:36:18]process_json_proto returns [07:36:18]Send response to host [07:36:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187581,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [07:36:18]free response buf [07:36:18]execute_script done [07:36:18]execute_script returns [07:36:18]free content buf [07:36:18]Sock 10.Close socket [07:36:18]Sock 10.Thread stoped [07:36:21]OFD Sender: No OFD packet to send [07:36:26]OFD Sender: No OFD packet to send [07:36:31]OFD Sender: No OFD packet to send [07:36:37]OFD Sender: No OFD packet to send [07:36:42]OFD Sender: No OFD packet to send [07:36:47]OFD Sender: No OFD packet to send [07:36:52]OFD Sender: No OFD packet to send [07:36:57]OFD Sender: No OFD packet to send [07:37:02]OFD Sender: No OFD packet to send [07:37:07]OFD Sender: No OFD packet to send [07:37:12]OFD Sender: No OFD packet to send [07:37:17]OFD Sender: No OFD packet to send [07:37:22]OFD Sender: No OFD packet to send [07:37:27]OFD Sender: No OFD packet to send [07:37:32]OFD Sender: No OFD packet to send [07:37:37]OFD Sender: No OFD packet to send [07:37:42]OFD Sender: No OFD packet to send [07:37:47]OFD Sender: No OFD packet to send [07:37:52]accept exits with 8 [07:37:52]New connection [07:37:52]New thread 3067157860 created [07:37:52]Thread 3067014500 joined [07:37:52]Waiting for new connection... [07:37:52] Sock 8.Parse request [07:37:52]Sock 8.Check first char [07:37:52]Sock 8.First char is OK [07:37:52]request: POST /json_proto HTTP/1.0 [07:37:52]Method: POST [07:37:52]URL: /json_proto [07:37:52]Method is POST - this is cgi request [07:37:52]url: /json_proto [07:37:52]query_string will be loaded in cgi processing [07:37:52]execute_cgi json_proto POST (null) [07:37:52]execute_cgi path=json_proto method=POST [07:37:52]POST find Content-Length [07:37:52]Host: 172.17.42.131:8080 [07:37:52]Content-Length: 677 [07:37:52]Content-Type: application/json [07:37:52] [07:37:52]POST finish read [07:37:52]Found Content-Length = 677 [07:37:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209633", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "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:37:52]execute_script... [07:37: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)209633", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "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:37:52]POST & json_proto [07:37:52]process_json_proto [07:37:52]json parsed OK: [07:37:52]protocol is kg_v1.0 [07:37:52]action value=close_receipt [07:37:52]process_action close_receipt [07:37:52]cmd_close_receipt [07:37:52]MH_GetDate [07:37:52]Write to MH i2c: F0 00 00 C4 2B DE [07:37:52]Write i2c OK [07:37:52]MH_I2C_Read... [07:37:52]Read from MH i2c: F0 [07:37:52]MH_I2C_Read... [07:37:52]Read from MH i2c: F0 09 00 [07:37:52]MH_I2C_Read... [07:37:52]Read from MH i2c: F0 09 00 C4 2B 00 D3 04 16 67 A0 18 CA 66 23 [07:37:52]GetLastDocTimeStamp 1729496177 [07:37:52]current date 1729496275 [07:37:52]FM_GetShiftState [07:37:52]SAM_PROTO_GetShiftState [07:37:52]wFMCommunicate request_size=4 [07:37:52]MH_SAM_APDU [07:37:52]CAPDU: 80 13 01 00 [07:37:52]Write to MH i2c: E2 08 00 C5 2B 80 13 01 00 00 00 00 00 6D [07:37:52]Write i2c OK [07:37:52]MH_I2C_Read... [07:37:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:37:52]Read from MH i2c: E2 [07:37:52]MH_I2C_Read... [07:37:52]Read from MH i2c: E2 0E 00 [07:37:52]MH_I2C_Read... [07:37:52]Read from MH i2c: E2 0E 00 C5 2B 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 CC [07:37:52]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [07:37:52]wFMCommunicate OK [07:37:52]SAM_PROTO_GetShiftState done [07:37:52]FM_GetShiftState done [07:37:52]opened in 1729469754 [07:37:52]opened+sec_in_day 1729556154 [07:37:52]quantity*price = 50041 [07:37:52]sum+1 = 50042 [07:37: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 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 46 21.10.2024 07:37 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 187582 ФПД: 29760597087573 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T073755&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187582&fm=29760597087573&tin=02508201610067®Number=0000000000100030&sum=50000 [07:37:53]StoreToDocumentArchive [07:37:53]shift 460 fd 187582 [07:37:53]save to /storage/0460/doc_00187582 [07:37:53]save last doc name /storage/0460/doc_00187582 to /storage/kkm_last_doc_name [07:37:53]save OK [07:37:53]Clear old archive folders... [07:37:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:37:53]tlvbuf is 0112EC40 [07:37:53]SAM_PROTO_ClearQueue [07:37:53]wFMCommunicate request_size=4 [07:37:53]MH_SAM_APDU [07:37:53]CAPDU: 80 09 00 00 [07:37:53]Write to MH i2c: E2 08 00 D2 2B 80 09 00 00 00 00 00 00 6F [07:37:53]Write i2c OK [07:37:53]MH_I2C_Read... [07:37:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:37:53]Read from MH i2c: E2 [07:37:53]MH_I2C_Read... [07:37:53]Read from MH i2c: E2 03 00 [07:37:53]MH_I2C_Read... [07:37:53]Read from MH i2c: E2 03 00 D2 2B 00 90 00 71 [07:37:53]RAPDU: 90 00 [07:37:53]wFMCommunicate OK [07:37:53]SAM_PROTO_ClearQueue done [07:37:53]KKMCreateOFDPacket [07:37:53]OFDProtocolAddRootSTLVToBuf [07:37:53]FM_MakeSignedData [07:37:53]FM_MakeSignedData [07:37:53]SAM_PROTO_SignData [07:37:53]wFMCommunicate request_size=4 [07:37:53]MH_SAM_APDU [07:37:53]CAPDU: 80 0D 01 02 [07:37:53]Write to MH i2c: E2 08 00 D3 2B 80 0D 01 02 00 00 00 00 77 [07:37:53]Write i2c OK [07:37:53]MH_I2C_Read... [07:37:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:37:53]Read from MH i2c: E2 [07:37:53]MH_I2C_Read... [07:37:53]Read from MH i2c: E2 03 00 [07:37:53]MH_I2C_Read... [07:37:53]Read from MH i2c: E2 03 00 D3 2B 00 90 00 72 [07:37:53]RAPDU: 90 00 [07:37:53]wFMCommunicate OK [07:37:53]wFMCommunicate request_size=255 [07:37:53]MH_SAM_APDU [07:37: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 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 D3 04 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 BE DC 02 00 35 04 06 00 1B [07:37:53]Write to MH i2c: E2 02 01 D4 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 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 D3 04 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 BE DC 02 00 35 04 06 00 1B 00 00 F0 [07:37:53]Write i2c OK [07:37:53]MH_I2C_Read... [07:37:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:37:53]Read from MH i2c: E2 [07:37:53]MH_I2C_Read... [07:37:53]Read from MH i2c: E2 03 00 [07:37:53]MH_I2C_Read... [07:37:53]Read from MH i2c: E2 03 00 D4 2B 00 90 00 73 [07:37:53]RAPDU: 90 00 [07:37:53]wFMCommunicate OK [07:37:53]wFMCommunicate request_size=10 [07:37:53]MH_SAM_APDU [07:37:53]CAPDU: 80 0D 02 02 05 11 2D D1 55 55 [07:37:53]Write to MH i2c: E2 0D 00 D5 2B 80 0D 02 02 05 00 11 2D D1 55 55 00 00 3D [07:37:53]Write i2c OK [07:37:53]MH_I2C_Read... [07:37:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:37:53]Read from MH i2c: E2 [07:37:53]MH_I2C_Read... [07:37:53]Read from MH i2c: E2 03 00 [07:37:53]MH_I2C_Read... [07:37:53]Read from MH i2c: E2 03 00 D5 2B 00 90 00 74 [07:37:53]RAPDU: 90 00 [07:37:53]wFMCommunicate OK [07:37:53]wFMCommunicate request_size=4 [07:37:53]MH_SAM_APDU [07:37:53]CAPDU: 80 0D 03 02 [07:37:53]Write to MH i2c: E2 08 00 D6 2B 80 0D 03 02 00 00 00 00 7C [07:37:53]Write i2c OK [07:37:53]MH_I2C_Read... [07:37:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:37:53]Read from MH i2c: E2 [07:37:53]MH_I2C_Read... [07:37:53]Read from MH i2c: E2 0B 00 [07:37:53]MH_I2C_Read... [07:37:53]Read from MH i2c: E2 0B 00 D6 2B 00 F9 CC E0 62 C9 E9 16 04 90 00 50 [07:37:53]RAPDU: F9 CC E0 62 C9 E9 16 04 90 00 [07:37:53]wFMCommunicate OK [07:37:53]SAM_PROTO_SignData done [07:37:53]FM_MakeSignedData done [07:37:53]CreateOFDProtocolMessage [07:37:53]wFMCommunicate request_size=4 [07:37:53]MH_SAM_APDU [07:37:53]CAPDU: 80 11 00 00 [07:37:53]Write to MH i2c: E2 08 00 D7 2B 80 11 00 00 00 00 00 00 7C [07:37:53]Write i2c OK [07:37:53]MH_I2C_Read... [07:37:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:37:53]Read from MH i2c: E2 [07:37:53]MH_I2C_Read... [07:37:53]Read from MH i2c: E2 17 00 [07:37:53]MH_I2C_Read... [07:37:53]Read from MH i2c: E2 17 00 D7 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 CA [07:37:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [07:37:53]wFMCommunicate OK [07:37:53]CreateOFDProtocolMessage done [07:37:53]OFDSenderStorePacket 187582 [07:37:53]StoreOFDPacket docnum=187582 [07:37:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 6C 97 07 01 BC 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 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 D3 04 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 BE DC 02 00 35 04 06 00 1B 11 2D D1 55 55 F9 CC E0 62 C9 E9 16 04 [07:37:53]CheckFolder [07:37:53]dirname=/storage/ofd_packets [07:37:53]CheckFolder done [07:37:53]ProducePacketName [07:37:53]name=ofd_packets/00187582 [07:37:53]NVStorageSaveData ofd_packets/00187582 [07:37:53]File name is /storage/ofd_packets/00187582 [07:37:53]Write 301 bytes [07:37:53]NVStorageSaveData done [07:37:53]OFDSenderStorePacket done [07:37:53]KKMCreateOFDPacket done [07:37:53]NVStorageSaveData kkm_last_timestamp [07:37:53]File name is /storage/kkm_last_timestamp [07:37:53]Write 4 bytes [07:37:53]NVStorageSaveData done [07:37:53]ExternCall_PrintAddStr [07:37:53]wPrintStart [07:37:53]Write to MH i2c: 01 00 00 D8 2B 03 [07:37:53]Write i2c OK [07:37:53]MH_I2C_Read... [07:37:53]Read from MH i2c: 01 [07:37:53]MH_I2C_Read... [07:37:53]Read from MH i2c: 01 07 00 [07:37:53]MH_I2C_Read... [07:37:53]Read from MH i2c: 01 07 00 D8 2B 00 00 00 00 00 FF 0F 18 [07:37:53]RasterBufferAndPrint [07:37:53]line Счет N : (1)209633 [07:37:53]line ИНН: 02508201610067 [07:37:53]line Контрольно-Кассовый Чек [07:37:53]line ПРОДАЖА [07:37:53]line ТРК (МРК, ГНК) : 42 [07:37:53]line Товар: 2710124130 [07:37:53]line Аи-92-К-3 [07:37:53]line 7.480 * 66.90 [07:37:53]line = 500.41 [07:37:53]line НДС 12% НСП 1% [07:37:53]line > о реализуемом товаре [07:37:53]line ОКРУГЛЕНИЕ: -0.41 [07:37:53]line ИТОГО: 500.00 [07:37:53]line Внесено: 500.00 [07:37:53]line СДАЧА: 0.00 [07:37:53]line НСП 1% : 4.43 [07:37:53]line НДС 12% : 53.14 [07:37:53]line Наличными: 500.00 [07:37:53]line Безнал.: 0.00 [07:37:53]line Место: АЗС № 86 "Партнер Нефть" [07:37:53]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [07:37:53]line СНО: Общий режим [07:37:53]line Чек 46 21.10.2024 07:37 [07:37:53]line Смена: 460 ФФД: 1.0 [07:37:53]line ЗНМ: 0300000155 [07:37:53]line РНМ: 0000000000100030 [07:37:53]line Версия ККМ: 001 [07:37:53]line ФМ: 0000000000965340 [07:37:53]line ФД: 187582 [07:37:53]line ФПД: 29760597087573 [07:37:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T073755&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187582&fm=29760597087573&tin=02508201610067®Number=0000000000100030&sum=50000 [07:37:53]written 0, free lines is 4095 [07:37:53]OFD Sender: Processing packet 187582 [packets to send 1062, broken 1061] [07:37:53]ProducePacketName [07:37:53]name=ofd_packets/00187582 [07:37:53]OFD Sender: To server: pG, [07:37:53]CommunicateWithHost lk.salyk.kg:30040 [07:37:53]ConnectInit lk.salyk.kg [07:37:54]Connected sock=11 [07:37:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 6C 97 07 01 BC 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 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 D3 04 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 BE DC 02 00 35 04 06 00 1B 11 2D D1 55 55 F9 CC E0 62 C9 E9 16 04 [07:37:54]Write to MH i2c: 01 00 00 03 2C 2F [07:37:54]Write i2c OK [07:37:54]MH_I2C_Read... [07:37:54]Read from MH i2c: 01 [07:37:54]MH_I2C_Read... [07:37:54]Read from MH i2c: 01 07 00 [07:37:54]MH_I2C_Read... [07:37:54]Read from MH i2c: 01 07 00 03 2C 00 00 00 00 00 50 0C 92 [07:37:54]RasterBufferAndPrint [07:37:54]line [07:37:54]line [07:37:54]line [07:37:54]line [07:37:54]line [07:37:54]written 0, free lines is 3155 [07:37:54]MH_Cut [07:37:54]Write to MH i2c: D1 01 00 0A 2C 01 08 [07:37:54]Write i2c OK [07:37:54]MH_I2C_Read... [07:37:54]Read from MH i2c: D1 [07:37:54]MH_I2C_Read... [07:37:54]Read from MH i2c: D1 01 00 [07:37:54]MH_I2C_Read... [07:37:54]Read from MH i2c: D1 01 00 0A 2C 00 07 [07:37:54]Write to MH i2c: 01 00 00 0B 2C 37 [07:37:54]Write i2c OK [07:37:54]MH_I2C_Read... [07:37:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 1F 2D 47 00 8A 74 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 BE DC 02 00 F4 03 04 00 C3 AE 15 67 B6 04 01 00 00 23 31 EB 32 8D 12 F6 17 [07:37:54]CommunicateWithHost err = 0 [07:37:54]CheckOFDResponse [07:37:54]1017 (14) - 77093643461234 [07:37:54]1041 (16) - 0000000000965340 [07:37:54]1040 (4) - 187582 [07:37:54]1012 (4) - 21.10.2024 01:30 [07:37:54]1206 (1) - 0 [07:37:54]OFD Sender: Remove packet 187582 [07:37:54]ProducePacketName [07:37:54]name=ofd_packets/00187582 [07:37:54]NVStorageDeleteData [07:37:55]OFD Sender: No OFD packet to send [07:37:55]*** Cut start [07:37:55]*** Partial cut [07:37:55]*** CUTSNS_PIN = 1 [07:37:55]*** CUTSNS_PIN = 0 [07:37:55]*** Brake cut motor [07:37:56]Read from MH i2c: 01 [07:37:56]MH_I2C_Read... [07:37:56]*** Stop cut motor [07:37:56]*** Cut end [07:37:56]Read from MH i2c: 01 07 00 [07:37:56]MH_I2C_Read... [07:37:56]Read from MH i2c: 01 07 00 0B 2C 00 00 00 00 00 FF 0F 4C [07:37:56]process_action close_receipt done [07:37:56]requested_data is exist [07:37:56]produce_requested_data [07:37:56]requested_item fm.sn is exist - process it [07:37:56]wFMCommunicate request_size=4 [07:37:56]MH_SAM_APDU [07:37:56]CAPDU: 80 11 00 00 [07:37:56]Write to MH i2c: E2 08 00 0C 2C 80 11 00 00 00 00 00 00 B2 [07:37:56]Write i2c OK [07:37:56]MH_I2C_Read... [07:37:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:37:56]Read from MH i2c: E2 [07:37:56]MH_I2C_Read... [07:37:56]Read from MH i2c: E2 17 00 [07:37:56]MH_I2C_Read... [07:37:56]Read from MH i2c: E2 17 00 0C 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 00 [07:37:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [07:37:56]wFMCommunicate OK [07:37:56]requested_item fd.num is exist - process it [07:37:56]SAM_PROTO_GetFieldsCounters [07:37:56]wFMCommunicate request_size=4 [07:37:56]MH_SAM_APDU [07:37:56]CAPDU: 80 13 00 00 [07:37:56]Write to MH i2c: E2 08 00 0D 2C 80 13 00 00 00 00 00 00 B5 [07:37:56]Write i2c OK [07:37:56]MH_I2C_Read... [07:37:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:37:56]Read from MH i2c: E2 [07:37:56]MH_I2C_Read... [07:37:56]Read from MH i2c: E2 62 00 [07:37:56]MH_I2C_Read... [07:37:56]Read from MH i2c: E2 62 00 0D 2C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 BE DC 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 2E 00 00 00 5E 04 04 00 2E 00 00 00 57 04 04 00 2F 00 00 00 19 04 04 00 00 00 00 00 90 00 AF [07:37:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 BE DC 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 2E 00 00 00 5E 04 04 00 2E 00 00 00 57 04 04 00 2F 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:37:56]wFMCommunicate OK [07:37:56]SAM_PROTO_GetFieldsCounters done [07:37:56]requested_item shift.num is exist - process it [07:37:56]requested_item shift.opened is exist - process it [07:37:56]req_shift_opened [07:37:56]FM_GetShiftState [07:37:56]SAM_PROTO_GetShiftState [07:37:56]wFMCommunicate request_size=4 [07:37:56]MH_SAM_APDU [07:37:56]CAPDU: 80 13 01 00 [07:37:56]Write to MH i2c: E2 08 00 0E 2C 80 13 01 00 00 00 00 00 B7 [07:37:56]Write i2c OK [07:37:56]MH_I2C_Read... [07:37:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:37:56]Read from MH i2c: E2 [07:37:56]MH_I2C_Read... [07:37:56]Read from MH i2c: E2 0E 00 [07:37:56]MH_I2C_Read... [07:37:56]Read from MH i2c: E2 0E 00 0E 2C 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 16 [07:37:56]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [07:37:56]wFMCommunicate OK [07:37:56]SAM_PROTO_GetShiftState done [07:37:56]FM_GetShiftState done [07:37:56]req_shift_opened done [07:37:56]requested_item shift.open_date is exist - process it [07:37:56]req_shift_open_date [07:37:56]req_shift_open_date done [07:37:56]produce_requested_data done [07:37:56]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187582,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [07:37:56]process_action_free close_receipt [07:37:56]json_value_free [07:37:56]json_value_free done [07:37:56]process_json_proto returns [07:37:56]Send response to host [07:37:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187582,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [07:37:56]free response buf [07:37:56]execute_script done [07:37:56]execute_script returns [07:37:56]free content buf [07:37:56]Sock 8.Close socket [07:37:56]Sock 8.Thread stoped [07:38:00]OFD Sender: No OFD packet to send [07:38:05]OFD Sender: No OFD packet to send [07:38:10]OFD Sender: No OFD packet to send [07:38:15]OFD Sender: No OFD packet to send [07:38:20]OFD Sender: No OFD packet to send [07:38:25]OFD Sender: No OFD packet to send [07:38:30]OFD Sender: No OFD packet to send [07:38:35]OFD Sender: No OFD packet to send [07:38:40]OFD Sender: No OFD packet to send [07:38:45]OFD Sender: No OFD packet to send [07:38:50]OFD Sender: No OFD packet to send [07:38:55]OFD Sender: No OFD packet to send [07:39:00]OFD Sender: No OFD packet to send [07:39:05]OFD Sender: No OFD packet to send [07:39:10]OFD Sender: No OFD packet to send [07:39:15]OFD Sender: No OFD packet to send [07:39:20]OFD Sender: No OFD packet to send [07:39:25]OFD Sender: No OFD packet to send [07:39:30]OFD Sender: No OFD packet to send [07:39:35]OFD Sender: No OFD packet to send [07:39:40]OFD Sender: No OFD packet to send [07:39:45]OFD Sender: No OFD packet to send [07:39:50]OFD Sender: No OFD packet to send [07:39:55]OFD Sender: No OFD packet to send [07:40:00]OFD Sender: No OFD packet to send [07:40:05]OFD Sender: No OFD packet to send [07:40:10]OFD Sender: No OFD packet to send [07:40:15]OFD Sender: No OFD packet to send [07:40:20]OFD Sender: No OFD packet to send [07:40:25]OFD Sender: No OFD packet to send [07:40:30]OFD Sender: No OFD packet to send [07:40:35]OFD Sender: No OFD packet to send [07:40:40]OFD Sender: No OFD packet to send [07:40:45]OFD Sender: No OFD packet to send [07:40:50]OFD Sender: No OFD packet to send [07:40:55]OFD Sender: No OFD packet to send [07:41:00]OFD Sender: No OFD packet to send [07:41:05]OFD Sender: No OFD packet to send [07:41:10]OFD Sender: No OFD packet to send [07:41:15]OFD Sender: No OFD packet to send [07:41:20]OFD Sender: No OFD packet to send [07:41:25]OFD Sender: No OFD packet to send [07:41: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:26]OFD Sender: No OFD packet to send [07:43:31]OFD Sender: No OFD packet to send [07:43:36]OFD Sender: No OFD packet to send [07:43:41]OFD Sender: No OFD packet to send [07:43:46]OFD Sender: No OFD packet to send [07:43:51]OFD Sender: No OFD packet to send [07:43:56]OFD Sender: No OFD packet to send [07:44:01]OFD Sender: No OFD packet to send [07:44:06]OFD Sender: No OFD packet to send [07:44:11]OFD Sender: No OFD packet to send [07:44:16]OFD Sender: No OFD packet to send [07:44:21]OFD Sender: No OFD packet to send [07:44:26]OFD Sender: No OFD packet to send [07:44:31]OFD Sender: No OFD packet to send [07:44:36]OFD Sender: No OFD packet to send [07:44:41]OFD Sender: No OFD packet to send [07:44:46]OFD Sender: No OFD packet to send [07:44:51]OFD Sender: No OFD packet to send [07:44:56]OFD Sender: No OFD packet to send [07:45:01]OFD Sender: No OFD packet to send [07:45:06]OFD Sender: No OFD packet to send [07:45:11]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:38]accept exits with 9 [07:45:38]New connection [07:45:38]New thread 3067014500 created [07:45:38]Thread 3067157860 joined [07:45:38]Waiting for new connection... [07:45:38] Sock 9.Parse request [07:45:38]Sock 9.Check first char [07:45:38]Sock 9.First char is OK [07:45:38]request: POST /json_proto HTTP/1.0 [07:45:38]Method: POST [07:45:38]URL: /json_proto [07:45:38]Method is POST - this is cgi request [07:45:38]url: /json_proto [07:45:38]query_string will be loaded in cgi processing [07:45:38]execute_cgi json_proto POST (null) [07:45:38]execute_cgi path=json_proto method=POST [07:45:38]POST find Content-Length [07:45:38]Host: 172.17.42.131:8080 [07:45:38]Content-Length: 688 [07:45:38]Content-Type: application/json [07:45:38] [07:45:38]POST finish read [07:45:38]Found Content-Length = 688 [07:45:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209634", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 24.550, "sum" : 1895.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1895.00, "total" : 1895.00, "payments": [ { "type": 0, "sum" : 1895.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:45:38]execute_script... [07:45: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)209634", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 24.550, "sum" : 1895.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1895.00, "total" : 1895.00, "payments": [ { "type": 0, "sum" : 1895.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:45:38]POST & json_proto [07:45:38]process_json_proto [07:45:38]json parsed OK: [07:45:38]protocol is kg_v1.0 [07:45:38]action value=close_receipt [07:45:38]process_action close_receipt [07:45:38]cmd_close_receipt [07:45:38]MH_GetDate [07:45:38]Write to MH i2c: F0 00 00 0F 2C 2A [07:45:38]Write i2c OK [07:45:38]MH_I2C_Read... [07:45:38]Read from MH i2c: F0 [07:45:38]MH_I2C_Read... [07:45:38]Read from MH i2c: F0 09 00 [07:45:38]MH_I2C_Read... [07:45:38]Read from MH i2c: F0 09 00 0F 2C 00 A5 06 16 67 A0 18 CA 66 43 [07:45:38]GetLastDocTimeStamp 1729496275 [07:45:38]current date 1729496741 [07:45:38]FM_GetShiftState [07:45:38]SAM_PROTO_GetShiftState [07:45:38]wFMCommunicate request_size=4 [07:45:38]MH_SAM_APDU [07:45:38]CAPDU: 80 13 01 00 [07:45:38]Write to MH i2c: E2 08 00 10 2C 80 13 01 00 00 00 00 00 B9 [07:45:38]Write i2c OK [07:45:38]MH_I2C_Read... [07:45:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:45:38]Read from MH i2c: E2 [07:45:38]MH_I2C_Read... [07:45:38]Read from MH i2c: E2 0E 00 [07:45:38]MH_I2C_Read... [07:45:38]Read from MH i2c: E2 0E 00 10 2C 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 18 [07:45:38]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [07:45:38]wFMCommunicate OK [07:45:38]SAM_PROTO_GetShiftState done [07:45:38]FM_GetShiftState done [07:45:38]opened in 1729469754 [07:45:38]opened+sec_in_day 1729556154 [07:45:38]quantity*price = 189526 [07:45:38]sum+1 = 189527 [07:45:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.26 ИТОГО: 1895.00 Внесено: 1895.00 СДАЧА: 0.00 НСП 1% : 16.77 НДС 12% : 201.27 Наличными: 1895.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 47 21.10.2024 07:45 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 187583 ФПД: 199440777857205 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T074541&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187583&fm=199440777857205&tin=02508201610067®Number=0000000000100030&sum=189500 [07:45:39]StoreToDocumentArchive [07:45:39]shift 460 fd 187583 [07:45:39]save to /storage/0460/doc_00187583 [07:45:39]save last doc name /storage/0460/doc_00187583 to /storage/kkm_last_doc_name [07:45:39]save OK [07:45:39]Clear old archive folders... [07:45:39]ProcessDocumentItem done err = 0, tmpTLVsize=257 [07:45:39]tlvbuf is B6F8A670 [07:45:39]SAM_PROTO_ClearQueue [07:45:39]wFMCommunicate request_size=4 [07:45:39]MH_SAM_APDU [07:45:39]CAPDU: 80 09 00 00 [07:45:39]Write to MH i2c: E2 08 00 1D 2C 80 09 00 00 00 00 00 00 BB [07:45:39]Write i2c OK [07:45:39]MH_I2C_Read... [07:45:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:45:39]Read from MH i2c: E2 [07:45:39]MH_I2C_Read... [07:45:39]Read from MH i2c: E2 03 00 [07:45:39]MH_I2C_Read... [07:45:39]Read from MH i2c: E2 03 00 1D 2C 00 90 00 BD [07:45:39]RAPDU: 90 00 [07:45:39]wFMCommunicate OK [07:45:39]SAM_PROTO_ClearQueue done [07:45:39]KKMCreateOFDPacket [07:45:39]OFDProtocolAddRootSTLVToBuf [07:45:39]FM_MakeSignedData [07:45:39]FM_MakeSignedData [07:45:39]SAM_PROTO_SignData [07:45:39]wFMCommunicate request_size=4 [07:45:39]MH_SAM_APDU [07:45:39]CAPDU: 80 0D 01 02 [07:45:39]Write to MH i2c: E2 08 00 1E 2C 80 0D 01 02 00 00 00 00 C3 [07:45:39]Write i2c OK [07:45:39]MH_I2C_Read... [07:45:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:45:39]Read from MH i2c: E2 [07:45:39]MH_I2C_Read... [07:45:39]Read from MH i2c: E2 03 00 [07:45:39]MH_I2C_Read... [07:45:39]Read from MH i2c: E2 03 00 1E 2C 00 90 00 BE [07:45:39]RAPDU: 90 00 [07:45:39]wFMCommunicate OK [07:45:39]wFMCommunicate request_size=255 [07:45:39]MH_SAM_APDU [07:45:39]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E6 5F 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 56 E4 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C E4 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8D 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9F 4E 00 00 00 00 07 04 06 00 3C E4 02 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 A5 06 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 BF DC 02 [07:45:39]Write to MH i2c: E2 02 01 1F 2C 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E6 5F 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 56 E4 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C E4 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8D 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9F 4E 00 00 00 00 07 04 06 00 3C E4 02 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 A5 06 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 BF DC 02 00 00 8A [07:45:39]Write i2c OK [07:45:39]MH_I2C_Read... [07:45:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:45:40]Read from MH i2c: E2 [07:45:40]MH_I2C_Read... [07:45:40]Read from MH i2c: E2 03 00 [07:45:40]MH_I2C_Read... [07:45:40]Read from MH i2c: E2 03 00 1F 2C 00 90 00 BF [07:45:40]RAPDU: 90 00 [07:45:40]wFMCommunicate OK [07:45:40]wFMCommunicate request_size=16 [07:45:40]MH_SAM_APDU [07:45:40]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 B5 63 EC B7 C8 B5 [07:45:40]Write to MH i2c: E2 13 00 20 2C 80 0D 02 02 0B 00 00 35 04 06 00 B5 63 EC B7 C8 B5 00 00 53 [07:45:40]Write i2c OK [07:45:40]MH_I2C_Read... [07:45:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:45:40]Read from MH i2c: E2 [07:45:40]MH_I2C_Read... [07:45:40]Read from MH i2c: E2 03 00 [07:45:40]MH_I2C_Read... [07:45:40]Read from MH i2c: E2 03 00 20 2C 00 90 00 C0 [07:45:40]RAPDU: 90 00 [07:45:40]wFMCommunicate OK [07:45:40]wFMCommunicate request_size=4 [07:45:40]MH_SAM_APDU [07:45:40]CAPDU: 80 0D 03 02 [07:45:40]Write to MH i2c: E2 08 00 21 2C 80 0D 03 02 00 00 00 00 C8 [07:45:40]Write i2c OK [07:45:40]MH_I2C_Read... [07:45:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:45:40]Read from MH i2c: E2 [07:45:40]MH_I2C_Read... [07:45:40]Read from MH i2c: E2 0B 00 [07:45:40]MH_I2C_Read... [07:45:40]Read from MH i2c: E2 0B 00 21 2C 00 5E 95 AC 07 8D 7E 29 D4 90 00 77 [07:45:40]RAPDU: 5E 95 AC 07 8D 7E 29 D4 90 00 [07:45:40]wFMCommunicate OK [07:45:40]SAM_PROTO_SignData done [07:45:40]FM_MakeSignedData done [07:45:40]CreateOFDProtocolMessage [07:45:40]wFMCommunicate request_size=4 [07:45:40]MH_SAM_APDU [07:45:40]CAPDU: 80 11 00 00 [07:45:40]Write to MH i2c: E2 08 00 22 2C 80 11 00 00 00 00 00 00 C8 [07:45:40]Write i2c OK [07:45:40]MH_I2C_Read... [07:45:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:45:40]Read from MH i2c: E2 [07:45:40]MH_I2C_Read... [07:45:40]Read from MH i2c: E2 17 00 [07:45:40]MH_I2C_Read... [07:45:40]Read from MH i2c: E2 17 00 22 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 16 [07:45:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [07:45:40]wFMCommunicate OK [07:45:40]CreateOFDProtocolMessage done [07:45:40]OFDSenderStorePacket 187583 [07:45:40]StoreOFDPacket docnum=187583 [07:45:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 DD FA 0D 01 CE 8A 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 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E6 5F 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 56 E4 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C E4 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8D 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9F 4E 00 00 00 00 07 04 06 00 3C E4 02 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 A5 06 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 BF DC 02 00 35 04 06 00 B5 63 EC B7 C8 B5 5E 95 AC 07 8D 7E 29 D4 [07:45:40]CheckFolder [07:45:40]dirname=/storage/ofd_packets [07:45:40]CheckFolder done [07:45:40]ProducePacketName [07:45:40]name=ofd_packets/00187583 [07:45:40]NVStorageSaveData ofd_packets/00187583 [07:45:40]File name is /storage/ofd_packets/00187583 [07:45:40]Write 307 bytes [07:45:40]NVStorageSaveData done [07:45:40]OFDSenderStorePacket done [07:45:40]KKMCreateOFDPacket done [07:45:40]NVStorageSaveData kkm_last_timestamp [07:45:40]File name is /storage/kkm_last_timestamp [07:45:40]Write 4 bytes [07:45:40]NVStorageSaveData done [07:45:40]ExternCall_PrintAddStr [07:45:40]wPrintStart [07:45:40]Write to MH i2c: 01 00 00 23 2C 4F [07:45:40]Write i2c OK [07:45:40]MH_I2C_Read... [07:45:40]Read from MH i2c: 01 [07:45:40]MH_I2C_Read... [07:45:40]Read from MH i2c: 01 07 00 [07:45:40]MH_I2C_Read... [07:45:40]Read from MH i2c: 01 07 00 23 2C 00 00 00 00 00 FF 0F 64 [07:45:40]RasterBufferAndPrint [07:45:40]line Счет N : (1)209634 [07:45:40]line ИНН: 02508201610067 [07:45:40]line Контрольно-Кассовый Чек [07:45:40]line ПРОДАЖА [07:45:40]line ТРК (МРК, ГНК) : 11 [07:45:40]line Товар: 2710194210 [07:45:40]line D-ENERGY ДТ-К-5 [07:45:40]line 24.550 * 77.20 [07:45:40]line = 1895.26 [07:45:40]line НДС 12% НСП 1% [07:45:40]line > о реализуемом товаре [07:45:40]line ОКРУГЛЕНИЕ: -0.26 [07:45:40]line ИТОГО: 1895.00 [07:45:40]line Внесено: 1895.00 [07:45:40]line СДАЧА: 0.00 [07:45:40]line НСП 1% : 16.77 [07:45:40]line НДС 12% : 201.27 [07:45:40]line Наличными: 1895.00 [07:45:40]line Безнал.: 0.00 [07:45:40]line Место: АЗС № 86 "Партнер Нефть" [07:45:40]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [07:45:40]line СНО: Общий режим [07:45:40]line Чек 47 21.10.2024 07:45 [07:45:40]line Смена: 460 ФФД: 1.0 [07:45:40]line ЗНМ: 0300000155 [07:45:40]line РНМ: 0000000000100030 [07:45:40]line Версия ККМ: 001 [07:45:40]line ФМ: 0000000000965340 [07:45:40]line ФД: 187583 [07:45:40]line ФПД: 199440777857205 [07:45:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T074541&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187583&fm=199440777857205&tin=02508201610067®Number=0000000000100030&sum=189500 [07:45:40]OFD Sender: Processing packet 187583 [packets to send 1062, broken 1061] [07:45:40]ProducePacketName [07:45:40]name=ofd_packets/00187583 [07:45:40]OFD Sender: To server: pG, [07:45:40]CommunicateWithHost lk.salyk.kg:30040 [07:45:40]ConnectInit lk.salyk.kg [07:45:40]written 0, free lines is 4095 [07:45:40]Connected sock=10 [07:45:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 DD FA 0D 01 CE 8A 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 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E6 5F 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 56 E4 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C E4 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8D 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9F 4E 00 00 00 00 07 04 06 00 3C E4 02 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 A5 06 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 BF DC 02 00 35 04 06 00 B5 63 EC B7 C8 B5 5E 95 AC 07 8D 7E 29 D4 [07:45:41]Write to MH i2c: 01 00 00 4E 2C 7A [07:45:41]Write i2c OK [07:45:41]MH_I2C_Read... [07:45:41]Read from MH i2c: 01 [07:45:41]MH_I2C_Read... [07:45:41]Read from MH i2c: 01 07 00 [07:45:41]MH_I2C_Read... [07:45:41]Read from MH i2c: 01 07 00 4E 2C 00 00 00 00 00 4E 0C DB [07:45:41]RasterBufferAndPrint [07:45:41]line [07:45:41]line [07:45:41]line [07:45:41]line [07:45:41]line [07:45:41]written 0, free lines is 3153 [07:45:41]MH_Cut [07:45:41]Write to MH i2c: D1 01 00 55 2C 01 53 [07:45:41]Write i2c OK [07:45:41]MH_I2C_Read... [07:45:41]Read from MH i2c: D1 [07:45:41]MH_I2C_Read... [07:45:41]Read from MH i2c: D1 01 00 [07:45:41]MH_I2C_Read... [07:45:41]Read from MH i2c: D1 01 00 55 2C 00 52 [07:45:41]Write to MH i2c: 01 00 00 56 2C 82 [07:45:41]Write i2c OK [07:45:41]MH_I2C_Read... [07:45:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 4A 5C 47 00 4F 2E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 BF DC 02 00 F4 03 04 00 96 B0 15 67 B6 04 01 00 00 4C EE AB 5B 25 AF 6F F6 [07:45:41]CommunicateWithHost err = 0 [07:45:41]CheckOFDResponse [07:45:41]1017 (14) - 77093643461234 [07:45:41]1041 (16) - 0000000000965340 [07:45:41]1040 (4) - 187583 [07:45:41]1012 (4) - 21.10.2024 01:38 [07:45:41]1206 (1) - 0 [07:45:41]OFD Sender: Remove packet 187583 [07:45:41]ProducePacketName [07:45:41]name=ofd_packets/00187583 [07:45:41]NVStorageDeleteData [07:45:41]OFD Sender: No OFD packet to send [07:45:42]*** Cut start [07:45:42]*** Partial cut [07:45:42]*** CUTSNS_PIN = 1 [07:45:42]*** CUTSNS_PIN = 0 [07:45:42]*** Brake cut motor [07:45:43]Read from MH i2c: 01 [07:45:43]MH_I2C_Read... [07:45:43]*** Stop cut motor [07:45:43]*** Cut end [07:45:43]Read from MH i2c: 01 07 00 [07:45:43]MH_I2C_Read... [07:45:43]Read from MH i2c: 01 07 00 56 2C 00 00 00 00 00 FF 0F 97 [07:45:43]process_action close_receipt done [07:45:43]requested_data is exist [07:45:43]produce_requested_data [07:45:43]requested_item fm.sn is exist - process it [07:45:43]wFMCommunicate request_size=4 [07:45:43]MH_SAM_APDU [07:45:43]CAPDU: 80 11 00 00 [07:45:43]Write to MH i2c: E2 08 00 57 2C 80 11 00 00 00 00 00 00 FD [07:45:43]Write i2c OK [07:45:43]MH_I2C_Read... [07:45:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:45:43]Read from MH i2c: E2 [07:45:43]MH_I2C_Read... [07:45:43]Read from MH i2c: E2 17 00 [07:45:43]MH_I2C_Read... [07:45:43]Read from MH i2c: E2 17 00 57 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 4B [07:45:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [07:45:43]wFMCommunicate OK [07:45:43]requested_item fd.num is exist - process it [07:45:43]SAM_PROTO_GetFieldsCounters [07:45:43]wFMCommunicate request_size=4 [07:45:43]MH_SAM_APDU [07:45:43]CAPDU: 80 13 00 00 [07:45:43]Write to MH i2c: E2 08 00 58 2C 80 13 00 00 00 00 00 00 00 [07:45:43]Write i2c OK [07:45:43]MH_I2C_Read... [07:45:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:45:43]Read from MH i2c: E2 [07:45:43]MH_I2C_Read... [07:45:43]Read from MH i2c: E2 62 00 [07:45:43]MH_I2C_Read... [07:45:43]Read from MH i2c: E2 62 00 58 2C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 BF DC 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 2F 00 00 00 5E 04 04 00 2F 00 00 00 57 04 04 00 30 00 00 00 19 04 04 00 00 00 00 00 90 00 FE [07:45:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 BF DC 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 2F 00 00 00 5E 04 04 00 2F 00 00 00 57 04 04 00 30 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:45:43]wFMCommunicate OK [07:45:43]SAM_PROTO_GetFieldsCounters done [07:45:43]requested_item shift.num is exist - process it [07:45:43]requested_item shift.opened is exist - process it [07:45:43]req_shift_opened [07:45:43]FM_GetShiftState [07:45:43]SAM_PROTO_GetShiftState [07:45:43]wFMCommunicate request_size=4 [07:45:43]MH_SAM_APDU [07:45:43]CAPDU: 80 13 01 00 [07:45:43]Write to MH i2c: E2 08 00 59 2C 80 13 01 00 00 00 00 00 02 [07:45:43]Write i2c OK [07:45:43]MH_I2C_Read... [07:45:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:45:43]Read from MH i2c: E2 [07:45:43]MH_I2C_Read... [07:45:43]Read from MH i2c: E2 0E 00 [07:45:43]MH_I2C_Read... [07:45:43]Read from MH i2c: E2 0E 00 59 2C 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 61 [07:45:43]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [07:45:43]wFMCommunicate OK [07:45:43]SAM_PROTO_GetShiftState done [07:45:43]FM_GetShiftState done [07:45:43]req_shift_opened done [07:45:43]requested_item shift.open_date is exist - process it [07:45:43]req_shift_open_date [07:45:43]req_shift_open_date done [07:45:43]produce_requested_data done [07:45:43]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187583,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [07:45:43]process_action_free close_receipt [07:45:43]json_value_free [07:45:43]json_value_free done [07:45:43]process_json_proto returns [07:45:43]Send response to host [07:45:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187583,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [07:45:43]free response buf [07:45:43]execute_script done [07:45:43]execute_script returns [07:45:43]free content buf [07:45:43]Sock 9.Close socket [07:45:43]Sock 9.Thread stoped [07:45:46]OFD Sender: No OFD packet to send [07:45:51]OFD Sender: No OFD packet to send [07:45:56]OFD Sender: No OFD packet to send [07:46:01]OFD Sender: No OFD packet to send [07:46:06]OFD Sender: No OFD packet to send [07:46:11]OFD Sender: No OFD packet to send [07:46:16]OFD Sender: No OFD packet to send [07:46:21]OFD Sender: No OFD packet to send [07:46:26]OFD Sender: No OFD packet to send [07:46:31]OFD Sender: No OFD packet to send [07:46:36]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:53]accept exits with 8 [07:46:53]New connection [07:46:53]New thread 3067157860 created [07:46:53]Thread 3067014500 joined [07:46:53]Waiting for new connection... [07:46:53] Sock 8.Parse request [07:46:53]Sock 8.Check first char [07:46:53]Sock 8.First char is OK [07:46:53]request: POST /json_proto HTTP/1.0 [07:46:53]Method: POST [07:46:53]URL: /json_proto [07:46:53]Method is POST - this is cgi request [07:46:53]url: /json_proto [07:46:53]query_string will be loaded in cgi processing [07:46:53]execute_cgi json_proto POST (null) [07:46:53]execute_cgi path=json_proto method=POST [07:46:53]POST find Content-Length [07:46:53]Host: 172.17.42.131:8080 [07:46:53]Content-Length: 679 [07:46:53]Content-Type: application/json [07:46:53] [07:46:53]POST finish read [07:46:53]Found Content-Length = 679 [07:46:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209635", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 19.690, "sum" : 1500.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:46:53]execute_script... [07:46: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)209635", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 19.690, "sum" : 1500.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:46:53]POST & json_proto [07:46:53]process_json_proto [07:46:53]json parsed OK: [07:46:53]protocol is kg_v1.0 [07:46:53]action value=close_receipt [07:46:53]process_action close_receipt [07:46:53]cmd_close_receipt [07:46:53]MH_GetDate [07:46:53]Write to MH i2c: F0 00 00 5A 2C 75 [07:46:53]Write i2c OK [07:46:53]MH_I2C_Read... [07:46:53]Read from MH i2c: F0 [07:46:53]MH_I2C_Read... [07:46:53]Read from MH i2c: F0 09 00 [07:46:53]MH_I2C_Read... [07:46:53]Read from MH i2c: F0 09 00 5A 2C 00 F0 06 16 67 A0 18 CA 66 D9 [07:46:53]GetLastDocTimeStamp 1729496741 [07:46:53]current date 1729496816 [07:46:53]FM_GetShiftState [07:46:53]SAM_PROTO_GetShiftState [07:46:53]wFMCommunicate request_size=4 [07:46:53]MH_SAM_APDU [07:46:53]CAPDU: 80 13 01 00 [07:46:53]Write to MH i2c: E2 08 00 5B 2C 80 13 01 00 00 00 00 00 04 [07:46:53]Write i2c OK [07:46:53]MH_I2C_Read... [07:46:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:46:53]Read from MH i2c: E2 [07:46:53]MH_I2C_Read... [07:46:53]Read from MH i2c: E2 0E 00 [07:46:53]MH_I2C_Read... [07:46:53]Read from MH i2c: E2 0E 00 5B 2C 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 63 [07:46:53]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [07:46:53]wFMCommunicate OK [07:46:53]SAM_PROTO_GetShiftState done [07:46:53]FM_GetShiftState done [07:46:53]opened in 1729469754 [07:46:53]opened+sec_in_day 1729556154 [07:46:53]quantity*price = 150037 [07:46:53]sum+1 = 150039 [07:46:53]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.33 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 48 21.10.2024 07:46 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 187584 ФПД: 279324746989434 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T074657&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187584&fm=279324746989434&tin=02508201610067®Number=0000000000100030&sum=150000 [07:46:55]StoreToDocumentArchive [07:46:55]shift 460 fd 187584 [07:46:55]save to /storage/0460/doc_00187584 [07:46:55]save last doc name /storage/0460/doc_00187584 to /storage/kkm_last_doc_name [07:46:55]save OK [07:46:55]Clear old archive folders... [07:46:55]ProcessDocumentItem done err = 0, tmpTLVsize=248 [07:46:55]tlvbuf is 0116FAE0 [07:46:55]SAM_PROTO_ClearQueue [07:46:55]wFMCommunicate request_size=4 [07:46:55]MH_SAM_APDU [07:46:55]CAPDU: 80 09 00 00 [07:46:55]Write to MH i2c: E2 08 00 68 2C 80 09 00 00 00 00 00 00 06 [07:46:55]Write i2c OK [07:46:55]MH_I2C_Read... [07:46:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:46:55]Read from MH i2c: E2 [07:46:55]MH_I2C_Read... [07:46:55]Read from MH i2c: E2 03 00 [07:46:55]MH_I2C_Read... [07:46:55]Read from MH i2c: E2 03 00 68 2C 00 90 00 08 [07:46:55]RAPDU: 90 00 [07:46:55]wFMCommunicate OK [07:46:55]SAM_PROTO_ClearQueue done [07:46:55]KKMCreateOFDPacket [07:46:55]OFDProtocolAddRootSTLVToBuf [07:46:55]FM_MakeSignedData [07:46:55]FM_MakeSignedData [07:46:55]SAM_PROTO_SignData [07:46:55]wFMCommunicate request_size=4 [07:46:55]MH_SAM_APDU [07:46:55]CAPDU: 80 0D 01 02 [07:46:55]Write to MH i2c: E2 08 00 69 2C 80 0D 01 02 00 00 00 00 0E [07:46:55]Write i2c OK [07:46:55]MH_I2C_Read... [07:46:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:46:55]Read from MH i2c: E2 [07:46:55]MH_I2C_Read... [07:46:55]Read from MH i2c: E2 03 00 [07:46:55]MH_I2C_Read... [07:46:55]Read from MH i2c: E2 03 00 69 2C 00 90 00 09 [07:46:55]RAPDU: 90 00 [07:46:55]wFMCommunicate OK [07:46:55]wFMCommunicate request_size=255 [07:46:55]MH_SAM_APDU [07:46:55]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 F1 06 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 C0 DC 02 00 35 04 06 00 FE 0B 5C 52 [07:46:55]Write to MH i2c: E2 02 01 6A 2C 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 30 00 00 00 F4 03 04 00 F1 06 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 C0 DC 02 00 35 04 06 00 FE 0B 5C 52 00 00 B6 [07:46:55]Write i2c OK [07:46:55]MH_I2C_Read... [07:46:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:46:55]Read from MH i2c: E2 [07:46:55]MH_I2C_Read... [07:46:55]Read from MH i2c: E2 03 00 [07:46:55]MH_I2C_Read... [07:46:55]Read from MH i2c: E2 03 00 6A 2C 00 90 00 0A [07:46:55]RAPDU: 90 00 [07:46:55]wFMCommunicate OK [07:46:55]wFMCommunicate request_size=7 [07:46:55]MH_SAM_APDU [07:46:55]CAPDU: 80 0D 02 02 02 3F 7A [07:46:55]Write to MH i2c: E2 0A 00 6B 2C 80 0D 02 02 02 00 3F 7A 00 00 CE [07:46:55]Write i2c OK [07:46:55]MH_I2C_Read... [07:46:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:46:55]Read from MH i2c: E2 [07:46:55]MH_I2C_Read... [07:46:55]Read from MH i2c: E2 03 00 [07:46:55]MH_I2C_Read... [07:46:55]Read from MH i2c: E2 03 00 6B 2C 00 90 00 0B [07:46:55]RAPDU: 90 00 [07:46:55]wFMCommunicate OK [07:46:55]wFMCommunicate request_size=4 [07:46:55]MH_SAM_APDU [07:46:55]CAPDU: 80 0D 03 02 [07:46:55]Write to MH i2c: E2 08 00 6C 2C 80 0D 03 02 00 00 00 00 13 [07:46:55]Write i2c OK [07:46:55]MH_I2C_Read... [07:46:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:46:55]Read from MH i2c: E2 [07:46:55]MH_I2C_Read... [07:46:55]Read from MH i2c: E2 0B 00 [07:46:55]MH_I2C_Read... [07:46:55]Read from MH i2c: E2 0B 00 6C 2C 00 D1 29 63 E2 3A 1B 23 BF 90 00 8A [07:46:55]RAPDU: D1 29 63 E2 3A 1B 23 BF 90 00 [07:46:55]wFMCommunicate OK [07:46:55]SAM_PROTO_SignData done [07:46:55]FM_MakeSignedData done [07:46:55]CreateOFDProtocolMessage [07:46:55]wFMCommunicate request_size=4 [07:46:55]MH_SAM_APDU [07:46:55]CAPDU: 80 11 00 00 [07:46:55]Write to MH i2c: E2 08 00 6D 2C 80 11 00 00 00 00 00 00 13 [07:46:55]Write i2c OK [07:46:55]MH_I2C_Read... [07:46:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:46:55]Read from MH i2c: E2 [07:46:55]MH_I2C_Read... [07:46:55]Read from MH i2c: E2 17 00 [07:46:55]MH_I2C_Read... [07:46:55]Read from MH i2c: E2 17 00 6D 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 61 [07:46:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [07:46:55]wFMCommunicate OK [07:46:55]CreateOFDProtocolMessage done [07:46:55]OFDSenderStorePacket 187584 [07:46:55]StoreOFDPacket docnum=187584 [07:46:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 8F 95 04 01 BB 5E 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 F1 06 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 C0 DC 02 00 35 04 06 00 FE 0B 5C 52 3F 7A D1 29 63 E2 3A 1B 23 BF [07:46:55]CheckFolder [07:46:55]dirname=/storage/ofd_packets [07:46:55]CheckFolder done [07:46:55]ProducePacketName [07:46:55]name=ofd_packets/00187584 [07:46:55]NVStorageSaveData ofd_packets/00187584 [07:46:55]File name is /storage/ofd_packets/00187584 [07:46:55]Write 298 bytes [07:46:55]NVStorageSaveData done [07:46:55]OFDSenderStorePacket done [07:46:55]KKMCreateOFDPacket done [07:46:55]NVStorageSaveData kkm_last_timestamp [07:46:55]File name is /storage/kkm_last_timestamp [07:46:55]Write 4 bytes [07:46:55]NVStorageSaveData done [07:46:55]ExternCall_PrintAddStr [07:46:55]wPrintStart [07:46:55]Write to MH i2c: 01 00 00 6E 2C 9A [07:46:55]Write i2c OK [07:46:55]MH_I2C_Read... [07:46:55]Read from MH i2c: 01 [07:46:55]MH_I2C_Read... [07:46:55]Read from MH i2c: 01 07 00 [07:46:55]MH_I2C_Read... [07:46:55]Read from MH i2c: 01 07 00 6E 2C 00 00 00 00 00 FF 0F AF [07:46:55]RasterBufferAndPrint [07:46:55]line Счет N : (1)209635 [07:46:55]line ИНН: 02508201610067 [07:46:55]line Контрольно-Кассовый Чек [07:46:55]line ПРОДАЖА [07:46:55]line ТРК (МРК, ГНК) : 51 [07:46:55]line Товар: 2710194210 [07:46:55]line ДТ-К-5 [07:46:55]line 19.690 * 76.20 [07:46:55]line = 1500.38 [07:46:55]line НДС 12% НСП 1% [07:46:55]line > о реализуемом товаре [07:46:55]line ОКРУГЛЕНИЕ: -0.38 [07:46:55]line ИТОГО: 1500.00 [07:46:55]line Внесено: 1500.00 [07:46:55]line СДАЧА: 0.00 [07:46:55]line НСП 1% : 13.28 [07:46:55]line НДС 12% : 159.33 [07:46:55]line Наличными: 1500.00 [07:46:55]line Безнал.: 0.00 [07:46:55]line Место: АЗС № 86 "Партнер Нефть" [07:46:55]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [07:46:55]line СНО: Общий режим [07:46:55]line Чек 48 21.10.2024 07:46 [07:46:55]line Смена: 460 ФФД: 1.0 [07:46:55]line ЗНМ: 0300000155 [07:46:55]line РНМ: 0000000000100030 [07:46:55]line Версия ККМ: 001 [07:46:55]line ФМ: 0000000000965340 [07:46:55]line ФД: 187584 [07:46:55]line ФПД: 279324746989434 [07:46:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T074657&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187584&fm=279324746989434&tin=02508201610067®Number=0000000000100030&sum=150000 [07:46:55]written 0, free lines is 4095 [07:46:55]OFD Sender: Processing packet 187584 [packets to send 1062, broken 1061] [07:46:55]ProducePacketName [07:46:55]name=ofd_packets/00187584 [07:46:55]OFD Sender: To server: pG, [07:46:55]CommunicateWithHost lk.salyk.kg:30040 [07:46:55]ConnectInit lk.salyk.kg [07:46:55]Connected sock=10 [07:46:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 8F 95 04 01 BB 5E 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 F1 06 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 C0 DC 02 00 35 04 06 00 FE 0B 5C 52 3F 7A D1 29 63 E2 3A 1B 23 BF [07:46:56]Write to MH i2c: 01 00 00 99 2C C5 [07:46:56]Write i2c OK [07:46:56]MH_I2C_Read... [07:46:56]Read from MH i2c: 01 [07:46:56]MH_I2C_Read... [07:46:56]Read from MH i2c: 01 07 00 [07:46:56]MH_I2C_Read... [07:46:56]Read from MH i2c: 01 07 00 99 2C 00 00 00 00 00 4E 0C 26 [07:46:56]RasterBufferAndPrint [07:46:56]line [07:46:56]line [07:46:56]line [07:46:56]line [07:46:56]line [07:46:56]written 0, free lines is 3154 [07:46:56]MH_Cut [07:46:56]Write to MH i2c: D1 01 00 A0 2C 01 9E [07:46:56]Write i2c OK [07:46:56]MH_I2C_Read... [07:46:56]Read from MH i2c: D1 [07:46:56]MH_I2C_Read... [07:46:56]Read from MH i2c: D1 01 00 [07:46:56]MH_I2C_Read... [07:46:56]Read from MH i2c: D1 01 00 A0 2C 00 9D [07:46:56]Write to MH i2c: 01 00 00 A1 2C CD [07:46:56]Write i2c OK [07:46:56]MH_I2C_Read... [07:46:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 3C FB 47 00 BD 81 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 C0 DC 02 00 F4 03 04 00 E0 B0 15 67 B6 04 01 00 00 6F 3F 63 F8 20 B4 B8 02 [07:46:56]CommunicateWithHost err = 0 [07:46:56]CheckOFDResponse [07:46:56]1017 (14) - 77093643461234 [07:46:56]1041 (16) - 0000000000965340 [07:46:56]1040 (4) - 187584 [07:46:56]1012 (4) - 21.10.2024 01:39 [07:46:56]1206 (1) - 0 [07:46:56]OFD Sender: Remove packet 187584 [07:46:56]ProducePacketName [07:46:56]name=ofd_packets/00187584 [07:46:56]NVStorageDeleteData [07:46:56]OFD Sender: No OFD packet to send [07:46:57]*** Cut start [07:46:57]*** Partial cut [07:46:57]*** CUTSNS_PIN = 1 [07:46:57]*** CUTSNS_PIN = 0 [07:46:57]*** Brake cut motor [07:46:57]Read from MH i2c: 01 [07:46:57]MH_I2C_Read... [07:46:57]*** Stop cut motor [07:46:57]*** Cut end [07:46:57]Read from MH i2c: 01 07 00 [07:46:57]MH_I2C_Read... [07:46:57]Read from MH i2c: 01 07 00 A1 2C 00 00 00 00 00 FF 0F E2 [07:46:57]process_action close_receipt done [07:46:57]requested_data is exist [07:46:57]produce_requested_data [07:46:57]requested_item fm.sn is exist - process it [07:46:57]wFMCommunicate request_size=4 [07:46:57]MH_SAM_APDU [07:46:57]CAPDU: 80 11 00 00 [07:46:57]Write to MH i2c: E2 08 00 A2 2C 80 11 00 00 00 00 00 00 48 [07:46:57]Write i2c OK [07:46:57]MH_I2C_Read... [07:46:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:46:58]Read from MH i2c: E2 [07:46:58]MH_I2C_Read... [07:46:58]Read from MH i2c: E2 17 00 [07:46:58]MH_I2C_Read... [07:46:58]Read from MH i2c: E2 17 00 A2 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 96 [07:46:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [07:46:58]wFMCommunicate OK [07:46:58]requested_item fd.num is exist - process it [07:46:58]SAM_PROTO_GetFieldsCounters [07:46:58]wFMCommunicate request_size=4 [07:46:58]MH_SAM_APDU [07:46:58]CAPDU: 80 13 00 00 [07:46:58]Write to MH i2c: E2 08 00 A3 2C 80 13 00 00 00 00 00 00 4B [07:46:58]Write i2c OK [07:46:58]MH_I2C_Read... [07:46:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:46:58]Read from MH i2c: E2 [07:46:58]MH_I2C_Read... [07:46:58]Read from MH i2c: E2 62 00 [07:46:58]MH_I2C_Read... [07:46:58]Read from MH i2c: E2 62 00 A3 2C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 C0 DC 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 30 00 00 00 5E 04 04 00 30 00 00 00 57 04 04 00 31 00 00 00 19 04 04 00 00 00 00 00 90 00 4D [07:46:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 C0 DC 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 30 00 00 00 5E 04 04 00 30 00 00 00 57 04 04 00 31 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:46:58]wFMCommunicate OK [07:46:58]SAM_PROTO_GetFieldsCounters done [07:46:58]requested_item shift.num is exist - process it [07:46:58]requested_item shift.opened is exist - process it [07:46:58]req_shift_opened [07:46:58]FM_GetShiftState [07:46:58]SAM_PROTO_GetShiftState [07:46:58]wFMCommunicate request_size=4 [07:46:58]MH_SAM_APDU [07:46:58]CAPDU: 80 13 01 00 [07:46:58]Write to MH i2c: E2 08 00 A4 2C 80 13 01 00 00 00 00 00 4D [07:46:58]Write i2c OK [07:46:58]MH_I2C_Read... [07:46:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:46:58]Read from MH i2c: E2 [07:46:58]MH_I2C_Read... [07:46:58]Read from MH i2c: E2 0E 00 [07:46:58]MH_I2C_Read... [07:46:58]Read from MH i2c: E2 0E 00 A4 2C 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 AC [07:46:58]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [07:46:58]wFMCommunicate OK [07:46:58]SAM_PROTO_GetShiftState done [07:46:58]FM_GetShiftState done [07:46:58]req_shift_opened done [07:46:58]requested_item shift.open_date is exist - process it [07:46:58]req_shift_open_date [07:46:58]req_shift_open_date done [07:46:58]produce_requested_data done [07:46:58]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187584,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [07:46:58]process_action_free close_receipt [07:46:58]json_value_free [07:46:58]json_value_free done [07:46:58]process_json_proto returns [07:46:58]Send response to host [07:46:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187584,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [07:46:58]free response buf [07:46:58]execute_script done [07:46:58]execute_script returns [07:46:58]free content buf [07:46:58]Sock 8.Close socket [07:46:58]Sock 8.Thread stoped [07:47:01]OFD Sender: No OFD packet to send [07:47:06]OFD Sender: No OFD packet to send [07:47:11]OFD Sender: No OFD packet to send [07:47:16]OFD Sender: No OFD packet to send [07:47:21]OFD Sender: No OFD packet to send [07:47:26]OFD Sender: No OFD packet to send [07:47:31]OFD Sender: No OFD packet to send [07:47:36]OFD Sender: No OFD packet to send [07:47:41]OFD Sender: No OFD packet to send [07:47:46]OFD Sender: No OFD packet to send [07:47:51]OFD Sender: No OFD packet to send [07:47:56]OFD Sender: No OFD packet to send [07:48:01]OFD Sender: No OFD packet to send [07:48:06]OFD Sender: No OFD packet to send [07:48:11]OFD Sender: No OFD packet to send [07:48:16]OFD Sender: No OFD packet to send [07:48:21]OFD Sender: No OFD packet to send [07:48:27]OFD Sender: No OFD packet to send [07:48:32]OFD Sender: No OFD packet to send [07:48:37]OFD Sender: No OFD packet to send [07:48:42]OFD Sender: No OFD packet to send [07:48:47]OFD Sender: No OFD packet to send [07:48:52]OFD Sender: No OFD packet to send [07:48:57]OFD Sender: No OFD packet to send [07:49:02]OFD Sender: No OFD packet to send [07:49:07]OFD Sender: No OFD packet to send [07:49:12]OFD Sender: No OFD packet to send [07:49:17]OFD Sender: No OFD packet to send [07:49:22]OFD Sender: No OFD packet to send [07:49:27]OFD Sender: No OFD packet to send [07:49:32]OFD Sender: No OFD packet to send [07:49:37]OFD Sender: No OFD packet to send [07:49:42]OFD Sender: No OFD packet to send [07:49:47]OFD Sender: No OFD packet to send [07:49:52]OFD Sender: No OFD packet to send [07:49:57]OFD Sender: No OFD packet to send [07:50:02]OFD Sender: No OFD packet to send [07:50:07]OFD Sender: No OFD packet to send [07:50:12]OFD Sender: No OFD packet to send [07:50:17]OFD Sender: No OFD packet to send [07:50:22]OFD Sender: No OFD packet to send [07:50:27]OFD Sender: No OFD packet to send [07:50:32]OFD Sender: No OFD packet to send [07:50:37]OFD Sender: No OFD packet to send [07:50:42]OFD Sender: No OFD packet to send [07:50:47]OFD Sender: No OFD packet to send [07:50:52]OFD Sender: No OFD packet to send [07:50:57]OFD Sender: No OFD packet to send [07:51:02]OFD Sender: No OFD packet to send [07:51:07]OFD Sender: No OFD packet to send [07:51:12]OFD Sender: No OFD packet to send [07:51:17]OFD Sender: No OFD packet to send [07:51:22]OFD Sender: No OFD packet to send [07:51:27]OFD Sender: No OFD packet to send [07:51:32]OFD Sender: No OFD packet to send [07:51:37]OFD Sender: No OFD packet to send [07:51:42]OFD Sender: No OFD packet to send [07:51:47]OFD Sender: No OFD packet to send [07:51:52]OFD Sender: No OFD packet to send [07:51:57]OFD Sender: No OFD packet to send [07:52:02]OFD Sender: No OFD packet to send [07:52:07]OFD Sender: No OFD packet to send [07:52:12]OFD Sender: No OFD packet to send [07:52:18]OFD Sender: No OFD packet to send [07:52:23]OFD Sender: No OFD packet to send [07:52:28]OFD Sender: No OFD packet to send [07:52:33]OFD Sender: No OFD packet to send [07:52:38]OFD Sender: No OFD packet to send [07:52:43]OFD Sender: No OFD packet to send [07:52:48]OFD Sender: No OFD packet to send [07:52:53]OFD Sender: No OFD packet to send [07:52:58]OFD Sender: No OFD packet to send [07:53:03]OFD Sender: No OFD packet to send [07:53:08]OFD Sender: No OFD packet to send [07:53:13]OFD Sender: No OFD packet to send [07:53:18]OFD Sender: No OFD packet to send [07:53:23]OFD Sender: No OFD packet to send [07:53:28]OFD Sender: No OFD packet to send [07:53:33]OFD Sender: No OFD packet to send [07:53:38]OFD Sender: No OFD packet to send [07:53:43]OFD Sender: No OFD packet to send [07:53:48]OFD Sender: No OFD packet to send [07:53:53]OFD Sender: No OFD packet to send [07:53:58]OFD Sender: No OFD packet to send [07:54:03]OFD Sender: No OFD packet to send [07:54:08]OFD Sender: No OFD packet to send [07:54:13]OFD Sender: No OFD packet to send [07:54:18]OFD Sender: No OFD packet to send [07:54:23]OFD Sender: No OFD packet to send [07:54:28]OFD Sender: No OFD packet to send [07:54:30]accept exits with 9 [07:54:30]New connection [07:54:30]New thread 3067014500 created [07:54:30]Thread 3067157860 joined [07:54:30]Waiting for new connection... [07:54:30] Sock 9.Parse request [07:54:30]Sock 9.Check first char [07:54:30]Sock 9.First char is OK [07:54:30]request: POST /json_proto HTTP/1.0 [07:54:30]Method: POST [07:54:30]URL: /json_proto [07:54:30]Method is POST - this is cgi request [07:54:30]url: /json_proto [07:54:30]query_string will be loaded in cgi processing [07:54:30]execute_cgi json_proto POST (null) [07:54:30]execute_cgi path=json_proto method=POST [07:54:30]POST find Content-Length [07:54:30]Host: 172.17.42.131:8080 [07:54:30]Content-Length: 682 [07:54:30]Content-Type: application/json [07:54:30] [07:54:30]POST finish read [07:54:30]Found Content-Length = 682 [07:54:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209636", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 33.700, "sum" : 2500.54, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2500.00, "total" : 2500.00, "payments": [ { "type": 0, "sum" : 2500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:54:30]execute_script... [07:54: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)209636", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 33.700, "sum" : 2500.54, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2500.00, "total" : 2500.00, "payments": [ { "type": 0, "sum" : 2500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:54:30]POST & json_proto [07:54:30]process_json_proto [07:54:30]json parsed OK: [07:54:30]protocol is kg_v1.0 [07:54:30]action value=close_receipt [07:54:30]process_action close_receipt [07:54:30]cmd_close_receipt [07:54:30]MH_GetDate [07:54:30]Write to MH i2c: F0 00 00 A5 2C C0 [07:54:30]Write i2c OK [07:54:30]MH_I2C_Read... [07:54:30]Read from MH i2c: F0 [07:54:30]MH_I2C_Read... [07:54:30]Read from MH i2c: F0 09 00 [07:54:30]MH_I2C_Read... [07:54:30]Read from MH i2c: F0 09 00 A5 2C 00 B9 08 16 67 A0 18 CA 66 EF [07:54:30]GetLastDocTimeStamp 1729496817 [07:54:30]current date 1729497273 [07:54:30]FM_GetShiftState [07:54:30]SAM_PROTO_GetShiftState [07:54:30]wFMCommunicate request_size=4 [07:54:30]MH_SAM_APDU [07:54:30]CAPDU: 80 13 01 00 [07:54:30]Write to MH i2c: E2 08 00 A6 2C 80 13 01 00 00 00 00 00 4F [07:54:30]Write i2c OK [07:54:30]MH_I2C_Read... [07:54:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:54:30]Read from MH i2c: E2 [07:54:30]MH_I2C_Read... [07:54:30]Read from MH i2c: E2 0E 00 [07:54:30]MH_I2C_Read... [07:54:30]Read from MH i2c: E2 0E 00 A6 2C 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 AE [07:54:30]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [07:54:30]wFMCommunicate OK [07:54:30]SAM_PROTO_GetShiftState done [07:54:30]FM_GetShiftState done [07:54:30]opened in 1729469754 [07:54:30]opened+sec_in_day 1729556154 [07:54:30]quantity*price = 250054 [07:54:30]sum+1 = 250055 [07:54:30]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.54 ИТОГО: 2500.00 Внесено: 2500.00 СДАЧА: 0.00 НСП 1% : 22.13 НДС 12% : 265.54 Наличными: 2500.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 49 21.10.2024 07:54 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 187585 ФПД: 181821367295884 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T075433&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187585&fm=181821367295884&tin=02508201610067®Number=0000000000100030&sum=250000 [07:54:31]StoreToDocumentArchive [07:54:31]shift 460 fd 187585 [07:54:31]save to /storage/0460/doc_00187585 [07:54:31]save last doc name /storage/0460/doc_00187585 to /storage/kkm_last_doc_name [07:54:31]save OK [07:54:31]Clear old archive folders... [07:54:31]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:54:31]tlvbuf is 01155750 [07:54:31]SAM_PROTO_ClearQueue [07:54:31]wFMCommunicate request_size=4 [07:54:31]MH_SAM_APDU [07:54:31]CAPDU: 80 09 00 00 [07:54:31]Write to MH i2c: E2 08 00 B3 2C 80 09 00 00 00 00 00 00 51 [07:54:31]Write i2c OK [07:54:31]MH_I2C_Read... [07:54:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:54:31]Read from MH i2c: E2 [07:54:31]MH_I2C_Read... [07:54:31]Read from MH i2c: E2 03 00 [07:54:31]MH_I2C_Read... [07:54:31]Read from MH i2c: E2 03 00 B3 2C 00 90 00 53 [07:54:31]RAPDU: 90 00 [07:54:31]wFMCommunicate OK [07:54:31]SAM_PROTO_ClearQueue done [07:54:31]KKMCreateOFDPacket [07:54:31]OFDProtocolAddRootSTLVToBuf [07:54:31]FM_MakeSignedData [07:54:31]FM_MakeSignedData [07:54:31]SAM_PROTO_SignData [07:54:31]wFMCommunicate request_size=4 [07:54:31]MH_SAM_APDU [07:54:31]CAPDU: 80 0D 01 02 [07:54:31]Write to MH i2c: E2 08 00 B4 2C 80 0D 01 02 00 00 00 00 59 [07:54:31]Write i2c OK [07:54:31]MH_I2C_Read... [07:54:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:54:31]Read from MH i2c: E2 [07:54:31]MH_I2C_Read... [07:54:31]Read from MH i2c: E2 03 00 [07:54:31]MH_I2C_Read... [07:54:31]Read from MH i2c: E2 03 00 B4 2C 00 90 00 54 [07:54:31]RAPDU: 90 00 [07:54:31]wFMCommunicate OK [07:54:31]wFMCommunicate request_size=255 [07:54:31]MH_SAM_APDU [07:54:31]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A4 83 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 C6 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BA 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 B9 08 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 C1 DC 02 00 35 04 06 00 A5 [07:54:31]Write to MH i2c: E2 02 01 B5 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A4 83 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 C6 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BA 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 B9 08 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 C1 DC 02 00 35 04 06 00 A5 00 00 37 [07:54:31]Write i2c OK [07:54:31]MH_I2C_Read... [07:54:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:54:31]Read from MH i2c: E2 [07:54:31]MH_I2C_Read... [07:54:31]Read from MH i2c: E2 03 00 [07:54:31]MH_I2C_Read... [07:54:31]Read from MH i2c: E2 03 00 B5 2C 00 90 00 55 [07:54:31]RAPDU: 90 00 [07:54:31]wFMCommunicate OK [07:54:31]wFMCommunicate request_size=10 [07:54:31]MH_SAM_APDU [07:54:31]CAPDU: 80 0D 02 02 05 5D 96 02 9F 8C [07:54:31]Write to MH i2c: E2 0D 00 B6 2C 80 0D 02 02 05 00 5D 96 02 9F 8C 00 00 86 [07:54:31]Write i2c OK [07:54:31]MH_I2C_Read... [07:54:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:54:31]Read from MH i2c: E2 [07:54:31]MH_I2C_Read... [07:54:31]Read from MH i2c: E2 03 00 [07:54:31]MH_I2C_Read... [07:54:31]Read from MH i2c: E2 03 00 B6 2C 00 90 00 56 [07:54:31]RAPDU: 90 00 [07:54:31]wFMCommunicate OK [07:54:31]wFMCommunicate request_size=4 [07:54:31]MH_SAM_APDU [07:54:31]CAPDU: 80 0D 03 02 [07:54:31]Write to MH i2c: E2 08 00 B7 2C 80 0D 03 02 00 00 00 00 5E [07:54:31]Write i2c OK [07:54:31]MH_I2C_Read... [07:54:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:54:31]Read from MH i2c: E2 [07:54:31]MH_I2C_Read... [07:54:31]Read from MH i2c: E2 0B 00 [07:54:31]MH_I2C_Read... [07:54:31]Read from MH i2c: E2 0B 00 B7 2C 00 77 C7 52 CD 2A CF 14 04 90 00 CD [07:54:31]RAPDU: 77 C7 52 CD 2A CF 14 04 90 00 [07:54:31]wFMCommunicate OK [07:54:31]SAM_PROTO_SignData done [07:54:31]FM_MakeSignedData done [07:54:31]CreateOFDProtocolMessage [07:54:31]wFMCommunicate request_size=4 [07:54:31]MH_SAM_APDU [07:54:31]CAPDU: 80 11 00 00 [07:54:31]Write to MH i2c: E2 08 00 B8 2C 80 11 00 00 00 00 00 00 5E [07:54:31]Write i2c OK [07:54:31]MH_I2C_Read... [07:54:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:54:31]Read from MH i2c: E2 [07:54:31]MH_I2C_Read... [07:54:31]Read from MH i2c: E2 17 00 [07:54:31]MH_I2C_Read... [07:54:31]Read from MH i2c: E2 17 00 B8 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 AC [07:54:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [07:54:31]wFMCommunicate OK [07:54:31]CreateOFDProtocolMessage done [07:54:31]OFDSenderStorePacket 187585 [07:54:31]StoreOFDPacket docnum=187585 [07:54:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 2F 66 07 01 5D 80 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A4 83 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 C6 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BA 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 B9 08 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 C1 DC 02 00 35 04 06 00 A5 5D 96 02 9F 8C 77 C7 52 CD 2A CF 14 04 [07:54:31]CheckFolder [07:54:31]dirname=/storage/ofd_packets [07:54:31]CheckFolder done [07:54:31]ProducePacketName [07:54:31]name=ofd_packets/00187585 [07:54:31]NVStorageSaveData ofd_packets/00187585 [07:54:31]File name is /storage/ofd_packets/00187585 [07:54:31]Write 301 bytes [07:54:31]NVStorageSaveData done [07:54:31]OFDSenderStorePacket done [07:54:31]KKMCreateOFDPacket done [07:54:31]NVStorageSaveData kkm_last_timestamp [07:54:31]File name is /storage/kkm_last_timestamp [07:54:31]Write 4 bytes [07:54:31]NVStorageSaveData done [07:54:31]ExternCall_PrintAddStr [07:54:31]wPrintStart [07:54:31]Write to MH i2c: 01 00 00 B9 2C E5 [07:54:31]Write i2c OK [07:54:31]MH_I2C_Read... [07:54:31]Read from MH i2c: 01 [07:54:31]MH_I2C_Read... [07:54:31]Read from MH i2c: 01 07 00 [07:54:31]MH_I2C_Read... [07:54:31]Read from MH i2c: 01 07 00 B9 2C 00 00 00 00 00 FF 0F FA [07:54:31]RasterBufferAndPrint [07:54:31]line Счет N : (1)209636 [07:54:31]line ИНН: 02508201610067 [07:54:31]line Контрольно-Кассовый Чек [07:54:31]line ПРОДАЖА [07:54:31]line ТРК (МРК, ГНК) : 33 [07:54:31]line Товар: 2710124500 [07:54:31]line Аи-95-К-3 [07:54:31]line 33.700 * 74.20 [07:54:31]line = 2500.54 [07:54:31]line НДС 12% НСП 1% [07:54:31]line > о реализуемом товаре [07:54:31]line ОКРУГЛЕНИЕ: -0.54 [07:54:31]line ИТОГО: 2500.00 [07:54:31]line Внесено: 2500.00 [07:54:31]line СДАЧА: 0.00 [07:54:31]line НСП 1% : 22.13 [07:54:31]line НДС 12% : 265.54 [07:54:31]line Наличными: 2500.00 [07:54:31]line Безнал.: 0.00 [07:54:31]line Место: АЗС № 86 "Партнер Нефть" [07:54:31]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [07:54:31]line СНО: Общий режим [07:54:31]line Чек 49 21.10.2024 07:54 [07:54:31]line Смена: 460 ФФД: 1.0 [07:54:31]line ЗНМ: 0300000155 [07:54:31]line РНМ: 0000000000100030 [07:54:31]line Версия ККМ: 001 [07:54:31]line ФМ: 0000000000965340 [07:54:31]line ФД: 187585 [07:54:31]line ФПД: 181821367295884 [07:54:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T075433&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187585&fm=181821367295884&tin=02508201610067®Number=0000000000100030&sum=250000 [07:54:31]written 0, free lines is 4095 [07:54:31]OFD Sender: Processing packet 187585 [packets to send 1062, broken 1061] [07:54:31]ProducePacketName [07:54:31]name=ofd_packets/00187585 [07:54:31]OFD Sender: To server: pG, [07:54:31]CommunicateWithHost lk.salyk.kg:30040 [07:54:31]ConnectInit lk.salyk.kg [07:54:31]Connected sock=10 [07:54:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 2F 66 07 01 5D 80 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A4 83 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 C6 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BA 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 B9 08 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 C1 DC 02 00 35 04 06 00 A5 5D 96 02 9F 8C 77 C7 52 CD 2A CF 14 04 [07:54:32]Write to MH i2c: 01 00 00 E4 2C 10 [07:54:32]Write i2c OK [07:54:32]MH_I2C_Read... [07:54:32]Read from MH i2c: 01 [07:54:32]MH_I2C_Read... [07:54:32]Read from MH i2c: 01 07 00 [07:54:32]MH_I2C_Read... [07:54:32]Read from MH i2c: 01 07 00 E4 2C 00 00 00 00 00 4F 0C 72 [07:54:32]RasterBufferAndPrint [07:54:32]line [07:54:32]line [07:54:32]line [07:54:32]line [07:54:32]line [07:54:32]written 0, free lines is 3154 [07:54:32]MH_Cut [07:54:32]Write to MH i2c: D1 01 00 EB 2C 01 E9 [07:54:32]Write i2c OK [07:54:32]MH_I2C_Read... [07:54:32]Read from MH i2c: D1 [07:54:32]MH_I2C_Read... [07:54:32]Read from MH i2c: D1 01 00 [07:54:32]MH_I2C_Read... [07:54:32]Read from MH i2c: D1 01 00 EB 2C 00 E8 [07:54:32]Write to MH i2c: 01 00 00 EC 2C 18 [07:54:32]Write i2c OK [07:54:32]MH_I2C_Read... [07:54:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 9C 91 47 00 73 58 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 C1 DC 02 00 F4 03 04 00 A9 B2 15 67 B6 04 01 00 00 05 15 2E 75 F8 43 09 95 [07:54:32]CommunicateWithHost err = 0 [07:54:32]CheckOFDResponse [07:54:32]1017 (14) - 77093643461234 [07:54:32]1041 (16) - 0000000000965340 [07:54:32]1040 (4) - 187585 [07:54:32]1012 (4) - 21.10.2024 01:47 [07:54:32]1206 (1) - 0 [07:54:32]OFD Sender: Remove packet 187585 [07:54:32]ProducePacketName [07:54:32]name=ofd_packets/00187585 [07:54:32]NVStorageDeleteData [07:54:32]OFD Sender: No OFD packet to send [07:54:33]*** Cut start [07:54:33]*** Partial cut [07:54:33]*** CUTSNS_PIN = 1 [07:54:33]*** CUTSNS_PIN = 0 [07:54:33]*** Brake cut motor [07:54:34]Read from MH i2c: 01 [07:54:34]MH_I2C_Read... [07:54:34]*** Stop cut motor [07:54:34]*** Cut end [07:54:34]Read from MH i2c: 01 07 00 [07:54:34]MH_I2C_Read... [07:54:34]Read from MH i2c: 01 07 00 EC 2C 00 00 00 00 00 FF 0F 2D [07:54:34]process_action close_receipt done [07:54:34]requested_data is exist [07:54:34]produce_requested_data [07:54:34]requested_item fm.sn is exist - process it [07:54:34]wFMCommunicate request_size=4 [07:54:34]MH_SAM_APDU [07:54:34]CAPDU: 80 11 00 00 [07:54:34]Write to MH i2c: E2 08 00 ED 2C 80 11 00 00 00 00 00 00 93 [07:54:34]Write i2c OK [07:54:34]MH_I2C_Read... [07:54:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:54:34]Read from MH i2c: E2 [07:54:34]MH_I2C_Read... [07:54:34]Read from MH i2c: E2 17 00 [07:54:34]MH_I2C_Read... [07:54:34]Read from MH i2c: E2 17 00 ED 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 E1 [07:54:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [07:54:34]wFMCommunicate OK [07:54:34]requested_item fd.num is exist - process it [07:54:34]SAM_PROTO_GetFieldsCounters [07:54:34]wFMCommunicate request_size=4 [07:54:34]MH_SAM_APDU [07:54:34]CAPDU: 80 13 00 00 [07:54:34]Write to MH i2c: E2 08 00 EE 2C 80 13 00 00 00 00 00 00 96 [07:54:34]Write i2c OK [07:54:34]MH_I2C_Read... [07:54:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:54:34]Read from MH i2c: E2 [07:54:34]MH_I2C_Read... [07:54:34]Read from MH i2c: E2 62 00 [07:54:34]MH_I2C_Read... [07:54:34]Read from MH i2c: E2 62 00 EE 2C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 C1 DC 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 31 00 00 00 5E 04 04 00 31 00 00 00 57 04 04 00 32 00 00 00 19 04 04 00 00 00 00 00 90 00 9C [07:54:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 C1 DC 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 31 00 00 00 5E 04 04 00 31 00 00 00 57 04 04 00 32 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:54:34]wFMCommunicate OK [07:54:34]SAM_PROTO_GetFieldsCounters done [07:54:34]requested_item shift.num is exist - process it [07:54:34]requested_item shift.opened is exist - process it [07:54:34]req_shift_opened [07:54:34]FM_GetShiftState [07:54:34]SAM_PROTO_GetShiftState [07:54:34]wFMCommunicate request_size=4 [07:54:34]MH_SAM_APDU [07:54:34]CAPDU: 80 13 01 00 [07:54:34]Write to MH i2c: E2 08 00 EF 2C 80 13 01 00 00 00 00 00 98 [07:54:34]Write i2c OK [07:54:34]MH_I2C_Read... [07:54:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:54:34]Read from MH i2c: E2 [07:54:34]MH_I2C_Read... [07:54:34]Read from MH i2c: E2 0E 00 [07:54:34]MH_I2C_Read... [07:54:34]Read from MH i2c: E2 0E 00 EF 2C 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 F7 [07:54:34]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [07:54:34]wFMCommunicate OK [07:54:34]SAM_PROTO_GetShiftState done [07:54:34]FM_GetShiftState done [07:54:34]req_shift_opened done [07:54:34]requested_item shift.open_date is exist - process it [07:54:34]req_shift_open_date [07:54:34]req_shift_open_date done [07:54:34]produce_requested_data done [07:54:34]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187585,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [07:54:34]process_action_free close_receipt [07:54:34]json_value_free [07:54:34]json_value_free done [07:54:34]process_json_proto returns [07:54:34]Send response to host [07:54:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187585,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [07:54:34]free response buf [07:54:34]execute_script done [07:54:34]execute_script returns [07:54:34]free content buf [07:54:34]Sock 9.Close socket [07:54:34]Sock 9.Thread stoped [07:54:37]OFD Sender: No OFD packet to send [07:54:42]OFD Sender: No OFD packet to send [07:54:47]OFD Sender: No OFD packet to send [07:54:52]OFD Sender: No OFD packet to send [07:54:57]OFD Sender: No OFD packet to send [07:55:02]OFD Sender: No OFD packet to send [07:55:07]OFD Sender: No OFD packet to send [07:55:12]OFD Sender: No OFD packet to send [07:55:17]OFD Sender: No OFD packet to send [07:55:23]OFD Sender: No OFD packet to send [07:55:28]OFD Sender: No OFD packet to send [07:55:33]OFD Sender: No OFD packet to send [07:55:38]OFD Sender: No OFD packet to send [07:55:43]OFD Sender: No OFD packet to send [07:55:48]OFD Sender: No OFD packet to send [07:55:53]OFD Sender: No OFD packet to send [07:55:58]OFD Sender: No OFD packet to send [07:56:03]OFD Sender: No OFD packet to send [07:56:08]OFD Sender: No OFD packet to send [07:56:13]OFD Sender: No OFD packet to send [07:56:18]OFD Sender: No OFD packet to send [07:56:20]accept exits with 8 [07:56:20]New connection [07:56:20]New thread 3067157860 created [07:56:20]Thread 3067014500 joined [07:56:20]Waiting for new connection... [07:56:20] Sock 8.Parse request [07:56:20]Sock 8.Check first char [07:56:20]Sock 8.First char is OK [07:56:20]request: POST /json_proto HTTP/1.0 [07:56:20]Method: POST [07:56:20]URL: /json_proto [07:56:20]Method is POST - this is cgi request [07:56:20]url: /json_proto [07:56:20]query_string will be loaded in cgi processing [07:56:20]execute_cgi json_proto POST (null) [07:56:20]execute_cgi path=json_proto method=POST [07:56:20]POST find Content-Length [07:56:20]Host: 172.17.42.131:8080 [07:56:20]Content-Length: 688 [07:56:20]Content-Type: application/json [07:56:20] [07:56:20]POST finish read [07:56:20]Found Content-Length = 688 [07:56:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209637", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 12.960, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:56:20]execute_script... [07:56: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)209637", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 12.960, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:56:20]POST & json_proto [07:56:20]process_json_proto [07:56:20]json parsed OK: [07:56:20]protocol is kg_v1.0 [07:56:20]action value=close_receipt [07:56:20]process_action close_receipt [07:56:20]cmd_close_receipt [07:56:20]MH_GetDate [07:56:20]Write to MH i2c: F0 00 00 F0 2C 0B [07:56:20]Write i2c OK [07:56:20]MH_I2C_Read... [07:56:20]Read from MH i2c: F0 [07:56:20]MH_I2C_Read... [07:56:20]Read from MH i2c: F0 09 00 [07:56:20]MH_I2C_Read... [07:56:20]Read from MH i2c: F0 09 00 F0 2C 00 27 09 16 67 A0 18 CA 66 A9 [07:56:20]GetLastDocTimeStamp 1729497273 [07:56:20]current date 1729497383 [07:56:20]FM_GetShiftState [07:56:20]SAM_PROTO_GetShiftState [07:56:20]wFMCommunicate request_size=4 [07:56:20]MH_SAM_APDU [07:56:20]CAPDU: 80 13 01 00 [07:56:20]Write to MH i2c: E2 08 00 F1 2C 80 13 01 00 00 00 00 00 9A [07:56:20]Write i2c OK [07:56:20]MH_I2C_Read... [07:56:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:56:20]Read from MH i2c: E2 [07:56:20]MH_I2C_Read... [07:56:20]Read from MH i2c: E2 0E 00 [07:56:20]MH_I2C_Read... [07:56:20]Read from MH i2c: E2 0E 00 F1 2C 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 F9 [07:56:20]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [07:56:20]wFMCommunicate OK [07:56:20]SAM_PROTO_GetShiftState done [07:56:20]FM_GetShiftState done [07:56:20]opened in 1729469754 [07:56:20]opened+sec_in_day 1729556154 [07:56:20]quantity*price = 100051 [07:56:20]sum+1 = 100052 [07:56:20]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 50 21.10.2024 07:56 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 187586 ФПД: 66998721939859 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T075623&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187586&fm=66998721939859&tin=02508201610067®Number=0000000000100030&sum=100000 [07:56:21]StoreToDocumentArchive [07:56:21]shift 460 fd 187586 [07:56:21]save to /storage/0460/doc_00187586 [07:56:21]save last doc name /storage/0460/doc_00187586 to /storage/kkm_last_doc_name [07:56:21]save OK [07:56:21]Clear old archive folders... [07:56:21]ProcessDocumentItem done err = 0, tmpTLVsize=257 [07:56:21]tlvbuf is 010EB2A0 [07:56:21]SAM_PROTO_ClearQueue [07:56:21]wFMCommunicate request_size=4 [07:56:21]MH_SAM_APDU [07:56:21]CAPDU: 80 09 00 00 [07:56:21]Write to MH i2c: E2 08 00 FE 2C 80 09 00 00 00 00 00 00 9C [07:56:21]Write i2c OK [07:56:21]MH_I2C_Read... [07:56:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:56:21]Read from MH i2c: E2 [07:56:21]MH_I2C_Read... [07:56:21]Read from MH i2c: E2 03 00 [07:56:21]MH_I2C_Read... [07:56:21]Read from MH i2c: E2 03 00 FE 2C 00 90 00 9E [07:56:21]RAPDU: 90 00 [07:56:21]wFMCommunicate OK [07:56:21]SAM_PROTO_ClearQueue done [07:56:21]KKMCreateOFDPacket [07:56:21]OFDProtocolAddRootSTLVToBuf [07:56:21]FM_MakeSignedData [07:56:21]FM_MakeSignedData [07:56:21]SAM_PROTO_SignData [07:56:21]wFMCommunicate request_size=4 [07:56:21]MH_SAM_APDU [07:56:21]CAPDU: 80 0D 01 02 [07:56:21]Write to MH i2c: E2 08 00 FF 2C 80 0D 01 02 00 00 00 00 A4 [07:56:21]Write i2c OK [07:56:21]MH_I2C_Read... [07:56:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:56:21]Read from MH i2c: E2 [07:56:21]MH_I2C_Read... [07:56:21]Read from MH i2c: E2 03 00 [07:56:21]MH_I2C_Read... [07:56:21]Read from MH i2c: E2 03 00 FF 2C 00 90 00 9F [07:56:21]RAPDU: 90 00 [07:56:21]wFMCommunicate OK [07:56:21]wFMCommunicate request_size=255 [07:56:21]MH_SAM_APDU [07:56:21]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 27 09 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 C2 DC 02 [07:56:21]Write to MH i2c: E2 02 01 00 2D 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 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 27 09 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 C2 DC 02 00 00 4E [07:56:21]Write i2c OK [07:56:21]MH_I2C_Read... [07:56:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:56:22]Read from MH i2c: E2 [07:56:22]MH_I2C_Read... [07:56:22]Read from MH i2c: E2 03 00 [07:56:22]MH_I2C_Read... [07:56:22]Read from MH i2c: E2 03 00 00 2D 00 90 00 A1 [07:56:22]RAPDU: 90 00 [07:56:22]wFMCommunicate OK [07:56:22]wFMCommunicate request_size=16 [07:56:22]MH_SAM_APDU [07:56:22]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 3C EF 5B 05 89 93 [07:56:22]Write to MH i2c: E2 13 00 01 2D 80 0D 02 02 0B 00 00 35 04 06 00 3C EF 5B 05 89 93 00 00 A4 [07:56:22]Write i2c OK [07:56:22]MH_I2C_Read... [07:56:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:56:22]Read from MH i2c: E2 [07:56:22]MH_I2C_Read... [07:56:22]Read from MH i2c: E2 03 00 [07:56:22]MH_I2C_Read... [07:56:22]Read from MH i2c: E2 03 00 01 2D 00 90 00 A2 [07:56:22]RAPDU: 90 00 [07:56:22]wFMCommunicate OK [07:56:22]wFMCommunicate request_size=4 [07:56:22]MH_SAM_APDU [07:56:22]CAPDU: 80 0D 03 02 [07:56:22]Write to MH i2c: E2 08 00 02 2D 80 0D 03 02 00 00 00 00 AA [07:56:22]Write i2c OK [07:56:22]MH_I2C_Read... [07:56:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:56:22]Read from MH i2c: E2 [07:56:22]MH_I2C_Read... [07:56:22]Read from MH i2c: E2 0B 00 [07:56:22]MH_I2C_Read... [07:56:22]Read from MH i2c: E2 0B 00 02 2D 00 F2 41 FA 2B 3F A2 9B 67 90 00 E6 [07:56:22]RAPDU: F2 41 FA 2B 3F A2 9B 67 90 00 [07:56:22]wFMCommunicate OK [07:56:22]SAM_PROTO_SignData done [07:56:22]FM_MakeSignedData done [07:56:22]CreateOFDProtocolMessage [07:56:22]wFMCommunicate request_size=4 [07:56:22]MH_SAM_APDU [07:56:22]CAPDU: 80 11 00 00 [07:56:22]Write to MH i2c: E2 08 00 03 2D 80 11 00 00 00 00 00 00 AA [07:56:22]Write i2c OK [07:56:22]MH_I2C_Read... [07:56:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:56:22]Read from MH i2c: E2 [07:56:22]MH_I2C_Read... [07:56:22]Read from MH i2c: E2 17 00 [07:56:22]MH_I2C_Read... [07:56:22]Read from MH i2c: E2 17 00 03 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 F8 [07:56:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [07:56:22]wFMCommunicate OK [07:56:22]CreateOFDProtocolMessage done [07:56:22]OFDSenderStorePacket 187586 [07:56:22]StoreOFDPacket docnum=187586 [07:56:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 1F 45 0D 01 DC AB 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 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 27 09 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 C2 DC 02 00 35 04 06 00 3C EF 5B 05 89 93 F2 41 FA 2B 3F A2 9B 67 [07:56:22]CheckFolder [07:56:22]dirname=/storage/ofd_packets [07:56:22]CheckFolder done [07:56:22]ProducePacketName [07:56:22]name=ofd_packets/00187586 [07:56:22]NVStorageSaveData ofd_packets/00187586 [07:56:22]File name is /storage/ofd_packets/00187586 [07:56:22]Write 307 bytes [07:56:22]NVStorageSaveData done [07:56:22]OFDSenderStorePacket done [07:56:22]KKMCreateOFDPacket done [07:56:22]NVStorageSaveData kkm_last_timestamp [07:56:22]File name is /storage/kkm_last_timestamp [07:56:22]Write 4 bytes [07:56:22]NVStorageSaveData done [07:56:22]ExternCall_PrintAddStr [07:56:22]wPrintStart [07:56:22]Write to MH i2c: 01 00 00 04 2D 31 [07:56:22]Write i2c OK [07:56:22]MH_I2C_Read... [07:56:22]Read from MH i2c: 01 [07:56:22]MH_I2C_Read... [07:56:22]Read from MH i2c: 01 07 00 [07:56:22]MH_I2C_Read... [07:56:22]Read from MH i2c: 01 07 00 04 2D 00 00 00 00 00 FF 0F 46 [07:56:22]RasterBufferAndPrint [07:56:22]line Счет N : (1)209637 [07:56:22]line ИНН: 02508201610067 [07:56:22]line Контрольно-Кассовый Чек [07:56:22]line ПРОДАЖА [07:56:22]line ТРК (МРК, ГНК) : 11 [07:56:22]line Товар: 2710194210 [07:56:22]line D-ENERGY ДТ-К-5 [07:56:22]line 12.960 * 77.20 [07:56:22]line = 1000.51 [07:56:22]line НДС 12% НСП 1% [07:56:22]line > о реализуемом товаре [07:56:22]line ОКРУГЛЕНИЕ: -0.51 [07:56:22]line ИТОГО: 1000.00 [07:56:22]line Внесено: 1000.00 [07:56:22]line СДАЧА: 0.00 [07:56:22]line НСП 1% : 8.85 [07:56:22]line НДС 12% : 106.25 [07:56:22]line Наличными: 1000.00 [07:56:22]line Безнал.: 0.00 [07:56:22]line Место: АЗС № 86 "Партнер Нефть" [07:56:22]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [07:56:22]line СНО: Общий режим [07:56:22]line Чек 50 21.10.2024 07:56 [07:56:22]line Смена: 460 ФФД: 1.0 [07:56:22]line ЗНМ: 0300000155 [07:56:22]line РНМ: 0000000000100030 [07:56:22]line Версия ККМ: 001 [07:56:22]line ФМ: 0000000000965340 [07:56:22]line ФД: 187586 [07:56:22]line ФПД: 66998721939859 [07:56:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T075623&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187586&fm=66998721939859&tin=02508201610067®Number=0000000000100030&sum=100000 [07:56:22]written 0, free lines is 4095 [07:56:22]OFD Sender: Processing packet 187586 [packets to send 1062, broken 1061] [07:56:22]ProducePacketName [07:56:22]name=ofd_packets/00187586 [07:56:22]OFD Sender: To server: pG, [07:56:22]CommunicateWithHost lk.salyk.kg:30040 [07:56:22]ConnectInit lk.salyk.kg [07:56:22]Connected sock=10 [07:56:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 1F 45 0D 01 DC AB 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 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 27 09 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 C2 DC 02 00 35 04 06 00 3C EF 5B 05 89 93 F2 41 FA 2B 3F A2 9B 67 [07:56:22]Write to MH i2c: 01 00 00 2F 2D 5C [07:56:22]Write i2c OK [07:56:22]MH_I2C_Read... [07:56:22]Read from MH i2c: 01 [07:56:22]MH_I2C_Read... [07:56:22]Read from MH i2c: 01 07 00 [07:56:22]MH_I2C_Read... [07:56:22]Read from MH i2c: 01 07 00 2F 2D 00 00 00 00 00 51 0C C0 [07:56:22]RasterBufferAndPrint [07:56:22]line [07:56:22]line [07:56:22]line [07:56:22]line [07:56:22]line [07:56:22]written 0, free lines is 3157 [07:56:22]MH_Cut [07:56:22]Write to MH i2c: D1 01 00 36 2D 01 35 [07:56:22]Write i2c OK [07:56:22]MH_I2C_Read... [07:56:22]Read from MH i2c: D1 [07:56:22]MH_I2C_Read... [07:56:22]Read from MH i2c: D1 01 00 [07:56:22]MH_I2C_Read... [07:56:22]Read from MH i2c: D1 01 00 36 2D 00 34 [07:56:22]Write to MH i2c: 01 00 00 37 2D 64 [07:56:22]Write i2c OK [07:56:22]MH_I2C_Read... [07:56:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 82 45 47 00 6C 17 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 C2 DC 02 00 F4 03 04 00 17 B3 15 67 B6 04 01 00 00 DF 0D 4C 11 D6 F3 54 4D [07:56:22]CommunicateWithHost err = 0 [07:56:22]CheckOFDResponse [07:56:22]1017 (14) - 77093643461234 [07:56:22]1041 (16) - 0000000000965340 [07:56:22]1040 (4) - 187586 [07:56:22]1012 (4) - 21.10.2024 01:49 [07:56:22]1206 (1) - 0 [07:56:22]OFD Sender: Remove packet 187586 [07:56:22]ProducePacketName [07:56:22]name=ofd_packets/00187586 [07:56:22]NVStorageDeleteData [07:56:23]OFD Sender: No OFD packet to send [07:56:23]*** Cut start [07:56:23]*** Partial cut [07:56:23]*** CUTSNS_PIN = 1 [07:56:24]*** CUTSNS_PIN = 0 [07:56:24]*** Brake cut motor [07:56:24]Read from MH i2c: 01 [07:56:24]MH_I2C_Read... [07:56:24]*** Stop cut motor [07:56:24]*** Cut end [07:56:24]Read from MH i2c: 01 07 00 [07:56:24]MH_I2C_Read... [07:56:24]Read from MH i2c: 01 07 00 37 2D 00 00 00 00 00 FF 0F 79 [07:56:24]process_action close_receipt done [07:56:24]requested_data is exist [07:56:24]produce_requested_data [07:56:24]requested_item fm.sn is exist - process it [07:56:24]wFMCommunicate request_size=4 [07:56:24]MH_SAM_APDU [07:56:24]CAPDU: 80 11 00 00 [07:56:24]Write to MH i2c: E2 08 00 38 2D 80 11 00 00 00 00 00 00 DF [07:56:24]Write i2c OK [07:56:24]MH_I2C_Read... [07:56:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:56:24]Read from MH i2c: E2 [07:56:24]MH_I2C_Read... [07:56:24]Read from MH i2c: E2 17 00 [07:56:24]MH_I2C_Read... [07:56:24]Read from MH i2c: E2 17 00 38 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 2D [07:56:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [07:56:24]wFMCommunicate OK [07:56:24]requested_item fd.num is exist - process it [07:56:24]SAM_PROTO_GetFieldsCounters [07:56:24]wFMCommunicate request_size=4 [07:56:24]MH_SAM_APDU [07:56:24]CAPDU: 80 13 00 00 [07:56:24]Write to MH i2c: E2 08 00 39 2D 80 13 00 00 00 00 00 00 E2 [07:56:24]Write i2c OK [07:56:24]MH_I2C_Read... [07:56:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:56:24]Read from MH i2c: E2 [07:56:24]MH_I2C_Read... [07:56:24]Read from MH i2c: E2 62 00 [07:56:24]MH_I2C_Read... [07:56:24]Read from MH i2c: E2 62 00 39 2D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 C2 DC 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 32 00 00 00 5E 04 04 00 32 00 00 00 57 04 04 00 33 00 00 00 19 04 04 00 00 00 00 00 90 00 EC [07:56:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 C2 DC 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 32 00 00 00 5E 04 04 00 32 00 00 00 57 04 04 00 33 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:56:24]wFMCommunicate OK [07:56:24]SAM_PROTO_GetFieldsCounters done [07:56:24]requested_item shift.num is exist - process it [07:56:24]requested_item shift.opened is exist - process it [07:56:24]req_shift_opened [07:56:24]FM_GetShiftState [07:56:24]SAM_PROTO_GetShiftState [07:56:24]wFMCommunicate request_size=4 [07:56:24]MH_SAM_APDU [07:56:24]CAPDU: 80 13 01 00 [07:56:24]Write to MH i2c: E2 08 00 3A 2D 80 13 01 00 00 00 00 00 E4 [07:56:24]Write i2c OK [07:56:24]MH_I2C_Read... [07:56:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:56:24]Read from MH i2c: E2 [07:56:24]MH_I2C_Read... [07:56:24]Read from MH i2c: E2 0E 00 [07:56:24]MH_I2C_Read... [07:56:24]Read from MH i2c: E2 0E 00 3A 2D 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 43 [07:56:24]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [07:56:24]wFMCommunicate OK [07:56:24]SAM_PROTO_GetShiftState done [07:56:24]FM_GetShiftState done [07:56:24]req_shift_opened done [07:56:24]requested_item shift.open_date is exist - process it [07:56:24]req_shift_open_date [07:56:24]req_shift_open_date done [07:56:24]produce_requested_data done [07:56:24]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187586,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [07:56:24]process_action_free close_receipt [07:56:24]json_value_free [07:56:24]json_value_free done [07:56:24]process_json_proto returns [07:56:24]Send response to host [07:56:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187586,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [07:56:24]free response buf [07:56:24]execute_script done [07:56:24]execute_script returns [07:56:24]free content buf [07:56:24]Sock 8.Close socket [07:56:24]Sock 8.Thread stoped [07:56:28]OFD Sender: No OFD packet to send [07:56:33]OFD Sender: No OFD packet to send [07:56:38]OFD Sender: No OFD packet to send [07:56:43]OFD Sender: No OFD packet to send [07:56:48]OFD Sender: No OFD packet to send [07:56:53]OFD Sender: No OFD packet to send [07:56:58]OFD Sender: No OFD packet to send [07:57:03]OFD Sender: No OFD packet to send [07:57:08]OFD Sender: No OFD packet to send [07:57:13]OFD Sender: No OFD packet to send [07:57:18]OFD Sender: No OFD packet to send [07:57:23]OFD Sender: No OFD packet to send [07:57:28]OFD Sender: No OFD packet to send [07:57:33]OFD Sender: No OFD packet to send [07:57:38]OFD Sender: No OFD packet to send [07:57:43]OFD Sender: No OFD packet to send [07:57:48]OFD Sender: No OFD packet to send [07:57:53]OFD Sender: No OFD packet to send [07:57:58]OFD Sender: No OFD packet to send [07:58:03]OFD Sender: No OFD packet to send [07:58:08]OFD Sender: No OFD packet to send [07:58:13]OFD Sender: No OFD packet to send [07:58:18]OFD Sender: No OFD packet to send [07:58:23]OFD Sender: No OFD packet to send [07:58:28]OFD Sender: No OFD packet to send [07:58:33]OFD Sender: No OFD packet to send [07:58:38]OFD Sender: No OFD packet to send [07:58:44]OFD Sender: No OFD packet to send [07:58:49]OFD Sender: No OFD packet to send [07:58:54]OFD Sender: No OFD packet to send [07:58:59]OFD Sender: No OFD packet to send [07:59:04]OFD Sender: No OFD packet to send [07:59:09]OFD Sender: No OFD packet to send [07:59:14]OFD Sender: No OFD packet to send [07:59:19]OFD Sender: No OFD packet to send [07:59:24]OFD Sender: No OFD packet to send [07:59:29]OFD Sender: No OFD packet to send [07:59:34]OFD Sender: No OFD packet to send [07:59:39]OFD Sender: No OFD packet to send [07:59:44]OFD Sender: No OFD packet to send [07:59:49]OFD Sender: No OFD packet to send [07:59:54]OFD Sender: No OFD packet to send [07:59:59]OFD Sender: No OFD packet to send [08:00:04]OFD Sender: No OFD packet to send [08:00:09]OFD Sender: No OFD packet to send [08:00:14]OFD Sender: No OFD packet to send [08:00:19]OFD Sender: No OFD packet to send [08:00:24]OFD Sender: No OFD packet to send [08:00:29]OFD Sender: No OFD packet to send [08:00:34]OFD Sender: No OFD packet to send [08:00:39]OFD Sender: No OFD packet to send [08:00:44]OFD Sender: No OFD packet to send [08:00:49]OFD Sender: No OFD packet to send [08:00:54]OFD Sender: No OFD packet to send [08:00:59]OFD Sender: No OFD packet to send [08:01:04]OFD Sender: No OFD packet to send [08:01:09]OFD Sender: No OFD packet to send [08:01:14]accept exits with 9 [08:01:14]New connection [08:01:14]New thread 3067014500 created [08:01:14]Thread 3067157860 joined [08:01:14]Waiting for new connection... [08:01:14] Sock 9.Parse request [08:01:14]Sock 9.Check first char [08:01:14]Sock 9.First char is OK [08:01:14]request: POST /json_proto HTTP/1.0 [08:01:14]Method: POST [08:01:14]URL: /json_proto [08:01:14]Method is POST - this is cgi request [08:01:14]url: /json_proto [08:01:14]query_string will be loaded in cgi processing [08:01:14]execute_cgi json_proto POST (null) [08:01:14]execute_cgi path=json_proto method=POST [08:01:14]POST find Content-Length [08:01:14]Host: 172.17.42.131:8080 [08:01:14]Content-Length: 677 [08:01:14]Content-Type: application/json [08:01:14] [08:01:14]POST finish read [08:01:14]Found Content-Length = 677 [08:01:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209638", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:01:14]execute_script... [08:01: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)209638", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:01:14]POST & json_proto [08:01:14]process_json_proto [08:01:14]json parsed OK: [08:01:14]protocol is kg_v1.0 [08:01:14]action value=close_receipt [08:01:14]process_action close_receipt [08:01:14]cmd_close_receipt [08:01:14]MH_GetDate [08:01:14]Write to MH i2c: F0 00 00 3B 2D 57 [08:01:14]Write i2c OK [08:01:14]MH_I2C_Read... [08:01:14]Read from MH i2c: F0 [08:01:14]MH_I2C_Read... [08:01:14]Read from MH i2c: F0 09 00 [08:01:14]MH_I2C_Read... [08:01:14]Read from MH i2c: F0 09 00 3B 2D 00 4D 0A 16 67 A0 18 CA 66 1C [08:01:14]GetLastDocTimeStamp 1729497383 [08:01:14]current date 1729497677 [08:01:14]FM_GetShiftState [08:01:14]SAM_PROTO_GetShiftState [08:01:14]wFMCommunicate request_size=4 [08:01:14]MH_SAM_APDU [08:01:14]CAPDU: 80 13 01 00 [08:01:14]Write to MH i2c: E2 08 00 3C 2D 80 13 01 00 00 00 00 00 E6 [08:01:14]Write i2c OK [08:01:14]MH_I2C_Read... [08:01:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:01:14]Read from MH i2c: E2 [08:01:14]MH_I2C_Read... [08:01:14]Read from MH i2c: E2 0E 00 [08:01:14]MH_I2C_Read... [08:01:14]Read from MH i2c: E2 0E 00 3C 2D 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 45 [08:01:14]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [08:01:14]wFMCommunicate OK [08:01:14]SAM_PROTO_GetShiftState done [08:01:14]FM_GetShiftState done [08:01:14]opened in 1729469754 [08:01:14]opened+sec_in_day 1729556154 [08:01:14]quantity*price = 40006 [08:01:14]sum+1 = 40007 [08:01: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 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 51 21.10.2024 08:01 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 187587 ФПД: 177647241195462 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T080117&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187587&fm=177647241195462&tin=02508201610067®Number=0000000000100030&sum=40000 [08:01:15]StoreToDocumentArchive [08:01:15]shift 460 fd 187587 [08:01:15]save to /storage/0460/doc_00187587 [08:01:15]save last doc name /storage/0460/doc_00187587 to /storage/kkm_last_doc_name [08:01:15]save OK [08:01:15]Clear old archive folders... [08:01:15]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:01:15]tlvbuf is 01093E40 [08:01:15]SAM_PROTO_ClearQueue [08:01:15]wFMCommunicate request_size=4 [08:01:15]MH_SAM_APDU [08:01:15]CAPDU: 80 09 00 00 [08:01:15]Write to MH i2c: E2 08 00 49 2D 80 09 00 00 00 00 00 00 E8 [08:01:15]Write i2c OK [08:01:15]MH_I2C_Read... [08:01:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:01:15]Read from MH i2c: E2 [08:01:15]MH_I2C_Read... [08:01:15]Read from MH i2c: E2 03 00 [08:01:15]MH_I2C_Read... [08:01:15]Read from MH i2c: E2 03 00 49 2D 00 90 00 EA [08:01:15]RAPDU: 90 00 [08:01:15]wFMCommunicate OK [08:01:15]SAM_PROTO_ClearQueue done [08:01:15]KKMCreateOFDPacket [08:01:15]OFDProtocolAddRootSTLVToBuf [08:01:15]FM_MakeSignedData [08:01:15]FM_MakeSignedData [08:01:15]SAM_PROTO_SignData [08:01:15]wFMCommunicate request_size=4 [08:01:15]MH_SAM_APDU [08:01:15]CAPDU: 80 0D 01 02 [08:01:15]Write to MH i2c: E2 08 00 4A 2D 80 0D 01 02 00 00 00 00 F0 [08:01:15]Write i2c OK [08:01:15]MH_I2C_Read... [08:01:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:01:15]Read from MH i2c: E2 [08:01:15]MH_I2C_Read... [08:01:15]Read from MH i2c: E2 03 00 [08:01:15]MH_I2C_Read... [08:01:15]Read from MH i2c: E2 03 00 4A 2D 00 90 00 EB [08:01:15]RAPDU: 90 00 [08:01:15]wFMCommunicate OK [08:01:15]wFMCommunicate request_size=255 [08:01:15]MH_SAM_APDU [08:01: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 33 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 33 00 00 00 F4 03 04 00 4D 0A 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 C3 DC 02 00 35 04 06 00 A1 [08:01:15]Write to MH i2c: E2 02 01 4B 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 33 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 33 00 00 00 F4 03 04 00 4D 0A 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 C3 DC 02 00 35 04 06 00 A1 00 00 48 [08:01:15]Write i2c OK [08:01:15]MH_I2C_Read... [08:01:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:01:15]Read from MH i2c: E2 [08:01:15]MH_I2C_Read... [08:01:15]Read from MH i2c: E2 03 00 [08:01:15]MH_I2C_Read... [08:01:15]Read from MH i2c: E2 03 00 4B 2D 00 90 00 EC [08:01:15]RAPDU: 90 00 [08:01:15]wFMCommunicate OK [08:01:15]wFMCommunicate request_size=10 [08:01:15]MH_SAM_APDU [08:01:15]CAPDU: 80 0D 02 02 05 91 B8 B4 EF C6 [08:01:15]Write to MH i2c: E2 0D 00 4C 2D 80 0D 02 02 05 00 91 B8 B4 EF C6 00 00 AF [08:01:15]Write i2c OK [08:01:15]MH_I2C_Read... [08:01:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:01:15]Read from MH i2c: E2 [08:01:15]MH_I2C_Read... [08:01:15]Read from MH i2c: E2 03 00 [08:01:15]MH_I2C_Read... [08:01:15]Read from MH i2c: E2 03 00 4C 2D 00 90 00 ED [08:01:15]RAPDU: 90 00 [08:01:15]wFMCommunicate OK [08:01:15]wFMCommunicate request_size=4 [08:01:15]MH_SAM_APDU [08:01:15]CAPDU: 80 0D 03 02 [08:01:15]Write to MH i2c: E2 08 00 4D 2D 80 0D 03 02 00 00 00 00 F5 [08:01:15]Write i2c OK [08:01:15]MH_I2C_Read... [08:01:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:01:15]Read from MH i2c: E2 [08:01:15]MH_I2C_Read... [08:01:15]Read from MH i2c: E2 0B 00 [08:01:15]MH_I2C_Read... [08:01:15]Read from MH i2c: E2 0B 00 4D 2D 00 03 C6 D8 34 7B 72 E0 D6 90 00 6E [08:01:15]RAPDU: 03 C6 D8 34 7B 72 E0 D6 90 00 [08:01:15]wFMCommunicate OK [08:01:15]SAM_PROTO_SignData done [08:01:15]FM_MakeSignedData done [08:01:15]CreateOFDProtocolMessage [08:01:15]wFMCommunicate request_size=4 [08:01:15]MH_SAM_APDU [08:01:15]CAPDU: 80 11 00 00 [08:01:15]Write to MH i2c: E2 08 00 4E 2D 80 11 00 00 00 00 00 00 F5 [08:01:15]Write i2c OK [08:01:15]MH_I2C_Read... [08:01:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:01:15]Read from MH i2c: E2 [08:01:15]MH_I2C_Read... [08:01:15]Read from MH i2c: E2 17 00 [08:01:15]MH_I2C_Read... [08:01:15]Read from MH i2c: E2 17 00 4E 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 43 [08:01:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [08:01:15]wFMCommunicate OK [08:01:15]CreateOFDProtocolMessage done [08:01:15]OFDSenderStorePacket 187587 [08:01:15]StoreOFDPacket docnum=187587 [08:01:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 7E D9 07 01 66 C2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 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 33 00 00 00 F4 03 04 00 4D 0A 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 C3 DC 02 00 35 04 06 00 A1 91 B8 B4 EF C6 03 C6 D8 34 7B 72 E0 D6 [08:01:15]CheckFolder [08:01:15]dirname=/storage/ofd_packets [08:01:15]CheckFolder done [08:01:15]ProducePacketName [08:01:15]name=ofd_packets/00187587 [08:01:15]NVStorageSaveData ofd_packets/00187587 [08:01:15]File name is /storage/ofd_packets/00187587 [08:01:15]Write 301 bytes [08:01:15]NVStorageSaveData done [08:01:15]OFDSenderStorePacket done [08:01:15]KKMCreateOFDPacket done [08:01:15]NVStorageSaveData kkm_last_timestamp [08:01:15]File name is /storage/kkm_last_timestamp [08:01:15]Write 4 bytes [08:01:15]NVStorageSaveData done [08:01:15]ExternCall_PrintAddStr [08:01:15]wPrintStart [08:01:15]Write to MH i2c: 01 00 00 4F 2D 7C [08:01:15]Write i2c OK [08:01:15]MH_I2C_Read... [08:01:15]Read from MH i2c: 01 [08:01:15]MH_I2C_Read... [08:01:15]Read from MH i2c: 01 07 00 [08:01:15]MH_I2C_Read... [08:01:15]Read from MH i2c: 01 07 00 4F 2D 00 00 00 00 00 FF 0F 91 [08:01:15]RasterBufferAndPrint [08:01:15]line Счет N : (1)209638 [08:01:15]line ИНН: 02508201610067 [08:01:15]line Контрольно-Кассовый Чек [08:01:15]line ПРОДАЖА [08:01:15]line ТРК (МРК, ГНК) : 42 [08:01:15]line Товар: 2710124130 [08:01:15]line Аи-92-К-3 [08:01:15]line 5.980 * 66.90 [08:01:15]line = 400.06 [08:01:15]line НДС 12% НСП 1% [08:01:15]line > о реализуемом товаре [08:01:15]line ОКРУГЛЕНИЕ: -0.06 [08:01:15]line ИТОГО: 400.00 [08:01:15]line Внесено: 400.00 [08:01:15]line СДАЧА: 0.00 [08:01:15]line НСП 1% : 3.54 [08:01:15]line НДС 12% : 42.48 [08:01:15]line Наличными: 400.00 [08:01:15]line Безнал.: 0.00 [08:01:15]line Место: АЗС № 86 "Партнер Нефть" [08:01:15]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [08:01:15]line СНО: Общий режим [08:01:15]line Чек 51 21.10.2024 08:01 [08:01:15]line Смена: 460 ФФД: 1.0 [08:01:15]line ЗНМ: 0300000155 [08:01:15]line РНМ: 0000000000100030 [08:01:15]line Версия ККМ: 001 [08:01:15]line ФМ: 0000000000965340 [08:01:15]line ФД: 187587 [08:01:15]line ФПД: 177647241195462 [08:01:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T080117&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187587&fm=177647241195462&tin=02508201610067®Number=0000000000100030&sum=40000 [08:01:15]OFD Sender: Processing packet 187587 [packets to send 1062, broken 1061] [08:01:15]ProducePacketName [08:01:15]name=ofd_packets/00187587 [08:01:15]OFD Sender: To server: pG, [08:01:15]CommunicateWithHost lk.salyk.kg:30040 [08:01:15]ConnectInit lk.salyk.kg [08:01:15]written 0, free lines is 4095 [08:01:16]Connected sock=10 [08:01:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 7E D9 07 01 66 C2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 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 33 00 00 00 F4 03 04 00 4D 0A 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 C3 DC 02 00 35 04 06 00 A1 91 B8 B4 EF C6 03 C6 D8 34 7B 72 E0 D6 [08:01:16]Write to MH i2c: 01 00 00 7A 2D A7 [08:01:16]Write i2c OK [08:01:16]MH_I2C_Read... [08:01:16]Read from MH i2c: 01 [08:01:16]MH_I2C_Read... [08:01:16]Read from MH i2c: 01 07 00 [08:01:16]MH_I2C_Read... [08:01:16]Read from MH i2c: 01 07 00 7A 2D 00 00 00 00 00 4C 0C 06 [08:01:16]RasterBufferAndPrint [08:01:16]line [08:01:16]line [08:01:16]line [08:01:16]line [08:01:16]line [08:01:16]written 0, free lines is 3152 [08:01:16]MH_Cut [08:01:16]Write to MH i2c: D1 01 00 81 2D 01 80 [08:01:16]Write i2c OK [08:01:16]MH_I2C_Read... [08:01:16]Read from MH i2c: D1 [08:01:16]MH_I2C_Read... [08:01:16]Read from MH i2c: D1 01 00 [08:01:16]MH_I2C_Read... [08:01:16]Read from MH i2c: D1 01 00 81 2D 00 7F [08:01:16]Write to MH i2c: 01 00 00 82 2D AF [08:01:16]Write i2c OK [08:01:16]MH_I2C_Read... [08:01:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 0B 74 47 00 07 B8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 C3 DC 02 00 F4 03 04 00 3D B4 15 67 B6 04 01 00 00 71 3B A6 15 7C 58 03 6D [08:01:16]CommunicateWithHost err = 0 [08:01:16]CheckOFDResponse [08:01:16]1017 (14) - 77093643461234 [08:01:16]1041 (16) - 0000000000965340 [08:01:16]1040 (4) - 187587 [08:01:16]1012 (4) - 21.10.2024 01:54 [08:01:16]1206 (1) - 0 [08:01:16]OFD Sender: Remove packet 187587 [08:01:16]ProducePacketName [08:01:16]name=ofd_packets/00187587 [08:01:16]NVStorageDeleteData [08:01:17]OFD Sender: No OFD packet to send [08:01:17]*** Cut start [08:01:17]*** Partial cut [08:01:17]*** CUTSNS_PIN = 1 [08:01:17]*** CUTSNS_PIN = 0 [08:01:18]*** Brake cut motor [08:01:18]Read from MH i2c: 01 [08:01:18]MH_I2C_Read... [08:01:18]*** Stop cut motor [08:01:18]*** Cut end [08:01:18]Read from MH i2c: 01 07 00 [08:01:18]MH_I2C_Read... [08:01:18]Read from MH i2c: 01 07 00 82 2D 00 00 00 00 00 FF 0F C4 [08:01:18]process_action close_receipt done [08:01:18]requested_data is exist [08:01:18]produce_requested_data [08:01:18]requested_item fm.sn is exist - process it [08:01:18]wFMCommunicate request_size=4 [08:01:18]MH_SAM_APDU [08:01:18]CAPDU: 80 11 00 00 [08:01:18]Write to MH i2c: E2 08 00 83 2D 80 11 00 00 00 00 00 00 2A [08:01:18]Write i2c OK [08:01:18]MH_I2C_Read... [08:01:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:01:18]Read from MH i2c: E2 [08:01:18]MH_I2C_Read... [08:01:18]Read from MH i2c: E2 17 00 [08:01:18]MH_I2C_Read... [08:01:18]Read from MH i2c: E2 17 00 83 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 78 [08:01:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [08:01:18]wFMCommunicate OK [08:01:18]requested_item fd.num is exist - process it [08:01:18]SAM_PROTO_GetFieldsCounters [08:01:18]wFMCommunicate request_size=4 [08:01:18]MH_SAM_APDU [08:01:18]CAPDU: 80 13 00 00 [08:01:18]Write to MH i2c: E2 08 00 84 2D 80 13 00 00 00 00 00 00 2D [08:01:18]Write i2c OK [08:01:18]MH_I2C_Read... [08:01:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:01:18]Read from MH i2c: E2 [08:01:18]MH_I2C_Read... [08:01:18]Read from MH i2c: E2 62 00 [08:01:18]MH_I2C_Read... [08:01:18]Read from MH i2c: E2 62 00 84 2D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 C3 DC 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 33 00 00 00 5E 04 04 00 33 00 00 00 57 04 04 00 34 00 00 00 19 04 04 00 00 00 00 00 90 00 3B [08:01:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 C3 DC 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 33 00 00 00 5E 04 04 00 33 00 00 00 57 04 04 00 34 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:01:18]wFMCommunicate OK [08:01:18]SAM_PROTO_GetFieldsCounters done [08:01:18]requested_item shift.num is exist - process it [08:01:18]requested_item shift.opened is exist - process it [08:01:18]req_shift_opened [08:01:18]FM_GetShiftState [08:01:18]SAM_PROTO_GetShiftState [08:01:18]wFMCommunicate request_size=4 [08:01:18]MH_SAM_APDU [08:01:18]CAPDU: 80 13 01 00 [08:01:18]Write to MH i2c: E2 08 00 85 2D 80 13 01 00 00 00 00 00 2F [08:01:18]Write i2c OK [08:01:18]MH_I2C_Read... [08:01:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:01:18]Read from MH i2c: E2 [08:01:18]MH_I2C_Read... [08:01:18]Read from MH i2c: E2 0E 00 [08:01:18]MH_I2C_Read... [08:01:18]Read from MH i2c: E2 0E 00 85 2D 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 8E [08:01:18]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [08:01:18]wFMCommunicate OK [08:01:18]SAM_PROTO_GetShiftState done [08:01:18]FM_GetShiftState done [08:01:18]req_shift_opened done [08:01:18]requested_item shift.open_date is exist - process it [08:01:18]req_shift_open_date [08:01:18]req_shift_open_date done [08:01:18]produce_requested_data done [08:01:18]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187587,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [08:01:18]process_action_free close_receipt [08:01:18]json_value_free [08:01:18]json_value_free done [08:01:18]process_json_proto returns [08:01:18]Send response to host [08:01:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187587,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [08:01:18]free response buf [08:01:18]execute_script done [08:01:18]execute_script returns [08:01:18]free content buf [08:01:18]Sock 9.Close socket [08:01:18]Sock 9.Thread stoped [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:53]OFD Sender: No OFD packet to send [08:04:58]OFD Sender: No OFD packet to send [08:05:03]OFD Sender: No OFD packet to send [08:05:08]OFD Sender: No OFD packet to send [08:05:13]OFD Sender: No OFD packet to send [08:05:18]OFD Sender: No OFD packet to send [08:05:23]OFD Sender: No OFD packet to send [08:05:28]OFD Sender: No OFD packet to send [08:05:33]OFD Sender: No OFD packet to send [08:05:38]OFD Sender: No OFD packet to send [08:05:43]OFD Sender: No OFD packet to send [08:05:48]OFD Sender: No OFD packet to send [08:05:53]OFD Sender: No OFD packet to send [08:05:54]accept exits with 8 [08:05:54]New connection [08:05:54]New thread 3067157860 created [08:05:54]Thread 3067014500 joined [08:05:54]Waiting for new connection... [08:05:54] Sock 8.Parse request [08:05:54]Sock 8.Check first char [08:05:54]Sock 8.First char is OK [08:05:54]request: POST /json_proto HTTP/1.0 [08:05:54]Method: POST [08:05:54]URL: /json_proto [08:05:54]Method is POST - this is cgi request [08:05:54]url: /json_proto [08:05:54]query_string will be loaded in cgi processing [08:05:54]execute_cgi json_proto POST (null) [08:05:54]execute_cgi path=json_proto method=POST [08:05:54]POST find Content-Length [08:05:54]Host: 172.17.42.131:8080 [08:05:54]Content-Length: 792 [08:05:54]Content-Type: application/json [08:05:54] [08:05:54]POST finish read [08:05:54]Found Content-Length = 792 [08:05:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209639", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 0.00, "quantity" : 40.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A91350", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:05:54]execute_script... [08:05: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)209639", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 0.00, "quantity" : 40.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A91350", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:05:54]POST & json_proto [08:05:54]process_json_proto [08:05:54]json parsed OK: [08:05:54]protocol is kg_v1.0 [08:05:54]action value=close_receipt [08:05:54]process_action close_receipt [08:05:54]cmd_close_receipt [08:05:54]MH_GetDate [08:05:54]Write to MH i2c: F0 00 00 86 2D A2 [08:05:54]Write i2c OK [08:05:54]MH_I2C_Read... [08:05:54]Read from MH i2c: F0 [08:05:54]MH_I2C_Read... [08:05:54]Read from MH i2c: F0 09 00 [08:05:54]MH_I2C_Read... [08:05:54]Read from MH i2c: F0 09 00 86 2D 00 66 0B 16 67 A0 18 CA 66 81 [08:05:54]GetLastDocTimeStamp 1729497677 [08:05:54]current date 1729497958 [08:05:54]FM_GetShiftState [08:05:54]SAM_PROTO_GetShiftState [08:05:54]wFMCommunicate request_size=4 [08:05:54]MH_SAM_APDU [08:05:54]CAPDU: 80 13 01 00 [08:05:54]Write to MH i2c: E2 08 00 87 2D 80 13 01 00 00 00 00 00 31 [08:05:54]Write i2c OK [08:05:54]MH_I2C_Read... [08:05:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:05:54]Read from MH i2c: E2 [08:05:54]MH_I2C_Read... [08:05:54]Read from MH i2c: E2 0E 00 [08:05:54]MH_I2C_Read... [08:05:54]Read from MH i2c: E2 0E 00 87 2D 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 90 [08:05:54]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [08:05:54]wFMCommunicate OK [08:05:54]SAM_PROTO_GetShiftState done [08:05:54]FM_GetShiftState done [08:05:54]opened in 1729469754 [08:05:54]opened+sec_in_day 1729556154 [08:05:54]quantity*price = 0 [08:05:54]sum+1 = 1 [08:05:54]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 52 21.10.2024 08:05 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Талоны: Топливная Карта 91350 ФМ: 0000000000965340 ФД: 187588 ФПД: 136443632802997 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T080558&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187588&fm=136443632802997&tin=02508201610067®Number=0000000000100030&sum=0 [08:05:56]StoreToDocumentArchive [08:05:56]shift 460 fd 187588 [08:05:56]save to /storage/0460/doc_00187588 [08:05:56]save last doc name /storage/0460/doc_00187588 to /storage/kkm_last_doc_name [08:05:56]save OK [08:05:56]Clear old archive folders... [08:05:56]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:05:56]tlvbuf is B6DDA300 [08:05:56]SAM_PROTO_ClearQueue [08:05:56]wFMCommunicate request_size=4 [08:05:56]MH_SAM_APDU [08:05:56]CAPDU: 80 09 00 00 [08:05:56]Write to MH i2c: E2 08 00 94 2D 80 09 00 00 00 00 00 00 33 [08:05:56]Write i2c OK [08:05:56]MH_I2C_Read... [08:05:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:05:56]Read from MH i2c: E2 [08:05:56]MH_I2C_Read... [08:05:56]Read from MH i2c: E2 03 00 [08:05:56]MH_I2C_Read... [08:05:56]Read from MH i2c: E2 03 00 94 2D 00 90 00 35 [08:05:56]RAPDU: 90 00 [08:05:56]wFMCommunicate OK [08:05:56]SAM_PROTO_ClearQueue done [08:05:56]KKMCreateOFDPacket [08:05:56]OFDProtocolAddRootSTLVToBuf [08:05:56]FM_MakeSignedData [08:05:56]FM_MakeSignedData [08:05:56]SAM_PROTO_SignData [08:05:56]wFMCommunicate request_size=4 [08:05:56]MH_SAM_APDU [08:05:56]CAPDU: 80 0D 01 02 [08:05:56]Write to MH i2c: E2 08 00 95 2D 80 0D 01 02 00 00 00 00 3B [08:05:56]Write i2c OK [08:05:56]MH_I2C_Read... [08:05:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:05:56]Read from MH i2c: E2 [08:05:56]MH_I2C_Read... [08:05:56]Read from MH i2c: E2 03 00 [08:05:56]MH_I2C_Read... [08:05:56]Read from MH i2c: E2 03 00 95 2D 00 90 00 36 [08:05:56]RAPDU: 90 00 [08:05:56]wFMCommunicate OK [08:05:56]wFMCommunicate request_size=255 [08:05:56]MH_SAM_APDU [08:05: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 33 FF 03 08 00 03 40 9C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 66 0B 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 C4 DC 02 00 35 04 06 00 7C [08:05:56]Write to MH i2c: E2 02 01 96 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 33 FF 03 08 00 03 40 9C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 66 0B 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 C4 DC 02 00 35 04 06 00 7C 00 00 12 [08:05:56]Write i2c OK [08:05:56]MH_I2C_Read... [08:05:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:05:56]Read from MH i2c: E2 [08:05:56]MH_I2C_Read... [08:05:56]Read from MH i2c: E2 03 00 [08:05:56]MH_I2C_Read... [08:05:56]Read from MH i2c: E2 03 00 96 2D 00 90 00 37 [08:05:56]RAPDU: 90 00 [08:05:56]wFMCommunicate OK [08:05:56]wFMCommunicate request_size=10 [08:05:56]MH_SAM_APDU [08:05:56]CAPDU: 80 0D 02 02 05 18 42 43 DC B5 [08:05:56]Write to MH i2c: E2 0D 00 97 2D 80 0D 02 02 05 00 18 42 43 DC B5 00 00 76 [08:05:56]Write i2c OK [08:05:56]MH_I2C_Read... [08:05:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:05:56]Read from MH i2c: E2 [08:05:56]MH_I2C_Read... [08:05:56]Read from MH i2c: E2 03 00 [08:05:56]MH_I2C_Read... [08:05:56]Read from MH i2c: E2 03 00 97 2D 00 90 00 38 [08:05:56]RAPDU: 90 00 [08:05:56]wFMCommunicate OK [08:05:56]wFMCommunicate request_size=4 [08:05:56]MH_SAM_APDU [08:05:56]CAPDU: 80 0D 03 02 [08:05:56]Write to MH i2c: E2 08 00 98 2D 80 0D 03 02 00 00 00 00 40 [08:05:56]Write i2c OK [08:05:56]MH_I2C_Read... [08:05:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:05:56]Read from MH i2c: E2 [08:05:56]MH_I2C_Read... [08:05:56]Read from MH i2c: E2 0B 00 [08:05:56]MH_I2C_Read... [08:05:56]Read from MH i2c: E2 0B 00 98 2D 00 69 38 50 98 30 2E DF B2 90 00 B9 [08:05:56]RAPDU: 69 38 50 98 30 2E DF B2 90 00 [08:05:56]wFMCommunicate OK [08:05:56]SAM_PROTO_SignData done [08:05:56]FM_MakeSignedData done [08:05:56]CreateOFDProtocolMessage [08:05:56]wFMCommunicate request_size=4 [08:05:56]MH_SAM_APDU [08:05:56]CAPDU: 80 11 00 00 [08:05:56]Write to MH i2c: E2 08 00 99 2D 80 11 00 00 00 00 00 00 40 [08:05:56]Write i2c OK [08:05:56]MH_I2C_Read... [08:05:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:05:56]Read from MH i2c: E2 [08:05:56]MH_I2C_Read... [08:05:56]Read from MH i2c: E2 17 00 [08:05:56]MH_I2C_Read... [08:05:56]Read from MH i2c: E2 17 00 99 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 8E [08:05:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [08:05:56]wFMCommunicate OK [08:05:56]CreateOFDProtocolMessage done [08:05:56]OFDSenderStorePacket 187588 [08:05:56]StoreOFDPacket docnum=187588 [08:05:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 53 A8 07 01 C0 06 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 40 9C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 66 0B 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 C4 DC 02 00 35 04 06 00 7C 18 42 43 DC B5 69 38 50 98 30 2E DF B2 [08:05:56]CheckFolder [08:05:56]dirname=/storage/ofd_packets [08:05:56]CheckFolder done [08:05:56]ProducePacketName [08:05:56]name=ofd_packets/00187588 [08:05:56]NVStorageSaveData ofd_packets/00187588 [08:05:56]File name is /storage/ofd_packets/00187588 [08:05:56]Write 301 bytes [08:05:56]NVStorageSaveData done [08:05:56]OFDSenderStorePacket done [08:05:56]KKMCreateOFDPacket done [08:05:56]NVStorageSaveData kkm_last_timestamp [08:05:56]File name is /storage/kkm_last_timestamp [08:05:56]Write 4 bytes [08:05:56]NVStorageSaveData done [08:05:56]ExternCall_PrintAddStr [08:05:56]wPrintStart [08:05:56]Write to MH i2c: 01 00 00 9A 2D C7 [08:05:56]Write i2c OK [08:05:56]MH_I2C_Read... [08:05:56]Read from MH i2c: 01 [08:05:56]MH_I2C_Read... [08:05:56]Read from MH i2c: 01 07 00 [08:05:56]MH_I2C_Read... [08:05:56]Read from MH i2c: 01 07 00 9A 2D 00 00 00 00 00 FF 0F DC [08:05:56]RasterBufferAndPrint [08:05:56]line Счет N : (1)209639 [08:05:56]line ИНН: 02508201610067 [08:05:56]line Контрольно-Кассовый Чек [08:05:56]line ПРОДАЖА [08:05:56]line ТРК (МРК, ГНК) : 32 [08:05:56]line Товар: 2710124130 [08:05:56]line Аи-92-К-3 [08:05:56]line 40.000 * 0.00 [08:05:56]line = 0.00 [08:05:56]line НДС 12% НСП 1% [08:05:56]line > о реализуемом товаре [08:05:56]line ИТОГО: 0.00 [08:05:56]line НСП 1% : 0.00 [08:05:56]line НДС 12% : 0.00 [08:05:56]line Наличными: 0.00 [08:05:56]line Безнал.: 0.00 [08:05:56]line Место: АЗС № 86 "Партнер Нефть" [08:05:56]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [08:05:56]line СНО: Общий режим [08:05:56]line Чек 52 21.10.2024 08:05 [08:05:56]line Смена: 460 ФФД: 1.0 [08:05:56]line ЗНМ: 0300000155 [08:05:56]line РНМ: 0000000000100030 [08:05:56]line Версия ККМ: 001 [08:05:56]line Талоны: Топливная Карта [08:05:56]line 91350 [08:05:56]line ФМ: 0000000000965340 [08:05:56]line ФД: 187588 [08:05:56]line ФПД: 136443632802997 [08:05:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T080558&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187588&fm=136443632802997&tin=02508201610067®Number=0000000000100030&sum=0 [08:05:56]written 0, free lines is 4095 [08:05:56]OFD Sender: Processing packet 187588 [packets to send 1062, broken 1061] [08:05:56]ProducePacketName [08:05:56]name=ofd_packets/00187588 [08:05:56]OFD Sender: To server: pG, [08:05:56]CommunicateWithHost lk.salyk.kg:30040 [08:05:56]ConnectInit lk.salyk.kg [08:05:56]Connected sock=10 [08:05:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 53 A8 07 01 C0 06 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 40 9C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 66 0B 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 C4 DC 02 00 35 04 06 00 7C 18 42 43 DC B5 69 38 50 98 30 2E DF B2 [08:05:57]Write to MH i2c: 01 00 00 C4 2D F1 [08:05:57]Write i2c OK [08:05:57]MH_I2C_Read... [08:05:57]Read from MH i2c: 01 [08:05:57]MH_I2C_Read... [08:05:57]Read from MH i2c: 01 07 00 [08:05:57]MH_I2C_Read... [08:05:57]Read from MH i2c: 01 07 00 C4 2D 00 00 00 00 00 67 0C 6B [08:05:57]RasterBufferAndPrint [08:05:57]line [08:05:57]line [08:05:57]line [08:05:57]line [08:05:57]line [08:05:57]written 0, free lines is 3179 [08:05:57]MH_Cut [08:05:57]Write to MH i2c: D1 01 00 CB 2D 01 CA [08:05:57]Write i2c OK [08:05:57]MH_I2C_Read... [08:05:57]Read from MH i2c: D1 [08:05:57]MH_I2C_Read... [08:05:57]Read from MH i2c: D1 01 00 [08:05:57]MH_I2C_Read... [08:05:57]Read from MH i2c: D1 01 00 CB 2D 00 C9 [08:05:57]Write to MH i2c: 01 00 00 CC 2D F9 [08:05:57]Write i2c OK [08:05:57]MH_I2C_Read... [08:05:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 3A 34 47 00 CF C0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 C4 DC 02 00 F4 03 04 00 56 B5 15 67 B6 04 01 00 00 C9 B8 C9 EE 73 62 CE F9 [08:05:57]CommunicateWithHost err = 0 [08:05:57]CheckOFDResponse [08:05:57]1017 (14) - 77093643461234 [08:05:57]1041 (16) - 0000000000965340 [08:05:57]1040 (4) - 187588 [08:05:57]1012 (4) - 21.10.2024 01:58 [08:05:57]1206 (1) - 0 [08:05:57]OFD Sender: Remove packet 187588 [08:05:57]ProducePacketName [08:05:57]name=ofd_packets/00187588 [08:05:57]NVStorageDeleteData [08:05:57]OFD Sender: No OFD packet to send [08:05:58]*** Cut start [08:05:58]*** Partial cut [08:05:58]*** CUTSNS_PIN = 1 [08:05:58]*** CUTSNS_PIN = 0 [08:05:58]*** Brake cut motor [08:05:58]Read from MH i2c: 01 [08:05:58]MH_I2C_Read... [08:05:58]*** Stop cut motor [08:05:59]*** Cut end [08:05:59]Read from MH i2c: 01 07 00 [08:05:59]MH_I2C_Read... [08:05:59]Read from MH i2c: 01 07 00 CC 2D 00 00 00 00 00 FF 0F 0E [08:05:59]process_action close_receipt done [08:05:59]requested_data is exist [08:05:59]produce_requested_data [08:05:59]requested_item fm.sn is exist - process it [08:05:59]wFMCommunicate request_size=4 [08:05:59]MH_SAM_APDU [08:05:59]CAPDU: 80 11 00 00 [08:05:59]Write to MH i2c: E2 08 00 CD 2D 80 11 00 00 00 00 00 00 74 [08:05:59]Write i2c OK [08:05:59]MH_I2C_Read... [08:05:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:05:59]Read from MH i2c: E2 [08:05:59]MH_I2C_Read... [08:05:59]Read from MH i2c: E2 17 00 [08:05:59]MH_I2C_Read... [08:05:59]Read from MH i2c: E2 17 00 CD 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 C2 [08:05:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [08:05:59]wFMCommunicate OK [08:05:59]requested_item fd.num is exist - process it [08:05:59]SAM_PROTO_GetFieldsCounters [08:05:59]wFMCommunicate request_size=4 [08:05:59]MH_SAM_APDU [08:05:59]CAPDU: 80 13 00 00 [08:05:59]Write to MH i2c: E2 08 00 CE 2D 80 13 00 00 00 00 00 00 77 [08:05:59]Write i2c OK [08:05:59]MH_I2C_Read... [08:05:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:05:59]Read from MH i2c: E2 [08:05:59]MH_I2C_Read... [08:05:59]Read from MH i2c: E2 62 00 [08:05:59]MH_I2C_Read... [08:05:59]Read from MH i2c: E2 62 00 CE 2D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 C4 DC 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 34 00 00 00 5E 04 04 00 34 00 00 00 57 04 04 00 35 00 00 00 19 04 04 00 00 00 00 00 90 00 89 [08:05:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 C4 DC 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 34 00 00 00 5E 04 04 00 34 00 00 00 57 04 04 00 35 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:05:59]wFMCommunicate OK [08:05:59]SAM_PROTO_GetFieldsCounters done [08:05:59]requested_item shift.num is exist - process it [08:05:59]requested_item shift.opened is exist - process it [08:05:59]req_shift_opened [08:05:59]FM_GetShiftState [08:05:59]SAM_PROTO_GetShiftState [08:05:59]wFMCommunicate request_size=4 [08:05:59]MH_SAM_APDU [08:05:59]CAPDU: 80 13 01 00 [08:05:59]Write to MH i2c: E2 08 00 CF 2D 80 13 01 00 00 00 00 00 79 [08:05:59]Write i2c OK [08:05:59]MH_I2C_Read... [08:05:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:05:59]Read from MH i2c: E2 [08:05:59]MH_I2C_Read... [08:05:59]Read from MH i2c: E2 0E 00 [08:05:59]MH_I2C_Read... [08:05:59]Read from MH i2c: E2 0E 00 CF 2D 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 D8 [08:05:59]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [08:05:59]wFMCommunicate OK [08:05:59]SAM_PROTO_GetShiftState done [08:05:59]FM_GetShiftState done [08:05:59]req_shift_opened done [08:05:59]requested_item shift.open_date is exist - process it [08:05:59]req_shift_open_date [08:05:59]req_shift_open_date done [08:05:59]produce_requested_data done [08:05:59]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187588,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [08:05:59]process_action_free close_receipt [08:05:59]json_value_free [08:05:59]json_value_free done [08:05:59]process_json_proto returns [08:05:59]Send response to host [08:05:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187588,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [08:05:59]free response buf [08:05:59]execute_script done [08:05:59]execute_script returns [08:05:59]free content buf [08:05:59]Sock 8.Close socket [08:05:59]Sock 8.Thread stoped [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:48]OFD Sender: No OFD packet to send [08:06:53]OFD Sender: No OFD packet to send [08:06:58]OFD Sender: No OFD packet to send [08:07:03]OFD Sender: No OFD packet to send [08:07:08]OFD Sender: No OFD packet to send [08:07:13]OFD Sender: No OFD packet to send [08:07:18]OFD Sender: No OFD packet to send [08:07:23]OFD Sender: No OFD packet to send [08:07:28]OFD Sender: No OFD packet to send [08:07:33]OFD Sender: No OFD packet to send [08:07:38]OFD Sender: No OFD packet to send [08:07:43]OFD Sender: No OFD packet to send [08:07:48]OFD Sender: No OFD packet to send [08:07:53]OFD Sender: No OFD packet to send [08:07:58]OFD Sender: No OFD packet to send [08:08:03]OFD Sender: No OFD packet to send [08:08:08]OFD Sender: No OFD packet to send [08:08:13]OFD Sender: No OFD packet to send [08:08:18]OFD Sender: No OFD packet to send [08:08:23]OFD Sender: No OFD packet to send [08:08:28]OFD Sender: No OFD packet to send [08:08:33]OFD Sender: No OFD packet to send [08:08:38]OFD Sender: No OFD packet to send [08:08:43]OFD Sender: No OFD packet to send [08:08:48]OFD Sender: No OFD packet to send [08:08:53]OFD Sender: No OFD packet to send [08:08:58]OFD Sender: No OFD packet to send [08:09:03]OFD Sender: No OFD packet to send [08:09:08]OFD Sender: No OFD packet to send [08:09:13]OFD Sender: No OFD packet to send [08:09:18]OFD Sender: No OFD packet to send [08:09:23]OFD Sender: No OFD packet to send [08:09:28]OFD Sender: No OFD packet to send [08:09:33]OFD Sender: No OFD packet to send [08:09:38]OFD Sender: No OFD packet to send [08:09:43]OFD Sender: No OFD packet to send [08:09:48]OFD Sender: No OFD packet to send [08:09:53]OFD Sender: No OFD packet to send [08:09:58]OFD Sender: No OFD packet to send [08:10:03]OFD Sender: No OFD packet to send [08:10:08]OFD Sender: No OFD packet to send [08:10:13]OFD Sender: No OFD packet to send [08:10:18]OFD Sender: No OFD packet to send [08:10:23]OFD Sender: No OFD packet to send [08:10:28]OFD Sender: No OFD packet to send [08:10:33]OFD Sender: No OFD packet to send [08:10:39]OFD Sender: No OFD packet to send [08:10:44]OFD Sender: No OFD packet to send [08:10:49]OFD Sender: No OFD packet to send [08:10:54]OFD Sender: No OFD packet to send [08:10:59]OFD Sender: No OFD packet to send [08:11:04]OFD Sender: No OFD packet to send [08:11:09]OFD Sender: No OFD packet to send [08:11:14]OFD Sender: No OFD packet to send [08:11:19]OFD Sender: No OFD packet to send [08:11:24]OFD Sender: No OFD packet to send [08:11:29]OFD Sender: No OFD packet to send [08:11:34]OFD Sender: No OFD packet to send [08:11:39]OFD Sender: No OFD packet to send [08:11:44]OFD Sender: No OFD packet to send [08:11:49]OFD Sender: No OFD packet to send [08:11:54]OFD Sender: No OFD packet to send [08:11:59]OFD Sender: No OFD packet to send [08:12:04]OFD Sender: No OFD packet to send [08:12:09]OFD Sender: No OFD packet to send [08:12:14]OFD Sender: No OFD packet to send [08:12:19]OFD Sender: No OFD packet to send [08:12:24]OFD Sender: No OFD packet to send [08:12:29]OFD Sender: No OFD packet to send [08:12:34]OFD Sender: No OFD packet to send [08:12:39]OFD Sender: No OFD packet to send [08:12:44]OFD Sender: No OFD packet to send [08:12:49]OFD Sender: No OFD packet to send [08:12:54]OFD Sender: No OFD packet to send [08:12:59]OFD Sender: No OFD packet to send [08:13:04]OFD Sender: No OFD packet to send [08:13:09]OFD Sender: No OFD packet to send [08:13:14]OFD Sender: No OFD packet to send [08:13:19]OFD Sender: No OFD packet to send [08:13:24]OFD Sender: No OFD packet to send [08:13:29]OFD Sender: No OFD packet to send [08:13:34]OFD Sender: No OFD packet to send [08:13:39]OFD Sender: No OFD packet to send [08:13:44]OFD Sender: No OFD packet to send [08:13:45]accept exits with 9 [08:13:45]New connection [08:13:45]New thread 3067014500 created [08:13:45]Thread 3067157860 joined [08:13:45]Waiting for new connection... [08:13:45] Sock 9.Parse request [08:13:45]Sock 9.Check first char [08:13:45]Sock 9.First char is OK [08:13:45]request: POST /json_proto HTTP/1.0 [08:13:45]Method: POST [08:13:45]URL: /json_proto [08:13:45]Method is POST - this is cgi request [08:13:45]url: /json_proto [08:13:45]query_string will be loaded in cgi processing [08:13:45]execute_cgi json_proto POST (null) [08:13:45]execute_cgi path=json_proto method=POST [08:13:45]POST find Content-Length [08:13:45]Host: 172.17.42.131:8080 [08:13:45]Content-Length: 688 [08:13:45]Content-Type: application/json [08:13:45] [08:13:45]POST finish read [08:13:45]Found Content-Length = 688 [08:13:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209640", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 28.500, "sum" : 2200.20, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2200.00, "total" : 2200.00, "payments": [ { "type": 0, "sum" : 2200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:13:45]execute_script... [08:13: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)209640", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 28.500, "sum" : 2200.20, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2200.00, "total" : 2200.00, "payments": [ { "type": 0, "sum" : 2200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:13:45]POST & json_proto [08:13:45]process_json_proto [08:13:45]json parsed OK: [08:13:45]protocol is kg_v1.0 [08:13:45]action value=close_receipt [08:13:45]process_action close_receipt [08:13:45]cmd_close_receipt [08:13:45]MH_GetDate [08:13:45]Write to MH i2c: F0 00 00 D0 2D EC [08:13:45]Write i2c OK [08:13:45]MH_I2C_Read... [08:13:45]Read from MH i2c: F0 [08:13:45]MH_I2C_Read... [08:13:45]Read from MH i2c: F0 09 00 [08:13:45]MH_I2C_Read... [08:13:45]Read from MH i2c: F0 09 00 D0 2D 00 3C 0D 16 67 A0 18 CA 66 A3 [08:13:45]GetLastDocTimeStamp 1729497958 [08:13:45]current date 1729498428 [08:13:45]FM_GetShiftState [08:13:45]SAM_PROTO_GetShiftState [08:13:45]wFMCommunicate request_size=4 [08:13:45]MH_SAM_APDU [08:13:45]CAPDU: 80 13 01 00 [08:13:45]Write to MH i2c: E2 08 00 D1 2D 80 13 01 00 00 00 00 00 7B [08:13:45]Write i2c OK [08:13:45]MH_I2C_Read... [08:13:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:13:45]Read from MH i2c: E2 [08:13:45]MH_I2C_Read... [08:13:45]Read from MH i2c: E2 0E 00 [08:13:45]MH_I2C_Read... [08:13:45]Read from MH i2c: E2 0E 00 D1 2D 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 DA [08:13:45]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [08:13:45]wFMCommunicate OK [08:13:45]SAM_PROTO_GetShiftState done [08:13:45]FM_GetShiftState done [08:13:45]opened in 1729469754 [08:13:45]opened+sec_in_day 1729556154 [08:13:45]quantity*price = 220020 [08:13:45]sum+1 = 220021 [08:13:45]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.20 ИТОГО: 2200.00 Внесено: 2200.00 СДАЧА: 0.00 НСП 1% : 19.47 НДС 12% : 233.65 Наличными: 2200.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 53 21.10.2024 08:13 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 187589 ФПД: 129493218721397 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T081348&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187589&fm=129493218721397&tin=02508201610067®Number=0000000000100030&sum=220000 [08:13:46]StoreToDocumentArchive [08:13:46]shift 460 fd 187589 [08:13:46]save to /storage/0460/doc_00187589 [08:13:46]save last doc name /storage/0460/doc_00187589 to /storage/kkm_last_doc_name [08:13:46]save OK [08:13:46]Clear old archive folders... [08:13:46]ProcessDocumentItem done err = 0, tmpTLVsize=257 [08:13:46]tlvbuf is B6F0CAB0 [08:13:46]SAM_PROTO_ClearQueue [08:13:46]wFMCommunicate request_size=4 [08:13:46]MH_SAM_APDU [08:13:46]CAPDU: 80 09 00 00 [08:13:46]Write to MH i2c: E2 08 00 DE 2D 80 09 00 00 00 00 00 00 7D [08:13:46]Write i2c OK [08:13:46]MH_I2C_Read... [08:13:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:13:46]Read from MH i2c: E2 [08:13:46]MH_I2C_Read... [08:13:46]Read from MH i2c: E2 03 00 [08:13:46]MH_I2C_Read... [08:13:46]Read from MH i2c: E2 03 00 DE 2D 00 90 00 7F [08:13:46]RAPDU: 90 00 [08:13:46]wFMCommunicate OK [08:13:46]SAM_PROTO_ClearQueue done [08:13:46]KKMCreateOFDPacket [08:13:46]OFDProtocolAddRootSTLVToBuf [08:13:46]FM_MakeSignedData [08:13:46]FM_MakeSignedData [08:13:46]SAM_PROTO_SignData [08:13:46]wFMCommunicate request_size=4 [08:13:46]MH_SAM_APDU [08:13:46]CAPDU: 80 0D 01 02 [08:13:46]Write to MH i2c: E2 08 00 DF 2D 80 0D 01 02 00 00 00 00 85 [08:13:46]Write i2c OK [08:13:46]MH_I2C_Read... [08:13:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:13:46]Read from MH i2c: E2 [08:13:46]MH_I2C_Read... [08:13:46]Read from MH i2c: E2 03 00 [08:13:46]MH_I2C_Read... [08:13:46]Read from MH i2c: E2 03 00 DF 2D 00 90 00 80 [08:13:46]RAPDU: 90 00 [08:13:46]wFMCommunicate OK [08:13:46]wFMCommunicate request_size=255 [08:13:46]MH_SAM_APDU [08:13:46]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 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 54 6F 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 74 5B 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 5B 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9B 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 45 5B 00 00 00 00 07 04 06 00 60 5B 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 3C 0D 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 C5 DC 02 [08:13:46]Write to MH i2c: E2 02 01 E0 2D 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 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 54 6F 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 74 5B 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 5B 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9B 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 45 5B 00 00 00 00 07 04 06 00 60 5B 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 3C 0D 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 C5 DC 02 00 00 04 [08:13:46]Write i2c OK [08:13:46]MH_I2C_Read... [08:13:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:13:47]Read from MH i2c: E2 [08:13:47]MH_I2C_Read... [08:13:47]Read from MH i2c: E2 03 00 [08:13:47]MH_I2C_Read... [08:13:47]Read from MH i2c: E2 03 00 E0 2D 00 90 00 81 [08:13:47]RAPDU: 90 00 [08:13:47]wFMCommunicate OK [08:13:47]wFMCommunicate request_size=16 [08:13:47]MH_SAM_APDU [08:13:47]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 75 C5 FD 4D 7E 75 [08:13:47]Write to MH i2c: E2 13 00 E1 2D 80 0D 02 02 0B 00 00 35 04 06 00 75 C5 FD 4D 7E 75 00 00 54 [08:13:47]Write i2c OK [08:13:47]MH_I2C_Read... [08:13:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:13:47]Read from MH i2c: E2 [08:13:47]MH_I2C_Read... [08:13:47]Read from MH i2c: E2 03 00 [08:13:47]MH_I2C_Read... [08:13:47]Read from MH i2c: E2 03 00 E1 2D 00 90 00 82 [08:13:47]RAPDU: 90 00 [08:13:47]wFMCommunicate OK [08:13:47]wFMCommunicate request_size=4 [08:13:47]MH_SAM_APDU [08:13:47]CAPDU: 80 0D 03 02 [08:13:47]Write to MH i2c: E2 08 00 E2 2D 80 0D 03 02 00 00 00 00 8A [08:13:47]Write i2c OK [08:13:47]MH_I2C_Read... [08:13:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:13:47]Read from MH i2c: E2 [08:13:47]MH_I2C_Read... [08:13:47]Read from MH i2c: E2 0B 00 [08:13:47]MH_I2C_Read... [08:13:47]Read from MH i2c: E2 0B 00 E2 2D 00 69 48 DB 3C 6C DD 76 12 90 00 24 [08:13:47]RAPDU: 69 48 DB 3C 6C DD 76 12 90 00 [08:13:47]wFMCommunicate OK [08:13:47]SAM_PROTO_SignData done [08:13:47]FM_MakeSignedData done [08:13:47]CreateOFDProtocolMessage [08:13:47]wFMCommunicate request_size=4 [08:13:47]MH_SAM_APDU [08:13:47]CAPDU: 80 11 00 00 [08:13:47]Write to MH i2c: E2 08 00 E3 2D 80 11 00 00 00 00 00 00 8A [08:13:47]Write i2c OK [08:13:47]MH_I2C_Read... [08:13:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:13:47]Read from MH i2c: E2 [08:13:47]MH_I2C_Read... [08:13:47]Read from MH i2c: E2 17 00 [08:13:47]MH_I2C_Read... [08:13:47]Read from MH i2c: E2 17 00 E3 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 D8 [08:13:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [08:13:47]wFMCommunicate OK [08:13:47]CreateOFDProtocolMessage done [08:13:47]OFDSenderStorePacket 187589 [08:13:47]StoreOFDPacket docnum=187589 [08:13:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 76 8F 0D 01 A8 91 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 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 54 6F 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 74 5B 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 5B 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9B 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 45 5B 00 00 00 00 07 04 06 00 60 5B 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 3C 0D 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 C5 DC 02 00 35 04 06 00 75 C5 FD 4D 7E 75 69 48 DB 3C 6C DD 76 12 [08:13:47]CheckFolder [08:13:47]dirname=/storage/ofd_packets [08:13:47]CheckFolder done [08:13:47]ProducePacketName [08:13:47]name=ofd_packets/00187589 [08:13:47]NVStorageSaveData ofd_packets/00187589 [08:13:47]File name is /storage/ofd_packets/00187589 [08:13:47]Write 307 bytes [08:13:47]NVStorageSaveData done [08:13:47]OFDSenderStorePacket done [08:13:47]KKMCreateOFDPacket done [08:13:47]NVStorageSaveData kkm_last_timestamp [08:13:47]File name is /storage/kkm_last_timestamp [08:13:47]Write 4 bytes [08:13:47]NVStorageSaveData done [08:13:47]ExternCall_PrintAddStr [08:13:47]wPrintStart [08:13:47]Write to MH i2c: 01 00 00 E4 2D 11 [08:13:47]Write i2c OK [08:13:47]MH_I2C_Read... [08:13:47]Read from MH i2c: 01 [08:13:47]MH_I2C_Read... [08:13:47]Read from MH i2c: 01 07 00 [08:13:47]MH_I2C_Read... [08:13:47]Read from MH i2c: 01 07 00 E4 2D 00 00 00 00 00 FF 0F 26 [08:13:47]RasterBufferAndPrint [08:13:47]line Счет N : (1)209640 [08:13:47]line ИНН: 02508201610067 [08:13:47]line Контрольно-Кассовый Чек [08:13:47]line ПРОДАЖА [08:13:47]line ТРК (МРК, ГНК) : 31 [08:13:47]line Товар: 2710194210 [08:13:47]line D-ENERGY ДТ-К-5 [08:13:47]line 28.500 * 77.20 [08:13:47]line = 2200.20 [08:13:47]line НДС 12% НСП 1% [08:13:47]line > о реализуемом товаре [08:13:47]line ОКРУГЛЕНИЕ: -0.20 [08:13:47]line ИТОГО: 2200.00 [08:13:47]line Внесено: 2200.00 [08:13:47]line СДАЧА: 0.00 [08:13:47]line НСП 1% : 19.47 [08:13:47]line НДС 12% : 233.65 [08:13:47]line Наличными: 2200.00 [08:13:47]line Безнал.: 0.00 [08:13:47]line Место: АЗС № 86 "Партнер Нефть" [08:13:47]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [08:13:47]line СНО: Общий режим [08:13:47]line Чек 53 21.10.2024 08:13 [08:13:47]line Смена: 460 ФФД: 1.0 [08:13:47]line ЗНМ: 0300000155 [08:13:47]line РНМ: 0000000000100030 [08:13:47]line Версия ККМ: 001 [08:13:47]line ФМ: 0000000000965340 [08:13:47]line ФД: 187589 [08:13:47]line ФПД: 129493218721397 [08:13:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T081348&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187589&fm=129493218721397&tin=02508201610067®Number=0000000000100030&sum=220000 [08:13:47]written 0, free lines is 4095 [08:13:47]OFD Sender: Processing packet 187589 [packets to send 1062, broken 1061] [08:13:47]ProducePacketName [08:13:47]name=ofd_packets/00187589 [08:13:47]OFD Sender: To server: pG, [08:13:47]CommunicateWithHost lk.salyk.kg:30040 [08:13:47]ConnectInit lk.salyk.kg [08:13:47]Connected sock=10 [08:13:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 76 8F 0D 01 A8 91 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 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 54 6F 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 74 5B 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 5B 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9B 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 45 5B 00 00 00 00 07 04 06 00 60 5B 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 3C 0D 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 C5 DC 02 00 35 04 06 00 75 C5 FD 4D 7E 75 69 48 DB 3C 6C DD 76 12 [08:13:47]Write to MH i2c: 01 00 00 0F 2E 3D [08:13:47]Write i2c OK [08:13:47]MH_I2C_Read... [08:13:47]Read from MH i2c: 01 [08:13:47]MH_I2C_Read... [08:13:47]Read from MH i2c: 01 07 00 [08:13:47]MH_I2C_Read... [08:13:47]Read from MH i2c: 01 07 00 0F 2E 00 00 00 00 00 4C 0C 9C [08:13:47]RasterBufferAndPrint [08:13:47]line [08:13:47]line [08:13:47]line [08:13:47]line [08:13:47]line [08:13:47]written 0, free lines is 3152 [08:13:47]MH_Cut [08:13:47]Write to MH i2c: D1 01 00 16 2E 01 16 [08:13:47]Write i2c OK [08:13:47]MH_I2C_Read... [08:13:47]Read from MH i2c: D1 [08:13:47]MH_I2C_Read... [08:13:47]Read from MH i2c: D1 01 00 [08:13:47]MH_I2C_Read... [08:13:47]Read from MH i2c: D1 01 00 16 2E 00 15 [08:13:47]Write to MH i2c: 01 00 00 17 2E 45 [08:13:47]Write i2c OK [08:13:47]MH_I2C_Read... [08:13:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 8E 64 47 00 A0 F5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 C5 DC 02 00 F4 03 04 00 2C B7 15 67 B6 04 01 00 00 1C 4E CA BB F8 5E 94 CF [08:13:47]CommunicateWithHost err = 0 [08:13:47]CheckOFDResponse [08:13:47]1017 (14) - 77093643461234 [08:13:47]1041 (16) - 0000000000965340 [08:13:47]1040 (4) - 187589 [08:13:47]1012 (4) - 21.10.2024 02:06 [08:13:47]1206 (1) - 0 [08:13:47]OFD Sender: Remove packet 187589 [08:13:47]ProducePacketName [08:13:47]name=ofd_packets/00187589 [08:13:47]NVStorageDeleteData [08:13:48]OFD Sender: No OFD packet to send [08:13:48]*** Cut start [08:13:48]*** Partial cut [08:13:48]*** CUTSNS_PIN = 1 [08:13:49]*** CUTSNS_PIN = 0 [08:13:49]*** Brake cut motor [08:13:49]Read from MH i2c: 01 [08:13:49]MH_I2C_Read... [08:13:49]*** Stop cut motor [08:13:49]*** Cut end [08:13:49]Read from MH i2c: 01 07 00 [08:13:49]MH_I2C_Read... [08:13:49]Read from MH i2c: 01 07 00 17 2E 00 00 00 00 00 FF 0F 5A [08:13:49]process_action close_receipt done [08:13:49]requested_data is exist [08:13:49]produce_requested_data [08:13:49]requested_item fm.sn is exist - process it [08:13:49]wFMCommunicate request_size=4 [08:13:49]MH_SAM_APDU [08:13:49]CAPDU: 80 11 00 00 [08:13:49]Write to MH i2c: E2 08 00 18 2E 80 11 00 00 00 00 00 00 C0 [08:13:49]Write i2c OK [08:13:49]MH_I2C_Read... [08:13:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:13:49]Read from MH i2c: E2 [08:13:49]MH_I2C_Read... [08:13:49]Read from MH i2c: E2 17 00 [08:13:49]MH_I2C_Read... [08:13:49]Read from MH i2c: E2 17 00 18 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 0E [08:13:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [08:13:49]wFMCommunicate OK [08:13:49]requested_item fd.num is exist - process it [08:13:49]SAM_PROTO_GetFieldsCounters [08:13:49]wFMCommunicate request_size=4 [08:13:49]MH_SAM_APDU [08:13:49]CAPDU: 80 13 00 00 [08:13:49]Write to MH i2c: E2 08 00 19 2E 80 13 00 00 00 00 00 00 C3 [08:13:49]Write i2c OK [08:13:49]MH_I2C_Read... [08:13:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:13:49]Read from MH i2c: E2 [08:13:49]MH_I2C_Read... [08:13:49]Read from MH i2c: E2 62 00 [08:13:49]MH_I2C_Read... [08:13:49]Read from MH i2c: E2 62 00 19 2E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 C5 DC 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 35 00 00 00 5E 04 04 00 35 00 00 00 57 04 04 00 36 00 00 00 19 04 04 00 00 00 00 00 90 00 D9 [08:13:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 C5 DC 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 35 00 00 00 5E 04 04 00 35 00 00 00 57 04 04 00 36 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:13:49]wFMCommunicate OK [08:13:49]SAM_PROTO_GetFieldsCounters done [08:13:49]requested_item shift.num is exist - process it [08:13:49]requested_item shift.opened is exist - process it [08:13:49]req_shift_opened [08:13:49]FM_GetShiftState [08:13:49]SAM_PROTO_GetShiftState [08:13:49]wFMCommunicate request_size=4 [08:13:49]MH_SAM_APDU [08:13:49]CAPDU: 80 13 01 00 [08:13:49]Write to MH i2c: E2 08 00 1A 2E 80 13 01 00 00 00 00 00 C5 [08:13:49]Write i2c OK [08:13:49]MH_I2C_Read... [08:13:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:13:49]Read from MH i2c: E2 [08:13:49]MH_I2C_Read... [08:13:49]Read from MH i2c: E2 0E 00 [08:13:49]MH_I2C_Read... [08:13:49]Read from MH i2c: E2 0E 00 1A 2E 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 24 [08:13:49]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [08:13:49]wFMCommunicate OK [08:13:49]SAM_PROTO_GetShiftState done [08:13:49]FM_GetShiftState done [08:13:49]req_shift_opened done [08:13:49]requested_item shift.open_date is exist - process it [08:13:49]req_shift_open_date [08:13:49]req_shift_open_date done [08:13:49]produce_requested_data done [08:13:49]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187589,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [08:13:49]process_action_free close_receipt [08:13:49]json_value_free [08:13:49]json_value_free done [08:13:49]process_json_proto returns [08:13:49]Send response to host [08:13:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187589,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [08:13:49]free response buf [08:13:49]execute_script done [08:13:49]execute_script returns [08:13:49]free content buf [08:13:49]Sock 9.Close socket [08:13:49]Sock 9.Thread stoped [08:13:53]accept exits with 8 [08:13:53]New connection [08:13:53]New thread 3067157860 created [08:13:53]Thread 3067014500 joined [08:13:53]Waiting for new connection... [08:13:53] Sock 8.Parse request [08:13:53]Sock 8.Check first char [08:13:53]Sock 8.First char is OK [08:13:53]request: POST /json_proto HTTP/1.0 [08:13:53]Method: POST [08:13:53]URL: /json_proto [08:13:53]Method is POST - this is cgi request [08:13:53]url: /json_proto [08:13:53]query_string will be loaded in cgi processing [08:13:53]execute_cgi json_proto POST (null) [08:13:53]execute_cgi path=json_proto method=POST [08:13:53]POST find Content-Length [08:13:53]Host: 172.17.42.131:8080 [08:13:53]Content-Length: 677 [08:13:53]Content-Type: application/json [08:13:53] [08:13:53]POST finish read [08:13:53]Found Content-Length = 677 [08:13:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209641", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:13:53]execute_script... [08:13:53]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209641", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:13:53]POST & json_proto [08:13:53]process_json_proto [08:13:53]json parsed OK: [08:13:53]protocol is kg_v1.0 [08:13:53]action value=close_receipt [08:13:53]process_action close_receipt [08:13:53]cmd_close_receipt [08:13:53]MH_GetDate [08:13:53]Write to MH i2c: F0 00 00 1B 2E 38 [08:13:53]Write i2c OK [08:13:53]MH_I2C_Read... [08:13:53]Read from MH i2c: F0 [08:13:53]MH_I2C_Read... [08:13:53]Read from MH i2c: F0 09 00 [08:13:53]MH_I2C_Read... [08:13:53]Read from MH i2c: F0 09 00 1B 2E 00 44 0D 16 67 A0 18 CA 66 F7 [08:13:53]GetLastDocTimeStamp 1729498428 [08:13:53]current date 1729498436 [08:13:53]FM_GetShiftState [08:13:53]SAM_PROTO_GetShiftState [08:13:53]wFMCommunicate request_size=4 [08:13:53]MH_SAM_APDU [08:13:53]CAPDU: 80 13 01 00 [08:13:53]Write to MH i2c: E2 08 00 1C 2E 80 13 01 00 00 00 00 00 C7 [08:13:53]Write i2c OK [08:13:53]MH_I2C_Read... [08:13:53]Read from MH i2c: E2 [08:13:53]MH_I2C_Read... [08:13:53]Read from MH i2c: *** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:13:53]E2 0E 00 [08:13:53]MH_I2C_Read... [08:13:53]Read from MH i2c: E2 0E 00 1C 2E 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 26 [08:13:53]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [08:13:53]wFMCommunicate OK [08:13:53]SAM_PROTO_GetShiftState done [08:13:53]FM_GetShiftState done [08:13:53]opened in 1729469754 [08:13:53]opened+sec_in_day 1729556154 [08:13:53]quantity*price = 50041 [08:13:53]sum+1 = 50042 [08:13: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 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 54 21.10.2024 08:13 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 187590 ФПД: 185220361010915 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T081356&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187590&fm=185220361010915&tin=02508201610067®Number=0000000000100030&sum=50000 [08:13:54]StoreToDocumentArchive [08:13:54]shift 460 fd 187590 [08:13:54]save to /storage/0460/doc_00187590 [08:13:54]save last doc name /storage/0460/doc_00187590 to /storage/kkm_last_doc_name [08:13:54]save OK [08:13:54]Clear old archive folders... [08:13:54]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:13:54]tlvbuf is 010D44E0 [08:13:54]SAM_PROTO_ClearQueue [08:13:54]wFMCommunicate request_size=4 [08:13:54]MH_SAM_APDU [08:13:54]CAPDU: 80 09 00 00 [08:13:54]Write to MH i2c: E2 08 00 29 2E 80 09 00 00 00 00 00 00 C9 [08:13:54]Write i2c OK [08:13:54]MH_I2C_Read... [08:13:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:13:54]Read from MH i2c: E2 [08:13:54]MH_I2C_Read... [08:13:54]Read from MH i2c: E2 03 00 [08:13:54]MH_I2C_Read... [08:13:54]Read from MH i2c: E2 03 00 29 2E 00 90 00 CB [08:13:54]RAPDU: 90 00 [08:13:54]wFMCommunicate OK [08:13:54]SAM_PROTO_ClearQueue done [08:13:54]KKMCreateOFDPacket [08:13:54]OFDProtocolAddRootSTLVToBuf [08:13:54]FM_MakeSignedData [08:13:54]FM_MakeSignedData [08:13:54]SAM_PROTO_SignData [08:13:54]wFMCommunicate request_size=4 [08:13:54]MH_SAM_APDU [08:13:54]CAPDU: 80 0D 01 02 [08:13:54]Write to MH i2c: E2 08 00 2A 2E 80 0D 01 02 00 00 00 00 D1 [08:13:54]Write i2c OK [08:13:54]MH_I2C_Read... [08:13:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:13:54]Read from MH i2c: E2 [08:13:54]MH_I2C_Read... [08:13:54]Read from MH i2c: E2 03 00 [08:13:54]MH_I2C_Read... [08:13:54]Read from MH i2c: E2 03 00 2A 2E 00 90 00 CC [08:13:54]RAPDU: 90 00 [08:13:54]wFMCommunicate OK [08:13:54]wFMCommunicate request_size=255 [08:13:54]MH_SAM_APDU [08:13: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 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 44 0D 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 C6 DC 02 00 35 04 06 00 A8 [08:13:54]Write to MH i2c: E2 02 01 2B 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 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 44 0D 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 C6 DC 02 00 35 04 06 00 A8 00 00 61 [08:13:54]Write i2c OK [08:13:54]MH_I2C_Read... [08:13:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:13:54]Read from MH i2c: E2 [08:13:54]MH_I2C_Read... [08:13:54]Read from MH i2c: E2 03 00 [08:13:54]MH_I2C_Read... [08:13:54]Read from MH i2c: E2 03 00 2B 2E 00 90 00 CD [08:13:54]RAPDU: 90 00 [08:13:54]wFMCommunicate OK [08:13:54]wFMCommunicate request_size=10 [08:13:54]MH_SAM_APDU [08:13:54]CAPDU: 80 0D 02 02 05 74 F9 D2 BE E3 [08:13:54]Write to MH i2c: E2 0D 00 2C 2E 80 0D 02 02 05 00 74 F9 D2 BE E3 00 00 BE [08:13:54]Write i2c OK [08:13:54]MH_I2C_Read... [08:13:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:13:54]Read from MH i2c: E2 [08:13:54]MH_I2C_Read... [08:13:54]Read from MH i2c: E2 03 00 [08:13:54]MH_I2C_Read... [08:13:54]Read from MH i2c: E2 03 00 2C 2E 00 90 00 CE [08:13:54]RAPDU: 90 00 [08:13:54]wFMCommunicate OK [08:13:54]wFMCommunicate request_size=4 [08:13:54]MH_SAM_APDU [08:13:54]CAPDU: 80 0D 03 02 [08:13:54]Write to MH i2c: E2 08 00 2D 2E 80 0D 03 02 00 00 00 00 D6 [08:13:54]Write i2c OK [08:13:54]MH_I2C_Read... [08:13:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:13:54]Read from MH i2c: E2 [08:13:54]MH_I2C_Read... [08:13:54]Read from MH i2c: E2 0B 00 [08:13:54]MH_I2C_Read... [08:13:54]Read from MH i2c: E2 0B 00 2D 2E 00 7B B1 17 10 3D 07 3C 7A 90 00 24 [08:13:54]RAPDU: 7B B1 17 10 3D 07 3C 7A 90 00 [08:13:54]wFMCommunicate OK [08:13:54]SAM_PROTO_SignData done [08:13:54]FM_MakeSignedData done [08:13:54]CreateOFDProtocolMessage [08:13:54]wFMCommunicate request_size=4 [08:13:54]MH_SAM_APDU [08:13:54]CAPDU: 80 11 00 00 [08:13:54]Write to MH i2c: E2 08 00 2E 2E 80 11 00 00 00 00 00 00 D6 [08:13:54]Write i2c OK [08:13:54]MH_I2C_Read... [08:13:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:13:54]Read from MH i2c: E2 [08:13:54]MH_I2C_Read... [08:13:54]Read from MH i2c: E2 17 00 [08:13:54]MH_I2C_Read... [08:13:54]Read from MH i2c: E2 17 00 2E 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 24 [08:13:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [08:13:54]wFMCommunicate OK [08:13:54]CreateOFDProtocolMessage done [08:13:54]OFDSenderStorePacket 187590 [08:13:54]StoreOFDPacket docnum=187590 [08:13:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 A1 F6 07 01 E2 9B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 44 0D 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 C6 DC 02 00 35 04 06 00 A8 74 F9 D2 BE E3 7B B1 17 10 3D 07 3C 7A [08:13:54]CheckFolder [08:13:54]dirname=/storage/ofd_packets [08:13:54]CheckFolder done [08:13:54]ProducePacketName [08:13:54]name=ofd_packets/00187590 [08:13:54]NVStorageSaveData ofd_packets/00187590 [08:13:54]File name is /storage/ofd_packets/00187590 [08:13:54]Write 301 bytes [08:13:54]NVStorageSaveData done [08:13:54]OFDSenderStorePacket done [08:13:54]KKMCreateOFDPacket done [08:13:54]NVStorageSaveData kkm_last_timestamp [08:13:54]File name is /storage/kkm_last_timestamp [08:13:54]Write 4 bytes [08:13:54]NVStorageSaveData done [08:13:54]ExternCall_PrintAddStr [08:13:54]wPrintStart [08:13:54]Write to MH i2c: 01 00 00 2F 2E 5D [08:13:54]Write i2c OK [08:13:54]MH_I2C_Read... [08:13:54]Read from MH i2c: 01 [08:13:54]MH_I2C_Read... [08:13:54]Read from MH i2c: 01 07 00 [08:13:54]MH_I2C_Read... [08:13:54]Read from MH i2c: 01 07 00 2F 2E 00 00 00 00 00 FF 0F 72 [08:13:54]RasterBufferAndPrint [08:13:54]line Счет N : (1)209641 [08:13:54]line ИНН: 02508201610067 [08:13:54]line Контрольно-Кассовый Чек [08:13:54]line ПРОДАЖА [08:13:54]line ТРК (МРК, ГНК) : 42 [08:13:54]line Товар: 2710124130 [08:13:54]line Аи-92-К-3 [08:13:54]line 7.480 * 66.90 [08:13:54]line = 500.41 [08:13:54]line НДС 12% НСП 1% [08:13:54]line > о реализуемом товаре [08:13:54]line ОКРУГЛЕНИЕ: -0.41 [08:13:54]line ИТОГО: 500.00 [08:13:54]line Внесено: 500.00 [08:13:54]line СДАЧА: 0.00 [08:13:54]line НСП 1% : 4.43 [08:13:54]line НДС 12% : 53.14 [08:13:54]line Наличными: 500.00 [08:13:54]line Безнал.: 0.00 [08:13:54]line Место: АЗС № 86 "Партнер Нефть" [08:13:54]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [08:13:54]line СНО: Общий режим [08:13:54]line Чек 54 21.10.2024 08:13 [08:13:54]line Смена: 460 ФФД: 1.0 [08:13:54]line ЗНМ: 0300000155 [08:13:54]line РНМ: 0000000000100030 [08:13:54]line Версия ККМ: 001 [08:13:54]line ФМ: 0000000000965340 [08:13:54]line ФД: 187590 [08:13:54]line ФПД: 185220361010915 [08:13:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T081356&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187590&fm=185220361010915&tin=02508201610067®Number=0000000000100030&sum=50000 [08:13:55]written 0, free lines is 4095 [08:13:55]OFD Sender: Processing packet 187590 [packets to send 1062, broken 1061] [08:13:55]ProducePacketName [08:13:55]name=ofd_packets/00187590 [08:13:55]OFD Sender: To server: pG, [08:13:55]CommunicateWithHost lk.salyk.kg:30040 [08:13:55]ConnectInit lk.salyk.kg [08:13:55]Connected sock=10 [08:13:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 A1 F6 07 01 E2 9B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 44 0D 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 C6 DC 02 00 35 04 06 00 A8 74 F9 D2 BE E3 7B B1 17 10 3D 07 3C 7A [08:13:55]Write to MH i2c: 01 00 00 5A 2E 88 [08:13:55]Write i2c OK [08:13:55]MH_I2C_Read... [08:13:55]Read from MH i2c: 01 [08:13:55]MH_I2C_Read... [08:13:55]Read from MH i2c: 01 07 00 [08:13:55]MH_I2C_Read... [08:13:55]Read from MH i2c: 01 07 00 5A 2E 00 00 00 00 00 5C 0C F7 [08:13:55]RasterBufferAndPrint [08:13:55]line [08:13:55]line [08:13:55]line [08:13:55]line [08:13:55]line [08:13:55]written 0, free lines is 3169 [08:13:55]MH_Cut [08:13:55]Write to MH i2c: D1 01 00 61 2E 01 61 [08:13:55]Write i2c OK [08:13:55]MH_I2C_Read... [08:13:55]Read from MH i2c: D1 [08:13:55]MH_I2C_Read... [08:13:55]Read from MH i2c: D1 01 00 [08:13:55]MH_I2C_Read... [08:13:55]Read from MH i2c: D1 01 00 61 2E 00 60 [08:13:55]Write to MH i2c: 01 00 00 62 2E 90 [08:13:55]Write i2c OK [08:13:55]MH_I2C_Read... [08:13:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 24 C7 47 00 46 22 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 C6 DC 02 00 F4 03 04 00 34 B7 15 67 B6 04 01 00 00 1A 02 37 1A D6 BB 3F B4 [08:13:55]CommunicateWithHost err = 0 [08:13:55]CheckOFDResponse [08:13:55]1017 (14) - 77093643461234 [08:13:55]1041 (16) - 0000000000965340 [08:13:55]1040 (4) - 187590 [08:13:55]1012 (4) - 21.10.2024 02:06 [08:13:55]1206 (1) - 0 [08:13:55]OFD Sender: Remove packet 187590 [08:13:55]ProducePacketName [08:13:55]name=ofd_packets/00187590 [08:13:55]NVStorageDeleteData [08:13:56]OFD Sender: No OFD packet to send [08:13:56]*** Cut start [08:13:56]*** Partial cut [08:13:56]*** CUTSNS_PIN = 1 [08:13:56]*** CUTSNS_PIN = 0 [08:13:57]*** Brake cut motor [08:13:57]Read from MH i2c: 01 [08:13:57]MH_I2C_Read... [08:13:57]*** Stop cut motor [08:13:57]*** Cut end [08:13:57]Read from MH i2c: 01 07 00 [08:13:57]MH_I2C_Read... [08:13:57]Read from MH i2c: 01 07 00 62 2E 00 00 00 00 00 FF 0F A5 [08:13:57]process_action close_receipt done [08:13:57]requested_data is exist [08:13:57]produce_requested_data [08:13:57]requested_item fm.sn is exist - process it [08:13:57]wFMCommunicate request_size=4 [08:13:57]MH_SAM_APDU [08:13:57]CAPDU: 80 11 00 00 [08:13:57]Write to MH i2c: E2 08 00 63 2E 80 11 00 00 00 00 00 00 0B [08:13:57]Write i2c OK [08:13:57]MH_I2C_Read... [08:13:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:13:57]Read from MH i2c: E2 [08:13:57]MH_I2C_Read... [08:13:57]Read from MH i2c: E2 17 00 [08:13:57]MH_I2C_Read... [08:13:57]Read from MH i2c: E2 17 00 63 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 59 [08:13:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [08:13:57]wFMCommunicate OK [08:13:57]requested_item fd.num is exist - process it [08:13:57]SAM_PROTO_GetFieldsCounters [08:13:57]wFMCommunicate request_size=4 [08:13:57]MH_SAM_APDU [08:13:57]CAPDU: 80 13 00 00 [08:13:57]Write to MH i2c: E2 08 00 64 2E 80 13 00 00 00 00 00 00 0E [08:13:57]Write i2c OK [08:13:57]MH_I2C_Read... [08:13:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:13:57]Read from MH i2c: E2 [08:13:57]MH_I2C_Read... [08:13:57]Read from MH i2c: E2 62 00 [08:13:57]MH_I2C_Read... [08:13:57]Read from MH i2c: E2 62 00 64 2E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 C6 DC 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 36 00 00 00 5E 04 04 00 36 00 00 00 57 04 04 00 37 00 00 00 19 04 04 00 00 00 00 00 90 00 28 [08:13:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 C6 DC 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 36 00 00 00 5E 04 04 00 36 00 00 00 57 04 04 00 37 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:13:57]wFMCommunicate OK [08:13:57]SAM_PROTO_GetFieldsCounters done [08:13:57]requested_item shift.num is exist - process it [08:13:57]requested_item shift.opened is exist - process it [08:13:57]req_shift_opened [08:13:57]FM_GetShiftState [08:13:57]SAM_PROTO_GetShiftState [08:13:57]wFMCommunicate request_size=4 [08:13:57]MH_SAM_APDU [08:13:57]CAPDU: 80 13 01 00 [08:13:57]Write to MH i2c: E2 08 00 65 2E 80 13 01 00 00 00 00 00 10 [08:13:57]Write i2c OK [08:13:57]MH_I2C_Read... [08:13:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:13:57]Read from MH i2c: E2 [08:13:57]MH_I2C_Read... [08:13:57]Read from MH i2c: E2 0E 00 [08:13:57]MH_I2C_Read... [08:13:57]Read from MH i2c: E2 0E 00 65 2E 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 6F [08:13:57]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [08:13:57]wFMCommunicate OK [08:13:57]SAM_PROTO_GetShiftState done [08:13:57]FM_GetShiftState done [08:13:57]req_shift_opened done [08:13:57]requested_item shift.open_date is exist - process it [08:13:57]req_shift_open_date [08:13:57]req_shift_open_date done [08:13:57]produce_requested_data done [08:13:57]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187590,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [08:13:57]process_action_free close_receipt [08:13:57]json_value_free [08:13:57]json_value_free done [08:13:57]process_json_proto returns [08:13:57]Send response to host [08:13:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187590,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [08:13:57]free response buf [08:13:57]execute_script done [08:13:57]execute_script returns [08:13:57]free content buf [08:13:57]Sock 8.Close socket [08:13:57]Sock 8.Thread stoped [08:14:01]OFD Sender: No OFD packet to send [08:14:06]OFD Sender: No OFD packet to send [08:14:11]OFD Sender: No OFD packet to send [08:14:16]OFD Sender: No OFD packet to send [08:14:21]OFD Sender: No OFD packet to send [08:14:26]OFD Sender: No OFD packet to send [08:14:31]OFD Sender: No OFD packet to send [08:14:36]OFD Sender: No OFD packet to send [08:14:41]OFD Sender: No OFD packet to send [08:14:46]OFD Sender: No OFD packet to send [08:14:51]OFD Sender: No OFD packet to send [08:14:56]OFD Sender: No OFD packet to send [08:14:56]accept exits with 9 [08:14:56]New connection [08:14:56]New thread 3067014500 created [08:14:56]Thread 3067157860 joined [08:14:56]Waiting for new connection... [08:14:56] Sock 9.Parse request [08:14:56]Sock 9.Check first char [08:14:56]Sock 9.First char is OK [08:14:56]request: POST /json_proto HTTP/1.0 [08:14:56]Method: POST [08:14:56]URL: /json_proto [08:14:56]Method is POST - this is cgi request [08:14:56]url: /json_proto [08:14:56]query_string will be loaded in cgi processing [08:14:56]execute_cgi json_proto POST (null) [08:14:56]execute_cgi path=json_proto method=POST [08:14:56]POST find Content-Length [08:14:56]Host: 172.17.42.131:8080 [08:14:56]Content-Length: 682 [08:14:56]Content-Type: application/json [08:14:56] [08:14:56]POST finish read [08:14:56]Found Content-Length = 682 [08:14:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209642", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "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:14:56]execute_script... [08:14: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)209642", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "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:14:56]POST & json_proto [08:14:56]process_json_proto [08:14:56]json parsed OK: [08:14:56]protocol is kg_v1.0 [08:14:56]action value=close_receipt [08:14:56]process_action close_receipt [08:14:56]cmd_close_receipt [08:14:56]MH_GetDate [08:14:56]Write to MH i2c: F0 00 00 66 2E 83 [08:14:56]Write i2c OK [08:14:56]MH_I2C_Read... [08:14:56]Read from MH i2c: F0 [08:14:56]MH_I2C_Read... [08:14:56]Read from MH i2c: F0 09 00 [08:14:56]MH_I2C_Read... [08:14:56]Read from MH i2c: F0 09 00 66 2E 00 83 0D 16 67 A0 18 CA 66 81 [08:14:56]GetLastDocTimeStamp 1729498436 [08:14:56]current date 1729498499 [08:14:56]FM_GetShiftState [08:14:56]SAM_PROTO_GetShiftState [08:14:56]wFMCommunicate request_size=4 [08:14:56]MH_SAM_APDU [08:14:56]CAPDU: 80 13 01 00 [08:14:56]Write to MH i2c: E2 08 00 67 2E 80 13 01 00 00 00 00 00 12 [08:14:56]Write i2c OK [08:14:56]MH_I2C_Read... [08:14:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:14:56]Read from MH i2c: E2 [08:14:56]MH_I2C_Read... [08:14:56]Read from MH i2c: E2 0E 00 [08:14:56]MH_I2C_Read... [08:14:56]Read from MH i2c: E2 0E 00 67 2E 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 71 [08:14:56]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [08:14:56]wFMCommunicate OK [08:14:56]SAM_PROTO_GetShiftState done [08:14:56]FM_GetShiftState done [08:14:56]opened in 1729469754 [08:14:56]opened+sec_in_day 1729556154 [08:14:56]quantity*price = 100015 [08:14:56]sum+1 = 100017 [08:14:56]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 55 21.10.2024 08:14 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 187591 ФПД: 128874354119167 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T081459&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187591&fm=128874354119167&tin=02508201610067®Number=0000000000100030&sum=100000 [08:14:57]StoreToDocumentArchive [08:14:57]shift 460 fd 187591 [08:14:57]save to /storage/0460/doc_00187591 [08:14:57]save last doc name /storage/0460/doc_00187591 to /storage/kkm_last_doc_name [08:14:57]save OK [08:14:57]Clear old archive folders... [08:14:57]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:14:57]tlvbuf is 010903F0 [08:14:57]SAM_PROTO_ClearQueue [08:14:57]wFMCommunicate request_size=4 [08:14:57]MH_SAM_APDU [08:14:57]CAPDU: 80 09 00 00 [08:14:57]Write to MH i2c: E2 08 00 74 2E 80 09 00 00 00 00 00 00 14 [08:14:57]Write i2c OK [08:14:57]MH_I2C_Read... [08:14:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:14:57]Read from MH i2c: E2 [08:14:57]MH_I2C_Read... [08:14:57]Read from MH i2c: E2 03 00 [08:14:57]MH_I2C_Read... [08:14:57]Read from MH i2c: E2 03 00 74 2E 00 90 00 16 [08:14:57]RAPDU: 90 00 [08:14:57]wFMCommunicate OK [08:14:57]SAM_PROTO_ClearQueue done [08:14:57]KKMCreateOFDPacket [08:14:57]OFDProtocolAddRootSTLVToBuf [08:14:57]FM_MakeSignedData [08:14:57]FM_MakeSignedData [08:14:57]SAM_PROTO_SignData [08:14:57]wFMCommunicate request_size=4 [08:14:57]MH_SAM_APDU [08:14:57]CAPDU: 80 0D 01 02 [08:14:57]Write to MH i2c: E2 08 00 75 2E 80 0D 01 02 00 00 00 00 1C [08:14:57]Write i2c OK [08:14:57]MH_I2C_Read... [08:14:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:14:57]Read from MH i2c: E2 [08:14:57]MH_I2C_Read... [08:14:57]Read from MH i2c: E2 03 00 [08:14:57]MH_I2C_Read... [08:14:57]Read from MH i2c: E2 03 00 75 2E 00 90 00 17 [08:14:57]RAPDU: 90 00 [08:14:57]wFMCommunicate OK [08:14:57]wFMCommunicate request_size=255 [08:14:57]MH_SAM_APDU [08:14: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 33 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 37 00 00 00 F4 03 04 00 83 0D 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 C7 DC 02 00 35 04 06 00 75 [08:14:57]Write to MH i2c: E2 02 01 76 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 33 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 37 00 00 00 F4 03 04 00 83 0D 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 C7 DC 02 00 35 04 06 00 75 00 00 B4 [08:14:57]Write i2c OK [08:14:57]MH_I2C_Read... [08:14:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:14:58]Read from MH i2c: E2 [08:14:58]MH_I2C_Read... [08:14:58]Read from MH i2c: E2 03 00 [08:14:58]MH_I2C_Read... [08:14:58]Read from MH i2c: E2 03 00 76 2E 00 90 00 18 [08:14:58]RAPDU: 90 00 [08:14:58]wFMCommunicate OK [08:14:58]wFMCommunicate request_size=10 [08:14:58]MH_SAM_APDU [08:14:58]CAPDU: 80 0D 02 02 05 35 E6 19 11 FF [08:14:58]Write to MH i2c: E2 0D 00 77 2E 80 0D 02 02 05 00 35 E6 19 11 FF 00 00 6D [08:14:58]Write i2c OK [08:14:58]MH_I2C_Read... [08:14:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:14:58]Read from MH i2c: E2 [08:14:58]MH_I2C_Read... [08:14:58]Read from MH i2c: E2 03 00 [08:14:58]MH_I2C_Read... [08:14:58]Read from MH i2c: E2 03 00 77 2E 00 90 00 19 [08:14:58]RAPDU: 90 00 [08:14:58]wFMCommunicate OK [08:14:58]wFMCommunicate request_size=4 [08:14:58]MH_SAM_APDU [08:14:58]CAPDU: 80 0D 03 02 [08:14:58]Write to MH i2c: E2 08 00 78 2E 80 0D 03 02 00 00 00 00 21 [08:14:58]Write i2c OK [08:14:58]MH_I2C_Read... [08:14:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:14:58]Read from MH i2c: E2 [08:14:58]MH_I2C_Read... [08:14:58]Read from MH i2c: E2 0B 00 [08:14:58]MH_I2C_Read... [08:14:58]Read from MH i2c: E2 0B 00 78 2E 00 92 7B 1A 42 17 77 25 7C 90 00 BA [08:14:58]RAPDU: 92 7B 1A 42 17 77 25 7C 90 00 [08:14:58]wFMCommunicate OK [08:14:58]SAM_PROTO_SignData done [08:14:58]FM_MakeSignedData done [08:14:58]CreateOFDProtocolMessage [08:14:58]wFMCommunicate request_size=4 [08:14:58]MH_SAM_APDU [08:14:58]CAPDU: 80 11 00 00 [08:14:58]Write to MH i2c: E2 08 00 79 2E 80 11 00 00 00 00 00 00 21 [08:14:58]Write i2c OK [08:14:58]MH_I2C_Read... [08:14:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:14:58]Read from MH i2c: E2 [08:14:58]MH_I2C_Read... [08:14:58]Read from MH i2c: E2 17 00 [08:14:58]MH_I2C_Read... [08:14:58]Read from MH i2c: E2 17 00 79 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 6F [08:14:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [08:14:58]wFMCommunicate OK [08:14:58]CreateOFDProtocolMessage done [08:14:58]OFDSenderStorePacket 187591 [08:14:58]StoreOFDPacket docnum=187591 [08:14:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 7E 34 07 01 AB B0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 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 37 00 00 00 F4 03 04 00 83 0D 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 C7 DC 02 00 35 04 06 00 75 35 E6 19 11 FF 92 7B 1A 42 17 77 25 7C [08:14:58]CheckFolder [08:14:58]dirname=/storage/ofd_packets [08:14:58]CheckFolder done [08:14:58]ProducePacketName [08:14:58]name=ofd_packets/00187591 [08:14:58]NVStorageSaveData ofd_packets/00187591 [08:14:58]File name is /storage/ofd_packets/00187591 [08:14:58]Write 301 bytes [08:14:58]NVStorageSaveData done [08:14:58]OFDSenderStorePacket done [08:14:58]KKMCreateOFDPacket done [08:14:58]NVStorageSaveData kkm_last_timestamp [08:14:58]File name is /storage/kkm_last_timestamp [08:14:58]Write 4 bytes [08:14:58]NVStorageSaveData done [08:14:58]ExternCall_PrintAddStr [08:14:58]wPrintStart [08:14:58]Write to MH i2c: 01 00 00 7A 2E A8 [08:14:58]Write i2c OK [08:14:58]MH_I2C_Read... [08:14:58]Read from MH i2c: 01 [08:14:58]MH_I2C_Read... [08:14:58]Read from MH i2c: 01 07 00 [08:14:58]MH_I2C_Read... [08:14:58]Read from MH i2c: 01 07 00 7A 2E 00 00 00 00 00 FF 0F BD [08:14:58]RasterBufferAndPrint [08:14:58]line Счет N : (1)209642 [08:14:58]line ИНН: 02508201610067 [08:14:58]line Контрольно-Кассовый Чек [08:14:58]line ПРОДАЖА [08:14:58]line ТРК (МРК, ГНК) : 12 [08:14:58]line Товар: 2710124130 [08:14:58]line Аи-92-К-3 [08:14:58]line 14.950 * 66.90 [08:14:58]line = 1000.16 [08:14:58]line НДС 12% НСП 1% [08:14:58]line > о реализуемом товаре [08:14:58]line ОКРУГЛЕНИЕ: -0.16 [08:14:58]line ИТОГО: 1000.00 [08:14:58]line Внесено: 1000.00 [08:14:58]line СДАЧА: 0.00 [08:14:58]line НСП 1% : 8.85 [08:14:58]line НДС 12% : 106.21 [08:14:58]line Наличными: 1000.00 [08:14:58]line Безнал.: 0.00 [08:14:58]line Место: АЗС № 86 "Партнер Нефть" [08:14:58]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [08:14:58]line СНО: Общий режим [08:14:58]line Чек 55 21.10.2024 08:14 [08:14:58]line Смена: 460 ФФД: 1.0 [08:14:58]line ЗНМ: 0300000155 [08:14:58]line РНМ: 0000000000100030 [08:14:58]line Версия ККМ: 001 [08:14:58]line ФМ: 0000000000965340 [08:14:58]line ФД: 187591 [08:14:58]line ФПД: 128874354119167 [08:14:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T081459&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187591&fm=128874354119167&tin=02508201610067®Number=0000000000100030&sum=100000 [08:14:58]written 0, free lines is 4095 [08:14:58]OFD Sender: Processing packet 187591 [packets to send 1062, broken 1061] [08:14:58]ProducePacketName [08:14:58]name=ofd_packets/00187591 [08:14:58]OFD Sender: To server: pG, [08:14:58]CommunicateWithHost lk.salyk.kg:30040 [08:14:58]ConnectInit lk.salyk.kg [08:14:58]Connected sock=10 [08:14:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 7E 34 07 01 AB B0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 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 37 00 00 00 F4 03 04 00 83 0D 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 C7 DC 02 00 35 04 06 00 75 35 E6 19 11 FF 92 7B 1A 42 17 77 25 7C [08:14:58]Write to MH i2c: 01 00 00 A5 2E D3 [08:14:58]Write i2c OK [08:14:58]MH_I2C_Read... [08:14:58]Read from MH i2c: 01 [08:14:58]MH_I2C_Read... [08:14:58]Read from MH i2c: 01 07 00 [08:14:58]MH_I2C_Read... [08:14:58]Read from MH i2c: 01 07 00 A5 2E 00 00 00 00 00 59 0C 3F [08:14:58]RasterBufferAndPrint [08:14:58]line [08:14:58]line [08:14:58]line [08:14:58]line [08:14:58]line [08:14:58]written 0, free lines is 3165 [08:14:58]MH_Cut [08:14:58]Write to MH i2c: D1 01 00 AC 2E 01 AC [08:14:58]Write i2c OK [08:14:58]MH_I2C_Read... [08:14:58]Read from MH i2c: D1 [08:14:58]MH_I2C_Read... [08:14:58]Read from MH i2c: D1 01 00 [08:14:58]MH_I2C_Read... [08:14:58]Read from MH i2c: D1 01 00 AC 2E 00 AB [08:14:58]Write to MH i2c: 01 00 00 AD 2E DB [08:14:58]Write i2c OK [08:14:58]MH_I2C_Read... [08:14:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 27 1A 47 00 5B 24 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 C7 DC 02 00 F4 03 04 00 73 B7 15 67 B6 04 01 00 00 59 EC 73 3F 71 82 5D 07 [08:14:58]CommunicateWithHost err = 0 [08:14:58]CheckOFDResponse [08:14:58]1017 (14) - 77093643461234 [08:14:58]1041 (16) - 0000000000965340 [08:14:58]1040 (4) - 187591 [08:14:58]1012 (4) - 21.10.2024 02:07 [08:14:58]1206 (1) - 0 [08:14:58]OFD Sender: Remove packet 187591 [08:14:58]ProducePacketName [08:14:58]name=ofd_packets/00187591 [08:14:58]NVStorageDeleteData [08:14:59]OFD Sender: No OFD packet to send [08:15:00]*** Cut start [08:15:00]*** Partial cut [08:15:00]*** CUTSNS_PIN = 1 [08:15:00]*** CUTSNS_PIN = 0 [08:15:00]*** Brake cut motor [08:15:00]Read from MH i2c: 01 [08:15:00]MH_I2C_Read... [08:15:00]*** Stop cut motor [08:15:00]*** Cut end [08:15:00]Read from MH i2c: 01 07 00 [08:15:00]MH_I2C_Read... [08:15:00]Read from MH i2c: 01 07 00 AD 2E 00 00 00 00 00 FF 0F F0 [08:15:00]process_action close_receipt done [08:15:00]requested_data is exist [08:15:00]produce_requested_data [08:15:00]requested_item fm.sn is exist - process it [08:15:00]wFMCommunicate request_size=4 [08:15:00]MH_SAM_APDU [08:15:00]CAPDU: 80 11 00 00 [08:15:00]Write to MH i2c: E2 08 00 AE 2E 80 11 00 00 00 00 00 00 56 [08:15:00]Write i2c OK [08:15:00]MH_I2C_Read... [08:15:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:15:00]Read from MH i2c: E2 [08:15:00]MH_I2C_Read... [08:15:00]Read from MH i2c: E2 17 00 [08:15:00]MH_I2C_Read... [08:15:00]Read from MH i2c: E2 17 00 AE 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 A4 [08:15:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [08:15:00]wFMCommunicate OK [08:15:00]requested_item fd.num is exist - process it [08:15:00]SAM_PROTO_GetFieldsCounters [08:15:00]wFMCommunicate request_size=4 [08:15:00]MH_SAM_APDU [08:15:00]CAPDU: 80 13 00 00 [08:15:00]Write to MH i2c: E2 08 00 AF 2E 80 13 00 00 00 00 00 00 59 [08:15:00]Write i2c OK [08:15:00]MH_I2C_Read... [08:15:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:15:00]Read from MH i2c: E2 [08:15:00]MH_I2C_Read... [08:15:00]Read from MH i2c: E2 62 00 [08:15:00]MH_I2C_Read... [08:15:00]Read from MH i2c: E2 62 00 AF 2E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 C7 DC 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 37 00 00 00 5E 04 04 00 37 00 00 00 57 04 04 00 38 00 00 00 19 04 04 00 00 00 00 00 90 00 77 [08:15:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 C7 DC 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 37 00 00 00 5E 04 04 00 37 00 00 00 57 04 04 00 38 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:15:00]wFMCommunicate OK [08:15:00]SAM_PROTO_GetFieldsCounters done [08:15:00]requested_item shift.num is exist - process it [08:15:00]requested_item shift.opened is exist - process it [08:15:00]req_shift_opened [08:15:00]FM_GetShiftState [08:15:00]SAM_PROTO_GetShiftState [08:15:00]wFMCommunicate request_size=4 [08:15:00]MH_SAM_APDU [08:15:00]CAPDU: 80 13 01 00 [08:15:00]Write to MH i2c: E2 08 00 B0 2E 80 13 01 00 00 00 00 00 5B [08:15:00]Write i2c OK [08:15:00]MH_I2C_Read... [08:15:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:15:01]Read from MH i2c: E2 [08:15:01]MH_I2C_Read... [08:15:01]Read from MH i2c: E2 0E 00 [08:15:01]MH_I2C_Read... [08:15:01]Read from MH i2c: E2 0E 00 B0 2E 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 BA [08:15:01]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [08:15:01]wFMCommunicate OK [08:15:01]SAM_PROTO_GetShiftState done [08:15:01]FM_GetShiftState done [08:15:01]req_shift_opened done [08:15:01]requested_item shift.open_date is exist - process it [08:15:01]req_shift_open_date [08:15:01]req_shift_open_date done [08:15:01]produce_requested_data done [08:15:01]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187591,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [08:15:01]process_action_free close_receipt [08:15:01]json_value_free [08:15:01]json_value_free done [08:15:01]process_json_proto returns [08:15:01]Send response to host [08:15:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187591,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [08:15:01]free response buf [08:15:01]execute_script done [08:15:01]execute_script returns [08:15:01]free content buf [08:15:01]Sock 9.Close socket [08:15:01]Sock 9.Thread stoped [08:15:04]OFD Sender: No OFD packet to send [08:15:09]OFD Sender: No OFD packet to send [08:15:14]OFD Sender: No OFD packet to send [08:15:19]OFD Sender: No OFD packet to send [08:15:24]OFD Sender: No OFD packet to send [08:15:29]OFD Sender: No OFD packet to send [08:15:34]OFD Sender: No OFD packet to send [08:15:39]OFD Sender: No OFD packet to send [08:15:44]OFD Sender: No OFD packet to send [08:15:49]OFD Sender: No OFD packet to send [08:15:54]OFD Sender: No OFD packet to send [08:15:59]OFD Sender: No OFD packet to send [08:16:04]OFD Sender: No OFD packet to send [08:16:09]OFD Sender: No OFD packet to send [08:16:14]OFD Sender: No OFD packet to send [08:16:19]OFD Sender: No OFD packet to send [08:16:24]OFD Sender: No OFD packet to send [08:16:29]OFD Sender: No OFD packet to send [08:16:34]OFD Sender: No OFD packet to send [08:16:39]OFD Sender: No OFD packet to send [08:16:44]OFD Sender: No OFD packet to send [08:16:49]OFD Sender: No OFD packet to send [08:16:54]OFD Sender: No OFD packet to send [08:16:59]OFD Sender: No OFD packet to send [08:17:05]OFD Sender: No OFD packet to send [08:17:10]OFD Sender: No OFD packet to send [08:17:15]OFD Sender: No OFD packet to send [08:17:20]OFD Sender: No OFD packet to send [08:17:25]OFD Sender: No OFD packet to send [08:17:27]accept exits with 8 [08:17:27]New connection [08:17:27]New thread 3067157860 created [08:17:27]Thread 3067014500 joined [08:17:27]Waiting for new connection... [08:17:27] Sock 8.Parse request [08:17:27]Sock 8.Check first char [08:17:27]Sock 8.First char is OK [08:17:27]request: POST /json_proto HTTP/1.0 [08:17:27]Method: POST [08:17:27]URL: /json_proto [08:17:27]Method is POST - this is cgi request [08:17:27]url: /json_proto [08:17:27]query_string will be loaded in cgi processing [08:17:27]execute_cgi json_proto POST (null) [08:17:27]execute_cgi path=json_proto method=POST [08:17:27]POST find Content-Length [08:17:27]Host: 172.17.42.131:8080 [08:17:27]Content-Length: 983 [08:17:27]Content-Type: application/json [08:17:27] [08:17:27]POST finish read [08:17:27]Found Content-Length = 983 [08:17:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209643", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 65.90, "quantity" : 53.120, "sum" : 3500.61, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0410\u0418-92\u000A\u043D\u043E\u043C\u0435\u0440 86\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 53.12 \u0441\u043E\u043C", "deposit" : 3500.00, "total" : 3500.00, "payments": [ { "type": 0, "sum" : 3500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:17:27]execute_script... [08:17: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)209643", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 65.90, "quantity" : 53.120, "sum" : 3500.61, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0410\u0418-92\u000A\u043D\u043E\u043C\u0435\u0440 86\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 53.12 \u0441\u043E\u043C", "deposit" : 3500.00, "total" : 3500.00, "payments": [ { "type": 0, "sum" : 3500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:17:27]POST & json_proto [08:17:27]process_json_proto [08:17:27]json parsed OK: [08:17:27]protocol is kg_v1.0 [08:17:27]action value=close_receipt [08:17:27]process_action close_receipt [08:17:27]cmd_close_receipt [08:17:27]MH_GetDate [08:17:27]Write to MH i2c: F0 00 00 B1 2E CE [08:17:27]Write i2c OK [08:17:27]MH_I2C_Read... [08:17:27]Read from MH i2c: F0 [08:17:27]MH_I2C_Read... [08:17:27]Read from MH i2c: F0 09 00 [08:17:27]MH_I2C_Read... [08:17:27]Read from MH i2c: F0 09 00 B1 2E 00 1A 0E 16 67 A0 18 CA 66 64 [08:17:27]GetLastDocTimeStamp 1729498499 [08:17:27]current date 1729498650 [08:17:27]FM_GetShiftState [08:17:27]SAM_PROTO_GetShiftState [08:17:27]wFMCommunicate request_size=4 [08:17:27]MH_SAM_APDU [08:17:27]CAPDU: 80 13 01 00 [08:17:27]Write to MH i2c: E2 08 00 B2 2E 80 13 01 00 00 00 00 00 5D [08:17:27]Write i2c OK [08:17:27]MH_I2C_Read... [08:17:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:17:27]Read from MH i2c: E2 [08:17:27]MH_I2C_Read... [08:17:27]Read from MH i2c: E2 0E 00 [08:17:27]MH_I2C_Read... [08:17:27]Read from MH i2c: E2 0E 00 B2 2E 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 BC [08:17:27]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [08:17:27]wFMCommunicate OK [08:17:27]SAM_PROTO_GetShiftState done [08:17:27]FM_GetShiftState done [08:17:27]opened in 1729469754 [08:17:27]opened+sec_in_day 1729556154 [08:17:27]quantity*price = 350060 [08:17:27]sum+1 = 350062 [08:17:27]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.61 ИТОГО: 3500.00 Внесено: 3500.00 СДАЧА: 0.00 НСП 1% : 30.98 НДС 12% : 371.75 Наличными: 3500.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 56 21.10.2024 08:17 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Дисконтная программа АИ-92 номер 86 сэкономлено 53.12 сом ФМ: 0000000000965340 ФД: 187592 ФПД: 227480070396616 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T081730&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187592&fm=227480070396616&tin=02508201610067®Number=0000000000100030&sum=350000 [08:17:28]StoreToDocumentArchive [08:17:28]shift 460 fd 187592 [08:17:28]save to /storage/0460/doc_00187592 [08:17:28]save last doc name /storage/0460/doc_00187592 to /storage/kkm_last_doc_name [08:17:28]save OK [08:17:28]Clear old archive folders... [08:17:28]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:17:28]tlvbuf is 01121130 [08:17:28]SAM_PROTO_ClearQueue [08:17:28]wFMCommunicate request_size=4 [08:17:28]MH_SAM_APDU [08:17:28]CAPDU: 80 09 00 00 [08:17:28]Write to MH i2c: E2 08 00 BF 2E 80 09 00 00 00 00 00 00 5F [08:17:28]Write i2c OK [08:17:28]MH_I2C_Read... [08:17:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:17:28]Read from MH i2c: E2 [08:17:28]MH_I2C_Read... [08:17:28]Read from MH i2c: E2 03 00 [08:17:28]MH_I2C_Read... [08:17:28]Read from MH i2c: E2 03 00 BF 2E 00 90 00 61 [08:17:28]RAPDU: 90 00 [08:17:28]wFMCommunicate OK [08:17:28]SAM_PROTO_ClearQueue done [08:17:28]KKMCreateOFDPacket [08:17:28]OFDProtocolAddRootSTLVToBuf [08:17:28]FM_MakeSignedData [08:17:28]FM_MakeSignedData [08:17:28]SAM_PROTO_SignData [08:17:28]wFMCommunicate request_size=4 [08:17:28]MH_SAM_APDU [08:17:28]CAPDU: 80 0D 01 02 [08:17:28]Write to MH i2c: E2 08 00 C0 2E 80 0D 01 02 00 00 00 00 67 [08:17:28]Write i2c OK [08:17:28]MH_I2C_Read... [08:17:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:17:28]Read from MH i2c: E2 [08:17:28]MH_I2C_Read... [08:17:28]Read from MH i2c: E2 03 00 [08:17:28]MH_I2C_Read... [08:17:28]Read from MH i2c: E2 03 00 C0 2E 00 90 00 62 [08:17:28]RAPDU: 90 00 [08:17:28]wFMCommunicate OK [08:17:28]wFMCommunicate request_size=255 [08:17:28]MH_SAM_APDU [08:17: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 33 FF 03 08 00 03 80 CF 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 6D 57 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 57 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1A 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 37 91 00 00 00 00 07 04 06 00 30 57 05 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 1A 0E 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 C8 DC 02 00 35 04 06 00 CE [08:17:28]Write to MH i2c: E2 02 01 C1 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 33 FF 03 08 00 03 80 CF 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 6D 57 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 57 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1A 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 37 91 00 00 00 00 07 04 06 00 30 57 05 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 1A 0E 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 C8 DC 02 00 35 04 06 00 CE 00 00 68 [08:17:28]Write i2c OK [08:17:28]MH_I2C_Read... [08:17:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:17:28]Read from MH i2c: E2 [08:17:28]MH_I2C_Read... [08:17:28]Read from MH i2c: E2 03 00 [08:17:28]MH_I2C_Read... [08:17:28]Read from MH i2c: E2 03 00 C1 2E 00 90 00 63 [08:17:28]RAPDU: 90 00 [08:17:28]wFMCommunicate OK [08:17:28]wFMCommunicate request_size=10 [08:17:28]MH_SAM_APDU [08:17:28]CAPDU: 80 0D 02 02 05 E4 54 CA 1A C8 [08:17:28]Write to MH i2c: E2 0D 00 C2 2E 80 0D 02 02 05 00 E4 54 CA 1A C8 00 00 58 [08:17:28]Write i2c OK [08:17:28]MH_I2C_Read... [08:17:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:17:28]Read from MH i2c: E2 [08:17:28]MH_I2C_Read... [08:17:28]Read from MH i2c: E2 03 00 [08:17:28]MH_I2C_Read... [08:17:28]Read from MH i2c: E2 03 00 C2 2E 00 90 00 64 [08:17:28]RAPDU: 90 00 [08:17:28]wFMCommunicate OK [08:17:28]wFMCommunicate request_size=4 [08:17:28]MH_SAM_APDU [08:17:28]CAPDU: 80 0D 03 02 [08:17:28]Write to MH i2c: E2 08 00 C3 2E 80 0D 03 02 00 00 00 00 6C [08:17:28]Write i2c OK [08:17:28]MH_I2C_Read... [08:17:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:17:28]Read from MH i2c: E2 [08:17:28]MH_I2C_Read... [08:17:28]Read from MH i2c: E2 0B 00 [08:17:28]MH_I2C_Read... [08:17:28]Read from MH i2c: E2 0B 00 C3 2E 00 13 70 A5 7D 0B 2B 49 68 90 00 F9 [08:17:28]RAPDU: 13 70 A5 7D 0B 2B 49 68 90 00 [08:17:28]wFMCommunicate OK [08:17:28]SAM_PROTO_SignData done [08:17:28]FM_MakeSignedData done [08:17:28]CreateOFDProtocolMessage [08:17:28]wFMCommunicate request_size=4 [08:17:28]MH_SAM_APDU [08:17:28]CAPDU: 80 11 00 00 [08:17:28]Write to MH i2c: E2 08 00 C4 2E 80 11 00 00 00 00 00 00 6C [08:17:28]Write i2c OK [08:17:28]MH_I2C_Read... [08:17:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:17:28]Read from MH i2c: E2 [08:17:28]MH_I2C_Read... [08:17:28]Read from MH i2c: E2 17 00 [08:17:28]MH_I2C_Read... [08:17:28]Read from MH i2c: E2 17 00 C4 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 BA [08:17:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [08:17:28]wFMCommunicate OK [08:17:28]CreateOFDProtocolMessage done [08:17:28]OFDSenderStorePacket 187592 [08:17:28]StoreOFDPacket docnum=187592 [08:17:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 BD 02 07 01 4C 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 33 FF 03 08 00 03 80 CF 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 6D 57 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 57 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1A 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 37 91 00 00 00 00 07 04 06 00 30 57 05 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 1A 0E 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 C8 DC 02 00 35 04 06 00 CE E4 54 CA 1A C8 13 70 A5 7D 0B 2B 49 68 [08:17:28]CheckFolder [08:17:28]dirname=/storage/ofd_packets [08:17:28]CheckFolder done [08:17:28]ProducePacketName [08:17:28]name=ofd_packets/00187592 [08:17:28]NVStorageSaveData ofd_packets/00187592 [08:17:28]File name is /storage/ofd_packets/00187592 [08:17:28]Write 301 bytes [08:17:28]NVStorageSaveData done [08:17:28]OFDSenderStorePacket done [08:17:28]KKMCreateOFDPacket done [08:17:28]NVStorageSaveData kkm_last_timestamp [08:17:28]File name is /storage/kkm_last_timestamp [08:17:28]Write 4 bytes [08:17:28]NVStorageSaveData done [08:17:28]ExternCall_PrintAddStr [08:17:28]wPrintStart [08:17:28]Write to MH i2c: 01 00 00 C5 2E F3 [08:17:28]Write i2c OK [08:17:28]MH_I2C_Read... [08:17:28]Read from MH i2c: 01 [08:17:28]MH_I2C_Read... [08:17:28]Read from MH i2c: 01 07 00 [08:17:28]MH_I2C_Read... [08:17:28]Read from MH i2c: 01 07 00 C5 2E 00 00 00 00 00 FF 0F 08 [08:17:28]RasterBufferAndPrint [08:17:28]line Счет N : (1)209643 [08:17:28]line ИНН: 02508201610067 [08:17:28]line Контрольно-Кассовый Чек [08:17:28]line ПРОДАЖА [08:17:28]line ТРК (МРК, ГНК) : 32 [08:17:28]line Товар: 2710124130 [08:17:28]line Аи-92-К-3 [08:17:28]line 53.120 * 65.90 [08:17:28]line = 3500.61 [08:17:28]line НДС 12% НСП 1% [08:17:28]line > о реализуемом товаре [08:17:28]line ОКРУГЛЕНИЕ: -0.61 [08:17:28]line ИТОГО: 3500.00 [08:17:28]line Внесено: 3500.00 [08:17:28]line СДАЧА: 0.00 [08:17:28]line НСП 1% : 30.98 [08:17:28]line НДС 12% : 371.75 [08:17:28]line Наличными: 3500.00 [08:17:28]line Безнал.: 0.00 [08:17:28]line Место: АЗС № 86 "Партнер Нефть" [08:17:28]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [08:17:28]line СНО: Общий режим [08:17:28]line Чек 56 21.10.2024 08:17 [08:17:28]line Смена: 460 ФФД: 1.0 [08:17:28]line ЗНМ: 0300000155 [08:17:28]line РНМ: 0000000000100030 [08:17:28]line Версия ККМ: 001 [08:17:28]line [08:17:28]line Дисконтная программа [08:17:28]line АИ-92 [08:17:28]line номер 86 [08:17:28]line сэкономлено 53.12 сом [08:17:28]line ФМ: 0000000000965340 [08:17:28]line ФД: 187592 [08:17:28]line ФПД: 227480070396616 [08:17:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T081730&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187592&fm=227480070396616&tin=02508201610067®Number=0000000000100030&sum=350000 [08:17:28]written 0, free lines is 4095 [08:17:28]OFD Sender: Processing packet 187592 [packets to send 1062, broken 1061] [08:17:28]ProducePacketName [08:17:28]name=ofd_packets/00187592 [08:17:28]OFD Sender: To server: pG, [08:17:28]CommunicateWithHost lk.salyk.kg:30040 [08:17:28]ConnectInit lk.salyk.kg [08:17:29]Connected sock=9 [08:17:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 BD 02 07 01 4C 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 33 FF 03 08 00 03 80 CF 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 6D 57 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 57 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1A 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 37 91 00 00 00 00 07 04 06 00 30 57 05 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 1A 0E 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 C8 DC 02 00 35 04 06 00 CE E4 54 CA 1A C8 13 70 A5 7D 0B 2B 49 68 [08:17:29]Write to MH i2c: 01 00 00 F5 2E 23 [08:17:29]Write i2c OK [08:17:29]MH_I2C_Read... [08:17:29]Read from MH i2c: 01 [08:17:29]MH_I2C_Read... [08:17:29]Read from MH i2c: 01 07 00 [08:17:29]MH_I2C_Read... [08:17:29]Read from MH i2c: 01 07 00 F5 2E 00 00 00 00 00 DD 0B 12 [08:17:29]RasterBufferAndPrint [08:17:29]line [08:17:29]line [08:17:29]line [08:17:29]line [08:17:29]line [08:17:29]written 0, free lines is 3039 [08:17:29]MH_Cut [08:17:29]Write to MH i2c: D1 01 00 FC 2E 01 FC [08:17:29]Write i2c OK [08:17:29]MH_I2C_Read... [08:17:29]Read from MH i2c: D1 [08:17:29]MH_I2C_Read... [08:17:29]Read from MH i2c: D1 01 00 [08:17:29]MH_I2C_Read... [08:17:29]Read from MH i2c: D1 01 00 FC 2E 00 FB [08:17:29]Write to MH i2c: 01 00 00 FD 2E 2B [08:17:29]Write i2c OK [08:17:29]MH_I2C_Read... [08:17:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 C2 4B 47 00 C4 DF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 C8 DC 02 00 F4 03 04 00 0A B8 15 67 B6 04 01 00 00 0A 37 9E BD B7 CD 81 A1 [08:17:29]CommunicateWithHost err = 0 [08:17:29]CheckOFDResponse [08:17:29]1017 (14) - 77093643461234 [08:17:29]1041 (16) - 0000000000965340 [08:17:29]1040 (4) - 187592 [08:17:29]1012 (4) - 21.10.2024 02:10 [08:17:29]1206 (1) - 0 [08:17:29]OFD Sender: Remove packet 187592 [08:17:29]ProducePacketName [08:17:29]name=ofd_packets/00187592 [08:17:29]NVStorageDeleteData [08:17:29]OFD Sender: No OFD packet to send [08:17:30]*** Cut start [08:17:30]*** Partial cut [08:17:30]*** CUTSNS_PIN = 1 [08:17:30]*** CUTSNS_PIN = 0 [08:17:30]*** Brake cut motor [08:17:31]Read from MH i2c: 01 [08:17:31]MH_I2C_Read... [08:17:31]*** Stop cut motor [08:17:31]*** Cut end [08:17:31]Read from MH i2c: 01 07 00 [08:17:31]MH_I2C_Read... [08:17:31]Read from MH i2c: 01 07 00 FD 2E 00 00 00 00 00 FF 0F 40 [08:17:31]process_action close_receipt done [08:17:31]requested_data is exist [08:17:31]produce_requested_data [08:17:31]requested_item fm.sn is exist - process it [08:17:31]wFMCommunicate request_size=4 [08:17:31]MH_SAM_APDU [08:17:31]CAPDU: 80 11 00 00 [08:17:31]Write to MH i2c: E2 08 00 FE 2E 80 11 00 00 00 00 00 00 A6 [08:17:31]Write i2c OK [08:17:31]MH_I2C_Read... [08:17:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:17:31]Read from MH i2c: E2 [08:17:31]MH_I2C_Read... [08:17:31]Read from MH i2c: E2 17 00 [08:17:31]MH_I2C_Read... [08:17:31]Read from MH i2c: E2 17 00 FE 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 F4 [08:17:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [08:17:31]wFMCommunicate OK [08:17:31]requested_item fd.num is exist - process it [08:17:31]SAM_PROTO_GetFieldsCounters [08:17:31]wFMCommunicate request_size=4 [08:17:31]MH_SAM_APDU [08:17:31]CAPDU: 80 13 00 00 [08:17:31]Write to MH i2c: E2 08 00 FF 2E 80 13 00 00 00 00 00 00 A9 [08:17:31]Write i2c OK [08:17:31]MH_I2C_Read... [08:17:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:17:31]Read from MH i2c: E2 [08:17:31]MH_I2C_Read... [08:17:31]Read from MH i2c: E2 62 00 [08:17:31]MH_I2C_Read... [08:17:31]Read from MH i2c: E2 62 00 FF 2E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 C8 DC 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 38 00 00 00 5E 04 04 00 38 00 00 00 57 04 04 00 39 00 00 00 19 04 04 00 00 00 00 00 90 00 CB [08:17:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 C8 DC 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 38 00 00 00 5E 04 04 00 38 00 00 00 57 04 04 00 39 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:17:31]wFMCommunicate OK [08:17:31]SAM_PROTO_GetFieldsCounters done [08:17:31]requested_item shift.num is exist - process it [08:17:31]requested_item shift.opened is exist - process it [08:17:31]req_shift_opened [08:17:31]FM_GetShiftState [08:17:31]SAM_PROTO_GetShiftState [08:17:31]wFMCommunicate request_size=4 [08:17:31]MH_SAM_APDU [08:17:31]CAPDU: 80 13 01 00 [08:17:31]Write to MH i2c: E2 08 00 00 2F 80 13 01 00 00 00 00 00 AC [08:17:31]Write i2c OK [08:17:31]MH_I2C_Read... [08:17:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:17:31]Read from MH i2c: E2 [08:17:31]MH_I2C_Read... [08:17:31]Read from MH i2c: E2 0E 00 [08:17:31]MH_I2C_Read... [08:17:31]Read from MH i2c: E2 0E 00 00 2F 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 0B [08:17:31]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [08:17:31]wFMCommunicate OK [08:17:31]SAM_PROTO_GetShiftState done [08:17:31]FM_GetShiftState done [08:17:31]req_shift_opened done [08:17:31]requested_item shift.open_date is exist - process it [08:17:31]req_shift_open_date [08:17:31]req_shift_open_date done [08:17:31]produce_requested_data done [08:17:31]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187592,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [08:17:31]process_action_free close_receipt [08:17:31]json_value_free [08:17:31]json_value_free done [08:17:31]process_json_proto returns [08:17:31]Send response to host [08:17:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187592,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [08:17:31]free response buf [08:17:31]execute_script done [08:17:31]execute_script returns [08:17:31]free content buf [08:17:31]Sock 8.Close socket [08:17:31]Sock 8.Thread stoped [08:17:34]OFD Sender: No OFD packet to send [08:17:39]OFD Sender: No OFD packet to send [08:17:44]OFD Sender: No OFD packet to send [08:17:49]OFD Sender: No OFD packet to send [08:17:54]OFD Sender: No OFD packet to send [08:18:00]OFD Sender: No OFD packet to send [08:18:05]OFD Sender: No OFD packet to send [08:18:10]OFD Sender: No OFD packet to send [08:18:15]OFD Sender: No OFD packet to send [08:18:20]OFD Sender: No OFD packet to send [08:18:25]OFD Sender: No OFD packet to send [08:18:30]OFD Sender: No OFD packet to send [08:18:35]OFD Sender: No OFD packet to send [08:18:40]OFD Sender: No OFD packet to send [08:18:45]OFD Sender: No OFD packet to send [08:18:50]OFD Sender: No OFD packet to send [08:18:55]OFD Sender: No OFD packet to send [08:19:00]OFD Sender: No OFD packet to send [08:19:05]OFD Sender: No OFD packet to send [08:19:10]OFD Sender: No OFD packet to send [08:19:15]OFD Sender: No OFD packet to send [08:19:20]OFD Sender: No OFD packet to send [08:19:25]OFD Sender: No OFD packet to send [08:19:30]OFD Sender: No OFD packet to send [08:19:35]OFD Sender: No OFD packet to send [08:19:40]OFD Sender: No OFD packet to send [08:19:45]OFD Sender: No OFD packet to send [08:19:50]OFD Sender: No OFD packet to send [08:19:55]OFD Sender: No OFD packet to send [08:20:00]OFD Sender: No OFD packet to send [08:20:05]OFD Sender: No OFD packet to send [08:20:10]OFD Sender: No OFD packet to send [08:20:15]OFD Sender: No OFD packet to send [08:20:20]OFD Sender: No OFD packet to send [08:20:25]OFD Sender: No OFD packet to send [08:20:30]OFD Sender: No OFD packet to send [08:20:35]OFD Sender: No OFD packet to send [08:20:40]OFD Sender: No OFD packet to send [08:20:45]OFD Sender: No OFD packet to send [08:20:50]OFD Sender: No OFD packet to send [08:20:55]OFD Sender: No OFD packet to send [08:21:00]OFD Sender: No OFD packet to send [08:21:05]OFD Sender: No OFD packet to send [08:21:10]OFD Sender: No OFD packet to send [08:21:15]OFD Sender: No OFD packet to send [08:21:20]OFD Sender: No OFD packet to send [08:21:25]OFD Sender: No OFD packet to send [08:21:30]OFD Sender: No OFD packet to send [08:21:35]OFD Sender: No OFD packet to send [08:21:40]OFD Sender: No OFD packet to send [08:21:46]OFD Sender: No OFD packet to send [08:21:51]OFD Sender: No OFD packet to send [08:21:56]OFD Sender: No OFD packet to send [08:22:01]OFD Sender: No OFD packet to send [08:22:06]OFD Sender: No OFD packet to send [08:22:11]OFD Sender: No OFD packet to send [08:22:16]OFD Sender: No OFD packet to send [08:22:21]OFD Sender: No OFD packet to send [08:22:26]OFD Sender: No OFD packet to send [08:22:31]OFD Sender: No OFD packet to send [08:22:36]OFD Sender: No OFD packet to send [08:22:41]OFD Sender: No OFD packet to send [08:22:46]OFD Sender: No OFD packet to send [08:22:51]OFD Sender: No OFD packet to send [08:22:56]OFD Sender: No OFD packet to send [08:23:01]OFD Sender: No OFD packet to send [08:23:06]OFD Sender: No OFD packet to send [08:23:11]OFD Sender: No OFD packet to send [08:23:16]OFD Sender: No OFD packet to send [08:23:21]OFD Sender: No OFD packet to send [08:23:26]OFD Sender: No OFD packet to send [08:23:31]OFD Sender: No OFD packet to send [08:23:36]OFD Sender: No OFD packet to send [08:23:41]OFD Sender: No OFD packet to send [08:23:46]OFD Sender: No OFD packet to send [08:23:51]OFD Sender: No OFD packet to send [08:23:56]OFD Sender: No OFD packet to send [08:24:01]OFD Sender: No OFD packet to send [08:24:06]OFD Sender: No OFD packet to send [08:24:11]OFD Sender: No OFD packet to send [08:24:16]OFD Sender: No OFD packet to send [08:24:21]OFD Sender: No OFD packet to send [08:24:26]OFD Sender: No OFD packet to send [08:24:31]OFD Sender: No OFD packet to send [08:24:36]OFD Sender: No OFD packet to send [08:24:41]OFD Sender: No OFD packet to send [08:24:46]OFD Sender: No OFD packet to send [08:24:51]OFD Sender: No OFD packet to send [08:24:56]OFD Sender: No OFD packet to send [08:25:01]OFD Sender: No OFD packet to send [08:25:06]OFD Sender: No OFD packet to send [08:25:11]OFD Sender: No OFD packet to send [08:25:16]OFD Sender: No OFD packet to send [08:25:21]OFD Sender: No OFD packet to send [08:25:26]OFD Sender: No OFD packet to send [08:25:31]OFD Sender: No OFD packet to send [08:25:37]OFD Sender: No OFD packet to send [08:25:42]OFD Sender: No OFD packet to send [08:25:47]OFD Sender: No OFD packet to send [08:25:52]OFD Sender: No OFD packet to send [08:25:57]OFD Sender: No OFD packet to send [08:26:02]OFD Sender: No OFD packet to send [08:26:07]OFD Sender: No OFD packet to send [08:26:12]OFD Sender: No OFD packet to send [08:26:16]accept exits with 10 [08:26:16]New connection [08:26:16]New thread 3067014500 created [08:26:16]Thread 3067157860 joined [08:26:16]Waiting for new connection... [08:26:16] Sock 10.Parse request [08:26:16]Sock 10.Check first char [08:26:16]Sock 10.First char is OK [08:26:16]request: POST /json_proto HTTP/1.0 [08:26:16]Method: POST [08:26:16]URL: /json_proto [08:26:16]Method is POST - this is cgi request [08:26:16]url: /json_proto [08:26:16]query_string will be loaded in cgi processing [08:26:16]execute_cgi json_proto POST (null) [08:26:16]execute_cgi path=json_proto method=POST [08:26:16]POST find Content-Length [08:26:16]Host: 172.17.42.131:8080 [08:26:16]Content-Length: 688 [08:26:16]Content-Type: application/json [08:26:16] [08:26:16]POST finish read [08:26:16]Found Content-Length = 688 [08:26:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209645", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 12.960, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:26:16]execute_script... [08:26:16]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209645", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 12.960, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:26:16]POST & json_proto [08:26:16]process_json_proto [08:26:16]json parsed OK: [08:26:16]protocol is kg_v1.0 [08:26:16]action value=close_receipt [08:26:16]process_action close_receipt [08:26:16]cmd_close_receipt [08:26:16]MH_GetDate [08:26:16]Write to MH i2c: F0 00 00 01 2F 1F [08:26:16]Write i2c OK [08:26:16]MH_I2C_Read... [08:26:16]Read from MH i2c: F0 [08:26:16]MH_I2C_Read... [08:26:16]Read from MH i2c: F0 09 00 [08:26:16]MH_I2C_Read... [08:26:16]Read from MH i2c: F0 09 00 01 2F 00 2B 10 16 67 A0 18 CA 66 C8 [08:26:16]GetLastDocTimeStamp 1729498650 [08:26:16]current date 1729499179 [08:26:16]FM_GetShiftState [08:26:16]SAM_PROTO_GetShiftState [08:26:16]wFMCommunicate request_size=4 [08:26:16]MH_SAM_APDU [08:26:16]CAPDU: 80 13 01 00 [08:26:16]Write to MH i2c: E2 08 00 02 2F 80 13 01 00 00 00 00 00 AE [08:26:16]Write i2c OK [08:26:16]MH_I2C_Read... [08:26:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:26:16]Read from MH i2c: E2 [08:26:16]MH_I2C_Read... [08:26:16]Read from MH i2c: E2 0E 00 [08:26:16]MH_I2C_Read... [08:26:16]Read from MH i2c: E2 0E 00 02 2F 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 0D [08:26:16]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [08:26:16]wFMCommunicate OK [08:26:16]SAM_PROTO_GetShiftState done [08:26:16]FM_GetShiftState done [08:26:16]opened in 1729469754 [08:26:16]opened+sec_in_day 1729556154 [08:26:16]quantity*price = 100051 [08:26:16]sum+1 = 100052 [08:26:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 57 21.10.2024 08:26 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 187593 ФПД: 256708623286339 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T082619&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187593&fm=256708623286339&tin=02508201610067®Number=0000000000100030&sum=100000 [08:26:17]StoreToDocumentArchive [08:26:17]shift 460 fd 187593 [08:26:17]save to /storage/0460/doc_00187593 [08:26:17]save last doc name /storage/0460/doc_00187593 to /storage/kkm_last_doc_name [08:26:17]save OK [08:26:17]Clear old archive folders... [08:26:17]ProcessDocumentItem done err = 0, tmpTLVsize=257 [08:26:17]tlvbuf is 010EB570 [08:26:17]SAM_PROTO_ClearQueue [08:26:17]wFMCommunicate request_size=4 [08:26:17]MH_SAM_APDU [08:26:17]CAPDU: 80 09 00 00 [08:26:17]Write to MH i2c: E2 08 00 0F 2F 80 09 00 00 00 00 00 00 B0 [08:26:17]Write i2c OK [08:26:17]MH_I2C_Read... [08:26:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:26:17]Read from MH i2c: E2 [08:26:17]MH_I2C_Read... [08:26:17]Read from MH i2c: E2 03 00 [08:26:17]MH_I2C_Read... [08:26:17]Read from MH i2c: E2 03 00 0F 2F 00 90 00 B2 [08:26:17]RAPDU: 90 00 [08:26:17]wFMCommunicate OK [08:26:17]SAM_PROTO_ClearQueue done [08:26:17]KKMCreateOFDPacket [08:26:17]OFDProtocolAddRootSTLVToBuf [08:26:17]FM_MakeSignedData [08:26:17]FM_MakeSignedData [08:26:17]SAM_PROTO_SignData [08:26:17]wFMCommunicate request_size=4 [08:26:17]MH_SAM_APDU [08:26:17]CAPDU: 80 0D 01 02 [08:26:17]Write to MH i2c: E2 08 00 10 2F 80 0D 01 02 00 00 00 00 B8 [08:26:17]Write i2c OK [08:26:17]MH_I2C_Read... [08:26:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:26:17]Read from MH i2c: E2 [08:26:17]MH_I2C_Read... [08:26:17]Read from MH i2c: E2 03 00 [08:26:17]MH_I2C_Read... [08:26:17]Read from MH i2c: E2 03 00 10 2F 00 90 00 B3 [08:26:17]RAPDU: 90 00 [08:26:17]wFMCommunicate OK [08:26:17]wFMCommunicate request_size=255 [08:26:17]MH_SAM_APDU [08:26:17]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 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 2B 10 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 C9 DC 02 [08:26:17]Write to MH i2c: E2 02 01 11 2F 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 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 2B 10 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 C9 DC 02 00 00 7A [08:26:17]Write i2c OK [08:26:17]MH_I2C_Read... [08:26:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:26:17]Read from MH i2c: E2 [08:26:17]MH_I2C_Read... [08:26:17]Read from MH i2c: E2 03 00 [08:26:17]MH_I2C_Read... [08:26:17]Read from MH i2c: E2 03 00 11 2F 00 90 00 B4 [08:26:17]RAPDU: 90 00 [08:26:17]wFMCommunicate OK [08:26:17]wFMCommunicate request_size=16 [08:26:17]MH_SAM_APDU [08:26:17]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 E9 79 A2 4D 40 43 [08:26:17]Write to MH i2c: E2 13 00 12 2F 80 0D 02 02 0B 00 00 35 04 06 00 E9 79 A2 4D 40 43 00 00 E4 [08:26:17]Write i2c OK [08:26:17]MH_I2C_Read... [08:26:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:26:17]Read from MH i2c: E2 [08:26:17]MH_I2C_Read... [08:26:17]Read from MH i2c: E2 03 00 [08:26:17]MH_I2C_Read... [08:26:17]Read from MH i2c: E2 03 00 12 2F 00 90 00 B5 [08:26:17]RAPDU: 90 00 [08:26:17]wFMCommunicate OK [08:26:17]wFMCommunicate request_size=4 [08:26:17]MH_SAM_APDU [08:26:17]CAPDU: 80 0D 03 02 [08:26:17]Write to MH i2c: E2 08 00 13 2F 80 0D 03 02 00 00 00 00 BD [08:26:17]Write i2c OK [08:26:17]MH_I2C_Read... [08:26:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:26:17]Read from MH i2c: E2 [08:26:17]MH_I2C_Read... [08:26:17]Read from MH i2c: E2 0B 00 [08:26:17]MH_I2C_Read... [08:26:17]Read from MH i2c: E2 0B 00 13 2F 00 55 15 BC E8 D0 7C 40 01 90 00 59 [08:26:17]RAPDU: 55 15 BC E8 D0 7C 40 01 90 00 [08:26:17]wFMCommunicate OK [08:26:17]SAM_PROTO_SignData done [08:26:17]FM_MakeSignedData done [08:26:17]CreateOFDProtocolMessage [08:26:17]wFMCommunicate request_size=4 [08:26:17]MH_SAM_APDU [08:26:17]CAPDU: 80 11 00 00 [08:26:17]Write to MH i2c: E2 08 00 14 2F 80 11 00 00 00 00 00 00 BD [08:26:17]Write i2c OK [08:26:17]MH_I2C_Read... [08:26:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:26:17]Read from MH i2c: E2 [08:26:17]MH_I2C_Read... [08:26:17]Read from MH i2c: E2 17 00 [08:26:17]MH_I2C_Read... [08:26:17]Read from MH i2c: E2 17 00 14 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 0B [08:26:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [08:26:17]wFMCommunicate OK [08:26:17]CreateOFDProtocolMessage done [08:26:17]OFDSenderStorePacket 187593 [08:26:17]StoreOFDPacket docnum=187593 [08:26:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 3D 85 0D 01 22 EF 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 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 2B 10 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 C9 DC 02 00 35 04 06 00 E9 79 A2 4D 40 43 55 15 BC E8 D0 7C 40 01 [08:26:17]CheckFolder [08:26:17]dirname=/storage/ofd_packets [08:26:17]CheckFolder done [08:26:17]ProducePacketName [08:26:17]name=ofd_packets/00187593 [08:26:17]NVStorageSaveData ofd_packets/00187593 [08:26:17]File name is /storage/ofd_packets/00187593 [08:26:17]Write 307 bytes [08:26:17]NVStorageSaveData done [08:26:17]OFDSenderStorePacket done [08:26:17]KKMCreateOFDPacket done [08:26:17]NVStorageSaveData kkm_last_timestamp [08:26:17]File name is /storage/kkm_last_timestamp [08:26:17]Write 4 bytes [08:26:17]NVStorageSaveData done [08:26:17]ExternCall_PrintAddStr [08:26:17]wPrintStart [08:26:17]Write to MH i2c: 01 00 00 15 2F 44 [08:26:17]Write i2c OK [08:26:17]MH_I2C_Read... [08:26:17]Read from MH i2c: 01 [08:26:17]MH_I2C_Read... [08:26:17]Read from MH i2c: 01 07 00 [08:26:17]MH_I2C_Read... [08:26:17]Read from MH i2c: 01 07 00 15 2F 00 00 00 00 00 FF 0F 59 [08:26:17]RasterBufferAndPrint [08:26:17]line Счет N : (1)209645 [08:26:17]line ИНН: 02508201610067 [08:26:17]line Контрольно-Кассовый Чек [08:26:17]line ПРОДАЖА [08:26:17]line ТРК (МРК, ГНК) : 11 [08:26:17]line Товар: 2710194210 [08:26:17]line D-ENERGY ДТ-К-5 [08:26:17]line 12.960 * 77.20 [08:26:17]line = 1000.51 [08:26:17]line НДС 12% НСП 1% [08:26:17]line > о реализуемом товаре [08:26:17]line ОКРУГЛЕНИЕ: -0.51 [08:26:17]line ИТОГО: 1000.00 [08:26:17]line Внесено: 1000.00 [08:26:17]line СДАЧА: 0.00 [08:26:17]line НСП 1% : 8.85 [08:26:17]line НДС 12% : 106.25 [08:26:17]line Наличными: 1000.00 [08:26:17]line Безнал.: 0.00 [08:26:17]line Место: АЗС № 86 "Партнер Нефть" [08:26:17]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [08:26:17]line СНО: Общий режим [08:26:17]line Чек 57 21.10.2024 08:26 [08:26:17]line Смена: 460 ФФД: 1.0 [08:26:17]line ЗНМ: 0300000155 [08:26:17]line РНМ: 0000000000100030 [08:26:17]line Версия ККМ: 001 [08:26:17]line ФМ: 0000000000965340 [08:26:17]line ФД: 187593 [08:26:17]line ФПД: 256708623286339 [08:26:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T082619&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187593&fm=256708623286339&tin=02508201610067®Number=0000000000100030&sum=100000 [08:26:17]written 0, free lines is 4095 [08:26:17]OFD Sender: Processing packet 187593 [packets to send 1062, broken 1061] [08:26:17]ProducePacketName [08:26:17]name=ofd_packets/00187593 [08:26:17]OFD Sender: To server: pG, [08:26:17]CommunicateWithHost lk.salyk.kg:30040 [08:26:17]ConnectInit lk.salyk.kg [08:26:18]Connected sock=9 [08:26:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 3D 85 0D 01 22 EF 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 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 2B 10 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 C9 DC 02 00 35 04 06 00 E9 79 A2 4D 40 43 55 15 BC E8 D0 7C 40 01 [08:26:18]Write to MH i2c: 01 00 00 40 2F 6F [08:26:18]Write i2c OK [08:26:18]MH_I2C_Read... [08:26:18]Read from MH i2c: 01 [08:26:18]MH_I2C_Read... [08:26:18]Read from MH i2c: 01 07 00 [08:26:18]MH_I2C_Read... [08:26:18]Read from MH i2c: 01 07 00 40 2F 00 00 00 00 00 50 0C D2 [08:26:18]RasterBufferAndPrint [08:26:18]line [08:26:18]line [08:26:18]line [08:26:18]line [08:26:18]line [08:26:18]written 0, free lines is 3155 [08:26:18]MH_Cut [08:26:18]Write to MH i2c: D1 01 00 47 2F 01 48 [08:26:18]Write i2c OK [08:26:18]MH_I2C_Read... [08:26:18]Read from MH i2c: D1 [08:26:18]MH_I2C_Read... [08:26:18]Read from MH i2c: D1 01 00 [08:26:18]MH_I2C_Read... [08:26:18]Read from MH i2c: D1 01 00 47 2F 00 47 [08:26:18]Write to MH i2c: 01 00 00 48 2F 77 [08:26:18]Write i2c OK [08:26:18]MH_I2C_Read... [08:26:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 8F C3 47 00 10 3C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 C9 DC 02 00 F4 03 04 00 1B BA 15 67 B6 04 01 00 00 AF 46 39 DA AE 4F CB B1 [08:26:18]CommunicateWithHost err = 0 [08:26:18]CheckOFDResponse [08:26:18]1017 (14) - 77093643461234 [08:26:18]1041 (16) - 0000000000965340 [08:26:18]1040 (4) - 187593 [08:26:18]1012 (4) - 21.10.2024 02:19 [08:26:18]1206 (1) - 0 [08:26:18]OFD Sender: Remove packet 187593 [08:26:18]ProducePacketName [08:26:18]name=ofd_packets/00187593 [08:26:18]NVStorageDeleteData [08:26:19]OFD Sender: No OFD packet to send [08:26:19]*** Cut start [08:26:19]*** Partial cut [08:26:19]*** CUTSNS_PIN = 1 [08:26:19]*** CUTSNS_PIN = 0 [08:26:19]*** Brake cut motor [08:26:20]Read from MH i2c: 01 [08:26:20]MH_I2C_Read... [08:26:20]*** Stop cut motor [08:26:20]*** Cut end [08:26:20]Read from MH i2c: 01 07 00 [08:26:20]MH_I2C_Read... [08:26:20]Read from MH i2c: 01 07 00 48 2F 00 00 00 00 00 FF 0F 8C [08:26:20]process_action close_receipt done [08:26:20]requested_data is exist [08:26:20]produce_requested_data [08:26:20]requested_item fm.sn is exist - process it [08:26:20]wFMCommunicate request_size=4 [08:26:20]MH_SAM_APDU [08:26:20]CAPDU: 80 11 00 00 [08:26:20]Write to MH i2c: E2 08 00 49 2F 80 11 00 00 00 00 00 00 F2 [08:26:20]Write i2c OK [08:26:20]MH_I2C_Read... [08:26:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:26:20]Read from MH i2c: E2 [08:26:20]MH_I2C_Read... [08:26:20]Read from MH i2c: E2 17 00 [08:26:20]MH_I2C_Read... [08:26:20]Read from MH i2c: E2 17 00 49 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 40 [08:26:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [08:26:20]wFMCommunicate OK [08:26:20]requested_item fd.num is exist - process it [08:26:20]SAM_PROTO_GetFieldsCounters [08:26:20]wFMCommunicate request_size=4 [08:26:20]MH_SAM_APDU [08:26:20]CAPDU: 80 13 00 00 [08:26:20]Write to MH i2c: E2 08 00 4A 2F 80 13 00 00 00 00 00 00 F5 [08:26:20]Write i2c OK [08:26:20]MH_I2C_Read... [08:26:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:26:20]Read from MH i2c: E2 [08:26:20]MH_I2C_Read... [08:26:20]Read from MH i2c: E2 62 00 [08:26:20]MH_I2C_Read... [08:26:20]Read from MH i2c: E2 62 00 4A 2F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 C9 DC 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 39 00 00 00 5E 04 04 00 39 00 00 00 57 04 04 00 3A 00 00 00 19 04 04 00 00 00 00 00 90 00 1B [08:26:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 C9 DC 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 39 00 00 00 5E 04 04 00 39 00 00 00 57 04 04 00 3A 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:26:20]wFMCommunicate OK [08:26:20]SAM_PROTO_GetFieldsCounters done [08:26:20]requested_item shift.num is exist - process it [08:26:20]requested_item shift.opened is exist - process it [08:26:20]req_shift_opened [08:26:20]FM_GetShiftState [08:26:20]SAM_PROTO_GetShiftState [08:26:20]wFMCommunicate request_size=4 [08:26:20]MH_SAM_APDU [08:26:20]CAPDU: 80 13 01 00 [08:26:20]Write to MH i2c: E2 08 00 4B 2F 80 13 01 00 00 00 00 00 F7 [08:26:20]Write i2c OK [08:26:20]MH_I2C_Read... [08:26:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:26:20]Read from MH i2c: E2 [08:26:20]MH_I2C_Read... [08:26:20]Read from MH i2c: E2 0E 00 [08:26:20]MH_I2C_Read... [08:26:20]Read from MH i2c: E2 0E 00 4B 2F 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 56 [08:26:20]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [08:26:20]wFMCommunicate OK [08:26:20]SAM_PROTO_GetShiftState done [08:26:20]FM_GetShiftState done [08:26:20]req_shift_opened done [08:26:20]requested_item shift.open_date is exist - process it [08:26:20]req_shift_open_date [08:26:20]req_shift_open_date done [08:26:20]produce_requested_data done [08:26:20]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187593,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [08:26:20]process_action_free close_receipt [08:26:20]json_value_free [08:26:20]json_value_free done [08:26:20]process_json_proto returns [08:26:20]Send response to host [08:26:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187593,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [08:26:20]free response buf [08:26:20]execute_script done [08:26:20]execute_script returns [08:26:20]free content buf [08:26:20]Sock 10.Close socket [08:26:20]Sock 10.Thread stoped [08:26:24]OFD Sender: No OFD packet to send [08:26:29]OFD Sender: No OFD packet to send [08:26:34]OFD Sender: No OFD packet to send [08:26:34]accept exits with 8 [08:26:34]New connection [08:26:34]New thread 3067157860 created [08:26:34]Thread 3067014500 joined [08:26:34]Waiting for new connection... [08:26:34] Sock 8.Parse request [08:26:34]Sock 8.Check first char [08:26:34]Sock 8.First char is OK [08:26:34]request: POST /json_proto HTTP/1.0 [08:26:34]Method: POST [08:26:34]URL: /json_proto [08:26:34]Method is POST - this is cgi request [08:26:34]url: /json_proto [08:26:34]query_string will be loaded in cgi processing [08:26:34]execute_cgi json_proto POST (null) [08:26:34]execute_cgi path=json_proto method=POST [08:26:34]POST find Content-Length [08:26:34]Host: 172.17.42.131:8080 [08:26:34]Content-Length: 677 [08:26:34]Content-Type: application/json [08:26:34] [08:26:34]POST finish read [08:26:34]Found Content-Length = 677 [08:26:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209646", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 4.790, "sum" : 355.42, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 355.00, "total" : 355.00, "payments": [ { "type": 0, "sum" : 355.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:26:34]execute_script... [08: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)209646", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 4.790, "sum" : 355.42, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 355.00, "total" : 355.00, "payments": [ { "type": 0, "sum" : 355.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:26:34]POST & json_proto [08:26:34]process_json_proto [08:26:34]json parsed OK: [08:26:34]protocol is kg_v1.0 [08:26:34]action value=close_receipt [08:26:34]process_action close_receipt [08:26:34]cmd_close_receipt [08:26:34]MH_GetDate [08:26:34]Write to MH i2c: F0 00 00 4C 2F 6A [08:26:34]Write i2c OK [08:26:34]MH_I2C_Read... [08:26:34]Read from MH i2c: F0 [08:26:34]MH_I2C_Read... [08:26:34]Read from MH i2c: F0 09 00 [08:26:34]MH_I2C_Read... [08:26:34]Read from MH i2c: F0 09 00 4C 2F 00 3D 10 16 67 A0 18 CA 66 25 [08:26:34]GetLastDocTimeStamp 1729499179 [08:26:34]current date 1729499197 [08:26:34]FM_GetShiftState [08:26:34]SAM_PROTO_GetShiftState [08:26:34]wFMCommunicate request_size=4 [08:26:34]MH_SAM_APDU [08:26:34]CAPDU: 80 13 01 00 [08:26:34]Write to MH i2c: E2 08 00 4D 2F 80 13 01 00 00 00 00 00 F9 [08:26:34]Write i2c OK [08:26:34]MH_I2C_Read... [08:26:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:26:34]Read from MH i2c: E2 [08:26:34]MH_I2C_Read... [08:26:34]Read from MH i2c: E2 0E 00 [08:26:34]MH_I2C_Read... [08:26:34]Read from MH i2c: E2 0E 00 4D 2F 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 58 [08:26:34]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [08:26:34]wFMCommunicate OK [08:26:34]SAM_PROTO_GetShiftState done [08:26:34]FM_GetShiftState done [08:26:34]opened in 1729469754 [08:26:34]opened+sec_in_day 1729556154 [08:26:34]quantity*price = 35541 [08:26:34]sum+1 = 35543 [08:26:34]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.42 ИТОГО: 355.00 Внесено: 355.00 СДАЧА: 0.00 НСП 1% : 3.14 НДС 12% : 37.74 Наличными: 355.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 58 21.10.2024 08:26 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 187594 ФПД: 94510071150867 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T082637&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187594&fm=94510071150867&tin=02508201610067®Number=0000000000100030&sum=35500 [08:26:35]StoreToDocumentArchive [08:26:35]shift 460 fd 187594 [08:26:35]save to /storage/0460/doc_00187594 [08:26:35]save last doc name /storage/0460/doc_00187594 to /storage/kkm_last_doc_name [08:26:35]save OK [08:26:35]Clear old archive folders... [08:26:35]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:26:35]tlvbuf is 010B8B70 [08:26:35]SAM_PROTO_ClearQueue [08:26:35]wFMCommunicate request_size=4 [08:26:35]MH_SAM_APDU [08:26:35]CAPDU: 80 09 00 00 [08:26:35]Write to MH i2c: E2 08 00 5A 2F 80 09 00 00 00 00 00 00 FB [08:26:35]Write i2c OK [08:26:35]MH_I2C_Read... [08:26:35]Read from MH i2c: E2 [08:26:35]MH_I2C_Read... [08:26:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:26:35]Read from MH i2c: E2 03 00 [08:26:35]MH_I2C_Read... [08:26:35]Read from MH i2c: E2 03 00 5A 2F 00 90 00 FD [08:26:35]RAPDU: 90 00 [08:26:35]wFMCommunicate OK [08:26:35]SAM_PROTO_ClearQueue done [08:26:35]KKMCreateOFDPacket [08:26:35]OFDProtocolAddRootSTLVToBuf [08:26:35]FM_MakeSignedData [08:26:35]FM_MakeSignedData [08:26:35]SAM_PROTO_SignData [08:26:35]wFMCommunicate request_size=4 [08:26:35]MH_SAM_APDU [08:26:35]CAPDU: 80 0D 01 02 [08:26:35]Write to MH i2c: E2 08 00 5B 2F 80 0D 01 02 00 00 00 00 03 [08:26:35]Write i2c OK [08:26:35]MH_I2C_Read... [08:26:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:26:35]Read from MH i2c: E2 [08:26:35]MH_I2C_Read... [08:26:35]Read from MH i2c: E2 03 00 [08:26:35]MH_I2C_Read... [08:26:35]Read from MH i2c: E2 03 00 5B 2F 00 90 00 FE [08:26:35]RAPDU: 90 00 [08:26:35]wFMCommunicate OK [08:26:35]wFMCommunicate request_size=255 [08:26:35]MH_SAM_APDU [08:26:35]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 B6 12 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 D6 8A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 8A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 0E 00 00 00 00 07 04 06 00 AC 8A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 3D 10 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 CA DC 02 00 35 04 06 00 55 [08:26:35]Write to MH i2c: E2 02 01 5C 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 B6 12 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 D6 8A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 8A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 0E 00 00 00 00 07 04 06 00 AC 8A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 3D 10 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 CA DC 02 00 35 04 06 00 55 00 00 76 [08:26:35]Write i2c OK [08:26:35]MH_I2C_Read... [08:26:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:26:36]Read from MH i2c: E2 [08:26:36]MH_I2C_Read... [08:26:36]Read from MH i2c: E2 03 00 [08:26:36]MH_I2C_Read... [08:26:36]Read from MH i2c: E2 03 00 5C 2F 00 90 00 FF [08:26:36]RAPDU: 90 00 [08:26:36]wFMCommunicate OK [08:26:36]wFMCommunicate request_size=10 [08:26:36]MH_SAM_APDU [08:26:36]CAPDU: 80 0D 02 02 05 F4 D7 37 F9 13 [08:26:36]Write to MH i2c: E2 0D 00 5D 2F 80 0D 02 02 05 00 F4 D7 37 F9 13 00 00 1E [08:26:36]Write i2c OK [08:26:36]MH_I2C_Read... [08:26:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:26:36]Read from MH i2c: E2 [08:26:36]MH_I2C_Read... [08:26:36]Read from MH i2c: E2 03 00 [08:26:36]MH_I2C_Read... [08:26:36]Read from MH i2c: E2 03 00 5D 2F 00 90 00 00 [08:26:36]RAPDU: 90 00 [08:26:36]wFMCommunicate OK [08:26:36]wFMCommunicate request_size=4 [08:26:36]MH_SAM_APDU [08:26:36]CAPDU: 80 0D 03 02 [08:26:36]Write to MH i2c: E2 08 00 5E 2F 80 0D 03 02 00 00 00 00 08 [08:26:36]Write i2c OK [08:26:36]MH_I2C_Read... [08:26:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:26:36]Read from MH i2c: E2 [08:26:36]MH_I2C_Read... [08:26:36]Read from MH i2c: E2 0B 00 [08:26:36]MH_I2C_Read... [08:26:36]Read from MH i2c: E2 0B 00 5E 2F 00 1A 46 B1 EA 12 61 F8 FA 90 00 69 [08:26:36]RAPDU: 1A 46 B1 EA 12 61 F8 FA 90 00 [08:26:36]wFMCommunicate OK [08:26:36]SAM_PROTO_SignData done [08:26:36]FM_MakeSignedData done [08:26:36]CreateOFDProtocolMessage [08:26:36]wFMCommunicate request_size=4 [08:26:36]MH_SAM_APDU [08:26:36]CAPDU: 80 11 00 00 [08:26:36]Write to MH i2c: E2 08 00 5F 2F 80 11 00 00 00 00 00 00 08 [08:26:36]Write i2c OK [08:26:36]MH_I2C_Read... [08:26:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:26:36]Read from MH i2c: E2 [08:26:36]MH_I2C_Read... [08:26:36]Read from MH i2c: E2 17 00 [08:26:36]MH_I2C_Read... [08:26:36]Read from MH i2c: E2 17 00 5F 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 56 [08:26:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [08:26:36]wFMCommunicate OK [08:26:36]CreateOFDProtocolMessage done [08:26:36]OFDSenderStorePacket 187594 [08:26:36]StoreOFDPacket docnum=187594 [08:26:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 F1 B8 07 01 23 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 B6 12 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 D6 8A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 8A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 0E 00 00 00 00 07 04 06 00 AC 8A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 3D 10 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 CA DC 02 00 35 04 06 00 55 F4 D7 37 F9 13 1A 46 B1 EA 12 61 F8 FA [08:26:36]CheckFolder [08:26:36]dirname=/storage/ofd_packets [08:26:36]CheckFolder done [08:26:36]ProducePacketName [08:26:36]name=ofd_packets/00187594 [08:26:36]NVStorageSaveData ofd_packets/00187594 [08:26:36]File name is /storage/ofd_packets/00187594 [08:26:36]Write 301 bytes [08:26:36]NVStorageSaveData done [08:26:36]OFDSenderStorePacket done [08:26:36]KKMCreateOFDPacket done [08:26:36]NVStorageSaveData kkm_last_timestamp [08:26:36]File name is /storage/kkm_last_timestamp [08:26:36]Write 4 bytes [08:26:36]NVStorageSaveData done [08:26:36]ExternCall_PrintAddStr [08:26:36]wPrintStart [08:26:36]Write to MH i2c: 01 00 00 60 2F 8F [08:26:36]Write i2c OK [08:26:36]MH_I2C_Read... [08:26:36]Read from MH i2c: 01 [08:26:36]MH_I2C_Read... [08:26:36]Read from MH i2c: 01 07 00 [08:26:36]MH_I2C_Read... [08:26:36]Read from MH i2c: 01 07 00 60 2F 00 00 00 00 00 FF 0F A4 [08:26:36]RasterBufferAndPrint [08:26:36]line Счет N : (1)209646 [08:26:36]line ИНН: 02508201610067 [08:26:36]line Контрольно-Кассовый Чек [08:26:36]line ПРОДАЖА [08:26:36]line ТРК (МРК, ГНК) : 33 [08:26:36]line Товар: 2710124500 [08:26:36]line Аи-95-К-3 [08:26:36]line 4.790 * 74.20 [08:26:36]line = 355.42 [08:26:36]line НДС 12% НСП 1% [08:26:36]line > о реализуемом товаре [08:26:36]line ОКРУГЛЕНИЕ: -0.42 [08:26:36]line ИТОГО: 355.00 [08:26:36]line Внесено: 355.00 [08:26:36]line СДАЧА: 0.00 [08:26:36]line НСП 1% : 3.14 [08:26:36]line НДС 12% : 37.74 [08:26:36]line Наличными: 355.00 [08:26:36]line Безнал.: 0.00 [08:26:36]line Место: АЗС № 86 "Партнер Нефть" [08:26:36]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [08:26:36]line СНО: Общий режим [08:26:36]line Чек 58 21.10.2024 08:26 [08:26:36]line Смена: 460 ФФД: 1.0 [08:26:36]line ЗНМ: 0300000155 [08:26:36]line РНМ: 0000000000100030 [08:26:36]line Версия ККМ: 001 [08:26:36]line ФМ: 0000000000965340 [08:26:36]line ФД: 187594 [08:26:36]line ФПД: 94510071150867 [08:26:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T082637&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187594&fm=94510071150867&tin=02508201610067®Number=0000000000100030&sum=35500 [08:26:36]OFD Sender: Processing packet 187594 [packets to send 1062, broken 1061] [08:26:36]ProducePacketName [08:26:36]name=ofd_packets/00187594 [08:26:36]OFD Sender: To server: pG, [08:26:36]CommunicateWithHost lk.salyk.kg:30040 [08:26:36]ConnectInit lk.salyk.kg [08:26:36]written 0, free lines is 4095 [08:26:36]Connected sock=10 [08:26:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 F1 B8 07 01 23 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 B6 12 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 D6 8A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 8A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 0E 00 00 00 00 07 04 06 00 AC 8A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 3D 10 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 CA DC 02 00 35 04 06 00 55 F4 D7 37 F9 13 1A 46 B1 EA 12 61 F8 FA [08:26:36]Write to MH i2c: 01 00 00 8B 2F BA [08:26:36]Write i2c OK [08:26:36]MH_I2C_Read... [08:26:36]Read from MH i2c: 01 [08:26:36]MH_I2C_Read... [08:26:36]Read from MH i2c: 01 07 00 [08:26:36]MH_I2C_Read... [08:26:36]Read from MH i2c: 01 07 00 8B 2F 00 00 00 00 00 56 0C 23 [08:26:36]RasterBufferAndPrint [08:26:36]line [08:26:36]line [08:26:36]line [08:26:36]line [08:26:36]line [08:26:36]written 0, free lines is 3162 [08:26:36]MH_Cut [08:26:36]Write to MH i2c: D1 01 00 92 2F 01 93 [08:26:36]Write i2c OK [08:26:36]MH_I2C_Read... [08:26:36]Read from MH i2c: D1 [08:26:36]MH_I2C_Read... [08:26:36]Read from MH i2c: D1 01 00 [08:26:36]MH_I2C_Read... [08:26:36]Read from MH i2c: D1 01 00 92 2F 00 92 [08:26:36]Write to MH i2c: 01 00 00 93 2F C2 [08:26:36]Write i2c OK [08:26:36]MH_I2C_Read... [08:26:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 4E 68 47 00 C0 37 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 CA DC 02 00 F4 03 04 00 2D BA 15 67 B6 04 01 00 00 46 7D 3F 67 AF 70 1F E3 [08:26:37]CommunicateWithHost err = 0 [08:26:37]CheckOFDResponse [08:26:37]1017 (14) - 77093643461234 [08:26:37]1041 (16) - 0000000000965340 [08:26:37]1040 (4) - 187594 [08:26:37]1012 (4) - 21.10.2024 02:19 [08:26:37]1206 (1) - 0 [08:26:37]OFD Sender: Remove packet 187594 [08:26:37]ProducePacketName [08:26:37]name=ofd_packets/00187594 [08:26:37]NVStorageDeleteData [08:26:37]OFD Sender: No OFD packet to send [08:26:38]*** Cut start [08:26:38]*** Partial cut [08:26:38]*** CUTSNS_PIN = 1 [08:26:38]*** CUTSNS_PIN = 0 [08:26:38]*** Brake cut motor [08:26:38]Read from MH i2c: 01 [08:26:38]MH_I2C_Read... [08:26:38]*** Stop cut motor [08:26:38]*** Cut end [08:26:38]Read from MH i2c: 01 07 00 [08:26:38]MH_I2C_Read... [08:26:38]Read from MH i2c: 01 07 00 93 2F 00 00 00 00 00 FF 0F D7 [08:26:38]process_action close_receipt done [08:26:38]requested_data is exist [08:26:38]produce_requested_data [08:26:38]requested_item fm.sn is exist - process it [08:26:38]wFMCommunicate request_size=4 [08:26:38]MH_SAM_APDU [08:26:38]CAPDU: 80 11 00 00 [08:26:38]Write to MH i2c: E2 08 00 94 2F 80 11 00 00 00 00 00 00 3D [08:26:38]Write i2c OK [08:26:38]MH_I2C_Read... [08:26:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:26:38]Read from MH i2c: E2 [08:26:38]MH_I2C_Read... [08:26:38]Read from MH i2c: E2 17 00 [08:26:38]MH_I2C_Read... [08:26:38]Read from MH i2c: E2 17 00 94 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 8B [08:26:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [08:26:38]wFMCommunicate OK [08:26:38]requested_item fd.num is exist - process it [08:26:38]SAM_PROTO_GetFieldsCounters [08:26:38]wFMCommunicate request_size=4 [08:26:38]MH_SAM_APDU [08:26:38]CAPDU: 80 13 00 00 [08:26:38]Write to MH i2c: E2 08 00 95 2F 80 13 00 00 00 00 00 00 40 [08:26:38]Write i2c OK [08:26:38]MH_I2C_Read... [08:26:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:26:39]Read from MH i2c: E2 [08:26:39]MH_I2C_Read... [08:26:39]Read from MH i2c: E2 62 00 [08:26:39]MH_I2C_Read... [08:26:39]Read from MH i2c: E2 62 00 95 2F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 CA DC 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 3A 00 00 00 5E 04 04 00 3A 00 00 00 57 04 04 00 3B 00 00 00 19 04 04 00 00 00 00 00 90 00 6A [08:26:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 CA DC 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 3A 00 00 00 5E 04 04 00 3A 00 00 00 57 04 04 00 3B 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:26:39]wFMCommunicate OK [08:26:39]SAM_PROTO_GetFieldsCounters done [08:26:39]requested_item shift.num is exist - process it [08:26:39]requested_item shift.opened is exist - process it [08:26:39]req_shift_opened [08:26:39]FM_GetShiftState [08:26:39]SAM_PROTO_GetShiftState [08:26:39]wFMCommunicate request_size=4 [08:26:39]MH_SAM_APDU [08:26:39]CAPDU: 80 13 01 00 [08:26:39]Write to MH i2c: E2 08 00 96 2F 80 13 01 00 00 00 00 00 42 [08:26:39]Write i2c OK [08:26:39]MH_I2C_Read... [08:26:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:26:39]Read from MH i2c: E2 [08:26:39]MH_I2C_Read... [08:26:39]Read from MH i2c: E2 0E 00 [08:26:39]MH_I2C_Read... [08:26:39]Read from MH i2c: E2 0E 00 96 2F 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 A1 [08:26:39]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [08:26:39]wFMCommunicate OK [08:26:39]SAM_PROTO_GetShiftState done [08:26:39]FM_GetShiftState done [08:26:39]req_shift_opened done [08:26:39]requested_item shift.open_date is exist - process it [08:26:39]req_shift_open_date [08:26:39]req_shift_open_date done [08:26:39]produce_requested_data done [08:26:39]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187594,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [08:26:39]process_action_free close_receipt [08:26:39]json_value_free [08:26:39]json_value_free done [08:26:39]process_json_proto returns [08:26:39]Send response to host [08:26:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187594,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [08:26:39]free response buf [08:26:39]execute_script done [08:26:39]execute_script returns [08:26:39]free content buf [08:26:39]Sock 8.Close socket [08:26:39]Sock 8.Thread stoped [08:26:42]OFD Sender: No OFD packet to send [08:26:47]OFD Sender: No OFD packet to send [08:26:52]OFD Sender: No OFD packet to send [08:26:57]OFD Sender: No OFD packet to send [08:27:02]OFD Sender: No OFD packet to send [08:27:07]OFD Sender: No OFD packet to send [08:27:12]OFD Sender: No OFD packet to send [08:27:17]OFD Sender: No OFD packet to send [08:27:22]OFD Sender: No OFD packet to send [08:27:27]OFD Sender: No OFD packet to send [08:27:32]OFD Sender: No OFD packet to send [08:27:37]OFD Sender: No OFD packet to send [08:27:42]OFD Sender: No OFD packet to send [08:27:47]OFD Sender: No OFD packet to send [08:27:52]OFD Sender: No OFD packet to send [08:27:57]OFD Sender: No OFD packet to send [08:28:02]OFD Sender: No OFD packet to send [08:28:07]OFD Sender: No OFD packet to send [08:28:12]OFD Sender: No OFD packet to send [08:28:16]accept exits with 9 [08:28:16]New connection [08:28:16]New thread 3067014500 created [08:28:16]Thread 3067157860 joined [08:28:16]Waiting for new connection... [08:28:16] Sock 9.Parse request [08:28:16]Sock 9.Check first char [08:28:16]Sock 9.First char is OK [08:28:16]request: POST /json_proto HTTP/1.0 [08:28:16]Method: POST [08:28:16]URL: /json_proto [08:28:16]Method is POST - this is cgi request [08:28:16]url: /json_proto [08:28:16]query_string will be loaded in cgi processing [08:28:16]execute_cgi json_proto POST (null) [08:28:16]execute_cgi path=json_proto method=POST [08:28:16]POST find Content-Length [08:28:16]Host: 172.17.42.131:8080 [08:28:16]Content-Length: 682 [08:28:16]Content-Type: application/json [08:28:16] [08:28:16]POST finish read [08:28:16]Found Content-Length = 682 [08:28:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209647", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:28:16]execute_script... [08:28: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)209647", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:28:16]POST & json_proto [08:28:16]process_json_proto [08:28:16]json parsed OK: [08:28:16]protocol is kg_v1.0 [08:28:16]action value=close_receipt [08:28:16]process_action close_receipt [08:28:16]cmd_close_receipt [08:28:16]MH_GetDate [08:28:16]Write to MH i2c: F0 00 00 97 2F B5 [08:28:16]Write i2c OK [08:28:16]MH_I2C_Read... [08:28:16]Read from MH i2c: F0 [08:28:16]MH_I2C_Read... [08:28:16]Read from MH i2c: F0 09 00 [08:28:16]MH_I2C_Read... [08:28:16]Read from MH i2c: F0 09 00 97 2F 00 A3 10 16 67 A0 18 CA 66 D6 [08:28:16]GetLastDocTimeStamp 1729499197 [08:28:16]current date 1729499299 [08:28:16]FM_GetShiftState [08:28:16]SAM_PROTO_GetShiftState [08:28:16]wFMCommunicate request_size=4 [08:28:16]MH_SAM_APDU [08:28:16]CAPDU: 80 13 01 00 [08:28:16]Write to MH i2c: E2 08 00 98 2F 80 13 01 00 00 00 00 00 44 [08:28:16]Write i2c OK [08:28:16]MH_I2C_Read... [08:28:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:28:16]Read from MH i2c: E2 [08:28:16]MH_I2C_Read... [08:28:16]Read from MH i2c: E2 0E 00 [08:28:16]MH_I2C_Read... [08:28:16]Read from MH i2c: E2 0E 00 98 2F 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 A3 [08:28:16]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [08:28:16]wFMCommunicate OK [08:28:16]SAM_PROTO_GetShiftState done [08:28:16]FM_GetShiftState done [08:28:16]opened in 1729469754 [08:28:16]opened+sec_in_day 1729556154 [08:28:16]quantity*price = 100021 [08:28:16]sum+1 = 100023 [08:28:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 59 21.10.2024 08:28 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 187595 ФПД: 199650414598115 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T082819&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187595&fm=199650414598115&tin=02508201610067®Number=0000000000100030&sum=100000 [08:28:17]StoreToDocumentArchive [08:28:17]shift 460 fd 187595 [08:28:17]save to /storage/0460/doc_00187595 [08:28:17]save last doc name /storage/0460/doc_00187595 to /storage/kkm_last_doc_name [08:28:17]save OK [08:28:17]Clear old archive folders... [08:28:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:28:17]tlvbuf is B6F877C0 [08:28:17]SAM_PROTO_ClearQueue [08:28:17]wFMCommunicate request_size=4 [08:28:17]MH_SAM_APDU [08:28:17]CAPDU: 80 09 00 00 [08:28:17]Write to MH i2c: E2 08 00 A5 2F 80 09 00 00 00 00 00 00 46 [08:28:17]Write i2c OK [08:28:17]MH_I2C_Read... [08:28:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:28:17]Read from MH i2c: E2 [08:28:17]MH_I2C_Read... [08:28:17]Read from MH i2c: E2 03 00 [08:28:17]MH_I2C_Read... [08:28:17]Read from MH i2c: E2 03 00 A5 2F 00 90 00 48 [08:28:17]RAPDU: 90 00 [08:28:17]wFMCommunicate OK [08:28:17]SAM_PROTO_ClearQueue done [08:28:17]KKMCreateOFDPacket [08:28:17]OFDProtocolAddRootSTLVToBuf [08:28:17]FM_MakeSignedData [08:28:17]FM_MakeSignedData [08:28:17]SAM_PROTO_SignData [08:28:17]wFMCommunicate request_size=4 [08:28:17]MH_SAM_APDU [08:28:17]CAPDU: 80 0D 01 02 [08:28:17]Write to MH i2c: E2 08 00 A6 2F 80 0D 01 02 00 00 00 00 4E [08:28:17]Write i2c OK [08:28:17]MH_I2C_Read... [08:28:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:28:17]Read from MH i2c: E2 [08:28:17]MH_I2C_Read... [08:28:17]Read from MH i2c: E2 03 00 [08:28:17]MH_I2C_Read... [08:28:17]Read from MH i2c: E2 03 00 A6 2F 00 90 00 49 [08:28:17]RAPDU: 90 00 [08:28:17]wFMCommunicate OK [08:28:17]wFMCommunicate request_size=255 [08:28:17]MH_SAM_APDU [08:28:17]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 A3 10 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 CB DC 02 00 35 04 06 00 B5 [08:28:17]Write to MH i2c: E2 02 01 A7 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 A3 10 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 CB DC 02 00 35 04 06 00 B5 00 00 74 [08:28:17]Write i2c OK [08:28:17]MH_I2C_Read... [08:28:18]OFD Sender: No OFD packet to send [08:28:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:28:18]Read from MH i2c: E2 [08:28:18]MH_I2C_Read... [08:28:18]Read from MH i2c: E2 03 00 [08:28:18]MH_I2C_Read... [08:28:18]Read from MH i2c: E2 03 00 A7 2F 00 90 00 4A [08:28:18]RAPDU: 90 00 [08:28:18]wFMCommunicate OK [08:28:18]wFMCommunicate request_size=10 [08:28:18]MH_SAM_APDU [08:28:18]CAPDU: 80 0D 02 02 05 94 BC 0A 97 E3 [08:28:18]Write to MH i2c: E2 0D 00 A8 2F 80 0D 02 02 05 00 94 BC 0A 97 E3 00 00 2F [08:28:18]Write i2c OK [08:28:18]MH_I2C_Read... [08:28:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:28:18]Read from MH i2c: E2 [08:28:18]MH_I2C_Read... [08:28:18]Read from MH i2c: E2 03 00 [08:28:18]MH_I2C_Read... [08:28:18]Read from MH i2c: E2 03 00 A8 2F 00 90 00 4B [08:28:18]RAPDU: 90 00 [08:28:18]wFMCommunicate OK [08:28:18]wFMCommunicate request_size=4 [08:28:18]MH_SAM_APDU [08:28:18]CAPDU: 80 0D 03 02 [08:28:18]Write to MH i2c: E2 08 00 A9 2F 80 0D 03 02 00 00 00 00 53 [08:28:18]Write i2c OK [08:28:18]MH_I2C_Read... [08:28:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:28:18]Read from MH i2c: E2 [08:28:18]MH_I2C_Read... [08:28:18]Read from MH i2c: E2 0B 00 [08:28:18]MH_I2C_Read... [08:28:18]Read from MH i2c: E2 0B 00 A9 2F 00 CC 5F 58 0E 5C 89 DF A5 90 00 4E [08:28:18]RAPDU: CC 5F 58 0E 5C 89 DF A5 90 00 [08:28:18]wFMCommunicate OK [08:28:18]SAM_PROTO_SignData done [08:28:18]FM_MakeSignedData done [08:28:18]CreateOFDProtocolMessage [08:28:18]wFMCommunicate request_size=4 [08:28:18]MH_SAM_APDU [08:28:18]CAPDU: 80 11 00 00 [08:28:18]Write to MH i2c: E2 08 00 AA 2F 80 11 00 00 00 00 00 00 53 [08:28:18]Write i2c OK [08:28:18]MH_I2C_Read... [08:28:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:28:18]Read from MH i2c: E2 [08:28:18]MH_I2C_Read... [08:28:18]Read from MH i2c: E2 17 00 [08:28:18]MH_I2C_Read... [08:28:18]Read from MH i2c: E2 17 00 AA 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 A1 [08:28:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [08:28:18]wFMCommunicate OK [08:28:18]CreateOFDProtocolMessage done [08:28:18]OFDSenderStorePacket 187595 [08:28:18]StoreOFDPacket docnum=187595 [08:28:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 1C 87 07 01 7E 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 A3 10 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 CB DC 02 00 35 04 06 00 B5 94 BC 0A 97 E3 CC 5F 58 0E 5C 89 DF A5 [08:28:18]CheckFolder [08:28:18]dirname=/storage/ofd_packets [08:28:18]CheckFolder done [08:28:18]ProducePacketName [08:28:18]name=ofd_packets/00187595 [08:28:18]NVStorageSaveData ofd_packets/00187595 [08:28:18]File name is /storage/ofd_packets/00187595 [08:28:18]Write 301 bytes [08:28:18]NVStorageSaveData done [08:28:18]OFDSenderStorePacket done [08:28:18]KKMCreateOFDPacket done [08:28:18]NVStorageSaveData kkm_last_timestamp [08:28:18]File name is /storage/kkm_last_timestamp [08:28:18]Write 4 bytes [08:28:18]NVStorageSaveData done [08:28:18]ExternCall_PrintAddStr [08:28:18]wPrintStart [08:28:18]Write to MH i2c: 01 00 00 AB 2F DA [08:28:18]Write i2c OK [08:28:18]MH_I2C_Read... [08:28:18]Read from MH i2c: 01 [08:28:18]MH_I2C_Read... [08:28:18]Read from MH i2c: 01 07 00 [08:28:18]MH_I2C_Read... [08:28:18]Read from MH i2c: 01 07 00 AB 2F 00 00 00 00 00 FF 0F EF [08:28:18]RasterBufferAndPrint [08:28:18]line Счет N : (1)209647 [08:28:18]line ИНН: 02508201610067 [08:28:18]line Контрольно-Кассовый Чек [08:28:18]line ПРОДАЖА [08:28:18]line ТРК (МРК, ГНК) : 43 [08:28:18]line Товар: 2710124500 [08:28:18]line Аи-95-К-3 [08:28:18]line 13.480 * 74.20 [08:28:18]line = 1000.22 [08:28:18]line НДС 12% НСП 1% [08:28:18]line > о реализуемом товаре [08:28:18]line ОКРУГЛЕНИЕ: -0.22 [08:28:18]line ИТОГО: 1000.00 [08:28:18]line Внесено: 1000.00 [08:28:18]line СДАЧА: 0.00 [08:28:18]line НСП 1% : 8.85 [08:28:18]line НДС 12% : 106.22 [08:28:18]line Наличными: 1000.00 [08:28:18]line Безнал.: 0.00 [08:28:18]line Место: АЗС № 86 "Партнер Нефть" [08:28:18]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [08:28:18]line СНО: Общий режим [08:28:18]line Чек 59 21.10.2024 08:28 [08:28:18]line Смена: 460 ФФД: 1.0 [08:28:18]line ЗНМ: 0300000155 [08:28:18]line РНМ: 0000000000100030 [08:28:18]line Версия ККМ: 001 [08:28:18]line ФМ: 0000000000965340 [08:28:18]line ФД: 187595 [08:28:18]line ФПД: 199650414598115 [08:28:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T082819&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187595&fm=199650414598115&tin=02508201610067®Number=0000000000100030&sum=100000 [08:28:18]written 0, free lines is 4095 [08:28:18]OFD Sender: Processing packet 187595 [packets to send 1062, broken 1061] [08:28:18]ProducePacketName [08:28:18]name=ofd_packets/00187595 [08:28:18]OFD Sender: To server: pG, [08:28:18]CommunicateWithHost lk.salyk.kg:30040 [08:28:18]ConnectInit lk.salyk.kg [08:28:18]Connected sock=10 [08:28:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 1C 87 07 01 7E 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 A3 10 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 CB DC 02 00 35 04 06 00 B5 94 BC 0A 97 E3 CC 5F 58 0E 5C 89 DF A5 [08:28:18]Write to MH i2c: 01 00 00 D6 2F 05 [08:28:18]Write i2c OK [08:28:18]MH_I2C_Read... [08:28:18]Read from MH i2c: 01 [08:28:18]MH_I2C_Read... [08:28:18]Read from MH i2c: 01 07 00 [08:28:18]MH_I2C_Read... [08:28:18]Read from MH i2c: 01 07 00 D6 2F 00 00 00 00 00 5E 0C 76 [08:28:18]RasterBufferAndPrint [08:28:18]line [08:28:18]line [08:28:18]line [08:28:18]line [08:28:18]line [08:28:18]written 0, free lines is 3169 [08:28:18]MH_Cut [08:28:18]Write to MH i2c: D1 01 00 DD 2F 01 DE [08:28:18]Write i2c OK [08:28:18]MH_I2C_Read... [08:28:18]Read from MH i2c: D1 [08:28:18]MH_I2C_Read... [08:28:18]Read from MH i2c: D1 01 00 [08:28:18]MH_I2C_Read... [08:28:18]Read from MH i2c: D1 01 00 DD 2F 00 DD [08:28:18]Write to MH i2c: 01 00 00 DE 2F 0D [08:28:18]Write i2c OK [08:28:18]MH_I2C_Read... [08:28:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 3E E2 47 00 1F 13 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 CB DC 02 00 F4 03 04 00 93 BA 15 67 B6 04 01 00 00 16 B1 C3 39 1C 9C 9E 1B [08:28:18]CommunicateWithHost err = 0 [08:28:18]CheckOFDResponse [08:28:18]1017 (14) - 77093643461234 [08:28:18]1041 (16) - 0000000000965340 [08:28:18]1040 (4) - 187595 [08:28:18]1012 (4) - 21.10.2024 02:21 [08:28:18]1206 (1) - 0 [08:28:18]OFD Sender: Remove packet 187595 [08:28:18]ProducePacketName [08:28:18]name=ofd_packets/00187595 [08:28:18]NVStorageDeleteData [08:28:19]OFD Sender: No OFD packet to send [08:28:19]*** Cut start [08:28:19]*** Partial cut [08:28:19]*** CUTSNS_PIN = 1 [08:28:20]*** CUTSNS_PIN = 0 [08:28:20]*** Brake cut motor [08:28:20]Read from MH i2c: 01 [08:28:20]MH_I2C_Read... [08:28:20]*** Stop cut motor [08:28:20]*** Cut end [08:28:20]Read from MH i2c: 01 07 00 [08:28:20]MH_I2C_Read... [08:28:20]Read from MH i2c: 01 07 00 DE 2F 00 00 00 00 00 FF 0F 22 [08:28:20]process_action close_receipt done [08:28:20]requested_data is exist [08:28:20]produce_requested_data [08:28:20]requested_item fm.sn is exist - process it [08:28:20]wFMCommunicate request_size=4 [08:28:20]MH_SAM_APDU [08:28:20]CAPDU: 80 11 00 00 [08:28:20]Write to MH i2c: E2 08 00 DF 2F 80 11 00 00 00 00 00 00 88 [08:28:20]Write i2c OK [08:28:20]MH_I2C_Read... [08:28:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:28:20]Read from MH i2c: E2 [08:28:20]MH_I2C_Read... [08:28:20]Read from MH i2c: E2 17 00 [08:28:20]MH_I2C_Read... [08:28:20]Read from MH i2c: E2 17 00 DF 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 D6 [08:28:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [08:28:20]wFMCommunicate OK [08:28:20]requested_item fd.num is exist - process it [08:28:20]SAM_PROTO_GetFieldsCounters [08:28:20]wFMCommunicate request_size=4 [08:28:20]MH_SAM_APDU [08:28:20]CAPDU: 80 13 00 00 [08:28:20]Write to MH i2c: E2 08 00 E0 2F 80 13 00 00 00 00 00 00 8B [08:28:20]Write i2c OK [08:28:20]MH_I2C_Read... [08:28:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:28:20]Read from MH i2c: E2 [08:28:20]MH_I2C_Read... [08:28:20]Read from MH i2c: E2 62 00 [08:28:20]MH_I2C_Read... [08:28:20]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 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 CB DC 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 3B 00 00 00 5E 04 04 00 3B 00 00 00 57 04 04 00 3C 00 00 00 19 04 04 00 00 00 00 00 90 00 B9 [08:28:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 CB DC 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 3B 00 00 00 5E 04 04 00 3B 00 00 00 57 04 04 00 3C 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:28:20]wFMCommunicate OK [08:28:20]SAM_PROTO_GetFieldsCounters done [08:28:20]requested_item shift.num is exist - process it [08:28:20]requested_item shift.opened is exist - process it [08:28:20]req_shift_opened [08:28:20]FM_GetShiftState [08:28:20]SAM_PROTO_GetShiftState [08:28:20]wFMCommunicate request_size=4 [08:28:20]MH_SAM_APDU [08:28:20]CAPDU: 80 13 01 00 [08:28:20]Write to MH i2c: E2 08 00 E1 2F 80 13 01 00 00 00 00 00 8D [08:28:20]Write i2c OK [08:28:20]MH_I2C_Read... [08:28:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:28:20]Read from MH i2c: E2 [08:28:20]MH_I2C_Read... [08:28:20]Read from MH i2c: E2 0E 00 [08:28:20]MH_I2C_Read... [08:28:20]Read from MH i2c: E2 0E 00 E1 2F 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 EC [08:28:20]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [08:28:20]wFMCommunicate OK [08:28:20]SAM_PROTO_GetShiftState done [08:28:20]FM_GetShiftState done [08:28:20]req_shift_opened done [08:28:20]requested_item shift.open_date is exist - process it [08:28:20]req_shift_open_date [08:28:20]req_shift_open_date done [08:28:20]produce_requested_data done [08:28:20]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187595,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [08:28:20]process_action_free close_receipt [08:28:20]json_value_free [08:28:20]json_value_free done [08:28:20]process_json_proto returns [08:28:20]Send response to host [08:28:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187595,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [08:28:20]free response buf [08:28:20]execute_script done [08:28:20]execute_script returns [08:28:20]free content buf [08:28:20]Sock 9.Close socket [08:28:20]Sock 9.Thread stoped [08:28:24]OFD Sender: No OFD packet to send [08:28:29]OFD Sender: No OFD packet to send [08:28:34]OFD Sender: No OFD packet to send [08:28:39]OFD Sender: No OFD packet to send [08:28:44]OFD Sender: No OFD packet to send [08:28:49]OFD Sender: No OFD packet to send [08:28:54]OFD Sender: No OFD packet to send [08:28:59]OFD Sender: No OFD packet to send [08:29:04]OFD Sender: No OFD packet to send [08:29:09]OFD Sender: No OFD packet to send [08:29:14]OFD Sender: No OFD packet to send [08:29:19]OFD Sender: No OFD packet to send [08:29:22]accept exits with 8 [08:29:22]New connection [08:29:22]New thread 3067157860 created [08:29:22]Thread 3067014500 joined [08:29:22]Waiting for new connection... [08:29:22] Sock 8.Parse request [08:29:22]Sock 8.Check first char [08:29:22]Sock 8.First char is OK [08:29:22]request: POST /json_proto HTTP/1.0 [08:29:22]Method: POST [08:29:22]URL: /json_proto [08:29:22]Method is POST - this is cgi request [08:29:22]url: /json_proto [08:29:22]query_string will be loaded in cgi processing [08:29:22]execute_cgi json_proto POST (null) [08:29:22]execute_cgi path=json_proto method=POST [08:29:22]POST find Content-Length [08:29:22]Host: 172.17.42.131:8080 [08:29:22]Content-Length: 677 [08:29:22]Content-Type: application/json [08:29:22] [08:29:22]POST finish read [08:29:22]Found Content-Length = 677 [08:29:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209648", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:29:22]execute_script... [08:29: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)209648", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:29:22]POST & json_proto [08:29:22]process_json_proto [08:29:22]json parsed OK: [08:29:22]protocol is kg_v1.0 [08:29:22]action value=close_receipt [08:29:22]process_action close_receipt [08:29:22]cmd_close_receipt [08:29:22]MH_GetDate [08:29:22]Write to MH i2c: F0 00 00 E2 2F 00 [08:29:22]Write i2c OK [08:29:22]MH_I2C_Read... [08:29:22]Read from MH i2c: F0 [08:29:22]MH_I2C_Read... [08:29:22]Read from MH i2c: F0 09 00 [08:29:22]MH_I2C_Read... [08:29:22]Read from MH i2c: F0 09 00 E2 2F 00 E6 10 16 67 A0 18 CA 66 64 [08:29:22]GetLastDocTimeStamp 1729499299 [08:29:22]current date 1729499366 [08:29:22]FM_GetShiftState [08:29:22]SAM_PROTO_GetShiftState [08:29:22]wFMCommunicate request_size=4 [08:29:22]MH_SAM_APDU [08:29:22]CAPDU: 80 13 01 00 [08:29:22]Write to MH i2c: E2 08 00 E3 2F 80 13 01 00 00 00 00 00 8F [08:29:22]Write i2c OK [08:29:22]MH_I2C_Read... [08:29:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:29:22]Read from MH i2c: E2 [08:29:22]MH_I2C_Read... [08:29:22]Read from MH i2c: E2 0E 00 [08:29:22]MH_I2C_Read... [08:29:22]Read from MH i2c: E2 0E 00 E3 2F 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 EE [08:29:22]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [08:29:22]wFMCommunicate OK [08:29:22]SAM_PROTO_GetShiftState done [08:29:22]FM_GetShiftState done [08:29:22]opened in 1729469754 [08:29:22]opened+sec_in_day 1729556154 [08:29:22]quantity*price = 50041 [08:29:22]sum+1 = 50042 [08:29:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 60 21.10.2024 08:29 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 187596 ФПД: 102666596362396 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T082926&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187596&fm=102666596362396&tin=02508201610067®Number=0000000000100030&sum=50000 [08:29:24]StoreToDocumentArchive [08:29:24]shift 460 fd 187596 [08:29:24]save to /storage/0460/doc_00187596 [08:29:24]save last doc name /storage/0460/doc_00187596 to /storage/kkm_last_doc_name [08:29:24]save OK [08:29:24]Clear old archive folders... [08:29:24]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:29:24]tlvbuf is 010F7B70 [08:29:24]SAM_PROTO_ClearQueue [08:29:24]wFMCommunicate request_size=4 [08:29:24]MH_SAM_APDU [08:29:24]CAPDU: 80 09 00 00 [08:29:24]Write to MH i2c: E2 08 00 F0 2F 80 09 00 00 00 00 00 00 91 [08:29:24]Write i2c OK [08:29:24]MH_I2C_Read... [08:29:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:29:24]Read from MH i2c: E2 [08:29:24]MH_I2C_Read... [08:29:24]Read from MH i2c: E2 03 00 [08:29:24]MH_I2C_Read... [08:29:24]Read from MH i2c: E2 03 00 F0 2F 00 90 00 93 [08:29:24]RAPDU: 90 00 [08:29:24]wFMCommunicate OK [08:29:24]SAM_PROTO_ClearQueue done [08:29:24]KKMCreateOFDPacket [08:29:24]OFDProtocolAddRootSTLVToBuf [08:29:24]FM_MakeSignedData [08:29:24]FM_MakeSignedData [08:29:24]SAM_PROTO_SignData [08:29:24]wFMCommunicate request_size=4 [08:29:24]MH_SAM_APDU [08:29:24]CAPDU: 80 0D 01 02 [08:29:24]Write to MH i2c: E2 08 00 F1 2F 80 0D 01 02 00 00 00 00 99 [08:29:24]Write i2c OK [08:29:24]MH_I2C_Read... [08:29:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:29:24]Read from MH i2c: E2 [08:29:24]MH_I2C_Read... [08:29:24]Read from MH i2c: E2 03 00 [08:29:24]MH_I2C_Read... [08:29:24]Read from MH i2c: E2 03 00 F1 2F 00 90 00 94 [08:29:24]RAPDU: 90 00 [08:29:24]wFMCommunicate OK [08:29:24]wFMCommunicate request_size=255 [08:29:24]MH_SAM_APDU [08:29: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 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 E6 10 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 CC DC 02 00 35 04 06 00 5D [08:29:24]Write to MH i2c: E2 02 01 F2 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 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 E6 10 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 CC DC 02 00 35 04 06 00 5D 00 00 8F [08:29:24]Write i2c OK [08:29:24]MH_I2C_Read... [08:29:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:29:24]Read from MH i2c: E2 [08:29:24]MH_I2C_Read... [08:29:24]Read from MH i2c: E2 03 00 [08:29:24]MH_I2C_Read... [08:29:24]Read from MH i2c: E2 03 00 F2 2F 00 90 00 95 [08:29:24]RAPDU: 90 00 [08:29:24]wFMCommunicate OK [08:29:24]wFMCommunicate request_size=10 [08:29:24]MH_SAM_APDU [08:29:24]CAPDU: 80 0D 02 02 05 5F EE 01 A8 9C [08:29:24]Write to MH i2c: E2 0D 00 F3 2F 80 0D 02 02 05 00 5F EE 01 A8 9C 00 00 38 [08:29:24]Write i2c OK [08:29:24]MH_I2C_Read... [08:29:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:29:24]Read from MH i2c: E2 [08:29:24]MH_I2C_Read... [08:29:24]Read from MH i2c: E2 03 00 [08:29:24]MH_I2C_Read... [08:29:24]Read from MH i2c: E2 03 00 F3 2F 00 90 00 96 [08:29:24]RAPDU: 90 00 [08:29:24]wFMCommunicate OK [08:29:24]wFMCommunicate request_size=4 [08:29:24]MH_SAM_APDU [08:29:24]CAPDU: 80 0D 03 02 [08:29:24]Write to MH i2c: E2 08 00 F4 2F 80 0D 03 02 00 00 00 00 9E [08:29:24]Write i2c OK [08:29:24]MH_I2C_Read... [08:29:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:29:24]Read from MH i2c: E2 [08:29:24]MH_I2C_Read... [08:29:24]Read from MH i2c: E2 0B 00 [08:29:24]MH_I2C_Read... [08:29:24]Read from MH i2c: E2 0B 00 F4 2F 00 F6 CD FF 81 E6 34 BB F2 90 00 A9 [08:29:24]RAPDU: F6 CD FF 81 E6 34 BB F2 90 00 [08:29:24]wFMCommunicate OK [08:29:24]SAM_PROTO_SignData done [08:29:24]FM_MakeSignedData done [08:29:24]CreateOFDProtocolMessage [08:29:24]wFMCommunicate request_size=4 [08:29:24]MH_SAM_APDU [08:29:24]CAPDU: 80 11 00 00 [08:29:24]Write to MH i2c: E2 08 00 F5 2F 80 11 00 00 00 00 00 00 9E [08:29:24]Write i2c OK [08:29:24]MH_I2C_Read... [08:29:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:29:24]Read from MH i2c: E2 [08:29:24]MH_I2C_Read... [08:29:24]Read from MH i2c: E2 17 00 [08:29:24]MH_I2C_Read... [08:29:24]Read from MH i2c: E2 17 00 F5 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 EC [08:29:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [08:29:24]wFMCommunicate OK [08:29:24]CreateOFDProtocolMessage done [08:29:24]OFDSenderStorePacket 187596 [08:29:24]StoreOFDPacket docnum=187596 [08:29:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 CC 61 07 01 3B 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 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 E6 10 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 CC DC 02 00 35 04 06 00 5D 5F EE 01 A8 9C F6 CD FF 81 E6 34 BB F2 [08:29:24]CheckFolder [08:29:24]dirname=/storage/ofd_packets [08:29:24]CheckFolder done [08:29:24]ProducePacketName [08:29:24]name=ofd_packets/00187596 [08:29:24]NVStorageSaveData ofd_packets/00187596 [08:29:24]File name is /storage/ofd_packets/00187596 [08:29:24]Write 301 bytes [08:29:24]NVStorageSaveData done [08:29:24]OFDSenderStorePacket done [08:29:24]KKMCreateOFDPacket done [08:29:24]NVStorageSaveData kkm_last_timestamp [08:29:24]File name is /storage/kkm_last_timestamp [08:29:24]Write 4 bytes [08:29:24]NVStorageSaveData done [08:29:24]ExternCall_PrintAddStr [08:29:24]wPrintStart [08:29:24]Write to MH i2c: 01 00 00 F6 2F 25 [08:29:24]Write i2c OK [08:29:24]MH_I2C_Read... [08:29:24]Read from MH i2c: 01 [08:29:24]MH_I2C_Read... [08:29:24]Read from MH i2c: 01 07 00 [08:29:24]MH_I2C_Read... [08:29:24]Read from MH i2c: 01 07 00 F6 2F 00 00 00 00 00 FF 0F 3A [08:29:24]RasterBufferAndPrint [08:29:24]line Счет N : (1)209648 [08:29:24]line ИНН: 02508201610067 [08:29:24]line Контрольно-Кассовый Чек [08:29:24]line ПРОДАЖА [08:29:24]line ТРК (МРК, ГНК) : 12 [08:29:24]line Товар: 2710124130 [08:29:24]line Аи-92-К-3 [08:29:24]line 7.480 * 66.90 [08:29:24]line = 500.41 [08:29:24]line НДС 12% НСП 1% [08:29:24]line > о реализуемом товаре [08:29:24]line ОКРУГЛЕНИЕ: -0.41 [08:29:24]line ИТОГО: 500.00 [08:29:24]line Внесено: 500.00 [08:29:24]line СДАЧА: 0.00 [08:29:24]line НСП 1% : 4.43 [08:29:24]line НДС 12% : 53.14 [08:29:24]line Наличными: 500.00 [08:29:24]line Безнал.: 0.00 [08:29:24]line Место: АЗС № 86 "Партнер Нефть" [08:29:24]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [08:29:24]line СНО: Общий режим [08:29:24]line Чек 60 21.10.2024 08:29 [08:29:24]line Смена: 460 ФФД: 1.0 [08:29:24]line ЗНМ: 0300000155 [08:29:24]line РНМ: 0000000000100030 [08:29:24]line Версия ККМ: 001 [08:29:24]line ФМ: 0000000000965340 [08:29:24]line ФД: 187596 [08:29:24]line ФПД: 102666596362396 [08:29:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T082926&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187596&fm=102666596362396&tin=02508201610067®Number=0000000000100030&sum=50000 [08:29:24]written 0, free lines is 4095 [08:29:24]OFD Sender: Processing packet 187596 [packets to send 1062, broken 1061] [08:29:24]ProducePacketName [08:29:24]name=ofd_packets/00187596 [08:29:24]OFD Sender: To server: pG, [08:29:24]CommunicateWithHost lk.salyk.kg:30040 [08:29:24]ConnectInit lk.salyk.kg [08:29:24]Connected sock=10 [08:29:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 CC 61 07 01 3B 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 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 E6 10 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 CC DC 02 00 35 04 06 00 5D 5F EE 01 A8 9C F6 CD FF 81 E6 34 BB F2 [08:29:25]Write to MH i2c: 01 00 00 21 30 51 [08:29:25]Write i2c OK [08:29:25]MH_I2C_Read... [08:29:25]Read from MH i2c: 01 [08:29:25]MH_I2C_Read... [08:29:25]Read from MH i2c: 01 07 00 [08:29:25]MH_I2C_Read... [08:29:25]Read from MH i2c: 01 07 00 21 30 00 00 00 00 00 58 0C BC [08:29:25]RasterBufferAndPrint [08:29:25]line [08:29:25]line [08:29:25]line [08:29:25]line [08:29:25]line [08:29:25]written 0, free lines is 3164 [08:29:25]MH_Cut [08:29:25]Write to MH i2c: D1 01 00 28 30 01 2A [08:29:25]Write i2c OK [08:29:25]MH_I2C_Read... [08:29:25]Read from MH i2c: D1 [08:29:25]MH_I2C_Read... [08:29:25]Read from MH i2c: D1 01 00 [08:29:25]MH_I2C_Read... [08:29:25]Read from MH i2c: D1 01 00 28 30 00 29 [08:29:25]Write to MH i2c: 01 00 00 29 30 59 [08:29:25]Write i2c OK [08:29:25]MH_I2C_Read... [08:29:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 EE D0 47 00 58 E3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 CC DC 02 00 F4 03 04 00 D6 BA 15 67 B6 04 01 00 00 30 6F 15 D7 36 6B BD 7F [08:29:25]CommunicateWithHost err = 0 [08:29:25]CheckOFDResponse [08:29:25]1017 (14) - 77093643461234 [08:29:25]1041 (16) - 0000000000965340 [08:29:25]1040 (4) - 187596 [08:29:25]1012 (4) - 21.10.2024 02:22 [08:29:25]1206 (1) - 0 [08:29:25]OFD Sender: Remove packet 187596 [08:29:25]ProducePacketName [08:29:25]name=ofd_packets/00187596 [08:29:25]NVStorageDeleteData [08:29:25]OFD Sender: No OFD packet to send [08:29:26]*** Cut start [08:29:26]*** Partial cut [08:29:26]*** CUTSNS_PIN = 1 [08:29:26]*** CUTSNS_PIN = 0 [08:29:26]*** Brake cut motor [08:29:26]Read from MH i2c: 01 [08:29:26]MH_I2C_Read... [08:29:26]*** Stop cut motor [08:29:26]*** Cut end [08:29:26]Read from MH i2c: 01 07 00 [08:29:26]MH_I2C_Read... [08:29:26]Read from MH i2c: 01 07 00 29 30 00 00 00 00 00 FF 0F 6E [08:29:26]process_action close_receipt done [08:29:26]requested_data is exist [08:29:26]produce_requested_data [08:29:26]requested_item fm.sn is exist - process it [08:29:26]wFMCommunicate request_size=4 [08:29:26]MH_SAM_APDU [08:29:26]CAPDU: 80 11 00 00 [08:29:26]Write to MH i2c: E2 08 00 2A 30 80 11 00 00 00 00 00 00 D4 [08:29:26]Write i2c OK [08:29:26]MH_I2C_Read... [08:29:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:29:27]Read from MH i2c: E2 [08:29:27]MH_I2C_Read... [08:29:27]Read from MH i2c: E2 17 00 [08:29:27]MH_I2C_Read... [08:29:27]Read from MH i2c: E2 17 00 2A 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 22 [08:29:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [08:29:27]wFMCommunicate OK [08:29:27]requested_item fd.num is exist - process it [08:29:27]SAM_PROTO_GetFieldsCounters [08:29:27]wFMCommunicate request_size=4 [08:29:27]MH_SAM_APDU [08:29:27]CAPDU: 80 13 00 00 [08:29:27]Write to MH i2c: E2 08 00 2B 30 80 13 00 00 00 00 00 00 D7 [08:29:27]Write i2c OK [08:29:27]MH_I2C_Read... [08:29:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:29:27]Read from MH i2c: E2 [08:29:27]MH_I2C_Read... [08:29:27]Read from MH i2c: E2 62 00 [08:29:27]MH_I2C_Read... [08:29:27]Read from MH i2c: E2 62 00 2B 30 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 CC DC 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 3C 00 00 00 5E 04 04 00 3C 00 00 00 57 04 04 00 3D 00 00 00 19 04 04 00 00 00 00 00 90 00 09 [08:29:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 CC DC 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 3C 00 00 00 5E 04 04 00 3C 00 00 00 57 04 04 00 3D 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:29:27]wFMCommunicate OK [08:29:27]SAM_PROTO_GetFieldsCounters done [08:29:27]requested_item shift.num is exist - process it [08:29:27]requested_item shift.opened is exist - process it [08:29:27]req_shift_opened [08:29:27]FM_GetShiftState [08:29:27]SAM_PROTO_GetShiftState [08:29:27]wFMCommunicate request_size=4 [08:29:27]MH_SAM_APDU [08:29:27]CAPDU: 80 13 01 00 [08:29:27]Write to MH i2c: E2 08 00 2C 30 80 13 01 00 00 00 00 00 D9 [08:29:27]Write i2c OK [08:29:27]MH_I2C_Read... [08:29:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:29:27]Read from MH i2c: E2 [08:29:27]MH_I2C_Read... [08:29:27]Read from MH i2c: E2 0E 00 [08:29:27]MH_I2C_Read... [08:29:27]Read from MH i2c: E2 0E 00 2C 30 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 38 [08:29:27]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [08:29:27]wFMCommunicate OK [08:29:27]SAM_PROTO_GetShiftState done [08:29:27]FM_GetShiftState done [08:29:27]req_shift_opened done [08:29:27]requested_item shift.open_date is exist - process it [08:29:27]req_shift_open_date [08:29:27]req_shift_open_date done [08:29:27]produce_requested_data done [08:29:27]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187596,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [08:29:27]process_action_free close_receipt [08:29:27]json_value_free [08:29:27]json_value_free done [08:29:27]process_json_proto returns [08:29:27]Send response to host [08:29:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187596,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [08:29:27]free response buf [08:29:27]execute_script done [08:29:27]execute_script returns [08:29:27]free content buf [08:29:27]Sock 8.Close socket [08:29:27]Sock 8.Thread stoped [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:46]OFD Sender: No OFD packet to send [08:30:51]OFD Sender: No OFD packet to send [08:30:56]OFD Sender: No OFD packet to send [08:31:01]OFD Sender: No OFD packet to send [08:31:06]OFD Sender: No OFD packet to send [08:31:11]OFD Sender: No OFD packet to send [08:31:16]OFD Sender: No OFD packet to send [08:31:21]OFD Sender: No OFD packet to send [08:31:26]OFD Sender: No OFD packet to send [08:31:31]OFD Sender: No OFD packet to send [08:31:36]OFD Sender: No OFD packet to send [08:31:41]OFD Sender: No OFD packet to send [08:31:46]OFD Sender: No OFD packet to send [08:31:51]OFD Sender: No OFD packet to send [08:31:52]accept exits with 9 [08:31:52]New connection [08:31:52]New thread 3067014500 created [08:31:52]Thread 3067157860 joined [08:31:52]Waiting for new connection... [08:31:52] Sock 9.Parse request [08:31:52]Sock 9.Check first char [08:31:52]Sock 9.First char is OK [08:31:52]request: POST /json_proto HTTP/1.0 [08:31:52]Method: POST [08:31:52]URL: /json_proto [08:31:52]Method is POST - this is cgi request [08:31:52]url: /json_proto [08:31:52]query_string will be loaded in cgi processing [08:31:52]execute_cgi json_proto POST (null) [08:31:52]execute_cgi path=json_proto method=POST [08:31:52]POST find Content-Length [08:31:52]Host: 172.17.42.131:8080 [08:31:52]Content-Length: 816 [08:31:52]Content-Type: application/json [08:31:52] [08:31:52]POST finish read [08:31:52]Found Content-Length = 816 [08:31:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209649", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "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: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:31:52]execute_script... [08:31: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)209649", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "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: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:31:52]POST & json_proto [08:31:52]process_json_proto [08:31:52]json parsed OK: [08:31:52]protocol is kg_v1.0 [08:31:52]action value=close_receipt [08:31:52]process_action close_receipt [08:31:52]cmd_close_receipt [08:31:52]MH_GetDate [08:31:52]Write to MH i2c: F0 00 00 2D 30 4C [08:31:52]Write i2c OK [08:31:52]MH_I2C_Read... [08:31:52]Read from MH i2c: F0 [08:31:52]MH_I2C_Read... [08:31:52]Read from MH i2c: F0 09 00 [08:31:52]MH_I2C_Read... [08:31:52]Read from MH i2c: F0 09 00 2D 30 00 7B 11 16 67 A0 18 CA 66 46 [08:31:52]GetLastDocTimeStamp 1729499366 [08:31:52]current date 1729499515 [08:31:52]FM_GetShiftState [08:31:52]SAM_PROTO_GetShiftState [08:31:52]wFMCommunicate request_size=4 [08:31:52]MH_SAM_APDU [08:31:52]CAPDU: 80 13 01 00 [08:31:52]Write to MH i2c: E2 08 00 2E 30 80 13 01 00 00 00 00 00 DB [08:31:52]Write i2c OK [08:31:52]MH_I2C_Read... [08:31:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:31:52]Read from MH i2c: E2 [08:31:52]MH_I2C_Read... [08:31:52]Read from MH i2c: E2 0E 00 [08:31:52]MH_I2C_Read... [08:31:52]Read from MH i2c: E2 0E 00 2E 30 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 3A [08:31:52]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [08:31:52]wFMCommunicate OK [08:31:52]SAM_PROTO_GetShiftState done [08:31:52]FM_GetShiftState done [08:31:52]opened in 1729469754 [08:31:52]opened+sec_in_day 1729556154 [08:31:52]quantity*price = 50041 [08:31:52]sum+1 = 50042 [08:31:52]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.41 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 0.00 Безнал.: 500.41 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 61 21.10.2024 08:31 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000965340 ФД: 187597 ФПД: 124218927368211 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T083155&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187597&fm=124218927368211&tin=02508201610067®Number=0000000000100030&sum=50041 [08:31:53]StoreToDocumentArchive [08:31:53]shift 460 fd 187597 [08:31:53]save to /storage/0460/doc_00187597 [08:31:53]save last doc name /storage/0460/doc_00187597 to /storage/kkm_last_doc_name [08:31:53]save OK [08:31:53]Clear old archive folders... [08:31:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:31:53]tlvbuf is 010D3FF0 [08:31:53]SAM_PROTO_ClearQueue [08:31:53]wFMCommunicate request_size=4 [08:31:53]MH_SAM_APDU [08:31:53]CAPDU: 80 09 00 00 [08:31:53]Write to MH i2c: E2 08 00 3B 30 80 09 00 00 00 00 00 00 DD [08:31:53]Write i2c OK [08:31:53]MH_I2C_Read... [08:31:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:31:53]Read from MH i2c: E2 [08:31:53]MH_I2C_Read... [08:31:53]Read from MH i2c: E2 03 00 [08:31:53]MH_I2C_Read... [08:31:53]Read from MH i2c: E2 03 00 3B 30 00 90 00 DF [08:31:53]RAPDU: 90 00 [08:31:53]wFMCommunicate OK [08:31:53]SAM_PROTO_ClearQueue done [08:31:53]KKMCreateOFDPacket [08:31:53]OFDProtocolAddRootSTLVToBuf [08:31:53]FM_MakeSignedData [08:31:53]FM_MakeSignedData [08:31:53]SAM_PROTO_SignData [08:31:53]wFMCommunicate request_size=4 [08:31:53]MH_SAM_APDU [08:31:53]CAPDU: 80 0D 01 02 [08:31:53]Write to MH i2c: E2 08 00 3C 30 80 0D 01 02 00 00 00 00 E5 [08:31:53]Write i2c OK [08:31:53]MH_I2C_Read... [08:31:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:31:53]Read from MH i2c: E2 [08:31:53]MH_I2C_Read... [08:31:53]Read from MH i2c: E2 03 00 [08:31:53]MH_I2C_Read... [08:31:53]Read from MH i2c: E2 03 00 3C 30 00 90 00 E0 [08:31:53]RAPDU: 90 00 [08:31:53]wFMCommunicate OK [08:31:53]wFMCommunicate request_size=255 [08:31:53]MH_SAM_APDU [08:31:53]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 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 3D 00 00 00 F4 03 04 00 7B 11 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 CD DC 02 00 35 04 06 00 70 [08:31:53]Write to MH i2c: E2 02 01 3D 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 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 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 3D 00 00 00 F4 03 04 00 7B 11 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 CD DC 02 00 35 04 06 00 70 00 00 D8 [08:31:53]Write i2c OK [08:31:53]MH_I2C_Read... [08:31:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:31:54]Read from MH i2c: E2 [08:31:54]MH_I2C_Read... [08:31:54]Read from MH i2c: E2 03 00 [08:31:54]MH_I2C_Read... [08:31:54]Read from MH i2c: E2 03 00 3D 30 00 90 00 E1 [08:31:54]RAPDU: 90 00 [08:31:54]wFMCommunicate OK [08:31:54]wFMCommunicate request_size=10 [08:31:54]MH_SAM_APDU [08:31:54]CAPDU: 80 0D 02 02 05 F9 F9 0A 48 13 [08:31:54]Write to MH i2c: E2 0D 00 3E 30 80 0D 02 02 05 00 F9 F9 0A 48 13 00 00 49 [08:31:54]Write i2c OK [08:31:54]MH_I2C_Read... [08:31:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:31:54]Read from MH i2c: E2 [08:31:54]MH_I2C_Read... [08:31:54]Read from MH i2c: E2 03 00 [08:31:54]MH_I2C_Read... [08:31:54]Read from MH i2c: E2 03 00 3E 30 00 90 00 E2 [08:31:54]RAPDU: 90 00 [08:31:54]wFMCommunicate OK [08:31:54]wFMCommunicate request_size=4 [08:31:54]MH_SAM_APDU [08:31:54]CAPDU: 80 0D 03 02 [08:31:54]Write to MH i2c: E2 08 00 3F 30 80 0D 03 02 00 00 00 00 EA [08:31:54]Write i2c OK [08:31:54]MH_I2C_Read... [08:31:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:31:54]Read from MH i2c: E2 [08:31:54]MH_I2C_Read... [08:31:54]Read from MH i2c: E2 0B 00 [08:31:54]MH_I2C_Read... [08:31:54]Read from MH i2c: E2 0B 00 3F 30 00 30 43 B6 16 BD A2 57 38 90 00 18 [08:31:54]RAPDU: 30 43 B6 16 BD A2 57 38 90 00 [08:31:54]wFMCommunicate OK [08:31:54]SAM_PROTO_SignData done [08:31:54]FM_MakeSignedData done [08:31:54]CreateOFDProtocolMessage [08:31:54]wFMCommunicate request_size=4 [08:31:54]MH_SAM_APDU [08:31:54]CAPDU: 80 11 00 00 [08:31:54]Write to MH i2c: E2 08 00 40 30 80 11 00 00 00 00 00 00 EA [08:31:54]Write i2c OK [08:31:54]MH_I2C_Read... [08:31:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:31:54]Read from MH i2c: E2 [08:31:54]MH_I2C_Read... [08:31:54]Read from MH i2c: E2 17 00 [08:31:54]MH_I2C_Read... [08:31:54]Read from MH i2c: E2 17 00 40 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 38 [08:31:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [08:31:54]wFMCommunicate OK [08:31:54]CreateOFDProtocolMessage done [08:31:54]OFDSenderStorePacket 187597 [08:31:54]StoreOFDPacket docnum=187597 [08:31:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 2D 91 07 01 60 C5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 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 3D 00 00 00 F4 03 04 00 7B 11 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 CD DC 02 00 35 04 06 00 70 F9 F9 0A 48 13 30 43 B6 16 BD A2 57 38 [08:31:54]CheckFolder [08:31:54]dirname=/storage/ofd_packets [08:31:54]CheckFolder done [08:31:54]ProducePacketName [08:31:54]name=ofd_packets/00187597 [08:31:54]NVStorageSaveData ofd_packets/00187597 [08:31:54]File name is /storage/ofd_packets/00187597 [08:31:54]Write 301 bytes [08:31:54]NVStorageSaveData done [08:31:54]OFDSenderStorePacket done [08:31:54]KKMCreateOFDPacket done [08:31:54]NVStorageSaveData kkm_last_timestamp [08:31:54]File name is /storage/kkm_last_timestamp [08:31:54]Write 4 bytes [08:31:54]NVStorageSaveData done [08:31:54]ExternCall_PrintAddStr [08:31:54]wPrintStart [08:31:54]Write to MH i2c: 01 00 00 41 30 71 [08:31:54]Write i2c OK [08:31:54]MH_I2C_Read... [08:31:54]Read from MH i2c: 01 [08:31:54]MH_I2C_Read... [08:31:54]Read from MH i2c: 01 07 00 [08:31:54]MH_I2C_Read... [08:31:54]Read from MH i2c: 01 07 00 41 30 00 00 00 00 00 FF 0F 86 [08:31:54]RasterBufferAndPrint [08:31:54]line Счет N : (1)209649 [08:31:54]line ИНН: 02508201610067 [08:31:54]line Контрольно-Кассовый Чек [08:31:54]line ПРОДАЖА [08:31:54]line ТРК (МРК, ГНК) : 42 [08:31:54]line Товар: 2710124130 [08:31:54]line Аи-92-К-3 [08:31:54]line 7.480 * 66.90 [08:31:54]line = 500.41 [08:31:54]line НДС 12% НСП 1% [08:31:54]line > о реализуемом товаре [08:31:54]line ИТОГО: 500.41 [08:31:54]line НСП 1% : 4.43 [08:31:54]line НДС 12% : 53.14 [08:31:54]line Наличными: 0.00 [08:31:54]line Безнал.: 500.41 [08:31:54]line Место: АЗС № 86 "Партнер Нефть" [08:31:54]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [08:31:54]line СНО: Общий режим [08:31:54]line Чек 61 21.10.2024 08:31 [08:31:54]line Смена: 460 ФФД: 1.0 [08:31:54]line ЗНМ: 0300000155 [08:31:54]line РНМ: 0000000000100030 [08:31:54]line Версия ККМ: 001 [08:31:54]line Платежная система: Бакай Банк [08:31:54]line ФМ: 0000000000965340 [08:31:54]line ФД: 187597 [08:31:54]line ФПД: 124218927368211 [08:31:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T083155&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187597&fm=124218927368211&tin=02508201610067®Number=0000000000100030&sum=50041 [08:31:54]written 0, free lines is 4095 [08:31:54]OFD Sender: Processing packet 187597 [packets to send 1062, broken 1061] [08:31:54]ProducePacketName [08:31:54]name=ofd_packets/00187597 [08:31:54]OFD Sender: To server: pG, [08:31:54]CommunicateWithHost lk.salyk.kg:30040 [08:31:54]ConnectInit lk.salyk.kg [08:31:54]Connected sock=10 [08:31:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 2D 91 07 01 60 C5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 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 3D 00 00 00 F4 03 04 00 7B 11 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 CD DC 02 00 35 04 06 00 70 F9 F9 0A 48 13 30 43 B6 16 BD A2 57 38 [08:31:54]Write to MH i2c: 01 00 00 6B 30 9B [08:31:54]Write i2c OK [08:31:54]MH_I2C_Read... [08:31:54]Read from MH i2c: 01 [08:31:54]MH_I2C_Read... [08:31:54]Read from MH i2c: 01 07 00 [08:31:54]MH_I2C_Read... [08:31:54]Read from MH i2c: 01 07 00 6B 30 00 00 00 00 00 71 0C 1F [08:31:54]RasterBufferAndPrint [08:31:54]line [08:31:54]line [08:31:54]line [08:31:54]line [08:31:54]line [08:31:54]written 0, free lines is 3189 [08:31:54]MH_Cut [08:31:54]Write to MH i2c: D1 01 00 72 30 01 74 [08:31:54]Write i2c OK [08:31:54]MH_I2C_Read... [08:31:54]Read from MH i2c: D1 [08:31:54]MH_I2C_Read... [08:31:54]Read from MH i2c: D1 01 00 [08:31:54]MH_I2C_Read... [08:31:54]Read from MH i2c: D1 01 00 72 30 00 73 [08:31:54]Write to MH i2c: 01 00 00 73 30 A3 [08:31:54]Write i2c OK [08:31:54]MH_I2C_Read... [08:31:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 28 B5 47 00 CA A0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 CD DC 02 00 F4 03 04 00 6B BB 15 67 B6 04 01 00 00 0E 64 EC EE A0 19 F2 90 [08:31:54]CommunicateWithHost err = 0 [08:31:54]CheckOFDResponse [08:31:54]1017 (14) - 77093643461234 [08:31:54]1041 (16) - 0000000000965340 [08:31:54]1040 (4) - 187597 [08:31:54]1012 (4) - 21.10.2024 02:24 [08:31:54]1206 (1) - 0 [08:31:54]OFD Sender: Remove packet 187597 [08:31:54]ProducePacketName [08:31:54]name=ofd_packets/00187597 [08:31:54]NVStorageDeleteData [08:31:55]OFD Sender: No OFD packet to send [08:31:56]*** Cut start [08:31:56]*** Partial cut [08:31:56]*** CUTSNS_PIN = 1 [08:31:56]*** CUTSNS_PIN = 0 [08:31:56]*** Brake cut motor [08:31:56]Read from MH i2c: 01 [08:31:56]MH_I2C_Read... [08:31:56]*** Stop cut motor [08:31:56]*** Cut end [08:31:56]Read from MH i2c: 01 07 00 [08:31:56]MH_I2C_Read... [08:31:56]Read from MH i2c: 01 07 00 73 30 00 00 00 00 00 FF 0F B8 [08:31:56]process_action close_receipt done [08:31:56]requested_data is exist [08:31:56]produce_requested_data [08:31:56]requested_item fm.sn is exist - process it [08:31:56]wFMCommunicate request_size=4 [08:31:56]MH_SAM_APDU [08:31:56]CAPDU: 80 11 00 00 [08:31:56]Write to MH i2c: E2 08 00 74 30 80 11 00 00 00 00 00 00 1E [08:31:56]Write i2c OK [08:31:56]MH_I2C_Read... [08:31:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:31:56]Read from MH i2c: E2 [08:31:56]MH_I2C_Read... [08:31:56]Read from MH i2c: E2 17 00 [08:31:56]MH_I2C_Read... [08:31:56]Read from MH i2c: E2 17 00 74 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 6C [08:31:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [08:31:56]wFMCommunicate OK [08:31:56]requested_item fd.num is exist - process it [08:31:56]SAM_PROTO_GetFieldsCounters [08:31:56]wFMCommunicate request_size=4 [08:31:56]MH_SAM_APDU [08:31:56]CAPDU: 80 13 00 00 [08:31:56]Write to MH i2c: E2 08 00 75 30 80 13 00 00 00 00 00 00 21 [08:31:56]Write i2c OK [08:31:56]MH_I2C_Read... [08:31:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:31:56]Read from MH i2c: E2 [08:31:56]MH_I2C_Read... [08:31:56]Read from MH i2c: E2 62 00 [08:31:56]MH_I2C_Read... [08:31:56]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 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 CD DC 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 3D 00 00 00 5E 04 04 00 3D 00 00 00 57 04 04 00 3E 00 00 00 19 04 04 00 00 00 00 00 90 00 57 [08:31:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 CD DC 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 3D 00 00 00 5E 04 04 00 3D 00 00 00 57 04 04 00 3E 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:31:56]wFMCommunicate OK [08:31:56]SAM_PROTO_GetFieldsCounters done [08:31:56]requested_item shift.num is exist - process it [08:31:56]requested_item shift.opened is exist - process it [08:31:56]req_shift_opened [08:31:56]FM_GetShiftState [08:31:56]SAM_PROTO_GetShiftState [08:31:56]wFMCommunicate request_size=4 [08:31:56]MH_SAM_APDU [08:31:56]CAPDU: 80 13 01 00 [08:31:56]Write to MH i2c: E2 08 00 76 30 80 13 01 00 00 00 00 00 23 [08:31:56]Write i2c OK [08:31:56]MH_I2C_Read... [08:31:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:31:56]Read from MH i2c: E2 [08:31:56]MH_I2C_Read... [08:31:56]Read from MH i2c: E2 0E 00 [08:31:56]MH_I2C_Read... [08:31:56]Read from MH i2c: E2 0E 00 76 30 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 82 [08:31:56]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [08:31:56]wFMCommunicate OK [08:31:56]SAM_PROTO_GetShiftState done [08:31:56]FM_GetShiftState done [08:31:56]req_shift_opened done [08:31:56]requested_item shift.open_date is exist - process it [08:31:56]req_shift_open_date [08:31:56]req_shift_open_date done [08:31:56]produce_requested_data done [08:31:56]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187597,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [08:31:56]process_action_free close_receipt [08:31:56]json_value_free [08:31:56]json_value_free done [08:31:56]process_json_proto returns [08:31:56]Send response to host [08:31:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187597,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [08:31:56]free response buf [08:31:56]execute_script done [08:31:56]execute_script returns [08:31:56]free content buf [08:31:56]Sock 9.Close socket [08:31:56]Sock 9.Thread stoped [08:31:57]accept exits with 8 [08:31:57]New connection [08:31:57]New thread 3067157860 created [08:31:57]Thread 3067014500 joined [08:31:57]Waiting for new connection... [08:31:57] Sock 8.Parse request [08:31:57]Sock 8.Check first char [08:31:57]Sock 8.First char is OK [08:31:57]request: POST /json_proto HTTP/1.0 [08:31:57]Method: POST [08:31:57]URL: /json_proto [08:31:57]Method is POST - this is cgi request [08:31:57]url: /json_proto [08:31:57]query_string will be loaded in cgi processing [08:31:57]execute_cgi json_proto POST (null) [08:31:57]execute_cgi path=json_proto method=POST [08:31:57]POST find Content-Length [08:31:57]Host: 172.17.42.131:8080 [08:31:57]Content-Length: 678 [08:31:57]Content-Type: application/json [08:31:57] [08:31:57]POST finish read [08:31:57]Found Content-Length = 678 [08:31:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209650", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 11.960, "sum" : 800.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:31:57]execute_script... [08:31:57]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209650", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 11.960, "sum" : 800.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:31:57]POST & json_proto [08:31:57]process_json_proto [08:31:57]json parsed OK: [08:31:57]protocol is kg_v1.0 [08:31:57]action value=close_receipt [08:31:57]process_action close_receipt [08:31:57]cmd_close_receipt [08:31:57]MH_GetDate [08:31:57]Write to MH i2c: F0 00 00 77 30 96 [08:31:57]Write i2c OK [08:31:57]MH_I2C_Read... [08:31:57]Read from MH i2c: F0 [08:31:57]MH_I2C_Read... [08:31:57]Read from MH i2c: F0 09 00 [08:31:57]MH_I2C_Read... [08:31:57]Read from MH i2c: F0 09 00 77 30 00 80 11 16 67 A0 18 CA 66 95 [08:31:57]GetLastDocTimeStamp 1729499515 [08:31:57]current date 1729499520 [08:31:57]FM_GetShiftState [08:31:57]SAM_PROTO_GetShiftState [08:31:57]wFMCommunicate request_size=4 [08:31:57]MH_SAM_APDU [08:31:57]CAPDU: 80 13 01 00 [08:31:57]Write to MH i2c: E2 08 00 78 30 80 13 01 00 00 00 00 00 25 [08:31:57]Write i2c OK [08:31:57]MH_I2C_Read... [08:31:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:31:57]Read from MH i2c: E2 [08:31:57]MH_I2C_Read... [08:31:57]Read from MH i2c: E2 0E 00 [08:31:57]MH_I2C_Read... [08:31:57]Read from MH i2c: E2 0E 00 78 30 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 84 [08:31:57]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [08:31:57]wFMCommunicate OK [08:31:57]SAM_PROTO_GetShiftState done [08:31:57]FM_GetShiftState done [08:31:57]opened in 1729469754 [08:31:57]opened+sec_in_day 1729556154 [08:31:57]quantity*price = 80012 [08:31:57]sum+1 = 80013 [08:31:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.97 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 62 21.10.2024 08:32 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 187598 ФПД: 254235473179238 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T083200&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187598&fm=254235473179238&tin=02508201610067®Number=0000000000100030&sum=80000 [08:31:58]StoreToDocumentArchive [08:31:58]shift 460 fd 187598 [08:31:58]save to /storage/0460/doc_00187598 [08:31:58]save last doc name /storage/0460/doc_00187598 to /storage/kkm_last_doc_name [08:31:58]save OK [08:31:58]Clear old archive folders... [08:31:58]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:31:58]tlvbuf is 01115AB0 [08:31:58]SAM_PROTO_ClearQueue [08:31:58]wFMCommunicate request_size=4 [08:31:58]MH_SAM_APDU [08:31:58]CAPDU: 80 09 00 00 [08:31:58]Write to MH i2c: E2 08 00 85 30 80 09 00 00 00 00 00 00 27 [08:31:58]Write i2c OK [08:31:58]MH_I2C_Read... [08:31:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:31:58]Read from MH i2c: E2 [08:31:58]MH_I2C_Read... [08:31:58]Read from MH i2c: E2 03 00 [08:31:58]MH_I2C_Read... [08:31:58]Read from MH i2c: E2 03 00 85 30 00 90 00 29 [08:31:58]RAPDU: 90 00 [08:31:58]wFMCommunicate OK [08:31:58]SAM_PROTO_ClearQueue done [08:31:58]KKMCreateOFDPacket [08:31:58]OFDProtocolAddRootSTLVToBuf [08:31:58]FM_MakeSignedData [08:31:58]FM_MakeSignedData [08:31:58]SAM_PROTO_SignData [08:31:58]wFMCommunicate request_size=4 [08:31:58]MH_SAM_APDU [08:31:58]CAPDU: 80 0D 01 02 [08:31:58]Write to MH i2c: E2 08 00 86 30 80 0D 01 02 00 00 00 00 2F [08:31:58]Write i2c OK [08:31:58]MH_I2C_Read... [08:31:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:31:58]Read from MH i2c: E2 [08:31:58]MH_I2C_Read... [08:31:58]Read from MH i2c: E2 03 00 [08:31:58]MH_I2C_Read... [08:31:58]Read from MH i2c: E2 03 00 86 30 00 90 00 2A [08:31:58]RAPDU: 90 00 [08:31:58]wFMCommunicate OK [08:31:58]wFMCommunicate request_size=255 [08:31:58]MH_SAM_APDU [08:31: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 33 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 3E 00 00 00 F4 03 04 00 80 11 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 CE DC 02 00 35 04 06 00 E7 [08:31:58]Write to MH i2c: E2 02 01 87 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 33 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 3E 00 00 00 F4 03 04 00 80 11 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 CE DC 02 00 35 04 06 00 E7 00 00 3A [08:31:58]Write i2c OK [08:31:58]MH_I2C_Read... [08:31:59]Read from MH i2c: E2 [08:31:59]MH_I2C_Read... [08:31:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:31:59]Read from MH i2c: E2 03 00 [08:31:59]MH_I2C_Read... [08:31:59]Read from MH i2c: E2 03 00 87 30 00 90 00 2B [08:31:59]RAPDU: 90 00 [08:31:59]wFMCommunicate OK [08:31:59]wFMCommunicate request_size=10 [08:31:59]MH_SAM_APDU [08:31:59]CAPDU: 80 0D 02 02 05 39 CF 11 72 66 [08:31:59]Write to MH i2c: E2 0D 00 88 30 80 0D 02 02 05 00 39 CF 11 72 66 00 00 2D [08:31:59]Write i2c OK [08:31:59]MH_I2C_Read... [08:31:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:31:59]Read from MH i2c: E2 [08:31:59]MH_I2C_Read... [08:31:59]Read from MH i2c: E2 03 00 [08:31:59]MH_I2C_Read... [08:31:59]Read from MH i2c: E2 03 00 88 30 00 90 00 2C [08:31:59]RAPDU: 90 00 [08:31:59]wFMCommunicate OK [08:31:59]wFMCommunicate request_size=4 [08:31:59]MH_SAM_APDU [08:31:59]CAPDU: 80 0D 03 02 [08:31:59]Write to MH i2c: E2 08 00 89 30 80 0D 03 02 00 00 00 00 34 [08:31:59]Write i2c OK [08:31:59]MH_I2C_Read... [08:31:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:31:59]Read from MH i2c: E2 [08:31:59]MH_I2C_Read... [08:31:59]Read from MH i2c: E2 0B 00 [08:31:59]MH_I2C_Read... [08:31:59]Read from MH i2c: E2 0B 00 89 30 00 D1 E8 F4 42 D5 66 6F 95 90 00 63 [08:31:59]RAPDU: D1 E8 F4 42 D5 66 6F 95 90 00 [08:31:59]wFMCommunicate OK [08:31:59]SAM_PROTO_SignData done [08:31:59]FM_MakeSignedData done [08:31:59]CreateOFDProtocolMessage [08:31:59]wFMCommunicate request_size=4 [08:31:59]MH_SAM_APDU [08:31:59]CAPDU: 80 11 00 00 [08:31:59]Write to MH i2c: E2 08 00 8A 30 80 11 00 00 00 00 00 00 34 [08:31:59]Write i2c OK [08:31:59]MH_I2C_Read... [08:31:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:31:59]Read from MH i2c: E2 [08:31:59]MH_I2C_Read... [08:31:59]Read from MH i2c: E2 17 00 [08:31:59]MH_I2C_Read... [08:31:59]Read from MH i2c: E2 17 00 8A 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 82 [08:31:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [08:31:59]wFMCommunicate OK [08:31:59]CreateOFDProtocolMessage done [08:31:59]OFDSenderStorePacket 187598 [08:31:59]StoreOFDPacket docnum=187598 [08:31:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 75 EE 07 01 14 6B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 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 3E 00 00 00 F4 03 04 00 80 11 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 CE DC 02 00 35 04 06 00 E7 39 CF 11 72 66 D1 E8 F4 42 D5 66 6F 95 [08:31:59]CheckFolder [08:31:59]dirname=/storage/ofd_packets [08:31:59]CheckFolder done [08:31:59]ProducePacketName [08:31:59]name=ofd_packets/00187598 [08:31:59]NVStorageSaveData ofd_packets/00187598 [08:31:59]File name is /storage/ofd_packets/00187598 [08:31:59]Write 301 bytes [08:31:59]NVStorageSaveData done [08:31:59]OFDSenderStorePacket done [08:31:59]KKMCreateOFDPacket done [08:31:59]NVStorageSaveData kkm_last_timestamp [08:31:59]File name is /storage/kkm_last_timestamp [08:31:59]Write 4 bytes [08:31:59]NVStorageSaveData done [08:31:59]ExternCall_PrintAddStr [08:31:59]wPrintStart [08:31:59]Write to MH i2c: 01 00 00 8B 30 BB [08:31:59]Write i2c OK [08:31:59]MH_I2C_Read... [08:31:59]Read from MH i2c: 01 [08:31:59]MH_I2C_Read... [08:31:59]Read from MH i2c: 01 07 00 [08:31:59]MH_I2C_Read... [08:31:59]Read from MH i2c: 01 07 00 8B 30 00 00 00 00 00 FF 0F D0 [08:31:59]RasterBufferAndPrint [08:31:59]line Счет N : (1)209650 [08:31:59]line ИНН: 02508201610067 [08:31:59]line Контрольно-Кассовый Чек [08:31:59]line ПРОДАЖА [08:31:59]line ТРК (МРК, ГНК) : 32 [08:31:59]line Товар: 2710124130 [08:31:59]line Аи-92-К-3 [08:31:59]line 11.960 * 66.90 [08:31:59]line = 800.12 [08:31:59]line НДС 12% НСП 1% [08:31:59]line > о реализуемом товаре [08:31:59]line ОКРУГЛЕНИЕ: -0.12 [08:31:59]line ИТОГО: 800.00 [08:31:59]line Внесено: 800.00 [08:31:59]line СДАЧА: 0.00 [08:31:59]line НСП 1% : 7.08 [08:31:59]line НДС 12% : 84.97 [08:31:59]line Наличными: 800.00 [08:31:59]line Безнал.: 0.00 [08:31:59]line Место: АЗС № 86 "Партнер Нефть" [08:31:59]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [08:31:59]line СНО: Общий режим [08:31:59]line Чек 62 21.10.2024 08:32 [08:31:59]line Смена: 460 ФФД: 1.0 [08:31:59]line ЗНМ: 0300000155 [08:31:59]line РНМ: 0000000000100030 [08:31:59]line Версия ККМ: 001 [08:31:59]line ФМ: 0000000000965340 [08:31:59]line ФД: 187598 [08:31:59]line ФПД: 254235473179238 [08:31:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T083200&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187598&fm=254235473179238&tin=02508201610067®Number=0000000000100030&sum=80000 [08:31:59]OFD Sender: Processing packet 187598 [packets to send 1062, broken 1061] [08:31:59]ProducePacketName [08:31:59]name=ofd_packets/00187598 [08:31:59]OFD Sender: To server: pG, [08:31:59]CommunicateWithHost lk.salyk.kg:30040 [08:31:59]ConnectInit lk.salyk.kg [08:31:59]written 0, free lines is 4095 [08:31:59]Connected sock=10 [08:31:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 75 EE 07 01 14 6B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 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 3E 00 00 00 F4 03 04 00 80 11 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 CE DC 02 00 35 04 06 00 E7 39 CF 11 72 66 D1 E8 F4 42 D5 66 6F 95 [08:32:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 93 62 47 00 0B F6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 CE DC 02 00 F4 03 04 00 71 BB 15 67 B6 04 01 00 00 2F CD 9F C1 96 C5 46 FB [08:32:00]CommunicateWithHost err = 0 [08:32:00]CheckOFDResponse [08:32:00]1017 (14) - 77093643461234 [08:32:00]1041 (16) - 0000000000965340 [08:32:00]1040 (4) - 187598 [08:32:00]1012 (4) - 21.10.2024 02:24 [08:32:00]1206 (1) - 0 [08:32:00]OFD Sender: Remove packet 187598 [08:32:00]ProducePacketName [08:32:00]name=ofd_packets/00187598 [08:32:00]NVStorageDeleteData [08:32:00]Write to MH i2c: 01 00 00 B6 30 E6 [08:32:00]Write i2c OK [08:32:00]MH_I2C_Read... [08:32:00]Read from MH i2c: 01 [08:32:00]MH_I2C_Read... [08:32:00]Read from MH i2c: 01 07 00 [08:32:00]MH_I2C_Read... [08:32:00]Read from MH i2c: 01 07 00 B6 30 00 00 00 00 00 82 0C 7B [08:32:00]RasterBufferAndPrint [08:32:00]line [08:32:00]line [08:32:00]line [08:32:00]line [08:32:00]line [08:32:00]written 0, free lines is 3210 [08:32:00]MH_Cut [08:32:00]Write to MH i2c: D1 01 00 BD 30 01 BF [08:32:00]Write i2c OK [08:32:00]MH_I2C_Read... [08:32:00]Read from MH i2c: D1 [08:32:00]MH_I2C_Read... [08:32:00]Read from MH i2c: D1 01 00 [08:32:00]MH_I2C_Read... [08:32:00]Read from MH i2c: D1 01 00 BD 30 00 BE [08:32:00]Write to MH i2c: 01 00 00 BE 30 EE [08:32:00]Write i2c OK [08:32:00]MH_I2C_Read... [08:32:00]OFD Sender: No OFD packet to send [08:32:01]*** Cut start [08:32:01]*** Partial cut [08:32:01]*** CUTSNS_PIN = 1 [08:32:01]*** CUTSNS_PIN = 0 [08:32:01]*** Brake cut motor [08:32:02]Read from MH i2c: 01 [08:32:02]MH_I2C_Read... [08:32:02]*** Stop cut motor [08:32:02]*** Cut end [08:32:02]Read from MH i2c: 01 07 00 [08:32:02]MH_I2C_Read... [08:32:02]Read from MH i2c: 01 07 00 BE 30 00 00 00 00 00 FF 0F 03 [08:32:02]process_action close_receipt done [08:32:02]requested_data is exist [08:32:02]produce_requested_data [08:32:02]requested_item fm.sn is exist - process it [08:32:02]wFMCommunicate request_size=4 [08:32:02]MH_SAM_APDU [08:32:02]CAPDU: 80 11 00 00 [08:32:02]Write to MH i2c: E2 08 00 BF 30 80 11 00 00 00 00 00 00 69 [08:32:02]Write i2c OK [08:32:02]MH_I2C_Read... [08:32:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:32:02]Read from MH i2c: E2 [08:32:02]MH_I2C_Read... [08:32:02]Read from MH i2c: E2 17 00 [08:32:02]MH_I2C_Read... [08:32:02]Read from MH i2c: E2 17 00 BF 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 B7 [08:32:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [08:32:02]wFMCommunicate OK [08:32:02]requested_item fd.num is exist - process it [08:32:02]SAM_PROTO_GetFieldsCounters [08:32:02]wFMCommunicate request_size=4 [08:32:02]MH_SAM_APDU [08:32:02]CAPDU: 80 13 00 00 [08:32:02]Write to MH i2c: E2 08 00 C0 30 80 13 00 00 00 00 00 00 6C [08:32:02]Write i2c OK [08:32:02]MH_I2C_Read... [08:32:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:32:02]Read from MH i2c: E2 [08:32:02]MH_I2C_Read... [08:32:02]Read from MH i2c: E2 62 00 [08:32:02]MH_I2C_Read... [08:32:02]Read from MH i2c: E2 62 00 C0 30 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 CE DC 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 3E 00 00 00 5E 04 04 00 3E 00 00 00 57 04 04 00 3F 00 00 00 19 04 04 00 00 00 00 00 90 00 A6 [08:32:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 CE DC 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 3E 00 00 00 5E 04 04 00 3E 00 00 00 57 04 04 00 3F 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:32:02]wFMCommunicate OK [08:32:02]SAM_PROTO_GetFieldsCounters done [08:32:02]requested_item shift.num is exist - process it [08:32:02]requested_item shift.opened is exist - process it [08:32:02]req_shift_opened [08:32:02]FM_GetShiftState [08:32:02]SAM_PROTO_GetShiftState [08:32:02]wFMCommunicate request_size=4 [08:32:02]MH_SAM_APDU [08:32:02]CAPDU: 80 13 01 00 [08:32:02]Write to MH i2c: E2 08 00 C1 30 80 13 01 00 00 00 00 00 6E [08:32:02]Write i2c OK [08:32:02]MH_I2C_Read... [08:32:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:32:02]Read from MH i2c: E2 [08:32:02]MH_I2C_Read... [08:32:02]Read from MH i2c: E2 0E 00 [08:32:02]MH_I2C_Read... [08:32:02]Read from MH i2c: E2 0E 00 C1 30 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 CD [08:32:02]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [08:32:02]wFMCommunicate OK [08:32:02]SAM_PROTO_GetShiftState done [08:32:02]FM_GetShiftState done [08:32:02]req_shift_opened done [08:32:02]requested_item shift.open_date is exist - process it [08:32:02]req_shift_open_date [08:32:02]req_shift_open_date done [08:32:02]produce_requested_data done [08:32:02]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187598,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [08:32:02]process_action_free close_receipt [08:32:02]json_value_free [08:32:02]json_value_free done [08:32:02]process_json_proto returns [08:32:02]Send response to host [08:32:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187598,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [08:32:02]free response buf [08:32:02]execute_script done [08:32:02]execute_script returns [08:32:02]free content buf [08:32:02]Sock 8.Close socket [08:32:02]Sock 8.Thread stoped [08:32:04]int [08:32:04]Write to MH i2c: 01 00 00 C2 30 F2 [08:32:04]*** FLAG_PRN_PAP1 set [08:32:04]Write i2c OK [08:32:04]MH_I2C_Read... [08:32:04]Read from MH i2c: 01 [08:32:04]MH_I2C_Read... [08:32:04]Read from MH i2c: 01 07 00 [08:32:04]MH_I2C_Read... [08:32:04]Read from MH i2c: 01 07 00 C2 30 00 01 00 00 00 FF 0F 08 [08:32:04]state=0 [08:32:04]No paper [08:32:04]int [08:32:04]Write to MH i2c: 01 00 00 C3 30 F3 [08:32:04]*** FLAG_PRN_PAP2 set [08:32:04]Write i2c OK [08:32:04]MH_I2C_Read... [08:32:04]Read from MH i2c: 01 [08:32:04]MH_I2C_Read... [08:32:04]Read from MH i2c: 01 07 00 [08:32:04]MH_I2C_Read... [08:32:04]Read from MH i2c: 01 07 00 C3 30 00 03 00 00 00 FF 0F 0B [08:32:04]state=0 [08:32:04]No paper [08:32:04]Cover opened [08:32:05]int [08:32:05]Write to MH i2c: 01 00 00 C4 30 F4 [08:32:05]*** FLAG_PRN_PAP2 reset [08:32:05]Write i2c OK [08:32:05]MH_I2C_Read... [08:32:05]Read from MH i2c: 01 [08:32:05]MH_I2C_Read... [08:32:05]Read from MH i2c: 01 07 00 [08:32:05]MH_I2C_Read... [08:32:05]Read from MH i2c: 01 07 00 C4 30 00 01 00 00 00 FF 0F 0A [08:32:05]state=3 [08:32:05]No paper [08:32:05]Cover closed [08:32:05]int [08:32:05]Write to MH i2c: 01 00 00 C5 30 F5 [08:32:05]*** FLAG_PRN_PAP2 set [08:32:05]Write i2c OK [08:32:05]MH_I2C_Read... [08:32:05]Read from MH i2c: 01 [08:32:05]MH_I2C_Read... [08:32:05]Read from MH i2c: 01 07 00 [08:32:05]MH_I2C_Read... [08:32:05]Read from MH i2c: 01 07 00 C5 30 00 03 00 00 00 FF 0F 0D [08:32:05]state=0 [08:32:05]No paper [08:32:05]Cover opened [08:32:05]OFD Sender: No OFD packet to send [08:32:10]Write to MH i2c: 01 00 00 C6 30 F6 [08:32:10]Write i2c OK [08:32:10]MH_I2C_Read... [08:32:10]Read from MH i2c: 01 [08:32:10]MH_I2C_Read... [08:32:10]Read from MH i2c: 01 07 00 [08:32:10]MH_I2C_Read... [08:32:10]Read from MH i2c: 01 07 00 C6 30 00 03 00 00 00 FF 0F 0E [08:32:10]state=3 [08:32:10]No paper [08:32:10]Cover opened [08:32:10]OFD Sender: No OFD packet to send [08:32:15]Write to MH i2c: 01 00 00 C7 30 F7 [08:32:15]Write i2c OK [08:32:15]MH_I2C_Read... [08:32:15]Read from MH i2c: 01 [08:32:15]MH_I2C_Read... [08:32:15]Read from MH i2c: 01 07 00 [08:32:15]MH_I2C_Read... [08:32:15]Read from MH i2c: 01 07 00 C7 30 00 03 00 00 00 FF 0F 0F [08:32:15]state=3 [08:32:15]No paper [08:32:15]Cover opened [08:32:15]OFD Sender: No OFD packet to send [08:32:20]Write to MH i2c: 01 00 00 C8 30 F8 [08:32:20]Write i2c OK [08:32:20]MH_I2C_Read... [08:32:20]Read from MH i2c: 01 [08:32:20]MH_I2C_Read... [08:32:20]Read from MH i2c: 01 07 00 [08:32:20]MH_I2C_Read... [08:32:20]Read from MH i2c: 01 07 00 C8 30 00 03 00 00 00 FF 0F 10 [08:32:20]state=3 [08:32:20]No paper [08:32:20]Cover opened [08:32:20]OFD Sender: No OFD packet to send [08:32:23]int [08:32:23]Write to MH i2c: 01 00 00 C9 30 F9 [08:32:23]*** FLAG_PRN_PAP2 reset [08:32:23]Write i2c OK [08:32:23]MH_I2C_Read... [08:32:23]Read from MH i2c: 01 [08:32:23]MH_I2C_Read... [08:32:23]Read from MH i2c: 01 07 00 [08:32:23]MH_I2C_Read... [08:32:23]Read from MH i2c: 01 07 00 C9 30 00 01 00 00 00 FF 0F 0F [08:32:23]state=3 [08:32:23]No paper [08:32:23]Cover closed [08:32:23]int line is 0 - check status [08:32:23]Write to MH i2c: 01 00 00 CA 30 FA [08:32:23]*** FLAG_PRN_PAP1 reset [08:32:23]Write i2c OK [08:32:23]MH_I2C_Read... [08:32:23]Read from MH i2c: 01 [08:32:23]MH_I2C_Read... [08:32:23]Read from MH i2c: 01 07 00 [08:32:23]MH_I2C_Read... [08:32:23]Read from MH i2c: 01 07 00 CA 30 00 00 00 00 00 FF 0F 0F [08:32:23]state=0 [08:32:23]int [08:32:23]Write to MH i2c: 01 00 00 CB 30 FB [08:32:23]Write i2c OK [08:32:23]MH_I2C_Read... [08:32:23]Read from MH i2c: 01 [08:32:23]MH_I2C_Read... [08:32:23]Read from MH i2c: 01 07 00 [08:32:23]MH_I2C_Read... [08:32:23]Read from MH i2c: 01 07 00 CB 30 00 00 00 00 00 FF 0F 10 [08:32:23]state=0 [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:40]OFD Sender: No OFD packet to send [08:32:45]OFD Sender: No OFD packet to send [08:32:51]OFD Sender: No OFD packet to send [08:32:56]OFD Sender: No OFD packet to send [08:33:01]OFD Sender: No OFD packet to send [08:33:06]OFD Sender: No OFD packet to send [08:33:11]OFD Sender: No OFD packet to send [08:33:16]OFD Sender: No OFD packet to send [08:33:21]OFD Sender: No OFD packet to send [08:33:26]OFD Sender: No OFD packet to send [08:33:31]OFD Sender: No OFD packet to send [08:33:36]OFD Sender: No OFD packet to send [08:33:41]OFD Sender: No OFD packet to send [08:33:46]OFD Sender: No OFD packet to send [08:33:51]OFD Sender: No OFD packet to send [08:33:56]OFD Sender: No OFD packet to send [08:34:01]OFD Sender: No OFD packet to send [08:34:06]OFD Sender: No OFD packet to send [08:34:11]OFD Sender: No OFD packet to send [08:34:16]OFD Sender: No OFD packet to send [08:34:21]OFD Sender: No OFD packet to send [08:34:26]OFD Sender: No OFD packet to send [08:34:31]OFD Sender: No OFD packet to send [08:34:36]OFD Sender: No OFD packet to send [08:34:41]OFD Sender: No OFD packet to send [08:34:46]OFD Sender: No OFD packet to send [08:34:51]OFD Sender: No OFD packet to send [08:34:56]OFD Sender: No OFD packet to send [08:35:01]OFD Sender: No OFD packet to send [08:35:06]OFD Sender: No OFD packet to send [08:35:11]OFD Sender: No OFD packet to send [08:35:16]OFD Sender: No OFD packet to send [08:35:21]OFD Sender: No OFD packet to send [08:35:26]OFD Sender: No OFD packet to send [08:35:31]OFD Sender: No OFD packet to send [08:35:36]OFD Sender: No OFD packet to send [08:35:41]OFD Sender: No OFD packet to send [08:35:46]OFD Sender: No OFD packet to send [08:35:51]OFD Sender: No OFD packet to send [08:35:56]OFD Sender: No OFD packet to send [08:36:01]OFD Sender: No OFD packet to send [08:36:06]OFD Sender: No OFD packet to send [08:36:11]OFD Sender: No OFD packet to send [08:36:16]OFD Sender: No OFD packet to send [08:36:21]OFD Sender: No OFD packet to send [08:36:22]accept exits with 9 [08:36:22]New connection [08:36:22]New thread 3067014500 created [08:36:22]Thread 3067157860 joined [08:36:22]Waiting for new connection... [08:36:22] Sock 9.Parse request [08:36:22]Sock 9.Check first char [08:36:22]Sock 9.First char is OK [08:36:22]request: POST /json_proto HTTP/1.0 [08:36:22]Method: POST [08:36:22]URL: /json_proto [08:36:22]Method is POST - this is cgi request [08:36:22]url: /json_proto [08:36:22]query_string will be loaded in cgi processing [08:36:22]execute_cgi json_proto POST (null) [08:36:22]execute_cgi path=json_proto method=POST [08:36:22]POST find Content-Length [08:36:22]Host: 172.17.42.131:8080 [08:36:22]Content-Length: 682 [08:36:22]Content-Type: application/json [08:36:22] [08:36:22]POST finish read [08:36:22]Found Content-Length = 682 [08:36:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209651", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 20.220, "sum" : 1500.32, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:36:22]execute_script... [08:36: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)209651", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 20.220, "sum" : 1500.32, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:36:22]POST & json_proto [08:36:22]process_json_proto [08:36:22]json parsed OK: [08:36:22]protocol is kg_v1.0 [08:36:22]action value=close_receipt [08:36:22]process_action close_receipt [08:36:22]cmd_close_receipt [08:36:22]MH_GetDate [08:36:22]Write to MH i2c: F0 00 00 CC 30 EB [08:36:22]Write i2c OK [08:36:22]MH_I2C_Read... [08:36:22]Read from MH i2c: F0 [08:36:22]MH_I2C_Read... [08:36:22]Read from MH i2c: F0 09 00 [08:36:22]MH_I2C_Read... [08:36:22]Read from MH i2c: F0 09 00 CC 30 00 89 12 16 67 A0 18 CA 66 F4 [08:36:22]GetLastDocTimeStamp 1729499520 [08:36:22]current date 1729499785 [08:36:22]FM_GetShiftState [08:36:22]SAM_PROTO_GetShiftState [08:36:22]wFMCommunicate request_size=4 [08:36:22]MH_SAM_APDU [08:36:22]CAPDU: 80 13 01 00 [08:36:22]Write to MH i2c: E2 08 00 CD 30 80 13 01 00 00 00 00 00 7A [08:36:22]Write i2c OK [08:36:22]MH_I2C_Read... [08:36:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:36:22]Read from MH i2c: E2 [08:36:22]MH_I2C_Read... [08:36:22]Read from MH i2c: E2 0E 00 [08:36:22]MH_I2C_Read... [08:36:22]Read from MH i2c: E2 0E 00 CD 30 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 D9 [08:36:22]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [08:36:22]wFMCommunicate OK [08:36:22]SAM_PROTO_GetShiftState done [08:36:22]FM_GetShiftState done [08:36:22]opened in 1729469754 [08:36:22]opened+sec_in_day 1729556154 [08:36:22]quantity*price = 150032 [08:36:22]sum+1 = 150033 [08:36:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.32 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.33 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 63 21.10.2024 08:36 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 187599 ФПД: 240276981914675 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T083625&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187599&fm=240276981914675&tin=02508201610067®Number=0000000000100030&sum=150000 [08:36:23]StoreToDocumentArchive [08:36:23]shift 460 fd 187599 [08:36:23]save to /storage/0460/doc_00187599 [08:36:23]save last doc name /storage/0460/doc_00187599 to /storage/kkm_last_doc_name [08:36:23]save OK [08:36:23]Clear old archive folders... [08:36:23]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:36:23]tlvbuf is 01090330 [08:36:23]SAM_PROTO_ClearQueue [08:36:23]wFMCommunicate request_size=4 [08:36:23]MH_SAM_APDU [08:36:23]CAPDU: 80 09 00 00 [08:36:23]Write to MH i2c: E2 08 00 DA 30 80 09 00 00 00 00 00 00 7C [08:36:23]Write i2c OK [08:36:23]MH_I2C_Read... [08:36:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:36:23]Read from MH i2c: E2 [08:36:23]MH_I2C_Read... [08:36:23]Read from MH i2c: E2 03 00 [08:36:23]MH_I2C_Read... [08:36:23]Read from MH i2c: E2 03 00 DA 30 00 90 00 7E [08:36:23]RAPDU: 90 00 [08:36:23]wFMCommunicate OK [08:36:23]SAM_PROTO_ClearQueue done [08:36:23]KKMCreateOFDPacket [08:36:23]OFDProtocolAddRootSTLVToBuf [08:36:23]FM_MakeSignedData [08:36:23]FM_MakeSignedData [08:36:23]SAM_PROTO_SignData [08:36:23]wFMCommunicate request_size=4 [08:36:23]MH_SAM_APDU [08:36:23]CAPDU: 80 0D 01 02 [08:36:23]Write to MH i2c: E2 08 00 DB 30 80 0D 01 02 00 00 00 00 84 [08:36:23]Write i2c OK [08:36:23]MH_I2C_Read... [08:36:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:36:23]Read from MH i2c: E2 [08:36:23]MH_I2C_Read... [08:36:23]Read from MH i2c: E2 03 00 [08:36:23]MH_I2C_Read... [08:36:23]Read from MH i2c: E2 03 00 DB 30 00 90 00 7F [08:36:23]RAPDU: 90 00 [08:36:23]wFMCommunicate OK [08:36:23]wFMCommunicate request_size=255 [08:36:23]MH_SAM_APDU [08:36:23]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 FC 4E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 10 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 89 12 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 CF DC 02 00 35 04 06 00 DA [08:36:23]Write to MH i2c: E2 02 01 DC 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 FC 4E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 10 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 89 12 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 CF DC 02 00 35 04 06 00 DA 00 00 05 [08:36:23]Write i2c OK [08:36:23]MH_I2C_Read... [08:36:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:36:23]Read from MH i2c: E2 [08:36:23]MH_I2C_Read... [08:36:23]Read from MH i2c: E2 03 00 [08:36:23]MH_I2C_Read... [08:36:23]Read from MH i2c: E2 03 00 DC 30 00 90 00 80 [08:36:23]RAPDU: 90 00 [08:36:23]wFMCommunicate OK [08:36:23]wFMCommunicate request_size=10 [08:36:23]MH_SAM_APDU [08:36:23]CAPDU: 80 0D 02 02 05 87 D8 27 9C 33 [08:36:23]Write to MH i2c: E2 0D 00 DD 30 80 0D 02 02 05 00 87 D8 27 9C 33 00 00 E6 [08:36:23]Write i2c OK [08:36:23]MH_I2C_Read... [08:36:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:36:23]Read from MH i2c: E2 [08:36:23]MH_I2C_Read... [08:36:23]Read from MH i2c: E2 03 00 [08:36:23]MH_I2C_Read... [08:36:23]Read from MH i2c: E2 03 00 DD 30 00 90 00 81 [08:36:23]RAPDU: 90 00 [08:36:23]wFMCommunicate OK [08:36:23]wFMCommunicate request_size=4 [08:36:23]MH_SAM_APDU [08:36:23]CAPDU: 80 0D 03 02 [08:36:23]Write to MH i2c: E2 08 00 DE 30 80 0D 03 02 00 00 00 00 89 [08:36:23]Write i2c OK [08:36:23]MH_I2C_Read... [08:36:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:36:23]Read from MH i2c: E2 [08:36:23]MH_I2C_Read... [08:36:23]Read from MH i2c: E2 0B 00 [08:36:23]MH_I2C_Read... [08:36:23]Read from MH i2c: E2 0B 00 DE 30 00 29 4A 82 29 9B 08 B4 85 90 00 84 [08:36:23]RAPDU: 29 4A 82 29 9B 08 B4 85 90 00 [08:36:23]wFMCommunicate OK [08:36:23]SAM_PROTO_SignData done [08:36:23]FM_MakeSignedData done [08:36:23]CreateOFDProtocolMessage [08:36:23]wFMCommunicate request_size=4 [08:36:23]MH_SAM_APDU [08:36:23]CAPDU: 80 11 00 00 [08:36:23]Write to MH i2c: E2 08 00 DF 30 80 11 00 00 00 00 00 00 89 [08:36:23]Write i2c OK [08:36:23]MH_I2C_Read... [08:36:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:36:23]Read from MH i2c: E2 [08:36:23]MH_I2C_Read... [08:36:23]Read from MH i2c: E2 17 00 [08:36:23]MH_I2C_Read... [08:36:23]Read from MH i2c: E2 17 00 DF 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 D7 [08:36:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [08:36:23]wFMCommunicate OK [08:36:23]CreateOFDProtocolMessage done [08:36:23]OFDSenderStorePacket 187599 [08:36:23]StoreOFDPacket docnum=187599 [08:36:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 C3 57 07 01 F7 6F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 FC 4E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 10 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 89 12 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 CF DC 02 00 35 04 06 00 DA 87 D8 27 9C 33 29 4A 82 29 9B 08 B4 85 [08:36:23]CheckFolder [08:36:23]dirname=/storage/ofd_packets [08:36:23]CheckFolder done [08:36:23]ProducePacketName [08:36:23]name=ofd_packets/00187599 [08:36:23]NVStorageSaveData ofd_packets/00187599 [08:36:23]File name is /storage/ofd_packets/00187599 [08:36:23]Write 301 bytes [08:36:23]NVStorageSaveData done [08:36:23]OFDSenderStorePacket done [08:36:23]KKMCreateOFDPacket done [08:36:23]NVStorageSaveData kkm_last_timestamp [08:36:23]File name is /storage/kkm_last_timestamp [08:36:23]Write 4 bytes [08:36:23]NVStorageSaveData done [08:36:23]ExternCall_PrintAddStr [08:36:23]wPrintStart [08:36:23]Write to MH i2c: 01 00 00 E0 30 10 [08:36:23]Write i2c OK [08:36:23]MH_I2C_Read... [08:36:23]Read from MH i2c: 01 [08:36:23]MH_I2C_Read... [08:36:23]Read from MH i2c: 01 07 00 [08:36:23]MH_I2C_Read... [08:36:23]Read from MH i2c: 01 07 00 E0 30 00 00 00 00 00 FF 0F 25 [08:36:23]RasterBufferAndPrint [08:36:23]line Счет N : (1)209651 [08:36:23]line ИНН: 02508201610067 [08:36:23]line Контрольно-Кассовый Чек [08:36:23]line ПРОДАЖА [08:36:23]line ТРК (МРК, ГНК) : 33 [08:36:23]line Товар: 2710124500 [08:36:23]line Аи-95-К-3 [08:36:23]line 20.220 * 74.20 [08:36:23]line = 1500.32 [08:36:23]line НДС 12% НСП 1% [08:36:23]line > о реализуемом товаре [08:36:23]line ОКРУГЛЕНИЕ: -0.32 [08:36:23]line ИТОГО: 1500.00 [08:36:23]line Внесено: 1500.00 [08:36:23]line СДАЧА: 0.00 [08:36:23]line НСП 1% : 13.28 [08:36:23]line НДС 12% : 159.33 [08:36:23]line Наличными: 1500.00 [08:36:23]line Безнал.: 0.00 [08:36:23]line Место: АЗС № 86 "Партнер Нефть" [08:36:23]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [08:36:23]line СНО: Общий режим [08:36:23]line Чек 63 21.10.2024 08:36 [08:36:23]line Смена: 460 ФФД: 1.0 [08:36:23]line ЗНМ: 0300000155 [08:36:23]line РНМ: 0000000000100030 [08:36:23]line Версия ККМ: 001 [08:36:23]line ФМ: 0000000000965340 [08:36:23]line ФД: 187599 [08:36:23]line ФПД: 240276981914675 [08:36:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T083625&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187599&fm=240276981914675&tin=02508201610067®Number=0000000000100030&sum=150000 [08:36:23]written 0, free lines is 4095 [08:36:24]OFD Sender: Processing packet 187599 [packets to send 1062, broken 1061] [08:36:24]ProducePacketName [08:36:24]name=ofd_packets/00187599 [08:36:24]OFD Sender: To server: pG, [08:36:24]CommunicateWithHost lk.salyk.kg:30040 [08:36:24]ConnectInit lk.salyk.kg [08:36:24]Connected sock=10 [08:36:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 C3 57 07 01 F7 6F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 FC 4E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 10 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 89 12 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 CF DC 02 00 35 04 06 00 DA 87 D8 27 9C 33 29 4A 82 29 9B 08 B4 85 [08:36:24]Write to MH i2c: 01 00 00 0B 31 3C [08:36:24]Write i2c OK [08:36:24]MH_I2C_Read... [08:36:24]Read from MH i2c: 01 [08:36:24]MH_I2C_Read... [08:36:24]Read from MH i2c: 01 07 00 [08:36:24]MH_I2C_Read... [08:36:24]Read from MH i2c: 01 07 00 0B 31 00 00 00 00 00 5D 0C AC [08:36:24]RasterBufferAndPrint [08:36:24]line [08:36:24]line [08:36:24]line [08:36:24]line [08:36:24]line [08:36:24]written 0, free lines is 3169 [08:36:24]MH_Cut [08:36:24]Write to MH i2c: D1 01 00 12 31 01 15 [08:36:24]Write i2c OK [08:36:24]MH_I2C_Read... [08:36:24]Read from MH i2c: D1 [08:36:24]MH_I2C_Read... [08:36:24]Read from MH i2c: D1 01 00 [08:36:24]MH_I2C_Read... [08:36:24]Read from MH i2c: D1 01 00 12 31 00 14 [08:36:24]Write to MH i2c: 01 00 00 13 31 44 [08:36:24]Write i2c OK [08:36:24]MH_I2C_Read... [08:36:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 ED 80 47 00 2D 1F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 CF DC 02 00 F4 03 04 00 79 BC 15 67 B6 04 01 00 00 97 20 45 E3 79 52 75 49 [08:36:24]CommunicateWithHost err = 0 [08:36:24]CheckOFDResponse [08:36:24]1017 (14) - 77093643461234 [08:36:24]1041 (16) - 0000000000965340 [08:36:24]1040 (4) - 187599 [08:36:24]1012 (4) - 21.10.2024 02:29 [08:36:24]1206 (1) - 0 [08:36:24]OFD Sender: Remove packet 187599 [08:36:24]ProducePacketName [08:36:24]name=ofd_packets/00187599 [08:36:24]NVStorageDeleteData [08:36:25]OFD Sender: No OFD packet to send [08:36:25]*** Cut start [08:36:25]*** Partial cut [08:36:25]*** CUTSNS_PIN = 1 [08:36:25]*** CUTSNS_PIN = 0 [08:36:25]*** Brake cut motor [08:36:26]Read from MH i2c: 01 [08:36:26]MH_I2C_Read... [08:36:26]*** Stop cut motor [08:36:26]*** Cut end [08:36:26]Read from MH i2c: 01 07 00 [08:36:26]MH_I2C_Read... [08:36:26]Read from MH i2c: 01 07 00 13 31 00 00 00 00 00 FF 0F 59 [08:36:26]process_action close_receipt done [08:36:26]requested_data is exist [08:36:26]produce_requested_data [08:36:26]requested_item fm.sn is exist - process it [08:36:26]wFMCommunicate request_size=4 [08:36:26]MH_SAM_APDU [08:36:26]CAPDU: 80 11 00 00 [08:36:26]Write to MH i2c: E2 08 00 14 31 80 11 00 00 00 00 00 00 BF [08:36:26]Write i2c OK [08:36:26]MH_I2C_Read... [08:36:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:36:26]Read from MH i2c: E2 [08:36:26]MH_I2C_Read... [08:36:26]Read from MH i2c: E2 17 00 [08:36:26]MH_I2C_Read... [08:36:26]Read from MH i2c: E2 17 00 14 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 0D [08:36:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [08:36:26]wFMCommunicate OK [08:36:26]requested_item fd.num is exist - process it [08:36:26]SAM_PROTO_GetFieldsCounters [08:36:26]wFMCommunicate request_size=4 [08:36:26]MH_SAM_APDU [08:36:26]CAPDU: 80 13 00 00 [08:36:26]Write to MH i2c: E2 08 00 15 31 80 13 00 00 00 00 00 00 C2 [08:36:26]Write i2c OK [08:36:26]MH_I2C_Read... [08:36:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:36:26]Read from MH i2c: E2 [08:36:26]MH_I2C_Read... [08:36:26]Read from MH i2c: E2 62 00 [08:36:26]MH_I2C_Read... [08:36:26]Read from MH i2c: E2 62 00 15 31 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 CF DC 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 3F 00 00 00 5E 04 04 00 3F 00 00 00 57 04 04 00 40 00 00 00 19 04 04 00 00 00 00 00 90 00 00 [08:36:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 CF DC 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 3F 00 00 00 5E 04 04 00 3F 00 00 00 57 04 04 00 40 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:36:26]wFMCommunicate OK [08:36:26]SAM_PROTO_GetFieldsCounters done [08:36:26]requested_item shift.num is exist - process it [08:36:26]requested_item shift.opened is exist - process it [08:36:26]req_shift_opened [08:36:26]FM_GetShiftState [08:36:26]SAM_PROTO_GetShiftState [08:36:26]wFMCommunicate request_size=4 [08:36:26]MH_SAM_APDU [08:36:26]CAPDU: 80 13 01 00 [08:36:26]Write to MH i2c: E2 08 00 16 31 80 13 01 00 00 00 00 00 C4 [08:36:26]Write i2c OK [08:36:26]MH_I2C_Read... [08:36:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:36:26]Read from MH i2c: E2 [08:36:26]MH_I2C_Read... [08:36:26]Read from MH i2c: E2 0E 00 [08:36:26]MH_I2C_Read... [08:36:26]Read from MH i2c: E2 0E 00 16 31 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 23 [08:36:26]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [08:36:26]wFMCommunicate OK [08:36:26]SAM_PROTO_GetShiftState done [08:36:26]FM_GetShiftState done [08:36:26]req_shift_opened done [08:36:26]requested_item shift.open_date is exist - process it [08:36:26]req_shift_open_date [08:36:26]req_shift_open_date done [08:36:26]produce_requested_data done [08:36:26]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187599,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [08:36:26]process_action_free close_receipt [08:36:26]json_value_free [08:36:26]json_value_free done [08:36:26]process_json_proto returns [08:36:26]Send response to host [08:36:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187599,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [08:36:26]free response buf [08:36:26]execute_script done [08:36:26]execute_script returns [08:36:26]free content buf [08:36:26]Sock 9.Close socket [08:36:26]Sock 9.Thread stoped [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:56]OFD Sender: No OFD packet to send [08:40:01]OFD Sender: No OFD packet to send [08:40:06]OFD Sender: No OFD packet to send [08:40:11]OFD Sender: No OFD packet to send [08:40:16]OFD Sender: No OFD packet to send [08:40:21]OFD Sender: No OFD packet to send [08:40:26]OFD Sender: No OFD packet to send [08:40:31]OFD Sender: No OFD packet to send [08:40:36]OFD Sender: No OFD packet to send [08:40:41]OFD Sender: No OFD packet to send [08:40:46]OFD Sender: No OFD packet to send [08:40:51]OFD Sender: No OFD packet to send [08:40:56]OFD Sender: No OFD packet to send [08:41:01]OFD Sender: No OFD packet to send [08:41:06]OFD Sender: No OFD packet to send [08:41:11]OFD Sender: No OFD packet to send [08:41:16]OFD Sender: No OFD packet to send [08:41:21]OFD Sender: No OFD packet to send [08:41:26]OFD Sender: No OFD packet to send [08:41:31]OFD Sender: No OFD packet to send [08:41:36]OFD Sender: No OFD packet to send [08:41:41]OFD Sender: No OFD packet to send [08:41:46]OFD Sender: No OFD packet to send [08:41:51]OFD Sender: No OFD packet to send [08:41:56]OFD Sender: No OFD packet to send [08:42:01]OFD Sender: No OFD packet to send [08:42:06]OFD Sender: No OFD packet to send [08:42:11]OFD Sender: No OFD packet to send [08:42:16]OFD Sender: No OFD packet to send [08:42:21]OFD Sender: No OFD packet to send [08:42:26]OFD Sender: No OFD packet to send [08:42:26]accept exits with 8 [08:42:26]New connection [08:42:26]New thread 3067157860 created [08:42:26]Thread 3067014500 joined [08:42:26]Waiting for new connection... [08:42:26] Sock 8.Parse request [08:42:26]Sock 8.Check first char [08:42:26]Sock 8.First char is OK [08:42:26]request: POST /json_proto HTTP/1.0 [08:42:26]Method: POST [08:42:26]URL: /json_proto [08:42:26]Method is POST - this is cgi request [08:42:26]url: /json_proto [08:42:26]query_string will be loaded in cgi processing [08:42:26]execute_cgi json_proto POST (null) [08:42:26]execute_cgi path=json_proto method=POST [08:42:26]POST find Content-Length [08:42:26]Host: 172.17.42.131:8080 [08:42:26]Content-Length: 682 [08:42:26]Content-Type: application/json [08:42:26] [08:42:26]POST finish read [08:42:26]Found Content-Length = 682 [08:42:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209652", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:42:26]execute_script... [08:42:26]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209652", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:42:26]POST & json_proto [08:42:26]process_json_proto [08:42:26]json parsed OK: [08:42:26]protocol is kg_v1.0 [08:42:26]action value=close_receipt [08:42:26]process_action close_receipt [08:42:26]cmd_close_receipt [08:42:26]MH_GetDate [08:42:26]Write to MH i2c: F0 00 00 17 31 37 [08:42:26]Write i2c OK [08:42:26]MH_I2C_Read... [08:42:26]Read from MH i2c: F0 [08:42:26]MH_I2C_Read... [08:42:26]Read from MH i2c: F0 09 00 [08:42:26]MH_I2C_Read... [08:42:26]Read from MH i2c: F0 09 00 17 31 00 F6 13 16 67 A0 18 CA 66 AE [08:42:26]GetLastDocTimeStamp 1729499785 [08:42:26]current date 1729500150 [08:42:26]FM_GetShiftState [08:42:26]SAM_PROTO_GetShiftState [08:42:26]wFMCommunicate request_size=4 [08:42:26]MH_SAM_APDU [08:42:26]CAPDU: 80 13 01 00 [08:42:26]Write to MH i2c: E2 08 00 18 31 80 13 01 00 00 00 00 00 C6 [08:42:26]Write i2c OK [08:42:26]MH_I2C_Read... [08:42:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:42:26]Read from MH i2c: E2 [08:42:26]MH_I2C_Read... [08:42:26]Read from MH i2c: E2 0E 00 [08:42:26]MH_I2C_Read... [08:42:26]Read from MH i2c: E2 0E 00 18 31 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 25 [08:42:26]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [08:42:26]wFMCommunicate OK [08:42:26]SAM_PROTO_GetShiftState done [08:42:26]FM_GetShiftState done [08:42:26]opened in 1729469754 [08:42:26]opened+sec_in_day 1729556154 [08:42:26]quantity*price = 100021 [08:42:26]sum+1 = 100023 [08:42:26]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 64 21.10.2024 08:42 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 187600 ФПД: 238926246615663 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T084230&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187600&fm=238926246615663&tin=02508201610067®Number=0000000000100030&sum=100000 [08:42:28]StoreToDocumentArchive [08:42:28]shift 460 fd 187600 [08:42:28]save to /storage/0460/doc_00187600 [08:42:28]save last doc name /storage/0460/doc_00187600 to /storage/kkm_last_doc_name [08:42:28]save OK [08:42:28]Clear old archive folders... [08:42:28]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:42:28]tlvbuf is 01084440 [08:42:28]SAM_PROTO_ClearQueue [08:42:28]wFMCommunicate request_size=4 [08:42:28]MH_SAM_APDU [08:42:28]CAPDU: 80 09 00 00 [08:42:28]Write to MH i2c: E2 08 00 25 31 80 09 00 00 00 00 00 00 C8 [08:42:28]Write i2c OK [08:42:28]MH_I2C_Read... [08:42:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:42:28]Read from MH i2c: E2 [08:42:28]MH_I2C_Read... [08:42:28]Read from MH i2c: E2 03 00 [08:42:28]MH_I2C_Read... [08:42:28]Read from MH i2c: E2 03 00 25 31 00 90 00 CA [08:42:28]RAPDU: 90 00 [08:42:28]wFMCommunicate OK [08:42:28]SAM_PROTO_ClearQueue done [08:42:28]KKMCreateOFDPacket [08:42:28]OFDProtocolAddRootSTLVToBuf [08:42:28]FM_MakeSignedData [08:42:28]FM_MakeSignedData [08:42:28]SAM_PROTO_SignData [08:42:28]wFMCommunicate request_size=4 [08:42:28]MH_SAM_APDU [08:42:28]CAPDU: 80 0D 01 02 [08:42:28]Write to MH i2c: E2 08 00 26 31 80 0D 01 02 00 00 00 00 D0 [08:42:28]Write i2c OK [08:42:28]MH_I2C_Read... [08:42:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:42:28]Read from MH i2c: E2 [08:42:28]MH_I2C_Read... [08:42:28]Read from MH i2c: E2 03 00 [08:42:28]MH_I2C_Read... [08:42:28]Read from MH i2c: E2 03 00 26 31 00 90 00 CB [08:42:28]RAPDU: 90 00 [08:42:28]wFMCommunicate OK [08:42:28]wFMCommunicate request_size=255 [08:42:28]MH_SAM_APDU [08:42:28]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 F6 13 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 D0 DC 02 00 35 04 06 00 D9 [08:42:28]Write to MH i2c: E2 02 01 27 31 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 F6 13 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 D0 DC 02 00 35 04 06 00 D9 00 00 7A [08:42:28]Write i2c OK [08:42:28]MH_I2C_Read... [08:42:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:42:28]Read from MH i2c: E2 [08:42:28]MH_I2C_Read... [08:42:28]Read from MH i2c: E2 03 00 [08:42:28]MH_I2C_Read... [08:42:28]Read from MH i2c: E2 03 00 27 31 00 90 00 CC [08:42:28]RAPDU: 90 00 [08:42:28]wFMCommunicate OK [08:42:28]wFMCommunicate request_size=10 [08:42:28]MH_SAM_APDU [08:42:28]CAPDU: 80 0D 02 02 05 4D 5A 0E 9A 6F [08:42:28]Write to MH i2c: E2 0D 00 28 31 80 0D 02 02 05 00 4D 5A 0E 9A 6F 00 00 9B [08:42:28]Write i2c OK [08:42:28]MH_I2C_Read... [08:42:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:42:28]Read from MH i2c: E2 [08:42:28]MH_I2C_Read... [08:42:28]Read from MH i2c: E2 03 00 [08:42:28]MH_I2C_Read... [08:42:28]Read from MH i2c: E2 03 00 28 31 00 90 00 CD [08:42:28]RAPDU: 90 00 [08:42:28]wFMCommunicate OK [08:42:28]wFMCommunicate request_size=4 [08:42:28]MH_SAM_APDU [08:42:28]CAPDU: 80 0D 03 02 [08:42:28]Write to MH i2c: E2 08 00 29 31 80 0D 03 02 00 00 00 00 D5 [08:42:28]Write i2c OK [08:42:28]MH_I2C_Read... [08:42:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:42:28]Read from MH i2c: E2 [08:42:28]MH_I2C_Read... [08:42:28]Read from MH i2c: E2 0B 00 [08:42:28]MH_I2C_Read... [08:42:28]Read from MH i2c: E2 0B 00 29 31 00 AA 7A 04 C1 70 7A B3 0D 90 00 69 [08:42:28]RAPDU: AA 7A 04 C1 70 7A B3 0D 90 00 [08:42:28]wFMCommunicate OK [08:42:28]SAM_PROTO_SignData done [08:42:28]FM_MakeSignedData done [08:42:28]CreateOFDProtocolMessage [08:42:28]wFMCommunicate request_size=4 [08:42:28]MH_SAM_APDU [08:42:28]CAPDU: 80 11 00 00 [08:42:28]Write to MH i2c: E2 08 00 2A 31 80 11 00 00 00 00 00 00 D5 [08:42:28]Write i2c OK [08:42:28]MH_I2C_Read... [08:42:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:42:28]Read from MH i2c: E2 [08:42:28]MH_I2C_Read... [08:42:28]Read from MH i2c: E2 17 00 [08:42:28]MH_I2C_Read... [08:42:28]Read from MH i2c: E2 17 00 2A 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 23 [08:42:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [08:42:28]wFMCommunicate OK [08:42:28]CreateOFDProtocolMessage done [08:42:28]OFDSenderStorePacket 187600 [08:42:28]StoreOFDPacket docnum=187600 [08:42:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 B3 AA 07 01 7F 66 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 F6 13 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 D0 DC 02 00 35 04 06 00 D9 4D 5A 0E 9A 6F AA 7A 04 C1 70 7A B3 0D [08:42:28]CheckFolder [08:42:28]dirname=/storage/ofd_packets [08:42:28]CheckFolder done [08:42:28]ProducePacketName [08:42:28]name=ofd_packets/00187600 [08:42:28]NVStorageSaveData ofd_packets/00187600 [08:42:28]File name is /storage/ofd_packets/00187600 [08:42:28]Write 301 bytes [08:42:28]NVStorageSaveData done [08:42:28]OFDSenderStorePacket done [08:42:28]KKMCreateOFDPacket done [08:42:28]NVStorageSaveData kkm_last_timestamp [08:42:28]File name is /storage/kkm_last_timestamp [08:42:28]Write 4 bytes [08:42:28]NVStorageSaveData done [08:42:28]ExternCall_PrintAddStr [08:42:28]wPrintStart [08:42:28]Write to MH i2c: 01 00 00 2B 31 5C [08:42:28]Write i2c OK [08:42:28]MH_I2C_Read... [08:42:28]Read from MH i2c: 01 [08:42:28]MH_I2C_Read... [08:42:28]Read from MH i2c: 01 07 00 [08:42:28]MH_I2C_Read... [08:42:28]Read from MH i2c: 01 07 00 2B 31 00 00 00 00 00 FF 0F 71 [08:42:28]RasterBufferAndPrint [08:42:28]line Счет N : (1)209652 [08:42:28]line ИНН: 02508201610067 [08:42:28]line Контрольно-Кассовый Чек [08:42:28]line ПРОДАЖА [08:42:28]line ТРК (МРК, ГНК) : 13 [08:42:28]line Товар: 2710124500 [08:42:28]line Аи-95-К-3 [08:42:28]line 13.480 * 74.20 [08:42:28]line = 1000.22 [08:42:28]line НДС 12% НСП 1% [08:42:28]line > о реализуемом товаре [08:42:28]line ОКРУГЛЕНИЕ: -0.22 [08:42:28]line ИТОГО: 1000.00 [08:42:28]line Внесено: 1000.00 [08:42:28]line СДАЧА: 0.00 [08:42:28]line НСП 1% : 8.85 [08:42:28]line НДС 12% : 106.22 [08:42:28]line Наличными: 1000.00 [08:42:28]line Безнал.: 0.00 [08:42:28]line Место: АЗС № 86 "Партнер Нефть" [08:42:28]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [08:42:28]line СНО: Общий режим [08:42:28]line Чек 64 21.10.2024 08:42 [08:42:28]line Смена: 460 ФФД: 1.0 [08:42:28]line ЗНМ: 0300000155 [08:42:28]line РНМ: 0000000000100030 [08:42:28]line Версия ККМ: 001 [08:42:28]line ФМ: 0000000000965340 [08:42:28]line ФД: 187600 [08:42:28]line ФПД: 238926246615663 [08:42:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T084230&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187600&fm=238926246615663&tin=02508201610067®Number=0000000000100030&sum=100000 [08:42:28]written 0, free lines is 4095 [08:42:28]OFD Sender: Processing packet 187600 [packets to send 1062, broken 1061] [08:42:28]ProducePacketName [08:42:28]name=ofd_packets/00187600 [08:42:28]OFD Sender: To server: pG, [08:42:28]CommunicateWithHost lk.salyk.kg:30040 [08:42:28]ConnectInit lk.salyk.kg [08:42:28]Connected sock=10 [08:42:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 B3 AA 07 01 7F 66 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 F6 13 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 D0 DC 02 00 35 04 06 00 D9 4D 5A 0E 9A 6F AA 7A 04 C1 70 7A B3 0D [08:42:29]Write to MH i2c: 01 00 00 56 31 87 [08:42:29]Write i2c OK [08:42:29]MH_I2C_Read... [08:42:29]Read from MH i2c: 01 [08:42:29]MH_I2C_Read... [08:42:29]Read from MH i2c: 01 07 00 [08:42:29]MH_I2C_Read... [08:42:29]Read from MH i2c: 01 07 00 56 31 00 00 00 00 00 5E 0C F8 [08:42:29]RasterBufferAndPrint [08:42:29]line [08:42:29]line [08:42:29]line [08:42:29]line [08:42:29]line [08:42:29]written 0, free lines is 3169 [08:42:29]MH_Cut [08:42:29]Write to MH i2c: D1 01 00 5D 31 01 60 [08:42:29]Write i2c OK [08:42:29]MH_I2C_Read... [08:42:29]Read from MH i2c: D1 [08:42:29]MH_I2C_Read... [08:42:29]Read from MH i2c: D1 01 00 [08:42:29]MH_I2C_Read... [08:42:29]Read from MH i2c: D1 01 00 5D 31 00 5F [08:42:29]Write to MH i2c: 01 00 00 5E 31 8F [08:42:29]Write i2c OK [08:42:29]MH_I2C_Read... [08:42:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 7E D3 47 00 34 2B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 D0 DC 02 00 F4 03 04 00 E6 BD 15 67 B6 04 01 00 00 04 F9 AB 7D 10 DE BC C9 [08:42:29]CommunicateWithHost err = 0 [08:42:29]CheckOFDResponse [08:42:29]1017 (14) - 77093643461234 [08:42:29]1041 (16) - 0000000000965340 [08:42:29]1040 (4) - 187600 [08:42:29]1012 (4) - 21.10.2024 02:35 [08:42:29]1206 (1) - 0 [08:42:29]OFD Sender: Remove packet 187600 [08:42:29]ProducePacketName [08:42:29]name=ofd_packets/00187600 [08:42:29]NVStorageDeleteData [08:42:29]OFD Sender: No OFD packet to send [08:42:30]*** Cut start [08:42:30]*** Partial cut [08:42:30]*** CUTSNS_PIN = 1 [08:42:30]*** CUTSNS_PIN = 0 [08:42:30]*** Brake cut motor [08:42:31]Read from MH i2c: 01 [08:42:31]MH_I2C_Read... [08:42:31]*** Stop cut motor [08:42:31]*** Cut end [08:42:31]Read from MH i2c: 01 07 00 [08:42:31]MH_I2C_Read... [08:42:31]Read from MH i2c: 01 07 00 5E 31 00 00 00 00 00 FF 0F A4 [08:42:31]process_action close_receipt done [08:42:31]requested_data is exist [08:42:31]produce_requested_data [08:42:31]requested_item fm.sn is exist - process it [08:42:31]wFMCommunicate request_size=4 [08:42:31]MH_SAM_APDU [08:42:31]CAPDU: 80 11 00 00 [08:42:31]Write to MH i2c: E2 08 00 5F 31 80 11 00 00 00 00 00 00 0A [08:42:31]Write i2c OK [08:42:31]MH_I2C_Read... [08:42:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:42:31]Read from MH i2c: E2 [08:42:31]MH_I2C_Read... [08:42:31]Read from MH i2c: E2 17 00 [08:42:31]MH_I2C_Read... [08:42:31]Read from MH i2c: E2 17 00 5F 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 58 [08:42:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [08:42:31]wFMCommunicate OK [08:42:31]requested_item fd.num is exist - process it [08:42:31]SAM_PROTO_GetFieldsCounters [08:42:31]wFMCommunicate request_size=4 [08:42:31]MH_SAM_APDU [08:42:31]CAPDU: 80 13 00 00 [08:42:31]Write to MH i2c: E2 08 00 60 31 80 13 00 00 00 00 00 00 0D [08:42:31]Write i2c OK [08:42:31]MH_I2C_Read... [08:42:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:42:31]Read from MH i2c: E2 [08:42:31]MH_I2C_Read... [08:42:31]Read from MH i2c: E2 62 00 [08:42:31]MH_I2C_Read... [08:42:31]Read from MH i2c: E2 62 00 60 31 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 D0 DC 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 40 00 00 00 5E 04 04 00 40 00 00 00 57 04 04 00 41 00 00 00 19 04 04 00 00 00 00 00 90 00 4F [08:42:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 D0 DC 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 40 00 00 00 5E 04 04 00 40 00 00 00 57 04 04 00 41 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:42:31]wFMCommunicate OK [08:42:31]SAM_PROTO_GetFieldsCounters done [08:42:31]requested_item shift.num is exist - process it [08:42:31]requested_item shift.opened is exist - process it [08:42:31]req_shift_opened [08:42:31]FM_GetShiftState [08:42:31]SAM_PROTO_GetShiftState [08:42:31]wFMCommunicate request_size=4 [08:42:31]MH_SAM_APDU [08:42:31]CAPDU: 80 13 01 00 [08:42:31]Write to MH i2c: E2 08 00 61 31 80 13 01 00 00 00 00 00 0F [08:42:31]Write i2c OK [08:42:31]MH_I2C_Read... [08:42:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:42:31]Read from MH i2c: E2 [08:42:31]MH_I2C_Read... [08:42:31]Read from MH i2c: E2 0E 00 [08:42:31]MH_I2C_Read... [08:42:31]Read from MH i2c: E2 0E 00 61 31 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 6E [08:42:31]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [08:42:31]wFMCommunicate OK [08:42:31]SAM_PROTO_GetShiftState done [08:42:31]FM_GetShiftState done [08:42:31]req_shift_opened done [08:42:31]requested_item shift.open_date is exist - process it [08:42:31]req_shift_open_date [08:42:31]req_shift_open_date done [08:42:31]produce_requested_data done [08:42:31]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187600,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [08:42:31]process_action_free close_receipt [08:42:31]json_value_free [08:42:31]json_value_free done [08:42:31]process_json_proto returns [08:42:31]Send response to host [08:42:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187600,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [08:42:31]free response buf [08:42:31]execute_script done [08:42:31]execute_script returns [08:42:31]free content buf [08:42:31]Sock 8.Close socket [08:42:31]Sock 8.Thread stoped [08:42:34]OFD Sender: No OFD packet to send [08:42:39]OFD Sender: No OFD packet to send [08:42:44]OFD Sender: No OFD packet to send [08:42:49]OFD Sender: No OFD packet to send [08:42:54]OFD Sender: No OFD packet to send [08:42:59]OFD Sender: No OFD packet to send [08:43:04]OFD Sender: No OFD packet to send [08:43:09]OFD Sender: No OFD packet to send [08:43:14]OFD Sender: No OFD packet to send [08:43:19]OFD Sender: No OFD packet to send [08:43:24]OFD Sender: No OFD packet to send [08:43:30]OFD Sender: No OFD packet to send [08:43:35]OFD Sender: No OFD packet to send [08:43:40]OFD Sender: No OFD packet to send [08:43:45]OFD Sender: No OFD packet to send [08:43:50]OFD Sender: No OFD packet to send [08:43:55]OFD Sender: No OFD packet to send [08:44:00]OFD Sender: No OFD packet to send [08:44:05]OFD Sender: No OFD packet to send [08:44:10]OFD Sender: No OFD packet to send [08:44:15]OFD Sender: No OFD packet to send [08:44:20]OFD Sender: No OFD packet to send [08:44:25]OFD Sender: No OFD packet to send [08:44:30]OFD Sender: No OFD packet to send [08:44:35]OFD Sender: No OFD packet to send [08:44:40]OFD Sender: No OFD packet to send [08:44:45]OFD Sender: No OFD packet to send [08:44:50]OFD Sender: No OFD packet to send [08:44:52]accept exits with 9 [08:44:52]New connection [08:44:52]New thread 3067014500 created [08:44:52]Thread 3067157860 joined [08:44:52]Waiting for new connection... [08:44:52] Sock 9.Parse request [08:44:52]Sock 9.Check first char [08:44:52]Sock 9.First char is OK [08:44:52]request: POST /json_proto HTTP/1.0 [08:44:52]Method: POST [08:44:52]URL: /json_proto [08:44:52]Method is POST - this is cgi request [08:44:52]url: /json_proto [08:44:52]query_string will be loaded in cgi processing [08:44:52]execute_cgi json_proto POST (null) [08:44:52]execute_cgi path=json_proto method=POST [08:44:52]POST find Content-Length [08:44:52]Host: 172.17.42.131:8080 [08:44:52]Content-Length: 677 [08:44:52]Content-Type: application/json [08:44:52] [08:44:52]POST finish read [08:44:52]Found Content-Length = 677 [08:44:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209653", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:44:52]execute_script... [08:44:52]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209653", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:44:52]POST & json_proto [08:44:52]process_json_proto [08:44:52]json parsed OK: [08:44:52]protocol is kg_v1.0 [08:44:52]action value=close_receipt [08:44:52]process_action close_receipt [08:44:52]cmd_close_receipt [08:44:52]MH_GetDate [08:44:52]Write to MH i2c: F0 00 00 62 31 82 [08:44:52]Write i2c OK [08:44:52]MH_I2C_Read... [08:44:52]Read from MH i2c: F0 [08:44:52]MH_I2C_Read... [08:44:52]Read from MH i2c: F0 09 00 [08:44:52]MH_I2C_Read... [08:44:52]Read from MH i2c: F0 09 00 62 31 00 88 14 16 67 A0 18 CA 66 8C [08:44:52]GetLastDocTimeStamp 1729500150 [08:44:52]current date 1729500296 [08:44:52]FM_GetShiftState [08:44:52]SAM_PROTO_GetShiftState [08:44:52]wFMCommunicate request_size=4 [08:44:52]MH_SAM_APDU [08:44:52]CAPDU: 80 13 01 00 [08:44:52]Write to MH i2c: E2 08 00 63 31 80 13 01 00 00 00 00 00 11 [08:44:52]Write i2c OK [08:44:52]MH_I2C_Read... [08:44:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:44:52]Read from MH i2c: E2 [08:44:52]MH_I2C_Read... [08:44:52]Read from MH i2c: E2 0E 00 [08:44:52]MH_I2C_Read... [08:44:52]Read from MH i2c: E2 0E 00 63 31 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 70 [08:44:52]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [08:44:52]wFMCommunicate OK [08:44:52]SAM_PROTO_GetShiftState done [08:44:52]FM_GetShiftState done [08:44:52]opened in 1729469754 [08:44:52]opened+sec_in_day 1729556154 [08:44:52]quantity*price = 50041 [08:44:52]sum+1 = 50042 [08:44: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 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 65 21.10.2024 08:44 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 187601 ФПД: 151253788643230 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T084456&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187601&fm=151253788643230&tin=02508201610067®Number=0000000000100030&sum=50000 [08:44:53]StoreToDocumentArchive [08:44:53]shift 460 fd 187601 [08:44:53]save to /storage/0460/doc_00187601 [08:44:53]save last doc name /storage/0460/doc_00187601 to /storage/kkm_last_doc_name [08:44:54]save OK [08:44:54]Clear old archive folders... [08:44:54]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:44:54]tlvbuf is 010F7710 [08:44:54]SAM_PROTO_ClearQueue [08:44:54]wFMCommunicate request_size=4 [08:44:54]MH_SAM_APDU [08:44:54]CAPDU: 80 09 00 00 [08:44:54]Write to MH i2c: E2 08 00 70 31 80 09 00 00 00 00 00 00 13 [08:44:54]Write i2c OK [08:44:54]MH_I2C_Read... [08:44:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:44:54]Read from MH i2c: E2 [08:44:54]MH_I2C_Read... [08:44:54]Read from MH i2c: E2 03 00 [08:44:54]MH_I2C_Read... [08:44:54]Read from MH i2c: E2 03 00 70 31 00 90 00 15 [08:44:54]RAPDU: 90 00 [08:44:54]wFMCommunicate OK [08:44:54]SAM_PROTO_ClearQueue done [08:44:54]KKMCreateOFDPacket [08:44:54]OFDProtocolAddRootSTLVToBuf [08:44:54]FM_MakeSignedData [08:44:54]FM_MakeSignedData [08:44:54]SAM_PROTO_SignData [08:44:54]wFMCommunicate request_size=4 [08:44:54]MH_SAM_APDU [08:44:54]CAPDU: 80 0D 01 02 [08:44:54]Write to MH i2c: E2 08 00 71 31 80 0D 01 02 00 00 00 00 1B [08:44:54]Write i2c OK [08:44:54]MH_I2C_Read... [08:44:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:44:54]Read from MH i2c: E2 [08:44:54]MH_I2C_Read... [08:44:54]Read from MH i2c: E2 03 00 [08:44:54]MH_I2C_Read... [08:44:54]Read from MH i2c: E2 03 00 71 31 00 90 00 16 [08:44:54]RAPDU: 90 00 [08:44:54]wFMCommunicate OK [08:44:54]wFMCommunicate request_size=255 [08:44:54]MH_SAM_APDU [08:44: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 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 88 14 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 D1 DC 02 00 35 04 06 00 89 [08:44:54]Write to MH i2c: E2 02 01 72 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 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 88 14 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 D1 DC 02 00 35 04 06 00 89 00 00 ED [08:44:54]Write i2c OK [08:44:54]MH_I2C_Read... [08:44:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:44:54]Read from MH i2c: E2 [08:44:54]MH_I2C_Read... [08:44:54]Read from MH i2c: E2 03 00 [08:44:54]MH_I2C_Read... [08:44:54]Read from MH i2c: E2 03 00 72 31 00 90 00 17 [08:44:54]RAPDU: 90 00 [08:44:54]wFMCommunicate OK [08:44:54]wFMCommunicate request_size=10 [08:44:54]MH_SAM_APDU [08:44:54]CAPDU: 80 0D 02 02 05 90 84 57 CF 9E [08:44:54]Write to MH i2c: E2 0D 00 73 31 80 0D 02 02 05 00 90 84 57 CF 9E 00 00 00 [08:44:54]Write i2c OK [08:44:54]MH_I2C_Read... [08:44:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:44:54]Read from MH i2c: E2 [08:44:54]MH_I2C_Read... [08:44:54]Read from MH i2c: E2 03 00 [08:44:54]MH_I2C_Read... [08:44:54]Read from MH i2c: E2 03 00 73 31 00 90 00 18 [08:44:54]RAPDU: 90 00 [08:44:54]wFMCommunicate OK [08:44:54]wFMCommunicate request_size=4 [08:44:54]MH_SAM_APDU [08:44:54]CAPDU: 80 0D 03 02 [08:44:54]Write to MH i2c: E2 08 00 74 31 80 0D 03 02 00 00 00 00 20 [08:44:54]Write i2c OK [08:44:54]MH_I2C_Read... [08:44:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:44:54]Read from MH i2c: E2 [08:44:54]MH_I2C_Read... [08:44:54]Read from MH i2c: E2 0B 00 [08:44:54]MH_I2C_Read... [08:44:54]Read from MH i2c: E2 0B 00 74 31 00 87 88 F8 C0 F7 24 CD 6C 90 00 3C [08:44:54]RAPDU: 87 88 F8 C0 F7 24 CD 6C 90 00 [08:44:54]wFMCommunicate OK [08:44:54]SAM_PROTO_SignData done [08:44:54]FM_MakeSignedData done [08:44:54]CreateOFDProtocolMessage [08:44:54]wFMCommunicate request_size=4 [08:44:54]MH_SAM_APDU [08:44:54]CAPDU: 80 11 00 00 [08:44:54]Write to MH i2c: E2 08 00 75 31 80 11 00 00 00 00 00 00 20 [08:44:54]Write i2c OK [08:44:54]MH_I2C_Read... [08:44:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:44:54]Read from MH i2c: E2 [08:44:54]MH_I2C_Read... [08:44:54]Read from MH i2c: E2 17 00 [08:44:54]MH_I2C_Read... [08:44:54]Read from MH i2c: E2 17 00 75 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 6E [08:44:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [08:44:54]wFMCommunicate OK [08:44:54]CreateOFDProtocolMessage done [08:44:54]OFDSenderStorePacket 187601 [08:44:54]StoreOFDPacket docnum=187601 [08:44:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 A1 0C 07 01 4A 4C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 88 14 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 D1 DC 02 00 35 04 06 00 89 90 84 57 CF 9E 87 88 F8 C0 F7 24 CD 6C [08:44:54]CheckFolder [08:44:54]dirname=/storage/ofd_packets [08:44:54]CheckFolder done [08:44:54]ProducePacketName [08:44:54]name=ofd_packets/00187601 [08:44:54]NVStorageSaveData ofd_packets/00187601 [08:44:54]File name is /storage/ofd_packets/00187601 [08:44:54]Write 301 bytes [08:44:54]NVStorageSaveData done [08:44:54]OFDSenderStorePacket done [08:44:54]KKMCreateOFDPacket done [08:44:54]NVStorageSaveData kkm_last_timestamp [08:44:54]File name is /storage/kkm_last_timestamp [08:44:54]Write 4 bytes [08:44:54]NVStorageSaveData done [08:44:54]ExternCall_PrintAddStr [08:44:54]wPrintStart [08:44:54]Write to MH i2c: 01 00 00 76 31 A7 [08:44:54]Write i2c OK [08:44:54]MH_I2C_Read... [08:44:54]Read from MH i2c: 01 [08:44:54]MH_I2C_Read... [08:44:54]Read from MH i2c: 01 07 00 [08:44:54]MH_I2C_Read... [08:44:54]Read from MH i2c: 01 07 00 76 31 00 00 00 00 00 FF 0F BC [08:44:54]RasterBufferAndPrint [08:44:54]line Счет N : (1)209653 [08:44:54]line ИНН: 02508201610067 [08:44:54]line Контрольно-Кассовый Чек [08:44:54]line ПРОДАЖА [08:44:54]line ТРК (МРК, ГНК) : 22 [08:44:54]line Товар: 2710124130 [08:44:54]line Аи-92-К-3 [08:44:54]line 7.480 * 66.90 [08:44:54]line = 500.41 [08:44:54]line НДС 12% НСП 1% [08:44:54]line > о реализуемом товаре [08:44:54]line ОКРУГЛЕНИЕ: -0.41 [08:44:54]line ИТОГО: 500.00 [08:44:54]line Внесено: 500.00 [08:44:54]line СДАЧА: 0.00 [08:44:54]line НСП 1% : 4.43 [08:44:54]line НДС 12% : 53.14 [08:44:54]line Наличными: 500.00 [08:44:54]line Безнал.: 0.00 [08:44:54]line Место: АЗС № 86 "Партнер Нефть" [08:44:54]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [08:44:54]line СНО: Общий режим [08:44:54]line Чек 65 21.10.2024 08:44 [08:44:54]line Смена: 460 ФФД: 1.0 [08:44:54]line ЗНМ: 0300000155 [08:44:54]line РНМ: 0000000000100030 [08:44:54]line Версия ККМ: 001 [08:44:54]line ФМ: 0000000000965340 [08:44:54]line ФД: 187601 [08:44:54]line ФПД: 151253788643230 [08:44:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T084456&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187601&fm=151253788643230&tin=02508201610067®Number=0000000000100030&sum=50000 [08:44:54]written 0, free lines is 4095 [08:44:54]OFD Sender: Processing packet 187601 [packets to send 1062, broken 1061] [08:44:54]ProducePacketName [08:44:54]name=ofd_packets/00187601 [08:44:54]OFD Sender: To server: pG, [08:44:54]CommunicateWithHost lk.salyk.kg:30040 [08:44:54]ConnectInit lk.salyk.kg [08:44:54]Connected sock=10 [08:44:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 A1 0C 07 01 4A 4C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 88 14 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 D1 DC 02 00 35 04 06 00 89 90 84 57 CF 9E 87 88 F8 C0 F7 24 CD 6C [08:44:55]Write to MH i2c: 01 00 00 A1 31 D2 [08:44:55]Write i2c OK [08:44:55]MH_I2C_Read... [08:44:55]Read from MH i2c: 01 [08:44:55]MH_I2C_Read... [08:44:55]Read from MH i2c: 01 07 00 [08:44:55]MH_I2C_Read... [08:44:55]Read from MH i2c: 01 07 00 A1 31 00 00 00 00 00 5D 0C 42 [08:44:55]RasterBufferAndPrint [08:44:55]line [08:44:55]line [08:44:55]line [08:44:55]line [08:44:55]line [08:44:55]written 0, free lines is 3168 [08:44:55]MH_Cut [08:44:55]Write to MH i2c: D1 01 00 A8 31 01 AB [08:44:55]Write i2c OK [08:44:55]MH_I2C_Read... [08:44:55]Read from MH i2c: D1 [08:44:55]MH_I2C_Read... [08:44:55]Read from MH i2c: D1 01 00 [08:44:55]MH_I2C_Read... [08:44:55]Read from MH i2c: D1 01 00 A8 31 00 AA [08:44:55]Write to MH i2c: 01 00 00 A9 31 DA [08:44:55]Write i2c OK [08:44:55]MH_I2C_Read... [08:44:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 C6 2C 47 00 0B A6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 D1 DC 02 00 F4 03 04 00 78 BE 15 67 B6 04 01 00 00 72 12 98 2B 9C 6A EE 0E [08:44:55]CommunicateWithHost err = 0 [08:44:55]CheckOFDResponse [08:44:55]1017 (14) - 77093643461234 [08:44:55]1041 (16) - 0000000000965340 [08:44:55]1040 (4) - 187601 [08:44:55]1012 (4) - 21.10.2024 02:37 [08:44:55]1206 (1) - 0 [08:44:55]OFD Sender: Remove packet 187601 [08:44:55]ProducePacketName [08:44:55]name=ofd_packets/00187601 [08:44:55]NVStorageDeleteData [08:44:55]OFD Sender: No OFD packet to send [08:44:56]*** Cut start [08:44:56]*** Partial cut [08:44:56]*** CUTSNS_PIN = 1 [08:44:56]*** CUTSNS_PIN = 0 [08:44:56]*** Brake cut motor [08:44:56]Read from MH i2c: 01 [08:44:56]MH_I2C_Read... [08:44:56]*** Stop cut motor [08:44:56]*** Cut end [08:44:56]Read from MH i2c: 01 07 00 [08:44:56]MH_I2C_Read... [08:44:56]Read from MH i2c: 01 07 00 A9 31 00 00 00 00 00 FF 0F EF [08:44:56]process_action close_receipt done [08:44:56]requested_data is exist [08:44:56]produce_requested_data [08:44:56]requested_item fm.sn is exist - process it [08:44:56]wFMCommunicate request_size=4 [08:44:56]MH_SAM_APDU [08:44:56]CAPDU: 80 11 00 00 [08:44:56]Write to MH i2c: E2 08 00 AA 31 80 11 00 00 00 00 00 00 55 [08:44:56]Write i2c OK [08:44:56]MH_I2C_Read... [08:44:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:44:56]Read from MH i2c: E2 [08:44:56]MH_I2C_Read... [08:44:56]Read from MH i2c: E2 17 00 [08:44:56]MH_I2C_Read... [08:44:56]Read from MH i2c: E2 17 00 AA 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 A3 [08:44:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [08:44:56]wFMCommunicate OK [08:44:56]requested_item fd.num is exist - process it [08:44:56]SAM_PROTO_GetFieldsCounters [08:44:56]wFMCommunicate request_size=4 [08:44:56]MH_SAM_APDU [08:44:56]CAPDU: 80 13 00 00 [08:44:56]Write to MH i2c: E2 08 00 AB 31 80 13 00 00 00 00 00 00 58 [08:44:56]Write i2c OK [08:44:56]MH_I2C_Read... [08:44:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:44:57]Read from MH i2c: E2 [08:44:57]MH_I2C_Read... [08:44:57]Read from MH i2c: E2 62 00 [08:44:57]MH_I2C_Read... [08:44:57]Read from MH i2c: E2 62 00 AB 31 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 D1 DC 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 41 00 00 00 5E 04 04 00 41 00 00 00 57 04 04 00 42 00 00 00 19 04 04 00 00 00 00 00 90 00 9E [08:44:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 D1 DC 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 41 00 00 00 5E 04 04 00 41 00 00 00 57 04 04 00 42 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:44:57]wFMCommunicate OK [08:44:57]SAM_PROTO_GetFieldsCounters done [08:44:57]requested_item shift.num is exist - process it [08:44:57]requested_item shift.opened is exist - process it [08:44:57]req_shift_opened [08:44:57]FM_GetShiftState [08:44:57]SAM_PROTO_GetShiftState [08:44:57]wFMCommunicate request_size=4 [08:44:57]MH_SAM_APDU [08:44:57]CAPDU: 80 13 01 00 [08:44:57]Write to MH i2c: E2 08 00 AC 31 80 13 01 00 00 00 00 00 5A [08:44:57]Write i2c OK [08:44:57]MH_I2C_Read... [08:44:57]Read from MH i2c: E2 [08:44:57]MH_I2C_Read... [08:44:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:44:57]Read from MH i2c: E2 0E 00 [08:44:57]MH_I2C_Read... [08:44:57]Read from MH i2c: E2 0E 00 AC 31 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 B9 [08:44:57]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [08:44:57]wFMCommunicate OK [08:44:57]SAM_PROTO_GetShiftState done [08:44:57]FM_GetShiftState done [08:44:57]req_shift_opened done [08:44:57]requested_item shift.open_date is exist - process it [08:44:57]req_shift_open_date [08:44:57]req_shift_open_date done [08:44:57]produce_requested_data done [08:44:57]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187601,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [08:44:57]process_action_free close_receipt [08:44:57]json_value_free [08:44:57]json_value_free done [08:44:57]process_json_proto returns [08:44:57]Send response to host [08:44:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187601,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [08:44:57]free response buf [08:44:57]execute_script done [08:44:57]execute_script returns [08:44:57]free content buf [08:44:57]Sock 9.Close socket [08:44:57]Sock 9.Thread stoped [08:45:00]OFD Sender: No OFD packet to send [08:45:05]OFD Sender: No OFD packet to send [08:45:10]OFD Sender: No OFD packet to send [08:45:15]OFD Sender: No OFD packet to send [08:45:20]OFD Sender: No OFD packet to send [08:45:25]OFD Sender: No OFD packet to send [08:45:30]OFD Sender: No OFD packet to send [08:45:35]OFD Sender: No OFD packet to send [08:45:40]OFD Sender: No OFD packet to send [08:45:45]OFD Sender: No OFD packet to send [08:45:50]OFD Sender: No OFD packet to send [08:45:55]OFD Sender: No OFD packet to send [08:46:00]OFD Sender: No OFD packet to send [08:46:02]accept exits with 8 [08:46:02]New connection [08:46:02]New thread 3067157860 created [08:46:02]Thread 3067014500 joined [08:46:02]Waiting for new connection... [08:46:02] Sock 8.Parse request [08:46:02]Sock 8.Check first char [08:46:02]Sock 8.First char is OK [08:46:02]request: POST /json_proto HTTP/1.0 [08:46:02]Method: POST [08:46:02]URL: /json_proto [08:46:02]Method is POST - this is cgi request [08:46:02]url: /json_proto [08:46:02]query_string will be loaded in cgi processing [08:46:02]execute_cgi json_proto POST (null) [08:46:02]execute_cgi path=json_proto method=POST [08:46:02]POST find Content-Length [08:46:02]Host: 172.17.42.131:8080 [08:46:02]Content-Length: 797 [08:46:02]Content-Type: application/json [08:46:02] [08:46:02]POST finish read [08:46:02]Found Content-Length = 797 [08:46:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209655", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4295708", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:46:02]execute_script... [08:46: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)209655", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4295708", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:46:02]POST & json_proto [08:46:02]process_json_proto [08:46:02]json parsed OK: [08:46:02]protocol is kg_v1.0 [08:46:02]action value=close_receipt [08:46:02]process_action close_receipt [08:46:02]cmd_close_receipt [08:46:02]MH_GetDate [08:46:02]Write to MH i2c: F0 00 00 AD 31 CD [08:46:02]Write i2c OK [08:46:02]MH_I2C_Read... [08:46:02]Read from MH i2c: F0 [08:46:02]MH_I2C_Read... [08:46:02]Read from MH i2c: F0 09 00 [08:46:02]MH_I2C_Read... [08:46:02]Read from MH i2c: F0 09 00 AD 31 00 CD 14 16 67 A0 18 CA 66 1C [08:46:02]GetLastDocTimeStamp 1729500296 [08:46:02]current date 1729500365 [08:46:02]FM_GetShiftState [08:46:02]SAM_PROTO_GetShiftState [08:46:02]wFMCommunicate request_size=4 [08:46:02]MH_SAM_APDU [08:46:02]CAPDU: 80 13 01 00 [08:46:02]Write to MH i2c: E2 08 00 AE 31 80 13 01 00 00 00 00 00 5C [08:46:02]Write i2c OK [08:46:02]MH_I2C_Read... [08:46:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:46:02]Read from MH i2c: E2 [08:46:02]MH_I2C_Read... [08:46:02]Read from MH i2c: E2 0E 00 [08:46:02]MH_I2C_Read... [08:46:02]Read from MH i2c: E2 0E 00 AE 31 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 BB [08:46:02]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [08:46:02]wFMCommunicate OK [08:46:02]SAM_PROTO_GetShiftState done [08:46:02]FM_GetShiftState done [08:46:02]opened in 1729469754 [08:46:02]opened+sec_in_day 1729556154 [08:46:02]quantity*price = 0 [08:46:02]sum+1 = 1 [08:46:02]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 66 21.10.2024 08:46 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Талоны: Топливные Талоны 4295708 ФМ: 0000000000965340 ФД: 187602 ФПД: 246551353930575 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T084605&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187602&fm=246551353930575&tin=02508201610067®Number=0000000000100030&sum=0 [08:46:03]StoreToDocumentArchive [08:46:03]shift 460 fd 187602 [08:46:03]save to /storage/0460/doc_00187602 [08:46:03]save last doc name /storage/0460/doc_00187602 to /storage/kkm_last_doc_name [08:46:03]save OK [08:46:03]Clear old archive folders... [08:46:03]ProcessDocumentItem done err = 0, tmpTLVsize=248 [08:46:03]tlvbuf is 010F7CE0 [08:46:03]SAM_PROTO_ClearQueue [08:46:03]wFMCommunicate request_size=4 [08:46:03]MH_SAM_APDU [08:46:03]CAPDU: 80 09 00 00 [08:46:03]Write to MH i2c: E2 08 00 BB 31 80 09 00 00 00 00 00 00 5E [08:46:03]Write i2c OK [08:46:03]MH_I2C_Read... [08:46:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:46:03]Read from MH i2c: E2 [08:46:03]MH_I2C_Read... [08:46:03]Read from MH i2c: E2 03 00 [08:46:03]MH_I2C_Read... [08:46:03]Read from MH i2c: E2 03 00 BB 31 00 90 00 60 [08:46:03]RAPDU: 90 00 [08:46:03]wFMCommunicate OK [08:46:03]SAM_PROTO_ClearQueue done [08:46:03]KKMCreateOFDPacket [08:46:03]OFDProtocolAddRootSTLVToBuf [08:46:03]FM_MakeSignedData [08:46:03]FM_MakeSignedData [08:46:03]SAM_PROTO_SignData [08:46:03]wFMCommunicate request_size=4 [08:46:03]MH_SAM_APDU [08:46:03]CAPDU: 80 0D 01 02 [08:46:03]Write to MH i2c: E2 08 00 BC 31 80 0D 01 02 00 00 00 00 66 [08:46:03]Write i2c OK [08:46:03]MH_I2C_Read... [08:46:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:46:03]Read from MH i2c: E2 [08:46:03]MH_I2C_Read... [08:46:03]Read from MH i2c: E2 03 00 [08:46:03]MH_I2C_Read... [08:46:03]Read from MH i2c: E2 03 00 BC 31 00 90 00 61 [08:46:03]RAPDU: 90 00 [08:46:03]wFMCommunicate OK [08:46:03]wFMCommunicate request_size=255 [08:46:03]MH_SAM_APDU [08:46:03]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 42 00 00 00 F4 03 04 00 CD 14 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 D2 DC 02 00 35 04 06 00 E0 3C B5 DE [08:46:03]Write to MH i2c: E2 02 01 BD 31 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 CD 14 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 D2 DC 02 00 35 04 06 00 E0 3C B5 DE 00 00 AC [08:46:03]Write i2c OK [08:46:03]MH_I2C_Read... [08:46:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:46:03]Read from MH i2c: E2 [08:46:03]MH_I2C_Read... [08:46:03]Read from MH i2c: E2 03 00 [08:46:03]MH_I2C_Read... [08:46:03]Read from MH i2c: E2 03 00 BD 31 00 90 00 62 [08:46:03]RAPDU: 90 00 [08:46:03]wFMCommunicate OK [08:46:03]wFMCommunicate request_size=7 [08:46:03]MH_SAM_APDU [08:46:03]CAPDU: 80 0D 02 02 02 B3 4F [08:46:03]Write to MH i2c: E2 0A 00 BE 31 80 0D 02 02 02 00 B3 4F 00 00 6F [08:46:03]Write i2c OK [08:46:03]MH_I2C_Read... [08:46:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:46:03]Read from MH i2c: E2 [08:46:03]MH_I2C_Read... [08:46:03]Read from MH i2c: E2 03 00 [08:46:03]MH_I2C_Read... [08:46:03]Read from MH i2c: E2 03 00 BE 31 00 90 00 63 [08:46:03]RAPDU: 90 00 [08:46:03]wFMCommunicate OK [08:46:03]wFMCommunicate request_size=4 [08:46:03]MH_SAM_APDU [08:46:03]CAPDU: 80 0D 03 02 [08:46:03]Write to MH i2c: E2 08 00 BF 31 80 0D 03 02 00 00 00 00 6B [08:46:03]Write i2c OK [08:46:03]MH_I2C_Read... [08:46:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:46:03]Read from MH i2c: E2 [08:46:03]MH_I2C_Read... [08:46:03]Read from MH i2c: E2 0B 00 [08:46:03]MH_I2C_Read... [08:46:03]Read from MH i2c: E2 0B 00 BF 31 00 F3 0B B2 97 AE 23 C3 C6 90 00 0D [08:46:03]RAPDU: F3 0B B2 97 AE 23 C3 C6 90 00 [08:46:03]wFMCommunicate OK [08:46:03]SAM_PROTO_SignData done [08:46:03]FM_MakeSignedData done [08:46:03]CreateOFDProtocolMessage [08:46:03]wFMCommunicate request_size=4 [08:46:03]MH_SAM_APDU [08:46:03]CAPDU: 80 11 00 00 [08:46:03]Write to MH i2c: E2 08 00 C0 31 80 11 00 00 00 00 00 00 6B [08:46:03]Write i2c OK [08:46:03]MH_I2C_Read... [08:46:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:46:03]Read from MH i2c: E2 [08:46:03]MH_I2C_Read... [08:46:03]Read from MH i2c: E2 17 00 [08:46:03]MH_I2C_Read... [08:46:03]Read from MH i2c: E2 17 00 C0 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 B9 [08:46:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [08:46:03]wFMCommunicate OK [08:46:03]CreateOFDProtocolMessage done [08:46:03]OFDSenderStorePacket 187602 [08:46:03]StoreOFDPacket docnum=187602 [08:46:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 9C B0 04 01 C7 36 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 CD 14 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 D2 DC 02 00 35 04 06 00 E0 3C B5 DE B3 4F F3 0B B2 97 AE 23 C3 C6 [08:46:03]CheckFolder [08:46:03]dirname=/storage/ofd_packets [08:46:03]CheckFolder done [08:46:03]ProducePacketName [08:46:03]name=ofd_packets/00187602 [08:46:03]NVStorageSaveData ofd_packets/00187602 [08:46:03]File name is /storage/ofd_packets/00187602 [08:46:03]Write 298 bytes [08:46:03]NVStorageSaveData done [08:46:03]OFDSenderStorePacket done [08:46:03]KKMCreateOFDPacket done [08:46:03]NVStorageSaveData kkm_last_timestamp [08:46:03]File name is /storage/kkm_last_timestamp [08:46:03]Write 4 bytes [08:46:03]NVStorageSaveData done [08:46:03]ExternCall_PrintAddStr [08:46:03]wPrintStart [08:46:03]Write to MH i2c: 01 00 00 C1 31 F2 [08:46:03]Write i2c OK [08:46:03]MH_I2C_Read... [08:46:03]Read from MH i2c: 01 [08:46:03]MH_I2C_Read... [08:46:03]Read from MH i2c: 01 07 00 [08:46:03]MH_I2C_Read... [08:46:03]Read from MH i2c: 01 07 00 C1 31 00 00 00 00 00 FF 0F 07 [08:46:03]RasterBufferAndPrint [08:46:03]line Счет N : (1)209655 [08:46:03]line ИНН: 02508201610067 [08:46:03]line Контрольно-Кассовый Чек [08:46:03]line ПРОДАЖА [08:46:03]line ТРК (МРК, ГНК) : 51 [08:46:03]line Товар: 2710194210 [08:46:03]line ДТ-К-5 [08:46:03]line 10.000 * 0.00 [08:46:03]line = 0.00 [08:46:03]line НДС 12% НСП 1% [08:46:03]line > о реализуемом товаре [08:46:03]line ИТОГО: 0.00 [08:46:03]line НСП 1% : 0.00 [08:46:03]line НДС 12% : 0.00 [08:46:03]line Наличными: 0.00 [08:46:03]line Безнал.: 0.00 [08:46:03]line Место: АЗС № 86 "Партнер Нефть" [08:46:03]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [08:46:03]line СНО: Общий режим [08:46:03]line Чек 66 21.10.2024 08:46 [08:46:03]line Смена: 460 ФФД: 1.0 [08:46:03]line ЗНМ: 0300000155 [08:46:03]line РНМ: 0000000000100030 [08:46:03]line Версия ККМ: 001 [08:46:03]line Талоны: Топливные Талоны [08:46:03]line 4295708 [08:46:03]line ФМ: 0000000000965340 [08:46:03]line ФД: 187602 [08:46:03]line ФПД: 246551353930575 [08:46:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T084605&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187602&fm=246551353930575&tin=02508201610067®Number=0000000000100030&sum=0 [08:46:03]written 0, free lines is 4095 [08:46:03]OFD Sender: Processing packet 187602 [packets to send 1062, broken 1061] [08:46:03]ProducePacketName [08:46:03]name=ofd_packets/00187602 [08:46:03]OFD Sender: To server: pG, [08:46:03]CommunicateWithHost lk.salyk.kg:30040 [08:46:03]ConnectInit lk.salyk.kg [08:46:04]Connected sock=10 [08:46:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 9C B0 04 01 C7 36 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 CD 14 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 D2 DC 02 00 35 04 06 00 E0 3C B5 DE B3 4F F3 0B B2 97 AE 23 C3 C6 [08:46:04]Write to MH i2c: 01 00 00 EB 31 1C [08:46:04]Write i2c OK [08:46:04]MH_I2C_Read... [08:46:04]Read from MH i2c: 01 [08:46:04]MH_I2C_Read... [08:46:04]Read from MH i2c: 01 07 00 [08:46:04]MH_I2C_Read... [08:46:04]Read from MH i2c: 01 07 00 EB 31 00 00 00 00 00 76 0C A5 [08:46:04]RasterBufferAndPrint [08:46:04]line [08:46:04]line [08:46:04]line [08:46:04]line [08:46:04]line [08:46:04]written 0, free lines is 3195 [08:46:04]MH_Cut [08:46:04]Write to MH i2c: D1 01 00 F2 31 01 F5 [08:46:04]Write i2c OK [08:46:04]MH_I2C_Read... [08:46:04]Read from MH i2c: D1 [08:46:04]MH_I2C_Read... [08:46:04]Read from MH i2c: D1 01 00 [08:46:04]MH_I2C_Read... [08:46:04]Read from MH i2c: D1 01 00 F2 31 00 F4 [08:46:04]Write to MH i2c: 01 00 00 F3 31 24 [08:46:04]Write i2c OK [08:46:04]MH_I2C_Read... [08:46:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 43 9A 47 00 2C 2B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 D2 DC 02 00 F4 03 04 00 BD BE 15 67 B6 04 01 00 00 EC B4 FA 70 59 32 CA EA [08:46:04]CommunicateWithHost err = 0 [08:46:04]CheckOFDResponse [08:46:04]1017 (14) - 77093643461234 [08:46:04]1041 (16) - 0000000000965340 [08:46:04]1040 (4) - 187602 [08:46:04]1012 (4) - 21.10.2024 02:38 [08:46:04]1206 (1) - 0 [08:46:04]OFD Sender: Remove packet 187602 [08:46:04]ProducePacketName [08:46:04]name=ofd_packets/00187602 [08:46:04]NVStorageDeleteData [08:46:05]OFD Sender: No OFD packet to send [08:46:05]*** Cut start [08:46:05]*** Partial cut [08:46:05]*** CUTSNS_PIN = 1 [08:46:05]*** CUTSNS_PIN = 0 [08:46:05]*** Brake cut motor [08:46:06]Read from MH i2c: 01 [08:46:06]MH_I2C_Read... [08:46:06]*** Stop cut motor [08:46:06]*** Cut end [08:46:06]Read from MH i2c: 01 07 00 [08:46:06]MH_I2C_Read... [08:46:06]Read from MH i2c: 01 07 00 F3 31 00 00 00 00 00 FF 0F 39 [08:46:06]process_action close_receipt done [08:46:06]requested_data is exist [08:46:06]produce_requested_data [08:46:06]requested_item fm.sn is exist - process it [08:46:06]wFMCommunicate request_size=4 [08:46:06]MH_SAM_APDU [08:46:06]CAPDU: 80 11 00 00 [08:46:06]Write to MH i2c: E2 08 00 F4 31 80 11 00 00 00 00 00 00 9F [08:46:06]Write i2c OK [08:46:06]MH_I2C_Read... [08:46:06]Read from MH i2c: E2 [08:46:06]MH_I2C_Read... [08:46:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:46:06]Read from MH i2c: E2 17 00 [08:46:06]MH_I2C_Read... [08:46:06]Read from MH i2c: E2 17 00 F4 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 ED [08:46:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [08:46:06]wFMCommunicate OK [08:46:06]requested_item fd.num is exist - process it [08:46:06]SAM_PROTO_GetFieldsCounters [08:46:06]wFMCommunicate request_size=4 [08:46:06]MH_SAM_APDU [08:46:06]CAPDU: 80 13 00 00 [08:46:06]Write to MH i2c: E2 08 00 F5 31 80 13 00 00 00 00 00 00 A2 [08:46:06]Write i2c OK [08:46:06]MH_I2C_Read... [08:46:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:46:06]Read from MH i2c: E2 [08:46:06]MH_I2C_Read... [08:46:06]Read from MH i2c: E2 62 00 [08:46:06]MH_I2C_Read... [08:46:06]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 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 D2 DC 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 42 00 00 00 5E 04 04 00 42 00 00 00 57 04 04 00 43 00 00 00 19 04 04 00 00 00 00 00 90 00 EC [08:46:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 D2 DC 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 42 00 00 00 5E 04 04 00 42 00 00 00 57 04 04 00 43 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:46:06]wFMCommunicate OK [08:46:06]SAM_PROTO_GetFieldsCounters done [08:46:06]requested_item shift.num is exist - process it [08:46:06]requested_item shift.opened is exist - process it [08:46:06]req_shift_opened [08:46:06]FM_GetShiftState [08:46:06]SAM_PROTO_GetShiftState [08:46:06]wFMCommunicate request_size=4 [08:46:06]MH_SAM_APDU [08:46:06]CAPDU: 80 13 01 00 [08:46:06]Write to MH i2c: E2 08 00 F6 31 80 13 01 00 00 00 00 00 A4 [08:46:06]Write i2c OK [08:46:06]MH_I2C_Read... [08:46:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:46:06]Read from MH i2c: E2 [08:46:06]MH_I2C_Read... [08:46:06]Read from MH i2c: E2 0E 00 [08:46:06]MH_I2C_Read... [08:46:06]Read from MH i2c: E2 0E 00 F6 31 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 03 [08:46:06]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [08:46:06]wFMCommunicate OK [08:46:06]SAM_PROTO_GetShiftState done [08:46:06]FM_GetShiftState done [08:46:06]req_shift_opened done [08:46:06]requested_item shift.open_date is exist - process it [08:46:06]req_shift_open_date [08:46:06]req_shift_open_date done [08:46:06]produce_requested_data done [08:46:06]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187602,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [08:46:06]process_action_free close_receipt [08:46:06]json_value_free [08:46:06]json_value_free done [08:46:06]process_json_proto returns [08:46:06]Send response to host [08:46:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187602,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [08:46:06]free response buf [08:46:06]execute_script done [08:46:06]execute_script returns [08:46:06]free content buf [08:46:06]Sock 8.Close socket [08:46:06]Sock 8.Thread stoped [08:46:07]accept exits with 9 [08:46:07]New connection [08:46:07]New thread 3067014500 created [08:46:07]Thread 3067157860 joined [08:46:07]Waiting for new connection... [08:46:07] Sock 9.Parse request [08:46:07]Sock 9.Check first char [08:46:07]Sock 9.First char is OK [08:46:07]request: POST /json_proto HTTP/1.0 [08:46:07]Method: POST [08:46:07]URL: /json_proto [08:46:07]Method is POST - this is cgi request [08:46:07]url: /json_proto [08:46:07]query_string will be loaded in cgi processing [08:46:07]execute_cgi json_proto POST (null) [08:46:07]execute_cgi path=json_proto method=POST [08:46:07]POST find Content-Length [08:46:07]Host: 172.17.42.131:8080 [08:46:07]Content-Length: 773 [08:46:07]Content-Type: application/json [08:46:07] [08:46:07]POST finish read [08:46:07]Found Content-Length = 773 [08:46:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209654", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 11.660, "sum" : 900.15, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 900.15 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:46:07]execute_script... [08:46: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)209654", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 11.660, "sum" : 900.15, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 900.15 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:46:07]POST & json_proto [08:46:07]process_json_proto [08:46:07]json parsed OK: [08:46:07]protocol is kg_v1.0 [08:46:07]action value=close_receipt [08:46:07]process_action close_receipt [08:46:07]cmd_close_receipt [08:46:07]MH_GetDate [08:46:07]Write to MH i2c: F0 00 00 F7 31 17 [08:46:07]Write i2c OK [08:46:07]MH_I2C_Read... [08:46:07]Read from MH i2c: F0 [08:46:07]MH_I2C_Read... [08:46:07]Read from MH i2c: F0 09 00 [08:46:07]MH_I2C_Read... [08:46:07]Read from MH i2c: F0 09 00 F7 31 00 D3 14 16 67 A0 18 CA 66 6C [08:46:07]GetLastDocTimeStamp 1729500365 [08:46:07]current date 1729500371 [08:46:07]FM_GetShiftState [08:46:07]SAM_PROTO_GetShiftState [08:46:07]wFMCommunicate request_size=4 [08:46:07]MH_SAM_APDU [08:46:07]CAPDU: 80 13 01 00 [08:46:07]Write to MH i2c: E2 08 00 F8 31 80 13 01 00 00 00 00 00 A6 [08:46:07]Write i2c OK [08:46:07]MH_I2C_Read... [08:46:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:46:07]Read from MH i2c: E2 [08:46:07]MH_I2C_Read... [08:46:07]Read from MH i2c: E2 0E 00 [08:46:07]MH_I2C_Read... [08:46:07]Read from MH i2c: E2 0E 00 F8 31 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 05 [08:46:07]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [08:46:07]wFMCommunicate OK [08:46:07]SAM_PROTO_GetShiftState done [08:46:07]FM_GetShiftState done [08:46:07]opened in 1729469754 [08:46:07]opened+sec_in_day 1729556154 [08:46:07]quantity*price = 90015 [08:46:07]sum+1 = 90016 [08:46:07]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 900.15 НСП 1% : 7.97 НДС 12% : 95.59 Наличными: 0.00 Безнал.: 900.15 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 67 21.10.2024 08:46 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000965340 ФД: 187603 ФПД: 55277590906548 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T084611&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187603&fm=55277590906548&tin=02508201610067®Number=0000000000100030&sum=90015 [08:46:09]StoreToDocumentArchive [08:46:09]shift 460 fd 187603 [08:46:09]save to /storage/0460/doc_00187603 [08:46:09]save last doc name /storage/0460/doc_00187603 to /storage/kkm_last_doc_name [08:46:09]save OK [08:46:09]Clear old archive folders... [08:46:09]ProcessDocumentItem done err = 0, tmpTLVsize=257 [08:46:09]tlvbuf is 010D3FF0 [08:46:09]SAM_PROTO_ClearQueue [08:46:09]wFMCommunicate request_size=4 [08:46:09]MH_SAM_APDU [08:46:09]CAPDU: 80 09 00 00 [08:46:09]Write to MH i2c: E2 08 00 05 32 80 09 00 00 00 00 00 00 A9 [08:46:09]Write i2c OK [08:46:09]MH_I2C_Read... [08:46:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:46:09]Read from MH i2c: E2 [08:46:09]MH_I2C_Read... [08:46:09]Read from MH i2c: E2 03 00 [08:46:09]MH_I2C_Read... [08:46:09]Read from MH i2c: E2 03 00 05 32 00 90 00 AB [08:46:09]RAPDU: 90 00 [08:46:09]wFMCommunicate OK [08:46:09]SAM_PROTO_ClearQueue done [08:46:09]KKMCreateOFDPacket [08:46:09]OFDProtocolAddRootSTLVToBuf [08:46:09]FM_MakeSignedData [08:46:09]FM_MakeSignedData [08:46:09]SAM_PROTO_SignData [08:46:09]wFMCommunicate request_size=4 [08:46:09]MH_SAM_APDU [08:46:09]CAPDU: 80 0D 01 02 [08:46:09]Write to MH i2c: E2 08 00 06 32 80 0D 01 02 00 00 00 00 B1 [08:46:09]Write i2c OK [08:46:09]MH_I2C_Read... [08:46:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:46:09]Read from MH i2c: E2 [08:46:09]MH_I2C_Read... [08:46:09]Read from MH i2c: E2 03 00 [08:46:09]MH_I2C_Read... [08:46:09]Read from MH i2c: E2 03 00 06 32 00 90 00 AC [08:46:09]RAPDU: 90 00 [08:46:09]wFMCommunicate OK [08:46:09]wFMCommunicate request_size=255 [08:46:09]MH_SAM_APDU [08:46:09]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 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8C 2D 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 9F 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9F 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 57 25 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9F 5F 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 D3 14 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 D3 DC 02 [08:46:09]Write to MH i2c: E2 02 01 07 32 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8C 2D 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 9F 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9F 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 57 25 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9F 5F 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 D3 14 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 D3 DC 02 00 00 E9 [08:46:09]Write i2c OK [08:46:09]MH_I2C_Read... [08:46:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:46:09]Read from MH i2c: E2 [08:46:09]MH_I2C_Read... [08:46:09]Read from MH i2c: E2 03 00 [08:46:09]MH_I2C_Read... [08:46:09]Read from MH i2c: E2 03 00 07 32 00 90 00 AD [08:46:09]RAPDU: 90 00 [08:46:09]wFMCommunicate OK [08:46:09]wFMCommunicate request_size=16 [08:46:09]MH_SAM_APDU [08:46:09]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 32 46 51 2B 86 B4 [08:46:09]Write to MH i2c: E2 13 00 08 32 80 0D 02 02 0B 00 00 35 04 06 00 32 46 51 2B 86 B4 00 00 37 [08:46:09]Write i2c OK [08:46:09]MH_I2C_Read... [08:46:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:46:09]Read from MH i2c: E2 [08:46:09]MH_I2C_Read... [08:46:09]Read from MH i2c: E2 03 00 [08:46:09]MH_I2C_Read... [08:46:09]Read from MH i2c: E2 03 00 08 32 00 90 00 AE [08:46:09]RAPDU: 90 00 [08:46:09]wFMCommunicate OK [08:46:09]wFMCommunicate request_size=4 [08:46:09]MH_SAM_APDU [08:46:09]CAPDU: 80 0D 03 02 [08:46:09]Write to MH i2c: E2 08 00 09 32 80 0D 03 02 00 00 00 00 B6 [08:46:09]Write i2c OK [08:46:09]MH_I2C_Read... [08:46:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:46:09]Read from MH i2c: E2 [08:46:09]MH_I2C_Read... [08:46:09]Read from MH i2c: E2 0B 00 [08:46:09]MH_I2C_Read... [08:46:09]Read from MH i2c: E2 0B 00 09 32 00 AD 71 0B CC C1 35 37 93 90 00 6C [08:46:09]RAPDU: AD 71 0B CC C1 35 37 93 90 00 [08:46:09]wFMCommunicate OK [08:46:09]SAM_PROTO_SignData done [08:46:09]FM_MakeSignedData done [08:46:09]CreateOFDProtocolMessage [08:46:09]wFMCommunicate request_size=4 [08:46:09]MH_SAM_APDU [08:46:09]CAPDU: 80 11 00 00 [08:46:09]Write to MH i2c: E2 08 00 0A 32 80 11 00 00 00 00 00 00 B6 [08:46:09]Write i2c OK [08:46:09]MH_I2C_Read... [08:46:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:46:09]Read from MH i2c: E2 [08:46:09]MH_I2C_Read... [08:46:09]Read from MH i2c: E2 17 00 [08:46:09]MH_I2C_Read... [08:46:09]Read from MH i2c: E2 17 00 0A 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 04 [08:46:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [08:46:09]wFMCommunicate OK [08:46:09]CreateOFDProtocolMessage done [08:46:09]OFDSenderStorePacket 187603 [08:46:09]StoreOFDPacket docnum=187603 [08:46:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 D0 F8 0D 01 23 F7 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 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8C 2D 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 9F 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9F 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 57 25 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9F 5F 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 D3 14 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 D3 DC 02 00 35 04 06 00 32 46 51 2B 86 B4 AD 71 0B CC C1 35 37 93 [08:46:09]CheckFolder [08:46:09]dirname=/storage/ofd_packets [08:46:09]CheckFolder done [08:46:09]ProducePacketName [08:46:09]name=ofd_packets/00187603 [08:46:09]NVStorageSaveData ofd_packets/00187603 [08:46:09]File name is /storage/ofd_packets/00187603 [08:46:09]Write 307 bytes [08:46:09]NVStorageSaveData done [08:46:09]OFDSenderStorePacket done [08:46:09]KKMCreateOFDPacket done [08:46:09]NVStorageSaveData kkm_last_timestamp [08:46:09]File name is /storage/kkm_last_timestamp [08:46:09]Write 4 bytes [08:46:09]NVStorageSaveData done [08:46:09]ExternCall_PrintAddStr [08:46:09]wPrintStart [08:46:09]Write to MH i2c: 01 00 00 0B 32 3D [08:46:09]Write i2c OK [08:46:09]MH_I2C_Read... [08:46:09]Read from MH i2c: 01 [08:46:09]MH_I2C_Read... [08:46:09]Read from MH i2c: 01 07 00 [08:46:09]MH_I2C_Read... [08:46:09]Read from MH i2c: 01 07 00 0B 32 00 00 00 00 00 FF 0F 52 [08:46:09]RasterBufferAndPrint [08:46:09]line Счет N : (1)209654 [08:46:09]line ИНН: 02508201610067 [08:46:09]line Контрольно-Кассовый Чек [08:46:09]line ПРОДАЖА [08:46:09]line ТРК (МРК, ГНК) : 31 [08:46:09]line Товар: 2710194210 [08:46:09]line D-ENERGY ДТ-К-5 [08:46:09]line 11.660 * 77.20 [08:46:09]line = 900.15 [08:46:09]line НДС 12% НСП 1% [08:46:09]line > о реализуемом товаре [08:46:09]line ИТОГО: 900.15 [08:46:09]line НСП 1% : 7.97 [08:46:09]line НДС 12% : 95.59 [08:46:09]line Наличными: 0.00 [08:46:09]line Безнал.: 900.15 [08:46:09]line Место: АЗС № 86 "Партнер Нефть" [08:46:09]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [08:46:09]line СНО: Общий режим [08:46:09]line Чек 67 21.10.2024 08:46 [08:46:09]line Смена: 460 ФФД: 1.0 [08:46:09]line ЗНМ: 0300000155 [08:46:09]line РНМ: 0000000000100030 [08:46:09]line Версия ККМ: 001 [08:46:09]line Платежная система: Mbank [08:46:09]line ФМ: 0000000000965340 [08:46:09]line ФД: 187603 [08:46:09]line ФПД: 55277590906548 [08:46:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T084611&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187603&fm=55277590906548&tin=02508201610067®Number=0000000000100030&sum=90015 [08:46:09]written 0, free lines is 4095 [08:46:09]OFD Sender: Processing packet 187603 [packets to send 1062, broken 1061] [08:46:09]ProducePacketName [08:46:09]name=ofd_packets/00187603 [08:46:09]OFD Sender: To server: pG, [08:46:09]CommunicateWithHost lk.salyk.kg:30040 [08:46:09]ConnectInit lk.salyk.kg [08:46:10]Write to MH i2c: 01 00 00 34 32 66 [08:46:10]Write i2c OK [08:46:10]MH_I2C_Read... [08:46:10]Read from MH i2c: 01 [08:46:10]MH_I2C_Read... [08:46:10]Read from MH i2c: 01 07 00 [08:46:10]MH_I2C_Read... [08:46:10]Read from MH i2c: 01 07 00 34 32 00 00 00 00 00 90 0C 09 [08:46:10]RasterBufferAndPrint [08:46:10]line [08:46:10]line [08:46:10]line [08:46:10]line [08:46:10]line [08:46:10]written 0, free lines is 3222 [08:46:10]MH_Cut [08:46:10]Write to MH i2c: D1 01 00 3B 32 01 3F [08:46:10]Write i2c OK [08:46:10]MH_I2C_Read... [08:46:10]Connected sock=11 [08:46:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 D0 F8 0D 01 23 F7 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 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8C 2D 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 9F 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9F 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 57 25 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9F 5F 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 D3 14 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 D3 DC 02 00 35 04 06 00 32 46 51 2B 86 B4 AD 71 0B CC C1 35 37 93 [08:46:10]Read from MH i2c: D1 [08:46:10]MH_I2C_Read... [08:46:10]Read from MH i2c: D1 01 00 [08:46:10]MH_I2C_Read... [08:46:10]Read from MH i2c: D1 01 00 3B 32 00 3E [08:46:10]Write to MH i2c: 01 00 00 3C 32 6E [08:46:10]Write i2c OK [08:46:10]MH_I2C_Read... [08:46:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 28 F2 47 00 E1 0A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 D3 DC 02 00 F4 03 04 00 C3 BE 15 67 B6 04 01 00 00 9E 5D 9E 40 1A B0 3E 83 [08:46:10]CommunicateWithHost err = 0 [08:46:10]CheckOFDResponse [08:46:10]1017 (14) - 77093643461234 [08:46:10]1041 (16) - 0000000000965340 [08:46:10]1040 (4) - 187603 [08:46:10]1012 (4) - 21.10.2024 02:38 [08:46:10]1206 (1) - 0 [08:46:10]OFD Sender: Remove packet 187603 [08:46:10]ProducePacketName [08:46:10]name=ofd_packets/00187603 [08:46:10]NVStorageDeleteData [08:46:11]OFD Sender: No OFD packet to send [08:46:11]*** Cut start [08:46:11]*** Partial cut [08:46:11]*** CUTSNS_PIN = 1 [08:46:11]*** CUTSNS_PIN = 0 [08:46:11]*** Brake cut motor [08:46:12]Read from MH i2c: 01 [08:46:12]MH_I2C_Read... [08:46:12]*** Stop cut motor [08:46:12]*** Cut end [08:46:12]Read from MH i2c: 01 07 00 [08:46:12]MH_I2C_Read... [08:46:12]Read from MH i2c: 01 07 00 3C 32 00 00 00 00 00 FF 0F 83 [08:46:12]process_action close_receipt done [08:46:12]requested_data is exist [08:46:12]produce_requested_data [08:46:12]requested_item fm.sn is exist - process it [08:46:12]wFMCommunicate request_size=4 [08:46:12]MH_SAM_APDU [08:46:12]CAPDU: 80 11 00 00 [08:46:12]Write to MH i2c: E2 08 00 3D 32 80 11 00 00 00 00 00 00 E9 [08:46:12]Write i2c OK [08:46:12]MH_I2C_Read... [08:46:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:46:12]Read from MH i2c: E2 [08:46:12]MH_I2C_Read... [08:46:12]Read from MH i2c: E2 17 00 [08:46:12]MH_I2C_Read... [08:46:12]Read from MH i2c: E2 17 00 3D 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 37 [08:46:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [08:46:12]wFMCommunicate OK [08:46:12]requested_item fd.num is exist - process it [08:46:12]SAM_PROTO_GetFieldsCounters [08:46:12]wFMCommunicate request_size=4 [08:46:12]MH_SAM_APDU [08:46:12]CAPDU: 80 13 00 00 [08:46:12]Write to MH i2c: E2 08 00 3E 32 80 13 00 00 00 00 00 00 EC [08:46:12]Write i2c OK [08:46:12]MH_I2C_Read... [08:46:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:46:12]Read from MH i2c: E2 [08:46:12]MH_I2C_Read... [08:46:12]Read from MH i2c: E2 62 00 [08:46:12]MH_I2C_Read... [08:46:12]Read from MH i2c: E2 62 00 3E 32 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 D3 DC 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 43 00 00 00 5E 04 04 00 43 00 00 00 57 04 04 00 44 00 00 00 19 04 04 00 00 00 00 00 90 00 3A [08:46:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 D3 DC 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 43 00 00 00 5E 04 04 00 43 00 00 00 57 04 04 00 44 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:46:12]wFMCommunicate OK [08:46:12]SAM_PROTO_GetFieldsCounters done [08:46:12]requested_item shift.num is exist - process it [08:46:12]requested_item shift.opened is exist - process it [08:46:12]req_shift_opened [08:46:12]FM_GetShiftState [08:46:12]SAM_PROTO_GetShiftState [08:46:12]wFMCommunicate request_size=4 [08:46:12]MH_SAM_APDU [08:46:12]CAPDU: 80 13 01 00 [08:46:12]Write to MH i2c: E2 08 00 3F 32 80 13 01 00 00 00 00 00 EE [08:46:12]Write i2c OK [08:46:12]MH_I2C_Read... [08:46:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:46:12]Read from MH i2c: E2 [08:46:12]MH_I2C_Read... [08:46:12]Read from MH i2c: E2 0E 00 [08:46:12]MH_I2C_Read... [08:46:12]Read from MH i2c: E2 0E 00 3F 32 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 4D [08:46:12]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [08:46:12]wFMCommunicate OK [08:46:12]SAM_PROTO_GetShiftState done [08:46:12]FM_GetShiftState done [08:46:12]req_shift_opened done [08:46:12]requested_item shift.open_date is exist - process it [08:46:12]req_shift_open_date [08:46:12]req_shift_open_date done [08:46:12]produce_requested_data done [08:46:12]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187603,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [08:46:12]process_action_free close_receipt [08:46:12]json_value_free [08:46:12]json_value_free done [08:46:12]process_json_proto returns [08:46:12]Send response to host [08:46:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187603,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [08:46:12]free response buf [08:46:12]execute_script done [08:46:12]execute_script returns [08:46:12]free content buf [08:46:12]Sock 9.Close socket [08:46:12]Sock 9.Thread stoped [08:46:16]OFD Sender: No OFD packet to send [08:46:21]OFD Sender: No OFD packet to send [08:46:26]OFD Sender: No OFD packet to send [08:46:31]OFD Sender: No OFD packet to send [08:46:36]OFD Sender: No OFD packet to send [08:46:41]OFD Sender: No OFD packet to send [08:46:46]OFD Sender: No OFD packet to send [08:46:51]OFD Sender: No OFD packet to send [08:46:52]accept exits with 8 [08:46:52]New connection [08:46:52]New thread 3067157860 created [08:46:52]Thread 3067014500 joined [08:46:52]Waiting for new connection... [08:46:52] Sock 8.Parse request [08:46:52]Sock 8.Check first char [08:46:52]Sock 8.First char is OK [08:46:52]request: POST /json_proto HTTP/1.0 [08:46:52]Method: POST [08:46:52]URL: /json_proto [08:46:52]Method is POST - this is cgi request [08:46:52]url: /json_proto [08:46:52]query_string will be loaded in cgi processing [08:46:52]execute_cgi json_proto POST (null) [08:46:52]execute_cgi path=json_proto method=POST [08:46:52]POST find Content-Length [08:46:52]Host: 172.17.42.131:8080 [08:46:52]Content-Length: 797 [08:46:52]Content-Type: application/json [08:46:52] [08:46:52]POST finish read [08:46:52]Found Content-Length = 797 [08:46:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209656", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4295704", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:46:52]execute_script... [08: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)209656", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4295704", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:46:52]POST & json_proto [08:46:52]process_json_proto [08:46:52]json parsed OK: [08:46:52]protocol is kg_v1.0 [08:46:52]action value=close_receipt [08:46:52]process_action close_receipt [08:46:52]cmd_close_receipt [08:46:52]MH_GetDate [08:46:52]Write to MH i2c: F0 00 00 40 32 61 [08:46:52]Write i2c OK [08:46:52]MH_I2C_Read... [08:46:52]Read from MH i2c: F0 [08:46:52]MH_I2C_Read... [08:46:52]Read from MH i2c: F0 09 00 [08:46:52]MH_I2C_Read... [08:46:52]Read from MH i2c: F0 09 00 40 32 00 00 15 16 67 A0 18 CA 66 E4 [08:46:52]GetLastDocTimeStamp 1729500371 [08:46:52]current date 1729500416 [08:46:52]FM_GetShiftState [08:46:52]SAM_PROTO_GetShiftState [08:46:52]wFMCommunicate request_size=4 [08:46:52]MH_SAM_APDU [08:46:52]CAPDU: 80 13 01 00 [08:46:52]Write to MH i2c: E2 08 00 41 32 80 13 01 00 00 00 00 00 F0 [08:46:52]Write i2c OK [08:46:52]MH_I2C_Read... [08:46:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:46:52]Read from MH i2c: E2 [08:46:52]MH_I2C_Read... [08:46:52]Read from MH i2c: E2 0E 00 [08:46:52]MH_I2C_Read... [08:46:52]Read from MH i2c: E2 0E 00 41 32 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 4F [08:46:52]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [08:46:52]wFMCommunicate OK [08:46:52]SAM_PROTO_GetShiftState done [08:46:52]FM_GetShiftState done [08:46:52]opened in 1729469754 [08:46:52]opened+sec_in_day 1729556154 [08:46:52]quantity*price = 0 [08:46:52]sum+1 = 1 [08:46:52]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 68 21.10.2024 08:46 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Талоны: Топливные Талоны 4295704 ФМ: 0000000000965340 ФД: 187604 ФПД: 88926623721401 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T084656&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187604&fm=88926623721401&tin=02508201610067®Number=0000000000100030&sum=0 [08:46:53]StoreToDocumentArchive [08:46:53]shift 460 fd 187604 [08:46:53]save to /storage/0460/doc_00187604 [08:46:53]save last doc name /storage/0460/doc_00187604 to /storage/kkm_last_doc_name [08:46:53]save OK [08:46:53]Clear old archive folders... [08:46:53]ProcessDocumentItem done err = 0, tmpTLVsize=248 [08:46:53]tlvbuf is 010A32D0 [08:46:53]SAM_PROTO_ClearQueue [08:46:53]wFMCommunicate request_size=4 [08:46:53]MH_SAM_APDU [08:46:53]CAPDU: 80 09 00 00 [08:46:53]Write to MH i2c: E2 08 00 4E 32 80 09 00 00 00 00 00 00 F2 [08:46:53]Write i2c OK [08:46:53]MH_I2C_Read... [08:46:53]Read from MH i2c: E2 [08:46:53]MH_I2C_Read... [08:46:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:46:53]Read from MH i2c: E2 03 00 [08:46:53]MH_I2C_Read... [08:46:53]Read from MH i2c: E2 03 00 4E 32 00 90 00 F4 [08:46:53]RAPDU: 90 00 [08:46:53]wFMCommunicate OK [08:46:53]SAM_PROTO_ClearQueue done [08:46:53]KKMCreateOFDPacket [08:46:53]OFDProtocolAddRootSTLVToBuf [08:46:53]FM_MakeSignedData [08:46:53]FM_MakeSignedData [08:46:53]SAM_PROTO_SignData [08:46:53]wFMCommunicate request_size=4 [08:46:53]MH_SAM_APDU [08:46:53]CAPDU: 80 0D 01 02 [08:46:53]Write to MH i2c: E2 08 00 4F 32 80 0D 01 02 00 00 00 00 FA [08:46:53]Write i2c OK [08:46:53]MH_I2C_Read... [08:46:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:46:53]Read from MH i2c: E2 [08:46:53]MH_I2C_Read... [08:46:53]Read from MH i2c: E2 03 00 [08:46:53]MH_I2C_Read... [08:46:53]Read from MH i2c: E2 03 00 4F 32 00 90 00 F5 [08:46:53]RAPDU: 90 00 [08:46:53]wFMCommunicate OK [08:46:53]wFMCommunicate request_size=255 [08:46:53]MH_SAM_APDU [08:46:53]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 44 00 00 00 F4 03 04 00 00 15 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 D4 DC 02 00 35 04 06 00 50 E0 D7 D1 [08:46:53]Write to MH i2c: E2 02 01 50 32 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 44 00 00 00 F4 03 04 00 00 15 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 D4 DC 02 00 35 04 06 00 50 E0 D7 D1 00 00 A1 [08:46:53]Write i2c OK [08:46:53]MH_I2C_Read... [08:46:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:46:54]Read from MH i2c: E2 [08:46:54]MH_I2C_Read... [08:46:54]Read from MH i2c: E2 03 00 [08:46:54]MH_I2C_Read... [08:46:54]Read from MH i2c: E2 03 00 50 32 00 90 00 F6 [08:46:54]RAPDU: 90 00 [08:46:54]wFMCommunicate OK [08:46:54]wFMCommunicate request_size=7 [08:46:54]MH_SAM_APDU [08:46:54]CAPDU: 80 0D 02 02 02 67 B9 [08:46:54]Write to MH i2c: E2 0A 00 51 32 80 0D 02 02 02 00 67 B9 00 00 21 [08:46:54]Write i2c OK [08:46:54]MH_I2C_Read... [08:46:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:46:54]Read from MH i2c: E2 [08:46:54]MH_I2C_Read... [08:46:54]Read from MH i2c: E2 03 00 [08:46:54]MH_I2C_Read... [08:46:54]Read from MH i2c: E2 03 00 51 32 00 90 00 F7 [08:46:54]RAPDU: 90 00 [08:46:54]wFMCommunicate OK [08:46:54]wFMCommunicate request_size=4 [08:46:54]MH_SAM_APDU [08:46:54]CAPDU: 80 0D 03 02 [08:46:54]Write to MH i2c: E2 08 00 52 32 80 0D 03 02 00 00 00 00 FF [08:46:54]Write i2c OK [08:46:54]MH_I2C_Read... [08:46:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:46:54]Read from MH i2c: E2 [08:46:54]MH_I2C_Read... [08:46:54]Read from MH i2c: E2 0B 00 [08:46:54]MH_I2C_Read... [08:46:54]Read from MH i2c: E2 0B 00 52 32 00 FE D6 15 F8 AC A4 AF D5 90 00 B5 [08:46:54]RAPDU: FE D6 15 F8 AC A4 AF D5 90 00 [08:46:54]wFMCommunicate OK [08:46:54]SAM_PROTO_SignData done [08:46:54]FM_MakeSignedData done [08:46:54]CreateOFDProtocolMessage [08:46:54]wFMCommunicate request_size=4 [08:46:54]MH_SAM_APDU [08:46:54]CAPDU: 80 11 00 00 [08:46:54]Write to MH i2c: E2 08 00 53 32 80 11 00 00 00 00 00 00 FF [08:46:54]Write i2c OK [08:46:54]MH_I2C_Read... [08:46:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:46:54]Read from MH i2c: E2 [08:46:54]MH_I2C_Read... [08:46:54]Read from MH i2c: E2 17 00 [08:46:54]MH_I2C_Read... [08:46:54]Read from MH i2c: E2 17 00 53 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 4D [08:46:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [08:46:54]wFMCommunicate OK [08:46:54]CreateOFDProtocolMessage done [08:46:54]OFDSenderStorePacket 187604 [08:46:54]StoreOFDPacket docnum=187604 [08:46:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 86 B1 04 01 A9 72 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 44 00 00 00 F4 03 04 00 00 15 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 D4 DC 02 00 35 04 06 00 50 E0 D7 D1 67 B9 FE D6 15 F8 AC A4 AF D5 [08:46:54]CheckFolder [08:46:54]dirname=/storage/ofd_packets [08:46:54]CheckFolder done [08:46:54]ProducePacketName [08:46:54]name=ofd_packets/00187604 [08:46:54]NVStorageSaveData ofd_packets/00187604 [08:46:54]File name is /storage/ofd_packets/00187604 [08:46:54]Write 298 bytes [08:46:54]NVStorageSaveData done [08:46:54]OFDSenderStorePacket done [08:46:54]KKMCreateOFDPacket done [08:46:54]NVStorageSaveData kkm_last_timestamp [08:46:54]File name is /storage/kkm_last_timestamp [08:46:54]Write 4 bytes [08:46:54]NVStorageSaveData done [08:46:54]ExternCall_PrintAddStr [08:46:54]wPrintStart [08:46:54]Write to MH i2c: 01 00 00 54 32 86 [08:46:54]Write i2c OK [08:46:54]MH_I2C_Read... [08:46:54]Read from MH i2c: 01 [08:46:54]MH_I2C_Read... [08:46:54]Read from MH i2c: 01 07 00 [08:46:54]MH_I2C_Read... [08:46:54]Read from MH i2c: 01 07 00 54 32 00 00 00 00 00 FF 0F 9B [08:46:54]RasterBufferAndPrint [08:46:54]line Счет N : (1)209656 [08:46:54]line ИНН: 02508201610067 [08:46:54]line Контрольно-Кассовый Чек [08:46:54]line ПРОДАЖА [08:46:54]line ТРК (МРК, ГНК) : 51 [08:46:54]line Товар: 2710194210 [08:46:54]line ДТ-К-5 [08:46:54]line 10.000 * 0.00 [08:46:54]line = 0.00 [08:46:54]line НДС 12% НСП 1% [08:46:54]line > о реализуемом товаре [08:46:54]line ИТОГО: 0.00 [08:46:54]line НСП 1% : 0.00 [08:46:54]line НДС 12% : 0.00 [08:46:54]line Наличными: 0.00 [08:46:54]line Безнал.: 0.00 [08:46:54]line Место: АЗС № 86 "Партнер Нефть" [08:46:54]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [08:46:54]line СНО: Общий режим [08:46:54]line Чек 68 21.10.2024 08:46 [08:46:54]line Смена: 460 ФФД: 1.0 [08:46:54]line ЗНМ: 0300000155 [08:46:54]line РНМ: 0000000000100030 [08:46:54]line Версия ККМ: 001 [08:46:54]line Талоны: Топливные Талоны [08:46:54]line 4295704 [08:46:54]line ФМ: 0000000000965340 [08:46:54]line ФД: 187604 [08:46:54]line ФПД: 88926623721401 [08:46:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T084656&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187604&fm=88926623721401&tin=02508201610067®Number=0000000000100030&sum=0 [08:46:54]OFD Sender: Processing packet 187604 [packets to send 1062, broken 1061] [08:46:54]ProducePacketName [08:46:54]name=ofd_packets/00187604 [08:46:54]OFD Sender: To server: pG, [08:46:54]CommunicateWithHost lk.salyk.kg:30040 [08:46:54]ConnectInit lk.salyk.kg [08:46:54]written 0, free lines is 4095 [08:46:54]Connected sock=10 [08:46:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 86 B1 04 01 A9 72 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 44 00 00 00 F4 03 04 00 00 15 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 D4 DC 02 00 35 04 06 00 50 E0 D7 D1 67 B9 FE D6 15 F8 AC A4 AF D5 [08:46:55]Write to MH i2c: 01 00 00 7E 32 B0 [08:46:55]Write i2c OK [08:46:55]MH_I2C_Read... [08:46:55]Read from MH i2c: 01 [08:46:55]MH_I2C_Read... [08:46:55]Read from MH i2c: 01 07 00 [08:46:55]MH_I2C_Read... [08:46:55]Read from MH i2c: 01 07 00 7E 32 00 00 00 00 00 7B 0C 3E [08:46:55]RasterBufferAndPrint [08:46:55]line [08:46:55]line [08:46:55]line [08:46:55]line [08:46:55]line [08:46:55]written 0, free lines is 3199 [08:46:55]MH_Cut [08:46:55]Write to MH i2c: D1 01 00 85 32 01 89 [08:46:55]Write i2c OK [08:46:55]MH_I2C_Read... [08:46:55]Read from MH i2c: D1 [08:46:55]MH_I2C_Read... [08:46:55]Read from MH i2c: D1 01 00 [08:46:55]MH_I2C_Read... [08:46:55]Read from MH i2c: D1 01 00 85 32 00 88 [08:46:55]Write to MH i2c: 01 00 00 86 32 B8 [08:46:55]Write i2c OK [08:46:55]MH_I2C_Read... [08:46:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 A0 CD 47 00 55 1C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 D4 DC 02 00 F4 03 04 00 F0 BE 15 67 B6 04 01 00 00 D9 01 78 9C E0 0D 75 A7 [08:46:55]CommunicateWithHost err = 0 [08:46:55]CheckOFDResponse [08:46:55]1017 (14) - 77093643461234 [08:46:55]1041 (16) - 0000000000965340 [08:46:55]1040 (4) - 187604 [08:46:55]1012 (4) - 21.10.2024 02:39 [08:46:55]1206 (1) - 0 [08:46:55]OFD Sender: Remove packet 187604 [08:46:55]ProducePacketName [08:46:55]name=ofd_packets/00187604 [08:46:55]NVStorageDeleteData [08:46:55]OFD Sender: No OFD packet to send [08:46:56]*** Cut start [08:46:56]*** Partial cut [08:46:56]*** CUTSNS_PIN = 1 [08:46:56]*** CUTSNS_PIN = 0 [08:46:56]*** Brake cut motor [08:46:56]Read from MH i2c: 01 [08:46:56]MH_I2C_Read... [08:46:56]*** Stop cut motor [08:46:56]*** Cut end [08:46:56]Read from MH i2c: 01 07 00 [08:46:56]MH_I2C_Read... [08:46:56]Read from MH i2c: 01 07 00 86 32 00 00 00 00 00 FF 0F CD [08:46:56]process_action close_receipt done [08:46:56]requested_data is exist [08:46:56]produce_requested_data [08:46:56]requested_item fm.sn is exist - process it [08:46:56]wFMCommunicate request_size=4 [08:46:56]MH_SAM_APDU [08:46:56]CAPDU: 80 11 00 00 [08:46:56]Write to MH i2c: E2 08 00 87 32 80 11 00 00 00 00 00 00 33 [08:46:56]Write i2c OK [08:46:56]MH_I2C_Read... [08:46:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:46:57]Read from MH i2c: E2 [08:46:57]MH_I2C_Read... [08:46:57]Read from MH i2c: E2 17 00 [08:46:57]MH_I2C_Read... [08:46:57]Read from MH i2c: E2 17 00 87 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 81 [08:46:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [08:46:57]wFMCommunicate OK [08:46:57]requested_item fd.num is exist - process it [08:46:57]SAM_PROTO_GetFieldsCounters [08:46:57]wFMCommunicate request_size=4 [08:46:57]MH_SAM_APDU [08:46:57]CAPDU: 80 13 00 00 [08:46:57]Write to MH i2c: E2 08 00 88 32 80 13 00 00 00 00 00 00 36 [08:46:57]Write i2c OK [08:46:57]MH_I2C_Read... [08:46:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:46:57]Read from MH i2c: E2 [08:46:57]MH_I2C_Read... [08:46:57]Read from MH i2c: E2 62 00 [08:46:57]MH_I2C_Read... [08:46:57]Read from MH i2c: E2 62 00 88 32 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 D4 DC 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 44 00 00 00 5E 04 04 00 44 00 00 00 57 04 04 00 45 00 00 00 19 04 04 00 00 00 00 00 90 00 88 [08:46:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 D4 DC 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 44 00 00 00 5E 04 04 00 44 00 00 00 57 04 04 00 45 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:46:57]wFMCommunicate OK [08:46:57]SAM_PROTO_GetFieldsCounters done [08:46:57]requested_item shift.num is exist - process it [08:46:57]requested_item shift.opened is exist - process it [08:46:57]req_shift_opened [08:46:57]FM_GetShiftState [08:46:57]SAM_PROTO_GetShiftState [08:46:57]wFMCommunicate request_size=4 [08:46:57]MH_SAM_APDU [08:46:57]CAPDU: 80 13 01 00 [08:46:57]Write to MH i2c: E2 08 00 89 32 80 13 01 00 00 00 00 00 38 [08:46:57]Write i2c OK [08:46:57]MH_I2C_Read... [08:46:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:46:57]Read from MH i2c: E2 [08:46:57]MH_I2C_Read... [08:46:57]Read from MH i2c: E2 0E 00 [08:46:57]MH_I2C_Read... [08:46:57]Read from MH i2c: E2 0E 00 89 32 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 97 [08:46:57]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [08:46:57]wFMCommunicate OK [08:46:57]SAM_PROTO_GetShiftState done [08:46:57]FM_GetShiftState done [08:46:57]req_shift_opened done [08:46:57]requested_item shift.open_date is exist - process it [08:46:57]req_shift_open_date [08:46:57]req_shift_open_date done [08:46:57]produce_requested_data done [08:46:57]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187604,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [08:46:57]process_action_free close_receipt [08:46:57]json_value_free [08:46:57]json_value_free done [08:46:57]process_json_proto returns [08:46:57]Send response to host [08:46:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187604,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [08:46:57]free response buf [08:46:57]execute_script done [08:46:57]execute_script returns [08:46:57]free content buf [08:46:57]Sock 8.Close socket [08:46:57]Sock 8.Thread stoped [08:47:00]OFD Sender: No OFD packet to send [08:47:05]OFD Sender: No OFD packet to send [08:47:10]OFD Sender: No OFD packet to send [08:47:15]OFD Sender: No OFD packet to send [08:47:20]OFD Sender: No OFD packet to send [08:47:25]OFD Sender: No OFD packet to send [08:47:30]OFD Sender: No OFD packet to send [08:47:35]OFD Sender: No OFD packet to send [08:47:41]OFD Sender: No OFD packet to send [08:47:46]OFD Sender: No OFD packet to send [08:47:51]OFD Sender: No OFD packet to send [08:47:56]OFD Sender: No OFD packet to send [08:48:01]OFD Sender: No OFD packet to send [08:48:06]OFD Sender: No OFD packet to send [08:48:11]OFD Sender: No OFD packet to send [08:48:16]OFD Sender: No OFD packet to send [08:48:21]OFD Sender: No OFD packet to send [08:48:26]OFD Sender: No OFD packet to send [08:48:31]OFD Sender: No OFD packet to send [08:48:36]OFD Sender: No OFD packet to send [08:48:41]OFD Sender: No OFD packet to send [08:48:46]OFD Sender: No OFD packet to send [08:48:51]OFD Sender: No OFD packet to send [08:48:56]OFD Sender: No OFD packet to send [08:49:01]OFD Sender: No OFD packet to send [08:49:06]OFD Sender: No OFD packet to send [08:49:11]OFD Sender: No OFD packet to send [08:49:16]OFD Sender: No OFD packet to send [08:49:21]OFD Sender: No OFD packet to send [08:49:26]OFD Sender: No OFD packet to send [08:49:31]OFD Sender: No OFD packet to send [08:49:36]OFD Sender: No OFD packet to send [08:49:41]OFD Sender: No OFD packet to send [08:49:46]OFD Sender: No OFD packet to send [08:49:51]OFD Sender: No OFD packet to send [08:49:56]OFD Sender: No OFD packet to send [08:50:01]OFD Sender: No OFD packet to send [08:50:06]OFD Sender: No OFD packet to send [08:50:11]OFD Sender: No OFD packet to send [08:50:16]OFD Sender: No OFD packet to send [08:50:21]OFD Sender: No OFD packet to send [08:50:26]OFD Sender: No OFD packet to send [08:50:31]OFD Sender: No OFD packet to send [08:50:36]OFD Sender: No OFD packet to send [08:50:41]OFD Sender: No OFD packet to send [08:50:46]OFD Sender: No OFD packet to send [08:50:51]OFD Sender: No OFD packet to send [08:50:56]OFD Sender: No OFD packet to send [08:51:01]OFD Sender: No OFD packet to send [08:51:06]OFD Sender: No OFD packet to send [08:51:11]OFD Sender: No OFD packet to send [08:51:16]OFD Sender: No OFD packet to send [08:51:21]OFD Sender: No OFD packet to send [08:51:27]OFD Sender: No OFD packet to send [08:51:31]accept exits with 9 [08:51:31]New connection [08:51:31]New thread 3067014500 created [08:51:31]Thread 3067157860 joined [08:51:31]Waiting for new connection... [08:51:31] Sock 9.Parse request [08:51:31]Sock 9.Check first char [08:51:31]Sock 9.First char is OK [08:51:31]request: POST /json_proto HTTP/1.0 [08:51:31]Method: POST [08:51:31]URL: /json_proto [08:51:31]Method is POST - this is cgi request [08:51:31]url: /json_proto [08:51:31]query_string will be loaded in cgi processing [08:51:31]execute_cgi json_proto POST (null) [08:51:31]execute_cgi path=json_proto method=POST [08:51:31]POST find Content-Length [08:51:31]Host: 172.17.42.131:8080 [08:51:31]Content-Length: 679 [08:51:31]Content-Type: application/json [08:51:31] [08:51:31]POST finish read [08:51:31]Found Content-Length = 679 [08:51:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209657", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:51:31]execute_script... [08:51: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)209657", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:51:31]POST & json_proto [08:51:31]process_json_proto [08:51:31]json parsed OK: [08:51:31]protocol is kg_v1.0 [08:51:31]action value=close_receipt [08:51:31]process_action close_receipt [08:51:31]cmd_close_receipt [08:51:31]MH_GetDate [08:51:31]Write to MH i2c: F0 00 00 8A 32 AB [08:51:31]Write i2c OK [08:51:31]MH_I2C_Read... [08:51:31]Read from MH i2c: F0 [08:51:31]MH_I2C_Read... [08:51:31]Read from MH i2c: F0 09 00 [08:51:31]MH_I2C_Read... [08:51:31]Read from MH i2c: F0 09 00 8A 32 00 17 16 16 67 A0 18 CA 66 46 [08:51:31]GetLastDocTimeStamp 1729500416 [08:51:31]current date 1729500695 [08:51:31]FM_GetShiftState [08:51:31]SAM_PROTO_GetShiftState [08:51:31]wFMCommunicate request_size=4 [08:51:31]MH_SAM_APDU [08:51:31]CAPDU: 80 13 01 00 [08:51:31]Write to MH i2c: E2 08 00 8B 32 80 13 01 00 00 00 00 00 3A [08:51:31]Write i2c OK [08:51:31]MH_I2C_Read... [08:51:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:51:31]Read from MH i2c: E2 [08:51:31]MH_I2C_Read... [08:51:31]Read from MH i2c: E2 0E 00 [08:51:31]MH_I2C_Read... [08:51:31]Read from MH i2c: E2 0E 00 8B 32 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 99 [08:51:31]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [08:51:31]wFMCommunicate OK [08:51:31]SAM_PROTO_GetShiftState done [08:51:31]FM_GetShiftState done [08:51:31]opened in 1729469754 [08:51:31]opened+sec_in_day 1729556154 [08:51:31]quantity*price = 200025 [08:51:31]sum+1 = 200026 [08:51:31]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 69 21.10.2024 08:51 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 187605 ФПД: 225683201063723 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T085135&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187605&fm=225683201063723&tin=02508201610067®Number=0000000000100030&sum=200000 [08:51:32]StoreToDocumentArchive [08:51:32]shift 460 fd 187605 [08:51:32]save to /storage/0460/doc_00187605 [08:51:32]save last doc name /storage/0460/doc_00187605 to /storage/kkm_last_doc_name [08:51:32]save OK [08:51:32]Clear old archive folders... [08:51:32]ProcessDocumentItem done err = 0, tmpTLVsize=248 [08:51:32]tlvbuf is B6DDA4C0 [08:51:32]SAM_PROTO_ClearQueue [08:51:32]wFMCommunicate request_size=4 [08:51:32]MH_SAM_APDU [08:51:32]CAPDU: 80 09 00 00 [08:51:32]Write to MH i2c: E2 08 00 98 32 80 09 00 00 00 00 00 00 3C [08:51:32]Write i2c OK [08:51:32]MH_I2C_Read... [08:51:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:51:33]Read from MH i2c: E2 [08:51:33]MH_I2C_Read... [08:51:33]Read from MH i2c: E2 03 00 [08:51:33]MH_I2C_Read... [08:51:33]Read from MH i2c: E2 03 00 98 32 00 90 00 3E [08:51:33]RAPDU: 90 00 [08:51:33]wFMCommunicate OK [08:51:33]SAM_PROTO_ClearQueue done [08:51:33]KKMCreateOFDPacket [08:51:33]OFDProtocolAddRootSTLVToBuf [08:51:33]FM_MakeSignedData [08:51:33]FM_MakeSignedData [08:51:33]SAM_PROTO_SignData [08:51:33]wFMCommunicate request_size=4 [08:51:33]MH_SAM_APDU [08:51:33]CAPDU: 80 0D 01 02 [08:51:33]Write to MH i2c: E2 08 00 99 32 80 0D 01 02 00 00 00 00 44 [08:51:33]Write i2c OK [08:51:33]MH_I2C_Read... [08:51:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:51:33]Read from MH i2c: E2 [08:51:33]MH_I2C_Read... [08:51:33]Read from MH i2c: E2 03 00 [08:51:33]MH_I2C_Read... [08:51:33]Read from MH i2c: E2 03 00 99 32 00 90 00 3F [08:51:33]RAPDU: 90 00 [08:51:33]wFMCommunicate OK [08:51:33]wFMCommunicate request_size=255 [08:51:33]MH_SAM_APDU [08:51:33]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 45 00 00 00 F4 03 04 00 17 16 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 D5 DC 02 00 35 04 06 00 CD 41 F7 07 [08:51:33]Write to MH i2c: E2 02 01 9A 32 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 45 00 00 00 F4 03 04 00 17 16 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 D5 DC 02 00 35 04 06 00 CD 41 F7 07 00 00 18 [08:51:33]Write i2c OK [08:51:33]MH_I2C_Read... [08:51:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:51:33]Read from MH i2c: E2 [08:51:33]MH_I2C_Read... [08:51:33]Read from MH i2c: E2 03 00 [08:51:33]MH_I2C_Read... [08:51:33]Read from MH i2c: E2 03 00 9A 32 00 90 00 40 [08:51:33]RAPDU: 90 00 [08:51:33]wFMCommunicate OK [08:51:33]wFMCommunicate request_size=7 [08:51:33]MH_SAM_APDU [08:51:33]CAPDU: 80 0D 02 02 02 FB 2B [08:51:33]Write to MH i2c: E2 0A 00 9B 32 80 0D 02 02 02 00 FB 2B 00 00 71 [08:51:33]Write i2c OK [08:51:33]MH_I2C_Read... [08:51:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:51:33]Read from MH i2c: E2 [08:51:33]MH_I2C_Read... [08:51:33]Read from MH i2c: E2 03 00 [08:51:33]MH_I2C_Read... [08:51:33]Read from MH i2c: E2 03 00 9B 32 00 90 00 41 [08:51:33]RAPDU: 90 00 [08:51:33]wFMCommunicate OK [08:51:33]wFMCommunicate request_size=4 [08:51:33]MH_SAM_APDU [08:51:33]CAPDU: 80 0D 03 02 [08:51:33]Write to MH i2c: E2 08 00 9C 32 80 0D 03 02 00 00 00 00 49 [08:51:33]Write i2c OK [08:51:33]MH_I2C_Read... [08:51:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:51:33]Read from MH i2c: E2 [08:51:33]MH_I2C_Read... [08:51:33]Read from MH i2c: E2 0B 00 [08:51:33]MH_I2C_Read... [08:51:33]Read from MH i2c: E2 0B 00 9C 32 00 C3 73 4A 37 B1 43 FF BB 90 00 AF [08:51:33]RAPDU: C3 73 4A 37 B1 43 FF BB 90 00 [08:51:33]wFMCommunicate OK [08:51:33]SAM_PROTO_SignData done [08:51:33]FM_MakeSignedData done [08:51:33]CreateOFDProtocolMessage [08:51:33]wFMCommunicate request_size=4 [08:51:33]MH_SAM_APDU [08:51:33]CAPDU: 80 11 00 00 [08:51:33]Write to MH i2c: E2 08 00 9D 32 80 11 00 00 00 00 00 00 49 [08:51:33]Write i2c OK [08:51:33]MH_I2C_Read... [08:51:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:51:33]Read from MH i2c: E2 [08:51:33]MH_I2C_Read... [08:51:33]Read from MH i2c: E2 17 00 [08:51:33]MH_I2C_Read... [08:51:33]Read from MH i2c: E2 17 00 9D 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 97 [08:51:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [08:51:33]wFMCommunicate OK [08:51:33]CreateOFDProtocolMessage done [08:51:33]OFDSenderStorePacket 187605 [08:51:33]StoreOFDPacket docnum=187605 [08:51:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 1F C6 04 01 DC 06 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 45 00 00 00 F4 03 04 00 17 16 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 D5 DC 02 00 35 04 06 00 CD 41 F7 07 FB 2B C3 73 4A 37 B1 43 FF BB [08:51:33]CheckFolder [08:51:33]dirname=/storage/ofd_packets [08:51:33]CheckFolder done [08:51:33]ProducePacketName [08:51:33]name=ofd_packets/00187605 [08:51:33]NVStorageSaveData ofd_packets/00187605 [08:51:33]File name is /storage/ofd_packets/00187605 [08:51:33]Write 298 bytes [08:51:33]NVStorageSaveData done [08:51:33]OFDSenderStorePacket done [08:51:33]KKMCreateOFDPacket done [08:51:33]NVStorageSaveData kkm_last_timestamp [08:51:33]File name is /storage/kkm_last_timestamp [08:51:33]Write 4 bytes [08:51:33]NVStorageSaveData done [08:51:33]ExternCall_PrintAddStr [08:51:33]wPrintStart [08:51:33]Write to MH i2c: 01 00 00 9E 32 D0 [08:51:33]Write i2c OK [08:51:33]MH_I2C_Read... [08:51:33]Read from MH i2c: 01 [08:51:33]MH_I2C_Read... [08:51:33]Read from MH i2c: 01 07 00 [08:51:33]MH_I2C_Read... [08:51:33]Read from MH i2c: 01 07 00 9E 32 00 00 00 00 00 FF 0F E5 [08:51:33]RasterBufferAndPrint [08:51:33]line Счет N : (1)209657 [08:51:33]line ИНН: 02508201610067 [08:51:33]line Контрольно-Кассовый Чек [08:51:33]line ПРОДАЖА [08:51:33]line ТРК (МРК, ГНК) : 51 [08:51:33]line Товар: 2710194210 [08:51:33]line ДТ-К-5 [08:51:33]line 26.250 * 76.20 [08:51:33]line = 2000.25 [08:51:33]line НДС 12% НСП 1% [08:51:33]line > о реализуемом товаре [08:51:33]line ОКРУГЛЕНИЕ: -0.25 [08:51:33]line ИТОГО: 2000.00 [08:51:33]line Внесено: 2000.00 [08:51:33]line СДАЧА: 0.00 [08:51:33]line НСП 1% : 17.70 [08:51:33]line НДС 12% : 212.42 [08:51:33]line Наличными: 2000.00 [08:51:33]line Безнал.: 0.00 [08:51:33]line Место: АЗС № 86 "Партнер Нефть" [08:51:33]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [08:51:33]line СНО: Общий режим [08:51:33]line Чек 69 21.10.2024 08:51 [08:51:33]line Смена: 460 ФФД: 1.0 [08:51:33]line ЗНМ: 0300000155 [08:51:33]line РНМ: 0000000000100030 [08:51:33]line Версия ККМ: 001 [08:51:33]line ФМ: 0000000000965340 [08:51:33]line ФД: 187605 [08:51:33]line ФПД: 225683201063723 [08:51:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T085135&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187605&fm=225683201063723&tin=02508201610067®Number=0000000000100030&sum=200000 [08:51:33]OFD Sender: Processing packet 187605 [packets to send 1062, broken 1061] [08:51:33]ProducePacketName [08:51:33]name=ofd_packets/00187605 [08:51:33]OFD Sender: To server: pG, [08:51:33]CommunicateWithHost lk.salyk.kg:30040 [08:51:33]ConnectInit lk.salyk.kg [08:51:33]written 0, free lines is 4095 [08:51:34]Connected sock=10 [08:51:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 1F C6 04 01 DC 06 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 45 00 00 00 F4 03 04 00 17 16 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 D5 DC 02 00 35 04 06 00 CD 41 F7 07 FB 2B C3 73 4A 37 B1 43 FF BB [08:51:34]Write to MH i2c: 01 00 00 C9 32 FB [08:51:34]Write i2c OK [08:51:34]MH_I2C_Read... [08:51:34]Read from MH i2c: 01 [08:51:34]MH_I2C_Read... [08:51:34]Read from MH i2c: 01 07 00 [08:51:34]MH_I2C_Read... [08:51:34]Read from MH i2c: 01 07 00 C9 32 00 00 00 00 00 64 0C 72 [08:51:34]RasterBufferAndPrint [08:51:34]line [08:51:34]line [08:51:34]line [08:51:34]line [08:51:34]line [08:51:34]written 0, free lines is 3175 [08:51:34]MH_Cut [08:51:34]Write to MH i2c: D1 01 00 D0 32 01 D4 [08:51:34]Write i2c OK [08:51:34]MH_I2C_Read... [08:51:34]Read from MH i2c: D1 [08:51:34]MH_I2C_Read... [08:51:34]Read from MH i2c: D1 01 00 [08:51:34]MH_I2C_Read... [08:51:34]Read from MH i2c: D1 01 00 D0 32 00 D3 [08:51:34]Write to MH i2c: 01 00 00 D1 32 03 [08:51:34]Write i2c OK [08:51:34]MH_I2C_Read... [08:51:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 41 BF 47 00 9C 6E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 D5 DC 02 00 F4 03 04 00 07 C0 15 67 B6 04 01 00 00 85 93 F3 27 3D 53 47 36 [08:51:34]CommunicateWithHost err = 0 [08:51:34]CheckOFDResponse [08:51:34]1017 (14) - 77093643461234 [08:51:34]1041 (16) - 0000000000965340 [08:51:34]1040 (4) - 187605 [08:51:34]1012 (4) - 21.10.2024 02:44 [08:51:34]1206 (1) - 0 [08:51:34]OFD Sender: Remove packet 187605 [08:51:34]ProducePacketName [08:51:34]name=ofd_packets/00187605 [08:51:34]NVStorageDeleteData [08:51:34]OFD Sender: No OFD packet to send [08:51:35]*** Cut start [08:51:35]*** Partial cut [08:51:35]*** CUTSNS_PIN = 1 [08:51:35]*** CUTSNS_PIN = 0 [08:51:35]*** Brake cut motor [08:51:36]Read from MH i2c: 01 [08:51:36]MH_I2C_Read... [08:51:36]*** Stop cut motor [08:51:36]*** Cut end [08:51:36]Read from MH i2c: 01 07 00 [08:51:36]MH_I2C_Read... [08:51:36]Read from MH i2c: 01 07 00 D1 32 00 00 00 00 00 FF 0F 18 [08:51:36]process_action close_receipt done [08:51:36]requested_data is exist [08:51:36]produce_requested_data [08:51:36]requested_item fm.sn is exist - process it [08:51:36]wFMCommunicate request_size=4 [08:51:36]MH_SAM_APDU [08:51:36]CAPDU: 80 11 00 00 [08:51:36]Write to MH i2c: E2 08 00 D2 32 80 11 00 00 00 00 00 00 7E [08:51:36]Write i2c OK [08:51:36]MH_I2C_Read... [08:51:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:51:36]Read from MH i2c: E2 [08:51:36]MH_I2C_Read... [08:51:36]Read from MH i2c: E2 17 00 [08:51:36]MH_I2C_Read... [08:51:36]Read from MH i2c: E2 17 00 D2 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 CC [08:51:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [08:51:36]wFMCommunicate OK [08:51:36]requested_item fd.num is exist - process it [08:51:36]SAM_PROTO_GetFieldsCounters [08:51:36]wFMCommunicate request_size=4 [08:51:36]MH_SAM_APDU [08:51:36]CAPDU: 80 13 00 00 [08:51:36]Write to MH i2c: E2 08 00 D3 32 80 13 00 00 00 00 00 00 81 [08:51:36]Write i2c OK [08:51:36]MH_I2C_Read... [08:51:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:51:36]Read from MH i2c: E2 [08:51:36]MH_I2C_Read... [08:51:36]Read from MH i2c: E2 62 00 [08:51:36]MH_I2C_Read... [08:51:36]Read from MH i2c: E2 62 00 D3 32 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 D5 DC 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 45 00 00 00 5E 04 04 00 45 00 00 00 57 04 04 00 46 00 00 00 19 04 04 00 00 00 00 00 90 00 D7 [08:51:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 D5 DC 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 45 00 00 00 5E 04 04 00 45 00 00 00 57 04 04 00 46 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:51:36]wFMCommunicate OK [08:51:36]SAM_PROTO_GetFieldsCounters done [08:51:36]requested_item shift.num is exist - process it [08:51:36]requested_item shift.opened is exist - process it [08:51:36]req_shift_opened [08:51:36]FM_GetShiftState [08:51:36]SAM_PROTO_GetShiftState [08:51:36]wFMCommunicate request_size=4 [08:51:36]MH_SAM_APDU [08:51:36]CAPDU: 80 13 01 00 [08:51:36]Write to MH i2c: E2 08 00 D4 32 80 13 01 00 00 00 00 00 83 [08:51:36]Write i2c OK [08:51:36]MH_I2C_Read... [08:51:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:51:36]Read from MH i2c: E2 [08:51:36]MH_I2C_Read... [08:51:36]Read from MH i2c: E2 0E 00 [08:51:36]MH_I2C_Read... [08:51:36]Read from MH i2c: E2 0E 00 D4 32 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 E2 [08:51:36]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [08:51:36]wFMCommunicate OK [08:51:36]SAM_PROTO_GetShiftState done [08:51:36]FM_GetShiftState done [08:51:36]req_shift_opened done [08:51:36]requested_item shift.open_date is exist - process it [08:51:36]req_shift_open_date [08:51:36]req_shift_open_date done [08:51:36]produce_requested_data done [08:51:36]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187605,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [08:51:36]process_action_free close_receipt [08:51:36]json_value_free [08:51:36]json_value_free done [08:51:36]process_json_proto returns [08:51:36]Send response to host [08:51:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187605,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [08:51:36]free response buf [08:51:36]execute_script done [08:51:36]execute_script returns [08:51:36]free content buf [08:51:36]Sock 9.Close socket [08:51:36]Sock 9.Thread stoped [08:51:39]OFD Sender: No OFD packet to send [08:51:44]OFD Sender: No OFD packet to send [08:51:49]OFD Sender: No OFD packet to send [08:51:54]OFD Sender: No OFD packet to send [08:51:59]OFD Sender: No OFD packet to send [08:52:05]OFD Sender: No OFD packet to send [08:52:10]OFD Sender: No OFD packet to send [08:52:15]OFD Sender: No OFD packet to send [08:52:20]OFD Sender: No OFD packet to send [08:52:25]OFD Sender: No OFD packet to send [08:52:30]OFD Sender: No OFD packet to send [08:52:35]OFD Sender: No OFD packet to send [08:52:40]OFD Sender: No OFD packet to send [08:52:45]OFD Sender: No OFD packet to send [08:52:50]OFD Sender: No OFD packet to send [08:52:55]OFD Sender: No OFD packet to send [08:53:00]OFD Sender: No OFD packet to send [08:53:05]OFD Sender: No OFD packet to send [08:53:10]OFD Sender: No OFD packet to send [08:53:15]OFD Sender: No OFD packet to send [08:53:20]OFD Sender: No OFD packet to send [08:53:25]OFD Sender: No OFD packet to send [08:53:30]OFD Sender: No OFD packet to send [08:53:35]OFD Sender: No OFD packet to send [08:53:40]OFD Sender: No OFD packet to send [08:53:45]OFD Sender: No OFD packet to send [08:53:50]OFD Sender: No OFD packet to send [08:53:55]OFD Sender: No OFD packet to send [08:54:00]OFD Sender: No OFD packet to send [08:54:05]OFD Sender: No OFD packet to send [08:54:10]OFD Sender: No OFD packet to send [08:54:15]OFD Sender: No OFD packet to send [08:54:20]OFD Sender: No OFD packet to send [08:54:25]OFD Sender: No OFD packet to send [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:15]OFD Sender: No OFD packet to send [08:55:17]accept exits with 8 [08:55:17]New connection [08:55:17]New thread 3067157860 created [08:55:17]Thread 3067014500 joined [08:55:17]Waiting for new connection... [08:55:17] Sock 8.Parse request [08:55:17]Sock 8.Check first char [08:55:17]Sock 8.First char is OK [08:55:17]request: POST /json_proto HTTP/1.0 [08:55:17]Method: POST [08:55:17]URL: /json_proto [08:55:17]Method is POST - this is cgi request [08:55:17]url: /json_proto [08:55:17]query_string will be loaded in cgi processing [08:55:17]execute_cgi json_proto POST (null) [08:55:17]execute_cgi path=json_proto method=POST [08:55:17]POST find Content-Length [08:55:17]Host: 172.17.42.131:8080 [08:55:17]Content-Length: 677 [08:55:17]Content-Type: application/json [08:55:17] [08:55:17]POST finish read [08:55:17]Found Content-Length = 677 [08:55:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209658", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:55:17]execute_script... [08:55: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)209658", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:55:17]POST & json_proto [08:55:17]process_json_proto [08:55:17]json parsed OK: [08:55:17]protocol is kg_v1.0 [08:55:17]action value=close_receipt [08:55:17]process_action close_receipt [08:55:17]cmd_close_receipt [08:55:17]MH_GetDate [08:55:17]Write to MH i2c: F0 00 00 D5 32 F6 [08:55:17]Write i2c OK [08:55:17]MH_I2C_Read... [08:55:17]Read from MH i2c: F0 [08:55:17]MH_I2C_Read... [08:55:17]Read from MH i2c: F0 09 00 [08:55:17]MH_I2C_Read... [08:55:17]Read from MH i2c: F0 09 00 D5 32 00 F8 16 16 67 A0 18 CA 66 72 [08:55:17]GetLastDocTimeStamp 1729500695 [08:55:17]current date 1729500920 [08:55:17]FM_GetShiftState [08:55:17]SAM_PROTO_GetShiftState [08:55:17]wFMCommunicate request_size=4 [08:55:17]MH_SAM_APDU [08:55:17]CAPDU: 80 13 01 00 [08:55:17]Write to MH i2c: E2 08 00 D6 32 80 13 01 00 00 00 00 00 85 [08:55:17]Write i2c OK [08:55:17]MH_I2C_Read... [08:55:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:55:17]Read from MH i2c: E2 [08:55:17]MH_I2C_Read... [08:55:17]Read from MH i2c: E2 0E 00 [08:55:17]MH_I2C_Read... [08:55:17]Read from MH i2c: E2 0E 00 D6 32 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 E4 [08:55:17]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [08:55:17]wFMCommunicate OK [08:55:17]SAM_PROTO_GetShiftState done [08:55:17]FM_GetShiftState done [08:55:17]opened in 1729469754 [08:55:17]opened+sec_in_day 1729556154 [08:55:17]quantity*price = 50041 [08:55:17]sum+1 = 50042 [08:55: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 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 70 21.10.2024 08:55 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 187606 ФПД: 34715955550680 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T085520&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187606&fm=34715955550680&tin=02508201610067®Number=0000000000100030&sum=50000 [08:55:18]StoreToDocumentArchive [08:55:18]shift 460 fd 187606 [08:55:18]save to /storage/0460/doc_00187606 [08:55:18]save last doc name /storage/0460/doc_00187606 to /storage/kkm_last_doc_name [08:55:18]save OK [08:55:18]Clear old archive folders... [08:55:18]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:55:18]tlvbuf is 010A30E0 [08:55:18]SAM_PROTO_ClearQueue [08:55:18]wFMCommunicate request_size=4 [08:55:18]MH_SAM_APDU [08:55:18]CAPDU: 80 09 00 00 [08:55:18]Write to MH i2c: E2 08 00 E3 32 80 09 00 00 00 00 00 00 87 [08:55:18]Write i2c OK [08:55:18]MH_I2C_Read... [08:55:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:55:18]Read from MH i2c: E2 [08:55:18]MH_I2C_Read... [08:55:18]Read from MH i2c: E2 03 00 [08:55:18]MH_I2C_Read... [08:55:18]Read from MH i2c: E2 03 00 E3 32 00 90 00 89 [08:55:18]RAPDU: 90 00 [08:55:18]wFMCommunicate OK [08:55:18]SAM_PROTO_ClearQueue done [08:55:18]KKMCreateOFDPacket [08:55:18]OFDProtocolAddRootSTLVToBuf [08:55:18]FM_MakeSignedData [08:55:18]FM_MakeSignedData [08:55:18]SAM_PROTO_SignData [08:55:18]wFMCommunicate request_size=4 [08:55:18]MH_SAM_APDU [08:55:18]CAPDU: 80 0D 01 02 [08:55:18]Write to MH i2c: E2 08 00 E4 32 80 0D 01 02 00 00 00 00 8F [08:55:18]Write i2c OK [08:55:18]MH_I2C_Read... [08:55:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:55:18]Read from MH i2c: E2 [08:55:18]MH_I2C_Read... [08:55:18]Read from MH i2c: E2 03 00 [08:55:18]MH_I2C_Read... [08:55:18]Read from MH i2c: E2 03 00 E4 32 00 90 00 8A [08:55:18]RAPDU: 90 00 [08:55:18]wFMCommunicate OK [08:55:18]wFMCommunicate request_size=255 [08:55:18]MH_SAM_APDU [08:55:18]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 F8 16 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 D6 DC 02 00 35 04 06 00 1F [08:55:18]Write to MH i2c: E2 02 01 E5 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 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 F8 16 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 D6 DC 02 00 35 04 06 00 1F 00 00 73 [08:55:18]Write i2c OK [08:55:18]MH_I2C_Read... [08:55:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:55:19]Read from MH i2c: E2 [08:55:19]MH_I2C_Read... [08:55:19]Read from MH i2c: E2 03 00 [08:55:19]MH_I2C_Read... [08:55:19]Read from MH i2c: E2 03 00 E5 32 00 90 00 8B [08:55:19]RAPDU: 90 00 [08:55:19]wFMCommunicate OK [08:55:19]wFMCommunicate request_size=10 [08:55:19]MH_SAM_APDU [08:55:19]CAPDU: 80 0D 02 02 05 92 F0 32 D9 D8 [08:55:19]Write to MH i2c: E2 0D 00 E6 32 80 0D 02 02 05 00 92 F0 32 D9 D8 00 00 01 [08:55:19]Write i2c OK [08:55:19]MH_I2C_Read... [08:55:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:55:19]Read from MH i2c: E2 [08:55:19]MH_I2C_Read... [08:55:19]Read from MH i2c: E2 03 00 [08:55:19]MH_I2C_Read... [08:55:19]Read from MH i2c: E2 03 00 E6 32 00 90 00 8C [08:55:19]RAPDU: 90 00 [08:55:19]wFMCommunicate OK [08:55:19]wFMCommunicate request_size=4 [08:55:19]MH_SAM_APDU [08:55:19]CAPDU: 80 0D 03 02 [08:55:19]Write to MH i2c: E2 08 00 E7 32 80 0D 03 02 00 00 00 00 94 [08:55:19]Write i2c OK [08:55:19]MH_I2C_Read... [08:55:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:55:19]Read from MH i2c: E2 [08:55:19]MH_I2C_Read... [08:55:19]Read from MH i2c: E2 0B 00 [08:55:19]MH_I2C_Read... [08:55:19]Read from MH i2c: E2 0B 00 E7 32 00 95 22 B7 C2 2C 2A 0C E4 90 00 0B [08:55:19]RAPDU: 95 22 B7 C2 2C 2A 0C E4 90 00 [08:55:19]wFMCommunicate OK [08:55:19]SAM_PROTO_SignData done [08:55:19]FM_MakeSignedData done [08:55:19]CreateOFDProtocolMessage [08:55:19]wFMCommunicate request_size=4 [08:55:19]MH_SAM_APDU [08:55:19]CAPDU: 80 11 00 00 [08:55:19]Write to MH i2c: E2 08 00 E8 32 80 11 00 00 00 00 00 00 94 [08:55:19]Write i2c OK [08:55:19]MH_I2C_Read... [08:55:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:55:19]Read from MH i2c: E2 [08:55:19]MH_I2C_Read... [08:55:19]Read from MH i2c: E2 17 00 [08:55:19]MH_I2C_Read... [08:55:19]Read from MH i2c: E2 17 00 E8 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 E2 [08:55:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [08:55:19]wFMCommunicate OK [08:55:19]CreateOFDProtocolMessage done [08:55:19]OFDSenderStorePacket 187606 [08:55:19]StoreOFDPacket docnum=187606 [08:55:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 A1 7D 07 01 DB FE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 F8 16 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 D6 DC 02 00 35 04 06 00 1F 92 F0 32 D9 D8 95 22 B7 C2 2C 2A 0C E4 [08:55:19]CheckFolder [08:55:19]dirname=/storage/ofd_packets [08:55:19]CheckFolder done [08:55:19]ProducePacketName [08:55:19]name=ofd_packets/00187606 [08:55:19]NVStorageSaveData ofd_packets/00187606 [08:55:19]File name is /storage/ofd_packets/00187606 [08:55:19]Write 301 bytes [08:55:19]NVStorageSaveData done [08:55:19]OFDSenderStorePacket done [08:55:19]KKMCreateOFDPacket done [08:55:19]NVStorageSaveData kkm_last_timestamp [08:55:19]File name is /storage/kkm_last_timestamp [08:55:19]Write 4 bytes [08:55:19]NVStorageSaveData done [08:55:19]ExternCall_PrintAddStr [08:55:19]wPrintStart [08:55:19]Write to MH i2c: 01 00 00 E9 32 1B [08:55:19]Write i2c OK [08:55:19]MH_I2C_Read... [08:55:19]Read from MH i2c: 01 [08:55:19]MH_I2C_Read... [08:55:19]Read from MH i2c: 01 07 00 [08:55:19]MH_I2C_Read... [08:55:19]Read from MH i2c: 01 07 00 E9 32 00 00 00 00 00 FF 0F 30 [08:55:19]RasterBufferAndPrint [08:55:19]line Счет N : (1)209658 [08:55:19]line ИНН: 02508201610067 [08:55:19]line Контрольно-Кассовый Чек [08:55:19]line ПРОДАЖА [08:55:19]line ТРК (МРК, ГНК) : 32 [08:55:19]line Товар: 2710124130 [08:55:19]line Аи-92-К-3 [08:55:19]line 7.480 * 66.90 [08:55:19]line = 500.41 [08:55:19]line НДС 12% НСП 1% [08:55:19]line > о реализуемом товаре [08:55:19]line ОКРУГЛЕНИЕ: -0.41 [08:55:19]line ИТОГО: 500.00 [08:55:19]line Внесено: 500.00 [08:55:19]line СДАЧА: 0.00 [08:55:19]line НСП 1% : 4.43 [08:55:19]line НДС 12% : 53.14 [08:55:19]line Наличными: 500.00 [08:55:19]line Безнал.: 0.00 [08:55:19]line Место: АЗС № 86 "Партнер Нефть" [08:55:19]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [08:55:19]line СНО: Общий режим [08:55:19]line Чек 70 21.10.2024 08:55 [08:55:19]line Смена: 460 ФФД: 1.0 [08:55:19]line ЗНМ: 0300000155 [08:55:19]line РНМ: 0000000000100030 [08:55:19]line Версия ККМ: 001 [08:55:19]line ФМ: 0000000000965340 [08:55:19]line ФД: 187606 [08:55:19]line ФПД: 34715955550680 [08:55:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T085520&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187606&fm=34715955550680&tin=02508201610067®Number=0000000000100030&sum=50000 [08:55:19]OFD Sender: Processing packet 187606 [packets to send 1062, broken 1061] [08:55:19]ProducePacketName [08:55:19]name=ofd_packets/00187606 [08:55:19]OFD Sender: To server: pG, [08:55:19]CommunicateWithHost lk.salyk.kg:30040 [08:55:19]ConnectInit lk.salyk.kg [08:55:19]written 0, free lines is 4095 [08:55:19]Connected sock=10 [08:55:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 A1 7D 07 01 DB FE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 F8 16 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 D6 DC 02 00 35 04 06 00 1F 92 F0 32 D9 D8 95 22 B7 C2 2C 2A 0C E4 [08:55:19]Write to MH i2c: 01 00 00 14 33 47 [08:55:19]Write i2c OK [08:55:19]MH_I2C_Read... [08:55:19]Read from MH i2c: 01 [08:55:19]MH_I2C_Read... [08:55:19]Read from MH i2c: 01 07 00 [08:55:19]MH_I2C_Read... [08:55:19]Read from MH i2c: 01 07 00 14 33 00 00 00 00 00 65 0C BF [08:55:19]RasterBufferAndPrint [08:55:19]line [08:55:19]line [08:55:19]line [08:55:19]line [08:55:19]line [08:55:19]written 0, free lines is 3176 [08:55:19]MH_Cut [08:55:19]Write to MH i2c: D1 01 00 1B 33 01 20 [08:55:20]Write i2c OK [08:55:20]MH_I2C_Read... [08:55:20]Read from MH i2c: D1 [08:55:20]MH_I2C_Read... [08:55:20]Read from MH i2c: D1 01 00 [08:55:20]MH_I2C_Read... [08:55:20]Read from MH i2c: D1 01 00 1B 33 00 1F [08:55:20]Write to MH i2c: 01 00 00 1C 33 4F [08:55:20]Write i2c OK [08:55:20]MH_I2C_Read... [08:55:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 24 6E 47 00 6F A8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 D6 DC 02 00 F4 03 04 00 E9 C0 15 67 B6 04 01 00 00 66 FC 8F A2 C6 C1 10 0C [08:55:20]CommunicateWithHost err = 0 [08:55:20]CheckOFDResponse [08:55:20]1017 (14) - 77093643461234 [08:55:20]1041 (16) - 0000000000965340 [08:55:20]1040 (4) - 187606 [08:55:20]1012 (4) - 21.10.2024 02:48 [08:55:20]1206 (1) - 0 [08:55:20]OFD Sender: Remove packet 187606 [08:55:20]ProducePacketName [08:55:20]name=ofd_packets/00187606 [08:55:20]NVStorageDeleteData [08:55:20]OFD Sender: No OFD packet to send [08:55:21]*** Cut start [08:55:21]*** Partial cut [08:55:21]*** CUTSNS_PIN = 1 [08:55:21]*** CUTSNS_PIN = 0 [08:55:21]*** Brake cut motor [08:55:21]Read from MH i2c: 01 [08:55:21]MH_I2C_Read... [08:55:21]*** Stop cut motor [08:55:21]*** Cut end [08:55:21]Read from MH i2c: 01 07 00 [08:55:21]MH_I2C_Read... [08:55:21]Read from MH i2c: 01 07 00 1C 33 00 00 00 00 00 FF 0F 64 [08:55:21]process_action close_receipt done [08:55:21]requested_data is exist [08:55:21]produce_requested_data [08:55:21]requested_item fm.sn is exist - process it [08:55:21]wFMCommunicate request_size=4 [08:55:21]MH_SAM_APDU [08:55:21]CAPDU: 80 11 00 00 [08:55:21]Write to MH i2c: E2 08 00 1D 33 80 11 00 00 00 00 00 00 CA [08:55:21]Write i2c OK [08:55:21]MH_I2C_Read... [08:55:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:55:21]Read from MH i2c: E2 [08:55:21]MH_I2C_Read... [08:55:21]Read from MH i2c: E2 17 00 [08:55:21]MH_I2C_Read... [08:55:21]Read from MH i2c: E2 17 00 1D 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 18 [08:55:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [08:55:21]wFMCommunicate OK [08:55:21]requested_item fd.num is exist - process it [08:55:21]SAM_PROTO_GetFieldsCounters [08:55:21]wFMCommunicate request_size=4 [08:55:21]MH_SAM_APDU [08:55:21]CAPDU: 80 13 00 00 [08:55:21]Write to MH i2c: E2 08 00 1E 33 80 13 00 00 00 00 00 00 CD [08:55:21]Write i2c OK [08:55:21]MH_I2C_Read... [08:55:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:55:22]Read from MH i2c: E2 [08:55:22]MH_I2C_Read... [08:55:22]Read from MH i2c: E2 62 00 [08:55:22]MH_I2C_Read... [08:55:22]Read from MH i2c: E2 62 00 1E 33 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 D6 DC 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 46 00 00 00 5E 04 04 00 46 00 00 00 57 04 04 00 47 00 00 00 19 04 04 00 00 00 00 00 90 00 27 [08:55:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 D6 DC 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 46 00 00 00 5E 04 04 00 46 00 00 00 57 04 04 00 47 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:55:22]wFMCommunicate OK [08:55:22]SAM_PROTO_GetFieldsCounters done [08:55:22]requested_item shift.num is exist - process it [08:55:22]requested_item shift.opened is exist - process it [08:55:22]req_shift_opened [08:55:22]FM_GetShiftState [08:55:22]SAM_PROTO_GetShiftState [08:55:22]wFMCommunicate request_size=4 [08:55:22]MH_SAM_APDU [08:55:22]CAPDU: 80 13 01 00 [08:55:22]Write to MH i2c: E2 08 00 1F 33 80 13 01 00 00 00 00 00 CF [08:55:22]Write i2c OK [08:55:22]MH_I2C_Read... [08:55:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:55:22]Read from MH i2c: E2 [08:55:22]MH_I2C_Read... [08:55:22]Read from MH i2c: E2 0E 00 [08:55:22]MH_I2C_Read... [08:55:22]Read from MH i2c: E2 0E 00 1F 33 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 2E [08:55:22]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [08:55:22]wFMCommunicate OK [08:55:22]SAM_PROTO_GetShiftState done [08:55:22]FM_GetShiftState done [08:55:22]req_shift_opened done [08:55:22]requested_item shift.open_date is exist - process it [08:55:22]req_shift_open_date [08:55:22]req_shift_open_date done [08:55:22]produce_requested_data done [08:55:22]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187606,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [08:55:22]process_action_free close_receipt [08:55:22]json_value_free [08:55:22]json_value_free done [08:55:22]process_json_proto returns [08:55:22]Send response to host [08:55:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187606,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [08:55:22]free response buf [08:55:22]execute_script done [08:55:22]execute_script returns [08:55:22]free content buf [08:55:22]Sock 8.Close socket [08:55:22]Sock 8.Thread stoped [08:55:25]OFD Sender: No OFD packet to send [08:55:30]OFD Sender: No OFD packet to send [08:55:35]OFD Sender: No OFD packet to send [08:55:40]OFD Sender: No OFD packet to send [08:55:45]OFD Sender: No OFD packet to send [08:55:50]OFD Sender: No OFD packet to send [08:55:55]OFD Sender: No OFD packet to send [08:56:00]OFD Sender: No OFD packet to send [08:56:05]OFD Sender: No OFD packet to send [08:56:10]OFD Sender: No OFD packet to send [08:56:15]OFD Sender: No OFD packet to send [08:56:20]OFD Sender: No OFD packet to send [08:56:25]OFD Sender: No OFD packet to send [08:56:30]OFD Sender: No OFD packet to send [08:56:35]OFD Sender: No OFD packet to send [08:56:40]OFD Sender: No OFD packet to send [08:56:45]OFD Sender: No OFD packet to send [08:56:50]OFD Sender: No OFD packet to send [08:56:55]OFD Sender: No OFD packet to send [08:56:59]accept exits with 9 [08:56:59]New connection [08:56:59]New thread 3067014500 created [08:56:59]Thread 3067157860 joined [08:56:59]Waiting for new connection... [08:56:59] Sock 9.Parse request [08:56:59]Sock 9.Check first char [08:56:59]Sock 9.First char is OK [08:56:59]request: POST /json_proto HTTP/1.0 [08:56:59]Method: POST [08:56:59]URL: /json_proto [08:56:59]Method is POST - this is cgi request [08:56:59]url: /json_proto [08:56:59]query_string will be loaded in cgi processing [08:56:59]execute_cgi json_proto POST (null) [08:56:59]execute_cgi path=json_proto method=POST [08:56:59]POST find Content-Length [08:56:59]Host: 172.17.42.131:8080 [08:56:59]Content-Length: 677 [08:56:59]Content-Type: application/json [08:56:59] [08:56:59]POST finish read [08:56:59]Found Content-Length = 677 [08:56:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209659", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:56:59]execute_script... [08:56: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)209659", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:56:59]POST & json_proto [08:56:59]process_json_proto [08:56:59]json parsed OK: [08:56:59]protocol is kg_v1.0 [08:56:59]action value=close_receipt [08:56:59]process_action close_receipt [08:56:59]cmd_close_receipt [08:56:59]MH_GetDate [08:56:59]Write to MH i2c: F0 00 00 20 33 42 [08:56:59]Write i2c OK [08:56:59]MH_I2C_Read... [08:56:59]Read from MH i2c: F0 [08:56:59]MH_I2C_Read... [08:56:59]Read from MH i2c: F0 09 00 [08:56:59]MH_I2C_Read... [08:56:59]Read from MH i2c: F0 09 00 20 33 00 5E 17 16 67 A0 18 CA 66 25 [08:56:59]GetLastDocTimeStamp 1729500920 [08:56:59]current date 1729501022 [08:56:59]FM_GetShiftState [08:56:59]SAM_PROTO_GetShiftState [08:56:59]wFMCommunicate request_size=4 [08:56:59]MH_SAM_APDU [08:56:59]CAPDU: 80 13 01 00 [08:56:59]Write to MH i2c: E2 08 00 21 33 80 13 01 00 00 00 00 00 D1 [08:56:59]Write i2c OK [08:56:59]MH_I2C_Read... [08:56:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:56:59]Read from MH i2c: E2 [08:56:59]MH_I2C_Read... [08:56:59]Read from MH i2c: E2 0E 00 [08:56:59]MH_I2C_Read... [08:56:59]Read from MH i2c: E2 0E 00 21 33 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 30 [08:56:59]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [08:56:59]wFMCommunicate OK [08:56:59]SAM_PROTO_GetShiftState done [08:56:59]FM_GetShiftState done [08:56:59]opened in 1729469754 [08:56:59]opened+sec_in_day 1729556154 [08:56:59]quantity*price = 50041 [08:56:59]sum+1 = 50042 [08:56:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 71 21.10.2024 08:57 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 187607 ФПД: 43831391189954 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T085702&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187607&fm=43831391189954&tin=02508201610067®Number=0000000000100030&sum=50000 [08:57:00]StoreToDocumentArchive [08:57:00]shift 460 fd 187607 [08:57:00]save to /storage/0460/doc_00187607 [08:57:00]save last doc name /storage/0460/doc_00187607 to /storage/kkm_last_doc_name [08:57:00]save OK [08:57:00]Clear old archive folders... [08:57:00]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:57:00]tlvbuf is 01084760 [08:57:00]SAM_PROTO_ClearQueue [08:57:00]wFMCommunicate request_size=4 [08:57:00]MH_SAM_APDU [08:57:00]CAPDU: 80 09 00 00 [08:57:00]Write to MH i2c: E2 08 00 2E 33 80 09 00 00 00 00 00 00 D3 [08:57:00]Write i2c OK [08:57:00]MH_I2C_Read... [08:57:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:57:00]Read from MH i2c: E2 [08:57:00]MH_I2C_Read... [08:57:00]Read from MH i2c: E2 03 00 [08:57:00]MH_I2C_Read... [08:57:00]Read from MH i2c: E2 03 00 2E 33 00 90 00 D5 [08:57:00]RAPDU: 90 00 [08:57:00]wFMCommunicate OK [08:57:00]SAM_PROTO_ClearQueue done [08:57:00]KKMCreateOFDPacket [08:57:00]OFDProtocolAddRootSTLVToBuf [08:57:00]FM_MakeSignedData [08:57:00]FM_MakeSignedData [08:57:00]SAM_PROTO_SignData [08:57:00]wFMCommunicate request_size=4 [08:57:00]MH_SAM_APDU [08:57:00]CAPDU: 80 0D 01 02 [08:57:00]Write to MH i2c: E2 08 00 2F 33 80 0D 01 02 00 00 00 00 DB [08:57:00]Write i2c OK [08:57:00]MH_I2C_Read... [08:57:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:57:00]Read from MH i2c: E2 [08:57:00]MH_I2C_Read... [08:57:00]Read from MH i2c: E2 03 00 [08:57:00]MH_I2C_Read... [08:57:00]Read from MH i2c: E2 03 00 2F 33 00 90 00 D6 [08:57:00]RAPDU: 90 00 [08:57:00]wFMCommunicate OK [08:57:00]wFMCommunicate request_size=255 [08:57:00]MH_SAM_APDU [08:57:00]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 5E 17 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 D7 DC 02 00 35 04 06 00 27 [08:57:00]Write to MH i2c: E2 02 01 30 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 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 5E 17 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 D7 DC 02 00 35 04 06 00 27 00 00 30 [08:57:00]Write i2c OK [08:57:00]MH_I2C_Read... [08:57:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:57:00]Read from MH i2c: E2 [08:57:00]MH_I2C_Read... [08:57:00]Read from MH i2c: E2 03 00 [08:57:00]MH_I2C_Read... [08:57:00]Read from MH i2c: E2 03 00 30 33 00 90 00 D7 [08:57:00]RAPDU: 90 00 [08:57:00]wFMCommunicate OK [08:57:00]wFMCommunicate request_size=10 [08:57:00]MH_SAM_APDU [08:57:00]CAPDU: 80 0D 02 02 05 DD 4A 80 7B C2 [08:57:00]Write to MH i2c: E2 0D 00 31 33 80 0D 02 02 05 00 DD 4A 80 7B C2 00 00 CC [08:57:00]Write i2c OK [08:57:00]MH_I2C_Read... [08:57:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:57:00]Read from MH i2c: E2 [08:57:00]MH_I2C_Read... [08:57:00]Read from MH i2c: E2 03 00 [08:57:00]MH_I2C_Read... [08:57:00]Read from MH i2c: E2 03 00 31 33 00 90 00 D8 [08:57:00]RAPDU: 90 00 [08:57:00]wFMCommunicate OK [08:57:00]wFMCommunicate request_size=4 [08:57:00]MH_SAM_APDU [08:57:00]CAPDU: 80 0D 03 02 [08:57:00]Write to MH i2c: E2 08 00 32 33 80 0D 03 02 00 00 00 00 E0 [08:57:00]Write i2c OK [08:57:00]MH_I2C_Read... [08:57:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:57:01]Read from MH i2c: E2 [08:57:01]MH_I2C_Read... [08:57:01]Read from MH i2c: E2 0B 00 [08:57:01]MH_I2C_Read... [08:57:01]Read from MH i2c: E2 0B 00 32 33 00 97 4E 6E 7C 85 13 87 75 90 00 44 [08:57:01]RAPDU: 97 4E 6E 7C 85 13 87 75 90 00 [08:57:01]wFMCommunicate OK [08:57:01]SAM_PROTO_SignData done [08:57:01]FM_MakeSignedData done [08:57:01]CreateOFDProtocolMessage [08:57:01]wFMCommunicate request_size=4 [08:57:01]MH_SAM_APDU [08:57:01]CAPDU: 80 11 00 00 [08:57:01]Write to MH i2c: E2 08 00 33 33 80 11 00 00 00 00 00 00 E0 [08:57:01]Write i2c OK [08:57:01]MH_I2C_Read... [08:57:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:57:01]OFD Sender: No OFD packet to send [08:57:01]Read from MH i2c: E2 [08:57:01]MH_I2C_Read... [08:57:01]Read from MH i2c: E2 17 00 [08:57:01]MH_I2C_Read... [08:57:01]Read from MH i2c: E2 17 00 33 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 2E [08:57:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [08:57:01]wFMCommunicate OK [08:57:01]CreateOFDProtocolMessage done [08:57:01]OFDSenderStorePacket 187607 [08:57:01]StoreOFDPacket docnum=187607 [08:57:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 2B FE 07 01 9D 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 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 5E 17 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 D7 DC 02 00 35 04 06 00 27 DD 4A 80 7B C2 97 4E 6E 7C 85 13 87 75 [08:57:01]CheckFolder [08:57:01]dirname=/storage/ofd_packets [08:57:01]CheckFolder done [08:57:01]ProducePacketName [08:57:01]name=ofd_packets/00187607 [08:57:01]NVStorageSaveData ofd_packets/00187607 [08:57:01]File name is /storage/ofd_packets/00187607 [08:57:01]Write 301 bytes [08:57:01]NVStorageSaveData done [08:57:01]OFDSenderStorePacket done [08:57:01]KKMCreateOFDPacket done [08:57:01]NVStorageSaveData kkm_last_timestamp [08:57:01]File name is /storage/kkm_last_timestamp [08:57:01]Write 4 bytes [08:57:01]NVStorageSaveData done [08:57:01]ExternCall_PrintAddStr [08:57:01]wPrintStart [08:57:01]Write to MH i2c: 01 00 00 34 33 67 [08:57:01]Write i2c OK [08:57:01]MH_I2C_Read... [08:57:01]Read from MH i2c: 01 [08:57:01]MH_I2C_Read... [08:57:01]Read from MH i2c: 01 07 00 [08:57:01]MH_I2C_Read... [08:57:01]Read from MH i2c: 01 07 00 34 33 00 00 00 00 00 FF 0F 7C [08:57:01]RasterBufferAndPrint [08:57:01]line Счет N : (1)209659 [08:57:01]line ИНН: 02508201610067 [08:57:01]line Контрольно-Кассовый Чек [08:57:01]line ПРОДАЖА [08:57:01]line ТРК (МРК, ГНК) : 42 [08:57:01]line Товар: 2710124130 [08:57:01]line Аи-92-К-3 [08:57:01]line 7.480 * 66.90 [08:57:01]line = 500.41 [08:57:01]line НДС 12% НСП 1% [08:57:01]line > о реализуемом товаре [08:57:01]line ОКРУГЛЕНИЕ: -0.41 [08:57:01]line ИТОГО: 500.00 [08:57:01]line Внесено: 500.00 [08:57:01]line СДАЧА: 0.00 [08:57:01]line НСП 1% : 4.43 [08:57:01]line НДС 12% : 53.14 [08:57:01]line Наличными: 500.00 [08:57:01]line Безнал.: 0.00 [08:57:01]line Место: АЗС № 86 "Партнер Нефть" [08:57:01]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [08:57:01]line СНО: Общий режим [08:57:01]line Чек 71 21.10.2024 08:57 [08:57:01]line Смена: 460 ФФД: 1.0 [08:57:01]line ЗНМ: 0300000155 [08:57:01]line РНМ: 0000000000100030 [08:57:01]line Версия ККМ: 001 [08:57:01]line ФМ: 0000000000965340 [08:57:01]line ФД: 187607 [08:57:01]line ФПД: 43831391189954 [08:57:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T085702&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187607&fm=43831391189954&tin=02508201610067®Number=0000000000100030&sum=50000 [08:57:01]written 0, free lines is 4095 [08:57:01]OFD Sender: Processing packet 187607 [packets to send 1062, broken 1061] [08:57:01]ProducePacketName [08:57:01]name=ofd_packets/00187607 [08:57:01]OFD Sender: To server: pG, [08:57:01]CommunicateWithHost lk.salyk.kg:30040 [08:57:01]ConnectInit lk.salyk.kg [08:57:01]Connected sock=10 [08:57:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 2B FE 07 01 9D 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 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 5E 17 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 D7 DC 02 00 35 04 06 00 27 DD 4A 80 7B C2 97 4E 6E 7C 85 13 87 75 [08:57:01]Write to MH i2c: 01 00 00 5F 33 92 [08:57:01]Write i2c OK [08:57:01]MH_I2C_Read... [08:57:01]Read from MH i2c: 01 [08:57:01]MH_I2C_Read... [08:57:01]Read from MH i2c: 01 07 00 [08:57:01]MH_I2C_Read... [08:57:01]Read from MH i2c: 01 07 00 5F 33 00 00 00 00 00 63 0C 08 [08:57:01]RasterBufferAndPrint [08:57:01]line [08:57:01]line [08:57:01]line [08:57:01]line [08:57:01]line [08:57:01]written 0, free lines is 3175 [08:57:01]MH_Cut [08:57:01]Write to MH i2c: D1 01 00 66 33 01 6B [08:57:01]Write i2c OK [08:57:01]MH_I2C_Read... [08:57:01]Read from MH i2c: D1 [08:57:01]MH_I2C_Read... [08:57:01]Read from MH i2c: D1 01 00 [08:57:01]MH_I2C_Read... [08:57:01]Read from MH i2c: D1 01 00 66 33 00 6A [08:57:01]Write to MH i2c: 01 00 00 67 33 9A [08:57:01]Write i2c OK [08:57:01]MH_I2C_Read... [08:57:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 10 DD 47 00 63 FD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 D7 DC 02 00 F4 03 04 00 4E C1 15 67 B6 04 01 00 00 D6 48 CA 06 AE F0 F0 D3 [08:57:01]CommunicateWithHost err = 0 [08:57:01]CheckOFDResponse [08:57:01]1017 (14) - 77093643461234 [08:57:01]1041 (16) - 0000000000965340 [08:57:01]1040 (4) - 187607 [08:57:01]1012 (4) - 21.10.2024 02:49 [08:57:01]1206 (1) - 0 [08:57:01]OFD Sender: Remove packet 187607 [08:57:01]ProducePacketName [08:57:01]name=ofd_packets/00187607 [08:57:01]NVStorageDeleteData [08:57:02]OFD Sender: No OFD packet to send [08:57:02]*** Cut start [08:57:02]*** Partial cut [08:57:02]*** CUTSNS_PIN = 1 [08:57:02]*** CUTSNS_PIN = 0 [08:57:03]*** Brake cut motor [08:57:03]Read from MH i2c: 01 [08:57:03]MH_I2C_Read... [08:57:03]*** Stop cut motor [08:57:03]*** Cut end [08:57:03]Read from MH i2c: 01 07 00 [08:57:03]MH_I2C_Read... [08:57:03]Read from MH i2c: 01 07 00 67 33 00 00 00 00 00 FF 0F AF [08:57:03]process_action close_receipt done [08:57:03]requested_data is exist [08:57:03]produce_requested_data [08:57:03]requested_item fm.sn is exist - process it [08:57:03]wFMCommunicate request_size=4 [08:57:03]MH_SAM_APDU [08:57:03]CAPDU: 80 11 00 00 [08:57:03]Write to MH i2c: E2 08 00 68 33 80 11 00 00 00 00 00 00 15 [08:57:03]Write i2c OK [08:57:03]MH_I2C_Read... [08:57:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:57:03]Read from MH i2c: E2 [08:57:03]MH_I2C_Read... [08:57:03]Read from MH i2c: E2 17 00 [08:57:03]MH_I2C_Read... [08:57:03]Read from MH i2c: E2 17 00 68 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 63 [08:57:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [08:57:03]wFMCommunicate OK [08:57:03]requested_item fd.num is exist - process it [08:57:03]SAM_PROTO_GetFieldsCounters [08:57:03]wFMCommunicate request_size=4 [08:57:03]MH_SAM_APDU [08:57:03]CAPDU: 80 13 00 00 [08:57:03]Write to MH i2c: E2 08 00 69 33 80 13 00 00 00 00 00 00 18 [08:57:03]Write i2c OK [08:57:03]MH_I2C_Read... [08:57:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:57:03]Read from MH i2c: E2 [08:57:03]MH_I2C_Read... [08:57:03]Read from MH i2c: E2 62 00 [08:57:03]MH_I2C_Read... [08:57:03]Read from MH i2c: E2 62 00 69 33 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 D7 DC 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 47 00 00 00 5E 04 04 00 47 00 00 00 57 04 04 00 48 00 00 00 19 04 04 00 00 00 00 00 90 00 76 [08:57:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 D7 DC 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 47 00 00 00 5E 04 04 00 47 00 00 00 57 04 04 00 48 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:57:03]wFMCommunicate OK [08:57:03]SAM_PROTO_GetFieldsCounters done [08:57:03]requested_item shift.num is exist - process it [08:57:03]requested_item shift.opened is exist - process it [08:57:03]req_shift_opened [08:57:03]FM_GetShiftState [08:57:03]SAM_PROTO_GetShiftState [08:57:03]wFMCommunicate request_size=4 [08:57:03]MH_SAM_APDU [08:57:03]CAPDU: 80 13 01 00 [08:57:03]Write to MH i2c: E2 08 00 6A 33 80 13 01 00 00 00 00 00 1A [08:57:03]Write i2c OK [08:57:03]MH_I2C_Read... [08:57:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:57:03]Read from MH i2c: E2 [08:57:03]MH_I2C_Read... [08:57:03]Read from MH i2c: E2 0E 00 [08:57:03]MH_I2C_Read... [08:57:03]Read from MH i2c: E2 0E 00 6A 33 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 79 [08:57:03]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [08:57:03]wFMCommunicate OK [08:57:03]SAM_PROTO_GetShiftState done [08:57:03]FM_GetShiftState done [08:57:03]req_shift_opened done [08:57:03]requested_item shift.open_date is exist - process it [08:57:03]req_shift_open_date [08:57:03]req_shift_open_date done [08:57:03]produce_requested_data done [08:57:03]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187607,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [08:57:03]process_action_free close_receipt [08:57:03]json_value_free [08:57:03]json_value_free done [08:57:03]process_json_proto returns [08:57:03]Send response to host [08:57:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187607,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [08:57:03]free response buf [08:57:03]execute_script done [08:57:03]execute_script returns [08:57:03]free content buf [08:57:03]Sock 9.Close socket [08:57:03]Sock 9.Thread stoped [08:57:07]OFD Sender: No OFD packet to send [08:57:12]OFD Sender: No OFD packet to send [08:57:17]OFD Sender: No OFD packet to send [08:57:22]OFD Sender: No OFD packet to send [08:57:27]OFD Sender: No OFD packet to send [08:57:32]OFD Sender: No OFD packet to send [08:57:36]accept exits with 8 [08:57:36]New connection [08:57:36]New thread 3067157860 created [08:57:36]Thread 3067014500 joined [08:57:36]Waiting for new connection... [08:57:36] Sock 8.Parse request [08:57:36]Sock 8.Check first char [08:57:36]Sock 8.First char is OK [08:57:36]request: POST /json_proto HTTP/1.0 [08:57:36]Method: POST [08:57:36]URL: /json_proto [08:57:36]Method is POST - this is cgi request [08:57:36]url: /json_proto [08:57:36]query_string will be loaded in cgi processing [08:57:36]execute_cgi json_proto POST (null) [08:57:36]execute_cgi path=json_proto method=POST [08:57:36]POST find Content-Length [08:57:36]Host: 172.17.42.131:8080 [08:57:36]Content-Length: 679 [08:57:36]Content-Type: application/json [08:57:36] [08:57:36]POST finish read [08:57:36]Found Content-Length = 679 [08:57:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209660", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:57:36]execute_script... [08:57:36]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209660", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:57:36]POST & json_proto [08:57:36]process_json_proto [08:57:36]json parsed OK: [08:57:36]protocol is kg_v1.0 [08:57:36]action value=close_receipt [08:57:36]process_action close_receipt [08:57:36]cmd_close_receipt [08:57:36]MH_GetDate [08:57:36]Write to MH i2c: F0 00 00 6B 33 8D [08:57:36]Write i2c OK [08:57:36]MH_I2C_Read... [08:57:36]Read from MH i2c: F0 [08:57:36]MH_I2C_Read... [08:57:36]Read from MH i2c: F0 09 00 [08:57:36]MH_I2C_Read... [08:57:36]Read from MH i2c: F0 09 00 6B 33 00 84 17 16 67 A0 18 CA 66 96 [08:57:36]GetLastDocTimeStamp 1729501022 [08:57:36]current date 1729501060 [08:57:36]FM_GetShiftState [08:57:36]SAM_PROTO_GetShiftState [08:57:36]wFMCommunicate request_size=4 [08:57:36]MH_SAM_APDU [08:57:36]CAPDU: 80 13 01 00 [08:57:36]Write to MH i2c: E2 08 00 6C 33 80 13 01 00 00 00 00 00 1C [08:57:36]Write i2c OK [08:57:36]MH_I2C_Read... [08:57:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:57:36]Read from MH i2c: E2 [08:57:36]MH_I2C_Read... [08:57:36]Read from MH i2c: E2 0E 00 [08:57:36]MH_I2C_Read... [08:57:36]Read from MH i2c: E2 0E 00 6C 33 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 7B [08:57:36]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [08:57:36]wFMCommunicate OK [08:57:36]SAM_PROTO_GetShiftState done [08:57:36]FM_GetShiftState done [08:57:36]opened in 1729469754 [08:57:36]opened+sec_in_day 1729556154 [08:57:36]quantity*price = 200025 [08:57:36]sum+1 = 200026 [08:57:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 72 21.10.2024 08:57 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 187608 ФПД: 145649727708608 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T085740&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187608&fm=145649727708608&tin=02508201610067®Number=0000000000100030&sum=200000 [08:57:38]StoreToDocumentArchive [08:57:38]shift 460 fd 187608 [08:57:38]save to /storage/0460/doc_00187608 [08:57:38]save last doc name /storage/0460/doc_00187608 to /storage/kkm_last_doc_name [08:57:38]save OK [08:57:38]Clear old archive folders... [08:57:38]ProcessDocumentItem done err = 0, tmpTLVsize=248 [08:57:38]tlvbuf is B6F0C3B0 [08:57:38]SAM_PROTO_ClearQueue [08:57:38]wFMCommunicate request_size=4 [08:57:38]MH_SAM_APDU [08:57:38]CAPDU: 80 09 00 00 [08:57:38]Write to MH i2c: E2 08 00 79 33 80 09 00 00 00 00 00 00 1E [08:57:38]Write i2c OK [08:57:38]MH_I2C_Read... [08:57:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:57:38]Read from MH i2c: E2 [08:57:38]MH_I2C_Read... [08:57:38]Read from MH i2c: E2 03 00 [08:57:38]MH_I2C_Read... [08:57:38]Read from MH i2c: E2 03 00 79 33 00 90 00 20 [08:57:38]RAPDU: 90 00 [08:57:38]wFMCommunicate OK [08:57:38]SAM_PROTO_ClearQueue done [08:57:38]KKMCreateOFDPacket [08:57:38]OFDProtocolAddRootSTLVToBuf [08:57:38]FM_MakeSignedData [08:57:38]FM_MakeSignedData [08:57:38]SAM_PROTO_SignData [08:57:38]wFMCommunicate request_size=4 [08:57:38]MH_SAM_APDU [08:57:38]CAPDU: 80 0D 01 02 [08:57:38]Write to MH i2c: E2 08 00 7A 33 80 0D 01 02 00 00 00 00 26 [08:57:38]Write i2c OK [08:57:38]MH_I2C_Read... [08:57:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:57:38]Read from MH i2c: E2 [08:57:38]MH_I2C_Read... [08:57:38]Read from MH i2c: E2 03 00 [08:57:38]MH_I2C_Read... [08:57:38]Read from MH i2c: E2 03 00 7A 33 00 90 00 21 [08:57:38]RAPDU: 90 00 [08:57:38]wFMCommunicate OK [08:57:38]wFMCommunicate request_size=255 [08:57:38]MH_SAM_APDU [08:57:38]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 48 00 00 00 F4 03 04 00 84 17 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 D8 DC 02 00 35 04 06 00 84 77 B8 48 [08:57:38]Write to MH i2c: E2 02 01 7B 33 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 48 00 00 00 F4 03 04 00 84 17 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 D8 DC 02 00 35 04 06 00 84 77 B8 48 00 00 5D [08:57:38]Write i2c OK [08:57:38]MH_I2C_Read... [08:57:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:57:38]Read from MH i2c: E2 [08:57:38]MH_I2C_Read... [08:57:38]Read from MH i2c: E2 03 00 [08:57:38]MH_I2C_Read... [08:57:38]Read from MH i2c: E2 03 00 7B 33 00 90 00 22 [08:57:38]RAPDU: 90 00 [08:57:38]wFMCommunicate OK [08:57:38]wFMCommunicate request_size=7 [08:57:38]MH_SAM_APDU [08:57:38]CAPDU: 80 0D 02 02 02 1D C0 [08:57:38]Write to MH i2c: E2 0A 00 7C 33 80 0D 02 02 02 00 1D C0 00 00 0A [08:57:38]Write i2c OK [08:57:38]MH_I2C_Read... [08:57:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:57:38]Read from MH i2c: E2 [08:57:38]MH_I2C_Read... [08:57:38]Read from MH i2c: E2 03 00 [08:57:38]MH_I2C_Read... [08:57:38]Read from MH i2c: E2 03 00 7C 33 00 90 00 23 [08:57:38]RAPDU: 90 00 [08:57:38]wFMCommunicate OK [08:57:38]wFMCommunicate request_size=4 [08:57:38]MH_SAM_APDU [08:57:38]CAPDU: 80 0D 03 02 [08:57:38]Write to MH i2c: E2 08 00 7D 33 80 0D 03 02 00 00 00 00 2B [08:57:38]Write i2c OK [08:57:38]MH_I2C_Read... [08:57:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:57:38]Read from MH i2c: E2 [08:57:38]MH_I2C_Read... [08:57:38]Read from MH i2c: E2 0B 00 [08:57:38]MH_I2C_Read... [08:57:38]Read from MH i2c: E2 0B 00 7D 33 00 10 6E CD 2C C5 2A FF 59 90 00 EA [08:57:38]RAPDU: 10 6E CD 2C C5 2A FF 59 90 00 [08:57:38]wFMCommunicate OK [08:57:38]SAM_PROTO_SignData done [08:57:38]FM_MakeSignedData done [08:57:38]CreateOFDProtocolMessage [08:57:38]wFMCommunicate request_size=4 [08:57:38]MH_SAM_APDU [08:57:38]CAPDU: 80 11 00 00 [08:57:38]Write to MH i2c: E2 08 00 7E 33 80 11 00 00 00 00 00 00 2B [08:57:38]Write i2c OK [08:57:38]MH_I2C_Read... [08:57:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:57:38]Read from MH i2c: E2 [08:57:38]MH_I2C_Read... [08:57:38]Read from MH i2c: E2 17 00 [08:57:38]MH_I2C_Read... [08:57:38]Read from MH i2c: E2 17 00 7E 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 79 [08:57:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [08:57:38]wFMCommunicate OK [08:57:38]CreateOFDProtocolMessage done [08:57:38]OFDSenderStorePacket 187608 [08:57:38]StoreOFDPacket docnum=187608 [08:57:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 32 C9 04 01 78 49 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 84 17 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 D8 DC 02 00 35 04 06 00 84 77 B8 48 1D C0 10 6E CD 2C C5 2A FF 59 [08:57:38]CheckFolder [08:57:38]dirname=/storage/ofd_packets [08:57:38]CheckFolder done [08:57:38]ProducePacketName [08:57:38]name=ofd_packets/00187608 [08:57:38]NVStorageSaveData ofd_packets/00187608 [08:57:38]File name is /storage/ofd_packets/00187608 [08:57:38]Write 298 bytes [08:57:38]NVStorageSaveData done [08:57:38]OFDSenderStorePacket done [08:57:38]KKMCreateOFDPacket done [08:57:38]NVStorageSaveData kkm_last_timestamp [08:57:38]File name is /storage/kkm_last_timestamp [08:57:38]Write 4 bytes [08:57:38]NVStorageSaveData done [08:57:38]ExternCall_PrintAddStr [08:57:38]wPrintStart [08:57:38]Write to MH i2c: 01 00 00 7F 33 B2 [08:57:38]Write i2c OK [08:57:38]MH_I2C_Read... [08:57:38]Read from MH i2c: 01 [08:57:38]MH_I2C_Read... [08:57:38]Read from MH i2c: 01 07 00 [08:57:38]MH_I2C_Read... [08:57:38]Read from MH i2c: 01 07 00 7F 33 00 00 00 00 00 FF 0F C7 [08:57:38]RasterBufferAndPrint [08:57:38]line Счет N : (1)209660 [08:57:38]line ИНН: 02508201610067 [08:57:38]line Контрольно-Кассовый Чек [08:57:38]line ПРОДАЖА [08:57:38]line ТРК (МРК, ГНК) : 51 [08:57:38]line Товар: 2710194210 [08:57:38]line ДТ-К-5 [08:57:38]line 26.250 * 76.20 [08:57:38]line = 2000.25 [08:57:38]line НДС 12% НСП 1% [08:57:38]line > о реализуемом товаре [08:57:38]line ОКРУГЛЕНИЕ: -0.25 [08:57:38]line ИТОГО: 2000.00 [08:57:38]line Внесено: 2000.00 [08:57:38]line СДАЧА: 0.00 [08:57:38]line НСП 1% : 17.70 [08:57:38]line НДС 12% : 212.42 [08:57:38]line Наличными: 2000.00 [08:57:38]line Безнал.: 0.00 [08:57:38]line Место: АЗС № 86 "Партнер Нефть" [08:57:38]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [08:57:38]line СНО: Общий режим [08:57:38]line Чек 72 21.10.2024 08:57 [08:57:38]line Смена: 460 ФФД: 1.0 [08:57:38]line ЗНМ: 0300000155 [08:57:38]line РНМ: 0000000000100030 [08:57:38]line Версия ККМ: 001 [08:57:38]line ФМ: 0000000000965340 [08:57:38]line ФД: 187608 [08:57:38]line ФПД: 145649727708608 [08:57:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T085740&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187608&fm=145649727708608&tin=02508201610067®Number=0000000000100030&sum=200000 [08:57:38]written 0, free lines is 4095 [08:57:38]OFD Sender: Processing packet 187608 [packets to send 1062, broken 1061] [08:57:38]ProducePacketName [08:57:38]name=ofd_packets/00187608 [08:57:38]OFD Sender: To server: pG, [08:57:38]CommunicateWithHost lk.salyk.kg:30040 [08:57:38]ConnectInit lk.salyk.kg [08:57:38]Connected sock=10 [08:57:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 32 C9 04 01 78 49 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 84 17 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 D8 DC 02 00 35 04 06 00 84 77 B8 48 1D C0 10 6E CD 2C C5 2A FF 59 [08:57:39]Write to MH i2c: 01 00 00 AA 33 DD [08:57:39]Write i2c OK [08:57:39]MH_I2C_Read... [08:57:39]Read from MH i2c: 01 [08:57:39]MH_I2C_Read... [08:57:39]Read from MH i2c: 01 07 00 [08:57:39]MH_I2C_Read... [08:57:39]Read from MH i2c: 01 07 00 AA 33 00 00 00 00 00 66 0C 56 [08:57:39]RasterBufferAndPrint [08:57:39]line [08:57:39]line [08:57:39]line [08:57:39]line [08:57:39]line [08:57:39]written 0, free lines is 3178 [08:57:39]MH_Cut [08:57:39]Write to MH i2c: D1 01 00 B1 33 01 B6 [08:57:39]Write i2c OK [08:57:39]MH_I2C_Read... [08:57:39]Read from MH i2c: D1 [08:57:39]MH_I2C_Read... [08:57:39]Read from MH i2c: D1 01 00 [08:57:39]MH_I2C_Read... [08:57:39]Read from MH i2c: D1 01 00 B1 33 00 B5 [08:57:39]Write to MH i2c: 01 00 00 B2 33 E5 [08:57:39]Write i2c OK [08:57:39]MH_I2C_Read... [08:57:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 45 7E 47 00 B6 50 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 D8 DC 02 00 F4 03 04 00 74 C1 15 67 B6 04 01 00 00 30 8F 32 F6 FF E1 74 5D [08:57:39]CommunicateWithHost err = 0 [08:57:39]CheckOFDResponse [08:57:39]1017 (14) - 77093643461234 [08:57:39]1041 (16) - 0000000000965340 [08:57:39]1040 (4) - 187608 [08:57:39]1012 (4) - 21.10.2024 02:50 [08:57:39]1206 (1) - 0 [08:57:39]OFD Sender: Remove packet 187608 [08:57:39]ProducePacketName [08:57:39]name=ofd_packets/00187608 [08:57:39]NVStorageDeleteData [08:57:39]OFD Sender: No OFD packet to send [08:57:40]*** Cut start [08:57:40]*** Partial cut [08:57:40]*** CUTSNS_PIN = 1 [08:57:40]*** CUTSNS_PIN = 0 [08:57:40]*** Brake cut motor [08:57:40]Read from MH i2c: 01 [08:57:40]MH_I2C_Read... [08:57:40]*** Stop cut motor [08:57:40]*** Cut end [08:57:40]Read from MH i2c: 01 07 00 [08:57:40]MH_I2C_Read... [08:57:40]Read from MH i2c: 01 07 00 B2 33 00 00 00 00 00 FF 0F FA [08:57:40]process_action close_receipt done [08:57:40]requested_data is exist [08:57:40]produce_requested_data [08:57:40]requested_item fm.sn is exist - process it [08:57:40]wFMCommunicate request_size=4 [08:57:40]MH_SAM_APDU [08:57:40]CAPDU: 80 11 00 00 [08:57:40]Write to MH i2c: E2 08 00 B3 33 80 11 00 00 00 00 00 00 60 [08:57:40]Write i2c OK [08:57:40]MH_I2C_Read... [08:57:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:57:41]Read from MH i2c: E2 [08:57:41]MH_I2C_Read... [08:57:41]Read from MH i2c: E2 17 00 [08:57:41]MH_I2C_Read... [08:57:41]Read from MH i2c: E2 17 00 B3 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 AE [08:57:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [08:57:41]wFMCommunicate OK [08:57:41]requested_item fd.num is exist - process it [08:57:41]SAM_PROTO_GetFieldsCounters [08:57:41]wFMCommunicate request_size=4 [08:57:41]MH_SAM_APDU [08:57:41]CAPDU: 80 13 00 00 [08:57:41]Write to MH i2c: E2 08 00 B4 33 80 13 00 00 00 00 00 00 63 [08:57:41]Write i2c OK [08:57:41]MH_I2C_Read... [08:57:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:57:41]Read from MH i2c: E2 [08:57:41]MH_I2C_Read... [08:57:41]Read from MH i2c: E2 62 00 [08:57:41]MH_I2C_Read... [08:57:41]Read from MH i2c: E2 62 00 B4 33 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 D8 DC 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 48 00 00 00 5E 04 04 00 48 00 00 00 57 04 04 00 49 00 00 00 19 04 04 00 00 00 00 00 90 00 C5 [08:57:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 D8 DC 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 48 00 00 00 5E 04 04 00 48 00 00 00 57 04 04 00 49 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:57:41]wFMCommunicate OK [08:57:41]SAM_PROTO_GetFieldsCounters done [08:57:41]requested_item shift.num is exist - process it [08:57:41]requested_item shift.opened is exist - process it [08:57:41]req_shift_opened [08:57:41]FM_GetShiftState [08:57:41]SAM_PROTO_GetShiftState [08:57:41]wFMCommunicate request_size=4 [08:57:41]MH_SAM_APDU [08:57:41]CAPDU: 80 13 01 00 [08:57:41]Write to MH i2c: E2 08 00 B5 33 80 13 01 00 00 00 00 00 65 [08:57:41]Write i2c OK [08:57:41]MH_I2C_Read... [08:57:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:57:41]Read from MH i2c: E2 [08:57:41]MH_I2C_Read... [08:57:41]Read from MH i2c: E2 0E 00 [08:57:41]MH_I2C_Read... [08:57:41]Read from MH i2c: E2 0E 00 B5 33 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 C4 [08:57:41]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [08:57:41]wFMCommunicate OK [08:57:41]SAM_PROTO_GetShiftState done [08:57:41]FM_GetShiftState done [08:57:41]req_shift_opened done [08:57:41]requested_item shift.open_date is exist - process it [08:57:41]req_shift_open_date [08:57:41]req_shift_open_date done [08:57:41]produce_requested_data done [08:57:41]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187608,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [08:57:41]process_action_free close_receipt [08:57:41]json_value_free [08:57:41]json_value_free done [08:57:41]process_json_proto returns [08:57:41]Send response to host [08:57:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187608,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [08:57:41]free response buf [08:57:41]execute_script done [08:57:41]execute_script returns [08:57:41]free content buf [08:57:41]Sock 8.Close socket [08:57:41]Sock 8.Thread stoped [08:57:44]OFD Sender: No OFD packet to send [08:57:49]OFD Sender: No OFD packet to send [08:57:54]OFD Sender: No OFD packet to send [08:57:59]OFD Sender: No OFD packet to send [08:58:04]OFD Sender: No OFD packet to send [08:58:09]OFD Sender: No OFD packet to send [08:58:14]OFD Sender: No OFD packet to send [08:58:19]OFD Sender: No OFD packet to send [08:58:24]OFD Sender: No OFD packet to send [08:58:29]OFD Sender: No OFD packet to send [08:58:34]OFD Sender: No OFD packet to send [08:58:40]OFD Sender: No OFD packet to send [08:58:45]OFD Sender: No OFD packet to send [08:58:50]OFD Sender: No OFD packet to send [08:58:55]OFD Sender: No OFD packet to send [08:59:00]OFD Sender: No OFD packet to send [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:16]accept exits with 9 [09:02:16]New connection [09:02:16]New thread 3067014500 created [09:02:16]Thread 3067157860 joined [09:02:16]Waiting for new connection... [09:02:16] Sock 9.Parse request [09:02:16]Sock 9.Check first char [09:02:16]Sock 9.First char is OK [09:02:16]request: POST /json_proto HTTP/1.0 [09:02:16]Method: POST [09:02:16]URL: /json_proto [09:02:16]Method is POST - this is cgi request [09:02:16]url: /json_proto [09:02:16]query_string will be loaded in cgi processing [09:02:16]execute_cgi json_proto POST (null) [09:02:16]execute_cgi path=json_proto method=POST [09:02:16]POST find Content-Length [09:02:16]Host: 172.17.42.131:8080 [09:02:16]Content-Length: 677 [09:02:16]Content-Type: application/json [09:02:16] [09:02:16]POST finish read [09:02:16]Found Content-Length = 677 [09:02:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209661", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:02:16]execute_script... [09:02: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)209661", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:02:16]POST & json_proto [09:02:16]process_json_proto [09:02:16]json parsed OK: [09:02:16]protocol is kg_v1.0 [09:02:16]action value=close_receipt [09:02:16]process_action close_receipt [09:02:16]cmd_close_receipt [09:02:16]MH_GetDate [09:02:16]Write to MH i2c: F0 00 00 B6 33 D8 [09:02:16]Write i2c OK [09:02:16]MH_I2C_Read... [09:02:16]Read from MH i2c: F0 [09:02:16]MH_I2C_Read... [09:02:16]Read from MH i2c: F0 09 00 [09:02:16]MH_I2C_Read... [09:02:16]Read from MH i2c: F0 09 00 B6 33 00 9C 18 16 67 A0 18 CA 66 FA [09:02:16]GetLastDocTimeStamp 1729501060 [09:02:16]current date 1729501340 [09:02:16]FM_GetShiftState [09:02:16]SAM_PROTO_GetShiftState [09:02:16]wFMCommunicate request_size=4 [09:02:16]MH_SAM_APDU [09:02:16]CAPDU: 80 13 01 00 [09:02:16]Write to MH i2c: E2 08 00 B7 33 80 13 01 00 00 00 00 00 67 [09:02:16]Write i2c OK [09:02:16]MH_I2C_Read... [09:02:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:02:16]Read from MH i2c: E2 [09:02:16]MH_I2C_Read... [09:02:16]Read from MH i2c: E2 0E 00 [09:02:16]MH_I2C_Read... [09:02:16]Read from MH i2c: E2 0E 00 B7 33 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 C6 [09:02:16]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [09:02:16]wFMCommunicate OK [09:02:16]SAM_PROTO_GetShiftState done [09:02:16]FM_GetShiftState done [09:02:16]opened in 1729469754 [09:02:16]opened+sec_in_day 1729556154 [09:02:16]quantity*price = 60009 [09:02:16]sum+1 = 60010 [09:02:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 73 21.10.2024 09:02 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 187609 ФПД: 126615812531376 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T090220&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187609&fm=126615812531376&tin=02508201610067®Number=0000000000100030&sum=60000 [09:02:17]StoreToDocumentArchive [09:02:17]shift 460 fd 187609 [09:02:17]save to /storage/0460/doc_00187609 [09:02:17]save last doc name /storage/0460/doc_00187609 to /storage/kkm_last_doc_name [09:02:18]save OK [09:02:18]Clear old archive folders... [09:02:18]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:02:18]tlvbuf is B6F0C4D0 [09:02:18]SAM_PROTO_ClearQueue [09:02:18]wFMCommunicate request_size=4 [09:02:18]MH_SAM_APDU [09:02:18]CAPDU: 80 09 00 00 [09:02:18]Write to MH i2c: E2 08 00 C4 33 80 09 00 00 00 00 00 00 69 [09:02:18]Write i2c OK [09:02:18]MH_I2C_Read... [09:02:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:02:18]Read from MH i2c: E2 [09:02:18]MH_I2C_Read... [09:02:18]Read from MH i2c: E2 03 00 [09:02:18]MH_I2C_Read... [09:02:18]Read from MH i2c: E2 03 00 C4 33 00 90 00 6B [09:02:18]RAPDU: 90 00 [09:02:18]wFMCommunicate OK [09:02:18]SAM_PROTO_ClearQueue done [09:02:18]KKMCreateOFDPacket [09:02:18]OFDProtocolAddRootSTLVToBuf [09:02:18]FM_MakeSignedData [09:02:18]FM_MakeSignedData [09:02:18]SAM_PROTO_SignData [09:02:18]wFMCommunicate request_size=4 [09:02:18]MH_SAM_APDU [09:02:18]CAPDU: 80 0D 01 02 [09:02:18]Write to MH i2c: E2 08 00 C5 33 80 0D 01 02 00 00 00 00 71 [09:02:18]Write i2c OK [09:02:18]MH_I2C_Read... [09:02:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:02:18]Read from MH i2c: E2 [09:02:18]MH_I2C_Read... [09:02:18]Read from MH i2c: E2 03 00 [09:02:18]MH_I2C_Read... [09:02:18]Read from MH i2c: E2 03 00 C5 33 00 90 00 6C [09:02:18]RAPDU: 90 00 [09:02:18]wFMCommunicate OK [09:02:18]wFMCommunicate request_size=255 [09:02:18]MH_SAM_APDU [09:02: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 33 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 49 00 00 00 F4 03 04 00 9C 18 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 D9 DC 02 00 35 04 06 00 73 [09:02:18]Write to MH i2c: E2 02 01 C6 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 33 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 49 00 00 00 F4 03 04 00 9C 18 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 D9 DC 02 00 35 04 06 00 73 00 00 32 [09:02:18]Write i2c OK [09:02:18]MH_I2C_Read... [09:02:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:02:18]Read from MH i2c: E2 [09:02:18]MH_I2C_Read... [09:02:18]Read from MH i2c: E2 03 00 [09:02:18]MH_I2C_Read... [09:02:18]Read from MH i2c: E2 03 00 C6 33 00 90 00 6D [09:02:18]RAPDU: 90 00 [09:02:18]wFMCommunicate OK [09:02:18]wFMCommunicate request_size=10 [09:02:18]MH_SAM_APDU [09:02:18]CAPDU: 80 0D 02 02 05 28 0A 87 64 B0 [09:02:18]Write to MH i2c: E2 0D 00 C7 33 80 0D 02 02 05 00 28 0A 87 64 B0 00 00 4B [09:02:18]Write i2c OK [09:02:18]MH_I2C_Read... [09:02:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:02:18]Read from MH i2c: E2 [09:02:18]MH_I2C_Read... [09:02:18]Read from MH i2c: E2 03 00 [09:02:18]MH_I2C_Read... [09:02:18]Read from MH i2c: E2 03 00 C7 33 00 90 00 6E [09:02:18]RAPDU: 90 00 [09:02:18]wFMCommunicate OK [09:02:18]wFMCommunicate request_size=4 [09:02:18]MH_SAM_APDU [09:02:18]CAPDU: 80 0D 03 02 [09:02:18]Write to MH i2c: E2 08 00 C8 33 80 0D 03 02 00 00 00 00 76 [09:02:18]Write i2c OK [09:02:18]MH_I2C_Read... [09:02:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:02:18]Read from MH i2c: E2 [09:02:18]MH_I2C_Read... [09:02:18]Read from MH i2c: E2 0B 00 [09:02:18]MH_I2C_Read... [09:02:18]Read from MH i2c: E2 0B 00 C8 33 00 CF E6 0A 38 3E EE 26 E1 90 00 A1 [09:02:18]RAPDU: CF E6 0A 38 3E EE 26 E1 90 00 [09:02:18]wFMCommunicate OK [09:02:18]SAM_PROTO_SignData done [09:02:18]FM_MakeSignedData done [09:02:18]CreateOFDProtocolMessage [09:02:18]wFMCommunicate request_size=4 [09:02:18]MH_SAM_APDU [09:02:18]CAPDU: 80 11 00 00 [09:02:18]Write to MH i2c: E2 08 00 C9 33 80 11 00 00 00 00 00 00 76 [09:02:18]Write i2c OK [09:02:18]MH_I2C_Read... [09:02:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:02:18]Read from MH i2c: E2 [09:02:18]MH_I2C_Read... [09:02:18]Read from MH i2c: E2 17 00 [09:02:18]MH_I2C_Read... [09:02:18]Read from MH i2c: E2 17 00 C9 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 C4 [09:02:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [09:02:18]wFMCommunicate OK [09:02:18]CreateOFDProtocolMessage done [09:02:18]OFDSenderStorePacket 187609 [09:02:18]StoreOFDPacket docnum=187609 [09:02:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 8C 1D 07 01 A3 0F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 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 49 00 00 00 F4 03 04 00 9C 18 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 D9 DC 02 00 35 04 06 00 73 28 0A 87 64 B0 CF E6 0A 38 3E EE 26 E1 [09:02:18]CheckFolder [09:02:18]dirname=/storage/ofd_packets [09:02:18]CheckFolder done [09:02:18]ProducePacketName [09:02:18]name=ofd_packets/00187609 [09:02:18]NVStorageSaveData ofd_packets/00187609 [09:02:18]File name is /storage/ofd_packets/00187609 [09:02:18]Write 301 bytes [09:02:18]NVStorageSaveData done [09:02:18]OFDSenderStorePacket done [09:02:18]KKMCreateOFDPacket done [09:02:18]NVStorageSaveData kkm_last_timestamp [09:02:18]File name is /storage/kkm_last_timestamp [09:02:18]Write 4 bytes [09:02:18]NVStorageSaveData done [09:02:18]ExternCall_PrintAddStr [09:02:18]wPrintStart [09:02:18]Write to MH i2c: 01 00 00 CA 33 FD [09:02:18]Write i2c OK [09:02:18]MH_I2C_Read... [09:02:18]Read from MH i2c: 01 [09:02:18]MH_I2C_Read... [09:02:18]Read from MH i2c: 01 07 00 [09:02:18]MH_I2C_Read... [09:02:18]Read from MH i2c: 01 07 00 CA 33 00 00 00 00 00 FF 0F 12 [09:02:18]RasterBufferAndPrint [09:02:18]line Счет N : (1)209661 [09:02:18]line ИНН: 02508201610067 [09:02:18]line Контрольно-Кассовый Чек [09:02:18]line ПРОДАЖА [09:02:18]line ТРК (МРК, ГНК) : 32 [09:02:18]line Товар: 2710124130 [09:02:18]line Аи-92-К-3 [09:02:18]line 8.970 * 66.90 [09:02:18]line = 600.09 [09:02:18]line НДС 12% НСП 1% [09:02:18]line > о реализуемом товаре [09:02:18]line ОКРУГЛЕНИЕ: -0.09 [09:02:18]line ИТОГО: 600.00 [09:02:18]line Внесено: 600.00 [09:02:18]line СДАЧА: 0.00 [09:02:18]line НСП 1% : 5.31 [09:02:18]line НДС 12% : 63.73 [09:02:18]line Наличными: 600.00 [09:02:18]line Безнал.: 0.00 [09:02:18]line Место: АЗС № 86 "Партнер Нефть" [09:02:18]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [09:02:18]line СНО: Общий режим [09:02:18]line Чек 73 21.10.2024 09:02 [09:02:18]line Смена: 460 ФФД: 1.0 [09:02:18]line ЗНМ: 0300000155 [09:02:18]line РНМ: 0000000000100030 [09:02:18]line Версия ККМ: 001 [09:02:18]line ФМ: 0000000000965340 [09:02:18]line ФД: 187609 [09:02:18]line ФПД: 126615812531376 [09:02:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T090220&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187609&fm=126615812531376&tin=02508201610067®Number=0000000000100030&sum=60000 [09:02:18]written 0, free lines is 4095 [09:02:18]OFD Sender: Processing packet 187609 [packets to send 1062, broken 1061] [09:02:18]ProducePacketName [09:02:18]name=ofd_packets/00187609 [09:02:18]OFD Sender: To server: pG, [09:02:18]CommunicateWithHost lk.salyk.kg:30040 [09:02:18]ConnectInit lk.salyk.kg [09:02:18]Connected sock=10 [09:02:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 8C 1D 07 01 A3 0F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 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 49 00 00 00 F4 03 04 00 9C 18 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 D9 DC 02 00 35 04 06 00 73 28 0A 87 64 B0 CF E6 0A 38 3E EE 26 E1 [09:02:19]Write to MH i2c: 01 00 00 F5 33 28 [09:02:19]Write i2c OK [09:02:19]MH_I2C_Read... [09:02:19]Read from MH i2c: 01 [09:02:19]MH_I2C_Read... [09:02:19]Read from MH i2c: 01 07 00 [09:02:19]MH_I2C_Read... [09:02:19]Read from MH i2c: 01 07 00 F5 33 00 00 00 00 00 67 0C A2 [09:02:19]RasterBufferAndPrint [09:02:19]line [09:02:19]line [09:02:19]line [09:02:19]line [09:02:19]line [09:02:19]written 0, free lines is 3178 [09:02:19]MH_Cut [09:02:19]Write to MH i2c: D1 01 00 FC 33 01 01 [09:02:19]Write i2c OK [09:02:19]MH_I2C_Read... [09:02:19]Read from MH i2c: D1 [09:02:19]MH_I2C_Read... [09:02:19]Read from MH i2c: D1 01 00 [09:02:19]MH_I2C_Read... [09:02:19]Read from MH i2c: D1 01 00 FC 33 00 00 [09:02:19]Write to MH i2c: 01 00 00 FD 33 30 [09:02:19]Write i2c OK [09:02:19]MH_I2C_Read... [09:02:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 70 05 47 00 3D FC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 D9 DC 02 00 F4 03 04 00 8C C2 15 67 B6 04 01 00 00 E1 D3 5F F9 BA 1B BA C0 [09:02:19]CommunicateWithHost err = 0 [09:02:19]CheckOFDResponse [09:02:19]1017 (14) - 77093643461234 [09:02:19]1041 (16) - 0000000000965340 [09:02:19]1040 (4) - 187609 [09:02:19]1012 (4) - 21.10.2024 02:55 [09:02:19]1206 (1) - 0 [09:02:19]OFD Sender: Remove packet 187609 [09:02:19]ProducePacketName [09:02:19]name=ofd_packets/00187609 [09:02:19]NVStorageDeleteData [09:02:19]OFD Sender: No OFD packet to send [09:02:20]*** Cut start [09:02:20]*** Partial cut [09:02:20]*** CUTSNS_PIN = 1 [09:02:20]*** CUTSNS_PIN = 0 [09:02:20]*** Brake cut motor [09:02:20]Read from MH i2c: 01 [09:02:20]MH_I2C_Read... [09:02:20]*** Stop cut motor [09:02:20]*** Cut end [09:02:20]Read from MH i2c: 01 07 00 [09:02:20]MH_I2C_Read... [09:02:20]Read from MH i2c: 01 07 00 FD 33 00 00 00 00 00 FF 0F 45 [09:02:20]process_action close_receipt done [09:02:20]requested_data is exist [09:02:20]produce_requested_data [09:02:20]requested_item fm.sn is exist - process it [09:02:20]wFMCommunicate request_size=4 [09:02:20]MH_SAM_APDU [09:02:20]CAPDU: 80 11 00 00 [09:02:20]Write to MH i2c: E2 08 00 FE 33 80 11 00 00 00 00 00 00 AB [09:02:20]Write i2c OK [09:02:20]MH_I2C_Read... [09:02:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:02:20]Read from MH i2c: E2 [09:02:20]MH_I2C_Read... [09:02:20]Read from MH i2c: E2 17 00 [09:02:20]MH_I2C_Read... [09:02:20]Read from MH i2c: E2 17 00 FE 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 F9 [09:02:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [09:02:20]wFMCommunicate OK [09:02:20]requested_item fd.num is exist - process it [09:02:20]SAM_PROTO_GetFieldsCounters [09:02:20]wFMCommunicate request_size=4 [09:02:20]MH_SAM_APDU [09:02:20]CAPDU: 80 13 00 00 [09:02:20]Write to MH i2c: E2 08 00 FF 33 80 13 00 00 00 00 00 00 AE [09:02:20]Write i2c OK [09:02:20]MH_I2C_Read... [09:02:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:02:21]Read from MH i2c: E2 [09:02:21]MH_I2C_Read... [09:02:21]Read from MH i2c: E2 62 00 [09:02:21]MH_I2C_Read... [09:02:21]Read from MH i2c: E2 62 00 FF 33 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 D9 DC 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 49 00 00 00 5E 04 04 00 49 00 00 00 57 04 04 00 4A 00 00 00 19 04 04 00 00 00 00 00 90 00 14 [09:02:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 D9 DC 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 49 00 00 00 5E 04 04 00 49 00 00 00 57 04 04 00 4A 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:02:21]wFMCommunicate OK [09:02:21]SAM_PROTO_GetFieldsCounters done [09:02:21]requested_item shift.num is exist - process it [09:02:21]requested_item shift.opened is exist - process it [09:02:21]req_shift_opened [09:02:21]FM_GetShiftState [09:02:21]SAM_PROTO_GetShiftState [09:02:21]wFMCommunicate request_size=4 [09:02:21]MH_SAM_APDU [09:02:21]CAPDU: 80 13 01 00 [09:02:21]Write to MH i2c: E2 08 00 00 34 80 13 01 00 00 00 00 00 B1 [09:02:21]Write i2c OK [09:02:21]MH_I2C_Read... [09:02:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:02:21]Read from MH i2c: E2 [09:02:21]MH_I2C_Read... [09:02:21]Read from MH i2c: E2 0E 00 [09:02:21]MH_I2C_Read... [09:02:21]Read from MH i2c: E2 0E 00 00 34 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 10 [09:02:21]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [09:02:21]wFMCommunicate OK [09:02:21]SAM_PROTO_GetShiftState done [09:02:21]FM_GetShiftState done [09:02:21]req_shift_opened done [09:02:21]requested_item shift.open_date is exist - process it [09:02:21]req_shift_open_date [09:02:21]req_shift_open_date done [09:02:21]produce_requested_data done [09:02:21]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187609,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [09:02:21]process_action_free close_receipt [09:02:21]json_value_free [09:02:21]json_value_free done [09:02:21]process_json_proto returns [09:02:21]Send response to host [09:02:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187609,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [09:02:21]free response buf [09:02:21]execute_script done [09:02:21]execute_script returns [09:02:21]free content buf [09:02:21]Sock 9.Close socket [09:02:21]Sock 9.Thread stoped [09:02:24]OFD Sender: No OFD packet to send [09:02:29]OFD Sender: No OFD packet to send [09:02:34]OFD Sender: No OFD packet to send [09:02:39]OFD Sender: No OFD packet to send [09:02:44]OFD Sender: No OFD packet to send [09:02:49]OFD Sender: No OFD packet to send [09:02:54]OFD Sender: No OFD packet to send [09:02:59]OFD Sender: No OFD packet to send [09:03:04]OFD Sender: No OFD packet to send [09:03:09]OFD Sender: No OFD packet to send [09:03:14]OFD Sender: No OFD packet to send [09:03:19]OFD Sender: No OFD packet to send [09:03:24]OFD Sender: No OFD packet to send [09:03:29]OFD Sender: No OFD packet to send [09:03:34]OFD Sender: No OFD packet to send [09:03:40]OFD Sender: No OFD packet to send [09:03:45]OFD Sender: No OFD packet to send [09:03:50]OFD Sender: No OFD packet to send [09:03:55]OFD Sender: No OFD packet to send [09:04:00]OFD Sender: No OFD packet to send [09:04:05]OFD Sender: No OFD packet to send [09:04:10]OFD Sender: No OFD packet to send [09:04:15]OFD Sender: No OFD packet to send [09:04:20]OFD Sender: No OFD packet to send [09:04:25]OFD Sender: No OFD packet to send [09:04:30]OFD Sender: No OFD packet to send [09:04:35]OFD Sender: No OFD packet to send [09:04:40]OFD Sender: No OFD packet to send [09:04:45]OFD Sender: No OFD packet to send [09:04:50]OFD Sender: No OFD packet to send [09:04:55]OFD Sender: No OFD packet to send [09:05:00]OFD Sender: No OFD packet to send [09:05:05]OFD Sender: No OFD packet to send [09:05:10]OFD Sender: No OFD packet to send [09:05:15]OFD Sender: No OFD packet to send [09:05:20]OFD Sender: No OFD packet to send [09:05:25]OFD Sender: No OFD packet to send [09:05:30]OFD Sender: No OFD packet to send [09:05:35]OFD Sender: No OFD packet to send [09:05:40]OFD Sender: No OFD packet to send [09:05:45]OFD Sender: No OFD packet to send [09:05:50]OFD Sender: No OFD packet to send [09:05:55]OFD Sender: No OFD packet to send [09:06:00]OFD Sender: No OFD packet to send [09:06:05]OFD Sender: No OFD packet to send [09:06:10]OFD Sender: No OFD packet to send [09:06:15]OFD Sender: No OFD packet to send [09:06:20]OFD Sender: No OFD packet to send [09:06:25]OFD Sender: No OFD packet to send [09:06:30]OFD Sender: No OFD packet to send [09:06:35]OFD Sender: No OFD packet to send [09:06:40]OFD Sender: No OFD packet to send [09:06:45]OFD Sender: No OFD packet to send [09:06:50]OFD Sender: No OFD packet to send [09:06:55]OFD Sender: No OFD packet to send [09:07:00]OFD Sender: No OFD packet to send [09:07:05]OFD Sender: No OFD packet to send [09:07:10]OFD Sender: No OFD packet to send [09:07:15]OFD Sender: No OFD packet to send [09:07:20]accept exits with 8 [09:07:20]New connection [09:07:20]New thread 3067157860 created [09:07:20]Thread 3067014500 joined [09:07:20]Waiting for new connection... [09:07:20] Sock 8.Parse request [09:07:20]Sock 8.Check first char [09:07:20]Sock 8.First char is OK [09:07:20]request: POST /json_proto HTTP/1.0 [09:07:20]Method: POST [09:07:20]URL: /json_proto [09:07:20]Method is POST - this is cgi request [09:07:20]url: /json_proto [09:07:20]query_string will be loaded in cgi processing [09:07:20]execute_cgi json_proto POST (null) [09:07:20]execute_cgi path=json_proto method=POST [09:07:20]POST find Content-Length [09:07:20]Host: 172.17.42.131:8080 [09:07:20]Content-Length: 688 [09:07:20]Content-Type: application/json [09:07:20] [09:07:20]POST finish read [09:07:20]Found Content-Length = 688 [09:07:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209662", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 25.910, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:07:20]execute_script... [09:07: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)209662", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 25.910, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:07:20]POST & json_proto [09:07:20]process_json_proto [09:07:20]json parsed OK: [09:07:20]protocol is kg_v1.0 [09:07:20]action value=close_receipt [09:07:20]process_action close_receipt [09:07:20]cmd_close_receipt [09:07:20]MH_GetDate [09:07:20]Write to MH i2c: F0 00 00 01 34 24 [09:07:20]Write i2c OK [09:07:20]MH_I2C_Read... [09:07:20]Read from MH i2c: F0 [09:07:20]MH_I2C_Read... [09:07:20]Read from MH i2c: F0 09 00 [09:07:20]MH_I2C_Read... [09:07:20]Read from MH i2c: F0 09 00 01 34 00 CB 19 16 67 A0 18 CA 66 76 [09:07:20]GetLastDocTimeStamp 1729501340 [09:07:20]current date 1729501643 [09:07:20]FM_GetShiftState [09:07:20]SAM_PROTO_GetShiftState [09:07:20]wFMCommunicate request_size=4 [09:07:20]MH_SAM_APDU [09:07:20]CAPDU: 80 13 01 00 [09:07:20]Write to MH i2c: E2 08 00 02 34 80 13 01 00 00 00 00 00 B3 [09:07:20]Write i2c OK [09:07:20]MH_I2C_Read... [09:07:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:07:20]Read from MH i2c: E2 [09:07:20]MH_I2C_Read... [09:07:20]Read from MH i2c: E2 0E 00 [09:07:20]MH_I2C_Read... [09:07:20]Read from MH i2c: E2 0E 00 02 34 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 12 [09:07:20]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [09:07:20]wFMCommunicate OK [09:07:20]SAM_PROTO_GetShiftState done [09:07:20]FM_GetShiftState done [09:07:20]opened in 1729469754 [09:07:20]opened+sec_in_day 1729556154 [09:07:20]quantity*price = 200025 [09:07:20]sum+1 = 200026 [09:07:20]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 74 21.10.2024 09:07 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 187610 ФПД: 165933207278919 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T090723&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187610&fm=165933207278919&tin=02508201610067®Number=0000000000100030&sum=200000 [09:07:21]StoreToDocumentArchive [09:07:21]shift 460 fd 187610 [09:07:21]save to /storage/0460/doc_00187610 [09:07:21]save last doc name /storage/0460/doc_00187610 to /storage/kkm_last_doc_name [09:07:21]save OK [09:07:21]Clear old archive folders... [09:07:21]ProcessDocumentItem done err = 0, tmpTLVsize=257 [09:07:21]tlvbuf is 010840E0 [09:07:21]SAM_PROTO_ClearQueue [09:07:21]wFMCommunicate request_size=4 [09:07:21]MH_SAM_APDU [09:07:21]CAPDU: 80 09 00 00 [09:07:21]Write to MH i2c: E2 08 00 0F 34 80 09 00 00 00 00 00 00 B5 [09:07:21]Write i2c OK [09:07:21]MH_I2C_Read... [09:07:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:07:21]Read from MH i2c: E2 [09:07:21]MH_I2C_Read... [09:07:21]Read from MH i2c: E2 03 00 [09:07:21]MH_I2C_Read... [09:07:21]Read from MH i2c: E2 03 00 0F 34 00 90 00 B7 [09:07:21]RAPDU: 90 00 [09:07:21]wFMCommunicate OK [09:07:21]SAM_PROTO_ClearQueue done [09:07:21]KKMCreateOFDPacket [09:07:21]OFDProtocolAddRootSTLVToBuf [09:07:21]FM_MakeSignedData [09:07:21]FM_MakeSignedData [09:07:21]SAM_PROTO_SignData [09:07:21]wFMCommunicate request_size=4 [09:07:21]MH_SAM_APDU [09:07:21]CAPDU: 80 0D 01 02 [09:07:21]Write to MH i2c: E2 08 00 10 34 80 0D 01 02 00 00 00 00 BD [09:07:21]Write i2c OK [09:07:21]MH_I2C_Read... [09:07:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:07:21]Read from MH i2c: E2 [09:07:21]MH_I2C_Read... [09:07:21]Read from MH i2c: E2 03 00 [09:07:21]MH_I2C_Read... [09:07:21]Read from MH i2c: E2 03 00 10 34 00 90 00 B8 [09:07:21]RAPDU: 90 00 [09:07:21]wFMCommunicate OK [09:07:21]wFMCommunicate request_size=255 [09:07:21]MH_SAM_APDU [09:07:21]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 36 65 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 CB 19 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 DA DC 02 [09:07:21]Write to MH i2c: E2 02 01 11 34 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 36 65 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 CB 19 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 DA DC 02 00 00 8E [09:07:21]Write i2c OK [09:07:21]MH_I2C_Read... [09:07:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:07:21]Read from MH i2c: E2 [09:07:21]MH_I2C_Read... [09:07:21]Read from MH i2c: E2 03 00 [09:07:21]MH_I2C_Read... [09:07:21]Read from MH i2c: E2 03 00 11 34 00 90 00 B9 [09:07:21]RAPDU: 90 00 [09:07:21]wFMCommunicate OK [09:07:21]wFMCommunicate request_size=16 [09:07:21]MH_SAM_APDU [09:07:21]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 96 EA 55 E0 55 47 [09:07:21]Write to MH i2c: E2 13 00 12 34 80 0D 02 02 0B 00 00 35 04 06 00 96 EA 55 E0 55 47 00 00 66 [09:07:21]Write i2c OK [09:07:21]MH_I2C_Read... [09:07:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:07:21]Read from MH i2c: E2 [09:07:21]MH_I2C_Read... [09:07:21]Read from MH i2c: E2 03 00 [09:07:21]MH_I2C_Read... [09:07:21]Read from MH i2c: E2 03 00 12 34 00 90 00 BA [09:07:21]RAPDU: 90 00 [09:07:21]wFMCommunicate OK [09:07:21]wFMCommunicate request_size=4 [09:07:21]MH_SAM_APDU [09:07:21]CAPDU: 80 0D 03 02 [09:07:21]Write to MH i2c: E2 08 00 13 34 80 0D 03 02 00 00 00 00 C2 [09:07:21]Write i2c OK [09:07:21]MH_I2C_Read... [09:07:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:07:21]Read from MH i2c: E2 [09:07:21]MH_I2C_Read... [09:07:21]Read from MH i2c: E2 0B 00 [09:07:21]MH_I2C_Read... [09:07:21]Read from MH i2c: E2 0B 00 13 34 00 66 CA CA DC 14 18 33 6C 90 00 64 [09:07:21]RAPDU: 66 CA CA DC 14 18 33 6C 90 00 [09:07:21]wFMCommunicate OK [09:07:21]SAM_PROTO_SignData done [09:07:21]FM_MakeSignedData done [09:07:21]CreateOFDProtocolMessage [09:07:21]wFMCommunicate request_size=4 [09:07:21]MH_SAM_APDU [09:07:21]CAPDU: 80 11 00 00 [09:07:21]Write to MH i2c: E2 08 00 14 34 80 11 00 00 00 00 00 00 C2 [09:07:21]Write i2c OK [09:07:21]MH_I2C_Read... [09:07:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:07:21]Read from MH i2c: E2 [09:07:21]MH_I2C_Read... [09:07:21]Read from MH i2c: E2 17 00 [09:07:21]MH_I2C_Read... [09:07:21]Read from MH i2c: E2 17 00 14 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 10 [09:07:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [09:07:21]wFMCommunicate OK [09:07:21]CreateOFDProtocolMessage done [09:07:21]OFDSenderStorePacket 187610 [09:07:21]StoreOFDPacket docnum=187610 [09:07:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 90 9A 0D 01 16 B8 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 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 36 65 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 CB 19 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 DA DC 02 00 35 04 06 00 96 EA 55 E0 55 47 66 CA CA DC 14 18 33 6C [09:07:21]CheckFolder [09:07:21]dirname=/storage/ofd_packets [09:07:21]CheckFolder done [09:07:21]ProducePacketName [09:07:21]name=ofd_packets/00187610 [09:07:21]NVStorageSaveData ofd_packets/00187610 [09:07:21]File name is /storage/ofd_packets/00187610 [09:07:21]Write 307 bytes [09:07:21]NVStorageSaveData done [09:07:21]OFDSenderStorePacket done [09:07:21]KKMCreateOFDPacket done [09:07:21]NVStorageSaveData kkm_last_timestamp [09:07:21]File name is /storage/kkm_last_timestamp [09:07:21]Write 4 bytes [09:07:21]NVStorageSaveData done [09:07:21]ExternCall_PrintAddStr [09:07:21]wPrintStart [09:07:21]Write to MH i2c: 01 00 00 15 34 49 [09:07:21]Write i2c OK [09:07:21]MH_I2C_Read... [09:07:21]Read from MH i2c: 01 [09:07:21]MH_I2C_Read... [09:07:21]Read from MH i2c: 01 07 00 [09:07:21]MH_I2C_Read... [09:07:21]Read from MH i2c: 01 07 00 15 34 00 00 00 00 00 FF 0F 5E [09:07:21]RasterBufferAndPrint [09:07:21]line Счет N : (1)209662 [09:07:21]line ИНН: 02508201610067 [09:07:21]line Контрольно-Кассовый Чек [09:07:21]line ПРОДАЖА [09:07:21]line ТРК (МРК, ГНК) : 11 [09:07:21]line Товар: 2710194210 [09:07:21]line D-ENERGY ДТ-К-5 [09:07:21]line 25.910 * 77.20 [09:07:21]line = 2000.25 [09:07:21]line НДС 12% НСП 1% [09:07:21]line > о реализуемом товаре [09:07:21]line ОКРУГЛЕНИЕ: -0.25 [09:07:21]line ИТОГО: 2000.00 [09:07:21]line Внесено: 2000.00 [09:07:21]line СДАЧА: 0.00 [09:07:21]line НСП 1% : 17.70 [09:07:21]line НДС 12% : 212.42 [09:07:21]line Наличными: 2000.00 [09:07:21]line Безнал.: 0.00 [09:07:21]line Место: АЗС № 86 "Партнер Нефть" [09:07:21]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [09:07:21]line СНО: Общий режим [09:07:21]line Чек 74 21.10.2024 09:07 [09:07:21]line Смена: 460 ФФД: 1.0 [09:07:21]line ЗНМ: 0300000155 [09:07:21]line РНМ: 0000000000100030 [09:07:21]line Версия ККМ: 001 [09:07:21]line ФМ: 0000000000965340 [09:07:21]line ФД: 187610 [09:07:21]line ФПД: 165933207278919 [09:07:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T090723&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187610&fm=165933207278919&tin=02508201610067®Number=0000000000100030&sum=200000 [09:07:22]written 0, free lines is 4095 [09:07:22]OFD Sender: Processing packet 187610 [packets to send 1062, broken 1061] [09:07:22]ProducePacketName [09:07:22]name=ofd_packets/00187610 [09:07:22]OFD Sender: To server: pG, [09:07:22]CommunicateWithHost lk.salyk.kg:30040 [09:07:22]ConnectInit lk.salyk.kg [09:07:22]Connected sock=10 [09:07:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 90 9A 0D 01 16 B8 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 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 36 65 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 CB 19 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 DA DC 02 00 35 04 06 00 96 EA 55 E0 55 47 66 CA CA DC 14 18 33 6C [09:07:22]Write to MH i2c: 01 00 00 40 34 74 [09:07:22]Write i2c OK [09:07:22]MH_I2C_Read... [09:07:22]Read from MH i2c: 01 [09:07:22]MH_I2C_Read... [09:07:22]Read from MH i2c: 01 07 00 [09:07:22]MH_I2C_Read... [09:07:22]Read from MH i2c: 01 07 00 40 34 00 00 00 00 00 6A 0C F1 [09:07:22]RasterBufferAndPrint [09:07:22]line [09:07:22]line [09:07:22]line [09:07:22]line [09:07:22]line [09:07:22]written 0, free lines is 3180 [09:07:22]MH_Cut [09:07:22]Write to MH i2c: D1 01 00 47 34 01 4D [09:07:22]Write i2c OK [09:07:22]MH_I2C_Read... [09:07:22]Read from MH i2c: D1 [09:07:22]MH_I2C_Read... [09:07:22]Read from MH i2c: D1 01 00 [09:07:22]MH_I2C_Read... [09:07:22]Read from MH i2c: D1 01 00 47 34 00 4C [09:07:22]Write to MH i2c: 01 00 00 48 34 7C [09:07:22]Write i2c OK [09:07:22]MH_I2C_Read... [09:07:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 44 C2 47 00 C4 19 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 DA DC 02 00 F4 03 04 00 BB C3 15 67 B6 04 01 00 00 C3 98 4B F9 8A C9 1D B7 [09:07:22]CommunicateWithHost err = 0 [09:07:22]CheckOFDResponse [09:07:22]1017 (14) - 77093643461234 [09:07:22]1041 (16) - 0000000000965340 [09:07:22]1040 (4) - 187610 [09:07:22]1012 (4) - 21.10.2024 03:00 [09:07:22]1206 (1) - 0 [09:07:22]OFD Sender: Remove packet 187610 [09:07:22]ProducePacketName [09:07:22]name=ofd_packets/00187610 [09:07:22]NVStorageDeleteData [09:07:23]OFD Sender: No OFD packet to send [09:07:23]*** Cut start [09:07:23]*** Partial cut [09:07:23]*** CUTSNS_PIN = 1 [09:07:23]*** CUTSNS_PIN = 0 [09:07:23]*** Brake cut motor [09:07:24]Read from MH i2c: 01 [09:07:24]MH_I2C_Read... [09:07:24]*** Stop cut motor [09:07:24]*** Cut end [09:07:24]Read from MH i2c: 01 07 00 [09:07:24]MH_I2C_Read... [09:07:24]Read from MH i2c: 01 07 00 48 34 00 00 00 00 00 FF 0F 91 [09:07:24]process_action close_receipt done [09:07:24]requested_data is exist [09:07:24]produce_requested_data [09:07:24]requested_item fm.sn is exist - process it [09:07:24]wFMCommunicate request_size=4 [09:07:24]MH_SAM_APDU [09:07:24]CAPDU: 80 11 00 00 [09:07:24]Write to MH i2c: E2 08 00 49 34 80 11 00 00 00 00 00 00 F7 [09:07:24]Write i2c OK [09:07:24]MH_I2C_Read... [09:07:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:07:24]Read from MH i2c: E2 [09:07:24]MH_I2C_Read... [09:07:24]Read from MH i2c: E2 17 00 [09:07:24]MH_I2C_Read... [09:07:24]Read from MH i2c: E2 17 00 49 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 45 [09:07:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [09:07:24]wFMCommunicate OK [09:07:24]requested_item fd.num is exist - process it [09:07:24]SAM_PROTO_GetFieldsCounters [09:07:24]wFMCommunicate request_size=4 [09:07:24]MH_SAM_APDU [09:07:24]CAPDU: 80 13 00 00 [09:07:24]Write to MH i2c: E2 08 00 4A 34 80 13 00 00 00 00 00 00 FA [09:07:24]Write i2c OK [09:07:24]MH_I2C_Read... [09:07:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:07:24]Read from MH i2c: E2 [09:07:24]MH_I2C_Read... [09:07:24]Read from MH i2c: E2 62 00 [09:07:24]MH_I2C_Read... [09:07:24]Read from MH i2c: E2 62 00 4A 34 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 DA DC 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 4A 00 00 00 5E 04 04 00 4A 00 00 00 57 04 04 00 4B 00 00 00 19 04 04 00 00 00 00 00 90 00 64 [09:07:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 DA DC 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 4A 00 00 00 5E 04 04 00 4A 00 00 00 57 04 04 00 4B 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:07:24]wFMCommunicate OK [09:07:24]SAM_PROTO_GetFieldsCounters done [09:07:24]requested_item shift.num is exist - process it [09:07:24]requested_item shift.opened is exist - process it [09:07:24]req_shift_opened [09:07:24]FM_GetShiftState [09:07:24]SAM_PROTO_GetShiftState [09:07:24]wFMCommunicate request_size=4 [09:07:24]MH_SAM_APDU [09:07:24]CAPDU: 80 13 01 00 [09:07:24]Write to MH i2c: E2 08 00 4B 34 80 13 01 00 00 00 00 00 FC [09:07:24]Write i2c OK [09:07:24]MH_I2C_Read... [09:07:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:07:24]Read from MH i2c: E2 [09:07:24]MH_I2C_Read... [09:07:24]Read from MH i2c: E2 0E 00 [09:07:24]MH_I2C_Read... [09:07:24]Read from MH i2c: E2 0E 00 4B 34 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 5B [09:07:24]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [09:07:24]wFMCommunicate OK [09:07:24]SAM_PROTO_GetShiftState done [09:07:24]FM_GetShiftState done [09:07:24]req_shift_opened done [09:07:24]requested_item shift.open_date is exist - process it [09:07:24]req_shift_open_date [09:07:24]req_shift_open_date done [09:07:24]produce_requested_data done [09:07:24]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187610,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [09:07:24]process_action_free close_receipt [09:07:24]json_value_free [09:07:24]json_value_free done [09:07:24]process_json_proto returns [09:07:24]Send response to host [09:07:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187610,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [09:07:24]free response buf [09:07:24]execute_script done [09:07:24]execute_script returns [09:07:24]free content buf [09:07:24]Sock 8.Close socket [09:07:24]Sock 8.Thread stoped [09:07:28]OFD Sender: No OFD packet to send [09:07:33]OFD Sender: No OFD packet to send [09:07:38]OFD Sender: No OFD packet to send [09:07:43]OFD Sender: No OFD packet to send [09:07:48]OFD Sender: No OFD packet to send [09:07:53]OFD Sender: No OFD packet to send [09:07:58]OFD Sender: No OFD packet to send [09:08:03]OFD Sender: No OFD packet to send [09:08:08]OFD Sender: No OFD packet to send [09:08:13]OFD Sender: No OFD packet to send [09:08:18]OFD Sender: No OFD packet to send [09:08:23]OFD Sender: No OFD packet to send [09:08:28]OFD Sender: No OFD packet to send [09:08:33]OFD Sender: No OFD packet to send [09:08:38]OFD Sender: No OFD packet to send [09:08:43]OFD Sender: No OFD packet to send [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:17]accept exits with 9 [09:09:17]New connection [09:09:17]New thread 3067014500 created [09:09:17]Thread 3067157860 joined [09:09:17]Waiting for new connection... [09:09:17] Sock 9.Parse request [09:09:17]Sock 9.Check first char [09:09:17]Sock 9.First char is OK [09:09:17]request: POST /json_proto HTTP/1.0 [09:09:17]Method: POST [09:09:17]URL: /json_proto [09:09:17]Method is POST - this is cgi request [09:09:17]url: /json_proto [09:09:17]query_string will be loaded in cgi processing [09:09:17]execute_cgi json_proto POST (null) [09:09:17]execute_cgi path=json_proto method=POST [09:09:17]POST find Content-Length [09:09:17]Host: 172.17.42.131:8080 [09:09:17]Content-Length: 688 [09:09:17]Content-Type: application/json [09:09:17] [09:09:17]POST finish read [09:09:17]Found Content-Length = 688 [09:09:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209663", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 25.910, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:09:17]execute_script... [09:09: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)209663", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 25.910, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:09:17]POST & json_proto [09:09:17]process_json_proto [09:09:17]json parsed OK: [09:09:17]protocol is kg_v1.0 [09:09:17]action value=close_receipt [09:09:17]process_action close_receipt [09:09:17]cmd_close_receipt [09:09:17]MH_GetDate [09:09:17]Write to MH i2c: F0 00 00 4C 34 6F [09:09:17]Write i2c OK [09:09:17]MH_I2C_Read... [09:09:17]Read from MH i2c: F0 [09:09:17]MH_I2C_Read... [09:09:17]Read from MH i2c: F0 09 00 [09:09:17]MH_I2C_Read... [09:09:17]Read from MH i2c: F0 09 00 4C 34 00 41 1A 16 67 A0 18 CA 66 38 [09:09:17]GetLastDocTimeStamp 1729501643 [09:09:17]current date 1729501761 [09:09:17]FM_GetShiftState [09:09:17]SAM_PROTO_GetShiftState [09:09:17]wFMCommunicate request_size=4 [09:09:17]MH_SAM_APDU [09:09:17]CAPDU: 80 13 01 00 [09:09:17]Write to MH i2c: E2 08 00 4D 34 80 13 01 00 00 00 00 00 FE [09:09:17]Write i2c OK [09:09:17]MH_I2C_Read... [09:09:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:09:17]Read from MH i2c: E2 [09:09:17]MH_I2C_Read... [09:09:17]Read from MH i2c: E2 0E 00 [09:09:17]MH_I2C_Read... [09:09:17]Read from MH i2c: E2 0E 00 4D 34 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 5D [09:09:17]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [09:09:17]wFMCommunicate OK [09:09:17]SAM_PROTO_GetShiftState done [09:09:17]FM_GetShiftState done [09:09:17]opened in 1729469754 [09:09:17]opened+sec_in_day 1729556154 [09:09:17]quantity*price = 200025 [09:09:17]sum+1 = 200026 [09:09:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 75 21.10.2024 09:09 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 187611 ФПД: 265527707311393 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T090921&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187611&fm=265527707311393&tin=02508201610067®Number=0000000000100030&sum=200000 [09:09:18]StoreToDocumentArchive [09:09:18]shift 460 fd 187611 [09:09:18]save to /storage/0460/doc_00187611 [09:09:18]save last doc name /storage/0460/doc_00187611 to /storage/kkm_last_doc_name [09:09:18]save OK [09:09:18]Clear old archive folders... [09:09:18]ProcessDocumentItem done err = 0, tmpTLVsize=257 [09:09:18]tlvbuf is 010E3670 [09:09:18]SAM_PROTO_ClearQueue [09:09:18]wFMCommunicate request_size=4 [09:09:18]MH_SAM_APDU [09:09:18]CAPDU: 80 09 00 00 [09:09:18]Write to MH i2c: E2 08 00 5A 34 80 09 00 00 00 00 00 00 00 [09:09:18]Write i2c OK [09:09:18]MH_I2C_Read... [09:09:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:09:19]Read from MH i2c: E2 [09:09:19]MH_I2C_Read... [09:09:19]Read from MH i2c: E2 03 00 [09:09:19]MH_I2C_Read... [09:09:19]Read from MH i2c: E2 03 00 5A 34 00 90 00 02 [09:09:19]RAPDU: 90 00 [09:09:19]wFMCommunicate OK [09:09:19]SAM_PROTO_ClearQueue done [09:09:19]KKMCreateOFDPacket [09:09:19]OFDProtocolAddRootSTLVToBuf [09:09:19]FM_MakeSignedData [09:09:19]FM_MakeSignedData [09:09:19]SAM_PROTO_SignData [09:09:19]wFMCommunicate request_size=4 [09:09:19]MH_SAM_APDU [09:09:19]CAPDU: 80 0D 01 02 [09:09:19]Write to MH i2c: E2 08 00 5B 34 80 0D 01 02 00 00 00 00 08 [09:09:19]Write i2c OK [09:09:19]MH_I2C_Read... [09:09:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:09:19]Read from MH i2c: E2 [09:09:19]MH_I2C_Read... [09:09:19]Read from MH i2c: E2 03 00 [09:09:19]MH_I2C_Read... [09:09:19]Read from MH i2c: E2 03 00 5B 34 00 90 00 03 [09:09:19]RAPDU: 90 00 [09:09:19]wFMCommunicate OK [09:09:19]wFMCommunicate request_size=255 [09:09:19]MH_SAM_APDU [09:09:19]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 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 36 65 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 41 1A 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 DB DC 02 [09:09:19]Write to MH i2c: E2 02 01 5C 34 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 36 65 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 41 1A 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 DB DC 02 00 00 52 [09:09:19]Write i2c OK [09:09:19]MH_I2C_Read... [09:09:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:09:19]Read from MH i2c: E2 [09:09:19]MH_I2C_Read... [09:09:19]Read from MH i2c: E2 03 00 [09:09:19]MH_I2C_Read... [09:09:19]Read from MH i2c: E2 03 00 5C 34 00 90 00 04 [09:09:19]RAPDU: 90 00 [09:09:19]wFMCommunicate OK [09:09:19]wFMCommunicate request_size=16 [09:09:19]MH_SAM_APDU [09:09:19]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 F1 7E FC AC 1D 21 [09:09:19]Write to MH i2c: E2 13 00 5D 34 80 0D 02 02 0B 00 00 35 04 06 00 F1 7E FC AC 1D 21 00 00 B5 [09:09:19]Write i2c OK [09:09:19]MH_I2C_Read... [09:09:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:09:19]Read from MH i2c: E2 [09:09:19]MH_I2C_Read... [09:09:19]Read from MH i2c: E2 03 00 [09:09:19]MH_I2C_Read... [09:09:19]Read from MH i2c: E2 03 00 5D 34 00 90 00 05 [09:09:19]RAPDU: 90 00 [09:09:19]wFMCommunicate OK [09:09:19]wFMCommunicate request_size=4 [09:09:19]MH_SAM_APDU [09:09:19]CAPDU: 80 0D 03 02 [09:09:19]Write to MH i2c: E2 08 00 5E 34 80 0D 03 02 00 00 00 00 0D [09:09:19]Write i2c OK [09:09:19]MH_I2C_Read... [09:09:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:09:19]Read from MH i2c: E2 [09:09:19]MH_I2C_Read... [09:09:19]Read from MH i2c: E2 0B 00 [09:09:19]MH_I2C_Read... [09:09:19]Read from MH i2c: E2 0B 00 5E 34 00 25 53 BB D9 8E EB 7F 7F 90 00 91 [09:09:19]RAPDU: 25 53 BB D9 8E EB 7F 7F 90 00 [09:09:19]wFMCommunicate OK [09:09:19]SAM_PROTO_SignData done [09:09:19]FM_MakeSignedData done [09:09:19]CreateOFDProtocolMessage [09:09:19]wFMCommunicate request_size=4 [09:09:19]MH_SAM_APDU [09:09:19]CAPDU: 80 11 00 00 [09:09:19]Write to MH i2c: E2 08 00 5F 34 80 11 00 00 00 00 00 00 0D [09:09:19]Write i2c OK [09:09:19]MH_I2C_Read... [09:09:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:09:19]Read from MH i2c: E2 [09:09:19]MH_I2C_Read... [09:09:19]Read from MH i2c: E2 17 00 [09:09:19]MH_I2C_Read... [09:09:19]Read from MH i2c: E2 17 00 5F 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 5B [09:09:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [09:09:19]wFMCommunicate OK [09:09:19]CreateOFDProtocolMessage done [09:09:19]OFDSenderStorePacket 187611 [09:09:19]StoreOFDPacket docnum=187611 [09:09:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 05 AA 0D 01 B9 E9 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 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 36 65 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 41 1A 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 DB DC 02 00 35 04 06 00 F1 7E FC AC 1D 21 25 53 BB D9 8E EB 7F 7F [09:09:19]CheckFolder [09:09:19]dirname=/storage/ofd_packets [09:09:19]CheckFolder done [09:09:19]ProducePacketName [09:09:19]name=ofd_packets/00187611 [09:09:19]NVStorageSaveData ofd_packets/00187611 [09:09:19]File name is /storage/ofd_packets/00187611 [09:09:19]Write 307 bytes [09:09:19]NVStorageSaveData done [09:09:19]OFDSenderStorePacket done [09:09:19]KKMCreateOFDPacket done [09:09:19]NVStorageSaveData kkm_last_timestamp [09:09:19]File name is /storage/kkm_last_timestamp [09:09:19]Write 4 bytes [09:09:19]NVStorageSaveData done [09:09:19]ExternCall_PrintAddStr [09:09:19]wPrintStart [09:09:19]Write to MH i2c: 01 00 00 60 34 94 [09:09:19]Write i2c OK [09:09:19]MH_I2C_Read... [09:09:19]Read from MH i2c: 01 [09:09:19]MH_I2C_Read... [09:09:19]Read from MH i2c: 01 07 00 [09:09:19]MH_I2C_Read... [09:09:19]Read from MH i2c: 01 07 00 60 34 00 00 00 00 00 FF 0F A9 [09:09:19]RasterBufferAndPrint [09:09:19]line Счет N : (1)209663 [09:09:19]line ИНН: 02508201610067 [09:09:19]line Контрольно-Кассовый Чек [09:09:19]line ПРОДАЖА [09:09:19]line ТРК (МРК, ГНК) : 21 [09:09:19]line Товар: 2710194210 [09:09:19]line D-ENERGY ДТ-К-5 [09:09:19]line 25.910 * 77.20 [09:09:19]line = 2000.25 [09:09:19]line НДС 12% НСП 1% [09:09:19]line > о реализуемом товаре [09:09:19]line ОКРУГЛЕНИЕ: -0.25 [09:09:19]line ИТОГО: 2000.00 [09:09:19]line Внесено: 2000.00 [09:09:19]line СДАЧА: 0.00 [09:09:19]line НСП 1% : 17.70 [09:09:19]line НДС 12% : 212.42 [09:09:19]line Наличными: 2000.00 [09:09:19]line Безнал.: 0.00 [09:09:19]line Место: АЗС № 86 "Партнер Нефть" [09:09:19]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [09:09:19]line СНО: Общий режим [09:09:19]line Чек 75 21.10.2024 09:09 [09:09:19]line Смена: 460 ФФД: 1.0 [09:09:19]line ЗНМ: 0300000155 [09:09:19]line РНМ: 0000000000100030 [09:09:19]line Версия ККМ: 001 [09:09:19]line ФМ: 0000000000965340 [09:09:19]line ФД: 187611 [09:09:19]line ФПД: 265527707311393 [09:09:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T090921&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187611&fm=265527707311393&tin=02508201610067®Number=0000000000100030&sum=200000 [09:09:19]OFD Sender: Processing packet 187611 [packets to send 1062, broken 1061] [09:09:19]ProducePacketName [09:09:19]name=ofd_packets/00187611 [09:09:19]OFD Sender: To server: pG, [09:09:19]CommunicateWithHost lk.salyk.kg:30040 [09:09:19]ConnectInit lk.salyk.kg [09:09:19]written 0, free lines is 4095 [09:09:19]Connected sock=10 [09:09:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 05 AA 0D 01 B9 E9 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 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 36 65 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 41 1A 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 DB DC 02 00 35 04 06 00 F1 7E FC AC 1D 21 25 53 BB D9 8E EB 7F 7F [09:09:20]Write to MH i2c: 01 00 00 8B 34 BF [09:09:20]Write i2c OK [09:09:20]MH_I2C_Read... [09:09:20]Read from MH i2c: 01 [09:09:20]MH_I2C_Read... [09:09:20]Read from MH i2c: 01 07 00 [09:09:20]MH_I2C_Read... [09:09:20]Read from MH i2c: 01 07 00 8B 34 00 00 00 00 00 6C 0C 3E [09:09:20]RasterBufferAndPrint [09:09:20]line [09:09:20]line [09:09:20]line [09:09:20]line [09:09:20]line [09:09:20]written 0, free lines is 3184 [09:09:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 B2 08 47 00 C9 8C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 DB DC 02 00 F4 03 04 00 31 C4 15 67 B6 04 01 00 00 62 96 F6 6E 1E 66 AD 6D [09:09:20]CommunicateWithHost err = 0 [09:09:20]CheckOFDResponse [09:09:20]1017 (14) - 77093643461234 [09:09:20]1041 (16) - 0000000000965340 [09:09:20]1040 (4) - 187611 [09:09:20]1012 (4) - 21.10.2024 03:02 [09:09:20]1206 (1) - 0 [09:09:20]OFD Sender: Remove packet 187611 [09:09:20]ProducePacketName [09:09:20]name=ofd_packets/00187611 [09:09:20]NVStorageDeleteData [09:09:20]MH_Cut [09:09:20]Write to MH i2c: D1 01 00 92 34 01 98 [09:09:20]Write i2c OK [09:09:20]MH_I2C_Read... [09:09:20]Read from MH i2c: D1 [09:09:20]MH_I2C_Read... [09:09:20]Read from MH i2c: D1 01 00 [09:09:20]MH_I2C_Read... [09:09:20]Read from MH i2c: D1 01 00 92 34 00 97 [09:09:20]Write to MH i2c: 01 00 00 93 34 C7 [09:09:20]Write i2c OK [09:09:20]MH_I2C_Read... [09:09:20]OFD Sender: No OFD packet to send [09:09:21]*** Cut start [09:09:21]*** Partial cut [09:09:21]*** CUTSNS_PIN = 1 [09:09:21]*** CUTSNS_PIN = 0 [09:09:21]*** Brake cut motor [09:09:21]Read from MH i2c: 01 [09:09:21]MH_I2C_Read... [09:09:21]*** Stop cut motor [09:09:21]*** Cut end [09:09:21]Read from MH i2c: 01 07 00 [09:09:21]MH_I2C_Read... [09:09:21]Read from MH i2c: 01 07 00 93 34 00 00 00 00 00 FF 0F DC [09:09:21]process_action close_receipt done [09:09:21]requested_data is exist [09:09:21]produce_requested_data [09:09:21]requested_item fm.sn is exist - process it [09:09:21]wFMCommunicate request_size=4 [09:09:21]MH_SAM_APDU [09:09:21]CAPDU: 80 11 00 00 [09:09:21]Write to MH i2c: E2 08 00 94 34 80 11 00 00 00 00 00 00 42 [09:09:21]Write i2c OK [09:09:21]MH_I2C_Read... [09:09:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:09:21]Read from MH i2c: E2 [09:09:21]MH_I2C_Read... [09:09:21]Read from MH i2c: E2 17 00 [09:09:21]MH_I2C_Read... [09:09:21]Read from MH i2c: E2 17 00 94 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 90 [09:09:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [09:09:21]wFMCommunicate OK [09:09:21]requested_item fd.num is exist - process it [09:09:21]SAM_PROTO_GetFieldsCounters [09:09:21]wFMCommunicate request_size=4 [09:09:21]MH_SAM_APDU [09:09:21]CAPDU: 80 13 00 00 [09:09:21]Write to MH i2c: E2 08 00 95 34 80 13 00 00 00 00 00 00 45 [09:09:21]Write i2c OK [09:09:21]MH_I2C_Read... [09:09:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:09:22]Read from MH i2c: E2 [09:09:22]MH_I2C_Read... [09:09:22]Read from MH i2c: E2 62 00 [09:09:22]MH_I2C_Read... [09:09:22]Read from MH i2c: E2 62 00 95 34 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 DB DC 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 4B 00 00 00 5E 04 04 00 4B 00 00 00 57 04 04 00 4C 00 00 00 19 04 04 00 00 00 00 00 90 00 B3 [09:09:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 DB DC 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 4B 00 00 00 5E 04 04 00 4B 00 00 00 57 04 04 00 4C 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:09:22]wFMCommunicate OK [09:09:22]SAM_PROTO_GetFieldsCounters done [09:09:22]requested_item shift.num is exist - process it [09:09:22]requested_item shift.opened is exist - process it [09:09:22]req_shift_opened [09:09:22]FM_GetShiftState [09:09:22]SAM_PROTO_GetShiftState [09:09:22]wFMCommunicate request_size=4 [09:09:22]MH_SAM_APDU [09:09:22]CAPDU: 80 13 01 00 [09:09:22]Write to MH i2c: E2 08 00 96 34 80 13 01 00 00 00 00 00 47 [09:09:22]Write i2c OK [09:09:22]MH_I2C_Read... [09:09:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:09:22]Read from MH i2c: E2 [09:09:22]MH_I2C_Read... [09:09:22]Read from MH i2c: E2 0E 00 [09:09:22]MH_I2C_Read... [09:09:22]Read from MH i2c: E2 0E 00 96 34 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 A6 [09:09:22]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [09:09:22]wFMCommunicate OK [09:09:22]SAM_PROTO_GetShiftState done [09:09:22]FM_GetShiftState done [09:09:22]req_shift_opened done [09:09:22]requested_item shift.open_date is exist - process it [09:09:22]req_shift_open_date [09:09:22]req_shift_open_date done [09:09:22]produce_requested_data done [09:09:22]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187611,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [09:09:22]process_action_free close_receipt [09:09:22]json_value_free [09:09:22]json_value_free done [09:09:22]process_json_proto returns [09:09:22]Send response to host [09:09:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187611,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [09:09:22]free response buf [09:09:22]execute_script done [09:09:22]execute_script returns [09:09:22]free content buf [09:09:22]Sock 9.Close socket [09:09:22]Sock 9.Thread stoped [09:09:25]OFD Sender: No OFD packet to send [09:09:30]OFD Sender: No OFD packet to send [09:09:35]OFD Sender: No OFD packet to send [09:09:40]OFD Sender: No OFD packet to send [09:09:45]OFD Sender: No OFD packet to send [09:09:50]OFD Sender: No OFD packet to send [09:09:55]OFD Sender: No OFD packet to send [09:10:00]OFD Sender: No OFD packet to send [09:10:05]OFD Sender: No OFD packet to send [09:10:10]OFD Sender: No OFD packet to send [09:10:13]accept exits with 8 [09:10:13]New connection [09:10:13]New thread 3067157860 created [09:10:13]Thread 3067014500 joined [09:10:13]Waiting for new connection... [09:10:13] Sock 8.Parse request [09:10:13]Sock 8.Check first char [09:10:13]Sock 8.First char is OK [09:10:13]request: POST /json_proto HTTP/1.0 [09:10:13]Method: POST [09:10:13]URL: /json_proto [09:10:13]Method is POST - this is cgi request [09:10:13]url: /json_proto [09:10:13]query_string will be loaded in cgi processing [09:10:13]execute_cgi json_proto POST (null) [09:10:13]execute_cgi path=json_proto method=POST [09:10:13]POST find Content-Length [09:10:13]Host: 172.17.42.131:8080 [09:10:13]Content-Length: 682 [09:10:13]Content-Type: application/json [09:10:13] [09:10:13]POST finish read [09:10:13]Found Content-Length = 682 [09:10:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209665", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "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:10:13]execute_script... [09:10:13]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209665", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "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:10:13]POST & json_proto [09:10:13]process_json_proto [09:10:13]json parsed OK: [09:10:13]protocol is kg_v1.0 [09:10:13]action value=close_receipt [09:10:13]process_action close_receipt [09:10:13]cmd_close_receipt [09:10:13]MH_GetDate [09:10:13]Write to MH i2c: F0 00 00 97 34 BA [09:10:13]Write i2c OK [09:10:13]MH_I2C_Read... [09:10:13]Read from MH i2c: F0 [09:10:13]MH_I2C_Read... [09:10:13]Read from MH i2c: F0 09 00 [09:10:13]MH_I2C_Read... [09:10:13]Read from MH i2c: F0 09 00 97 34 00 78 1A 16 67 A0 18 CA 66 BA [09:10:13]GetLastDocTimeStamp 1729501761 [09:10:13]current date 1729501816 [09:10:13]FM_GetShiftState [09:10:13]SAM_PROTO_GetShiftState [09:10:13]wFMCommunicate request_size=4 [09:10:13]MH_SAM_APDU [09:10:13]CAPDU: 80 13 01 00 [09:10:13]Write to MH i2c: E2 08 00 98 34 80 13 01 00 00 00 00 00 49 [09:10:13]Write i2c OK [09:10:13]MH_I2C_Read... [09:10:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:10:13]Read from MH i2c: E2 [09:10:13]MH_I2C_Read... [09:10:13]Read from MH i2c: E2 0E 00 [09:10:13]MH_I2C_Read... [09:10:13]Read from MH i2c: E2 0E 00 98 34 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 A8 [09:10:13]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [09:10:13]wFMCommunicate OK [09:10:13]SAM_PROTO_GetShiftState done [09:10:13]FM_GetShiftState done [09:10:13]opened in 1729469754 [09:10:13]opened+sec_in_day 1729556154 [09:10:13]quantity*price = 100015 [09:10:13]sum+1 = 100017 [09:10:13]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 76 21.10.2024 09:10 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 187612 ФПД: 195014021438881 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T091016&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187612&fm=195014021438881&tin=02508201610067®Number=0000000000100030&sum=100000 [09:10:14]StoreToDocumentArchive [09:10:14]shift 460 fd 187612 [09:10:14]save to /storage/0460/doc_00187612 [09:10:14]save last doc name /storage/0460/doc_00187612 to /storage/kkm_last_doc_name [09:10:14]save OK [09:10:14]Clear old archive folders... [09:10:14]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:10:14]tlvbuf is 01084810 [09:10:14]SAM_PROTO_ClearQueue [09:10:14]wFMCommunicate request_size=4 [09:10:14]MH_SAM_APDU [09:10:14]CAPDU: 80 09 00 00 [09:10:14]Write to MH i2c: E2 08 00 A5 34 80 09 00 00 00 00 00 00 4B [09:10:14]Write i2c OK [09:10:14]MH_I2C_Read... [09:10:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:10:14]Read from MH i2c: E2 [09:10:14]MH_I2C_Read... [09:10:14]Read from MH i2c: E2 03 00 [09:10:14]MH_I2C_Read... [09:10:14]Read from MH i2c: E2 03 00 A5 34 00 90 00 4D [09:10:14]RAPDU: 90 00 [09:10:14]wFMCommunicate OK [09:10:14]SAM_PROTO_ClearQueue done [09:10:14]KKMCreateOFDPacket [09:10:14]OFDProtocolAddRootSTLVToBuf [09:10:14]FM_MakeSignedData [09:10:14]FM_MakeSignedData [09:10:14]SAM_PROTO_SignData [09:10:14]wFMCommunicate request_size=4 [09:10:14]MH_SAM_APDU [09:10:14]CAPDU: 80 0D 01 02 [09:10:14]Write to MH i2c: E2 08 00 A6 34 80 0D 01 02 00 00 00 00 53 [09:10:14]Write i2c OK [09:10:14]MH_I2C_Read... [09:10:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:10:14]Read from MH i2c: E2 [09:10:14]MH_I2C_Read... [09:10:14]Read from MH i2c: E2 03 00 [09:10:14]MH_I2C_Read... [09:10:14]Read from MH i2c: E2 03 00 A6 34 00 90 00 4E [09:10:14]RAPDU: 90 00 [09:10:14]wFMCommunicate OK [09:10:14]wFMCommunicate request_size=255 [09:10:14]MH_SAM_APDU [09:10: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 33 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 4C 00 00 00 F4 03 04 00 78 1A 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 DC DC 02 00 35 04 06 00 B1 [09:10:14]Write to MH i2c: E2 02 01 A7 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 33 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 4C 00 00 00 F4 03 04 00 78 1A 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 DC DC 02 00 35 04 06 00 B1 00 00 53 [09:10:14]Write i2c OK [09:10:14]MH_I2C_Read... [09:10:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:10:15]Read from MH i2c: E2 [09:10:15]MH_I2C_Read... [09:10:15]Read from MH i2c: E2 03 00 [09:10:15]MH_I2C_Read... [09:10:15]Read from MH i2c: E2 03 00 A7 34 00 90 00 4F [09:10:15]RAPDU: 90 00 [09:10:15]wFMCommunicate OK [09:10:15]wFMCommunicate request_size=10 [09:10:15]MH_SAM_APDU [09:10:15]CAPDU: 80 0D 02 02 05 5D 3D 79 5D A1 [09:10:15]Write to MH i2c: E2 0D 00 A8 34 80 0D 02 02 05 00 5D 3D 79 5D A1 00 00 71 [09:10:15]Write i2c OK [09:10:15]MH_I2C_Read... [09:10:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:10:15]Read from MH i2c: E2 [09:10:15]MH_I2C_Read... [09:10:15]Read from MH i2c: E2 03 00 [09:10:15]MH_I2C_Read... [09:10:15]Read from MH i2c: E2 03 00 A8 34 00 90 00 50 [09:10:15]RAPDU: 90 00 [09:10:15]wFMCommunicate OK [09:10:15]wFMCommunicate request_size=4 [09:10:15]MH_SAM_APDU [09:10:15]CAPDU: 80 0D 03 02 [09:10:15]Write to MH i2c: E2 08 00 A9 34 80 0D 03 02 00 00 00 00 58 [09:10:15]Write i2c OK [09:10:15]MH_I2C_Read... [09:10:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:10:15]Read from MH i2c: E2 [09:10:15]MH_I2C_Read... [09:10:15]Read from MH i2c: E2 0B 00 [09:10:15]MH_I2C_Read... [09:10:15]Read from MH i2c: E2 0B 00 A9 34 00 C5 0B F0 07 F9 7E 03 66 90 00 00 [09:10:15]RAPDU: C5 0B F0 07 F9 7E 03 66 90 00 [09:10:15]wFMCommunicate OK [09:10:15]SAM_PROTO_SignData done [09:10:15]FM_MakeSignedData done [09:10:15]CreateOFDProtocolMessage [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 AA 34 80 11 00 00 00 00 00 00 58 [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 AA 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 A6 [09:10:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [09:10:15]wFMCommunicate OK [09:10:15]CreateOFDProtocolMessage done [09:10:15]OFDSenderStorePacket 187612 [09:10:15]StoreOFDPacket docnum=187612 [09:10:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 1E 2A 07 01 91 A5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 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 4C 00 00 00 F4 03 04 00 78 1A 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 DC DC 02 00 35 04 06 00 B1 5D 3D 79 5D A1 C5 0B F0 07 F9 7E 03 66 [09:10:15]CheckFolder [09:10:15]dirname=/storage/ofd_packets [09:10:15]CheckFolder done [09:10:15]ProducePacketName [09:10:15]name=ofd_packets/00187612 [09:10:15]NVStorageSaveData ofd_packets/00187612 [09:10:15]File name is /storage/ofd_packets/00187612 [09:10:15]Write 301 bytes [09:10:15]NVStorageSaveData done [09:10:15]OFDSenderStorePacket done [09:10:15]KKMCreateOFDPacket done [09:10:15]NVStorageSaveData kkm_last_timestamp [09:10:15]File name is /storage/kkm_last_timestamp [09:10:15]Write 4 bytes [09:10:15]NVStorageSaveData done [09:10:15]ExternCall_PrintAddStr [09:10:15]wPrintStart [09:10:15]Write to MH i2c: 01 00 00 AB 34 DF [09:10:15]Write i2c OK [09:10:15]MH_I2C_Read... [09:10:15]Read from MH i2c: 01 [09:10:15]MH_I2C_Read... [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 AB 34 00 00 00 00 00 FF 0F F4 [09:10:15]RasterBufferAndPrint [09:10:15]line Счет N : (1)209665 [09:10:15]line ИНН: 02508201610067 [09:10:15]line Контрольно-Кассовый Чек [09:10:15]line ПРОДАЖА [09:10:15]line ТРК (МРК, ГНК) : 32 [09:10:15]line Товар: 2710124130 [09:10:15]line Аи-92-К-3 [09:10:15]line 14.950 * 66.90 [09:10:15]line = 1000.16 [09:10:15]line НДС 12% НСП 1% [09:10:15]line > о реализуемом товаре [09:10:15]line ОКРУГЛЕНИЕ: -0.16 [09:10:15]line ИТОГО: 1000.00 [09:10:15]line Внесено: 1000.00 [09:10:15]line СДАЧА: 0.00 [09:10:15]line НСП 1% : 8.85 [09:10:15]line НДС 12% : 106.21 [09:10:15]line Наличными: 1000.00 [09:10:15]line Безнал.: 0.00 [09:10:15]line Место: АЗС № 86 "Партнер Нефть" [09:10:15]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [09:10:15]line СНО: Общий режим [09:10:15]line Чек 76 21.10.2024 09:10 [09:10:15]line Смена: 460 ФФД: 1.0 [09:10:15]line ЗНМ: 0300000155 [09:10:15]line РНМ: 0000000000100030 [09:10:15]line Версия ККМ: 001 [09:10:15]line ФМ: 0000000000965340 [09:10:15]line ФД: 187612 [09:10:15]line ФПД: 195014021438881 [09:10:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T091016&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187612&fm=195014021438881&tin=02508201610067®Number=0000000000100030&sum=100000 [09:10:15]written 0, free lines is 4095 [09:10:15]OFD Sender: Processing packet 187612 [packets to send 1062, broken 1061] [09:10:15]ProducePacketName [09:10:15]name=ofd_packets/00187612 [09:10:15]OFD Sender: To server: pG, [09:10:15]CommunicateWithHost lk.salyk.kg:30040 [09:10:15]ConnectInit lk.salyk.kg [09:10:15]Connected sock=10 [09:10:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 1E 2A 07 01 91 A5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 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 4C 00 00 00 F4 03 04 00 78 1A 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 DC DC 02 00 35 04 06 00 B1 5D 3D 79 5D A1 C5 0B F0 07 F9 7E 03 66 [09:10:15]Write to MH i2c: 01 00 00 D6 34 0A [09:10:15]Write i2c OK [09:10:15]MH_I2C_Read... [09:10:15]Read from MH i2c: 01 [09:10:15]MH_I2C_Read... [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 D6 34 00 00 00 00 00 6C 0C 89 [09:10:15]RasterBufferAndPrint [09:10:15]line [09:10:15]line [09:10:15]line [09:10:15]line [09:10:15]line [09:10:15]written 0, free lines is 3183 [09:10:15]MH_Cut [09:10:15]Write to MH i2c: D1 01 00 DD 34 01 E3 [09:10:15]Write i2c OK [09:10:15]MH_I2C_Read... [09:10:15]Read from MH i2c: D1 [09:10:15]MH_I2C_Read... [09:10:15]Read from MH i2c: D1 01 00 [09:10:15]MH_I2C_Read... [09:10:15]Read from MH i2c: D1 01 00 DD 34 00 E2 [09:10:15]Write to MH i2c: 01 00 00 DE 34 12 [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 39 36 35 33 34 30 4F 00 00 00 07 42 47 00 77 4D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 DC DC 02 00 F4 03 04 00 68 C4 15 67 B6 04 01 00 00 8F F2 44 04 FD BA D1 61 [09:10:15]CommunicateWithHost err = 0 [09:10:15]CheckOFDResponse [09:10:15]1017 (14) - 77093643461234 [09:10:15]1041 (16) - 0000000000965340 [09:10:15]1040 (4) - 187612 [09:10:15]1012 (4) - 21.10.2024 03:03 [09:10:15]1206 (1) - 0 [09:10:15]OFD Sender: Remove packet 187612 [09:10:15]ProducePacketName [09:10:15]name=ofd_packets/00187612 [09:10:15]NVStorageDeleteData [09:10:16]OFD Sender: No OFD packet to send [09:10:16]*** Cut start [09:10:16]*** Partial cut [09:10:16]*** CUTSNS_PIN = 1 [09:10:16]*** CUTSNS_PIN = 0 [09:10:17]*** Brake cut motor [09:10:17]Read from MH i2c: 01 [09:10:17]MH_I2C_Read... [09:10:17]*** Stop cut motor [09:10:17]*** Cut end [09:10:17]Read from MH i2c: 01 07 00 [09:10:17]MH_I2C_Read... [09:10:17]Read from MH i2c: 01 07 00 DE 34 00 00 00 00 00 FF 0F 27 [09:10:17]process_action close_receipt done [09:10:17]requested_data is exist [09:10:17]produce_requested_data [09:10:17]requested_item fm.sn is exist - process it [09:10:17]wFMCommunicate request_size=4 [09:10:17]MH_SAM_APDU [09:10:17]CAPDU: 80 11 00 00 [09:10:17]Write to MH i2c: E2 08 00 DF 34 80 11 00 00 00 00 00 00 8D [09:10:17]Write i2c OK [09:10:17]MH_I2C_Read... [09:10:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:10:17]Read from MH i2c: E2 [09:10:17]MH_I2C_Read... [09:10:17]Read from MH i2c: E2 17 00 [09:10:17]MH_I2C_Read... [09:10:17]Read from MH i2c: E2 17 00 DF 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 DB [09:10:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [09:10:17]wFMCommunicate OK [09:10:17]requested_item fd.num is exist - process it [09:10:17]SAM_PROTO_GetFieldsCounters [09:10:17]wFMCommunicate request_size=4 [09:10:17]MH_SAM_APDU [09:10:17]CAPDU: 80 13 00 00 [09:10:17]Write to MH i2c: E2 08 00 E0 34 80 13 00 00 00 00 00 00 90 [09:10:17]Write i2c OK [09:10:17]MH_I2C_Read... [09:10:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:10:17]Read from MH i2c: E2 [09:10:17]MH_I2C_Read... [09:10:17]Read from MH i2c: E2 62 00 [09:10:17]MH_I2C_Read... [09:10:17]Read from MH i2c: E2 62 00 E0 34 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 DC DC 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 4C 00 00 00 5E 04 04 00 4C 00 00 00 57 04 04 00 4D 00 00 00 19 04 04 00 00 00 00 00 90 00 02 [09:10:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 DC DC 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 4C 00 00 00 5E 04 04 00 4C 00 00 00 57 04 04 00 4D 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:10:17]wFMCommunicate OK [09:10:17]SAM_PROTO_GetFieldsCounters done [09:10:17]requested_item shift.num is exist - process it [09:10:17]requested_item shift.opened is exist - process it [09:10:17]req_shift_opened [09:10:17]FM_GetShiftState [09:10:17]SAM_PROTO_GetShiftState [09:10:17]wFMCommunicate request_size=4 [09:10:17]MH_SAM_APDU [09:10:17]CAPDU: 80 13 01 00 [09:10:17]Write to MH i2c: E2 08 00 E1 34 80 13 01 00 00 00 00 00 92 [09:10:17]Write i2c OK [09:10:17]MH_I2C_Read... [09:10:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:10:17]Read from MH i2c: E2 [09:10:17]MH_I2C_Read... [09:10:17]Read from MH i2c: E2 0E 00 [09:10:17]MH_I2C_Read... [09:10:17]Read from MH i2c: E2 0E 00 E1 34 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 F1 [09:10:17]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [09:10:17]wFMCommunicate OK [09:10:17]SAM_PROTO_GetShiftState done [09:10:17]FM_GetShiftState done [09:10:17]req_shift_opened done [09:10:17]requested_item shift.open_date is exist - process it [09:10:17]req_shift_open_date [09:10:17]req_shift_open_date done [09:10:17]produce_requested_data done [09:10:17]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187612,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [09:10:17]process_action_free close_receipt [09:10:17]json_value_free [09:10:17]json_value_free done [09:10:17]process_json_proto returns [09:10:17]Send response to host [09:10:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187612,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [09:10:17]free response buf [09:10:17]execute_script done [09:10:17]execute_script returns [09:10:17]free content buf [09:10:17]Sock 8.Close socket [09:10:17]Sock 8.Thread stoped [09:10:21]OFD Sender: No OFD packet to send [09:10:26]OFD Sender: No OFD packet to send [09:10:26]accept exits with 9 [09:10:26]New connection [09:10:26]New thread 3067014500 created [09:10:26]Thread 3067157860 joined [09:10:26]Waiting for new connection... [09:10:26] Sock 9.Parse request [09:10:26]Sock 9.Check first char [09:10:26]Sock 9.First char is OK [09:10:26]request: POST /json_proto HTTP/1.0 [09:10:26]Method: POST [09:10:26]URL: /json_proto [09:10:26]Method is POST - this is cgi request [09:10:26]url: /json_proto [09:10:26]query_string will be loaded in cgi processing [09:10:26]execute_cgi json_proto POST (null) [09:10:26]execute_cgi path=json_proto method=POST [09:10:26]POST find Content-Length [09:10:26]Host: 172.17.42.131:8080 [09:10:26]Content-Length: 682 [09:10:26]Content-Type: application/json [09:10:26] [09:10:26]POST finish read [09:10:26]Found Content-Length = 682 [09:10:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209664", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "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:10:26]execute_script... [09:10: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)209664", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "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:10:26]POST & json_proto [09:10:26]process_json_proto [09:10:26]json parsed OK: [09:10:26]protocol is kg_v1.0 [09:10:26]action value=close_receipt [09:10:26]process_action close_receipt [09:10:26]cmd_close_receipt [09:10:26]MH_GetDate [09:10:26]Write to MH i2c: F0 00 00 E2 34 05 [09:10:26]Write i2c OK [09:10:26]MH_I2C_Read... [09:10:26]Read from MH i2c: F0 [09:10:26]MH_I2C_Read... [09:10:26]Read from MH i2c: F0 09 00 [09:10:26]MH_I2C_Read... [09:10:26]Read from MH i2c: F0 09 00 E2 34 00 86 1A 16 67 A0 18 CA 66 13 [09:10:26]GetLastDocTimeStamp 1729501816 [09:10:26]current date 1729501830 [09:10:26]FM_GetShiftState [09:10:26]SAM_PROTO_GetShiftState [09:10:26]wFMCommunicate request_size=4 [09:10:26]MH_SAM_APDU [09:10:26]CAPDU: 80 13 01 00 [09:10:26]Write to MH i2c: E2 08 00 E3 34 80 13 01 00 00 00 00 00 94 [09:10:26]Write i2c OK [09:10:26]MH_I2C_Read... [09:10:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:10:26]Read from MH i2c: E2 [09:10:26]MH_I2C_Read... [09:10:26]Read from MH i2c: E2 0E 00 [09:10:26]MH_I2C_Read... [09:10:26]Read from MH i2c: E2 0E 00 E3 34 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 F3 [09:10:26]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [09:10:26]wFMCommunicate OK [09:10:26]SAM_PROTO_GetShiftState done [09:10:26]FM_GetShiftState done [09:10:26]opened in 1729469754 [09:10:26]opened+sec_in_day 1729556154 [09:10:26]quantity*price = 100015 [09:10:26]sum+1 = 100017 [09:10:26]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 77 21.10.2024 09:10 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 187613 ФПД: 72212872224350 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T091030&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187613&fm=72212872224350&tin=02508201610067®Number=0000000000100030&sum=100000 [09:10:27]StoreToDocumentArchive [09:10:27]shift 460 fd 187613 [09:10:27]save to /storage/0460/doc_00187613 [09:10:27]save last doc name /storage/0460/doc_00187613 to /storage/kkm_last_doc_name [09:10:27]save OK [09:10:27]Clear old archive folders... [09:10:27]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:10:27]tlvbuf is 01084330 [09:10:27]SAM_PROTO_ClearQueue [09:10:27]wFMCommunicate request_size=4 [09:10:27]MH_SAM_APDU [09:10:27]CAPDU: 80 09 00 00 [09:10:27]Write to MH i2c: E2 08 00 F0 34 80 09 00 00 00 00 00 00 96 [09:10:27]Write i2c OK [09:10:27]MH_I2C_Read... [09:10:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:10:27]Read from MH i2c: E2 [09:10:27]MH_I2C_Read... [09:10:27]Read from MH i2c: E2 03 00 [09:10:27]MH_I2C_Read... [09:10:27]Read from MH i2c: E2 03 00 F0 34 00 90 00 98 [09:10:27]RAPDU: 90 00 [09:10:27]wFMCommunicate OK [09:10:27]SAM_PROTO_ClearQueue done [09:10:27]KKMCreateOFDPacket [09:10:27]OFDProtocolAddRootSTLVToBuf [09:10:27]FM_MakeSignedData [09:10:27]FM_MakeSignedData [09:10:27]SAM_PROTO_SignData [09:10:27]wFMCommunicate request_size=4 [09:10:27]MH_SAM_APDU [09:10:27]CAPDU: 80 0D 01 02 [09:10:27]Write to MH i2c: E2 08 00 F1 34 80 0D 01 02 00 00 00 00 9E [09:10:27]Write i2c OK [09:10:27]MH_I2C_Read... [09:10:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:10:27]Read from MH i2c: E2 [09:10:27]MH_I2C_Read... [09:10:27]Read from MH i2c: E2 03 00 [09:10:27]MH_I2C_Read... [09:10:27]Read from MH i2c: E2 03 00 F1 34 00 90 00 99 [09:10:27]RAPDU: 90 00 [09:10:27]wFMCommunicate OK [09:10:27]wFMCommunicate request_size=255 [09:10:27]MH_SAM_APDU [09:10: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 33 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 4D 00 00 00 F4 03 04 00 86 1A 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 DD DC 02 00 35 04 06 00 41 [09:10:27]Write to MH i2c: E2 02 01 F2 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 33 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 4D 00 00 00 F4 03 04 00 86 1A 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 DD DC 02 00 35 04 06 00 41 00 00 3E [09:10:27]Write i2c OK [09:10:27]MH_I2C_Read... [09:10:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:10:28]Read from MH i2c: E2 [09:10:28]MH_I2C_Read... [09:10:28]Read from MH i2c: E2 03 00 [09:10:28]MH_I2C_Read... [09:10:28]Read from MH i2c: E2 03 00 F2 34 00 90 00 9A [09:10:28]RAPDU: 90 00 [09:10:28]wFMCommunicate OK [09:10:28]wFMCommunicate request_size=10 [09:10:28]MH_SAM_APDU [09:10:28]CAPDU: 80 0D 02 02 05 AD 5E 98 DE 5E [09:10:28]Write to MH i2c: E2 0D 00 F3 34 80 0D 02 02 05 00 AD 5E 98 DE 5E 00 00 8A [09:10:28]Write i2c OK [09:10:28]MH_I2C_Read... [09:10:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:10:28]Read from MH i2c: E2 [09:10:28]MH_I2C_Read... [09:10:28]Read from MH i2c: E2 03 00 [09:10:28]MH_I2C_Read... [09:10:28]Read from MH i2c: E2 03 00 F3 34 00 90 00 9B [09:10:28]RAPDU: 90 00 [09:10:28]wFMCommunicate OK [09:10:28]wFMCommunicate request_size=4 [09:10:28]MH_SAM_APDU [09:10:28]CAPDU: 80 0D 03 02 [09:10:28]Write to MH i2c: E2 08 00 F4 34 80 0D 03 02 00 00 00 00 A3 [09:10:28]Write i2c OK [09:10:28]MH_I2C_Read... [09:10:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:10:28]Read from MH i2c: E2 [09:10:28]MH_I2C_Read... [09:10:28]Read from MH i2c: E2 0B 00 [09:10:28]MH_I2C_Read... [09:10:28]Read from MH i2c: E2 0B 00 F4 34 00 4C 1A 62 D2 5D 4D 59 8A 90 00 CB [09:10:28]RAPDU: 4C 1A 62 D2 5D 4D 59 8A 90 00 [09:10:28]wFMCommunicate OK [09:10:28]SAM_PROTO_SignData done [09:10:28]FM_MakeSignedData done [09:10:28]CreateOFDProtocolMessage [09:10:28]wFMCommunicate request_size=4 [09:10:28]MH_SAM_APDU [09:10:28]CAPDU: 80 11 00 00 [09:10:28]Write to MH i2c: E2 08 00 F5 34 80 11 00 00 00 00 00 00 A3 [09:10:28]Write i2c OK [09:10:28]MH_I2C_Read... [09:10:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:10:28]Read from MH i2c: E2 [09:10:28]MH_I2C_Read... [09:10:28]Read from MH i2c: E2 17 00 [09:10:28]MH_I2C_Read... [09:10:28]Read from MH i2c: E2 17 00 F5 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 F1 [09:10:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [09:10:28]wFMCommunicate OK [09:10:28]CreateOFDProtocolMessage done [09:10:28]OFDSenderStorePacket 187613 [09:10:28]StoreOFDPacket docnum=187613 [09:10:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 50 86 07 01 DD C0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 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 4D 00 00 00 F4 03 04 00 86 1A 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 DD DC 02 00 35 04 06 00 41 AD 5E 98 DE 5E 4C 1A 62 D2 5D 4D 59 8A [09:10:28]CheckFolder [09:10:28]dirname=/storage/ofd_packets [09:10:28]CheckFolder done [09:10:28]ProducePacketName [09:10:28]name=ofd_packets/00187613 [09:10:28]NVStorageSaveData ofd_packets/00187613 [09:10:28]File name is /storage/ofd_packets/00187613 [09:10:28]Write 301 bytes [09:10:28]NVStorageSaveData done [09:10:28]OFDSenderStorePacket done [09:10:28]KKMCreateOFDPacket done [09:10:28]NVStorageSaveData kkm_last_timestamp [09:10:28]File name is /storage/kkm_last_timestamp [09:10:28]Write 4 bytes [09:10:28]NVStorageSaveData done [09:10:28]ExternCall_PrintAddStr [09:10:28]wPrintStart [09:10:28]Write to MH i2c: 01 00 00 F6 34 2A [09:10:28]Write i2c OK [09:10:28]MH_I2C_Read... [09:10:28]Read from MH i2c: 01 [09:10:28]MH_I2C_Read... [09:10:28]Read from MH i2c: 01 07 00 [09:10:28]MH_I2C_Read... [09:10:28]Read from MH i2c: 01 07 00 F6 34 00 00 00 00 00 FF 0F 3F [09:10:28]RasterBufferAndPrint [09:10:28]line Счет N : (1)209664 [09:10:28]line ИНН: 02508201610067 [09:10:28]line Контрольно-Кассовый Чек [09:10:28]line ПРОДАЖА [09:10:28]line ТРК (МРК, ГНК) : 42 [09:10:28]line Товар: 2710124130 [09:10:28]line Аи-92-К-3 [09:10:28]line 14.950 * 66.90 [09:10:28]line = 1000.16 [09:10:28]line НДС 12% НСП 1% [09:10:28]line > о реализуемом товаре [09:10:28]line ОКРУГЛЕНИЕ: -0.16 [09:10:28]line ИТОГО: 1000.00 [09:10:28]line Внесено: 1000.00 [09:10:28]line СДАЧА: 0.00 [09:10:28]line НСП 1% : 8.85 [09:10:28]line НДС 12% : 106.21 [09:10:28]line Наличными: 1000.00 [09:10:28]line Безнал.: 0.00 [09:10:28]line Место: АЗС № 86 "Партнер Нефть" [09:10:28]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [09:10:28]line СНО: Общий режим [09:10:28]line Чек 77 21.10.2024 09:10 [09:10:28]line Смена: 460 ФФД: 1.0 [09:10:28]line ЗНМ: 0300000155 [09:10:28]line РНМ: 0000000000100030 [09:10:28]line Версия ККМ: 001 [09:10:28]line ФМ: 0000000000965340 [09:10:28]line ФД: 187613 [09:10:28]line ФПД: 72212872224350 [09:10:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T091030&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187613&fm=72212872224350&tin=02508201610067®Number=0000000000100030&sum=100000 [09:10:28]written 0, free lines is 4095 [09:10:28]OFD Sender: Processing packet 187613 [packets to send 1062, broken 1061] [09:10:28]ProducePacketName [09:10:28]name=ofd_packets/00187613 [09:10:28]OFD Sender: To server: pG, [09:10:28]CommunicateWithHost lk.salyk.kg:30040 [09:10:28]ConnectInit lk.salyk.kg [09:10:28]Connected sock=10 [09:10:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 50 86 07 01 DD C0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 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 4D 00 00 00 F4 03 04 00 86 1A 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 DD DC 02 00 35 04 06 00 41 AD 5E 98 DE 5E 4C 1A 62 D2 5D 4D 59 8A [09:10:28]Write to MH i2c: 01 00 00 21 35 56 [09:10:28]Write i2c OK [09:10:28]MH_I2C_Read... [09:10:28]Read from MH i2c: 01 [09:10:28]MH_I2C_Read... [09:10:28]Read from MH i2c: 01 07 00 [09:10:28]MH_I2C_Read... [09:10:28]Read from MH i2c: 01 07 00 21 35 00 00 00 00 00 6D 0C D6 [09:10:28]RasterBufferAndPrint [09:10:28]line [09:10:28]line [09:10:28]line [09:10:28]line [09:10:28]line [09:10:28]written 0, free lines is 3184 [09:10:28]MH_Cut [09:10:28]Write to MH i2c: D1 01 00 28 35 01 2F [09:10:28]Write i2c OK [09:10:28]MH_I2C_Read... [09:10:28]Read from MH i2c: D1 [09:10:28]MH_I2C_Read... [09:10:28]Read from MH i2c: D1 01 00 [09:10:28]MH_I2C_Read... [09:10:28]Read from MH i2c: D1 01 00 28 35 00 2E [09:10:28]Write to MH i2c: 01 00 00 29 35 5E [09:10:28]Write i2c OK [09:10:28]MH_I2C_Read... [09:10:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 30 EA 47 00 1D 23 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 DD DC 02 00 F4 03 04 00 76 C4 15 67 B6 04 01 00 00 41 6F F4 23 92 B3 EB 9A [09:10:29]CommunicateWithHost err = 0 [09:10:29]CheckOFDResponse [09:10:29]1017 (14) - 77093643461234 [09:10:29]1041 (16) - 0000000000965340 [09:10:29]1040 (4) - 187613 [09:10:29]1012 (4) - 21.10.2024 03:03 [09:10:29]1206 (1) - 0 [09:10:29]OFD Sender: Remove packet 187613 [09:10:29]ProducePacketName [09:10:29]name=ofd_packets/00187613 [09:10:29]NVStorageDeleteData [09:10:29]OFD Sender: No OFD packet to send [09:10:30]*** Cut start [09:10:30]*** Partial cut [09:10:30]*** CUTSNS_PIN = 1 [09:10:30]*** CUTSNS_PIN = 0 [09:10:30]*** Brake cut motor [09:10:30]Read from MH i2c: 01 [09:10:30]MH_I2C_Read... [09:10:30]*** Stop cut motor [09:10:30]*** Cut end [09:10:30]Read from MH i2c: 01 07 00 [09:10:30]MH_I2C_Read... [09:10:30]Read from MH i2c: 01 07 00 29 35 00 00 00 00 00 FF 0F 73 [09:10:30]process_action close_receipt done [09:10:30]requested_data is exist [09:10:30]produce_requested_data [09:10:30]requested_item fm.sn is exist - process it [09:10:30]wFMCommunicate request_size=4 [09:10:30]MH_SAM_APDU [09:10:30]CAPDU: 80 11 00 00 [09:10:30]Write to MH i2c: E2 08 00 2A 35 80 11 00 00 00 00 00 00 D9 [09:10:30]Write i2c OK [09:10:30]MH_I2C_Read... [09:10:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:10:30]Read from MH i2c: E2 [09:10:30]MH_I2C_Read... [09:10:30]Read from MH i2c: E2 17 00 [09:10:30]MH_I2C_Read... [09:10:30]Read from MH i2c: E2 17 00 2A 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 27 [09:10:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [09:10:30]wFMCommunicate OK [09:10:30]requested_item fd.num is exist - process it [09:10:30]SAM_PROTO_GetFieldsCounters [09:10:30]wFMCommunicate request_size=4 [09:10:30]MH_SAM_APDU [09:10:30]CAPDU: 80 13 00 00 [09:10:30]Write to MH i2c: E2 08 00 2B 35 80 13 00 00 00 00 00 00 DC [09:10:30]Write i2c OK [09:10:30]MH_I2C_Read... [09:10:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:10:30]Read from MH i2c: E2 [09:10:30]MH_I2C_Read... [09:10:30]Read from MH i2c: E2 62 00 [09:10:30]MH_I2C_Read... [09:10:30]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 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 DD DC 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 4D 00 00 00 5E 04 04 00 4D 00 00 00 57 04 04 00 4E 00 00 00 19 04 04 00 00 00 00 00 90 00 52 [09:10:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 DD DC 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 4D 00 00 00 5E 04 04 00 4D 00 00 00 57 04 04 00 4E 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:10:30]wFMCommunicate OK [09:10:30]SAM_PROTO_GetFieldsCounters done [09:10:30]requested_item shift.num is exist - process it [09:10:30]requested_item shift.opened is exist - process it [09:10:30]req_shift_opened [09:10:30]FM_GetShiftState [09:10:30]SAM_PROTO_GetShiftState [09:10:30]wFMCommunicate request_size=4 [09:10:30]MH_SAM_APDU [09:10:30]CAPDU: 80 13 01 00 [09:10:30]Write to MH i2c: E2 08 00 2C 35 80 13 01 00 00 00 00 00 DE [09:10:30]Write i2c OK [09:10:30]MH_I2C_Read... [09:10:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:10:30]Read from MH i2c: E2 [09:10:30]MH_I2C_Read... [09:10:30]Read from MH i2c: E2 0E 00 [09:10:30]MH_I2C_Read... [09:10:30]Read from MH i2c: E2 0E 00 2C 35 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 3D [09:10:30]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [09:10:30]wFMCommunicate OK [09:10:30]SAM_PROTO_GetShiftState done [09:10:30]FM_GetShiftState done [09:10:30]req_shift_opened done [09:10:30]requested_item shift.open_date is exist - process it [09:10:30]req_shift_open_date [09:10:30]req_shift_open_date done [09:10:30]produce_requested_data done [09:10:30]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187613,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [09:10:30]process_action_free close_receipt [09:10:30]json_value_free [09:10:30]json_value_free done [09:10:30]process_json_proto returns [09:10:30]Send response to host [09:10:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187613,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [09:10:30]free response buf [09:10:30]execute_script done [09:10:30]execute_script returns [09:10:30]free content buf [09:10:30]Sock 9.Close socket [09:10:30]Sock 9.Thread stoped [09:10:34]OFD Sender: No OFD packet to send [09:10:39]OFD Sender: No OFD packet to send [09:10:44]OFD Sender: No OFD packet to send [09:10:49]OFD Sender: No OFD packet to send [09:10:54]OFD Sender: No OFD packet to send [09:10:59]OFD Sender: No OFD packet to send [09:11:04]OFD Sender: No OFD packet to send [09:11:09]OFD Sender: No OFD packet to send [09:11:14]OFD Sender: No OFD packet to send [09:11:19]OFD Sender: No OFD packet to send [09:11:24]OFD Sender: No OFD packet to send [09:11:29]OFD Sender: No OFD packet to send [09:11:34]OFD Sender: No OFD packet to send [09:11:39]OFD Sender: No OFD packet to send [09:11:40]accept exits with 8 [09:11:40]New connection [09:11:40]New thread 3067157860 created [09:11:40]Thread 3067014500 joined [09:11:40]Waiting for new connection... [09:11:40] Sock 8.Parse request [09:11:40]Sock 8.Check first char [09:11:40]Sock 8.First char is OK [09:11:40]request: POST /json_proto HTTP/1.0 [09:11:40]Method: POST [09:11:40]URL: /json_proto [09:11:40]Method is POST - this is cgi request [09:11:40]url: /json_proto [09:11:40]query_string will be loaded in cgi processing [09:11:40]execute_cgi json_proto POST (null) [09:11:40]execute_cgi path=json_proto method=POST [09:11:40]POST find Content-Length [09:11:40]Host: 172.17.42.131:8080 [09:11:40]Content-Length: 766 [09:11:40]Content-Type: application/json [09:11:40] [09:11:40]POST finish read [09:11:40]Found Content-Length = 766 [09:11:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209666", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "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" ] } } [09:11:40]execute_script... [09:11: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)209666", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "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" ] } } [09:11:40]POST & json_proto [09:11:40]process_json_proto [09:11:40]json parsed OK: [09:11:40]protocol is kg_v1.0 [09:11:40]action value=close_receipt [09:11:40]process_action close_receipt [09:11:40]cmd_close_receipt [09:11:40]MH_GetDate [09:11:40]Write to MH i2c: F0 00 00 2D 35 51 [09:11:40]Write i2c OK [09:11:40]MH_I2C_Read... [09:11:40]Read from MH i2c: F0 [09:11:40]MH_I2C_Read... [09:11:40]Read from MH i2c: F0 09 00 [09:11:40]MH_I2C_Read... [09:11:40]Read from MH i2c: F0 09 00 2D 35 00 D0 1A 16 67 A0 18 CA 66 A9 [09:11:40]GetLastDocTimeStamp 1729501830 [09:11:40]current date 1729501904 [09:11:40]FM_GetShiftState [09:11:40]SAM_PROTO_GetShiftState [09:11:40]wFMCommunicate request_size=4 [09:11:40]MH_SAM_APDU [09:11:40]CAPDU: 80 13 01 00 [09:11:40]Write to MH i2c: E2 08 00 2E 35 80 13 01 00 00 00 00 00 E0 [09:11:40]Write i2c OK [09:11:40]MH_I2C_Read... [09:11:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:11:40]Read from MH i2c: E2 [09:11:40]MH_I2C_Read... [09:11:40]Read from MH i2c: E2 0E 00 [09:11:40]MH_I2C_Read... [09:11:40]Read from MH i2c: E2 0E 00 2E 35 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 3F [09:11:40]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [09:11:40]wFMCommunicate OK [09:11:40]SAM_PROTO_GetShiftState done [09:11:40]FM_GetShiftState done [09:11:40]opened in 1729469754 [09:11:40]opened+sec_in_day 1729556154 [09:11:40]quantity*price = 60009 [09:11:40]sum+1 = 60010 [09:11:40]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 600.09 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 0.00 Безнал.: 600.09 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 78 21.10.2024 09:11 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000965340 ФД: 187614 ФПД: 108666049549780 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T091144&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187614&fm=108666049549780&tin=02508201610067®Number=0000000000100030&sum=60009 [09:11:41]StoreToDocumentArchive [09:11:41]shift 460 fd 187614 [09:11:41]save to /storage/0460/doc_00187614 [09:11:41]save last doc name /storage/0460/doc_00187614 to /storage/kkm_last_doc_name [09:11:41]save OK [09:11:41]Clear old archive folders... [09:11:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:11:41]tlvbuf is 01121220 [09:11:41]SAM_PROTO_ClearQueue [09:11:41]wFMCommunicate request_size=4 [09:11:41]MH_SAM_APDU [09:11:41]CAPDU: 80 09 00 00 [09:11:41]Write to MH i2c: E2 08 00 3B 35 80 09 00 00 00 00 00 00 E2 [09:11:41]Write i2c OK [09:11:41]MH_I2C_Read... [09:11:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:11:41]Read from MH i2c: E2 [09:11:41]MH_I2C_Read... [09:11:41]Read from MH i2c: E2 03 00 [09:11:41]MH_I2C_Read... [09:11:41]Read from MH i2c: E2 03 00 3B 35 00 90 00 E4 [09:11:41]RAPDU: 90 00 [09:11:41]wFMCommunicate OK [09:11:41]SAM_PROTO_ClearQueue done [09:11:41]KKMCreateOFDPacket [09:11:41]OFDProtocolAddRootSTLVToBuf [09:11:41]FM_MakeSignedData [09:11:41]FM_MakeSignedData [09:11:41]SAM_PROTO_SignData [09:11:41]wFMCommunicate request_size=4 [09:11:41]MH_SAM_APDU [09:11:41]CAPDU: 80 0D 01 02 [09:11:41]Write to MH i2c: E2 08 00 3C 35 80 0D 01 02 00 00 00 00 EA [09:11:41]Write i2c OK [09:11:41]MH_I2C_Read... [09:11:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:11:41]Read from MH i2c: E2 [09:11:41]MH_I2C_Read... [09:11:41]Read from MH i2c: E2 03 00 [09:11:41]MH_I2C_Read... [09:11:41]Read from MH i2c: E2 03 00 3C 35 00 90 00 E5 [09:11:41]RAPDU: 90 00 [09:11:41]wFMCommunicate OK [09:11:41]wFMCommunicate request_size=255 [09:11:41]MH_SAM_APDU [09:11: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 33 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 4E 00 00 00 F4 03 04 00 D0 1A 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 DE DC 02 00 35 04 06 00 62 [09:11:41]Write to MH i2c: E2 02 01 3D 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 33 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 4E 00 00 00 F4 03 04 00 D0 1A 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 DE DC 02 00 35 04 06 00 62 00 00 EC [09:11:41]Write i2c OK [09:11:41]MH_I2C_Read... [09:11:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:11:42]Read from MH i2c: E2 [09:11:42]MH_I2C_Read... [09:11:42]Read from MH i2c: E2 03 00 [09:11:42]MH_I2C_Read... [09:11:42]Read from MH i2c: E2 03 00 3D 35 00 90 00 E6 [09:11:42]RAPDU: 90 00 [09:11:42]wFMCommunicate OK [09:11:42]wFMCommunicate request_size=10 [09:11:42]MH_SAM_APDU [09:11:42]CAPDU: 80 0D 02 02 05 D4 C9 48 55 D4 [09:11:42]Write to MH i2c: E2 0D 00 3E 35 80 0D 02 02 05 00 D4 C9 48 55 D4 00 00 05 [09:11:42]Write i2c OK [09:11:42]MH_I2C_Read... [09:11:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:11:42]Read from MH i2c: E2 [09:11:42]MH_I2C_Read... [09:11:42]Read from MH i2c: E2 03 00 [09:11:42]MH_I2C_Read... [09:11:42]Read from MH i2c: E2 03 00 3E 35 00 90 00 E7 [09:11:42]RAPDU: 90 00 [09:11:42]wFMCommunicate OK [09:11:42]wFMCommunicate request_size=4 [09:11:42]MH_SAM_APDU [09:11:42]CAPDU: 80 0D 03 02 [09:11:42]Write to MH i2c: E2 08 00 3F 35 80 0D 03 02 00 00 00 00 EF [09:11:42]Write i2c OK [09:11:42]MH_I2C_Read... [09:11:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:11:42]Read from MH i2c: E2 [09:11:42]MH_I2C_Read... [09:11:42]Read from MH i2c: E2 0B 00 [09:11:42]MH_I2C_Read... [09:11:42]Read from MH i2c: E2 0B 00 3F 35 00 C1 68 23 3E AA D5 C8 84 90 00 45 [09:11:42]RAPDU: C1 68 23 3E AA D5 C8 84 90 00 [09:11:42]wFMCommunicate OK [09:11:42]SAM_PROTO_SignData done [09:11:42]FM_MakeSignedData done [09:11:42]CreateOFDProtocolMessage [09:11:42]wFMCommunicate request_size=4 [09:11:42]MH_SAM_APDU [09:11:42]CAPDU: 80 11 00 00 [09:11:42]Write to MH i2c: E2 08 00 40 35 80 11 00 00 00 00 00 00 EF [09:11:42]Write i2c OK [09:11:42]MH_I2C_Read... [09:11:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:11:42]Read from MH i2c: E2 [09:11:42]MH_I2C_Read... [09:11:42]Read from MH i2c: E2 17 00 [09:11:42]MH_I2C_Read... [09:11:42]Read from MH i2c: E2 17 00 40 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 3D [09:11:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [09:11:42]wFMCommunicate OK [09:11:42]CreateOFDProtocolMessage done [09:11:42]OFDSenderStorePacket 187614 [09:11:42]StoreOFDPacket docnum=187614 [09:11:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 F1 81 07 01 27 6F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 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 4E 00 00 00 F4 03 04 00 D0 1A 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 DE DC 02 00 35 04 06 00 62 D4 C9 48 55 D4 C1 68 23 3E AA D5 C8 84 [09:11:42]CheckFolder [09:11:42]dirname=/storage/ofd_packets [09:11:42]CheckFolder done [09:11:42]ProducePacketName [09:11:42]name=ofd_packets/00187614 [09:11:42]NVStorageSaveData ofd_packets/00187614 [09:11:42]File name is /storage/ofd_packets/00187614 [09:11:42]Write 301 bytes [09:11:42]NVStorageSaveData done [09:11:42]OFDSenderStorePacket done [09:11:42]KKMCreateOFDPacket done [09:11:42]NVStorageSaveData kkm_last_timestamp [09:11:42]File name is /storage/kkm_last_timestamp [09:11:42]Write 4 bytes [09:11:42]NVStorageSaveData done [09:11:42]ExternCall_PrintAddStr [09:11:42]wPrintStart [09:11:42]Write to MH i2c: 01 00 00 41 35 76 [09:11:42]Write i2c OK [09:11:42]MH_I2C_Read... [09:11:42]Read from MH i2c: 01 [09:11:42]MH_I2C_Read... [09:11:42]Read from MH i2c: 01 07 00 [09:11:42]MH_I2C_Read... [09:11:42]Read from MH i2c: 01 07 00 41 35 00 00 00 00 00 FF 0F 8B [09:11:42]RasterBufferAndPrint [09:11:42]line Счет N : (1)209666 [09:11:42]line ИНН: 02508201610067 [09:11:42]line Контрольно-Кассовый Чек [09:11:42]line ПРОДАЖА [09:11:42]line ТРК (МРК, ГНК) : 12 [09:11:42]line Товар: 2710124130 [09:11:42]line Аи-92-К-3 [09:11:42]line 8.970 * 66.90 [09:11:42]line = 600.09 [09:11:42]line НДС 12% НСП 1% [09:11:42]line > о реализуемом товаре [09:11:42]line ИТОГО: 600.09 [09:11:42]line НСП 1% : 5.31 [09:11:42]line НДС 12% : 63.73 [09:11:42]line Наличными: 0.00 [09:11:42]line Безнал.: 600.09 [09:11:42]line Место: АЗС № 86 "Партнер Нефть" [09:11:42]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [09:11:42]line СНО: Общий режим [09:11:42]line Чек 78 21.10.2024 09:11 [09:11:42]line Смена: 460 ФФД: 1.0 [09:11:42]line ЗНМ: 0300000155 [09:11:42]line РНМ: 0000000000100030 [09:11:42]line Версия ККМ: 001 [09:11:42]line Платежная система: Mbank [09:11:42]line ФМ: 0000000000965340 [09:11:42]line ФД: 187614 [09:11:42]line ФПД: 108666049549780 [09:11:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T091144&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187614&fm=108666049549780&tin=02508201610067®Number=0000000000100030&sum=60009 [09:11:42]written 0, free lines is 4095 [09:11:42]OFD Sender: Processing packet 187614 [packets to send 1062, broken 1061] [09:11:42]ProducePacketName [09:11:42]name=ofd_packets/00187614 [09:11:42]OFD Sender: To server: pG, [09:11:42]CommunicateWithHost lk.salyk.kg:30040 [09:11:42]ConnectInit lk.salyk.kg [09:11:42]Connected sock=10 [09:11:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 F1 81 07 01 27 6F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 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 4E 00 00 00 F4 03 04 00 D0 1A 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 DE DC 02 00 35 04 06 00 62 D4 C9 48 55 D4 C1 68 23 3E AA D5 C8 84 [09:11:42]Write to MH i2c: 01 00 00 6A 35 9F [09:11:42]Write i2c OK [09:11:42]MH_I2C_Read... [09:11:42]Read from MH i2c: 01 [09:11:42]MH_I2C_Read... [09:11:42]Read from MH i2c: 01 07 00 [09:11:42]MH_I2C_Read... [09:11:42]Read from MH i2c: 01 07 00 6A 35 00 00 00 00 00 9D 0C 4F [09:11:42]RasterBufferAndPrint [09:11:42]line [09:11:42]line [09:11:42]line [09:11:42]line [09:11:42]line [09:11:42]written 0, free lines is 3234 [09:11:42]MH_Cut [09:11:42]Write to MH i2c: D1 01 00 71 35 01 78 [09:11:42]Write i2c OK [09:11:42]MH_I2C_Read... [09:11:42]Read from MH i2c: D1 [09:11:42]MH_I2C_Read... [09:11:42]Read from MH i2c: D1 01 00 [09:11:42]MH_I2C_Read... [09:11:42]Read from MH i2c: D1 01 00 71 35 00 77 [09:11:42]Write to MH i2c: 01 00 00 72 35 A7 [09:11:42]Write i2c OK [09:11:42]MH_I2C_Read... [09:11:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 20 41 47 00 64 CB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 DE DC 02 00 F4 03 04 00 BF C4 15 67 B6 04 01 00 00 7B E9 3B F1 08 94 28 8B [09:11:42]CommunicateWithHost err = 0 [09:11:42]CheckOFDResponse [09:11:42]1017 (14) - 77093643461234 [09:11:42]1041 (16) - 0000000000965340 [09:11:42]1040 (4) - 187614 [09:11:42]1012 (4) - 21.10.2024 03:04 [09:11:42]1206 (1) - 0 [09:11:42]OFD Sender: Remove packet 187614 [09:11:42]ProducePacketName [09:11:42]name=ofd_packets/00187614 [09:11:42]NVStorageDeleteData [09:11:43]OFD Sender: No OFD packet to send [09:11:43]*** Cut start [09:11:43]*** Partial cut [09:11:43]*** CUTSNS_PIN = 1 [09:11:43]*** CUTSNS_PIN = 0 [09:11:44]*** Brake cut motor [09:11:44]Read from MH i2c: 01 [09:11:44]MH_I2C_Read... [09:11:44]*** Stop cut motor [09:11:44]*** Cut end [09:11:44]Read from MH i2c: 01 07 00 [09:11:44]MH_I2C_Read... [09:11:44]Read from MH i2c: 01 07 00 72 35 00 00 00 00 00 FF 0F BC [09:11:44]process_action close_receipt done [09:11:44]requested_data is exist [09:11:44]produce_requested_data [09:11:44]requested_item fm.sn is exist - process it [09:11:44]wFMCommunicate request_size=4 [09:11:44]MH_SAM_APDU [09:11:44]CAPDU: 80 11 00 00 [09:11:44]Write to MH i2c: E2 08 00 73 35 80 11 00 00 00 00 00 00 22 [09:11:44]Write i2c OK [09:11:44]MH_I2C_Read... [09:11:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:11:44]Read from MH i2c: E2 [09:11:44]MH_I2C_Read... [09:11:44]Read from MH i2c: E2 17 00 [09:11:44]MH_I2C_Read... [09:11:44]Read from MH i2c: E2 17 00 73 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 70 [09:11:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [09:11:44]wFMCommunicate OK [09:11:44]requested_item fd.num is exist - process it [09:11:44]SAM_PROTO_GetFieldsCounters [09:11:44]wFMCommunicate request_size=4 [09:11:44]MH_SAM_APDU [09:11:44]CAPDU: 80 13 00 00 [09:11:44]Write to MH i2c: E2 08 00 74 35 80 13 00 00 00 00 00 00 25 [09:11:44]Write i2c OK [09:11:44]MH_I2C_Read... [09:11:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:11:44]Read from MH i2c: E2 [09:11:44]MH_I2C_Read... [09:11:44]Read from MH i2c: E2 62 00 [09:11:44]MH_I2C_Read... [09:11:44]Read from MH i2c: E2 62 00 74 35 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 DE DC 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 4E 00 00 00 5E 04 04 00 4E 00 00 00 57 04 04 00 4F 00 00 00 19 04 04 00 00 00 00 00 90 00 9F [09:11:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 DE DC 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 4E 00 00 00 5E 04 04 00 4E 00 00 00 57 04 04 00 4F 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:11:44]wFMCommunicate OK [09:11:44]SAM_PROTO_GetFieldsCounters done [09:11:44]requested_item shift.num is exist - process it [09:11:44]requested_item shift.opened is exist - process it [09:11:44]req_shift_opened [09:11:44]FM_GetShiftState [09:11:44]SAM_PROTO_GetShiftState [09:11:44]wFMCommunicate request_size=4 [09:11:44]MH_SAM_APDU [09:11:44]CAPDU: 80 13 01 00 [09:11:44]Write to MH i2c: E2 08 00 75 35 80 13 01 00 00 00 00 00 27 [09:11:44]Write i2c OK [09:11:44]MH_I2C_Read... [09:11:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:11:44]Read from MH i2c: E2 [09:11:44]MH_I2C_Read... [09:11:44]Read from MH i2c: E2 0E 00 [09:11:44]MH_I2C_Read... [09:11:44]Read from MH i2c: E2 0E 00 75 35 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 86 [09:11:44]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [09:11:44]wFMCommunicate OK [09:11:44]SAM_PROTO_GetShiftState done [09:11:44]FM_GetShiftState done [09:11:44]req_shift_opened done [09:11:44]requested_item shift.open_date is exist - process it [09:11:44]req_shift_open_date [09:11:44]req_shift_open_date done [09:11:44]produce_requested_data done [09:11:44]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187614,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [09:11:44]process_action_free close_receipt [09:11:44]json_value_free [09:11:44]json_value_free done [09:11:44]process_json_proto returns [09:11:44]Send response to host [09:11:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187614,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [09:11:44]free response buf [09:11:44]execute_script done [09:11:44]execute_script returns [09:11:44]free content buf [09:11:44]Sock 8.Close socket [09:11:44]Sock 8.Thread stoped [09:11:48]OFD Sender: No OFD packet to send [09:11:53]OFD Sender: No OFD packet to send [09:11:58]OFD Sender: No OFD packet to send [09:12:03]OFD Sender: No OFD packet to send [09:12:08]OFD Sender: No OFD packet to send [09:12:13]OFD Sender: No OFD packet to send [09:12:18]OFD Sender: No OFD packet to send [09:12:23]OFD Sender: No OFD packet to send [09:12:28]OFD Sender: No OFD packet to send [09:12:33]OFD Sender: No OFD packet to send [09:12:38]OFD Sender: No OFD packet to send [09:12:43]OFD Sender: No OFD packet to send [09:12:48]OFD Sender: No OFD packet to send [09:12:53]OFD Sender: No OFD packet to send [09:12:58]OFD Sender: No OFD packet to send [09:13:03]OFD Sender: No OFD packet to send [09:13:04]accept exits with 9 [09:13:04]New connection [09:13:04]New thread 3067014500 created [09:13:04]Thread 3067157860 joined [09:13:04]Waiting for new connection... [09:13:04] Sock 9.Parse request [09:13:04]Sock 9.Check first char [09:13:04]Sock 9.First char is OK [09:13:04]request: POST /json_proto HTTP/1.0 [09:13:04]Method: POST [09:13:04]URL: /json_proto [09:13:04]Method is POST - this is cgi request [09:13:04]url: /json_proto [09:13:04]query_string will be loaded in cgi processing [09:13:04]execute_cgi json_proto POST (null) [09:13:04]execute_cgi path=json_proto method=POST [09:13:04]POST find Content-Length [09:13:04]Host: 172.17.42.131:8080 [09:13:04]Content-Length: 682 [09:13:04]Content-Type: application/json [09:13:04] [09:13:04]POST finish read [09:13:04]Found Content-Length = 682 [09:13:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209667", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:13:04]execute_script... [09:13:04]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209667", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:13:04]POST & json_proto [09:13:04]process_json_proto [09:13:04]json parsed OK: [09:13:04]protocol is kg_v1.0 [09:13:04]action value=close_receipt [09:13:04]process_action close_receipt [09:13:04]cmd_close_receipt [09:13:04]MH_GetDate [09:13:04]Write to MH i2c: F0 00 00 76 35 9A [09:13:04]Write i2c OK [09:13:04]MH_I2C_Read... [09:13:04]Read from MH i2c: F0 [09:13:04]MH_I2C_Read... [09:13:04]Read from MH i2c: F0 09 00 [09:13:04]MH_I2C_Read... [09:13:04]Read from MH i2c: F0 09 00 76 35 00 24 1B 16 67 A0 18 CA 66 47 [09:13:04]GetLastDocTimeStamp 1729501904 [09:13:04]current date 1729501988 [09:13:04]FM_GetShiftState [09:13:04]SAM_PROTO_GetShiftState [09:13:04]wFMCommunicate request_size=4 [09:13:04]MH_SAM_APDU [09:13:04]CAPDU: 80 13 01 00 [09:13:04]Write to MH i2c: E2 08 00 77 35 80 13 01 00 00 00 00 00 29 [09:13:05]Write i2c OK [09:13:05]MH_I2C_Read... [09:13:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:13:05]Read from MH i2c: E2 [09:13:05]MH_I2C_Read... [09:13:05]Read from MH i2c: E2 0E 00 [09:13:05]MH_I2C_Read... [09:13:05]Read from MH i2c: E2 0E 00 77 35 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 88 [09:13:05]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [09:13:05]wFMCommunicate OK [09:13:05]SAM_PROTO_GetShiftState done [09:13:05]FM_GetShiftState done [09:13:05]opened in 1729469754 [09:13:05]opened+sec_in_day 1729556154 [09:13:05]quantity*price = 100021 [09:13:05]sum+1 = 100023 [09:13:05]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 79 21.10.2024 09:13 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 187615 ФПД: 258983750814219 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T091308&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187615&fm=258983750814219&tin=02508201610067®Number=0000000000100030&sum=100000 [09:13:06]StoreToDocumentArchive [09:13:06]shift 460 fd 187615 [09:13:06]save to /storage/0460/doc_00187615 [09:13:06]save last doc name /storage/0460/doc_00187615 to /storage/kkm_last_doc_name [09:13:06]save OK [09:13:06]Clear old archive folders... [09:13:06]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:13:06]tlvbuf is 01121080 [09:13:06]SAM_PROTO_ClearQueue [09:13:06]wFMCommunicate request_size=4 [09:13:06]MH_SAM_APDU [09:13:06]CAPDU: 80 09 00 00 [09:13:06]Write to MH i2c: E2 08 00 84 35 80 09 00 00 00 00 00 00 2B [09:13:06]Write i2c OK [09:13:06]MH_I2C_Read... [09:13:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:13:06]Read from MH i2c: E2 [09:13:06]MH_I2C_Read... [09:13:06]Read from MH i2c: E2 03 00 [09:13:06]MH_I2C_Read... [09:13:06]Read from MH i2c: E2 03 00 84 35 00 90 00 2D [09:13:06]RAPDU: 90 00 [09:13:06]wFMCommunicate OK [09:13:06]SAM_PROTO_ClearQueue done [09:13:06]KKMCreateOFDPacket [09:13:06]OFDProtocolAddRootSTLVToBuf [09:13:06]FM_MakeSignedData [09:13:06]FM_MakeSignedData [09:13:06]SAM_PROTO_SignData [09:13:06]wFMCommunicate request_size=4 [09:13:06]MH_SAM_APDU [09:13:06]CAPDU: 80 0D 01 02 [09:13:06]Write to MH i2c: E2 08 00 85 35 80 0D 01 02 00 00 00 00 33 [09:13:06]Write i2c OK [09:13:06]MH_I2C_Read... [09:13:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:13:06]Read from MH i2c: E2 [09:13:06]MH_I2C_Read... [09:13:06]Read from MH i2c: E2 03 00 [09:13:06]MH_I2C_Read... [09:13:06]Read from MH i2c: E2 03 00 85 35 00 90 00 2E [09:13:06]RAPDU: 90 00 [09:13:06]wFMCommunicate OK [09:13:06]wFMCommunicate request_size=255 [09:13:06]MH_SAM_APDU [09:13: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 24 1B 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 DF DC 02 00 35 04 06 00 EB [09:13:06]Write to MH i2c: E2 02 01 86 35 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 24 1B 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 DF DC 02 00 35 04 06 00 EB 00 00 43 [09:13:06]Write i2c OK [09:13:06]MH_I2C_Read... [09:13:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:13:06]Read from MH i2c: E2 [09:13:06]MH_I2C_Read... [09:13:06]Read from MH i2c: E2 03 00 [09:13:06]MH_I2C_Read... [09:13:06]Read from MH i2c: E2 03 00 86 35 00 90 00 2F [09:13:06]RAPDU: 90 00 [09:13:06]wFMCommunicate OK [09:13:06]wFMCommunicate request_size=10 [09:13:06]MH_SAM_APDU [09:13:06]CAPDU: 80 0D 02 02 05 8B 5A 78 4A 0B [09:13:06]Write to MH i2c: E2 0D 00 87 35 80 0D 02 02 05 00 8B 5A 78 4A 0B 00 00 F2 [09:13:06]Write i2c OK [09:13:06]MH_I2C_Read... [09:13:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:13:06]Read from MH i2c: E2 [09:13:06]MH_I2C_Read... [09:13:06]Read from MH i2c: E2 03 00 [09:13:06]MH_I2C_Read... [09:13:06]Read from MH i2c: E2 03 00 87 35 00 90 00 30 [09:13:06]RAPDU: 90 00 [09:13:06]wFMCommunicate OK [09:13:06]wFMCommunicate request_size=4 [09:13:06]MH_SAM_APDU [09:13:06]CAPDU: 80 0D 03 02 [09:13:06]Write to MH i2c: E2 08 00 88 35 80 0D 03 02 00 00 00 00 38 [09:13:06]Write i2c OK [09:13:06]MH_I2C_Read... [09:13:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:13:06]Read from MH i2c: E2 [09:13:06]MH_I2C_Read... [09:13:06]Read from MH i2c: E2 0B 00 [09:13:06]MH_I2C_Read... [09:13:06]Read from MH i2c: E2 0B 00 88 35 00 40 E5 EF 03 A2 AF B6 5A 90 00 B1 [09:13:06]RAPDU: 40 E5 EF 03 A2 AF B6 5A 90 00 [09:13:06]wFMCommunicate OK [09:13:06]SAM_PROTO_SignData done [09:13:06]FM_MakeSignedData done [09:13:06]CreateOFDProtocolMessage [09:13:06]wFMCommunicate request_size=4 [09:13:06]MH_SAM_APDU [09:13:06]CAPDU: 80 11 00 00 [09:13:06]Write to MH i2c: E2 08 00 89 35 80 11 00 00 00 00 00 00 38 [09:13:06]Write i2c OK [09:13:06]MH_I2C_Read... [09:13:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:13:06]Read from MH i2c: E2 [09:13:06]MH_I2C_Read... [09:13:06]Read from MH i2c: E2 17 00 [09:13:06]MH_I2C_Read... [09:13:06]Read from MH i2c: E2 17 00 89 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 86 [09:13:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [09:13:06]wFMCommunicate OK [09:13:06]CreateOFDProtocolMessage done [09:13:06]OFDSenderStorePacket 187615 [09:13:06]StoreOFDPacket docnum=187615 [09:13:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 39 67 07 01 17 EB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 24 1B 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 DF DC 02 00 35 04 06 00 EB 8B 5A 78 4A 0B 40 E5 EF 03 A2 AF B6 5A [09:13:06]CheckFolder [09:13:06]dirname=/storage/ofd_packets [09:13:06]CheckFolder done [09:13:06]ProducePacketName [09:13:06]name=ofd_packets/00187615 [09:13:06]NVStorageSaveData ofd_packets/00187615 [09:13:06]File name is /storage/ofd_packets/00187615 [09:13:06]Write 301 bytes [09:13:06]NVStorageSaveData done [09:13:06]OFDSenderStorePacket done [09:13:06]KKMCreateOFDPacket done [09:13:06]NVStorageSaveData kkm_last_timestamp [09:13:06]File name is /storage/kkm_last_timestamp [09:13:06]Write 4 bytes [09:13:06]NVStorageSaveData done [09:13:06]ExternCall_PrintAddStr [09:13:06]wPrintStart [09:13:06]Write to MH i2c: 01 00 00 8A 35 BF [09:13:06]Write i2c OK [09:13:06]MH_I2C_Read... [09:13:06]Read from MH i2c: 01 [09:13:06]MH_I2C_Read... [09:13:06]Read from MH i2c: 01 07 00 [09:13:06]MH_I2C_Read... [09:13:06]Read from MH i2c: 01 07 00 8A 35 00 00 00 00 00 FF 0F D4 [09:13:06]RasterBufferAndPrint [09:13:06]line Счет N : (1)209667 [09:13:06]line ИНН: 02508201610067 [09:13:06]line Контрольно-Кассовый Чек [09:13:06]line ПРОДАЖА [09:13:06]line ТРК (МРК, ГНК) : 33 [09:13:06]line Товар: 2710124500 [09:13:06]line Аи-95-К-3 [09:13:06]line 13.480 * 74.20 [09:13:06]line = 1000.22 [09:13:06]line НДС 12% НСП 1% [09:13:06]line > о реализуемом товаре [09:13:06]line ОКРУГЛЕНИЕ: -0.22 [09:13:06]line ИТОГО: 1000.00 [09:13:06]line Внесено: 1000.00 [09:13:06]line СДАЧА: 0.00 [09:13:06]line НСП 1% : 8.85 [09:13:06]line НДС 12% : 106.22 [09:13:06]line Наличными: 1000.00 [09:13:06]line Безнал.: 0.00 [09:13:06]line Место: АЗС № 86 "Партнер Нефть" [09:13:06]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [09:13:06]line СНО: Общий режим [09:13:06]line Чек 79 21.10.2024 09:13 [09:13:06]line Смена: 460 ФФД: 1.0 [09:13:06]line ЗНМ: 0300000155 [09:13:06]line РНМ: 0000000000100030 [09:13:06]line Версия ККМ: 001 [09:13:06]line ФМ: 0000000000965340 [09:13:06]line ФД: 187615 [09:13:06]line ФПД: 258983750814219 [09:13:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T091308&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187615&fm=258983750814219&tin=02508201610067®Number=0000000000100030&sum=100000 [09:13:06]OFD Sender: Processing packet 187615 [packets to send 1062, broken 1061] [09:13:06]ProducePacketName [09:13:06]name=ofd_packets/00187615 [09:13:06]OFD Sender: To server: pG, [09:13:06]CommunicateWithHost lk.salyk.kg:30040 [09:13:06]ConnectInit lk.salyk.kg [09:13:06]written 0, free lines is 4095 [09:13:07]Connected sock=11 [09:13:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 39 67 07 01 17 EB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 24 1B 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 DF DC 02 00 35 04 06 00 EB 8B 5A 78 4A 0B 40 E5 EF 03 A2 AF B6 5A [09:13:07]Write to MH i2c: 01 00 00 B5 35 EA [09:13:07]Write i2c OK [09:13:07]MH_I2C_Read... [09:13:07]Read from MH i2c: 01 [09:13:07]MH_I2C_Read... [09:13:07]Read from MH i2c: 01 07 00 [09:13:07]MH_I2C_Read... [09:13:07]Read from MH i2c: 01 07 00 B5 35 00 00 00 00 00 70 0C 6D [09:13:07]RasterBufferAndPrint [09:13:07]line [09:13:07]line [09:13:07]line [09:13:07]line [09:13:07]line [09:13:07]written 0, free lines is 3186 [09:13:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 65 F7 47 00 1B E9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 DF DC 02 00 F4 03 04 00 14 C5 15 67 B6 04 01 00 00 EF 63 79 60 95 9D 4B 05 [09:13:07]CommunicateWithHost err = 0 [09:13:07]CheckOFDResponse [09:13:07]1017 (14) - 77093643461234 [09:13:07]1041 (16) - 0000000000965340 [09:13:07]1040 (4) - 187615 [09:13:07]1012 (4) - 21.10.2024 03:05 [09:13:07]1206 (1) - 0 [09:13:07]OFD Sender: Remove packet 187615 [09:13:07]ProducePacketName [09:13:07]name=ofd_packets/00187615 [09:13:07]NVStorageDeleteData [09:13:07]MH_Cut [09:13:07]Write to MH i2c: D1 01 00 BC 35 01 C3 [09:13:07]Write i2c OK [09:13:07]MH_I2C_Read... [09:13:07]Read from MH i2c: D1 [09:13:07]MH_I2C_Read... [09:13:07]Read from MH i2c: D1 01 00 [09:13:07]MH_I2C_Read... [09:13:07]Read from MH i2c: D1 01 00 BC 35 00 C2 [09:13:07]Write to MH i2c: 01 00 00 BD 35 F2 [09:13:07]Write i2c OK [09:13:07]MH_I2C_Read... [09:13:07]OFD Sender: No OFD packet to send [09:13:08]*** Cut start [09:13:08]*** Partial cut [09:13:08]*** CUTSNS_PIN = 1 [09:13:08]*** CUTSNS_PIN = 0 [09:13:08]*** Brake cut motor [09:13:09]Read from MH i2c: 01 [09:13:09]MH_I2C_Read... [09:13:09]*** Stop cut motor [09:13:09]*** Cut end [09:13:09]Read from MH i2c: 01 07 00 [09:13:09]MH_I2C_Read... [09:13:09]Read from MH i2c: 01 07 00 BD 35 00 00 00 00 00 FF 0F 07 [09:13:09]process_action close_receipt done [09:13:09]requested_data is exist [09:13:09]produce_requested_data [09:13:09]requested_item fm.sn is exist - process it [09:13:09]wFMCommunicate request_size=4 [09:13:09]MH_SAM_APDU [09:13:09]CAPDU: 80 11 00 00 [09:13:09]Write to MH i2c: E2 08 00 BE 35 80 11 00 00 00 00 00 00 6D [09:13:09]Write i2c OK [09:13:09]MH_I2C_Read... [09:13:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:13:09]Read from MH i2c: E2 [09:13:09]MH_I2C_Read... [09:13:09]Read from MH i2c: E2 17 00 [09:13:09]MH_I2C_Read... [09:13:09]Read from MH i2c: E2 17 00 BE 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 BB [09:13:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [09:13:09]wFMCommunicate OK [09:13:09]requested_item fd.num is exist - process it [09:13:09]SAM_PROTO_GetFieldsCounters [09:13:09]wFMCommunicate request_size=4 [09:13:09]MH_SAM_APDU [09:13:09]CAPDU: 80 13 00 00 [09:13:09]Write to MH i2c: E2 08 00 BF 35 80 13 00 00 00 00 00 00 70 [09:13:09]Write i2c OK [09:13:09]MH_I2C_Read... [09:13:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:13:09]Read from MH i2c: E2 [09:13:09]MH_I2C_Read... [09:13:09]Read from MH i2c: E2 62 00 [09:13:09]MH_I2C_Read... [09:13:09]Read from MH i2c: E2 62 00 BF 35 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 DF DC 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 4F 00 00 00 5E 04 04 00 4F 00 00 00 57 04 04 00 50 00 00 00 19 04 04 00 00 00 00 00 90 00 EE [09:13:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 DF DC 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 4F 00 00 00 5E 04 04 00 4F 00 00 00 57 04 04 00 50 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:13:09]wFMCommunicate OK [09:13:09]SAM_PROTO_GetFieldsCounters done [09:13:09]requested_item shift.num is exist - process it [09:13:09]requested_item shift.opened is exist - process it [09:13:09]req_shift_opened [09:13:09]FM_GetShiftState [09:13:09]SAM_PROTO_GetShiftState [09:13:09]wFMCommunicate request_size=4 [09:13:09]MH_SAM_APDU [09:13:09]CAPDU: 80 13 01 00 [09:13:09]Write to MH i2c: E2 08 00 C0 35 80 13 01 00 00 00 00 00 72 [09:13:09]Write i2c OK [09:13:09]MH_I2C_Read... [09:13:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:13:09]Read from MH i2c: E2 [09:13:09]MH_I2C_Read... [09:13:09]Read from MH i2c: E2 0E 00 [09:13:09]MH_I2C_Read... [09:13:09]Read from MH i2c: E2 0E 00 C0 35 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 D1 [09:13:09]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [09:13:09]wFMCommunicate OK [09:13:09]SAM_PROTO_GetShiftState done [09:13:09]FM_GetShiftState done [09:13:09]req_shift_opened done [09:13:09]requested_item shift.open_date is exist - process it [09:13:09]req_shift_open_date [09:13:09]req_shift_open_date done [09:13:09]produce_requested_data done [09:13:09]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187615,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [09:13:09]process_action_free close_receipt [09:13:09]json_value_free [09:13:09]json_value_free done [09:13:09]process_json_proto returns [09:13:09]Send response to host [09:13:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187615,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [09:13:09]free response buf [09:13:09]execute_script done [09:13:09]execute_script returns [09:13:09]free content buf [09:13:09]Sock 9.Close socket [09:13:09]Sock 9.Thread stoped [09:13:12]OFD Sender: No OFD packet to send [09:13:17]OFD Sender: No OFD packet to send [09:13:22]OFD Sender: No OFD packet to send [09:13:27]OFD Sender: No OFD packet to send [09:13:32]OFD Sender: No OFD packet to send [09:13:37]OFD Sender: No OFD packet to send [09:13:42]OFD Sender: No OFD packet to send [09:13:47]OFD Sender: No OFD packet to send [09:13:52]OFD Sender: No OFD packet to send [09:13:58]OFD Sender: No OFD packet to send [09:14:03]OFD Sender: No OFD packet to send [09:14:08]OFD Sender: No OFD packet to send [09:14:13]OFD Sender: No OFD packet to send [09:14:18]OFD Sender: No OFD packet to send [09:14:23]OFD Sender: No OFD packet to send [09:14:28]OFD Sender: No OFD packet to send [09:14:33]OFD Sender: No OFD packet to send [09:14:38]OFD Sender: No OFD packet to send [09:14:43]OFD Sender: No OFD packet to send [09:14:48]OFD Sender: No OFD packet to send [09:14:53]OFD Sender: No OFD packet to send [09:14:58]OFD Sender: No OFD packet to send [09:15:03]OFD Sender: No OFD packet to send [09:15:08]OFD Sender: No OFD packet to send [09:15:13]OFD Sender: No OFD packet to send [09:15:18]OFD Sender: No OFD packet to send [09:15:23]OFD Sender: No OFD packet to send [09:15:28]OFD Sender: No OFD packet to send [09:15:33]OFD Sender: No OFD packet to send [09:15:38]OFD Sender: No OFD packet to send [09:15:43]OFD Sender: No OFD packet to send [09:15:48]OFD Sender: No OFD packet to send [09:15:53]OFD Sender: No OFD packet to send [09:15:58]OFD Sender: No OFD packet to send [09:16:03]OFD Sender: No OFD packet to send [09:16:08]OFD Sender: No OFD packet to send [09:16:13]OFD Sender: No OFD packet to send [09:16:18]OFD Sender: No OFD packet to send [09:16:23]OFD Sender: No OFD packet to send [09:16:28]OFD Sender: No OFD packet to send [09:16:33]OFD Sender: No OFD packet to send [09:16:38]OFD Sender: No OFD packet to send [09:16:43]OFD Sender: No OFD packet to send [09:16:48]OFD Sender: No OFD packet to send [09:16:53]OFD Sender: No OFD packet to send [09:16:58]OFD Sender: No OFD packet to send [09:17:03]OFD Sender: No OFD packet to send [09:17:08]OFD Sender: No OFD packet to send [09:17:13]OFD Sender: No OFD packet to send [09:17:18]OFD Sender: No OFD packet to send [09:17:23]OFD Sender: No OFD packet to send [09:17:28]OFD Sender: No OFD packet to send [09:17:33]OFD Sender: No OFD packet to send [09:17:38]OFD Sender: No OFD packet to send [09:17:43]OFD Sender: No OFD packet to send [09:17:49]OFD Sender: No OFD packet to send [09:17:54]OFD Sender: No OFD packet to send [09:17:59]OFD Sender: No OFD packet to send [09:18:04]OFD Sender: No OFD packet to send [09:18:09]OFD Sender: No OFD packet to send [09:18:14]OFD Sender: No OFD packet to send [09:18:19]OFD Sender: No OFD packet to send [09:18:24]OFD Sender: No OFD packet to send [09:18:29]OFD Sender: No OFD packet to send [09:18:34]OFD Sender: No OFD packet to send [09:18:39]OFD Sender: No OFD packet to send [09:18:44]OFD Sender: No OFD packet to send [09:18:49]OFD Sender: No OFD packet to send [09:18:54]OFD Sender: No OFD packet to send [09:18:59]OFD Sender: No OFD packet to send [09:19:04]OFD Sender: No OFD packet to send [09:19:09]OFD Sender: No OFD packet to send [09:19:14]OFD Sender: No OFD packet to send [09:19:19]OFD Sender: No OFD packet to send [09:19:24]OFD Sender: No OFD packet to send [09:19:29]OFD Sender: No OFD packet to send [09:19:34]OFD Sender: No OFD packet to send [09:19:39]OFD Sender: No OFD packet to send [09:19:44]OFD Sender: No OFD packet to send [09:19:49]OFD Sender: No OFD packet to send [09:19:54]OFD Sender: No OFD packet to send [09:19:59]OFD Sender: No OFD packet to send [09:20:04]OFD Sender: No OFD packet to send [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:39]OFD Sender: No OFD packet to send [09:20:44]OFD Sender: No OFD packet to send [09:20:49]OFD Sender: No OFD packet to send [09:20:54]OFD Sender: No OFD packet to send [09:20:59]OFD Sender: No OFD packet to send [09:21:04]OFD Sender: No OFD packet to send [09:21:09]OFD Sender: No OFD packet to send [09:21:14]OFD Sender: No OFD packet to send [09:21:19]OFD Sender: No OFD packet to send [09:21:24]OFD Sender: No OFD packet to send [09:21:29]OFD Sender: No OFD packet to send [09:21:35]OFD Sender: No OFD packet to send [09:21:40]OFD Sender: No OFD packet to send [09:21:45]OFD Sender: No OFD packet to send [09:21:50]OFD Sender: No OFD packet to send [09:21:55]OFD Sender: No OFD packet to send [09:22:00]OFD Sender: No OFD packet to send [09:22:05]OFD Sender: No OFD packet to send [09:22:10]OFD Sender: No OFD packet to send [09:22:15]OFD Sender: No OFD packet to send [09:22:20]OFD Sender: No OFD packet to send [09:22:25]OFD Sender: No OFD packet to send [09:22:30]OFD Sender: No OFD packet to send [09:22:35]OFD Sender: No OFD packet to send [09:22:40]OFD Sender: No OFD packet to send [09:22:45]OFD Sender: No OFD packet to send [09:22:50]OFD Sender: No OFD packet to send [09:22:55]OFD Sender: No OFD packet to send [09:23:00]OFD Sender: No OFD packet to send [09:23:05]OFD Sender: No OFD packet to send [09:23:10]OFD Sender: No OFD packet to send [09:23:12]accept exits with 8 [09:23:12]New connection [09:23:12]New thread 3067157860 created [09:23:12]Thread 3067014500 joined [09:23:12]Waiting for new connection... [09:23:12] Sock 8.Parse request [09:23:12]Sock 8.Check first char [09:23:12]Sock 8.First char is OK [09:23:12]request: POST /json_proto HTTP/1.0 [09:23:12]Method: POST [09:23:12]URL: /json_proto [09:23:12]Method is POST - this is cgi request [09:23:12]url: /json_proto [09:23:12]query_string will be loaded in cgi processing [09:23:12]execute_cgi json_proto POST (null) [09:23:12]execute_cgi path=json_proto method=POST [09:23:12]POST find Content-Length [09:23:12]Host: 172.17.42.131:8080 [09:23:12]Content-Length: 752 [09:23:12]Content-Type: application/json [09:23:12] [09:23:12]POST finish read [09:23:12]Found Content-Length = 752 [09:23:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209668", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 130.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30089140", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:23:12]execute_script... [09:23: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)209668", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 130.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30089140", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:23:12]POST & json_proto [09:23:12]process_json_proto [09:23:12]json parsed OK: [09:23:12]protocol is kg_v1.0 [09:23:12]action value=close_receipt [09:23:12]process_action close_receipt [09:23:12]cmd_close_receipt [09:23:12]MH_GetDate [09:23:12]Write to MH i2c: F0 00 00 C1 35 E5 [09:23:12]Write i2c OK [09:23:12]MH_I2C_Read... [09:23:12]Read from MH i2c: F0 [09:23:12]MH_I2C_Read... [09:23:12]Read from MH i2c: F0 09 00 [09:23:12]MH_I2C_Read... [09:23:12]Read from MH i2c: F0 09 00 C1 35 00 84 1D 16 67 A0 18 CA 66 F4 [09:23:12]GetLastDocTimeStamp 1729501988 [09:23:12]current date 1729502596 [09:23:12]FM_GetShiftState [09:23:12]SAM_PROTO_GetShiftState [09:23:12]wFMCommunicate request_size=4 [09:23:12]MH_SAM_APDU [09:23:12]CAPDU: 80 13 01 00 [09:23:12]Write to MH i2c: E2 08 00 C2 35 80 13 01 00 00 00 00 00 74 [09:23:12]Write i2c OK [09:23:12]MH_I2C_Read... [09:23:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:23:12]Read from MH i2c: E2 [09:23:12]MH_I2C_Read... [09:23:12]Read from MH i2c: E2 0E 00 [09:23:12]MH_I2C_Read... [09:23:12]Read from MH i2c: E2 0E 00 C2 35 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 D3 [09:23:12]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [09:23:12]wFMCommunicate OK [09:23:12]SAM_PROTO_GetShiftState done [09:23:12]FM_GetShiftState done [09:23:12]opened in 1729469754 [09:23:12]opened+sec_in_day 1729556154 [09:23:12]quantity*price = 0 [09:23:12]sum+1 = 1 [09:23:12]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 80 21.10.2024 09:23 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Талоны: ТК ГПНА Online 30089140 ФМ: 0000000000965340 ФД: 187616 ФПД: 195115111190063 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T092316&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187616&fm=195115111190063&tin=02508201610067®Number=0000000000100030&sum=0 [09:23:13]StoreToDocumentArchive [09:23:13]shift 460 fd 187616 [09:23:13]save to /storage/0460/doc_00187616 [09:23:13]save last doc name /storage/0460/doc_00187616 to /storage/kkm_last_doc_name [09:23:13]save OK [09:23:13]Clear old archive folders... [09:23:13]ProcessDocumentItem done err = 0, tmpTLVsize=248 [09:23:13]tlvbuf is 011700A0 [09:23:13]SAM_PROTO_ClearQueue [09:23:13]wFMCommunicate request_size=4 [09:23:13]MH_SAM_APDU [09:23:13]CAPDU: 80 09 00 00 [09:23:13]Write to MH i2c: E2 08 00 CF 35 80 09 00 00 00 00 00 00 76 [09:23:13]Write i2c OK [09:23:13]MH_I2C_Read... [09:23:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:23:13]Read from MH i2c: E2 [09:23:13]MH_I2C_Read... [09:23:13]Read from MH i2c: E2 03 00 [09:23:13]MH_I2C_Read... [09:23:13]Read from MH i2c: E2 03 00 CF 35 00 90 00 78 [09:23:13]RAPDU: 90 00 [09:23:13]wFMCommunicate OK [09:23:13]SAM_PROTO_ClearQueue done [09:23:13]KKMCreateOFDPacket [09:23:13]OFDProtocolAddRootSTLVToBuf [09:23:13]FM_MakeSignedData [09:23:13]FM_MakeSignedData [09:23:13]SAM_PROTO_SignData [09:23:13]wFMCommunicate request_size=4 [09:23:13]MH_SAM_APDU [09:23:13]CAPDU: 80 0D 01 02 [09:23:13]Write to MH i2c: E2 08 00 D0 35 80 0D 01 02 00 00 00 00 7E [09:23:13]Write i2c OK [09:23:13]MH_I2C_Read... [09:23:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:23:13]Read from MH i2c: E2 [09:23:13]MH_I2C_Read... [09:23:13]Read from MH i2c: E2 03 00 [09:23:13]MH_I2C_Read... [09:23:13]Read from MH i2c: E2 03 00 D0 35 00 90 00 79 [09:23:13]RAPDU: 90 00 [09:23:13]wFMCommunicate OK [09:23:13]wFMCommunicate request_size=255 [09:23:13]MH_SAM_APDU [09:23:13]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D0 FB 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 00 00 00 F4 03 04 00 84 1D 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 E0 DC 02 00 35 04 06 00 B1 74 C6 E4 [09:23:13]Write to MH i2c: E2 02 01 D1 35 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D0 FB 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 00 00 00 F4 03 04 00 84 1D 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 E0 DC 02 00 35 04 06 00 B1 74 C6 E4 00 00 55 [09:23:13]Write i2c OK [09:23:13]MH_I2C_Read... [09:23:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:23:14]Read from MH i2c: E2 [09:23:14]MH_I2C_Read... [09:23:14]Read from MH i2c: E2 03 00 [09:23:14]MH_I2C_Read... [09:23:14]Read from MH i2c: E2 03 00 D1 35 00 90 00 7A [09:23:14]RAPDU: 90 00 [09:23:14]wFMCommunicate OK [09:23:14]wFMCommunicate request_size=7 [09:23:14]MH_SAM_APDU [09:23:14]CAPDU: 80 0D 02 02 02 8E 2F [09:23:14]Write to MH i2c: E2 0A 00 D2 35 80 0D 02 02 02 00 8E 2F 00 00 42 [09:23:14]Write i2c OK [09:23:14]MH_I2C_Read... [09:23:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:23:14]Read from MH i2c: E2 [09:23:14]MH_I2C_Read... [09:23:14]Read from MH i2c: E2 03 00 [09:23:14]MH_I2C_Read... [09:23:14]Read from MH i2c: E2 03 00 D2 35 00 90 00 7B [09:23:14]RAPDU: 90 00 [09:23:14]wFMCommunicate OK [09:23:14]wFMCommunicate request_size=4 [09:23:14]MH_SAM_APDU [09:23:14]CAPDU: 80 0D 03 02 [09:23:14]Write to MH i2c: E2 08 00 D3 35 80 0D 03 02 00 00 00 00 83 [09:23:14]Write i2c OK [09:23:14]MH_I2C_Read... [09:23:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:23:14]Read from MH i2c: E2 [09:23:14]MH_I2C_Read... [09:23:14]Read from MH i2c: E2 0B 00 [09:23:14]MH_I2C_Read... [09:23:14]Read from MH i2c: E2 0B 00 D3 35 00 25 5E 30 BC B9 6D 83 00 90 00 9C [09:23:14]RAPDU: 25 5E 30 BC B9 6D 83 00 90 00 [09:23:14]wFMCommunicate OK [09:23:14]SAM_PROTO_SignData done [09:23:14]FM_MakeSignedData done [09:23:14]CreateOFDProtocolMessage [09:23:14]wFMCommunicate request_size=4 [09:23:14]MH_SAM_APDU [09:23:14]CAPDU: 80 11 00 00 [09:23:14]Write to MH i2c: E2 08 00 D4 35 80 11 00 00 00 00 00 00 83 [09:23:14]Write i2c OK [09:23:14]MH_I2C_Read... [09:23:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:23:14]Read from MH i2c: E2 [09:23:14]MH_I2C_Read... [09:23:14]Read from MH i2c: E2 17 00 [09:23:14]MH_I2C_Read... [09:23:14]Read from MH i2c: E2 17 00 D4 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 D1 [09:23:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [09:23:14]wFMCommunicate OK [09:23:14]CreateOFDProtocolMessage done [09:23:14]OFDSenderStorePacket 187616 [09:23:14]StoreOFDPacket docnum=187616 [09:23:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 9F 94 04 01 52 7A 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D0 FB 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 00 00 00 F4 03 04 00 84 1D 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 E0 DC 02 00 35 04 06 00 B1 74 C6 E4 8E 2F 25 5E 30 BC B9 6D 83 00 [09:23:14]CheckFolder [09:23:14]dirname=/storage/ofd_packets [09:23:14]CheckFolder done [09:23:14]ProducePacketName [09:23:14]name=ofd_packets/00187616 [09:23:14]NVStorageSaveData ofd_packets/00187616 [09:23:14]File name is /storage/ofd_packets/00187616 [09:23:14]Write 298 bytes [09:23:14]NVStorageSaveData done [09:23:14]OFDSenderStorePacket done [09:23:14]KKMCreateOFDPacket done [09:23:14]NVStorageSaveData kkm_last_timestamp [09:23:14]File name is /storage/kkm_last_timestamp [09:23:14]Write 4 bytes [09:23:14]NVStorageSaveData done [09:23:14]ExternCall_PrintAddStr [09:23:14]wPrintStart [09:23:14]Write to MH i2c: 01 00 00 D5 35 0A [09:23:14]Write i2c OK [09:23:14]MH_I2C_Read... [09:23:14]Read from MH i2c: 01 [09:23:14]MH_I2C_Read... [09:23:14]Read from MH i2c: 01 07 00 [09:23:14]MH_I2C_Read... [09:23:14]Read from MH i2c: 01 07 00 D5 35 00 00 00 00 00 FF 0F 1F [09:23:14]RasterBufferAndPrint [09:23:14]line Счет N : (1)209668 [09:23:14]line ИНН: 02508201610067 [09:23:14]line Контрольно-Кассовый Чек [09:23:14]line ПРОДАЖА [09:23:14]line ТРК (МРК, ГНК) : 51 [09:23:14]line Товар: 2710194210 [09:23:14]line ДТ-К-5 [09:23:14]line 130.000 * 0.00 [09:23:14]line = 0.00 [09:23:14]line НДС 12% НСП 1% [09:23:14]line > о реализуемом товаре [09:23:14]line ИТОГО: 0.00 [09:23:14]line НСП 1% : 0.00 [09:23:14]line НДС 12% : 0.00 [09:23:14]line Наличными: 0.00 [09:23:14]line Безнал.: 0.00 [09:23:14]line Место: АЗС № 86 "Партнер Нефть" [09:23:14]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [09:23:14]line СНО: Общий режим [09:23:14]line Чек 80 21.10.2024 09:23 [09:23:14]line Смена: 460 ФФД: 1.0 [09:23:14]line ЗНМ: 0300000155 [09:23:14]line РНМ: 0000000000100030 [09:23:14]line Версия ККМ: 001 [09:23:14]line Талоны: ТК ГПНА Online [09:23:14]line 30089140 [09:23:14]line ФМ: 0000000000965340 [09:23:14]line ФД: 187616 [09:23:14]line ФПД: 195115111190063 [09:23:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T092316&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187616&fm=195115111190063&tin=02508201610067®Number=0000000000100030&sum=0 [09:23:14]written 0, free lines is 4095 [09:23:14]OFD Sender: Processing packet 187616 [packets to send 1062, broken 1061] [09:23:14]ProducePacketName [09:23:14]name=ofd_packets/00187616 [09:23:14]OFD Sender: To server: pG, [09:23:14]CommunicateWithHost lk.salyk.kg:30040 [09:23:14]ConnectInit lk.salyk.kg [09:23:14]Connected sock=10 [09:23:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 9F 94 04 01 52 7A 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D0 FB 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 00 00 00 F4 03 04 00 84 1D 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 E0 DC 02 00 35 04 06 00 B1 74 C6 E4 8E 2F 25 5E 30 BC B9 6D 83 00 [09:23:14]Write to MH i2c: 01 00 00 FF 35 34 [09:23:14]Write i2c OK [09:23:14]MH_I2C_Read... [09:23:14]Read from MH i2c: 01 [09:23:14]MH_I2C_Read... [09:23:14]Read from MH i2c: 01 07 00 [09:23:14]MH_I2C_Read... [09:23:14]Read from MH i2c: 01 07 00 FF 35 00 00 00 00 00 7F 0C C6 [09:23:14]RasterBufferAndPrint [09:23:14]line [09:23:14]line [09:23:14]line [09:23:14]line [09:23:14]line [09:23:14]written 0, free lines is 3205 [09:23:14]MH_Cut [09:23:14]Write to MH i2c: D1 01 00 06 36 01 0E [09:23:14]Write i2c OK [09:23:14]MH_I2C_Read... [09:23:14]Read from MH i2c: D1 [09:23:14]MH_I2C_Read... [09:23:14]Read from MH i2c: D1 01 00 [09:23:14]MH_I2C_Read... [09:23:14]Read from MH i2c: D1 01 00 06 36 00 0D [09:23:14]Write to MH i2c: 01 00 00 07 36 3D [09:23:14]Write i2c OK [09:23:14]MH_I2C_Read... [09:23:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 35 EC 47 00 7C 29 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 E0 DC 02 00 F4 03 04 00 74 C7 15 67 B6 04 01 00 00 E5 A0 81 88 8D A4 A6 26 [09:23:14]CommunicateWithHost err = 0 [09:23:14]CheckOFDResponse [09:23:14]1017 (14) - 77093643461234 [09:23:14]1041 (16) - 0000000000965340 [09:23:14]1040 (4) - 187616 [09:23:14]1012 (4) - 21.10.2024 03:16 [09:23:14]1206 (1) - 0 [09:23:14]OFD Sender: Remove packet 187616 [09:23:14]ProducePacketName [09:23:14]name=ofd_packets/00187616 [09:23:14]NVStorageDeleteData [09:23:15]OFD Sender: No OFD packet to send [09:23:15]*** Cut start [09:23:15]*** Partial cut [09:23:15]*** CUTSNS_PIN = 1 [09:23:15]*** CUTSNS_PIN = 0 [09:23:16]*** Brake cut motor [09:23:16]Read from MH i2c: 01 [09:23:16]MH_I2C_Read... [09:23:16]*** Stop cut motor [09:23:16]*** Cut end [09:23:16]Read from MH i2c: 01 07 00 [09:23:16]MH_I2C_Read... [09:23:16]Read from MH i2c: 01 07 00 07 36 00 00 00 00 00 FF 0F 52 [09:23:16]process_action close_receipt done [09:23:16]requested_data is exist [09:23:16]produce_requested_data [09:23:16]requested_item fm.sn is exist - process it [09:23:16]wFMCommunicate request_size=4 [09:23:16]MH_SAM_APDU [09:23:16]CAPDU: 80 11 00 00 [09:23:16]Write to MH i2c: E2 08 00 08 36 80 11 00 00 00 00 00 00 B8 [09:23:16]Write i2c OK [09:23:16]MH_I2C_Read... [09:23:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:23:16]Read from MH i2c: E2 [09:23:16]MH_I2C_Read... [09:23:16]Read from MH i2c: E2 17 00 [09:23:16]MH_I2C_Read... [09:23:16]Read from MH i2c: E2 17 00 08 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 06 [09:23:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [09:23:16]wFMCommunicate OK [09:23:16]requested_item fd.num is exist - process it [09:23:16]SAM_PROTO_GetFieldsCounters [09:23:16]wFMCommunicate request_size=4 [09:23:16]MH_SAM_APDU [09:23:16]CAPDU: 80 13 00 00 [09:23:16]Write to MH i2c: E2 08 00 09 36 80 13 00 00 00 00 00 00 BB [09:23:16]Write i2c OK [09:23:16]MH_I2C_Read... [09:23:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:23:16]Read from MH i2c: E2 [09:23:16]MH_I2C_Read... [09:23:16]Read from MH i2c: E2 62 00 [09:23:16]MH_I2C_Read... [09:23:16]Read from MH i2c: E2 62 00 09 36 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 E0 DC 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 50 00 00 00 5E 04 04 00 50 00 00 00 57 04 04 00 51 00 00 00 19 04 04 00 00 00 00 00 90 00 3D [09:23:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 E0 DC 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 50 00 00 00 5E 04 04 00 50 00 00 00 57 04 04 00 51 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:23:16]wFMCommunicate OK [09:23:16]SAM_PROTO_GetFieldsCounters done [09:23:16]requested_item shift.num is exist - process it [09:23:16]requested_item shift.opened is exist - process it [09:23:16]req_shift_opened [09:23:16]FM_GetShiftState [09:23:16]SAM_PROTO_GetShiftState [09:23:16]wFMCommunicate request_size=4 [09:23:16]MH_SAM_APDU [09:23:16]CAPDU: 80 13 01 00 [09:23:16]Write to MH i2c: E2 08 00 0A 36 80 13 01 00 00 00 00 00 BD [09:23:16]Write i2c OK [09:23:16]MH_I2C_Read... [09:23:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:23:16]Read from MH i2c: E2 [09:23:16]MH_I2C_Read... [09:23:16]Read from MH i2c: E2 0E 00 [09:23:16]MH_I2C_Read... [09:23:16]Read from MH i2c: E2 0E 00 0A 36 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 1C [09:23:16]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [09:23:16]wFMCommunicate OK [09:23:16]SAM_PROTO_GetShiftState done [09:23:16]FM_GetShiftState done [09:23:16]req_shift_opened done [09:23:16]requested_item shift.open_date is exist - process it [09:23:16]req_shift_open_date [09:23:16]req_shift_open_date done [09:23:16]produce_requested_data done [09:23:16]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187616,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [09:23:16]process_action_free close_receipt [09:23:16]json_value_free [09:23:16]json_value_free done [09:23:16]process_json_proto returns [09:23:16]Send response to host [09:23:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187616,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [09:23:16]free response buf [09:23:16]execute_script done [09:23:16]execute_script returns [09:23:16]free content buf [09:23:16]Sock 8.Close socket [09:23:16]Sock 8.Thread stoped [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:47]accept exits with 9 [09:23:47]New connection [09:23:47]New thread 3067014500 created [09:23:47]Thread 3067157860 joined [09:23:47]Waiting for new connection... [09:23:47] Sock 9.Parse request [09:23:47]Sock 9.Check first char [09:23:47]Sock 9.First char is OK [09:23:47]request: POST /json_proto HTTP/1.0 [09:23:47]Method: POST [09:23:47]URL: /json_proto [09:23:47]Method is POST - this is cgi request [09:23:47]url: /json_proto [09:23:47]query_string will be loaded in cgi processing [09:23:47]execute_cgi json_proto POST (null) [09:23:47]execute_cgi path=json_proto method=POST [09:23:47]POST find Content-Length [09:23:47]Host: 172.17.42.131:8080 [09:23:47]Content-Length: 677 [09:23:47]Content-Type: application/json [09:23:47] [09:23:47]POST finish read [09:23:47]Found Content-Length = 677 [09:23:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209670", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "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:23:47]execute_script... [09:23: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)209670", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "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:23:47]POST & json_proto [09:23:47]process_json_proto [09:23:47]json parsed OK: [09:23:47]protocol is kg_v1.0 [09:23:47]action value=close_receipt [09:23:47]process_action close_receipt [09:23:47]cmd_close_receipt [09:23:47]MH_GetDate [09:23:47]Write to MH i2c: F0 00 00 0B 36 30 [09:23:47]Write i2c OK [09:23:47]MH_I2C_Read... [09:23:47]Read from MH i2c: F0 [09:23:47]MH_I2C_Read... [09:23:47]Read from MH i2c: F0 09 00 [09:23:47]MH_I2C_Read... [09:23:47]Read from MH i2c: F0 09 00 0B 36 00 A6 1D 16 67 A0 18 CA 66 61 [09:23:47]GetLastDocTimeStamp 1729502596 [09:23:47]current date 1729502630 [09:23:47]FM_GetShiftState [09:23:47]SAM_PROTO_GetShiftState [09:23:47]wFMCommunicate request_size=4 [09:23:47]MH_SAM_APDU [09:23:47]CAPDU: 80 13 01 00 [09:23:47]Write to MH i2c: E2 08 00 0C 36 80 13 01 00 00 00 00 00 BF [09:23:47]Write i2c OK [09:23:47]MH_I2C_Read... [09:23:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:23:47]Read from MH i2c: E2 [09:23:47]MH_I2C_Read... [09:23:47]Read from MH i2c: E2 0E 00 [09:23:47]MH_I2C_Read... [09:23:47]Read from MH i2c: E2 0E 00 0C 36 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 1E [09:23:47]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [09:23:47]wFMCommunicate OK [09:23:47]SAM_PROTO_GetShiftState done [09:23:47]FM_GetShiftState done [09:23:47]opened in 1729469754 [09:23:47]opened+sec_in_day 1729556154 [09:23:47]quantity*price = 30038 [09:23:47]sum+1 = 30039 [09:23:47]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 81 21.10.2024 09:23 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 187617 ФПД: 9659285485682 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T092350&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187617&fm=9659285485682&tin=02508201610067®Number=0000000000100030&sum=30000 [09:23:48]StoreToDocumentArchive [09:23:48]shift 460 fd 187617 [09:23:48]save to /storage/0460/doc_00187617 [09:23:48]save last doc name /storage/0460/doc_00187617 to /storage/kkm_last_doc_name [09:23:48]save OK [09:23:48]Clear old archive folders... [09:23:48]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:23:48]tlvbuf is 010F53F0 [09:23:48]SAM_PROTO_ClearQueue [09:23:48]wFMCommunicate request_size=4 [09:23:48]MH_SAM_APDU [09:23:48]CAPDU: 80 09 00 00 [09:23:48]Write to MH i2c: E2 08 00 19 36 80 09 00 00 00 00 00 00 C1 [09:23:48]Write i2c OK [09:23:48]MH_I2C_Read... [09:23:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:23:48]Read from MH i2c: E2 [09:23:48]MH_I2C_Read... [09:23:48]Read from MH i2c: E2 03 00 [09:23:48]MH_I2C_Read... [09:23:48]Read from MH i2c: E2 03 00 19 36 00 90 00 C3 [09:23:48]RAPDU: 90 00 [09:23:48]wFMCommunicate OK [09:23:48]SAM_PROTO_ClearQueue done [09:23:48]KKMCreateOFDPacket [09:23:48]OFDProtocolAddRootSTLVToBuf [09:23:48]FM_MakeSignedData [09:23:48]FM_MakeSignedData [09:23:48]SAM_PROTO_SignData [09:23:48]wFMCommunicate request_size=4 [09:23:48]MH_SAM_APDU [09:23:48]CAPDU: 80 0D 01 02 [09:23:48]Write to MH i2c: E2 08 00 1A 36 80 0D 01 02 00 00 00 00 C9 [09:23:48]Write i2c OK [09:23:48]MH_I2C_Read... [09:23:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:23:48]Read from MH i2c: E2 [09:23:48]MH_I2C_Read... [09:23:48]Read from MH i2c: E2 03 00 [09:23:48]MH_I2C_Read... [09:23:48]Read from MH i2c: E2 03 00 1A 36 00 90 00 C4 [09:23:48]RAPDU: 90 00 [09:23:48]wFMCommunicate OK [09:23:48]wFMCommunicate request_size=255 [09:23:48]MH_SAM_APDU [09:23: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 33 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 51 00 00 00 F4 03 04 00 A6 1D 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 E1 DC 02 00 35 04 06 00 08 [09:23:48]Write to MH i2c: E2 02 01 1B 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 33 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 51 00 00 00 F4 03 04 00 A6 1D 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 E1 DC 02 00 35 04 06 00 08 00 00 55 [09:23:48]Write i2c OK [09:23:48]MH_I2C_Read... [09:23:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:23:48]Read from MH i2c: E2 [09:23:48]MH_I2C_Read... [09:23:48]Read from MH i2c: E2 03 00 [09:23:48]MH_I2C_Read... [09:23:48]Read from MH i2c: E2 03 00 1B 36 00 90 00 C5 [09:23:48]RAPDU: 90 00 [09:23:48]wFMCommunicate OK [09:23:48]wFMCommunicate request_size=10 [09:23:48]MH_SAM_APDU [09:23:48]CAPDU: 80 0D 02 02 05 C8 FA 47 B8 72 [09:23:48]Write to MH i2c: E2 0D 00 1C 36 80 0D 02 02 05 00 C8 FA 47 B8 72 00 00 09 [09:23:48]Write i2c OK [09:23:48]MH_I2C_Read... [09:23:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:23:48]Read from MH i2c: E2 [09:23:48]MH_I2C_Read... [09:23:48]Read from MH i2c: E2 03 00 [09:23:48]MH_I2C_Read... [09:23:48]Read from MH i2c: E2 03 00 1C 36 00 90 00 C6 [09:23:48]RAPDU: 90 00 [09:23:48]wFMCommunicate OK [09:23:48]wFMCommunicate request_size=4 [09:23:48]MH_SAM_APDU [09:23:48]CAPDU: 80 0D 03 02 [09:23:48]Write to MH i2c: E2 08 00 1D 36 80 0D 03 02 00 00 00 00 CE [09:23:48]Write i2c OK [09:23:48]MH_I2C_Read... [09:23:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:23:48]Read from MH i2c: E2 [09:23:48]MH_I2C_Read... [09:23:48]Read from MH i2c: E2 0B 00 [09:23:48]MH_I2C_Read... [09:23:48]Read from MH i2c: E2 0B 00 1D 36 00 64 36 39 B8 45 89 EB B6 90 00 C9 [09:23:48]RAPDU: 64 36 39 B8 45 89 EB B6 90 00 [09:23:48]wFMCommunicate OK [09:23:48]SAM_PROTO_SignData done [09:23:48]FM_MakeSignedData done [09:23:48]CreateOFDProtocolMessage [09:23:48]wFMCommunicate request_size=4 [09:23:48]MH_SAM_APDU [09:23:48]CAPDU: 80 11 00 00 [09:23:48]Write to MH i2c: E2 08 00 1E 36 80 11 00 00 00 00 00 00 CE [09:23:48]Write i2c OK [09:23:48]MH_I2C_Read... [09:23:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:23:48]Read from MH i2c: E2 [09:23:48]MH_I2C_Read... [09:23:48]Read from MH i2c: E2 17 00 [09:23:48]MH_I2C_Read... [09:23:48]Read from MH i2c: E2 17 00 1E 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 1C [09:23:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [09:23:48]wFMCommunicate OK [09:23:48]CreateOFDProtocolMessage done [09:23:48]OFDSenderStorePacket 187617 [09:23:48]StoreOFDPacket docnum=187617 [09:23:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 BD 9B 07 01 32 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 33 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 51 00 00 00 F4 03 04 00 A6 1D 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 E1 DC 02 00 35 04 06 00 08 C8 FA 47 B8 72 64 36 39 B8 45 89 EB B6 [09:23:48]CheckFolder [09:23:48]dirname=/storage/ofd_packets [09:23:48]CheckFolder done [09:23:48]ProducePacketName [09:23:48]name=ofd_packets/00187617 [09:23:48]NVStorageSaveData ofd_packets/00187617 [09:23:48]File name is /storage/ofd_packets/00187617 [09:23:48]Write 301 bytes [09:23:48]NVStorageSaveData done [09:23:48]OFDSenderStorePacket done [09:23:48]KKMCreateOFDPacket done [09:23:48]NVStorageSaveData kkm_last_timestamp [09:23:48]File name is /storage/kkm_last_timestamp [09:23:48]Write 4 bytes [09:23:48]NVStorageSaveData done [09:23:48]ExternCall_PrintAddStr [09:23:48]wPrintStart [09:23:48]Write to MH i2c: 01 00 00 1F 36 55 [09:23:48]Write i2c OK [09:23:48]MH_I2C_Read... [09:23:48]Read from MH i2c: 01 [09:23:48]MH_I2C_Read... [09:23:48]Read from MH i2c: 01 07 00 [09:23:48]MH_I2C_Read... [09:23:48]Read from MH i2c: 01 07 00 1F 36 00 00 00 00 00 FF 0F 6A [09:23:48]RasterBufferAndPrint [09:23:48]line Счет N : (1)209670 [09:23:48]line ИНН: 02508201610067 [09:23:48]line Контрольно-Кассовый Чек [09:23:48]line ПРОДАЖА [09:23:48]line ТРК (МРК, ГНК) : 32 [09:23:48]line Товар: 2710124130 [09:23:48]line Аи-92-К-3 [09:23:48]line 4.490 * 66.90 [09:23:48]line = 300.38 [09:23:48]line НДС 12% НСП 1% [09:23:48]line > о реализуемом товаре [09:23:48]line ОКРУГЛЕНИЕ: -0.38 [09:23:48]line ИТОГО: 300.00 [09:23:48]line Внесено: 300.00 [09:23:48]line СДАЧА: 0.00 [09:23:48]line НСП 1% : 2.66 [09:23:48]line НДС 12% : 31.90 [09:23:48]line Наличными: 300.00 [09:23:48]line Безнал.: 0.00 [09:23:48]line Место: АЗС № 86 "Партнер Нефть" [09:23:48]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [09:23:48]line СНО: Общий режим [09:23:48]line Чек 81 21.10.2024 09:23 [09:23:48]line Смена: 460 ФФД: 1.0 [09:23:48]line ЗНМ: 0300000155 [09:23:48]line РНМ: 0000000000100030 [09:23:48]line Версия ККМ: 001 [09:23:48]line ФМ: 0000000000965340 [09:23:48]line ФД: 187617 [09:23:48]line ФПД: 9659285485682 [09:23:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T092350&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187617&fm=9659285485682&tin=02508201610067®Number=0000000000100030&sum=30000 [09:23:49]OFD Sender: Processing packet 187617 [packets to send 1062, broken 1061] [09:23:49]ProducePacketName [09:23:49]name=ofd_packets/00187617 [09:23:49]OFD Sender: To server: pG, [09:23:49]CommunicateWithHost lk.salyk.kg:30040 [09:23:49]ConnectInit lk.salyk.kg [09:23:49]written 0, free lines is 4095 [09:23:49]Connected sock=10 [09:23:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 BD 9B 07 01 32 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 33 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 51 00 00 00 F4 03 04 00 A6 1D 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 E1 DC 02 00 35 04 06 00 08 C8 FA 47 B8 72 64 36 39 B8 45 89 EB B6 [09:23:49]Write to MH i2c: 01 00 00 4A 36 80 [09:23:49]Write i2c OK [09:23:49]MH_I2C_Read... [09:23:49]Read from MH i2c: 01 [09:23:49]MH_I2C_Read... [09:23:49]Read from MH i2c: 01 07 00 [09:23:49]MH_I2C_Read... [09:23:49]Read from MH i2c: 01 07 00 4A 36 00 00 00 00 00 72 0C 05 [09:23:49]RasterBufferAndPrint [09:23:49]line [09:23:49]line [09:23:49]line [09:23:49]line [09:23:49]line [09:23:49]written 0, free lines is 3188 [09:23:49]MH_Cut [09:23:49]Write to MH i2c: D1 01 00 51 36 01 59 [09:23:49]Write i2c OK [09:23:49]MH_I2C_Read... [09:23:49]Read from MH i2c: D1 [09:23:49]MH_I2C_Read... [09:23:49]Read from MH i2c: D1 01 00 [09:23:49]MH_I2C_Read... [09:23:49]Read from MH i2c: D1 01 00 51 36 00 58 [09:23:49]Write to MH i2c: 01 00 00 52 36 88 [09:23:49]Write i2c OK [09:23:49]MH_I2C_Read... [09:23:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 E0 11 47 00 88 A4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 E1 DC 02 00 F4 03 04 00 96 C7 15 67 B6 04 01 00 00 FD F6 3C 83 D7 9D 75 75 [09:23:49]CommunicateWithHost err = 0 [09:23:49]CheckOFDResponse [09:23:49]1017 (14) - 77093643461234 [09:23:49]1041 (16) - 0000000000965340 [09:23:49]1040 (4) - 187617 [09:23:49]1012 (4) - 21.10.2024 03:16 [09:23:49]1206 (1) - 0 [09:23:49]OFD Sender: Remove packet 187617 [09:23:49]ProducePacketName [09:23:49]name=ofd_packets/00187617 [09:23:49]NVStorageDeleteData [09:23:50]OFD Sender: No OFD packet to send [09:23:50]*** Cut start [09:23:50]*** Partial cut [09:23:50]*** CUTSNS_PIN = 1 [09:23:50]*** CUTSNS_PIN = 0 [09:23:51]*** Brake cut motor [09:23:51]Read from MH i2c: 01 [09:23:51]MH_I2C_Read... [09:23:51]*** Stop cut motor [09:23:51]*** Cut end [09:23:51]Read from MH i2c: 01 07 00 [09:23:51]MH_I2C_Read... [09:23:51]Read from MH i2c: 01 07 00 52 36 00 00 00 00 00 FF 0F 9D [09:23:51]process_action close_receipt done [09:23:51]requested_data is exist [09:23:51]produce_requested_data [09:23:51]requested_item fm.sn is exist - process it [09:23:51]wFMCommunicate request_size=4 [09:23:51]MH_SAM_APDU [09:23:51]CAPDU: 80 11 00 00 [09:23:51]Write to MH i2c: E2 08 00 53 36 80 11 00 00 00 00 00 00 03 [09:23:51]Write i2c OK [09:23:51]MH_I2C_Read... [09:23:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:23:51]Read from MH i2c: E2 [09:23:51]MH_I2C_Read... [09:23:51]Read from MH i2c: E2 17 00 [09:23:51]MH_I2C_Read... [09:23:51]Read from MH i2c: E2 17 00 53 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 51 [09:23:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [09:23:51]wFMCommunicate OK [09:23:51]requested_item fd.num is exist - process it [09:23:51]SAM_PROTO_GetFieldsCounters [09:23:51]wFMCommunicate request_size=4 [09:23:51]MH_SAM_APDU [09:23:51]CAPDU: 80 13 00 00 [09:23:51]Write to MH i2c: E2 08 00 54 36 80 13 00 00 00 00 00 00 06 [09:23:51]Write i2c OK [09:23:51]MH_I2C_Read... [09:23:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:23:51]Read from MH i2c: E2 [09:23:51]MH_I2C_Read... [09:23:51]Read from MH i2c: E2 62 00 [09:23:51]MH_I2C_Read... [09:23:51]Read from MH i2c: E2 62 00 54 36 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 E1 DC 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 51 00 00 00 5E 04 04 00 51 00 00 00 57 04 04 00 52 00 00 00 19 04 04 00 00 00 00 00 90 00 8C [09:23:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 E1 DC 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 51 00 00 00 5E 04 04 00 51 00 00 00 57 04 04 00 52 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:23:51]wFMCommunicate OK [09:23:51]SAM_PROTO_GetFieldsCounters done [09:23:51]requested_item shift.num is exist - process it [09:23:51]requested_item shift.opened is exist - process it [09:23:51]req_shift_opened [09:23:51]FM_GetShiftState [09:23:51]SAM_PROTO_GetShiftState [09:23:51]wFMCommunicate request_size=4 [09:23:51]MH_SAM_APDU [09:23:51]CAPDU: 80 13 01 00 [09:23:51]Write to MH i2c: E2 08 00 55 36 80 13 01 00 00 00 00 00 08 [09:23:51]Write i2c OK [09:23:51]MH_I2C_Read... [09:23:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:23:51]Read from MH i2c: E2 [09:23:51]MH_I2C_Read... [09:23:51]Read from MH i2c: E2 0E 00 [09:23:51]MH_I2C_Read... [09:23:51]Read from MH i2c: E2 0E 00 55 36 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 67 [09:23:51]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [09:23:51]wFMCommunicate OK [09:23:51]SAM_PROTO_GetShiftState done [09:23:51]FM_GetShiftState done [09:23:51]req_shift_opened done [09:23:51]requested_item shift.open_date is exist - process it [09:23:51]req_shift_open_date [09:23:51]req_shift_open_date done [09:23:51]produce_requested_data done [09:23:51]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187617,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [09:23:51]process_action_free close_receipt [09:23:51]json_value_free [09:23:51]json_value_free done [09:23:51]process_json_proto returns [09:23:51]Send response to host [09:23:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187617,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [09:23:51]free response buf [09:23:51]execute_script done [09:23:51]execute_script returns [09:23:51]free content buf [09:23:51]Sock 9.Close socket [09:23:51]Sock 9.Thread stoped [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:36]accept exits with 8 [09:24:36]New connection [09:24:36]New thread 3067157860 created [09:24:36]Thread 3067014500 joined [09:24:36]Waiting for new connection... [09:24:36] Sock 8.Parse request [09:24:36]Sock 8.Check first char [09:24:36]Sock 8.First char is OK [09:24:36]request: POST /json_proto HTTP/1.0 [09:24:36]Method: POST [09:24:36]URL: /json_proto [09:24:36]Method is POST - this is cgi request [09:24:36]url: /json_proto [09:24:36]query_string will be loaded in cgi processing [09:24:36]execute_cgi json_proto POST (null) [09:24:36]execute_cgi path=json_proto method=POST [09:24:36]POST find Content-Length [09:24:36]Host: 172.17.42.131:8080 [09:24:36]Content-Length: 688 [09:24:36]Content-Type: application/json [09:24:36] [09:24:36]POST finish read [09:24:36]Found Content-Length = 688 [09:24:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209669", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 38.870, "sum" : 3000.76, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:24:36]execute_script... [09:24: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)209669", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 38.870, "sum" : 3000.76, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:24:36]POST & json_proto [09:24:36]process_json_proto [09:24:36]json parsed OK: [09:24:36]protocol is kg_v1.0 [09:24:36]action value=close_receipt [09:24:36]process_action close_receipt [09:24:36]cmd_close_receipt [09:24:36]MH_GetDate [09:24:36]Write to MH i2c: F0 00 00 56 36 7B [09:24:36]Write i2c OK [09:24:36]MH_I2C_Read... [09:24:36]Read from MH i2c: F0 [09:24:36]MH_I2C_Read... [09:24:36]Read from MH i2c: F0 09 00 [09:24:36]MH_I2C_Read... [09:24:36]Read from MH i2c: F0 09 00 56 36 00 D8 1D 16 67 A0 18 CA 66 DE [09:24:36]GetLastDocTimeStamp 1729502630 [09:24:36]current date 1729502680 [09:24:36]FM_GetShiftState [09:24:36]SAM_PROTO_GetShiftState [09:24:36]wFMCommunicate request_size=4 [09:24:36]MH_SAM_APDU [09:24:36]CAPDU: 80 13 01 00 [09:24:36]Write to MH i2c: E2 08 00 57 36 80 13 01 00 00 00 00 00 0A [09:24:36]Write i2c OK [09:24:36]MH_I2C_Read... [09:24:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:24:36]Read from MH i2c: E2 [09:24:36]MH_I2C_Read... [09:24:36]Read from MH i2c: E2 0E 00 [09:24:36]MH_I2C_Read... [09:24:36]Read from MH i2c: E2 0E 00 57 36 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 69 [09:24:36]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [09:24:36]wFMCommunicate OK [09:24:36]SAM_PROTO_GetShiftState done [09:24:36]FM_GetShiftState done [09:24:36]opened in 1729469754 [09:24:36]opened+sec_in_day 1729556154 [09:24:36]quantity*price = 300076 [09:24:36]sum+1 = 300077 [09:24:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.76 ИТОГО: 3000.00 Внесено: 3000.00 СДАЧА: 0.00 НСП 1% : 26.55 НДС 12% : 318.66 Наличными: 3000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 82 21.10.2024 09:24 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 187618 ФПД: 109792567265703 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T092440&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187618&fm=109792567265703&tin=02508201610067®Number=0000000000100030&sum=300000 [09:24:37]StoreToDocumentArchive [09:24:37]shift 460 fd 187618 [09:24:37]save to /storage/0460/doc_00187618 [09:24:37]save last doc name /storage/0460/doc_00187618 to /storage/kkm_last_doc_name [09:24:37]save OK [09:24:37]Clear old archive folders... [09:24:37]ProcessDocumentItem done err = 0, tmpTLVsize=257 [09:24:37]tlvbuf is 011430C0 [09:24:37]SAM_PROTO_ClearQueue [09:24:37]wFMCommunicate request_size=4 [09:24:37]MH_SAM_APDU [09:24:37]CAPDU: 80 09 00 00 [09:24:37]Write to MH i2c: E2 08 00 64 36 80 09 00 00 00 00 00 00 0C [09:24:37]Write i2c OK [09:24:37]MH_I2C_Read... [09:24:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:24:37]Read from MH i2c: E2 [09:24:37]MH_I2C_Read... [09:24:37]Read from MH i2c: E2 03 00 [09:24:37]MH_I2C_Read... [09:24:37]Read from MH i2c: E2 03 00 64 36 00 90 00 0E [09:24:37]RAPDU: 90 00 [09:24:37]wFMCommunicate OK [09:24:37]SAM_PROTO_ClearQueue done [09:24:37]KKMCreateOFDPacket [09:24:37]OFDProtocolAddRootSTLVToBuf [09:24:37]FM_MakeSignedData [09:24:37]FM_MakeSignedData [09:24:37]SAM_PROTO_SignData [09:24:37]wFMCommunicate request_size=4 [09:24:37]MH_SAM_APDU [09:24:37]CAPDU: 80 0D 01 02 [09:24:37]Write to MH i2c: E2 08 00 65 36 80 0D 01 02 00 00 00 00 14 [09:24:37]Write i2c OK [09:24:37]MH_I2C_Read... [09:24:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:24:37]Read from MH i2c: E2 [09:24:37]MH_I2C_Read... [09:24:37]Read from MH i2c: E2 03 00 [09:24:37]MH_I2C_Read... [09:24:37]Read from MH i2c: E2 03 00 65 36 00 90 00 0F [09:24:37]RAPDU: 90 00 [09:24:37]wFMCommunicate OK [09:24:37]wFMCommunicate request_size=255 [09:24:37]MH_SAM_APDU [09:24:37]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 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D6 97 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 D8 1D 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 E2 DC 02 [09:24:37]Write to MH i2c: E2 02 01 66 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 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D6 97 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 D8 1D 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 E2 DC 02 00 00 A4 [09:24:37]Write i2c OK [09:24:37]MH_I2C_Read... [09:24:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:24:38]Read from MH i2c: E2 [09:24:38]MH_I2C_Read... [09:24:38]Read from MH i2c: E2 03 00 [09:24:38]MH_I2C_Read... [09:24:38]Read from MH i2c: E2 03 00 66 36 00 90 00 10 [09:24:38]RAPDU: 90 00 [09:24:38]wFMCommunicate OK [09:24:38]wFMCommunicate request_size=16 [09:24:38]MH_SAM_APDU [09:24:38]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 63 DB 12 F8 89 A7 [09:24:38]Write to MH i2c: E2 13 00 67 36 80 0D 02 02 0B 00 00 35 04 06 00 63 DB 12 F8 89 A7 00 00 E4 [09:24:38]Write i2c OK [09:24:38]MH_I2C_Read... [09:24:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:24:38]Read from MH i2c: E2 [09:24:38]MH_I2C_Read... [09:24:38]Read from MH i2c: E2 03 00 [09:24:38]MH_I2C_Read... [09:24:38]Read from MH i2c: E2 03 00 67 36 00 90 00 11 [09:24:38]RAPDU: 90 00 [09:24:38]wFMCommunicate OK [09:24:38]wFMCommunicate request_size=4 [09:24:38]MH_SAM_APDU [09:24:38]CAPDU: 80 0D 03 02 [09:24:38]Write to MH i2c: E2 08 00 68 36 80 0D 03 02 00 00 00 00 19 [09:24:38]Write i2c OK [09:24:38]MH_I2C_Read... [09:24:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:24:38]Read from MH i2c: E2 [09:24:38]MH_I2C_Read... [09:24:38]Read from MH i2c: E2 0B 00 [09:24:38]MH_I2C_Read... [09:24:38]Read from MH i2c: E2 0B 00 68 36 00 07 C5 BF 4B 5D F0 DB 34 90 00 4C [09:24:38]RAPDU: 07 C5 BF 4B 5D F0 DB 34 90 00 [09:24:38]wFMCommunicate OK [09:24:38]SAM_PROTO_SignData done [09:24:38]FM_MakeSignedData done [09:24:38]CreateOFDProtocolMessage [09:24:38]wFMCommunicate request_size=4 [09:24:38]MH_SAM_APDU [09:24:38]CAPDU: 80 11 00 00 [09:24:38]Write to MH i2c: E2 08 00 69 36 80 11 00 00 00 00 00 00 19 [09:24:38]Write i2c OK [09:24:38]MH_I2C_Read... [09:24:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:24:38]Read from MH i2c: E2 [09:24:38]MH_I2C_Read... [09:24:38]Read from MH i2c: E2 17 00 [09:24:38]MH_I2C_Read... [09:24:38]Read from MH i2c: E2 17 00 69 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 67 [09:24:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [09:24:38]wFMCommunicate OK [09:24:38]CreateOFDProtocolMessage done [09:24:38]OFDSenderStorePacket 187618 [09:24:38]StoreOFDPacket docnum=187618 [09:24:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 24 D1 0D 01 50 D2 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 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D6 97 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 D8 1D 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 E2 DC 02 00 35 04 06 00 63 DB 12 F8 89 A7 07 C5 BF 4B 5D F0 DB 34 [09:24:38]CheckFolder [09:24:38]dirname=/storage/ofd_packets [09:24:38]CheckFolder done [09:24:38]ProducePacketName [09:24:38]name=ofd_packets/00187618 [09:24:38]NVStorageSaveData ofd_packets/00187618 [09:24:38]File name is /storage/ofd_packets/00187618 [09:24:38]Write 307 bytes [09:24:38]NVStorageSaveData done [09:24:38]OFDSenderStorePacket done [09:24:38]KKMCreateOFDPacket done [09:24:38]NVStorageSaveData kkm_last_timestamp [09:24:38]File name is /storage/kkm_last_timestamp [09:24:38]Write 4 bytes [09:24:38]NVStorageSaveData done [09:24:38]ExternCall_PrintAddStr [09:24:38]wPrintStart [09:24:38]Write to MH i2c: 01 00 00 6A 36 A0 [09:24:38]Write i2c OK [09:24:38]MH_I2C_Read... [09:24:38]Read from MH i2c: 01 [09:24:38]MH_I2C_Read... [09:24:38]Read from MH i2c: 01 07 00 [09:24:38]MH_I2C_Read... [09:24:38]Read from MH i2c: 01 07 00 6A 36 00 00 00 00 00 FF 0F B5 [09:24:38]RasterBufferAndPrint [09:24:38]line Счет N : (1)209669 [09:24:38]line ИНН: 02508201610067 [09:24:38]line Контрольно-Кассовый Чек [09:24:38]line ПРОДАЖА [09:24:38]line ТРК (МРК, ГНК) : 21 [09:24:38]line Товар: 2710194210 [09:24:38]line D-ENERGY ДТ-К-5 [09:24:38]line 38.870 * 77.20 [09:24:38]line = 3000.76 [09:24:38]line НДС 12% НСП 1% [09:24:38]line > о реализуемом товаре [09:24:38]line ОКРУГЛЕНИЕ: -0.76 [09:24:38]line ИТОГО: 3000.00 [09:24:38]line Внесено: 3000.00 [09:24:38]line СДАЧА: 0.00 [09:24:38]line НСП 1% : 26.55 [09:24:38]line НДС 12% : 318.66 [09:24:38]line Наличными: 3000.00 [09:24:38]line Безнал.: 0.00 [09:24:38]line Место: АЗС № 86 "Партнер Нефть" [09:24:38]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [09:24:38]line СНО: Общий режим [09:24:38]line Чек 82 21.10.2024 09:24 [09:24:38]line Смена: 460 ФФД: 1.0 [09:24:38]line ЗНМ: 0300000155 [09:24:38]line РНМ: 0000000000100030 [09:24:38]line Версия ККМ: 001 [09:24:38]line ФМ: 0000000000965340 [09:24:38]line ФД: 187618 [09:24:38]line ФПД: 109792567265703 [09:24:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T092440&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187618&fm=109792567265703&tin=02508201610067®Number=0000000000100030&sum=300000 [09:24:38]OFD Sender: Processing packet 187618 [packets to send 1062, broken 1061] [09:24:38]ProducePacketName [09:24:38]name=ofd_packets/00187618 [09:24:38]OFD Sender: To server: pG, [09:24:38]CommunicateWithHost lk.salyk.kg:30040 [09:24:38]ConnectInit lk.salyk.kg [09:24:38]written 0, free lines is 4095 [09:24:38]Connected sock=10 [09:24:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 24 D1 0D 01 50 D2 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 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D6 97 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 D8 1D 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 E2 DC 02 00 35 04 06 00 63 DB 12 F8 89 A7 07 C5 BF 4B 5D F0 DB 34 [09:24:39]Write to MH i2c: 01 00 00 95 36 CB [09:24:39]Write i2c OK [09:24:39]MH_I2C_Read... [09:24:39]Read from MH i2c: 01 [09:24:39]MH_I2C_Read... [09:24:39]Read from MH i2c: 01 07 00 [09:24:39]MH_I2C_Read... [09:24:39]Read from MH i2c: 01 07 00 95 36 00 00 00 00 00 73 0C 51 [09:24:39]RasterBufferAndPrint [09:24:39]line [09:24:39]line [09:24:39]line [09:24:39]line [09:24:39]line [09:24:39]written 0, free lines is 3190 [09:24:39]MH_Cut [09:24:39]Write to MH i2c: D1 01 00 9C 36 01 A4 [09:24:39]Write i2c OK [09:24:39]MH_I2C_Read... [09:24:39]Read from MH i2c: D1 [09:24:39]MH_I2C_Read... [09:24:39]Read from MH i2c: D1 01 00 [09:24:39]MH_I2C_Read... [09:24:39]Read from MH i2c: D1 01 00 9C 36 00 A3 [09:24:39]Write to MH i2c: 01 00 00 9D 36 D3 [09:24:39]Write i2c OK [09:24:39]MH_I2C_Read... [09:24:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 3D 74 47 00 32 AF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 E2 DC 02 00 F4 03 04 00 C8 C7 15 67 B6 04 01 00 00 6B 06 CF 34 8C 1B 58 90 [09:24:39]CommunicateWithHost err = 0 [09:24:39]CheckOFDResponse [09:24:39]1017 (14) - 77093643461234 [09:24:39]1041 (16) - 0000000000965340 [09:24:39]1040 (4) - 187618 [09:24:39]1012 (4) - 21.10.2024 03:17 [09:24:39]1206 (1) - 0 [09:24:39]OFD Sender: Remove packet 187618 [09:24:39]ProducePacketName [09:24:39]name=ofd_packets/00187618 [09:24:39]NVStorageDeleteData [09:24:39]OFD Sender: No OFD packet to send [09:24:40]*** Cut start [09:24:40]*** Partial cut [09:24:40]*** CUTSNS_PIN = 1 [09:24:40]*** CUTSNS_PIN = 0 [09:24:40]*** Brake cut motor [09:24:40]Read from MH i2c: 01 [09:24:40]MH_I2C_Read... [09:24:40]*** Stop cut motor [09:24:40]*** Cut end [09:24:40]Read from MH i2c: 01 07 00 [09:24:40]MH_I2C_Read... [09:24:40]Read from MH i2c: 01 07 00 9D 36 00 00 00 00 00 FF 0F E8 [09:24:40]process_action close_receipt done [09:24:40]requested_data is exist [09:24:40]produce_requested_data [09:24:40]requested_item fm.sn is exist - process it [09:24:40]wFMCommunicate request_size=4 [09:24:40]MH_SAM_APDU [09:24:40]CAPDU: 80 11 00 00 [09:24:40]Write to MH i2c: E2 08 00 9E 36 80 11 00 00 00 00 00 00 4E [09:24:40]Write i2c OK [09:24:40]MH_I2C_Read... [09:24:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:24:40]Read from MH i2c: E2 [09:24:40]MH_I2C_Read... [09:24:40]Read from MH i2c: E2 17 00 [09:24:40]MH_I2C_Read... [09:24:40]Read from MH i2c: E2 17 00 9E 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 9C [09:24:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [09:24:40]wFMCommunicate OK [09:24:40]requested_item fd.num is exist - process it [09:24:40]SAM_PROTO_GetFieldsCounters [09:24:40]wFMCommunicate request_size=4 [09:24:40]MH_SAM_APDU [09:24:40]CAPDU: 80 13 00 00 [09:24:40]Write to MH i2c: E2 08 00 9F 36 80 13 00 00 00 00 00 00 51 [09:24:40]Write i2c OK [09:24:40]MH_I2C_Read... [09:24:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:24:41]Read from MH i2c: E2 [09:24:41]MH_I2C_Read... [09:24:41]Read from MH i2c: E2 62 00 [09:24:41]MH_I2C_Read... [09:24:41]Read from MH i2c: E2 62 00 9F 36 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 E2 DC 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 52 00 00 00 5E 04 04 00 52 00 00 00 57 04 04 00 53 00 00 00 19 04 04 00 00 00 00 00 90 00 DB [09:24:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 E2 DC 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 52 00 00 00 5E 04 04 00 52 00 00 00 57 04 04 00 53 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:24:41]wFMCommunicate OK [09:24:41]SAM_PROTO_GetFieldsCounters done [09:24:41]requested_item shift.num is exist - process it [09:24:41]requested_item shift.opened is exist - process it [09:24:41]req_shift_opened [09:24:41]FM_GetShiftState [09:24:41]SAM_PROTO_GetShiftState [09:24:41]wFMCommunicate request_size=4 [09:24:41]MH_SAM_APDU [09:24:41]CAPDU: 80 13 01 00 [09:24:41]Write to MH i2c: E2 08 00 A0 36 80 13 01 00 00 00 00 00 53 [09:24:41]Write i2c OK [09:24:41]MH_I2C_Read... [09:24:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:24:41]Read from MH i2c: E2 [09:24:41]MH_I2C_Read... [09:24:41]Read from MH i2c: E2 0E 00 [09:24:41]MH_I2C_Read... [09:24:41]Read from MH i2c: E2 0E 00 A0 36 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 B2 [09:24:41]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [09:24:41]wFMCommunicate OK [09:24:41]SAM_PROTO_GetShiftState done [09:24:41]FM_GetShiftState done [09:24:41]req_shift_opened done [09:24:41]requested_item shift.open_date is exist - process it [09:24:41]req_shift_open_date [09:24:41]req_shift_open_date done [09:24:41]produce_requested_data done [09:24:41]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187618,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [09:24:41]process_action_free close_receipt [09:24:41]json_value_free [09:24:41]json_value_free done [09:24:41]process_json_proto returns [09:24:41]Send response to host [09:24:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187618,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [09:24:41]free response buf [09:24:41]execute_script done [09:24:41]execute_script returns [09:24:41]free content buf [09:24:41]Sock 8.Close socket [09:24:41]Sock 8.Thread stoped [09:24:44]OFD Sender: No OFD packet to send [09:24:49]OFD Sender: No OFD packet to send [09:24:54]OFD Sender: No OFD packet to send [09:24:59]OFD Sender: No OFD packet to send [09:25:04]OFD Sender: No OFD packet to send [09:25:09]OFD Sender: No OFD packet to send [09:25:14]OFD Sender: No OFD packet to send [09:25:19]OFD Sender: No OFD packet to send [09:25:24]OFD Sender: No OFD packet to send [09:25:29]OFD Sender: No OFD packet to send [09:25:34]OFD Sender: No OFD packet to send [09:25:39]OFD Sender: No OFD packet to send [09:25:44]OFD Sender: No OFD packet to send [09:25:49]OFD Sender: No OFD packet to send [09:25:55]OFD Sender: No OFD packet to send [09:26:00]OFD Sender: No OFD packet to send [09:26:05]OFD Sender: No OFD packet to send [09:26:10]OFD Sender: No OFD packet to send [09:26:15]OFD Sender: No OFD packet to send [09:26:20]OFD Sender: No OFD packet to send [09:26:25]OFD Sender: No OFD packet to send [09:26:30]OFD Sender: No OFD packet to send [09:26:35]OFD Sender: No OFD packet to send [09:26:40]OFD Sender: No OFD packet to send [09:26:45]OFD Sender: No OFD packet to send [09:26:50]OFD Sender: No OFD packet to send [09:26:55]OFD Sender: No OFD packet to send [09:27:00]OFD Sender: No OFD packet to send [09:27:05]OFD Sender: No OFD packet to send [09:27:10]OFD Sender: No OFD packet to send [09:27:15]OFD Sender: No OFD packet to send [09:27:20]OFD Sender: No OFD packet to send [09:27:25]OFD Sender: No OFD packet to send [09:27:30]OFD Sender: No OFD packet to send [09:27:35]OFD Sender: No OFD packet to send [09:27:40]OFD Sender: No OFD packet to send [09:27:45]OFD Sender: No OFD packet to send [09:27:50]OFD Sender: No OFD packet to send [09:27:55]OFD Sender: No OFD packet to send [09:28:00]OFD Sender: No OFD packet to send [09:28:05]OFD Sender: No OFD packet to send [09:28:10]OFD Sender: No OFD packet to send [09:28:15]OFD Sender: No OFD packet to send [09:28:20]OFD Sender: No OFD packet to send [09:28:25]OFD Sender: No OFD packet to send [09:28:30]OFD Sender: No OFD packet to send [09:28:35]OFD Sender: No OFD packet to send [09:28:38]accept exits with 9 [09:28:38]New connection [09:28:38]New thread 3067014500 created [09:28:38]Thread 3067157860 joined [09:28:38]Waiting for new connection... [09:28:38] Sock 9.Parse request [09:28:38]Sock 9.Check first char [09:28:38]Sock 9.First char is OK [09:28:38]request: POST /json_proto HTTP/1.0 [09:28:38]Method: POST [09:28:38]URL: /json_proto [09:28:38]Method is POST - this is cgi request [09:28:38]url: /json_proto [09:28:38]query_string will be loaded in cgi processing [09:28:38]execute_cgi json_proto POST (null) [09:28:38]execute_cgi path=json_proto method=POST [09:28:38]POST find Content-Length [09:28:38]Host: 172.17.42.131:8080 [09:28:38]Content-Length: 682 [09:28:38]Content-Type: application/json [09:28:38] [09:28:38]POST finish read [09:28:38]Found Content-Length = 682 [09:28:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209672", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "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:28:38]execute_script... [09:28: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)209672", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "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:28:38]POST & json_proto [09:28:38]process_json_proto [09:28:38]json parsed OK: [09:28:38]protocol is kg_v1.0 [09:28:38]action value=close_receipt [09:28:38]process_action close_receipt [09:28:38]cmd_close_receipt [09:28:38]MH_GetDate [09:28:38]Write to MH i2c: F0 00 00 A1 36 C6 [09:28:38]Write i2c OK [09:28:38]MH_I2C_Read... [09:28:38]Read from MH i2c: F0 [09:28:38]MH_I2C_Read... [09:28:38]Read from MH i2c: F0 09 00 [09:28:38]MH_I2C_Read... [09:28:38]Read from MH i2c: F0 09 00 A1 36 00 CA 1E 16 67 A0 18 CA 66 1C [09:28:38]GetLastDocTimeStamp 1729502680 [09:28:38]current date 1729502922 [09:28:38]FM_GetShiftState [09:28:38]SAM_PROTO_GetShiftState [09:28:38]wFMCommunicate request_size=4 [09:28:38]MH_SAM_APDU [09:28:38]CAPDU: 80 13 01 00 [09:28:38]Write to MH i2c: E2 08 00 A2 36 80 13 01 00 00 00 00 00 55 [09:28:38]Write i2c OK [09:28:38]MH_I2C_Read... [09:28:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:28:38]Read from MH i2c: E2 [09:28:38]MH_I2C_Read... [09:28:38]Read from MH i2c: E2 0E 00 [09:28:38]MH_I2C_Read... [09:28:38]Read from MH i2c: E2 0E 00 A2 36 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 B4 [09:28:38]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [09:28:38]wFMCommunicate OK [09:28:38]SAM_PROTO_GetShiftState done [09:28:38]FM_GetShiftState done [09:28:38]opened in 1729469754 [09:28:38]opened+sec_in_day 1729556154 [09:28:38]quantity*price = 100015 [09:28:38]sum+1 = 100017 [09:28:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 83 21.10.2024 09:28 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 187619 ФПД: 155023668383967 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T092842&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187619&fm=155023668383967&tin=02508201610067®Number=0000000000100030&sum=100000 [09:28:39]StoreToDocumentArchive [09:28:39]shift 460 fd 187619 [09:28:39]save to /storage/0460/doc_00187619 [09:28:39]save last doc name /storage/0460/doc_00187619 to /storage/kkm_last_doc_name [09:28:39]save OK [09:28:39]Clear old archive folders... [09:28:39]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:28:39]tlvbuf is B6F8A410 [09:28:39]SAM_PROTO_ClearQueue [09:28:39]wFMCommunicate request_size=4 [09:28:39]MH_SAM_APDU [09:28:39]CAPDU: 80 09 00 00 [09:28:39]Write to MH i2c: E2 08 00 AF 36 80 09 00 00 00 00 00 00 57 [09:28:39]Write i2c OK [09:28:39]MH_I2C_Read... [09:28:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:28:39]Read from MH i2c: E2 [09:28:39]MH_I2C_Read... [09:28:39]Read from MH i2c: E2 03 00 [09:28:39]MH_I2C_Read... [09:28:39]Read from MH i2c: E2 03 00 AF 36 00 90 00 59 [09:28:39]RAPDU: 90 00 [09:28:39]wFMCommunicate OK [09:28:39]SAM_PROTO_ClearQueue done [09:28:39]KKMCreateOFDPacket [09:28:39]OFDProtocolAddRootSTLVToBuf [09:28:39]FM_MakeSignedData [09:28:39]FM_MakeSignedData [09:28:39]SAM_PROTO_SignData [09:28:39]wFMCommunicate request_size=4 [09:28:39]MH_SAM_APDU [09:28:39]CAPDU: 80 0D 01 02 [09:28:39]Write to MH i2c: E2 08 00 B0 36 80 0D 01 02 00 00 00 00 5F [09:28:39]Write i2c OK [09:28:39]MH_I2C_Read... [09:28:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:28:39]Read from MH i2c: E2 [09:28:39]MH_I2C_Read... [09:28:39]Read from MH i2c: E2 03 00 [09:28:39]MH_I2C_Read... [09:28:39]Read from MH i2c: E2 03 00 B0 36 00 90 00 5A [09:28:39]RAPDU: 90 00 [09:28:39]wFMCommunicate OK [09:28:39]wFMCommunicate request_size=255 [09:28:39]MH_SAM_APDU [09:28: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 33 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 53 00 00 00 F4 03 04 00 CA 1E 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 E3 DC 02 00 35 04 06 00 8C [09:28:39]Write to MH i2c: E2 02 01 B1 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 33 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 53 00 00 00 F4 03 04 00 CA 1E 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 E3 DC 02 00 35 04 06 00 8C 00 00 9E [09:28:39]Write i2c OK [09:28:39]MH_I2C_Read... [09:28:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:28:40]Read from MH i2c: E2 [09:28:40]MH_I2C_Read... [09:28:40]Read from MH i2c: E2 03 00 [09:28:40]MH_I2C_Read... [09:28:40]Read from MH i2c: E2 03 00 B1 36 00 90 00 5B [09:28:40]RAPDU: 90 00 [09:28:40]wFMCommunicate OK [09:28:40]wFMCommunicate request_size=10 [09:28:40]MH_SAM_APDU [09:28:40]CAPDU: 80 0D 02 02 05 FE 42 AF 90 DF [09:28:40]Write to MH i2c: E2 0D 00 B2 36 80 0D 02 02 05 00 FE 42 AF 90 DF 00 00 CA [09:28:40]Write i2c OK [09:28:40]MH_I2C_Read... [09:28:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:28:40]Read from MH i2c: E2 [09:28:40]MH_I2C_Read... [09:28:40]Read from MH i2c: E2 03 00 [09:28:40]MH_I2C_Read... [09:28:40]Read from MH i2c: E2 03 00 B2 36 00 90 00 5C [09:28:40]RAPDU: 90 00 [09:28:40]wFMCommunicate OK [09:28:40]wFMCommunicate request_size=4 [09:28:40]MH_SAM_APDU [09:28:40]CAPDU: 80 0D 03 02 [09:28:40]Write to MH i2c: E2 08 00 B3 36 80 0D 03 02 00 00 00 00 64 [09:28:40]Write i2c OK [09:28:40]MH_I2C_Read... [09:28:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:28:40]Read from MH i2c: E2 [09:28:40]MH_I2C_Read... [09:28:40]Read from MH i2c: E2 0B 00 [09:28:40]MH_I2C_Read... [09:28:40]Read from MH i2c: E2 0B 00 B3 36 00 77 73 B9 08 93 F1 9C D1 90 00 01 [09:28:40]RAPDU: 77 73 B9 08 93 F1 9C D1 90 00 [09:28:40]wFMCommunicate OK [09:28:40]SAM_PROTO_SignData done [09:28:40]FM_MakeSignedData done [09:28:40]CreateOFDProtocolMessage [09:28:40]wFMCommunicate request_size=4 [09:28:40]MH_SAM_APDU [09:28:40]CAPDU: 80 11 00 00 [09:28:40]Write to MH i2c: E2 08 00 B4 36 80 11 00 00 00 00 00 00 64 [09:28:40]Write i2c OK [09:28:40]MH_I2C_Read... [09:28:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:28:40]Read from MH i2c: E2 [09:28:40]MH_I2C_Read... [09:28:40]Read from MH i2c: E2 17 00 [09:28:40]MH_I2C_Read... [09:28:40]Read from MH i2c: E2 17 00 B4 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 B2 [09:28:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [09:28:40]wFMCommunicate OK [09:28:40]CreateOFDProtocolMessage done [09:28:40]OFDSenderStorePacket 187619 [09:28:40]StoreOFDPacket docnum=187619 [09:28:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 57 77 07 01 58 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 33 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 53 00 00 00 F4 03 04 00 CA 1E 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 E3 DC 02 00 35 04 06 00 8C FE 42 AF 90 DF 77 73 B9 08 93 F1 9C D1 [09:28:40]CheckFolder [09:28:40]dirname=/storage/ofd_packets [09:28:40]CheckFolder done [09:28:40]ProducePacketName [09:28:40]name=ofd_packets/00187619 [09:28:40]NVStorageSaveData ofd_packets/00187619 [09:28:40]File name is /storage/ofd_packets/00187619 [09:28:40]Write 301 bytes [09:28:40]NVStorageSaveData done [09:28:40]OFDSenderStorePacket done [09:28:40]KKMCreateOFDPacket done [09:28:40]NVStorageSaveData kkm_last_timestamp [09:28:40]File name is /storage/kkm_last_timestamp [09:28:40]Write 4 bytes [09:28:40]NVStorageSaveData done [09:28:40]ExternCall_PrintAddStr [09:28:40]wPrintStart [09:28:40]Write to MH i2c: 01 00 00 B5 36 EB [09:28:40]Write i2c OK [09:28:40]MH_I2C_Read... [09:28:40]Read from MH i2c: 01 [09:28:40]MH_I2C_Read... [09:28:40]Read from MH i2c: 01 07 00 [09:28:40]MH_I2C_Read... [09:28:40]Read from MH i2c: 01 07 00 B5 36 00 00 00 00 00 FF 0F 00 [09:28:40]RasterBufferAndPrint [09:28:40]line Счет N : (1)209672 [09:28:40]line ИНН: 02508201610067 [09:28:40]line Контрольно-Кассовый Чек [09:28:40]line ПРОДАЖА [09:28:40]line ТРК (МРК, ГНК) : 32 [09:28:40]line Товар: 2710124130 [09:28:40]line Аи-92-К-3 [09:28:40]line 14.950 * 66.90 [09:28:40]line = 1000.16 [09:28:40]line НДС 12% НСП 1% [09:28:40]line > о реализуемом товаре [09:28:40]line ОКРУГЛЕНИЕ: -0.16 [09:28:40]line ИТОГО: 1000.00 [09:28:40]line Внесено: 1000.00 [09:28:40]line СДАЧА: 0.00 [09:28:40]line НСП 1% : 8.85 [09:28:40]line НДС 12% : 106.21 [09:28:40]line Наличными: 1000.00 [09:28:40]line Безнал.: 0.00 [09:28:40]line Место: АЗС № 86 "Партнер Нефть" [09:28:40]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [09:28:40]line СНО: Общий режим [09:28:40]line Чек 83 21.10.2024 09:28 [09:28:40]line Смена: 460 ФФД: 1.0 [09:28:40]line ЗНМ: 0300000155 [09:28:40]line РНМ: 0000000000100030 [09:28:40]line Версия ККМ: 001 [09:28:40]line ФМ: 0000000000965340 [09:28:40]line ФД: 187619 [09:28:40]line ФПД: 155023668383967 [09:28:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T092842&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187619&fm=155023668383967&tin=02508201610067®Number=0000000000100030&sum=100000 [09:28:40]written 0, free lines is 4095 [09:28:40]OFD Sender: Processing packet 187619 [packets to send 1062, broken 1061] [09:28:40]ProducePacketName [09:28:40]name=ofd_packets/00187619 [09:28:40]OFD Sender: To server: pG, [09:28:40]CommunicateWithHost lk.salyk.kg:30040 [09:28:40]ConnectInit lk.salyk.kg [09:28:40]Connected sock=8 [09:28:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 57 77 07 01 58 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 33 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 53 00 00 00 F4 03 04 00 CA 1E 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 E3 DC 02 00 35 04 06 00 8C FE 42 AF 90 DF 77 73 B9 08 93 F1 9C D1 [09:28:40]Write to MH i2c: 01 00 00 E0 36 16 [09:28:40]Write i2c OK [09:28:40]MH_I2C_Read... [09:28:40]Read from MH i2c: 01 [09:28:40]MH_I2C_Read... [09:28:40]Read from MH i2c: 01 07 00 [09:28:40]MH_I2C_Read... [09:28:40]Read from MH i2c: 01 07 00 E0 36 00 00 00 00 00 70 0C 99 [09:28:40]RasterBufferAndPrint [09:28:40]line [09:28:40]line [09:28:40]line [09:28:40]line [09:28:40]line [09:28:40]written 0, free lines is 3186 [09:28:40]MH_Cut [09:28:40]Write to MH i2c: D1 01 00 E7 36 01 EF [09:28:40]Write i2c OK [09:28:40]MH_I2C_Read... [09:28:40]Read from MH i2c: D1 [09:28:40]MH_I2C_Read... [09:28:40]Read from MH i2c: D1 01 00 [09:28:40]MH_I2C_Read... [09:28:40]Read from MH i2c: D1 01 00 E7 36 00 EE [09:28:40]Write to MH i2c: 01 00 00 E8 36 1E [09:28:40]Write i2c OK [09:28:40]MH_I2C_Read... [09:28:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 97 21 47 00 A6 82 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 E3 DC 02 00 F4 03 04 00 BA C8 15 67 B6 04 01 00 00 E6 9A 8F DF A4 AC C4 A1 [09:28:41]CommunicateWithHost err = 0 [09:28:41]CheckOFDResponse [09:28:41]1017 (14) - 77093643461234 [09:28:41]1041 (16) - 0000000000965340 [09:28:41]1040 (4) - 187619 [09:28:41]1012 (4) - 21.10.2024 03:21 [09:28:41]1206 (1) - 0 [09:28:41]OFD Sender: Remove packet 187619 [09:28:41]ProducePacketName [09:28:41]name=ofd_packets/00187619 [09:28:41]NVStorageDeleteData [09:28:41]OFD Sender: No OFD packet to send [09:28:42]*** Cut start [09:28:42]*** Partial cut [09:28:42]*** CUTSNS_PIN = 1 [09:28:42]*** CUTSNS_PIN = 0 [09:28:42]*** Brake cut motor [09:28:42]Read from MH i2c: 01 [09:28:42]MH_I2C_Read... [09:28:42]*** Stop cut motor [09:28:42]*** Cut end [09:28:42]Read from MH i2c: 01 07 00 [09:28:42]MH_I2C_Read... [09:28:42]Read from MH i2c: 01 07 00 E8 36 00 00 00 00 00 FF 0F 33 [09:28:42]process_action close_receipt done [09:28:42]requested_data is exist [09:28:42]produce_requested_data [09:28:42]requested_item fm.sn is exist - process it [09:28:42]wFMCommunicate request_size=4 [09:28:42]MH_SAM_APDU [09:28:42]CAPDU: 80 11 00 00 [09:28:42]Write to MH i2c: E2 08 00 E9 36 80 11 00 00 00 00 00 00 99 [09:28:42]Write i2c OK [09:28:42]MH_I2C_Read... [09:28:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:28:42]Read from MH i2c: E2 [09:28:42]MH_I2C_Read... [09:28:42]Read from MH i2c: E2 17 00 [09:28:42]MH_I2C_Read... [09:28:42]Read from MH i2c: E2 17 00 E9 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 E7 [09:28:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [09:28:42]wFMCommunicate OK [09:28:42]requested_item fd.num is exist - process it [09:28:42]SAM_PROTO_GetFieldsCounters [09:28:42]wFMCommunicate request_size=4 [09:28:42]MH_SAM_APDU [09:28:42]CAPDU: 80 13 00 00 [09:28:42]Write to MH i2c: E2 08 00 EA 36 80 13 00 00 00 00 00 00 9C [09:28:42]Write i2c OK [09:28:42]MH_I2C_Read... [09:28:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:28:42]Read from MH i2c: E2 [09:28:42]MH_I2C_Read... [09:28:42]Read from MH i2c: E2 62 00 [09:28:42]MH_I2C_Read... [09:28:42]Read from MH i2c: E2 62 00 EA 36 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 E3 DC 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 53 00 00 00 5E 04 04 00 53 00 00 00 57 04 04 00 54 00 00 00 19 04 04 00 00 00 00 00 90 00 2A [09:28:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 E3 DC 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 53 00 00 00 5E 04 04 00 53 00 00 00 57 04 04 00 54 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:28:42]wFMCommunicate OK [09:28:42]SAM_PROTO_GetFieldsCounters done [09:28:42]requested_item shift.num is exist - process it [09:28:42]requested_item shift.opened is exist - process it [09:28:42]req_shift_opened [09:28:42]FM_GetShiftState [09:28:42]SAM_PROTO_GetShiftState [09:28:42]wFMCommunicate request_size=4 [09:28:42]MH_SAM_APDU [09:28:42]CAPDU: 80 13 01 00 [09:28:42]Write to MH i2c: E2 08 00 EB 36 80 13 01 00 00 00 00 00 9E [09:28:42]Write i2c OK [09:28:42]MH_I2C_Read... [09:28:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:28:42]Read from MH i2c: E2 [09:28:42]MH_I2C_Read... [09:28:42]Read from MH i2c: E2 0E 00 [09:28:42]MH_I2C_Read... [09:28:42]Read from MH i2c: E2 0E 00 EB 36 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 FD [09:28:42]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [09:28:42]wFMCommunicate OK [09:28:42]SAM_PROTO_GetShiftState done [09:28:42]FM_GetShiftState done [09:28:42]req_shift_opened done [09:28:42]requested_item shift.open_date is exist - process it [09:28:42]req_shift_open_date [09:28:42]req_shift_open_date done [09:28:42]produce_requested_data done [09:28:42]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187619,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [09:28:42]process_action_free close_receipt [09:28:42]json_value_free [09:28:42]json_value_free done [09:28:42]process_json_proto returns [09:28:42]Send response to host [09:28:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187619,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [09:28:42]free response buf [09:28:42]execute_script done [09:28:42]execute_script returns [09:28:42]free content buf [09:28:42]Sock 9.Close socket [09:28:42]Sock 9.Thread stoped [09:28:46]OFD Sender: No OFD packet to send [09:28:51]OFD Sender: No OFD packet to send [09:28:53]accept exits with 10 [09:28:53]New connection [09:28:53]New thread 3067157860 created [09:28:53]Thread 3067014500 joined [09:28:53]Waiting for new connection... [09:28:53] Sock 10.Parse request [09:28:53]Sock 10.Check first char [09:28:53]Sock 10.First char is OK [09:28:53]request: POST /json_proto HTTP/1.0 [09:28:53]Method: POST [09:28:53]URL: /json_proto [09:28:53]Method is POST - this is cgi request [09:28:53]url: /json_proto [09:28:53]query_string will be loaded in cgi processing [09:28:53]execute_cgi json_proto POST (null) [09:28:53]execute_cgi path=json_proto method=POST [09:28:53]POST find Content-Length [09:28:53]Host: 172.17.42.131:8080 [09:28:53]Content-Length: 683 [09:28:53]Content-Type: application/json [09:28:53] [09:28:53]POST finish read [09:28:53]Found Content-Length = 683 [09:28:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209673", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 7.780, "sum" : 600.62, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:28:53]execute_script... [09:28: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)209673", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 7.780, "sum" : 600.62, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:28:53]POST & json_proto [09:28:53]process_json_proto [09:28:53]json parsed OK: [09:28:53]protocol is kg_v1.0 [09:28:53]action value=close_receipt [09:28:53]process_action close_receipt [09:28:53]cmd_close_receipt [09:28:53]MH_GetDate [09:28:53]Write to MH i2c: F0 00 00 EC 36 11 [09:28:53]Write i2c OK [09:28:53]MH_I2C_Read... [09:28:53]Read from MH i2c: F0 [09:28:53]MH_I2C_Read... [09:28:53]Read from MH i2c: F0 09 00 [09:28:53]MH_I2C_Read... [09:28:53]Read from MH i2c: F0 09 00 EC 36 00 D9 1E 16 67 A0 18 CA 66 76 [09:28:53]GetLastDocTimeStamp 1729502922 [09:28:53]current date 1729502937 [09:28:53]FM_GetShiftState [09:28:53]SAM_PROTO_GetShiftState [09:28:53]wFMCommunicate request_size=4 [09:28:53]MH_SAM_APDU [09:28:53]CAPDU: 80 13 01 00 [09:28:53]Write to MH i2c: E2 08 00 ED 36 80 13 01 00 00 00 00 00 A0 [09:28:53]Write i2c OK [09:28:53]MH_I2C_Read... [09:28:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:28:53]Read from MH i2c: E2 [09:28:53]MH_I2C_Read... [09:28:53]Read from MH i2c: E2 0E 00 [09:28:53]MH_I2C_Read... [09:28:53]Read from MH i2c: E2 0E 00 ED 36 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 FF [09:28:53]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [09:28:53]wFMCommunicate OK [09:28:53]SAM_PROTO_GetShiftState done [09:28:53]FM_GetShiftState done [09:28:53]opened in 1729469754 [09:28:53]opened+sec_in_day 1729556154 [09:28:53]quantity*price = 60061 [09:28:53]sum+1 = 60063 [09:28:53]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.62 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.78 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 84 21.10.2024 09:28 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 187620 ФПД: 49523898671795 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T092857&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187620&fm=49523898671795&tin=02508201610067®Number=0000000000100030&sum=60000 [09:28:54]StoreToDocumentArchive [09:28:54]shift 460 fd 187620 [09:28:54]save to /storage/0460/doc_00187620 [09:28:54]save last doc name /storage/0460/doc_00187620 to /storage/kkm_last_doc_name [09:28:54]save OK [09:28:54]Clear old archive folders... [09:28:55]ProcessDocumentItem done err = 0, tmpTLVsize=257 [09:28:55]tlvbuf is 01110470 [09:28:55]SAM_PROTO_ClearQueue [09:28:55]wFMCommunicate request_size=4 [09:28:55]MH_SAM_APDU [09:28:55]CAPDU: 80 09 00 00 [09:28:55]Write to MH i2c: E2 08 00 FA 36 80 09 00 00 00 00 00 00 A2 [09:28:55]Write i2c OK [09:28:55]MH_I2C_Read... [09:28:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:28:55]Read from MH i2c: E2 [09:28:55]MH_I2C_Read... [09:28:55]Read from MH i2c: E2 03 00 [09:28:55]MH_I2C_Read... [09:28:55]Read from MH i2c: E2 03 00 FA 36 00 90 00 A4 [09:28:55]RAPDU: 90 00 [09:28:55]wFMCommunicate OK [09:28:55]SAM_PROTO_ClearQueue done [09:28:55]KKMCreateOFDPacket [09:28:55]OFDProtocolAddRootSTLVToBuf [09:28:55]FM_MakeSignedData [09:28:55]FM_MakeSignedData [09:28:55]SAM_PROTO_SignData [09:28:55]wFMCommunicate request_size=4 [09:28:55]MH_SAM_APDU [09:28:55]CAPDU: 80 0D 01 02 [09:28:55]Write to MH i2c: E2 08 00 FB 36 80 0D 01 02 00 00 00 00 AA [09:28:55]Write i2c OK [09:28:55]MH_I2C_Read... [09:28:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:28:55]Read from MH i2c: E2 [09:28:55]MH_I2C_Read... [09:28:55]Read from MH i2c: E2 03 00 [09:28:55]MH_I2C_Read... [09:28:55]Read from MH i2c: E2 03 00 FB 36 00 90 00 A5 [09:28:55]RAPDU: 90 00 [09:28:55]wFMCommunicate OK [09:28:55]wFMCommunicate request_size=255 [09:28:55]MH_SAM_APDU [09:28:55]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 64 1E 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 9E EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EA 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 D9 1E 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 E4 DC 02 [09:28:55]Write to MH i2c: E2 02 01 FC 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 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 64 1E 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 9E EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EA 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 D9 1E 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 E4 DC 02 00 00 77 [09:28:55]Write i2c OK [09:28:55]MH_I2C_Read... [09:28:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:28:55]Read from MH i2c: E2 [09:28:55]MH_I2C_Read... [09:28:55]Read from MH i2c: E2 03 00 [09:28:55]MH_I2C_Read... [09:28:55]Read from MH i2c: E2 03 00 FC 36 00 90 00 A6 [09:28:55]RAPDU: 90 00 [09:28:55]wFMCommunicate OK [09:28:55]wFMCommunicate request_size=16 [09:28:55]MH_SAM_APDU [09:28:55]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 2D 0A AE 63 62 B3 [09:28:55]Write to MH i2c: E2 13 00 FD 36 80 0D 02 02 0B 00 00 35 04 06 00 2D 0A AE 63 62 B3 00 00 5F [09:28:55]Write i2c OK [09:28:55]MH_I2C_Read... [09:28:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:28:55]Read from MH i2c: E2 [09:28:55]MH_I2C_Read... [09:28:55]Read from MH i2c: E2 03 00 [09:28:55]MH_I2C_Read... [09:28:55]Read from MH i2c: E2 03 00 FD 36 00 90 00 A7 [09:28:55]RAPDU: 90 00 [09:28:55]wFMCommunicate OK [09:28:55]wFMCommunicate request_size=4 [09:28:55]MH_SAM_APDU [09:28:55]CAPDU: 80 0D 03 02 [09:28:55]Write to MH i2c: E2 08 00 FE 36 80 0D 03 02 00 00 00 00 AF [09:28:55]Write i2c OK [09:28:55]MH_I2C_Read... [09:28:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:28:55]Read from MH i2c: E2 [09:28:55]MH_I2C_Read... [09:28:55]Read from MH i2c: E2 0B 00 [09:28:55]MH_I2C_Read... [09:28:55]Read from MH i2c: E2 0B 00 FE 36 00 95 38 3F EA 1E 04 64 18 90 00 44 [09:28:55]RAPDU: 95 38 3F EA 1E 04 64 18 90 00 [09:28:55]wFMCommunicate OK [09:28:55]SAM_PROTO_SignData done [09:28:55]FM_MakeSignedData done [09:28:55]CreateOFDProtocolMessage [09:28:55]wFMCommunicate request_size=4 [09:28:55]MH_SAM_APDU [09:28:55]CAPDU: 80 11 00 00 [09:28:55]Write to MH i2c: E2 08 00 FF 36 80 11 00 00 00 00 00 00 AF [09:28:55]Write i2c OK [09:28:55]MH_I2C_Read... [09:28:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:28:55]Read from MH i2c: E2 [09:28:55]MH_I2C_Read... [09:28:55]Read from MH i2c: E2 17 00 [09:28:55]MH_I2C_Read... [09:28:55]Read from MH i2c: E2 17 00 FF 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 FD [09:28:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [09:28:55]wFMCommunicate OK [09:28:55]CreateOFDProtocolMessage done [09:28:55]OFDSenderStorePacket 187620 [09:28:55]StoreOFDPacket docnum=187620 [09:28:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 EE 55 0D 01 CC 69 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 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 64 1E 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 9E EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EA 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 D9 1E 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 E4 DC 02 00 35 04 06 00 2D 0A AE 63 62 B3 95 38 3F EA 1E 04 64 18 [09:28:55]CheckFolder [09:28:55]dirname=/storage/ofd_packets [09:28:55]CheckFolder done [09:28:55]ProducePacketName [09:28:55]name=ofd_packets/00187620 [09:28:55]NVStorageSaveData ofd_packets/00187620 [09:28:55]File name is /storage/ofd_packets/00187620 [09:28:55]Write 307 bytes [09:28:55]NVStorageSaveData done [09:28:55]OFDSenderStorePacket done [09:28:55]KKMCreateOFDPacket done [09:28:55]NVStorageSaveData kkm_last_timestamp [09:28:55]File name is /storage/kkm_last_timestamp [09:28:55]Write 4 bytes [09:28:55]NVStorageSaveData done [09:28:55]ExternCall_PrintAddStr [09:28:55]wPrintStart [09:28:55]Write to MH i2c: 01 00 00 00 37 37 [09:28:55]Write i2c OK [09:28:55]MH_I2C_Read... [09:28:55]Read from MH i2c: 01 [09:28:55]MH_I2C_Read... [09:28:55]Read from MH i2c: 01 07 00 [09:28:55]MH_I2C_Read... [09:28:55]Read from MH i2c: 01 07 00 00 37 00 00 00 00 00 FF 0F 4C [09:28:55]RasterBufferAndPrint [09:28:55]line Счет N : (1)209673 [09:28:55]line ИНН: 02508201610067 [09:28:55]line Контрольно-Кассовый Чек [09:28:55]line ПРОДАЖА [09:28:55]line ТРК (МРК, ГНК) : 11 [09:28:55]line Товар: 2710194210 [09:28:55]line D-ENERGY ДТ-К-5 [09:28:55]line 7.780 * 77.20 [09:28:55]line = 600.62 [09:28:55]line НДС 12% НСП 1% [09:28:55]line > о реализуемом товаре [09:28:55]line ОКРУГЛЕНИЕ: -0.62 [09:28:55]line ИТОГО: 600.00 [09:28:55]line Внесено: 600.00 [09:28:55]line СДАЧА: 0.00 [09:28:55]line НСП 1% : 5.31 [09:28:55]line НДС 12% : 63.78 [09:28:55]line Наличными: 600.00 [09:28:55]line Безнал.: 0.00 [09:28:55]line Место: АЗС № 86 "Партнер Нефть" [09:28:55]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [09:28:55]line СНО: Общий режим [09:28:55]line Чек 84 21.10.2024 09:28 [09:28:55]line Смена: 460 ФФД: 1.0 [09:28:55]line ЗНМ: 0300000155 [09:28:55]line РНМ: 0000000000100030 [09:28:55]line Версия ККМ: 001 [09:28:55]line ФМ: 0000000000965340 [09:28:55]line ФД: 187620 [09:28:55]line ФПД: 49523898671795 [09:28:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T092857&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187620&fm=49523898671795&tin=02508201610067®Number=0000000000100030&sum=60000 [09:28:55]written 0, free lines is 4095 [09:28:55]OFD Sender: Processing packet 187620 [packets to send 1062, broken 1061] [09:28:55]ProducePacketName [09:28:55]name=ofd_packets/00187620 [09:28:55]OFD Sender: To server: pG, [09:28:55]CommunicateWithHost lk.salyk.kg:30040 [09:28:55]ConnectInit lk.salyk.kg [09:28:55]Connected sock=9 [09:28:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 EE 55 0D 01 CC 69 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 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 64 1E 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 9E EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EA 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 D9 1E 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 E4 DC 02 00 35 04 06 00 2D 0A AE 63 62 B3 95 38 3F EA 1E 04 64 18 [09:28:56]Write to MH i2c: 01 00 00 2B 37 62 [09:28:56]Write i2c OK [09:28:56]MH_I2C_Read... [09:28:56]Read from MH i2c: 01 [09:28:56]MH_I2C_Read... [09:28:56]Read from MH i2c: 01 07 00 [09:28:56]MH_I2C_Read... [09:28:56]Read from MH i2c: 01 07 00 2B 37 00 00 00 00 00 71 0C E6 [09:28:56]RasterBufferAndPrint [09:28:56]line [09:28:56]line [09:28:56]line [09:28:56]line [09:28:56]line [09:28:56]written 0, free lines is 3188 [09:28:56]MH_Cut [09:28:56]Write to MH i2c: D1 01 00 32 37 01 3B [09:28:56]Write i2c OK [09:28:56]MH_I2C_Read... [09:28:56]Read from MH i2c: D1 [09:28:56]MH_I2C_Read... [09:28:56]Read from MH i2c: D1 01 00 [09:28:56]MH_I2C_Read... [09:28:56]Read from MH i2c: D1 01 00 32 37 00 3A [09:28:56]Write to MH i2c: 01 00 00 33 37 6A [09:28:56]Write i2c OK [09:28:56]MH_I2C_Read... [09:28:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 10 1B 47 00 7D 47 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 E4 DC 02 00 F4 03 04 00 C9 C8 15 67 B6 04 01 00 00 48 E3 3E C0 54 97 7D 28 [09:28:56]CommunicateWithHost err = 0 [09:28:56]CheckOFDResponse [09:28:56]1017 (14) - 77093643461234 [09:28:56]1041 (16) - 0000000000965340 [09:28:56]1040 (4) - 187620 [09:28:56]1012 (4) - 21.10.2024 03:21 [09:28:56]1206 (1) - 0 [09:28:56]OFD Sender: Remove packet 187620 [09:28:56]ProducePacketName [09:28:56]name=ofd_packets/00187620 [09:28:56]NVStorageDeleteData [09:28:56]OFD Sender: No OFD packet to send [09:28:57]*** Cut start [09:28:57]*** Partial cut [09:28:57]*** CUTSNS_PIN = 1 [09:28:57]*** CUTSNS_PIN = 0 [09:28:57]*** Brake cut motor [09:28:57]Read from MH i2c: 01 [09:28:57]MH_I2C_Read... [09:28:57]*** Stop cut motor [09:28:57]*** Cut end [09:28:57]Read from MH i2c: 01 07 00 [09:28:57]MH_I2C_Read... [09:28:57]Read from MH i2c: 01 07 00 33 37 00 00 00 00 00 FF 0F 7F [09:28:57]process_action close_receipt done [09:28:57]requested_data is exist [09:28:57]produce_requested_data [09:28:57]requested_item fm.sn is exist - process it [09:28:57]wFMCommunicate request_size=4 [09:28:57]MH_SAM_APDU [09:28:57]CAPDU: 80 11 00 00 [09:28:57]Write to MH i2c: E2 08 00 34 37 80 11 00 00 00 00 00 00 E5 [09:28:57]Write i2c OK [09:28:57]MH_I2C_Read... [09:28:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:28:57]Read from MH i2c: E2 [09:28:57]MH_I2C_Read... [09:28:57]Read from MH i2c: E2 17 00 [09:28:57]MH_I2C_Read... [09:28:57]Read from MH i2c: E2 17 00 34 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 33 [09:28:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [09:28:57]wFMCommunicate OK [09:28:57]requested_item fd.num is exist - process it [09:28:57]SAM_PROTO_GetFieldsCounters [09:28:57]wFMCommunicate request_size=4 [09:28:57]MH_SAM_APDU [09:28:57]CAPDU: 80 13 00 00 [09:28:57]Write to MH i2c: E2 08 00 35 37 80 13 00 00 00 00 00 00 E8 [09:28:57]Write i2c OK [09:28:57]MH_I2C_Read... [09:28:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:28:57]Read from MH i2c: E2 [09:28:57]MH_I2C_Read... [09:28:57]Read from MH i2c: E2 62 00 [09:28:57]MH_I2C_Read... [09:28:57]Read from MH i2c: E2 62 00 35 37 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 E4 DC 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 54 00 00 00 5E 04 04 00 54 00 00 00 57 04 04 00 55 00 00 00 19 04 04 00 00 00 00 00 90 00 7A [09:28:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 E4 DC 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 54 00 00 00 5E 04 04 00 54 00 00 00 57 04 04 00 55 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:28:57]wFMCommunicate OK [09:28:57]SAM_PROTO_GetFieldsCounters done [09:28:57]requested_item shift.num is exist - process it [09:28:57]requested_item shift.opened is exist - process it [09:28:57]req_shift_opened [09:28:57]FM_GetShiftState [09:28:57]SAM_PROTO_GetShiftState [09:28:57]wFMCommunicate request_size=4 [09:28:57]MH_SAM_APDU [09:28:57]CAPDU: 80 13 01 00 [09:28:57]Write to MH i2c: E2 08 00 36 37 80 13 01 00 00 00 00 00 EA [09:28:57]Write i2c OK [09:28:57]MH_I2C_Read... [09:28:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:28:58]Read from MH i2c: E2 [09:28:58]MH_I2C_Read... [09:28:58]Read from MH i2c: E2 0E 00 [09:28:58]MH_I2C_Read... [09:28:58]Read from MH i2c: E2 0E 00 36 37 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 49 [09:28:58]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [09:28:58]wFMCommunicate OK [09:28:58]SAM_PROTO_GetShiftState done [09:28:58]FM_GetShiftState done [09:28:58]req_shift_opened done [09:28:58]requested_item shift.open_date is exist - process it [09:28:58]req_shift_open_date [09:28:58]req_shift_open_date done [09:28:58]produce_requested_data done [09:28:58]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187620,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [09:28:58]process_action_free close_receipt [09:28:58]json_value_free [09:28:58]json_value_free done [09:28:58]process_json_proto returns [09:28:58]Send response to host [09:28:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187620,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [09:28:58]free response buf [09:28:58]execute_script done [09:28:58]execute_script returns [09:28:58]free content buf [09:28:58]Sock 10.Close socket [09:28:58]Sock 10.Thread stoped [09:29:01]OFD Sender: No OFD packet to send [09:29:06]OFD Sender: No OFD packet to send [09:29:11]OFD Sender: No OFD packet to send [09:29:16]OFD Sender: No OFD packet to send [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:41]OFD Sender: No OFD packet to send [09:29:46]OFD Sender: No OFD packet to send [09:29:51]OFD Sender: No OFD packet to send [09:29:56]OFD Sender: No OFD packet to send [09:30:01]OFD Sender: No OFD packet to send [09:30:06]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:42]OFD Sender: No OFD packet to send [09:30:47]OFD Sender: No OFD packet to send [09:30:52]OFD Sender: No OFD packet to send [09:30:57]OFD Sender: No OFD packet to send [09:31:02]OFD Sender: No OFD packet to send [09:31:07]OFD Sender: No OFD packet to send [09:31:12]OFD Sender: No OFD packet to send [09:31:17]OFD Sender: No OFD packet to send [09:31:22]OFD Sender: No OFD packet to send [09:31:27]OFD Sender: No OFD packet to send [09:31:32]OFD Sender: No OFD packet to send [09:31:37]OFD Sender: No OFD packet to send [09:31:42]OFD Sender: No OFD packet to send [09:31:47]OFD Sender: No OFD packet to send [09:31:52]OFD Sender: No OFD packet to send [09:31:57]OFD Sender: No OFD packet to send [09:32:02]OFD Sender: No OFD packet to send [09:32:04]accept exits with 8 [09:32:04]New connection [09:32:04]New thread 3067014500 created [09:32:04]Thread 3067157860 joined [09:32:04]Waiting for new connection... [09:32:04] Sock 8.Parse request [09:32:04]Sock 8.Check first char [09:32:04]Sock 8.First char is OK [09:32:04]request: POST /json_proto HTTP/1.0 [09:32:04]Method: POST [09:32:04]URL: /json_proto [09:32:04]Method is POST - this is cgi request [09:32:04]url: /json_proto [09:32:04]query_string will be loaded in cgi processing [09:32:04]execute_cgi json_proto POST (null) [09:32:04]execute_cgi path=json_proto method=POST [09:32:04]POST find Content-Length [09:32:04]Host: 172.17.42.131:8080 [09:32:04]Content-Length: 688 [09:32:04]Content-Type: application/json [09:32:04] [09:32:04]POST finish read [09:32:04]Found Content-Length = 688 [09:32:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209674", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 38.870, "sum" : 3000.76, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:32:04]execute_script... [09:32: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)209674", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 38.870, "sum" : 3000.76, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:32:04]POST & json_proto [09:32:04]process_json_proto [09:32:04]json parsed OK: [09:32:04]protocol is kg_v1.0 [09:32:04]action value=close_receipt [09:32:04]process_action close_receipt [09:32:04]cmd_close_receipt [09:32:04]MH_GetDate [09:32:04]Write to MH i2c: F0 00 00 37 37 5D [09:32:04]Write i2c OK [09:32:04]MH_I2C_Read... [09:32:04]Read from MH i2c: F0 [09:32:04]MH_I2C_Read... [09:32:04]Read from MH i2c: F0 09 00 [09:32:04]MH_I2C_Read... [09:32:04]Read from MH i2c: F0 09 00 37 37 00 98 1F 16 67 A0 18 CA 66 82 [09:32:04]GetLastDocTimeStamp 1729502937 [09:32:04]current date 1729503128 [09:32:04]FM_GetShiftState [09:32:04]SAM_PROTO_GetShiftState [09:32:04]wFMCommunicate request_size=4 [09:32:04]MH_SAM_APDU [09:32:04]CAPDU: 80 13 01 00 [09:32:04]Write to MH i2c: E2 08 00 38 37 80 13 01 00 00 00 00 00 EC [09:32:04]Write i2c OK [09:32:04]MH_I2C_Read... [09:32:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:32:04]Read from MH i2c: E2 [09:32:04]MH_I2C_Read... [09:32:04]Read from MH i2c: E2 0E 00 [09:32:04]MH_I2C_Read... [09:32:04]Read from MH i2c: E2 0E 00 38 37 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 4B [09:32:04]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [09:32:04]wFMCommunicate OK [09:32:04]SAM_PROTO_GetShiftState done [09:32:04]FM_GetShiftState done [09:32:04]opened in 1729469754 [09:32:04]opened+sec_in_day 1729556154 [09:32:04]quantity*price = 300076 [09:32:04]sum+1 = 300077 [09:32:04]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.76 ИТОГО: 3000.00 Внесено: 3000.00 СДАЧА: 0.00 НСП 1% : 26.55 НДС 12% : 318.66 Наличными: 3000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 85 21.10.2024 09:32 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 187621 ФПД: 46957909461187 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T093208&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187621&fm=46957909461187&tin=02508201610067®Number=0000000000100030&sum=300000 [09:32:05]StoreToDocumentArchive [09:32:05]shift 460 fd 187621 [09:32:05]save to /storage/0460/doc_00187621 [09:32:05]save last doc name /storage/0460/doc_00187621 to /storage/kkm_last_doc_name [09:32:05]save OK [09:32:05]Clear old archive folders... [09:32:05]ProcessDocumentItem done err = 0, tmpTLVsize=257 [09:32:05]tlvbuf is 01170020 [09:32:05]SAM_PROTO_ClearQueue [09:32:05]wFMCommunicate request_size=4 [09:32:05]MH_SAM_APDU [09:32:05]CAPDU: 80 09 00 00 [09:32:05]Write to MH i2c: E2 08 00 45 37 80 09 00 00 00 00 00 00 EE [09:32:05]Write i2c OK [09:32:05]MH_I2C_Read... [09:32:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:32:05]Read from MH i2c: E2 [09:32:05]MH_I2C_Read... [09:32:05]Read from MH i2c: E2 03 00 [09:32:05]MH_I2C_Read... [09:32:05]Read from MH i2c: E2 03 00 45 37 00 90 00 F0 [09:32:05]RAPDU: 90 00 [09:32:05]wFMCommunicate OK [09:32:05]SAM_PROTO_ClearQueue done [09:32:05]KKMCreateOFDPacket [09:32:05]OFDProtocolAddRootSTLVToBuf [09:32:05]FM_MakeSignedData [09:32:05]FM_MakeSignedData [09:32:05]SAM_PROTO_SignData [09:32:05]wFMCommunicate request_size=4 [09:32:05]MH_SAM_APDU [09:32:05]CAPDU: 80 0D 01 02 [09:32:05]Write to MH i2c: E2 08 00 46 37 80 0D 01 02 00 00 00 00 F6 [09:32:05]Write i2c OK [09:32:05]MH_I2C_Read... [09:32:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:32:05]Read from MH i2c: E2 [09:32:05]MH_I2C_Read... [09:32:05]Read from MH i2c: E2 03 00 [09:32:05]MH_I2C_Read... [09:32:05]Read from MH i2c: E2 03 00 46 37 00 90 00 F1 [09:32:05]RAPDU: 90 00 [09:32:05]wFMCommunicate OK [09:32:05]wFMCommunicate request_size=255 [09:32:05]MH_SAM_APDU [09:32:05]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 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D6 97 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 98 1F 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 E5 DC 02 [09:32:05]Write to MH i2c: E2 02 01 47 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 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D6 97 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 98 1F 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 E5 DC 02 00 00 4E [09:32:05]Write i2c OK [09:32:05]MH_I2C_Read... [09:32:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:32:06]Read from MH i2c: E2 [09:32:06]MH_I2C_Read... [09:32:06]Read from MH i2c: E2 03 00 [09:32:06]MH_I2C_Read... [09:32:06]Read from MH i2c: E2 03 00 47 37 00 90 00 F2 [09:32:06]RAPDU: 90 00 [09:32:06]wFMCommunicate OK [09:32:06]wFMCommunicate request_size=16 [09:32:06]MH_SAM_APDU [09:32:06]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 2A B5 3D 83 48 C3 [09:32:06]Write to MH i2c: E2 13 00 48 37 80 0D 02 02 0B 00 00 35 04 06 00 2A B5 3D 83 48 C3 00 00 F8 [09:32:06]Write i2c OK [09:32:06]MH_I2C_Read... [09:32:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:32:06]Read from MH i2c: E2 [09:32:06]MH_I2C_Read... [09:32:06]Read from MH i2c: E2 03 00 [09:32:06]MH_I2C_Read... [09:32:06]Read from MH i2c: E2 03 00 48 37 00 90 00 F3 [09:32:06]RAPDU: 90 00 [09:32:06]wFMCommunicate OK [09:32:06]wFMCommunicate request_size=4 [09:32:06]MH_SAM_APDU [09:32:06]CAPDU: 80 0D 03 02 [09:32:06]Write to MH i2c: E2 08 00 49 37 80 0D 03 02 00 00 00 00 FB [09:32:06]Write i2c OK [09:32:06]MH_I2C_Read... [09:32:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:32:06]Read from MH i2c: E2 [09:32:06]MH_I2C_Read... [09:32:06]Read from MH i2c: E2 0B 00 [09:32:06]MH_I2C_Read... [09:32:06]Read from MH i2c: E2 0B 00 49 37 00 32 ED 38 E8 B1 AB B0 A7 90 00 EE [09:32:06]RAPDU: 32 ED 38 E8 B1 AB B0 A7 90 00 [09:32:06]wFMCommunicate OK [09:32:06]SAM_PROTO_SignData done [09:32:06]FM_MakeSignedData done [09:32:06]CreateOFDProtocolMessage [09:32:06]wFMCommunicate request_size=4 [09:32:06]MH_SAM_APDU [09:32:06]CAPDU: 80 11 00 00 [09:32:06]Write to MH i2c: E2 08 00 4A 37 80 11 00 00 00 00 00 00 FB [09:32:06]Write i2c OK [09:32:06]MH_I2C_Read... [09:32:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:32:06]Read from MH i2c: E2 [09:32:06]MH_I2C_Read... [09:32:06]Read from MH i2c: E2 17 00 [09:32:06]MH_I2C_Read... [09:32:06]Read from MH i2c: E2 17 00 4A 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 49 [09:32:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [09:32:06]wFMCommunicate OK [09:32:06]CreateOFDProtocolMessage done [09:32:06]OFDSenderStorePacket 187621 [09:32:06]StoreOFDPacket docnum=187621 [09:32:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 96 74 0D 01 76 7A 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 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D6 97 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 98 1F 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 E5 DC 02 00 35 04 06 00 2A B5 3D 83 48 C3 32 ED 38 E8 B1 AB B0 A7 [09:32:06]CheckFolder [09:32:06]dirname=/storage/ofd_packets [09:32:06]CheckFolder done [09:32:06]ProducePacketName [09:32:06]name=ofd_packets/00187621 [09:32:06]NVStorageSaveData ofd_packets/00187621 [09:32:06]File name is /storage/ofd_packets/00187621 [09:32:06]Write 307 bytes [09:32:06]NVStorageSaveData done [09:32:06]OFDSenderStorePacket done [09:32:06]KKMCreateOFDPacket done [09:32:06]NVStorageSaveData kkm_last_timestamp [09:32:06]File name is /storage/kkm_last_timestamp [09:32:06]Write 4 bytes [09:32:06]NVStorageSaveData done [09:32:06]ExternCall_PrintAddStr [09:32:06]wPrintStart [09:32:06]Write to MH i2c: 01 00 00 4B 37 82 [09:32:06]Write i2c OK [09:32:06]MH_I2C_Read... [09:32:06]Read from MH i2c: 01 [09:32:06]MH_I2C_Read... [09:32:06]Read from MH i2c: 01 07 00 [09:32:06]MH_I2C_Read... [09:32:06]Read from MH i2c: 01 07 00 4B 37 00 00 00 00 00 FF 0F 97 [09:32:06]RasterBufferAndPrint [09:32:06]line Счет N : (1)209674 [09:32:06]line ИНН: 02508201610067 [09:32:06]line Контрольно-Кассовый Чек [09:32:06]line ПРОДАЖА [09:32:06]line ТРК (МРК, ГНК) : 11 [09:32:06]line Товар: 2710194210 [09:32:06]line D-ENERGY ДТ-К-5 [09:32:06]line 38.870 * 77.20 [09:32:06]line = 3000.76 [09:32:06]line НДС 12% НСП 1% [09:32:06]line > о реализуемом товаре [09:32:06]line ОКРУГЛЕНИЕ: -0.76 [09:32:06]line ИТОГО: 3000.00 [09:32:06]line Внесено: 3000.00 [09:32:06]line СДАЧА: 0.00 [09:32:06]line НСП 1% : 26.55 [09:32:06]line НДС 12% : 318.66 [09:32:06]line Наличными: 3000.00 [09:32:06]line Безнал.: 0.00 [09:32:06]line Место: АЗС № 86 "Партнер Нефть" [09:32:06]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [09:32:06]line СНО: Общий режим [09:32:06]line Чек 85 21.10.2024 09:32 [09:32:06]line Смена: 460 ФФД: 1.0 [09:32:06]line ЗНМ: 0300000155 [09:32:06]line РНМ: 0000000000100030 [09:32:06]line Версия ККМ: 001 [09:32:06]line ФМ: 0000000000965340 [09:32:06]line ФД: 187621 [09:32:06]line ФПД: 46957909461187 [09:32:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T093208&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187621&fm=46957909461187&tin=02508201610067®Number=0000000000100030&sum=300000 [09:32:06]written 0, free lines is 4095 [09:32:06]OFD Sender: Processing packet 187621 [packets to send 1062, broken 1061] [09:32:06]ProducePacketName [09:32:06]name=ofd_packets/00187621 [09:32:06]OFD Sender: To server: pG, [09:32:06]CommunicateWithHost lk.salyk.kg:30040 [09:32:06]ConnectInit lk.salyk.kg [09:32:06]Connected sock=11 [09:32:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 96 74 0D 01 76 7A 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 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D6 97 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 98 1F 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 E5 DC 02 00 35 04 06 00 2A B5 3D 83 48 C3 32 ED 38 E8 B1 AB B0 A7 [09:32:06]Write to MH i2c: 01 00 00 76 37 AD [09:32:06]Write i2c OK [09:32:06]MH_I2C_Read... [09:32:06]Read from MH i2c: 01 [09:32:06]MH_I2C_Read... [09:32:06]Read from MH i2c: 01 07 00 [09:32:06]MH_I2C_Read... [09:32:06]Read from MH i2c: 01 07 00 76 37 00 00 00 00 00 75 0C 35 [09:32:06]RasterBufferAndPrint [09:32:06]line [09:32:06]line [09:32:06]line [09:32:06]line [09:32:06]line [09:32:06]written 0, free lines is 3192 [09:32:06]MH_Cut [09:32:06]Write to MH i2c: D1 01 00 7D 37 01 86 [09:32:06]Write i2c OK [09:32:06]MH_I2C_Read... [09:32:06]Read from MH i2c: D1 [09:32:06]MH_I2C_Read... [09:32:06]Read from MH i2c: D1 01 00 [09:32:06]MH_I2C_Read... [09:32:06]Read from MH i2c: D1 01 00 7D 37 00 85 [09:32:06]Write to MH i2c: 01 00 00 7E 37 B5 [09:32:06]Write i2c OK [09:32:06]MH_I2C_Read... [09:32:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 70 87 47 00 BA B6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 E5 DC 02 00 F4 03 04 00 88 C9 15 67 B6 04 01 00 00 8E B7 36 60 F7 E7 61 C6 [09:32:07]CommunicateWithHost err = 0 [09:32:07]CheckOFDResponse [09:32:07]1017 (14) - 77093643461234 [09:32:07]1041 (16) - 0000000000965340 [09:32:07]1040 (4) - 187621 [09:32:07]1012 (4) - 21.10.2024 03:24 [09:32:07]1206 (1) - 0 [09:32:07]OFD Sender: Remove packet 187621 [09:32:07]ProducePacketName [09:32:07]name=ofd_packets/00187621 [09:32:07]NVStorageDeleteData [09:32:07]OFD Sender: No OFD packet to send [09:32:08]*** Cut start [09:32:08]*** Partial cut [09:32:08]*** CUTSNS_PIN = 1 [09:32:08]*** CUTSNS_PIN = 0 [09:32:08]*** Brake cut motor [09:32:08]Read from MH i2c: 01 [09:32:08]MH_I2C_Read... [09:32:08]*** Stop cut motor [09:32:08]*** Cut end [09:32:08]Read from MH i2c: 01 07 00 [09:32:08]MH_I2C_Read... [09:32:08]Read from MH i2c: 01 07 00 7E 37 00 00 00 00 00 FF 0F CA [09:32:08]process_action close_receipt done [09:32:08]requested_data is exist [09:32:08]produce_requested_data [09:32:08]requested_item fm.sn is exist - process it [09:32:08]wFMCommunicate request_size=4 [09:32:08]MH_SAM_APDU [09:32:08]CAPDU: 80 11 00 00 [09:32:08]Write to MH i2c: E2 08 00 7F 37 80 11 00 00 00 00 00 00 30 [09:32:08]Write i2c OK [09:32:08]MH_I2C_Read... [09:32:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:32:08]Read from MH i2c: E2 [09:32:08]MH_I2C_Read... [09:32:08]Read from MH i2c: E2 17 00 [09:32:08]MH_I2C_Read... [09:32:08]Read from MH i2c: E2 17 00 7F 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 7E [09:32:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [09:32:08]wFMCommunicate OK [09:32:08]requested_item fd.num is exist - process it [09:32:08]SAM_PROTO_GetFieldsCounters [09:32:08]wFMCommunicate request_size=4 [09:32:08]MH_SAM_APDU [09:32:08]CAPDU: 80 13 00 00 [09:32:08]Write to MH i2c: E2 08 00 80 37 80 13 00 00 00 00 00 00 33 [09:32:08]Write i2c OK [09:32:08]MH_I2C_Read... [09:32:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:32:08]Read from MH i2c: E2 [09:32:08]MH_I2C_Read... [09:32:08]Read from MH i2c: E2 62 00 [09:32:08]MH_I2C_Read... [09:32:08]Read from MH i2c: E2 62 00 80 37 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 E5 DC 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 55 00 00 00 5E 04 04 00 55 00 00 00 57 04 04 00 56 00 00 00 19 04 04 00 00 00 00 00 90 00 C9 [09:32:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 E5 DC 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 55 00 00 00 5E 04 04 00 55 00 00 00 57 04 04 00 56 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:32:08]wFMCommunicate OK [09:32:08]SAM_PROTO_GetFieldsCounters done [09:32:08]requested_item shift.num is exist - process it [09:32:08]requested_item shift.opened is exist - process it [09:32:08]req_shift_opened [09:32:08]FM_GetShiftState [09:32:08]SAM_PROTO_GetShiftState [09:32:08]wFMCommunicate request_size=4 [09:32:08]MH_SAM_APDU [09:32:08]CAPDU: 80 13 01 00 [09:32:08]Write to MH i2c: E2 08 00 81 37 80 13 01 00 00 00 00 00 35 [09:32:08]Write i2c OK [09:32:08]MH_I2C_Read... [09:32:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:32:08]Read from MH i2c: E2 [09:32:08]MH_I2C_Read... [09:32:08]Read from MH i2c: E2 0E 00 [09:32:08]MH_I2C_Read... [09:32:08]Read from MH i2c: E2 0E 00 81 37 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 94 [09:32:08]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [09:32:08]wFMCommunicate OK [09:32:08]SAM_PROTO_GetShiftState done [09:32:08]FM_GetShiftState done [09:32:08]req_shift_opened done [09:32:08]requested_item shift.open_date is exist - process it [09:32:08]req_shift_open_date [09:32:08]req_shift_open_date done [09:32:08]produce_requested_data done [09:32:08]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187621,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [09:32:08]process_action_free close_receipt [09:32:08]json_value_free [09:32:08]json_value_free done [09:32:08]process_json_proto returns [09:32:08]Send response to host [09:32:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187621,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [09:32:08]free response buf [09:32:08]execute_script done [09:32:08]execute_script returns [09:32:08]free content buf [09:32:08]Sock 8.Close socket [09:32:08]Sock 8.Thread stoped [09:32:09]accept exits with 9 [09:32:09]New connection [09:32:09]New thread 3067157860 created [09:32:09]Thread 3067014500 joined [09:32:09]Waiting for new connection... [09:32:09] Sock 9.Parse request [09:32:09]Sock 9.Check first char [09:32:09]Sock 9.First char is OK [09:32:09]request: POST /json_proto HTTP/1.0 [09:32:09]Method: POST [09:32:09]URL: /json_proto [09:32:09]Method is POST - this is cgi request [09:32:09]url: /json_proto [09:32:09]query_string will be loaded in cgi processing [09:32:09]execute_cgi json_proto POST (null) [09:32:09]execute_cgi path=json_proto method=POST [09:32:09]POST find Content-Length [09:32:09]Host: 172.17.42.131:8080 [09:32:09]Content-Length: 752 [09:32:09]Content-Type: application/json [09:32:09] [09:32:09]POST finish read [09:32:09]Found Content-Length = 752 [09:32:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209671", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 130.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30089124", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:32:09]execute_script... [09:32: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)209671", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 130.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30089124", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:32:09]POST & json_proto [09:32:09]process_json_proto [09:32:09]json parsed OK: [09:32:09]protocol is kg_v1.0 [09:32:09]action value=close_receipt [09:32:09]process_action close_receipt [09:32:09]cmd_close_receipt [09:32:09]MH_GetDate [09:32:09]Write to MH i2c: F0 00 00 82 37 A8 [09:32:09]Write i2c OK [09:32:09]MH_I2C_Read... [09:32:09]Read from MH i2c: F0 [09:32:09]MH_I2C_Read... [09:32:09]Read from MH i2c: F0 09 00 [09:32:09]MH_I2C_Read... [09:32:09]Read from MH i2c: F0 09 00 82 37 00 9C 1F 16 67 A0 18 CA 66 D1 [09:32:09]GetLastDocTimeStamp 1729503128 [09:32:09]current date 1729503132 [09:32:09]FM_GetShiftState [09:32:09]SAM_PROTO_GetShiftState [09:32:09]wFMCommunicate request_size=4 [09:32:09]MH_SAM_APDU [09:32:09]CAPDU: 80 13 01 00 [09:32:09]Write to MH i2c: E2 08 00 83 37 80 13 01 00 00 00 00 00 37 [09:32:09]Write i2c OK [09:32:09]MH_I2C_Read... [09:32:09]Read from MH i2c: E2 [09:32:09]MH_I2C_Read... [09:32:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:32:09]Read from MH i2c: E2 0E 00 [09:32:09]MH_I2C_Read... [09:32:09]Read from MH i2c: E2 0E 00 83 37 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 96 [09:32:09]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [09:32:09]wFMCommunicate OK [09:32:09]SAM_PROTO_GetShiftState done [09:32:09]FM_GetShiftState done [09:32:09]opened in 1729469754 [09:32:09]opened+sec_in_day 1729556154 [09:32:09]quantity*price = 0 [09:32:09]sum+1 = 1 [09:32:09]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 86 21.10.2024 09:32 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Талоны: ТК ГПНА Online 30089124 ФМ: 0000000000965340 ФД: 187622 ФПД: 144203706201873 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T093212&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187622&fm=144203706201873&tin=02508201610067®Number=0000000000100030&sum=0 [09:32:10]StoreToDocumentArchive [09:32:10]shift 460 fd 187622 [09:32:10]save to /storage/0460/doc_00187622 [09:32:10]save last doc name /storage/0460/doc_00187622 to /storage/kkm_last_doc_name [09:32:10]save OK [09:32:10]Clear old archive folders... [09:32:10]ProcessDocumentItem done err = 0, tmpTLVsize=248 [09:32:10]tlvbuf is 011B4A60 [09:32:10]SAM_PROTO_ClearQueue [09:32:10]wFMCommunicate request_size=4 [09:32:10]MH_SAM_APDU [09:32:10]CAPDU: 80 09 00 00 [09:32:10]Write to MH i2c: E2 08 00 90 37 80 09 00 00 00 00 00 00 39 [09:32:10]Write i2c OK [09:32:10]MH_I2C_Read... [09:32:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:32:10]Read from MH i2c: E2 [09:32:10]MH_I2C_Read... [09:32:10]Read from MH i2c: E2 03 00 [09:32:10]MH_I2C_Read... [09:32:10]Read from MH i2c: E2 03 00 90 37 00 90 00 3B [09:32:10]RAPDU: 90 00 [09:32:10]wFMCommunicate OK [09:32:10]SAM_PROTO_ClearQueue done [09:32:10]KKMCreateOFDPacket [09:32:10]OFDProtocolAddRootSTLVToBuf [09:32:10]FM_MakeSignedData [09:32:10]FM_MakeSignedData [09:32:10]SAM_PROTO_SignData [09:32:10]wFMCommunicate request_size=4 [09:32:10]MH_SAM_APDU [09:32:10]CAPDU: 80 0D 01 02 [09:32:10]Write to MH i2c: E2 08 00 91 37 80 0D 01 02 00 00 00 00 41 [09:32:10]Write i2c OK [09:32:10]MH_I2C_Read... [09:32:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:32:10]Read from MH i2c: E2 [09:32:10]MH_I2C_Read... [09:32:10]Read from MH i2c: E2 03 00 [09:32:10]MH_I2C_Read... [09:32:10]Read from MH i2c: E2 03 00 91 37 00 90 00 3C [09:32:10]RAPDU: 90 00 [09:32:10]wFMCommunicate OK [09:32:10]wFMCommunicate request_size=255 [09:32:10]MH_SAM_APDU [09:32:10]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D0 FB 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 00 00 00 F4 03 04 00 9C 1F 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 E6 DC 02 00 35 04 06 00 83 27 0A AE [09:32:10]Write to MH i2c: E2 02 01 92 37 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D0 FB 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 00 00 00 F4 03 04 00 9C 1F 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 E6 DC 02 00 35 04 06 00 83 27 0A AE 00 00 D1 [09:32:10]Write i2c OK [09:32:10]MH_I2C_Read... [09:32:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:32:11]Read from MH i2c: E2 [09:32:11]MH_I2C_Read... [09:32:11]Read from MH i2c: E2 03 00 [09:32:11]MH_I2C_Read... [09:32:11]Read from MH i2c: E2 03 00 92 37 00 90 00 3D [09:32:11]RAPDU: 90 00 [09:32:11]wFMCommunicate OK [09:32:11]wFMCommunicate request_size=7 [09:32:11]MH_SAM_APDU [09:32:11]CAPDU: 80 0D 02 02 02 F7 11 [09:32:11]Write to MH i2c: E2 0A 00 93 37 80 0D 02 02 02 00 F7 11 00 00 50 [09:32:11]Write i2c OK [09:32:11]MH_I2C_Read... [09:32:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:32:11]Read from MH i2c: E2 [09:32:11]MH_I2C_Read... [09:32:11]Read from MH i2c: E2 03 00 [09:32:11]MH_I2C_Read... [09:32:11]Read from MH i2c: E2 03 00 93 37 00 90 00 3E [09:32:11]RAPDU: 90 00 [09:32:11]wFMCommunicate OK [09:32:11]wFMCommunicate request_size=4 [09:32:11]MH_SAM_APDU [09:32:11]CAPDU: 80 0D 03 02 [09:32:11]Write to MH i2c: E2 08 00 94 37 80 0D 03 02 00 00 00 00 46 [09:32:11]Write i2c OK [09:32:11]MH_I2C_Read... [09:32:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:32:11]Read from MH i2c: E2 [09:32:11]MH_I2C_Read... [09:32:11]Read from MH i2c: E2 0B 00 [09:32:11]MH_I2C_Read... [09:32:11]Read from MH i2c: E2 0B 00 94 37 00 00 53 2A 81 86 0B 88 A7 90 00 05 [09:32:11]RAPDU: 00 53 2A 81 86 0B 88 A7 90 00 [09:32:11]wFMCommunicate OK [09:32:11]SAM_PROTO_SignData done [09:32:11]FM_MakeSignedData done [09:32:11]CreateOFDProtocolMessage [09:32:11]wFMCommunicate request_size=4 [09:32:11]MH_SAM_APDU [09:32:11]CAPDU: 80 11 00 00 [09:32:11]Write to MH i2c: E2 08 00 95 37 80 11 00 00 00 00 00 00 46 [09:32:11]Write i2c OK [09:32:11]MH_I2C_Read... [09:32:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:32:11]Read from MH i2c: E2 [09:32:11]MH_I2C_Read... [09:32:11]Read from MH i2c: E2 17 00 [09:32:11]MH_I2C_Read... [09:32:11]Read from MH i2c: E2 17 00 95 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 94 [09:32:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [09:32:11]wFMCommunicate OK [09:32:11]CreateOFDProtocolMessage done [09:32:11]OFDSenderStorePacket 187622 [09:32:11]StoreOFDPacket docnum=187622 [09:32:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 59 D3 04 01 05 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 35 FF 03 08 00 03 D0 FB 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 00 00 00 F4 03 04 00 9C 1F 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 E6 DC 02 00 35 04 06 00 83 27 0A AE F7 11 00 53 2A 81 86 0B 88 A7 [09:32:11]CheckFolder [09:32:11]dirname=/storage/ofd_packets [09:32:11]CheckFolder done [09:32:11]ProducePacketName [09:32:11]name=ofd_packets/00187622 [09:32:11]NVStorageSaveData ofd_packets/00187622 [09:32:11]File name is /storage/ofd_packets/00187622 [09:32:11]Write 298 bytes [09:32:11]NVStorageSaveData done [09:32:11]OFDSenderStorePacket done [09:32:11]KKMCreateOFDPacket done [09:32:11]NVStorageSaveData kkm_last_timestamp [09:32:11]File name is /storage/kkm_last_timestamp [09:32:11]Write 4 bytes [09:32:11]NVStorageSaveData done [09:32:11]ExternCall_PrintAddStr [09:32:11]wPrintStart [09:32:11]Write to MH i2c: 01 00 00 96 37 CD [09:32:11]Write i2c OK [09:32:11]MH_I2C_Read... [09:32:11]Read from MH i2c: 01 [09:32:11]MH_I2C_Read... [09:32:11]Read from MH i2c: 01 07 00 [09:32:11]MH_I2C_Read... [09:32:11]Read from MH i2c: 01 07 00 96 37 00 00 00 00 00 FF 0F E2 [09:32:11]RasterBufferAndPrint [09:32:11]line Счет N : (1)209671 [09:32:11]line ИНН: 02508201610067 [09:32:11]line Контрольно-Кассовый Чек [09:32:11]line ПРОДАЖА [09:32:11]line ТРК (МРК, ГНК) : 51 [09:32:11]line Товар: 2710194210 [09:32:11]line ДТ-К-5 [09:32:11]line 130.000 * 0.00 [09:32:11]line = 0.00 [09:32:11]line НДС 12% НСП 1% [09:32:11]line > о реализуемом товаре [09:32:11]line ИТОГО: 0.00 [09:32:11]line НСП 1% : 0.00 [09:32:11]line НДС 12% : 0.00 [09:32:11]line Наличными: 0.00 [09:32:11]line Безнал.: 0.00 [09:32:11]line Место: АЗС № 86 "Партнер Нефть" [09:32:11]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [09:32:11]line СНО: Общий режим [09:32:11]line Чек 86 21.10.2024 09:32 [09:32:11]line Смена: 460 ФФД: 1.0 [09:32:11]line ЗНМ: 0300000155 [09:32:11]line РНМ: 0000000000100030 [09:32:11]line Версия ККМ: 001 [09:32:11]line Талоны: ТК ГПНА Online [09:32:11]line 30089124 [09:32:11]line ФМ: 0000000000965340 [09:32:11]line ФД: 187622 [09:32:11]line ФПД: 144203706201873 [09:32:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T093212&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187622&fm=144203706201873&tin=02508201610067®Number=0000000000100030&sum=0 [09:32:11]OFD Sender: Processing packet 187622 [packets to send 1062, broken 1061] [09:32:11]ProducePacketName [09:32:11]name=ofd_packets/00187622 [09:32:11]OFD Sender: To server: pG, [09:32:11]CommunicateWithHost lk.salyk.kg:30040 [09:32:11]ConnectInit lk.salyk.kg [09:32:11]written 0, free lines is 4095 [09:32:12]Connected sock=11 [09:32:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 59 D3 04 01 05 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 35 FF 03 08 00 03 D0 FB 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 00 00 00 F4 03 04 00 9C 1F 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 E6 DC 02 00 35 04 06 00 83 27 0A AE F7 11 00 53 2A 81 86 0B 88 A7 [09:32:12]Write to MH i2c: 01 00 00 C0 37 F7 [09:32:12]Write i2c OK [09:32:12]MH_I2C_Read... [09:32:12]Read from MH i2c: 01 [09:32:12]MH_I2C_Read... [09:32:12]Read from MH i2c: 01 07 00 [09:32:12]MH_I2C_Read... [09:32:12]Read from MH i2c: 01 07 00 C0 37 00 00 00 00 00 9B 0C A5 [09:32:12]RasterBufferAndPrint [09:32:12]line [09:32:12]line [09:32:12]line [09:32:12]line [09:32:12]line [09:32:12]written 0, free lines is 3231 [09:32:12]MH_Cut [09:32:12]Write to MH i2c: D1 01 00 C7 37 01 D0 [09:32:12]Write i2c OK [09:32:12]MH_I2C_Read... [09:32:12]Read from MH i2c: D1 [09:32:12]MH_I2C_Read... [09:32:12]Read from MH i2c: D1 01 00 [09:32:12]MH_I2C_Read... [09:32:12]Read from MH i2c: D1 01 00 C7 37 00 CF [09:32:12]Write to MH i2c: 01 00 00 C8 37 FF [09:32:12]Write i2c OK [09:32:12]MH_I2C_Read... [09:32:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 82 C4 47 00 1F FD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 E6 DC 02 00 F4 03 04 00 8D C9 15 67 B6 04 01 00 00 B1 1F 11 84 A4 2C 6C B0 [09:32:12]CommunicateWithHost err = 0 [09:32:12]CheckOFDResponse [09:32:12]1017 (14) - 77093643461234 [09:32:12]1041 (16) - 0000000000965340 [09:32:12]1040 (4) - 187622 [09:32:12]1012 (4) - 21.10.2024 03:25 [09:32:12]1206 (1) - 0 [09:32:12]OFD Sender: Remove packet 187622 [09:32:12]ProducePacketName [09:32:12]name=ofd_packets/00187622 [09:32:12]NVStorageDeleteData [09:32:12]OFD Sender: No OFD packet to send [09:32:13]*** Cut start [09:32:13]*** Partial cut [09:32:13]*** CUTSNS_PIN = 1 [09:32:13]*** CUTSNS_PIN = 0 [09:32:13]*** Brake cut motor [09:32:13]Read from MH i2c: 01 [09:32:13]MH_I2C_Read... [09:32:13]*** Stop cut motor [09:32:13]*** Cut end [09:32:13]Read from MH i2c: 01 07 00 [09:32:13]MH_I2C_Read... [09:32:13]Read from MH i2c: 01 07 00 C8 37 00 00 00 00 00 FF 0F 14 [09:32:13]process_action close_receipt done [09:32:13]requested_data is exist [09:32:13]produce_requested_data [09:32:13]requested_item fm.sn is exist - process it [09:32:13]wFMCommunicate request_size=4 [09:32:13]MH_SAM_APDU [09:32:13]CAPDU: 80 11 00 00 [09:32:13]Write to MH i2c: E2 08 00 C9 37 80 11 00 00 00 00 00 00 7A [09:32:13]Write i2c OK [09:32:13]MH_I2C_Read... [09:32:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:32:13]Read from MH i2c: E2 [09:32:13]MH_I2C_Read... [09:32:13]Read from MH i2c: E2 17 00 [09:32:13]MH_I2C_Read... [09:32:13]Read from MH i2c: E2 17 00 C9 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 C8 [09:32:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [09:32:13]wFMCommunicate OK [09:32:13]requested_item fd.num is exist - process it [09:32:13]SAM_PROTO_GetFieldsCounters [09:32:13]wFMCommunicate request_size=4 [09:32:13]MH_SAM_APDU [09:32:13]CAPDU: 80 13 00 00 [09:32:13]Write to MH i2c: E2 08 00 CA 37 80 13 00 00 00 00 00 00 7D [09:32:14]Write i2c OK [09:32:14]MH_I2C_Read... [09:32:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:32:14]Read from MH i2c: E2 [09:32:14]MH_I2C_Read... [09:32:14]Read from MH i2c: E2 62 00 [09:32:14]MH_I2C_Read... [09:32:14]Read from MH i2c: E2 62 00 CA 37 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 E6 DC 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 56 00 00 00 5E 04 04 00 56 00 00 00 57 04 04 00 57 00 00 00 19 04 04 00 00 00 00 00 90 00 17 [09:32:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 E6 DC 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 56 00 00 00 5E 04 04 00 56 00 00 00 57 04 04 00 57 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:32:14]wFMCommunicate OK [09:32:14]SAM_PROTO_GetFieldsCounters done [09:32:14]requested_item shift.num is exist - process it [09:32:14]requested_item shift.opened is exist - process it [09:32:14]req_shift_opened [09:32:14]FM_GetShiftState [09:32:14]SAM_PROTO_GetShiftState [09:32:14]wFMCommunicate request_size=4 [09:32:14]MH_SAM_APDU [09:32:14]CAPDU: 80 13 01 00 [09:32:14]Write to MH i2c: E2 08 00 CB 37 80 13 01 00 00 00 00 00 7F [09:32:14]Write i2c OK [09:32:14]MH_I2C_Read... [09:32:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:32:14]Read from MH i2c: E2 [09:32:14]MH_I2C_Read... [09:32:14]Read from MH i2c: E2 0E 00 [09:32:14]MH_I2C_Read... [09:32:14]Read from MH i2c: E2 0E 00 CB 37 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 DE [09:32:14]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [09:32:14]wFMCommunicate OK [09:32:14]SAM_PROTO_GetShiftState done [09:32:14]FM_GetShiftState done [09:32:14]req_shift_opened done [09:32:14]requested_item shift.open_date is exist - process it [09:32:14]req_shift_open_date [09:32:14]req_shift_open_date done [09:32:14]produce_requested_data done [09:32:14]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187622,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [09:32:14]process_action_free close_receipt [09:32:14]json_value_free [09:32:14]json_value_free done [09:32:14]process_json_proto returns [09:32:14]Send response to host [09:32:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187622,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [09:32:14]free response buf [09:32:14]execute_script done [09:32:14]execute_script returns [09:32:14]free content buf [09:32:14]Sock 9.Close socket [09:32:14]Sock 9.Thread stoped [09:32:17]OFD Sender: No OFD packet to send [09:32:22]OFD Sender: No OFD packet to send [09:32:28]OFD Sender: No OFD packet to send [09:32:33]OFD Sender: No OFD packet to send [09:32:38]OFD Sender: No OFD packet to send [09:32:43]OFD Sender: No OFD packet to send [09:32:47]accept exits with 8 [09:32:47]New connection [09:32:47]New thread 3067014500 created [09:32:47]Thread 3067157860 joined [09:32:47]Waiting for new connection... [09:32:47] Sock 8.Parse request [09:32:47]Sock 8.Check first char [09:32:47]Sock 8.First char is OK [09:32:47]request: POST /json_proto HTTP/1.0 [09:32:47]Method: POST [09:32:47]URL: /json_proto [09:32:47]Method is POST - this is cgi request [09:32:47]url: /json_proto [09:32:47]query_string will be loaded in cgi processing [09:32:47]execute_cgi json_proto POST (null) [09:32:47]execute_cgi path=json_proto method=POST [09:32:47]POST find Content-Length [09:32:47]Host: 172.17.42.131:8080 [09:32:47]Content-Length: 677 [09:32:47]Content-Type: application/json [09:32:47] [09:32:47]POST finish read [09:32:47]Found Content-Length = 677 [09:32:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209675", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "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:32:47]execute_script... [09:32:47]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209675", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "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:32:47]POST & json_proto [09:32:47]process_json_proto [09:32:47]json parsed OK: [09:32:47]protocol is kg_v1.0 [09:32:47]action value=close_receipt [09:32:47]process_action close_receipt [09:32:47]cmd_close_receipt [09:32:47]MH_GetDate [09:32:47]Write to MH i2c: F0 00 00 CC 37 F2 [09:32:47]Write i2c OK [09:32:47]MH_I2C_Read... [09:32:47]Read from MH i2c: F0 [09:32:47]MH_I2C_Read... [09:32:47]Read from MH i2c: F0 09 00 [09:32:47]MH_I2C_Read... [09:32:47]Read from MH i2c: F0 09 00 CC 37 00 C2 1F 16 67 A0 18 CA 66 41 [09:32:47]GetLastDocTimeStamp 1729503132 [09:32:47]current date 1729503170 [09:32:47]FM_GetShiftState [09:32:47]SAM_PROTO_GetShiftState [09:32:47]wFMCommunicate request_size=4 [09:32:47]MH_SAM_APDU [09:32:47]CAPDU: 80 13 01 00 [09:32:47]Write to MH i2c: E2 08 00 CD 37 80 13 01 00 00 00 00 00 81 [09:32:47]Write i2c OK [09:32:47]MH_I2C_Read... [09:32:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:32:47]Read from MH i2c: E2 [09:32:47]MH_I2C_Read... [09:32:47]Read from MH i2c: E2 0E 00 [09:32:47]MH_I2C_Read... [09:32:47]Read from MH i2c: E2 0E 00 CD 37 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 E0 [09:32:47]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [09:32:47]wFMCommunicate OK [09:32:47]SAM_PROTO_GetShiftState done [09:32:47]FM_GetShiftState done [09:32:47]opened in 1729469754 [09:32:47]opened+sec_in_day 1729556154 [09:32:47]quantity*price = 50041 [09:32:47]sum+1 = 50042 [09:32:47]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 87 21.10.2024 09:32 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 187623 ФПД: 60449585667322 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T093250&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187623&fm=60449585667322&tin=02508201610067®Number=0000000000100030&sum=50000 [09:32:48]StoreToDocumentArchive [09:32:48]shift 460 fd 187623 [09:32:48]save to /storage/0460/doc_00187623 [09:32:48]save last doc name /storage/0460/doc_00187623 to /storage/kkm_last_doc_name [09:32:48]save OK [09:32:48]Clear old archive folders... [09:32:48]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:32:48]tlvbuf is B6F8A6F0 [09:32:48]SAM_PROTO_ClearQueue [09:32:48]wFMCommunicate request_size=4 [09:32:48]MH_SAM_APDU [09:32:48]CAPDU: 80 09 00 00 [09:32:48]Write to MH i2c: E2 08 00 DA 37 80 09 00 00 00 00 00 00 83 [09:32:48]Write i2c OK [09:32:48]MH_I2C_Read... [09:32:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:32:48]Read from MH i2c: E2 [09:32:48]MH_I2C_Read... [09:32:48]Read from MH i2c: E2 03 00 [09:32:48]MH_I2C_Read... [09:32:48]Read from MH i2c: E2 03 00 DA 37 00 90 00 85 [09:32:48]RAPDU: 90 00 [09:32:48]wFMCommunicate OK [09:32:48]SAM_PROTO_ClearQueue done [09:32:48]KKMCreateOFDPacket [09:32:48]OFDProtocolAddRootSTLVToBuf [09:32:48]FM_MakeSignedData [09:32:48]FM_MakeSignedData [09:32:48]SAM_PROTO_SignData [09:32:48]wFMCommunicate request_size=4 [09:32:48]MH_SAM_APDU [09:32:48]CAPDU: 80 0D 01 02 [09:32:48]Write to MH i2c: E2 08 00 DB 37 80 0D 01 02 00 00 00 00 8B [09:32:48]Write i2c OK [09:32:48]MH_I2C_Read... [09:32:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:32:48]Read from MH i2c: E2 [09:32:48]MH_I2C_Read... [09:32:48]Read from MH i2c: E2 03 00 [09:32:48]MH_I2C_Read... [09:32:48]Read from MH i2c: E2 03 00 DB 37 00 90 00 86 [09:32:48]RAPDU: 90 00 [09:32:48]wFMCommunicate OK [09:32:48]wFMCommunicate request_size=255 [09:32:48]MH_SAM_APDU [09:32:48]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 C2 1F 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 E7 DC 02 00 35 04 06 00 36 [09:32:48]Write to MH i2c: E2 02 01 DC 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 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 C2 1F 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 E7 DC 02 00 35 04 06 00 36 00 00 7B [09:32:48]Write i2c OK [09:32:48]MH_I2C_Read... [09:32:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:32:48]Read from MH i2c: E2 [09:32:48]MH_I2C_Read... [09:32:48]Read from MH i2c: E2 03 00 [09:32:48]MH_I2C_Read... [09:32:48]Read from MH i2c: E2 03 00 DC 37 00 90 00 87 [09:32:48]RAPDU: 90 00 [09:32:48]wFMCommunicate OK [09:32:48]wFMCommunicate request_size=10 [09:32:48]MH_SAM_APDU [09:32:48]CAPDU: 80 0D 02 02 05 FA 84 14 9C FA [09:32:48]Write to MH i2c: E2 0D 00 DD 37 80 0D 02 02 05 00 FA 84 14 9C FA 00 00 C0 [09:32:48]Write i2c OK [09:32:48]MH_I2C_Read... [09:32:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:32:48]Read from MH i2c: E2 [09:32:48]MH_I2C_Read... [09:32:48]Read from MH i2c: E2 03 00 [09:32:48]MH_I2C_Read... [09:32:48]Read from MH i2c: E2 03 00 DD 37 00 90 00 88 [09:32:48]RAPDU: 90 00 [09:32:48]wFMCommunicate OK [09:32:48]wFMCommunicate request_size=4 [09:32:48]MH_SAM_APDU [09:32:48]CAPDU: 80 0D 03 02 [09:32:48]Write to MH i2c: E2 08 00 DE 37 80 0D 03 02 00 00 00 00 90 [09:32:48]Write i2c OK [09:32:48]MH_I2C_Read... [09:32:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:32:48]Read from MH i2c: E2 [09:32:48]MH_I2C_Read... [09:32:48]Read from MH i2c: E2 0B 00 [09:32:48]MH_I2C_Read... [09:32:48]Read from MH i2c: E2 0B 00 DE 37 00 62 79 36 7A E3 7D C7 4F 90 00 92 [09:32:48]RAPDU: 62 79 36 7A E3 7D C7 4F 90 00 [09:32:48]wFMCommunicate OK [09:32:48]SAM_PROTO_SignData done [09:32:48]FM_MakeSignedData done [09:32:48]CreateOFDProtocolMessage [09:32:48]wFMCommunicate request_size=4 [09:32:48]MH_SAM_APDU [09:32:48]CAPDU: 80 11 00 00 [09:32:48]Write to MH i2c: E2 08 00 DF 37 80 11 00 00 00 00 00 00 90 [09:32:48]Write i2c OK [09:32:48]MH_I2C_Read... [09:32:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:32:48]Read from MH i2c: E2 [09:32:48]MH_I2C_Read... [09:32:48]Read from MH i2c: E2 17 00 [09:32:48]MH_I2C_Read... [09:32:48]Read from MH i2c: E2 17 00 DF 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 DE [09:32:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [09:32:48]wFMCommunicate OK [09:32:48]CreateOFDProtocolMessage done [09:32:48]OFDSenderStorePacket 187623 [09:32:48]StoreOFDPacket docnum=187623 [09:32:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 98 6F 07 01 20 03 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 C2 1F 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 E7 DC 02 00 35 04 06 00 36 FA 84 14 9C FA 62 79 36 7A E3 7D C7 4F [09:32:48]CheckFolder [09:32:48]dirname=/storage/ofd_packets [09:32:48]CheckFolder done [09:32:48]ProducePacketName [09:32:48]name=ofd_packets/00187623 [09:32:48]NVStorageSaveData ofd_packets/00187623 [09:32:48]File name is /storage/ofd_packets/00187623 [09:32:48]Write 301 bytes [09:32:48]NVStorageSaveData done [09:32:48]OFDSenderStorePacket done [09:32:48]KKMCreateOFDPacket done [09:32:48]NVStorageSaveData kkm_last_timestamp [09:32:48]File name is /storage/kkm_last_timestamp [09:32:48]Write 4 bytes [09:32:48]NVStorageSaveData done [09:32:48]ExternCall_PrintAddStr [09:32:48]wPrintStart [09:32:48]Write to MH i2c: 01 00 00 E0 37 17 [09:32:48]Write i2c OK [09:32:48]MH_I2C_Read... [09:32:48]Read from MH i2c: 01 [09:32:48]MH_I2C_Read... [09:32:48]Read from MH i2c: 01 07 00 [09:32:48]MH_I2C_Read... [09:32:48]Read from MH i2c: 01 07 00 E0 37 00 00 00 00 00 FF 0F 2C [09:32:48]RasterBufferAndPrint [09:32:48]line Счет N : (1)209675 [09:32:48]line ИНН: 02508201610067 [09:32:48]line Контрольно-Кассовый Чек [09:32:48]line ПРОДАЖА [09:32:48]line ТРК (МРК, ГНК) : 32 [09:32:48]line Товар: 2710124130 [09:32:48]line Аи-92-К-3 [09:32:48]line 7.480 * 66.90 [09:32:48]line = 500.41 [09:32:48]line НДС 12% НСП 1% [09:32:48]line > о реализуемом товаре [09:32:48]line ОКРУГЛЕНИЕ: -0.41 [09:32:48]line ИТОГО: 500.00 [09:32:48]line Внесено: 500.00 [09:32:48]line СДАЧА: 0.00 [09:32:48]line НСП 1% : 4.43 [09:32:48]line НДС 12% : 53.14 [09:32:48]line Наличными: 500.00 [09:32:48]line Безнал.: 0.00 [09:32:48]line Место: АЗС № 86 "Партнер Нефть" [09:32:48]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [09:32:48]line СНО: Общий режим [09:32:48]line Чек 87 21.10.2024 09:32 [09:32:48]line Смена: 460 ФФД: 1.0 [09:32:48]line ЗНМ: 0300000155 [09:32:48]line РНМ: 0000000000100030 [09:32:48]line Версия ККМ: 001 [09:32:48]line ФМ: 0000000000965340 [09:32:48]line ФД: 187623 [09:32:48]line ФПД: 60449585667322 [09:32:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T093250&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187623&fm=60449585667322&tin=02508201610067®Number=0000000000100030&sum=50000 [09:32:48]written 0, free lines is 4095 [09:32:48]OFD Sender: Processing packet 187623 [packets to send 1062, broken 1061] [09:32:48]ProducePacketName [09:32:48]name=ofd_packets/00187623 [09:32:48]OFD Sender: To server: pG, [09:32:48]CommunicateWithHost lk.salyk.kg:30040 [09:32:48]ConnectInit lk.salyk.kg [09:32:49]Connected sock=10 [09:32:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 98 6F 07 01 20 03 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 C2 1F 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 E7 DC 02 00 35 04 06 00 36 FA 84 14 9C FA 62 79 36 7A E3 7D C7 4F [09:32:49]Write to MH i2c: 01 00 00 0B 38 43 [09:32:49]Write i2c OK [09:32:49]MH_I2C_Read... [09:32:49]Read from MH i2c: 01 [09:32:49]MH_I2C_Read... [09:32:49]Read from MH i2c: 01 07 00 [09:32:49]MH_I2C_Read... [09:32:49]Read from MH i2c: 01 07 00 0B 38 00 00 00 00 00 73 0C C9 [09:32:49]RasterBufferAndPrint [09:32:49]line [09:32:49]line [09:32:49]line [09:32:49]line [09:32:49]line [09:32:49]written 0, free lines is 3189 [09:32:49]MH_Cut [09:32:49]Write to MH i2c: D1 01 00 12 38 01 1C [09:32:49]Write i2c OK [09:32:49]MH_I2C_Read... [09:32:49]Read from MH i2c: D1 [09:32:49]MH_I2C_Read... [09:32:49]Read from MH i2c: D1 01 00 [09:32:49]MH_I2C_Read... [09:32:49]Read from MH i2c: D1 01 00 12 38 00 1B [09:32:49]Write to MH i2c: 01 00 00 13 38 4B [09:32:49]Write i2c OK [09:32:49]MH_I2C_Read... [09:32:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 EC 3F 47 00 AB F6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 E7 DC 02 00 F4 03 04 00 B2 C9 15 67 B6 04 01 00 00 FF 89 13 9F 47 38 2E 1F [09:32:49]CommunicateWithHost err = 0 [09:32:49]CheckOFDResponse [09:32:49]1017 (14) - 77093643461234 [09:32:49]1041 (16) - 0000000000965340 [09:32:49]1040 (4) - 187623 [09:32:49]1012 (4) - 21.10.2024 03:25 [09:32:49]1206 (1) - 0 [09:32:49]OFD Sender: Remove packet 187623 [09:32:49]ProducePacketName [09:32:49]name=ofd_packets/00187623 [09:32:49]NVStorageDeleteData [09:32:49]OFD Sender: No OFD packet to send [09:32:50]*** Cut start [09:32:50]*** Partial cut [09:32:50]*** CUTSNS_PIN = 1 [09:32:50]*** CUTSNS_PIN = 0 [09:32:50]*** Brake cut motor [09:32:51]Read from MH i2c: 01 [09:32:51]MH_I2C_Read... [09:32:51]*** Stop cut motor [09:32:51]*** Cut end [09:32:51]Read from MH i2c: 01 07 00 [09:32:51]MH_I2C_Read... [09:32:51]Read from MH i2c: 01 07 00 13 38 00 00 00 00 00 FF 0F 60 [09:32:51]process_action close_receipt done [09:32:51]requested_data is exist [09:32:51]produce_requested_data [09:32:51]requested_item fm.sn is exist - process it [09:32:51]wFMCommunicate request_size=4 [09:32:51]MH_SAM_APDU [09:32:51]CAPDU: 80 11 00 00 [09:32:51]Write to MH i2c: E2 08 00 14 38 80 11 00 00 00 00 00 00 C6 [09:32:51]Write i2c OK [09:32:51]MH_I2C_Read... [09:32:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:32:51]Read from MH i2c: E2 [09:32:51]MH_I2C_Read... [09:32:51]Read from MH i2c: E2 17 00 [09:32:51]MH_I2C_Read... [09:32:51]Read from MH i2c: E2 17 00 14 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 14 [09:32:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [09:32:51]wFMCommunicate OK [09:32:51]requested_item fd.num is exist - process it [09:32:51]SAM_PROTO_GetFieldsCounters [09:32:51]wFMCommunicate request_size=4 [09:32:51]MH_SAM_APDU [09:32:51]CAPDU: 80 13 00 00 [09:32:51]Write to MH i2c: E2 08 00 15 38 80 13 00 00 00 00 00 00 C9 [09:32:51]Write i2c OK [09:32:51]MH_I2C_Read... [09:32:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:32:51]Read from MH i2c: E2 [09:32:51]MH_I2C_Read... [09:32:51]Read from MH i2c: E2 62 00 [09:32:51]MH_I2C_Read... [09:32:51]Read from MH i2c: E2 62 00 15 38 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 E7 DC 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 57 00 00 00 5E 04 04 00 57 00 00 00 57 04 04 00 58 00 00 00 19 04 04 00 00 00 00 00 90 00 67 [09:32:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 E7 DC 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 57 00 00 00 5E 04 04 00 57 00 00 00 57 04 04 00 58 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:32:51]wFMCommunicate OK [09:32:51]SAM_PROTO_GetFieldsCounters done [09:32:51]requested_item shift.num is exist - process it [09:32:51]requested_item shift.opened is exist - process it [09:32:51]req_shift_opened [09:32:51]FM_GetShiftState [09:32:51]SAM_PROTO_GetShiftState [09:32:51]wFMCommunicate request_size=4 [09:32:51]MH_SAM_APDU [09:32:51]CAPDU: 80 13 01 00 [09:32:51]Write to MH i2c: E2 08 00 16 38 80 13 01 00 00 00 00 00 CB [09:32:51]Write i2c OK [09:32:51]MH_I2C_Read... [09:32:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:32:51]Read from MH i2c: E2 [09:32:51]MH_I2C_Read... [09:32:51]Read from MH i2c: E2 0E 00 [09:32:51]MH_I2C_Read... [09:32:51]Read from MH i2c: E2 0E 00 16 38 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 2A [09:32:51]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [09:32:51]wFMCommunicate OK [09:32:51]SAM_PROTO_GetShiftState done [09:32:51]FM_GetShiftState done [09:32:51]req_shift_opened done [09:32:51]requested_item shift.open_date is exist - process it [09:32:51]req_shift_open_date [09:32:51]req_shift_open_date done [09:32:51]produce_requested_data done [09:32:51]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187623,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [09:32:51]process_action_free close_receipt [09:32:51]json_value_free [09:32:51]json_value_free done [09:32:51]process_json_proto returns [09:32:51]Send response to host [09:32:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187623,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [09:32:51]free response buf [09:32:51]execute_script done [09:32:51]execute_script returns [09:32:51]free content buf [09:32:51]Sock 8.Close socket [09:32:51]Sock 8.Thread stoped [09:32:54]OFD Sender: No OFD packet to send [09:32:59]OFD Sender: No OFD packet to send [09:33:04]OFD Sender: No OFD packet to send [09:33:09]OFD Sender: No OFD packet to send [09:33:15]OFD Sender: No OFD packet to send [09:33:20]OFD Sender: No OFD packet to send [09:33:25]OFD Sender: No OFD packet to send [09:33:30]OFD Sender: No OFD packet to send [09:33:35]OFD Sender: No OFD packet to send [09:33:40]OFD Sender: No OFD packet to send [09:33:45]OFD Sender: No OFD packet to send [09:33:50]OFD Sender: No OFD packet to send [09:33:55]OFD Sender: No OFD packet to send [09:34:00]OFD Sender: No OFD packet to send [09:34:05]OFD Sender: No OFD packet to send [09:34:10]OFD Sender: No OFD packet to send [09:34:15]OFD Sender: No OFD packet to send [09:34:20]OFD Sender: No OFD packet to send [09:34:25]OFD Sender: No OFD packet to send [09:34:30]OFD Sender: No OFD packet to send [09:34:35]OFD Sender: No OFD packet to send [09:34:40]OFD Sender: No OFD packet to send [09:34:45]OFD Sender: No OFD packet to send [09:34:50]OFD Sender: No OFD packet to send [09:34:55]OFD Sender: No OFD packet to send [09:35:00]OFD Sender: No OFD packet to send [09:35:05]OFD Sender: No OFD packet to send [09:35:10]OFD Sender: No OFD packet to send [09:35:15]OFD Sender: No OFD packet to send [09:35:20]OFD Sender: No OFD packet to send [09:35:25]OFD Sender: No OFD packet to send [09:35:30]OFD Sender: No OFD packet to send [09:35:35]OFD Sender: No OFD packet to send [09:35:40]OFD Sender: No OFD packet to send [09:35:42]accept exits with 9 [09:35:42]New connection [09:35:42]New thread 3067157860 created [09:35:42]Thread 3067014500 joined [09:35:42]Waiting for new connection... [09:35:42] Sock 9.Parse request [09:35:42]Sock 9.Check first char [09:35:42]Sock 9.First char is OK [09:35:42]request: POST /json_proto HTTP/1.0 [09:35:42]Method: POST [09:35:42]URL: /json_proto [09:35:42]Method is POST - this is cgi request [09:35:42]url: /json_proto [09:35:42]query_string will be loaded in cgi processing [09:35:42]execute_cgi json_proto POST (null) [09:35:42]execute_cgi path=json_proto method=POST [09:35:42]POST find Content-Length [09:35:42]Host: 172.17.42.131:8080 [09:35:42]Content-Length: 677 [09:35:42]Content-Type: application/json [09:35:42] [09:35:42]POST finish read [09:35:42]Found Content-Length = 677 [09:35:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209677", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "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:35:42]execute_script... [09:35: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)209677", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "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:35:42]POST & json_proto [09:35:42]process_json_proto [09:35:42]json parsed OK: [09:35:42]protocol is kg_v1.0 [09:35:42]action value=close_receipt [09:35:42]process_action close_receipt [09:35:42]cmd_close_receipt [09:35:42]MH_GetDate [09:35:42]Write to MH i2c: F0 00 00 17 38 3E [09:35:42]Write i2c OK [09:35:42]MH_I2C_Read... [09:35:42]Read from MH i2c: F0 [09:35:42]MH_I2C_Read... [09:35:42]Read from MH i2c: F0 09 00 [09:35:42]MH_I2C_Read... [09:35:42]Read from MH i2c: F0 09 00 17 38 00 72 20 16 67 A0 18 CA 66 3E [09:35:42]GetLastDocTimeStamp 1729503170 [09:35:42]current date 1729503346 [09:35:42]FM_GetShiftState [09:35:42]SAM_PROTO_GetShiftState [09:35:42]wFMCommunicate request_size=4 [09:35:42]MH_SAM_APDU [09:35:42]CAPDU: 80 13 01 00 [09:35:42]Write to MH i2c: E2 08 00 18 38 80 13 01 00 00 00 00 00 CD [09:35:42]Write i2c OK [09:35:42]MH_I2C_Read... [09:35:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:35:42]Read from MH i2c: E2 [09:35:42]MH_I2C_Read... [09:35:42]Read from MH i2c: E2 0E 00 [09:35:42]MH_I2C_Read... [09:35:42]Read from MH i2c: E2 0E 00 18 38 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 2C [09:35:42]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [09:35:42]wFMCommunicate OK [09:35:42]SAM_PROTO_GetShiftState done [09:35:42]FM_GetShiftState done [09:35:42]opened in 1729469754 [09:35:42]opened+sec_in_day 1729556154 [09:35:42]quantity*price = 50041 [09:35:42]sum+1 = 50042 [09:35:42]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 88 21.10.2024 09:35 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 187624 ФПД: 3745911521704 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T093546&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187624&fm=3745911521704&tin=02508201610067®Number=0000000000100030&sum=50000 [09:35:43]StoreToDocumentArchive [09:35:43]shift 460 fd 187624 [09:35:43]save to /storage/0460/doc_00187624 [09:35:43]save last doc name /storage/0460/doc_00187624 to /storage/kkm_last_doc_name [09:35:43]save OK [09:35:43]Clear old archive folders... [09:35:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:35:43]tlvbuf is 010C7B80 [09:35:43]SAM_PROTO_ClearQueue [09:35:43]wFMCommunicate request_size=4 [09:35:43]MH_SAM_APDU [09:35:43]CAPDU: 80 09 00 00 [09:35:43]Write to MH i2c: E2 08 00 25 38 80 09 00 00 00 00 00 00 CF [09:35:43]Write i2c OK [09:35:43]MH_I2C_Read... [09:35:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:35:43]Read from MH i2c: E2 [09:35:43]MH_I2C_Read... [09:35:43]Read from MH i2c: E2 03 00 [09:35:43]MH_I2C_Read... [09:35:43]Read from MH i2c: E2 03 00 25 38 00 90 00 D1 [09:35:43]RAPDU: 90 00 [09:35:43]wFMCommunicate OK [09:35:43]SAM_PROTO_ClearQueue done [09:35:43]KKMCreateOFDPacket [09:35:43]OFDProtocolAddRootSTLVToBuf [09:35:43]FM_MakeSignedData [09:35:43]FM_MakeSignedData [09:35:43]SAM_PROTO_SignData [09:35:43]wFMCommunicate request_size=4 [09:35:43]MH_SAM_APDU [09:35:43]CAPDU: 80 0D 01 02 [09:35:43]Write to MH i2c: E2 08 00 26 38 80 0D 01 02 00 00 00 00 D7 [09:35:43]Write i2c OK [09:35:43]MH_I2C_Read... [09:35:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:35:43]Read from MH i2c: E2 [09:35:43]MH_I2C_Read... [09:35:43]Read from MH i2c: E2 03 00 [09:35:43]MH_I2C_Read... [09:35:43]Read from MH i2c: E2 03 00 26 38 00 90 00 D2 [09:35:43]RAPDU: 90 00 [09:35:43]wFMCommunicate OK [09:35:43]wFMCommunicate request_size=255 [09:35:43]MH_SAM_APDU [09:35: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 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 72 20 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 E8 DC 02 00 35 04 06 00 03 [09:35:43]Write to MH i2c: E2 02 01 27 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 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 72 20 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 E8 DC 02 00 35 04 06 00 03 00 00 47 [09:35:43]Write i2c OK [09:35:43]MH_I2C_Read... [09:35:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:35:44]Read from MH i2c: E2 [09:35:44]MH_I2C_Read... [09:35:44]Read from MH i2c: E2 03 00 [09:35:44]MH_I2C_Read... [09:35:44]Read from MH i2c: E2 03 00 27 38 00 90 00 D3 [09:35:44]RAPDU: 90 00 [09:35:44]wFMCommunicate OK [09:35:44]wFMCommunicate request_size=10 [09:35:44]MH_SAM_APDU [09:35:44]CAPDU: 80 0D 02 02 05 68 29 B9 C1 A8 [09:35:44]Write to MH i2c: E2 0D 00 28 38 80 0D 02 02 05 00 68 29 B9 C1 A8 00 00 97 [09:35:44]Write i2c OK [09:35:44]MH_I2C_Read... [09:35:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:35:44]Read from MH i2c: E2 [09:35:44]MH_I2C_Read... [09:35:44]Read from MH i2c: E2 03 00 [09:35:44]MH_I2C_Read... [09:35:44]Read from MH i2c: E2 03 00 28 38 00 90 00 D4 [09:35:44]RAPDU: 90 00 [09:35:44]wFMCommunicate OK [09:35:44]wFMCommunicate request_size=4 [09:35:44]MH_SAM_APDU [09:35:44]CAPDU: 80 0D 03 02 [09:35:44]Write to MH i2c: E2 08 00 29 38 80 0D 03 02 00 00 00 00 DC [09:35:44]Write i2c OK [09:35:44]MH_I2C_Read... [09:35:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:35:44]Read from MH i2c: E2 [09:35:44]MH_I2C_Read... [09:35:44]Read from MH i2c: E2 0B 00 [09:35:44]MH_I2C_Read... [09:35:44]Read from MH i2c: E2 0B 00 29 38 00 0E 0A CB 46 F6 3E 43 84 90 00 01 [09:35:44]RAPDU: 0E 0A CB 46 F6 3E 43 84 90 00 [09:35:44]wFMCommunicate OK [09:35:44]SAM_PROTO_SignData done [09:35:44]FM_MakeSignedData done [09:35:44]CreateOFDProtocolMessage [09:35:44]wFMCommunicate request_size=4 [09:35:44]MH_SAM_APDU [09:35:44]CAPDU: 80 11 00 00 [09:35:44]Write to MH i2c: E2 08 00 2A 38 80 11 00 00 00 00 00 00 DC [09:35:44]Write i2c OK [09:35:44]MH_I2C_Read... [09:35:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:35:44]Read from MH i2c: E2 [09:35:44]MH_I2C_Read... [09:35:44]Read from MH i2c: E2 17 00 [09:35:44]MH_I2C_Read... [09:35:44]Read from MH i2c: E2 17 00 2A 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 2A [09:35:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [09:35:44]wFMCommunicate OK [09:35:44]CreateOFDProtocolMessage done [09:35:44]OFDSenderStorePacket 187624 [09:35:44]StoreOFDPacket docnum=187624 [09:35:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 E7 10 07 01 E2 E1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 72 20 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 E8 DC 02 00 35 04 06 00 03 68 29 B9 C1 A8 0E 0A CB 46 F6 3E 43 84 [09:35:44]CheckFolder [09:35:44]dirname=/storage/ofd_packets [09:35:44]CheckFolder done [09:35:44]ProducePacketName [09:35:44]name=ofd_packets/00187624 [09:35:44]NVStorageSaveData ofd_packets/00187624 [09:35:44]File name is /storage/ofd_packets/00187624 [09:35:44]Write 301 bytes [09:35:44]NVStorageSaveData done [09:35:44]OFDSenderStorePacket done [09:35:44]KKMCreateOFDPacket done [09:35:44]NVStorageSaveData kkm_last_timestamp [09:35:44]File name is /storage/kkm_last_timestamp [09:35:44]Write 4 bytes [09:35:44]NVStorageSaveData done [09:35:44]ExternCall_PrintAddStr [09:35:44]wPrintStart [09:35:44]Write to MH i2c: 01 00 00 2B 38 63 [09:35:44]Write i2c OK [09:35:44]MH_I2C_Read... [09:35:44]Read from MH i2c: 01 [09:35:44]MH_I2C_Read... [09:35:44]Read from MH i2c: 01 07 00 [09:35:44]MH_I2C_Read... [09:35:44]Read from MH i2c: 01 07 00 2B 38 00 00 00 00 00 FF 0F 78 [09:35:44]RasterBufferAndPrint [09:35:44]line Счет N : (1)209677 [09:35:44]line ИНН: 02508201610067 [09:35:44]line Контрольно-Кассовый Чек [09:35:44]line ПРОДАЖА [09:35:44]line ТРК (МРК, ГНК) : 32 [09:35:44]line Товар: 2710124130 [09:35:44]line Аи-92-К-3 [09:35:44]line 7.480 * 66.90 [09:35:44]line = 500.41 [09:35:44]line НДС 12% НСП 1% [09:35:44]line > о реализуемом товаре [09:35:44]line ОКРУГЛЕНИЕ: -0.41 [09:35:44]line ИТОГО: 500.00 [09:35:44]line Внесено: 500.00 [09:35:44]line СДАЧА: 0.00 [09:35:44]line НСП 1% : 4.43 [09:35:44]line НДС 12% : 53.14 [09:35:44]line Наличными: 500.00 [09:35:44]line Безнал.: 0.00 [09:35:44]line Место: АЗС № 86 "Партнер Нефть" [09:35:44]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [09:35:44]line СНО: Общий режим [09:35:44]line Чек 88 21.10.2024 09:35 [09:35:44]line Смена: 460 ФФД: 1.0 [09:35:44]line ЗНМ: 0300000155 [09:35:44]line РНМ: 0000000000100030 [09:35:44]line Версия ККМ: 001 [09:35:44]line ФМ: 0000000000965340 [09:35:44]line ФД: 187624 [09:35:44]line ФПД: 3745911521704 [09:35:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T093546&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187624&fm=3745911521704&tin=02508201610067®Number=0000000000100030&sum=50000 [09:35:44]written 0, free lines is 4095 [09:35:44]OFD Sender: Processing packet 187624 [packets to send 1062, broken 1061] [09:35:44]ProducePacketName [09:35:44]name=ofd_packets/00187624 [09:35:44]OFD Sender: To server: pG, [09:35:44]CommunicateWithHost lk.salyk.kg:30040 [09:35:44]ConnectInit lk.salyk.kg [09:35:44]Connected sock=10 [09:35:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 E7 10 07 01 E2 E1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 72 20 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 E8 DC 02 00 35 04 06 00 03 68 29 B9 C1 A8 0E 0A CB 46 F6 3E 43 84 [09:35:44]Write to MH i2c: 01 00 00 56 38 8E [09:35:44]Write i2c OK [09:35:44]MH_I2C_Read... [09:35:44]Read from MH i2c: 01 [09:35:44]MH_I2C_Read... [09:35:44]Read from MH i2c: 01 07 00 [09:35:44]MH_I2C_Read... [09:35:44]Read from MH i2c: 01 07 00 56 38 00 00 00 00 00 74 0C 15 [09:35:44]RasterBufferAndPrint [09:35:44]line [09:35:44]line [09:35:44]line [09:35:44]line [09:35:44]line [09:35:44]written 0, free lines is 3191 [09:35:44]MH_Cut [09:35:44]Write to MH i2c: D1 01 00 5D 38 01 67 [09:35:44]Write i2c OK [09:35:44]MH_I2C_Read... [09:35:44]Read from MH i2c: D1 [09:35:44]MH_I2C_Read... [09:35:44]Read from MH i2c: D1 01 00 [09:35:44]MH_I2C_Read... [09:35:44]Read from MH i2c: D1 01 00 5D 38 00 66 [09:35:44]Write to MH i2c: 01 00 00 5E 38 96 [09:35:44]Write i2c OK [09:35:44]MH_I2C_Read... [09:35:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 33 9E 47 00 29 AF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 E8 DC 02 00 F4 03 04 00 61 CA 15 67 B6 04 01 00 00 31 9F 87 57 0A B4 59 15 [09:35:44]CommunicateWithHost err = 0 [09:35:44]CheckOFDResponse [09:35:44]1017 (14) - 77093643461234 [09:35:44]1041 (16) - 0000000000965340 [09:35:44]1040 (4) - 187624 [09:35:44]1012 (4) - 21.10.2024 03:28 [09:35:44]1206 (1) - 0 [09:35:44]OFD Sender: Remove packet 187624 [09:35:44]ProducePacketName [09:35:44]name=ofd_packets/00187624 [09:35:44]NVStorageDeleteData [09:35:45]OFD Sender: No OFD packet to send [09:35:45]*** Cut start [09:35:45]*** Partial cut [09:35:45]*** CUTSNS_PIN = 1 [09:35:46]*** CUTSNS_PIN = 0 [09:35:46]*** Brake cut motor [09:35:46]Read from MH i2c: 01 [09:35:46]MH_I2C_Read... [09:35:46]*** Stop cut motor [09:35:46]*** Cut end [09:35:46]Read from MH i2c: 01 07 00 [09:35:46]MH_I2C_Read... [09:35:46]Read from MH i2c: 01 07 00 5E 38 00 00 00 00 00 FF 0F AB [09:35:46]process_action close_receipt done [09:35:46]requested_data is exist [09:35:46]produce_requested_data [09:35:46]requested_item fm.sn is exist - process it [09:35:46]wFMCommunicate request_size=4 [09:35:46]MH_SAM_APDU [09:35:46]CAPDU: 80 11 00 00 [09:35:46]Write to MH i2c: E2 08 00 5F 38 80 11 00 00 00 00 00 00 11 [09:35:46]Write i2c OK [09:35:46]MH_I2C_Read... [09:35:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:35:46]Read from MH i2c: E2 [09:35:46]MH_I2C_Read... [09:35:46]Read from MH i2c: E2 17 00 [09:35:46]MH_I2C_Read... [09:35:46]Read from MH i2c: E2 17 00 5F 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 5F [09:35:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [09:35:46]wFMCommunicate OK [09:35:46]requested_item fd.num is exist - process it [09:35:46]SAM_PROTO_GetFieldsCounters [09:35:46]wFMCommunicate request_size=4 [09:35:46]MH_SAM_APDU [09:35:46]CAPDU: 80 13 00 00 [09:35:46]Write to MH i2c: E2 08 00 60 38 80 13 00 00 00 00 00 00 14 [09:35:46]Write i2c OK [09:35:46]MH_I2C_Read... [09:35:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:35:46]Read from MH i2c: E2 [09:35:46]MH_I2C_Read... [09:35:46]Read from MH i2c: E2 62 00 [09:35:46]MH_I2C_Read... [09:35:46]Read from MH i2c: E2 62 00 60 38 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 E8 DC 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 58 00 00 00 5E 04 04 00 58 00 00 00 57 04 04 00 59 00 00 00 19 04 04 00 00 00 00 00 90 00 B6 [09:35:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 E8 DC 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 58 00 00 00 5E 04 04 00 58 00 00 00 57 04 04 00 59 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:35:46]wFMCommunicate OK [09:35:46]SAM_PROTO_GetFieldsCounters done [09:35:46]requested_item shift.num is exist - process it [09:35:46]requested_item shift.opened is exist - process it [09:35:46]req_shift_opened [09:35:46]FM_GetShiftState [09:35:46]SAM_PROTO_GetShiftState [09:35:46]wFMCommunicate request_size=4 [09:35:46]MH_SAM_APDU [09:35:46]CAPDU: 80 13 01 00 [09:35:46]Write to MH i2c: E2 08 00 61 38 80 13 01 00 00 00 00 00 16 [09:35:46]Write i2c OK [09:35:46]MH_I2C_Read... [09:35:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:35:46]Read from MH i2c: E2 [09:35:46]MH_I2C_Read... [09:35:46]Read from MH i2c: E2 0E 00 [09:35:46]MH_I2C_Read... [09:35:46]Read from MH i2c: E2 0E 00 61 38 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 75 [09:35:46]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [09:35:46]wFMCommunicate OK [09:35:46]SAM_PROTO_GetShiftState done [09:35:46]FM_GetShiftState done [09:35:46]req_shift_opened done [09:35:46]requested_item shift.open_date is exist - process it [09:35:46]req_shift_open_date [09:35:46]req_shift_open_date done [09:35:46]produce_requested_data done [09:35:46]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187624,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [09:35:46]process_action_free close_receipt [09:35:46]json_value_free [09:35:46]json_value_free done [09:35:46]process_json_proto returns [09:35:46]Send response to host [09:35:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187624,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [09:35:46]free response buf [09:35:46]execute_script done [09:35:46]execute_script returns [09:35:46]free content buf [09:35:46]Sock 9.Close socket [09:35:46]Sock 9.Thread stoped [09:35:50]OFD Sender: No OFD packet to send [09:35:55]OFD Sender: No OFD packet to send [09:36:00]OFD Sender: No OFD packet to send [09:36:03]accept exits with 8 [09:36:03]New connection [09:36:03]New thread 3067014500 created [09:36:03]Thread 3067157860 joined [09:36:03]Waiting for new connection... [09:36:03] Sock 8.Parse request [09:36:03]Sock 8.Check first char [09:36:03]Sock 8.First char is OK [09:36:03]request: POST /json_proto HTTP/1.0 [09:36:03]Method: POST [09:36:03]URL: /json_proto [09:36:03]Method is POST - this is cgi request [09:36:03]url: /json_proto [09:36:03]query_string will be loaded in cgi processing [09:36:03]execute_cgi json_proto POST (null) [09:36:03]execute_cgi path=json_proto method=POST [09:36:03]POST find Content-Length [09:36:03]Host: 172.17.42.131:8080 [09:36:03]Content-Length: 679 [09:36:03]Content-Type: application/json [09:36:03] [09:36:03]POST finish read [09:36:03]Found Content-Length = 679 [09:36:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209678", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:36:03]execute_script... [09:36:03]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209678", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:36:03]POST & json_proto [09:36:03]process_json_proto [09:36:03]json parsed OK: [09:36:03]protocol is kg_v1.0 [09:36:03]action value=close_receipt [09:36:03]process_action close_receipt [09:36:03]cmd_close_receipt [09:36:03]MH_GetDate [09:36:03]Write to MH i2c: F0 00 00 62 38 89 [09:36:03]Write i2c OK [09:36:03]MH_I2C_Read... [09:36:03]Read from MH i2c: F0 [09:36:03]MH_I2C_Read... [09:36:03]Read from MH i2c: F0 09 00 [09:36:03]MH_I2C_Read... [09:36:03]Read from MH i2c: F0 09 00 62 38 00 87 20 16 67 A0 18 CA 66 9E [09:36:03]GetLastDocTimeStamp 1729503346 [09:36:03]current date 1729503367 [09:36:03]FM_GetShiftState [09:36:03]SAM_PROTO_GetShiftState [09:36:03]wFMCommunicate request_size=4 [09:36:03]MH_SAM_APDU [09:36:03]CAPDU: 80 13 01 00 [09:36:03]Write to MH i2c: E2 08 00 63 38 80 13 01 00 00 00 00 00 18 [09:36:03]Write i2c OK [09:36:03]MH_I2C_Read... [09:36:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:36:03]Read from MH i2c: E2 [09:36:03]MH_I2C_Read... [09:36:03]Read from MH i2c: E2 0E 00 [09:36:03]MH_I2C_Read... [09:36:03]Read from MH i2c: E2 0E 00 63 38 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 77 [09:36:03]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [09:36:03]wFMCommunicate OK [09:36:03]SAM_PROTO_GetShiftState done [09:36:03]FM_GetShiftState done [09:36:03]opened in 1729469754 [09:36:03]opened+sec_in_day 1729556154 [09:36:03]quantity*price = 100050 [09:36:03]sum+1 = 100052 [09:36:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 89 21.10.2024 09:36 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 187625 ФПД: 188234566277624 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T093607&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187625&fm=188234566277624&tin=02508201610067®Number=0000000000100030&sum=100000 [09:36:04]StoreToDocumentArchive [09:36:04]shift 460 fd 187625 [09:36:04]save to /storage/0460/doc_00187625 [09:36:04]save last doc name /storage/0460/doc_00187625 to /storage/kkm_last_doc_name [09:36:04]save OK [09:36:04]Clear old archive folders... [09:36:04]ProcessDocumentItem done err = 0, tmpTLVsize=248 [09:36:04]tlvbuf is 010A0A00 [09:36:04]SAM_PROTO_ClearQueue [09:36:04]wFMCommunicate request_size=4 [09:36:04]MH_SAM_APDU [09:36:04]CAPDU: 80 09 00 00 [09:36:04]Write to MH i2c: E2 08 00 70 38 80 09 00 00 00 00 00 00 1A [09:36:04]Write i2c OK [09:36:04]MH_I2C_Read... [09:36:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:36:04]Read from MH i2c: E2 [09:36:04]MH_I2C_Read... [09:36:04]Read from MH i2c: E2 03 00 [09:36:04]MH_I2C_Read... [09:36:04]Read from MH i2c: E2 03 00 70 38 00 90 00 1C [09:36:04]RAPDU: 90 00 [09:36:04]wFMCommunicate OK [09:36:04]SAM_PROTO_ClearQueue done [09:36:04]KKMCreateOFDPacket [09:36:04]OFDProtocolAddRootSTLVToBuf [09:36:04]FM_MakeSignedData [09:36:04]FM_MakeSignedData [09:36:04]SAM_PROTO_SignData [09:36:04]wFMCommunicate request_size=4 [09:36:04]MH_SAM_APDU [09:36:04]CAPDU: 80 0D 01 02 [09:36:04]Write to MH i2c: E2 08 00 71 38 80 0D 01 02 00 00 00 00 22 [09:36:04]Write i2c OK [09:36:04]MH_I2C_Read... [09:36:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:36:04]Read from MH i2c: E2 [09:36:04]MH_I2C_Read... [09:36:04]Read from MH i2c: E2 03 00 [09:36:04]MH_I2C_Read... [09:36:04]Read from MH i2c: E2 03 00 71 38 00 90 00 1D [09:36:04]RAPDU: 90 00 [09:36:04]wFMCommunicate OK [09:36:04]wFMCommunicate request_size=255 [09:36:04]MH_SAM_APDU [09:36:04]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 59 00 00 00 F4 03 04 00 87 20 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 E9 DC 02 00 35 04 06 00 AB 32 C6 75 [09:36:04]Write to MH i2c: E2 02 01 72 38 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 59 00 00 00 F4 03 04 00 87 20 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 E9 DC 02 00 35 04 06 00 AB 32 C6 75 00 00 B6 [09:36:04]Write i2c OK [09:36:04]MH_I2C_Read... [09:36:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:36:05]Read from MH i2c: E2 [09:36:05]MH_I2C_Read... [09:36:05]Read from MH i2c: E2 03 00 [09:36:05]MH_I2C_Read... [09:36:05]Read from MH i2c: E2 03 00 72 38 00 90 00 1E [09:36:05]RAPDU: 90 00 [09:36:05]wFMCommunicate OK [09:36:05]wFMCommunicate request_size=7 [09:36:05]MH_SAM_APDU [09:36:05]CAPDU: 80 0D 02 02 02 19 F8 [09:36:05]Write to MH i2c: E2 0A 00 73 38 80 0D 02 02 02 00 19 F8 00 00 3A [09:36:05]Write i2c OK [09:36:05]MH_I2C_Read... [09:36:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:36:05]Read from MH i2c: E2 [09:36:05]MH_I2C_Read... [09:36:05]Read from MH i2c: E2 03 00 [09:36:05]MH_I2C_Read... [09:36:05]Read from MH i2c: E2 03 00 73 38 00 90 00 1F [09:36:05]RAPDU: 90 00 [09:36:05]wFMCommunicate OK [09:36:05]wFMCommunicate request_size=4 [09:36:05]MH_SAM_APDU [09:36:05]CAPDU: 80 0D 03 02 [09:36:05]Write to MH i2c: E2 08 00 74 38 80 0D 03 02 00 00 00 00 27 [09:36:05]Write i2c OK [09:36:05]MH_I2C_Read... [09:36:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:36:05]Read from MH i2c: E2 [09:36:05]MH_I2C_Read... [09:36:05]Read from MH i2c: E2 0B 00 [09:36:05]MH_I2C_Read... [09:36:05]Read from MH i2c: E2 0B 00 74 38 00 18 D3 E3 B8 E6 A3 DF 7D 90 00 93 [09:36:05]RAPDU: 18 D3 E3 B8 E6 A3 DF 7D 90 00 [09:36:05]wFMCommunicate OK [09:36:05]SAM_PROTO_SignData done [09:36:05]FM_MakeSignedData done [09:36:05]CreateOFDProtocolMessage [09:36:05]wFMCommunicate request_size=4 [09:36:05]MH_SAM_APDU [09:36:05]CAPDU: 80 11 00 00 [09:36:05]Write to MH i2c: E2 08 00 75 38 80 11 00 00 00 00 00 00 27 [09:36:05]Write i2c OK [09:36:05]MH_I2C_Read... [09:36:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:36:05]Read from MH i2c: E2 [09:36:05]MH_I2C_Read... [09:36:05]Read from MH i2c: E2 17 00 [09:36:05]MH_I2C_Read... [09:36:05]Read from MH i2c: E2 17 00 75 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 75 [09:36:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [09:36:05]wFMCommunicate OK [09:36:05]CreateOFDProtocolMessage done [09:36:05]OFDSenderStorePacket 187625 [09:36:05]StoreOFDPacket docnum=187625 [09:36:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 43 C3 04 01 CA A4 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 87 20 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 E9 DC 02 00 35 04 06 00 AB 32 C6 75 19 F8 18 D3 E3 B8 E6 A3 DF 7D [09:36:05]CheckFolder [09:36:05]dirname=/storage/ofd_packets [09:36:05]CheckFolder done [09:36:05]ProducePacketName [09:36:05]name=ofd_packets/00187625 [09:36:05]NVStorageSaveData ofd_packets/00187625 [09:36:05]File name is /storage/ofd_packets/00187625 [09:36:05]Write 298 bytes [09:36:05]NVStorageSaveData done [09:36:05]OFDSenderStorePacket done [09:36:05]KKMCreateOFDPacket done [09:36:05]NVStorageSaveData kkm_last_timestamp [09:36:05]File name is /storage/kkm_last_timestamp [09:36:05]Write 4 bytes [09:36:05]NVStorageSaveData done [09:36:05]ExternCall_PrintAddStr [09:36:05]wPrintStart [09:36:05]Write to MH i2c: 01 00 00 76 38 AE [09:36:05]Write i2c OK [09:36:05]MH_I2C_Read... [09:36:05]Read from MH i2c: 01 [09:36:05]MH_I2C_Read... [09:36:05]Read from MH i2c: 01 07 00 [09:36:05]MH_I2C_Read... [09:36:05]Read from MH i2c: 01 07 00 76 38 00 00 00 00 00 FF 0F C3 [09:36:05]RasterBufferAndPrint [09:36:05]line Счет N : (1)209678 [09:36:05]line ИНН: 02508201610067 [09:36:05]line Контрольно-Кассовый Чек [09:36:05]line ПРОДАЖА [09:36:05]line ТРК (МРК, ГНК) : 61 [09:36:05]line Товар: 2710194210 [09:36:05]line ДТ-К-5 [09:36:05]line 13.130 * 76.20 [09:36:05]line = 1000.51 [09:36:05]line НДС 12% НСП 1% [09:36:05]line > о реализуемом товаре [09:36:05]line ОКРУГЛЕНИЕ: -0.51 [09:36:05]line ИТОГО: 1000.00 [09:36:05]line Внесено: 1000.00 [09:36:05]line СДАЧА: 0.00 [09:36:05]line НСП 1% : 8.85 [09:36:05]line НДС 12% : 106.25 [09:36:05]line Наличными: 1000.00 [09:36:05]line Безнал.: 0.00 [09:36:05]line Место: АЗС № 86 "Партнер Нефть" [09:36:05]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [09:36:05]line СНО: Общий режим [09:36:05]line Чек 89 21.10.2024 09:36 [09:36:05]line Смена: 460 ФФД: 1.0 [09:36:05]line ЗНМ: 0300000155 [09:36:05]line РНМ: 0000000000100030 [09:36:05]line Версия ККМ: 001 [09:36:05]line ФМ: 0000000000965340 [09:36:05]line ФД: 187625 [09:36:05]line ФПД: 188234566277624 [09:36:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T093607&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187625&fm=188234566277624&tin=02508201610067®Number=0000000000100030&sum=100000 [09:36:05]OFD Sender: Processing packet 187625 [packets to send 1062, broken 1061] [09:36:05]ProducePacketName [09:36:05]name=ofd_packets/00187625 [09:36:05]OFD Sender: To server: pG, [09:36:05]CommunicateWithHost lk.salyk.kg:30040 [09:36:05]ConnectInit lk.salyk.kg [09:36:05]written 0, free lines is 4095 [09:36:05]Connected sock=10 [09:36:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 43 C3 04 01 CA A4 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 87 20 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 E9 DC 02 00 35 04 06 00 AB 32 C6 75 19 F8 18 D3 E3 B8 E6 A3 DF 7D [09:36:06]Write to MH i2c: 01 00 00 A1 38 D9 [09:36:06]Write i2c OK [09:36:06]MH_I2C_Read... [09:36:06]Read from MH i2c: 01 [09:36:06]MH_I2C_Read... [09:36:06]Read from MH i2c: 01 07 00 [09:36:06]MH_I2C_Read... [09:36:06]Read from MH i2c: 01 07 00 A1 38 00 00 00 00 00 79 0C 65 [09:36:06]RasterBufferAndPrint [09:36:06]line [09:36:06]line [09:36:06]line [09:36:06]line [09:36:06]line [09:36:06]written 0, free lines is 3196 [09:36:06]MH_Cut [09:36:06]Write to MH i2c: D1 01 00 A8 38 01 B2 [09:36:06]Write i2c OK [09:36:06]MH_I2C_Read... [09:36:06]Read from MH i2c: D1 [09:36:06]MH_I2C_Read... [09:36:06]Read from MH i2c: D1 01 00 [09:36:06]MH_I2C_Read... [09:36:06]Read from MH i2c: D1 01 00 A8 38 00 B1 [09:36:06]Write to MH i2c: 01 00 00 A9 38 E1 [09:36:06]Write i2c OK [09:36:06]MH_I2C_Read... [09:36:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 E3 42 47 00 6C 7F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 E9 DC 02 00 F4 03 04 00 77 CA 15 67 B6 04 01 00 00 CE 0E D9 10 E5 78 36 A3 [09:36:06]CommunicateWithHost err = 0 [09:36:06]CheckOFDResponse [09:36:06]1017 (14) - 77093643461234 [09:36:06]1041 (16) - 0000000000965340 [09:36:06]1040 (4) - 187625 [09:36:06]1012 (4) - 21.10.2024 03:28 [09:36:06]1206 (1) - 0 [09:36:06]OFD Sender: Remove packet 187625 [09:36:06]ProducePacketName [09:36:06]name=ofd_packets/00187625 [09:36:06]NVStorageDeleteData [09:36:06]OFD Sender: No OFD packet to send [09:36:07]*** Cut start [09:36:07]*** Partial cut [09:36:07]*** CUTSNS_PIN = 1 [09:36:07]*** CUTSNS_PIN = 0 [09:36:07]*** Brake cut motor [09:36:07]Read from MH i2c: 01 [09:36:07]MH_I2C_Read... [09:36:07]*** Stop cut motor [09:36:07]*** Cut end [09:36:07]Read from MH i2c: 01 07 00 [09:36:07]MH_I2C_Read... [09:36:07]Read from MH i2c: 01 07 00 A9 38 00 00 00 00 00 FF 0F F6 [09:36:07]process_action close_receipt done [09:36:07]requested_data is exist [09:36:07]produce_requested_data [09:36:07]requested_item fm.sn is exist - process it [09:36:07]wFMCommunicate request_size=4 [09:36:07]MH_SAM_APDU [09:36:07]CAPDU: 80 11 00 00 [09:36:07]Write to MH i2c: E2 08 00 AA 38 80 11 00 00 00 00 00 00 5C [09:36:07]Write i2c OK [09:36:07]MH_I2C_Read... [09:36:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:36:07]Read from MH i2c: E2 [09:36:07]MH_I2C_Read... [09:36:07]Read from MH i2c: E2 17 00 [09:36:07]MH_I2C_Read... [09:36:07]Read from MH i2c: E2 17 00 AA 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 AA [09:36:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [09:36:07]wFMCommunicate OK [09:36:07]requested_item fd.num is exist - process it [09:36:07]SAM_PROTO_GetFieldsCounters [09:36:07]wFMCommunicate request_size=4 [09:36:07]MH_SAM_APDU [09:36:07]CAPDU: 80 13 00 00 [09:36:07]Write to MH i2c: E2 08 00 AB 38 80 13 00 00 00 00 00 00 5F [09:36:07]Write i2c OK [09:36:07]MH_I2C_Read... [09:36:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:36:08]Read from MH i2c: E2 [09:36:08]MH_I2C_Read... [09:36:08]Read from MH i2c: E2 62 00 [09:36:08]MH_I2C_Read... [09:36:08]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 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 E9 DC 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 59 00 00 00 5E 04 04 00 59 00 00 00 57 04 04 00 5A 00 00 00 19 04 04 00 00 00 00 00 90 00 05 [09:36:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 E9 DC 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 59 00 00 00 5E 04 04 00 59 00 00 00 57 04 04 00 5A 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:36:08]wFMCommunicate OK [09:36:08]SAM_PROTO_GetFieldsCounters done [09:36:08]requested_item shift.num is exist - process it [09:36:08]requested_item shift.opened is exist - process it [09:36:08]req_shift_opened [09:36:08]FM_GetShiftState [09:36:08]SAM_PROTO_GetShiftState [09:36:08]wFMCommunicate request_size=4 [09:36:08]MH_SAM_APDU [09:36:08]CAPDU: 80 13 01 00 [09:36:08]Write to MH i2c: E2 08 00 AC 38 80 13 01 00 00 00 00 00 61 [09:36:08]Write i2c OK [09:36:08]MH_I2C_Read... [09:36:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:36:08]Read from MH i2c: E2 [09:36:08]MH_I2C_Read... [09:36:08]Read from MH i2c: E2 0E 00 [09:36:08]MH_I2C_Read... [09:36:08]Read from MH i2c: E2 0E 00 AC 38 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 C0 [09:36:08]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [09:36:08]wFMCommunicate OK [09:36:08]SAM_PROTO_GetShiftState done [09:36:08]FM_GetShiftState done [09:36:08]req_shift_opened done [09:36:08]requested_item shift.open_date is exist - process it [09:36:08]req_shift_open_date [09:36:08]req_shift_open_date done [09:36:08]produce_requested_data done [09:36:08]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187625,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [09:36:08]process_action_free close_receipt [09:36:08]json_value_free [09:36:08]json_value_free done [09:36:08]process_json_proto returns [09:36:08]Send response to host [09:36:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187625,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [09:36:08]free response buf [09:36:08]execute_script done [09:36:08]execute_script returns [09:36:08]free content buf [09:36:08]Sock 8.Close socket [09:36:08]Sock 8.Thread stoped [09:36:10]accept exits with 9 [09:36:10]New connection [09:36:10]New thread 3067157860 created [09:36:10]Thread 3067014500 joined [09:36:10]Waiting for new connection... [09:36:10] Sock 9.Parse request [09:36:10]Sock 9.Check first char [09:36:10]Sock 9.First char is OK [09:36:10]request: POST /json_proto HTTP/1.0 [09:36:10]Method: POST [09:36:10]URL: /json_proto [09:36:10]Method is POST - this is cgi request [09:36:10]url: /json_proto [09:36:10]query_string will be loaded in cgi processing [09:36:10]execute_cgi json_proto POST (null) [09:36:10]execute_cgi path=json_proto method=POST [09:36:10]POST find Content-Length [09:36:10]Host: 172.17.42.131:8080 [09:36:10]Content-Length: 752 [09:36:10]Content-Type: application/json [09:36:10] [09:36:10]POST finish read [09:36:10]Found Content-Length = 752 [09:36:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209676", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 130.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30089124", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:36:10]execute_script... [09:36: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)209676", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 130.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30089124", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:36:10]POST & json_proto [09:36:10]process_json_proto [09:36:10]json parsed OK: [09:36:10]protocol is kg_v1.0 [09:36:10]action value=close_receipt [09:36:10]process_action close_receipt [09:36:10]cmd_close_receipt [09:36:10]MH_GetDate [09:36:10]Write to MH i2c: F0 00 00 AD 38 D4 [09:36:10]Write i2c OK [09:36:10]MH_I2C_Read... [09:36:10]Read from MH i2c: F0 [09:36:10]MH_I2C_Read... [09:36:10]Read from MH i2c: F0 09 00 [09:36:10]MH_I2C_Read... [09:36:10]Read from MH i2c: F0 09 00 AD 38 00 8D 20 16 67 A0 18 CA 66 EF [09:36:10]GetLastDocTimeStamp 1729503367 [09:36:10]current date 1729503373 [09:36:10]FM_GetShiftState [09:36:10]SAM_PROTO_GetShiftState [09:36:10]wFMCommunicate request_size=4 [09:36:10]MH_SAM_APDU [09:36:10]CAPDU: 80 13 01 00 [09:36:10]Write to MH i2c: E2 08 00 AE 38 80 13 01 00 00 00 00 00 63 [09:36:10]Write i2c OK [09:36:10]MH_I2C_Read... [09:36:10]Read from MH i2c: E2 [09:36:10]MH_I2C_Read... [09:36:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:36:10]Read from MH i2c: E2 0E 00 [09:36:10]MH_I2C_Read... [09:36:10]Read from MH i2c: E2 0E 00 AE 38 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 C2 [09:36:10]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [09:36:10]wFMCommunicate OK [09:36:10]SAM_PROTO_GetShiftState done [09:36:10]FM_GetShiftState done [09:36:10]opened in 1729469754 [09:36:10]opened+sec_in_day 1729556154 [09:36:10]quantity*price = 0 [09:36:10]sum+1 = 1 [09:36:10]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 90 21.10.2024 09:36 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Талоны: ТК ГПНА Online 30089124 ФМ: 0000000000965340 ФД: 187626 ФПД: 276465191001677 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T093613&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187626&fm=276465191001677&tin=02508201610067®Number=0000000000100030&sum=0 [09:36:11]StoreToDocumentArchive [09:36:11]shift 460 fd 187626 [09:36:11]save to /storage/0460/doc_00187626 [09:36:11]save last doc name /storage/0460/doc_00187626 to /storage/kkm_last_doc_name [09:36:11]save OK [09:36:11]Clear old archive folders... [09:36:11]ProcessDocumentItem done err = 0, tmpTLVsize=248 [09:36:11]tlvbuf is 011B01D0 [09:36:11]SAM_PROTO_ClearQueue [09:36:11]wFMCommunicate request_size=4 [09:36:11]MH_SAM_APDU [09:36:11]CAPDU: 80 09 00 00 [09:36:11]Write to MH i2c: E2 08 00 BB 38 80 09 00 00 00 00 00 00 65 [09:36:11]Write i2c OK [09:36:11]MH_I2C_Read... [09:36:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:36:11]Read from MH i2c: E2 [09:36:11]MH_I2C_Read... [09:36:11]Read from MH i2c: E2 03 00 [09:36:11]MH_I2C_Read... [09:36:11]Read from MH i2c: E2 03 00 BB 38 00 90 00 67 [09:36:11]RAPDU: 90 00 [09:36:11]wFMCommunicate OK [09:36:11]SAM_PROTO_ClearQueue done [09:36:11]KKMCreateOFDPacket [09:36:11]OFDProtocolAddRootSTLVToBuf [09:36:11]FM_MakeSignedData [09:36:11]FM_MakeSignedData [09:36:11]SAM_PROTO_SignData [09:36:11]wFMCommunicate request_size=4 [09:36:11]MH_SAM_APDU [09:36:11]CAPDU: 80 0D 01 02 [09:36:11]Write to MH i2c: E2 08 00 BC 38 80 0D 01 02 00 00 00 00 6D [09:36:11]Write i2c OK [09:36:11]MH_I2C_Read... [09:36:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:36:11]Read from MH i2c: E2 [09:36:11]MH_I2C_Read... [09:36:11]Read from MH i2c: E2 03 00 [09:36:11]MH_I2C_Read... [09:36:11]Read from MH i2c: E2 03 00 BC 38 00 90 00 68 [09:36:11]RAPDU: 90 00 [09:36:11]wFMCommunicate OK [09:36:11]wFMCommunicate request_size=255 [09:36:11]MH_SAM_APDU [09:36:11]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D0 FB 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 8D 20 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 EA DC 02 00 35 04 06 00 FB 71 91 80 [09:36:11]Write to MH i2c: E2 02 01 BD 38 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D0 FB 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 8D 20 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 EA DC 02 00 35 04 06 00 FB 71 91 80 00 00 12 [09:36:11]OFD Sender: No OFD packet to send [09:36:11]Write i2c OK [09:36:11]MH_I2C_Read... [09:36:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:36:12]Read from MH i2c: E2 [09:36:12]MH_I2C_Read... [09:36:12]Read from MH i2c: E2 03 00 [09:36:12]MH_I2C_Read... [09:36:12]Read from MH i2c: E2 03 00 BD 38 00 90 00 69 [09:36:12]RAPDU: 90 00 [09:36:12]wFMCommunicate OK [09:36:12]wFMCommunicate request_size=7 [09:36:12]MH_SAM_APDU [09:36:12]CAPDU: 80 0D 02 02 02 9E 4D [09:36:12]Write to MH i2c: E2 0A 00 BE 38 80 0D 02 02 02 00 9E 4D 00 00 5F [09:36:12]Write i2c OK [09:36:12]MH_I2C_Read... [09:36:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:36:12]Read from MH i2c: E2 [09:36:12]MH_I2C_Read... [09:36:12]Read from MH i2c: E2 03 00 [09:36:12]MH_I2C_Read... [09:36:12]Read from MH i2c: E2 03 00 BE 38 00 90 00 6A [09:36:12]RAPDU: 90 00 [09:36:12]wFMCommunicate OK [09:36:12]wFMCommunicate request_size=4 [09:36:12]MH_SAM_APDU [09:36:12]CAPDU: 80 0D 03 02 [09:36:12]Write to MH i2c: E2 08 00 BF 38 80 0D 03 02 00 00 00 00 72 [09:36:12]Write i2c OK [09:36:12]MH_I2C_Read... [09:36:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:36:12]Read from MH i2c: E2 [09:36:12]MH_I2C_Read... [09:36:12]Read from MH i2c: E2 0B 00 [09:36:12]MH_I2C_Read... [09:36:12]Read from MH i2c: E2 0B 00 BF 38 00 51 70 E2 6F 04 B3 85 6F 90 00 30 [09:36:12]RAPDU: 51 70 E2 6F 04 B3 85 6F 90 00 [09:36:12]wFMCommunicate OK [09:36:12]SAM_PROTO_SignData done [09:36:12]FM_MakeSignedData done [09:36:12]CreateOFDProtocolMessage [09:36:12]wFMCommunicate request_size=4 [09:36:12]MH_SAM_APDU [09:36:12]CAPDU: 80 11 00 00 [09:36:12]Write to MH i2c: E2 08 00 C0 38 80 11 00 00 00 00 00 00 72 [09:36:12]Write i2c OK [09:36:12]MH_I2C_Read... [09:36:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:36:12]Read from MH i2c: E2 [09:36:12]MH_I2C_Read... [09:36:12]Read from MH i2c: E2 17 00 [09:36:12]MH_I2C_Read... [09:36:12]Read from MH i2c: E2 17 00 C0 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 C0 [09:36:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [09:36:12]wFMCommunicate OK [09:36:12]CreateOFDProtocolMessage done [09:36:12]OFDSenderStorePacket 187626 [09:36:12]StoreOFDPacket docnum=187626 [09:36:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 0B 77 04 01 6B B4 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D0 FB 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 8D 20 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 EA DC 02 00 35 04 06 00 FB 71 91 80 9E 4D 51 70 E2 6F 04 B3 85 6F [09:36:12]CheckFolder [09:36:12]dirname=/storage/ofd_packets [09:36:12]CheckFolder done [09:36:12]ProducePacketName [09:36:12]name=ofd_packets/00187626 [09:36:12]NVStorageSaveData ofd_packets/00187626 [09:36:12]File name is /storage/ofd_packets/00187626 [09:36:12]Write 298 bytes [09:36:12]NVStorageSaveData done [09:36:12]OFDSenderStorePacket done [09:36:12]KKMCreateOFDPacket done [09:36:12]NVStorageSaveData kkm_last_timestamp [09:36:12]File name is /storage/kkm_last_timestamp [09:36:12]Write 4 bytes [09:36:12]NVStorageSaveData done [09:36:12]ExternCall_PrintAddStr [09:36:12]wPrintStart [09:36:12]Write to MH i2c: 01 00 00 C1 38 F9 [09:36:12]Write i2c OK [09:36:12]MH_I2C_Read... [09:36:12]Read from MH i2c: 01 [09:36:12]MH_I2C_Read... [09:36:12]Read from MH i2c: 01 07 00 [09:36:12]MH_I2C_Read... [09:36:12]Read from MH i2c: 01 07 00 C1 38 00 00 00 00 00 FF 0F 0E [09:36:12]RasterBufferAndPrint [09:36:12]line Счет N : (1)209676 [09:36:12]line ИНН: 02508201610067 [09:36:12]line Контрольно-Кассовый Чек [09:36:12]line ПРОДАЖА [09:36:12]line ТРК (МРК, ГНК) : 51 [09:36:12]line Товар: 2710194210 [09:36:12]line ДТ-К-5 [09:36:12]line 130.000 * 0.00 [09:36:12]line = 0.00 [09:36:12]line НДС 12% НСП 1% [09:36:12]line > о реализуемом товаре [09:36:12]line ИТОГО: 0.00 [09:36:12]line НСП 1% : 0.00 [09:36:12]line НДС 12% : 0.00 [09:36:12]line Наличными: 0.00 [09:36:12]line Безнал.: 0.00 [09:36:12]line Место: АЗС № 86 "Партнер Нефть" [09:36:12]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [09:36:12]line СНО: Общий режим [09:36:12]line Чек 90 21.10.2024 09:36 [09:36:12]line Смена: 460 ФФД: 1.0 [09:36:12]line ЗНМ: 0300000155 [09:36:12]line РНМ: 0000000000100030 [09:36:12]line Версия ККМ: 001 [09:36:12]line Талоны: ТК ГПНА Online [09:36:12]line 30089124 [09:36:12]line ФМ: 0000000000965340 [09:36:12]line ФД: 187626 [09:36:12]line ФПД: 276465191001677 [09:36:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T093613&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187626&fm=276465191001677&tin=02508201610067®Number=0000000000100030&sum=0 [09:36:12]written 0, free lines is 4095 [09:36:12]OFD Sender: Processing packet 187626 [packets to send 1062, broken 1061] [09:36:12]ProducePacketName [09:36:12]name=ofd_packets/00187626 [09:36:12]OFD Sender: To server: pG, [09:36:12]CommunicateWithHost lk.salyk.kg:30040 [09:36:12]ConnectInit lk.salyk.kg [09:36:12]Connected sock=11 [09:36:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 0B 77 04 01 6B B4 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D0 FB 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 8D 20 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 EA DC 02 00 35 04 06 00 FB 71 91 80 9E 4D 51 70 E2 6F 04 B3 85 6F [09:36:12]Write to MH i2c: 01 00 00 EB 38 23 [09:36:12]Write i2c OK [09:36:12]MH_I2C_Read... [09:36:12]Read from MH i2c: 01 [09:36:12]MH_I2C_Read... [09:36:12]Read from MH i2c: 01 07 00 [09:36:12]MH_I2C_Read... [09:36:12]Read from MH i2c: 01 07 00 EB 38 00 00 00 00 00 92 0C C8 [09:36:12]RasterBufferAndPrint [09:36:12]line [09:36:12]line [09:36:12]line [09:36:12]line [09:36:12]line [09:36:12]written 0, free lines is 3224 [09:36:12]MH_Cut [09:36:12]Write to MH i2c: D1 01 00 F2 38 01 FC [09:36:12]Write i2c OK [09:36:12]MH_I2C_Read... [09:36:12]Read from MH i2c: D1 [09:36:12]MH_I2C_Read... [09:36:12]Read from MH i2c: D1 01 00 [09:36:12]MH_I2C_Read... [09:36:12]Read from MH i2c: D1 01 00 F2 38 00 FB [09:36:12]Write to MH i2c: 01 00 00 F3 38 2B [09:36:12]Write i2c OK [09:36:12]MH_I2C_Read... [09:36:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 A2 41 47 00 EF AE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 EA DC 02 00 F4 03 04 00 7E CA 15 67 B6 04 01 00 00 EF 13 D4 99 E4 CE 75 D8 [09:36:12]CommunicateWithHost err = 0 [09:36:12]CheckOFDResponse [09:36:12]1017 (14) - 77093643461234 [09:36:12]1041 (16) - 0000000000965340 [09:36:12]1040 (4) - 187626 [09:36:12]1012 (4) - 21.10.2024 03:29 [09:36:12]1206 (1) - 0 [09:36:12]OFD Sender: Remove packet 187626 [09:36:12]ProducePacketName [09:36:12]name=ofd_packets/00187626 [09:36:12]NVStorageDeleteData [09:36:13]OFD Sender: No OFD packet to send [09:36:13]*** Cut start [09:36:13]*** Partial cut [09:36:13]*** CUTSNS_PIN = 1 [09:36:13]*** CUTSNS_PIN = 0 [09:36:14]*** Brake cut motor [09:36:14]Read from MH i2c: 01 [09:36:14]MH_I2C_Read... [09:36:14]*** Stop cut motor [09:36:14]*** Cut end [09:36:14]Read from MH i2c: 01 07 00 [09:36:14]MH_I2C_Read... [09:36:14]Read from MH i2c: 01 07 00 F3 38 00 00 00 00 00 FF 0F 40 [09:36:14]process_action close_receipt done [09:36:14]requested_data is exist [09:36:14]produce_requested_data [09:36:14]requested_item fm.sn is exist - process it [09:36:14]wFMCommunicate request_size=4 [09:36:14]MH_SAM_APDU [09:36:14]CAPDU: 80 11 00 00 [09:36:14]Write to MH i2c: E2 08 00 F4 38 80 11 00 00 00 00 00 00 A6 [09:36:14]Write i2c OK [09:36:14]MH_I2C_Read... [09:36:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:36:14]Read from MH i2c: E2 [09:36:14]MH_I2C_Read... [09:36:14]Read from MH i2c: E2 17 00 [09:36:14]MH_I2C_Read... [09:36:14]Read from MH i2c: E2 17 00 F4 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 F4 [09:36:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [09:36:14]wFMCommunicate OK [09:36:14]requested_item fd.num is exist - process it [09:36:14]SAM_PROTO_GetFieldsCounters [09:36:14]wFMCommunicate request_size=4 [09:36:14]MH_SAM_APDU [09:36:14]CAPDU: 80 13 00 00 [09:36:14]Write to MH i2c: E2 08 00 F5 38 80 13 00 00 00 00 00 00 A9 [09:36:14]Write i2c OK [09:36:14]MH_I2C_Read... [09:36:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:36:14]Read from MH i2c: E2 [09:36:14]MH_I2C_Read... [09:36:14]Read from MH i2c: E2 62 00 [09:36:14]MH_I2C_Read... [09:36:14]Read from MH i2c: E2 62 00 F5 38 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 EA DC 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 5A 00 00 00 5E 04 04 00 5A 00 00 00 57 04 04 00 5B 00 00 00 19 04 04 00 00 00 00 00 90 00 53 [09:36:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 EA DC 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 5A 00 00 00 5E 04 04 00 5A 00 00 00 57 04 04 00 5B 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:36:14]wFMCommunicate OK [09:36:14]SAM_PROTO_GetFieldsCounters done [09:36:14]requested_item shift.num is exist - process it [09:36:14]requested_item shift.opened is exist - process it [09:36:14]req_shift_opened [09:36:14]FM_GetShiftState [09:36:14]SAM_PROTO_GetShiftState [09:36:14]wFMCommunicate request_size=4 [09:36:14]MH_SAM_APDU [09:36:14]CAPDU: 80 13 01 00 [09:36:14]Write to MH i2c: E2 08 00 F6 38 80 13 01 00 00 00 00 00 AB [09:36:14]Write i2c OK [09:36:14]MH_I2C_Read... [09:36:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:36:14]Read from MH i2c: E2 [09:36:14]MH_I2C_Read... [09:36:14]Read from MH i2c: E2 0E 00 [09:36:14]MH_I2C_Read... [09:36:14]Read from MH i2c: E2 0E 00 F6 38 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 0A [09:36:14]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [09:36:14]wFMCommunicate OK [09:36:14]SAM_PROTO_GetShiftState done [09:36:14]FM_GetShiftState done [09:36:14]req_shift_opened done [09:36:14]requested_item shift.open_date is exist - process it [09:36:14]req_shift_open_date [09:36:14]req_shift_open_date done [09:36:14]produce_requested_data done [09:36:14]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187626,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [09:36:14]process_action_free close_receipt [09:36:14]json_value_free [09:36:14]json_value_free done [09:36:14]process_json_proto returns [09:36:14]Send response to host [09:36:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187626,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [09:36:14]free response buf [09:36:14]execute_script done [09:36:14]execute_script returns [09:36:14]free content buf [09:36:14]Sock 9.Close socket [09:36:14]Sock 9.Thread stoped [09:36:18]OFD Sender: No OFD packet to send [09:36:23]OFD Sender: No OFD packet to send [09:36:28]OFD Sender: No OFD packet to send [09:36:33]OFD Sender: No OFD packet to send [09:36:38]OFD Sender: No OFD packet to send [09:36:43]OFD Sender: No OFD packet to send [09:36:48]OFD Sender: No OFD packet to send [09:36:53]OFD Sender: No OFD packet to send [09:36:58]OFD Sender: No OFD packet to send [09:37:03]OFD Sender: No OFD packet to send [09:37:08]OFD Sender: No OFD packet to send [09:37:13]OFD Sender: No OFD packet to send [09:37:18]OFD Sender: No OFD packet to send [09:37:23]OFD Sender: No OFD packet to send [09:37:28]OFD Sender: No OFD packet to send [09:37:33]OFD Sender: No OFD packet to send [09:37:38]OFD Sender: No OFD packet to send [09:37:43]OFD Sender: No OFD packet to send [09:37:48]OFD Sender: No OFD packet to send [09:37:53]OFD Sender: No OFD packet to send [09:37:58]OFD Sender: No OFD packet to send [09:38:03]OFD Sender: No OFD packet to send [09:38:08]OFD Sender: No OFD packet to send [09:38:13]OFD Sender: No OFD packet to send [09:38:18]OFD Sender: No OFD packet to send [09:38:24]OFD Sender: No OFD packet to send [09:38:29]OFD Sender: No OFD packet to send [09:38:34]OFD Sender: No OFD packet to send [09:38:39]OFD Sender: No OFD packet to send [09:38:44]OFD Sender: No OFD packet to send [09:38:49]OFD Sender: No OFD packet to send [09:38:54]OFD Sender: No OFD packet to send [09:38:59]OFD Sender: No OFD packet to send [09:39:04]OFD Sender: No OFD packet to send [09:39:09]OFD Sender: No OFD packet to send [09:39:14]OFD Sender: No OFD packet to send [09:39:19]OFD Sender: No OFD packet to send [09:39:24]OFD Sender: No OFD packet to send [09:39:29]OFD Sender: No OFD packet to send [09:39:34]OFD Sender: No OFD packet to send [09:39:39]OFD Sender: No OFD packet to send [09:39:44]OFD Sender: No OFD packet to send [09:39:49]OFD Sender: No OFD packet to send [09:39:54]OFD Sender: No OFD packet to send [09:39:59]OFD Sender: No OFD packet to send [09:40:04]OFD Sender: No OFD packet to send [09:40:09]OFD Sender: No OFD packet to send [09:40:14]OFD Sender: No OFD packet to send [09:40:19]OFD Sender: No OFD packet to send [09:40:24]OFD Sender: No OFD packet to send [09:40:29]OFD Sender: No OFD packet to send [09:40:33]accept exits with 8 [09:40:33]New connection [09:40:33]New thread 3067014500 created [09:40:33]Thread 3067157860 joined [09:40:33]Waiting for new connection... [09:40:33] Sock 8.Parse request [09:40:33]Sock 8.Check first char [09:40:33]Sock 8.First char is OK [09:40:33]request: POST /json_proto HTTP/1.0 [09:40:33]Method: POST [09:40:33]URL: /json_proto [09:40:33]Method is POST - this is cgi request [09:40:33]url: /json_proto [09:40:33]query_string will be loaded in cgi processing [09:40:33]execute_cgi json_proto POST (null) [09:40:33]execute_cgi path=json_proto method=POST [09:40:33]POST find Content-Length [09:40:33]Host: 172.17.42.131:8080 [09:40:33]Content-Length: 679 [09:40:33]Content-Type: application/json [09:40:33] [09:40:33]POST finish read [09:40:33]Found Content-Length = 679 [09:40:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209680", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 39.380, "sum" : 3000.76, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:40:33]execute_script... [09:40: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)209680", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 39.380, "sum" : 3000.76, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:40:33]POST & json_proto [09:40:33]process_json_proto [09:40:33]json parsed OK: [09:40:33]protocol is kg_v1.0 [09:40:33]action value=close_receipt [09:40:33]process_action close_receipt [09:40:33]cmd_close_receipt [09:40:33]MH_GetDate [09:40:33]Write to MH i2c: F0 00 00 F7 38 1E [09:40:33]Write i2c OK [09:40:33]MH_I2C_Read... [09:40:33]Read from MH i2c: F0 [09:40:33]MH_I2C_Read... [09:40:33]Read from MH i2c: F0 09 00 [09:40:33]MH_I2C_Read... [09:40:33]Read from MH i2c: F0 09 00 F7 38 00 94 21 16 67 A0 18 CA 66 41 [09:40:33]GetLastDocTimeStamp 1729503373 [09:40:33]current date 1729503636 [09:40:33]FM_GetShiftState [09:40:33]SAM_PROTO_GetShiftState [09:40:33]wFMCommunicate request_size=4 [09:40:33]MH_SAM_APDU [09:40:33]CAPDU: 80 13 01 00 [09:40:33]Write to MH i2c: E2 08 00 F8 38 80 13 01 00 00 00 00 00 AD [09:40:33]Write i2c OK [09:40:33]MH_I2C_Read... [09:40:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:40:33]Read from MH i2c: E2 [09:40:33]MH_I2C_Read... [09:40:33]Read from MH i2c: E2 0E 00 [09:40:33]MH_I2C_Read... [09:40:33]Read from MH i2c: E2 0E 00 F8 38 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 0C [09:40:33]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [09:40:33]wFMCommunicate OK [09:40:33]SAM_PROTO_GetShiftState done [09:40:33]FM_GetShiftState done [09:40:33]opened in 1729469754 [09:40:33]opened+sec_in_day 1729556154 [09:40:33]quantity*price = 300075 [09:40:33]sum+1 = 300077 [09:40:33]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.76 ИТОГО: 3000.00 Внесено: 3000.00 СДАЧА: 0.00 НСП 1% : 26.55 НДС 12% : 318.66 Наличными: 3000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 91 21.10.2024 09:40 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 187627 ФПД: 194681732332653 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T094036&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187627&fm=194681732332653&tin=02508201610067®Number=0000000000100030&sum=300000 [09:40:34]StoreToDocumentArchive [09:40:34]shift 460 fd 187627 [09:40:34]save to /storage/0460/doc_00187627 [09:40:34]save last doc name /storage/0460/doc_00187627 to /storage/kkm_last_doc_name [09:40:34]save OK [09:40:34]Clear old archive folders... [09:40:34]ProcessDocumentItem done err = 0, tmpTLVsize=248 [09:40:34]tlvbuf is 010908C0 [09:40:34]SAM_PROTO_ClearQueue [09:40:34]wFMCommunicate request_size=4 [09:40:34]MH_SAM_APDU [09:40:34]CAPDU: 80 09 00 00 [09:40:34]Write to MH i2c: E2 08 00 05 39 80 09 00 00 00 00 00 00 B0 [09:40:34]Write i2c OK [09:40:34]MH_I2C_Read... [09:40:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:40:34]Read from MH i2c: E2 [09:40:34]MH_I2C_Read... [09:40:34]Read from MH i2c: E2 03 00 [09:40:34]MH_I2C_Read... [09:40:34]Read from MH i2c: E2 03 00 05 39 00 90 00 B2 [09:40:34]RAPDU: 90 00 [09:40:34]wFMCommunicate OK [09:40:34]SAM_PROTO_ClearQueue done [09:40:34]KKMCreateOFDPacket [09:40:34]OFDProtocolAddRootSTLVToBuf [09:40:34]FM_MakeSignedData [09:40:34]FM_MakeSignedData [09:40:34]SAM_PROTO_SignData [09:40:34]wFMCommunicate request_size=4 [09:40:34]MH_SAM_APDU [09:40:34]CAPDU: 80 0D 01 02 [09:40:34]Write to MH i2c: E2 08 00 06 39 80 0D 01 02 00 00 00 00 B8 [09:40:34]Write i2c OK [09:40:34]MH_I2C_Read... [09:40:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:40:34]Read from MH i2c: E2 [09:40:34]MH_I2C_Read... [09:40:34]Read from MH i2c: E2 03 00 [09:40:34]MH_I2C_Read... [09:40:34]Read from MH i2c: E2 03 00 06 39 00 90 00 B3 [09:40:34]RAPDU: 90 00 [09:40:34]wFMCommunicate OK [09:40:34]wFMCommunicate request_size=255 [09:40:34]MH_SAM_APDU [09:40:34]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 94 21 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 EB DC 02 00 35 04 06 00 B1 0F DF 7F [09:40:34]Write to MH i2c: E2 02 01 07 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 35 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 94 21 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 EB DC 02 00 35 04 06 00 B1 0F DF 7F 00 00 9B [09:40:34]Write i2c OK [09:40:34]MH_I2C_Read... [09:40:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:40:34]Read from MH i2c: E2 [09:40:34]MH_I2C_Read... [09:40:34]Read from MH i2c: E2 03 00 [09:40:34]MH_I2C_Read... [09:40:34]Read from MH i2c: E2 03 00 07 39 00 90 00 B4 [09:40:34]RAPDU: 90 00 [09:40:34]wFMCommunicate OK [09:40:34]wFMCommunicate request_size=7 [09:40:34]MH_SAM_APDU [09:40:34]CAPDU: 80 0D 02 02 02 FC 6D [09:40:34]Write to MH i2c: E2 0A 00 08 39 80 0D 02 02 02 00 FC 6D 00 00 28 [09:40:34]Write i2c OK [09:40:34]MH_I2C_Read... [09:40:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:40:34]OFD Sender: No OFD packet to send [09:40:34]Read from MH i2c: E2 [09:40:34]MH_I2C_Read... [09:40:34]Read from MH i2c: E2 03 00 [09:40:34]MH_I2C_Read... [09:40:34]Read from MH i2c: E2 03 00 08 39 00 90 00 B5 [09:40:34]RAPDU: 90 00 [09:40:34]wFMCommunicate OK [09:40:34]wFMCommunicate request_size=4 [09:40:34]MH_SAM_APDU [09:40:34]CAPDU: 80 0D 03 02 [09:40:34]Write to MH i2c: E2 08 00 09 39 80 0D 03 02 00 00 00 00 BD [09:40:34]Write i2c OK [09:40:34]MH_I2C_Read... [09:40:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:40:34]Read from MH i2c: E2 [09:40:34]MH_I2C_Read... [09:40:34]Read from MH i2c: E2 0B 00 [09:40:34]MH_I2C_Read... [09:40:34]Read from MH i2c: E2 0B 00 09 39 00 59 32 D9 8A 2E 83 A7 49 90 00 4D [09:40:34]RAPDU: 59 32 D9 8A 2E 83 A7 49 90 00 [09:40:34]wFMCommunicate OK [09:40:34]SAM_PROTO_SignData done [09:40:34]FM_MakeSignedData done [09:40:34]CreateOFDProtocolMessage [09:40:34]wFMCommunicate request_size=4 [09:40:34]MH_SAM_APDU [09:40:34]CAPDU: 80 11 00 00 [09:40:34]Write to MH i2c: E2 08 00 0A 39 80 11 00 00 00 00 00 00 BD [09:40:34]Write i2c OK [09:40:34]MH_I2C_Read... [09:40:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:40:34]Read from MH i2c: E2 [09:40:34]MH_I2C_Read... [09:40:34]Read from MH i2c: E2 17 00 [09:40:34]MH_I2C_Read... [09:40:34]Read from MH i2c: E2 17 00 0A 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 0B [09:40:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [09:40:34]wFMCommunicate OK [09:40:34]CreateOFDProtocolMessage done [09:40:34]OFDSenderStorePacket 187627 [09:40:34]StoreOFDPacket docnum=187627 [09:40:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 0D F6 04 01 32 5E 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 94 21 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 EB DC 02 00 35 04 06 00 B1 0F DF 7F FC 6D 59 32 D9 8A 2E 83 A7 49 [09:40:34]CheckFolder [09:40:34]dirname=/storage/ofd_packets [09:40:34]CheckFolder done [09:40:34]ProducePacketName [09:40:34]name=ofd_packets/00187627 [09:40:34]NVStorageSaveData ofd_packets/00187627 [09:40:34]File name is /storage/ofd_packets/00187627 [09:40:34]Write 298 bytes [09:40:34]NVStorageSaveData done [09:40:34]OFDSenderStorePacket done [09:40:34]KKMCreateOFDPacket done [09:40:34]NVStorageSaveData kkm_last_timestamp [09:40:34]File name is /storage/kkm_last_timestamp [09:40:34]Write 4 bytes [09:40:34]NVStorageSaveData done [09:40:34]ExternCall_PrintAddStr [09:40:34]wPrintStart [09:40:34]Write to MH i2c: 01 00 00 0B 39 44 [09:40:34]Write i2c OK [09:40:34]MH_I2C_Read... [09:40:34]Read from MH i2c: 01 [09:40:34]MH_I2C_Read... [09:40:34]Read from MH i2c: 01 07 00 [09:40:34]MH_I2C_Read... [09:40:34]Read from MH i2c: 01 07 00 0B 39 00 00 00 00 00 FF 0F 59 [09:40:34]RasterBufferAndPrint [09:40:34]line Счет N : (1)209680 [09:40:34]line ИНН: 02508201610067 [09:40:34]line Контрольно-Кассовый Чек [09:40:34]line ПРОДАЖА [09:40:34]line ТРК (МРК, ГНК) : 61 [09:40:34]line Товар: 2710194210 [09:40:34]line ДТ-К-5 [09:40:34]line 39.380 * 76.20 [09:40:34]line = 3000.76 [09:40:34]line НДС 12% НСП 1% [09:40:34]line > о реализуемом товаре [09:40:34]line ОКРУГЛЕНИЕ: -0.76 [09:40:34]line ИТОГО: 3000.00 [09:40:34]line Внесено: 3000.00 [09:40:34]line СДАЧА: 0.00 [09:40:34]line НСП 1% : 26.55 [09:40:34]line НДС 12% : 318.66 [09:40:34]line Наличными: 3000.00 [09:40:34]line Безнал.: 0.00 [09:40:34]line Место: АЗС № 86 "Партнер Нефть" [09:40:34]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [09:40:34]line СНО: Общий режим [09:40:34]line Чек 91 21.10.2024 09:40 [09:40:34]line Смена: 460 ФФД: 1.0 [09:40:34]line ЗНМ: 0300000155 [09:40:34]line РНМ: 0000000000100030 [09:40:34]line Версия ККМ: 001 [09:40:34]line ФМ: 0000000000965340 [09:40:34]line ФД: 187627 [09:40:34]line ФПД: 194681732332653 [09:40:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T094036&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187627&fm=194681732332653&tin=02508201610067®Number=0000000000100030&sum=300000 [09:40:34]written 0, free lines is 4095 [09:40:34]OFD Sender: Processing packet 187627 [packets to send 1062, broken 1061] [09:40:34]ProducePacketName [09:40:34]name=ofd_packets/00187627 [09:40:34]OFD Sender: To server: pG, [09:40:34]CommunicateWithHost lk.salyk.kg:30040 [09:40:34]ConnectInit lk.salyk.kg [09:40:35]Connected sock=10 [09:40:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 0D F6 04 01 32 5E 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 94 21 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 EB DC 02 00 35 04 06 00 B1 0F DF 7F FC 6D 59 32 D9 8A 2E 83 A7 49 [09:40:35]Write to MH i2c: 01 00 00 36 39 6F [09:40:35]Write i2c OK [09:40:35]MH_I2C_Read... [09:40:35]Read from MH i2c: 01 [09:40:35]MH_I2C_Read... [09:40:35]Read from MH i2c: 01 07 00 [09:40:35]MH_I2C_Read... [09:40:35]Read from MH i2c: 01 07 00 36 39 00 00 00 00 00 76 0C F8 [09:40:35]RasterBufferAndPrint [09:40:35]line [09:40:35]line [09:40:35]line [09:40:35]line [09:40:35]line [09:40:35]written 0, free lines is 3192 [09:40:35]MH_Cut [09:40:35]Write to MH i2c: D1 01 00 3D 39 01 48 [09:40:35]Write i2c OK [09:40:35]MH_I2C_Read... [09:40:35]Read from MH i2c: D1 [09:40:35]MH_I2C_Read... [09:40:35]Read from MH i2c: D1 01 00 [09:40:35]MH_I2C_Read... [09:40:35]Read from MH i2c: D1 01 00 3D 39 00 47 [09:40:35]Write to MH i2c: 01 00 00 3E 39 77 [09:40:35]Write i2c OK [09:40:35]MH_I2C_Read... [09:40:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 6B BB 47 00 C6 D3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 EB DC 02 00 F4 03 04 00 84 CB 15 67 B6 04 01 00 00 12 69 31 08 C4 C0 D2 36 [09:40:35]CommunicateWithHost err = 0 [09:40:35]CheckOFDResponse [09:40:35]1017 (14) - 77093643461234 [09:40:35]1041 (16) - 0000000000965340 [09:40:35]1040 (4) - 187627 [09:40:35]1012 (4) - 21.10.2024 03:33 [09:40:35]1206 (1) - 0 [09:40:35]OFD Sender: Remove packet 187627 [09:40:35]ProducePacketName [09:40:35]name=ofd_packets/00187627 [09:40:35]NVStorageDeleteData [09:40:36]OFD Sender: No OFD packet to send [09:40:36]*** Cut start [09:40:36]*** Partial cut [09:40:36]*** CUTSNS_PIN = 1 [09:40:36]*** CUTSNS_PIN = 0 [09:40:36]*** Brake cut motor [09:40:36]Read from MH i2c: 01 [09:40:36]MH_I2C_Read... [09:40:36]*** Stop cut motor [09:40:36]*** Cut end [09:40:36]Read from MH i2c: 01 07 00 [09:40:36]MH_I2C_Read... [09:40:36]Read from MH i2c: 01 07 00 3E 39 00 00 00 00 00 FF 0F 8C [09:40:36]process_action close_receipt done [09:40:36]requested_data is exist [09:40:36]produce_requested_data [09:40:36]requested_item fm.sn is exist - process it [09:40:36]wFMCommunicate request_size=4 [09:40:36]MH_SAM_APDU [09:40:36]CAPDU: 80 11 00 00 [09:40:36]Write to MH i2c: E2 08 00 3F 39 80 11 00 00 00 00 00 00 F2 [09:40:36]Write i2c OK [09:40:36]MH_I2C_Read... [09:40:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:40:37]Read from MH i2c: E2 [09:40:37]MH_I2C_Read... [09:40:37]Read from MH i2c: E2 17 00 [09:40:37]MH_I2C_Read... [09:40:37]Read from MH i2c: E2 17 00 3F 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 40 [09:40:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [09:40:37]wFMCommunicate OK [09:40:37]requested_item fd.num is exist - process it [09:40:37]SAM_PROTO_GetFieldsCounters [09:40:37]wFMCommunicate request_size=4 [09:40:37]MH_SAM_APDU [09:40:37]CAPDU: 80 13 00 00 [09:40:37]Write to MH i2c: E2 08 00 40 39 80 13 00 00 00 00 00 00 F5 [09:40:37]Write i2c OK [09:40:37]MH_I2C_Read... [09:40:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:40:37]Read from MH i2c: E2 [09:40:37]MH_I2C_Read... [09:40:37]Read from MH i2c: E2 62 00 [09:40:37]MH_I2C_Read... [09:40:37]Read from MH i2c: E2 62 00 40 39 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 EB DC 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 5B 00 00 00 5E 04 04 00 5B 00 00 00 57 04 04 00 5C 00 00 00 19 04 04 00 00 00 00 00 90 00 A3 [09:40:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 EB DC 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 5B 00 00 00 5E 04 04 00 5B 00 00 00 57 04 04 00 5C 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:40:37]wFMCommunicate OK [09:40:37]SAM_PROTO_GetFieldsCounters done [09:40:37]requested_item shift.num is exist - process it [09:40:37]requested_item shift.opened is exist - process it [09:40:37]req_shift_opened [09:40:37]FM_GetShiftState [09:40:37]SAM_PROTO_GetShiftState [09:40:37]wFMCommunicate request_size=4 [09:40:37]MH_SAM_APDU [09:40:37]CAPDU: 80 13 01 00 [09:40:37]Write to MH i2c: E2 08 00 41 39 80 13 01 00 00 00 00 00 F7 [09:40:37]Write i2c OK [09:40:37]MH_I2C_Read... [09:40:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:40:37]Read from MH i2c: E2 [09:40:37]MH_I2C_Read... [09:40:37]Read from MH i2c: E2 0E 00 [09:40:37]MH_I2C_Read... [09:40:37]Read from MH i2c: E2 0E 00 41 39 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 56 [09:40:37]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [09:40:37]wFMCommunicate OK [09:40:37]SAM_PROTO_GetShiftState done [09:40:37]FM_GetShiftState done [09:40:37]req_shift_opened done [09:40:37]requested_item shift.open_date is exist - process it [09:40:37]req_shift_open_date [09:40:37]req_shift_open_date done [09:40:37]produce_requested_data done [09:40:37]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187627,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [09:40:37]process_action_free close_receipt [09:40:37]json_value_free [09:40:37]json_value_free done [09:40:37]process_json_proto returns [09:40:37]Send response to host [09:40:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187627,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [09:40:37]free response buf [09:40:37]execute_script done [09:40:37]execute_script returns [09:40:37]free content buf [09:40:37]Sock 8.Close socket [09:40:37]Sock 8.Thread stoped [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:14]accept exits with 9 [09:41:14]New connection [09:41:14]New thread 3067157860 created [09:41:14]Thread 3067014500 joined [09:41:14]Waiting for new connection... [09:41:14] Sock 9.Parse request [09:41:14]Sock 9.Check first char [09:41:14]Sock 9.First char is OK [09:41:14]request: POST /json_proto HTTP/1.0 [09:41:14]Method: POST [09:41:14]URL: /json_proto [09:41:14]Method is POST - this is cgi request [09:41:14]url: /json_proto [09:41:14]query_string will be loaded in cgi processing [09:41:14]execute_cgi json_proto POST (null) [09:41:14]execute_cgi path=json_proto method=POST [09:41:14]POST find Content-Length [09:41:14]Host: 172.17.42.131:8080 [09:41:14]Content-Length: 751 [09:41:14]Content-Type: application/json [09:41:14] [09:41:14]POST finish read [09:41:14]Found Content-Length = 751 [09:41:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209679", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 80.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\u000A30089124", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:41:14]execute_script... [09:41:14]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209679", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 80.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\u000A30089124", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:41:14]POST & json_proto [09:41:14]process_json_proto [09:41:14]json parsed OK: [09:41:14]protocol is kg_v1.0 [09:41:14]action value=close_receipt [09:41:14]process_action close_receipt [09:41:14]cmd_close_receipt [09:41:14]MH_GetDate [09:41:14]Write to MH i2c: F0 00 00 42 39 6A [09:41:14]Write i2c OK [09:41:14]MH_I2C_Read... [09:41:14]Read from MH i2c: F0 [09:41:14]MH_I2C_Read... [09:41:14]Read from MH i2c: F0 09 00 [09:41:14]MH_I2C_Read... [09:41:14]Read from MH i2c: F0 09 00 42 39 00 BE 21 16 67 A0 18 CA 66 B7 [09:41:14]GetLastDocTimeStamp 1729503636 [09:41:14]current date 1729503678 [09:41:14]FM_GetShiftState [09:41:14]SAM_PROTO_GetShiftState [09:41:14]wFMCommunicate request_size=4 [09:41:14]MH_SAM_APDU [09:41:14]CAPDU: 80 13 01 00 [09:41:14]Write to MH i2c: E2 08 00 43 39 80 13 01 00 00 00 00 00 F9 [09:41:14]Write i2c OK [09:41:14]MH_I2C_Read... [09:41:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:41:14]Read from MH i2c: E2 [09:41:14]MH_I2C_Read... [09:41:14]Read from MH i2c: E2 0E 00 [09:41:14]MH_I2C_Read... [09:41:14]Read from MH i2c: E2 0E 00 43 39 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 58 [09:41:14]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [09:41:14]wFMCommunicate OK [09:41:14]SAM_PROTO_GetShiftState done [09:41:14]FM_GetShiftState done [09:41:14]opened in 1729469754 [09:41:14]opened+sec_in_day 1729556154 [09:41:14]quantity*price = 0 [09:41:14]sum+1 = 1 [09:41:14]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 92 21.10.2024 09:41 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Талоны: ТК ГПНА Online 30089124 ФМ: 0000000000965340 ФД: 187628 ФПД: 159804519082095 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T094118&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187628&fm=159804519082095&tin=02508201610067®Number=0000000000100030&sum=0 [09:41:15]StoreToDocumentArchive [09:41:15]shift 460 fd 187628 [09:41:15]save to /storage/0460/doc_00187628 [09:41:15]save last doc name /storage/0460/doc_00187628 to /storage/kkm_last_doc_name [09:41:15]save OK [09:41:15]Clear old archive folders... [09:41:15]ProcessDocumentItem done err = 0, tmpTLVsize=248 [09:41:15]tlvbuf is 01121590 [09:41:15]SAM_PROTO_ClearQueue [09:41:15]wFMCommunicate request_size=4 [09:41:15]MH_SAM_APDU [09:41:15]CAPDU: 80 09 00 00 [09:41:15]Write to MH i2c: E2 08 00 50 39 80 09 00 00 00 00 00 00 FB [09:41:15]Write i2c OK [09:41:15]MH_I2C_Read... [09:41:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:41:16]Read from MH i2c: E2 [09:41:16]MH_I2C_Read... [09:41:16]Read from MH i2c: E2 03 00 [09:41:16]MH_I2C_Read... [09:41:16]Read from MH i2c: E2 03 00 50 39 00 90 00 FD [09:41:16]RAPDU: 90 00 [09:41:16]wFMCommunicate OK [09:41:16]SAM_PROTO_ClearQueue done [09:41:16]KKMCreateOFDPacket [09:41:16]OFDProtocolAddRootSTLVToBuf [09:41:16]FM_MakeSignedData [09:41:16]FM_MakeSignedData [09:41:16]SAM_PROTO_SignData [09:41:16]wFMCommunicate request_size=4 [09:41:16]MH_SAM_APDU [09:41:16]CAPDU: 80 0D 01 02 [09:41:16]Write to MH i2c: E2 08 00 51 39 80 0D 01 02 00 00 00 00 03 [09:41:16]Write i2c OK [09:41:16]MH_I2C_Read... [09:41:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:41:16]Read from MH i2c: E2 [09:41:16]MH_I2C_Read... [09:41:16]Read from MH i2c: E2 03 00 [09:41:16]MH_I2C_Read... [09:41:16]Read from MH i2c: E2 03 00 51 39 00 90 00 FE [09:41:16]RAPDU: 90 00 [09:41:16]wFMCommunicate OK [09:41:16]wFMCommunicate request_size=255 [09:41:16]MH_SAM_APDU [09:41:16]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 80 38 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 BE 21 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 EC DC 02 00 35 04 06 00 91 57 63 97 [09:41:16]Write to MH i2c: E2 02 01 52 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 35 FF 03 08 00 03 80 38 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 BE 21 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 EC DC 02 00 35 04 06 00 91 57 63 97 00 00 30 [09:41:16]Write i2c OK [09:41:16]MH_I2C_Read... [09:41:16]OFD Sender: No OFD packet to send [09:41:16]Read from MH i2c: E2 [09:41:16]MH_I2C_Read... [09:41:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:41:16]Read from MH i2c: E2 03 00 [09:41:16]MH_I2C_Read... [09:41:16]Read from MH i2c: E2 03 00 52 39 00 90 00 FF [09:41:16]RAPDU: 90 00 [09:41:16]wFMCommunicate OK [09:41:16]wFMCommunicate request_size=7 [09:41:16]MH_SAM_APDU [09:41:16]CAPDU: 80 0D 02 02 02 E8 6F [09:41:16]Write to MH i2c: E2 0A 00 53 39 80 0D 02 02 02 00 E8 6F 00 00 61 [09:41:16]Write i2c OK [09:41:16]MH_I2C_Read... [09:41:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:41:16]Read from MH i2c: E2 [09:41:16]MH_I2C_Read... [09:41:16]Read from MH i2c: E2 03 00 [09:41:16]MH_I2C_Read... [09:41:16]Read from MH i2c: E2 03 00 53 39 00 90 00 00 [09:41:16]RAPDU: 90 00 [09:41:16]wFMCommunicate OK [09:41:16]wFMCommunicate request_size=4 [09:41:16]MH_SAM_APDU [09:41:16]CAPDU: 80 0D 03 02 [09:41:16]Write to MH i2c: E2 08 00 54 39 80 0D 03 02 00 00 00 00 08 [09:41:16]Write i2c OK [09:41:16]MH_I2C_Read... [09:41:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:41:16]Read from MH i2c: E2 [09:41:16]MH_I2C_Read... [09:41:16]Read from MH i2c: E2 0B 00 [09:41:16]MH_I2C_Read... [09:41:16]Read from MH i2c: E2 0B 00 54 39 00 32 19 A5 81 62 72 64 6D 90 00 1F [09:41:16]RAPDU: 32 19 A5 81 62 72 64 6D 90 00 [09:41:16]wFMCommunicate OK [09:41:16]SAM_PROTO_SignData done [09:41:16]FM_MakeSignedData done [09:41:16]CreateOFDProtocolMessage [09:41:16]wFMCommunicate request_size=4 [09:41:16]MH_SAM_APDU [09:41:16]CAPDU: 80 11 00 00 [09:41:16]Write to MH i2c: E2 08 00 55 39 80 11 00 00 00 00 00 00 08 [09:41:16]Write i2c OK [09:41:16]MH_I2C_Read... [09:41:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:41:16]Read from MH i2c: E2 [09:41:16]MH_I2C_Read... [09:41:16]Read from MH i2c: E2 17 00 [09:41:16]MH_I2C_Read... [09:41:16]Read from MH i2c: E2 17 00 55 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 56 [09:41:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [09:41:16]wFMCommunicate OK [09:41:16]CreateOFDProtocolMessage done [09:41:16]OFDSenderStorePacket 187628 [09:41:16]StoreOFDPacket docnum=187628 [09:41:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 E1 D0 04 01 9A 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 35 FF 03 08 00 03 80 38 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 BE 21 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 EC DC 02 00 35 04 06 00 91 57 63 97 E8 6F 32 19 A5 81 62 72 64 6D [09:41:16]CheckFolder [09:41:16]dirname=/storage/ofd_packets [09:41:16]CheckFolder done [09:41:16]ProducePacketName [09:41:16]name=ofd_packets/00187628 [09:41:16]NVStorageSaveData ofd_packets/00187628 [09:41:16]File name is /storage/ofd_packets/00187628 [09:41:16]Write 298 bytes [09:41:16]NVStorageSaveData done [09:41:16]OFDSenderStorePacket done [09:41:16]KKMCreateOFDPacket done [09:41:16]NVStorageSaveData kkm_last_timestamp [09:41:16]File name is /storage/kkm_last_timestamp [09:41:16]Write 4 bytes [09:41:16]NVStorageSaveData done [09:41:16]ExternCall_PrintAddStr [09:41:16]wPrintStart [09:41:16]Write to MH i2c: 01 00 00 56 39 8F [09:41:16]Write i2c OK [09:41:16]MH_I2C_Read... [09:41:16]Read from MH i2c: 01 [09:41:16]MH_I2C_Read... [09:41:16]Read from MH i2c: 01 07 00 [09:41:16]MH_I2C_Read... [09:41:16]Read from MH i2c: 01 07 00 56 39 00 00 00 00 00 FF 0F A4 [09:41:16]RasterBufferAndPrint [09:41:16]line Счет N : (1)209679 [09:41:16]line ИНН: 02508201610067 [09:41:16]line Контрольно-Кассовый Чек [09:41:16]line ПРОДАЖА [09:41:16]line ТРК (МРК, ГНК) : 51 [09:41:16]line Товар: 2710194210 [09:41:16]line ДТ-К-5 [09:41:16]line 80.000 * 0.00 [09:41:16]line = 0.00 [09:41:16]line НДС 12% НСП 1% [09:41:16]line > о реализуемом товаре [09:41:16]line ИТОГО: 0.00 [09:41:16]line НСП 1% : 0.00 [09:41:16]line НДС 12% : 0.00 [09:41:16]line Наличными: 0.00 [09:41:16]line Безнал.: 0.00 [09:41:16]line Место: АЗС № 86 "Партнер Нефть" [09:41:16]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [09:41:16]line СНО: Общий режим [09:41:16]line Чек 92 21.10.2024 09:41 [09:41:16]line Смена: 460 ФФД: 1.0 [09:41:16]line ЗНМ: 0300000155 [09:41:16]line РНМ: 0000000000100030 [09:41:16]line Версия ККМ: 001 [09:41:16]line Талоны: ТК ГПНА Online [09:41:16]line 30089124 [09:41:16]line ФМ: 0000000000965340 [09:41:16]line ФД: 187628 [09:41:16]line ФПД: 159804519082095 [09:41:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T094118&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187628&fm=159804519082095&tin=02508201610067®Number=0000000000100030&sum=0 [09:41:16]written 0, free lines is 4095 [09:41:16]OFD Sender: Processing packet 187628 [packets to send 1062, broken 1061] [09:41:16]ProducePacketName [09:41:16]name=ofd_packets/00187628 [09:41:16]OFD Sender: To server: pG, [09:41:16]CommunicateWithHost lk.salyk.kg:30040 [09:41:16]ConnectInit lk.salyk.kg [09:41:16]Connected sock=10 [09:41:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 E1 D0 04 01 9A 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 35 FF 03 08 00 03 80 38 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 BE 21 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 EC DC 02 00 35 04 06 00 91 57 63 97 E8 6F 32 19 A5 81 62 72 64 6D [09:41:16]Write to MH i2c: 01 00 00 80 39 B9 [09:41:16]Write i2c OK [09:41:16]MH_I2C_Read... [09:41:16]Read from MH i2c: 01 [09:41:16]MH_I2C_Read... [09:41:16]Read from MH i2c: 01 07 00 [09:41:16]MH_I2C_Read... [09:41:16]Read from MH i2c: 01 07 00 80 39 00 00 00 00 00 8D 0C 59 [09:41:16]RasterBufferAndPrint [09:41:16]line [09:41:16]line [09:41:16]line [09:41:16]line [09:41:16]line [09:41:16]written 0, free lines is 3218 [09:41:17]MH_Cut [09:41:17]Write to MH i2c: D1 01 00 87 39 01 92 [09:41:17]Write i2c OK [09:41:17]MH_I2C_Read... [09:41:17]Read from MH i2c: D1 [09:41:17]MH_I2C_Read... [09:41:17]Read from MH i2c: D1 01 00 [09:41:17]MH_I2C_Read... [09:41:17]Read from MH i2c: D1 01 00 87 39 00 91 [09:41:17]Write to MH i2c: 01 00 00 88 39 C1 [09:41:17]Write i2c OK [09:41:17]MH_I2C_Read... [09:41:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 8A 63 47 00 F1 F6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 EC DC 02 00 F4 03 04 00 AE CB 15 67 B6 04 01 00 00 00 69 78 76 7B 06 D3 0E [09:41:17]CommunicateWithHost err = 0 [09:41:17]CheckOFDResponse [09:41:17]1017 (14) - 77093643461234 [09:41:17]1041 (16) - 0000000000965340 [09:41:17]1040 (4) - 187628 [09:41:17]1012 (4) - 21.10.2024 03:34 [09:41:17]1206 (1) - 0 [09:41:17]OFD Sender: Remove packet 187628 [09:41:17]ProducePacketName [09:41:17]name=ofd_packets/00187628 [09:41:17]NVStorageDeleteData [09:41:17]OFD Sender: No OFD packet to send [09:41:18]*** Cut start [09:41:18]*** Partial cut [09:41:18]*** CUTSNS_PIN = 1 [09:41:18]*** CUTSNS_PIN = 0 [09:41:18]*** Brake cut motor [09:41:18]Read from MH i2c: 01 [09:41:18]MH_I2C_Read... [09:41:18]*** Stop cut motor [09:41:18]*** Cut end [09:41:18]Read from MH i2c: 01 07 00 [09:41:18]MH_I2C_Read... [09:41:18]Read from MH i2c: 01 07 00 88 39 00 00 00 00 00 FF 0F D6 [09:41:18]process_action close_receipt done [09:41:18]requested_data is exist [09:41:18]produce_requested_data [09:41:18]requested_item fm.sn is exist - process it [09:41:18]wFMCommunicate request_size=4 [09:41:18]MH_SAM_APDU [09:41:18]CAPDU: 80 11 00 00 [09:41:18]Write to MH i2c: E2 08 00 89 39 80 11 00 00 00 00 00 00 3C [09:41:18]Write i2c OK [09:41:18]MH_I2C_Read... [09:41:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:41:18]Read from MH i2c: E2 [09:41:18]MH_I2C_Read... [09:41:18]Read from MH i2c: E2 17 00 [09:41:18]MH_I2C_Read... [09:41:18]Read from MH i2c: E2 17 00 89 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 8A [09:41:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [09:41:18]wFMCommunicate OK [09:41:18]requested_item fd.num is exist - process it [09:41:18]SAM_PROTO_GetFieldsCounters [09:41:18]wFMCommunicate request_size=4 [09:41:18]MH_SAM_APDU [09:41:18]CAPDU: 80 13 00 00 [09:41:18]Write to MH i2c: E2 08 00 8A 39 80 13 00 00 00 00 00 00 3F [09:41:18]Write i2c OK [09:41:18]MH_I2C_Read... [09:41:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:41:18]Read from MH i2c: E2 [09:41:18]MH_I2C_Read... [09:41:18]Read from MH i2c: E2 62 00 [09:41:18]MH_I2C_Read... [09:41:18]Read from MH i2c: E2 62 00 8A 39 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 EC DC 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 5C 00 00 00 5E 04 04 00 5C 00 00 00 57 04 04 00 5D 00 00 00 19 04 04 00 00 00 00 00 90 00 F1 [09:41:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 EC DC 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 5C 00 00 00 5E 04 04 00 5C 00 00 00 57 04 04 00 5D 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:41:18]wFMCommunicate OK [09:41:18]SAM_PROTO_GetFieldsCounters done [09:41:18]requested_item shift.num is exist - process it [09:41:18]requested_item shift.opened is exist - process it [09:41:18]req_shift_opened [09:41:18]FM_GetShiftState [09:41:18]SAM_PROTO_GetShiftState [09:41:18]wFMCommunicate request_size=4 [09:41:18]MH_SAM_APDU [09:41:18]CAPDU: 80 13 01 00 [09:41:18]Write to MH i2c: E2 08 00 8B 39 80 13 01 00 00 00 00 00 41 [09:41:18]Write i2c OK [09:41:18]MH_I2C_Read... [09:41:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:41:18]Read from MH i2c: E2 [09:41:18]MH_I2C_Read... [09:41:18]Read from MH i2c: E2 0E 00 [09:41:18]MH_I2C_Read... [09:41:18]Read from MH i2c: E2 0E 00 8B 39 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 A0 [09:41:18]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [09:41:18]wFMCommunicate OK [09:41:18]SAM_PROTO_GetShiftState done [09:41:18]FM_GetShiftState done [09:41:18]req_shift_opened done [09:41:18]requested_item shift.open_date is exist - process it [09:41:18]req_shift_open_date [09:41:18]req_shift_open_date done [09:41:18]produce_requested_data done [09:41:18]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187628,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [09:41:18]process_action_free close_receipt [09:41:18]json_value_free [09:41:18]json_value_free done [09:41:18]process_json_proto returns [09:41:18]Send response to host [09:41:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187628,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [09:41:18]free response buf [09:41:18]execute_script done [09:41:18]execute_script returns [09:41:18]free content buf [09:41:18]Sock 9.Close socket [09:41:18]Sock 9.Thread stoped [09:41:22]OFD Sender: No OFD packet to send [09:41:27]OFD Sender: No OFD packet to send [09:41:32]OFD Sender: No OFD packet to send [09:41:37]OFD Sender: No OFD packet to send [09:41:41]accept exits with 8 [09:41:41]New connection [09:41:41]New thread 3067014500 created [09:41:41]Thread 3067157860 joined [09:41:41]Waiting for new connection... [09:41:41] Sock 8.Parse request [09:41:41]Sock 8.Check first char [09:41:41]Sock 8.First char is OK [09:41:41]request: POST /json_proto HTTP/1.0 [09:41:41]Method: POST [09:41:41]URL: /json_proto [09:41:41]Method is POST - this is cgi request [09:41:41]url: /json_proto [09:41:41]query_string will be loaded in cgi processing [09:41:41]execute_cgi json_proto POST (null) [09:41:41]execute_cgi path=json_proto method=POST [09:41:41]POST find Content-Length [09:41:41]Host: 172.17.42.131:8080 [09:41:41]Content-Length: 983 [09:41:41]Content-Type: application/json [09:41:41] [09:41:41]POST finish read [09:41:41]Found Content-Length = 983 [09:41:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209681", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 65.90, "quantity" : 30.350, "sum" : 2000.07, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0410\u0418-92\u000A\u043D\u043E\u043C\u0435\u0440 86\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 30.35 \u0441\u043E\u043C", "deposit" : 2500.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:41:41]execute_script... [09:41: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)209681", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 65.90, "quantity" : 30.350, "sum" : 2000.07, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0410\u0418-92\u000A\u043D\u043E\u043C\u0435\u0440 86\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 30.35 \u0441\u043E\u043C", "deposit" : 2500.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:41:41]POST & json_proto [09:41:41]process_json_proto [09:41:41]json parsed OK: [09:41:41]protocol is kg_v1.0 [09:41:41]action value=close_receipt [09:41:41]process_action close_receipt [09:41:41]cmd_close_receipt [09:41:41]MH_GetDate [09:41:41]Write to MH i2c: F0 00 00 8C 39 B4 [09:41:41]Write i2c OK [09:41:41]MH_I2C_Read... [09:41:41]Read from MH i2c: F0 [09:41:41]MH_I2C_Read... [09:41:41]Read from MH i2c: F0 09 00 [09:41:41]MH_I2C_Read... [09:41:41]Read from MH i2c: F0 09 00 8C 39 00 D9 21 16 67 A0 18 CA 66 1C [09:41:41]GetLastDocTimeStamp 1729503678 [09:41:41]current date 1729503705 [09:41:41]FM_GetShiftState [09:41:41]SAM_PROTO_GetShiftState [09:41:41]wFMCommunicate request_size=4 [09:41:41]MH_SAM_APDU [09:41:41]CAPDU: 80 13 01 00 [09:41:41]Write to MH i2c: E2 08 00 8D 39 80 13 01 00 00 00 00 00 43 [09:41:41]Write i2c OK [09:41:41]MH_I2C_Read... [09:41:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:41:41]Read from MH i2c: E2 [09:41:41]MH_I2C_Read... [09:41:41]Read from MH i2c: E2 0E 00 [09:41:41]MH_I2C_Read... [09:41:41]Read from MH i2c: E2 0E 00 8D 39 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 A2 [09:41:41]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [09:41:41]wFMCommunicate OK [09:41:41]SAM_PROTO_GetShiftState done [09:41:41]FM_GetShiftState done [09:41:41]opened in 1729469754 [09:41:41]opened+sec_in_day 1729556154 [09:41:41]quantity*price = 200006 [09:41:41]sum+1 = 200008 [09:41:41]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.07 ИТОГО: 2000.00 Внесено: 2500.00 СДАЧА: 500.00 НСП 1% : 17.70 НДС 12% : 212.40 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 93 21.10.2024 09:41 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Дисконтная программа АИ-92 номер 86 сэкономлено 30.35 сом ФМ: 0000000000965340 ФД: 187629 ФПД: 86304591056571 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T094145&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187629&fm=86304591056571&tin=02508201610067®Number=0000000000100030&sum=200000 [09:41:43]StoreToDocumentArchive [09:41:43]shift 460 fd 187629 [09:41:43]save to /storage/0460/doc_00187629 [09:41:43]save last doc name /storage/0460/doc_00187629 to /storage/kkm_last_doc_name [09:41:43]save OK [09:41:43]Clear old archive folders... [09:41:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:41:43]tlvbuf is 0112F130 [09:41:43]SAM_PROTO_ClearQueue [09:41:43]wFMCommunicate request_size=4 [09:41:43]MH_SAM_APDU [09:41:43]CAPDU: 80 09 00 00 [09:41:43]Write to MH i2c: E2 08 00 9A 39 80 09 00 00 00 00 00 00 45 [09:41:43]Write i2c OK [09:41:43]MH_I2C_Read... [09:41:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:41:43]Read from MH i2c: E2 [09:41:43]MH_I2C_Read... [09:41:43]Read from MH i2c: E2 03 00 [09:41:43]MH_I2C_Read... [09:41:43]Read from MH i2c: E2 03 00 9A 39 00 90 00 47 [09:41:43]RAPDU: 90 00 [09:41:43]wFMCommunicate OK [09:41:43]SAM_PROTO_ClearQueue done [09:41:43]KKMCreateOFDPacket [09:41:43]OFDProtocolAddRootSTLVToBuf [09:41:43]FM_MakeSignedData [09:41:43]FM_MakeSignedData [09:41:43]SAM_PROTO_SignData [09:41:43]wFMCommunicate request_size=4 [09:41:43]MH_SAM_APDU [09:41:43]CAPDU: 80 0D 01 02 [09:41:43]Write to MH i2c: E2 08 00 9B 39 80 0D 01 02 00 00 00 00 4D [09:41:43]Write i2c OK [09:41:43]MH_I2C_Read... [09:41:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:41:43]Read from MH i2c: E2 [09:41:43]MH_I2C_Read... [09:41:43]Read from MH i2c: E2 03 00 [09:41:43]MH_I2C_Read... [09:41:43]Read from MH i2c: E2 03 00 9B 39 00 90 00 48 [09:41:43]RAPDU: 90 00 [09:41:43]wFMCommunicate OK [09:41:43]wFMCommunicate request_size=255 [09:41:43]MH_SAM_APDU [09:41: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 33 FF 03 08 00 03 8E 76 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 47 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 F8 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 5D 00 00 00 F4 03 04 00 D9 21 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 ED DC 02 00 35 04 06 00 4E [09:41:43]Write to MH i2c: E2 02 01 9C 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 33 FF 03 08 00 03 8E 76 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 47 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 F8 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 5D 00 00 00 F4 03 04 00 D9 21 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 ED DC 02 00 35 04 06 00 4E 00 00 01 [09:41:43]Write i2c OK [09:41:43]MH_I2C_Read... [09:41:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:41:43]Read from MH i2c: E2 [09:41:43]MH_I2C_Read... [09:41:43]Read from MH i2c: E2 03 00 [09:41:43]MH_I2C_Read... [09:41:43]Read from MH i2c: E2 03 00 9C 39 00 90 00 49 [09:41:43]RAPDU: 90 00 [09:41:43]wFMCommunicate OK [09:41:43]wFMCommunicate request_size=10 [09:41:43]MH_SAM_APDU [09:41:43]CAPDU: 80 0D 02 02 05 7E 5A 7E 0E BB [09:41:43]Write to MH i2c: E2 0D 00 9D 39 80 0D 02 02 05 00 7E 5A 7E 0E BB 00 00 79 [09:41:43]Write i2c OK [09:41:43]MH_I2C_Read... [09:41:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:41:43]Read from MH i2c: E2 [09:41:43]MH_I2C_Read... [09:41:43]Read from MH i2c: E2 03 00 [09:41:43]MH_I2C_Read... [09:41:43]Read from MH i2c: E2 03 00 9D 39 00 90 00 4A [09:41:43]RAPDU: 90 00 [09:41:43]wFMCommunicate OK [09:41:43]wFMCommunicate request_size=4 [09:41:43]MH_SAM_APDU [09:41:43]CAPDU: 80 0D 03 02 [09:41:43]Write to MH i2c: E2 08 00 9E 39 80 0D 03 02 00 00 00 00 52 [09:41:43]Write i2c OK [09:41:43]MH_I2C_Read... [09:41:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:41:43]Read from MH i2c: E2 [09:41:43]MH_I2C_Read... [09:41:43]Read from MH i2c: E2 0B 00 [09:41:43]MH_I2C_Read... [09:41:43]Read from MH i2c: E2 0B 00 9E 39 00 BB AE 05 32 DE 85 80 D7 90 00 AD [09:41:43]RAPDU: BB AE 05 32 DE 85 80 D7 90 00 [09:41:43]wFMCommunicate OK [09:41:43]SAM_PROTO_SignData done [09:41:43]FM_MakeSignedData done [09:41:43]CreateOFDProtocolMessage [09:41:43]wFMCommunicate request_size=4 [09:41:43]MH_SAM_APDU [09:41:43]CAPDU: 80 11 00 00 [09:41:43]Write to MH i2c: E2 08 00 9F 39 80 11 00 00 00 00 00 00 52 [09:41:43]Write i2c OK [09:41:43]MH_I2C_Read... [09:41:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:41:43]Read from MH i2c: E2 [09:41:43]MH_I2C_Read... [09:41:43]Read from MH i2c: E2 17 00 [09:41:43]MH_I2C_Read... [09:41:43]Read from MH i2c: E2 17 00 9F 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 A0 [09:41:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [09:41:43]wFMCommunicate OK [09:41:43]CreateOFDProtocolMessage done [09:41:43]OFDSenderStorePacket 187629 [09:41:43]StoreOFDPacket docnum=187629 [09:41:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 B4 B0 07 01 0B 32 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 8E 76 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 47 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 F8 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 5D 00 00 00 F4 03 04 00 D9 21 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 ED DC 02 00 35 04 06 00 4E 7E 5A 7E 0E BB BB AE 05 32 DE 85 80 D7 [09:41:43]CheckFolder [09:41:43]dirname=/storage/ofd_packets [09:41:43]CheckFolder done [09:41:43]ProducePacketName [09:41:43]name=ofd_packets/00187629 [09:41:43]NVStorageSaveData ofd_packets/00187629 [09:41:43]File name is /storage/ofd_packets/00187629 [09:41:43]Write 301 bytes [09:41:43]NVStorageSaveData done [09:41:43]OFDSenderStorePacket done [09:41:43]KKMCreateOFDPacket done [09:41:43]NVStorageSaveData kkm_last_timestamp [09:41:43]File name is /storage/kkm_last_timestamp [09:41:43]Write 4 bytes [09:41:43]NVStorageSaveData done [09:41:43]ExternCall_PrintAddStr [09:41:43]wPrintStart [09:41:43]Write to MH i2c: 01 00 00 A0 39 D9 [09:41:43]Write i2c OK [09:41:43]MH_I2C_Read... [09:41:43]Read from MH i2c: 01 [09:41:43]MH_I2C_Read... [09:41:43]Read from MH i2c: 01 07 00 [09:41:43]MH_I2C_Read... [09:41:43]Read from MH i2c: 01 07 00 A0 39 00 00 00 00 00 FF 0F EE [09:41:43]RasterBufferAndPrint [09:41:43]line Счет N : (1)209681 [09:41:43]line ИНН: 02508201610067 [09:41:43]line Контрольно-Кассовый Чек [09:41:43]line ПРОДАЖА [09:41:43]line ТРК (МРК, ГНК) : 42 [09:41:43]line Товар: 2710124130 [09:41:43]line Аи-92-К-3 [09:41:43]line 30.350 * 65.90 [09:41:43]line = 2000.07 [09:41:43]line НДС 12% НСП 1% [09:41:43]line > о реализуемом товаре [09:41:43]line ОКРУГЛЕНИЕ: -0.07 [09:41:43]line ИТОГО: 2000.00 [09:41:43]line Внесено: 2500.00 [09:41:43]line СДАЧА: 500.00 [09:41:43]line НСП 1% : 17.70 [09:41:43]line НДС 12% : 212.40 [09:41:43]line Наличными: 2000.00 [09:41:43]line Безнал.: 0.00 [09:41:43]line Место: АЗС № 86 "Партнер Нефть" [09:41:43]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [09:41:43]line СНО: Общий режим [09:41:43]line Чек 93 21.10.2024 09:41 [09:41:43]line Смена: 460 ФФД: 1.0 [09:41:43]line ЗНМ: 0300000155 [09:41:43]line РНМ: 0000000000100030 [09:41:43]line Версия ККМ: 001 [09:41:43]line [09:41:43]line Дисконтная программа [09:41:43]line АИ-92 [09:41:43]line номер 86 [09:41:43]line сэкономлено 30.35 сом [09:41:43]line ФМ: 0000000000965340 [09:41:43]line ФД: 187629 [09:41:43]line ФПД: 86304591056571 [09:41:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T094145&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187629&fm=86304591056571&tin=02508201610067®Number=0000000000100030&sum=200000 [09:41:43]written 0, free lines is 4095 [09:41:43]OFD Sender: Processing packet 187629 [packets to send 1062, broken 1061] [09:41:43]ProducePacketName [09:41:43]name=ofd_packets/00187629 [09:41:43]OFD Sender: To server: pG, [09:41:43]CommunicateWithHost lk.salyk.kg:30040 [09:41:43]ConnectInit lk.salyk.kg [09:41:43]Connected sock=10 [09:41:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 B4 B0 07 01 0B 32 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 8E 76 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 47 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 F8 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 5D 00 00 00 F4 03 04 00 D9 21 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 ED DC 02 00 35 04 06 00 4E 7E 5A 7E 0E BB BB AE 05 32 DE 85 80 D7 [09:41:44]Write to MH i2c: 01 00 00 D0 39 09 [09:41:44]Write i2c OK [09:41:44]MH_I2C_Read... [09:41:44]Read from MH i2c: 01 [09:41:44]MH_I2C_Read... [09:41:44]Read from MH i2c: 01 07 00 [09:41:44]MH_I2C_Read... [09:41:44]Read from MH i2c: 01 07 00 D0 39 00 00 00 00 00 06 0C 22 [09:41:44]RasterBufferAndPrint [09:41:44]line [09:41:44]line [09:41:44]line [09:41:44]line [09:41:44]line [09:41:44]written 0, free lines is 3084 [09:41:44]MH_Cut [09:41:44]Write to MH i2c: D1 01 00 D7 39 01 E2 [09:41:44]Write i2c OK [09:41:44]MH_I2C_Read... [09:41:44]Read from MH i2c: D1 [09:41:44]MH_I2C_Read... [09:41:44]Read from MH i2c: D1 01 00 [09:41:44]MH_I2C_Read... [09:41:44]Read from MH i2c: D1 01 00 D7 39 00 E1 [09:41:44]Write to MH i2c: 01 00 00 D8 39 11 [09:41:44]Write i2c OK [09:41:44]MH_I2C_Read... [09:41:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 34 50 47 00 0E 60 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 ED DC 02 00 F4 03 04 00 C9 CB 15 67 B6 04 01 00 00 A2 F1 F9 22 23 DB 4A 52 [09:41:44]CommunicateWithHost err = 0 [09:41:44]CheckOFDResponse [09:41:44]1017 (14) - 77093643461234 [09:41:44]1041 (16) - 0000000000965340 [09:41:44]1040 (4) - 187629 [09:41:44]1012 (4) - 21.10.2024 03:34 [09:41:44]1206 (1) - 0 [09:41:44]OFD Sender: Remove packet 187629 [09:41:44]ProducePacketName [09:41:44]name=ofd_packets/00187629 [09:41:44]NVStorageDeleteData [09:41:44]OFD Sender: No OFD packet to send [09:41:45]*** Cut start [09:41:45]*** Partial cut [09:41:45]*** CUTSNS_PIN = 1 [09:41:45]*** CUTSNS_PIN = 0 [09:41:45]*** Brake cut motor [09:41:45]Read from MH i2c: 01 [09:41:45]MH_I2C_Read... [09:41:45]*** Stop cut motor [09:41:45]*** Cut end [09:41:45]Read from MH i2c: 01 07 00 [09:41:45]MH_I2C_Read... [09:41:45]Read from MH i2c: 01 07 00 D8 39 00 00 00 00 00 FF 0F 26 [09:41:45]process_action close_receipt done [09:41:45]requested_data is exist [09:41:45]produce_requested_data [09:41:45]requested_item fm.sn is exist - process it [09:41:45]wFMCommunicate request_size=4 [09:41:45]MH_SAM_APDU [09:41:45]CAPDU: 80 11 00 00 [09:41:45]Write to MH i2c: E2 08 00 D9 39 80 11 00 00 00 00 00 00 8C [09:41:45]Write i2c OK [09:41:45]MH_I2C_Read... [09:41:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:41:46]Read from MH i2c: E2 [09:41:46]MH_I2C_Read... [09:41:46]Read from MH i2c: E2 17 00 [09:41:46]MH_I2C_Read... [09:41:46]Read from MH i2c: E2 17 00 D9 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 DA [09:41:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [09:41:46]wFMCommunicate OK [09:41:46]requested_item fd.num is exist - process it [09:41:46]SAM_PROTO_GetFieldsCounters [09:41:46]wFMCommunicate request_size=4 [09:41:46]MH_SAM_APDU [09:41:46]CAPDU: 80 13 00 00 [09:41:46]Write to MH i2c: E2 08 00 DA 39 80 13 00 00 00 00 00 00 8F [09:41:46]Write i2c OK [09:41:46]MH_I2C_Read... [09:41:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:41:46]Read from MH i2c: E2 [09:41:46]MH_I2C_Read... [09:41:46]Read from MH i2c: E2 62 00 [09:41:46]MH_I2C_Read... [09:41:46]Read from MH i2c: E2 62 00 DA 39 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 ED DC 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 5D 00 00 00 5E 04 04 00 5D 00 00 00 57 04 04 00 5E 00 00 00 19 04 04 00 00 00 00 00 90 00 45 [09:41:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 ED DC 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 5D 00 00 00 5E 04 04 00 5D 00 00 00 57 04 04 00 5E 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:41:46]wFMCommunicate OK [09:41:46]SAM_PROTO_GetFieldsCounters done [09:41:46]requested_item shift.num is exist - process it [09:41:46]requested_item shift.opened is exist - process it [09:41:46]req_shift_opened [09:41:46]FM_GetShiftState [09:41:46]SAM_PROTO_GetShiftState [09:41:46]wFMCommunicate request_size=4 [09:41:46]MH_SAM_APDU [09:41:46]CAPDU: 80 13 01 00 [09:41:46]Write to MH i2c: E2 08 00 DB 39 80 13 01 00 00 00 00 00 91 [09:41:46]Write i2c OK [09:41:46]MH_I2C_Read... [09:41:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:41:46]Read from MH i2c: E2 [09:41:46]MH_I2C_Read... [09:41:46]Read from MH i2c: E2 0E 00 [09:41:46]MH_I2C_Read... [09:41:46]Read from MH i2c: E2 0E 00 DB 39 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 F0 [09:41:46]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [09:41:46]wFMCommunicate OK [09:41:46]SAM_PROTO_GetShiftState done [09:41:46]FM_GetShiftState done [09:41:46]req_shift_opened done [09:41:46]requested_item shift.open_date is exist - process it [09:41:46]req_shift_open_date [09:41:46]req_shift_open_date done [09:41:46]produce_requested_data done [09:41:46]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187629,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [09:41:46]process_action_free close_receipt [09:41:46]json_value_free [09:41:46]json_value_free done [09:41:46]process_json_proto returns [09:41:46]Send response to host [09:41:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187629,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [09:41:46]free response buf [09:41:46]execute_script done [09:41:46]execute_script returns [09:41:46]free content buf [09:41:46]Sock 8.Close socket [09:41:46]Sock 8.Thread stoped [09:41:49]OFD Sender: No OFD packet to send [09:41:54]OFD Sender: No OFD packet to send [09:41:59]OFD Sender: No OFD packet to send [09:42:04]OFD Sender: No OFD packet to send [09:42:09]OFD Sender: No OFD packet to send [09:42:14]OFD Sender: No OFD packet to send [09:42:19]OFD Sender: No OFD packet to send [09:42:24]OFD Sender: No OFD packet to send [09:42:29]OFD Sender: No OFD packet to send [09:42:34]OFD Sender: No OFD packet to send [09:42:39]OFD Sender: No OFD packet to send [09:42:45]OFD Sender: No OFD packet to send [09:42:50]OFD Sender: No OFD packet to send [09:42:55]OFD Sender: No OFD packet to send [09:43:00]OFD Sender: No OFD packet to send [09:43:05]OFD Sender: No OFD packet to send [09:43:10]OFD Sender: No OFD packet to send [09:43:15]OFD Sender: No OFD packet to send [09:43:20]OFD Sender: No OFD packet to send [09:43:25]OFD Sender: No OFD packet to send [09:43:30]OFD Sender: No OFD packet to send [09:43:35]OFD Sender: No OFD packet to send [09:43:40]OFD Sender: No OFD packet to send [09:43:45]OFD Sender: No OFD packet to send [09:43:49]accept exits with 9 [09:43:49]New connection [09:43:49]New thread 3067157860 created [09:43:49]Thread 3067014500 joined [09:43:49]Waiting for new connection... [09:43:49] Sock 9.Parse request [09:43:49]Sock 9.Check first char [09:43:49]Sock 9.First char is OK [09:43:49]request: POST /json_proto HTTP/1.0 [09:43:49]Method: POST [09:43:49]URL: /json_proto [09:43:49]Method is POST - this is cgi request [09:43:49]url: /json_proto [09:43:49]query_string will be loaded in cgi processing [09:43:49]execute_cgi json_proto POST (null) [09:43:49]execute_cgi path=json_proto method=POST [09:43:49]POST find Content-Length [09:43:49]Host: 172.17.42.131:8080 [09:43:49]Content-Length: 677 [09:43:49]Content-Type: application/json [09:43:49] [09:43:49]POST finish read [09:43:49]Found Content-Length = 677 [09:43:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209682", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 5.400, "sum" : 400.68, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:43:49]execute_script... [09:43:49]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209682", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 5.400, "sum" : 400.68, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:43:49]POST & json_proto [09:43:49]process_json_proto [09:43:49]json parsed OK: [09:43:49]protocol is kg_v1.0 [09:43:49]action value=close_receipt [09:43:49]process_action close_receipt [09:43:49]cmd_close_receipt [09:43:49]MH_GetDate [09:43:49]Write to MH i2c: F0 00 00 DC 39 04 [09:43:49]Write i2c OK [09:43:49]MH_I2C_Read... [09:43:49]Read from MH i2c: F0 [09:43:49]MH_I2C_Read... [09:43:49]Read from MH i2c: F0 09 00 [09:43:49]MH_I2C_Read... [09:43:49]Read from MH i2c: F0 09 00 DC 39 00 58 22 16 67 A0 18 CA 66 EC [09:43:49]GetLastDocTimeStamp 1729503705 [09:43:49]current date 1729503832 [09:43:49]FM_GetShiftState [09:43:49]SAM_PROTO_GetShiftState [09:43:49]wFMCommunicate request_size=4 [09:43:49]MH_SAM_APDU [09:43:49]CAPDU: 80 13 01 00 [09:43:49]Write to MH i2c: E2 08 00 DD 39 80 13 01 00 00 00 00 00 93 [09:43:49]Write i2c OK [09:43:49]MH_I2C_Read... [09:43:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:43:49]Read from MH i2c: E2 [09:43:49]MH_I2C_Read... [09:43:49]Read from MH i2c: E2 0E 00 [09:43:49]MH_I2C_Read... [09:43:49]Read from MH i2c: E2 0E 00 DD 39 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 F2 [09:43:49]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [09:43:49]wFMCommunicate OK [09:43:49]SAM_PROTO_GetShiftState done [09:43:49]FM_GetShiftState done [09:43:49]opened in 1729469754 [09:43:49]opened+sec_in_day 1729556154 [09:43:49]quantity*price = 40068 [09:43:49]sum+1 = 40069 [09:43:49]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.68 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.55 НДС 12% : 42.55 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 94 21.10.2024 09:43 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 187630 ФПД: 118698239786223 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T094352&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187630&fm=118698239786223&tin=02508201610067®Number=0000000000100030&sum=40000 [09:43:50]StoreToDocumentArchive [09:43:50]shift 460 fd 187630 [09:43:50]save to /storage/0460/doc_00187630 [09:43:50]save last doc name /storage/0460/doc_00187630 to /storage/kkm_last_doc_name [09:43:50]save OK [09:43:50]Clear old archive folders... [09:43:50]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:43:50]tlvbuf is 010EAB90 [09:43:50]SAM_PROTO_ClearQueue [09:43:50]wFMCommunicate request_size=4 [09:43:50]MH_SAM_APDU [09:43:50]CAPDU: 80 09 00 00 [09:43:50]Write to MH i2c: E2 08 00 EA 39 80 09 00 00 00 00 00 00 95 [09:43:50]Write i2c OK [09:43:50]MH_I2C_Read... [09:43:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:43:50]Read from MH i2c: E2 [09:43:50]MH_I2C_Read... [09:43:50]Read from MH i2c: E2 03 00 [09:43:50]MH_I2C_Read... [09:43:50]Read from MH i2c: E2 03 00 EA 39 00 90 00 97 [09:43:50]RAPDU: 90 00 [09:43:50]wFMCommunicate OK [09:43:50]SAM_PROTO_ClearQueue done [09:43:50]KKMCreateOFDPacket [09:43:50]OFDProtocolAddRootSTLVToBuf [09:43:50]FM_MakeSignedData [09:43:50]FM_MakeSignedData [09:43:50]SAM_PROTO_SignData [09:43:50]wFMCommunicate request_size=4 [09:43:50]MH_SAM_APDU [09:43:50]CAPDU: 80 0D 01 02 [09:43:50]Write to MH i2c: E2 08 00 EB 39 80 0D 01 02 00 00 00 00 9D [09:43:50]Write i2c OK [09:43:50]MH_I2C_Read... [09:43:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:43:50]Read from MH i2c: E2 [09:43:50]MH_I2C_Read... [09:43:50]Read from MH i2c: E2 03 00 [09:43:50]MH_I2C_Read... [09:43:50]Read from MH i2c: E2 03 00 EB 39 00 90 00 98 [09:43:50]RAPDU: 90 00 [09:43:50]wFMCommunicate OK [09:43:50]wFMCommunicate request_size=255 [09:43:50]MH_SAM_APDU [09:43:50]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 18 15 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 84 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 63 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9F 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 58 22 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 EE DC 02 00 35 04 06 00 6B [09:43:50]Write to MH i2c: E2 02 01 EC 39 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 18 15 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 84 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 63 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9F 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 58 22 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 EE DC 02 00 35 04 06 00 6B 00 00 18 [09:43:50]Write i2c OK [09:43:50]MH_I2C_Read... [09:43:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:43:50]Read from MH i2c: E2 [09:43:50]MH_I2C_Read... [09:43:50]Read from MH i2c: E2 03 00 [09:43:50]MH_I2C_Read... [09:43:50]Read from MH i2c: E2 03 00 EC 39 00 90 00 99 [09:43:50]RAPDU: 90 00 [09:43:50]wFMCommunicate OK [09:43:50]wFMCommunicate request_size=10 [09:43:50]MH_SAM_APDU [09:43:50]CAPDU: 80 0D 02 02 05 F4 96 6A FC EF [09:43:50]Write to MH i2c: E2 0D 00 ED 39 80 0D 02 02 05 00 F4 96 6A FC EF 00 00 89 [09:43:50]Write i2c OK [09:43:50]MH_I2C_Read... [09:43:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:43:50]Read from MH i2c: E2 [09:43:50]MH_I2C_Read... [09:43:50]Read from MH i2c: E2 03 00 [09:43:50]MH_I2C_Read... [09:43:50]Read from MH i2c: E2 03 00 ED 39 00 90 00 9A [09:43:50]RAPDU: 90 00 [09:43:50]wFMCommunicate OK [09:43:50]wFMCommunicate request_size=4 [09:43:50]MH_SAM_APDU [09:43:50]CAPDU: 80 0D 03 02 [09:43:50]Write to MH i2c: E2 08 00 EE 39 80 0D 03 02 00 00 00 00 A2 [09:43:50]Write i2c OK [09:43:50]MH_I2C_Read... [09:43:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:43:51]Read from MH i2c: E2 [09:43:51]MH_I2C_Read... [09:43:51]Read from MH i2c: E2 0B 00 [09:43:51]MH_I2C_Read... [09:43:51]Read from MH i2c: E2 0B 00 EE 39 00 58 D5 64 78 2C D7 82 1E 90 00 4F [09:43:51]RAPDU: 58 D5 64 78 2C D7 82 1E 90 00 [09:43:51]wFMCommunicate OK [09:43:51]SAM_PROTO_SignData done [09:43:51]FM_MakeSignedData done [09:43:51]CreateOFDProtocolMessage [09:43:51]wFMCommunicate request_size=4 [09:43:51]MH_SAM_APDU [09:43:51]CAPDU: 80 11 00 00 [09:43:51]Write to MH i2c: E2 08 00 EF 39 80 11 00 00 00 00 00 00 A2 [09:43:51]Write i2c OK [09:43:51]MH_I2C_Read... [09:43:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:43:51]Read from MH i2c: E2 [09:43:51]MH_I2C_Read... [09:43:51]Read from MH i2c: E2 17 00 [09:43:51]MH_I2C_Read... [09:43:51]Read from MH i2c: E2 17 00 EF 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 F0 [09:43:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [09:43:51]wFMCommunicate OK [09:43:51]CreateOFDProtocolMessage done [09:43:51]OFDSenderStorePacket 187630 [09:43:51]StoreOFDPacket docnum=187630 [09:43:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 A9 FE 07 01 D4 95 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 18 15 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 84 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 63 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9F 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 58 22 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 EE DC 02 00 35 04 06 00 6B F4 96 6A FC EF 58 D5 64 78 2C D7 82 1E [09:43:51]CheckFolder [09:43:51]dirname=/storage/ofd_packets [09:43:51]CheckFolder done [09:43:51]ProducePacketName [09:43:51]name=ofd_packets/00187630 [09:43:51]NVStorageSaveData ofd_packets/00187630 [09:43:51]File name is /storage/ofd_packets/00187630 [09:43:51]Write 301 bytes [09:43:51]NVStorageSaveData done [09:43:51]OFDSenderStorePacket done [09:43:51]KKMCreateOFDPacket done [09:43:51]NVStorageSaveData kkm_last_timestamp [09:43:51]File name is /storage/kkm_last_timestamp [09:43:51]Write 4 bytes [09:43:51]NVStorageSaveData done [09:43:51]ExternCall_PrintAddStr [09:43:51]wPrintStart [09:43:51]Write to MH i2c: 01 00 00 F0 39 29 [09:43:51]Write i2c OK [09:43:51]MH_I2C_Read... [09:43:51]Read from MH i2c: 01 [09:43:51]MH_I2C_Read... [09:43:51]Read from MH i2c: 01 07 00 [09:43:51]MH_I2C_Read... [09:43:51]Read from MH i2c: 01 07 00 F0 39 00 00 00 00 00 FF 0F 3E [09:43:51]RasterBufferAndPrint [09:43:51]line Счет N : (1)209682 [09:43:51]line ИНН: 02508201610067 [09:43:51]line Контрольно-Кассовый Чек [09:43:51]line ПРОДАЖА [09:43:51]line ТРК (МРК, ГНК) : 13 [09:43:51]line Товар: 2710124500 [09:43:51]line Аи-95-К-3 [09:43:51]line 5.400 * 74.20 [09:43:51]line = 400.68 [09:43:51]line НДС 12% НСП 1% [09:43:51]line > о реализуемом товаре [09:43:51]line ОКРУГЛЕНИЕ: -0.68 [09:43:51]line ИТОГО: 400.00 [09:43:51]line Внесено: 400.00 [09:43:51]line СДАЧА: 0.00 [09:43:51]line НСП 1% : 3.55 [09:43:51]line НДС 12% : 42.55 [09:43:51]line Наличными: 400.00 [09:43:51]line Безнал.: 0.00 [09:43:51]line Место: АЗС № 86 "Партнер Нефть" [09:43:51]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [09:43:51]line СНО: Общий режим [09:43:51]line Чек 94 21.10.2024 09:43 [09:43:51]line Смена: 460 ФФД: 1.0 [09:43:51]line ЗНМ: 0300000155 [09:43:51]line РНМ: 0000000000100030 [09:43:51]line Версия ККМ: 001 [09:43:51]line ФМ: 0000000000965340 [09:43:51]line ФД: 187630 [09:43:51]line ФПД: 118698239786223 [09:43:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T094352&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187630&fm=118698239786223&tin=02508201610067®Number=0000000000100030&sum=40000 [09:43:51]written 0, free lines is 4095 [09:43:51]OFD Sender: Processing packet 187630 [packets to send 1062, broken 1061] [09:43:51]ProducePacketName [09:43:51]name=ofd_packets/00187630 [09:43:51]OFD Sender: To server: pG, [09:43:51]CommunicateWithHost lk.salyk.kg:30040 [09:43:51]ConnectInit lk.salyk.kg [09:43:51]Connected sock=10 [09:43:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 A9 FE 07 01 D4 95 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 18 15 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 84 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 63 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9F 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 58 22 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 EE DC 02 00 35 04 06 00 6B F4 96 6A FC EF 58 D5 64 78 2C D7 82 1E [09:43:51]Write to MH i2c: 01 00 00 1B 3A 55 [09:43:51]Write i2c OK [09:43:51]MH_I2C_Read... [09:43:51]Read from MH i2c: 01 [09:43:51]MH_I2C_Read... [09:43:51]Read from MH i2c: 01 07 00 [09:43:51]MH_I2C_Read... [09:43:51]Read from MH i2c: 01 07 00 1B 3A 00 00 00 00 00 74 0C DC [09:43:51]RasterBufferAndPrint [09:43:51]line [09:43:51]line [09:43:51]line [09:43:51]line [09:43:51]line [09:43:51]written 0, free lines is 3191 [09:43:51]MH_Cut [09:43:51]Write to MH i2c: D1 01 00 22 3A 01 2E [09:43:51]Write i2c OK [09:43:51]MH_I2C_Read... [09:43:51]Read from MH i2c: D1 [09:43:51]MH_I2C_Read... [09:43:51]Read from MH i2c: D1 01 00 [09:43:51]MH_I2C_Read... [09:43:51]Read from MH i2c: D1 01 00 22 3A 00 2D [09:43:51]Write to MH i2c: 01 00 00 23 3A 5D [09:43:51]Write i2c OK [09:43:51]MH_I2C_Read... [09:43:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 93 E3 47 00 5B 61 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 EE DC 02 00 F4 03 04 00 48 CC 15 67 B6 04 01 00 00 09 90 76 06 01 B0 B5 26 [09:43:51]CommunicateWithHost err = 0 [09:43:51]CheckOFDResponse [09:43:51]1017 (14) - 77093643461234 [09:43:51]1041 (16) - 0000000000965340 [09:43:51]1040 (4) - 187630 [09:43:51]1012 (4) - 21.10.2024 03:36 [09:43:51]1206 (1) - 0 [09:43:51]OFD Sender: Remove packet 187630 [09:43:51]ProducePacketName [09:43:51]name=ofd_packets/00187630 [09:43:51]NVStorageDeleteData [09:43:52]OFD Sender: No OFD packet to send [09:43:52]*** Cut start [09:43:52]*** Partial cut [09:43:52]*** CUTSNS_PIN = 1 [09:43:52]*** CUTSNS_PIN = 0 [09:43:52]*** Brake cut motor [09:43:53]Read from MH i2c: 01 [09:43:53]MH_I2C_Read... [09:43:53]*** Stop cut motor [09:43:53]*** Cut end [09:43:53]Read from MH i2c: 01 07 00 [09:43:53]MH_I2C_Read... [09:43:53]Read from MH i2c: 01 07 00 23 3A 00 00 00 00 00 FF 0F 72 [09:43:53]process_action close_receipt done [09:43:53]requested_data is exist [09:43:53]produce_requested_data [09:43:53]requested_item fm.sn is exist - process it [09:43:53]wFMCommunicate request_size=4 [09:43:53]MH_SAM_APDU [09:43:53]CAPDU: 80 11 00 00 [09:43:53]Write to MH i2c: E2 08 00 24 3A 80 11 00 00 00 00 00 00 D8 [09:43:53]Write i2c OK [09:43:53]MH_I2C_Read... [09:43:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:43:53]Read from MH i2c: E2 [09:43:53]MH_I2C_Read... [09:43:53]Read from MH i2c: E2 17 00 [09:43:53]MH_I2C_Read... [09:43:53]Read from MH i2c: E2 17 00 24 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 26 [09:43:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [09:43:53]wFMCommunicate OK [09:43:53]requested_item fd.num is exist - process it [09:43:53]SAM_PROTO_GetFieldsCounters [09:43:53]wFMCommunicate request_size=4 [09:43:53]MH_SAM_APDU [09:43:53]CAPDU: 80 13 00 00 [09:43:53]Write to MH i2c: E2 08 00 25 3A 80 13 00 00 00 00 00 00 DB [09:43:53]Write i2c OK [09:43:53]MH_I2C_Read... [09:43:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:43:53]Read from MH i2c: E2 [09:43:53]MH_I2C_Read... [09:43:53]Read from MH i2c: E2 62 00 [09:43:53]MH_I2C_Read... [09:43:53]Read from MH i2c: E2 62 00 25 3A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 EE DC 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 5E 00 00 00 5E 04 04 00 5E 00 00 00 57 04 04 00 5F 00 00 00 19 04 04 00 00 00 00 00 90 00 95 [09:43:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 EE DC 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 5E 00 00 00 5E 04 04 00 5E 00 00 00 57 04 04 00 5F 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:43:53]wFMCommunicate OK [09:43:53]SAM_PROTO_GetFieldsCounters done [09:43:53]requested_item shift.num is exist - process it [09:43:53]requested_item shift.opened is exist - process it [09:43:53]req_shift_opened [09:43:53]FM_GetShiftState [09:43:53]SAM_PROTO_GetShiftState [09:43:53]wFMCommunicate request_size=4 [09:43:53]MH_SAM_APDU [09:43:53]CAPDU: 80 13 01 00 [09:43:53]Write to MH i2c: E2 08 00 26 3A 80 13 01 00 00 00 00 00 DD [09:43:53]Write i2c OK [09:43:53]MH_I2C_Read... [09:43:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:43:53]Read from MH i2c: E2 [09:43:53]MH_I2C_Read... [09:43:53]Read from MH i2c: E2 0E 00 [09:43:53]MH_I2C_Read... [09:43:53]Read from MH i2c: E2 0E 00 26 3A 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 3C [09:43:53]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [09:43:53]wFMCommunicate OK [09:43:53]SAM_PROTO_GetShiftState done [09:43:53]FM_GetShiftState done [09:43:53]req_shift_opened done [09:43:53]requested_item shift.open_date is exist - process it [09:43:53]req_shift_open_date [09:43:53]req_shift_open_date done [09:43:53]produce_requested_data done [09:43:53]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187630,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [09:43:53]process_action_free close_receipt [09:43:53]json_value_free [09:43:53]json_value_free done [09:43:53]process_json_proto returns [09:43:53]Send response to host [09:43:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187630,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [09:43:53]free response buf [09:43:53]execute_script done [09:43:53]execute_script returns [09:43:53]free content buf [09:43:53]Sock 9.Close socket [09:43:53]Sock 9.Thread stoped [09:43:57]OFD Sender: No OFD packet to send [09:44:02]OFD Sender: No OFD packet to send [09:44:07]OFD Sender: No OFD packet to send [09:44:12]OFD Sender: No OFD packet to send [09:44:17]OFD Sender: No OFD packet to send [09:44:22]OFD Sender: No OFD packet to send [09:44:27]OFD Sender: No OFD packet to send [09:44:32]OFD Sender: No OFD packet to send [09:44:37]OFD Sender: No OFD packet to send [09:44:42]OFD Sender: No OFD packet to send [09:44:47]OFD Sender: No OFD packet to send [09:44:52]OFD Sender: No OFD packet to send [09:44:57]OFD Sender: No OFD packet to send [09:45:02]OFD Sender: No OFD packet to send [09:45:07]OFD Sender: No OFD packet to send [09:45:12]OFD Sender: No OFD packet to send [09:45:17]OFD Sender: No OFD packet to send [09:45:22]OFD Sender: No OFD packet to send [09:45:27]OFD Sender: No OFD packet to send [09:45:32]OFD Sender: No OFD packet to send [09:45:37]OFD Sender: No OFD packet to send [09:45:42]OFD Sender: No OFD packet to send [09:45:47]OFD Sender: No OFD packet to send [09:45:52]OFD Sender: No OFD packet to send [09:45:57]OFD Sender: No OFD packet to send [09:46:02]OFD Sender: No OFD packet to send [09:46:07]OFD Sender: No OFD packet to send [09:46:12]OFD Sender: No OFD packet to send [09:46:17]OFD Sender: No OFD packet to send [09:46:22]OFD Sender: No OFD packet to send [09:46:27]OFD Sender: No OFD packet to send [09:46:32]OFD Sender: No OFD packet to send [09:46:34]accept exits with 8 [09:46:34]New connection [09:46:34]New thread 3067014500 created [09:46:34]Thread 3067157860 joined [09:46:34]Waiting for new connection... [09:46:34] Sock 8.Parse request [09:46:34]Sock 8.Check first char [09:46:34]Sock 8.First char is OK [09:46:34]request: POST /json_proto HTTP/1.0 [09:46:34]Method: POST [09:46:34]URL: /json_proto [09:46:34]Method is POST - this is cgi request [09:46:34]url: /json_proto [09:46:34]query_string will be loaded in cgi processing [09:46:34]execute_cgi json_proto POST (null) [09:46:34]execute_cgi path=json_proto method=POST [09:46:34]POST find Content-Length [09:46:34]Host: 172.17.42.131:8080 [09:46:34]Content-Length: 766 [09:46:34]Content-Type: application/json [09:46:34] [09:46:34]POST finish read [09:46:34]Found Content-Length = 766 [09:46:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209683", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 32.810, "sum" : 2500.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 2500.12 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:46:34]execute_script... [09:46:34]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209683", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 32.810, "sum" : 2500.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 2500.12 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:46:34]POST & json_proto [09:46:34]process_json_proto [09:46:34]json parsed OK: [09:46:34]protocol is kg_v1.0 [09:46:34]action value=close_receipt [09:46:34]process_action close_receipt [09:46:34]cmd_close_receipt [09:46:34]MH_GetDate [09:46:34]Write to MH i2c: F0 00 00 27 3A 50 [09:46:34]Write i2c OK [09:46:34]MH_I2C_Read... [09:46:34]Read from MH i2c: F0 [09:46:34]MH_I2C_Read... [09:46:34]Read from MH i2c: F0 09 00 [09:46:34]MH_I2C_Read... [09:46:34]Read from MH i2c: F0 09 00 27 3A 00 FE 22 16 67 A0 18 CA 66 DE [09:46:34]GetLastDocTimeStamp 1729503832 [09:46:34]current date 1729503998 [09:46:34]FM_GetShiftState [09:46:34]SAM_PROTO_GetShiftState [09:46:34]wFMCommunicate request_size=4 [09:46:34]MH_SAM_APDU [09:46:34]CAPDU: 80 13 01 00 [09:46:34]Write to MH i2c: E2 08 00 28 3A 80 13 01 00 00 00 00 00 DF [09:46:34]Write i2c OK [09:46:34]MH_I2C_Read... [09:46:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:46:34]Read from MH i2c: E2 [09:46:34]MH_I2C_Read... [09:46:34]Read from MH i2c: E2 0E 00 [09:46:34]MH_I2C_Read... [09:46:34]Read from MH i2c: E2 0E 00 28 3A 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 3E [09:46:34]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [09:46:34]wFMCommunicate OK [09:46:34]SAM_PROTO_GetShiftState done [09:46:34]FM_GetShiftState done [09:46:34]opened in 1729469754 [09:46:34]opened+sec_in_day 1729556154 [09:46:34]quantity*price = 250012 [09:46:34]sum+1 = 250013 [09:46:34]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2500.12 НСП 1% : 22.12 НДС 12% : 265.50 Наличными: 0.00 Безнал.: 2500.12 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 95 21.10.2024 09:46 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000965340 ФД: 187631 ФПД: 39034143626346 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T094638&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187631&fm=39034143626346&tin=02508201610067®Number=0000000000100030&sum=250012 [09:46:35]StoreToDocumentArchive [09:46:35]shift 460 fd 187631 [09:46:35]save to /storage/0460/doc_00187631 [09:46:35]save last doc name /storage/0460/doc_00187631 to /storage/kkm_last_doc_name [09:46:35]save OK [09:46:35]Clear old archive folders... [09:46:35]ProcessDocumentItem done err = 0, tmpTLVsize=248 [09:46:35]tlvbuf is 010F1BC0 [09:46:35]SAM_PROTO_ClearQueue [09:46:35]wFMCommunicate request_size=4 [09:46:35]MH_SAM_APDU [09:46:35]CAPDU: 80 09 00 00 [09:46:35]Write to MH i2c: E2 08 00 35 3A 80 09 00 00 00 00 00 00 E1 [09:46:35]Write i2c OK [09:46:35]MH_I2C_Read... [09:46:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:46:36]Read from MH i2c: E2 [09:46:36]MH_I2C_Read... [09:46:36]Read from MH i2c: E2 03 00 [09:46:36]MH_I2C_Read... [09:46:36]Read from MH i2c: E2 03 00 35 3A 00 90 00 E3 [09:46:36]RAPDU: 90 00 [09:46:36]wFMCommunicate OK [09:46:36]SAM_PROTO_ClearQueue done [09:46:36]KKMCreateOFDPacket [09:46:36]OFDProtocolAddRootSTLVToBuf [09:46:36]FM_MakeSignedData [09:46:36]FM_MakeSignedData [09:46:36]SAM_PROTO_SignData [09:46:36]wFMCommunicate request_size=4 [09:46:36]MH_SAM_APDU [09:46:36]CAPDU: 80 0D 01 02 [09:46:36]Write to MH i2c: E2 08 00 36 3A 80 0D 01 02 00 00 00 00 E9 [09:46:36]Write i2c OK [09:46:36]MH_I2C_Read... [09:46:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:46:36]Read from MH i2c: E2 [09:46:36]MH_I2C_Read... [09:46:36]Read from MH i2c: E2 03 00 [09:46:36]MH_I2C_Read... [09:46:36]Read from MH i2c: E2 03 00 36 3A 00 90 00 E4 [09:46:36]RAPDU: 90 00 [09:46:36]wFMCommunicate OK [09:46:36]wFMCommunicate request_size=255 [09:46:36]MH_SAM_APDU [09:46:36]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 9C 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 00 00 00 00 00 00 39 04 06 00 9C D0 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 FE 22 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 EF DC 02 00 35 04 06 00 23 80 58 43 [09:46:36]Write to MH i2c: E2 02 01 37 3A 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 9C 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 00 00 00 00 00 00 39 04 06 00 9C D0 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 FE 22 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 EF DC 02 00 35 04 06 00 23 80 58 43 00 00 A1 [09:46:36]Write i2c OK [09:46:36]MH_I2C_Read... [09:46:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:46:36]Read from MH i2c: E2 [09:46:36]MH_I2C_Read... [09:46:36]Read from MH i2c: E2 03 00 [09:46:36]MH_I2C_Read... [09:46:36]Read from MH i2c: E2 03 00 37 3A 00 90 00 E5 [09:46:36]RAPDU: 90 00 [09:46:36]wFMCommunicate OK [09:46:36]wFMCommunicate request_size=7 [09:46:36]MH_SAM_APDU [09:46:36]CAPDU: 80 0D 02 02 02 D4 6A [09:46:36]Write to MH i2c: E2 0A 00 38 3A 80 0D 02 02 02 00 D4 6A 00 00 2E [09:46:36]Write i2c OK [09:46:36]MH_I2C_Read... [09:46:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:46:36]Read from MH i2c: E2 [09:46:36]MH_I2C_Read... [09:46:36]Read from MH i2c: E2 03 00 [09:46:36]MH_I2C_Read... [09:46:36]Read from MH i2c: E2 03 00 38 3A 00 90 00 E6 [09:46:36]RAPDU: 90 00 [09:46:36]wFMCommunicate OK [09:46:36]wFMCommunicate request_size=4 [09:46:36]MH_SAM_APDU [09:46:36]CAPDU: 80 0D 03 02 [09:46:36]Write to MH i2c: E2 08 00 39 3A 80 0D 03 02 00 00 00 00 EE [09:46:36]Write i2c OK [09:46:36]MH_I2C_Read... [09:46:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:46:36]Read from MH i2c: E2 [09:46:36]MH_I2C_Read... [09:46:36]Read from MH i2c: E2 0B 00 [09:46:36]MH_I2C_Read... [09:46:36]Read from MH i2c: E2 0B 00 39 3A 00 14 B3 59 2A 1C 18 E2 59 90 00 A8 [09:46:36]RAPDU: 14 B3 59 2A 1C 18 E2 59 90 00 [09:46:36]wFMCommunicate OK [09:46:36]SAM_PROTO_SignData done [09:46:36]FM_MakeSignedData done [09:46:36]CreateOFDProtocolMessage [09:46:36]wFMCommunicate request_size=4 [09:46:36]MH_SAM_APDU [09:46:36]CAPDU: 80 11 00 00 [09:46:36]Write to MH i2c: E2 08 00 3A 3A 80 11 00 00 00 00 00 00 EE [09:46:36]Write i2c OK [09:46:36]MH_I2C_Read... [09:46:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:46:36]Read from MH i2c: E2 [09:46:36]MH_I2C_Read... [09:46:36]Read from MH i2c: E2 17 00 [09:46:36]MH_I2C_Read... [09:46:36]Read from MH i2c: E2 17 00 3A 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 3C [09:46:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [09:46:36]wFMCommunicate OK [09:46:36]CreateOFDProtocolMessage done [09:46:36]OFDSenderStorePacket 187631 [09:46:36]StoreOFDPacket docnum=187631 [09:46:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 66 A8 04 01 66 0F 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 9C 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 00 00 00 00 00 00 39 04 06 00 9C D0 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 FE 22 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 EF DC 02 00 35 04 06 00 23 80 58 43 D4 6A 14 B3 59 2A 1C 18 E2 59 [09:46:36]CheckFolder [09:46:36]dirname=/storage/ofd_packets [09:46:36]CheckFolder done [09:46:36]ProducePacketName [09:46:36]name=ofd_packets/00187631 [09:46:36]NVStorageSaveData ofd_packets/00187631 [09:46:36]File name is /storage/ofd_packets/00187631 [09:46:36]Write 298 bytes [09:46:36]NVStorageSaveData done [09:46:36]OFDSenderStorePacket done [09:46:36]KKMCreateOFDPacket done [09:46:36]NVStorageSaveData kkm_last_timestamp [09:46:36]File name is /storage/kkm_last_timestamp [09:46:36]Write 4 bytes [09:46:36]NVStorageSaveData done [09:46:36]ExternCall_PrintAddStr [09:46:36]wPrintStart [09:46:36]Write to MH i2c: 01 00 00 3B 3A 75 [09:46:36]Write i2c OK [09:46:36]MH_I2C_Read... [09:46:36]Read from MH i2c: 01 [09:46:36]MH_I2C_Read... [09:46:36]Read from MH i2c: 01 07 00 [09:46:36]MH_I2C_Read... [09:46:36]Read from MH i2c: 01 07 00 3B 3A 00 00 00 00 00 FF 0F 8A [09:46:36]RasterBufferAndPrint [09:46:36]line Счет N : (1)209683 [09:46:36]line ИНН: 02508201610067 [09:46:36]line Контрольно-Кассовый Чек [09:46:36]line ПРОДАЖА [09:46:36]line ТРК (МРК, ГНК) : 51 [09:46:36]line Товар: 2710194210 [09:46:36]line ДТ-К-5 [09:46:36]line 32.810 * 76.20 [09:46:36]line = 2500.12 [09:46:36]line НДС 12% НСП 1% [09:46:36]line > о реализуемом товаре [09:46:36]line ИТОГО: 2500.12 [09:46:36]line НСП 1% : 22.12 [09:46:36]line НДС 12% : 265.50 [09:46:36]line Наличными: 0.00 [09:46:36]line Безнал.: 2500.12 [09:46:36]line Место: АЗС № 86 "Партнер Нефть" [09:46:36]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [09:46:36]line СНО: Общий режим [09:46:36]line Чек 95 21.10.2024 09:46 [09:46:36]line Смена: 460 ФФД: 1.0 [09:46:36]line ЗНМ: 0300000155 [09:46:36]line РНМ: 0000000000100030 [09:46:36]line Версия ККМ: 001 [09:46:36]line Платежная система: Mbank [09:46:36]line ФМ: 0000000000965340 [09:46:36]line ФД: 187631 [09:46:36]line ФПД: 39034143626346 [09:46:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T094638&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187631&fm=39034143626346&tin=02508201610067®Number=0000000000100030&sum=250012 [09:46:36]OFD Sender: Processing packet 187631 [packets to send 1062, broken 1061] [09:46:36]ProducePacketName [09:46:36]name=ofd_packets/00187631 [09:46:36]OFD Sender: To server: pG, [09:46:36]CommunicateWithHost lk.salyk.kg:30040 [09:46:36]ConnectInit lk.salyk.kg [09:46:36]written 0, free lines is 4095 [09:46:37]Connected sock=10 [09:46:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 66 A8 04 01 66 0F 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 9C 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 00 00 00 00 00 00 39 04 06 00 9C D0 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 FE 22 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 EF DC 02 00 35 04 06 00 23 80 58 43 D4 6A 14 B3 59 2A 1C 18 E2 59 [09:46:37]Write to MH i2c: 01 00 00 64 3A 9E [09:46:37]Write i2c OK [09:46:37]MH_I2C_Read... [09:46:37]Read from MH i2c: 01 [09:46:37]MH_I2C_Read... [09:46:37]Read from MH i2c: 01 07 00 [09:46:37]MH_I2C_Read... [09:46:37]Read from MH i2c: 01 07 00 64 3A 00 00 00 00 00 A1 0C 52 [09:46:37]RasterBufferAndPrint [09:46:37]line [09:46:37]line [09:46:37]line [09:46:37]line [09:46:37]line [09:46:37]written 0, free lines is 3237 [09:46:37]MH_Cut [09:46:37]Write to MH i2c: D1 01 00 6B 3A 01 77 [09:46:37]Write i2c OK [09:46:37]MH_I2C_Read... [09:46:37]Read from MH i2c: D1 [09:46:37]MH_I2C_Read... [09:46:37]Read from MH i2c: D1 01 00 [09:46:37]MH_I2C_Read... [09:46:37]Read from MH i2c: D1 01 00 6B 3A 00 76 [09:46:37]Write to MH i2c: 01 00 00 6C 3A A6 [09:46:37]Write i2c OK [09:46:37]MH_I2C_Read... [09:46:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 48 4A 47 00 44 F6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 EF DC 02 00 F4 03 04 00 EE CC 15 67 B6 04 01 00 00 D7 C1 DA FF 4D A5 F9 F9 [09:46:37]CommunicateWithHost err = 0 [09:46:37]CheckOFDResponse [09:46:37]1017 (14) - 77093643461234 [09:46:37]1041 (16) - 0000000000965340 [09:46:37]1040 (4) - 187631 [09:46:37]1012 (4) - 21.10.2024 03:39 [09:46:37]1206 (1) - 0 [09:46:37]OFD Sender: Remove packet 187631 [09:46:37]ProducePacketName [09:46:37]name=ofd_packets/00187631 [09:46:37]NVStorageDeleteData [09:46:37]OFD Sender: No OFD packet to send [09:46:38]*** Cut start [09:46:38]*** Partial cut [09:46:38]*** CUTSNS_PIN = 1 [09:46:38]*** CUTSNS_PIN = 0 [09:46:38]*** Brake cut motor [09:46:38]Read from MH i2c: 01 [09:46:38]MH_I2C_Read... [09:46:38]*** Stop cut motor [09:46:38]*** Cut end [09:46:38]Read from MH i2c: 01 07 00 [09:46:38]MH_I2C_Read... [09:46:38]Read from MH i2c: 01 07 00 6C 3A 00 00 00 00 00 FF 0F BB [09:46:38]process_action close_receipt done [09:46:38]requested_data is exist [09:46:38]produce_requested_data [09:46:38]requested_item fm.sn is exist - process it [09:46:38]wFMCommunicate request_size=4 [09:46:38]MH_SAM_APDU [09:46:38]CAPDU: 80 11 00 00 [09:46:38]Write to MH i2c: E2 08 00 6D 3A 80 11 00 00 00 00 00 00 21 [09:46:38]Write i2c OK [09:46:38]MH_I2C_Read... [09:46:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:46:39]Read from MH i2c: E2 [09:46:39]MH_I2C_Read... [09:46:39]Read from MH i2c: E2 17 00 [09:46:39]MH_I2C_Read... [09:46:39]Read from MH i2c: E2 17 00 6D 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 6F [09:46:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [09:46:39]wFMCommunicate OK [09:46:39]requested_item fd.num is exist - process it [09:46:39]SAM_PROTO_GetFieldsCounters [09:46:39]wFMCommunicate request_size=4 [09:46:39]MH_SAM_APDU [09:46:39]CAPDU: 80 13 00 00 [09:46:39]Write to MH i2c: E2 08 00 6E 3A 80 13 00 00 00 00 00 00 24 [09:46:39]Write i2c OK [09:46:39]MH_I2C_Read... [09:46:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:46:39]Read from MH i2c: E2 [09:46:39]MH_I2C_Read... [09:46:39]Read from MH i2c: E2 62 00 [09:46:39]MH_I2C_Read... [09:46:39]Read from MH i2c: E2 62 00 6E 3A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 EF DC 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 5F 00 00 00 5E 04 04 00 5F 00 00 00 57 04 04 00 60 00 00 00 19 04 04 00 00 00 00 00 90 00 E2 [09:46:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 EF DC 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 5F 00 00 00 5E 04 04 00 5F 00 00 00 57 04 04 00 60 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:46:39]wFMCommunicate OK [09:46:39]SAM_PROTO_GetFieldsCounters done [09:46:39]requested_item shift.num is exist - process it [09:46:39]requested_item shift.opened is exist - process it [09:46:39]req_shift_opened [09:46:39]FM_GetShiftState [09:46:39]SAM_PROTO_GetShiftState [09:46:39]wFMCommunicate request_size=4 [09:46:39]MH_SAM_APDU [09:46:39]CAPDU: 80 13 01 00 [09:46:39]Write to MH i2c: E2 08 00 6F 3A 80 13 01 00 00 00 00 00 26 [09:46:39]Write i2c OK [09:46:39]MH_I2C_Read... [09:46:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:46:39]Read from MH i2c: E2 [09:46:39]MH_I2C_Read... [09:46:39]Read from MH i2c: E2 0E 00 [09:46:39]MH_I2C_Read... [09:46:39]Read from MH i2c: E2 0E 00 6F 3A 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 85 [09:46:39]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [09:46:39]wFMCommunicate OK [09:46:39]SAM_PROTO_GetShiftState done [09:46:39]FM_GetShiftState done [09:46:39]req_shift_opened done [09:46:39]requested_item shift.open_date is exist - process it [09:46:39]req_shift_open_date [09:46:39]req_shift_open_date done [09:46:39]produce_requested_data done [09:46:39]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187631,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [09:46:39]process_action_free close_receipt [09:46:39]json_value_free [09:46:39]json_value_free done [09:46:39]process_json_proto returns [09:46:39]Send response to host [09:46:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187631,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [09:46:39]free response buf [09:46:39]execute_script done [09:46:39]execute_script returns [09:46:39]free content buf [09:46:39]Sock 8.Close socket [09:46:39]Sock 8.Thread stoped [09:46:42]OFD Sender: No OFD packet to send [09:46:47]OFD Sender: No OFD packet to send [09:46:52]OFD Sender: No OFD packet to send [09:46:58]OFD Sender: No OFD packet to send [09:47:03]OFD Sender: No OFD packet to send [09:47:08]OFD Sender: No OFD packet to send [09:47:13]OFD Sender: No OFD packet to send [09:47:18]OFD Sender: No OFD packet to send [09:47:23]OFD Sender: No OFD packet to send [09:47:28]OFD Sender: No OFD packet to send [09:47:33]OFD Sender: No OFD packet to send [09:47:38]OFD Sender: No OFD packet to send [09:47:43]OFD Sender: No OFD packet to send [09:47:48]OFD Sender: No OFD packet to send [09:47:53]OFD Sender: No OFD packet to send [09:47:58]OFD Sender: No OFD packet to send [09:48:03]OFD Sender: No OFD packet to send [09:48:08]OFD Sender: No OFD packet to send [09:48:13]OFD Sender: No OFD packet to send [09:48:18]OFD Sender: No OFD packet to send [09:48:23]OFD Sender: No OFD packet to send [09:48:28]OFD Sender: No OFD packet to send [09:48:33]OFD Sender: No OFD packet to send [09:48:38]OFD Sender: No OFD packet to send [09:48:43]OFD Sender: No OFD packet to send [09:48:43]accept exits with 9 [09:48:43]New connection [09:48:43]New thread 3067157860 created [09:48:43]Thread 3067014500 joined [09:48:43]Waiting for new connection... [09:48:43] Sock 9.Parse request [09:48:43]Sock 9.Check first char [09:48:43]Sock 9.First char is OK [09:48:43]request: POST /json_proto HTTP/1.0 [09:48:43]Method: POST [09:48:43]URL: /json_proto [09:48:43]Method is POST - this is cgi request [09:48:43]url: /json_proto [09:48:43]query_string will be loaded in cgi processing [09:48:43]execute_cgi json_proto POST (null) [09:48:43]execute_cgi path=json_proto method=POST [09:48:43]POST find Content-Length [09:48:43]Host: 172.17.42.131:8080 [09:48:43]Content-Length: 679 [09:48:43]Content-Type: application/json [09:48:43] [09:48:43]POST finish read [09:48:43]Found Content-Length = 679 [09:48:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209685", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 18.380, "sum" : 1400.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1400.00, "total" : 1400.00, "payments": [ { "type": 0, "sum" : 1400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:48:43]execute_script... [09:48:43]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209685", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 18.380, "sum" : 1400.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1400.00, "total" : 1400.00, "payments": [ { "type": 0, "sum" : 1400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:48:43]POST & json_proto [09:48:43]process_json_proto [09:48:43]json parsed OK: [09:48:43]protocol is kg_v1.0 [09:48:43]action value=close_receipt [09:48:43]process_action close_receipt [09:48:43]cmd_close_receipt [09:48:43]MH_GetDate [09:48:43]Write to MH i2c: F0 00 00 70 3A 99 [09:48:43]Write i2c OK [09:48:43]MH_I2C_Read... [09:48:43]Read from MH i2c: F0 [09:48:43]MH_I2C_Read... [09:48:43]Read from MH i2c: F0 09 00 [09:48:43]MH_I2C_Read... [09:48:43]Read from MH i2c: F0 09 00 70 3A 00 7F 23 16 67 A0 18 CA 66 A9 [09:48:43]GetLastDocTimeStamp 1729503998 [09:48:43]current date 1729504127 [09:48:43]FM_GetShiftState [09:48:43]SAM_PROTO_GetShiftState [09:48:43]wFMCommunicate request_size=4 [09:48:43]MH_SAM_APDU [09:48:43]CAPDU: 80 13 01 00 [09:48:43]Write to MH i2c: E2 08 00 71 3A 80 13 01 00 00 00 00 00 28 [09:48:43]Write i2c OK [09:48:43]MH_I2C_Read... [09:48:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:48:43]Read from MH i2c: E2 [09:48:43]MH_I2C_Read... [09:48:43]Read from MH i2c: E2 0E 00 [09:48:43]MH_I2C_Read... [09:48:43]Read from MH i2c: E2 0E 00 71 3A 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 87 [09:48:43]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [09:48:43]wFMCommunicate OK [09:48:43]SAM_PROTO_GetShiftState done [09:48:43]FM_GetShiftState done [09:48:43]opened in 1729469754 [09:48:43]opened+sec_in_day 1729556154 [09:48:43]quantity*price = 140055 [09:48:43]sum+1 = 140057 [09:48:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.56 ИТОГО: 1400.00 Внесено: 1400.00 СДАЧА: 0.00 НСП 1% : 12.39 НДС 12% : 148.73 Наличными: 1400.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 96 21.10.2024 09:48 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 187632 ФПД: 172041492578880 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T094847&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187632&fm=172041492578880&tin=02508201610067®Number=0000000000100030&sum=140000 [09:48:44]StoreToDocumentArchive [09:48:44]shift 460 fd 187632 [09:48:44]save to /storage/0460/doc_00187632 [09:48:44]save last doc name /storage/0460/doc_00187632 to /storage/kkm_last_doc_name [09:48:44]save OK [09:48:44]Clear old archive folders... [09:48:44]ProcessDocumentItem done err = 0, tmpTLVsize=248 [09:48:44]tlvbuf is B6F0C4C0 [09:48:44]SAM_PROTO_ClearQueue [09:48:44]wFMCommunicate request_size=4 [09:48:44]MH_SAM_APDU [09:48:44]CAPDU: 80 09 00 00 [09:48:44]Write to MH i2c: E2 08 00 7E 3A 80 09 00 00 00 00 00 00 2A [09:48:44]Write i2c OK [09:48:44]MH_I2C_Read... [09:48:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:48:44]Read from MH i2c: E2 [09:48:44]MH_I2C_Read... [09:48:44]Read from MH i2c: E2 03 00 [09:48:44]MH_I2C_Read... [09:48:44]Read from MH i2c: E2 03 00 7E 3A 00 90 00 2C [09:48:44]RAPDU: 90 00 [09:48:44]wFMCommunicate OK [09:48:44]SAM_PROTO_ClearQueue done [09:48:44]KKMCreateOFDPacket [09:48:44]OFDProtocolAddRootSTLVToBuf [09:48:44]FM_MakeSignedData [09:48:44]FM_MakeSignedData [09:48:44]SAM_PROTO_SignData [09:48:44]wFMCommunicate request_size=4 [09:48:44]MH_SAM_APDU [09:48:44]CAPDU: 80 0D 01 02 [09:48:44]Write to MH i2c: E2 08 00 7F 3A 80 0D 01 02 00 00 00 00 32 [09:48:44]Write i2c OK [09:48:44]MH_I2C_Read... [09:48:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:48:45]Read from MH i2c: E2 [09:48:45]MH_I2C_Read... [09:48:45]Read from MH i2c: E2 03 00 [09:48:45]MH_I2C_Read... [09:48:45]Read from MH i2c: E2 03 00 7F 3A 00 90 00 2D [09:48:45]RAPDU: 90 00 [09:48:45]wFMCommunicate OK [09:48:45]wFMCommunicate request_size=255 [09:48:45]MH_SAM_APDU [09:48:45]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CC 47 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 18 23 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 22 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 19 3A 00 00 00 00 07 04 06 00 E0 22 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 7F 23 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 F0 DC 02 00 35 04 06 00 9C 78 88 0D [09:48:45]Write to MH i2c: E2 02 01 80 3A 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CC 47 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 18 23 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 22 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 19 3A 00 00 00 00 07 04 06 00 E0 22 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 7F 23 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 F0 DC 02 00 35 04 06 00 9C 78 88 0D 00 00 9F [09:48:45]Write i2c OK [09:48:45]MH_I2C_Read... [09:48:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:48:45]Read from MH i2c: E2 [09:48:45]MH_I2C_Read... [09:48:45]Read from MH i2c: E2 03 00 [09:48:45]MH_I2C_Read... [09:48:45]Read from MH i2c: E2 03 00 80 3A 00 90 00 2E [09:48:45]RAPDU: 90 00 [09:48:45]wFMCommunicate OK [09:48:45]wFMCommunicate request_size=7 [09:48:45]MH_SAM_APDU [09:48:45]CAPDU: 80 0D 02 02 02 42 40 [09:48:45]Write to MH i2c: E2 0A 00 81 3A 80 0D 02 02 02 00 42 40 00 00 BB [09:48:45]Write i2c OK [09:48:45]MH_I2C_Read... [09:48:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:48:45]Read from MH i2c: E2 [09:48:45]MH_I2C_Read... [09:48:45]Read from MH i2c: E2 03 00 [09:48:45]MH_I2C_Read... [09:48:45]Read from MH i2c: E2 03 00 81 3A 00 90 00 2F [09:48:45]RAPDU: 90 00 [09:48:45]wFMCommunicate OK [09:48:45]wFMCommunicate request_size=4 [09:48:45]MH_SAM_APDU [09:48:45]CAPDU: 80 0D 03 02 [09:48:45]Write to MH i2c: E2 08 00 82 3A 80 0D 03 02 00 00 00 00 37 [09:48:45]Write i2c OK [09:48:45]MH_I2C_Read... [09:48:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:48:45]Read from MH i2c: E2 [09:48:45]MH_I2C_Read... [09:48:45]Read from MH i2c: E2 0B 00 [09:48:45]MH_I2C_Read... [09:48:45]Read from MH i2c: E2 0B 00 82 3A 00 D1 A2 47 E5 90 99 A7 43 90 00 EA [09:48:45]RAPDU: D1 A2 47 E5 90 99 A7 43 90 00 [09:48:45]wFMCommunicate OK [09:48:45]SAM_PROTO_SignData done [09:48:45]FM_MakeSignedData done [09:48:45]CreateOFDProtocolMessage [09:48:45]wFMCommunicate request_size=4 [09:48:45]MH_SAM_APDU [09:48:45]CAPDU: 80 11 00 00 [09:48:45]Write to MH i2c: E2 08 00 83 3A 80 11 00 00 00 00 00 00 37 [09:48:45]Write i2c OK [09:48:45]MH_I2C_Read... [09:48:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:48:45]Read from MH i2c: E2 [09:48:45]MH_I2C_Read... [09:48:45]Read from MH i2c: E2 17 00 [09:48:45]MH_I2C_Read... [09:48:45]Read from MH i2c: E2 17 00 83 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 85 [09:48:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [09:48:45]wFMCommunicate OK [09:48:45]CreateOFDProtocolMessage done [09:48:45]OFDSenderStorePacket 187632 [09:48:45]StoreOFDPacket docnum=187632 [09:48:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 7E B5 04 01 88 00 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CC 47 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 18 23 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 22 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 19 3A 00 00 00 00 07 04 06 00 E0 22 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 7F 23 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 F0 DC 02 00 35 04 06 00 9C 78 88 0D 42 40 D1 A2 47 E5 90 99 A7 43 [09:48:45]CheckFolder [09:48:45]dirname=/storage/ofd_packets [09:48:45]CheckFolder done [09:48:45]ProducePacketName [09:48:45]name=ofd_packets/00187632 [09:48:45]NVStorageSaveData ofd_packets/00187632 [09:48:45]File name is /storage/ofd_packets/00187632 [09:48:45]Write 298 bytes [09:48:45]NVStorageSaveData done [09:48:45]OFDSenderStorePacket done [09:48:45]KKMCreateOFDPacket done [09:48:45]NVStorageSaveData kkm_last_timestamp [09:48:45]File name is /storage/kkm_last_timestamp [09:48:45]Write 4 bytes [09:48:45]NVStorageSaveData done [09:48:45]ExternCall_PrintAddStr [09:48:45]wPrintStart [09:48:45]Write to MH i2c: 01 00 00 84 3A BE [09:48:45]Write i2c OK [09:48:45]MH_I2C_Read... [09:48:45]Read from MH i2c: 01 [09:48:45]MH_I2C_Read... [09:48:45]Read from MH i2c: 01 07 00 [09:48:45]MH_I2C_Read... [09:48:45]Read from MH i2c: 01 07 00 84 3A 00 00 00 00 00 FF 0F D3 [09:48:45]RasterBufferAndPrint [09:48:45]line Счет N : (1)209685 [09:48:45]line ИНН: 02508201610067 [09:48:45]line Контрольно-Кассовый Чек [09:48:45]line ПРОДАЖА [09:48:45]line ТРК (МРК, ГНК) : 51 [09:48:45]line Товар: 2710194210 [09:48:45]line ДТ-К-5 [09:48:45]line 18.380 * 76.20 [09:48:45]line = 1400.56 [09:48:45]line НДС 12% НСП 1% [09:48:45]line > о реализуемом товаре [09:48:45]line ОКРУГЛЕНИЕ: -0.56 [09:48:45]line ИТОГО: 1400.00 [09:48:45]line Внесено: 1400.00 [09:48:45]line СДАЧА: 0.00 [09:48:45]line НСП 1% : 12.39 [09:48:45]line НДС 12% : 148.73 [09:48:45]line Наличными: 1400.00 [09:48:45]line Безнал.: 0.00 [09:48:45]line Место: АЗС № 86 "Партнер Нефть" [09:48:45]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [09:48:45]line СНО: Общий режим [09:48:45]line Чек 96 21.10.2024 09:48 [09:48:45]line Смена: 460 ФФД: 1.0 [09:48:45]line ЗНМ: 0300000155 [09:48:45]line РНМ: 0000000000100030 [09:48:45]line Версия ККМ: 001 [09:48:45]line ФМ: 0000000000965340 [09:48:45]line ФД: 187632 [09:48:45]line ФПД: 172041492578880 [09:48:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T094847&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187632&fm=172041492578880&tin=02508201610067®Number=0000000000100030&sum=140000 [09:48:45]OFD Sender: Processing packet 187632 [packets to send 1062, broken 1061] [09:48:45]ProducePacketName [09:48:45]name=ofd_packets/00187632 [09:48:45]OFD Sender: To server: pG, [09:48:45]CommunicateWithHost lk.salyk.kg:30040 [09:48:45]ConnectInit lk.salyk.kg [09:48:45]written 0, free lines is 4095 [09:48:45]Connected sock=10 [09:48:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 7E B5 04 01 88 00 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CC 47 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 18 23 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 22 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 19 3A 00 00 00 00 07 04 06 00 E0 22 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 7F 23 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 F0 DC 02 00 35 04 06 00 9C 78 88 0D 42 40 D1 A2 47 E5 90 99 A7 43 [09:48:46]Write to MH i2c: 01 00 00 AF 3A E9 [09:48:46]Write i2c OK [09:48:46]MH_I2C_Read... [09:48:46]Read from MH i2c: 01 [09:48:46]MH_I2C_Read... [09:48:46]Read from MH i2c: 01 07 00 [09:48:46]MH_I2C_Read... [09:48:46]Read from MH i2c: 01 07 00 AF 3A 00 00 00 00 00 73 0C 6F [09:48:46]RasterBufferAndPrint [09:48:46]line [09:48:46]line [09:48:46]line [09:48:46]line [09:48:46]line [09:48:46]written 0, free lines is 3189 [09:48:46]MH_Cut [09:48:46]Write to MH i2c: D1 01 00 B6 3A 01 C2 [09:48:46]Write i2c OK [09:48:46]MH_I2C_Read... [09:48:46]Read from MH i2c: D1 [09:48:46]MH_I2C_Read... [09:48:46]Read from MH i2c: D1 01 00 [09:48:46]MH_I2C_Read... [09:48:46]Read from MH i2c: D1 01 00 B6 3A 00 C1 [09:48:46]Write to MH i2c: 01 00 00 B7 3A F1 [09:48:46]Write i2c OK [09:48:46]MH_I2C_Read... [09:48:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 34 74 47 00 6C 6D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 F0 DC 02 00 F4 03 04 00 6F CD 15 67 B6 04 01 00 00 F7 8A 60 37 EF 17 8A CC [09:48:46]CommunicateWithHost err = 0 [09:48:46]CheckOFDResponse [09:48:46]1017 (14) - 77093643461234 [09:48:46]1041 (16) - 0000000000965340 [09:48:46]1040 (4) - 187632 [09:48:46]1012 (4) - 21.10.2024 03:41 [09:48:46]1206 (1) - 0 [09:48:46]OFD Sender: Remove packet 187632 [09:48:46]ProducePacketName [09:48:46]name=ofd_packets/00187632 [09:48:46]NVStorageDeleteData [09:48:46]OFD Sender: No OFD packet to send [09:48:47]*** Cut start [09:48:47]*** Partial cut [09:48:47]*** CUTSNS_PIN = 1 [09:48:47]*** CUTSNS_PIN = 0 [09:48:47]*** Brake cut motor [09:48:47]Read from MH i2c: 01 [09:48:47]MH_I2C_Read... [09:48:47]*** Stop cut motor [09:48:47]*** Cut end [09:48:47]Read from MH i2c: 01 07 00 [09:48:47]MH_I2C_Read... [09:48:47]Read from MH i2c: 01 07 00 B7 3A 00 00 00 00 00 FF 0F 06 [09:48:47]process_action close_receipt done [09:48:47]requested_data is exist [09:48:47]produce_requested_data [09:48:47]requested_item fm.sn is exist - process it [09:48:47]wFMCommunicate request_size=4 [09:48:47]MH_SAM_APDU [09:48:47]CAPDU: 80 11 00 00 [09:48:47]Write to MH i2c: E2 08 00 B8 3A 80 11 00 00 00 00 00 00 6C [09:48:47]Write i2c OK [09:48:47]MH_I2C_Read... [09:48:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:48:47]Read from MH i2c: E2 [09:48:47]MH_I2C_Read... [09:48:47]Read from MH i2c: E2 17 00 [09:48:47]MH_I2C_Read... [09:48:47]Read from MH i2c: E2 17 00 B8 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 BA [09:48:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [09:48:47]wFMCommunicate OK [09:48:47]requested_item fd.num is exist - process it [09:48:47]SAM_PROTO_GetFieldsCounters [09:48:47]wFMCommunicate request_size=4 [09:48:47]MH_SAM_APDU [09:48:47]CAPDU: 80 13 00 00 [09:48:47]Write to MH i2c: E2 08 00 B9 3A 80 13 00 00 00 00 00 00 6F [09:48:47]Write i2c OK [09:48:47]MH_I2C_Read... [09:48:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:48:48]Read from MH i2c: E2 [09:48:48]MH_I2C_Read... [09:48:48]Read from MH i2c: E2 62 00 [09:48:48]MH_I2C_Read... [09:48:48]Read from MH i2c: E2 62 00 B9 3A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 F0 DC 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 60 00 00 00 5E 04 04 00 60 00 00 00 57 04 04 00 61 00 00 00 19 04 04 00 00 00 00 00 90 00 31 [09:48:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 F0 DC 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 60 00 00 00 5E 04 04 00 60 00 00 00 57 04 04 00 61 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:48:48]wFMCommunicate OK [09:48:48]SAM_PROTO_GetFieldsCounters done [09:48:48]requested_item shift.num is exist - process it [09:48:48]requested_item shift.opened is exist - process it [09:48:48]req_shift_opened [09:48:48]FM_GetShiftState [09:48:48]SAM_PROTO_GetShiftState [09:48:48]wFMCommunicate request_size=4 [09:48:48]MH_SAM_APDU [09:48:48]CAPDU: 80 13 01 00 [09:48:48]Write to MH i2c: E2 08 00 BA 3A 80 13 01 00 00 00 00 00 71 [09:48:48]Write i2c OK [09:48:48]MH_I2C_Read... [09:48:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:48:48]Read from MH i2c: E2 [09:48:48]MH_I2C_Read... [09:48:48]Read from MH i2c: E2 0E 00 [09:48:48]MH_I2C_Read... [09:48:48]Read from MH i2c: E2 0E 00 BA 3A 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 D0 [09:48:48]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [09:48:48]wFMCommunicate OK [09:48:48]SAM_PROTO_GetShiftState done [09:48:48]FM_GetShiftState done [09:48:48]req_shift_opened done [09:48:48]requested_item shift.open_date is exist - process it [09:48:48]req_shift_open_date [09:48:48]req_shift_open_date done [09:48:48]produce_requested_data done [09:48:48]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187632,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [09:48:48]process_action_free close_receipt [09:48:48]json_value_free [09:48:48]json_value_free done [09:48:48]process_json_proto returns [09:48:48]Send response to host [09:48:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187632,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [09:48:48]free response buf [09:48:48]execute_script done [09:48:48]execute_script returns [09:48:48]free content buf [09:48:48]Sock 9.Close socket [09:48:48]Sock 9.Thread stoped [09:48:51]OFD Sender: No OFD packet to send [09:48:55]accept exits with 8 [09:48:55]New connection [09:48:55]New thread 3067014500 created [09:48:55]Thread 3067157860 joined [09:48:55]Waiting for new connection... [09:48:55] Sock 8.Parse request [09:48:55]Sock 8.Check first char [09:48:55]Sock 8.First char is OK [09:48:55]request: POST /json_proto HTTP/1.0 [09:48:55]Method: POST [09:48:55]URL: /json_proto [09:48:55]Method is POST - this is cgi request [09:48:55]url: /json_proto [09:48:55]query_string will be loaded in cgi processing [09:48:55]execute_cgi json_proto POST (null) [09:48:55]execute_cgi path=json_proto method=POST [09:48:55]POST find Content-Length [09:48:55]Host: 172.17.42.131:8080 [09:48:55]Content-Length: 803 [09:48:55]Content-Type: application/json [09:48:55] [09:48:55]POST finish read [09:48:55]Found Content-Length = 803 [09:48:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209684", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 67.390, "sum" : 5000.34, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 5000.34 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:48:55]execute_script... [09:48: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)209684", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 67.390, "sum" : 5000.34, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 5000.34 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:48:55]POST & json_proto [09:48:55]process_json_proto [09:48:55]json parsed OK: [09:48:55]protocol is kg_v1.0 [09:48:55]action value=close_receipt [09:48:55]process_action close_receipt [09:48:55]cmd_close_receipt [09:48:55]MH_GetDate [09:48:55]Write to MH i2c: F0 00 00 BB 3A E4 [09:48:55]Write i2c OK [09:48:55]MH_I2C_Read... [09:48:55]Read from MH i2c: F0 [09:48:55]MH_I2C_Read... [09:48:55]Read from MH i2c: F0 09 00 [09:48:55]MH_I2C_Read... [09:48:55]Read from MH i2c: F0 09 00 BB 3A 00 8A 23 16 67 A0 18 CA 66 FF [09:48:55]GetLastDocTimeStamp 1729504127 [09:48:55]current date 1729504138 [09:48:55]FM_GetShiftState [09:48:55]SAM_PROTO_GetShiftState [09:48:55]wFMCommunicate request_size=4 [09:48:55]MH_SAM_APDU [09:48:55]CAPDU: 80 13 01 00 [09:48:55]Write to MH i2c: E2 08 00 BC 3A 80 13 01 00 00 00 00 00 73 [09:48:55]Write i2c OK [09:48:55]MH_I2C_Read... [09:48:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:48:55]Read from MH i2c: E2 [09:48:55]MH_I2C_Read... [09:48:55]Read from MH i2c: E2 0E 00 [09:48:55]MH_I2C_Read... [09:48:55]Read from MH i2c: E2 0E 00 BC 3A 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 D2 [09:48:55]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [09:48:55]wFMCommunicate OK [09:48:55]SAM_PROTO_GetShiftState done [09:48:55]FM_GetShiftState done [09:48:55]opened in 1729469754 [09:48:55]opened+sec_in_day 1729556154 [09:48:55]quantity*price = 500033 [09:48:55]sum+1 = 500035 [09:48:55]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 5000.34 НСП 1% : 44.25 НДС 12% : 531.01 Наличными: 0.00 Безнал.: 5000.34 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 97 21.10.2024 09:48 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000965340 ФД: 187633 ФПД: 124667115104561 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T094858&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187633&fm=124667115104561&tin=02508201610067®Number=0000000000100030&sum=500034 [09:48:56]StoreToDocumentArchive [09:48:56]shift 460 fd 187633 [09:48:56]save to /storage/0460/doc_00187633 [09:48:56]save last doc name /storage/0460/doc_00187633 to /storage/kkm_last_doc_name [09:48:56]save OK [09:48:56]Clear old archive folders... [09:48:56]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:48:56]tlvbuf is 0112EDC0 [09:48:56]SAM_PROTO_ClearQueue [09:48:56]wFMCommunicate request_size=4 [09:48:56]MH_SAM_APDU [09:48:56]CAPDU: 80 09 00 00 [09:48:56]Write to MH i2c: E2 08 00 C9 3A 80 09 00 00 00 00 00 00 75 [09:48:56]Write i2c OK [09:48:56]MH_I2C_Read... [09:48:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:48:56]Read from MH i2c: E2 [09:48:56]MH_I2C_Read... [09:48:56]Read from MH i2c: E2 03 00 [09:48:56]MH_I2C_Read... [09:48:56]Read from MH i2c: E2 03 00 C9 3A 00 90 00 77 [09:48:56]RAPDU: 90 00 [09:48:56]wFMCommunicate OK [09:48:56]SAM_PROTO_ClearQueue done [09:48:56]KKMCreateOFDPacket [09:48:56]OFDProtocolAddRootSTLVToBuf [09:48:56]FM_MakeSignedData [09:48:56]FM_MakeSignedData [09:48:56]SAM_PROTO_SignData [09:48:56]wFMCommunicate request_size=4 [09:48:56]MH_SAM_APDU [09:48:56]CAPDU: 80 0D 01 02 [09:48:56]Write to MH i2c: E2 08 00 CA 3A 80 0D 01 02 00 00 00 00 7D [09:48:56]Write i2c OK [09:48:56]MH_I2C_Read... [09:48:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:48:56]Read from MH i2c: E2 [09:48:56]MH_I2C_Read... [09:48:56]Read from MH i2c: E2 03 00 [09:48:56]MH_I2C_Read... [09:48:56]Read from MH i2c: E2 03 00 CA 3A 00 90 00 78 [09:48:56]RAPDU: 90 00 [09:48:56]wFMCommunicate OK [09:48:56]wFMCommunicate request_size=255 [09:48:56]MH_SAM_APDU [09:48: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 3E 07 01 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 42 A1 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 42 A1 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 11 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6D CF 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 42 A1 07 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 8A 23 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 F1 DC 02 00 35 04 06 00 71 [09:48:56]Write to MH i2c: E2 02 01 CB 3A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 3E 07 01 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 42 A1 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 42 A1 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 11 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6D CF 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 42 A1 07 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 8A 23 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 F1 DC 02 00 35 04 06 00 71 00 00 B9 [09:48:56]Write i2c OK [09:48:56]MH_I2C_Read... [09:48:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:48:56]Read from MH i2c: E2 [09:48:56]MH_I2C_Read... [09:48:56]Read from MH i2c: E2 03 00 [09:48:56]MH_I2C_Read... [09:48:56]Read from MH i2c: E2 03 00 CB 3A 00 90 00 79 [09:48:56]RAPDU: 90 00 [09:48:56]wFMCommunicate OK [09:48:56]wFMCommunicate request_size=10 [09:48:56]MH_SAM_APDU [09:48:56]CAPDU: 80 0D 02 02 05 62 53 1C 69 31 [09:48:56]Write to MH i2c: E2 0D 00 CC 3A 80 0D 02 02 05 00 62 53 1C 69 31 00 00 F5 [09:48:56]Write i2c OK [09:48:56]MH_I2C_Read... [09:48:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:48:56]Read from MH i2c: E2 [09:48:56]MH_I2C_Read... [09:48:56]Read from MH i2c: E2 03 00 [09:48:56]MH_I2C_Read... [09:48:56]Read from MH i2c: E2 03 00 CC 3A 00 90 00 7A [09:48:56]RAPDU: 90 00 [09:48:56]wFMCommunicate OK [09:48:56]wFMCommunicate request_size=4 [09:48:56]MH_SAM_APDU [09:48:56]CAPDU: 80 0D 03 02 [09:48:56]Write to MH i2c: E2 08 00 CD 3A 80 0D 03 02 00 00 00 00 82 [09:48:56]Write i2c OK [09:48:56]MH_I2C_Read... [09:48:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:48:56]Read from MH i2c: E2 [09:48:56]MH_I2C_Read... [09:48:56]Read from MH i2c: E2 0B 00 [09:48:56]MH_I2C_Read... [09:48:56]Read from MH i2c: E2 0B 00 CD 3A 00 1E 67 69 CC E7 9C 9F 20 90 00 7F [09:48:56]RAPDU: 1E 67 69 CC E7 9C 9F 20 90 00 [09:48:56]wFMCommunicate OK [09:48:56]SAM_PROTO_SignData done [09:48:56]FM_MakeSignedData done [09:48:56]CreateOFDProtocolMessage [09:48:56]wFMCommunicate request_size=4 [09:48:56]MH_SAM_APDU [09:48:56]CAPDU: 80 11 00 00 [09:48:56]Write to MH i2c: E2 08 00 CE 3A 80 11 00 00 00 00 00 00 82 [09:48:56]Write i2c OK [09:48:56]MH_I2C_Read... [09:48:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:48:56]Read from MH i2c: E2 [09:48:56]MH_I2C_Read... [09:48:56]Read from MH i2c: E2 17 00 [09:48:56]MH_I2C_Read... [09:48:56]Read from MH i2c: E2 17 00 CE 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 D0 [09:48:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [09:48:56]wFMCommunicate OK [09:48:56]CreateOFDProtocolMessage done [09:48:56]OFDSenderStorePacket 187633 [09:48:56]StoreOFDPacket docnum=187633 [09:48:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 E8 8F 07 01 22 4E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 3E 07 01 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 42 A1 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 42 A1 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 11 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6D CF 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 42 A1 07 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 8A 23 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 F1 DC 02 00 35 04 06 00 71 62 53 1C 69 31 1E 67 69 CC E7 9C 9F 20 [09:48:56]CheckFolder [09:48:56]dirname=/storage/ofd_packets [09:48:56]CheckFolder done [09:48:56]ProducePacketName [09:48:56]name=ofd_packets/00187633 [09:48:56]NVStorageSaveData ofd_packets/00187633 [09:48:56]File name is /storage/ofd_packets/00187633 [09:48:56]Write 301 bytes [09:48:56]NVStorageSaveData done [09:48:56]OFDSenderStorePacket done [09:48:56]KKMCreateOFDPacket done [09:48:56]NVStorageSaveData kkm_last_timestamp [09:48:56]File name is /storage/kkm_last_timestamp [09:48:56]Write 4 bytes [09:48:56]NVStorageSaveData done [09:48:56]ExternCall_PrintAddStr [09:48:56]wPrintStart [09:48:56]Write to MH i2c: 01 00 00 CF 3A 09 [09:48:56]Write i2c OK [09:48:56]MH_I2C_Read... [09:48:56]Read from MH i2c: 01 [09:48:56]MH_I2C_Read... [09:48:56]Read from MH i2c: 01 07 00 [09:48:56]MH_I2C_Read... [09:48:56]Read from MH i2c: 01 07 00 CF 3A 00 00 00 00 00 FF 0F 1E [09:48:56]RasterBufferAndPrint [09:48:56]line Счет N : (1)209684 [09:48:56]line ИНН: 02508201610067 [09:48:56]line Контрольно-Кассовый Чек [09:48:56]line ПРОДАЖА [09:48:56]line ТРК (МРК, ГНК) : 33 [09:48:56]line Товар: 2710124500 [09:48:56]line Аи-95-К-3 [09:48:56]line 67.390 * 74.20 [09:48:56]line = 5000.34 [09:48:56]line НДС 12% НСП 1% [09:48:56]line > о реализуемом товаре [09:48:56]line ИТОГО: 5000.34 [09:48:56]line НСП 1% : 44.25 [09:48:56]line НДС 12% : 531.01 [09:48:56]line Наличными: 0.00 [09:48:56]line Безнал.: 5000.34 [09:48:56]line Место: АЗС № 86 "Партнер Нефть" [09:48:56]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [09:48:56]line СНО: Общий режим [09:48:56]line Чек 97 21.10.2024 09:48 [09:48:56]line Смена: 460 ФФД: 1.0 [09:48:56]line ЗНМ: 0300000155 [09:48:56]line РНМ: 0000000000100030 [09:48:56]line Версия ККМ: 001 [09:48:56]line Платежная система: O! деньги [09:48:56]line ФМ: 0000000000965340 [09:48:56]line ФД: 187633 [09:48:56]line ФПД: 124667115104561 [09:48:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T094858&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187633&fm=124667115104561&tin=02508201610067®Number=0000000000100030&sum=500034 [09:48:56]written 0, free lines is 4095 [09:48:56]OFD Sender: Processing packet 187633 [packets to send 1062, broken 1061] [09:48:56]ProducePacketName [09:48:56]name=ofd_packets/00187633 [09:48:56]OFD Sender: To server: pG, [09:48:56]CommunicateWithHost lk.salyk.kg:30040 [09:48:56]ConnectInit lk.salyk.kg [09:48:57]Connected sock=10 [09:48:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 E8 8F 07 01 22 4E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 3E 07 01 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 42 A1 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 42 A1 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 11 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6D CF 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 42 A1 07 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 8A 23 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 F1 DC 02 00 35 04 06 00 71 62 53 1C 69 31 1E 67 69 CC E7 9C 9F 20 [09:48:57]Write to MH i2c: 01 00 00 F9 3A 33 [09:48:57]Write i2c OK [09:48:57]MH_I2C_Read... [09:48:57]Read from MH i2c: 01 [09:48:57]MH_I2C_Read... [09:48:57]Read from MH i2c: 01 07 00 [09:48:57]MH_I2C_Read... [09:48:57]Read from MH i2c: 01 07 00 F9 3A 00 00 00 00 00 92 0C D8 [09:48:57]RasterBufferAndPrint [09:48:57]line [09:48:57]line [09:48:57]line [09:48:57]line [09:48:57]line [09:48:57]written 0, free lines is 3223 [09:48:57]MH_Cut [09:48:57]Write to MH i2c: D1 01 00 00 3B 01 0D [09:48:57]Write i2c OK [09:48:57]MH_I2C_Read... [09:48:57]Read from MH i2c: D1 [09:48:57]MH_I2C_Read... [09:48:57]Read from MH i2c: D1 01 00 [09:48:57]MH_I2C_Read... [09:48:57]Read from MH i2c: D1 01 00 00 3B 00 0C [09:48:57]Write to MH i2c: 01 00 00 01 3B 3C [09:48:57]Write i2c OK [09:48:57]MH_I2C_Read... [09:48:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 62 4D 47 00 8F 6C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 F1 DC 02 00 F4 03 04 00 7A CD 15 67 B6 04 01 00 00 8D 32 2D C4 9C C3 41 FE [09:48:57]CommunicateWithHost err = 0 [09:48:57]CheckOFDResponse [09:48:57]1017 (14) - 77093643461234 [09:48:57]1041 (16) - 0000000000965340 [09:48:57]1040 (4) - 187633 [09:48:57]1012 (4) - 21.10.2024 03:41 [09:48:57]1206 (1) - 0 [09:48:57]OFD Sender: Remove packet 187633 [09:48:57]ProducePacketName [09:48:57]name=ofd_packets/00187633 [09:48:57]NVStorageDeleteData [09:48:58]OFD Sender: No OFD packet to send [09:48:58]*** Cut start [09:48:58]*** Partial cut [09:48:58]*** CUTSNS_PIN = 1 [09:48:58]*** CUTSNS_PIN = 0 [09:48:58]*** Brake cut motor [09:48:58]Read from MH i2c: 01 [09:48:58]MH_I2C_Read... [09:48:58]*** Stop cut motor [09:48:58]*** Cut end [09:48:58]Read from MH i2c: 01 07 00 [09:48:58]MH_I2C_Read... [09:48:58]Read from MH i2c: 01 07 00 01 3B 00 00 00 00 00 FF 0F 51 [09:48:58]process_action close_receipt done [09:48:58]requested_data is exist [09:48:58]produce_requested_data [09:48:58]requested_item fm.sn is exist - process it [09:48:58]wFMCommunicate request_size=4 [09:48:58]MH_SAM_APDU [09:48:58]CAPDU: 80 11 00 00 [09:48:58]Write to MH i2c: E2 08 00 02 3B 80 11 00 00 00 00 00 00 B7 [09:48:58]Write i2c OK [09:48:58]MH_I2C_Read... [09:48:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:48:59]Read from MH i2c: E2 [09:48:59]MH_I2C_Read... [09:48:59]Read from MH i2c: E2 17 00 [09:48:59]MH_I2C_Read... [09:48:59]Read from MH i2c: E2 17 00 02 3B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 05 [09:48:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [09:48:59]wFMCommunicate OK [09:48:59]requested_item fd.num is exist - process it [09:48:59]SAM_PROTO_GetFieldsCounters [09:48:59]wFMCommunicate request_size=4 [09:48:59]MH_SAM_APDU [09:48:59]CAPDU: 80 13 00 00 [09:48:59]Write to MH i2c: E2 08 00 03 3B 80 13 00 00 00 00 00 00 BA [09:48:59]Write i2c OK [09:48:59]MH_I2C_Read... [09:48:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:48:59]Read from MH i2c: E2 [09:48:59]MH_I2C_Read... [09:48:59]Read from MH i2c: E2 62 00 [09:48:59]MH_I2C_Read... [09:48:59]Read from MH i2c: E2 62 00 03 3B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 F1 DC 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 61 00 00 00 5E 04 04 00 61 00 00 00 57 04 04 00 62 00 00 00 19 04 04 00 00 00 00 00 90 00 80 [09:48:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 F1 DC 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 61 00 00 00 5E 04 04 00 61 00 00 00 57 04 04 00 62 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:48:59]wFMCommunicate OK [09:48:59]SAM_PROTO_GetFieldsCounters done [09:48:59]requested_item shift.num is exist - process it [09:48:59]requested_item shift.opened is exist - process it [09:48:59]req_shift_opened [09:48:59]FM_GetShiftState [09:48:59]SAM_PROTO_GetShiftState [09:48:59]wFMCommunicate request_size=4 [09:48:59]MH_SAM_APDU [09:48:59]CAPDU: 80 13 01 00 [09:48:59]Write to MH i2c: E2 08 00 04 3B 80 13 01 00 00 00 00 00 BC [09:48:59]Write i2c OK [09:48:59]MH_I2C_Read... [09:48:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:48:59]Read from MH i2c: E2 [09:48:59]MH_I2C_Read... [09:48:59]Read from MH i2c: E2 0E 00 [09:48:59]MH_I2C_Read... [09:48:59]Read from MH i2c: E2 0E 00 04 3B 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 1B [09:48:59]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [09:48:59]wFMCommunicate OK [09:48:59]SAM_PROTO_GetShiftState done [09:48:59]FM_GetShiftState done [09:48:59]req_shift_opened done [09:48:59]requested_item shift.open_date is exist - process it [09:48:59]req_shift_open_date [09:48:59]req_shift_open_date done [09:48:59]produce_requested_data done [09:48:59]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187633,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [09:48:59]process_action_free close_receipt [09:48:59]json_value_free [09:48:59]json_value_free done [09:48:59]process_json_proto returns [09:48:59]Send response to host [09:48:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187633,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [09:48:59]free response buf [09:48:59]execute_script done [09:48:59]execute_script returns [09:48:59]free content buf [09:48:59]Sock 8.Close socket [09:48:59]Sock 8.Thread stoped [09:49:03]OFD Sender: No OFD packet to send [09:49:08]OFD Sender: No OFD packet to send [09:49:13]OFD Sender: No OFD packet to send [09:49:18]OFD Sender: No OFD packet to send [09:49:23]OFD Sender: No OFD packet to send [09:49:28]OFD Sender: No OFD packet to send [09:49:33]OFD Sender: No OFD packet to send [09:49:38]OFD Sender: No OFD packet to send [09:49:43]OFD Sender: No OFD packet to send [09:49:48]OFD Sender: No OFD packet to send [09:49:53]OFD Sender: No OFD packet to send [09:49:58]OFD Sender: No OFD packet to send [09:50:03]OFD Sender: No OFD packet to send [09:50:08]OFD Sender: No OFD packet to send [09:50:13]OFD Sender: No OFD packet to send [09:50:18]OFD Sender: No OFD packet to send [09:50:23]OFD Sender: No OFD packet to send [09:50:28]OFD Sender: No OFD packet to send [09:50:33]OFD Sender: No OFD packet to send [09:50:38]OFD Sender: No OFD packet to send [09:50:43]OFD Sender: No OFD packet to send [09:50:48]OFD Sender: No OFD packet to send [09:50:52]accept exits with 9 [09:50:52]New connection [09:50:52]New thread 3067157860 created [09:50:52]Thread 3067014500 joined [09:50:52]Waiting for new connection... [09:50:52] Sock 9.Parse request [09:50:52]Sock 9.Check first char [09:50:52]Sock 9.First char is OK [09:50:52]request: POST /json_proto HTTP/1.0 [09:50:52]Method: POST [09:50:52]URL: /json_proto [09:50:52]Method is POST - this is cgi request [09:50:52]url: /json_proto [09:50:52]query_string will be loaded in cgi processing [09:50:52]execute_cgi json_proto POST (null) [09:50:52]execute_cgi path=json_proto method=POST [09:50:52]POST find Content-Length [09:50:52]Host: 172.17.42.131:8080 [09:50:52]Content-Length: 792 [09:50:52]Content-Type: application/json [09:50:52] [09:50:52]POST finish read [09:50:52]Found Content-Length = 792 [09:50:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209686", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 0.00, "quantity" : 15.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A53078", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:50:52]execute_script... [09:50: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)209686", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 0.00, "quantity" : 15.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A53078", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:50:52]POST & json_proto [09:50:52]process_json_proto [09:50:52]json parsed OK: [09:50:52]protocol is kg_v1.0 [09:50:52]action value=close_receipt [09:50:52]process_action close_receipt [09:50:52]cmd_close_receipt [09:50:52]MH_GetDate [09:50:52]Write to MH i2c: F0 00 00 05 3B 2F [09:50:52]Write i2c OK [09:50:52]MH_I2C_Read... [09:50:52]Read from MH i2c: F0 [09:50:52]MH_I2C_Read... [09:50:52]Read from MH i2c: F0 09 00 [09:50:52]MH_I2C_Read... [09:50:52]Read from MH i2c: F0 09 00 05 3B 00 00 24 16 67 A0 18 CA 66 C1 [09:50:52]GetLastDocTimeStamp 1729504138 [09:50:52]current date 1729504256 [09:50:52]FM_GetShiftState [09:50:52]SAM_PROTO_GetShiftState [09:50:52]wFMCommunicate request_size=4 [09:50:52]MH_SAM_APDU [09:50:52]CAPDU: 80 13 01 00 [09:50:52]Write to MH i2c: E2 08 00 06 3B 80 13 01 00 00 00 00 00 BE [09:50:52]Write i2c OK [09:50:52]MH_I2C_Read... [09:50:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:50:52]Read from MH i2c: E2 [09:50:52]MH_I2C_Read... [09:50:52]Read from MH i2c: E2 0E 00 [09:50:52]MH_I2C_Read... [09:50:52]Read from MH i2c: E2 0E 00 06 3B 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 1D [09:50:52]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [09:50:52]wFMCommunicate OK [09:50:52]SAM_PROTO_GetShiftState done [09:50:52]FM_GetShiftState done [09:50:52]opened in 1729469754 [09:50:52]opened+sec_in_day 1729556154 [09:50:52]quantity*price = 0 [09:50:52]sum+1 = 1 [09:50:52]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 98 21.10.2024 09:50 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Талоны: Топливная Карта 53078 ФМ: 0000000000965340 ФД: 187634 ФПД: 13115901167482 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T095056&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187634&fm=13115901167482&tin=02508201610067®Number=0000000000100030&sum=0 [09:50:53]StoreToDocumentArchive [09:50:53]shift 460 fd 187634 [09:50:53]save to /storage/0460/doc_00187634 [09:50:53]save last doc name /storage/0460/doc_00187634 to /storage/kkm_last_doc_name [09:50:53]save OK [09:50:53]Clear old archive folders... [09:50:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:50:53]tlvbuf is 01090A30 [09:50:53]SAM_PROTO_ClearQueue [09:50:53]wFMCommunicate request_size=4 [09:50:53]MH_SAM_APDU [09:50:53]CAPDU: 80 09 00 00 [09:50:53]Write to MH i2c: E2 08 00 13 3B 80 09 00 00 00 00 00 00 C0 [09:50:53]Write i2c OK [09:50:53]MH_I2C_Read... [09:50:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:50:53]Read from MH i2c: E2 [09:50:53]MH_I2C_Read... [09:50:53]Read from MH i2c: E2 03 00 [09:50:53]MH_I2C_Read... [09:50:53]Read from MH i2c: E2 03 00 13 3B 00 90 00 C2 [09:50:53]RAPDU: 90 00 [09:50:53]wFMCommunicate OK [09:50:53]SAM_PROTO_ClearQueue done [09:50:53]KKMCreateOFDPacket [09:50:53]OFDProtocolAddRootSTLVToBuf [09:50:53]FM_MakeSignedData [09:50:53]FM_MakeSignedData [09:50:53]SAM_PROTO_SignData [09:50:53]wFMCommunicate request_size=4 [09:50:53]MH_SAM_APDU [09:50:53]CAPDU: 80 0D 01 02 [09:50:53]Write to MH i2c: E2 08 00 14 3B 80 0D 01 02 00 00 00 00 C8 [09:50:53]Write i2c OK [09:50:53]MH_I2C_Read... [09:50:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:50:53]Read from MH i2c: E2 [09:50:53]MH_I2C_Read... [09:50:53]Read from MH i2c: E2 03 00 [09:50:53]MH_I2C_Read... [09:50:53]Read from MH i2c: E2 03 00 14 3B 00 90 00 C3 [09:50:53]RAPDU: 90 00 [09:50:53]wFMCommunicate OK [09:50:53]wFMCommunicate request_size=255 [09:50:53]MH_SAM_APDU [09:50: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 33 FF 03 08 00 03 98 3A 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 00 24 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 F2 DC 02 00 35 04 06 00 0B [09:50:53]Write to MH i2c: E2 02 01 15 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 33 FF 03 08 00 03 98 3A 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 00 24 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 F2 DC 02 00 35 04 06 00 0B 00 00 33 [09:50:53]Write i2c OK [09:50:53]MH_I2C_Read... [09:50:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:50:53]Read from MH i2c: E2 [09:50:53]MH_I2C_Read... [09:50:53]Read from MH i2c: E2 03 00 [09:50:53]MH_I2C_Read... [09:50:53]Read from MH i2c: E2 03 00 15 3B 00 90 00 C4 [09:50:53]RAPDU: 90 00 [09:50:53]wFMCommunicate OK [09:50:53]wFMCommunicate request_size=10 [09:50:53]MH_SAM_APDU [09:50:53]CAPDU: 80 0D 02 02 05 ED C8 A1 47 7A [09:50:53]Write to MH i2c: E2 0D 00 16 3B 80 0D 02 02 05 00 ED C8 A1 47 7A 00 00 EC [09:50:53]Write i2c OK [09:50:53]MH_I2C_Read... [09:50:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:50:54]Read from MH i2c: E2 [09:50:54]MH_I2C_Read... [09:50:54]Read from MH i2c: E2 03 00 [09:50:54]MH_I2C_Read... [09:50:54]Read from MH i2c: E2 03 00 16 3B 00 90 00 C5 [09:50:54]RAPDU: 90 00 [09:50:54]wFMCommunicate OK [09:50:54]wFMCommunicate request_size=4 [09:50:54]MH_SAM_APDU [09:50:54]CAPDU: 80 0D 03 02 [09:50:54]Write to MH i2c: E2 08 00 17 3B 80 0D 03 02 00 00 00 00 CD [09:50:54]Write i2c OK [09:50:54]MH_I2C_Read... [09:50:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:50:54]Read from MH i2c: E2 [09:50:54]MH_I2C_Read... [09:50:54]Read from MH i2c: E2 0B 00 [09:50:54]MH_I2C_Read... [09:50:54]Read from MH i2c: E2 0B 00 17 3B 00 9B 0A 8E 07 0E 2E 58 F6 90 00 92 [09:50:54]RAPDU: 9B 0A 8E 07 0E 2E 58 F6 90 00 [09:50:54]wFMCommunicate OK [09:50:54]SAM_PROTO_SignData done [09:50:54]FM_MakeSignedData done [09:50:54]CreateOFDProtocolMessage [09:50:54]wFMCommunicate request_size=4 [09:50:54]MH_SAM_APDU [09:50:54]CAPDU: 80 11 00 00 [09:50:54]Write to MH i2c: E2 08 00 18 3B 80 11 00 00 00 00 00 00 CD [09:50:54]Write i2c OK [09:50:54]MH_I2C_Read... [09:50:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:50:54]Read from MH i2c: E2 [09:50:54]MH_I2C_Read... [09:50:54]Read from MH i2c: E2 17 00 [09:50:54]MH_I2C_Read... [09:50:54]Read from MH i2c: E2 17 00 18 3B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 1B [09:50:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [09:50:54]wFMCommunicate OK [09:50:54]CreateOFDProtocolMessage done [09:50:54]OFDSenderStorePacket 187634 [09:50:54]StoreOFDPacket docnum=187634 [09:50:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 56 57 07 01 49 40 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 98 3A 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 00 24 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 F2 DC 02 00 35 04 06 00 0B ED C8 A1 47 7A 9B 0A 8E 07 0E 2E 58 F6 [09:50:54]CheckFolder [09:50:54]dirname=/storage/ofd_packets [09:50:54]CheckFolder done [09:50:54]ProducePacketName [09:50:54]name=ofd_packets/00187634 [09:50:54]NVStorageSaveData ofd_packets/00187634 [09:50:54]File name is /storage/ofd_packets/00187634 [09:50:54]Write 301 bytes [09:50:54]NVStorageSaveData done [09:50:54]OFDSenderStorePacket done [09:50:54]KKMCreateOFDPacket done [09:50:54]NVStorageSaveData kkm_last_timestamp [09:50:54]File name is /storage/kkm_last_timestamp [09:50:54]Write 4 bytes [09:50:54]NVStorageSaveData done [09:50:54]ExternCall_PrintAddStr [09:50:54]wPrintStart [09:50:54]Write to MH i2c: 01 00 00 19 3B 54 [09:50:54]Write i2c OK [09:50:54]MH_I2C_Read... [09:50:54]Read from MH i2c: 01 [09:50:54]MH_I2C_Read... [09:50:54]Read from MH i2c: 01 07 00 [09:50:54]MH_I2C_Read... [09:50:54]Read from MH i2c: 01 07 00 19 3B 00 00 00 00 00 FF 0F 69 [09:50:54]RasterBufferAndPrint [09:50:54]line Счет N : (1)209686 [09:50:54]line ИНН: 02508201610067 [09:50:54]line Контрольно-Кассовый Чек [09:50:54]line ПРОДАЖА [09:50:54]line ТРК (МРК, ГНК) : 12 [09:50:54]line Товар: 2710124130 [09:50:54]line Аи-92-К-3 [09:50:54]line 15.000 * 0.00 [09:50:54]line = 0.00 [09:50:54]line НДС 12% НСП 1% [09:50:54]line > о реализуемом товаре [09:50:54]line ИТОГО: 0.00 [09:50:54]line НСП 1% : 0.00 [09:50:54]line НДС 12% : 0.00 [09:50:54]line Наличными: 0.00 [09:50:54]line Безнал.: 0.00 [09:50:54]line Место: АЗС № 86 "Партнер Нефть" [09:50:54]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [09:50:54]line СНО: Общий режим [09:50:54]line Чек 98 21.10.2024 09:50 [09:50:54]line Смена: 460 ФФД: 1.0 [09:50:54]line ЗНМ: 0300000155 [09:50:54]line РНМ: 0000000000100030 [09:50:54]line Версия ККМ: 001 [09:50:54]line Талоны: Топливная Карта [09:50:54]line 53078 [09:50:54]line ФМ: 0000000000965340 [09:50:54]line ФД: 187634 [09:50:54]line ФПД: 13115901167482 [09:50:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T095056&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187634&fm=13115901167482&tin=02508201610067®Number=0000000000100030&sum=0 [09:50:54]written 0, free lines is 4095 [09:50:54]OFD Sender: Processing packet 187634 [packets to send 1062, broken 1061] [09:50:54]ProducePacketName [09:50:54]name=ofd_packets/00187634 [09:50:54]OFD Sender: To server: pG, [09:50:54]CommunicateWithHost lk.salyk.kg:30040 [09:50:54]ConnectInit lk.salyk.kg [09:50:54]Connected sock=10 [09:50:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 56 57 07 01 49 40 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 98 3A 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 00 24 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 F2 DC 02 00 35 04 06 00 0B ED C8 A1 47 7A 9B 0A 8E 07 0E 2E 58 F6 [09:50:54]Write to MH i2c: 01 00 00 43 3B 7E [09:50:54]Write i2c OK [09:50:54]MH_I2C_Read... [09:50:54]Read from MH i2c: 01 [09:50:54]MH_I2C_Read... [09:50:54]Read from MH i2c: 01 07 00 [09:50:54]MH_I2C_Read... [09:50:54]Read from MH i2c: 01 07 00 43 3B 00 00 00 00 00 8E 0C 1F [09:50:54]RasterBufferAndPrint [09:50:54]line [09:50:54]line [09:50:54]line [09:50:54]line [09:50:54]line [09:50:54]written 0, free lines is 3218 [09:50:54]MH_Cut [09:50:54]Write to MH i2c: D1 01 00 4A 3B 01 57 [09:50:54]Write i2c OK [09:50:54]MH_I2C_Read... [09:50:54]Read from MH i2c: D1 [09:50:54]MH_I2C_Read... [09:50:54]Read from MH i2c: D1 01 00 [09:50:54]MH_I2C_Read... [09:50:54]Read from MH i2c: D1 01 00 4A 3B 00 56 [09:50:54]Write to MH i2c: 01 00 00 4B 3B 86 [09:50:54]Write i2c OK [09:50:54]MH_I2C_Read... [09:50:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 B6 03 47 00 E6 18 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 F2 DC 02 00 F4 03 04 00 EF CD 15 67 B6 04 01 00 00 72 03 29 7E 9D 58 88 8D [09:50:54]CommunicateWithHost err = 0 [09:50:54]CheckOFDResponse [09:50:54]1017 (14) - 77093643461234 [09:50:54]1041 (16) - 0000000000965340 [09:50:54]1040 (4) - 187634 [09:50:54]1012 (4) - 21.10.2024 03:43 [09:50:54]1206 (1) - 0 [09:50:54]OFD Sender: Remove packet 187634 [09:50:54]ProducePacketName [09:50:54]name=ofd_packets/00187634 [09:50:54]NVStorageDeleteData [09:50:55]OFD Sender: No OFD packet to send [09:50:55]*** Cut start [09:50:55]*** Partial cut [09:50:55]*** CUTSNS_PIN = 1 [09:50:55]*** CUTSNS_PIN = 0 [09:50:55]*** Brake cut motor [09:50:56]Read from MH i2c: 01 [09:50:56]MH_I2C_Read... [09:50:56]*** Stop cut motor [09:50:56]*** Cut end [09:50:56]Read from MH i2c: 01 07 00 [09:50:56]MH_I2C_Read... [09:50:56]Read from MH i2c: 01 07 00 4B 3B 00 00 00 00 00 FF 0F 9B [09:50:56]process_action close_receipt done [09:50:56]requested_data is exist [09:50:56]produce_requested_data [09:50:56]requested_item fm.sn is exist - process it [09:50:56]wFMCommunicate request_size=4 [09:50:56]MH_SAM_APDU [09:50:56]CAPDU: 80 11 00 00 [09:50:56]Write to MH i2c: E2 08 00 4C 3B 80 11 00 00 00 00 00 00 01 [09:50:56]Write i2c OK [09:50:56]MH_I2C_Read... [09:50:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:50:56]Read from MH i2c: E2 [09:50:56]MH_I2C_Read... [09:50:56]Read from MH i2c: E2 17 00 [09:50:56]MH_I2C_Read... [09:50:56]Read from MH i2c: E2 17 00 4C 3B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 4F [09:50:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [09:50:56]wFMCommunicate OK [09:50:56]requested_item fd.num is exist - process it [09:50:56]SAM_PROTO_GetFieldsCounters [09:50:56]wFMCommunicate request_size=4 [09:50:56]MH_SAM_APDU [09:50:56]CAPDU: 80 13 00 00 [09:50:56]Write to MH i2c: E2 08 00 4D 3B 80 13 00 00 00 00 00 00 04 [09:50:56]Write i2c OK [09:50:56]MH_I2C_Read... [09:50:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:50:56]Read from MH i2c: E2 [09:50:56]MH_I2C_Read... [09:50:56]Read from MH i2c: E2 62 00 [09:50:56]MH_I2C_Read... [09:50:56]Read from MH i2c: E2 62 00 4D 3B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 F2 DC 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 62 00 00 00 5E 04 04 00 62 00 00 00 57 04 04 00 63 00 00 00 19 04 04 00 00 00 00 00 90 00 CE [09:50:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 F2 DC 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 62 00 00 00 5E 04 04 00 62 00 00 00 57 04 04 00 63 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:50:56]wFMCommunicate OK [09:50:56]SAM_PROTO_GetFieldsCounters done [09:50:56]requested_item shift.num is exist - process it [09:50:56]requested_item shift.opened is exist - process it [09:50:56]req_shift_opened [09:50:56]FM_GetShiftState [09:50:56]SAM_PROTO_GetShiftState [09:50:56]wFMCommunicate request_size=4 [09:50:56]MH_SAM_APDU [09:50:56]CAPDU: 80 13 01 00 [09:50:56]Write to MH i2c: E2 08 00 4E 3B 80 13 01 00 00 00 00 00 06 [09:50:56]Write i2c OK [09:50:56]MH_I2C_Read... [09:50:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:50:56]Read from MH i2c: E2 [09:50:56]MH_I2C_Read... [09:50:56]Read from MH i2c: E2 0E 00 [09:50:56]MH_I2C_Read... [09:50:56]Read from MH i2c: E2 0E 00 4E 3B 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 65 [09:50:56]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [09:50:56]wFMCommunicate OK [09:50:56]SAM_PROTO_GetShiftState done [09:50:56]FM_GetShiftState done [09:50:56]req_shift_opened done [09:50:56]requested_item shift.open_date is exist - process it [09:50:56]req_shift_open_date [09:50:56]req_shift_open_date done [09:50:56]produce_requested_data done [09:50:56]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187634,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [09:50:56]process_action_free close_receipt [09:50:56]json_value_free [09:50:56]json_value_free done [09:50:56]process_json_proto returns [09:50:56]Send response to host [09:50:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187634,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [09:50:56]free response buf [09:50:56]execute_script done [09:50:56]execute_script returns [09:50:56]free content buf [09:50:56]Sock 9.Close socket [09:50:56]Sock 9.Thread stoped [09:51:00]OFD Sender: No OFD packet to send [09:51:05]OFD Sender: No OFD packet to send [09:51:10]OFD Sender: No OFD packet to send [09:51:15]OFD Sender: No OFD packet to send [09:51:20]OFD Sender: No OFD packet to send [09:51:25]OFD Sender: No OFD packet to send [09:51:30]OFD Sender: No OFD packet to send [09:51:35]OFD Sender: No OFD packet to send [09:51:40]OFD Sender: No OFD packet to send [09:51:45]OFD Sender: No OFD packet to send [09:51:50]OFD Sender: No OFD packet to send [09:51:55]OFD Sender: No OFD packet to send [09:52:00]OFD Sender: No OFD packet to send [09:52:05]OFD Sender: No OFD packet to send [09:52:10]OFD Sender: No OFD packet to send [09:52:15]OFD Sender: No OFD packet to send [09:52:20]OFD Sender: No OFD packet to send [09:52:25]OFD Sender: No OFD packet to send [09:52:30]OFD Sender: No OFD packet to send [09:52:35]OFD Sender: No OFD packet to send [09:52:40]OFD Sender: No OFD packet to send [09:52:45]OFD Sender: No OFD packet to send [09:52:50]OFD Sender: No OFD packet to send [09:52:55]OFD Sender: No OFD packet to send [09:53:00]OFD Sender: No OFD packet to send [09:53:05]OFD Sender: No OFD packet to send [09:53:10]OFD Sender: No OFD packet to send [09:53:12]accept exits with 8 [09:53:12]New connection [09:53:12]New thread 3067014500 created [09:53:12]Thread 3067157860 joined [09:53:12]Waiting for new connection... [09:53:12] Sock 8.Parse request [09:53:12]Sock 8.Check first char [09:53:12]Sock 8.First char is OK [09:53:12]request: POST /json_proto HTTP/1.0 [09:53:12]Method: POST [09:53:12]URL: /json_proto [09:53:12]Method is POST - this is cgi request [09:53:12]url: /json_proto [09:53:12]query_string will be loaded in cgi processing [09:53:12]execute_cgi json_proto POST (null) [09:53:12]execute_cgi path=json_proto method=POST [09:53:12]POST find Content-Length [09:53:12]Host: 172.17.42.131:8080 [09:53:12]Content-Length: 688 [09:53:12]Content-Type: application/json [09:53:12] [09:53:12]POST finish read [09:53:12]Found Content-Length = 688 [09:53:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209687", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 14.250, "sum" : 1100.10, "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" ] } } [09:53:12]execute_script... [09:53: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)209687", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 14.250, "sum" : 1100.10, "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" ] } } [09:53:12]POST & json_proto [09:53:12]process_json_proto [09:53:12]json parsed OK: [09:53:12]protocol is kg_v1.0 [09:53:12]action value=close_receipt [09:53:12]process_action close_receipt [09:53:12]cmd_close_receipt [09:53:12]MH_GetDate [09:53:12]Write to MH i2c: F0 00 00 4F 3B 79 [09:53:12]Write i2c OK [09:53:12]MH_I2C_Read... [09:53:12]Read from MH i2c: F0 [09:53:12]MH_I2C_Read... [09:53:12]Read from MH i2c: F0 09 00 [09:53:12]MH_I2C_Read... [09:53:12]Read from MH i2c: F0 09 00 4F 3B 00 8C 24 16 67 A0 18 CA 66 97 [09:53:12]GetLastDocTimeStamp 1729504256 [09:53:12]current date 1729504396 [09:53:12]FM_GetShiftState [09:53:12]SAM_PROTO_GetShiftState [09:53:12]wFMCommunicate request_size=4 [09:53:12]MH_SAM_APDU [09:53:12]CAPDU: 80 13 01 00 [09:53:12]Write to MH i2c: E2 08 00 50 3B 80 13 01 00 00 00 00 00 08 [09:53:12]Write i2c OK [09:53:12]MH_I2C_Read... [09:53:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:53:12]Read from MH i2c: E2 [09:53:12]MH_I2C_Read... [09:53:12]Read from MH i2c: E2 0E 00 [09:53:12]MH_I2C_Read... [09:53:12]Read from MH i2c: E2 0E 00 50 3B 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 67 [09:53:12]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [09:53:12]wFMCommunicate OK [09:53:12]SAM_PROTO_GetShiftState done [09:53:12]FM_GetShiftState done [09:53:12]opened in 1729469754 [09:53:12]opened+sec_in_day 1729556154 [09:53:12]quantity*price = 110010 [09:53:12]sum+1 = 110011 [09:53:12]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.10 ИТОГО: 1100.00 Внесено: 1100.00 СДАЧА: 0.00 НСП 1% : 9.73 НДС 12% : 116.82 Наличными: 1100.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 99 21.10.2024 09:53 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 187635 ФПД: 248236623557645 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T095316&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187635&fm=248236623557645&tin=02508201610067®Number=0000000000100030&sum=110000 [09:53:13]StoreToDocumentArchive [09:53:13]shift 460 fd 187635 [09:53:13]save to /storage/0460/doc_00187635 [09:53:13]save last doc name /storage/0460/doc_00187635 to /storage/kkm_last_doc_name [09:53:13]save OK [09:53:13]Clear old archive folders... [09:53:13]ProcessDocumentItem done err = 0, tmpTLVsize=257 [09:53:13]tlvbuf is 010E3F50 [09:53:13]SAM_PROTO_ClearQueue [09:53:13]wFMCommunicate request_size=4 [09:53:13]MH_SAM_APDU [09:53:13]CAPDU: 80 09 00 00 [09:53:13]Write to MH i2c: E2 08 00 5D 3B 80 09 00 00 00 00 00 00 0A [09:53:13]Write i2c OK [09:53:13]MH_I2C_Read... [09:53:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:53:13]Read from MH i2c: E2 [09:53:13]MH_I2C_Read... [09:53:13]Read from MH i2c: E2 03 00 [09:53:13]MH_I2C_Read... [09:53:13]Read from MH i2c: E2 03 00 5D 3B 00 90 00 0C [09:53:13]RAPDU: 90 00 [09:53:13]wFMCommunicate OK [09:53:13]SAM_PROTO_ClearQueue done [09:53:13]KKMCreateOFDPacket [09:53:13]OFDProtocolAddRootSTLVToBuf [09:53:13]FM_MakeSignedData [09:53:13]FM_MakeSignedData [09:53:13]SAM_PROTO_SignData [09:53:13]wFMCommunicate request_size=4 [09:53:13]MH_SAM_APDU [09:53:13]CAPDU: 80 0D 01 02 [09:53:13]Write to MH i2c: E2 08 00 5E 3B 80 0D 01 02 00 00 00 00 12 [09:53:13]Write i2c OK [09:53:13]MH_I2C_Read... [09:53:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:53:13]Read from MH i2c: E2 [09:53:13]MH_I2C_Read... [09:53:13]Read from MH i2c: E2 03 00 [09:53:13]MH_I2C_Read... [09:53:13]Read from MH i2c: E2 03 00 5E 3B 00 90 00 0D [09:53:13]RAPDU: 90 00 [09:53:13]wFMCommunicate OK [09:53:13]wFMCommunicate request_size=255 [09:53:13]MH_SAM_APDU [09:53:13]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 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 37 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 BA AD 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 AD 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CD 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A2 2D 00 00 00 00 07 04 06 00 B0 AD 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 8C 24 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 F3 DC 02 [09:53:13]Write to MH i2c: E2 02 01 5F 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 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 37 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 BA AD 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 AD 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CD 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A2 2D 00 00 00 00 07 04 06 00 B0 AD 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 8C 24 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 F3 DC 02 00 00 A5 [09:53:13]Write i2c OK [09:53:13]MH_I2C_Read... [09:53:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:53:14]Read from MH i2c: E2 [09:53:14]MH_I2C_Read... [09:53:14]Read from MH i2c: E2 03 00 [09:53:14]MH_I2C_Read... [09:53:14]Read from MH i2c: E2 03 00 5F 3B 00 90 00 0E [09:53:14]RAPDU: 90 00 [09:53:14]wFMCommunicate OK [09:53:14]wFMCommunicate request_size=16 [09:53:14]MH_SAM_APDU [09:53:14]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 E1 C5 17 C4 74 0D [09:53:14]Write to MH i2c: E2 13 00 60 3B 80 0D 02 02 0B 00 00 35 04 06 00 E1 C5 17 C4 74 0D 00 00 6C [09:53:14]Write i2c OK [09:53:14]MH_I2C_Read... [09:53:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:53:14]Read from MH i2c: E2 [09:53:14]MH_I2C_Read... [09:53:14]Read from MH i2c: E2 03 00 [09:53:14]MH_I2C_Read... [09:53:14]Read from MH i2c: E2 03 00 60 3B 00 90 00 0F [09:53:14]RAPDU: 90 00 [09:53:14]wFMCommunicate OK [09:53:14]wFMCommunicate request_size=4 [09:53:14]MH_SAM_APDU [09:53:14]CAPDU: 80 0D 03 02 [09:53:14]Write to MH i2c: E2 08 00 61 3B 80 0D 03 02 00 00 00 00 17 [09:53:14]Write i2c OK [09:53:14]MH_I2C_Read... [09:53:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:53:14]Read from MH i2c: E2 [09:53:14]MH_I2C_Read... [09:53:14]Read from MH i2c: E2 0B 00 [09:53:14]MH_I2C_Read... [09:53:14]Read from MH i2c: E2 0B 00 61 3B 00 A5 EE 23 4A BD 59 08 C4 90 00 FA [09:53:14]RAPDU: A5 EE 23 4A BD 59 08 C4 90 00 [09:53:14]wFMCommunicate OK [09:53:14]SAM_PROTO_SignData done [09:53:14]FM_MakeSignedData done [09:53:14]CreateOFDProtocolMessage [09:53:14]wFMCommunicate request_size=4 [09:53:14]MH_SAM_APDU [09:53:14]CAPDU: 80 11 00 00 [09:53:14]Write to MH i2c: E2 08 00 62 3B 80 11 00 00 00 00 00 00 17 [09:53:14]Write i2c OK [09:53:14]MH_I2C_Read... [09:53:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:53:14]Read from MH i2c: E2 [09:53:14]MH_I2C_Read... [09:53:14]Read from MH i2c: E2 17 00 [09:53:14]MH_I2C_Read... [09:53:14]Read from MH i2c: E2 17 00 62 3B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 65 [09:53:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [09:53:14]wFMCommunicate OK [09:53:14]CreateOFDProtocolMessage done [09:53:14]OFDSenderStorePacket 187635 [09:53:14]StoreOFDPacket docnum=187635 [09:53:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 E6 3E 0D 01 50 53 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 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 37 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 BA AD 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 AD 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CD 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A2 2D 00 00 00 00 07 04 06 00 B0 AD 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 8C 24 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 F3 DC 02 00 35 04 06 00 E1 C5 17 C4 74 0D A5 EE 23 4A BD 59 08 C4 [09:53:14]CheckFolder [09:53:14]dirname=/storage/ofd_packets [09:53:14]CheckFolder done [09:53:14]ProducePacketName [09:53:14]name=ofd_packets/00187635 [09:53:14]NVStorageSaveData ofd_packets/00187635 [09:53:14]File name is /storage/ofd_packets/00187635 [09:53:14]Write 307 bytes [09:53:14]NVStorageSaveData done [09:53:14]OFDSenderStorePacket done [09:53:14]KKMCreateOFDPacket done [09:53:14]NVStorageSaveData kkm_last_timestamp [09:53:14]File name is /storage/kkm_last_timestamp [09:53:14]Write 4 bytes [09:53:14]NVStorageSaveData done [09:53:14]ExternCall_PrintAddStr [09:53:14]wPrintStart [09:53:14]Write to MH i2c: 01 00 00 63 3B 9E [09:53:14]Write i2c OK [09:53:14]MH_I2C_Read... [09:53:14]Read from MH i2c: 01 [09:53:14]MH_I2C_Read... [09:53:14]Read from MH i2c: 01 07 00 [09:53:14]MH_I2C_Read... [09:53:14]Read from MH i2c: 01 07 00 63 3B 00 00 00 00 00 FF 0F B3 [09:53:14]RasterBufferAndPrint [09:53:14]line Счет N : (1)209687 [09:53:14]line ИНН: 02508201610067 [09:53:14]line Контрольно-Кассовый Чек [09:53:14]line ПРОДАЖА [09:53:14]line ТРК (МРК, ГНК) : 31 [09:53:14]line Товар: 2710194210 [09:53:14]line D-ENERGY ДТ-К-5 [09:53:14]line 14.250 * 77.20 [09:53:14]line = 1100.10 [09:53:14]line НДС 12% НСП 1% [09:53:14]line > о реализуемом товаре [09:53:14]line ОКРУГЛЕНИЕ: -0.10 [09:53:14]line ИТОГО: 1100.00 [09:53:14]line Внесено: 1100.00 [09:53:14]line СДАЧА: 0.00 [09:53:14]line НСП 1% : 9.73 [09:53:14]line НДС 12% : 116.82 [09:53:14]line Наличными: 1100.00 [09:53:14]line Безнал.: 0.00 [09:53:14]line Место: АЗС № 86 "Партнер Нефть" [09:53:14]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [09:53:14]line СНО: Общий режим [09:53:14]line Чек 99 21.10.2024 09:53 [09:53:14]line Смена: 460 ФФД: 1.0 [09:53:14]line ЗНМ: 0300000155 [09:53:14]line РНМ: 0000000000100030 [09:53:14]line Версия ККМ: 001 [09:53:14]line ФМ: 0000000000965340 [09:53:14]line ФД: 187635 [09:53:14]line ФПД: 248236623557645 [09:53:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T095316&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187635&fm=248236623557645&tin=02508201610067®Number=0000000000100030&sum=110000 [09:53:14]written 0, free lines is 4095 [09:53:14]OFD Sender: Processing packet 187635 [packets to send 1062, broken 1061] [09:53:14]ProducePacketName [09:53:14]name=ofd_packets/00187635 [09:53:14]OFD Sender: To server: pG, [09:53:14]CommunicateWithHost lk.salyk.kg:30040 [09:53:14]ConnectInit lk.salyk.kg [09:53:14]Connected sock=10 [09:53:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 E6 3E 0D 01 50 53 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 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 37 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 BA AD 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 AD 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CD 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A2 2D 00 00 00 00 07 04 06 00 B0 AD 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 8C 24 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 F3 DC 02 00 35 04 06 00 E1 C5 17 C4 74 0D A5 EE 23 4A BD 59 08 C4 [09:53:14]Write to MH i2c: 01 00 00 8E 3B C9 [09:53:14]Write i2c OK [09:53:14]MH_I2C_Read... [09:53:14]Read from MH i2c: 01 [09:53:14]MH_I2C_Read... [09:53:14]Read from MH i2c: 01 07 00 [09:53:14]MH_I2C_Read... [09:53:14]Read from MH i2c: 01 07 00 8E 3B 00 00 00 00 00 73 0C 4F [09:53:14]RasterBufferAndPrint [09:53:14]line [09:53:14]line [09:53:14]line [09:53:14]line [09:53:14]line [09:53:14]written 0, free lines is 3190 [09:53:14]MH_Cut [09:53:14]Write to MH i2c: D1 01 00 95 3B 01 A2 [09:53:14]Write i2c OK [09:53:14]MH_I2C_Read... [09:53:14]Read from MH i2c: D1 [09:53:14]MH_I2C_Read... [09:53:14]Read from MH i2c: D1 01 00 [09:53:14]MH_I2C_Read... [09:53:14]Read from MH i2c: D1 01 00 95 3B 00 A1 [09:53:14]Write to MH i2c: 01 00 00 96 3B D1 [09:53:14]Write i2c OK [09:53:14]MH_I2C_Read... [09:53:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 0A 01 47 00 84 FB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 F3 DC 02 00 F4 03 04 00 7C CE 15 67 B6 04 01 00 00 89 A1 7E 56 8C EF 6C 3A [09:53:14]CommunicateWithHost err = 0 [09:53:14]CheckOFDResponse [09:53:14]1017 (14) - 77093643461234 [09:53:14]1041 (16) - 0000000000965340 [09:53:14]1040 (4) - 187635 [09:53:14]1012 (4) - 21.10.2024 03:46 [09:53:14]1206 (1) - 0 [09:53:14]OFD Sender: Remove packet 187635 [09:53:14]ProducePacketName [09:53:14]name=ofd_packets/00187635 [09:53:14]NVStorageDeleteData [09:53:15]OFD Sender: No OFD packet to send [09:53:15]*** Cut start [09:53:15]*** Partial cut [09:53:15]*** CUTSNS_PIN = 1 [09:53:16]*** CUTSNS_PIN = 0 [09:53:16]*** Brake cut motor [09:53:16]Read from MH i2c: 01 [09:53:16]MH_I2C_Read... [09:53:16]*** Stop cut motor [09:53:16]*** Cut end [09:53:16]Read from MH i2c: 01 07 00 [09:53:16]MH_I2C_Read... [09:53:16]Read from MH i2c: 01 07 00 96 3B 00 00 00 00 00 FF 0F E6 [09:53:16]process_action close_receipt done [09:53:16]requested_data is exist [09:53:16]produce_requested_data [09:53:16]requested_item fm.sn is exist - process it [09:53:16]wFMCommunicate request_size=4 [09:53:16]MH_SAM_APDU [09:53:16]CAPDU: 80 11 00 00 [09:53:16]Write to MH i2c: E2 08 00 97 3B 80 11 00 00 00 00 00 00 4C [09:53:16]Write i2c OK [09:53:16]MH_I2C_Read... [09:53:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:53:16]Read from MH i2c: E2 [09:53:16]MH_I2C_Read... [09:53:16]Read from MH i2c: E2 17 00 [09:53:16]MH_I2C_Read... [09:53:16]Read from MH i2c: E2 17 00 97 3B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 9A [09:53:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [09:53:16]wFMCommunicate OK [09:53:16]requested_item fd.num is exist - process it [09:53:16]SAM_PROTO_GetFieldsCounters [09:53:16]wFMCommunicate request_size=4 [09:53:16]MH_SAM_APDU [09:53:16]CAPDU: 80 13 00 00 [09:53:16]Write to MH i2c: E2 08 00 98 3B 80 13 00 00 00 00 00 00 4F [09:53:16]Write i2c OK [09:53:16]MH_I2C_Read... [09:53:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:53:16]Read from MH i2c: E2 [09:53:16]MH_I2C_Read... [09:53:16]Read from MH i2c: E2 62 00 [09:53:16]MH_I2C_Read... [09:53:16]Read from MH i2c: E2 62 00 98 3B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 F3 DC 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 63 00 00 00 5E 04 04 00 63 00 00 00 57 04 04 00 64 00 00 00 19 04 04 00 00 00 00 00 90 00 1D [09:53:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 F3 DC 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 63 00 00 00 5E 04 04 00 63 00 00 00 57 04 04 00 64 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:53:16]wFMCommunicate OK [09:53:16]SAM_PROTO_GetFieldsCounters done [09:53:16]requested_item shift.num is exist - process it [09:53:16]requested_item shift.opened is exist - process it [09:53:16]req_shift_opened [09:53:16]FM_GetShiftState [09:53:16]SAM_PROTO_GetShiftState [09:53:16]wFMCommunicate request_size=4 [09:53:16]MH_SAM_APDU [09:53:16]CAPDU: 80 13 01 00 [09:53:16]Write to MH i2c: E2 08 00 99 3B 80 13 01 00 00 00 00 00 51 [09:53:16]Write i2c OK [09:53:16]MH_I2C_Read... [09:53:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:53:16]Read from MH i2c: E2 [09:53:16]MH_I2C_Read... [09:53:16]Read from MH i2c: E2 0E 00 [09:53:16]MH_I2C_Read... [09:53:16]Read from MH i2c: E2 0E 00 99 3B 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 B0 [09:53:16]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [09:53:16]wFMCommunicate OK [09:53:16]SAM_PROTO_GetShiftState done [09:53:16]FM_GetShiftState done [09:53:16]req_shift_opened done [09:53:16]requested_item shift.open_date is exist - process it [09:53:16]req_shift_open_date [09:53:16]req_shift_open_date done [09:53:16]produce_requested_data done [09:53:16]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187635,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [09:53:16]process_action_free close_receipt [09:53:16]json_value_free [09:53:16]json_value_free done [09:53:16]process_json_proto returns [09:53:16]Send response to host [09:53:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187635,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [09:53:16]free response buf [09:53:16]execute_script done [09:53:16]execute_script returns [09:53:16]free content buf [09:53:16]Sock 8.Close socket [09:53:16]Sock 8.Thread stoped [09:53:20]OFD Sender: No OFD packet to send [09:53:25]OFD Sender: No OFD packet to send [09:53:30]OFD Sender: No OFD packet to send [09:53:35]OFD Sender: No OFD packet to send [09:53:40]OFD Sender: No OFD packet to send [09:53:45]OFD Sender: No OFD packet to send [09:53:50]OFD Sender: No OFD packet to send [09:53:55]OFD Sender: No OFD packet to send [09:54:00]OFD Sender: No OFD packet to send [09:54:05]OFD Sender: No OFD packet to send [09:54:10]OFD Sender: No OFD packet to send [09:54:15]OFD Sender: No OFD packet to send [09:54:20]OFD Sender: No OFD packet to send [09:54:25]OFD Sender: No OFD packet to send [09:54:30]OFD Sender: No OFD packet to send [09:54:35]OFD Sender: No OFD packet to send [09:54:40]OFD Sender: No OFD packet to send [09:54:45]OFD Sender: No OFD packet to send [09:54:50]OFD Sender: No OFD packet to send [09:54:55]OFD Sender: No OFD packet to send [09:55:00]OFD Sender: No OFD packet to send [09:55:05]OFD Sender: No OFD packet to send [09:55:11]OFD Sender: No OFD packet to send [09:55:14]accept exits with 9 [09:55:14]New connection [09:55:14]New thread 3067157860 created [09:55:14]Thread 3067014500 joined [09:55:14]Waiting for new connection... [09:55:14] Sock 9.Parse request [09:55:14]Sock 9.Check first char [09:55:14]Sock 9.First char is OK [09:55:14]request: POST /json_proto HTTP/1.0 [09:55:14]Method: POST [09:55:14]URL: /json_proto [09:55:14]Method is POST - this is cgi request [09:55:14]url: /json_proto [09:55:14]query_string will be loaded in cgi processing [09:55:14]execute_cgi json_proto POST (null) [09:55:14]execute_cgi path=json_proto method=POST [09:55:14]POST find Content-Length [09:55:14]Host: 172.17.42.131:8080 [09:55:14]Content-Length: 677 [09:55:14]Content-Type: application/json [09:55:14] [09:55:14]POST finish read [09:55:14]Found Content-Length = 677 [09:55:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209688", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 9.720, "sum" : 650.27, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 650.00, "total" : 650.00, "payments": [ { "type": 0, "sum" : 650.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:55:14]execute_script... [09:55:14]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209688", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 9.720, "sum" : 650.27, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 650.00, "total" : 650.00, "payments": [ { "type": 0, "sum" : 650.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:55:14]POST & json_proto [09:55:14]process_json_proto [09:55:14]json parsed OK: [09:55:14]protocol is kg_v1.0 [09:55:14]action value=close_receipt [09:55:14]process_action close_receipt [09:55:14]cmd_close_receipt [09:55:14]MH_GetDate [09:55:14]Write to MH i2c: F0 00 00 9A 3B C4 [09:55:14]Write i2c OK [09:55:14]MH_I2C_Read... [09:55:14]Read from MH i2c: F0 [09:55:14]MH_I2C_Read... [09:55:14]Read from MH i2c: F0 09 00 [09:55:14]MH_I2C_Read... [09:55:14]Read from MH i2c: F0 09 00 9A 3B 00 05 25 16 67 A0 18 CA 66 5C [09:55:14]GetLastDocTimeStamp 1729504396 [09:55:14]current date 1729504517 [09:55:14]FM_GetShiftState [09:55:14]SAM_PROTO_GetShiftState [09:55:14]wFMCommunicate request_size=4 [09:55:14]MH_SAM_APDU [09:55:14]CAPDU: 80 13 01 00 [09:55:14]Write to MH i2c: E2 08 00 9B 3B 80 13 01 00 00 00 00 00 53 [09:55:14]Write i2c OK [09:55:14]MH_I2C_Read... [09:55:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:55:14]Read from MH i2c: E2 [09:55:14]MH_I2C_Read... [09:55:14]Read from MH i2c: E2 0E 00 [09:55:14]MH_I2C_Read... [09:55:14]Read from MH i2c: E2 0E 00 9B 3B 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 B2 [09:55:14]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [09:55:14]wFMCommunicate OK [09:55:14]SAM_PROTO_GetShiftState done [09:55:14]FM_GetShiftState done [09:55:14]opened in 1729469754 [09:55:14]opened+sec_in_day 1729556154 [09:55:14]quantity*price = 65026 [09:55:14]sum+1 = 65028 [09:55:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.27 ИТОГО: 650.00 Внесено: 650.00 СДАЧА: 0.00 НСП 1% : 5.75 НДС 12% : 69.05 Наличными: 650.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 100 21.10.2024 09:55 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 187636 ФПД: 112702669514139 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T095517&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187636&fm=112702669514139&tin=02508201610067®Number=0000000000100030&sum=65000 [09:55:15]StoreToDocumentArchive [09:55:15]shift 460 fd 187636 [09:55:15]save to /storage/0460/doc_00187636 [09:55:15]save last doc name /storage/0460/doc_00187636 to /storage/kkm_last_doc_name [09:55:15]save OK [09:55:15]Clear old archive folders... [09:55:15]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:55:15]tlvbuf is 011AD510 [09:55:15]SAM_PROTO_ClearQueue [09:55:15]wFMCommunicate request_size=4 [09:55:15]MH_SAM_APDU [09:55:15]CAPDU: 80 09 00 00 [09:55:15]Write to MH i2c: E2 08 00 A8 3B 80 09 00 00 00 00 00 00 55 [09:55:15]Write i2c OK [09:55:15]MH_I2C_Read... [09:55:15]Read from MH i2c: E2 [09:55:15]MH_I2C_Read... [09:55:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:55:15]Read from MH i2c: E2 03 00 [09:55:15]MH_I2C_Read... [09:55:15]Read from MH i2c: E2 03 00 A8 3B 00 90 00 57 [09:55:15]RAPDU: 90 00 [09:55:15]wFMCommunicate OK [09:55:15]SAM_PROTO_ClearQueue done [09:55:15]KKMCreateOFDPacket [09:55:15]OFDProtocolAddRootSTLVToBuf [09:55:15]FM_MakeSignedData [09:55:15]FM_MakeSignedData [09:55:15]SAM_PROTO_SignData [09:55:15]wFMCommunicate request_size=4 [09:55:15]MH_SAM_APDU [09:55:15]CAPDU: 80 0D 01 02 [09:55:15]Write to MH i2c: E2 08 00 A9 3B 80 0D 01 02 00 00 00 00 5D [09:55:15]Write i2c OK [09:55:15]MH_I2C_Read... [09:55:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:55:15]Read from MH i2c: E2 [09:55:15]MH_I2C_Read... [09:55:15]Read from MH i2c: E2 03 00 [09:55:15]MH_I2C_Read... [09:55:15]Read from MH i2c: E2 03 00 A9 3B 00 90 00 58 [09:55:15]RAPDU: 90 00 [09:55:15]wFMCommunicate OK [09:55:15]wFMCommunicate request_size=255 [09:55:15]MH_SAM_APDU [09:55:15]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 F8 25 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 03 FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 1A 00 00 00 00 07 04 06 00 E8 FD 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 00 00 00 F4 03 04 00 05 25 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 F4 DC 02 00 35 04 06 00 66 [09:55:15]Write to MH i2c: E2 02 01 AA 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 33 FF 03 08 00 03 F8 25 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 03 FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 1A 00 00 00 00 07 04 06 00 E8 FD 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 00 00 00 F4 03 04 00 05 25 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 F4 DC 02 00 35 04 06 00 66 00 00 D3 [09:55:15]Write i2c OK [09:55:15]MH_I2C_Read... [09:55:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:55:15]Read from MH i2c: E2 [09:55:15]MH_I2C_Read... [09:55:15]Read from MH i2c: E2 03 00 [09:55:15]MH_I2C_Read... [09:55:15]Read from MH i2c: E2 03 00 AA 3B 00 90 00 59 [09:55:15]RAPDU: 90 00 [09:55:15]wFMCommunicate OK [09:55:15]wFMCommunicate request_size=10 [09:55:15]MH_SAM_APDU [09:55:15]CAPDU: 80 0D 02 02 05 80 A2 94 E5 9B [09:55:15]Write to MH i2c: E2 0D 00 AB 3B 80 0D 02 02 05 00 80 A2 94 E5 9B 00 00 A0 [09:55:15]Write i2c OK [09:55:15]MH_I2C_Read... [09:55:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:55:15]Read from MH i2c: E2 [09:55:15]MH_I2C_Read... [09:55:15]Read from MH i2c: E2 03 00 [09:55:15]MH_I2C_Read... [09:55:15]Read from MH i2c: E2 03 00 AB 3B 00 90 00 5A [09:55:15]RAPDU: 90 00 [09:55:15]wFMCommunicate OK [09:55:15]wFMCommunicate request_size=4 [09:55:15]MH_SAM_APDU [09:55:15]CAPDU: 80 0D 03 02 [09:55:15]Write to MH i2c: E2 08 00 AC 3B 80 0D 03 02 00 00 00 00 62 [09:55:15]Write i2c OK [09:55:15]MH_I2C_Read... [09:55:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:55:15]Read from MH i2c: E2 [09:55:15]MH_I2C_Read... [09:55:15]Read from MH i2c: E2 0B 00 [09:55:15]MH_I2C_Read... [09:55:15]Read from MH i2c: E2 0B 00 AC 3B 00 C5 DF D5 FC 15 D7 14 F3 90 00 CB [09:55:15]RAPDU: C5 DF D5 FC 15 D7 14 F3 90 00 [09:55:15]wFMCommunicate OK [09:55:15]SAM_PROTO_SignData done [09:55:15]FM_MakeSignedData done [09:55:15]CreateOFDProtocolMessage [09:55:15]wFMCommunicate request_size=4 [09:55:15]MH_SAM_APDU [09:55:15]CAPDU: 80 11 00 00 [09:55:15]Write to MH i2c: E2 08 00 AD 3B 80 11 00 00 00 00 00 00 62 [09:55:15]Write i2c OK [09:55:15]MH_I2C_Read... [09:55:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:55:15]Read from MH i2c: E2 [09:55:15]MH_I2C_Read... [09:55:15]Read from MH i2c: E2 17 00 [09:55:15]MH_I2C_Read... [09:55:15]Read from MH i2c: E2 17 00 AD 3B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 B0 [09:55:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [09:55:15]wFMCommunicate OK [09:55:15]CreateOFDProtocolMessage done [09:55:15]OFDSenderStorePacket 187636 [09:55:15]StoreOFDPacket docnum=187636 [09:55:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 32 30 07 01 AD 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 33 FF 03 08 00 03 F8 25 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 03 FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 1A 00 00 00 00 07 04 06 00 E8 FD 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 00 00 00 F4 03 04 00 05 25 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 F4 DC 02 00 35 04 06 00 66 80 A2 94 E5 9B C5 DF D5 FC 15 D7 14 F3 [09:55:15]CheckFolder [09:55:15]dirname=/storage/ofd_packets [09:55:15]CheckFolder done [09:55:15]ProducePacketName [09:55:15]name=ofd_packets/00187636 [09:55:15]NVStorageSaveData ofd_packets/00187636 [09:55:15]File name is /storage/ofd_packets/00187636 [09:55:15]Write 301 bytes [09:55:15]NVStorageSaveData done [09:55:15]OFDSenderStorePacket done [09:55:15]KKMCreateOFDPacket done [09:55:15]NVStorageSaveData kkm_last_timestamp [09:55:15]File name is /storage/kkm_last_timestamp [09:55:15]Write 4 bytes [09:55:15]NVStorageSaveData done [09:55:15]ExternCall_PrintAddStr [09:55:15]wPrintStart [09:55:15]Write to MH i2c: 01 00 00 AE 3B E9 [09:55:15]Write i2c OK [09:55:15]MH_I2C_Read... [09:55:15]Read from MH i2c: 01 [09:55:15]MH_I2C_Read... [09:55:15]Read from MH i2c: 01 07 00 [09:55:15]MH_I2C_Read... [09:55:15]Read from MH i2c: 01 07 00 AE 3B 00 00 00 00 00 FF 0F FE [09:55:15]RasterBufferAndPrint [09:55:15]line Счет N : (1)209688 [09:55:15]line ИНН: 02508201610067 [09:55:15]line Контрольно-Кассовый Чек [09:55:15]line ПРОДАЖА [09:55:15]line ТРК (МРК, ГНК) : 32 [09:55:15]line Товар: 2710124130 [09:55:15]line Аи-92-К-3 [09:55:15]line 9.720 * 66.90 [09:55:15]line = 650.27 [09:55:15]line НДС 12% НСП 1% [09:55:15]line > о реализуемом товаре [09:55:15]line ОКРУГЛЕНИЕ: -0.27 [09:55:15]line ИТОГО: 650.00 [09:55:15]line Внесено: 650.00 [09:55:15]line СДАЧА: 0.00 [09:55:15]line НСП 1% : 5.75 [09:55:15]line НДС 12% : 69.05 [09:55:15]line Наличными: 650.00 [09:55:15]line Безнал.: 0.00 [09:55:15]line Место: АЗС № 86 "Партнер Нефть" [09:55:15]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [09:55:15]line СНО: Общий режим [09:55:15]line Чек 100 21.10.2024 09:55 [09:55:15]line Смена: 460 ФФД: 1.0 [09:55:15]line ЗНМ: 0300000155 [09:55:15]line РНМ: 0000000000100030 [09:55:15]line Версия ККМ: 001 [09:55:15]line ФМ: 0000000000965340 [09:55:15]line ФД: 187636 [09:55:15]line ФПД: 112702669514139 [09:55:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T095517&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187636&fm=112702669514139&tin=02508201610067®Number=0000000000100030&sum=65000 [09:55:15]written 0, free lines is 4095 [09:55:16]OFD Sender: Processing packet 187636 [packets to send 1062, broken 1061] [09:55:16]ProducePacketName [09:55:16]name=ofd_packets/00187636 [09:55:16]OFD Sender: To server: pG, [09:55:16]CommunicateWithHost lk.salyk.kg:30040 [09:55:16]ConnectInit lk.salyk.kg [09:55:16]Connected sock=10 [09:55:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 32 30 07 01 AD 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 33 FF 03 08 00 03 F8 25 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 03 FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 1A 00 00 00 00 07 04 06 00 E8 FD 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 00 00 00 F4 03 04 00 05 25 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 F4 DC 02 00 35 04 06 00 66 80 A2 94 E5 9B C5 DF D5 FC 15 D7 14 F3 [09:55:16]Write to MH i2c: 01 00 00 D9 3B 14 [09:55:16]Write i2c OK [09:55:16]MH_I2C_Read... [09:55:16]Read from MH i2c: 01 [09:55:16]MH_I2C_Read... [09:55:16]Read from MH i2c: 01 07 00 [09:55:16]MH_I2C_Read... [09:55:16]Read from MH i2c: 01 07 00 D9 3B 00 00 00 00 00 74 0C 9B [09:55:16]RasterBufferAndPrint [09:55:16]line [09:55:16]line [09:55:16]line [09:55:16]line [09:55:16]line [09:55:16]written 0, free lines is 3191 [09:55:16]MH_Cut [09:55:16]Write to MH i2c: D1 01 00 E0 3B 01 ED [09:55:16]Write i2c OK [09:55:16]MH_I2C_Read... [09:55:16]Read from MH i2c: D1 [09:55:16]MH_I2C_Read... [09:55:16]Read from MH i2c: D1 01 00 [09:55:16]MH_I2C_Read... [09:55:16]Read from MH i2c: D1 01 00 E0 3B 00 EC [09:55:16]Write to MH i2c: 01 00 00 E1 3B 1C [09:55:16]Write i2c OK [09:55:16]MH_I2C_Read... [09:55:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 5C D6 47 00 46 A7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 F4 DC 02 00 F4 03 04 00 F5 CE 15 67 B6 04 01 00 00 42 34 D2 D3 03 DA 18 27 [09:55:16]CommunicateWithHost err = 0 [09:55:16]CheckOFDResponse [09:55:16]1017 (14) - 77093643461234 [09:55:16]1041 (16) - 0000000000965340 [09:55:16]1040 (4) - 187636 [09:55:16]1012 (4) - 21.10.2024 03:48 [09:55:16]1206 (1) - 0 [09:55:16]OFD Sender: Remove packet 187636 [09:55:16]ProducePacketName [09:55:16]name=ofd_packets/00187636 [09:55:16]NVStorageDeleteData [09:55:17]OFD Sender: No OFD packet to send [09:55:17]*** Cut start [09:55:17]*** Partial cut [09:55:17]*** CUTSNS_PIN = 1 [09:55:17]*** CUTSNS_PIN = 0 [09:55:17]*** Brake cut motor [09:55:18]Read from MH i2c: 01 [09:55:18]MH_I2C_Read... [09:55:18]*** Stop cut motor [09:55:18]*** Cut end [09:55:18]Read from MH i2c: 01 07 00 [09:55:18]MH_I2C_Read... [09:55:18]Read from MH i2c: 01 07 00 E1 3B 00 00 00 00 00 FF 0F 31 [09:55:18]process_action close_receipt done [09:55:18]requested_data is exist [09:55:18]produce_requested_data [09:55:18]requested_item fm.sn is exist - process it [09:55:18]wFMCommunicate request_size=4 [09:55:18]MH_SAM_APDU [09:55:18]CAPDU: 80 11 00 00 [09:55:18]Write to MH i2c: E2 08 00 E2 3B 80 11 00 00 00 00 00 00 97 [09:55:18]Write i2c OK [09:55:18]MH_I2C_Read... [09:55:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:55:18]Read from MH i2c: E2 [09:55:18]MH_I2C_Read... [09:55:18]Read from MH i2c: E2 17 00 [09:55:18]MH_I2C_Read... [09:55:18]Read from MH i2c: E2 17 00 E2 3B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 E5 [09:55:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [09:55:18]wFMCommunicate OK [09:55:18]requested_item fd.num is exist - process it [09:55:18]SAM_PROTO_GetFieldsCounters [09:55:18]wFMCommunicate request_size=4 [09:55:18]MH_SAM_APDU [09:55:18]CAPDU: 80 13 00 00 [09:55:18]Write to MH i2c: E2 08 00 E3 3B 80 13 00 00 00 00 00 00 9A [09:55:18]Write i2c OK [09:55:18]MH_I2C_Read... [09:55:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:55:18]Read from MH i2c: E2 [09:55:18]MH_I2C_Read... [09:55:18]Read from MH i2c: E2 62 00 [09:55:18]MH_I2C_Read... [09:55:18]Read from MH i2c: E2 62 00 E3 3B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 F4 DC 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 64 00 00 00 5E 04 04 00 64 00 00 00 57 04 04 00 65 00 00 00 19 04 04 00 00 00 00 00 90 00 6C [09:55:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 F4 DC 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 64 00 00 00 5E 04 04 00 64 00 00 00 57 04 04 00 65 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:55:18]wFMCommunicate OK [09:55:18]SAM_PROTO_GetFieldsCounters done [09:55:18]requested_item shift.num is exist - process it [09:55:18]requested_item shift.opened is exist - process it [09:55:18]req_shift_opened [09:55:18]FM_GetShiftState [09:55:18]SAM_PROTO_GetShiftState [09:55:18]wFMCommunicate request_size=4 [09:55:18]MH_SAM_APDU [09:55:18]CAPDU: 80 13 01 00 [09:55:18]Write to MH i2c: E2 08 00 E4 3B 80 13 01 00 00 00 00 00 9C [09:55:18]Write i2c OK [09:55:18]MH_I2C_Read... [09:55:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:55:18]Read from MH i2c: E2 [09:55:18]MH_I2C_Read... [09:55:18]Read from MH i2c: E2 0E 00 [09:55:18]MH_I2C_Read... [09:55:18]Read from MH i2c: E2 0E 00 E4 3B 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 FB [09:55:18]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [09:55:18]wFMCommunicate OK [09:55:18]SAM_PROTO_GetShiftState done [09:55:18]FM_GetShiftState done [09:55:18]req_shift_opened done [09:55:18]requested_item shift.open_date is exist - process it [09:55:18]req_shift_open_date [09:55:18]req_shift_open_date done [09:55:18]produce_requested_data done [09:55:18]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187636,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [09:55:18]process_action_free close_receipt [09:55:18]json_value_free [09:55:18]json_value_free done [09:55:18]process_json_proto returns [09:55:18]Send response to host [09:55:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187636,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [09:55:18]free response buf [09:55:18]execute_script done [09:55:18]execute_script returns [09:55:18]free content buf [09:55:18]Sock 9.Close socket [09:55:18]Sock 9.Thread stoped [09:55:22]OFD Sender: No OFD packet to send [09:55:27]OFD Sender: No OFD packet to send [09:55:32]OFD Sender: No OFD packet to send [09:55:37]OFD Sender: No OFD packet to send [09:55:42]OFD Sender: No OFD packet to send [09:55:47]OFD Sender: No OFD packet to send [09:55:52]OFD Sender: No OFD packet to send [09:55:57]OFD Sender: No OFD packet to send [09:56:02]OFD Sender: No OFD packet to send [09:56:07]OFD Sender: No OFD packet to send [09:56:12]OFD Sender: No OFD packet to send [09:56:17]OFD Sender: No OFD packet to send [09:56:22]OFD Sender: No OFD packet to send [09:56:27]OFD Sender: No OFD packet to send [09:56:32]OFD Sender: No OFD packet to send [09:56:37]OFD Sender: No OFD packet to send [09:56:42]OFD Sender: No OFD packet to send [09:56:47]OFD Sender: No OFD packet to send [09:56:52]OFD Sender: No OFD packet to send [09:56:57]OFD Sender: No OFD packet to send [09:57:02]OFD Sender: No OFD packet to send [09:57:07]OFD Sender: No OFD packet to send [09:57:12]OFD Sender: No OFD packet to send [09:57:17]OFD Sender: No OFD packet to send [09:57:22]OFD Sender: No OFD packet to send [09:57:27]OFD Sender: No OFD packet to send [09:57:32]OFD Sender: No OFD packet to send [09:57:37]OFD Sender: No OFD packet to send [09:57:38]accept exits with 8 [09:57:38]New connection [09:57:38]New thread 3067014500 created [09:57:38]Thread 3067157860 joined [09:57:38]Waiting for new connection... [09:57:38] Sock 8.Parse request [09:57:38]Sock 8.Check first char [09:57:38]Sock 8.First char is OK [09:57:38]request: POST /json_proto HTTP/1.0 [09:57:38]Method: POST [09:57:38]URL: /json_proto [09:57:38]Method is POST - this is cgi request [09:57:38]url: /json_proto [09:57:38]query_string will be loaded in cgi processing [09:57:38]execute_cgi json_proto POST (null) [09:57:38]execute_cgi path=json_proto method=POST [09:57:38]POST find Content-Length [09:57:38]Host: 172.17.42.131:8080 [09:57:38]Content-Length: 688 [09:57:38]Content-Type: application/json [09:57:38] [09:57:38]POST finish read [09:57:38]Found Content-Length = 688 [09:57:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209690", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 25.910, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:57:38]execute_script... [09:57: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)209690", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 25.910, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:57:38]POST & json_proto [09:57:38]process_json_proto [09:57:38]json parsed OK: [09:57:38]protocol is kg_v1.0 [09:57:38]action value=close_receipt [09:57:38]process_action close_receipt [09:57:38]cmd_close_receipt [09:57:38]MH_GetDate [09:57:38]Write to MH i2c: F0 00 00 E5 3B 0F [09:57:38]Write i2c OK [09:57:38]MH_I2C_Read... [09:57:38]Read from MH i2c: F0 [09:57:38]MH_I2C_Read... [09:57:38]Read from MH i2c: F0 09 00 [09:57:38]MH_I2C_Read... [09:57:38]Read from MH i2c: F0 09 00 E5 3B 00 96 25 16 67 A0 18 CA 66 38 [09:57:38]GetLastDocTimeStamp 1729504517 [09:57:38]current date 1729504662 [09:57:38]FM_GetShiftState [09:57:38]SAM_PROTO_GetShiftState [09:57:38]wFMCommunicate request_size=4 [09:57:38]MH_SAM_APDU [09:57:38]CAPDU: 80 13 01 00 [09:57:38]Write to MH i2c: E2 08 00 E6 3B 80 13 01 00 00 00 00 00 9E [09:57:38]Write i2c OK [09:57:38]MH_I2C_Read... [09:57:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:57:38]Read from MH i2c: E2 [09:57:38]MH_I2C_Read... [09:57:38]Read from MH i2c: E2 0E 00 [09:57:38]MH_I2C_Read... [09:57:38]Read from MH i2c: E2 0E 00 E6 3B 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 FD [09:57:38]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [09:57:38]wFMCommunicate OK [09:57:38]SAM_PROTO_GetShiftState done [09:57:38]FM_GetShiftState done [09:57:38]opened in 1729469754 [09:57:38]opened+sec_in_day 1729556154 [09:57:38]quantity*price = 200025 [09:57:38]sum+1 = 200026 [09:57:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 101 21.10.2024 09:57 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 187637 ФПД: 278348091229878 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T095742&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187637&fm=278348091229878&tin=02508201610067®Number=0000000000100030&sum=200000 [09:57:39]StoreToDocumentArchive [09:57:39]shift 460 fd 187637 [09:57:39]save to /storage/0460/doc_00187637 [09:57:39]save last doc name /storage/0460/doc_00187637 to /storage/kkm_last_doc_name [09:57:39]save OK [09:57:39]Clear old archive folders... [09:57:39]ProcessDocumentItem done err = 0, tmpTLVsize=257 [09:57:39]tlvbuf is 01094610 [09:57:39]SAM_PROTO_ClearQueue [09:57:39]wFMCommunicate request_size=4 [09:57:39]MH_SAM_APDU [09:57:39]CAPDU: 80 09 00 00 [09:57:39]Write to MH i2c: E2 08 00 F3 3B 80 09 00 00 00 00 00 00 A0 [09:57:39]Write i2c OK [09:57:39]MH_I2C_Read... [09:57:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:57:39]Read from MH i2c: E2 [09:57:39]MH_I2C_Read... [09:57:39]Read from MH i2c: E2 03 00 [09:57:39]MH_I2C_Read... [09:57:39]Read from MH i2c: E2 03 00 F3 3B 00 90 00 A2 [09:57:39]RAPDU: 90 00 [09:57:39]wFMCommunicate OK [09:57:39]SAM_PROTO_ClearQueue done [09:57:39]KKMCreateOFDPacket [09:57:39]OFDProtocolAddRootSTLVToBuf [09:57:39]FM_MakeSignedData [09:57:39]FM_MakeSignedData [09:57:39]SAM_PROTO_SignData [09:57:39]wFMCommunicate request_size=4 [09:57:39]MH_SAM_APDU [09:57:39]CAPDU: 80 0D 01 02 [09:57:39]Write to MH i2c: E2 08 00 F4 3B 80 0D 01 02 00 00 00 00 A8 [09:57:39]Write i2c OK [09:57:39]MH_I2C_Read... [09:57:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:57:39]Read from MH i2c: E2 [09:57:39]MH_I2C_Read... [09:57:39]Read from MH i2c: E2 03 00 [09:57:39]MH_I2C_Read... [09:57:39]Read from MH i2c: E2 03 00 F4 3B 00 90 00 A3 [09:57:39]RAPDU: 90 00 [09:57:39]wFMCommunicate OK [09:57:39]wFMCommunicate request_size=255 [09:57:39]MH_SAM_APDU [09:57:39]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 36 65 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 00 00 00 F4 03 04 00 96 25 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 F5 DC 02 [09:57:39]Write to MH i2c: E2 02 01 F5 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 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 36 65 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 00 00 00 F4 03 04 00 96 25 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 F5 DC 02 00 00 86 [09:57:39]Write i2c OK [09:57:39]MH_I2C_Read... [09:57:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:57:40]Read from MH i2c: E2 [09:57:40]MH_I2C_Read... [09:57:40]Read from MH i2c: E2 03 00 [09:57:40]MH_I2C_Read... [09:57:40]Read from MH i2c: E2 03 00 F5 3B 00 90 00 A4 [09:57:40]RAPDU: 90 00 [09:57:40]wFMCommunicate OK [09:57:40]wFMCommunicate request_size=16 [09:57:40]MH_SAM_APDU [09:57:40]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 FD 27 F7 1A 06 B6 [09:57:40]Write to MH i2c: E2 13 00 F6 3B 80 0D 02 02 0B 00 00 35 04 06 00 FD 27 F7 1A 06 B6 00 00 F1 [09:57:40]Write i2c OK [09:57:40]MH_I2C_Read... [09:57:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:57:40]Read from MH i2c: E2 [09:57:40]MH_I2C_Read... [09:57:40]Read from MH i2c: E2 03 00 [09:57:40]MH_I2C_Read... [09:57:40]Read from MH i2c: E2 03 00 F6 3B 00 90 00 A5 [09:57:40]RAPDU: 90 00 [09:57:40]wFMCommunicate OK [09:57:40]wFMCommunicate request_size=4 [09:57:40]MH_SAM_APDU [09:57:40]CAPDU: 80 0D 03 02 [09:57:40]Write to MH i2c: E2 08 00 F7 3B 80 0D 03 02 00 00 00 00 AD [09:57:40]Write i2c OK [09:57:40]MH_I2C_Read... [09:57:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:57:40]Read from MH i2c: E2 [09:57:40]MH_I2C_Read... [09:57:40]Read from MH i2c: E2 0B 00 [09:57:40]MH_I2C_Read... [09:57:40]Read from MH i2c: E2 0B 00 F7 3B 00 12 59 39 A5 0A A2 A4 E6 90 00 2D [09:57:40]RAPDU: 12 59 39 A5 0A A2 A4 E6 90 00 [09:57:40]wFMCommunicate OK [09:57:40]SAM_PROTO_SignData done [09:57:40]FM_MakeSignedData done [09:57:40]CreateOFDProtocolMessage [09:57:40]wFMCommunicate request_size=4 [09:57:40]MH_SAM_APDU [09:57:40]CAPDU: 80 11 00 00 [09:57:40]Write to MH i2c: E2 08 00 F8 3B 80 11 00 00 00 00 00 00 AD [09:57:40]Write i2c OK [09:57:40]MH_I2C_Read... [09:57:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:57:40]Read from MH i2c: E2 [09:57:40]MH_I2C_Read... [09:57:40]Read from MH i2c: E2 17 00 [09:57:40]MH_I2C_Read... [09:57:40]Read from MH i2c: E2 17 00 F8 3B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 FB [09:57:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [09:57:40]wFMCommunicate OK [09:57:40]CreateOFDProtocolMessage done [09:57:40]OFDSenderStorePacket 187637 [09:57:40]StoreOFDPacket docnum=187637 [09:57:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 D0 E6 0D 01 20 8A 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 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 36 65 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 00 00 00 F4 03 04 00 96 25 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 F5 DC 02 00 35 04 06 00 FD 27 F7 1A 06 B6 12 59 39 A5 0A A2 A4 E6 [09:57:40]CheckFolder [09:57:40]dirname=/storage/ofd_packets [09:57:40]CheckFolder done [09:57:40]ProducePacketName [09:57:40]name=ofd_packets/00187637 [09:57:40]NVStorageSaveData ofd_packets/00187637 [09:57:40]File name is /storage/ofd_packets/00187637 [09:57:40]Write 307 bytes [09:57:40]NVStorageSaveData done [09:57:40]OFDSenderStorePacket done [09:57:40]KKMCreateOFDPacket done [09:57:40]NVStorageSaveData kkm_last_timestamp [09:57:40]File name is /storage/kkm_last_timestamp [09:57:40]Write 4 bytes [09:57:40]NVStorageSaveData done [09:57:40]ExternCall_PrintAddStr [09:57:40]wPrintStart [09:57:40]Write to MH i2c: 01 00 00 F9 3B 34 [09:57:40]Write i2c OK [09:57:40]MH_I2C_Read... [09:57:40]Read from MH i2c: 01 [09:57:40]MH_I2C_Read... [09:57:40]Read from MH i2c: 01 07 00 [09:57:40]MH_I2C_Read... [09:57:40]Read from MH i2c: 01 07 00 F9 3B 00 00 00 00 00 FF 0F 49 [09:57:40]RasterBufferAndPrint [09:57:40]line Счет N : (1)209690 [09:57:40]line ИНН: 02508201610067 [09:57:40]line Контрольно-Кассовый Чек [09:57:40]line ПРОДАЖА [09:57:40]line ТРК (МРК, ГНК) : 31 [09:57:40]line Товар: 2710194210 [09:57:40]line D-ENERGY ДТ-К-5 [09:57:40]line 25.910 * 77.20 [09:57:40]line = 2000.25 [09:57:40]line НДС 12% НСП 1% [09:57:40]line > о реализуемом товаре [09:57:40]line ОКРУГЛЕНИЕ: -0.25 [09:57:40]line ИТОГО: 2000.00 [09:57:40]line Внесено: 2000.00 [09:57:40]line СДАЧА: 0.00 [09:57:40]line НСП 1% : 17.70 [09:57:40]line НДС 12% : 212.42 [09:57:40]line Наличными: 2000.00 [09:57:40]line Безнал.: 0.00 [09:57:40]line Место: АЗС № 86 "Партнер Нефть" [09:57:40]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [09:57:40]line СНО: Общий режим [09:57:40]line Чек 101 21.10.2024 09:57 [09:57:40]line Смена: 460 ФФД: 1.0 [09:57:40]line ЗНМ: 0300000155 [09:57:40]line РНМ: 0000000000100030 [09:57:40]line Версия ККМ: 001 [09:57:40]line ФМ: 0000000000965340 [09:57:40]line ФД: 187637 [09:57:40]line ФПД: 278348091229878 [09:57:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T095742&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187637&fm=278348091229878&tin=02508201610067®Number=0000000000100030&sum=200000 [09:57:40]OFD Sender: Processing packet 187637 [packets to send 1062, broken 1061] [09:57:40]ProducePacketName [09:57:40]name=ofd_packets/00187637 [09:57:40]OFD Sender: To server: pG, [09:57:40]CommunicateWithHost lk.salyk.kg:30040 [09:57:40]ConnectInit lk.salyk.kg [09:57:40]written 0, free lines is 4095 [09:57:40]Connected sock=10 [09:57:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 D0 E6 0D 01 20 8A 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 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 36 65 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 00 00 00 F4 03 04 00 96 25 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 F5 DC 02 00 35 04 06 00 FD 27 F7 1A 06 B6 12 59 39 A5 0A A2 A4 E6 [09:57:41]Write to MH i2c: 01 00 00 24 3C 60 [09:57:41]Write i2c OK [09:57:41]MH_I2C_Read... [09:57:41]Read from MH i2c: 01 [09:57:41]MH_I2C_Read... [09:57:41]Read from MH i2c: 01 07 00 [09:57:41]MH_I2C_Read... [09:57:41]Read from MH i2c: 01 07 00 24 3C 00 00 00 00 00 7A 0C ED [09:57:41]RasterBufferAndPrint [09:57:41]line [09:57:41]line [09:57:41]line [09:57:41]line [09:57:41]line [09:57:41]written 0, free lines is 3196 [09:57:41]MH_Cut [09:57:41]Write to MH i2c: D1 01 00 2B 3C 01 39 [09:57:41]Write i2c OK [09:57:41]MH_I2C_Read... [09:57:41]Read from MH i2c: D1 [09:57:41]MH_I2C_Read... [09:57:41]Read from MH i2c: D1 01 00 [09:57:41]MH_I2C_Read... [09:57:41]Read from MH i2c: D1 01 00 2B 3C 00 38 [09:57:41]Write to MH i2c: 01 00 00 2C 3C 68 [09:57:41]Write i2c OK [09:57:41]MH_I2C_Read... [09:57:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 2F 0C 47 00 CF 02 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 F5 DC 02 00 F4 03 04 00 86 CF 15 67 B6 04 01 00 00 28 CD BC 42 88 7B A6 40 [09:57:41]CommunicateWithHost err = 0 [09:57:41]CheckOFDResponse [09:57:41]1017 (14) - 77093643461234 [09:57:41]1041 (16) - 0000000000965340 [09:57:41]1040 (4) - 187637 [09:57:41]1012 (4) - 21.10.2024 03:50 [09:57:41]1206 (1) - 0 [09:57:41]OFD Sender: Remove packet 187637 [09:57:41]ProducePacketName [09:57:41]name=ofd_packets/00187637 [09:57:41]NVStorageDeleteData [09:57:41]OFD Sender: No OFD packet to send [09:57:42]*** Cut start [09:57:42]*** Partial cut [09:57:42]*** CUTSNS_PIN = 1 [09:57:42]*** CUTSNS_PIN = 0 [09:57:42]*** Brake cut motor [09:57:42]Read from MH i2c: 01 [09:57:42]MH_I2C_Read... [09:57:42]*** Stop cut motor [09:57:42]*** Cut end [09:57:42]Read from MH i2c: 01 07 00 [09:57:42]MH_I2C_Read... [09:57:42]Read from MH i2c: 01 07 00 2C 3C 00 00 00 00 00 FF 0F 7D [09:57:42]process_action close_receipt done [09:57:42]requested_data is exist [09:57:42]produce_requested_data [09:57:42]requested_item fm.sn is exist - process it [09:57:42]wFMCommunicate request_size=4 [09:57:42]MH_SAM_APDU [09:57:42]CAPDU: 80 11 00 00 [09:57:42]Write to MH i2c: E2 08 00 2D 3C 80 11 00 00 00 00 00 00 E3 [09:57:42]Write i2c OK [09:57:42]MH_I2C_Read... [09:57:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:57:42]Read from MH i2c: E2 [09:57:42]MH_I2C_Read... [09:57:42]Read from MH i2c: E2 17 00 [09:57:42]MH_I2C_Read... [09:57:42]Read from MH i2c: E2 17 00 2D 3C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 31 [09:57:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [09:57:42]wFMCommunicate OK [09:57:42]requested_item fd.num is exist - process it [09:57:42]SAM_PROTO_GetFieldsCounters [09:57:42]wFMCommunicate request_size=4 [09:57:42]MH_SAM_APDU [09:57:42]CAPDU: 80 13 00 00 [09:57:42]Write to MH i2c: E2 08 00 2E 3C 80 13 00 00 00 00 00 00 E6 [09:57:42]Write i2c OK [09:57:42]MH_I2C_Read... [09:57:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:57:42]Read from MH i2c: E2 [09:57:42]MH_I2C_Read... [09:57:42]Read from MH i2c: E2 62 00 [09:57:42]MH_I2C_Read... [09:57:42]Read from MH i2c: E2 62 00 2E 3C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 F5 DC 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 65 00 00 00 5E 04 04 00 65 00 00 00 57 04 04 00 66 00 00 00 19 04 04 00 00 00 00 00 90 00 BC [09:57:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 F5 DC 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 65 00 00 00 5E 04 04 00 65 00 00 00 57 04 04 00 66 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:57:42]wFMCommunicate OK [09:57:42]SAM_PROTO_GetFieldsCounters done [09:57:42]requested_item shift.num is exist - process it [09:57:42]requested_item shift.opened is exist - process it [09:57:42]req_shift_opened [09:57:42]FM_GetShiftState [09:57:42]SAM_PROTO_GetShiftState [09:57:42]wFMCommunicate request_size=4 [09:57:42]MH_SAM_APDU [09:57:42]CAPDU: 80 13 01 00 [09:57:42]Write to MH i2c: E2 08 00 2F 3C 80 13 01 00 00 00 00 00 E8 [09:57:42]Write i2c OK [09:57:42]MH_I2C_Read... [09:57:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:57:42]Read from MH i2c: E2 [09:57:42]MH_I2C_Read... [09:57:42]Read from MH i2c: E2 0E 00 [09:57:42]MH_I2C_Read... [09:57:42]Read from MH i2c: E2 0E 00 2F 3C 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 47 [09:57:42]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [09:57:43]wFMCommunicate OK [09:57:43]SAM_PROTO_GetShiftState done [09:57:43]FM_GetShiftState done [09:57:43]req_shift_opened done [09:57:43]requested_item shift.open_date is exist - process it [09:57:43]req_shift_open_date [09:57:43]req_shift_open_date done [09:57:43]produce_requested_data done [09:57:43]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187637,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [09:57:43]process_action_free close_receipt [09:57:43]json_value_free [09:57:43]json_value_free done [09:57:43]process_json_proto returns [09:57:43]Send response to host [09:57:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187637,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [09:57:43]free response buf [09:57:43]execute_script done [09:57:43]execute_script returns [09:57:43]free content buf [09:57:43]Sock 8.Close socket [09:57:43]Sock 8.Thread stoped [09:57:46]OFD Sender: No OFD packet to send [09:57:51]OFD Sender: No OFD packet to send [09:57:56]OFD Sender: No OFD packet to send [09:58:01]OFD Sender: No OFD packet to send [09:58:06]OFD Sender: No OFD packet to send [09:58:11]OFD Sender: No OFD packet to send [09:58:16]OFD Sender: No OFD packet to send [09:58:21]OFD Sender: No OFD packet to send [09:58:26]OFD Sender: No OFD packet to send [09:58:31]OFD Sender: No OFD packet to send [09:58:36]OFD Sender: No OFD packet to send [09:58:41]OFD Sender: No OFD packet to send [09:58:44]accept exits with 9 [09:58:44]New connection [09:58:44]New thread 3067157860 created [09:58:44]Thread 3067014500 joined [09:58:44]Waiting for new connection... [09:58:44] Sock 9.Parse request [09:58:44]Sock 9.Check first char [09:58:44]Sock 9.First char is OK [09:58:44]request: POST /json_proto HTTP/1.0 [09:58:44]Method: POST [09:58:44]URL: /json_proto [09:58:44]Method is POST - this is cgi request [09:58:44]url: /json_proto [09:58:44]query_string will be loaded in cgi processing [09:58:44]execute_cgi json_proto POST (null) [09:58:44]execute_cgi path=json_proto method=POST [09:58:44]POST find Content-Length [09:58:44]Host: 172.17.42.131:8080 [09:58:44]Content-Length: 800 [09:58:44]Content-Type: application/json [09:58:44] [09:58:44]POST finish read [09:58:44]Found Content-Length = 800 [09:58:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209689", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 65.620, "sum" : 5000.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" : 5000.24 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:58:44]execute_script... [09:58: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)209689", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 65.620, "sum" : 5000.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" : 5000.24 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:58:44]POST & json_proto [09:58:44]process_json_proto [09:58:44]json parsed OK: [09:58:44]protocol is kg_v1.0 [09:58:44]action value=close_receipt [09:58:44]process_action close_receipt [09:58:44]cmd_close_receipt [09:58:44]MH_GetDate [09:58:44]Write to MH i2c: F0 00 00 30 3C 5B [09:58:44]Write i2c OK [09:58:44]MH_I2C_Read... [09:58:44]Read from MH i2c: F0 [09:58:44]MH_I2C_Read... [09:58:44]Read from MH i2c: F0 09 00 [09:58:44]MH_I2C_Read... [09:58:44]Read from MH i2c: F0 09 00 30 3C 00 D7 25 16 67 A0 18 CA 66 C5 [09:58:44]GetLastDocTimeStamp 1729504662 [09:58:44]current date 1729504727 [09:58:44]FM_GetShiftState [09:58:44]SAM_PROTO_GetShiftState [09:58:44]wFMCommunicate request_size=4 [09:58:44]MH_SAM_APDU [09:58:44]CAPDU: 80 13 01 00 [09:58:44]Write to MH i2c: E2 08 00 31 3C 80 13 01 00 00 00 00 00 EA [09:58:44]Write i2c OK [09:58:44]MH_I2C_Read... [09:58:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:58:44]Read from MH i2c: E2 [09:58:44]MH_I2C_Read... [09:58:44]Read from MH i2c: E2 0E 00 [09:58:44]MH_I2C_Read... [09:58:44]Read from MH i2c: E2 0E 00 31 3C 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 49 [09:58:44]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [09:58:44]wFMCommunicate OK [09:58:44]SAM_PROTO_GetShiftState done [09:58:44]FM_GetShiftState done [09:58:44]opened in 1729469754 [09:58:44]opened+sec_in_day 1729556154 [09:58:44]quantity*price = 500024 [09:58:44]sum+1 = 500025 [09:58:44]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 5000.24 НСП 1% : 44.25 НДС 12% : 531.00 Наличными: 0.00 Безнал.: 5000.24 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 102 21.10.2024 09:58 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000965340 ФД: 187638 ФПД: 268421827178802 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T095847&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187638&fm=268421827178802&tin=02508201610067®Number=0000000000100030&sum=500024 [09:58:45]StoreToDocumentArchive [09:58:45]shift 460 fd 187638 [09:58:45]save to /storage/0460/doc_00187638 [09:58:45]save last doc name /storage/0460/doc_00187638 to /storage/kkm_last_doc_name [09:58:45]save OK [09:58:45]Clear old archive folders... [09:58:45]ProcessDocumentItem done err = 0, tmpTLVsize=248 [09:58:45]tlvbuf is 0116FAE0 [09:58:45]SAM_PROTO_ClearQueue [09:58:45]wFMCommunicate request_size=4 [09:58:45]MH_SAM_APDU [09:58:45]CAPDU: 80 09 00 00 [09:58:45]Write to MH i2c: E2 08 00 3E 3C 80 09 00 00 00 00 00 00 EC [09:58:45]Write i2c OK [09:58:45]MH_I2C_Read... [09:58:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:58:45]Read from MH i2c: E2 [09:58:45]MH_I2C_Read... [09:58:45]Read from MH i2c: E2 03 00 [09:58:45]MH_I2C_Read... [09:58:45]Read from MH i2c: E2 03 00 3E 3C 00 90 00 EE [09:58:45]RAPDU: 90 00 [09:58:45]wFMCommunicate OK [09:58:45]SAM_PROTO_ClearQueue done [09:58:45]KKMCreateOFDPacket [09:58:45]OFDProtocolAddRootSTLVToBuf [09:58:45]FM_MakeSignedData [09:58:45]FM_MakeSignedData [09:58:45]SAM_PROTO_SignData [09:58:45]wFMCommunicate request_size=4 [09:58:45]MH_SAM_APDU [09:58:45]CAPDU: 80 0D 01 02 [09:58:45]Write to MH i2c: E2 08 00 3F 3C 80 0D 01 02 00 00 00 00 F4 [09:58:45]Write i2c OK [09:58:45]MH_I2C_Read... [09:58:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:58:45]Read from MH i2c: E2 [09:58:45]MH_I2C_Read... [09:58:45]Read from MH i2c: E2 03 00 [09:58:45]MH_I2C_Read... [09:58:45]Read from MH i2c: E2 03 00 3F 3C 00 90 00 EF [09:58:45]RAPDU: 90 00 [09:58:45]wFMCommunicate OK [09:58:45]wFMCommunicate request_size=255 [09:58:45]MH_SAM_APDU [09:58:45]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 54 00 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 38 A1 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 A1 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 11 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6C CF 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 38 A1 07 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 00 00 00 F4 03 04 00 D7 25 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 F6 DC 02 00 35 04 06 00 F4 20 D3 A8 [09:58:45]Write to MH i2c: E2 02 01 40 3C 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 54 00 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 38 A1 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 A1 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 11 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6C CF 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 38 A1 07 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 00 00 00 F4 03 04 00 D7 25 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 F6 DC 02 00 35 04 06 00 F4 20 D3 A8 00 00 B1 [09:58:45]Write i2c OK [09:58:45]MH_I2C_Read... [09:58:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:58:45]Read from MH i2c: E2 [09:58:45]MH_I2C_Read... [09:58:45]Read from MH i2c: E2 03 00 [09:58:45]MH_I2C_Read... [09:58:45]Read from MH i2c: E2 03 00 40 3C 00 90 00 F0 [09:58:45]RAPDU: 90 00 [09:58:45]wFMCommunicate OK [09:58:45]wFMCommunicate request_size=7 [09:58:45]MH_SAM_APDU [09:58:45]CAPDU: 80 0D 02 02 02 B1 32 [09:58:45]Write to MH i2c: E2 0A 00 41 3C 80 0D 02 02 02 00 B1 32 00 00 DE [09:58:45]Write i2c OK [09:58:45]MH_I2C_Read... [09:58:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:58:45]Read from MH i2c: E2 [09:58:45]MH_I2C_Read... [09:58:45]Read from MH i2c: E2 03 00 [09:58:45]MH_I2C_Read... [09:58:45]Read from MH i2c: E2 03 00 41 3C 00 90 00 F1 [09:58:45]RAPDU: 90 00 [09:58:45]wFMCommunicate OK [09:58:45]wFMCommunicate request_size=4 [09:58:45]MH_SAM_APDU [09:58:45]CAPDU: 80 0D 03 02 [09:58:45]Write to MH i2c: E2 08 00 42 3C 80 0D 03 02 00 00 00 00 F9 [09:58:45]Write i2c OK [09:58:45]MH_I2C_Read... [09:58:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:58:45]Read from MH i2c: E2 [09:58:45]MH_I2C_Read... [09:58:45]Read from MH i2c: E2 0B 00 [09:58:45]MH_I2C_Read... [09:58:45]Read from MH i2c: E2 0B 00 42 3C 00 48 2D D7 E3 2B 05 12 7F 90 00 EA [09:58:45]RAPDU: 48 2D D7 E3 2B 05 12 7F 90 00 [09:58:45]wFMCommunicate OK [09:58:45]SAM_PROTO_SignData done [09:58:45]FM_MakeSignedData done [09:58:45]CreateOFDProtocolMessage [09:58:45]wFMCommunicate request_size=4 [09:58:45]MH_SAM_APDU [09:58:45]CAPDU: 80 11 00 00 [09:58:45]Write to MH i2c: E2 08 00 43 3C 80 11 00 00 00 00 00 00 F9 [09:58:45]Write i2c OK [09:58:45]MH_I2C_Read... [09:58:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:58:45]Read from MH i2c: E2 [09:58:45]MH_I2C_Read... [09:58:45]Read from MH i2c: E2 17 00 [09:58:45]MH_I2C_Read... [09:58:45]Read from MH i2c: E2 17 00 43 3C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 47 [09:58:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [09:58:45]wFMCommunicate OK [09:58:45]CreateOFDProtocolMessage done [09:58:45]OFDSenderStorePacket 187638 [09:58:45]StoreOFDPacket docnum=187638 [09:58:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 53 38 04 01 F0 21 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 54 00 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 38 A1 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 A1 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 11 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6C CF 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 38 A1 07 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 00 00 00 F4 03 04 00 D7 25 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 F6 DC 02 00 35 04 06 00 F4 20 D3 A8 B1 32 48 2D D7 E3 2B 05 12 7F [09:58:45]CheckFolder [09:58:45]dirname=/storage/ofd_packets [09:58:45]CheckFolder done [09:58:45]ProducePacketName [09:58:45]name=ofd_packets/00187638 [09:58:45]NVStorageSaveData ofd_packets/00187638 [09:58:45]File name is /storage/ofd_packets/00187638 [09:58:45]Write 298 bytes [09:58:45]NVStorageSaveData done [09:58:45]OFDSenderStorePacket done [09:58:45]KKMCreateOFDPacket done [09:58:45]NVStorageSaveData kkm_last_timestamp [09:58:45]File name is /storage/kkm_last_timestamp [09:58:45]Write 4 bytes [09:58:45]NVStorageSaveData done [09:58:45]ExternCall_PrintAddStr [09:58:45]wPrintStart [09:58:45]Write to MH i2c: 01 00 00 44 3C 80 [09:58:45]Write i2c OK [09:58:45]MH_I2C_Read... [09:58:45]Read from MH i2c: 01 [09:58:45]MH_I2C_Read... [09:58:45]Read from MH i2c: 01 07 00 [09:58:45]MH_I2C_Read... [09:58:45]Read from MH i2c: 01 07 00 44 3C 00 00 00 00 00 FF 0F 95 [09:58:45]RasterBufferAndPrint [09:58:45]line Счет N : (1)209689 [09:58:45]line ИНН: 02508201610067 [09:58:45]line Контрольно-Кассовый Чек [09:58:45]line ПРОДАЖА [09:58:45]line ТРК (МРК, ГНК) : 51 [09:58:45]line Товар: 2710194210 [09:58:45]line ДТ-К-5 [09:58:45]line 65.620 * 76.20 [09:58:45]line = 5000.24 [09:58:45]line НДС 12% НСП 1% [09:58:45]line > о реализуемом товаре [09:58:45]line ИТОГО: 5000.24 [09:58:45]line НСП 1% : 44.25 [09:58:45]line НДС 12% : 531.00 [09:58:45]line Наличными: 0.00 [09:58:45]line Безнал.: 5000.24 [09:58:45]line Место: АЗС № 86 "Партнер Нефть" [09:58:45]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [09:58:45]line СНО: Общий режим [09:58:45]line Чек 102 21.10.2024 09:58 [09:58:45]line Смена: 460 ФФД: 1.0 [09:58:45]line ЗНМ: 0300000155 [09:58:45]line РНМ: 0000000000100030 [09:58:45]line Версия ККМ: 001 [09:58:45]line Платежная система: O! деньги [09:58:45]line ФМ: 0000000000965340 [09:58:45]line ФД: 187638 [09:58:45]line ФПД: 268421827178802 [09:58:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T095847&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187638&fm=268421827178802&tin=02508201610067®Number=0000000000100030&sum=500024 [09:58:45]written 0, free lines is 4095 [09:58:46]OFD Sender: Processing packet 187638 [packets to send 1062, broken 1061] [09:58:46]ProducePacketName [09:58:46]name=ofd_packets/00187638 [09:58:46]OFD Sender: To server: pG, [09:58:46]CommunicateWithHost lk.salyk.kg:30040 [09:58:46]ConnectInit lk.salyk.kg [09:58:46]Connected sock=11 [09:58:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 53 38 04 01 F0 21 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 54 00 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 38 A1 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 A1 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 11 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6C CF 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 38 A1 07 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 00 00 00 F4 03 04 00 D7 25 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 F6 DC 02 00 35 04 06 00 F4 20 D3 A8 B1 32 48 2D D7 E3 2B 05 12 7F [09:58:46]Write to MH i2c: 01 00 00 6E 3C AA [09:58:46]Write i2c OK [09:58:46]MH_I2C_Read... [09:58:46]Read from MH i2c: 01 [09:58:46]MH_I2C_Read... [09:58:46]Read from MH i2c: 01 07 00 [09:58:46]MH_I2C_Read... [09:58:46]Read from MH i2c: 01 07 00 6E 3C 00 00 00 00 00 8F 0C 4C [09:58:46]RasterBufferAndPrint [09:58:46]line [09:58:46]line [09:58:46]line [09:58:46]line [09:58:46]line [09:58:46]written 0, free lines is 3217 [09:58:46]MH_Cut [09:58:46]Write to MH i2c: D1 01 00 75 3C 01 83 [09:58:46]Write i2c OK [09:58:46]MH_I2C_Read... [09:58:46]Read from MH i2c: D1 [09:58:46]MH_I2C_Read... [09:58:46]Read from MH i2c: D1 01 00 [09:58:46]MH_I2C_Read... [09:58:46]Read from MH i2c: D1 01 00 75 3C 00 82 [09:58:46]Write to MH i2c: 01 00 00 76 3C B2 [09:58:46]Write i2c OK [09:58:46]MH_I2C_Read... [09:58:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 A2 39 47 00 22 73 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 F6 DC 02 00 F4 03 04 00 C7 CF 15 67 B6 04 01 00 00 19 5E 6D CE 5A 36 F7 A0 [09:58:46]CommunicateWithHost err = 0 [09:58:46]CheckOFDResponse [09:58:46]1017 (14) - 77093643461234 [09:58:46]1041 (16) - 0000000000965340 [09:58:46]1040 (4) - 187638 [09:58:46]1012 (4) - 21.10.2024 03:51 [09:58:46]1206 (1) - 0 [09:58:46]OFD Sender: Remove packet 187638 [09:58:46]ProducePacketName [09:58:46]name=ofd_packets/00187638 [09:58:46]NVStorageDeleteData [09:58:47]OFD Sender: No OFD packet to send [09:58:47]*** Cut start [09:58:47]*** Partial cut [09:58:47]*** CUTSNS_PIN = 1 [09:58:47]*** CUTSNS_PIN = 0 [09:58:47]*** Brake cut motor [09:58:48]Read from MH i2c: 01 [09:58:48]MH_I2C_Read... [09:58:48]*** Stop cut motor [09:58:48]*** Cut end [09:58:48]Read from MH i2c: 01 07 00 [09:58:48]MH_I2C_Read... [09:58:48]Read from MH i2c: 01 07 00 76 3C 00 00 00 00 00 FF 0F C7 [09:58:48]process_action close_receipt done [09:58:48]requested_data is exist [09:58:48]produce_requested_data [09:58:48]requested_item fm.sn is exist - process it [09:58:48]wFMCommunicate request_size=4 [09:58:48]MH_SAM_APDU [09:58:48]CAPDU: 80 11 00 00 [09:58:48]Write to MH i2c: E2 08 00 77 3C 80 11 00 00 00 00 00 00 2D [09:58:48]Write i2c OK [09:58:48]MH_I2C_Read... [09:58:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:58:48]Read from MH i2c: E2 [09:58:48]MH_I2C_Read... [09:58:48]Read from MH i2c: E2 17 00 [09:58:48]MH_I2C_Read... [09:58:48]Read from MH i2c: E2 17 00 77 3C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 7B [09:58:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [09:58:48]wFMCommunicate OK [09:58:48]requested_item fd.num is exist - process it [09:58:48]SAM_PROTO_GetFieldsCounters [09:58:48]wFMCommunicate request_size=4 [09:58:48]MH_SAM_APDU [09:58:48]CAPDU: 80 13 00 00 [09:58:48]Write to MH i2c: E2 08 00 78 3C 80 13 00 00 00 00 00 00 30 [09:58:48]Write i2c OK [09:58:48]MH_I2C_Read... [09:58:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:58:48]Read from MH i2c: E2 [09:58:48]MH_I2C_Read... [09:58:48]Read from MH i2c: E2 62 00 [09:58:48]MH_I2C_Read... [09:58:48]Read from MH i2c: E2 62 00 78 3C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 F6 DC 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 66 00 00 00 5E 04 04 00 66 00 00 00 57 04 04 00 67 00 00 00 19 04 04 00 00 00 00 00 90 00 0A [09:58:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 F6 DC 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 66 00 00 00 5E 04 04 00 66 00 00 00 57 04 04 00 67 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:58:48]wFMCommunicate OK [09:58:48]SAM_PROTO_GetFieldsCounters done [09:58:48]requested_item shift.num is exist - process it [09:58:48]requested_item shift.opened is exist - process it [09:58:48]req_shift_opened [09:58:48]FM_GetShiftState [09:58:48]SAM_PROTO_GetShiftState [09:58:48]wFMCommunicate request_size=4 [09:58:48]MH_SAM_APDU [09:58:48]CAPDU: 80 13 01 00 [09:58:48]Write to MH i2c: E2 08 00 79 3C 80 13 01 00 00 00 00 00 32 [09:58:48]Write i2c OK [09:58:48]MH_I2C_Read... [09:58:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:58:48]Read from MH i2c: E2 [09:58:48]MH_I2C_Read... [09:58:48]Read from MH i2c: E2 0E 00 [09:58:48]MH_I2C_Read... [09:58:48]Read from MH i2c: E2 0E 00 79 3C 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 91 [09:58:48]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [09:58:48]wFMCommunicate OK [09:58:48]SAM_PROTO_GetShiftState done [09:58:48]FM_GetShiftState done [09:58:48]req_shift_opened done [09:58:48]requested_item shift.open_date is exist - process it [09:58:48]req_shift_open_date [09:58:48]req_shift_open_date done [09:58:48]produce_requested_data done [09:58:48]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187638,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [09:58:48]process_action_free close_receipt [09:58:48]json_value_free [09:58:48]json_value_free done [09:58:48]process_json_proto returns [09:58:48]Send response to host [09:58:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187638,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [09:58:48]free response buf [09:58:48]execute_script done [09:58:48]execute_script returns [09:58:48]free content buf [09:58:48]Sock 9.Close socket [09:58:48]Sock 9.Thread stoped [09:58:52]OFD Sender: No OFD packet to send [09:58:57]OFD Sender: No OFD packet to send [09:59:02]OFD Sender: No OFD packet to send [09:59:07]OFD Sender: No OFD packet to send [09:59:12]OFD Sender: No OFD packet to send [09:59:17]OFD Sender: No OFD packet to send [09:59:22]OFD Sender: No OFD packet to send [09:59:27]OFD Sender: No OFD packet to send [09:59:32]OFD Sender: No OFD packet to send [09:59:37]OFD Sender: No OFD packet to send [09:59:42]OFD Sender: No OFD packet to send [09:59:47]OFD Sender: No OFD packet to send [09:59:52]OFD Sender: No OFD packet to send [09:59:57]OFD Sender: No OFD packet to send [10:00:02]OFD Sender: No OFD packet to send [10:00:07]OFD Sender: No OFD packet to send [10:00:12]OFD Sender: No OFD packet to send [10:00:17]OFD Sender: No OFD packet to send [10:00:22]OFD Sender: No OFD packet to send [10:00:27]OFD Sender: No OFD packet to send [10:00:32]OFD Sender: No OFD packet to send [10:00:37]OFD Sender: No OFD packet to send [10:00:42]OFD Sender: No OFD packet to send [10:00:47]OFD Sender: No OFD packet to send [10:00:52]OFD Sender: No OFD packet to send [10:00: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:34]accept exits with 8 [10:01:34]New connection [10:01:34]New thread 3067014500 created [10:01:34]Thread 3067157860 joined [10:01:34]Waiting for new connection... [10:01:34] Sock 8.Parse request [10:01:34]Sock 8.Check first char [10:01:34]Sock 8.First char is OK [10:01:34]request: POST /json_proto HTTP/1.0 [10:01:34]Method: POST [10:01:34]URL: /json_proto [10:01:34]Method is POST - this is cgi request [10:01:34]url: /json_proto [10:01:34]query_string will be loaded in cgi processing [10:01:34]execute_cgi json_proto POST (null) [10:01:34]execute_cgi path=json_proto method=POST [10:01:34]POST find Content-Length [10:01:34]Host: 172.17.42.131:8080 [10:01:34]Content-Length: 797 [10:01:34]Content-Type: application/json [10:01:34] [10:01:34]POST finish read [10:01:34]Found Content-Length = 797 [10:01:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209691", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 50.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3476601", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:01:34]execute_script... [10:01: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)209691", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 50.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3476601", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:01:34]POST & json_proto [10:01:34]process_json_proto [10:01:34]json parsed OK: [10:01:34]protocol is kg_v1.0 [10:01:34]action value=close_receipt [10:01:34]process_action close_receipt [10:01:34]cmd_close_receipt [10:01:34]MH_GetDate [10:01:34]Write to MH i2c: F0 00 00 7A 3C A5 [10:01:34]Write i2c OK [10:01:34]MH_I2C_Read... [10:01:34]Read from MH i2c: F0 [10:01:34]MH_I2C_Read... [10:01:34]Read from MH i2c: F0 09 00 [10:01:34]MH_I2C_Read... [10:01:34]Read from MH i2c: F0 09 00 7A 3C 00 82 26 16 67 A0 18 CA 66 BB [10:01:34]GetLastDocTimeStamp 1729504727 [10:01:34]current date 1729504898 [10:01:34]FM_GetShiftState [10:01:34]SAM_PROTO_GetShiftState [10:01:34]wFMCommunicate request_size=4 [10:01:34]MH_SAM_APDU [10:01:34]CAPDU: 80 13 01 00 [10:01:34]Write to MH i2c: E2 08 00 7B 3C 80 13 01 00 00 00 00 00 34 [10:01:34]Write i2c OK [10:01:34]MH_I2C_Read... [10:01:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:01:34]Read from MH i2c: E2 [10:01:34]MH_I2C_Read... [10:01:34]Read from MH i2c: E2 0E 00 [10:01:34]MH_I2C_Read... [10:01:34]Read from MH i2c: E2 0E 00 7B 3C 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 93 [10:01:34]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [10:01:34]wFMCommunicate OK [10:01:34]SAM_PROTO_GetShiftState done [10:01:34]FM_GetShiftState done [10:01:34]opened in 1729469754 [10:01:34]opened+sec_in_day 1729556154 [10:01:34]quantity*price = 0 [10:01:34]sum+1 = 1 [10:01:34]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 103 21.10.2024 10:01 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Талоны: Топливные Талоны 3476601 ФМ: 0000000000965340 ФД: 187639 ФПД: 40879778306041 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T100138&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187639&fm=40879778306041&tin=02508201610067®Number=0000000000100030&sum=0 [10:01:35]StoreToDocumentArchive [10:01:35]shift 460 fd 187639 [10:01:35]save to /storage/0460/doc_00187639 [10:01:35]save last doc name /storage/0460/doc_00187639 to /storage/kkm_last_doc_name [10:01:35]save OK [10:01:35]Clear old archive folders... [10:01:35]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:01:35]tlvbuf is 011026F0 [10:01:35]SAM_PROTO_ClearQueue [10:01:35]wFMCommunicate request_size=4 [10:01:35]MH_SAM_APDU [10:01:35]CAPDU: 80 09 00 00 [10:01:35]Write to MH i2c: E2 08 00 88 3C 80 09 00 00 00 00 00 00 36 [10:01:35]Write i2c OK [10:01:35]MH_I2C_Read... [10:01:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:01:35]Read from MH i2c: E2 [10:01:35]MH_I2C_Read... [10:01:35]Read from MH i2c: E2 03 00 [10:01:35]MH_I2C_Read... [10:01:35]Read from MH i2c: E2 03 00 88 3C 00 90 00 38 [10:01:35]RAPDU: 90 00 [10:01:35]wFMCommunicate OK [10:01:35]SAM_PROTO_ClearQueue done [10:01:35]KKMCreateOFDPacket [10:01:35]OFDProtocolAddRootSTLVToBuf [10:01:35]FM_MakeSignedData [10:01:35]FM_MakeSignedData [10:01:35]SAM_PROTO_SignData [10:01:35]wFMCommunicate request_size=4 [10:01:35]MH_SAM_APDU [10:01:35]CAPDU: 80 0D 01 02 [10:01:35]Write to MH i2c: E2 08 00 89 3C 80 0D 01 02 00 00 00 00 3E [10:01:35]Write i2c OK [10:01:35]MH_I2C_Read... [10:01:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:01:36]Read from MH i2c: E2 [10:01:36]MH_I2C_Read... [10:01:36]Read from MH i2c: E2 03 00 [10:01:36]MH_I2C_Read... [10:01:36]Read from MH i2c: E2 03 00 89 3C 00 90 00 39 [10:01:36]RAPDU: 90 00 [10:01:36]wFMCommunicate OK [10:01:36]wFMCommunicate request_size=255 [10:01:36]MH_SAM_APDU [10:01:36]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 50 C3 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 82 26 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 F7 DC 02 00 35 04 06 00 25 2E 10 AA [10:01:36]Write to MH i2c: E2 02 01 8A 3C 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 50 C3 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 82 26 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 F7 DC 02 00 35 04 06 00 25 2E 10 AA 00 00 CF [10:01:36]Write i2c OK [10:01:36]MH_I2C_Read... [10:01:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:01:36]Read from MH i2c: E2 [10:01:36]MH_I2C_Read... [10:01:36]Read from MH i2c: E2 03 00 [10:01:36]MH_I2C_Read... [10:01:36]Read from MH i2c: E2 03 00 8A 3C 00 90 00 3A [10:01:36]RAPDU: 90 00 [10:01:36]wFMCommunicate OK [10:01:36]wFMCommunicate request_size=7 [10:01:36]MH_SAM_APDU [10:01:36]CAPDU: 80 0D 02 02 02 17 F9 [10:01:36]Write to MH i2c: E2 0A 00 8B 3C 80 0D 02 02 02 00 17 F9 00 00 55 [10:01:36]Write i2c OK [10:01:36]MH_I2C_Read... [10:01:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:01:36]Read from MH i2c: E2 [10:01:36]MH_I2C_Read... [10:01:36]Read from MH i2c: E2 03 00 [10:01:36]MH_I2C_Read... [10:01:36]Read from MH i2c: E2 03 00 8B 3C 00 90 00 3B [10:01:36]RAPDU: 90 00 [10:01:36]wFMCommunicate OK [10:01:36]wFMCommunicate request_size=4 [10:01:36]MH_SAM_APDU [10:01:36]CAPDU: 80 0D 03 02 [10:01:36]Write to MH i2c: E2 08 00 8C 3C 80 0D 03 02 00 00 00 00 43 [10:01:36]Write i2c OK [10:01:36]MH_I2C_Read... [10:01:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:01:36]Read from MH i2c: E2 [10:01:36]MH_I2C_Read... [10:01:36]Read from MH i2c: E2 0B 00 [10:01:36]MH_I2C_Read... [10:01:36]Read from MH i2c: E2 0B 00 8C 3C 00 FA 6F C7 81 3B 66 D5 BD 90 00 28 [10:01:36]RAPDU: FA 6F C7 81 3B 66 D5 BD 90 00 [10:01:36]wFMCommunicate OK [10:01:36]SAM_PROTO_SignData done [10:01:36]FM_MakeSignedData done [10:01:36]CreateOFDProtocolMessage [10:01:36]wFMCommunicate request_size=4 [10:01:36]MH_SAM_APDU [10:01:36]CAPDU: 80 11 00 00 [10:01:36]Write to MH i2c: E2 08 00 8D 3C 80 11 00 00 00 00 00 00 43 [10:01:36]Write i2c OK [10:01:36]MH_I2C_Read... [10:01:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:01:36]Read from MH i2c: E2 [10:01:36]MH_I2C_Read... [10:01:36]Read from MH i2c: E2 17 00 [10:01:36]MH_I2C_Read... [10:01:36]Read from MH i2c: E2 17 00 8D 3C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 91 [10:01:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [10:01:36]wFMCommunicate OK [10:01:36]CreateOFDProtocolMessage done [10:01:36]OFDSenderStorePacket 187639 [10:01:36]StoreOFDPacket docnum=187639 [10:01:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 C4 A9 04 01 2C FF 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 50 C3 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 82 26 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 F7 DC 02 00 35 04 06 00 25 2E 10 AA 17 F9 FA 6F C7 81 3B 66 D5 BD [10:01:36]CheckFolder [10:01:36]dirname=/storage/ofd_packets [10:01:36]CheckFolder done [10:01:36]ProducePacketName [10:01:36]name=ofd_packets/00187639 [10:01:36]NVStorageSaveData ofd_packets/00187639 [10:01:36]File name is /storage/ofd_packets/00187639 [10:01:36]Write 298 bytes [10:01:36]NVStorageSaveData done [10:01:36]OFDSenderStorePacket done [10:01:36]KKMCreateOFDPacket done [10:01:36]NVStorageSaveData kkm_last_timestamp [10:01:36]File name is /storage/kkm_last_timestamp [10:01:36]Write 4 bytes [10:01:36]NVStorageSaveData done [10:01:36]ExternCall_PrintAddStr [10:01:36]wPrintStart [10:01:36]Write to MH i2c: 01 00 00 8E 3C CA [10:01:36]Write i2c OK [10:01:36]MH_I2C_Read... [10:01:36]Read from MH i2c: 01 [10:01:36]MH_I2C_Read... [10:01:36]Read from MH i2c: 01 07 00 [10:01:36]MH_I2C_Read... [10:01:36]Read from MH i2c: 01 07 00 8E 3C 00 00 00 00 00 FF 0F DF [10:01:36]RasterBufferAndPrint [10:01:36]line Счет N : (1)209691 [10:01:36]line ИНН: 02508201610067 [10:01:36]line Контрольно-Кассовый Чек [10:01:36]line ПРОДАЖА [10:01:36]line ТРК (МРК, ГНК) : 51 [10:01:36]line Товар: 2710194210 [10:01:36]line ДТ-К-5 [10:01:36]line 50.000 * 0.00 [10:01:36]line = 0.00 [10:01:36]line НДС 12% НСП 1% [10:01:36]line > о реализуемом товаре [10:01:36]line ИТОГО: 0.00 [10:01:36]line НСП 1% : 0.00 [10:01:36]line НДС 12% : 0.00 [10:01:36]line Наличными: 0.00 [10:01:36]line Безнал.: 0.00 [10:01:36]line Место: АЗС № 86 "Партнер Нефть" [10:01:36]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [10:01:36]line СНО: Общий режим [10:01:36]line Чек 103 21.10.2024 10:01 [10:01:36]line Смена: 460 ФФД: 1.0 [10:01:36]line ЗНМ: 0300000155 [10:01:36]line РНМ: 0000000000100030 [10:01:36]line Версия ККМ: 001 [10:01:36]line Талоны: Топливные Талоны [10:01:36]line 3476601 [10:01:36]line ФМ: 0000000000965340 [10:01:36]line ФД: 187639 [10:01:36]line ФПД: 40879778306041 [10:01:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T100138&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187639&fm=40879778306041&tin=02508201610067®Number=0000000000100030&sum=0 [10:01:36]OFD Sender: Processing packet 187639 [packets to send 1062, broken 1061] [10:01:36]ProducePacketName [10:01:36]name=ofd_packets/00187639 [10:01:36]OFD Sender: To server: pG, [10:01:36]CommunicateWithHost lk.salyk.kg:30040 [10:01:36]ConnectInit lk.salyk.kg [10:01:36]written 0, free lines is 4095 [10:01:36]Connected sock=10 [10:01:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 C4 A9 04 01 2C FF 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 50 C3 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 82 26 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 F7 DC 02 00 35 04 06 00 25 2E 10 AA 17 F9 FA 6F C7 81 3B 66 D5 BD [10:01:37]Write to MH i2c: 01 00 00 B8 3C F4 [10:01:37]Write i2c OK [10:01:37]MH_I2C_Read... [10:01:37]Read from MH i2c: 01 [10:01:37]MH_I2C_Read... [10:01:37]Read from MH i2c: 01 07 00 [10:01:37]MH_I2C_Read... [10:01:37]Read from MH i2c: 01 07 00 B8 3C 00 00 00 00 00 8E 0C 95 [10:01:37]RasterBufferAndPrint [10:01:37]line [10:01:37]line [10:01:37]line [10:01:37]line [10:01:37]line [10:01:37]written 0, free lines is 3218 [10:01:37]MH_Cut [10:01:37]Write to MH i2c: D1 01 00 BF 3C 01 CD [10:01:37]Write i2c OK [10:01:37]MH_I2C_Read... [10:01:37]Read from MH i2c: D1 [10:01:37]MH_I2C_Read... [10:01:37]Read from MH i2c: D1 01 00 [10:01:37]MH_I2C_Read... [10:01:37]Read from MH i2c: D1 01 00 BF 3C 00 CC [10:01:37]Write to MH i2c: 01 00 00 C0 3C FC [10:01:37]Write i2c OK [10:01:37]MH_I2C_Read... [10:01:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 38 E8 47 00 A4 35 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 F7 DC 02 00 F4 03 04 00 72 D0 15 67 B6 04 01 00 00 2C 6F 2D 50 FB C1 EB 6D [10:01:37]CommunicateWithHost err = 0 [10:01:37]CheckOFDResponse [10:01:37]1017 (14) - 77093643461234 [10:01:37]1041 (16) - 0000000000965340 [10:01:37]1040 (4) - 187639 [10:01:37]1012 (4) - 21.10.2024 03:54 [10:01:37]1206 (1) - 0 [10:01:37]OFD Sender: Remove packet 187639 [10:01:37]ProducePacketName [10:01:37]name=ofd_packets/00187639 [10:01:37]NVStorageDeleteData [10:01:37]OFD Sender: No OFD packet to send [10:01:38]*** Cut start [10:01:38]*** Partial cut [10:01:38]*** CUTSNS_PIN = 1 [10:01:38]*** CUTSNS_PIN = 0 [10:01:38]*** Brake cut motor [10:01:38]Read from MH i2c: 01 [10:01:38]MH_I2C_Read... [10:01:38]*** Stop cut motor [10:01:38]*** Cut end [10:01:38]Read from MH i2c: 01 07 00 [10:01:38]MH_I2C_Read... [10:01:38]Read from MH i2c: 01 07 00 C0 3C 00 00 00 00 00 FF 0F 11 [10:01:38]process_action close_receipt done [10:01:38]requested_data is exist [10:01:38]produce_requested_data [10:01:38]requested_item fm.sn is exist - process it [10:01:38]wFMCommunicate request_size=4 [10:01:38]MH_SAM_APDU [10:01:38]CAPDU: 80 11 00 00 [10:01:38]Write to MH i2c: E2 08 00 C1 3C 80 11 00 00 00 00 00 00 77 [10:01:38]Write i2c OK [10:01:38]MH_I2C_Read... [10:01:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:01:38]Read from MH i2c: E2 [10:01:38]MH_I2C_Read... [10:01:38]Read from MH i2c: E2 17 00 [10:01:38]MH_I2C_Read... [10:01:38]Read from MH i2c: E2 17 00 C1 3C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 C5 [10:01:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [10:01:38]wFMCommunicate OK [10:01:38]requested_item fd.num is exist - process it [10:01:38]SAM_PROTO_GetFieldsCounters [10:01:38]wFMCommunicate request_size=4 [10:01:38]MH_SAM_APDU [10:01:38]CAPDU: 80 13 00 00 [10:01:38]Write to MH i2c: E2 08 00 C2 3C 80 13 00 00 00 00 00 00 7A [10:01:38]Write i2c OK [10:01:38]MH_I2C_Read... [10:01:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:01:39]Read from MH i2c: E2 [10:01:39]MH_I2C_Read... [10:01:39]Read from MH i2c: E2 62 00 [10:01:39]MH_I2C_Read... [10:01:39]Read from MH i2c: E2 62 00 C2 3C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 F7 DC 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 67 00 00 00 5E 04 04 00 67 00 00 00 57 04 04 00 68 00 00 00 19 04 04 00 00 00 00 00 90 00 58 [10:01:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 F7 DC 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 67 00 00 00 5E 04 04 00 67 00 00 00 57 04 04 00 68 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:01:39]wFMCommunicate OK [10:01:39]SAM_PROTO_GetFieldsCounters done [10:01:39]requested_item shift.num is exist - process it [10:01:39]requested_item shift.opened is exist - process it [10:01:39]req_shift_opened [10:01:39]FM_GetShiftState [10:01:39]SAM_PROTO_GetShiftState [10:01:39]wFMCommunicate request_size=4 [10:01:39]MH_SAM_APDU [10:01:39]CAPDU: 80 13 01 00 [10:01:39]Write to MH i2c: E2 08 00 C3 3C 80 13 01 00 00 00 00 00 7C [10:01:39]Write i2c OK [10:01:39]MH_I2C_Read... [10:01:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:01:39]Read from MH i2c: E2 [10:01:39]MH_I2C_Read... [10:01:39]Read from MH i2c: E2 0E 00 [10:01:39]MH_I2C_Read... [10:01:39]Read from MH i2c: E2 0E 00 C3 3C 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 DB [10:01:39]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [10:01:39]wFMCommunicate OK [10:01:39]SAM_PROTO_GetShiftState done [10:01:39]FM_GetShiftState done [10:01:39]req_shift_opened done [10:01:39]requested_item shift.open_date is exist - process it [10:01:39]req_shift_open_date [10:01:39]req_shift_open_date done [10:01:39]produce_requested_data done [10:01:39]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187639,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [10:01:39]process_action_free close_receipt [10:01:39]json_value_free [10:01:39]json_value_free done [10:01:39]process_json_proto returns [10:01:39]Send response to host [10:01:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187639,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [10:01:39]free response buf [10:01:39]execute_script done [10:01:39]execute_script returns [10:01:39]free content buf [10:01:39]Sock 8.Close socket [10:01:39]Sock 8.Thread stoped [10:01:39]accept exits with 9 [10:01:39]New connection [10:01:39]New thread 3067157860 created [10:01:39]Thread 3067014500 joined [10:01:39]Waiting for new connection... [10:01:39] Sock 9.Parse request [10:01:39]Sock 9.Check first char [10:01:39]Sock 9.First char is OK [10:01:39]request: POST /json_proto HTTP/1.0 [10:01:39]Method: POST [10:01:39]URL: /json_proto [10:01:39]Method is POST - this is cgi request [10:01:39]url: /json_proto [10:01:39]query_string will be loaded in cgi processing [10:01:39]execute_cgi json_proto POST (null) [10:01:39]execute_cgi path=json_proto method=POST [10:01:39]POST find Content-Length [10:01:39]Host: 172.17.42.131:8080 [10:01:39]Content-Length: 688 [10:01:39]Content-Type: application/json [10:01:39] [10:01:39]POST finish read [10:01:39]Found Content-Length = 688 [10:01:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209692", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "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" ] } } [10:01:39]execute_script... [10:01: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)209692", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "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" ] } } [10:01:39]POST & json_proto [10:01:39]process_json_proto [10:01:39]json parsed OK: [10:01:39]protocol is kg_v1.0 [10:01:39]action value=close_receipt [10:01:39]process_action close_receipt [10:01:39]cmd_close_receipt [10:01:39]MH_GetDate [10:01:39]Write to MH i2c: F0 00 00 C4 3C EF [10:01:39]Write i2c OK [10:01:39]MH_I2C_Read... [10:01:39]Read from MH i2c: F0 [10:01:39]MH_I2C_Read... [10:01:39]Read from MH i2c: F0 09 00 [10:01:39]MH_I2C_Read... [10:01:39]Read from MH i2c: F0 09 00 C4 3C 00 87 26 16 67 A0 18 CA 66 0A [10:01:39]GetLastDocTimeStamp 1729504898 [10:01:39]current date 1729504903 [10:01:39]FM_GetShiftState [10:01:39]SAM_PROTO_GetShiftState [10:01:39]wFMCommunicate request_size=4 [10:01:39]MH_SAM_APDU [10:01:39]CAPDU: 80 13 01 00 [10:01:39]Write to MH i2c: E2 08 00 C5 3C 80 13 01 00 00 00 00 00 7E [10:01:39]Write i2c OK [10:01:39]MH_I2C_Read... [10:01:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:01:39]Read from MH i2c: E2 [10:01:39]MH_I2C_Read... [10:01:39]Read from MH i2c: E2 0E 00 [10:01:39]MH_I2C_Read... [10:01:39]Read from MH i2c: E2 0E 00 C5 3C 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 DD [10:01:39]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [10:01:39]wFMCommunicate OK [10:01:39]SAM_PROTO_GetShiftState done [10:01:39]FM_GetShiftState done [10:01:39]opened in 1729469754 [10:01:39]opened+sec_in_day 1729556154 [10:01:39]quantity*price = 150076 [10:01:39]sum+1 = 150078 [10:01:39]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.77 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.37 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 104 21.10.2024 10:01 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 187640 ФПД: 73726438863392 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T100143&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187640&fm=73726438863392&tin=02508201610067®Number=0000000000100030&sum=150000 [10:01:41]StoreToDocumentArchive [10:01:41]shift 460 fd 187640 [10:01:41]save to /storage/0460/doc_00187640 [10:01:41]save last doc name /storage/0460/doc_00187640 to /storage/kkm_last_doc_name [10:01:41]save OK [10:01:41]Clear old archive folders... [10:01:41]ProcessDocumentItem done err = 0, tmpTLVsize=257 [10:01:41]tlvbuf is 011D7B90 [10:01:41]SAM_PROTO_ClearQueue [10:01:41]wFMCommunicate request_size=4 [10:01:41]MH_SAM_APDU [10:01:41]CAPDU: 80 09 00 00 [10:01:41]Write to MH i2c: E2 08 00 D2 3C 80 09 00 00 00 00 00 00 80 [10:01:41]Write i2c OK [10:01:41]MH_I2C_Read... [10:01:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:01:41]Read from MH i2c: E2 [10:01:41]MH_I2C_Read... [10:01:41]Read from MH i2c: E2 03 00 [10:01:41]MH_I2C_Read... [10:01:41]Read from MH i2c: E2 03 00 D2 3C 00 90 00 82 [10:01:41]RAPDU: 90 00 [10:01:41]wFMCommunicate OK [10:01:41]SAM_PROTO_ClearQueue done [10:01:41]KKMCreateOFDPacket [10:01:41]OFDProtocolAddRootSTLVToBuf [10:01:41]FM_MakeSignedData [10:01:41]FM_MakeSignedData [10:01:41]SAM_PROTO_SignData [10:01:41]wFMCommunicate request_size=4 [10:01:41]MH_SAM_APDU [10:01:41]CAPDU: 80 0D 01 02 [10:01:41]Write to MH i2c: E2 08 00 D3 3C 80 0D 01 02 00 00 00 00 88 [10:01:41]Write i2c OK [10:01:41]MH_I2C_Read... [10:01:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:01:41]Read from MH i2c: E2 [10:01:41]MH_I2C_Read... [10:01:41]Read from MH i2c: E2 03 00 [10:01:41]MH_I2C_Read... [10:01:41]Read from MH i2c: E2 03 00 D3 3C 00 90 00 83 [10:01:41]RAPDU: 90 00 [10:01:41]wFMCommunicate OK [10:01:41]wFMCommunicate request_size=255 [10:01:41]MH_SAM_APDU [10:01:41]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 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 68 00 00 00 F4 03 04 00 87 26 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 F8 DC 02 [10:01:41]Write to MH i2c: E2 02 01 D4 3C 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 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 68 00 00 00 F4 03 04 00 87 26 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 F8 DC 02 00 00 6C [10:01:41]Write i2c OK [10:01:41]MH_I2C_Read... [10:01:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:01:41]Read from MH i2c: E2 [10:01:41]MH_I2C_Read... [10:01:41]Read from MH i2c: E2 03 00 [10:01:41]MH_I2C_Read... [10:01:41]Read from MH i2c: E2 03 00 D4 3C 00 90 00 84 [10:01:41]RAPDU: 90 00 [10:01:41]wFMCommunicate OK [10:01:41]wFMCommunicate request_size=16 [10:01:41]MH_SAM_APDU [10:01:41]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 43 0D C6 32 F2 20 [10:01:41]Write to MH i2c: E2 13 00 D5 3C 80 0D 02 02 0B 00 00 35 04 06 00 43 0D C6 32 F2 20 00 00 3A [10:01:41]Write i2c OK [10:01:41]MH_I2C_Read... [10:01:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:01:41]Read from MH i2c: E2 [10:01:41]MH_I2C_Read... [10:01:41]Read from MH i2c: E2 03 00 [10:01:41]MH_I2C_Read... [10:01:41]Read from MH i2c: E2 03 00 D5 3C 00 90 00 85 [10:01:41]RAPDU: 90 00 [10:01:41]wFMCommunicate OK [10:01:41]wFMCommunicate request_size=4 [10:01:41]MH_SAM_APDU [10:01:41]CAPDU: 80 0D 03 02 [10:01:41]Write to MH i2c: E2 08 00 D6 3C 80 0D 03 02 00 00 00 00 8D [10:01:41]Write i2c OK [10:01:41]MH_I2C_Read... [10:01:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:01:41]Read from MH i2c: E2 [10:01:41]MH_I2C_Read... [10:01:41]Read from MH i2c: E2 0B 00 [10:01:41]MH_I2C_Read... [10:01:41]Read from MH i2c: E2 0B 00 D6 3C 00 CE 62 3E 88 E5 D0 06 89 90 00 C8 [10:01:41]RAPDU: CE 62 3E 88 E5 D0 06 89 90 00 [10:01:41]wFMCommunicate OK [10:01:41]SAM_PROTO_SignData done [10:01:41]FM_MakeSignedData done [10:01:41]CreateOFDProtocolMessage [10:01:41]wFMCommunicate request_size=4 [10:01:41]MH_SAM_APDU [10:01:41]CAPDU: 80 11 00 00 [10:01:41]Write to MH i2c: E2 08 00 D7 3C 80 11 00 00 00 00 00 00 8D [10:01:41]Write i2c OK [10:01:41]MH_I2C_Read... [10:01:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:01:41]Read from MH i2c: E2 [10:01:41]MH_I2C_Read... [10:01:41]Read from MH i2c: E2 17 00 [10:01:41]MH_I2C_Read... [10:01:41]Read from MH i2c: E2 17 00 D7 3C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 DB [10:01:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [10:01:41]wFMCommunicate OK [10:01:41]CreateOFDProtocolMessage done [10:01:41]OFDSenderStorePacket 187640 [10:01:41]StoreOFDPacket docnum=187640 [10:01:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 54 E6 0D 01 EF A5 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 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 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 68 00 00 00 F4 03 04 00 87 26 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 F8 DC 02 00 35 04 06 00 43 0D C6 32 F2 20 CE 62 3E 88 E5 D0 06 89 [10:01:41]CheckFolder [10:01:41]dirname=/storage/ofd_packets [10:01:41]CheckFolder done [10:01:41]ProducePacketName [10:01:41]name=ofd_packets/00187640 [10:01:41]NVStorageSaveData ofd_packets/00187640 [10:01:41]File name is /storage/ofd_packets/00187640 [10:01:41]Write 307 bytes [10:01:41]NVStorageSaveData done [10:01:41]OFDSenderStorePacket done [10:01:41]KKMCreateOFDPacket done [10:01:41]NVStorageSaveData kkm_last_timestamp [10:01:41]File name is /storage/kkm_last_timestamp [10:01:41]Write 4 bytes [10:01:41]NVStorageSaveData done [10:01:41]ExternCall_PrintAddStr [10:01:41]wPrintStart [10:01:41]Write to MH i2c: 01 00 00 D8 3C 14 [10:01:41]Write i2c OK [10:01:41]MH_I2C_Read... [10:01:41]Read from MH i2c: 01 [10:01:41]MH_I2C_Read... [10:01:41]Read from MH i2c: 01 07 00 [10:01:41]MH_I2C_Read... [10:01:41]Read from MH i2c: 01 07 00 D8 3C 00 00 00 00 00 FF 0F 29 [10:01:41]RasterBufferAndPrint [10:01:41]line Счет N : (1)209692 [10:01:41]line ИНН: 02508201610067 [10:01:41]line Контрольно-Кассовый Чек [10:01:41]line ПРОДАЖА [10:01:41]line ТРК (МРК, ГНК) : 11 [10:01:41]line Товар: 2710194210 [10:01:41]line D-ENERGY ДТ-К-5 [10:01:41]line 19.440 * 77.20 [10:01:41]line = 1500.77 [10:01:41]line НДС 12% НСП 1% [10:01:41]line > о реализуемом товаре [10:01:41]line ОКРУГЛЕНИЕ: -0.77 [10:01:41]line ИТОГО: 1500.00 [10:01:41]line Внесено: 1500.00 [10:01:41]line СДАЧА: 0.00 [10:01:41]line НСП 1% : 13.28 [10:01:41]line НДС 12% : 159.37 [10:01:41]line Наличными: 1500.00 [10:01:41]line Безнал.: 0.00 [10:01:41]line Место: АЗС № 86 "Партнер Нефть" [10:01:41]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [10:01:41]line СНО: Общий режим [10:01:41]line Чек 104 21.10.2024 10:01 [10:01:41]line Смена: 460 ФФД: 1.0 [10:01:41]line ЗНМ: 0300000155 [10:01:41]line РНМ: 0000000000100030 [10:01:41]line Версия ККМ: 001 [10:01:41]line ФМ: 0000000000965340 [10:01:41]line ФД: 187640 [10:01:41]line ФПД: 73726438863392 [10:01:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T100143&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187640&fm=73726438863392&tin=02508201610067®Number=0000000000100030&sum=150000 [10:01:41]OFD Sender: Processing packet 187640 [packets to send 1062, broken 1061] [10:01:41]ProducePacketName [10:01:41]name=ofd_packets/00187640 [10:01:41]OFD Sender: To server: pG, [10:01:41]CommunicateWithHost lk.salyk.kg:30040 [10:01:41]ConnectInit lk.salyk.kg [10:01:41]written 0, free lines is 4095 [10:01:42]Connected sock=10 [10:01:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 54 E6 0D 01 EF A5 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 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 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 68 00 00 00 F4 03 04 00 87 26 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 F8 DC 02 00 35 04 06 00 43 0D C6 32 F2 20 CE 62 3E 88 E5 D0 06 89 [10:01:42]Write to MH i2c: 01 00 00 03 3D 40 [10:01:42]Write i2c OK [10:01:42]MH_I2C_Read... [10:01:42]Read from MH i2c: 01 [10:01:42]MH_I2C_Read... [10:01:42]Read from MH i2c: 01 07 00 [10:01:42]MH_I2C_Read... [10:01:42]Read from MH i2c: 01 07 00 03 3D 00 00 00 00 00 77 0C CA [10:01:42]RasterBufferAndPrint [10:01:42]line [10:01:42]line [10:01:42]line [10:01:42]line [10:01:42]line [10:01:42]written 0, free lines is 3196 [10:01:42]MH_Cut [10:01:42]Write to MH i2c: D1 01 00 0A 3D 01 19 [10:01:42]Write i2c OK [10:01:42]MH_I2C_Read... [10:01:42]Read from MH i2c: D1 [10:01:42]MH_I2C_Read... [10:01:42]Read from MH i2c: D1 01 00 [10:01:42]MH_I2C_Read... [10:01:42]Read from MH i2c: D1 01 00 0A 3D 00 18 [10:01:42]Write to MH i2c: 01 00 00 0B 3D 48 [10:01:42]Write i2c OK [10:01:42]MH_I2C_Read... [10:01:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 CE 39 47 00 2D DA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 F8 DC 02 00 F4 03 04 00 77 D0 15 67 B6 04 01 00 00 BC 8F AB BB 5C B4 30 1C [10:01:42]CommunicateWithHost err = 0 [10:01:42]CheckOFDResponse [10:01:42]1017 (14) - 77093643461234 [10:01:42]1041 (16) - 0000000000965340 [10:01:42]1040 (4) - 187640 [10:01:42]1012 (4) - 21.10.2024 03:54 [10:01:42]1206 (1) - 0 [10:01:42]OFD Sender: Remove packet 187640 [10:01:42]ProducePacketName [10:01:42]name=ofd_packets/00187640 [10:01:42]NVStorageDeleteData [10:01:42]OFD Sender: No OFD packet to send [10:01:43]*** Cut start [10:01:43]*** Partial cut [10:01:43]*** CUTSNS_PIN = 1 [10:01:43]*** CUTSNS_PIN = 0 [10:01:43]*** Brake cut motor [10:01:43]Read from MH i2c: 01 [10:01:43]MH_I2C_Read... [10:01:43]*** Stop cut motor [10:01:43]*** Cut end [10:01:43]Read from MH i2c: 01 07 00 [10:01:43]MH_I2C_Read... [10:01:43]Read from MH i2c: 01 07 00 0B 3D 00 00 00 00 00 FF 0F 5D [10:01:43]process_action close_receipt done [10:01:43]requested_data is exist [10:01:43]produce_requested_data [10:01:43]requested_item fm.sn is exist - process it [10:01:43]wFMCommunicate request_size=4 [10:01:43]MH_SAM_APDU [10:01:43]CAPDU: 80 11 00 00 [10:01:43]Write to MH i2c: E2 08 00 0C 3D 80 11 00 00 00 00 00 00 C3 [10:01:43]Write i2c OK [10:01:43]MH_I2C_Read... [10:01:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:01:44]Read from MH i2c: E2 [10:01:44]MH_I2C_Read... [10:01:44]Read from MH i2c: E2 17 00 [10:01:44]MH_I2C_Read... [10:01:44]Read from MH i2c: E2 17 00 0C 3D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 11 [10:01:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [10:01:44]wFMCommunicate OK [10:01:44]requested_item fd.num is exist - process it [10:01:44]SAM_PROTO_GetFieldsCounters [10:01:44]wFMCommunicate request_size=4 [10:01:44]MH_SAM_APDU [10:01:44]CAPDU: 80 13 00 00 [10:01:44]Write to MH i2c: E2 08 00 0D 3D 80 13 00 00 00 00 00 00 C6 [10:01:44]Write i2c OK [10:01:44]MH_I2C_Read... [10:01:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:01:44]Read from MH i2c: E2 [10:01:44]MH_I2C_Read... [10:01:44]Read from MH i2c: E2 62 00 [10:01:44]MH_I2C_Read... [10:01:44]Read from MH i2c: E2 62 00 0D 3D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 F8 DC 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 68 00 00 00 5E 04 04 00 68 00 00 00 57 04 04 00 69 00 00 00 19 04 04 00 00 00 00 00 90 00 A8 [10:01:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 F8 DC 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 68 00 00 00 5E 04 04 00 68 00 00 00 57 04 04 00 69 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:01:44]wFMCommunicate OK [10:01:44]SAM_PROTO_GetFieldsCounters done [10:01:44]requested_item shift.num is exist - process it [10:01:44]requested_item shift.opened is exist - process it [10:01:44]req_shift_opened [10:01:44]FM_GetShiftState [10:01:44]SAM_PROTO_GetShiftState [10:01:44]wFMCommunicate request_size=4 [10:01:44]MH_SAM_APDU [10:01:44]CAPDU: 80 13 01 00 [10:01:44]Write to MH i2c: E2 08 00 0E 3D 80 13 01 00 00 00 00 00 C8 [10:01:44]Write i2c OK [10:01:44]MH_I2C_Read... [10:01:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:01:44]Read from MH i2c: E2 [10:01:44]MH_I2C_Read... [10:01:44]Read from MH i2c: E2 0E 00 [10:01:44]MH_I2C_Read... [10:01:44]Read from MH i2c: E2 0E 00 0E 3D 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 27 [10:01:44]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [10:01:44]wFMCommunicate OK [10:01:44]SAM_PROTO_GetShiftState done [10:01:44]FM_GetShiftState done [10:01:44]req_shift_opened done [10:01:44]requested_item shift.open_date is exist - process it [10:01:44]req_shift_open_date [10:01:44]req_shift_open_date done [10:01:44]produce_requested_data done [10:01:44]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187640,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [10:01:44]process_action_free close_receipt [10:01:44]json_value_free [10:01:44]json_value_free done [10:01:44]process_json_proto returns [10:01:44]Send response to host [10:01:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187640,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [10:01:44]free response buf [10:01:44]execute_script done [10:01:44]execute_script returns [10:01:44]free content buf [10:01:44]Sock 9.Close socket [10:01:44]Sock 9.Thread stoped [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:13]OFD Sender: No OFD packet to send [10:02:18]OFD Sender: No OFD packet to send [10:02:23]OFD Sender: No OFD packet to send [10:02:28]OFD Sender: No OFD packet to send [10:02:33]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:03]OFD Sender: No OFD packet to send [10:03:08]OFD Sender: No OFD packet to send [10:03:13]OFD Sender: No OFD packet to send [10:03:18]OFD Sender: No OFD packet to send [10:03:23]OFD Sender: No OFD packet to send [10:03:28]OFD Sender: No OFD packet to send [10:03:33]OFD Sender: No OFD packet to send [10:03:38]OFD Sender: No OFD packet to send [10:03:43]OFD Sender: No OFD packet to send [10:03:48]OFD Sender: No OFD packet to send [10:03:53]OFD Sender: No OFD packet to send [10:03:58]OFD Sender: No OFD packet to send [10:04:03]OFD Sender: No OFD packet to send [10:04:08]OFD Sender: No OFD packet to send [10:04:13]OFD Sender: No OFD packet to send [10:04:18]OFD Sender: No OFD packet to send [10:04:23]OFD Sender: No OFD packet to send [10:04:28]OFD Sender: No OFD packet to send [10:04:33]OFD Sender: No OFD packet to send [10:04:38]OFD Sender: No OFD packet to send [10:04:43]OFD Sender: No OFD packet to send [10:04:48]OFD Sender: No OFD packet to send [10:04:53]OFD Sender: No OFD packet to send [10:04:58]OFD Sender: No OFD packet to send [10:05:00]accept exits with 8 [10:05:00]New connection [10:05:00]New thread 3067014500 created [10:05:00]Thread 3067157860 joined [10:05:00]Waiting for new connection... [10:05:00] Sock 8.Parse request [10:05:00]Sock 8.Check first char [10:05:00]Sock 8.First char is OK [10:05:00]request: POST /json_proto HTTP/1.0 [10:05:00]Method: POST [10:05:00]URL: /json_proto [10:05:00]Method is POST - this is cgi request [10:05:00]url: /json_proto [10:05:00]query_string will be loaded in cgi processing [10:05:00]execute_cgi json_proto POST (null) [10:05:00]execute_cgi path=json_proto method=POST [10:05:00]POST find Content-Length [10:05:00]Host: 172.17.42.131:8080 [10:05:00]Content-Length: 983 [10:05:00]Content-Type: application/json [10:05:00] [10:05:00]POST finish read [10:05:00]Found Content-Length = 983 [10:05:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209693", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 65.90, "quantity" : 25.040, "sum" : 1650.14, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0410\u0418-92\u000A\u043D\u043E\u043C\u0435\u0440 86\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 25.04 \u0441\u043E\u043C", "deposit" : 1650.00, "total" : 1650.00, "payments": [ { "type": 0, "sum" : 1650.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:05:00]execute_script... [10:05: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)209693", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 65.90, "quantity" : 25.040, "sum" : 1650.14, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0410\u0418-92\u000A\u043D\u043E\u043C\u0435\u0440 86\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 25.04 \u0441\u043E\u043C", "deposit" : 1650.00, "total" : 1650.00, "payments": [ { "type": 0, "sum" : 1650.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:05:00]POST & json_proto [10:05:00]process_json_proto [10:05:00]json parsed OK: [10:05:00]protocol is kg_v1.0 [10:05:00]action value=close_receipt [10:05:00]process_action close_receipt [10:05:00]cmd_close_receipt [10:05:00]MH_GetDate [10:05:00]Write to MH i2c: F0 00 00 0F 3D 3B [10:05:00]Write i2c OK [10:05:00]MH_I2C_Read... [10:05:00]Read from MH i2c: F0 [10:05:00]MH_I2C_Read... [10:05:00]Read from MH i2c: F0 09 00 [10:05:00]MH_I2C_Read... [10:05:00]Read from MH i2c: F0 09 00 0F 3D 00 4F 27 16 67 A0 18 CA 66 1F [10:05:00]GetLastDocTimeStamp 1729504903 [10:05:00]current date 1729505103 [10:05:00]FM_GetShiftState [10:05:00]SAM_PROTO_GetShiftState [10:05:00]wFMCommunicate request_size=4 [10:05:00]MH_SAM_APDU [10:05:00]CAPDU: 80 13 01 00 [10:05:00]Write to MH i2c: E2 08 00 10 3D 80 13 01 00 00 00 00 00 CA [10:05:00]Write i2c OK [10:05:00]MH_I2C_Read... [10:05:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:05:00]Read from MH i2c: E2 [10:05:00]MH_I2C_Read... [10:05:00]Read from MH i2c: E2 0E 00 [10:05:00]MH_I2C_Read... [10:05:00]Read from MH i2c: E2 0E 00 10 3D 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 29 [10:05:00]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [10:05:00]wFMCommunicate OK [10:05:00]SAM_PROTO_GetShiftState done [10:05:00]FM_GetShiftState done [10:05:00]opened in 1729469754 [10:05:00]opened+sec_in_day 1729556154 [10:05:00]quantity*price = 165013 [10:05:00]sum+1 = 165015 [10:05:00]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.14 ИТОГО: 1650.00 Внесено: 1650.00 СДАЧА: 0.00 НСП 1% : 14.60 НДС 12% : 175.24 Наличными: 1650.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 105 21.10.2024 10:05 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Дисконтная программа АИ-92 номер 86 сэкономлено 25.04 сом ФМ: 0000000000965340 ФД: 187641 ФПД: 185180679452333 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T100503&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187641&fm=185180679452333&tin=02508201610067®Number=0000000000100030&sum=165000 [10:05:01]StoreToDocumentArchive [10:05:01]shift 460 fd 187641 [10:05:01]save to /storage/0460/doc_00187641 [10:05:01]save last doc name /storage/0460/doc_00187641 to /storage/kkm_last_doc_name [10:05:01]save OK [10:05:01]Clear old archive folders... [10:05:01]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:05:01]tlvbuf is 010C77E0 [10:05:01]SAM_PROTO_ClearQueue [10:05:01]wFMCommunicate request_size=4 [10:05:01]MH_SAM_APDU [10:05:01]CAPDU: 80 09 00 00 [10:05:01]Write to MH i2c: E2 08 00 1D 3D 80 09 00 00 00 00 00 00 CC [10:05:01]Write i2c OK [10:05:01]MH_I2C_Read... [10:05:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:05:01]Read from MH i2c: E2 [10:05:01]MH_I2C_Read... [10:05:01]Read from MH i2c: E2 03 00 [10:05:01]MH_I2C_Read... [10:05:01]Read from MH i2c: E2 03 00 1D 3D 00 90 00 CE [10:05:01]RAPDU: 90 00 [10:05:01]wFMCommunicate OK [10:05:01]SAM_PROTO_ClearQueue done [10:05:01]KKMCreateOFDPacket [10:05:01]OFDProtocolAddRootSTLVToBuf [10:05:01]FM_MakeSignedData [10:05:01]FM_MakeSignedData [10:05:01]SAM_PROTO_SignData [10:05:01]wFMCommunicate request_size=4 [10:05:01]MH_SAM_APDU [10:05:01]CAPDU: 80 0D 01 02 [10:05:01]Write to MH i2c: E2 08 00 1E 3D 80 0D 01 02 00 00 00 00 D4 [10:05:01]Write i2c OK [10:05:01]MH_I2C_Read... [10:05:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:05:01]Read from MH i2c: E2 [10:05:01]MH_I2C_Read... [10:05:01]Read from MH i2c: E2 03 00 [10:05:01]MH_I2C_Read... [10:05:01]Read from MH i2c: E2 03 00 1E 3D 00 90 00 CF [10:05:01]RAPDU: 90 00 [10:05:01]wFMCommunicate OK [10:05:01]wFMCommunicate request_size=255 [10:05:01]MH_SAM_APDU [10:05: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 33 FF 03 08 00 03 D0 61 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 96 84 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 84 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B4 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 74 44 00 00 00 00 07 04 06 00 88 84 02 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 4F 27 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 F9 DC 02 00 35 04 06 00 A8 [10:05:01]Write to MH i2c: E2 02 01 1F 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 33 FF 03 08 00 03 D0 61 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 96 84 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 84 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B4 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 74 44 00 00 00 00 07 04 06 00 88 84 02 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 4F 27 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 F9 DC 02 00 35 04 06 00 A8 00 00 1B [10:05:01]Write i2c OK [10:05:01]MH_I2C_Read... [10:05:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:05:01]Read from MH i2c: E2 [10:05:01]MH_I2C_Read... [10:05:01]Read from MH i2c: E2 03 00 [10:05:01]MH_I2C_Read... [10:05:01]Read from MH i2c: E2 03 00 1F 3D 00 90 00 D0 [10:05:01]RAPDU: 90 00 [10:05:01]wFMCommunicate OK [10:05:01]wFMCommunicate request_size=10 [10:05:01]MH_SAM_APDU [10:05:01]CAPDU: 80 0D 02 02 05 6B BC 9E 36 AD [10:05:01]Write to MH i2c: E2 0D 00 20 3D 80 0D 02 02 05 00 6B BC 9E 36 AD 00 00 89 [10:05:01]Write i2c OK [10:05:01]MH_I2C_Read... [10:05:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:05:01]Read from MH i2c: E2 [10:05:01]MH_I2C_Read... [10:05:01]Read from MH i2c: E2 03 00 [10:05:01]MH_I2C_Read... [10:05:01]Read from MH i2c: E2 03 00 20 3D 00 90 00 D1 [10:05:01]RAPDU: 90 00 [10:05:01]wFMCommunicate OK [10:05:01]wFMCommunicate request_size=4 [10:05:01]MH_SAM_APDU [10:05:01]CAPDU: 80 0D 03 02 [10:05:01]Write to MH i2c: E2 08 00 21 3D 80 0D 03 02 00 00 00 00 D9 [10:05:01]Write i2c OK [10:05:01]MH_I2C_Read... [10:05:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:05:01]Read from MH i2c: E2 [10:05:01]MH_I2C_Read... [10:05:01]Read from MH i2c: E2 0B 00 [10:05:01]MH_I2C_Read... [10:05:01]Read from MH i2c: E2 0B 00 21 3D 00 0E 66 87 D5 88 C4 FE 7A 90 00 6E [10:05:01]RAPDU: 0E 66 87 D5 88 C4 FE 7A 90 00 [10:05:01]wFMCommunicate OK [10:05:01]SAM_PROTO_SignData done [10:05:01]FM_MakeSignedData done [10:05:01]CreateOFDProtocolMessage [10:05:01]wFMCommunicate request_size=4 [10:05:01]MH_SAM_APDU [10:05:01]CAPDU: 80 11 00 00 [10:05:01]Write to MH i2c: E2 08 00 22 3D 80 11 00 00 00 00 00 00 D9 [10:05:01]Write i2c OK [10:05:01]MH_I2C_Read... [10:05:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:05:01]Read from MH i2c: E2 [10:05:01]MH_I2C_Read... [10:05:01]Read from MH i2c: E2 17 00 [10:05:01]MH_I2C_Read... [10:05:01]Read from MH i2c: E2 17 00 22 3D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 27 [10:05:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [10:05:01]wFMCommunicate OK [10:05:01]CreateOFDProtocolMessage done [10:05:01]OFDSenderStorePacket 187641 [10:05:01]StoreOFDPacket docnum=187641 [10:05:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 02 3A 07 01 03 95 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 D0 61 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 96 84 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 84 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B4 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 74 44 00 00 00 00 07 04 06 00 88 84 02 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 4F 27 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 F9 DC 02 00 35 04 06 00 A8 6B BC 9E 36 AD 0E 66 87 D5 88 C4 FE 7A [10:05:01]CheckFolder [10:05:01]dirname=/storage/ofd_packets [10:05:01]CheckFolder done [10:05:01]ProducePacketName [10:05:01]name=ofd_packets/00187641 [10:05:01]NVStorageSaveData ofd_packets/00187641 [10:05:01]File name is /storage/ofd_packets/00187641 [10:05:01]Write 301 bytes [10:05:01]NVStorageSaveData done [10:05:01]OFDSenderStorePacket done [10:05:01]KKMCreateOFDPacket done [10:05:01]NVStorageSaveData kkm_last_timestamp [10:05:01]File name is /storage/kkm_last_timestamp [10:05:01]Write 4 bytes [10:05:01]NVStorageSaveData done [10:05:01]ExternCall_PrintAddStr [10:05:01]wPrintStart [10:05:01]Write to MH i2c: 01 00 00 23 3D 60 [10:05:01]Write i2c OK [10:05:01]MH_I2C_Read... [10:05:01]Read from MH i2c: 01 [10:05:01]MH_I2C_Read... [10:05:01]Read from MH i2c: 01 07 00 [10:05:01]MH_I2C_Read... [10:05:01]Read from MH i2c: 01 07 00 23 3D 00 00 00 00 00 FF 0F 75 [10:05:01]RasterBufferAndPrint [10:05:01]line Счет N : (1)209693 [10:05:01]line ИНН: 02508201610067 [10:05:01]line Контрольно-Кассовый Чек [10:05:01]line ПРОДАЖА [10:05:01]line ТРК (МРК, ГНК) : 32 [10:05:01]line Товар: 2710124130 [10:05:01]line Аи-92-К-3 [10:05:01]line 25.040 * 65.90 [10:05:01]line = 1650.14 [10:05:01]line НДС 12% НСП 1% [10:05:01]line > о реализуемом товаре [10:05:01]line ОКРУГЛЕНИЕ: -0.14 [10:05:01]line ИТОГО: 1650.00 [10:05:01]line Внесено: 1650.00 [10:05:01]line СДАЧА: 0.00 [10:05:01]line НСП 1% : 14.60 [10:05:01]line НДС 12% : 175.24 [10:05:01]line Наличными: 1650.00 [10:05:01]line Безнал.: 0.00 [10:05:01]line Место: АЗС № 86 "Партнер Нефть" [10:05:01]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [10:05:01]line СНО: Общий режим [10:05:01]line Чек 105 21.10.2024 10:05 [10:05:01]line Смена: 460 ФФД: 1.0 [10:05:01]line ЗНМ: 0300000155 [10:05:01]line РНМ: 0000000000100030 [10:05:01]line Версия ККМ: 001 [10:05:01]line [10:05:01]line Дисконтная программа [10:05:01]line АИ-92 [10:05:01]line номер 86 [10:05:01]line сэкономлено 25.04 сом [10:05:01]line ФМ: 0000000000965340 [10:05:01]line ФД: 187641 [10:05:01]line ФПД: 185180679452333 [10:05:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T100503&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187641&fm=185180679452333&tin=02508201610067®Number=0000000000100030&sum=165000 [10:05:01]written 0, free lines is 4095 [10:05:01]OFD Sender: Processing packet 187641 [packets to send 1062, broken 1061] [10:05:01]ProducePacketName [10:05:01]name=ofd_packets/00187641 [10:05:01]OFD Sender: To server: pG, [10:05:01]CommunicateWithHost lk.salyk.kg:30040 [10:05:01]ConnectInit lk.salyk.kg [10:05:02]Connected sock=10 [10:05:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 02 3A 07 01 03 95 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 D0 61 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 96 84 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 84 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B4 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 74 44 00 00 00 00 07 04 06 00 88 84 02 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 4F 27 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 F9 DC 02 00 35 04 06 00 A8 6B BC 9E 36 AD 0E 66 87 D5 88 C4 FE 7A [10:05:02]Write to MH i2c: 01 00 00 53 3D 90 [10:05:02]Write i2c OK [10:05:02]MH_I2C_Read... [10:05:02]Read from MH i2c: 01 [10:05:02]MH_I2C_Read... [10:05:02]Read from MH i2c: 01 07 00 [10:05:02]MH_I2C_Read... [10:05:02]Read from MH i2c: 01 07 00 53 3D 00 00 00 00 00 07 0C AA [10:05:02]RasterBufferAndPrint [10:05:02]line [10:05:02]line [10:05:02]line [10:05:02]line [10:05:02]line [10:05:02]written 0, free lines is 3085 [10:05:02]MH_Cut [10:05:02]Write to MH i2c: D1 01 00 5A 3D 01 69 [10:05:02]Write i2c OK [10:05:02]MH_I2C_Read... [10:05:02]Read from MH i2c: D1 [10:05:02]MH_I2C_Read... [10:05:02]Read from MH i2c: D1 01 00 [10:05:02]MH_I2C_Read... [10:05:02]Read from MH i2c: D1 01 00 5A 3D 00 68 [10:05:02]Write to MH i2c: 01 00 00 5B 3D 98 [10:05:02]Write i2c OK [10:05:02]MH_I2C_Read... [10:05:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 6E 74 47 00 10 29 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 F9 DC 02 00 F4 03 04 00 3F D1 15 67 B6 04 01 00 00 56 F7 5C DC BC 07 55 A8 [10:05:02]CommunicateWithHost err = 0 [10:05:02]CheckOFDResponse [10:05:02]1017 (14) - 77093643461234 [10:05:02]1041 (16) - 0000000000965340 [10:05:02]1040 (4) - 187641 [10:05:02]1012 (4) - 21.10.2024 03:57 [10:05:02]1206 (1) - 0 [10:05:02]OFD Sender: Remove packet 187641 [10:05:02]ProducePacketName [10:05:02]name=ofd_packets/00187641 [10:05:02]NVStorageDeleteData [10:05:02]OFD Sender: No OFD packet to send [10:05:03]*** Cut start [10:05:03]*** Partial cut [10:05:03]*** CUTSNS_PIN = 1 [10:05:03]*** CUTSNS_PIN = 0 [10:05:03]*** Brake cut motor [10:05:04]Read from MH i2c: 01 [10:05:04]MH_I2C_Read... [10:05:04]*** Stop cut motor [10:05:04]*** Cut end [10:05:04]Read from MH i2c: 01 07 00 [10:05:04]MH_I2C_Read... [10:05:04]Read from MH i2c: 01 07 00 5B 3D 00 00 00 00 00 FF 0F AD [10:05:04]process_action close_receipt done [10:05:04]requested_data is exist [10:05:04]produce_requested_data [10:05:04]requested_item fm.sn is exist - process it [10:05:04]wFMCommunicate request_size=4 [10:05:04]MH_SAM_APDU [10:05:04]CAPDU: 80 11 00 00 [10:05:04]Write to MH i2c: E2 08 00 5C 3D 80 11 00 00 00 00 00 00 13 [10:05:04]Write i2c OK [10:05:04]MH_I2C_Read... [10:05:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:05:04]Read from MH i2c: E2 [10:05:04]MH_I2C_Read... [10:05:04]Read from MH i2c: E2 17 00 [10:05:04]MH_I2C_Read... [10:05:04]Read from MH i2c: E2 17 00 5C 3D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 61 [10:05:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [10:05:04]wFMCommunicate OK [10:05:04]requested_item fd.num is exist - process it [10:05:04]SAM_PROTO_GetFieldsCounters [10:05:04]wFMCommunicate request_size=4 [10:05:04]MH_SAM_APDU [10:05:04]CAPDU: 80 13 00 00 [10:05:04]Write to MH i2c: E2 08 00 5D 3D 80 13 00 00 00 00 00 00 16 [10:05:04]Write i2c OK [10:05:04]MH_I2C_Read... [10:05:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:05:04]Read from MH i2c: E2 [10:05:04]MH_I2C_Read... [10:05:04]Read from MH i2c: E2 62 00 [10:05:04]MH_I2C_Read... [10:05:04]Read from MH i2c: E2 62 00 5D 3D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 F9 DC 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 69 00 00 00 5E 04 04 00 69 00 00 00 57 04 04 00 6A 00 00 00 19 04 04 00 00 00 00 00 90 00 FC [10:05:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 F9 DC 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 69 00 00 00 5E 04 04 00 69 00 00 00 57 04 04 00 6A 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:05:04]wFMCommunicate OK [10:05:04]SAM_PROTO_GetFieldsCounters done [10:05:04]requested_item shift.num is exist - process it [10:05:04]requested_item shift.opened is exist - process it [10:05:04]req_shift_opened [10:05:04]FM_GetShiftState [10:05:04]SAM_PROTO_GetShiftState [10:05:04]wFMCommunicate request_size=4 [10:05:04]MH_SAM_APDU [10:05:04]CAPDU: 80 13 01 00 [10:05:04]Write to MH i2c: E2 08 00 5E 3D 80 13 01 00 00 00 00 00 18 [10:05:04]Write i2c OK [10:05:04]MH_I2C_Read... [10:05:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:05:04]Read from MH i2c: E2 [10:05:04]MH_I2C_Read... [10:05:04]Read from MH i2c: E2 0E 00 [10:05:04]MH_I2C_Read... [10:05:04]Read from MH i2c: E2 0E 00 5E 3D 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 77 [10:05:04]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [10:05:04]wFMCommunicate OK [10:05:04]SAM_PROTO_GetShiftState done [10:05:04]FM_GetShiftState done [10:05:04]req_shift_opened done [10:05:04]requested_item shift.open_date is exist - process it [10:05:04]req_shift_open_date [10:05:04]req_shift_open_date done [10:05:04]produce_requested_data done [10:05:04]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187641,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [10:05:04]process_action_free close_receipt [10:05:04]json_value_free [10:05:04]json_value_free done [10:05:04]process_json_proto returns [10:05:04]Send response to host [10:05:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187641,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [10:05:04]free response buf [10:05:04]execute_script done [10:05:04]execute_script returns [10:05:04]free content buf [10:05:04]Sock 8.Close socket [10:05:04]Sock 8.Thread stoped [10:05:07]OFD Sender: No OFD packet to send [10:05:13]OFD Sender: No OFD packet to send [10:05:18]OFD Sender: No OFD packet to send [10:05:23]OFD Sender: No OFD packet to send [10:05:28]OFD Sender: No OFD packet to send [10:05:33]OFD Sender: No OFD packet to send [10:05:38]OFD Sender: No OFD packet to send [10:05:43]OFD Sender: No OFD packet to send [10:05:48]OFD Sender: No OFD packet to send [10:05:53]OFD Sender: No OFD packet to send [10:05:58]OFD Sender: No OFD packet to send [10:06:03]OFD Sender: No OFD packet to send [10:06:08]OFD Sender: No OFD packet to send [10:06:13]OFD Sender: No OFD packet to send [10:06:18]OFD Sender: No OFD packet to send [10:06:23]OFD Sender: No OFD packet to send [10:06:28]OFD Sender: No OFD packet to send [10:06:33]OFD Sender: No OFD packet to send [10:06:38]OFD Sender: No OFD packet to send [10:06:43]OFD Sender: No OFD packet to send [10:06:48]OFD Sender: No OFD packet to send [10:06:53]OFD Sender: No OFD packet to send [10:06:58]OFD Sender: No OFD packet to send [10: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:33]OFD Sender: No OFD packet to send [10:07:38]OFD Sender: No OFD packet to send [10:07:43]OFD Sender: No OFD packet to send [10:07:48]OFD Sender: No OFD packet to send [10:07:53]OFD Sender: No OFD packet to send [10:07:58]OFD Sender: No OFD packet to send [10:08:03]OFD Sender: No OFD packet to send [10:08:08]OFD Sender: No OFD packet to send [10:08:13]OFD Sender: No OFD packet to send [10:08:18]OFD Sender: No OFD packet to send [10:08:19]accept exits with 9 [10:08:19]New connection [10:08:19]New thread 3067157860 created [10:08:19]Thread 3067014500 joined [10:08:19]Waiting for new connection... [10:08:19] Sock 9.Parse request [10:08:19]Sock 9.Check first char [10:08:19]Sock 9.First char is OK [10:08:19]request: POST /json_proto HTTP/1.0 [10:08:19]Method: POST [10:08:19]URL: /json_proto [10:08:19]Method is POST - this is cgi request [10:08:19]url: /json_proto [10:08:19]query_string will be loaded in cgi processing [10:08:19]execute_cgi json_proto POST (null) [10:08:19]execute_cgi path=json_proto method=POST [10:08:19]POST find Content-Length [10:08:19]Host: 172.17.42.131:8080 [10:08:19]Content-Length: 679 [10:08:19]Content-Type: application/json [10:08:19] [10:08:19]POST finish read [10:08:19]Found Content-Length = 679 [10:08:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209695", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 39.380, "sum" : 3000.76, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:08:19]execute_script... [10: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)209695", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 39.380, "sum" : 3000.76, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:08:19]POST & json_proto [10:08:19]process_json_proto [10:08:19]json parsed OK: [10:08:19]protocol is kg_v1.0 [10:08:19]action value=close_receipt [10:08:19]process_action close_receipt [10:08:19]cmd_close_receipt [10:08:19]MH_GetDate [10:08:19]Write to MH i2c: F0 00 00 5F 3D 8B [10:08:19]Write i2c OK [10:08:19]MH_I2C_Read... [10:08:19]Read from MH i2c: F0 [10:08:19]MH_I2C_Read... [10:08:19]Read from MH i2c: F0 09 00 [10:08:19]MH_I2C_Read... [10:08:19]Read from MH i2c: F0 09 00 5F 3D 00 16 28 16 67 A0 18 CA 66 37 [10:08:19]GetLastDocTimeStamp 1729505103 [10:08:19]current date 1729505302 [10:08:19]FM_GetShiftState [10:08:19]SAM_PROTO_GetShiftState [10:08:19]wFMCommunicate request_size=4 [10:08:19]MH_SAM_APDU [10:08:19]CAPDU: 80 13 01 00 [10:08:19]Write to MH i2c: E2 08 00 60 3D 80 13 01 00 00 00 00 00 1A [10:08:19]Write i2c OK [10:08:19]MH_I2C_Read... [10:08:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:08:19]Read from MH i2c: E2 [10:08:19]MH_I2C_Read... [10:08:19]Read from MH i2c: E2 0E 00 [10:08:19]MH_I2C_Read... [10:08:19]Read from MH i2c: E2 0E 00 60 3D 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 79 [10:08:19]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [10:08:19]wFMCommunicate OK [10:08:19]SAM_PROTO_GetShiftState done [10:08:19]FM_GetShiftState done [10:08:19]opened in 1729469754 [10:08:19]opened+sec_in_day 1729556154 [10:08:19]quantity*price = 300075 [10:08:19]sum+1 = 300077 [10:08:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.76 ИТОГО: 3000.00 Внесено: 3000.00 СДАЧА: 0.00 НСП 1% : 26.55 НДС 12% : 318.66 Наличными: 3000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 106 21.10.2024 10:08 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 187642 ФПД: 16153694857150 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T100822&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187642&fm=16153694857150&tin=02508201610067®Number=0000000000100030&sum=300000 [10:08:20]StoreToDocumentArchive [10:08:20]shift 460 fd 187642 [10:08:20]save to /storage/0460/doc_00187642 [10:08:20]save last doc name /storage/0460/doc_00187642 to /storage/kkm_last_doc_name [10:08:20]save OK [10:08:20]Clear old archive folders... [10:08:20]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:08:20]tlvbuf is 010EAB90 [10:08:20]SAM_PROTO_ClearQueue [10:08:20]wFMCommunicate request_size=4 [10:08:20]MH_SAM_APDU [10:08:20]CAPDU: 80 09 00 00 [10:08:20]Write to MH i2c: E2 08 00 6D 3D 80 09 00 00 00 00 00 00 1C [10:08:20]Write i2c OK [10:08:20]MH_I2C_Read... [10:08:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:08:20]Read from MH i2c: E2 [10:08:20]MH_I2C_Read... [10:08:20]Read from MH i2c: E2 03 00 [10:08:20]MH_I2C_Read... [10:08:20]Read from MH i2c: E2 03 00 6D 3D 00 90 00 1E [10:08:20]RAPDU: 90 00 [10:08:20]wFMCommunicate OK [10:08:20]SAM_PROTO_ClearQueue done [10:08:20]KKMCreateOFDPacket [10:08:20]OFDProtocolAddRootSTLVToBuf [10:08:20]FM_MakeSignedData [10:08:20]FM_MakeSignedData [10:08:20]SAM_PROTO_SignData [10:08:20]wFMCommunicate request_size=4 [10:08:20]MH_SAM_APDU [10:08:20]CAPDU: 80 0D 01 02 [10:08:20]Write to MH i2c: E2 08 00 6E 3D 80 0D 01 02 00 00 00 00 24 [10:08:20]Write i2c OK [10:08:20]MH_I2C_Read... [10:08:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:08:20]Read from MH i2c: E2 [10:08:20]MH_I2C_Read... [10:08:20]Read from MH i2c: E2 03 00 [10:08:20]MH_I2C_Read... [10:08:20]Read from MH i2c: E2 03 00 6E 3D 00 90 00 1F [10:08:20]RAPDU: 90 00 [10:08:20]wFMCommunicate OK [10:08:20]wFMCommunicate request_size=255 [10:08:20]MH_SAM_APDU [10:08:20]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 00 00 00 F4 03 04 00 16 28 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 FA DC 02 00 35 04 06 00 0E B1 13 3E [10:08:20]Write to MH i2c: E2 02 01 6F 3D 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 00 00 00 F4 03 04 00 16 28 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 FA DC 02 00 35 04 06 00 0E B1 13 3E 00 00 A0 [10:08:20]Write i2c OK [10:08:20]MH_I2C_Read... [10:08:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:08:20]Read from MH i2c: E2 [10:08:20]MH_I2C_Read... [10:08:20]Read from MH i2c: E2 03 00 [10:08:20]MH_I2C_Read... [10:08:20]Read from MH i2c: E2 03 00 6F 3D 00 90 00 20 [10:08:20]RAPDU: 90 00 [10:08:20]wFMCommunicate OK [10:08:20]wFMCommunicate request_size=7 [10:08:20]MH_SAM_APDU [10:08:20]CAPDU: 80 0D 02 02 02 67 BE [10:08:20]Write to MH i2c: E2 0A 00 70 3D 80 0D 02 02 02 00 67 BE 00 00 50 [10:08:20]Write i2c OK [10:08:20]MH_I2C_Read... [10:08:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:08:20]Read from MH i2c: E2 [10:08:20]MH_I2C_Read... [10:08:20]Read from MH i2c: E2 03 00 [10:08:20]MH_I2C_Read... [10:08:20]Read from MH i2c: E2 03 00 70 3D 00 90 00 21 [10:08:20]RAPDU: 90 00 [10:08:20]wFMCommunicate OK [10:08:20]wFMCommunicate request_size=4 [10:08:20]MH_SAM_APDU [10:08:20]CAPDU: 80 0D 03 02 [10:08:20]Write to MH i2c: E2 08 00 71 3D 80 0D 03 02 00 00 00 00 29 [10:08:20]Write i2c OK [10:08:20]MH_I2C_Read... [10:08:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:08:20]Read from MH i2c: E2 [10:08:20]MH_I2C_Read... [10:08:20]Read from MH i2c: E2 0B 00 [10:08:20]MH_I2C_Read... [10:08:20]Read from MH i2c: E2 0B 00 71 3D 00 9A 7D DC 89 7C F7 71 46 90 00 D0 [10:08:20]RAPDU: 9A 7D DC 89 7C F7 71 46 90 00 [10:08:20]wFMCommunicate OK [10:08:20]SAM_PROTO_SignData done [10:08:20]FM_MakeSignedData done [10:08:20]CreateOFDProtocolMessage [10:08:20]wFMCommunicate request_size=4 [10:08:20]MH_SAM_APDU [10:08:20]CAPDU: 80 11 00 00 [10:08:20]Write to MH i2c: E2 08 00 72 3D 80 11 00 00 00 00 00 00 29 [10:08:20]Write i2c OK [10:08:20]MH_I2C_Read... [10:08:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:08:20]Read from MH i2c: E2 [10:08:20]MH_I2C_Read... [10:08:20]Read from MH i2c: E2 17 00 [10:08:20]MH_I2C_Read... [10:08:20]Read from MH i2c: E2 17 00 72 3D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 77 [10:08:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [10:08:20]wFMCommunicate OK [10:08:20]CreateOFDProtocolMessage done [10:08:20]OFDSenderStorePacket 187642 [10:08:20]StoreOFDPacket docnum=187642 [10:08:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 FF E6 04 01 72 83 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 00 00 00 F4 03 04 00 16 28 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 FA DC 02 00 35 04 06 00 0E B1 13 3E 67 BE 9A 7D DC 89 7C F7 71 46 [10:08:20]CheckFolder [10:08:20]dirname=/storage/ofd_packets [10:08:20]CheckFolder done [10:08:20]ProducePacketName [10:08:20]name=ofd_packets/00187642 [10:08:20]NVStorageSaveData ofd_packets/00187642 [10:08:20]File name is /storage/ofd_packets/00187642 [10:08:20]Write 298 bytes [10:08:20]NVStorageSaveData done [10:08:20]OFDSenderStorePacket done [10:08:20]KKMCreateOFDPacket done [10:08:20]NVStorageSaveData kkm_last_timestamp [10:08:20]File name is /storage/kkm_last_timestamp [10:08:20]Write 4 bytes [10:08:20]NVStorageSaveData done [10:08:20]ExternCall_PrintAddStr [10:08:20]wPrintStart [10:08:20]Write to MH i2c: 01 00 00 73 3D B0 [10:08:20]Write i2c OK [10:08:20]MH_I2C_Read... [10:08:20]Read from MH i2c: 01 [10:08:20]MH_I2C_Read... [10:08:20]Read from MH i2c: 01 07 00 [10:08:20]MH_I2C_Read... [10:08:20]Read from MH i2c: 01 07 00 73 3D 00 00 00 00 00 FF 0F C5 [10:08:20]RasterBufferAndPrint [10:08:20]line Счет N : (1)209695 [10:08:20]line ИНН: 02508201610067 [10:08:20]line Контрольно-Кассовый Чек [10:08:20]line ПРОДАЖА [10:08:20]line ТРК (МРК, ГНК) : 51 [10:08:20]line Товар: 2710194210 [10:08:20]line ДТ-К-5 [10:08:20]line 39.380 * 76.20 [10:08:20]line = 3000.76 [10:08:20]line НДС 12% НСП 1% [10:08:20]line > о реализуемом товаре [10:08:20]line ОКРУГЛЕНИЕ: -0.76 [10:08:20]line ИТОГО: 3000.00 [10:08:20]line Внесено: 3000.00 [10:08:20]line СДАЧА: 0.00 [10:08:20]line НСП 1% : 26.55 [10:08:20]line НДС 12% : 318.66 [10:08:20]line Наличными: 3000.00 [10:08:20]line Безнал.: 0.00 [10:08:20]line Место: АЗС № 86 "Партнер Нефть" [10:08:20]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [10:08:20]line СНО: Общий режим [10:08:20]line Чек 106 21.10.2024 10:08 [10:08:20]line Смена: 460 ФФД: 1.0 [10:08:20]line ЗНМ: 0300000155 [10:08:20]line РНМ: 0000000000100030 [10:08:20]line Версия ККМ: 001 [10:08:20]line ФМ: 0000000000965340 [10:08:20]line ФД: 187642 [10:08:20]line ФПД: 16153694857150 [10:08:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T100822&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187642&fm=16153694857150&tin=02508201610067®Number=0000000000100030&sum=300000 [10:08:20]written 0, free lines is 4095 [10:08:20]OFD Sender: Processing packet 187642 [packets to send 1062, broken 1061] [10:08:20]ProducePacketName [10:08:20]name=ofd_packets/00187642 [10:08:20]OFD Sender: To server: pG, [10:08:20]CommunicateWithHost lk.salyk.kg:30040 [10:08:20]ConnectInit lk.salyk.kg [10:08:21]Connected sock=10 [10:08:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 FF E6 04 01 72 83 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 00 00 00 F4 03 04 00 16 28 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 FA DC 02 00 35 04 06 00 0E B1 13 3E 67 BE 9A 7D DC 89 7C F7 71 46 [10:08:21]Write to MH i2c: 01 00 00 9E 3D DB [10:08:21]Write i2c OK [10:08:21]MH_I2C_Read... [10:08:21]Read from MH i2c: 01 [10:08:21]MH_I2C_Read... [10:08:21]Read from MH i2c: 01 07 00 [10:08:21]MH_I2C_Read... [10:08:21]Read from MH i2c: 01 07 00 9E 3D 00 00 00 00 00 76 0C 64 [10:08:21]RasterBufferAndPrint [10:08:21]line [10:08:21]line [10:08:21]line [10:08:21]line [10:08:21]line [10:08:21]written 0, free lines is 3193 [10:08:21]MH_Cut [10:08:21]Write to MH i2c: D1 01 00 A5 3D 01 B4 [10:08:21]Write i2c OK [10:08:21]MH_I2C_Read... [10:08:21]Read from MH i2c: D1 [10:08:21]MH_I2C_Read... [10:08:21]Read from MH i2c: D1 01 00 [10:08:21]MH_I2C_Read... [10:08:21]Read from MH i2c: D1 01 00 A5 3D 00 B3 [10:08:21]Write to MH i2c: 01 00 00 A6 3D E3 [10:08:21]Write i2c OK [10:08:21]MH_I2C_Read... [10:08:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 9B ED 47 00 DA 1A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 FA DC 02 00 F4 03 04 00 06 D2 15 67 B6 04 01 00 00 1A 7F 46 57 44 14 A2 18 [10:08:21]CommunicateWithHost err = 0 [10:08:21]CheckOFDResponse [10:08:21]1017 (14) - 77093643461234 [10:08:21]1041 (16) - 0000000000965340 [10:08:21]1040 (4) - 187642 [10:08:21]1012 (4) - 21.10.2024 04:01 [10:08:21]1206 (1) - 0 [10:08:21]OFD Sender: Remove packet 187642 [10:08:21]ProducePacketName [10:08:21]name=ofd_packets/00187642 [10:08:21]NVStorageDeleteData [10:08:21]OFD Sender: No OFD packet to send [10:08:22]*** Cut start [10:08:22]*** Partial cut [10:08:22]*** CUTSNS_PIN = 1 [10:08:22]*** CUTSNS_PIN = 0 [10:08:22]*** Brake cut motor [10:08:23]Read from MH i2c: 01 [10:08:23]MH_I2C_Read... [10:08:23]*** Stop cut motor [10:08:23]*** Cut end [10:08:23]Read from MH i2c: 01 07 00 [10:08:23]MH_I2C_Read... [10:08:23]Read from MH i2c: 01 07 00 A6 3D 00 00 00 00 00 FF 0F F8 [10:08:23]process_action close_receipt done [10:08:23]requested_data is exist [10:08:23]produce_requested_data [10:08:23]requested_item fm.sn is exist - process it [10:08:23]wFMCommunicate request_size=4 [10:08:23]MH_SAM_APDU [10:08:23]CAPDU: 80 11 00 00 [10:08:23]Write to MH i2c: E2 08 00 A7 3D 80 11 00 00 00 00 00 00 5E [10:08:23]Write i2c OK [10:08:23]MH_I2C_Read... [10:08:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:08:23]Read from MH i2c: E2 [10:08:23]MH_I2C_Read... [10:08:23]Read from MH i2c: E2 17 00 [10:08:23]MH_I2C_Read... [10:08:23]Read from MH i2c: E2 17 00 A7 3D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 AC [10:08:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [10:08:23]wFMCommunicate OK [10:08:23]requested_item fd.num is exist - process it [10:08:23]SAM_PROTO_GetFieldsCounters [10:08:23]wFMCommunicate request_size=4 [10:08:23]MH_SAM_APDU [10:08:23]CAPDU: 80 13 00 00 [10:08:23]Write to MH i2c: E2 08 00 A8 3D 80 13 00 00 00 00 00 00 61 [10:08:23]Write i2c OK [10:08:23]MH_I2C_Read... [10:08:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:08:23]Read from MH i2c: E2 [10:08:23]MH_I2C_Read... [10:08:23]Read from MH i2c: E2 62 00 [10:08:23]MH_I2C_Read... [10:08:23]Read from MH i2c: E2 62 00 A8 3D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 FA DC 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 6A 00 00 00 5E 04 04 00 6A 00 00 00 57 04 04 00 6B 00 00 00 19 04 04 00 00 00 00 00 90 00 4B [10:08:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 FA DC 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 6A 00 00 00 5E 04 04 00 6A 00 00 00 57 04 04 00 6B 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:08:23]wFMCommunicate OK [10:08:23]SAM_PROTO_GetFieldsCounters done [10:08:23]requested_item shift.num is exist - process it [10:08:23]requested_item shift.opened is exist - process it [10:08:23]req_shift_opened [10:08:23]FM_GetShiftState [10:08:23]SAM_PROTO_GetShiftState [10:08:23]wFMCommunicate request_size=4 [10:08:23]MH_SAM_APDU [10:08:23]CAPDU: 80 13 01 00 [10:08:23]Write to MH i2c: E2 08 00 A9 3D 80 13 01 00 00 00 00 00 63 [10:08:23]Write i2c OK [10:08:23]MH_I2C_Read... [10:08:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:08:23]Read from MH i2c: E2 [10:08:23]MH_I2C_Read... [10:08:23]Read from MH i2c: E2 0E 00 [10:08:23]MH_I2C_Read... [10:08:23]Read from MH i2c: E2 0E 00 A9 3D 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 C2 [10:08:23]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [10:08:23]wFMCommunicate OK [10:08:23]SAM_PROTO_GetShiftState done [10:08:23]FM_GetShiftState done [10:08:23]req_shift_opened done [10:08:23]requested_item shift.open_date is exist - process it [10:08:23]req_shift_open_date [10:08:23]req_shift_open_date done [10:08:23]produce_requested_data done [10:08:23]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187642,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [10:08:23]process_action_free close_receipt [10:08:23]json_value_free [10:08:23]json_value_free done [10:08:23]process_json_proto returns [10:08:23]Send response to host [10:08:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187642,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [10:08:23]free response buf [10:08:23]execute_script done [10:08:23]execute_script returns [10:08:23]free content buf [10:08:23]Sock 9.Close socket [10:08:23]Sock 9.Thread stoped [10:08:26]OFD Sender: No OFD packet to send [10:08:32]OFD Sender: No OFD packet to send [10:08:37]OFD Sender: No OFD packet to send [10:08:42]OFD Sender: No OFD packet to send [10:08:47]OFD Sender: No OFD packet to send [10:08:52]OFD Sender: No OFD packet to send [10:08:57]OFD Sender: No OFD packet to send [10:09:02]OFD Sender: No OFD packet to send [10:09:07]OFD Sender: No OFD packet to send [10:09:12]OFD Sender: No OFD packet to send [10:09:16]accept exits with 8 [10:09:16]New connection [10:09:16]New thread 3067014500 created [10:09:16]Thread 3067157860 joined [10:09:16]Waiting for new connection... [10:09:16] Sock 8.Parse request [10:09:16]Sock 8.Check first char [10:09:16]Sock 8.First char is OK [10:09:16]request: POST /json_proto HTTP/1.0 [10:09:16]Method: POST [10:09:16]URL: /json_proto [10:09:16]Method is POST - this is cgi request [10:09:16]url: /json_proto [10:09:16]query_string will be loaded in cgi processing [10:09:16]execute_cgi json_proto POST (null) [10:09:16]execute_cgi path=json_proto method=POST [10:09:16]POST find Content-Length [10:09:16]Host: 172.17.42.131:8080 [10:09:16]Content-Length: 803 [10:09:16]Content-Type: application/json [10:09:16] [10:09:16]POST finish read [10:09:16]Found Content-Length = 803 [10:09:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209696", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 0.00, "quantity" : 40.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3949301.02", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:09:16]execute_script... [10:09: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)209696", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 0.00, "quantity" : 40.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3949301.02", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:09:16]POST & json_proto [10:09:16]process_json_proto [10:09:16]json parsed OK: [10:09:16]protocol is kg_v1.0 [10:09:16]action value=close_receipt [10:09:16]process_action close_receipt [10:09:16]cmd_close_receipt [10:09:16]MH_GetDate [10:09:16]Write to MH i2c: F0 00 00 AA 3D D6 [10:09:16]Write i2c OK [10:09:16]MH_I2C_Read... [10:09:16]Read from MH i2c: F0 [10:09:16]MH_I2C_Read... [10:09:16]Read from MH i2c: F0 09 00 [10:09:16]MH_I2C_Read... [10:09:16]Read from MH i2c: F0 09 00 AA 3D 00 50 28 16 67 A0 18 CA 66 BC [10:09:16]GetLastDocTimeStamp 1729505302 [10:09:16]current date 1729505360 [10:09:16]FM_GetShiftState [10:09:16]SAM_PROTO_GetShiftState [10:09:16]wFMCommunicate request_size=4 [10:09:16]MH_SAM_APDU [10:09:16]CAPDU: 80 13 01 00 [10:09:16]Write to MH i2c: E2 08 00 AB 3D 80 13 01 00 00 00 00 00 65 [10:09:16]Write i2c OK [10:09:16]MH_I2C_Read... [10:09:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:09:16]Read from MH i2c: E2 [10:09:16]MH_I2C_Read... [10:09:16]Read from MH i2c: E2 0E 00 [10:09:16]MH_I2C_Read... [10:09:16]Read from MH i2c: E2 0E 00 AB 3D 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 C4 [10:09:16]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [10:09:16]wFMCommunicate OK [10:09:16]SAM_PROTO_GetShiftState done [10:09:16]FM_GetShiftState done [10:09:16]opened in 1729469754 [10:09:16]opened+sec_in_day 1729556154 [10:09:16]quantity*price = 0 [10:09:16]sum+1 = 1 [10:09:16]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 107 21.10.2024 10:09 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Талоны: Топливные Талоны 3949301.02 ФМ: 0000000000965340 ФД: 187643 ФПД: 509820575707 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T100920&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187643&fm=509820575707&tin=02508201610067®Number=0000000000100030&sum=0 [10:09:17]StoreToDocumentArchive [10:09:17]shift 460 fd 187643 [10:09:17]save to /storage/0460/doc_00187643 [10:09:17]save last doc name /storage/0460/doc_00187643 to /storage/kkm_last_doc_name [10:09:17]save OK [10:09:17]Clear old archive folders... [10:09:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:09:17]tlvbuf is 01094050 [10:09:17]SAM_PROTO_ClearQueue [10:09:17]wFMCommunicate request_size=4 [10:09:17]MH_SAM_APDU [10:09:17]CAPDU: 80 09 00 00 [10:09:17]Write to MH i2c: E2 08 00 B8 3D 80 09 00 00 00 00 00 00 67 [10:09:17]Write i2c OK [10:09:17]MH_I2C_Read... [10:09:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:09:17]Read from MH i2c: E2 [10:09:17]MH_I2C_Read... [10:09:17]Read from MH i2c: E2 03 00 [10:09:17]MH_I2C_Read... [10:09:17]Read from MH i2c: E2 03 00 B8 3D 00 90 00 69 [10:09:17]RAPDU: 90 00 [10:09:17]wFMCommunicate OK [10:09:17]SAM_PROTO_ClearQueue done [10:09:17]KKMCreateOFDPacket [10:09:17]OFDProtocolAddRootSTLVToBuf [10:09:17]FM_MakeSignedData [10:09:17]FM_MakeSignedData [10:09:17]SAM_PROTO_SignData [10:09:17]wFMCommunicate request_size=4 [10:09:17]MH_SAM_APDU [10:09:17]CAPDU: 80 0D 01 02 [10:09:17]Write to MH i2c: E2 08 00 B9 3D 80 0D 01 02 00 00 00 00 6F [10:09:17]Write i2c OK [10:09:17]MH_I2C_Read... [10:09:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:09:17]Read from MH i2c: E2 [10:09:17]MH_I2C_Read... [10:09:17]Read from MH i2c: E2 03 00 [10:09:17]MH_I2C_Read... [10:09:17]Read from MH i2c: E2 03 00 B9 3D 00 90 00 6A [10:09:17]RAPDU: 90 00 [10:09:17]wFMCommunicate OK [10:09:17]wFMCommunicate request_size=255 [10:09:17]MH_SAM_APDU [10:09: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 33 FF 03 08 00 03 40 9C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 00 00 00 F4 03 04 00 50 28 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 FB DC 02 00 35 04 06 00 00 [10:09:17]Write to MH i2c: E2 02 01 BA 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 33 FF 03 08 00 03 40 9C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 00 00 00 F4 03 04 00 50 28 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 FB DC 02 00 35 04 06 00 00 00 00 3F [10:09:17]Write i2c OK [10:09:17]MH_I2C_Read... [10:09:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:09:18]Read from MH i2c: E2 [10:09:18]MH_I2C_Read... [10:09:18]Read from MH i2c: E2 03 00 [10:09:18]MH_I2C_Read... [10:09:18]Read from MH i2c: E2 03 00 BA 3D 00 90 00 6B [10:09:18]RAPDU: 90 00 [10:09:18]wFMCommunicate OK [10:09:18]wFMCommunicate request_size=10 [10:09:18]MH_SAM_APDU [10:09:18]CAPDU: 80 0D 02 02 05 76 B3 AC 9F DB [10:09:18]Write to MH i2c: E2 0D 00 BB 3D 80 0D 02 02 05 00 76 B3 AC 9F DB 00 00 CB [10:09:18]Write i2c OK [10:09:18]MH_I2C_Read... [10:09:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:09:18]Read from MH i2c: E2 [10:09:18]MH_I2C_Read... [10:09:18]Read from MH i2c: E2 03 00 [10:09:18]MH_I2C_Read... [10:09:18]Read from MH i2c: E2 03 00 BB 3D 00 90 00 6C [10:09:18]RAPDU: 90 00 [10:09:18]wFMCommunicate OK [10:09:18]wFMCommunicate request_size=4 [10:09:18]MH_SAM_APDU [10:09:18]CAPDU: 80 0D 03 02 [10:09:18]Write to MH i2c: E2 08 00 BC 3D 80 0D 03 02 00 00 00 00 74 [10:09:18]Write i2c OK [10:09:18]MH_I2C_Read... [10:09:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:09:18]Read from MH i2c: E2 [10:09:18]MH_I2C_Read... [10:09:18]Read from MH i2c: E2 0B 00 [10:09:18]MH_I2C_Read... [10:09:18]Read from MH i2c: E2 0B 00 BC 3D 00 1D BD 6A D9 EB 23 E5 F8 90 00 7D [10:09:18]RAPDU: 1D BD 6A D9 EB 23 E5 F8 90 00 [10:09:18]wFMCommunicate OK [10:09:18]SAM_PROTO_SignData done [10:09:18]FM_MakeSignedData done [10:09:18]CreateOFDProtocolMessage [10:09:18]wFMCommunicate request_size=4 [10:09:18]MH_SAM_APDU [10:09:18]CAPDU: 80 11 00 00 [10:09:18]Write to MH i2c: E2 08 00 BD 3D 80 11 00 00 00 00 00 00 74 [10:09:18]Write i2c OK [10:09:18]MH_I2C_Read... [10:09:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:09:18]Read from MH i2c: E2 [10:09:18]MH_I2C_Read... [10:09:18]Read from MH i2c: E2 17 00 [10:09:18]MH_I2C_Read... [10:09:18]Read from MH i2c: E2 17 00 BD 3D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 C2 [10:09:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [10:09:18]wFMCommunicate OK [10:09:18]CreateOFDProtocolMessage done [10:09:18]OFDSenderStorePacket 187643 [10:09:18]StoreOFDPacket docnum=187643 [10:09:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 20 72 07 01 A4 4A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 40 9C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 00 00 00 F4 03 04 00 50 28 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 FB DC 02 00 35 04 06 00 00 76 B3 AC 9F DB 1D BD 6A D9 EB 23 E5 F8 [10:09:18]CheckFolder [10:09:18]dirname=/storage/ofd_packets [10:09:18]CheckFolder done [10:09:18]ProducePacketName [10:09:18]name=ofd_packets/00187643 [10:09:18]NVStorageSaveData ofd_packets/00187643 [10:09:18]File name is /storage/ofd_packets/00187643 [10:09:18]Write 301 bytes [10:09:18]NVStorageSaveData done [10:09:18]OFDSenderStorePacket done [10:09:18]KKMCreateOFDPacket done [10:09:18]NVStorageSaveData kkm_last_timestamp [10:09:18]File name is /storage/kkm_last_timestamp [10:09:18]Write 4 bytes [10:09:18]NVStorageSaveData done [10:09:18]ExternCall_PrintAddStr [10:09:18]wPrintStart [10:09:18]Write to MH i2c: 01 00 00 BE 3D FB [10:09:18]Write i2c OK [10:09:18]MH_I2C_Read... [10:09:18]Read from MH i2c: 01 [10:09:18]MH_I2C_Read... [10:09:18]Read from MH i2c: 01 07 00 [10:09:18]MH_I2C_Read... [10:09:18]Read from MH i2c: 01 07 00 BE 3D 00 00 00 00 00 FF 0F 10 [10:09:18]RasterBufferAndPrint [10:09:18]line Счет N : (1)209696 [10:09:18]line ИНН: 02508201610067 [10:09:18]line Контрольно-Кассовый Чек [10:09:18]line ПРОДАЖА [10:09:18]line ТРК (МРК, ГНК) : 32 [10:09:18]line Товар: 2710124130 [10:09:18]line Аи-92-К-3 [10:09:18]line 40.000 * 0.00 [10:09:18]line = 0.00 [10:09:18]line НДС 12% НСП 1% [10:09:18]line > о реализуемом товаре [10:09:18]line ИТОГО: 0.00 [10:09:18]line НСП 1% : 0.00 [10:09:18]line НДС 12% : 0.00 [10:09:18]line Наличными: 0.00 [10:09:18]line Безнал.: 0.00 [10:09:18]line Место: АЗС № 86 "Партнер Нефть" [10:09:18]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [10:09:18]line СНО: Общий режим [10:09:18]line Чек 107 21.10.2024 10:09 [10:09:18]line Смена: 460 ФФД: 1.0 [10:09:18]line ЗНМ: 0300000155 [10:09:18]line РНМ: 0000000000100030 [10:09:18]line Версия ККМ: 001 [10:09:18]line Талоны: Топливные Талоны [10:09:18]line 3949301.02 [10:09:18]line ФМ: 0000000000965340 [10:09:18]line ФД: 187643 [10:09:18]line ФПД: 509820575707 [10:09:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T100920&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187643&fm=509820575707&tin=02508201610067®Number=0000000000100030&sum=0 [10:09:18]OFD Sender: Processing packet 187643 [packets to send 1062, broken 1061] [10:09:18]ProducePacketName [10:09:18]name=ofd_packets/00187643 [10:09:18]OFD Sender: To server: pG, [10:09:18]CommunicateWithHost lk.salyk.kg:30040 [10:09:18]ConnectInit lk.salyk.kg [10:09:18]written 0, free lines is 4095 [10:09:18]Connected sock=9 [10:09:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 20 72 07 01 A4 4A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 40 9C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 00 00 00 F4 03 04 00 50 28 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 FB DC 02 00 35 04 06 00 00 76 B3 AC 9F DB 1D BD 6A D9 EB 23 E5 F8 [10:09:18]Write to MH i2c: 01 00 00 E8 3D 25 [10:09:18]Write i2c OK [10:09:18]MH_I2C_Read... [10:09:18]Read from MH i2c: 01 [10:09:18]MH_I2C_Read... [10:09:18]Read from MH i2c: 01 07 00 [10:09:18]MH_I2C_Read... [10:09:18]Read from MH i2c: 01 07 00 E8 3D 00 00 00 00 00 92 0C CA [10:09:18]RasterBufferAndPrint [10:09:18]line [10:09:18]line [10:09:18]line [10:09:18]line [10:09:18]line [10:09:18]written 0, free lines is 3222 [10:09:18]MH_Cut [10:09:18]Write to MH i2c: D1 01 00 EF 3D 01 FE [10:09:18]Write i2c OK [10:09:18]MH_I2C_Read... [10:09:18]Read from MH i2c: D1 [10:09:18]MH_I2C_Read... [10:09:18]Read from MH i2c: D1 01 00 [10:09:18]MH_I2C_Read... [10:09:18]Read from MH i2c: D1 01 00 EF 3D 00 FD [10:09:18]Write to MH i2c: 01 00 00 F0 3D 2D [10:09:18]Write i2c OK [10:09:18]MH_I2C_Read... [10:09:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 AA 04 47 00 5E 6F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 FB DC 02 00 F4 03 04 00 3F D2 15 67 B6 04 01 00 00 1B 7B DF ED 9E B6 AE 46 [10:09:18]CommunicateWithHost err = 0 [10:09:18]CheckOFDResponse [10:09:18]1017 (14) - 77093643461234 [10:09:18]1041 (16) - 0000000000965340 [10:09:18]1040 (4) - 187643 [10:09:18]1012 (4) - 21.10.2024 04:02 [10:09:18]1206 (1) - 0 [10:09:18]OFD Sender: Remove packet 187643 [10:09:18]ProducePacketName [10:09:18]name=ofd_packets/00187643 [10:09:18]NVStorageDeleteData [10:09:19]OFD Sender: No OFD packet to send [10:09:19]*** Cut start [10:09:19]*** Partial cut [10:09:19]*** CUTSNS_PIN = 1 [10:09:19]*** CUTSNS_PIN = 0 [10:09:19]*** Brake cut motor [10:09:20]Read from MH i2c: 01 [10:09:20]MH_I2C_Read... [10:09:20]*** Stop cut motor [10:09:20]*** Cut end [10:09:20]Read from MH i2c: 01 07 00 [10:09:20]MH_I2C_Read... [10:09:20]Read from MH i2c: 01 07 00 F0 3D 00 00 00 00 00 FF 0F 42 [10:09:20]process_action close_receipt done [10:09:20]requested_data is exist [10:09:20]produce_requested_data [10:09:20]requested_item fm.sn is exist - process it [10:09:20]wFMCommunicate request_size=4 [10:09:20]MH_SAM_APDU [10:09:20]CAPDU: 80 11 00 00 [10:09:20]Write to MH i2c: E2 08 00 F1 3D 80 11 00 00 00 00 00 00 A8 [10:09:20]Write i2c OK [10:09:20]MH_I2C_Read... [10:09:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:09:20]Read from MH i2c: E2 [10:09:20]MH_I2C_Read... [10:09:20]Read from MH i2c: E2 17 00 [10:09:20]MH_I2C_Read... [10:09:20]Read from MH i2c: E2 17 00 F1 3D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 F6 [10:09:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [10:09:20]wFMCommunicate OK [10:09:20]requested_item fd.num is exist - process it [10:09:20]SAM_PROTO_GetFieldsCounters [10:09:20]wFMCommunicate request_size=4 [10:09:20]MH_SAM_APDU [10:09:20]CAPDU: 80 13 00 00 [10:09:20]Write to MH i2c: E2 08 00 F2 3D 80 13 00 00 00 00 00 00 AB [10:09:20]Write i2c OK [10:09:20]MH_I2C_Read... [10:09:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:09:20]Read from MH i2c: E2 [10:09:20]MH_I2C_Read... [10:09:20]Read from MH i2c: E2 62 00 [10:09:20]MH_I2C_Read... [10:09:20]Read from MH i2c: E2 62 00 F2 3D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 FB DC 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 6B 00 00 00 5E 04 04 00 6B 00 00 00 57 04 04 00 6C 00 00 00 19 04 04 00 00 00 00 00 90 00 99 [10:09:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 FB DC 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 6B 00 00 00 5E 04 04 00 6B 00 00 00 57 04 04 00 6C 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:09:20]wFMCommunicate OK [10:09:20]SAM_PROTO_GetFieldsCounters done [10:09:20]requested_item shift.num is exist - process it [10:09:20]requested_item shift.opened is exist - process it [10:09:20]req_shift_opened [10:09:20]FM_GetShiftState [10:09:20]SAM_PROTO_GetShiftState [10:09:20]wFMCommunicate request_size=4 [10:09:20]MH_SAM_APDU [10:09:20]CAPDU: 80 13 01 00 [10:09:20]Write to MH i2c: E2 08 00 F3 3D 80 13 01 00 00 00 00 00 AD [10:09:20]Write i2c OK [10:09:20]MH_I2C_Read... [10:09:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:09:20]Read from MH i2c: E2 [10:09:20]MH_I2C_Read... [10:09:20]Read from MH i2c: E2 0E 00 [10:09:20]MH_I2C_Read... [10:09:20]Read from MH i2c: E2 0E 00 F3 3D 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 0C [10:09:20]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [10:09:20]wFMCommunicate OK [10:09:20]SAM_PROTO_GetShiftState done [10:09:20]FM_GetShiftState done [10:09:20]req_shift_opened done [10:09:20]requested_item shift.open_date is exist - process it [10:09:20]req_shift_open_date [10:09:20]req_shift_open_date done [10:09:20]produce_requested_data done [10:09:20]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187643,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [10:09:20]process_action_free close_receipt [10:09:20]json_value_free [10:09:20]json_value_free done [10:09:20]process_json_proto returns [10:09:20]Send response to host [10:09:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187643,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [10:09:20]free response buf [10:09:20]execute_script done [10:09:20]execute_script returns [10:09:20]free content buf [10:09:20]Sock 8.Close socket [10:09:20]Sock 8.Thread stoped [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:12]accept exits with 10 [10:10:12]New connection [10:10:12]New thread 3067157860 created [10:10:12]Thread 3067014500 joined [10:10:12]Waiting for new connection... [10:10:12] Sock 10.Parse request [10:10:12]Sock 10.Check first char [10:10:12]Sock 10.First char is OK [10:10:12]request: POST /json_proto HTTP/1.0 [10:10:12]Method: POST [10:10:12]URL: /json_proto [10:10:12]Method is POST - this is cgi request [10:10:12]url: /json_proto [10:10:12]query_string will be loaded in cgi processing [10:10:12]execute_cgi json_proto POST (null) [10:10:12]execute_cgi path=json_proto method=POST [10:10:12]POST find Content-Length [10:10:12]Host: 172.17.42.131:8080 [10:10:12]Content-Length: 776 [10:10:12]Content-Type: application/json [10:10:12] [10:10:12]POST finish read [10:10:12]Found Content-Length = 776 [10:10:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209694", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 128.240, "sum" : 9900.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 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" : 9900.13 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:10:12]execute_script... [10:10:12]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209694", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 128.240, "sum" : 9900.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 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" : 9900.13 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:10:12]POST & json_proto [10:10:12]process_json_proto [10:10:12]json parsed OK: [10:10:12]protocol is kg_v1.0 [10:10:12]action value=close_receipt [10:10:12]process_action close_receipt [10:10:12]cmd_close_receipt [10:10:12]MH_GetDate [10:10:12]Write to MH i2c: F0 00 00 F4 3D 20 [10:10:12]Write i2c OK [10:10:12]MH_I2C_Read... [10:10:12]Read from MH i2c: F0 [10:10:12]MH_I2C_Read... [10:10:12]Read from MH i2c: F0 09 00 [10:10:12]MH_I2C_Read... [10:10:12]Read from MH i2c: F0 09 00 F4 3D 00 87 28 16 67 A0 18 CA 66 3D [10:10:12]GetLastDocTimeStamp 1729505360 [10:10:12]current date 1729505415 [10:10:12]FM_GetShiftState [10:10:12]SAM_PROTO_GetShiftState [10:10:12]wFMCommunicate request_size=4 [10:10:12]MH_SAM_APDU [10:10:12]CAPDU: 80 13 01 00 [10:10:12]Write to MH i2c: E2 08 00 F5 3D 80 13 01 00 00 00 00 00 AF [10:10:12]Write i2c OK [10:10:12]MH_I2C_Read... [10:10:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:10:12]Read from MH i2c: E2 [10:10:12]MH_I2C_Read... [10:10:12]Read from MH i2c: E2 0E 00 [10:10:12]MH_I2C_Read... [10:10:12]Read from MH i2c: E2 0E 00 F5 3D 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 0E [10:10:12]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [10:10:12]wFMCommunicate OK [10:10:12]SAM_PROTO_GetShiftState done [10:10:12]FM_GetShiftState done [10:10:12]opened in 1729469754 [10:10:12]opened+sec_in_day 1729556154 [10:10:12]quantity*price = 990012 [10:10:12]sum+1 = 990014 [10:10:12]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 9900.13 НСП 1% : 87.61 НДС 12% : 1051.34 Наличными: 0.00 Безнал.: 9900.13 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 108 21.10.2024 10:10 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000965340 ФД: 187644 ФПД: 55294023249399 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T101015&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187644&fm=55294023249399&tin=02508201610067®Number=0000000000100030&sum=990013 [10:10:13]StoreToDocumentArchive [10:10:13]shift 460 fd 187644 [10:10:13]save to /storage/0460/doc_00187644 [10:10:13]save last doc name /storage/0460/doc_00187644 to /storage/kkm_last_doc_name [10:10:13]save OK [10:10:13]Clear old archive folders... [10:10:13]ProcessDocumentItem done err = 0, tmpTLVsize=257 [10:10:13]tlvbuf is 0116FAE0 [10:10:13]SAM_PROTO_ClearQueue [10:10:13]wFMCommunicate request_size=4 [10:10:13]MH_SAM_APDU [10:10:13]CAPDU: 80 09 00 00 [10:10:13]Write to MH i2c: E2 08 00 02 3E 80 09 00 00 00 00 00 00 B2 [10:10:13]Write i2c OK [10:10:13]MH_I2C_Read... [10:10:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:10:13]Read from MH i2c: E2 [10:10:13]MH_I2C_Read... [10:10:13]Read from MH i2c: E2 03 00 [10:10:13]MH_I2C_Read... [10:10:13]Read from MH i2c: E2 03 00 02 3E 00 90 00 B4 [10:10:13]RAPDU: 90 00 [10:10:13]wFMCommunicate OK [10:10:13]SAM_PROTO_ClearQueue done [10:10:13]KKMCreateOFDPacket [10:10:13]OFDProtocolAddRootSTLVToBuf [10:10:13]FM_MakeSignedData [10:10:13]FM_MakeSignedData [10:10:13]SAM_PROTO_SignData [10:10:13]wFMCommunicate request_size=4 [10:10:13]MH_SAM_APDU [10:10:13]CAPDU: 80 0D 01 02 [10:10:13]Write to MH i2c: E2 08 00 03 3E 80 0D 01 02 00 00 00 00 BA [10:10:13]Write i2c OK [10:10:13]MH_I2C_Read... [10:10:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:10:13]Read from MH i2c: E2 [10:10:13]MH_I2C_Read... [10:10:13]Read from MH i2c: E2 03 00 [10:10:13]MH_I2C_Read... [10:10:13]Read from MH i2c: E2 03 00 03 3E 00 90 00 B5 [10:10:13]RAPDU: 90 00 [10:10:13]wFMCommunicate OK [10:10:13]wFMCommunicate request_size=255 [10:10:13]MH_SAM_APDU [10:10:13]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 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 F0 F4 01 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 3D 1B 0F 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3D 1B 0F 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 22 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AE 9A 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 3D 1B 0F 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 00 00 00 F4 03 04 00 87 28 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 FC DC 02 [10:10:13]Write to MH i2c: E2 02 01 04 3E 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 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 F0 F4 01 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 3D 1B 0F 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3D 1B 0F 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 22 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AE 9A 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 3D 1B 0F 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 00 00 00 F4 03 04 00 87 28 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 FC DC 02 00 00 78 [10:10:13]Write i2c OK [10:10:13]MH_I2C_Read... [10:10:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:10:13]Read from MH i2c: E2 [10:10:13]MH_I2C_Read... [10:10:13]Read from MH i2c: E2 03 00 [10:10:13]MH_I2C_Read... [10:10:13]Read from MH i2c: E2 03 00 04 3E 00 90 00 B6 [10:10:13]RAPDU: 90 00 [10:10:13]wFMCommunicate OK [10:10:13]wFMCommunicate request_size=16 [10:10:13]MH_SAM_APDU [10:10:13]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 32 4A 24 9D 2D F7 [10:10:13]Write to MH i2c: E2 13 00 05 3E 80 0D 02 02 0B 00 00 35 04 06 00 32 4A 24 9D 2D F7 00 00 73 [10:10:13]Write i2c OK [10:10:13]MH_I2C_Read... [10:10:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:10:13]Read from MH i2c: E2 [10:10:13]MH_I2C_Read... [10:10:13]Read from MH i2c: E2 03 00 [10:10:13]MH_I2C_Read... [10:10:13]Read from MH i2c: E2 03 00 05 3E 00 90 00 B7 [10:10:13]RAPDU: 90 00 [10:10:13]wFMCommunicate OK [10:10:13]wFMCommunicate request_size=4 [10:10:13]MH_SAM_APDU [10:10:13]CAPDU: 80 0D 03 02 [10:10:13]Write to MH i2c: E2 08 00 06 3E 80 0D 03 02 00 00 00 00 BF [10:10:13]Write i2c OK [10:10:13]MH_I2C_Read... [10:10:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:10:13]Read from MH i2c: E2 [10:10:13]MH_I2C_Read... [10:10:13]Read from MH i2c: E2 0B 00 [10:10:13]MH_I2C_Read... [10:10:13]Read from MH i2c: E2 0B 00 06 3E 00 F7 8E F3 92 25 22 07 C6 90 00 DE [10:10:13]RAPDU: F7 8E F3 92 25 22 07 C6 90 00 [10:10:13]wFMCommunicate OK [10:10:13]SAM_PROTO_SignData done [10:10:13]FM_MakeSignedData done [10:10:13]CreateOFDProtocolMessage [10:10:13]wFMCommunicate request_size=4 [10:10:13]MH_SAM_APDU [10:10:13]CAPDU: 80 11 00 00 [10:10:13]Write to MH i2c: E2 08 00 07 3E 80 11 00 00 00 00 00 00 BF [10:10:13]Write i2c OK [10:10:13]MH_I2C_Read... [10:10:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:10:13]Read from MH i2c: E2 [10:10:13]MH_I2C_Read... [10:10:13]Read from MH i2c: E2 17 00 [10:10:13]MH_I2C_Read... [10:10:13]Read from MH i2c: E2 17 00 07 3E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 0D [10:10:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [10:10:13]wFMCommunicate OK [10:10:13]CreateOFDProtocolMessage done [10:10:13]OFDSenderStorePacket 187644 [10:10:13]StoreOFDPacket docnum=187644 [10:10:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 02 AD 0D 01 1D 2B 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 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 F0 F4 01 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 3D 1B 0F 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3D 1B 0F 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 22 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AE 9A 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 3D 1B 0F 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 00 00 00 F4 03 04 00 87 28 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 FC DC 02 00 35 04 06 00 32 4A 24 9D 2D F7 F7 8E F3 92 25 22 07 C6 [10:10:13]CheckFolder [10:10:13]dirname=/storage/ofd_packets [10:10:13]CheckFolder done [10:10:13]ProducePacketName [10:10:13]name=ofd_packets/00187644 [10:10:13]NVStorageSaveData ofd_packets/00187644 [10:10:13]File name is /storage/ofd_packets/00187644 [10:10:13]Write 307 bytes [10:10:13]NVStorageSaveData done [10:10:13]OFDSenderStorePacket done [10:10:13]KKMCreateOFDPacket done [10:10:13]NVStorageSaveData kkm_last_timestamp [10:10:13]File name is /storage/kkm_last_timestamp [10:10:13]Write 4 bytes [10:10:13]NVStorageSaveData done [10:10:13]ExternCall_PrintAddStr [10:10:13]wPrintStart [10:10:13]Write to MH i2c: 01 00 00 08 3E 46 [10:10:13]Write i2c OK [10:10:13]MH_I2C_Read... [10:10:13]Read from MH i2c: 01 [10:10:13]MH_I2C_Read... [10:10:13]Read from MH i2c: 01 07 00 [10:10:13]MH_I2C_Read... [10:10:13]Read from MH i2c: 01 07 00 08 3E 00 00 00 00 00 FF 0F 5B [10:10:13]RasterBufferAndPrint [10:10:13]line Счет N : (1)209694 [10:10:13]line ИНН: 02508201610067 [10:10:13]line Контрольно-Кассовый Чек [10:10:13]line ПРОДАЖА [10:10:13]line ТРК (МРК, ГНК) : 41 [10:10:13]line Товар: 2710194210 [10:10:13]line D-ENERGY ДТ-К-5 [10:10:13]line 128.240 * 77.20 [10:10:13]line = 9900.13 [10:10:13]line НДС 12% НСП 1% [10:10:13]line > о реализуемом товаре [10:10:13]line ИТОГО: 9900.13 [10:10:13]line НСП 1% : 87.61 [10:10:13]line НДС 12% : 1051.34 [10:10:13]line Наличными: 0.00 [10:10:13]line Безнал.: 9900.13 [10:10:13]line Место: АЗС № 86 "Партнер Нефть" [10:10:13]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [10:10:13]line СНО: Общий режим [10:10:13]line Чек 108 21.10.2024 10:10 [10:10:13]line Смена: 460 ФФД: 1.0 [10:10:13]line ЗНМ: 0300000155 [10:10:13]line РНМ: 0000000000100030 [10:10:13]line Версия ККМ: 001 [10:10:13]line Платежная система: Mbank [10:10:13]line ФМ: 0000000000965340 [10:10:13]line ФД: 187644 [10:10:13]line ФПД: 55294023249399 [10:10:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T101015&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187644&fm=55294023249399&tin=02508201610067®Number=0000000000100030&sum=990013 [10:10:13]written 0, free lines is 4095 [10:10:13]OFD Sender: Processing packet 187644 [packets to send 1062, broken 1061] [10:10:13]ProducePacketName [10:10:13]name=ofd_packets/00187644 [10:10:13]OFD Sender: To server: pG, [10:10:13]CommunicateWithHost lk.salyk.kg:30040 [10:10:13]ConnectInit lk.salyk.kg [10:10:14]Connected sock=9 [10:10:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 02 AD 0D 01 1D 2B 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 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 F0 F4 01 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 3D 1B 0F 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3D 1B 0F 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 22 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AE 9A 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 3D 1B 0F 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 00 00 00 F4 03 04 00 87 28 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 FC DC 02 00 35 04 06 00 32 4A 24 9D 2D F7 F7 8E F3 92 25 22 07 C6 [10:10:14]Write to MH i2c: 01 00 00 31 3E 6F [10:10:14]Write i2c OK [10:10:14]MH_I2C_Read... [10:10:14]Read from MH i2c: 01 [10:10:14]MH_I2C_Read... [10:10:14]Read from MH i2c: 01 07 00 [10:10:14]MH_I2C_Read... [10:10:14]Read from MH i2c: 01 07 00 31 3E 00 00 00 00 00 B3 0C 35 [10:10:14]RasterBufferAndPrint [10:10:14]line [10:10:14]line [10:10:14]line [10:10:14]line [10:10:14]line [10:10:14]written 0, free lines is 3254 [10:10:14]MH_Cut [10:10:14]Write to MH i2c: D1 01 00 38 3E 01 48 [10:10:14]Write i2c OK [10:10:14]MH_I2C_Read... [10:10:14]Read from MH i2c: D1 [10:10:14]MH_I2C_Read... [10:10:14]Read from MH i2c: D1 01 00 [10:10:14]MH_I2C_Read... [10:10:14]Read from MH i2c: D1 01 00 38 3E 00 47 [10:10:14]Write to MH i2c: 01 00 00 39 3E 77 [10:10:14]Write i2c OK [10:10:14]MH_I2C_Read... [10:10:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 D9 E2 47 00 C5 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 39 36 35 33 34 30 10 04 04 00 FC DC 02 00 F4 03 04 00 77 D2 15 67 B6 04 01 00 00 11 95 D5 43 E9 C9 50 17 [10:10:14]CommunicateWithHost err = 0 [10:10:14]CheckOFDResponse [10:10:14]1017 (14) - 77093643461234 [10:10:14]1041 (16) - 0000000000965340 [10:10:14]1040 (4) - 187644 [10:10:14]1012 (4) - 21.10.2024 04:03 [10:10:14]1206 (1) - 0 [10:10:14]OFD Sender: Remove packet 187644 [10:10:14]ProducePacketName [10:10:14]name=ofd_packets/00187644 [10:10:14]NVStorageDeleteData [10:10:14]OFD Sender: No OFD packet to send [10:10:15]*** Cut start [10:10:15]*** Partial cut [10:10:15]*** CUTSNS_PIN = 1 [10:10:15]*** CUTSNS_PIN = 0 [10:10:15]*** Brake cut motor [10:10:15]Read from MH i2c: 01 [10:10:15]MH_I2C_Read... [10:10:15]*** Stop cut motor [10:10:15]*** Cut end [10:10:15]Read from MH i2c: 01 07 00 [10:10:15]MH_I2C_Read... [10:10:15]Read from MH i2c: 01 07 00 39 3E 00 00 00 00 00 FF 0F 8C [10:10:15]process_action close_receipt done [10:10:15]requested_data is exist [10:10:15]produce_requested_data [10:10:15]requested_item fm.sn is exist - process it [10:10:15]wFMCommunicate request_size=4 [10:10:15]MH_SAM_APDU [10:10:15]CAPDU: 80 11 00 00 [10:10:15]Write to MH i2c: E2 08 00 3A 3E 80 11 00 00 00 00 00 00 F2 [10:10:15]Write i2c OK [10:10:15]MH_I2C_Read... [10:10:16]Read from MH i2c: E2 [10:10:16]MH_I2C_Read... [10:10:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:10:16]Read from MH i2c: E2 17 00 [10:10:16]MH_I2C_Read... [10:10:16]Read from MH i2c: E2 17 00 3A 3E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 40 [10:10:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [10:10:16]wFMCommunicate OK [10:10:16]requested_item fd.num is exist - process it [10:10:16]SAM_PROTO_GetFieldsCounters [10:10:16]wFMCommunicate request_size=4 [10:10:16]MH_SAM_APDU [10:10:16]CAPDU: 80 13 00 00 [10:10:16]Write to MH i2c: E2 08 00 3B 3E 80 13 00 00 00 00 00 00 F5 [10:10:16]Write i2c OK [10:10:16]MH_I2C_Read... [10:10:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:10:16]Read from MH i2c: E2 [10:10:16]MH_I2C_Read... [10:10:16]Read from MH i2c: E2 62 00 [10:10:16]MH_I2C_Read... [10:10:16]Read from MH i2c: E2 62 00 3B 3E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 FC DC 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 6C 00 00 00 5E 04 04 00 6C 00 00 00 57 04 04 00 6D 00 00 00 19 04 04 00 00 00 00 00 90 00 E7 [10:10:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 FC DC 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 6C 00 00 00 5E 04 04 00 6C 00 00 00 57 04 04 00 6D 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:10:16]wFMCommunicate OK [10:10:16]SAM_PROTO_GetFieldsCounters done [10:10:16]requested_item shift.num is exist - process it [10:10:16]requested_item shift.opened is exist - process it [10:10:16]req_shift_opened [10:10:16]FM_GetShiftState [10:10:16]SAM_PROTO_GetShiftState [10:10:16]wFMCommunicate request_size=4 [10:10:16]MH_SAM_APDU [10:10:16]CAPDU: 80 13 01 00 [10:10:16]Write to MH i2c: E2 08 00 3C 3E 80 13 01 00 00 00 00 00 F7 [10:10:16]Write i2c OK [10:10:16]MH_I2C_Read... [10:10:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:10:16]Read from MH i2c: E2 [10:10:16]MH_I2C_Read... [10:10:16]Read from MH i2c: E2 0E 00 [10:10:16]MH_I2C_Read... [10:10:16]Read from MH i2c: E2 0E 00 3C 3E 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 56 [10:10:16]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [10:10:16]wFMCommunicate OK [10:10:16]SAM_PROTO_GetShiftState done [10:10:16]FM_GetShiftState done [10:10:16]req_shift_opened done [10:10:16]requested_item shift.open_date is exist - process it [10:10:16]req_shift_open_date [10:10:16]req_shift_open_date done [10:10:16]produce_requested_data done [10:10:16]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187644,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [10:10:16]process_action_free close_receipt [10:10:16]json_value_free [10:10:16]json_value_free done [10:10:16]process_json_proto returns [10:10:16]Send response to host [10:10:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187644,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [10:10:16]free response buf [10:10:16]execute_script done [10:10:16]execute_script returns [10:10:16]free content buf [10:10:16]Sock 10.Close socket [10:10:16]Sock 10.Thread stoped [10:10:19]OFD Sender: No OFD packet to send [10:10:25]OFD Sender: No OFD packet to send [10:10:30]OFD Sender: No OFD packet to send [10:10:35]OFD Sender: No OFD packet to send [10:10:40]OFD Sender: No OFD packet to send [10:10:45]OFD Sender: No OFD packet to send [10:10:50]OFD Sender: No OFD packet to send [10:10:55]OFD Sender: No OFD packet to send [10:11:00]OFD Sender: No OFD packet to send [10:11:00]accept exits with 8 [10:11:00]New connection [10:11:00]New thread 3067014500 created [10:11:00]Thread 3067157860 joined [10:11:00]Waiting for new connection... [10:11:00] Sock 8.Parse request [10:11:00]Sock 8.Check first char [10:11:00]Sock 8.First char is OK [10:11:00]request: POST /json_proto HTTP/1.0 [10:11:00]Method: POST [10:11:00]URL: /json_proto [10:11:00]Method is POST - this is cgi request [10:11:00]url: /json_proto [10:11:00]query_string will be loaded in cgi processing [10:11:00]execute_cgi json_proto POST (null) [10:11:00]execute_cgi path=json_proto method=POST [10:11:00]POST find Content-Length [10:11:00]Host: 172.17.42.131:8080 [10:11:00]Content-Length: 684 [10:11:00]Content-Type: application/json [10:11:00] [10:11:00]POST finish read [10:11:00]Found Content-Length = 684 [10:11:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209697", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 11.660, "sum" : 900.15, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 900.00, "total" : 900.00, "payments": [ { "type": 0, "sum" : 900.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:11:00]execute_script... [10:11: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)209697", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 11.660, "sum" : 900.15, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 900.00, "total" : 900.00, "payments": [ { "type": 0, "sum" : 900.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:11:00]POST & json_proto [10:11:00]process_json_proto [10:11:00]json parsed OK: [10:11:00]protocol is kg_v1.0 [10:11:00]action value=close_receipt [10:11:00]process_action close_receipt [10:11:00]cmd_close_receipt [10:11:00]MH_GetDate [10:11:00]Write to MH i2c: F0 00 00 3D 3E 6A [10:11:00]Write i2c OK [10:11:00]MH_I2C_Read... [10:11:00]Read from MH i2c: F0 [10:11:00]MH_I2C_Read... [10:11:00]Read from MH i2c: F0 09 00 [10:11:00]MH_I2C_Read... [10:11:00]Read from MH i2c: F0 09 00 3D 3E 00 B8 28 16 67 A0 18 CA 66 B8 [10:11:00]GetLastDocTimeStamp 1729505415 [10:11:00]current date 1729505464 [10:11:00]FM_GetShiftState [10:11:00]SAM_PROTO_GetShiftState [10:11:00]wFMCommunicate request_size=4 [10:11:00]MH_SAM_APDU [10:11:00]CAPDU: 80 13 01 00 [10:11:00]Write to MH i2c: E2 08 00 3E 3E 80 13 01 00 00 00 00 00 F9 [10:11:00]Write i2c OK [10:11:00]MH_I2C_Read... [10:11:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:11:00]Read from MH i2c: E2 [10:11:00]MH_I2C_Read... [10:11:00]Read from MH i2c: E2 0E 00 [10:11:00]MH_I2C_Read... [10:11:00]Read from MH i2c: E2 0E 00 3E 3E 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 58 [10:11:00]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [10:11:00]wFMCommunicate OK [10:11:00]SAM_PROTO_GetShiftState done [10:11:00]FM_GetShiftState done [10:11:00]opened in 1729469754 [10:11:00]opened+sec_in_day 1729556154 [10:11:00]quantity*price = 90015 [10:11:00]sum+1 = 90016 [10:11:00]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.15 ИТОГО: 900.00 Внесено: 900.00 СДАЧА: 0.00 НСП 1% : 7.97 НДС 12% : 95.59 Наличными: 900.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 109 21.10.2024 10:11 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 187645 ФПД: 166206544888567 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T101104&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187645&fm=166206544888567&tin=02508201610067®Number=0000000000100030&sum=90000 [10:11:01]StoreToDocumentArchive [10:11:01]shift 460 fd 187645 [10:11:01]save to /storage/0460/doc_00187645 [10:11:01]save last doc name /storage/0460/doc_00187645 to /storage/kkm_last_doc_name [10:11:01]save OK [10:11:01]Clear old archive folders... [10:11:01]ProcessDocumentItem done err = 0, tmpTLVsize=257 [10:11:01]tlvbuf is 010F72E0 [10:11:01]SAM_PROTO_ClearQueue [10:11:01]wFMCommunicate request_size=4 [10:11:01]MH_SAM_APDU [10:11:01]CAPDU: 80 09 00 00 [10:11:01]Write to MH i2c: E2 08 00 4B 3E 80 09 00 00 00 00 00 00 FB [10:11:01]Write i2c OK [10:11:01]MH_I2C_Read... [10:11:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:11:01]Read from MH i2c: E2 [10:11:01]MH_I2C_Read... [10:11:01]Read from MH i2c: E2 03 00 [10:11:01]MH_I2C_Read... [10:11:01]Read from MH i2c: E2 03 00 4B 3E 00 90 00 FD [10:11:01]RAPDU: 90 00 [10:11:01]wFMCommunicate OK [10:11:01]SAM_PROTO_ClearQueue done [10:11:01]KKMCreateOFDPacket [10:11:01]OFDProtocolAddRootSTLVToBuf [10:11:01]FM_MakeSignedData [10:11:01]FM_MakeSignedData [10:11:01]SAM_PROTO_SignData [10:11:01]wFMCommunicate request_size=4 [10:11:01]MH_SAM_APDU [10:11:01]CAPDU: 80 0D 01 02 [10:11:01]Write to MH i2c: E2 08 00 4C 3E 80 0D 01 02 00 00 00 00 03 [10:11:01]Write i2c OK [10:11:01]MH_I2C_Read... [10:11:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:11:01]Read from MH i2c: E2 [10:11:01]MH_I2C_Read... [10:11:01]Read from MH i2c: E2 03 00 [10:11:01]MH_I2C_Read... [10:11:01]Read from MH i2c: E2 03 00 4C 3E 00 90 00 FE [10:11:01]RAPDU: 90 00 [10:11:01]wFMCommunicate OK [10:11:01]wFMCommunicate request_size=255 [10:11:01]MH_SAM_APDU [10:11:01]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8C 2D 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 9F 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 57 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 00 00 00 F4 03 04 00 B8 28 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 FD DC 02 [10:11:01]Write to MH i2c: E2 02 01 4D 3E 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 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8C 2D 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 9F 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 57 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 00 00 00 F4 03 04 00 B8 28 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 FD DC 02 00 00 6A [10:11:01]Write i2c OK [10:11:01]MH_I2C_Read... [10:11:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:11:01]Read from MH i2c: E2 [10:11:01]MH_I2C_Read... [10:11:01]Read from MH i2c: E2 03 00 [10:11:01]MH_I2C_Read... [10:11:01]Read from MH i2c: E2 03 00 4D 3E 00 90 00 FF [10:11:01]RAPDU: 90 00 [10:11:01]wFMCommunicate OK [10:11:01]wFMCommunicate request_size=16 [10:11:01]MH_SAM_APDU [10:11:01]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 97 29 FA 11 42 F7 [10:11:01]Write to MH i2c: E2 13 00 4E 3E 80 0D 02 02 0B 00 00 35 04 06 00 97 29 FA 11 42 F7 00 00 5F [10:11:01]Write i2c OK [10:11:01]MH_I2C_Read... [10:11:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:11:02]Read from MH i2c: E2 [10:11:02]MH_I2C_Read... [10:11:02]Read from MH i2c: E2 03 00 [10:11:02]MH_I2C_Read... [10:11:02]Read from MH i2c: E2 03 00 4E 3E 00 90 00 00 [10:11:02]RAPDU: 90 00 [10:11:02]wFMCommunicate OK [10:11:02]wFMCommunicate request_size=4 [10:11:02]MH_SAM_APDU [10:11:02]CAPDU: 80 0D 03 02 [10:11:02]Write to MH i2c: E2 08 00 4F 3E 80 0D 03 02 00 00 00 00 08 [10:11:02]Write i2c OK [10:11:02]MH_I2C_Read... [10:11:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:11:02]Read from MH i2c: E2 [10:11:02]MH_I2C_Read... [10:11:02]Read from MH i2c: E2 0B 00 [10:11:02]MH_I2C_Read... [10:11:02]Read from MH i2c: E2 0B 00 4F 3E 00 AE 6A BD 0D C2 00 79 54 90 00 7A [10:11:02]RAPDU: AE 6A BD 0D C2 00 79 54 90 00 [10:11:02]wFMCommunicate OK [10:11:02]SAM_PROTO_SignData done [10:11:02]FM_MakeSignedData done [10:11:02]CreateOFDProtocolMessage [10:11:02]wFMCommunicate request_size=4 [10:11:02]MH_SAM_APDU [10:11:02]CAPDU: 80 11 00 00 [10:11:02]Write to MH i2c: E2 08 00 50 3E 80 11 00 00 00 00 00 00 08 [10:11:02]Write i2c OK [10:11:02]MH_I2C_Read... [10:11:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:11:02]Read from MH i2c: E2 [10:11:02]MH_I2C_Read... [10:11:02]Read from MH i2c: E2 17 00 [10:11:02]MH_I2C_Read... [10:11:02]Read from MH i2c: E2 17 00 50 3E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 56 [10:11:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [10:11:02]wFMCommunicate OK [10:11:02]CreateOFDProtocolMessage done [10:11:02]OFDSenderStorePacket 187645 [10:11:02]StoreOFDPacket docnum=187645 [10:11:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 DB 17 0D 01 28 AB 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 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8C 2D 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 9F 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 57 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 00 00 00 F4 03 04 00 B8 28 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 FD DC 02 00 35 04 06 00 97 29 FA 11 42 F7 AE 6A BD 0D C2 00 79 54 [10:11:02]CheckFolder [10:11:02]dirname=/storage/ofd_packets [10:11:02]CheckFolder done [10:11:02]ProducePacketName [10:11:02]name=ofd_packets/00187645 [10:11:02]NVStorageSaveData ofd_packets/00187645 [10:11:02]File name is /storage/ofd_packets/00187645 [10:11:02]Write 307 bytes [10:11:02]NVStorageSaveData done [10:11:02]OFDSenderStorePacket done [10:11:02]KKMCreateOFDPacket done [10:11:02]NVStorageSaveData kkm_last_timestamp [10:11:02]File name is /storage/kkm_last_timestamp [10:11:02]Write 4 bytes [10:11:02]NVStorageSaveData done [10:11:02]ExternCall_PrintAddStr [10:11:02]wPrintStart [10:11:02]Write to MH i2c: 01 00 00 51 3E 8F [10:11:02]Write i2c OK [10:11:02]MH_I2C_Read... [10:11:02]Read from MH i2c: 01 [10:11:02]MH_I2C_Read... [10:11:02]Read from MH i2c: 01 07 00 [10:11:02]MH_I2C_Read... [10:11:02]Read from MH i2c: 01 07 00 51 3E 00 00 00 00 00 FF 0F A4 [10:11:02]RasterBufferAndPrint [10:11:02]line Счет N : (1)209697 [10:11:02]line ИНН: 02508201610067 [10:11:02]line Контрольно-Кассовый Чек [10:11:02]line ПРОДАЖА [10:11:02]line ТРК (МРК, ГНК) : 11 [10:11:02]line Товар: 2710194210 [10:11:02]line D-ENERGY ДТ-К-5 [10:11:02]line 11.660 * 77.20 [10:11:02]line = 900.15 [10:11:02]line НДС 12% НСП 1% [10:11:02]line > о реализуемом товаре [10:11:02]line ОКРУГЛЕНИЕ: -0.15 [10:11:02]line ИТОГО: 900.00 [10:11:02]line Внесено: 900.00 [10:11:02]line СДАЧА: 0.00 [10:11:02]line НСП 1% : 7.97 [10:11:02]line НДС 12% : 95.59 [10:11:02]line Наличными: 900.00 [10:11:02]line Безнал.: 0.00 [10:11:02]line Место: АЗС № 86 "Партнер Нефть" [10:11:02]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [10:11:02]line СНО: Общий режим [10:11:02]line Чек 109 21.10.2024 10:11 [10:11:02]line Смена: 460 ФФД: 1.0 [10:11:02]line ЗНМ: 0300000155 [10:11:02]line РНМ: 0000000000100030 [10:11:02]line Версия ККМ: 001 [10:11:02]line ФМ: 0000000000965340 [10:11:02]line ФД: 187645 [10:11:02]line ФПД: 166206544888567 [10:11:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T101104&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187645&fm=166206544888567&tin=02508201610067®Number=0000000000100030&sum=90000 [10:11:02]OFD Sender: Processing packet 187645 [packets to send 1062, broken 1061] [10:11:02]ProducePacketName [10:11:02]name=ofd_packets/00187645 [10:11:02]OFD Sender: To server: pG, [10:11:02]CommunicateWithHost lk.salyk.kg:30040 [10:11:02]ConnectInit lk.salyk.kg [10:11:02]written 0, free lines is 4095 [10:11:02]Connected sock=9 [10:11:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 DB 17 0D 01 28 AB 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 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8C 2D 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 9F 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 57 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 00 00 00 F4 03 04 00 B8 28 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 FD DC 02 00 35 04 06 00 97 29 FA 11 42 F7 AE 6A BD 0D C2 00 79 54 [10:11:02]Write to MH i2c: 01 00 00 7C 3E BA [10:11:02]Write i2c OK [10:11:02]MH_I2C_Read... [10:11:02]Read from MH i2c: 01 [10:11:02]MH_I2C_Read... [10:11:02]Read from MH i2c: 01 07 00 [10:11:02]MH_I2C_Read... [10:11:02]Read from MH i2c: 01 07 00 7C 3E 00 00 00 00 00 74 0C 41 [10:11:02]RasterBufferAndPrint [10:11:02]line [10:11:02]line [10:11:02]line [10:11:02]line [10:11:02]line [10:11:02]written 0, free lines is 3191 [10:11:02]MH_Cut [10:11:02]Write to MH i2c: D1 01 00 83 3E 01 93 [10:11:02]Write i2c OK [10:11:02]MH_I2C_Read... [10:11:02]Read from MH i2c: D1 [10:11:02]MH_I2C_Read... [10:11:02]Read from MH i2c: D1 01 00 [10:11:02]MH_I2C_Read... [10:11:02]Read from MH i2c: D1 01 00 83 3E 00 92 [10:11:02]Write to MH i2c: 01 00 00 84 3E C2 [10:11:02]Write i2c OK [10:11:02]MH_I2C_Read... [10:11:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 2A CC 47 00 D5 35 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 FD DC 02 00 F4 03 04 00 A7 D2 15 67 B6 04 01 00 00 E9 68 EC 85 10 72 1F C3 [10:11:02]CommunicateWithHost err = 0 [10:11:02]CheckOFDResponse [10:11:02]1017 (14) - 77093643461234 [10:11:02]1041 (16) - 0000000000965340 [10:11:02]1040 (4) - 187645 [10:11:02]1012 (4) - 21.10.2024 04:03 [10:11:02]1206 (1) - 0 [10:11:02]OFD Sender: Remove packet 187645 [10:11:02]ProducePacketName [10:11:02]name=ofd_packets/00187645 [10:11:02]NVStorageDeleteData [10:11:03]OFD Sender: No OFD packet to send [10:11:03]*** Cut start [10:11:03]*** Partial cut [10:11:03]*** CUTSNS_PIN = 1 [10:11:03]*** CUTSNS_PIN = 0 [10:11:03]*** Brake cut motor [10:11:04]Read from MH i2c: 01 [10:11:04]MH_I2C_Read... [10:11:04]*** Stop cut motor [10:11:04]*** Cut end [10:11:04]Read from MH i2c: 01 07 00 [10:11:04]MH_I2C_Read... [10:11:04]Read from MH i2c: 01 07 00 84 3E 00 00 00 00 00 FF 0F D7 [10:11:04]process_action close_receipt done [10:11:04]requested_data is exist [10:11:04]produce_requested_data [10:11:04]requested_item fm.sn is exist - process it [10:11:04]wFMCommunicate request_size=4 [10:11:04]MH_SAM_APDU [10:11:04]CAPDU: 80 11 00 00 [10:11:04]Write to MH i2c: E2 08 00 85 3E 80 11 00 00 00 00 00 00 3D [10:11:04]Write i2c OK [10:11:04]MH_I2C_Read... [10:11:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:11:04]Read from MH i2c: E2 [10:11:04]MH_I2C_Read... [10:11:04]Read from MH i2c: E2 17 00 [10:11:04]MH_I2C_Read... [10:11:04]Read from MH i2c: E2 17 00 85 3E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 8B [10:11:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [10:11:04]wFMCommunicate OK [10:11:04]requested_item fd.num is exist - process it [10:11:04]SAM_PROTO_GetFieldsCounters [10:11:04]wFMCommunicate request_size=4 [10:11:04]MH_SAM_APDU [10:11:04]CAPDU: 80 13 00 00 [10:11:04]Write to MH i2c: E2 08 00 86 3E 80 13 00 00 00 00 00 00 40 [10:11:04]Write i2c OK [10:11:04]MH_I2C_Read... [10:11:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:11:04]Read from MH i2c: E2 [10:11:04]MH_I2C_Read... [10:11:04]Read from MH i2c: E2 62 00 [10:11:04]MH_I2C_Read... [10:11:04]Read from MH i2c: E2 62 00 86 3E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 FD DC 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 6D 00 00 00 5E 04 04 00 6D 00 00 00 57 04 04 00 6E 00 00 00 19 04 04 00 00 00 00 00 90 00 36 [10:11:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 FD DC 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 6D 00 00 00 5E 04 04 00 6D 00 00 00 57 04 04 00 6E 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:11:04]wFMCommunicate OK [10:11:04]SAM_PROTO_GetFieldsCounters done [10:11:04]requested_item shift.num is exist - process it [10:11:04]requested_item shift.opened is exist - process it [10:11:04]req_shift_opened [10:11:04]FM_GetShiftState [10:11:04]SAM_PROTO_GetShiftState [10:11:04]wFMCommunicate request_size=4 [10:11:04]MH_SAM_APDU [10:11:04]CAPDU: 80 13 01 00 [10:11:04]Write to MH i2c: E2 08 00 87 3E 80 13 01 00 00 00 00 00 42 [10:11:04]Write i2c OK [10:11:04]MH_I2C_Read... [10:11:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:11:04]Read from MH i2c: E2 [10:11:04]MH_I2C_Read... [10:11:04]Read from MH i2c: E2 0E 00 [10:11:04]MH_I2C_Read... [10:11:04]Read from MH i2c: E2 0E 00 87 3E 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 A1 [10:11:04]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [10:11:04]wFMCommunicate OK [10:11:04]SAM_PROTO_GetShiftState done [10:11:04]FM_GetShiftState done [10:11:04]req_shift_opened done [10:11:04]requested_item shift.open_date is exist - process it [10:11:04]req_shift_open_date [10:11:04]req_shift_open_date done [10:11:04]produce_requested_data done [10:11:04]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187645,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [10:11:04]process_action_free close_receipt [10:11:04]json_value_free [10:11:04]json_value_free done [10:11:04]process_json_proto returns [10:11:04]Send response to host [10:11:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187645,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [10:11:04]free response buf [10:11:04]execute_script done [10:11:04]execute_script returns [10:11:04]free content buf [10:11:04]Sock 8.Close socket [10:11:04]Sock 8.Thread stoped [10:11:08]OFD Sender: No OFD packet to send [10:11:13]OFD Sender: No OFD packet to send [10:11:18]OFD Sender: No OFD packet to send [10:11:23]OFD Sender: No OFD packet to send [10:11:28]OFD Sender: No OFD packet to send [10:11:33]OFD Sender: No OFD packet to send [10:11:38]OFD Sender: No OFD packet to send [10:11:39]accept exits with 10 [10:11:39]New connection [10:11:39]New thread 3067157860 created [10:11:39]Thread 3067014500 joined [10:11:39]Waiting for new connection... [10:11:39] Sock 10.Parse request [10:11:39]Sock 10.Check first char [10:11:39]Sock 10.First char is OK [10:11:39]request: POST /json_proto HTTP/1.0 [10:11:39]Method: POST [10:11:39]URL: /json_proto [10:11:39]Method is POST - this is cgi request [10:11:39]url: /json_proto [10:11:39]query_string will be loaded in cgi processing [10:11:39]execute_cgi json_proto POST (null) [10:11:39]execute_cgi path=json_proto method=POST [10:11:39]POST find Content-Length [10:11:39]Host: 172.17.42.131:8080 [10:11:39]Content-Length: 682 [10:11:39]Content-Type: application/json [10:11:39] [10:11:39]POST finish read [10:11:39]Found Content-Length = 682 [10:11:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209698", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:11:39]execute_script... [10:11: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)209698", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:11:39]POST & json_proto [10:11:39]process_json_proto [10:11:39]json parsed OK: [10:11:39]protocol is kg_v1.0 [10:11:39]action value=close_receipt [10:11:39]process_action close_receipt [10:11:39]cmd_close_receipt [10:11:39]MH_GetDate [10:11:39]Write to MH i2c: F0 00 00 88 3E B5 [10:11:39]Write i2c OK [10:11:39]MH_I2C_Read... [10:11:39]Read from MH i2c: F0 [10:11:39]MH_I2C_Read... [10:11:39]Read from MH i2c: F0 09 00 [10:11:39]MH_I2C_Read... [10:11:39]Read from MH i2c: F0 09 00 88 3E 00 DE 28 16 67 A0 18 CA 66 29 [10:11:39]GetLastDocTimeStamp 1729505464 [10:11:39]current date 1729505502 [10:11:39]FM_GetShiftState [10:11:39]SAM_PROTO_GetShiftState [10:11:39]wFMCommunicate request_size=4 [10:11:39]MH_SAM_APDU [10:11:39]CAPDU: 80 13 01 00 [10:11:39]Write to MH i2c: E2 08 00 89 3E 80 13 01 00 00 00 00 00 44 [10:11:39]Write i2c OK [10:11:39]MH_I2C_Read... [10:11:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:11:39]Read from MH i2c: E2 [10:11:39]MH_I2C_Read... [10:11:39]Read from MH i2c: E2 0E 00 [10:11:39]MH_I2C_Read... [10:11:39]Read from MH i2c: E2 0E 00 89 3E 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 A3 [10:11:39]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [10:11:39]wFMCommunicate OK [10:11:39]SAM_PROTO_GetShiftState done [10:11:39]FM_GetShiftState done [10:11:39]opened in 1729469754 [10:11:39]opened+sec_in_day 1729556154 [10:11:39]quantity*price = 100021 [10:11:39]sum+1 = 100023 [10:11:39]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 110 21.10.2024 10:11 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 187646 ФПД: 109801307658418 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T101142&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187646&fm=109801307658418&tin=02508201610067®Number=0000000000100030&sum=100000 [10:11:40]StoreToDocumentArchive [10:11:40]shift 460 fd 187646 [10:11:40]save to /storage/0460/doc_00187646 [10:11:40]save last doc name /storage/0460/doc_00187646 to /storage/kkm_last_doc_name [10:11:40]save OK [10:11:40]Clear old archive folders... [10:11:40]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:11:40]tlvbuf is 010C81E0 [10:11:40]SAM_PROTO_ClearQueue [10:11:40]wFMCommunicate request_size=4 [10:11:40]MH_SAM_APDU [10:11:40]CAPDU: 80 09 00 00 [10:11:40]Write to MH i2c: E2 08 00 96 3E 80 09 00 00 00 00 00 00 46 [10:11:40]Write i2c OK [10:11:40]MH_I2C_Read... [10:11:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:11:40]Read from MH i2c: E2 [10:11:40]MH_I2C_Read... [10:11:40]Read from MH i2c: E2 03 00 [10:11:40]MH_I2C_Read... [10:11:40]Read from MH i2c: E2 03 00 96 3E 00 90 00 48 [10:11:40]RAPDU: 90 00 [10:11:40]wFMCommunicate OK [10:11:40]SAM_PROTO_ClearQueue done [10:11:40]KKMCreateOFDPacket [10:11:40]OFDProtocolAddRootSTLVToBuf [10:11:40]FM_MakeSignedData [10:11:40]FM_MakeSignedData [10:11:40]SAM_PROTO_SignData [10:11:40]wFMCommunicate request_size=4 [10:11:40]MH_SAM_APDU [10:11:40]CAPDU: 80 0D 01 02 [10:11:40]Write to MH i2c: E2 08 00 97 3E 80 0D 01 02 00 00 00 00 4E [10:11:40]Write i2c OK [10:11:40]MH_I2C_Read... [10:11:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:11:40]Read from MH i2c: E2 [10:11:40]MH_I2C_Read... [10:11:40]Read from MH i2c: E2 03 00 [10:11:40]MH_I2C_Read... [10:11:40]Read from MH i2c: E2 03 00 97 3E 00 90 00 49 [10:11:40]RAPDU: 90 00 [10:11:40]wFMCommunicate OK [10:11:40]wFMCommunicate request_size=255 [10:11:40]MH_SAM_APDU [10:11:40]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 00 00 00 F4 03 04 00 DE 28 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 FE DC 02 00 35 04 06 00 63 [10:11:40]Write to MH i2c: E2 02 01 98 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 00 00 00 F4 03 04 00 DE 28 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 FE DC 02 00 35 04 06 00 63 00 00 DB [10:11:40]Write i2c OK [10:11:40]MH_I2C_Read... [10:11:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:11:40]Read from MH i2c: E2 [10:11:40]MH_I2C_Read... [10:11:40]Read from MH i2c: E2 03 00 [10:11:40]MH_I2C_Read... [10:11:40]Read from MH i2c: E2 03 00 98 3E 00 90 00 4A [10:11:40]RAPDU: 90 00 [10:11:40]wFMCommunicate OK [10:11:40]wFMCommunicate request_size=10 [10:11:40]MH_SAM_APDU [10:11:40]CAPDU: 80 0D 02 02 05 DD 1B F0 58 B2 [10:11:40]Write to MH i2c: E2 0D 00 99 3E 80 0D 02 02 05 00 DD 1B F0 58 B2 00 00 4D [10:11:40]Write i2c OK [10:11:40]MH_I2C_Read... [10:11:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:11:40]Read from MH i2c: E2 [10:11:40]MH_I2C_Read... [10:11:40]Read from MH i2c: E2 03 00 [10:11:40]MH_I2C_Read... [10:11:40]Read from MH i2c: E2 03 00 99 3E 00 90 00 4B [10:11:40]RAPDU: 90 00 [10:11:40]wFMCommunicate OK [10:11:40]wFMCommunicate request_size=4 [10:11:40]MH_SAM_APDU [10:11:40]CAPDU: 80 0D 03 02 [10:11:40]Write to MH i2c: E2 08 00 9A 3E 80 0D 03 02 00 00 00 00 53 [10:11:40]Write i2c OK [10:11:40]MH_I2C_Read... [10:11:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:11:40]Read from MH i2c: E2 [10:11:40]MH_I2C_Read... [10:11:40]Read from MH i2c: E2 0B 00 [10:11:40]MH_I2C_Read... [10:11:40]Read from MH i2c: E2 0B 00 9A 3E 00 EA A4 B3 13 90 E3 73 0A 90 00 98 [10:11:40]RAPDU: EA A4 B3 13 90 E3 73 0A 90 00 [10:11:40]wFMCommunicate OK [10:11:40]SAM_PROTO_SignData done [10:11:40]FM_MakeSignedData done [10:11:40]CreateOFDProtocolMessage [10:11:40]wFMCommunicate request_size=4 [10:11:40]MH_SAM_APDU [10:11:40]CAPDU: 80 11 00 00 [10:11:40]Write to MH i2c: E2 08 00 9B 3E 80 11 00 00 00 00 00 00 53 [10:11:40]Write i2c OK [10:11:40]MH_I2C_Read... [10:11:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:11:40]Read from MH i2c: E2 [10:11:40]MH_I2C_Read... [10:11:40]Read from MH i2c: E2 17 00 [10:11:40]MH_I2C_Read... [10:11:40]Read from MH i2c: E2 17 00 9B 3E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 A1 [10:11:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [10:11:40]wFMCommunicate OK [10:11:40]CreateOFDProtocolMessage done [10:11:40]OFDSenderStorePacket 187646 [10:11:40]StoreOFDPacket docnum=187646 [10:11:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 49 1D 07 01 75 A2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 00 00 00 F4 03 04 00 DE 28 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 FE DC 02 00 35 04 06 00 63 DD 1B F0 58 B2 EA A4 B3 13 90 E3 73 0A [10:11:40]CheckFolder [10:11:40]dirname=/storage/ofd_packets [10:11:40]CheckFolder done [10:11:40]ProducePacketName [10:11:40]name=ofd_packets/00187646 [10:11:40]NVStorageSaveData ofd_packets/00187646 [10:11:40]File name is /storage/ofd_packets/00187646 [10:11:40]Write 301 bytes [10:11:40]NVStorageSaveData done [10:11:40]OFDSenderStorePacket done [10:11:40]KKMCreateOFDPacket done [10:11:40]NVStorageSaveData kkm_last_timestamp [10:11:40]File name is /storage/kkm_last_timestamp [10:11:40]Write 4 bytes [10:11:40]NVStorageSaveData done [10:11:40]ExternCall_PrintAddStr [10:11:40]wPrintStart [10:11:40]Write to MH i2c: 01 00 00 9C 3E DA [10:11:40]Write i2c OK [10:11:40]MH_I2C_Read... [10:11:41]Read from MH i2c: 01 [10:11:41]MH_I2C_Read... [10:11:41]Read from MH i2c: 01 07 00 [10:11:41]MH_I2C_Read... [10:11:41]Read from MH i2c: 01 07 00 9C 3E 00 00 00 00 00 FF 0F EF [10:11:41]RasterBufferAndPrint [10:11:41]line Счет N : (1)209698 [10:11:41]line ИНН: 02508201610067 [10:11:41]line Контрольно-Кассовый Чек [10:11:41]line ПРОДАЖА [10:11:41]line ТРК (МРК, ГНК) : 33 [10:11:41]line Товар: 2710124500 [10:11:41]line Аи-95-К-3 [10:11:41]line 13.480 * 74.20 [10:11:41]line = 1000.22 [10:11:41]line НДС 12% НСП 1% [10:11:41]line > о реализуемом товаре [10:11:41]line ОКРУГЛЕНИЕ: -0.22 [10:11:41]line ИТОГО: 1000.00 [10:11:41]line Внесено: 1000.00 [10:11:41]line СДАЧА: 0.00 [10:11:41]line НСП 1% : 8.85 [10:11:41]line НДС 12% : 106.22 [10:11:41]line Наличными: 1000.00 [10:11:41]line Безнал.: 0.00 [10:11:41]line Место: АЗС № 86 "Партнер Нефть" [10:11:41]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [10:11:41]line СНО: Общий режим [10:11:41]line Чек 110 21.10.2024 10:11 [10:11:41]line Смена: 460 ФФД: 1.0 [10:11:41]line ЗНМ: 0300000155 [10:11:41]line РНМ: 0000000000100030 [10:11:41]line Версия ККМ: 001 [10:11:41]line ФМ: 0000000000965340 [10:11:41]line ФД: 187646 [10:11:41]line ФПД: 109801307658418 [10:11:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T101142&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187646&fm=109801307658418&tin=02508201610067®Number=0000000000100030&sum=100000 [10:11:41]written 0, free lines is 4095 [10:11:41]OFD Sender: Processing packet 187646 [packets to send 1062, broken 1061] [10:11:41]ProducePacketName [10:11:41]name=ofd_packets/00187646 [10:11:41]OFD Sender: To server: pG, [10:11:41]CommunicateWithHost lk.salyk.kg:30040 [10:11:41]ConnectInit lk.salyk.kg [10:11:41]Connected sock=9 [10:11:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 49 1D 07 01 75 A2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 00 00 00 F4 03 04 00 DE 28 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 FE DC 02 00 35 04 06 00 63 DD 1B F0 58 B2 EA A4 B3 13 90 E3 73 0A [10:11:41]Write to MH i2c: 01 00 00 C7 3E 05 [10:11:41]Write i2c OK [10:11:41]MH_I2C_Read... [10:11:41]Read from MH i2c: 01 [10:11:41]MH_I2C_Read... [10:11:41]Read from MH i2c: 01 07 00 [10:11:41]MH_I2C_Read... [10:11:41]Read from MH i2c: 01 07 00 C7 3E 00 00 00 00 00 77 0C 8F [10:11:41]RasterBufferAndPrint [10:11:41]line [10:11:41]line [10:11:41]line [10:11:41]line [10:11:41]line [10:11:41]written 0, free lines is 3195 [10:11:41]MH_Cut [10:11:41]Write to MH i2c: D1 01 00 CE 3E 01 DE [10:11:41]Write i2c OK [10:11:41]MH_I2C_Read... [10:11:41]Read from MH i2c: D1 [10:11:41]MH_I2C_Read... [10:11:41]Read from MH i2c: D1 01 00 [10:11:41]MH_I2C_Read... [10:11:41]Read from MH i2c: D1 01 00 CE 3E 00 DD [10:11:41]Write to MH i2c: 01 00 00 CF 3E 0D [10:11:41]Write i2c OK [10:11:41]MH_I2C_Read... [10:11:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 9D AF 47 00 E3 DC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 FE DC 02 00 F4 03 04 00 CE D2 15 67 B6 04 01 00 00 C5 8D 18 68 2C 31 57 CE [10:11:41]CommunicateWithHost err = 0 [10:11:41]CheckOFDResponse [10:11:41]1017 (14) - 77093643461234 [10:11:41]1041 (16) - 0000000000965340 [10:11:41]1040 (4) - 187646 [10:11:41]1012 (4) - 21.10.2024 04:04 [10:11:41]1206 (1) - 0 [10:11:41]OFD Sender: Remove packet 187646 [10:11:41]ProducePacketName [10:11:41]name=ofd_packets/00187646 [10:11:41]NVStorageDeleteData [10:11:42]OFD Sender: No OFD packet to send [10:11:42]*** Cut start [10:11:42]*** Partial cut [10:11:42]*** CUTSNS_PIN = 1 [10:11:42]*** CUTSNS_PIN = 0 [10:11:42]*** Brake cut motor [10:11:43]Read from MH i2c: 01 [10:11:43]MH_I2C_Read... [10:11:43]*** Stop cut motor [10:11:43]*** Cut end [10:11:43]Read from MH i2c: 01 07 00 [10:11:43]MH_I2C_Read... [10:11:43]Read from MH i2c: 01 07 00 CF 3E 00 00 00 00 00 FF 0F 22 [10:11:43]process_action close_receipt done [10:11:43]requested_data is exist [10:11:43]produce_requested_data [10:11:43]requested_item fm.sn is exist - process it [10:11:43]wFMCommunicate request_size=4 [10:11:43]MH_SAM_APDU [10:11:43]CAPDU: 80 11 00 00 [10:11:43]Write to MH i2c: E2 08 00 D0 3E 80 11 00 00 00 00 00 00 88 [10:11:43]Write i2c OK [10:11:43]MH_I2C_Read... [10:11:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:11:43]Read from MH i2c: E2 [10:11:43]MH_I2C_Read... [10:11:43]Read from MH i2c: E2 17 00 [10:11:43]MH_I2C_Read... [10:11:43]Read from MH i2c: E2 17 00 D0 3E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 D6 [10:11:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [10:11:43]wFMCommunicate OK [10:11:43]requested_item fd.num is exist - process it [10:11:43]SAM_PROTO_GetFieldsCounters [10:11:43]wFMCommunicate request_size=4 [10:11:43]MH_SAM_APDU [10:11:43]CAPDU: 80 13 00 00 [10:11:43]Write to MH i2c: E2 08 00 D1 3E 80 13 00 00 00 00 00 00 8B [10:11:43]Write i2c OK [10:11:43]MH_I2C_Read... [10:11:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:11:43]Read from MH i2c: E2 [10:11:43]MH_I2C_Read... [10:11:43]Read from MH i2c: E2 62 00 [10:11:43]MH_I2C_Read... [10:11:43]Read from MH i2c: E2 62 00 D1 3E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 FE DC 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 6E 00 00 00 5E 04 04 00 6E 00 00 00 57 04 04 00 6F 00 00 00 19 04 04 00 00 00 00 00 90 00 85 [10:11:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 FE DC 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 6E 00 00 00 5E 04 04 00 6E 00 00 00 57 04 04 00 6F 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:11:43]wFMCommunicate OK [10:11:43]SAM_PROTO_GetFieldsCounters done [10:11:43]requested_item shift.num is exist - process it [10:11:43]requested_item shift.opened is exist - process it [10:11:43]req_shift_opened [10:11:43]FM_GetShiftState [10:11:43]SAM_PROTO_GetShiftState [10:11:43]wFMCommunicate request_size=4 [10:11:43]MH_SAM_APDU [10:11:43]CAPDU: 80 13 01 00 [10:11:43]Write to MH i2c: E2 08 00 D2 3E 80 13 01 00 00 00 00 00 8D [10:11:43]Write i2c OK [10:11:43]MH_I2C_Read... [10:11:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:11:43]Read from MH i2c: E2 [10:11:43]MH_I2C_Read... [10:11:43]Read from MH i2c: E2 0E 00 [10:11:43]MH_I2C_Read... [10:11:43]Read from MH i2c: E2 0E 00 D2 3E 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 EC [10:11:43]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [10:11:43]wFMCommunicate OK [10:11:43]SAM_PROTO_GetShiftState done [10:11:43]FM_GetShiftState done [10:11:43]req_shift_opened done [10:11:43]requested_item shift.open_date is exist - process it [10:11:43]req_shift_open_date [10:11:43]req_shift_open_date done [10:11:43]produce_requested_data done [10:11:43]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187646,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [10:11:43]process_action_free close_receipt [10:11:43]json_value_free [10:11:43]json_value_free done [10:11:43]process_json_proto returns [10:11:43]Send response to host [10:11:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187646,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [10:11:43]free response buf [10:11:43]execute_script done [10:11:43]execute_script returns [10:11:43]free content buf [10:11:43]Sock 10.Close socket [10:11:43]Sock 10.Thread stoped [10:11:47]OFD Sender: No OFD packet to send [10:11:52]OFD Sender: No OFD packet to send [10:11:57]OFD Sender: No OFD packet to send [10:12:02]OFD Sender: No OFD packet to send [10:12:07]OFD Sender: No OFD packet to send [10:12:12]OFD Sender: No OFD packet to send [10:12:17]OFD Sender: No OFD packet to send [10:12:22]OFD Sender: No OFD packet to send [10:12:27]OFD Sender: No OFD packet to send [10:12:32]OFD Sender: No OFD packet to send [10:12:37]OFD Sender: No OFD packet to send [10:12:42]OFD Sender: No OFD packet to send [10:12:47]OFD Sender: No OFD packet to send [10:12:52]OFD Sender: No OFD packet to send [10:12:57]OFD Sender: No OFD packet to send [10:13:02]OFD Sender: No OFD packet to send [10:13:07]OFD Sender: No OFD packet to send [10:13:12]OFD Sender: No OFD packet to send [10:13:17]OFD Sender: No OFD packet to send [10:13:22]OFD Sender: No OFD packet to send [10:13:27]OFD Sender: No OFD packet to send [10:13:29]accept exits with 8 [10:13:29]New connection [10:13:29]New thread 3067014500 created [10:13:29]Thread 3067157860 joined [10:13:29]Waiting for new connection... [10:13:29] Sock 8.Parse request [10:13:29]Sock 8.Check first char [10:13:29]Sock 8.First char is OK [10:13:29]request: POST /json_proto HTTP/1.0 [10:13:29]Method: POST [10:13:29]URL: /json_proto [10:13:29]Method is POST - this is cgi request [10:13:29]url: /json_proto [10:13:29]query_string will be loaded in cgi processing [10:13:29]execute_cgi json_proto POST (null) [10:13:29]execute_cgi path=json_proto method=POST [10:13:29]POST find Content-Length [10:13:29]Host: 172.17.42.131:8080 [10:13:29]Content-Length: 678 [10:13:29]Content-Type: application/json [10:13:29] [10:13:29]POST finish read [10:13:29]Found Content-Length = 678 [10:13:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209699", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:13:29]execute_script... [10:13: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)209699", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:13:29]POST & json_proto [10:13:29]process_json_proto [10:13:29]json parsed OK: [10:13:29]protocol is kg_v1.0 [10:13:29]action value=close_receipt [10:13:29]process_action close_receipt [10:13:29]cmd_close_receipt [10:13:29]MH_GetDate [10:13:29]Write to MH i2c: F0 00 00 D3 3E 00 [10:13:29]Write i2c OK [10:13:29]MH_I2C_Read... [10:13:29]Read from MH i2c: F0 [10:13:29]MH_I2C_Read... [10:13:29]Read from MH i2c: F0 09 00 [10:13:29]MH_I2C_Read... [10:13:29]Read from MH i2c: F0 09 00 D3 3E 00 4D 29 16 67 A0 18 CA 66 E4 [10:13:29]GetLastDocTimeStamp 1729505502 [10:13:29]current date 1729505613 [10:13:29]FM_GetShiftState [10:13:29]SAM_PROTO_GetShiftState [10:13:29]wFMCommunicate request_size=4 [10:13:29]MH_SAM_APDU [10:13:29]CAPDU: 80 13 01 00 [10:13:29]Write to MH i2c: E2 08 00 D4 3E 80 13 01 00 00 00 00 00 8F [10:13:29]Write i2c OK [10:13:29]MH_I2C_Read... [10:13:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:13:29]Read from MH i2c: E2 [10:13:29]MH_I2C_Read... [10:13:29]Read from MH i2c: E2 0E 00 [10:13:29]MH_I2C_Read... [10:13:29]Read from MH i2c: E2 0E 00 D4 3E 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 EE [10:13:29]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [10:13:29]wFMCommunicate OK [10:13:29]SAM_PROTO_GetShiftState done [10:13:29]FM_GetShiftState done [10:13:29]opened in 1729469754 [10:13:29]opened+sec_in_day 1729556154 [10:13:29]quantity*price = 70044 [10:13:29]sum+1 = 70045 [10:13: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 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 111 21.10.2024 10:13 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 187647 ФПД: 121923540569100 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T101333&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187647&fm=121923540569100&tin=02508201610067®Number=0000000000100030&sum=70000 [10:13:31]StoreToDocumentArchive [10:13:31]shift 460 fd 187647 [10:13:31]save to /storage/0460/doc_00187647 [10:13:31]save last doc name /storage/0460/doc_00187647 to /storage/kkm_last_doc_name [10:13:31]save OK [10:13:31]Clear old archive folders... [10:13:31]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:13:31]tlvbuf is 010A09D0 [10:13:31]SAM_PROTO_ClearQueue [10:13:31]wFMCommunicate request_size=4 [10:13:31]MH_SAM_APDU [10:13:31]CAPDU: 80 09 00 00 [10:13:31]Write to MH i2c: E2 08 00 E1 3E 80 09 00 00 00 00 00 00 91 [10:13:31]Write i2c OK [10:13:31]MH_I2C_Read... [10:13:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:13:31]Read from MH i2c: E2 [10:13:31]MH_I2C_Read... [10:13:31]Read from MH i2c: E2 03 00 [10:13:31]MH_I2C_Read... [10:13:31]Read from MH i2c: E2 03 00 E1 3E 00 90 00 93 [10:13:31]RAPDU: 90 00 [10:13:31]wFMCommunicate OK [10:13:31]SAM_PROTO_ClearQueue done [10:13:31]KKMCreateOFDPacket [10:13:31]OFDProtocolAddRootSTLVToBuf [10:13:31]FM_MakeSignedData [10:13:31]FM_MakeSignedData [10:13:31]SAM_PROTO_SignData [10:13:31]wFMCommunicate request_size=4 [10:13:31]MH_SAM_APDU [10:13:31]CAPDU: 80 0D 01 02 [10:13:31]Write to MH i2c: E2 08 00 E2 3E 80 0D 01 02 00 00 00 00 99 [10:13:31]Write i2c OK [10:13:31]MH_I2C_Read... [10:13:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:13:31]Read from MH i2c: E2 [10:13:31]MH_I2C_Read... [10:13:31]Read from MH i2c: E2 03 00 [10:13:31]MH_I2C_Read... [10:13:31]Read from MH i2c: E2 03 00 E2 3E 00 90 00 94 [10:13:31]RAPDU: 90 00 [10:13:31]wFMCommunicate OK [10:13:31]wFMCommunicate request_size=255 [10:13:31]MH_SAM_APDU [10:13: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 33 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 6F 00 00 00 F4 03 04 00 4D 29 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 FF DC 02 00 35 04 06 00 6E [10:13:31]Write to MH i2c: E2 02 01 E3 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 33 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 6F 00 00 00 F4 03 04 00 4D 29 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 FF DC 02 00 35 04 06 00 6E 00 00 96 [10:13:31]Write i2c OK [10:13:31]MH_I2C_Read... [10:13:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:13:31]Read from MH i2c: E2 [10:13:31]MH_I2C_Read... [10:13:31]Read from MH i2c: E2 03 00 [10:13:31]MH_I2C_Read... [10:13:31]Read from MH i2c: E2 03 00 E3 3E 00 90 00 95 [10:13:31]RAPDU: 90 00 [10:13:31]wFMCommunicate OK [10:13:31]wFMCommunicate request_size=10 [10:13:31]MH_SAM_APDU [10:13:31]CAPDU: 80 0D 02 02 05 E3 89 53 4C 0C [10:13:31]Write to MH i2c: E2 0D 00 E4 3E 80 0D 02 02 05 00 E3 89 53 4C 0C 00 00 BD [10:13:31]Write i2c OK [10:13:31]MH_I2C_Read... [10:13:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:13:31]Read from MH i2c: E2 [10:13:31]MH_I2C_Read... [10:13:31]Read from MH i2c: E2 03 00 [10:13:31]MH_I2C_Read... [10:13:31]Read from MH i2c: E2 03 00 E4 3E 00 90 00 96 [10:13:31]RAPDU: 90 00 [10:13:31]wFMCommunicate OK [10:13:31]wFMCommunicate request_size=4 [10:13:31]MH_SAM_APDU [10:13:31]CAPDU: 80 0D 03 02 [10:13:31]Write to MH i2c: E2 08 00 E5 3E 80 0D 03 02 00 00 00 00 9E [10:13:31]Write i2c OK [10:13:31]MH_I2C_Read... [10:13:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:13:31]Read from MH i2c: E2 [10:13:31]MH_I2C_Read... [10:13:31]Read from MH i2c: E2 0B 00 [10:13:31]MH_I2C_Read... [10:13:31]Read from MH i2c: E2 0B 00 E5 3E 00 7D D8 51 86 FC 67 00 0F 90 00 3D [10:13:31]RAPDU: 7D D8 51 86 FC 67 00 0F 90 00 [10:13:31]wFMCommunicate OK [10:13:31]SAM_PROTO_SignData done [10:13:31]FM_MakeSignedData done [10:13:31]CreateOFDProtocolMessage [10:13:31]wFMCommunicate request_size=4 [10:13:31]MH_SAM_APDU [10:13:31]CAPDU: 80 11 00 00 [10:13:31]Write to MH i2c: E2 08 00 E6 3E 80 11 00 00 00 00 00 00 9E [10:13:31]Write i2c OK [10:13:31]MH_I2C_Read... [10:13:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:13:31]Read from MH i2c: E2 [10:13:31]MH_I2C_Read... [10:13:31]Read from MH i2c: E2 17 00 [10:13:31]MH_I2C_Read... [10:13:31]Read from MH i2c: E2 17 00 E6 3E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 EC [10:13:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [10:13:31]wFMCommunicate OK [10:13:31]CreateOFDProtocolMessage done [10:13:31]OFDSenderStorePacket 187647 [10:13:31]StoreOFDPacket docnum=187647 [10:13:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 A6 73 07 01 53 39 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 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 6F 00 00 00 F4 03 04 00 4D 29 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 FF DC 02 00 35 04 06 00 6E E3 89 53 4C 0C 7D D8 51 86 FC 67 00 0F [10:13:31]CheckFolder [10:13:31]dirname=/storage/ofd_packets [10:13:31]CheckFolder done [10:13:31]ProducePacketName [10:13:31]name=ofd_packets/00187647 [10:13:31]NVStorageSaveData ofd_packets/00187647 [10:13:31]File name is /storage/ofd_packets/00187647 [10:13:31]Write 301 bytes [10:13:31]NVStorageSaveData done [10:13:31]OFDSenderStorePacket done [10:13:31]KKMCreateOFDPacket done [10:13:31]NVStorageSaveData kkm_last_timestamp [10:13:31]File name is /storage/kkm_last_timestamp [10:13:31]Write 4 bytes [10:13:31]NVStorageSaveData done [10:13:31]ExternCall_PrintAddStr [10:13:31]wPrintStart [10:13:31]Write to MH i2c: 01 00 00 E7 3E 25 [10:13:31]Write i2c OK [10:13:31]MH_I2C_Read... [10:13:31]Read from MH i2c: 01 [10:13:31]MH_I2C_Read... [10:13:31]Read from MH i2c: 01 07 00 [10:13:31]MH_I2C_Read... [10:13:31]Read from MH i2c: 01 07 00 E7 3E 00 00 00 00 00 FF 0F 3A [10:13:31]RasterBufferAndPrint [10:13:31]line Счет N : (1)209699 [10:13:31]line ИНН: 02508201610067 [10:13:31]line Контрольно-Кассовый Чек [10:13:31]line ПРОДАЖА [10:13:31]line ТРК (МРК, ГНК) : 22 [10:13:31]line Товар: 2710124130 [10:13:31]line Аи-92-К-3 [10:13:31]line 10.470 * 66.90 [10:13:31]line = 700.44 [10:13:31]line НДС 12% НСП 1% [10:13:31]line > о реализуемом товаре [10:13:31]line ОКРУГЛЕНИЕ: -0.44 [10:13:31]line ИТОГО: 700.00 [10:13:31]line Внесено: 700.00 [10:13:31]line СДАЧА: 0.00 [10:13:31]line НСП 1% : 6.20 [10:13:31]line НДС 12% : 74.38 [10:13:31]line Наличными: 700.00 [10:13:31]line Безнал.: 0.00 [10:13:31]line Место: АЗС № 86 "Партнер Нефть" [10:13:31]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [10:13:31]line СНО: Общий режим [10:13:31]line Чек 111 21.10.2024 10:13 [10:13:31]line Смена: 460 ФФД: 1.0 [10:13:31]line ЗНМ: 0300000155 [10:13:31]line РНМ: 0000000000100030 [10:13:31]line Версия ККМ: 001 [10:13:31]line ФМ: 0000000000965340 [10:13:31]line ФД: 187647 [10:13:31]line ФПД: 121923540569100 [10:13:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T101333&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187647&fm=121923540569100&tin=02508201610067®Number=0000000000100030&sum=70000 [10:13:31]written 0, free lines is 4095 [10:13:31]OFD Sender: Processing packet 187647 [packets to send 1062, broken 1061] [10:13:31]ProducePacketName [10:13:31]name=ofd_packets/00187647 [10:13:31]OFD Sender: To server: pG, [10:13:31]CommunicateWithHost lk.salyk.kg:30040 [10:13:31]ConnectInit lk.salyk.kg [10:13:31]Connected sock=10 [10:13:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 A6 73 07 01 53 39 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 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 6F 00 00 00 F4 03 04 00 4D 29 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 FF DC 02 00 35 04 06 00 6E E3 89 53 4C 0C 7D D8 51 86 FC 67 00 0F [10:13:32]Write to MH i2c: 01 00 00 12 3F 51 [10:13:32]Write i2c OK [10:13:32]MH_I2C_Read... [10:13:32]Read from MH i2c: 01 [10:13:32]MH_I2C_Read... [10:13:32]Read from MH i2c: 01 07 00 [10:13:32]MH_I2C_Read... [10:13:32]Read from MH i2c: 01 07 00 12 3F 00 00 00 00 00 78 0C DC [10:13:32]RasterBufferAndPrint [10:13:32]line [10:13:32]line [10:13:32]line [10:13:32]line [10:13:32]line [10:13:32]written 0, free lines is 3195 [10:13:32]MH_Cut [10:13:32]Write to MH i2c: D1 01 00 19 3F 01 2A [10:13:32]Write i2c OK [10:13:32]MH_I2C_Read... [10:13:32]Read from MH i2c: D1 [10:13:32]MH_I2C_Read... [10:13:32]Read from MH i2c: D1 01 00 [10:13:32]MH_I2C_Read... [10:13:32]Read from MH i2c: D1 01 00 19 3F 00 29 [10:13:32]Write to MH i2c: 01 00 00 1A 3F 59 [10:13:32]Write i2c OK [10:13:32]MH_I2C_Read... [10:13:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 7A EB 47 00 83 5F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 FF DC 02 00 F4 03 04 00 3D D3 15 67 B6 04 01 00 00 01 64 E0 B2 0E 7B 74 AF [10:13:32]CommunicateWithHost err = 0 [10:13:32]CheckOFDResponse [10:13:32]1017 (14) - 77093643461234 [10:13:32]1041 (16) - 0000000000965340 [10:13:32]1040 (4) - 187647 [10:13:32]1012 (4) - 21.10.2024 04:06 [10:13:32]1206 (1) - 0 [10:13:32]OFD Sender: Remove packet 187647 [10:13:32]ProducePacketName [10:13:32]name=ofd_packets/00187647 [10:13:32]NVStorageDeleteData [10:13:32]OFD Sender: No OFD packet to send [10:13:33]*** Cut start [10:13:33]*** Partial cut [10:13:33]*** CUTSNS_PIN = 1 [10:13:33]*** CUTSNS_PIN = 0 [10:13:33]*** Brake cut motor [10:13:33]Read from MH i2c: 01 [10:13:33]MH_I2C_Read... [10:13:33]*** Stop cut motor [10:13:33]*** Cut end [10:13:33]Read from MH i2c: 01 07 00 [10:13:33]MH_I2C_Read... [10:13:33]Read from MH i2c: 01 07 00 1A 3F 00 00 00 00 00 FF 0F 6E [10:13:33]process_action close_receipt done [10:13:33]requested_data is exist [10:13:33]produce_requested_data [10:13:33]requested_item fm.sn is exist - process it [10:13:33]wFMCommunicate request_size=4 [10:13:33]MH_SAM_APDU [10:13:33]CAPDU: 80 11 00 00 [10:13:33]Write to MH i2c: E2 08 00 1B 3F 80 11 00 00 00 00 00 00 D4 [10:13:33]Write i2c OK [10:13:33]MH_I2C_Read... [10:13:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:13:33]Read from MH i2c: E2 [10:13:33]MH_I2C_Read... [10:13:33]Read from MH i2c: E2 17 00 [10:13:33]MH_I2C_Read... [10:13:33]Read from MH i2c: E2 17 00 1B 3F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 22 [10:13:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [10:13:33]wFMCommunicate OK [10:13:33]requested_item fd.num is exist - process it [10:13:33]SAM_PROTO_GetFieldsCounters [10:13:33]wFMCommunicate request_size=4 [10:13:33]MH_SAM_APDU [10:13:33]CAPDU: 80 13 00 00 [10:13:33]Write to MH i2c: E2 08 00 1C 3F 80 13 00 00 00 00 00 00 D7 [10:13:33]Write i2c OK [10:13:33]MH_I2C_Read... [10:13:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:13:33]Read from MH i2c: E2 [10:13:33]MH_I2C_Read... [10:13:33]Read from MH i2c: E2 62 00 [10:13:33]MH_I2C_Read... [10:13:33]Read from MH i2c: E2 62 00 1C 3F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 FF DC 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 6F 00 00 00 5E 04 04 00 6F 00 00 00 57 04 04 00 70 00 00 00 19 04 04 00 00 00 00 00 90 00 D5 [10:13:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 FF DC 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 6F 00 00 00 5E 04 04 00 6F 00 00 00 57 04 04 00 70 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:13:33]wFMCommunicate OK [10:13:33]SAM_PROTO_GetFieldsCounters done [10:13:33]requested_item shift.num is exist - process it [10:13:33]requested_item shift.opened is exist - process it [10:13:33]req_shift_opened [10:13:33]FM_GetShiftState [10:13:33]SAM_PROTO_GetShiftState [10:13:33]wFMCommunicate request_size=4 [10:13:33]MH_SAM_APDU [10:13:33]CAPDU: 80 13 01 00 [10:13:33]Write to MH i2c: E2 08 00 1D 3F 80 13 01 00 00 00 00 00 D9 [10:13:33]Write i2c OK [10:13:33]MH_I2C_Read... [10:13:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:13:34]Read from MH i2c: E2 [10:13:34]MH_I2C_Read... [10:13:34]Read from MH i2c: E2 0E 00 [10:13:34]MH_I2C_Read... [10:13:34]Read from MH i2c: E2 0E 00 1D 3F 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 38 [10:13:34]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [10:13:34]wFMCommunicate OK [10:13:34]SAM_PROTO_GetShiftState done [10:13:34]FM_GetShiftState done [10:13:34]req_shift_opened done [10:13:34]requested_item shift.open_date is exist - process it [10:13:34]req_shift_open_date [10:13:34]req_shift_open_date done [10:13:34]produce_requested_data done [10:13:34]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187647,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [10:13:34]process_action_free close_receipt [10:13:34]json_value_free [10:13:34]json_value_free done [10:13:34]process_json_proto returns [10:13:34]Send response to host [10:13:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187647,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [10:13:34]free response buf [10:13:34]execute_script done [10:13:34]execute_script returns [10:13:34]free content buf [10:13:34]Sock 8.Close socket [10:13:34]Sock 8.Thread stoped [10:13:37]OFD Sender: No OFD packet to send [10:13:42]OFD Sender: No OFD packet to send [10:13:47]OFD Sender: No OFD packet to send [10:13:52]OFD Sender: No OFD packet to send [10:13:57]accept exits with 9 [10:13:57]New connection [10:13:57]New thread 3067157860 created [10:13:57]Thread 3067014500 joined [10:13:57]Waiting for new connection... [10:13:57] Sock 9.Parse request [10:13:57]Sock 9.Check first char [10:13:57]Sock 9.First char is OK [10:13:57]request: POST /json_proto HTTP/1.0 [10:13:57]Method: POST [10:13:57]URL: /json_proto [10:13:57]Method is POST - this is cgi request [10:13:57]url: /json_proto [10:13:57]query_string will be loaded in cgi processing [10:13:57]execute_cgi json_proto POST (null) [10:13:57]execute_cgi path=json_proto method=POST [10:13:57]POST find Content-Length [10:13:57]Host: 172.17.42.131:8080 [10:13:57]Content-Length: 688 [10:13:57]Content-Type: application/json [10:13:57] [10:13:57]POST finish read [10:13:57]Found Content-Length = 688 [10:13:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209700", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 12.960, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:13:57]execute_script... [10:13: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)209700", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 12.960, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:13:57]POST & json_proto [10:13:57]process_json_proto [10:13:57]json parsed OK: [10:13:57]protocol is kg_v1.0 [10:13:57]action value=close_receipt [10:13:57]process_action close_receipt [10:13:57]cmd_close_receipt [10:13:57]MH_GetDate [10:13:57]Write to MH i2c: F0 00 00 1E 3F 4C [10:13:57]Write i2c OK [10:13:57]MH_I2C_Read... [10:13:57]Read from MH i2c: F0 [10:13:57]MH_I2C_Read... [10:13:57]Read from MH i2c: F0 09 00 [10:13:57]MH_I2C_Read... [10:13:57]Read from MH i2c: F0 09 00 1E 3F 00 69 29 16 67 A0 18 CA 66 4C [10:13:57]GetLastDocTimeStamp 1729505613 [10:13:57]current date 1729505641 [10:13:57]FM_GetShiftState [10:13:57]SAM_PROTO_GetShiftState [10:13:57]wFMCommunicate request_size=4 [10:13:57]MH_SAM_APDU [10:13:57]CAPDU: 80 13 01 00 [10:13:57]Write to MH i2c: E2 08 00 1F 3F 80 13 01 00 00 00 00 00 DB [10:13:57]Write i2c OK [10:13:57]MH_I2C_Read... [10:13:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:13:57]Read from MH i2c: E2 [10:13:57]MH_I2C_Read... [10:13:57]Read from MH i2c: E2 0E 00 [10:13:57]MH_I2C_Read... [10:13:57]Read from MH i2c: E2 0E 00 1F 3F 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 3A [10:13:57]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [10:13:57]wFMCommunicate OK [10:13:57]SAM_PROTO_GetShiftState done [10:13:57]FM_GetShiftState done [10:13:57]opened in 1729469754 [10:13:57]opened+sec_in_day 1729556154 [10:13:57]quantity*price = 100051 [10:13:57]sum+1 = 100052 [10:13: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 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 112 21.10.2024 10:14 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 187648 ФПД: 90562883456015 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T101401&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187648&fm=90562883456015&tin=02508201610067®Number=0000000000100030&sum=100000 [10:13:58]StoreToDocumentArchive [10:13:58]shift 460 fd 187648 [10:13:58]save to /storage/0460/doc_00187648 [10:13:58]save last doc name /storage/0460/doc_00187648 to /storage/kkm_last_doc_name [10:13:58]save OK [10:13:58]Clear old archive folders... [10:13:58]ProcessDocumentItem done err = 0, tmpTLVsize=257 [10:13:58]tlvbuf is 0116FC10 [10:13:58]SAM_PROTO_ClearQueue [10:13:58]wFMCommunicate request_size=4 [10:13:58]MH_SAM_APDU [10:13:58]CAPDU: 80 09 00 00 [10:13:58]Write to MH i2c: E2 08 00 2C 3F 80 09 00 00 00 00 00 00 DD [10:13:58]Write i2c OK [10:13:58]MH_I2C_Read... [10:13:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:13:58]Read from MH i2c: E2 [10:13:58]MH_I2C_Read... [10:13:58]Read from MH i2c: E2 03 00 [10:13:58]MH_I2C_Read... [10:13:58]Read from MH i2c: E2 03 00 2C 3F 00 90 00 DF [10:13:58]RAPDU: 90 00 [10:13:58]wFMCommunicate OK [10:13:58]SAM_PROTO_ClearQueue done [10:13:58]KKMCreateOFDPacket [10:13:58]OFDProtocolAddRootSTLVToBuf [10:13:58]FM_MakeSignedData [10:13:58]FM_MakeSignedData [10:13:58]SAM_PROTO_SignData [10:13:58]wFMCommunicate request_size=4 [10:13:58]MH_SAM_APDU [10:13:58]CAPDU: 80 0D 01 02 [10:13:58]Write to MH i2c: E2 08 00 2D 3F 80 0D 01 02 00 00 00 00 E5 [10:13:58]Write i2c OK [10:13:58]MH_I2C_Read... [10:13:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:13:58]Read from MH i2c: E2 [10:13:58]MH_I2C_Read... [10:13:58]Read from MH i2c: E2 03 00 [10:13:58]MH_I2C_Read... [10:13:58]Read from MH i2c: E2 03 00 2D 3F 00 90 00 E0 [10:13:58]RAPDU: 90 00 [10:13:58]wFMCommunicate OK [10:13:58]wFMCommunicate request_size=255 [10:13:58]MH_SAM_APDU [10:13:58]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 00 00 00 F4 03 04 00 69 29 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 00 DD 02 [10:13:58]Write to MH i2c: E2 02 01 2E 3F 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 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 00 00 00 F4 03 04 00 69 29 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 00 DD 02 00 00 6D [10:13:58]Write i2c OK [10:13:58]MH_I2C_Read... [10:13:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:13:58]Read from MH i2c: E2 [10:13:58]MH_I2C_Read... [10:13:58]Read from MH i2c: E2 03 00 [10:13:58]MH_I2C_Read... [10:13:58]Read from MH i2c: E2 03 00 2E 3F 00 90 00 E1 [10:13:58]RAPDU: 90 00 [10:13:58]wFMCommunicate OK [10:13:58]wFMCommunicate request_size=16 [10:13:58]MH_SAM_APDU [10:13:58]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 52 5D D0 7F 8C 0F [10:13:58]Write to MH i2c: E2 13 00 2F 3F 80 0D 02 02 0B 00 00 35 04 06 00 52 5D D0 7F 8C 0F 00 00 D6 [10:13:58]Write i2c OK [10:13:58]MH_I2C_Read... [10:13:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:13:59]Read from MH i2c: E2 [10:13:59]MH_I2C_Read... [10:13:59]Read from MH i2c: E2 03 00 [10:13:59]MH_I2C_Read... [10:13:59]Read from MH i2c: E2 03 00 2F 3F 00 90 00 E2 [10:13:59]RAPDU: 90 00 [10:13:59]wFMCommunicate OK [10:13:59]wFMCommunicate request_size=4 [10:13:59]MH_SAM_APDU [10:13:59]CAPDU: 80 0D 03 02 [10:13:59]Write to MH i2c: E2 08 00 30 3F 80 0D 03 02 00 00 00 00 EA [10:13:59]Write i2c OK [10:13:59]MH_I2C_Read... [10:13:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:13:59]Read from MH i2c: E2 [10:13:59]MH_I2C_Read... [10:13:59]Read from MH i2c: E2 0B 00 [10:13:59]MH_I2C_Read... [10:13:59]Read from MH i2c: E2 0B 00 30 3F 00 4A 29 82 9D 16 E8 20 FC 90 00 97 [10:13:59]RAPDU: 4A 29 82 9D 16 E8 20 FC 90 00 [10:13:59]wFMCommunicate OK [10:13:59]SAM_PROTO_SignData done [10:13:59]FM_MakeSignedData done [10:13:59]CreateOFDProtocolMessage [10:13:59]wFMCommunicate request_size=4 [10:13:59]MH_SAM_APDU [10:13:59]CAPDU: 80 11 00 00 [10:13:59]Write to MH i2c: E2 08 00 31 3F 80 11 00 00 00 00 00 00 EA [10:13:59]Write i2c OK [10:13:59]MH_I2C_Read... [10:13:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:13:59]Read from MH i2c: E2 [10:13:59]MH_I2C_Read... [10:13:59]Read from MH i2c: E2 17 00 [10:13:59]MH_I2C_Read... [10:13:59]Read from MH i2c: E2 17 00 31 3F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 38 [10:13:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [10:13:59]wFMCommunicate OK [10:13:59]CreateOFDProtocolMessage done [10:13:59]OFDSenderStorePacket 187648 [10:13:59]StoreOFDPacket docnum=187648 [10:13:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 7C AE 0D 01 ED 18 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 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 00 00 00 F4 03 04 00 69 29 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 00 DD 02 00 35 04 06 00 52 5D D0 7F 8C 0F 4A 29 82 9D 16 E8 20 FC [10:13:59]CheckFolder [10:13:59]dirname=/storage/ofd_packets [10:13:59]CheckFolder done [10:13:59]ProducePacketName [10:13:59]name=ofd_packets/00187648 [10:13:59]NVStorageSaveData ofd_packets/00187648 [10:13:59]File name is /storage/ofd_packets/00187648 [10:13:59]Write 307 bytes [10:13:59]NVStorageSaveData done [10:13:59]OFDSenderStorePacket done [10:13:59]KKMCreateOFDPacket done [10:13:59]NVStorageSaveData kkm_last_timestamp [10:13:59]File name is /storage/kkm_last_timestamp [10:13:59]Write 4 bytes [10:13:59]NVStorageSaveData done [10:13:59]ExternCall_PrintAddStr [10:13:59]wPrintStart [10:13:59]Write to MH i2c: 01 00 00 32 3F 71 [10:13:59]Write i2c OK [10:13:59]MH_I2C_Read... [10:13:59]Read from MH i2c: 01 [10:13:59]MH_I2C_Read... [10:13:59]Read from MH i2c: 01 07 00 [10:13:59]MH_I2C_Read... [10:13:59]Read from MH i2c: 01 07 00 32 3F 00 00 00 00 00 FF 0F 86 [10:13:59]RasterBufferAndPrint [10:13:59]line Счет N : (1)209700 [10:13:59]line ИНН: 02508201610067 [10:13:59]line Контрольно-Кассовый Чек [10:13:59]line ПРОДАЖА [10:13:59]line ТРК (МРК, ГНК) : 41 [10:13:59]line Товар: 2710194210 [10:13:59]line D-ENERGY ДТ-К-5 [10:13:59]line 12.960 * 77.20 [10:13:59]line = 1000.51 [10:13:59]line НДС 12% НСП 1% [10:13:59]line > о реализуемом товаре [10:13:59]line ОКРУГЛЕНИЕ: -0.51 [10:13:59]line ИТОГО: 1000.00 [10:13:59]line Внесено: 1000.00 [10:13:59]line СДАЧА: 0.00 [10:13:59]line НСП 1% : 8.85 [10:13:59]line НДС 12% : 106.25 [10:13:59]line Наличными: 1000.00 [10:13:59]line Безнал.: 0.00 [10:13:59]line Место: АЗС № 86 "Партнер Нефть" [10:13:59]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [10:13:59]line СНО: Общий режим [10:13:59]line Чек 112 21.10.2024 10:14 [10:13:59]line Смена: 460 ФФД: 1.0 [10:13:59]line ЗНМ: 0300000155 [10:13:59]line РНМ: 0000000000100030 [10:13:59]line Версия ККМ: 001 [10:13:59]line ФМ: 0000000000965340 [10:13:59]line ФД: 187648 [10:13:59]line ФПД: 90562883456015 [10:13:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T101401&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187648&fm=90562883456015&tin=02508201610067®Number=0000000000100030&sum=100000 [10:13:59]written 0, free lines is 4095 [10:13:59]OFD Sender: Processing packet 187648 [packets to send 1062, broken 1061] [10:13:59]ProducePacketName [10:13:59]name=ofd_packets/00187648 [10:13:59]OFD Sender: To server: pG, [10:13:59]CommunicateWithHost lk.salyk.kg:30040 [10:13:59]ConnectInit lk.salyk.kg [10:13:59]Connected sock=10 [10:13:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 7C AE 0D 01 ED 18 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 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 00 00 00 F4 03 04 00 69 29 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 00 DD 02 00 35 04 06 00 52 5D D0 7F 8C 0F 4A 29 82 9D 16 E8 20 FC [10:13:59]Write to MH i2c: 01 00 00 5D 3F 9C [10:13:59]Write i2c OK [10:13:59]MH_I2C_Read... [10:13:59]Read from MH i2c: 01 [10:13:59]MH_I2C_Read... [10:13:59]Read from MH i2c: 01 07 00 [10:13:59]MH_I2C_Read... [10:13:59]Read from MH i2c: 01 07 00 5D 3F 00 00 00 00 00 7E 0C 2D [10:13:59]RasterBufferAndPrint [10:13:59]line [10:13:59]line [10:13:59]line [10:13:59]line [10:13:59]line [10:13:59]written 0, free lines is 3202 [10:13:59]MH_Cut [10:13:59]Write to MH i2c: D1 01 00 64 3F 01 75 [10:13:59]Write i2c OK [10:13:59]MH_I2C_Read... [10:13:59]Read from MH i2c: D1 [10:13:59]MH_I2C_Read... [10:13:59]Read from MH i2c: D1 01 00 [10:13:59]MH_I2C_Read... [10:13:59]Read from MH i2c: D1 01 00 64 3F 00 74 [10:13:59]Write to MH i2c: 01 00 00 65 3F A4 [10:13:59]Write i2c OK [10:13:59]MH_I2C_Read... [10:13:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 0F EA 47 00 76 F6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 00 DD 02 00 F4 03 04 00 58 D3 15 67 B6 04 01 00 00 69 70 58 1E 3F B4 4D 40 [10:13:59]CommunicateWithHost err = 0 [10:13:59]CheckOFDResponse [10:13:59]1017 (14) - 77093643461234 [10:13:59]1041 (16) - 0000000000965340 [10:13:59]1040 (4) - 187648 [10:13:59]1012 (4) - 21.10.2024 04:06 [10:13:59]1206 (1) - 0 [10:13:59]OFD Sender: Remove packet 187648 [10:13:59]ProducePacketName [10:13:59]name=ofd_packets/00187648 [10:13:59]NVStorageDeleteData [10:14:00]OFD Sender: No OFD packet to send [10:14:00]*** Cut start [10:14:00]*** Partial cut [10:14:00]*** CUTSNS_PIN = 1 [10:14:00]*** CUTSNS_PIN = 0 [10:14:00]*** Brake cut motor [10:14:01]Read from MH i2c: 01 [10:14:01]MH_I2C_Read... [10:14:01]*** Stop cut motor [10:14:01]*** Cut end [10:14:01]Read from MH i2c: 01 07 00 [10:14:01]MH_I2C_Read... [10:14:01]Read from MH i2c: 01 07 00 65 3F 00 00 00 00 00 FF 0F B9 [10:14:01]process_action close_receipt done [10:14:01]requested_data is exist [10:14:01]produce_requested_data [10:14:01]requested_item fm.sn is exist - process it [10:14:01]wFMCommunicate request_size=4 [10:14:01]MH_SAM_APDU [10:14:01]CAPDU: 80 11 00 00 [10:14:01]Write to MH i2c: E2 08 00 66 3F 80 11 00 00 00 00 00 00 1F [10:14:01]Write i2c OK [10:14:01]MH_I2C_Read... [10:14:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:14:01]Read from MH i2c: E2 [10:14:01]MH_I2C_Read... [10:14:01]Read from MH i2c: E2 17 00 [10:14:01]MH_I2C_Read... [10:14:01]Read from MH i2c: E2 17 00 66 3F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 6D [10:14:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [10:14:01]wFMCommunicate OK [10:14:01]requested_item fd.num is exist - process it [10:14:01]SAM_PROTO_GetFieldsCounters [10:14:01]wFMCommunicate request_size=4 [10:14:01]MH_SAM_APDU [10:14:01]CAPDU: 80 13 00 00 [10:14:01]Write to MH i2c: E2 08 00 67 3F 80 13 00 00 00 00 00 00 22 [10:14:01]Write i2c OK [10:14:01]MH_I2C_Read... [10:14:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:14:01]Read from MH i2c: E2 [10:14:01]MH_I2C_Read... [10:14:01]Read from MH i2c: E2 62 00 [10:14:01]MH_I2C_Read... [10:14:01]Read from MH i2c: E2 62 00 67 3F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 00 DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 70 00 00 00 5E 04 04 00 70 00 00 00 57 04 04 00 71 00 00 00 19 04 04 00 00 00 00 00 90 00 25 [10:14:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 00 DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 70 00 00 00 5E 04 04 00 70 00 00 00 57 04 04 00 71 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:14:01]wFMCommunicate OK [10:14:01]SAM_PROTO_GetFieldsCounters done [10:14:01]requested_item shift.num is exist - process it [10:14:01]requested_item shift.opened is exist - process it [10:14:01]req_shift_opened [10:14:01]FM_GetShiftState [10:14:01]SAM_PROTO_GetShiftState [10:14:01]wFMCommunicate request_size=4 [10:14:01]MH_SAM_APDU [10:14:01]CAPDU: 80 13 01 00 [10:14:01]Write to MH i2c: E2 08 00 68 3F 80 13 01 00 00 00 00 00 24 [10:14:01]Write i2c OK [10:14:01]MH_I2C_Read... [10:14:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:14:01]Read from MH i2c: E2 [10:14:01]MH_I2C_Read... [10:14:01]Read from MH i2c: E2 0E 00 [10:14:01]MH_I2C_Read... [10:14:01]Read from MH i2c: E2 0E 00 68 3F 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 83 [10:14:01]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [10:14:01]wFMCommunicate OK [10:14:01]SAM_PROTO_GetShiftState done [10:14:01]FM_GetShiftState done [10:14:01]req_shift_opened done [10:14:01]requested_item shift.open_date is exist - process it [10:14:01]req_shift_open_date [10:14:01]req_shift_open_date done [10:14:01]produce_requested_data done [10:14:01]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187648,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [10:14:01]process_action_free close_receipt [10:14:01]json_value_free [10:14:01]json_value_free done [10:14:01]process_json_proto returns [10:14:01]Send response to host [10:14:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187648,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [10:14:01]free response buf [10:14:01]execute_script done [10:14:01]execute_script returns [10:14:01]free content buf [10:14:01]Sock 9.Close socket [10:14:01]Sock 9.Thread stoped [10:14:05]OFD Sender: No OFD packet to send [10:14:10]OFD Sender: No OFD packet to send [10:14:15]OFD Sender: No OFD packet to send [10:14:20]accept exits with 8 [10:14:20]New connection [10:14:20]New thread 3067014500 created [10:14:20]Thread 3067157860 joined [10:14:20]Waiting for new connection... [10:14:20] Sock 8.Parse request [10:14:20]Sock 8.Check first char [10:14:20]Sock 8.First char is OK [10:14:20]request: POST /json_proto HTTP/1.0 [10:14:20]Method: POST [10:14:20]URL: /json_proto [10:14:20]Method is POST - this is cgi request [10:14:20]url: /json_proto [10:14:20]query_string will be loaded in cgi processing [10:14:20]execute_cgi json_proto POST (null) [10:14:20]execute_cgi path=json_proto method=POST [10:14:20]POST find Content-Length [10:14:20]Host: 172.17.42.131:8080 [10:14:20]Content-Length: 800 [10:14:20]Content-Type: application/json [10:14:20] [10:14:20]POST finish read [10:14:20]Found Content-Length = 800 [10:14:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209701", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "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\u000A1646600", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:14:20]execute_script... [10:14: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)209701", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "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\u000A1646600", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:14:20]POST & json_proto [10:14:20]process_json_proto [10:14:20]json parsed OK: [10:14:20]protocol is kg_v1.0 [10:14:20]action value=close_receipt [10:14:20]process_action close_receipt [10:14:20]cmd_close_receipt [10:14:20]MH_GetDate [10:14:20]Write to MH i2c: F0 00 00 69 3F 97 [10:14:20]Write i2c OK [10:14:20]MH_I2C_Read... [10:14:20]Read from MH i2c: F0 [10:14:20]MH_I2C_Read... [10:14:20]Read from MH i2c: F0 09 00 [10:14:20]MH_I2C_Read... [10:14:20]Read from MH i2c: F0 09 00 69 3F 00 7F 29 16 67 A0 18 CA 66 AD [10:14:20]GetLastDocTimeStamp 1729505641 [10:14:20]current date 1729505663 [10:14:20]FM_GetShiftState [10:14:20]SAM_PROTO_GetShiftState [10:14:20]wFMCommunicate request_size=4 [10:14:20]MH_SAM_APDU [10:14:20]CAPDU: 80 13 01 00 [10:14:20]Write to MH i2c: E2 08 00 6A 3F 80 13 01 00 00 00 00 00 26 [10:14:20]Write i2c OK [10:14:20]MH_I2C_Read... [10:14:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:14:20]OFD Sender: No OFD packet to send [10:14:20]Read from MH i2c: E2 [10:14:20]MH_I2C_Read... [10:14:20]Read from MH i2c: E2 0E 00 [10:14:20]MH_I2C_Read... [10:14:20]Read from MH i2c: E2 0E 00 6A 3F 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 85 [10:14:20]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [10:14:20]wFMCommunicate OK [10:14:20]SAM_PROTO_GetShiftState done [10:14:20]FM_GetShiftState done [10:14:20]opened in 1729469754 [10:14:20]opened+sec_in_day 1729556154 [10:14:20]quantity*price = 0 [10:14:20]sum+1 = 1 [10:14:20]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 113 21.10.2024 10:14 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Талоны: Топливные Талоны 1646600 ФМ: 0000000000965340 ФД: 187649 ФПД: 30136123962272 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T101423&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187649&fm=30136123962272&tin=02508201610067®Number=0000000000100030&sum=0 [10:14:21]StoreToDocumentArchive [10:14:21]shift 460 fd 187649 [10:14:21]save to /storage/0460/doc_00187649 [10:14:21]save last doc name /storage/0460/doc_00187649 to /storage/kkm_last_doc_name [10:14:21]save OK [10:14:21]Clear old archive folders... [10:14:21]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:14:21]tlvbuf is 010C7AD0 [10:14:21]SAM_PROTO_ClearQueue [10:14:21]wFMCommunicate request_size=4 [10:14:21]MH_SAM_APDU [10:14:21]CAPDU: 80 09 00 00 [10:14:21]Write to MH i2c: E2 08 00 77 3F 80 09 00 00 00 00 00 00 28 [10:14:21]Write i2c OK [10:14:21]MH_I2C_Read... [10:14:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:14:21]Read from MH i2c: E2 [10:14:21]MH_I2C_Read... [10:14:21]Read from MH i2c: E2 03 00 [10:14:21]MH_I2C_Read... [10:14:21]Read from MH i2c: E2 03 00 77 3F 00 90 00 2A [10:14:21]RAPDU: 90 00 [10:14:21]wFMCommunicate OK [10:14:21]SAM_PROTO_ClearQueue done [10:14:21]KKMCreateOFDPacket [10:14:21]OFDProtocolAddRootSTLVToBuf [10:14:21]FM_MakeSignedData [10:14:21]FM_MakeSignedData [10:14:21]SAM_PROTO_SignData [10:14:21]wFMCommunicate request_size=4 [10:14:21]MH_SAM_APDU [10:14:21]CAPDU: 80 0D 01 02 [10:14:21]Write to MH i2c: E2 08 00 78 3F 80 0D 01 02 00 00 00 00 30 [10:14:21]Write i2c OK [10:14:21]MH_I2C_Read... [10:14:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:14:21]Read from MH i2c: E2 [10:14:21]MH_I2C_Read... [10:14:21]Read from MH i2c: E2 03 00 [10:14:21]MH_I2C_Read... [10:14:21]Read from MH i2c: E2 03 00 78 3F 00 90 00 2B [10:14:21]RAPDU: 90 00 [10:14:21]wFMCommunicate OK [10:14:21]wFMCommunicate request_size=255 [10:14:21]MH_SAM_APDU [10:14: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 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 71 00 00 00 F4 03 04 00 7F 29 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 01 DD 02 00 35 04 06 00 1B [10:14:21]Write to MH i2c: E2 02 01 79 3F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 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 71 00 00 00 F4 03 04 00 7F 29 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 01 DD 02 00 35 04 06 00 1B 00 00 B7 [10:14:21]Write i2c OK [10:14:21]MH_I2C_Read... [10:14:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:14:21]Read from MH i2c: E2 [10:14:21]MH_I2C_Read... [10:14:21]Read from MH i2c: E2 03 00 [10:14:21]MH_I2C_Read... [10:14:21]Read from MH i2c: E2 03 00 79 3F 00 90 00 2C [10:14:21]RAPDU: 90 00 [10:14:21]wFMCommunicate OK [10:14:21]wFMCommunicate request_size=10 [10:14:21]MH_SAM_APDU [10:14:21]CAPDU: 80 0D 02 02 05 68 9C F6 B3 A0 [10:14:21]Write to MH i2c: E2 0D 00 7A 3F 80 0D 02 02 05 00 68 9C F6 B3 A0 00 00 8A [10:14:21]Write i2c OK [10:14:21]MH_I2C_Read... [10:14:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:14:21]Read from MH i2c: E2 [10:14:21]MH_I2C_Read... [10:14:21]Read from MH i2c: E2 03 00 [10:14:21]MH_I2C_Read... [10:14:21]Read from MH i2c: E2 03 00 7A 3F 00 90 00 2D [10:14:21]RAPDU: 90 00 [10:14:21]wFMCommunicate OK [10:14:21]wFMCommunicate request_size=4 [10:14:21]MH_SAM_APDU [10:14:21]CAPDU: 80 0D 03 02 [10:14:21]Write to MH i2c: E2 08 00 7B 3F 80 0D 03 02 00 00 00 00 35 [10:14:21]Write i2c OK [10:14:21]MH_I2C_Read... [10:14:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:14:21]Read from MH i2c: E2 [10:14:21]MH_I2C_Read... [10:14:21]Read from MH i2c: E2 0B 00 [10:14:21]MH_I2C_Read... [10:14:21]Read from MH i2c: E2 0B 00 7B 3F 00 F9 CD BE AD DD 92 94 17 90 00 81 [10:14:21]RAPDU: F9 CD BE AD DD 92 94 17 90 00 [10:14:21]wFMCommunicate OK [10:14:21]SAM_PROTO_SignData done [10:14:21]FM_MakeSignedData done [10:14:21]CreateOFDProtocolMessage [10:14:21]wFMCommunicate request_size=4 [10:14:21]MH_SAM_APDU [10:14:21]CAPDU: 80 11 00 00 [10:14:21]Write to MH i2c: E2 08 00 7C 3F 80 11 00 00 00 00 00 00 35 [10:14:21]Write i2c OK [10:14:21]MH_I2C_Read... [10:14:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:14:21]Read from MH i2c: E2 [10:14:21]MH_I2C_Read... [10:14:21]Read from MH i2c: E2 17 00 [10:14:21]MH_I2C_Read... [10:14:21]Read from MH i2c: E2 17 00 7C 3F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 83 [10:14:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [10:14:21]wFMCommunicate OK [10:14:21]CreateOFDProtocolMessage done [10:14:21]OFDSenderStorePacket 187649 [10:14:21]StoreOFDPacket docnum=187649 [10:14:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 19 C9 07 01 53 44 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 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 71 00 00 00 F4 03 04 00 7F 29 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 01 DD 02 00 35 04 06 00 1B 68 9C F6 B3 A0 F9 CD BE AD DD 92 94 17 [10:14:21]CheckFolder [10:14:21]dirname=/storage/ofd_packets [10:14:21]CheckFolder done [10:14:21]ProducePacketName [10:14:21]name=ofd_packets/00187649 [10:14:21]NVStorageSaveData ofd_packets/00187649 [10:14:21]File name is /storage/ofd_packets/00187649 [10:14:21]Write 301 bytes [10:14:21]NVStorageSaveData done [10:14:21]OFDSenderStorePacket done [10:14:21]KKMCreateOFDPacket done [10:14:21]NVStorageSaveData kkm_last_timestamp [10:14:21]File name is /storage/kkm_last_timestamp [10:14:21]Write 4 bytes [10:14:21]NVStorageSaveData done [10:14:22]ExternCall_PrintAddStr [10:14:22]wPrintStart [10:14:22]Write to MH i2c: 01 00 00 7D 3F BC [10:14:22]Write i2c OK [10:14:22]MH_I2C_Read... [10:14:22]Read from MH i2c: 01 [10:14:22]MH_I2C_Read... [10:14:22]Read from MH i2c: 01 07 00 [10:14:22]MH_I2C_Read... [10:14:22]Read from MH i2c: 01 07 00 7D 3F 00 00 00 00 00 FF 0F D1 [10:14:22]RasterBufferAndPrint [10:14:22]line Счет N : (1)209701 [10:14:22]line ИНН: 02508201610067 [10:14:22]line Контрольно-Кассовый Чек [10:14:22]line ПРОДАЖА [10:14:22]line ТРК (МРК, ГНК) : 13 [10:14:22]line Товар: 2710124500 [10:14:22]line Аи-95-К-3 [10:14:22]line 10.000 * 0.00 [10:14:22]line = 0.00 [10:14:22]line НДС 12% НСП 1% [10:14:22]line > о реализуемом товаре [10:14:22]line ИТОГО: 0.00 [10:14:22]line НСП 1% : 0.00 [10:14:22]line НДС 12% : 0.00 [10:14:22]line Наличными: 0.00 [10:14:22]line Безнал.: 0.00 [10:14:22]line Место: АЗС № 86 "Партнер Нефть" [10:14:22]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [10:14:22]line СНО: Общий режим [10:14:22]line Чек 113 21.10.2024 10:14 [10:14:22]line Смена: 460 ФФД: 1.0 [10:14:22]line ЗНМ: 0300000155 [10:14:22]line РНМ: 0000000000100030 [10:14:22]line Версия ККМ: 001 [10:14:22]line Талоны: Топливные Талоны [10:14:22]line 1646600 [10:14:22]line ФМ: 0000000000965340 [10:14:22]line ФД: 187649 [10:14:22]line ФПД: 30136123962272 [10:14:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T101423&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187649&fm=30136123962272&tin=02508201610067®Number=0000000000100030&sum=0 [10:14:22]written 0, free lines is 4095 [10:14:22]OFD Sender: Processing packet 187649 [packets to send 1062, broken 1061] [10:14:22]ProducePacketName [10:14:22]name=ofd_packets/00187649 [10:14:22]OFD Sender: To server: pG, [10:14:22]CommunicateWithHost lk.salyk.kg:30040 [10:14:22]ConnectInit lk.salyk.kg [10:14:22]Connected sock=10 [10:14:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 19 C9 07 01 53 44 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 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 71 00 00 00 F4 03 04 00 7F 29 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 01 DD 02 00 35 04 06 00 1B 68 9C F6 B3 A0 F9 CD BE AD DD 92 94 17 [10:14:22]Write to MH i2c: 01 00 00 A7 3F E6 [10:14:22]Write i2c OK [10:14:22]MH_I2C_Read... [10:14:22]Read from MH i2c: 01 [10:14:22]MH_I2C_Read... [10:14:22]Read from MH i2c: 01 07 00 [10:14:22]MH_I2C_Read... [10:14:22]Read from MH i2c: 01 07 00 A7 3F 00 00 00 00 00 93 0C 8C [10:14:22]RasterBufferAndPrint [10:14:22]line [10:14:22]line [10:14:22]line [10:14:22]line [10:14:22]line [10:14:22]written 0, free lines is 3222 [10:14:22]MH_Cut [10:14:22]Write to MH i2c: D1 01 00 AE 3F 01 BF [10:14:22]Write i2c OK [10:14:22]MH_I2C_Read... [10:14:22]Read from MH i2c: D1 [10:14:22]MH_I2C_Read... [10:14:22]Read from MH i2c: D1 01 00 [10:14:22]MH_I2C_Read... [10:14:22]Read from MH i2c: D1 01 00 AE 3F 00 BE [10:14:22]Write to MH i2c: 01 00 00 AF 3F EE [10:14:22]Write i2c OK [10:14:22]MH_I2C_Read... [10:14:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 C0 E3 47 00 5A 9A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 01 DD 02 00 F4 03 04 00 6F D3 15 67 B6 04 01 00 00 8D B8 95 72 DC 05 39 58 [10:14:22]CommunicateWithHost err = 0 [10:14:22]CheckOFDResponse [10:14:22]1017 (14) - 77093643461234 [10:14:22]1041 (16) - 0000000000965340 [10:14:22]1040 (4) - 187649 [10:14:22]1012 (4) - 21.10.2024 04:07 [10:14:22]1206 (1) - 0 [10:14:22]OFD Sender: Remove packet 187649 [10:14:22]ProducePacketName [10:14:22]name=ofd_packets/00187649 [10:14:22]NVStorageDeleteData [10:14:23]OFD Sender: No OFD packet to send [10:14:23]*** Cut start [10:14:23]*** Partial cut [10:14:23]*** CUTSNS_PIN = 1 [10:14:23]*** CUTSNS_PIN = 0 [10:14:23]*** Brake cut motor [10:14:24]Read from MH i2c: 01 [10:14:24]*** Stop cut motor [10:14:24]*** Cut end [10:14:24]MH_I2C_Read... [10:14:24]Read from MH i2c: 01 07 00 [10:14:24]MH_I2C_Read... [10:14:24]Read from MH i2c: 01 07 00 AF 3F 00 00 00 00 00 FF 0F 03 [10:14:24]process_action close_receipt done [10:14:24]requested_data is exist [10:14:24]produce_requested_data [10:14:24]requested_item fm.sn is exist - process it [10:14:24]wFMCommunicate request_size=4 [10:14:24]MH_SAM_APDU [10:14:24]CAPDU: 80 11 00 00 [10:14:24]Write to MH i2c: E2 08 00 B0 3F 80 11 00 00 00 00 00 00 69 [10:14:24]Write i2c OK [10:14:24]MH_I2C_Read... [10:14:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:14:24]Read from MH i2c: E2 [10:14:24]MH_I2C_Read... [10:14:24]Read from MH i2c: E2 17 00 [10:14:24]MH_I2C_Read... [10:14:24]Read from MH i2c: E2 17 00 B0 3F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 B7 [10:14:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [10:14:24]wFMCommunicate OK [10:14:24]requested_item fd.num is exist - process it [10:14:24]SAM_PROTO_GetFieldsCounters [10:14:24]wFMCommunicate request_size=4 [10:14:24]MH_SAM_APDU [10:14:24]CAPDU: 80 13 00 00 [10:14:24]Write to MH i2c: E2 08 00 B1 3F 80 13 00 00 00 00 00 00 6C [10:14:24]Write i2c OK [10:14:24]MH_I2C_Read... [10:14:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:14:24]Read from MH i2c: E2 [10:14:24]MH_I2C_Read... [10:14:24]Read from MH i2c: E2 62 00 [10:14:24]MH_I2C_Read... [10:14:24]Read from MH i2c: E2 62 00 B1 3F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 01 DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 71 00 00 00 5E 04 04 00 71 00 00 00 57 04 04 00 72 00 00 00 19 04 04 00 00 00 00 00 90 00 73 [10:14:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 01 DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 71 00 00 00 5E 04 04 00 71 00 00 00 57 04 04 00 72 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:14:24]wFMCommunicate OK [10:14:24]SAM_PROTO_GetFieldsCounters done [10:14:24]requested_item shift.num is exist - process it [10:14:24]requested_item shift.opened is exist - process it [10:14:24]req_shift_opened [10:14:24]FM_GetShiftState [10:14:24]SAM_PROTO_GetShiftState [10:14:24]wFMCommunicate request_size=4 [10:14:24]MH_SAM_APDU [10:14:24]CAPDU: 80 13 01 00 [10:14:24]Write to MH i2c: E2 08 00 B2 3F 80 13 01 00 00 00 00 00 6E [10:14:24]Write i2c OK [10:14:24]MH_I2C_Read... [10:14:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:14:24]Read from MH i2c: E2 [10:14:24]MH_I2C_Read... [10:14:24]Read from MH i2c: E2 0E 00 [10:14:24]MH_I2C_Read... [10:14:24]Read from MH i2c: E2 0E 00 B2 3F 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 CD [10:14:24]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [10:14:24]wFMCommunicate OK [10:14:24]SAM_PROTO_GetShiftState done [10:14:24]FM_GetShiftState done [10:14:24]req_shift_opened done [10:14:24]requested_item shift.open_date is exist - process it [10:14:24]req_shift_open_date [10:14:24]req_shift_open_date done [10:14:24]produce_requested_data done [10:14:24]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187649,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [10:14:24]process_action_free close_receipt [10:14:24]json_value_free [10:14:24]json_value_free done [10:14:24]process_json_proto returns [10:14:24]Send response to host [10:14:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187649,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [10:14:24]free response buf [10:14:24]execute_script done [10:14:24]execute_script returns [10:14:24]free content buf [10:14:24]Sock 8.Close socket [10:14:24]Sock 8.Thread stoped [10:14:28]OFD Sender: No OFD packet to send [10:14:33]OFD Sender: No OFD packet to send [10:14:38]OFD Sender: No OFD packet to send [10:14:43]OFD Sender: No OFD packet to send [10:14:48]OFD Sender: No OFD packet to send [10:14:53]OFD Sender: No OFD packet to send [10:14:58]OFD Sender: No OFD packet to send [10:15:03]OFD Sender: No OFD packet to send [10:15:08]OFD Sender: No OFD packet to send [10:15:13]OFD Sender: No OFD packet to send [10:15:18]OFD Sender: No OFD packet to send [10:15:23]OFD Sender: No OFD packet to send [10:15:28]OFD Sender: No OFD packet to send [10:15:33]OFD Sender: No OFD packet to send [10:15:38]OFD Sender: No OFD packet to send [10:15:43]OFD Sender: No OFD packet to send [10:15:48]OFD Sender: No OFD packet to send [10:15:53]OFD Sender: No OFD packet to send [10:15:58]OFD Sender: No OFD packet to send [10:16:03]OFD Sender: No OFD packet to send [10:16:08]OFD Sender: No OFD packet to send [10:16:13]OFD Sender: No OFD packet to send [10:16:18]OFD Sender: No OFD packet to send [10:16:23]OFD Sender: No OFD packet to send [10:16:28]OFD Sender: No OFD packet to send [10:16:33]OFD Sender: No OFD packet to send [10:16:38]OFD Sender: No OFD packet to send [10:16:43]OFD Sender: No OFD packet to send [10:16:47]accept exits with 9 [10:16:47]New connection [10:16:47]New thread 3067157860 created [10:16:47]Thread 3067014500 joined [10:16:47]Waiting for new connection... [10:16:47] Sock 9.Parse request [10:16:47]Sock 9.Check first char [10:16:47]Sock 9.First char is OK [10:16:47]request: POST /json_proto HTTP/1.0 [10:16:47]Method: POST [10:16:47]URL: /json_proto [10:16:47]Method is POST - this is cgi request [10:16:47]url: /json_proto [10:16:47]query_string will be loaded in cgi processing [10:16:47]execute_cgi json_proto POST (null) [10:16:47]execute_cgi path=json_proto method=POST [10:16:47]POST find Content-Length [10:16:47]Host: 172.17.42.131:8080 [10:16:47]Content-Length: 983 [10:16:47]Content-Type: application/json [10:16:47] [10:16:47]POST finish read [10:16:47]Found Content-Length = 983 [10:16:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209702", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 65.90, "quantity" : 40.980, "sum" : 2700.58, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0410\u0418-92\u000A\u043D\u043E\u043C\u0435\u0440 86\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 40.98 \u0441\u043E\u043C", "deposit" : 2700.00, "total" : 2700.00, "payments": [ { "type": 0, "sum" : 2700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:16:47]execute_script... [10:16: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)209702", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 65.90, "quantity" : 40.980, "sum" : 2700.58, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0410\u0418-92\u000A\u043D\u043E\u043C\u0435\u0440 86\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 40.98 \u0441\u043E\u043C", "deposit" : 2700.00, "total" : 2700.00, "payments": [ { "type": 0, "sum" : 2700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:16:47]POST & json_proto [10:16:47]process_json_proto [10:16:47]json parsed OK: [10:16:47]protocol is kg_v1.0 [10:16:47]action value=close_receipt [10:16:47]process_action close_receipt [10:16:47]cmd_close_receipt [10:16:47]MH_GetDate [10:16:47]Write to MH i2c: F0 00 00 B3 3F E1 [10:16:47]Write i2c OK [10:16:47]MH_I2C_Read... [10:16:47]Read from MH i2c: F0 [10:16:47]MH_I2C_Read... [10:16:47]Read from MH i2c: F0 09 00 [10:16:47]MH_I2C_Read... [10:16:47]Read from MH i2c: F0 09 00 B3 3F 00 13 2A 16 67 A0 18 CA 66 8C [10:16:47]GetLastDocTimeStamp 1729505663 [10:16:47]current date 1729505811 [10:16:47]FM_GetShiftState [10:16:47]SAM_PROTO_GetShiftState [10:16:47]wFMCommunicate request_size=4 [10:16:47]MH_SAM_APDU [10:16:47]CAPDU: 80 13 01 00 [10:16:47]Write to MH i2c: E2 08 00 B4 3F 80 13 01 00 00 00 00 00 70 [10:16:47]Write i2c OK [10:16:47]MH_I2C_Read... [10:16:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:16:47]Read from MH i2c: E2 [10:16:47]MH_I2C_Read... [10:16:47]Read from MH i2c: E2 0E 00 [10:16:47]MH_I2C_Read... [10:16:47]Read from MH i2c: E2 0E 00 B4 3F 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 CF [10:16:47]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [10:16:47]wFMCommunicate OK [10:16:47]SAM_PROTO_GetShiftState done [10:16:47]FM_GetShiftState done [10:16:47]opened in 1729469754 [10:16:47]opened+sec_in_day 1729556154 [10:16:47]quantity*price = 270058 [10:16:47]sum+1 = 270059 [10:16:47]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.58 ИТОГО: 2700.00 Внесено: 2700.00 СДАЧА: 0.00 НСП 1% : 23.90 НДС 12% : 286.79 Наличными: 2700.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 114 21.10.2024 10:16 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Дисконтная программа АИ-92 номер 86 сэкономлено 40.98 сом ФМ: 0000000000965340 ФД: 187650 ФПД: 45852611772239 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T101651&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187650&fm=45852611772239&tin=02508201610067®Number=0000000000100030&sum=270000 [10:16:48]StoreToDocumentArchive [10:16:48]shift 460 fd 187650 [10:16:48]save to /storage/0460/doc_00187650 [10:16:48]save last doc name /storage/0460/doc_00187650 to /storage/kkm_last_doc_name [10:16:48]save OK [10:16:48]Clear old archive folders... [10:16:48]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:16:48]tlvbuf is 011F1870 [10:16:48]SAM_PROTO_ClearQueue [10:16:48]wFMCommunicate request_size=4 [10:16:48]MH_SAM_APDU [10:16:48]CAPDU: 80 09 00 00 [10:16:48]Write to MH i2c: E2 08 00 C1 3F 80 09 00 00 00 00 00 00 72 [10:16:48]Write i2c OK [10:16:48]MH_I2C_Read... [10:16:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:16:48]Read from MH i2c: E2 [10:16:48]MH_I2C_Read... [10:16:48]Read from MH i2c: E2 03 00 [10:16:48]MH_I2C_Read... [10:16:48]Read from MH i2c: E2 03 00 C1 3F 00 90 00 74 [10:16:48]RAPDU: 90 00 [10:16:48]wFMCommunicate OK [10:16:48]SAM_PROTO_ClearQueue done [10:16:48]KKMCreateOFDPacket [10:16:48]OFDProtocolAddRootSTLVToBuf [10:16:48]FM_MakeSignedData [10:16:48]FM_MakeSignedData [10:16:48]SAM_PROTO_SignData [10:16:48]wFMCommunicate request_size=4 [10:16:48]MH_SAM_APDU [10:16:48]CAPDU: 80 0D 01 02 [10:16:48]Write to MH i2c: E2 08 00 C2 3F 80 0D 01 02 00 00 00 00 7A [10:16:48]Write i2c OK [10:16:48]MH_I2C_Read... [10:16:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:16:48]Read from MH i2c: E2 [10:16:48]MH_I2C_Read... [10:16:48]Read from MH i2c: E2 03 00 [10:16:48]MH_I2C_Read... [10:16:48]Read from MH i2c: E2 03 00 C2 3F 00 90 00 75 [10:16:48]RAPDU: 90 00 [10:16:48]wFMCommunicate OK [10:16:48]wFMCommunicate request_size=255 [10:16:48]MH_SAM_APDU [10:16: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 33 FF 03 08 00 03 14 A0 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 EA 1E 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 1E 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 56 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 07 70 00 00 00 00 07 04 06 00 B0 1E 04 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 13 2A 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 02 DD 02 00 35 04 06 00 29 [10:16:48]Write to MH i2c: E2 02 01 C3 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 33 FF 03 08 00 03 14 A0 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 EA 1E 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 1E 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 56 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 07 70 00 00 00 00 07 04 06 00 B0 1E 04 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 13 2A 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 02 DD 02 00 35 04 06 00 29 00 00 7C [10:16:48]Write i2c OK [10:16:48]MH_I2C_Read... [10:16:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:16:49]Read from MH i2c: E2 [10:16:49]MH_I2C_Read... [10:16:49]Read from MH i2c: E2 03 00 [10:16:49]MH_I2C_Read... [10:16:49]Read from MH i2c: E2 03 00 C3 3F 00 90 00 76 [10:16:49]RAPDU: 90 00 [10:16:49]wFMCommunicate OK [10:16:49]wFMCommunicate request_size=10 [10:16:49]MH_SAM_APDU [10:16:49]CAPDU: 80 0D 02 02 05 B3 E4 A2 FF 4F [10:16:49]Write to MH i2c: E2 0D 00 C4 3F 80 0D 02 02 05 00 B3 E4 A2 FF 4F 00 00 0E [10:16:49]Write i2c OK [10:16:49]MH_I2C_Read... [10:16:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:16:49]Read from MH i2c: E2 [10:16:49]MH_I2C_Read... [10:16:49]Read from MH i2c: E2 03 00 [10:16:49]MH_I2C_Read... [10:16:49]Read from MH i2c: E2 03 00 C4 3F 00 90 00 77 [10:16:49]RAPDU: 90 00 [10:16:49]wFMCommunicate OK [10:16:49]wFMCommunicate request_size=4 [10:16:49]MH_SAM_APDU [10:16:49]CAPDU: 80 0D 03 02 [10:16:49]Write to MH i2c: E2 08 00 C5 3F 80 0D 03 02 00 00 00 00 7F [10:16:49]Write i2c OK [10:16:49]MH_I2C_Read... [10:16:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:16:49]Read from MH i2c: E2 [10:16:49]MH_I2C_Read... [10:16:49]Read from MH i2c: E2 0B 00 [10:16:49]MH_I2C_Read... [10:16:49]Read from MH i2c: E2 0B 00 C5 3F 00 DB 44 D0 88 6D 0B 9E 5B 90 00 68 [10:16:49]RAPDU: DB 44 D0 88 6D 0B 9E 5B 90 00 [10:16:49]wFMCommunicate OK [10:16:49]SAM_PROTO_SignData done [10:16:49]FM_MakeSignedData done [10:16:49]CreateOFDProtocolMessage [10:16:49]wFMCommunicate request_size=4 [10:16:49]MH_SAM_APDU [10:16:49]CAPDU: 80 11 00 00 [10:16:49]Write to MH i2c: E2 08 00 C6 3F 80 11 00 00 00 00 00 00 7F [10:16:49]Write i2c OK [10:16:49]MH_I2C_Read... [10:16:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:16:49]Read from MH i2c: E2 [10:16:49]MH_I2C_Read... [10:16:49]Read from MH i2c: E2 17 00 [10:16:49]MH_I2C_Read... [10:16:49]Read from MH i2c: E2 17 00 C6 3F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 CD [10:16:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [10:16:49]wFMCommunicate OK [10:16:49]CreateOFDProtocolMessage done [10:16:49]OFDSenderStorePacket 187650 [10:16:49]StoreOFDPacket docnum=187650 [10:16:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 0C A4 07 01 7E 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 33 FF 03 08 00 03 14 A0 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 EA 1E 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 1E 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 56 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 07 70 00 00 00 00 07 04 06 00 B0 1E 04 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 13 2A 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 02 DD 02 00 35 04 06 00 29 B3 E4 A2 FF 4F DB 44 D0 88 6D 0B 9E 5B [10:16:49]CheckFolder [10:16:49]dirname=/storage/ofd_packets [10:16:49]CheckFolder done [10:16:49]ProducePacketName [10:16:49]name=ofd_packets/00187650 [10:16:49]NVStorageSaveData ofd_packets/00187650 [10:16:49]File name is /storage/ofd_packets/00187650 [10:16:49]Write 301 bytes [10:16:49]NVStorageSaveData done [10:16:49]OFDSenderStorePacket done [10:16:49]KKMCreateOFDPacket done [10:16:49]NVStorageSaveData kkm_last_timestamp [10:16:49]File name is /storage/kkm_last_timestamp [10:16:49]Write 4 bytes [10:16:49]NVStorageSaveData done [10:16:49]ExternCall_PrintAddStr [10:16:49]wPrintStart [10:16:49]Write to MH i2c: 01 00 00 C7 3F 06 [10:16:49]Write i2c OK [10:16:49]MH_I2C_Read... [10:16:49]Read from MH i2c: 01 [10:16:49]MH_I2C_Read... [10:16:49]Read from MH i2c: 01 07 00 [10:16:49]MH_I2C_Read... [10:16:49]Read from MH i2c: 01 07 00 C7 3F 00 00 00 00 00 FF 0F 1B [10:16:49]RasterBufferAndPrint [10:16:49]line Счет N : (1)209702 [10:16:49]line ИНН: 02508201610067 [10:16:49]line Контрольно-Кассовый Чек [10:16:49]line ПРОДАЖА [10:16:49]line ТРК (МРК, ГНК) : 32 [10:16:49]line Товар: 2710124130 [10:16:49]line Аи-92-К-3 [10:16:49]line 40.980 * 65.90 [10:16:49]line = 2700.58 [10:16:49]line НДС 12% НСП 1% [10:16:49]line > о реализуемом товаре [10:16:49]line ОКРУГЛЕНИЕ: -0.58 [10:16:49]line ИТОГО: 2700.00 [10:16:49]line Внесено: 2700.00 [10:16:49]line СДАЧА: 0.00 [10:16:49]line НСП 1% : 23.90 [10:16:49]line НДС 12% : 286.79 [10:16:49]line Наличными: 2700.00 [10:16:49]line Безнал.: 0.00 [10:16:49]line Место: АЗС № 86 "Партнер Нефть" [10:16:49]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [10:16:49]line СНО: Общий режим [10:16:49]line Чек 114 21.10.2024 10:16 [10:16:49]line Смена: 460 ФФД: 1.0 [10:16:49]line ЗНМ: 0300000155 [10:16:49]line РНМ: 0000000000100030 [10:16:49]line Версия ККМ: 001 [10:16:49]line [10:16:49]line Дисконтная программа [10:16:49]line АИ-92 [10:16:49]line номер 86 [10:16:49]line сэкономлено 40.98 сом [10:16:49]line ФМ: 0000000000965340 [10:16:49]line ФД: 187650 [10:16:49]line ФПД: 45852611772239 [10:16:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T101651&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187650&fm=45852611772239&tin=02508201610067®Number=0000000000100030&sum=270000 [10:16:49]OFD Sender: Processing packet 187650 [packets to send 1062, broken 1061] [10:16:49]ProducePacketName [10:16:49]name=ofd_packets/00187650 [10:16:49]OFD Sender: To server: pG, [10:16:49]CommunicateWithHost lk.salyk.kg:30040 [10:16:49]ConnectInit lk.salyk.kg [10:16:49]written 0, free lines is 4095 [10:16:49]Connected sock=10 [10:16:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 0C A4 07 01 7E 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 33 FF 03 08 00 03 14 A0 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 EA 1E 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 1E 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 56 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 07 70 00 00 00 00 07 04 06 00 B0 1E 04 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 13 2A 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 02 DD 02 00 35 04 06 00 29 B3 E4 A2 FF 4F DB 44 D0 88 6D 0B 9E 5B [10:16:49]Write to MH i2c: 01 00 00 F7 3F 36 [10:16:49]Write i2c OK [10:16:49]MH_I2C_Read... [10:16:49]Read from MH i2c: 01 [10:16:49]MH_I2C_Read... [10:16:49]Read from MH i2c: 01 07 00 [10:16:49]MH_I2C_Read... [10:16:49]Read from MH i2c: 01 07 00 F7 3F 00 00 00 00 00 1A 0C 63 [10:16:49]RasterBufferAndPrint [10:16:49]line [10:16:49]line [10:16:49]line [10:16:49]line [10:16:49]line [10:16:49]written 0, free lines is 3102 [10:16:49]MH_Cut [10:16:49]Write to MH i2c: D1 01 00 FE 3F 01 0F [10:16:49]Write i2c OK [10:16:49]MH_I2C_Read... [10:16:49]Read from MH i2c: D1 [10:16:49]MH_I2C_Read... [10:16:49]Read from MH i2c: D1 01 00 [10:16:49]MH_I2C_Read... [10:16:49]Read from MH i2c: D1 01 00 FE 3F 00 0E [10:16:49]Write to MH i2c: 01 00 00 FF 3F 3E [10:16:49]Write i2c OK [10:16:49]MH_I2C_Read... [10:16:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 F9 57 47 00 59 0E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 02 DD 02 00 F4 03 04 00 03 D4 15 67 B6 04 01 00 00 CC B0 91 DD 11 98 0B 84 [10:16:50]CommunicateWithHost err = 0 [10:16:50]CheckOFDResponse [10:16:50]1017 (14) - 77093643461234 [10:16:50]1041 (16) - 0000000000965340 [10:16:50]1040 (4) - 187650 [10:16:50]1012 (4) - 21.10.2024 04:09 [10:16:50]1206 (1) - 0 [10:16:50]OFD Sender: Remove packet 187650 [10:16:50]ProducePacketName [10:16:50]name=ofd_packets/00187650 [10:16:50]NVStorageDeleteData [10:16:51]*** Cut start [10:16:51]*** Partial cut [10:16:51]*** CUTSNS_PIN = 1 [10:16:51]*** CUTSNS_PIN = 0 [10:16:51]OFD Sender: No OFD packet to send [10:16:51]*** Brake cut motor [10:16:51]Read from MH i2c: 01 [10:16:51]MH_I2C_Read... [10:16:51]*** Stop cut motor [10:16:51]*** Cut end [10:16:51]Read from MH i2c: 01 07 00 [10:16:51]MH_I2C_Read... [10:16:51]Read from MH i2c: 01 07 00 FF 3F 00 00 00 00 00 FF 0F 53 [10:16:51]process_action close_receipt done [10:16:51]requested_data is exist [10:16:51]produce_requested_data [10:16:51]requested_item fm.sn is exist - process it [10:16:51]wFMCommunicate request_size=4 [10:16:51]MH_SAM_APDU [10:16:51]CAPDU: 80 11 00 00 [10:16:51]Write to MH i2c: E2 08 00 00 40 80 11 00 00 00 00 00 00 BA [10:16:51]Write i2c OK [10:16:51]MH_I2C_Read... [10:16:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:16:51]Read from MH i2c: E2 [10:16:51]MH_I2C_Read... [10:16:51]Read from MH i2c: E2 17 00 [10:16:51]MH_I2C_Read... [10:16:51]Read from MH i2c: E2 17 00 00 40 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 08 [10:16:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [10:16:51]wFMCommunicate OK [10:16:51]requested_item fd.num is exist - process it [10:16:51]SAM_PROTO_GetFieldsCounters [10:16:51]wFMCommunicate request_size=4 [10:16:51]MH_SAM_APDU [10:16:51]CAPDU: 80 13 00 00 [10:16:51]Write to MH i2c: E2 08 00 01 40 80 13 00 00 00 00 00 00 BD [10:16:51]Write i2c OK [10:16:51]MH_I2C_Read... [10:16:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:16:51]Read from MH i2c: E2 [10:16:51]MH_I2C_Read... [10:16:51]Read from MH i2c: E2 62 00 [10:16:51]MH_I2C_Read... [10:16:51]Read from MH i2c: E2 62 00 01 40 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 02 DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 72 00 00 00 5E 04 04 00 72 00 00 00 57 04 04 00 73 00 00 00 19 04 04 00 00 00 00 00 90 00 C8 [10:16:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 02 DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 72 00 00 00 5E 04 04 00 72 00 00 00 57 04 04 00 73 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:16:51]wFMCommunicate OK [10:16:51]SAM_PROTO_GetFieldsCounters done [10:16:51]requested_item shift.num is exist - process it [10:16:51]requested_item shift.opened is exist - process it [10:16:51]req_shift_opened [10:16:51]FM_GetShiftState [10:16:51]SAM_PROTO_GetShiftState [10:16:51]wFMCommunicate request_size=4 [10:16:51]MH_SAM_APDU [10:16:51]CAPDU: 80 13 01 00 [10:16:51]Write to MH i2c: E2 08 00 02 40 80 13 01 00 00 00 00 00 BF [10:16:51]Write i2c OK [10:16:51]MH_I2C_Read... [10:16:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:16:52]Read from MH i2c: E2 [10:16:52]MH_I2C_Read... [10:16:52]Read from MH i2c: E2 0E 00 [10:16:52]MH_I2C_Read... [10:16:52]Read from MH i2c: E2 0E 00 02 40 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 1E [10:16:52]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [10:16:52]wFMCommunicate OK [10:16:52]SAM_PROTO_GetShiftState done [10:16:52]FM_GetShiftState done [10:16:52]req_shift_opened done [10:16:52]requested_item shift.open_date is exist - process it [10:16:52]req_shift_open_date [10:16:52]req_shift_open_date done [10:16:52]produce_requested_data done [10:16:52]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187650,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [10:16:52]process_action_free close_receipt [10:16:52]json_value_free [10:16:52]json_value_free done [10:16:52]process_json_proto returns [10:16:52]Send response to host [10:16:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187650,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [10:16:52]free response buf [10:16:52]execute_script done [10:16:52]execute_script returns [10:16:52]free content buf [10:16:52]Sock 9.Close socket [10:16:52]Sock 9.Thread stoped [10:16:56]OFD Sender: No OFD packet to send [10:17:01]OFD Sender: No OFD packet to send [10:17:06]OFD Sender: No OFD packet to send [10:17:11]OFD Sender: No OFD packet to send [10:17:16]OFD Sender: No OFD packet to send [10:17:21]OFD Sender: No OFD packet to send [10:17:26]OFD Sender: No OFD packet to send [10:17:31]OFD Sender: No OFD packet to send [10:17:36]OFD Sender: No OFD packet to send [10:17:41]OFD Sender: No OFD packet to send [10:17:46]OFD Sender: No OFD packet to send [10:17:51]OFD Sender: No OFD packet to send [10:17:56]OFD Sender: No OFD packet to send [10:18:01]OFD Sender: No OFD packet to send [10:18:06]OFD Sender: No OFD packet to send [10:18:11]OFD Sender: No OFD packet to send [10:18:16]OFD Sender: No OFD packet to send [10:18:20]accept exits with 8 [10:18:20]New connection [10:18:20]New thread 3067014500 created [10:18:20]Thread 3067157860 joined [10:18:20]Waiting for new connection... [10:18:20] Sock 8.Parse request [10:18:20]Sock 8.Check first char [10:18:20]Sock 8.First char is OK [10:18:20]request: POST /json_proto HTTP/1.0 [10:18:20]Method: POST [10:18:20]URL: /json_proto [10:18:20]Method is POST - this is cgi request [10:18:20]url: /json_proto [10:18:20]query_string will be loaded in cgi processing [10:18:20]execute_cgi json_proto POST (null) [10:18:20]execute_cgi path=json_proto method=POST [10:18:20]POST find Content-Length [10:18:20]Host: 172.17.42.131:8080 [10:18:20]Content-Length: 683 [10:18:20]Content-Type: application/json [10:18:20] [10:18:20]POST finish read [10:18:20]Found Content-Length = 683 [10:18:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209703", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 4.540, "sum" : 350.49, "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:18:20]execute_script... [10:18:20]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209703", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 4.540, "sum" : 350.49, "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:18:20]POST & json_proto [10:18:20]process_json_proto [10:18:20]json parsed OK: [10:18:20]protocol is kg_v1.0 [10:18:20]action value=close_receipt [10:18:20]process_action close_receipt [10:18:20]cmd_close_receipt [10:18:20]MH_GetDate [10:18:20]Write to MH i2c: F0 00 00 03 40 32 [10:18:20]Write i2c OK [10:18:20]MH_I2C_Read... [10:18:20]Read from MH i2c: F0 [10:18:20]MH_I2C_Read... [10:18:20]Read from MH i2c: F0 09 00 [10:18:20]MH_I2C_Read... [10:18:20]Read from MH i2c: F0 09 00 03 40 00 6F 2A 16 67 A0 18 CA 66 39 [10:18:20]GetLastDocTimeStamp 1729505811 [10:18:20]current date 1729505903 [10:18:20]FM_GetShiftState [10:18:20]SAM_PROTO_GetShiftState [10:18:20]wFMCommunicate request_size=4 [10:18:20]MH_SAM_APDU [10:18:20]CAPDU: 80 13 01 00 [10:18:20]Write to MH i2c: E2 08 00 04 40 80 13 01 00 00 00 00 00 C1 [10:18:20]Write i2c OK [10:18:20]MH_I2C_Read... [10:18:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:18:20]Read from MH i2c: E2 [10:18:20]MH_I2C_Read... [10:18:20]Read from MH i2c: E2 0E 00 [10:18:20]MH_I2C_Read... [10:18:20]Read from MH i2c: E2 0E 00 04 40 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 20 [10:18:20]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [10:18:20]wFMCommunicate OK [10:18:20]SAM_PROTO_GetShiftState done [10:18:20]FM_GetShiftState done [10:18:20]opened in 1729469754 [10:18:20]opened+sec_in_day 1729556154 [10:18:20]quantity*price = 35048 [10:18:20]sum+1 = 35050 [10:18:20]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.49 ИТОГО: 350.00 Внесено: 350.00 СДАЧА: 0.00 НСП 1% : 3.10 НДС 12% : 37.22 Наличными: 350.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 115 21.10.2024 10:18 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 187651 ФПД: 228290007548321 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T101823&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187651&fm=228290007548321&tin=02508201610067®Number=0000000000100030&sum=35000 [10:18:21]StoreToDocumentArchive [10:18:21]shift 460 fd 187651 [10:18:21]save to /storage/0460/doc_00187651 [10:18:21]save last doc name /storage/0460/doc_00187651 to /storage/kkm_last_doc_name [10:18:21]save OK [10:18:21]Clear old archive folders... [10:18:21]ProcessDocumentItem done err = 0, tmpTLVsize=257 [10:18:21]tlvbuf is B6F87840 [10:18:21]SAM_PROTO_ClearQueue [10:18:21]wFMCommunicate request_size=4 [10:18:21]MH_SAM_APDU [10:18:21]CAPDU: 80 09 00 00 [10:18:21]Write to MH i2c: E2 08 00 11 40 80 09 00 00 00 00 00 00 C3 [10:18:21]Write i2c OK [10:18:21]MH_I2C_Read... [10:18:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:18:21]Read from MH i2c: E2 [10:18:21]MH_I2C_Read... [10:18:21]Read from MH i2c: E2 03 00 [10:18:21]MH_I2C_Read... [10:18:21]Read from MH i2c: E2 03 00 11 40 00 90 00 C5 [10:18:21]RAPDU: 90 00 [10:18:21]wFMCommunicate OK [10:18:21]SAM_PROTO_ClearQueue done [10:18:21]KKMCreateOFDPacket [10:18:21]OFDProtocolAddRootSTLVToBuf [10:18:21]FM_MakeSignedData [10:18:21]FM_MakeSignedData [10:18:21]SAM_PROTO_SignData [10:18:21]wFMCommunicate request_size=4 [10:18:21]MH_SAM_APDU [10:18:21]CAPDU: 80 0D 01 02 [10:18:21]Write to MH i2c: E2 08 00 12 40 80 0D 01 02 00 00 00 00 CB [10:18:21]Write i2c OK [10:18:21]MH_I2C_Read... [10:18:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:18:21]Read from MH i2c: E2 [10:18:21]MH_I2C_Read... [10:18:21]Read from MH i2c: E2 03 00 [10:18:21]MH_I2C_Read... [10:18:21]Read from MH i2c: E2 03 00 12 40 00 90 00 C6 [10:18:21]RAPDU: 90 00 [10:18:21]wFMCommunicate OK [10:18:21]wFMCommunicate request_size=255 [10:18:21]MH_SAM_APDU [10:18:21]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 BC 11 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 E9 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8A 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 00 00 00 F4 03 04 00 6F 2A 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 03 DD 02 [10:18:21]Write to MH i2c: E2 02 01 13 40 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 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 BC 11 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 E9 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8A 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 00 00 00 F4 03 04 00 6F 2A 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 03 DD 02 00 00 51 [10:18:21]Write i2c OK [10:18:21]MH_I2C_Read... [10:18:21]OFD Sender: No OFD packet to send [10:18:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:18:21]Read from MH i2c: E2 [10:18:21]MH_I2C_Read... [10:18:21]Read from MH i2c: E2 03 00 [10:18:21]MH_I2C_Read... [10:18:21]Read from MH i2c: E2 03 00 13 40 00 90 00 C7 [10:18:21]RAPDU: 90 00 [10:18:21]wFMCommunicate OK [10:18:21]wFMCommunicate request_size=16 [10:18:21]MH_SAM_APDU [10:18:21]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 CF A0 E8 CE 41 A1 [10:18:21]Write to MH i2c: E2 13 00 14 40 80 0D 02 02 0B 00 00 35 04 06 00 CF A0 E8 CE 41 A1 00 00 2A [10:18:21]Write i2c OK [10:18:21]MH_I2C_Read... [10:18:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:18:21]Read from MH i2c: E2 [10:18:21]MH_I2C_Read... [10:18:21]Read from MH i2c: E2 03 00 [10:18:21]MH_I2C_Read... [10:18:21]Read from MH i2c: E2 03 00 14 40 00 90 00 C8 [10:18:21]RAPDU: 90 00 [10:18:21]wFMCommunicate OK [10:18:21]wFMCommunicate request_size=4 [10:18:21]MH_SAM_APDU [10:18:21]CAPDU: 80 0D 03 02 [10:18:21]Write to MH i2c: E2 08 00 15 40 80 0D 03 02 00 00 00 00 D0 [10:18:21]Write i2c OK [10:18:21]MH_I2C_Read... [10:18:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:18:21]Read from MH i2c: E2 [10:18:21]MH_I2C_Read... [10:18:21]Read from MH i2c: E2 0B 00 [10:18:21]MH_I2C_Read... [10:18:21]Read from MH i2c: E2 0B 00 15 40 00 7E 99 AA 21 6A 94 67 CC 90 00 E4 [10:18:21]RAPDU: 7E 99 AA 21 6A 94 67 CC 90 00 [10:18:21]wFMCommunicate OK [10:18:21]SAM_PROTO_SignData done [10:18:21]FM_MakeSignedData done [10:18:21]CreateOFDProtocolMessage [10:18:21]wFMCommunicate request_size=4 [10:18:21]MH_SAM_APDU [10:18:21]CAPDU: 80 11 00 00 [10:18:21]Write to MH i2c: E2 08 00 16 40 80 11 00 00 00 00 00 00 D0 [10:18:21]Write i2c OK [10:18:21]MH_I2C_Read... [10:18:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:18:21]Read from MH i2c: E2 [10:18:21]MH_I2C_Read... [10:18:21]Read from MH i2c: E2 17 00 [10:18:21]MH_I2C_Read... [10:18:21]Read from MH i2c: E2 17 00 16 40 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 1E [10:18:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [10:18:21]wFMCommunicate OK [10:18:21]CreateOFDProtocolMessage done [10:18:21]OFDSenderStorePacket 187651 [10:18:21]StoreOFDPacket docnum=187651 [10:18:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 3A E4 0D 01 9E A0 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 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 BC 11 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 E9 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8A 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 00 00 00 F4 03 04 00 6F 2A 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 03 DD 02 00 35 04 06 00 CF A0 E8 CE 41 A1 7E 99 AA 21 6A 94 67 CC [10:18:21]CheckFolder [10:18:21]dirname=/storage/ofd_packets [10:18:21]CheckFolder done [10:18:21]ProducePacketName [10:18:21]name=ofd_packets/00187651 [10:18:22]NVStorageSaveData ofd_packets/00187651 [10:18:22]File name is /storage/ofd_packets/00187651 [10:18:22]Write 307 bytes [10:18:22]NVStorageSaveData done [10:18:22]OFDSenderStorePacket done [10:18:22]KKMCreateOFDPacket done [10:18:22]NVStorageSaveData kkm_last_timestamp [10:18:22]File name is /storage/kkm_last_timestamp [10:18:22]Write 4 bytes [10:18:22]NVStorageSaveData done [10:18:22]ExternCall_PrintAddStr [10:18:22]wPrintStart [10:18:22]Write to MH i2c: 01 00 00 17 40 57 [10:18:22]Write i2c OK [10:18:22]MH_I2C_Read... [10:18:22]Read from MH i2c: 01 [10:18:22]MH_I2C_Read... [10:18:22]Read from MH i2c: 01 07 00 [10:18:22]MH_I2C_Read... [10:18:22]Read from MH i2c: 01 07 00 17 40 00 00 00 00 00 FF 0F 6C [10:18:22]RasterBufferAndPrint [10:18:22]line Счет N : (1)209703 [10:18:22]line ИНН: 02508201610067 [10:18:22]line Контрольно-Кассовый Чек [10:18:22]line ПРОДАЖА [10:18:22]line ТРК (МРК, ГНК) : 41 [10:18:22]line Товар: 2710194210 [10:18:22]line D-ENERGY ДТ-К-5 [10:18:22]line 4.540 * 77.20 [10:18:22]line = 350.49 [10:18:22]line НДС 12% НСП 1% [10:18:22]line > о реализуемом товаре [10:18:22]line ОКРУГЛЕНИЕ: -0.49 [10:18:22]line ИТОГО: 350.00 [10:18:22]line Внесено: 350.00 [10:18:22]line СДАЧА: 0.00 [10:18:22]line НСП 1% : 3.10 [10:18:22]line НДС 12% : 37.22 [10:18:22]line Наличными: 350.00 [10:18:22]line Безнал.: 0.00 [10:18:22]line Место: АЗС № 86 "Партнер Нефть" [10:18:22]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [10:18:22]line СНО: Общий режим [10:18:22]line Чек 115 21.10.2024 10:18 [10:18:22]line Смена: 460 ФФД: 1.0 [10:18:22]line ЗНМ: 0300000155 [10:18:22]line РНМ: 0000000000100030 [10:18:22]line Версия ККМ: 001 [10:18:22]line ФМ: 0000000000965340 [10:18:22]line ФД: 187651 [10:18:22]line ФПД: 228290007548321 [10:18:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T101823&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187651&fm=228290007548321&tin=02508201610067®Number=0000000000100030&sum=35000 [10:18:22]written 0, free lines is 4095 [10:18:22]OFD Sender: Processing packet 187651 [packets to send 1062, broken 1061] [10:18:22]ProducePacketName [10:18:22]name=ofd_packets/00187651 [10:18:22]OFD Sender: To server: pG, [10:18:22]CommunicateWithHost lk.salyk.kg:30040 [10:18:22]ConnectInit lk.salyk.kg [10:18:22]Connected sock=10 [10:18:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 3A E4 0D 01 9E A0 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 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 BC 11 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 E9 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8A 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 00 00 00 F4 03 04 00 6F 2A 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 03 DD 02 00 35 04 06 00 CF A0 E8 CE 41 A1 7E 99 AA 21 6A 94 67 CC [10:18:22]Write to MH i2c: 01 00 00 42 40 82 [10:18:22]Write i2c OK [10:18:22]MH_I2C_Read... [10:18:22]Read from MH i2c: 01 [10:18:22]MH_I2C_Read... [10:18:22]Read from MH i2c: 01 07 00 [10:18:22]MH_I2C_Read... [10:18:22]Read from MH i2c: 01 07 00 42 40 00 00 00 00 00 79 0C 0E [10:18:22]RasterBufferAndPrint [10:18:22]line [10:18:22]line [10:18:22]line [10:18:22]line [10:18:22]line [10:18:22]written 0, free lines is 3197 [10:18:22]MH_Cut [10:18:22]Write to MH i2c: D1 01 00 49 40 01 5B [10:18:22]Write i2c OK [10:18:22]MH_I2C_Read... [10:18:22]Read from MH i2c: D1 [10:18:22]MH_I2C_Read... [10:18:22]Read from MH i2c: D1 01 00 [10:18:22]MH_I2C_Read... [10:18:22]Read from MH i2c: D1 01 00 49 40 00 5A [10:18:22]Write to MH i2c: 01 00 00 4A 40 8A [10:18:22]Write i2c OK [10:18:22]MH_I2C_Read... [10:18:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 F1 84 47 00 04 4F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 03 DD 02 00 F4 03 04 00 5F D4 15 67 B6 04 01 00 00 BA 69 EE F3 EC 3F 00 CF [10:18:22]CommunicateWithHost err = 0 [10:18:22]CheckOFDResponse [10:18:22]1017 (14) - 77093643461234 [10:18:22]1041 (16) - 0000000000965340 [10:18:22]1040 (4) - 187651 [10:18:22]1012 (4) - 21.10.2024 04:11 [10:18:22]1206 (1) - 0 [10:18:22]OFD Sender: Remove packet 187651 [10:18:22]ProducePacketName [10:18:22]name=ofd_packets/00187651 [10:18:22]NVStorageDeleteData [10:18:23]OFD Sender: No OFD packet to send [10:18:23]*** Cut start [10:18:23]*** Partial cut [10:18:23]*** CUTSNS_PIN = 1 [10:18:23]*** CUTSNS_PIN = 0 [10:18:23]*** Brake cut motor [10:18:24]Read from MH i2c: 01 [10:18:24]MH_I2C_Read... [10:18:24]*** Stop cut motor [10:18:24]*** Cut end [10:18:24]Read from MH i2c: 01 07 00 [10:18:24]MH_I2C_Read... [10:18:24]Read from MH i2c: 01 07 00 4A 40 00 00 00 00 00 FF 0F 9F [10:18:24]process_action close_receipt done [10:18:24]requested_data is exist [10:18:24]produce_requested_data [10:18:24]requested_item fm.sn is exist - process it [10:18:24]wFMCommunicate request_size=4 [10:18:24]MH_SAM_APDU [10:18:24]CAPDU: 80 11 00 00 [10:18:24]Write to MH i2c: E2 08 00 4B 40 80 11 00 00 00 00 00 00 05 [10:18:24]Write i2c OK [10:18:24]MH_I2C_Read... [10:18:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:18:24]Read from MH i2c: E2 [10:18:24]MH_I2C_Read... [10:18:24]Read from MH i2c: E2 17 00 [10:18:24]MH_I2C_Read... [10:18:24]Read from MH i2c: E2 17 00 4B 40 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 53 [10:18:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [10:18:24]wFMCommunicate OK [10:18:24]requested_item fd.num is exist - process it [10:18:24]SAM_PROTO_GetFieldsCounters [10:18:24]wFMCommunicate request_size=4 [10:18:24]MH_SAM_APDU [10:18:24]CAPDU: 80 13 00 00 [10:18:24]Write to MH i2c: E2 08 00 4C 40 80 13 00 00 00 00 00 00 08 [10:18:24]Write i2c OK [10:18:24]MH_I2C_Read... [10:18:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:18:24]Read from MH i2c: E2 [10:18:24]MH_I2C_Read... [10:18:24]Read from MH i2c: E2 62 00 [10:18:24]MH_I2C_Read... [10:18:24]Read from MH i2c: E2 62 00 4C 40 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 03 DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 73 00 00 00 5E 04 04 00 73 00 00 00 57 04 04 00 74 00 00 00 19 04 04 00 00 00 00 00 90 00 17 [10:18:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 03 DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 73 00 00 00 5E 04 04 00 73 00 00 00 57 04 04 00 74 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:18:24]wFMCommunicate OK [10:18:24]SAM_PROTO_GetFieldsCounters done [10:18:24]requested_item shift.num is exist - process it [10:18:24]requested_item shift.opened is exist - process it [10:18:24]req_shift_opened [10:18:24]FM_GetShiftState [10:18:24]SAM_PROTO_GetShiftState [10:18:24]wFMCommunicate request_size=4 [10:18:24]MH_SAM_APDU [10:18:24]CAPDU: 80 13 01 00 [10:18:24]Write to MH i2c: E2 08 00 4D 40 80 13 01 00 00 00 00 00 0A [10:18:24]Write i2c OK [10:18:24]MH_I2C_Read... [10:18:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:18:24]Read from MH i2c: E2 [10:18:24]MH_I2C_Read... [10:18:24]Read from MH i2c: E2 0E 00 [10:18:24]MH_I2C_Read... [10:18:24]Read from MH i2c: E2 0E 00 4D 40 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 69 [10:18:24]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [10:18:24]wFMCommunicate OK [10:18:24]SAM_PROTO_GetShiftState done [10:18:24]FM_GetShiftState done [10:18:24]req_shift_opened done [10:18:24]requested_item shift.open_date is exist - process it [10:18:24]req_shift_open_date [10:18:24]req_shift_open_date done [10:18:24]produce_requested_data done [10:18:24]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187651,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [10:18:24]process_action_free close_receipt [10:18:24]json_value_free [10:18:24]json_value_free done [10:18:24]process_json_proto returns [10:18:24]Send response to host [10:18:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187651,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [10:18:24]free response buf [10:18:24]execute_script done [10:18:24]execute_script returns [10:18:24]free content buf [10:18:24]Sock 8.Close socket [10:18:24]Sock 8.Thread stoped [10:18:28]OFD Sender: No OFD packet to send [10:18:33]OFD Sender: No OFD packet to send [10:18:38]OFD Sender: No OFD packet to send [10:18:43]OFD Sender: No OFD packet to send [10:18:48]OFD Sender: No OFD packet to send [10:18:53]OFD Sender: No OFD packet to send [10:18:58]OFD Sender: No OFD packet to send [10:19:03]OFD Sender: No OFD packet to send [10:19:08]OFD Sender: No OFD packet to send [10:19:13]OFD Sender: No OFD packet to send [10:19:18]OFD Sender: No OFD packet to send [10:19:23]OFD Sender: No OFD packet to send [10:19:28]OFD Sender: No OFD packet to send [10:19:33]OFD Sender: No OFD packet to send [10:19:38]OFD Sender: No OFD packet to send [10:19:43]OFD Sender: No OFD packet to send [10:19:48]OFD Sender: No OFD packet to send [10:19:51]accept exits with 9 [10:19:51]New connection [10:19:51]New thread 3067157860 created [10:19:51]Thread 3067014500 joined [10:19:51]Waiting for new connection... [10:19:51] Sock 9.Parse request [10:19:51]Sock 9.Check first char [10:19:51]Sock 9.First char is OK [10:19:51]request: POST /json_proto HTTP/1.0 [10:19:51]Method: POST [10:19:51]URL: /json_proto [10:19:51]Method is POST - this is cgi request [10:19:51]url: /json_proto [10:19:51]query_string will be loaded in cgi processing [10:19:51]execute_cgi json_proto POST (null) [10:19:51]execute_cgi path=json_proto method=POST [10:19:51]POST find Content-Length [10:19:51]Host: 172.17.42.131:8080 [10:19:51]Content-Length: 682 [10:19:51]Content-Type: application/json [10:19:51] [10:19:51]POST finish read [10:19:51]Found Content-Length = 682 [10:19:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209704", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "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:19:51]execute_script... [10:19: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)209704", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "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:19:51]POST & json_proto [10:19:51]process_json_proto [10:19:51]json parsed OK: [10:19:51]protocol is kg_v1.0 [10:19:51]action value=close_receipt [10:19:51]process_action close_receipt [10:19:51]cmd_close_receipt [10:19:51]MH_GetDate [10:19:51]Write to MH i2c: F0 00 00 4E 40 7D [10:19:51]Write i2c OK [10:19:51]MH_I2C_Read... [10:19:51]Read from MH i2c: F0 [10:19:51]MH_I2C_Read... [10:19:51]Read from MH i2c: F0 09 00 [10:19:51]MH_I2C_Read... [10:19:51]Read from MH i2c: F0 09 00 4E 40 00 CB 2A 16 67 A0 18 CA 66 E0 [10:19:51]GetLastDocTimeStamp 1729505903 [10:19:51]current date 1729505995 [10:19:51]FM_GetShiftState [10:19:51]SAM_PROTO_GetShiftState [10:19:51]wFMCommunicate request_size=4 [10:19:51]MH_SAM_APDU [10:19:51]CAPDU: 80 13 01 00 [10:19:51]Write to MH i2c: E2 08 00 4F 40 80 13 01 00 00 00 00 00 0C [10:19:51]Write i2c OK [10:19:51]MH_I2C_Read... [10:19:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:19:51]Read from MH i2c: E2 [10:19:51]MH_I2C_Read... [10:19:51]Read from MH i2c: E2 0E 00 [10:19:51]MH_I2C_Read... [10:19:51]Read from MH i2c: E2 0E 00 4F 40 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 6B [10:19:51]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [10:19:51]wFMCommunicate OK [10:19:51]SAM_PROTO_GetShiftState done [10:19:51]FM_GetShiftState done [10:19:51]opened in 1729469754 [10:19:51]opened+sec_in_day 1729556154 [10:19:51]quantity*price = 100015 [10:19:51]sum+1 = 100017 [10:19: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 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 116 21.10.2024 10:19 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 187652 ФПД: 138123297996750 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T101955&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187652&fm=138123297996750&tin=02508201610067®Number=0000000000100030&sum=100000 [10:19:52]StoreToDocumentArchive [10:19:52]shift 460 fd 187652 [10:19:52]save to /storage/0460/doc_00187652 [10:19:52]save last doc name /storage/0460/doc_00187652 to /storage/kkm_last_doc_name [10:19:52]save OK [10:19:52]Clear old archive folders... [10:19:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:19:52]tlvbuf is 010EB370 [10:19:52]SAM_PROTO_ClearQueue [10:19:52]wFMCommunicate request_size=4 [10:19:52]MH_SAM_APDU [10:19:52]CAPDU: 80 09 00 00 [10:19:52]Write to MH i2c: E2 08 00 5C 40 80 09 00 00 00 00 00 00 0E [10:19:52]Write i2c OK [10:19:52]MH_I2C_Read... [10:19:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:19:52]Read from MH i2c: E2 [10:19:52]MH_I2C_Read... [10:19:52]Read from MH i2c: E2 03 00 [10:19:52]MH_I2C_Read... [10:19:52]Read from MH i2c: E2 03 00 5C 40 00 90 00 10 [10:19:52]RAPDU: 90 00 [10:19:52]wFMCommunicate OK [10:19:52]SAM_PROTO_ClearQueue done [10:19:52]KKMCreateOFDPacket [10:19:52]OFDProtocolAddRootSTLVToBuf [10:19:52]FM_MakeSignedData [10:19:52]FM_MakeSignedData [10:19:52]SAM_PROTO_SignData [10:19:52]wFMCommunicate request_size=4 [10:19:52]MH_SAM_APDU [10:19:52]CAPDU: 80 0D 01 02 [10:19:52]Write to MH i2c: E2 08 00 5D 40 80 0D 01 02 00 00 00 00 16 [10:19:52]Write i2c OK [10:19:52]MH_I2C_Read... [10:19:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:19:52]Read from MH i2c: E2 [10:19:52]MH_I2C_Read... [10:19:52]Read from MH i2c: E2 03 00 [10:19:52]MH_I2C_Read... [10:19:52]Read from MH i2c: E2 03 00 5D 40 00 90 00 11 [10:19:52]RAPDU: 90 00 [10:19:52]wFMCommunicate OK [10:19:52]wFMCommunicate request_size=255 [10:19:52]MH_SAM_APDU [10:19: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 33 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 74 00 00 00 F4 03 04 00 CB 2A 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 04 DD 02 00 35 04 06 00 7D [10:19:52]Write to MH i2c: E2 02 01 5E 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 33 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 74 00 00 00 F4 03 04 00 CB 2A 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 04 DD 02 00 35 04 06 00 7D 00 00 96 [10:19:52]Write i2c OK [10:19:52]MH_I2C_Read... [10:19:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:19:53]Read from MH i2c: E2 [10:19:53]MH_I2C_Read... [10:19:53]Read from MH i2c: E2 03 00 [10:19:53]MH_I2C_Read... [10:19:53]Read from MH i2c: E2 03 00 5E 40 00 90 00 12 [10:19:53]RAPDU: 90 00 [10:19:53]wFMCommunicate OK [10:19:53]wFMCommunicate request_size=10 [10:19:53]MH_SAM_APDU [10:19:53]CAPDU: 80 0D 02 02 05 9F 56 1C BF CE [10:19:53]Write to MH i2c: E2 0D 00 5F 40 80 0D 02 02 05 00 9F 56 1C BF CE 00 00 C1 [10:19:53]Write i2c OK [10:19:53]MH_I2C_Read... [10:19:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:19:53]Read from MH i2c: E2 [10:19:53]MH_I2C_Read... [10:19:53]Read from MH i2c: E2 03 00 [10:19:53]MH_I2C_Read... [10:19:53]Read from MH i2c: E2 03 00 5F 40 00 90 00 13 [10:19:53]RAPDU: 90 00 [10:19:53]wFMCommunicate OK [10:19:53]wFMCommunicate request_size=4 [10:19:53]MH_SAM_APDU [10:19:53]CAPDU: 80 0D 03 02 [10:19:53]Write to MH i2c: E2 08 00 60 40 80 0D 03 02 00 00 00 00 1B [10:19:53]Write i2c OK [10:19:53]MH_I2C_Read... [10:19:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:19:53]Read from MH i2c: E2 [10:19:53]MH_I2C_Read... [10:19:53]Read from MH i2c: E2 0B 00 [10:19:53]MH_I2C_Read... [10:19:53]Read from MH i2c: E2 0B 00 60 40 00 37 83 AE 61 08 E2 FF 81 90 00 4F [10:19:53]RAPDU: 37 83 AE 61 08 E2 FF 81 90 00 [10:19:53]wFMCommunicate OK [10:19:53]SAM_PROTO_SignData done [10:19:53]FM_MakeSignedData done [10:19:53]CreateOFDProtocolMessage [10:19:53]wFMCommunicate request_size=4 [10:19:53]MH_SAM_APDU [10:19:53]CAPDU: 80 11 00 00 [10:19:53]Write to MH i2c: E2 08 00 61 40 80 11 00 00 00 00 00 00 1B [10:19:53]Write i2c OK [10:19:53]MH_I2C_Read... [10:19:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:19:53]Read from MH i2c: E2 [10:19:53]MH_I2C_Read... [10:19:53]Read from MH i2c: E2 17 00 [10:19:53]MH_I2C_Read... [10:19:53]Read from MH i2c: E2 17 00 61 40 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 69 [10:19:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [10:19:53]wFMCommunicate OK [10:19:53]CreateOFDProtocolMessage done [10:19:53]OFDSenderStorePacket 187652 [10:19:53]StoreOFDPacket docnum=187652 [10:19:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 8B A4 07 01 B3 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 33 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 74 00 00 00 F4 03 04 00 CB 2A 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 04 DD 02 00 35 04 06 00 7D 9F 56 1C BF CE 37 83 AE 61 08 E2 FF 81 [10:19:53]CheckFolder [10:19:53]dirname=/storage/ofd_packets [10:19:53]CheckFolder done [10:19:53]ProducePacketName [10:19:53]name=ofd_packets/00187652 [10:19:53]NVStorageSaveData ofd_packets/00187652 [10:19:53]File name is /storage/ofd_packets/00187652 [10:19:53]Write 301 bytes [10:19:53]NVStorageSaveData done [10:19:53]OFDSenderStorePacket done [10:19:53]KKMCreateOFDPacket done [10:19:53]NVStorageSaveData kkm_last_timestamp [10:19:53]File name is /storage/kkm_last_timestamp [10:19:53]Write 4 bytes [10:19:53]NVStorageSaveData done [10:19:53]ExternCall_PrintAddStr [10:19:53]wPrintStart [10:19:53]Write to MH i2c: 01 00 00 62 40 A2 [10:19:53]Write i2c OK [10:19:53]MH_I2C_Read... [10:19:53]Read from MH i2c: 01 [10:19:53]MH_I2C_Read... [10:19:53]Read from MH i2c: 01 07 00 [10:19:53]MH_I2C_Read... [10:19:53]Read from MH i2c: 01 07 00 62 40 00 00 00 00 00 FF 0F B7 [10:19:53]RasterBufferAndPrint [10:19:53]line Счет N : (1)209704 [10:19:53]line ИНН: 02508201610067 [10:19:53]line Контрольно-Кассовый Чек [10:19:53]line ПРОДАЖА [10:19:53]line ТРК (МРК, ГНК) : 22 [10:19:53]line Товар: 2710124130 [10:19:53]line Аи-92-К-3 [10:19:53]line 14.950 * 66.90 [10:19:53]line = 1000.16 [10:19:53]line НДС 12% НСП 1% [10:19:53]line > о реализуемом товаре [10:19:53]line ОКРУГЛЕНИЕ: -0.16 [10:19:53]line ИТОГО: 1000.00 [10:19:53]line Внесено: 1000.00 [10:19:53]line СДАЧА: 0.00 [10:19:53]line НСП 1% : 8.85 [10:19:53]line НДС 12% : 106.21 [10:19:53]line Наличными: 1000.00 [10:19:53]line Безнал.: 0.00 [10:19:53]line Место: АЗС № 86 "Партнер Нефть" [10:19:53]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [10:19:53]line СНО: Общий режим [10:19:53]line Чек 116 21.10.2024 10:19 [10:19:53]line Смена: 460 ФФД: 1.0 [10:19:53]line ЗНМ: 0300000155 [10:19:53]line РНМ: 0000000000100030 [10:19:53]line Версия ККМ: 001 [10:19:53]line ФМ: 0000000000965340 [10:19:53]line ФД: 187652 [10:19:53]line ФПД: 138123297996750 [10:19:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T101955&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187652&fm=138123297996750&tin=02508201610067®Number=0000000000100030&sum=100000 [10:19:53]written 0, free lines is 4095 [10:19:53]OFD Sender: Processing packet 187652 [packets to send 1062, broken 1061] [10:19:53]ProducePacketName [10:19:53]name=ofd_packets/00187652 [10:19:53]OFD Sender: To server: pG, [10:19:53]CommunicateWithHost lk.salyk.kg:30040 [10:19:53]ConnectInit lk.salyk.kg [10:19:53]Connected sock=8 [10:19:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 8B A4 07 01 B3 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 33 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 74 00 00 00 F4 03 04 00 CB 2A 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 04 DD 02 00 35 04 06 00 7D 9F 56 1C BF CE 37 83 AE 61 08 E2 FF 81 [10:19:53]Write to MH i2c: 01 00 00 8D 40 CD [10:19:53]Write i2c OK [10:19:53]MH_I2C_Read... [10:19:53]Read from MH i2c: 01 [10:19:53]MH_I2C_Read... [10:19:53]Read from MH i2c: 01 07 00 [10:19:53]MH_I2C_Read... [10:19:53]Read from MH i2c: 01 07 00 8D 40 00 00 00 00 00 7A 0C 5A [10:19:53]RasterBufferAndPrint [10:19:53]line [10:19:53]line [10:19:53]line [10:19:53]line [10:19:53]line [10:19:53]written 0, free lines is 3197 [10:19:53]MH_Cut [10:19:53]Write to MH i2c: D1 01 00 94 40 01 A6 [10:19:53]Write i2c OK [10:19:53]MH_I2C_Read... [10:19:53]Read from MH i2c: D1 [10:19:53]MH_I2C_Read... [10:19:53]Read from MH i2c: D1 01 00 [10:19:53]MH_I2C_Read... [10:19:53]Read from MH i2c: D1 01 00 94 40 00 A5 [10:19:53]Write to MH i2c: 01 00 00 95 40 D5 [10:19:53]Write i2c OK [10:19:53]MH_I2C_Read... [10:19:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 04 CC 47 00 09 56 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 04 DD 02 00 F4 03 04 00 BB D4 15 67 B6 04 01 00 00 FF 7D 75 AC C8 CD 01 43 [10:19:53]CommunicateWithHost err = 0 [10:19:53]CheckOFDResponse [10:19:53]1017 (14) - 77093643461234 [10:19:53]1041 (16) - 0000000000965340 [10:19:53]1040 (4) - 187652 [10:19:53]1012 (4) - 21.10.2024 04:12 [10:19:53]1206 (1) - 0 [10:19:53]OFD Sender: Remove packet 187652 [10:19:53]ProducePacketName [10:19:53]name=ofd_packets/00187652 [10:19:53]NVStorageDeleteData [10:19:54]OFD Sender: No OFD packet to send [10:19:54]*** Cut start [10:19:54]*** Partial cut [10:19:54]*** CUTSNS_PIN = 1 [10:19:54]*** CUTSNS_PIN = 0 [10:19:55]*** Brake cut motor [10:19:55]Read from MH i2c: 01 [10:19:55]MH_I2C_Read... [10:19:55]*** Stop cut motor [10:19:55]*** Cut end [10:19:55]Read from MH i2c: 01 07 00 [10:19:55]MH_I2C_Read... [10:19:55]Read from MH i2c: 01 07 00 95 40 00 00 00 00 00 FF 0F EA [10:19:55]process_action close_receipt done [10:19:55]requested_data is exist [10:19:55]produce_requested_data [10:19:55]requested_item fm.sn is exist - process it [10:19:55]wFMCommunicate request_size=4 [10:19:55]MH_SAM_APDU [10:19:55]CAPDU: 80 11 00 00 [10:19:55]Write to MH i2c: E2 08 00 96 40 80 11 00 00 00 00 00 00 50 [10:19:55]Write i2c OK [10:19:55]MH_I2C_Read... [10:19:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:19:55]Read from MH i2c: E2 [10:19:55]MH_I2C_Read... [10:19:55]Read from MH i2c: E2 17 00 [10:19:55]MH_I2C_Read... [10:19:55]Read from MH i2c: E2 17 00 96 40 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 9E [10:19:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [10:19:55]wFMCommunicate OK [10:19:55]requested_item fd.num is exist - process it [10:19:55]SAM_PROTO_GetFieldsCounters [10:19:55]wFMCommunicate request_size=4 [10:19:55]MH_SAM_APDU [10:19:55]CAPDU: 80 13 00 00 [10:19:55]Write to MH i2c: E2 08 00 97 40 80 13 00 00 00 00 00 00 53 [10:19:55]Write i2c OK [10:19:55]MH_I2C_Read... [10:19:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:19:55]Read from MH i2c: E2 [10:19:55]MH_I2C_Read... [10:19:55]Read from MH i2c: E2 62 00 [10:19:55]MH_I2C_Read... [10:19:55]Read from MH i2c: E2 62 00 97 40 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 04 DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 74 00 00 00 5E 04 04 00 74 00 00 00 57 04 04 00 75 00 00 00 19 04 04 00 00 00 00 00 90 00 66 [10:19:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 04 DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 74 00 00 00 5E 04 04 00 74 00 00 00 57 04 04 00 75 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:19:55]wFMCommunicate OK [10:19:55]SAM_PROTO_GetFieldsCounters done [10:19:55]requested_item shift.num is exist - process it [10:19:55]requested_item shift.opened is exist - process it [10:19:55]req_shift_opened [10:19:55]FM_GetShiftState [10:19:55]SAM_PROTO_GetShiftState [10:19:55]wFMCommunicate request_size=4 [10:19:55]MH_SAM_APDU [10:19:55]CAPDU: 80 13 01 00 [10:19:55]Write to MH i2c: E2 08 00 98 40 80 13 01 00 00 00 00 00 55 [10:19:55]Write i2c OK [10:19:55]MH_I2C_Read... [10:19:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:19:55]Read from MH i2c: E2 [10:19:55]MH_I2C_Read... [10:19:55]Read from MH i2c: E2 0E 00 [10:19:55]MH_I2C_Read... [10:19:55]Read from MH i2c: E2 0E 00 98 40 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 B4 [10:19:55]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [10:19:55]wFMCommunicate OK [10:19:55]SAM_PROTO_GetShiftState done [10:19:55]FM_GetShiftState done [10:19:55]req_shift_opened done [10:19:55]requested_item shift.open_date is exist - process it [10:19:55]req_shift_open_date [10:19:55]req_shift_open_date done [10:19:55]produce_requested_data done [10:19:55]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187652,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [10:19:55]process_action_free close_receipt [10:19:55]json_value_free [10:19:55]json_value_free done [10:19:55]process_json_proto returns [10:19:55]Send response to host [10:19:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187652,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [10:19:55]free response buf [10:19:55]execute_script done [10:19:55]execute_script returns [10:19:55]free content buf [10:19:55]Sock 9.Close socket [10:19:55]Sock 9.Thread stoped [10:19:59]OFD Sender: No OFD packet to send [10:20:04]OFD Sender: No OFD packet to send [10:20:09]OFD Sender: No OFD packet to send [10:20:14]OFD Sender: No OFD packet to send [10:20:19]OFD Sender: No OFD packet to send [10:20:24]OFD Sender: No OFD packet to send [10:20:29]OFD Sender: No OFD packet to send [10:20:34]OFD Sender: No OFD packet to send [10:20:39]OFD Sender: No OFD packet to send [10:20:44]OFD Sender: No OFD packet to send [10:20:49]OFD Sender: No OFD packet to send [10:20:54]OFD Sender: No OFD packet to send [10:20:59]OFD Sender: No OFD packet to send [10:21:04]OFD Sender: No OFD packet to send [10:21:09]OFD Sender: No OFD packet to send [10:21:14]OFD Sender: No OFD packet to send [10:21:19]OFD Sender: No OFD packet to send [10:21:24]OFD Sender: No OFD packet to send [10:21:29]OFD Sender: No OFD packet to send [10:21:34]OFD Sender: No OFD packet to send [10:21:39]OFD Sender: No OFD packet to send [10:21:44]OFD Sender: No OFD packet to send [10:21:48]accept exits with 10 [10:21:48]New connection [10:21:48]New thread 3067014500 created [10:21:48]Thread 3067157860 joined [10:21:48]Waiting for new connection... [10:21:48] Sock 10.Parse request [10:21:48]Sock 10.Check first char [10:21:48]Sock 10.First char is OK [10:21:48]request: POST /json_proto HTTP/1.0 [10:21:48]Method: POST [10:21:48]URL: /json_proto [10:21:48]Method is POST - this is cgi request [10:21:48]url: /json_proto [10:21:48]query_string will be loaded in cgi processing [10:21:48]execute_cgi json_proto POST (null) [10:21:48]execute_cgi path=json_proto method=POST [10:21:48]POST find Content-Length [10:21:48]Host: 172.17.42.131:8080 [10:21:48]Content-Length: 683 [10:21:48]Content-Type: application/json [10:21:48] [10:21:48]POST finish read [10:21:48]Found Content-Length = 683 [10:21:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209705", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "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" ] } } [10:21:48]execute_script... [10:21: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)209705", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "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" ] } } [10:21:48]POST & json_proto [10:21:48]process_json_proto [10:21:48]json parsed OK: [10:21:48]protocol is kg_v1.0 [10:21:48]action value=close_receipt [10:21:48]process_action close_receipt [10:21:48]cmd_close_receipt [10:21:48]MH_GetDate [10:21:48]Write to MH i2c: F0 00 00 99 40 C8 [10:21:48]Write i2c OK [10:21:48]MH_I2C_Read... [10:21:48]Read from MH i2c: F0 [10:21:48]MH_I2C_Read... [10:21:48]Read from MH i2c: F0 09 00 [10:21:48]MH_I2C_Read... [10:21:48]Read from MH i2c: F0 09 00 99 40 00 40 2B 16 67 A0 18 CA 66 A1 [10:21:48]GetLastDocTimeStamp 1729505995 [10:21:48]current date 1729506112 [10:21:48]FM_GetShiftState [10:21:48]SAM_PROTO_GetShiftState [10:21:48]wFMCommunicate request_size=4 [10:21:48]MH_SAM_APDU [10:21:48]CAPDU: 80 13 01 00 [10:21:48]Write to MH i2c: E2 08 00 9A 40 80 13 01 00 00 00 00 00 57 [10:21:48]Write i2c OK [10:21:48]MH_I2C_Read... [10:21:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:21:48]Read from MH i2c: E2 [10:21:48]MH_I2C_Read... [10:21:48]Read from MH i2c: E2 0E 00 [10:21:48]MH_I2C_Read... [10:21:48]Read from MH i2c: E2 0E 00 9A 40 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 B6 [10:21:48]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [10:21:48]wFMCommunicate OK [10:21:48]SAM_PROTO_GetShiftState done [10:21:48]FM_GetShiftState done [10:21:48]opened in 1729469754 [10:21:48]opened+sec_in_day 1729556154 [10:21:48]quantity*price = 50025 [10:21:48]sum+1 = 50027 [10:21:48]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.26 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 117 21.10.2024 10:21 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 187653 ФПД: 78710014803462 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T102152&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187653&fm=78710014803462&tin=02508201610067®Number=0000000000100030&sum=50000 [10:21:49]StoreToDocumentArchive [10:21:49]shift 460 fd 187653 [10:21:49]save to /storage/0460/doc_00187653 [10:21:49]save last doc name /storage/0460/doc_00187653 to /storage/kkm_last_doc_name [10:21:49]save OK [10:21:49]Clear old archive folders... [10:21:49]ProcessDocumentItem done err = 0, tmpTLVsize=257 [10:21:49]tlvbuf is 011217C0 [10:21:49]SAM_PROTO_ClearQueue [10:21:49]wFMCommunicate request_size=4 [10:21:49]MH_SAM_APDU [10:21:49]CAPDU: 80 09 00 00 [10:21:49]Write to MH i2c: E2 08 00 A7 40 80 09 00 00 00 00 00 00 59 [10:21:49]Write i2c OK [10:21:49]MH_I2C_Read... [10:21:50]OFD Sender: No OFD packet to send [10:21:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:21:50]Read from MH i2c: E2 [10:21:50]MH_I2C_Read... [10:21:50]Read from MH i2c: E2 03 00 [10:21:50]MH_I2C_Read... [10:21:50]Read from MH i2c: E2 03 00 A7 40 00 90 00 5B [10:21:50]RAPDU: 90 00 [10:21:50]wFMCommunicate OK [10:21:50]SAM_PROTO_ClearQueue done [10:21:50]KKMCreateOFDPacket [10:21:50]OFDProtocolAddRootSTLVToBuf [10:21:50]FM_MakeSignedData [10:21:50]FM_MakeSignedData [10:21:50]SAM_PROTO_SignData [10:21:50]wFMCommunicate request_size=4 [10:21:50]MH_SAM_APDU [10:21:50]CAPDU: 80 0D 01 02 [10:21:50]Write to MH i2c: E2 08 00 A8 40 80 0D 01 02 00 00 00 00 61 [10:21:50]Write i2c OK [10:21:50]MH_I2C_Read... [10:21:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:21:50]Read from MH i2c: E2 [10:21:50]MH_I2C_Read... [10:21:50]Read from MH i2c: E2 03 00 [10:21:50]MH_I2C_Read... [10:21:50]Read from MH i2c: E2 03 00 A8 40 00 90 00 5C [10:21:50]RAPDU: 90 00 [10:21:50]wFMCommunicate OK [10:21:50]wFMCommunicate request_size=255 [10:21:50]MH_SAM_APDU [10:21:50]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 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 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 75 00 00 00 F4 03 04 00 40 2B 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 05 DD 02 [10:21:50]Write to MH i2c: E2 02 01 A9 40 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 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 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 75 00 00 00 F4 03 04 00 40 2B 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 05 DD 02 00 00 7C [10:21:50]Write i2c OK [10:21:50]MH_I2C_Read... [10:21:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:21:50]Read from MH i2c: E2 [10:21:50]MH_I2C_Read... [10:21:50]Read from MH i2c: E2 03 00 [10:21:50]MH_I2C_Read... [10:21:50]Read from MH i2c: E2 03 00 A9 40 00 90 00 5D [10:21:50]RAPDU: 90 00 [10:21:50]wFMCommunicate OK [10:21:50]wFMCommunicate request_size=16 [10:21:50]MH_SAM_APDU [10:21:50]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 47 96 1A 78 FE 06 [10:21:50]Write to MH i2c: E2 13 00 AA 40 80 0D 02 02 0B 00 00 35 04 06 00 47 96 1A 78 FE 06 00 00 2C [10:21:50]Write i2c OK [10:21:50]MH_I2C_Read... [10:21:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:21:50]Read from MH i2c: E2 [10:21:50]MH_I2C_Read... [10:21:50]Read from MH i2c: E2 03 00 [10:21:50]MH_I2C_Read... [10:21:50]Read from MH i2c: E2 03 00 AA 40 00 90 00 5E [10:21:50]RAPDU: 90 00 [10:21:50]wFMCommunicate OK [10:21:50]wFMCommunicate request_size=4 [10:21:50]MH_SAM_APDU [10:21:50]CAPDU: 80 0D 03 02 [10:21:50]Write to MH i2c: E2 08 00 AB 40 80 0D 03 02 00 00 00 00 66 [10:21:50]Write i2c OK [10:21:50]MH_I2C_Read... [10:21:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:21:50]Read from MH i2c: E2 [10:21:50]MH_I2C_Read... [10:21:50]Read from MH i2c: E2 0B 00 [10:21:50]MH_I2C_Read... [10:21:50]Read from MH i2c: E2 0B 00 AB 40 00 8F FF BD B0 58 B9 57 44 90 00 0E [10:21:50]RAPDU: 8F FF BD B0 58 B9 57 44 90 00 [10:21:50]wFMCommunicate OK [10:21:50]SAM_PROTO_SignData done [10:21:50]FM_MakeSignedData done [10:21:50]CreateOFDProtocolMessage [10:21:50]wFMCommunicate request_size=4 [10:21:50]MH_SAM_APDU [10:21:50]CAPDU: 80 11 00 00 [10:21:50]Write to MH i2c: E2 08 00 AC 40 80 11 00 00 00 00 00 00 66 [10:21:50]Write i2c OK [10:21:50]MH_I2C_Read... [10:21:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:21:50]Read from MH i2c: E2 [10:21:50]MH_I2C_Read... [10:21:50]Read from MH i2c: E2 17 00 [10:21:50]MH_I2C_Read... [10:21:50]Read from MH i2c: E2 17 00 AC 40 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 B4 [10:21:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [10:21:50]wFMCommunicate OK [10:21:50]CreateOFDProtocolMessage done [10:21:50]OFDSenderStorePacket 187653 [10:21:50]StoreOFDPacket docnum=187653 [10:21:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 48 2E 0D 01 4F 95 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 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 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 75 00 00 00 F4 03 04 00 40 2B 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 05 DD 02 00 35 04 06 00 47 96 1A 78 FE 06 8F FF BD B0 58 B9 57 44 [10:21:50]CheckFolder [10:21:50]dirname=/storage/ofd_packets [10:21:50]CheckFolder done [10:21:50]ProducePacketName [10:21:50]name=ofd_packets/00187653 [10:21:50]NVStorageSaveData ofd_packets/00187653 [10:21:50]File name is /storage/ofd_packets/00187653 [10:21:50]Write 307 bytes [10:21:50]NVStorageSaveData done [10:21:50]OFDSenderStorePacket done [10:21:50]KKMCreateOFDPacket done [10:21:50]NVStorageSaveData kkm_last_timestamp [10:21:50]File name is /storage/kkm_last_timestamp [10:21:50]Write 4 bytes [10:21:50]NVStorageSaveData done [10:21:50]ExternCall_PrintAddStr [10:21:50]wPrintStart [10:21:50]Write to MH i2c: 01 00 00 AD 40 ED [10:21:50]Write i2c OK [10:21:50]MH_I2C_Read... [10:21:50]Read from MH i2c: 01 [10:21:50]MH_I2C_Read... [10:21:50]Read from MH i2c: 01 07 00 [10:21:50]MH_I2C_Read... [10:21:50]Read from MH i2c: 01 07 00 AD 40 00 00 00 00 00 FF 0F 02 [10:21:50]RasterBufferAndPrint [10:21:50]line Счет N : (1)209705 [10:21:50]line ИНН: 02508201610067 [10:21:50]line Контрольно-Кассовый Чек [10:21:50]line ПРОДАЖА [10:21:50]line ТРК (МРК, ГНК) : 31 [10:21:50]line Товар: 2710194210 [10:21:50]line D-ENERGY ДТ-К-5 [10:21:50]line 6.480 * 77.20 [10:21:50]line = 500.26 [10:21:50]line НДС 12% НСП 1% [10:21:50]line > о реализуемом товаре [10:21:50]line ОКРУГЛЕНИЕ: -0.26 [10:21:50]line ИТОГО: 500.00 [10:21:50]line Внесено: 500.00 [10:21:50]line СДАЧА: 0.00 [10:21:50]line НСП 1% : 4.43 [10:21:50]line НДС 12% : 53.12 [10:21:50]line Наличными: 500.00 [10:21:50]line Безнал.: 0.00 [10:21:50]line Место: АЗС № 86 "Партнер Нефть" [10:21:50]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [10:21:50]line СНО: Общий режим [10:21:50]line Чек 117 21.10.2024 10:21 [10:21:50]line Смена: 460 ФФД: 1.0 [10:21:50]line ЗНМ: 0300000155 [10:21:50]line РНМ: 0000000000100030 [10:21:50]line Версия ККМ: 001 [10:21:50]line ФМ: 0000000000965340 [10:21:50]line ФД: 187653 [10:21:50]line ФПД: 78710014803462 [10:21:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T102152&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187653&fm=78710014803462&tin=02508201610067®Number=0000000000100030&sum=50000 [10:21:50]written 0, free lines is 4095 [10:21:50]OFD Sender: Processing packet 187653 [packets to send 1062, broken 1061] [10:21:50]ProducePacketName [10:21:50]name=ofd_packets/00187653 [10:21:50]OFD Sender: To server: pG, [10:21:50]CommunicateWithHost lk.salyk.kg:30040 [10:21:50]ConnectInit lk.salyk.kg [10:21:50]Connected sock=9 [10:21:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 48 2E 0D 01 4F 95 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 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 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 75 00 00 00 F4 03 04 00 40 2B 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 05 DD 02 00 35 04 06 00 47 96 1A 78 FE 06 8F FF BD B0 58 B9 57 44 [10:21:51]Write to MH i2c: 01 00 00 D8 40 18 [10:21:51]Write i2c OK [10:21:51]MH_I2C_Read... [10:21:51]Read from MH i2c: 01 [10:21:51]MH_I2C_Read... [10:21:51]Read from MH i2c: 01 07 00 [10:21:51]MH_I2C_Read... [10:21:51]Read from MH i2c: 01 07 00 D8 40 00 00 00 00 00 7D 0C A8 [10:21:51]RasterBufferAndPrint [10:21:51]line [10:21:51]line [10:21:51]line [10:21:51]line [10:21:51]line [10:21:51]written 0, free lines is 3200 [10:21:51]MH_Cut [10:21:51]Write to MH i2c: D1 01 00 DF 40 01 F1 [10:21:51]Write i2c OK [10:21:51]MH_I2C_Read... [10:21:51]Read from MH i2c: D1 [10:21:51]MH_I2C_Read... [10:21:51]Read from MH i2c: D1 01 00 [10:21:51]MH_I2C_Read... [10:21:51]Read from MH i2c: D1 01 00 DF 40 00 F0 [10:21:51]Write to MH i2c: 01 00 00 E0 40 20 [10:21:51]Write i2c OK [10:21:51]MH_I2C_Read... [10:21:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 FF F8 47 00 F3 CF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 05 DD 02 00 F4 03 04 00 30 D5 15 67 B6 04 01 00 00 FC 86 87 1E B7 A7 45 6F [10:21:51]CommunicateWithHost err = 0 [10:21:51]CheckOFDResponse [10:21:51]1017 (14) - 77093643461234 [10:21:51]1041 (16) - 0000000000965340 [10:21:51]1040 (4) - 187653 [10:21:51]1012 (4) - 21.10.2024 04:14 [10:21:51]1206 (1) - 0 [10:21:51]OFD Sender: Remove packet 187653 [10:21:51]ProducePacketName [10:21:51]name=ofd_packets/00187653 [10:21:51]NVStorageDeleteData [10:21:51]OFD Sender: No OFD packet to send [10:21:52]*** Cut start [10:21:52]*** Partial cut [10:21:52]*** CUTSNS_PIN = 1 [10:21:52]*** CUTSNS_PIN = 0 [10:21:52]*** Brake cut motor [10:21:52]Read from MH i2c: 01 [10:21:52]MH_I2C_Read... [10:21:52]*** Stop cut motor [10:21:52]*** Cut end [10:21:52]Read from MH i2c: 01 07 00 [10:21:52]MH_I2C_Read... [10:21:52]Read from MH i2c: 01 07 00 E0 40 00 00 00 00 00 FF 0F 35 [10:21:52]process_action close_receipt done [10:21:52]requested_data is exist [10:21:52]produce_requested_data [10:21:52]requested_item fm.sn is exist - process it [10:21:52]wFMCommunicate request_size=4 [10:21:52]MH_SAM_APDU [10:21:52]CAPDU: 80 11 00 00 [10:21:52]Write to MH i2c: E2 08 00 E1 40 80 11 00 00 00 00 00 00 9B [10:21:52]Write i2c OK [10:21:52]MH_I2C_Read... [10:21:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:21:52]Read from MH i2c: E2 [10:21:52]MH_I2C_Read... [10:21:52]Read from MH i2c: E2 17 00 [10:21:52]MH_I2C_Read... [10:21:52]Read from MH i2c: E2 17 00 E1 40 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 E9 [10:21:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [10:21:52]wFMCommunicate OK [10:21:52]requested_item fd.num is exist - process it [10:21:52]SAM_PROTO_GetFieldsCounters [10:21:52]wFMCommunicate request_size=4 [10:21:52]MH_SAM_APDU [10:21:52]CAPDU: 80 13 00 00 [10:21:52]Write to MH i2c: E2 08 00 E2 40 80 13 00 00 00 00 00 00 9E [10:21:52]Write i2c OK [10:21:52]MH_I2C_Read... [10:21:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:21:52]Read from MH i2c: E2 [10:21:52]MH_I2C_Read... [10:21:52]Read from MH i2c: E2 62 00 [10:21:52]MH_I2C_Read... [10:21:52]Read from MH i2c: E2 62 00 E2 40 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 05 DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 75 00 00 00 5E 04 04 00 75 00 00 00 57 04 04 00 76 00 00 00 19 04 04 00 00 00 00 00 90 00 B5 [10:21:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 05 DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 75 00 00 00 5E 04 04 00 75 00 00 00 57 04 04 00 76 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:21:52]wFMCommunicate OK [10:21:52]SAM_PROTO_GetFieldsCounters done [10:21:52]requested_item shift.num is exist - process it [10:21:52]requested_item shift.opened is exist - process it [10:21:52]req_shift_opened [10:21:52]FM_GetShiftState [10:21:52]SAM_PROTO_GetShiftState [10:21:52]wFMCommunicate request_size=4 [10:21:52]MH_SAM_APDU [10:21:52]CAPDU: 80 13 01 00 [10:21:52]Write to MH i2c: E2 08 00 E3 40 80 13 01 00 00 00 00 00 A0 [10:21:52]Write i2c OK [10:21:52]MH_I2C_Read... [10:21:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:21:52]Read from MH i2c: E2 [10:21:52]MH_I2C_Read... [10:21:52]Read from MH i2c: E2 0E 00 [10:21:52]MH_I2C_Read... [10:21:52]Read from MH i2c: E2 0E 00 E3 40 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 FF [10:21:52]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [10:21:52]wFMCommunicate OK [10:21:52]SAM_PROTO_GetShiftState done [10:21:52]FM_GetShiftState done [10:21:52]req_shift_opened done [10:21:52]requested_item shift.open_date is exist - process it [10:21:52]req_shift_open_date [10:21:52]req_shift_open_date done [10:21:52]produce_requested_data done [10:21:52]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187653,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [10:21:52]process_action_free close_receipt [10:21:52]json_value_free [10:21:52]json_value_free done [10:21:52]process_json_proto returns [10:21:52]Send response to host [10:21:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187653,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [10:21:52]free response buf [10:21:52]execute_script done [10:21:52]execute_script returns [10:21:52]free content buf [10:21:52]Sock 10.Close socket [10:21:52]Sock 10.Thread stoped [10:21:56]OFD Sender: No OFD packet to send [10:22:01]OFD Sender: No OFD packet to send [10:22:06]OFD Sender: No OFD packet to send [10:22:11]OFD Sender: No OFD packet to send [10:22:16]OFD Sender: No OFD packet to send [10:22:21]OFD Sender: No OFD packet to send [10:22:26]OFD Sender: No OFD packet to send [10:22:31]OFD Sender: No OFD packet to send [10:22:36]OFD Sender: No OFD packet to send [10:22:41]OFD Sender: No OFD packet to send [10:22:46]OFD Sender: No OFD packet to send [10:22:51]OFD Sender: No OFD packet to send [10:22:56]OFD Sender: No OFD packet to send [10:23:01]OFD Sender: No OFD packet to send [10:23:06]OFD Sender: No OFD packet to send [10:23:11]OFD Sender: No OFD packet to send [10:23:16]OFD Sender: No OFD packet to send [10:23:22]OFD Sender: No OFD packet to send [10:23:27]OFD Sender: No OFD packet to send [10:23:32]OFD Sender: No OFD packet to send [10:23:37]OFD Sender: No OFD packet to send [10:23:42]OFD Sender: No OFD packet to send [10:23:47]OFD Sender: No OFD packet to send [10:23:52]OFD Sender: No OFD packet to send [10:23:57]OFD Sender: No OFD packet to send [10:24:02]OFD Sender: No OFD packet to send [10:24:07]OFD Sender: No OFD packet to send [10:24:12]OFD Sender: No OFD packet to send [10:24:17]OFD Sender: No OFD packet to send [10:24:22]OFD Sender: No OFD packet to send [10:24:27]OFD Sender: No OFD packet to send [10:24:32]OFD Sender: No OFD packet to send [10:24:37]OFD Sender: No OFD packet to send [10:24:42]OFD Sender: No OFD packet to send [10:24:47]OFD Sender: No OFD packet to send [10:24:52]OFD Sender: No OFD packet to send [10:24:57]OFD Sender: No OFD packet to send [10:25:00]accept exits with 8 [10:25:00]New connection [10:25:00]New thread 3067157860 created [10:25:00]Thread 3067014500 joined [10:25:00]Waiting for new connection... [10:25:00] Sock 8.Parse request [10:25:00]Sock 8.Check first char [10:25:00]Sock 8.First char is OK [10:25:00]request: POST /json_proto HTTP/1.0 [10:25:00]Method: POST [10:25:00]URL: /json_proto [10:25:00]Method is POST - this is cgi request [10:25:00]url: /json_proto [10:25:00]query_string will be loaded in cgi processing [10:25:00]execute_cgi json_proto POST (null) [10:25:00]execute_cgi path=json_proto method=POST [10:25:00]POST find Content-Length [10:25:00]Host: 172.17.42.131:8080 [10:25:00]Content-Length: 772 [10:25:00]Content-Type: application/json [10:25:00] [10:25:00]POST finish read [10:25:00]Found Content-Length = 772 [10:25:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209706", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 6.480, "sum" : 500.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 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.26 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:25:00]execute_script... [10:25: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)209706", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 6.480, "sum" : 500.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 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.26 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:25:00]POST & json_proto [10:25:00]process_json_proto [10:25:00]json parsed OK: [10:25:00]protocol is kg_v1.0 [10:25:00]action value=close_receipt [10:25:00]process_action close_receipt [10:25:00]cmd_close_receipt [10:25:00]MH_GetDate [10:25:00]Write to MH i2c: F0 00 00 E4 40 13 [10:25:00]Write i2c OK [10:25:00]MH_I2C_Read... [10:25:00]Read from MH i2c: F0 [10:25:00]MH_I2C_Read... [10:25:00]Read from MH i2c: F0 09 00 [10:25:00]MH_I2C_Read... [10:25:00]Read from MH i2c: F0 09 00 E4 40 00 00 2C 16 67 A0 18 CA 66 AD [10:25:00]GetLastDocTimeStamp 1729506112 [10:25:00]current date 1729506304 [10:25:00]FM_GetShiftState [10:25:00]SAM_PROTO_GetShiftState [10:25:00]wFMCommunicate request_size=4 [10:25:00]MH_SAM_APDU [10:25:00]CAPDU: 80 13 01 00 [10:25:00]Write to MH i2c: E2 08 00 E5 40 80 13 01 00 00 00 00 00 A2 [10:25:00]Write i2c OK [10:25:00]MH_I2C_Read... [10:25:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:25:00]Read from MH i2c: E2 [10:25:00]MH_I2C_Read... [10:25:00]Read from MH i2c: E2 0E 00 [10:25:00]MH_I2C_Read... [10:25:00]Read from MH i2c: E2 0E 00 E5 40 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 01 [10:25:00]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [10:25:00]wFMCommunicate OK [10:25:00]SAM_PROTO_GetShiftState done [10:25:00]FM_GetShiftState done [10:25:00]opened in 1729469754 [10:25:00]opened+sec_in_day 1729556154 [10:25:00]quantity*price = 50025 [10:25:00]sum+1 = 50027 [10:25:00]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.26 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 0.00 Безнал.: 500.26 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 118 21.10.2024 10:25 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000965340 ФД: 187654 ФПД: 180954581925758 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T102504&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187654&fm=180954581925758&tin=02508201610067®Number=0000000000100030&sum=50026 [10:25:01]StoreToDocumentArchive [10:25:01]shift 460 fd 187654 [10:25:01]save to /storage/0460/doc_00187654 [10:25:01]save last doc name /storage/0460/doc_00187654 to /storage/kkm_last_doc_name [10:25:01]save OK [10:25:01]Clear old archive folders... [10:25:01]ProcessDocumentItem done err = 0, tmpTLVsize=257 [10:25:01]tlvbuf is 011AD4C0 [10:25:01]SAM_PROTO_ClearQueue [10:25:01]wFMCommunicate request_size=4 [10:25:01]MH_SAM_APDU [10:25:01]CAPDU: 80 09 00 00 [10:25:01]Write to MH i2c: E2 08 00 F2 40 80 09 00 00 00 00 00 00 A4 [10:25:01]Write i2c OK [10:25:01]MH_I2C_Read... [10:25:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:25:01]Read from MH i2c: E2 [10:25:01]MH_I2C_Read... [10:25:01]Read from MH i2c: E2 03 00 [10:25:01]MH_I2C_Read... [10:25:01]Read from MH i2c: E2 03 00 F2 40 00 90 00 A6 [10:25:01]RAPDU: 90 00 [10:25:01]wFMCommunicate OK [10:25:01]SAM_PROTO_ClearQueue done [10:25:01]KKMCreateOFDPacket [10:25:01]OFDProtocolAddRootSTLVToBuf [10:25:01]FM_MakeSignedData [10:25:01]FM_MakeSignedData [10:25:01]SAM_PROTO_SignData [10:25:01]wFMCommunicate request_size=4 [10:25:01]MH_SAM_APDU [10:25:01]CAPDU: 80 0D 01 02 [10:25:01]Write to MH i2c: E2 08 00 F3 40 80 0D 01 02 00 00 00 00 AC [10:25:01]Write i2c OK [10:25:01]MH_I2C_Read... [10:25:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:25:01]Read from MH i2c: E2 [10:25:01]MH_I2C_Read... [10:25:01]Read from MH i2c: E2 03 00 [10:25:01]MH_I2C_Read... [10:25:01]Read from MH i2c: E2 03 00 F3 40 00 90 00 A7 [10:25:01]RAPDU: 90 00 [10:25:01]wFMCommunicate OK [10:25:01]wFMCommunicate request_size=255 [10:25:01]MH_SAM_APDU [10:25:01]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 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 6A C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 6A C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 00 00 00 F4 03 04 00 00 2C 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 06 DD 02 [10:25:01]Write to MH i2c: E2 02 01 F4 40 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 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 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 6A C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 6A C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 00 00 00 F4 03 04 00 00 2C 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 06 DD 02 00 00 BE [10:25:01]Write i2c OK [10:25:01]MH_I2C_Read... [10:25:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:25:02]Read from MH i2c: E2 [10:25:02]MH_I2C_Read... [10:25:02]Read from MH i2c: E2 03 00 [10:25:02]MH_I2C_Read... [10:25:02]Read from MH i2c: E2 03 00 F4 40 00 90 00 A8 [10:25:02]RAPDU: 90 00 [10:25:02]wFMCommunicate OK [10:25:02]wFMCommunicate request_size=16 [10:25:02]MH_SAM_APDU [10:25:02]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 A4 93 C5 93 7F 7E [10:25:02]Write to MH i2c: E2 13 00 F5 40 80 0D 02 02 0B 00 00 35 04 06 00 A4 93 C5 93 7F 7E 00 00 90 [10:25:02]Write i2c OK [10:25:02]MH_I2C_Read... [10:25:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:25:02]Read from MH i2c: E2 [10:25:02]MH_I2C_Read... [10:25:02]Read from MH i2c: E2 03 00 [10:25:02]MH_I2C_Read... [10:25:02]Read from MH i2c: E2 03 00 F5 40 00 90 00 A9 [10:25:02]RAPDU: 90 00 [10:25:02]wFMCommunicate OK [10:25:02]wFMCommunicate request_size=4 [10:25:02]MH_SAM_APDU [10:25:02]CAPDU: 80 0D 03 02 [10:25:02]Write to MH i2c: E2 08 00 F6 40 80 0D 03 02 00 00 00 00 B1 [10:25:02]Write i2c OK [10:25:02]MH_I2C_Read... [10:25:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:25:02]Read from MH i2c: E2 [10:25:02]MH_I2C_Read... [10:25:02]Read from MH i2c: E2 0B 00 [10:25:02]MH_I2C_Read... [10:25:02]Read from MH i2c: E2 0B 00 F6 40 00 B1 03 77 F2 A1 D1 45 EC 90 00 72 [10:25:02]RAPDU: B1 03 77 F2 A1 D1 45 EC 90 00 [10:25:02]wFMCommunicate OK [10:25:02]SAM_PROTO_SignData done [10:25:02]FM_MakeSignedData done [10:25:02]CreateOFDProtocolMessage [10:25:02]wFMCommunicate request_size=4 [10:25:02]MH_SAM_APDU [10:25:02]CAPDU: 80 11 00 00 [10:25:02]Write to MH i2c: E2 08 00 F7 40 80 11 00 00 00 00 00 00 B1 [10:25:02]Write i2c OK [10:25:02]MH_I2C_Read... [10:25:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:25:02]Read from MH i2c: E2 [10:25:02]MH_I2C_Read... [10:25:02]Read from MH i2c: E2 17 00 [10:25:02]MH_I2C_Read... [10:25:02]Read from MH i2c: E2 17 00 F7 40 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 FF [10:25:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [10:25:02]wFMCommunicate OK [10:25:02]CreateOFDProtocolMessage done [10:25:02]OFDSenderStorePacket 187654 [10:25:02]StoreOFDPacket docnum=187654 [10:25:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 96 96 0D 01 51 85 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 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 6A C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 6A C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 00 00 00 F4 03 04 00 00 2C 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 06 DD 02 00 35 04 06 00 A4 93 C5 93 7F 7E B1 03 77 F2 A1 D1 45 EC [10:25:02]CheckFolder [10:25:02]dirname=/storage/ofd_packets [10:25:02]CheckFolder done [10:25:02]ProducePacketName [10:25:02]name=ofd_packets/00187654 [10:25:02]NVStorageSaveData ofd_packets/00187654 [10:25:02]File name is /storage/ofd_packets/00187654 [10:25:02]Write 307 bytes [10:25:02]NVStorageSaveData done [10:25:02]OFDSenderStorePacket done [10:25:02]KKMCreateOFDPacket done [10:25:02]NVStorageSaveData kkm_last_timestamp [10:25:02]File name is /storage/kkm_last_timestamp [10:25:02]Write 4 bytes [10:25:02]NVStorageSaveData done [10:25:02]ExternCall_PrintAddStr [10:25:02]wPrintStart [10:25:02]Write to MH i2c: 01 00 00 F8 40 38 [10:25:02]Write i2c OK [10:25:02]MH_I2C_Read... [10:25:02]Read from MH i2c: 01 [10:25:02]MH_I2C_Read... [10:25:02]Read from MH i2c: 01 07 00 [10:25:02]MH_I2C_Read... [10:25:02]Read from MH i2c: 01 07 00 F8 40 00 00 00 00 00 FF 0F 4D [10:25:02]RasterBufferAndPrint [10:25:02]line Счет N : (1)209706 [10:25:02]line ИНН: 02508201610067 [10:25:02]line Контрольно-Кассовый Чек [10:25:02]line ПРОДАЖА [10:25:02]line ТРК (МРК, ГНК) : 41 [10:25:02]line Товар: 2710194210 [10:25:02]line D-ENERGY ДТ-К-5 [10:25:02]line 6.480 * 77.20 [10:25:02]line = 500.26 [10:25:02]line НДС 12% НСП 1% [10:25:02]line > о реализуемом товаре [10:25:02]line ИТОГО: 500.26 [10:25:02]line НСП 1% : 4.43 [10:25:02]line НДС 12% : 53.12 [10:25:02]line Наличными: 0.00 [10:25:02]line Безнал.: 500.26 [10:25:02]line Место: АЗС № 86 "Партнер Нефть" [10:25:02]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [10:25:02]line СНО: Общий режим [10:25:02]line Чек 118 21.10.2024 10:25 [10:25:02]line Смена: 460 ФФД: 1.0 [10:25:02]line ЗНМ: 0300000155 [10:25:02]line РНМ: 0000000000100030 [10:25:02]line Версия ККМ: 001 [10:25:02]line Платежная система: Mbank [10:25:02]line ФМ: 0000000000965340 [10:25:02]line ФД: 187654 [10:25:02]line ФПД: 180954581925758 [10:25:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T102504&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187654&fm=180954581925758&tin=02508201610067®Number=0000000000100030&sum=50026 [10:25:02]written 0, free lines is 4095 [10:25:02]OFD Sender: Processing packet 187654 [packets to send 1062, broken 1061] [10:25:02]ProducePacketName [10:25:02]name=ofd_packets/00187654 [10:25:02]OFD Sender: To server: pG, [10:25:02]CommunicateWithHost lk.salyk.kg:30040 [10:25:02]ConnectInit lk.salyk.kg [10:25:02]Connected sock=10 [10:25:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 96 96 0D 01 51 85 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 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 6A C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 6A C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 00 00 00 F4 03 04 00 00 2C 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 06 DD 02 00 35 04 06 00 A4 93 C5 93 7F 7E B1 03 77 F2 A1 D1 45 EC [10:25:02]Write to MH i2c: 01 00 00 21 41 62 [10:25:02]Write i2c OK [10:25:02]MH_I2C_Read... [10:25:02]Read from MH i2c: 01 [10:25:02]MH_I2C_Read... [10:25:02]Read from MH i2c: 01 07 00 [10:25:02]MH_I2C_Read... [10:25:02]Read from MH i2c: 01 07 00 21 41 00 00 00 00 00 AF 0C 24 [10:25:02]RasterBufferAndPrint [10:25:02]line [10:25:02]line [10:25:02]line [10:25:02]line [10:25:02]line [10:25:02]written 0, free lines is 3250 [10:25:02]MH_Cut [10:25:02]Write to MH i2c: D1 01 00 28 41 01 3B [10:25:02]Write i2c OK [10:25:02]MH_I2C_Read... [10:25:02]Read from MH i2c: D1 [10:25:02]MH_I2C_Read... [10:25:02]Read from MH i2c: D1 01 00 [10:25:02]MH_I2C_Read... [10:25:02]Read from MH i2c: D1 01 00 28 41 00 3A [10:25:02]Write to MH i2c: 01 00 00 29 41 6A [10:25:02]Write i2c OK [10:25:02]MH_I2C_Read... [10:25:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 33 B6 47 00 16 48 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 06 DD 02 00 F4 03 04 00 EF D5 15 67 B6 04 01 00 00 2B B4 9C 0F 8A 23 4E 31 [10:25:02]CommunicateWithHost err = 0 [10:25:02]CheckOFDResponse [10:25:02]1017 (14) - 77093643461234 [10:25:02]1041 (16) - 0000000000965340 [10:25:02]1040 (4) - 187654 [10:25:02]1012 (4) - 21.10.2024 04:17 [10:25:02]1206 (1) - 0 [10:25:02]OFD Sender: Remove packet 187654 [10:25:02]ProducePacketName [10:25:02]name=ofd_packets/00187654 [10:25:02]NVStorageDeleteData [10:25:03]OFD Sender: No OFD packet to send [10:25:03]*** Cut start [10:25:03]*** Partial cut [10:25:03]*** CUTSNS_PIN = 1 [10:25:03]*** CUTSNS_PIN = 0 [10:25:03]*** Brake cut motor [10:25:04]Read from MH i2c: 01 [10:25:04]MH_I2C_Read... [10:25:04]*** Stop cut motor [10:25:04]*** Cut end [10:25:04]Read from MH i2c: 01 07 00 [10:25:04]MH_I2C_Read... [10:25:04]Read from MH i2c: 01 07 00 29 41 00 00 00 00 00 FF 0F 7F [10:25:04]process_action close_receipt done [10:25:04]requested_data is exist [10:25:04]produce_requested_data [10:25:04]requested_item fm.sn is exist - process it [10:25:04]wFMCommunicate request_size=4 [10:25:04]MH_SAM_APDU [10:25:04]CAPDU: 80 11 00 00 [10:25:04]Write to MH i2c: E2 08 00 2A 41 80 11 00 00 00 00 00 00 E5 [10:25:04]Write i2c OK [10:25:04]MH_I2C_Read... [10:25:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:25:04]Read from MH i2c: E2 [10:25:04]MH_I2C_Read... [10:25:04]Read from MH i2c: E2 17 00 [10:25:04]MH_I2C_Read... [10:25:04]Read from MH i2c: E2 17 00 2A 41 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 33 [10:25:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [10:25:04]wFMCommunicate OK [10:25:04]requested_item fd.num is exist - process it [10:25:04]SAM_PROTO_GetFieldsCounters [10:25:04]wFMCommunicate request_size=4 [10:25:04]MH_SAM_APDU [10:25:04]CAPDU: 80 13 00 00 [10:25:04]Write to MH i2c: E2 08 00 2B 41 80 13 00 00 00 00 00 00 E8 [10:25:04]Write i2c OK [10:25:04]MH_I2C_Read... [10:25:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:25:04]Read from MH i2c: E2 [10:25:04]MH_I2C_Read... [10:25:04]Read from MH i2c: E2 62 00 [10:25:04]MH_I2C_Read... [10:25:04]Read from MH i2c: E2 62 00 2B 41 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 06 DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 76 00 00 00 5E 04 04 00 76 00 00 00 57 04 04 00 77 00 00 00 19 04 04 00 00 00 00 00 90 00 03 [10:25:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 06 DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 76 00 00 00 5E 04 04 00 76 00 00 00 57 04 04 00 77 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:25:04]wFMCommunicate OK [10:25:04]SAM_PROTO_GetFieldsCounters done [10:25:04]requested_item shift.num is exist - process it [10:25:04]requested_item shift.opened is exist - process it [10:25:04]req_shift_opened [10:25:04]FM_GetShiftState [10:25:04]SAM_PROTO_GetShiftState [10:25:04]wFMCommunicate request_size=4 [10:25:04]MH_SAM_APDU [10:25:04]CAPDU: 80 13 01 00 [10:25:04]Write to MH i2c: E2 08 00 2C 41 80 13 01 00 00 00 00 00 EA [10:25:04]Write i2c OK [10:25:04]MH_I2C_Read... [10:25:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:25:04]Read from MH i2c: E2 [10:25:04]MH_I2C_Read... [10:25:04]Read from MH i2c: E2 0E 00 [10:25:04]MH_I2C_Read... [10:25:04]Read from MH i2c: E2 0E 00 2C 41 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 49 [10:25:04]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [10:25:04]wFMCommunicate OK [10:25:04]SAM_PROTO_GetShiftState done [10:25:04]FM_GetShiftState done [10:25:04]req_shift_opened done [10:25:04]requested_item shift.open_date is exist - process it [10:25:04]req_shift_open_date [10:25:04]req_shift_open_date done [10:25:04]produce_requested_data done [10:25:04]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187654,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [10:25:04]process_action_free close_receipt [10:25:04]json_value_free [10:25:04]json_value_free done [10:25:04]process_json_proto returns [10:25:04]Send response to host [10:25:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187654,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [10:25:04]free response buf [10:25:04]execute_script done [10:25:04]execute_script returns [10:25:04]free content buf [10:25:04]Sock 8.Close socket [10:25:04]Sock 8.Thread stoped [10:25:08]OFD Sender: No OFD packet to send [10:25:13]OFD Sender: No OFD packet to send [10:25:16]accept exits with 9 [10:25:16]New connection [10:25:16]New thread 3067014500 created [10:25:16]Thread 3067157860 joined [10:25:16]Waiting for new connection... [10:25:16] Sock 9.Parse request [10:25:16]Sock 9.Check first char [10:25:16]Sock 9.First char is OK [10:25:16]request: POST /json_proto HTTP/1.0 [10:25:16]Method: POST [10:25:16]URL: /json_proto [10:25:16]Method is POST - this is cgi request [10:25:16]url: /json_proto [10:25:16]query_string will be loaded in cgi processing [10:25:16]execute_cgi json_proto POST (null) [10:25:16]execute_cgi path=json_proto method=POST [10:25:16]POST find Content-Length [10:25:16]Host: 172.17.42.131:8080 [10:25:16]Content-Length: 682 [10:25:16]Content-Type: application/json [10:25:16] [10:25:16]POST finish read [10:25:16]Found Content-Length = 682 [10:25:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209707", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 21.570, "sum" : 1600.49, "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" ] } } [10:25:16]execute_script... [10:25: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)209707", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 21.570, "sum" : 1600.49, "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" ] } } [10:25:16]POST & json_proto [10:25:16]process_json_proto [10:25:16]json parsed OK: [10:25:16]protocol is kg_v1.0 [10:25:16]action value=close_receipt [10:25:16]process_action close_receipt [10:25:16]cmd_close_receipt [10:25:16]MH_GetDate [10:25:16]Write to MH i2c: F0 00 00 2D 41 5D [10:25:16]Write i2c OK [10:25:16]MH_I2C_Read... [10:25:16]Read from MH i2c: F0 [10:25:16]MH_I2C_Read... [10:25:16]Read from MH i2c: F0 09 00 [10:25:16]MH_I2C_Read... [10:25:16]Read from MH i2c: F0 09 00 2D 41 00 0F 2C 16 67 A0 18 CA 66 06 [10:25:16]GetLastDocTimeStamp 1729506304 [10:25:16]current date 1729506319 [10:25:16]FM_GetShiftState [10:25:16]SAM_PROTO_GetShiftState [10:25:16]wFMCommunicate request_size=4 [10:25:16]MH_SAM_APDU [10:25:16]CAPDU: 80 13 01 00 [10:25:16]Write to MH i2c: E2 08 00 2E 41 80 13 01 00 00 00 00 00 EC [10:25:16]Write i2c OK [10:25:16]MH_I2C_Read... [10:25:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:25:16]Read from MH i2c: E2 [10:25:16]MH_I2C_Read... [10:25:16]Read from MH i2c: E2 0E 00 [10:25:16]MH_I2C_Read... [10:25:16]Read from MH i2c: E2 0E 00 2E 41 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 4B [10:25:16]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [10:25:16]wFMCommunicate OK [10:25:16]SAM_PROTO_GetShiftState done [10:25:16]FM_GetShiftState done [10:25:16]opened in 1729469754 [10:25:16]opened+sec_in_day 1729556154 [10:25:16]quantity*price = 160049 [10:25:16]sum+1 = 160050 [10:25:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.49 ИТОГО: 1600.00 Внесено: 1600.00 СДАЧА: 0.00 НСП 1% : 14.16 НДС 12% : 169.96 Наличными: 1600.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 119 21.10.2024 10:25 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 187655 ФПД: 272746978998223 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T102519&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187655&fm=272746978998223&tin=02508201610067®Number=0000000000100030&sum=160000 [10:25:17]StoreToDocumentArchive [10:25:17]shift 460 fd 187655 [10:25:17]save to /storage/0460/doc_00187655 [10:25:17]save last doc name /storage/0460/doc_00187655 to /storage/kkm_last_doc_name [10:25:17]save OK [10:25:17]Clear old archive folders... [10:25:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:25:17]tlvbuf is 011F0D90 [10:25:17]SAM_PROTO_ClearQueue [10:25:17]wFMCommunicate request_size=4 [10:25:17]MH_SAM_APDU [10:25:17]CAPDU: 80 09 00 00 [10:25:17]Write to MH i2c: E2 08 00 3B 41 80 09 00 00 00 00 00 00 EE [10:25:17]Write i2c OK [10:25:17]MH_I2C_Read... [10:25:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:25:17]Read from MH i2c: E2 [10:25:17]MH_I2C_Read... [10:25:17]Read from MH i2c: E2 03 00 [10:25:17]MH_I2C_Read... [10:25:17]Read from MH i2c: E2 03 00 3B 41 00 90 00 F0 [10:25:17]RAPDU: 90 00 [10:25:17]wFMCommunicate OK [10:25:17]SAM_PROTO_ClearQueue done [10:25:17]KKMCreateOFDPacket [10:25:17]OFDProtocolAddRootSTLVToBuf [10:25:17]FM_MakeSignedData [10:25:17]FM_MakeSignedData [10:25:17]SAM_PROTO_SignData [10:25:17]wFMCommunicate request_size=4 [10:25:17]MH_SAM_APDU [10:25:17]CAPDU: 80 0D 01 02 [10:25:17]Write to MH i2c: E2 08 00 3C 41 80 0D 01 02 00 00 00 00 F6 [10:25:17]Write i2c OK [10:25:17]MH_I2C_Read... [10:25:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:25:17]Read from MH i2c: E2 [10:25:17]MH_I2C_Read... [10:25:17]Read from MH i2c: E2 03 00 [10:25:17]MH_I2C_Read... [10:25:17]Read from MH i2c: E2 03 00 3C 41 00 90 00 F1 [10:25:17]RAPDU: 90 00 [10:25:17]wFMCommunicate OK [10:25:17]wFMCommunicate request_size=255 [10:25:17]MH_SAM_APDU [10:25:17]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 42 54 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 31 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 64 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 77 00 00 00 F4 03 04 00 0F 2C 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 07 DD 02 00 35 04 06 00 F8 [10:25:17]Write to MH i2c: E2 02 01 3D 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 42 54 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 31 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 64 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 77 00 00 00 F4 03 04 00 0F 2C 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 07 DD 02 00 35 04 06 00 F8 00 00 2D [10:25:17]Write i2c OK [10:25:17]MH_I2C_Read... [10:25:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:25:17]Read from MH i2c: E2 [10:25:17]MH_I2C_Read... [10:25:17]Read from MH i2c: E2 03 00 [10:25:17]MH_I2C_Read... [10:25:17]Read from MH i2c: E2 03 00 3D 41 00 90 00 F2 [10:25:17]RAPDU: 90 00 [10:25:17]wFMCommunicate OK [10:25:17]wFMCommunicate request_size=10 [10:25:17]MH_SAM_APDU [10:25:17]CAPDU: 80 0D 02 02 05 0F DA CB F7 CF [10:25:17]Write to MH i2c: E2 0D 00 3E 41 80 0D 02 02 05 00 0F DA CB F7 CF 00 00 7D [10:25:17]Write i2c OK [10:25:17]MH_I2C_Read... [10:25:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:25:17]Read from MH i2c: E2 [10:25:17]MH_I2C_Read... [10:25:17]Read from MH i2c: E2 03 00 [10:25:17]MH_I2C_Read... [10:25:17]Read from MH i2c: E2 03 00 3E 41 00 90 00 F3 [10:25:17]RAPDU: 90 00 [10:25:17]wFMCommunicate OK [10:25:17]wFMCommunicate request_size=4 [10:25:17]MH_SAM_APDU [10:25:17]CAPDU: 80 0D 03 02 [10:25:17]Write to MH i2c: E2 08 00 3F 41 80 0D 03 02 00 00 00 00 FB [10:25:17]Write i2c OK [10:25:17]MH_I2C_Read... [10:25:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:25:17]Read from MH i2c: E2 [10:25:17]MH_I2C_Read... [10:25:17]Read from MH i2c: E2 0B 00 [10:25:17]MH_I2C_Read... [10:25:17]Read from MH i2c: E2 0B 00 3F 41 00 41 C7 20 64 B4 A1 FB C3 90 00 9B [10:25:17]RAPDU: 41 C7 20 64 B4 A1 FB C3 90 00 [10:25:17]wFMCommunicate OK [10:25:17]SAM_PROTO_SignData done [10:25:17]FM_MakeSignedData done [10:25:17]CreateOFDProtocolMessage [10:25:17]wFMCommunicate request_size=4 [10:25:17]MH_SAM_APDU [10:25:17]CAPDU: 80 11 00 00 [10:25:17]Write to MH i2c: E2 08 00 40 41 80 11 00 00 00 00 00 00 FB [10:25:17]Write i2c OK [10:25:17]MH_I2C_Read... [10:25:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:25:17]Read from MH i2c: E2 [10:25:17]MH_I2C_Read... [10:25:17]Read from MH i2c: E2 17 00 [10:25:17]MH_I2C_Read... [10:25:17]Read from MH i2c: E2 17 00 40 41 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 49 [10:25:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [10:25:17]wFMCommunicate OK [10:25:17]CreateOFDProtocolMessage done [10:25:17]OFDSenderStorePacket 187655 [10:25:17]StoreOFDPacket docnum=187655 [10:25:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 B5 12 07 01 55 E2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 42 54 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 31 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 64 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 77 00 00 00 F4 03 04 00 0F 2C 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 07 DD 02 00 35 04 06 00 F8 0F DA CB F7 CF 41 C7 20 64 B4 A1 FB C3 [10:25:17]CheckFolder [10:25:17]dirname=/storage/ofd_packets [10:25:17]CheckFolder done [10:25:17]ProducePacketName [10:25:17]name=ofd_packets/00187655 [10:25:17]NVStorageSaveData ofd_packets/00187655 [10:25:17]File name is /storage/ofd_packets/00187655 [10:25:17]Write 301 bytes [10:25:17]NVStorageSaveData done [10:25:17]OFDSenderStorePacket done [10:25:17]KKMCreateOFDPacket done [10:25:17]NVStorageSaveData kkm_last_timestamp [10:25:17]File name is /storage/kkm_last_timestamp [10:25:17]Write 4 bytes [10:25:17]NVStorageSaveData done [10:25:17]ExternCall_PrintAddStr [10:25:17]wPrintStart [10:25:17]Write to MH i2c: 01 00 00 41 41 82 [10:25:17]Write i2c OK [10:25:17]MH_I2C_Read... [10:25:17]Read from MH i2c: 01 [10:25:17]MH_I2C_Read... [10:25:17]Read from MH i2c: 01 07 00 [10:25:17]MH_I2C_Read... [10:25:17]Read from MH i2c: 01 07 00 41 41 00 00 00 00 00 FF 0F 97 [10:25:17]RasterBufferAndPrint [10:25:17]line Счет N : (1)209707 [10:25:17]line ИНН: 02508201610067 [10:25:17]line Контрольно-Кассовый Чек [10:25:17]line ПРОДАЖА [10:25:17]line ТРК (МРК, ГНК) : 33 [10:25:17]line Товар: 2710124500 [10:25:17]line Аи-95-К-3 [10:25:17]line 21.570 * 74.20 [10:25:17]line = 1600.49 [10:25:17]line НДС 12% НСП 1% [10:25:17]line > о реализуемом товаре [10:25:17]line ОКРУГЛЕНИЕ: -0.49 [10:25:17]line ИТОГО: 1600.00 [10:25:17]line Внесено: 1600.00 [10:25:17]line СДАЧА: 0.00 [10:25:17]line НСП 1% : 14.16 [10:25:17]line НДС 12% : 169.96 [10:25:17]line Наличными: 1600.00 [10:25:17]line Безнал.: 0.00 [10:25:17]line Место: АЗС № 86 "Партнер Нефть" [10:25:17]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [10:25:17]line СНО: Общий режим [10:25:17]line Чек 119 21.10.2024 10:25 [10:25:17]line Смена: 460 ФФД: 1.0 [10:25:17]line ЗНМ: 0300000155 [10:25:17]line РНМ: 0000000000100030 [10:25:17]line Версия ККМ: 001 [10:25:17]line ФМ: 0000000000965340 [10:25:17]line ФД: 187655 [10:25:17]line ФПД: 272746978998223 [10:25:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T102519&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187655&fm=272746978998223&tin=02508201610067®Number=0000000000100030&sum=160000 [10:25:17]written 0, free lines is 4095 [10:25:18]OFD Sender: Processing packet 187655 [packets to send 1062, broken 1061] [10:25:18]ProducePacketName [10:25:18]name=ofd_packets/00187655 [10:25:18]OFD Sender: To server: pG, [10:25:18]CommunicateWithHost lk.salyk.kg:30040 [10:25:18]ConnectInit lk.salyk.kg [10:25:18]Connected sock=10 [10:25:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 B5 12 07 01 55 E2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 42 54 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 31 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 64 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 77 00 00 00 F4 03 04 00 0F 2C 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 07 DD 02 00 35 04 06 00 F8 0F DA CB F7 CF 41 C7 20 64 B4 A1 FB C3 [10:25:18]Write to MH i2c: 01 00 00 6C 41 AD [10:25:18]Write i2c OK [10:25:18]MH_I2C_Read... [10:25:18]Read from MH i2c: 01 [10:25:18]MH_I2C_Read... [10:25:18]Read from MH i2c: 01 07 00 [10:25:18]MH_I2C_Read... [10:25:18]Read from MH i2c: 01 07 00 6C 41 00 00 00 00 00 7C 0C 3C [10:25:18]RasterBufferAndPrint [10:25:18]line [10:25:18]line [10:25:18]line [10:25:18]line [10:25:18]line [10:25:18]written 0, free lines is 3199 [10:25:18]MH_Cut [10:25:18]Write to MH i2c: D1 01 00 73 41 01 86 [10:25:18]Write i2c OK [10:25:18]MH_I2C_Read... [10:25:18]Read from MH i2c: D1 [10:25:18]MH_I2C_Read... [10:25:18]Read from MH i2c: D1 01 00 [10:25:18]MH_I2C_Read... [10:25:18]Read from MH i2c: D1 01 00 73 41 00 85 [10:25:18]Write to MH i2c: 01 00 00 74 41 B5 [10:25:18]Write i2c OK [10:25:18]MH_I2C_Read... [10:25:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 40 27 47 00 CA D0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 07 DD 02 00 F4 03 04 00 FF D5 15 67 B6 04 01 00 00 38 E5 FF D8 33 AB A8 C7 [10:25:18]CommunicateWithHost err = 0 [10:25:18]CheckOFDResponse [10:25:18]1017 (14) - 77093643461234 [10:25:18]1041 (16) - 0000000000965340 [10:25:18]1040 (4) - 187655 [10:25:18]1012 (4) - 21.10.2024 04:18 [10:25:18]1206 (1) - 0 [10:25:18]OFD Sender: Remove packet 187655 [10:25:18]ProducePacketName [10:25:18]name=ofd_packets/00187655 [10:25:18]NVStorageDeleteData [10:25:19]OFD Sender: No OFD packet to send [10:25:19]*** Cut start [10:25:19]*** Partial cut [10:25:19]*** CUTSNS_PIN = 1 [10:25:19]*** CUTSNS_PIN = 0 [10:25:19]*** Brake cut motor [10:25:20]Read from MH i2c: 01 [10:25:20]MH_I2C_Read... [10:25:20]*** Stop cut motor [10:25:20]*** Cut end [10:25:20]Read from MH i2c: 01 07 00 [10:25:20]MH_I2C_Read... [10:25:20]Read from MH i2c: 01 07 00 74 41 00 00 00 00 00 FF 0F CA [10:25:20]process_action close_receipt done [10:25:20]requested_data is exist [10:25:20]produce_requested_data [10:25:20]requested_item fm.sn is exist - process it [10:25:20]wFMCommunicate request_size=4 [10:25:20]MH_SAM_APDU [10:25:20]CAPDU: 80 11 00 00 [10:25:20]Write to MH i2c: E2 08 00 75 41 80 11 00 00 00 00 00 00 30 [10:25:20]Write i2c OK [10:25:20]MH_I2C_Read... [10:25:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:25:20]Read from MH i2c: E2 [10:25:20]MH_I2C_Read... [10:25:20]Read from MH i2c: E2 17 00 [10:25:20]MH_I2C_Read... [10:25:20]Read from MH i2c: E2 17 00 75 41 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 7E [10:25:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [10:25:20]wFMCommunicate OK [10:25:20]requested_item fd.num is exist - process it [10:25:20]SAM_PROTO_GetFieldsCounters [10:25:20]wFMCommunicate request_size=4 [10:25:20]MH_SAM_APDU [10:25:20]CAPDU: 80 13 00 00 [10:25:20]Write to MH i2c: E2 08 00 76 41 80 13 00 00 00 00 00 00 33 [10:25:20]Write i2c OK [10:25:20]MH_I2C_Read... [10:25:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:25:20]Read from MH i2c: E2 [10:25:20]MH_I2C_Read... [10:25:20]Read from MH i2c: E2 62 00 [10:25:20]MH_I2C_Read... [10:25:20]Read from MH i2c: E2 62 00 76 41 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 07 DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 77 00 00 00 5E 04 04 00 77 00 00 00 57 04 04 00 78 00 00 00 19 04 04 00 00 00 00 00 90 00 52 [10:25:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 07 DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 77 00 00 00 5E 04 04 00 77 00 00 00 57 04 04 00 78 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:25:20]wFMCommunicate OK [10:25:20]SAM_PROTO_GetFieldsCounters done [10:25:20]requested_item shift.num is exist - process it [10:25:20]requested_item shift.opened is exist - process it [10:25:20]req_shift_opened [10:25:20]FM_GetShiftState [10:25:20]SAM_PROTO_GetShiftState [10:25:20]wFMCommunicate request_size=4 [10:25:20]MH_SAM_APDU [10:25:20]CAPDU: 80 13 01 00 [10:25:20]Write to MH i2c: E2 08 00 77 41 80 13 01 00 00 00 00 00 35 [10:25:20]Write i2c OK [10:25:20]MH_I2C_Read... [10:25:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:25:20]Read from MH i2c: E2 [10:25:20]MH_I2C_Read... [10:25:20]Read from MH i2c: E2 0E 00 [10:25:20]MH_I2C_Read... [10:25:20]Read from MH i2c: E2 0E 00 77 41 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 94 [10:25:20]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [10:25:20]wFMCommunicate OK [10:25:20]SAM_PROTO_GetShiftState done [10:25:20]FM_GetShiftState done [10:25:20]req_shift_opened done [10:25:20]requested_item shift.open_date is exist - process it [10:25:20]req_shift_open_date [10:25:20]req_shift_open_date done [10:25:20]produce_requested_data done [10:25:20]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187655,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [10:25:20]process_action_free close_receipt [10:25:20]json_value_free [10:25:20]json_value_free done [10:25:20]process_json_proto returns [10:25:20]Send response to host [10:25:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187655,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [10:25:20]free response buf [10:25:20]execute_script done [10:25:20]execute_script returns [10:25:20]free content buf [10:25:20]Sock 9.Close socket [10:25:20]Sock 9.Thread stoped [10:25:24]OFD Sender: No OFD packet to send [10:25:26]accept exits with 8 [10:25:26]New connection [10:25:26]New thread 3067157860 created [10:25:26]Thread 3067014500 joined [10:25:26]Waiting for new connection... [10:25:26] Sock 8.Parse request [10:25:26]Sock 8.Check first char [10:25:26]Sock 8.First char is OK [10:25:26]request: POST /json_proto HTTP/1.0 [10:25:26]Method: POST [10:25:26]URL: /json_proto [10:25:26]Method is POST - this is cgi request [10:25:26]url: /json_proto [10:25:26]query_string will be loaded in cgi processing [10:25:26]execute_cgi json_proto POST (null) [10:25:26]execute_cgi path=json_proto method=POST [10:25:26]POST find Content-Length [10:25:26]Host: 172.17.42.131:8080 [10:25:26]Content-Length: 682 [10:25:26]Content-Type: application/json [10:25:26] [10:25:26]POST finish read [10:25:26]Found Content-Length = 682 [10:25:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209708", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "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:25:26]execute_script... [10:25: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)209708", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "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:25:26]POST & json_proto [10:25:26]process_json_proto [10:25:26]json parsed OK: [10:25:26]protocol is kg_v1.0 [10:25:26]action value=close_receipt [10:25:26]process_action close_receipt [10:25:26]cmd_close_receipt [10:25:26]MH_GetDate [10:25:26]Write to MH i2c: F0 00 00 78 41 A8 [10:25:26]Write i2c OK [10:25:26]MH_I2C_Read... [10:25:26]Read from MH i2c: F0 [10:25:26]MH_I2C_Read... [10:25:26]Read from MH i2c: F0 09 00 [10:25:26]MH_I2C_Read... [10:25:26]Read from MH i2c: F0 09 00 78 41 00 1A 2C 16 67 A0 18 CA 66 5C [10:25:26]GetLastDocTimeStamp 1729506319 [10:25:26]current date 1729506330 [10:25:26]FM_GetShiftState [10:25:26]SAM_PROTO_GetShiftState [10:25:26]wFMCommunicate request_size=4 [10:25:26]MH_SAM_APDU [10:25:26]CAPDU: 80 13 01 00 [10:25:26]Write to MH i2c: E2 08 00 79 41 80 13 01 00 00 00 00 00 37 [10:25:26]Write i2c OK [10:25:26]MH_I2C_Read... [10:25:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:25:26]Read from MH i2c: E2 [10:25:26]MH_I2C_Read... [10:25:26]Read from MH i2c: E2 0E 00 [10:25:26]MH_I2C_Read... [10:25:26]Read from MH i2c: E2 0E 00 79 41 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 96 [10:25:26]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [10:25:26]wFMCommunicate OK [10:25:26]SAM_PROTO_GetShiftState done [10:25:26]FM_GetShiftState done [10:25:26]opened in 1729469754 [10:25:26]opened+sec_in_day 1729556154 [10:25:26]quantity*price = 100015 [10:25:26]sum+1 = 100017 [10:25:26]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 120 21.10.2024 10:25 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 187656 ФПД: 215958575313332 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T102530&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187656&fm=215958575313332&tin=02508201610067®Number=0000000000100030&sum=100000 [10:25:27]StoreToDocumentArchive [10:25:27]shift 460 fd 187656 [10:25:27]save to /storage/0460/doc_00187656 [10:25:27]save last doc name /storage/0460/doc_00187656 to /storage/kkm_last_doc_name [10:25:27]save OK [10:25:27]Clear old archive folders... [10:25:27]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:25:27]tlvbuf is 01084110 [10:25:27]SAM_PROTO_ClearQueue [10:25:27]wFMCommunicate request_size=4 [10:25:27]MH_SAM_APDU [10:25:27]CAPDU: 80 09 00 00 [10:25:27]Write to MH i2c: E2 08 00 86 41 80 09 00 00 00 00 00 00 39 [10:25:27]Write i2c OK [10:25:27]MH_I2C_Read... [10:25:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:25:27]Read from MH i2c: E2 [10:25:27]MH_I2C_Read... [10:25:27]Read from MH i2c: E2 03 00 [10:25:27]MH_I2C_Read... [10:25:27]Read from MH i2c: E2 03 00 86 41 00 90 00 3B [10:25:27]RAPDU: 90 00 [10:25:27]wFMCommunicate OK [10:25:27]SAM_PROTO_ClearQueue done [10:25:27]KKMCreateOFDPacket [10:25:27]OFDProtocolAddRootSTLVToBuf [10:25:27]FM_MakeSignedData [10:25:27]FM_MakeSignedData [10:25:27]SAM_PROTO_SignData [10:25:27]wFMCommunicate request_size=4 [10:25:27]MH_SAM_APDU [10:25:27]CAPDU: 80 0D 01 02 [10:25:27]Write to MH i2c: E2 08 00 87 41 80 0D 01 02 00 00 00 00 41 [10:25:27]Write i2c OK [10:25:27]MH_I2C_Read... [10:25:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:25:27]Read from MH i2c: E2 [10:25:27]MH_I2C_Read... [10:25:27]Read from MH i2c: E2 03 00 [10:25:27]MH_I2C_Read... [10:25:27]Read from MH i2c: E2 03 00 87 41 00 90 00 3C [10:25:27]RAPDU: 90 00 [10:25:27]wFMCommunicate OK [10:25:27]wFMCommunicate request_size=255 [10:25:27]MH_SAM_APDU [10:25: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 33 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 78 00 00 00 F4 03 04 00 1A 2C 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 08 DD 02 00 35 04 06 00 C4 [10:25:27]Write to MH i2c: E2 02 01 88 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 33 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 78 00 00 00 F4 03 04 00 1A 2C 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 08 DD 02 00 35 04 06 00 C4 00 00 61 [10:25:27]Write i2c OK [10:25:27]MH_I2C_Read... [10:25:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:25:28]Read from MH i2c: E2 [10:25:28]MH_I2C_Read... [10:25:28]Read from MH i2c: E2 03 00 [10:25:28]MH_I2C_Read... [10:25:28]Read from MH i2c: E2 03 00 88 41 00 90 00 3D [10:25:28]RAPDU: 90 00 [10:25:28]wFMCommunicate OK [10:25:28]wFMCommunicate request_size=10 [10:25:28]MH_SAM_APDU [10:25:28]CAPDU: 80 0D 02 02 05 69 C6 2A F1 B4 [10:25:28]Write to MH i2c: E2 0D 00 89 41 80 0D 02 02 05 00 69 C6 2A F1 B4 00 00 4C [10:25:28]Write i2c OK [10:25:28]MH_I2C_Read... [10:25:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:25:28]Read from MH i2c: E2 [10:25:28]MH_I2C_Read... [10:25:28]Read from MH i2c: E2 03 00 [10:25:28]MH_I2C_Read... [10:25:28]Read from MH i2c: E2 03 00 89 41 00 90 00 3E [10:25:28]RAPDU: 90 00 [10:25:28]wFMCommunicate OK [10:25:28]wFMCommunicate request_size=4 [10:25:28]MH_SAM_APDU [10:25:28]CAPDU: 80 0D 03 02 [10:25:28]Write to MH i2c: E2 08 00 8A 41 80 0D 03 02 00 00 00 00 46 [10:25:28]Write i2c OK [10:25:28]MH_I2C_Read... [10:25:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:25:28]Read from MH i2c: E2 [10:25:28]MH_I2C_Read... [10:25:28]Read from MH i2c: E2 0B 00 [10:25:28]MH_I2C_Read... [10:25:28]Read from MH i2c: E2 0B 00 8A 41 00 89 E0 7B 70 CC 91 C2 38 90 00 F2 [10:25:28]RAPDU: 89 E0 7B 70 CC 91 C2 38 90 00 [10:25:28]wFMCommunicate OK [10:25:28]SAM_PROTO_SignData done [10:25:28]FM_MakeSignedData done [10:25:28]CreateOFDProtocolMessage [10:25:28]wFMCommunicate request_size=4 [10:25:28]MH_SAM_APDU [10:25:28]CAPDU: 80 11 00 00 [10:25:28]Write to MH i2c: E2 08 00 8B 41 80 11 00 00 00 00 00 00 46 [10:25:28]Write i2c OK [10:25:28]MH_I2C_Read... [10:25:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:25:28]Read from MH i2c: E2 [10:25:28]MH_I2C_Read... [10:25:28]Read from MH i2c: E2 17 00 [10:25:28]MH_I2C_Read... [10:25:28]Read from MH i2c: E2 17 00 8B 41 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 94 [10:25:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [10:25:28]wFMCommunicate OK [10:25:28]CreateOFDProtocolMessage done [10:25:28]OFDSenderStorePacket 187656 [10:25:28]StoreOFDPacket docnum=187656 [10:25:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 44 3E 07 01 84 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 33 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 78 00 00 00 F4 03 04 00 1A 2C 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 08 DD 02 00 35 04 06 00 C4 69 C6 2A F1 B4 89 E0 7B 70 CC 91 C2 38 [10:25:28]CheckFolder [10:25:28]dirname=/storage/ofd_packets [10:25:28]CheckFolder done [10:25:28]ProducePacketName [10:25:28]name=ofd_packets/00187656 [10:25:28]NVStorageSaveData ofd_packets/00187656 [10:25:28]File name is /storage/ofd_packets/00187656 [10:25:28]Write 301 bytes [10:25:28]NVStorageSaveData done [10:25:28]OFDSenderStorePacket done [10:25:28]KKMCreateOFDPacket done [10:25:28]NVStorageSaveData kkm_last_timestamp [10:25:28]File name is /storage/kkm_last_timestamp [10:25:28]Write 4 bytes [10:25:28]NVStorageSaveData done [10:25:28]ExternCall_PrintAddStr [10:25:28]wPrintStart [10:25:28]Write to MH i2c: 01 00 00 8C 41 CD [10:25:28]Write i2c OK [10:25:28]MH_I2C_Read... [10:25:28]Read from MH i2c: 01 [10:25:28]MH_I2C_Read... [10:25:28]Read from MH i2c: 01 07 00 [10:25:28]MH_I2C_Read... [10:25:28]Read from MH i2c: 01 07 00 8C 41 00 00 00 00 00 FF 0F E2 [10:25:28]RasterBufferAndPrint [10:25:28]line Счет N : (1)209708 [10:25:28]line ИНН: 02508201610067 [10:25:28]line Контрольно-Кассовый Чек [10:25:28]line ПРОДАЖА [10:25:28]line ТРК (МРК, ГНК) : 22 [10:25:28]line Товар: 2710124130 [10:25:28]line Аи-92-К-3 [10:25:28]line 14.950 * 66.90 [10:25:28]line = 1000.16 [10:25:28]line НДС 12% НСП 1% [10:25:28]line > о реализуемом товаре [10:25:28]line ОКРУГЛЕНИЕ: -0.16 [10:25:28]line ИТОГО: 1000.00 [10:25:28]line Внесено: 1000.00 [10:25:28]line СДАЧА: 0.00 [10:25:28]line НСП 1% : 8.85 [10:25:28]line НДС 12% : 106.21 [10:25:28]line Наличными: 1000.00 [10:25:28]line Безнал.: 0.00 [10:25:28]line Место: АЗС № 86 "Партнер Нефть" [10:25:28]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [10:25:28]line СНО: Общий режим [10:25:28]line Чек 120 21.10.2024 10:25 [10:25:28]line Смена: 460 ФФД: 1.0 [10:25:28]line ЗНМ: 0300000155 [10:25:28]line РНМ: 0000000000100030 [10:25:28]line Версия ККМ: 001 [10:25:28]line ФМ: 0000000000965340 [10:25:28]line ФД: 187656 [10:25:28]line ФПД: 215958575313332 [10:25:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T102530&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187656&fm=215958575313332&tin=02508201610067®Number=0000000000100030&sum=100000 [10:25:28]written 0, free lines is 4095 [10:25:28]OFD Sender: Processing packet 187656 [packets to send 1062, broken 1061] [10:25:28]ProducePacketName [10:25:28]name=ofd_packets/00187656 [10:25:28]OFD Sender: To server: pG, [10:25:28]CommunicateWithHost lk.salyk.kg:30040 [10:25:28]ConnectInit lk.salyk.kg [10:25:28]Connected sock=10 [10:25:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 44 3E 07 01 84 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 33 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 78 00 00 00 F4 03 04 00 1A 2C 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 08 DD 02 00 35 04 06 00 C4 69 C6 2A F1 B4 89 E0 7B 70 CC 91 C2 38 [10:25:28]Write to MH i2c: 01 00 00 B7 41 F8 [10:25:28]Write i2c OK [10:25:28]MH_I2C_Read... [10:25:28]Read from MH i2c: 01 [10:25:28]MH_I2C_Read... [10:25:28]Read from MH i2c: 01 07 00 [10:25:28]MH_I2C_Read... [10:25:28]Read from MH i2c: 01 07 00 B7 41 00 00 00 00 00 7E 0C 89 [10:25:28]RasterBufferAndPrint [10:25:28]line [10:25:28]line [10:25:28]line [10:25:28]line [10:25:28]line [10:25:28]written 0, free lines is 3204 [10:25:28]MH_Cut [10:25:28]Write to MH i2c: D1 01 00 BE 41 01 D1 [10:25:28]Write i2c OK [10:25:28]MH_I2C_Read... [10:25:28]Read from MH i2c: D1 [10:25:28]MH_I2C_Read... [10:25:28]Read from MH i2c: D1 01 00 [10:25:28]MH_I2C_Read... [10:25:28]Read from MH i2c: D1 01 00 BE 41 00 D0 [10:25:28]Write to MH i2c: 01 00 00 BF 41 00 [10:25:28]Write i2c OK [10:25:28]MH_I2C_Read... [10:25:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 37 FA 47 00 77 F1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 08 DD 02 00 F4 03 04 00 0A D6 15 67 B6 04 01 00 00 2A 52 C7 ED BA CF E5 DD [10:25:28]CommunicateWithHost err = 0 [10:25:28]CheckOFDResponse [10:25:28]1017 (14) - 77093643461234 [10:25:28]1041 (16) - 0000000000965340 [10:25:28]1040 (4) - 187656 [10:25:28]1012 (4) - 21.10.2024 04:18 [10:25:28]1206 (1) - 0 [10:25:28]OFD Sender: Remove packet 187656 [10:25:28]ProducePacketName [10:25:28]name=ofd_packets/00187656 [10:25:28]NVStorageDeleteData [10:25:29]OFD Sender: No OFD packet to send [10:25:29]*** Cut start [10:25:29]*** Partial cut [10:25:29]*** CUTSNS_PIN = 1 [10:25:29]*** CUTSNS_PIN = 0 [10:25:30]*** Brake cut motor [10:25:30]Read from MH i2c: 01 [10:25:30]MH_I2C_Read... [10:25:30]*** Stop cut motor [10:25:30]*** Cut end [10:25:30]Read from MH i2c: 01 07 00 [10:25:30]MH_I2C_Read... [10:25:30]Read from MH i2c: 01 07 00 BF 41 00 00 00 00 00 FF 0F 15 [10:25:30]process_action close_receipt done [10:25:30]requested_data is exist [10:25:30]produce_requested_data [10:25:30]requested_item fm.sn is exist - process it [10:25:30]wFMCommunicate request_size=4 [10:25:30]MH_SAM_APDU [10:25:30]CAPDU: 80 11 00 00 [10:25:30]Write to MH i2c: E2 08 00 C0 41 80 11 00 00 00 00 00 00 7B [10:25:30]Write i2c OK [10:25:30]MH_I2C_Read... [10:25:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:25:30]Read from MH i2c: E2 [10:25:30]MH_I2C_Read... [10:25:30]Read from MH i2c: E2 17 00 [10:25:30]MH_I2C_Read... [10:25:30]Read from MH i2c: E2 17 00 C0 41 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 C9 [10:25:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [10:25:30]wFMCommunicate OK [10:25:30]requested_item fd.num is exist - process it [10:25:30]SAM_PROTO_GetFieldsCounters [10:25:30]wFMCommunicate request_size=4 [10:25:30]MH_SAM_APDU [10:25:30]CAPDU: 80 13 00 00 [10:25:30]Write to MH i2c: E2 08 00 C1 41 80 13 00 00 00 00 00 00 7E [10:25:30]Write i2c OK [10:25:30]MH_I2C_Read... [10:25:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:25:30]Read from MH i2c: E2 [10:25:30]MH_I2C_Read... [10:25:30]Read from MH i2c: E2 62 00 [10:25:30]MH_I2C_Read... [10:25:30]Read from MH i2c: E2 62 00 C1 41 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 08 DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 78 00 00 00 5E 04 04 00 78 00 00 00 57 04 04 00 79 00 00 00 19 04 04 00 00 00 00 00 90 00 A1 [10:25:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 08 DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 78 00 00 00 5E 04 04 00 78 00 00 00 57 04 04 00 79 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:25:30]wFMCommunicate OK [10:25:30]SAM_PROTO_GetFieldsCounters done [10:25:30]requested_item shift.num is exist - process it [10:25:30]requested_item shift.opened is exist - process it [10:25:30]req_shift_opened [10:25:30]FM_GetShiftState [10:25:30]SAM_PROTO_GetShiftState [10:25:30]wFMCommunicate request_size=4 [10:25:30]MH_SAM_APDU [10:25:30]CAPDU: 80 13 01 00 [10:25:30]Write to MH i2c: E2 08 00 C2 41 80 13 01 00 00 00 00 00 80 [10:25:30]Write i2c OK [10:25:30]MH_I2C_Read... [10:25:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:25:30]Read from MH i2c: E2 [10:25:30]MH_I2C_Read... [10:25:30]Read from MH i2c: E2 0E 00 [10:25:30]MH_I2C_Read... [10:25:30]Read from MH i2c: E2 0E 00 C2 41 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 DF [10:25:30]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [10:25:30]wFMCommunicate OK [10:25:30]SAM_PROTO_GetShiftState done [10:25:30]FM_GetShiftState done [10:25:30]req_shift_opened done [10:25:30]requested_item shift.open_date is exist - process it [10:25:30]req_shift_open_date [10:25:30]req_shift_open_date done [10:25:30]produce_requested_data done [10:25:30]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187656,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [10:25:30]process_action_free close_receipt [10:25:30]json_value_free [10:25:30]json_value_free done [10:25:30]process_json_proto returns [10:25:30]Send response to host [10:25:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187656,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [10:25:30]free response buf [10:25:30]execute_script done [10:25:30]execute_script returns [10:25:30]free content buf [10:25:30]Sock 8.Close socket [10:25:30]Sock 8.Thread stoped [10:25:34]OFD Sender: No OFD packet to send [10:25:39]OFD Sender: No OFD packet to send [10:25:44]OFD Sender: No OFD packet to send [10:25:49]OFD Sender: No OFD packet to send [10:25:54]OFD Sender: No OFD packet to send [10:25:59]OFD Sender: No OFD packet to send [10:26:04]OFD Sender: No OFD packet to send [10:26:09]OFD Sender: No OFD packet to send [10:26:14]OFD Sender: No OFD packet to send [10:26:19]OFD Sender: No OFD packet to send [10:26:24]OFD Sender: No OFD packet to send [10:26:29]OFD Sender: No OFD packet to send [10:26:34]OFD Sender: No OFD packet to send [10:26:39]OFD Sender: No OFD packet to send [10:26:44]OFD Sender: No OFD packet to send [10:26:49]OFD Sender: No OFD packet to send [10:26:54]OFD Sender: No OFD packet to send [10:26:59]OFD Sender: No OFD packet to send [10:27:04]OFD Sender: No OFD packet to send [10:27:09]OFD Sender: No OFD packet to send [10:27:14]OFD Sender: No OFD packet to send [10:27:18]accept exits with 9 [10:27:18]New connection [10:27:18]New thread 3067014500 created [10:27:18]Thread 3067157860 joined [10:27:18]Waiting for new connection... [10:27:18] Sock 9.Parse request [10:27:18]Sock 9.Check first char [10:27:18]Sock 9.First char is OK [10:27:18]request: POST /json_proto HTTP/1.0 [10:27:18]Method: POST [10:27:18]URL: /json_proto [10:27:18]Method is POST - this is cgi request [10:27:18]url: /json_proto [10:27:18]query_string will be loaded in cgi processing [10:27:18]execute_cgi json_proto POST (null) [10:27:18]execute_cgi path=json_proto method=POST [10:27:18]POST find Content-Length [10:27:18]Host: 172.17.42.131:8080 [10:27:18]Content-Length: 983 [10:27:18]Content-Type: application/json [10:27:18] [10:27:18]POST finish read [10:27:18]Found Content-Length = 983 [10:27:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209710", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 65.90, "quantity" : 30.350, "sum" : 2000.07, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0410\u0418-92\u000A\u043D\u043E\u043C\u0435\u0440 86\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 30.35 \u0441\u043E\u043C", "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:27:18]execute_script... [10:27:18]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209710", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 65.90, "quantity" : 30.350, "sum" : 2000.07, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0410\u0418-92\u000A\u043D\u043E\u043C\u0435\u0440 86\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 30.35 \u0441\u043E\u043C", "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:27:18]POST & json_proto [10:27:18]process_json_proto [10:27:18]json parsed OK: [10:27:18]protocol is kg_v1.0 [10:27:18]action value=close_receipt [10:27:18]process_action close_receipt [10:27:18]cmd_close_receipt [10:27:18]MH_GetDate [10:27:18]Write to MH i2c: F0 00 00 C3 41 F3 [10:27:18]Write i2c OK [10:27:18]MH_I2C_Read... [10:27:18]Read from MH i2c: F0 [10:27:18]MH_I2C_Read... [10:27:18]Read from MH i2c: F0 09 00 [10:27:18]MH_I2C_Read... [10:27:18]Read from MH i2c: F0 09 00 C3 41 00 89 2C 16 67 A0 18 CA 66 16 [10:27:18]GetLastDocTimeStamp 1729506330 [10:27:18]current date 1729506441 [10:27:18]FM_GetShiftState [10:27:18]SAM_PROTO_GetShiftState [10:27:18]wFMCommunicate request_size=4 [10:27:18]MH_SAM_APDU [10:27:18]CAPDU: 80 13 01 00 [10:27:18]Write to MH i2c: E2 08 00 C4 41 80 13 01 00 00 00 00 00 82 [10:27:18]Write i2c OK [10:27:18]MH_I2C_Read... [10:27:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:27:18]Read from MH i2c: E2 [10:27:18]MH_I2C_Read... [10:27:18]Read from MH i2c: E2 0E 00 [10:27:18]MH_I2C_Read... [10:27:18]Read from MH i2c: E2 0E 00 C4 41 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 E1 [10:27:18]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [10:27:18]wFMCommunicate OK [10:27:18]SAM_PROTO_GetShiftState done [10:27:18]FM_GetShiftState done [10:27:18]opened in 1729469754 [10:27:18]opened+sec_in_day 1729556154 [10:27:18]quantity*price = 200006 [10:27:18]sum+1 = 200008 [10:27:18]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.07 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.40 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 121 21.10.2024 10:27 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Дисконтная программа АИ-92 номер 86 сэкономлено 30.35 сом ФМ: 0000000000965340 ФД: 187657 ФПД: 224113328119049 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T102721&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187657&fm=224113328119049&tin=02508201610067®Number=0000000000100030&sum=200000 [10:27:19]StoreToDocumentArchive [10:27:19]shift 460 fd 187657 [10:27:19]save to /storage/0460/doc_00187657 [10:27:19]save last doc name /storage/0460/doc_00187657 to /storage/kkm_last_doc_name [10:27:19]save OK [10:27:19]Clear old archive folders... [10:27:19]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:27:19]tlvbuf is 0116FEC0 [10:27:19]SAM_PROTO_ClearQueue [10:27:19]wFMCommunicate request_size=4 [10:27:19]MH_SAM_APDU [10:27:19]CAPDU: 80 09 00 00 [10:27:19]Write to MH i2c: E2 08 00 D1 41 80 09 00 00 00 00 00 00 84 [10:27:19]Write i2c OK [10:27:19]MH_I2C_Read... [10:27:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:27:19]Read from MH i2c: E2 [10:27:19]MH_I2C_Read... [10:27:19]Read from MH i2c: E2 03 00 [10:27:19]MH_I2C_Read... [10:27:19]Read from MH i2c: E2 03 00 D1 41 00 90 00 86 [10:27:19]RAPDU: 90 00 [10:27:19]wFMCommunicate OK [10:27:19]SAM_PROTO_ClearQueue done [10:27:19]KKMCreateOFDPacket [10:27:19]OFDProtocolAddRootSTLVToBuf [10:27:19]FM_MakeSignedData [10:27:19]FM_MakeSignedData [10:27:19]SAM_PROTO_SignData [10:27:19]wFMCommunicate request_size=4 [10:27:19]MH_SAM_APDU [10:27:19]CAPDU: 80 0D 01 02 [10:27:19]Write to MH i2c: E2 08 00 D2 41 80 0D 01 02 00 00 00 00 8C [10:27:19]Write i2c OK [10:27:19]MH_I2C_Read... [10:27:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:27:19]Read from MH i2c: E2 [10:27:19]MH_I2C_Read... [10:27:19]Read from MH i2c: E2 03 00 [10:27:19]MH_I2C_Read... [10:27:19]Read from MH i2c: E2 03 00 D2 41 00 90 00 87 [10:27:19]RAPDU: 90 00 [10:27:19]wFMCommunicate OK [10:27:19]wFMCommunicate request_size=255 [10:27:19]MH_SAM_APDU [10:27:19]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 8E 76 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 47 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 F8 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 79 00 00 00 F4 03 04 00 89 2C 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 09 DD 02 00 35 04 06 00 CB [10:27:19]Write to MH i2c: E2 02 01 D3 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 33 FF 03 08 00 03 8E 76 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 47 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 F8 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 79 00 00 00 F4 03 04 00 89 2C 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 09 DD 02 00 35 04 06 00 CB 00 00 B1 [10:27:19]Write i2c OK [10:27:19]MH_I2C_Read... [10:27:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:27:19]Read from MH i2c: E2 [10:27:19]MH_I2C_Read... [10:27:19]Read from MH i2c: E2 03 00 [10:27:19]MH_I2C_Read... [10:27:19]Read from MH i2c: E2 03 00 D3 41 00 90 00 88 [10:27:19]RAPDU: 90 00 [10:27:19]wFMCommunicate OK [10:27:19]wFMCommunicate request_size=10 [10:27:19]MH_SAM_APDU [10:27:19]CAPDU: 80 0D 02 02 05 D4 73 4F DD 09 [10:27:19]Write to MH i2c: E2 0D 00 D4 41 80 0D 02 02 05 00 D4 73 4F DD 09 00 00 15 [10:27:19]Write i2c OK [10:27:19]MH_I2C_Read... [10:27:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:27:19]Read from MH i2c: E2 [10:27:19]MH_I2C_Read... [10:27:19]Read from MH i2c: E2 03 00 [10:27:19]MH_I2C_Read... [10:27:19]Read from MH i2c: E2 03 00 D4 41 00 90 00 89 [10:27:19]RAPDU: 90 00 [10:27:19]wFMCommunicate OK [10:27:19]wFMCommunicate request_size=4 [10:27:19]MH_SAM_APDU [10:27:19]CAPDU: 80 0D 03 02 [10:27:19]Write to MH i2c: E2 08 00 D5 41 80 0D 03 02 00 00 00 00 91 [10:27:19]Write i2c OK [10:27:19]MH_I2C_Read... [10:27:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:27:19]Read from MH i2c: E2 [10:27:19]MH_I2C_Read... [10:27:19]Read from MH i2c: E2 0B 00 [10:27:19]MH_I2C_Read... [10:27:19]Read from MH i2c: E2 0B 00 D5 41 00 A8 84 5A B6 25 D5 58 22 90 00 42 [10:27:19]RAPDU: A8 84 5A B6 25 D5 58 22 90 00 [10:27:19]wFMCommunicate OK [10:27:19]SAM_PROTO_SignData done [10:27:19]FM_MakeSignedData done [10:27:19]CreateOFDProtocolMessage [10:27:19]wFMCommunicate request_size=4 [10:27:19]MH_SAM_APDU [10:27:19]CAPDU: 80 11 00 00 [10:27:19]Write to MH i2c: E2 08 00 D6 41 80 11 00 00 00 00 00 00 91 [10:27:19]Write i2c OK [10:27:19]MH_I2C_Read... [10:27:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:27:19]Read from MH i2c: E2 [10:27:19]MH_I2C_Read... [10:27:19]Read from MH i2c: E2 17 00 [10:27:19]MH_I2C_Read... [10:27:19]Read from MH i2c: E2 17 00 D6 41 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 DF [10:27:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [10:27:19]wFMCommunicate OK [10:27:19]CreateOFDProtocolMessage done [10:27:19]OFDSenderStorePacket 187657 [10:27:19]StoreOFDPacket docnum=187657 [10:27:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 23 17 07 01 32 1E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 8E 76 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 47 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 F8 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 79 00 00 00 F4 03 04 00 89 2C 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 09 DD 02 00 35 04 06 00 CB D4 73 4F DD 09 A8 84 5A B6 25 D5 58 22 [10:27:19]CheckFolder [10:27:19]dirname=/storage/ofd_packets [10:27:19]CheckFolder done [10:27:19]ProducePacketName [10:27:19]name=ofd_packets/00187657 [10:27:19]NVStorageSaveData ofd_packets/00187657 [10:27:19]File name is /storage/ofd_packets/00187657 [10:27:19]Write 301 bytes [10:27:19]NVStorageSaveData done [10:27:19]OFDSenderStorePacket done [10:27:19]KKMCreateOFDPacket done [10:27:19]NVStorageSaveData kkm_last_timestamp [10:27:19]File name is /storage/kkm_last_timestamp [10:27:19]Write 4 bytes [10:27:19]NVStorageSaveData done [10:27:19]ExternCall_PrintAddStr [10:27:19]wPrintStart [10:27:19]Write to MH i2c: 01 00 00 D7 41 18 [10:27:19]Write i2c OK [10:27:19]MH_I2C_Read... [10:27:19]Read from MH i2c: 01 [10:27:19]MH_I2C_Read... [10:27:19]Read from MH i2c: 01 07 00 [10:27:19]MH_I2C_Read... [10:27:19]Read from MH i2c: 01 07 00 D7 41 00 00 00 00 00 FF 0F 2D [10:27:19]RasterBufferAndPrint [10:27:19]line Счет N : (1)209710 [10:27:19]line ИНН: 02508201610067 [10:27:19]line Контрольно-Кассовый Чек [10:27:19]line ПРОДАЖА [10:27:19]line ТРК (МРК, ГНК) : 12 [10:27:19]line Товар: 2710124130 [10:27:19]line Аи-92-К-3 [10:27:19]line 30.350 * 65.90 [10:27:19]line = 2000.07 [10:27:19]line НДС 12% НСП 1% [10:27:19]line > о реализуемом товаре [10:27:19]line ОКРУГЛЕНИЕ: -0.07 [10:27:19]line ИТОГО: 2000.00 [10:27:19]line Внесено: 2000.00 [10:27:19]line СДАЧА: 0.00 [10:27:19]line НСП 1% : 17.70 [10:27:19]line НДС 12% : 212.40 [10:27:19]line Наличными: 2000.00 [10:27:19]line Безнал.: 0.00 [10:27:19]line Место: АЗС № 86 "Партнер Нефть" [10:27:19]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [10:27:19]line СНО: Общий режим [10:27:19]line Чек 121 21.10.2024 10:27 [10:27:19]line Смена: 460 ФФД: 1.0 [10:27:19]line ЗНМ: 0300000155 [10:27:19]line РНМ: 0000000000100030 [10:27:19]line Версия ККМ: 001 [10:27:19]line [10:27:19]line Дисконтная программа [10:27:19]line АИ-92 [10:27:19]line номер 86 [10:27:19]line сэкономлено 30.35 сом [10:27:19]line ФМ: 0000000000965340 [10:27:19]line ФД: 187657 [10:27:19]line ФПД: 224113328119049 [10:27:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T102721&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187657&fm=224113328119049&tin=02508201610067®Number=0000000000100030&sum=200000 [10:27:19]written 0, free lines is 4095 [10:27:19]OFD Sender: Processing packet 187657 [packets to send 1062, broken 1061] [10:27:19]ProducePacketName [10:27:19]name=ofd_packets/00187657 [10:27:19]OFD Sender: To server: pG, [10:27:19]CommunicateWithHost lk.salyk.kg:30040 [10:27:19]ConnectInit lk.salyk.kg [10:27:19]Connected sock=10 [10:27:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 23 17 07 01 32 1E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 8E 76 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 47 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 F8 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 79 00 00 00 F4 03 04 00 89 2C 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 09 DD 02 00 35 04 06 00 CB D4 73 4F DD 09 A8 84 5A B6 25 D5 58 22 [10:27:20]Write to MH i2c: 01 00 00 07 42 49 [10:27:20]Write i2c OK [10:27:20]MH_I2C_Read... [10:27:20]Read from MH i2c: 01 [10:27:20]MH_I2C_Read... [10:27:20]Read from MH i2c: 01 07 00 [10:27:20]MH_I2C_Read... [10:27:20]Read from MH i2c: 01 07 00 07 42 00 00 00 00 00 0C 0C 68 [10:27:20]RasterBufferAndPrint [10:27:20]line [10:27:20]line [10:27:20]line [10:27:20]line [10:27:20]line [10:27:20]written 0, free lines is 3090 [10:27:20]MH_Cut [10:27:20]Write to MH i2c: D1 01 00 0E 42 01 22 [10:27:20]Write i2c OK [10:27:20]MH_I2C_Read... [10:27:20]Read from MH i2c: D1 [10:27:20]MH_I2C_Read... [10:27:20]Read from MH i2c: D1 01 00 [10:27:20]MH_I2C_Read... [10:27:20]Read from MH i2c: D1 01 00 0E 42 00 21 [10:27:20]Write to MH i2c: 01 00 00 0F 42 51 [10:27:20]Write i2c OK [10:27:20]MH_I2C_Read... [10:27:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 A2 BB 47 00 86 44 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 09 DD 02 00 F4 03 04 00 79 D6 15 67 B6 04 01 00 00 D8 6F C4 30 0A 89 7D 3D [10:27:20]CommunicateWithHost err = 0 [10:27:20]CheckOFDResponse [10:27:20]1017 (14) - 77093643461234 [10:27:20]1041 (16) - 0000000000965340 [10:27:20]1040 (4) - 187657 [10:27:20]1012 (4) - 21.10.2024 04:20 [10:27:20]1206 (1) - 0 [10:27:20]OFD Sender: Remove packet 187657 [10:27:20]ProducePacketName [10:27:20]name=ofd_packets/00187657 [10:27:20]NVStorageDeleteData [10:27:20]OFD Sender: No OFD packet to send [10:27:21]*** Cut start [10:27:21]*** Partial cut [10:27:21]*** CUTSNS_PIN = 1 [10:27:21]*** CUTSNS_PIN = 0 [10:27:21]*** Brake cut motor [10:27:22]Read from MH i2c: 01 [10:27:22]MH_I2C_Read... [10:27:22]*** Stop cut motor [10:27:22]*** Cut end [10:27:22]Read from MH i2c: 01 07 00 [10:27:22]MH_I2C_Read... [10:27:22]Read from MH i2c: 01 07 00 0F 42 00 00 00 00 00 FF 0F 66 [10:27:22]process_action close_receipt done [10:27:22]requested_data is exist [10:27:22]produce_requested_data [10:27:22]requested_item fm.sn is exist - process it [10:27:22]wFMCommunicate request_size=4 [10:27:22]MH_SAM_APDU [10:27:22]CAPDU: 80 11 00 00 [10:27:22]Write to MH i2c: E2 08 00 10 42 80 11 00 00 00 00 00 00 CC [10:27:22]Write i2c OK [10:27:22]MH_I2C_Read... [10:27:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:27:22]Read from MH i2c: E2 [10:27:22]MH_I2C_Read... [10:27:22]Read from MH i2c: E2 17 00 [10:27:22]MH_I2C_Read... [10:27:22]Read from MH i2c: E2 17 00 10 42 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 1A [10:27:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [10:27:22]wFMCommunicate OK [10:27:22]requested_item fd.num is exist - process it [10:27:22]SAM_PROTO_GetFieldsCounters [10:27:22]wFMCommunicate request_size=4 [10:27:22]MH_SAM_APDU [10:27:22]CAPDU: 80 13 00 00 [10:27:22]Write to MH i2c: E2 08 00 11 42 80 13 00 00 00 00 00 00 CF [10:27:22]Write i2c OK [10:27:22]MH_I2C_Read... [10:27:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:27:22]Read from MH i2c: E2 [10:27:22]MH_I2C_Read... [10:27:22]Read from MH i2c: E2 62 00 [10:27:22]MH_I2C_Read... [10:27:22]Read from MH i2c: E2 62 00 11 42 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 09 DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 79 00 00 00 5E 04 04 00 79 00 00 00 57 04 04 00 7A 00 00 00 19 04 04 00 00 00 00 00 90 00 F6 [10:27:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 09 DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 79 00 00 00 5E 04 04 00 79 00 00 00 57 04 04 00 7A 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:27:22]wFMCommunicate OK [10:27:22]SAM_PROTO_GetFieldsCounters done [10:27:22]requested_item shift.num is exist - process it [10:27:22]requested_item shift.opened is exist - process it [10:27:22]req_shift_opened [10:27:22]FM_GetShiftState [10:27:22]SAM_PROTO_GetShiftState [10:27:22]wFMCommunicate request_size=4 [10:27:22]MH_SAM_APDU [10:27:22]CAPDU: 80 13 01 00 [10:27:22]Write to MH i2c: E2 08 00 12 42 80 13 01 00 00 00 00 00 D1 [10:27:22]Write i2c OK [10:27:22]MH_I2C_Read... [10:27:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:27:22]Read from MH i2c: E2 [10:27:22]MH_I2C_Read... [10:27:22]Read from MH i2c: E2 0E 00 [10:27:22]MH_I2C_Read... [10:27:22]Read from MH i2c: E2 0E 00 12 42 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 30 [10:27:22]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [10:27:22]wFMCommunicate OK [10:27:22]SAM_PROTO_GetShiftState done [10:27:22]FM_GetShiftState done [10:27:22]req_shift_opened done [10:27:22]requested_item shift.open_date is exist - process it [10:27:22]req_shift_open_date [10:27:22]req_shift_open_date done [10:27:22]produce_requested_data done [10:27:22]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187657,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [10:27:22]process_action_free close_receipt [10:27:22]json_value_free [10:27:22]json_value_free done [10:27:22]process_json_proto returns [10:27:22]Send response to host [10:27:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187657,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [10:27:22]free response buf [10:27:22]execute_script done [10:27:22]execute_script returns [10:27:22]free content buf [10:27:22]Sock 9.Close socket [10:27:22]Sock 9.Thread stoped [10:27:25]OFD Sender: No OFD packet to send [10:27:30]OFD Sender: No OFD packet to send [10:27:35]OFD Sender: No OFD packet to send [10:27:40]OFD Sender: No OFD packet to send [10:27:45]accept exits with 8 [10:27:45]New connection [10:27:45]New thread 3067157860 created [10:27:45]Thread 3067014500 joined [10:27:45]Waiting for new connection... [10:27:45] Sock 8.Parse request [10:27:45]Sock 8.Check first char [10:27:45]Sock 8.First char is OK [10:27:45]request: POST /json_proto HTTP/1.0 [10:27:45]Method: POST [10:27:45]URL: /json_proto [10:27:45]Method is POST - this is cgi request [10:27:45]url: /json_proto [10:27:45]query_string will be loaded in cgi processing [10:27:45]execute_cgi json_proto POST (null) [10:27:45]execute_cgi path=json_proto method=POST [10:27:45]POST find Content-Length [10:27:45]Host: 172.17.42.131:8080 [10:27:45]Content-Length: 677 [10:27:45]Content-Type: application/json [10:27:45] [10:27:45]POST finish read [10:27:45]Found Content-Length = 677 [10:27:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209711", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 9.440, "sum" : 700.45, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:27:45]execute_script... [10:27:45]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209711", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 9.440, "sum" : 700.45, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:27:45]POST & json_proto [10:27:45]process_json_proto [10:27:45]json parsed OK: [10:27:45]protocol is kg_v1.0 [10:27:45]action value=close_receipt [10:27:45]process_action close_receipt [10:27:45]cmd_close_receipt [10:27:45]MH_GetDate [10:27:45]Write to MH i2c: F0 00 00 13 42 44 [10:27:45]Write i2c OK [10:27:45]MH_I2C_Read... [10:27:45]Read from MH i2c: F0 [10:27:45]MH_I2C_Read... [10:27:45]Read from MH i2c: F0 09 00 [10:27:45]MH_I2C_Read... [10:27:45]Read from MH i2c: F0 09 00 13 42 00 A4 2C 16 67 A0 18 CA 66 82 [10:27:45]GetLastDocTimeStamp 1729506441 [10:27:45]current date 1729506468 [10:27:45]FM_GetShiftState [10:27:45]SAM_PROTO_GetShiftState [10:27:45]wFMCommunicate request_size=4 [10:27:45]MH_SAM_APDU [10:27:45]CAPDU: 80 13 01 00 [10:27:45]Write to MH i2c: E2 08 00 14 42 80 13 01 00 00 00 00 00 D3 [10:27:45]Write i2c OK [10:27:45]MH_I2C_Read... [10:27:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:27:45]Read from MH i2c: E2 [10:27:45]MH_I2C_Read... [10:27:45]Read from MH i2c: E2 0E 00 [10:27:45]MH_I2C_Read... [10:27:45]Read from MH i2c: E2 0E 00 14 42 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 32 [10:27:45]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [10:27:45]wFMCommunicate OK [10:27:45]SAM_PROTO_GetShiftState done [10:27:45]FM_GetShiftState done [10:27:45]opened in 1729469754 [10:27:45]opened+sec_in_day 1729556154 [10:27:45]quantity*price = 70044 [10:27:45]sum+1 = 70046 [10:27:45]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.45 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 122 21.10.2024 10:27 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 187658 ФПД: 184811761602271 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T102748&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187658&fm=184811761602271&tin=02508201610067®Number=0000000000100030&sum=70000 [10:27:46]StoreToDocumentArchive [10:27:46]shift 460 fd 187658 [10:27:46]save to /storage/0460/doc_00187658 [10:27:46]save last doc name /storage/0460/doc_00187658 to /storage/kkm_last_doc_name [10:27:46]save OK [10:27:46]Clear old archive folders... [10:27:46]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:27:46]tlvbuf is 010C78F0 [10:27:46]SAM_PROTO_ClearQueue [10:27:46]wFMCommunicate request_size=4 [10:27:46]MH_SAM_APDU [10:27:46]CAPDU: 80 09 00 00 [10:27:46]Write to MH i2c: E2 08 00 21 42 80 09 00 00 00 00 00 00 D5 [10:27:46]Write i2c OK [10:27:46]MH_I2C_Read... [10:27:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:27:46]Read from MH i2c: E2 [10:27:46]MH_I2C_Read... [10:27:46]Read from MH i2c: E2 03 00 [10:27:46]MH_I2C_Read... [10:27:46]Read from MH i2c: E2 03 00 21 42 00 90 00 D7 [10:27:46]RAPDU: 90 00 [10:27:46]wFMCommunicate OK [10:27:46]SAM_PROTO_ClearQueue done [10:27:46]KKMCreateOFDPacket [10:27:46]OFDProtocolAddRootSTLVToBuf [10:27:46]FM_MakeSignedData [10:27:46]FM_MakeSignedData [10:27:46]SAM_PROTO_SignData [10:27:46]wFMCommunicate request_size=4 [10:27:46]MH_SAM_APDU [10:27:46]CAPDU: 80 0D 01 02 [10:27:46]Write to MH i2c: E2 08 00 22 42 80 0D 01 02 00 00 00 00 DD [10:27:46]Write i2c OK [10:27:46]MH_I2C_Read... [10:27:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:27:46]Read from MH i2c: E2 [10:27:46]MH_I2C_Read... [10:27:46]Read from MH i2c: E2 03 00 [10:27:46]MH_I2C_Read... [10:27:46]Read from MH i2c: E2 03 00 22 42 00 90 00 D8 [10:27:46]RAPDU: 90 00 [10:27:46]wFMCommunicate OK [10:27:46]wFMCommunicate request_size=255 [10:27:46]MH_SAM_APDU [10:27:46]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 E0 24 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 9D 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 00 00 00 F4 03 04 00 A4 2C 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 0A DD 02 00 35 04 06 00 A8 [10:27:46]Write to MH i2c: E2 02 01 23 42 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 E0 24 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 9D 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 00 00 00 F4 03 04 00 A4 2C 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 0A DD 02 00 35 04 06 00 A8 00 00 5C [10:27:46]Write i2c OK [10:27:46]MH_I2C_Read... [10:27:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:27:46]Read from MH i2c: E2 [10:27:46]MH_I2C_Read... [10:27:46]Read from MH i2c: E2 03 00 [10:27:46]MH_I2C_Read... [10:27:46]Read from MH i2c: E2 03 00 23 42 00 90 00 D9 [10:27:46]RAPDU: 90 00 [10:27:46]wFMCommunicate OK [10:27:46]wFMCommunicate request_size=10 [10:27:46]MH_SAM_APDU [10:27:46]CAPDU: 80 0D 02 02 05 15 D7 66 8E DF [10:27:46]Write to MH i2c: E2 0D 00 24 42 80 0D 02 02 05 00 15 D7 66 8E DF 00 00 A9 [10:27:46]Write i2c OK [10:27:46]MH_I2C_Read... [10:27:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:27:46]Read from MH i2c: E2 [10:27:46]MH_I2C_Read... [10:27:46]Read from MH i2c: E2 03 00 [10:27:46]MH_I2C_Read... [10:27:46]Read from MH i2c: E2 03 00 24 42 00 90 00 DA [10:27:46]RAPDU: 90 00 [10:27:46]wFMCommunicate OK [10:27:46]wFMCommunicate request_size=4 [10:27:46]MH_SAM_APDU [10:27:46]CAPDU: 80 0D 03 02 [10:27:46]Write to MH i2c: E2 08 00 25 42 80 0D 03 02 00 00 00 00 E2 [10:27:46]Write i2c OK [10:27:46]MH_I2C_Read... [10:27:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:27:46]Read from MH i2c: E2 [10:27:46]MH_I2C_Read... [10:27:46]Read from MH i2c: E2 0B 00 [10:27:46]MH_I2C_Read... [10:27:46]Read from MH i2c: E2 0B 00 25 42 00 82 32 6D 59 37 1C 4F 65 90 00 64 [10:27:46]RAPDU: 82 32 6D 59 37 1C 4F 65 90 00 [10:27:46]wFMCommunicate OK [10:27:46]SAM_PROTO_SignData done [10:27:46]FM_MakeSignedData done [10:27:46]CreateOFDProtocolMessage [10:27:46]wFMCommunicate request_size=4 [10:27:46]MH_SAM_APDU [10:27:46]CAPDU: 80 11 00 00 [10:27:46]Write to MH i2c: E2 08 00 26 42 80 11 00 00 00 00 00 00 E2 [10:27:46]Write i2c OK [10:27:46]MH_I2C_Read... [10:27:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:27:46]Read from MH i2c: E2 [10:27:46]MH_I2C_Read... [10:27:46]Read from MH i2c: E2 17 00 [10:27:46]MH_I2C_Read... [10:27:46]Read from MH i2c: E2 17 00 26 42 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 30 [10:27:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [10:27:46]wFMCommunicate OK [10:27:46]CreateOFDProtocolMessage done [10:27:46]OFDSenderStorePacket 187658 [10:27:46]StoreOFDPacket docnum=187658 [10:27:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 70 BE 07 01 2A 4E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 E0 24 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 9D 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 00 00 00 F4 03 04 00 A4 2C 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 0A DD 02 00 35 04 06 00 A8 15 D7 66 8E DF 82 32 6D 59 37 1C 4F 65 [10:27:46]CheckFolder [10:27:46]dirname=/storage/ofd_packets [10:27:46]CheckFolder done [10:27:46]ProducePacketName [10:27:46]name=ofd_packets/00187658 [10:27:46]NVStorageSaveData ofd_packets/00187658 [10:27:46]File name is /storage/ofd_packets/00187658 [10:27:46]Write 301 bytes [10:27:46]NVStorageSaveData done [10:27:46]OFDSenderStorePacket done [10:27:46]KKMCreateOFDPacket done [10:27:46]NVStorageSaveData kkm_last_timestamp [10:27:46]File name is /storage/kkm_last_timestamp [10:27:46]Write 4 bytes [10:27:46]NVStorageSaveData done [10:27:46]ExternCall_PrintAddStr [10:27:46]wPrintStart [10:27:46]Write to MH i2c: 01 00 00 27 42 69 [10:27:46]Write i2c OK [10:27:46]MH_I2C_Read... [10:27:46]Read from MH i2c: 01 [10:27:46]MH_I2C_Read... [10:27:46]Read from MH i2c: 01 07 00 [10:27:46]MH_I2C_Read... [10:27:46]Read from MH i2c: 01 07 00 27 42 00 00 00 00 00 FF 0F 7E [10:27:46]RasterBufferAndPrint [10:27:46]line Счет N : (1)209711 [10:27:46]line ИНН: 02508201610067 [10:27:46]line Контрольно-Кассовый Чек [10:27:46]line ПРОДАЖА [10:27:46]line ТРК (МРК, ГНК) : 33 [10:27:46]line Товар: 2710124500 [10:27:46]line Аи-95-К-3 [10:27:46]line 9.440 * 74.20 [10:27:46]line = 700.45 [10:27:46]line НДС 12% НСП 1% [10:27:46]line > о реализуемом товаре [10:27:46]line ОКРУГЛЕНИЕ: -0.45 [10:27:46]line ИТОГО: 700.00 [10:27:46]line Внесено: 700.00 [10:27:46]line СДАЧА: 0.00 [10:27:46]line НСП 1% : 6.20 [10:27:46]line НДС 12% : 74.38 [10:27:46]line Наличными: 700.00 [10:27:46]line Безнал.: 0.00 [10:27:46]line Место: АЗС № 86 "Партнер Нефть" [10:27:46]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [10:27:46]line СНО: Общий режим [10:27:46]line Чек 122 21.10.2024 10:27 [10:27:46]line Смена: 460 ФФД: 1.0 [10:27:46]line ЗНМ: 0300000155 [10:27:46]line РНМ: 0000000000100030 [10:27:46]line Версия ККМ: 001 [10:27:46]line ФМ: 0000000000965340 [10:27:46]line ФД: 187658 [10:27:46]line ФПД: 184811761602271 [10:27:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T102748&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187658&fm=184811761602271&tin=02508201610067®Number=0000000000100030&sum=70000 [10:27:46]OFD Sender: Processing packet 187658 [packets to send 1062, broken 1061] [10:27:46]ProducePacketName [10:27:46]name=ofd_packets/00187658 [10:27:46]OFD Sender: To server: pG, [10:27:46]CommunicateWithHost lk.salyk.kg:30040 [10:27:46]ConnectInit lk.salyk.kg [10:27:46]written 0, free lines is 4095 [10:27:47]Connected sock=10 [10:27:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 70 BE 07 01 2A 4E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 E0 24 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 9D 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 00 00 00 F4 03 04 00 A4 2C 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 0A DD 02 00 35 04 06 00 A8 15 D7 66 8E DF 82 32 6D 59 37 1C 4F 65 [10:27:47]Write to MH i2c: 01 00 00 52 42 94 [10:27:47]Write i2c OK [10:27:47]MH_I2C_Read... [10:27:47]Read from MH i2c: 01 [10:27:47]MH_I2C_Read... [10:27:47]Read from MH i2c: 01 07 00 [10:27:47]MH_I2C_Read... [10:27:47]Read from MH i2c: 01 07 00 52 42 00 00 00 00 00 82 0C 29 [10:27:47]RasterBufferAndPrint [10:27:47]line [10:27:47]line [10:27:47]line [10:27:47]line [10:27:47]line [10:27:47]written 0, free lines is 3205 [10:27:47]MH_Cut [10:27:47]Write to MH i2c: D1 01 00 59 42 01 6D [10:27:47]Write i2c OK [10:27:47]MH_I2C_Read... [10:27:47]Read from MH i2c: D1 [10:27:47]MH_I2C_Read... [10:27:47]Read from MH i2c: D1 01 00 [10:27:47]MH_I2C_Read... [10:27:47]Read from MH i2c: D1 01 00 59 42 00 6C [10:27:47]Write to MH i2c: 01 00 00 5A 42 9C [10:27:47]Write i2c OK [10:27:47]MH_I2C_Read... [10:27:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 95 BA 47 00 E6 DD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 0A DD 02 00 F4 03 04 00 94 D6 15 67 B6 04 01 00 00 F7 30 FE 50 81 AA 99 9E [10:27:47]CommunicateWithHost err = 0 [10:27:47]CheckOFDResponse [10:27:47]1017 (14) - 77093643461234 [10:27:47]1041 (16) - 0000000000965340 [10:27:47]1040 (4) - 187658 [10:27:47]1012 (4) - 21.10.2024 04:20 [10:27:47]1206 (1) - 0 [10:27:47]OFD Sender: Remove packet 187658 [10:27:47]ProducePacketName [10:27:47]name=ofd_packets/00187658 [10:27:47]NVStorageDeleteData [10:27:47]OFD Sender: No OFD packet to send [10:27:48]*** Cut start [10:27:48]*** Partial cut [10:27:48]*** CUTSNS_PIN = 1 [10:27:48]*** CUTSNS_PIN = 0 [10:27:48]*** Brake cut motor [10:27:48]Read from MH i2c: 01 [10:27:48]MH_I2C_Read... [10:27:48]*** Stop cut motor [10:27:48]*** Cut end [10:27:48]Read from MH i2c: 01 07 00 [10:27:48]MH_I2C_Read... [10:27:48]Read from MH i2c: 01 07 00 5A 42 00 00 00 00 00 FF 0F B1 [10:27:48]process_action close_receipt done [10:27:48]requested_data is exist [10:27:48]produce_requested_data [10:27:48]requested_item fm.sn is exist - process it [10:27:48]wFMCommunicate request_size=4 [10:27:48]MH_SAM_APDU [10:27:48]CAPDU: 80 11 00 00 [10:27:48]Write to MH i2c: E2 08 00 5B 42 80 11 00 00 00 00 00 00 17 [10:27:48]Write i2c OK [10:27:48]MH_I2C_Read... [10:27:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:27:49]Read from MH i2c: E2 [10:27:49]MH_I2C_Read... [10:27:49]Read from MH i2c: E2 17 00 [10:27:49]MH_I2C_Read... [10:27:49]Read from MH i2c: E2 17 00 5B 42 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 65 [10:27:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [10:27:49]wFMCommunicate OK [10:27:49]requested_item fd.num is exist - process it [10:27:49]SAM_PROTO_GetFieldsCounters [10:27:49]wFMCommunicate request_size=4 [10:27:49]MH_SAM_APDU [10:27:49]CAPDU: 80 13 00 00 [10:27:49]Write to MH i2c: E2 08 00 5C 42 80 13 00 00 00 00 00 00 1A [10:27:49]Write i2c OK [10:27:49]MH_I2C_Read... [10:27:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:27:49]Read from MH i2c: E2 [10:27:49]MH_I2C_Read... [10:27:49]Read from MH i2c: E2 62 00 [10:27:49]MH_I2C_Read... [10:27:49]Read from MH i2c: E2 62 00 5C 42 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 0A DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 7A 00 00 00 5E 04 04 00 7A 00 00 00 57 04 04 00 7B 00 00 00 19 04 04 00 00 00 00 00 90 00 45 [10:27:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 0A DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 7A 00 00 00 5E 04 04 00 7A 00 00 00 57 04 04 00 7B 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:27:49]wFMCommunicate OK [10:27:49]SAM_PROTO_GetFieldsCounters done [10:27:49]requested_item shift.num is exist - process it [10:27:49]requested_item shift.opened is exist - process it [10:27:49]req_shift_opened [10:27:49]FM_GetShiftState [10:27:49]SAM_PROTO_GetShiftState [10:27:49]wFMCommunicate request_size=4 [10:27:49]MH_SAM_APDU [10:27:49]CAPDU: 80 13 01 00 [10:27:49]Write to MH i2c: E2 08 00 5D 42 80 13 01 00 00 00 00 00 1C [10:27:49]Write i2c OK [10:27:49]MH_I2C_Read... [10:27:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:27:49]Read from MH i2c: E2 [10:27:49]MH_I2C_Read... [10:27:49]Read from MH i2c: E2 0E 00 [10:27:49]MH_I2C_Read... [10:27:49]Read from MH i2c: E2 0E 00 5D 42 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 7B [10:27:49]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [10:27:49]wFMCommunicate OK [10:27:49]SAM_PROTO_GetShiftState done [10:27:49]FM_GetShiftState done [10:27:49]req_shift_opened done [10:27:49]requested_item shift.open_date is exist - process it [10:27:49]req_shift_open_date [10:27:49]req_shift_open_date done [10:27:49]produce_requested_data done [10:27:49]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187658,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [10:27:49]process_action_free close_receipt [10:27:49]json_value_free [10:27:49]json_value_free done [10:27:49]process_json_proto returns [10:27:49]Send response to host [10:27:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187658,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [10:27:49]free response buf [10:27:49]execute_script done [10:27:49]execute_script returns [10:27:49]free content buf [10:27:49]Sock 8.Close socket [10:27:49]Sock 8.Thread stoped [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:18]OFD Sender: No OFD packet to send [10:28:23]OFD Sender: No OFD packet to send [10:28:28]OFD Sender: No OFD packet to send [10:28:33]OFD Sender: No OFD packet to send [10:28:35]accept exits with 9 [10:28:35]New connection [10:28:35]New thread 3067014500 created [10:28:35]Thread 3067157860 joined [10:28:35]Waiting for new connection... [10:28:35] Sock 9.Parse request [10:28:35]Sock 9.Check first char [10:28:35]Sock 9.First char is OK [10:28:35]request: POST /json_proto HTTP/1.0 [10:28:35]Method: POST [10:28:35]URL: /json_proto [10:28:35]Method is POST - this is cgi request [10:28:35]url: /json_proto [10:28:35]query_string will be loaded in cgi processing [10:28:35]execute_cgi json_proto POST (null) [10:28:35]execute_cgi path=json_proto method=POST [10:28:35]POST find Content-Length [10:28:35]Host: 172.17.42.131:8080 [10:28:35]Content-Length: 682 [10:28:35]Content-Type: application/json [10:28:35] [10:28:35]POST finish read [10:28:35]Found Content-Length = 682 [10:28:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209712", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:28:35]execute_script... [10: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)209712", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:28:35]POST & json_proto [10:28:35]process_json_proto [10:28:35]json parsed OK: [10:28:35]protocol is kg_v1.0 [10:28:35]action value=close_receipt [10:28:35]process_action close_receipt [10:28:35]cmd_close_receipt [10:28:35]MH_GetDate [10:28:35]Write to MH i2c: F0 00 00 5E 42 8F [10:28:35]Write i2c OK [10:28:35]MH_I2C_Read... [10:28:35]Read from MH i2c: F0 [10:28:35]MH_I2C_Read... [10:28:35]Read from MH i2c: F0 09 00 [10:28:35]MH_I2C_Read... [10:28:35]Read from MH i2c: F0 09 00 5E 42 00 D6 2C 16 67 A0 18 CA 66 FF [10:28:35]GetLastDocTimeStamp 1729506468 [10:28:35]current date 1729506518 [10:28:35]FM_GetShiftState [10:28:35]SAM_PROTO_GetShiftState [10:28:35]wFMCommunicate request_size=4 [10:28:35]MH_SAM_APDU [10:28:35]CAPDU: 80 13 01 00 [10:28:35]Write to MH i2c: E2 08 00 5F 42 80 13 01 00 00 00 00 00 1E [10:28:35]Write i2c OK [10:28:35]MH_I2C_Read... [10:28:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:28:35]Read from MH i2c: E2 [10:28:35]MH_I2C_Read... [10:28:35]Read from MH i2c: E2 0E 00 [10:28:35]MH_I2C_Read... [10:28:35]Read from MH i2c: E2 0E 00 5F 42 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 7D [10:28:35]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [10:28:35]wFMCommunicate OK [10:28:35]SAM_PROTO_GetShiftState done [10:28:35]FM_GetShiftState done [10:28:35]opened in 1729469754 [10:28:35]opened+sec_in_day 1729556154 [10:28:35]quantity*price = 100021 [10:28:35]sum+1 = 100023 [10:28:35]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 123 21.10.2024 10:28 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 187659 ФПД: 132102862937146 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T102838&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187659&fm=132102862937146&tin=02508201610067®Number=0000000000100030&sum=100000 [10:28:36]StoreToDocumentArchive [10:28:36]shift 460 fd 187659 [10:28:36]save to /storage/0460/doc_00187659 [10:28:36]save last doc name /storage/0460/doc_00187659 to /storage/kkm_last_doc_name [10:28:36]save OK [10:28:36]Clear old archive folders... [10:28:36]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:28:36]tlvbuf is B6F8A3D0 [10:28:36]SAM_PROTO_ClearQueue [10:28:36]wFMCommunicate request_size=4 [10:28:36]MH_SAM_APDU [10:28:36]CAPDU: 80 09 00 00 [10:28:36]Write to MH i2c: E2 08 00 6C 42 80 09 00 00 00 00 00 00 20 [10:28:36]Write i2c OK [10:28:36]MH_I2C_Read... [10:28:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:28:36]Read from MH i2c: E2 [10:28:36]MH_I2C_Read... [10:28:36]Read from MH i2c: E2 03 00 [10:28:36]MH_I2C_Read... [10:28:36]Read from MH i2c: E2 03 00 6C 42 00 90 00 22 [10:28:36]RAPDU: 90 00 [10:28:36]wFMCommunicate OK [10:28:36]SAM_PROTO_ClearQueue done [10:28:36]KKMCreateOFDPacket [10:28:36]OFDProtocolAddRootSTLVToBuf [10:28:36]FM_MakeSignedData [10:28:36]FM_MakeSignedData [10:28:36]SAM_PROTO_SignData [10:28:36]wFMCommunicate request_size=4 [10:28:36]MH_SAM_APDU [10:28:36]CAPDU: 80 0D 01 02 [10:28:36]Write to MH i2c: E2 08 00 6D 42 80 0D 01 02 00 00 00 00 28 [10:28:36]Write i2c OK [10:28:36]MH_I2C_Read... [10:28:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:28:36]Read from MH i2c: E2 [10:28:36]MH_I2C_Read... [10:28:36]Read from MH i2c: E2 03 00 [10:28:36]MH_I2C_Read... [10:28:36]Read from MH i2c: E2 03 00 6D 42 00 90 00 23 [10:28:36]RAPDU: 90 00 [10:28:36]wFMCommunicate OK [10:28:36]wFMCommunicate request_size=255 [10:28:36]MH_SAM_APDU [10: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7B 00 00 00 F4 03 04 00 D6 2C 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 0B DD 02 00 35 04 06 00 78 [10:28:36]Write to MH i2c: E2 02 01 6E 42 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7B 00 00 00 F4 03 04 00 D6 2C 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 0B DD 02 00 35 04 06 00 78 00 00 E1 [10:28:36]Write i2c OK [10:28:36]MH_I2C_Read... [10:28:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:28:36]Read from MH i2c: E2 [10:28:36]MH_I2C_Read... [10:28:36]Read from MH i2c: E2 03 00 [10:28:36]MH_I2C_Read... [10:28:36]Read from MH i2c: E2 03 00 6E 42 00 90 00 24 [10:28:36]RAPDU: 90 00 [10:28:36]wFMCommunicate OK [10:28:36]wFMCommunicate request_size=10 [10:28:36]MH_SAM_APDU [10:28:36]CAPDU: 80 0D 02 02 05 25 98 38 1C 3A [10:28:36]Write to MH i2c: E2 0D 00 6F 42 80 0D 02 02 05 00 25 98 38 1C 3A 00 00 80 [10:28:36]Write i2c OK [10:28:36]MH_I2C_Read... [10:28:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:28:36]Read from MH i2c: E2 [10:28:36]MH_I2C_Read... [10:28:36]Read from MH i2c: E2 03 00 [10:28:36]MH_I2C_Read... [10:28:36]Read from MH i2c: E2 03 00 6F 42 00 90 00 25 [10:28:36]RAPDU: 90 00 [10:28:36]wFMCommunicate OK [10:28:36]wFMCommunicate request_size=4 [10:28:36]MH_SAM_APDU [10:28:36]CAPDU: 80 0D 03 02 [10:28:36]Write to MH i2c: E2 08 00 70 42 80 0D 03 02 00 00 00 00 2D [10:28:36]Write i2c OK [10:28:36]MH_I2C_Read... [10:28:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:28:36]Read from MH i2c: E2 [10:28:36]MH_I2C_Read... [10:28:36]Read from MH i2c: E2 0B 00 [10:28:36]MH_I2C_Read... [10:28:36]Read from MH i2c: E2 0B 00 70 42 00 2A 30 9E 41 95 ED 98 90 90 00 11 [10:28:36]RAPDU: 2A 30 9E 41 95 ED 98 90 90 00 [10:28:36]wFMCommunicate OK [10:28:36]SAM_PROTO_SignData done [10:28:36]FM_MakeSignedData done [10:28:36]CreateOFDProtocolMessage [10:28:36]wFMCommunicate request_size=4 [10:28:36]MH_SAM_APDU [10:28:36]CAPDU: 80 11 00 00 [10:28:36]Write to MH i2c: E2 08 00 71 42 80 11 00 00 00 00 00 00 2D [10:28:36]Write i2c OK [10:28:36]MH_I2C_Read... [10:28:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:28:36]Read from MH i2c: E2 [10:28:36]MH_I2C_Read... [10:28:36]Read from MH i2c: E2 17 00 [10:28:36]MH_I2C_Read... [10:28:36]Read from MH i2c: E2 17 00 71 42 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 7B [10:28:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [10:28:36]wFMCommunicate OK [10:28:36]CreateOFDProtocolMessage done [10:28:36]OFDSenderStorePacket 187659 [10:28:36]StoreOFDPacket docnum=187659 [10:28:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 8D 1F 07 01 00 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7B 00 00 00 F4 03 04 00 D6 2C 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 0B DD 02 00 35 04 06 00 78 25 98 38 1C 3A 2A 30 9E 41 95 ED 98 90 [10:28:36]CheckFolder [10:28:36]dirname=/storage/ofd_packets [10:28:36]CheckFolder done [10:28:36]ProducePacketName [10:28:36]name=ofd_packets/00187659 [10:28:36]NVStorageSaveData ofd_packets/00187659 [10:28:36]File name is /storage/ofd_packets/00187659 [10:28:36]Write 301 bytes [10:28:36]NVStorageSaveData done [10:28:36]OFDSenderStorePacket done [10:28:36]KKMCreateOFDPacket done [10:28:36]NVStorageSaveData kkm_last_timestamp [10:28:36]File name is /storage/kkm_last_timestamp [10:28:36]Write 4 bytes [10:28:36]NVStorageSaveData done [10:28:36]ExternCall_PrintAddStr [10:28:36]wPrintStart [10:28:36]Write to MH i2c: 01 00 00 72 42 B4 [10:28:36]Write i2c OK [10:28:36]MH_I2C_Read... [10:28:36]Read from MH i2c: 01 [10:28:36]MH_I2C_Read... [10:28:36]Read from MH i2c: 01 07 00 [10:28:36]MH_I2C_Read... [10:28:36]Read from MH i2c: 01 07 00 72 42 00 00 00 00 00 FF 0F C9 [10:28:36]RasterBufferAndPrint [10:28:36]line Счет N : (1)209712 [10:28:36]line ИНН: 02508201610067 [10:28:36]line Контрольно-Кассовый Чек [10:28:36]line ПРОДАЖА [10:28:36]line ТРК (МРК, ГНК) : 23 [10:28:36]line Товар: 2710124500 [10:28:36]line Аи-95-К-3 [10:28:36]line 13.480 * 74.20 [10:28:36]line = 1000.22 [10:28:36]line НДС 12% НСП 1% [10:28:36]line > о реализуемом товаре [10:28:36]line ОКРУГЛЕНИЕ: -0.22 [10:28:36]line ИТОГО: 1000.00 [10:28:36]line Внесено: 1000.00 [10:28:36]line СДАЧА: 0.00 [10:28:36]line НСП 1% : 8.85 [10:28:36]line НДС 12% : 106.22 [10:28:36]line Наличными: 1000.00 [10:28:36]line Безнал.: 0.00 [10:28:36]line Место: АЗС № 86 "Партнер Нефть" [10:28:36]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [10:28:36]line СНО: Общий режим [10:28:36]line Чек 123 21.10.2024 10:28 [10:28:36]line Смена: 460 ФФД: 1.0 [10:28:36]line ЗНМ: 0300000155 [10:28:36]line РНМ: 0000000000100030 [10:28:36]line Версия ККМ: 001 [10:28:36]line ФМ: 0000000000965340 [10:28:36]line ФД: 187659 [10:28:36]line ФПД: 132102862937146 [10:28:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T102838&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187659&fm=132102862937146&tin=02508201610067®Number=0000000000100030&sum=100000 [10:28:36]written 0, free lines is 4095 [10:28:36]OFD Sender: Processing packet 187659 [packets to send 1062, broken 1061] [10:28:36]ProducePacketName [10:28:36]name=ofd_packets/00187659 [10:28:36]OFD Sender: To server: pG, [10:28:36]CommunicateWithHost lk.salyk.kg:30040 [10:28:36]ConnectInit lk.salyk.kg [10:28:37]Connected sock=10 [10:28:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 8D 1F 07 01 00 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7B 00 00 00 F4 03 04 00 D6 2C 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 0B DD 02 00 35 04 06 00 78 25 98 38 1C 3A 2A 30 9E 41 95 ED 98 90 [10:28:37]Write to MH i2c: 01 00 00 9D 42 DF [10:28:37]Write i2c OK [10:28:37]MH_I2C_Read... [10:28:37]Read from MH i2c: 01 [10:28:37]MH_I2C_Read... [10:28:37]Read from MH i2c: 01 07 00 [10:28:37]MH_I2C_Read... [10:28:37]Read from MH i2c: 01 07 00 9D 42 00 00 00 00 00 88 0C 7A [10:28:37]RasterBufferAndPrint [10:28:37]line [10:28:37]line [10:28:37]line [10:28:37]line [10:28:37]line [10:28:37]written 0, free lines is 3212 [10:28:37]MH_Cut [10:28:37]Write to MH i2c: D1 01 00 A4 42 01 B8 [10:28:37]Write i2c OK [10:28:37]MH_I2C_Read... [10:28:37]Read from MH i2c: D1 [10:28:37]MH_I2C_Read... [10:28:37]Read from MH i2c: D1 01 00 [10:28:37]MH_I2C_Read... [10:28:37]Read from MH i2c: D1 01 00 A4 42 00 B7 [10:28:37]Write to MH i2c: 01 00 00 A5 42 E7 [10:28:37]Write i2c OK [10:28:37]MH_I2C_Read... [10:28:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 76 A6 47 00 8C 2D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 0B DD 02 00 F4 03 04 00 C6 D6 15 67 B6 04 01 00 00 81 2F FE 29 67 1D AD C6 [10:28:37]CommunicateWithHost err = 0 [10:28:37]CheckOFDResponse [10:28:37]1017 (14) - 77093643461234 [10:28:37]1041 (16) - 0000000000965340 [10:28:37]1040 (4) - 187659 [10:28:37]1012 (4) - 21.10.2024 04:21 [10:28:37]1206 (1) - 0 [10:28:37]OFD Sender: Remove packet 187659 [10:28:37]ProducePacketName [10:28:37]name=ofd_packets/00187659 [10:28:37]NVStorageDeleteData [10:28:37]OFD Sender: No OFD packet to send [10:28:38]*** Cut start [10:28:38]*** Partial cut [10:28:38]*** CUTSNS_PIN = 1 [10:28:38]*** CUTSNS_PIN = 0 [10:28:38]*** Brake cut motor [10:28:38]Read from MH i2c: 01 [10:28:38]MH_I2C_Read... [10:28:38]*** Stop cut motor [10:28:38]*** Cut end [10:28:38]Read from MH i2c: 01 07 00 [10:28:38]MH_I2C_Read... [10:28:38]Read from MH i2c: 01 07 00 A5 42 00 00 00 00 00 FF 0F FC [10:28:38]process_action close_receipt done [10:28:38]requested_data is exist [10:28:38]produce_requested_data [10:28:38]requested_item fm.sn is exist - process it [10:28:38]wFMCommunicate request_size=4 [10:28:38]MH_SAM_APDU [10:28:38]CAPDU: 80 11 00 00 [10:28:38]Write to MH i2c: E2 08 00 A6 42 80 11 00 00 00 00 00 00 62 [10:28:38]Write i2c OK [10:28:38]MH_I2C_Read... [10:28:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:28:38]Read from MH i2c: E2 [10:28:38]MH_I2C_Read... [10:28:38]Read from MH i2c: E2 17 00 [10:28:38]MH_I2C_Read... [10:28:38]Read from MH i2c: E2 17 00 A6 42 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 B0 [10:28:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [10:28:39]wFMCommunicate OK [10:28:39]requested_item fd.num is exist - process it [10:28:39]SAM_PROTO_GetFieldsCounters [10:28:39]wFMCommunicate request_size=4 [10:28:39]MH_SAM_APDU [10:28:39]CAPDU: 80 13 00 00 [10:28:39]Write to MH i2c: E2 08 00 A7 42 80 13 00 00 00 00 00 00 65 [10:28:39]Write i2c OK [10:28:39]MH_I2C_Read... [10:28:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:28:39]Read from MH i2c: E2 [10:28:39]MH_I2C_Read... [10:28:39]Read from MH i2c: E2 62 00 [10:28:39]MH_I2C_Read... [10:28:39]Read from MH i2c: E2 62 00 A7 42 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 0B DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 7B 00 00 00 5E 04 04 00 7B 00 00 00 57 04 04 00 7C 00 00 00 19 04 04 00 00 00 00 00 90 00 94 [10:28:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 0B DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 7B 00 00 00 5E 04 04 00 7B 00 00 00 57 04 04 00 7C 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:28:39]wFMCommunicate OK [10:28:39]SAM_PROTO_GetFieldsCounters done [10:28:39]requested_item shift.num is exist - process it [10:28:39]requested_item shift.opened is exist - process it [10:28:39]req_shift_opened [10:28:39]FM_GetShiftState [10:28:39]SAM_PROTO_GetShiftState [10:28:39]wFMCommunicate request_size=4 [10:28:39]MH_SAM_APDU [10:28:39]CAPDU: 80 13 01 00 [10:28:39]Write to MH i2c: E2 08 00 A8 42 80 13 01 00 00 00 00 00 67 [10:28:39]Write i2c OK [10:28:39]MH_I2C_Read... [10:28:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:28:39]Read from MH i2c: E2 [10:28:39]MH_I2C_Read... [10:28:39]Read from MH i2c: E2 0E 00 [10:28:39]MH_I2C_Read... [10:28:39]Read from MH i2c: E2 0E 00 A8 42 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 C6 [10:28:39]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [10:28:39]wFMCommunicate OK [10:28:39]SAM_PROTO_GetShiftState done [10:28:39]FM_GetShiftState done [10:28:39]req_shift_opened done [10:28:39]requested_item shift.open_date is exist - process it [10:28:39]req_shift_open_date [10:28:39]req_shift_open_date done [10:28:39]produce_requested_data done [10:28:39]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187659,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [10:28:39]process_action_free close_receipt [10:28:39]json_value_free [10:28:39]json_value_free done [10:28:39]process_json_proto returns [10:28:39]Send response to host [10:28:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187659,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [10:28:39]free response buf [10:28:39]execute_script done [10:28:39]execute_script returns [10:28:39]free content buf [10:28:39]Sock 9.Close socket [10:28:39]Sock 9.Thread stoped [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:08]OFD Sender: No OFD packet to send [10:29:13]OFD Sender: No OFD packet to send [10:29:18]OFD Sender: No OFD packet to send [10:29:23]OFD Sender: No OFD packet to send [10:29:28]OFD Sender: No OFD packet to send [10:29:33]OFD Sender: No OFD packet to send [10:29:38]OFD Sender: No OFD packet to send [10:29:43]OFD Sender: No OFD packet to send [10:29:48]OFD Sender: No OFD packet to send [10:29:53]OFD Sender: No OFD packet to send [10:29:58]OFD Sender: No OFD packet to send [10:30:03]OFD Sender: No OFD packet to send [10:30:08]OFD Sender: No OFD packet to send [10:30:13]OFD Sender: No OFD packet to send [10:30:18]OFD Sender: No OFD packet to send [10:30:23]OFD Sender: No OFD packet to send [10:30:28]OFD Sender: No OFD packet to send [10:30:33]OFD Sender: No OFD packet to send [10:30:38]OFD Sender: No OFD packet to send [10:30:43]OFD Sender: No OFD packet to send [10:30:48]OFD Sender: No OFD packet to send [10:30:53]OFD Sender: No OFD packet to send [10:30:58]OFD Sender: No OFD packet to send [10:31:03]OFD Sender: No OFD packet to send [10:31:08]OFD Sender: No OFD packet to send [10:31:13]OFD Sender: No OFD packet to send [10:31:18]OFD Sender: No OFD packet to send [10:31:23]OFD Sender: No OFD packet to send [10:31:28]OFD Sender: No OFD packet to send [10:31:33]OFD Sender: No OFD packet to send [10:31:38]OFD Sender: No OFD packet to send [10:31:43]OFD Sender: No OFD packet to send [10:31:48]OFD Sender: No OFD packet to send [10:31:53]OFD Sender: No OFD packet to send [10:31:58]OFD Sender: No OFD packet to send [10:32:03]OFD Sender: No OFD packet to send [10:32:08]OFD Sender: No OFD packet to send [10:32:13]OFD Sender: No OFD packet to send [10:32:18]OFD Sender: No OFD packet to send [10:32:23]OFD Sender: No OFD packet to send [10:32:27]accept exits with 8 [10:32:27]New connection [10:32:27]New thread 3067157860 created [10:32:27]Thread 3067014500 joined [10:32:27]Waiting for new connection... [10:32:27] Sock 8.Parse request [10:32:27]Sock 8.Check first char [10:32:27]Sock 8.First char is OK [10:32:27]request: POST /json_proto HTTP/1.0 [10:32:27]Method: POST [10:32:27]URL: /json_proto [10:32:27]Method is POST - this is cgi request [10:32:27]url: /json_proto [10:32:27]query_string will be loaded in cgi processing [10:32:27]execute_cgi json_proto POST (null) [10:32:27]execute_cgi path=json_proto method=POST [10:32:27]POST find Content-Length [10:32:27]Host: 172.17.42.131:8080 [10:32:27]Content-Length: 677 [10:32:27]Content-Type: application/json [10:32:27] [10:32:27]POST finish read [10:32:27]Found Content-Length = 677 [10:32:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209713", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "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:32:27]execute_script... [10:32: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)209713", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "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:32:27]POST & json_proto [10:32:27]process_json_proto [10:32:27]json parsed OK: [10:32:27]protocol is kg_v1.0 [10:32:27]action value=close_receipt [10:32:27]process_action close_receipt [10:32:27]cmd_close_receipt [10:32:27]MH_GetDate [10:32:27]Write to MH i2c: F0 00 00 A9 42 DA [10:32:27]Write i2c OK [10:32:27]MH_I2C_Read... [10:32:27]Read from MH i2c: F0 [10:32:27]MH_I2C_Read... [10:32:27]Read from MH i2c: F0 09 00 [10:32:27]MH_I2C_Read... [10:32:27]Read from MH i2c: F0 09 00 A9 42 00 BE 2D 16 67 A0 18 CA 66 33 [10:32:27]GetLastDocTimeStamp 1729506518 [10:32:27]current date 1729506750 [10:32:27]FM_GetShiftState [10:32:27]SAM_PROTO_GetShiftState [10:32:27]wFMCommunicate request_size=4 [10:32:27]MH_SAM_APDU [10:32:27]CAPDU: 80 13 01 00 [10:32:27]Write to MH i2c: E2 08 00 AA 42 80 13 01 00 00 00 00 00 69 [10:32:27]Write i2c OK [10:32:27]MH_I2C_Read... [10:32:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:32:27]Read from MH i2c: E2 [10:32:27]MH_I2C_Read... [10:32:27]Read from MH i2c: E2 0E 00 [10:32:27]MH_I2C_Read... [10:32:27]Read from MH i2c: E2 0E 00 AA 42 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 C8 [10:32:27]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [10:32:27]wFMCommunicate OK [10:32:27]SAM_PROTO_GetShiftState done [10:32:27]FM_GetShiftState done [10:32:27]opened in 1729469754 [10:32:27]opened+sec_in_day 1729556154 [10:32:27]quantity*price = 50041 [10:32:27]sum+1 = 50042 [10:32:27]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 124 21.10.2024 10:32 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 187660 ФПД: 139731187149720 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T103230&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187660&fm=139731187149720&tin=02508201610067®Number=0000000000100030&sum=50000 [10:32:28]StoreToDocumentArchive [10:32:28]shift 460 fd 187660 [10:32:28]save to /storage/0460/doc_00187660 [10:32:28]save last doc name /storage/0460/doc_00187660 to /storage/kkm_last_doc_name [10:32:28]save OK [10:32:28]Clear old archive folders... [10:32:28]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:32:28]tlvbuf is 010A3550 [10:32:28]SAM_PROTO_ClearQueue [10:32:28]wFMCommunicate request_size=4 [10:32:28]MH_SAM_APDU [10:32:28]CAPDU: 80 09 00 00 [10:32:28]Write to MH i2c: E2 08 00 B7 42 80 09 00 00 00 00 00 00 6B [10:32:28]Write i2c OK [10:32:28]MH_I2C_Read... [10:32:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:32:28]Read from MH i2c: E2 [10:32:28]MH_I2C_Read... [10:32:28]Read from MH i2c: E2 03 00 [10:32:28]MH_I2C_Read... [10:32:28]Read from MH i2c: E2 03 00 B7 42 00 90 00 6D [10:32:28]RAPDU: 90 00 [10:32:28]wFMCommunicate OK [10:32:28]SAM_PROTO_ClearQueue done [10:32:28]KKMCreateOFDPacket [10:32:28]OFDProtocolAddRootSTLVToBuf [10:32:28]FM_MakeSignedData [10:32:28]FM_MakeSignedData [10:32:28]SAM_PROTO_SignData [10:32:28]wFMCommunicate request_size=4 [10:32:28]MH_SAM_APDU [10:32:28]CAPDU: 80 0D 01 02 [10:32:28]Write to MH i2c: E2 08 00 B8 42 80 0D 01 02 00 00 00 00 73 [10:32:28]Write i2c OK [10:32:28]MH_I2C_Read... [10:32:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:32:28]Read from MH i2c: E2 [10:32:28]MH_I2C_Read... [10:32:28]Read from MH i2c: E2 03 00 [10:32:28]MH_I2C_Read... [10:32:28]Read from MH i2c: E2 03 00 B8 42 00 90 00 6E [10:32:28]RAPDU: 90 00 [10:32:28]wFMCommunicate OK [10:32:28]wFMCommunicate request_size=255 [10:32:28]MH_SAM_APDU [10:32: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 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 BE 2D 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 0C DD 02 00 35 04 06 00 7F [10:32:28]Write to MH i2c: E2 02 01 B9 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 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 BE 2D 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 0C DD 02 00 35 04 06 00 7F 00 00 01 [10:32:28]Write i2c OK [10:32:28]MH_I2C_Read... [10:32:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:32:28]Read from MH i2c: E2 [10:32:28]MH_I2C_Read... [10:32:28]Read from MH i2c: E2 03 00 [10:32:28]MH_I2C_Read... [10:32:28]Read from MH i2c: E2 03 00 B9 42 00 90 00 6F [10:32:28]RAPDU: 90 00 [10:32:28]wFMCommunicate OK [10:32:28]wFMCommunicate request_size=10 [10:32:28]MH_SAM_APDU [10:32:28]CAPDU: 80 0D 02 02 05 15 B3 C6 2B 98 [10:32:28]Write to MH i2c: E2 0D 00 BA 42 80 0D 02 02 05 00 15 B3 C6 2B 98 00 00 D1 [10:32:28]Write i2c OK [10:32:28]MH_I2C_Read... [10:32:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:32:28]Read from MH i2c: E2 [10:32:28]MH_I2C_Read... [10:32:28]Read from MH i2c: E2 03 00 [10:32:28]MH_I2C_Read... [10:32:28]Read from MH i2c: E2 03 00 BA 42 00 90 00 70 [10:32:28]RAPDU: 90 00 [10:32:28]wFMCommunicate OK [10:32:28]wFMCommunicate request_size=4 [10:32:28]MH_SAM_APDU [10:32:28]CAPDU: 80 0D 03 02 [10:32:28]Write to MH i2c: E2 08 00 BB 42 80 0D 03 02 00 00 00 00 78 [10:32:28]Write i2c OK [10:32:28]MH_I2C_Read... [10:32:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:32:28]Read from MH i2c: E2 [10:32:28]MH_I2C_Read... [10:32:28]Read from MH i2c: E2 0B 00 [10:32:28]MH_I2C_Read... [10:32:28]Read from MH i2c: E2 0B 00 BB 42 00 A8 00 6A AD DF A7 AF 6F 90 00 DC [10:32:28]RAPDU: A8 00 6A AD DF A7 AF 6F 90 00 [10:32:28]wFMCommunicate OK [10:32:28]SAM_PROTO_SignData done [10:32:28]FM_MakeSignedData done [10:32:28]CreateOFDProtocolMessage [10:32:28]wFMCommunicate request_size=4 [10:32:28]MH_SAM_APDU [10:32:28]CAPDU: 80 11 00 00 [10:32:28]Write to MH i2c: E2 08 00 BC 42 80 11 00 00 00 00 00 00 78 [10:32:28]Write i2c OK [10:32:28]MH_I2C_Read... [10:32:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:32:28]Read from MH i2c: E2 [10:32:28]MH_I2C_Read... [10:32:28]Read from MH i2c: E2 17 00 [10:32:28]MH_I2C_Read... [10:32:28]Read from MH i2c: E2 17 00 BC 42 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 C6 [10:32:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [10:32:28]wFMCommunicate OK [10:32:28]CreateOFDProtocolMessage done [10:32:28]OFDSenderStorePacket 187660 [10:32:28]StoreOFDPacket docnum=187660 [10:32:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 0D 53 07 01 3F 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 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 BE 2D 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 0C DD 02 00 35 04 06 00 7F 15 B3 C6 2B 98 A8 00 6A AD DF A7 AF 6F [10:32:28]CheckFolder [10:32:28]dirname=/storage/ofd_packets [10:32:28]CheckFolder done [10:32:28]ProducePacketName [10:32:28]name=ofd_packets/00187660 [10:32:28]NVStorageSaveData ofd_packets/00187660 [10:32:28]File name is /storage/ofd_packets/00187660 [10:32:28]Write 301 bytes [10:32:28]NVStorageSaveData done [10:32:28]OFDSenderStorePacket done [10:32:28]KKMCreateOFDPacket done [10:32:28]NVStorageSaveData kkm_last_timestamp [10:32:28]File name is /storage/kkm_last_timestamp [10:32:28]Write 4 bytes [10:32:28]NVStorageSaveData done [10:32:28]ExternCall_PrintAddStr [10:32:28]wPrintStart [10:32:28]Write to MH i2c: 01 00 00 BD 42 FF [10:32:28]Write i2c OK [10:32:28]MH_I2C_Read... [10:32:28]Read from MH i2c: 01 [10:32:28]MH_I2C_Read... [10:32:28]Read from MH i2c: 01 07 00 [10:32:28]MH_I2C_Read... [10:32:28]Read from MH i2c: 01 07 00 BD 42 00 00 00 00 00 FF 0F 14 [10:32:28]RasterBufferAndPrint [10:32:28]line Счет N : (1)209713 [10:32:28]line ИНН: 02508201610067 [10:32:28]line Контрольно-Кассовый Чек [10:32:28]line ПРОДАЖА [10:32:28]line ТРК (МРК, ГНК) : 12 [10:32:28]line Товар: 2710124130 [10:32:28]line Аи-92-К-3 [10:32:28]line 7.480 * 66.90 [10:32:28]line = 500.41 [10:32:28]line НДС 12% НСП 1% [10:32:28]line > о реализуемом товаре [10:32:28]line ОКРУГЛЕНИЕ: -0.41 [10:32:28]line ИТОГО: 500.00 [10:32:28]line Внесено: 500.00 [10:32:28]line СДАЧА: 0.00 [10:32:28]line НСП 1% : 4.43 [10:32:28]line НДС 12% : 53.14 [10:32:28]line Наличными: 500.00 [10:32:28]line Безнал.: 0.00 [10:32:28]line Место: АЗС № 86 "Партнер Нефть" [10:32:28]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [10:32:28]line СНО: Общий режим [10:32:28]line Чек 124 21.10.2024 10:32 [10:32:28]line Смена: 460 ФФД: 1.0 [10:32:28]line ЗНМ: 0300000155 [10:32:28]line РНМ: 0000000000100030 [10:32:28]line Версия ККМ: 001 [10:32:28]line ФМ: 0000000000965340 [10:32:28]line ФД: 187660 [10:32:28]line ФПД: 139731187149720 [10:32:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T103230&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187660&fm=139731187149720&tin=02508201610067®Number=0000000000100030&sum=50000 [10:32:28]written 0, free lines is 4095 [10:32:28]OFD Sender: Processing packet 187660 [packets to send 1062, broken 1061] [10:32:28]ProducePacketName [10:32:28]name=ofd_packets/00187660 [10:32:28]OFD Sender: To server: pG, [10:32:28]CommunicateWithHost lk.salyk.kg:30040 [10:32:28]ConnectInit lk.salyk.kg [10:32:29]Connected sock=10 [10:32:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 0D 53 07 01 3F 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 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 BE 2D 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 0C DD 02 00 35 04 06 00 7F 15 B3 C6 2B 98 A8 00 6A AD DF A7 AF 6F [10:32:29]Write to MH i2c: 01 00 00 E8 42 2A [10:32:29]Write i2c OK [10:32:29]MH_I2C_Read... [10:32:29]Read from MH i2c: 01 [10:32:29]MH_I2C_Read... [10:32:29]Read from MH i2c: 01 07 00 [10:32:29]MH_I2C_Read... [10:32:29]Read from MH i2c: 01 07 00 E8 42 00 00 00 00 00 79 0C B6 [10:32:29]RasterBufferAndPrint [10:32:29]line [10:32:29]line [10:32:29]line [10:32:29]line [10:32:29]line [10:32:29]written 0, free lines is 3196 [10:32:29]MH_Cut [10:32:29]Write to MH i2c: D1 01 00 EF 42 01 03 [10:32:29]Write i2c OK [10:32:29]MH_I2C_Read... [10:32:29]Read from MH i2c: D1 [10:32:29]MH_I2C_Read... [10:32:29]Read from MH i2c: D1 01 00 [10:32:29]MH_I2C_Read... [10:32:29]Read from MH i2c: D1 01 00 EF 42 00 02 [10:32:29]Write to MH i2c: 01 00 00 F0 42 32 [10:32:29]Write i2c OK [10:32:29]MH_I2C_Read... [10:32:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 14 34 47 00 13 A3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 0C DD 02 00 F4 03 04 00 AE D7 15 67 B6 04 01 00 00 7D 12 AA 58 3C 4C 46 25 [10:32:29]CommunicateWithHost err = 0 [10:32:29]CheckOFDResponse [10:32:29]1017 (14) - 77093643461234 [10:32:29]1041 (16) - 0000000000965340 [10:32:29]1040 (4) - 187660 [10:32:29]1012 (4) - 21.10.2024 04:25 [10:32:29]1206 (1) - 0 [10:32:29]OFD Sender: Remove packet 187660 [10:32:29]ProducePacketName [10:32:29]name=ofd_packets/00187660 [10:32:29]NVStorageDeleteData [10:32:29]OFD Sender: No OFD packet to send [10:32:30]*** Cut start [10:32:30]*** Partial cut [10:32:30]*** CUTSNS_PIN = 1 [10:32:30]*** CUTSNS_PIN = 0 [10:32:30]*** Brake cut motor [10:32:30]Read from MH i2c: 01 [10:32:30]MH_I2C_Read... [10:32:30]*** Stop cut motor [10:32:30]*** Cut end [10:32:30]Read from MH i2c: 01 07 00 [10:32:30]MH_I2C_Read... [10:32:30]Read from MH i2c: 01 07 00 F0 42 00 00 00 00 00 FF 0F 47 [10:32:30]process_action close_receipt done [10:32:30]requested_data is exist [10:32:30]produce_requested_data [10:32:30]requested_item fm.sn is exist - process it [10:32:30]wFMCommunicate request_size=4 [10:32:30]MH_SAM_APDU [10:32:30]CAPDU: 80 11 00 00 [10:32:30]Write to MH i2c: E2 08 00 F1 42 80 11 00 00 00 00 00 00 AD [10:32:30]Write i2c OK [10:32:30]MH_I2C_Read... [10:32:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:32:31]Read from MH i2c: E2 [10:32:31]MH_I2C_Read... [10:32:31]Read from MH i2c: E2 17 00 [10:32:31]MH_I2C_Read... [10:32:31]Read from MH i2c: E2 17 00 F1 42 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 FB [10:32:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [10:32:31]wFMCommunicate OK [10:32:31]requested_item fd.num is exist - process it [10:32:31]SAM_PROTO_GetFieldsCounters [10:32:31]wFMCommunicate request_size=4 [10:32:31]MH_SAM_APDU [10:32:31]CAPDU: 80 13 00 00 [10:32:31]Write to MH i2c: E2 08 00 F2 42 80 13 00 00 00 00 00 00 B0 [10:32:31]Write i2c OK [10:32:31]MH_I2C_Read... [10:32:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:32:31]Read from MH i2c: E2 [10:32:31]MH_I2C_Read... [10:32:31]Read from MH i2c: E2 62 00 [10:32:31]MH_I2C_Read... [10:32:31]Read from MH i2c: E2 62 00 F2 42 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 0C DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 7C 00 00 00 5E 04 04 00 7C 00 00 00 57 04 04 00 7D 00 00 00 19 04 04 00 00 00 00 00 90 00 E3 [10:32:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 0C DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 7C 00 00 00 5E 04 04 00 7C 00 00 00 57 04 04 00 7D 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:32:31]wFMCommunicate OK [10:32:31]SAM_PROTO_GetFieldsCounters done [10:32:31]requested_item shift.num is exist - process it [10:32:31]requested_item shift.opened is exist - process it [10:32:31]req_shift_opened [10:32:31]FM_GetShiftState [10:32:31]SAM_PROTO_GetShiftState [10:32:31]wFMCommunicate request_size=4 [10:32:31]MH_SAM_APDU [10:32:31]CAPDU: 80 13 01 00 [10:32:31]Write to MH i2c: E2 08 00 F3 42 80 13 01 00 00 00 00 00 B2 [10:32:31]Write i2c OK [10:32:31]MH_I2C_Read... [10:32:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:32:31]Read from MH i2c: E2 [10:32:31]MH_I2C_Read... [10:32:31]Read from MH i2c: E2 0E 00 [10:32:31]MH_I2C_Read... [10:32:31]Read from MH i2c: E2 0E 00 F3 42 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 11 [10:32:31]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [10:32:31]wFMCommunicate OK [10:32:31]SAM_PROTO_GetShiftState done [10:32:31]FM_GetShiftState done [10:32:31]req_shift_opened done [10:32:31]requested_item shift.open_date is exist - process it [10:32:31]req_shift_open_date [10:32:31]req_shift_open_date done [10:32:31]produce_requested_data done [10:32:31]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187660,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [10:32:31]process_action_free close_receipt [10:32:31]json_value_free [10:32:31]json_value_free done [10:32:31]process_json_proto returns [10:32:31]Send response to host [10:32:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187660,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [10:32:31]free response buf [10:32:31]execute_script done [10:32:31]execute_script returns [10:32:31]free content buf [10:32:31]Sock 8.Close socket [10:32:31]Sock 8.Thread stoped [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:50]OFD Sender: No OFD packet to send [10:32:55]OFD Sender: No OFD packet to send [10:33:00]OFD Sender: No OFD packet to send [10:33:05]OFD Sender: No OFD packet to send [10:33:10]OFD Sender: No OFD packet to send [10:33:13]accept exits with 9 [10:33:13]New connection [10:33:13]New thread 3067014500 created [10:33:13]Thread 3067157860 joined [10:33:13]Waiting for new connection... [10:33:13] Sock 9.Parse request [10:33:13]Sock 9.Check first char [10:33:13]Sock 9.First char is OK [10:33:13]request: POST /json_proto HTTP/1.0 [10:33:13]Method: POST [10:33:13]URL: /json_proto [10:33:13]Method is POST - this is cgi request [10:33:13]url: /json_proto [10:33:13]query_string will be loaded in cgi processing [10:33:13]execute_cgi json_proto POST (null) [10:33:13]execute_cgi path=json_proto method=POST [10:33:13]POST find Content-Length [10:33:13]Host: 172.17.42.131:8080 [10:33:13]Content-Length: 682 [10:33:13]Content-Type: application/json [10:33:13] [10:33:13]POST finish read [10:33:13]Found Content-Length = 682 [10:33:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209714", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "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:33:13]execute_script... [10:33: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)209714", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "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:33:13]POST & json_proto [10:33:13]process_json_proto [10:33:13]json parsed OK: [10:33:13]protocol is kg_v1.0 [10:33:13]action value=close_receipt [10:33:13]process_action close_receipt [10:33:13]cmd_close_receipt [10:33:13]MH_GetDate [10:33:13]Write to MH i2c: F0 00 00 F4 42 25 [10:33:13]Write i2c OK [10:33:13]MH_I2C_Read... [10:33:13]Read from MH i2c: F0 [10:33:13]MH_I2C_Read... [10:33:13]Read from MH i2c: F0 09 00 [10:33:13]MH_I2C_Read... [10:33:13]Read from MH i2c: F0 09 00 F4 42 00 ED 2D 16 67 A0 18 CA 66 AD [10:33:13]GetLastDocTimeStamp 1729506750 [10:33:13]current date 1729506797 [10:33:13]FM_GetShiftState [10:33:13]SAM_PROTO_GetShiftState [10:33:13]wFMCommunicate request_size=4 [10:33:13]MH_SAM_APDU [10:33:13]CAPDU: 80 13 01 00 [10:33:13]Write to MH i2c: E2 08 00 F5 42 80 13 01 00 00 00 00 00 B4 [10:33:13]Write i2c OK [10:33:13]MH_I2C_Read... [10:33:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:33:13]Read from MH i2c: E2 [10:33:13]MH_I2C_Read... [10:33:13]Read from MH i2c: E2 0E 00 [10:33:13]MH_I2C_Read... [10:33:13]Read from MH i2c: E2 0E 00 F5 42 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 13 [10:33:13]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [10:33:13]wFMCommunicate OK [10:33:13]SAM_PROTO_GetShiftState done [10:33:13]FM_GetShiftState done [10:33:13]opened in 1729469754 [10:33:13]opened+sec_in_day 1729556154 [10:33:13]quantity*price = 100015 [10:33:13]sum+1 = 100017 [10:33:13]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 125 21.10.2024 10:33 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 187661 ФПД: 3337171902988 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T103317&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187661&fm=3337171902988&tin=02508201610067®Number=0000000000100030&sum=100000 [10:33:15]StoreToDocumentArchive [10:33:15]shift 460 fd 187661 [10:33:15]save to /storage/0460/doc_00187661 [10:33:15]save last doc name /storage/0460/doc_00187661 to /storage/kkm_last_doc_name [10:33:15]save OK [10:33:15]Clear old archive folders... [10:33:15]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:33:15]tlvbuf is B6F0C350 [10:33:15]SAM_PROTO_ClearQueue [10:33:15]wFMCommunicate request_size=4 [10:33:15]MH_SAM_APDU [10:33:15]CAPDU: 80 09 00 00 [10:33:15]Write to MH i2c: E2 08 00 02 43 80 09 00 00 00 00 00 00 B7 [10:33:15]Write i2c OK [10:33:15]MH_I2C_Read... [10:33:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:33:15]Read from MH i2c: E2 [10:33:15]MH_I2C_Read... [10:33:15]Read from MH i2c: E2 03 00 [10:33:15]MH_I2C_Read... [10:33:15]Read from MH i2c: E2 03 00 02 43 00 90 00 B9 [10:33:15]RAPDU: 90 00 [10:33:15]wFMCommunicate OK [10:33:15]SAM_PROTO_ClearQueue done [10:33:15]KKMCreateOFDPacket [10:33:15]OFDProtocolAddRootSTLVToBuf [10:33:15]FM_MakeSignedData [10:33:15]FM_MakeSignedData [10:33:15]SAM_PROTO_SignData [10:33:15]wFMCommunicate request_size=4 [10:33:15]MH_SAM_APDU [10:33:15]CAPDU: 80 0D 01 02 [10:33:15]Write to MH i2c: E2 08 00 03 43 80 0D 01 02 00 00 00 00 BF [10:33:15]Write i2c OK [10:33:15]MH_I2C_Read... [10:33:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:33:15]OFD Sender: No OFD packet to send [10:33:15]Read from MH i2c: E2 [10:33:15]MH_I2C_Read... [10:33:15]Read from MH i2c: E2 03 00 [10:33:15]MH_I2C_Read... [10:33:15]Read from MH i2c: E2 03 00 03 43 00 90 00 BA [10:33:15]RAPDU: 90 00 [10:33:15]wFMCommunicate OK [10:33:15]wFMCommunicate request_size=255 [10:33:15]MH_SAM_APDU [10:33: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 33 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 7D 00 00 00 F4 03 04 00 ED 2D 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 0D DD 02 00 35 04 06 00 03 [10:33:15]Write to MH i2c: E2 02 01 04 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 33 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 7D 00 00 00 F4 03 04 00 ED 2D 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 0D DD 02 00 35 04 06 00 03 00 00 FC [10:33:15]Write i2c OK [10:33:15]MH_I2C_Read... [10:33:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:33:15]Read from MH i2c: E2 [10:33:15]MH_I2C_Read... [10:33:15]Read from MH i2c: E2 03 00 [10:33:15]MH_I2C_Read... [10:33:15]Read from MH i2c: E2 03 00 04 43 00 90 00 BB [10:33:15]RAPDU: 90 00 [10:33:15]wFMCommunicate OK [10:33:15]wFMCommunicate request_size=10 [10:33:15]MH_SAM_APDU [10:33:15]CAPDU: 80 0D 02 02 05 08 FE F2 22 0C [10:33:15]Write to MH i2c: E2 0D 00 05 43 80 0D 02 02 05 00 08 FE F2 22 0C 00 00 F2 [10:33:15]Write i2c OK [10:33:15]MH_I2C_Read... [10:33:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:33:15]Read from MH i2c: E2 [10:33:15]MH_I2C_Read... [10:33:15]Read from MH i2c: E2 03 00 [10:33:15]MH_I2C_Read... [10:33:15]Read from MH i2c: E2 03 00 05 43 00 90 00 BC [10:33:15]RAPDU: 90 00 [10:33:15]wFMCommunicate OK [10:33:15]wFMCommunicate request_size=4 [10:33:15]MH_SAM_APDU [10:33:15]CAPDU: 80 0D 03 02 [10:33:15]Write to MH i2c: E2 08 00 06 43 80 0D 03 02 00 00 00 00 C4 [10:33:15]Write i2c OK [10:33:15]MH_I2C_Read... [10:33:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:33:15]Read from MH i2c: E2 [10:33:15]MH_I2C_Read... [10:33:15]Read from MH i2c: E2 0B 00 [10:33:15]MH_I2C_Read... [10:33:15]Read from MH i2c: E2 0B 00 06 43 00 32 D1 1D 79 D7 95 34 A9 90 00 A7 [10:33:15]RAPDU: 32 D1 1D 79 D7 95 34 A9 90 00 [10:33:15]wFMCommunicate OK [10:33:15]SAM_PROTO_SignData done [10:33:15]FM_MakeSignedData done [10:33:15]CreateOFDProtocolMessage [10:33:15]wFMCommunicate request_size=4 [10:33:15]MH_SAM_APDU [10:33:15]CAPDU: 80 11 00 00 [10:33:15]Write to MH i2c: E2 08 00 07 43 80 11 00 00 00 00 00 00 C4 [10:33:15]Write i2c OK [10:33:15]MH_I2C_Read... [10:33:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:33:15]Read from MH i2c: E2 [10:33:15]MH_I2C_Read... [10:33:15]Read from MH i2c: E2 17 00 [10:33:15]MH_I2C_Read... [10:33:15]Read from MH i2c: E2 17 00 07 43 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 12 [10:33:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [10:33:15]wFMCommunicate OK [10:33:15]CreateOFDProtocolMessage done [10:33:15]OFDSenderStorePacket 187661 [10:33:15]StoreOFDPacket docnum=187661 [10:33:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 C2 56 07 01 CD 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 33 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 7D 00 00 00 F4 03 04 00 ED 2D 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 0D DD 02 00 35 04 06 00 03 08 FE F2 22 0C 32 D1 1D 79 D7 95 34 A9 [10:33:15]CheckFolder [10:33:15]dirname=/storage/ofd_packets [10:33:15]CheckFolder done [10:33:15]ProducePacketName [10:33:15]name=ofd_packets/00187661 [10:33:15]NVStorageSaveData ofd_packets/00187661 [10:33:15]File name is /storage/ofd_packets/00187661 [10:33:15]Write 301 bytes [10:33:15]NVStorageSaveData done [10:33:15]OFDSenderStorePacket done [10:33:15]KKMCreateOFDPacket done [10:33:15]NVStorageSaveData kkm_last_timestamp [10:33:15]File name is /storage/kkm_last_timestamp [10:33:15]Write 4 bytes [10:33:15]NVStorageSaveData done [10:33:15]ExternCall_PrintAddStr [10:33:15]wPrintStart [10:33:15]Write to MH i2c: 01 00 00 08 43 4B [10:33:15]Write i2c OK [10:33:15]MH_I2C_Read... [10:33:15]Read from MH i2c: 01 [10:33:15]MH_I2C_Read... [10:33:15]Read from MH i2c: 01 07 00 [10:33:15]MH_I2C_Read... [10:33:15]Read from MH i2c: 01 07 00 08 43 00 00 00 00 00 FF 0F 60 [10:33:15]RasterBufferAndPrint [10:33:15]line Счет N : (1)209714 [10:33:15]line ИНН: 02508201610067 [10:33:15]line Контрольно-Кассовый Чек [10:33:15]line ПРОДАЖА [10:33:15]line ТРК (МРК, ГНК) : 22 [10:33:15]line Товар: 2710124130 [10:33:15]line Аи-92-К-3 [10:33:15]line 14.950 * 66.90 [10:33:15]line = 1000.16 [10:33:15]line НДС 12% НСП 1% [10:33:15]line > о реализуемом товаре [10:33:15]line ОКРУГЛЕНИЕ: -0.16 [10:33:15]line ИТОГО: 1000.00 [10:33:15]line Внесено: 1000.00 [10:33:15]line СДАЧА: 0.00 [10:33:15]line НСП 1% : 8.85 [10:33:15]line НДС 12% : 106.21 [10:33:15]line Наличными: 1000.00 [10:33:15]line Безнал.: 0.00 [10:33:15]line Место: АЗС № 86 "Партнер Нефть" [10:33:15]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [10:33:15]line СНО: Общий режим [10:33:15]line Чек 125 21.10.2024 10:33 [10:33:15]line Смена: 460 ФФД: 1.0 [10:33:15]line ЗНМ: 0300000155 [10:33:15]line РНМ: 0000000000100030 [10:33:15]line Версия ККМ: 001 [10:33:15]line ФМ: 0000000000965340 [10:33:15]line ФД: 187661 [10:33:15]line ФПД: 3337171902988 [10:33:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T103317&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187661&fm=3337171902988&tin=02508201610067®Number=0000000000100030&sum=100000 [10:33:15]written 0, free lines is 4095 [10:33:15]OFD Sender: Processing packet 187661 [packets to send 1062, broken 1061] [10:33:15]ProducePacketName [10:33:15]name=ofd_packets/00187661 [10:33:15]OFD Sender: To server: pG, [10:33:15]CommunicateWithHost lk.salyk.kg:30040 [10:33:15]ConnectInit lk.salyk.kg [10:33:15]Connected sock=10 [10:33:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 C2 56 07 01 CD 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 33 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 7D 00 00 00 F4 03 04 00 ED 2D 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 0D DD 02 00 35 04 06 00 03 08 FE F2 22 0C 32 D1 1D 79 D7 95 34 A9 [10:33:16]Write to MH i2c: 01 00 00 33 43 76 [10:33:16]Write i2c OK [10:33:16]MH_I2C_Read... [10:33:16]Read from MH i2c: 01 [10:33:16]MH_I2C_Read... [10:33:16]Read from MH i2c: 01 07 00 [10:33:16]MH_I2C_Read... [10:33:16]Read from MH i2c: 01 07 00 33 43 00 00 00 00 00 7B 0C 04 [10:33:16]RasterBufferAndPrint [10:33:16]line [10:33:16]line [10:33:16]line [10:33:16]line [10:33:16]line [10:33:16]written 0, free lines is 3198 [10:33:16]MH_Cut [10:33:16]Write to MH i2c: D1 01 00 3A 43 01 4F [10:33:16]Write i2c OK [10:33:16]MH_I2C_Read... [10:33:16]Read from MH i2c: D1 [10:33:16]MH_I2C_Read... [10:33:16]Read from MH i2c: D1 01 00 [10:33:16]MH_I2C_Read... [10:33:16]Read from MH i2c: D1 01 00 3A 43 00 4E [10:33:16]Write to MH i2c: 01 00 00 3B 43 7E [10:33:16]Write i2c OK [10:33:16]MH_I2C_Read... [10:33:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 31 AF 47 00 B4 DA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 0D DD 02 00 F4 03 04 00 DD D7 15 67 B6 04 01 00 00 2A 88 7C 93 78 A9 F7 25 [10:33:16]CommunicateWithHost err = 0 [10:33:16]CheckOFDResponse [10:33:16]1017 (14) - 77093643461234 [10:33:16]1041 (16) - 0000000000965340 [10:33:16]1040 (4) - 187661 [10:33:16]1012 (4) - 21.10.2024 04:26 [10:33:16]1206 (1) - 0 [10:33:16]OFD Sender: Remove packet 187661 [10:33:16]ProducePacketName [10:33:16]name=ofd_packets/00187661 [10:33:16]NVStorageDeleteData [10:33:16]OFD Sender: No OFD packet to send [10:33:17]*** Cut start [10:33:17]*** Partial cut [10:33:17]*** CUTSNS_PIN = 1 [10:33:17]*** CUTSNS_PIN = 0 [10:33:17]*** Brake cut motor [10:33:17]Read from MH i2c: 01 [10:33:17]MH_I2C_Read... [10:33:17]*** Stop cut motor [10:33:17]*** Cut end [10:33:17]Read from MH i2c: 01 07 00 [10:33:17]MH_I2C_Read... [10:33:17]Read from MH i2c: 01 07 00 3B 43 00 00 00 00 00 FF 0F 93 [10:33:17]process_action close_receipt done [10:33:17]requested_data is exist [10:33:17]produce_requested_data [10:33:17]requested_item fm.sn is exist - process it [10:33:17]wFMCommunicate request_size=4 [10:33:17]MH_SAM_APDU [10:33:17]CAPDU: 80 11 00 00 [10:33:17]Write to MH i2c: E2 08 00 3C 43 80 11 00 00 00 00 00 00 F9 [10:33:17]Write i2c OK [10:33:17]MH_I2C_Read... [10:33:17]Read from MH i2c: E2 [10:33:17]MH_I2C_Read... [10:33:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:33:17]Read from MH i2c: E2 17 00 [10:33:17]MH_I2C_Read... [10:33:17]Read from MH i2c: E2 17 00 3C 43 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 47 [10:33:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [10:33:17]wFMCommunicate OK [10:33:17]requested_item fd.num is exist - process it [10:33:17]SAM_PROTO_GetFieldsCounters [10:33:17]wFMCommunicate request_size=4 [10:33:17]MH_SAM_APDU [10:33:17]CAPDU: 80 13 00 00 [10:33:17]Write to MH i2c: E2 08 00 3D 43 80 13 00 00 00 00 00 00 FC [10:33:17]Write i2c OK [10:33:17]MH_I2C_Read... [10:33:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:33:17]Read from MH i2c: E2 [10:33:17]MH_I2C_Read... [10:33:17]Read from MH i2c: E2 62 00 [10:33:17]MH_I2C_Read... [10:33:17]Read from MH i2c: E2 62 00 3D 43 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 0D DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 7D 00 00 00 5E 04 04 00 7D 00 00 00 57 04 04 00 7E 00 00 00 19 04 04 00 00 00 00 00 90 00 33 [10:33:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 0D DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 7D 00 00 00 5E 04 04 00 7D 00 00 00 57 04 04 00 7E 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:33:17]wFMCommunicate OK [10:33:17]SAM_PROTO_GetFieldsCounters done [10:33:17]requested_item shift.num is exist - process it [10:33:17]requested_item shift.opened is exist - process it [10:33:17]req_shift_opened [10:33:17]FM_GetShiftState [10:33:17]SAM_PROTO_GetShiftState [10:33:17]wFMCommunicate request_size=4 [10:33:17]MH_SAM_APDU [10:33:17]CAPDU: 80 13 01 00 [10:33:17]Write to MH i2c: E2 08 00 3E 43 80 13 01 00 00 00 00 00 FE [10:33:17]Write i2c OK [10:33:17]MH_I2C_Read... [10:33:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:33:18]Read from MH i2c: E2 [10:33:18]MH_I2C_Read... [10:33:18]Read from MH i2c: E2 0E 00 [10:33:18]MH_I2C_Read... [10:33:18]Read from MH i2c: E2 0E 00 3E 43 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 5D [10:33:18]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [10:33:18]wFMCommunicate OK [10:33:18]SAM_PROTO_GetShiftState done [10:33:18]FM_GetShiftState done [10:33:18]req_shift_opened done [10:33:18]requested_item shift.open_date is exist - process it [10:33:18]req_shift_open_date [10:33:18]req_shift_open_date done [10:33:18]produce_requested_data done [10:33:18]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187661,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [10:33:18]process_action_free close_receipt [10:33:18]json_value_free [10:33:18]json_value_free done [10:33:18]process_json_proto returns [10:33:18]Send response to host [10:33:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187661,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [10:33:18]free response buf [10:33:18]execute_script done [10:33:18]execute_script returns [10:33:18]free content buf [10:33:18]Sock 9.Close socket [10:33:18]Sock 9.Thread stoped [10:33:21]accept exits with 8 [10:33:21]New connection [10:33:21]New thread 3067157860 created [10:33:21]Thread 3067014500 joined [10:33:21]Waiting for new connection... [10:33:21] Sock 8.Parse request [10:33:21]Sock 8.Check first char [10:33:21]Sock 8.First char is OK [10:33:21]request: POST /json_proto HTTP/1.0 [10:33:21]Method: POST [10:33:21]URL: /json_proto [10:33:21]Method is POST - this is cgi request [10:33:21]url: /json_proto [10:33:21]query_string will be loaded in cgi processing [10:33:21]execute_cgi json_proto POST (null) [10:33:21]execute_cgi path=json_proto method=POST [10:33:21]POST find Content-Length [10:33:21]Host: 172.17.42.131:8080 [10:33:21]Content-Length: 752 [10:33:21]Content-Type: application/json [10:33:21] [10:33:21]POST finish read [10:33:21]Found Content-Length = 752 [10:33:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209709", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 100.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30118725", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:33:21]execute_script... [10:33:21]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209709", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 100.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30118725", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:33:21]POST & json_proto [10:33:21]process_json_proto [10:33:21]json parsed OK: [10:33:21]protocol is kg_v1.0 [10:33:21]action value=close_receipt [10:33:21]process_action close_receipt [10:33:21]cmd_close_receipt [10:33:21]MH_GetDate [10:33:21]Write to MH i2c: F0 00 00 3F 43 71 [10:33:21]Write i2c OK [10:33:21]MH_I2C_Read... [10:33:21]Read from MH i2c: F0 [10:33:21]MH_I2C_Read... [10:33:21]Read from MH i2c: F0 09 00 [10:33:21]MH_I2C_Read... [10:33:21]Read from MH i2c: F0 09 00 3F 43 00 F5 2D 16 67 A0 18 CA 66 01 [10:33:21]GetLastDocTimeStamp 1729506797 [10:33:21]current date 1729506805 [10:33:21]FM_GetShiftState [10:33:21]SAM_PROTO_GetShiftState [10:33:21]wFMCommunicate request_size=4 [10:33:21]MH_SAM_APDU [10:33:21]CAPDU: 80 13 01 00 [10:33:21]Write to MH i2c: E2 08 00 40 43 80 13 01 00 00 00 00 00 00 [10:33:21]Write i2c OK [10:33:21]MH_I2C_Read... [10:33:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:33:21]Read from MH i2c: E2 [10:33:21]MH_I2C_Read... [10:33:21]Read from MH i2c: E2 0E 00 [10:33:21]MH_I2C_Read... [10:33:21]Read from MH i2c: E2 0E 00 40 43 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 5F [10:33:21]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [10:33:21]wFMCommunicate OK [10:33:21]SAM_PROTO_GetShiftState done [10:33:21]FM_GetShiftState done [10:33:21]opened in 1729469754 [10:33:21]opened+sec_in_day 1729556154 [10:33:21]quantity*price = 0 [10:33:21]sum+1 = 1 [10:33:21]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 126 21.10.2024 10:33 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Талоны: ТК ГПНА Online 30118725 ФМ: 0000000000965340 ФД: 187662 ФПД: 137768154850936 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T103325&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187662&fm=137768154850936&tin=02508201610067®Number=0000000000100030&sum=0 [10:33:22]StoreToDocumentArchive [10:33:22]shift 460 fd 187662 [10:33:22]save to /storage/0460/doc_00187662 [10:33:22]save last doc name /storage/0460/doc_00187662 to /storage/kkm_last_doc_name [10:33:22]save OK [10:33:22]Clear old archive folders... [10:33:22]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:33:22]tlvbuf is B6F0C350 [10:33:22]SAM_PROTO_ClearQueue [10:33:22]wFMCommunicate request_size=4 [10:33:22]MH_SAM_APDU [10:33:22]CAPDU: 80 09 00 00 [10:33:22]Write to MH i2c: E2 08 00 4D 43 80 09 00 00 00 00 00 00 02 [10:33:22]Write i2c OK [10:33:22]MH_I2C_Read... [10:33:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:33:22]Read from MH i2c: E2 [10:33:22]MH_I2C_Read... [10:33:22]Read from MH i2c: E2 03 00 [10:33:22]MH_I2C_Read... [10:33:22]Read from MH i2c: E2 03 00 4D 43 00 90 00 04 [10:33:22]RAPDU: 90 00 [10:33:22]wFMCommunicate OK [10:33:22]SAM_PROTO_ClearQueue done [10:33:22]KKMCreateOFDPacket [10:33:22]OFDProtocolAddRootSTLVToBuf [10:33:22]FM_MakeSignedData [10:33:22]FM_MakeSignedData [10:33:22]SAM_PROTO_SignData [10:33:22]wFMCommunicate request_size=4 [10:33:22]MH_SAM_APDU [10:33:22]CAPDU: 80 0D 01 02 [10:33:22]Write to MH i2c: E2 08 00 4E 43 80 0D 01 02 00 00 00 00 0A [10:33:22]Write i2c OK [10:33:22]MH_I2C_Read... [10:33:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:33:22]Read from MH i2c: E2 [10:33:22]MH_I2C_Read... [10:33:22]Read from MH i2c: E2 03 00 [10:33:22]MH_I2C_Read... [10:33:22]Read from MH i2c: E2 03 00 4E 43 00 90 00 05 [10:33:22]RAPDU: 90 00 [10:33:22]wFMCommunicate OK [10:33:22]wFMCommunicate request_size=255 [10:33:22]MH_SAM_APDU [10:33:22]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 86 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7E 00 00 00 F4 03 04 00 F5 2D 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 0E DD 02 00 35 04 06 00 7D 4C A5 EE [10:33:22]Write to MH i2c: E2 02 01 4F 43 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 86 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7E 00 00 00 F4 03 04 00 F5 2D 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 0E DD 02 00 35 04 06 00 7D 4C A5 EE 00 00 A7 [10:33:22]Write i2c OK [10:33:22]MH_I2C_Read... [10:33:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:33:23]Read from MH i2c: E2 [10:33:23]MH_I2C_Read... [10:33:23]Read from MH i2c: E2 03 00 [10:33:23]MH_I2C_Read... [10:33:23]Read from MH i2c: E2 03 00 4F 43 00 90 00 06 [10:33:23]RAPDU: 90 00 [10:33:23]wFMCommunicate OK [10:33:23]wFMCommunicate request_size=7 [10:33:23]MH_SAM_APDU [10:33:23]CAPDU: 80 0D 02 02 02 66 78 [10:33:23]Write to MH i2c: E2 0A 00 50 43 80 0D 02 02 02 00 66 78 00 00 EF [10:33:23]Write i2c OK [10:33:23]MH_I2C_Read... [10:33:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:33:23]Read from MH i2c: E2 [10:33:23]MH_I2C_Read... [10:33:23]Read from MH i2c: E2 03 00 [10:33:23]MH_I2C_Read... [10:33:23]Read from MH i2c: E2 03 00 50 43 00 90 00 07 [10:33:23]RAPDU: 90 00 [10:33:23]wFMCommunicate OK [10:33:23]wFMCommunicate request_size=4 [10:33:23]MH_SAM_APDU [10:33:23]CAPDU: 80 0D 03 02 [10:33:23]Write to MH i2c: E2 08 00 51 43 80 0D 03 02 00 00 00 00 0F [10:33:23]Write i2c OK [10:33:23]MH_I2C_Read... [10:33:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:33:23]Read from MH i2c: E2 [10:33:23]MH_I2C_Read... [10:33:23]Read from MH i2c: E2 0B 00 [10:33:23]MH_I2C_Read... [10:33:23]Read from MH i2c: E2 0B 00 51 43 00 61 EA E0 BB 3C 84 32 FD 90 00 E5 [10:33:23]RAPDU: 61 EA E0 BB 3C 84 32 FD 90 00 [10:33:23]wFMCommunicate OK [10:33:23]SAM_PROTO_SignData done [10:33:23]FM_MakeSignedData done [10:33:23]CreateOFDProtocolMessage [10:33:23]wFMCommunicate request_size=4 [10:33:23]MH_SAM_APDU [10:33:23]CAPDU: 80 11 00 00 [10:33:23]Write to MH i2c: E2 08 00 52 43 80 11 00 00 00 00 00 00 0F [10:33:23]Write i2c OK [10:33:23]MH_I2C_Read... [10:33:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:33:23]Read from MH i2c: E2 [10:33:23]MH_I2C_Read... [10:33:23]Read from MH i2c: E2 17 00 [10:33:23]MH_I2C_Read... [10:33:23]Read from MH i2c: E2 17 00 52 43 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 5D [10:33:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [10:33:23]wFMCommunicate OK [10:33:23]CreateOFDProtocolMessage done [10:33:23]OFDSenderStorePacket 187662 [10:33:23]StoreOFDPacket docnum=187662 [10:33:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 D9 96 04 01 13 0F 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 86 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7E 00 00 00 F4 03 04 00 F5 2D 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 0E DD 02 00 35 04 06 00 7D 4C A5 EE 66 78 61 EA E0 BB 3C 84 32 FD [10:33:23]CheckFolder [10:33:23]dirname=/storage/ofd_packets [10:33:23]CheckFolder done [10:33:23]ProducePacketName [10:33:23]name=ofd_packets/00187662 [10:33:23]NVStorageSaveData ofd_packets/00187662 [10:33:23]File name is /storage/ofd_packets/00187662 [10:33:23]Write 298 bytes [10:33:23]NVStorageSaveData done [10:33:23]OFDSenderStorePacket done [10:33:23]KKMCreateOFDPacket done [10:33:23]NVStorageSaveData kkm_last_timestamp [10:33:23]File name is /storage/kkm_last_timestamp [10:33:23]Write 4 bytes [10:33:23]NVStorageSaveData done [10:33:23]ExternCall_PrintAddStr [10:33:23]wPrintStart [10:33:23]Write to MH i2c: 01 00 00 53 43 96 [10:33:23]Write i2c OK [10:33:23]MH_I2C_Read... [10:33:23]Read from MH i2c: 01 [10:33:23]MH_I2C_Read... [10:33:23]Read from MH i2c: 01 07 00 [10:33:23]MH_I2C_Read... [10:33:23]Read from MH i2c: 01 07 00 53 43 00 00 00 00 00 FF 0F AB [10:33:23]RasterBufferAndPrint [10:33:23]line Счет N : (1)209709 [10:33:23]line ИНН: 02508201610067 [10:33:23]line Контрольно-Кассовый Чек [10:33:23]line ПРОДАЖА [10:33:23]line ТРК (МРК, ГНК) : 51 [10:33:23]line Товар: 2710194210 [10:33:23]line ДТ-К-5 [10:33:23]line 100.000 * 0.00 [10:33:23]line = 0.00 [10:33:23]line НДС 12% НСП 1% [10:33:23]line > о реализуемом товаре [10:33:23]line ИТОГО: 0.00 [10:33:23]line НСП 1% : 0.00 [10:33:23]line НДС 12% : 0.00 [10:33:23]line Наличными: 0.00 [10:33:23]line Безнал.: 0.00 [10:33:23]line Место: АЗС № 86 "Партнер Нефть" [10:33:23]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [10:33:23]line СНО: Общий режим [10:33:23]line Чек 126 21.10.2024 10:33 [10:33:23]line Смена: 460 ФФД: 1.0 [10:33:23]line ЗНМ: 0300000155 [10:33:23]line РНМ: 0000000000100030 [10:33:23]line Версия ККМ: 001 [10:33:23]line Талоны: ТК ГПНА Online [10:33:23]line 30118725 [10:33:23]line ФМ: 0000000000965340 [10:33:23]line ФД: 187662 [10:33:23]line ФПД: 137768154850936 [10:33:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T103325&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187662&fm=137768154850936&tin=02508201610067®Number=0000000000100030&sum=0 [10:33:23]written 0, free lines is 4095 [10:33:23]OFD Sender: Processing packet 187662 [packets to send 1062, broken 1061] [10:33:23]ProducePacketName [10:33:23]name=ofd_packets/00187662 [10:33:23]OFD Sender: To server: pG, [10:33:23]CommunicateWithHost lk.salyk.kg:30040 [10:33:23]ConnectInit lk.salyk.kg [10:33:23]Connected sock=10 [10:33:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 D9 96 04 01 13 0F 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 86 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7E 00 00 00 F4 03 04 00 F5 2D 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 0E DD 02 00 35 04 06 00 7D 4C A5 EE 66 78 61 EA E0 BB 3C 84 32 FD [10:33:23]Write to MH i2c: 01 00 00 7D 43 C0 [10:33:23]Write i2c OK [10:33:23]MH_I2C_Read... [10:33:23]Read from MH i2c: 01 [10:33:23]MH_I2C_Read... [10:33:23]Read from MH i2c: 01 07 00 [10:33:23]MH_I2C_Read... [10:33:23]Read from MH i2c: 01 07 00 7D 43 00 00 00 00 00 A3 0C 76 [10:33:23]RasterBufferAndPrint [10:33:23]line [10:33:23]line [10:33:23]line [10:33:23]line [10:33:23]line [10:33:23]written 0, free lines is 3240 [10:33:23]MH_Cut [10:33:23]Write to MH i2c: D1 01 00 84 43 01 99 [10:33:23]Write i2c OK [10:33:23]MH_I2C_Read... [10:33:23]Read from MH i2c: D1 [10:33:23]MH_I2C_Read... [10:33:23]Read from MH i2c: D1 01 00 [10:33:23]MH_I2C_Read... [10:33:23]Read from MH i2c: D1 01 00 84 43 00 98 [10:33:23]Write to MH i2c: 01 00 00 85 43 C8 [10:33:23]Write i2c OK [10:33:23]MH_I2C_Read... [10:33:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 3D 53 47 00 A4 02 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 0E DD 02 00 F4 03 04 00 E5 D7 15 67 B6 04 01 00 00 A6 A4 31 7D 1E 93 B9 A2 [10:33:24]CommunicateWithHost err = 0 [10:33:24]CheckOFDResponse [10:33:24]1017 (14) - 77093643461234 [10:33:24]1041 (16) - 0000000000965340 [10:33:24]1040 (4) - 187662 [10:33:24]1012 (4) - 21.10.2024 04:26 [10:33:24]1206 (1) - 0 [10:33:24]OFD Sender: Remove packet 187662 [10:33:24]ProducePacketName [10:33:24]name=ofd_packets/00187662 [10:33:24]NVStorageDeleteData [10:33:24]OFD Sender: No OFD packet to send [10:33:24]*** Cut start [10:33:24]*** Partial cut [10:33:24]*** CUTSNS_PIN = 1 [10:33:24]*** CUTSNS_PIN = 0 [10:33:25]*** Brake cut motor [10:33:25]Read from MH i2c: 01 [10:33:25]MH_I2C_Read... [10:33:25]*** Stop cut motor [10:33:25]*** Cut end [10:33:25]Read from MH i2c: 01 07 00 [10:33:25]MH_I2C_Read... [10:33:25]Read from MH i2c: 01 07 00 85 43 00 00 00 00 00 FF 0F DD [10:33:25]process_action close_receipt done [10:33:25]requested_data is exist [10:33:25]produce_requested_data [10:33:25]requested_item fm.sn is exist - process it [10:33:25]wFMCommunicate request_size=4 [10:33:25]MH_SAM_APDU [10:33:25]CAPDU: 80 11 00 00 [10:33:25]Write to MH i2c: E2 08 00 86 43 80 11 00 00 00 00 00 00 43 [10:33:25]Write i2c OK [10:33:25]MH_I2C_Read... [10:33:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:33:25]Read from MH i2c: E2 [10:33:25]MH_I2C_Read... [10:33:25]Read from MH i2c: E2 17 00 [10:33:25]MH_I2C_Read... [10:33:25]Read from MH i2c: E2 17 00 86 43 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 91 [10:33:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [10:33:25]wFMCommunicate OK [10:33:25]requested_item fd.num is exist - process it [10:33:25]SAM_PROTO_GetFieldsCounters [10:33:25]wFMCommunicate request_size=4 [10:33:25]MH_SAM_APDU [10:33:25]CAPDU: 80 13 00 00 [10:33:25]Write to MH i2c: E2 08 00 87 43 80 13 00 00 00 00 00 00 46 [10:33:25]Write i2c OK [10:33:25]MH_I2C_Read... [10:33:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:33:25]Read from MH i2c: E2 [10:33:25]MH_I2C_Read... [10:33:25]Read from MH i2c: E2 62 00 [10:33:25]MH_I2C_Read... [10:33:25]Read from MH i2c: E2 62 00 87 43 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 0E DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 7E 00 00 00 5E 04 04 00 7E 00 00 00 57 04 04 00 7F 00 00 00 19 04 04 00 00 00 00 00 90 00 81 [10:33:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 0E DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 7E 00 00 00 5E 04 04 00 7E 00 00 00 57 04 04 00 7F 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:33:25]wFMCommunicate OK [10:33:25]SAM_PROTO_GetFieldsCounters done [10:33:25]requested_item shift.num is exist - process it [10:33:25]requested_item shift.opened is exist - process it [10:33:25]req_shift_opened [10:33:25]FM_GetShiftState [10:33:25]SAM_PROTO_GetShiftState [10:33:25]wFMCommunicate request_size=4 [10:33:25]MH_SAM_APDU [10:33:25]CAPDU: 80 13 01 00 [10:33:25]Write to MH i2c: E2 08 00 88 43 80 13 01 00 00 00 00 00 48 [10:33:25]Write i2c OK [10:33:25]MH_I2C_Read... [10:33:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:33:25]Read from MH i2c: E2 [10:33:25]MH_I2C_Read... [10:33:25]Read from MH i2c: E2 0E 00 [10:33:25]MH_I2C_Read... [10:33:25]Read from MH i2c: E2 0E 00 88 43 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 A7 [10:33:25]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [10:33:25]wFMCommunicate OK [10:33:25]SAM_PROTO_GetShiftState done [10:33:25]FM_GetShiftState done [10:33:25]req_shift_opened done [10:33:25]requested_item shift.open_date is exist - process it [10:33:25]req_shift_open_date [10:33:25]req_shift_open_date done [10:33:25]produce_requested_data done [10:33:25]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187662,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [10:33:25]process_action_free close_receipt [10:33:25]json_value_free [10:33:25]json_value_free done [10:33:25]process_json_proto returns [10:33:25]Send response to host [10:33:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187662,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [10:33:25]free response buf [10:33:25]execute_script done [10:33:25]execute_script returns [10:33:25]free content buf [10:33:25]Sock 8.Close socket [10:33:25]Sock 8.Thread stoped [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:45]OFD Sender: No OFD packet to send [10:34:50]OFD Sender: No OFD packet to send [10:34:55]OFD Sender: No OFD packet to send [10:35:00]OFD Sender: No OFD packet to send [10:35:05]OFD Sender: No OFD packet to send [10:35:10]OFD Sender: No OFD packet to send [10:35:15]OFD Sender: No OFD packet to send [10:35:20]OFD Sender: No OFD packet to send [10:35:25]OFD Sender: No OFD packet to send [10:35:30]OFD Sender: No OFD packet to send [10:35:35]OFD Sender: No OFD packet to send [10:35:40]OFD Sender: No OFD packet to send [10:35:45]OFD Sender: No OFD packet to send [10:35:50]OFD Sender: No OFD packet to send [10:35:54]accept exits with 9 [10:35:54]New connection [10:35:54]New thread 3067014500 created [10:35:54]Thread 3067157860 joined [10:35:54]Waiting for new connection... [10:35:54] Sock 9.Parse request [10:35:54]Sock 9.Check first char [10:35:54]Sock 9.First char is OK [10:35:54]request: POST /json_proto HTTP/1.0 [10:35:54]Method: POST [10:35:54]URL: /json_proto [10:35:54]Method is POST - this is cgi request [10:35:54]url: /json_proto [10:35:54]query_string will be loaded in cgi processing [10:35:54]execute_cgi json_proto POST (null) [10:35:54]execute_cgi path=json_proto method=POST [10:35:54]POST find Content-Length [10:35:54]Host: 172.17.42.131:8080 [10:35:54]Content-Length: 678 [10:35:54]Content-Type: application/json [10:35:54] [10:35:54]POST finish read [10:35:54]Found Content-Length = 678 [10:35:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209715", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:35:54]execute_script... [10:35:54]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209715", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:35:54]POST & json_proto [10:35:54]process_json_proto [10:35:54]json parsed OK: [10:35:54]protocol is kg_v1.0 [10:35:54]action value=close_receipt [10:35:54]process_action close_receipt [10:35:54]cmd_close_receipt [10:35:54]MH_GetDate [10:35:54]Write to MH i2c: F0 00 00 89 43 BB [10:35:54]Write i2c OK [10:35:54]MH_I2C_Read... [10:35:54]Read from MH i2c: F0 [10:35:54]MH_I2C_Read... [10:35:54]Read from MH i2c: F0 09 00 [10:35:54]MH_I2C_Read... [10:35:54]Read from MH i2c: F0 09 00 89 43 00 8E 2E 16 67 A0 18 CA 66 E5 [10:35:54]GetLastDocTimeStamp 1729506805 [10:35:54]current date 1729506958 [10:35:54]FM_GetShiftState [10:35:54]SAM_PROTO_GetShiftState [10:35:54]wFMCommunicate request_size=4 [10:35:54]MH_SAM_APDU [10:35:54]CAPDU: 80 13 01 00 [10:35:54]Write to MH i2c: E2 08 00 8A 43 80 13 01 00 00 00 00 00 4A [10:35:54]Write i2c OK [10:35:54]MH_I2C_Read... [10:35:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:35:54]Read from MH i2c: E2 [10:35:54]MH_I2C_Read... [10:35:54]Read from MH i2c: E2 0E 00 [10:35:54]MH_I2C_Read... [10:35:54]Read from MH i2c: E2 0E 00 8A 43 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 A9 [10:35:54]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [10:35:54]wFMCommunicate OK [10:35:54]SAM_PROTO_GetShiftState done [10:35:54]FM_GetShiftState done [10:35:54]opened in 1729469754 [10:35:54]opened+sec_in_day 1729556154 [10:35:54]quantity*price = 70044 [10:35:54]sum+1 = 70045 [10:35:54]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 127 21.10.2024 10:35 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 187663 ФПД: 256731779234947 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T103558&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187663&fm=256731779234947&tin=02508201610067®Number=0000000000100030&sum=70000 [10:35:55]StoreToDocumentArchive [10:35:55]shift 460 fd 187663 [10:35:55]save to /storage/0460/doc_00187663 [10:35:55]save last doc name /storage/0460/doc_00187663 to /storage/kkm_last_doc_name [10:35:55]save OK [10:35:55]Clear old archive folders... [10:35:55]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:35:55]tlvbuf is 0118D780 [10:35:55]SAM_PROTO_ClearQueue [10:35:55]wFMCommunicate request_size=4 [10:35:55]MH_SAM_APDU [10:35:55]CAPDU: 80 09 00 00 [10:35:55]Write to MH i2c: E2 08 00 97 43 80 09 00 00 00 00 00 00 4C [10:35:55]Write i2c OK [10:35:55]MH_I2C_Read... [10:35:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:35:55]Read from MH i2c: E2 [10:35:55]MH_I2C_Read... [10:35:55]Read from MH i2c: E2 03 00 [10:35:55]MH_I2C_Read... [10:35:55]Read from MH i2c: E2 03 00 97 43 00 90 00 4E [10:35:55]RAPDU: 90 00 [10:35:55]wFMCommunicate OK [10:35:55]SAM_PROTO_ClearQueue done [10:35:55]KKMCreateOFDPacket [10:35:55]OFDProtocolAddRootSTLVToBuf [10:35:55]FM_MakeSignedData [10:35:55]FM_MakeSignedData [10:35:55]SAM_PROTO_SignData [10:35:55]wFMCommunicate request_size=4 [10:35:55]MH_SAM_APDU [10:35:55]CAPDU: 80 0D 01 02 [10:35:55]Write to MH i2c: E2 08 00 98 43 80 0D 01 02 00 00 00 00 54 [10:35:55]Write i2c OK [10:35:55]MH_I2C_Read... [10:35:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:35:55]Read from MH i2c: E2 [10:35:55]MH_I2C_Read... [10:35:55]Read from MH i2c: E2 03 00 [10:35:55]MH_I2C_Read... [10:35:55]Read from MH i2c: E2 03 00 98 43 00 90 00 4F [10:35:55]RAPDU: 90 00 [10:35:55]wFMCommunicate OK [10:35:55]wFMCommunicate request_size=255 [10:35:55]MH_SAM_APDU [10:35: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 33 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 7F 00 00 00 F4 03 04 00 8E 2E 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 0F DD 02 00 35 04 06 00 E9 [10:35:55]Write to MH i2c: E2 02 01 99 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 33 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 7F 00 00 00 F4 03 04 00 8E 2E 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 0F DD 02 00 35 04 06 00 E9 00 00 33 [10:35:55]Write i2c OK [10:35:55]MH_I2C_Read... [10:35:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:35:55]Read from MH i2c: E2 [10:35:55]MH_I2C_Read... [10:35:55]Read from MH i2c: E2 03 00 [10:35:55]MH_I2C_Read... [10:35:55]Read from MH i2c: E2 03 00 99 43 00 90 00 50 [10:35:55]RAPDU: 90 00 [10:35:55]wFMCommunicate OK [10:35:55]wFMCommunicate request_size=10 [10:35:55]MH_SAM_APDU [10:35:55]CAPDU: 80 0D 02 02 05 7F 06 80 FC 83 [10:35:55]Write to MH i2c: E2 0D 00 9A 43 80 0D 02 02 05 00 7F 06 80 FC 83 00 00 E5 [10:35:55]Write i2c OK [10:35:55]MH_I2C_Read... [10:35:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:35:56]Read from MH i2c: E2 [10:35:56]MH_I2C_Read... [10:35:56]Read from MH i2c: E2 03 00 [10:35:56]MH_I2C_Read... [10:35:56]Read from MH i2c: E2 03 00 9A 43 00 90 00 51 [10:35:56]RAPDU: 90 00 [10:35:56]wFMCommunicate OK [10:35:56]wFMCommunicate request_size=4 [10:35:56]MH_SAM_APDU [10:35:56]CAPDU: 80 0D 03 02 [10:35:56]Write to MH i2c: E2 08 00 9B 43 80 0D 03 02 00 00 00 00 59 [10:35:56]Write i2c OK [10:35:56]MH_I2C_Read... [10:35:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:35:56]Read from MH i2c: E2 [10:35:56]MH_I2C_Read... [10:35:56]Read from MH i2c: E2 0B 00 [10:35:56]MH_I2C_Read... [10:35:56]Read from MH i2c: E2 0B 00 9B 43 00 02 79 99 85 22 B0 91 53 90 00 A9 [10:35:56]RAPDU: 02 79 99 85 22 B0 91 53 90 00 [10:35:56]wFMCommunicate OK [10:35:56]SAM_PROTO_SignData done [10:35:56]FM_MakeSignedData done [10:35:56]CreateOFDProtocolMessage [10:35:56]wFMCommunicate request_size=4 [10:35:56]MH_SAM_APDU [10:35:56]CAPDU: 80 11 00 00 [10:35:56]Write to MH i2c: E2 08 00 9C 43 80 11 00 00 00 00 00 00 59 [10:35:56]Write i2c OK [10:35:56]MH_I2C_Read... [10:35:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:35:56]Read from MH i2c: E2 [10:35:56]MH_I2C_Read... [10:35:56]Read from MH i2c: E2 17 00 [10:35:56]MH_I2C_Read... [10:35:56]Read from MH i2c: E2 17 00 9C 43 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 A7 [10:35:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [10:35:56]wFMCommunicate OK [10:35:56]CreateOFDProtocolMessage done [10:35:56]OFDSenderStorePacket 187663 [10:35:56]StoreOFDPacket docnum=187663 [10:35:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 2E E6 07 01 B1 92 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 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 7F 00 00 00 F4 03 04 00 8E 2E 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 0F DD 02 00 35 04 06 00 E9 7F 06 80 FC 83 02 79 99 85 22 B0 91 53 [10:35:56]CheckFolder [10:35:56]dirname=/storage/ofd_packets [10:35:56]CheckFolder done [10:35:56]ProducePacketName [10:35:56]name=ofd_packets/00187663 [10:35:56]NVStorageSaveData ofd_packets/00187663 [10:35:56]File name is /storage/ofd_packets/00187663 [10:35:56]Write 301 bytes [10:35:56]NVStorageSaveData done [10:35:56]OFDSenderStorePacket done [10:35:56]KKMCreateOFDPacket done [10:35:56]NVStorageSaveData kkm_last_timestamp [10:35:56]File name is /storage/kkm_last_timestamp [10:35:56]Write 4 bytes [10:35:56]NVStorageSaveData done [10:35:56]ExternCall_PrintAddStr [10:35:56]wPrintStart [10:35:56]Write to MH i2c: 01 00 00 9D 43 E0 [10:35:56]Write i2c OK [10:35:56]MH_I2C_Read... [10:35:56]Read from MH i2c: 01 [10:35:56]MH_I2C_Read... [10:35:56]Read from MH i2c: 01 07 00 [10:35:56]MH_I2C_Read... [10:35:56]Read from MH i2c: 01 07 00 9D 43 00 00 00 00 00 FF 0F F5 [10:35:56]RasterBufferAndPrint [10:35:56]line Счет N : (1)209715 [10:35:56]line ИНН: 02508201610067 [10:35:56]line Контрольно-Кассовый Чек [10:35:56]line ПРОДАЖА [10:35:56]line ТРК (МРК, ГНК) : 22 [10:35:56]line Товар: 2710124130 [10:35:56]line Аи-92-К-3 [10:35:56]line 10.470 * 66.90 [10:35:56]line = 700.44 [10:35:56]line НДС 12% НСП 1% [10:35:56]line > о реализуемом товаре [10:35:56]line ОКРУГЛЕНИЕ: -0.44 [10:35:56]line ИТОГО: 700.00 [10:35:56]line Внесено: 700.00 [10:35:56]line СДАЧА: 0.00 [10:35:56]line НСП 1% : 6.20 [10:35:56]line НДС 12% : 74.38 [10:35:56]line Наличными: 700.00 [10:35:56]line Безнал.: 0.00 [10:35:56]line Место: АЗС № 86 "Партнер Нефть" [10:35:56]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [10:35:56]line СНО: Общий режим [10:35:56]line Чек 127 21.10.2024 10:35 [10:35:56]line Смена: 460 ФФД: 1.0 [10:35:56]line ЗНМ: 0300000155 [10:35:56]line РНМ: 0000000000100030 [10:35:56]line Версия ККМ: 001 [10:35:56]line ФМ: 0000000000965340 [10:35:56]line ФД: 187663 [10:35:56]line ФПД: 256731779234947 [10:35:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T103558&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187663&fm=256731779234947&tin=02508201610067®Number=0000000000100030&sum=70000 [10:35:56]OFD Sender: Processing packet 187663 [packets to send 1062, broken 1061] [10:35:56]ProducePacketName [10:35:56]name=ofd_packets/00187663 [10:35:56]OFD Sender: To server: pG, [10:35:56]CommunicateWithHost lk.salyk.kg:30040 [10:35:56]ConnectInit lk.salyk.kg [10:35:56]written 0, free lines is 4095 [10:35:56]Connected sock=10 [10:35:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 2E E6 07 01 B1 92 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 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 7F 00 00 00 F4 03 04 00 8E 2E 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 0F DD 02 00 35 04 06 00 E9 7F 06 80 FC 83 02 79 99 85 22 B0 91 53 [10:35:56]Write to MH i2c: 01 00 00 C8 43 0B [10:35:56]Write i2c OK [10:35:56]MH_I2C_Read... [10:35:56]Read from MH i2c: 01 [10:35:56]MH_I2C_Read... [10:35:56]Read from MH i2c: 01 07 00 [10:35:56]MH_I2C_Read... [10:35:56]Read from MH i2c: 01 07 00 C8 43 00 00 00 00 00 7E 0C 9C [10:35:56]RasterBufferAndPrint [10:35:56]line [10:35:56]line [10:35:56]line [10:35:56]line [10:35:56]line [10:35:56]written 0, free lines is 3202 [10:35:56]MH_Cut [10:35:56]Write to MH i2c: D1 01 00 CF 43 01 E4 [10:35:56]Write i2c OK [10:35:56]MH_I2C_Read... [10:35:56]Read from MH i2c: D1 [10:35:56]MH_I2C_Read... [10:35:56]Read from MH i2c: D1 01 00 [10:35:56]MH_I2C_Read... [10:35:56]Read from MH i2c: D1 01 00 CF 43 00 E3 [10:35:56]Write to MH i2c: 01 00 00 D0 43 13 [10:35:56]Write i2c OK [10:35:56]MH_I2C_Read... [10:35:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 AF CB 47 00 CE 6F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 0F DD 02 00 F4 03 04 00 7E D8 15 67 B6 04 01 00 00 84 2C E4 2C 26 1A 32 1D [10:35:57]CommunicateWithHost err = 0 [10:35:57]CheckOFDResponse [10:35:57]1017 (14) - 77093643461234 [10:35:57]1041 (16) - 0000000000965340 [10:35:57]1040 (4) - 187663 [10:35:57]1012 (4) - 21.10.2024 04:28 [10:35:57]1206 (1) - 0 [10:35:57]OFD Sender: Remove packet 187663 [10:35:57]ProducePacketName [10:35:57]name=ofd_packets/00187663 [10:35:57]NVStorageDeleteData [10:35:57]OFD Sender: No OFD packet to send [10:35:57]*** Cut start [10:35:57]*** Partial cut [10:35:57]*** CUTSNS_PIN = 1 [10:35:57]*** CUTSNS_PIN = 0 [10:35:58]*** Brake cut motor [10:35:58]Read from MH i2c: 01 [10:35:58]MH_I2C_Read... [10:35:58]*** Stop cut motor [10:35:58]*** Cut end [10:35:58]Read from MH i2c: 01 07 00 [10:35:58]MH_I2C_Read... [10:35:58]Read from MH i2c: 01 07 00 D0 43 00 00 00 00 00 FF 0F 28 [10:35:58]process_action close_receipt done [10:35:58]requested_data is exist [10:35:58]produce_requested_data [10:35:58]requested_item fm.sn is exist - process it [10:35:58]wFMCommunicate request_size=4 [10:35:58]MH_SAM_APDU [10:35:58]CAPDU: 80 11 00 00 [10:35:58]Write to MH i2c: E2 08 00 D1 43 80 11 00 00 00 00 00 00 8E [10:35:58]Write i2c OK [10:35:58]MH_I2C_Read... [10:35:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:35:58]Read from MH i2c: E2 [10:35:58]MH_I2C_Read... [10:35:58]Read from MH i2c: E2 17 00 [10:35:58]MH_I2C_Read... [10:35:58]Read from MH i2c: E2 17 00 D1 43 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 DC [10:35:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [10:35:58]wFMCommunicate OK [10:35:58]requested_item fd.num is exist - process it [10:35:58]SAM_PROTO_GetFieldsCounters [10:35:58]wFMCommunicate request_size=4 [10:35:58]MH_SAM_APDU [10:35:58]CAPDU: 80 13 00 00 [10:35:58]Write to MH i2c: E2 08 00 D2 43 80 13 00 00 00 00 00 00 91 [10:35:58]Write i2c OK [10:35:58]MH_I2C_Read... [10:35:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:35:58]Read from MH i2c: E2 [10:35:58]MH_I2C_Read... [10:35:58]Read from MH i2c: E2 62 00 [10:35:58]MH_I2C_Read... [10:35:58]Read from MH i2c: E2 62 00 D2 43 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 0F DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 7F 00 00 00 5E 04 04 00 7F 00 00 00 57 04 04 00 80 00 00 00 19 04 04 00 00 00 00 00 90 00 D0 [10:35:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 0F DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 7F 00 00 00 5E 04 04 00 7F 00 00 00 57 04 04 00 80 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:35:58]wFMCommunicate OK [10:35:58]SAM_PROTO_GetFieldsCounters done [10:35:58]requested_item shift.num is exist - process it [10:35:58]requested_item shift.opened is exist - process it [10:35:58]req_shift_opened [10:35:58]FM_GetShiftState [10:35:58]SAM_PROTO_GetShiftState [10:35:58]wFMCommunicate request_size=4 [10:35:58]MH_SAM_APDU [10:35:58]CAPDU: 80 13 01 00 [10:35:58]Write to MH i2c: E2 08 00 D3 43 80 13 01 00 00 00 00 00 93 [10:35:58]Write i2c OK [10:35:58]MH_I2C_Read... [10:35:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:35:58]Read from MH i2c: E2 [10:35:58]MH_I2C_Read... [10:35:58]Read from MH i2c: E2 0E 00 [10:35:58]MH_I2C_Read... [10:35:58]Read from MH i2c: E2 0E 00 D3 43 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 F2 [10:35:58]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [10:35:58]wFMCommunicate OK [10:35:58]SAM_PROTO_GetShiftState done [10:35:58]FM_GetShiftState done [10:35:58]req_shift_opened done [10:35:58]requested_item shift.open_date is exist - process it [10:35:58]req_shift_open_date [10:35:58]req_shift_open_date done [10:35:58]produce_requested_data done [10:35:58]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187663,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [10:35:58]process_action_free close_receipt [10:35:58]json_value_free [10:35:58]json_value_free done [10:35:58]process_json_proto returns [10:35:58]Send response to host [10:35:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187663,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [10:35:58]free response buf [10:35:58]execute_script done [10:35:58]execute_script returns [10:35:58]free content buf [10:35:58]Sock 9.Close socket [10:35:58]Sock 9.Thread stoped [10:36:02]OFD Sender: No OFD packet to send [10:36:07]OFD Sender: No OFD packet to send [10:36:12]OFD Sender: No OFD packet to send [10:36:17]OFD Sender: No OFD packet to send [10:36:22]OFD Sender: No OFD packet to send [10:36:27]OFD Sender: No OFD packet to send [10:36:32]OFD Sender: No OFD packet to send [10:36:37]OFD Sender: No OFD packet to send [10:36:42]OFD Sender: No OFD packet to send [10:36:47]OFD Sender: No OFD packet to send [10:36:52]OFD Sender: No OFD packet to send [10:36:57]OFD Sender: No OFD packet to send [10:37:02]OFD Sender: No OFD packet to send [10:37:07]OFD Sender: No OFD packet to send [10:37:12]OFD Sender: No OFD packet to send [10:37:17]OFD Sender: No OFD packet to send [10:37:22]OFD Sender: No OFD packet to send [10:37:27]OFD Sender: No OFD packet to send [10:37:33]OFD Sender: No OFD packet to send [10:37:38]OFD Sender: No OFD packet to send [10:37:43]OFD Sender: No OFD packet to send [10:37:48]OFD Sender: No OFD packet to send [10:37:53]OFD Sender: No OFD packet to send [10:37:58]OFD Sender: No OFD packet to send [10:38:03]OFD Sender: No OFD packet to send [10:38:08]OFD Sender: No OFD packet to send [10:38:13]OFD Sender: No OFD packet to send [10:38:18]OFD Sender: No OFD packet to send [10:38:23]OFD Sender: No OFD packet to send [10:38:28]OFD Sender: No OFD packet to send [10:38:33]OFD Sender: No OFD packet to send [10:38:38]OFD Sender: No OFD packet to send [10:38:43]OFD Sender: No OFD packet to send [10:38:48]OFD Sender: No OFD packet to send [10:38:49]accept exits with 8 [10:38:49]New connection [10:38:49]New thread 3067157860 created [10:38:49]Thread 3067014500 joined [10:38:49]Waiting for new connection... [10:38:49] Sock 8.Parse request [10:38:49]Sock 8.Check first char [10:38:49]Sock 8.First char is OK [10:38:49]request: POST /json_proto HTTP/1.0 [10:38:49]Method: POST [10:38:49]URL: /json_proto [10:38:49]Method is POST - this is cgi request [10:38:49]url: /json_proto [10:38:49]query_string will be loaded in cgi processing [10:38:49]execute_cgi json_proto POST (null) [10:38:49]execute_cgi path=json_proto method=POST [10:38:49]POST find Content-Length [10:38:49]Host: 172.17.42.131:8080 [10:38:49]Content-Length: 677 [10:38:49]Content-Type: application/json [10:38:49] [10:38:49]POST finish read [10:38:49]Found Content-Length = 677 [10:38:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209716", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 5.690, "sum" : 380.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 380.00, "total" : 380.00, "payments": [ { "type": 0, "sum" : 380.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:38:49]execute_script... [10:38: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)209716", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 5.690, "sum" : 380.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 380.00, "total" : 380.00, "payments": [ { "type": 0, "sum" : 380.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:38:49]POST & json_proto [10:38:49]process_json_proto [10:38:49]json parsed OK: [10:38:49]protocol is kg_v1.0 [10:38:49]action value=close_receipt [10:38:49]process_action close_receipt [10:38:49]cmd_close_receipt [10:38:49]MH_GetDate [10:38:49]Write to MH i2c: F0 00 00 D4 43 06 [10:38:49]Write i2c OK [10:38:49]MH_I2C_Read... [10:38:49]Read from MH i2c: F0 [10:38:49]MH_I2C_Read... [10:38:49]Read from MH i2c: F0 09 00 [10:38:49]MH_I2C_Read... [10:38:49]Read from MH i2c: F0 09 00 D4 43 00 3D 2F 16 67 A0 18 CA 66 E0 [10:38:49]GetLastDocTimeStamp 1729506958 [10:38:49]current date 1729507133 [10:38:49]FM_GetShiftState [10:38:49]SAM_PROTO_GetShiftState [10:38:49]wFMCommunicate request_size=4 [10:38:49]MH_SAM_APDU [10:38:49]CAPDU: 80 13 01 00 [10:38:49]Write to MH i2c: E2 08 00 D5 43 80 13 01 00 00 00 00 00 95 [10:38:49]Write i2c OK [10:38:49]MH_I2C_Read... [10:38:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:38:49]Read from MH i2c: E2 [10:38:49]MH_I2C_Read... [10:38:49]Read from MH i2c: E2 0E 00 [10:38:49]MH_I2C_Read... [10:38:49]Read from MH i2c: E2 0E 00 D5 43 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 F4 [10:38:49]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [10:38:49]wFMCommunicate OK [10:38:49]SAM_PROTO_GetShiftState done [10:38:49]FM_GetShiftState done [10:38:49]opened in 1729469754 [10:38:49]opened+sec_in_day 1729556154 [10:38:49]quantity*price = 38066 [10:38:49]sum+1 = 38067 [10:38:49]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.66 ИТОГО: 380.00 Внесено: 380.00 СДАЧА: 0.00 НСП 1% : 3.37 НДС 12% : 40.42 Наличными: 380.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 128 21.10.2024 10:38 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 187664 ФПД: 267619939069855 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T103853&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187664&fm=267619939069855&tin=02508201610067®Number=0000000000100030&sum=38000 [10:38:50]StoreToDocumentArchive [10:38:50]shift 460 fd 187664 [10:38:50]save to /storage/0460/doc_00187664 [10:38:50]save last doc name /storage/0460/doc_00187664 to /storage/kkm_last_doc_name [10:38:50]save OK [10:38:50]Clear old archive folders... [10:38:50]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:38:50]tlvbuf is 010903F0 [10:38:50]SAM_PROTO_ClearQueue [10:38:50]wFMCommunicate request_size=4 [10:38:50]MH_SAM_APDU [10:38:50]CAPDU: 80 09 00 00 [10:38:50]Write to MH i2c: E2 08 00 E2 43 80 09 00 00 00 00 00 00 97 [10:38:50]Write i2c OK [10:38:50]MH_I2C_Read... [10:38:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:38:50]Read from MH i2c: E2 [10:38:50]MH_I2C_Read... [10:38:50]Read from MH i2c: E2 03 00 [10:38:50]MH_I2C_Read... [10:38:50]Read from MH i2c: E2 03 00 E2 43 00 90 00 99 [10:38:50]RAPDU: 90 00 [10:38:50]wFMCommunicate OK [10:38:50]SAM_PROTO_ClearQueue done [10:38:50]KKMCreateOFDPacket [10:38:50]OFDProtocolAddRootSTLVToBuf [10:38:50]FM_MakeSignedData [10:38:50]FM_MakeSignedData [10:38:50]SAM_PROTO_SignData [10:38:50]wFMCommunicate request_size=4 [10:38:50]MH_SAM_APDU [10:38:50]CAPDU: 80 0D 01 02 [10:38:50]Write to MH i2c: E2 08 00 E3 43 80 0D 01 02 00 00 00 00 9F [10:38:50]Write i2c OK [10:38:50]MH_I2C_Read... [10:38:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:38:50]Read from MH i2c: E2 [10:38:50]MH_I2C_Read... [10:38:50]Read from MH i2c: E2 03 00 [10:38:50]MH_I2C_Read... [10:38:50]Read from MH i2c: E2 03 00 E3 43 00 90 00 9A [10:38:50]RAPDU: 90 00 [10:38:50]wFMCommunicate OK [10:38:50]wFMCommunicate request_size=255 [10:38:50]MH_SAM_APDU [10:38: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 33 FF 03 08 00 03 3A 16 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B2 94 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 94 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 51 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CA 0F 00 00 00 00 07 04 06 00 70 94 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 80 00 00 00 F4 03 04 00 3D 2F 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 10 DD 02 00 35 04 06 00 F3 [10:38:50]Write to MH i2c: E2 02 01 E4 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 33 FF 03 08 00 03 3A 16 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B2 94 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 94 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 51 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CA 0F 00 00 00 00 07 04 06 00 70 94 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 80 00 00 00 F4 03 04 00 3D 2F 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 10 DD 02 00 35 04 06 00 F3 00 00 AA [10:38:50]Write i2c OK [10:38:50]MH_I2C_Read... [10:38:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:38:51]Read from MH i2c: E2 [10:38:51]MH_I2C_Read... [10:38:51]Read from MH i2c: E2 03 00 [10:38:51]MH_I2C_Read... [10:38:51]Read from MH i2c: E2 03 00 E4 43 00 90 00 9B [10:38:51]RAPDU: 90 00 [10:38:51]wFMCommunicate OK [10:38:51]wFMCommunicate request_size=10 [10:38:51]MH_SAM_APDU [10:38:51]CAPDU: 80 0D 02 02 05 66 1F 67 2F 9F [10:38:51]Write to MH i2c: E2 0D 00 E5 43 80 0D 02 02 05 00 66 1F 67 2F 9F 00 00 66 [10:38:51]Write i2c OK [10:38:51]MH_I2C_Read... [10:38:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:38:51]Read from MH i2c: E2 [10:38:51]MH_I2C_Read... [10:38:51]Read from MH i2c: E2 03 00 [10:38:51]MH_I2C_Read... [10:38:51]Read from MH i2c: E2 03 00 E5 43 00 90 00 9C [10:38:51]RAPDU: 90 00 [10:38:51]wFMCommunicate OK [10:38:51]wFMCommunicate request_size=4 [10:38:51]MH_SAM_APDU [10:38:51]CAPDU: 80 0D 03 02 [10:38:51]Write to MH i2c: E2 08 00 E6 43 80 0D 03 02 00 00 00 00 A4 [10:38:51]Write i2c OK [10:38:51]MH_I2C_Read... [10:38:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:38:51]Read from MH i2c: E2 [10:38:51]MH_I2C_Read... [10:38:51]Read from MH i2c: E2 0B 00 [10:38:51]MH_I2C_Read... [10:38:51]Read from MH i2c: E2 0B 00 E6 43 00 E6 39 37 D9 36 9F 28 FA 90 00 CB [10:38:51]RAPDU: E6 39 37 D9 36 9F 28 FA 90 00 [10:38:51]wFMCommunicate OK [10:38:51]SAM_PROTO_SignData done [10:38:51]FM_MakeSignedData done [10:38:51]CreateOFDProtocolMessage [10:38:51]wFMCommunicate request_size=4 [10:38:51]MH_SAM_APDU [10:38:51]CAPDU: 80 11 00 00 [10:38:51]Write to MH i2c: E2 08 00 E7 43 80 11 00 00 00 00 00 00 A4 [10:38:51]Write i2c OK [10:38:51]MH_I2C_Read... [10:38:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:38:51]Read from MH i2c: E2 [10:38:51]MH_I2C_Read... [10:38:51]Read from MH i2c: E2 17 00 [10:38:51]MH_I2C_Read... [10:38:51]Read from MH i2c: E2 17 00 E7 43 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 F2 [10:38:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [10:38:51]wFMCommunicate OK [10:38:51]CreateOFDProtocolMessage done [10:38:51]OFDSenderStorePacket 187664 [10:38:51]StoreOFDPacket docnum=187664 [10:38:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 1C 2B 07 01 50 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 33 FF 03 08 00 03 3A 16 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B2 94 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 94 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 51 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CA 0F 00 00 00 00 07 04 06 00 70 94 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 80 00 00 00 F4 03 04 00 3D 2F 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 10 DD 02 00 35 04 06 00 F3 66 1F 67 2F 9F E6 39 37 D9 36 9F 28 FA [10:38:51]CheckFolder [10:38:51]dirname=/storage/ofd_packets [10:38:51]CheckFolder done [10:38:51]ProducePacketName [10:38:51]name=ofd_packets/00187664 [10:38:51]NVStorageSaveData ofd_packets/00187664 [10:38:51]File name is /storage/ofd_packets/00187664 [10:38:51]Write 301 bytes [10:38:51]NVStorageSaveData done [10:38:51]OFDSenderStorePacket done [10:38:51]KKMCreateOFDPacket done [10:38:51]NVStorageSaveData kkm_last_timestamp [10:38:51]File name is /storage/kkm_last_timestamp [10:38:51]Write 4 bytes [10:38:51]NVStorageSaveData done [10:38:51]ExternCall_PrintAddStr [10:38:51]wPrintStart [10:38:51]Write to MH i2c: 01 00 00 E8 43 2B [10:38:51]Write i2c OK [10:38:51]MH_I2C_Read... [10:38:51]Read from MH i2c: 01 [10:38:51]MH_I2C_Read... [10:38:51]Read from MH i2c: 01 07 00 [10:38:51]MH_I2C_Read... [10:38:51]Read from MH i2c: 01 07 00 E8 43 00 00 00 00 00 FF 0F 40 [10:38:51]RasterBufferAndPrint [10:38:51]line Счет N : (1)209716 [10:38:51]line ИНН: 02508201610067 [10:38:51]line Контрольно-Кассовый Чек [10:38:51]line ПРОДАЖА [10:38:51]line ТРК (МРК, ГНК) : 42 [10:38:51]line Товар: 2710124130 [10:38:51]line Аи-92-К-3 [10:38:51]line 5.690 * 66.90 [10:38:51]line = 380.66 [10:38:51]line НДС 12% НСП 1% [10:38:51]line > о реализуемом товаре [10:38:51]line ОКРУГЛЕНИЕ: -0.66 [10:38:51]line ИТОГО: 380.00 [10:38:51]line Внесено: 380.00 [10:38:51]line СДАЧА: 0.00 [10:38:51]line НСП 1% : 3.37 [10:38:51]line НДС 12% : 40.42 [10:38:51]line Наличными: 380.00 [10:38:51]line Безнал.: 0.00 [10:38:51]line Место: АЗС № 86 "Партнер Нефть" [10:38:51]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [10:38:51]line СНО: Общий режим [10:38:51]line Чек 128 21.10.2024 10:38 [10:38:51]line Смена: 460 ФФД: 1.0 [10:38:51]line ЗНМ: 0300000155 [10:38:51]line РНМ: 0000000000100030 [10:38:51]line Версия ККМ: 001 [10:38:51]line ФМ: 0000000000965340 [10:38:51]line ФД: 187664 [10:38:51]line ФПД: 267619939069855 [10:38:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T103853&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187664&fm=267619939069855&tin=02508201610067®Number=0000000000100030&sum=38000 [10:38:51]written 0, free lines is 4095 [10:38:51]OFD Sender: Processing packet 187664 [packets to send 1062, broken 1061] [10:38:51]ProducePacketName [10:38:51]name=ofd_packets/00187664 [10:38:51]OFD Sender: To server: pG, [10:38:51]CommunicateWithHost lk.salyk.kg:30040 [10:38:51]ConnectInit lk.salyk.kg [10:38:51]Connected sock=10 [10:38:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 1C 2B 07 01 50 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 33 FF 03 08 00 03 3A 16 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B2 94 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 94 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 51 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CA 0F 00 00 00 00 07 04 06 00 70 94 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 80 00 00 00 F4 03 04 00 3D 2F 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 10 DD 02 00 35 04 06 00 F3 66 1F 67 2F 9F E6 39 37 D9 36 9F 28 FA [10:38:51]Write to MH i2c: 01 00 00 13 44 57 [10:38:51]Write i2c OK [10:38:51]MH_I2C_Read... [10:38:51]Read from MH i2c: 01 [10:38:51]MH_I2C_Read... [10:38:51]Read from MH i2c: 01 07 00 [10:38:51]MH_I2C_Read... [10:38:51]Read from MH i2c: 01 07 00 13 44 00 00 00 00 00 7E 0C E8 [10:38:51]RasterBufferAndPrint [10:38:51]line [10:38:51]line [10:38:51]line [10:38:51]line [10:38:51]line [10:38:51]written 0, free lines is 3202 [10:38:51]MH_Cut [10:38:51]Write to MH i2c: D1 01 00 1A 44 01 30 [10:38:51]Write i2c OK [10:38:51]MH_I2C_Read... [10:38:51]Read from MH i2c: D1 [10:38:51]MH_I2C_Read... [10:38:51]Read from MH i2c: D1 01 00 [10:38:51]MH_I2C_Read... [10:38:51]Read from MH i2c: D1 01 00 1A 44 00 2F [10:38:51]Write to MH i2c: 01 00 00 1B 44 5F [10:38:51]Write i2c OK [10:38:51]MH_I2C_Read... [10:38:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 C4 11 47 00 8D C3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 10 DD 02 00 F4 03 04 00 2D D9 15 67 B6 04 01 00 00 4F 1C 7B CF F1 AB FD 13 [10:38:51]CommunicateWithHost err = 0 [10:38:51]CheckOFDResponse [10:38:51]1017 (14) - 77093643461234 [10:38:51]1041 (16) - 0000000000965340 [10:38:51]1040 (4) - 187664 [10:38:51]1012 (4) - 21.10.2024 04:31 [10:38:51]1206 (1) - 0 [10:38:51]OFD Sender: Remove packet 187664 [10:38:51]ProducePacketName [10:38:51]name=ofd_packets/00187664 [10:38:51]NVStorageDeleteData [10:38:52]OFD Sender: No OFD packet to send [10:38:52]*** Cut start [10:38:52]*** Partial cut [10:38:52]*** CUTSNS_PIN = 1 [10:38:52]*** CUTSNS_PIN = 0 [10:38:52]*** Brake cut motor [10:38:53]Read from MH i2c: 01 [10:38:53]MH_I2C_Read... [10:38:53]*** Stop cut motor [10:38:53]*** Cut end [10:38:53]Read from MH i2c: 01 07 00 [10:38:53]MH_I2C_Read... [10:38:53]Read from MH i2c: 01 07 00 1B 44 00 00 00 00 00 FF 0F 74 [10:38:53]process_action close_receipt done [10:38:53]requested_data is exist [10:38:53]produce_requested_data [10:38:53]requested_item fm.sn is exist - process it [10:38:53]wFMCommunicate request_size=4 [10:38:53]MH_SAM_APDU [10:38:53]CAPDU: 80 11 00 00 [10:38:53]Write to MH i2c: E2 08 00 1C 44 80 11 00 00 00 00 00 00 DA [10:38:53]Write i2c OK [10:38:53]MH_I2C_Read... [10:38:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:38:53]Read from MH i2c: E2 [10:38:53]MH_I2C_Read... [10:38:53]Read from MH i2c: E2 17 00 [10:38:53]MH_I2C_Read... [10:38:53]Read from MH i2c: E2 17 00 1C 44 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 28 [10:38:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [10:38:53]wFMCommunicate OK [10:38:53]requested_item fd.num is exist - process it [10:38:53]SAM_PROTO_GetFieldsCounters [10:38:53]wFMCommunicate request_size=4 [10:38:53]MH_SAM_APDU [10:38:53]CAPDU: 80 13 00 00 [10:38:53]Write to MH i2c: E2 08 00 1D 44 80 13 00 00 00 00 00 00 DD [10:38:53]Write i2c OK [10:38:53]MH_I2C_Read... [10:38:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:38:53]Read from MH i2c: E2 [10:38:53]MH_I2C_Read... [10:38:53]Read from MH i2c: E2 62 00 [10:38:53]MH_I2C_Read... [10:38:53]Read from MH i2c: E2 62 00 1D 44 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 10 DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 80 00 00 00 5E 04 04 00 80 00 00 00 57 04 04 00 81 00 00 00 19 04 04 00 00 00 00 00 90 00 20 [10:38:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 10 DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 80 00 00 00 5E 04 04 00 80 00 00 00 57 04 04 00 81 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:38:53]wFMCommunicate OK [10:38:53]SAM_PROTO_GetFieldsCounters done [10:38:53]requested_item shift.num is exist - process it [10:38:53]requested_item shift.opened is exist - process it [10:38:53]req_shift_opened [10:38:53]FM_GetShiftState [10:38:53]SAM_PROTO_GetShiftState [10:38:53]wFMCommunicate request_size=4 [10:38:53]MH_SAM_APDU [10:38:53]CAPDU: 80 13 01 00 [10:38:53]Write to MH i2c: E2 08 00 1E 44 80 13 01 00 00 00 00 00 DF [10:38:53]Write i2c OK [10:38:53]MH_I2C_Read... [10:38:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:38:53]Read from MH i2c: E2 [10:38:53]MH_I2C_Read... [10:38:53]Read from MH i2c: E2 0E 00 [10:38:53]MH_I2C_Read... [10:38:53]Read from MH i2c: E2 0E 00 1E 44 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 3E [10:38:53]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [10:38:53]wFMCommunicate OK [10:38:53]SAM_PROTO_GetShiftState done [10:38:53]FM_GetShiftState done [10:38:53]req_shift_opened done [10:38:53]requested_item shift.open_date is exist - process it [10:38:53]req_shift_open_date [10:38:53]req_shift_open_date done [10:38:53]produce_requested_data done [10:38:53]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187664,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [10:38:53]process_action_free close_receipt [10:38:53]json_value_free [10:38:53]json_value_free done [10:38:53]process_json_proto returns [10:38:53]Send response to host [10:38:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187664,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [10:38:53]free response buf [10:38:53]execute_script done [10:38:53]execute_script returns [10:38:53]free content buf [10:38:53]Sock 8.Close socket [10:38:53]Sock 8.Thread stoped [10:38:57]OFD Sender: No OFD packet to send [10:39:02]OFD Sender: No OFD packet to send [10:39:07]OFD Sender: No OFD packet to send [10:39:12]OFD Sender: No OFD packet to send [10:39:17]OFD Sender: No OFD packet to send [10:39:22]OFD Sender: No OFD packet to send [10:39:27]OFD Sender: No OFD packet to send [10:39:32]OFD Sender: No OFD packet to send [10:39:37]OFD Sender: No OFD packet to send [10:39:42]OFD Sender: No OFD packet to send [10:39:47]OFD Sender: No OFD packet to send [10:39:52]OFD Sender: No OFD packet to send [10:39:57]OFD Sender: No OFD packet to send [10:40:01]accept exits with 9 [10:40:01]New connection [10:40:01]New thread 3067014500 created [10:40:01]Thread 3067157860 joined [10:40:01]Waiting for new connection... [10:40:01] Sock 9.Parse request [10:40:01]Sock 9.Check first char [10:40:01]Sock 9.First char is OK [10:40:01]request: POST /json_proto HTTP/1.0 [10:40:01]Method: POST [10:40:01]URL: /json_proto [10:40:01]Method is POST - this is cgi request [10:40:01]url: /json_proto [10:40:01]query_string will be loaded in cgi processing [10:40:01]execute_cgi json_proto POST (null) [10:40:01]execute_cgi path=json_proto method=POST [10:40:01]POST find Content-Length [10:40:01]Host: 172.17.42.131:8080 [10:40:01]Content-Length: 677 [10:40:01]Content-Type: application/json [10:40:01] [10:40:01]POST finish read [10:40:01]Found Content-Length = 677 [10:40:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209717", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "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:40:01]execute_script... [10:40: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)209717", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "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:40:01]POST & json_proto [10:40:01]process_json_proto [10:40:01]json parsed OK: [10:40:01]protocol is kg_v1.0 [10:40:01]action value=close_receipt [10:40:01]process_action close_receipt [10:40:01]cmd_close_receipt [10:40:01]MH_GetDate [10:40:01]Write to MH i2c: F0 00 00 1F 44 52 [10:40:01]Write i2c OK [10:40:01]MH_I2C_Read... [10:40:01]Read from MH i2c: F0 [10:40:01]MH_I2C_Read... [10:40:01]Read from MH i2c: F0 09 00 [10:40:01]MH_I2C_Read... [10:40:01]Read from MH i2c: F0 09 00 1F 44 00 85 2F 16 67 A0 18 CA 66 74 [10:40:01]GetLastDocTimeStamp 1729507133 [10:40:01]current date 1729507205 [10:40:01]FM_GetShiftState [10:40:01]SAM_PROTO_GetShiftState [10:40:01]wFMCommunicate request_size=4 [10:40:01]MH_SAM_APDU [10:40:01]CAPDU: 80 13 01 00 [10:40:01]Write to MH i2c: E2 08 00 20 44 80 13 01 00 00 00 00 00 E1 [10:40:01]Write i2c OK [10:40:01]MH_I2C_Read... [10:40:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:40:01]Read from MH i2c: E2 [10:40:01]MH_I2C_Read... [10:40:01]Read from MH i2c: E2 0E 00 [10:40:01]MH_I2C_Read... [10:40:01]Read from MH i2c: E2 0E 00 20 44 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 40 [10:40:01]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [10:40:01]wFMCommunicate OK [10:40:01]SAM_PROTO_GetShiftState done [10:40:01]FM_GetShiftState done [10:40:01]opened in 1729469754 [10:40:01]opened+sec_in_day 1729556154 [10:40:01]quantity*price = 50041 [10:40:01]sum+1 = 50042 [10:40: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 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 129 21.10.2024 10:40 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 187665 ФПД: 168420604134383 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T104005&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187665&fm=168420604134383&tin=02508201610067®Number=0000000000100030&sum=50000 [10:40:03]StoreToDocumentArchive [10:40:03]shift 460 fd 187665 [10:40:03]save to /storage/0460/doc_00187665 [10:40:03]save last doc name /storage/0460/doc_00187665 to /storage/kkm_last_doc_name [10:40:03]save OK [10:40:03]Clear old archive folders... [10:40:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:40:03]tlvbuf is B6F0CEF0 [10:40:03]SAM_PROTO_ClearQueue [10:40:03]wFMCommunicate request_size=4 [10:40:03]MH_SAM_APDU [10:40:03]CAPDU: 80 09 00 00 [10:40:03]Write to MH i2c: E2 08 00 2D 44 80 09 00 00 00 00 00 00 E3 [10:40:03]Write i2c OK [10:40:03]MH_I2C_Read... [10:40:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:40:03]Read from MH i2c: E2 [10:40:03]MH_I2C_Read... [10:40:03]Read from MH i2c: E2 03 00 [10:40:03]MH_I2C_Read... [10:40:03]Read from MH i2c: E2 03 00 2D 44 00 90 00 E5 [10:40:03]RAPDU: 90 00 [10:40:03]wFMCommunicate OK [10:40:03]SAM_PROTO_ClearQueue done [10:40:03]KKMCreateOFDPacket [10:40:03]OFDProtocolAddRootSTLVToBuf [10:40:03]FM_MakeSignedData [10:40:03]FM_MakeSignedData [10:40:03]SAM_PROTO_SignData [10:40:03]wFMCommunicate request_size=4 [10:40:03]MH_SAM_APDU [10:40:03]CAPDU: 80 0D 01 02 [10:40:03]Write to MH i2c: E2 08 00 2E 44 80 0D 01 02 00 00 00 00 EB [10:40:03]Write i2c OK [10:40:03]MH_I2C_Read... [10:40:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:40:03]Read from MH i2c: E2 [10:40:03]MH_I2C_Read... [10:40:03]Read from MH i2c: E2 03 00 [10:40:03]MH_I2C_Read... [10:40:03]Read from MH i2c: E2 03 00 2E 44 00 90 00 E6 [10:40:03]RAPDU: 90 00 [10:40:03]wFMCommunicate OK [10:40:03]wFMCommunicate request_size=255 [10:40:03]MH_SAM_APDU [10:40: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 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 85 2F 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 11 DD 02 00 35 04 06 00 99 [10:40:03]Write to MH i2c: E2 02 01 2F 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 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 85 2F 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 11 DD 02 00 35 04 06 00 99 00 00 66 [10:40:03]Write i2c OK [10:40:03]MH_I2C_Read... [10:40:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:40:03]Read from MH i2c: E2 [10:40:03]MH_I2C_Read... [10:40:03]Read from MH i2c: E2 03 00 [10:40:03]MH_I2C_Read... [10:40:03]Read from MH i2c: E2 03 00 2F 44 00 90 00 E7 [10:40:03]RAPDU: 90 00 [10:40:03]wFMCommunicate OK [10:40:03]wFMCommunicate request_size=10 [10:40:03]MH_SAM_APDU [10:40:03]CAPDU: 80 0D 02 02 05 2D 7A 48 43 EF [10:40:03]Write to MH i2c: E2 0D 00 30 44 80 0D 02 02 05 00 2D 7A 48 43 EF 00 00 19 [10:40:03]Write i2c OK [10:40:03]MH_I2C_Read... [10:40:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:40:03]Read from MH i2c: E2 [10:40:03]MH_I2C_Read... [10:40:03]Read from MH i2c: E2 03 00 [10:40:03]MH_I2C_Read... [10:40:03]Read from MH i2c: E2 03 00 30 44 00 90 00 E8 [10:40:03]RAPDU: 90 00 [10:40:03]wFMCommunicate OK [10:40:03]wFMCommunicate request_size=4 [10:40:03]MH_SAM_APDU [10:40:03]CAPDU: 80 0D 03 02 [10:40:03]Write to MH i2c: E2 08 00 31 44 80 0D 03 02 00 00 00 00 F0 [10:40:03]Write i2c OK [10:40:03]MH_I2C_Read... [10:40:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:40:03]Read from MH i2c: E2 [10:40:03]MH_I2C_Read... [10:40:03]Read from MH i2c: E2 0B 00 [10:40:03]MH_I2C_Read... [10:40:03]Read from MH i2c: E2 0B 00 31 44 00 19 26 00 97 68 84 60 C3 90 00 D6 [10:40:03]RAPDU: 19 26 00 97 68 84 60 C3 90 00 [10:40:03]wFMCommunicate OK [10:40:03]SAM_PROTO_SignData done [10:40:03]FM_MakeSignedData done [10:40:03]CreateOFDProtocolMessage [10:40:03]wFMCommunicate request_size=4 [10:40:03]MH_SAM_APDU [10:40:03]CAPDU: 80 11 00 00 [10:40:03]Write to MH i2c: E2 08 00 32 44 80 11 00 00 00 00 00 00 F0 [10:40:03]Write i2c OK [10:40:03]MH_I2C_Read... [10:40:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:40:03]Read from MH i2c: E2 [10:40:03]MH_I2C_Read... [10:40:03]Read from MH i2c: E2 17 00 [10:40:03]MH_I2C_Read... [10:40:03]Read from MH i2c: E2 17 00 32 44 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 3E [10:40:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [10:40:03]wFMCommunicate OK [10:40:03]CreateOFDProtocolMessage done [10:40:03]OFDSenderStorePacket 187665 [10:40:03]StoreOFDPacket docnum=187665 [10:40:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 97 1B 07 01 96 4E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 85 2F 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 11 DD 02 00 35 04 06 00 99 2D 7A 48 43 EF 19 26 00 97 68 84 60 C3 [10:40:03]CheckFolder [10:40:03]dirname=/storage/ofd_packets [10:40:03]CheckFolder done [10:40:03]ProducePacketName [10:40:03]name=ofd_packets/00187665 [10:40:03]NVStorageSaveData ofd_packets/00187665 [10:40:03]File name is /storage/ofd_packets/00187665 [10:40:03]Write 301 bytes [10:40:03]NVStorageSaveData done [10:40:03]OFDSenderStorePacket done [10:40:03]KKMCreateOFDPacket done [10:40:03]NVStorageSaveData kkm_last_timestamp [10:40:03]File name is /storage/kkm_last_timestamp [10:40:03]Write 4 bytes [10:40:03]NVStorageSaveData done [10:40:03]ExternCall_PrintAddStr [10:40:03]wPrintStart [10:40:03]Write to MH i2c: 01 00 00 33 44 77 [10:40:03]Write i2c OK [10:40:03]MH_I2C_Read... [10:40:03]Read from MH i2c: 01 [10:40:03]MH_I2C_Read... [10:40:03]Read from MH i2c: 01 07 00 [10:40:03]MH_I2C_Read... [10:40:03]Read from MH i2c: 01 07 00 33 44 00 00 00 00 00 FF 0F 8C [10:40:03]RasterBufferAndPrint [10:40:03]line Счет N : (1)209717 [10:40:03]line ИНН: 02508201610067 [10:40:03]line Контрольно-Кассовый Чек [10:40:03]line ПРОДАЖА [10:40:03]line ТРК (МРК, ГНК) : 12 [10:40:03]line Товар: 2710124130 [10:40:03]line Аи-92-К-3 [10:40:03]line 7.480 * 66.90 [10:40:03]line = 500.41 [10:40:03]line НДС 12% НСП 1% [10:40:03]line > о реализуемом товаре [10:40:03]line ОКРУГЛЕНИЕ: -0.41 [10:40:03]line ИТОГО: 500.00 [10:40:03]line Внесено: 500.00 [10:40:03]line СДАЧА: 0.00 [10:40:03]line НСП 1% : 4.43 [10:40:03]line НДС 12% : 53.14 [10:40:03]line Наличными: 500.00 [10:40:03]line Безнал.: 0.00 [10:40:03]line Место: АЗС № 86 "Партнер Нефть" [10:40:03]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [10:40:03]line СНО: Общий режим [10:40:03]line Чек 129 21.10.2024 10:40 [10:40:03]line Смена: 460 ФФД: 1.0 [10:40:03]line ЗНМ: 0300000155 [10:40:03]line РНМ: 0000000000100030 [10:40:03]line Версия ККМ: 001 [10:40:03]line ФМ: 0000000000965340 [10:40:03]line ФД: 187665 [10:40:03]line ФПД: 168420604134383 [10:40:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T104005&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187665&fm=168420604134383&tin=02508201610067®Number=0000000000100030&sum=50000 [10:40:03]written 0, free lines is 4095 [10:40:03]OFD Sender: Processing packet 187665 [packets to send 1062, broken 1061] [10:40:03]ProducePacketName [10:40:03]name=ofd_packets/00187665 [10:40:03]OFD Sender: To server: pG, [10:40:03]CommunicateWithHost lk.salyk.kg:30040 [10:40:03]ConnectInit lk.salyk.kg [10:40:03]Connected sock=11 [10:40:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 97 1B 07 01 96 4E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 85 2F 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 11 DD 02 00 35 04 06 00 99 2D 7A 48 43 EF 19 26 00 97 68 84 60 C3 [10:40:04]Write to MH i2c: 01 00 00 5E 44 A2 [10:40:04]Write i2c OK [10:40:04]MH_I2C_Read... [10:40:04]Read from MH i2c: 01 [10:40:04]MH_I2C_Read... [10:40:04]Read from MH i2c: 01 07 00 [10:40:04]MH_I2C_Read... [10:40:04]Read from MH i2c: 01 07 00 5E 44 00 00 00 00 00 79 0C 2E [10:40:04]RasterBufferAndPrint [10:40:04]line [10:40:04]line [10:40:04]line [10:40:04]line [10:40:04]line [10:40:04]written 0, free lines is 3196 [10:40:04]MH_Cut [10:40:04]Write to MH i2c: D1 01 00 65 44 01 7B [10:40:04]Write i2c OK [10:40:04]MH_I2C_Read... [10:40:04]Read from MH i2c: D1 [10:40:04]MH_I2C_Read... [10:40:04]Read from MH i2c: D1 01 00 [10:40:04]MH_I2C_Read... [10:40:04]Read from MH i2c: D1 01 00 65 44 00 7A [10:40:04]Write to MH i2c: 01 00 00 66 44 AA [10:40:04]Write i2c OK [10:40:04]MH_I2C_Read... [10:40:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 82 A4 47 00 81 87 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 11 DD 02 00 F4 03 04 00 75 D9 15 67 B6 04 01 00 00 0E 83 AE A5 8F B1 51 0E [10:40:04]CommunicateWithHost err = 0 [10:40:04]CheckOFDResponse [10:40:04]1017 (14) - 77093643461234 [10:40:04]1041 (16) - 0000000000965340 [10:40:04]1040 (4) - 187665 [10:40:04]1012 (4) - 21.10.2024 04:32 [10:40:04]1206 (1) - 0 [10:40:04]OFD Sender: Remove packet 187665 [10:40:04]ProducePacketName [10:40:04]name=ofd_packets/00187665 [10:40:04]NVStorageDeleteData [10:40:04]OFD Sender: No OFD packet to send [10:40:05]*** Cut start [10:40:05]*** Partial cut [10:40:05]*** CUTSNS_PIN = 1 [10:40:05]*** CUTSNS_PIN = 0 [10:40:05]*** Brake cut motor [10:40:05]Read from MH i2c: 01 [10:40:05]MH_I2C_Read... [10:40:05]*** Stop cut motor [10:40:05]*** Cut end [10:40:05]Read from MH i2c: 01 07 00 [10:40:05]MH_I2C_Read... [10:40:05]Read from MH i2c: 01 07 00 66 44 00 00 00 00 00 FF 0F BF [10:40:05]process_action close_receipt done [10:40:05]requested_data is exist [10:40:05]produce_requested_data [10:40:05]requested_item fm.sn is exist - process it [10:40:05]wFMCommunicate request_size=4 [10:40:05]MH_SAM_APDU [10:40:05]CAPDU: 80 11 00 00 [10:40:05]Write to MH i2c: E2 08 00 67 44 80 11 00 00 00 00 00 00 25 [10:40:05]Write i2c OK [10:40:05]MH_I2C_Read... [10:40:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:40:05]Read from MH i2c: E2 [10:40:05]MH_I2C_Read... [10:40:05]Read from MH i2c: E2 17 00 [10:40:05]MH_I2C_Read... [10:40:05]Read from MH i2c: E2 17 00 67 44 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 73 [10:40:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [10:40:05]wFMCommunicate OK [10:40:05]requested_item fd.num is exist - process it [10:40:05]SAM_PROTO_GetFieldsCounters [10:40:05]wFMCommunicate request_size=4 [10:40:05]MH_SAM_APDU [10:40:05]CAPDU: 80 13 00 00 [10:40:05]Write to MH i2c: E2 08 00 68 44 80 13 00 00 00 00 00 00 28 [10:40:05]Write i2c OK [10:40:05]MH_I2C_Read... [10:40:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:40:05]Read from MH i2c: E2 [10:40:05]MH_I2C_Read... [10:40:05]Read from MH i2c: E2 62 00 [10:40:05]MH_I2C_Read... [10:40:05]Read from MH i2c: E2 62 00 68 44 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 11 DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 81 00 00 00 5E 04 04 00 81 00 00 00 57 04 04 00 82 00 00 00 19 04 04 00 00 00 00 00 90 00 6F [10:40:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 11 DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 81 00 00 00 5E 04 04 00 81 00 00 00 57 04 04 00 82 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:40:05]wFMCommunicate OK [10:40:05]SAM_PROTO_GetFieldsCounters done [10:40:05]requested_item shift.num is exist - process it [10:40:05]requested_item shift.opened is exist - process it [10:40:05]req_shift_opened [10:40:05]FM_GetShiftState [10:40:05]SAM_PROTO_GetShiftState [10:40:05]wFMCommunicate request_size=4 [10:40:05]MH_SAM_APDU [10:40:05]CAPDU: 80 13 01 00 [10:40:05]Write to MH i2c: E2 08 00 69 44 80 13 01 00 00 00 00 00 2A [10:40:05]Write i2c OK [10:40:05]MH_I2C_Read... [10:40:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:40:06]Read from MH i2c: E2 [10:40:06]MH_I2C_Read... [10:40:06]Read from MH i2c: E2 0E 00 [10:40:06]MH_I2C_Read... [10:40:06]Read from MH i2c: E2 0E 00 69 44 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 89 [10:40:06]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [10:40:06]wFMCommunicate OK [10:40:06]SAM_PROTO_GetShiftState done [10:40:06]FM_GetShiftState done [10:40:06]req_shift_opened done [10:40:06]requested_item shift.open_date is exist - process it [10:40:06]req_shift_open_date [10:40:06]req_shift_open_date done [10:40:06]produce_requested_data done [10:40:06]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187665,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [10:40:06]process_action_free close_receipt [10:40:06]json_value_free [10:40:06]json_value_free done [10:40:06]process_json_proto returns [10:40:06]Send response to host [10:40:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187665,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [10:40:06]free response buf [10:40:06]execute_script done [10:40:06]execute_script returns [10:40:06]free content buf [10:40:06]Sock 9.Close socket [10:40:06]Sock 9.Thread stoped [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:34]OFD Sender: No OFD packet to send [10:40:39]OFD Sender: No OFD packet to send [10:40:44]OFD Sender: No OFD packet to send [10:40:49]OFD Sender: No OFD packet to send [10:40:54]OFD Sender: No OFD packet to send [10:40:59]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:44]accept exits with 8 [10:42:44]New connection [10:42:44]New thread 3067157860 created [10:42:44]Thread 3067014500 joined [10:42:44]Waiting for new connection... [10:42:44] Sock 8.Parse request [10:42:44]Sock 8.Check first char [10:42:44]Sock 8.First char is OK [10:42:44]request: POST /json_proto HTTP/1.0 [10:42:44]Method: POST [10:42:44]URL: /json_proto [10:42:44]Method is POST - this is cgi request [10:42:44]url: /json_proto [10:42:44]query_string will be loaded in cgi processing [10:42:44]execute_cgi json_proto POST (null) [10:42:44]execute_cgi path=json_proto method=POST [10:42:44]POST find Content-Length [10:42:44]Host: 172.17.42.131:8080 [10:42:44]Content-Length: 688 [10:42:44]Content-Type: application/json [10:42:44] [10:42:44]POST finish read [10:42:44]Found Content-Length = 688 [10:42:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209718", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 32.390, "sum" : 2500.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2500.00, "total" : 2500.00, "payments": [ { "type": 0, "sum" : 2500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:42:44]execute_script... [10:42: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)209718", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 32.390, "sum" : 2500.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2500.00, "total" : 2500.00, "payments": [ { "type": 0, "sum" : 2500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:42:44]POST & json_proto [10:42:44]process_json_proto [10:42:44]json parsed OK: [10:42:44]protocol is kg_v1.0 [10:42:44]action value=close_receipt [10:42:44]process_action close_receipt [10:42:44]cmd_close_receipt [10:42:44]MH_GetDate [10:42:44]Write to MH i2c: F0 00 00 6A 44 9D [10:42:44]Write i2c OK [10:42:44]MH_I2C_Read... [10:42:44]Read from MH i2c: F0 [10:42:44]MH_I2C_Read... [10:42:44]Read from MH i2c: F0 09 00 [10:42:44]MH_I2C_Read... [10:42:44]Read from MH i2c: F0 09 00 6A 44 00 27 30 16 67 A0 18 CA 66 62 [10:42:44]GetLastDocTimeStamp 1729507205 [10:42:44]current date 1729507367 [10:42:44]FM_GetShiftState [10:42:44]SAM_PROTO_GetShiftState [10:42:44]wFMCommunicate request_size=4 [10:42:44]MH_SAM_APDU [10:42:44]CAPDU: 80 13 01 00 [10:42:44]Write to MH i2c: E2 08 00 6B 44 80 13 01 00 00 00 00 00 2C [10:42:44]Write i2c OK [10:42:44]MH_I2C_Read... [10:42:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:42:44]Read from MH i2c: E2 [10:42:44]MH_I2C_Read... [10:42:44]Read from MH i2c: E2 0E 00 [10:42:44]MH_I2C_Read... [10:42:44]Read from MH i2c: E2 0E 00 6B 44 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 8B [10:42:44]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [10:42:44]wFMCommunicate OK [10:42:44]SAM_PROTO_GetShiftState done [10:42:44]FM_GetShiftState done [10:42:44]opened in 1729469754 [10:42:44]opened+sec_in_day 1729556154 [10:42:44]quantity*price = 250050 [10:42:44]sum+1 = 250052 [10:42:44]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 2500.00 Внесено: 2500.00 СДАЧА: 0.00 НСП 1% : 22.13 НДС 12% : 265.54 Наличными: 2500.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 130 21.10.2024 10:42 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 187666 ФПД: 65266784579116 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T104248&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187666&fm=65266784579116&tin=02508201610067®Number=0000000000100030&sum=250000 [10:42:45]StoreToDocumentArchive [10:42:45]shift 460 fd 187666 [10:42:45]save to /storage/0460/doc_00187666 [10:42:45]save last doc name /storage/0460/doc_00187666 to /storage/kkm_last_doc_name [10:42:45]save OK [10:42:45]Clear old archive folders... [10:42:45]ProcessDocumentItem done err = 0, tmpTLVsize=257 [10:42:45]tlvbuf is B6F8A230 [10:42:45]SAM_PROTO_ClearQueue [10:42:45]wFMCommunicate request_size=4 [10:42:45]MH_SAM_APDU [10:42:45]CAPDU: 80 09 00 00 [10:42:45]Write to MH i2c: E2 08 00 78 44 80 09 00 00 00 00 00 00 2E [10:42:45]Write i2c OK [10:42:45]MH_I2C_Read... [10:42:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:42:45]Read from MH i2c: E2 [10:42:45]MH_I2C_Read... [10:42:45]Read from MH i2c: E2 03 00 [10:42:45]MH_I2C_Read... [10:42:45]Read from MH i2c: E2 03 00 78 44 00 90 00 30 [10:42:45]RAPDU: 90 00 [10:42:45]wFMCommunicate OK [10:42:45]SAM_PROTO_ClearQueue done [10:42:45]KKMCreateOFDPacket [10:42:45]OFDProtocolAddRootSTLVToBuf [10:42:45]FM_MakeSignedData [10:42:45]FM_MakeSignedData [10:42:45]SAM_PROTO_SignData [10:42:45]wFMCommunicate request_size=4 [10:42:45]MH_SAM_APDU [10:42:45]CAPDU: 80 0D 01 02 [10:42:45]Write to MH i2c: E2 08 00 79 44 80 0D 01 02 00 00 00 00 36 [10:42:45]Write i2c OK [10:42:45]MH_I2C_Read... [10:42:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:42:45]OFD Sender: No OFD packet to send [10:42:45]Read from MH i2c: E2 [10:42:45]MH_I2C_Read... [10:42:45]Read from MH i2c: E2 03 00 [10:42:45]MH_I2C_Read... [10:42:45]Read from MH i2c: E2 03 00 79 44 00 90 00 31 [10:42:45]RAPDU: 90 00 [10:42:45]wFMCommunicate OK [10:42:45]wFMCommunicate request_size=255 [10:42:45]MH_SAM_APDU [10:42:45]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 86 7E 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 C3 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BA 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 00 00 00 F4 03 04 00 28 30 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 12 DD 02 [10:42:45]Write to MH i2c: E2 02 01 7A 44 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 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 86 7E 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 C3 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BA 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 00 00 00 F4 03 04 00 28 30 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 12 DD 02 00 00 3A [10:42:45]Write i2c OK [10:42:45]MH_I2C_Read... [10:42:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:42:45]Read from MH i2c: E2 [10:42:45]MH_I2C_Read... [10:42:45]Read from MH i2c: E2 03 00 [10:42:45]MH_I2C_Read... [10:42:45]Read from MH i2c: E2 03 00 7A 44 00 90 00 32 [10:42:45]RAPDU: 90 00 [10:42:45]wFMCommunicate OK [10:42:45]wFMCommunicate request_size=16 [10:42:45]MH_SAM_APDU [10:42:45]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 3B 5C 1B 82 AE 2C [10:42:45]Write to MH i2c: E2 13 00 7B 44 80 0D 02 02 0B 00 00 35 04 06 00 3B 5C 1B 82 AE 2C 00 00 9C [10:42:45]Write i2c OK [10:42:45]MH_I2C_Read... [10:42:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:42:45]Read from MH i2c: E2 [10:42:45]MH_I2C_Read... [10:42:45]Read from MH i2c: E2 03 00 [10:42:45]MH_I2C_Read... [10:42:45]Read from MH i2c: E2 03 00 7B 44 00 90 00 33 [10:42:45]RAPDU: 90 00 [10:42:45]wFMCommunicate OK [10:42:45]wFMCommunicate request_size=4 [10:42:45]MH_SAM_APDU [10:42:45]CAPDU: 80 0D 03 02 [10:42:45]Write to MH i2c: E2 08 00 7C 44 80 0D 03 02 00 00 00 00 3B [10:42:45]Write i2c OK [10:42:45]MH_I2C_Read... [10:42:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:42:45]Read from MH i2c: E2 [10:42:45]MH_I2C_Read... [10:42:45]Read from MH i2c: E2 0B 00 [10:42:45]MH_I2C_Read... [10:42:45]Read from MH i2c: E2 0B 00 7C 44 00 52 A1 D9 42 2A 52 C6 D3 90 00 5F [10:42:45]RAPDU: 52 A1 D9 42 2A 52 C6 D3 90 00 [10:42:45]wFMCommunicate OK [10:42:45]SAM_PROTO_SignData done [10:42:45]FM_MakeSignedData done [10:42:45]CreateOFDProtocolMessage [10:42:45]wFMCommunicate request_size=4 [10:42:45]MH_SAM_APDU [10:42:45]CAPDU: 80 11 00 00 [10:42:45]Write to MH i2c: E2 08 00 7D 44 80 11 00 00 00 00 00 00 3B [10:42:45]Write i2c OK [10:42:45]MH_I2C_Read... [10:42:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:42:45]Read from MH i2c: E2 [10:42:45]MH_I2C_Read... [10:42:45]Read from MH i2c: E2 17 00 [10:42:45]MH_I2C_Read... [10:42:45]Read from MH i2c: E2 17 00 7D 44 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 89 [10:42:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [10:42:45]wFMCommunicate OK [10:42:45]CreateOFDProtocolMessage done [10:42:45]OFDSenderStorePacket 187666 [10:42:45]StoreOFDPacket docnum=187666 [10:42:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 04 F2 0D 01 C3 A9 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 86 7E 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 C3 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BA 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 00 00 00 F4 03 04 00 28 30 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 12 DD 02 00 35 04 06 00 3B 5C 1B 82 AE 2C 52 A1 D9 42 2A 52 C6 D3 [10:42:45]CheckFolder [10:42:45]dirname=/storage/ofd_packets [10:42:45]CheckFolder done [10:42:45]ProducePacketName [10:42:45]name=ofd_packets/00187666 [10:42:45]NVStorageSaveData ofd_packets/00187666 [10:42:45]File name is /storage/ofd_packets/00187666 [10:42:45]Write 307 bytes [10:42:45]NVStorageSaveData done [10:42:45]OFDSenderStorePacket done [10:42:45]KKMCreateOFDPacket done [10:42:45]NVStorageSaveData kkm_last_timestamp [10:42:45]File name is /storage/kkm_last_timestamp [10:42:45]Write 4 bytes [10:42:45]NVStorageSaveData done [10:42:45]ExternCall_PrintAddStr [10:42:45]wPrintStart [10:42:45]Write to MH i2c: 01 00 00 7E 44 C2 [10:42:45]Write i2c OK [10:42:45]MH_I2C_Read... [10:42:45]Read from MH i2c: 01 [10:42:45]MH_I2C_Read... [10:42:45]Read from MH i2c: 01 07 00 [10:42:45]MH_I2C_Read... [10:42:45]Read from MH i2c: 01 07 00 7E 44 00 00 00 00 00 FF 0F D7 [10:42:45]RasterBufferAndPrint [10:42:45]line Счет N : (1)209718 [10:42:45]line ИНН: 02508201610067 [10:42:45]line Контрольно-Кассовый Чек [10:42:45]line ПРОДАЖА [10:42:45]line ТРК (МРК, ГНК) : 31 [10:42:45]line Товар: 2710194210 [10:42:45]line D-ENERGY ДТ-К-5 [10:42:45]line 32.390 * 77.20 [10:42:45]line = 2500.51 [10:42:45]line НДС 12% НСП 1% [10:42:45]line > о реализуемом товаре [10:42:45]line ОКРУГЛЕНИЕ: -0.51 [10:42:45]line ИТОГО: 2500.00 [10:42:45]line Внесено: 2500.00 [10:42:45]line СДАЧА: 0.00 [10:42:45]line НСП 1% : 22.13 [10:42:45]line НДС 12% : 265.54 [10:42:45]line Наличными: 2500.00 [10:42:45]line Безнал.: 0.00 [10:42:45]line Место: АЗС № 86 "Партнер Нефть" [10:42:45]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [10:42:45]line СНО: Общий режим [10:42:45]line Чек 130 21.10.2024 10:42 [10:42:45]line Смена: 460 ФФД: 1.0 [10:42:45]line ЗНМ: 0300000155 [10:42:45]line РНМ: 0000000000100030 [10:42:45]line Версия ККМ: 001 [10:42:45]line ФМ: 0000000000965340 [10:42:45]line ФД: 187666 [10:42:45]line ФПД: 65266784579116 [10:42:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T104248&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187666&fm=65266784579116&tin=02508201610067®Number=0000000000100030&sum=250000 [10:42:45]written 0, free lines is 4095 [10:42:46]OFD Sender: Processing packet 187666 [packets to send 1062, broken 1061] [10:42:46]ProducePacketName [10:42:46]name=ofd_packets/00187666 [10:42:46]OFD Sender: To server: pG, [10:42:46]CommunicateWithHost lk.salyk.kg:30040 [10:42:46]ConnectInit lk.salyk.kg [10:42:46]Connected sock=10 [10:42:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 04 F2 0D 01 C3 A9 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 86 7E 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 C3 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BA 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 00 00 00 F4 03 04 00 28 30 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 12 DD 02 00 35 04 06 00 3B 5C 1B 82 AE 2C 52 A1 D9 42 2A 52 C6 D3 [10:42:46]Write to MH i2c: 01 00 00 A9 44 ED [10:42:46]Write i2c OK [10:42:46]MH_I2C_Read... [10:42:46]Read from MH i2c: 01 [10:42:46]MH_I2C_Read... [10:42:46]Read from MH i2c: 01 07 00 [10:42:46]MH_I2C_Read... [10:42:46]Read from MH i2c: 01 07 00 A9 44 00 00 00 00 00 7C 0C 7C [10:42:46]RasterBufferAndPrint [10:42:46]line [10:42:46]line [10:42:46]line [10:42:46]line [10:42:46]line [10:42:46]written 0, free lines is 3200 [10:42:46]MH_Cut [10:42:46]Write to MH i2c: D1 01 00 B0 44 01 C6 [10:42:46]Write i2c OK [10:42:46]MH_I2C_Read... [10:42:46]Read from MH i2c: D1 [10:42:46]MH_I2C_Read... [10:42:46]Read from MH i2c: D1 01 00 [10:42:46]MH_I2C_Read... [10:42:46]Read from MH i2c: D1 01 00 B0 44 00 C5 [10:42:46]Write to MH i2c: 01 00 00 B1 44 F5 [10:42:46]Write i2c OK [10:42:46]MH_I2C_Read... [10:42:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 CB 14 47 00 87 97 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 12 DD 02 00 F4 03 04 00 17 DA 15 67 B6 04 01 00 00 72 7D B3 36 4F 58 20 A9 [10:42:46]CommunicateWithHost err = 0 [10:42:46]CheckOFDResponse [10:42:46]1017 (14) - 77093643461234 [10:42:46]1041 (16) - 0000000000965340 [10:42:46]1040 (4) - 187666 [10:42:46]1012 (4) - 21.10.2024 04:35 [10:42:46]1206 (1) - 0 [10:42:46]OFD Sender: Remove packet 187666 [10:42:46]ProducePacketName [10:42:46]name=ofd_packets/00187666 [10:42:46]NVStorageDeleteData [10:42:47]OFD Sender: No OFD packet to send [10:42:47]*** Cut start [10:42:47]*** Partial cut [10:42:47]*** CUTSNS_PIN = 1 [10:42:47]*** CUTSNS_PIN = 0 [10:42:47]*** Brake cut motor [10:42:48]Read from MH i2c: 01 [10:42:48]MH_I2C_Read... [10:42:48]*** Stop cut motor [10:42:48]*** Cut end [10:42:48]Read from MH i2c: 01 07 00 [10:42:48]MH_I2C_Read... [10:42:48]Read from MH i2c: 01 07 00 B1 44 00 00 00 00 00 FF 0F 0A [10:42:48]process_action close_receipt done [10:42:48]requested_data is exist [10:42:48]produce_requested_data [10:42:48]requested_item fm.sn is exist - process it [10:42:48]wFMCommunicate request_size=4 [10:42:48]MH_SAM_APDU [10:42:48]CAPDU: 80 11 00 00 [10:42:48]Write to MH i2c: E2 08 00 B2 44 80 11 00 00 00 00 00 00 70 [10:42:48]Write i2c OK [10:42:48]MH_I2C_Read... [10:42:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:42:48]Read from MH i2c: E2 [10:42:48]MH_I2C_Read... [10:42:48]Read from MH i2c: E2 17 00 [10:42:48]MH_I2C_Read... [10:42:48]Read from MH i2c: E2 17 00 B2 44 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 BE [10:42:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [10:42:48]wFMCommunicate OK [10:42:48]requested_item fd.num is exist - process it [10:42:48]SAM_PROTO_GetFieldsCounters [10:42:48]wFMCommunicate request_size=4 [10:42:48]MH_SAM_APDU [10:42:48]CAPDU: 80 13 00 00 [10:42:48]Write to MH i2c: E2 08 00 B3 44 80 13 00 00 00 00 00 00 73 [10:42:48]Write i2c OK [10:42:48]MH_I2C_Read... [10:42:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:42:48]Read from MH i2c: E2 [10:42:48]MH_I2C_Read... [10:42:48]Read from MH i2c: E2 62 00 [10:42:48]MH_I2C_Read... [10:42:48]Read from MH i2c: E2 62 00 B3 44 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 12 DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 82 00 00 00 5E 04 04 00 82 00 00 00 57 04 04 00 83 00 00 00 19 04 04 00 00 00 00 00 90 00 BE [10:42:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 12 DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 82 00 00 00 5E 04 04 00 82 00 00 00 57 04 04 00 83 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:42:48]wFMCommunicate OK [10:42:48]SAM_PROTO_GetFieldsCounters done [10:42:48]requested_item shift.num is exist - process it [10:42:48]requested_item shift.opened is exist - process it [10:42:48]req_shift_opened [10:42:48]FM_GetShiftState [10:42:48]SAM_PROTO_GetShiftState [10:42:48]wFMCommunicate request_size=4 [10:42:48]MH_SAM_APDU [10:42:48]CAPDU: 80 13 01 00 [10:42:48]Write to MH i2c: E2 08 00 B4 44 80 13 01 00 00 00 00 00 75 [10:42:48]Write i2c OK [10:42:48]MH_I2C_Read... [10:42:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:42:48]Read from MH i2c: E2 [10:42:48]MH_I2C_Read... [10:42:48]Read from MH i2c: E2 0E 00 [10:42:48]MH_I2C_Read... [10:42:48]Read from MH i2c: E2 0E 00 B4 44 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 D4 [10:42:48]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [10:42:48]wFMCommunicate OK [10:42:48]SAM_PROTO_GetShiftState done [10:42:48]FM_GetShiftState done [10:42:48]req_shift_opened done [10:42:48]requested_item shift.open_date is exist - process it [10:42:48]req_shift_open_date [10:42:48]req_shift_open_date done [10:42:48]produce_requested_data done [10:42:48]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187666,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [10:42:48]process_action_free close_receipt [10:42:48]json_value_free [10:42:48]json_value_free done [10:42:48]process_json_proto returns [10:42:48]Send response to host [10:42:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187666,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [10:42:48]free response buf [10:42:48]execute_script done [10:42:48]execute_script returns [10:42:48]free content buf [10:42:48]Sock 8.Close socket [10:42:48]Sock 8.Thread stoped [10:42:52]OFD Sender: No OFD packet to send [10:42:57]OFD Sender: No OFD packet to send [10:43:02]OFD Sender: No OFD packet to send [10:43:07]OFD Sender: No OFD packet to send [10:43:12]OFD Sender: No OFD packet to send [10:43:15]accept exits with 9 [10:43:15]New connection [10:43:15]New thread 3067014500 created [10:43:15]Thread 3067157860 joined [10:43:15]Waiting for new connection... [10:43:15] Sock 9.Parse request [10:43:15]Sock 9.Check first char [10:43:15]Sock 9.First char is OK [10:43:15]request: POST /json_proto HTTP/1.0 [10:43:15]Method: POST [10:43:15]URL: /json_proto [10:43:15]Method is POST - this is cgi request [10:43:15]url: /json_proto [10:43:15]query_string will be loaded in cgi processing [10:43:15]execute_cgi json_proto POST (null) [10:43:15]execute_cgi path=json_proto method=POST [10:43:15]POST find Content-Length [10:43:15]Host: 172.17.42.131:8080 [10:43:15]Content-Length: 678 [10:43:15]Content-Type: application/json [10:43:15] [10:43:15]POST finish read [10:43:15]Found Content-Length = 678 [10:43:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209719", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 10.790, "sum" : 800.62, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:43:15]execute_script... [10:43:15]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209719", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 10.790, "sum" : 800.62, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:43:15]POST & json_proto [10:43:15]process_json_proto [10:43:15]json parsed OK: [10:43:15]protocol is kg_v1.0 [10:43:15]action value=close_receipt [10:43:15]process_action close_receipt [10:43:15]cmd_close_receipt [10:43:15]MH_GetDate [10:43:15]Write to MH i2c: F0 00 00 B5 44 E8 [10:43:15]Write i2c OK [10:43:15]MH_I2C_Read... [10:43:15]Read from MH i2c: F0 [10:43:15]MH_I2C_Read... [10:43:15]Read from MH i2c: F0 09 00 [10:43:15]MH_I2C_Read... [10:43:15]Read from MH i2c: F0 09 00 B5 44 00 47 30 16 67 A0 18 CA 66 CD [10:43:15]GetLastDocTimeStamp 1729507368 [10:43:15]current date 1729507399 [10:43:15]FM_GetShiftState [10:43:15]SAM_PROTO_GetShiftState [10:43:15]wFMCommunicate request_size=4 [10:43:15]MH_SAM_APDU [10:43:15]CAPDU: 80 13 01 00 [10:43:15]Write to MH i2c: E2 08 00 B6 44 80 13 01 00 00 00 00 00 77 [10:43:15]Write i2c OK [10:43:15]MH_I2C_Read... [10:43:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:43:15]Read from MH i2c: E2 [10:43:15]MH_I2C_Read... [10:43:15]Read from MH i2c: E2 0E 00 [10:43:15]MH_I2C_Read... [10:43:15]Read from MH i2c: E2 0E 00 B6 44 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 D6 [10:43:15]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [10:43:15]wFMCommunicate OK [10:43:15]SAM_PROTO_GetShiftState done [10:43:16]FM_GetShiftState done [10:43:16]opened in 1729469754 [10:43:16]opened+sec_in_day 1729556154 [10:43:16]quantity*price = 80061 [10:43:16]sum+1 = 80063 [10:43:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.62 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 85.02 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 131 21.10.2024 10:43 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 187667 ФПД: 190368351968620 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T104319&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187667&fm=190368351968620&tin=02508201610067®Number=0000000000100030&sum=80000 [10:43:17]StoreToDocumentArchive [10:43:17]shift 460 fd 187667 [10:43:17]save to /storage/0460/doc_00187667 [10:43:17]save last doc name /storage/0460/doc_00187667 to /storage/kkm_last_doc_name [10:43:17]save OK [10:43:17]Clear old archive folders... [10:43:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:43:17]tlvbuf is B6F8ADD0 [10:43:17]SAM_PROTO_ClearQueue [10:43:17]wFMCommunicate request_size=4 [10:43:17]MH_SAM_APDU [10:43:17]CAPDU: 80 09 00 00 [10:43:17]Write to MH i2c: E2 08 00 C3 44 80 09 00 00 00 00 00 00 79 [10:43:17]Write i2c OK [10:43:17]MH_I2C_Read... [10:43:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:43:17]Read from MH i2c: E2 [10:43:17]MH_I2C_Read... [10:43:17]Read from MH i2c: E2 03 00 [10:43:17]MH_I2C_Read... [10:43:17]Read from MH i2c: E2 03 00 C3 44 00 90 00 7B [10:43:17]RAPDU: 90 00 [10:43:17]wFMCommunicate OK [10:43:17]SAM_PROTO_ClearQueue done [10:43:17]KKMCreateOFDPacket [10:43:17]OFDProtocolAddRootSTLVToBuf [10:43:17]FM_MakeSignedData [10:43:17]FM_MakeSignedData [10:43:17]SAM_PROTO_SignData [10:43:17]wFMCommunicate request_size=4 [10:43:17]MH_SAM_APDU [10:43:17]CAPDU: 80 0D 01 02 [10:43:17]Write to MH i2c: E2 08 00 C4 44 80 0D 01 02 00 00 00 00 81 [10:43:17]Write i2c OK [10:43:17]MH_I2C_Read... [10:43:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:43:17]OFD Sender: No OFD packet to send [10:43:17]Read from MH i2c: E2 [10:43:17]MH_I2C_Read... [10:43:17]Read from MH i2c: E2 03 00 [10:43:17]MH_I2C_Read... [10:43:17]Read from MH i2c: E2 03 00 C4 44 00 90 00 7C [10:43:17]RAPDU: 90 00 [10:43:17]wFMCommunicate OK [10:43:17]wFMCommunicate request_size=255 [10:43:17]MH_SAM_APDU [10:43:17]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 26 2A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 BE 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 36 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 83 00 00 00 F4 03 04 00 47 30 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 13 DD 02 00 35 04 06 00 AD [10:43:17]Write to MH i2c: E2 02 01 C5 44 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 26 2A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 BE 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 36 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 83 00 00 00 F4 03 04 00 47 30 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 13 DD 02 00 35 04 06 00 AD 00 00 44 [10:43:17]Write i2c OK [10:43:17]MH_I2C_Read... [10:43:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:43:17]Read from MH i2c: E2 [10:43:17]MH_I2C_Read... [10:43:17]Read from MH i2c: E2 03 00 [10:43:17]MH_I2C_Read... [10:43:17]Read from MH i2c: E2 03 00 C5 44 00 90 00 7D [10:43:17]RAPDU: 90 00 [10:43:17]wFMCommunicate OK [10:43:17]wFMCommunicate request_size=10 [10:43:17]MH_SAM_APDU [10:43:17]CAPDU: 80 0D 02 02 05 23 95 FE DD 6C [10:43:17]Write to MH i2c: E2 0D 00 C6 44 80 0D 02 02 05 00 23 95 FE DD 6C 00 00 8D [10:43:17]Write i2c OK [10:43:17]MH_I2C_Read... [10:43:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:43:17]Read from MH i2c: E2 [10:43:17]MH_I2C_Read... [10:43:17]Read from MH i2c: E2 03 00 [10:43:17]MH_I2C_Read... [10:43:17]Read from MH i2c: E2 03 00 C6 44 00 90 00 7E [10:43:17]RAPDU: 90 00 [10:43:17]wFMCommunicate OK [10:43:17]wFMCommunicate request_size=4 [10:43:17]MH_SAM_APDU [10:43:17]CAPDU: 80 0D 03 02 [10:43:17]Write to MH i2c: E2 08 00 C7 44 80 0D 03 02 00 00 00 00 86 [10:43:17]Write i2c OK [10:43:17]MH_I2C_Read... [10:43:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:43:17]Read from MH i2c: E2 [10:43:17]MH_I2C_Read... [10:43:17]Read from MH i2c: E2 0B 00 [10:43:17]MH_I2C_Read... [10:43:17]Read from MH i2c: E2 0B 00 C7 44 00 52 B8 E9 68 AD 10 A0 C6 90 00 05 [10:43:17]RAPDU: 52 B8 E9 68 AD 10 A0 C6 90 00 [10:43:17]wFMCommunicate OK [10:43:17]SAM_PROTO_SignData done [10:43:17]FM_MakeSignedData done [10:43:17]CreateOFDProtocolMessage [10:43:17]wFMCommunicate request_size=4 [10:43:17]MH_SAM_APDU [10:43:17]CAPDU: 80 11 00 00 [10:43:17]Write to MH i2c: E2 08 00 C8 44 80 11 00 00 00 00 00 00 86 [10:43:17]Write i2c OK [10:43:17]MH_I2C_Read... [10:43:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:43:17]Read from MH i2c: E2 [10:43:17]MH_I2C_Read... [10:43:17]Read from MH i2c: E2 17 00 [10:43:17]MH_I2C_Read... [10:43:17]Read from MH i2c: E2 17 00 C8 44 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 D4 [10:43:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [10:43:17]wFMCommunicate OK [10:43:17]CreateOFDProtocolMessage done [10:43:17]OFDSenderStorePacket 187667 [10:43:17]StoreOFDPacket docnum=187667 [10:43:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 16 88 07 01 B5 3A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 26 2A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 BE 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 36 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 83 00 00 00 F4 03 04 00 47 30 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 13 DD 02 00 35 04 06 00 AD 23 95 FE DD 6C 52 B8 E9 68 AD 10 A0 C6 [10:43:17]CheckFolder [10:43:17]dirname=/storage/ofd_packets [10:43:17]CheckFolder done [10:43:17]ProducePacketName [10:43:17]name=ofd_packets/00187667 [10:43:17]NVStorageSaveData ofd_packets/00187667 [10:43:17]File name is /storage/ofd_packets/00187667 [10:43:17]Write 301 bytes [10:43:17]NVStorageSaveData done [10:43:17]OFDSenderStorePacket done [10:43:17]KKMCreateOFDPacket done [10:43:17]NVStorageSaveData kkm_last_timestamp [10:43:17]File name is /storage/kkm_last_timestamp [10:43:17]Write 4 bytes [10:43:17]NVStorageSaveData done [10:43:17]ExternCall_PrintAddStr [10:43:17]wPrintStart [10:43:17]Write to MH i2c: 01 00 00 C9 44 0D [10:43:17]Write i2c OK [10:43:17]MH_I2C_Read... [10:43:17]Read from MH i2c: 01 [10:43:17]MH_I2C_Read... [10:43:17]Read from MH i2c: 01 07 00 [10:43:17]MH_I2C_Read... [10:43:17]Read from MH i2c: 01 07 00 C9 44 00 00 00 00 00 FF 0F 22 [10:43:17]RasterBufferAndPrint [10:43:17]line Счет N : (1)209719 [10:43:17]line ИНН: 02508201610067 [10:43:17]line Контрольно-Кассовый Чек [10:43:17]line ПРОДАЖА [10:43:17]line ТРК (МРК, ГНК) : 13 [10:43:17]line Товар: 2710124500 [10:43:17]line Аи-95-К-3 [10:43:17]line 10.790 * 74.20 [10:43:17]line = 800.62 [10:43:17]line НДС 12% НСП 1% [10:43:17]line > о реализуемом товаре [10:43:17]line ОКРУГЛЕНИЕ: -0.62 [10:43:17]line ИТОГО: 800.00 [10:43:17]line Внесено: 800.00 [10:43:17]line СДАЧА: 0.00 [10:43:17]line НСП 1% : 7.08 [10:43:17]line НДС 12% : 85.02 [10:43:17]line Наличными: 800.00 [10:43:17]line Безнал.: 0.00 [10:43:17]line Место: АЗС № 86 "Партнер Нефть" [10:43:17]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [10:43:17]line СНО: Общий режим [10:43:17]line Чек 131 21.10.2024 10:43 [10:43:17]line Смена: 460 ФФД: 1.0 [10:43:17]line ЗНМ: 0300000155 [10:43:17]line РНМ: 0000000000100030 [10:43:17]line Версия ККМ: 001 [10:43:17]line ФМ: 0000000000965340 [10:43:17]line ФД: 187667 [10:43:17]line ФПД: 190368351968620 [10:43:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T104319&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187667&fm=190368351968620&tin=02508201610067®Number=0000000000100030&sum=80000 [10:43:17]written 0, free lines is 4095 [10:43:17]OFD Sender: Processing packet 187667 [packets to send 1062, broken 1061] [10:43:17]ProducePacketName [10:43:17]name=ofd_packets/00187667 [10:43:17]OFD Sender: To server: pG, [10:43:17]CommunicateWithHost lk.salyk.kg:30040 [10:43:17]ConnectInit lk.salyk.kg [10:43:17]Connected sock=8 [10:43:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 16 88 07 01 B5 3A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 26 2A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 BE 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 36 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 83 00 00 00 F4 03 04 00 47 30 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 13 DD 02 00 35 04 06 00 AD 23 95 FE DD 6C 52 B8 E9 68 AD 10 A0 C6 [10:43:18]Write to MH i2c: 01 00 00 F4 44 38 [10:43:18]Write i2c OK [10:43:18]MH_I2C_Read... [10:43:18]Read from MH i2c: 01 [10:43:18]MH_I2C_Read... [10:43:18]Read from MH i2c: 01 07 00 [10:43:18]MH_I2C_Read... [10:43:18]Read from MH i2c: 01 07 00 F4 44 00 00 00 00 00 7D 0C C8 [10:43:18]RasterBufferAndPrint [10:43:18]line [10:43:18]line [10:43:18]line [10:43:18]line [10:43:18]line [10:43:18]written 0, free lines is 3200 [10:43:18]MH_Cut [10:43:18]Write to MH i2c: D1 01 00 FB 44 01 11 [10:43:18]Write i2c OK [10:43:18]MH_I2C_Read... [10:43:18]Read from MH i2c: D1 [10:43:18]MH_I2C_Read... [10:43:18]Read from MH i2c: D1 01 00 [10:43:18]MH_I2C_Read... [10:43:18]Read from MH i2c: D1 01 00 FB 44 00 10 [10:43:18]Write to MH i2c: 01 00 00 FC 44 40 [10:43:18]Write i2c OK [10:43:18]MH_I2C_Read... [10:43:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 1F 21 47 00 F4 E3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 13 DD 02 00 F4 03 04 00 37 DA 15 67 B6 04 01 00 00 AB C0 75 56 5E 87 B0 40 [10:43:18]CommunicateWithHost err = 0 [10:43:18]CheckOFDResponse [10:43:18]1017 (14) - 77093643461234 [10:43:18]1041 (16) - 0000000000965340 [10:43:18]1040 (4) - 187667 [10:43:18]1012 (4) - 21.10.2024 04:36 [10:43:18]1206 (1) - 0 [10:43:18]OFD Sender: Remove packet 187667 [10:43:18]ProducePacketName [10:43:18]name=ofd_packets/00187667 [10:43:18]NVStorageDeleteData [10:43:18]OFD Sender: No OFD packet to send [10:43:19]*** Cut start [10:43:19]*** Partial cut [10:43:19]*** CUTSNS_PIN = 1 [10:43:19]*** CUTSNS_PIN = 0 [10:43:19]*** Brake cut motor [10:43:19]Read from MH i2c: 01 [10:43:19]MH_I2C_Read... [10:43:19]*** Stop cut motor [10:43:19]*** Cut end [10:43:19]Read from MH i2c: 01 07 00 [10:43:19]MH_I2C_Read... [10:43:19]Read from MH i2c: 01 07 00 FC 44 00 00 00 00 00 FF 0F 55 [10:43:19]process_action close_receipt done [10:43:19]requested_data is exist [10:43:19]produce_requested_data [10:43:19]requested_item fm.sn is exist - process it [10:43:19]wFMCommunicate request_size=4 [10:43:19]MH_SAM_APDU [10:43:19]CAPDU: 80 11 00 00 [10:43:19]Write to MH i2c: E2 08 00 FD 44 80 11 00 00 00 00 00 00 BB [10:43:19]Write i2c OK [10:43:19]MH_I2C_Read... [10:43:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:43:19]Read from MH i2c: E2 [10:43:19]MH_I2C_Read... [10:43:19]Read from MH i2c: E2 17 00 [10:43:19]MH_I2C_Read... [10:43:19]Read from MH i2c: E2 17 00 FD 44 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 09 [10:43:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [10:43:19]wFMCommunicate OK [10:43:19]requested_item fd.num is exist - process it [10:43:19]SAM_PROTO_GetFieldsCounters [10:43:19]wFMCommunicate request_size=4 [10:43:19]MH_SAM_APDU [10:43:19]CAPDU: 80 13 00 00 [10:43:19]Write to MH i2c: E2 08 00 FE 44 80 13 00 00 00 00 00 00 BE [10:43:19]Write i2c OK [10:43:19]MH_I2C_Read... [10:43:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:43:20]Read from MH i2c: E2 [10:43:20]MH_I2C_Read... [10:43:20]Read from MH i2c: E2 62 00 [10:43:20]MH_I2C_Read... [10:43:20]Read from MH i2c: E2 62 00 FE 44 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 13 DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 83 00 00 00 5E 04 04 00 83 00 00 00 57 04 04 00 84 00 00 00 19 04 04 00 00 00 00 00 90 00 0D [10:43:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 13 DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 83 00 00 00 5E 04 04 00 83 00 00 00 57 04 04 00 84 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:43:20]wFMCommunicate OK [10:43:20]SAM_PROTO_GetFieldsCounters done [10:43:20]requested_item shift.num is exist - process it [10:43:20]requested_item shift.opened is exist - process it [10:43:20]req_shift_opened [10:43:20]FM_GetShiftState [10:43:20]SAM_PROTO_GetShiftState [10:43:20]wFMCommunicate request_size=4 [10:43:20]MH_SAM_APDU [10:43:20]CAPDU: 80 13 01 00 [10:43:20]Write to MH i2c: E2 08 00 FF 44 80 13 01 00 00 00 00 00 C0 [10:43:20]Write i2c OK [10:43:20]MH_I2C_Read... [10:43:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:43:20]Read from MH i2c: E2 [10:43:20]MH_I2C_Read... [10:43:20]Read from MH i2c: E2 0E 00 [10:43:20]MH_I2C_Read... [10:43:20]Read from MH i2c: E2 0E 00 FF 44 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 1F [10:43:20]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [10:43:20]wFMCommunicate OK [10:43:20]SAM_PROTO_GetShiftState done [10:43:20]FM_GetShiftState done [10:43:20]req_shift_opened done [10:43:20]requested_item shift.open_date is exist - process it [10:43:20]req_shift_open_date [10:43:20]req_shift_open_date done [10:43:20]produce_requested_data done [10:43:20]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187667,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [10:43:20]process_action_free close_receipt [10:43:20]json_value_free [10:43:20]json_value_free done [10:43:20]process_json_proto returns [10:43:20]Send response to host [10:43:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187667,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [10:43:20]free response buf [10:43:20]execute_script done [10:43:20]execute_script returns [10:43:20]free content buf [10:43:20]Sock 9.Close socket [10:43:20]Sock 9.Thread stoped [10:43:23]OFD Sender: No OFD packet to send [10:43:28]OFD Sender: No OFD packet to send [10:43:33]OFD Sender: No OFD packet to send [10:43:38]OFD Sender: No OFD packet to send [10:43:43]OFD Sender: No OFD packet to send [10:43:48]OFD Sender: No OFD packet to send [10:43:53]OFD Sender: No OFD packet to send [10:43:59]OFD Sender: No OFD packet to send [10:44:04]OFD Sender: No OFD packet to send [10:44:09]OFD Sender: No OFD packet to send [10:44:14]OFD Sender: No OFD packet to send [10:44:19]OFD Sender: No OFD packet to send [10:44:24]OFD Sender: No OFD packet to send [10:44:29]OFD Sender: No OFD packet to send [10:44:34]OFD Sender: No OFD packet to send [10:44:39]OFD Sender: No OFD packet to send [10:44:44]OFD Sender: No OFD packet to send [10:44:49]OFD Sender: No OFD packet to send [10:44:54]OFD Sender: No OFD packet to send [10:44:59]OFD Sender: No OFD packet to send [10:45:04]OFD Sender: No OFD packet to send [10:45:09]OFD Sender: No OFD packet to send [10:45:14]OFD Sender: No OFD packet to send [10:45:19]OFD Sender: No OFD packet to send [10:45:24]OFD Sender: No OFD packet to send [10:45:29]OFD Sender: No OFD packet to send [10:45:34]OFD Sender: No OFD packet to send [10:45:39]OFD Sender: No OFD packet to send [10:45:44]OFD Sender: No OFD packet to send [10:45:49]OFD Sender: No OFD packet to send [10:45:54]OFD Sender: No OFD packet to send [10:45:59]OFD Sender: No OFD packet to send [10:46:04]OFD Sender: No OFD packet to send [10:46:09]OFD Sender: No OFD packet to send [10:46:14]OFD Sender: No OFD packet to send [10:46:19]OFD Sender: No OFD packet to send [10:46:24]OFD Sender: No OFD packet to send [10:46:29]OFD Sender: No OFD packet to send [10:46:34]OFD Sender: No OFD packet to send [10:46:39]OFD Sender: No OFD packet to send [10:46:44]OFD Sender: No OFD packet to send [10:46:49]OFD Sender: No OFD packet to send [10:46:54]OFD Sender: No OFD packet to send [10:46:59]OFD Sender: No OFD packet to send [10:47:04]OFD Sender: No OFD packet to send [10:47:09]OFD Sender: No OFD packet to send [10:47:14]OFD Sender: No OFD packet to send [10:47:19]OFD Sender: No OFD packet to send [10:47:24]OFD Sender: No OFD packet to send [10:47:29]OFD Sender: No OFD packet to send [10:47:34]OFD Sender: No OFD packet to send [10:47:39]OFD Sender: No OFD packet to send [10:47:44]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:12]accept exits with 10 [10:48:12]New connection [10:48:12]New thread 3067157860 created [10:48:12]Thread 3067014500 joined [10:48:12]Waiting for new connection... [10:48:12] Sock 10.Parse request [10:48:12]Sock 10.Check first char [10:48:12]Sock 10.First char is OK [10:48:12]request: POST /json_proto HTTP/1.0 [10:48:12]Method: POST [10:48:12]URL: /json_proto [10:48:12]Method is POST - this is cgi request [10:48:12]url: /json_proto [10:48:12]query_string will be loaded in cgi processing [10:48:12]execute_cgi json_proto POST (null) [10:48:12]execute_cgi path=json_proto method=POST [10:48:12]POST find Content-Length [10:48:12]Host: 172.17.42.131:8080 [10:48:12]Content-Length: 678 [10:48:12]Content-Type: application/json [10:48:12] [10:48:12]POST finish read [10:48:12]Found Content-Length = 678 [10:48:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209720", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 11.960, "sum" : 800.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:48:12]execute_script... [10:48: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)209720", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 11.960, "sum" : 800.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:48:12]POST & json_proto [10:48:12]process_json_proto [10:48:12]json parsed OK: [10:48:12]protocol is kg_v1.0 [10:48:12]action value=close_receipt [10:48:12]process_action close_receipt [10:48:12]cmd_close_receipt [10:48:12]MH_GetDate [10:48:12]Write to MH i2c: F0 00 00 00 45 34 [10:48:12]Write i2c OK [10:48:12]MH_I2C_Read... [10:48:12]Read from MH i2c: F0 [10:48:12]MH_I2C_Read... [10:48:12]Read from MH i2c: F0 09 00 [10:48:12]MH_I2C_Read... [10:48:12]Read from MH i2c: F0 09 00 00 45 00 70 31 16 67 A0 18 CA 66 43 [10:48:12]GetLastDocTimeStamp 1729507399 [10:48:12]current date 1729507696 [10:48:12]FM_GetShiftState [10:48:12]SAM_PROTO_GetShiftState [10:48:12]wFMCommunicate request_size=4 [10:48:12]MH_SAM_APDU [10:48:12]CAPDU: 80 13 01 00 [10:48:12]Write to MH i2c: E2 08 00 01 45 80 13 01 00 00 00 00 00 C3 [10:48:12]Write i2c OK [10:48:12]MH_I2C_Read... [10:48:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:48:12]Read from MH i2c: E2 [10:48:12]MH_I2C_Read... [10:48:12]Read from MH i2c: E2 0E 00 [10:48:12]MH_I2C_Read... [10:48:12]Read from MH i2c: E2 0E 00 01 45 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 22 [10:48:12]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [10:48:12]wFMCommunicate OK [10:48:12]SAM_PROTO_GetShiftState done [10:48:12]FM_GetShiftState done [10:48:12]opened in 1729469754 [10:48:12]opened+sec_in_day 1729556154 [10:48:12]quantity*price = 80012 [10:48:12]sum+1 = 80013 [10:48:12]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.97 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 132 21.10.2024 10:48 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 187668 ФПД: 135545574445344 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T104816&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187668&fm=135545574445344&tin=02508201610067®Number=0000000000100030&sum=80000 [10:48:13]StoreToDocumentArchive [10:48:13]shift 460 fd 187668 [10:48:13]save to /storage/0460/doc_00187668 [10:48:14]save last doc name /storage/0460/doc_00187668 to /storage/kkm_last_doc_name [10:48:14]save OK [10:48:14]Clear old archive folders... [10:48:14]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:48:14]tlvbuf is 0112EF00 [10:48:14]SAM_PROTO_ClearQueue [10:48:14]wFMCommunicate request_size=4 [10:48:14]MH_SAM_APDU [10:48:14]CAPDU: 80 09 00 00 [10:48:14]Write to MH i2c: E2 08 00 0E 45 80 09 00 00 00 00 00 00 C5 [10:48:14]Write i2c OK [10:48:14]MH_I2C_Read... [10:48:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:48:14]Read from MH i2c: E2 [10:48:14]MH_I2C_Read... [10:48:14]Read from MH i2c: E2 03 00 [10:48:14]MH_I2C_Read... [10:48:14]Read from MH i2c: E2 03 00 0E 45 00 90 00 C7 [10:48:14]RAPDU: 90 00 [10:48:14]wFMCommunicate OK [10:48:14]SAM_PROTO_ClearQueue done [10:48:14]KKMCreateOFDPacket [10:48:14]OFDProtocolAddRootSTLVToBuf [10:48:14]FM_MakeSignedData [10:48:14]FM_MakeSignedData [10:48:14]SAM_PROTO_SignData [10:48:14]wFMCommunicate request_size=4 [10:48:14]MH_SAM_APDU [10:48:14]CAPDU: 80 0D 01 02 [10:48:14]Write to MH i2c: E2 08 00 0F 45 80 0D 01 02 00 00 00 00 CD [10:48:14]Write i2c OK [10:48:14]MH_I2C_Read... [10:48:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:48:14]Read from MH i2c: E2 [10:48:14]MH_I2C_Read... [10:48:14]Read from MH i2c: E2 03 00 [10:48:14]MH_I2C_Read... [10:48:14]Read from MH i2c: E2 03 00 0F 45 00 90 00 C8 [10:48:14]RAPDU: 90 00 [10:48:14]wFMCommunicate OK [10:48:14]wFMCommunicate request_size=255 [10:48:14]MH_SAM_APDU [10:48: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 33 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 84 00 00 00 F4 03 04 00 70 31 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 14 DD 02 00 35 04 06 00 7B [10:48:14]Write to MH i2c: E2 02 01 10 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 33 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 84 00 00 00 F4 03 04 00 70 31 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 14 DD 02 00 35 04 06 00 7B 00 00 09 [10:48:14]Write i2c OK [10:48:14]MH_I2C_Read... [10:48:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:48:14]Read from MH i2c: E2 [10:48:14]MH_I2C_Read... [10:48:14]Read from MH i2c: E2 03 00 [10:48:14]MH_I2C_Read... [10:48:14]Read from MH i2c: E2 03 00 10 45 00 90 00 C9 [10:48:14]RAPDU: 90 00 [10:48:14]wFMCommunicate OK [10:48:14]wFMCommunicate request_size=10 [10:48:14]MH_SAM_APDU [10:48:14]CAPDU: 80 0D 02 02 05 47 29 D0 D1 20 [10:48:14]Write to MH i2c: E2 0D 00 11 45 80 0D 02 02 05 00 47 29 D0 D1 20 00 00 0B [10:48:14]Write i2c OK [10:48:14]MH_I2C_Read... [10:48:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:48:14]Read from MH i2c: E2 [10:48:14]MH_I2C_Read... [10:48:14]Read from MH i2c: E2 03 00 [10:48:14]MH_I2C_Read... [10:48:14]Read from MH i2c: E2 03 00 11 45 00 90 00 CA [10:48:14]RAPDU: 90 00 [10:48:14]wFMCommunicate OK [10:48:14]wFMCommunicate request_size=4 [10:48:14]MH_SAM_APDU [10:48:14]CAPDU: 80 0D 03 02 [10:48:14]Write to MH i2c: E2 08 00 12 45 80 0D 03 02 00 00 00 00 D2 [10:48:14]Write i2c OK [10:48:14]MH_I2C_Read... [10:48:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:48:14]Read from MH i2c: E2 [10:48:14]MH_I2C_Read... [10:48:14]Read from MH i2c: E2 0B 00 [10:48:14]MH_I2C_Read... [10:48:14]Read from MH i2c: E2 0B 00 12 45 00 71 A1 6E 7C B5 46 48 8B 90 00 9D [10:48:14]RAPDU: 71 A1 6E 7C B5 46 48 8B 90 00 [10:48:14]wFMCommunicate OK [10:48:14]SAM_PROTO_SignData done [10:48:14]FM_MakeSignedData done [10:48:14]CreateOFDProtocolMessage [10:48:14]wFMCommunicate request_size=4 [10:48:14]MH_SAM_APDU [10:48:14]CAPDU: 80 11 00 00 [10:48:14]Write to MH i2c: E2 08 00 13 45 80 11 00 00 00 00 00 00 D2 [10:48:14]Write i2c OK [10:48:14]MH_I2C_Read... [10:48:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:48:14]Read from MH i2c: E2 [10:48:14]MH_I2C_Read... [10:48:14]Read from MH i2c: E2 17 00 [10:48:14]MH_I2C_Read... [10:48:14]Read from MH i2c: E2 17 00 13 45 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 20 [10:48:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [10:48:14]wFMCommunicate OK [10:48:14]CreateOFDProtocolMessage done [10:48:14]OFDSenderStorePacket 187668 [10:48:14]StoreOFDPacket docnum=187668 [10:48:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 46 B8 07 01 28 79 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 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 84 00 00 00 F4 03 04 00 70 31 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 14 DD 02 00 35 04 06 00 7B 47 29 D0 D1 20 71 A1 6E 7C B5 46 48 8B [10:48:14]CheckFolder [10:48:14]dirname=/storage/ofd_packets [10:48:14]CheckFolder done [10:48:14]ProducePacketName [10:48:14]name=ofd_packets/00187668 [10:48:14]NVStorageSaveData ofd_packets/00187668 [10:48:14]File name is /storage/ofd_packets/00187668 [10:48:14]Write 301 bytes [10:48:14]NVStorageSaveData done [10:48:14]OFDSenderStorePacket done [10:48:14]KKMCreateOFDPacket done [10:48:14]NVStorageSaveData kkm_last_timestamp [10:48:14]File name is /storage/kkm_last_timestamp [10:48:14]Write 4 bytes [10:48:14]NVStorageSaveData done [10:48:14]ExternCall_PrintAddStr [10:48:14]wPrintStart [10:48:14]Write to MH i2c: 01 00 00 14 45 59 [10:48:14]Write i2c OK [10:48:14]MH_I2C_Read... [10:48:14]Read from MH i2c: 01 [10:48:14]MH_I2C_Read... [10:48:14]Read from MH i2c: 01 07 00 [10:48:14]MH_I2C_Read... [10:48:14]Read from MH i2c: 01 07 00 14 45 00 00 00 00 00 FF 0F 6E [10:48:14]RasterBufferAndPrint [10:48:14]line Счет N : (1)209720 [10:48:14]line ИНН: 02508201610067 [10:48:14]line Контрольно-Кассовый Чек [10:48:14]line ПРОДАЖА [10:48:14]line ТРК (МРК, ГНК) : 12 [10:48:14]line Товар: 2710124130 [10:48:14]line Аи-92-К-3 [10:48:14]line 11.960 * 66.90 [10:48:14]line = 800.12 [10:48:14]line НДС 12% НСП 1% [10:48:14]line > о реализуемом товаре [10:48:14]line ОКРУГЛЕНИЕ: -0.12 [10:48:14]line ИТОГО: 800.00 [10:48:14]line Внесено: 800.00 [10:48:14]line СДАЧА: 0.00 [10:48:14]line НСП 1% : 7.08 [10:48:14]line НДС 12% : 84.97 [10:48:14]line Наличными: 800.00 [10:48:14]line Безнал.: 0.00 [10:48:14]line Место: АЗС № 86 "Партнер Нефть" [10:48:14]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [10:48:14]line СНО: Общий режим [10:48:14]line Чек 132 21.10.2024 10:48 [10:48:14]line Смена: 460 ФФД: 1.0 [10:48:14]line ЗНМ: 0300000155 [10:48:14]line РНМ: 0000000000100030 [10:48:14]line Версия ККМ: 001 [10:48:14]line ФМ: 0000000000965340 [10:48:14]line ФД: 187668 [10:48:14]line ФПД: 135545574445344 [10:48:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T104816&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187668&fm=135545574445344&tin=02508201610067®Number=0000000000100030&sum=80000 [10:48:14]OFD Sender: Processing packet 187668 [packets to send 1062, broken 1061] [10:48:14]ProducePacketName [10:48:14]name=ofd_packets/00187668 [10:48:14]OFD Sender: To server: pG, [10:48:14]CommunicateWithHost lk.salyk.kg:30040 [10:48:14]ConnectInit lk.salyk.kg [10:48:14]written 0, free lines is 4095 [10:48:14]Connected sock=9 [10:48:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 46 B8 07 01 28 79 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 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 84 00 00 00 F4 03 04 00 70 31 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 14 DD 02 00 35 04 06 00 7B 47 29 D0 D1 20 71 A1 6E 7C B5 46 48 8B [10:48:15]Write to MH i2c: 01 00 00 3F 45 84 [10:48:15]Write i2c OK [10:48:15]MH_I2C_Read... [10:48:15]Read from MH i2c: 01 [10:48:15]MH_I2C_Read... [10:48:15]Read from MH i2c: 01 07 00 [10:48:15]MH_I2C_Read... [10:48:15]Read from MH i2c: 01 07 00 3F 45 00 00 00 00 00 7D 0C 14 [10:48:15]RasterBufferAndPrint [10:48:15]line [10:48:15]line [10:48:15]line [10:48:15]line [10:48:15]line [10:48:15]written 0, free lines is 3200 [10:48:15]MH_Cut [10:48:15]Write to MH i2c: D1 01 00 46 45 01 5D [10:48:15]Write i2c OK [10:48:15]MH_I2C_Read... [10:48:15]Read from MH i2c: D1 [10:48:15]MH_I2C_Read... [10:48:15]Read from MH i2c: D1 01 00 [10:48:15]MH_I2C_Read... [10:48:15]Read from MH i2c: D1 01 00 46 45 00 5C [10:48:15]Write to MH i2c: 01 00 00 47 45 8C [10:48:15]Write i2c OK [10:48:15]MH_I2C_Read... [10:48:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 21 D9 47 00 32 75 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 14 DD 02 00 F4 03 04 00 60 DB 15 67 B6 04 01 00 00 F2 9B 1E 92 1B E3 6B 1F [10:48:15]CommunicateWithHost err = 0 [10:48:15]CheckOFDResponse [10:48:15]1017 (14) - 77093643461234 [10:48:15]1041 (16) - 0000000000965340 [10:48:15]1040 (4) - 187668 [10:48:15]1012 (4) - 21.10.2024 04:41 [10:48:15]1206 (1) - 0 [10:48:15]OFD Sender: Remove packet 187668 [10:48:15]ProducePacketName [10:48:15]name=ofd_packets/00187668 [10:48:15]NVStorageDeleteData [10:48:15]OFD Sender: No OFD packet to send [10:48:16]*** Cut start [10:48:16]*** Partial cut [10:48:16]*** CUTSNS_PIN = 1 [10:48:16]*** CUTSNS_PIN = 0 [10:48:16]*** Brake cut motor [10:48:16]Read from MH i2c: 01 [10:48:16]MH_I2C_Read... [10:48:16]*** Stop cut motor [10:48:16]*** Cut end [10:48:16]Read from MH i2c: 01 07 00 [10:48:16]MH_I2C_Read... [10:48:16]Read from MH i2c: 01 07 00 47 45 00 00 00 00 00 FF 0F A1 [10:48:16]process_action close_receipt done [10:48:16]requested_data is exist [10:48:16]produce_requested_data [10:48:16]requested_item fm.sn is exist - process it [10:48:16]wFMCommunicate request_size=4 [10:48:16]MH_SAM_APDU [10:48:16]CAPDU: 80 11 00 00 [10:48:16]Write to MH i2c: E2 08 00 48 45 80 11 00 00 00 00 00 00 07 [10:48:16]Write i2c OK [10:48:16]MH_I2C_Read... [10:48:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:48:16]Read from MH i2c: E2 [10:48:16]MH_I2C_Read... [10:48:16]Read from MH i2c: E2 17 00 [10:48:16]MH_I2C_Read... [10:48:16]Read from MH i2c: E2 17 00 48 45 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 55 [10:48:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [10:48:16]wFMCommunicate OK [10:48:16]requested_item fd.num is exist - process it [10:48:16]SAM_PROTO_GetFieldsCounters [10:48:16]wFMCommunicate request_size=4 [10:48:16]MH_SAM_APDU [10:48:16]CAPDU: 80 13 00 00 [10:48:16]Write to MH i2c: E2 08 00 49 45 80 13 00 00 00 00 00 00 0A [10:48:16]Write i2c OK [10:48:16]MH_I2C_Read... [10:48:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:48:16]Read from MH i2c: E2 [10:48:16]MH_I2C_Read... [10:48:16]Read from MH i2c: E2 62 00 [10:48:16]MH_I2C_Read... [10:48:16]Read from MH i2c: E2 62 00 49 45 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 14 DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 84 00 00 00 5E 04 04 00 84 00 00 00 57 04 04 00 85 00 00 00 19 04 04 00 00 00 00 00 90 00 5D [10:48:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 14 DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 84 00 00 00 5E 04 04 00 84 00 00 00 57 04 04 00 85 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:48:16]wFMCommunicate OK [10:48:16]SAM_PROTO_GetFieldsCounters done [10:48:16]requested_item shift.num is exist - process it [10:48:16]requested_item shift.opened is exist - process it [10:48:16]req_shift_opened [10:48:16]FM_GetShiftState [10:48:16]SAM_PROTO_GetShiftState [10:48:16]wFMCommunicate request_size=4 [10:48:16]MH_SAM_APDU [10:48:16]CAPDU: 80 13 01 00 [10:48:16]Write to MH i2c: E2 08 00 4A 45 80 13 01 00 00 00 00 00 0C [10:48:16]Write i2c OK [10:48:16]MH_I2C_Read... [10:48:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:48:16]Read from MH i2c: E2 [10:48:16]MH_I2C_Read... [10:48:16]Read from MH i2c: E2 0E 00 [10:48:16]MH_I2C_Read... [10:48:16]Read from MH i2c: E2 0E 00 4A 45 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 6B [10:48:16]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [10:48:16]wFMCommunicate OK [10:48:16]SAM_PROTO_GetShiftState done [10:48:16]FM_GetShiftState done [10:48:16]req_shift_opened done [10:48:16]requested_item shift.open_date is exist - process it [10:48:16]req_shift_open_date [10:48:16]req_shift_open_date done [10:48:16]produce_requested_data done [10:48:16]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187668,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [10:48:16]process_action_free close_receipt [10:48:16]json_value_free [10:48:16]json_value_free done [10:48:16]process_json_proto returns [10:48:16]Send response to host [10:48:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187668,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [10:48:16]free response buf [10:48:16]execute_script done [10:48:16]execute_script returns [10:48:16]free content buf [10:48:16]Sock 10.Close socket [10:48:16]Sock 10.Thread stoped [10:48:20]OFD Sender: No OFD packet to send [10:48:25]OFD Sender: No OFD packet to send [10:48:30]OFD Sender: No OFD packet to send [10:48:30]accept exits with 8 [10:48:30]New connection [10:48:30]New thread 3067014500 created [10:48:30]Thread 3067157860 joined [10:48:30]Waiting for new connection... [10:48:30] Sock 8.Parse request [10:48:30]Sock 8.Check first char [10:48:30]Sock 8.First char is OK [10:48:30]request: POST /json_proto HTTP/1.0 [10:48:30]Method: POST [10:48:30]URL: /json_proto [10:48:30]Method is POST - this is cgi request [10:48:30]url: /json_proto [10:48:30]query_string will be loaded in cgi processing [10:48:30]execute_cgi json_proto POST (null) [10:48:30]execute_cgi path=json_proto method=POST [10:48:30]POST find Content-Length [10:48:30]Host: 172.17.42.131:8080 [10:48:30]Content-Length: 688 [10:48:30]Content-Type: application/json [10:48:30] [10:48:30]POST finish read [10:48:30]Found Content-Length = 688 [10:48:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209721", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 15.550, "sum" : 1200.46, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1200.00, "total" : 1200.00, "payments": [ { "type": 0, "sum" : 1200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:48:30]execute_script... [10:48: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)209721", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 15.550, "sum" : 1200.46, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1200.00, "total" : 1200.00, "payments": [ { "type": 0, "sum" : 1200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:48:30]POST & json_proto [10:48:30]process_json_proto [10:48:30]json parsed OK: [10:48:30]protocol is kg_v1.0 [10:48:30]action value=close_receipt [10:48:30]process_action close_receipt [10:48:30]cmd_close_receipt [10:48:30]MH_GetDate [10:48:30]Write to MH i2c: F0 00 00 4B 45 7F [10:48:30]Write i2c OK [10:48:30]MH_I2C_Read... [10:48:30]Read from MH i2c: F0 [10:48:30]MH_I2C_Read... [10:48:30]Read from MH i2c: F0 09 00 [10:48:30]MH_I2C_Read... [10:48:30]Read from MH i2c: F0 09 00 4B 45 00 82 31 16 67 A0 18 CA 66 A0 [10:48:30]GetLastDocTimeStamp 1729507696 [10:48:30]current date 1729507714 [10:48:30]FM_GetShiftState [10:48:30]SAM_PROTO_GetShiftState [10:48:30]wFMCommunicate request_size=4 [10:48:30]MH_SAM_APDU [10:48:30]CAPDU: 80 13 01 00 [10:48:30]Write to MH i2c: E2 08 00 4C 45 80 13 01 00 00 00 00 00 0E [10:48:30]Write i2c OK [10:48:30]MH_I2C_Read... [10:48:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:48:30]Read from MH i2c: E2 [10:48:30]MH_I2C_Read... [10:48:30]Read from MH i2c: E2 0E 00 [10:48:30]MH_I2C_Read... [10:48:30]Read from MH i2c: E2 0E 00 4C 45 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 6D [10:48:30]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [10:48:30]wFMCommunicate OK [10:48:30]SAM_PROTO_GetShiftState done [10:48:30]FM_GetShiftState done [10:48:30]opened in 1729469754 [10:48:30]opened+sec_in_day 1729556154 [10:48:30]quantity*price = 120046 [10:48:30]sum+1 = 120047 [10:48:30]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.46 ИТОГО: 1200.00 Внесено: 1200.00 СДАЧА: 0.00 НСП 1% : 10.62 НДС 12% : 127.48 Наличными: 1200.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 133 21.10.2024 10:48 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 187669 ФПД: 155898908598427 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T104834&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187669&fm=155898908598427&tin=02508201610067®Number=0000000000100030&sum=120000 [10:48:32]StoreToDocumentArchive [10:48:32]shift 460 fd 187669 [10:48:32]save to /storage/0460/doc_00187669 [10:48:32]save last doc name /storage/0460/doc_00187669 to /storage/kkm_last_doc_name [10:48:32]save OK [10:48:32]Clear old archive folders... [10:48:32]ProcessDocumentItem done err = 0, tmpTLVsize=257 [10:48:32]tlvbuf is 0118D9C0 [10:48:32]SAM_PROTO_ClearQueue [10:48:32]wFMCommunicate request_size=4 [10:48:32]MH_SAM_APDU [10:48:32]CAPDU: 80 09 00 00 [10:48:32]Write to MH i2c: E2 08 00 59 45 80 09 00 00 00 00 00 00 10 [10:48:32]Write i2c OK [10:48:32]MH_I2C_Read... [10:48:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:48:32]Read from MH i2c: E2 [10:48:32]MH_I2C_Read... [10:48:32]Read from MH i2c: E2 03 00 [10:48:32]MH_I2C_Read... [10:48:32]Read from MH i2c: E2 03 00 59 45 00 90 00 12 [10:48:32]RAPDU: 90 00 [10:48:32]wFMCommunicate OK [10:48:32]SAM_PROTO_ClearQueue done [10:48:32]KKMCreateOFDPacket [10:48:32]OFDProtocolAddRootSTLVToBuf [10:48:32]FM_MakeSignedData [10:48:32]FM_MakeSignedData [10:48:32]SAM_PROTO_SignData [10:48:32]wFMCommunicate request_size=4 [10:48:32]MH_SAM_APDU [10:48:32]CAPDU: 80 0D 01 02 [10:48:32]Write to MH i2c: E2 08 00 5A 45 80 0D 01 02 00 00 00 00 18 [10:48:32]Write i2c OK [10:48:32]MH_I2C_Read... [10:48:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:48:32]Read from MH i2c: E2 [10:48:32]MH_I2C_Read... [10:48:32]Read from MH i2c: E2 03 00 [10:48:32]MH_I2C_Read... [10:48:32]Read from MH i2c: E2 03 00 5A 45 00 90 00 13 [10:48:32]RAPDU: 90 00 [10:48:32]wFMCommunicate OK [10:48:32]wFMCommunicate request_size=255 [10:48:32]MH_SAM_APDU [10:48:32]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 BE 3C 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 EE D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CC 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 85 00 00 00 F4 03 04 00 82 31 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 15 DD 02 [10:48:32]Write to MH i2c: E2 02 01 5B 45 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 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 BE 3C 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 EE D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CC 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 85 00 00 00 F4 03 04 00 82 31 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 15 DD 02 00 00 5D [10:48:32]Write i2c OK [10:48:32]MH_I2C_Read... [10:48:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:48:32]Read from MH i2c: E2 [10:48:32]MH_I2C_Read... [10:48:32]Read from MH i2c: E2 03 00 [10:48:32]MH_I2C_Read... [10:48:32]Read from MH i2c: E2 03 00 5B 45 00 90 00 14 [10:48:32]RAPDU: 90 00 [10:48:32]wFMCommunicate OK [10:48:32]wFMCommunicate request_size=16 [10:48:32]MH_SAM_APDU [10:48:32]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 8D CA 0B 11 60 9B [10:48:32]Write to MH i2c: E2 13 00 5C 45 80 0D 02 02 0B 00 00 35 04 06 00 8D CA 0B 11 60 9B 00 00 DE [10:48:32]Write i2c OK [10:48:32]MH_I2C_Read... [10:48:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:48:32]Read from MH i2c: E2 [10:48:32]MH_I2C_Read... [10:48:32]Read from MH i2c: E2 03 00 [10:48:32]MH_I2C_Read... [10:48:32]Read from MH i2c: E2 03 00 5C 45 00 90 00 15 [10:48:32]RAPDU: 90 00 [10:48:32]wFMCommunicate OK [10:48:32]wFMCommunicate request_size=4 [10:48:32]MH_SAM_APDU [10:48:32]CAPDU: 80 0D 03 02 [10:48:32]Write to MH i2c: E2 08 00 5D 45 80 0D 03 02 00 00 00 00 1D [10:48:32]Write i2c OK [10:48:32]MH_I2C_Read... [10:48:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:48:32]Read from MH i2c: E2 [10:48:32]MH_I2C_Read... [10:48:32]Read from MH i2c: E2 0B 00 [10:48:32]MH_I2C_Read... [10:48:32]Read from MH i2c: E2 0B 00 5D 45 00 45 B1 AE 09 FB A1 AC 12 90 00 25 [10:48:32]RAPDU: 45 B1 AE 09 FB A1 AC 12 90 00 [10:48:32]wFMCommunicate OK [10:48:32]SAM_PROTO_SignData done [10:48:32]FM_MakeSignedData done [10:48:32]CreateOFDProtocolMessage [10:48:32]wFMCommunicate request_size=4 [10:48:32]MH_SAM_APDU [10:48:32]CAPDU: 80 11 00 00 [10:48:32]Write to MH i2c: E2 08 00 5E 45 80 11 00 00 00 00 00 00 1D [10:48:32]Write i2c OK [10:48:32]MH_I2C_Read... [10:48:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:48:32]Read from MH i2c: E2 [10:48:32]MH_I2C_Read... [10:48:32]Read from MH i2c: E2 17 00 [10:48:32]MH_I2C_Read... [10:48:32]Read from MH i2c: E2 17 00 5E 45 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 6B [10:48:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [10:48:32]wFMCommunicate OK [10:48:32]CreateOFDProtocolMessage done [10:48:32]OFDSenderStorePacket 187669 [10:48:32]StoreOFDPacket docnum=187669 [10:48:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 63 00 0D 01 FD B1 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 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 BE 3C 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 EE D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CC 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 85 00 00 00 F4 03 04 00 82 31 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 15 DD 02 00 35 04 06 00 8D CA 0B 11 60 9B 45 B1 AE 09 FB A1 AC 12 [10:48:32]CheckFolder [10:48:32]dirname=/storage/ofd_packets [10:48:32]CheckFolder done [10:48:32]ProducePacketName [10:48:32]name=ofd_packets/00187669 [10:48:32]NVStorageSaveData ofd_packets/00187669 [10:48:32]File name is /storage/ofd_packets/00187669 [10:48:32]Write 307 bytes [10:48:32]NVStorageSaveData done [10:48:32]OFDSenderStorePacket done [10:48:32]KKMCreateOFDPacket done [10:48:32]NVStorageSaveData kkm_last_timestamp [10:48:32]File name is /storage/kkm_last_timestamp [10:48:32]Write 4 bytes [10:48:32]NVStorageSaveData done [10:48:32]ExternCall_PrintAddStr [10:48:32]wPrintStart [10:48:32]Write to MH i2c: 01 00 00 5F 45 A4 [10:48:32]Write i2c OK [10:48:32]MH_I2C_Read... [10:48:32]Read from MH i2c: 01 [10:48:32]MH_I2C_Read... [10:48:32]Read from MH i2c: 01 07 00 [10:48:32]MH_I2C_Read... [10:48:32]Read from MH i2c: 01 07 00 5F 45 00 00 00 00 00 FF 0F B9 [10:48:32]RasterBufferAndPrint [10:48:32]line Счет N : (1)209721 [10:48:32]line ИНН: 02508201610067 [10:48:32]line Контрольно-Кассовый Чек [10:48:32]line ПРОДАЖА [10:48:32]line ТРК (МРК, ГНК) : 31 [10:48:32]line Товар: 2710194210 [10:48:32]line D-ENERGY ДТ-К-5 [10:48:32]line 15.550 * 77.20 [10:48:32]line = 1200.46 [10:48:32]line НДС 12% НСП 1% [10:48:32]line > о реализуемом товаре [10:48:32]line ОКРУГЛЕНИЕ: -0.46 [10:48:32]line ИТОГО: 1200.00 [10:48:32]line Внесено: 1200.00 [10:48:32]line СДАЧА: 0.00 [10:48:32]line НСП 1% : 10.62 [10:48:32]line НДС 12% : 127.48 [10:48:32]line Наличными: 1200.00 [10:48:32]line Безнал.: 0.00 [10:48:32]line Место: АЗС № 86 "Партнер Нефть" [10:48:32]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [10:48:32]line СНО: Общий режим [10:48:32]line Чек 133 21.10.2024 10:48 [10:48:32]line Смена: 460 ФФД: 1.0 [10:48:32]line ЗНМ: 0300000155 [10:48:32]line РНМ: 0000000000100030 [10:48:32]line Версия ККМ: 001 [10:48:32]line ФМ: 0000000000965340 [10:48:32]line ФД: 187669 [10:48:32]line ФПД: 155898908598427 [10:48:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T104834&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187669&fm=155898908598427&tin=02508201610067®Number=0000000000100030&sum=120000 [10:48:32]written 0, free lines is 4095 [10:48:32]OFD Sender: Processing packet 187669 [packets to send 1062, broken 1061] [10:48:32]ProducePacketName [10:48:32]name=ofd_packets/00187669 [10:48:32]OFD Sender: To server: pG, [10:48:32]CommunicateWithHost lk.salyk.kg:30040 [10:48:32]ConnectInit lk.salyk.kg [10:48:33]Connected sock=10 [10:48:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 63 00 0D 01 FD B1 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 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 BE 3C 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 EE D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CC 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 85 00 00 00 F4 03 04 00 82 31 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 15 DD 02 00 35 04 06 00 8D CA 0B 11 60 9B 45 B1 AE 09 FB A1 AC 12 [10:48:33]Write to MH i2c: 01 00 00 8A 45 CF [10:48:33]Write i2c OK [10:48:33]MH_I2C_Read... [10:48:33]Read from MH i2c: 01 [10:48:33]MH_I2C_Read... [10:48:33]Read from MH i2c: 01 07 00 [10:48:33]MH_I2C_Read... [10:48:33]Read from MH i2c: 01 07 00 8A 45 00 00 00 00 00 7F 0C 61 [10:48:33]RasterBufferAndPrint [10:48:33]line [10:48:33]line [10:48:33]line [10:48:33]line [10:48:33]line [10:48:33]written 0, free lines is 3203 [10:48:33]MH_Cut [10:48:33]Write to MH i2c: D1 01 00 91 45 01 A8 [10:48:33]Write i2c OK [10:48:33]MH_I2C_Read... [10:48:33]Read from MH i2c: D1 [10:48:33]MH_I2C_Read... [10:48:33]Read from MH i2c: D1 01 00 [10:48:33]MH_I2C_Read... [10:48:33]Read from MH i2c: D1 01 00 91 45 00 A7 [10:48:33]Write to MH i2c: 01 00 00 92 45 D7 [10:48:33]Write i2c OK [10:48:33]MH_I2C_Read... [10:48:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 01 78 47 00 C5 AC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 15 DD 02 00 F4 03 04 00 72 DB 15 67 B6 04 01 00 00 AE 06 F7 AA A2 B4 23 61 [10:48:33]CommunicateWithHost err = 0 [10:48:33]CheckOFDResponse [10:48:33]1017 (14) - 77093643461234 [10:48:33]1041 (16) - 0000000000965340 [10:48:33]1040 (4) - 187669 [10:48:33]1012 (4) - 21.10.2024 04:41 [10:48:33]1206 (1) - 0 [10:48:33]OFD Sender: Remove packet 187669 [10:48:33]ProducePacketName [10:48:33]name=ofd_packets/00187669 [10:48:33]NVStorageDeleteData [10:48:33]OFD Sender: No OFD packet to send [10:48:34]*** Cut start [10:48:34]*** Partial cut [10:48:34]*** CUTSNS_PIN = 1 [10:48:34]*** CUTSNS_PIN = 0 [10:48:34]*** Brake cut motor [10:48:34]Read from MH i2c: 01 [10:48:34]*** Stop cut motor [10:48:34]*** Cut end [10:48:34]MH_I2C_Read... [10:48:34]Read from MH i2c: 01 07 00 [10:48:34]MH_I2C_Read... [10:48:34]Read from MH i2c: 01 07 00 92 45 00 00 00 00 00 FF 0F EC [10:48:34]process_action close_receipt done [10:48:34]requested_data is exist [10:48:34]produce_requested_data [10:48:34]requested_item fm.sn is exist - process it [10:48:34]wFMCommunicate request_size=4 [10:48:34]MH_SAM_APDU [10:48:34]CAPDU: 80 11 00 00 [10:48:34]Write to MH i2c: E2 08 00 93 45 80 11 00 00 00 00 00 00 52 [10:48:34]Write i2c OK [10:48:34]MH_I2C_Read... [10:48:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:48:34]Read from MH i2c: E2 [10:48:34]MH_I2C_Read... [10:48:34]Read from MH i2c: E2 17 00 [10:48:34]MH_I2C_Read... [10:48:34]Read from MH i2c: E2 17 00 93 45 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 A0 [10:48:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [10:48:34]wFMCommunicate OK [10:48:34]requested_item fd.num is exist - process it [10:48:34]SAM_PROTO_GetFieldsCounters [10:48:34]wFMCommunicate request_size=4 [10:48:34]MH_SAM_APDU [10:48:34]CAPDU: 80 13 00 00 [10:48:34]Write to MH i2c: E2 08 00 94 45 80 13 00 00 00 00 00 00 55 [10:48:34]Write i2c OK [10:48:34]MH_I2C_Read... [10:48:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:48:34]Read from MH i2c: E2 [10:48:34]MH_I2C_Read... [10:48:34]Read from MH i2c: E2 62 00 [10:48:34]MH_I2C_Read... [10:48:34]Read from MH i2c: E2 62 00 94 45 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 15 DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 85 00 00 00 5E 04 04 00 85 00 00 00 57 04 04 00 86 00 00 00 19 04 04 00 00 00 00 00 90 00 AC [10:48:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 15 DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 85 00 00 00 5E 04 04 00 85 00 00 00 57 04 04 00 86 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:48:34]wFMCommunicate OK [10:48:34]SAM_PROTO_GetFieldsCounters done [10:48:34]requested_item shift.num is exist - process it [10:48:34]requested_item shift.opened is exist - process it [10:48:34]req_shift_opened [10:48:34]FM_GetShiftState [10:48:34]SAM_PROTO_GetShiftState [10:48:34]wFMCommunicate request_size=4 [10:48:34]MH_SAM_APDU [10:48:34]CAPDU: 80 13 01 00 [10:48:34]Write to MH i2c: E2 08 00 95 45 80 13 01 00 00 00 00 00 57 [10:48:34]Write i2c OK [10:48:34]MH_I2C_Read... [10:48:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:48:34]Read from MH i2c: E2 [10:48:34]MH_I2C_Read... [10:48:34]Read from MH i2c: E2 0E 00 [10:48:34]MH_I2C_Read... [10:48:34]Read from MH i2c: E2 0E 00 95 45 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 B6 [10:48:34]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [10:48:34]wFMCommunicate OK [10:48:34]SAM_PROTO_GetShiftState done [10:48:34]FM_GetShiftState done [10:48:34]req_shift_opened done [10:48:34]requested_item shift.open_date is exist - process it [10:48:34]req_shift_open_date [10:48:34]req_shift_open_date done [10:48:34]produce_requested_data done [10:48:34]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187669,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [10:48:34]process_action_free close_receipt [10:48:34]json_value_free [10:48:34]json_value_free done [10:48:34]process_json_proto returns [10:48:34]Send response to host [10:48:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187669,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [10:48:34]free response buf [10:48:34]execute_script done [10:48:34]execute_script returns [10:48:34]free content buf [10:48:34]Sock 8.Close socket [10:48:34]Sock 8.Thread stoped [10:48:38]OFD Sender: No OFD packet to send [10:48:43]OFD Sender: No OFD packet to send [10:48:48]OFD Sender: No OFD packet to send [10:48:53]OFD Sender: No OFD packet to send [10:48:58]OFD Sender: No OFD packet to send [10:49:03]OFD Sender: No OFD packet to send [10:49:08]OFD Sender: No OFD packet to send [10:49:13]OFD Sender: No OFD packet to send [10:49:18]OFD Sender: No OFD packet to send [10:49:23]OFD Sender: No OFD packet to send [10:49:29]OFD Sender: No OFD packet to send [10:49:34]OFD Sender: No OFD packet to send [10:49:39]OFD Sender: No OFD packet to send [10:49:44]OFD Sender: No OFD packet to send [10:49:49]OFD Sender: No OFD packet to send [10:49:54]OFD Sender: No OFD packet to send [10:49:59]OFD Sender: No OFD packet to send [10:50:02]accept exits with 9 [10:50:02]New connection [10:50:02]New thread 3067157860 created [10:50:02]Thread 3067014500 joined [10:50:02]Waiting for new connection... [10:50:02] Sock 9.Parse request [10:50:02]Sock 9.Check first char [10:50:02]Sock 9.First char is OK [10:50:02]request: POST /json_proto HTTP/1.0 [10:50:02]Method: POST [10:50:02]URL: /json_proto [10:50:02]Method is POST - this is cgi request [10:50:02]url: /json_proto [10:50:02]query_string will be loaded in cgi processing [10:50:02]execute_cgi json_proto POST (null) [10:50:02]execute_cgi path=json_proto method=POST [10:50:02]POST find Content-Length [10:50:02]Host: 172.17.42.131:8080 [10:50:02]Content-Length: 688 [10:50:02]Content-Type: application/json [10:50:02] [10:50:02]POST finish read [10:50:02]Found Content-Length = 688 [10:50:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209723", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 12.960, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:50:02]execute_script... [10:50: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)209723", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 12.960, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:50:02]POST & json_proto [10:50:02]process_json_proto [10:50:02]json parsed OK: [10:50:02]protocol is kg_v1.0 [10:50:02]action value=close_receipt [10:50:02]process_action close_receipt [10:50:02]cmd_close_receipt [10:50:02]MH_GetDate [10:50:02]Write to MH i2c: F0 00 00 96 45 CA [10:50:02]Write i2c OK [10:50:02]MH_I2C_Read... [10:50:02]Read from MH i2c: F0 [10:50:02]MH_I2C_Read... [10:50:02]Read from MH i2c: F0 09 00 [10:50:02]MH_I2C_Read... [10:50:02]Read from MH i2c: F0 09 00 96 45 00 DD 31 16 67 A0 18 CA 66 46 [10:50:02]GetLastDocTimeStamp 1729507714 [10:50:02]current date 1729507805 [10:50:02]FM_GetShiftState [10:50:02]SAM_PROTO_GetShiftState [10:50:02]wFMCommunicate request_size=4 [10:50:02]MH_SAM_APDU [10:50:02]CAPDU: 80 13 01 00 [10:50:02]Write to MH i2c: E2 08 00 97 45 80 13 01 00 00 00 00 00 59 [10:50:02]Write i2c OK [10:50:02]MH_I2C_Read... [10:50:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:50:02]Read from MH i2c: E2 [10:50:02]MH_I2C_Read... [10:50:02]Read from MH i2c: E2 0E 00 [10:50:02]MH_I2C_Read... [10:50:02]Read from MH i2c: E2 0E 00 97 45 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 B8 [10:50:02]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [10:50:02]wFMCommunicate OK [10:50:02]SAM_PROTO_GetShiftState done [10:50:02]FM_GetShiftState done [10:50:02]opened in 1729469754 [10:50:02]opened+sec_in_day 1729556154 [10:50:02]quantity*price = 100051 [10:50:02]sum+1 = 100052 [10:50:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 134 21.10.2024 10:50 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 187670 ФПД: 277677800808911 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T105006&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187670&fm=277677800808911&tin=02508201610067®Number=0000000000100030&sum=100000 [10:50:03]StoreToDocumentArchive [10:50:03]shift 460 fd 187670 [10:50:03]save to /storage/0460/doc_00187670 [10:50:03]save last doc name /storage/0460/doc_00187670 to /storage/kkm_last_doc_name [10:50:03]save OK [10:50:03]Clear old archive folders... [10:50:03]ProcessDocumentItem done err = 0, tmpTLVsize=257 [10:50:03]tlvbuf is 011F0FA0 [10:50:03]SAM_PROTO_ClearQueue [10:50:03]wFMCommunicate request_size=4 [10:50:03]MH_SAM_APDU [10:50:03]CAPDU: 80 09 00 00 [10:50:03]Write to MH i2c: E2 08 00 A4 45 80 09 00 00 00 00 00 00 5B [10:50:03]Write i2c OK [10:50:03]MH_I2C_Read... [10:50:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:50:03]Read from MH i2c: E2 [10:50:03]MH_I2C_Read... [10:50:03]Read from MH i2c: E2 03 00 [10:50:03]MH_I2C_Read... [10:50:03]Read from MH i2c: E2 03 00 A4 45 00 90 00 5D [10:50:03]RAPDU: 90 00 [10:50:03]wFMCommunicate OK [10:50:03]SAM_PROTO_ClearQueue done [10:50:03]KKMCreateOFDPacket [10:50:03]OFDProtocolAddRootSTLVToBuf [10:50:03]FM_MakeSignedData [10:50:03]FM_MakeSignedData [10:50:03]SAM_PROTO_SignData [10:50:03]wFMCommunicate request_size=4 [10:50:03]MH_SAM_APDU [10:50:03]CAPDU: 80 0D 01 02 [10:50:03]Write to MH i2c: E2 08 00 A5 45 80 0D 01 02 00 00 00 00 63 [10:50:03]Write i2c OK [10:50:03]MH_I2C_Read... [10:50:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:50:03]Read from MH i2c: E2 [10:50:03]MH_I2C_Read... [10:50:03]Read from MH i2c: E2 03 00 [10:50:03]MH_I2C_Read... [10:50:03]Read from MH i2c: E2 03 00 A5 45 00 90 00 5E [10:50:03]RAPDU: 90 00 [10:50:03]wFMCommunicate OK [10:50:03]wFMCommunicate request_size=255 [10:50:03]MH_SAM_APDU [10:50:03]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 86 00 00 00 F4 03 04 00 DE 31 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 16 DD 02 [10:50:03]Write to MH i2c: E2 02 01 A6 45 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 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 86 00 00 00 F4 03 04 00 DE 31 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 16 DD 02 00 00 94 [10:50:03]Write i2c OK [10:50:03]MH_I2C_Read... [10:50:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:50:03]Read from MH i2c: E2 [10:50:03]MH_I2C_Read... [10:50:03]Read from MH i2c: E2 03 00 [10:50:03]MH_I2C_Read... [10:50:03]Read from MH i2c: E2 03 00 A6 45 00 90 00 5F [10:50:03]RAPDU: 90 00 [10:50:03]wFMCommunicate OK [10:50:03]wFMCommunicate request_size=16 [10:50:03]MH_SAM_APDU [10:50:03]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 FC 8B E6 AD E1 CF [10:50:03]Write to MH i2c: E2 13 00 A7 45 80 0D 02 02 0B 00 00 35 04 06 00 FC 8B E6 AD E1 CF 00 00 85 [10:50:03]Write i2c OK [10:50:03]MH_I2C_Read... [10:50:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:50:03]Read from MH i2c: E2 [10:50:03]MH_I2C_Read... [10:50:03]Read from MH i2c: E2 03 00 [10:50:03]MH_I2C_Read... [10:50:03]Read from MH i2c: E2 03 00 A7 45 00 90 00 60 [10:50:03]RAPDU: 90 00 [10:50:03]wFMCommunicate OK [10:50:03]wFMCommunicate request_size=4 [10:50:03]MH_SAM_APDU [10:50:03]CAPDU: 80 0D 03 02 [10:50:03]Write to MH i2c: E2 08 00 A8 45 80 0D 03 02 00 00 00 00 68 [10:50:03]Write i2c OK [10:50:03]MH_I2C_Read... [10:50:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:50:03]Read from MH i2c: E2 [10:50:03]MH_I2C_Read... [10:50:03]Read from MH i2c: E2 0B 00 [10:50:03]MH_I2C_Read... [10:50:03]Read from MH i2c: E2 0B 00 A8 45 00 F7 7A 83 6A B0 BB D5 0F 90 00 16 [10:50:03]RAPDU: F7 7A 83 6A B0 BB D5 0F 90 00 [10:50:03]wFMCommunicate OK [10:50:03]SAM_PROTO_SignData done [10:50:03]FM_MakeSignedData done [10:50:03]CreateOFDProtocolMessage [10:50:03]wFMCommunicate request_size=4 [10:50:03]MH_SAM_APDU [10:50:03]CAPDU: 80 11 00 00 [10:50:03]Write to MH i2c: E2 08 00 A9 45 80 11 00 00 00 00 00 00 68 [10:50:03]Write i2c OK [10:50:03]MH_I2C_Read... [10:50:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:50:03]Read from MH i2c: E2 [10:50:03]MH_I2C_Read... [10:50:03]Read from MH i2c: E2 17 00 [10:50:03]MH_I2C_Read... [10:50:03]Read from MH i2c: E2 17 00 A9 45 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 B6 [10:50:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [10:50:03]wFMCommunicate OK [10:50:03]CreateOFDProtocolMessage done [10:50:03]OFDSenderStorePacket 187670 [10:50:03]StoreOFDPacket docnum=187670 [10:50:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 6A D4 0D 01 BE 9A 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 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 86 00 00 00 F4 03 04 00 DE 31 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 16 DD 02 00 35 04 06 00 FC 8B E6 AD E1 CF F7 7A 83 6A B0 BB D5 0F [10:50:03]CheckFolder [10:50:03]dirname=/storage/ofd_packets [10:50:03]CheckFolder done [10:50:03]ProducePacketName [10:50:03]name=ofd_packets/00187670 [10:50:03]NVStorageSaveData ofd_packets/00187670 [10:50:03]File name is /storage/ofd_packets/00187670 [10:50:03]Write 307 bytes [10:50:03]NVStorageSaveData done [10:50:03]OFDSenderStorePacket done [10:50:03]KKMCreateOFDPacket done [10:50:03]NVStorageSaveData kkm_last_timestamp [10:50:03]File name is /storage/kkm_last_timestamp [10:50:03]Write 4 bytes [10:50:03]NVStorageSaveData done [10:50:03]ExternCall_PrintAddStr [10:50:03]wPrintStart [10:50:03]Write to MH i2c: 01 00 00 AA 45 EF [10:50:03]Write i2c OK [10:50:03]MH_I2C_Read... [10:50:03]Read from MH i2c: 01 [10:50:03]MH_I2C_Read... [10:50:03]Read from MH i2c: 01 07 00 [10:50:03]MH_I2C_Read... [10:50:03]Read from MH i2c: 01 07 00 AA 45 00 00 00 00 00 FF 0F 04 [10:50:03]RasterBufferAndPrint [10:50:03]line Счет N : (1)209723 [10:50:03]line ИНН: 02508201610067 [10:50:03]line Контрольно-Кассовый Чек [10:50:03]line ПРОДАЖА [10:50:03]line ТРК (МРК, ГНК) : 41 [10:50:03]line Товар: 2710194210 [10:50:03]line D-ENERGY ДТ-К-5 [10:50:03]line 12.960 * 77.20 [10:50:03]line = 1000.51 [10:50:03]line НДС 12% НСП 1% [10:50:03]line > о реализуемом товаре [10:50:03]line ОКРУГЛЕНИЕ: -0.51 [10:50:03]line ИТОГО: 1000.00 [10:50:03]line Внесено: 1000.00 [10:50:03]line СДАЧА: 0.00 [10:50:03]line НСП 1% : 8.85 [10:50:03]line НДС 12% : 106.25 [10:50:03]line Наличными: 1000.00 [10:50:03]line Безнал.: 0.00 [10:50:03]line Место: АЗС № 86 "Партнер Нефть" [10:50:03]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [10:50:03]line СНО: Общий режим [10:50:03]line Чек 134 21.10.2024 10:50 [10:50:03]line Смена: 460 ФФД: 1.0 [10:50:03]line ЗНМ: 0300000155 [10:50:03]line РНМ: 0000000000100030 [10:50:03]line Версия ККМ: 001 [10:50:03]line ФМ: 0000000000965340 [10:50:03]line ФД: 187670 [10:50:03]line ФПД: 277677800808911 [10:50:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T105006&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187670&fm=277677800808911&tin=02508201610067®Number=0000000000100030&sum=100000 [10:50:04]written 0, free lines is 4095 [10:50:04]OFD Sender: Processing packet 187670 [packets to send 1062, broken 1061] [10:50:04]ProducePacketName [10:50:04]name=ofd_packets/00187670 [10:50:04]OFD Sender: To server: pG, [10:50:04]CommunicateWithHost lk.salyk.kg:30040 [10:50:04]ConnectInit lk.salyk.kg [10:50:04]Connected sock=10 [10:50:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 6A D4 0D 01 BE 9A 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 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 86 00 00 00 F4 03 04 00 DE 31 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 16 DD 02 00 35 04 06 00 FC 8B E6 AD E1 CF F7 7A 83 6A B0 BB D5 0F [10:50:04]Write to MH i2c: 01 00 00 D5 45 1A [10:50:04]Write i2c OK [10:50:04]MH_I2C_Read... [10:50:04]Read from MH i2c: 01 [10:50:04]MH_I2C_Read... [10:50:04]Read from MH i2c: 01 07 00 [10:50:04]MH_I2C_Read... [10:50:04]Read from MH i2c: 01 07 00 D5 45 00 00 00 00 00 82 0C AF [10:50:04]RasterBufferAndPrint [10:50:04]line [10:50:04]line [10:50:04]line [10:50:04]line [10:50:04]line [10:50:04]written 0, free lines is 3206 [10:50:04]MH_Cut [10:50:04]Write to MH i2c: D1 01 00 DC 45 01 F3 [10:50:04]Write i2c OK [10:50:04]MH_I2C_Read... [10:50:04]Read from MH i2c: D1 [10:50:04]MH_I2C_Read... [10:50:04]Read from MH i2c: D1 01 00 [10:50:04]MH_I2C_Read... [10:50:04]Read from MH i2c: D1 01 00 DC 45 00 F2 [10:50:04]Write to MH i2c: 01 00 00 DD 45 22 [10:50:04]Write i2c OK [10:50:04]MH_I2C_Read... [10:50:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 45 36 47 00 72 4A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 16 DD 02 00 F4 03 04 00 CD DB 15 67 B6 04 01 00 00 0F 06 0B D2 7C 14 CF 2F [10:50:04]CommunicateWithHost err = 0 [10:50:04]CheckOFDResponse [10:50:04]1017 (14) - 77093643461234 [10:50:04]1041 (16) - 0000000000965340 [10:50:04]1040 (4) - 187670 [10:50:04]1012 (4) - 21.10.2024 04:42 [10:50:04]1206 (1) - 0 [10:50:04]OFD Sender: Remove packet 187670 [10:50:04]ProducePacketName [10:50:04]name=ofd_packets/00187670 [10:50:04]NVStorageDeleteData [10:50:05]OFD Sender: No OFD packet to send [10:50:05]*** Cut start [10:50:05]*** Partial cut [10:50:05]*** CUTSNS_PIN = 1 [10:50:05]*** CUTSNS_PIN = 0 [10:50:05]*** Brake cut motor [10:50:06]Read from MH i2c: 01 [10:50:06]MH_I2C_Read... [10:50:06]*** Stop cut motor [10:50:06]*** Cut end [10:50:06]Read from MH i2c: 01 07 00 [10:50:06]MH_I2C_Read... [10:50:06]Read from MH i2c: 01 07 00 DD 45 00 00 00 00 00 FF 0F 37 [10:50:06]process_action close_receipt done [10:50:06]requested_data is exist [10:50:06]produce_requested_data [10:50:06]requested_item fm.sn is exist - process it [10:50:06]wFMCommunicate request_size=4 [10:50:06]MH_SAM_APDU [10:50:06]CAPDU: 80 11 00 00 [10:50:06]Write to MH i2c: E2 08 00 DE 45 80 11 00 00 00 00 00 00 9D [10:50:06]Write i2c OK [10:50:06]MH_I2C_Read... [10:50:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:50:06]Read from MH i2c: E2 [10:50:06]MH_I2C_Read... [10:50:06]Read from MH i2c: E2 17 00 [10:50:06]MH_I2C_Read... [10:50:06]Read from MH i2c: E2 17 00 DE 45 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 EB [10:50:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [10:50:06]wFMCommunicate OK [10:50:06]requested_item fd.num is exist - process it [10:50:06]SAM_PROTO_GetFieldsCounters [10:50:06]wFMCommunicate request_size=4 [10:50:06]MH_SAM_APDU [10:50:06]CAPDU: 80 13 00 00 [10:50:06]Write to MH i2c: E2 08 00 DF 45 80 13 00 00 00 00 00 00 A0 [10:50:06]Write i2c OK [10:50:06]MH_I2C_Read... [10:50:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:50:06]Read from MH i2c: E2 [10:50:06]MH_I2C_Read... [10:50:06]Read from MH i2c: E2 62 00 [10:50:06]MH_I2C_Read... [10:50:06]Read from MH i2c: E2 62 00 DF 45 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 16 DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 86 00 00 00 5E 04 04 00 86 00 00 00 57 04 04 00 87 00 00 00 19 04 04 00 00 00 00 00 90 00 FB [10:50:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 16 DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 86 00 00 00 5E 04 04 00 86 00 00 00 57 04 04 00 87 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:50:06]wFMCommunicate OK [10:50:06]SAM_PROTO_GetFieldsCounters done [10:50:06]requested_item shift.num is exist - process it [10:50:06]requested_item shift.opened is exist - process it [10:50:06]req_shift_opened [10:50:06]FM_GetShiftState [10:50:06]SAM_PROTO_GetShiftState [10:50:06]wFMCommunicate request_size=4 [10:50:06]MH_SAM_APDU [10:50:06]CAPDU: 80 13 01 00 [10:50:06]Write to MH i2c: E2 08 00 E0 45 80 13 01 00 00 00 00 00 A2 [10:50:06]Write i2c OK [10:50:06]MH_I2C_Read... [10:50:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:50:06]Read from MH i2c: E2 [10:50:06]MH_I2C_Read... [10:50:06]Read from MH i2c: E2 0E 00 [10:50:06]MH_I2C_Read... [10:50:06]Read from MH i2c: E2 0E 00 E0 45 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 01 [10:50:06]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [10:50:06]wFMCommunicate OK [10:50:06]SAM_PROTO_GetShiftState done [10:50:06]FM_GetShiftState done [10:50:06]req_shift_opened done [10:50:06]requested_item shift.open_date is exist - process it [10:50:06]req_shift_open_date [10:50:06]req_shift_open_date done [10:50:06]produce_requested_data done [10:50:06]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187670,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [10:50:06]process_action_free close_receipt [10:50:06]json_value_free [10:50:06]json_value_free done [10:50:06]process_json_proto returns [10:50:06]Send response to host [10:50:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187670,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [10:50:06]free response buf [10:50:06]execute_script done [10:50:06]execute_script returns [10:50:06]free content buf [10:50:06]Sock 9.Close socket [10:50:06]Sock 9.Thread stoped [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:01]accept exits with 8 [10:51:01]New connection [10:51:01]New thread 3067014500 created [10:51:01]Thread 3067157860 joined [10:51:01]Waiting for new connection... [10:51:01] Sock 8.Parse request [10:51:01]Sock 8.Check first char [10:51:01]Sock 8.First char is OK [10:51:01]request: POST /json_proto HTTP/1.0 [10:51:01]Method: POST [10:51:01]URL: /json_proto [10:51:01]Method is POST - this is cgi request [10:51:01]url: /json_proto [10:51:01]query_string will be loaded in cgi processing [10:51:01]execute_cgi json_proto POST (null) [10:51:01]execute_cgi path=json_proto method=POST [10:51:01]POST find Content-Length [10:51:01]Host: 172.17.42.131:8080 [10:51:01]Content-Length: 679 [10:51:01]Content-Type: application/json [10:51:01] [10:51:01]POST finish read [10:51:01]Found Content-Length = 679 [10:51:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209725", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:51:01]execute_script... [10:51: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)209725", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:51:01]POST & json_proto [10:51:01]process_json_proto [10:51:01]json parsed OK: [10:51:01]protocol is kg_v1.0 [10:51:01]action value=close_receipt [10:51:01]process_action close_receipt [10:51:01]cmd_close_receipt [10:51:01]MH_GetDate [10:51:01]Write to MH i2c: F0 00 00 E1 45 15 [10:51:01]Write i2c OK [10:51:01]MH_I2C_Read... [10:51:01]Read from MH i2c: F0 [10:51:01]MH_I2C_Read... [10:51:01]Read from MH i2c: F0 09 00 [10:51:01]MH_I2C_Read... [10:51:01]Read from MH i2c: F0 09 00 E1 45 00 19 32 16 67 A0 18 CA 66 CE [10:51:01]GetLastDocTimeStamp 1729507806 [10:51:01]current date 1729507865 [10:51:01]FM_GetShiftState [10:51:01]SAM_PROTO_GetShiftState [10:51:01]wFMCommunicate request_size=4 [10:51:01]MH_SAM_APDU [10:51:01]CAPDU: 80 13 01 00 [10:51:01]Write to MH i2c: E2 08 00 E2 45 80 13 01 00 00 00 00 00 A4 [10:51:01]Write i2c OK [10:51:01]MH_I2C_Read... [10:51:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:51:01]Read from MH i2c: E2 [10:51:01]MH_I2C_Read... [10:51:01]Read from MH i2c: E2 0E 00 [10:51:01]MH_I2C_Read... [10:51:01]Read from MH i2c: E2 0E 00 E2 45 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 03 [10:51:01]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [10:51:01]wFMCommunicate OK [10:51:01]SAM_PROTO_GetShiftState done [10:51:01]FM_GetShiftState done [10:51:01]opened in 1729469754 [10:51:01]opened+sec_in_day 1729556154 [10:51:01]quantity*price = 100050 [10:51:01]sum+1 = 100052 [10:51:01]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 135 21.10.2024 10:51 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 187671 ФПД: 272531682605631 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T105105&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187671&fm=272531682605631&tin=02508201610067®Number=0000000000100030&sum=100000 [10:51:02]StoreToDocumentArchive [10:51:02]shift 460 fd 187671 [10:51:02]save to /storage/0460/doc_00187671 [10:51:02]save last doc name /storage/0460/doc_00187671 to /storage/kkm_last_doc_name [10:51:02]save OK [10:51:02]Clear old archive folders... [10:51:02]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:51:02]tlvbuf is 011F0E80 [10:51:02]SAM_PROTO_ClearQueue [10:51:02]wFMCommunicate request_size=4 [10:51:02]MH_SAM_APDU [10:51:02]CAPDU: 80 09 00 00 [10:51:02]Write to MH i2c: E2 08 00 EF 45 80 09 00 00 00 00 00 00 A6 [10:51:02]Write i2c OK [10:51:02]MH_I2C_Read... [10:51:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:51:02]Read from MH i2c: E2 [10:51:02]MH_I2C_Read... [10:51:02]Read from MH i2c: E2 03 00 [10:51:02]MH_I2C_Read... [10:51:02]Read from MH i2c: E2 03 00 EF 45 00 90 00 A8 [10:51:02]RAPDU: 90 00 [10:51:02]wFMCommunicate OK [10:51:02]SAM_PROTO_ClearQueue done [10:51:02]KKMCreateOFDPacket [10:51:02]OFDProtocolAddRootSTLVToBuf [10:51:02]FM_MakeSignedData [10:51:02]FM_MakeSignedData [10:51:02]SAM_PROTO_SignData [10:51:02]wFMCommunicate request_size=4 [10:51:02]MH_SAM_APDU [10:51:02]CAPDU: 80 0D 01 02 [10:51:02]Write to MH i2c: E2 08 00 F0 45 80 0D 01 02 00 00 00 00 AE [10:51:02]Write i2c OK [10:51:02]MH_I2C_Read... [10:51:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:51:02]Read from MH i2c: E2 [10:51:02]MH_I2C_Read... [10:51:02]Read from MH i2c: E2 03 00 [10:51:02]MH_I2C_Read... [10:51:02]Read from MH i2c: E2 03 00 F0 45 00 90 00 A9 [10:51:02]RAPDU: 90 00 [10:51:02]wFMCommunicate OK [10:51:02]wFMCommunicate request_size=255 [10:51:02]MH_SAM_APDU [10:51:02]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 87 00 00 00 F4 03 04 00 19 32 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 17 DD 02 00 35 04 06 00 F7 DD BA 21 [10:51:02]Write to MH i2c: E2 02 01 F1 45 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 87 00 00 00 F4 03 04 00 19 32 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 17 DD 02 00 35 04 06 00 F7 DD BA 21 00 00 DA [10:51:02]Write i2c OK [10:51:02]MH_I2C_Read... [10:51:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:51:03]Read from MH i2c: E2 [10:51:03]MH_I2C_Read... [10:51:03]Read from MH i2c: E2 03 00 [10:51:03]MH_I2C_Read... [10:51:03]Read from MH i2c: E2 03 00 F1 45 00 90 00 AA [10:51:03]RAPDU: 90 00 [10:51:03]wFMCommunicate OK [10:51:03]wFMCommunicate request_size=7 [10:51:03]MH_SAM_APDU [10:51:03]CAPDU: 80 0D 02 02 02 BA 3F [10:51:03]Write to MH i2c: E2 0A 00 F2 45 80 0D 02 02 02 00 BA 3F 00 00 AE [10:51:03]Write i2c OK [10:51:03]MH_I2C_Read... [10:51:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:51:03]Read from MH i2c: E2 [10:51:03]MH_I2C_Read... [10:51:03]Read from MH i2c: E2 03 00 [10:51:03]MH_I2C_Read... [10:51:03]Read from MH i2c: E2 03 00 F2 45 00 90 00 AB [10:51:03]RAPDU: 90 00 [10:51:03]wFMCommunicate OK [10:51:03]wFMCommunicate request_size=4 [10:51:03]MH_SAM_APDU [10:51:03]CAPDU: 80 0D 03 02 [10:51:03]Write to MH i2c: E2 08 00 F3 45 80 0D 03 02 00 00 00 00 B3 [10:51:03]Write i2c OK [10:51:03]MH_I2C_Read... [10:51:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:51:03]Read from MH i2c: E2 [10:51:03]MH_I2C_Read... [10:51:03]Read from MH i2c: E2 0B 00 [10:51:03]MH_I2C_Read... [10:51:03]Read from MH i2c: E2 0B 00 F3 45 00 A5 1C 8E 97 7B BD 3A 3A 90 00 46 [10:51:03]RAPDU: A5 1C 8E 97 7B BD 3A 3A 90 00 [10:51:03]wFMCommunicate OK [10:51:03]SAM_PROTO_SignData done [10:51:03]FM_MakeSignedData done [10:51:03]CreateOFDProtocolMessage [10:51:03]wFMCommunicate request_size=4 [10:51:03]MH_SAM_APDU [10:51:03]CAPDU: 80 11 00 00 [10:51:03]Write to MH i2c: E2 08 00 F4 45 80 11 00 00 00 00 00 00 B3 [10:51:03]Write i2c OK [10:51:03]MH_I2C_Read... [10:51:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:51:03]Read from MH i2c: E2 [10:51:03]MH_I2C_Read... [10:51:03]Read from MH i2c: E2 17 00 [10:51:03]MH_I2C_Read... [10:51:03]Read from MH i2c: E2 17 00 F4 45 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 01 [10:51:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [10:51:03]wFMCommunicate OK [10:51:03]CreateOFDProtocolMessage done [10:51:03]OFDSenderStorePacket 187671 [10:51:03]StoreOFDPacket docnum=187671 [10:51:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 4A 66 04 01 FC 42 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 87 00 00 00 F4 03 04 00 19 32 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 17 DD 02 00 35 04 06 00 F7 DD BA 21 BA 3F A5 1C 8E 97 7B BD 3A 3A [10:51:03]CheckFolder [10:51:03]dirname=/storage/ofd_packets [10:51:03]CheckFolder done [10:51:03]ProducePacketName [10:51:03]name=ofd_packets/00187671 [10:51:03]NVStorageSaveData ofd_packets/00187671 [10:51:03]File name is /storage/ofd_packets/00187671 [10:51:03]Write 298 bytes [10:51:03]NVStorageSaveData done [10:51:03]OFDSenderStorePacket done [10:51:03]KKMCreateOFDPacket done [10:51:03]NVStorageSaveData kkm_last_timestamp [10:51:03]File name is /storage/kkm_last_timestamp [10:51:03]Write 4 bytes [10:51:03]NVStorageSaveData done [10:51:03]ExternCall_PrintAddStr [10:51:03]wPrintStart [10:51:03]Write to MH i2c: 01 00 00 F5 45 3A [10:51:03]Write i2c OK [10:51:03]MH_I2C_Read... [10:51:03]Read from MH i2c: 01 [10:51:03]MH_I2C_Read... [10:51:03]Read from MH i2c: 01 07 00 [10:51:03]MH_I2C_Read... [10:51:03]Read from MH i2c: 01 07 00 F5 45 00 00 00 00 00 FF 0F 4F [10:51:03]RasterBufferAndPrint [10:51:03]line Счет N : (1)209725 [10:51:03]line ИНН: 02508201610067 [10:51:03]line Контрольно-Кассовый Чек [10:51:03]line ПРОДАЖА [10:51:03]line ТРК (МРК, ГНК) : 51 [10:51:03]line Товар: 2710194210 [10:51:03]line ДТ-К-5 [10:51:03]line 13.130 * 76.20 [10:51:03]line = 1000.51 [10:51:03]line НДС 12% НСП 1% [10:51:03]line > о реализуемом товаре [10:51:03]line ОКРУГЛЕНИЕ: -0.51 [10:51:03]line ИТОГО: 1000.00 [10:51:03]line Внесено: 1000.00 [10:51:03]line СДАЧА: 0.00 [10:51:03]line НСП 1% : 8.85 [10:51:03]line НДС 12% : 106.25 [10:51:03]line Наличными: 1000.00 [10:51:03]line Безнал.: 0.00 [10:51:03]line Место: АЗС № 86 "Партнер Нефть" [10:51:03]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [10:51:03]line СНО: Общий режим [10:51:03]line Чек 135 21.10.2024 10:51 [10:51:03]line Смена: 460 ФФД: 1.0 [10:51:03]line ЗНМ: 0300000155 [10:51:03]line РНМ: 0000000000100030 [10:51:03]line Версия ККМ: 001 [10:51:03]line ФМ: 0000000000965340 [10:51:03]line ФД: 187671 [10:51:03]line ФПД: 272531682605631 [10:51:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T105105&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187671&fm=272531682605631&tin=02508201610067®Number=0000000000100030&sum=100000 [10:51:03]written 0, free lines is 4095 [10:51:03]OFD Sender: Processing packet 187671 [packets to send 1062, broken 1061] [10:51:03]ProducePacketName [10:51:03]name=ofd_packets/00187671 [10:51:03]OFD Sender: To server: pG, [10:51:03]CommunicateWithHost lk.salyk.kg:30040 [10:51:03]ConnectInit lk.salyk.kg [10:51:03]Connected sock=10 [10:51:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 4A 66 04 01 FC 42 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 87 00 00 00 F4 03 04 00 19 32 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 17 DD 02 00 35 04 06 00 F7 DD BA 21 BA 3F A5 1C 8E 97 7B BD 3A 3A [10:51:03]Write to MH i2c: 01 00 00 20 46 66 [10:51:03]Write i2c OK [10:51:03]MH_I2C_Read... [10:51:03]Read from MH i2c: 01 [10:51:03]MH_I2C_Read... [10:51:03]Read from MH i2c: 01 07 00 [10:51:03]MH_I2C_Read... [10:51:03]Read from MH i2c: 01 07 00 20 46 00 00 00 00 00 7C 0C F5 [10:51:03]RasterBufferAndPrint [10:51:03]line [10:51:03]line [10:51:03]line [10:51:03]line [10:51:03]line [10:51:03]written 0, free lines is 3199 [10:51:03]MH_Cut [10:51:03]Write to MH i2c: D1 01 00 27 46 01 3F [10:51:03]Write i2c OK [10:51:03]MH_I2C_Read... [10:51:03]Read from MH i2c: D1 [10:51:03]MH_I2C_Read... [10:51:03]Read from MH i2c: D1 01 00 [10:51:03]MH_I2C_Read... [10:51:03]Read from MH i2c: D1 01 00 27 46 00 3E [10:51:03]Write to MH i2c: 01 00 00 28 46 6E [10:51:03]Write i2c OK [10:51:03]MH_I2C_Read... [10:51:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 7C 30 47 00 9A D4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 17 DD 02 00 F4 03 04 00 09 DC 15 67 B6 04 01 00 00 A6 63 33 00 7D DB 70 5C [10:51:03]CommunicateWithHost err = 0 [10:51:03]CheckOFDResponse [10:51:03]1017 (14) - 77093643461234 [10:51:03]1041 (16) - 0000000000965340 [10:51:03]1040 (4) - 187671 [10:51:03]1012 (4) - 21.10.2024 04:43 [10:51:03]1206 (1) - 0 [10:51:03]OFD Sender: Remove packet 187671 [10:51:03]ProducePacketName [10:51:03]name=ofd_packets/00187671 [10:51:03]NVStorageDeleteData [10:51:04]OFD Sender: No OFD packet to send [10:51:04]*** Cut start [10:51:04]*** Partial cut [10:51:04]*** CUTSNS_PIN = 1 [10:51:04]*** CUTSNS_PIN = 0 [10:51:05]*** Brake cut motor [10:51:05]Read from MH i2c: 01 [10:51:05]MH_I2C_Read... [10:51:05]*** Stop cut motor [10:51:05]*** Cut end [10:51:05]Read from MH i2c: 01 07 00 [10:51:05]MH_I2C_Read... [10:51:05]Read from MH i2c: 01 07 00 28 46 00 00 00 00 00 FF 0F 83 [10:51:05]process_action close_receipt done [10:51:05]requested_data is exist [10:51:05]produce_requested_data [10:51:05]requested_item fm.sn is exist - process it [10:51:05]wFMCommunicate request_size=4 [10:51:05]MH_SAM_APDU [10:51:05]CAPDU: 80 11 00 00 [10:51:05]Write to MH i2c: E2 08 00 29 46 80 11 00 00 00 00 00 00 E9 [10:51:05]Write i2c OK [10:51:05]MH_I2C_Read... [10:51:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:51:05]Read from MH i2c: E2 [10:51:05]MH_I2C_Read... [10:51:05]Read from MH i2c: E2 17 00 [10:51:05]MH_I2C_Read... [10:51:05]Read from MH i2c: E2 17 00 29 46 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 37 [10:51:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [10:51:05]wFMCommunicate OK [10:51:05]requested_item fd.num is exist - process it [10:51:05]SAM_PROTO_GetFieldsCounters [10:51:05]wFMCommunicate request_size=4 [10:51:05]MH_SAM_APDU [10:51:05]CAPDU: 80 13 00 00 [10:51:05]Write to MH i2c: E2 08 00 2A 46 80 13 00 00 00 00 00 00 EC [10:51:05]Write i2c OK [10:51:05]MH_I2C_Read... [10:51:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:51:05]Read from MH i2c: E2 [10:51:05]MH_I2C_Read... [10:51:05]Read from MH i2c: E2 62 00 [10:51:05]MH_I2C_Read... [10:51:05]Read from MH i2c: E2 62 00 2A 46 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 17 DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 87 00 00 00 5E 04 04 00 87 00 00 00 57 04 04 00 88 00 00 00 19 04 04 00 00 00 00 00 90 00 4B [10:51:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 17 DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 87 00 00 00 5E 04 04 00 87 00 00 00 57 04 04 00 88 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:51:05]wFMCommunicate OK [10:51:05]SAM_PROTO_GetFieldsCounters done [10:51:05]requested_item shift.num is exist - process it [10:51:05]requested_item shift.opened is exist - process it [10:51:05]req_shift_opened [10:51:05]FM_GetShiftState [10:51:05]SAM_PROTO_GetShiftState [10:51:05]wFMCommunicate request_size=4 [10:51:05]MH_SAM_APDU [10:51:05]CAPDU: 80 13 01 00 [10:51:05]Write to MH i2c: E2 08 00 2B 46 80 13 01 00 00 00 00 00 EE [10:51:05]Write i2c OK [10:51:05]MH_I2C_Read... [10:51:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:51:05]Read from MH i2c: E2 [10:51:05]MH_I2C_Read... [10:51:05]Read from MH i2c: E2 0E 00 [10:51:05]MH_I2C_Read... [10:51:05]Read from MH i2c: E2 0E 00 2B 46 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 4D [10:51:05]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [10:51:05]wFMCommunicate OK [10:51:05]SAM_PROTO_GetShiftState done [10:51:05]FM_GetShiftState done [10:51:05]req_shift_opened done [10:51:05]requested_item shift.open_date is exist - process it [10:51:05]req_shift_open_date [10:51:05]req_shift_open_date done [10:51:05]produce_requested_data done [10:51:05]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187671,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [10:51:05]process_action_free close_receipt [10:51:05]json_value_free [10:51:05]json_value_free done [10:51:05]process_json_proto returns [10:51:05]Send response to host [10:51:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187671,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [10:51:05]free response buf [10:51:05]execute_script done [10:51:05]execute_script returns [10:51:05]free content buf [10:51:05]Sock 8.Close socket [10:51:05]Sock 8.Thread stoped [10:51:06]accept exits with 9 [10:51:06]New connection [10:51:06]New thread 3067157860 created [10:51:06]Thread 3067014500 joined [10:51:06]Waiting for new connection... [10:51:06] Sock 9.Parse request [10:51:06]Sock 9.Check first char [10:51:06]Sock 9.First char is OK [10:51:06]request: POST /json_proto HTTP/1.0 [10:51:06]Method: POST [10:51:06]URL: /json_proto [10:51:06]Method is POST - this is cgi request [10:51:06]url: /json_proto [10:51:06]query_string will be loaded in cgi processing [10:51:06]execute_cgi json_proto POST (null) [10:51:06]execute_cgi path=json_proto method=POST [10:51:06]POST find Content-Length [10:51:06]Host: 172.17.42.131:8080 [10:51:06]Content-Length: 677 [10:51:06]Content-Type: application/json [10:51:06] [10:51:06]POST finish read [10:51:06]Found Content-Length = 677 [10:51:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209724", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 6.740, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:51:06]execute_script... [10:51:06]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209724", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 6.740, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:51:06]POST & json_proto [10:51:06]process_json_proto [10:51:06]json parsed OK: [10:51:06]protocol is kg_v1.0 [10:51:06]action value=close_receipt [10:51:06]process_action close_receipt [10:51:06]cmd_close_receipt [10:51:06]MH_GetDate [10:51:06]Write to MH i2c: F0 00 00 2C 46 61 [10:51:06]Write i2c OK [10:51:06]MH_I2C_Read... [10:51:06]Read from MH i2c: F0 [10:51:06]MH_I2C_Read... [10:51:06]Read from MH i2c: F0 09 00 [10:51:06]MH_I2C_Read... [10:51:06]Read from MH i2c: F0 09 00 2C 46 00 1E 32 16 67 A0 18 CA 66 1F [10:51:06]GetLastDocTimeStamp 1729507865 [10:51:06]current date 1729507870 [10:51:06]FM_GetShiftState [10:51:06]SAM_PROTO_GetShiftState [10:51:06]wFMCommunicate request_size=4 [10:51:06]MH_SAM_APDU [10:51:06]CAPDU: 80 13 01 00 [10:51:06]Write to MH i2c: E2 08 00 2D 46 80 13 01 00 00 00 00 00 F0 [10:51:06]Write i2c OK [10:51:06]MH_I2C_Read... [10:51:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:51:06]Read from MH i2c: E2 [10:51:06]MH_I2C_Read... [10:51:06]Read from MH i2c: E2 0E 00 [10:51:06]MH_I2C_Read... [10:51:06]Read from MH i2c: E2 0E 00 2D 46 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 4F [10:51:06]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [10:51:06]wFMCommunicate OK [10:51:06]SAM_PROTO_GetShiftState done [10:51:06]FM_GetShiftState done [10:51:06]opened in 1729469754 [10:51:06]opened+sec_in_day 1729556154 [10:51:06]quantity*price = 50010 [10:51:06]sum+1 = 50012 [10:51:06]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 136 21.10.2024 10:51 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 187672 ФПД: 110821872194474 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T105110&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187672&fm=110821872194474&tin=02508201610067®Number=0000000000100030&sum=50000 [10:51:08]StoreToDocumentArchive [10:51:08]shift 460 fd 187672 [10:51:08]save to /storage/0460/doc_00187672 [10:51:08]save last doc name /storage/0460/doc_00187672 to /storage/kkm_last_doc_name [10:51:08]save OK [10:51:08]Clear old archive folders... [10:51:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:51:08]tlvbuf is 0120C7B0 [10:51:08]SAM_PROTO_ClearQueue [10:51:08]wFMCommunicate request_size=4 [10:51:08]MH_SAM_APDU [10:51:08]CAPDU: 80 09 00 00 [10:51:08]Write to MH i2c: E2 08 00 3A 46 80 09 00 00 00 00 00 00 F2 [10:51:08]Write i2c OK [10:51:08]MH_I2C_Read... [10:51:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:51:08]Read from MH i2c: E2 [10:51:08]MH_I2C_Read... [10:51:08]Read from MH i2c: E2 03 00 [10:51:08]MH_I2C_Read... [10:51:08]Read from MH i2c: E2 03 00 3A 46 00 90 00 F4 [10:51:08]RAPDU: 90 00 [10:51:08]wFMCommunicate OK [10:51:08]SAM_PROTO_ClearQueue done [10:51:08]KKMCreateOFDPacket [10:51:08]OFDProtocolAddRootSTLVToBuf [10:51:08]FM_MakeSignedData [10:51:08]FM_MakeSignedData [10:51:08]SAM_PROTO_SignData [10:51:08]wFMCommunicate request_size=4 [10:51:08]MH_SAM_APDU [10:51:08]CAPDU: 80 0D 01 02 [10:51:08]Write to MH i2c: E2 08 00 3B 46 80 0D 01 02 00 00 00 00 FA [10:51:08]Write i2c OK [10:51:08]MH_I2C_Read... [10:51:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:51:08]Read from MH i2c: E2 [10:51:08]MH_I2C_Read... [10:51:08]Read from MH i2c: E2 03 00 [10:51:08]MH_I2C_Read... [10:51:08]Read from MH i2c: E2 03 00 3B 46 00 90 00 F5 [10:51:08]RAPDU: 90 00 [10:51:08]wFMCommunicate OK [10:51:08]wFMCommunicate request_size=255 [10:51:08]MH_SAM_APDU [10:51:08]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 88 00 00 00 F4 03 04 00 1E 32 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 18 DD 02 00 35 04 06 00 64 [10:51:08]Write to MH i2c: E2 02 01 3C 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 88 00 00 00 F4 03 04 00 1E 32 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 18 DD 02 00 35 04 06 00 64 00 00 C2 [10:51:08]Write i2c OK [10:51:08]MH_I2C_Read... [10:51:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:51:08]Read from MH i2c: E2 [10:51:08]MH_I2C_Read... [10:51:08]Read from MH i2c: E2 03 00 [10:51:08]MH_I2C_Read... [10:51:08]Read from MH i2c: E2 03 00 3C 46 00 90 00 F6 [10:51:08]RAPDU: 90 00 [10:51:08]wFMCommunicate OK [10:51:08]wFMCommunicate request_size=10 [10:51:08]MH_SAM_APDU [10:51:08]CAPDU: 80 0D 02 02 05 CA BA 53 53 AA [10:51:08]Write to MH i2c: E2 0D 00 3D 46 80 0D 02 02 05 00 CA BA 53 53 AA 00 00 DB [10:51:08]Write i2c OK [10:51:08]MH_I2C_Read... [10:51:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:51:08]Read from MH i2c: E2 [10:51:08]MH_I2C_Read... [10:51:08]Read from MH i2c: E2 03 00 [10:51:08]MH_I2C_Read... [10:51:08]Read from MH i2c: E2 03 00 3D 46 00 90 00 F7 [10:51:08]RAPDU: 90 00 [10:51:08]wFMCommunicate OK [10:51:08]wFMCommunicate request_size=4 [10:51:08]MH_SAM_APDU [10:51:08]CAPDU: 80 0D 03 02 [10:51:08]Write to MH i2c: E2 08 00 3E 46 80 0D 03 02 00 00 00 00 FF [10:51:08]Write i2c OK [10:51:08]MH_I2C_Read... [10:51:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:51:08]Read from MH i2c: E2 [10:51:08]MH_I2C_Read... [10:51:08]Read from MH i2c: E2 0B 00 [10:51:08]MH_I2C_Read... [10:51:08]Read from MH i2c: E2 0B 00 3E 46 00 07 1A 6D 09 2F C2 BF 99 90 00 E0 [10:51:08]RAPDU: 07 1A 6D 09 2F C2 BF 99 90 00 [10:51:08]wFMCommunicate OK [10:51:08]SAM_PROTO_SignData done [10:51:08]FM_MakeSignedData done [10:51:08]CreateOFDProtocolMessage [10:51:08]wFMCommunicate request_size=4 [10:51:08]MH_SAM_APDU [10:51:08]CAPDU: 80 11 00 00 [10:51:08]Write to MH i2c: E2 08 00 3F 46 80 11 00 00 00 00 00 00 FF [10:51:08]Write i2c OK [10:51:08]MH_I2C_Read... [10:51:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:51:08]Read from MH i2c: E2 [10:51:08]MH_I2C_Read... [10:51:08]Read from MH i2c: E2 17 00 [10:51:08]MH_I2C_Read... [10:51:08]Read from MH i2c: E2 17 00 3F 46 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 4D [10:51:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [10:51:08]wFMCommunicate OK [10:51:08]CreateOFDProtocolMessage done [10:51:08]OFDSenderStorePacket 187672 [10:51:08]StoreOFDPacket docnum=187672 [10:51:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 88 57 07 01 96 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 88 00 00 00 F4 03 04 00 1E 32 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 18 DD 02 00 35 04 06 00 64 CA BA 53 53 AA 07 1A 6D 09 2F C2 BF 99 [10:51:08]CheckFolder [10:51:08]dirname=/storage/ofd_packets [10:51:08]CheckFolder done [10:51:08]ProducePacketName [10:51:08]name=ofd_packets/00187672 [10:51:08]NVStorageSaveData ofd_packets/00187672 [10:51:08]File name is /storage/ofd_packets/00187672 [10:51:08]Write 301 bytes [10:51:08]NVStorageSaveData done [10:51:08]OFDSenderStorePacket done [10:51:08]KKMCreateOFDPacket done [10:51:08]NVStorageSaveData kkm_last_timestamp [10:51:08]File name is /storage/kkm_last_timestamp [10:51:08]Write 4 bytes [10:51:08]NVStorageSaveData done [10:51:08]ExternCall_PrintAddStr [10:51:08]wPrintStart [10:51:08]Write to MH i2c: 01 00 00 40 46 86 [10:51:08]Write i2c OK [10:51:08]MH_I2C_Read... [10:51:08]Read from MH i2c: 01 [10:51:08]MH_I2C_Read... [10:51:08]Read from MH i2c: 01 07 00 [10:51:08]MH_I2C_Read... [10:51:08]Read from MH i2c: 01 07 00 40 46 00 00 00 00 00 FF 0F 9B [10:51:08]RasterBufferAndPrint [10:51:08]line Счет N : (1)209724 [10:51:08]line ИНН: 02508201610067 [10:51:08]line Контрольно-Кассовый Чек [10:51:08]line ПРОДАЖА [10:51:08]line ТРК (МРК, ГНК) : 33 [10:51:08]line Товар: 2710124500 [10:51:08]line Аи-95-К-3 [10:51:08]line 6.740 * 74.20 [10:51:08]line = 500.11 [10:51:08]line НДС 12% НСП 1% [10:51:08]line > о реализуемом товаре [10:51:08]line ОКРУГЛЕНИЕ: -0.11 [10:51:08]line ИТОГО: 500.00 [10:51:08]line Внесено: 500.00 [10:51:08]line СДАЧА: 0.00 [10:51:08]line НСП 1% : 4.43 [10:51:08]line НДС 12% : 53.11 [10:51:08]line Наличными: 500.00 [10:51:08]line Безнал.: 0.00 [10:51:08]line Место: АЗС № 86 "Партнер Нефть" [10:51:08]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [10:51:08]line СНО: Общий режим [10:51:08]line Чек 136 21.10.2024 10:51 [10:51:08]line Смена: 460 ФФД: 1.0 [10:51:08]line ЗНМ: 0300000155 [10:51:08]line РНМ: 0000000000100030 [10:51:08]line Версия ККМ: 001 [10:51:08]line ФМ: 0000000000965340 [10:51:08]line ФД: 187672 [10:51:08]line ФПД: 110821872194474 [10:51:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T105110&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187672&fm=110821872194474&tin=02508201610067®Number=0000000000100030&sum=50000 [10:51:08]written 0, free lines is 4095 [10:51:08]OFD Sender: Processing packet 187672 [packets to send 1062, broken 1061] [10:51:08]ProducePacketName [10:51:08]name=ofd_packets/00187672 [10:51:08]OFD Sender: To server: pG, [10:51:08]CommunicateWithHost lk.salyk.kg:30040 [10:51:08]ConnectInit lk.salyk.kg [10:51:09]Connected sock=8 [10:51:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 88 57 07 01 96 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 88 00 00 00 F4 03 04 00 1E 32 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 18 DD 02 00 35 04 06 00 64 CA BA 53 53 AA 07 1A 6D 09 2F C2 BF 99 [10:51:09]Write to MH i2c: 01 00 00 6B 46 B1 [10:51:09]Write i2c OK [10:51:09]MH_I2C_Read... [10:51:09]Read from MH i2c: 01 [10:51:09]MH_I2C_Read... [10:51:09]Read from MH i2c: 01 07 00 [10:51:09]MH_I2C_Read... [10:51:09]Read from MH i2c: 01 07 00 6B 46 00 00 00 00 00 7D 0C 41 [10:51:09]RasterBufferAndPrint [10:51:09]line [10:51:09]line [10:51:09]line [10:51:09]line [10:51:09]line [10:51:09]written 0, free lines is 3207 [10:51:09]MH_Cut [10:51:09]Write to MH i2c: D1 01 00 72 46 01 8A [10:51:09]Write i2c OK [10:51:09]MH_I2C_Read... [10:51:09]Read from MH i2c: D1 [10:51:09]MH_I2C_Read... [10:51:09]Read from MH i2c: D1 01 00 [10:51:09]MH_I2C_Read... [10:51:09]Read from MH i2c: D1 01 00 72 46 00 89 [10:51:09]Write to MH i2c: 01 00 00 73 46 B9 [10:51:09]Write i2c OK [10:51:09]MH_I2C_Read... [10:51:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 74 5E 47 00 E0 52 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 18 DD 02 00 F4 03 04 00 0E DC 15 67 B6 04 01 00 00 0A B9 19 27 77 61 14 A7 [10:51:09]CommunicateWithHost err = 0 [10:51:09]CheckOFDResponse [10:51:09]1017 (14) - 77093643461234 [10:51:09]1041 (16) - 0000000000965340 [10:51:09]1040 (4) - 187672 [10:51:09]1012 (4) - 21.10.2024 04:43 [10:51:09]1206 (1) - 0 [10:51:09]OFD Sender: Remove packet 187672 [10:51:09]ProducePacketName [10:51:09]name=ofd_packets/00187672 [10:51:09]NVStorageDeleteData [10:51:09]OFD Sender: No OFD packet to send [10:51:10]*** Cut start [10:51:10]*** Partial cut [10:51:10]*** CUTSNS_PIN = 1 [10:51:10]*** CUTSNS_PIN = 0 [10:51:10]*** Brake cut motor [10:51:10]Read from MH i2c: 01 [10:51:10]MH_I2C_Read... [10:51:10]*** Stop cut motor [10:51:10]*** Cut end [10:51:10]Read from MH i2c: 01 07 00 [10:51:10]MH_I2C_Read... [10:51:10]Read from MH i2c: 01 07 00 73 46 00 00 00 00 00 FF 0F CE [10:51:10]process_action close_receipt done [10:51:10]requested_data is exist [10:51:10]produce_requested_data [10:51:10]requested_item fm.sn is exist - process it [10:51:10]wFMCommunicate request_size=4 [10:51:10]MH_SAM_APDU [10:51:10]CAPDU: 80 11 00 00 [10:51:10]Write to MH i2c: E2 08 00 74 46 80 11 00 00 00 00 00 00 34 [10:51:10]Write i2c OK [10:51:10]MH_I2C_Read... [10:51:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:51:11]Read from MH i2c: E2 [10:51:11]MH_I2C_Read... [10:51:11]Read from MH i2c: E2 17 00 [10:51:11]MH_I2C_Read... [10:51:11]Read from MH i2c: E2 17 00 74 46 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 82 [10:51:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [10:51:11]wFMCommunicate OK [10:51:11]requested_item fd.num is exist - process it [10:51:11]SAM_PROTO_GetFieldsCounters [10:51:11]wFMCommunicate request_size=4 [10:51:11]MH_SAM_APDU [10:51:11]CAPDU: 80 13 00 00 [10:51:11]Write to MH i2c: E2 08 00 75 46 80 13 00 00 00 00 00 00 37 [10:51:11]Write i2c OK [10:51:11]MH_I2C_Read... [10:51:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:51:11]Read from MH i2c: E2 [10:51:11]MH_I2C_Read... [10:51:11]Read from MH i2c: E2 62 00 [10:51:11]MH_I2C_Read... [10:51:11]Read from MH i2c: E2 62 00 75 46 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 18 DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 88 00 00 00 5E 04 04 00 88 00 00 00 57 04 04 00 89 00 00 00 19 04 04 00 00 00 00 00 90 00 9A [10:51:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 18 DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 88 00 00 00 5E 04 04 00 88 00 00 00 57 04 04 00 89 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:51:11]wFMCommunicate OK [10:51:11]SAM_PROTO_GetFieldsCounters done [10:51:11]requested_item shift.num is exist - process it [10:51:11]requested_item shift.opened is exist - process it [10:51:11]req_shift_opened [10:51:11]FM_GetShiftState [10:51:11]SAM_PROTO_GetShiftState [10:51:11]wFMCommunicate request_size=4 [10:51:11]MH_SAM_APDU [10:51:11]CAPDU: 80 13 01 00 [10:51:11]Write to MH i2c: E2 08 00 76 46 80 13 01 00 00 00 00 00 39 [10:51:11]Write i2c OK [10:51:11]MH_I2C_Read... [10:51:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:51:11]Read from MH i2c: E2 [10:51:11]MH_I2C_Read... [10:51:11]Read from MH i2c: E2 0E 00 [10:51:11]MH_I2C_Read... [10:51:11]Read from MH i2c: E2 0E 00 76 46 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 98 [10:51:11]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [10:51:11]wFMCommunicate OK [10:51:11]SAM_PROTO_GetShiftState done [10:51:11]FM_GetShiftState done [10:51:11]req_shift_opened done [10:51:11]requested_item shift.open_date is exist - process it [10:51:11]req_shift_open_date [10:51:11]req_shift_open_date done [10:51:11]produce_requested_data done [10:51:11]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187672,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [10:51:11]process_action_free close_receipt [10:51:11]json_value_free [10:51:11]json_value_free done [10:51:11]process_json_proto returns [10:51:11]Send response to host [10:51:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187672,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [10:51:11]free response buf [10:51:11]execute_script done [10:51:11]execute_script returns [10:51:11]free content buf [10:51:11]Sock 9.Close socket [10:51:11]Sock 9.Thread stoped [10:51:14]accept exits with 10 [10:51:14]New connection [10:51:14]New thread 3067014500 created [10:51:14]Thread 3067157860 joined [10:51:14]Waiting for new connection... [10:51:14] Sock 10.Parse request [10:51:14]Sock 10.Check first char [10:51:14]Sock 10.First char is OK [10:51:14]request: POST /json_proto HTTP/1.0 [10:51:14]Method: POST [10:51:14]URL: /json_proto [10:51:14]Method is POST - this is cgi request [10:51:14]url: /json_proto [10:51:14]query_string will be loaded in cgi processing [10:51:14]execute_cgi json_proto POST (null) [10:51:14]execute_cgi path=json_proto method=POST [10:51:14]POST find Content-Length [10:51:14]Host: 172.17.42.131:8080 [10:51:14]Content-Length: 678 [10:51:14]Content-Type: application/json [10:51:14] [10:51:14]POST finish read [10:51:14]Found Content-Length = 678 [10:51:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209722", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 13.460, "sum" : 900.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 900.00, "total" : 900.00, "payments": [ { "type": 0, "sum" : 900.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:51:14]execute_script... [10:51: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)209722", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 13.460, "sum" : 900.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 900.00, "total" : 900.00, "payments": [ { "type": 0, "sum" : 900.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:51:14]POST & json_proto [10:51:14]process_json_proto [10:51:14]json parsed OK: [10:51:14]protocol is kg_v1.0 [10:51:14]action value=close_receipt [10:51:14]process_action close_receipt [10:51:14]cmd_close_receipt [10:51:14]MH_GetDate [10:51:14]Write to MH i2c: F0 00 00 77 46 AC [10:51:14]Write i2c OK [10:51:14]MH_I2C_Read... [10:51:14]Read from MH i2c: F0 [10:51:14]MH_I2C_Read... [10:51:14]Read from MH i2c: F0 09 00 [10:51:14]MH_I2C_Read... [10:51:14]Read from MH i2c: F0 09 00 77 46 00 26 32 16 67 A0 18 CA 66 72 [10:51:14]GetLastDocTimeStamp 1729507870 [10:51:14]current date 1729507878 [10:51:14]FM_GetShiftState [10:51:14]SAM_PROTO_GetShiftState [10:51:14]wFMCommunicate request_size=4 [10:51:14]MH_SAM_APDU [10:51:14]CAPDU: 80 13 01 00 [10:51:14]Write to MH i2c: E2 08 00 78 46 80 13 01 00 00 00 00 00 3B [10:51:14]Write i2c OK [10:51:14]MH_I2C_Read... [10:51:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:51:14]Read from MH i2c: E2 [10:51:14]MH_I2C_Read... [10:51:14]Read from MH i2c: E2 0E 00 [10:51:14]MH_I2C_Read... [10:51:14]Read from MH i2c: E2 0E 00 78 46 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 9A [10:51:14]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [10:51:14]wFMCommunicate OK [10:51:14]SAM_PROTO_GetShiftState done [10:51:14]FM_GetShiftState done [10:51:14]opened in 1729469754 [10:51:14]opened+sec_in_day 1729556154 [10:51:14]quantity*price = 90047 [10:51:14]sum+1 = 90048 [10:51:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.47 ИТОГО: 900.00 Внесено: 900.00 СДАЧА: 0.00 НСП 1% : 7.97 НДС 12% : 95.62 Наличными: 900.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 137 21.10.2024 10:51 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 187673 ФПД: 50424175905229 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T105118&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187673&fm=50424175905229&tin=02508201610067®Number=0000000000100030&sum=90000 [10:51:15]StoreToDocumentArchive [10:51:15]shift 460 fd 187673 [10:51:15]save to /storage/0460/doc_00187673 [10:51:15]save last doc name /storage/0460/doc_00187673 to /storage/kkm_last_doc_name [10:51:15]save OK [10:51:15]Clear old archive folders... [10:51:15]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:51:15]tlvbuf is 0121EDD0 [10:51:15]SAM_PROTO_ClearQueue [10:51:15]wFMCommunicate request_size=4 [10:51:15]MH_SAM_APDU [10:51:15]CAPDU: 80 09 00 00 [10:51:15]Write to MH i2c: E2 08 00 85 46 80 09 00 00 00 00 00 00 3D [10:51:15]Write i2c OK [10:51:15]MH_I2C_Read... [10:51:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:51:15]Read from MH i2c: E2 [10:51:15]MH_I2C_Read... [10:51:15]Read from MH i2c: E2 03 00 [10:51:15]MH_I2C_Read... [10:51:15]Read from MH i2c: E2 03 00 85 46 00 90 00 3F [10:51:15]RAPDU: 90 00 [10:51:15]wFMCommunicate OK [10:51:15]SAM_PROTO_ClearQueue done [10:51:15]KKMCreateOFDPacket [10:51:15]OFDProtocolAddRootSTLVToBuf [10:51:15]FM_MakeSignedData [10:51:15]FM_MakeSignedData [10:51:15]SAM_PROTO_SignData [10:51:15]wFMCommunicate request_size=4 [10:51:15]MH_SAM_APDU [10:51:15]CAPDU: 80 0D 01 02 [10:51:15]Write to MH i2c: E2 08 00 86 46 80 0D 01 02 00 00 00 00 45 [10:51:15]Write i2c OK [10:51:15]MH_I2C_Read... [10:51:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:51:15]Read from MH i2c: E2 [10:51:15]MH_I2C_Read... [10:51:15]Read from MH i2c: E2 03 00 [10:51:15]MH_I2C_Read... [10:51:15]Read from MH i2c: E2 03 00 86 46 00 90 00 40 [10:51:15]RAPDU: 90 00 [10:51:15]wFMCommunicate OK [10:51:15]wFMCommunicate request_size=255 [10:51:15]MH_SAM_APDU [10:51: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 33 FF 03 08 00 03 94 34 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BF 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5A 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 89 00 00 00 F4 03 04 00 26 32 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 19 DD 02 00 35 04 06 00 2D [10:51:15]Write to MH i2c: E2 02 01 87 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 33 FF 03 08 00 03 94 34 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BF 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5A 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 89 00 00 00 F4 03 04 00 26 32 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 19 DD 02 00 35 04 06 00 2D 00 00 25 [10:51:15]Write i2c OK [10:51:15]MH_I2C_Read... [10:51:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:51:16]Read from MH i2c: E2 [10:51:16]MH_I2C_Read... [10:51:16]Read from MH i2c: E2 03 00 [10:51:16]MH_I2C_Read... [10:51:16]Read from MH i2c: E2 03 00 87 46 00 90 00 41 [10:51:16]RAPDU: 90 00 [10:51:16]wFMCommunicate OK [10:51:16]wFMCommunicate request_size=10 [10:51:16]MH_SAM_APDU [10:51:16]CAPDU: 80 0D 02 02 05 DC 4B 17 C9 CD [10:51:16]Write to MH i2c: E2 0D 00 88 46 80 0D 02 02 05 00 DC 4B 17 C9 CD 00 00 26 [10:51:16]Write i2c OK [10:51:16]MH_I2C_Read... [10:51:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:51:16]Read from MH i2c: E2 [10:51:16]MH_I2C_Read... [10:51:16]Read from MH i2c: E2 03 00 [10:51:16]MH_I2C_Read... [10:51:16]Read from MH i2c: E2 03 00 88 46 00 90 00 42 [10:51:16]RAPDU: 90 00 [10:51:16]wFMCommunicate OK [10:51:16]wFMCommunicate request_size=4 [10:51:16]MH_SAM_APDU [10:51:16]CAPDU: 80 0D 03 02 [10:51:16]Write to MH i2c: E2 08 00 89 46 80 0D 03 02 00 00 00 00 4A [10:51:16]Write i2c OK [10:51:16]MH_I2C_Read... [10:51:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:51:16]Read from MH i2c: E2 [10:51:16]MH_I2C_Read... [10:51:16]Read from MH i2c: E2 0B 00 [10:51:16]MH_I2C_Read... [10:51:16]Read from MH i2c: E2 0B 00 89 46 00 84 C2 4C 82 A4 48 29 15 90 00 89 [10:51:16]RAPDU: 84 C2 4C 82 A4 48 29 15 90 00 [10:51:16]wFMCommunicate OK [10:51:16]SAM_PROTO_SignData done [10:51:16]FM_MakeSignedData done [10:51:16]CreateOFDProtocolMessage [10:51:16]wFMCommunicate request_size=4 [10:51:16]MH_SAM_APDU [10:51:16]CAPDU: 80 11 00 00 [10:51:16]Write to MH i2c: E2 08 00 8A 46 80 11 00 00 00 00 00 00 4A [10:51:16]Write i2c OK [10:51:16]MH_I2C_Read... [10:51:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:51:16]Read from MH i2c: E2 [10:51:16]MH_I2C_Read... [10:51:16]Read from MH i2c: E2 17 00 [10:51:16]MH_I2C_Read... [10:51:16]Read from MH i2c: E2 17 00 8A 46 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 98 [10:51:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [10:51:16]wFMCommunicate OK [10:51:16]CreateOFDProtocolMessage done [10:51:16]OFDSenderStorePacket 187673 [10:51:16]StoreOFDPacket docnum=187673 [10:51:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 57 59 07 01 BE 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 33 FF 03 08 00 03 94 34 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BF 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5A 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 89 00 00 00 F4 03 04 00 26 32 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 19 DD 02 00 35 04 06 00 2D DC 4B 17 C9 CD 84 C2 4C 82 A4 48 29 15 [10:51:16]CheckFolder [10:51:16]dirname=/storage/ofd_packets [10:51:16]CheckFolder done [10:51:16]ProducePacketName [10:51:16]name=ofd_packets/00187673 [10:51:16]NVStorageSaveData ofd_packets/00187673 [10:51:16]File name is /storage/ofd_packets/00187673 [10:51:16]Write 301 bytes [10:51:16]NVStorageSaveData done [10:51:16]OFDSenderStorePacket done [10:51:16]KKMCreateOFDPacket done [10:51:16]NVStorageSaveData kkm_last_timestamp [10:51:16]File name is /storage/kkm_last_timestamp [10:51:16]Write 4 bytes [10:51:16]NVStorageSaveData done [10:51:16]ExternCall_PrintAddStr [10:51:16]wPrintStart [10:51:16]Write to MH i2c: 01 00 00 8B 46 D1 [10:51:16]Write i2c OK [10:51:16]MH_I2C_Read... [10:51:16]Read from MH i2c: 01 [10:51:16]MH_I2C_Read... [10:51:16]Read from MH i2c: 01 07 00 [10:51:16]MH_I2C_Read... [10:51:16]Read from MH i2c: 01 07 00 8B 46 00 00 00 00 00 FF 0F E6 [10:51:16]RasterBufferAndPrint [10:51:16]line Счет N : (1)209722 [10:51:16]line ИНН: 02508201610067 [10:51:16]line Контрольно-Кассовый Чек [10:51:16]line ПРОДАЖА [10:51:16]line ТРК (МРК, ГНК) : 12 [10:51:16]line Товар: 2710124130 [10:51:16]line Аи-92-К-3 [10:51:16]line 13.460 * 66.90 [10:51:16]line = 900.47 [10:51:16]line НДС 12% НСП 1% [10:51:16]line > о реализуемом товаре [10:51:16]line ОКРУГЛЕНИЕ: -0.47 [10:51:16]line ИТОГО: 900.00 [10:51:16]line Внесено: 900.00 [10:51:16]line СДАЧА: 0.00 [10:51:16]line НСП 1% : 7.97 [10:51:16]line НДС 12% : 95.62 [10:51:16]line Наличными: 900.00 [10:51:16]line Безнал.: 0.00 [10:51:16]line Место: АЗС № 86 "Партнер Нефть" [10:51:16]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [10:51:16]line СНО: Общий режим [10:51:16]line Чек 137 21.10.2024 10:51 [10:51:16]line Смена: 460 ФФД: 1.0 [10:51:16]line ЗНМ: 0300000155 [10:51:16]line РНМ: 0000000000100030 [10:51:16]line Версия ККМ: 001 [10:51:16]line ФМ: 0000000000965340 [10:51:16]line ФД: 187673 [10:51:16]line ФПД: 50424175905229 [10:51:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T105118&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187673&fm=50424175905229&tin=02508201610067®Number=0000000000100030&sum=90000 [10:51:16]written 0, free lines is 4095 [10:51:16]OFD Sender: Processing packet 187673 [packets to send 1062, broken 1061] [10:51:16]ProducePacketName [10:51:16]name=ofd_packets/00187673 [10:51:16]OFD Sender: To server: pG, [10:51:16]CommunicateWithHost lk.salyk.kg:30040 [10:51:16]ConnectInit lk.salyk.kg [10:51:16]Connected sock=9 [10:51:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 57 59 07 01 BE 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 33 FF 03 08 00 03 94 34 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BF 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5A 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 89 00 00 00 F4 03 04 00 26 32 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 19 DD 02 00 35 04 06 00 2D DC 4B 17 C9 CD 84 C2 4C 82 A4 48 29 15 [10:51:16]Write to MH i2c: 01 00 00 B6 46 FC [10:51:16]Write i2c OK [10:51:16]MH_I2C_Read... [10:51:16]Read from MH i2c: 01 [10:51:16]MH_I2C_Read... [10:51:16]Read from MH i2c: 01 07 00 [10:51:16]MH_I2C_Read... [10:51:16]Read from MH i2c: 01 07 00 B6 46 00 00 00 00 00 89 0C 98 [10:51:16]RasterBufferAndPrint [10:51:16]line [10:51:16]line [10:51:16]line [10:51:16]line [10:51:16]line [10:51:16]written 0, free lines is 3223 [10:51:17]MH_Cut [10:51:17]Write to MH i2c: D1 01 00 BD 46 01 D5 [10:51:17]Write i2c OK [10:51:17]MH_I2C_Read... [10:51:17]Read from MH i2c: D1 [10:51:17]MH_I2C_Read... [10:51:17]Read from MH i2c: D1 01 00 [10:51:17]MH_I2C_Read... [10:51:17]Read from MH i2c: D1 01 00 BD 46 00 D4 [10:51:17]Write to MH i2c: 01 00 00 BE 46 04 [10:51:17]Write i2c OK [10:51:17]MH_I2C_Read... [10:51:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 8C 09 47 00 92 50 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 19 DD 02 00 F4 03 04 00 16 DC 15 67 B6 04 01 00 00 27 B4 6C F2 B1 EC 60 B4 [10:51:17]CommunicateWithHost err = 0 [10:51:17]CheckOFDResponse [10:51:17]1017 (14) - 77093643461234 [10:51:17]1041 (16) - 0000000000965340 [10:51:17]1040 (4) - 187673 [10:51:17]1012 (4) - 21.10.2024 04:44 [10:51:17]1206 (1) - 0 [10:51:17]OFD Sender: Remove packet 187673 [10:51:17]ProducePacketName [10:51:17]name=ofd_packets/00187673 [10:51:17]NVStorageDeleteData [10:51:17]OFD Sender: No OFD packet to send [10:51:17]*** Cut start [10:51:17]*** Partial cut [10:51:17]*** CUTSNS_PIN = 1 [10:51:18]*** CUTSNS_PIN = 0 [10:51:18]*** Brake cut motor [10:51:18]Read from MH i2c: 01 [10:51:18]MH_I2C_Read... [10:51:18]*** Stop cut motor [10:51:18]*** Cut end [10:51:18]Read from MH i2c: 01 07 00 [10:51:18]MH_I2C_Read... [10:51:18]Read from MH i2c: 01 07 00 BE 46 00 00 00 00 00 FF 0F 19 [10:51:18]process_action close_receipt done [10:51:18]requested_data is exist [10:51:18]produce_requested_data [10:51:18]requested_item fm.sn is exist - process it [10:51:18]wFMCommunicate request_size=4 [10:51:18]MH_SAM_APDU [10:51:18]CAPDU: 80 11 00 00 [10:51:18]Write to MH i2c: E2 08 00 BF 46 80 11 00 00 00 00 00 00 7F [10:51:18]Write i2c OK [10:51:18]MH_I2C_Read... [10:51:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:51:18]Read from MH i2c: E2 [10:51:18]MH_I2C_Read... [10:51:18]Read from MH i2c: E2 17 00 [10:51:18]MH_I2C_Read... [10:51:18]Read from MH i2c: E2 17 00 BF 46 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 CD [10:51:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [10:51:18]wFMCommunicate OK [10:51:18]requested_item fd.num is exist - process it [10:51:18]SAM_PROTO_GetFieldsCounters [10:51:18]wFMCommunicate request_size=4 [10:51:18]MH_SAM_APDU [10:51:18]CAPDU: 80 13 00 00 [10:51:18]Write to MH i2c: E2 08 00 C0 46 80 13 00 00 00 00 00 00 82 [10:51:18]Write i2c OK [10:51:18]MH_I2C_Read... [10:51:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:51:18]Read from MH i2c: E2 [10:51:18]MH_I2C_Read... [10:51:18]Read from MH i2c: E2 62 00 [10:51:18]MH_I2C_Read... [10:51:18]Read from MH i2c: E2 62 00 C0 46 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 19 DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 89 00 00 00 5E 04 04 00 89 00 00 00 57 04 04 00 8A 00 00 00 19 04 04 00 00 00 00 00 90 00 E9 [10:51:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 19 DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 89 00 00 00 5E 04 04 00 89 00 00 00 57 04 04 00 8A 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:51:18]wFMCommunicate OK [10:51:18]SAM_PROTO_GetFieldsCounters done [10:51:18]requested_item shift.num is exist - process it [10:51:18]requested_item shift.opened is exist - process it [10:51:18]req_shift_opened [10:51:18]FM_GetShiftState [10:51:18]SAM_PROTO_GetShiftState [10:51:18]wFMCommunicate request_size=4 [10:51:18]MH_SAM_APDU [10:51:18]CAPDU: 80 13 01 00 [10:51:18]Write to MH i2c: E2 08 00 C1 46 80 13 01 00 00 00 00 00 84 [10:51:18]Write i2c OK [10:51:18]MH_I2C_Read... [10:51:18]Read from MH i2c: E2 [10:51:18]MH_I2C_Read... [10:51:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:51:18]Read from MH i2c: E2 0E 00 [10:51:18]MH_I2C_Read... [10:51:18]Read from MH i2c: E2 0E 00 C1 46 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 E3 [10:51:18]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [10:51:18]wFMCommunicate OK [10:51:18]SAM_PROTO_GetShiftState done [10:51:18]FM_GetShiftState done [10:51:18]req_shift_opened done [10:51:18]requested_item shift.open_date is exist - process it [10:51:18]req_shift_open_date [10:51:18]req_shift_open_date done [10:51:18]produce_requested_data done [10:51:18]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187673,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [10:51:18]process_action_free close_receipt [10:51:18]json_value_free [10:51:18]json_value_free done [10:51:18]process_json_proto returns [10:51:18]Send response to host [10:51:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187673,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [10:51:18]free response buf [10:51:18]execute_script done [10:51:18]execute_script returns [10:51:18]free content buf [10:51:18]Sock 10.Close socket [10:51:18]Sock 10.Thread stoped [10:51:22]OFD Sender: No OFD packet to send [10:51:27]OFD Sender: No OFD packet to send [10:51:32]OFD Sender: No OFD packet to send [10:51:37]OFD Sender: No OFD packet to send [10:51:42]OFD Sender: No OFD packet to send [10:51:47]OFD Sender: No OFD packet to send [10:51:52]OFD Sender: No OFD packet to send [10:51:57]OFD Sender: No OFD packet to send [10:52:02]OFD Sender: No OFD packet to send [10:52:07]OFD Sender: No OFD packet to send [10:52:12]OFD Sender: No OFD packet to send [10:52:17]OFD Sender: No OFD packet to send [10:52:22]OFD Sender: No OFD packet to send [10:52:28]OFD Sender: No OFD packet to send [10:52:33]OFD Sender: No OFD packet to send [10:52:38]OFD Sender: No OFD packet to send [10:52:43]OFD Sender: No OFD packet to send [10:52:48]OFD Sender: No OFD packet to send [10:52:53]OFD Sender: No OFD packet to send [10:52:58]OFD Sender: No OFD packet to send [10:53:03]OFD Sender: No OFD packet to send [10:53:08]OFD Sender: No OFD packet to send [10:53:13]OFD Sender: No OFD packet to send [10:53:15]accept exits with 8 [10:53:15]New connection [10:53:15]New thread 3067157860 created [10:53:15]Thread 3067014500 joined [10:53:15]Waiting for new connection... [10:53:15] Sock 8.Parse request [10:53:15]Sock 8.Check first char [10:53:15]Sock 8.First char is OK [10:53:15]request: POST /json_proto HTTP/1.0 [10:53:15]Method: POST [10:53:15]URL: /json_proto [10:53:15]Method is POST - this is cgi request [10:53:15]url: /json_proto [10:53:15]query_string will be loaded in cgi processing [10:53:15]execute_cgi json_proto POST (null) [10:53:15]execute_cgi path=json_proto method=POST [10:53:15]POST find Content-Length [10:53:15]Host: 172.17.42.131:8080 [10:53:15]Content-Length: 688 [10:53:15]Content-Type: application/json [10:53:15] [10:53:15]POST finish read [10:53:15]Found Content-Length = 688 [10:53:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209726", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 25.910, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:53:15]execute_script... [10:53: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)209726", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 25.910, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:53:15]POST & json_proto [10:53:15]process_json_proto [10:53:15]json parsed OK: [10:53:15]protocol is kg_v1.0 [10:53:15]action value=close_receipt [10:53:15]process_action close_receipt [10:53:15]cmd_close_receipt [10:53:15]MH_GetDate [10:53:15]Write to MH i2c: F0 00 00 C2 46 F7 [10:53:15]Write i2c OK [10:53:15]MH_I2C_Read... [10:53:15]Read from MH i2c: F0 [10:53:15]MH_I2C_Read... [10:53:15]Read from MH i2c: F0 09 00 [10:53:15]MH_I2C_Read... [10:53:15]Read from MH i2c: F0 09 00 C2 46 00 9F 32 16 67 A0 18 CA 66 36 [10:53:15]GetLastDocTimeStamp 1729507878 [10:53:15]current date 1729507999 [10:53:15]FM_GetShiftState [10:53:15]SAM_PROTO_GetShiftState [10:53:15]wFMCommunicate request_size=4 [10:53:15]MH_SAM_APDU [10:53:15]CAPDU: 80 13 01 00 [10:53:15]Write to MH i2c: E2 08 00 C3 46 80 13 01 00 00 00 00 00 86 [10:53:15]Write i2c OK [10:53:15]MH_I2C_Read... [10:53:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:53:15]Read from MH i2c: E2 [10:53:15]MH_I2C_Read... [10:53:15]Read from MH i2c: E2 0E 00 [10:53:15]MH_I2C_Read... [10:53:15]Read from MH i2c: E2 0E 00 C3 46 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 E5 [10:53:15]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [10:53:15]wFMCommunicate OK [10:53:15]SAM_PROTO_GetShiftState done [10:53:15]FM_GetShiftState done [10:53:15]opened in 1729469754 [10:53:15]opened+sec_in_day 1729556154 [10:53:15]quantity*price = 200025 [10:53:15]sum+1 = 200026 [10:53:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 138 21.10.2024 10:53 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 187674 ФПД: 261515159926823 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T105319&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187674&fm=261515159926823&tin=02508201610067®Number=0000000000100030&sum=200000 [10:53:16]StoreToDocumentArchive [10:53:16]shift 460 fd 187674 [10:53:16]save to /storage/0460/doc_00187674 [10:53:16]save last doc name /storage/0460/doc_00187674 to /storage/kkm_last_doc_name [10:53:16]save OK [10:53:16]Clear old archive folders... [10:53:16]ProcessDocumentItem done err = 0, tmpTLVsize=257 [10:53:16]tlvbuf is 010D4970 [10:53:16]SAM_PROTO_ClearQueue [10:53:16]wFMCommunicate request_size=4 [10:53:16]MH_SAM_APDU [10:53:16]CAPDU: 80 09 00 00 [10:53:16]Write to MH i2c: E2 08 00 D0 46 80 09 00 00 00 00 00 00 88 [10:53:16]Write i2c OK [10:53:16]MH_I2C_Read... [10:53:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:53:17]Read from MH i2c: E2 [10:53:17]MH_I2C_Read... [10:53:17]Read from MH i2c: E2 03 00 [10:53:17]MH_I2C_Read... [10:53:17]Read from MH i2c: E2 03 00 D0 46 00 90 00 8A [10:53:17]RAPDU: 90 00 [10:53:17]wFMCommunicate OK [10:53:17]SAM_PROTO_ClearQueue done [10:53:17]KKMCreateOFDPacket [10:53:17]OFDProtocolAddRootSTLVToBuf [10:53:17]FM_MakeSignedData [10:53:17]FM_MakeSignedData [10:53:17]SAM_PROTO_SignData [10:53:17]wFMCommunicate request_size=4 [10:53:17]MH_SAM_APDU [10:53:17]CAPDU: 80 0D 01 02 [10:53:17]Write to MH i2c: E2 08 00 D1 46 80 0D 01 02 00 00 00 00 90 [10:53:17]Write i2c OK [10:53:17]MH_I2C_Read... [10:53:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:53:17]Read from MH i2c: E2 [10:53:17]MH_I2C_Read... [10:53:17]Read from MH i2c: E2 03 00 [10:53:17]MH_I2C_Read... [10:53:17]Read from MH i2c: E2 03 00 D1 46 00 90 00 8B [10:53:17]RAPDU: 90 00 [10:53:17]wFMCommunicate OK [10:53:17]wFMCommunicate request_size=255 [10:53:17]MH_SAM_APDU [10:53:17]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 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 36 65 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8A 00 00 00 F4 03 04 00 9F 32 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 1A DD 02 [10:53:17]Write to MH i2c: E2 02 01 D2 46 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 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 36 65 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8A 00 00 00 F4 03 04 00 9F 32 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 1A DD 02 00 00 CF [10:53:17]Write i2c OK [10:53:17]MH_I2C_Read... [10:53:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:53:17]Read from MH i2c: E2 [10:53:17]MH_I2C_Read... [10:53:17]Read from MH i2c: E2 03 00 [10:53:17]MH_I2C_Read... [10:53:17]Read from MH i2c: E2 03 00 D2 46 00 90 00 8C [10:53:17]RAPDU: 90 00 [10:53:17]wFMCommunicate OK [10:53:17]wFMCommunicate request_size=16 [10:53:17]MH_SAM_APDU [10:53:17]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 ED D8 BE 35 F8 27 [10:53:17]Write to MH i2c: E2 13 00 D3 46 80 0D 02 02 0B 00 00 35 04 06 00 ED D8 BE 35 F8 27 00 00 BF [10:53:17]Write i2c OK [10:53:17]MH_I2C_Read... [10:53:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:53:17]Read from MH i2c: E2 [10:53:17]MH_I2C_Read... [10:53:17]Read from MH i2c: E2 03 00 [10:53:17]MH_I2C_Read... [10:53:17]Read from MH i2c: E2 03 00 D3 46 00 90 00 8D [10:53:17]RAPDU: 90 00 [10:53:17]wFMCommunicate OK [10:53:17]wFMCommunicate request_size=4 [10:53:17]MH_SAM_APDU [10:53:17]CAPDU: 80 0D 03 02 [10:53:17]Write to MH i2c: E2 08 00 D4 46 80 0D 03 02 00 00 00 00 95 [10:53:17]Write i2c OK [10:53:17]MH_I2C_Read... [10:53:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:53:17]Read from MH i2c: E2 [10:53:17]MH_I2C_Read... [10:53:17]Read from MH i2c: E2 0B 00 [10:53:17]MH_I2C_Read... [10:53:17]Read from MH i2c: E2 0B 00 D4 46 00 C4 B1 81 EA 3F B0 56 D7 90 00 92 [10:53:17]RAPDU: C4 B1 81 EA 3F B0 56 D7 90 00 [10:53:17]wFMCommunicate OK [10:53:17]SAM_PROTO_SignData done [10:53:17]FM_MakeSignedData done [10:53:17]CreateOFDProtocolMessage [10:53:17]wFMCommunicate request_size=4 [10:53:17]MH_SAM_APDU [10:53:17]CAPDU: 80 11 00 00 [10:53:17]Write to MH i2c: E2 08 00 D5 46 80 11 00 00 00 00 00 00 95 [10:53:17]Write i2c OK [10:53:17]MH_I2C_Read... [10:53:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:53:17]Read from MH i2c: E2 [10:53:17]MH_I2C_Read... [10:53:17]Read from MH i2c: E2 17 00 [10:53:17]MH_I2C_Read... [10:53:17]Read from MH i2c: E2 17 00 D5 46 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 E3 [10:53:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [10:53:17]wFMCommunicate OK [10:53:17]CreateOFDProtocolMessage done [10:53:17]OFDSenderStorePacket 187674 [10:53:17]StoreOFDPacket docnum=187674 [10:53:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 6F 42 0D 01 6D BC 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 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 36 65 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8A 00 00 00 F4 03 04 00 9F 32 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 1A DD 02 00 35 04 06 00 ED D8 BE 35 F8 27 C4 B1 81 EA 3F B0 56 D7 [10:53:17]CheckFolder [10:53:17]dirname=/storage/ofd_packets [10:53:17]CheckFolder done [10:53:17]ProducePacketName [10:53:17]name=ofd_packets/00187674 [10:53:17]NVStorageSaveData ofd_packets/00187674 [10:53:17]File name is /storage/ofd_packets/00187674 [10:53:17]Write 307 bytes [10:53:17]NVStorageSaveData done [10:53:17]OFDSenderStorePacket done [10:53:17]KKMCreateOFDPacket done [10:53:17]NVStorageSaveData kkm_last_timestamp [10:53:17]File name is /storage/kkm_last_timestamp [10:53:17]Write 4 bytes [10:53:17]NVStorageSaveData done [10:53:17]ExternCall_PrintAddStr [10:53:17]wPrintStart [10:53:17]Write to MH i2c: 01 00 00 D6 46 1C [10:53:17]Write i2c OK [10:53:17]MH_I2C_Read... [10:53:17]Read from MH i2c: 01 [10:53:17]MH_I2C_Read... [10:53:17]Read from MH i2c: 01 07 00 [10:53:17]MH_I2C_Read... [10:53:17]Read from MH i2c: 01 07 00 D6 46 00 00 00 00 00 FF 0F 31 [10:53:17]RasterBufferAndPrint [10:53:17]line Счет N : (1)209726 [10:53:17]line ИНН: 02508201610067 [10:53:17]line Контрольно-Кассовый Чек [10:53:17]line ПРОДАЖА [10:53:17]line ТРК (МРК, ГНК) : 41 [10:53:17]line Товар: 2710194210 [10:53:17]line D-ENERGY ДТ-К-5 [10:53:17]line 25.910 * 77.20 [10:53:17]line = 2000.25 [10:53:17]line НДС 12% НСП 1% [10:53:17]line > о реализуемом товаре [10:53:17]line ОКРУГЛЕНИЕ: -0.25 [10:53:17]line ИТОГО: 2000.00 [10:53:17]line Внесено: 2000.00 [10:53:17]line СДАЧА: 0.00 [10:53:17]line НСП 1% : 17.70 [10:53:17]line НДС 12% : 212.42 [10:53:17]line Наличными: 2000.00 [10:53:17]line Безнал.: 0.00 [10:53:17]line Место: АЗС № 86 "Партнер Нефть" [10:53:17]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [10:53:17]line СНО: Общий режим [10:53:17]line Чек 138 21.10.2024 10:53 [10:53:17]line Смена: 460 ФФД: 1.0 [10:53:17]line ЗНМ: 0300000155 [10:53:17]line РНМ: 0000000000100030 [10:53:17]line Версия ККМ: 001 [10:53:17]line ФМ: 0000000000965340 [10:53:17]line ФД: 187674 [10:53:17]line ФПД: 261515159926823 [10:53:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T105319&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187674&fm=261515159926823&tin=02508201610067®Number=0000000000100030&sum=200000 [10:53:17]written 0, free lines is 4095 [10:53:17]OFD Sender: Processing packet 187674 [packets to send 1062, broken 1061] [10:53:17]ProducePacketName [10:53:17]name=ofd_packets/00187674 [10:53:17]OFD Sender: To server: pG, [10:53:17]CommunicateWithHost lk.salyk.kg:30040 [10:53:17]ConnectInit lk.salyk.kg [10:53:17]Connected sock=10 [10:53:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 6F 42 0D 01 6D BC 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 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 36 65 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8A 00 00 00 F4 03 04 00 9F 32 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 1A DD 02 00 35 04 06 00 ED D8 BE 35 F8 27 C4 B1 81 EA 3F B0 56 D7 [10:53:18]Write to MH i2c: 01 00 00 01 47 48 [10:53:18]Write i2c OK [10:53:18]MH_I2C_Read... [10:53:18]Read from MH i2c: 01 [10:53:18]MH_I2C_Read... [10:53:18]Read from MH i2c: 01 07 00 [10:53:18]MH_I2C_Read... [10:53:18]Read from MH i2c: 01 07 00 01 47 00 00 00 00 00 91 0C EC [10:53:18]RasterBufferAndPrint [10:53:18]line [10:53:18]line [10:53:18]line [10:53:18]line [10:53:18]line [10:53:18]written 0, free lines is 3221 [10:53:18]MH_Cut [10:53:18]Write to MH i2c: D1 01 00 08 47 01 21 [10:53:18]Write i2c OK [10:53:18]MH_I2C_Read... [10:53:18]Read from MH i2c: D1 [10:53:18]MH_I2C_Read... [10:53:18]Read from MH i2c: D1 01 00 [10:53:18]MH_I2C_Read... [10:53:18]Read from MH i2c: D1 01 00 08 47 00 20 [10:53:18]Write to MH i2c: 01 00 00 09 47 50 [10:53:18]Write i2c OK [10:53:18]MH_I2C_Read... [10:53:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 5A 3D 47 00 56 EB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 1A DD 02 00 F4 03 04 00 8F DC 15 67 B6 04 01 00 00 8D 7A 1D 96 5C 08 F5 FE [10:53:18]CommunicateWithHost err = 0 [10:53:18]CheckOFDResponse [10:53:18]1017 (14) - 77093643461234 [10:53:18]1041 (16) - 0000000000965340 [10:53:18]1040 (4) - 187674 [10:53:18]1012 (4) - 21.10.2024 04:46 [10:53:18]1206 (1) - 0 [10:53:18]OFD Sender: Remove packet 187674 [10:53:18]ProducePacketName [10:53:18]name=ofd_packets/00187674 [10:53:18]NVStorageDeleteData [10:53:18]OFD Sender: No OFD packet to send [10:53:19]*** Cut start [10:53:19]*** Partial cut [10:53:19]*** CUTSNS_PIN = 1 [10:53:19]*** CUTSNS_PIN = 0 [10:53:19]*** Brake cut motor [10:53:19]Read from MH i2c: 01 [10:53:19]MH_I2C_Read... [10:53:19]*** Stop cut motor [10:53:19]*** Cut end [10:53:19]Read from MH i2c: 01 07 00 [10:53:19]MH_I2C_Read... [10:53:19]Read from MH i2c: 01 07 00 09 47 00 00 00 00 00 FF 0F 65 [10:53:19]process_action close_receipt done [10:53:19]requested_data is exist [10:53:19]produce_requested_data [10:53:19]requested_item fm.sn is exist - process it [10:53:19]wFMCommunicate request_size=4 [10:53:19]MH_SAM_APDU [10:53:19]CAPDU: 80 11 00 00 [10:53:19]Write to MH i2c: E2 08 00 0A 47 80 11 00 00 00 00 00 00 CB [10:53:19]Write i2c OK [10:53:19]MH_I2C_Read... [10:53:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:53:19]Read from MH i2c: E2 [10:53:19]MH_I2C_Read... [10:53:19]Read from MH i2c: E2 17 00 [10:53:19]MH_I2C_Read... [10:53:19]Read from MH i2c: E2 17 00 0A 47 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 19 [10:53:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [10:53:19]wFMCommunicate OK [10:53:19]requested_item fd.num is exist - process it [10:53:19]SAM_PROTO_GetFieldsCounters [10:53:19]wFMCommunicate request_size=4 [10:53:19]MH_SAM_APDU [10:53:19]CAPDU: 80 13 00 00 [10:53:19]Write to MH i2c: E2 08 00 0B 47 80 13 00 00 00 00 00 00 CE [10:53:19]Write i2c OK [10:53:19]MH_I2C_Read... [10:53:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:53:19]Read from MH i2c: E2 [10:53:19]MH_I2C_Read... [10:53:19]Read from MH i2c: E2 62 00 [10:53:19]MH_I2C_Read... [10:53:19]Read from MH i2c: E2 62 00 0B 47 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 1A DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 8A 00 00 00 5E 04 04 00 8A 00 00 00 57 04 04 00 8B 00 00 00 19 04 04 00 00 00 00 00 90 00 39 [10:53:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 1A DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 8A 00 00 00 5E 04 04 00 8A 00 00 00 57 04 04 00 8B 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:53:19]wFMCommunicate OK [10:53:19]SAM_PROTO_GetFieldsCounters done [10:53:19]requested_item shift.num is exist - process it [10:53:19]requested_item shift.opened is exist - process it [10:53:19]req_shift_opened [10:53:19]FM_GetShiftState [10:53:19]SAM_PROTO_GetShiftState [10:53:19]wFMCommunicate request_size=4 [10:53:19]MH_SAM_APDU [10:53:19]CAPDU: 80 13 01 00 [10:53:19]Write to MH i2c: E2 08 00 0C 47 80 13 01 00 00 00 00 00 D0 [10:53:19]Write i2c OK [10:53:19]MH_I2C_Read... [10:53:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:53:19]Read from MH i2c: E2 [10:53:19]MH_I2C_Read... [10:53:19]Read from MH i2c: E2 0E 00 [10:53:19]MH_I2C_Read... [10:53:19]Read from MH i2c: E2 0E 00 0C 47 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 2F [10:53:19]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [10:53:19]wFMCommunicate OK [10:53:19]SAM_PROTO_GetShiftState done [10:53:19]FM_GetShiftState done [10:53:19]req_shift_opened done [10:53:19]requested_item shift.open_date is exist - process it [10:53:19]req_shift_open_date [10:53:19]req_shift_open_date done [10:53:19]produce_requested_data done [10:53:19]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187674,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [10:53:19]process_action_free close_receipt [10:53:19]json_value_free [10:53:19]json_value_free done [10:53:19]process_json_proto returns [10:53:19]Send response to host [10:53:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187674,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [10:53:19]free response buf [10:53:19]execute_script done [10:53:19]execute_script returns [10:53:19]free content buf [10:53:19]Sock 8.Close socket [10:53:19]Sock 8.Thread stoped [10:53:23]OFD Sender: No OFD packet to send [10:53:28]OFD Sender: No OFD packet to send [10:53:33]OFD Sender: No OFD packet to send [10:53:38]OFD Sender: No OFD packet to send [10:53:43]OFD Sender: No OFD packet to send [10:53:48]OFD Sender: No OFD packet to send [10:53:53]OFD Sender: No OFD packet to send [10:53:58]OFD Sender: No OFD packet to send [10:54:03]OFD Sender: No OFD packet to send [10:54:08]OFD Sender: No OFD packet to send [10:54:13]OFD Sender: No OFD packet to send [10:54:18]OFD Sender: No OFD packet to send [10:54:23]OFD Sender: No OFD packet to send [10:54:28]OFD Sender: No OFD packet to send [10:54:34]OFD Sender: No OFD packet to send [10:54:39]OFD Sender: No OFD packet to send [10:54:44]OFD Sender: No OFD packet to send [10:54:49]OFD Sender: No OFD packet to send [10:54:54]OFD Sender: No OFD packet to send [10:54:55]accept exits with 9 [10:54:55]New connection [10:54:55]New thread 3067014500 created [10:54:55]Thread 3067157860 joined [10:54:55]Waiting for new connection... [10:54:55] Sock 9.Parse request [10:54:55]Sock 9.Check first char [10:54:55]Sock 9.First char is OK [10:54:55]request: POST /json_proto HTTP/1.0 [10:54:55]Method: POST [10:54:55]URL: /json_proto [10:54:55]Method is POST - this is cgi request [10:54:55]url: /json_proto [10:54:55]query_string will be loaded in cgi processing [10:54:55]execute_cgi json_proto POST (null) [10:54:55]execute_cgi path=json_proto method=POST [10:54:55]POST find Content-Length [10:54:55]Host: 172.17.42.131:8080 [10:54:55]Content-Length: 754 [10:54:55]Content-Type: application/json [10:54:55] [10:54:55]POST finish read [10:54:55]Found Content-Length = 754 [10:54:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209727", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "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\u000A30073946", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:54:55]execute_script... [10:54: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)209727", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "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\u000A30073946", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:54:55]POST & json_proto [10:54:55]process_json_proto [10:54:55]json parsed OK: [10:54:55]protocol is kg_v1.0 [10:54:55]action value=close_receipt [10:54:55]process_action close_receipt [10:54:55]cmd_close_receipt [10:54:55]MH_GetDate [10:54:55]Write to MH i2c: F0 00 00 0D 47 43 [10:54:55]Write i2c OK [10:54:55]MH_I2C_Read... [10:54:55]Read from MH i2c: F0 [10:54:55]MH_I2C_Read... [10:54:55]Read from MH i2c: F0 09 00 [10:54:55]MH_I2C_Read... [10:54:55]Read from MH i2c: F0 09 00 0D 47 00 03 33 16 67 A0 18 CA 66 E7 [10:54:55]GetLastDocTimeStamp 1729507999 [10:54:55]current date 1729508099 [10:54:55]FM_GetShiftState [10:54:55]SAM_PROTO_GetShiftState [10:54:55]wFMCommunicate request_size=4 [10:54:55]MH_SAM_APDU [10:54:55]CAPDU: 80 13 01 00 [10:54:55]Write to MH i2c: E2 08 00 0E 47 80 13 01 00 00 00 00 00 D2 [10:54:55]Write i2c OK [10:54:55]MH_I2C_Read... [10:54:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:54:55]Read from MH i2c: E2 [10:54:55]MH_I2C_Read... [10:54:55]Read from MH i2c: E2 0E 00 [10:54:55]MH_I2C_Read... [10:54:55]Read from MH i2c: E2 0E 00 0E 47 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 31 [10:54:55]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [10:54:55]wFMCommunicate OK [10:54:55]SAM_PROTO_GetShiftState done [10:54:55]FM_GetShiftState done [10:54:55]opened in 1729469754 [10:54:55]opened+sec_in_day 1729556154 [10:54:55]quantity*price = 0 [10:54:55]sum+1 = 1 [10:54:55]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 139 21.10.2024 10:54 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Талоны: ТК ГПНА Online 30073946 ФМ: 0000000000965340 ФД: 187675 ФПД: 227321396123123 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T105459&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187675&fm=227321396123123&tin=02508201610067®Number=0000000000100030&sum=0 [10:54:56]StoreToDocumentArchive [10:54:56]shift 460 fd 187675 [10:54:56]save to /storage/0460/doc_00187675 [10:54:56]save last doc name /storage/0460/doc_00187675 to /storage/kkm_last_doc_name [10:54:56]save OK [10:54:56]Clear old archive folders... [10:54:56]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:54:56]tlvbuf is B6F87300 [10:54:56]SAM_PROTO_ClearQueue [10:54:56]wFMCommunicate request_size=4 [10:54:56]MH_SAM_APDU [10:54:56]CAPDU: 80 09 00 00 [10:54:56]Write to MH i2c: E2 08 00 1B 47 80 09 00 00 00 00 00 00 D4 [10:54:56]Write i2c OK [10:54:56]MH_I2C_Read... [10:54:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:54:56]Read from MH i2c: E2 [10:54:56]MH_I2C_Read... [10:54:56]Read from MH i2c: E2 03 00 [10:54:56]MH_I2C_Read... [10:54:56]Read from MH i2c: E2 03 00 1B 47 00 90 00 D6 [10:54:56]RAPDU: 90 00 [10:54:56]wFMCommunicate OK [10:54:56]SAM_PROTO_ClearQueue done [10:54:56]KKMCreateOFDPacket [10:54:56]OFDProtocolAddRootSTLVToBuf [10:54:56]FM_MakeSignedData [10:54:56]FM_MakeSignedData [10:54:56]SAM_PROTO_SignData [10:54:56]wFMCommunicate request_size=4 [10:54:56]MH_SAM_APDU [10:54:56]CAPDU: 80 0D 01 02 [10:54:56]Write to MH i2c: E2 08 00 1C 47 80 0D 01 02 00 00 00 00 DC [10:54:56]Write i2c OK [10:54:56]MH_I2C_Read... [10:54:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:54:56]Read from MH i2c: E2 [10:54:56]MH_I2C_Read... [10:54:56]Read from MH i2c: E2 03 00 [10:54:56]MH_I2C_Read... [10:54:56]Read from MH i2c: E2 03 00 1C 47 00 90 00 D7 [10:54:56]RAPDU: 90 00 [10:54:56]wFMCommunicate OK [10:54:56]wFMCommunicate request_size=255 [10:54:56]MH_SAM_APDU [10:54: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 33 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 8B 00 00 00 F4 03 04 00 03 33 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 1B DD 02 00 35 04 06 00 CE [10:54:56]Write to MH i2c: E2 02 01 1D 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 33 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 8B 00 00 00 F4 03 04 00 03 33 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 1B DD 02 00 35 04 06 00 CE 00 00 0B [10:54:56]Write i2c OK [10:54:56]MH_I2C_Read... [10:54:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:54:56]Read from MH i2c: E2 [10:54:56]MH_I2C_Read... [10:54:56]Read from MH i2c: E2 03 00 [10:54:56]MH_I2C_Read... [10:54:56]Read from MH i2c: E2 03 00 1D 47 00 90 00 D8 [10:54:56]RAPDU: 90 00 [10:54:56]wFMCommunicate OK [10:54:56]wFMCommunicate request_size=10 [10:54:56]MH_SAM_APDU [10:54:56]CAPDU: 80 0D 02 02 05 BF 63 10 D5 F3 [10:54:56]Write to MH i2c: E2 0D 00 1E 47 80 0D 02 02 05 00 BF 63 10 D5 F3 00 00 E3 [10:54:56]Write i2c OK [10:54:56]MH_I2C_Read... [10:54:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:54:56]Read from MH i2c: E2 [10:54:56]MH_I2C_Read... [10:54:56]Read from MH i2c: E2 03 00 [10:54:56]MH_I2C_Read... [10:54:56]Read from MH i2c: E2 03 00 1E 47 00 90 00 D9 [10:54:56]RAPDU: 90 00 [10:54:56]wFMCommunicate OK [10:54:56]wFMCommunicate request_size=4 [10:54:56]MH_SAM_APDU [10:54:56]CAPDU: 80 0D 03 02 [10:54:56]Write to MH i2c: E2 08 00 1F 47 80 0D 03 02 00 00 00 00 E1 [10:54:56]Write i2c OK [10:54:56]MH_I2C_Read... [10:54:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:54:56]Read from MH i2c: E2 [10:54:56]MH_I2C_Read... [10:54:56]Read from MH i2c: E2 0B 00 [10:54:56]MH_I2C_Read... [10:54:56]Read from MH i2c: E2 0B 00 1F 47 00 7E 13 52 B3 A6 02 C1 62 90 00 43 [10:54:56]RAPDU: 7E 13 52 B3 A6 02 C1 62 90 00 [10:54:56]wFMCommunicate OK [10:54:56]SAM_PROTO_SignData done [10:54:56]FM_MakeSignedData done [10:54:56]CreateOFDProtocolMessage [10:54:56]wFMCommunicate request_size=4 [10:54:56]MH_SAM_APDU [10:54:56]CAPDU: 80 11 00 00 [10:54:56]Write to MH i2c: E2 08 00 20 47 80 11 00 00 00 00 00 00 E1 [10:54:56]Write i2c OK [10:54:56]MH_I2C_Read... [10:54:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:54:57]Read from MH i2c: E2 [10:54:57]MH_I2C_Read... [10:54:57]Read from MH i2c: E2 17 00 [10:54:57]MH_I2C_Read... [10:54:57]Read from MH i2c: E2 17 00 20 47 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 2F [10:54:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [10:54:57]wFMCommunicate OK [10:54:57]CreateOFDProtocolMessage done [10:54:57]OFDSenderStorePacket 187675 [10:54:57]StoreOFDPacket docnum=187675 [10:54:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 FF 40 07 01 AA 57 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 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 8B 00 00 00 F4 03 04 00 03 33 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 1B DD 02 00 35 04 06 00 CE BF 63 10 D5 F3 7E 13 52 B3 A6 02 C1 62 [10:54:57]CheckFolder [10:54:57]dirname=/storage/ofd_packets [10:54:57]CheckFolder done [10:54:57]ProducePacketName [10:54:57]name=ofd_packets/00187675 [10:54:57]NVStorageSaveData ofd_packets/00187675 [10:54:57]File name is /storage/ofd_packets/00187675 [10:54:57]Write 301 bytes [10:54:57]NVStorageSaveData done [10:54:57]OFDSenderStorePacket done [10:54:57]KKMCreateOFDPacket done [10:54:57]NVStorageSaveData kkm_last_timestamp [10:54:57]File name is /storage/kkm_last_timestamp [10:54:57]Write 4 bytes [10:54:57]NVStorageSaveData done [10:54:57]ExternCall_PrintAddStr [10:54:57]wPrintStart [10:54:57]Write to MH i2c: 01 00 00 21 47 68 [10:54:57]Write i2c OK [10:54:57]MH_I2C_Read... [10:54:57]Read from MH i2c: 01 [10:54:57]MH_I2C_Read... [10:54:57]Read from MH i2c: 01 07 00 [10:54:57]MH_I2C_Read... [10:54:57]Read from MH i2c: 01 07 00 21 47 00 00 00 00 00 FF 0F 7D [10:54:57]RasterBufferAndPrint [10:54:57]line Счет N : (1)209727 [10:54:57]line ИНН: 02508201610067 [10:54:57]line Контрольно-Кассовый Чек [10:54:57]line ПРОДАЖА [10:54:57]line ТРК (МРК, ГНК) : 22 [10:54:57]line Товар: 2710124130 [10:54:57]line Аи-92-К-3 [10:54:57]line 20.000 * 0.00 [10:54:57]line = 0.00 [10:54:57]line НДС 12% НСП 1% [10:54:57]line > о реализуемом товаре [10:54:57]line ИТОГО: 0.00 [10:54:57]line НСП 1% : 0.00 [10:54:57]line НДС 12% : 0.00 [10:54:57]line Наличными: 0.00 [10:54:57]line Безнал.: 0.00 [10:54:57]line Место: АЗС № 86 "Партнер Нефть" [10:54:57]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [10:54:57]line СНО: Общий режим [10:54:57]line Чек 139 21.10.2024 10:54 [10:54:57]line Смена: 460 ФФД: 1.0 [10:54:57]line ЗНМ: 0300000155 [10:54:57]line РНМ: 0000000000100030 [10:54:57]line Версия ККМ: 001 [10:54:57]line Талоны: ТК ГПНА Online [10:54:57]line 30073946 [10:54:57]line ФМ: 0000000000965340 [10:54:57]line ФД: 187675 [10:54:57]line ФПД: 227321396123123 [10:54:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T105459&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187675&fm=227321396123123&tin=02508201610067®Number=0000000000100030&sum=0 [10:54:57]OFD Sender: Processing packet 187675 [packets to send 1062, broken 1061] [10:54:57]ProducePacketName [10:54:57]name=ofd_packets/00187675 [10:54:57]OFD Sender: To server: pG, [10:54:57]CommunicateWithHost lk.salyk.kg:30040 [10:54:57]ConnectInit lk.salyk.kg [10:54:57]written 0, free lines is 4095 [10:54:57]Connected sock=10 [10:54:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 FF 40 07 01 AA 57 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 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 8B 00 00 00 F4 03 04 00 03 33 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 1B DD 02 00 35 04 06 00 CE BF 63 10 D5 F3 7E 13 52 B3 A6 02 C1 62 [10:54:57]Write to MH i2c: 01 00 00 4B 47 92 [10:54:57]Write i2c OK [10:54:57]MH_I2C_Read... [10:54:57]Read from MH i2c: 01 [10:54:57]MH_I2C_Read... [10:54:57]Read from MH i2c: 01 07 00 [10:54:57]MH_I2C_Read... [10:54:57]Read from MH i2c: 01 07 00 4B 47 00 00 00 00 00 A3 0C 48 [10:54:57]RasterBufferAndPrint [10:54:57]line [10:54:57]line [10:54:57]line [10:54:57]line [10:54:57]line [10:54:57]written 0, free lines is 3238 [10:54:57]MH_Cut [10:54:57]Write to MH i2c: D1 01 00 52 47 01 6B [10:54:57]Write i2c OK [10:54:57]MH_I2C_Read... [10:54:57]Read from MH i2c: D1 [10:54:57]MH_I2C_Read... [10:54:57]Read from MH i2c: D1 01 00 [10:54:57]MH_I2C_Read... [10:54:57]Read from MH i2c: D1 01 00 52 47 00 6A [10:54:57]Write to MH i2c: 01 00 00 53 47 9A [10:54:57]Write i2c OK [10:54:57]MH_I2C_Read... [10:54:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 6D B2 47 00 89 55 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 1B DD 02 00 F4 03 04 00 F2 DC 15 67 B6 04 01 00 00 D6 DA 5A 0B 60 37 0F 07 [10:54:57]CommunicateWithHost err = 0 [10:54:57]CheckOFDResponse [10:54:57]1017 (14) - 77093643461234 [10:54:57]1041 (16) - 0000000000965340 [10:54:57]1040 (4) - 187675 [10:54:57]1012 (4) - 21.10.2024 04:47 [10:54:57]1206 (1) - 0 [10:54:57]OFD Sender: Remove packet 187675 [10:54:57]ProducePacketName [10:54:57]name=ofd_packets/00187675 [10:54:57]NVStorageDeleteData [10:54:58]OFD Sender: No OFD packet to send [10:54:58]*** Cut start [10:54:58]*** Partial cut [10:54:58]*** CUTSNS_PIN = 1 [10:54:58]*** CUTSNS_PIN = 0 [10:54:58]*** Brake cut motor [10:54:59]Read from MH i2c: 01 [10:54:59]MH_I2C_Read... [10:54:59]*** Stop cut motor [10:54:59]*** Cut end [10:54:59]Read from MH i2c: 01 07 00 [10:54:59]MH_I2C_Read... [10:54:59]Read from MH i2c: 01 07 00 53 47 00 00 00 00 00 FF 0F AF [10:54:59]process_action close_receipt done [10:54:59]requested_data is exist [10:54:59]produce_requested_data [10:54:59]requested_item fm.sn is exist - process it [10:54:59]wFMCommunicate request_size=4 [10:54:59]MH_SAM_APDU [10:54:59]CAPDU: 80 11 00 00 [10:54:59]Write to MH i2c: E2 08 00 54 47 80 11 00 00 00 00 00 00 15 [10:54:59]Write i2c OK [10:54:59]MH_I2C_Read... [10:54:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:54:59]Read from MH i2c: E2 [10:54:59]MH_I2C_Read... [10:54:59]Read from MH i2c: E2 17 00 [10:54:59]MH_I2C_Read... [10:54:59]Read from MH i2c: E2 17 00 54 47 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 63 [10:54:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [10:54:59]wFMCommunicate OK [10:54:59]requested_item fd.num is exist - process it [10:54:59]SAM_PROTO_GetFieldsCounters [10:54:59]wFMCommunicate request_size=4 [10:54:59]MH_SAM_APDU [10:54:59]CAPDU: 80 13 00 00 [10:54:59]Write to MH i2c: E2 08 00 55 47 80 13 00 00 00 00 00 00 18 [10:54:59]Write i2c OK [10:54:59]MH_I2C_Read... [10:54:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:54:59]Read from MH i2c: E2 [10:54:59]MH_I2C_Read... [10:54:59]Read from MH i2c: E2 62 00 [10:54:59]MH_I2C_Read... [10:54:59]Read from MH i2c: E2 62 00 55 47 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 1B DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 8B 00 00 00 5E 04 04 00 8B 00 00 00 57 04 04 00 8C 00 00 00 19 04 04 00 00 00 00 00 90 00 87 [10:54:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 1B DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 8B 00 00 00 5E 04 04 00 8B 00 00 00 57 04 04 00 8C 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:54:59]wFMCommunicate OK [10:54:59]SAM_PROTO_GetFieldsCounters done [10:54:59]requested_item shift.num is exist - process it [10:54:59]requested_item shift.opened is exist - process it [10:54:59]req_shift_opened [10:54:59]FM_GetShiftState [10:54:59]SAM_PROTO_GetShiftState [10:54:59]wFMCommunicate request_size=4 [10:54:59]MH_SAM_APDU [10:54:59]CAPDU: 80 13 01 00 [10:54:59]Write to MH i2c: E2 08 00 56 47 80 13 01 00 00 00 00 00 1A [10:54:59]Write i2c OK [10:54:59]MH_I2C_Read... [10:54:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:54:59]Read from MH i2c: E2 [10:54:59]MH_I2C_Read... [10:54:59]Read from MH i2c: E2 0E 00 [10:54:59]MH_I2C_Read... [10:54:59]Read from MH i2c: E2 0E 00 56 47 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 79 [10:54:59]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [10:54:59]wFMCommunicate OK [10:54:59]SAM_PROTO_GetShiftState done [10:54:59]FM_GetShiftState done [10:54:59]req_shift_opened done [10:54:59]requested_item shift.open_date is exist - process it [10:54:59]req_shift_open_date [10:54:59]req_shift_open_date done [10:54:59]produce_requested_data done [10:54:59]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187675,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [10:54:59]process_action_free close_receipt [10:54:59]json_value_free [10:54:59]json_value_free done [10:54:59]process_json_proto returns [10:54:59]Send response to host [10:54:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187675,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [10:54:59]free response buf [10:54:59]execute_script done [10:54:59]execute_script returns [10:54:59]free content buf [10:54:59]Sock 9.Close socket [10:54:59]Sock 9.Thread stoped [10:55:03]OFD Sender: No OFD packet to send [10:55:08]OFD Sender: No OFD packet to send [10:55:13]OFD Sender: No OFD packet to send [10:55:18]OFD Sender: No OFD packet to send [10:55:23]OFD Sender: No OFD packet to send [10:55:28]OFD Sender: No OFD packet to send [10:55:33]OFD Sender: No OFD packet to send [10:55:38]OFD Sender: No OFD packet to send [10:55:43]OFD Sender: No OFD packet to send [10:55:48]OFD Sender: No OFD packet to send [10:55:53]OFD Sender: No OFD packet to send [10:55:58]OFD Sender: No OFD packet to send [10:56:03]OFD Sender: No OFD packet to send [10:56:08]OFD Sender: No OFD packet to send [10:56:13]OFD Sender: No OFD packet to send [10:56:18]OFD Sender: No OFD packet to send [10:56:23]OFD Sender: No OFD packet to send [10:56:28]OFD Sender: No OFD packet to send [10:56:33]OFD Sender: No OFD packet to send [10:56:38]OFD Sender: No OFD packet to send [10:56:43]OFD Sender: No OFD packet to send [10:56:48]OFD Sender: No OFD packet to send [10:56:53]OFD Sender: No OFD packet to send [10:56:58]OFD Sender: No OFD packet to send [10:57:03]OFD Sender: No OFD packet to send [10:57:08]OFD Sender: No OFD packet to send [10:57:13]OFD Sender: No OFD packet to send [10:57:18]OFD Sender: No OFD packet to send [10:57:23]OFD Sender: No OFD packet to send [10:57:28]OFD Sender: No OFD packet to send [10:57:33]OFD Sender: No OFD packet to send [10:57:38]OFD Sender: No OFD packet to send [10:57:43]OFD Sender: No OFD packet to send [10:57:48]OFD Sender: No OFD packet to send [10:57:53]OFD Sender: No OFD packet to send [10:57:58]OFD Sender: No OFD packet to send [10:58:03]accept exits with 8 [10:58:03]New connection [10:58:03]New thread 3067157860 created [10:58:03]Thread 3067014500 joined [10:58:03]Waiting for new connection... [10:58:03] Sock 8.Parse request [10:58:03]Sock 8.Check first char [10:58:03]Sock 8.First char is OK [10:58:03]request: POST /json_proto HTTP/1.0 [10:58:03]Method: POST [10:58:03]URL: /json_proto [10:58:03]Method is POST - this is cgi request [10:58:03]url: /json_proto [10:58:03]query_string will be loaded in cgi processing [10:58:03]execute_cgi json_proto POST (null) [10:58:03]execute_cgi path=json_proto method=POST [10:58:03]POST find Content-Length [10:58:03]Host: 172.17.42.131:8080 [10:58:03]Content-Length: 688 [10:58:03]Content-Type: application/json [10:58:03] [10:58:03]POST finish read [10:58:03]Found Content-Length = 688 [10:58:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209728", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "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" ] } } [10:58:03]execute_script... [10:58: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)209728", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "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" ] } } [10:58:03]POST & json_proto [10:58:03]process_json_proto [10:58:03]json parsed OK: [10:58:03]protocol is kg_v1.0 [10:58:03]action value=close_receipt [10:58:03]process_action close_receipt [10:58:03]cmd_close_receipt [10:58:03]MH_GetDate [10:58:03]Write to MH i2c: F0 00 00 57 47 8D [10:58:03]Write i2c OK [10:58:03]MH_I2C_Read... [10:58:03]Read from MH i2c: F0 [10:58:03]MH_I2C_Read... [10:58:03]Read from MH i2c: F0 09 00 [10:58:03]MH_I2C_Read... [10:58:03]Read from MH i2c: F0 09 00 57 47 00 BF 33 16 67 A0 18 CA 66 ED [10:58:03]GetLastDocTimeStamp 1729508099 [10:58:03]current date 1729508287 [10:58:03]FM_GetShiftState [10:58:03]SAM_PROTO_GetShiftState [10:58:03]wFMCommunicate request_size=4 [10:58:03]MH_SAM_APDU [10:58:03]CAPDU: 80 13 01 00 [10:58:03]Write to MH i2c: E2 08 00 58 47 80 13 01 00 00 00 00 00 1C [10:58:03]Write i2c OK [10:58:03]MH_I2C_Read... [10:58:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:58:03]Read from MH i2c: E2 [10:58:03]MH_I2C_Read... [10:58:03]Read from MH i2c: E2 0E 00 [10:58:03]MH_I2C_Read... [10:58:03]Read from MH i2c: E2 0E 00 58 47 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 7B [10:58:03]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [10:58:03]wFMCommunicate OK [10:58:03]SAM_PROTO_GetShiftState done [10:58:03]FM_GetShiftState done [10:58:03]opened in 1729469754 [10:58:03]opened+sec_in_day 1729556154 [10:58:03]quantity*price = 150076 [10:58:03]sum+1 = 150078 [10:58:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.77 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.37 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 140 21.10.2024 10:58 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 187676 ФПД: 243614678112984 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T105807&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187676&fm=243614678112984&tin=02508201610067®Number=0000000000100030&sum=150000 [10:58:04]StoreToDocumentArchive [10:58:04]shift 460 fd 187676 [10:58:04]save to /storage/0460/doc_00187676 [10:58:04]save last doc name /storage/0460/doc_00187676 to /storage/kkm_last_doc_name [10:58:04]save OK [10:58:04]Clear old archive folders... [10:58:04]ProcessDocumentItem done err = 0, tmpTLVsize=257 [10:58:04]tlvbuf is 010FE970 [10:58:04]SAM_PROTO_ClearQueue [10:58:04]wFMCommunicate request_size=4 [10:58:04]MH_SAM_APDU [10:58:04]CAPDU: 80 09 00 00 [10:58:04]Write to MH i2c: E2 08 00 65 47 80 09 00 00 00 00 00 00 1E [10:58:04]Write i2c OK [10:58:04]MH_I2C_Read... [10:58:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:58:04]Read from MH i2c: E2 [10:58:04]MH_I2C_Read... [10:58:04]Read from MH i2c: E2 03 00 [10:58:04]MH_I2C_Read... [10:58:04]Read from MH i2c: E2 03 00 65 47 00 90 00 20 [10:58:04]RAPDU: 90 00 [10:58:04]wFMCommunicate OK [10:58:04]SAM_PROTO_ClearQueue done [10:58:04]KKMCreateOFDPacket [10:58:04]OFDProtocolAddRootSTLVToBuf [10:58:04]FM_MakeSignedData [10:58:04]FM_MakeSignedData [10:58:04]SAM_PROTO_SignData [10:58:04]wFMCommunicate request_size=4 [10:58:04]MH_SAM_APDU [10:58:04]CAPDU: 80 0D 01 02 [10:58:04]Write to MH i2c: E2 08 00 66 47 80 0D 01 02 00 00 00 00 26 [10:58:04]Write i2c OK [10:58:04]MH_I2C_Read... [10:58:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:58:04]Read from MH i2c: E2 [10:58:04]MH_I2C_Read... [10:58:04]Read from MH i2c: E2 03 00 [10:58:04]MH_I2C_Read... [10:58:04]Read from MH i2c: E2 03 00 66 47 00 90 00 21 [10:58:04]RAPDU: 90 00 [10:58:04]wFMCommunicate OK [10:58:04]wFMCommunicate request_size=255 [10:58:04]MH_SAM_APDU [10:58:04]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 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 8C 00 00 00 F4 03 04 00 BF 33 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 1C DD 02 [10:58:04]Write to MH i2c: E2 02 01 67 47 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 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 8C 00 00 00 F4 03 04 00 BF 33 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 1C DD 02 00 00 98 [10:58:04]Write i2c OK [10:58:04]MH_I2C_Read... [10:58:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:58:05]Read from MH i2c: E2 [10:58:05]MH_I2C_Read... [10:58:05]Read from MH i2c: E2 03 00 [10:58:05]MH_I2C_Read... [10:58:05]Read from MH i2c: E2 03 00 67 47 00 90 00 22 [10:58:05]RAPDU: 90 00 [10:58:05]wFMCommunicate OK [10:58:05]wFMCommunicate request_size=16 [10:58:05]MH_SAM_APDU [10:58:05]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 DD 90 F6 59 DA D8 [10:58:05]Write to MH i2c: E2 13 00 68 47 80 0D 02 02 0B 00 00 35 04 06 00 DD 90 F6 59 DA D8 00 00 EC [10:58:05]Write i2c OK [10:58:05]MH_I2C_Read... [10:58:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:58:05]Read from MH i2c: E2 [10:58:05]MH_I2C_Read... [10:58:05]Read from MH i2c: E2 03 00 [10:58:05]MH_I2C_Read... [10:58:05]Read from MH i2c: E2 03 00 68 47 00 90 00 23 [10:58:05]RAPDU: 90 00 [10:58:05]wFMCommunicate OK [10:58:05]wFMCommunicate request_size=4 [10:58:05]MH_SAM_APDU [10:58:05]CAPDU: 80 0D 03 02 [10:58:05]Write to MH i2c: E2 08 00 69 47 80 0D 03 02 00 00 00 00 2B [10:58:05]Write i2c OK [10:58:05]MH_I2C_Read... [10:58:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:58:05]Read from MH i2c: E2 [10:58:05]MH_I2C_Read... [10:58:05]Read from MH i2c: E2 0B 00 [10:58:05]MH_I2C_Read... [10:58:05]Read from MH i2c: E2 0B 00 69 47 00 1F 03 91 FA DA DB 07 FB 90 00 90 [10:58:05]RAPDU: 1F 03 91 FA DA DB 07 FB 90 00 [10:58:05]wFMCommunicate OK [10:58:05]SAM_PROTO_SignData done [10:58:05]FM_MakeSignedData done [10:58:05]CreateOFDProtocolMessage [10:58:05]wFMCommunicate request_size=4 [10:58:05]MH_SAM_APDU [10:58:05]CAPDU: 80 11 00 00 [10:58:05]Write to MH i2c: E2 08 00 6A 47 80 11 00 00 00 00 00 00 2B [10:58:05]Write i2c OK [10:58:05]MH_I2C_Read... [10:58:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:58:05]Read from MH i2c: E2 [10:58:05]MH_I2C_Read... [10:58:05]Read from MH i2c: E2 17 00 [10:58:05]MH_I2C_Read... [10:58:05]Read from MH i2c: E2 17 00 6A 47 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 79 [10:58:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [10:58:05]wFMCommunicate OK [10:58:05]CreateOFDProtocolMessage done [10:58:05]OFDSenderStorePacket 187676 [10:58:05]StoreOFDPacket docnum=187676 [10:58:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 E5 02 0D 01 FE BD 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 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 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 8C 00 00 00 F4 03 04 00 BF 33 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 1C DD 02 00 35 04 06 00 DD 90 F6 59 DA D8 1F 03 91 FA DA DB 07 FB [10:58:05]CheckFolder [10:58:05]dirname=/storage/ofd_packets [10:58:05]CheckFolder done [10:58:05]ProducePacketName [10:58:05]name=ofd_packets/00187676 [10:58:05]NVStorageSaveData ofd_packets/00187676 [10:58:05]File name is /storage/ofd_packets/00187676 [10:58:05]Write 307 bytes [10:58:05]NVStorageSaveData done [10:58:05]OFDSenderStorePacket done [10:58:05]KKMCreateOFDPacket done [10:58:05]NVStorageSaveData kkm_last_timestamp [10:58:05]File name is /storage/kkm_last_timestamp [10:58:05]Write 4 bytes [10:58:05]NVStorageSaveData done [10:58:05]ExternCall_PrintAddStr [10:58:05]wPrintStart [10:58:05]Write to MH i2c: 01 00 00 6B 47 B2 [10:58:05]Write i2c OK [10:58:05]MH_I2C_Read... [10:58:05]Read from MH i2c: 01 [10:58:05]MH_I2C_Read... [10:58:05]Read from MH i2c: 01 07 00 [10:58:05]MH_I2C_Read... [10:58:05]Read from MH i2c: 01 07 00 6B 47 00 00 00 00 00 FF 0F C7 [10:58:05]RasterBufferAndPrint [10:58:05]line Счет N : (1)209728 [10:58:05]line ИНН: 02508201610067 [10:58:05]line Контрольно-Кассовый Чек [10:58:05]line ПРОДАЖА [10:58:05]line ТРК (МРК, ГНК) : 31 [10:58:05]line Товар: 2710194210 [10:58:05]line D-ENERGY ДТ-К-5 [10:58:05]line 19.440 * 77.20 [10:58:05]line = 1500.77 [10:58:05]line НДС 12% НСП 1% [10:58:05]line > о реализуемом товаре [10:58:05]line ОКРУГЛЕНИЕ: -0.77 [10:58:05]line ИТОГО: 1500.00 [10:58:05]line Внесено: 1500.00 [10:58:05]line СДАЧА: 0.00 [10:58:05]line НСП 1% : 13.28 [10:58:05]line НДС 12% : 159.37 [10:58:05]line Наличными: 1500.00 [10:58:05]line Безнал.: 0.00 [10:58:05]line Место: АЗС № 86 "Партнер Нефть" [10:58:05]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [10:58:05]line СНО: Общий режим [10:58:05]line Чек 140 21.10.2024 10:58 [10:58:05]line Смена: 460 ФФД: 1.0 [10:58:05]line ЗНМ: 0300000155 [10:58:05]line РНМ: 0000000000100030 [10:58:05]line Версия ККМ: 001 [10:58:05]line ФМ: 0000000000965340 [10:58:05]line ФД: 187676 [10:58:05]line ФПД: 243614678112984 [10:58:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T105807&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187676&fm=243614678112984&tin=02508201610067®Number=0000000000100030&sum=150000 [10:58:05]written 0, free lines is 4095 [10:58:05]OFD Sender: Processing packet 187676 [packets to send 1062, broken 1061] [10:58:05]ProducePacketName [10:58:05]name=ofd_packets/00187676 [10:58:05]OFD Sender: To server: pG, [10:58:05]CommunicateWithHost lk.salyk.kg:30040 [10:58:05]ConnectInit lk.salyk.kg [10:58:05]Connected sock=10 [10:58:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 E5 02 0D 01 FE BD 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 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 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 8C 00 00 00 F4 03 04 00 BF 33 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 1C DD 02 00 35 04 06 00 DD 90 F6 59 DA D8 1F 03 91 FA DA DB 07 FB [10:58:05]Write to MH i2c: 01 00 00 96 47 DD [10:58:05]Write i2c OK [10:58:05]MH_I2C_Read... [10:58:05]Read from MH i2c: 01 [10:58:05]MH_I2C_Read... [10:58:05]Read from MH i2c: 01 07 00 [10:58:05]MH_I2C_Read... [10:58:05]Read from MH i2c: 01 07 00 96 47 00 00 00 00 00 84 0C 74 [10:58:05]RasterBufferAndPrint [10:58:05]line [10:58:05]line [10:58:05]line [10:58:05]line [10:58:05]line [10:58:05]written 0, free lines is 3208 [10:58:05]MH_Cut [10:58:05]Write to MH i2c: D1 01 00 9D 47 01 B6 [10:58:05]Write i2c OK [10:58:05]MH_I2C_Read... [10:58:05]Read from MH i2c: D1 [10:58:05]MH_I2C_Read... [10:58:05]Read from MH i2c: D1 01 00 [10:58:05]MH_I2C_Read... [10:58:05]Read from MH i2c: D1 01 00 9D 47 00 B5 [10:58:05]Write to MH i2c: 01 00 00 9E 47 E5 [10:58:05]Write i2c OK [10:58:05]MH_I2C_Read... [10:58:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 B2 6B 47 00 80 2B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 1C DD 02 00 F4 03 04 00 AF DD 15 67 B6 04 01 00 00 97 14 CC D5 7C 40 AE 29 [10:58:05]CommunicateWithHost err = 0 [10:58:05]CheckOFDResponse [10:58:05]1017 (14) - 77093643461234 [10:58:05]1041 (16) - 0000000000965340 [10:58:05]1040 (4) - 187676 [10:58:05]1012 (4) - 21.10.2024 04:50 [10:58:05]1206 (1) - 0 [10:58:05]OFD Sender: Remove packet 187676 [10:58:05]ProducePacketName [10:58:05]name=ofd_packets/00187676 [10:58:05]NVStorageDeleteData [10:58:06]OFD Sender: No OFD packet to send [10:58:06]*** Cut start [10:58:06]*** Partial cut [10:58:06]*** CUTSNS_PIN = 1 [10:58:06]*** CUTSNS_PIN = 0 [10:58:07]*** Brake cut motor [10:58:07]Read from MH i2c: 01 [10:58:07]MH_I2C_Read... [10:58:07]*** Stop cut motor [10:58:07]*** Cut end [10:58:07]Read from MH i2c: 01 07 00 [10:58:07]MH_I2C_Read... [10:58:07]Read from MH i2c: 01 07 00 9E 47 00 00 00 00 00 FF 0F FA [10:58:07]process_action close_receipt done [10:58:07]requested_data is exist [10:58:07]produce_requested_data [10:58:07]requested_item fm.sn is exist - process it [10:58:07]wFMCommunicate request_size=4 [10:58:07]MH_SAM_APDU [10:58:07]CAPDU: 80 11 00 00 [10:58:07]Write to MH i2c: E2 08 00 9F 47 80 11 00 00 00 00 00 00 60 [10:58:07]Write i2c OK [10:58:07]MH_I2C_Read... [10:58:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:58:07]Read from MH i2c: E2 [10:58:07]MH_I2C_Read... [10:58:07]Read from MH i2c: E2 17 00 [10:58:07]MH_I2C_Read... [10:58:07]Read from MH i2c: E2 17 00 9F 47 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 AE [10:58:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [10:58:07]wFMCommunicate OK [10:58:07]requested_item fd.num is exist - process it [10:58:07]SAM_PROTO_GetFieldsCounters [10:58:07]wFMCommunicate request_size=4 [10:58:07]MH_SAM_APDU [10:58:07]CAPDU: 80 13 00 00 [10:58:07]Write to MH i2c: E2 08 00 A0 47 80 13 00 00 00 00 00 00 63 [10:58:07]Write i2c OK [10:58:07]MH_I2C_Read... [10:58:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:58:07]Read from MH i2c: E2 [10:58:07]MH_I2C_Read... [10:58:07]Read from MH i2c: E2 62 00 [10:58:07]MH_I2C_Read... [10:58:07]Read from MH i2c: E2 62 00 A0 47 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 1C DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 8C 00 00 00 5E 04 04 00 8C 00 00 00 57 04 04 00 8D 00 00 00 19 04 04 00 00 00 00 00 90 00 D6 [10:58:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 1C DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 8C 00 00 00 5E 04 04 00 8C 00 00 00 57 04 04 00 8D 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:58:07]wFMCommunicate OK [10:58:07]SAM_PROTO_GetFieldsCounters done [10:58:07]requested_item shift.num is exist - process it [10:58:07]requested_item shift.opened is exist - process it [10:58:07]req_shift_opened [10:58:07]FM_GetShiftState [10:58:07]SAM_PROTO_GetShiftState [10:58:07]wFMCommunicate request_size=4 [10:58:07]MH_SAM_APDU [10:58:07]CAPDU: 80 13 01 00 [10:58:07]Write to MH i2c: E2 08 00 A1 47 80 13 01 00 00 00 00 00 65 [10:58:07]Write i2c OK [10:58:07]MH_I2C_Read... [10:58:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:58:07]Read from MH i2c: E2 [10:58:07]MH_I2C_Read... [10:58:07]Read from MH i2c: E2 0E 00 [10:58:07]MH_I2C_Read... [10:58:07]Read from MH i2c: E2 0E 00 A1 47 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 C4 [10:58:07]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [10:58:07]wFMCommunicate OK [10:58:07]SAM_PROTO_GetShiftState done [10:58:07]FM_GetShiftState done [10:58:07]req_shift_opened done [10:58:07]requested_item shift.open_date is exist - process it [10:58:07]req_shift_open_date [10:58:07]req_shift_open_date done [10:58:07]produce_requested_data done [10:58:07]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187676,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [10:58:07]process_action_free close_receipt [10:58:07]json_value_free [10:58:07]json_value_free done [10:58:07]process_json_proto returns [10:58:07]Send response to host [10:58:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187676,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [10:58:07]free response buf [10:58:07]execute_script done [10:58:07]execute_script returns [10:58:07]free content buf [10:58:07]Sock 8.Close socket [10:58:07]Sock 8.Thread stoped [10:58:11]OFD Sender: No OFD packet to send [10:58:16]OFD Sender: No OFD packet to send [10:58:21]OFD Sender: No OFD packet to send [10:58:26]OFD Sender: No OFD packet to send [10:58:31]OFD Sender: No OFD packet to send [10:58:36]OFD Sender: No OFD packet to send [10:58:41]OFD Sender: No OFD packet to send [10:58:46]OFD Sender: No OFD packet to send [10:58:51]OFD Sender: No OFD packet to send [10:58:56]OFD Sender: No OFD packet to send [10:59:01]OFD Sender: No OFD packet to send [10:59:06]OFD Sender: No OFD packet to send [10:59:11]OFD Sender: No OFD packet to send [10:59:16]OFD Sender: No OFD packet to send [10:59:26]OFD Sender: No OFD packet to send [10:59:31]OFD Sender: No OFD packet to send [10:59:36]OFD Sender: No OFD packet to send [10:59:41]OFD Sender: No OFD packet to send [10:59:46]OFD Sender: No OFD packet to send [10:59:51]OFD Sender: No OFD packet to send [10:59:56]OFD Sender: No OFD packet to send [11:00:01]OFD Sender: No OFD packet to send [11:00:06]OFD Sender: No OFD packet to send [11:00:11]OFD Sender: No OFD packet to send [11:00:17]OFD Sender: No OFD packet to send [11:00:22]OFD Sender: No OFD packet to send [11:00:27]OFD Sender: No OFD packet to send [11:00:32]OFD Sender: No OFD packet to send [11:00:37]OFD Sender: No OFD packet to send [11:00:42]OFD Sender: No OFD packet to send [11:00:47]OFD Sender: No OFD packet to send [11:00:52]OFD Sender: No OFD packet to send [11:00:57]OFD Sender: No OFD packet to send [11:01:02]OFD Sender: No OFD packet to send [11:01:07]OFD Sender: No OFD packet to send [11:01:08]accept exits with 9 [11:01:08]New connection [11:01:08]New thread 3067014500 created [11:01:08]Thread 3067157860 joined [11:01:08]Waiting for new connection... [11:01:08] Sock 9.Parse request [11:01:08]Sock 9.Check first char [11:01:08]Sock 9.First char is OK [11:01:08]request: POST /json_proto HTTP/1.0 [11:01:08]Method: POST [11:01:08]URL: /json_proto [11:01:08]Method is POST - this is cgi request [11:01:08]url: /json_proto [11:01:08]query_string will be loaded in cgi processing [11:01:08]execute_cgi json_proto POST (null) [11:01:08]execute_cgi path=json_proto method=POST [11:01:08]POST find Content-Length [11:01:08]Host: 172.17.42.131:8080 [11:01:08]Content-Length: 677 [11:01:08]Content-Type: application/json [11:01:08] [11:01:08]POST finish read [11:01:08]Found Content-Length = 677 [11:01:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209730", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "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:01:08]execute_script... [11:01: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)209730", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "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:01:08]POST & json_proto [11:01:08]process_json_proto [11:01:08]json parsed OK: [11:01:08]protocol is kg_v1.0 [11:01:08]action value=close_receipt [11:01:08]process_action close_receipt [11:01:08]cmd_close_receipt [11:01:08]MH_GetDate [11:01:08]Write to MH i2c: F0 00 00 A2 47 D8 [11:01:08]Write i2c OK [11:01:08]MH_I2C_Read... [11:01:08]Read from MH i2c: F0 [11:01:08]MH_I2C_Read... [11:01:08]Read from MH i2c: F0 09 00 [11:01:08]MH_I2C_Read... [11:01:08]Read from MH i2c: F0 09 00 A2 47 00 78 34 16 67 A0 18 CA 66 F2 [11:01:08]GetLastDocTimeStamp 1729508287 [11:01:08]current date 1729508472 [11:01:08]FM_GetShiftState [11:01:08]SAM_PROTO_GetShiftState [11:01:08]wFMCommunicate request_size=4 [11:01:08]MH_SAM_APDU [11:01:08]CAPDU: 80 13 01 00 [11:01:08]Write to MH i2c: E2 08 00 A3 47 80 13 01 00 00 00 00 00 67 [11:01:08]Write i2c OK [11:01:08]MH_I2C_Read... [11:01:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:01:08]Read from MH i2c: E2 [11:01:08]MH_I2C_Read... [11:01:08]Read from MH i2c: E2 0E 00 [11:01:08]MH_I2C_Read... [11:01:08]Read from MH i2c: E2 0E 00 A3 47 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 C6 [11:01:08]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [11:01:08]wFMCommunicate OK [11:01:08]SAM_PROTO_GetShiftState done [11:01:08]FM_GetShiftState done [11:01:08]opened in 1729469754 [11:01:08]opened+sec_in_day 1729556154 [11:01:08]quantity*price = 50041 [11:01:08]sum+1 = 50042 [11:01:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 141 21.10.2024 11:01 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 187677 ФПД: 85459109124526 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T110112&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187677&fm=85459109124526&tin=02508201610067®Number=0000000000100030&sum=50000 [11:01:09]StoreToDocumentArchive [11:01:09]shift 460 fd 187677 [11:01:09]save to /storage/0460/doc_00187677 [11:01:09]save last doc name /storage/0460/doc_00187677 to /storage/kkm_last_doc_name [11:01:09]save OK [11:01:09]Clear old archive folders... [11:01:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:01:09]tlvbuf is 011F8270 [11:01:09]SAM_PROTO_ClearQueue [11:01:09]wFMCommunicate request_size=4 [11:01:09]MH_SAM_APDU [11:01:09]CAPDU: 80 09 00 00 [11:01:09]Write to MH i2c: E2 08 00 B0 47 80 09 00 00 00 00 00 00 69 [11:01:09]Write i2c OK [11:01:09]MH_I2C_Read... [11:01:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:01:09]Read from MH i2c: E2 [11:01:09]MH_I2C_Read... [11:01:09]Read from MH i2c: E2 03 00 [11:01:09]MH_I2C_Read... [11:01:09]Read from MH i2c: E2 03 00 B0 47 00 90 00 6B [11:01:09]RAPDU: 90 00 [11:01:09]wFMCommunicate OK [11:01:09]SAM_PROTO_ClearQueue done [11:01:09]KKMCreateOFDPacket [11:01:09]OFDProtocolAddRootSTLVToBuf [11:01:09]FM_MakeSignedData [11:01:09]FM_MakeSignedData [11:01:09]SAM_PROTO_SignData [11:01:09]wFMCommunicate request_size=4 [11:01:09]MH_SAM_APDU [11:01:09]CAPDU: 80 0D 01 02 [11:01:09]Write to MH i2c: E2 08 00 B1 47 80 0D 01 02 00 00 00 00 71 [11:01:09]Write i2c OK [11:01:09]MH_I2C_Read... [11:01:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:01:09]Read from MH i2c: E2 [11:01:09]MH_I2C_Read... [11:01:09]Read from MH i2c: E2 03 00 [11:01:09]MH_I2C_Read... [11:01:09]Read from MH i2c: E2 03 00 B1 47 00 90 00 6C [11:01:09]RAPDU: 90 00 [11:01:09]wFMCommunicate OK [11:01:09]wFMCommunicate request_size=255 [11:01:09]MH_SAM_APDU [11:01:09]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 00 00 00 F4 03 04 00 78 34 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 1D DD 02 00 35 04 06 00 4D [11:01:09]Write to MH i2c: E2 02 01 B2 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 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 00 00 00 F4 03 04 00 78 34 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 1D DD 02 00 35 04 06 00 4D 00 00 B0 [11:01:09]Write i2c OK [11:01:09]MH_I2C_Read... [11:01:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:01:10]Read from MH i2c: E2 [11:01:10]MH_I2C_Read... [11:01:10]Read from MH i2c: E2 03 00 [11:01:10]MH_I2C_Read... [11:01:10]Read from MH i2c: E2 03 00 B2 47 00 90 00 6D [11:01:10]RAPDU: 90 00 [11:01:10]wFMCommunicate OK [11:01:10]wFMCommunicate request_size=10 [11:01:10]MH_SAM_APDU [11:01:10]CAPDU: 80 0D 02 02 05 B9 7F D7 99 AE [11:01:10]Write to MH i2c: E2 0D 00 B3 47 80 0D 02 02 05 00 B9 7F D7 99 AE 00 00 D4 [11:01:10]Write i2c OK [11:01:10]MH_I2C_Read... [11:01:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:01:10]Read from MH i2c: E2 [11:01:10]MH_I2C_Read... [11:01:10]Read from MH i2c: E2 03 00 [11:01:10]MH_I2C_Read... [11:01:10]Read from MH i2c: E2 03 00 B3 47 00 90 00 6E [11:01:10]RAPDU: 90 00 [11:01:10]wFMCommunicate OK [11:01:10]wFMCommunicate request_size=4 [11:01:10]MH_SAM_APDU [11:01:10]CAPDU: 80 0D 03 02 [11:01:10]Write to MH i2c: E2 08 00 B4 47 80 0D 03 02 00 00 00 00 76 [11:01:10]Write i2c OK [11:01:10]MH_I2C_Read... [11:01:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:01:10]Read from MH i2c: E2 [11:01:10]MH_I2C_Read... [11:01:10]Read from MH i2c: E2 0B 00 [11:01:10]MH_I2C_Read... [11:01:10]Read from MH i2c: E2 0B 00 B4 47 00 7A 6C E0 4A 76 4D 7A 8E 90 00 52 [11:01:10]RAPDU: 7A 6C E0 4A 76 4D 7A 8E 90 00 [11:01:10]wFMCommunicate OK [11:01:10]SAM_PROTO_SignData done [11:01:10]FM_MakeSignedData done [11:01:10]CreateOFDProtocolMessage [11:01:10]wFMCommunicate request_size=4 [11:01:10]MH_SAM_APDU [11:01:10]CAPDU: 80 11 00 00 [11:01:10]Write to MH i2c: E2 08 00 B5 47 80 11 00 00 00 00 00 00 76 [11:01:10]Write i2c OK [11:01:10]MH_I2C_Read... [11:01:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:01:10]Read from MH i2c: E2 [11:01:10]MH_I2C_Read... [11:01:10]Read from MH i2c: E2 17 00 [11:01:10]MH_I2C_Read... [11:01:10]Read from MH i2c: E2 17 00 B5 47 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 C4 [11:01:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [11:01:10]wFMCommunicate OK [11:01:10]CreateOFDProtocolMessage done [11:01:10]OFDSenderStorePacket 187677 [11:01:10]StoreOFDPacket docnum=187677 [11:01:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 6A E5 07 01 CB 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 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 00 00 00 F4 03 04 00 78 34 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 1D DD 02 00 35 04 06 00 4D B9 7F D7 99 AE 7A 6C E0 4A 76 4D 7A 8E [11:01:10]CheckFolder [11:01:10]dirname=/storage/ofd_packets [11:01:10]CheckFolder done [11:01:10]ProducePacketName [11:01:10]name=ofd_packets/00187677 [11:01:10]NVStorageSaveData ofd_packets/00187677 [11:01:10]File name is /storage/ofd_packets/00187677 [11:01:10]Write 301 bytes [11:01:10]NVStorageSaveData done [11:01:10]OFDSenderStorePacket done [11:01:10]KKMCreateOFDPacket done [11:01:10]NVStorageSaveData kkm_last_timestamp [11:01:10]File name is /storage/kkm_last_timestamp [11:01:10]Write 4 bytes [11:01:10]NVStorageSaveData done [11:01:10]ExternCall_PrintAddStr [11:01:10]wPrintStart [11:01:10]Write to MH i2c: 01 00 00 B6 47 FD [11:01:10]Write i2c OK [11:01:10]MH_I2C_Read... [11:01:10]Read from MH i2c: 01 [11:01:10]MH_I2C_Read... [11:01:10]Read from MH i2c: 01 07 00 [11:01:10]MH_I2C_Read... [11:01:10]Read from MH i2c: 01 07 00 B6 47 00 00 00 00 00 FF 0F 12 [11:01:10]RasterBufferAndPrint [11:01:10]line Счет N : (1)209730 [11:01:10]line ИНН: 02508201610067 [11:01:10]line Контрольно-Кассовый Чек [11:01:10]line ПРОДАЖА [11:01:10]line ТРК (МРК, ГНК) : 32 [11:01:10]line Товар: 2710124130 [11:01:10]line Аи-92-К-3 [11:01:10]line 7.480 * 66.90 [11:01:10]line = 500.41 [11:01:10]line НДС 12% НСП 1% [11:01:10]line > о реализуемом товаре [11:01:10]line ОКРУГЛЕНИЕ: -0.41 [11:01:10]line ИТОГО: 500.00 [11:01:10]line Внесено: 500.00 [11:01:10]line СДАЧА: 0.00 [11:01:10]line НСП 1% : 4.43 [11:01:10]line НДС 12% : 53.14 [11:01:10]line Наличными: 500.00 [11:01:10]line Безнал.: 0.00 [11:01:10]line Место: АЗС № 86 "Партнер Нефть" [11:01:10]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [11:01:10]line СНО: Общий режим [11:01:10]line Чек 141 21.10.2024 11:01 [11:01:10]line Смена: 460 ФФД: 1.0 [11:01:10]line ЗНМ: 0300000155 [11:01:10]line РНМ: 0000000000100030 [11:01:10]line Версия ККМ: 001 [11:01:10]line ФМ: 0000000000965340 [11:01:10]line ФД: 187677 [11:01:10]line ФПД: 85459109124526 [11:01:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T110112&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187677&fm=85459109124526&tin=02508201610067®Number=0000000000100030&sum=50000 [11:01:10]written 0, free lines is 4095 [11:01:10]OFD Sender: Processing packet 187677 [packets to send 1062, broken 1061] [11:01:10]ProducePacketName [11:01:10]name=ofd_packets/00187677 [11:01:10]OFD Sender: To server: pG, [11:01:10]CommunicateWithHost lk.salyk.kg:30040 [11:01:10]ConnectInit lk.salyk.kg [11:01:10]Connected sock=11 [11:01:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 6A E5 07 01 CB 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 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 00 00 00 F4 03 04 00 78 34 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 1D DD 02 00 35 04 06 00 4D B9 7F D7 99 AE 7A 6C E0 4A 76 4D 7A 8E [11:01:10]Write to MH i2c: 01 00 00 E1 47 28 [11:01:10]Write i2c OK [11:01:10]MH_I2C_Read... [11:01:10]Read from MH i2c: 01 [11:01:10]MH_I2C_Read... [11:01:10]Read from MH i2c: 01 07 00 [11:01:10]MH_I2C_Read... [11:01:10]Read from MH i2c: 01 07 00 E1 47 00 00 00 00 00 79 0C B4 [11:01:10]RasterBufferAndPrint [11:01:10]line [11:01:10]line [11:01:10]line [11:01:10]line [11:01:10]line [11:01:10]written 0, free lines is 3196 [11:01:10]MH_Cut [11:01:10]Write to MH i2c: D1 01 00 E8 47 01 01 [11:01:10]Write i2c OK [11:01:10]MH_I2C_Read... [11:01:10]Read from MH i2c: D1 [11:01:10]MH_I2C_Read... [11:01:10]Read from MH i2c: D1 01 00 [11:01:10]MH_I2C_Read... [11:01:10]Read from MH i2c: D1 01 00 E8 47 00 00 [11:01:10]Write to MH i2c: 01 00 00 E9 47 30 [11:01:10]Write i2c OK [11:01:10]MH_I2C_Read... [11:01:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 A5 D0 47 00 93 11 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 1D DD 02 00 F4 03 04 00 68 DE 15 67 B6 04 01 00 00 AE 97 01 6A 35 8E B0 7F [11:01:11]CommunicateWithHost err = 0 [11:01:11]CheckOFDResponse [11:01:11]1017 (14) - 77093643461234 [11:01:11]1041 (16) - 0000000000965340 [11:01:11]1040 (4) - 187677 [11:01:11]1012 (4) - 21.10.2024 04:54 [11:01:11]1206 (1) - 0 [11:01:11]OFD Sender: Remove packet 187677 [11:01:11]ProducePacketName [11:01:11]name=ofd_packets/00187677 [11:01:11]NVStorageDeleteData [11:01:11]OFD Sender: No OFD packet to send [11:01:11]*** Cut start [11:01:11]*** Partial cut [11:01:11]*** CUTSNS_PIN = 1 [11:01:11]*** CUTSNS_PIN = 0 [11:01:12]*** Brake cut motor [11:01:12]Read from MH i2c: 01 [11:01:12]MH_I2C_Read... [11:01:12]*** Stop cut motor [11:01:12]*** Cut end [11:01:12]Read from MH i2c: 01 07 00 [11:01:12]MH_I2C_Read... [11:01:12]Read from MH i2c: 01 07 00 E9 47 00 00 00 00 00 FF 0F 45 [11:01:12]process_action close_receipt done [11:01:12]requested_data is exist [11:01:12]produce_requested_data [11:01:12]requested_item fm.sn is exist - process it [11:01:12]wFMCommunicate request_size=4 [11:01:12]MH_SAM_APDU [11:01:12]CAPDU: 80 11 00 00 [11:01:12]Write to MH i2c: E2 08 00 EA 47 80 11 00 00 00 00 00 00 AB [11:01:12]Write i2c OK [11:01:12]MH_I2C_Read... [11:01:12]Read from MH i2c: E2 [11:01:12]MH_I2C_Read... [11:01:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:01:12]Read from MH i2c: E2 17 00 [11:01:12]MH_I2C_Read... [11:01:12]Read from MH i2c: E2 17 00 EA 47 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 F9 [11:01:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [11:01:12]wFMCommunicate OK [11:01:12]requested_item fd.num is exist - process it [11:01:12]SAM_PROTO_GetFieldsCounters [11:01:12]wFMCommunicate request_size=4 [11:01:12]MH_SAM_APDU [11:01:12]CAPDU: 80 13 00 00 [11:01:12]Write to MH i2c: E2 08 00 EB 47 80 13 00 00 00 00 00 00 AE [11:01:12]Write i2c OK [11:01:12]MH_I2C_Read... [11:01:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:01:12]Read from MH i2c: E2 [11:01:12]MH_I2C_Read... [11:01:12]Read from MH i2c: E2 62 00 [11:01:12]MH_I2C_Read... [11:01:12]Read from MH i2c: E2 62 00 EB 47 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 1D DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 8D 00 00 00 5E 04 04 00 8D 00 00 00 57 04 04 00 8E 00 00 00 19 04 04 00 00 00 00 00 90 00 25 [11:01:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 1D DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 8D 00 00 00 5E 04 04 00 8D 00 00 00 57 04 04 00 8E 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:01:12]wFMCommunicate OK [11:01:12]SAM_PROTO_GetFieldsCounters done [11:01:12]requested_item shift.num is exist - process it [11:01:12]requested_item shift.opened is exist - process it [11:01:12]req_shift_opened [11:01:12]FM_GetShiftState [11:01:12]SAM_PROTO_GetShiftState [11:01:12]wFMCommunicate request_size=4 [11:01:12]MH_SAM_APDU [11:01:12]CAPDU: 80 13 01 00 [11:01:12]Write to MH i2c: E2 08 00 EC 47 80 13 01 00 00 00 00 00 B0 [11:01:12]Write i2c OK [11:01:12]MH_I2C_Read... [11:01:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:01:12]Read from MH i2c: E2 [11:01:12]MH_I2C_Read... [11:01:12]Read from MH i2c: E2 0E 00 [11:01:12]MH_I2C_Read... [11:01:12]Read from MH i2c: E2 0E 00 EC 47 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 0F [11:01:12]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [11:01:12]wFMCommunicate OK [11:01:12]SAM_PROTO_GetShiftState done [11:01:12]FM_GetShiftState done [11:01:12]req_shift_opened done [11:01:12]requested_item shift.open_date is exist - process it [11:01:12]req_shift_open_date [11:01:12]req_shift_open_date done [11:01:12]produce_requested_data done [11:01:12]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187677,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [11:01:12]process_action_free close_receipt [11:01:12]json_value_free [11:01:12]json_value_free done [11:01:12]process_json_proto returns [11:01:12]Send response to host [11:01:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187677,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [11:01:12]free response buf [11:01:12]execute_script done [11:01:12]execute_script returns [11:01:12]free content buf [11:01:12]Sock 9.Close socket [11:01:12]Sock 9.Thread stoped [11:01:16]OFD Sender: No OFD packet to send [11:01:21]OFD Sender: No OFD packet to send [11:01:26]OFD Sender: No OFD packet to send [11:01:31]OFD Sender: No OFD packet to send [11:01:36]OFD Sender: No OFD packet to send [11:01:37]ConnectInit Can't connect to host [11:01:41]OFD Sender: No OFD packet to send [11:01:46]OFD Sender: No OFD packet to send [11:01:51]OFD Sender: No OFD packet to send [11:01:56]OFD Sender: No OFD packet to send [11:02:01]OFD Sender: No OFD packet to send [11:02:06]OFD Sender: No OFD packet to send [11:02:11]OFD Sender: No OFD packet to send [11:02:16]OFD Sender: No OFD packet to send [11:02:21]OFD Sender: No OFD packet to send [11:02:26]OFD Sender: No OFD packet to send [11:02:31]OFD Sender: No OFD packet to send [11:02:36]OFD Sender: No OFD packet to send [11:02:41]OFD Sender: No OFD packet to send [11:02:47]OFD Sender: No OFD packet to send [11:02:52]OFD Sender: No OFD packet to send [11:02:57]OFD Sender: No OFD packet to send [11:03:02]OFD Sender: No OFD packet to send [11:03:07]OFD Sender: No OFD packet to send [11:03:12]OFD Sender: No OFD packet to send [11:03:17]OFD Sender: No OFD packet to send [11:03:22]OFD Sender: No OFD packet to send [11:03:27]OFD Sender: No OFD packet to send [11:03:32]OFD Sender: No OFD packet to send [11:03:37]OFD Sender: No OFD packet to send [11:03:42]OFD Sender: No OFD packet to send [11:03:47]OFD Sender: No OFD packet to send [11:03:52]OFD Sender: No OFD packet to send [11:03:52]accept exits with 10 [11:03:52]New connection [11:03:52]New thread 3067157860 created [11:03:52]Thread 3067014500 joined [11:03:52]Waiting for new connection... [11:03:52] Sock 10.Parse request [11:03:52]Sock 10.Check first char [11:03:52]Sock 10.First char is OK [11:03:52]request: POST /json_proto HTTP/1.0 [11:03:52]Method: POST [11:03:52]URL: /json_proto [11:03:52]Method is POST - this is cgi request [11:03:52]url: /json_proto [11:03:52]query_string will be loaded in cgi processing [11:03:52]execute_cgi json_proto POST (null) [11:03:52]execute_cgi path=json_proto method=POST [11:03:52]POST find Content-Length [11:03:52]Host: 172.17.42.131:8080 [11:03:52]Content-Length: 677 [11:03:52]Content-Type: application/json [11:03:52] [11:03:52]POST finish read [11:03:52]Found Content-Length = 677 [11:03:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209731", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "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:03:52]execute_script... [11:03: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)209731", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "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:03:52]POST & json_proto [11:03:52]process_json_proto [11:03:52]json parsed OK: [11:03:52]protocol is kg_v1.0 [11:03:52]action value=close_receipt [11:03:52]process_action close_receipt [11:03:52]cmd_close_receipt [11:03:52]MH_GetDate [11:03:52]Write to MH i2c: F0 00 00 ED 47 23 [11:03:52]Write i2c OK [11:03:52]MH_I2C_Read... [11:03:52]Read from MH i2c: F0 [11:03:52]MH_I2C_Read... [11:03:52]Read from MH i2c: F0 09 00 [11:03:52]MH_I2C_Read... [11:03:52]Read from MH i2c: F0 09 00 ED 47 00 1C 35 16 67 A0 18 CA 66 E2 [11:03:52]GetLastDocTimeStamp 1729508472 [11:03:52]current date 1729508636 [11:03:52]FM_GetShiftState [11:03:52]SAM_PROTO_GetShiftState [11:03:52]wFMCommunicate request_size=4 [11:03:52]MH_SAM_APDU [11:03:52]CAPDU: 80 13 01 00 [11:03:52]Write to MH i2c: E2 08 00 EE 47 80 13 01 00 00 00 00 00 B2 [11:03:52]Write i2c OK [11:03:52]MH_I2C_Read... [11:03:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:03:52]Read from MH i2c: E2 [11:03:52]MH_I2C_Read... [11:03:52]Read from MH i2c: E2 0E 00 [11:03:52]MH_I2C_Read... [11:03:52]Read from MH i2c: E2 0E 00 EE 47 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 11 [11:03:52]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [11:03:52]wFMCommunicate OK [11:03:52]SAM_PROTO_GetShiftState done [11:03:52]FM_GetShiftState done [11:03:52]opened in 1729469754 [11:03:52]opened+sec_in_day 1729556154 [11:03:52]quantity*price = 50041 [11:03:52]sum+1 = 50042 [11:03: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 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 142 21.10.2024 11:03 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 187678 ФПД: 240928940088617 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T110356&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187678&fm=240928940088617&tin=02508201610067®Number=0000000000100030&sum=50000 [11:03:53]StoreToDocumentArchive [11:03:53]shift 460 fd 187678 [11:03:53]save to /storage/0460/doc_00187678 [11:03:53]save last doc name /storage/0460/doc_00187678 to /storage/kkm_last_doc_name [11:03:53]save OK [11:03:53]Clear old archive folders... [11:03:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:03:53]tlvbuf is 010F7360 [11:03:53]SAM_PROTO_ClearQueue [11:03:53]wFMCommunicate request_size=4 [11:03:53]MH_SAM_APDU [11:03:53]CAPDU: 80 09 00 00 [11:03:53]Write to MH i2c: E2 08 00 FB 47 80 09 00 00 00 00 00 00 B4 [11:03:53]Write i2c OK [11:03:53]MH_I2C_Read... [11:03:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:03:53]Read from MH i2c: E2 [11:03:53]MH_I2C_Read... [11:03:53]Read from MH i2c: E2 03 00 [11:03:53]MH_I2C_Read... [11:03:53]Read from MH i2c: E2 03 00 FB 47 00 90 00 B6 [11:03:53]RAPDU: 90 00 [11:03:53]wFMCommunicate OK [11:03:53]SAM_PROTO_ClearQueue done [11:03:53]KKMCreateOFDPacket [11:03:53]OFDProtocolAddRootSTLVToBuf [11:03:53]FM_MakeSignedData [11:03:53]FM_MakeSignedData [11:03:53]SAM_PROTO_SignData [11:03:53]wFMCommunicate request_size=4 [11:03:53]MH_SAM_APDU [11:03:53]CAPDU: 80 0D 01 02 [11:03:53]Write to MH i2c: E2 08 00 FC 47 80 0D 01 02 00 00 00 00 BC [11:03:53]Write i2c OK [11:03:53]MH_I2C_Read... [11:03:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:03:53]Read from MH i2c: E2 [11:03:53]MH_I2C_Read... [11:03:53]Read from MH i2c: E2 03 00 [11:03:53]MH_I2C_Read... [11:03:53]Read from MH i2c: E2 03 00 FC 47 00 90 00 B7 [11:03:53]RAPDU: 90 00 [11:03:53]wFMCommunicate OK [11:03:53]wFMCommunicate request_size=255 [11:03:53]MH_SAM_APDU [11:03: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 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 1C 35 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 1E DD 02 00 35 04 06 00 DB [11:03:53]Write to MH i2c: E2 02 01 FD 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 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 1C 35 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 1E DD 02 00 35 04 06 00 DB 00 00 30 [11:03:53]Write i2c OK [11:03:53]MH_I2C_Read... [11:03:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:03:53]Read from MH i2c: E2 [11:03:53]MH_I2C_Read... [11:03:53]Read from MH i2c: E2 03 00 [11:03:53]MH_I2C_Read... [11:03:53]Read from MH i2c: E2 03 00 FD 47 00 90 00 B8 [11:03:53]RAPDU: 90 00 [11:03:53]wFMCommunicate OK [11:03:53]wFMCommunicate request_size=10 [11:03:53]MH_SAM_APDU [11:03:53]CAPDU: 80 0D 02 02 05 1F A3 E3 DD 29 [11:03:53]Write to MH i2c: E2 0D 00 FE 47 80 0D 02 02 05 00 1F A3 E3 DD 29 00 00 74 [11:03:53]Write i2c OK [11:03:53]MH_I2C_Read... [11:03:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:03:54]Read from MH i2c: E2 [11:03:54]MH_I2C_Read... [11:03:54]Read from MH i2c: E2 03 00 [11:03:54]MH_I2C_Read... [11:03:54]Read from MH i2c: E2 03 00 FE 47 00 90 00 B9 [11:03:54]RAPDU: 90 00 [11:03:54]wFMCommunicate OK [11:03:54]wFMCommunicate request_size=4 [11:03:54]MH_SAM_APDU [11:03:54]CAPDU: 80 0D 03 02 [11:03:54]Write to MH i2c: E2 08 00 FF 47 80 0D 03 02 00 00 00 00 C1 [11:03:54]Write i2c OK [11:03:54]MH_I2C_Read... [11:03:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:03:54]Read from MH i2c: E2 [11:03:54]MH_I2C_Read... [11:03:54]Read from MH i2c: E2 0B 00 [11:03:54]MH_I2C_Read... [11:03:54]Read from MH i2c: E2 0B 00 FF 47 00 3F 71 B0 58 C2 3E 8C 58 90 00 5E [11:03:54]RAPDU: 3F 71 B0 58 C2 3E 8C 58 90 00 [11:03:54]wFMCommunicate OK [11:03:54]SAM_PROTO_SignData done [11:03:54]FM_MakeSignedData done [11:03:54]CreateOFDProtocolMessage [11:03:54]wFMCommunicate request_size=4 [11:03:54]MH_SAM_APDU [11:03:54]CAPDU: 80 11 00 00 [11:03:54]Write to MH i2c: E2 08 00 00 48 80 11 00 00 00 00 00 00 C2 [11:03:54]Write i2c OK [11:03:54]MH_I2C_Read... [11:03:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:03:54]Read from MH i2c: E2 [11:03:54]MH_I2C_Read... [11:03:54]Read from MH i2c: E2 17 00 [11:03:54]MH_I2C_Read... [11:03:54]Read from MH i2c: E2 17 00 00 48 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 10 [11:03:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [11:03:54]wFMCommunicate OK [11:03:54]CreateOFDProtocolMessage done [11:03:54]OFDSenderStorePacket 187678 [11:03:54]StoreOFDPacket docnum=187678 [11:03:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 68 A0 07 01 CB CC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 1C 35 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 1E DD 02 00 35 04 06 00 DB 1F A3 E3 DD 29 3F 71 B0 58 C2 3E 8C 58 [11:03:54]CheckFolder [11:03:54]dirname=/storage/ofd_packets [11:03:54]CheckFolder done [11:03:54]ProducePacketName [11:03:54]name=ofd_packets/00187678 [11:03:54]NVStorageSaveData ofd_packets/00187678 [11:03:54]File name is /storage/ofd_packets/00187678 [11:03:54]Write 301 bytes [11:03:54]NVStorageSaveData done [11:03:54]OFDSenderStorePacket done [11:03:54]KKMCreateOFDPacket done [11:03:54]NVStorageSaveData kkm_last_timestamp [11:03:54]File name is /storage/kkm_last_timestamp [11:03:54]Write 4 bytes [11:03:54]NVStorageSaveData done [11:03:54]ExternCall_PrintAddStr [11:03:54]wPrintStart [11:03:54]Write to MH i2c: 01 00 00 01 48 49 [11:03:54]Write i2c OK [11:03:54]MH_I2C_Read... [11:03:54]Read from MH i2c: 01 [11:03:54]MH_I2C_Read... [11:03:54]Read from MH i2c: 01 07 00 [11:03:54]MH_I2C_Read... [11:03:54]Read from MH i2c: 01 07 00 01 48 00 00 00 00 00 FF 0F 5E [11:03:54]RasterBufferAndPrint [11:03:54]line Счет N : (1)209731 [11:03:54]line ИНН: 02508201610067 [11:03:54]line Контрольно-Кассовый Чек [11:03:54]line ПРОДАЖА [11:03:54]line ТРК (МРК, ГНК) : 22 [11:03:54]line Товар: 2710124130 [11:03:54]line Аи-92-К-3 [11:03:54]line 7.480 * 66.90 [11:03:54]line = 500.41 [11:03:54]line НДС 12% НСП 1% [11:03:54]line > о реализуемом товаре [11:03:54]line ОКРУГЛЕНИЕ: -0.41 [11:03:54]line ИТОГО: 500.00 [11:03:54]line Внесено: 500.00 [11:03:54]line СДАЧА: 0.00 [11:03:54]line НСП 1% : 4.43 [11:03:54]line НДС 12% : 53.14 [11:03:54]line Наличными: 500.00 [11:03:54]line Безнал.: 0.00 [11:03:54]line Место: АЗС № 86 "Партнер Нефть" [11:03:54]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [11:03:54]line СНО: Общий режим [11:03:54]line Чек 142 21.10.2024 11:03 [11:03:54]line Смена: 460 ФФД: 1.0 [11:03:54]line ЗНМ: 0300000155 [11:03:54]line РНМ: 0000000000100030 [11:03:54]line Версия ККМ: 001 [11:03:54]line ФМ: 0000000000965340 [11:03:54]line ФД: 187678 [11:03:54]line ФПД: 240928940088617 [11:03:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T110356&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187678&fm=240928940088617&tin=02508201610067®Number=0000000000100030&sum=50000 [11:03:54]written 0, free lines is 4095 [11:03:54]OFD Sender: Processing packet 187678 [packets to send 1062, broken 1061] [11:03:54]ProducePacketName [11:03:54]name=ofd_packets/00187678 [11:03:54]OFD Sender: To server: pG, [11:03:54]CommunicateWithHost lk.salyk.kg:30040 [11:03:54]ConnectInit lk.salyk.kg [11:03:54]Connected sock=11 [11:03:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 68 A0 07 01 CB CC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 1C 35 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 1E DD 02 00 35 04 06 00 DB 1F A3 E3 DD 29 3F 71 B0 58 C2 3E 8C 58 [11:03:54]Write to MH i2c: 01 00 00 2C 48 74 [11:03:54]Write i2c OK [11:03:54]MH_I2C_Read... [11:03:54]Read from MH i2c: 01 [11:03:54]MH_I2C_Read... [11:03:54]Read from MH i2c: 01 07 00 [11:03:54]MH_I2C_Read... [11:03:54]Read from MH i2c: 01 07 00 2C 48 00 00 00 00 00 7C 0C 03 [11:03:54]RasterBufferAndPrint [11:03:54]line [11:03:54]line [11:03:54]line [11:03:54]line [11:03:54]line [11:03:54]written 0, free lines is 3198 [11:03:54]MH_Cut [11:03:54]Write to MH i2c: D1 01 00 33 48 01 4D [11:03:54]Write i2c OK [11:03:54]MH_I2C_Read... [11:03:54]Read from MH i2c: D1 [11:03:54]MH_I2C_Read... [11:03:54]Read from MH i2c: D1 01 00 [11:03:54]MH_I2C_Read... [11:03:54]Read from MH i2c: D1 01 00 33 48 00 4C [11:03:54]Write to MH i2c: 01 00 00 34 48 7C [11:03:54]Write i2c OK [11:03:54]MH_I2C_Read... [11:03:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 99 5E 47 00 C0 25 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 1E DD 02 00 F4 03 04 00 0C DF 15 67 B6 04 01 00 00 55 6B 16 26 79 07 82 91 [11:03:54]CommunicateWithHost err = 0 [11:03:54]CheckOFDResponse [11:03:54]1017 (14) - 77093643461234 [11:03:54]1041 (16) - 0000000000965340 [11:03:54]1040 (4) - 187678 [11:03:54]1012 (4) - 21.10.2024 04:56 [11:03:54]1206 (1) - 0 [11:03:54]OFD Sender: Remove packet 187678 [11:03:54]ProducePacketName [11:03:54]name=ofd_packets/00187678 [11:03:54]NVStorageDeleteData [11:03:55]OFD Sender: No OFD packet to send [11:03:55]*** Cut start [11:03:55]*** Partial cut [11:03:55]*** CUTSNS_PIN = 1 [11:03:55]*** CUTSNS_PIN = 0 [11:03:55]*** Brake cut motor [11:03:56]Read from MH i2c: 01 [11:03:56]MH_I2C_Read... [11:03:56]*** Stop cut motor [11:03:56]*** Cut end [11:03:56]Read from MH i2c: 01 07 00 [11:03:56]MH_I2C_Read... [11:03:56]Read from MH i2c: 01 07 00 34 48 00 00 00 00 00 FF 0F 91 [11:03:56]process_action close_receipt done [11:03:56]requested_data is exist [11:03:56]produce_requested_data [11:03:56]requested_item fm.sn is exist - process it [11:03:56]wFMCommunicate request_size=4 [11:03:56]MH_SAM_APDU [11:03:56]CAPDU: 80 11 00 00 [11:03:56]Write to MH i2c: E2 08 00 35 48 80 11 00 00 00 00 00 00 F7 [11:03:56]Write i2c OK [11:03:56]MH_I2C_Read... [11:03:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:03:56]Read from MH i2c: E2 [11:03:56]MH_I2C_Read... [11:03:56]Read from MH i2c: E2 17 00 [11:03:56]MH_I2C_Read... [11:03:56]Read from MH i2c: E2 17 00 35 48 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 45 [11:03:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [11:03:56]wFMCommunicate OK [11:03:56]requested_item fd.num is exist - process it [11:03:56]SAM_PROTO_GetFieldsCounters [11:03:56]wFMCommunicate request_size=4 [11:03:56]MH_SAM_APDU [11:03:56]CAPDU: 80 13 00 00 [11:03:56]Write to MH i2c: E2 08 00 36 48 80 13 00 00 00 00 00 00 FA [11:03:56]Write i2c OK [11:03:56]MH_I2C_Read... [11:03:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:03:56]Read from MH i2c: E2 [11:03:56]MH_I2C_Read... [11:03:56]Read from MH i2c: E2 62 00 [11:03:56]MH_I2C_Read... [11:03:56]Read from MH i2c: E2 62 00 36 48 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 1E DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 8E 00 00 00 5E 04 04 00 8E 00 00 00 57 04 04 00 8F 00 00 00 19 04 04 00 00 00 00 00 90 00 75 [11:03:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 1E DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 8E 00 00 00 5E 04 04 00 8E 00 00 00 57 04 04 00 8F 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:03:56]wFMCommunicate OK [11:03:56]SAM_PROTO_GetFieldsCounters done [11:03:56]requested_item shift.num is exist - process it [11:03:56]requested_item shift.opened is exist - process it [11:03:56]req_shift_opened [11:03:56]FM_GetShiftState [11:03:56]SAM_PROTO_GetShiftState [11:03:56]wFMCommunicate request_size=4 [11:03:56]MH_SAM_APDU [11:03:56]CAPDU: 80 13 01 00 [11:03:56]Write to MH i2c: E2 08 00 37 48 80 13 01 00 00 00 00 00 FC [11:03:56]Write i2c OK [11:03:56]MH_I2C_Read... [11:03:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:03:56]Read from MH i2c: E2 [11:03:56]MH_I2C_Read... [11:03:56]Read from MH i2c: E2 0E 00 [11:03:56]MH_I2C_Read... [11:03:56]Read from MH i2c: E2 0E 00 37 48 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 5B [11:03:56]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [11:03:56]wFMCommunicate OK [11:03:56]SAM_PROTO_GetShiftState done [11:03:56]FM_GetShiftState done [11:03:56]req_shift_opened done [11:03:56]requested_item shift.open_date is exist - process it [11:03:56]req_shift_open_date [11:03:56]req_shift_open_date done [11:03:56]produce_requested_data done [11:03:56]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187678,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [11:03:56]process_action_free close_receipt [11:03:56]json_value_free [11:03:56]json_value_free done [11:03:56]process_json_proto returns [11:03:56]Send response to host [11:03:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187678,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [11:03:56]free response buf [11:03:56]execute_script done [11:03:56]execute_script returns [11:03:56]free content buf [11:03:56]Sock 10.Close socket [11:03:56]Sock 10.Thread stoped [11:04:00]OFD Sender: No OFD packet to send [11:04:05]OFD Sender: No OFD packet to send [11:04:10]OFD Sender: No OFD packet to send [11:04:15]OFD Sender: No OFD packet to send [11:04:20]OFD Sender: No OFD packet to send [11:04:25]OFD Sender: No OFD packet to send [11:04:30]OFD Sender: No OFD packet to send [11:04:35]OFD Sender: No OFD packet to send [11:04:40]OFD Sender: No OFD packet to send [11:04:45]OFD Sender: No OFD packet to send [11:04:50]OFD Sender: No OFD packet to send [11:04:55]OFD Sender: No OFD packet to send [11:05:00]OFD Sender: No OFD packet to send [11:05:05]OFD Sender: No OFD packet to send [11:05:10]OFD Sender: No OFD packet to send [11:05:15]OFD Sender: No OFD packet to send [11:05:20]OFD Sender: No OFD packet to send [11:05:25]OFD Sender: No OFD packet to send [11:05:30]accept exits with 8 [11:05:30]New connection [11:05:30]New thread 3067014500 created [11:05:30]Thread 3067157860 joined [11:05:30]Waiting for new connection... [11:05:30] Sock 8.Parse request [11:05:30]Sock 8.Check first char [11:05:30]Sock 8.First char is OK [11:05:30]request: POST /json_proto HTTP/1.0 [11:05:30]Method: POST [11:05:30]URL: /json_proto [11:05:30]Method is POST - this is cgi request [11:05:30]url: /json_proto [11:05:30]query_string will be loaded in cgi processing [11:05:30]execute_cgi json_proto POST (null) [11:05:30]execute_cgi path=json_proto method=POST [11:05:30]POST find Content-Length [11:05:30]Host: 172.17.42.131:8080 [11:05:30]Content-Length: 684 [11:05:30]Content-Type: application/json [11:05:30] [11:05:30]POST finish read [11:05:30]Found Content-Length = 684 [11:05:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209732", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 11.660, "sum" : 900.15, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 900.00, "total" : 900.00, "payments": [ { "type": 0, "sum" : 900.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:05:30]execute_script... [11:05: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)209732", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 11.660, "sum" : 900.15, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 900.00, "total" : 900.00, "payments": [ { "type": 0, "sum" : 900.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:05:30]POST & json_proto [11:05:30]process_json_proto [11:05:30]json parsed OK: [11:05:30]protocol is kg_v1.0 [11:05:30]action value=close_receipt [11:05:30]process_action close_receipt [11:05:30]cmd_close_receipt [11:05:30]MH_GetDate [11:05:30]Write to MH i2c: F0 00 00 38 48 6F [11:05:30]Write i2c OK [11:05:30]MH_I2C_Read... [11:05:30]Read from MH i2c: F0 [11:05:30]MH_I2C_Read... [11:05:30]Read from MH i2c: F0 09 00 [11:05:30]MH_I2C_Read... [11:05:30]Read from MH i2c: F0 09 00 38 48 00 7D 35 16 67 A0 18 CA 66 8F [11:05:30]GetLastDocTimeStamp 1729508636 [11:05:30]current date 1729508733 [11:05:30]FM_GetShiftState [11:05:30]SAM_PROTO_GetShiftState [11:05:30]wFMCommunicate request_size=4 [11:05:30]MH_SAM_APDU [11:05:30]CAPDU: 80 13 01 00 [11:05:30]Write to MH i2c: E2 08 00 39 48 80 13 01 00 00 00 00 00 FE [11:05:30]Write i2c OK [11:05:30]MH_I2C_Read... [11:05:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:05:30]Read from MH i2c: E2 [11:05:30]MH_I2C_Read... [11:05:30]Read from MH i2c: E2 0E 00 [11:05:30]MH_I2C_Read... [11:05:30]Read from MH i2c: E2 0E 00 39 48 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 5D [11:05:30]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [11:05:30]wFMCommunicate OK [11:05:30]SAM_PROTO_GetShiftState done [11:05:30]FM_GetShiftState done [11:05:30]opened in 1729469754 [11:05:30]opened+sec_in_day 1729556154 [11:05:30]quantity*price = 90015 [11:05:30]sum+1 = 90016 [11:05:30]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.15 ИТОГО: 900.00 Внесено: 900.00 СДАЧА: 0.00 НСП 1% : 7.97 НДС 12% : 95.59 Наличными: 900.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 143 21.10.2024 11:05 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 187679 ФПД: 77826452332074 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T110533&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187679&fm=77826452332074&tin=02508201610067®Number=0000000000100030&sum=90000 [11:05:31]StoreToDocumentArchive [11:05:31]shift 460 fd 187679 [11:05:31]save to /storage/0460/doc_00187679 [11:05:31]save last doc name /storage/0460/doc_00187679 to /storage/kkm_last_doc_name [11:05:31]save OK [11:05:31]Clear old archive folders... [11:05:31]ProcessDocumentItem done err = 0, tmpTLVsize=257 [11:05:31]tlvbuf is 0116FAE0 [11:05:31]SAM_PROTO_ClearQueue [11:05:31]wFMCommunicate request_size=4 [11:05:31]MH_SAM_APDU [11:05:31]CAPDU: 80 09 00 00 [11:05:31]Write to MH i2c: E2 08 00 46 48 80 09 00 00 00 00 00 00 00 [11:05:31]Write i2c OK [11:05:31]MH_I2C_Read... [11:05:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:05:31]Read from MH i2c: E2 [11:05:31]MH_I2C_Read... [11:05:31]Read from MH i2c: E2 03 00 [11:05:31]MH_I2C_Read... [11:05:31]Read from MH i2c: E2 03 00 46 48 00 90 00 02 [11:05:31]RAPDU: 90 00 [11:05:31]wFMCommunicate OK [11:05:31]SAM_PROTO_ClearQueue done [11:05:31]KKMCreateOFDPacket [11:05:31]OFDProtocolAddRootSTLVToBuf [11:05:31]FM_MakeSignedData [11:05:31]FM_MakeSignedData [11:05:31]SAM_PROTO_SignData [11:05:31]wFMCommunicate request_size=4 [11:05:31]MH_SAM_APDU [11:05:31]CAPDU: 80 0D 01 02 [11:05:31]Write to MH i2c: E2 08 00 47 48 80 0D 01 02 00 00 00 00 08 [11:05:31]Write i2c OK [11:05:31]MH_I2C_Read... [11:05:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:05:31]Read from MH i2c: E2 [11:05:31]MH_I2C_Read... [11:05:31]Read from MH i2c: E2 03 00 [11:05:31]MH_I2C_Read... [11:05:31]Read from MH i2c: E2 03 00 47 48 00 90 00 03 [11:05:31]RAPDU: 90 00 [11:05:31]wFMCommunicate OK [11:05:31]wFMCommunicate request_size=255 [11:05:31]MH_SAM_APDU [11:05:31]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8C 2D 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 9F 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 57 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8F 00 00 00 F4 03 04 00 7D 35 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 1F DD 02 [11:05:31]Write to MH i2c: E2 02 01 48 48 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8C 2D 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 9F 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 57 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8F 00 00 00 F4 03 04 00 7D 35 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 1F DD 02 00 00 86 [11:05:31]Write i2c OK [11:05:31]MH_I2C_Read... [11:05:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:05:31]Read from MH i2c: E2 [11:05:31]MH_I2C_Read... [11:05:31]Read from MH i2c: E2 03 00 [11:05:31]MH_I2C_Read... [11:05:31]Read from MH i2c: E2 03 00 48 48 00 90 00 04 [11:05:31]RAPDU: 90 00 [11:05:31]wFMCommunicate OK [11:05:31]wFMCommunicate request_size=16 [11:05:31]MH_SAM_APDU [11:05:31]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 46 C8 62 0B 9E 2A [11:05:31]Write to MH i2c: E2 13 00 49 48 80 0D 02 02 0B 00 00 35 04 06 00 46 C8 62 0B 9E 2A 00 00 A3 [11:05:31]Write i2c OK [11:05:31]MH_I2C_Read... [11:05:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:05:31]Read from MH i2c: E2 [11:05:31]MH_I2C_Read... [11:05:31]Read from MH i2c: E2 03 00 [11:05:31]MH_I2C_Read... [11:05:31]Read from MH i2c: E2 03 00 49 48 00 90 00 05 [11:05:31]RAPDU: 90 00 [11:05:31]wFMCommunicate OK [11:05:31]wFMCommunicate request_size=4 [11:05:31]MH_SAM_APDU [11:05:31]CAPDU: 80 0D 03 02 [11:05:31]Write to MH i2c: E2 08 00 4A 48 80 0D 03 02 00 00 00 00 0D [11:05:31]Write i2c OK [11:05:31]MH_I2C_Read... [11:05:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:05:31]Read from MH i2c: E2 [11:05:31]MH_I2C_Read... [11:05:31]Read from MH i2c: E2 0B 00 [11:05:31]MH_I2C_Read... [11:05:31]Read from MH i2c: E2 0B 00 4A 48 00 B1 E8 ED 81 E6 40 16 6B 90 00 BC [11:05:31]RAPDU: B1 E8 ED 81 E6 40 16 6B 90 00 [11:05:31]wFMCommunicate OK [11:05:31]SAM_PROTO_SignData done [11:05:31]FM_MakeSignedData done [11:05:31]CreateOFDProtocolMessage [11:05:31]wFMCommunicate request_size=4 [11:05:31]MH_SAM_APDU [11:05:31]CAPDU: 80 11 00 00 [11:05:31]Write to MH i2c: E2 08 00 4B 48 80 11 00 00 00 00 00 00 0D [11:05:31]Write i2c OK [11:05:31]MH_I2C_Read... [11:05:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:05:31]Read from MH i2c: E2 [11:05:31]MH_I2C_Read... [11:05:31]Read from MH i2c: E2 17 00 [11:05:31]MH_I2C_Read... [11:05:31]Read from MH i2c: E2 17 00 4B 48 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 5B [11:05:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [11:05:31]wFMCommunicate OK [11:05:31]CreateOFDProtocolMessage done [11:05:31]OFDSenderStorePacket 187679 [11:05:31]StoreOFDPacket docnum=187679 [11:05:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 38 C8 0D 01 52 62 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 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8C 2D 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 9F 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 57 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8F 00 00 00 F4 03 04 00 7D 35 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 1F DD 02 00 35 04 06 00 46 C8 62 0B 9E 2A B1 E8 ED 81 E6 40 16 6B [11:05:31]CheckFolder [11:05:31]dirname=/storage/ofd_packets [11:05:31]CheckFolder done [11:05:31]ProducePacketName [11:05:31]name=ofd_packets/00187679 [11:05:31]NVStorageSaveData ofd_packets/00187679 [11:05:31]File name is /storage/ofd_packets/00187679 [11:05:31]Write 307 bytes [11:05:31]NVStorageSaveData done [11:05:31]OFDSenderStorePacket done [11:05:31]KKMCreateOFDPacket done [11:05:31]NVStorageSaveData kkm_last_timestamp [11:05:31]File name is /storage/kkm_last_timestamp [11:05:31]Write 4 bytes [11:05:31]NVStorageSaveData done [11:05:31]ExternCall_PrintAddStr [11:05:31]wPrintStart [11:05:31]Write to MH i2c: 01 00 00 4C 48 94 [11:05:31]OFD Sender: Processing packet 187679 [packets to send 1062, broken 1061] [11:05:31]ProducePacketName [11:05:31]name=ofd_packets/00187679 [11:05:31]OFD Sender: To server: pG, [11:05:31]CommunicateWithHost lk.salyk.kg:30040 [11:05:31]ConnectInit lk.salyk.kg [11:05:31]Write i2c OK [11:05:31]MH_I2C_Read... [11:05:31]Read from MH i2c: 01 [11:05:31]MH_I2C_Read... [11:05:31]Read from MH i2c: 01 07 00 [11:05:31]MH_I2C_Read... [11:05:31]Read from MH i2c: 01 07 00 4C 48 00 00 00 00 00 FF 0F A9 [11:05:31]RasterBufferAndPrint [11:05:31]line Счет N : (1)209732 [11:05:31]line ИНН: 02508201610067 [11:05:31]line Контрольно-Кассовый Чек [11:05:31]line ПРОДАЖА [11:05:31]line ТРК (МРК, ГНК) : 31 [11:05:31]line Товар: 2710194210 [11:05:31]line D-ENERGY ДТ-К-5 [11:05:31]line 11.660 * 77.20 [11:05:31]line = 900.15 [11:05:31]line НДС 12% НСП 1% [11:05:31]line > о реализуемом товаре [11:05:31]line ОКРУГЛЕНИЕ: -0.15 [11:05:31]line ИТОГО: 900.00 [11:05:31]line Внесено: 900.00 [11:05:31]line СДАЧА: 0.00 [11:05:31]line НСП 1% : 7.97 [11:05:31]line НДС 12% : 95.59 [11:05:31]line Наличными: 900.00 [11:05:31]line Безнал.: 0.00 [11:05:31]line Место: АЗС № 86 "Партнер Нефть" [11:05:31]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [11:05:31]line СНО: Общий режим [11:05:31]line Чек 143 21.10.2024 11:05 [11:05:31]line Смена: 460 ФФД: 1.0 [11:05:31]line ЗНМ: 0300000155 [11:05:31]line РНМ: 0000000000100030 [11:05:31]line Версия ККМ: 001 [11:05:31]line ФМ: 0000000000965340 [11:05:31]line ФД: 187679 [11:05:31]line ФПД: 77826452332074 [11:05:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T110533&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187679&fm=77826452332074&tin=02508201610067®Number=0000000000100030&sum=90000 [11:05:31]written 0, free lines is 4095 [11:05:32]Connected sock=10 [11:05:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 38 C8 0D 01 52 62 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 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8C 2D 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 9F 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 57 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8F 00 00 00 F4 03 04 00 7D 35 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 1F DD 02 00 35 04 06 00 46 C8 62 0B 9E 2A B1 E8 ED 81 E6 40 16 6B [11:05:32]Write to MH i2c: 01 00 00 77 48 BF [11:05:32]Write i2c OK [11:05:32]MH_I2C_Read... [11:05:32]Read from MH i2c: 01 [11:05:32]MH_I2C_Read... [11:05:32]Read from MH i2c: 01 07 00 [11:05:32]MH_I2C_Read... [11:05:32]Read from MH i2c: 01 07 00 77 48 00 00 00 00 00 7D 0C 4F [11:05:32]RasterBufferAndPrint [11:05:32]line [11:05:32]line [11:05:32]line [11:05:32]line [11:05:32]line [11:05:32]written 0, free lines is 3200 [11:05:32]MH_Cut [11:05:32]Write to MH i2c: D1 01 00 7E 48 01 98 [11:05:32]Write i2c OK [11:05:32]MH_I2C_Read... [11:05:32]Read from MH i2c: D1 [11:05:32]MH_I2C_Read... [11:05:32]Read from MH i2c: D1 01 00 [11:05:32]MH_I2C_Read... [11:05:32]Read from MH i2c: D1 01 00 7E 48 00 97 [11:05:32]Write to MH i2c: 01 00 00 7F 48 C7 [11:05:32]Write i2c OK [11:05:32]MH_I2C_Read... [11:05:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 71 10 47 00 20 C5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 1F DD 02 00 F4 03 04 00 6D DF 15 67 B6 04 01 00 00 7C 72 07 8E EF C7 46 B9 [11:05:32]CommunicateWithHost err = 0 [11:05:32]CheckOFDResponse [11:05:32]1017 (14) - 77093643461234 [11:05:32]1041 (16) - 0000000000965340 [11:05:32]1040 (4) - 187679 [11:05:32]1012 (4) - 21.10.2024 04:58 [11:05:32]1206 (1) - 0 [11:05:32]OFD Sender: Remove packet 187679 [11:05:32]ProducePacketName [11:05:32]name=ofd_packets/00187679 [11:05:32]NVStorageDeleteData [11:05:33]OFD Sender: No OFD packet to send [11:05:33]*** Cut start [11:05:33]*** Partial cut [11:05:33]*** CUTSNS_PIN = 1 [11:05:33]*** CUTSNS_PIN = 0 [11:05:33]*** Brake cut motor [11:05:33]Read from MH i2c: 01 [11:05:34]MH_I2C_Read... [11:05:34]*** Stop cut motor [11:05:34]*** Cut end [11:05:34]Read from MH i2c: 01 07 00 [11:05:34]MH_I2C_Read... [11:05:34]Read from MH i2c: 01 07 00 7F 48 00 00 00 00 00 FF 0F DC [11:05:34]process_action close_receipt done [11:05:34]requested_data is exist [11:05:34]produce_requested_data [11:05:34]requested_item fm.sn is exist - process it [11:05:34]wFMCommunicate request_size=4 [11:05:34]MH_SAM_APDU [11:05:34]CAPDU: 80 11 00 00 [11:05:34]Write to MH i2c: E2 08 00 80 48 80 11 00 00 00 00 00 00 42 [11:05:34]Write i2c OK [11:05:34]MH_I2C_Read... [11:05:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:05:34]Read from MH i2c: E2 [11:05:34]MH_I2C_Read... [11:05:34]Read from MH i2c: E2 17 00 [11:05:34]MH_I2C_Read... [11:05:34]Read from MH i2c: E2 17 00 80 48 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 90 [11:05:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [11:05:34]wFMCommunicate OK [11:05:34]requested_item fd.num is exist - process it [11:05:34]SAM_PROTO_GetFieldsCounters [11:05:34]wFMCommunicate request_size=4 [11:05:34]MH_SAM_APDU [11:05:34]CAPDU: 80 13 00 00 [11:05:34]Write to MH i2c: E2 08 00 81 48 80 13 00 00 00 00 00 00 45 [11:05:34]Write i2c OK [11:05:34]MH_I2C_Read... [11:05:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:05:34]Read from MH i2c: E2 [11:05:34]MH_I2C_Read... [11:05:34]Read from MH i2c: E2 62 00 [11:05:34]MH_I2C_Read... [11:05:34]Read from MH i2c: E2 62 00 81 48 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 1F DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 8F 00 00 00 5E 04 04 00 8F 00 00 00 57 04 04 00 90 00 00 00 19 04 04 00 00 00 00 00 90 00 C4 [11:05:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 1F DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 8F 00 00 00 5E 04 04 00 8F 00 00 00 57 04 04 00 90 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:05:34]wFMCommunicate OK [11:05:34]SAM_PROTO_GetFieldsCounters done [11:05:34]requested_item shift.num is exist - process it [11:05:34]requested_item shift.opened is exist - process it [11:05:34]req_shift_opened [11:05:34]FM_GetShiftState [11:05:34]SAM_PROTO_GetShiftState [11:05:34]wFMCommunicate request_size=4 [11:05:34]MH_SAM_APDU [11:05:34]CAPDU: 80 13 01 00 [11:05:34]Write to MH i2c: E2 08 00 82 48 80 13 01 00 00 00 00 00 47 [11:05:34]Write i2c OK [11:05:34]MH_I2C_Read... [11:05:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:05:34]Read from MH i2c: E2 [11:05:34]MH_I2C_Read... [11:05:34]Read from MH i2c: E2 0E 00 [11:05:34]MH_I2C_Read... [11:05:34]Read from MH i2c: E2 0E 00 82 48 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 A6 [11:05:34]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [11:05:34]wFMCommunicate OK [11:05:34]SAM_PROTO_GetShiftState done [11:05:34]FM_GetShiftState done [11:05:34]req_shift_opened done [11:05:34]requested_item shift.open_date is exist - process it [11:05:34]req_shift_open_date [11:05:34]req_shift_open_date done [11:05:34]produce_requested_data done [11:05:34]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187679,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [11:05:34]process_action_free close_receipt [11:05:34]json_value_free [11:05:34]json_value_free done [11:05:34]process_json_proto returns [11:05:34]Send response to host [11:05:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187679,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [11:05:34]free response buf [11:05:34]execute_script done [11:05:34]execute_script returns [11:05:34]free content buf [11:05:34]Sock 8.Close socket [11:05:34]Sock 8.Thread stoped [11:05:38]OFD Sender: No OFD packet to send [11:05:43]OFD Sender: No OFD packet to send [11:05:48]OFD Sender: No OFD packet to send [11:05:53]OFD Sender: No OFD packet to send [11:05:58]OFD Sender: No OFD packet to send [11:06:02]accept exits with 9 [11:06:02]New connection [11:06:02]New thread 3067157860 created [11:06:02]Thread 3067014500 joined [11:06:02]Waiting for new connection... [11:06:02] Sock 9.Parse request [11:06:02]Sock 9.Check first char [11:06:02]Sock 9.First char is OK [11:06:02]request: POST /json_proto HTTP/1.0 [11:06:02]Method: POST [11:06:02]URL: /json_proto [11:06:02]Method is POST - this is cgi request [11:06:02]url: /json_proto [11:06:02]query_string will be loaded in cgi processing [11:06:02]execute_cgi json_proto POST (null) [11:06:02]execute_cgi path=json_proto method=POST [11:06:02]POST find Content-Length [11:06:02]Host: 172.17.42.131:8080 [11:06:02]Content-Length: 776 [11:06:02]Content-Type: application/json [11:06:02] [11:06:02]POST finish read [11:06:02]Found Content-Length = 776 [11:06:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209729", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 123.060, "sum" : 9500.23, "attribute": 0, "vats" : [ {"type": 0, "rate": 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" : 9500.23 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:06:02]execute_script... [11:06: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)209729", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 123.060, "sum" : 9500.23, "attribute": 0, "vats" : [ {"type": 0, "rate": 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" : 9500.23 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:06:02]POST & json_proto [11:06:02]process_json_proto [11:06:02]json parsed OK: [11:06:02]protocol is kg_v1.0 [11:06:02]action value=close_receipt [11:06:02]process_action close_receipt [11:06:02]cmd_close_receipt [11:06:02]MH_GetDate [11:06:02]Write to MH i2c: F0 00 00 83 48 BA [11:06:02]Write i2c OK [11:06:02]MH_I2C_Read... [11:06:02]Read from MH i2c: F0 [11:06:02]MH_I2C_Read... [11:06:02]Read from MH i2c: F0 09 00 [11:06:02]MH_I2C_Read... [11:06:02]Read from MH i2c: F0 09 00 83 48 00 9E 35 16 67 A0 18 CA 66 FB [11:06:02]GetLastDocTimeStamp 1729508733 [11:06:02]current date 1729508766 [11:06:02]FM_GetShiftState [11:06:02]SAM_PROTO_GetShiftState [11:06:02]wFMCommunicate request_size=4 [11:06:02]MH_SAM_APDU [11:06:02]CAPDU: 80 13 01 00 [11:06:02]Write to MH i2c: E2 08 00 84 48 80 13 01 00 00 00 00 00 49 [11:06:02]Write i2c OK [11:06:02]MH_I2C_Read... [11:06:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:06:02]Read from MH i2c: E2 [11:06:02]MH_I2C_Read... [11:06:02]Read from MH i2c: E2 0E 00 [11:06:02]MH_I2C_Read... [11:06:02]Read from MH i2c: E2 0E 00 84 48 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 A8 [11:06:02]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [11:06:02]wFMCommunicate OK [11:06:02]SAM_PROTO_GetShiftState done [11:06:02]FM_GetShiftState done [11:06:02]opened in 1729469754 [11:06:02]opened+sec_in_day 1729556154 [11:06:02]quantity*price = 950023 [11:06:02]sum+1 = 950024 [11:06:02]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 9500.23 НСП 1% : 84.07 НДС 12% : 1008.87 Наличными: 0.00 Безнал.: 9500.23 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 144 21.10.2024 11:06 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000965340 ФД: 187680 ФПД: 30731687856971 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T110606&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187680&fm=30731687856971&tin=02508201610067®Number=0000000000100030&sum=950023 [11:06:04]StoreToDocumentArchive [11:06:04]shift 460 fd 187680 [11:06:04]save to /storage/0460/doc_00187680 [11:06:04]save last doc name /storage/0460/doc_00187680 to /storage/kkm_last_doc_name [11:06:04]save OK [11:06:04]Clear old archive folders... [11:06:04]ProcessDocumentItem done err = 0, tmpTLVsize=257 [11:06:04]tlvbuf is 01093E40 [11:06:04]SAM_PROTO_ClearQueue [11:06:04]wFMCommunicate request_size=4 [11:06:04]MH_SAM_APDU [11:06:04]CAPDU: 80 09 00 00 [11:06:04]Write to MH i2c: E2 08 00 91 48 80 09 00 00 00 00 00 00 4B [11:06:04]Write i2c OK [11:06:04]MH_I2C_Read... [11:06:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:06:04]Read from MH i2c: E2 [11:06:04]MH_I2C_Read... [11:06:04]Read from MH i2c: E2 03 00 [11:06:04]MH_I2C_Read... [11:06:04]Read from MH i2c: E2 03 00 91 48 00 90 00 4D [11:06:04]RAPDU: 90 00 [11:06:04]wFMCommunicate OK [11:06:04]SAM_PROTO_ClearQueue done [11:06:04]KKMCreateOFDPacket [11:06:04]OFDProtocolAddRootSTLVToBuf [11:06:04]FM_MakeSignedData [11:06:04]FM_MakeSignedData [11:06:04]SAM_PROTO_SignData [11:06:04]wFMCommunicate request_size=4 [11:06:04]MH_SAM_APDU [11:06:04]CAPDU: 80 0D 01 02 [11:06:04]Write to MH i2c: E2 08 00 92 48 80 0D 01 02 00 00 00 00 53 [11:06:04]Write i2c OK [11:06:04]MH_I2C_Read... [11:06:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:06:04]Read from MH i2c: E2 [11:06:04]MH_I2C_Read... [11:06:04]Read from MH i2c: E2 03 00 [11:06:04]MH_I2C_Read... [11:06:04]Read from MH i2c: E2 03 00 92 48 00 90 00 4E [11:06:04]RAPDU: 90 00 [11:06:04]wFMCommunicate OK [11:06:04]wFMCommunicate request_size=255 [11:06:04]MH_SAM_APDU [11:06:04]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 B4 E0 01 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 07 7F 0E 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 07 7F 0E 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 20 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 17 8A 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 07 7F 0E 00 00 00 1F 04 02 00 01 00 12 04 04 00 90 00 00 00 F4 03 04 00 9E 35 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 20 DD 02 [11:06:04]Write to MH i2c: E2 02 01 93 48 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 B4 E0 01 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 07 7F 0E 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 07 7F 0E 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 20 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 17 8A 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 07 7F 0E 00 00 00 1F 04 02 00 01 00 12 04 04 00 90 00 00 00 F4 03 04 00 9E 35 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 20 DD 02 00 00 AA [11:06:04]Write i2c OK [11:06:04]MH_I2C_Read... [11:06:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:06:04]Read from MH i2c: E2 [11:06:04]MH_I2C_Read... [11:06:04]Read from MH i2c: E2 03 00 [11:06:04]MH_I2C_Read... [11:06:04]Read from MH i2c: E2 03 00 93 48 00 90 00 4F [11:06:04]RAPDU: 90 00 [11:06:04]wFMCommunicate OK [11:06:04]wFMCommunicate request_size=16 [11:06:04]MH_SAM_APDU [11:06:04]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 1B F3 47 56 8B 4B [11:06:04]Write to MH i2c: E2 13 00 94 48 80 0D 02 02 0B 00 00 35 04 06 00 1B F3 47 56 8B 4B 00 00 2C [11:06:04]Write i2c OK [11:06:04]MH_I2C_Read... [11:06:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:06:04]Read from MH i2c: E2 [11:06:04]MH_I2C_Read... [11:06:04]Read from MH i2c: E2 03 00 [11:06:04]MH_I2C_Read... [11:06:04]Read from MH i2c: E2 03 00 94 48 00 90 00 50 [11:06:04]RAPDU: 90 00 [11:06:04]wFMCommunicate OK [11:06:04]wFMCommunicate request_size=4 [11:06:04]MH_SAM_APDU [11:06:04]CAPDU: 80 0D 03 02 [11:06:04]Write to MH i2c: E2 08 00 95 48 80 0D 03 02 00 00 00 00 58 [11:06:04]Write i2c OK [11:06:04]MH_I2C_Read... [11:06:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:06:04]Read from MH i2c: E2 [11:06:04]MH_I2C_Read... [11:06:04]Read from MH i2c: E2 0B 00 [11:06:04]MH_I2C_Read... [11:06:04]Read from MH i2c: E2 0B 00 95 48 00 48 A6 74 23 87 20 90 B7 90 00 CC [11:06:04]RAPDU: 48 A6 74 23 87 20 90 B7 90 00 [11:06:04]wFMCommunicate OK [11:06:04]SAM_PROTO_SignData done [11:06:04]FM_MakeSignedData done [11:06:04]CreateOFDProtocolMessage [11:06:04]wFMCommunicate request_size=4 [11:06:04]MH_SAM_APDU [11:06:04]CAPDU: 80 11 00 00 [11:06:04]Write to MH i2c: E2 08 00 96 48 80 11 00 00 00 00 00 00 58 [11:06:04]Write i2c OK [11:06:04]MH_I2C_Read... [11:06:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:06:04]Read from MH i2c: E2 [11:06:04]MH_I2C_Read... [11:06:04]Read from MH i2c: E2 17 00 [11:06:04]MH_I2C_Read... [11:06:04]Read from MH i2c: E2 17 00 96 48 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 A6 [11:06:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [11:06:04]wFMCommunicate OK [11:06:04]CreateOFDProtocolMessage done [11:06:04]OFDSenderStorePacket 187680 [11:06:04]StoreOFDPacket docnum=187680 [11:06:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 A3 84 0D 01 AA 1B 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 B4 E0 01 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 07 7F 0E 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 07 7F 0E 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 20 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 17 8A 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 07 7F 0E 00 00 00 1F 04 02 00 01 00 12 04 04 00 90 00 00 00 F4 03 04 00 9E 35 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 20 DD 02 00 35 04 06 00 1B F3 47 56 8B 4B 48 A6 74 23 87 20 90 B7 [11:06:04]CheckFolder [11:06:04]dirname=/storage/ofd_packets [11:06:04]CheckFolder done [11:06:04]ProducePacketName [11:06:04]name=ofd_packets/00187680 [11:06:04]NVStorageSaveData ofd_packets/00187680 [11:06:04]File name is /storage/ofd_packets/00187680 [11:06:04]Write 307 bytes [11:06:04]NVStorageSaveData done [11:06:04]OFDSenderStorePacket done [11:06:04]KKMCreateOFDPacket done [11:06:04]NVStorageSaveData kkm_last_timestamp [11:06:04]File name is /storage/kkm_last_timestamp [11:06:04]Write 4 bytes [11:06:04]NVStorageSaveData done [11:06:04]ExternCall_PrintAddStr [11:06:04]wPrintStart [11:06:04]Write to MH i2c: 01 00 00 97 48 DF [11:06:04]Write i2c OK [11:06:04]MH_I2C_Read... [11:06:04]Read from MH i2c: 01 [11:06:04]MH_I2C_Read... [11:06:04]Read from MH i2c: 01 07 00 [11:06:04]MH_I2C_Read... [11:06:04]Read from MH i2c: 01 07 00 97 48 00 00 00 00 00 FF 0F F4 [11:06:04]RasterBufferAndPrint [11:06:04]line Счет N : (1)209729 [11:06:04]line ИНН: 02508201610067 [11:06:04]line Контрольно-Кассовый Чек [11:06:04]line ПРОДАЖА [11:06:04]line ТРК (МРК, ГНК) : 41 [11:06:04]line Товар: 2710194210 [11:06:04]line D-ENERGY ДТ-К-5 [11:06:04]line 123.060 * 77.20 [11:06:04]line = 9500.23 [11:06:04]line НДС 12% НСП 1% [11:06:04]line > о реализуемом товаре [11:06:04]line ИТОГО: 9500.23 [11:06:04]line НСП 1% : 84.07 [11:06:04]line НДС 12% : 1008.87 [11:06:04]line Наличными: 0.00 [11:06:04]line Безнал.: 9500.23 [11:06:04]line Место: АЗС № 86 "Партнер Нефть" [11:06:04]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [11:06:04]line СНО: Общий режим [11:06:04]line Чек 144 21.10.2024 11:06 [11:06:04]line Смена: 460 ФФД: 1.0 [11:06:04]line ЗНМ: 0300000155 [11:06:04]line РНМ: 0000000000100030 [11:06:04]line Версия ККМ: 001 [11:06:04]line Платежная система: Mbank [11:06:04]line ФМ: 0000000000965340 [11:06:04]line ФД: 187680 [11:06:04]line ФПД: 30731687856971 [11:06:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T110606&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187680&fm=30731687856971&tin=02508201610067®Number=0000000000100030&sum=950023 [11:06:04]written 0, free lines is 4095 [11:06:04]OFD Sender: Processing packet 187680 [packets to send 1062, broken 1061] [11:06:04]ProducePacketName [11:06:04]name=ofd_packets/00187680 [11:06:04]OFD Sender: To server: pG, [11:06:04]CommunicateWithHost lk.salyk.kg:30040 [11:06:04]ConnectInit lk.salyk.kg [11:06:04]Connected sock=8 [11:06:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 A3 84 0D 01 AA 1B 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 B4 E0 01 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 07 7F 0E 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 07 7F 0E 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 20 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 17 8A 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 07 7F 0E 00 00 00 1F 04 02 00 01 00 12 04 04 00 90 00 00 00 F4 03 04 00 9E 35 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 20 DD 02 00 35 04 06 00 1B F3 47 56 8B 4B 48 A6 74 23 87 20 90 B7 [11:06:05]Write to MH i2c: 01 00 00 C0 48 08 [11:06:05]Write i2c OK [11:06:05]MH_I2C_Read... [11:06:05]Read from MH i2c: 01 [11:06:05]MH_I2C_Read... [11:06:05]Read from MH i2c: 01 07 00 [11:06:05]MH_I2C_Read... [11:06:05]Read from MH i2c: 01 07 00 C0 48 00 00 00 00 00 B6 0C D1 [11:06:05]RasterBufferAndPrint [11:06:05]line [11:06:05]line [11:06:05]line [11:06:05]line [11:06:05]line [11:06:05]written 0, free lines is 3257 [11:06:05]MH_Cut [11:06:05]Write to MH i2c: D1 01 00 C7 48 01 E1 [11:06:05]Write i2c OK [11:06:05]MH_I2C_Read... [11:06:05]Read from MH i2c: D1 [11:06:05]MH_I2C_Read... [11:06:05]Read from MH i2c: D1 01 00 [11:06:05]MH_I2C_Read... [11:06:05]Read from MH i2c: D1 01 00 C7 48 00 E0 [11:06:05]Write to MH i2c: 01 00 00 C8 48 10 [11:06:05]Write i2c OK [11:06:05]MH_I2C_Read... [11:06:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 65 98 47 00 0F A4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 20 DD 02 00 F4 03 04 00 8E DF 15 67 B6 04 01 00 00 7F C3 F0 02 D8 C0 83 41 [11:06:05]CommunicateWithHost err = 0 [11:06:05]CheckOFDResponse [11:06:05]1017 (14) - 77093643461234 [11:06:05]1041 (16) - 0000000000965340 [11:06:05]1040 (4) - 187680 [11:06:05]1012 (4) - 21.10.2024 04:58 [11:06:05]1206 (1) - 0 [11:06:05]OFD Sender: Remove packet 187680 [11:06:05]ProducePacketName [11:06:05]name=ofd_packets/00187680 [11:06:05]NVStorageDeleteData [11:06:05]OFD Sender: No OFD packet to send [11:06:06]*** Cut start [11:06:06]*** Partial cut [11:06:06]*** CUTSNS_PIN = 1 [11:06:06]*** CUTSNS_PIN = 0 [11:06:06]*** Brake cut motor [11:06:06]Read from MH i2c: 01 [11:06:06]MH_I2C_Read... [11:06:06]*** Stop cut motor [11:06:06]*** Cut end [11:06:06]Read from MH i2c: 01 07 00 [11:06:06]MH_I2C_Read... [11:06:06]Read from MH i2c: 01 07 00 C8 48 00 00 00 00 00 FF 0F 25 [11:06:06]process_action close_receipt done [11:06:06]requested_data is exist [11:06:06]produce_requested_data [11:06:06]requested_item fm.sn is exist - process it [11:06:06]wFMCommunicate request_size=4 [11:06:06]MH_SAM_APDU [11:06:06]CAPDU: 80 11 00 00 [11:06:06]Write to MH i2c: E2 08 00 C9 48 80 11 00 00 00 00 00 00 8B [11:06:06]Write i2c OK [11:06:06]MH_I2C_Read... [11:06:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:06:06]Read from MH i2c: E2 [11:06:06]MH_I2C_Read... [11:06:06]Read from MH i2c: E2 17 00 [11:06:06]MH_I2C_Read... [11:06:06]Read from MH i2c: E2 17 00 C9 48 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 D9 [11:06:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [11:06:06]wFMCommunicate OK [11:06:06]requested_item fd.num is exist - process it [11:06:06]SAM_PROTO_GetFieldsCounters [11:06:06]wFMCommunicate request_size=4 [11:06:06]MH_SAM_APDU [11:06:06]CAPDU: 80 13 00 00 [11:06:06]Write to MH i2c: E2 08 00 CA 48 80 13 00 00 00 00 00 00 8E [11:06:06]Write i2c OK [11:06:06]MH_I2C_Read... [11:06:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:06:06]Read from MH i2c: E2 [11:06:06]MH_I2C_Read... [11:06:06]Read from MH i2c: E2 62 00 [11:06:06]MH_I2C_Read... [11:06:06]Read from MH i2c: E2 62 00 CA 48 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 20 DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 90 00 00 00 5E 04 04 00 90 00 00 00 57 04 04 00 91 00 00 00 19 04 04 00 00 00 00 00 90 00 11 [11:06:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 20 DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 90 00 00 00 5E 04 04 00 90 00 00 00 57 04 04 00 91 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:06:06]wFMCommunicate OK [11:06:06]SAM_PROTO_GetFieldsCounters done [11:06:06]requested_item shift.num is exist - process it [11:06:06]requested_item shift.opened is exist - process it [11:06:06]req_shift_opened [11:06:06]FM_GetShiftState [11:06:06]SAM_PROTO_GetShiftState [11:06:06]wFMCommunicate request_size=4 [11:06:06]MH_SAM_APDU [11:06:06]CAPDU: 80 13 01 00 [11:06:06]Write to MH i2c: E2 08 00 CB 48 80 13 01 00 00 00 00 00 90 [11:06:06]Write i2c OK [11:06:06]MH_I2C_Read... [11:06:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:06:06]Read from MH i2c: E2 [11:06:06]MH_I2C_Read... [11:06:06]Read from MH i2c: E2 0E 00 [11:06:06]MH_I2C_Read... [11:06:06]Read from MH i2c: E2 0E 00 CB 48 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 EF [11:06:06]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [11:06:06]wFMCommunicate OK [11:06:06]SAM_PROTO_GetShiftState done [11:06:06]FM_GetShiftState done [11:06:06]req_shift_opened done [11:06:06]requested_item shift.open_date is exist - process it [11:06:06]req_shift_open_date [11:06:06]req_shift_open_date done [11:06:06]produce_requested_data done [11:06:06]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187680,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [11:06:06]process_action_free close_receipt [11:06:06]json_value_free [11:06:06]json_value_free done [11:06:06]process_json_proto returns [11:06:06]Send response to host [11:06:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187680,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [11:06:06]free response buf [11:06:06]execute_script done [11:06:06]execute_script returns [11:06:06]free content buf [11:06:06]Sock 9.Close socket [11:06:06]Sock 9.Thread stoped [11:06:10]OFD Sender: No OFD packet to send [11:06:15]OFD Sender: No OFD packet to send [11:06:20]OFD Sender: No OFD packet to send [11:06:25]OFD Sender: No OFD packet to send [11:06:30]OFD Sender: No OFD packet to send [11:06:35]OFD Sender: No OFD packet to send [11:06:40]OFD Sender: No OFD packet to send [11:06:45]OFD Sender: No OFD packet to send [11:06:50]accept exits with 10 [11:06:50]New connection [11:06:50]New thread 3067014500 created [11:06:50]Thread 3067157860 joined [11:06:50]Waiting for new connection... [11:06:50] Sock 10.Parse request [11:06:50]Sock 10.Check first char [11:06:50]Sock 10.First char is OK [11:06:50]request: POST /json_proto HTTP/1.0 [11:06:50]Method: POST [11:06:50]URL: /json_proto [11:06:50]Method is POST - this is cgi request [11:06:50]url: /json_proto [11:06:50]query_string will be loaded in cgi processing [11:06:50]execute_cgi json_proto POST (null) [11:06:50]execute_cgi path=json_proto method=POST [11:06:50]POST find Content-Length [11:06:50]Host: 172.17.42.131:8080 [11:06:50]Content-Length: 682 [11:06:50]Content-Type: application/json [11:06:50] [11:06:50]POST finish read [11:06:50]Found Content-Length = 682 [11:06:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209733", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "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:06:50]execute_script... [11: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)209733", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "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:06:50]POST & json_proto [11:06:50]process_json_proto [11:06:50]json parsed OK: [11:06:50]protocol is kg_v1.0 [11:06:50]action value=close_receipt [11:06:50]process_action close_receipt [11:06:50]cmd_close_receipt [11:06:50]MH_GetDate [11:06:50]Write to MH i2c: F0 00 00 CC 48 03 [11:06:50]Write i2c OK [11:06:50]MH_I2C_Read... [11:06:50]Read from MH i2c: F0 [11:06:50]MH_I2C_Read... [11:06:50]Read from MH i2c: F0 09 00 [11:06:50]MH_I2C_Read... [11:06:50]Read from MH i2c: F0 09 00 CC 48 00 CE 35 16 67 A0 18 CA 66 74 [11:06:50]GetLastDocTimeStamp 1729508766 [11:06:50]current date 1729508814 [11:06:50]FM_GetShiftState [11:06:50]SAM_PROTO_GetShiftState [11:06:50]wFMCommunicate request_size=4 [11:06:50]MH_SAM_APDU [11:06:50]CAPDU: 80 13 01 00 [11:06:50]Write to MH i2c: E2 08 00 CD 48 80 13 01 00 00 00 00 00 92 [11:06:50]Write i2c OK [11:06:50]MH_I2C_Read... [11:06:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:06:50]Read from MH i2c: E2 [11:06:50]MH_I2C_Read... [11:06:50]Read from MH i2c: E2 0E 00 [11:06:50]MH_I2C_Read... [11:06:50]Read from MH i2c: E2 0E 00 CD 48 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 F1 [11:06:50]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [11:06:50]wFMCommunicate OK [11:06:50]SAM_PROTO_GetShiftState done [11:06:50]FM_GetShiftState done [11:06:50]opened in 1729469754 [11:06:50]opened+sec_in_day 1729556154 [11:06:50]quantity*price = 100015 [11:06:50]sum+1 = 100017 [11:06:50]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 145 21.10.2024 11:06 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 187681 ФПД: 240736118195208 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T110654&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187681&fm=240736118195208&tin=02508201610067®Number=0000000000100030&sum=100000 [11:06:51]StoreToDocumentArchive [11:06:51]shift 460 fd 187681 [11:06:51]save to /storage/0460/doc_00187681 [11:06:51]save last doc name /storage/0460/doc_00187681 to /storage/kkm_last_doc_name [11:06:51]save OK [11:06:51]Clear old archive folders... [11:06:51]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:06:51]tlvbuf is 01093E40 [11:06:51]SAM_PROTO_ClearQueue [11:06:51]wFMCommunicate request_size=4 [11:06:51]MH_SAM_APDU [11:06:51]CAPDU: 80 09 00 00 [11:06:51]Write to MH i2c: E2 08 00 DA 48 80 09 00 00 00 00 00 00 94 [11:06:51]Write i2c OK [11:06:51]MH_I2C_Read... [11:06:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:06:51]Read from MH i2c: E2 [11:06:51]MH_I2C_Read... [11:06:51]Read from MH i2c: E2 03 00 [11:06:51]MH_I2C_Read... [11:06:51]Read from MH i2c: E2 03 00 DA 48 00 90 00 96 [11:06:51]RAPDU: 90 00 [11:06:51]wFMCommunicate OK [11:06:51]SAM_PROTO_ClearQueue done [11:06:51]KKMCreateOFDPacket [11:06:51]OFDProtocolAddRootSTLVToBuf [11:06:51]FM_MakeSignedData [11:06:51]FM_MakeSignedData [11:06:51]SAM_PROTO_SignData [11:06:51]wFMCommunicate request_size=4 [11:06:51]MH_SAM_APDU [11:06:51]CAPDU: 80 0D 01 02 [11:06:51]Write to MH i2c: E2 08 00 DB 48 80 0D 01 02 00 00 00 00 9C [11:06:51]Write i2c OK [11:06:51]MH_I2C_Read... [11:06:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:06:51]Read from MH i2c: E2 [11:06:51]MH_I2C_Read... [11:06:51]Read from MH i2c: E2 03 00 [11:06:51]MH_I2C_Read... [11:06:51]Read from MH i2c: E2 03 00 DB 48 00 90 00 97 [11:06:51]RAPDU: 90 00 [11:06:51]wFMCommunicate OK [11:06:51]wFMCommunicate request_size=255 [11:06:51]MH_SAM_APDU [11: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 33 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 91 00 00 00 F4 03 04 00 CE 35 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 21 DD 02 00 35 04 06 00 DA [11:06:51]Write to MH i2c: E2 02 01 DC 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 33 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 91 00 00 00 F4 03 04 00 CE 35 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 21 DD 02 00 35 04 06 00 DA 00 00 C1 [11:06:51]Write i2c OK [11:06:51]MH_I2C_Read... [11:06:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:06:52]Read from MH i2c: E2 [11:06:52]MH_I2C_Read... [11:06:52]Read from MH i2c: E2 03 00 [11:06:52]MH_I2C_Read... [11:06:52]Read from MH i2c: E2 03 00 DC 48 00 90 00 98 [11:06:52]RAPDU: 90 00 [11:06:52]wFMCommunicate OK [11:06:52]wFMCommunicate request_size=10 [11:06:52]MH_SAM_APDU [11:06:52]CAPDU: 80 0D 02 02 05 F2 BE CF 44 08 [11:06:52]Write to MH i2c: E2 0D 00 DD 48 80 0D 02 02 05 00 F2 BE CF 44 08 00 00 74 [11:06:52]Write i2c OK [11:06:52]MH_I2C_Read... [11:06:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:06:52]Read from MH i2c: E2 [11:06:52]MH_I2C_Read... [11:06:52]Read from MH i2c: E2 03 00 [11:06:52]MH_I2C_Read... [11:06:52]Read from MH i2c: E2 03 00 DD 48 00 90 00 99 [11:06:52]RAPDU: 90 00 [11:06:52]wFMCommunicate OK [11:06:52]wFMCommunicate request_size=4 [11:06:52]MH_SAM_APDU [11:06:52]CAPDU: 80 0D 03 02 [11:06:52]Write to MH i2c: E2 08 00 DE 48 80 0D 03 02 00 00 00 00 A1 [11:06:52]Write i2c OK [11:06:52]MH_I2C_Read... [11:06:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:06:52]Read from MH i2c: E2 [11:06:52]MH_I2C_Read... [11:06:52]Read from MH i2c: E2 0B 00 [11:06:52]MH_I2C_Read... [11:06:52]Read from MH i2c: E2 0B 00 DE 48 00 0E A0 89 0D 6D BB F4 8D 90 00 8F [11:06:52]RAPDU: 0E A0 89 0D 6D BB F4 8D 90 00 [11:06:52]wFMCommunicate OK [11:06:52]SAM_PROTO_SignData done [11:06:52]FM_MakeSignedData done [11:06:52]CreateOFDProtocolMessage [11:06:52]wFMCommunicate request_size=4 [11:06:52]MH_SAM_APDU [11:06:52]CAPDU: 80 11 00 00 [11:06:52]Write to MH i2c: E2 08 00 DF 48 80 11 00 00 00 00 00 00 A1 [11:06:52]Write i2c OK [11:06:52]MH_I2C_Read... [11:06:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:06:52]Read from MH i2c: E2 [11:06:52]MH_I2C_Read... [11:06:52]Read from MH i2c: E2 17 00 [11:06:52]MH_I2C_Read... [11:06:52]Read from MH i2c: E2 17 00 DF 48 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 EF [11:06:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [11:06:52]wFMCommunicate OK [11:06:52]CreateOFDProtocolMessage done [11:06:52]OFDSenderStorePacket 187681 [11:06:52]StoreOFDPacket docnum=187681 [11:06:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 53 2A 07 01 08 E0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 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 91 00 00 00 F4 03 04 00 CE 35 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 21 DD 02 00 35 04 06 00 DA F2 BE CF 44 08 0E A0 89 0D 6D BB F4 8D [11:06:52]CheckFolder [11:06:52]dirname=/storage/ofd_packets [11:06:52]CheckFolder done [11:06:52]ProducePacketName [11:06:52]name=ofd_packets/00187681 [11:06:52]NVStorageSaveData ofd_packets/00187681 [11:06:52]File name is /storage/ofd_packets/00187681 [11:06:52]Write 301 bytes [11:06:52]NVStorageSaveData done [11:06:52]OFDSenderStorePacket done [11:06:52]KKMCreateOFDPacket done [11:06:52]NVStorageSaveData kkm_last_timestamp [11:06:52]File name is /storage/kkm_last_timestamp [11:06:52]Write 4 bytes [11:06:52]NVStorageSaveData done [11:06:52]ExternCall_PrintAddStr [11:06:52]wPrintStart [11:06:52]Write to MH i2c: 01 00 00 E0 48 28 [11:06:52]Write i2c OK [11:06:52]MH_I2C_Read... [11:06:52]Read from MH i2c: 01 [11:06:52]MH_I2C_Read... [11:06:52]Read from MH i2c: 01 07 00 [11:06:52]MH_I2C_Read... [11:06:52]Read from MH i2c: 01 07 00 E0 48 00 00 00 00 00 FF 0F 3D [11:06:52]RasterBufferAndPrint [11:06:52]line Счет N : (1)209733 [11:06:52]line ИНН: 02508201610067 [11:06:52]line Контрольно-Кассовый Чек [11:06:52]line ПРОДАЖА [11:06:52]line ТРК (МРК, ГНК) : 22 [11:06:52]line Товар: 2710124130 [11:06:52]line Аи-92-К-3 [11:06:52]line 14.950 * 66.90 [11:06:52]line = 1000.16 [11:06:52]line НДС 12% НСП 1% [11:06:52]line > о реализуемом товаре [11:06:52]line ОКРУГЛЕНИЕ: -0.16 [11:06:52]line ИТОГО: 1000.00 [11:06:52]line Внесено: 1000.00 [11:06:52]line СДАЧА: 0.00 [11:06:52]line НСП 1% : 8.85 [11:06:52]line НДС 12% : 106.21 [11:06:52]line Наличными: 1000.00 [11:06:52]line Безнал.: 0.00 [11:06:52]line Место: АЗС № 86 "Партнер Нефть" [11:06:52]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [11:06:52]line СНО: Общий режим [11:06:52]line Чек 145 21.10.2024 11:06 [11:06:52]line Смена: 460 ФФД: 1.0 [11:06:52]line ЗНМ: 0300000155 [11:06:52]line РНМ: 0000000000100030 [11:06:52]line Версия ККМ: 001 [11:06:52]line ФМ: 0000000000965340 [11:06:52]line ФД: 187681 [11:06:52]line ФПД: 240736118195208 [11:06:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T110654&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187681&fm=240736118195208&tin=02508201610067®Number=0000000000100030&sum=100000 [11:06:52]written 0, free lines is 4095 [11:06:52]OFD Sender: Processing packet 187681 [packets to send 1062, broken 1061] [11:06:52]ProducePacketName [11:06:52]name=ofd_packets/00187681 [11:06:52]OFD Sender: To server: pG, [11:06:52]CommunicateWithHost lk.salyk.kg:30040 [11:06:52]ConnectInit lk.salyk.kg [11:06:52]Connected sock=9 [11:06:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 53 2A 07 01 08 E0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 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 91 00 00 00 F4 03 04 00 CE 35 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 21 DD 02 00 35 04 06 00 DA F2 BE CF 44 08 0E A0 89 0D 6D BB F4 8D [11:06:52]Write to MH i2c: 01 00 00 0B 49 54 [11:06:52]Write i2c OK [11:06:52]MH_I2C_Read... [11:06:52]Read from MH i2c: 01 [11:06:52]MH_I2C_Read... [11:06:52]Read from MH i2c: 01 07 00 [11:06:52]MH_I2C_Read... [11:06:52]Read from MH i2c: 01 07 00 0B 49 00 00 00 00 00 7E 0C E5 [11:06:52]RasterBufferAndPrint [11:06:52]line [11:06:52]line [11:06:52]line [11:06:52]line [11:06:52]line [11:06:52]written 0, free lines is 3202 [11:06:52]MH_Cut [11:06:52]Write to MH i2c: D1 01 00 12 49 01 2D [11:06:52]Write i2c OK [11:06:52]MH_I2C_Read... [11:06:52]Read from MH i2c: D1 [11:06:52]MH_I2C_Read... [11:06:52]Read from MH i2c: D1 01 00 [11:06:52]MH_I2C_Read... [11:06:52]Read from MH i2c: D1 01 00 12 49 00 2C [11:06:52]Write to MH i2c: 01 00 00 13 49 5C [11:06:52]Write i2c OK [11:06:52]MH_I2C_Read... [11:06:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 3B C3 47 00 AE 4E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 21 DD 02 00 F4 03 04 00 BE DF 15 67 B6 04 01 00 00 D1 9C 56 21 94 EC 3B 9E [11:06:52]CommunicateWithHost err = 0 [11:06:52]CheckOFDResponse [11:06:52]1017 (14) - 77093643461234 [11:06:52]1041 (16) - 0000000000965340 [11:06:52]1040 (4) - 187681 [11:06:52]1012 (4) - 21.10.2024 04:59 [11:06:52]1206 (1) - 0 [11:06:52]OFD Sender: Remove packet 187681 [11:06:52]ProducePacketName [11:06:52]name=ofd_packets/00187681 [11:06:52]NVStorageDeleteData [11:06:53]OFD Sender: No OFD packet to send [11:06:53]*** Cut start [11:06:53]*** Partial cut [11:06:53]*** CUTSNS_PIN = 1 [11:06:53]*** CUTSNS_PIN = 0 [11:06:54]*** Brake cut motor [11:06:54]Read from MH i2c: 01 [11:06:54]MH_I2C_Read... [11:06:54]*** Stop cut motor [11:06:54]*** Cut end [11:06:54]Read from MH i2c: 01 07 00 [11:06:54]MH_I2C_Read... [11:06:54]Read from MH i2c: 01 07 00 13 49 00 00 00 00 00 FF 0F 71 [11:06:54]process_action close_receipt done [11:06:54]requested_data is exist [11:06:54]produce_requested_data [11:06:54]requested_item fm.sn is exist - process it [11:06:54]wFMCommunicate request_size=4 [11:06:54]MH_SAM_APDU [11:06:54]CAPDU: 80 11 00 00 [11:06:54]Write to MH i2c: E2 08 00 14 49 80 11 00 00 00 00 00 00 D7 [11:06:54]Write i2c OK [11:06:54]MH_I2C_Read... [11:06:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:06:54]Read from MH i2c: E2 [11:06:54]MH_I2C_Read... [11:06:54]Read from MH i2c: E2 17 00 [11:06:54]MH_I2C_Read... [11:06:54]Read from MH i2c: E2 17 00 14 49 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 25 [11:06:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [11:06:54]wFMCommunicate OK [11:06:54]requested_item fd.num is exist - process it [11:06:54]SAM_PROTO_GetFieldsCounters [11:06:54]wFMCommunicate request_size=4 [11:06:54]MH_SAM_APDU [11:06:54]CAPDU: 80 13 00 00 [11:06:54]Write to MH i2c: E2 08 00 15 49 80 13 00 00 00 00 00 00 DA [11:06:54]Write i2c OK [11:06:54]MH_I2C_Read... [11:06:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:06:54]Read from MH i2c: E2 [11:06:54]MH_I2C_Read... [11:06:54]Read from MH i2c: E2 62 00 [11:06:54]MH_I2C_Read... [11:06:54]Read from MH i2c: E2 62 00 15 49 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 21 DD 02 00 0E 04 04 00 CC 01 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 61 [11:06:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 21 DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 91 00 00 00 5E 04 04 00 91 00 00 00 57 04 04 00 92 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:06:54]wFMCommunicate OK [11:06:54]SAM_PROTO_GetFieldsCounters done [11:06:54]requested_item shift.num is exist - process it [11:06:54]requested_item shift.opened is exist - process it [11:06:54]req_shift_opened [11:06:54]FM_GetShiftState [11:06:54]SAM_PROTO_GetShiftState [11:06:54]wFMCommunicate request_size=4 [11:06:54]MH_SAM_APDU [11:06:54]CAPDU: 80 13 01 00 [11:06:54]Write to MH i2c: E2 08 00 16 49 80 13 01 00 00 00 00 00 DC [11:06:54]Write i2c OK [11:06:54]MH_I2C_Read... [11:06:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:06:54]Read from MH i2c: E2 [11:06:54]MH_I2C_Read... [11:06:54]Read from MH i2c: E2 0E 00 [11:06:54]MH_I2C_Read... [11:06:54]Read from MH i2c: E2 0E 00 16 49 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 3B [11:06:54]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [11:06:54]wFMCommunicate OK [11:06:54]SAM_PROTO_GetShiftState done [11:06:54]FM_GetShiftState done [11:06:54]req_shift_opened done [11:06:54]requested_item shift.open_date is exist - process it [11:06:54]req_shift_open_date [11:06:54]req_shift_open_date done [11:06:54]produce_requested_data done [11:06:54]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187681,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [11:06:54]process_action_free close_receipt [11:06:54]json_value_free [11:06:54]json_value_free done [11:06:54]process_json_proto returns [11:06:54]Send response to host [11:06:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187681,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [11:06:54]free response buf [11:06:54]execute_script done [11:06:54]execute_script returns [11:06:54]free content buf [11:06:54]Sock 10.Close socket [11:06:54]Sock 10.Thread stoped [11:06:58]OFD Sender: No OFD packet to send [11:07:03]OFD Sender: No OFD packet to send [11:07:08]OFD Sender: No OFD packet to send [11:07:13]OFD Sender: No OFD packet to send [11:07:18]OFD Sender: No OFD packet to send [11:07:23]OFD Sender: No OFD packet to send [11:07:28]OFD Sender: No OFD packet to send [11:07:33]OFD Sender: No OFD packet to send [11:07:38]OFD Sender: No OFD packet to send [11:07:43]OFD Sender: No OFD packet to send [11:07:48]OFD Sender: No OFD packet to send [11:07:53]OFD Sender: No OFD packet to send [11:07:58]OFD Sender: No OFD packet to send [11:08:03]OFD Sender: No OFD packet to send [11:08:08]OFD Sender: No OFD packet to send [11:08:13]OFD Sender: No OFD packet to send [11:08:18]OFD Sender: No OFD packet to send [11:08:23]OFD Sender: No OFD packet to send [11:08:28]OFD Sender: No OFD packet to send [11:08:33]OFD Sender: No OFD packet to send [11:08:38]OFD Sender: No OFD packet to send [11:08:43]OFD Sender: No OFD packet to send [11:08:48]OFD Sender: No OFD packet to send [11:08:53]OFD Sender: No OFD packet to send [11:08:58]OFD Sender: No OFD packet to send [11:09:03]OFD Sender: No OFD packet to send [11:09:09]OFD Sender: No OFD packet to send [11:09:14]OFD Sender: No OFD packet to send [11:09:19]OFD Sender: No OFD packet to send [11:09:24]OFD Sender: No OFD packet to send [11:09:29]OFD Sender: No OFD packet to send [11:09:34]OFD Sender: No OFD packet to send [11:09:39]OFD Sender: No OFD packet to send [11:09:44]OFD Sender: No OFD packet to send [11:09:49]OFD Sender: No OFD packet to send [11:09:54]OFD Sender: No OFD packet to send [11:09:59]OFD Sender: No OFD packet to send [11:10:04]OFD Sender: No OFD packet to send [11:10:09]OFD Sender: No OFD packet to send [11:10:14]OFD Sender: No OFD packet to send [11:10:19]OFD Sender: No OFD packet to send [11:10:24]OFD Sender: No OFD packet to send [11:10:29]OFD Sender: No OFD packet to send [11:10:34]OFD Sender: No OFD packet to send [11:10:39]OFD Sender: No OFD packet to send [11:10:44]OFD Sender: No OFD packet to send [11:10:49]OFD Sender: No OFD packet to send [11:10:54]OFD Sender: No OFD packet to send [11:10:59]OFD Sender: No OFD packet to send [11:11:04]OFD Sender: No OFD packet to send [11:11:09]OFD Sender: No OFD packet to send [11:11:14]OFD Sender: No OFD packet to send [11:11:19]OFD Sender: No OFD packet to send [11:11:19]accept exits with 8 [11:11:19]New connection [11:11:19]New thread 3067157860 created [11:11:19]Thread 3067014500 joined [11:11:19]Waiting for new connection... [11:11:19] Sock 8.Parse request [11:11:19]Sock 8.Check first char [11:11:19]Sock 8.First char is OK [11:11:19]request: POST /json_proto HTTP/1.0 [11:11:19]Method: POST [11:11:19]URL: /json_proto [11:11:19]Method is POST - this is cgi request [11:11:19]url: /json_proto [11:11:19]query_string will be loaded in cgi processing [11:11:19]execute_cgi json_proto POST (null) [11:11:19]execute_cgi path=json_proto method=POST [11:11:19]POST find Content-Length [11:11:19]Host: 172.17.42.131:8080 [11:11:19]Content-Length: 826 [11:11:19]Content-Type: application/json [11:11:19] [11:11:19]POST finish read [11:11:19]Found Content-Length = 826 [11:11:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209734", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 123.060, "sum" : 9500.23, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 9500.23 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:11:19]execute_script... [11: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)209734", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 123.060, "sum" : 9500.23, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 9500.23 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:11:19]POST & json_proto [11:11:19]process_json_proto [11:11:19]json parsed OK: [11:11:19]protocol is kg_v1.0 [11:11:19]action value=close_receipt [11:11:19]process_action close_receipt [11:11:19]cmd_close_receipt [11:11:19]MH_GetDate [11:11:19]Write to MH i2c: F0 00 00 17 49 4F [11:11:19]Write i2c OK [11:11:19]MH_I2C_Read... [11:11:19]Read from MH i2c: F0 [11:11:19]MH_I2C_Read... [11:11:19]Read from MH i2c: F0 09 00 [11:11:19]MH_I2C_Read... [11:11:19]Read from MH i2c: F0 09 00 17 49 00 DB 36 16 67 A0 18 CA 66 CE [11:11:19]GetLastDocTimeStamp 1729508814 [11:11:19]current date 1729509083 [11:11:19]FM_GetShiftState [11:11:19]SAM_PROTO_GetShiftState [11:11:19]wFMCommunicate request_size=4 [11:11:19]MH_SAM_APDU [11:11:19]CAPDU: 80 13 01 00 [11:11:19]Write to MH i2c: E2 08 00 18 49 80 13 01 00 00 00 00 00 DE [11:11:19]Write i2c OK [11:11:19]MH_I2C_Read... [11:11:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:11:19]Read from MH i2c: E2 [11:11:19]MH_I2C_Read... [11:11:19]Read from MH i2c: E2 0E 00 [11:11:19]MH_I2C_Read... [11:11:19]Read from MH i2c: E2 0E 00 18 49 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 3D [11:11:19]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [11:11:19]wFMCommunicate OK [11:11:19]SAM_PROTO_GetShiftState done [11:11:19]FM_GetShiftState done [11:11:19]opened in 1729469754 [11:11:19]opened+sec_in_day 1729556154 [11:11:19]quantity*price = 950023 [11:11:19]sum+1 = 950024 [11:11:19]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 9500.23 НСП 1% : 84.07 НДС 12% : 1008.87 Наличными: 0.00 Безнал.: 9500.23 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 146 21.10.2024 11:11 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000965340 ФД: 187682 ФПД: 184889101710869 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T111123&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187682&fm=184889101710869&tin=02508201610067®Number=0000000000100030&sum=950023 [11:11:21]StoreToDocumentArchive [11:11:21]shift 460 fd 187682 [11:11:21]save to /storage/0460/doc_00187682 [11:11:21]save last doc name /storage/0460/doc_00187682 to /storage/kkm_last_doc_name [11:11:21]save OK [11:11:21]Clear old archive folders... [11:11:21]ProcessDocumentItem done err = 0, tmpTLVsize=257 [11:11:21]tlvbuf is 011F0E20 [11:11:21]SAM_PROTO_ClearQueue [11:11:21]wFMCommunicate request_size=4 [11:11:21]MH_SAM_APDU [11:11:21]CAPDU: 80 09 00 00 [11:11:21]Write to MH i2c: E2 08 00 25 49 80 09 00 00 00 00 00 00 E0 [11:11:21]Write i2c OK [11:11:21]MH_I2C_Read... [11:11:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:11:21]Read from MH i2c: E2 [11:11:21]MH_I2C_Read... [11:11:21]Read from MH i2c: E2 03 00 [11:11:21]MH_I2C_Read... [11:11:21]Read from MH i2c: E2 03 00 25 49 00 90 00 E2 [11:11:21]RAPDU: 90 00 [11:11:21]wFMCommunicate OK [11:11:21]SAM_PROTO_ClearQueue done [11:11:21]KKMCreateOFDPacket [11:11:21]OFDProtocolAddRootSTLVToBuf [11:11:21]FM_MakeSignedData [11:11:21]FM_MakeSignedData [11:11:21]SAM_PROTO_SignData [11:11:21]wFMCommunicate request_size=4 [11:11:21]MH_SAM_APDU [11:11:21]CAPDU: 80 0D 01 02 [11:11:21]Write to MH i2c: E2 08 00 26 49 80 0D 01 02 00 00 00 00 E8 [11:11:21]Write i2c OK [11:11:21]MH_I2C_Read... [11:11:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:11:21]Read from MH i2c: E2 [11:11:21]MH_I2C_Read... [11:11:21]Read from MH i2c: E2 03 00 [11:11:21]MH_I2C_Read... [11:11:21]Read from MH i2c: E2 03 00 26 49 00 90 00 E3 [11:11:21]RAPDU: 90 00 [11:11:21]wFMCommunicate OK [11:11:21]wFMCommunicate request_size=255 [11:11:21]MH_SAM_APDU [11:11:21]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 B4 E0 01 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 07 7F 0E 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 07 7F 0E 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 20 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 17 8A 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 07 7F 0E 00 00 00 1F 04 02 00 01 00 12 04 04 00 92 00 00 00 F4 03 04 00 DB 36 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 22 DD 02 [11:11:21]Write to MH i2c: E2 02 01 27 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 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 B4 E0 01 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 07 7F 0E 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 07 7F 0E 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 20 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 17 8A 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 07 7F 0E 00 00 00 1F 04 02 00 01 00 12 04 04 00 92 00 00 00 F4 03 04 00 DB 36 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 22 DD 02 00 00 81 [11:11:21]Write i2c OK [11:11:21]MH_I2C_Read... [11:11:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:11:21]Read from MH i2c: E2 [11:11:21]MH_I2C_Read... [11:11:21]Read from MH i2c: E2 03 00 [11:11:21]MH_I2C_Read... [11:11:21]Read from MH i2c: E2 03 00 27 49 00 90 00 E4 [11:11:21]RAPDU: 90 00 [11:11:21]wFMCommunicate OK [11:11:21]wFMCommunicate request_size=16 [11:11:21]MH_SAM_APDU [11:11:21]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 A8 27 D9 3A F6 15 [11:11:21]Write to MH i2c: E2 13 00 28 49 80 0D 02 02 0B 00 00 35 04 06 00 A8 27 D9 3A F6 15 00 00 2D [11:11:21]Write i2c OK [11:11:21]MH_I2C_Read... [11:11:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:11:21]Read from MH i2c: E2 [11:11:21]MH_I2C_Read... [11:11:21]Read from MH i2c: E2 03 00 [11:11:21]MH_I2C_Read... [11:11:21]Read from MH i2c: E2 03 00 28 49 00 90 00 E5 [11:11:21]RAPDU: 90 00 [11:11:21]wFMCommunicate OK [11:11:21]wFMCommunicate request_size=4 [11:11:21]MH_SAM_APDU [11:11:21]CAPDU: 80 0D 03 02 [11:11:21]Write to MH i2c: E2 08 00 29 49 80 0D 03 02 00 00 00 00 ED [11:11:21]Write i2c OK [11:11:21]MH_I2C_Read... [11:11:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:11:21]Read from MH i2c: E2 [11:11:21]MH_I2C_Read... [11:11:21]Read from MH i2c: E2 0B 00 [11:11:21]MH_I2C_Read... [11:11:21]Read from MH i2c: E2 0B 00 29 49 00 64 3C 3C 40 1F 9B 36 F1 90 00 EB [11:11:21]RAPDU: 64 3C 3C 40 1F 9B 36 F1 90 00 [11:11:21]wFMCommunicate OK [11:11:21]SAM_PROTO_SignData done [11:11:21]FM_MakeSignedData done [11:11:21]CreateOFDProtocolMessage [11:11:21]wFMCommunicate request_size=4 [11:11:21]MH_SAM_APDU [11:11:21]CAPDU: 80 11 00 00 [11:11:21]Write to MH i2c: E2 08 00 2A 49 80 11 00 00 00 00 00 00 ED [11:11:21]Write i2c OK [11:11:21]MH_I2C_Read... [11:11:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:11:21]Read from MH i2c: E2 [11:11:21]MH_I2C_Read... [11:11:21]Read from MH i2c: E2 17 00 [11:11:21]MH_I2C_Read... [11:11:21]Read from MH i2c: E2 17 00 2A 49 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 3B [11:11:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [11:11:21]wFMCommunicate OK [11:11:21]CreateOFDProtocolMessage done [11:11:21]OFDSenderStorePacket 187682 [11:11:21]StoreOFDPacket docnum=187682 [11:11:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 12 D2 0D 01 83 A0 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 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 B4 E0 01 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 07 7F 0E 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 07 7F 0E 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 20 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 17 8A 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 07 7F 0E 00 00 00 1F 04 02 00 01 00 12 04 04 00 92 00 00 00 F4 03 04 00 DB 36 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 22 DD 02 00 35 04 06 00 A8 27 D9 3A F6 15 64 3C 3C 40 1F 9B 36 F1 [11:11:21]CheckFolder [11:11:21]dirname=/storage/ofd_packets [11:11:21]CheckFolder done [11:11:21]ProducePacketName [11:11:21]name=ofd_packets/00187682 [11:11:21]NVStorageSaveData ofd_packets/00187682 [11:11:21]File name is /storage/ofd_packets/00187682 [11:11:21]Write 307 bytes [11:11:21]NVStorageSaveData done [11:11:21]OFDSenderStorePacket done [11:11:21]KKMCreateOFDPacket done [11:11:21]NVStorageSaveData kkm_last_timestamp [11:11:21]File name is /storage/kkm_last_timestamp [11:11:21]Write 4 bytes [11:11:21]NVStorageSaveData done [11:11:21]ExternCall_PrintAddStr [11:11:21]wPrintStart [11:11:21]Write to MH i2c: 01 00 00 2B 49 74 [11:11:21]Write i2c OK [11:11:21]MH_I2C_Read... [11:11:21]Read from MH i2c: 01 [11:11:21]MH_I2C_Read... [11:11:21]Read from MH i2c: 01 07 00 [11:11:21]MH_I2C_Read... [11:11:21]Read from MH i2c: 01 07 00 2B 49 00 00 00 00 00 FF 0F 89 [11:11:21]RasterBufferAndPrint [11:11:21]line Счет N : (1)209734 [11:11:21]line ИНН: 02508201610067 [11:11:21]line Контрольно-Кассовый Чек [11:11:21]line ПРОДАЖА [11:11:21]line ТРК (МРК, ГНК) : 41 [11:11:21]line Товар: 2710194210 [11:11:21]line D-ENERGY ДТ-К-5 [11:11:21]line 123.060 * 77.20 [11:11:21]line = 9500.23 [11:11:21]line НДС 12% НСП 1% [11:11:21]line > о реализуемом товаре [11:11:21]line ИТОГО: 9500.23 [11:11:21]line НСП 1% : 84.07 [11:11:21]line НДС 12% : 1008.87 [11:11:21]line Наличными: 0.00 [11:11:21]line Безнал.: 9500.23 [11:11:21]line Место: АЗС № 86 "Партнер Нефть" [11:11:21]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [11:11:21]line СНО: Общий режим [11:11:21]line Чек 146 21.10.2024 11:11 [11:11:21]line Смена: 460 ФФД: 1.0 [11:11:21]line ЗНМ: 0300000155 [11:11:21]line РНМ: 0000000000100030 [11:11:21]line Версия ККМ: 001 [11:11:21]line Платежная система: Бакай Банк [11:11:21]line ФМ: 0000000000965340 [11:11:21]line ФД: 187682 [11:11:21]line ФПД: 184889101710869 [11:11:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T111123&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187682&fm=184889101710869&tin=02508201610067®Number=0000000000100030&sum=950023 [11:11:21]written 0, free lines is 4095 [11:11:21]OFD Sender: Processing packet 187682 [packets to send 1062, broken 1061] [11:11:21]ProducePacketName [11:11:21]name=ofd_packets/00187682 [11:11:21]OFD Sender: To server: pG, [11:11:21]CommunicateWithHost lk.salyk.kg:30040 [11:11:21]ConnectInit lk.salyk.kg [11:11:21]Connected sock=10 [11:11:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 12 D2 0D 01 83 A0 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 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 B4 E0 01 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 07 7F 0E 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 07 7F 0E 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 20 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 17 8A 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 07 7F 0E 00 00 00 1F 04 02 00 01 00 12 04 04 00 92 00 00 00 F4 03 04 00 DB 36 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 22 DD 02 00 35 04 06 00 A8 27 D9 3A F6 15 64 3C 3C 40 1F 9B 36 F1 [11:11:22]Write to MH i2c: 01 00 00 55 49 9E [11:11:22]Write i2c OK [11:11:22]MH_I2C_Read... [11:11:22]Read from MH i2c: 01 [11:11:22]MH_I2C_Read... [11:11:22]Read from MH i2c: 01 07 00 [11:11:22]MH_I2C_Read... [11:11:22]Read from MH i2c: 01 07 00 55 49 00 00 00 00 00 9E 0C 4F [11:11:22]RasterBufferAndPrint [11:11:22]line [11:11:22]line [11:11:22]line [11:11:22]line [11:11:22]line [11:11:22]written 0, free lines is 3233 [11:11:22]MH_Cut [11:11:22]Write to MH i2c: D1 01 00 5C 49 01 77 [11:11:22]Write i2c OK [11:11:22]MH_I2C_Read... [11:11:22]Read from MH i2c: D1 [11:11:22]MH_I2C_Read... [11:11:22]Read from MH i2c: D1 01 00 [11:11:22]MH_I2C_Read... [11:11:22]Read from MH i2c: D1 01 00 5C 49 00 76 [11:11:22]Write to MH i2c: 01 00 00 5D 49 A6 [11:11:22]Write i2c OK [11:11:22]MH_I2C_Read... [11:11:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 72 13 47 00 70 DE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 22 DD 02 00 F4 03 04 00 CB E0 15 67 B6 04 01 00 00 22 E7 36 07 1E 22 85 62 [11:11:22]CommunicateWithHost err = 0 [11:11:22]CheckOFDResponse [11:11:22]1017 (14) - 77093643461234 [11:11:22]1041 (16) - 0000000000965340 [11:11:22]1040 (4) - 187682 [11:11:22]1012 (4) - 21.10.2024 05:04 [11:11:22]1206 (1) - 0 [11:11:22]OFD Sender: Remove packet 187682 [11:11:22]ProducePacketName [11:11:22]name=ofd_packets/00187682 [11:11:22]NVStorageDeleteData [11:11:22]OFD Sender: No OFD packet to send [11:11:23]*** Cut start [11:11:23]*** Partial cut [11:11:23]*** CUTSNS_PIN = 1 [11:11:23]*** CUTSNS_PIN = 0 [11:11:23]*** Brake cut motor [11:11:23]Read from MH i2c: 01 [11:11:23]MH_I2C_Read... [11:11:23]*** Stop cut motor [11:11:23]*** Cut end [11:11:23]Read from MH i2c: 01 07 00 [11:11:23]MH_I2C_Read... [11:11:23]Read from MH i2c: 01 07 00 5D 49 00 00 00 00 00 FF 0F BB [11:11:23]process_action close_receipt done [11:11:23]requested_data is exist [11:11:23]produce_requested_data [11:11:23]requested_item fm.sn is exist - process it [11:11:23]wFMCommunicate request_size=4 [11:11:23]MH_SAM_APDU [11:11:23]CAPDU: 80 11 00 00 [11:11:23]Write to MH i2c: E2 08 00 5E 49 80 11 00 00 00 00 00 00 21 [11:11:23]Write i2c OK [11:11:23]MH_I2C_Read... [11:11:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:11:23]Read from MH i2c: E2 [11:11:23]MH_I2C_Read... [11:11:23]Read from MH i2c: E2 17 00 [11:11:23]MH_I2C_Read... [11:11:23]Read from MH i2c: E2 17 00 5E 49 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 6F [11:11:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [11:11:23]wFMCommunicate OK [11:11:23]requested_item fd.num is exist - process it [11:11:23]SAM_PROTO_GetFieldsCounters [11:11:23]wFMCommunicate request_size=4 [11:11:23]MH_SAM_APDU [11:11:23]CAPDU: 80 13 00 00 [11:11:23]Write to MH i2c: E2 08 00 5F 49 80 13 00 00 00 00 00 00 24 [11:11:23]Write i2c OK [11:11:23]MH_I2C_Read... [11:11:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:11:23]Read from MH i2c: E2 [11:11:23]MH_I2C_Read... [11:11:23]Read from MH i2c: E2 62 00 [11:11:23]MH_I2C_Read... [11:11:23]Read from MH i2c: E2 62 00 5F 49 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 22 DD 02 00 0E 04 04 00 CC 01 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 AF [11:11:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 22 DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 92 00 00 00 5E 04 04 00 92 00 00 00 57 04 04 00 93 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:11:24]wFMCommunicate OK [11:11:24]SAM_PROTO_GetFieldsCounters done [11:11:24]requested_item shift.num is exist - process it [11:11:24]requested_item shift.opened is exist - process it [11:11:24]req_shift_opened [11:11:24]FM_GetShiftState [11:11:24]SAM_PROTO_GetShiftState [11:11:24]wFMCommunicate request_size=4 [11:11:24]MH_SAM_APDU [11:11:24]CAPDU: 80 13 01 00 [11:11:24]Write to MH i2c: E2 08 00 60 49 80 13 01 00 00 00 00 00 26 [11:11:24]Write i2c OK [11:11:24]MH_I2C_Read... [11:11:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:11:24]Read from MH i2c: E2 [11:11:24]MH_I2C_Read... [11:11:24]Read from MH i2c: E2 0E 00 [11:11:24]MH_I2C_Read... [11:11:24]Read from MH i2c: E2 0E 00 60 49 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 85 [11:11:24]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [11:11:24]wFMCommunicate OK [11:11:24]SAM_PROTO_GetShiftState done [11:11:24]FM_GetShiftState done [11:11:24]req_shift_opened done [11:11:24]requested_item shift.open_date is exist - process it [11:11:24]req_shift_open_date [11:11:24]req_shift_open_date done [11:11:24]produce_requested_data done [11:11:24]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187682,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [11:11:24]process_action_free close_receipt [11:11:24]json_value_free [11:11:24]json_value_free done [11:11:24]process_json_proto returns [11:11:24]Send response to host [11:11:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187682,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [11:11:24]free response buf [11:11:24]execute_script done [11:11:24]execute_script returns [11:11:24]free content buf [11:11:24]Sock 8.Close socket [11:11:24]Sock 8.Thread stoped [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:18]OFD Sender: No OFD packet to send [11:12:23]OFD Sender: No OFD packet to send [11:12:28]OFD Sender: No OFD packet to send [11:12:33]OFD Sender: No OFD packet to send [11:12:38]OFD Sender: No OFD packet to send [11:12:43]OFD Sender: No OFD packet to send [11:12:48]OFD Sender: No OFD packet to send [11:12:53]OFD Sender: No OFD packet to send [11:12:58]OFD Sender: No OFD packet to send [11:13:03]OFD Sender: No OFD packet to send [11:13:08]OFD Sender: No OFD packet to send [11:13:13]OFD Sender: No OFD packet to send [11:13:18]OFD Sender: No OFD packet to send [11:13:23]OFD Sender: No OFD packet to send [11:13:28]OFD Sender: No OFD packet to send [11:13:33]OFD Sender: No OFD packet to send [11:13:38]OFD Sender: No OFD packet to send [11:13:43]OFD Sender: No OFD packet to send [11:13:48]OFD Sender: No OFD packet to send [11:13:53]OFD Sender: No OFD packet to send [11:13:58]OFD Sender: No OFD packet to send [11:14:03]OFD Sender: No OFD packet to send [11:14:08]OFD Sender: No OFD packet to send [11:14:13]OFD Sender: No OFD packet to send [11:14:18]OFD Sender: No OFD packet to send [11:14:23]OFD Sender: No OFD packet to send [11:14:28]OFD Sender: No OFD packet to send [11:14:33]OFD Sender: No OFD packet to send [11:14:38]OFD Sender: No OFD packet to send [11:14:43]OFD Sender: No OFD packet to send [11:14:48]OFD Sender: No OFD packet to send [11:14:53]OFD Sender: No OFD packet to send [11:14:58]OFD Sender: No OFD packet to send [11:15:00]accept exits with 9 [11:15:00]New connection [11:15:00]New thread 3067014500 created [11:15:00]Thread 3067157860 joined [11:15:00]Waiting for new connection... [11:15:00] Sock 9.Parse request [11:15:00]Sock 9.Check first char [11:15:00]Sock 9.First char is OK [11:15:00]request: POST /json_proto HTTP/1.0 [11:15:00]Method: POST [11:15:00]URL: /json_proto [11:15:00]Method is POST - this is cgi request [11:15:00]url: /json_proto [11:15:00]query_string will be loaded in cgi processing [11:15:00]execute_cgi json_proto POST (null) [11:15:00]execute_cgi path=json_proto method=POST [11:15:00]POST find Content-Length [11:15:00]Host: 172.17.42.131:8080 [11:15:00]Content-Length: 825 [11:15:00]Content-Type: application/json [11:15:00] [11:15:00]POST finish read [11:15:00]Found Content-Length = 825 [11:15:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209735", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 77.730, "sum" : 6000.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: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 6000.76 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:15:00]execute_script... [11:15: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)209735", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 77.730, "sum" : 6000.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: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 6000.76 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:15:00]POST & json_proto [11:15:00]process_json_proto [11:15:00]json parsed OK: [11:15:00]protocol is kg_v1.0 [11:15:00]action value=close_receipt [11:15:00]process_action close_receipt [11:15:00]cmd_close_receipt [11:15:00]MH_GetDate [11:15:00]Write to MH i2c: F0 00 00 61 49 99 [11:15:00]Write i2c OK [11:15:00]MH_I2C_Read... [11:15:00]Read from MH i2c: F0 [11:15:00]MH_I2C_Read... [11:15:00]Read from MH i2c: F0 09 00 [11:15:00]MH_I2C_Read... [11:15:00]Read from MH i2c: F0 09 00 61 49 00 B8 37 16 67 A0 18 CA 66 F6 [11:15:00]GetLastDocTimeStamp 1729509083 [11:15:00]current date 1729509304 [11:15:00]FM_GetShiftState [11:15:00]SAM_PROTO_GetShiftState [11:15:00]wFMCommunicate request_size=4 [11:15:00]MH_SAM_APDU [11:15:00]CAPDU: 80 13 01 00 [11:15:00]Write to MH i2c: E2 08 00 62 49 80 13 01 00 00 00 00 00 28 [11:15:00]Write i2c OK [11:15:00]MH_I2C_Read... [11:15:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:15:01]Read from MH i2c: E2 [11:15:01]MH_I2C_Read... [11:15:01]Read from MH i2c: E2 0E 00 [11:15:01]MH_I2C_Read... [11:15:01]Read from MH i2c: E2 0E 00 62 49 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 87 [11:15:01]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [11:15:01]wFMCommunicate OK [11:15:01]SAM_PROTO_GetShiftState done [11:15:01]FM_GetShiftState done [11:15:01]opened in 1729469754 [11:15:01]opened+sec_in_day 1729556154 [11:15:01]quantity*price = 600075 [11:15:01]sum+1 = 600077 [11:15:01]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 6000.76 НСП 1% : 53.10 НДС 12% : 637.25 Наличными: 0.00 Безнал.: 6000.76 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 147 21.10.2024 11:15 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000965340 ФД: 187683 ФПД: 6094362361501 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T111504&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187683&fm=6094362361501&tin=02508201610067®Number=0000000000100030&sum=600076 [11:15:02]StoreToDocumentArchive [11:15:02]shift 460 fd 187683 [11:15:02]save to /storage/0460/doc_00187683 [11:15:02]save last doc name /storage/0460/doc_00187683 to /storage/kkm_last_doc_name [11:15:02]save OK [11:15:02]Clear old archive folders... [11:15:02]ProcessDocumentItem done err = 0, tmpTLVsize=257 [11:15:02]tlvbuf is 010E3C30 [11:15:02]SAM_PROTO_ClearQueue [11:15:02]wFMCommunicate request_size=4 [11:15:02]MH_SAM_APDU [11:15:02]CAPDU: 80 09 00 00 [11:15:02]Write to MH i2c: E2 08 00 6F 49 80 09 00 00 00 00 00 00 2A [11:15:02]Write i2c OK [11:15:02]MH_I2C_Read... [11:15:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:15:02]Read from MH i2c: E2 [11:15:02]MH_I2C_Read... [11:15:02]Read from MH i2c: E2 03 00 [11:15:02]MH_I2C_Read... [11:15:02]Read from MH i2c: E2 03 00 6F 49 00 90 00 2C [11:15:02]RAPDU: 90 00 [11:15:02]wFMCommunicate OK [11:15:02]SAM_PROTO_ClearQueue done [11:15:02]KKMCreateOFDPacket [11:15:02]OFDProtocolAddRootSTLVToBuf [11:15:02]FM_MakeSignedData [11:15:02]FM_MakeSignedData [11:15:02]SAM_PROTO_SignData [11:15:02]wFMCommunicate request_size=4 [11:15:02]MH_SAM_APDU [11:15:02]CAPDU: 80 0D 01 02 [11:15:02]Write to MH i2c: E2 08 00 70 49 80 0D 01 02 00 00 00 00 32 [11:15:02]Write i2c OK [11:15:02]MH_I2C_Read... [11:15:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:15:02]Read from MH i2c: E2 [11:15:02]MH_I2C_Read... [11:15:02]Read from MH i2c: E2 03 00 [11:15:02]MH_I2C_Read... [11:15:02]Read from MH i2c: E2 03 00 70 49 00 90 00 2D [11:15:02]RAPDU: 90 00 [11:15:02]wFMCommunicate OK [11:15:02]wFMCommunicate request_size=255 [11:15:02]MH_SAM_APDU [11:15:02]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 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A2 2F 01 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 0C 28 09 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 0C 28 09 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BE 14 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 ED F8 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 0C 28 09 00 00 00 1F 04 02 00 01 00 12 04 04 00 93 00 00 00 F4 03 04 00 B8 37 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 23 DD 02 [11:15:02]Write to MH i2c: E2 02 01 71 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 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A2 2F 01 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 0C 28 09 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 0C 28 09 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BE 14 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 ED F8 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 0C 28 09 00 00 00 1F 04 02 00 01 00 12 04 04 00 93 00 00 00 F4 03 04 00 B8 37 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 23 DD 02 00 00 01 [11:15:02]Write i2c OK [11:15:02]MH_I2C_Read... [11:15:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:15:02]Read from MH i2c: E2 [11:15:02]MH_I2C_Read... [11:15:02]Read from MH i2c: E2 03 00 [11:15:02]MH_I2C_Read... [11:15:02]Read from MH i2c: E2 03 00 71 49 00 90 00 2E [11:15:02]RAPDU: 90 00 [11:15:02]wFMCommunicate OK [11:15:02]wFMCommunicate request_size=16 [11:15:02]MH_SAM_APDU [11:15:02]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 05 8A F4 4D BE 9D [11:15:02]Write to MH i2c: E2 13 00 72 49 80 0D 02 02 0B 00 00 35 04 06 00 05 8A F4 4D BE 9D 00 00 B5 [11:15:02]Write i2c OK [11:15:02]MH_I2C_Read... [11:15:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:15:02]Read from MH i2c: E2 [11:15:02]MH_I2C_Read... [11:15:02]Read from MH i2c: E2 03 00 [11:15:02]MH_I2C_Read... [11:15:02]Read from MH i2c: E2 03 00 72 49 00 90 00 2F [11:15:02]RAPDU: 90 00 [11:15:02]wFMCommunicate OK [11:15:02]wFMCommunicate request_size=4 [11:15:02]MH_SAM_APDU [11:15:02]CAPDU: 80 0D 03 02 [11:15:02]Write to MH i2c: E2 08 00 73 49 80 0D 03 02 00 00 00 00 37 [11:15:02]Write i2c OK [11:15:02]MH_I2C_Read... [11:15:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:15:02]Read from MH i2c: E2 [11:15:02]MH_I2C_Read... [11:15:02]Read from MH i2c: E2 0B 00 [11:15:02]MH_I2C_Read... [11:15:02]Read from MH i2c: E2 0B 00 73 49 00 44 CC 60 3D 25 82 0E A2 90 00 3C [11:15:02]RAPDU: 44 CC 60 3D 25 82 0E A2 90 00 [11:15:02]wFMCommunicate OK [11:15:02]SAM_PROTO_SignData done [11:15:02]FM_MakeSignedData done [11:15:02]CreateOFDProtocolMessage [11:15:02]wFMCommunicate request_size=4 [11:15:02]MH_SAM_APDU [11:15:02]CAPDU: 80 11 00 00 [11:15:02]Write to MH i2c: E2 08 00 74 49 80 11 00 00 00 00 00 00 37 [11:15:02]Write i2c OK [11:15:02]MH_I2C_Read... [11:15:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:15:02]Read from MH i2c: E2 [11:15:02]MH_I2C_Read... [11:15:02]Read from MH i2c: E2 17 00 [11:15:02]MH_I2C_Read... [11:15:02]Read from MH i2c: E2 17 00 74 49 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 85 [11:15:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [11:15:02]wFMCommunicate OK [11:15:02]CreateOFDProtocolMessage done [11:15:02]OFDSenderStorePacket 187683 [11:15:02]StoreOFDPacket docnum=187683 [11:15:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 35 41 0D 01 0E 14 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 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A2 2F 01 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 0C 28 09 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 0C 28 09 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BE 14 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 ED F8 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 0C 28 09 00 00 00 1F 04 02 00 01 00 12 04 04 00 93 00 00 00 F4 03 04 00 B8 37 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 23 DD 02 00 35 04 06 00 05 8A F4 4D BE 9D 44 CC 60 3D 25 82 0E A2 [11:15:02]CheckFolder [11:15:02]dirname=/storage/ofd_packets [11:15:02]CheckFolder done [11:15:02]ProducePacketName [11:15:02]name=ofd_packets/00187683 [11:15:02]NVStorageSaveData ofd_packets/00187683 [11:15:02]File name is /storage/ofd_packets/00187683 [11:15:02]Write 307 bytes [11:15:02]NVStorageSaveData done [11:15:02]OFDSenderStorePacket done [11:15:02]KKMCreateOFDPacket done [11:15:02]NVStorageSaveData kkm_last_timestamp [11:15:02]File name is /storage/kkm_last_timestamp [11:15:02]Write 4 bytes [11:15:02]NVStorageSaveData done [11:15:02]ExternCall_PrintAddStr [11:15:02]wPrintStart [11:15:02]Write to MH i2c: 01 00 00 75 49 BE [11:15:02]Write i2c OK [11:15:02]MH_I2C_Read... [11:15:02]Read from MH i2c: 01 [11:15:02]MH_I2C_Read... [11:15:02]Read from MH i2c: 01 07 00 [11:15:02]MH_I2C_Read... [11:15:02]Read from MH i2c: 01 07 00 75 49 00 00 00 00 00 FF 0F D3 [11:15:02]RasterBufferAndPrint [11:15:02]line Счет N : (1)209735 [11:15:02]line ИНН: 02508201610067 [11:15:02]line Контрольно-Кассовый Чек [11:15:02]line ПРОДАЖА [11:15:02]line ТРК (МРК, ГНК) : 41 [11:15:02]line Товар: 2710194210 [11:15:02]line D-ENERGY ДТ-К-5 [11:15:02]line 77.730 * 77.20 [11:15:02]line = 6000.76 [11:15:02]line НДС 12% НСП 1% [11:15:02]line > о реализуемом товаре [11:15:02]line ИТОГО: 6000.76 [11:15:02]line НСП 1% : 53.10 [11:15:02]line НДС 12% : 637.25 [11:15:02]line Наличными: 0.00 [11:15:02]line Безнал.: 6000.76 [11:15:02]line Место: АЗС № 86 "Партнер Нефть" [11:15:02]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [11:15:02]line СНО: Общий режим [11:15:02]line Чек 147 21.10.2024 11:15 [11:15:02]line Смена: 460 ФФД: 1.0 [11:15:02]line ЗНМ: 0300000155 [11:15:02]line РНМ: 0000000000100030 [11:15:02]line Версия ККМ: 001 [11:15:02]line Платежная система: Бакай Банк [11:15:02]line ФМ: 0000000000965340 [11:15:02]line ФД: 187683 [11:15:02]line ФПД: 6094362361501 [11:15:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T111504&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187683&fm=6094362361501&tin=02508201610067®Number=0000000000100030&sum=600076 [11:15:02]written 0, free lines is 4095 [11:15:02]OFD Sender: Processing packet 187683 [packets to send 1062, broken 1061] [11:15:02]ProducePacketName [11:15:02]name=ofd_packets/00187683 [11:15:02]OFD Sender: To server: pG, [11:15:02]CommunicateWithHost lk.salyk.kg:30040 [11:15:02]ConnectInit lk.salyk.kg [11:15:03]Connected sock=8 [11:15:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 35 41 0D 01 0E 14 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 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A2 2F 01 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 0C 28 09 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 0C 28 09 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BE 14 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 ED F8 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 0C 28 09 00 00 00 1F 04 02 00 01 00 12 04 04 00 93 00 00 00 F4 03 04 00 B8 37 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 23 DD 02 00 35 04 06 00 05 8A F4 4D BE 9D 44 CC 60 3D 25 82 0E A2 [11:15:03]Write to MH i2c: 01 00 00 9F 49 E8 [11:15:03]Write i2c OK [11:15:03]MH_I2C_Read... [11:15:03]Read from MH i2c: 01 [11:15:03]MH_I2C_Read... [11:15:03]Read from MH i2c: 01 07 00 [11:15:03]MH_I2C_Read... [11:15:03]Read from MH i2c: 01 07 00 9F 49 00 00 00 00 00 96 0C 91 [11:15:03]RasterBufferAndPrint [11:15:03]line [11:15:03]line [11:15:03]line [11:15:03]line [11:15:03]line [11:15:03]written 0, free lines is 3226 [11:15:03]MH_Cut [11:15:03]Write to MH i2c: D1 01 00 A6 49 01 C1 [11:15:03]Write i2c OK [11:15:03]MH_I2C_Read... [11:15:03]Read from MH i2c: D1 [11:15:03]MH_I2C_Read... [11:15:03]Read from MH i2c: D1 01 00 [11:15:03]MH_I2C_Read... [11:15:03]Read from MH i2c: D1 01 00 A6 49 00 C0 [11:15:03]Write to MH i2c: 01 00 00 A7 49 F0 [11:15:03]Write i2c OK [11:15:03]MH_I2C_Read... [11:15:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 0B EE 47 00 B6 D2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 23 DD 02 00 F4 03 04 00 A8 E1 15 67 B6 04 01 00 00 71 A5 D8 2F AB 05 7A DE [11:15:03]CommunicateWithHost err = 0 [11:15:03]CheckOFDResponse [11:15:03]1017 (14) - 77093643461234 [11:15:03]1041 (16) - 0000000000965340 [11:15:03]1040 (4) - 187683 [11:15:03]1012 (4) - 21.10.2024 05:07 [11:15:03]1206 (1) - 0 [11:15:03]OFD Sender: Remove packet 187683 [11:15:03]ProducePacketName [11:15:03]name=ofd_packets/00187683 [11:15:03]NVStorageDeleteData [11:15:03]OFD Sender: No OFD packet to send [11:15:04]*** Cut start [11:15:04]*** Partial cut [11:15:04]*** CUTSNS_PIN = 1 [11:15:04]*** CUTSNS_PIN = 0 [11:15:04]*** Brake cut motor [11:15:04]Read from MH i2c: 01 [11:15:04]MH_I2C_Read... [11:15:04]*** Stop cut motor [11:15:04]*** Cut end [11:15:04]Read from MH i2c: 01 07 00 [11:15:04]MH_I2C_Read... [11:15:04]Read from MH i2c: 01 07 00 A7 49 00 00 00 00 00 FF 0F 05 [11:15:04]process_action close_receipt done [11:15:04]requested_data is exist [11:15:04]produce_requested_data [11:15:04]requested_item fm.sn is exist - process it [11:15:04]wFMCommunicate request_size=4 [11:15:04]MH_SAM_APDU [11:15:04]CAPDU: 80 11 00 00 [11:15:04]Write to MH i2c: E2 08 00 A8 49 80 11 00 00 00 00 00 00 6B [11:15:04]Write i2c OK [11:15:04]MH_I2C_Read... [11:15:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:15:04]Read from MH i2c: E2 [11:15:04]MH_I2C_Read... [11:15:04]Read from MH i2c: E2 17 00 [11:15:04]MH_I2C_Read... [11:15:04]Read from MH i2c: E2 17 00 A8 49 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 B9 [11:15:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [11:15:04]wFMCommunicate OK [11:15:04]requested_item fd.num is exist - process it [11:15:04]SAM_PROTO_GetFieldsCounters [11:15:04]wFMCommunicate request_size=4 [11:15:04]MH_SAM_APDU [11:15:04]CAPDU: 80 13 00 00 [11:15:04]Write to MH i2c: E2 08 00 A9 49 80 13 00 00 00 00 00 00 6E [11:15:04]Write i2c OK [11:15:04]MH_I2C_Read... [11:15:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:15:05]Read from MH i2c: E2 [11:15:05]MH_I2C_Read... [11:15:05]Read from MH i2c: E2 62 00 [11:15:05]MH_I2C_Read... [11:15:05]Read from MH i2c: E2 62 00 A9 49 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 23 DD 02 00 0E 04 04 00 CC 01 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 FD [11:15:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 23 DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 93 00 00 00 5E 04 04 00 93 00 00 00 57 04 04 00 94 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:15:05]wFMCommunicate OK [11:15:05]SAM_PROTO_GetFieldsCounters done [11:15:05]requested_item shift.num is exist - process it [11:15:05]requested_item shift.opened is exist - process it [11:15:05]req_shift_opened [11:15:05]FM_GetShiftState [11:15:05]SAM_PROTO_GetShiftState [11:15:05]wFMCommunicate request_size=4 [11:15:05]MH_SAM_APDU [11:15:05]CAPDU: 80 13 01 00 [11:15:05]Write to MH i2c: E2 08 00 AA 49 80 13 01 00 00 00 00 00 70 [11:15:05]Write i2c OK [11:15:05]MH_I2C_Read... [11:15:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:15:05]Read from MH i2c: E2 [11:15:05]MH_I2C_Read... [11:15:05]Read from MH i2c: E2 0E 00 [11:15:05]MH_I2C_Read... [11:15:05]Read from MH i2c: E2 0E 00 AA 49 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 CF [11:15:05]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [11:15:05]wFMCommunicate OK [11:15:05]SAM_PROTO_GetShiftState done [11:15:05]FM_GetShiftState done [11:15:05]req_shift_opened done [11:15:05]requested_item shift.open_date is exist - process it [11:15:05]req_shift_open_date [11:15:05]req_shift_open_date done [11:15:05]produce_requested_data done [11:15:05]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187683,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [11:15:05]process_action_free close_receipt [11:15:05]json_value_free [11:15:05]json_value_free done [11:15:05]process_json_proto returns [11:15:05]Send response to host [11:15:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187683,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [11:15:05]free response buf [11:15:05]execute_script done [11:15:05]execute_script returns [11:15:05]free content buf [11:15:05]Sock 9.Close socket [11:15:05]Sock 9.Thread stoped [11:15:08]OFD Sender: No OFD packet to send [11:15:10]accept exits with 10 [11:15:10]New connection [11:15:10]New thread 3067157860 created [11:15:10]Thread 3067014500 joined [11:15:10]Waiting for new connection... [11:15:10] Sock 10.Parse request [11:15:10]Sock 10.Check first char [11:15:10]Sock 10.First char is OK [11:15:10]request: POST /json_proto HTTP/1.0 [11:15:10]Method: POST [11:15:10]URL: /json_proto [11:15:10]Method is POST - this is cgi request [11:15:10]url: /json_proto [11:15:10]query_string will be loaded in cgi processing [11:15:10]execute_cgi json_proto POST (null) [11:15:10]execute_cgi path=json_proto method=POST [11:15:10]POST find Content-Length [11:15:10]Host: 172.17.42.131:8080 [11:15:10]Content-Length: 688 [11:15:10]Content-Type: application/json [11:15:10] [11:15:10]POST finish read [11:15:10]Found Content-Length = 688 [11:15:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209736", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 12.960, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:15:10]execute_script... [11:15: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)209736", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 12.960, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:15:10]POST & json_proto [11:15:10]process_json_proto [11:15:10]json parsed OK: [11:15:10]protocol is kg_v1.0 [11:15:10]action value=close_receipt [11:15:10]process_action close_receipt [11:15:10]cmd_close_receipt [11:15:10]MH_GetDate [11:15:10]Write to MH i2c: F0 00 00 AB 49 E3 [11:15:10]Write i2c OK [11:15:10]MH_I2C_Read... [11:15:10]Read from MH i2c: F0 [11:15:10]MH_I2C_Read... [11:15:10]Read from MH i2c: F0 09 00 [11:15:10]MH_I2C_Read... [11:15:10]Read from MH i2c: F0 09 00 AB 49 00 C2 37 16 67 A0 18 CA 66 4A [11:15:10]GetLastDocTimeStamp 1729509304 [11:15:10]current date 1729509314 [11:15:10]FM_GetShiftState [11:15:10]SAM_PROTO_GetShiftState [11:15:10]wFMCommunicate request_size=4 [11:15:10]MH_SAM_APDU [11:15:10]CAPDU: 80 13 01 00 [11:15:10]Write to MH i2c: E2 08 00 AC 49 80 13 01 00 00 00 00 00 72 [11:15:10]Write i2c OK [11:15:10]MH_I2C_Read... [11:15:10]Read from MH i2c: E2 [11:15:10]MH_I2C_Read... [11:15:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:15:10]Read from MH i2c: E2 0E 00 [11:15:10]MH_I2C_Read... [11:15:10]Read from MH i2c: E2 0E 00 AC 49 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 D1 [11:15:10]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [11:15:10]wFMCommunicate OK [11:15:10]SAM_PROTO_GetShiftState done [11:15:10]FM_GetShiftState done [11:15:10]opened in 1729469754 [11:15:10]opened+sec_in_day 1729556154 [11:15:10]quantity*price = 100051 [11:15:10]sum+1 = 100052 [11:15:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 148 21.10.2024 11:15 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 187684 ФПД: 208630128409865 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T111514&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187684&fm=208630128409865&tin=02508201610067®Number=0000000000100030&sum=100000 [11:15:11]StoreToDocumentArchive [11:15:11]shift 460 fd 187684 [11:15:11]save to /storage/0460/doc_00187684 [11:15:11]save last doc name /storage/0460/doc_00187684 to /storage/kkm_last_doc_name [11:15:11]save OK [11:15:11]Clear old archive folders... [11:15:11]ProcessDocumentItem done err = 0, tmpTLVsize=257 [11:15:11]tlvbuf is 010E3CC0 [11:15:11]SAM_PROTO_ClearQueue [11:15:11]wFMCommunicate request_size=4 [11:15:11]MH_SAM_APDU [11:15:11]CAPDU: 80 09 00 00 [11:15:11]Write to MH i2c: E2 08 00 B9 49 80 09 00 00 00 00 00 00 74 [11:15:11]Write i2c OK [11:15:11]MH_I2C_Read... [11:15:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:15:11]Read from MH i2c: E2 [11:15:11]MH_I2C_Read... [11:15:11]Read from MH i2c: E2 03 00 [11:15:11]MH_I2C_Read... [11:15:11]Read from MH i2c: E2 03 00 B9 49 00 90 00 76 [11:15:11]RAPDU: 90 00 [11:15:11]wFMCommunicate OK [11:15:11]SAM_PROTO_ClearQueue done [11:15:11]KKMCreateOFDPacket [11:15:11]OFDProtocolAddRootSTLVToBuf [11:15:11]FM_MakeSignedData [11:15:11]FM_MakeSignedData [11:15:11]SAM_PROTO_SignData [11:15:11]wFMCommunicate request_size=4 [11:15:11]MH_SAM_APDU [11:15:11]CAPDU: 80 0D 01 02 [11:15:11]Write to MH i2c: E2 08 00 BA 49 80 0D 01 02 00 00 00 00 7C [11:15:11]Write i2c OK [11:15:11]MH_I2C_Read... [11:15:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:15:11]Read from MH i2c: E2 [11:15:11]MH_I2C_Read... [11:15:11]Read from MH i2c: E2 03 00 [11:15:11]MH_I2C_Read... [11:15:11]Read from MH i2c: E2 03 00 BA 49 00 90 00 77 [11:15:11]RAPDU: 90 00 [11:15:11]wFMCommunicate OK [11:15:11]wFMCommunicate request_size=255 [11:15:11]MH_SAM_APDU [11:15:11]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 94 00 00 00 F4 03 04 00 C2 37 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 24 DD 02 [11:15:11]Write to MH i2c: E2 02 01 BB 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 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 94 00 00 00 F4 03 04 00 C2 37 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 24 DD 02 00 00 B3 [11:15:11]Write i2c OK [11:15:11]MH_I2C_Read... [11:15:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:15:12]Read from MH i2c: E2 [11:15:12]MH_I2C_Read... [11:15:12]Read from MH i2c: E2 03 00 [11:15:12]MH_I2C_Read... [11:15:12]Read from MH i2c: E2 03 00 BB 49 00 90 00 78 [11:15:12]RAPDU: 90 00 [11:15:12]wFMCommunicate OK [11:15:12]wFMCommunicate request_size=16 [11:15:12]MH_SAM_APDU [11:15:12]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 BD BF 7C B1 7D 09 [11:15:12]Write to MH i2c: E2 13 00 BC 49 80 0D 02 02 0B 00 00 35 04 06 00 BD BF 7C B1 7D 09 00 00 03 [11:15:12]Write i2c OK [11:15:12]MH_I2C_Read... [11:15:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:15:12]Read from MH i2c: E2 [11:15:12]MH_I2C_Read... [11:15:12]Read from MH i2c: E2 03 00 [11:15:12]MH_I2C_Read... [11:15:12]Read from MH i2c: E2 03 00 BC 49 00 90 00 79 [11:15:12]RAPDU: 90 00 [11:15:12]wFMCommunicate OK [11:15:12]wFMCommunicate request_size=4 [11:15:12]MH_SAM_APDU [11:15:12]CAPDU: 80 0D 03 02 [11:15:12]Write to MH i2c: E2 08 00 BD 49 80 0D 03 02 00 00 00 00 81 [11:15:12]Write i2c OK [11:15:12]MH_I2C_Read... [11:15:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:15:12]Read from MH i2c: E2 [11:15:12]MH_I2C_Read... [11:15:12]Read from MH i2c: E2 0B 00 [11:15:12]MH_I2C_Read... [11:15:12]Read from MH i2c: E2 0B 00 BD 49 00 94 9F 7D DF A9 C0 6D BB 90 00 A2 [11:15:12]RAPDU: 94 9F 7D DF A9 C0 6D BB 90 00 [11:15:12]wFMCommunicate OK [11:15:12]SAM_PROTO_SignData done [11:15:12]FM_MakeSignedData done [11:15:12]CreateOFDProtocolMessage [11:15:12]wFMCommunicate request_size=4 [11:15:12]MH_SAM_APDU [11:15:12]CAPDU: 80 11 00 00 [11:15:12]Write to MH i2c: E2 08 00 BE 49 80 11 00 00 00 00 00 00 81 [11:15:12]Write i2c OK [11:15:12]MH_I2C_Read... [11:15:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:15:12]Read from MH i2c: E2 [11:15:12]MH_I2C_Read... [11:15:12]Read from MH i2c: E2 17 00 [11:15:12]MH_I2C_Read... [11:15:12]Read from MH i2c: E2 17 00 BE 49 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 CF [11:15:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [11:15:12]wFMCommunicate OK [11:15:12]CreateOFDProtocolMessage done [11:15:12]OFDSenderStorePacket 187684 [11:15:12]StoreOFDPacket docnum=187684 [11:15:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 CF 8D 0D 01 90 F5 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 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 94 00 00 00 F4 03 04 00 C2 37 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 24 DD 02 00 35 04 06 00 BD BF 7C B1 7D 09 94 9F 7D DF A9 C0 6D BB [11:15:12]CheckFolder [11:15:12]dirname=/storage/ofd_packets [11:15:12]CheckFolder done [11:15:12]ProducePacketName [11:15:12]name=ofd_packets/00187684 [11:15:12]NVStorageSaveData ofd_packets/00187684 [11:15:12]File name is /storage/ofd_packets/00187684 [11:15:12]Write 307 bytes [11:15:12]NVStorageSaveData done [11:15:12]OFDSenderStorePacket done [11:15:12]KKMCreateOFDPacket done [11:15:12]NVStorageSaveData kkm_last_timestamp [11:15:12]File name is /storage/kkm_last_timestamp [11:15:12]Write 4 bytes [11:15:12]NVStorageSaveData done [11:15:12]ExternCall_PrintAddStr [11:15:12]wPrintStart [11:15:12]Write to MH i2c: 01 00 00 BF 49 08 [11:15:12]Write i2c OK [11:15:12]MH_I2C_Read... [11:15:12]Read from MH i2c: 01 [11:15:12]MH_I2C_Read... [11:15:12]Read from MH i2c: 01 07 00 [11:15:12]MH_I2C_Read... [11:15:12]Read from MH i2c: 01 07 00 BF 49 00 00 00 00 00 FF 0F 1D [11:15:12]RasterBufferAndPrint [11:15:12]line Счет N : (1)209736 [11:15:12]line ИНН: 02508201610067 [11:15:12]line Контрольно-Кассовый Чек [11:15:12]line ПРОДАЖА [11:15:12]line ТРК (МРК, ГНК) : 11 [11:15:12]line Товар: 2710194210 [11:15:12]line D-ENERGY ДТ-К-5 [11:15:12]line 12.960 * 77.20 [11:15:12]line = 1000.51 [11:15:12]line НДС 12% НСП 1% [11:15:12]line > о реализуемом товаре [11:15:12]line ОКРУГЛЕНИЕ: -0.51 [11:15:12]line ИТОГО: 1000.00 [11:15:12]line Внесено: 1000.00 [11:15:12]line СДАЧА: 0.00 [11:15:12]line НСП 1% : 8.85 [11:15:12]line НДС 12% : 106.25 [11:15:12]line Наличными: 1000.00 [11:15:12]line Безнал.: 0.00 [11:15:12]line Место: АЗС № 86 "Партнер Нефть" [11:15:12]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [11:15:12]line СНО: Общий режим [11:15:12]line Чек 148 21.10.2024 11:15 [11:15:12]line Смена: 460 ФФД: 1.0 [11:15:12]line ЗНМ: 0300000155 [11:15:12]line РНМ: 0000000000100030 [11:15:12]line Версия ККМ: 001 [11:15:12]line ФМ: 0000000000965340 [11:15:12]line ФД: 187684 [11:15:12]line ФПД: 208630128409865 [11:15:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T111514&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187684&fm=208630128409865&tin=02508201610067®Number=0000000000100030&sum=100000 [11:15:12]written 0, free lines is 4095 [11:15:12]OFD Sender: Processing packet 187684 [packets to send 1062, broken 1061] [11:15:12]ProducePacketName [11:15:12]name=ofd_packets/00187684 [11:15:12]OFD Sender: To server: pG, [11:15:12]CommunicateWithHost lk.salyk.kg:30040 [11:15:12]ConnectInit lk.salyk.kg [11:15:12]Connected sock=9 [11:15:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 CF 8D 0D 01 90 F5 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 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 94 00 00 00 F4 03 04 00 C2 37 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 24 DD 02 00 35 04 06 00 BD BF 7C B1 7D 09 94 9F 7D DF A9 C0 6D BB [11:15:12]Write to MH i2c: 01 00 00 EA 49 33 [11:15:12]Write i2c OK [11:15:12]MH_I2C_Read... [11:15:12]Read from MH i2c: 01 [11:15:12]MH_I2C_Read... [11:15:12]Read from MH i2c: 01 07 00 [11:15:12]MH_I2C_Read... [11:15:12]Read from MH i2c: 01 07 00 EA 49 00 00 00 00 00 82 0C C8 [11:15:12]RasterBufferAndPrint [11:15:12]line [11:15:12]line [11:15:12]line [11:15:12]line [11:15:12]line [11:15:12]written 0, free lines is 3208 [11:15:12]MH_Cut [11:15:12]Write to MH i2c: D1 01 00 F1 49 01 0C [11:15:12]Write i2c OK [11:15:12]MH_I2C_Read... [11:15:12]Read from MH i2c: D1 [11:15:12]MH_I2C_Read... [11:15:12]Read from MH i2c: D1 01 00 [11:15:12]MH_I2C_Read... [11:15:12]Read from MH i2c: D1 01 00 F1 49 00 0B [11:15:12]Write to MH i2c: 01 00 00 F2 49 3B [11:15:12]Write i2c OK [11:15:12]MH_I2C_Read... [11:15:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 8D 1F 47 00 3D 33 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 24 DD 02 00 F4 03 04 00 B2 E1 15 67 B6 04 01 00 00 8B B7 61 99 A9 C3 73 92 [11:15:12]CommunicateWithHost err = 0 [11:15:12]CheckOFDResponse [11:15:12]1017 (14) - 77093643461234 [11:15:12]1041 (16) - 0000000000965340 [11:15:12]1040 (4) - 187684 [11:15:12]1012 (4) - 21.10.2024 05:08 [11:15:12]1206 (1) - 0 [11:15:12]OFD Sender: Remove packet 187684 [11:15:12]ProducePacketName [11:15:12]name=ofd_packets/00187684 [11:15:12]NVStorageDeleteData [11:15:13]OFD Sender: No OFD packet to send [11:15:13]*** Cut start [11:15:13]*** Partial cut [11:15:13]*** CUTSNS_PIN = 1 [11:15:13]*** CUTSNS_PIN = 0 [11:15:14]*** Brake cut motor [11:15:14]Read from MH i2c: 01 [11:15:14]MH_I2C_Read... [11:15:14]*** Stop cut motor [11:15:14]*** Cut end [11:15:14]Read from MH i2c: 01 07 00 [11:15:14]MH_I2C_Read... [11:15:14]Read from MH i2c: 01 07 00 F2 49 00 00 00 00 00 FF 0F 50 [11:15:14]process_action close_receipt done [11:15:14]requested_data is exist [11:15:14]produce_requested_data [11:15:14]requested_item fm.sn is exist - process it [11:15:14]wFMCommunicate request_size=4 [11:15:14]MH_SAM_APDU [11:15:14]CAPDU: 80 11 00 00 [11:15:14]Write to MH i2c: E2 08 00 F3 49 80 11 00 00 00 00 00 00 B6 [11:15:14]Write i2c OK [11:15:14]MH_I2C_Read... [11:15:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:15:14]Read from MH i2c: E2 [11:15:14]MH_I2C_Read... [11:15:14]Read from MH i2c: E2 17 00 [11:15:14]MH_I2C_Read... [11:15:14]Read from MH i2c: E2 17 00 F3 49 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 04 [11:15:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [11:15:14]wFMCommunicate OK [11:15:14]requested_item fd.num is exist - process it [11:15:14]SAM_PROTO_GetFieldsCounters [11:15:14]wFMCommunicate request_size=4 [11:15:14]MH_SAM_APDU [11:15:14]CAPDU: 80 13 00 00 [11:15:14]Write to MH i2c: E2 08 00 F4 49 80 13 00 00 00 00 00 00 B9 [11:15:14]Write i2c OK [11:15:14]MH_I2C_Read... [11:15:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:15:14]Read from MH i2c: E2 [11:15:14]MH_I2C_Read... [11:15:14]Read from MH i2c: E2 62 00 [11:15:14]MH_I2C_Read... [11:15:14]Read from MH i2c: E2 62 00 F4 49 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 24 DD 02 00 0E 04 04 00 CC 01 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 4C [11:15:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 24 DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 94 00 00 00 5E 04 04 00 94 00 00 00 57 04 04 00 95 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:15:14]wFMCommunicate OK [11:15:14]SAM_PROTO_GetFieldsCounters done [11:15:14]requested_item shift.num is exist - process it [11:15:14]requested_item shift.opened is exist - process it [11:15:14]req_shift_opened [11:15:14]FM_GetShiftState [11:15:14]SAM_PROTO_GetShiftState [11:15:14]wFMCommunicate request_size=4 [11:15:14]MH_SAM_APDU [11:15:14]CAPDU: 80 13 01 00 [11:15:14]Write to MH i2c: E2 08 00 F5 49 80 13 01 00 00 00 00 00 BB [11:15:14]Write i2c OK [11:15:14]MH_I2C_Read... [11:15:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:15:14]Read from MH i2c: E2 [11:15:14]MH_I2C_Read... [11:15:14]Read from MH i2c: E2 0E 00 [11:15:14]MH_I2C_Read... [11:15:14]Read from MH i2c: E2 0E 00 F5 49 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 1A [11:15:14]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [11:15:14]wFMCommunicate OK [11:15:14]SAM_PROTO_GetShiftState done [11:15:14]FM_GetShiftState done [11:15:14]req_shift_opened done [11:15:14]requested_item shift.open_date is exist - process it [11:15:14]req_shift_open_date [11:15:14]req_shift_open_date done [11:15:14]produce_requested_data done [11:15:14]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187684,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [11:15:14]process_action_free close_receipt [11:15:14]json_value_free [11:15:14]json_value_free done [11:15:14]process_json_proto returns [11:15:14]Send response to host [11:15:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187684,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [11:15:14]free response buf [11:15:14]execute_script done [11:15:14]execute_script returns [11:15:14]free content buf [11:15:14]Sock 10.Close socket [11:15:14]Sock 10.Thread stoped [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:14]OFD Sender: No OFD packet to send [11:17:19]OFD Sender: No OFD packet to send [11:17:24]OFD Sender: No OFD packet to send [11:17:29]OFD Sender: No OFD packet to send [11:17:34]OFD Sender: No OFD packet to send [11:17:39]OFD Sender: No OFD packet to send [11:17:44]OFD Sender: No OFD packet to send [11:17:48]accept exits with 8 [11:17:48]New connection [11:17:48]New thread 3067014500 created [11:17:48]Thread 3067157860 joined [11:17:48]Waiting for new connection... [11:17:48] Sock 8.Parse request [11:17:48]Sock 8.Check first char [11:17:48]Sock 8.First char is OK [11:17:48]request: POST /json_proto HTTP/1.0 [11:17:48]Method: POST [11:17:48]URL: /json_proto [11:17:48]Method is POST - this is cgi request [11:17:48]url: /json_proto [11:17:48]query_string will be loaded in cgi processing [11:17:48]execute_cgi json_proto POST (null) [11:17:48]execute_cgi path=json_proto method=POST [11:17:48]POST find Content-Length [11:17:48]Host: 172.17.42.131:8080 [11:17:48]Content-Length: 688 [11:17:48]Content-Type: application/json [11:17:48] [11:17:48]POST finish read [11:17:48]Found Content-Length = 688 [11:17:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209738", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 18.140, "sum" : 1400.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1400.00, "total" : 1400.00, "payments": [ { "type": 0, "sum" : 1400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:17:48]execute_script... [11:17:48]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209738", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 18.140, "sum" : 1400.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1400.00, "total" : 1400.00, "payments": [ { "type": 0, "sum" : 1400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:17:48]POST & json_proto [11:17:48]process_json_proto [11:17:48]json parsed OK: [11:17:48]protocol is kg_v1.0 [11:17:48]action value=close_receipt [11:17:48]process_action close_receipt [11:17:48]cmd_close_receipt [11:17:48]MH_GetDate [11:17:48]Write to MH i2c: F0 00 00 F6 49 2E [11:17:48]Write i2c OK [11:17:48]MH_I2C_Read... [11:17:48]Read from MH i2c: F0 [11:17:48]MH_I2C_Read... [11:17:48]Read from MH i2c: F0 09 00 [11:17:48]MH_I2C_Read... [11:17:48]Read from MH i2c: F0 09 00 F6 49 00 60 38 16 67 A0 18 CA 66 34 [11:17:48]GetLastDocTimeStamp 1729509314 [11:17:48]current date 1729509472 [11:17:48]FM_GetShiftState [11:17:48]SAM_PROTO_GetShiftState [11:17:48]wFMCommunicate request_size=4 [11:17:48]MH_SAM_APDU [11:17:48]CAPDU: 80 13 01 00 [11:17:48]Write to MH i2c: E2 08 00 F7 49 80 13 01 00 00 00 00 00 BD [11:17:48]Write i2c OK [11:17:48]MH_I2C_Read... [11:17:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:17:48]Read from MH i2c: E2 [11:17:48]MH_I2C_Read... [11:17:48]Read from MH i2c: E2 0E 00 [11:17:48]MH_I2C_Read... [11:17:48]Read from MH i2c: E2 0E 00 F7 49 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 1C [11:17:48]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [11:17:48]wFMCommunicate OK [11:17:48]SAM_PROTO_GetShiftState done [11:17:48]FM_GetShiftState done [11:17:48]opened in 1729469754 [11:17:48]opened+sec_in_day 1729556154 [11:17:48]quantity*price = 140040 [11:17:48]sum+1 = 140042 [11:17:48]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 1400.00 Внесено: 1400.00 СДАЧА: 0.00 НСП 1% : 12.39 НДС 12% : 148.72 Наличными: 1400.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 149 21.10.2024 11:17 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 187685 ФПД: 161368034571282 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T111752&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187685&fm=161368034571282&tin=02508201610067®Number=0000000000100030&sum=140000 [11:17:49]StoreToDocumentArchive [11:17:49]shift 460 fd 187685 [11:17:49]save to /storage/0460/doc_00187685 [11:17:49]save last doc name /storage/0460/doc_00187685 to /storage/kkm_last_doc_name [11:17:49]save OK [11:17:49]Clear old archive folders... [11:17:49]ProcessDocumentItem done err = 0, tmpTLVsize=257 [11:17:49]tlvbuf is 0118E020 [11:17:49]SAM_PROTO_ClearQueue [11:17:49]wFMCommunicate request_size=4 [11:17:49]MH_SAM_APDU [11:17:49]CAPDU: 80 09 00 00 [11:17:49]Write to MH i2c: E2 08 00 04 4A 80 09 00 00 00 00 00 00 C0 [11:17:49]Write i2c OK [11:17:49]MH_I2C_Read... [11:17:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:17:49]Read from MH i2c: E2 [11:17:49]MH_I2C_Read... [11:17:49]Read from MH i2c: E2 03 00 [11:17:49]MH_I2C_Read... [11:17:49]Read from MH i2c: E2 03 00 04 4A 00 90 00 C2 [11:17:49]RAPDU: 90 00 [11:17:49]wFMCommunicate OK [11:17:49]SAM_PROTO_ClearQueue done [11:17:49]KKMCreateOFDPacket [11:17:49]OFDProtocolAddRootSTLVToBuf [11:17:49]FM_MakeSignedData [11:17:49]FM_MakeSignedData [11:17:49]SAM_PROTO_SignData [11:17:49]wFMCommunicate request_size=4 [11:17:49]MH_SAM_APDU [11:17:49]CAPDU: 80 0D 01 02 [11:17:49]Write to MH i2c: E2 08 00 05 4A 80 0D 01 02 00 00 00 00 C8 [11:17:49]Write i2c OK [11:17:49]MH_I2C_Read... [11:17:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:17:50]Read from MH i2c: E2 [11:17:50]MH_I2C_Read... [11:17:50]Read from MH i2c: E2 03 00 [11:17:50]MH_I2C_Read... [11:17:50]Read from MH i2c: E2 03 00 05 4A 00 90 00 C3 [11:17:50]RAPDU: 90 00 [11:17:50]wFMCommunicate OK [11:17:50]wFMCommunicate request_size=255 [11:17:50]MH_SAM_APDU [11:17:50]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 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 DC 46 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 09 23 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 22 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 18 3A 00 00 00 00 07 04 06 00 E0 22 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 95 00 00 00 F4 03 04 00 60 38 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 25 DD 02 [11:17:50]Write to MH i2c: E2 02 01 06 4A 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 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 DC 46 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 09 23 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 22 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 18 3A 00 00 00 00 07 04 06 00 E0 22 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 95 00 00 00 F4 03 04 00 60 38 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 25 DD 02 00 00 89 [11:17:50]Write i2c OK [11:17:50]MH_I2C_Read... [11:17:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:17:50]Read from MH i2c: E2 [11:17:50]MH_I2C_Read... [11:17:50]Read from MH i2c: E2 03 00 [11:17:50]MH_I2C_Read... [11:17:50]Read from MH i2c: E2 03 00 06 4A 00 90 00 C4 [11:17:50]RAPDU: 90 00 [11:17:50]wFMCommunicate OK [11:17:50]wFMCommunicate request_size=16 [11:17:50]MH_SAM_APDU [11:17:50]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 92 C3 6C 60 F4 12 [11:17:50]Write to MH i2c: E2 13 00 07 4A 80 0D 02 02 0B 00 00 35 04 06 00 92 C3 6C 60 F4 12 00 00 47 [11:17:50]Write i2c OK [11:17:50]MH_I2C_Read... [11:17:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:17:50]Read from MH i2c: E2 [11:17:50]MH_I2C_Read... [11:17:50]Read from MH i2c: E2 03 00 [11:17:50]MH_I2C_Read... [11:17:50]Read from MH i2c: E2 03 00 07 4A 00 90 00 C5 [11:17:50]RAPDU: 90 00 [11:17:50]wFMCommunicate OK [11:17:50]wFMCommunicate request_size=4 [11:17:50]MH_SAM_APDU [11:17:50]CAPDU: 80 0D 03 02 [11:17:50]Write to MH i2c: E2 08 00 08 4A 80 0D 03 02 00 00 00 00 CD [11:17:50]Write i2c OK [11:17:50]MH_I2C_Read... [11:17:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:17:50]Read from MH i2c: E2 [11:17:50]MH_I2C_Read... [11:17:50]Read from MH i2c: E2 0B 00 [11:17:50]MH_I2C_Read... [11:17:50]Read from MH i2c: E2 0B 00 08 4A 00 31 49 FB 75 1B BB 0C 5A 90 00 F4 [11:17:50]RAPDU: 31 49 FB 75 1B BB 0C 5A 90 00 [11:17:50]wFMCommunicate OK [11:17:50]SAM_PROTO_SignData done [11:17:50]FM_MakeSignedData done [11:17:50]CreateOFDProtocolMessage [11:17:50]wFMCommunicate request_size=4 [11:17:50]MH_SAM_APDU [11:17:50]CAPDU: 80 11 00 00 [11:17:50]Write to MH i2c: E2 08 00 09 4A 80 11 00 00 00 00 00 00 CD [11:17:50]Write i2c OK [11:17:50]MH_I2C_Read... [11:17:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:17:50]Read from MH i2c: E2 [11:17:50]MH_I2C_Read... [11:17:50]Read from MH i2c: E2 17 00 [11:17:50]MH_I2C_Read... [11:17:50]Read from MH i2c: E2 17 00 09 4A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 1B [11:17:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [11:17:50]wFMCommunicate OK [11:17:50]CreateOFDProtocolMessage done [11:17:50]OFDSenderStorePacket 187685 [11:17:50]StoreOFDPacket docnum=187685 [11:17:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 E6 75 0D 01 C3 20 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 DC 46 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 09 23 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 22 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 18 3A 00 00 00 00 07 04 06 00 E0 22 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 95 00 00 00 F4 03 04 00 60 38 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 25 DD 02 00 35 04 06 00 92 C3 6C 60 F4 12 31 49 FB 75 1B BB 0C 5A [11:17:50]CheckFolder [11:17:50]dirname=/storage/ofd_packets [11:17:50]CheckFolder done [11:17:50]ProducePacketName [11:17:50]name=ofd_packets/00187685 [11:17:50]NVStorageSaveData ofd_packets/00187685 [11:17:50]File name is /storage/ofd_packets/00187685 [11:17:50]Write 307 bytes [11:17:50]NVStorageSaveData done [11:17:50]OFDSenderStorePacket done [11:17:50]KKMCreateOFDPacket done [11:17:50]NVStorageSaveData kkm_last_timestamp [11:17:50]File name is /storage/kkm_last_timestamp [11:17:50]Write 4 bytes [11:17:50]NVStorageSaveData done [11:17:50]ExternCall_PrintAddStr [11:17:50]wPrintStart [11:17:50]Write to MH i2c: 01 00 00 0A 4A 54 [11:17:50]Write i2c OK [11:17:50]MH_I2C_Read... [11:17:50]Read from MH i2c: 01 [11:17:50]MH_I2C_Read... [11:17:50]Read from MH i2c: 01 07 00 [11:17:50]MH_I2C_Read... [11:17:50]Read from MH i2c: 01 07 00 0A 4A 00 00 00 00 00 FF 0F 69 [11:17:50]RasterBufferAndPrint [11:17:50]line Счет N : (1)209738 [11:17:50]line ИНН: 02508201610067 [11:17:50]line Контрольно-Кассовый Чек [11:17:50]line ПРОДАЖА [11:17:50]line ТРК (МРК, ГНК) : 11 [11:17:50]line Товар: 2710194210 [11:17:50]line D-ENERGY ДТ-К-5 [11:17:50]line 18.140 * 77.20 [11:17:50]line = 1400.41 [11:17:50]line НДС 12% НСП 1% [11:17:50]line > о реализуемом товаре [11:17:50]line ОКРУГЛЕНИЕ: -0.41 [11:17:50]line ИТОГО: 1400.00 [11:17:50]line Внесено: 1400.00 [11:17:50]line СДАЧА: 0.00 [11:17:50]line НСП 1% : 12.39 [11:17:50]line НДС 12% : 148.72 [11:17:50]line Наличными: 1400.00 [11:17:50]line Безнал.: 0.00 [11:17:50]line Место: АЗС № 86 "Партнер Нефть" [11:17:50]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [11:17:50]line СНО: Общий режим [11:17:50]line Чек 149 21.10.2024 11:17 [11:17:50]line Смена: 460 ФФД: 1.0 [11:17:50]line ЗНМ: 0300000155 [11:17:50]line РНМ: 0000000000100030 [11:17:50]line Версия ККМ: 001 [11:17:50]line ФМ: 0000000000965340 [11:17:50]line ФД: 187685 [11:17:50]line ФПД: 161368034571282 [11:17:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T111752&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187685&fm=161368034571282&tin=02508201610067®Number=0000000000100030&sum=140000 [11:17:50]written 0, free lines is 4095 [11:17:50]OFD Sender: Processing packet 187685 [packets to send 1062, broken 1061] [11:17:50]ProducePacketName [11:17:50]name=ofd_packets/00187685 [11:17:50]OFD Sender: To server: pG, [11:17:50]CommunicateWithHost lk.salyk.kg:30040 [11:17:50]ConnectInit lk.salyk.kg [11:17:50]Connected sock=9 [11:17:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 E6 75 0D 01 C3 20 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 DC 46 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 09 23 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 22 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 18 3A 00 00 00 00 07 04 06 00 E0 22 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 95 00 00 00 F4 03 04 00 60 38 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 25 DD 02 00 35 04 06 00 92 C3 6C 60 F4 12 31 49 FB 75 1B BB 0C 5A [11:17:50]Write to MH i2c: 01 00 00 35 4A 7F [11:17:50]Write i2c OK [11:17:50]MH_I2C_Read... [11:17:50]Read from MH i2c: 01 [11:17:50]MH_I2C_Read... [11:17:50]Read from MH i2c: 01 07 00 [11:17:50]MH_I2C_Read... [11:17:50]Read from MH i2c: 01 07 00 35 4A 00 00 00 00 00 7D 0C 0F [11:17:50]RasterBufferAndPrint [11:17:50]line [11:17:50]line [11:17:50]line [11:17:50]line [11:17:50]line [11:17:50]written 0, free lines is 3200 [11:17:50]MH_Cut [11:17:50]Write to MH i2c: D1 01 00 3C 4A 01 58 [11:17:50]Write i2c OK [11:17:50]MH_I2C_Read... [11:17:50]Read from MH i2c: D1 [11:17:50]MH_I2C_Read... [11:17:50]Read from MH i2c: D1 01 00 [11:17:50]MH_I2C_Read... [11:17:50]Read from MH i2c: D1 01 00 3C 4A 00 57 [11:17:50]Write to MH i2c: 01 00 00 3D 4A 87 [11:17:50]Write i2c OK [11:17:50]MH_I2C_Read... [11:17:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 84 67 47 00 CB AB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 25 DD 02 00 F4 03 04 00 50 E2 15 67 B6 04 01 00 00 D9 3B A2 07 E8 44 CE C3 [11:17:51]CommunicateWithHost err = 0 [11:17:51]CheckOFDResponse [11:17:51]1017 (14) - 77093643461234 [11:17:51]1041 (16) - 0000000000965340 [11:17:51]1040 (4) - 187685 [11:17:51]1012 (4) - 21.10.2024 05:10 [11:17:51]1206 (1) - 0 [11:17:51]OFD Sender: Remove packet 187685 [11:17:51]ProducePacketName [11:17:51]name=ofd_packets/00187685 [11:17:51]NVStorageDeleteData [11:17:51]OFD Sender: No OFD packet to send [11:17:51]*** Cut start [11:17:51]*** Partial cut [11:17:51]*** CUTSNS_PIN = 1 [11:17:52]*** CUTSNS_PIN = 0 [11:17:52]*** Brake cut motor [11:17:52]Read from MH i2c: 01 [11:17:52]MH_I2C_Read... [11:17:52]*** Stop cut motor [11:17:52]*** Cut end [11:17:52]Read from MH i2c: 01 07 00 [11:17:52]MH_I2C_Read... [11:17:52]Read from MH i2c: 01 07 00 3D 4A 00 00 00 00 00 FF 0F 9C [11:17:52]process_action close_receipt done [11:17:52]requested_data is exist [11:17:52]produce_requested_data [11:17:52]requested_item fm.sn is exist - process it [11:17:52]wFMCommunicate request_size=4 [11:17:52]MH_SAM_APDU [11:17:52]CAPDU: 80 11 00 00 [11:17:52]Write to MH i2c: E2 08 00 3E 4A 80 11 00 00 00 00 00 00 02 [11:17:52]Write i2c OK [11:17:52]MH_I2C_Read... [11:17:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:17:52]Read from MH i2c: E2 [11:17:52]MH_I2C_Read... [11:17:52]Read from MH i2c: E2 17 00 [11:17:52]MH_I2C_Read... [11:17:52]Read from MH i2c: E2 17 00 3E 4A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 50 [11:17:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [11:17:52]wFMCommunicate OK [11:17:52]requested_item fd.num is exist - process it [11:17:52]SAM_PROTO_GetFieldsCounters [11:17:52]wFMCommunicate request_size=4 [11:17:52]MH_SAM_APDU [11:17:52]CAPDU: 80 13 00 00 [11:17:52]Write to MH i2c: E2 08 00 3F 4A 80 13 00 00 00 00 00 00 05 [11:17:52]Write i2c OK [11:17:52]MH_I2C_Read... [11:17:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:17:52]Read from MH i2c: E2 [11:17:52]MH_I2C_Read... [11:17:52]Read from MH i2c: E2 62 00 [11:17:52]MH_I2C_Read... [11:17:52]Read from MH i2c: E2 62 00 3F 4A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 25 DD 02 00 0E 04 04 00 CC 01 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 9C [11:17:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 25 DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 95 00 00 00 5E 04 04 00 95 00 00 00 57 04 04 00 96 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:17:52]wFMCommunicate OK [11:17:52]SAM_PROTO_GetFieldsCounters done [11:17:52]requested_item shift.num is exist - process it [11:17:52]requested_item shift.opened is exist - process it [11:17:52]req_shift_opened [11:17:52]FM_GetShiftState [11:17:52]SAM_PROTO_GetShiftState [11:17:52]wFMCommunicate request_size=4 [11:17:52]MH_SAM_APDU [11:17:52]CAPDU: 80 13 01 00 [11:17:52]Write to MH i2c: E2 08 00 40 4A 80 13 01 00 00 00 00 00 07 [11:17:52]Write i2c OK [11:17:52]MH_I2C_Read... [11:17:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:17:52]Read from MH i2c: E2 [11:17:52]MH_I2C_Read... [11:17:52]Read from MH i2c: E2 0E 00 [11:17:52]MH_I2C_Read... [11:17:52]Read from MH i2c: E2 0E 00 40 4A 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 66 [11:17:52]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [11:17:52]wFMCommunicate OK [11:17:52]SAM_PROTO_GetShiftState done [11:17:52]FM_GetShiftState done [11:17:52]req_shift_opened done [11:17:52]requested_item shift.open_date is exist - process it [11:17:52]req_shift_open_date [11:17:52]req_shift_open_date done [11:17:52]produce_requested_data done [11:17:52]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187685,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [11:17:52]process_action_free close_receipt [11:17:52]json_value_free [11:17:52]json_value_free done [11:17:52]process_json_proto returns [11:17:52]Send response to host [11:17:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187685,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [11:17:52]free response buf [11:17:52]execute_script done [11:17:52]execute_script returns [11:17:52]free content buf [11:17:52]Sock 8.Close socket [11:17:52]Sock 8.Thread stoped [11:17:56]OFD Sender: No OFD packet to send [11:18:01]OFD Sender: No OFD packet to send [11:18:06]OFD Sender: No OFD packet to send [11:18:11]OFD Sender: No OFD packet to send [11:18:16]OFD Sender: No OFD packet to send [11:18:21]OFD Sender: No OFD packet to send [11:18:26]OFD Sender: No OFD packet to send [11:18:31]OFD Sender: No OFD packet to send [11:18:36]OFD Sender: No OFD packet to send [11:18:41]OFD Sender: No OFD packet to send [11:18:46]OFD Sender: No OFD packet to send [11:18:51]OFD Sender: No OFD packet to send [11:18:57]OFD Sender: No OFD packet to send [11:19:02]OFD Sender: No OFD packet to send [11:19:07]OFD Sender: No OFD packet to send [11:19:12]OFD Sender: No OFD packet to send [11:19:17]OFD Sender: No OFD packet to send [11:19:22]OFD Sender: No OFD packet to send [11:19:27]OFD Sender: No OFD packet to send [11:19:32]OFD Sender: No OFD packet to send [11:19:37]OFD Sender: No OFD packet to send [11:19:42]OFD Sender: No OFD packet to send [11:19:47]OFD Sender: No OFD packet to send [11:19:52]OFD Sender: No OFD packet to send [11:19:57]OFD Sender: No OFD packet to send [11:20:02]OFD Sender: No OFD packet to send [11:20:07]OFD Sender: No OFD packet to send [11:20:10]accept exits with 10 [11:20:10]New connection [11:20:10]New thread 3067157860 created [11:20:10]Thread 3067014500 joined [11:20:10]Waiting for new connection... [11:20:10] Sock 10.Parse request [11:20:10]Sock 10.Check first char [11:20:10]Sock 10.First char is OK [11:20:10]request: POST /json_proto HTTP/1.0 [11:20:10]Method: POST [11:20:10]URL: /json_proto [11:20:10]Method is POST - this is cgi request [11:20:10]url: /json_proto [11:20:10]query_string will be loaded in cgi processing [11:20:10]execute_cgi json_proto POST (null) [11:20:10]execute_cgi path=json_proto method=POST [11:20:10]POST find Content-Length [11:20:10]Host: 172.17.42.131:8080 [11:20:10]Content-Length: 825 [11:20:10]Content-Type: application/json [11:20:10] [11:20:10]POST finish read [11:20:10]Found Content-Length = 825 [11:20:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209737", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 51.820, "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: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 4000.50 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:20:10]execute_script... [11:20:10]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209737", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 51.820, "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: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 4000.50 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:20:10]POST & json_proto [11:20:10]process_json_proto [11:20:10]json parsed OK: [11:20:10]protocol is kg_v1.0 [11:20:10]action value=close_receipt [11:20:10]process_action close_receipt [11:20:10]cmd_close_receipt [11:20:10]MH_GetDate [11:20:10]Write to MH i2c: F0 00 00 41 4A 7A [11:20:10]Write i2c OK [11:20:10]MH_I2C_Read... [11:20:10]Read from MH i2c: F0 [11:20:10]MH_I2C_Read... [11:20:10]Read from MH i2c: F0 09 00 [11:20:10]MH_I2C_Read... [11:20:10]Read from MH i2c: F0 09 00 41 4A 00 EE 38 16 67 A0 18 CA 66 0E [11:20:10]GetLastDocTimeStamp 1729509472 [11:20:10]current date 1729509614 [11:20:10]FM_GetShiftState [11:20:10]SAM_PROTO_GetShiftState [11:20:10]wFMCommunicate request_size=4 [11:20:10]MH_SAM_APDU [11:20:10]CAPDU: 80 13 01 00 [11:20:10]Write to MH i2c: E2 08 00 42 4A 80 13 01 00 00 00 00 00 09 [11:20:10]Write i2c OK [11:20:10]MH_I2C_Read... [11:20:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:20:10]Read from MH i2c: E2 [11:20:10]MH_I2C_Read... [11:20:10]Read from MH i2c: E2 0E 00 [11:20:10]MH_I2C_Read... [11:20:10]Read from MH i2c: E2 0E 00 42 4A 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 68 [11:20:10]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [11:20:10]wFMCommunicate OK [11:20:10]SAM_PROTO_GetShiftState done [11:20:10]FM_GetShiftState done [11:20:10]opened in 1729469754 [11:20:10]opened+sec_in_day 1729556154 [11:20:10]quantity*price = 400050 [11:20:10]sum+1 = 400051 [11:20:10]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 4000.50 НСП 1% : 35.40 НДС 12% : 424.83 Наличными: 0.00 Безнал.: 4000.50 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 150 21.10.2024 11:20 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000965340 ФД: 187686 ФПД: 35914487847653 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T112014&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187686&fm=35914487847653&tin=02508201610067®Number=0000000000100030&sum=400050 [11:20:11]StoreToDocumentArchive [11:20:11]shift 460 fd 187686 [11:20:11]save to /storage/0460/doc_00187686 [11:20:11]save last doc name /storage/0460/doc_00187686 to /storage/kkm_last_doc_name [11:20:11]save OK [11:20:11]Clear old archive folders... [11:20:11]ProcessDocumentItem done err = 0, tmpTLVsize=257 [11:20:11]tlvbuf is 0116FDD0 [11:20:11]SAM_PROTO_ClearQueue [11:20:11]wFMCommunicate request_size=4 [11:20:11]MH_SAM_APDU [11:20:11]CAPDU: 80 09 00 00 [11:20:11]Write to MH i2c: E2 08 00 4F 4A 80 09 00 00 00 00 00 00 0B [11:20:11]Write i2c OK [11:20:11]MH_I2C_Read... [11:20:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:20:11]Read from MH i2c: E2 [11:20:11]MH_I2C_Read... [11:20:11]Read from MH i2c: E2 03 00 [11:20:11]MH_I2C_Read... [11:20:11]Read from MH i2c: E2 03 00 4F 4A 00 90 00 0D [11:20:11]RAPDU: 90 00 [11:20:11]wFMCommunicate OK [11:20:11]SAM_PROTO_ClearQueue done [11:20:11]KKMCreateOFDPacket [11:20:11]OFDProtocolAddRootSTLVToBuf [11:20:11]FM_MakeSignedData [11:20:11]FM_MakeSignedData [11:20:11]SAM_PROTO_SignData [11:20:11]wFMCommunicate request_size=4 [11:20:11]MH_SAM_APDU [11:20:11]CAPDU: 80 0D 01 02 [11:20:11]Write to MH i2c: E2 08 00 50 4A 80 0D 01 02 00 00 00 00 13 [11:20:11]Write i2c OK [11:20:11]MH_I2C_Read... [11:20:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:20:11]Read from MH i2c: E2 [11:20:11]MH_I2C_Read... [11:20:11]Read from MH i2c: E2 03 00 [11:20:11]MH_I2C_Read... [11:20:11]Read from MH i2c: E2 03 00 50 4A 00 90 00 0E [11:20:11]RAPDU: 90 00 [11:20:11]wFMCommunicate OK [11:20:11]wFMCommunicate request_size=255 [11:20:11]MH_SAM_APDU [11:20:11]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 6C CA 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 B2 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 96 00 00 00 F4 03 04 00 EE 38 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 26 DD 02 [11:20:11]Write to MH i2c: E2 02 01 51 4A 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 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 6C CA 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 B2 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 96 00 00 00 F4 03 04 00 EE 38 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 26 DD 02 00 00 04 [11:20:11]Write i2c OK [11:20:11]MH_I2C_Read... [11:20:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:20:12]Read from MH i2c: E2 [11:20:12]MH_I2C_Read... [11:20:12]Read from MH i2c: E2 03 00 [11:20:12]MH_I2C_Read... [11:20:12]Read from MH i2c: E2 03 00 51 4A 00 90 00 0F [11:20:12]RAPDU: 90 00 [11:20:12]wFMCommunicate OK [11:20:12]wFMCommunicate request_size=16 [11:20:12]MH_SAM_APDU [11:20:12]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 20 A9 FE 4A 5A E5 [11:20:12]Write to MH i2c: E2 13 00 52 4A 80 0D 02 02 0B 00 00 35 04 06 00 20 A9 FE 4A 5A E5 00 00 BB [11:20:12]Write i2c OK [11:20:12]MH_I2C_Read... [11:20:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:20:12]Read from MH i2c: E2 [11:20:12]MH_I2C_Read... [11:20:12]Read from MH i2c: E2 03 00 [11:20:12]MH_I2C_Read... [11:20:12]Read from MH i2c: E2 03 00 52 4A 00 90 00 10 [11:20:12]RAPDU: 90 00 [11:20:12]wFMCommunicate OK [11:20:12]wFMCommunicate request_size=4 [11:20:12]MH_SAM_APDU [11:20:12]CAPDU: 80 0D 03 02 [11:20:12]Write to MH i2c: E2 08 00 53 4A 80 0D 03 02 00 00 00 00 18 [11:20:12]Write i2c OK [11:20:12]MH_I2C_Read... [11:20:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:20:12]Read from MH i2c: E2 [11:20:12]MH_I2C_Read... [11:20:12]Read from MH i2c: E2 0B 00 [11:20:12]MH_I2C_Read... [11:20:12]Read from MH i2c: E2 0B 00 53 4A 00 DC B3 D4 E9 AB 67 3A 12 90 00 C3 [11:20:12]RAPDU: DC B3 D4 E9 AB 67 3A 12 90 00 [11:20:12]wFMCommunicate OK [11:20:12]SAM_PROTO_SignData done [11:20:12]FM_MakeSignedData done [11:20:12]CreateOFDProtocolMessage [11:20:12]wFMCommunicate request_size=4 [11:20:12]MH_SAM_APDU [11:20:12]CAPDU: 80 11 00 00 [11:20:12]Write to MH i2c: E2 08 00 54 4A 80 11 00 00 00 00 00 00 18 [11:20:12]Write i2c OK [11:20:12]MH_I2C_Read... [11:20:12]OFD Sender: No OFD packet to send [11:20:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:20:12]Read from MH i2c: E2 [11:20:12]MH_I2C_Read... [11:20:12]Read from MH i2c: E2 17 00 [11:20:12]MH_I2C_Read... [11:20:12]Read from MH i2c: E2 17 00 54 4A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 66 [11:20:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [11:20:12]wFMCommunicate OK [11:20:12]CreateOFDProtocolMessage done [11:20:12]OFDSenderStorePacket 187686 [11:20:12]StoreOFDPacket docnum=187686 [11:20:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 EC 34 0D 01 97 95 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 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 6C CA 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 B2 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 96 00 00 00 F4 03 04 00 EE 38 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 26 DD 02 00 35 04 06 00 20 A9 FE 4A 5A E5 DC B3 D4 E9 AB 67 3A 12 [11:20:12]CheckFolder [11:20:12]dirname=/storage/ofd_packets [11:20:12]CheckFolder done [11:20:12]ProducePacketName [11:20:12]name=ofd_packets/00187686 [11:20:12]NVStorageSaveData ofd_packets/00187686 [11:20:12]File name is /storage/ofd_packets/00187686 [11:20:12]Write 307 bytes [11:20:12]NVStorageSaveData done [11:20:12]OFDSenderStorePacket done [11:20:12]KKMCreateOFDPacket done [11:20:12]NVStorageSaveData kkm_last_timestamp [11:20:12]File name is /storage/kkm_last_timestamp [11:20:12]Write 4 bytes [11:20:12]NVStorageSaveData done [11:20:12]ExternCall_PrintAddStr [11:20:12]wPrintStart [11:20:12]Write to MH i2c: 01 00 00 55 4A 9F [11:20:12]Write i2c OK [11:20:12]MH_I2C_Read... [11:20:12]Read from MH i2c: 01 [11:20:12]MH_I2C_Read... [11:20:12]Read from MH i2c: 01 07 00 [11:20:12]MH_I2C_Read... [11:20:12]Read from MH i2c: 01 07 00 55 4A 00 00 00 00 00 FF 0F B4 [11:20:12]RasterBufferAndPrint [11:20:12]line Счет N : (1)209737 [11:20:12]line ИНН: 02508201610067 [11:20:12]line Контрольно-Кассовый Чек [11:20:12]line ПРОДАЖА [11:20:12]line ТРК (МРК, ГНК) : 41 [11:20:12]line Товар: 2710194210 [11:20:12]line D-ENERGY ДТ-К-5 [11:20:12]line 51.820 * 77.20 [11:20:12]line = 4000.50 [11:20:12]line НДС 12% НСП 1% [11:20:12]line > о реализуемом товаре [11:20:12]line ИТОГО: 4000.50 [11:20:12]line НСП 1% : 35.40 [11:20:12]line НДС 12% : 424.83 [11:20:12]line Наличными: 0.00 [11:20:12]line Безнал.: 4000.50 [11:20:12]line Место: АЗС № 86 "Партнер Нефть" [11:20:12]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [11:20:12]line СНО: Общий режим [11:20:12]line Чек 150 21.10.2024 11:20 [11:20:12]line Смена: 460 ФФД: 1.0 [11:20:12]line ЗНМ: 0300000155 [11:20:12]line РНМ: 0000000000100030 [11:20:12]line Версия ККМ: 001 [11:20:12]line Платежная система: Бакай Банк [11:20:12]line ФМ: 0000000000965340 [11:20:12]line ФД: 187686 [11:20:12]line ФПД: 35914487847653 [11:20:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T112014&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187686&fm=35914487847653&tin=02508201610067®Number=0000000000100030&sum=400050 [11:20:12]written 0, free lines is 4095 [11:20:12]OFD Sender: Processing packet 187686 [packets to send 1062, broken 1061] [11:20:12]ProducePacketName [11:20:12]name=ofd_packets/00187686 [11:20:12]OFD Sender: To server: pG, [11:20:12]CommunicateWithHost lk.salyk.kg:30040 [11:20:12]ConnectInit lk.salyk.kg [11:20:12]Connected sock=9 [11:20:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 EC 34 0D 01 97 95 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 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 6C CA 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 B2 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 96 00 00 00 F4 03 04 00 EE 38 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 26 DD 02 00 35 04 06 00 20 A9 FE 4A 5A E5 DC B3 D4 E9 AB 67 3A 12 [11:20:12]Write to MH i2c: 01 00 00 7F 4A C9 [11:20:12]Write i2c OK [11:20:12]MH_I2C_Read... [11:20:12]Read from MH i2c: 01 [11:20:12]MH_I2C_Read... [11:20:12]Read from MH i2c: 01 07 00 [11:20:12]MH_I2C_Read... [11:20:12]Read from MH i2c: 01 07 00 7F 4A 00 00 00 00 00 97 0C 73 [11:20:12]RasterBufferAndPrint [11:20:12]line [11:20:12]line [11:20:12]line [11:20:12]line [11:20:12]line [11:20:12]written 0, free lines is 3226 [11:20:12]MH_Cut [11:20:12]Write to MH i2c: D1 01 00 86 4A 01 A2 [11:20:12]Write i2c OK [11:20:12]MH_I2C_Read... [11:20:12]Read from MH i2c: D1 [11:20:12]MH_I2C_Read... [11:20:12]Read from MH i2c: D1 01 00 [11:20:12]MH_I2C_Read... [11:20:12]Read from MH i2c: D1 01 00 86 4A 00 A1 [11:20:12]Write to MH i2c: 01 00 00 87 4A D1 [11:20:12]Write i2c OK [11:20:12]MH_I2C_Read... [11:20:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 D1 DF 47 00 B9 01 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 26 DD 02 00 F4 03 04 00 DE E2 15 67 B6 04 01 00 00 EB 8B 83 54 C8 8C 5A 26 [11:20:13]CommunicateWithHost err = 0 [11:20:13]CheckOFDResponse [11:20:13]1017 (14) - 77093643461234 [11:20:13]1041 (16) - 0000000000965340 [11:20:13]1040 (4) - 187686 [11:20:13]1012 (4) - 21.10.2024 05:13 [11:20:13]1206 (1) - 0 [11:20:13]OFD Sender: Remove packet 187686 [11:20:13]ProducePacketName [11:20:13]name=ofd_packets/00187686 [11:20:13]NVStorageDeleteData [11:20:13]OFD Sender: No OFD packet to send [11:20:13]*** Cut start [11:20:13]*** Partial cut [11:20:13]*** CUTSNS_PIN = 1 [11:20:13]*** CUTSNS_PIN = 0 [11:20:14]*** Brake cut motor [11:20:14]Read from MH i2c: 01 [11:20:14]MH_I2C_Read... [11:20:14]*** Stop cut motor [11:20:14]*** Cut end [11:20:14]Read from MH i2c: 01 07 00 [11:20:14]MH_I2C_Read... [11:20:14]Read from MH i2c: 01 07 00 87 4A 00 00 00 00 00 FF 0F E6 [11:20:14]process_action close_receipt done [11:20:14]requested_data is exist [11:20:14]produce_requested_data [11:20:14]requested_item fm.sn is exist - process it [11:20:14]wFMCommunicate request_size=4 [11:20:14]MH_SAM_APDU [11:20:14]CAPDU: 80 11 00 00 [11:20:14]Write to MH i2c: E2 08 00 88 4A 80 11 00 00 00 00 00 00 4C [11:20:14]Write i2c OK [11:20:14]MH_I2C_Read... [11:20:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:20:14]Read from MH i2c: E2 [11:20:14]MH_I2C_Read... [11:20:14]Read from MH i2c: E2 17 00 [11:20:14]MH_I2C_Read... [11:20:14]Read from MH i2c: E2 17 00 88 4A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 9A [11:20:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [11:20:14]wFMCommunicate OK [11:20:14]requested_item fd.num is exist - process it [11:20:14]SAM_PROTO_GetFieldsCounters [11:20:14]wFMCommunicate request_size=4 [11:20:14]MH_SAM_APDU [11:20:14]CAPDU: 80 13 00 00 [11:20:14]Write to MH i2c: E2 08 00 89 4A 80 13 00 00 00 00 00 00 4F [11:20:14]Write i2c OK [11:20:14]MH_I2C_Read... [11:20:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:20:14]Read from MH i2c: E2 [11:20:14]MH_I2C_Read... [11:20:14]Read from MH i2c: E2 62 00 [11:20:14]MH_I2C_Read... [11:20:14]Read from MH i2c: E2 62 00 89 4A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 26 DD 02 00 0E 04 04 00 CC 01 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 EA [11:20:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 26 DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 96 00 00 00 5E 04 04 00 96 00 00 00 57 04 04 00 97 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:20:14]wFMCommunicate OK [11:20:14]SAM_PROTO_GetFieldsCounters done [11:20:14]requested_item shift.num is exist - process it [11:20:14]requested_item shift.opened is exist - process it [11:20:14]req_shift_opened [11:20:14]FM_GetShiftState [11:20:14]SAM_PROTO_GetShiftState [11:20:14]wFMCommunicate request_size=4 [11:20:14]MH_SAM_APDU [11:20:14]CAPDU: 80 13 01 00 [11:20:14]Write to MH i2c: E2 08 00 8A 4A 80 13 01 00 00 00 00 00 51 [11:20:14]Write i2c OK [11:20:14]MH_I2C_Read... [11:20:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:20:14]Read from MH i2c: E2 [11:20:14]MH_I2C_Read... [11:20:14]Read from MH i2c: E2 0E 00 [11:20:14]MH_I2C_Read... [11:20:14]Read from MH i2c: E2 0E 00 8A 4A 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 B0 [11:20:14]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [11:20:14]wFMCommunicate OK [11:20:14]SAM_PROTO_GetShiftState done [11:20:14]FM_GetShiftState done [11:20:14]req_shift_opened done [11:20:14]requested_item shift.open_date is exist - process it [11:20:14]req_shift_open_date [11:20:14]req_shift_open_date done [11:20:14]produce_requested_data done [11:20:14]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187686,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [11:20:14]process_action_free close_receipt [11:20:14]json_value_free [11:20:14]json_value_free done [11:20:14]process_json_proto returns [11:20:14]Send response to host [11:20:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187686,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [11:20:14]free response buf [11:20:14]execute_script done [11:20:14]execute_script returns [11:20:14]free content buf [11:20:14]Sock 10.Close socket [11:20:14]Sock 10.Thread stoped [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:39]OFD Sender: No OFD packet to send [11:21:44]OFD Sender: No OFD packet to send [11:21:49]OFD Sender: No OFD packet to send [11:21:54]OFD Sender: No OFD packet to send [11:21:59]OFD Sender: No OFD packet to send [11:22:04]OFD Sender: No OFD packet to send [11:22:09]OFD Sender: No OFD packet to send [11:22:14]OFD Sender: No OFD packet to send [11:22:18]accept exits with 8 [11:22:18]New connection [11:22:18]New thread 3067014500 created [11:22:18]Thread 3067157860 joined [11:22:18]Waiting for new connection... [11:22:18] Sock 8.Parse request [11:22:18]Sock 8.Check first char [11:22:18]Sock 8.First char is OK [11:22:18]request: POST /json_proto HTTP/1.0 [11:22:18]Method: POST [11:22:18]URL: /json_proto [11:22:18]Method is POST - this is cgi request [11:22:18]url: /json_proto [11:22:18]query_string will be loaded in cgi processing [11:22:18]execute_cgi json_proto POST (null) [11:22:18]execute_cgi path=json_proto method=POST [11:22:18]POST find Content-Length [11:22:18]Host: 172.17.42.131:8080 [11:22:18]Content-Length: 677 [11:22:18]Content-Type: application/json [11:22:18] [11:22:18]POST finish read [11:22:18]Found Content-Length = 677 [11:22:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209739", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "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:22:18]execute_script... [11:22: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)209739", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "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:22:18]POST & json_proto [11:22:18]process_json_proto [11:22:18]json parsed OK: [11:22:18]protocol is kg_v1.0 [11:22:18]action value=close_receipt [11:22:18]process_action close_receipt [11:22:18]cmd_close_receipt [11:22:18]MH_GetDate [11:22:18]Write to MH i2c: F0 00 00 8B 4A C4 [11:22:18]Write i2c OK [11:22:18]MH_I2C_Read... [11:22:18]Read from MH i2c: F0 [11:22:18]MH_I2C_Read... [11:22:18]Read from MH i2c: F0 09 00 [11:22:18]MH_I2C_Read... [11:22:18]Read from MH i2c: F0 09 00 8B 4A 00 6E 39 16 67 A0 18 CA 66 D9 [11:22:18]GetLastDocTimeStamp 1729509614 [11:22:18]current date 1729509742 [11:22:18]FM_GetShiftState [11:22:18]SAM_PROTO_GetShiftState [11:22:18]wFMCommunicate request_size=4 [11:22:18]MH_SAM_APDU [11:22:18]CAPDU: 80 13 01 00 [11:22:18]Write to MH i2c: E2 08 00 8C 4A 80 13 01 00 00 00 00 00 53 [11:22:18]Write i2c OK [11:22:18]MH_I2C_Read... [11:22:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:22:18]Read from MH i2c: E2 [11:22:18]MH_I2C_Read... [11:22:18]Read from MH i2c: E2 0E 00 [11:22:18]MH_I2C_Read... [11:22:18]Read from MH i2c: E2 0E 00 8C 4A 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 B2 [11:22:18]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [11:22:18]wFMCommunicate OK [11:22:18]SAM_PROTO_GetShiftState done [11:22:18]FM_GetShiftState done [11:22:18]opened in 1729469754 [11:22:18]opened+sec_in_day 1729556154 [11:22:18]quantity*price = 50041 [11:22:18]sum+1 = 50042 [11:22: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 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 151 21.10.2024 11:22 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 187687 ФПД: 245154703985849 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T112222&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187687&fm=245154703985849&tin=02508201610067®Number=0000000000100030&sum=50000 [11:22:19]StoreToDocumentArchive [11:22:19]shift 460 fd 187687 [11:22:19]save to /storage/0460/doc_00187687 [11:22:19]save last doc name /storage/0460/doc_00187687 to /storage/kkm_last_doc_name [11:22:19]save OK [11:22:19]Clear old archive folders... [11:22:19]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:22:19]tlvbuf is 010D3FC0 [11:22:19]SAM_PROTO_ClearQueue [11:22:19]wFMCommunicate request_size=4 [11:22:19]MH_SAM_APDU [11:22:19]CAPDU: 80 09 00 00 [11:22:19]Write to MH i2c: E2 08 00 99 4A 80 09 00 00 00 00 00 00 55 [11:22:19]Write i2c OK [11:22:19]MH_I2C_Read... [11:22:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:22:19]Read from MH i2c: E2 [11:22:19]MH_I2C_Read... [11:22:19]Read from MH i2c: E2 03 00 [11:22:19]MH_I2C_Read... [11:22:19]Read from MH i2c: E2 03 00 99 4A 00 90 00 57 [11:22:19]RAPDU: 90 00 [11:22:19]wFMCommunicate OK [11:22:19]SAM_PROTO_ClearQueue done [11:22:19]KKMCreateOFDPacket [11:22:19]OFDProtocolAddRootSTLVToBuf [11:22:19]FM_MakeSignedData [11:22:19]FM_MakeSignedData [11:22:19]SAM_PROTO_SignData [11:22:19]wFMCommunicate request_size=4 [11:22:19]MH_SAM_APDU [11:22:19]CAPDU: 80 0D 01 02 [11:22:19]Write to MH i2c: E2 08 00 9A 4A 80 0D 01 02 00 00 00 00 5D [11:22:19]Write i2c OK [11:22:19]MH_I2C_Read... [11:22:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:22:19]Read from MH i2c: E2 [11:22:19]MH_I2C_Read... [11:22:19]Read from MH i2c: E2 03 00 [11:22:19]MH_I2C_Read... [11:22:19]Read from MH i2c: E2 03 00 9A 4A 00 90 00 58 [11:22:19]RAPDU: 90 00 [11:22:19]wFMCommunicate OK [11:22:19]wFMCommunicate request_size=255 [11:22:19]MH_SAM_APDU [11: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 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 97 00 00 00 F4 03 04 00 6E 39 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 27 DD 02 00 35 04 06 00 DE [11:22:19]Write to MH i2c: E2 02 01 9B 4A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 97 00 00 00 F4 03 04 00 6E 39 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 27 DD 02 00 35 04 06 00 DE 00 00 3C [11:22:19]Write i2c OK [11:22:19]MH_I2C_Read... [11:22:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:22:20]Read from MH i2c: E2 [11:22:20]MH_I2C_Read... [11:22:20]Read from MH i2c: E2 03 00 [11:22:20]MH_I2C_Read... [11:22:20]Read from MH i2c: E2 03 00 9B 4A 00 90 00 59 [11:22:20]RAPDU: 90 00 [11:22:20]wFMCommunicate OK [11:22:20]wFMCommunicate request_size=10 [11:22:20]MH_SAM_APDU [11:22:20]CAPDU: 80 0D 02 02 05 F7 87 0B CC B9 [11:22:20]Write to MH i2c: E2 0D 00 9C 4A 80 0D 02 02 05 00 F7 87 0B CC B9 00 00 78 [11:22:20]Write i2c OK [11:22:20]MH_I2C_Read... [11:22:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:22:20]Read from MH i2c: E2 [11:22:20]MH_I2C_Read... [11:22:20]Read from MH i2c: E2 03 00 [11:22:20]MH_I2C_Read... [11:22:20]Read from MH i2c: E2 03 00 9C 4A 00 90 00 5A [11:22:20]RAPDU: 90 00 [11:22:20]wFMCommunicate OK [11:22:20]wFMCommunicate request_size=4 [11:22:20]MH_SAM_APDU [11:22:20]CAPDU: 80 0D 03 02 [11:22:20]Write to MH i2c: E2 08 00 9D 4A 80 0D 03 02 00 00 00 00 62 [11:22:20]Write i2c OK [11:22:20]MH_I2C_Read... [11:22:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:22:20]Read from MH i2c: E2 [11:22:20]MH_I2C_Read... [11:22:20]Read from MH i2c: E2 0B 00 [11:22:20]MH_I2C_Read... [11:22:20]Read from MH i2c: E2 0B 00 9D 4A 00 7B D7 4F 0B 6D 8F 83 E2 90 00 70 [11:22:20]RAPDU: 7B D7 4F 0B 6D 8F 83 E2 90 00 [11:22:20]wFMCommunicate OK [11:22:20]SAM_PROTO_SignData done [11:22:20]FM_MakeSignedData done [11:22:20]CreateOFDProtocolMessage [11:22:20]wFMCommunicate request_size=4 [11:22:20]MH_SAM_APDU [11:22:20]CAPDU: 80 11 00 00 [11:22:20]Write to MH i2c: E2 08 00 9E 4A 80 11 00 00 00 00 00 00 62 [11:22:20]Write i2c OK [11:22:20]MH_I2C_Read... [11:22:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:22:20]Read from MH i2c: E2 [11:22:20]MH_I2C_Read... [11:22:20]Read from MH i2c: E2 17 00 [11:22:20]MH_I2C_Read... [11:22:20]Read from MH i2c: E2 17 00 9E 4A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 B0 [11:22:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [11:22:20]wFMCommunicate OK [11:22:20]CreateOFDProtocolMessage done [11:22:20]OFDSenderStorePacket 187687 [11:22:20]StoreOFDPacket docnum=187687 [11:22:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 26 BE 07 01 BA 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 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 97 00 00 00 F4 03 04 00 6E 39 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 27 DD 02 00 35 04 06 00 DE F7 87 0B CC B9 7B D7 4F 0B 6D 8F 83 E2 [11:22:20]CheckFolder [11:22:20]dirname=/storage/ofd_packets [11:22:20]CheckFolder done [11:22:20]ProducePacketName [11:22:20]name=ofd_packets/00187687 [11:22:20]NVStorageSaveData ofd_packets/00187687 [11:22:20]File name is /storage/ofd_packets/00187687 [11:22:20]Write 301 bytes [11:22:20]NVStorageSaveData done [11:22:20]OFDSenderStorePacket done [11:22:20]KKMCreateOFDPacket done [11:22:20]NVStorageSaveData kkm_last_timestamp [11:22:20]File name is /storage/kkm_last_timestamp [11:22:20]Write 4 bytes [11:22:20]NVStorageSaveData done [11:22:20]ExternCall_PrintAddStr [11:22:20]wPrintStart [11:22:20]Write to MH i2c: 01 00 00 9F 4A E9 [11:22:20]Write i2c OK [11:22:20]MH_I2C_Read... [11:22:20]Read from MH i2c: 01 [11:22:20]MH_I2C_Read... [11:22:20]Read from MH i2c: 01 07 00 [11:22:20]MH_I2C_Read... [11:22:20]Read from MH i2c: 01 07 00 9F 4A 00 00 00 00 00 FF 0F FE [11:22:20]RasterBufferAndPrint [11:22:20]line Счет N : (1)209739 [11:22:20]line ИНН: 02508201610067 [11:22:20]line Контрольно-Кассовый Чек [11:22:20]line ПРОДАЖА [11:22:20]line ТРК (МРК, ГНК) : 12 [11:22:20]line Товар: 2710124130 [11:22:20]line Аи-92-К-3 [11:22:20]line 7.480 * 66.90 [11:22:20]line = 500.41 [11:22:20]line НДС 12% НСП 1% [11:22:20]line > о реализуемом товаре [11:22:20]line ОКРУГЛЕНИЕ: -0.41 [11:22:20]line ИТОГО: 500.00 [11:22:20]line Внесено: 500.00 [11:22:20]line СДАЧА: 0.00 [11:22:20]line НСП 1% : 4.43 [11:22:20]line НДС 12% : 53.14 [11:22:20]line Наличными: 500.00 [11:22:20]line Безнал.: 0.00 [11:22:20]line Место: АЗС № 86 "Партнер Нефть" [11:22:20]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [11:22:20]line СНО: Общий режим [11:22:20]line Чек 151 21.10.2024 11:22 [11:22:20]line Смена: 460 ФФД: 1.0 [11:22:20]line ЗНМ: 0300000155 [11:22:20]line РНМ: 0000000000100030 [11:22:20]line Версия ККМ: 001 [11:22:20]line ФМ: 0000000000965340 [11:22:20]line ФД: 187687 [11:22:20]line ФПД: 245154703985849 [11:22:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T112222&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187687&fm=245154703985849&tin=02508201610067®Number=0000000000100030&sum=50000 [11:22:20]written 0, free lines is 4095 [11:22:20]OFD Sender: Processing packet 187687 [packets to send 1062, broken 1061] [11:22:20]ProducePacketName [11:22:20]name=ofd_packets/00187687 [11:22:20]OFD Sender: To server: pG, [11:22:20]CommunicateWithHost lk.salyk.kg:30040 [11:22:20]ConnectInit lk.salyk.kg [11:22:20]Write to MH i2c: 01 00 00 CA 4A 14 [11:22:20]Write i2c OK [11:22:20]MH_I2C_Read... [11:22:20]Read from MH i2c: 01 [11:22:20]MH_I2C_Read... [11:22:20]Read from MH i2c: 01 07 00 [11:22:20]MH_I2C_Read... [11:22:20]Read from MH i2c: 01 07 00 CA 4A 00 00 00 00 00 7D 0C A4 [11:22:20]RasterBufferAndPrint [11:22:20]line [11:22:20]line [11:22:20]line [11:22:20]line [11:22:20]line [11:22:20]written 0, free lines is 3200 [11:22:20]MH_Cut [11:22:20]Write to MH i2c: D1 01 00 D1 4A 01 ED [11:22:20]Write i2c OK [11:22:20]MH_I2C_Read... [11:22:20]Read from MH i2c: D1 [11:22:20]MH_I2C_Read... [11:22:20]Read from MH i2c: D1 01 00 [11:22:20]MH_I2C_Read... [11:22:20]Read from MH i2c: D1 01 00 D1 4A 00 EC [11:22:20]Write to MH i2c: 01 00 00 D2 4A 1C [11:22:20]Write i2c OK [11:22:20]MH_I2C_Read... [11:22:20]Connected sock=9 [11:22:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 26 BE 07 01 BA 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 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 97 00 00 00 F4 03 04 00 6E 39 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 27 DD 02 00 35 04 06 00 DE F7 87 0B CC B9 7B D7 4F 0B 6D 8F 83 E2 [11:22:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 D6 B7 47 00 7B 89 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 27 DD 02 00 F4 03 04 00 5E E3 15 67 B6 04 01 00 00 CB 52 D4 D5 AB CE 17 56 [11:22:21]CommunicateWithHost err = 0 [11:22:21]CheckOFDResponse [11:22:21]1017 (14) - 77093643461234 [11:22:21]1041 (16) - 0000000000965340 [11:22:21]1040 (4) - 187687 [11:22:21]1012 (4) - 21.10.2024 05:15 [11:22:21]1206 (1) - 0 [11:22:21]OFD Sender: Remove packet 187687 [11:22:21]ProducePacketName [11:22:21]name=ofd_packets/00187687 [11:22:21]NVStorageDeleteData [11:22:21]*** Cut start [11:22:21]*** Partial cut [11:22:21]*** CUTSNS_PIN = 1 [11:22:21]OFD Sender: No OFD packet to send [11:22:21]*** CUTSNS_PIN = 0 [11:22:22]*** Brake cut motor [11:22:22]Read from MH i2c: 01 [11:22:22]MH_I2C_Read... [11:22:22]*** Stop cut motor [11:22:22]*** Cut end [11:22:22]Read from MH i2c: 01 07 00 [11:22:22]MH_I2C_Read... [11:22:22]Read from MH i2c: 01 07 00 D2 4A 00 00 00 00 00 FF 0F 31 [11:22:22]process_action close_receipt done [11:22:22]requested_data is exist [11:22:22]produce_requested_data [11:22:22]requested_item fm.sn is exist - process it [11:22:22]wFMCommunicate request_size=4 [11:22:22]MH_SAM_APDU [11:22:22]CAPDU: 80 11 00 00 [11:22:22]Write to MH i2c: E2 08 00 D3 4A 80 11 00 00 00 00 00 00 97 [11:22:22]Write i2c OK [11:22:22]MH_I2C_Read... [11:22:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:22:22]Read from MH i2c: E2 [11:22:22]MH_I2C_Read... [11:22:22]Read from MH i2c: E2 17 00 [11:22:22]MH_I2C_Read... [11:22:22]Read from MH i2c: E2 17 00 D3 4A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 E5 [11:22:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [11:22:22]wFMCommunicate OK [11:22:22]requested_item fd.num is exist - process it [11:22:22]SAM_PROTO_GetFieldsCounters [11:22:22]wFMCommunicate request_size=4 [11:22:22]MH_SAM_APDU [11:22:22]CAPDU: 80 13 00 00 [11:22:22]Write to MH i2c: E2 08 00 D4 4A 80 13 00 00 00 00 00 00 9A [11:22:22]Write i2c OK [11:22:22]MH_I2C_Read... [11:22:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:22:22]Read from MH i2c: E2 [11:22:22]MH_I2C_Read... [11:22:22]Read from MH i2c: E2 62 00 [11:22:22]MH_I2C_Read... [11:22:22]Read from MH i2c: E2 62 00 D4 4A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 27 DD 02 00 0E 04 04 00 CC 01 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 39 [11:22:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 27 DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 97 00 00 00 5E 04 04 00 97 00 00 00 57 04 04 00 98 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:22:22]wFMCommunicate OK [11:22:22]SAM_PROTO_GetFieldsCounters done [11:22:22]requested_item shift.num is exist - process it [11:22:22]requested_item shift.opened is exist - process it [11:22:22]req_shift_opened [11:22:22]FM_GetShiftState [11:22:22]SAM_PROTO_GetShiftState [11:22:22]wFMCommunicate request_size=4 [11:22:22]MH_SAM_APDU [11:22:22]CAPDU: 80 13 01 00 [11:22:22]Write to MH i2c: E2 08 00 D5 4A 80 13 01 00 00 00 00 00 9C [11:22:22]Write i2c OK [11:22:22]MH_I2C_Read... [11:22:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:22:22]Read from MH i2c: E2 [11:22:22]MH_I2C_Read... [11:22:22]Read from MH i2c: E2 0E 00 [11:22:22]MH_I2C_Read... [11:22:22]Read from MH i2c: E2 0E 00 D5 4A 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 FB [11:22:22]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [11:22:22]wFMCommunicate OK [11:22:22]SAM_PROTO_GetShiftState done [11:22:22]FM_GetShiftState done [11:22:22]req_shift_opened done [11:22:22]requested_item shift.open_date is exist - process it [11:22:22]req_shift_open_date [11:22:22]req_shift_open_date done [11:22:22]produce_requested_data done [11:22:22]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187687,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [11:22:22]process_action_free close_receipt [11:22:22]json_value_free [11:22:22]json_value_free done [11:22:22]process_json_proto returns [11:22:22]Send response to host [11:22:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187687,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [11:22:22]free response buf [11:22:22]execute_script done [11:22:22]execute_script returns [11:22:22]free content buf [11:22:22]Sock 8.Close socket [11:22:22]Sock 8.Thread stoped [11:22:26]OFD Sender: No OFD packet to send [11:22:31]OFD Sender: No OFD packet to send [11:22:36]OFD Sender: No OFD packet to send [11:22:41]OFD Sender: No OFD packet to send [11:22:46]OFD Sender: No OFD packet to send [11:22:51]OFD Sender: No OFD packet to send [11:22:56]OFD Sender: No OFD packet to send [11:23:01]OFD Sender: No OFD packet to send [11:23:06]OFD Sender: No OFD packet to send [11:23:12]OFD Sender: No OFD packet to send [11:23:17]OFD Sender: No OFD packet to send [11:23:22]OFD Sender: No OFD packet to send [11:23:27]OFD Sender: No OFD packet to send [11:23:32]OFD Sender: No OFD packet to send [11:23:33]accept exits with 10 [11:23:33]New connection [11:23:33]New thread 3067157860 created [11:23:33]Thread 3067014500 joined [11:23:33]Waiting for new connection... [11:23:33] Sock 10.Parse request [11:23:33]Sock 10.Check first char [11:23:33]Sock 10.First char is OK [11:23:33]request: POST /json_proto HTTP/1.0 [11:23:33]Method: POST [11:23:33]URL: /json_proto [11:23:33]Method is POST - this is cgi request [11:23:33]url: /json_proto [11:23:33]query_string will be loaded in cgi processing [11:23:33]execute_cgi json_proto POST (null) [11:23:33]execute_cgi path=json_proto method=POST [11:23:33]POST find Content-Length [11:23:33]Host: 172.17.42.131:8080 [11:23:33]Content-Length: 983 [11:23:33]Content-Type: application/json [11:23:33] [11:23:33]POST finish read [11:23:33]Found Content-Length = 983 [11:23:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209740", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 65.90, "quantity" : 30.350, "sum" : 2000.07, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0410\u0418-92\u000A\u043D\u043E\u043C\u0435\u0440 86\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 30.35 \u0441\u043E\u043C", "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:23:33]execute_script... [11:23: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)209740", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 65.90, "quantity" : 30.350, "sum" : 2000.07, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0410\u0418-92\u000A\u043D\u043E\u043C\u0435\u0440 86\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 30.35 \u0441\u043E\u043C", "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:23:33]POST & json_proto [11:23:33]process_json_proto [11:23:33]json parsed OK: [11:23:33]protocol is kg_v1.0 [11:23:33]action value=close_receipt [11:23:33]process_action close_receipt [11:23:33]cmd_close_receipt [11:23:33]MH_GetDate [11:23:33]Write to MH i2c: F0 00 00 D6 4A 0F [11:23:33]Write i2c OK [11:23:33]MH_I2C_Read... [11:23:33]Read from MH i2c: F0 [11:23:33]MH_I2C_Read... [11:23:33]Read from MH i2c: F0 09 00 [11:23:33]MH_I2C_Read... [11:23:33]Read from MH i2c: F0 09 00 D6 4A 00 B9 39 16 67 A0 18 CA 66 6F [11:23:33]GetLastDocTimeStamp 1729509742 [11:23:33]current date 1729509817 [11:23:33]FM_GetShiftState [11:23:33]SAM_PROTO_GetShiftState [11:23:33]wFMCommunicate request_size=4 [11:23:33]MH_SAM_APDU [11:23:33]CAPDU: 80 13 01 00 [11:23:33]Write to MH i2c: E2 08 00 D7 4A 80 13 01 00 00 00 00 00 9E [11:23:33]Write i2c OK [11:23:33]MH_I2C_Read... [11:23:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:23:33]Read from MH i2c: E2 [11:23:33]MH_I2C_Read... [11:23:33]Read from MH i2c: E2 0E 00 [11:23:33]MH_I2C_Read... [11:23:33]Read from MH i2c: E2 0E 00 D7 4A 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 FD [11:23:33]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [11:23:33]wFMCommunicate OK [11:23:33]SAM_PROTO_GetShiftState done [11:23:33]FM_GetShiftState done [11:23:33]opened in 1729469754 [11:23:33]opened+sec_in_day 1729556154 [11:23:33]quantity*price = 200006 [11:23:33]sum+1 = 200008 [11:23:33]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.07 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.40 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 152 21.10.2024 11:23 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Дисконтная программа АИ-92 номер 86 сэкономлено 30.35 сом ФМ: 0000000000965340 ФД: 187688 ФПД: 209286230281046 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T112337&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187688&fm=209286230281046&tin=02508201610067®Number=0000000000100030&sum=200000 [11:23:35]StoreToDocumentArchive [11:23:35]shift 460 fd 187688 [11:23:35]save to /storage/0460/doc_00187688 [11:23:35]save last doc name /storage/0460/doc_00187688 to /storage/kkm_last_doc_name [11:23:35]save OK [11:23:35]Clear old archive folders... [11:23:35]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:23:35]tlvbuf is 010D44B0 [11:23:35]SAM_PROTO_ClearQueue [11:23:35]wFMCommunicate request_size=4 [11:23:35]MH_SAM_APDU [11:23:35]CAPDU: 80 09 00 00 [11:23:35]Write to MH i2c: E2 08 00 E4 4A 80 09 00 00 00 00 00 00 A0 [11:23:35]Write i2c OK [11:23:35]MH_I2C_Read... [11:23:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:23:35]Read from MH i2c: E2 [11:23:35]MH_I2C_Read... [11:23:35]Read from MH i2c: E2 03 00 [11:23:35]MH_I2C_Read... [11:23:35]Read from MH i2c: E2 03 00 E4 4A 00 90 00 A2 [11:23:35]RAPDU: 90 00 [11:23:35]wFMCommunicate OK [11:23:35]SAM_PROTO_ClearQueue done [11:23:35]KKMCreateOFDPacket [11:23:35]OFDProtocolAddRootSTLVToBuf [11:23:35]FM_MakeSignedData [11:23:35]FM_MakeSignedData [11:23:35]SAM_PROTO_SignData [11:23:35]wFMCommunicate request_size=4 [11:23:35]MH_SAM_APDU [11:23:35]CAPDU: 80 0D 01 02 [11:23:35]Write to MH i2c: E2 08 00 E5 4A 80 0D 01 02 00 00 00 00 A8 [11:23:35]Write i2c OK [11:23:35]MH_I2C_Read... [11:23:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:23:35]Read from MH i2c: E2 [11:23:35]MH_I2C_Read... [11:23:35]Read from MH i2c: E2 03 00 [11:23:35]MH_I2C_Read... [11:23:35]Read from MH i2c: E2 03 00 E5 4A 00 90 00 A3 [11:23:35]RAPDU: 90 00 [11:23:35]wFMCommunicate OK [11:23:35]wFMCommunicate request_size=255 [11:23:35]MH_SAM_APDU [11:23: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 33 FF 03 08 00 03 8E 76 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 47 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 F8 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 98 00 00 00 F4 03 04 00 B9 39 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 28 DD 02 00 35 04 06 00 BE [11:23:35]Write to MH i2c: E2 02 01 E6 4A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 8E 76 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 47 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 F8 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 98 00 00 00 F4 03 04 00 B9 39 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 28 DD 02 00 35 04 06 00 BE 00 00 3B [11:23:35]Write i2c OK [11:23:35]MH_I2C_Read... [11:23:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:23:35]Read from MH i2c: E2 [11:23:35]MH_I2C_Read... [11:23:35]Read from MH i2c: E2 03 00 [11:23:35]MH_I2C_Read... [11:23:35]Read from MH i2c: E2 03 00 E6 4A 00 90 00 A4 [11:23:35]RAPDU: 90 00 [11:23:35]wFMCommunicate OK [11:23:35]wFMCommunicate request_size=10 [11:23:35]MH_SAM_APDU [11:23:35]CAPDU: 80 0D 02 02 05 58 3F 69 8B 56 [11:23:35]Write to MH i2c: E2 0D 00 E7 4A 80 0D 02 02 05 00 58 3F 69 8B 56 00 00 96 [11:23:35]Write i2c OK [11:23:35]MH_I2C_Read... [11:23:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:23:35]Read from MH i2c: E2 [11:23:35]MH_I2C_Read... [11:23:35]Read from MH i2c: E2 03 00 [11:23:35]MH_I2C_Read... [11:23:35]Read from MH i2c: E2 03 00 E7 4A 00 90 00 A5 [11:23:35]RAPDU: 90 00 [11:23:35]wFMCommunicate OK [11:23:35]wFMCommunicate request_size=4 [11:23:35]MH_SAM_APDU [11:23:35]CAPDU: 80 0D 03 02 [11:23:35]Write to MH i2c: E2 08 00 E8 4A 80 0D 03 02 00 00 00 00 AD [11:23:35]Write i2c OK [11:23:35]MH_I2C_Read... [11:23:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:23:35]Read from MH i2c: E2 [11:23:35]MH_I2C_Read... [11:23:35]Read from MH i2c: E2 0B 00 [11:23:35]MH_I2C_Read... [11:23:35]Read from MH i2c: E2 0B 00 E8 4A 00 9B 0A 28 0D 51 FF EF 0E 90 00 D5 [11:23:35]RAPDU: 9B 0A 28 0D 51 FF EF 0E 90 00 [11:23:35]wFMCommunicate OK [11:23:35]SAM_PROTO_SignData done [11:23:35]FM_MakeSignedData done [11:23:35]CreateOFDProtocolMessage [11:23:35]wFMCommunicate request_size=4 [11:23:35]MH_SAM_APDU [11:23:35]CAPDU: 80 11 00 00 [11:23:35]Write to MH i2c: E2 08 00 E9 4A 80 11 00 00 00 00 00 00 AD [11:23:35]Write i2c OK [11:23:35]MH_I2C_Read... [11:23:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:23:35]Read from MH i2c: E2 [11:23:35]MH_I2C_Read... [11:23:35]Read from MH i2c: E2 17 00 [11:23:35]MH_I2C_Read... [11:23:35]Read from MH i2c: E2 17 00 E9 4A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 FB [11:23:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [11:23:35]wFMCommunicate OK [11:23:35]CreateOFDProtocolMessage done [11:23:35]OFDSenderStorePacket 187688 [11:23:35]StoreOFDPacket docnum=187688 [11:23:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 00 CB 07 01 85 40 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 8E 76 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 47 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 F8 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 98 00 00 00 F4 03 04 00 B9 39 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 28 DD 02 00 35 04 06 00 BE 58 3F 69 8B 56 9B 0A 28 0D 51 FF EF 0E [11:23:35]CheckFolder [11:23:35]dirname=/storage/ofd_packets [11:23:35]CheckFolder done [11:23:35]ProducePacketName [11:23:35]name=ofd_packets/00187688 [11:23:35]NVStorageSaveData ofd_packets/00187688 [11:23:35]File name is /storage/ofd_packets/00187688 [11:23:35]Write 301 bytes [11:23:35]NVStorageSaveData done [11:23:35]OFDSenderStorePacket done [11:23:35]KKMCreateOFDPacket done [11:23:35]NVStorageSaveData kkm_last_timestamp [11:23:35]File name is /storage/kkm_last_timestamp [11:23:35]Write 4 bytes [11:23:35]NVStorageSaveData done [11:23:35]ExternCall_PrintAddStr [11:23:35]wPrintStart [11:23:35]Write to MH i2c: 01 00 00 EA 4A 34 [11:23:35]Write i2c OK [11:23:35]MH_I2C_Read... [11:23:35]Read from MH i2c: 01 [11:23:35]MH_I2C_Read... [11:23:35]Read from MH i2c: 01 07 00 [11:23:35]MH_I2C_Read... [11:23:35]Read from MH i2c: 01 07 00 EA 4A 00 00 00 00 00 FF 0F 49 [11:23:35]RasterBufferAndPrint [11:23:35]line Счет N : (1)209740 [11:23:35]line ИНН: 02508201610067 [11:23:35]line Контрольно-Кассовый Чек [11:23:35]line ПРОДАЖА [11:23:35]line ТРК (МРК, ГНК) : 32 [11:23:35]line Товар: 2710124130 [11:23:35]line Аи-92-К-3 [11:23:35]line 30.350 * 65.90 [11:23:35]line = 2000.07 [11:23:35]line НДС 12% НСП 1% [11:23:35]line > о реализуемом товаре [11:23:35]line ОКРУГЛЕНИЕ: -0.07 [11:23:35]line ИТОГО: 2000.00 [11:23:35]line Внесено: 2000.00 [11:23:35]line СДАЧА: 0.00 [11:23:35]line НСП 1% : 17.70 [11:23:35]line НДС 12% : 212.40 [11:23:35]line Наличными: 2000.00 [11:23:35]line Безнал.: 0.00 [11:23:35]line Место: АЗС № 86 "Партнер Нефть" [11:23:35]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [11:23:35]line СНО: Общий режим [11:23:35]line Чек 152 21.10.2024 11:23 [11:23:35]line Смена: 460 ФФД: 1.0 [11:23:35]line ЗНМ: 0300000155 [11:23:35]line РНМ: 0000000000100030 [11:23:35]line Версия ККМ: 001 [11:23:35]line [11:23:35]line Дисконтная программа [11:23:35]line АИ-92 [11:23:35]line номер 86 [11:23:35]line сэкономлено 30.35 сом [11:23:35]line ФМ: 0000000000965340 [11:23:35]line ФД: 187688 [11:23:35]line ФПД: 209286230281046 [11:23:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T112337&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187688&fm=209286230281046&tin=02508201610067®Number=0000000000100030&sum=200000 [11:23:35]written 0, free lines is 4095 [11:23:35]OFD Sender: Processing packet 187688 [packets to send 1062, broken 1061] [11:23:35]ProducePacketName [11:23:35]name=ofd_packets/00187688 [11:23:35]OFD Sender: To server: pG, [11:23:35]CommunicateWithHost lk.salyk.kg:30040 [11:23:35]ConnectInit lk.salyk.kg [11:23:36]Connected sock=9 [11:23:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 00 CB 07 01 85 40 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 8E 76 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 47 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 F8 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 98 00 00 00 F4 03 04 00 B9 39 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 28 DD 02 00 35 04 06 00 BE 58 3F 69 8B 56 9B 0A 28 0D 51 FF EF 0E [11:23:36]Write to MH i2c: 01 00 00 1A 4B 65 [11:23:36]Write i2c OK [11:23:36]MH_I2C_Read... [11:23:36]Read from MH i2c: 01 [11:23:36]MH_I2C_Read... [11:23:36]Read from MH i2c: 01 07 00 [11:23:36]MH_I2C_Read... [11:23:36]Read from MH i2c: 01 07 00 1A 4B 00 00 00 00 00 23 0C 9B [11:23:36]RasterBufferAndPrint [11:23:36]line [11:23:36]line [11:23:36]line [11:23:36]line [11:23:36]line [11:23:36]written 0, free lines is 3112 [11:23:36]MH_Cut [11:23:36]Write to MH i2c: D1 01 00 21 4B 01 3E [11:23:36]Write i2c OK [11:23:36]MH_I2C_Read... [11:23:36]Read from MH i2c: D1 [11:23:36]MH_I2C_Read... [11:23:36]Read from MH i2c: D1 01 00 [11:23:36]MH_I2C_Read... [11:23:36]Read from MH i2c: D1 01 00 21 4B 00 3D [11:23:36]Write to MH i2c: 01 00 00 22 4B 6D [11:23:36]Write i2c OK [11:23:36]MH_I2C_Read... [11:23:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 3F DC 47 00 EA 10 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 28 DD 02 00 F4 03 04 00 A9 E3 15 67 B6 04 01 00 00 6B CF 37 68 24 40 B7 8A [11:23:36]CommunicateWithHost err = 0 [11:23:36]CheckOFDResponse [11:23:36]1017 (14) - 77093643461234 [11:23:36]1041 (16) - 0000000000965340 [11:23:36]1040 (4) - 187688 [11:23:36]1012 (4) - 21.10.2024 05:16 [11:23:36]1206 (1) - 0 [11:23:36]OFD Sender: Remove packet 187688 [11:23:36]ProducePacketName [11:23:36]name=ofd_packets/00187688 [11:23:36]NVStorageDeleteData [11:23:36]OFD Sender: No OFD packet to send [11:23:37]*** Cut start [11:23:37]*** Partial cut [11:23:37]*** CUTSNS_PIN = 1 [11:23:37]*** CUTSNS_PIN = 0 [11:23:37]*** Brake cut motor [11:23:37]Read from MH i2c: 01 [11:23:37]MH_I2C_Read... [11:23:37]*** Stop cut motor [11:23:37]*** Cut end [11:23:37]Read from MH i2c: 01 07 00 [11:23:37]MH_I2C_Read... [11:23:37]Read from MH i2c: 01 07 00 22 4B 00 00 00 00 00 FF 0F 82 [11:23:37]process_action close_receipt done [11:23:37]requested_data is exist [11:23:37]produce_requested_data [11:23:37]requested_item fm.sn is exist - process it [11:23:37]wFMCommunicate request_size=4 [11:23:37]MH_SAM_APDU [11:23:37]CAPDU: 80 11 00 00 [11:23:37]Write to MH i2c: E2 08 00 23 4B 80 11 00 00 00 00 00 00 E8 [11:23:37]Write i2c OK [11:23:37]MH_I2C_Read... [11:23:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:23:38]Read from MH i2c: E2 [11:23:38]MH_I2C_Read... [11:23:38]Read from MH i2c: E2 17 00 [11:23:38]MH_I2C_Read... [11:23:38]Read from MH i2c: E2 17 00 23 4B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 36 [11:23:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [11:23:38]wFMCommunicate OK [11:23:38]requested_item fd.num is exist - process it [11:23:38]SAM_PROTO_GetFieldsCounters [11:23:38]wFMCommunicate request_size=4 [11:23:38]MH_SAM_APDU [11:23:38]CAPDU: 80 13 00 00 [11:23:38]Write to MH i2c: E2 08 00 24 4B 80 13 00 00 00 00 00 00 EB [11:23:38]Write i2c OK [11:23:38]MH_I2C_Read... [11:23:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:23:38]Read from MH i2c: E2 [11:23:38]MH_I2C_Read... [11:23:38]Read from MH i2c: E2 62 00 [11:23:38]MH_I2C_Read... [11:23:38]Read from MH i2c: E2 62 00 24 4B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 28 DD 02 00 0E 04 04 00 CC 01 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 8E [11:23:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 28 DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 98 00 00 00 5E 04 04 00 98 00 00 00 57 04 04 00 99 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:23:38]wFMCommunicate OK [11:23:38]SAM_PROTO_GetFieldsCounters done [11:23:38]requested_item shift.num is exist - process it [11:23:38]requested_item shift.opened is exist - process it [11:23:38]req_shift_opened [11:23:38]FM_GetShiftState [11:23:38]SAM_PROTO_GetShiftState [11:23:38]wFMCommunicate request_size=4 [11:23:38]MH_SAM_APDU [11:23:38]CAPDU: 80 13 01 00 [11:23:38]Write to MH i2c: E2 08 00 25 4B 80 13 01 00 00 00 00 00 ED [11:23:38]Write i2c OK [11:23:38]MH_I2C_Read... [11:23:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:23:38]Read from MH i2c: E2 [11:23:38]MH_I2C_Read... [11:23:38]Read from MH i2c: E2 0E 00 [11:23:38]MH_I2C_Read... [11:23:38]Read from MH i2c: E2 0E 00 25 4B 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 4C [11:23:38]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [11:23:38]wFMCommunicate OK [11:23:38]SAM_PROTO_GetShiftState done [11:23:38]FM_GetShiftState done [11:23:38]req_shift_opened done [11:23:38]requested_item shift.open_date is exist - process it [11:23:38]req_shift_open_date [11:23:38]req_shift_open_date done [11:23:38]produce_requested_data done [11:23:38]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187688,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [11:23:38]process_action_free close_receipt [11:23:38]json_value_free [11:23:38]json_value_free done [11:23:38]process_json_proto returns [11:23:38]Send response to host [11:23:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187688,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [11:23:38]free response buf [11:23:38]execute_script done [11:23:38]execute_script returns [11:23:38]free content buf [11:23:38]Sock 10.Close socket [11:23:38]Sock 10.Thread stoped [11:23:41]OFD Sender: No OFD packet to send [11:23:45]accept exits with 8 [11:23:45]New connection [11:23:45]New thread 3067014500 created [11:23:45]Thread 3067157860 joined [11:23:45]Waiting for new connection... [11:23:45] Sock 8.Parse request [11:23:45]Sock 8.Check first char [11:23:45]Sock 8.First char is OK [11:23:45]request: POST /json_proto HTTP/1.0 [11:23:45]Method: POST [11:23:45]URL: /json_proto [11:23:45]Method is POST - this is cgi request [11:23:45]url: /json_proto [11:23:45]query_string will be loaded in cgi processing [11:23:45]execute_cgi json_proto POST (null) [11:23:45]execute_cgi path=json_proto method=POST [11:23:45]POST find Content-Length [11:23:45]Host: 172.17.42.131:8080 [11:23:45]Content-Length: 678 [11:23:45]Content-Type: application/json [11:23:45] [11:23:45]POST finish read [11:23:45]Found Content-Length = 678 [11:23:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209741", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 10.170, "sum" : 680.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 680.00, "total" : 680.00, "payments": [ { "type": 0, "sum" : 680.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:23:45]execute_script... [11:23: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)209741", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 10.170, "sum" : 680.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 680.00, "total" : 680.00, "payments": [ { "type": 0, "sum" : 680.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:23:45]POST & json_proto [11:23:45]process_json_proto [11:23:45]json parsed OK: [11:23:45]protocol is kg_v1.0 [11:23:45]action value=close_receipt [11:23:45]process_action close_receipt [11:23:45]cmd_close_receipt [11:23:45]MH_GetDate [11:23:45]Write to MH i2c: F0 00 00 26 4B 60 [11:23:45]Write i2c OK [11:23:45]MH_I2C_Read... [11:23:45]Read from MH i2c: F0 [11:23:45]MH_I2C_Read... [11:23:45]Read from MH i2c: F0 09 00 [11:23:45]MH_I2C_Read... [11:23:45]Read from MH i2c: F0 09 00 26 4B 00 C5 39 16 67 A0 18 CA 66 CC [11:23:45]GetLastDocTimeStamp 1729509817 [11:23:45]current date 1729509829 [11:23:45]FM_GetShiftState [11:23:45]SAM_PROTO_GetShiftState [11:23:45]wFMCommunicate request_size=4 [11:23:45]MH_SAM_APDU [11:23:45]CAPDU: 80 13 01 00 [11:23:45]Write to MH i2c: E2 08 00 27 4B 80 13 01 00 00 00 00 00 EF [11:23:45]Write i2c OK [11:23:45]MH_I2C_Read... [11:23:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:23:45]Read from MH i2c: E2 [11:23:45]MH_I2C_Read... [11:23:45]Read from MH i2c: E2 0E 00 [11:23:45]MH_I2C_Read... [11:23:45]Read from MH i2c: E2 0E 00 27 4B 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 4E [11:23:45]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [11:23:45]wFMCommunicate OK [11:23:45]SAM_PROTO_GetShiftState done [11:23:45]FM_GetShiftState done [11:23:45]opened in 1729469754 [11:23:45]opened+sec_in_day 1729556154 [11:23:45]quantity*price = 68037 [11:23:45]sum+1 = 68038 [11:23:45]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.37 ИТОГО: 680.00 Внесено: 680.00 СДАЧА: 0.00 НСП 1% : 6.02 НДС 12% : 72.25 Наличными: 680.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 153 21.10.2024 11:23 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 187689 ФПД: 34631104440593 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T112349&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187689&fm=34631104440593&tin=02508201610067®Number=0000000000100030&sum=68000 [11:23:46]StoreToDocumentArchive [11:23:46]shift 460 fd 187689 [11:23:46]save to /storage/0460/doc_00187689 [11:23:46]save last doc name /storage/0460/doc_00187689 to /storage/kkm_last_doc_name [11:23:46]save OK [11:23:46]Clear old archive folders... [11:23:46]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:23:46]tlvbuf is 0118DE50 [11:23:46]SAM_PROTO_ClearQueue [11:23:46]wFMCommunicate request_size=4 [11:23:46]MH_SAM_APDU [11:23:46]CAPDU: 80 09 00 00 [11:23:46]Write to MH i2c: E2 08 00 34 4B 80 09 00 00 00 00 00 00 F1 [11:23:46]Write i2c OK [11:23:46]MH_I2C_Read... [11:23:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:23:46]Read from MH i2c: E2 [11:23:46]MH_I2C_Read... [11:23:46]Read from MH i2c: E2 03 00 [11:23:46]MH_I2C_Read... [11:23:46]Read from MH i2c: E2 03 00 34 4B 00 90 00 F3 [11:23:46]RAPDU: 90 00 [11:23:46]wFMCommunicate OK [11:23:46]SAM_PROTO_ClearQueue done [11:23:46]KKMCreateOFDPacket [11:23:46]OFDProtocolAddRootSTLVToBuf [11:23:46]FM_MakeSignedData [11:23:46]FM_MakeSignedData [11:23:46]SAM_PROTO_SignData [11:23:46]wFMCommunicate request_size=4 [11:23:46]MH_SAM_APDU [11:23:46]CAPDU: 80 0D 01 02 [11:23:46]Write to MH i2c: E2 08 00 35 4B 80 0D 01 02 00 00 00 00 F9 [11:23:46]Write i2c OK [11:23:46]MH_I2C_Read... [11:23:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:23:46]Read from MH i2c: E2 [11:23:46]MH_I2C_Read... [11:23:46]Read from MH i2c: E2 03 00 [11:23:46]MH_I2C_Read... [11:23:46]Read from MH i2c: E2 03 00 35 4B 00 90 00 F4 [11:23:46]RAPDU: 90 00 [11:23:46]wFMCommunicate OK [11:23:46]wFMCommunicate request_size=255 [11:23:46]MH_SAM_APDU [11:23: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 33 FF 03 08 00 03 BA 27 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 C5 09 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 09 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5A 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 1C 00 00 00 00 07 04 06 00 A0 09 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 99 00 00 00 F4 03 04 00 C5 39 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 29 DD 02 00 35 04 06 00 1F [11:23:46]Write to MH i2c: E2 02 01 36 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 33 FF 03 08 00 03 BA 27 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 C5 09 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 09 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5A 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 1C 00 00 00 00 07 04 06 00 A0 09 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 99 00 00 00 F4 03 04 00 C5 39 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 29 DD 02 00 35 04 06 00 1F 00 00 E0 [11:23:46]OFD Sender: No OFD packet to send [11:23:47]Write i2c OK [11:23:47]MH_I2C_Read... [11:23:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:23:47]Read from MH i2c: E2 [11:23:47]MH_I2C_Read... [11:23:47]Read from MH i2c: E2 03 00 [11:23:47]MH_I2C_Read... [11:23:47]Read from MH i2c: E2 03 00 36 4B 00 90 00 F5 [11:23:47]RAPDU: 90 00 [11:23:47]wFMCommunicate OK [11:23:47]wFMCommunicate request_size=10 [11:23:47]MH_SAM_APDU [11:23:47]CAPDU: 80 0D 02 02 05 7F 2E AD A9 11 [11:23:47]Write to MH i2c: E2 0D 00 37 4B 80 0D 02 02 05 00 7F 2E AD A9 11 00 00 1A [11:23:47]Write i2c OK [11:23:47]MH_I2C_Read... [11:23:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:23:47]Read from MH i2c: E2 [11:23:47]MH_I2C_Read... [11:23:47]Read from MH i2c: E2 03 00 [11:23:47]MH_I2C_Read... [11:23:47]Read from MH i2c: E2 03 00 37 4B 00 90 00 F6 [11:23:47]RAPDU: 90 00 [11:23:47]wFMCommunicate OK [11:23:47]wFMCommunicate request_size=4 [11:23:47]MH_SAM_APDU [11:23:47]CAPDU: 80 0D 03 02 [11:23:47]Write to MH i2c: E2 08 00 38 4B 80 0D 03 02 00 00 00 00 FE [11:23:47]Write i2c OK [11:23:47]MH_I2C_Read... [11:23:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:23:47]Read from MH i2c: E2 [11:23:47]MH_I2C_Read... [11:23:47]Read from MH i2c: E2 0B 00 [11:23:47]MH_I2C_Read... [11:23:47]Read from MH i2c: E2 0B 00 38 4B 00 54 93 CB 07 8A C0 9E D1 90 00 71 [11:23:47]RAPDU: 54 93 CB 07 8A C0 9E D1 90 00 [11:23:47]wFMCommunicate OK [11:23:47]SAM_PROTO_SignData done [11:23:47]FM_MakeSignedData done [11:23:47]CreateOFDProtocolMessage [11:23:47]wFMCommunicate request_size=4 [11:23:47]MH_SAM_APDU [11:23:47]CAPDU: 80 11 00 00 [11:23:47]Write to MH i2c: E2 08 00 39 4B 80 11 00 00 00 00 00 00 FE [11:23:47]Write i2c OK [11:23:47]MH_I2C_Read... [11:23:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:23:47]Read from MH i2c: E2 [11:23:47]MH_I2C_Read... [11:23:47]Read from MH i2c: E2 17 00 [11:23:47]MH_I2C_Read... [11:23:47]Read from MH i2c: E2 17 00 39 4B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 4C [11:23:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [11:23:47]wFMCommunicate OK [11:23:47]CreateOFDProtocolMessage done [11:23:47]OFDSenderStorePacket 187689 [11:23:47]StoreOFDPacket docnum=187689 [11:23:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 E4 32 07 01 2C 02 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 BA 27 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 C5 09 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 09 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5A 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 1C 00 00 00 00 07 04 06 00 A0 09 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 99 00 00 00 F4 03 04 00 C5 39 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 29 DD 02 00 35 04 06 00 1F 7F 2E AD A9 11 54 93 CB 07 8A C0 9E D1 [11:23:47]CheckFolder [11:23:47]dirname=/storage/ofd_packets [11:23:47]CheckFolder done [11:23:47]ProducePacketName [11:23:47]name=ofd_packets/00187689 [11:23:47]NVStorageSaveData ofd_packets/00187689 [11:23:47]File name is /storage/ofd_packets/00187689 [11:23:47]Write 301 bytes [11:23:47]NVStorageSaveData done [11:23:47]OFDSenderStorePacket done [11:23:47]KKMCreateOFDPacket done [11:23:47]NVStorageSaveData kkm_last_timestamp [11:23:47]File name is /storage/kkm_last_timestamp [11:23:47]Write 4 bytes [11:23:47]NVStorageSaveData done [11:23:47]ExternCall_PrintAddStr [11:23:47]wPrintStart [11:23:47]Write to MH i2c: 01 00 00 3A 4B 85 [11:23:47]Write i2c OK [11:23:47]MH_I2C_Read... [11:23:47]Read from MH i2c: 01 [11:23:47]MH_I2C_Read... [11:23:47]Read from MH i2c: 01 07 00 [11:23:47]MH_I2C_Read... [11:23:47]Read from MH i2c: 01 07 00 3A 4B 00 00 00 00 00 FF 0F 9A [11:23:47]RasterBufferAndPrint [11:23:47]line Счет N : (1)209741 [11:23:47]line ИНН: 02508201610067 [11:23:47]line Контрольно-Кассовый Чек [11:23:47]line ПРОДАЖА [11:23:47]line ТРК (МРК, ГНК) : 22 [11:23:47]line Товар: 2710124130 [11:23:47]line Аи-92-К-3 [11:23:47]line 10.170 * 66.90 [11:23:47]line = 680.37 [11:23:47]line НДС 12% НСП 1% [11:23:47]line > о реализуемом товаре [11:23:47]line ОКРУГЛЕНИЕ: -0.37 [11:23:47]line ИТОГО: 680.00 [11:23:47]line Внесено: 680.00 [11:23:47]line СДАЧА: 0.00 [11:23:47]line НСП 1% : 6.02 [11:23:47]line НДС 12% : 72.25 [11:23:47]line Наличными: 680.00 [11:23:47]line Безнал.: 0.00 [11:23:47]line Место: АЗС № 86 "Партнер Нефть" [11:23:47]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [11:23:47]line СНО: Общий режим [11:23:47]line Чек 153 21.10.2024 11:23 [11:23:47]line Смена: 460 ФФД: 1.0 [11:23:47]line ЗНМ: 0300000155 [11:23:47]line РНМ: 0000000000100030 [11:23:47]line Версия ККМ: 001 [11:23:47]line ФМ: 0000000000965340 [11:23:47]line ФД: 187689 [11:23:47]line ФПД: 34631104440593 [11:23:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T112349&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187689&fm=34631104440593&tin=02508201610067®Number=0000000000100030&sum=68000 [11:23:47]written 0, free lines is 4095 [11:23:47]OFD Sender: Processing packet 187689 [packets to send 1062, broken 1061] [11:23:47]ProducePacketName [11:23:47]name=ofd_packets/00187689 [11:23:47]OFD Sender: To server: pG, [11:23:47]CommunicateWithHost lk.salyk.kg:30040 [11:23:47]ConnectInit lk.salyk.kg [11:23:47]Write to MH i2c: 01 00 00 65 4B B0 [11:23:47]Write i2c OK [11:23:47]MH_I2C_Read... [11:23:47]Read from MH i2c: 01 [11:23:47]MH_I2C_Read... [11:23:47]Read from MH i2c: 01 07 00 [11:23:47]MH_I2C_Read... [11:23:47]Read from MH i2c: 01 07 00 65 4B 00 00 00 00 00 83 0C 46 [11:23:47]RasterBufferAndPrint [11:23:47]line [11:23:47]line [11:23:47]line [11:23:47]line [11:23:47]line [11:23:47]written 0, free lines is 3208 [11:23:47]MH_Cut [11:23:47]Write to MH i2c: D1 01 00 6C 4B 01 89 [11:23:47]Write i2c OK [11:23:47]MH_I2C_Read... [11:23:47]Read from MH i2c: D1 [11:23:47]MH_I2C_Read... [11:23:47]Read from MH i2c: D1 01 00 [11:23:47]MH_I2C_Read... [11:23:47]Read from MH i2c: D1 01 00 6C 4B 00 88 [11:23:47]Write to MH i2c: 01 00 00 6D 4B B8 [11:23:47]Write i2c OK [11:23:47]MH_I2C_Read... [11:23:47]Connected sock=11 [11:23:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 E4 32 07 01 2C 02 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 BA 27 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 C5 09 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 09 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5A 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 1C 00 00 00 00 07 04 06 00 A0 09 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 99 00 00 00 F4 03 04 00 C5 39 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 29 DD 02 00 35 04 06 00 1F 7F 2E AD A9 11 54 93 CB 07 8A C0 9E D1 [11:23:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 BF 3F 47 00 CF 8A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 29 DD 02 00 F4 03 04 00 B5 E3 15 67 B6 04 01 00 00 53 07 5D 5A 80 56 99 68 [11:23:48]CommunicateWithHost err = 0 [11:23:48]CheckOFDResponse [11:23:48]1017 (14) - 77093643461234 [11:23:48]1041 (16) - 0000000000965340 [11:23:48]1040 (4) - 187689 [11:23:48]1012 (4) - 21.10.2024 05:16 [11:23:48]1206 (1) - 0 [11:23:48]OFD Sender: Remove packet 187689 [11:23:48]ProducePacketName [11:23:48]name=ofd_packets/00187689 [11:23:48]NVStorageDeleteData [11:23:48]OFD Sender: No OFD packet to send [11:23:48]*** Cut start [11:23:48]*** Partial cut [11:23:48]*** CUTSNS_PIN = 1 [11:23:48]*** CUTSNS_PIN = 0 [11:23:49]*** Brake cut motor [11:23:49]Read from MH i2c: 01 [11:23:49]MH_I2C_Read... [11:23:49]*** Stop cut motor [11:23:49]*** Cut end [11:23:49]Read from MH i2c: 01 07 00 [11:23:49]MH_I2C_Read... [11:23:49]Read from MH i2c: 01 07 00 6D 4B 00 00 00 00 00 FF 0F CD [11:23:49]process_action close_receipt done [11:23:49]requested_data is exist [11:23:49]produce_requested_data [11:23:49]requested_item fm.sn is exist - process it [11:23:49]wFMCommunicate request_size=4 [11:23:49]MH_SAM_APDU [11:23:49]CAPDU: 80 11 00 00 [11:23:49]Write to MH i2c: E2 08 00 6E 4B 80 11 00 00 00 00 00 00 33 [11:23:49]Write i2c OK [11:23:49]MH_I2C_Read... [11:23:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:23:49]Read from MH i2c: E2 [11:23:49]MH_I2C_Read... [11:23:49]Read from MH i2c: E2 17 00 [11:23:49]MH_I2C_Read... [11:23:49]Read from MH i2c: E2 17 00 6E 4B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 81 [11:23:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [11:23:49]wFMCommunicate OK [11:23:49]requested_item fd.num is exist - process it [11:23:49]SAM_PROTO_GetFieldsCounters [11:23:49]wFMCommunicate request_size=4 [11:23:49]MH_SAM_APDU [11:23:49]CAPDU: 80 13 00 00 [11:23:49]Write to MH i2c: E2 08 00 6F 4B 80 13 00 00 00 00 00 00 36 [11:23:49]Write i2c OK [11:23:49]MH_I2C_Read... [11:23:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:23:49]Read from MH i2c: E2 [11:23:49]MH_I2C_Read... [11:23:49]Read from MH i2c: E2 62 00 [11:23:49]MH_I2C_Read... [11:23:49]Read from MH i2c: E2 62 00 6F 4B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 29 DD 02 00 0E 04 04 00 CC 01 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 DD [11:23:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 29 DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 99 00 00 00 5E 04 04 00 99 00 00 00 57 04 04 00 9A 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:23:49]wFMCommunicate OK [11:23:49]SAM_PROTO_GetFieldsCounters done [11:23:49]requested_item shift.num is exist - process it [11:23:49]requested_item shift.opened is exist - process it [11:23:49]req_shift_opened [11:23:49]FM_GetShiftState [11:23:49]SAM_PROTO_GetShiftState [11:23:49]wFMCommunicate request_size=4 [11:23:49]MH_SAM_APDU [11:23:49]CAPDU: 80 13 01 00 [11:23:49]Write to MH i2c: E2 08 00 70 4B 80 13 01 00 00 00 00 00 38 [11:23:49]Write i2c OK [11:23:49]MH_I2C_Read... [11:23:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:23:49]Read from MH i2c: E2 [11:23:49]MH_I2C_Read... [11:23:49]Read from MH i2c: E2 0E 00 [11:23:49]MH_I2C_Read... [11:23:49]Read from MH i2c: E2 0E 00 70 4B 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 97 [11:23:49]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [11:23:49]wFMCommunicate OK [11:23:49]SAM_PROTO_GetShiftState done [11:23:49]FM_GetShiftState done [11:23:49]req_shift_opened done [11:23:49]requested_item shift.open_date is exist - process it [11:23:49]req_shift_open_date [11:23:49]req_shift_open_date done [11:23:49]produce_requested_data done [11:23:49]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187689,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [11:23:49]process_action_free close_receipt [11:23:49]json_value_free [11:23:49]json_value_free done [11:23:49]process_json_proto returns [11:23:49]Send response to host [11:23:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187689,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [11:23:49]free response buf [11:23:49]execute_script done [11:23:49]execute_script returns [11:23:49]free content buf [11:23:49]Sock 8.Close socket [11:23:49]Sock 8.Thread stoped [11:23:53]OFD Sender: No OFD packet to send [11:23:58]OFD Sender: No OFD packet to send [11:24:03]OFD Sender: No OFD packet to send [11:24:08]OFD Sender: No OFD packet to send [11:24:13]OFD Sender: No OFD packet to send [11:24:18]OFD Sender: No OFD packet to send [11:24:23]OFD Sender: No OFD packet to send [11:24:29]OFD Sender: No OFD packet to send [11:24:34]OFD Sender: No OFD packet to send [11:24:39]OFD Sender: No OFD packet to send [11:24:44]OFD Sender: No OFD packet to send [11:24:49]OFD Sender: No OFD packet to send [11:24:54]OFD Sender: No OFD packet to send [11:24:59]OFD Sender: No OFD packet to send [11:25:04]OFD Sender: No OFD packet to send [11:25:09]OFD Sender: No OFD packet to send [11:25:14]OFD Sender: No OFD packet to send [11:25:19]OFD Sender: No OFD packet to send [11:25:24]OFD Sender: No OFD packet to send [11:25:29]OFD Sender: No OFD packet to send [11:25:34]OFD Sender: No OFD packet to send [11:25:39]OFD Sender: No OFD packet to send [11:25:44]OFD Sender: No OFD packet to send [11:25:49]OFD Sender: No OFD packet to send [11:25:54]OFD Sender: No OFD packet to send [11:25:59]OFD Sender: No OFD packet to send [11:26:04]OFD Sender: No OFD packet to send [11:26:09]OFD Sender: No OFD packet to send [11:26:14]OFD Sender: No OFD packet to send [11:26:19]OFD Sender: No OFD packet to send [11:26:24]OFD Sender: No OFD packet to send [11:26:29]OFD Sender: No OFD packet to send [11:26:34]OFD Sender: No OFD packet to send [11:26:39]OFD Sender: No OFD packet to send [11:26:44]OFD Sender: No OFD packet to send [11:26:49]OFD Sender: No OFD packet to send [11:26:54]OFD Sender: No OFD packet to send [11:26:59]OFD Sender: No OFD packet to send [11:27:04]OFD Sender: No OFD packet to send [11:27:09]OFD Sender: No OFD packet to send [11:27:14]OFD Sender: No OFD packet to send [11:27:19]OFD Sender: No OFD packet to send [11:27:24]OFD Sender: No OFD packet to send [11:27:29]OFD Sender: No OFD packet to send [11:27:34]OFD Sender: No OFD packet to send [11:27:39]OFD Sender: No OFD packet to send [11:27:44]OFD Sender: No OFD packet to send [11:27:49]OFD Sender: No OFD packet to send [11:27:54]OFD Sender: No OFD packet to send [11:27:59]OFD Sender: No OFD packet to send [11:28:04]OFD Sender: No OFD packet to send [11:28:09]OFD Sender: No OFD packet to send [11:28:14]OFD Sender: No OFD packet to send [11:28:15]accept exits with 9 [11:28:15]New connection [11:28:15]New thread 3067157860 created [11:28:15]Thread 3067014500 joined [11:28:15]Waiting for new connection... [11:28:15] Sock 9.Parse request [11:28:15]Sock 9.Check first char [11:28:15]Sock 9.First char is OK [11:28:15]request: POST /json_proto HTTP/1.0 [11:28:15]Method: POST [11:28:15]URL: /json_proto [11:28:15]Method is POST - this is cgi request [11:28:15]url: /json_proto [11:28:15]query_string will be loaded in cgi processing [11:28:15]execute_cgi json_proto POST (null) [11:28:15]execute_cgi path=json_proto method=POST [11:28:15]POST find Content-Length [11:28:15]Host: 172.17.42.131:8080 [11:28:15]Content-Length: 688 [11:28:15]Content-Type: application/json [11:28:15] [11:28:15]POST finish read [11:28:15]Found Content-Length = 688 [11:28:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209742", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 36.270, "sum" : 2800.04, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2800.00, "total" : 2800.00, "payments": [ { "type": 0, "sum" : 2800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:28:15]execute_script... [11:28: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)209742", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 36.270, "sum" : 2800.04, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2800.00, "total" : 2800.00, "payments": [ { "type": 0, "sum" : 2800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:28:15]POST & json_proto [11:28:15]process_json_proto [11:28:15]json parsed OK: [11:28:15]protocol is kg_v1.0 [11:28:15]action value=close_receipt [11:28:15]process_action close_receipt [11:28:15]cmd_close_receipt [11:28:15]MH_GetDate [11:28:15]Write to MH i2c: F0 00 00 71 4B AB [11:28:15]Write i2c OK [11:28:15]MH_I2C_Read... [11:28:15]Read from MH i2c: F0 [11:28:15]MH_I2C_Read... [11:28:15]Read from MH i2c: F0 09 00 [11:28:15]MH_I2C_Read... [11:28:15]Read from MH i2c: F0 09 00 71 4B 00 D2 3A 16 67 A0 18 CA 66 25 [11:28:15]GetLastDocTimeStamp 1729509829 [11:28:15]current date 1729510098 [11:28:15]FM_GetShiftState [11:28:15]SAM_PROTO_GetShiftState [11:28:15]wFMCommunicate request_size=4 [11:28:15]MH_SAM_APDU [11:28:15]CAPDU: 80 13 01 00 [11:28:15]Write to MH i2c: E2 08 00 72 4B 80 13 01 00 00 00 00 00 3A [11:28:15]Write i2c OK [11:28:15]MH_I2C_Read... [11:28:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:28:15]Read from MH i2c: E2 [11:28:15]MH_I2C_Read... [11:28:15]Read from MH i2c: E2 0E 00 [11:28:15]MH_I2C_Read... [11:28:15]Read from MH i2c: E2 0E 00 72 4B 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 99 [11:28:15]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [11:28:15]wFMCommunicate OK [11:28:15]SAM_PROTO_GetShiftState done [11:28:15]FM_GetShiftState done [11:28:15]opened in 1729469754 [11:28:15]opened+sec_in_day 1729556154 [11:28:15]quantity*price = 280004 [11:28:15]sum+1 = 280005 [11:28:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.04 ИТОГО: 2800.00 Внесено: 2800.00 СДАЧА: 0.00 НСП 1% : 24.78 НДС 12% : 297.35 Наличными: 2800.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 154 21.10.2024 11:28 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 187690 ФПД: 12309590955040 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T112818&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187690&fm=12309590955040&tin=02508201610067®Number=0000000000100030&sum=280000 [11:28:16]StoreToDocumentArchive [11:28:16]shift 460 fd 187690 [11:28:16]save to /storage/0460/doc_00187690 [11:28:16]save last doc name /storage/0460/doc_00187690 to /storage/kkm_last_doc_name [11:28:16]save OK [11:28:16]Clear old archive folders... [11:28:16]ProcessDocumentItem done err = 0, tmpTLVsize=257 [11:28:16]tlvbuf is 01104DB0 [11:28:16]SAM_PROTO_ClearQueue [11:28:16]wFMCommunicate request_size=4 [11:28:16]MH_SAM_APDU [11:28:16]CAPDU: 80 09 00 00 [11:28:16]Write to MH i2c: E2 08 00 7F 4B 80 09 00 00 00 00 00 00 3C [11:28:16]Write i2c OK [11:28:16]MH_I2C_Read... [11:28:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:28:16]Read from MH i2c: E2 [11:28:16]MH_I2C_Read... [11:28:16]Read from MH i2c: E2 03 00 [11:28:16]MH_I2C_Read... [11:28:16]Read from MH i2c: E2 03 00 7F 4B 00 90 00 3E [11:28:16]RAPDU: 90 00 [11:28:16]wFMCommunicate OK [11:28:16]SAM_PROTO_ClearQueue done [11:28:16]KKMCreateOFDPacket [11:28:16]OFDProtocolAddRootSTLVToBuf [11:28:16]FM_MakeSignedData [11:28:16]FM_MakeSignedData [11:28:16]SAM_PROTO_SignData [11:28:16]wFMCommunicate request_size=4 [11:28:16]MH_SAM_APDU [11:28:16]CAPDU: 80 0D 01 02 [11:28:16]Write to MH i2c: E2 08 00 80 4B 80 0D 01 02 00 00 00 00 44 [11:28:16]Write i2c OK [11:28:16]MH_I2C_Read... [11:28:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:28:16]Read from MH i2c: E2 [11:28:16]MH_I2C_Read... [11:28:16]Read from MH i2c: E2 03 00 [11:28:16]MH_I2C_Read... [11:28:16]Read from MH i2c: E2 03 00 80 4B 00 90 00 3F [11:28:16]RAPDU: 90 00 [11:28:16]wFMCommunicate OK [11:28:16]wFMCommunicate request_size=255 [11:28:16]MH_SAM_APDU [11:28:16]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AE 8D 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 C4 45 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 45 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AE 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 27 74 00 00 00 00 07 04 06 00 C0 45 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9A 00 00 00 F4 03 04 00 D2 3A 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 2A DD 02 [11:28:16]Write to MH i2c: E2 02 01 81 4B 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 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AE 8D 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 C4 45 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 45 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AE 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 27 74 00 00 00 00 07 04 06 00 C0 45 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9A 00 00 00 F4 03 04 00 D2 3A 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 2A DD 02 00 00 AA [11:28:16]Write i2c OK [11:28:16]MH_I2C_Read... [11:28:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:28:16]Read from MH i2c: E2 [11:28:16]MH_I2C_Read... [11:28:16]Read from MH i2c: E2 03 00 [11:28:16]MH_I2C_Read... [11:28:16]Read from MH i2c: E2 03 00 81 4B 00 90 00 40 [11:28:16]RAPDU: 90 00 [11:28:16]wFMCommunicate OK [11:28:16]wFMCommunicate request_size=16 [11:28:16]MH_SAM_APDU [11:28:16]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 0B 32 0C CB D4 20 [11:28:16]Write to MH i2c: E2 13 00 82 4B 80 0D 02 02 0B 00 00 35 04 06 00 0B 32 0C CB D4 20 00 00 A4 [11:28:16]Write i2c OK [11:28:16]MH_I2C_Read... [11:28:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:28:16]Read from MH i2c: E2 [11:28:16]MH_I2C_Read... [11:28:16]Read from MH i2c: E2 03 00 [11:28:16]MH_I2C_Read... [11:28:16]Read from MH i2c: E2 03 00 82 4B 00 90 00 41 [11:28:16]RAPDU: 90 00 [11:28:16]wFMCommunicate OK [11:28:16]wFMCommunicate request_size=4 [11:28:16]MH_SAM_APDU [11:28:16]CAPDU: 80 0D 03 02 [11:28:16]Write to MH i2c: E2 08 00 83 4B 80 0D 03 02 00 00 00 00 49 [11:28:16]Write i2c OK [11:28:16]MH_I2C_Read... [11:28:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:28:16]Read from MH i2c: E2 [11:28:16]MH_I2C_Read... [11:28:16]Read from MH i2c: E2 0B 00 [11:28:16]MH_I2C_Read... [11:28:16]Read from MH i2c: E2 0B 00 83 4B 00 11 FB B8 10 8B C5 DE 1C 90 00 68 [11:28:16]RAPDU: 11 FB B8 10 8B C5 DE 1C 90 00 [11:28:16]wFMCommunicate OK [11:28:16]SAM_PROTO_SignData done [11:28:16]FM_MakeSignedData done [11:28:16]CreateOFDProtocolMessage [11:28:16]wFMCommunicate request_size=4 [11:28:16]MH_SAM_APDU [11:28:16]CAPDU: 80 11 00 00 [11:28:16]Write to MH i2c: E2 08 00 84 4B 80 11 00 00 00 00 00 00 49 [11:28:16]Write i2c OK [11:28:16]MH_I2C_Read... [11:28:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:28:16]Read from MH i2c: E2 [11:28:16]MH_I2C_Read... [11:28:16]Read from MH i2c: E2 17 00 [11:28:16]MH_I2C_Read... [11:28:16]Read from MH i2c: E2 17 00 84 4B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 97 [11:28:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [11:28:16]wFMCommunicate OK [11:28:16]CreateOFDProtocolMessage done [11:28:16]OFDSenderStorePacket 187690 [11:28:16]StoreOFDPacket docnum=187690 [11:28:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 48 9A 0D 01 73 7B 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 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AE 8D 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 C4 45 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 45 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AE 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 27 74 00 00 00 00 07 04 06 00 C0 45 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9A 00 00 00 F4 03 04 00 D2 3A 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 2A DD 02 00 35 04 06 00 0B 32 0C CB D4 20 11 FB B8 10 8B C5 DE 1C [11:28:16]CheckFolder [11:28:16]dirname=/storage/ofd_packets [11:28:16]CheckFolder done [11:28:16]ProducePacketName [11:28:16]name=ofd_packets/00187690 [11:28:16]NVStorageSaveData ofd_packets/00187690 [11:28:16]File name is /storage/ofd_packets/00187690 [11:28:16]Write 307 bytes [11:28:16]NVStorageSaveData done [11:28:16]OFDSenderStorePacket done [11:28:16]KKMCreateOFDPacket done [11:28:16]NVStorageSaveData kkm_last_timestamp [11:28:16]File name is /storage/kkm_last_timestamp [11:28:16]Write 4 bytes [11:28:16]NVStorageSaveData done [11:28:16]ExternCall_PrintAddStr [11:28:16]wPrintStart [11:28:16]Write to MH i2c: 01 00 00 85 4B D0 [11:28:16]Write i2c OK [11:28:16]MH_I2C_Read... [11:28:16]Read from MH i2c: 01 [11:28:16]MH_I2C_Read... [11:28:16]Read from MH i2c: 01 07 00 [11:28:16]MH_I2C_Read... [11:28:16]Read from MH i2c: 01 07 00 85 4B 00 00 00 00 00 FF 0F E5 [11:28:16]RasterBufferAndPrint [11:28:16]line Счет N : (1)209742 [11:28:16]line ИНН: 02508201610067 [11:28:16]line Контрольно-Кассовый Чек [11:28:16]line ПРОДАЖА [11:28:16]line ТРК (МРК, ГНК) : 31 [11:28:16]line Товар: 2710194210 [11:28:16]line D-ENERGY ДТ-К-5 [11:28:16]line 36.270 * 77.20 [11:28:16]line = 2800.04 [11:28:16]line НДС 12% НСП 1% [11:28:16]line > о реализуемом товаре [11:28:16]line ОКРУГЛЕНИЕ: -0.04 [11:28:16]line ИТОГО: 2800.00 [11:28:16]line Внесено: 2800.00 [11:28:16]line СДАЧА: 0.00 [11:28:16]line НСП 1% : 24.78 [11:28:16]line НДС 12% : 297.35 [11:28:16]line Наличными: 2800.00 [11:28:16]line Безнал.: 0.00 [11:28:16]line Место: АЗС № 86 "Партнер Нефть" [11:28:16]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [11:28:16]line СНО: Общий режим [11:28:16]line Чек 154 21.10.2024 11:28 [11:28:16]line Смена: 460 ФФД: 1.0 [11:28:16]line ЗНМ: 0300000155 [11:28:16]line РНМ: 0000000000100030 [11:28:16]line Версия ККМ: 001 [11:28:16]line ФМ: 0000000000965340 [11:28:16]line ФД: 187690 [11:28:16]line ФПД: 12309590955040 [11:28:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T112818&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187690&fm=12309590955040&tin=02508201610067®Number=0000000000100030&sum=280000 [11:28:16]written 0, free lines is 4095 [11:28:16]OFD Sender: Processing packet 187690 [packets to send 1062, broken 1061] [11:28:16]ProducePacketName [11:28:16]name=ofd_packets/00187690 [11:28:16]OFD Sender: To server: pG, [11:28:16]CommunicateWithHost lk.salyk.kg:30040 [11:28:16]ConnectInit lk.salyk.kg [11:28:17]Connected sock=8 [11:28:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 48 9A 0D 01 73 7B 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 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AE 8D 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 C4 45 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 45 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AE 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 27 74 00 00 00 00 07 04 06 00 C0 45 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9A 00 00 00 F4 03 04 00 D2 3A 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 2A DD 02 00 35 04 06 00 0B 32 0C CB D4 20 11 FB B8 10 8B C5 DE 1C [11:28:17]Write to MH i2c: 01 00 00 B0 4B FB [11:28:17]Write i2c OK [11:28:17]MH_I2C_Read... [11:28:17]Read from MH i2c: 01 [11:28:17]MH_I2C_Read... [11:28:17]Read from MH i2c: 01 07 00 [11:28:17]MH_I2C_Read... [11:28:17]Read from MH i2c: 01 07 00 B0 4B 00 00 00 00 00 7D 0C 8B [11:28:17]RasterBufferAndPrint [11:28:17]line [11:28:17]line [11:28:17]line [11:28:17]line [11:28:17]line [11:28:17]written 0, free lines is 3200 [11:28:17]MH_Cut [11:28:17]Write to MH i2c: D1 01 00 B7 4B 01 D4 [11:28:17]Write i2c OK [11:28:17]MH_I2C_Read... [11:28:17]Read from MH i2c: D1 [11:28:17]MH_I2C_Read... [11:28:17]Read from MH i2c: D1 01 00 [11:28:17]MH_I2C_Read... [11:28:17]Read from MH i2c: D1 01 00 B7 4B 00 D3 [11:28:17]Write to MH i2c: 01 00 00 B8 4B 03 [11:28:17]Write i2c OK [11:28:17]MH_I2C_Read... [11:28:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 D9 9A 47 00 4E 3A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 2A DD 02 00 F4 03 04 00 C2 E4 15 67 B6 04 01 00 00 33 6D 44 12 B4 0B EE 21 [11:28:17]CommunicateWithHost err = 0 [11:28:17]CheckOFDResponse [11:28:17]1017 (14) - 77093643461234 [11:28:17]1041 (16) - 0000000000965340 [11:28:17]1040 (4) - 187690 [11:28:17]1012 (4) - 21.10.2024 05:21 [11:28:17]1206 (1) - 0 [11:28:17]OFD Sender: Remove packet 187690 [11:28:17]ProducePacketName [11:28:17]name=ofd_packets/00187690 [11:28:17]NVStorageDeleteData [11:28:18]OFD Sender: No OFD packet to send [11:28:18]*** Cut start [11:28:18]*** Partial cut [11:28:18]*** CUTSNS_PIN = 1 [11:28:18]*** CUTSNS_PIN = 0 [11:28:18]*** Brake cut motor [11:28:18]Read from MH i2c: 01 [11:28:18]MH_I2C_Read... [11:28:18]*** Stop cut motor [11:28:18]*** Cut end [11:28:18]Read from MH i2c: 01 07 00 [11:28:18]MH_I2C_Read... [11:28:18]Read from MH i2c: 01 07 00 B8 4B 00 00 00 00 00 FF 0F 18 [11:28:18]process_action close_receipt done [11:28:18]requested_data is exist [11:28:18]produce_requested_data [11:28:18]requested_item fm.sn is exist - process it [11:28:18]wFMCommunicate request_size=4 [11:28:18]MH_SAM_APDU [11:28:18]CAPDU: 80 11 00 00 [11:28:18]Write to MH i2c: E2 08 00 B9 4B 80 11 00 00 00 00 00 00 7E [11:28:18]Write i2c OK [11:28:18]MH_I2C_Read... [11:28:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:28:18]Read from MH i2c: E2 [11:28:18]MH_I2C_Read... [11:28:18]Read from MH i2c: E2 17 00 [11:28:18]MH_I2C_Read... [11:28:18]Read from MH i2c: E2 17 00 B9 4B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 CC [11:28:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [11:28:18]wFMCommunicate OK [11:28:18]requested_item fd.num is exist - process it [11:28:18]SAM_PROTO_GetFieldsCounters [11:28:18]wFMCommunicate request_size=4 [11:28:18]MH_SAM_APDU [11:28:18]CAPDU: 80 13 00 00 [11:28:18]Write to MH i2c: E2 08 00 BA 4B 80 13 00 00 00 00 00 00 81 [11:28:18]Write i2c OK [11:28:19]MH_I2C_Read... [11:28:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:28:19]Read from MH i2c: E2 [11:28:19]MH_I2C_Read... [11:28:19]Read from MH i2c: E2 62 00 [11:28:19]MH_I2C_Read... [11:28:19]Read from MH i2c: E2 62 00 BA 4B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 2A DD 02 00 0E 04 04 00 CC 01 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 2C [11:28:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 2A DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 9A 00 00 00 5E 04 04 00 9A 00 00 00 57 04 04 00 9B 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:28:19]wFMCommunicate OK [11:28:19]SAM_PROTO_GetFieldsCounters done [11:28:19]requested_item shift.num is exist - process it [11:28:19]requested_item shift.opened is exist - process it [11:28:19]req_shift_opened [11:28:19]FM_GetShiftState [11:28:19]SAM_PROTO_GetShiftState [11:28:19]wFMCommunicate request_size=4 [11:28:19]MH_SAM_APDU [11:28:19]CAPDU: 80 13 01 00 [11:28:19]Write to MH i2c: E2 08 00 BB 4B 80 13 01 00 00 00 00 00 83 [11:28:19]Write i2c OK [11:28:19]MH_I2C_Read... [11:28:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:28:19]Read from MH i2c: E2 [11:28:19]MH_I2C_Read... [11:28:19]Read from MH i2c: E2 0E 00 [11:28:19]MH_I2C_Read... [11:28:19]Read from MH i2c: E2 0E 00 BB 4B 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 E2 [11:28:19]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [11:28:19]wFMCommunicate OK [11:28:19]SAM_PROTO_GetShiftState done [11:28:19]FM_GetShiftState done [11:28:19]req_shift_opened done [11:28:19]requested_item shift.open_date is exist - process it [11:28:19]req_shift_open_date [11:28:19]req_shift_open_date done [11:28:19]produce_requested_data done [11:28:19]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187690,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [11:28:19]process_action_free close_receipt [11:28:19]json_value_free [11:28:19]json_value_free done [11:28:19]process_json_proto returns [11:28:19]Send response to host [11:28:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187690,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [11:28:19]free response buf [11:28:19]execute_script done [11:28:19]execute_script returns [11:28:19]free content buf [11:28:19]Sock 9.Close socket [11:28:19]Sock 9.Thread stoped [11:28:23]OFD Sender: No OFD packet to send [11:28:28]OFD Sender: No OFD packet to send [11:28:33]OFD Sender: No OFD packet to send [11:28:38]OFD Sender: No OFD packet to send [11:28:43]OFD Sender: No OFD packet to send [11:28:48]OFD Sender: No OFD packet to send [11:28:53]OFD Sender: No OFD packet to send [11:28:58]OFD Sender: No OFD packet to send [11:29:03]OFD Sender: No OFD packet to send [11:29:08]OFD Sender: No OFD packet to send [11:29:13]OFD Sender: No OFD packet to send [11:29:18]OFD Sender: No OFD packet to send [11:29:23]OFD Sender: No OFD packet to send [11:29:28]OFD Sender: No OFD packet to send [11:29:33]OFD Sender: No OFD packet to send [11:29:38]OFD Sender: No OFD packet to send [11:29:43]OFD Sender: No OFD packet to send [11:29:48]OFD Sender: No OFD packet to send [11:29:53]OFD Sender: No OFD packet to send [11:29:58]OFD Sender: No OFD packet to send [11:30:03]OFD Sender: No OFD packet to send [11:30:08]OFD Sender: No OFD packet to send [11:30:13]OFD Sender: No OFD packet to send [11:30:18]OFD Sender: No OFD packet to send [11:30:23]OFD Sender: No OFD packet to send [11:30:28]OFD Sender: No OFD packet to send [11:30:33]OFD Sender: No OFD packet to send [11:30:38]OFD Sender: No OFD packet to send [11:30:42]accept exits with 10 [11:30:42]New connection [11:30:42]New thread 3067014500 created [11:30:42]Thread 3067157860 joined [11:30:42]Waiting for new connection... [11:30:42] Sock 10.Parse request [11:30:42]Sock 10.Check first char [11:30:42]Sock 10.First char is OK [11:30:42]request: POST /json_proto HTTP/1.0 [11:30:42]Method: POST [11:30:42]URL: /json_proto [11:30:42]Method is POST - this is cgi request [11:30:42]url: /json_proto [11:30:42]query_string will be loaded in cgi processing [11:30:42]execute_cgi json_proto POST (null) [11:30:42]execute_cgi path=json_proto method=POST [11:30:42]POST find Content-Length [11:30:42]Host: 172.17.42.131:8080 [11:30:42]Content-Length: 682 [11:30:42]Content-Type: application/json [11:30:42] [11:30:42]POST finish read [11:30:42]Found Content-Length = 682 [11:30:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209743", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 38.680, "sum" : 2870.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 6000.00, "total" : 2870.00, "payments": [ { "type": 0, "sum" : 2870.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:30:42]execute_script... [11:30:42]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209743", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 38.680, "sum" : 2870.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 6000.00, "total" : 2870.00, "payments": [ { "type": 0, "sum" : 2870.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:30:42]POST & json_proto [11:30:42]process_json_proto [11:30:42]json parsed OK: [11:30:42]protocol is kg_v1.0 [11:30:42]action value=close_receipt [11:30:42]process_action close_receipt [11:30:42]cmd_close_receipt [11:30:42]MH_GetDate [11:30:42]Write to MH i2c: F0 00 00 BC 4B F6 [11:30:42]Write i2c OK [11:30:42]MH_I2C_Read... [11:30:42]Read from MH i2c: F0 [11:30:42]MH_I2C_Read... [11:30:42]Read from MH i2c: F0 09 00 [11:30:42]MH_I2C_Read... [11:30:42]Read from MH i2c: F0 09 00 BC 4B 00 66 3B 16 67 A0 18 CA 66 05 [11:30:42]GetLastDocTimeStamp 1729510098 [11:30:42]current date 1729510246 [11:30:42]FM_GetShiftState [11:30:42]SAM_PROTO_GetShiftState [11:30:42]wFMCommunicate request_size=4 [11:30:42]MH_SAM_APDU [11:30:42]CAPDU: 80 13 01 00 [11:30:42]Write to MH i2c: E2 08 00 BD 4B 80 13 01 00 00 00 00 00 85 [11:30:42]Write i2c OK [11:30:42]MH_I2C_Read... [11:30:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:30:42]Read from MH i2c: E2 [11:30:42]MH_I2C_Read... [11:30:42]Read from MH i2c: E2 0E 00 [11:30:42]MH_I2C_Read... [11:30:42]Read from MH i2c: E2 0E 00 BD 4B 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 E4 [11:30:42]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [11:30:42]wFMCommunicate OK [11:30:42]SAM_PROTO_GetShiftState done [11:30:42]FM_GetShiftState done [11:30:42]opened in 1729469754 [11:30:42]opened+sec_in_day 1729556154 [11:30:42]quantity*price = 287005 [11:30:42]sum+1 = 287007 [11:30:42]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 2870.00 Внесено: 6000.00 СДАЧА: 3130.00 НСП 1% : 25.40 НДС 12% : 304.78 Наличными: 2870.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 155 21.10.2024 11:30 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 187691 ФПД: 131642548788513 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T113046&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187691&fm=131642548788513&tin=02508201610067®Number=0000000000100030&sum=287000 [11:30:43]StoreToDocumentArchive [11:30:43]shift 460 fd 187691 [11:30:43]save to /storage/0460/doc_00187691 [11:30:43]save last doc name /storage/0460/doc_00187691 to /storage/kkm_last_doc_name [11:30:43]save OK [11:30:43]Clear old archive folders... [11:30:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:30:43]tlvbuf is 011ACA30 [11:30:43]SAM_PROTO_ClearQueue [11:30:43]wFMCommunicate request_size=4 [11:30:43]MH_SAM_APDU [11:30:43]CAPDU: 80 09 00 00 [11:30:43]Write to MH i2c: E2 08 00 CA 4B 80 09 00 00 00 00 00 00 87 [11:30:43]Write i2c OK [11:30:43]MH_I2C_Read... [11:30:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:30:43]Read from MH i2c: E2 [11:30:43]MH_I2C_Read... [11:30:43]Read from MH i2c: E2 03 00 [11:30:43]MH_I2C_Read... [11:30:43]Read from MH i2c: E2 03 00 CA 4B 00 90 00 89 [11:30:43]RAPDU: 90 00 [11:30:43]wFMCommunicate OK [11:30:43]SAM_PROTO_ClearQueue done [11:30:43]KKMCreateOFDPacket [11:30:43]OFDProtocolAddRootSTLVToBuf [11:30:43]FM_MakeSignedData [11:30:43]FM_MakeSignedData [11:30:43]SAM_PROTO_SignData [11:30:43]wFMCommunicate request_size=4 [11:30:43]MH_SAM_APDU [11:30:43]CAPDU: 80 0D 01 02 [11:30:43]Write to MH i2c: E2 08 00 CB 4B 80 0D 01 02 00 00 00 00 8F [11:30:43]Write i2c OK [11:30:43]MH_I2C_Read... [11:30:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:30:43]Read from MH i2c: E2 [11:30:43]MH_I2C_Read... [11:30:43]Read from MH i2c: E2 03 00 [11:30:43]MH_I2C_Read... [11:30:43]Read from MH i2c: E2 03 00 CB 4B 00 90 00 8A [11:30:43]RAPDU: 90 00 [11:30:43]wFMCommunicate OK [11:30:43]wFMCommunicate request_size=255 [11:30:43]MH_SAM_APDU [11:30:43]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 18 97 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 1E 61 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 61 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EC 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 77 00 00 00 00 07 04 06 00 18 61 04 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 66 3B 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 2B DD 02 00 35 04 06 00 77 [11:30:43]Write to MH i2c: E2 02 01 CC 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 18 97 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 1E 61 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 61 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EC 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 77 00 00 00 00 07 04 06 00 18 61 04 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 66 3B 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 2B DD 02 00 35 04 06 00 77 00 00 46 [11:30:43]Write i2c OK [11:30:43]MH_I2C_Read... [11:30:43]OFD Sender: No OFD packet to send [11:30:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:30:43]Read from MH i2c: E2 [11:30:43]MH_I2C_Read... [11:30:43]Read from MH i2c: E2 03 00 [11:30:43]MH_I2C_Read... [11:30:43]Read from MH i2c: E2 03 00 CC 4B 00 90 00 8B [11:30:43]RAPDU: 90 00 [11:30:43]wFMCommunicate OK [11:30:43]wFMCommunicate request_size=10 [11:30:43]MH_SAM_APDU [11:30:43]CAPDU: 80 0D 02 02 05 BA 6B 5B 9D 21 [11:30:43]Write to MH i2c: E2 0D 00 CD 4B 80 0D 02 02 05 00 BA 6B 5B 9D 21 00 00 DA [11:30:43]Write i2c OK [11:30:43]MH_I2C_Read... [11:30:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:30:43]Read from MH i2c: E2 [11:30:43]MH_I2C_Read... [11:30:43]Read from MH i2c: E2 03 00 [11:30:43]MH_I2C_Read... [11:30:43]Read from MH i2c: E2 03 00 CD 4B 00 90 00 8C [11:30:43]RAPDU: 90 00 [11:30:43]wFMCommunicate OK [11:30:43]wFMCommunicate request_size=4 [11:30:43]MH_SAM_APDU [11:30:43]CAPDU: 80 0D 03 02 [11:30:43]Write to MH i2c: E2 08 00 CE 4B 80 0D 03 02 00 00 00 00 94 [11:30:43]Write i2c OK [11:30:43]MH_I2C_Read... [11:30:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:30:43]Read from MH i2c: E2 [11:30:43]MH_I2C_Read... [11:30:43]Read from MH i2c: E2 0B 00 [11:30:43]MH_I2C_Read... [11:30:43]Read from MH i2c: E2 0B 00 CE 4B 00 56 67 40 50 32 D9 BA 6F 90 00 16 [11:30:43]RAPDU: 56 67 40 50 32 D9 BA 6F 90 00 [11:30:43]wFMCommunicate OK [11:30:43]SAM_PROTO_SignData done [11:30:43]FM_MakeSignedData done [11:30:43]CreateOFDProtocolMessage [11:30:43]wFMCommunicate request_size=4 [11:30:43]MH_SAM_APDU [11:30:43]CAPDU: 80 11 00 00 [11:30:43]Write to MH i2c: E2 08 00 CF 4B 80 11 00 00 00 00 00 00 94 [11:30:43]Write i2c OK [11:30:43]MH_I2C_Read... [11:30:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:30:43]Read from MH i2c: E2 [11:30:43]MH_I2C_Read... [11:30:43]Read from MH i2c: E2 17 00 [11:30:43]MH_I2C_Read... [11:30:43]Read from MH i2c: E2 17 00 CF 4B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 E2 [11:30:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [11:30:43]wFMCommunicate OK [11:30:43]CreateOFDProtocolMessage done [11:30:43]OFDSenderStorePacket 187691 [11:30:43]StoreOFDPacket docnum=187691 [11:30:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 16 06 07 01 AE F9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 18 97 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 1E 61 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 61 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EC 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 77 00 00 00 00 07 04 06 00 18 61 04 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 66 3B 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 2B DD 02 00 35 04 06 00 77 BA 6B 5B 9D 21 56 67 40 50 32 D9 BA 6F [11:30:43]CheckFolder [11:30:43]dirname=/storage/ofd_packets [11:30:43]CheckFolder done [11:30:43]ProducePacketName [11:30:43]name=ofd_packets/00187691 [11:30:43]NVStorageSaveData ofd_packets/00187691 [11:30:43]File name is /storage/ofd_packets/00187691 [11:30:43]Write 301 bytes [11:30:43]NVStorageSaveData done [11:30:43]OFDSenderStorePacket done [11:30:43]KKMCreateOFDPacket done [11:30:43]NVStorageSaveData kkm_last_timestamp [11:30:43]File name is /storage/kkm_last_timestamp [11:30:43]Write 4 bytes [11:30:43]NVStorageSaveData done [11:30:43]ExternCall_PrintAddStr [11:30:43]wPrintStart [11:30:43]Write to MH i2c: 01 00 00 D0 4B 1B [11:30:43]Write i2c OK [11:30:43]MH_I2C_Read... [11:30:43]Read from MH i2c: 01 [11:30:43]MH_I2C_Read... [11:30:43]Read from MH i2c: 01 07 00 [11:30:43]MH_I2C_Read... [11:30:43]Read from MH i2c: 01 07 00 D0 4B 00 00 00 00 00 FF 0F 30 [11:30:43]RasterBufferAndPrint [11:30:43]line Счет N : (1)209743 [11:30:43]line ИНН: 02508201610067 [11:30:43]line Контрольно-Кассовый Чек [11:30:43]line ПРОДАЖА [11:30:43]line ТРК (МРК, ГНК) : 43 [11:30:43]line Товар: 2710124500 [11:30:43]line Аи-95-К-3 [11:30:43]line 38.680 * 74.20 [11:30:43]line = 2870.06 [11:30:43]line НДС 12% НСП 1% [11:30:43]line > о реализуемом товаре [11:30:43]line ОКРУГЛЕНИЕ: -0.06 [11:30:43]line ИТОГО: 2870.00 [11:30:43]line Внесено: 6000.00 [11:30:43]line СДАЧА: 3130.00 [11:30:43]line НСП 1% : 25.40 [11:30:43]line НДС 12% : 304.78 [11:30:43]line Наличными: 2870.00 [11:30:43]line Безнал.: 0.00 [11:30:43]line Место: АЗС № 86 "Партнер Нефть" [11:30:43]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [11:30:43]line СНО: Общий режим [11:30:43]line Чек 155 21.10.2024 11:30 [11:30:43]line Смена: 460 ФФД: 1.0 [11:30:43]line ЗНМ: 0300000155 [11:30:43]line РНМ: 0000000000100030 [11:30:43]line Версия ККМ: 001 [11:30:43]line ФМ: 0000000000965340 [11:30:43]line ФД: 187691 [11:30:43]line ФПД: 131642548788513 [11:30:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T113046&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187691&fm=131642548788513&tin=02508201610067®Number=0000000000100030&sum=287000 [11:30:43]written 0, free lines is 4095 [11:30:44]OFD Sender: Processing packet 187691 [packets to send 1062, broken 1061] [11:30:44]ProducePacketName [11:30:44]name=ofd_packets/00187691 [11:30:44]OFD Sender: To server: pG, [11:30:44]CommunicateWithHost lk.salyk.kg:30040 [11:30:44]ConnectInit lk.salyk.kg [11:30:44]Connected sock=9 [11:30:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 16 06 07 01 AE F9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 18 97 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 1E 61 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 61 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EC 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 77 00 00 00 00 07 04 06 00 18 61 04 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 66 3B 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 2B DD 02 00 35 04 06 00 77 BA 6B 5B 9D 21 56 67 40 50 32 D9 BA 6F [11:30:44]Write to MH i2c: 01 00 00 FB 4B 46 [11:30:44]Write i2c OK [11:30:44]MH_I2C_Read... [11:30:44]Read from MH i2c: 01 [11:30:44]MH_I2C_Read... [11:30:44]Read from MH i2c: 01 07 00 [11:30:44]MH_I2C_Read... [11:30:44]Read from MH i2c: 01 07 00 FB 4B 00 00 00 00 00 92 0C EB [11:30:44]RasterBufferAndPrint [11:30:44]line [11:30:44]line [11:30:44]line [11:30:44]line [11:30:44]line [11:30:44]written 0, free lines is 3223 [11:30:44]MH_Cut [11:30:44]Write to MH i2c: D1 01 00 02 4C 01 20 [11:30:44]Write i2c OK [11:30:44]MH_I2C_Read... [11:30:44]Read from MH i2c: D1 [11:30:44]MH_I2C_Read... [11:30:44]Read from MH i2c: D1 01 00 [11:30:44]MH_I2C_Read... [11:30:44]Read from MH i2c: D1 01 00 02 4C 00 1F [11:30:44]Write to MH i2c: 01 00 00 03 4C 4F [11:30:44]Write i2c OK [11:30:44]MH_I2C_Read... [11:30:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 98 78 47 00 45 FC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 2B DD 02 00 F4 03 04 00 55 E5 15 67 B6 04 01 00 00 DB D5 6E 59 45 32 17 C0 [11:30:44]CommunicateWithHost err = 0 [11:30:44]CheckOFDResponse [11:30:44]1017 (14) - 77093643461234 [11:30:44]1041 (16) - 0000000000965340 [11:30:44]1040 (4) - 187691 [11:30:44]1012 (4) - 21.10.2024 05:23 [11:30:44]1206 (1) - 0 [11:30:44]OFD Sender: Remove packet 187691 [11:30:44]ProducePacketName [11:30:44]name=ofd_packets/00187691 [11:30:44]NVStorageDeleteData [11:30:45]OFD Sender: No OFD packet to send [11:30:45]*** Cut start [11:30:45]*** Partial cut [11:30:45]*** CUTSNS_PIN = 1 [11:30:45]*** CUTSNS_PIN = 0 [11:30:45]*** Brake cut motor [11:30:46]Read from MH i2c: 01 [11:30:46]MH_I2C_Read... [11:30:46]*** Stop cut motor [11:30:46]*** Cut end [11:30:46]Read from MH i2c: 01 07 00 [11:30:46]MH_I2C_Read... [11:30:46]Read from MH i2c: 01 07 00 03 4C 00 00 00 00 00 FF 0F 64 [11:30:46]process_action close_receipt done [11:30:46]requested_data is exist [11:30:46]produce_requested_data [11:30:46]requested_item fm.sn is exist - process it [11:30:46]wFMCommunicate request_size=4 [11:30:46]MH_SAM_APDU [11:30:46]CAPDU: 80 11 00 00 [11:30:46]Write to MH i2c: E2 08 00 04 4C 80 11 00 00 00 00 00 00 CA [11:30:46]Write i2c OK [11:30:46]MH_I2C_Read... [11:30:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:30:46]Read from MH i2c: E2 [11:30:46]MH_I2C_Read... [11:30:46]Read from MH i2c: E2 17 00 [11:30:46]MH_I2C_Read... [11:30:46]Read from MH i2c: E2 17 00 04 4C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 18 [11:30:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [11:30:46]wFMCommunicate OK [11:30:46]requested_item fd.num is exist - process it [11:30:46]SAM_PROTO_GetFieldsCounters [11:30:46]wFMCommunicate request_size=4 [11:30:46]MH_SAM_APDU [11:30:46]CAPDU: 80 13 00 00 [11:30:46]Write to MH i2c: E2 08 00 05 4C 80 13 00 00 00 00 00 00 CD [11:30:46]Write i2c OK [11:30:46]MH_I2C_Read... [11:30:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:30:46]Read from MH i2c: E2 [11:30:46]MH_I2C_Read... [11:30:46]Read from MH i2c: E2 62 00 [11:30:46]MH_I2C_Read... [11:30:46]Read from MH i2c: E2 62 00 05 4C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 2B DD 02 00 0E 04 04 00 CC 01 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 7C [11:30:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 2B DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 9B 00 00 00 5E 04 04 00 9B 00 00 00 57 04 04 00 9C 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:30:46]wFMCommunicate OK [11:30:46]SAM_PROTO_GetFieldsCounters done [11:30:46]requested_item shift.num is exist - process it [11:30:46]requested_item shift.opened is exist - process it [11:30:46]req_shift_opened [11:30:46]FM_GetShiftState [11:30:46]SAM_PROTO_GetShiftState [11:30:46]wFMCommunicate request_size=4 [11:30:46]MH_SAM_APDU [11:30:46]CAPDU: 80 13 01 00 [11:30:46]Write to MH i2c: E2 08 00 06 4C 80 13 01 00 00 00 00 00 CF [11:30:46]Write i2c OK [11:30:46]MH_I2C_Read... [11:30:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:30:46]Read from MH i2c: E2 [11:30:46]MH_I2C_Read... [11:30:46]Read from MH i2c: E2 0E 00 [11:30:46]MH_I2C_Read... [11:30:46]Read from MH i2c: E2 0E 00 06 4C 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 2E [11:30:46]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [11:30:46]wFMCommunicate OK [11:30:46]SAM_PROTO_GetShiftState done [11:30:46]FM_GetShiftState done [11:30:46]req_shift_opened done [11:30:46]requested_item shift.open_date is exist - process it [11:30:46]req_shift_open_date [11:30:46]req_shift_open_date done [11:30:46]produce_requested_data done [11:30:46]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187691,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [11:30:46]process_action_free close_receipt [11:30:46]json_value_free [11:30:46]json_value_free done [11:30:46]process_json_proto returns [11:30:46]Send response to host [11:30:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187691,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [11:30:46]free response buf [11:30:46]execute_script done [11:30:46]execute_script returns [11:30:46]free content buf [11:30:46]Sock 10.Close socket [11:30:46]Sock 10.Thread stoped [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:40]OFD Sender: No OFD packet to send [11:33:45]OFD Sender: No OFD packet to send [11:33:50]OFD Sender: No OFD packet to send [11:33:55]OFD Sender: No OFD packet to send [11:34:00]OFD Sender: No OFD packet to send [11:34:06]OFD Sender: No OFD packet to send [11:34:10]accept exits with 8 [11:34:10]New connection [11:34:10]New thread 3067157860 created [11:34:10]Thread 3067014500 joined [11:34:10]Waiting for new connection... [11:34:10] Sock 8.Parse request [11:34:10]Sock 8.Check first char [11:34:10]Sock 8.First char is OK [11:34:10]request: POST /json_proto HTTP/1.0 [11:34:10]Method: POST [11:34:10]URL: /json_proto [11:34:10]Method is POST - this is cgi request [11:34:10]url: /json_proto [11:34:10]query_string will be loaded in cgi processing [11:34:10]execute_cgi json_proto POST (null) [11:34:10]execute_cgi path=json_proto method=POST [11:34:10]POST find Content-Length [11:34:10]Host: 172.17.42.131:8080 [11:34:10]Content-Length: 682 [11:34:10]Content-Type: application/json [11:34:10] [11:34:10]POST finish read [11:34:10]Found Content-Length = 682 [11:34:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209744", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:34:10]execute_script... [11:34: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)209744", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:34:10]POST & json_proto [11:34:10]process_json_proto [11:34:10]json parsed OK: [11:34:10]protocol is kg_v1.0 [11:34:10]action value=close_receipt [11:34:10]process_action close_receipt [11:34:10]cmd_close_receipt [11:34:10]MH_GetDate [11:34:10]Write to MH i2c: F0 00 00 07 4C 42 [11:34:10]Write i2c OK [11:34:10]MH_I2C_Read... [11:34:10]Read from MH i2c: F0 [11:34:10]MH_I2C_Read... [11:34:10]Read from MH i2c: F0 09 00 [11:34:10]MH_I2C_Read... [11:34:10]Read from MH i2c: F0 09 00 07 4C 00 35 3C 16 67 A0 18 CA 66 21 [11:34:10]GetLastDocTimeStamp 1729510246 [11:34:10]current date 1729510453 [11:34:10]FM_GetShiftState [11:34:10]SAM_PROTO_GetShiftState [11:34:10]wFMCommunicate request_size=4 [11:34:10]MH_SAM_APDU [11:34:10]CAPDU: 80 13 01 00 [11:34:10]Write to MH i2c: E2 08 00 08 4C 80 13 01 00 00 00 00 00 D1 [11:34:10]Write i2c OK [11:34:10]MH_I2C_Read... [11:34:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:34:10]Read from MH i2c: E2 [11:34:10]MH_I2C_Read... [11:34:10]Read from MH i2c: E2 0E 00 [11:34:10]MH_I2C_Read... [11:34:10]Read from MH i2c: E2 0E 00 08 4C 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 30 [11:34:10]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [11:34:10]wFMCommunicate OK [11:34:10]SAM_PROTO_GetShiftState done [11:34:10]FM_GetShiftState done [11:34:10]opened in 1729469754 [11:34:10]opened+sec_in_day 1729556154 [11:34:10]quantity*price = 100021 [11:34:10]sum+1 = 100023 [11:34:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 156 21.10.2024 11:34 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 187692 ФПД: 158246539050045 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T113414&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187692&fm=158246539050045&tin=02508201610067®Number=0000000000100030&sum=100000 [11:34:11]StoreToDocumentArchive [11:34:11]shift 460 fd 187692 [11:34:11]save to /storage/0460/doc_00187692 [11:34:11]save last doc name /storage/0460/doc_00187692 to /storage/kkm_last_doc_name [11:34:11]save OK [11:34:11]Clear old archive folders... [11:34:11]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:34:11]tlvbuf is 0116FAE0 [11:34:11]SAM_PROTO_ClearQueue [11:34:11]wFMCommunicate request_size=4 [11:34:11]MH_SAM_APDU [11:34:11]CAPDU: 80 09 00 00 [11:34:11]Write to MH i2c: E2 08 00 15 4C 80 09 00 00 00 00 00 00 D3 [11:34:11]Write i2c OK [11:34:11]MH_I2C_Read... [11:34:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:34:11]Read from MH i2c: E2 [11:34:11]MH_I2C_Read... [11:34:11]Read from MH i2c: E2 03 00 [11:34:11]MH_I2C_Read... [11:34:11]Read from MH i2c: E2 03 00 15 4C 00 90 00 D5 [11:34:11]RAPDU: 90 00 [11:34:11]wFMCommunicate OK [11:34:11]SAM_PROTO_ClearQueue done [11:34:11]KKMCreateOFDPacket [11:34:11]OFDProtocolAddRootSTLVToBuf [11:34:11]FM_MakeSignedData [11:34:11]FM_MakeSignedData [11:34:11]SAM_PROTO_SignData [11:34:11]wFMCommunicate request_size=4 [11:34:11]MH_SAM_APDU [11:34:11]CAPDU: 80 0D 01 02 [11:34:11]Write to MH i2c: E2 08 00 16 4C 80 0D 01 02 00 00 00 00 DB [11:34:11]Write i2c OK [11:34:11]MH_I2C_Read... [11:34:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:34:11]Read from MH i2c: E2 [11:34:11]MH_I2C_Read... [11:34:11]Read from MH i2c: E2 03 00 [11:34:11]MH_I2C_Read... [11:34:11]Read from MH i2c: E2 03 00 16 4C 00 90 00 D6 [11:34:11]RAPDU: 90 00 [11:34:11]wFMCommunicate OK [11:34:11]wFMCommunicate request_size=255 [11:34:11]MH_SAM_APDU [11:34: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9C 00 00 00 F4 03 04 00 36 3C 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 2C DD 02 00 35 04 06 00 8F [11:34:11]Write to MH i2c: E2 02 01 17 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9C 00 00 00 F4 03 04 00 36 3C 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 2C DD 02 00 35 04 06 00 8F 00 00 5D [11:34:11]Write i2c OK [11:34:11]MH_I2C_Read... [11:34:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:34:11]Read from MH i2c: E2 [11:34:11]MH_I2C_Read... [11:34:11]Read from MH i2c: E2 03 00 [11:34:11]MH_I2C_Read... [11:34:11]Read from MH i2c: E2 03 00 17 4C 00 90 00 D7 [11:34:11]RAPDU: 90 00 [11:34:11]wFMCommunicate OK [11:34:11]wFMCommunicate request_size=10 [11:34:11]MH_SAM_APDU [11:34:11]CAPDU: 80 0D 02 02 05 EC A4 BF 3C 3D [11:34:11]Write to MH i2c: E2 0D 00 18 4C 80 0D 02 02 05 00 EC A4 BF 3C 3D 00 00 B0 [11:34:11]Write i2c OK [11:34:11]MH_I2C_Read... [11:34:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:34:11]Read from MH i2c: E2 [11:34:11]MH_I2C_Read... [11:34:11]Read from MH i2c: E2 03 00 [11:34:11]MH_I2C_Read... [11:34:11]Read from MH i2c: E2 03 00 18 4C 00 90 00 D8 [11:34:11]RAPDU: 90 00 [11:34:11]wFMCommunicate OK [11:34:11]wFMCommunicate request_size=4 [11:34:11]MH_SAM_APDU [11:34:11]CAPDU: 80 0D 03 02 [11:34:11]Write to MH i2c: E2 08 00 19 4C 80 0D 03 02 00 00 00 00 E0 [11:34:11]Write i2c OK [11:34:11]MH_I2C_Read... [11:34:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:34:11]Read from MH i2c: E2 [11:34:11]MH_I2C_Read... [11:34:11]Read from MH i2c: E2 0B 00 [11:34:11]MH_I2C_Read... [11:34:11]Read from MH i2c: E2 0B 00 19 4C 00 42 ED 23 76 92 E1 0F AF 90 00 DA [11:34:11]RAPDU: 42 ED 23 76 92 E1 0F AF 90 00 [11:34:11]wFMCommunicate OK [11:34:11]SAM_PROTO_SignData done [11:34:11]FM_MakeSignedData done [11:34:11]CreateOFDProtocolMessage [11:34:11]wFMCommunicate request_size=4 [11:34:11]MH_SAM_APDU [11:34:11]CAPDU: 80 11 00 00 [11:34:11]Write to MH i2c: E2 08 00 1A 4C 80 11 00 00 00 00 00 00 E0 [11:34:11]Write i2c OK [11:34:11]MH_I2C_Read... [11:34:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:34:11]Read from MH i2c: E2 [11:34:11]MH_I2C_Read... [11:34:11]Read from MH i2c: E2 17 00 [11:34:11]MH_I2C_Read... [11:34:11]Read from MH i2c: E2 17 00 1A 4C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 2E [11:34:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [11:34:11]wFMCommunicate OK [11:34:11]CreateOFDProtocolMessage done [11:34:11]OFDSenderStorePacket 187692 [11:34:11]StoreOFDPacket docnum=187692 [11:34:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 1D 04 07 01 8C 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9C 00 00 00 F4 03 04 00 36 3C 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 2C DD 02 00 35 04 06 00 8F EC A4 BF 3C 3D 42 ED 23 76 92 E1 0F AF [11:34:11]CheckFolder [11:34:11]dirname=/storage/ofd_packets [11:34:11]CheckFolder done [11:34:11]ProducePacketName [11:34:11]name=ofd_packets/00187692 [11:34:11]NVStorageSaveData ofd_packets/00187692 [11:34:11]File name is /storage/ofd_packets/00187692 [11:34:11]Write 301 bytes [11:34:11]NVStorageSaveData done [11:34:11]OFDSenderStorePacket done [11:34:11]KKMCreateOFDPacket done [11:34:11]NVStorageSaveData kkm_last_timestamp [11:34:11]File name is /storage/kkm_last_timestamp [11:34:11]Write 4 bytes [11:34:11]NVStorageSaveData done [11:34:11]ExternCall_PrintAddStr [11:34:11]wPrintStart [11:34:11]Write to MH i2c: 01 00 00 1B 4C 67 [11:34:11]Write i2c OK [11:34:11]MH_I2C_Read... [11:34:11]Read from MH i2c: 01 [11:34:11]MH_I2C_Read... [11:34:11]Read from MH i2c: 01 07 00 [11:34:11]MH_I2C_Read... [11:34:11]Read from MH i2c: 01 07 00 1B 4C 00 00 00 00 00 FF 0F 7C [11:34:11]RasterBufferAndPrint [11:34:11]line Счет N : (1)209744 [11:34:11]line ИНН: 02508201610067 [11:34:11]line Контрольно-Кассовый Чек [11:34:11]line ПРОДАЖА [11:34:11]line ТРК (МРК, ГНК) : 33 [11:34:11]line Товар: 2710124500 [11:34:11]line Аи-95-К-3 [11:34:11]line 13.480 * 74.20 [11:34:11]line = 1000.22 [11:34:11]line НДС 12% НСП 1% [11:34:11]line > о реализуемом товаре [11:34:11]line ОКРУГЛЕНИЕ: -0.22 [11:34:11]line ИТОГО: 1000.00 [11:34:11]line Внесено: 1000.00 [11:34:11]line СДАЧА: 0.00 [11:34:11]line НСП 1% : 8.85 [11:34:11]line НДС 12% : 106.22 [11:34:11]line Наличными: 1000.00 [11:34:11]line Безнал.: 0.00 [11:34:11]line Место: АЗС № 86 "Партнер Нефть" [11:34:11]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [11:34:11]line СНО: Общий режим [11:34:11]line Чек 156 21.10.2024 11:34 [11:34:11]line Смена: 460 ФФД: 1.0 [11:34:11]line ЗНМ: 0300000155 [11:34:11]line РНМ: 0000000000100030 [11:34:11]line Версия ККМ: 001 [11:34:11]line ФМ: 0000000000965340 [11:34:11]line ФД: 187692 [11:34:11]line ФПД: 158246539050045 [11:34:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T113414&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187692&fm=158246539050045&tin=02508201610067®Number=0000000000100030&sum=100000 [11:34:11]written 0, free lines is 4095 [11:34:11]OFD Sender: Processing packet 187692 [packets to send 1062, broken 1061] [11:34:11]ProducePacketName [11:34:11]name=ofd_packets/00187692 [11:34:11]OFD Sender: To server: pG, [11:34:11]CommunicateWithHost lk.salyk.kg:30040 [11:34:11]ConnectInit lk.salyk.kg [11:34:12]Write to MH i2c: 01 00 00 46 4C 92 [11:34:12]Write i2c OK [11:34:12]MH_I2C_Read... [11:34:12]Read from MH i2c: 01 [11:34:12]MH_I2C_Read... [11:34:12]Read from MH i2c: 01 07 00 [11:34:12]MH_I2C_Read... [11:34:12]Read from MH i2c: 01 07 00 46 4C 00 00 00 00 00 7C 0C 21 [11:34:12]RasterBufferAndPrint [11:34:12]line [11:34:12]line [11:34:12]line [11:34:12]line [11:34:12]line [11:34:12]written 0, free lines is 3199 [11:34:12]MH_Cut [11:34:12]Write to MH i2c: D1 01 00 4D 4C 01 6B [11:34:12]Write i2c OK [11:34:12]MH_I2C_Read... [11:34:12]Read from MH i2c: D1 [11:34:12]MH_I2C_Read... [11:34:12]Read from MH i2c: D1 01 00 [11:34:12]MH_I2C_Read... [11:34:12]Read from MH i2c: D1 01 00 4D 4C 00 6A [11:34:12]Write to MH i2c: 01 00 00 4E 4C 9A [11:34:12]Write i2c OK [11:34:12]MH_I2C_Read... [11:34:12]Connected sock=10 [11:34:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 1D 04 07 01 8C 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9C 00 00 00 F4 03 04 00 36 3C 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 2C DD 02 00 35 04 06 00 8F EC A4 BF 3C 3D 42 ED 23 76 92 E1 0F AF [11:34:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 34 4B 47 00 A9 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 39 36 35 33 34 30 10 04 04 00 2C DD 02 00 F4 03 04 00 26 E6 15 67 B6 04 01 00 00 84 C4 91 4D 15 1A 50 90 [11:34:12]CommunicateWithHost err = 0 [11:34:12]CheckOFDResponse [11:34:12]1017 (14) - 77093643461234 [11:34:12]1041 (16) - 0000000000965340 [11:34:12]1040 (4) - 187692 [11:34:12]1012 (4) - 21.10.2024 05:27 [11:34:12]1206 (1) - 0 [11:34:12]OFD Sender: Remove packet 187692 [11:34:12]ProducePacketName [11:34:12]name=ofd_packets/00187692 [11:34:12]NVStorageDeleteData [11:34:13]OFD Sender: No OFD packet to send [11:34:13]*** Cut start [11:34:13]*** Partial cut [11:34:13]*** CUTSNS_PIN = 1 [11:34:13]*** CUTSNS_PIN = 0 [11:34:13]*** Brake cut motor [11:34:13]Read from MH i2c: 01 [11:34:14]MH_I2C_Read... [11:34:14]*** Stop cut motor [11:34:14]*** Cut end [11:34:14]Read from MH i2c: 01 07 00 [11:34:14]MH_I2C_Read... [11:34:14]Read from MH i2c: 01 07 00 4E 4C 00 00 00 00 00 FF 0F AF [11:34:14]process_action close_receipt done [11:34:14]requested_data is exist [11:34:14]produce_requested_data [11:34:14]requested_item fm.sn is exist - process it [11:34:14]wFMCommunicate request_size=4 [11:34:14]MH_SAM_APDU [11:34:14]CAPDU: 80 11 00 00 [11:34:14]Write to MH i2c: E2 08 00 4F 4C 80 11 00 00 00 00 00 00 15 [11:34:14]Write i2c OK [11:34:14]MH_I2C_Read... [11:34:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:34:14]Read from MH i2c: E2 [11:34:14]MH_I2C_Read... [11:34:14]Read from MH i2c: E2 17 00 [11:34:14]MH_I2C_Read... [11:34:14]Read from MH i2c: E2 17 00 4F 4C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 63 [11:34:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [11:34:14]wFMCommunicate OK [11:34:14]requested_item fd.num is exist - process it [11:34:14]SAM_PROTO_GetFieldsCounters [11:34:14]wFMCommunicate request_size=4 [11:34:14]MH_SAM_APDU [11:34:14]CAPDU: 80 13 00 00 [11:34:14]Write to MH i2c: E2 08 00 50 4C 80 13 00 00 00 00 00 00 18 [11:34:14]Write i2c OK [11:34:14]MH_I2C_Read... [11:34:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:34:14]Read from MH i2c: E2 [11:34:14]MH_I2C_Read... [11:34:14]Read from MH i2c: E2 62 00 [11:34:14]MH_I2C_Read... [11:34:14]Read from MH i2c: E2 62 00 50 4C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 2C DD 02 00 0E 04 04 00 CC 01 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 CB [11:34:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 2C DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 9C 00 00 00 5E 04 04 00 9C 00 00 00 57 04 04 00 9D 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:34:14]wFMCommunicate OK [11:34:14]SAM_PROTO_GetFieldsCounters done [11:34:14]requested_item shift.num is exist - process it [11:34:14]requested_item shift.opened is exist - process it [11:34:14]req_shift_opened [11:34:14]FM_GetShiftState [11:34:14]SAM_PROTO_GetShiftState [11:34:14]wFMCommunicate request_size=4 [11:34:14]MH_SAM_APDU [11:34:14]CAPDU: 80 13 01 00 [11:34:14]Write to MH i2c: E2 08 00 51 4C 80 13 01 00 00 00 00 00 1A [11:34:14]Write i2c OK [11:34:14]MH_I2C_Read... [11:34:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:34:14]Read from MH i2c: E2 [11:34:14]MH_I2C_Read... [11:34:14]Read from MH i2c: E2 0E 00 [11:34:14]MH_I2C_Read... [11:34:14]Read from MH i2c: E2 0E 00 51 4C 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 79 [11:34:14]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [11:34:14]wFMCommunicate OK [11:34:14]SAM_PROTO_GetShiftState done [11:34:14]FM_GetShiftState done [11:34:14]req_shift_opened done [11:34:14]requested_item shift.open_date is exist - process it [11:34:14]req_shift_open_date [11:34:14]req_shift_open_date done [11:34:14]produce_requested_data done [11:34:14]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187692,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [11:34:14]process_action_free close_receipt [11:34:14]json_value_free [11:34:14]json_value_free done [11:34:14]process_json_proto returns [11:34:14]Send response to host [11:34:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187692,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [11:34:14]free response buf [11:34:14]execute_script done [11:34:14]execute_script returns [11:34:14]free content buf [11:34:14]Sock 8.Close socket [11:34:14]Sock 8.Thread stoped [11:34:18]OFD Sender: No OFD packet to send [11:34:23]OFD Sender: No OFD packet to send [11:34:28]OFD Sender: No OFD packet to send [11:34:33]OFD Sender: No OFD packet to send [11:34:38]OFD Sender: No OFD packet to send [11:34:43]OFD Sender: No OFD packet to send [11:34:48]OFD Sender: No OFD packet to send [11:34:53]OFD Sender: No OFD packet to send [11:34:58]OFD Sender: No OFD packet to send [11:35:03]OFD Sender: No OFD packet to send [11:35:08]OFD Sender: No OFD packet to send [11:35:13]OFD Sender: No OFD packet to send [11:35:18]OFD Sender: No OFD packet to send [11:35:23]OFD Sender: No OFD packet to send [11:35:28]OFD Sender: No OFD packet to send [11:35:33]OFD Sender: No OFD packet to send [11:35:38]OFD Sender: No OFD packet to send [11:35:43]OFD Sender: No OFD packet to send [11:35:48]OFD Sender: No OFD packet to send [11:35:53]OFD Sender: No OFD packet to send [11:35:58]OFD Sender: No OFD packet to send [11:36:03]OFD Sender: No OFD packet to send [11:36:08]OFD Sender: No OFD packet to send [11:36:13]OFD Sender: No OFD packet to send [11:36:18]OFD Sender: No OFD packet to send [11:36:23]OFD Sender: No OFD packet to send [11:36:28]OFD Sender: No OFD packet to send [11:36:33]OFD Sender: No OFD packet to send [11:36:38]OFD Sender: No OFD packet to send [11:36:43]OFD Sender: No OFD packet to send [11:36:48]OFD Sender: No OFD packet to send [11:36:59]OFD Sender: No OFD packet to send [11:37:04]OFD Sender: No OFD packet to send [11:37:09]OFD Sender: No OFD packet to send [11:37:14]OFD Sender: No OFD packet to send [11:37:19]OFD Sender: No OFD packet to send [11:37:24]OFD Sender: No OFD packet to send [11:37:29]OFD Sender: No OFD packet to send [11:37:34]OFD Sender: No OFD packet to send [11:37:39]OFD Sender: No OFD packet to send [11:37:44]OFD Sender: No OFD packet to send [11:37:49]OFD Sender: No OFD packet to send [11:37:54]OFD Sender: No OFD packet to send [11:37:59]OFD Sender: No OFD packet to send [11:38:04]OFD Sender: No OFD packet to send [11:38:09]OFD Sender: No OFD packet to send [11:38:14]OFD Sender: No OFD packet to send [11:38:19]OFD Sender: No OFD packet to send [11:38:24]OFD Sender: No OFD packet to send [11:38:29]OFD Sender: No OFD packet to send [11:38:34]OFD Sender: No OFD packet to send [11:38:39]OFD Sender: No OFD packet to send [11:38:44]OFD Sender: No OFD packet to send [11:38:49]OFD Sender: No OFD packet to send [11:38:54]OFD Sender: No OFD packet to send [11:38:59]OFD Sender: No OFD packet to send [11:39:04]OFD Sender: No OFD packet to send [11:39:05]ConnectInit Can't connect to host [11:39:09]OFD Sender: No OFD packet to send [11:39:14]OFD Sender: No OFD packet to send [11:39:19]OFD Sender: No OFD packet to send [11:39:24]OFD Sender: No OFD packet to send [11:39:29]OFD Sender: No OFD packet to send [11:39:34]OFD Sender: No OFD packet to send [11:39:39]OFD Sender: No OFD packet to send [11:39:44]OFD Sender: No OFD packet to send [11:39:49]OFD Sender: No OFD packet to send [11:39:54]OFD Sender: No OFD packet to send [11:39:59]OFD Sender: No OFD packet to send [11:40:04]OFD Sender: No OFD packet to send [11:40:09]OFD Sender: No OFD packet to send [11:40:14]OFD Sender: No OFD packet to send [11:40:19]OFD Sender: No OFD packet to send [11:40:24]OFD Sender: No OFD packet to send [11:40:29]OFD Sender: No OFD packet to send [11:40:34]OFD Sender: No OFD packet to send [11:40:39]accept exits with 9 [11:40:39]New connection [11:40:39]New thread 3067014500 created [11:40:39]Thread 3067157860 joined [11:40:39]Waiting for new connection... [11:40:39] Sock 9.Parse request [11:40:39]Sock 9.Check first char [11:40:39]Sock 9.First char is OK [11:40:39]request: POST /json_proto HTTP/1.0 [11:40:39]Method: POST [11:40:39]URL: /json_proto [11:40:39]Method is POST - this is cgi request [11:40:39]url: /json_proto [11:40:39]query_string will be loaded in cgi processing [11:40:39]execute_cgi json_proto POST (null) [11:40:39]execute_cgi path=json_proto method=POST [11:40:39]POST find Content-Length [11:40:39]Host: 172.17.42.131:8080 [11:40:39]Content-Length: 682 [11:40:39]Content-Type: application/json [11:40:39] [11:40:39]POST finish read [11:40:39]Found Content-Length = 682 [11:40:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209745", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 25.070, "sum" : 1860.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 1860.00, "payments": [ { "type": 0, "sum" : 1860.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:40:39]execute_script... [11:40: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)209745", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 25.070, "sum" : 1860.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 1860.00, "payments": [ { "type": 0, "sum" : 1860.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:40:39]POST & json_proto [11:40:39]process_json_proto [11:40:39]json parsed OK: [11:40:39]protocol is kg_v1.0 [11:40:39]action value=close_receipt [11:40:39]process_action close_receipt [11:40:39]cmd_close_receipt [11:40:39]MH_GetDate [11:40:39]Write to MH i2c: F0 00 00 52 4C 8D [11:40:39]Write i2c OK [11:40:39]MH_I2C_Read... [11:40:39]Read from MH i2c: F0 [11:40:39]MH_I2C_Read... [11:40:39]Read from MH i2c: F0 09 00 [11:40:39]MH_I2C_Read... [11:40:39]Read from MH i2c: F0 09 00 52 4C 00 BB 3D 16 67 A0 18 CA 66 F3 [11:40:39]GetLastDocTimeStamp 1729510454 [11:40:39]current date 1729510843 [11:40:39]FM_GetShiftState [11:40:39]SAM_PROTO_GetShiftState [11:40:39]wFMCommunicate request_size=4 [11:40:39]MH_SAM_APDU [11:40:39]CAPDU: 80 13 01 00 [11:40:39]Write to MH i2c: E2 08 00 53 4C 80 13 01 00 00 00 00 00 1C [11:40:39]Write i2c OK [11:40:39]MH_I2C_Read... [11:40:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:40:39]Read from MH i2c: E2 [11:40:39]MH_I2C_Read... [11:40:39]Read from MH i2c: E2 0E 00 [11:40:39]MH_I2C_Read... [11:40:39]Read from MH i2c: E2 0E 00 53 4C 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 7B [11:40:39]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [11:40:39]wFMCommunicate OK [11:40:39]SAM_PROTO_GetShiftState done [11:40:39]FM_GetShiftState done [11:40:39]opened in 1729469754 [11:40:39]opened+sec_in_day 1729556154 [11:40:39]quantity*price = 186019 [11:40:39]sum+1 = 186020 [11:40:39]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.19 ИТОГО: 1860.00 Внесено: 2000.00 СДАЧА: 140.00 НСП 1% : 16.46 НДС 12% : 197.54 Наличными: 1860.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 157 21.10.2024 11:40 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 187693 ФПД: 120776464554516 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T114043&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187693&fm=120776464554516&tin=02508201610067®Number=0000000000100030&sum=186000 [11:40:40]StoreToDocumentArchive [11:40:40]shift 460 fd 187693 [11:40:40]save to /storage/0460/doc_00187693 [11:40:40]save last doc name /storage/0460/doc_00187693 to /storage/kkm_last_doc_name [11:40:40]save OK [11:40:40]Clear old archive folders... [11:40:40]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:40:40]tlvbuf is 0116FCA0 [11:40:40]SAM_PROTO_ClearQueue [11:40:40]wFMCommunicate request_size=4 [11:40:40]MH_SAM_APDU [11:40:40]CAPDU: 80 09 00 00 [11:40:40]Write to MH i2c: E2 08 00 60 4C 80 09 00 00 00 00 00 00 1E [11:40:40]Write i2c OK [11:40:40]MH_I2C_Read... [11:40:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:40:40]Read from MH i2c: E2 [11:40:40]MH_I2C_Read... [11:40:40]Read from MH i2c: E2 03 00 [11:40:40]MH_I2C_Read... [11:40:40]Read from MH i2c: E2 03 00 60 4C 00 90 00 20 [11:40:40]RAPDU: 90 00 [11:40:40]wFMCommunicate OK [11:40:40]SAM_PROTO_ClearQueue done [11:40:40]KKMCreateOFDPacket [11:40:40]OFDProtocolAddRootSTLVToBuf [11:40:40]FM_MakeSignedData [11:40:40]FM_MakeSignedData [11:40:40]SAM_PROTO_SignData [11:40:40]wFMCommunicate request_size=4 [11:40:40]MH_SAM_APDU [11:40:40]CAPDU: 80 0D 01 02 [11:40:40]Write to MH i2c: E2 08 00 61 4C 80 0D 01 02 00 00 00 00 26 [11:40:40]Write i2c OK [11:40:40]MH_I2C_Read... [11:40:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:40:40]Read from MH i2c: E2 [11:40:40]MH_I2C_Read... [11:40:40]Read from MH i2c: E2 03 00 [11:40:40]MH_I2C_Read... [11:40:40]Read from MH i2c: E2 03 00 61 4C 00 90 00 21 [11:40:40]RAPDU: 90 00 [11:40:40]wFMCommunicate OK [11:40:40]wFMCommunicate request_size=255 [11:40:40]MH_SAM_APDU [11:40:40]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 EE 61 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 A3 D6 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D6 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6E 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2A 4D 00 00 00 00 07 04 06 00 90 D6 02 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 BB 3D 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 2D DD 02 00 35 04 06 00 6D [11:40:40]Write to MH i2c: E2 02 01 62 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 EE 61 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 A3 D6 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D6 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6E 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2A 4D 00 00 00 00 07 04 06 00 90 D6 02 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 BB 3D 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 2D DD 02 00 35 04 06 00 6D 00 00 0D [11:40:40]Write i2c OK [11:40:40]MH_I2C_Read... [11:40:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:40:40]Read from MH i2c: E2 [11:40:40]MH_I2C_Read... [11:40:40]Read from MH i2c: E2 03 00 [11:40:40]MH_I2C_Read... [11:40:40]Read from MH i2c: E2 03 00 62 4C 00 90 00 22 [11:40:40]RAPDU: 90 00 [11:40:40]wFMCommunicate OK [11:40:40]wFMCommunicate request_size=10 [11:40:40]MH_SAM_APDU [11:40:40]CAPDU: 80 0D 02 02 05 D8 76 44 5A 14 [11:40:40]Write to MH i2c: E2 0D 00 63 4C 80 0D 02 02 05 00 D8 76 44 5A 14 00 00 33 [11:40:40]Write i2c OK [11:40:40]MH_I2C_Read... [11:40:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:40:40]Read from MH i2c: E2 [11:40:40]MH_I2C_Read... [11:40:40]Read from MH i2c: E2 03 00 [11:40:40]MH_I2C_Read... [11:40:40]Read from MH i2c: E2 03 00 63 4C 00 90 00 23 [11:40:40]RAPDU: 90 00 [11:40:40]wFMCommunicate OK [11:40:40]wFMCommunicate request_size=4 [11:40:40]MH_SAM_APDU [11:40:40]CAPDU: 80 0D 03 02 [11:40:40]Write to MH i2c: E2 08 00 64 4C 80 0D 03 02 00 00 00 00 2B [11:40:40]Write i2c OK [11:40:40]MH_I2C_Read... [11:40:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:40:40]Read from MH i2c: E2 [11:40:40]MH_I2C_Read... [11:40:40]Read from MH i2c: E2 0B 00 [11:40:40]MH_I2C_Read... [11:40:40]Read from MH i2c: E2 0B 00 64 4C 00 74 16 25 26 B2 CF 71 2E 90 00 21 [11:40:40]RAPDU: 74 16 25 26 B2 CF 71 2E 90 00 [11:40:40]wFMCommunicate OK [11:40:40]SAM_PROTO_SignData done [11:40:40]FM_MakeSignedData done [11:40:40]CreateOFDProtocolMessage [11:40:40]wFMCommunicate request_size=4 [11:40:40]MH_SAM_APDU [11:40:40]CAPDU: 80 11 00 00 [11:40:40]Write to MH i2c: E2 08 00 65 4C 80 11 00 00 00 00 00 00 2B [11:40:40]Write i2c OK [11:40:40]MH_I2C_Read... [11:40:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:40:40]Read from MH i2c: E2 [11:40:40]MH_I2C_Read... [11:40:40]Read from MH i2c: E2 17 00 [11:40:40]MH_I2C_Read... [11:40:40]Read from MH i2c: E2 17 00 65 4C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 79 [11:40:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [11:40:40]wFMCommunicate OK [11:40:40]CreateOFDProtocolMessage done [11:40:40]OFDSenderStorePacket 187693 [11:40:40]StoreOFDPacket docnum=187693 [11:40:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 68 00 07 01 36 BC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 EE 61 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 A3 D6 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D6 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6E 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2A 4D 00 00 00 00 07 04 06 00 90 D6 02 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 BB 3D 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 2D DD 02 00 35 04 06 00 6D D8 76 44 5A 14 74 16 25 26 B2 CF 71 2E [11:40:40]CheckFolder [11:40:40]dirname=/storage/ofd_packets [11:40:40]CheckFolder done [11:40:40]ProducePacketName [11:40:40]name=ofd_packets/00187693 [11:40:40]NVStorageSaveData ofd_packets/00187693 [11:40:40]File name is /storage/ofd_packets/00187693 [11:40:40]Write 301 bytes [11:40:40]NVStorageSaveData done [11:40:40]OFDSenderStorePacket done [11:40:40]KKMCreateOFDPacket done [11:40:40]NVStorageSaveData kkm_last_timestamp [11:40:40]File name is /storage/kkm_last_timestamp [11:40:40]Write 4 bytes [11:40:40]NVStorageSaveData done [11:40:40]ExternCall_PrintAddStr [11:40:40]wPrintStart [11:40:40]Write to MH i2c: 01 00 00 66 4C B2 [11:40:40]Write i2c OK [11:40:40]MH_I2C_Read... [11:40:40]Read from MH i2c: 01 [11:40:40]MH_I2C_Read... [11:40:40]Read from MH i2c: 01 07 00 [11:40:40]MH_I2C_Read... [11:40:40]Read from MH i2c: 01 07 00 66 4C 00 00 00 00 00 FF 0F C7 [11:40:40]RasterBufferAndPrint [11:40:40]line Счет N : (1)209745 [11:40:40]line ИНН: 02508201610067 [11:40:40]line Контрольно-Кассовый Чек [11:40:40]line ПРОДАЖА [11:40:40]line ТРК (МРК, ГНК) : 23 [11:40:40]line Товар: 2710124500 [11:40:40]line Аи-95-К-3 [11:40:40]line 25.070 * 74.20 [11:40:40]line = 1860.19 [11:40:40]line НДС 12% НСП 1% [11:40:40]line > о реализуемом товаре [11:40:40]line ОКРУГЛЕНИЕ: -0.19 [11:40:40]line ИТОГО: 1860.00 [11:40:40]line Внесено: 2000.00 [11:40:40]line СДАЧА: 140.00 [11:40:40]line НСП 1% : 16.46 [11:40:40]line НДС 12% : 197.54 [11:40:40]line Наличными: 1860.00 [11:40:40]line Безнал.: 0.00 [11:40:40]line Место: АЗС № 86 "Партнер Нефть" [11:40:40]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [11:40:40]line СНО: Общий режим [11:40:40]line Чек 157 21.10.2024 11:40 [11:40:40]line Смена: 460 ФФД: 1.0 [11:40:40]line ЗНМ: 0300000155 [11:40:40]line РНМ: 0000000000100030 [11:40:40]line Версия ККМ: 001 [11:40:40]line ФМ: 0000000000965340 [11:40:40]line ФД: 187693 [11:40:40]line ФПД: 120776464554516 [11:40:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T114043&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187693&fm=120776464554516&tin=02508201610067®Number=0000000000100030&sum=186000 [11:40:40]written 0, free lines is 4095 [11:40:40]OFD Sender: Processing packet 187693 [packets to send 1062, broken 1061] [11:40:40]ProducePacketName [11:40:40]name=ofd_packets/00187693 [11:40:40]OFD Sender: To server: pG, [11:40:40]CommunicateWithHost lk.salyk.kg:30040 [11:40:40]ConnectInit lk.salyk.kg [11:40:41]Connected sock=10 [11:40:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 68 00 07 01 36 BC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 EE 61 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 A3 D6 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D6 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6E 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2A 4D 00 00 00 00 07 04 06 00 90 D6 02 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 BB 3D 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 2D DD 02 00 35 04 06 00 6D D8 76 44 5A 14 74 16 25 26 B2 CF 71 2E [11:40:41]Write to MH i2c: 01 00 00 91 4C DD [11:40:41]Write i2c OK [11:40:41]MH_I2C_Read... [11:40:41]Read from MH i2c: 01 [11:40:41]MH_I2C_Read... [11:40:41]Read from MH i2c: 01 07 00 [11:40:41]MH_I2C_Read... [11:40:41]Read from MH i2c: 01 07 00 91 4C 00 00 00 00 00 78 0C 68 [11:40:41]RasterBufferAndPrint [11:40:41]line [11:40:41]line [11:40:41]line [11:40:41]line [11:40:41]line [11:40:41]written 0, free lines is 3196 [11:40:41]MH_Cut [11:40:41]Write to MH i2c: D1 01 00 98 4C 01 B6 [11:40:41]Write i2c OK [11:40:41]MH_I2C_Read... [11:40:41]Read from MH i2c: D1 [11:40:41]MH_I2C_Read... [11:40:41]Read from MH i2c: D1 01 00 [11:40:41]MH_I2C_Read... [11:40:41]Read from MH i2c: D1 01 00 98 4C 00 B5 [11:40:41]Write to MH i2c: 01 00 00 99 4C E5 [11:40:41]Write i2c OK [11:40:41]MH_I2C_Read... [11:40:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 80 1B 47 00 E5 2F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 2D DD 02 00 F4 03 04 00 AA E7 15 67 B6 04 01 00 00 67 BE F9 BA 9B 53 59 80 [11:40:41]CommunicateWithHost err = 0 [11:40:41]CheckOFDResponse [11:40:41]1017 (14) - 77093643461234 [11:40:41]1041 (16) - 0000000000965340 [11:40:41]1040 (4) - 187693 [11:40:41]1012 (4) - 21.10.2024 05:33 [11:40:41]1206 (1) - 0 [11:40:41]OFD Sender: Remove packet 187693 [11:40:41]ProducePacketName [11:40:41]name=ofd_packets/00187693 [11:40:41]NVStorageDeleteData [11:40:42]OFD Sender: No OFD packet to send [11:40:42]*** Cut start [11:40:42]*** Partial cut [11:40:42]*** CUTSNS_PIN = 1 [11:40:42]*** CUTSNS_PIN = 0 [11:40:42]*** Brake cut motor [11:40:43]Read from MH i2c: 01 [11:40:43]MH_I2C_Read... [11:40:43]*** Stop cut motor [11:40:43]*** Cut end [11:40:43]Read from MH i2c: 01 07 00 [11:40:43]MH_I2C_Read... [11:40:43]Read from MH i2c: 01 07 00 99 4C 00 00 00 00 00 FF 0F FA [11:40:43]process_action close_receipt done [11:40:43]requested_data is exist [11:40:43]produce_requested_data [11:40:43]requested_item fm.sn is exist - process it [11:40:43]wFMCommunicate request_size=4 [11:40:43]MH_SAM_APDU [11:40:43]CAPDU: 80 11 00 00 [11:40:43]Write to MH i2c: E2 08 00 9A 4C 80 11 00 00 00 00 00 00 60 [11:40:43]Write i2c OK [11:40:43]MH_I2C_Read... [11:40:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:40:43]Read from MH i2c: E2 [11:40:43]MH_I2C_Read... [11:40:43]Read from MH i2c: E2 17 00 [11:40:43]MH_I2C_Read... [11:40:43]Read from MH i2c: E2 17 00 9A 4C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 AE [11:40:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [11:40:43]wFMCommunicate OK [11:40:43]requested_item fd.num is exist - process it [11:40:43]SAM_PROTO_GetFieldsCounters [11:40:43]wFMCommunicate request_size=4 [11:40:43]MH_SAM_APDU [11:40:43]CAPDU: 80 13 00 00 [11:40:43]Write to MH i2c: E2 08 00 9B 4C 80 13 00 00 00 00 00 00 63 [11:40:43]Write i2c OK [11:40:43]MH_I2C_Read... [11:40:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:40:43]Read from MH i2c: E2 [11:40:43]MH_I2C_Read... [11:40:43]Read from MH i2c: E2 62 00 [11:40:43]MH_I2C_Read... [11:40:43]Read from MH i2c: E2 62 00 9B 4C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 2D DD 02 00 0E 04 04 00 CC 01 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 1A [11:40:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 2D DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 9D 00 00 00 5E 04 04 00 9D 00 00 00 57 04 04 00 9E 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:40:43]wFMCommunicate OK [11:40:43]SAM_PROTO_GetFieldsCounters done [11:40:43]requested_item shift.num is exist - process it [11:40:43]requested_item shift.opened is exist - process it [11:40:43]req_shift_opened [11:40:43]FM_GetShiftState [11:40:43]SAM_PROTO_GetShiftState [11:40:43]wFMCommunicate request_size=4 [11:40:43]MH_SAM_APDU [11:40:43]CAPDU: 80 13 01 00 [11:40:43]Write to MH i2c: E2 08 00 9C 4C 80 13 01 00 00 00 00 00 65 [11:40:43]Write i2c OK [11:40:43]MH_I2C_Read... [11:40:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:40:43]Read from MH i2c: E2 [11:40:43]MH_I2C_Read... [11:40:43]Read from MH i2c: E2 0E 00 [11:40:43]MH_I2C_Read... [11:40:43]Read from MH i2c: E2 0E 00 9C 4C 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 C4 [11:40:43]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [11:40:43]wFMCommunicate OK [11:40:43]SAM_PROTO_GetShiftState done [11:40:43]FM_GetShiftState done [11:40:43]req_shift_opened done [11:40:43]requested_item shift.open_date is exist - process it [11:40:43]req_shift_open_date [11:40:43]req_shift_open_date done [11:40:43]produce_requested_data done [11:40:43]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187693,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [11:40:43]process_action_free close_receipt [11:40:43]json_value_free [11:40:43]json_value_free done [11:40:43]process_json_proto returns [11:40:43]Send response to host [11:40:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187693,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [11:40:43]free response buf [11:40:43]execute_script done [11:40:43]execute_script returns [11:40:43]free content buf [11:40:43]Sock 9.Close socket [11:40:43]Sock 9.Thread stoped [11:40:47]OFD Sender: No OFD packet to send [11:40:52]OFD Sender: No OFD packet to send [11:40:57]OFD Sender: No OFD packet to send [11:41:02]OFD Sender: No OFD packet to send [11:41:07]OFD Sender: No OFD packet to send [11:41:12]OFD Sender: No OFD packet to send [11:41:17]OFD Sender: No OFD packet to send [11:41:22]OFD Sender: No OFD packet to send [11:41:27]OFD Sender: No OFD packet to send [11:41:32]OFD Sender: No OFD packet to send [11:41:37]OFD Sender: No OFD packet to send [11:41:42]OFD Sender: No OFD packet to send [11:41:47]OFD Sender: No OFD packet to send [11:41:52]OFD Sender: No OFD packet to send [11:41:55]accept exits with 8 [11:41:55]New connection [11:41:55]New thread 3067157860 created [11:41:55]Thread 3067014500 joined [11:41:55]Waiting for new connection... [11:41:55] Sock 8.Parse request [11:41:55]Sock 8.Check first char [11:41:55]Sock 8.First char is OK [11:41:55]request: POST /json_proto HTTP/1.0 [11:41:55]Method: POST [11:41:55]URL: /json_proto [11:41:55]Method is POST - this is cgi request [11:41:55]url: /json_proto [11:41:55]query_string will be loaded in cgi processing [11:41:55]execute_cgi json_proto POST (null) [11:41:55]execute_cgi path=json_proto method=POST [11:41:55]POST find Content-Length [11:41:55]Host: 172.17.42.131:8080 [11:41:55]Content-Length: 688 [11:41:55]Content-Type: application/json [11:41:55] [11:41:55]POST finish read [11:41:55]Found Content-Length = 688 [11:41:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209746", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 25.910, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:41:55]execute_script... [11:41: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)209746", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 25.910, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:41:55]POST & json_proto [11:41:55]process_json_proto [11:41:55]json parsed OK: [11:41:55]protocol is kg_v1.0 [11:41:55]action value=close_receipt [11:41:55]process_action close_receipt [11:41:55]cmd_close_receipt [11:41:55]MH_GetDate [11:41:55]Write to MH i2c: F0 00 00 9D 4C D8 [11:41:55]Write i2c OK [11:41:55]MH_I2C_Read... [11:41:55]Read from MH i2c: F0 [11:41:55]MH_I2C_Read... [11:41:55]Read from MH i2c: F0 09 00 [11:41:55]MH_I2C_Read... [11:41:55]Read from MH i2c: F0 09 00 9D 4C 00 07 3E 16 67 A0 18 CA 66 8B [11:41:55]GetLastDocTimeStamp 1729510843 [11:41:55]current date 1729510919 [11:41:55]FM_GetShiftState [11:41:55]SAM_PROTO_GetShiftState [11:41:55]wFMCommunicate request_size=4 [11:41:55]MH_SAM_APDU [11:41:55]CAPDU: 80 13 01 00 [11:41:55]Write to MH i2c: E2 08 00 9E 4C 80 13 01 00 00 00 00 00 67 [11:41:55]Write i2c OK [11:41:55]MH_I2C_Read... [11:41:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:41:55]Read from MH i2c: E2 [11:41:55]MH_I2C_Read... [11:41:55]Read from MH i2c: E2 0E 00 [11:41:55]MH_I2C_Read... [11:41:55]Read from MH i2c: E2 0E 00 9E 4C 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 C6 [11:41:55]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [11:41:55]wFMCommunicate OK [11:41:55]SAM_PROTO_GetShiftState done [11:41:55]FM_GetShiftState done [11:41:55]opened in 1729469754 [11:41:55]opened+sec_in_day 1729556154 [11:41:55]quantity*price = 200025 [11:41:55]sum+1 = 200026 [11:41:55]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 158 21.10.2024 11:41 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 187694 ФПД: 192355377784884 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T114159&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187694&fm=192355377784884&tin=02508201610067®Number=0000000000100030&sum=200000 [11:41:56]StoreToDocumentArchive [11:41:56]shift 460 fd 187694 [11:41:56]save to /storage/0460/doc_00187694 [11:41:56]save last doc name /storage/0460/doc_00187694 to /storage/kkm_last_doc_name [11:41:56]save OK [11:41:56]Clear old archive folders... [11:41:56]ProcessDocumentItem done err = 0, tmpTLVsize=257 [11:41:56]tlvbuf is B6F87010 [11:41:56]SAM_PROTO_ClearQueue [11:41:56]wFMCommunicate request_size=4 [11:41:56]MH_SAM_APDU [11:41:56]CAPDU: 80 09 00 00 [11:41:56]Write to MH i2c: E2 08 00 AB 4C 80 09 00 00 00 00 00 00 69 [11:41:56]Write i2c OK [11:41:56]MH_I2C_Read... [11:41:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:41:56]Read from MH i2c: E2 [11:41:56]MH_I2C_Read... [11:41:56]Read from MH i2c: E2 03 00 [11:41:56]MH_I2C_Read... [11:41:56]Read from MH i2c: E2 03 00 AB 4C 00 90 00 6B [11:41:56]RAPDU: 90 00 [11:41:56]wFMCommunicate OK [11:41:56]SAM_PROTO_ClearQueue done [11:41:56]KKMCreateOFDPacket [11:41:56]OFDProtocolAddRootSTLVToBuf [11:41:56]FM_MakeSignedData [11:41:56]FM_MakeSignedData [11:41:56]SAM_PROTO_SignData [11:41:56]wFMCommunicate request_size=4 [11:41:56]MH_SAM_APDU [11:41:56]CAPDU: 80 0D 01 02 [11:41:56]Write to MH i2c: E2 08 00 AC 4C 80 0D 01 02 00 00 00 00 71 [11:41:56]Write i2c OK [11:41:56]MH_I2C_Read... [11:41:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:41:56]Read from MH i2c: E2 [11:41:56]MH_I2C_Read... [11:41:56]Read from MH i2c: E2 03 00 [11:41:56]MH_I2C_Read... [11:41:56]Read from MH i2c: E2 03 00 AC 4C 00 90 00 6C [11:41:56]RAPDU: 90 00 [11:41:56]wFMCommunicate OK [11:41:56]wFMCommunicate request_size=255 [11:41:56]MH_SAM_APDU [11:41:56]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 36 65 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9E 00 00 00 F4 03 04 00 07 3E 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 2E DD 02 [11:41:56]Write to MH i2c: E2 02 01 AD 4C 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 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 36 65 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9E 00 00 00 F4 03 04 00 07 3E 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 2E DD 02 00 00 4C [11:41:56]Write i2c OK [11:41:56]MH_I2C_Read... [11:41:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:41:56]Read from MH i2c: E2 [11:41:56]MH_I2C_Read... [11:41:56]Read from MH i2c: E2 03 00 [11:41:56]MH_I2C_Read... [11:41:56]Read from MH i2c: E2 03 00 AD 4C 00 90 00 6D [11:41:56]RAPDU: 90 00 [11:41:56]wFMCommunicate OK [11:41:56]wFMCommunicate request_size=16 [11:41:56]MH_SAM_APDU [11:41:56]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 AE F2 39 F6 A8 34 [11:41:56]Write to MH i2c: E2 13 00 AE 4C 80 0D 02 02 0B 00 00 35 04 06 00 AE F2 39 F6 A8 34 00 00 74 [11:41:56]Write i2c OK [11:41:56]MH_I2C_Read... [11:41:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:41:56]Read from MH i2c: E2 [11:41:56]MH_I2C_Read... [11:41:56]Read from MH i2c: E2 03 00 [11:41:56]MH_I2C_Read... [11:41:56]Read from MH i2c: E2 03 00 AE 4C 00 90 00 6E [11:41:56]RAPDU: 90 00 [11:41:56]wFMCommunicate OK [11:41:56]wFMCommunicate request_size=4 [11:41:56]MH_SAM_APDU [11:41:56]CAPDU: 80 0D 03 02 [11:41:56]Write to MH i2c: E2 08 00 AF 4C 80 0D 03 02 00 00 00 00 76 [11:41:56]Write i2c OK [11:41:56]MH_I2C_Read... [11:41:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:41:57]Read from MH i2c: E2 [11:41:57]MH_I2C_Read... [11:41:57]Read from MH i2c: E2 0B 00 [11:41:57]MH_I2C_Read... [11:41:57]Read from MH i2c: E2 0B 00 AF 4C 00 8F DB 52 66 25 53 BF CE 90 00 9E [11:41:57]RAPDU: 8F DB 52 66 25 53 BF CE 90 00 [11:41:57]wFMCommunicate OK [11:41:57]SAM_PROTO_SignData done [11:41:57]FM_MakeSignedData done [11:41:57]CreateOFDProtocolMessage [11:41:57]wFMCommunicate request_size=4 [11:41:57]MH_SAM_APDU [11:41:57]CAPDU: 80 11 00 00 [11:41:57]Write to MH i2c: E2 08 00 B0 4C 80 11 00 00 00 00 00 00 76 [11:41:57]Write i2c OK [11:41:57]MH_I2C_Read... [11:41:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:41:57]Read from MH i2c: E2 [11:41:57]MH_I2C_Read... [11:41:57]Read from MH i2c: E2 17 00 [11:41:57]MH_I2C_Read... [11:41:57]Read from MH i2c: E2 17 00 B0 4C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 C4 [11:41:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [11:41:57]wFMCommunicate OK [11:41:57]CreateOFDProtocolMessage done [11:41:57]OFDSenderStorePacket 187694 [11:41:57]StoreOFDPacket docnum=187694 [11:41:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 7C 07 0D 01 59 94 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 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 36 65 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9E 00 00 00 F4 03 04 00 07 3E 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 2E DD 02 00 35 04 06 00 AE F2 39 F6 A8 34 8F DB 52 66 25 53 BF CE [11:41:57]CheckFolder [11:41:57]dirname=/storage/ofd_packets [11:41:57]CheckFolder done [11:41:57]ProducePacketName [11:41:57]name=ofd_packets/00187694 [11:41:57]NVStorageSaveData ofd_packets/00187694 [11:41:57]File name is /storage/ofd_packets/00187694 [11:41:57]Write 307 bytes [11:41:57]NVStorageSaveData done [11:41:57]OFDSenderStorePacket done [11:41:57]KKMCreateOFDPacket done [11:41:57]NVStorageSaveData kkm_last_timestamp [11:41:57]File name is /storage/kkm_last_timestamp [11:41:57]Write 4 bytes [11:41:57]NVStorageSaveData done [11:41:57]ExternCall_PrintAddStr [11:41:57]wPrintStart [11:41:57]Write to MH i2c: 01 00 00 B1 4C FD [11:41:57]Write i2c OK [11:41:57]MH_I2C_Read... [11:41:57]Read from MH i2c: 01 [11:41:57]MH_I2C_Read... [11:41:57]Read from MH i2c: 01 07 00 [11:41:57]MH_I2C_Read... [11:41:57]Read from MH i2c: 01 07 00 B1 4C 00 00 00 00 00 FF 0F 12 [11:41:57]RasterBufferAndPrint [11:41:57]line Счет N : (1)209746 [11:41:57]line ИНН: 02508201610067 [11:41:57]line Контрольно-Кассовый Чек [11:41:57]line ПРОДАЖА [11:41:57]line ТРК (МРК, ГНК) : 11 [11:41:57]line Товар: 2710194210 [11:41:57]line D-ENERGY ДТ-К-5 [11:41:57]line 25.910 * 77.20 [11:41:57]line = 2000.25 [11:41:57]line НДС 12% НСП 1% [11:41:57]line > о реализуемом товаре [11:41:57]line ОКРУГЛЕНИЕ: -0.25 [11:41:57]line ИТОГО: 2000.00 [11:41:57]line Внесено: 2000.00 [11:41:57]line СДАЧА: 0.00 [11:41:57]line НСП 1% : 17.70 [11:41:57]line НДС 12% : 212.42 [11:41:57]line Наличными: 2000.00 [11:41:57]line Безнал.: 0.00 [11:41:57]line Место: АЗС № 86 "Партнер Нефть" [11:41:57]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [11:41:57]line СНО: Общий режим [11:41:57]line Чек 158 21.10.2024 11:41 [11:41:57]line Смена: 460 ФФД: 1.0 [11:41:57]line ЗНМ: 0300000155 [11:41:57]line РНМ: 0000000000100030 [11:41:57]line Версия ККМ: 001 [11:41:57]line ФМ: 0000000000965340 [11:41:57]line ФД: 187694 [11:41:57]line ФПД: 192355377784884 [11:41:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T114159&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187694&fm=192355377784884&tin=02508201610067®Number=0000000000100030&sum=200000 [11:41:57]written 0, free lines is 4095 [11:41:57]OFD Sender: Processing packet 187694 [packets to send 1062, broken 1061] [11:41:57]ProducePacketName [11:41:57]name=ofd_packets/00187694 [11:41:57]OFD Sender: To server: pG, [11:41:57]CommunicateWithHost lk.salyk.kg:30040 [11:41:57]ConnectInit lk.salyk.kg [11:41:57]Connected sock=10 [11:41:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 7C 07 0D 01 59 94 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 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 36 65 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9E 00 00 00 F4 03 04 00 07 3E 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 2E DD 02 00 35 04 06 00 AE F2 39 F6 A8 34 8F DB 52 66 25 53 BF CE [11:41:57]Write to MH i2c: 01 00 00 DC 4C 28 [11:41:57]Write i2c OK [11:41:57]MH_I2C_Read... [11:41:57]Read from MH i2c: 01 [11:41:57]MH_I2C_Read... [11:41:57]Read from MH i2c: 01 07 00 [11:41:57]MH_I2C_Read... [11:41:57]Read from MH i2c: 01 07 00 DC 4C 00 00 00 00 00 7B 0C B6 [11:41:57]RasterBufferAndPrint [11:41:57]line [11:41:57]line [11:41:57]line [11:41:57]line [11:41:57]line [11:41:57]written 0, free lines is 3198 [11:41:57]MH_Cut [11:41:57]Write to MH i2c: D1 01 00 E3 4C 01 01 [11:41:57]Write i2c OK [11:41:57]MH_I2C_Read... [11:41:57]Read from MH i2c: D1 [11:41:57]MH_I2C_Read... [11:41:57]Read from MH i2c: D1 01 00 [11:41:57]MH_I2C_Read... [11:41:57]Read from MH i2c: D1 01 00 E3 4C 00 00 [11:41:57]Write to MH i2c: 01 00 00 E4 4C 30 [11:41:57]Write i2c OK [11:41:57]MH_I2C_Read... [11:41:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 91 47 47 00 DE 34 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 2E DD 02 00 F4 03 04 00 F6 E7 15 67 B6 04 01 00 00 FD 56 5C E0 75 4B 9A 9C [11:41:57]CommunicateWithHost err = 0 [11:41:57]CheckOFDResponse [11:41:57]1017 (14) - 77093643461234 [11:41:57]1041 (16) - 0000000000965340 [11:41:57]1040 (4) - 187694 [11:41:57]1012 (4) - 21.10.2024 05:34 [11:41:57]1206 (1) - 0 [11:41:57]OFD Sender: Remove packet 187694 [11:41:57]ProducePacketName [11:41:57]name=ofd_packets/00187694 [11:41:57]NVStorageDeleteData [11:41:58]OFD Sender: No OFD packet to send [11:41:58]*** Cut start [11:41:58]*** Partial cut [11:41:58]*** CUTSNS_PIN = 1 [11:41:58]*** CUTSNS_PIN = 0 [11:41:58]*** Brake cut motor [11:41:59]Read from MH i2c: 01 [11:41:59]MH_I2C_Read... [11:41:59]*** Stop cut motor [11:41:59]*** Cut end [11:41:59]Read from MH i2c: 01 07 00 [11:41:59]MH_I2C_Read... [11:41:59]Read from MH i2c: 01 07 00 E4 4C 00 00 00 00 00 FF 0F 45 [11:41:59]process_action close_receipt done [11:41:59]requested_data is exist [11:41:59]produce_requested_data [11:41:59]requested_item fm.sn is exist - process it [11:41:59]wFMCommunicate request_size=4 [11:41:59]MH_SAM_APDU [11:41:59]CAPDU: 80 11 00 00 [11:41:59]Write to MH i2c: E2 08 00 E5 4C 80 11 00 00 00 00 00 00 AB [11:41:59]Write i2c OK [11:41:59]MH_I2C_Read... [11:41:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:41:59]Read from MH i2c: E2 [11:41:59]MH_I2C_Read... [11:41:59]Read from MH i2c: E2 17 00 [11:41:59]MH_I2C_Read... [11:41:59]Read from MH i2c: E2 17 00 E5 4C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 F9 [11:41:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [11:41:59]wFMCommunicate OK [11:41:59]requested_item fd.num is exist - process it [11:41:59]SAM_PROTO_GetFieldsCounters [11:41:59]wFMCommunicate request_size=4 [11:41:59]MH_SAM_APDU [11:41:59]CAPDU: 80 13 00 00 [11:41:59]Write to MH i2c: E2 08 00 E6 4C 80 13 00 00 00 00 00 00 AE [11:41:59]Write i2c OK [11:41:59]MH_I2C_Read... [11:41:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:41:59]Read from MH i2c: E2 [11:41:59]MH_I2C_Read... [11:41:59]Read from MH i2c: E2 62 00 [11:41:59]MH_I2C_Read... [11:41:59]Read from MH i2c: E2 62 00 E6 4C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 2E DD 02 00 0E 04 04 00 CC 01 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 69 [11:41:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 2E DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 9E 00 00 00 5E 04 04 00 9E 00 00 00 57 04 04 00 9F 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:41:59]wFMCommunicate OK [11:41:59]SAM_PROTO_GetFieldsCounters done [11:41:59]requested_item shift.num is exist - process it [11:41:59]requested_item shift.opened is exist - process it [11:41:59]req_shift_opened [11:41:59]FM_GetShiftState [11:41:59]SAM_PROTO_GetShiftState [11:41:59]wFMCommunicate request_size=4 [11:41:59]MH_SAM_APDU [11:41:59]CAPDU: 80 13 01 00 [11:41:59]Write to MH i2c: E2 08 00 E7 4C 80 13 01 00 00 00 00 00 B0 [11:41:59]Write i2c OK [11:41:59]MH_I2C_Read... [11:41:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:41:59]Read from MH i2c: E2 [11:41:59]MH_I2C_Read... [11:41:59]Read from MH i2c: E2 0E 00 [11:41:59]MH_I2C_Read... [11:41:59]Read from MH i2c: E2 0E 00 E7 4C 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 0F [11:41:59]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [11:41:59]wFMCommunicate OK [11:41:59]SAM_PROTO_GetShiftState done [11:41:59]FM_GetShiftState done [11:41:59]req_shift_opened done [11:41:59]requested_item shift.open_date is exist - process it [11:41:59]req_shift_open_date [11:41:59]req_shift_open_date done [11:41:59]produce_requested_data done [11:41:59]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187694,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [11:41:59]process_action_free close_receipt [11:41:59]json_value_free [11:41:59]json_value_free done [11:41:59]process_json_proto returns [11:41:59]Send response to host [11:41:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187694,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [11:41:59]free response buf [11:41:59]execute_script done [11:41:59]execute_script returns [11:41:59]free content buf [11:41:59]Sock 8.Close socket [11:41:59]Sock 8.Thread stoped [11:42:03]OFD Sender: No OFD packet to send [11:42:08]OFD Sender: No OFD packet to send [11:42:13]OFD Sender: No OFD packet to send [11:42:18]OFD Sender: No OFD packet to send [11:42:23]OFD Sender: No OFD packet to send [11:42:28]OFD Sender: No OFD packet to send [11:42:33]OFD Sender: No OFD packet to send [11:42:38]OFD Sender: No OFD packet to send [11:42:43]OFD Sender: No OFD packet to send [11:42:48]OFD Sender: No OFD packet to send [11:42:53]OFD Sender: No OFD packet to send [11:42:58]OFD Sender: No OFD packet to send [11:43:03]OFD Sender: No OFD packet to send [11:43:08]OFD Sender: No OFD packet to send [11:43:13]OFD Sender: No OFD packet to send [11:43:18]OFD Sender: No OFD packet to send [11:43:23]OFD Sender: No OFD packet to send [11:43:28]OFD Sender: No OFD packet to send [11:43:33]OFD Sender: No OFD packet to send [11:43:38]OFD Sender: No OFD packet to send [11:43:41]accept exits with 9 [11:43:41]New connection [11:43:41]New thread 3067014500 created [11:43:41]Thread 3067157860 joined [11:43:41]Waiting for new connection... [11:43:41] Sock 9.Parse request [11:43:41]Sock 9.Check first char [11:43:41]Sock 9.First char is OK [11:43:41]request: POST /json_proto HTTP/1.0 [11:43:41]Method: POST [11:43:41]URL: /json_proto [11:43:41]Method is POST - this is cgi request [11:43:41]url: /json_proto [11:43:41]query_string will be loaded in cgi processing [11:43:41]execute_cgi json_proto POST (null) [11:43:41]execute_cgi path=json_proto method=POST [11:43:41]POST find Content-Length [11:43:41]Host: 172.17.42.131:8080 [11:43:41]Content-Length: 766 [11:43:41]Content-Type: application/json [11:43:41] [11:43:41]POST finish read [11:43:41]Found Content-Length = 766 [11:43:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209748", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.51 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:43:41]execute_script... [11:43:41]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209748", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.51 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:43:41]POST & json_proto [11:43:41]process_json_proto [11:43:41]json parsed OK: [11:43:41]protocol is kg_v1.0 [11:43:41]action value=close_receipt [11:43:41]process_action close_receipt [11:43:41]cmd_close_receipt [11:43:41]MH_GetDate [11:43:41]Write to MH i2c: F0 00 00 E8 4C 23 [11:43:41]Write i2c OK [11:43:41]MH_I2C_Read... [11:43:41]Read from MH i2c: F0 [11:43:41]MH_I2C_Read... [11:43:41]Read from MH i2c: F0 09 00 [11:43:41]MH_I2C_Read... [11:43:41]Read from MH i2c: F0 09 00 E8 4C 00 71 3E 16 67 A0 18 CA 66 40 [11:43:41]GetLastDocTimeStamp 1729510919 [11:43:41]current date 1729511025 [11:43:41]FM_GetShiftState [11:43:41]SAM_PROTO_GetShiftState [11:43:41]wFMCommunicate request_size=4 [11:43:41]MH_SAM_APDU [11:43:41]CAPDU: 80 13 01 00 [11:43:41]Write to MH i2c: E2 08 00 E9 4C 80 13 01 00 00 00 00 00 B2 [11:43:41]Write i2c OK [11:43:41]MH_I2C_Read... [11:43:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:43:41]Read from MH i2c: E2 [11:43:41]MH_I2C_Read... [11:43:41]Read from MH i2c: E2 0E 00 [11:43:41]MH_I2C_Read... [11:43:41]Read from MH i2c: E2 0E 00 E9 4C 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 11 [11:43:41]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [11:43:41]wFMCommunicate OK [11:43:41]SAM_PROTO_GetShiftState done [11:43:41]FM_GetShiftState done [11:43:41]opened in 1729469754 [11:43:41]opened+sec_in_day 1729556154 [11:43:41]quantity*price = 100050 [11:43:41]sum+1 = 100052 [11:43:41]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.51 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 0.00 Безнал.: 1000.51 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 159 21.10.2024 11:43 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000965340 ФД: 187695 ФПД: 66309875866216 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T114345&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187695&fm=66309875866216&tin=02508201610067®Number=0000000000100030&sum=100051 [11:43:42]StoreToDocumentArchive [11:43:42]shift 460 fd 187695 [11:43:42]save to /storage/0460/doc_00187695 [11:43:42]save last doc name /storage/0460/doc_00187695 to /storage/kkm_last_doc_name [11:43:42]save OK [11:43:42]Clear old archive folders... [11:43:42]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:43:42]tlvbuf is B6DDA460 [11:43:42]SAM_PROTO_ClearQueue [11:43:42]wFMCommunicate request_size=4 [11:43:42]MH_SAM_APDU [11:43:42]CAPDU: 80 09 00 00 [11:43:42]Write to MH i2c: E2 08 00 F6 4C 80 09 00 00 00 00 00 00 B4 [11:43:42]Write i2c OK [11:43:42]MH_I2C_Read... [11:43:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:43:42]Read from MH i2c: E2 [11:43:42]MH_I2C_Read... [11:43:42]Read from MH i2c: E2 03 00 [11:43:42]MH_I2C_Read... [11:43:42]Read from MH i2c: E2 03 00 F6 4C 00 90 00 B6 [11:43:42]RAPDU: 90 00 [11:43:42]wFMCommunicate OK [11:43:42]SAM_PROTO_ClearQueue done [11:43:42]KKMCreateOFDPacket [11:43:42]OFDProtocolAddRootSTLVToBuf [11:43:42]FM_MakeSignedData [11:43:42]FM_MakeSignedData [11:43:42]SAM_PROTO_SignData [11:43:42]wFMCommunicate request_size=4 [11:43:42]MH_SAM_APDU [11:43:42]CAPDU: 80 0D 01 02 [11:43:42]Write to MH i2c: E2 08 00 F7 4C 80 0D 01 02 00 00 00 00 BC [11:43:42]Write i2c OK [11:43:42]MH_I2C_Read... [11:43:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:43:42]Read from MH i2c: E2 [11:43:42]MH_I2C_Read... [11:43:42]Read from MH i2c: E2 03 00 [11:43:42]MH_I2C_Read... [11:43:42]Read from MH i2c: E2 03 00 F7 4C 00 90 00 B7 [11:43:42]RAPDU: 90 00 [11:43:42]wFMCommunicate OK [11:43:42]wFMCommunicate request_size=255 [11:43:42]MH_SAM_APDU [11:43:42]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 9F 00 00 00 F4 03 04 00 71 3E 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 2F DD 02 00 35 04 06 00 3C 4E F8 98 [11:43:42]Write to MH i2c: E2 02 01 F8 4C 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 9F 00 00 00 F4 03 04 00 71 3E 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 2F DD 02 00 35 04 06 00 3C 4E F8 98 00 00 4D [11:43:42]Write i2c OK [11:43:42]MH_I2C_Read... [11:43:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:43:42]Read from MH i2c: E2 [11:43:42]MH_I2C_Read... [11:43:42]Read from MH i2c: E2 03 00 [11:43:42]MH_I2C_Read... [11:43:42]Read from MH i2c: E2 03 00 F8 4C 00 90 00 B8 [11:43:42]RAPDU: 90 00 [11:43:42]wFMCommunicate OK [11:43:42]wFMCommunicate request_size=7 [11:43:42]MH_SAM_APDU [11:43:42]CAPDU: 80 0D 02 02 02 9A 68 [11:43:42]Write to MH i2c: E2 0A 00 F9 4C 80 0D 02 02 02 00 9A 68 00 00 C5 [11:43:42]Write i2c OK [11:43:42]MH_I2C_Read... [11:43:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:43:42]Read from MH i2c: E2 [11:43:42]MH_I2C_Read... [11:43:42]Read from MH i2c: E2 03 00 [11:43:42]MH_I2C_Read... [11:43:42]Read from MH i2c: E2 03 00 F9 4C 00 90 00 B9 [11:43:42]RAPDU: 90 00 [11:43:42]wFMCommunicate OK [11:43:42]wFMCommunicate request_size=4 [11:43:42]MH_SAM_APDU [11:43:42]CAPDU: 80 0D 03 02 [11:43:42]Write to MH i2c: E2 08 00 FA 4C 80 0D 03 02 00 00 00 00 C1 [11:43:42]Write i2c OK [11:43:42]MH_I2C_Read... [11:43:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:43:42]Read from MH i2c: E2 [11:43:42]MH_I2C_Read... [11:43:42]Read from MH i2c: E2 0B 00 [11:43:42]MH_I2C_Read... [11:43:42]Read from MH i2c: E2 0B 00 FA 4C 00 9E 00 B3 4D 66 42 E6 C9 90 00 B7 [11:43:42]RAPDU: 9E 00 B3 4D 66 42 E6 C9 90 00 [11:43:42]wFMCommunicate OK [11:43:42]SAM_PROTO_SignData done [11:43:42]FM_MakeSignedData done [11:43:42]CreateOFDProtocolMessage [11:43:42]wFMCommunicate request_size=4 [11:43:42]MH_SAM_APDU [11:43:42]CAPDU: 80 11 00 00 [11:43:42]Write to MH i2c: E2 08 00 FB 4C 80 11 00 00 00 00 00 00 C1 [11:43:42]Write i2c OK [11:43:42]MH_I2C_Read... [11:43:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:43:42]Read from MH i2c: E2 [11:43:42]MH_I2C_Read... [11:43:42]Read from MH i2c: E2 17 00 [11:43:42]MH_I2C_Read... [11:43:42]Read from MH i2c: E2 17 00 FB 4C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 0F [11:43:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [11:43:42]wFMCommunicate OK [11:43:42]CreateOFDProtocolMessage done [11:43:42]OFDSenderStorePacket 187695 [11:43:42]StoreOFDPacket docnum=187695 [11:43:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 2F 72 04 01 A2 44 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 9F 00 00 00 F4 03 04 00 71 3E 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 2F DD 02 00 35 04 06 00 3C 4E F8 98 9A 68 9E 00 B3 4D 66 42 E6 C9 [11:43:42]CheckFolder [11:43:42]dirname=/storage/ofd_packets [11:43:42]CheckFolder done [11:43:42]ProducePacketName [11:43:42]name=ofd_packets/00187695 [11:43:42]NVStorageSaveData ofd_packets/00187695 [11:43:42]File name is /storage/ofd_packets/00187695 [11:43:42]Write 298 bytes [11:43:42]NVStorageSaveData done [11:43:42]OFDSenderStorePacket done [11:43:42]KKMCreateOFDPacket done [11:43:42]NVStorageSaveData kkm_last_timestamp [11:43:42]File name is /storage/kkm_last_timestamp [11:43:42]Write 4 bytes [11:43:42]NVStorageSaveData done [11:43:42]ExternCall_PrintAddStr [11:43:42]wPrintStart [11:43:42]Write to MH i2c: 01 00 00 FC 4C 48 [11:43:42]Write i2c OK [11:43:42]MH_I2C_Read... [11:43:42]Read from MH i2c: 01 [11:43:42]MH_I2C_Read... [11:43:42]Read from MH i2c: 01 07 00 [11:43:42]MH_I2C_Read... [11:43:42]Read from MH i2c: 01 07 00 FC 4C 00 00 00 00 00 FF 0F 5D [11:43:42]RasterBufferAndPrint [11:43:42]line Счет N : (1)209748 [11:43:42]line ИНН: 02508201610067 [11:43:42]line Контрольно-Кассовый Чек [11:43:42]line ПРОДАЖА [11:43:42]line ТРК (МРК, ГНК) : 51 [11:43:42]line Товар: 2710194210 [11:43:42]line ДТ-К-5 [11:43:42]line 13.130 * 76.20 [11:43:42]line = 1000.51 [11:43:42]line НДС 12% НСП 1% [11:43:42]line > о реализуемом товаре [11:43:42]line ИТОГО: 1000.51 [11:43:42]line НСП 1% : 8.85 [11:43:42]line НДС 12% : 106.25 [11:43:42]line Наличными: 0.00 [11:43:42]line Безнал.: 1000.51 [11:43:42]line Место: АЗС № 86 "Партнер Нефть" [11:43:42]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [11:43:42]line СНО: Общий режим [11:43:42]line Чек 159 21.10.2024 11:43 [11:43:42]line Смена: 460 ФФД: 1.0 [11:43:42]line ЗНМ: 0300000155 [11:43:42]line РНМ: 0000000000100030 [11:43:42]line Версия ККМ: 001 [11:43:42]line Платежная система: Mbank [11:43:42]line ФМ: 0000000000965340 [11:43:42]line ФД: 187695 [11:43:42]line ФПД: 66309875866216 [11:43:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T114345&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187695&fm=66309875866216&tin=02508201610067®Number=0000000000100030&sum=100051 [11:43:43]OFD Sender: Processing packet 187695 [packets to send 1062, broken 1061] [11:43:43]ProducePacketName [11:43:43]name=ofd_packets/00187695 [11:43:43]OFD Sender: To server: pG, [11:43:43]CommunicateWithHost lk.salyk.kg:30040 [11:43:43]ConnectInit lk.salyk.kg [11:43:43]written 0, free lines is 4095 [11:43:43]Connected sock=10 [11:43:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 2F 72 04 01 A2 44 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 9F 00 00 00 F4 03 04 00 71 3E 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 2F DD 02 00 35 04 06 00 3C 4E F8 98 9A 68 9E 00 B3 4D 66 42 E6 C9 [11:43:43]Write to MH i2c: 01 00 00 25 4D 72 [11:43:43]Write i2c OK [11:43:43]MH_I2C_Read... [11:43:43]Read from MH i2c: 01 [11:43:43]MH_I2C_Read... [11:43:43]Read from MH i2c: 01 07 00 [11:43:43]MH_I2C_Read... [11:43:43]Read from MH i2c: 01 07 00 25 4D 00 00 00 00 00 AA 0C 2F [11:43:43]RasterBufferAndPrint [11:43:43]line [11:43:43]line [11:43:43]line [11:43:43]line [11:43:43]line [11:43:43]written 0, free lines is 3244 [11:43:43]MH_Cut [11:43:43]Write to MH i2c: D1 01 00 2C 4D 01 4B [11:43:43]Write i2c OK [11:43:43]MH_I2C_Read... [11:43:43]Read from MH i2c: D1 [11:43:43]MH_I2C_Read... [11:43:43]Read from MH i2c: D1 01 00 [11:43:43]MH_I2C_Read... [11:43:43]Read from MH i2c: D1 01 00 2C 4D 00 4A [11:43:43]Write to MH i2c: 01 00 00 2D 4D 7A [11:43:43]Write i2c OK [11:43:43]MH_I2C_Read... [11:43:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 26 96 47 00 45 2D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 2F DD 02 00 F4 03 04 00 61 E8 15 67 B6 04 01 00 00 54 D2 53 5A 36 F5 86 29 [11:43:43]CommunicateWithHost err = 0 [11:43:43]CheckOFDResponse [11:43:43]1017 (14) - 77093643461234 [11:43:43]1041 (16) - 0000000000965340 [11:43:43]1040 (4) - 187695 [11:43:43]1012 (4) - 21.10.2024 05:36 [11:43:43]1206 (1) - 0 [11:43:43]OFD Sender: Remove packet 187695 [11:43:43]ProducePacketName [11:43:43]name=ofd_packets/00187695 [11:43:43]NVStorageDeleteData [11:43:44]OFD Sender: No OFD packet to send [11:43:44]*** Cut start [11:43:44]*** Partial cut [11:43:44]*** CUTSNS_PIN = 1 [11:43:44]*** CUTSNS_PIN = 0 [11:43:44]*** Brake cut motor [11:43:45]Read from MH i2c: 01 [11:43:45]MH_I2C_Read... [11:43:45]*** Stop cut motor [11:43:45]*** Cut end [11:43:45]Read from MH i2c: 01 07 00 [11:43:45]MH_I2C_Read... [11:43:45]Read from MH i2c: 01 07 00 2D 4D 00 00 00 00 00 FF 0F 8F [11:43:45]process_action close_receipt done [11:43:45]requested_data is exist [11:43:45]produce_requested_data [11:43:45]requested_item fm.sn is exist - process it [11:43:45]wFMCommunicate request_size=4 [11:43:45]MH_SAM_APDU [11:43:45]CAPDU: 80 11 00 00 [11:43:45]Write to MH i2c: E2 08 00 2E 4D 80 11 00 00 00 00 00 00 F5 [11:43:45]Write i2c OK [11:43:45]MH_I2C_Read... [11:43:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:43:45]Read from MH i2c: E2 [11:43:45]MH_I2C_Read... [11:43:45]Read from MH i2c: E2 17 00 [11:43:45]MH_I2C_Read... [11:43:45]Read from MH i2c: E2 17 00 2E 4D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 43 [11:43:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [11:43:45]wFMCommunicate OK [11:43:45]requested_item fd.num is exist - process it [11:43:45]SAM_PROTO_GetFieldsCounters [11:43:45]wFMCommunicate request_size=4 [11:43:45]MH_SAM_APDU [11:43:45]CAPDU: 80 13 00 00 [11:43:45]Write to MH i2c: E2 08 00 2F 4D 80 13 00 00 00 00 00 00 F8 [11:43:45]Write i2c OK [11:43:45]MH_I2C_Read... [11:43:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:43:45]Read from MH i2c: E2 [11:43:45]MH_I2C_Read... [11:43:45]Read from MH i2c: E2 62 00 [11:43:45]MH_I2C_Read... [11:43:45]Read from MH i2c: E2 62 00 2F 4D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 2F DD 02 00 0E 04 04 00 CC 01 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 B7 [11:43:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 2F DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 9F 00 00 00 5E 04 04 00 9F 00 00 00 57 04 04 00 A0 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:43:45]wFMCommunicate OK [11:43:45]SAM_PROTO_GetFieldsCounters done [11:43:45]requested_item shift.num is exist - process it [11:43:45]requested_item shift.opened is exist - process it [11:43:45]req_shift_opened [11:43:45]FM_GetShiftState [11:43:45]SAM_PROTO_GetShiftState [11:43:45]wFMCommunicate request_size=4 [11:43:45]MH_SAM_APDU [11:43:45]CAPDU: 80 13 01 00 [11:43:45]Write to MH i2c: E2 08 00 30 4D 80 13 01 00 00 00 00 00 FA [11:43:45]Write i2c OK [11:43:45]MH_I2C_Read... [11:43:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:43:45]Read from MH i2c: E2 [11:43:45]MH_I2C_Read... [11:43:45]Read from MH i2c: E2 0E 00 [11:43:45]MH_I2C_Read... [11:43:45]Read from MH i2c: E2 0E 00 30 4D 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 59 [11:43:45]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [11:43:45]wFMCommunicate OK [11:43:45]SAM_PROTO_GetShiftState done [11:43:45]FM_GetShiftState done [11:43:45]req_shift_opened done [11:43:45]requested_item shift.open_date is exist - process it [11:43:45]req_shift_open_date [11:43:45]req_shift_open_date done [11:43:45]produce_requested_data done [11:43:45]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187695,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [11:43:45]process_action_free close_receipt [11:43:45]json_value_free [11:43:45]json_value_free done [11:43:45]process_json_proto returns [11:43:45]Send response to host [11:43:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187695,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [11:43:45]free response buf [11:43:45]execute_script done [11:43:45]execute_script returns [11:43:45]free content buf [11:43:45]Sock 9.Close socket [11:43:45]Sock 9.Thread stoped [11:43:48]accept exits with 8 [11:43:48]New connection [11:43:48]New thread 3067157860 created [11:43:48]Thread 3067014500 joined [11:43:48]Waiting for new connection... [11:43:48] Sock 8.Parse request [11:43:48]Sock 8.Check first char [11:43:48]Sock 8.First char is OK [11:43:48]request: POST /json_proto HTTP/1.0 [11:43:48]Method: POST [11:43:48]URL: /json_proto [11:43:48]Method is POST - this is cgi request [11:43:48]url: /json_proto [11:43:48]query_string will be loaded in cgi processing [11:43:48]execute_cgi json_proto POST (null) [11:43:48]execute_cgi path=json_proto method=POST [11:43:48]POST find Content-Length [11:43:48]Host: 172.17.42.131:8080 [11:43:48]Content-Length: 682 [11:43:48]Content-Type: application/json [11:43:48] [11:43:48]POST finish read [11:43:48]Found Content-Length = 682 [11:43:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209747", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 50.830, "sum" : 3400.53, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3400.00, "total" : 3400.00, "payments": [ { "type": 0, "sum" : 3400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:43:48]execute_script... [11:43: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)209747", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 50.830, "sum" : 3400.53, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3400.00, "total" : 3400.00, "payments": [ { "type": 0, "sum" : 3400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:43:48]POST & json_proto [11:43:48]process_json_proto [11:43:48]json parsed OK: [11:43:48]protocol is kg_v1.0 [11:43:48]action value=close_receipt [11:43:48]process_action close_receipt [11:43:48]cmd_close_receipt [11:43:48]MH_GetDate [11:43:48]Write to MH i2c: F0 00 00 31 4D 6D [11:43:48]Write i2c OK [11:43:48]MH_I2C_Read... [11:43:48]Read from MH i2c: F0 [11:43:48]MH_I2C_Read... [11:43:48]Read from MH i2c: F0 09 00 [11:43:48]MH_I2C_Read... [11:43:48]Read from MH i2c: F0 09 00 31 4D 00 78 3E 16 67 A0 18 CA 66 91 [11:43:48]GetLastDocTimeStamp 1729511025 [11:43:48]current date 1729511032 [11:43:48]FM_GetShiftState [11:43:48]SAM_PROTO_GetShiftState [11:43:48]wFMCommunicate request_size=4 [11:43:48]MH_SAM_APDU [11:43:48]CAPDU: 80 13 01 00 [11:43:48]Write to MH i2c: E2 08 00 32 4D 80 13 01 00 00 00 00 00 FC [11:43:48]Write i2c OK [11:43:48]MH_I2C_Read... [11:43:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:43:49]Read from MH i2c: E2 [11:43:49]MH_I2C_Read... [11:43:49]Read from MH i2c: E2 0E 00 [11:43:49]MH_I2C_Read... [11:43:49]Read from MH i2c: E2 0E 00 32 4D 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 5B [11:43:49]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [11:43:49]wFMCommunicate OK [11:43:49]SAM_PROTO_GetShiftState done [11:43:49]FM_GetShiftState done [11:43:49]opened in 1729469754 [11:43:49]opened+sec_in_day 1729556154 [11:43:49]quantity*price = 340052 [11:43:49]sum+1 = 340054 [11:43:49]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.53 ИТОГО: 3400.00 Внесено: 3400.00 СДАЧА: 0.00 НСП 1% : 30.09 НДС 12% : 361.12 Наличными: 3400.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 160 21.10.2024 11:43 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 187696 ФПД: 174509925452229 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T114352&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187696&fm=174509925452229&tin=02508201610067®Number=0000000000100030&sum=340000 [11:43:50]StoreToDocumentArchive [11:43:50]shift 460 fd 187696 [11:43:50]save to /storage/0460/doc_00187696 [11:43:50]save last doc name /storage/0460/doc_00187696 to /storage/kkm_last_doc_name [11:43:50]save OK [11:43:50]Clear old archive folders... [11:43:50]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:43:50]tlvbuf is 01073150 [11:43:50]SAM_PROTO_ClearQueue [11:43:50]wFMCommunicate request_size=4 [11:43:50]MH_SAM_APDU [11:43:50]CAPDU: 80 09 00 00 [11:43:50]Write to MH i2c: E2 08 00 3F 4D 80 09 00 00 00 00 00 00 FE [11:43:50]Write i2c OK [11:43:50]MH_I2C_Read... [11:43:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:43:50]Read from MH i2c: E2 [11:43:50]MH_I2C_Read... [11:43:50]Read from MH i2c: E2 03 00 [11:43:50]MH_I2C_Read... [11:43:50]Read from MH i2c: E2 03 00 3F 4D 00 90 00 00 [11:43:50]RAPDU: 90 00 [11:43:50]wFMCommunicate OK [11:43:50]SAM_PROTO_ClearQueue done [11:43:50]KKMCreateOFDPacket [11:43:50]OFDProtocolAddRootSTLVToBuf [11:43:50]FM_MakeSignedData [11:43:50]FM_MakeSignedData [11:43:50]SAM_PROTO_SignData [11:43:50]wFMCommunicate request_size=4 [11:43:50]MH_SAM_APDU [11:43:50]CAPDU: 80 0D 01 02 [11:43:50]Write to MH i2c: E2 08 00 40 4D 80 0D 01 02 00 00 00 00 06 [11:43:50]Write i2c OK [11:43:50]MH_I2C_Read... [11:43:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:43:50]Read from MH i2c: E2 [11:43:50]MH_I2C_Read... [11:43:50]Read from MH i2c: E2 03 00 [11:43:50]MH_I2C_Read... [11:43:50]Read from MH i2c: E2 03 00 40 4D 00 90 00 01 [11:43:50]RAPDU: 90 00 [11:43:50]wFMCommunicate OK [11:43:50]wFMCommunicate request_size=255 [11:43:50]MH_SAM_APDU [11:43: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 33 FF 03 08 00 03 8E C6 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 55 30 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 30 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C1 0B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 10 8D 00 00 00 00 07 04 06 00 20 30 05 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 78 3E 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 30 DD 02 00 35 04 06 00 9E [11:43:50]Write to MH i2c: E2 02 01 41 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 33 FF 03 08 00 03 8E C6 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 55 30 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 30 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C1 0B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 10 8D 00 00 00 00 07 04 06 00 20 30 05 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 78 3E 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 30 DD 02 00 35 04 06 00 9E 00 00 6E [11:43:50]Write i2c OK [11:43:50]MH_I2C_Read... [11:43:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:43:50]Read from MH i2c: E2 [11:43:50]MH_I2C_Read... [11:43:50]Read from MH i2c: E2 03 00 [11:43:50]MH_I2C_Read... [11:43:50]Read from MH i2c: E2 03 00 41 4D 00 90 00 02 [11:43:50]RAPDU: 90 00 [11:43:50]wFMCommunicate OK [11:43:50]wFMCommunicate request_size=10 [11:43:50]MH_SAM_APDU [11:43:50]CAPDU: 80 0D 02 02 05 B7 42 1D C9 C5 [11:43:50]Write to MH i2c: E2 0D 00 42 4D 80 0D 02 02 05 00 B7 42 1D C9 C5 00 00 B7 [11:43:50]Write i2c OK [11:43:50]MH_I2C_Read... [11:43:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:43:50]Read from MH i2c: E2 [11:43:50]MH_I2C_Read... [11:43:50]Read from MH i2c: E2 03 00 [11:43:50]MH_I2C_Read... [11:43:50]Read from MH i2c: E2 03 00 42 4D 00 90 00 03 [11:43:50]RAPDU: 90 00 [11:43:50]wFMCommunicate OK [11:43:50]wFMCommunicate request_size=4 [11:43:50]MH_SAM_APDU [11:43:50]CAPDU: 80 0D 03 02 [11:43:50]Write to MH i2c: E2 08 00 43 4D 80 0D 03 02 00 00 00 00 0B [11:43:50]Write i2c OK [11:43:50]MH_I2C_Read... [11:43:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:43:50]Read from MH i2c: E2 [11:43:50]MH_I2C_Read... [11:43:50]Read from MH i2c: E2 0B 00 [11:43:50]MH_I2C_Read... [11:43:50]Read from MH i2c: E2 0B 00 43 4D 00 DC 7C 74 D9 6F 65 4F BE 90 00 92 [11:43:50]RAPDU: DC 7C 74 D9 6F 65 4F BE 90 00 [11:43:50]wFMCommunicate OK [11:43:50]SAM_PROTO_SignData done [11:43:50]FM_MakeSignedData done [11:43:50]CreateOFDProtocolMessage [11:43:50]wFMCommunicate request_size=4 [11:43:50]MH_SAM_APDU [11:43:50]CAPDU: 80 11 00 00 [11:43:50]Write to MH i2c: E2 08 00 44 4D 80 11 00 00 00 00 00 00 0B [11:43:50]Write i2c OK [11:43:50]MH_I2C_Read... [11:43:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:43:50]Read from MH i2c: E2 [11:43:50]MH_I2C_Read... [11:43:50]Read from MH i2c: E2 17 00 [11:43:50]MH_I2C_Read... [11:43:50]Read from MH i2c: E2 17 00 44 4D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 59 [11:43:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [11:43:50]wFMCommunicate OK [11:43:50]CreateOFDProtocolMessage done [11:43:50]OFDSenderStorePacket 187696 [11:43:50]StoreOFDPacket docnum=187696 [11:43:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 1F C5 07 01 FF 77 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 8E C6 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 55 30 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 30 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C1 0B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 10 8D 00 00 00 00 07 04 06 00 20 30 05 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 78 3E 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 30 DD 02 00 35 04 06 00 9E B7 42 1D C9 C5 DC 7C 74 D9 6F 65 4F BE [11:43:50]CheckFolder [11:43:50]dirname=/storage/ofd_packets [11:43:50]CheckFolder done [11:43:50]ProducePacketName [11:43:50]name=ofd_packets/00187696 [11:43:50]NVStorageSaveData ofd_packets/00187696 [11:43:50]File name is /storage/ofd_packets/00187696 [11:43:50]Write 301 bytes [11:43:50]NVStorageSaveData done [11:43:50]OFDSenderStorePacket done [11:43:50]KKMCreateOFDPacket done [11:43:50]NVStorageSaveData kkm_last_timestamp [11:43:50]File name is /storage/kkm_last_timestamp [11:43:50]Write 4 bytes [11:43:50]NVStorageSaveData done [11:43:50]ExternCall_PrintAddStr [11:43:50]wPrintStart [11:43:50]Write to MH i2c: 01 00 00 45 4D 92 [11:43:50]Write i2c OK [11:43:50]MH_I2C_Read... [11:43:50]Read from MH i2c: 01 [11:43:50]MH_I2C_Read... [11:43:50]Read from MH i2c: 01 07 00 [11:43:50]MH_I2C_Read... [11:43:50]Read from MH i2c: 01 07 00 45 4D 00 00 00 00 00 FF 0F A7 [11:43:50]RasterBufferAndPrint [11:43:50]line Счет N : (1)209747 [11:43:50]line ИНН: 02508201610067 [11:43:50]line Контрольно-Кассовый Чек [11:43:50]line ПРОДАЖА [11:43:50]line ТРК (МРК, ГНК) : 42 [11:43:50]line Товар: 2710124130 [11:43:50]line Аи-92-К-3 [11:43:50]line 50.830 * 66.90 [11:43:50]line = 3400.53 [11:43:50]line НДС 12% НСП 1% [11:43:50]line > о реализуемом товаре [11:43:50]line ОКРУГЛЕНИЕ: -0.53 [11:43:50]line ИТОГО: 3400.00 [11:43:50]line Внесено: 3400.00 [11:43:50]line СДАЧА: 0.00 [11:43:50]line НСП 1% : 30.09 [11:43:50]line НДС 12% : 361.12 [11:43:50]line Наличными: 3400.00 [11:43:50]line Безнал.: 0.00 [11:43:50]line Место: АЗС № 86 "Партнер Нефть" [11:43:50]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [11:43:50]line СНО: Общий режим [11:43:50]line Чек 160 21.10.2024 11:43 [11:43:50]line Смена: 460 ФФД: 1.0 [11:43:50]line ЗНМ: 0300000155 [11:43:50]line РНМ: 0000000000100030 [11:43:50]line Версия ККМ: 001 [11:43:50]line ФМ: 0000000000965340 [11:43:50]line ФД: 187696 [11:43:50]line ФПД: 174509925452229 [11:43:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T114352&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187696&fm=174509925452229&tin=02508201610067®Number=0000000000100030&sum=340000 [11:43:50]written 0, free lines is 4095 [11:43:50]OFD Sender: Processing packet 187696 [packets to send 1062, broken 1061] [11:43:50]ProducePacketName [11:43:50]name=ofd_packets/00187696 [11:43:50]OFD Sender: To server: pG, [11:43:50]CommunicateWithHost lk.salyk.kg:30040 [11:43:50]ConnectInit lk.salyk.kg [11:43:50]Connected sock=10 [11:43:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 1F C5 07 01 FF 77 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 8E C6 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 55 30 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 30 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C1 0B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 10 8D 00 00 00 00 07 04 06 00 20 30 05 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 78 3E 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 30 DD 02 00 35 04 06 00 9E B7 42 1D C9 C5 DC 7C 74 D9 6F 65 4F BE [11:43:51]Write to MH i2c: 01 00 00 70 4D BD [11:43:51]Write i2c OK [11:43:51]MH_I2C_Read... [11:43:51]Read from MH i2c: 01 [11:43:51]MH_I2C_Read... [11:43:51]Read from MH i2c: 01 07 00 [11:43:51]MH_I2C_Read... [11:43:51]Read from MH i2c: 01 07 00 70 4D 00 00 00 00 00 7E 0C 4E [11:43:51]RasterBufferAndPrint [11:43:51]line [11:43:51]line [11:43:51]line [11:43:51]line [11:43:51]line [11:43:51]written 0, free lines is 3204 [11:43:51]MH_Cut [11:43:51]Write to MH i2c: D1 01 00 77 4D 01 96 [11:43:51]Write i2c OK [11:43:51]MH_I2C_Read... [11:43:51]Read from MH i2c: D1 [11:43:51]MH_I2C_Read... [11:43:51]Read from MH i2c: D1 01 00 [11:43:51]MH_I2C_Read... [11:43:51]Read from MH i2c: D1 01 00 77 4D 00 95 [11:43:51]Write to MH i2c: 01 00 00 78 4D C5 [11:43:51]Write i2c OK [11:43:51]MH_I2C_Read... [11:43:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 56 E5 47 00 24 3E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 30 DD 02 00 F4 03 04 00 68 E8 15 67 B6 04 01 00 00 EA 2B 6F 8C 17 B4 54 CD [11:43:51]CommunicateWithHost err = 0 [11:43:51]CheckOFDResponse [11:43:51]1017 (14) - 77093643461234 [11:43:51]1041 (16) - 0000000000965340 [11:43:51]1040 (4) - 187696 [11:43:51]1012 (4) - 21.10.2024 05:36 [11:43:51]1206 (1) - 0 [11:43:51]OFD Sender: Remove packet 187696 [11:43:51]ProducePacketName [11:43:51]name=ofd_packets/00187696 [11:43:51]NVStorageDeleteData [11:43:51]OFD Sender: No OFD packet to send [11:43:52]*** Cut start [11:43:52]*** Partial cut [11:43:52]*** CUTSNS_PIN = 1 [11:43:52]*** CUTSNS_PIN = 0 [11:43:52]*** Brake cut motor [11:43:52]*** Stop cut motor [11:43:52]*** Cut end [11:43:52]Read from MH i2c: 01 [11:43:52]MH_I2C_Read... [11:43:52]Read from MH i2c: 01 07 00 [11:43:52]MH_I2C_Read... [11:43:52]Read from MH i2c: 01 07 00 78 4D 00 00 00 00 00 FF 0F DA [11:43:52]process_action close_receipt done [11:43:52]requested_data is exist [11:43:52]produce_requested_data [11:43:52]requested_item fm.sn is exist - process it [11:43:52]wFMCommunicate request_size=4 [11:43:52]MH_SAM_APDU [11:43:52]CAPDU: 80 11 00 00 [11:43:52]Write to MH i2c: E2 08 00 79 4D 80 11 00 00 00 00 00 00 40 [11:43:52]Write i2c OK [11:43:52]MH_I2C_Read... [11:43:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:43:52]Read from MH i2c: E2 [11:43:52]MH_I2C_Read... [11:43:52]Read from MH i2c: E2 17 00 [11:43:52]MH_I2C_Read... [11:43:52]Read from MH i2c: E2 17 00 79 4D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 8E [11:43:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [11:43:52]wFMCommunicate OK [11:43:52]requested_item fd.num is exist - process it [11:43:52]SAM_PROTO_GetFieldsCounters [11:43:52]wFMCommunicate request_size=4 [11:43:52]MH_SAM_APDU [11:43:52]CAPDU: 80 13 00 00 [11:43:52]Write to MH i2c: E2 08 00 7A 4D 80 13 00 00 00 00 00 00 43 [11:43:52]Write i2c OK [11:43:52]MH_I2C_Read... [11:43:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:43:53]Read from MH i2c: E2 [11:43:53]MH_I2C_Read... [11:43:53]Read from MH i2c: E2 62 00 [11:43:53]MH_I2C_Read... [11:43:53]Read from MH i2c: E2 62 00 7A 4D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 30 DD 02 00 0E 04 04 00 CC 01 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 06 [11:43:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 30 DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 A0 00 00 00 5E 04 04 00 A0 00 00 00 57 04 04 00 A1 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:43:53]wFMCommunicate OK [11:43:53]SAM_PROTO_GetFieldsCounters done [11:43:53]requested_item shift.num is exist - process it [11:43:53]requested_item shift.opened is exist - process it [11:43:53]req_shift_opened [11:43:53]FM_GetShiftState [11:43:53]SAM_PROTO_GetShiftState [11:43:53]wFMCommunicate request_size=4 [11:43:53]MH_SAM_APDU [11:43:53]CAPDU: 80 13 01 00 [11:43:53]Write to MH i2c: E2 08 00 7B 4D 80 13 01 00 00 00 00 00 45 [11:43:53]Write i2c OK [11:43:53]MH_I2C_Read... [11:43:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:43:53]Read from MH i2c: E2 [11:43:53]MH_I2C_Read... [11:43:53]Read from MH i2c: E2 0E 00 [11:43:53]MH_I2C_Read... [11:43:53]Read from MH i2c: E2 0E 00 7B 4D 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 A4 [11:43:53]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [11:43:53]wFMCommunicate OK [11:43:53]SAM_PROTO_GetShiftState done [11:43:53]FM_GetShiftState done [11:43:53]req_shift_opened done [11:43:53]requested_item shift.open_date is exist - process it [11:43:53]req_shift_open_date [11:43:53]req_shift_open_date done [11:43:53]produce_requested_data done [11:43:53]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187696,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [11:43:53]process_action_free close_receipt [11:43:53]json_value_free [11:43:53]json_value_free done [11:43:53]process_json_proto returns [11:43:53]Send response to host [11:43:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187696,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [11:43:53]free response buf [11:43:53]execute_script done [11:43:53]execute_script returns [11:43:53]free content buf [11:43:53]Sock 8.Close socket [11:43:53]Sock 8.Thread stoped [11:43:56]OFD Sender: No OFD packet to send [11:44:01]OFD Sender: No OFD packet to send [11:44:06]OFD Sender: No OFD packet to send [11:44:11]OFD Sender: No OFD packet to send [11:44:16]OFD Sender: No OFD packet to send [11:44:21]OFD Sender: No OFD packet to send [11:44:26]OFD Sender: No OFD packet to send [11:44:31]OFD Sender: No OFD packet to send [11:44:36]OFD Sender: No OFD packet to send [11:44:41]OFD Sender: No OFD packet to send [11:44:47]OFD Sender: No OFD packet to send [11:44:52]OFD Sender: No OFD packet to send [11:44:57]OFD Sender: No OFD packet to send [11:45:02]OFD Sender: No OFD packet to send [11:45:07]OFD Sender: No OFD packet to send [11:45:12]OFD Sender: No OFD packet to send [11:45:17]OFD Sender: No OFD packet to send [11:45:22]OFD Sender: No OFD packet to send [11:45:27]OFD Sender: No OFD packet to send [11:45:32]OFD Sender: No OFD packet to send [11:45:37]OFD Sender: No OFD packet to send [11:45:42]OFD Sender: No OFD packet to send [11:45:47]OFD Sender: No OFD packet to send [11:45:52]OFD Sender: No OFD packet to send [11:45:57]OFD Sender: No OFD packet to send [11:46:02]OFD Sender: No OFD packet to send [11:46:07]OFD Sender: No OFD packet to send [11:46:12]OFD Sender: No OFD packet to send [11:46:17]OFD Sender: No OFD packet to send [11:46:22]OFD Sender: No OFD packet to send [11:46:23]accept exits with 9 [11:46:23]New connection [11:46:23]New thread 3067014500 created [11:46:23]Thread 3067157860 joined [11:46:23]Waiting for new connection... [11:46:23] Sock 9.Parse request [11:46:23]Sock 9.Check first char [11:46:23]Sock 9.First char is OK [11:46:23]request: POST /json_proto HTTP/1.0 [11:46:23]Method: POST [11:46:23]URL: /json_proto [11:46:23]Method is POST - this is cgi request [11:46:23]url: /json_proto [11:46:23]query_string will be loaded in cgi processing [11:46:23]execute_cgi json_proto POST (null) [11:46:23]execute_cgi path=json_proto method=POST [11:46:23]POST find Content-Length [11:46:23]Host: 172.17.42.131:8080 [11:46:23]Content-Length: 688 [11:46:23]Content-Type: application/json [11:46:23] [11:46:23]POST finish read [11:46:23]Found Content-Length = 688 [11:46:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209749", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 12.960, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:46:23]execute_script... [11:46: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)209749", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 12.960, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:46:23]POST & json_proto [11:46:23]process_json_proto [11:46:23]json parsed OK: [11:46:23]protocol is kg_v1.0 [11:46:23]action value=close_receipt [11:46:23]process_action close_receipt [11:46:23]cmd_close_receipt [11:46:23]MH_GetDate [11:46:23]Write to MH i2c: F0 00 00 7C 4D B8 [11:46:23]Write i2c OK [11:46:23]MH_I2C_Read... [11:46:23]Read from MH i2c: F0 [11:46:23]MH_I2C_Read... [11:46:23]Read from MH i2c: F0 09 00 [11:46:23]MH_I2C_Read... [11:46:23]Read from MH i2c: F0 09 00 7C 4D 00 13 3F 16 67 A0 18 CA 66 78 [11:46:23]GetLastDocTimeStamp 1729511032 [11:46:23]current date 1729511187 [11:46:23]FM_GetShiftState [11:46:23]SAM_PROTO_GetShiftState [11:46:23]wFMCommunicate request_size=4 [11:46:23]MH_SAM_APDU [11:46:23]CAPDU: 80 13 01 00 [11:46:23]Write to MH i2c: E2 08 00 7D 4D 80 13 01 00 00 00 00 00 47 [11:46:23]Write i2c OK [11:46:23]MH_I2C_Read... [11:46:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:46:23]Read from MH i2c: E2 [11:46:23]MH_I2C_Read... [11:46:23]Read from MH i2c: E2 0E 00 [11:46:23]MH_I2C_Read... [11:46:23]Read from MH i2c: E2 0E 00 7D 4D 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 A6 [11:46:23]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [11:46:23]wFMCommunicate OK [11:46:23]SAM_PROTO_GetShiftState done [11:46:23]FM_GetShiftState done [11:46:23]opened in 1729469754 [11:46:23]opened+sec_in_day 1729556154 [11:46:23]quantity*price = 100051 [11:46:23]sum+1 = 100052 [11:46:23]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 161 21.10.2024 11:46 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 187697 ФПД: 185749487401196 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T114627&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187697&fm=185749487401196&tin=02508201610067®Number=0000000000100030&sum=100000 [11:46:24]StoreToDocumentArchive [11:46:24]shift 460 fd 187697 [11:46:24]save to /storage/0460/doc_00187697 [11:46:24]save last doc name /storage/0460/doc_00187697 to /storage/kkm_last_doc_name [11:46:24]save OK [11:46:24]Clear old archive folders... [11:46:24]ProcessDocumentItem done err = 0, tmpTLVsize=257 [11:46:24]tlvbuf is 011AD250 [11:46:24]SAM_PROTO_ClearQueue [11:46:24]wFMCommunicate request_size=4 [11:46:24]MH_SAM_APDU [11:46:24]CAPDU: 80 09 00 00 [11:46:24]Write to MH i2c: E2 08 00 8A 4D 80 09 00 00 00 00 00 00 49 [11:46:24]Write i2c OK [11:46:24]MH_I2C_Read... [11:46:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:46:24]Read from MH i2c: E2 [11:46:24]MH_I2C_Read... [11:46:24]Read from MH i2c: E2 03 00 [11:46:24]MH_I2C_Read... [11:46:24]Read from MH i2c: E2 03 00 8A 4D 00 90 00 4B [11:46:24]RAPDU: 90 00 [11:46:24]wFMCommunicate OK [11:46:24]SAM_PROTO_ClearQueue done [11:46:24]KKMCreateOFDPacket [11:46:24]OFDProtocolAddRootSTLVToBuf [11:46:24]FM_MakeSignedData [11:46:24]FM_MakeSignedData [11:46:24]SAM_PROTO_SignData [11:46:24]wFMCommunicate request_size=4 [11:46:24]MH_SAM_APDU [11:46:24]CAPDU: 80 0D 01 02 [11:46:24]Write to MH i2c: E2 08 00 8B 4D 80 0D 01 02 00 00 00 00 51 [11:46:24]Write i2c OK [11:46:24]MH_I2C_Read... [11:46:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:46:24]Read from MH i2c: E2 [11:46:24]MH_I2C_Read... [11:46:24]Read from MH i2c: E2 03 00 [11:46:24]MH_I2C_Read... [11:46:24]Read from MH i2c: E2 03 00 8B 4D 00 90 00 4C [11:46:24]RAPDU: 90 00 [11:46:24]wFMCommunicate OK [11:46:24]wFMCommunicate request_size=255 [11:46:24]MH_SAM_APDU [11:46:24]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A1 00 00 00 F4 03 04 00 13 3F 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 31 DD 02 [11:46:24]Write to MH i2c: E2 02 01 8C 4D 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A1 00 00 00 F4 03 04 00 13 3F 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 31 DD 02 00 00 FB [11:46:24]Write i2c OK [11:46:24]MH_I2C_Read... [11:46:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:46:24]Read from MH i2c: E2 [11:46:24]MH_I2C_Read... [11:46:24]Read from MH i2c: E2 03 00 [11:46:24]MH_I2C_Read... [11:46:24]Read from MH i2c: E2 03 00 8C 4D 00 90 00 4D [11:46:24]RAPDU: 90 00 [11:46:24]wFMCommunicate OK [11:46:24]wFMCommunicate request_size=16 [11:46:24]MH_SAM_APDU [11:46:24]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 A8 F0 2C 36 B8 EC [11:46:24]Write to MH i2c: E2 13 00 8D 4D 80 0D 02 02 0B 00 00 35 04 06 00 A8 F0 2C 36 B8 EC 00 00 47 [11:46:24]Write i2c OK [11:46:24]MH_I2C_Read... [11:46:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:46:24]Read from MH i2c: E2 [11:46:24]MH_I2C_Read... [11:46:24]Read from MH i2c: E2 03 00 [11:46:24]MH_I2C_Read... [11:46:24]Read from MH i2c: E2 03 00 8D 4D 00 90 00 4E [11:46:24]RAPDU: 90 00 [11:46:24]wFMCommunicate OK [11:46:24]wFMCommunicate request_size=4 [11:46:24]MH_SAM_APDU [11:46:24]CAPDU: 80 0D 03 02 [11:46:24]Write to MH i2c: E2 08 00 8E 4D 80 0D 03 02 00 00 00 00 56 [11:46:24]Write i2c OK [11:46:24]MH_I2C_Read... [11:46:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:46:24]Read from MH i2c: E2 [11:46:24]MH_I2C_Read... [11:46:24]Read from MH i2c: E2 0B 00 [11:46:24]MH_I2C_Read... [11:46:24]Read from MH i2c: E2 0B 00 8E 4D 00 44 F2 DC B8 42 47 9B CB 90 00 10 [11:46:24]RAPDU: 44 F2 DC B8 42 47 9B CB 90 00 [11:46:24]wFMCommunicate OK [11:46:24]SAM_PROTO_SignData done [11:46:24]FM_MakeSignedData done [11:46:24]CreateOFDProtocolMessage [11:46:24]wFMCommunicate request_size=4 [11:46:24]MH_SAM_APDU [11:46:24]CAPDU: 80 11 00 00 [11:46:24]Write to MH i2c: E2 08 00 8F 4D 80 11 00 00 00 00 00 00 56 [11:46:24]Write i2c OK [11:46:24]MH_I2C_Read... [11:46:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:46:24]Read from MH i2c: E2 [11:46:24]MH_I2C_Read... [11:46:24]Read from MH i2c: E2 17 00 [11:46:24]MH_I2C_Read... [11:46:24]Read from MH i2c: E2 17 00 8F 4D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 A4 [11:46:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [11:46:25]wFMCommunicate OK [11:46:25]CreateOFDProtocolMessage done [11:46:25]OFDSenderStorePacket 187697 [11:46:25]StoreOFDPacket docnum=187697 [11:46:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 83 70 0D 01 92 51 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 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A1 00 00 00 F4 03 04 00 13 3F 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 31 DD 02 00 35 04 06 00 A8 F0 2C 36 B8 EC 44 F2 DC B8 42 47 9B CB [11:46:25]CheckFolder [11:46:25]dirname=/storage/ofd_packets [11:46:25]CheckFolder done [11:46:25]ProducePacketName [11:46:25]name=ofd_packets/00187697 [11:46:25]NVStorageSaveData ofd_packets/00187697 [11:46:25]File name is /storage/ofd_packets/00187697 [11:46:25]Write 307 bytes [11:46:25]NVStorageSaveData done [11:46:25]OFDSenderStorePacket done [11:46:25]KKMCreateOFDPacket done [11:46:25]NVStorageSaveData kkm_last_timestamp [11:46:25]File name is /storage/kkm_last_timestamp [11:46:25]Write 4 bytes [11:46:25]NVStorageSaveData done [11:46:25]ExternCall_PrintAddStr [11:46:25]wPrintStart [11:46:25]Write to MH i2c: 01 00 00 90 4D DD [11:46:25]Write i2c OK [11:46:25]MH_I2C_Read... [11:46:25]Read from MH i2c: 01 [11:46:25]MH_I2C_Read... [11:46:25]Read from MH i2c: 01 07 00 [11:46:25]MH_I2C_Read... [11:46:25]Read from MH i2c: 01 07 00 90 4D 00 00 00 00 00 FF 0F F2 [11:46:25]RasterBufferAndPrint [11:46:25]line Счет N : (1)209749 [11:46:25]line ИНН: 02508201610067 [11:46:25]line Контрольно-Кассовый Чек [11:46:25]line ПРОДАЖА [11:46:25]line ТРК (МРК, ГНК) : 41 [11:46:25]line Товар: 2710194210 [11:46:25]line D-ENERGY ДТ-К-5 [11:46:25]line 12.960 * 77.20 [11:46:25]line = 1000.51 [11:46:25]line НДС 12% НСП 1% [11:46:25]line > о реализуемом товаре [11:46:25]line ОКРУГЛЕНИЕ: -0.51 [11:46:25]line ИТОГО: 1000.00 [11:46:25]line Внесено: 1000.00 [11:46:25]line СДАЧА: 0.00 [11:46:25]line НСП 1% : 8.85 [11:46:25]line НДС 12% : 106.25 [11:46:25]line Наличными: 1000.00 [11:46:25]line Безнал.: 0.00 [11:46:25]line Место: АЗС № 86 "Партнер Нефть" [11:46:25]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [11:46:25]line СНО: Общий режим [11:46:25]line Чек 161 21.10.2024 11:46 [11:46:25]line Смена: 460 ФФД: 1.0 [11:46:25]line ЗНМ: 0300000155 [11:46:25]line РНМ: 0000000000100030 [11:46:25]line Версия ККМ: 001 [11:46:25]line ФМ: 0000000000965340 [11:46:25]line ФД: 187697 [11:46:25]line ФПД: 185749487401196 [11:46:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T114627&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187697&fm=185749487401196&tin=02508201610067®Number=0000000000100030&sum=100000 [11:46:25]written 0, free lines is 4095 [11:46:25]OFD Sender: Processing packet 187697 [packets to send 1062, broken 1061] [11:46:25]ProducePacketName [11:46:25]name=ofd_packets/00187697 [11:46:25]OFD Sender: To server: pG, [11:46:25]CommunicateWithHost lk.salyk.kg:30040 [11:46:25]ConnectInit lk.salyk.kg [11:46:25]Connected sock=10 [11:46:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 83 70 0D 01 92 51 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 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A1 00 00 00 F4 03 04 00 13 3F 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 31 DD 02 00 35 04 06 00 A8 F0 2C 36 B8 EC 44 F2 DC B8 42 47 9B CB [11:46:25]Write to MH i2c: 01 00 00 BB 4D 08 [11:46:25]Write i2c OK [11:46:25]MH_I2C_Read... [11:46:25]Read from MH i2c: 01 [11:46:25]MH_I2C_Read... [11:46:25]Read from MH i2c: 01 07 00 [11:46:25]MH_I2C_Read... [11:46:25]Read from MH i2c: 01 07 00 BB 4D 00 00 00 00 00 7D 0C 98 [11:46:25]RasterBufferAndPrint [11:46:25]line [11:46:25]line [11:46:25]line [11:46:25]line [11:46:25]line [11:46:25]written 0, free lines is 3200 [11:46:25]MH_Cut [11:46:25]Write to MH i2c: D1 01 00 C2 4D 01 E1 [11:46:25]Write i2c OK [11:46:25]MH_I2C_Read... [11:46:25]Read from MH i2c: D1 [11:46:25]MH_I2C_Read... [11:46:25]Read from MH i2c: D1 01 00 [11:46:25]MH_I2C_Read... [11:46:25]Read from MH i2c: D1 01 00 C2 4D 00 E0 [11:46:25]Write to MH i2c: 01 00 00 C3 4D 10 [11:46:25]Write i2c OK [11:46:25]MH_I2C_Read... [11:46:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 12 C7 47 00 73 35 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 31 DD 02 00 F4 03 04 00 02 E9 15 67 B6 04 01 00 00 3F 1A 44 F9 9C E1 C0 C2 [11:46:25]CommunicateWithHost err = 0 [11:46:25]CheckOFDResponse [11:46:25]1017 (14) - 77093643461234 [11:46:25]1041 (16) - 0000000000965340 [11:46:25]1040 (4) - 187697 [11:46:25]1012 (4) - 21.10.2024 05:39 [11:46:25]1206 (1) - 0 [11:46:25]OFD Sender: Remove packet 187697 [11:46:25]ProducePacketName [11:46:25]name=ofd_packets/00187697 [11:46:25]NVStorageDeleteData [11:46:26]OFD Sender: No OFD packet to send [11:46:26]*** Cut start [11:46:26]*** Partial cut [11:46:26]*** CUTSNS_PIN = 1 [11:46:26]*** CUTSNS_PIN = 0 [11:46:26]*** Brake cut motor [11:46:27]Read from MH i2c: 01 [11:46:27]MH_I2C_Read... [11:46:27]*** Stop cut motor [11:46:27]*** Cut end [11:46:27]Read from MH i2c: 01 07 00 [11:46:27]MH_I2C_Read... [11:46:27]Read from MH i2c: 01 07 00 C3 4D 00 00 00 00 00 FF 0F 25 [11:46:27]process_action close_receipt done [11:46:27]requested_data is exist [11:46:27]produce_requested_data [11:46:27]requested_item fm.sn is exist - process it [11:46:27]wFMCommunicate request_size=4 [11:46:27]MH_SAM_APDU [11:46:27]CAPDU: 80 11 00 00 [11:46:27]Write to MH i2c: E2 08 00 C4 4D 80 11 00 00 00 00 00 00 8B [11:46:27]Write i2c OK [11:46:27]MH_I2C_Read... [11:46:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:46:27]Read from MH i2c: E2 [11:46:27]MH_I2C_Read... [11:46:27]Read from MH i2c: E2 17 00 [11:46:27]MH_I2C_Read... [11:46:27]Read from MH i2c: E2 17 00 C4 4D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 D9 [11:46:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [11:46:27]wFMCommunicate OK [11:46:27]requested_item fd.num is exist - process it [11:46:27]SAM_PROTO_GetFieldsCounters [11:46:27]wFMCommunicate request_size=4 [11:46:27]MH_SAM_APDU [11:46:27]CAPDU: 80 13 00 00 [11:46:27]Write to MH i2c: E2 08 00 C5 4D 80 13 00 00 00 00 00 00 8E [11:46:27]Write i2c OK [11:46:27]MH_I2C_Read... [11:46:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:46:27]Read from MH i2c: E2 [11:46:27]MH_I2C_Read... [11:46:27]Read from MH i2c: E2 62 00 [11:46:27]MH_I2C_Read... [11:46:27]Read from MH i2c: E2 62 00 C5 4D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 31 DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 A1 00 00 00 5E 04 04 00 A1 00 00 00 57 04 04 00 A2 00 00 00 19 04 04 00 00 00 00 00 90 00 55 [11:46:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 31 DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 A1 00 00 00 5E 04 04 00 A1 00 00 00 57 04 04 00 A2 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:46:27]wFMCommunicate OK [11:46:27]SAM_PROTO_GetFieldsCounters done [11:46:27]requested_item shift.num is exist - process it [11:46:27]requested_item shift.opened is exist - process it [11:46:27]req_shift_opened [11:46:27]FM_GetShiftState [11:46:27]SAM_PROTO_GetShiftState [11:46:27]wFMCommunicate request_size=4 [11:46:27]MH_SAM_APDU [11:46:27]CAPDU: 80 13 01 00 [11:46:27]Write to MH i2c: E2 08 00 C6 4D 80 13 01 00 00 00 00 00 90 [11:46:27]Write i2c OK [11:46:27]MH_I2C_Read... [11:46:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:46:27]Read from MH i2c: E2 [11:46:27]MH_I2C_Read... [11:46:27]Read from MH i2c: E2 0E 00 [11:46:27]MH_I2C_Read... [11:46:27]Read from MH i2c: E2 0E 00 C6 4D 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 EF [11:46:27]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [11:46:27]wFMCommunicate OK [11:46:27]SAM_PROTO_GetShiftState done [11:46:27]FM_GetShiftState done [11:46:27]req_shift_opened done [11:46:27]requested_item shift.open_date is exist - process it [11:46:27]req_shift_open_date [11:46:27]req_shift_open_date done [11:46:27]produce_requested_data done [11:46:27]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187697,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [11:46:27]process_action_free close_receipt [11:46:27]json_value_free [11:46:27]json_value_free done [11:46:27]process_json_proto returns [11:46:27]Send response to host [11:46:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187697,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [11:46:27]free response buf [11:46:27]execute_script done [11:46:27]execute_script returns [11:46:27]free content buf [11:46:27]Sock 9.Close socket [11:46:27]Sock 9.Thread stoped [11:46:27]accept exits with 8 [11:46:27]New connection [11:46:27]New thread 3067157860 created [11:46:27]Thread 3067014500 joined [11:46:27]Waiting for new connection... [11:46:27] Sock 8.Parse request [11:46:27]Sock 8.Check first char [11:46:27]Sock 8.First char is OK [11:46:27]request: POST /json_proto HTTP/1.0 [11:46:27]Method: POST [11:46:27]URL: /json_proto [11:46:27]Method is POST - this is cgi request [11:46:27]url: /json_proto [11:46:27]query_string will be loaded in cgi processing [11:46:27]execute_cgi json_proto POST (null) [11:46:27]execute_cgi path=json_proto method=POST [11:46:27]POST find Content-Length [11:46:27]Host: 172.17.42.131:8080 [11:46:27]Content-Length: 766 [11:46:27]Content-Type: application/json [11:46:27] [11:46:27]POST finish read [11:46:27]Found Content-Length = 766 [11:46:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209750", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 6.740, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 500.11 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:46:27]execute_script... [11:46: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)209750", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 6.740, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 500.11 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:46:27]POST & json_proto [11:46:27]process_json_proto [11:46:27]json parsed OK: [11:46:27]protocol is kg_v1.0 [11:46:27]action value=close_receipt [11:46:27]process_action close_receipt [11:46:27]cmd_close_receipt [11:46:27]MH_GetDate [11:46:27]Write to MH i2c: F0 00 00 C7 4D 03 [11:46:27]Write i2c OK [11:46:27]MH_I2C_Read... [11:46:27]Read from MH i2c: F0 [11:46:27]MH_I2C_Read... [11:46:27]Read from MH i2c: F0 09 00 [11:46:27]MH_I2C_Read... [11:46:27]Read from MH i2c: F0 09 00 C7 4D 00 17 3F 16 67 A0 18 CA 66 C7 [11:46:27]GetLastDocTimeStamp 1729511187 [11:46:27]current date 1729511191 [11:46:27]FM_GetShiftState [11:46:27]SAM_PROTO_GetShiftState [11:46:27]wFMCommunicate request_size=4 [11:46:27]MH_SAM_APDU [11:46:27]CAPDU: 80 13 01 00 [11:46:27]Write to MH i2c: E2 08 00 C8 4D 80 13 01 00 00 00 00 00 92 [11:46:27]Write i2c OK [11:46:27]MH_I2C_Read... [11:46:27]Read from MH i2c: E2 [11:46:27]MH_I2C_Read... [11:46:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:46:27]Read from MH i2c: E2 0E 00 [11:46:27]MH_I2C_Read... [11:46:27]Read from MH i2c: E2 0E 00 C8 4D 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 F1 [11:46:27]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [11:46:27]wFMCommunicate OK [11:46:27]SAM_PROTO_GetShiftState done [11:46:27]FM_GetShiftState done [11:46:27]opened in 1729469754 [11:46:27]opened+sec_in_day 1729556154 [11:46:27]quantity*price = 50010 [11:46:27]sum+1 = 50012 [11:46:27]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.11 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 0.00 Безнал.: 500.11 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 162 21.10.2024 11:46 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000965340 ФД: 187698 ФПД: 263189637041165 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T114631&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187698&fm=263189637041165&tin=02508201610067®Number=0000000000100030&sum=50011 [11:46:29]StoreToDocumentArchive [11:46:29]shift 460 fd 187698 [11:46:29]save to /storage/0460/doc_00187698 [11:46:29]save last doc name /storage/0460/doc_00187698 to /storage/kkm_last_doc_name [11:46:29]save OK [11:46:29]Clear old archive folders... [11:46:29]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:46:29]tlvbuf is 0110F7D0 [11:46:29]SAM_PROTO_ClearQueue [11:46:29]wFMCommunicate request_size=4 [11:46:29]MH_SAM_APDU [11:46:29]CAPDU: 80 09 00 00 [11:46:29]Write to MH i2c: E2 08 00 D5 4D 80 09 00 00 00 00 00 00 94 [11:46:29]Write i2c OK [11:46:29]MH_I2C_Read... [11:46:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:46:29]Read from MH i2c: E2 [11:46:29]MH_I2C_Read... [11:46:29]Read from MH i2c: E2 03 00 [11:46:29]MH_I2C_Read... [11:46:29]Read from MH i2c: E2 03 00 D5 4D 00 90 00 96 [11:46:29]RAPDU: 90 00 [11:46:29]wFMCommunicate OK [11:46:29]SAM_PROTO_ClearQueue done [11:46:29]KKMCreateOFDPacket [11:46:29]OFDProtocolAddRootSTLVToBuf [11:46:29]FM_MakeSignedData [11:46:29]FM_MakeSignedData [11:46:29]SAM_PROTO_SignData [11:46:29]wFMCommunicate request_size=4 [11:46:29]MH_SAM_APDU [11:46:29]CAPDU: 80 0D 01 02 [11:46:29]Write to MH i2c: E2 08 00 D6 4D 80 0D 01 02 00 00 00 00 9C [11:46:29]Write i2c OK [11:46:29]MH_I2C_Read... [11:46:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:46:29]Read from MH i2c: E2 [11:46:29]MH_I2C_Read... [11:46:29]Read from MH i2c: E2 03 00 [11:46:29]MH_I2C_Read... [11:46:29]Read from MH i2c: E2 03 00 D6 4D 00 90 00 97 [11:46:29]RAPDU: 90 00 [11:46:29]wFMCommunicate OK [11:46:29]wFMCommunicate request_size=255 [11:46:29]MH_SAM_APDU [11:46: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5B C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5B C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A2 00 00 00 F4 03 04 00 17 3F 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 32 DD 02 00 35 04 06 00 EF [11:46:29]Write to MH i2c: E2 02 01 D7 4D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5B C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5B C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A2 00 00 00 F4 03 04 00 17 3F 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 32 DD 02 00 35 04 06 00 EF 00 00 3F [11:46:29]Write i2c OK [11:46:29]MH_I2C_Read... [11:46:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:46:29]Read from MH i2c: E2 [11:46:29]MH_I2C_Read... [11:46:29]Read from MH i2c: E2 03 00 [11:46:29]MH_I2C_Read... [11:46:29]Read from MH i2c: E2 03 00 D7 4D 00 90 00 98 [11:46:29]RAPDU: 90 00 [11:46:29]wFMCommunicate OK [11:46:29]wFMCommunicate request_size=10 [11:46:29]MH_SAM_APDU [11:46:29]CAPDU: 80 0D 02 02 05 5E 9C D3 0C 0D [11:46:29]Write to MH i2c: E2 0D 00 D8 4D 80 0D 02 02 05 00 5E 9C D3 0C 0D 00 00 8F [11:46:29]Write i2c OK [11:46:29]MH_I2C_Read... [11:46:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:46:29]Read from MH i2c: E2 [11:46:29]MH_I2C_Read... [11:46:29]Read from MH i2c: E2 03 00 [11:46:29]MH_I2C_Read... [11:46:29]Read from MH i2c: E2 03 00 D8 4D 00 90 00 99 [11:46:29]RAPDU: 90 00 [11:46:29]wFMCommunicate OK [11:46:29]wFMCommunicate request_size=4 [11:46:29]MH_SAM_APDU [11:46:29]CAPDU: 80 0D 03 02 [11:46:29]Write to MH i2c: E2 08 00 D9 4D 80 0D 03 02 00 00 00 00 A1 [11:46:29]Write i2c OK [11:46:29]MH_I2C_Read... [11:46:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:46:29]Read from MH i2c: E2 [11:46:29]MH_I2C_Read... [11:46:29]Read from MH i2c: E2 0B 00 [11:46:29]MH_I2C_Read... [11:46:29]Read from MH i2c: E2 0B 00 D9 4D 00 C4 2B 5D 18 07 E4 FD 21 90 00 0F [11:46:29]RAPDU: C4 2B 5D 18 07 E4 FD 21 90 00 [11:46:29]wFMCommunicate OK [11:46:29]SAM_PROTO_SignData done [11:46:29]FM_MakeSignedData done [11:46:29]CreateOFDProtocolMessage [11:46:29]wFMCommunicate request_size=4 [11:46:29]MH_SAM_APDU [11:46:29]CAPDU: 80 11 00 00 [11:46:29]Write to MH i2c: E2 08 00 DA 4D 80 11 00 00 00 00 00 00 A1 [11:46:29]Write i2c OK [11:46:29]MH_I2C_Read... [11:46:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:46:29]Read from MH i2c: E2 [11:46:29]MH_I2C_Read... [11:46:29]Read from MH i2c: E2 17 00 [11:46:29]MH_I2C_Read... [11:46:29]Read from MH i2c: E2 17 00 DA 4D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 EF [11:46:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [11:46:29]wFMCommunicate OK [11:46:29]CreateOFDProtocolMessage done [11:46:29]OFDSenderStorePacket 187698 [11:46:29]StoreOFDPacket docnum=187698 [11:46:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 C3 6B 07 01 D1 8B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5B C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5B C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A2 00 00 00 F4 03 04 00 17 3F 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 32 DD 02 00 35 04 06 00 EF 5E 9C D3 0C 0D C4 2B 5D 18 07 E4 FD 21 [11:46:29]CheckFolder [11:46:29]dirname=/storage/ofd_packets [11:46:29]CheckFolder done [11:46:29]ProducePacketName [11:46:29]name=ofd_packets/00187698 [11:46:29]NVStorageSaveData ofd_packets/00187698 [11:46:29]File name is /storage/ofd_packets/00187698 [11:46:29]Write 301 bytes [11:46:29]NVStorageSaveData done [11:46:29]OFDSenderStorePacket done [11:46:29]KKMCreateOFDPacket done [11:46:29]NVStorageSaveData kkm_last_timestamp [11:46:29]File name is /storage/kkm_last_timestamp [11:46:29]Write 4 bytes [11:46:29]NVStorageSaveData done [11:46:29]ExternCall_PrintAddStr [11:46:29]wPrintStart [11:46:29]Write to MH i2c: 01 00 00 DB 4D 28 [11:46:29]Write i2c OK [11:46:29]MH_I2C_Read... [11:46:29]Read from MH i2c: 01 [11:46:29]MH_I2C_Read... [11:46:29]Read from MH i2c: 01 07 00 [11:46:29]MH_I2C_Read... [11:46:29]Read from MH i2c: 01 07 00 DB 4D 00 00 00 00 00 FF 0F 3D [11:46:29]RasterBufferAndPrint [11:46:29]line Счет N : (1)209750 [11:46:29]line ИНН: 02508201610067 [11:46:29]line Контрольно-Кассовый Чек [11:46:29]line ПРОДАЖА [11:46:29]line ТРК (МРК, ГНК) : 13 [11:46:29]line Товар: 2710124500 [11:46:29]line Аи-95-К-3 [11:46:29]line 6.740 * 74.20 [11:46:29]line = 500.11 [11:46:29]line НДС 12% НСП 1% [11:46:29]line > о реализуемом товаре [11:46:29]line ИТОГО: 500.11 [11:46:29]line НСП 1% : 4.43 [11:46:29]line НДС 12% : 53.11 [11:46:29]line Наличными: 0.00 [11:46:29]line Безнал.: 500.11 [11:46:29]line Место: АЗС № 86 "Партнер Нефть" [11:46:29]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [11:46:29]line СНО: Общий режим [11:46:29]line Чек 162 21.10.2024 11:46 [11:46:29]line Смена: 460 ФФД: 1.0 [11:46:29]line ЗНМ: 0300000155 [11:46:29]line РНМ: 0000000000100030 [11:46:29]line Версия ККМ: 001 [11:46:29]line Платежная система: Mbank [11:46:29]line ФМ: 0000000000965340 [11:46:29]line ФД: 187698 [11:46:29]line ФПД: 263189637041165 [11:46:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T114631&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187698&fm=263189637041165&tin=02508201610067®Number=0000000000100030&sum=50011 [11:46:30]OFD Sender: Processing packet 187698 [packets to send 1062, broken 1061] [11:46:30]ProducePacketName [11:46:30]name=ofd_packets/00187698 [11:46:30]OFD Sender: To server: pG, [11:46:30]CommunicateWithHost lk.salyk.kg:30040 [11:46:30]ConnectInit lk.salyk.kg [11:46:30]written 0, free lines is 4095 [11:46:30]Connected sock=10 [11:46:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 C3 6B 07 01 D1 8B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5B C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5B C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A2 00 00 00 F4 03 04 00 17 3F 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 32 DD 02 00 35 04 06 00 EF 5E 9C D3 0C 0D C4 2B 5D 18 07 E4 FD 21 [11:46:30]Write to MH i2c: 01 00 00 04 4E 52 [11:46:30]Write i2c OK [11:46:30]MH_I2C_Read... [11:46:30]Read from MH i2c: 01 [11:46:30]MH_I2C_Read... [11:46:30]Read from MH i2c: 01 07 00 [11:46:30]MH_I2C_Read... [11:46:30]Read from MH i2c: 01 07 00 04 4E 00 00 00 00 00 B6 0C 1B [11:46:30]RasterBufferAndPrint [11:46:30]line [11:46:30]line [11:46:30]line [11:46:30]line [11:46:30]line [11:46:30]written 0, free lines is 3262 [11:46:30]MH_Cut [11:46:30]Write to MH i2c: D1 01 00 0B 4E 01 2B [11:46:30]Write i2c OK [11:46:30]MH_I2C_Read... [11:46:30]Read from MH i2c: D1 [11:46:30]MH_I2C_Read... [11:46:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 0C C1 47 00 5F F0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 32 DD 02 00 F4 03 04 00 08 E9 15 67 B6 04 01 00 00 E1 35 2F 72 F1 5B AA 3C [11:46:30]CommunicateWithHost err = 0 [11:46:30]CheckOFDResponse [11:46:30]1017 (14) - 77093643461234 [11:46:30]1041 (16) - 0000000000965340 [11:46:30]1040 (4) - 187698 [11:46:30]1012 (4) - 21.10.2024 05:39 [11:46:30]1206 (1) - 0 [11:46:30]OFD Sender: Remove packet 187698 [11:46:30]ProducePacketName [11:46:30]name=ofd_packets/00187698 [11:46:30]NVStorageDeleteData [11:46:30]Read from MH i2c: D1 01 00 [11:46:30]MH_I2C_Read... [11:46:30]Read from MH i2c: D1 01 00 0B 4E 00 2A [11:46:30]Write to MH i2c: 01 00 00 0C 4E 5A [11:46:30]Write i2c OK [11:46:30]MH_I2C_Read... [11:46:31]OFD Sender: No OFD packet to send [11:46:31]*** Cut start [11:46:31]*** Partial cut [11:46:31]*** CUTSNS_PIN = 1 [11:46:31]*** CUTSNS_PIN = 0 [11:46:31]*** Brake cut motor [11:46:32]Read from MH i2c: 01 [11:46:32]MH_I2C_Read... [11:46:32]*** Stop cut motor [11:46:32]*** Cut end [11:46:32]Read from MH i2c: 01 07 00 [11:46:32]MH_I2C_Read... [11:46:32]Read from MH i2c: 01 07 00 0C 4E 00 00 00 00 00 FF 0F 6F [11:46:32]process_action close_receipt done [11:46:32]requested_data is exist [11:46:32]produce_requested_data [11:46:32]requested_item fm.sn is exist - process it [11:46:32]wFMCommunicate request_size=4 [11:46:32]MH_SAM_APDU [11:46:32]CAPDU: 80 11 00 00 [11:46:32]Write to MH i2c: E2 08 00 0D 4E 80 11 00 00 00 00 00 00 D5 [11:46:32]Write i2c OK [11:46:32]MH_I2C_Read... [11:46:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:46:32]Read from MH i2c: E2 [11:46:32]MH_I2C_Read... [11:46:32]Read from MH i2c: E2 17 00 [11:46:32]MH_I2C_Read... [11:46:32]Read from MH i2c: E2 17 00 0D 4E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 23 [11:46:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [11:46:32]wFMCommunicate OK [11:46:32]requested_item fd.num is exist - process it [11:46:32]SAM_PROTO_GetFieldsCounters [11:46:32]wFMCommunicate request_size=4 [11:46:32]MH_SAM_APDU [11:46:32]CAPDU: 80 13 00 00 [11:46:32]Write to MH i2c: E2 08 00 0E 4E 80 13 00 00 00 00 00 00 D8 [11:46:32]Write i2c OK [11:46:32]MH_I2C_Read... [11:46:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:46:32]Read from MH i2c: E2 [11:46:32]MH_I2C_Read... [11:46:32]Read from MH i2c: E2 62 00 [11:46:32]MH_I2C_Read... [11:46:32]Read from MH i2c: E2 62 00 0E 4E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 32 DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 A2 00 00 00 5E 04 04 00 A2 00 00 00 57 04 04 00 A3 00 00 00 19 04 04 00 00 00 00 00 90 00 A3 [11:46:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 32 DD 02 00 0E 04 04 00 CC 01 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 [11:46:32]wFMCommunicate OK [11:46:32]SAM_PROTO_GetFieldsCounters done [11:46:32]requested_item shift.num is exist - process it [11:46:32]requested_item shift.opened is exist - process it [11:46:32]req_shift_opened [11:46:32]FM_GetShiftState [11:46:32]SAM_PROTO_GetShiftState [11:46:32]wFMCommunicate request_size=4 [11:46:32]MH_SAM_APDU [11:46:32]CAPDU: 80 13 01 00 [11:46:32]Write to MH i2c: E2 08 00 0F 4E 80 13 01 00 00 00 00 00 DA [11:46:32]Write i2c OK [11:46:32]MH_I2C_Read... [11:46:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:46:32]Read from MH i2c: E2 [11:46:32]MH_I2C_Read... [11:46:32]Read from MH i2c: E2 0E 00 [11:46:32]MH_I2C_Read... [11:46:32]Read from MH i2c: E2 0E 00 0F 4E 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 39 [11:46:32]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [11:46:32]wFMCommunicate OK [11:46:32]SAM_PROTO_GetShiftState done [11:46:32]FM_GetShiftState done [11:46:32]req_shift_opened done [11:46:32]requested_item shift.open_date is exist - process it [11:46:32]req_shift_open_date [11:46:32]req_shift_open_date done [11:46:32]produce_requested_data done [11:46:32]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187698,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [11:46:32]process_action_free close_receipt [11:46:32]json_value_free [11:46:32]json_value_free done [11:46:32]process_json_proto returns [11:46:32]Send response to host [11:46:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187698,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [11:46:32]free response buf [11:46:32]execute_script done [11:46:32]execute_script returns [11:46:32]free content buf [11:46:32]Sock 8.Close socket [11:46:32]Sock 8.Thread stoped [11:46:36]OFD Sender: No OFD packet to send [11:46:41]OFD Sender: No OFD packet to send [11:46:46]OFD Sender: No OFD packet to send [11:46:51]OFD Sender: No OFD packet to send [11:46:56]OFD Sender: No OFD packet to send [11:47:01]OFD Sender: No OFD packet to send [11:47:06]OFD Sender: No OFD packet to send [11:47:11]OFD Sender: No OFD packet to send [11:47:16]OFD Sender: No OFD packet to send [11:47:21]OFD Sender: No OFD packet to send [11:47:26]OFD Sender: No OFD packet to send [11:47:31]OFD Sender: No OFD packet to send [11:47:36]OFD Sender: No OFD packet to send [11:47:41]OFD Sender: No OFD packet to send [11:47:46]OFD Sender: No OFD packet to send [11:47:51]OFD Sender: No OFD packet to send [11:47:56]OFD Sender: No OFD packet to send [11:48:01]OFD Sender: No OFD packet to send [11:48:06]OFD Sender: No OFD packet to send [11:48:11]OFD Sender: No OFD packet to send [11:48:16]OFD Sender: No OFD packet to send [11:48:21]OFD Sender: No OFD packet to send [11:48:26]OFD Sender: No OFD packet to send [11:48:31]OFD Sender: No OFD packet to send [11:48:36]OFD Sender: No OFD packet to send [11:48:41]OFD Sender: No OFD packet to send [11:48:46]OFD Sender: No OFD packet to send [11:48:51]OFD Sender: No OFD packet to send [11:48:56]OFD Sender: No OFD packet to send [11:49:01]OFD Sender: No OFD packet to send [11:49:06]OFD Sender: No OFD packet to send [11:49:11]OFD Sender: No OFD packet to send [11:49:17]OFD Sender: No OFD packet to send [11:49:22]OFD Sender: No OFD packet to send [11:49:27]OFD Sender: No OFD packet to send [11:49:32]OFD Sender: No OFD packet to send [11:49:37]OFD Sender: No OFD packet to send [11:49:42]OFD Sender: No OFD packet to send [11:49:47]OFD Sender: No OFD packet to send [11:49:52]OFD Sender: No OFD packet to send [11:49:57]OFD Sender: No OFD packet to send [11:50:02]OFD Sender: No OFD packet to send [11:50:07]OFD Sender: No OFD packet to send [11:50:12]OFD Sender: No OFD packet to send [11:50:17]OFD Sender: No OFD packet to send [11:50:22]OFD Sender: No OFD packet to send [11:50:27]OFD Sender: No OFD packet to send [11:50:32]OFD Sender: No OFD packet to send [11:50:37]OFD Sender: No OFD packet to send [11:50:42]OFD Sender: No OFD packet to send [11:50:47]OFD Sender: No OFD packet to send [11:50:52]OFD Sender: No OFD packet to send [11:50:57]OFD Sender: No OFD packet to send [11:51:02]OFD Sender: No OFD packet to send [11:51:07]OFD Sender: No OFD packet to send [11:51:12]OFD Sender: No OFD packet to send [11:51:17]OFD Sender: No OFD packet to send [11:51:22]OFD Sender: No OFD packet to send [11:51:27]OFD Sender: No OFD packet to send [11:51:32]OFD Sender: No OFD packet to send [11:51:37]OFD Sender: No OFD packet to send [11:51:42]OFD Sender: No OFD packet to send [11:51:47]OFD Sender: No OFD packet to send [11:51:52]OFD Sender: No OFD packet to send [11:51:57]OFD Sender: No OFD packet to send [11:52:02]OFD Sender: No OFD packet to send [11:52:07]OFD Sender: No OFD packet to send [11:52:12]OFD Sender: No OFD packet to send [11:52:17]OFD Sender: No OFD packet to send [11:52:22]OFD Sender: No OFD packet to send [11:52:27]OFD Sender: No OFD packet to send [11:52:32]OFD Sender: No OFD packet to send [11:52:37]OFD Sender: No OFD packet to send [11:52:42]OFD Sender: No OFD packet to send [11:52:47]OFD Sender: No OFD packet to send [11:52:52]OFD Sender: No OFD packet to send [11:52:57]OFD Sender: No OFD packet to send [11:53:03]OFD Sender: No OFD packet to send [11:53:08]OFD Sender: No OFD packet to send [11:53:13]OFD Sender: No OFD packet to send [11:53:18]OFD Sender: No OFD packet to send [11:53:23]OFD Sender: No OFD packet to send [11:53:28]OFD Sender: No OFD packet to send [11:53:33]OFD Sender: No OFD packet to send [11:53:38]OFD Sender: No OFD packet to send [11:53:43]OFD Sender: No OFD packet to send [11:53:48]OFD Sender: No OFD packet to send [11:53:53]OFD Sender: No OFD packet to send [11:53:58]OFD Sender: No OFD packet to send [11:54:03]OFD Sender: No OFD packet to send [11:54:08]OFD Sender: No OFD packet to send [11:54:13]OFD Sender: No OFD packet to send [11:54:18]OFD Sender: No OFD packet to send [11:54:23]OFD Sender: No OFD packet to send [11:54:28]OFD Sender: No OFD packet to send [11:54:33]OFD Sender: No OFD packet to send [11:54:38]OFD Sender: No OFD packet to send [11:54:43]OFD Sender: No OFD packet to send [11:54:48]OFD Sender: No OFD packet to send [11:54:53]OFD Sender: No OFD packet to send [11:54:58]OFD Sender: No OFD packet to send [11:55:03]OFD Sender: No OFD packet to send [11:55:08]OFD Sender: No OFD packet to send [11:55:10]accept exits with 9 [11:55:10]New connection [11:55:10]New thread 3067014500 created [11:55:10]Thread 3067157860 joined [11:55:10]Waiting for new connection... [11:55:10] Sock 9.Parse request [11:55:10]Sock 9.Check first char [11:55:10]Sock 9.First char is OK [11:55:10]request: POST /json_proto HTTP/1.0 [11:55:10]Method: POST [11:55:10]URL: /json_proto [11:55:10]Method is POST - this is cgi request [11:55:10]url: /json_proto [11:55:10]query_string will be loaded in cgi processing [11:55:10]execute_cgi json_proto POST (null) [11:55:10]execute_cgi path=json_proto method=POST [11:55:10]POST find Content-Length [11:55:10]Host: 172.17.42.131:8080 [11:55:10]Content-Length: 677 [11:55:10]Content-Type: application/json [11:55:10] [11:55:10]POST finish read [11:55:10]Found Content-Length = 677 [11:55:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209751", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "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:55:10]execute_script... [11:55: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)209751", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "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:55:10]POST & json_proto [11:55:10]process_json_proto [11:55:10]json parsed OK: [11:55:10]protocol is kg_v1.0 [11:55:10]action value=close_receipt [11:55:10]process_action close_receipt [11:55:10]cmd_close_receipt [11:55:10]MH_GetDate [11:55:10]Write to MH i2c: F0 00 00 10 4E 4D [11:55:10]Write i2c OK [11:55:10]MH_I2C_Read... [11:55:10]Read from MH i2c: F0 [11:55:10]MH_I2C_Read... [11:55:10]Read from MH i2c: F0 09 00 [11:55:10]MH_I2C_Read... [11:55:10]Read from MH i2c: F0 09 00 10 4E 00 22 41 16 67 A0 18 CA 66 1E [11:55:10]GetLastDocTimeStamp 1729511191 [11:55:10]current date 1729511714 [11:55:10]FM_GetShiftState [11:55:10]SAM_PROTO_GetShiftState [11:55:10]wFMCommunicate request_size=4 [11:55:10]MH_SAM_APDU [11:55:10]CAPDU: 80 13 01 00 [11:55:10]Write to MH i2c: E2 08 00 11 4E 80 13 01 00 00 00 00 00 DC [11:55:10]Write i2c OK [11:55:10]MH_I2C_Read... [11:55:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:55:10]Read from MH i2c: E2 [11:55:10]MH_I2C_Read... [11:55:10]Read from MH i2c: E2 0E 00 [11:55:10]MH_I2C_Read... [11:55:10]Read from MH i2c: E2 0E 00 11 4E 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 3B [11:55:10]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [11:55:10]wFMCommunicate OK [11:55:10]SAM_PROTO_GetShiftState done [11:55:10]FM_GetShiftState done [11:55:10]opened in 1729469754 [11:55:10]opened+sec_in_day 1729556154 [11:55:10]quantity*price = 50041 [11:55:10]sum+1 = 50042 [11:55: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 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 163 21.10.2024 11:55 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 187699 ФПД: 136761228142371 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T115514&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187699&fm=136761228142371&tin=02508201610067®Number=0000000000100030&sum=50000 [11:55:11]StoreToDocumentArchive [11:55:11]shift 460 fd 187699 [11:55:11]save to /storage/0460/doc_00187699 [11:55:11]save last doc name /storage/0460/doc_00187699 to /storage/kkm_last_doc_name [11:55:11]save OK [11:55:11]Clear old archive folders... [11:55:11]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:55:11]tlvbuf is 010EAC40 [11:55:11]SAM_PROTO_ClearQueue [11:55:11]wFMCommunicate request_size=4 [11:55:11]MH_SAM_APDU [11:55:11]CAPDU: 80 09 00 00 [11:55:11]Write to MH i2c: E2 08 00 1E 4E 80 09 00 00 00 00 00 00 DE [11:55:11]Write i2c OK [11:55:11]MH_I2C_Read... [11:55:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:55:11]Read from MH i2c: E2 [11:55:11]MH_I2C_Read... [11:55:11]Read from MH i2c: E2 03 00 [11:55:11]MH_I2C_Read... [11:55:11]Read from MH i2c: E2 03 00 1E 4E 00 90 00 E0 [11:55:11]RAPDU: 90 00 [11:55:11]wFMCommunicate OK [11:55:11]SAM_PROTO_ClearQueue done [11:55:11]KKMCreateOFDPacket [11:55:11]OFDProtocolAddRootSTLVToBuf [11:55:11]FM_MakeSignedData [11:55:11]FM_MakeSignedData [11:55:11]SAM_PROTO_SignData [11:55:11]wFMCommunicate request_size=4 [11:55:11]MH_SAM_APDU [11:55:11]CAPDU: 80 0D 01 02 [11:55:11]Write to MH i2c: E2 08 00 1F 4E 80 0D 01 02 00 00 00 00 E6 [11:55:11]Write i2c OK [11:55:11]MH_I2C_Read... [11:55:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:55:12]Read from MH i2c: E2 [11:55:12]MH_I2C_Read... [11:55:12]Read from MH i2c: E2 03 00 [11:55:12]MH_I2C_Read... [11:55:12]Read from MH i2c: E2 03 00 1F 4E 00 90 00 E1 [11:55:12]RAPDU: 90 00 [11:55:12]wFMCommunicate OK [11:55:12]wFMCommunicate request_size=255 [11:55:12]MH_SAM_APDU [11: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 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A3 00 00 00 F4 03 04 00 22 41 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 33 DD 02 00 35 04 06 00 7C [11:55:12]Write to MH i2c: E2 02 01 20 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 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A3 00 00 00 F4 03 04 00 22 41 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 33 DD 02 00 35 04 06 00 7C 00 00 37 [11:55:12]Write i2c OK [11:55:12]MH_I2C_Read... [11:55:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:55:12]Read from MH i2c: E2 [11:55:12]MH_I2C_Read... [11:55:12]Read from MH i2c: E2 03 00 [11:55:12]MH_I2C_Read... [11:55:12]Read from MH i2c: E2 03 00 20 4E 00 90 00 E2 [11:55:12]RAPDU: 90 00 [11:55:12]wFMCommunicate OK [11:55:12]wFMCommunicate request_size=10 [11:55:12]MH_SAM_APDU [11:55:12]CAPDU: 80 0D 02 02 05 62 34 6C 27 23 [11:55:12]Write to MH i2c: E2 0D 00 21 4E 80 0D 02 02 05 00 62 34 6C 27 23 00 00 3F [11:55:12]Write i2c OK [11:55:12]MH_I2C_Read... [11:55:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:55:12]Read from MH i2c: E2 [11:55:12]MH_I2C_Read... [11:55:12]Read from MH i2c: E2 03 00 [11:55:12]MH_I2C_Read... [11:55:12]Read from MH i2c: E2 03 00 21 4E 00 90 00 E3 [11:55:12]RAPDU: 90 00 [11:55:12]wFMCommunicate OK [11:55:12]wFMCommunicate request_size=4 [11:55:12]MH_SAM_APDU [11:55:12]CAPDU: 80 0D 03 02 [11:55:12]Write to MH i2c: E2 08 00 22 4E 80 0D 03 02 00 00 00 00 EB [11:55:12]Write i2c OK [11:55:12]MH_I2C_Read... [11:55:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:55:12]Read from MH i2c: E2 [11:55:12]MH_I2C_Read... [11:55:12]Read from MH i2c: E2 0B 00 [11:55:12]MH_I2C_Read... [11:55:12]Read from MH i2c: E2 0B 00 22 4E 00 16 0D 84 79 D7 01 A1 AB 90 00 30 [11:55:12]RAPDU: 16 0D 84 79 D7 01 A1 AB 90 00 [11:55:12]wFMCommunicate OK [11:55:12]SAM_PROTO_SignData done [11:55:12]FM_MakeSignedData done [11:55:12]CreateOFDProtocolMessage [11:55:12]wFMCommunicate request_size=4 [11:55:12]MH_SAM_APDU [11:55:12]CAPDU: 80 11 00 00 [11:55:12]Write to MH i2c: E2 08 00 23 4E 80 11 00 00 00 00 00 00 EB [11:55:12]Write i2c OK [11:55:12]MH_I2C_Read... [11:55:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:55:12]Read from MH i2c: E2 [11:55:12]MH_I2C_Read... [11:55:12]Read from MH i2c: E2 17 00 [11:55:12]MH_I2C_Read... [11:55:12]Read from MH i2c: E2 17 00 23 4E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 39 [11:55:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [11:55:12]wFMCommunicate OK [11:55:12]CreateOFDProtocolMessage done [11:55:12]OFDSenderStorePacket 187699 [11:55:12]StoreOFDPacket docnum=187699 [11:55:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 15 3A 07 01 F4 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 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A3 00 00 00 F4 03 04 00 22 41 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 33 DD 02 00 35 04 06 00 7C 62 34 6C 27 23 16 0D 84 79 D7 01 A1 AB [11:55:12]CheckFolder [11:55:12]dirname=/storage/ofd_packets [11:55:12]CheckFolder done [11:55:12]ProducePacketName [11:55:12]name=ofd_packets/00187699 [11:55:12]NVStorageSaveData ofd_packets/00187699 [11:55:12]File name is /storage/ofd_packets/00187699 [11:55:12]Write 301 bytes [11:55:12]NVStorageSaveData done [11:55:12]OFDSenderStorePacket done [11:55:12]KKMCreateOFDPacket done [11:55:12]NVStorageSaveData kkm_last_timestamp [11:55:12]File name is /storage/kkm_last_timestamp [11:55:12]Write 4 bytes [11:55:12]NVStorageSaveData done [11:55:12]ExternCall_PrintAddStr [11:55:12]wPrintStart [11:55:12]Write to MH i2c: 01 00 00 24 4E 72 [11:55:12]Write i2c OK [11:55:12]MH_I2C_Read... [11:55:12]Read from MH i2c: 01 [11:55:12]MH_I2C_Read... [11:55:12]Read from MH i2c: 01 07 00 [11:55:12]MH_I2C_Read... [11:55:12]Read from MH i2c: 01 07 00 24 4E 00 00 00 00 00 FF 0F 87 [11:55:12]RasterBufferAndPrint [11:55:12]line Счет N : (1)209751 [11:55:12]line ИНН: 02508201610067 [11:55:12]line Контрольно-Кассовый Чек [11:55:12]line ПРОДАЖА [11:55:12]line ТРК (МРК, ГНК) : 32 [11:55:12]line Товар: 2710124130 [11:55:12]line Аи-92-К-3 [11:55:12]line 7.480 * 66.90 [11:55:12]line = 500.41 [11:55:12]line НДС 12% НСП 1% [11:55:12]line > о реализуемом товаре [11:55:12]line ОКРУГЛЕНИЕ: -0.41 [11:55:12]line ИТОГО: 500.00 [11:55:12]line Внесено: 500.00 [11:55:12]line СДАЧА: 0.00 [11:55:12]line НСП 1% : 4.43 [11:55:12]line НДС 12% : 53.14 [11:55:12]line Наличными: 500.00 [11:55:12]line Безнал.: 0.00 [11:55:12]line Место: АЗС № 86 "Партнер Нефть" [11:55:12]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [11:55:12]line СНО: Общий режим [11:55:12]line Чек 163 21.10.2024 11:55 [11:55:12]line Смена: 460 ФФД: 1.0 [11:55:12]line ЗНМ: 0300000155 [11:55:12]line РНМ: 0000000000100030 [11:55:12]line Версия ККМ: 001 [11:55:12]line ФМ: 0000000000965340 [11:55:12]line ФД: 187699 [11:55:12]line ФПД: 136761228142371 [11:55:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T115514&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187699&fm=136761228142371&tin=02508201610067®Number=0000000000100030&sum=50000 [11:55:12]written 0, free lines is 4095 [11:55:12]OFD Sender: Processing packet 187699 [packets to send 1062, broken 1061] [11:55:12]ProducePacketName [11:55:12]name=ofd_packets/00187699 [11:55:12]OFD Sender: To server: pG, [11:55:12]CommunicateWithHost lk.salyk.kg:30040 [11:55:12]ConnectInit lk.salyk.kg [11:55:12]Connected sock=10 [11:55:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 15 3A 07 01 F4 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 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A3 00 00 00 F4 03 04 00 22 41 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 33 DD 02 00 35 04 06 00 7C 62 34 6C 27 23 16 0D 84 79 D7 01 A1 AB [11:55:12]Write to MH i2c: 01 00 00 4F 4E 9D [11:55:12]Write i2c OK [11:55:12]MH_I2C_Read... [11:55:12]Read from MH i2c: 01 [11:55:12]MH_I2C_Read... [11:55:12]Read from MH i2c: 01 07 00 [11:55:12]MH_I2C_Read... [11:55:12]Read from MH i2c: 01 07 00 4F 4E 00 00 00 00 00 72 0C 22 [11:55:12]RasterBufferAndPrint [11:55:12]line [11:55:12]line [11:55:12]line [11:55:12]line [11:55:12]line [11:55:12]written 0, free lines is 3189 [11:55:12]MH_Cut [11:55:12]Write to MH i2c: D1 01 00 56 4E 01 76 [11:55:12]Write i2c OK [11:55:12]MH_I2C_Read... [11:55:12]Read from MH i2c: D1 [11:55:12]MH_I2C_Read... [11:55:12]Read from MH i2c: D1 01 00 [11:55:12]MH_I2C_Read... [11:55:12]Read from MH i2c: D1 01 00 56 4E 00 75 [11:55:12]Write to MH i2c: 01 00 00 57 4E A5 [11:55:12]Write i2c OK [11:55:12]MH_I2C_Read... [11:55:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 CC C1 47 00 41 A5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 33 DD 02 00 F4 03 04 00 12 EB 15 67 B6 04 01 00 00 9F 6B E1 F6 77 67 DA FD [11:55:13]CommunicateWithHost err = 0 [11:55:13]CheckOFDResponse [11:55:13]1017 (14) - 77093643461234 [11:55:13]1041 (16) - 0000000000965340 [11:55:13]1040 (4) - 187699 [11:55:13]1012 (4) - 21.10.2024 05:48 [11:55:13]1206 (1) - 0 [11:55:13]OFD Sender: Remove packet 187699 [11:55:13]ProducePacketName [11:55:13]name=ofd_packets/00187699 [11:55:13]NVStorageDeleteData [11:55:13]OFD Sender: No OFD packet to send [11:55:14]*** Cut start [11:55:14]*** Partial cut [11:55:14]*** CUTSNS_PIN = 1 [11:55:14]*** CUTSNS_PIN = 0 [11:55:14]*** Brake cut motor [11:55:14]Read from MH i2c: 01 [11:55:14]MH_I2C_Read... [11:55:14]*** Stop cut motor [11:55:14]*** Cut end [11:55:14]Read from MH i2c: 01 07 00 [11:55:14]MH_I2C_Read... [11:55:14]Read from MH i2c: 01 07 00 57 4E 00 00 00 00 00 FF 0F BA [11:55:14]process_action close_receipt done [11:55:14]requested_data is exist [11:55:14]produce_requested_data [11:55:14]requested_item fm.sn is exist - process it [11:55:14]wFMCommunicate request_size=4 [11:55:14]MH_SAM_APDU [11:55:14]CAPDU: 80 11 00 00 [11:55:14]Write to MH i2c: E2 08 00 58 4E 80 11 00 00 00 00 00 00 20 [11:55:14]Write i2c OK [11:55:14]MH_I2C_Read... [11:55:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:55:14]Read from MH i2c: E2 [11:55:14]MH_I2C_Read... [11:55:14]Read from MH i2c: E2 17 00 [11:55:14]MH_I2C_Read... [11:55:14]Read from MH i2c: E2 17 00 58 4E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 6E [11:55:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [11:55:14]wFMCommunicate OK [11:55:14]requested_item fd.num is exist - process it [11:55:14]SAM_PROTO_GetFieldsCounters [11:55:14]wFMCommunicate request_size=4 [11:55:14]MH_SAM_APDU [11:55:14]CAPDU: 80 13 00 00 [11:55:14]Write to MH i2c: E2 08 00 59 4E 80 13 00 00 00 00 00 00 23 [11:55:14]Write i2c OK [11:55:14]MH_I2C_Read... [11:55:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:55:14]Read from MH i2c: E2 [11:55:14]MH_I2C_Read... [11:55:14]Read from MH i2c: E2 62 00 [11:55:14]MH_I2C_Read... [11:55:14]Read from MH i2c: E2 62 00 59 4E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 33 DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 A3 00 00 00 5E 04 04 00 A3 00 00 00 57 04 04 00 A4 00 00 00 19 04 04 00 00 00 00 00 90 00 F2 [11:55:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 33 DD 02 00 0E 04 04 00 CC 01 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 [11:55:14]wFMCommunicate OK [11:55:14]SAM_PROTO_GetFieldsCounters done [11:55:14]requested_item shift.num is exist - process it [11:55:14]requested_item shift.opened is exist - process it [11:55:14]req_shift_opened [11:55:14]FM_GetShiftState [11:55:14]SAM_PROTO_GetShiftState [11:55:14]wFMCommunicate request_size=4 [11:55:14]MH_SAM_APDU [11:55:14]CAPDU: 80 13 01 00 [11:55:14]Write to MH i2c: E2 08 00 5A 4E 80 13 01 00 00 00 00 00 25 [11:55:14]Write i2c OK [11:55:14]MH_I2C_Read... [11:55:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:55:14]Read from MH i2c: E2 [11:55:14]MH_I2C_Read... [11:55:14]Read from MH i2c: E2 0E 00 [11:55:14]MH_I2C_Read... [11:55:14]Read from MH i2c: E2 0E 00 5A 4E 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 84 [11:55:14]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [11:55:14]wFMCommunicate OK [11:55:14]SAM_PROTO_GetShiftState done [11:55:14]FM_GetShiftState done [11:55:14]req_shift_opened done [11:55:14]requested_item shift.open_date is exist - process it [11:55:14]req_shift_open_date [11:55:14]req_shift_open_date done [11:55:14]produce_requested_data done [11:55:14]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187699,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [11:55:14]process_action_free close_receipt [11:55:14]json_value_free [11:55:14]json_value_free done [11:55:14]process_json_proto returns [11:55:14]Send response to host [11:55:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187699,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [11:55:14]free response buf [11:55:14]execute_script done [11:55:14]execute_script returns [11:55:14]free content buf [11:55:14]Sock 9.Close socket [11:55:14]Sock 9.Thread stoped [11:55:18]OFD Sender: No OFD packet to send [11:55:23]OFD Sender: No OFD packet to send [11:55:28]OFD Sender: No OFD packet to send [11:55:33]OFD Sender: No OFD packet to send [11:55:38]OFD Sender: No OFD packet to send [11:55:43]OFD Sender: No OFD packet to send [11:55:48]OFD Sender: No OFD packet to send [11:55:53]OFD Sender: No OFD packet to send [11:55:58]OFD Sender: No OFD packet to send [11:56:03]OFD Sender: No OFD packet to send [11:56:08]OFD Sender: No OFD packet to send [11:56:13]OFD Sender: No OFD packet to send [11:56:18]OFD Sender: No OFD packet to send [11:56:23]OFD Sender: No OFD packet to send [11:56:28]OFD Sender: No OFD packet to send [11:56:33]OFD Sender: No OFD packet to send [11:56:38]OFD Sender: No OFD packet to send [11:56:43]OFD Sender: No OFD packet to send [11:56:49]OFD Sender: No OFD packet to send [11:56:54]OFD Sender: No OFD packet to send [11:56:59]OFD Sender: No OFD packet to send [11:57:04]OFD Sender: No OFD packet to send [11:57:09]OFD Sender: No OFD packet to send [11:57:14]OFD Sender: No OFD packet to send [11:57:19]OFD Sender: No OFD packet to send [11:57:24]OFD Sender: No OFD packet to send [11:57:29]OFD Sender: No OFD packet to send [11:57:34]OFD Sender: No OFD packet to send [11:57:39]OFD Sender: No OFD packet to send [11:57:44]OFD Sender: No OFD packet to send [11:57:49]OFD Sender: No OFD packet to send [11:57:54]OFD Sender: No OFD packet to send [11:57:59]OFD Sender: No OFD packet to send [11:58:04]OFD Sender: No OFD packet to send [11:58:07]accept exits with 8 [11:58:07]New connection [11:58:07]New thread 3067157860 created [11:58:07]Thread 3067014500 joined [11:58:07]Waiting for new connection... [11:58:07] Sock 8.Parse request [11:58:07]Sock 8.Check first char [11:58:07]Sock 8.First char is OK [11:58:07]request: POST /json_proto HTTP/1.0 [11:58:07]Method: POST [11:58:07]URL: /json_proto [11:58:07]Method is POST - this is cgi request [11:58:07]url: /json_proto [11:58:07]query_string will be loaded in cgi processing [11:58:07]execute_cgi json_proto POST (null) [11:58:07]execute_cgi path=json_proto method=POST [11:58:07]POST find Content-Length [11:58:07]Host: 172.17.42.131:8080 [11:58:07]Content-Length: 682 [11:58:07]Content-Type: application/json [11:58:07] [11:58:07]POST finish read [11:58:07]Found Content-Length = 682 [11:58:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209754", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "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:58:07]execute_script... [11:58: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)209754", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "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:58:07]POST & json_proto [11:58:07]process_json_proto [11:58:07]json parsed OK: [11:58:07]protocol is kg_v1.0 [11:58:07]action value=close_receipt [11:58:07]process_action close_receipt [11:58:07]cmd_close_receipt [11:58:07]MH_GetDate [11:58:07]Write to MH i2c: F0 00 00 5B 4E 98 [11:58:07]Write i2c OK [11:58:07]MH_I2C_Read... [11:58:07]Read from MH i2c: F0 [11:58:07]MH_I2C_Read... [11:58:07]Read from MH i2c: F0 09 00 [11:58:07]MH_I2C_Read... [11:58:07]Read from MH i2c: F0 09 00 5B 4E 00 D3 41 16 67 A0 18 CA 66 1A [11:58:07]GetLastDocTimeStamp 1729511714 [11:58:07]current date 1729511891 [11:58:07]FM_GetShiftState [11:58:07]SAM_PROTO_GetShiftState [11:58:07]wFMCommunicate request_size=4 [11:58:07]MH_SAM_APDU [11:58:07]CAPDU: 80 13 01 00 [11:58:07]Write to MH i2c: E2 08 00 5C 4E 80 13 01 00 00 00 00 00 27 [11:58:07]Write i2c OK [11:58:07]MH_I2C_Read... [11:58:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:58:07]Read from MH i2c: E2 [11:58:07]MH_I2C_Read... [11:58:07]Read from MH i2c: E2 0E 00 [11:58:07]MH_I2C_Read... [11:58:07]Read from MH i2c: E2 0E 00 5C 4E 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 86 [11:58:07]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [11:58:07]wFMCommunicate OK [11:58:07]SAM_PROTO_GetShiftState done [11:58:07]FM_GetShiftState done [11:58:07]opened in 1729469754 [11:58:07]opened+sec_in_day 1729556154 [11:58:07]quantity*price = 100015 [11:58:07]sum+1 = 100017 [11:58:07]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 164 21.10.2024 11:58 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 187700 ФПД: 202327196142046 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T115811&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187700&fm=202327196142046&tin=02508201610067®Number=0000000000100030&sum=100000 [11:58:09]StoreToDocumentArchive [11:58:09]shift 460 fd 187700 [11:58:09]save to /storage/0460/doc_00187700 [11:58:09]save last doc name /storage/0460/doc_00187700 to /storage/kkm_last_doc_name [11:58:09]save OK [11:58:09]Clear old archive folders... [11:58:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:58:09]tlvbuf is 010E37B0 [11:58:09]SAM_PROTO_ClearQueue [11:58:09]wFMCommunicate request_size=4 [11:58:09]MH_SAM_APDU [11:58:09]CAPDU: 80 09 00 00 [11:58:09]Write to MH i2c: E2 08 00 69 4E 80 09 00 00 00 00 00 00 29 [11:58:09]Write i2c OK [11:58:09]MH_I2C_Read... [11:58:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:58:09]Read from MH i2c: E2 [11:58:09]MH_I2C_Read... [11:58:09]Read from MH i2c: E2 03 00 [11:58:09]MH_I2C_Read... [11:58:09]Read from MH i2c: E2 03 00 69 4E 00 90 00 2B [11:58:09]RAPDU: 90 00 [11:58:09]wFMCommunicate OK [11:58:09]SAM_PROTO_ClearQueue done [11:58:09]KKMCreateOFDPacket [11:58:09]OFDProtocolAddRootSTLVToBuf [11:58:09]FM_MakeSignedData [11:58:09]FM_MakeSignedData [11:58:09]SAM_PROTO_SignData [11:58:09]wFMCommunicate request_size=4 [11:58:09]MH_SAM_APDU [11:58:09]CAPDU: 80 0D 01 02 [11:58:09]Write to MH i2c: E2 08 00 6A 4E 80 0D 01 02 00 00 00 00 31 [11:58:09]Write i2c OK [11:58:09]MH_I2C_Read... [11:58:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:58:09]Read from MH i2c: E2 [11:58:09]MH_I2C_Read... [11:58:09]Read from MH i2c: E2 03 00 [11:58:09]MH_I2C_Read... [11:58:09]Read from MH i2c: E2 03 00 6A 4E 00 90 00 2C [11:58:09]RAPDU: 90 00 [11:58:09]wFMCommunicate OK [11:58:09]wFMCommunicate request_size=255 [11:58:09]MH_SAM_APDU [11:58:09]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 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 A4 00 00 00 F4 03 04 00 D3 41 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 34 DD 02 00 35 04 06 00 B8 [11:58:09]Write to MH i2c: E2 02 01 6B 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 33 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 A4 00 00 00 F4 03 04 00 D3 41 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 34 DD 02 00 35 04 06 00 B8 00 00 6B [11:58:09]Write i2c OK [11:58:09]MH_I2C_Read... [11:58:09]OFD Sender: No OFD packet to send [11:58:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:58:09]Read from MH i2c: E2 [11:58:09]MH_I2C_Read... [11:58:09]Read from MH i2c: E2 03 00 [11:58:09]MH_I2C_Read... [11:58:09]Read from MH i2c: E2 03 00 6B 4E 00 90 00 2D [11:58:09]RAPDU: 90 00 [11:58:09]wFMCommunicate OK [11:58:09]wFMCommunicate request_size=10 [11:58:09]MH_SAM_APDU [11:58:09]CAPDU: 80 0D 02 02 05 03 F8 A7 89 DE [11:58:09]Write to MH i2c: E2 0D 00 6C 4E 80 0D 02 02 05 00 03 F8 A7 89 DE 00 00 47 [11:58:09]Write i2c OK [11:58:09]MH_I2C_Read... [11:58:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:58:09]Read from MH i2c: E2 [11:58:09]MH_I2C_Read... [11:58:09]Read from MH i2c: E2 03 00 [11:58:09]MH_I2C_Read... [11:58:09]Read from MH i2c: E2 03 00 6C 4E 00 90 00 2E [11:58:09]RAPDU: 90 00 [11:58:09]wFMCommunicate OK [11:58:09]wFMCommunicate request_size=4 [11:58:09]MH_SAM_APDU [11:58:09]CAPDU: 80 0D 03 02 [11:58:09]Write to MH i2c: E2 08 00 6D 4E 80 0D 03 02 00 00 00 00 36 [11:58:09]Write i2c OK [11:58:09]MH_I2C_Read... [11:58:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:58:09]Read from MH i2c: E2 [11:58:09]MH_I2C_Read... [11:58:09]Read from MH i2c: E2 0B 00 [11:58:09]MH_I2C_Read... [11:58:09]Read from MH i2c: E2 0B 00 6D 4E 00 ED 54 90 AD 7C A3 0D 18 90 00 F9 [11:58:09]RAPDU: ED 54 90 AD 7C A3 0D 18 90 00 [11:58:09]wFMCommunicate OK [11:58:09]SAM_PROTO_SignData done [11:58:09]FM_MakeSignedData done [11:58:09]CreateOFDProtocolMessage [11:58:09]wFMCommunicate request_size=4 [11:58:09]MH_SAM_APDU [11:58:09]CAPDU: 80 11 00 00 [11:58:09]Write to MH i2c: E2 08 00 6E 4E 80 11 00 00 00 00 00 00 36 [11:58:09]Write i2c OK [11:58:09]MH_I2C_Read... [11:58:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:58:09]Read from MH i2c: E2 [11:58:09]MH_I2C_Read... [11:58:09]Read from MH i2c: E2 17 00 [11:58:09]MH_I2C_Read... [11:58:09]Read from MH i2c: E2 17 00 6E 4E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 84 [11:58:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [11:58:09]wFMCommunicate OK [11:58:09]CreateOFDProtocolMessage done [11:58:09]OFDSenderStorePacket 187700 [11:58:09]StoreOFDPacket docnum=187700 [11:58:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 79 AA 07 01 2B C6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 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 A4 00 00 00 F4 03 04 00 D3 41 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 34 DD 02 00 35 04 06 00 B8 03 F8 A7 89 DE ED 54 90 AD 7C A3 0D 18 [11:58:09]CheckFolder [11:58:09]dirname=/storage/ofd_packets [11:58:09]CheckFolder done [11:58:09]ProducePacketName [11:58:09]name=ofd_packets/00187700 [11:58:09]NVStorageSaveData ofd_packets/00187700 [11:58:09]File name is /storage/ofd_packets/00187700 [11:58:09]Write 301 bytes [11:58:09]NVStorageSaveData done [11:58:09]OFDSenderStorePacket done [11:58:09]KKMCreateOFDPacket done [11:58:09]NVStorageSaveData kkm_last_timestamp [11:58:09]File name is /storage/kkm_last_timestamp [11:58:09]Write 4 bytes [11:58:09]NVStorageSaveData done [11:58:09]ExternCall_PrintAddStr [11:58:09]wPrintStart [11:58:09]Write to MH i2c: 01 00 00 6F 4E BD [11:58:09]Write i2c OK [11:58:09]MH_I2C_Read... [11:58:09]Read from MH i2c: 01 [11:58:09]MH_I2C_Read... [11:58:09]Read from MH i2c: 01 07 00 [11:58:09]MH_I2C_Read... [11:58:09]Read from MH i2c: 01 07 00 6F 4E 00 00 00 00 00 FF 0F D2 [11:58:09]RasterBufferAndPrint [11:58:09]line Счет N : (1)209754 [11:58:09]line ИНН: 02508201610067 [11:58:09]line Контрольно-Кассовый Чек [11:58:09]line ПРОДАЖА [11:58:09]line ТРК (МРК, ГНК) : 32 [11:58:09]line Товар: 2710124130 [11:58:09]line Аи-92-К-3 [11:58:09]line 14.950 * 66.90 [11:58:09]line = 1000.16 [11:58:09]line НДС 12% НСП 1% [11:58:09]line > о реализуемом товаре [11:58:09]line ОКРУГЛЕНИЕ: -0.16 [11:58:09]line ИТОГО: 1000.00 [11:58:09]line Внесено: 1000.00 [11:58:09]line СДАЧА: 0.00 [11:58:09]line НСП 1% : 8.85 [11:58:09]line НДС 12% : 106.21 [11:58:09]line Наличными: 1000.00 [11:58:09]line Безнал.: 0.00 [11:58:09]line Место: АЗС № 86 "Партнер Нефть" [11:58:09]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [11:58:09]line СНО: Общий режим [11:58:09]line Чек 164 21.10.2024 11:58 [11:58:09]line Смена: 460 ФФД: 1.0 [11:58:09]line ЗНМ: 0300000155 [11:58:09]line РНМ: 0000000000100030 [11:58:09]line Версия ККМ: 001 [11:58:09]line ФМ: 0000000000965340 [11:58:09]line ФД: 187700 [11:58:09]line ФПД: 202327196142046 [11:58:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T115811&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187700&fm=202327196142046&tin=02508201610067®Number=0000000000100030&sum=100000 [11:58:09]written 0, free lines is 4095 [11:58:09]OFD Sender: Processing packet 187700 [packets to send 1062, broken 1061] [11:58:09]ProducePacketName [11:58:09]name=ofd_packets/00187700 [11:58:09]OFD Sender: To server: pG, [11:58:09]CommunicateWithHost lk.salyk.kg:30040 [11:58:09]ConnectInit lk.salyk.kg [11:58:09]Connected sock=10 [11:58:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 79 AA 07 01 2B C6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 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 A4 00 00 00 F4 03 04 00 D3 41 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 34 DD 02 00 35 04 06 00 B8 03 F8 A7 89 DE ED 54 90 AD 7C A3 0D 18 [11:58:10]Write to MH i2c: 01 00 00 9A 4E E8 [11:58:10]Write i2c OK [11:58:10]MH_I2C_Read... [11:58:10]Read from MH i2c: 01 [11:58:10]MH_I2C_Read... [11:58:10]Read from MH i2c: 01 07 00 [11:58:10]MH_I2C_Read... [11:58:10]Read from MH i2c: 01 07 00 9A 4E 00 00 00 00 00 74 0C 6F [11:58:10]RasterBufferAndPrint [11:58:10]line [11:58:10]line [11:58:10]line [11:58:10]line [11:58:10]line [11:58:10]written 0, free lines is 3191 [11:58:10]MH_Cut [11:58:10]Write to MH i2c: D1 01 00 A1 4E 01 C1 [11:58:10]Write i2c OK [11:58:10]MH_I2C_Read... [11:58:10]Read from MH i2c: D1 [11:58:10]MH_I2C_Read... [11:58:10]Read from MH i2c: D1 01 00 [11:58:10]MH_I2C_Read... [11:58:10]Read from MH i2c: D1 01 00 A1 4E 00 C0 [11:58:10]Write to MH i2c: 01 00 00 A2 4E F0 [11:58:10]Write i2c OK [11:58:10]MH_I2C_Read... [11:58:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 AD 95 47 00 01 AD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 34 DD 02 00 F4 03 04 00 C3 EB 15 67 B6 04 01 00 00 3D C3 48 59 E6 16 E0 25 [11:58:10]CommunicateWithHost err = 0 [11:58:10]CheckOFDResponse [11:58:10]1017 (14) - 77093643461234 [11:58:10]1041 (16) - 0000000000965340 [11:58:10]1040 (4) - 187700 [11:58:10]1012 (4) - 21.10.2024 05:50 [11:58:10]1206 (1) - 0 [11:58:10]OFD Sender: Remove packet 187700 [11:58:10]ProducePacketName [11:58:10]name=ofd_packets/00187700 [11:58:10]NVStorageDeleteData [11:58:10]OFD Sender: No OFD packet to send [11:58:11]*** Cut start [11:58:11]*** Partial cut [11:58:11]*** CUTSNS_PIN = 1 [11:58:11]*** CUTSNS_PIN = 0 [11:58:11]*** Brake cut motor [11:58:11]Read from MH i2c: 01 [11:58:11]MH_I2C_Read... [11:58:11]*** Stop cut motor [11:58:11]*** Cut end [11:58:11]Read from MH i2c: 01 07 00 [11:58:11]MH_I2C_Read... [11:58:11]Read from MH i2c: 01 07 00 A2 4E 00 00 00 00 00 FF 0F 05 [11:58:11]process_action close_receipt done [11:58:11]requested_data is exist [11:58:11]produce_requested_data [11:58:11]requested_item fm.sn is exist - process it [11:58:11]wFMCommunicate request_size=4 [11:58:11]MH_SAM_APDU [11:58:11]CAPDU: 80 11 00 00 [11:58:11]Write to MH i2c: E2 08 00 A3 4E 80 11 00 00 00 00 00 00 6B [11:58:11]Write i2c OK [11:58:11]MH_I2C_Read... [11:58:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:58:11]Read from MH i2c: E2 [11:58:11]MH_I2C_Read... [11:58:11]Read from MH i2c: E2 17 00 [11:58:11]MH_I2C_Read... [11:58:11]Read from MH i2c: E2 17 00 A3 4E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 B9 [11:58:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [11:58:11]wFMCommunicate OK [11:58:11]requested_item fd.num is exist - process it [11:58:11]SAM_PROTO_GetFieldsCounters [11:58:11]wFMCommunicate request_size=4 [11:58:11]MH_SAM_APDU [11:58:11]CAPDU: 80 13 00 00 [11:58:11]Write to MH i2c: E2 08 00 A4 4E 80 13 00 00 00 00 00 00 6E [11:58:11]Write i2c OK [11:58:11]MH_I2C_Read... [11:58:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:58:12]Read from MH i2c: E2 [11:58:12]MH_I2C_Read... [11:58:12]Read from MH i2c: E2 62 00 [11:58:12]MH_I2C_Read... [11:58:12]Read from MH i2c: E2 62 00 A4 4E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 34 DD 02 00 0E 04 04 00 CC 01 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 41 [11:58:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 34 DD 02 00 0E 04 04 00 CC 01 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 [11:58:12]wFMCommunicate OK [11:58:12]SAM_PROTO_GetFieldsCounters done [11:58:12]requested_item shift.num is exist - process it [11:58:12]requested_item shift.opened is exist - process it [11:58:12]req_shift_opened [11:58:12]FM_GetShiftState [11:58:12]SAM_PROTO_GetShiftState [11:58:12]wFMCommunicate request_size=4 [11:58:12]MH_SAM_APDU [11:58:12]CAPDU: 80 13 01 00 [11:58:12]Write to MH i2c: E2 08 00 A5 4E 80 13 01 00 00 00 00 00 70 [11:58:12]Write i2c OK [11:58:12]MH_I2C_Read... [11:58:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:58:12]Read from MH i2c: E2 [11:58:12]MH_I2C_Read... [11:58:12]Read from MH i2c: E2 0E 00 [11:58:12]MH_I2C_Read... [11:58:12]Read from MH i2c: E2 0E 00 A5 4E 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 CF [11:58:12]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [11:58:12]wFMCommunicate OK [11:58:12]SAM_PROTO_GetShiftState done [11:58:12]FM_GetShiftState done [11:58:12]req_shift_opened done [11:58:12]requested_item shift.open_date is exist - process it [11:58:12]req_shift_open_date [11:58:12]req_shift_open_date done [11:58:12]produce_requested_data done [11:58:12]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187700,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [11:58:12]process_action_free close_receipt [11:58:12]json_value_free [11:58:12]json_value_free done [11:58:12]process_json_proto returns [11:58:12]Send response to host [11:58:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187700,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [11:58:12]free response buf [11:58:12]execute_script done [11:58:12]execute_script returns [11:58:12]free content buf [11:58:12]Sock 8.Close socket [11:58:12]Sock 8.Thread stoped [11:58:14]accept exits with 9 [11:58:14]New connection [11:58:14]New thread 3067014500 created [11:58:14]Thread 3067157860 joined [11:58:14]Waiting for new connection... [11:58:14] Sock 9.Parse request [11:58:14]Sock 9.Check first char [11:58:14]Sock 9.First char is OK [11:58:14]request: POST /json_proto HTTP/1.0 [11:58:14]Method: POST [11:58:14]URL: /json_proto [11:58:14]Method is POST - this is cgi request [11:58:14]url: /json_proto [11:58:14]query_string will be loaded in cgi processing [11:58:14]execute_cgi json_proto POST (null) [11:58:14]execute_cgi path=json_proto method=POST [11:58:14]POST find Content-Length [11:58:14]Host: 172.17.42.131:8080 [11:58:14]Content-Length: 688 [11:58:14]Content-Type: application/json [11:58:14] [11:58:14]POST finish read [11:58:14]Found Content-Length = 688 [11:58:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209753", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 25.910, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:58:14]execute_script... [11:58: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)209753", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 25.910, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:58:14]POST & json_proto [11:58:14]process_json_proto [11:58:14]json parsed OK: [11:58:14]protocol is kg_v1.0 [11:58:14]action value=close_receipt [11:58:14]process_action close_receipt [11:58:14]cmd_close_receipt [11:58:14]MH_GetDate [11:58:14]Write to MH i2c: F0 00 00 A6 4E E3 [11:58:14]Write i2c OK [11:58:14]MH_I2C_Read... [11:58:14]Read from MH i2c: F0 [11:58:14]MH_I2C_Read... [11:58:14]Read from MH i2c: F0 09 00 [11:58:14]MH_I2C_Read... [11:58:14]Read from MH i2c: F0 09 00 A6 4E 00 DA 41 16 67 A0 18 CA 66 6C [11:58:14]GetLastDocTimeStamp 1729511891 [11:58:14]current date 1729511898 [11:58:14]FM_GetShiftState [11:58:14]SAM_PROTO_GetShiftState [11:58:14]wFMCommunicate request_size=4 [11:58:14]MH_SAM_APDU [11:58:14]CAPDU: 80 13 01 00 [11:58:14]Write to MH i2c: E2 08 00 A7 4E 80 13 01 00 00 00 00 00 72 [11:58:14]Write i2c OK [11:58:14]MH_I2C_Read... [11:58:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:58:14]Read from MH i2c: E2 [11:58:14]MH_I2C_Read... [11:58:14]Read from MH i2c: E2 0E 00 [11:58:14]MH_I2C_Read... [11:58:14]Read from MH i2c: E2 0E 00 A7 4E 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 D1 [11:58:14]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [11:58:14]wFMCommunicate OK [11:58:14]SAM_PROTO_GetShiftState done [11:58:14]FM_GetShiftState done [11:58:14]opened in 1729469754 [11:58:14]opened+sec_in_day 1729556154 [11:58:14]quantity*price = 200025 [11:58:14]sum+1 = 200026 [11:58:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 165 21.10.2024 11:58 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 187701 ФПД: 163752787445062 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T115818&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187701&fm=163752787445062&tin=02508201610067®Number=0000000000100030&sum=200000 [11:58:15]StoreToDocumentArchive [11:58:15]shift 460 fd 187701 [11:58:15]save to /storage/0460/doc_00187701 [11:58:15]save last doc name /storage/0460/doc_00187701 to /storage/kkm_last_doc_name [11:58:15]save OK [11:58:15]Clear old archive folders... [11:58:15]ProcessDocumentItem done err = 0, tmpTLVsize=257 [11:58:15]tlvbuf is 010EF030 [11:58:15]SAM_PROTO_ClearQueue [11:58:15]wFMCommunicate request_size=4 [11:58:15]MH_SAM_APDU [11:58:15]CAPDU: 80 09 00 00 [11:58:15]Write to MH i2c: E2 08 00 B4 4E 80 09 00 00 00 00 00 00 74 [11:58:15]Write i2c OK [11:58:15]MH_I2C_Read... [11:58:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:58:15]Read from MH i2c: E2 [11:58:15]MH_I2C_Read... [11:58:15]Read from MH i2c: E2 03 00 [11:58:15]MH_I2C_Read... [11:58:15]Read from MH i2c: E2 03 00 B4 4E 00 90 00 76 [11:58:15]RAPDU: 90 00 [11:58:15]wFMCommunicate OK [11:58:15]SAM_PROTO_ClearQueue done [11:58:15]KKMCreateOFDPacket [11:58:15]OFDProtocolAddRootSTLVToBuf [11:58:15]FM_MakeSignedData [11:58:15]FM_MakeSignedData [11:58:15]SAM_PROTO_SignData [11:58:15]wFMCommunicate request_size=4 [11:58:15]MH_SAM_APDU [11:58:15]CAPDU: 80 0D 01 02 [11:58:15]Write to MH i2c: E2 08 00 B5 4E 80 0D 01 02 00 00 00 00 7C [11:58:15]Write i2c OK [11:58:15]MH_I2C_Read... [11:58:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:58:15]Read from MH i2c: E2 [11:58:15]MH_I2C_Read... [11:58:15]Read from MH i2c: E2 03 00 [11:58:15]MH_I2C_Read... [11:58:15]Read from MH i2c: E2 03 00 B5 4E 00 90 00 77 [11:58:15]RAPDU: 90 00 [11:58:15]wFMCommunicate OK [11:58:15]wFMCommunicate request_size=255 [11:58:15]MH_SAM_APDU [11:58:15]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 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 36 65 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A5 00 00 00 F4 03 04 00 DA 41 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 35 DD 02 [11:58:15]Write to MH i2c: E2 02 01 B6 4E 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 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 36 65 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A5 00 00 00 F4 03 04 00 DA 41 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 35 DD 02 00 00 3B [11:58:15]Write i2c OK [11:58:15]MH_I2C_Read... [11:58:15]OFD Sender: No OFD packet to send [11:58:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:58:16]Read from MH i2c: E2 [11:58:16]MH_I2C_Read... [11:58:16]Read from MH i2c: E2 03 00 [11:58:16]MH_I2C_Read... [11:58:16]Read from MH i2c: E2 03 00 B6 4E 00 90 00 78 [11:58:16]RAPDU: 90 00 [11:58:16]wFMCommunicate OK [11:58:16]wFMCommunicate request_size=16 [11:58:16]MH_SAM_APDU [11:58:16]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 94 EE AA BA 05 46 [11:58:16]Write to MH i2c: E2 13 00 B7 4E 80 0D 02 02 0B 00 00 35 04 06 00 94 EE AA BA 05 46 00 00 05 [11:58:16]Write i2c OK [11:58:16]MH_I2C_Read... [11:58:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:58:16]Read from MH i2c: E2 [11:58:16]MH_I2C_Read... [11:58:16]Read from MH i2c: E2 03 00 [11:58:16]MH_I2C_Read... [11:58:16]Read from MH i2c: E2 03 00 B7 4E 00 90 00 79 [11:58:16]RAPDU: 90 00 [11:58:16]wFMCommunicate OK [11:58:16]wFMCommunicate request_size=4 [11:58:16]MH_SAM_APDU [11:58:16]CAPDU: 80 0D 03 02 [11:58:16]Write to MH i2c: E2 08 00 B8 4E 80 0D 03 02 00 00 00 00 81 [11:58:16]Write i2c OK [11:58:16]MH_I2C_Read... [11:58:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:58:16]Read from MH i2c: E2 [11:58:16]MH_I2C_Read... [11:58:16]Read from MH i2c: E2 0B 00 [11:58:16]MH_I2C_Read... [11:58:16]Read from MH i2c: E2 0B 00 B8 4E 00 06 DD D9 05 96 1B 01 F9 90 00 EE [11:58:16]RAPDU: 06 DD D9 05 96 1B 01 F9 90 00 [11:58:16]wFMCommunicate OK [11:58:16]SAM_PROTO_SignData done [11:58:16]FM_MakeSignedData done [11:58:16]CreateOFDProtocolMessage [11:58:16]wFMCommunicate request_size=4 [11:58:16]MH_SAM_APDU [11:58:16]CAPDU: 80 11 00 00 [11:58:16]Write to MH i2c: E2 08 00 B9 4E 80 11 00 00 00 00 00 00 81 [11:58:16]Write i2c OK [11:58:16]MH_I2C_Read... [11:58:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:58:16]Read from MH i2c: E2 [11:58:16]MH_I2C_Read... [11:58:16]Read from MH i2c: E2 17 00 [11:58:16]MH_I2C_Read... [11:58:16]Read from MH i2c: E2 17 00 B9 4E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 CF [11:58:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [11:58:16]wFMCommunicate OK [11:58:16]CreateOFDProtocolMessage done [11:58:16]OFDSenderStorePacket 187701 [11:58:16]StoreOFDPacket docnum=187701 [11:58:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 07 6E 0D 01 5E 03 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 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 36 65 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A5 00 00 00 F4 03 04 00 DA 41 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 35 DD 02 00 35 04 06 00 94 EE AA BA 05 46 06 DD D9 05 96 1B 01 F9 [11:58:16]CheckFolder [11:58:16]dirname=/storage/ofd_packets [11:58:16]CheckFolder done [11:58:16]ProducePacketName [11:58:16]name=ofd_packets/00187701 [11:58:16]NVStorageSaveData ofd_packets/00187701 [11:58:16]File name is /storage/ofd_packets/00187701 [11:58:16]Write 307 bytes [11:58:16]NVStorageSaveData done [11:58:16]OFDSenderStorePacket done [11:58:16]KKMCreateOFDPacket done [11:58:16]NVStorageSaveData kkm_last_timestamp [11:58:16]File name is /storage/kkm_last_timestamp [11:58:16]Write 4 bytes [11:58:16]NVStorageSaveData done [11:58:16]ExternCall_PrintAddStr [11:58:16]wPrintStart [11:58:16]Write to MH i2c: 01 00 00 BA 4E 08 [11:58:16]Write i2c OK [11:58:16]MH_I2C_Read... [11:58:16]Read from MH i2c: 01 [11:58:16]MH_I2C_Read... [11:58:16]Read from MH i2c: 01 07 00 [11:58:16]MH_I2C_Read... [11:58:16]Read from MH i2c: 01 07 00 BA 4E 00 00 00 00 00 FF 0F 1D [11:58:16]RasterBufferAndPrint [11:58:16]line Счет N : (1)209753 [11:58:16]line ИНН: 02508201610067 [11:58:16]line Контрольно-Кассовый Чек [11:58:16]line ПРОДАЖА [11:58:16]line ТРК (МРК, ГНК) : 41 [11:58:16]line Товар: 2710194210 [11:58:16]line D-ENERGY ДТ-К-5 [11:58:16]line 25.910 * 77.20 [11:58:16]line = 2000.25 [11:58:16]line НДС 12% НСП 1% [11:58:16]line > о реализуемом товаре [11:58:16]line ОКРУГЛЕНИЕ: -0.25 [11:58:16]line ИТОГО: 2000.00 [11:58:16]line Внесено: 2000.00 [11:58:16]line СДАЧА: 0.00 [11:58:16]line НСП 1% : 17.70 [11:58:16]line НДС 12% : 212.42 [11:58:16]line Наличными: 2000.00 [11:58:16]line Безнал.: 0.00 [11:58:16]line Место: АЗС № 86 "Партнер Нефть" [11:58:16]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [11:58:16]line СНО: Общий режим [11:58:16]line Чек 165 21.10.2024 11:58 [11:58:16]line Смена: 460 ФФД: 1.0 [11:58:16]line ЗНМ: 0300000155 [11:58:16]line РНМ: 0000000000100030 [11:58:16]line Версия ККМ: 001 [11:58:16]line ФМ: 0000000000965340 [11:58:16]line ФД: 187701 [11:58:16]line ФПД: 163752787445062 [11:58:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T115818&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187701&fm=163752787445062&tin=02508201610067®Number=0000000000100030&sum=200000 [11:58:16]written 0, free lines is 4095 [11:58:16]OFD Sender: Processing packet 187701 [packets to send 1062, broken 1061] [11:58:16]ProducePacketName [11:58:16]name=ofd_packets/00187701 [11:58:16]OFD Sender: To server: pG, [11:58:16]CommunicateWithHost lk.salyk.kg:30040 [11:58:16]ConnectInit lk.salyk.kg [11:58:16]Connected sock=10 [11:58:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 07 6E 0D 01 5E 03 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 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 36 65 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A5 00 00 00 F4 03 04 00 DA 41 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 35 DD 02 00 35 04 06 00 94 EE AA BA 05 46 06 DD D9 05 96 1B 01 F9 [11:58:16]Write to MH i2c: 01 00 00 E5 4E 33 [11:58:16]Write i2c OK [11:58:16]MH_I2C_Read... [11:58:16]Read from MH i2c: 01 [11:58:16]MH_I2C_Read... [11:58:16]Read from MH i2c: 01 07 00 [11:58:16]MH_I2C_Read... [11:58:16]Read from MH i2c: 01 07 00 E5 4E 00 00 00 00 00 7F 0C C5 [11:58:16]RasterBufferAndPrint [11:58:16]line [11:58:16]line [11:58:16]line [11:58:16]line [11:58:16]line [11:58:16]written 0, free lines is 3207 [11:58:16]MH_Cut [11:58:16]Write to MH i2c: D1 01 00 EC 4E 01 0C [11:58:16]Write i2c OK [11:58:16]MH_I2C_Read... [11:58:16]Read from MH i2c: D1 [11:58:16]MH_I2C_Read... [11:58:16]Read from MH i2c: D1 01 00 [11:58:16]MH_I2C_Read... [11:58:16]Read from MH i2c: D1 01 00 EC 4E 00 0B [11:58:16]Write to MH i2c: 01 00 00 ED 4E 3B [11:58:16]Write i2c OK [11:58:16]MH_I2C_Read... [11:58:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 70 6A 47 00 6F 4B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 35 DD 02 00 F4 03 04 00 CA EB 15 67 B6 04 01 00 00 B5 22 F6 60 7E 13 F9 6A [11:58:16]CommunicateWithHost err = 0 [11:58:16]CheckOFDResponse [11:58:16]1017 (14) - 77093643461234 [11:58:16]1041 (16) - 0000000000965340 [11:58:16]1040 (4) - 187701 [11:58:16]1012 (4) - 21.10.2024 05:51 [11:58:16]1206 (1) - 0 [11:58:16]OFD Sender: Remove packet 187701 [11:58:16]ProducePacketName [11:58:16]name=ofd_packets/00187701 [11:58:16]NVStorageDeleteData [11:58:17]OFD Sender: No OFD packet to send [11:58:17]*** Cut start [11:58:17]*** Partial cut [11:58:17]*** CUTSNS_PIN = 1 [11:58:17]*** CUTSNS_PIN = 0 [11:58:18]*** Brake cut motor [11:58:18]Read from MH i2c: 01 [11:58:18]MH_I2C_Read... [11:58:18]*** Stop cut motor [11:58:18]*** Cut end [11:58:18]Read from MH i2c: 01 07 00 [11:58:18]MH_I2C_Read... [11:58:18]Read from MH i2c: 01 07 00 ED 4E 00 00 00 00 00 FF 0F 50 [11:58:18]process_action close_receipt done [11:58:18]requested_data is exist [11:58:18]produce_requested_data [11:58:18]requested_item fm.sn is exist - process it [11:58:18]wFMCommunicate request_size=4 [11:58:18]MH_SAM_APDU [11:58:18]CAPDU: 80 11 00 00 [11:58:18]Write to MH i2c: E2 08 00 EE 4E 80 11 00 00 00 00 00 00 B6 [11:58:18]Write i2c OK [11:58:18]MH_I2C_Read... [11:58:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:58:18]Read from MH i2c: E2 [11:58:18]MH_I2C_Read... [11:58:18]Read from MH i2c: E2 17 00 [11:58:18]MH_I2C_Read... [11:58:18]Read from MH i2c: E2 17 00 EE 4E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 04 [11:58:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [11:58:18]wFMCommunicate OK [11:58:18]requested_item fd.num is exist - process it [11:58:18]SAM_PROTO_GetFieldsCounters [11:58:18]wFMCommunicate request_size=4 [11:58:18]MH_SAM_APDU [11:58:18]CAPDU: 80 13 00 00 [11:58:18]Write to MH i2c: E2 08 00 EF 4E 80 13 00 00 00 00 00 00 B9 [11:58:18]Write i2c OK [11:58:18]MH_I2C_Read... [11:58:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:58:18]Read from MH i2c: E2 [11:58:18]MH_I2C_Read... [11:58:18]Read from MH i2c: E2 62 00 [11:58:18]MH_I2C_Read... [11:58:18]Read from MH i2c: E2 62 00 EF 4E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 35 DD 02 00 0E 04 04 00 CC 01 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 90 [11:58:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 35 DD 02 00 0E 04 04 00 CC 01 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 [11:58:18]wFMCommunicate OK [11:58:18]SAM_PROTO_GetFieldsCounters done [11:58:18]requested_item shift.num is exist - process it [11:58:18]requested_item shift.opened is exist - process it [11:58:18]req_shift_opened [11:58:18]FM_GetShiftState [11:58:18]SAM_PROTO_GetShiftState [11:58:18]wFMCommunicate request_size=4 [11:58:18]MH_SAM_APDU [11:58:18]CAPDU: 80 13 01 00 [11:58:18]Write to MH i2c: E2 08 00 F0 4E 80 13 01 00 00 00 00 00 BB [11:58:18]Write i2c OK [11:58:18]MH_I2C_Read... [11:58:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:58:18]Read from MH i2c: E2 [11:58:18]MH_I2C_Read... [11:58:18]Read from MH i2c: E2 0E 00 [11:58:18]MH_I2C_Read... [11:58:18]Read from MH i2c: E2 0E 00 F0 4E 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 1A [11:58:18]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [11:58:18]wFMCommunicate OK [11:58:18]SAM_PROTO_GetShiftState done [11:58:18]FM_GetShiftState done [11:58:18]req_shift_opened done [11:58:18]requested_item shift.open_date is exist - process it [11:58:18]req_shift_open_date [11:58:18]req_shift_open_date done [11:58:18]produce_requested_data done [11:58:18]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187701,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [11:58:18]process_action_free close_receipt [11:58:18]json_value_free [11:58:18]json_value_free done [11:58:18]process_json_proto returns [11:58:18]Send response to host [11:58:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187701,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [11:58:18]free response buf [11:58:18]execute_script done [11:58:18]execute_script returns [11:58:18]free content buf [11:58:18]Sock 9.Close socket [11:58:18]Sock 9.Thread stoped [11:58:22]OFD Sender: No OFD packet to send [11:58:27]OFD Sender: No OFD packet to send [11:58:32]OFD Sender: No OFD packet to send [11:58:37]OFD Sender: No OFD packet to send [11:58:37]accept exits with 8 [11:58:37]New connection [11:58:37]New thread 3067157860 created [11:58:37]Thread 3067014500 joined [11:58:37]Waiting for new connection... [11:58:37] Sock 8.Parse request [11:58:37]Sock 8.Check first char [11:58:37]Sock 8.First char is OK [11:58:37]request: POST /json_proto HTTP/1.0 [11:58:37]Method: POST [11:58:37]URL: /json_proto [11:58:37]Method is POST - this is cgi request [11:58:37]url: /json_proto [11:58:37]query_string will be loaded in cgi processing [11:58:37]execute_cgi json_proto POST (null) [11:58:37]execute_cgi path=json_proto method=POST [11:58:37]POST find Content-Length [11:58:37]Host: 172.17.42.131:8080 [11:58:37]Content-Length: 688 [11:58:37]Content-Type: application/json [11:58:37] [11:58:37]POST finish read [11:58:37]Found Content-Length = 688 [11:58:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209752", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 25.910, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:58:37]execute_script... [11:58: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)209752", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 25.910, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:58:37]POST & json_proto [11:58:37]process_json_proto [11:58:37]json parsed OK: [11:58:37]protocol is kg_v1.0 [11:58:37]action value=close_receipt [11:58:37]process_action close_receipt [11:58:37]cmd_close_receipt [11:58:37]MH_GetDate [11:58:37]Write to MH i2c: F0 00 00 F1 4E 2E [11:58:37]Write i2c OK [11:58:37]MH_I2C_Read... [11:58:37]Read from MH i2c: F0 [11:58:37]MH_I2C_Read... [11:58:37]Read from MH i2c: F0 09 00 [11:58:37]MH_I2C_Read... [11:58:37]Read from MH i2c: F0 09 00 F1 4E 00 F1 41 16 67 A0 18 CA 66 CE [11:58:37]GetLastDocTimeStamp 1729511898 [11:58:37]current date 1729511921 [11:58:37]FM_GetShiftState [11:58:37]SAM_PROTO_GetShiftState [11:58:37]wFMCommunicate request_size=4 [11:58:37]MH_SAM_APDU [11:58:37]CAPDU: 80 13 01 00 [11:58:37]Write to MH i2c: E2 08 00 F2 4E 80 13 01 00 00 00 00 00 BD [11:58:37]Write i2c OK [11:58:37]MH_I2C_Read... [11:58:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:58:37]Read from MH i2c: E2 [11:58:37]MH_I2C_Read... [11:58:37]Read from MH i2c: E2 0E 00 [11:58:37]MH_I2C_Read... [11:58:37]Read from MH i2c: E2 0E 00 F2 4E 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 1C [11:58:37]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [11:58:37]wFMCommunicate OK [11:58:37]SAM_PROTO_GetShiftState done [11:58:37]FM_GetShiftState done [11:58:37]opened in 1729469754 [11:58:37]opened+sec_in_day 1729556154 [11:58:37]quantity*price = 200025 [11:58:37]sum+1 = 200026 [11:58:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 166 21.10.2024 11:58 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 187702 ФПД: 214288548283767 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T115841&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187702&fm=214288548283767&tin=02508201610067®Number=0000000000100030&sum=200000 [11:58:38]StoreToDocumentArchive [11:58:38]shift 460 fd 187702 [11:58:38]save to /storage/0460/doc_00187702 [11:58:38]save last doc name /storage/0460/doc_00187702 to /storage/kkm_last_doc_name [11:58:38]save OK [11:58:38]Clear old archive folders... [11:58:38]ProcessDocumentItem done err = 0, tmpTLVsize=257 [11:58:38]tlvbuf is 011F0FA0 [11:58:38]SAM_PROTO_ClearQueue [11:58:38]wFMCommunicate request_size=4 [11:58:38]MH_SAM_APDU [11:58:38]CAPDU: 80 09 00 00 [11:58:38]Write to MH i2c: E2 08 00 FF 4E 80 09 00 00 00 00 00 00 BF [11:58:38]Write i2c OK [11:58:38]MH_I2C_Read... [11:58:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:58:38]Read from MH i2c: E2 [11:58:38]MH_I2C_Read... [11:58:38]Read from MH i2c: E2 03 00 [11:58:38]MH_I2C_Read... [11:58:38]Read from MH i2c: E2 03 00 FF 4E 00 90 00 C1 [11:58:38]RAPDU: 90 00 [11:58:38]wFMCommunicate OK [11:58:38]SAM_PROTO_ClearQueue done [11:58:38]KKMCreateOFDPacket [11:58:38]OFDProtocolAddRootSTLVToBuf [11:58:38]FM_MakeSignedData [11:58:38]FM_MakeSignedData [11:58:38]SAM_PROTO_SignData [11:58:38]wFMCommunicate request_size=4 [11:58:38]MH_SAM_APDU [11:58:38]CAPDU: 80 0D 01 02 [11:58:38]Write to MH i2c: E2 08 00 00 4F 80 0D 01 02 00 00 00 00 C8 [11:58:38]Write i2c OK [11:58:38]MH_I2C_Read... [11:58:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:58:38]Read from MH i2c: E2 [11:58:38]MH_I2C_Read... [11:58:38]Read from MH i2c: E2 03 00 [11:58:38]MH_I2C_Read... [11:58:38]Read from MH i2c: E2 03 00 00 4F 00 90 00 C3 [11:58:38]RAPDU: 90 00 [11:58:38]wFMCommunicate OK [11:58:38]wFMCommunicate request_size=255 [11:58:38]MH_SAM_APDU [11:58:38]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 36 65 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A6 00 00 00 F4 03 04 00 F1 41 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 36 DD 02 [11:58:38]Write to MH i2c: E2 02 01 01 4F 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 36 65 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A6 00 00 00 F4 03 04 00 F1 41 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 36 DD 02 00 00 A0 [11:58:38]Write i2c OK [11:58:38]MH_I2C_Read... [11:58:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:58:39]Read from MH i2c: E2 [11:58:39]MH_I2C_Read... [11:58:39]Read from MH i2c: E2 03 00 [11:58:39]MH_I2C_Read... [11:58:39]Read from MH i2c: E2 03 00 01 4F 00 90 00 C4 [11:58:39]RAPDU: 90 00 [11:58:39]wFMCommunicate OK [11:58:39]wFMCommunicate request_size=16 [11:58:39]MH_SAM_APDU [11:58:39]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 C2 E4 F0 CC C5 77 [11:58:39]Write to MH i2c: E2 13 00 02 4F 80 0D 02 02 0B 00 00 35 04 06 00 C2 E4 F0 CC C5 77 00 00 BE [11:58:39]Write i2c OK [11:58:39]MH_I2C_Read... [11:58:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:58:39]Read from MH i2c: E2 [11:58:39]MH_I2C_Read... [11:58:39]Read from MH i2c: E2 03 00 [11:58:39]MH_I2C_Read... [11:58:39]Read from MH i2c: E2 03 00 02 4F 00 90 00 C5 [11:58:39]RAPDU: 90 00 [11:58:39]wFMCommunicate OK [11:58:39]wFMCommunicate request_size=4 [11:58:39]MH_SAM_APDU [11:58:39]CAPDU: 80 0D 03 02 [11:58:39]Write to MH i2c: E2 08 00 03 4F 80 0D 03 02 00 00 00 00 CD [11:58:39]Write i2c OK [11:58:39]MH_I2C_Read... [11:58:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:58:39]Read from MH i2c: E2 [11:58:39]MH_I2C_Read... [11:58:39]Read from MH i2c: E2 0B 00 [11:58:39]MH_I2C_Read... [11:58:39]Read from MH i2c: E2 0B 00 03 4F 00 F5 28 1B B6 F8 0D B9 62 90 00 DC [11:58:39]RAPDU: F5 28 1B B6 F8 0D B9 62 90 00 [11:58:39]wFMCommunicate OK [11:58:39]SAM_PROTO_SignData done [11:58:39]FM_MakeSignedData done [11:58:39]CreateOFDProtocolMessage [11:58:39]wFMCommunicate request_size=4 [11:58:39]MH_SAM_APDU [11:58:39]CAPDU: 80 11 00 00 [11:58:39]Write to MH i2c: E2 08 00 04 4F 80 11 00 00 00 00 00 00 CD [11:58:39]Write i2c OK [11:58:39]MH_I2C_Read... [11:58:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:58:39]Read from MH i2c: E2 [11:58:39]MH_I2C_Read... [11:58:39]Read from MH i2c: E2 17 00 [11:58:39]MH_I2C_Read... [11:58:39]Read from MH i2c: E2 17 00 04 4F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 1B [11:58:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [11:58:39]wFMCommunicate OK [11:58:39]CreateOFDProtocolMessage done [11:58:39]OFDSenderStorePacket 187702 [11:58:39]StoreOFDPacket docnum=187702 [11:58:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 9C C5 0D 01 03 2B 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 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 36 65 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A6 00 00 00 F4 03 04 00 F1 41 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 36 DD 02 00 35 04 06 00 C2 E4 F0 CC C5 77 F5 28 1B B6 F8 0D B9 62 [11:58:39]CheckFolder [11:58:39]dirname=/storage/ofd_packets [11:58:39]CheckFolder done [11:58:39]ProducePacketName [11:58:39]name=ofd_packets/00187702 [11:58:39]NVStorageSaveData ofd_packets/00187702 [11:58:39]File name is /storage/ofd_packets/00187702 [11:58:39]Write 307 bytes [11:58:39]NVStorageSaveData done [11:58:39]OFDSenderStorePacket done [11:58:39]KKMCreateOFDPacket done [11:58:39]NVStorageSaveData kkm_last_timestamp [11:58:39]File name is /storage/kkm_last_timestamp [11:58:39]Write 4 bytes [11:58:39]NVStorageSaveData done [11:58:39]ExternCall_PrintAddStr [11:58:39]wPrintStart [11:58:39]Write to MH i2c: 01 00 00 05 4F 54 [11:58:39]Write i2c OK [11:58:39]MH_I2C_Read... [11:58:39]Read from MH i2c: 01 [11:58:39]MH_I2C_Read... [11:58:39]Read from MH i2c: 01 07 00 [11:58:39]MH_I2C_Read... [11:58:39]Read from MH i2c: 01 07 00 05 4F 00 00 00 00 00 FF 0F 69 [11:58:39]RasterBufferAndPrint [11:58:39]line Счет N : (1)209752 [11:58:39]line ИНН: 02508201610067 [11:58:39]line Контрольно-Кассовый Чек [11:58:39]line ПРОДАЖА [11:58:39]line ТРК (МРК, ГНК) : 21 [11:58:39]line Товар: 2710194210 [11:58:39]line D-ENERGY ДТ-К-5 [11:58:39]line 25.910 * 77.20 [11:58:39]line = 2000.25 [11:58:39]line НДС 12% НСП 1% [11:58:39]line > о реализуемом товаре [11:58:39]line ОКРУГЛЕНИЕ: -0.25 [11:58:39]line ИТОГО: 2000.00 [11:58:39]line Внесено: 2000.00 [11:58:39]line СДАЧА: 0.00 [11:58:39]line НСП 1% : 17.70 [11:58:39]line НДС 12% : 212.42 [11:58:39]line Наличными: 2000.00 [11:58:39]line Безнал.: 0.00 [11:58:39]line Место: АЗС № 86 "Партнер Нефть" [11:58:39]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [11:58:39]line СНО: Общий режим [11:58:39]line Чек 166 21.10.2024 11:58 [11:58:39]line Смена: 460 ФФД: 1.0 [11:58:39]line ЗНМ: 0300000155 [11:58:39]line РНМ: 0000000000100030 [11:58:39]line Версия ККМ: 001 [11:58:39]line ФМ: 0000000000965340 [11:58:39]line ФД: 187702 [11:58:39]line ФПД: 214288548283767 [11:58:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T115841&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187702&fm=214288548283767&tin=02508201610067®Number=0000000000100030&sum=200000 [11:58:39]written 0, free lines is 4095 [11:58:39]OFD Sender: Processing packet 187702 [packets to send 1062, broken 1061] [11:58:39]ProducePacketName [11:58:39]name=ofd_packets/00187702 [11:58:39]OFD Sender: To server: pG, [11:58:39]CommunicateWithHost lk.salyk.kg:30040 [11:58:39]ConnectInit lk.salyk.kg [11:58:39]Connected sock=10 [11:58:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 9C C5 0D 01 03 2B 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 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 36 65 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A6 00 00 00 F4 03 04 00 F1 41 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 36 DD 02 00 35 04 06 00 C2 E4 F0 CC C5 77 F5 28 1B B6 F8 0D B9 62 [11:58:39]Write to MH i2c: 01 00 00 30 4F 7F [11:58:39]Write i2c OK [11:58:39]MH_I2C_Read... [11:58:39]Read from MH i2c: 01 [11:58:39]MH_I2C_Read... [11:58:39]Read from MH i2c: 01 07 00 [11:58:39]MH_I2C_Read... [11:58:39]Read from MH i2c: 01 07 00 30 4F 00 00 00 00 00 7B 0C 0D [11:58:39]RasterBufferAndPrint [11:58:39]line [11:58:39]line [11:58:39]line [11:58:39]line [11:58:39]line [11:58:39]written 0, free lines is 3199 [11:58:39]MH_Cut [11:58:39]Write to MH i2c: D1 01 00 37 4F 01 58 [11:58:39]Write i2c OK [11:58:39]MH_I2C_Read... [11:58:39]Read from MH i2c: D1 [11:58:39]MH_I2C_Read... [11:58:39]Read from MH i2c: D1 01 00 [11:58:39]MH_I2C_Read... [11:58:39]Read from MH i2c: D1 01 00 37 4F 00 57 [11:58:39]Write to MH i2c: 01 00 00 38 4F 87 [11:58:39]Write i2c OK [11:58:39]MH_I2C_Read... [11:58:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 7F BD 47 00 56 95 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 36 DD 02 00 F4 03 04 00 E1 EB 15 67 B6 04 01 00 00 86 BB 86 2B 11 88 05 A3 [11:58:39]CommunicateWithHost err = 0 [11:58:39]CheckOFDResponse [11:58:39]1017 (14) - 77093643461234 [11:58:39]1041 (16) - 0000000000965340 [11:58:39]1040 (4) - 187702 [11:58:39]1012 (4) - 21.10.2024 05:51 [11:58:39]1206 (1) - 0 [11:58:39]OFD Sender: Remove packet 187702 [11:58:39]ProducePacketName [11:58:39]name=ofd_packets/00187702 [11:58:39]NVStorageDeleteData [11:58:40]OFD Sender: No OFD packet to send [11:58:40]*** Cut start [11:58:40]*** Partial cut [11:58:40]*** CUTSNS_PIN = 1 [11:58:40]*** CUTSNS_PIN = 0 [11:58:41]*** Brake cut motor [11:58:41]Read from MH i2c: 01 [11:58:41]MH_I2C_Read... [11:58:41]*** Stop cut motor [11:58:41]Read from MH i2c: 01 07 00 [11:58:41]MH_I2C_Read... [11:58:41]*** Cut end [11:58:41]Read from MH i2c: 01 07 00 38 4F 00 00 00 00 00 FF 0F 9C [11:58:41]process_action close_receipt done [11:58:41]requested_data is exist [11:58:41]produce_requested_data [11:58:41]requested_item fm.sn is exist - process it [11:58:41]wFMCommunicate request_size=4 [11:58:41]MH_SAM_APDU [11:58:41]CAPDU: 80 11 00 00 [11:58:41]Write to MH i2c: E2 08 00 39 4F 80 11 00 00 00 00 00 00 02 [11:58:41]Write i2c OK [11:58:41]MH_I2C_Read... [11:58:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:58:41]Read from MH i2c: E2 [11:58:41]MH_I2C_Read... [11:58:41]Read from MH i2c: E2 17 00 [11:58:41]MH_I2C_Read... [11:58:41]Read from MH i2c: E2 17 00 39 4F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 50 [11:58:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [11:58:41]wFMCommunicate OK [11:58:41]requested_item fd.num is exist - process it [11:58:41]SAM_PROTO_GetFieldsCounters [11:58:41]wFMCommunicate request_size=4 [11:58:41]MH_SAM_APDU [11:58:41]CAPDU: 80 13 00 00 [11:58:41]Write to MH i2c: E2 08 00 3A 4F 80 13 00 00 00 00 00 00 05 [11:58:41]Write i2c OK [11:58:41]MH_I2C_Read... [11:58:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:58:41]Read from MH i2c: E2 [11:58:41]MH_I2C_Read... [11:58:41]Read from MH i2c: E2 62 00 [11:58:41]MH_I2C_Read... [11:58:41]Read from MH i2c: E2 62 00 3A 4F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 36 DD 02 00 0E 04 04 00 CC 01 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 E0 [11:58:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 36 DD 02 00 0E 04 04 00 CC 01 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 [11:58:41]wFMCommunicate OK [11:58:41]SAM_PROTO_GetFieldsCounters done [11:58:41]requested_item shift.num is exist - process it [11:58:41]requested_item shift.opened is exist - process it [11:58:41]req_shift_opened [11:58:41]FM_GetShiftState [11:58:41]SAM_PROTO_GetShiftState [11:58:41]wFMCommunicate request_size=4 [11:58:41]MH_SAM_APDU [11:58:41]CAPDU: 80 13 01 00 [11:58:41]Write to MH i2c: E2 08 00 3B 4F 80 13 01 00 00 00 00 00 07 [11:58:41]Write i2c OK [11:58:41]MH_I2C_Read... [11:58:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:58:41]Read from MH i2c: E2 [11:58:41]MH_I2C_Read... [11:58:41]Read from MH i2c: E2 0E 00 [11:58:41]MH_I2C_Read... [11:58:41]Read from MH i2c: E2 0E 00 3B 4F 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 66 [11:58:41]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [11:58:41]wFMCommunicate OK [11:58:41]SAM_PROTO_GetShiftState done [11:58:41]FM_GetShiftState done [11:58:41]req_shift_opened done [11:58:41]requested_item shift.open_date is exist - process it [11:58:41]req_shift_open_date [11:58:41]req_shift_open_date done [11:58:41]produce_requested_data done [11:58:41]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187702,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [11:58:41]process_action_free close_receipt [11:58:41]json_value_free [11:58:41]json_value_free done [11:58:41]process_json_proto returns [11:58:41]Send response to host [11:58:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187702,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [11:58:41]free response buf [11:58:41]execute_script done [11:58:41]execute_script returns [11:58:41]free content buf [11:58:41]Sock 8.Close socket [11:58:41]Sock 8.Thread stoped [11:58:45]OFD Sender: No OFD packet to send [11:58:50]OFD Sender: No OFD packet to send [11:58:55]OFD Sender: No OFD packet to send [11:59:00]OFD Sender: No OFD packet to send [11:59:05]OFD Sender: No OFD packet to send [11:59:10]OFD Sender: No OFD packet to send [11:59:15]OFD Sender: No OFD packet to send [11:59:20]OFD Sender: No OFD packet to send [11:59:25]OFD Sender: No OFD packet to send [11:59:30]OFD Sender: No OFD packet to send [11:59:35]accept exits with 9 [11:59:35]New connection [11:59:35]New thread 3067014500 created [11:59:35]Thread 3067157860 joined [11:59:35]Waiting for new connection... [11:59:35] Sock 9.Parse request [11:59:35]Sock 9.Check first char [11:59:35]Sock 9.First char is OK [11:59:35]request: POST /json_proto HTTP/1.0 [11:59:35]Method: POST [11:59:35]URL: /json_proto [11:59:35]Method is POST - this is cgi request [11:59:35]url: /json_proto [11:59:35]query_string will be loaded in cgi processing [11:59:35]execute_cgi json_proto POST (null) [11:59:35]execute_cgi path=json_proto method=POST [11:59:35]POST find Content-Length [11:59:35]Host: 172.17.42.131:8080 [11:59:35]Content-Length: 688 [11:59:35]Content-Type: application/json [11:59:35] [11:59:35]POST finish read [11:59:35]Found Content-Length = 688 [11:59:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209755", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 12.960, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:59:35]execute_script... [11:59: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)209755", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 12.960, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:59:35]POST & json_proto [11:59:35]process_json_proto [11:59:35]json parsed OK: [11:59:35]protocol is kg_v1.0 [11:59:35]action value=close_receipt [11:59:35]process_action close_receipt [11:59:35]cmd_close_receipt [11:59:35]MH_GetDate [11:59:35]Write to MH i2c: F0 00 00 3C 4F 7A [11:59:35]Write i2c OK [11:59:35]MH_I2C_Read... [11:59:35]Read from MH i2c: F0 [11:59:35]MH_I2C_Read... [11:59:35]Read from MH i2c: F0 09 00 [11:59:35]MH_I2C_Read... [11:59:35]Read from MH i2c: F0 09 00 3C 4F 00 2B 42 16 67 A0 18 CA 66 55 [11:59:35]GetLastDocTimeStamp 1729511921 [11:59:35]current date 1729511979 [11:59:35]FM_GetShiftState [11:59:35]SAM_PROTO_GetShiftState [11:59:35]wFMCommunicate request_size=4 [11:59:35]MH_SAM_APDU [11:59:35]CAPDU: 80 13 01 00 [11:59:35]Write to MH i2c: E2 08 00 3D 4F 80 13 01 00 00 00 00 00 09 [11:59:35]Write i2c OK [11:59:35]MH_I2C_Read... [11:59:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:59:35]Read from MH i2c: E2 [11:59:35]MH_I2C_Read... [11:59:35]Read from MH i2c: E2 0E 00 [11:59:35]MH_I2C_Read... [11:59:35]Read from MH i2c: E2 0E 00 3D 4F 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 68 [11:59:35]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [11:59:35]wFMCommunicate OK [11:59:35]SAM_PROTO_GetShiftState done [11:59:35]FM_GetShiftState done [11:59:35]opened in 1729469754 [11:59:35]opened+sec_in_day 1729556154 [11:59:35]quantity*price = 100051 [11:59:35]sum+1 = 100052 [11:59:35]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 167 21.10.2024 11:59 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 187703 ФПД: 225354065627459 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T115939&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187703&fm=225354065627459&tin=02508201610067®Number=0000000000100030&sum=100000 [11:59:36]StoreToDocumentArchive [11:59:36]shift 460 fd 187703 [11:59:36]save to /storage/0460/doc_00187703 [11:59:36]save last doc name /storage/0460/doc_00187703 to /storage/kkm_last_doc_name [11:59:36]save OK [11:59:36]Clear old archive folders... [11:59:36]ProcessDocumentItem done err = 0, tmpTLVsize=257 [11:59:36]tlvbuf is B6F0C750 [11:59:36]SAM_PROTO_ClearQueue [11:59:36]wFMCommunicate request_size=4 [11:59:36]MH_SAM_APDU [11:59:36]CAPDU: 80 09 00 00 [11:59:36]Write to MH i2c: E2 08 00 4A 4F 80 09 00 00 00 00 00 00 0B [11:59:36]Write i2c OK [11:59:36]MH_I2C_Read... [11:59:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:59:36]Read from MH i2c: E2 [11:59:36]MH_I2C_Read... [11:59:36]Read from MH i2c: E2 03 00 [11:59:36]MH_I2C_Read... [11:59:36]Read from MH i2c: E2 03 00 4A 4F 00 90 00 0D [11:59:36]RAPDU: 90 00 [11:59:36]wFMCommunicate OK [11:59:36]SAM_PROTO_ClearQueue done [11:59:36]KKMCreateOFDPacket [11:59:36]OFDProtocolAddRootSTLVToBuf [11:59:36]FM_MakeSignedData [11:59:36]FM_MakeSignedData [11:59:36]SAM_PROTO_SignData [11:59:36]wFMCommunicate request_size=4 [11:59:36]MH_SAM_APDU [11:59:36]CAPDU: 80 0D 01 02 [11:59:36]Write to MH i2c: E2 08 00 4B 4F 80 0D 01 02 00 00 00 00 13 [11:59:36]Write i2c OK [11:59:36]MH_I2C_Read... [11:59:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:59:36]Read from MH i2c: E2 [11:59:36]MH_I2C_Read... [11:59:36]Read from MH i2c: E2 03 00 [11:59:36]MH_I2C_Read... [11:59:36]Read from MH i2c: E2 03 00 4B 4F 00 90 00 0E [11:59:36]RAPDU: 90 00 [11:59:36]wFMCommunicate OK [11:59:36]wFMCommunicate request_size=255 [11:59:36]MH_SAM_APDU [11:59: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 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A7 00 00 00 F4 03 04 00 2B 42 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 37 DD 02 [11:59:36]Write to MH i2c: E2 02 01 4C 4F 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A7 00 00 00 F4 03 04 00 2B 42 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 37 DD 02 00 00 E4 [11:59:36]Write i2c OK [11:59:36]MH_I2C_Read... [11:59:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:59:36]Read from MH i2c: E2 [11:59:36]MH_I2C_Read... [11:59:36]Read from MH i2c: E2 03 00 [11:59:36]MH_I2C_Read... [11:59:36]Read from MH i2c: E2 03 00 4C 4F 00 90 00 0F [11:59:36]RAPDU: 90 00 [11:59:36]wFMCommunicate OK [11:59:36]wFMCommunicate request_size=16 [11:59:36]MH_SAM_APDU [11:59:36]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 CC F5 55 07 C9 43 [11:59:36]Write to MH i2c: E2 13 00 4D 4F 80 0D 02 02 0B 00 00 35 04 06 00 CC F5 55 07 C9 43 00 00 94 [11:59:36]Write i2c OK [11:59:36]MH_I2C_Read... [11:59:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:59:36]Read from MH i2c: E2 [11:59:36]MH_I2C_Read... [11:59:36]Read from MH i2c: E2 03 00 [11:59:36]MH_I2C_Read... [11:59:36]Read from MH i2c: E2 03 00 4D 4F 00 90 00 10 [11:59:36]RAPDU: 90 00 [11:59:36]wFMCommunicate OK [11:59:36]wFMCommunicate request_size=4 [11:59:36]MH_SAM_APDU [11:59:36]CAPDU: 80 0D 03 02 [11:59:36]Write to MH i2c: E2 08 00 4E 4F 80 0D 03 02 00 00 00 00 18 [11:59:36]Write i2c OK [11:59:36]MH_I2C_Read... [11:59:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:59:36]Read from MH i2c: E2 [11:59:36]MH_I2C_Read... [11:59:36]Read from MH i2c: E2 0B 00 [11:59:36]MH_I2C_Read... [11:59:36]Read from MH i2c: E2 0B 00 4E 4F 00 86 BA A4 23 AF 2E 77 A1 90 00 15 [11:59:36]RAPDU: 86 BA A4 23 AF 2E 77 A1 90 00 [11:59:36]wFMCommunicate OK [11:59:36]SAM_PROTO_SignData done [11:59:36]FM_MakeSignedData done [11:59:36]CreateOFDProtocolMessage [11:59:36]wFMCommunicate request_size=4 [11:59:36]MH_SAM_APDU [11:59:36]CAPDU: 80 11 00 00 [11:59:36]Write to MH i2c: E2 08 00 4F 4F 80 11 00 00 00 00 00 00 18 [11:59:36]Write i2c OK [11:59:36]MH_I2C_Read... [11:59:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:59:37]Read from MH i2c: E2 [11:59:37]MH_I2C_Read... [11:59:37]Read from MH i2c: E2 17 00 [11:59:37]MH_I2C_Read... [11:59:37]Read from MH i2c: E2 17 00 4F 4F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 66 [11:59:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [11:59:37]wFMCommunicate OK [11:59:37]CreateOFDProtocolMessage done [11:59:37]OFDSenderStorePacket 187703 [11:59:37]StoreOFDPacket docnum=187703 [11:59:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 2B 8B 0D 01 6F FB 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 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A7 00 00 00 F4 03 04 00 2B 42 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 37 DD 02 00 35 04 06 00 CC F5 55 07 C9 43 86 BA A4 23 AF 2E 77 A1 [11:59:37]CheckFolder [11:59:37]dirname=/storage/ofd_packets [11:59:37]CheckFolder done [11:59:37]ProducePacketName [11:59:37]name=ofd_packets/00187703 [11:59:37]NVStorageSaveData ofd_packets/00187703 [11:59:37]File name is /storage/ofd_packets/00187703 [11:59:37]Write 307 bytes [11:59:37]NVStorageSaveData done [11:59:37]OFDSenderStorePacket done [11:59:37]KKMCreateOFDPacket done [11:59:37]NVStorageSaveData kkm_last_timestamp [11:59:37]File name is /storage/kkm_last_timestamp [11:59:37]Write 4 bytes [11:59:37]NVStorageSaveData done [11:59:37]ExternCall_PrintAddStr [11:59:37]wPrintStart [11:59:37]Write to MH i2c: 01 00 00 50 4F 9F [11:59:37]Write i2c OK [11:59:37]MH_I2C_Read... [11:59:37]Read from MH i2c: 01 [11:59:37]MH_I2C_Read... [11:59:37]Read from MH i2c: 01 07 00 [11:59:37]MH_I2C_Read... [11:59:37]Read from MH i2c: 01 07 00 50 4F 00 00 00 00 00 FF 0F B4 [11:59:37]RasterBufferAndPrint [11:59:37]line Счет N : (1)209755 [11:59:37]line ИНН: 02508201610067 [11:59:37]line Контрольно-Кассовый Чек [11:59:37]line ПРОДАЖА [11:59:37]line ТРК (МРК, ГНК) : 11 [11:59:37]line Товар: 2710194210 [11:59:37]line D-ENERGY ДТ-К-5 [11:59:37]line 12.960 * 77.20 [11:59:37]line = 1000.51 [11:59:37]line НДС 12% НСП 1% [11:59:37]line > о реализуемом товаре [11:59:37]line ОКРУГЛЕНИЕ: -0.51 [11:59:37]line ИТОГО: 1000.00 [11:59:37]line Внесено: 1000.00 [11:59:37]line СДАЧА: 0.00 [11:59:37]line НСП 1% : 8.85 [11:59:37]line НДС 12% : 106.25 [11:59:37]line Наличными: 1000.00 [11:59:37]line Безнал.: 0.00 [11:59:37]line Место: АЗС № 86 "Партнер Нефть" [11:59:37]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [11:59:37]line СНО: Общий режим [11:59:37]line Чек 167 21.10.2024 11:59 [11:59:37]line Смена: 460 ФФД: 1.0 [11:59:37]line ЗНМ: 0300000155 [11:59:37]line РНМ: 0000000000100030 [11:59:37]line Версия ККМ: 001 [11:59:37]line ФМ: 0000000000965340 [11:59:37]line ФД: 187703 [11:59:37]line ФПД: 225354065627459 [11:59:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T115939&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187703&fm=225354065627459&tin=02508201610067®Number=0000000000100030&sum=100000 [11:59:37]written 0, free lines is 4095 [11:59:37]OFD Sender: Processing packet 187703 [packets to send 1062, broken 1061] [11:59:37]ProducePacketName [11:59:37]name=ofd_packets/00187703 [11:59:37]OFD Sender: To server: pG, [11:59:37]CommunicateWithHost lk.salyk.kg:30040 [11:59:37]ConnectInit lk.salyk.kg [11:59:37]Connected sock=10 [11:59:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 2B 8B 0D 01 6F FB 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 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A7 00 00 00 F4 03 04 00 2B 42 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 37 DD 02 00 35 04 06 00 CC F5 55 07 C9 43 86 BA A4 23 AF 2E 77 A1 [11:59:37]Write to MH i2c: 01 00 00 7B 4F CA [11:59:37]Write i2c OK [11:59:37]MH_I2C_Read... [11:59:37]Read from MH i2c: 01 [11:59:37]MH_I2C_Read... [11:59:37]Read from MH i2c: 01 07 00 [11:59:37]MH_I2C_Read... [11:59:37]Read from MH i2c: 01 07 00 7B 4F 00 00 00 00 00 77 0C 54 [11:59:37]RasterBufferAndPrint [11:59:37]line [11:59:37]line [11:59:37]line [11:59:37]line [11:59:37]line [11:59:37]written 0, free lines is 3194 [11:59:37]MH_Cut [11:59:37]Write to MH i2c: D1 01 00 82 4F 01 A3 [11:59:37]Write i2c OK [11:59:37]MH_I2C_Read... [11:59:37]Read from MH i2c: D1 [11:59:37]MH_I2C_Read... [11:59:37]Read from MH i2c: D1 01 00 [11:59:37]MH_I2C_Read... [11:59:37]Read from MH i2c: D1 01 00 82 4F 00 A2 [11:59:37]Write to MH i2c: 01 00 00 83 4F D2 [11:59:37]Write i2c OK [11:59:37]MH_I2C_Read... [11:59:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 06 64 47 00 F2 94 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 37 DD 02 00 F4 03 04 00 1A EC 15 67 B6 04 01 00 00 92 93 5C 73 A8 CD 0F AE [11:59:37]CommunicateWithHost err = 0 [11:59:37]CheckOFDResponse [11:59:37]1017 (14) - 77093643461234 [11:59:37]1041 (16) - 0000000000965340 [11:59:37]1040 (4) - 187703 [11:59:37]1012 (4) - 21.10.2024 05:52 [11:59:37]1206 (1) - 0 [11:59:37]OFD Sender: Remove packet 187703 [11:59:37]ProducePacketName [11:59:37]name=ofd_packets/00187703 [11:59:37]NVStorageDeleteData [11:59:38]OFD Sender: No OFD packet to send [11:59:38]*** Cut start [11:59:38]*** Partial cut [11:59:38]*** CUTSNS_PIN = 1 [11:59:38]*** CUTSNS_PIN = 0 [11:59:38]*** Brake cut motor [11:59:39]Read from MH i2c: 01 [11:59:39]MH_I2C_Read... [11:59:39]*** Stop cut motor [11:59:39]*** Cut end [11:59:39]Read from MH i2c: 01 07 00 [11:59:39]MH_I2C_Read... [11:59:39]Read from MH i2c: 01 07 00 83 4F 00 00 00 00 00 FF 0F E7 [11:59:39]process_action close_receipt done [11:59:39]requested_data is exist [11:59:39]produce_requested_data [11:59:39]requested_item fm.sn is exist - process it [11:59:39]wFMCommunicate request_size=4 [11:59:39]MH_SAM_APDU [11:59:39]CAPDU: 80 11 00 00 [11:59:39]Write to MH i2c: E2 08 00 84 4F 80 11 00 00 00 00 00 00 4D [11:59:39]Write i2c OK [11:59:39]MH_I2C_Read... [11:59:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:59:39]Read from MH i2c: E2 [11:59:39]MH_I2C_Read... [11:59:39]Read from MH i2c: E2 17 00 [11:59:39]MH_I2C_Read... [11:59:39]Read from MH i2c: E2 17 00 84 4F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 9B [11:59:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [11:59:39]wFMCommunicate OK [11:59:39]requested_item fd.num is exist - process it [11:59:39]SAM_PROTO_GetFieldsCounters [11:59:39]wFMCommunicate request_size=4 [11:59:39]MH_SAM_APDU [11:59:39]CAPDU: 80 13 00 00 [11:59:39]Write to MH i2c: E2 08 00 85 4F 80 13 00 00 00 00 00 00 50 [11:59:39]Write i2c OK [11:59:39]MH_I2C_Read... [11:59:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:59:39]Read from MH i2c: E2 [11:59:39]MH_I2C_Read... [11:59:39]Read from MH i2c: E2 62 00 [11:59:39]MH_I2C_Read... [11:59:39]Read from MH i2c: E2 62 00 85 4F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 37 DD 02 00 0E 04 04 00 CC 01 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 2F [11:59:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 37 DD 02 00 0E 04 04 00 CC 01 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 [11:59:39]wFMCommunicate OK [11:59:39]SAM_PROTO_GetFieldsCounters done [11:59:39]requested_item shift.num is exist - process it [11:59:39]requested_item shift.opened is exist - process it [11:59:39]req_shift_opened [11:59:39]FM_GetShiftState [11:59:39]SAM_PROTO_GetShiftState [11:59:39]wFMCommunicate request_size=4 [11:59:39]MH_SAM_APDU [11:59:39]CAPDU: 80 13 01 00 [11:59:39]Write to MH i2c: E2 08 00 86 4F 80 13 01 00 00 00 00 00 52 [11:59:39]Write i2c OK [11:59:39]MH_I2C_Read... [11:59:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:59:39]Read from MH i2c: E2 [11:59:39]MH_I2C_Read... [11:59:39]Read from MH i2c: E2 0E 00 [11:59:39]MH_I2C_Read... [11:59:39]Read from MH i2c: E2 0E 00 86 4F 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 B1 [11:59:39]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [11:59:39]wFMCommunicate OK [11:59:39]SAM_PROTO_GetShiftState done [11:59:39]FM_GetShiftState done [11:59:39]req_shift_opened done [11:59:39]requested_item shift.open_date is exist - process it [11:59:39]req_shift_open_date [11:59:39]req_shift_open_date done [11:59:39]produce_requested_data done [11:59:39]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187703,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [11:59:39]process_action_free close_receipt [11:59:39]json_value_free [11:59:39]json_value_free done [11:59:39]process_json_proto returns [11:59:39]Send response to host [11:59:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187703,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [11:59:39]free response buf [11:59:39]execute_script done [11:59:39]execute_script returns [11:59:39]free content buf [11:59:39]Sock 9.Close socket [11:59:39]Sock 9.Thread stoped [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:24]accept exits with 8 [12:00:24]New connection [12:00:24]New thread 3067157860 created [12:00:24]Thread 3067014500 joined [12:00:24]Waiting for new connection... [12:00:24] Sock 8.Parse request [12:00:24]Sock 8.Check first char [12:00:24]Sock 8.First char is OK [12:00:24]request: POST /json_proto HTTP/1.0 [12:00:24]Method: POST [12:00:24]URL: /json_proto [12:00:24]Method is POST - this is cgi request [12:00:24]url: /json_proto [12:00:24]query_string will be loaded in cgi processing [12:00:24]execute_cgi json_proto POST (null) [12:00:24]execute_cgi path=json_proto method=POST [12:00:24]POST find Content-Length [12:00:24]Host: 172.17.42.131:8080 [12:00:24]Content-Length: 688 [12:00:24]Content-Type: application/json [12:00:24] [12:00:24]POST finish read [12:00:24]Found Content-Length = 688 [12:00:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209756", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 25.910, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:00:24]execute_script... [12: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)209756", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 25.910, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:00:24]POST & json_proto [12:00:24]process_json_proto [12:00:24]json parsed OK: [12:00:24]protocol is kg_v1.0 [12:00:24]action value=close_receipt [12:00:24]process_action close_receipt [12:00:24]cmd_close_receipt [12:00:24]MH_GetDate [12:00:24]Write to MH i2c: F0 00 00 87 4F C5 [12:00:24]Write i2c OK [12:00:24]MH_I2C_Read... [12:00:24]Read from MH i2c: F0 [12:00:24]MH_I2C_Read... [12:00:24]Read from MH i2c: F0 09 00 [12:00:24]MH_I2C_Read... [12:00:24]Read from MH i2c: F0 09 00 87 4F 00 5C 42 16 67 A0 18 CA 66 D1 [12:00:24]GetLastDocTimeStamp 1729511979 [12:00:24]current date 1729512028 [12:00:24]FM_GetShiftState [12:00:24]SAM_PROTO_GetShiftState [12:00:24]wFMCommunicate request_size=4 [12:00:24]MH_SAM_APDU [12:00:24]CAPDU: 80 13 01 00 [12:00:24]Write to MH i2c: E2 08 00 88 4F 80 13 01 00 00 00 00 00 54 [12:00:24]Write i2c OK [12:00:24]MH_I2C_Read... [12:00:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:00:24]Read from MH i2c: E2 [12:00:24]MH_I2C_Read... [12:00:24]Read from MH i2c: E2 0E 00 [12:00:24]MH_I2C_Read... [12:00:24]Read from MH i2c: E2 0E 00 88 4F 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 B3 [12:00:24]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [12:00:24]wFMCommunicate OK [12:00:24]SAM_PROTO_GetShiftState done [12:00:24]FM_GetShiftState done [12:00:24]opened in 1729469754 [12:00:24]opened+sec_in_day 1729556154 [12:00:24]quantity*price = 200025 [12:00:24]sum+1 = 200026 [12:00:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 168 21.10.2024 12:00 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 187704 ФПД: 28421808250428 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T120028&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187704&fm=28421808250428&tin=02508201610067®Number=0000000000100030&sum=200000 [12:00:25]StoreToDocumentArchive [12:00:25]shift 460 fd 187704 [12:00:25]save to /storage/0460/doc_00187704 [12:00:25]save last doc name /storage/0460/doc_00187704 to /storage/kkm_last_doc_name [12:00:25]save OK [12:00:25]Clear old archive folders... [12:00:25]ProcessDocumentItem done err = 0, tmpTLVsize=257 [12:00:25]tlvbuf is 0124ABC0 [12:00:25]SAM_PROTO_ClearQueue [12:00:25]wFMCommunicate request_size=4 [12:00:25]MH_SAM_APDU [12:00:25]CAPDU: 80 09 00 00 [12:00:25]Write to MH i2c: E2 08 00 95 4F 80 09 00 00 00 00 00 00 56 [12:00:25]Write i2c OK [12:00:25]MH_I2C_Read... [12:00:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:00:25]Read from MH i2c: E2 [12:00:25]MH_I2C_Read... [12:00:25]Read from MH i2c: E2 03 00 [12:00:25]MH_I2C_Read... [12:00:25]Read from MH i2c: E2 03 00 95 4F 00 90 00 58 [12:00:25]RAPDU: 90 00 [12:00:25]wFMCommunicate OK [12:00:25]SAM_PROTO_ClearQueue done [12:00:25]KKMCreateOFDPacket [12:00:25]OFDProtocolAddRootSTLVToBuf [12:00:25]FM_MakeSignedData [12:00:25]FM_MakeSignedData [12:00:25]SAM_PROTO_SignData [12:00:25]wFMCommunicate request_size=4 [12:00:25]MH_SAM_APDU [12:00:25]CAPDU: 80 0D 01 02 [12:00:25]Write to MH i2c: E2 08 00 96 4F 80 0D 01 02 00 00 00 00 5E [12:00:25]Write i2c OK [12:00:25]MH_I2C_Read... [12:00:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:00:25]Read from MH i2c: E2 [12:00:25]MH_I2C_Read... [12:00:25]Read from MH i2c: E2 03 00 [12:00:25]MH_I2C_Read... [12:00:25]Read from MH i2c: E2 03 00 96 4F 00 90 00 59 [12:00:25]RAPDU: 90 00 [12:00:25]wFMCommunicate OK [12:00:25]wFMCommunicate request_size=255 [12:00:25]MH_SAM_APDU [12:00:25]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 36 65 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A8 00 00 00 F4 03 04 00 5C 42 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 38 DD 02 [12:00:25]Write to MH i2c: E2 02 01 97 4F 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 36 65 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A8 00 00 00 F4 03 04 00 5C 42 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 38 DD 02 00 00 A6 [12:00:25]Write i2c OK [12:00:25]MH_I2C_Read... [12:00:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:00:25]Read from MH i2c: E2 [12:00:25]MH_I2C_Read... [12:00:25]Read from MH i2c: E2 03 00 [12:00:25]MH_I2C_Read... [12:00:25]Read from MH i2c: E2 03 00 97 4F 00 90 00 5A [12:00:25]RAPDU: 90 00 [12:00:25]wFMCommunicate OK [12:00:25]wFMCommunicate request_size=16 [12:00:25]MH_SAM_APDU [12:00:25]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 19 D9 77 C8 DE 3C [12:00:25]Write to MH i2c: E2 13 00 98 4F 80 0D 02 02 0B 00 00 35 04 06 00 19 D9 77 C8 DE 3C 00 00 01 [12:00:25]Write i2c OK [12:00:25]MH_I2C_Read... [12:00:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:00:25]Read from MH i2c: E2 [12:00:25]MH_I2C_Read... [12:00:25]Read from MH i2c: E2 03 00 [12:00:25]MH_I2C_Read... [12:00:25]Read from MH i2c: E2 03 00 98 4F 00 90 00 5B [12:00:25]RAPDU: 90 00 [12:00:25]wFMCommunicate OK [12:00:25]wFMCommunicate request_size=4 [12:00:25]MH_SAM_APDU [12:00:25]CAPDU: 80 0D 03 02 [12:00:25]Write to MH i2c: E2 08 00 99 4F 80 0D 03 02 00 00 00 00 63 [12:00:25]Write i2c OK [12:00:25]MH_I2C_Read... [12:00:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:00:25]Read from MH i2c: E2 [12:00:25]MH_I2C_Read... [12:00:25]Read from MH i2c: E2 0B 00 [12:00:25]MH_I2C_Read... [12:00:25]Read from MH i2c: E2 0B 00 99 4F 00 45 35 52 B0 E8 F1 06 96 90 00 55 [12:00:25]RAPDU: 45 35 52 B0 E8 F1 06 96 90 00 [12:00:25]wFMCommunicate OK [12:00:25]SAM_PROTO_SignData done [12:00:25]FM_MakeSignedData done [12:00:25]CreateOFDProtocolMessage [12:00:25]wFMCommunicate request_size=4 [12:00:25]MH_SAM_APDU [12:00:25]CAPDU: 80 11 00 00 [12:00:25]Write to MH i2c: E2 08 00 9A 4F 80 11 00 00 00 00 00 00 63 [12:00:25]Write i2c OK [12:00:25]MH_I2C_Read... [12:00:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:00:25]Read from MH i2c: E2 [12:00:25]MH_I2C_Read... [12:00:25]Read from MH i2c: E2 17 00 [12:00:25]MH_I2C_Read... [12:00:25]Read from MH i2c: E2 17 00 9A 4F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 B1 [12:00:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [12:00:25]wFMCommunicate OK [12:00:25]CreateOFDProtocolMessage done [12:00:25]OFDSenderStorePacket 187704 [12:00:25]StoreOFDPacket docnum=187704 [12:00:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 0F 2D 0D 01 C6 95 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 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 36 65 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A8 00 00 00 F4 03 04 00 5C 42 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 38 DD 02 00 35 04 06 00 19 D9 77 C8 DE 3C 45 35 52 B0 E8 F1 06 96 [12:00:25]CheckFolder [12:00:25]dirname=/storage/ofd_packets [12:00:25]CheckFolder done [12:00:25]ProducePacketName [12:00:25]name=ofd_packets/00187704 [12:00:25]NVStorageSaveData ofd_packets/00187704 [12:00:25]File name is /storage/ofd_packets/00187704 [12:00:25]Write 307 bytes [12:00:25]NVStorageSaveData done [12:00:25]OFDSenderStorePacket done [12:00:25]KKMCreateOFDPacket done [12:00:25]NVStorageSaveData kkm_last_timestamp [12:00:25]File name is /storage/kkm_last_timestamp [12:00:25]Write 4 bytes [12:00:25]NVStorageSaveData done [12:00:25]ExternCall_PrintAddStr [12:00:25]wPrintStart [12:00:25]Write to MH i2c: 01 00 00 9B 4F EA [12:00:25]Write i2c OK [12:00:25]MH_I2C_Read... [12:00:25]Read from MH i2c: 01 [12:00:25]MH_I2C_Read... [12:00:25]Read from MH i2c: 01 07 00 [12:00:25]MH_I2C_Read... [12:00:25]Read from MH i2c: 01 07 00 9B 4F 00 00 00 00 00 FF 0F FF [12:00:25]RasterBufferAndPrint [12:00:25]line Счет N : (1)209756 [12:00:25]line ИНН: 02508201610067 [12:00:25]line Контрольно-Кассовый Чек [12:00:25]line ПРОДАЖА [12:00:25]line ТРК (МРК, ГНК) : 21 [12:00:25]line Товар: 2710194210 [12:00:25]line D-ENERGY ДТ-К-5 [12:00:25]line 25.910 * 77.20 [12:00:25]line = 2000.25 [12:00:25]line НДС 12% НСП 1% [12:00:25]line > о реализуемом товаре [12:00:25]line ОКРУГЛЕНИЕ: -0.25 [12:00:25]line ИТОГО: 2000.00 [12:00:25]line Внесено: 2000.00 [12:00:25]line СДАЧА: 0.00 [12:00:25]line НСП 1% : 17.70 [12:00:25]line НДС 12% : 212.42 [12:00:25]line Наличными: 2000.00 [12:00:25]line Безнал.: 0.00 [12:00:25]line Место: АЗС № 86 "Партнер Нефть" [12:00:25]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [12:00:25]line СНО: Общий режим [12:00:25]line Чек 168 21.10.2024 12:00 [12:00:25]line Смена: 460 ФФД: 1.0 [12:00:25]line ЗНМ: 0300000155 [12:00:25]line РНМ: 0000000000100030 [12:00:25]line Версия ККМ: 001 [12:00:25]line ФМ: 0000000000965340 [12:00:25]line ФД: 187704 [12:00:25]line ФПД: 28421808250428 [12:00:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T120028&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187704&fm=28421808250428&tin=02508201610067®Number=0000000000100030&sum=200000 [12:00:25]written 0, free lines is 4095 [12:00:26]OFD Sender: Processing packet 187704 [packets to send 1062, broken 1061] [12:00:26]ProducePacketName [12:00:26]name=ofd_packets/00187704 [12:00:26]OFD Sender: To server: pG, [12:00:26]CommunicateWithHost lk.salyk.kg:30040 [12:00:26]ConnectInit lk.salyk.kg [12:00:26]Connected sock=10 [12:00:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 0F 2D 0D 01 C6 95 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 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 36 65 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A8 00 00 00 F4 03 04 00 5C 42 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 38 DD 02 00 35 04 06 00 19 D9 77 C8 DE 3C 45 35 52 B0 E8 F1 06 96 [12:00:26]Write to MH i2c: 01 00 00 C6 4F 15 [12:00:26]Write i2c OK [12:00:26]MH_I2C_Read... [12:00:26]Read from MH i2c: 01 [12:00:26]MH_I2C_Read... [12:00:26]Read from MH i2c: 01 07 00 [12:00:26]MH_I2C_Read... [12:00:26]Read from MH i2c: 01 07 00 C6 4F 00 00 00 00 00 78 0C A0 [12:00:26]RasterBufferAndPrint [12:00:26]line [12:00:26]line [12:00:26]line [12:00:26]line [12:00:26]line [12:00:26]written 0, free lines is 3195 [12:00:26]MH_Cut [12:00:26]Write to MH i2c: D1 01 00 CD 4F 01 EE [12:00:26]Write i2c OK [12:00:26]MH_I2C_Read... [12:00:26]Read from MH i2c: D1 [12:00:26]MH_I2C_Read... [12:00:26]Read from MH i2c: D1 01 00 [12:00:26]MH_I2C_Read... [12:00:26]Read from MH i2c: D1 01 00 CD 4F 00 ED [12:00:26]Write to MH i2c: 01 00 00 CE 4F 1D [12:00:26]Write i2c OK [12:00:26]MH_I2C_Read... [12:00:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 38 09 47 00 2C 22 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 38 DD 02 00 F4 03 04 00 4B EC 15 67 B6 04 01 00 00 12 71 27 07 54 EA FD 8F [12:00:26]CommunicateWithHost err = 0 [12:00:26]CheckOFDResponse [12:00:26]1017 (14) - 77093643461234 [12:00:26]1041 (16) - 0000000000965340 [12:00:26]1040 (4) - 187704 [12:00:26]1012 (4) - 21.10.2024 05:53 [12:00:26]1206 (1) - 0 [12:00:26]OFD Sender: Remove packet 187704 [12:00:26]ProducePacketName [12:00:26]name=ofd_packets/00187704 [12:00:26]NVStorageDeleteData [12:00:27]OFD Sender: No OFD packet to send [12:00:27]*** Cut start [12:00:27]*** Partial cut [12:00:27]*** CUTSNS_PIN = 1 [12:00:27]*** CUTSNS_PIN = 0 [12:00:27]*** Brake cut motor [12:00:28]Read from MH i2c: 01 [12:00:28]MH_I2C_Read... [12:00:28]*** Stop cut motor [12:00:28]*** Cut end [12:00:28]Read from MH i2c: 01 07 00 [12:00:28]MH_I2C_Read... [12:00:28]Read from MH i2c: 01 07 00 CE 4F 00 00 00 00 00 FF 0F 32 [12:00:28]process_action close_receipt done [12:00:28]requested_data is exist [12:00:28]produce_requested_data [12:00:28]requested_item fm.sn is exist - process it [12:00:28]wFMCommunicate request_size=4 [12:00:28]MH_SAM_APDU [12:00:28]CAPDU: 80 11 00 00 [12:00:28]Write to MH i2c: E2 08 00 CF 4F 80 11 00 00 00 00 00 00 98 [12:00:28]Write i2c OK [12:00:28]MH_I2C_Read... [12:00:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:00:28]Read from MH i2c: E2 [12:00:28]MH_I2C_Read... [12:00:28]Read from MH i2c: E2 17 00 [12:00:28]MH_I2C_Read... [12:00:28]Read from MH i2c: E2 17 00 CF 4F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 E6 [12:00:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [12:00:28]wFMCommunicate OK [12:00:28]requested_item fd.num is exist - process it [12:00:28]SAM_PROTO_GetFieldsCounters [12:00:28]wFMCommunicate request_size=4 [12:00:28]MH_SAM_APDU [12:00:28]CAPDU: 80 13 00 00 [12:00:28]Write to MH i2c: E2 08 00 D0 4F 80 13 00 00 00 00 00 00 9B [12:00:28]Write i2c OK [12:00:28]MH_I2C_Read... [12:00:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:00:28]Read from MH i2c: E2 [12:00:28]MH_I2C_Read... [12:00:28]Read from MH i2c: E2 62 00 [12:00:28]MH_I2C_Read... [12:00:28]Read from MH i2c: E2 62 00 D0 4F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 38 DD 02 00 0E 04 04 00 CC 01 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 7E [12:00:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 38 DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 A8 00 00 00 5E 04 04 00 A8 00 00 00 57 04 04 00 A9 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:00:28]wFMCommunicate OK [12:00:28]SAM_PROTO_GetFieldsCounters done [12:00:28]requested_item shift.num is exist - process it [12:00:28]requested_item shift.opened is exist - process it [12:00:28]req_shift_opened [12:00:28]FM_GetShiftState [12:00:28]SAM_PROTO_GetShiftState [12:00:28]wFMCommunicate request_size=4 [12:00:28]MH_SAM_APDU [12:00:28]CAPDU: 80 13 01 00 [12:00:28]Write to MH i2c: E2 08 00 D1 4F 80 13 01 00 00 00 00 00 9D [12:00:28]Write i2c OK [12:00:28]MH_I2C_Read... [12:00:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:00:28]Read from MH i2c: E2 [12:00:28]MH_I2C_Read... [12:00:28]Read from MH i2c: E2 0E 00 [12:00:28]MH_I2C_Read... [12:00:28]Read from MH i2c: E2 0E 00 D1 4F 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 FC [12:00:28]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [12:00:28]wFMCommunicate OK [12:00:28]SAM_PROTO_GetShiftState done [12:00:28]FM_GetShiftState done [12:00:28]req_shift_opened done [12:00:28]requested_item shift.open_date is exist - process it [12:00:28]req_shift_open_date [12:00:28]req_shift_open_date done [12:00:28]produce_requested_data done [12:00:28]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187704,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [12:00:28]process_action_free close_receipt [12:00:28]json_value_free [12:00:28]json_value_free done [12:00:28]process_json_proto returns [12:00:28]Send response to host [12:00:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187704,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [12:00:28]free response buf [12:00:28]execute_script done [12:00:28]execute_script returns [12:00:28]free content buf [12:00:28]Sock 8.Close socket [12:00:28]Sock 8.Thread stoped [12:00:32]OFD Sender: No OFD packet to send [12:00:37]OFD Sender: No OFD packet to send [12:00:42]OFD Sender: No OFD packet to send [12:00:47]OFD Sender: No OFD packet to send [12:00:52]OFD Sender: No OFD packet to send [12:00:57]OFD Sender: No OFD packet to send [12:01:02]OFD Sender: No OFD packet to send [12:01:07]OFD Sender: No OFD packet to send [12:01:12]OFD Sender: No OFD packet to send [12:01:17]OFD Sender: No OFD packet to send [12:01:22]OFD Sender: No OFD packet to send [12:01:27]OFD Sender: No OFD packet to send [12:01:32]OFD Sender: No OFD packet to send [12:01:37]OFD Sender: No OFD packet to send [12:01:42]OFD Sender: No OFD packet to send [12:01:47]OFD Sender: No OFD packet to send [12:01:52]OFD Sender: No OFD packet to send [12:01:57]OFD Sender: No OFD packet to send [12:02:02]OFD Sender: No OFD packet to send [12:02:07]OFD Sender: No OFD packet to send [12:02:12]OFD Sender: No OFD packet to send [12:02:17]OFD Sender: No OFD packet to send [12:02:22]OFD Sender: No OFD packet to send [12:02:27]OFD Sender: No OFD packet to send [12:02:32]OFD Sender: No OFD packet to send [12:02:37]OFD Sender: No OFD packet to send [12:02:42]OFD Sender: No OFD packet to send [12:02:47]OFD Sender: No OFD packet to send [12:02:52]OFD Sender: No OFD packet to send [12:02:57]OFD Sender: No OFD packet to send [12:03:02]OFD Sender: No OFD packet to send [12:03:07]OFD Sender: No OFD packet to send [12:03:12]OFD Sender: No OFD packet to send [12:03:17]OFD Sender: No OFD packet to send [12:03:22]OFD Sender: No OFD packet to send [12:03:27]OFD Sender: No OFD packet to send [12:03:32]OFD Sender: No OFD packet to send [12:03:37]OFD Sender: No OFD packet to send [12:03:42]OFD Sender: No OFD packet to send [12:03:47]OFD Sender: No OFD packet to send [12:03:52]OFD Sender: No OFD packet to send [12:03:58]OFD Sender: No OFD packet to send [12:04:03]OFD Sender: No OFD packet to send [12:04:08]OFD Sender: No OFD packet to send [12:04:13]OFD Sender: No OFD packet to send [12:04:18]OFD Sender: No OFD packet to send [12:04:23]OFD Sender: No OFD packet to send [12:04:28]OFD Sender: No OFD packet to send [12:04:33]OFD Sender: No OFD packet to send [12:04:38]OFD Sender: No OFD packet to send [12:04:43]OFD Sender: No OFD packet to send [12:04:48]OFD Sender: No OFD packet to send [12:04:53]OFD Sender: No OFD packet to send [12:04:58]OFD Sender: No OFD packet to send [12:05:03]OFD Sender: No OFD packet to send [12:05:08]OFD Sender: No OFD packet to send [12:05:13]OFD Sender: No OFD packet to send [12:05:18]OFD Sender: No OFD packet to send [12:05:23]OFD Sender: No OFD packet to send [12:05:28]OFD Sender: No OFD packet to send [12:05:33]OFD Sender: No OFD packet to send [12:05:38]OFD Sender: No OFD packet to send [12:05:43]OFD Sender: No OFD packet to send [12:05:48]OFD Sender: No OFD packet to send [12:05:53]OFD Sender: No OFD packet to send [12:05:58]OFD Sender: No OFD packet to send [12:06:03]OFD Sender: No OFD packet to send [12:06:08]accept exits with 9 [12:06:08]New connection [12:06:08]New thread 3067014500 created [12:06:08]Thread 3067157860 joined [12:06:08]Waiting for new connection... [12:06:08] Sock 9.Parse request [12:06:08]Sock 9.Check first char [12:06:08]Sock 9.First char is OK [12:06:08]request: POST /json_proto HTTP/1.0 [12:06:08]Method: POST [12:06:08]URL: /json_proto [12:06:08]Method is POST - this is cgi request [12:06:08]url: /json_proto [12:06:08]query_string will be loaded in cgi processing [12:06:08]execute_cgi json_proto POST (null) [12:06:08]execute_cgi path=json_proto method=POST [12:06:08]POST find Content-Length [12:06:08]Host: 172.17.42.131:8080 [12:06:08]Content-Length: 682 [12:06:08]Content-Type: application/json [12:06:08] [12:06:08]POST finish read [12:06:08]Found Content-Length = 682 [12:06:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209757", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "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:06:08]execute_script... [12:06: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)209757", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "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:06:08]POST & json_proto [12:06:08]process_json_proto [12:06:08]json parsed OK: [12:06:08]protocol is kg_v1.0 [12:06:08]action value=close_receipt [12:06:08]process_action close_receipt [12:06:08]cmd_close_receipt [12:06:08]MH_GetDate [12:06:08]Write to MH i2c: F0 00 00 D2 4F 10 [12:06:08]Write i2c OK [12:06:08]MH_I2C_Read... [12:06:08]Read from MH i2c: F0 [12:06:08]MH_I2C_Read... [12:06:08]Read from MH i2c: F0 09 00 [12:06:08]MH_I2C_Read... [12:06:08]Read from MH i2c: F0 09 00 D2 4F 00 B4 43 16 67 A0 18 CA 66 75 [12:06:08]GetLastDocTimeStamp 1729512028 [12:06:08]current date 1729512372 [12:06:08]FM_GetShiftState [12:06:08]SAM_PROTO_GetShiftState [12:06:08]wFMCommunicate request_size=4 [12:06:08]MH_SAM_APDU [12:06:08]CAPDU: 80 13 01 00 [12:06:08]Write to MH i2c: E2 08 00 D3 4F 80 13 01 00 00 00 00 00 9F [12:06:08]Write i2c OK [12:06:08]MH_I2C_Read... [12:06:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:06:08]Read from MH i2c: E2 [12:06:08]MH_I2C_Read... [12:06:08]Read from MH i2c: E2 0E 00 [12:06:08]MH_I2C_Read... [12:06:08]Read from MH i2c: E2 0E 00 D3 4F 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 FE [12:06:08]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [12:06:08]wFMCommunicate OK [12:06:08]SAM_PROTO_GetShiftState done [12:06:08]FM_GetShiftState done [12:06:08]opened in 1729469754 [12:06:08]opened+sec_in_day 1729556154 [12:06:08]quantity*price = 100015 [12:06:08]sum+1 = 100017 [12:06:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 169 21.10.2024 12:06 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 187705 ФПД: 17977484899555 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T120612&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187705&fm=17977484899555&tin=02508201610067®Number=0000000000100030&sum=100000 [12:06:09]StoreToDocumentArchive [12:06:09]shift 460 fd 187705 [12:06:09]save to /storage/0460/doc_00187705 [12:06:09]save last doc name /storage/0460/doc_00187705 to /storage/kkm_last_doc_name [12:06:09]save OK [12:06:09]Clear old archive folders... [12:06:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:06:09]tlvbuf is 011ACBB0 [12:06:09]SAM_PROTO_ClearQueue [12:06:09]wFMCommunicate request_size=4 [12:06:09]MH_SAM_APDU [12:06:09]CAPDU: 80 09 00 00 [12:06:09]Write to MH i2c: E2 08 00 E0 4F 80 09 00 00 00 00 00 00 A1 [12:06:09]Write i2c OK [12:06:09]MH_I2C_Read... [12:06:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:06:09]Read from MH i2c: E2 [12:06:09]MH_I2C_Read... [12:06:09]Read from MH i2c: E2 03 00 [12:06:09]MH_I2C_Read... [12:06:09]Read from MH i2c: E2 03 00 E0 4F 00 90 00 A3 [12:06:09]RAPDU: 90 00 [12:06:09]wFMCommunicate OK [12:06:09]SAM_PROTO_ClearQueue done [12:06:09]KKMCreateOFDPacket [12:06:09]OFDProtocolAddRootSTLVToBuf [12:06:09]FM_MakeSignedData [12:06:09]FM_MakeSignedData [12:06:09]SAM_PROTO_SignData [12:06:09]wFMCommunicate request_size=4 [12:06:09]MH_SAM_APDU [12:06:09]CAPDU: 80 0D 01 02 [12:06:09]Write to MH i2c: E2 08 00 E1 4F 80 0D 01 02 00 00 00 00 A9 [12:06:09]Write i2c OK [12:06:09]MH_I2C_Read... [12:06:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:06:09]Read from MH i2c: E2 [12:06:09]MH_I2C_Read... [12:06:09]Read from MH i2c: E2 03 00 [12:06:09]MH_I2C_Read... [12:06:09]Read from MH i2c: E2 03 00 E1 4F 00 90 00 A4 [12:06:09]RAPDU: 90 00 [12:06:09]wFMCommunicate OK [12:06:09]wFMCommunicate request_size=255 [12:06:09]MH_SAM_APDU [12:06:09]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 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 A9 00 00 00 F4 03 04 00 B4 43 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 39 DD 02 00 35 04 06 00 10 [12:06:09]Write to MH i2c: E2 02 01 E2 4F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 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 A9 00 00 00 F4 03 04 00 B4 43 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 39 DD 02 00 35 04 06 00 10 00 00 28 [12:06:09]Write i2c OK [12:06:09]MH_I2C_Read... [12:06:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:06:09]Read from MH i2c: E2 [12:06:09]MH_I2C_Read... [12:06:09]Read from MH i2c: E2 03 00 [12:06:09]MH_I2C_Read... [12:06:09]Read from MH i2c: E2 03 00 E2 4F 00 90 00 A5 [12:06:09]RAPDU: 90 00 [12:06:09]wFMCommunicate OK [12:06:09]wFMCommunicate request_size=10 [12:06:09]MH_SAM_APDU [12:06:09]CAPDU: 80 0D 02 02 05 59 B5 99 F4 E3 [12:06:09]Write to MH i2c: E2 0D 00 E3 4F 80 0D 02 02 05 00 59 B5 99 F4 E3 00 00 34 [12:06:09]Write i2c OK [12:06:09]MH_I2C_Read... [12:06:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:06:09]Read from MH i2c: E2 [12:06:09]MH_I2C_Read... [12:06:09]Read from MH i2c: E2 03 00 [12:06:09]MH_I2C_Read... [12:06:09]Read from MH i2c: E2 03 00 E3 4F 00 90 00 A6 [12:06:09]RAPDU: 90 00 [12:06:09]wFMCommunicate OK [12:06:09]wFMCommunicate request_size=4 [12:06:09]MH_SAM_APDU [12:06:09]CAPDU: 80 0D 03 02 [12:06:09]Write to MH i2c: E2 08 00 E4 4F 80 0D 03 02 00 00 00 00 AE [12:06:09]Write i2c OK [12:06:09]MH_I2C_Read... [12:06:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:06:10]Read from MH i2c: E2 [12:06:10]MH_I2C_Read... [12:06:10]Read from MH i2c: E2 0B 00 [12:06:10]MH_I2C_Read... [12:06:10]Read from MH i2c: E2 0B 00 E4 4F 00 D1 C9 6A 6A CB AE 70 50 90 00 56 [12:06:10]RAPDU: D1 C9 6A 6A CB AE 70 50 90 00 [12:06:10]wFMCommunicate OK [12:06:10]SAM_PROTO_SignData done [12:06:10]FM_MakeSignedData done [12:06:10]CreateOFDProtocolMessage [12:06:10]wFMCommunicate request_size=4 [12:06:10]MH_SAM_APDU [12:06:10]CAPDU: 80 11 00 00 [12:06:10]Write to MH i2c: E2 08 00 E5 4F 80 11 00 00 00 00 00 00 AE [12:06:10]Write i2c OK [12:06:10]MH_I2C_Read... [12:06:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:06:10]Read from MH i2c: E2 [12:06:10]MH_I2C_Read... [12:06:10]Read from MH i2c: E2 17 00 [12:06:10]MH_I2C_Read... [12:06:10]Read from MH i2c: E2 17 00 E5 4F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 FC [12:06:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [12:06:10]wFMCommunicate OK [12:06:10]CreateOFDProtocolMessage done [12:06:10]OFDSenderStorePacket 187705 [12:06:10]StoreOFDPacket docnum=187705 [12:06:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 36 2A 07 01 A5 E4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 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 A9 00 00 00 F4 03 04 00 B4 43 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 39 DD 02 00 35 04 06 00 10 59 B5 99 F4 E3 D1 C9 6A 6A CB AE 70 50 [12:06:10]CheckFolder [12:06:10]dirname=/storage/ofd_packets [12:06:10]CheckFolder done [12:06:10]ProducePacketName [12:06:10]name=ofd_packets/00187705 [12:06:10]NVStorageSaveData ofd_packets/00187705 [12:06:10]File name is /storage/ofd_packets/00187705 [12:06:10]Write 301 bytes [12:06:10]NVStorageSaveData done [12:06:10]OFDSenderStorePacket done [12:06:10]KKMCreateOFDPacket done [12:06:10]NVStorageSaveData kkm_last_timestamp [12:06:10]File name is /storage/kkm_last_timestamp [12:06:10]Write 4 bytes [12:06:10]NVStorageSaveData done [12:06:10]ExternCall_PrintAddStr [12:06:10]wPrintStart [12:06:10]Write to MH i2c: 01 00 00 E6 4F 35 [12:06:10]Write i2c OK [12:06:10]MH_I2C_Read... [12:06:10]Read from MH i2c: 01 [12:06:10]MH_I2C_Read... [12:06:10]Read from MH i2c: 01 07 00 [12:06:10]MH_I2C_Read... [12:06:10]Read from MH i2c: 01 07 00 E6 4F 00 00 00 00 00 FF 0F 4A [12:06:10]RasterBufferAndPrint [12:06:10]line Счет N : (1)209757 [12:06:10]line ИНН: 02508201610067 [12:06:10]line Контрольно-Кассовый Чек [12:06:10]line ПРОДАЖА [12:06:10]line ТРК (МРК, ГНК) : 32 [12:06:10]line Товар: 2710124130 [12:06:10]line Аи-92-К-3 [12:06:10]line 14.950 * 66.90 [12:06:10]line = 1000.16 [12:06:10]line НДС 12% НСП 1% [12:06:10]line > о реализуемом товаре [12:06:10]line ОКРУГЛЕНИЕ: -0.16 [12:06:10]line ИТОГО: 1000.00 [12:06:10]line Внесено: 1000.00 [12:06:10]line СДАЧА: 0.00 [12:06:10]line НСП 1% : 8.85 [12:06:10]line НДС 12% : 106.21 [12:06:10]line Наличными: 1000.00 [12:06:10]line Безнал.: 0.00 [12:06:10]line Место: АЗС № 86 "Партнер Нефть" [12:06:10]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [12:06:10]line СНО: Общий режим [12:06:10]line Чек 169 21.10.2024 12:06 [12:06:10]line Смена: 460 ФФД: 1.0 [12:06:10]line ЗНМ: 0300000155 [12:06:10]line РНМ: 0000000000100030 [12:06:10]line Версия ККМ: 001 [12:06:10]line ФМ: 0000000000965340 [12:06:10]line ФД: 187705 [12:06:10]line ФПД: 17977484899555 [12:06:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T120612&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187705&fm=17977484899555&tin=02508201610067®Number=0000000000100030&sum=100000 [12:06:10]written 0, free lines is 4095 [12:06:10]OFD Sender: Processing packet 187705 [packets to send 1062, broken 1061] [12:06:10]ProducePacketName [12:06:10]name=ofd_packets/00187705 [12:06:10]OFD Sender: To server: pG, [12:06:10]CommunicateWithHost lk.salyk.kg:30040 [12:06:10]ConnectInit lk.salyk.kg [12:06:10]Connected sock=10 [12:06:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 36 2A 07 01 A5 E4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 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 A9 00 00 00 F4 03 04 00 B4 43 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 39 DD 02 00 35 04 06 00 10 59 B5 99 F4 E3 D1 C9 6A 6A CB AE 70 50 [12:06:10]Write to MH i2c: 01 00 00 11 50 61 [12:06:10]Write i2c OK [12:06:10]MH_I2C_Read... [12:06:10]Read from MH i2c: 01 [12:06:10]MH_I2C_Read... [12:06:10]Read from MH i2c: 01 07 00 [12:06:10]MH_I2C_Read... [12:06:10]Read from MH i2c: 01 07 00 11 50 00 00 00 00 00 7A 0C EE [12:06:10]RasterBufferAndPrint [12:06:10]line [12:06:10]line [12:06:10]line [12:06:10]line [12:06:10]line [12:06:10]written 0, free lines is 3197 [12:06:10]MH_Cut [12:06:10]Write to MH i2c: D1 01 00 18 50 01 3A [12:06:10]Write i2c OK [12:06:10]MH_I2C_Read... [12:06:10]Read from MH i2c: D1 [12:06:10]MH_I2C_Read... [12:06:10]Read from MH i2c: D1 01 00 [12:06:10]MH_I2C_Read... [12:06:10]Read from MH i2c: D1 01 00 18 50 00 39 [12:06:10]Write to MH i2c: 01 00 00 19 50 69 [12:06:10]Write i2c OK [12:06:10]MH_I2C_Read... [12:06:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 09 8C 47 00 6B C7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 39 DD 02 00 F4 03 04 00 A3 ED 15 67 B6 04 01 00 00 3D A7 9D 6E 23 59 1C 9C [12:06:10]CommunicateWithHost err = 0 [12:06:10]CheckOFDResponse [12:06:10]1017 (14) - 77093643461234 [12:06:10]1041 (16) - 0000000000965340 [12:06:10]1040 (4) - 187705 [12:06:10]1012 (4) - 21.10.2024 05:58 [12:06:10]1206 (1) - 0 [12:06:10]OFD Sender: Remove packet 187705 [12:06:10]ProducePacketName [12:06:10]name=ofd_packets/00187705 [12:06:10]NVStorageDeleteData [12:06:11]OFD Sender: No OFD packet to send [12:06:11]*** Cut start [12:06:11]*** Partial cut [12:06:11]*** CUTSNS_PIN = 1 [12:06:11]*** CUTSNS_PIN = 0 [12:06:11]*** Brake cut motor [12:06:12]Read from MH i2c: 01 [12:06:12]MH_I2C_Read... [12:06:12]*** Stop cut motor [12:06:12]*** Cut end [12:06:12]Read from MH i2c: 01 07 00 [12:06:12]MH_I2C_Read... [12:06:12]Read from MH i2c: 01 07 00 19 50 00 00 00 00 00 FF 0F 7E [12:06:12]process_action close_receipt done [12:06:12]requested_data is exist [12:06:12]produce_requested_data [12:06:12]requested_item fm.sn is exist - process it [12:06:12]wFMCommunicate request_size=4 [12:06:12]MH_SAM_APDU [12:06:12]CAPDU: 80 11 00 00 [12:06:12]Write to MH i2c: E2 08 00 1A 50 80 11 00 00 00 00 00 00 E4 [12:06:12]Write i2c OK [12:06:12]MH_I2C_Read... [12:06:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:06:12]Read from MH i2c: E2 [12:06:12]MH_I2C_Read... [12:06:12]Read from MH i2c: E2 17 00 [12:06:12]MH_I2C_Read... [12:06:12]Read from MH i2c: E2 17 00 1A 50 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 32 [12:06:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [12:06:12]wFMCommunicate OK [12:06:12]requested_item fd.num is exist - process it [12:06:12]SAM_PROTO_GetFieldsCounters [12:06:12]wFMCommunicate request_size=4 [12:06:12]MH_SAM_APDU [12:06:12]CAPDU: 80 13 00 00 [12:06:12]Write to MH i2c: E2 08 00 1B 50 80 13 00 00 00 00 00 00 E7 [12:06:12]Write i2c OK [12:06:12]MH_I2C_Read... [12:06:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:06:12]Read from MH i2c: E2 [12:06:12]MH_I2C_Read... [12:06:12]Read from MH i2c: E2 62 00 [12:06:12]MH_I2C_Read... [12:06:12]Read from MH i2c: E2 62 00 1B 50 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 39 DD 02 00 0E 04 04 00 CC 01 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 CE [12:06:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 39 DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 A9 00 00 00 5E 04 04 00 A9 00 00 00 57 04 04 00 AA 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:06:12]wFMCommunicate OK [12:06:12]SAM_PROTO_GetFieldsCounters done [12:06:12]requested_item shift.num is exist - process it [12:06:12]requested_item shift.opened is exist - process it [12:06:12]req_shift_opened [12:06:12]FM_GetShiftState [12:06:12]SAM_PROTO_GetShiftState [12:06:12]wFMCommunicate request_size=4 [12:06:12]MH_SAM_APDU [12:06:12]CAPDU: 80 13 01 00 [12:06:12]Write to MH i2c: E2 08 00 1C 50 80 13 01 00 00 00 00 00 E9 [12:06:12]Write i2c OK [12:06:12]MH_I2C_Read... [12:06:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:06:12]Read from MH i2c: E2 [12:06:12]MH_I2C_Read... [12:06:12]Read from MH i2c: E2 0E 00 [12:06:12]MH_I2C_Read... [12:06:12]Read from MH i2c: E2 0E 00 1C 50 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 48 [12:06:12]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [12:06:12]wFMCommunicate OK [12:06:12]SAM_PROTO_GetShiftState done [12:06:12]FM_GetShiftState done [12:06:12]req_shift_opened done [12:06:12]requested_item shift.open_date is exist - process it [12:06:12]req_shift_open_date [12:06:12]req_shift_open_date done [12:06:12]produce_requested_data done [12:06:12]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187705,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [12:06:12]process_action_free close_receipt [12:06:12]json_value_free [12:06:12]json_value_free done [12:06:12]process_json_proto returns [12:06:12]Send response to host [12:06:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187705,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [12:06:12]free response buf [12:06:12]execute_script done [12:06:12]execute_script returns [12:06:12]free content buf [12:06:12]Sock 9.Close socket [12:06:12]Sock 9.Thread stoped [12:06:16]OFD Sender: No OFD packet to send [12:06:21]OFD Sender: No OFD packet to send [12:06:26]OFD Sender: No OFD packet to send [12:06:31]OFD Sender: No OFD packet to send [12:06:36]OFD Sender: No OFD packet to send [12:06:41]OFD Sender: No OFD packet to send [12:06:46]OFD Sender: No OFD packet to send [12:06:51]OFD Sender: No OFD packet to send [12:06:56]OFD Sender: No OFD packet to send [12:07:01]OFD Sender: No OFD packet to send [12:07:06]OFD Sender: No OFD packet to send [12:07:11]OFD Sender: No OFD packet to send [12:07:16]OFD Sender: No OFD packet to send [12:07:21]OFD Sender: No OFD packet to send [12:07:26]OFD Sender: No OFD packet to send [12:07:31]OFD Sender: No OFD packet to send [12:07:36]OFD Sender: No OFD packet to send [12:07:41]OFD Sender: No OFD packet to send [12:07:46]OFD Sender: No OFD packet to send [12:07:51]OFD Sender: No OFD packet to send [12:07:56]OFD Sender: No OFD packet to send [12:07:57]accept exits with 8 [12:07:57]New connection [12:07:57]New thread 3067157860 created [12:07:57]Thread 3067014500 joined [12:07:57]Waiting for new connection... [12:07:57] Sock 8.Parse request [12:07:57]Sock 8.Check first char [12:07:57]Sock 8.First char is OK [12:07:57]request: POST /json_proto HTTP/1.0 [12:07:57]Method: POST [12:07:57]URL: /json_proto [12:07:57]Method is POST - this is cgi request [12:07:57]url: /json_proto [12:07:57]query_string will be loaded in cgi processing [12:07:57]execute_cgi json_proto POST (null) [12:07:57]execute_cgi path=json_proto method=POST [12:07:57]POST find Content-Length [12:07:57]Host: 172.17.42.131:8080 [12:07:57]Content-Length: 688 [12:07:57]Content-Type: application/json [12:07:57] [12:07:57]POST finish read [12:07:57]Found Content-Length = 688 [12:07:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209758", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 28.500, "sum" : 2200.20, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2200.00, "total" : 2200.00, "payments": [ { "type": 0, "sum" : 2200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:07:57]execute_script... [12:07: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)209758", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 28.500, "sum" : 2200.20, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2200.00, "total" : 2200.00, "payments": [ { "type": 0, "sum" : 2200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:07:57]POST & json_proto [12:07:57]process_json_proto [12:07:57]json parsed OK: [12:07:57]protocol is kg_v1.0 [12:07:57]action value=close_receipt [12:07:57]process_action close_receipt [12:07:57]cmd_close_receipt [12:07:57]MH_GetDate [12:07:57]Write to MH i2c: F0 00 00 1D 50 5C [12:07:57]Write i2c OK [12:07:57]MH_I2C_Read... [12:07:57]Read from MH i2c: F0 [12:07:57]MH_I2C_Read... [12:07:57]Read from MH i2c: F0 09 00 [12:07:57]MH_I2C_Read... [12:07:57]Read from MH i2c: F0 09 00 1D 50 00 21 44 16 67 A0 18 CA 66 2F [12:07:57]GetLastDocTimeStamp 1729512372 [12:07:57]current date 1729512481 [12:07:57]FM_GetShiftState [12:07:57]SAM_PROTO_GetShiftState [12:07:57]wFMCommunicate request_size=4 [12:07:57]MH_SAM_APDU [12:07:57]CAPDU: 80 13 01 00 [12:07:57]Write to MH i2c: E2 08 00 1E 50 80 13 01 00 00 00 00 00 EB [12:07:57]Write i2c OK [12:07:57]MH_I2C_Read... [12:07:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:07:57]Read from MH i2c: E2 [12:07:57]MH_I2C_Read... [12:07:57]Read from MH i2c: E2 0E 00 [12:07:57]MH_I2C_Read... [12:07:57]Read from MH i2c: E2 0E 00 1E 50 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 4A [12:07:57]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [12:07:57]wFMCommunicate OK [12:07:57]SAM_PROTO_GetShiftState done [12:07:57]FM_GetShiftState done [12:07:57]opened in 1729469754 [12:07:57]opened+sec_in_day 1729556154 [12:07:57]quantity*price = 220020 [12:07:57]sum+1 = 220021 [12:07:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.20 ИТОГО: 2200.00 Внесено: 2200.00 СДАЧА: 0.00 НСП 1% : 19.47 НДС 12% : 233.65 Наличными: 2200.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 170 21.10.2024 12:08 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 187706 ФПД: 21629279637545 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T120801&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187706&fm=21629279637545&tin=02508201610067®Number=0000000000100030&sum=220000 [12:07:58]StoreToDocumentArchive [12:07:58]shift 460 fd 187706 [12:07:58]save to /storage/0460/doc_00187706 [12:07:58]save last doc name /storage/0460/doc_00187706 to /storage/kkm_last_doc_name [12:07:58]save OK [12:07:58]Clear old archive folders... [12:07:58]ProcessDocumentItem done err = 0, tmpTLVsize=257 [12:07:58]tlvbuf is 011ACA30 [12:07:58]SAM_PROTO_ClearQueue [12:07:58]wFMCommunicate request_size=4 [12:07:58]MH_SAM_APDU [12:07:58]CAPDU: 80 09 00 00 [12:07:58]Write to MH i2c: E2 08 00 2B 50 80 09 00 00 00 00 00 00 ED [12:07:58]Write i2c OK [12:07:58]MH_I2C_Read... [12:07:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:07:58]Read from MH i2c: E2 [12:07:58]MH_I2C_Read... [12:07:58]Read from MH i2c: E2 03 00 [12:07:58]MH_I2C_Read... [12:07:58]Read from MH i2c: E2 03 00 2B 50 00 90 00 EF [12:07:58]RAPDU: 90 00 [12:07:58]wFMCommunicate OK [12:07:58]SAM_PROTO_ClearQueue done [12:07:58]KKMCreateOFDPacket [12:07:58]OFDProtocolAddRootSTLVToBuf [12:07:58]FM_MakeSignedData [12:07:58]FM_MakeSignedData [12:07:58]SAM_PROTO_SignData [12:07:58]wFMCommunicate request_size=4 [12:07:58]MH_SAM_APDU [12:07:58]CAPDU: 80 0D 01 02 [12:07:58]Write to MH i2c: E2 08 00 2C 50 80 0D 01 02 00 00 00 00 F5 [12:07:58]Write i2c OK [12:07:58]MH_I2C_Read... [12:07:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:07:58]Read from MH i2c: E2 [12:07:58]MH_I2C_Read... [12:07:58]Read from MH i2c: E2 03 00 [12:07:58]MH_I2C_Read... [12:07:58]Read from MH i2c: E2 03 00 2C 50 00 90 00 F0 [12:07:58]RAPDU: 90 00 [12:07:58]wFMCommunicate OK [12:07:58]wFMCommunicate request_size=255 [12:07:58]MH_SAM_APDU [12:07:58]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 54 6F 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 74 5B 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 5B 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9B 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 45 5B 00 00 00 00 07 04 06 00 60 5B 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AA 00 00 00 F4 03 04 00 21 44 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 3A DD 02 [12:07:58]Write to MH i2c: E2 02 01 2D 50 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 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 54 6F 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 74 5B 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 5B 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9B 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 45 5B 00 00 00 00 07 04 06 00 60 5B 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AA 00 00 00 F4 03 04 00 21 44 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 3A DD 02 00 00 7B [12:07:58]Write i2c OK [12:07:58]MH_I2C_Read... [12:07:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:07:59]Read from MH i2c: E2 [12:07:59]MH_I2C_Read... [12:07:59]Read from MH i2c: E2 03 00 [12:07:59]MH_I2C_Read... [12:07:59]Read from MH i2c: E2 03 00 2D 50 00 90 00 F1 [12:07:59]RAPDU: 90 00 [12:07:59]wFMCommunicate OK [12:07:59]wFMCommunicate request_size=16 [12:07:59]MH_SAM_APDU [12:07:59]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 13 AB F5 87 90 29 [12:07:59]Write to MH i2c: E2 13 00 2E 50 80 0D 02 02 0B 00 00 35 04 06 00 13 AB F5 87 90 29 00 00 40 [12:07:59]Write i2c OK [12:07:59]MH_I2C_Read... [12:07:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:07:59]Read from MH i2c: E2 [12:07:59]MH_I2C_Read... [12:07:59]Read from MH i2c: E2 03 00 [12:07:59]MH_I2C_Read... [12:07:59]Read from MH i2c: E2 03 00 2E 50 00 90 00 F2 [12:07:59]RAPDU: 90 00 [12:07:59]wFMCommunicate OK [12:07:59]wFMCommunicate request_size=4 [12:07:59]MH_SAM_APDU [12:07:59]CAPDU: 80 0D 03 02 [12:07:59]Write to MH i2c: E2 08 00 2F 50 80 0D 03 02 00 00 00 00 FA [12:07:59]Write i2c OK [12:07:59]MH_I2C_Read... [12:07:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:07:59]Read from MH i2c: E2 [12:07:59]MH_I2C_Read... [12:07:59]Read from MH i2c: E2 0B 00 [12:07:59]MH_I2C_Read... [12:07:59]Read from MH i2c: E2 0B 00 2F 50 00 2F 85 66 FD C4 DD 6E AC 90 00 CD [12:07:59]RAPDU: 2F 85 66 FD C4 DD 6E AC 90 00 [12:07:59]wFMCommunicate OK [12:07:59]SAM_PROTO_SignData done [12:07:59]FM_MakeSignedData done [12:07:59]CreateOFDProtocolMessage [12:07:59]wFMCommunicate request_size=4 [12:07:59]MH_SAM_APDU [12:07:59]CAPDU: 80 11 00 00 [12:07:59]Write to MH i2c: E2 08 00 30 50 80 11 00 00 00 00 00 00 FA [12:07:59]Write i2c OK [12:07:59]MH_I2C_Read... [12:07:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:07:59]Read from MH i2c: E2 [12:07:59]MH_I2C_Read... [12:07:59]Read from MH i2c: E2 17 00 [12:07:59]MH_I2C_Read... [12:07:59]Read from MH i2c: E2 17 00 30 50 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 48 [12:07:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [12:07:59]wFMCommunicate OK [12:07:59]CreateOFDProtocolMessage done [12:07:59]OFDSenderStorePacket 187706 [12:07:59]StoreOFDPacket docnum=187706 [12:07:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 B3 B6 0D 01 AE 52 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 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 54 6F 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 74 5B 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 5B 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9B 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 45 5B 00 00 00 00 07 04 06 00 60 5B 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AA 00 00 00 F4 03 04 00 21 44 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 3A DD 02 00 35 04 06 00 13 AB F5 87 90 29 2F 85 66 FD C4 DD 6E AC [12:07:59]CheckFolder [12:07:59]dirname=/storage/ofd_packets [12:07:59]CheckFolder done [12:07:59]ProducePacketName [12:07:59]name=ofd_packets/00187706 [12:07:59]NVStorageSaveData ofd_packets/00187706 [12:07:59]File name is /storage/ofd_packets/00187706 [12:07:59]Write 307 bytes [12:07:59]NVStorageSaveData done [12:07:59]OFDSenderStorePacket done [12:07:59]KKMCreateOFDPacket done [12:07:59]NVStorageSaveData kkm_last_timestamp [12:07:59]File name is /storage/kkm_last_timestamp [12:07:59]Write 4 bytes [12:07:59]NVStorageSaveData done [12:07:59]ExternCall_PrintAddStr [12:07:59]wPrintStart [12:07:59]Write to MH i2c: 01 00 00 31 50 81 [12:07:59]Write i2c OK [12:07:59]MH_I2C_Read... [12:07:59]Read from MH i2c: 01 [12:07:59]MH_I2C_Read... [12:07:59]Read from MH i2c: 01 07 00 [12:07:59]MH_I2C_Read... [12:07:59]Read from MH i2c: 01 07 00 31 50 00 00 00 00 00 FF 0F 96 [12:07:59]RasterBufferAndPrint [12:07:59]line Счет N : (1)209758 [12:07:59]line ИНН: 02508201610067 [12:07:59]line Контрольно-Кассовый Чек [12:07:59]line ПРОДАЖА [12:07:59]line ТРК (МРК, ГНК) : 11 [12:07:59]line Товар: 2710194210 [12:07:59]line D-ENERGY ДТ-К-5 [12:07:59]line 28.500 * 77.20 [12:07:59]line = 2200.20 [12:07:59]line НДС 12% НСП 1% [12:07:59]line > о реализуемом товаре [12:07:59]line ОКРУГЛЕНИЕ: -0.20 [12:07:59]line ИТОГО: 2200.00 [12:07:59]line Внесено: 2200.00 [12:07:59]line СДАЧА: 0.00 [12:07:59]line НСП 1% : 19.47 [12:07:59]line НДС 12% : 233.65 [12:07:59]line Наличными: 2200.00 [12:07:59]line Безнал.: 0.00 [12:07:59]line Место: АЗС № 86 "Партнер Нефть" [12:07:59]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [12:07:59]line СНО: Общий режим [12:07:59]line Чек 170 21.10.2024 12:08 [12:07:59]line Смена: 460 ФФД: 1.0 [12:07:59]line ЗНМ: 0300000155 [12:07:59]line РНМ: 0000000000100030 [12:07:59]line Версия ККМ: 001 [12:07:59]line ФМ: 0000000000965340 [12:07:59]line ФД: 187706 [12:07:59]line ФПД: 21629279637545 [12:07:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T120801&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187706&fm=21629279637545&tin=02508201610067®Number=0000000000100030&sum=220000 [12:07:59]written 0, free lines is 4095 [12:07:59]OFD Sender: Processing packet 187706 [packets to send 1062, broken 1061] [12:07:59]ProducePacketName [12:07:59]name=ofd_packets/00187706 [12:07:59]OFD Sender: To server: pG, [12:07:59]CommunicateWithHost lk.salyk.kg:30040 [12:07:59]ConnectInit lk.salyk.kg [12:07:59]Connected sock=10 [12:07:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 B3 B6 0D 01 AE 52 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 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 54 6F 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 74 5B 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 5B 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9B 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 45 5B 00 00 00 00 07 04 06 00 60 5B 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AA 00 00 00 F4 03 04 00 21 44 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 3A DD 02 00 35 04 06 00 13 AB F5 87 90 29 2F 85 66 FD C4 DD 6E AC [12:07:59]Write to MH i2c: 01 00 00 5C 50 AC [12:07:59]Write i2c OK [12:07:59]MH_I2C_Read... [12:07:59]Read from MH i2c: 01 [12:07:59]MH_I2C_Read... [12:07:59]Read from MH i2c: 01 07 00 [12:07:59]MH_I2C_Read... [12:07:59]Read from MH i2c: 01 07 00 5C 50 00 00 00 00 00 73 0C 32 [12:07:59]RasterBufferAndPrint [12:07:59]line [12:07:59]line [12:07:59]line [12:07:59]line [12:07:59]line [12:07:59]written 0, free lines is 3190 [12:07:59]MH_Cut [12:07:59]Write to MH i2c: D1 01 00 63 50 01 85 [12:07:59]Write i2c OK [12:07:59]MH_I2C_Read... [12:07:59]Read from MH i2c: D1 [12:07:59]MH_I2C_Read... [12:07:59]Read from MH i2c: D1 01 00 [12:07:59]MH_I2C_Read... [12:07:59]Read from MH i2c: D1 01 00 63 50 00 84 [12:07:59]Write to MH i2c: 01 00 00 64 50 B4 [12:07:59]Write i2c OK [12:07:59]MH_I2C_Read... [12:07:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 C9 C7 47 00 45 28 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 3A DD 02 00 F4 03 04 00 11 EE 15 67 B6 04 01 00 00 68 D2 A6 39 55 47 16 51 [12:07:59]CommunicateWithHost err = 0 [12:07:59]CheckOFDResponse [12:07:59]1017 (14) - 77093643461234 [12:07:59]1041 (16) - 0000000000965340 [12:07:59]1040 (4) - 187706 [12:07:59]1012 (4) - 21.10.2024 06:00 [12:07:59]1206 (1) - 0 [12:07:59]OFD Sender: Remove packet 187706 [12:07:59]ProducePacketName [12:07:59]name=ofd_packets/00187706 [12:07:59]NVStorageDeleteData [12:08:00]OFD Sender: No OFD packet to send [12:08:00]*** Cut start [12:08:00]*** Partial cut [12:08:00]*** CUTSNS_PIN = 1 [12:08:00]*** CUTSNS_PIN = 0 [12:08:01]*** Brake cut motor [12:08:01]Read from MH i2c: 01 [12:08:01]MH_I2C_Read... [12:08:01]*** Stop cut motor [12:08:01]*** Cut end [12:08:01]Read from MH i2c: 01 07 00 [12:08:01]MH_I2C_Read... [12:08:01]Read from MH i2c: 01 07 00 64 50 00 00 00 00 00 FF 0F C9 [12:08:01]process_action close_receipt done [12:08:01]requested_data is exist [12:08:01]produce_requested_data [12:08:01]requested_item fm.sn is exist - process it [12:08:01]wFMCommunicate request_size=4 [12:08:01]MH_SAM_APDU [12:08:01]CAPDU: 80 11 00 00 [12:08:01]Write to MH i2c: E2 08 00 65 50 80 11 00 00 00 00 00 00 2F [12:08:01]Write i2c OK [12:08:01]MH_I2C_Read... [12:08:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:08:01]Read from MH i2c: E2 [12:08:01]MH_I2C_Read... [12:08:01]Read from MH i2c: E2 17 00 [12:08:01]MH_I2C_Read... [12:08:01]Read from MH i2c: E2 17 00 65 50 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 7D [12:08:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [12:08:01]wFMCommunicate OK [12:08:01]requested_item fd.num is exist - process it [12:08:01]SAM_PROTO_GetFieldsCounters [12:08:01]wFMCommunicate request_size=4 [12:08:01]MH_SAM_APDU [12:08:01]CAPDU: 80 13 00 00 [12:08:01]Write to MH i2c: E2 08 00 66 50 80 13 00 00 00 00 00 00 32 [12:08:01]Write i2c OK [12:08:01]MH_I2C_Read... [12:08:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:08:01]Read from MH i2c: E2 [12:08:01]MH_I2C_Read... [12:08:01]Read from MH i2c: E2 62 00 [12:08:01]MH_I2C_Read... [12:08:01]Read from MH i2c: E2 62 00 66 50 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 3A DD 02 00 0E 04 04 00 CC 01 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 1D [12:08:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 3A DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 AA 00 00 00 5E 04 04 00 AA 00 00 00 57 04 04 00 AB 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:08:01]wFMCommunicate OK [12:08:01]SAM_PROTO_GetFieldsCounters done [12:08:01]requested_item shift.num is exist - process it [12:08:01]requested_item shift.opened is exist - process it [12:08:01]req_shift_opened [12:08:01]FM_GetShiftState [12:08:01]SAM_PROTO_GetShiftState [12:08:01]wFMCommunicate request_size=4 [12:08:01]MH_SAM_APDU [12:08:01]CAPDU: 80 13 01 00 [12:08:01]Write to MH i2c: E2 08 00 67 50 80 13 01 00 00 00 00 00 34 [12:08:01]Write i2c OK [12:08:01]MH_I2C_Read... [12:08:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:08:01]Read from MH i2c: E2 [12:08:01]MH_I2C_Read... [12:08:01]Read from MH i2c: E2 0E 00 [12:08:01]MH_I2C_Read... [12:08:01]Read from MH i2c: E2 0E 00 67 50 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 93 [12:08:01]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [12:08:01]wFMCommunicate OK [12:08:01]SAM_PROTO_GetShiftState done [12:08:01]FM_GetShiftState done [12:08:01]req_shift_opened done [12:08:01]requested_item shift.open_date is exist - process it [12:08:01]req_shift_open_date [12:08:01]req_shift_open_date done [12:08:01]produce_requested_data done [12:08:01]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187706,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [12:08:01]process_action_free close_receipt [12:08:01]json_value_free [12:08:01]json_value_free done [12:08:01]process_json_proto returns [12:08:01]Send response to host [12:08:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187706,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [12:08:01]free response buf [12:08:01]execute_script done [12:08:01]execute_script returns [12:08:01]free content buf [12:08:01]Sock 8.Close socket [12:08:01]Sock 8.Thread stoped [12:08:05]OFD Sender: No OFD packet to send [12:08:10]OFD Sender: No OFD packet to send [12:08:15]OFD Sender: No OFD packet to send [12:08:20]OFD Sender: No OFD packet to send [12:08:25]OFD Sender: No OFD packet to send [12:08:30]OFD Sender: No OFD packet to send [12:08:35]OFD Sender: No OFD packet to send [12:08:40]OFD Sender: No OFD packet to send [12:08:45]OFD Sender: No OFD packet to send [12:08:50]OFD Sender: No OFD packet to send [12:08:55]OFD Sender: No OFD packet to send [12:08:59]accept exits with 9 [12:08:59]New connection [12:08:59]New thread 3067014500 created [12:08:59]Thread 3067157860 joined [12:08:59]Waiting for new connection... [12:08:59] Sock 9.Parse request [12:08:59]Sock 9.Check first char [12:08:59]Sock 9.First char is OK [12:08:59]request: POST /json_proto HTTP/1.0 [12:08:59]Method: POST [12:08:59]URL: /json_proto [12:08:59]Method is POST - this is cgi request [12:08:59]url: /json_proto [12:08:59]query_string will be loaded in cgi processing [12:08:59]execute_cgi json_proto POST (null) [12:08:59]execute_cgi path=json_proto method=POST [12:08:59]POST find Content-Length [12:08:59]Host: 172.17.42.131:8080 [12:08:59]Content-Length: 683 [12:08:59]Content-Type: application/json [12:08:59] [12:08:59]POST finish read [12:08:59]Found Content-Length = 683 [12:08:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209759", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 7.780, "sum" : 600.62, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:08:59]execute_script... [12:08: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)209759", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 7.780, "sum" : 600.62, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:08:59]POST & json_proto [12:08:59]process_json_proto [12:08:59]json parsed OK: [12:08:59]protocol is kg_v1.0 [12:08:59]action value=close_receipt [12:08:59]process_action close_receipt [12:08:59]cmd_close_receipt [12:08:59]MH_GetDate [12:08:59]Write to MH i2c: F0 00 00 68 50 A7 [12:08:59]Write i2c OK [12:08:59]MH_I2C_Read... [12:08:59]Read from MH i2c: F0 [12:08:59]MH_I2C_Read... [12:08:59]Read from MH i2c: F0 09 00 [12:08:59]MH_I2C_Read... [12:08:59]Read from MH i2c: F0 09 00 68 50 00 5F 44 16 67 A0 18 CA 66 B8 [12:08:59]GetLastDocTimeStamp 1729512481 [12:08:59]current date 1729512543 [12:08:59]FM_GetShiftState [12:08:59]SAM_PROTO_GetShiftState [12:08:59]wFMCommunicate request_size=4 [12:08:59]MH_SAM_APDU [12:08:59]CAPDU: 80 13 01 00 [12:08:59]Write to MH i2c: E2 08 00 69 50 80 13 01 00 00 00 00 00 36 [12:08:59]Write i2c OK [12:08:59]MH_I2C_Read... [12:08:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:08:59]Read from MH i2c: E2 [12:08:59]MH_I2C_Read... [12:08:59]Read from MH i2c: E2 0E 00 [12:08:59]MH_I2C_Read... [12:08:59]Read from MH i2c: E2 0E 00 69 50 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 95 [12:08:59]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [12:08:59]wFMCommunicate OK [12:08:59]SAM_PROTO_GetShiftState done [12:08:59]FM_GetShiftState done [12:08:59]opened in 1729469754 [12:08:59]opened+sec_in_day 1729556154 [12:08:59]quantity*price = 60061 [12:08:59]sum+1 = 60063 [12:08:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.62 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.78 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 171 21.10.2024 12:09 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 187707 ФПД: 147601850841380 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T120903&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187707&fm=147601850841380&tin=02508201610067®Number=0000000000100030&sum=60000 [12:09:01]StoreToDocumentArchive [12:09:01]shift 460 fd 187707 [12:09:01]save to /storage/0460/doc_00187707 [12:09:01]save last doc name /storage/0460/doc_00187707 to /storage/kkm_last_doc_name [12:09:01]save OK [12:09:01]Clear old archive folders... [12:09:01]ProcessDocumentItem done err = 0, tmpTLVsize=257 [12:09:01]tlvbuf is 010F9DE0 [12:09:01]SAM_PROTO_ClearQueue [12:09:01]wFMCommunicate request_size=4 [12:09:01]MH_SAM_APDU [12:09:01]CAPDU: 80 09 00 00 [12:09:01]Write to MH i2c: E2 08 00 76 50 80 09 00 00 00 00 00 00 38 [12:09:01]Write i2c OK [12:09:01]MH_I2C_Read... [12:09:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:09:01]Read from MH i2c: E2 [12:09:01]MH_I2C_Read... [12:09:01]Read from MH i2c: E2 03 00 [12:09:01]MH_I2C_Read... [12:09:01]Read from MH i2c: E2 03 00 76 50 00 90 00 3A [12:09:01]RAPDU: 90 00 [12:09:01]wFMCommunicate OK [12:09:01]SAM_PROTO_ClearQueue done [12:09:01]KKMCreateOFDPacket [12:09:01]OFDProtocolAddRootSTLVToBuf [12:09:01]FM_MakeSignedData [12:09:01]FM_MakeSignedData [12:09:01]SAM_PROTO_SignData [12:09:01]wFMCommunicate request_size=4 [12:09:01]MH_SAM_APDU [12:09:01]CAPDU: 80 0D 01 02 [12:09:01]Write to MH i2c: E2 08 00 77 50 80 0D 01 02 00 00 00 00 40 [12:09:01]Write i2c OK [12:09:01]MH_I2C_Read... [12:09:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:09:01]Read from MH i2c: E2 [12:09:01]MH_I2C_Read... [12:09:01]Read from MH i2c: E2 03 00 [12:09:01]MH_I2C_Read... [12:09:01]Read from MH i2c: E2 03 00 77 50 00 90 00 3B [12:09:01]RAPDU: 90 00 [12:09:01]wFMCommunicate OK [12:09:01]wFMCommunicate request_size=255 [12:09:01]MH_SAM_APDU [12:09:01]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 64 1E 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 9E EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EA 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AB 00 00 00 F4 03 04 00 5F 44 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 3B DD 02 [12:09:01]Write to MH i2c: E2 02 01 78 50 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 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 64 1E 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 9E EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EA 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AB 00 00 00 F4 03 04 00 5F 44 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 3B DD 02 00 00 68 [12:09:01]Write i2c OK [12:09:01]MH_I2C_Read... [12:09:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:09:01]Read from MH i2c: E2 [12:09:01]MH_I2C_Read... [12:09:01]Read from MH i2c: E2 03 00 [12:09:01]MH_I2C_Read... [12:09:01]Read from MH i2c: E2 03 00 78 50 00 90 00 3C [12:09:01]RAPDU: 90 00 [12:09:01]wFMCommunicate OK [12:09:01]wFMCommunicate request_size=16 [12:09:01]MH_SAM_APDU [12:09:01]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 86 3E 3B E3 39 24 [12:09:01]Write to MH i2c: E2 13 00 79 50 80 0D 02 02 0B 00 00 35 04 06 00 86 3E 3B E3 39 24 00 00 D7 [12:09:01]Write i2c OK [12:09:01]MH_I2C_Read... [12:09:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:09:01]Read from MH i2c: E2 [12:09:01]MH_I2C_Read... [12:09:01]Read from MH i2c: E2 03 00 [12:09:01]MH_I2C_Read... [12:09:01]Read from MH i2c: E2 03 00 79 50 00 90 00 3D [12:09:01]RAPDU: 90 00 [12:09:01]wFMCommunicate OK [12:09:01]wFMCommunicate request_size=4 [12:09:01]MH_SAM_APDU [12:09:01]CAPDU: 80 0D 03 02 [12:09:01]Write to MH i2c: E2 08 00 7A 50 80 0D 03 02 00 00 00 00 45 [12:09:01]Write i2c OK [12:09:01]MH_I2C_Read... [12:09:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:09:01]Read from MH i2c: E2 [12:09:01]MH_I2C_Read... [12:09:01]Read from MH i2c: E2 0B 00 [12:09:01]MH_I2C_Read... [12:09:01]Read from MH i2c: E2 0B 00 7A 50 00 D4 81 62 CA FB D1 E5 14 90 00 8C [12:09:01]RAPDU: D4 81 62 CA FB D1 E5 14 90 00 [12:09:01]wFMCommunicate OK [12:09:01]SAM_PROTO_SignData done [12:09:01]FM_MakeSignedData done [12:09:01]CreateOFDProtocolMessage [12:09:01]wFMCommunicate request_size=4 [12:09:01]MH_SAM_APDU [12:09:01]CAPDU: 80 11 00 00 [12:09:01]Write to MH i2c: E2 08 00 7B 50 80 11 00 00 00 00 00 00 45 [12:09:01]Write i2c OK [12:09:01]MH_I2C_Read... [12:09:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:09:01]Read from MH i2c: E2 [12:09:01]MH_I2C_Read... [12:09:01]Read from MH i2c: E2 17 00 [12:09:01]MH_I2C_Read... [12:09:01]Read from MH i2c: E2 17 00 7B 50 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 93 [12:09:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [12:09:01]wFMCommunicate OK [12:09:01]CreateOFDProtocolMessage done [12:09:01]OFDSenderStorePacket 187707 [12:09:01]StoreOFDPacket docnum=187707 [12:09:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 B6 61 0D 01 E2 D0 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 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 64 1E 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 9E EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EA 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AB 00 00 00 F4 03 04 00 5F 44 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 3B DD 02 00 35 04 06 00 86 3E 3B E3 39 24 D4 81 62 CA FB D1 E5 14 [12:09:01]CheckFolder [12:09:01]dirname=/storage/ofd_packets [12:09:01]CheckFolder done [12:09:01]ProducePacketName [12:09:01]name=ofd_packets/00187707 [12:09:01]NVStorageSaveData ofd_packets/00187707 [12:09:01]File name is /storage/ofd_packets/00187707 [12:09:01]Write 307 bytes [12:09:01]NVStorageSaveData done [12:09:01]OFDSenderStorePacket done [12:09:01]KKMCreateOFDPacket done [12:09:01]NVStorageSaveData kkm_last_timestamp [12:09:01]File name is /storage/kkm_last_timestamp [12:09:01]Write 4 bytes [12:09:01]NVStorageSaveData done [12:09:01]ExternCall_PrintAddStr [12:09:01]wPrintStart [12:09:01]Write to MH i2c: 01 00 00 7C 50 CC [12:09:01]Write i2c OK [12:09:01]MH_I2C_Read... [12:09:01]Read from MH i2c: 01 [12:09:01]MH_I2C_Read... [12:09:01]Read from MH i2c: 01 07 00 [12:09:01]MH_I2C_Read... [12:09:01]Read from MH i2c: 01 07 00 7C 50 00 00 00 00 00 FF 0F E1 [12:09:01]RasterBufferAndPrint [12:09:01]line Счет N : (1)209759 [12:09:01]line ИНН: 02508201610067 [12:09:01]line Контрольно-Кассовый Чек [12:09:01]line ПРОДАЖА [12:09:01]line ТРК (МРК, ГНК) : 21 [12:09:01]line Товар: 2710194210 [12:09:01]line D-ENERGY ДТ-К-5 [12:09:01]line 7.780 * 77.20 [12:09:01]line = 600.62 [12:09:01]line НДС 12% НСП 1% [12:09:01]line > о реализуемом товаре [12:09:01]line ОКРУГЛЕНИЕ: -0.62 [12:09:01]line ИТОГО: 600.00 [12:09:01]line Внесено: 600.00 [12:09:01]line СДАЧА: 0.00 [12:09:01]line НСП 1% : 5.31 [12:09:01]line НДС 12% : 63.78 [12:09:01]line Наличными: 600.00 [12:09:01]line Безнал.: 0.00 [12:09:01]line Место: АЗС № 86 "Партнер Нефть" [12:09:01]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [12:09:01]line СНО: Общий режим [12:09:01]line Чек 171 21.10.2024 12:09 [12:09:01]line Смена: 460 ФФД: 1.0 [12:09:01]line ЗНМ: 0300000155 [12:09:01]line РНМ: 0000000000100030 [12:09:01]line Версия ККМ: 001 [12:09:01]line ФМ: 0000000000965340 [12:09:01]line ФД: 187707 [12:09:01]line ФПД: 147601850841380 [12:09:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T120903&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187707&fm=147601850841380&tin=02508201610067®Number=0000000000100030&sum=60000 [12:09:01]OFD Sender: Processing packet 187707 [packets to send 1062, broken 1061] [12:09:01]ProducePacketName [12:09:01]name=ofd_packets/00187707 [12:09:01]OFD Sender: To server: pG, [12:09:01]CommunicateWithHost lk.salyk.kg:30040 [12:09:01]ConnectInit lk.salyk.kg [12:09:01]written 0, free lines is 4095 [12:09:01]Connected sock=10 [12:09:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 B6 61 0D 01 E2 D0 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 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 64 1E 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 9E EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EA 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AB 00 00 00 F4 03 04 00 5F 44 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 3B DD 02 00 35 04 06 00 86 3E 3B E3 39 24 D4 81 62 CA FB D1 E5 14 [12:09:02]Write to MH i2c: 01 00 00 A7 50 F7 [12:09:02]Write i2c OK [12:09:02]MH_I2C_Read... [12:09:02]Read from MH i2c: 01 [12:09:02]MH_I2C_Read... [12:09:02]Read from MH i2c: 01 07 00 [12:09:02]MH_I2C_Read... [12:09:02]Read from MH i2c: 01 07 00 A7 50 00 00 00 00 00 78 0C 82 [12:09:02]RasterBufferAndPrint [12:09:02]line [12:09:02]line [12:09:02]line [12:09:02]line [12:09:02]line [12:09:02]written 0, free lines is 3195 [12:09:02]MH_Cut [12:09:02]Write to MH i2c: D1 01 00 AE 50 01 D0 [12:09:02]Write i2c OK [12:09:02]MH_I2C_Read... [12:09:02]Read from MH i2c: D1 [12:09:02]MH_I2C_Read... [12:09:02]Read from MH i2c: D1 01 00 [12:09:02]MH_I2C_Read... [12:09:02]Read from MH i2c: D1 01 00 AE 50 00 CF [12:09:02]Write to MH i2c: 01 00 00 AF 50 FF [12:09:02]Write i2c OK [12:09:02]MH_I2C_Read... [12:09:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 56 C1 47 00 23 B4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 3B DD 02 00 F4 03 04 00 4F EE 15 67 B6 04 01 00 00 A8 25 33 C0 82 50 0F 0B [12:09:02]CommunicateWithHost err = 0 [12:09:02]CheckOFDResponse [12:09:02]1017 (14) - 77093643461234 [12:09:02]1041 (16) - 0000000000965340 [12:09:02]1040 (4) - 187707 [12:09:02]1012 (4) - 21.10.2024 06:01 [12:09:02]1206 (1) - 0 [12:09:02]OFD Sender: Remove packet 187707 [12:09:02]ProducePacketName [12:09:02]name=ofd_packets/00187707 [12:09:02]NVStorageDeleteData [12:09:02]OFD Sender: No OFD packet to send [12:09:03]*** Cut start [12:09:03]*** Partial cut [12:09:03]*** CUTSNS_PIN = 1 [12:09:03]*** CUTSNS_PIN = 0 [12:09:03]*** Brake cut motor [12:09:03]Read from MH i2c: 01 [12:09:03]MH_I2C_Read... [12:09:03]*** Stop cut motor [12:09:03]*** Cut end [12:09:03]Read from MH i2c: 01 07 00 [12:09:03]MH_I2C_Read... [12:09:03]Read from MH i2c: 01 07 00 AF 50 00 00 00 00 00 FF 0F 14 [12:09:03]process_action close_receipt done [12:09:03]requested_data is exist [12:09:03]produce_requested_data [12:09:03]requested_item fm.sn is exist - process it [12:09:03]wFMCommunicate request_size=4 [12:09:03]MH_SAM_APDU [12:09:03]CAPDU: 80 11 00 00 [12:09:03]Write to MH i2c: E2 08 00 B0 50 80 11 00 00 00 00 00 00 7A [12:09:03]Write i2c OK [12:09:03]MH_I2C_Read... [12:09:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:09:03]Read from MH i2c: E2 [12:09:03]MH_I2C_Read... [12:09:03]Read from MH i2c: E2 17 00 [12:09:03]MH_I2C_Read... [12:09:03]Read from MH i2c: E2 17 00 B0 50 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 C8 [12:09:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [12:09:03]wFMCommunicate OK [12:09:03]requested_item fd.num is exist - process it [12:09:03]SAM_PROTO_GetFieldsCounters [12:09:03]wFMCommunicate request_size=4 [12:09:03]MH_SAM_APDU [12:09:03]CAPDU: 80 13 00 00 [12:09:03]Write to MH i2c: E2 08 00 B1 50 80 13 00 00 00 00 00 00 7D [12:09:03]Write i2c OK [12:09:03]MH_I2C_Read... [12:09:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:09:04]Read from MH i2c: E2 [12:09:04]MH_I2C_Read... [12:09:04]Read from MH i2c: E2 62 00 [12:09:04]MH_I2C_Read... [12:09:04]Read from MH i2c: E2 62 00 B1 50 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 3B DD 02 00 0E 04 04 00 CC 01 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 6C [12:09:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 3B DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 AB 00 00 00 5E 04 04 00 AB 00 00 00 57 04 04 00 AC 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:09:04]wFMCommunicate OK [12:09:04]SAM_PROTO_GetFieldsCounters done [12:09:04]requested_item shift.num is exist - process it [12:09:04]requested_item shift.opened is exist - process it [12:09:04]req_shift_opened [12:09:04]FM_GetShiftState [12:09:04]SAM_PROTO_GetShiftState [12:09:04]wFMCommunicate request_size=4 [12:09:04]MH_SAM_APDU [12:09:04]CAPDU: 80 13 01 00 [12:09:04]Write to MH i2c: E2 08 00 B2 50 80 13 01 00 00 00 00 00 7F [12:09:04]Write i2c OK [12:09:04]MH_I2C_Read... [12:09:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:09:04]Read from MH i2c: E2 [12:09:04]MH_I2C_Read... [12:09:04]Read from MH i2c: E2 0E 00 [12:09:04]MH_I2C_Read... [12:09:04]Read from MH i2c: E2 0E 00 B2 50 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 DE [12:09:04]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [12:09:04]wFMCommunicate OK [12:09:04]SAM_PROTO_GetShiftState done [12:09:04]FM_GetShiftState done [12:09:04]req_shift_opened done [12:09:04]requested_item shift.open_date is exist - process it [12:09:04]req_shift_open_date [12:09:04]req_shift_open_date done [12:09:04]produce_requested_data done [12:09:04]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187707,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [12:09:04]process_action_free close_receipt [12:09:04]json_value_free [12:09:04]json_value_free done [12:09:04]process_json_proto returns [12:09:04]Send response to host [12:09:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187707,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [12:09:04]free response buf [12:09:04]execute_script done [12:09:04]execute_script returns [12:09:04]free content buf [12:09:04]Sock 9.Close socket [12:09:04]Sock 9.Thread stoped [12:09:07]OFD Sender: No OFD packet to send [12:09:12]OFD Sender: No OFD packet to send [12:09:17]OFD Sender: No OFD packet to send [12:09:22]OFD Sender: No OFD packet to send [12:09:27]OFD Sender: No OFD packet to send [12:09:32]OFD Sender: No OFD packet to send [12:09:37]OFD Sender: No OFD packet to send [12:09:42]OFD Sender: No OFD packet to send [12:09:47]OFD Sender: No OFD packet to send [12:09:52]OFD Sender: No OFD packet to send [12:09:57]OFD Sender: No OFD packet to send [12:10:02]OFD Sender: No OFD packet to send [12:10:07]OFD Sender: No OFD packet to send [12:10: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:23]OFD Sender: No OFD packet to send [12:11:28]OFD Sender: No OFD packet to send [12:11:33]OFD Sender: No OFD packet to send [12:11:38]OFD Sender: No OFD packet to send [12:11:43]OFD Sender: No OFD packet to send [12:11:48]OFD Sender: No OFD packet to send [12:11:53]OFD Sender: No OFD packet to send [12:11:58]OFD Sender: No OFD packet to send [12:12:03]OFD Sender: No OFD packet to send [12:12:08]OFD Sender: No OFD packet to send [12:12:13]OFD Sender: No OFD packet to send [12:12:18]OFD Sender: No OFD packet to send [12:12:23]OFD Sender: No OFD packet to send [12:12:28]OFD Sender: No OFD packet to send [12:12:33]OFD Sender: No OFD packet to send [12:12:38]OFD Sender: No OFD packet to send [12:12:43]OFD Sender: No OFD packet to send [12:12:48]OFD Sender: No OFD packet to send [12:12:53]OFD Sender: No OFD packet to send [12:12:58]OFD Sender: No OFD packet to send [12:13:03]OFD Sender: No OFD packet to send [12:13:08]OFD Sender: No OFD packet to send [12:13:13]OFD Sender: No OFD packet to send [12:13:18]OFD Sender: No OFD packet to send [12:13:23]OFD Sender: No OFD packet to send [12:13:28]OFD Sender: No OFD packet to send [12:13:33]OFD Sender: No OFD packet to send [12:13:38]OFD Sender: No OFD packet to send [12:13:43]OFD Sender: No OFD packet to send [12:13:48]OFD Sender: No OFD packet to send [12:13:53]OFD Sender: No OFD packet to send [12:13:59]OFD Sender: No OFD packet to send [12:14:04]OFD Sender: No OFD packet to send [12:14:09]OFD Sender: No OFD packet to send [12:14:14]OFD Sender: No OFD packet to send [12:14:19]OFD Sender: No OFD packet to send [12:14:24]OFD Sender: No OFD packet to send [12:14:29]OFD Sender: No OFD packet to send [12:14:34]OFD Sender: No OFD packet to send [12:14:39]OFD Sender: No OFD packet to send [12:14:44]OFD Sender: No OFD packet to send [12:14:49]OFD Sender: No OFD packet to send [12:14:54]OFD Sender: No OFD packet to send [12:14:59]OFD Sender: No OFD packet to send [12:15:04]OFD Sender: No OFD packet to send [12:15:09]OFD Sender: No OFD packet to send [12:15:14]OFD Sender: No OFD packet to send [12:15:19]OFD Sender: No OFD packet to send [12:15:24]OFD Sender: No OFD packet to send [12:15:27]accept exits with 8 [12:15:27]New connection [12:15:27]New thread 3067157860 created [12:15:27]Thread 3067014500 joined [12:15:27]Waiting for new connection... [12:15:27] Sock 8.Parse request [12:15:27]Sock 8.Check first char [12:15:27]Sock 8.First char is OK [12:15:27]request: POST /json_proto HTTP/1.0 [12:15:27]Method: POST [12:15:27]URL: /json_proto [12:15:27]Method is POST - this is cgi request [12:15:27]url: /json_proto [12:15:27]query_string will be loaded in cgi processing [12:15:27]execute_cgi json_proto POST (null) [12:15:27]execute_cgi path=json_proto method=POST [12:15:27]POST find Content-Length [12:15:27]Host: 172.17.42.131:8080 [12:15:27]Content-Length: 683 [12:15:27]Content-Type: application/json [12:15:27] [12:15:27]POST finish read [12:15:27]Found Content-Length = 683 [12:15:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209760", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "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" ] } } [12:15:27]execute_script... [12:15: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)209760", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "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" ] } } [12:15:27]POST & json_proto [12:15:27]process_json_proto [12:15:27]json parsed OK: [12:15:27]protocol is kg_v1.0 [12:15:27]action value=close_receipt [12:15:27]process_action close_receipt [12:15:27]cmd_close_receipt [12:15:27]MH_GetDate [12:15:27]Write to MH i2c: F0 00 00 B3 50 F2 [12:15:27]Write i2c OK [12:15:27]MH_I2C_Read... [12:15:27]Read from MH i2c: F0 [12:15:27]MH_I2C_Read... [12:15:27]Read from MH i2c: F0 09 00 [12:15:27]MH_I2C_Read... [12:15:27]Read from MH i2c: F0 09 00 B3 50 00 E3 45 16 67 A0 18 CA 66 88 [12:15:27]GetLastDocTimeStamp 1729512543 [12:15:27]current date 1729512931 [12:15:27]FM_GetShiftState [12:15:27]SAM_PROTO_GetShiftState [12:15:27]wFMCommunicate request_size=4 [12:15:27]MH_SAM_APDU [12:15:27]CAPDU: 80 13 01 00 [12:15:27]Write to MH i2c: E2 08 00 B4 50 80 13 01 00 00 00 00 00 81 [12:15:27]Write i2c OK [12:15:27]MH_I2C_Read... [12:15:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:15:27]Read from MH i2c: E2 [12:15:27]MH_I2C_Read... [12:15:27]Read from MH i2c: E2 0E 00 [12:15:27]MH_I2C_Read... [12:15:27]Read from MH i2c: E2 0E 00 B4 50 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 E0 [12:15:27]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [12:15:27]wFMCommunicate OK [12:15:27]SAM_PROTO_GetShiftState done [12:15:27]FM_GetShiftState done [12:15:27]opened in 1729469754 [12:15:27]opened+sec_in_day 1729556154 [12:15:27]quantity*price = 50025 [12:15:27]sum+1 = 50027 [12:15:27]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.26 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 172 21.10.2024 12:15 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 187708 ФПД: 227417281341364 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T121531&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187708&fm=227417281341364&tin=02508201610067®Number=0000000000100030&sum=50000 [12:15:28]StoreToDocumentArchive [12:15:28]shift 460 fd 187708 [12:15:28]save to /storage/0460/doc_00187708 [12:15:28]save last doc name /storage/0460/doc_00187708 to /storage/kkm_last_doc_name [12:15:28]save OK [12:15:28]Clear old archive folders... [12:15:28]ProcessDocumentItem done err = 0, tmpTLVsize=257 [12:15:28]tlvbuf is 011F0F70 [12:15:28]SAM_PROTO_ClearQueue [12:15:28]wFMCommunicate request_size=4 [12:15:28]MH_SAM_APDU [12:15:28]CAPDU: 80 09 00 00 [12:15:28]Write to MH i2c: E2 08 00 C1 50 80 09 00 00 00 00 00 00 83 [12:15:28]Write i2c OK [12:15:28]MH_I2C_Read... [12:15:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:15:28]Read from MH i2c: E2 [12:15:28]MH_I2C_Read... [12:15:28]Read from MH i2c: E2 03 00 [12:15:28]MH_I2C_Read... [12:15:28]Read from MH i2c: E2 03 00 C1 50 00 90 00 85 [12:15:28]RAPDU: 90 00 [12:15:28]wFMCommunicate OK [12:15:28]SAM_PROTO_ClearQueue done [12:15:28]KKMCreateOFDPacket [12:15:28]OFDProtocolAddRootSTLVToBuf [12:15:28]FM_MakeSignedData [12:15:28]FM_MakeSignedData [12:15:28]SAM_PROTO_SignData [12:15:28]wFMCommunicate request_size=4 [12:15:28]MH_SAM_APDU [12:15:28]CAPDU: 80 0D 01 02 [12:15:28]Write to MH i2c: E2 08 00 C2 50 80 0D 01 02 00 00 00 00 8B [12:15:28]Write i2c OK [12:15:28]MH_I2C_Read... [12:15:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:15:28]Read from MH i2c: E2 [12:15:28]MH_I2C_Read... [12:15:28]Read from MH i2c: E2 03 00 [12:15:28]MH_I2C_Read... [12:15:28]Read from MH i2c: E2 03 00 C2 50 00 90 00 86 [12:15:28]RAPDU: 90 00 [12:15:28]wFMCommunicate OK [12:15:28]wFMCommunicate request_size=255 [12:15:28]MH_SAM_APDU [12:15:28]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 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 AC 00 00 00 F4 03 04 00 E3 45 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 3C DD 02 [12:15:28]Write to MH i2c: E2 02 01 C3 50 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 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 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 AC 00 00 00 F4 03 04 00 E3 45 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 3C DD 02 00 00 D1 [12:15:28]Write i2c OK [12:15:28]MH_I2C_Read... [12:15:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:15:28]Read from MH i2c: E2 [12:15:28]MH_I2C_Read... [12:15:28]Read from MH i2c: E2 03 00 [12:15:28]MH_I2C_Read... [12:15:28]Read from MH i2c: E2 03 00 C3 50 00 90 00 87 [12:15:28]RAPDU: 90 00 [12:15:28]wFMCommunicate OK [12:15:28]wFMCommunicate request_size=16 [12:15:28]MH_SAM_APDU [12:15:28]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 CE D5 B6 45 27 B4 [12:15:28]Write to MH i2c: E2 13 00 C4 50 80 0D 02 02 0B 00 00 35 04 06 00 CE D5 B6 45 27 B4 00 00 5C [12:15:28]Write i2c OK [12:15:28]MH_I2C_Read... [12:15:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:15:28]Read from MH i2c: E2 [12:15:28]MH_I2C_Read... [12:15:28]Read from MH i2c: E2 03 00 [12:15:28]MH_I2C_Read... [12:15:28]Read from MH i2c: E2 03 00 C4 50 00 90 00 88 [12:15:28]RAPDU: 90 00 [12:15:28]wFMCommunicate OK [12:15:28]wFMCommunicate request_size=4 [12:15:28]MH_SAM_APDU [12:15:28]CAPDU: 80 0D 03 02 [12:15:28]Write to MH i2c: E2 08 00 C5 50 80 0D 03 02 00 00 00 00 90 [12:15:28]Write i2c OK [12:15:28]MH_I2C_Read... [12:15:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:15:28]Read from MH i2c: E2 [12:15:28]MH_I2C_Read... [12:15:28]Read from MH i2c: E2 0B 00 [12:15:28]MH_I2C_Read... [12:15:28]Read from MH i2c: E2 0B 00 C5 50 00 90 9E 38 12 23 5C 31 77 90 00 30 [12:15:28]RAPDU: 90 9E 38 12 23 5C 31 77 90 00 [12:15:28]wFMCommunicate OK [12:15:28]SAM_PROTO_SignData done [12:15:28]FM_MakeSignedData done [12:15:28]CreateOFDProtocolMessage [12:15:28]wFMCommunicate request_size=4 [12:15:28]MH_SAM_APDU [12:15:28]CAPDU: 80 11 00 00 [12:15:28]Write to MH i2c: E2 08 00 C6 50 80 11 00 00 00 00 00 00 90 [12:15:28]Write i2c OK [12:15:28]MH_I2C_Read... [12:15:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:15:28]Read from MH i2c: E2 [12:15:28]MH_I2C_Read... [12:15:28]Read from MH i2c: E2 17 00 [12:15:28]MH_I2C_Read... [12:15:28]Read from MH i2c: E2 17 00 C6 50 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 DE [12:15:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [12:15:28]wFMCommunicate OK [12:15:28]CreateOFDProtocolMessage done [12:15:28]OFDSenderStorePacket 187708 [12:15:28]StoreOFDPacket docnum=187708 [12:15:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 EA 7C 0D 01 CD A2 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 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 AC 00 00 00 F4 03 04 00 E3 45 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 3C DD 02 00 35 04 06 00 CE D5 B6 45 27 B4 90 9E 38 12 23 5C 31 77 [12:15:28]CheckFolder [12:15:28]dirname=/storage/ofd_packets [12:15:28]CheckFolder done [12:15:28]ProducePacketName [12:15:28]name=ofd_packets/00187708 [12:15:28]NVStorageSaveData ofd_packets/00187708 [12:15:28]File name is /storage/ofd_packets/00187708 [12:15:28]Write 307 bytes [12:15:28]NVStorageSaveData done [12:15:28]OFDSenderStorePacket done [12:15:28]KKMCreateOFDPacket done [12:15:28]NVStorageSaveData kkm_last_timestamp [12:15:28]File name is /storage/kkm_last_timestamp [12:15:28]Write 4 bytes [12:15:28]NVStorageSaveData done [12:15:29]ExternCall_PrintAddStr [12:15:29]wPrintStart [12:15:29]Write to MH i2c: 01 00 00 C7 50 17 [12:15:29]Write i2c OK [12:15:29]MH_I2C_Read... [12:15:29]Read from MH i2c: 01 [12:15:29]MH_I2C_Read... [12:15:29]Read from MH i2c: 01 07 00 [12:15:29]MH_I2C_Read... [12:15:29]Read from MH i2c: 01 07 00 C7 50 00 00 00 00 00 FF 0F 2C [12:15:29]RasterBufferAndPrint [12:15:29]line Счет N : (1)209760 [12:15:29]line ИНН: 02508201610067 [12:15:29]line Контрольно-Кассовый Чек [12:15:29]line ПРОДАЖА [12:15:29]line ТРК (МРК, ГНК) : 21 [12:15:29]line Товар: 2710194210 [12:15:29]line D-ENERGY ДТ-К-5 [12:15:29]line 6.480 * 77.20 [12:15:29]line = 500.26 [12:15:29]line НДС 12% НСП 1% [12:15:29]line > о реализуемом товаре [12:15:29]line ОКРУГЛЕНИЕ: -0.26 [12:15:29]line ИТОГО: 500.00 [12:15:29]line Внесено: 500.00 [12:15:29]line СДАЧА: 0.00 [12:15:29]line НСП 1% : 4.43 [12:15:29]line НДС 12% : 53.12 [12:15:29]line Наличными: 500.00 [12:15:29]line Безнал.: 0.00 [12:15:29]line Место: АЗС № 86 "Партнер Нефть" [12:15:29]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [12:15:29]line СНО: Общий режим [12:15:29]line Чек 172 21.10.2024 12:15 [12:15:29]line Смена: 460 ФФД: 1.0 [12:15:29]line ЗНМ: 0300000155 [12:15:29]line РНМ: 0000000000100030 [12:15:29]line Версия ККМ: 001 [12:15:29]line ФМ: 0000000000965340 [12:15:29]line ФД: 187708 [12:15:29]line ФПД: 227417281341364 [12:15:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T121531&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187708&fm=227417281341364&tin=02508201610067®Number=0000000000100030&sum=50000 [12:15:29]written 0, free lines is 4095 [12:15:29]OFD Sender: Processing packet 187708 [packets to send 1062, broken 1061] [12:15:29]ProducePacketName [12:15:29]name=ofd_packets/00187708 [12:15:29]OFD Sender: To server: pG, [12:15:29]CommunicateWithHost lk.salyk.kg:30040 [12:15:29]ConnectInit lk.salyk.kg [12:15:29]Connected sock=9 [12:15:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 EA 7C 0D 01 CD A2 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 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 AC 00 00 00 F4 03 04 00 E3 45 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 3C DD 02 00 35 04 06 00 CE D5 B6 45 27 B4 90 9E 38 12 23 5C 31 77 [12:15:29]Write to MH i2c: 01 00 00 F2 50 42 [12:15:29]Write i2c OK [12:15:29]MH_I2C_Read... [12:15:29]Read from MH i2c: 01 [12:15:29]MH_I2C_Read... [12:15:29]Read from MH i2c: 01 07 00 [12:15:29]MH_I2C_Read... [12:15:29]Read from MH i2c: 01 07 00 F2 50 00 00 00 00 00 6F 0C C4 [12:15:29]RasterBufferAndPrint [12:15:29]line [12:15:29]line [12:15:29]line [12:15:29]line [12:15:29]line [12:15:29]written 0, free lines is 3186 [12:15:29]MH_Cut [12:15:29]Write to MH i2c: D1 01 00 F9 50 01 1B [12:15:29]Write i2c OK [12:15:29]MH_I2C_Read... [12:15:29]Read from MH i2c: D1 [12:15:29]MH_I2C_Read... [12:15:29]Read from MH i2c: D1 01 00 [12:15:29]MH_I2C_Read... [12:15:29]Read from MH i2c: D1 01 00 F9 50 00 1A [12:15:29]Write to MH i2c: 01 00 00 FA 50 4A [12:15:29]Write i2c OK [12:15:29]MH_I2C_Read... [12:15:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 FD 8E 47 00 66 6D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 3C DD 02 00 F4 03 04 00 D2 EF 15 67 B6 04 01 00 00 49 A6 B7 31 42 33 EA F4 [12:15:29]CommunicateWithHost err = 0 [12:15:29]CheckOFDResponse [12:15:29]1017 (14) - 77093643461234 [12:15:29]1041 (16) - 0000000000965340 [12:15:29]1040 (4) - 187708 [12:15:29]1012 (4) - 21.10.2024 06:08 [12:15:29]1206 (1) - 0 [12:15:29]OFD Sender: Remove packet 187708 [12:15:29]ProducePacketName [12:15:29]name=ofd_packets/00187708 [12:15:29]NVStorageDeleteData [12:15:30]OFD Sender: No OFD packet to send [12:15:30]*** Cut start [12:15:30]*** Partial cut [12:15:30]*** CUTSNS_PIN = 1 [12:15:30]*** CUTSNS_PIN = 0 [12:15:30]*** Brake cut motor [12:15:31]Read from MH i2c: 01 [12:15:31]MH_I2C_Read... [12:15:31]*** Stop cut motor [12:15:31]*** Cut end [12:15:31]Read from MH i2c: 01 07 00 [12:15:31]MH_I2C_Read... [12:15:31]Read from MH i2c: 01 07 00 FA 50 00 00 00 00 00 FF 0F 5F [12:15:31]process_action close_receipt done [12:15:31]requested_data is exist [12:15:31]produce_requested_data [12:15:31]requested_item fm.sn is exist - process it [12:15:31]wFMCommunicate request_size=4 [12:15:31]MH_SAM_APDU [12:15:31]CAPDU: 80 11 00 00 [12:15:31]Write to MH i2c: E2 08 00 FB 50 80 11 00 00 00 00 00 00 C5 [12:15:31]Write i2c OK [12:15:31]MH_I2C_Read... [12:15:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:15:31]Read from MH i2c: E2 [12:15:31]MH_I2C_Read... [12:15:31]Read from MH i2c: E2 17 00 [12:15:31]MH_I2C_Read... [12:15:31]Read from MH i2c: E2 17 00 FB 50 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 13 [12:15:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [12:15:31]wFMCommunicate OK [12:15:31]requested_item fd.num is exist - process it [12:15:31]SAM_PROTO_GetFieldsCounters [12:15:31]wFMCommunicate request_size=4 [12:15:31]MH_SAM_APDU [12:15:31]CAPDU: 80 13 00 00 [12:15:31]Write to MH i2c: E2 08 00 FC 50 80 13 00 00 00 00 00 00 C8 [12:15:31]Write i2c OK [12:15:31]MH_I2C_Read... [12:15:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:15:31]Read from MH i2c: E2 [12:15:31]MH_I2C_Read... [12:15:31]Read from MH i2c: E2 62 00 [12:15:31]MH_I2C_Read... [12:15:31]Read from MH i2c: E2 62 00 FC 50 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 3C DD 02 00 0E 04 04 00 CC 01 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 BB [12:15:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 3C DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 AC 00 00 00 5E 04 04 00 AC 00 00 00 57 04 04 00 AD 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:15:31]wFMCommunicate OK [12:15:31]SAM_PROTO_GetFieldsCounters done [12:15:31]requested_item shift.num is exist - process it [12:15:31]requested_item shift.opened is exist - process it [12:15:31]req_shift_opened [12:15:31]FM_GetShiftState [12:15:31]SAM_PROTO_GetShiftState [12:15:31]wFMCommunicate request_size=4 [12:15:31]MH_SAM_APDU [12:15:31]CAPDU: 80 13 01 00 [12:15:31]Write to MH i2c: E2 08 00 FD 50 80 13 01 00 00 00 00 00 CA [12:15:31]Write i2c OK [12:15:31]MH_I2C_Read... [12:15:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:15:31]Read from MH i2c: E2 [12:15:31]MH_I2C_Read... [12:15:31]Read from MH i2c: E2 0E 00 [12:15:31]MH_I2C_Read... [12:15:31]Read from MH i2c: E2 0E 00 FD 50 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 29 [12:15:31]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [12:15:31]wFMCommunicate OK [12:15:31]SAM_PROTO_GetShiftState done [12:15:31]FM_GetShiftState done [12:15:31]req_shift_opened done [12:15:31]requested_item shift.open_date is exist - process it [12:15:31]req_shift_open_date [12:15:31]req_shift_open_date done [12:15:31]produce_requested_data done [12:15:31]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187708,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [12:15:31]process_action_free close_receipt [12:15:31]json_value_free [12:15:31]json_value_free done [12:15:31]process_json_proto returns [12:15:31]Send response to host [12:15:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187708,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [12:15:31]free response buf [12:15:31]execute_script done [12:15:31]execute_script returns [12:15:31]free content buf [12:15:31]Sock 8.Close socket [12:15:31]Sock 8.Thread stoped [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:20]OFD Sender: No OFD packet to send [12:18:25]OFD Sender: No OFD packet to send [12:18:30]OFD Sender: No OFD packet to send [12:18:35]OFD Sender: No OFD packet to send [12:18:40]OFD Sender: No OFD packet to send [12:18:45]OFD Sender: No OFD packet to send [12:18:50]OFD Sender: No OFD packet to send [12:18:55]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:25]accept exits with 10 [12:19:25]New connection [12:19:25]New thread 3067014500 created [12:19:25]Thread 3067157860 joined [12:19:25]Waiting for new connection... [12:19:25] Sock 10.Parse request [12:19:25]Sock 10.Check first char [12:19:25]Sock 10.First char is OK [12:19:25]request: POST /json_proto HTTP/1.0 [12:19:25]Method: POST [12:19:25]URL: /json_proto [12:19:25]Method is POST - this is cgi request [12:19:25]url: /json_proto [12:19:25]query_string will be loaded in cgi processing [12:19:25]execute_cgi json_proto POST (null) [12:19:25]execute_cgi path=json_proto method=POST [12:19:25]POST find Content-Length [12:19:25]Host: 172.17.42.131:8080 [12:19:25]Content-Length: 677 [12:19:25]Content-Type: application/json [12:19:25] [12:19:25]POST finish read [12:19:25]Found Content-Length = 677 [12:19:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209762", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "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:19:25]execute_script... [12:19: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)209762", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "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:19:25]POST & json_proto [12:19:25]process_json_proto [12:19:25]json parsed OK: [12:19:25]protocol is kg_v1.0 [12:19:25]action value=close_receipt [12:19:25]process_action close_receipt [12:19:25]cmd_close_receipt [12:19:25]MH_GetDate [12:19:25]Write to MH i2c: F0 00 00 FE 50 3D [12:19:25]Write i2c OK [12:19:25]MH_I2C_Read... [12:19:25]Read from MH i2c: F0 [12:19:25]MH_I2C_Read... [12:19:25]Read from MH i2c: F0 09 00 [12:19:25]MH_I2C_Read... [12:19:25]Read from MH i2c: F0 09 00 FE 50 00 D1 46 16 67 A0 18 CA 66 C2 [12:19:25]GetLastDocTimeStamp 1729512931 [12:19:25]current date 1729513169 [12:19:25]FM_GetShiftState [12:19:25]SAM_PROTO_GetShiftState [12:19:25]wFMCommunicate request_size=4 [12:19:25]MH_SAM_APDU [12:19:25]CAPDU: 80 13 01 00 [12:19:25]Write to MH i2c: E2 08 00 FF 50 80 13 01 00 00 00 00 00 CC [12:19:25]Write i2c OK [12:19:25]MH_I2C_Read... [12:19:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:19:25]Read from MH i2c: E2 [12:19:25]MH_I2C_Read... [12:19:25]Read from MH i2c: E2 0E 00 [12:19:25]MH_I2C_Read... [12:19:25]Read from MH i2c: E2 0E 00 FF 50 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 2B [12:19:25]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [12:19:25]wFMCommunicate OK [12:19:25]SAM_PROTO_GetShiftState done [12:19:25]FM_GetShiftState done [12:19:25]opened in 1729469754 [12:19:25]opened+sec_in_day 1729556154 [12:19:25]quantity*price = 30038 [12:19:25]sum+1 = 30039 [12:19:25]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 173 21.10.2024 12:19 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 187709 ФПД: 252074618015180 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T121929&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187709&fm=252074618015180&tin=02508201610067®Number=0000000000100030&sum=30000 [12:19:26]StoreToDocumentArchive [12:19:26]shift 460 fd 187709 [12:19:26]save to /storage/0460/doc_00187709 [12:19:26]save last doc name /storage/0460/doc_00187709 to /storage/kkm_last_doc_name [12:19:26]save OK [12:19:26]Clear old archive folders... [12:19:26]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:19:26]tlvbuf is 011C33F0 [12:19:26]SAM_PROTO_ClearQueue [12:19:26]wFMCommunicate request_size=4 [12:19:26]MH_SAM_APDU [12:19:26]CAPDU: 80 09 00 00 [12:19:26]Write to MH i2c: E2 08 00 0C 51 80 09 00 00 00 00 00 00 CF [12:19:26]Write i2c OK [12:19:26]MH_I2C_Read... [12:19:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:19:26]Read from MH i2c: E2 [12:19:26]MH_I2C_Read... [12:19:26]Read from MH i2c: E2 03 00 [12:19:26]MH_I2C_Read... [12:19:26]Read from MH i2c: E2 03 00 0C 51 00 90 00 D1 [12:19:26]RAPDU: 90 00 [12:19:26]wFMCommunicate OK [12:19:26]SAM_PROTO_ClearQueue done [12:19:26]KKMCreateOFDPacket [12:19:26]OFDProtocolAddRootSTLVToBuf [12:19:26]FM_MakeSignedData [12:19:26]FM_MakeSignedData [12:19:26]SAM_PROTO_SignData [12:19:26]wFMCommunicate request_size=4 [12:19:26]MH_SAM_APDU [12:19:26]CAPDU: 80 0D 01 02 [12:19:26]Write to MH i2c: E2 08 00 0D 51 80 0D 01 02 00 00 00 00 D7 [12:19:26]Write i2c OK [12:19:26]MH_I2C_Read... [12:19:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:19:26]Read from MH i2c: E2 [12:19:26]MH_I2C_Read... [12:19:26]Read from MH i2c: E2 03 00 [12:19:26]MH_I2C_Read... [12:19:26]Read from MH i2c: E2 03 00 0D 51 00 90 00 D2 [12:19:26]RAPDU: 90 00 [12:19:26]wFMCommunicate OK [12:19:26]wFMCommunicate request_size=255 [12:19:26]MH_SAM_APDU [12:19: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 33 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 AD 00 00 00 F4 03 04 00 D1 46 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 3D DD 02 00 35 04 06 00 E5 [12:19:26]Write to MH i2c: E2 02 01 0E 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 33 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 AD 00 00 00 F4 03 04 00 D1 46 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 3D DD 02 00 35 04 06 00 E5 00 00 4D [12:19:26]Write i2c OK [12:19:26]MH_I2C_Read... [12:19:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:19:26]Read from MH i2c: E2 [12:19:26]MH_I2C_Read... [12:19:26]Read from MH i2c: E2 03 00 [12:19:26]MH_I2C_Read... [12:19:26]Read from MH i2c: E2 03 00 0E 51 00 90 00 D3 [12:19:26]RAPDU: 90 00 [12:19:26]wFMCommunicate OK [12:19:26]wFMCommunicate request_size=10 [12:19:26]MH_SAM_APDU [12:19:26]CAPDU: 80 0D 02 02 05 42 B2 10 4D CC [12:19:26]Write to MH i2c: E2 0D 00 0F 51 80 0D 02 02 05 00 42 B2 10 4D CC 00 00 01 [12:19:26]Write i2c OK [12:19:26]MH_I2C_Read... [12:19:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:19:26]Read from MH i2c: E2 [12:19:26]MH_I2C_Read... [12:19:26]Read from MH i2c: E2 03 00 [12:19:26]MH_I2C_Read... [12:19:26]Read from MH i2c: E2 03 00 0F 51 00 90 00 D4 [12:19:26]RAPDU: 90 00 [12:19:26]wFMCommunicate OK [12:19:26]wFMCommunicate request_size=4 [12:19:26]MH_SAM_APDU [12:19:26]CAPDU: 80 0D 03 02 [12:19:26]Write to MH i2c: E2 08 00 10 51 80 0D 03 02 00 00 00 00 DC [12:19:26]Write i2c OK [12:19:26]MH_I2C_Read... [12:19:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:19:26]Read from MH i2c: E2 [12:19:26]MH_I2C_Read... [12:19:26]Read from MH i2c: E2 0B 00 [12:19:26]MH_I2C_Read... [12:19:26]Read from MH i2c: E2 0B 00 10 51 00 F4 E7 36 4C 2C F0 12 3B 90 00 A3 [12:19:26]RAPDU: F4 E7 36 4C 2C F0 12 3B 90 00 [12:19:26]wFMCommunicate OK [12:19:26]SAM_PROTO_SignData done [12:19:26]FM_MakeSignedData done [12:19:26]CreateOFDProtocolMessage [12:19:26]wFMCommunicate request_size=4 [12:19:26]MH_SAM_APDU [12:19:26]CAPDU: 80 11 00 00 [12:19:26]Write to MH i2c: E2 08 00 11 51 80 11 00 00 00 00 00 00 DC [12:19:26]Write i2c OK [12:19:26]MH_I2C_Read... [12:19:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:19:27]Read from MH i2c: E2 [12:19:27]MH_I2C_Read... [12:19:27]Read from MH i2c: E2 17 00 [12:19:27]MH_I2C_Read... [12:19:27]Read from MH i2c: E2 17 00 11 51 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 2A [12:19:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [12:19:27]wFMCommunicate OK [12:19:27]CreateOFDProtocolMessage done [12:19:27]OFDSenderStorePacket 187709 [12:19:27]StoreOFDPacket docnum=187709 [12:19:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 CD 1B 07 01 F8 A2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 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 AD 00 00 00 F4 03 04 00 D1 46 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 3D DD 02 00 35 04 06 00 E5 42 B2 10 4D CC F4 E7 36 4C 2C F0 12 3B [12:19:27]CheckFolder [12:19:27]dirname=/storage/ofd_packets [12:19:27]CheckFolder done [12:19:27]ProducePacketName [12:19:27]name=ofd_packets/00187709 [12:19:27]NVStorageSaveData ofd_packets/00187709 [12:19:27]File name is /storage/ofd_packets/00187709 [12:19:27]Write 301 bytes [12:19:27]NVStorageSaveData done [12:19:27]OFDSenderStorePacket done [12:19:27]KKMCreateOFDPacket done [12:19:27]NVStorageSaveData kkm_last_timestamp [12:19:27]File name is /storage/kkm_last_timestamp [12:19:27]Write 4 bytes [12:19:27]NVStorageSaveData done [12:19:27]ExternCall_PrintAddStr [12:19:27]wPrintStart [12:19:27]Write to MH i2c: 01 00 00 12 51 63 [12:19:27]Write i2c OK [12:19:27]MH_I2C_Read... [12:19:27]Read from MH i2c: 01 [12:19:27]MH_I2C_Read... [12:19:27]Read from MH i2c: 01 07 00 [12:19:27]MH_I2C_Read... [12:19:27]Read from MH i2c: 01 07 00 12 51 00 00 00 00 00 FF 0F 78 [12:19:27]RasterBufferAndPrint [12:19:27]line Счет N : (1)209762 [12:19:27]line ИНН: 02508201610067 [12:19:27]line Контрольно-Кассовый Чек [12:19:27]line ПРОДАЖА [12:19:27]line ТРК (МРК, ГНК) : 22 [12:19:27]line Товар: 2710124130 [12:19:27]line Аи-92-К-3 [12:19:27]line 4.490 * 66.90 [12:19:27]line = 300.38 [12:19:27]line НДС 12% НСП 1% [12:19:27]line > о реализуемом товаре [12:19:27]line ОКРУГЛЕНИЕ: -0.38 [12:19:27]line ИТОГО: 300.00 [12:19:27]line Внесено: 300.00 [12:19:27]line СДАЧА: 0.00 [12:19:27]line НСП 1% : 2.66 [12:19:27]line НДС 12% : 31.90 [12:19:27]line Наличными: 300.00 [12:19:27]line Безнал.: 0.00 [12:19:27]line Место: АЗС № 86 "Партнер Нефть" [12:19:27]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [12:19:27]line СНО: Общий режим [12:19:27]line Чек 173 21.10.2024 12:19 [12:19:27]line Смена: 460 ФФД: 1.0 [12:19:27]line ЗНМ: 0300000155 [12:19:27]line РНМ: 0000000000100030 [12:19:27]line Версия ККМ: 001 [12:19:27]line ФМ: 0000000000965340 [12:19:27]line ФД: 187709 [12:19:27]line ФПД: 252074618015180 [12:19:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T121929&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187709&fm=252074618015180&tin=02508201610067®Number=0000000000100030&sum=30000 [12:19:27]OFD Sender: Processing packet 187709 [packets to send 1062, broken 1061] [12:19:27]ProducePacketName [12:19:27]name=ofd_packets/00187709 [12:19:27]OFD Sender: To server: pG, [12:19:27]CommunicateWithHost lk.salyk.kg:30040 [12:19:27]ConnectInit lk.salyk.kg [12:19:27]written 0, free lines is 4095 [12:19:27]Connected sock=9 [12:19:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 CD 1B 07 01 F8 A2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 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 AD 00 00 00 F4 03 04 00 D1 46 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 3D DD 02 00 35 04 06 00 E5 42 B2 10 4D CC F4 E7 36 4C 2C F0 12 3B [12:19:27]Write to MH i2c: 01 00 00 3D 51 8E [12:19:27]Write i2c OK [12:19:27]MH_I2C_Read... [12:19:27]Read from MH i2c: 01 [12:19:27]MH_I2C_Read... [12:19:27]Read from MH i2c: 01 07 00 [12:19:27]MH_I2C_Read... [12:19:27]Read from MH i2c: 01 07 00 3D 51 00 00 00 00 00 72 0C 13 [12:19:27]RasterBufferAndPrint [12:19:27]line [12:19:27]line [12:19:27]line [12:19:27]line [12:19:27]line [12:19:27]written 0, free lines is 3188 [12:19:27]MH_Cut [12:19:27]Write to MH i2c: D1 01 00 44 51 01 67 [12:19:27]Write i2c OK [12:19:27]MH_I2C_Read... [12:19:27]Read from MH i2c: D1 [12:19:27]MH_I2C_Read... [12:19:27]Read from MH i2c: D1 01 00 [12:19:27]MH_I2C_Read... [12:19:27]Read from MH i2c: D1 01 00 44 51 00 66 [12:19:27]Write to MH i2c: 01 00 00 45 51 96 [12:19:27]Write i2c OK [12:19:27]MH_I2C_Read... [12:19:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 A4 7B 47 00 7E 32 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 3D DD 02 00 F4 03 04 00 C1 F0 15 67 B6 04 01 00 00 FB 52 30 A7 70 A8 F7 0D [12:19:27]CommunicateWithHost err = 0 [12:19:27]CheckOFDResponse [12:19:27]1017 (14) - 77093643461234 [12:19:27]1041 (16) - 0000000000965340 [12:19:27]1040 (4) - 187709 [12:19:27]1012 (4) - 21.10.2024 06:12 [12:19:27]1206 (1) - 0 [12:19:27]OFD Sender: Remove packet 187709 [12:19:27]ProducePacketName [12:19:27]name=ofd_packets/00187709 [12:19:27]NVStorageDeleteData [12:19:28]OFD Sender: No OFD packet to send [12:19:28]*** Cut start [12:19:28]*** Partial cut [12:19:28]*** CUTSNS_PIN = 1 [12:19:29]*** CUTSNS_PIN = 0 [12:19:29]*** Brake cut motor [12:19:29]Read from MH i2c: 01 [12:19:29]MH_I2C_Read... [12:19:29]*** Stop cut motor [12:19:29]*** Cut end [12:19:29]Read from MH i2c: 01 07 00 [12:19:29]MH_I2C_Read... [12:19:29]Read from MH i2c: 01 07 00 45 51 00 00 00 00 00 FF 0F AB [12:19:29]process_action close_receipt done [12:19:29]requested_data is exist [12:19:29]produce_requested_data [12:19:29]requested_item fm.sn is exist - process it [12:19:29]wFMCommunicate request_size=4 [12:19:29]MH_SAM_APDU [12:19:29]CAPDU: 80 11 00 00 [12:19:29]Write to MH i2c: E2 08 00 46 51 80 11 00 00 00 00 00 00 11 [12:19:29]Write i2c OK [12:19:29]MH_I2C_Read... [12:19:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:19:29]Read from MH i2c: E2 [12:19:29]MH_I2C_Read... [12:19:29]Read from MH i2c: E2 17 00 [12:19:29]MH_I2C_Read... [12:19:29]Read from MH i2c: E2 17 00 46 51 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 5F [12:19:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [12:19:29]wFMCommunicate OK [12:19:29]requested_item fd.num is exist - process it [12:19:29]SAM_PROTO_GetFieldsCounters [12:19:29]wFMCommunicate request_size=4 [12:19:29]MH_SAM_APDU [12:19:29]CAPDU: 80 13 00 00 [12:19:29]Write to MH i2c: E2 08 00 47 51 80 13 00 00 00 00 00 00 14 [12:19:29]Write i2c OK [12:19:29]MH_I2C_Read... [12:19:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:19:29]Read from MH i2c: E2 [12:19:29]MH_I2C_Read... [12:19:29]Read from MH i2c: E2 62 00 [12:19:29]MH_I2C_Read... [12:19:29]Read from MH i2c: E2 62 00 47 51 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 3D DD 02 00 0E 04 04 00 CC 01 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 0B [12:19:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 3D DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 AD 00 00 00 5E 04 04 00 AD 00 00 00 57 04 04 00 AE 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:19:29]wFMCommunicate OK [12:19:29]SAM_PROTO_GetFieldsCounters done [12:19:29]requested_item shift.num is exist - process it [12:19:29]requested_item shift.opened is exist - process it [12:19:29]req_shift_opened [12:19:29]FM_GetShiftState [12:19:29]SAM_PROTO_GetShiftState [12:19:29]wFMCommunicate request_size=4 [12:19:29]MH_SAM_APDU [12:19:29]CAPDU: 80 13 01 00 [12:19:29]Write to MH i2c: E2 08 00 48 51 80 13 01 00 00 00 00 00 16 [12:19:29]Write i2c OK [12:19:29]MH_I2C_Read... [12:19:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:19:29]Read from MH i2c: E2 [12:19:29]MH_I2C_Read... [12:19:29]Read from MH i2c: E2 0E 00 [12:19:29]MH_I2C_Read... [12:19:29]Read from MH i2c: E2 0E 00 48 51 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 75 [12:19:29]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [12:19:29]wFMCommunicate OK [12:19:29]SAM_PROTO_GetShiftState done [12:19:29]FM_GetShiftState done [12:19:29]req_shift_opened done [12:19:29]requested_item shift.open_date is exist - process it [12:19:29]req_shift_open_date [12:19:29]req_shift_open_date done [12:19:29]produce_requested_data done [12:19:29]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187709,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [12:19:29]process_action_free close_receipt [12:19:29]json_value_free [12:19:29]json_value_free done [12:19:29]process_json_proto returns [12:19:29]Send response to host [12:19:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187709,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [12:19:29]free response buf [12:19:29]execute_script done [12:19:29]execute_script returns [12:19:29]free content buf [12:19:29]Sock 10.Close socket [12:19:29]Sock 10.Thread stoped [12:19:33]OFD Sender: No OFD packet to send [12:19:38]OFD Sender: No OFD packet to send [12:19:42]accept exits with 8 [12:19:42]New connection [12:19:42]New thread 3067157860 created [12:19:42]Thread 3067014500 joined [12:19:42]Waiting for new connection... [12:19:42] Sock 8.Parse request [12:19:42]Sock 8.Check first char [12:19:42]Sock 8.First char is OK [12:19:42]request: POST /json_proto HTTP/1.0 [12:19:42]Method: POST [12:19:42]URL: /json_proto [12:19:42]Method is POST - this is cgi request [12:19:42]url: /json_proto [12:19:42]query_string will be loaded in cgi processing [12:19:42]execute_cgi json_proto POST (null) [12:19:42]execute_cgi path=json_proto method=POST [12:19:42]POST find Content-Length [12:19:42]Host: 172.17.42.131:8080 [12:19:42]Content-Length: 677 [12:19:42]Content-Type: application/json [12:19:42] [12:19:42]POST finish read [12:19:42]Found Content-Length = 677 [12:19:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209764", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 6.740, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:19:42]execute_script... [12:19:42]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209764", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 6.740, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:19:42]POST & json_proto [12:19:42]process_json_proto [12:19:42]json parsed OK: [12:19:42]protocol is kg_v1.0 [12:19:42]action value=close_receipt [12:19:42]process_action close_receipt [12:19:42]cmd_close_receipt [12:19:42]MH_GetDate [12:19:42]Write to MH i2c: F0 00 00 49 51 89 [12:19:42]Write i2c OK [12:19:42]MH_I2C_Read... [12:19:42]Read from MH i2c: F0 [12:19:42]MH_I2C_Read... [12:19:42]Read from MH i2c: F0 09 00 [12:19:42]MH_I2C_Read... [12:19:42]Read from MH i2c: F0 09 00 49 51 00 E2 46 16 67 A0 18 CA 66 1F [12:19:42]GetLastDocTimeStamp 1729513169 [12:19:42]current date 1729513186 [12:19:42]FM_GetShiftState [12:19:42]SAM_PROTO_GetShiftState [12:19:42]wFMCommunicate request_size=4 [12:19:42]MH_SAM_APDU [12:19:42]CAPDU: 80 13 01 00 [12:19:42]Write to MH i2c: E2 08 00 4A 51 80 13 01 00 00 00 00 00 18 [12:19:42]Write i2c OK [12:19:42]MH_I2C_Read... [12:19:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:19:42]Read from MH i2c: E2 [12:19:42]MH_I2C_Read... [12:19:42]Read from MH i2c: E2 0E 00 [12:19:42]MH_I2C_Read... [12:19:42]Read from MH i2c: E2 0E 00 4A 51 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 77 [12:19:42]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [12:19:42]wFMCommunicate OK [12:19:42]SAM_PROTO_GetShiftState done [12:19:42]FM_GetShiftState done [12:19:42]opened in 1729469754 [12:19:42]opened+sec_in_day 1729556154 [12:19:42]quantity*price = 50010 [12:19:42]sum+1 = 50012 [12:19:42]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 174 21.10.2024 12:19 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 187710 ФПД: 120337891307311 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T121946&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187710&fm=120337891307311&tin=02508201610067®Number=0000000000100030&sum=50000 [12:19:43]StoreToDocumentArchive [12:19:43]shift 460 fd 187710 [12:19:43]save to /storage/0460/doc_00187710 [12:19:43]save last doc name /storage/0460/doc_00187710 to /storage/kkm_last_doc_name [12:19:43]save OK [12:19:43]Clear old archive folders... [12:19:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:19:43]tlvbuf is 010902A0 [12:19:43]SAM_PROTO_ClearQueue [12:19:43]wFMCommunicate request_size=4 [12:19:43]MH_SAM_APDU [12:19:43]CAPDU: 80 09 00 00 [12:19:43]Write to MH i2c: E2 08 00 57 51 80 09 00 00 00 00 00 00 1A [12:19:43]Write i2c OK [12:19:43]MH_I2C_Read... [12:19:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:19:44]Read from MH i2c: E2 [12:19:44]MH_I2C_Read... [12:19:44]Read from MH i2c: E2 03 00 [12:19:44]MH_I2C_Read... [12:19:44]Read from MH i2c: E2 03 00 57 51 00 90 00 1C [12:19:44]RAPDU: 90 00 [12:19:44]wFMCommunicate OK [12:19:44]SAM_PROTO_ClearQueue done [12:19:44]KKMCreateOFDPacket [12:19:44]OFDProtocolAddRootSTLVToBuf [12:19:44]FM_MakeSignedData [12:19:44]FM_MakeSignedData [12:19:44]SAM_PROTO_SignData [12:19:44]wFMCommunicate request_size=4 [12:19:44]MH_SAM_APDU [12:19:44]CAPDU: 80 0D 01 02 [12:19:44]Write to MH i2c: E2 08 00 58 51 80 0D 01 02 00 00 00 00 22 [12:19:44]Write i2c OK [12:19:44]MH_I2C_Read... [12:19:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:19:44]Read from MH i2c: E2 [12:19:44]MH_I2C_Read... [12:19:44]Read from MH i2c: E2 03 00 [12:19:44]MH_I2C_Read... [12:19:44]Read from MH i2c: E2 03 00 58 51 00 90 00 1D [12:19:44]RAPDU: 90 00 [12:19:44]wFMCommunicate OK [12:19:44]wFMCommunicate request_size=255 [12:19:44]MH_SAM_APDU [12:19:44]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AE 00 00 00 F4 03 04 00 E2 46 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 3E DD 02 00 35 04 06 00 6D [12:19:44]Write to MH i2c: E2 02 01 59 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AE 00 00 00 F4 03 04 00 E2 46 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 3E DD 02 00 35 04 06 00 6D 00 00 17 [12:19:44]Write i2c OK [12:19:44]MH_I2C_Read... [12:19:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:19:44]Read from MH i2c: E2 [12:19:44]MH_I2C_Read... [12:19:44]Read from MH i2c: E2 03 00 [12:19:44]MH_I2C_Read... [12:19:44]Read from MH i2c: E2 03 00 59 51 00 90 00 1E [12:19:44]RAPDU: 90 00 [12:19:44]wFMCommunicate OK [12:19:44]wFMCommunicate request_size=10 [12:19:44]MH_SAM_APDU [12:19:44]CAPDU: 80 0D 02 02 05 72 59 43 AF 2F [12:19:44]Write to MH i2c: E2 0D 00 5A 51 80 0D 02 02 05 00 72 59 43 AF 2F 00 00 1B [12:19:44]Write i2c OK [12:19:44]MH_I2C_Read... [12:19:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:19:44]Read from MH i2c: E2 [12:19:44]MH_I2C_Read... [12:19:44]Read from MH i2c: E2 03 00 [12:19:44]MH_I2C_Read... [12:19:44]Read from MH i2c: E2 03 00 5A 51 00 90 00 1F [12:19:44]RAPDU: 90 00 [12:19:44]wFMCommunicate OK [12:19:44]wFMCommunicate request_size=4 [12:19:44]MH_SAM_APDU [12:19:44]CAPDU: 80 0D 03 02 [12:19:44]Write to MH i2c: E2 08 00 5B 51 80 0D 03 02 00 00 00 00 27 [12:19:44]Write i2c OK [12:19:44]MH_I2C_Read... [12:19:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:19:44]Read from MH i2c: E2 [12:19:44]MH_I2C_Read... [12:19:44]Read from MH i2c: E2 0B 00 [12:19:44]MH_I2C_Read... [12:19:44]Read from MH i2c: E2 0B 00 5B 51 00 FA 66 B9 83 BF 77 AF EC 90 00 95 [12:19:44]RAPDU: FA 66 B9 83 BF 77 AF EC 90 00 [12:19:44]wFMCommunicate OK [12:19:44]SAM_PROTO_SignData done [12:19:44]FM_MakeSignedData done [12:19:44]CreateOFDProtocolMessage [12:19:44]wFMCommunicate request_size=4 [12:19:44]MH_SAM_APDU [12:19:44]CAPDU: 80 11 00 00 [12:19:44]Write to MH i2c: E2 08 00 5C 51 80 11 00 00 00 00 00 00 27 [12:19:44]Write i2c OK [12:19:44]MH_I2C_Read... [12:19:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:19:44]Read from MH i2c: E2 [12:19:44]MH_I2C_Read... [12:19:44]Read from MH i2c: E2 17 00 [12:19:44]MH_I2C_Read... [12:19:44]Read from MH i2c: E2 17 00 5C 51 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 75 [12:19:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [12:19:44]wFMCommunicate OK [12:19:44]CreateOFDProtocolMessage done [12:19:44]OFDSenderStorePacket 187710 [12:19:44]StoreOFDPacket docnum=187710 [12:19:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 57 21 07 01 DE A0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AE 00 00 00 F4 03 04 00 E2 46 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 3E DD 02 00 35 04 06 00 6D 72 59 43 AF 2F FA 66 B9 83 BF 77 AF EC [12:19:44]CheckFolder [12:19:44]dirname=/storage/ofd_packets [12:19:44]CheckFolder done [12:19:44]ProducePacketName [12:19:44]name=ofd_packets/00187710 [12:19:44]NVStorageSaveData ofd_packets/00187710 [12:19:44]File name is /storage/ofd_packets/00187710 [12:19:44]Write 301 bytes [12:19:44]NVStorageSaveData done [12:19:44]OFDSenderStorePacket done [12:19:44]KKMCreateOFDPacket done [12:19:44]NVStorageSaveData kkm_last_timestamp [12:19:44]File name is /storage/kkm_last_timestamp [12:19:44]Write 4 bytes [12:19:44]NVStorageSaveData done [12:19:44]ExternCall_PrintAddStr [12:19:44]wPrintStart [12:19:44]Write to MH i2c: 01 00 00 5D 51 AE [12:19:44]Write i2c OK [12:19:44]MH_I2C_Read... [12:19:44]Read from MH i2c: 01 [12:19:44]MH_I2C_Read... [12:19:44]Read from MH i2c: 01 07 00 [12:19:44]MH_I2C_Read... [12:19:44]Read from MH i2c: 01 07 00 5D 51 00 00 00 00 00 FF 0F C3 [12:19:44]RasterBufferAndPrint [12:19:44]line Счет N : (1)209764 [12:19:44]line ИНН: 02508201610067 [12:19:44]line Контрольно-Кассовый Чек [12:19:44]line ПРОДАЖА [12:19:44]line ТРК (МРК, ГНК) : 33 [12:19:44]line Товар: 2710124500 [12:19:44]line Аи-95-К-3 [12:19:44]line 6.740 * 74.20 [12:19:44]line = 500.11 [12:19:44]line НДС 12% НСП 1% [12:19:44]line > о реализуемом товаре [12:19:44]line ОКРУГЛЕНИЕ: -0.11 [12:19:44]line ИТОГО: 500.00 [12:19:44]line Внесено: 500.00 [12:19:44]line СДАЧА: 0.00 [12:19:44]line НСП 1% : 4.43 [12:19:44]line НДС 12% : 53.11 [12:19:44]line Наличными: 500.00 [12:19:44]line Безнал.: 0.00 [12:19:44]line Место: АЗС № 86 "Партнер Нефть" [12:19:44]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [12:19:44]line СНО: Общий режим [12:19:44]line Чек 174 21.10.2024 12:19 [12:19:44]line Смена: 460 ФФД: 1.0 [12:19:44]line ЗНМ: 0300000155 [12:19:44]line РНМ: 0000000000100030 [12:19:44]line Версия ККМ: 001 [12:19:44]line ФМ: 0000000000965340 [12:19:44]line ФД: 187710 [12:19:44]line ФПД: 120337891307311 [12:19:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T121946&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187710&fm=120337891307311&tin=02508201610067®Number=0000000000100030&sum=50000 [12:19:44]written 0, free lines is 4095 [12:19:44]OFD Sender: Processing packet 187710 [packets to send 1062, broken 1061] [12:19:44]ProducePacketName [12:19:44]name=ofd_packets/00187710 [12:19:44]OFD Sender: To server: pG, [12:19:44]CommunicateWithHost lk.salyk.kg:30040 [12:19:44]ConnectInit lk.salyk.kg [12:19:44]Connected sock=9 [12:19:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 57 21 07 01 DE A0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AE 00 00 00 F4 03 04 00 E2 46 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 3E DD 02 00 35 04 06 00 6D 72 59 43 AF 2F FA 66 B9 83 BF 77 AF EC [12:19:45]Write to MH i2c: 01 00 00 88 51 D9 [12:19:45]Write i2c OK [12:19:45]MH_I2C_Read... [12:19:45]Read from MH i2c: 01 [12:19:45]MH_I2C_Read... [12:19:45]Read from MH i2c: 01 07 00 [12:19:45]MH_I2C_Read... [12:19:45]Read from MH i2c: 01 07 00 88 51 00 00 00 00 00 71 0C 5D [12:19:45]RasterBufferAndPrint [12:19:45]line [12:19:45]line [12:19:45]line [12:19:45]line [12:19:45]line [12:19:45]written 0, free lines is 3187 [12:19:45]MH_Cut [12:19:45]Write to MH i2c: D1 01 00 8F 51 01 B2 [12:19:45]Write i2c OK [12:19:45]MH_I2C_Read... [12:19:45]Read from MH i2c: D1 [12:19:45]MH_I2C_Read... [12:19:45]Read from MH i2c: D1 01 00 [12:19:45]MH_I2C_Read... [12:19:45]Read from MH i2c: D1 01 00 8F 51 00 B1 [12:19:45]Write to MH i2c: 01 00 00 90 51 E1 [12:19:45]Write i2c OK [12:19:45]MH_I2C_Read... [12:19:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 60 FD 47 00 27 09 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 3E DD 02 00 F4 03 04 00 D2 F0 15 67 B6 04 01 00 00 A1 20 50 EB 74 A8 81 CC [12:19:45]CommunicateWithHost err = 0 [12:19:45]CheckOFDResponse [12:19:45]1017 (14) - 77093643461234 [12:19:45]1041 (16) - 0000000000965340 [12:19:45]1040 (4) - 187710 [12:19:45]1012 (4) - 21.10.2024 06:12 [12:19:45]1206 (1) - 0 [12:19:45]OFD Sender: Remove packet 187710 [12:19:45]ProducePacketName [12:19:45]name=ofd_packets/00187710 [12:19:45]NVStorageDeleteData [12:19:45]OFD Sender: No OFD packet to send [12:19:46]*** Cut start [12:19:46]*** Partial cut [12:19:46]*** CUTSNS_PIN = 1 [12:19:46]*** CUTSNS_PIN = 0 [12:19:46]*** Brake cut motor [12:19:46]Read from MH i2c: 01 [12:19:46]MH_I2C_Read... [12:19:46]*** Stop cut motor [12:19:46]*** Cut end [12:19:46]Read from MH i2c: 01 07 00 [12:19:46]MH_I2C_Read... [12:19:46]Read from MH i2c: 01 07 00 90 51 00 00 00 00 00 FF 0F F6 [12:19:46]process_action close_receipt done [12:19:46]requested_data is exist [12:19:46]produce_requested_data [12:19:46]requested_item fm.sn is exist - process it [12:19:46]wFMCommunicate request_size=4 [12:19:46]MH_SAM_APDU [12:19:46]CAPDU: 80 11 00 00 [12:19:46]Write to MH i2c: E2 08 00 91 51 80 11 00 00 00 00 00 00 5C [12:19:46]Write i2c OK [12:19:46]MH_I2C_Read... [12:19:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:19:46]Read from MH i2c: E2 [12:19:46]MH_I2C_Read... [12:19:46]Read from MH i2c: E2 17 00 [12:19:46]MH_I2C_Read... [12:19:46]Read from MH i2c: E2 17 00 91 51 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 AA [12:19:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [12:19:46]wFMCommunicate OK [12:19:46]requested_item fd.num is exist - process it [12:19:46]SAM_PROTO_GetFieldsCounters [12:19:46]wFMCommunicate request_size=4 [12:19:46]MH_SAM_APDU [12:19:46]CAPDU: 80 13 00 00 [12:19:46]Write to MH i2c: E2 08 00 92 51 80 13 00 00 00 00 00 00 5F [12:19:46]Write i2c OK [12:19:46]MH_I2C_Read... [12:19:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:19:46]Read from MH i2c: E2 [12:19:46]MH_I2C_Read... [12:19:46]Read from MH i2c: E2 62 00 [12:19:46]MH_I2C_Read... [12:19:46]Read from MH i2c: E2 62 00 92 51 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 3E DD 02 00 0E 04 04 00 CC 01 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 5A [12:19:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 3E DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 AE 00 00 00 5E 04 04 00 AE 00 00 00 57 04 04 00 AF 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:19:46]wFMCommunicate OK [12:19:46]SAM_PROTO_GetFieldsCounters done [12:19:46]requested_item shift.num is exist - process it [12:19:46]requested_item shift.opened is exist - process it [12:19:46]req_shift_opened [12:19:46]FM_GetShiftState [12:19:46]SAM_PROTO_GetShiftState [12:19:46]wFMCommunicate request_size=4 [12:19:46]MH_SAM_APDU [12:19:46]CAPDU: 80 13 01 00 [12:19:46]Write to MH i2c: E2 08 00 93 51 80 13 01 00 00 00 00 00 61 [12:19:46]Write i2c OK [12:19:46]MH_I2C_Read... [12:19:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:19:47]Read from MH i2c: E2 [12:19:47]MH_I2C_Read... [12:19:47]Read from MH i2c: E2 0E 00 [12:19:47]MH_I2C_Read... [12:19:47]Read from MH i2c: E2 0E 00 93 51 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 C0 [12:19:47]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [12:19:47]wFMCommunicate OK [12:19:47]SAM_PROTO_GetShiftState done [12:19:47]FM_GetShiftState done [12:19:47]req_shift_opened done [12:19:47]requested_item shift.open_date is exist - process it [12:19:47]req_shift_open_date [12:19:47]req_shift_open_date done [12:19:47]produce_requested_data done [12:19:47]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187710,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [12:19:47]process_action_free close_receipt [12:19:47]json_value_free [12:19:47]json_value_free done [12:19:47]process_json_proto returns [12:19:47]Send response to host [12:19:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187710,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [12:19:47]free response buf [12:19:47]execute_script done [12:19:47]execute_script returns [12:19:47]free content buf [12:19:47]Sock 8.Close socket [12:19:47]Sock 8.Thread stoped [12:19:47]accept exits with 10 [12:19:47]New connection [12:19:47]New thread 3067014500 created [12:19:47]Thread 3067157860 joined [12:19:47]Waiting for new connection... [12:19:47] Sock 10.Parse request [12:19:47]Sock 10.Check first char [12:19:47]Sock 10.First char is OK [12:19:47]request: POST /json_proto HTTP/1.0 [12:19:47]Method: POST [12:19:47]URL: /json_proto [12:19:47]Method is POST - this is cgi request [12:19:47]url: /json_proto [12:19:47]query_string will be loaded in cgi processing [12:19:47]execute_cgi json_proto POST (null) [12:19:47]execute_cgi path=json_proto method=POST [12:19:47]POST find Content-Length [12:19:47]Host: 172.17.42.131:8080 [12:19:47]Content-Length: 682 [12:19:47]Content-Type: application/json [12:19:47] [12:19:47]POST finish read [12:19:47]Found Content-Length = 682 [12:19:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209761", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 26.960, "sum" : 2000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:19:47]execute_script... [12:19:47]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209761", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 26.960, "sum" : 2000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:19:47]POST & json_proto [12:19:47]process_json_proto [12:19:47]json parsed OK: [12:19:47]protocol is kg_v1.0 [12:19:47]action value=close_receipt [12:19:47]process_action close_receipt [12:19:47]cmd_close_receipt [12:19:47]MH_GetDate [12:19:47]Write to MH i2c: F0 00 00 94 51 D4 [12:19:47]Write i2c OK [12:19:47]MH_I2C_Read... [12:19:47]Read from MH i2c: F0 [12:19:47]MH_I2C_Read... [12:19:47]Read from MH i2c: F0 09 00 [12:19:47]MH_I2C_Read... [12:19:47]Read from MH i2c: F0 09 00 94 51 00 E7 46 16 67 A0 18 CA 66 6F [12:19:47]GetLastDocTimeStamp 1729513186 [12:19:47]current date 1729513191 [12:19:47]FM_GetShiftState [12:19:47]SAM_PROTO_GetShiftState [12:19:47]wFMCommunicate request_size=4 [12:19:47]MH_SAM_APDU [12:19:47]CAPDU: 80 13 01 00 [12:19:47]Write to MH i2c: E2 08 00 95 51 80 13 01 00 00 00 00 00 63 [12:19:47]Write i2c OK [12:19:47]MH_I2C_Read... [12:19:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:19:47]Read from MH i2c: E2 [12:19:47]MH_I2C_Read... [12:19:47]Read from MH i2c: E2 0E 00 [12:19:47]MH_I2C_Read... [12:19:47]Read from MH i2c: E2 0E 00 95 51 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 C2 [12:19:47]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [12:19:47]wFMCommunicate OK [12:19:47]SAM_PROTO_GetShiftState done [12:19:47]FM_GetShiftState done [12:19:47]opened in 1729469754 [12:19:47]opened+sec_in_day 1729556154 [12:19:47]quantity*price = 200043 [12:19:47]sum+1 = 200044 [12:19:47]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.43 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.43 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 175 21.10.2024 12:19 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 187711 ФПД: 107749503112580 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T121951&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187711&fm=107749503112580&tin=02508201610067®Number=0000000000100030&sum=200000 [12:19:48]StoreToDocumentArchive [12:19:48]shift 460 fd 187711 [12:19:48]save to /storage/0460/doc_00187711 [12:19:48]save last doc name /storage/0460/doc_00187711 to /storage/kkm_last_doc_name [12:19:48]save OK [12:19:48]Clear old archive folders... [12:19:48]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:19:48]tlvbuf is 0109A280 [12:19:48]SAM_PROTO_ClearQueue [12:19:48]wFMCommunicate request_size=4 [12:19:48]MH_SAM_APDU [12:19:48]CAPDU: 80 09 00 00 [12:19:48]Write to MH i2c: E2 08 00 A2 51 80 09 00 00 00 00 00 00 65 [12:19:48]Write i2c OK [12:19:48]MH_I2C_Read... [12:19:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:19:48]Read from MH i2c: E2 [12:19:48]MH_I2C_Read... [12:19:48]Read from MH i2c: E2 03 00 [12:19:48]MH_I2C_Read... [12:19:48]Read from MH i2c: E2 03 00 A2 51 00 90 00 67 [12:19:48]RAPDU: 90 00 [12:19:48]wFMCommunicate OK [12:19:48]SAM_PROTO_ClearQueue done [12:19:48]KKMCreateOFDPacket [12:19:48]OFDProtocolAddRootSTLVToBuf [12:19:48]FM_MakeSignedData [12:19:48]FM_MakeSignedData [12:19:48]SAM_PROTO_SignData [12:19:48]wFMCommunicate request_size=4 [12:19:48]MH_SAM_APDU [12:19:48]CAPDU: 80 0D 01 02 [12:19:48]Write to MH i2c: E2 08 00 A3 51 80 0D 01 02 00 00 00 00 6D [12:19:48]Write i2c OK [12:19:48]MH_I2C_Read... [12:19:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:19:48]Read from MH i2c: E2 [12:19:48]MH_I2C_Read... [12:19:48]Read from MH i2c: E2 03 00 [12:19:48]MH_I2C_Read... [12:19:48]Read from MH i2c: E2 03 00 A3 51 00 90 00 68 [12:19:48]RAPDU: 90 00 [12:19:48]wFMCommunicate OK [12:19:48]wFMCommunicate request_size=255 [12:19:48]MH_SAM_APDU [12:19:48]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AF 00 00 00 F4 03 04 00 E7 46 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 3F DD 02 00 35 04 06 00 61 [12:19:48]Write to MH i2c: E2 02 01 A4 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AF 00 00 00 F4 03 04 00 E7 46 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 3F DD 02 00 35 04 06 00 61 00 00 2D [12:19:49]Write i2c OK [12:19:49]MH_I2C_Read... [12:19:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:19:49]Read from MH i2c: E2 [12:19:49]MH_I2C_Read... [12:19:49]Read from MH i2c: E2 03 00 [12:19:49]MH_I2C_Read... [12:19:49]Read from MH i2c: E2 03 00 A4 51 00 90 00 69 [12:19:49]RAPDU: 90 00 [12:19:49]wFMCommunicate OK [12:19:49]wFMCommunicate request_size=10 [12:19:49]MH_SAM_APDU [12:19:49]CAPDU: 80 0D 02 02 05 FF 62 DB 95 84 [12:19:49]Write to MH i2c: E2 0D 00 A5 51 80 0D 02 02 05 00 FF 62 DB 95 84 00 00 CF [12:19:49]Write i2c OK [12:19:49]MH_I2C_Read... [12:19:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:19:49]Read from MH i2c: E2 [12:19:49]MH_I2C_Read... [12:19:49]Read from MH i2c: E2 03 00 [12:19:49]MH_I2C_Read... [12:19:49]Read from MH i2c: E2 03 00 A5 51 00 90 00 6A [12:19:49]RAPDU: 90 00 [12:19:49]wFMCommunicate OK [12:19:49]wFMCommunicate request_size=4 [12:19:49]MH_SAM_APDU [12:19:49]CAPDU: 80 0D 03 02 [12:19:49]Write to MH i2c: E2 08 00 A6 51 80 0D 03 02 00 00 00 00 72 [12:19:49]Write i2c OK [12:19:49]MH_I2C_Read... [12:19:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:19:49]Read from MH i2c: E2 [12:19:49]MH_I2C_Read... [12:19:49]Read from MH i2c: E2 0B 00 [12:19:49]MH_I2C_Read... [12:19:49]Read from MH i2c: E2 0B 00 A6 51 00 52 FA 59 31 C4 24 98 6C 90 00 35 [12:19:49]RAPDU: 52 FA 59 31 C4 24 98 6C 90 00 [12:19:49]wFMCommunicate OK [12:19:49]SAM_PROTO_SignData done [12:19:49]FM_MakeSignedData done [12:19:49]CreateOFDProtocolMessage [12:19:49]wFMCommunicate request_size=4 [12:19:49]MH_SAM_APDU [12:19:49]CAPDU: 80 11 00 00 [12:19:49]Write to MH i2c: E2 08 00 A7 51 80 11 00 00 00 00 00 00 72 [12:19:49]Write i2c OK [12:19:49]MH_I2C_Read... [12:19:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:19:49]Read from MH i2c: E2 [12:19:49]MH_I2C_Read... [12:19:49]Read from MH i2c: E2 17 00 [12:19:49]MH_I2C_Read... [12:19:49]Read from MH i2c: E2 17 00 A7 51 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 C0 [12:19:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [12:19:49]wFMCommunicate OK [12:19:49]CreateOFDProtocolMessage done [12:19:49]OFDSenderStorePacket 187711 [12:19:49]StoreOFDPacket docnum=187711 [12:19:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 C3 57 07 01 F7 6F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AF 00 00 00 F4 03 04 00 E7 46 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 3F DD 02 00 35 04 06 00 61 FF 62 DB 95 84 52 FA 59 31 C4 24 98 6C [12:19:49]CheckFolder [12:19:49]dirname=/storage/ofd_packets [12:19:49]CheckFolder done [12:19:49]ProducePacketName [12:19:49]name=ofd_packets/00187711 [12:19:49]NVStorageSaveData ofd_packets/00187711 [12:19:49]File name is /storage/ofd_packets/00187711 [12:19:49]Write 301 bytes [12:19:49]NVStorageSaveData done [12:19:49]OFDSenderStorePacket done [12:19:49]KKMCreateOFDPacket done [12:19:49]NVStorageSaveData kkm_last_timestamp [12:19:49]File name is /storage/kkm_last_timestamp [12:19:49]Write 4 bytes [12:19:49]NVStorageSaveData done [12:19:49]ExternCall_PrintAddStr [12:19:49]wPrintStart [12:19:49]Write to MH i2c: 01 00 00 A8 51 F9 [12:19:49]Write i2c OK [12:19:49]MH_I2C_Read... [12:19:49]Read from MH i2c: 01 [12:19:49]MH_I2C_Read... [12:19:49]Read from MH i2c: 01 07 00 [12:19:49]MH_I2C_Read... [12:19:49]Read from MH i2c: 01 07 00 A8 51 00 00 00 00 00 FF 0F 0E [12:19:49]RasterBufferAndPrint [12:19:49]line Счет N : (1)209761 [12:19:49]line ИНН: 02508201610067 [12:19:49]line Контрольно-Кассовый Чек [12:19:49]line ПРОДАЖА [12:19:49]line ТРК (МРК, ГНК) : 43 [12:19:49]line Товар: 2710124500 [12:19:49]line Аи-95-К-3 [12:19:49]line 26.960 * 74.20 [12:19:49]line = 2000.43 [12:19:49]line НДС 12% НСП 1% [12:19:49]line > о реализуемом товаре [12:19:49]line ОКРУГЛЕНИЕ: -0.43 [12:19:49]line ИТОГО: 2000.00 [12:19:49]line Внесено: 2000.00 [12:19:49]line СДАЧА: 0.00 [12:19:49]line НСП 1% : 17.70 [12:19:49]line НДС 12% : 212.43 [12:19:49]line Наличными: 2000.00 [12:19:49]line Безнал.: 0.00 [12:19:49]line Место: АЗС № 86 "Партнер Нефть" [12:19:49]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [12:19:49]line СНО: Общий режим [12:19:49]line Чек 175 21.10.2024 12:19 [12:19:49]line Смена: 460 ФФД: 1.0 [12:19:49]line ЗНМ: 0300000155 [12:19:49]line РНМ: 0000000000100030 [12:19:49]line Версия ККМ: 001 [12:19:49]line ФМ: 0000000000965340 [12:19:49]line ФД: 187711 [12:19:49]line ФПД: 107749503112580 [12:19:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T121951&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187711&fm=107749503112580&tin=02508201610067®Number=0000000000100030&sum=200000 [12:19:49]written 0, free lines is 4095 [12:19:49]OFD Sender: Processing packet 187711 [packets to send 1062, broken 1061] [12:19:49]ProducePacketName [12:19:49]name=ofd_packets/00187711 [12:19:49]OFD Sender: To server: pG, [12:19:49]CommunicateWithHost lk.salyk.kg:30040 [12:19:49]ConnectInit lk.salyk.kg [12:19:49]Write to MH i2c: 01 00 00 D3 51 24 [12:19:49]Write i2c OK [12:19:49]MH_I2C_Read... [12:19:49]Read from MH i2c: 01 [12:19:49]MH_I2C_Read... [12:19:49]Read from MH i2c: 01 07 00 [12:19:49]MH_I2C_Read... [12:19:49]Read from MH i2c: 01 07 00 D3 51 00 00 00 00 00 79 0C B0 [12:19:49]RasterBufferAndPrint [12:19:49]line [12:19:49]line [12:19:49]line [12:19:49]line [12:19:49]line [12:19:49]written 0, free lines is 3202 [12:19:49]MH_Cut [12:19:49]Write to MH i2c: D1 01 00 DA 51 01 FD [12:19:49]Write i2c OK [12:19:49]MH_I2C_Read... [12:19:49]Read from MH i2c: D1 [12:19:49]MH_I2C_Read... [12:19:49]Read from MH i2c: D1 01 00 [12:19:49]MH_I2C_Read... [12:19:49]Read from MH i2c: D1 01 00 DA 51 00 FC [12:19:49]Write to MH i2c: 01 00 00 DB 51 2C [12:19:49]Write i2c OK [12:19:49]MH_I2C_Read... [12:19:49]Connected sock=9 [12:19:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 C3 57 07 01 F7 6F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AF 00 00 00 F4 03 04 00 E7 46 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 3F DD 02 00 35 04 06 00 61 FF 62 DB 95 84 52 FA 59 31 C4 24 98 6C [12:19:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 00 E0 47 00 B0 6F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 3F DD 02 00 F4 03 04 00 D7 F0 15 67 B6 04 01 00 00 8D 0D DC 11 51 BF F2 03 [12:19:50]CommunicateWithHost err = 0 [12:19:50]CheckOFDResponse [12:19:50]1017 (14) - 77093643461234 [12:19:50]1041 (16) - 0000000000965340 [12:19:50]1040 (4) - 187711 [12:19:50]1012 (4) - 21.10.2024 06:12 [12:19:50]1206 (1) - 0 [12:19:50]OFD Sender: Remove packet 187711 [12:19:50]ProducePacketName [12:19:50]name=ofd_packets/00187711 [12:19:50]NVStorageDeleteData [12:19:50]OFD Sender: No OFD packet to send [12:19:50]*** Cut start [12:19:50]*** Partial cut [12:19:50]*** CUTSNS_PIN = 1 [12:19:51]*** CUTSNS_PIN = 0 [12:19:51]*** Brake cut motor [12:19:51]Read from MH i2c: 01 [12:19:51]MH_I2C_Read... [12:19:51]*** Stop cut motor [12:19:51]*** Cut end [12:19:51]Read from MH i2c: 01 07 00 [12:19:51]MH_I2C_Read... [12:19:51]Read from MH i2c: 01 07 00 DB 51 00 00 00 00 00 FF 0F 41 [12:19:51]process_action close_receipt done [12:19:51]requested_data is exist [12:19:51]produce_requested_data [12:19:51]requested_item fm.sn is exist - process it [12:19:51]wFMCommunicate request_size=4 [12:19:51]MH_SAM_APDU [12:19:51]CAPDU: 80 11 00 00 [12:19:51]Write to MH i2c: E2 08 00 DC 51 80 11 00 00 00 00 00 00 A7 [12:19:51]Write i2c OK [12:19:51]MH_I2C_Read... [12:19:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:19:51]Read from MH i2c: E2 [12:19:51]MH_I2C_Read... [12:19:51]Read from MH i2c: E2 17 00 [12:19:51]MH_I2C_Read... [12:19:51]Read from MH i2c: E2 17 00 DC 51 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 F5 [12:19:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [12:19:51]wFMCommunicate OK [12:19:51]requested_item fd.num is exist - process it [12:19:51]SAM_PROTO_GetFieldsCounters [12:19:51]wFMCommunicate request_size=4 [12:19:51]MH_SAM_APDU [12:19:51]CAPDU: 80 13 00 00 [12:19:51]Write to MH i2c: E2 08 00 DD 51 80 13 00 00 00 00 00 00 AA [12:19:51]Write i2c OK [12:19:51]MH_I2C_Read... [12:19:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:19:51]Read from MH i2c: E2 [12:19:51]MH_I2C_Read... [12:19:51]Read from MH i2c: E2 62 00 [12:19:51]MH_I2C_Read... [12:19:51]Read from MH i2c: E2 62 00 DD 51 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 3F DD 02 00 0E 04 04 00 CC 01 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 A9 [12:19:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 3F DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 AF 00 00 00 5E 04 04 00 AF 00 00 00 57 04 04 00 B0 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:19:51]wFMCommunicate OK [12:19:51]SAM_PROTO_GetFieldsCounters done [12:19:51]requested_item shift.num is exist - process it [12:19:51]requested_item shift.opened is exist - process it [12:19:51]req_shift_opened [12:19:51]FM_GetShiftState [12:19:51]SAM_PROTO_GetShiftState [12:19:51]wFMCommunicate request_size=4 [12:19:51]MH_SAM_APDU [12:19:51]CAPDU: 80 13 01 00 [12:19:51]Write to MH i2c: E2 08 00 DE 51 80 13 01 00 00 00 00 00 AC [12:19:51]Write i2c OK [12:19:51]MH_I2C_Read... [12:19:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:19:51]Read from MH i2c: E2 [12:19:51]MH_I2C_Read... [12:19:51]Read from MH i2c: E2 0E 00 [12:19:51]MH_I2C_Read... [12:19:51]Read from MH i2c: E2 0E 00 DE 51 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 0B [12:19:51]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [12:19:51]wFMCommunicate OK [12:19:51]SAM_PROTO_GetShiftState done [12:19:51]FM_GetShiftState done [12:19:51]req_shift_opened done [12:19:51]requested_item shift.open_date is exist - process it [12:19:51]req_shift_open_date [12:19:51]req_shift_open_date done [12:19:51]produce_requested_data done [12:19:51]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187711,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [12:19:51]process_action_free close_receipt [12:19:51]json_value_free [12:19:51]json_value_free done [12:19:51]process_json_proto returns [12:19:51]Send response to host [12:19:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187711,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [12:19:51]free response buf [12:19:51]execute_script done [12:19:51]execute_script returns [12:19:51]free content buf [12:19:51]Sock 10.Close socket [12:19:51]Sock 10.Thread stoped [12:19:52]accept exits with 8 [12:19:52]New connection [12:19:52]New thread 3067157860 created [12:19:52]Thread 3067014500 joined [12:19:52]Waiting for new connection... [12:19:52] Sock 8.Parse request [12:19:52]Sock 8.Check first char [12:19:52]Sock 8.First char is OK [12:19:52]request: POST /json_proto HTTP/1.0 [12:19:52]Method: POST [12:19:52]URL: /json_proto [12:19:52]Method is POST - this is cgi request [12:19:52]url: /json_proto [12:19:52]query_string will be loaded in cgi processing [12:19:52]execute_cgi json_proto POST (null) [12:19:52]execute_cgi path=json_proto method=POST [12:19:52]POST find Content-Length [12:19:52]Host: 172.17.42.131:8080 [12:19:52]Content-Length: 769 [12:19:52]Content-Type: application/json [12:19:52] [12:19:52]POST finish read [12:19:52]Found Content-Length = 769 [12:19:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209763", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 19.320, "sum" : 1292.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" : 1292.51 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:19:52]execute_script... [12:19: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)209763", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 19.320, "sum" : 1292.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" : 1292.51 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:19:52]POST & json_proto [12:19:52]process_json_proto [12:19:52]json parsed OK: [12:19:52]protocol is kg_v1.0 [12:19:52]action value=close_receipt [12:19:52]process_action close_receipt [12:19:52]cmd_close_receipt [12:19:52]MH_GetDate [12:19:52]Write to MH i2c: F0 00 00 DF 51 1F [12:19:52]Write i2c OK [12:19:52]MH_I2C_Read... [12:19:52]Read from MH i2c: F0 [12:19:52]MH_I2C_Read... [12:19:52]Read from MH i2c: F0 09 00 [12:19:52]MH_I2C_Read... [12:19:52]Read from MH i2c: F0 09 00 DF 51 00 EC 46 16 67 A0 18 CA 66 BF [12:19:52]GetLastDocTimeStamp 1729513191 [12:19:52]current date 1729513196 [12:19:52]FM_GetShiftState [12:19:52]SAM_PROTO_GetShiftState [12:19:52]wFMCommunicate request_size=4 [12:19:52]MH_SAM_APDU [12:19:52]CAPDU: 80 13 01 00 [12:19:52]Write to MH i2c: E2 08 00 E0 51 80 13 01 00 00 00 00 00 AE [12:19:52]Write i2c OK [12:19:52]MH_I2C_Read... [12:19:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:19:52]Read from MH i2c: E2 [12:19:52]MH_I2C_Read... [12:19:52]Read from MH i2c: E2 0E 00 [12:19:52]MH_I2C_Read... [12:19:52]Read from MH i2c: E2 0E 00 E0 51 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 0D [12:19:52]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [12:19:52]wFMCommunicate OK [12:19:52]SAM_PROTO_GetShiftState done [12:19:52]FM_GetShiftState done [12:19:52]opened in 1729469754 [12:19:52]opened+sec_in_day 1729556154 [12:19:52]quantity*price = 129250 [12:19:52]sum+1 = 129252 [12:19:52]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1292.51 НСП 1% : 11.44 НДС 12% : 137.26 Наличными: 0.00 Безнал.: 1292.51 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 176 21.10.2024 12:19 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000965340 ФД: 187712 ФПД: 277402186743415 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T121956&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187712&fm=277402186743415&tin=02508201610067®Number=0000000000100030&sum=129251 [12:19:53]StoreToDocumentArchive [12:19:53]shift 460 fd 187712 [12:19:53]save to /storage/0460/doc_00187712 [12:19:53]save last doc name /storage/0460/doc_00187712 to /storage/kkm_last_doc_name [12:19:53]save OK [12:19:53]Clear old archive folders... [12:19:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:19:53]tlvbuf is B6F87750 [12:19:53]SAM_PROTO_ClearQueue [12:19:53]wFMCommunicate request_size=4 [12:19:53]MH_SAM_APDU [12:19:53]CAPDU: 80 09 00 00 [12:19:53]Write to MH i2c: E2 08 00 ED 51 80 09 00 00 00 00 00 00 B0 [12:19:53]Write i2c OK [12:19:53]MH_I2C_Read... [12:19:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:19:53]Read from MH i2c: E2 [12:19:53]MH_I2C_Read... [12:19:53]Read from MH i2c: E2 03 00 [12:19:53]MH_I2C_Read... [12:19:53]Read from MH i2c: E2 03 00 ED 51 00 90 00 B2 [12:19:53]RAPDU: 90 00 [12:19:53]wFMCommunicate OK [12:19:53]SAM_PROTO_ClearQueue done [12:19:53]KKMCreateOFDPacket [12:19:53]OFDProtocolAddRootSTLVToBuf [12:19:53]FM_MakeSignedData [12:19:53]FM_MakeSignedData [12:19:53]SAM_PROTO_SignData [12:19:53]wFMCommunicate request_size=4 [12:19:53]MH_SAM_APDU [12:19:53]CAPDU: 80 0D 01 02 [12:19:53]Write to MH i2c: E2 08 00 EE 51 80 0D 01 02 00 00 00 00 B8 [12:19:53]Write i2c OK [12:19:53]MH_I2C_Read... [12:19:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:19:53]Read from MH i2c: E2 [12:19:53]MH_I2C_Read... [12:19:53]Read from MH i2c: E2 03 00 [12:19:53]MH_I2C_Read... [12:19:53]Read from MH i2c: E2 03 00 EE 51 00 90 00 B3 [12:19:53]RAPDU: 90 00 [12:19:53]wFMCommunicate OK [12:19:53]wFMCommunicate request_size=255 [12:19:53]MH_SAM_APDU [12:19: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 33 FF 03 08 00 03 78 4B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 E3 F8 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E3 F8 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 78 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9E 35 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E3 F8 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 B0 00 00 00 F4 03 04 00 EC 46 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 40 DD 02 00 35 04 06 00 FC [12:19:53]Write to MH i2c: E2 02 01 EF 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 33 FF 03 08 00 03 78 4B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 E3 F8 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E3 F8 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 78 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9E 35 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E3 F8 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 B0 00 00 00 F4 03 04 00 EC 46 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 40 DD 02 00 35 04 06 00 FC 00 00 CF [12:19:53]Write i2c OK [12:19:53]MH_I2C_Read... [12:19:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:19:54]Read from MH i2c: E2 [12:19:54]MH_I2C_Read... [12:19:54]Read from MH i2c: E2 03 00 [12:19:54]MH_I2C_Read... [12:19:54]Read from MH i2c: E2 03 00 EF 51 00 90 00 B4 [12:19:54]RAPDU: 90 00 [12:19:54]wFMCommunicate OK [12:19:54]wFMCommunicate request_size=10 [12:19:54]MH_SAM_APDU [12:19:54]CAPDU: 80 0D 02 02 05 4B BA CC FE 77 [12:19:54]Write to MH i2c: E2 0D 00 F0 51 80 0D 02 02 05 00 4B BA CC FE 77 00 00 0B [12:19:54]Write i2c OK [12:19:54]MH_I2C_Read... [12:19:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:19:54]Read from MH i2c: E2 [12:19:54]MH_I2C_Read... [12:19:54]Read from MH i2c: E2 03 00 [12:19:54]MH_I2C_Read... [12:19:54]Read from MH i2c: E2 03 00 F0 51 00 90 00 B5 [12:19:54]RAPDU: 90 00 [12:19:54]wFMCommunicate OK [12:19:54]wFMCommunicate request_size=4 [12:19:54]MH_SAM_APDU [12:19:54]CAPDU: 80 0D 03 02 [12:19:54]Write to MH i2c: E2 08 00 F1 51 80 0D 03 02 00 00 00 00 BD [12:19:54]Write i2c OK [12:19:54]MH_I2C_Read... [12:19:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:19:54]Read from MH i2c: E2 [12:19:54]MH_I2C_Read... [12:19:54]Read from MH i2c: E2 0B 00 [12:19:54]MH_I2C_Read... [12:19:54]Read from MH i2c: E2 0B 00 F1 51 00 88 9B 8C 28 94 3B 4C 56 90 00 06 [12:19:54]RAPDU: 88 9B 8C 28 94 3B 4C 56 90 00 [12:19:54]wFMCommunicate OK [12:19:54]SAM_PROTO_SignData done [12:19:54]FM_MakeSignedData done [12:19:54]CreateOFDProtocolMessage [12:19:54]wFMCommunicate request_size=4 [12:19:54]MH_SAM_APDU [12:19:54]CAPDU: 80 11 00 00 [12:19:54]Write to MH i2c: E2 08 00 F2 51 80 11 00 00 00 00 00 00 BD [12:19:54]Write i2c OK [12:19:54]MH_I2C_Read... [12:19:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:19:54]Read from MH i2c: E2 [12:19:54]MH_I2C_Read... [12:19:54]Read from MH i2c: E2 17 00 [12:19:54]MH_I2C_Read... [12:19:54]Read from MH i2c: E2 17 00 F2 51 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 0B [12:19:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [12:19:54]wFMCommunicate OK [12:19:54]CreateOFDProtocolMessage done [12:19:54]OFDSenderStorePacket 187712 [12:19:54]StoreOFDPacket docnum=187712 [12:19:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 CD DD 07 01 F1 C5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 78 4B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 E3 F8 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E3 F8 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 78 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9E 35 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E3 F8 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 B0 00 00 00 F4 03 04 00 EC 46 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 40 DD 02 00 35 04 06 00 FC 4B BA CC FE 77 88 9B 8C 28 94 3B 4C 56 [12:19:54]CheckFolder [12:19:54]dirname=/storage/ofd_packets [12:19:54]CheckFolder done [12:19:54]ProducePacketName [12:19:54]name=ofd_packets/00187712 [12:19:54]NVStorageSaveData ofd_packets/00187712 [12:19:54]File name is /storage/ofd_packets/00187712 [12:19:54]Write 301 bytes [12:19:54]NVStorageSaveData done [12:19:54]OFDSenderStorePacket done [12:19:54]KKMCreateOFDPacket done [12:19:54]NVStorageSaveData kkm_last_timestamp [12:19:54]File name is /storage/kkm_last_timestamp [12:19:54]Write 4 bytes [12:19:54]NVStorageSaveData done [12:19:54]ExternCall_PrintAddStr [12:19:54]wPrintStart [12:19:54]Write to MH i2c: 01 00 00 F3 51 44 [12:19:54]Write i2c OK [12:19:54]MH_I2C_Read... [12:19:54]Read from MH i2c: 01 [12:19:54]MH_I2C_Read... [12:19:54]Read from MH i2c: 01 07 00 [12:19:54]MH_I2C_Read... [12:19:54]Read from MH i2c: 01 07 00 F3 51 00 00 00 00 00 FF 0F 59 [12:19:54]RasterBufferAndPrint [12:19:54]line Счет N : (1)209763 [12:19:54]line ИНН: 02508201610067 [12:19:54]line Контрольно-Кассовый Чек [12:19:54]line ПРОДАЖА [12:19:54]line ТРК (МРК, ГНК) : 12 [12:19:54]line Товар: 2710124130 [12:19:54]line Аи-92-К-3 [12:19:54]line 19.320 * 66.90 [12:19:54]line = 1292.51 [12:19:54]line НДС 12% НСП 1% [12:19:54]line > о реализуемом товаре [12:19:54]line ИТОГО: 1292.51 [12:19:54]line НСП 1% : 11.44 [12:19:54]line НДС 12% : 137.26 [12:19:54]line Наличными: 0.00 [12:19:54]line Безнал.: 1292.51 [12:19:54]line Место: АЗС № 86 "Партнер Нефть" [12:19:54]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [12:19:54]line СНО: Общий режим [12:19:54]line Чек 176 21.10.2024 12:19 [12:19:54]line Смена: 460 ФФД: 1.0 [12:19:54]line ЗНМ: 0300000155 [12:19:54]line РНМ: 0000000000100030 [12:19:54]line Версия ККМ: 001 [12:19:54]line Платежная система: Mbank [12:19:54]line ФМ: 0000000000965340 [12:19:54]line ФД: 187712 [12:19:54]line ФПД: 277402186743415 [12:19:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T121956&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187712&fm=277402186743415&tin=02508201610067®Number=0000000000100030&sum=129251 [12:19:54]written 0, free lines is 4095 [12:19:54]OFD Sender: Processing packet 187712 [packets to send 1062, broken 1061] [12:19:54]ProducePacketName [12:19:54]name=ofd_packets/00187712 [12:19:54]OFD Sender: To server: pG, [12:19:54]CommunicateWithHost lk.salyk.kg:30040 [12:19:54]ConnectInit lk.salyk.kg [12:19:54]Connected sock=10 [12:19:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 CD DD 07 01 F1 C5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 78 4B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 E3 F8 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E3 F8 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 78 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9E 35 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E3 F8 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 B0 00 00 00 F4 03 04 00 EC 46 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 40 DD 02 00 35 04 06 00 FC 4B BA CC FE 77 88 9B 8C 28 94 3B 4C 56 [12:19:54]Write to MH i2c: 01 00 00 1C 52 6E [12:19:54]Write i2c OK [12:19:54]MH_I2C_Read... [12:19:54]Read from MH i2c: 01 [12:19:54]MH_I2C_Read... [12:19:54]Read from MH i2c: 01 07 00 [12:19:54]MH_I2C_Read... [12:19:54]Read from MH i2c: 01 07 00 1C 52 00 00 00 00 00 AB 0C 2C [12:19:54]RasterBufferAndPrint [12:19:54]line [12:19:54]line [12:19:54]line [12:19:54]line [12:19:54]line [12:19:54]written 0, free lines is 3254 [12:19:54]MH_Cut [12:19:54]Write to MH i2c: D1 01 00 23 52 01 47 [12:19:54]Write i2c OK [12:19:54]MH_I2C_Read... [12:19:54]Read from MH i2c: D1 [12:19:54]MH_I2C_Read... [12:19:54]Read from MH i2c: D1 01 00 [12:19:54]MH_I2C_Read... [12:19:54]Read from MH i2c: D1 01 00 23 52 00 46 [12:19:54]Write to MH i2c: 01 00 00 24 52 76 [12:19:54]Write i2c OK [12:19:54]MH_I2C_Read... [12:19:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 D2 C7 47 00 6D 60 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 40 DD 02 00 F4 03 04 00 DC F0 15 67 B6 04 01 00 00 7C D5 DC F6 B8 B0 D6 DD [12:19:55]CommunicateWithHost err = 0 [12:19:55]CheckOFDResponse [12:19:55]1017 (14) - 77093643461234 [12:19:55]1041 (16) - 0000000000965340 [12:19:55]1040 (4) - 187712 [12:19:55]1012 (4) - 21.10.2024 06:12 [12:19:55]1206 (1) - 0 [12:19:55]OFD Sender: Remove packet 187712 [12:19:55]ProducePacketName [12:19:55]name=ofd_packets/00187712 [12:19:55]NVStorageDeleteData [12:19:55]OFD Sender: No OFD packet to send [12:19:55]*** Cut start [12:19:55]*** Partial cut [12:19:55]*** CUTSNS_PIN = 1 [12:19:55]*** CUTSNS_PIN = 0 [12:19:56]*** Brake cut motor [12:19:56]Read from MH i2c: 01 [12:19:56]MH_I2C_Read... [12:19:56]*** Stop cut motor [12:19:56]*** Cut end [12:19:56]Read from MH i2c: 01 07 00 [12:19:56]MH_I2C_Read... [12:19:56]Read from MH i2c: 01 07 00 24 52 00 00 00 00 00 FF 0F 8B [12:19:56]process_action close_receipt done [12:19:56]requested_data is exist [12:19:56]produce_requested_data [12:19:56]requested_item fm.sn is exist - process it [12:19:56]wFMCommunicate request_size=4 [12:19:56]MH_SAM_APDU [12:19:56]CAPDU: 80 11 00 00 [12:19:56]Write to MH i2c: E2 08 00 25 52 80 11 00 00 00 00 00 00 F1 [12:19:56]Write i2c OK [12:19:56]MH_I2C_Read... [12:19:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:19:56]Read from MH i2c: E2 [12:19:56]MH_I2C_Read... [12:19:56]Read from MH i2c: E2 17 00 [12:19:56]MH_I2C_Read... [12:19:56]Read from MH i2c: E2 17 00 25 52 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 3F [12:19:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [12:19:56]wFMCommunicate OK [12:19:56]requested_item fd.num is exist - process it [12:19:56]SAM_PROTO_GetFieldsCounters [12:19:56]wFMCommunicate request_size=4 [12:19:56]MH_SAM_APDU [12:19:56]CAPDU: 80 13 00 00 [12:19:56]Write to MH i2c: E2 08 00 26 52 80 13 00 00 00 00 00 00 F4 [12:19:56]Write i2c OK [12:19:56]MH_I2C_Read... [12:19:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:19:56]Read from MH i2c: E2 [12:19:56]MH_I2C_Read... [12:19:56]Read from MH i2c: E2 62 00 [12:19:56]MH_I2C_Read... [12:19:56]Read from MH i2c: E2 62 00 26 52 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 40 DD 02 00 0E 04 04 00 CC 01 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 F7 [12:19:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 40 DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 B0 00 00 00 5E 04 04 00 B0 00 00 00 57 04 04 00 B1 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:19:56]wFMCommunicate OK [12:19:56]SAM_PROTO_GetFieldsCounters done [12:19:56]requested_item shift.num is exist - process it [12:19:56]requested_item shift.opened is exist - process it [12:19:56]req_shift_opened [12:19:56]FM_GetShiftState [12:19:56]SAM_PROTO_GetShiftState [12:19:56]wFMCommunicate request_size=4 [12:19:56]MH_SAM_APDU [12:19:56]CAPDU: 80 13 01 00 [12:19:56]Write to MH i2c: E2 08 00 27 52 80 13 01 00 00 00 00 00 F6 [12:19:56]Write i2c OK [12:19:56]MH_I2C_Read... [12:19:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:19:56]Read from MH i2c: E2 [12:19:56]MH_I2C_Read... [12:19:56]Read from MH i2c: E2 0E 00 [12:19:56]MH_I2C_Read... [12:19:56]Read from MH i2c: E2 0E 00 27 52 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 55 [12:19:56]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [12:19:56]wFMCommunicate OK [12:19:56]SAM_PROTO_GetShiftState done [12:19:56]FM_GetShiftState done [12:19:56]req_shift_opened done [12:19:56]requested_item shift.open_date is exist - process it [12:19:56]req_shift_open_date [12:19:56]req_shift_open_date done [12:19:56]produce_requested_data done [12:19:56]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187712,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [12:19:56]process_action_free close_receipt [12:19:56]json_value_free [12:19:56]json_value_free done [12:19:56]process_json_proto returns [12:19:56]Send response to host [12:19:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187712,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [12:19:56]free response buf [12:19:56]execute_script done [12:19:56]execute_script returns [12:19:56]free content buf [12:19:56]Sock 8.Close socket [12:19:56]Sock 8.Thread stoped [12:20:00]OFD Sender: No OFD packet to send [12:20:05]OFD Sender: No OFD packet to send [12:20:10]OFD Sender: No OFD packet to send [12:20:15]OFD Sender: No OFD packet to send [12:20:20]OFD Sender: No OFD packet to send [12:20:25]OFD Sender: No OFD packet to send [12:20:30]OFD Sender: No OFD packet to send [12:20:35]OFD Sender: No OFD packet to send [12:20:40]OFD Sender: No OFD packet to send [12:20:45]OFD Sender: No OFD packet to send [12:20:50]OFD Sender: No OFD packet to send [12:20:55]OFD Sender: No OFD packet to send [12:21:00]OFD Sender: No OFD packet to send [12:21:05]OFD Sender: No OFD packet to send [12:21:10]OFD Sender: No OFD packet to send [12:21:15]OFD Sender: No OFD packet to send [12:21:20]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:34]accept exits with 9 [12:21:34]New connection [12:21:34]New thread 3067014500 created [12:21:34]Thread 3067157860 joined [12:21:34]Waiting for new connection... [12:21:34] Sock 9.Parse request [12:21:34]Sock 9.Check first char [12:21:34]Sock 9.First char is OK [12:21:34]request: POST /json_proto HTTP/1.0 [12:21:34]Method: POST [12:21:34]URL: /json_proto [12:21:34]Method is POST - this is cgi request [12:21:34]url: /json_proto [12:21:34]query_string will be loaded in cgi processing [12:21:34]execute_cgi json_proto POST (null) [12:21:34]execute_cgi path=json_proto method=POST [12:21:34]POST find Content-Length [12:21:34]Host: 172.17.42.131:8080 [12:21:34]Content-Length: 677 [12:21:34]Content-Type: application/json [12:21:34] [12:21:34]POST finish read [12:21:34]Found Content-Length = 677 [12:21:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209765", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "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:21:34]execute_script... [12:21:34]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209765", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "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:21:34]POST & json_proto [12:21:34]process_json_proto [12:21:34]json parsed OK: [12:21:34]protocol is kg_v1.0 [12:21:34]action value=close_receipt [12:21:34]process_action close_receipt [12:21:34]cmd_close_receipt [12:21:34]MH_GetDate [12:21:34]Write to MH i2c: F0 00 00 28 52 69 [12:21:34]Write i2c OK [12:21:34]MH_I2C_Read... [12:21:34]Read from MH i2c: F0 [12:21:34]MH_I2C_Read... [12:21:34]Read from MH i2c: F0 09 00 [12:21:34]MH_I2C_Read... [12:21:34]Read from MH i2c: F0 09 00 28 52 00 52 47 16 67 A0 18 CA 66 70 [12:21:34]GetLastDocTimeStamp 1729513196 [12:21:34]current date 1729513298 [12:21:34]FM_GetShiftState [12:21:34]SAM_PROTO_GetShiftState [12:21:34]wFMCommunicate request_size=4 [12:21:34]MH_SAM_APDU [12:21:34]CAPDU: 80 13 01 00 [12:21:34]Write to MH i2c: E2 08 00 29 52 80 13 01 00 00 00 00 00 F8 [12:21:34]Write i2c OK [12:21:34]MH_I2C_Read... [12:21:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:21:34]Read from MH i2c: E2 [12:21:34]MH_I2C_Read... [12:21:34]Read from MH i2c: E2 0E 00 [12:21:34]MH_I2C_Read... [12:21:34]Read from MH i2c: E2 0E 00 29 52 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 57 [12:21:34]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [12:21:34]wFMCommunicate OK [12:21:34]SAM_PROTO_GetShiftState done [12:21:34]FM_GetShiftState done [12:21:34]opened in 1729469754 [12:21:34]opened+sec_in_day 1729556154 [12:21:34]quantity*price = 50041 [12:21:34]sum+1 = 50042 [12:21:34]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 177 21.10.2024 12:21 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 187713 ФПД: 17909297416308 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T122139&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187713&fm=17909297416308&tin=02508201610067®Number=0000000000100030&sum=50000 [12:21:36]StoreToDocumentArchive [12:21:36]shift 460 fd 187713 [12:21:36]save to /storage/0460/doc_00187713 [12:21:36]save last doc name /storage/0460/doc_00187713 to /storage/kkm_last_doc_name [12:21:36]save OK [12:21:36]Clear old archive folders... [12:21:36]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:21:36]tlvbuf is 011F0F00 [12:21:36]SAM_PROTO_ClearQueue [12:21:36]wFMCommunicate request_size=4 [12:21:36]MH_SAM_APDU [12:21:36]CAPDU: 80 09 00 00 [12:21:36]Write to MH i2c: E2 08 00 36 52 80 09 00 00 00 00 00 00 FA [12:21:36]Write i2c OK [12:21:36]MH_I2C_Read... [12:21:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:21:36]Read from MH i2c: E2 [12:21:36]MH_I2C_Read... [12:21:36]Read from MH i2c: E2 03 00 [12:21:36]MH_I2C_Read... [12:21:36]Read from MH i2c: E2 03 00 36 52 00 90 00 FC [12:21:36]RAPDU: 90 00 [12:21:36]wFMCommunicate OK [12:21:36]SAM_PROTO_ClearQueue done [12:21:36]KKMCreateOFDPacket [12:21:36]OFDProtocolAddRootSTLVToBuf [12:21:36]FM_MakeSignedData [12:21:36]FM_MakeSignedData [12:21:36]SAM_PROTO_SignData [12:21:36]wFMCommunicate request_size=4 [12:21:36]MH_SAM_APDU [12:21:36]CAPDU: 80 0D 01 02 [12:21:36]Write to MH i2c: E2 08 00 37 52 80 0D 01 02 00 00 00 00 02 [12:21:36]Write i2c OK [12:21:36]MH_I2C_Read... [12:21:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:21:36]Read from MH i2c: E2 [12:21:36]MH_I2C_Read... [12:21:36]Read from MH i2c: E2 03 00 [12:21:36]MH_I2C_Read... [12:21:36]Read from MH i2c: E2 03 00 37 52 00 90 00 FD [12:21:36]RAPDU: 90 00 [12:21:36]wFMCommunicate OK [12:21:36]wFMCommunicate request_size=255 [12:21:36]MH_SAM_APDU [12:21: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 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B1 00 00 00 F4 03 04 00 53 47 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 41 DD 02 00 35 04 06 00 10 [12:21:36]Write to MH i2c: E2 02 01 38 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 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B1 00 00 00 F4 03 04 00 53 47 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 41 DD 02 00 35 04 06 00 10 00 00 3A [12:21:36]Write i2c OK [12:21:36]MH_I2C_Read... [12:21:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:21:36]Read from MH i2c: E2 [12:21:36]MH_I2C_Read... [12:21:36]Read from MH i2c: E2 03 00 [12:21:36]MH_I2C_Read... [12:21:36]Read from MH i2c: E2 03 00 38 52 00 90 00 FE [12:21:36]RAPDU: 90 00 [12:21:36]wFMCommunicate OK [12:21:36]wFMCommunicate request_size=10 [12:21:36]MH_SAM_APDU [12:21:36]CAPDU: 80 0D 02 02 05 49 D5 4F 88 74 [12:21:36]Write to MH i2c: E2 0D 00 39 52 80 0D 02 02 05 00 49 D5 4F 88 74 00 00 78 [12:21:36]Write i2c OK [12:21:36]MH_I2C_Read... [12:21:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:21:36]Read from MH i2c: E2 [12:21:36]MH_I2C_Read... [12:21:36]Read from MH i2c: E2 03 00 [12:21:36]MH_I2C_Read... [12:21:36]Read from MH i2c: E2 03 00 39 52 00 90 00 FF [12:21:36]RAPDU: 90 00 [12:21:36]wFMCommunicate OK [12:21:36]wFMCommunicate request_size=4 [12:21:36]MH_SAM_APDU [12:21:36]CAPDU: 80 0D 03 02 [12:21:36]Write to MH i2c: E2 08 00 3A 52 80 0D 03 02 00 00 00 00 07 [12:21:36]Write i2c OK [12:21:36]MH_I2C_Read... [12:21:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:21:36]Read from MH i2c: E2 [12:21:36]MH_I2C_Read... [12:21:36]Read from MH i2c: E2 0B 00 [12:21:36]MH_I2C_Read... [12:21:36]Read from MH i2c: E2 0B 00 3A 52 00 86 33 63 96 F8 C2 F5 D1 90 00 3A [12:21:36]RAPDU: 86 33 63 96 F8 C2 F5 D1 90 00 [12:21:36]wFMCommunicate OK [12:21:36]SAM_PROTO_SignData done [12:21:36]FM_MakeSignedData done [12:21:36]CreateOFDProtocolMessage [12:21:36]wFMCommunicate request_size=4 [12:21:36]MH_SAM_APDU [12:21:36]CAPDU: 80 11 00 00 [12:21:36]Write to MH i2c: E2 08 00 3B 52 80 11 00 00 00 00 00 00 07 [12:21:36]Write i2c OK [12:21:36]MH_I2C_Read... [12:21:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:21:36]Read from MH i2c: E2 [12:21:36]MH_I2C_Read... [12:21:36]Read from MH i2c: E2 17 00 [12:21:36]MH_I2C_Read... [12:21:36]Read from MH i2c: E2 17 00 3B 52 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 55 [12:21:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [12:21:36]wFMCommunicate OK [12:21:36]CreateOFDProtocolMessage done [12:21:36]OFDSenderStorePacket 187713 [12:21:36]StoreOFDPacket docnum=187713 [12:21:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 EE 02 07 01 DF 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 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B1 00 00 00 F4 03 04 00 53 47 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 41 DD 02 00 35 04 06 00 10 49 D5 4F 88 74 86 33 63 96 F8 C2 F5 D1 [12:21:36]CheckFolder [12:21:36]dirname=/storage/ofd_packets [12:21:36]CheckFolder done [12:21:36]ProducePacketName [12:21:36]name=ofd_packets/00187713 [12:21:36]NVStorageSaveData ofd_packets/00187713 [12:21:36]File name is /storage/ofd_packets/00187713 [12:21:36]Write 301 bytes [12:21:36]NVStorageSaveData done [12:21:36]OFDSenderStorePacket done [12:21:36]KKMCreateOFDPacket done [12:21:36]NVStorageSaveData kkm_last_timestamp [12:21:36]File name is /storage/kkm_last_timestamp [12:21:36]Write 4 bytes [12:21:36]NVStorageSaveData done [12:21:36]ExternCall_PrintAddStr [12:21:36]wPrintStart [12:21:36]Write to MH i2c: 01 00 00 3C 52 8E [12:21:36]Write i2c OK [12:21:36]MH_I2C_Read... [12:21:36]Read from MH i2c: 01 [12:21:36]MH_I2C_Read... [12:21:36]Read from MH i2c: 01 07 00 [12:21:36]MH_I2C_Read... [12:21:36]Read from MH i2c: 01 07 00 3C 52 00 00 00 00 00 FF 0F A3 [12:21:36]RasterBufferAndPrint [12:21:36]line Счет N : (1)209765 [12:21:36]line ИНН: 02508201610067 [12:21:36]line Контрольно-Кассовый Чек [12:21:36]line ПРОДАЖА [12:21:36]line ТРК (МРК, ГНК) : 22 [12:21:36]line Товар: 2710124130 [12:21:36]line Аи-92-К-3 [12:21:36]line 7.480 * 66.90 [12:21:36]line = 500.41 [12:21:36]line НДС 12% НСП 1% [12:21:36]line > о реализуемом товаре [12:21:36]line ОКРУГЛЕНИЕ: -0.41 [12:21:36]line ИТОГО: 500.00 [12:21:36]line Внесено: 500.00 [12:21:36]line СДАЧА: 0.00 [12:21:36]line НСП 1% : 4.43 [12:21:36]line НДС 12% : 53.14 [12:21:36]line Наличными: 500.00 [12:21:36]line Безнал.: 0.00 [12:21:36]line Место: АЗС № 86 "Партнер Нефть" [12:21:36]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [12:21:36]line СНО: Общий режим [12:21:36]line Чек 177 21.10.2024 12:21 [12:21:36]line Смена: 460 ФФД: 1.0 [12:21:36]line ЗНМ: 0300000155 [12:21:36]line РНМ: 0000000000100030 [12:21:36]line Версия ККМ: 001 [12:21:36]line ФМ: 0000000000965340 [12:21:36]line ФД: 187713 [12:21:36]line ФПД: 17909297416308 [12:21:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T122139&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187713&fm=17909297416308&tin=02508201610067®Number=0000000000100030&sum=50000 [12:21:36]written 0, free lines is 4095 [12:21:36]OFD Sender: Processing packet 187713 [packets to send 1062, broken 1061] [12:21:36]ProducePacketName [12:21:36]name=ofd_packets/00187713 [12:21:36]OFD Sender: To server: pG, [12:21:36]CommunicateWithHost lk.salyk.kg:30040 [12:21:36]ConnectInit lk.salyk.kg [12:21:36]Connected sock=10 [12:21:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 EE 02 07 01 DF 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 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B1 00 00 00 F4 03 04 00 53 47 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 41 DD 02 00 35 04 06 00 10 49 D5 4F 88 74 86 33 63 96 F8 C2 F5 D1 [12:21:37]Write to MH i2c: 01 00 00 67 52 B9 [12:21:37]Write i2c OK [12:21:37]MH_I2C_Read... [12:21:37]Read from MH i2c: 01 [12:21:37]MH_I2C_Read... [12:21:37]Read from MH i2c: 01 07 00 [12:21:37]MH_I2C_Read... [12:21:37]Read from MH i2c: 01 07 00 67 52 00 00 00 00 00 72 0C 3E [12:21:37]RasterBufferAndPrint [12:21:37]line [12:21:37]line [12:21:37]line [12:21:37]line [12:21:37]line [12:21:37]written 0, free lines is 3188 [12:21:37]MH_Cut [12:21:37]Write to MH i2c: D1 01 00 6E 52 01 92 [12:21:37]Write i2c OK [12:21:37]MH_I2C_Read... [12:21:37]Read from MH i2c: D1 [12:21:37]MH_I2C_Read... [12:21:37]Read from MH i2c: D1 01 00 [12:21:37]MH_I2C_Read... [12:21:37]Read from MH i2c: D1 01 00 6E 52 00 91 [12:21:37]Write to MH i2c: 01 00 00 6F 52 C1 [12:21:37]Write i2c OK [12:21:37]MH_I2C_Read... [12:21:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 49 C5 47 00 E8 A5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 41 DD 02 00 F4 03 04 00 42 F1 15 67 B6 04 01 00 00 99 FC 90 7C E0 B5 FB 57 [12:21:37]CommunicateWithHost err = 0 [12:21:37]CheckOFDResponse [12:21:37]1017 (14) - 77093643461234 [12:21:37]1041 (16) - 0000000000965340 [12:21:37]1040 (4) - 187713 [12:21:37]1012 (4) - 21.10.2024 06:14 [12:21:37]1206 (1) - 0 [12:21:37]OFD Sender: Remove packet 187713 [12:21:37]ProducePacketName [12:21:37]name=ofd_packets/00187713 [12:21:37]NVStorageDeleteData [12:21:37]OFD Sender: No OFD packet to send [12:21:38]*** Cut start [12:21:38]*** Partial cut [12:21:38]*** CUTSNS_PIN = 1 [12:21:38]*** CUTSNS_PIN = 0 [12:21:38]*** Brake cut motor [12:21:38]Read from MH i2c: 01 [12:21:38]MH_I2C_Read... [12:21:38]*** Stop cut motor [12:21:38]*** Cut end [12:21:38]Read from MH i2c: 01 07 00 [12:21:38]MH_I2C_Read... [12:21:38]Read from MH i2c: 01 07 00 6F 52 00 00 00 00 00 FF 0F D6 [12:21:38]process_action close_receipt done [12:21:38]requested_data is exist [12:21:38]produce_requested_data [12:21:38]requested_item fm.sn is exist - process it [12:21:38]wFMCommunicate request_size=4 [12:21:38]MH_SAM_APDU [12:21:38]CAPDU: 80 11 00 00 [12:21:38]Write to MH i2c: E2 08 00 70 52 80 11 00 00 00 00 00 00 3C [12:21:38]Write i2c OK [12:21:38]MH_I2C_Read... [12:21:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:21:38]Read from MH i2c: E2 [12:21:38]MH_I2C_Read... [12:21:38]Read from MH i2c: E2 17 00 [12:21:38]MH_I2C_Read... [12:21:38]Read from MH i2c: E2 17 00 70 52 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 8A [12:21:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [12:21:38]wFMCommunicate OK [12:21:38]requested_item fd.num is exist - process it [12:21:38]SAM_PROTO_GetFieldsCounters [12:21:38]wFMCommunicate request_size=4 [12:21:38]MH_SAM_APDU [12:21:38]CAPDU: 80 13 00 00 [12:21:38]Write to MH i2c: E2 08 00 71 52 80 13 00 00 00 00 00 00 3F [12:21:38]Write i2c OK [12:21:38]MH_I2C_Read... [12:21:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:21:39]Read from MH i2c: E2 [12:21:39]MH_I2C_Read... [12:21:39]Read from MH i2c: E2 62 00 [12:21:39]MH_I2C_Read... [12:21:39]Read from MH i2c: E2 62 00 71 52 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 41 DD 02 00 0E 04 04 00 CC 01 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 46 [12:21:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 41 DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 B1 00 00 00 5E 04 04 00 B1 00 00 00 57 04 04 00 B2 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:21:39]wFMCommunicate OK [12:21:39]SAM_PROTO_GetFieldsCounters done [12:21:39]requested_item shift.num is exist - process it [12:21:39]requested_item shift.opened is exist - process it [12:21:39]req_shift_opened [12:21:39]FM_GetShiftState [12:21:39]SAM_PROTO_GetShiftState [12:21:39]wFMCommunicate request_size=4 [12:21:39]MH_SAM_APDU [12:21:39]CAPDU: 80 13 01 00 [12:21:39]Write to MH i2c: E2 08 00 72 52 80 13 01 00 00 00 00 00 41 [12:21:39]Write i2c OK [12:21:39]MH_I2C_Read... [12:21:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:21:39]Read from MH i2c: E2 [12:21:39]MH_I2C_Read... [12:21:39]Read from MH i2c: E2 0E 00 [12:21:39]MH_I2C_Read... [12:21:39]Read from MH i2c: E2 0E 00 72 52 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 A0 [12:21:39]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [12:21:39]wFMCommunicate OK [12:21:39]SAM_PROTO_GetShiftState done [12:21:39]FM_GetShiftState done [12:21:39]req_shift_opened done [12:21:39]requested_item shift.open_date is exist - process it [12:21:39]req_shift_open_date [12:21:39]req_shift_open_date done [12:21:39]produce_requested_data done [12:21:39]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187713,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [12:21:39]process_action_free close_receipt [12:21:39]json_value_free [12:21:39]json_value_free done [12:21:39]process_json_proto returns [12:21:39]Send response to host [12:21:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187713,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [12:21:39]free response buf [12:21:39]execute_script done [12:21:39]execute_script returns [12:21:39]free content buf [12:21:39]Sock 9.Close socket [12:21:39]Sock 9.Thread stoped [12:21:42]OFD Sender: No OFD packet to send [12:21:47]OFD Sender: No OFD packet to send [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:28]OFD Sender: No OFD packet to send [12:22:33]OFD Sender: No OFD packet to send [12:22:38]OFD Sender: No OFD packet to send [12:22:43]OFD Sender: No OFD packet to send [12:22:48]OFD Sender: No OFD packet to send [12:22:53]OFD Sender: No OFD packet to send [12:22:58]OFD Sender: No OFD packet to send [12:23:03]OFD Sender: No OFD packet to send [12:23:04]accept exits with 8 [12:23:04]New connection [12:23:04]New thread 3067157860 created [12:23:04]Thread 3067014500 joined [12:23:04]Waiting for new connection... [12:23:04] Sock 8.Parse request [12:23:04]Sock 8.Check first char [12:23:04]Sock 8.First char is OK [12:23:04]request: POST /json_proto HTTP/1.0 [12:23:04]Method: POST [12:23:04]URL: /json_proto [12:23:04]Method is POST - this is cgi request [12:23:04]url: /json_proto [12:23:04]query_string will be loaded in cgi processing [12:23:04]execute_cgi json_proto POST (null) [12:23:04]execute_cgi path=json_proto method=POST [12:23:04]POST find Content-Length [12:23:04]Host: 172.17.42.131:8080 [12:23:04]Content-Length: 679 [12:23:04]Content-Type: application/json [12:23:04] [12:23:04]POST finish read [12:23:04]Found Content-Length = 679 [12:23:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209766", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:23:04]execute_script... [12:23: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)209766", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:23:04]POST & json_proto [12:23:04]process_json_proto [12:23:04]json parsed OK: [12:23:04]protocol is kg_v1.0 [12:23:04]action value=close_receipt [12:23:04]process_action close_receipt [12:23:04]cmd_close_receipt [12:23:04]MH_GetDate [12:23:04]Write to MH i2c: F0 00 00 73 52 B4 [12:23:04]Write i2c OK [12:23:04]MH_I2C_Read... [12:23:04]Read from MH i2c: F0 [12:23:04]MH_I2C_Read... [12:23:04]Read from MH i2c: F0 09 00 [12:23:04]MH_I2C_Read... [12:23:04]Read from MH i2c: F0 09 00 73 52 00 AC 47 16 67 A0 18 CA 66 15 [12:23:04]GetLastDocTimeStamp 1729513299 [12:23:04]current date 1729513388 [12:23:04]FM_GetShiftState [12:23:04]SAM_PROTO_GetShiftState [12:23:04]wFMCommunicate request_size=4 [12:23:04]MH_SAM_APDU [12:23:04]CAPDU: 80 13 01 00 [12:23:04]Write to MH i2c: E2 08 00 74 52 80 13 01 00 00 00 00 00 43 [12:23:04]Write i2c OK [12:23:04]MH_I2C_Read... [12:23:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:23:04]Read from MH i2c: E2 [12:23:04]MH_I2C_Read... [12:23:04]Read from MH i2c: E2 0E 00 [12:23:04]MH_I2C_Read... [12:23:04]Read from MH i2c: E2 0E 00 74 52 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 A2 [12:23:04]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [12:23:04]wFMCommunicate OK [12:23:04]SAM_PROTO_GetShiftState done [12:23:04]FM_GetShiftState done [12:23:04]opened in 1729469754 [12:23:04]opened+sec_in_day 1729556154 [12:23:04]quantity*price = 100050 [12:23:04]sum+1 = 100052 [12:23:04]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 178 21.10.2024 12:23 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 187714 ФПД: 264410372010367 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T122308&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187714&fm=264410372010367&tin=02508201610067®Number=0000000000100030&sum=100000 [12:23:05]StoreToDocumentArchive [12:23:05]shift 460 fd 187714 [12:23:05]save to /storage/0460/doc_00187714 [12:23:05]save last doc name /storage/0460/doc_00187714 to /storage/kkm_last_doc_name [12:23:05]save OK [12:23:05]Clear old archive folders... [12:23:05]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:23:05]tlvbuf is 012369C0 [12:23:05]SAM_PROTO_ClearQueue [12:23:05]wFMCommunicate request_size=4 [12:23:05]MH_SAM_APDU [12:23:05]CAPDU: 80 09 00 00 [12:23:05]Write to MH i2c: E2 08 00 81 52 80 09 00 00 00 00 00 00 45 [12:23:05]Write i2c OK [12:23:05]MH_I2C_Read... [12:23:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:23:05]Read from MH i2c: E2 [12:23:05]MH_I2C_Read... [12:23:05]Read from MH i2c: E2 03 00 [12:23:05]MH_I2C_Read... [12:23:05]Read from MH i2c: E2 03 00 81 52 00 90 00 47 [12:23:05]RAPDU: 90 00 [12:23:05]wFMCommunicate OK [12:23:05]SAM_PROTO_ClearQueue done [12:23:05]KKMCreateOFDPacket [12:23:05]OFDProtocolAddRootSTLVToBuf [12:23:05]FM_MakeSignedData [12:23:05]FM_MakeSignedData [12:23:05]SAM_PROTO_SignData [12:23:05]wFMCommunicate request_size=4 [12:23:05]MH_SAM_APDU [12:23:05]CAPDU: 80 0D 01 02 [12:23:05]Write to MH i2c: E2 08 00 82 52 80 0D 01 02 00 00 00 00 4D [12:23:05]Write i2c OK [12:23:05]MH_I2C_Read... [12:23:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:23:05]Read from MH i2c: E2 [12:23:05]MH_I2C_Read... [12:23:05]Read from MH i2c: E2 03 00 [12:23:05]MH_I2C_Read... [12:23:05]Read from MH i2c: E2 03 00 82 52 00 90 00 48 [12:23:05]RAPDU: 90 00 [12:23:05]wFMCommunicate OK [12:23:05]wFMCommunicate request_size=255 [12:23:05]MH_SAM_APDU [12:23:05]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B2 00 00 00 F4 03 04 00 AC 47 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 42 DD 02 00 35 04 06 00 F0 7A D6 4C [12:23:05]Write to MH i2c: E2 02 01 83 52 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B2 00 00 00 F4 03 04 00 AC 47 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 42 DD 02 00 35 04 06 00 F0 7A D6 4C 00 00 54 [12:23:05]Write i2c OK [12:23:05]MH_I2C_Read... [12:23:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:23:05]Read from MH i2c: E2 [12:23:05]MH_I2C_Read... [12:23:05]Read from MH i2c: E2 03 00 [12:23:05]MH_I2C_Read... [12:23:05]Read from MH i2c: E2 03 00 83 52 00 90 00 49 [12:23:05]RAPDU: 90 00 [12:23:05]wFMCommunicate OK [12:23:05]wFMCommunicate request_size=7 [12:23:05]MH_SAM_APDU [12:23:05]CAPDU: 80 0D 02 02 02 71 7F [12:23:05]Write to MH i2c: E2 0A 00 84 52 80 0D 02 02 02 00 71 7F 00 00 44 [12:23:05]Write i2c OK [12:23:05]MH_I2C_Read... [12:23:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:23:05]Read from MH i2c: E2 [12:23:05]MH_I2C_Read... [12:23:05]Read from MH i2c: E2 03 00 [12:23:05]MH_I2C_Read... [12:23:05]Read from MH i2c: E2 03 00 84 52 00 90 00 4A [12:23:05]RAPDU: 90 00 [12:23:05]wFMCommunicate OK [12:23:05]wFMCommunicate request_size=4 [12:23:05]MH_SAM_APDU [12:23:05]CAPDU: 80 0D 03 02 [12:23:05]Write to MH i2c: E2 08 00 85 52 80 0D 03 02 00 00 00 00 52 [12:23:05]Write i2c OK [12:23:05]MH_I2C_Read... [12:23:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:23:05]Read from MH i2c: E2 [12:23:05]MH_I2C_Read... [12:23:05]Read from MH i2c: E2 0B 00 [12:23:05]MH_I2C_Read... [12:23:05]Read from MH i2c: E2 0B 00 85 52 00 0B 56 BA A9 E3 96 BD AF 90 00 FC [12:23:05]RAPDU: 0B 56 BA A9 E3 96 BD AF 90 00 [12:23:05]wFMCommunicate OK [12:23:06]SAM_PROTO_SignData done [12:23:06]FM_MakeSignedData done [12:23:06]CreateOFDProtocolMessage [12:23:06]wFMCommunicate request_size=4 [12:23:06]MH_SAM_APDU [12:23:06]CAPDU: 80 11 00 00 [12:23:06]Write to MH i2c: E2 08 00 86 52 80 11 00 00 00 00 00 00 52 [12:23:06]Write i2c OK [12:23:06]MH_I2C_Read... [12:23:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:23:06]Read from MH i2c: E2 [12:23:06]MH_I2C_Read... [12:23:06]Read from MH i2c: E2 17 00 [12:23:06]MH_I2C_Read... [12:23:06]Read from MH i2c: E2 17 00 86 52 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 A0 [12:23:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [12:23:06]wFMCommunicate OK [12:23:06]CreateOFDProtocolMessage done [12:23:06]OFDSenderStorePacket 187714 [12:23:06]StoreOFDPacket docnum=187714 [12:23:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 7C 03 04 01 92 25 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B2 00 00 00 F4 03 04 00 AC 47 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 42 DD 02 00 35 04 06 00 F0 7A D6 4C 71 7F 0B 56 BA A9 E3 96 BD AF [12:23:06]CheckFolder [12:23:06]dirname=/storage/ofd_packets [12:23:06]CheckFolder done [12:23:06]ProducePacketName [12:23:06]name=ofd_packets/00187714 [12:23:06]NVStorageSaveData ofd_packets/00187714 [12:23:06]File name is /storage/ofd_packets/00187714 [12:23:06]Write 298 bytes [12:23:06]NVStorageSaveData done [12:23:06]OFDSenderStorePacket done [12:23:06]KKMCreateOFDPacket done [12:23:06]NVStorageSaveData kkm_last_timestamp [12:23:06]File name is /storage/kkm_last_timestamp [12:23:06]Write 4 bytes [12:23:06]NVStorageSaveData done [12:23:06]ExternCall_PrintAddStr [12:23:06]wPrintStart [12:23:06]Write to MH i2c: 01 00 00 87 52 D9 [12:23:06]Write i2c OK [12:23:06]MH_I2C_Read... [12:23:06]Read from MH i2c: 01 [12:23:06]MH_I2C_Read... [12:23:06]Read from MH i2c: 01 07 00 [12:23:06]MH_I2C_Read... [12:23:06]Read from MH i2c: 01 07 00 87 52 00 00 00 00 00 FF 0F EE [12:23:06]RasterBufferAndPrint [12:23:06]line Счет N : (1)209766 [12:23:06]line ИНН: 02508201610067 [12:23:06]line Контрольно-Кассовый Чек [12:23:06]line ПРОДАЖА [12:23:06]line ТРК (МРК, ГНК) : 51 [12:23:06]line Товар: 2710194210 [12:23:06]line ДТ-К-5 [12:23:06]line 13.130 * 76.20 [12:23:06]line = 1000.51 [12:23:06]line НДС 12% НСП 1% [12:23:06]line > о реализуемом товаре [12:23:06]line ОКРУГЛЕНИЕ: -0.51 [12:23:06]line ИТОГО: 1000.00 [12:23:06]line Внесено: 1000.00 [12:23:06]line СДАЧА: 0.00 [12:23:06]line НСП 1% : 8.85 [12:23:06]line НДС 12% : 106.25 [12:23:06]line Наличными: 1000.00 [12:23:06]line Безнал.: 0.00 [12:23:06]line Место: АЗС № 86 "Партнер Нефть" [12:23:06]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [12:23:06]line СНО: Общий режим [12:23:06]line Чек 178 21.10.2024 12:23 [12:23:06]line Смена: 460 ФФД: 1.0 [12:23:06]line ЗНМ: 0300000155 [12:23:06]line РНМ: 0000000000100030 [12:23:06]line Версия ККМ: 001 [12:23:06]line ФМ: 0000000000965340 [12:23:06]line ФД: 187714 [12:23:06]line ФПД: 264410372010367 [12:23:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T122308&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187714&fm=264410372010367&tin=02508201610067®Number=0000000000100030&sum=100000 [12:23:06]OFD Sender: Processing packet 187714 [packets to send 1062, broken 1061] [12:23:06]ProducePacketName [12:23:06]name=ofd_packets/00187714 [12:23:06]OFD Sender: To server: pG, [12:23:06]CommunicateWithHost lk.salyk.kg:30040 [12:23:06]ConnectInit lk.salyk.kg [12:23:06]written 0, free lines is 4095 [12:23:06]Connected sock=10 [12:23:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 7C 03 04 01 92 25 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B2 00 00 00 F4 03 04 00 AC 47 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 42 DD 02 00 35 04 06 00 F0 7A D6 4C 71 7F 0B 56 BA A9 E3 96 BD AF [12:23:06]Write to MH i2c: 01 00 00 B2 52 04 [12:23:06]Write i2c OK [12:23:06]MH_I2C_Read... [12:23:06]Read from MH i2c: 01 [12:23:06]MH_I2C_Read... [12:23:06]Read from MH i2c: 01 07 00 [12:23:06]MH_I2C_Read... [12:23:06]Read from MH i2c: 01 07 00 B2 52 00 00 00 00 00 75 0C 8C [12:23:06]RasterBufferAndPrint [12:23:06]line [12:23:06]line [12:23:06]line [12:23:06]line [12:23:06]line [12:23:06]written 0, free lines is 3192 [12:23:06]MH_Cut [12:23:06]Write to MH i2c: D1 01 00 B9 52 01 DD [12:23:06]Write i2c OK [12:23:06]MH_I2C_Read... [12:23:06]Read from MH i2c: D1 [12:23:06]MH_I2C_Read... [12:23:06]Read from MH i2c: D1 01 00 [12:23:06]MH_I2C_Read... [12:23:06]Read from MH i2c: D1 01 00 B9 52 00 DC [12:23:06]Write to MH i2c: 01 00 00 BA 52 0C [12:23:06]Write i2c OK [12:23:06]MH_I2C_Read... [12:23:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 82 4A 47 00 83 A7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 42 DD 02 00 F4 03 04 00 9C F1 15 67 B6 04 01 00 00 D1 8A 1D 73 0E 41 A8 2C [12:23:06]CommunicateWithHost err = 0 [12:23:06]CheckOFDResponse [12:23:06]1017 (14) - 77093643461234 [12:23:06]1041 (16) - 0000000000965340 [12:23:06]1040 (4) - 187714 [12:23:06]1012 (4) - 21.10.2024 06:15 [12:23:06]1206 (1) - 0 [12:23:06]OFD Sender: Remove packet 187714 [12:23:06]ProducePacketName [12:23:06]name=ofd_packets/00187714 [12:23:06]NVStorageDeleteData [12:23:07]OFD Sender: No OFD packet to send [12:23:07]*** Cut start [12:23:07]*** Partial cut [12:23:07]*** CUTSNS_PIN = 1 [12:23:08]*** CUTSNS_PIN = 0 [12:23:08]*** Brake cut motor [12:23:08]Read from MH i2c: 01 [12:23:08]MH_I2C_Read... [12:23:08]*** Stop cut motor [12:23:08]*** Cut end [12:23:08]Read from MH i2c: 01 07 00 [12:23:08]MH_I2C_Read... [12:23:08]Read from MH i2c: 01 07 00 BA 52 00 00 00 00 00 FF 0F 21 [12:23:08]process_action close_receipt done [12:23:08]requested_data is exist [12:23:08]produce_requested_data [12:23:08]requested_item fm.sn is exist - process it [12:23:08]wFMCommunicate request_size=4 [12:23:08]MH_SAM_APDU [12:23:08]CAPDU: 80 11 00 00 [12:23:08]Write to MH i2c: E2 08 00 BB 52 80 11 00 00 00 00 00 00 87 [12:23:08]Write i2c OK [12:23:08]MH_I2C_Read... [12:23:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:23:08]Read from MH i2c: E2 [12:23:08]MH_I2C_Read... [12:23:08]Read from MH i2c: E2 17 00 [12:23:08]MH_I2C_Read... [12:23:08]Read from MH i2c: E2 17 00 BB 52 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 D5 [12:23:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [12:23:08]wFMCommunicate OK [12:23:08]requested_item fd.num is exist - process it [12:23:08]SAM_PROTO_GetFieldsCounters [12:23:08]wFMCommunicate request_size=4 [12:23:08]MH_SAM_APDU [12:23:08]CAPDU: 80 13 00 00 [12:23:08]Write to MH i2c: E2 08 00 BC 52 80 13 00 00 00 00 00 00 8A [12:23:08]Write i2c OK [12:23:08]MH_I2C_Read... [12:23:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:23:08]Read from MH i2c: E2 [12:23:08]MH_I2C_Read... [12:23:08]Read from MH i2c: E2 62 00 [12:23:08]MH_I2C_Read... [12:23:08]Read from MH i2c: E2 62 00 BC 52 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 42 DD 02 00 0E 04 04 00 CC 01 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 95 [12:23:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 42 DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 B2 00 00 00 5E 04 04 00 B2 00 00 00 57 04 04 00 B3 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:23:08]wFMCommunicate OK [12:23:08]SAM_PROTO_GetFieldsCounters done [12:23:08]requested_item shift.num is exist - process it [12:23:08]requested_item shift.opened is exist - process it [12:23:08]req_shift_opened [12:23:08]FM_GetShiftState [12:23:08]SAM_PROTO_GetShiftState [12:23:08]wFMCommunicate request_size=4 [12:23:08]MH_SAM_APDU [12:23:08]CAPDU: 80 13 01 00 [12:23:08]Write to MH i2c: E2 08 00 BD 52 80 13 01 00 00 00 00 00 8C [12:23:08]Write i2c OK [12:23:08]MH_I2C_Read... [12:23:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:23:08]Read from MH i2c: E2 [12:23:08]MH_I2C_Read... [12:23:08]Read from MH i2c: E2 0E 00 [12:23:08]MH_I2C_Read... [12:23:08]Read from MH i2c: E2 0E 00 BD 52 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 EB [12:23:08]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [12:23:08]wFMCommunicate OK [12:23:08]SAM_PROTO_GetShiftState done [12:23:08]FM_GetShiftState done [12:23:08]req_shift_opened done [12:23:08]requested_item shift.open_date is exist - process it [12:23:08]req_shift_open_date [12:23:08]req_shift_open_date done [12:23:08]produce_requested_data done [12:23:08]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187714,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [12:23:08]process_action_free close_receipt [12:23:08]json_value_free [12:23:08]json_value_free done [12:23:08]process_json_proto returns [12:23:08]Send response to host [12:23:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187714,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [12:23:08]free response buf [12:23:08]execute_script done [12:23:08]execute_script returns [12:23:08]free content buf [12:23:08]Sock 8.Close socket [12:23:08]Sock 8.Thread stoped [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: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:38]accept exits with 9 [12:24:38]New connection [12:24:38]New thread 3067014500 created [12:24:38]Thread 3067157860 joined [12:24:38]Waiting for new connection... [12:24:38] Sock 9.Parse request [12:24:38]Sock 9.Check first char [12:24:38]Sock 9.First char is OK [12:24:38]request: POST /json_proto HTTP/1.0 [12:24:38]Method: POST [12:24:38]URL: /json_proto [12:24:38]Method is POST - this is cgi request [12:24:38]url: /json_proto [12:24:38]query_string will be loaded in cgi processing [12:24:38]execute_cgi json_proto POST (null) [12:24:38]execute_cgi path=json_proto method=POST [12:24:38]POST find Content-Length [12:24:38]Host: 172.17.42.131:8080 [12:24:38]Content-Length: 677 [12:24:38]Content-Type: application/json [12:24:38] [12:24:38]POST finish read [12:24:38]Found Content-Length = 677 [12:24:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209767", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "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" ] } } [12:24:38]execute_script... [12:24:38]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209767", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "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" ] } } [12:24:38]POST & json_proto [12:24:38]process_json_proto [12:24:38]json parsed OK: [12:24:38]protocol is kg_v1.0 [12:24:38]action value=close_receipt [12:24:38]process_action close_receipt [12:24:38]cmd_close_receipt [12:24:38]MH_GetDate [12:24:38]Write to MH i2c: F0 00 00 BE 52 FF [12:24:38]Write i2c OK [12:24:38]MH_I2C_Read... [12:24:38]Read from MH i2c: F0 [12:24:38]MH_I2C_Read... [12:24:38]Read from MH i2c: F0 09 00 [12:24:38]MH_I2C_Read... [12:24:38]Read from MH i2c: F0 09 00 BE 52 00 0A 48 16 67 A0 18 CA 66 BF [12:24:38]GetLastDocTimeStamp 1729513388 [12:24:38]current date 1729513482 [12:24:38]FM_GetShiftState [12:24:38]SAM_PROTO_GetShiftState [12:24:38]wFMCommunicate request_size=4 [12:24:38]MH_SAM_APDU [12:24:38]CAPDU: 80 13 01 00 [12:24:38]Write to MH i2c: E2 08 00 BF 52 80 13 01 00 00 00 00 00 8E [12:24:38]Write i2c OK [12:24:38]MH_I2C_Read... [12:24:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:24:38]Read from MH i2c: E2 [12:24:38]MH_I2C_Read... [12:24:38]Read from MH i2c: E2 0E 00 [12:24:38]MH_I2C_Read... [12:24:38]Read from MH i2c: E2 0E 00 BF 52 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 ED [12:24:38]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [12:24:38]wFMCommunicate OK [12:24:38]SAM_PROTO_GetShiftState done [12:24:38]FM_GetShiftState done [12:24:38]opened in 1729469754 [12:24:38]opened+sec_in_day 1729556154 [12:24:38]quantity*price = 40006 [12:24:38]sum+1 = 40007 [12:24:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 179 21.10.2024 12:24 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 187715 ФПД: 3163615515677 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T122442&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187715&fm=3163615515677&tin=02508201610067®Number=0000000000100030&sum=40000 [12:24:40]StoreToDocumentArchive [12:24:40]shift 460 fd 187715 [12:24:40]save to /storage/0460/doc_00187715 [12:24:40]save last doc name /storage/0460/doc_00187715 to /storage/kkm_last_doc_name [12:24:40]save OK [12:24:40]Clear old archive folders... [12:24:40]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:24:40]tlvbuf is 01237460 [12:24:40]SAM_PROTO_ClearQueue [12:24:40]wFMCommunicate request_size=4 [12:24:40]MH_SAM_APDU [12:24:40]CAPDU: 80 09 00 00 [12:24:40]Write to MH i2c: E2 08 00 CC 52 80 09 00 00 00 00 00 00 90 [12:24:40]Write i2c OK [12:24:40]MH_I2C_Read... [12:24:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:24:40]Read from MH i2c: E2 [12:24:40]MH_I2C_Read... [12:24:40]Read from MH i2c: E2 03 00 [12:24:40]MH_I2C_Read... [12:24:40]Read from MH i2c: E2 03 00 CC 52 00 90 00 92 [12:24:40]RAPDU: 90 00 [12:24:40]wFMCommunicate OK [12:24:40]SAM_PROTO_ClearQueue done [12:24:40]KKMCreateOFDPacket [12:24:40]OFDProtocolAddRootSTLVToBuf [12:24:40]FM_MakeSignedData [12:24:40]FM_MakeSignedData [12:24:40]SAM_PROTO_SignData [12:24:40]wFMCommunicate request_size=4 [12:24:40]MH_SAM_APDU [12:24:40]CAPDU: 80 0D 01 02 [12:24:40]Write to MH i2c: E2 08 00 CD 52 80 0D 01 02 00 00 00 00 98 [12:24:40]Write i2c OK [12:24:40]MH_I2C_Read... [12:24:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:24:40]Read from MH i2c: E2 [12:24:40]MH_I2C_Read... [12:24:40]Read from MH i2c: E2 03 00 [12:24:40]MH_I2C_Read... [12:24:40]Read from MH i2c: E2 03 00 CD 52 00 90 00 93 [12:24:40]RAPDU: 90 00 [12:24:40]wFMCommunicate OK [12:24:40]wFMCommunicate request_size=255 [12:24:40]MH_SAM_APDU [12:24: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 33 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 B3 00 00 00 F4 03 04 00 0A 48 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 43 DD 02 00 35 04 06 00 02 [12:24:40]Write to MH i2c: E2 02 01 CE 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 33 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 B3 00 00 00 F4 03 04 00 0A 48 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 43 DD 02 00 35 04 06 00 02 00 00 4D [12:24:40]Write i2c OK [12:24:40]MH_I2C_Read... [12:24:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:24:40]Read from MH i2c: E2 [12:24:40]MH_I2C_Read... [12:24:40]Read from MH i2c: E2 03 00 [12:24:40]MH_I2C_Read... [12:24:40]Read from MH i2c: E2 03 00 CE 52 00 90 00 94 [12:24:40]RAPDU: 90 00 [12:24:40]wFMCommunicate OK [12:24:40]wFMCommunicate request_size=10 [12:24:40]MH_SAM_APDU [12:24:40]CAPDU: 80 0D 02 02 05 E0 96 2D D4 1D [12:24:40]Write to MH i2c: E2 0D 00 CF 52 80 0D 02 02 05 00 E0 96 2D D4 1D 00 00 39 [12:24:40]Write i2c OK [12:24:40]MH_I2C_Read... [12:24:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:24:40]Read from MH i2c: E2 [12:24:40]MH_I2C_Read... [12:24:40]Read from MH i2c: E2 03 00 [12:24:40]MH_I2C_Read... [12:24:40]Read from MH i2c: E2 03 00 CF 52 00 90 00 95 [12:24:40]RAPDU: 90 00 [12:24:40]wFMCommunicate OK [12:24:40]wFMCommunicate request_size=4 [12:24:40]MH_SAM_APDU [12:24:40]CAPDU: 80 0D 03 02 [12:24:40]Write to MH i2c: E2 08 00 D0 52 80 0D 03 02 00 00 00 00 9D [12:24:40]Write i2c OK [12:24:40]MH_I2C_Read... [12:24:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:24:40]Read from MH i2c: E2 [12:24:40]MH_I2C_Read... [12:24:40]Read from MH i2c: E2 0B 00 [12:24:40]MH_I2C_Read... [12:24:40]Read from MH i2c: E2 0B 00 D0 52 00 22 90 81 4D D7 BF 48 CE 90 00 CA [12:24:40]RAPDU: 22 90 81 4D D7 BF 48 CE 90 00 [12:24:40]wFMCommunicate OK [12:24:40]SAM_PROTO_SignData done [12:24:40]FM_MakeSignedData done [12:24:40]CreateOFDProtocolMessage [12:24:40]wFMCommunicate request_size=4 [12:24:40]MH_SAM_APDU [12:24:40]CAPDU: 80 11 00 00 [12:24:40]Write to MH i2c: E2 08 00 D1 52 80 11 00 00 00 00 00 00 9D [12:24:40]Write i2c OK [12:24:40]MH_I2C_Read... [12:24:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:24:40]Read from MH i2c: E2 [12:24:40]MH_I2C_Read... [12:24:40]Read from MH i2c: E2 17 00 [12:24:40]MH_I2C_Read... [12:24:40]Read from MH i2c: E2 17 00 D1 52 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 EB [12:24:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [12:24:40]wFMCommunicate OK [12:24:40]CreateOFDProtocolMessage done [12:24:40]OFDSenderStorePacket 187715 [12:24:40]StoreOFDPacket docnum=187715 [12:24:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 11 EA 07 01 26 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 33 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 B3 00 00 00 F4 03 04 00 0A 48 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 43 DD 02 00 35 04 06 00 02 E0 96 2D D4 1D 22 90 81 4D D7 BF 48 CE [12:24:40]CheckFolder [12:24:40]dirname=/storage/ofd_packets [12:24:40]CheckFolder done [12:24:40]ProducePacketName [12:24:40]name=ofd_packets/00187715 [12:24:40]NVStorageSaveData ofd_packets/00187715 [12:24:40]File name is /storage/ofd_packets/00187715 [12:24:40]Write 301 bytes [12:24:40]NVStorageSaveData done [12:24:40]OFDSenderStorePacket done [12:24:40]KKMCreateOFDPacket done [12:24:40]NVStorageSaveData kkm_last_timestamp [12:24:40]File name is /storage/kkm_last_timestamp [12:24:40]Write 4 bytes [12:24:40]NVStorageSaveData done [12:24:40]ExternCall_PrintAddStr [12:24:40]wPrintStart [12:24:40]Write to MH i2c: 01 00 00 D2 52 24 [12:24:40]Write i2c OK [12:24:40]MH_I2C_Read... [12:24:40]Read from MH i2c: 01 [12:24:40]MH_I2C_Read... [12:24:40]Read from MH i2c: 01 07 00 [12:24:40]MH_I2C_Read... [12:24:40]Read from MH i2c: 01 07 00 D2 52 00 00 00 00 00 FF 0F 39 [12:24:40]RasterBufferAndPrint [12:24:40]line Счет N : (1)209767 [12:24:40]line ИНН: 02508201610067 [12:24:40]line Контрольно-Кассовый Чек [12:24:40]line ПРОДАЖА [12:24:40]line ТРК (МРК, ГНК) : 12 [12:24:40]line Товар: 2710124130 [12:24:40]line Аи-92-К-3 [12:24:40]line 5.980 * 66.90 [12:24:40]line = 400.06 [12:24:40]line НДС 12% НСП 1% [12:24:40]line > о реализуемом товаре [12:24:40]line ОКРУГЛЕНИЕ: -0.06 [12:24:40]line ИТОГО: 400.00 [12:24:40]line Внесено: 400.00 [12:24:40]line СДАЧА: 0.00 [12:24:40]line НСП 1% : 3.54 [12:24:40]line НДС 12% : 42.48 [12:24:40]line Наличными: 400.00 [12:24:40]line Безнал.: 0.00 [12:24:40]line Место: АЗС № 86 "Партнер Нефть" [12:24:40]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [12:24:40]line СНО: Общий режим [12:24:40]line Чек 179 21.10.2024 12:24 [12:24:40]line Смена: 460 ФФД: 1.0 [12:24:40]line ЗНМ: 0300000155 [12:24:40]line РНМ: 0000000000100030 [12:24:40]line Версия ККМ: 001 [12:24:40]line ФМ: 0000000000965340 [12:24:40]line ФД: 187715 [12:24:40]line ФПД: 3163615515677 [12:24:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T122442&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187715&fm=3163615515677&tin=02508201610067®Number=0000000000100030&sum=40000 [12:24:40]written 0, free lines is 4095 [12:24:40]OFD Sender: Processing packet 187715 [packets to send 1062, broken 1061] [12:24:40]ProducePacketName [12:24:40]name=ofd_packets/00187715 [12:24:40]OFD Sender: To server: pG, [12:24:40]CommunicateWithHost lk.salyk.kg:30040 [12:24:40]ConnectInit lk.salyk.kg [12:24:40]Connected sock=7 [12:24:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 11 EA 07 01 26 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 33 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 B3 00 00 00 F4 03 04 00 0A 48 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 43 DD 02 00 35 04 06 00 02 E0 96 2D D4 1D 22 90 81 4D D7 BF 48 CE [12:24:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 B2 13 47 00 28 71 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 43 DD 02 00 F4 03 04 00 FA F1 15 67 B6 04 01 00 00 64 2A 63 99 43 E5 A1 9D [12:24:41]CommunicateWithHost err = 0 [12:24:41]CheckOFDResponse [12:24:41]1017 (14) - 77093643461234 [12:24:41]1041 (16) - 0000000000965340 [12:24:41]1040 (4) - 187715 [12:24:41]1012 (4) - 21.10.2024 06:17 [12:24:41]1206 (1) - 0 [12:24:41]OFD Sender: Remove packet 187715 [12:24:41]ProducePacketName [12:24:41]name=ofd_packets/00187715 [12:24:41]NVStorageDeleteData [12:24:41]Write to MH i2c: 01 00 00 FD 52 4F [12:24:41]Write i2c OK [12:24:41]MH_I2C_Read... [12:24:41]Read from MH i2c: 01 [12:24:41]MH_I2C_Read... [12:24:41]Read from MH i2c: 01 07 00 [12:24:41]MH_I2C_Read... [12:24:41]Read from MH i2c: 01 07 00 FD 52 00 00 00 00 00 72 0C D4 [12:24:41]RasterBufferAndPrint [12:24:41]line [12:24:41]line [12:24:41]line [12:24:41]line [12:24:41]line [12:24:41]written 0, free lines is 3189 [12:24:41]MH_Cut [12:24:41]Write to MH i2c: D1 01 00 04 53 01 29 [12:24:41]Write i2c OK [12:24:41]MH_I2C_Read... [12:24:41]Read from MH i2c: D1 [12:24:41]MH_I2C_Read... [12:24:41]Read from MH i2c: D1 01 00 [12:24:41]MH_I2C_Read... [12:24:41]Read from MH i2c: D1 01 00 04 53 00 28 [12:24:41]Write to MH i2c: 01 00 00 05 53 58 [12:24:41]Write i2c OK [12:24:41]MH_I2C_Read... [12:24:41]OFD Sender: No OFD packet to send [12:24:42]*** Cut start [12:24:42]*** Partial cut [12:24:42]*** CUTSNS_PIN = 1 [12:24:42]*** CUTSNS_PIN = 0 [12:24:42]*** Brake cut motor [12:24:42]Read from MH i2c: 01 [12:24:42]MH_I2C_Read... [12:24:42]*** Stop cut motor [12:24:42]*** Cut end [12:24:42]Read from MH i2c: 01 07 00 [12:24:42]MH_I2C_Read... [12:24:42]Read from MH i2c: 01 07 00 05 53 00 00 00 00 00 FF 0F 6D [12:24:42]process_action close_receipt done [12:24:42]requested_data is exist [12:24:42]produce_requested_data [12:24:42]requested_item fm.sn is exist - process it [12:24:42]wFMCommunicate request_size=4 [12:24:42]MH_SAM_APDU [12:24:42]CAPDU: 80 11 00 00 [12:24:42]Write to MH i2c: E2 08 00 06 53 80 11 00 00 00 00 00 00 D3 [12:24:42]Write i2c OK [12:24:42]MH_I2C_Read... [12:24:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:24:42]Read from MH i2c: E2 [12:24:42]MH_I2C_Read... [12:24:42]Read from MH i2c: E2 17 00 [12:24:42]MH_I2C_Read... [12:24:42]Read from MH i2c: E2 17 00 06 53 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 21 [12:24:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [12:24:42]wFMCommunicate OK [12:24:42]requested_item fd.num is exist - process it [12:24:42]SAM_PROTO_GetFieldsCounters [12:24:42]wFMCommunicate request_size=4 [12:24:42]MH_SAM_APDU [12:24:42]CAPDU: 80 13 00 00 [12:24:42]Write to MH i2c: E2 08 00 07 53 80 13 00 00 00 00 00 00 D6 [12:24:42]Write i2c OK [12:24:42]MH_I2C_Read... [12:24:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:24:43]Read from MH i2c: E2 [12:24:43]MH_I2C_Read... [12:24:43]Read from MH i2c: E2 62 00 [12:24:43]MH_I2C_Read... [12:24:43]Read from MH i2c: E2 62 00 07 53 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 43 DD 02 00 0E 04 04 00 CC 01 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 E5 [12:24:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 43 DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 B3 00 00 00 5E 04 04 00 B3 00 00 00 57 04 04 00 B4 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:24:43]wFMCommunicate OK [12:24:43]SAM_PROTO_GetFieldsCounters done [12:24:43]requested_item shift.num is exist - process it [12:24:43]requested_item shift.opened is exist - process it [12:24:43]req_shift_opened [12:24:43]FM_GetShiftState [12:24:43]SAM_PROTO_GetShiftState [12:24:43]wFMCommunicate request_size=4 [12:24:43]MH_SAM_APDU [12:24:43]CAPDU: 80 13 01 00 [12:24:43]Write to MH i2c: E2 08 00 08 53 80 13 01 00 00 00 00 00 D8 [12:24:43]Write i2c OK [12:24:43]MH_I2C_Read... [12:24:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:24:43]Read from MH i2c: E2 [12:24:43]MH_I2C_Read... [12:24:43]Read from MH i2c: E2 0E 00 [12:24:43]MH_I2C_Read... [12:24:43]Read from MH i2c: E2 0E 00 08 53 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 37 [12:24:43]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [12:24:43]wFMCommunicate OK [12:24:43]SAM_PROTO_GetShiftState done [12:24:43]FM_GetShiftState done [12:24:43]req_shift_opened done [12:24:43]requested_item shift.open_date is exist - process it [12:24:43]req_shift_open_date [12:24:43]req_shift_open_date done [12:24:43]produce_requested_data done [12:24:43]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187715,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [12:24:43]process_action_free close_receipt [12:24:43]json_value_free [12:24:43]json_value_free done [12:24:43]process_json_proto returns [12:24:43]Send response to host [12:24:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187715,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [12:24:43]free response buf [12:24:43]execute_script done [12:24:43]execute_script returns [12:24:43]free content buf [12:24:43]Sock 9.Close socket [12:24:43]Sock 9.Thread stoped [12:24:46]OFD Sender: No OFD packet to send [12:24:51]OFD Sender: No OFD packet to send [12:24:56]OFD Sender: No OFD packet to send [12:25:01]OFD Sender: No OFD packet to send [12:25:06]OFD Sender: No OFD packet to send [12:25:11]OFD Sender: No OFD packet to send [12:25:16]OFD Sender: No OFD packet to send [12:25:21]OFD Sender: No OFD packet to send [12:25:26]OFD Sender: No OFD packet to send [12:25:31]OFD Sender: No OFD packet to send [12:25:36]OFD Sender: No OFD packet to send [12:25:41]OFD Sender: No OFD packet to send [12:25:42]accept exits with 8 [12:25:42]New connection [12:25:42]New thread 3067157860 created [12:25:42]Thread 3067014500 joined [12:25:42]Waiting for new connection... [12:25:42] Sock 8.Parse request [12:25:42]Sock 8.Check first char [12:25:42]Sock 8.First char is OK [12:25:42]request: POST /json_proto HTTP/1.0 [12:25:42]Method: POST [12:25:42]URL: /json_proto [12:25:42]Method is POST - this is cgi request [12:25:42]url: /json_proto [12:25:42]query_string will be loaded in cgi processing [12:25:42]execute_cgi json_proto POST (null) [12:25:42]execute_cgi path=json_proto method=POST [12:25:42]POST find Content-Length [12:25:42]Host: 172.17.42.131:8080 [12:25:42]Content-Length: 766 [12:25:42]Content-Type: application/json [12:25:42] [12:25:42]POST finish read [12:25:42]Found Content-Length = 766 [12:25:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209768", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "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" ] } } [12:25:42]execute_script... [12:25: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)209768", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "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" ] } } [12:25:42]POST & json_proto [12:25:42]process_json_proto [12:25:42]json parsed OK: [12:25:42]protocol is kg_v1.0 [12:25:42]action value=close_receipt [12:25:42]process_action close_receipt [12:25:42]cmd_close_receipt [12:25:42]MH_GetDate [12:25:42]Write to MH i2c: F0 00 00 09 53 4B [12:25:42]Write i2c OK [12:25:42]MH_I2C_Read... [12:25:42]Read from MH i2c: F0 [12:25:42]MH_I2C_Read... [12:25:42]Read from MH i2c: F0 09 00 [12:25:42]MH_I2C_Read... [12:25:42]Read from MH i2c: F0 09 00 09 53 00 4A 48 16 67 A0 18 CA 66 4B [12:25:42]GetLastDocTimeStamp 1729513482 [12:25:42]current date 1729513546 [12:25:42]FM_GetShiftState [12:25:42]SAM_PROTO_GetShiftState [12:25:42]wFMCommunicate request_size=4 [12:25:42]MH_SAM_APDU [12:25:42]CAPDU: 80 13 01 00 [12:25:42]Write to MH i2c: E2 08 00 0A 53 80 13 01 00 00 00 00 00 DA [12:25:42]Write i2c OK [12:25:42]MH_I2C_Read... [12:25:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:25:42]Read from MH i2c: E2 [12:25:42]MH_I2C_Read... [12:25:42]Read from MH i2c: E2 0E 00 [12:25:42]MH_I2C_Read... [12:25:42]Read from MH i2c: E2 0E 00 0A 53 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 39 [12:25:42]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [12:25:42]wFMCommunicate OK [12:25:42]SAM_PROTO_GetShiftState done [12:25:42]FM_GetShiftState done [12:25:42]opened in 1729469754 [12:25:42]opened+sec_in_day 1729556154 [12:25:42]quantity*price = 50041 [12:25:42]sum+1 = 50042 [12:25:42]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.41 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 0.00 Безнал.: 500.41 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 180 21.10.2024 12:25 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000965340 ФД: 187716 ФПД: 221204747983776 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T122546&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187716&fm=221204747983776&tin=02508201610067®Number=0000000000100030&sum=50041 [12:25:43]StoreToDocumentArchive [12:25:43]shift 460 fd 187716 [12:25:43]save to /storage/0460/doc_00187716 [12:25:43]save last doc name /storage/0460/doc_00187716 to /storage/kkm_last_doc_name [12:25:43]save OK [12:25:43]Clear old archive folders... [12:25:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:25:43]tlvbuf is 010D3DF0 [12:25:43]SAM_PROTO_ClearQueue [12:25:43]wFMCommunicate request_size=4 [12:25:43]MH_SAM_APDU [12:25:43]CAPDU: 80 09 00 00 [12:25:43]Write to MH i2c: E2 08 00 17 53 80 09 00 00 00 00 00 00 DC [12:25:43]Write i2c OK [12:25:43]MH_I2C_Read... [12:25:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:25:43]Read from MH i2c: E2 [12:25:43]MH_I2C_Read... [12:25:43]Read from MH i2c: E2 03 00 [12:25:43]MH_I2C_Read... [12:25:43]Read from MH i2c: E2 03 00 17 53 00 90 00 DE [12:25:43]RAPDU: 90 00 [12:25:43]wFMCommunicate OK [12:25:43]SAM_PROTO_ClearQueue done [12:25:43]KKMCreateOFDPacket [12:25:43]OFDProtocolAddRootSTLVToBuf [12:25:43]FM_MakeSignedData [12:25:43]FM_MakeSignedData [12:25:43]SAM_PROTO_SignData [12:25:43]wFMCommunicate request_size=4 [12:25:43]MH_SAM_APDU [12:25:43]CAPDU: 80 0D 01 02 [12:25:43]Write to MH i2c: E2 08 00 18 53 80 0D 01 02 00 00 00 00 E4 [12:25:43]Write i2c OK [12:25:43]MH_I2C_Read... [12:25:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:25:43]Read from MH i2c: E2 [12:25:43]MH_I2C_Read... [12:25:43]Read from MH i2c: E2 03 00 [12:25:43]MH_I2C_Read... [12:25:43]Read from MH i2c: E2 03 00 18 53 00 90 00 DF [12:25:43]RAPDU: 90 00 [12:25:43]wFMCommunicate OK [12:25:43]wFMCommunicate request_size=255 [12:25:43]MH_SAM_APDU [12:25: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 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 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 B4 00 00 00 F4 03 04 00 4A 48 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 44 DD 02 00 35 04 06 00 C9 [12:25:43]Write to MH i2c: E2 02 01 19 53 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 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 B4 00 00 00 F4 03 04 00 4A 48 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 44 DD 02 00 35 04 06 00 C9 00 00 25 [12:25:43]Write i2c OK [12:25:43]MH_I2C_Read... [12:25:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:25:44]Read from MH i2c: E2 [12:25:44]MH_I2C_Read... [12:25:44]Read from MH i2c: E2 03 00 [12:25:44]MH_I2C_Read... [12:25:44]Read from MH i2c: E2 03 00 19 53 00 90 00 E0 [12:25:44]RAPDU: 90 00 [12:25:44]wFMCommunicate OK [12:25:44]wFMCommunicate request_size=10 [12:25:44]MH_SAM_APDU [12:25:44]CAPDU: 80 0D 02 02 05 2F 3E 6D 1B A0 [12:25:44]Write to MH i2c: E2 0D 00 1A 53 80 0D 02 02 05 00 2F 3E 6D 1B A0 00 00 86 [12:25:44]Write i2c OK [12:25:44]MH_I2C_Read... [12:25:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:25:44]Read from MH i2c: E2 [12:25:44]MH_I2C_Read... [12:25:44]Read from MH i2c: E2 03 00 [12:25:44]MH_I2C_Read... [12:25:44]Read from MH i2c: E2 03 00 1A 53 00 90 00 E1 [12:25:44]RAPDU: 90 00 [12:25:44]wFMCommunicate OK [12:25:44]wFMCommunicate request_size=4 [12:25:44]MH_SAM_APDU [12:25:44]CAPDU: 80 0D 03 02 [12:25:44]Write to MH i2c: E2 08 00 1B 53 80 0D 03 02 00 00 00 00 E9 [12:25:44]Write i2c OK [12:25:44]MH_I2C_Read... [12:25:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:25:44]Read from MH i2c: E2 [12:25:44]MH_I2C_Read... [12:25:44]Read from MH i2c: E2 0B 00 [12:25:44]MH_I2C_Read... [12:25:44]Read from MH i2c: E2 0B 00 1B 53 00 6F D5 03 24 68 77 A0 F3 90 00 C7 [12:25:44]RAPDU: 6F D5 03 24 68 77 A0 F3 90 00 [12:25:44]wFMCommunicate OK [12:25:44]SAM_PROTO_SignData done [12:25:44]FM_MakeSignedData done [12:25:44]CreateOFDProtocolMessage [12:25:44]wFMCommunicate request_size=4 [12:25:44]MH_SAM_APDU [12:25:44]CAPDU: 80 11 00 00 [12:25:44]Write to MH i2c: E2 08 00 1C 53 80 11 00 00 00 00 00 00 E9 [12:25:44]Write i2c OK [12:25:44]MH_I2C_Read... [12:25:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:25:44]Read from MH i2c: E2 [12:25:44]MH_I2C_Read... [12:25:44]Read from MH i2c: E2 17 00 [12:25:44]MH_I2C_Read... [12:25:44]Read from MH i2c: E2 17 00 1C 53 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 37 [12:25:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [12:25:44]wFMCommunicate OK [12:25:44]CreateOFDProtocolMessage done [12:25:44]OFDSenderStorePacket 187716 [12:25:44]StoreOFDPacket docnum=187716 [12:25:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 88 A8 07 01 9B 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 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 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 B4 00 00 00 F4 03 04 00 4A 48 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 44 DD 02 00 35 04 06 00 C9 2F 3E 6D 1B A0 6F D5 03 24 68 77 A0 F3 [12:25:44]CheckFolder [12:25:44]dirname=/storage/ofd_packets [12:25:44]CheckFolder done [12:25:44]ProducePacketName [12:25:44]name=ofd_packets/00187716 [12:25:44]NVStorageSaveData ofd_packets/00187716 [12:25:44]File name is /storage/ofd_packets/00187716 [12:25:44]Write 301 bytes [12:25:44]NVStorageSaveData done [12:25:44]OFDSenderStorePacket done [12:25:44]KKMCreateOFDPacket done [12:25:44]NVStorageSaveData kkm_last_timestamp [12:25:44]File name is /storage/kkm_last_timestamp [12:25:44]Write 4 bytes [12:25:44]NVStorageSaveData done [12:25:44]ExternCall_PrintAddStr [12:25:44]wPrintStart [12:25:44]Write to MH i2c: 01 00 00 1D 53 70 [12:25:44]Write i2c OK [12:25:44]MH_I2C_Read... [12:25:44]Read from MH i2c: 01 [12:25:44]MH_I2C_Read... [12:25:44]Read from MH i2c: 01 07 00 [12:25:44]MH_I2C_Read... [12:25:44]Read from MH i2c: 01 07 00 1D 53 00 00 00 00 00 FF 0F 85 [12:25:44]RasterBufferAndPrint [12:25:44]line Счет N : (1)209768 [12:25:44]line ИНН: 02508201610067 [12:25:44]line Контрольно-Кассовый Чек [12:25:44]line ПРОДАЖА [12:25:44]line ТРК (МРК, ГНК) : 32 [12:25:44]line Товар: 2710124130 [12:25:44]line Аи-92-К-3 [12:25:44]line 7.480 * 66.90 [12:25:44]line = 500.41 [12:25:44]line НДС 12% НСП 1% [12:25:44]line > о реализуемом товаре [12:25:44]line ИТОГО: 500.41 [12:25:44]line НСП 1% : 4.43 [12:25:44]line НДС 12% : 53.14 [12:25:44]line Наличными: 0.00 [12:25:44]line Безнал.: 500.41 [12:25:44]line Место: АЗС № 86 "Партнер Нефть" [12:25:44]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [12:25:44]line СНО: Общий режим [12:25:44]line Чек 180 21.10.2024 12:25 [12:25:44]line Смена: 460 ФФД: 1.0 [12:25:44]line ЗНМ: 0300000155 [12:25:44]line РНМ: 0000000000100030 [12:25:44]line Версия ККМ: 001 [12:25:44]line Платежная система: Mbank [12:25:44]line ФМ: 0000000000965340 [12:25:44]line ФД: 187716 [12:25:44]line ФПД: 221204747983776 [12:25:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T122546&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187716&fm=221204747983776&tin=02508201610067®Number=0000000000100030&sum=50041 [12:25:44]written 0, free lines is 4095 [12:25:44]OFD Sender: Processing packet 187716 [packets to send 1062, broken 1061] [12:25:44]ProducePacketName [12:25:44]name=ofd_packets/00187716 [12:25:44]OFD Sender: To server: pG, [12:25:44]CommunicateWithHost lk.salyk.kg:30040 [12:25:44]ConnectInit lk.salyk.kg [12:25:44]Connected sock=10 [12:25:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 88 A8 07 01 9B 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 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 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 B4 00 00 00 F4 03 04 00 4A 48 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 44 DD 02 00 35 04 06 00 C9 2F 3E 6D 1B A0 6F D5 03 24 68 77 A0 F3 [12:25:44]Write to MH i2c: 01 00 00 46 53 99 [12:25:44]Write i2c OK [12:25:44]MH_I2C_Read... [12:25:44]Read from MH i2c: 01 [12:25:44]MH_I2C_Read... [12:25:44]Read from MH i2c: 01 07 00 [12:25:44]MH_I2C_Read... [12:25:44]Read from MH i2c: 01 07 00 46 53 00 00 00 00 00 A0 0C 4C [12:25:44]RasterBufferAndPrint [12:25:44]line [12:25:44]line [12:25:44]line [12:25:44]line [12:25:44]line [12:25:44]written 0, free lines is 3236 [12:25:44]MH_Cut [12:25:44]Write to MH i2c: D1 01 00 4D 53 01 72 [12:25:44]Write i2c OK [12:25:44]MH_I2C_Read... [12:25:44]Read from MH i2c: D1 [12:25:44]MH_I2C_Read... [12:25:44]Read from MH i2c: D1 01 00 [12:25:44]MH_I2C_Read... [12:25:44]Read from MH i2c: D1 01 00 4D 53 00 71 [12:25:44]Write to MH i2c: 01 00 00 4E 53 A1 [12:25:44]Write i2c OK [12:25:44]MH_I2C_Read... [12:25:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 1C C3 47 00 0F 92 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 44 DD 02 00 F4 03 04 00 3A F2 15 67 B6 04 01 00 00 3C 90 30 55 07 8E 28 A1 [12:25:44]CommunicateWithHost err = 0 [12:25:44]CheckOFDResponse [12:25:44]1017 (14) - 77093643461234 [12:25:44]1041 (16) - 0000000000965340 [12:25:44]1040 (4) - 187716 [12:25:44]1012 (4) - 21.10.2024 06:18 [12:25:44]1206 (1) - 0 [12:25:44]OFD Sender: Remove packet 187716 [12:25:44]ProducePacketName [12:25:44]name=ofd_packets/00187716 [12:25:44]NVStorageDeleteData [12:25:45]OFD Sender: No OFD packet to send [12:25:45]*** Cut start [12:25:45]*** Partial cut [12:25:45]*** CUTSNS_PIN = 1 [12:25:45]*** CUTSNS_PIN = 0 [12:25:46]*** Brake cut motor [12:25:46]Read from MH i2c: 01 [12:25:46]MH_I2C_Read... [12:25:46]*** Stop cut motor [12:25:46]*** Cut end [12:25:46]Read from MH i2c: 01 07 00 [12:25:46]MH_I2C_Read... [12:25:46]Read from MH i2c: 01 07 00 4E 53 00 00 00 00 00 FF 0F B6 [12:25:46]process_action close_receipt done [12:25:46]requested_data is exist [12:25:46]produce_requested_data [12:25:46]requested_item fm.sn is exist - process it [12:25:46]wFMCommunicate request_size=4 [12:25:46]MH_SAM_APDU [12:25:46]CAPDU: 80 11 00 00 [12:25:46]Write to MH i2c: E2 08 00 4F 53 80 11 00 00 00 00 00 00 1C [12:25:46]Write i2c OK [12:25:46]MH_I2C_Read... [12:25:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:25:46]Read from MH i2c: E2 [12:25:46]MH_I2C_Read... [12:25:46]Read from MH i2c: E2 17 00 [12:25:46]MH_I2C_Read... [12:25:46]Read from MH i2c: E2 17 00 4F 53 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 6A [12:25:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [12:25:46]wFMCommunicate OK [12:25:46]requested_item fd.num is exist - process it [12:25:46]SAM_PROTO_GetFieldsCounters [12:25:46]wFMCommunicate request_size=4 [12:25:46]MH_SAM_APDU [12:25:46]CAPDU: 80 13 00 00 [12:25:46]Write to MH i2c: E2 08 00 50 53 80 13 00 00 00 00 00 00 1F [12:25:46]Write i2c OK [12:25:46]MH_I2C_Read... [12:25:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:25:46]Read from MH i2c: E2 [12:25:46]MH_I2C_Read... [12:25:46]Read from MH i2c: E2 62 00 [12:25:46]MH_I2C_Read... [12:25:46]Read from MH i2c: E2 62 00 50 53 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 44 DD 02 00 0E 04 04 00 CC 01 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 32 [12:25:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 44 DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 B4 00 00 00 5E 04 04 00 B4 00 00 00 57 04 04 00 B5 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:25:46]wFMCommunicate OK [12:25:46]SAM_PROTO_GetFieldsCounters done [12:25:46]requested_item shift.num is exist - process it [12:25:46]requested_item shift.opened is exist - process it [12:25:46]req_shift_opened [12:25:46]FM_GetShiftState [12:25:46]SAM_PROTO_GetShiftState [12:25:46]wFMCommunicate request_size=4 [12:25:46]MH_SAM_APDU [12:25:46]CAPDU: 80 13 01 00 [12:25:46]Write to MH i2c: E2 08 00 51 53 80 13 01 00 00 00 00 00 21 [12:25:46]Write i2c OK [12:25:46]MH_I2C_Read... [12:25:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:25:46]Read from MH i2c: E2 [12:25:46]MH_I2C_Read... [12:25:46]Read from MH i2c: E2 0E 00 [12:25:46]MH_I2C_Read... [12:25:46]Read from MH i2c: E2 0E 00 51 53 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 80 [12:25:46]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [12:25:46]wFMCommunicate OK [12:25:46]SAM_PROTO_GetShiftState done [12:25:46]FM_GetShiftState done [12:25:46]req_shift_opened done [12:25:46]requested_item shift.open_date is exist - process it [12:25:46]req_shift_open_date [12:25:46]req_shift_open_date done [12:25:46]produce_requested_data done [12:25:46]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187716,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [12:25:46]process_action_free close_receipt [12:25:46]json_value_free [12:25:46]json_value_free done [12:25:46]process_json_proto returns [12:25:46]Send response to host [12:25:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187716,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [12:25:46]free response buf [12:25:46]execute_script done [12:25:46]execute_script returns [12:25:46]free content buf [12:25:46]Sock 8.Close socket [12:25:46]Sock 8.Thread stoped [12:25:50]OFD Sender: No OFD packet to send [12:25:55]OFD Sender: No OFD packet to send [12:26:00]OFD Sender: No OFD packet to send [12:26:05]OFD Sender: No OFD packet to send [12:26:10]OFD Sender: No OFD packet to send [12:26:15]OFD Sender: No OFD packet to send [12:26:20]OFD Sender: No OFD packet to send [12:26:25]OFD Sender: No OFD packet to send [12:26:30]OFD Sender: No OFD packet to send [12:26:35]OFD Sender: No OFD packet to send [12:26:40]OFD Sender: No OFD packet to send [12:26:45]OFD Sender: No OFD packet to send [12:26:50]OFD Sender: No OFD packet to send [12:26:55]OFD Sender: No OFD packet to send [12:27:00]OFD Sender: No OFD packet to send [12:27:05]accept exits with 9 [12:27:05]New connection [12:27:05]New thread 3067014500 created [12:27:05]Thread 3067157860 joined [12:27:05]Waiting for new connection... [12:27:05] Sock 9.Parse request [12:27:05]Sock 9.Check first char [12:27:05]Sock 9.First char is OK [12:27:05]request: POST /json_proto HTTP/1.0 [12:27:05]Method: POST [12:27:05]URL: /json_proto [12:27:05]Method is POST - this is cgi request [12:27:05]url: /json_proto [12:27:05]query_string will be loaded in cgi processing [12:27:05]execute_cgi json_proto POST (null) [12:27:05]execute_cgi path=json_proto method=POST [12:27:05]POST find Content-Length [12:27:05]Host: 172.17.42.131:8080 [12:27:05]Content-Length: 682 [12:27:05]Content-Type: application/json [12:27:05] [12:27:05]POST finish read [12:27:05]Found Content-Length = 682 [12:27:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209769", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 26.960, "sum" : 2000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:27:05]execute_script... [12:27: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)209769", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 26.960, "sum" : 2000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:27:05]POST & json_proto [12:27:05]process_json_proto [12:27:05]json parsed OK: [12:27:05]protocol is kg_v1.0 [12:27:05]action value=close_receipt [12:27:05]process_action close_receipt [12:27:05]cmd_close_receipt [12:27:05]MH_GetDate [12:27:05]Write to MH i2c: F0 00 00 52 53 94 [12:27:05]Write i2c OK [12:27:05]MH_I2C_Read... [12:27:05]Read from MH i2c: F0 [12:27:05]MH_I2C_Read... [12:27:05]Read from MH i2c: F0 09 00 [12:27:05]MH_I2C_Read... [12:27:05]Read from MH i2c: F0 09 00 52 53 00 9D 48 16 67 A0 18 CA 66 E7 [12:27:05]GetLastDocTimeStamp 1729513546 [12:27:05]current date 1729513629 [12:27:05]FM_GetShiftState [12:27:05]SAM_PROTO_GetShiftState [12:27:05]wFMCommunicate request_size=4 [12:27:05]MH_SAM_APDU [12:27:05]CAPDU: 80 13 01 00 [12:27:05]Write to MH i2c: E2 08 00 53 53 80 13 01 00 00 00 00 00 23 [12:27:05]Write i2c OK [12:27:05]MH_I2C_Read... [12:27:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:27:05]Read from MH i2c: E2 [12:27:05]MH_I2C_Read... [12:27:05]Read from MH i2c: E2 0E 00 [12:27:05]MH_I2C_Read... [12:27:05]Read from MH i2c: E2 0E 00 53 53 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 82 [12:27:05]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [12:27:05]wFMCommunicate OK [12:27:05]SAM_PROTO_GetShiftState done [12:27:05]FM_GetShiftState done [12:27:05]opened in 1729469754 [12:27:05]opened+sec_in_day 1729556154 [12:27:05]quantity*price = 200043 [12:27:05]sum+1 = 200044 [12:27:05]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.43 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.43 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 181 21.10.2024 12:27 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 187717 ФПД: 165766289956272 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T122709&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187717&fm=165766289956272&tin=02508201610067®Number=0000000000100030&sum=200000 [12:27:06]StoreToDocumentArchive [12:27:06]shift 460 fd 187717 [12:27:06]save to /storage/0460/doc_00187717 [12:27:06]save last doc name /storage/0460/doc_00187717 to /storage/kkm_last_doc_name [12:27:06]save OK [12:27:06]Clear old archive folders... [12:27:06]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:27:06]tlvbuf is 0118D730 [12:27:06]SAM_PROTO_ClearQueue [12:27:06]wFMCommunicate request_size=4 [12:27:06]MH_SAM_APDU [12:27:06]CAPDU: 80 09 00 00 [12:27:06]Write to MH i2c: E2 08 00 60 53 80 09 00 00 00 00 00 00 25 [12:27:06]Write i2c OK [12:27:06]MH_I2C_Read... [12:27:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:27:06]Read from MH i2c: E2 [12:27:06]MH_I2C_Read... [12:27:06]Read from MH i2c: E2 03 00 [12:27:06]MH_I2C_Read... [12:27:06]Read from MH i2c: E2 03 00 60 53 00 90 00 27 [12:27:06]RAPDU: 90 00 [12:27:06]wFMCommunicate OK [12:27:06]SAM_PROTO_ClearQueue done [12:27:06]KKMCreateOFDPacket [12:27:06]OFDProtocolAddRootSTLVToBuf [12:27:06]FM_MakeSignedData [12:27:06]FM_MakeSignedData [12:27:06]SAM_PROTO_SignData [12:27:06]wFMCommunicate request_size=4 [12:27:06]MH_SAM_APDU [12:27:06]CAPDU: 80 0D 01 02 [12:27:06]Write to MH i2c: E2 08 00 61 53 80 0D 01 02 00 00 00 00 2D [12:27:06]Write i2c OK [12:27:06]MH_I2C_Read... [12:27:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:27:06]Read from MH i2c: E2 [12:27:06]MH_I2C_Read... [12:27:06]Read from MH i2c: E2 03 00 [12:27:06]MH_I2C_Read... [12:27:06]Read from MH i2c: E2 03 00 61 53 00 90 00 28 [12:27:06]RAPDU: 90 00 [12:27:06]wFMCommunicate OK [12:27:06]wFMCommunicate request_size=255 [12:27:06]MH_SAM_APDU [12:27: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B5 00 00 00 F4 03 04 00 9D 48 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 45 DD 02 00 35 04 06 00 96 [12:27:06]Write to MH i2c: E2 02 01 62 53 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B5 00 00 00 F4 03 04 00 9D 48 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 45 DD 02 00 35 04 06 00 96 00 00 E6 [12:27:06]Write i2c OK [12:27:06]MH_I2C_Read... [12:27:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:27:06]Read from MH i2c: E2 [12:27:06]MH_I2C_Read... [12:27:06]Read from MH i2c: E2 03 00 [12:27:06]MH_I2C_Read... [12:27:06]Read from MH i2c: E2 03 00 62 53 00 90 00 29 [12:27:06]RAPDU: 90 00 [12:27:06]wFMCommunicate OK [12:27:06]wFMCommunicate request_size=10 [12:27:06]MH_SAM_APDU [12:27:06]CAPDU: 80 0D 02 02 05 C3 78 D4 1D B0 [12:27:06]Write to MH i2c: E2 0D 00 63 53 80 0D 02 02 05 00 C3 78 D4 1D B0 00 00 16 [12:27:06]Write i2c OK [12:27:06]MH_I2C_Read... [12:27:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:27:06]Read from MH i2c: E2 [12:27:06]MH_I2C_Read... [12:27:06]Read from MH i2c: E2 03 00 [12:27:06]MH_I2C_Read... [12:27:06]Read from MH i2c: E2 03 00 63 53 00 90 00 2A [12:27:06]RAPDU: 90 00 [12:27:06]wFMCommunicate OK [12:27:06]wFMCommunicate request_size=4 [12:27:06]MH_SAM_APDU [12:27:06]CAPDU: 80 0D 03 02 [12:27:06]Write to MH i2c: E2 08 00 64 53 80 0D 03 02 00 00 00 00 32 [12:27:06]Write i2c OK [12:27:06]MH_I2C_Read... [12:27:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:27:06]Read from MH i2c: E2 [12:27:06]MH_I2C_Read... [12:27:06]Read from MH i2c: E2 0B 00 [12:27:06]MH_I2C_Read... [12:27:06]Read from MH i2c: E2 0B 00 64 53 00 54 C3 FD 92 8F E1 07 7B 90 00 CB [12:27:06]RAPDU: 54 C3 FD 92 8F E1 07 7B 90 00 [12:27:06]wFMCommunicate OK [12:27:06]SAM_PROTO_SignData done [12:27:06]FM_MakeSignedData done [12:27:06]CreateOFDProtocolMessage [12:27:06]wFMCommunicate request_size=4 [12:27:06]MH_SAM_APDU [12:27:06]CAPDU: 80 11 00 00 [12:27:06]Write to MH i2c: E2 08 00 65 53 80 11 00 00 00 00 00 00 32 [12:27:06]Write i2c OK [12:27:06]MH_I2C_Read... [12:27:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:27:06]Read from MH i2c: E2 [12:27:06]MH_I2C_Read... [12:27:06]Read from MH i2c: E2 17 00 [12:27:06]MH_I2C_Read... [12:27:06]Read from MH i2c: E2 17 00 65 53 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 80 [12:27:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [12:27:06]wFMCommunicate OK [12:27:06]CreateOFDProtocolMessage done [12:27:06]OFDSenderStorePacket 187717 [12:27:06]StoreOFDPacket docnum=187717 [12:27:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 8B BC 07 01 9C 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B5 00 00 00 F4 03 04 00 9D 48 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 45 DD 02 00 35 04 06 00 96 C3 78 D4 1D B0 54 C3 FD 92 8F E1 07 7B [12:27:06]CheckFolder [12:27:06]dirname=/storage/ofd_packets [12:27:06]CheckFolder done [12:27:06]ProducePacketName [12:27:06]name=ofd_packets/00187717 [12:27:06]NVStorageSaveData ofd_packets/00187717 [12:27:06]File name is /storage/ofd_packets/00187717 [12:27:06]Write 301 bytes [12:27:06]NVStorageSaveData done [12:27:06]OFDSenderStorePacket done [12:27:06]KKMCreateOFDPacket done [12:27:06]NVStorageSaveData kkm_last_timestamp [12:27:06]File name is /storage/kkm_last_timestamp [12:27:06]Write 4 bytes [12:27:06]NVStorageSaveData done [12:27:06]ExternCall_PrintAddStr [12:27:06]wPrintStart [12:27:06]Write to MH i2c: 01 00 00 66 53 B9 [12:27:06]Write i2c OK [12:27:06]MH_I2C_Read... [12:27:06]Read from MH i2c: 01 [12:27:06]MH_I2C_Read... [12:27:06]Read from MH i2c: 01 07 00 [12:27:06]MH_I2C_Read... [12:27:06]Read from MH i2c: 01 07 00 66 53 00 00 00 00 00 FF 0F CE [12:27:06]RasterBufferAndPrint [12:27:06]line Счет N : (1)209769 [12:27:06]line ИНН: 02508201610067 [12:27:06]line Контрольно-Кассовый Чек [12:27:06]line ПРОДАЖА [12:27:06]line ТРК (МРК, ГНК) : 43 [12:27:06]line Товар: 2710124500 [12:27:06]line Аи-95-К-3 [12:27:06]line 26.960 * 74.20 [12:27:06]line = 2000.43 [12:27:06]line НДС 12% НСП 1% [12:27:06]line > о реализуемом товаре [12:27:06]line ОКРУГЛЕНИЕ: -0.43 [12:27:06]line ИТОГО: 2000.00 [12:27:06]line Внесено: 2000.00 [12:27:06]line СДАЧА: 0.00 [12:27:06]line НСП 1% : 17.70 [12:27:06]line НДС 12% : 212.43 [12:27:06]line Наличными: 2000.00 [12:27:06]line Безнал.: 0.00 [12:27:06]line Место: АЗС № 86 "Партнер Нефть" [12:27:06]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [12:27:06]line СНО: Общий режим [12:27:06]line Чек 181 21.10.2024 12:27 [12:27:06]line Смена: 460 ФФД: 1.0 [12:27:06]line ЗНМ: 0300000155 [12:27:06]line РНМ: 0000000000100030 [12:27:06]line Версия ККМ: 001 [12:27:06]line ФМ: 0000000000965340 [12:27:06]line ФД: 187717 [12:27:06]line ФПД: 165766289956272 [12:27:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T122709&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187717&fm=165766289956272&tin=02508201610067®Number=0000000000100030&sum=200000 [12:27:06]written 0, free lines is 4095 [12:27:06]OFD Sender: Processing packet 187717 [packets to send 1062, broken 1061] [12:27:06]ProducePacketName [12:27:06]name=ofd_packets/00187717 [12:27:07]OFD Sender: To server: pG, [12:27:07]CommunicateWithHost lk.salyk.kg:30040 [12:27:07]ConnectInit lk.salyk.kg [12:27:07]Connected sock=10 [12:27:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 8B BC 07 01 9C 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B5 00 00 00 F4 03 04 00 9D 48 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 45 DD 02 00 35 04 06 00 96 C3 78 D4 1D B0 54 C3 FD 92 8F E1 07 7B [12:27:07]Write to MH i2c: 01 00 00 91 53 E4 [12:27:07]Write i2c OK [12:27:07]MH_I2C_Read... [12:27:07]Read from MH i2c: 01 [12:27:07]MH_I2C_Read... [12:27:07]Read from MH i2c: 01 07 00 [12:27:07]MH_I2C_Read... [12:27:07]Read from MH i2c: 01 07 00 91 53 00 00 00 00 00 7B 0C 72 [12:27:07]RasterBufferAndPrint [12:27:07]line [12:27:07]line [12:27:07]line [12:27:07]line [12:27:07]line [12:27:07]written 0, free lines is 3198 [12:27:07]MH_Cut [12:27:07]Write to MH i2c: D1 01 00 98 53 01 BD [12:27:07]Write i2c OK [12:27:07]MH_I2C_Read... [12:27:07]Read from MH i2c: D1 [12:27:07]MH_I2C_Read... [12:27:07]Read from MH i2c: D1 01 00 [12:27:07]MH_I2C_Read... [12:27:07]Read from MH i2c: D1 01 00 98 53 00 BC [12:27:07]Write to MH i2c: 01 00 00 99 53 EC [12:27:07]Write i2c OK [12:27:07]MH_I2C_Read... [12:27:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 4B 8F 47 00 4C AD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 45 DD 02 00 F4 03 04 00 8C F2 15 67 B6 04 01 00 00 00 49 0D 2C 1A 2E 59 13 [12:27:07]CommunicateWithHost err = 0 [12:27:07]CheckOFDResponse [12:27:07]1017 (14) - 77093643461234 [12:27:07]1041 (16) - 0000000000965340 [12:27:07]1040 (4) - 187717 [12:27:07]1012 (4) - 21.10.2024 06:19 [12:27:07]1206 (1) - 0 [12:27:07]OFD Sender: Remove packet 187717 [12:27:07]ProducePacketName [12:27:07]name=ofd_packets/00187717 [12:27:07]NVStorageDeleteData [12:27:07]OFD Sender: No OFD packet to send [12:27:08]*** Cut start [12:27:08]*** Partial cut [12:27:08]*** CUTSNS_PIN = 1 [12:27:08]*** CUTSNS_PIN = 0 [12:27:08]*** Brake cut motor [12:27:09]Read from MH i2c: 01 [12:27:09]MH_I2C_Read... [12:27:09]*** Stop cut motor [12:27:09]*** Cut end [12:27:09]Read from MH i2c: 01 07 00 [12:27:09]MH_I2C_Read... [12:27:09]Read from MH i2c: 01 07 00 99 53 00 00 00 00 00 FF 0F 01 [12:27:09]process_action close_receipt done [12:27:09]requested_data is exist [12:27:09]produce_requested_data [12:27:09]requested_item fm.sn is exist - process it [12:27:09]wFMCommunicate request_size=4 [12:27:09]MH_SAM_APDU [12:27:09]CAPDU: 80 11 00 00 [12:27:09]Write to MH i2c: E2 08 00 9A 53 80 11 00 00 00 00 00 00 67 [12:27:09]Write i2c OK [12:27:09]MH_I2C_Read... [12:27:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:27:09]Read from MH i2c: E2 [12:27:09]MH_I2C_Read... [12:27:09]Read from MH i2c: E2 17 00 [12:27:09]MH_I2C_Read... [12:27:09]Read from MH i2c: E2 17 00 9A 53 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 B5 [12:27:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [12:27:09]wFMCommunicate OK [12:27:09]requested_item fd.num is exist - process it [12:27:09]SAM_PROTO_GetFieldsCounters [12:27:09]wFMCommunicate request_size=4 [12:27:09]MH_SAM_APDU [12:27:09]CAPDU: 80 13 00 00 [12:27:09]Write to MH i2c: E2 08 00 9B 53 80 13 00 00 00 00 00 00 6A [12:27:09]Write i2c OK [12:27:09]MH_I2C_Read... [12:27:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:27:09]Read from MH i2c: E2 [12:27:09]MH_I2C_Read... [12:27:09]Read from MH i2c: E2 62 00 [12:27:09]MH_I2C_Read... [12:27:09]Read from MH i2c: E2 62 00 9B 53 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 45 DD 02 00 0E 04 04 00 CC 01 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 81 [12:27:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 45 DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 B5 00 00 00 5E 04 04 00 B5 00 00 00 57 04 04 00 B6 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:27:09]wFMCommunicate OK [12:27:09]SAM_PROTO_GetFieldsCounters done [12:27:09]requested_item shift.num is exist - process it [12:27:09]requested_item shift.opened is exist - process it [12:27:09]req_shift_opened [12:27:09]FM_GetShiftState [12:27:09]SAM_PROTO_GetShiftState [12:27:09]wFMCommunicate request_size=4 [12:27:09]MH_SAM_APDU [12:27:09]CAPDU: 80 13 01 00 [12:27:09]Write to MH i2c: E2 08 00 9C 53 80 13 01 00 00 00 00 00 6C [12:27:09]Write i2c OK [12:27:09]MH_I2C_Read... [12:27:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:27:09]Read from MH i2c: E2 [12:27:09]MH_I2C_Read... [12:27:09]Read from MH i2c: E2 0E 00 [12:27:09]MH_I2C_Read... [12:27:09]Read from MH i2c: E2 0E 00 9C 53 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 CB [12:27:09]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [12:27:09]wFMCommunicate OK [12:27:09]SAM_PROTO_GetShiftState done [12:27:09]FM_GetShiftState done [12:27:09]req_shift_opened done [12:27:09]requested_item shift.open_date is exist - process it [12:27:09]req_shift_open_date [12:27:09]req_shift_open_date done [12:27:09]produce_requested_data done [12:27:09]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187717,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [12:27:09]process_action_free close_receipt [12:27:09]json_value_free [12:27:09]json_value_free done [12:27:09]process_json_proto returns [12:27:09]Send response to host [12:27:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187717,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [12:27:09]free response buf [12:27:09]execute_script done [12:27:09]execute_script returns [12:27:09]free content buf [12:27:09]Sock 9.Close socket [12:27:09]Sock 9.Thread stoped [12:27:12]OFD Sender: No OFD packet to send [12:27:18]OFD Sender: No OFD packet to send [12:27:23]OFD Sender: No OFD packet to send [12:27:28]OFD Sender: No OFD packet to send [12:27:33]OFD Sender: No OFD packet to send [12:27:38]OFD Sender: No OFD packet to send [12:27:43]OFD Sender: No OFD packet to send [12:27:48]OFD Sender: No OFD packet to send [12:27:53]OFD Sender: No OFD packet to send [12:27:58]OFD Sender: No OFD packet to send [12:28:03]OFD Sender: No OFD packet to send [12:28:08]OFD Sender: No OFD packet to send [12:28:13]OFD Sender: No OFD packet to send [12:28:18]OFD Sender: No OFD packet to send [12:28:23]OFD Sender: No OFD packet to send [12:28:28]OFD Sender: No OFD packet to send [12:28:33]OFD Sender: No OFD packet to send [12:28:38]OFD Sender: No OFD packet to send [12:28:43]OFD Sender: No OFD packet to send [12:28:48]OFD Sender: No OFD packet to send [12:28:53]OFD Sender: No OFD packet to send [12:28:58]OFD Sender: No OFD packet to send [12:29:03]OFD Sender: No OFD packet to send [12:29: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]accept exits with 8 [12:29:58]New connection [12:29:58]New thread 3067157860 created [12:29:58]Thread 3067014500 joined [12:29:58]Waiting for new connection... [12:29:58] Sock 8.Parse request [12:29:58]Sock 8.Check first char [12:29:58]Sock 8.First char is OK [12:29:58]request: POST /json_proto HTTP/1.0 [12:29:58]Method: POST [12:29:58]URL: /json_proto [12:29:58]Method is POST - this is cgi request [12:29:58]url: /json_proto [12:29:58]query_string will be loaded in cgi processing [12:29:58]execute_cgi json_proto POST (null) [12:29:58]execute_cgi path=json_proto method=POST [12:29:58]POST find Content-Length [12:29:58]Host: 172.17.42.131:8080 [12:29:58]Content-Length: 688 [12:29:58]Content-Type: application/json [12:29:58] [12:29:58]POST finish read [12:29:58]Found Content-Length = 688 [12:29:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209770", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 12.960, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:29:58]execute_script... [12:29: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)209770", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 12.960, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:29:58]POST & json_proto [12:29:58]process_json_proto [12:29:58]json parsed OK: [12:29:58]protocol is kg_v1.0 [12:29:58]action value=close_receipt [12:29:58]process_action close_receipt [12:29:58]cmd_close_receipt [12:29:58]MH_GetDate [12:29:58]Write to MH i2c: F0 00 00 9D 53 DF [12:29:58]Write i2c OK [12:29:58]MH_I2C_Read... [12:29:58]Read from MH i2c: F0 [12:29:58]MH_I2C_Read... [12:29:58]Read from MH i2c: F0 09 00 [12:29:58]MH_I2C_Read... [12:29:58]Read from MH i2c: F0 09 00 9D 53 00 4A 49 16 67 A0 18 CA 66 E0 [12:29:58]GetLastDocTimeStamp 1729513629 [12:29:58]current date 1729513802 [12:29:58]FM_GetShiftState [12:29:58]SAM_PROTO_GetShiftState [12:29:58]wFMCommunicate request_size=4 [12:29:58]MH_SAM_APDU [12:29:58]CAPDU: 80 13 01 00 [12:29:58]Write to MH i2c: E2 08 00 9E 53 80 13 01 00 00 00 00 00 6E [12:29:58]Write i2c OK [12:29:58]MH_I2C_Read... [12:29:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:29:58]Read from MH i2c: E2 [12:29:58]MH_I2C_Read... [12:29:58]Read from MH i2c: E2 0E 00 [12:29:58]MH_I2C_Read... [12:29:58]Read from MH i2c: E2 0E 00 9E 53 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 CD [12:29:58]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [12:29:58]wFMCommunicate OK [12:29:58]SAM_PROTO_GetShiftState done [12:29:58]FM_GetShiftState done [12:29:58]opened in 1729469754 [12:29:58]opened+sec_in_day 1729556154 [12:29:58]quantity*price = 100051 [12:29:58]sum+1 = 100052 [12:29:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 182 21.10.2024 12:30 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 187718 ФПД: 133285870281572 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T123002&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187718&fm=133285870281572&tin=02508201610067®Number=0000000000100030&sum=100000 [12:29:59]StoreToDocumentArchive [12:29:59]shift 460 fd 187718 [12:29:59]save to /storage/0460/doc_00187718 [12:29:59]save last doc name /storage/0460/doc_00187718 to /storage/kkm_last_doc_name [12:29:59]save OK [12:29:59]Clear old archive folders... [12:29:59]ProcessDocumentItem done err = 0, tmpTLVsize=257 [12:29:59]tlvbuf is 01090130 [12:29:59]SAM_PROTO_ClearQueue [12:29:59]wFMCommunicate request_size=4 [12:29:59]MH_SAM_APDU [12:29:59]CAPDU: 80 09 00 00 [12:29:59]Write to MH i2c: E2 08 00 AB 53 80 09 00 00 00 00 00 00 70 [12:29:59]Write i2c OK [12:29:59]MH_I2C_Read... [12:29:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:29:59]Read from MH i2c: E2 [12:29:59]MH_I2C_Read... [12:29:59]Read from MH i2c: E2 03 00 [12:29:59]MH_I2C_Read... [12:29:59]Read from MH i2c: E2 03 00 AB 53 00 90 00 72 [12:29:59]RAPDU: 90 00 [12:29:59]wFMCommunicate OK [12:29:59]SAM_PROTO_ClearQueue done [12:29:59]KKMCreateOFDPacket [12:29:59]OFDProtocolAddRootSTLVToBuf [12:29:59]FM_MakeSignedData [12:29:59]FM_MakeSignedData [12:29:59]SAM_PROTO_SignData [12:29:59]wFMCommunicate request_size=4 [12:29:59]MH_SAM_APDU [12:29:59]CAPDU: 80 0D 01 02 [12:29:59]Write to MH i2c: E2 08 00 AC 53 80 0D 01 02 00 00 00 00 78 [12:29:59]Write i2c OK [12:29:59]MH_I2C_Read... [12:29:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:29:59]Read from MH i2c: E2 [12:29:59]MH_I2C_Read... [12:29:59]Read from MH i2c: E2 03 00 [12:29:59]MH_I2C_Read... [12:29:59]Read from MH i2c: E2 03 00 AC 53 00 90 00 73 [12:29:59]RAPDU: 90 00 [12:29:59]wFMCommunicate OK [12:29:59]wFMCommunicate request_size=255 [12:29:59]MH_SAM_APDU [12:29:59]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B6 00 00 00 F4 03 04 00 4A 49 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 46 DD 02 [12:29:59]Write to MH i2c: E2 02 01 AD 53 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 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B6 00 00 00 F4 03 04 00 4A 49 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 46 DD 02 00 00 8D [12:29:59]Write i2c OK [12:29:59]MH_I2C_Read... [12:29:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:29:59]Read from MH i2c: E2 [12:29:59]MH_I2C_Read... [12:29:59]Read from MH i2c: E2 03 00 [12:29:59]MH_I2C_Read... [12:29:59]Read from MH i2c: E2 03 00 AD 53 00 90 00 74 [12:29:59]RAPDU: 90 00 [12:29:59]wFMCommunicate OK [12:29:59]wFMCommunicate request_size=16 [12:29:59]MH_SAM_APDU [12:29:59]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 79 39 08 F3 A3 64 [12:29:59]Write to MH i2c: E2 13 00 AE 53 80 0D 02 02 0B 00 00 35 04 06 00 79 39 08 F3 A3 64 00 00 84 [12:29:59]Write i2c OK [12:29:59]MH_I2C_Read... [12:30:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:30:00]Read from MH i2c: E2 [12:30:00]MH_I2C_Read... [12:30:00]Read from MH i2c: E2 03 00 [12:30:00]MH_I2C_Read... [12:30:00]Read from MH i2c: E2 03 00 AE 53 00 90 00 75 [12:30:00]RAPDU: 90 00 [12:30:00]wFMCommunicate OK [12:30:00]wFMCommunicate request_size=4 [12:30:00]MH_SAM_APDU [12:30:00]CAPDU: 80 0D 03 02 [12:30:00]Write to MH i2c: E2 08 00 AF 53 80 0D 03 02 00 00 00 00 7D [12:30:00]Write i2c OK [12:30:00]MH_I2C_Read... [12:30:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:30:00]Read from MH i2c: E2 [12:30:00]MH_I2C_Read... [12:30:00]Read from MH i2c: E2 0B 00 [12:30:00]MH_I2C_Read... [12:30:00]Read from MH i2c: E2 0B 00 AF 53 00 73 4D 5D 3F 62 7E 7A 55 90 00 89 [12:30:00]RAPDU: 73 4D 5D 3F 62 7E 7A 55 90 00 [12:30:00]wFMCommunicate OK [12:30:00]SAM_PROTO_SignData done [12:30:00]FM_MakeSignedData done [12:30:00]CreateOFDProtocolMessage [12:30:00]wFMCommunicate request_size=4 [12:30:00]MH_SAM_APDU [12:30:00]CAPDU: 80 11 00 00 [12:30:00]Write to MH i2c: E2 08 00 B0 53 80 11 00 00 00 00 00 00 7D [12:30:00]Write i2c OK [12:30:00]MH_I2C_Read... [12:30:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:30:00]Read from MH i2c: E2 [12:30:00]MH_I2C_Read... [12:30:00]Read from MH i2c: E2 17 00 [12:30:00]MH_I2C_Read... [12:30:00]Read from MH i2c: E2 17 00 B0 53 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 CB [12:30:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [12:30:00]wFMCommunicate OK [12:30:00]CreateOFDProtocolMessage done [12:30:00]OFDSenderStorePacket 187718 [12:30:00]StoreOFDPacket docnum=187718 [12:30:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 F2 15 0D 01 5B B1 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 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B6 00 00 00 F4 03 04 00 4A 49 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 46 DD 02 00 35 04 06 00 79 39 08 F3 A3 64 73 4D 5D 3F 62 7E 7A 55 [12:30:00]CheckFolder [12:30:00]dirname=/storage/ofd_packets [12:30:00]CheckFolder done [12:30:00]ProducePacketName [12:30:00]name=ofd_packets/00187718 [12:30:00]NVStorageSaveData ofd_packets/00187718 [12:30:00]File name is /storage/ofd_packets/00187718 [12:30:00]Write 307 bytes [12:30:00]NVStorageSaveData done [12:30:00]OFDSenderStorePacket done [12:30:00]KKMCreateOFDPacket done [12:30:00]NVStorageSaveData kkm_last_timestamp [12:30:00]File name is /storage/kkm_last_timestamp [12:30:00]Write 4 bytes [12:30:00]NVStorageSaveData done [12:30:00]ExternCall_PrintAddStr [12:30:00]wPrintStart [12:30:00]Write to MH i2c: 01 00 00 B1 53 04 [12:30:00]Write i2c OK [12:30:00]MH_I2C_Read... [12:30:00]Read from MH i2c: 01 [12:30:00]MH_I2C_Read... [12:30:00]Read from MH i2c: 01 07 00 [12:30:00]MH_I2C_Read... [12:30:00]Read from MH i2c: 01 07 00 B1 53 00 00 00 00 00 FF 0F 19 [12:30:00]RasterBufferAndPrint [12:30:00]line Счет N : (1)209770 [12:30:00]line ИНН: 02508201610067 [12:30:00]line Контрольно-Кассовый Чек [12:30:00]line ПРОДАЖА [12:30:00]line ТРК (МРК, ГНК) : 31 [12:30:00]line Товар: 2710194210 [12:30:00]line D-ENERGY ДТ-К-5 [12:30:00]line 12.960 * 77.20 [12:30:00]line = 1000.51 [12:30:00]line НДС 12% НСП 1% [12:30:00]line > о реализуемом товаре [12:30:00]line ОКРУГЛЕНИЕ: -0.51 [12:30:00]line ИТОГО: 1000.00 [12:30:00]line Внесено: 1000.00 [12:30:00]line СДАЧА: 0.00 [12:30:00]line НСП 1% : 8.85 [12:30:00]line НДС 12% : 106.25 [12:30:00]line Наличными: 1000.00 [12:30:00]line Безнал.: 0.00 [12:30:00]line Место: АЗС № 86 "Партнер Нефть" [12:30:00]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [12:30:00]line СНО: Общий режим [12:30:00]line Чек 182 21.10.2024 12:30 [12:30:00]line Смена: 460 ФФД: 1.0 [12:30:00]line ЗНМ: 0300000155 [12:30:00]line РНМ: 0000000000100030 [12:30:00]line Версия ККМ: 001 [12:30:00]line ФМ: 0000000000965340 [12:30:00]line ФД: 187718 [12:30:00]line ФПД: 133285870281572 [12:30:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T123002&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187718&fm=133285870281572&tin=02508201610067®Number=0000000000100030&sum=100000 [12:30:00]written 0, free lines is 4095 [12:30:00]OFD Sender: Processing packet 187718 [packets to send 1062, broken 1061] [12:30:00]ProducePacketName [12:30:00]name=ofd_packets/00187718 [12:30:00]OFD Sender: To server: pG, [12:30:00]CommunicateWithHost lk.salyk.kg:30040 [12:30:00]ConnectInit lk.salyk.kg [12:30:00]Connected sock=10 [12:30:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 F2 15 0D 01 5B B1 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 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B6 00 00 00 F4 03 04 00 4A 49 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 46 DD 02 00 35 04 06 00 79 39 08 F3 A3 64 73 4D 5D 3F 62 7E 7A 55 [12:30:00]Write to MH i2c: 01 00 00 DC 53 2F [12:30:00]Write i2c OK [12:30:00]MH_I2C_Read... [12:30:00]Read from MH i2c: 01 [12:30:00]MH_I2C_Read... [12:30:00]Read from MH i2c: 01 07 00 [12:30:00]MH_I2C_Read... [12:30:00]Read from MH i2c: 01 07 00 DC 53 00 00 00 00 00 72 0C B4 [12:30:00]RasterBufferAndPrint [12:30:00]line [12:30:00]line [12:30:00]line [12:30:00]line [12:30:00]line [12:30:00]written 0, free lines is 3189 [12:30:00]MH_Cut [12:30:00]Write to MH i2c: D1 01 00 E3 53 01 08 [12:30:00]Write i2c OK [12:30:00]MH_I2C_Read... [12:30:00]Read from MH i2c: D1 [12:30:00]MH_I2C_Read... [12:30:00]Read from MH i2c: D1 01 00 [12:30:00]MH_I2C_Read... [12:30:00]Read from MH i2c: D1 01 00 E3 53 00 07 [12:30:00]Write to MH i2c: 01 00 00 E4 53 37 [12:30:00]Write i2c OK [12:30:00]MH_I2C_Read... [12:30:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 1F 12 47 00 09 84 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 46 DD 02 00 F4 03 04 00 3A F3 15 67 B6 04 01 00 00 32 37 12 FB 79 53 BD C7 [12:30:00]CommunicateWithHost err = 0 [12:30:00]CheckOFDResponse [12:30:00]1017 (14) - 77093643461234 [12:30:00]1041 (16) - 0000000000965340 [12:30:00]1040 (4) - 187718 [12:30:00]1012 (4) - 21.10.2024 06:22 [12:30:00]1206 (1) - 0 [12:30:00]OFD Sender: Remove packet 187718 [12:30:00]ProducePacketName [12:30:00]name=ofd_packets/00187718 [12:30:00]NVStorageDeleteData [12:30:01]OFD Sender: No OFD packet to send [12:30:01]*** Cut start [12:30:01]*** Partial cut [12:30:01]*** CUTSNS_PIN = 1 [12:30:01]*** CUTSNS_PIN = 0 [12:30:02]*** Brake cut motor [12:30:02]Read from MH i2c: 01 [12:30:02]MH_I2C_Read... [12:30:02]*** Stop cut motor [12:30:02]*** Cut end [12:30:02]Read from MH i2c: 01 07 00 [12:30:02]MH_I2C_Read... [12:30:02]Read from MH i2c: 01 07 00 E4 53 00 00 00 00 00 FF 0F 4C [12:30:02]process_action close_receipt done [12:30:02]requested_data is exist [12:30:02]produce_requested_data [12:30:02]requested_item fm.sn is exist - process it [12:30:02]wFMCommunicate request_size=4 [12:30:02]MH_SAM_APDU [12:30:02]CAPDU: 80 11 00 00 [12:30:02]Write to MH i2c: E2 08 00 E5 53 80 11 00 00 00 00 00 00 B2 [12:30:02]Write i2c OK [12:30:02]MH_I2C_Read... [12:30:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:30:02]Read from MH i2c: E2 [12:30:02]MH_I2C_Read... [12:30:02]Read from MH i2c: E2 17 00 [12:30:02]MH_I2C_Read... [12:30:02]Read from MH i2c: E2 17 00 E5 53 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 00 [12:30:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [12:30:02]wFMCommunicate OK [12:30:02]requested_item fd.num is exist - process it [12:30:02]SAM_PROTO_GetFieldsCounters [12:30:02]wFMCommunicate request_size=4 [12:30:02]MH_SAM_APDU [12:30:02]CAPDU: 80 13 00 00 [12:30:02]Write to MH i2c: E2 08 00 E6 53 80 13 00 00 00 00 00 00 B5 [12:30:02]Write i2c OK [12:30:02]MH_I2C_Read... [12:30:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:30:02]Read from MH i2c: E2 [12:30:02]MH_I2C_Read... [12:30:02]Read from MH i2c: E2 62 00 [12:30:02]MH_I2C_Read... [12:30:02]Read from MH i2c: E2 62 00 E6 53 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 46 DD 02 00 0E 04 04 00 CC 01 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 D0 [12:30:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 46 DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 B6 00 00 00 5E 04 04 00 B6 00 00 00 57 04 04 00 B7 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:30:02]wFMCommunicate OK [12:30:02]SAM_PROTO_GetFieldsCounters done [12:30:02]requested_item shift.num is exist - process it [12:30:02]requested_item shift.opened is exist - process it [12:30:02]req_shift_opened [12:30:02]FM_GetShiftState [12:30:02]SAM_PROTO_GetShiftState [12:30:02]wFMCommunicate request_size=4 [12:30:02]MH_SAM_APDU [12:30:02]CAPDU: 80 13 01 00 [12:30:02]Write to MH i2c: E2 08 00 E7 53 80 13 01 00 00 00 00 00 B7 [12:30:02]Write i2c OK [12:30:02]MH_I2C_Read... [12:30:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:30:02]Read from MH i2c: E2 [12:30:02]MH_I2C_Read... [12:30:02]Read from MH i2c: E2 0E 00 [12:30:02]MH_I2C_Read... [12:30:02]Read from MH i2c: E2 0E 00 E7 53 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 16 [12:30:02]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [12:30:02]wFMCommunicate OK [12:30:02]SAM_PROTO_GetShiftState done [12:30:02]FM_GetShiftState done [12:30:02]req_shift_opened done [12:30:02]requested_item shift.open_date is exist - process it [12:30:02]req_shift_open_date [12:30:02]req_shift_open_date done [12:30:02]produce_requested_data done [12:30:02]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187718,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [12:30:02]process_action_free close_receipt [12:30:02]json_value_free [12:30:02]json_value_free done [12:30:02]process_json_proto returns [12:30:02]Send response to host [12:30:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187718,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [12:30:02]free response buf [12:30:02]execute_script done [12:30:02]execute_script returns [12:30:02]free content buf [12:30:02]Sock 8.Close socket [12:30:02]Sock 8.Thread stoped [12:30:06]OFD Sender: No OFD packet to send [12:30:11]OFD Sender: No OFD packet to send [12:30:16]OFD Sender: No OFD packet to send [12:30:21]OFD Sender: No OFD packet to send [12:30:26]OFD Sender: No OFD packet to send [12:30:31]OFD Sender: No OFD packet to send [12:30:36]OFD Sender: No OFD packet to send [12:30:41]OFD Sender: No OFD packet to send [12:30:46]OFD Sender: No OFD packet to send [12:30:51]OFD Sender: No OFD packet to send [12:30:56]OFD Sender: No OFD packet to send [12:31:01]OFD Sender: No OFD packet to send [12:31:06]OFD Sender: No OFD packet to send [12:31:11]OFD Sender: No OFD packet to send [12:31:16]OFD Sender: No OFD packet to send [12:31:21]OFD Sender: No OFD packet to send [12:31:26]OFD Sender: No OFD packet to send [12:31:31]OFD Sender: No OFD packet to send [12:31:36]OFD Sender: No OFD packet to send [12:31:41]OFD Sender: No OFD packet to send [12:31:46]OFD Sender: No OFD packet to send [12:31:51]OFD Sender: No OFD packet to send [12:31:56]OFD Sender: No OFD packet to send [12:32:01]OFD Sender: No OFD packet to send [12:32:06]OFD Sender: No OFD packet to send [12:32:11]OFD Sender: No OFD packet to send [12:32:16]OFD Sender: No OFD packet to send [12:32:21]OFD Sender: No OFD packet to send [12:32:26]OFD Sender: No OFD packet to send [12:32:31]OFD Sender: No OFD packet to send [12:32:36]OFD Sender: No OFD packet to send [12:32:41]OFD Sender: No OFD packet to send [12:32:46]OFD Sender: No OFD packet to send [12:32:51]OFD Sender: No OFD packet to send [12:32:57]OFD Sender: No OFD packet to send [12:33:02]OFD Sender: No OFD packet to send [12:33:07]OFD Sender: No OFD packet to send [12:33:12]OFD Sender: No OFD packet to send [12:33:17]OFD Sender: No OFD packet to send [12:33:22]OFD Sender: No OFD packet to send [12:33:27]OFD Sender: No OFD packet to send [12:33:32]OFD Sender: No OFD packet to send [12:33:37]OFD Sender: No OFD packet to send [12:33:42]OFD Sender: No OFD packet to send [12:33:47]OFD Sender: No OFD packet to send [12:33:52]OFD Sender: No OFD packet to send [12:33:57]OFD Sender: No OFD packet to send [12:34:02]OFD Sender: No OFD packet to send [12:34:07]OFD Sender: No OFD packet to send [12:34: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:07]accept exits with 9 [12:35:07]New connection [12:35:07]New thread 3067014500 created [12:35:07]Thread 3067157860 joined [12:35:07]Waiting for new connection... [12:35:07] Sock 9.Parse request [12:35:07]Sock 9.Check first char [12:35:07]Sock 9.First char is OK [12:35:07]request: POST /json_proto HTTP/1.0 [12:35:07]Method: POST [12:35:07]URL: /json_proto [12:35:07]Method is POST - this is cgi request [12:35:07]url: /json_proto [12:35:07]query_string will be loaded in cgi processing [12:35:07]execute_cgi json_proto POST (null) [12:35:07]execute_cgi path=json_proto method=POST [12:35:07]POST find Content-Length [12:35:07]Host: 172.17.42.131:8080 [12:35:07]Content-Length: 677 [12:35:07]Content-Type: application/json [12:35:07] [12:35:07]POST finish read [12:35:07]Found Content-Length = 677 [12:35:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209771", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:35:07]execute_script... [12:35:07]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209771", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:35:07]POST & json_proto [12:35:07]process_json_proto [12:35:07]json parsed OK: [12:35:07]protocol is kg_v1.0 [12:35:07]action value=close_receipt [12:35:07]process_action close_receipt [12:35:07]cmd_close_receipt [12:35:07]MH_GetDate [12:35:07]Write to MH i2c: F0 00 00 E8 53 2A [12:35:07]Write i2c OK [12:35:07]MH_I2C_Read... [12:35:07]Read from MH i2c: F0 [12:35:07]MH_I2C_Read... [12:35:07]Read from MH i2c: F0 09 00 [12:35:07]MH_I2C_Read... [12:35:07]Read from MH i2c: F0 09 00 E8 53 00 7F 4A 16 67 A0 18 CA 66 61 [12:35:07]GetLastDocTimeStamp 1729513802 [12:35:07]current date 1729514111 [12:35:07]FM_GetShiftState [12:35:07]SAM_PROTO_GetShiftState [12:35:07]wFMCommunicate request_size=4 [12:35:07]MH_SAM_APDU [12:35:07]CAPDU: 80 13 01 00 [12:35:07]Write to MH i2c: E2 08 00 E9 53 80 13 01 00 00 00 00 00 B9 [12:35:07]Write i2c OK [12:35:07]MH_I2C_Read... [12:35:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:35:07]Read from MH i2c: E2 [12:35:07]MH_I2C_Read... [12:35:07]Read from MH i2c: E2 0E 00 [12:35:07]MH_I2C_Read... [12:35:07]Read from MH i2c: E2 0E 00 E9 53 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 18 [12:35:07]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [12:35:07]wFMCommunicate OK [12:35:07]SAM_PROTO_GetShiftState done [12:35:07]FM_GetShiftState done [12:35:07]opened in 1729469754 [12:35:07]opened+sec_in_day 1729556154 [12:35:07]quantity*price = 60009 [12:35:07]sum+1 = 60010 [12:35: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 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 183 21.10.2024 12:35 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 187719 ФПД: 74653361094040 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T123511&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187719&fm=74653361094040&tin=02508201610067®Number=0000000000100030&sum=60000 [12:35:08]StoreToDocumentArchive [12:35:08]shift 460 fd 187719 [12:35:08]save to /storage/0460/doc_00187719 [12:35:08]save last doc name /storage/0460/doc_00187719 to /storage/kkm_last_doc_name [12:35:08]save OK [12:35:08]Clear old archive folders... [12:35:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:35:08]tlvbuf is 01090180 [12:35:08]SAM_PROTO_ClearQueue [12:35:08]wFMCommunicate request_size=4 [12:35:08]MH_SAM_APDU [12:35:08]CAPDU: 80 09 00 00 [12:35:08]Write to MH i2c: E2 08 00 F6 53 80 09 00 00 00 00 00 00 BB [12:35:08]Write i2c OK [12:35:08]MH_I2C_Read... [12:35:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:35:08]Read from MH i2c: E2 [12:35:08]MH_I2C_Read... [12:35:08]Read from MH i2c: E2 03 00 [12:35:08]MH_I2C_Read... [12:35:08]Read from MH i2c: E2 03 00 F6 53 00 90 00 BD [12:35:08]RAPDU: 90 00 [12:35:08]wFMCommunicate OK [12:35:08]SAM_PROTO_ClearQueue done [12:35:08]KKMCreateOFDPacket [12:35:08]OFDProtocolAddRootSTLVToBuf [12:35:08]FM_MakeSignedData [12:35:08]FM_MakeSignedData [12:35:08]SAM_PROTO_SignData [12:35:08]wFMCommunicate request_size=4 [12:35:08]MH_SAM_APDU [12:35:08]CAPDU: 80 0D 01 02 [12:35:08]Write to MH i2c: E2 08 00 F7 53 80 0D 01 02 00 00 00 00 C3 [12:35:08]Write i2c OK [12:35:08]MH_I2C_Read... [12:35:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:35:08]Read from MH i2c: E2 [12:35:08]MH_I2C_Read... [12:35:08]Read from MH i2c: E2 03 00 [12:35:08]MH_I2C_Read... [12:35:08]Read from MH i2c: E2 03 00 F7 53 00 90 00 BE [12:35:08]RAPDU: 90 00 [12:35:08]wFMCommunicate OK [12:35:08]wFMCommunicate request_size=255 [12:35:08]MH_SAM_APDU [12:35:08]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 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 B7 00 00 00 F4 03 04 00 7F 4A 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 47 DD 02 00 35 04 06 00 43 [12:35:08]Write to MH i2c: E2 02 01 F8 53 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 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 B7 00 00 00 F4 03 04 00 7F 4A 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 47 DD 02 00 35 04 06 00 43 00 00 46 [12:35:08]Write i2c OK [12:35:08]MH_I2C_Read... [12:35:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:35:08]Read from MH i2c: E2 [12:35:08]MH_I2C_Read... [12:35:08]Read from MH i2c: E2 03 00 [12:35:08]MH_I2C_Read... [12:35:08]Read from MH i2c: E2 03 00 F8 53 00 90 00 BF [12:35:08]RAPDU: 90 00 [12:35:08]wFMCommunicate OK [12:35:08]wFMCommunicate request_size=10 [12:35:08]MH_SAM_APDU [12:35:08]CAPDU: 80 0D 02 02 05 E5 97 11 BD 98 [12:35:08]Write to MH i2c: E2 0D 00 F9 53 80 0D 02 02 05 00 E5 97 11 BD 98 00 00 B2 [12:35:08]Write i2c OK [12:35:08]MH_I2C_Read... [12:35:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:35:08]Read from MH i2c: E2 [12:35:08]MH_I2C_Read... [12:35:08]Read from MH i2c: E2 03 00 [12:35:08]MH_I2C_Read... [12:35:08]Read from MH i2c: E2 03 00 F9 53 00 90 00 C0 [12:35:08]RAPDU: 90 00 [12:35:08]wFMCommunicate OK [12:35:08]wFMCommunicate request_size=4 [12:35:08]MH_SAM_APDU [12:35:08]CAPDU: 80 0D 03 02 [12:35:08]Write to MH i2c: E2 08 00 FA 53 80 0D 03 02 00 00 00 00 C8 [12:35:08]Write i2c OK [12:35:08]MH_I2C_Read... [12:35:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:35:08]Read from MH i2c: E2 [12:35:08]MH_I2C_Read... [12:35:08]Read from MH i2c: E2 0B 00 [12:35:08]MH_I2C_Read... [12:35:08]Read from MH i2c: E2 0B 00 FA 53 00 CA 39 FB 37 A5 0A 89 F9 90 00 2F [12:35:08]RAPDU: CA 39 FB 37 A5 0A 89 F9 90 00 [12:35:08]wFMCommunicate OK [12:35:08]SAM_PROTO_SignData done [12:35:08]FM_MakeSignedData done [12:35:08]CreateOFDProtocolMessage [12:35:08]wFMCommunicate request_size=4 [12:35:08]MH_SAM_APDU [12:35:08]CAPDU: 80 11 00 00 [12:35:08]Write to MH i2c: E2 08 00 FB 53 80 11 00 00 00 00 00 00 C8 [12:35:08]Write i2c OK [12:35:08]MH_I2C_Read... [12:35:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:35:08]Read from MH i2c: E2 [12:35:08]MH_I2C_Read... [12:35:08]Read from MH i2c: E2 17 00 [12:35:08]MH_I2C_Read... [12:35:08]Read from MH i2c: E2 17 00 FB 53 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 16 [12:35:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [12:35:08]wFMCommunicate OK [12:35:08]CreateOFDProtocolMessage done [12:35:08]OFDSenderStorePacket 187719 [12:35:08]StoreOFDPacket docnum=187719 [12:35:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 2C AC 07 01 7C 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 33 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 B7 00 00 00 F4 03 04 00 7F 4A 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 47 DD 02 00 35 04 06 00 43 E5 97 11 BD 98 CA 39 FB 37 A5 0A 89 F9 [12:35:08]CheckFolder [12:35:08]dirname=/storage/ofd_packets [12:35:08]CheckFolder done [12:35:08]ProducePacketName [12:35:08]name=ofd_packets/00187719 [12:35:08]NVStorageSaveData ofd_packets/00187719 [12:35:08]File name is /storage/ofd_packets/00187719 [12:35:08]Write 301 bytes [12:35:08]NVStorageSaveData done [12:35:08]OFDSenderStorePacket done [12:35:08]KKMCreateOFDPacket done [12:35:08]NVStorageSaveData kkm_last_timestamp [12:35:08]File name is /storage/kkm_last_timestamp [12:35:08]Write 4 bytes [12:35:08]NVStorageSaveData done [12:35:08]ExternCall_PrintAddStr [12:35:08]wPrintStart [12:35:08]Write to MH i2c: 01 00 00 FC 53 4F [12:35:08]Write i2c OK [12:35:08]MH_I2C_Read... [12:35:08]Read from MH i2c: 01 [12:35:08]MH_I2C_Read... [12:35:08]Read from MH i2c: 01 07 00 [12:35:08]MH_I2C_Read... [12:35:08]Read from MH i2c: 01 07 00 FC 53 00 00 00 00 00 FF 0F 64 [12:35:08]RasterBufferAndPrint [12:35:08]line Счет N : (1)209771 [12:35:08]line ИНН: 02508201610067 [12:35:08]line Контрольно-Кассовый Чек [12:35:08]line ПРОДАЖА [12:35:08]line ТРК (МРК, ГНК) : 22 [12:35:08]line Товар: 2710124130 [12:35:08]line Аи-92-К-3 [12:35:08]line 8.970 * 66.90 [12:35:08]line = 600.09 [12:35:08]line НДС 12% НСП 1% [12:35:08]line > о реализуемом товаре [12:35:08]line ОКРУГЛЕНИЕ: -0.09 [12:35:08]line ИТОГО: 600.00 [12:35:08]line Внесено: 600.00 [12:35:08]line СДАЧА: 0.00 [12:35:08]line НСП 1% : 5.31 [12:35:08]line НДС 12% : 63.73 [12:35:08]line Наличными: 600.00 [12:35:08]line Безнал.: 0.00 [12:35:08]line Место: АЗС № 86 "Партнер Нефть" [12:35:08]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [12:35:08]line СНО: Общий режим [12:35:08]line Чек 183 21.10.2024 12:35 [12:35:08]line Смена: 460 ФФД: 1.0 [12:35:08]line ЗНМ: 0300000155 [12:35:08]line РНМ: 0000000000100030 [12:35:08]line Версия ККМ: 001 [12:35:08]line ФМ: 0000000000965340 [12:35:08]line ФД: 187719 [12:35:08]line ФПД: 74653361094040 [12:35:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T123511&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187719&fm=74653361094040&tin=02508201610067®Number=0000000000100030&sum=60000 [12:35:08]written 0, free lines is 4095 [12:35:08]OFD Sender: Processing packet 187719 [packets to send 1062, broken 1061] [12:35:08]ProducePacketName [12:35:08]name=ofd_packets/00187719 [12:35:08]OFD Sender: To server: pG, [12:35:08]CommunicateWithHost lk.salyk.kg:30040 [12:35:08]ConnectInit lk.salyk.kg [12:35:09]Connected sock=10 [12:35:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 2C AC 07 01 7C 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 33 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 B7 00 00 00 F4 03 04 00 7F 4A 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 47 DD 02 00 35 04 06 00 43 E5 97 11 BD 98 CA 39 FB 37 A5 0A 89 F9 [12:35:09]Write to MH i2c: 01 00 00 27 54 7B [12:35:09]Write i2c OK [12:35:09]MH_I2C_Read... [12:35:09]Read from MH i2c: 01 [12:35:09]MH_I2C_Read... [12:35:09]Read from MH i2c: 01 07 00 [12:35:09]MH_I2C_Read... [12:35:09]Read from MH i2c: 01 07 00 27 54 00 00 00 00 00 74 0C 02 [12:35:09]RasterBufferAndPrint [12:35:09]line [12:35:09]line [12:35:09]line [12:35:09]line [12:35:09]line [12:35:09]written 0, free lines is 3191 [12:35:09]MH_Cut [12:35:09]Write to MH i2c: D1 01 00 2E 54 01 54 [12:35:09]Write i2c OK [12:35:09]MH_I2C_Read... [12:35:09]Read from MH i2c: D1 [12:35:09]MH_I2C_Read... [12:35:09]Read from MH i2c: D1 01 00 [12:35:09]MH_I2C_Read... [12:35:09]Read from MH i2c: D1 01 00 2E 54 00 53 [12:35:09]Write to MH i2c: 01 00 00 2F 54 83 [12:35:09]Write i2c OK [12:35:09]MH_I2C_Read... [12:35:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 1D 7F 47 00 18 5C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 47 DD 02 00 F4 03 04 00 6E F4 15 67 B6 04 01 00 00 A9 B2 D9 C3 78 25 B9 76 [12:35:09]CommunicateWithHost err = 0 [12:35:09]CheckOFDResponse [12:35:09]1017 (14) - 77093643461234 [12:35:09]1041 (16) - 0000000000965340 [12:35:09]1040 (4) - 187719 [12:35:09]1012 (4) - 21.10.2024 06:27 [12:35:09]1206 (1) - 0 [12:35:09]OFD Sender: Remove packet 187719 [12:35:09]ProducePacketName [12:35:09]name=ofd_packets/00187719 [12:35:09]NVStorageDeleteData [12:35:09]OFD Sender: No OFD packet to send [12:35:10]*** Cut start [12:35:10]*** Partial cut [12:35:10]*** CUTSNS_PIN = 1 [12:35:10]*** CUTSNS_PIN = 0 [12:35:10]*** Brake cut motor [12:35:11]Read from MH i2c: 01 [12:35:11]MH_I2C_Read... [12:35:11]*** Stop cut motor [12:35:11]*** Cut end [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 2F 54 00 00 00 00 00 FF 0F 98 [12:35:11]process_action close_receipt done [12:35:11]requested_data is exist [12:35:11]produce_requested_data [12:35:11]requested_item fm.sn is exist - process it [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 30 54 80 11 00 00 00 00 00 00 FE [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 30 54 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 4C [12:35:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [12:35:11]wFMCommunicate OK [12:35:11]requested_item fd.num is exist - process it [12:35:11]SAM_PROTO_GetFieldsCounters [12:35:11]wFMCommunicate request_size=4 [12:35:11]MH_SAM_APDU [12:35:11]CAPDU: 80 13 00 00 [12:35:11]Write to MH i2c: E2 08 00 31 54 80 13 00 00 00 00 00 00 01 [12:35:11]Write i2c OK [12:35:11]MH_I2C_Read... [12:35:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:35:11]Read from MH i2c: E2 [12:35:11]MH_I2C_Read... [12:35:11]Read from MH i2c: E2 62 00 [12:35:11]MH_I2C_Read... [12:35:11]Read from MH i2c: E2 62 00 31 54 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 47 DD 02 00 0E 04 04 00 CC 01 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 20 [12:35:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 47 DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 B7 00 00 00 5E 04 04 00 B7 00 00 00 57 04 04 00 B8 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:35:11]wFMCommunicate OK [12:35:11]SAM_PROTO_GetFieldsCounters done [12:35:11]requested_item shift.num is exist - process it [12:35:11]requested_item shift.opened is exist - process it [12:35:11]req_shift_opened [12:35:11]FM_GetShiftState [12:35:11]SAM_PROTO_GetShiftState [12:35:11]wFMCommunicate request_size=4 [12:35:11]MH_SAM_APDU [12:35:11]CAPDU: 80 13 01 00 [12:35:11]Write to MH i2c: E2 08 00 32 54 80 13 01 00 00 00 00 00 03 [12:35:11]Write i2c OK [12:35:11]MH_I2C_Read... [12:35:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:35:11]Read from MH i2c: E2 [12:35:11]MH_I2C_Read... [12:35:11]Read from MH i2c: E2 0E 00 [12:35:11]MH_I2C_Read... [12:35:11]Read from MH i2c: E2 0E 00 32 54 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 62 [12:35:11]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [12:35:11]wFMCommunicate OK [12:35:11]SAM_PROTO_GetShiftState done [12:35:11]FM_GetShiftState done [12:35:11]req_shift_opened done [12:35:11]requested_item shift.open_date is exist - process it [12:35:11]req_shift_open_date [12:35:11]req_shift_open_date done [12:35:11]produce_requested_data done [12:35:11]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187719,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [12:35:11]process_action_free close_receipt [12:35:11]json_value_free [12:35:11]json_value_free done [12:35:11]process_json_proto returns [12:35:11]Send response to host [12:35:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187719,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [12:35:11]free response buf [12:35:11]execute_script done [12:35:11]execute_script returns [12:35:11]free content buf [12:35:11]Sock 9.Close socket [12:35:11]Sock 9.Thread stoped [12:35:14]OFD Sender: No OFD packet to send [12:35:19]OFD Sender: No OFD packet to send [12:35:24]OFD Sender: No OFD packet to send [12:35:30]OFD Sender: No OFD packet to send [12:35:35]OFD Sender: No OFD packet to send [12:35:40]OFD Sender: No OFD packet to send [12:35:45]OFD Sender: No OFD packet to send [12:35:50]OFD Sender: No OFD packet to send [12:35:55]OFD Sender: No OFD packet to send [12:36:00]OFD Sender: No OFD packet to send [12:36:05]OFD Sender: No OFD packet to send [12:36:10]OFD Sender: No OFD packet to send [12:36:15]OFD Sender: No OFD packet to send [12:36:17]accept exits with 8 [12:36:17]New connection [12:36:17]New thread 3067157860 created [12:36:17]Thread 3067014500 joined [12:36:17]Waiting for new connection... [12:36:17] Sock 8.Parse request [12:36:17]Sock 8.Check first char [12:36:17]Sock 8.First char is OK [12:36:17]request: POST /json_proto HTTP/1.0 [12:36:17]Method: POST [12:36:17]URL: /json_proto [12:36:17]Method is POST - this is cgi request [12:36:17]url: /json_proto [12:36:17]query_string will be loaded in cgi processing [12:36:17]execute_cgi json_proto POST (null) [12:36:17]execute_cgi path=json_proto method=POST [12:36:17]POST find Content-Length [12:36:17]Host: 172.17.42.131:8080 [12:36:17]Content-Length: 688 [12:36:17]Content-Type: application/json [12:36:17] [12:36:17]POST finish read [12:36:17]Found Content-Length = 688 [12:36:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209772", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 12.960, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:36:17]execute_script... [12:36: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)209772", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 12.960, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:36:17]POST & json_proto [12:36:17]process_json_proto [12:36:17]json parsed OK: [12:36:17]protocol is kg_v1.0 [12:36:17]action value=close_receipt [12:36:17]process_action close_receipt [12:36:17]cmd_close_receipt [12:36:17]MH_GetDate [12:36:17]Write to MH i2c: F0 00 00 33 54 76 [12:36:17]Write i2c OK [12:36:17]MH_I2C_Read... [12:36:17]Read from MH i2c: F0 [12:36:17]MH_I2C_Read... [12:36:17]Read from MH i2c: F0 09 00 [12:36:17]MH_I2C_Read... [12:36:17]Read from MH i2c: F0 09 00 33 54 00 C5 4A 16 67 A0 18 CA 66 F3 [12:36:17]GetLastDocTimeStamp 1729514111 [12:36:17]current date 1729514181 [12:36:17]FM_GetShiftState [12:36:17]SAM_PROTO_GetShiftState [12:36:17]wFMCommunicate request_size=4 [12:36:17]MH_SAM_APDU [12:36:17]CAPDU: 80 13 01 00 [12:36:17]Write to MH i2c: E2 08 00 34 54 80 13 01 00 00 00 00 00 05 [12:36:17]Write i2c OK [12:36:17]MH_I2C_Read... [12:36:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:36:17]Read from MH i2c: E2 [12:36:17]MH_I2C_Read... [12:36:17]Read from MH i2c: E2 0E 00 [12:36:17]MH_I2C_Read... [12:36:17]Read from MH i2c: E2 0E 00 34 54 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 64 [12:36:17]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [12:36:17]wFMCommunicate OK [12:36:17]SAM_PROTO_GetShiftState done [12:36:17]FM_GetShiftState done [12:36:17]opened in 1729469754 [12:36:17]opened+sec_in_day 1729556154 [12:36:17]quantity*price = 100051 [12:36:17]sum+1 = 100052 [12:36:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 184 21.10.2024 12:36 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 187720 ФПД: 203300763307129 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T123621&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187720&fm=203300763307129&tin=02508201610067®Number=0000000000100030&sum=100000 [12:36:18]StoreToDocumentArchive [12:36:18]shift 460 fd 187720 [12:36:18]save to /storage/0460/doc_00187720 [12:36:18]save last doc name /storage/0460/doc_00187720 to /storage/kkm_last_doc_name [12:36:18]save OK [12:36:18]Clear old archive folders... [12:36:18]ProcessDocumentItem done err = 0, tmpTLVsize=257 [12:36:18]tlvbuf is 01090240 [12:36:18]SAM_PROTO_ClearQueue [12:36:18]wFMCommunicate request_size=4 [12:36:18]MH_SAM_APDU [12:36:18]CAPDU: 80 09 00 00 [12:36:18]Write to MH i2c: E2 08 00 41 54 80 09 00 00 00 00 00 00 07 [12:36:18]Write i2c OK [12:36:18]MH_I2C_Read... [12:36:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:36:18]Read from MH i2c: E2 [12:36:18]MH_I2C_Read... [12:36:18]Read from MH i2c: E2 03 00 [12:36:18]MH_I2C_Read... [12:36:18]Read from MH i2c: E2 03 00 41 54 00 90 00 09 [12:36:18]RAPDU: 90 00 [12:36:18]wFMCommunicate OK [12:36:18]SAM_PROTO_ClearQueue done [12:36:18]KKMCreateOFDPacket [12:36:18]OFDProtocolAddRootSTLVToBuf [12:36:18]FM_MakeSignedData [12:36:18]FM_MakeSignedData [12:36:18]SAM_PROTO_SignData [12:36:18]wFMCommunicate request_size=4 [12:36:18]MH_SAM_APDU [12:36:18]CAPDU: 80 0D 01 02 [12:36:18]Write to MH i2c: E2 08 00 42 54 80 0D 01 02 00 00 00 00 0F [12:36:18]Write i2c OK [12:36:18]MH_I2C_Read... [12:36:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:36:18]Read from MH i2c: E2 [12:36:18]MH_I2C_Read... [12:36:18]Read from MH i2c: E2 03 00 [12:36:18]MH_I2C_Read... [12:36:18]Read from MH i2c: E2 03 00 42 54 00 90 00 0A [12:36:18]RAPDU: 90 00 [12:36:18]wFMCommunicate OK [12:36:18]wFMCommunicate request_size=255 [12:36:18]MH_SAM_APDU [12:36:18]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B8 00 00 00 F4 03 04 00 C5 4A 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 48 DD 02 [12:36:18]Write to MH i2c: E2 02 01 43 54 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 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B8 00 00 00 F4 03 04 00 C5 4A 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 48 DD 02 00 00 A4 [12:36:18]Write i2c OK [12:36:18]MH_I2C_Read... [12:36:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:36:18]Read from MH i2c: E2 [12:36:18]MH_I2C_Read... [12:36:18]Read from MH i2c: E2 03 00 [12:36:18]MH_I2C_Read... [12:36:18]Read from MH i2c: E2 03 00 43 54 00 90 00 0B [12:36:18]RAPDU: 90 00 [12:36:18]wFMCommunicate OK [12:36:18]wFMCommunicate request_size=16 [12:36:18]MH_SAM_APDU [12:36:18]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 B8 E6 A5 C7 8C 79 [12:36:18]Write to MH i2c: E2 13 00 44 54 80 0D 02 02 0B 00 00 35 04 06 00 B8 E6 A5 C7 8C 79 00 00 76 [12:36:18]Write i2c OK [12:36:18]MH_I2C_Read... [12:36:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:36:18]Read from MH i2c: E2 [12:36:18]MH_I2C_Read... [12:36:18]Read from MH i2c: E2 03 00 [12:36:18]MH_I2C_Read... [12:36:18]Read from MH i2c: E2 03 00 44 54 00 90 00 0C [12:36:18]RAPDU: 90 00 [12:36:18]wFMCommunicate OK [12:36:18]wFMCommunicate request_size=4 [12:36:18]MH_SAM_APDU [12:36:18]CAPDU: 80 0D 03 02 [12:36:18]Write to MH i2c: E2 08 00 45 54 80 0D 03 02 00 00 00 00 14 [12:36:18]Write i2c OK [12:36:18]MH_I2C_Read... [12:36:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:36:18]Read from MH i2c: E2 [12:36:18]MH_I2C_Read... [12:36:18]Read from MH i2c: E2 0B 00 [12:36:18]MH_I2C_Read... [12:36:18]Read from MH i2c: E2 0B 00 45 54 00 C4 7C 57 C9 AD 1C F9 5D 90 00 94 [12:36:18]RAPDU: C4 7C 57 C9 AD 1C F9 5D 90 00 [12:36:18]wFMCommunicate OK [12:36:18]SAM_PROTO_SignData done [12:36:18]FM_MakeSignedData done [12:36:18]CreateOFDProtocolMessage [12:36:18]wFMCommunicate request_size=4 [12:36:18]MH_SAM_APDU [12:36:18]CAPDU: 80 11 00 00 [12:36:18]Write to MH i2c: E2 08 00 46 54 80 11 00 00 00 00 00 00 14 [12:36:18]Write i2c OK [12:36:18]MH_I2C_Read... [12:36:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:36:18]Read from MH i2c: E2 [12:36:18]MH_I2C_Read... [12:36:18]Read from MH i2c: E2 17 00 [12:36:18]MH_I2C_Read... [12:36:18]Read from MH i2c: E2 17 00 46 54 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 62 [12:36:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [12:36:18]wFMCommunicate OK [12:36:18]CreateOFDProtocolMessage done [12:36:18]OFDSenderStorePacket 187720 [12:36:18]StoreOFDPacket docnum=187720 [12:36:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 2F 57 0D 01 C0 86 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 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B8 00 00 00 F4 03 04 00 C5 4A 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 48 DD 02 00 35 04 06 00 B8 E6 A5 C7 8C 79 C4 7C 57 C9 AD 1C F9 5D [12:36:18]CheckFolder [12:36:18]dirname=/storage/ofd_packets [12:36:18]CheckFolder done [12:36:18]ProducePacketName [12:36:18]name=ofd_packets/00187720 [12:36:18]NVStorageSaveData ofd_packets/00187720 [12:36:18]File name is /storage/ofd_packets/00187720 [12:36:18]Write 307 bytes [12:36:18]NVStorageSaveData done [12:36:18]OFDSenderStorePacket done [12:36:18]KKMCreateOFDPacket done [12:36:18]NVStorageSaveData kkm_last_timestamp [12:36:18]File name is /storage/kkm_last_timestamp [12:36:18]Write 4 bytes [12:36:18]NVStorageSaveData done [12:36:18]ExternCall_PrintAddStr [12:36:18]wPrintStart [12:36:18]Write to MH i2c: 01 00 00 47 54 9B [12:36:18]Write i2c OK [12:36:18]MH_I2C_Read... [12:36:18]Read from MH i2c: 01 [12:36:18]MH_I2C_Read... [12:36:18]Read from MH i2c: 01 07 00 [12:36:18]MH_I2C_Read... [12:36:18]Read from MH i2c: 01 07 00 47 54 00 00 00 00 00 FF 0F B0 [12:36:18]RasterBufferAndPrint [12:36:18]line Счет N : (1)209772 [12:36:18]line ИНН: 02508201610067 [12:36:18]line Контрольно-Кассовый Чек [12:36:18]line ПРОДАЖА [12:36:18]line ТРК (МРК, ГНК) : 11 [12:36:18]line Товар: 2710194210 [12:36:18]line D-ENERGY ДТ-К-5 [12:36:18]line 12.960 * 77.20 [12:36:18]line = 1000.51 [12:36:18]line НДС 12% НСП 1% [12:36:18]line > о реализуемом товаре [12:36:18]line ОКРУГЛЕНИЕ: -0.51 [12:36:18]line ИТОГО: 1000.00 [12:36:18]line Внесено: 1000.00 [12:36:18]line СДАЧА: 0.00 [12:36:18]line НСП 1% : 8.85 [12:36:18]line НДС 12% : 106.25 [12:36:18]line Наличными: 1000.00 [12:36:18]line Безнал.: 0.00 [12:36:18]line Место: АЗС № 86 "Партнер Нефть" [12:36:18]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [12:36:18]line СНО: Общий режим [12:36:18]line Чек 184 21.10.2024 12:36 [12:36:18]line Смена: 460 ФФД: 1.0 [12:36:18]line ЗНМ: 0300000155 [12:36:18]line РНМ: 0000000000100030 [12:36:18]line Версия ККМ: 001 [12:36:18]line ФМ: 0000000000965340 [12:36:18]line ФД: 187720 [12:36:18]line ФПД: 203300763307129 [12:36:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T123621&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187720&fm=203300763307129&tin=02508201610067®Number=0000000000100030&sum=100000 [12:36:19]written 0, free lines is 4095 [12:36:19]OFD Sender: Processing packet 187720 [packets to send 1062, broken 1061] [12:36:19]ProducePacketName [12:36:19]name=ofd_packets/00187720 [12:36:19]OFD Sender: To server: pG, [12:36:19]CommunicateWithHost lk.salyk.kg:30040 [12:36:19]ConnectInit lk.salyk.kg [12:36:19]Connected sock=9 [12:36:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 2F 57 0D 01 C0 86 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 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B8 00 00 00 F4 03 04 00 C5 4A 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 48 DD 02 00 35 04 06 00 B8 E6 A5 C7 8C 79 C4 7C 57 C9 AD 1C F9 5D [12:36:19]Write to MH i2c: 01 00 00 72 54 C6 [12:36:19]Write i2c OK [12:36:19]MH_I2C_Read... [12:36:19]Read from MH i2c: 01 [12:36:19]MH_I2C_Read... [12:36:19]Read from MH i2c: 01 07 00 [12:36:19]MH_I2C_Read... [12:36:19]Read from MH i2c: 01 07 00 72 54 00 00 00 00 00 76 0C 4F [12:36:19]RasterBufferAndPrint [12:36:19]line [12:36:19]line [12:36:19]line [12:36:19]line [12:36:19]line [12:36:19]written 0, free lines is 3193 [12:36:19]MH_Cut [12:36:19]Write to MH i2c: D1 01 00 79 54 01 9F [12:36:19]Write i2c OK [12:36:19]MH_I2C_Read... [12:36:19]Read from MH i2c: D1 [12:36:19]MH_I2C_Read... [12:36:19]Read from MH i2c: D1 01 00 [12:36:19]MH_I2C_Read... [12:36:19]Read from MH i2c: D1 01 00 79 54 00 9E [12:36:19]Write to MH i2c: 01 00 00 7A 54 CE [12:36:19]Write i2c OK [12:36:19]MH_I2C_Read... [12:36:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 CD AC 47 00 B2 3C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 48 DD 02 00 F4 03 04 00 B4 F4 15 67 B6 04 01 00 00 50 47 83 DB AE 7D FC 1A [12:36:19]CommunicateWithHost err = 0 [12:36:19]CheckOFDResponse [12:36:19]1017 (14) - 77093643461234 [12:36:19]1041 (16) - 0000000000965340 [12:36:19]1040 (4) - 187720 [12:36:19]1012 (4) - 21.10.2024 06:29 [12:36:19]1206 (1) - 0 [12:36:19]OFD Sender: Remove packet 187720 [12:36:19]ProducePacketName [12:36:19]name=ofd_packets/00187720 [12:36:19]NVStorageDeleteData [12:36:20]OFD Sender: No OFD packet to send [12:36:20]*** Cut start [12:36:20]*** Partial cut [12:36:20]*** CUTSNS_PIN = 1 [12:36:20]*** CUTSNS_PIN = 0 [12:36:20]*** Brake cut motor [12:36:21]Read from MH i2c: 01 [12:36:21]MH_I2C_Read... [12:36:21]*** Stop cut motor [12:36:21]*** Cut end [12:36:21]Read from MH i2c: 01 07 00 [12:36:21]MH_I2C_Read... [12:36:21]Read from MH i2c: 01 07 00 7A 54 00 00 00 00 00 FF 0F E3 [12:36:21]process_action close_receipt done [12:36:21]requested_data is exist [12:36:21]produce_requested_data [12:36:21]requested_item fm.sn is exist - process it [12:36:21]wFMCommunicate request_size=4 [12:36:21]MH_SAM_APDU [12:36:21]CAPDU: 80 11 00 00 [12:36:21]Write to MH i2c: E2 08 00 7B 54 80 11 00 00 00 00 00 00 49 [12:36:21]Write i2c OK [12:36:21]MH_I2C_Read... [12:36:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:36:21]Read from MH i2c: E2 [12:36:21]MH_I2C_Read... [12:36:21]Read from MH i2c: E2 17 00 [12:36:21]MH_I2C_Read... [12:36:21]Read from MH i2c: E2 17 00 7B 54 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 97 [12:36:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [12:36:21]wFMCommunicate OK [12:36:21]requested_item fd.num is exist - process it [12:36:21]SAM_PROTO_GetFieldsCounters [12:36:21]wFMCommunicate request_size=4 [12:36:21]MH_SAM_APDU [12:36:21]CAPDU: 80 13 00 00 [12:36:21]Write to MH i2c: E2 08 00 7C 54 80 13 00 00 00 00 00 00 4C [12:36:21]Write i2c OK [12:36:21]MH_I2C_Read... [12:36:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:36:21]Read from MH i2c: E2 [12:36:21]MH_I2C_Read... [12:36:21]Read from MH i2c: E2 62 00 [12:36:21]MH_I2C_Read... [12:36:21]Read from MH i2c: E2 62 00 7C 54 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 48 DD 02 00 0E 04 04 00 CC 01 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 6F [12:36:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 48 DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 B8 00 00 00 5E 04 04 00 B8 00 00 00 57 04 04 00 B9 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:36:21]wFMCommunicate OK [12:36:21]SAM_PROTO_GetFieldsCounters done [12:36:21]requested_item shift.num is exist - process it [12:36:21]requested_item shift.opened is exist - process it [12:36:21]req_shift_opened [12:36:21]FM_GetShiftState [12:36:21]SAM_PROTO_GetShiftState [12:36:21]wFMCommunicate request_size=4 [12:36:21]MH_SAM_APDU [12:36:21]CAPDU: 80 13 01 00 [12:36:21]Write to MH i2c: E2 08 00 7D 54 80 13 01 00 00 00 00 00 4E [12:36:21]Write i2c OK [12:36:21]MH_I2C_Read... [12:36:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:36:21]Read from MH i2c: E2 [12:36:21]MH_I2C_Read... [12:36:21]Read from MH i2c: E2 0E 00 [12:36:21]MH_I2C_Read... [12:36:21]Read from MH i2c: E2 0E 00 7D 54 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 AD [12:36:21]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [12:36:21]wFMCommunicate OK [12:36:21]SAM_PROTO_GetShiftState done [12:36:21]FM_GetShiftState done [12:36:21]req_shift_opened done [12:36:21]requested_item shift.open_date is exist - process it [12:36:21]req_shift_open_date [12:36:21]req_shift_open_date done [12:36:21]produce_requested_data done [12:36:21]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187720,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [12:36:21]process_action_free close_receipt [12:36:21]json_value_free [12:36:21]json_value_free done [12:36:21]process_json_proto returns [12:36:21]Send response to host [12:36:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187720,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [12:36:21]free response buf [12:36:21]execute_script done [12:36:21]execute_script returns [12:36:21]free content buf [12:36:21]Sock 8.Close socket [12:36:21]Sock 8.Thread stoped [12:36:25]OFD Sender: No OFD packet to send [12:36:30]OFD Sender: No OFD packet to send [12:36:35]OFD Sender: No OFD packet to send [12:36:40]OFD Sender: No OFD packet to send [12:36:45]OFD Sender: No OFD packet to send [12:36:50]OFD Sender: No OFD packet to send [12:36:55]OFD Sender: No OFD packet to send [12:37:00]OFD Sender: No OFD packet to send [12:37:05]OFD Sender: No OFD packet to send [12:37:10]OFD Sender: No OFD packet to send [12:37:15]OFD Sender: No OFD packet to send [12:37:20]OFD Sender: No OFD packet to send [12:37:25]OFD Sender: No OFD packet to send [12:37:25]accept exits with 10 [12:37:25]New connection [12:37:25]New thread 3067014500 created [12:37:25]Thread 3067157860 joined [12:37:25]Waiting for new connection... [12:37:25] Sock 10.Parse request [12:37:25]Sock 10.Check first char [12:37:25]Sock 10.First char is OK [12:37:25]request: POST /json_proto HTTP/1.0 [12:37:25]Method: POST [12:37:25]URL: /json_proto [12:37:25]Method is POST - this is cgi request [12:37:25]url: /json_proto [12:37:25]query_string will be loaded in cgi processing [12:37:25]execute_cgi json_proto POST (null) [12:37:25]execute_cgi path=json_proto method=POST [12:37:25]POST find Content-Length [12:37:25]Host: 172.17.42.131:8080 [12:37:25]Content-Length: 677 [12:37:25]Content-Type: application/json [12:37:25] [12:37:25]POST finish read [12:37:25]Found Content-Length = 677 [12:37:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209773", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "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:37:25]execute_script... [12:37:25]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209773", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "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:37:25]POST & json_proto [12:37:25]process_json_proto [12:37:25]json parsed OK: [12:37:25]protocol is kg_v1.0 [12:37:25]action value=close_receipt [12:37:25]process_action close_receipt [12:37:25]cmd_close_receipt [12:37:25]MH_GetDate [12:37:25]Write to MH i2c: F0 00 00 7E 54 C1 [12:37:25]Write i2c OK [12:37:25]MH_I2C_Read... [12:37:25]Read from MH i2c: F0 [12:37:25]MH_I2C_Read... [12:37:25]Read from MH i2c: F0 09 00 [12:37:25]MH_I2C_Read... [12:37:25]Read from MH i2c: F0 09 00 7E 54 00 09 4B 16 67 A0 18 CA 66 83 [12:37:25]GetLastDocTimeStamp 1729514181 [12:37:25]current date 1729514249 [12:37:25]FM_GetShiftState [12:37:25]SAM_PROTO_GetShiftState [12:37:25]wFMCommunicate request_size=4 [12:37:25]MH_SAM_APDU [12:37:25]CAPDU: 80 13 01 00 [12:37:25]Write to MH i2c: E2 08 00 7F 54 80 13 01 00 00 00 00 00 50 [12:37:25]Write i2c OK [12:37:25]MH_I2C_Read... [12:37:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:37:25]Read from MH i2c: E2 [12:37:25]MH_I2C_Read... [12:37:25]Read from MH i2c: E2 0E 00 [12:37:25]MH_I2C_Read... [12:37:25]Read from MH i2c: E2 0E 00 7F 54 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 AF [12:37:25]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [12:37:25]wFMCommunicate OK [12:37:25]SAM_PROTO_GetShiftState done [12:37:25]FM_GetShiftState done [12:37:25]opened in 1729469754 [12:37:25]opened+sec_in_day 1729556154 [12:37:25]quantity*price = 30038 [12:37:25]sum+1 = 30039 [12:37:25]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 185 21.10.2024 12:37 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 187721 ФПД: 19402455784547 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T123729&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187721&fm=19402455784547&tin=02508201610067®Number=0000000000100030&sum=30000 [12:37:26]StoreToDocumentArchive [12:37:26]shift 460 fd 187721 [12:37:26]save to /storage/0460/doc_00187721 [12:37:26]save last doc name /storage/0460/doc_00187721 to /storage/kkm_last_doc_name [12:37:26]save OK [12:37:26]Clear old archive folders... [12:37:26]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:37:26]tlvbuf is B6F0C350 [12:37:26]SAM_PROTO_ClearQueue [12:37:26]wFMCommunicate request_size=4 [12:37:26]MH_SAM_APDU [12:37:26]CAPDU: 80 09 00 00 [12:37:26]Write to MH i2c: E2 08 00 8C 54 80 09 00 00 00 00 00 00 52 [12:37:26]Write i2c OK [12:37:26]MH_I2C_Read... [12:37:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:37:26]Read from MH i2c: E2 [12:37:26]MH_I2C_Read... [12:37:26]Read from MH i2c: E2 03 00 [12:37:26]MH_I2C_Read... [12:37:26]Read from MH i2c: E2 03 00 8C 54 00 90 00 54 [12:37:26]RAPDU: 90 00 [12:37:26]wFMCommunicate OK [12:37:26]SAM_PROTO_ClearQueue done [12:37:26]KKMCreateOFDPacket [12:37:26]OFDProtocolAddRootSTLVToBuf [12:37:26]FM_MakeSignedData [12:37:26]FM_MakeSignedData [12:37:26]SAM_PROTO_SignData [12:37:26]wFMCommunicate request_size=4 [12:37:26]MH_SAM_APDU [12:37:26]CAPDU: 80 0D 01 02 [12:37:26]Write to MH i2c: E2 08 00 8D 54 80 0D 01 02 00 00 00 00 5A [12:37:26]Write i2c OK [12:37:26]MH_I2C_Read... [12:37:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:37:26]Read from MH i2c: E2 [12:37:26]MH_I2C_Read... [12:37:26]Read from MH i2c: E2 03 00 [12:37:26]MH_I2C_Read... [12:37:26]Read from MH i2c: E2 03 00 8D 54 00 90 00 55 [12:37:26]RAPDU: 90 00 [12:37:26]wFMCommunicate OK [12:37:26]wFMCommunicate request_size=255 [12:37:26]MH_SAM_APDU [12:37: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 33 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 B9 00 00 00 F4 03 04 00 09 4B 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 49 DD 02 00 35 04 06 00 11 [12:37:26]Write to MH i2c: E2 02 01 8E 54 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 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 B9 00 00 00 F4 03 04 00 09 4B 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 49 DD 02 00 35 04 06 00 11 00 00 51 [12:37:26]Write i2c OK [12:37:26]MH_I2C_Read... [12:37:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:37:27]Read from MH i2c: E2 [12:37:27]MH_I2C_Read... [12:37:27]Read from MH i2c: E2 03 00 [12:37:27]MH_I2C_Read... [12:37:27]Read from MH i2c: E2 03 00 8E 54 00 90 00 56 [12:37:27]RAPDU: 90 00 [12:37:27]wFMCommunicate OK [12:37:27]wFMCommunicate request_size=10 [12:37:27]MH_SAM_APDU [12:37:27]CAPDU: 80 0D 02 02 05 A5 7C 7C 1C 63 [12:37:27]Write to MH i2c: E2 0D 00 8F 54 80 0D 02 02 05 00 A5 7C 7C 1C 63 00 00 83 [12:37:27]Write i2c OK [12:37:27]MH_I2C_Read... [12:37:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:37:27]Read from MH i2c: E2 [12:37:27]MH_I2C_Read... [12:37:27]Read from MH i2c: E2 03 00 [12:37:27]MH_I2C_Read... [12:37:27]Read from MH i2c: E2 03 00 8F 54 00 90 00 57 [12:37:27]RAPDU: 90 00 [12:37:27]wFMCommunicate OK [12:37:27]wFMCommunicate request_size=4 [12:37:27]MH_SAM_APDU [12:37:27]CAPDU: 80 0D 03 02 [12:37:27]Write to MH i2c: E2 08 00 90 54 80 0D 03 02 00 00 00 00 5F [12:37:27]Write i2c OK [12:37:27]MH_I2C_Read... [12:37:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:37:27]Read from MH i2c: E2 [12:37:27]MH_I2C_Read... [12:37:27]Read from MH i2c: E2 0B 00 [12:37:27]MH_I2C_Read... [12:37:27]Read from MH i2c: E2 0B 00 90 54 00 A3 E5 95 D7 C7 A3 89 81 90 00 C8 [12:37:27]RAPDU: A3 E5 95 D7 C7 A3 89 81 90 00 [12:37:27]wFMCommunicate OK [12:37:27]SAM_PROTO_SignData done [12:37:27]FM_MakeSignedData done [12:37:27]CreateOFDProtocolMessage [12:37:27]wFMCommunicate request_size=4 [12:37:27]MH_SAM_APDU [12:37:27]CAPDU: 80 11 00 00 [12:37:27]Write to MH i2c: E2 08 00 91 54 80 11 00 00 00 00 00 00 5F [12:37:27]Write i2c OK [12:37:27]MH_I2C_Read... [12:37:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:37:27]Read from MH i2c: E2 [12:37:27]MH_I2C_Read... [12:37:27]Read from MH i2c: E2 17 00 [12:37:27]MH_I2C_Read... [12:37:27]Read from MH i2c: E2 17 00 91 54 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 AD [12:37:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [12:37:27]wFMCommunicate OK [12:37:27]CreateOFDProtocolMessage done [12:37:27]OFDSenderStorePacket 187721 [12:37:27]StoreOFDPacket docnum=187721 [12:37:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 77 5E 07 01 F6 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 33 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 B9 00 00 00 F4 03 04 00 09 4B 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 49 DD 02 00 35 04 06 00 11 A5 7C 7C 1C 63 A3 E5 95 D7 C7 A3 89 81 [12:37:27]CheckFolder [12:37:27]dirname=/storage/ofd_packets [12:37:27]CheckFolder done [12:37:27]ProducePacketName [12:37:27]name=ofd_packets/00187721 [12:37:27]NVStorageSaveData ofd_packets/00187721 [12:37:27]File name is /storage/ofd_packets/00187721 [12:37:27]Write 301 bytes [12:37:27]NVStorageSaveData done [12:37:27]OFDSenderStorePacket done [12:37:27]KKMCreateOFDPacket done [12:37:27]NVStorageSaveData kkm_last_timestamp [12:37:27]File name is /storage/kkm_last_timestamp [12:37:27]Write 4 bytes [12:37:27]NVStorageSaveData done [12:37:27]ExternCall_PrintAddStr [12:37:27]wPrintStart [12:37:27]Write to MH i2c: 01 00 00 92 54 E6 [12:37:27]Write i2c OK [12:37:27]MH_I2C_Read... [12:37:27]Read from MH i2c: 01 [12:37:27]MH_I2C_Read... [12:37:27]Read from MH i2c: 01 07 00 [12:37:27]MH_I2C_Read... [12:37:27]Read from MH i2c: 01 07 00 92 54 00 00 00 00 00 FF 0F FB [12:37:27]RasterBufferAndPrint [12:37:27]line Счет N : (1)209773 [12:37:27]line ИНН: 02508201610067 [12:37:27]line Контрольно-Кассовый Чек [12:37:27]line ПРОДАЖА [12:37:27]line ТРК (МРК, ГНК) : 32 [12:37:27]line Товар: 2710124130 [12:37:27]line Аи-92-К-3 [12:37:27]line 4.490 * 66.90 [12:37:27]line = 300.38 [12:37:27]line НДС 12% НСП 1% [12:37:27]line > о реализуемом товаре [12:37:27]line ОКРУГЛЕНИЕ: -0.38 [12:37:27]line ИТОГО: 300.00 [12:37:27]line Внесено: 300.00 [12:37:27]line СДАЧА: 0.00 [12:37:27]line НСП 1% : 2.66 [12:37:27]line НДС 12% : 31.90 [12:37:27]line Наличными: 300.00 [12:37:27]line Безнал.: 0.00 [12:37:27]line Место: АЗС № 86 "Партнер Нефть" [12:37:27]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [12:37:27]line СНО: Общий режим [12:37:27]line Чек 185 21.10.2024 12:37 [12:37:27]line Смена: 460 ФФД: 1.0 [12:37:27]line ЗНМ: 0300000155 [12:37:27]line РНМ: 0000000000100030 [12:37:27]line Версия ККМ: 001 [12:37:27]line ФМ: 0000000000965340 [12:37:27]line ФД: 187721 [12:37:27]line ФПД: 19402455784547 [12:37:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T123729&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187721&fm=19402455784547&tin=02508201610067®Number=0000000000100030&sum=30000 [12:37:27]OFD Sender: Processing packet 187721 [packets to send 1062, broken 1061] [12:37:27]ProducePacketName [12:37:27]name=ofd_packets/00187721 [12:37:27]OFD Sender: To server: pG, [12:37:27]CommunicateWithHost lk.salyk.kg:30040 [12:37:27]ConnectInit lk.salyk.kg [12:37:27]written 0, free lines is 4095 [12:37:27]Connected sock=9 [12:37:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 77 5E 07 01 F6 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 33 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 B9 00 00 00 F4 03 04 00 09 4B 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 49 DD 02 00 35 04 06 00 11 A5 7C 7C 1C 63 A3 E5 95 D7 C7 A3 89 81 [12:37:27]Write to MH i2c: 01 00 00 BD 54 11 [12:37:27]Write i2c OK [12:37:27]MH_I2C_Read... [12:37:27]Read from MH i2c: 01 [12:37:27]MH_I2C_Read... [12:37:27]Read from MH i2c: 01 07 00 [12:37:27]MH_I2C_Read... [12:37:27]Read from MH i2c: 01 07 00 BD 54 00 00 00 00 00 72 0C 96 [12:37:27]RasterBufferAndPrint [12:37:27]line [12:37:27]line [12:37:27]line [12:37:27]line [12:37:27]line [12:37:27]written 0, free lines is 3187 [12:37:27]MH_Cut [12:37:27]Write to MH i2c: D1 01 00 C4 54 01 EA [12:37:27]Write i2c OK [12:37:27]MH_I2C_Read... [12:37:27]Read from MH i2c: D1 [12:37:27]MH_I2C_Read... [12:37:27]Read from MH i2c: D1 01 00 [12:37:27]MH_I2C_Read... [12:37:27]Read from MH i2c: D1 01 00 C4 54 00 E9 [12:37:27]Write to MH i2c: 01 00 00 C5 54 19 [12:37:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 91 60 47 00 6B E4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 49 DD 02 00 F4 03 04 00 F9 F4 15 67 B6 04 01 00 00 A5 A7 F4 E6 95 41 4E 2E [12:37:27]CommunicateWithHost err = 0 [12:37:27]CheckOFDResponse [12:37:27]1017 (14) - 77093643461234 [12:37:27]1041 (16) - 0000000000965340 [12:37:27]1040 (4) - 187721 [12:37:27]1012 (4) - 21.10.2024 06:30 [12:37:27]1206 (1) - 0 [12:37:27]OFD Sender: Remove packet 187721 [12:37:27]ProducePacketName [12:37:27]name=ofd_packets/00187721 [12:37:27]NVStorageDeleteData [12:37:27]Write i2c OK [12:37:27]MH_I2C_Read... [12:37:28]OFD Sender: No OFD packet to send [12:37:28]*** Cut start [12:37:28]*** Partial cut [12:37:28]*** CUTSNS_PIN = 1 [12:37:28]*** CUTSNS_PIN = 0 [12:37:29]*** Brake cut motor [12:37:29]Read from MH i2c: 01 [12:37:29]MH_I2C_Read... [12:37:29]*** Stop cut motor [12:37:29]*** Cut end [12:37:29]Read from MH i2c: 01 07 00 [12:37:29]MH_I2C_Read... [12:37:29]Read from MH i2c: 01 07 00 C5 54 00 00 00 00 00 FF 0F 2E [12:37:29]process_action close_receipt done [12:37:29]requested_data is exist [12:37:29]produce_requested_data [12:37:29]requested_item fm.sn is exist - process it [12:37:29]wFMCommunicate request_size=4 [12:37:29]MH_SAM_APDU [12:37:29]CAPDU: 80 11 00 00 [12:37:29]Write to MH i2c: E2 08 00 C6 54 80 11 00 00 00 00 00 00 94 [12:37:29]Write i2c OK [12:37:29]MH_I2C_Read... [12:37:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:37:29]Read from MH i2c: E2 [12:37:29]MH_I2C_Read... [12:37:29]Read from MH i2c: E2 17 00 [12:37:29]MH_I2C_Read... [12:37:29]Read from MH i2c: E2 17 00 C6 54 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 E2 [12:37:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [12:37:29]wFMCommunicate OK [12:37:29]requested_item fd.num is exist - process it [12:37:29]SAM_PROTO_GetFieldsCounters [12:37:29]wFMCommunicate request_size=4 [12:37:29]MH_SAM_APDU [12:37:29]CAPDU: 80 13 00 00 [12:37:29]Write to MH i2c: E2 08 00 C7 54 80 13 00 00 00 00 00 00 97 [12:37:29]Write i2c OK [12:37:29]MH_I2C_Read... [12:37:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:37:29]Read from MH i2c: E2 [12:37:29]MH_I2C_Read... [12:37:29]Read from MH i2c: E2 62 00 [12:37:29]MH_I2C_Read... [12:37:29]Read from MH i2c: E2 62 00 C7 54 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 49 DD 02 00 0E 04 04 00 CC 01 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 BE [12:37:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 49 DD 02 00 0E 04 04 00 CC 01 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 [12:37:29]wFMCommunicate OK [12:37:29]SAM_PROTO_GetFieldsCounters done [12:37:29]requested_item shift.num is exist - process it [12:37:29]requested_item shift.opened is exist - process it [12:37:29]req_shift_opened [12:37:29]FM_GetShiftState [12:37:29]SAM_PROTO_GetShiftState [12:37:29]wFMCommunicate request_size=4 [12:37:29]MH_SAM_APDU [12:37:29]CAPDU: 80 13 01 00 [12:37:29]Write to MH i2c: E2 08 00 C8 54 80 13 01 00 00 00 00 00 99 [12:37:29]Write i2c OK [12:37:29]MH_I2C_Read... [12:37:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:37:29]Read from MH i2c: E2 [12:37:29]MH_I2C_Read... [12:37:29]Read from MH i2c: E2 0E 00 [12:37:29]MH_I2C_Read... [12:37:29]Read from MH i2c: E2 0E 00 C8 54 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 F8 [12:37:29]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [12:37:29]wFMCommunicate OK [12:37:29]SAM_PROTO_GetShiftState done [12:37:29]FM_GetShiftState done [12:37:29]req_shift_opened done [12:37:29]requested_item shift.open_date is exist - process it [12:37:29]req_shift_open_date [12:37:29]req_shift_open_date done [12:37:29]produce_requested_data done [12:37:29]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187721,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [12:37:29]process_action_free close_receipt [12:37:29]json_value_free [12:37:29]json_value_free done [12:37:29]process_json_proto returns [12:37:29]Send response to host [12:37:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187721,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [12:37:29]free response buf [12:37:29]execute_script done [12:37:29]execute_script returns [12:37:29]free content buf [12:37:29]Sock 10.Close socket [12:37:29]Sock 10.Thread stoped [12:37:33]OFD Sender: No OFD packet to send [12:37:38]OFD Sender: No OFD packet to send [12:37:43]OFD Sender: No OFD packet to send [12:37:48]OFD Sender: No OFD packet to send [12:37:53]OFD Sender: No OFD packet to send [12:37:58]OFD Sender: No OFD packet to send [12:38:03]OFD Sender: No OFD packet to send [12:38:08]OFD Sender: No OFD packet to send [12:38:13]OFD Sender: No OFD packet to send [12:38:18]OFD Sender: No OFD packet to send [12:38:23]OFD Sender: No OFD packet to send [12:38:28]OFD Sender: No OFD packet to send [12:38:33]OFD Sender: No OFD packet to send [12:38:38]OFD Sender: No OFD packet to send [12:38:43]OFD Sender: No OFD packet to send [12:38:48]OFD Sender: No OFD packet to send [12:38:53]OFD Sender: No OFD packet to send [12:38:58]OFD Sender: No OFD packet to send [12:39:03]OFD Sender: No OFD packet to send [12:39:08]OFD Sender: No OFD packet to send [12:39:13]OFD Sender: No OFD packet to send [12:39:18]OFD Sender: No OFD packet to send [12:39:23]OFD Sender: No OFD packet to send [12:39:28]OFD Sender: No OFD packet to send [12:39:33]OFD Sender: No OFD packet to send [12:39:38]OFD Sender: No OFD packet to send [12:39:43]OFD Sender: No OFD packet to send [12:39:48]OFD Sender: No OFD packet to send [12:39:53]OFD Sender: No OFD packet to send [12:39:58]OFD Sender: No OFD packet to send [12:40:03]OFD Sender: No OFD packet to send [12:40:08]OFD Sender: No OFD packet to send [12:40:13]OFD Sender: No OFD packet to send [12:40:18]OFD Sender: No OFD packet to send [12:40:23]OFD Sender: No OFD packet to send [12:40:29]OFD Sender: No OFD packet to send [12:40:34]OFD Sender: No OFD packet to send [12:40:39]OFD Sender: No OFD packet to send [12:40:44]OFD Sender: No OFD packet to send [12:40:49]OFD Sender: No OFD packet to send [12:40:54]OFD Sender: No OFD packet to send [12:40:59]OFD Sender: No OFD packet to send [12:41:04]OFD Sender: No OFD packet to send [12:41:09]OFD Sender: No OFD packet to send [12:41:14]OFD Sender: No OFD packet to send [12:41:19]OFD Sender: No OFD packet to send [12:41:24]OFD Sender: No OFD packet to send [12:41:29]OFD Sender: No OFD packet to send [12:41:34]OFD Sender: No OFD packet to send [12:41:39]OFD Sender: No OFD packet to send [12:41:44]OFD Sender: No OFD packet to send [12:41:49]OFD Sender: No OFD packet to send [12:41:54]OFD Sender: No OFD packet to send [12:41:59]OFD Sender: No OFD packet to send [12:42:04]OFD Sender: No OFD packet to send [12:42:09]OFD Sender: No OFD packet to send [12:42:14]OFD Sender: No OFD packet to send [12:42:19]OFD Sender: No OFD packet to send [12:42:24]OFD Sender: No OFD packet to send [12:42:29]OFD Sender: No OFD packet to send [12:42:34]OFD Sender: No OFD packet to send [12:42:39]OFD Sender: No OFD packet to send [12:42:39]accept exits with 8 [12:42:39]New connection [12:42:39]New thread 3067157860 created [12:42:39]Thread 3067014500 joined [12:42:39]Waiting for new connection... [12:42:39] Sock 8.Parse request [12:42:39]Sock 8.Check first char [12:42:39]Sock 8.First char is OK [12:42:39]request: POST /json_proto HTTP/1.0 [12:42:39]Method: POST [12:42:39]URL: /json_proto [12:42:39]Method is POST - this is cgi request [12:42:39]url: /json_proto [12:42:39]query_string will be loaded in cgi processing [12:42:39]execute_cgi json_proto POST (null) [12:42:39]execute_cgi path=json_proto method=POST [12:42:39]POST find Content-Length [12:42:39]Host: 172.17.42.131:8080 [12:42:39]Content-Length: 688 [12:42:39]Content-Type: application/json [12:42:39] [12:42:39]POST finish read [12:42:39]Found Content-Length = 688 [12:42:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209774", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 12.960, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:42:39]execute_script... [12:42: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)209774", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 12.960, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:42:39]POST & json_proto [12:42:39]process_json_proto [12:42:39]json parsed OK: [12:42:39]protocol is kg_v1.0 [12:42:39]action value=close_receipt [12:42:39]process_action close_receipt [12:42:39]cmd_close_receipt [12:42:39]MH_GetDate [12:42:39]Write to MH i2c: F0 00 00 C9 54 0C [12:42:39]Write i2c OK [12:42:39]MH_I2C_Read... [12:42:39]Read from MH i2c: F0 [12:42:39]MH_I2C_Read... [12:42:39]Read from MH i2c: F0 09 00 [12:42:39]MH_I2C_Read... [12:42:39]Read from MH i2c: F0 09 00 C9 54 00 43 4C 16 67 A0 18 CA 66 09 [12:42:39]GetLastDocTimeStamp 1729514249 [12:42:39]current date 1729514563 [12:42:39]FM_GetShiftState [12:42:39]SAM_PROTO_GetShiftState [12:42:39]wFMCommunicate request_size=4 [12:42:39]MH_SAM_APDU [12:42:39]CAPDU: 80 13 01 00 [12:42:39]Write to MH i2c: E2 08 00 CA 54 80 13 01 00 00 00 00 00 9B [12:42:39]Write i2c OK [12:42:39]MH_I2C_Read... [12:42:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:42:39]Read from MH i2c: E2 [12:42:39]MH_I2C_Read... [12:42:39]Read from MH i2c: E2 0E 00 [12:42:39]MH_I2C_Read... [12:42:39]Read from MH i2c: E2 0E 00 CA 54 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 FA [12:42:39]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [12:42:39]wFMCommunicate OK [12:42:39]SAM_PROTO_GetShiftState done [12:42:39]FM_GetShiftState done [12:42:39]opened in 1729469754 [12:42:39]opened+sec_in_day 1729556154 [12:42:39]quantity*price = 100051 [12:42:39]sum+1 = 100052 [12:42:39]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 186 21.10.2024 12:42 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 187722 ФПД: 225848574491838 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T124243&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187722&fm=225848574491838&tin=02508201610067®Number=0000000000100030&sum=100000 [12:42:40]StoreToDocumentArchive [12:42:40]shift 460 fd 187722 [12:42:40]save to /storage/0460/doc_00187722 [12:42:40]save last doc name /storage/0460/doc_00187722 to /storage/kkm_last_doc_name [12:42:40]save OK [12:42:40]Clear old archive folders... [12:42:40]ProcessDocumentItem done err = 0, tmpTLVsize=257 [12:42:40]tlvbuf is B6F0C350 [12:42:40]SAM_PROTO_ClearQueue [12:42:40]wFMCommunicate request_size=4 [12:42:40]MH_SAM_APDU [12:42:40]CAPDU: 80 09 00 00 [12:42:40]Write to MH i2c: E2 08 00 D7 54 80 09 00 00 00 00 00 00 9D [12:42:40]Write i2c OK [12:42:40]MH_I2C_Read... [12:42:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:42:41]Read from MH i2c: E2 [12:42:41]MH_I2C_Read... [12:42:41]Read from MH i2c: E2 03 00 [12:42:41]MH_I2C_Read... [12:42:41]Read from MH i2c: E2 03 00 D7 54 00 90 00 9F [12:42:41]RAPDU: 90 00 [12:42:41]wFMCommunicate OK [12:42:41]SAM_PROTO_ClearQueue done [12:42:41]KKMCreateOFDPacket [12:42:41]OFDProtocolAddRootSTLVToBuf [12:42:41]FM_MakeSignedData [12:42:41]FM_MakeSignedData [12:42:41]SAM_PROTO_SignData [12:42:41]wFMCommunicate request_size=4 [12:42:41]MH_SAM_APDU [12:42:41]CAPDU: 80 0D 01 02 [12:42:41]Write to MH i2c: E2 08 00 D8 54 80 0D 01 02 00 00 00 00 A5 [12:42:41]Write i2c OK [12:42:41]MH_I2C_Read... [12:42:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:42:41]Read from MH i2c: E2 [12:42:41]MH_I2C_Read... [12:42:41]Read from MH i2c: E2 03 00 [12:42:41]MH_I2C_Read... [12:42:41]Read from MH i2c: E2 03 00 D8 54 00 90 00 A0 [12:42:41]RAPDU: 90 00 [12:42:41]wFMCommunicate OK [12:42:41]wFMCommunicate request_size=255 [12:42:41]MH_SAM_APDU [12:42:41]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BA 00 00 00 F4 03 04 00 43 4C 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 4A DD 02 [12:42:41]Write to MH i2c: E2 02 01 D9 54 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 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BA 00 00 00 F4 03 04 00 43 4C 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 4A DD 02 00 00 BE [12:42:41]Write i2c OK [12:42:41]MH_I2C_Read... [12:42:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:42:41]Read from MH i2c: E2 [12:42:41]MH_I2C_Read... [12:42:41]Read from MH i2c: E2 03 00 [12:42:41]MH_I2C_Read... [12:42:41]Read from MH i2c: E2 03 00 D9 54 00 90 00 A1 [12:42:41]RAPDU: 90 00 [12:42:41]wFMCommunicate OK [12:42:41]wFMCommunicate request_size=16 [12:42:41]MH_SAM_APDU [12:42:41]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 CD 68 78 0E 3C BE [12:42:41]Write to MH i2c: E2 13 00 DA 54 80 0D 02 02 0B 00 00 35 04 06 00 CD 68 78 0E 3C BE 00 00 B2 [12:42:41]Write i2c OK [12:42:41]MH_I2C_Read... [12:42:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:42:41]Read from MH i2c: E2 [12:42:41]MH_I2C_Read... [12:42:41]Read from MH i2c: E2 03 00 [12:42:41]MH_I2C_Read... [12:42:41]Read from MH i2c: E2 03 00 DA 54 00 90 00 A2 [12:42:41]RAPDU: 90 00 [12:42:41]wFMCommunicate OK [12:42:41]wFMCommunicate request_size=4 [12:42:41]MH_SAM_APDU [12:42:41]CAPDU: 80 0D 03 02 [12:42:41]Write to MH i2c: E2 08 00 DB 54 80 0D 03 02 00 00 00 00 AA [12:42:41]Write i2c OK [12:42:41]MH_I2C_Read... [12:42:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:42:41]Read from MH i2c: E2 [12:42:41]MH_I2C_Read... [12:42:41]Read from MH i2c: E2 0B 00 [12:42:41]MH_I2C_Read... [12:42:41]Read from MH i2c: E2 0B 00 DB 54 00 8A 7D B7 21 14 5E D8 96 90 00 6A [12:42:41]RAPDU: 8A 7D B7 21 14 5E D8 96 90 00 [12:42:41]wFMCommunicate OK [12:42:41]SAM_PROTO_SignData done [12:42:41]FM_MakeSignedData done [12:42:41]CreateOFDProtocolMessage [12:42:41]wFMCommunicate request_size=4 [12:42:41]MH_SAM_APDU [12:42:41]CAPDU: 80 11 00 00 [12:42:41]Write to MH i2c: E2 08 00 DC 54 80 11 00 00 00 00 00 00 AA [12:42:41]Write i2c OK [12:42:41]MH_I2C_Read... [12:42:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:42:41]Read from MH i2c: E2 [12:42:41]MH_I2C_Read... [12:42:41]Read from MH i2c: E2 17 00 [12:42:41]MH_I2C_Read... [12:42:41]Read from MH i2c: E2 17 00 DC 54 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 F8 [12:42:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [12:42:41]wFMCommunicate OK [12:42:41]CreateOFDProtocolMessage done [12:42:41]OFDSenderStorePacket 187722 [12:42:41]StoreOFDPacket docnum=187722 [12:42:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 52 80 0D 01 B8 8F 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 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BA 00 00 00 F4 03 04 00 43 4C 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 4A DD 02 00 35 04 06 00 CD 68 78 0E 3C BE 8A 7D B7 21 14 5E D8 96 [12:42:41]CheckFolder [12:42:41]dirname=/storage/ofd_packets [12:42:41]CheckFolder done [12:42:41]ProducePacketName [12:42:41]name=ofd_packets/00187722 [12:42:41]NVStorageSaveData ofd_packets/00187722 [12:42:41]File name is /storage/ofd_packets/00187722 [12:42:41]Write 307 bytes [12:42:41]NVStorageSaveData done [12:42:41]OFDSenderStorePacket done [12:42:41]KKMCreateOFDPacket done [12:42:41]NVStorageSaveData kkm_last_timestamp [12:42:41]File name is /storage/kkm_last_timestamp [12:42:41]Write 4 bytes [12:42:41]NVStorageSaveData done [12:42:41]ExternCall_PrintAddStr [12:42:41]wPrintStart [12:42:41]Write to MH i2c: 01 00 00 DD 54 31 [12:42:41]Write i2c OK [12:42:41]MH_I2C_Read... [12:42:41]Read from MH i2c: 01 [12:42:41]MH_I2C_Read... [12:42:41]Read from MH i2c: 01 07 00 [12:42:41]MH_I2C_Read... [12:42:41]Read from MH i2c: 01 07 00 DD 54 00 00 00 00 00 FF 0F 46 [12:42:41]RasterBufferAndPrint [12:42:41]line Счет N : (1)209774 [12:42:41]line ИНН: 02508201610067 [12:42:41]line Контрольно-Кассовый Чек [12:42:41]line ПРОДАЖА [12:42:41]line ТРК (МРК, ГНК) : 11 [12:42:41]line Товар: 2710194210 [12:42:41]line D-ENERGY ДТ-К-5 [12:42:41]line 12.960 * 77.20 [12:42:41]line = 1000.51 [12:42:41]line НДС 12% НСП 1% [12:42:41]line > о реализуемом товаре [12:42:41]line ОКРУГЛЕНИЕ: -0.51 [12:42:41]line ИТОГО: 1000.00 [12:42:41]line Внесено: 1000.00 [12:42:41]line СДАЧА: 0.00 [12:42:41]line НСП 1% : 8.85 [12:42:41]line НДС 12% : 106.25 [12:42:41]line Наличными: 1000.00 [12:42:41]line Безнал.: 0.00 [12:42:41]line Место: АЗС № 86 "Партнер Нефть" [12:42:41]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [12:42:41]line СНО: Общий режим [12:42:41]line Чек 186 21.10.2024 12:42 [12:42:41]line Смена: 460 ФФД: 1.0 [12:42:41]line ЗНМ: 0300000155 [12:42:41]line РНМ: 0000000000100030 [12:42:41]line Версия ККМ: 001 [12:42:41]line ФМ: 0000000000965340 [12:42:41]line ФД: 187722 [12:42:41]line ФПД: 225848574491838 [12:42:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T124243&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187722&fm=225848574491838&tin=02508201610067®Number=0000000000100030&sum=100000 [12:42:41]written 0, free lines is 4095 [12:42:41]OFD Sender: Processing packet 187722 [packets to send 1062, broken 1061] [12:42:41]ProducePacketName [12:42:41]name=ofd_packets/00187722 [12:42:41]OFD Sender: To server: pG, [12:42:41]CommunicateWithHost lk.salyk.kg:30040 [12:42:41]ConnectInit lk.salyk.kg [12:42:41]Connected sock=10 [12:42:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 52 80 0D 01 B8 8F 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 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BA 00 00 00 F4 03 04 00 43 4C 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 4A DD 02 00 35 04 06 00 CD 68 78 0E 3C BE 8A 7D B7 21 14 5E D8 96 [12:42:41]Write to MH i2c: 01 00 00 08 55 5D [12:42:41]Write i2c OK [12:42:41]MH_I2C_Read... [12:42:41]Read from MH i2c: 01 [12:42:41]MH_I2C_Read... [12:42:41]Read from MH i2c: 01 07 00 [12:42:41]MH_I2C_Read... [12:42:41]Read from MH i2c: 01 07 00 08 55 00 00 00 00 00 6F 0C DF [12:42:41]RasterBufferAndPrint [12:42:41]line [12:42:41]line [12:42:41]line [12:42:41]line [12:42:41]line [12:42:41]written 0, free lines is 3186 [12:42:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 31 41 47 00 F0 00 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 4A DD 02 00 F4 03 04 00 33 F6 15 67 B6 04 01 00 00 44 98 A7 6F F2 C3 E5 E3 [12:42:42]CommunicateWithHost err = 0 [12:42:42]CheckOFDResponse [12:42:42]1017 (14) - 77093643461234 [12:42:42]1041 (16) - 0000000000965340 [12:42:42]1040 (4) - 187722 [12:42:42]1012 (4) - 21.10.2024 06:35 [12:42:42]1206 (1) - 0 [12:42:42]OFD Sender: Remove packet 187722 [12:42:42]ProducePacketName [12:42:42]name=ofd_packets/00187722 [12:42:42]NVStorageDeleteData [12:42:42]MH_Cut [12:42:42]Write to MH i2c: D1 01 00 0F 55 01 36 [12:42:42]Write i2c OK [12:42:42]MH_I2C_Read... [12:42:42]Read from MH i2c: D1 [12:42:42]MH_I2C_Read... [12:42:42]Read from MH i2c: D1 01 00 [12:42:42]MH_I2C_Read... [12:42:42]Read from MH i2c: D1 01 00 0F 55 00 35 [12:42:42]Write to MH i2c: 01 00 00 10 55 65 [12:42:42]Write i2c OK [12:42:42]MH_I2C_Read... [12:42:42]OFD Sender: No OFD packet to send [12:42:43]*** Cut start [12:42:43]*** Partial cut [12:42:43]*** CUTSNS_PIN = 1 [12:42:43]*** CUTSNS_PIN = 0 [12:42:43]*** Brake cut motor [12:42:43]Read from MH i2c: 01 [12:42:43]MH_I2C_Read... [12:42:43]*** Stop cut motor [12:42:43]*** Cut end [12:42:43]Read from MH i2c: 01 07 00 [12:42:43]MH_I2C_Read... [12:42:43]Read from MH i2c: 01 07 00 10 55 00 00 00 00 00 FF 0F 7A [12:42:43]process_action close_receipt done [12:42:43]requested_data is exist [12:42:43]produce_requested_data [12:42:43]requested_item fm.sn is exist - process it [12:42:43]wFMCommunicate request_size=4 [12:42:43]MH_SAM_APDU [12:42:43]CAPDU: 80 11 00 00 [12:42:43]Write to MH i2c: E2 08 00 11 55 80 11 00 00 00 00 00 00 E0 [12:42:43]Write i2c OK [12:42:43]MH_I2C_Read... [12:42:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:42:43]Read from MH i2c: E2 [12:42:43]MH_I2C_Read... [12:42:43]Read from MH i2c: E2 17 00 [12:42:43]MH_I2C_Read... [12:42:43]Read from MH i2c: E2 17 00 11 55 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 2E [12:42:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [12:42:43]wFMCommunicate OK [12:42:43]requested_item fd.num is exist - process it [12:42:43]SAM_PROTO_GetFieldsCounters [12:42:43]wFMCommunicate request_size=4 [12:42:43]MH_SAM_APDU [12:42:43]CAPDU: 80 13 00 00 [12:42:43]Write to MH i2c: E2 08 00 12 55 80 13 00 00 00 00 00 00 E3 [12:42:43]Write i2c OK [12:42:43]MH_I2C_Read... [12:42:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:42:43]Read from MH i2c: E2 [12:42:43]MH_I2C_Read... [12:42:43]Read from MH i2c: E2 62 00 [12:42:43]MH_I2C_Read... [12:42:43]Read from MH i2c: E2 62 00 12 55 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 4A DD 02 00 0E 04 04 00 CC 01 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 0E [12:42:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 4A DD 02 00 0E 04 04 00 CC 01 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 [12:42:43]wFMCommunicate OK [12:42:43]SAM_PROTO_GetFieldsCounters done [12:42:43]requested_item shift.num is exist - process it [12:42:43]requested_item shift.opened is exist - process it [12:42:43]req_shift_opened [12:42:43]FM_GetShiftState [12:42:43]SAM_PROTO_GetShiftState [12:42:43]wFMCommunicate request_size=4 [12:42:43]MH_SAM_APDU [12:42:43]CAPDU: 80 13 01 00 [12:42:43]Write to MH i2c: E2 08 00 13 55 80 13 01 00 00 00 00 00 E5 [12:42:43]Write i2c OK [12:42:43]MH_I2C_Read... [12:42:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:42:44]Read from MH i2c: E2 [12:42:44]MH_I2C_Read... [12:42:44]Read from MH i2c: E2 0E 00 [12:42:44]MH_I2C_Read... [12:42:44]Read from MH i2c: E2 0E 00 13 55 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 44 [12:42:44]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [12:42:44]wFMCommunicate OK [12:42:44]SAM_PROTO_GetShiftState done [12:42:44]FM_GetShiftState done [12:42:44]req_shift_opened done [12:42:44]requested_item shift.open_date is exist - process it [12:42:44]req_shift_open_date [12:42:44]req_shift_open_date done [12:42:44]produce_requested_data done [12:42:44]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187722,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [12:42:44]process_action_free close_receipt [12:42:44]json_value_free [12:42:44]json_value_free done [12:42:44]process_json_proto returns [12:42:44]Send response to host [12:42:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187722,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [12:42:44]free response buf [12:42:44]execute_script done [12:42:44]execute_script returns [12:42:44]free content buf [12:42:44]Sock 8.Close socket [12:42:44]Sock 8.Thread stoped [12:42:47]OFD Sender: No OFD packet to send [12:42:52]OFD Sender: No OFD packet to send [12:42:57]OFD Sender: No OFD packet to send [12:43:02]OFD Sender: No OFD packet to send [12:43:07]OFD Sender: No OFD packet to send [12:43:12]OFD Sender: No OFD packet to send [12:43:17]OFD Sender: No OFD packet to send [12:43:22]OFD Sender: No OFD packet to send [12:43:27]OFD Sender: No OFD packet to send [12:43:32]OFD Sender: No OFD packet to send [12:43:37]OFD Sender: No OFD packet to send [12:43:42]OFD Sender: No OFD packet to send [12:43:47]OFD Sender: No OFD packet to send [12:43:52]OFD Sender: No OFD packet to send [12:43:57]OFD Sender: No OFD packet to send [12:44:02]OFD Sender: No OFD packet to send [12:44:07]OFD Sender: No OFD packet to send [12:44:12]OFD Sender: No OFD packet to send [12:44:17]OFD Sender: No OFD packet to send [12:44:22]OFD Sender: No OFD packet to send [12:44:28]OFD Sender: No OFD packet to send [12:44:33]OFD Sender: No OFD packet to send [12:44:37]accept exits with 9 [12:44:37]New connection [12:44:37]New thread 3067014500 created [12:44:37]Thread 3067157860 joined [12:44:37]Waiting for new connection... [12:44:37] Sock 9.Parse request [12:44:37]Sock 9.Check first char [12:44:37]Sock 9.First char is OK [12:44:37]request: POST /json_proto HTTP/1.0 [12:44:37]Method: POST [12:44:37]URL: /json_proto [12:44:37]Method is POST - this is cgi request [12:44:37]url: /json_proto [12:44:37]query_string will be loaded in cgi processing [12:44:37]execute_cgi json_proto POST (null) [12:44:37]execute_cgi path=json_proto method=POST [12:44:37]POST find Content-Length [12:44:37]Host: 172.17.42.131:8080 [12:44:37]Content-Length: 754 [12:44:37]Content-Type: application/json [12:44:37] [12:44:37]POST finish read [12:44:37]Found Content-Length = 754 [12:44:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209775", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30118758", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:44:37]execute_script... [12:44: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)209775", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30118758", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:44:37]POST & json_proto [12:44:37]process_json_proto [12:44:37]json parsed OK: [12:44:37]protocol is kg_v1.0 [12:44:37]action value=close_receipt [12:44:37]process_action close_receipt [12:44:37]cmd_close_receipt [12:44:37]MH_GetDate [12:44:37]Write to MH i2c: F0 00 00 14 55 58 [12:44:37]Write i2c OK [12:44:37]MH_I2C_Read... [12:44:37]Read from MH i2c: F0 [12:44:37]MH_I2C_Read... [12:44:37]Read from MH i2c: F0 09 00 [12:44:37]MH_I2C_Read... [12:44:37]Read from MH i2c: F0 09 00 14 55 00 B9 4C 16 67 A0 18 CA 66 CB [12:44:37]GetLastDocTimeStamp 1729514563 [12:44:37]current date 1729514681 [12:44:37]FM_GetShiftState [12:44:37]SAM_PROTO_GetShiftState [12:44:37]wFMCommunicate request_size=4 [12:44:37]MH_SAM_APDU [12:44:37]CAPDU: 80 13 01 00 [12:44:37]Write to MH i2c: E2 08 00 15 55 80 13 01 00 00 00 00 00 E7 [12:44:37]Write i2c OK [12:44:37]MH_I2C_Read... [12:44:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:44:37]Read from MH i2c: E2 [12:44:37]MH_I2C_Read... [12:44:37]Read from MH i2c: E2 0E 00 [12:44:37]MH_I2C_Read... [12:44:37]Read from MH i2c: E2 0E 00 15 55 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 46 [12:44:37]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [12:44:37]wFMCommunicate OK [12:44:37]SAM_PROTO_GetShiftState done [12:44:37]FM_GetShiftState done [12:44:37]opened in 1729469754 [12:44:37]opened+sec_in_day 1729556154 [12:44:37]quantity*price = 0 [12:44:37]sum+1 = 1 [12:44:37]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 187 21.10.2024 12:44 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Талоны: ТК ГПНА Online 30118758 ФМ: 0000000000965340 ФД: 187723 ФПД: 260655050908174 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T124441&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187723&fm=260655050908174&tin=02508201610067®Number=0000000000100030&sum=0 [12:44:38]StoreToDocumentArchive [12:44:38]shift 460 fd 187723 [12:44:38]save to /storage/0460/doc_00187723 [12:44:38]save last doc name /storage/0460/doc_00187723 to /storage/kkm_last_doc_name [12:44:38]save OK [12:44:38]Clear old archive folders... [12:44:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:44:38]tlvbuf is B6F0C640 [12:44:38]SAM_PROTO_ClearQueue [12:44:38]wFMCommunicate request_size=4 [12:44:38]MH_SAM_APDU [12:44:38]CAPDU: 80 09 00 00 [12:44:38]Write to MH i2c: E2 08 00 22 55 80 09 00 00 00 00 00 00 E9 [12:44:38]Write i2c OK [12:44:38]MH_I2C_Read... [12:44:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:44:38]Read from MH i2c: E2 [12:44:38]MH_I2C_Read... [12:44:38]Read from MH i2c: E2 03 00 [12:44:38]MH_I2C_Read... [12:44:38]Read from MH i2c: E2 03 00 22 55 00 90 00 EB [12:44:38]RAPDU: 90 00 [12:44:38]wFMCommunicate OK [12:44:38]SAM_PROTO_ClearQueue done [12:44:38]KKMCreateOFDPacket [12:44:38]OFDProtocolAddRootSTLVToBuf [12:44:38]FM_MakeSignedData [12:44:38]FM_MakeSignedData [12:44:38]SAM_PROTO_SignData [12:44:38]wFMCommunicate request_size=4 [12:44:38]MH_SAM_APDU [12:44:38]CAPDU: 80 0D 01 02 [12:44:38]Write to MH i2c: E2 08 00 23 55 80 0D 01 02 00 00 00 00 F1 [12:44:38]Write i2c OK [12:44:38]MH_I2C_Read... [12:44:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:44:38]Read from MH i2c: E2 [12:44:38]MH_I2C_Read... [12:44:38]Read from MH i2c: E2 03 00 [12:44:38]MH_I2C_Read... [12:44:38]Read from MH i2c: E2 03 00 23 55 00 90 00 EC [12:44:38]RAPDU: 90 00 [12:44:38]wFMCommunicate OK [12:44:38]wFMCommunicate request_size=255 [12:44:38]MH_SAM_APDU [12:44: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 33 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 BB 00 00 00 F4 03 04 00 B9 4C 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 4B DD 02 00 35 04 06 00 ED [12:44:38]Write to MH i2c: E2 02 01 24 55 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 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 BB 00 00 00 F4 03 04 00 B9 4C 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 4B DD 02 00 35 04 06 00 ED 00 00 37 [12:44:38]Write i2c OK [12:44:38]MH_I2C_Read... [12:44:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:44:38]Read from MH i2c: E2 [12:44:38]MH_I2C_Read... [12:44:38]Read from MH i2c: E2 03 00 [12:44:38]MH_I2C_Read... [12:44:38]Read from MH i2c: E2 03 00 24 55 00 90 00 ED [12:44:38]RAPDU: 90 00 [12:44:38]wFMCommunicate OK [12:44:38]wFMCommunicate request_size=10 [12:44:38]MH_SAM_APDU [12:44:38]CAPDU: 80 0D 02 02 05 10 7B B7 E2 0E [12:44:38]Write to MH i2c: E2 0D 00 25 55 80 0D 02 02 05 00 10 7B B7 E2 0E 00 00 30 [12:44:38]Write i2c OK [12:44:38]MH_I2C_Read... [12:44:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:44:38]Read from MH i2c: E2 [12:44:38]MH_I2C_Read... [12:44:38]Read from MH i2c: E2 03 00 [12:44:38]MH_I2C_Read... [12:44:39]Read from MH i2c: E2 03 00 25 55 00 90 00 EE [12:44:39]RAPDU: 90 00 [12:44:39]wFMCommunicate OK [12:44:39]wFMCommunicate request_size=4 [12:44:39]MH_SAM_APDU [12:44:39]CAPDU: 80 0D 03 02 [12:44:39]Write to MH i2c: E2 08 00 26 55 80 0D 03 02 00 00 00 00 F6 [12:44:39]Write i2c OK [12:44:39]MH_I2C_Read... [12:44:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:44:39]Read from MH i2c: E2 [12:44:39]MH_I2C_Read... [12:44:39]Read from MH i2c: E2 0B 00 [12:44:39]MH_I2C_Read... [12:44:39]Read from MH i2c: E2 0B 00 26 55 00 1E FF A3 F7 F0 E6 85 44 90 00 4D [12:44:39]RAPDU: 1E FF A3 F7 F0 E6 85 44 90 00 [12:44:39]wFMCommunicate OK [12:44:39]SAM_PROTO_SignData done [12:44:39]FM_MakeSignedData done [12:44:39]CreateOFDProtocolMessage [12:44:39]wFMCommunicate request_size=4 [12:44:39]MH_SAM_APDU [12:44:39]CAPDU: 80 11 00 00 [12:44:39]Write to MH i2c: E2 08 00 27 55 80 11 00 00 00 00 00 00 F6 [12:44:39]Write i2c OK [12:44:39]MH_I2C_Read... [12:44:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:44:39]Read from MH i2c: E2 [12:44:39]MH_I2C_Read... [12:44:39]Read from MH i2c: E2 17 00 [12:44:39]MH_I2C_Read... [12:44:39]Read from MH i2c: E2 17 00 27 55 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 44 [12:44:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [12:44:39]wFMCommunicate OK [12:44:39]CreateOFDProtocolMessage done [12:44:39]OFDSenderStorePacket 187723 [12:44:39]StoreOFDPacket docnum=187723 [12:44:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 9A 7A 07 01 9A 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 33 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 BB 00 00 00 F4 03 04 00 B9 4C 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 4B DD 02 00 35 04 06 00 ED 10 7B B7 E2 0E 1E FF A3 F7 F0 E6 85 44 [12:44:39]CheckFolder [12:44:39]dirname=/storage/ofd_packets [12:44:39]CheckFolder done [12:44:39]ProducePacketName [12:44:39]name=ofd_packets/00187723 [12:44:39]NVStorageSaveData ofd_packets/00187723 [12:44:39]File name is /storage/ofd_packets/00187723 [12:44:39]Write 301 bytes [12:44:39]NVStorageSaveData done [12:44:39]OFDSenderStorePacket done [12:44:39]KKMCreateOFDPacket done [12:44:39]NVStorageSaveData kkm_last_timestamp [12:44:39]File name is /storage/kkm_last_timestamp [12:44:39]Write 4 bytes [12:44:39]NVStorageSaveData done [12:44:39]ExternCall_PrintAddStr [12:44:39]wPrintStart [12:44:39]Write to MH i2c: 01 00 00 28 55 7D [12:44:39]Write i2c OK [12:44:39]MH_I2C_Read... [12:44:39]Read from MH i2c: 01 [12:44:39]MH_I2C_Read... [12:44:39]Read from MH i2c: 01 07 00 [12:44:39]MH_I2C_Read... [12:44:39]Read from MH i2c: 01 07 00 28 55 00 00 00 00 00 FF 0F 92 [12:44:39]RasterBufferAndPrint [12:44:39]line Счет N : (1)209775 [12:44:39]line ИНН: 02508201610067 [12:44:39]line Контрольно-Кассовый Чек [12:44:39]line ПРОДАЖА [12:44:39]line ТРК (МРК, ГНК) : 42 [12:44:39]line Товар: 2710124130 [12:44:39]line Аи-92-К-3 [12:44:39]line 10.000 * 0.00 [12:44:39]line = 0.00 [12:44:39]line НДС 12% НСП 1% [12:44:39]line > о реализуемом товаре [12:44:39]line ИТОГО: 0.00 [12:44:39]line НСП 1% : 0.00 [12:44:39]line НДС 12% : 0.00 [12:44:39]line Наличными: 0.00 [12:44:39]line Безнал.: 0.00 [12:44:39]line Место: АЗС № 86 "Партнер Нефть" [12:44:39]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [12:44:39]line СНО: Общий режим [12:44:39]line Чек 187 21.10.2024 12:44 [12:44:39]line Смена: 460 ФФД: 1.0 [12:44:39]line ЗНМ: 0300000155 [12:44:39]line РНМ: 0000000000100030 [12:44:39]line Версия ККМ: 001 [12:44:39]line Талоны: ТК ГПНА Online [12:44:39]line 30118758 [12:44:39]line ФМ: 0000000000965340 [12:44:39]line ФД: 187723 [12:44:39]line ФПД: 260655050908174 [12:44:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T124441&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187723&fm=260655050908174&tin=02508201610067®Number=0000000000100030&sum=0 [12:44:39]written 0, free lines is 4095 [12:44:39]OFD Sender: Processing packet 187723 [packets to send 1062, broken 1061] [12:44:39]ProducePacketName [12:44:39]name=ofd_packets/00187723 [12:44:39]OFD Sender: To server: pG, [12:44:39]CommunicateWithHost lk.salyk.kg:30040 [12:44:39]ConnectInit lk.salyk.kg [12:44:39]Connected sock=8 [12:44:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 9A 7A 07 01 9A 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 33 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 BB 00 00 00 F4 03 04 00 B9 4C 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 4B DD 02 00 35 04 06 00 ED 10 7B B7 E2 0E 1E FF A3 F7 F0 E6 85 44 [12:44:39]Write to MH i2c: 01 00 00 52 55 A7 [12:44:39]Write i2c OK [12:44:39]MH_I2C_Read... [12:44:39]Read from MH i2c: 01 [12:44:39]MH_I2C_Read... [12:44:39]Read from MH i2c: 01 07 00 [12:44:39]MH_I2C_Read... [12:44:39]Read from MH i2c: 01 07 00 52 55 00 00 00 00 00 81 0C 3B [12:44:39]RasterBufferAndPrint [12:44:39]line [12:44:39]line [12:44:39]line [12:44:39]line [12:44:39]line [12:44:39]written 0, free lines is 3206 [12:44:39]MH_Cut [12:44:39]Write to MH i2c: D1 01 00 59 55 01 80 [12:44:39]Write i2c OK [12:44:39]MH_I2C_Read... [12:44:39]Read from MH i2c: D1 [12:44:39]MH_I2C_Read... [12:44:39]Read from MH i2c: D1 01 00 [12:44:39]MH_I2C_Read... [12:44:39]Read from MH i2c: D1 01 00 59 55 00 7F [12:44:39]Write to MH i2c: 01 00 00 5A 55 AF [12:44:39]Write i2c OK [12:44:39]MH_I2C_Read... [12:44:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 9F 54 47 00 7B 03 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 4B DD 02 00 F4 03 04 00 A9 F6 15 67 B6 04 01 00 00 CE FC 9B 6F 93 8F 88 94 [12:44:39]CommunicateWithHost err = 0 [12:44:39]CheckOFDResponse [12:44:39]1017 (14) - 77093643461234 [12:44:39]1041 (16) - 0000000000965340 [12:44:39]1040 (4) - 187723 [12:44:39]1012 (4) - 21.10.2024 06:37 [12:44:39]1206 (1) - 0 [12:44:39]OFD Sender: Remove packet 187723 [12:44:39]ProducePacketName [12:44:39]name=ofd_packets/00187723 [12:44:39]NVStorageDeleteData [12:44:40]OFD Sender: No OFD packet to send [12:44:40]*** Cut start [12:44:40]*** Partial cut [12:44:40]*** CUTSNS_PIN = 1 [12:44:40]*** CUTSNS_PIN = 0 [12:44:40]*** Brake cut motor [12:44:41]Read from MH i2c: 01 [12:44:41]MH_I2C_Read... [12:44:41]*** Stop cut motor [12:44:41]*** Cut end [12:44:41]Read from MH i2c: 01 07 00 [12:44:41]MH_I2C_Read... [12:44:41]Read from MH i2c: 01 07 00 5A 55 00 00 00 00 00 FF 0F C4 [12:44:41]process_action close_receipt done [12:44:41]requested_data is exist [12:44:41]produce_requested_data [12:44:41]requested_item fm.sn is exist - process it [12:44:41]wFMCommunicate request_size=4 [12:44:41]MH_SAM_APDU [12:44:41]CAPDU: 80 11 00 00 [12:44:41]Write to MH i2c: E2 08 00 5B 55 80 11 00 00 00 00 00 00 2A [12:44:41]Write i2c OK [12:44:41]MH_I2C_Read... [12:44:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:44:41]Read from MH i2c: E2 [12:44:41]MH_I2C_Read... [12:44:41]Read from MH i2c: E2 17 00 [12:44:41]MH_I2C_Read... [12:44:41]Read from MH i2c: E2 17 00 5B 55 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 78 [12:44:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [12:44:41]wFMCommunicate OK [12:44:41]requested_item fd.num is exist - process it [12:44:41]SAM_PROTO_GetFieldsCounters [12:44:41]wFMCommunicate request_size=4 [12:44:41]MH_SAM_APDU [12:44:41]CAPDU: 80 13 00 00 [12:44:41]Write to MH i2c: E2 08 00 5C 55 80 13 00 00 00 00 00 00 2D [12:44:41]Write i2c OK [12:44:41]MH_I2C_Read... [12:44:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:44:41]Read from MH i2c: E2 [12:44:41]MH_I2C_Read... [12:44:41]Read from MH i2c: E2 62 00 [12:44:41]MH_I2C_Read... [12:44:41]Read from MH i2c: E2 62 00 5C 55 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 4B DD 02 00 0E 04 04 00 CC 01 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 5C [12:44:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 4B DD 02 00 0E 04 04 00 CC 01 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 [12:44:41]wFMCommunicate OK [12:44:41]SAM_PROTO_GetFieldsCounters done [12:44:41]requested_item shift.num is exist - process it [12:44:41]requested_item shift.opened is exist - process it [12:44:41]req_shift_opened [12:44:41]FM_GetShiftState [12:44:41]SAM_PROTO_GetShiftState [12:44:41]wFMCommunicate request_size=4 [12:44:41]MH_SAM_APDU [12:44:41]CAPDU: 80 13 01 00 [12:44:41]Write to MH i2c: E2 08 00 5D 55 80 13 01 00 00 00 00 00 2F [12:44:41]Write i2c OK [12:44:41]MH_I2C_Read... [12:44:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:44:41]Read from MH i2c: E2 [12:44:41]MH_I2C_Read... [12:44:41]Read from MH i2c: E2 0E 00 [12:44:41]MH_I2C_Read... [12:44:41]Read from MH i2c: E2 0E 00 5D 55 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 8E [12:44:41]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [12:44:41]wFMCommunicate OK [12:44:41]SAM_PROTO_GetShiftState done [12:44:41]FM_GetShiftState done [12:44:41]req_shift_opened done [12:44:41]requested_item shift.open_date is exist - process it [12:44:41]req_shift_open_date [12:44:41]req_shift_open_date done [12:44:41]produce_requested_data done [12:44:41]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187723,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [12:44:41]process_action_free close_receipt [12:44:41]json_value_free [12:44:41]json_value_free done [12:44:41]process_json_proto returns [12:44:41]Send response to host [12:44:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187723,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [12:44:41]free response buf [12:44:41]execute_script done [12:44:41]execute_script returns [12:44:41]free content buf [12:44:41]Sock 9.Close socket [12:44:41]Sock 9.Thread stoped [12:44:45]OFD Sender: No OFD packet to send [12:44:50]OFD Sender: No OFD packet to send [12:44:55]OFD Sender: No OFD packet to send [12:45:00]OFD Sender: No OFD packet to send [12:45:01]accept exits with 10 [12:45:01]New connection [12:45:01]New thread 3067157860 created [12:45:01]Thread 3067014500 joined [12:45:01]Waiting for new connection... [12:45:01] Sock 10.Parse request [12:45:01]Sock 10.Check first char [12:45:01]Sock 10.First char is OK [12:45:01]request: POST /json_proto HTTP/1.0 [12:45:01]Method: POST [12:45:01]URL: /json_proto [12:45:01]Method is POST - this is cgi request [12:45:01]url: /json_proto [12:45:01]query_string will be loaded in cgi processing [12:45:01]execute_cgi json_proto POST (null) [12:45:01]execute_cgi path=json_proto method=POST [12:45:01]POST find Content-Length [12:45:01]Host: 172.17.42.131:8080 [12:45:01]Content-Length: 688 [12:45:01]Content-Type: application/json [12:45:01] [12:45:01]POST finish read [12:45:01]Found Content-Length = 688 [12:45:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209776", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 12.960, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:45:01]execute_script... [12:45: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)209776", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 12.960, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:45:01]POST & json_proto [12:45:01]process_json_proto [12:45:01]json parsed OK: [12:45:01]protocol is kg_v1.0 [12:45:01]action value=close_receipt [12:45:01]process_action close_receipt [12:45:01]cmd_close_receipt [12:45:01]MH_GetDate [12:45:01]Write to MH i2c: F0 00 00 5E 55 A2 [12:45:01]Write i2c OK [12:45:01]MH_I2C_Read... [12:45:01]Read from MH i2c: F0 [12:45:01]MH_I2C_Read... [12:45:01]Read from MH i2c: F0 09 00 [12:45:01]MH_I2C_Read... [12:45:01]Read from MH i2c: F0 09 00 5E 55 00 D1 4C 16 67 A0 18 CA 66 2D [12:45:01]GetLastDocTimeStamp 1729514681 [12:45:01]current date 1729514705 [12:45:01]FM_GetShiftState [12:45:01]SAM_PROTO_GetShiftState [12:45:01]wFMCommunicate request_size=4 [12:45:01]MH_SAM_APDU [12:45:01]CAPDU: 80 13 01 00 [12:45:01]Write to MH i2c: E2 08 00 5F 55 80 13 01 00 00 00 00 00 31 [12:45:01]Write i2c OK [12:45:01]MH_I2C_Read... [12:45:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:45:01]Read from MH i2c: E2 [12:45:01]MH_I2C_Read... [12:45:01]Read from MH i2c: E2 0E 00 [12:45:01]MH_I2C_Read... [12:45:01]Read from MH i2c: E2 0E 00 5F 55 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 90 [12:45:01]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [12:45:01]wFMCommunicate OK [12:45:01]SAM_PROTO_GetShiftState done [12:45:01]FM_GetShiftState done [12:45:01]opened in 1729469754 [12:45:01]opened+sec_in_day 1729556154 [12:45:01]quantity*price = 100051 [12:45:01]sum+1 = 100052 [12:45:01]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 188 21.10.2024 12:45 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 187724 ФПД: 249739278775021 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T124505&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187724&fm=249739278775021&tin=02508201610067®Number=0000000000100030&sum=100000 [12:45:02]StoreToDocumentArchive [12:45:02]shift 460 fd 187724 [12:45:02]save to /storage/0460/doc_00187724 [12:45:02]save last doc name /storage/0460/doc_00187724 to /storage/kkm_last_doc_name [12:45:02]save OK [12:45:02]Clear old archive folders... [12:45:02]ProcessDocumentItem done err = 0, tmpTLVsize=257 [12:45:02]tlvbuf is B6F0CD60 [12:45:02]SAM_PROTO_ClearQueue [12:45:02]wFMCommunicate request_size=4 [12:45:02]MH_SAM_APDU [12:45:02]CAPDU: 80 09 00 00 [12:45:02]Write to MH i2c: E2 08 00 6C 55 80 09 00 00 00 00 00 00 33 [12:45:02]Write i2c OK [12:45:02]MH_I2C_Read... [12:45:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:45:02]Read from MH i2c: E2 [12:45:02]MH_I2C_Read... [12:45:02]Read from MH i2c: E2 03 00 [12:45:02]MH_I2C_Read... [12:45:02]Read from MH i2c: E2 03 00 6C 55 00 90 00 35 [12:45:02]RAPDU: 90 00 [12:45:02]wFMCommunicate OK [12:45:02]SAM_PROTO_ClearQueue done [12:45:02]KKMCreateOFDPacket [12:45:02]OFDProtocolAddRootSTLVToBuf [12:45:02]FM_MakeSignedData [12:45:02]FM_MakeSignedData [12:45:02]SAM_PROTO_SignData [12:45:02]wFMCommunicate request_size=4 [12:45:02]MH_SAM_APDU [12:45:02]CAPDU: 80 0D 01 02 [12:45:02]Write to MH i2c: E2 08 00 6D 55 80 0D 01 02 00 00 00 00 3B [12:45:02]Write i2c OK [12:45:02]MH_I2C_Read... [12:45:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:45:02]Read from MH i2c: E2 [12:45:02]MH_I2C_Read... [12:45:02]Read from MH i2c: E2 03 00 [12:45:02]MH_I2C_Read... [12:45:02]Read from MH i2c: E2 03 00 6D 55 00 90 00 36 [12:45:02]RAPDU: 90 00 [12:45:02]wFMCommunicate OK [12:45:02]wFMCommunicate request_size=255 [12:45:02]MH_SAM_APDU [12:45:02]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 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BC 00 00 00 F4 03 04 00 D1 4C 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 4C DD 02 [12:45:02]Write to MH i2c: E2 02 01 6E 55 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 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BC 00 00 00 F4 03 04 00 D1 4C 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 4C DD 02 00 00 E6 [12:45:02]Write i2c OK [12:45:02]MH_I2C_Read... [12:45:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:45:03]Read from MH i2c: E2 [12:45:03]MH_I2C_Read... [12:45:03]Read from MH i2c: E2 03 00 [12:45:03]MH_I2C_Read... [12:45:03]Read from MH i2c: E2 03 00 6E 55 00 90 00 37 [12:45:03]RAPDU: 90 00 [12:45:03]wFMCommunicate OK [12:45:03]wFMCommunicate request_size=16 [12:45:03]MH_SAM_APDU [12:45:03]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 E3 22 F4 FF 72 ED [12:45:03]Write to MH i2c: E2 13 00 6F 55 80 0D 02 02 0B 00 00 35 04 06 00 E3 22 F4 FF 72 ED 00 00 EA [12:45:03]Write i2c OK [12:45:03]MH_I2C_Read... [12:45:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:45:03]Read from MH i2c: E2 [12:45:03]MH_I2C_Read... [12:45:03]Read from MH i2c: E2 03 00 [12:45:03]MH_I2C_Read... [12:45:03]Read from MH i2c: E2 03 00 6F 55 00 90 00 38 [12:45:03]RAPDU: 90 00 [12:45:03]wFMCommunicate OK [12:45:03]wFMCommunicate request_size=4 [12:45:03]MH_SAM_APDU [12:45:03]CAPDU: 80 0D 03 02 [12:45:03]Write to MH i2c: E2 08 00 70 55 80 0D 03 02 00 00 00 00 40 [12:45:03]Write i2c OK [12:45:03]MH_I2C_Read... [12:45:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:45:03]Read from MH i2c: E2 [12:45:03]MH_I2C_Read... [12:45:03]Read from MH i2c: E2 0B 00 [12:45:03]MH_I2C_Read... [12:45:03]Read from MH i2c: E2 0B 00 70 55 00 63 44 06 40 77 77 61 B5 90 00 32 [12:45:03]RAPDU: 63 44 06 40 77 77 61 B5 90 00 [12:45:03]wFMCommunicate OK [12:45:03]SAM_PROTO_SignData done [12:45:03]FM_MakeSignedData done [12:45:03]CreateOFDProtocolMessage [12:45:03]wFMCommunicate request_size=4 [12:45:03]MH_SAM_APDU [12:45:03]CAPDU: 80 11 00 00 [12:45:03]Write to MH i2c: E2 08 00 71 55 80 11 00 00 00 00 00 00 40 [12:45:03]Write i2c OK [12:45:03]MH_I2C_Read... [12:45:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:45:03]Read from MH i2c: E2 [12:45:03]MH_I2C_Read... [12:45:03]Read from MH i2c: E2 17 00 [12:45:03]MH_I2C_Read... [12:45:03]Read from MH i2c: E2 17 00 71 55 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 8E [12:45:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [12:45:03]wFMCommunicate OK [12:45:03]CreateOFDProtocolMessage done [12:45:03]OFDSenderStorePacket 187724 [12:45:03]StoreOFDPacket docnum=187724 [12:45:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 9A 6F 0D 01 73 1F 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 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BC 00 00 00 F4 03 04 00 D1 4C 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 4C DD 02 00 35 04 06 00 E3 22 F4 FF 72 ED 63 44 06 40 77 77 61 B5 [12:45:03]CheckFolder [12:45:03]dirname=/storage/ofd_packets [12:45:03]CheckFolder done [12:45:03]ProducePacketName [12:45:03]name=ofd_packets/00187724 [12:45:03]NVStorageSaveData ofd_packets/00187724 [12:45:03]File name is /storage/ofd_packets/00187724 [12:45:03]Write 307 bytes [12:45:03]NVStorageSaveData done [12:45:03]OFDSenderStorePacket done [12:45:03]KKMCreateOFDPacket done [12:45:03]NVStorageSaveData kkm_last_timestamp [12:45:03]File name is /storage/kkm_last_timestamp [12:45:03]Write 4 bytes [12:45:03]NVStorageSaveData done [12:45:03]ExternCall_PrintAddStr [12:45:03]wPrintStart [12:45:03]Write to MH i2c: 01 00 00 72 55 C7 [12:45:03]Write i2c OK [12:45:03]MH_I2C_Read... [12:45:03]Read from MH i2c: 01 [12:45:03]MH_I2C_Read... [12:45:03]Read from MH i2c: 01 07 00 [12:45:03]MH_I2C_Read... [12:45:03]Read from MH i2c: 01 07 00 72 55 00 00 00 00 00 FF 0F DC [12:45:03]RasterBufferAndPrint [12:45:03]line Счет N : (1)209776 [12:45:03]line ИНН: 02508201610067 [12:45:03]line Контрольно-Кассовый Чек [12:45:03]line ПРОДАЖА [12:45:03]line ТРК (МРК, ГНК) : 31 [12:45:03]line Товар: 2710194210 [12:45:03]line D-ENERGY ДТ-К-5 [12:45:03]line 12.960 * 77.20 [12:45:03]line = 1000.51 [12:45:03]line НДС 12% НСП 1% [12:45:03]line > о реализуемом товаре [12:45:03]line ОКРУГЛЕНИЕ: -0.51 [12:45:03]line ИТОГО: 1000.00 [12:45:03]line Внесено: 1000.00 [12:45:03]line СДАЧА: 0.00 [12:45:03]line НСП 1% : 8.85 [12:45:03]line НДС 12% : 106.25 [12:45:03]line Наличными: 1000.00 [12:45:03]line Безнал.: 0.00 [12:45:03]line Место: АЗС № 86 "Партнер Нефть" [12:45:03]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [12:45:03]line СНО: Общий режим [12:45:03]line Чек 188 21.10.2024 12:45 [12:45:03]line Смена: 460 ФФД: 1.0 [12:45:03]line ЗНМ: 0300000155 [12:45:03]line РНМ: 0000000000100030 [12:45:03]line Версия ККМ: 001 [12:45:03]line ФМ: 0000000000965340 [12:45:03]line ФД: 187724 [12:45:03]line ФПД: 249739278775021 [12:45:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T124505&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187724&fm=249739278775021&tin=02508201610067®Number=0000000000100030&sum=100000 [12:45:03]written 0, free lines is 4095 [12:45:03]OFD Sender: Processing packet 187724 [packets to send 1062, broken 1061] [12:45:03]ProducePacketName [12:45:03]name=ofd_packets/00187724 [12:45:03]OFD Sender: To server: pG, [12:45:03]CommunicateWithHost lk.salyk.kg:30040 [12:45:03]ConnectInit lk.salyk.kg [12:45:03]Connected sock=9 [12:45:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 9A 6F 0D 01 73 1F 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 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BC 00 00 00 F4 03 04 00 D1 4C 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 4C DD 02 00 35 04 06 00 E3 22 F4 FF 72 ED 63 44 06 40 77 77 61 B5 [12:45:03]Write to MH i2c: 01 00 00 9D 55 F2 [12:45:03]Write i2c OK [12:45:03]MH_I2C_Read... [12:45:03]Read from MH i2c: 01 [12:45:03]MH_I2C_Read... [12:45:03]Read from MH i2c: 01 07 00 [12:45:03]MH_I2C_Read... [12:45:03]Read from MH i2c: 01 07 00 9D 55 00 00 00 00 00 6A 0C 6F [12:45:03]RasterBufferAndPrint [12:45:03]line [12:45:03]line [12:45:03]line [12:45:03]line [12:45:03]line [12:45:03]written 0, free lines is 3182 [12:45:03]MH_Cut [12:45:03]Write to MH i2c: D1 01 00 A4 55 01 CB [12:45:03]Write i2c OK [12:45:03]MH_I2C_Read... [12:45:03]Read from MH i2c: D1 [12:45:03]MH_I2C_Read... [12:45:03]Read from MH i2c: D1 01 00 [12:45:03]MH_I2C_Read... [12:45:03]Read from MH i2c: D1 01 00 A4 55 00 CA [12:45:03]Write to MH i2c: 01 00 00 A5 55 FA [12:45:03]Write i2c OK [12:45:03]MH_I2C_Read... [12:45:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 CA 8F 47 00 40 0E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 4C DD 02 00 F4 03 04 00 C1 F6 15 67 B6 04 01 00 00 AD BC ED 23 A2 5F 32 85 [12:45:03]CommunicateWithHost err = 0 [12:45:03]CheckOFDResponse [12:45:03]1017 (14) - 77093643461234 [12:45:03]1041 (16) - 0000000000965340 [12:45:03]1040 (4) - 187724 [12:45:03]1012 (4) - 21.10.2024 06:37 [12:45:03]1206 (1) - 0 [12:45:03]OFD Sender: Remove packet 187724 [12:45:03]ProducePacketName [12:45:03]name=ofd_packets/00187724 [12:45:03]NVStorageDeleteData [12:45:04]OFD Sender: No OFD packet to send [12:45:04]*** Cut start [12:45:04]*** Partial cut [12:45:04]*** CUTSNS_PIN = 1 [12:45:04]*** CUTSNS_PIN = 0 [12:45:05]*** Brake cut motor [12:45:05]Read from MH i2c: 01 [12:45:05]MH_I2C_Read... [12:45:05]*** Stop cut motor [12:45:05]*** Cut end [12:45:05]Read from MH i2c: 01 07 00 [12:45:05]MH_I2C_Read... [12:45:05]Read from MH i2c: 01 07 00 A5 55 00 00 00 00 00 FF 0F 0F [12:45:05]process_action close_receipt done [12:45:05]requested_data is exist [12:45:05]produce_requested_data [12:45:05]requested_item fm.sn is exist - process it [12:45:05]wFMCommunicate request_size=4 [12:45:05]MH_SAM_APDU [12:45:05]CAPDU: 80 11 00 00 [12:45:05]Write to MH i2c: E2 08 00 A6 55 80 11 00 00 00 00 00 00 75 [12:45:05]Write i2c OK [12:45:05]MH_I2C_Read... [12:45:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:45:05]Read from MH i2c: E2 [12:45:05]MH_I2C_Read... [12:45:05]Read from MH i2c: E2 17 00 [12:45:05]MH_I2C_Read... [12:45:05]Read from MH i2c: E2 17 00 A6 55 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 C3 [12:45:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [12:45:05]wFMCommunicate OK [12:45:05]requested_item fd.num is exist - process it [12:45:05]SAM_PROTO_GetFieldsCounters [12:45:05]wFMCommunicate request_size=4 [12:45:05]MH_SAM_APDU [12:45:05]CAPDU: 80 13 00 00 [12:45:05]Write to MH i2c: E2 08 00 A7 55 80 13 00 00 00 00 00 00 78 [12:45:05]Write i2c OK [12:45:05]MH_I2C_Read... [12:45:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:45:05]Read from MH i2c: E2 [12:45:05]MH_I2C_Read... [12:45:05]Read from MH i2c: E2 62 00 [12:45:05]MH_I2C_Read... [12:45:05]Read from MH i2c: E2 62 00 A7 55 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 4C DD 02 00 0E 04 04 00 CC 01 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 AB [12:45:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 4C DD 02 00 0E 04 04 00 CC 01 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 [12:45:05]wFMCommunicate OK [12:45:05]SAM_PROTO_GetFieldsCounters done [12:45:05]requested_item shift.num is exist - process it [12:45:05]requested_item shift.opened is exist - process it [12:45:05]req_shift_opened [12:45:05]FM_GetShiftState [12:45:05]SAM_PROTO_GetShiftState [12:45:05]wFMCommunicate request_size=4 [12:45:05]MH_SAM_APDU [12:45:05]CAPDU: 80 13 01 00 [12:45:05]Write to MH i2c: E2 08 00 A8 55 80 13 01 00 00 00 00 00 7A [12:45:05]Write i2c OK [12:45:05]MH_I2C_Read... [12:45:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:45:05]Read from MH i2c: E2 [12:45:05]MH_I2C_Read... [12:45:05]Read from MH i2c: E2 0E 00 [12:45:05]MH_I2C_Read... [12:45:05]Read from MH i2c: E2 0E 00 A8 55 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 D9 [12:45:05]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [12:45:05]wFMCommunicate OK [12:45:05]SAM_PROTO_GetShiftState done [12:45:05]FM_GetShiftState done [12:45:05]req_shift_opened done [12:45:05]requested_item shift.open_date is exist - process it [12:45:05]req_shift_open_date [12:45:05]req_shift_open_date done [12:45:05]produce_requested_data done [12:45:05]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187724,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [12:45:05]process_action_free close_receipt [12:45:05]json_value_free [12:45:05]json_value_free done [12:45:05]process_json_proto returns [12:45:05]Send response to host [12:45:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187724,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [12:45:05]free response buf [12:45:05]execute_script done [12:45:05]execute_script returns [12:45:05]free content buf [12:45:05]Sock 10.Close socket [12:45:05]Sock 10.Thread stoped [12:45:09]OFD Sender: No OFD packet to send [12:45:14]OFD Sender: No OFD packet to send [12:45:19]OFD Sender: No OFD packet to send [12:45:24]OFD Sender: No OFD packet to send [12:45:29]OFD Sender: No OFD packet to send [12:45:34]OFD Sender: No OFD packet to send [12:45:37]accept exits with 8 [12:45:37]New connection [12:45:37]New thread 3067014500 created [12:45:37]Thread 3067157860 joined [12:45:37]Waiting for new connection... [12:45:37] Sock 8.Parse request [12:45:37]Sock 8.Check first char [12:45:37]Sock 8.First char is OK [12:45:37]request: POST /json_proto HTTP/1.0 [12:45:37]Method: POST [12:45:37]URL: /json_proto [12:45:37]Method is POST - this is cgi request [12:45:37]url: /json_proto [12:45:37]query_string will be loaded in cgi processing [12:45:37]execute_cgi json_proto POST (null) [12:45:37]execute_cgi path=json_proto method=POST [12:45:37]POST find Content-Length [12:45:37]Host: 172.17.42.131:8080 [12:45:37]Content-Length: 679 [12:45:37]Content-Type: application/json [12:45:37] [12:45:37]POST finish read [12:45:37]Found Content-Length = 679 [12:45:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209778", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:45:37]execute_script... [12:45: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)209778", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:45:37]POST & json_proto [12:45:37]process_json_proto [12:45:37]json parsed OK: [12:45:37]protocol is kg_v1.0 [12:45:37]action value=close_receipt [12:45:37]process_action close_receipt [12:45:37]cmd_close_receipt [12:45:37]MH_GetDate [12:45:37]Write to MH i2c: F0 00 00 A9 55 ED [12:45:37]Write i2c OK [12:45:37]MH_I2C_Read... [12:45:37]Read from MH i2c: F0 [12:45:37]MH_I2C_Read... [12:45:37]Read from MH i2c: F0 09 00 [12:45:37]MH_I2C_Read... [12:45:37]Read from MH i2c: F0 09 00 A9 55 00 F5 4C 16 67 A0 18 CA 66 9C [12:45:37]GetLastDocTimeStamp 1729514705 [12:45:37]current date 1729514741 [12:45:37]FM_GetShiftState [12:45:37]SAM_PROTO_GetShiftState [12:45:37]wFMCommunicate request_size=4 [12:45:37]MH_SAM_APDU [12:45:37]CAPDU: 80 13 01 00 [12:45:37]Write to MH i2c: E2 08 00 AA 55 80 13 01 00 00 00 00 00 7C [12:45:37]Write i2c OK [12:45:37]MH_I2C_Read... [12:45:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:45:37]Read from MH i2c: E2 [12:45:37]MH_I2C_Read... [12:45:37]Read from MH i2c: E2 0E 00 [12:45:37]MH_I2C_Read... [12:45:37]Read from MH i2c: E2 0E 00 AA 55 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 DB [12:45:37]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [12:45:37]wFMCommunicate OK [12:45:37]SAM_PROTO_GetShiftState done [12:45:37]FM_GetShiftState done [12:45:37]opened in 1729469754 [12:45:37]opened+sec_in_day 1729556154 [12:45:37]quantity*price = 100050 [12:45:37]sum+1 = 100052 [12:45: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 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 189 21.10.2024 12:45 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 187725 ФПД: 21827448162087 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T124541&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187725&fm=21827448162087&tin=02508201610067®Number=0000000000100030&sum=100000 [12:45:38]StoreToDocumentArchive [12:45:38]shift 460 fd 187725 [12:45:38]save to /storage/0460/doc_00187725 [12:45:38]save last doc name /storage/0460/doc_00187725 to /storage/kkm_last_doc_name [12:45:38]save OK [12:45:38]Clear old archive folders... [12:45:38]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:45:38]tlvbuf is 011F1850 [12:45:38]SAM_PROTO_ClearQueue [12:45:38]wFMCommunicate request_size=4 [12:45:38]MH_SAM_APDU [12:45:38]CAPDU: 80 09 00 00 [12:45:38]Write to MH i2c: E2 08 00 B7 55 80 09 00 00 00 00 00 00 7E [12:45:38]Write i2c OK [12:45:38]MH_I2C_Read... [12:45:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:45:38]Read from MH i2c: E2 [12:45:38]MH_I2C_Read... [12:45:38]Read from MH i2c: E2 03 00 [12:45:38]MH_I2C_Read... [12:45:38]Read from MH i2c: E2 03 00 B7 55 00 90 00 80 [12:45:38]RAPDU: 90 00 [12:45:38]wFMCommunicate OK [12:45:38]SAM_PROTO_ClearQueue done [12:45:38]KKMCreateOFDPacket [12:45:38]OFDProtocolAddRootSTLVToBuf [12:45:38]FM_MakeSignedData [12:45:38]FM_MakeSignedData [12:45:38]SAM_PROTO_SignData [12:45:38]wFMCommunicate request_size=4 [12:45:38]MH_SAM_APDU [12:45:38]CAPDU: 80 0D 01 02 [12:45:38]Write to MH i2c: E2 08 00 B8 55 80 0D 01 02 00 00 00 00 86 [12:45:38]Write i2c OK [12:45:38]MH_I2C_Read... [12:45:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:45:38]Read from MH i2c: E2 [12:45:38]MH_I2C_Read... [12:45:38]Read from MH i2c: E2 03 00 [12:45:38]MH_I2C_Read... [12:45:38]Read from MH i2c: E2 03 00 B8 55 00 90 00 81 [12:45:38]RAPDU: 90 00 [12:45:38]wFMCommunicate OK [12:45:38]wFMCommunicate request_size=255 [12:45:38]MH_SAM_APDU [12:45:38]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 BD 00 00 00 F4 03 04 00 F5 4C 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 4D DD 02 00 35 04 06 00 13 DA 19 4B [12:45:38]Write to MH i2c: E2 02 01 B9 55 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 BD 00 00 00 F4 03 04 00 F5 4C 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 4D DD 02 00 35 04 06 00 13 DA 19 4B 00 00 B6 [12:45:38]Write i2c OK [12:45:38]MH_I2C_Read... [12:45:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:45:38]Read from MH i2c: E2 [12:45:38]MH_I2C_Read... [12:45:38]Read from MH i2c: E2 03 00 [12:45:38]MH_I2C_Read... [12:45:38]Read from MH i2c: E2 03 00 B9 55 00 90 00 82 [12:45:38]RAPDU: 90 00 [12:45:38]wFMCommunicate OK [12:45:38]wFMCommunicate request_size=7 [12:45:38]MH_SAM_APDU [12:45:38]CAPDU: 80 0D 02 02 02 47 27 [12:45:38]Write to MH i2c: E2 0A 00 BA 55 80 0D 02 02 02 00 47 27 00 00 FB [12:45:38]Write i2c OK [12:45:38]MH_I2C_Read... [12:45:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:45:38]Read from MH i2c: E2 [12:45:38]MH_I2C_Read... [12:45:38]Read from MH i2c: E2 03 00 [12:45:38]MH_I2C_Read... [12:45:38]Read from MH i2c: E2 03 00 BA 55 00 90 00 83 [12:45:38]RAPDU: 90 00 [12:45:38]wFMCommunicate OK [12:45:38]wFMCommunicate request_size=4 [12:45:38]MH_SAM_APDU [12:45:38]CAPDU: 80 0D 03 02 [12:45:38]Write to MH i2c: E2 08 00 BB 55 80 0D 03 02 00 00 00 00 8B [12:45:38]Write i2c OK [12:45:38]MH_I2C_Read... [12:45:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:45:39]Read from MH i2c: E2 [12:45:39]MH_I2C_Read... [12:45:39]Read from MH i2c: E2 0B 00 [12:45:39]MH_I2C_Read... [12:45:39]Read from MH i2c: E2 0B 00 BB 55 00 8C 1A B9 9B 75 7E F0 33 90 00 9C [12:45:39]RAPDU: 8C 1A B9 9B 75 7E F0 33 90 00 [12:45:39]wFMCommunicate OK [12:45:39]SAM_PROTO_SignData done [12:45:39]FM_MakeSignedData done [12:45:39]CreateOFDProtocolMessage [12:45:39]wFMCommunicate request_size=4 [12:45:39]MH_SAM_APDU [12:45:39]CAPDU: 80 11 00 00 [12:45:39]Write to MH i2c: E2 08 00 BC 55 80 11 00 00 00 00 00 00 8B [12:45:39]Write i2c OK [12:45:39]MH_I2C_Read... [12:45:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:45:39]Read from MH i2c: E2 [12:45:39]MH_I2C_Read... [12:45:39]Read from MH i2c: E2 17 00 [12:45:39]MH_I2C_Read... [12:45:39]Read from MH i2c: E2 17 00 BC 55 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 D9 [12:45:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [12:45:39]wFMCommunicate OK [12:45:39]CreateOFDProtocolMessage done [12:45:39]OFDSenderStorePacket 187725 [12:45:39]StoreOFDPacket docnum=187725 [12:45:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 44 83 04 01 68 83 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 BD 00 00 00 F4 03 04 00 F5 4C 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 4D DD 02 00 35 04 06 00 13 DA 19 4B 47 27 8C 1A B9 9B 75 7E F0 33 [12:45:39]CheckFolder [12:45:39]dirname=/storage/ofd_packets [12:45:39]CheckFolder done [12:45:39]ProducePacketName [12:45:39]name=ofd_packets/00187725 [12:45:39]NVStorageSaveData ofd_packets/00187725 [12:45:39]File name is /storage/ofd_packets/00187725 [12:45:39]Write 298 bytes [12:45:39]NVStorageSaveData done [12:45:39]OFDSenderStorePacket done [12:45:39]KKMCreateOFDPacket done [12:45:39]NVStorageSaveData kkm_last_timestamp [12:45:39]File name is /storage/kkm_last_timestamp [12:45:39]Write 4 bytes [12:45:39]NVStorageSaveData done [12:45:39]ExternCall_PrintAddStr [12:45:39]wPrintStart [12:45:39]Write to MH i2c: 01 00 00 BD 55 12 [12:45:39]Write i2c OK [12:45:39]MH_I2C_Read... [12:45:39]Read from MH i2c: 01 [12:45:39]MH_I2C_Read... [12:45:39]Read from MH i2c: 01 07 00 [12:45:39]MH_I2C_Read... [12:45:39]Read from MH i2c: 01 07 00 BD 55 00 00 00 00 00 FF 0F 27 [12:45:39]RasterBufferAndPrint [12:45:39]line Счет N : (1)209778 [12:45:39]line ИНН: 02508201610067 [12:45:39]line Контрольно-Кассовый Чек [12:45:39]line ПРОДАЖА [12:45:39]line ТРК (МРК, ГНК) : 51 [12:45:39]line Товар: 2710194210 [12:45:39]line ДТ-К-5 [12:45:39]line 13.130 * 76.20 [12:45:39]line = 1000.51 [12:45:39]line НДС 12% НСП 1% [12:45:39]line > о реализуемом товаре [12:45:39]line ОКРУГЛЕНИЕ: -0.51 [12:45:39]line ИТОГО: 1000.00 [12:45:39]line Внесено: 1000.00 [12:45:39]line СДАЧА: 0.00 [12:45:39]line НСП 1% : 8.85 [12:45:39]line НДС 12% : 106.25 [12:45:39]line Наличными: 1000.00 [12:45:39]line Безнал.: 0.00 [12:45:39]line Место: АЗС № 86 "Партнер Нефть" [12:45:39]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [12:45:39]line СНО: Общий режим [12:45:39]line Чек 189 21.10.2024 12:45 [12:45:39]line Смена: 460 ФФД: 1.0 [12:45:39]line ЗНМ: 0300000155 [12:45:39]line РНМ: 0000000000100030 [12:45:39]line Версия ККМ: 001 [12:45:39]line ФМ: 0000000000965340 [12:45:39]line ФД: 187725 [12:45:39]line ФПД: 21827448162087 [12:45:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T124541&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187725&fm=21827448162087&tin=02508201610067®Number=0000000000100030&sum=100000 [12:45:39]OFD Sender: Processing packet 187725 [packets to send 1062, broken 1061] [12:45:39]ProducePacketName [12:45:39]name=ofd_packets/00187725 [12:45:39]OFD Sender: To server: pG, [12:45:39]CommunicateWithHost lk.salyk.kg:30040 [12:45:39]ConnectInit lk.salyk.kg [12:45:39]written 0, free lines is 4095 [12:45:39]Connected sock=10 [12:45:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 44 83 04 01 68 83 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 BD 00 00 00 F4 03 04 00 F5 4C 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 4D DD 02 00 35 04 06 00 13 DA 19 4B 47 27 8C 1A B9 9B 75 7E F0 33 [12:45:39]Write to MH i2c: 01 00 00 E8 55 3D [12:45:39]Write i2c OK [12:45:39]MH_I2C_Read... [12:45:39]Read from MH i2c: 01 [12:45:39]MH_I2C_Read... [12:45:39]Read from MH i2c: 01 07 00 [12:45:39]MH_I2C_Read... [12:45:39]Read from MH i2c: 01 07 00 E8 55 00 00 00 00 00 6D 0C BD [12:45:39]RasterBufferAndPrint [12:45:39]line [12:45:39]line [12:45:39]line [12:45:39]line [12:45:39]line [12:45:39]written 0, free lines is 3184 [12:45:39]MH_Cut [12:45:39]Write to MH i2c: D1 01 00 EF 55 01 16 [12:45:39]Write i2c OK [12:45:39]MH_I2C_Read... [12:45:39]Read from MH i2c: D1 [12:45:39]MH_I2C_Read... [12:45:39]Read from MH i2c: D1 01 00 [12:45:39]MH_I2C_Read... [12:45:39]Read from MH i2c: D1 01 00 EF 55 00 15 [12:45:39]Write to MH i2c: 01 00 00 F0 55 45 [12:45:39]Write i2c OK [12:45:39]MH_I2C_Read... [12:45:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 1C 69 47 00 F1 C5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 4D DD 02 00 F4 03 04 00 E5 F6 15 67 B6 04 01 00 00 14 5B 65 A6 57 72 C8 01 [12:45:39]CommunicateWithHost err = 0 [12:45:39]CheckOFDResponse [12:45:39]1017 (14) - 77093643461234 [12:45:39]1041 (16) - 0000000000965340 [12:45:39]1040 (4) - 187725 [12:45:39]1012 (4) - 21.10.2024 06:38 [12:45:39]1206 (1) - 0 [12:45:39]OFD Sender: Remove packet 187725 [12:45:39]ProducePacketName [12:45:39]name=ofd_packets/00187725 [12:45:39]NVStorageDeleteData [12:45:40]OFD Sender: No OFD packet to send [12:45:40]*** Cut start [12:45:40]*** Partial cut [12:45:40]*** CUTSNS_PIN = 1 [12:45:41]*** CUTSNS_PIN = 0 [12:45:41]*** Brake cut motor [12:45:41]Read from MH i2c: 01 [12:45:41]MH_I2C_Read... [12:45:41]*** Stop cut motor [12:45:41]*** Cut end [12:45:41]Read from MH i2c: 01 07 00 [12:45:41]MH_I2C_Read... [12:45:41]Read from MH i2c: 01 07 00 F0 55 00 00 00 00 00 FF 0F 5A [12:45:41]process_action close_receipt done [12:45:41]requested_data is exist [12:45:41]produce_requested_data [12:45:41]requested_item fm.sn is exist - process it [12:45:41]wFMCommunicate request_size=4 [12:45:41]MH_SAM_APDU [12:45:41]CAPDU: 80 11 00 00 [12:45:41]Write to MH i2c: E2 08 00 F1 55 80 11 00 00 00 00 00 00 C0 [12:45:41]Write i2c OK [12:45:41]MH_I2C_Read... [12:45:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:45:41]Read from MH i2c: E2 [12:45:41]MH_I2C_Read... [12:45:41]Read from MH i2c: E2 17 00 [12:45:41]MH_I2C_Read... [12:45:41]Read from MH i2c: E2 17 00 F1 55 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 0E [12:45:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [12:45:41]wFMCommunicate OK [12:45:41]requested_item fd.num is exist - process it [12:45:41]SAM_PROTO_GetFieldsCounters [12:45:41]wFMCommunicate request_size=4 [12:45:41]MH_SAM_APDU [12:45:41]CAPDU: 80 13 00 00 [12:45:41]Write to MH i2c: E2 08 00 F2 55 80 13 00 00 00 00 00 00 C3 [12:45:41]Write i2c OK [12:45:41]MH_I2C_Read... [12:45:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:45:41]Read from MH i2c: E2 [12:45:41]MH_I2C_Read... [12:45:41]Read from MH i2c: E2 62 00 [12:45:41]MH_I2C_Read... [12:45:41]Read from MH i2c: E2 62 00 F2 55 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 4D DD 02 00 0E 04 04 00 CC 01 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 FA [12:45:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 4D DD 02 00 0E 04 04 00 CC 01 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 [12:45:41]wFMCommunicate OK [12:45:41]SAM_PROTO_GetFieldsCounters done [12:45:41]requested_item shift.num is exist - process it [12:45:41]requested_item shift.opened is exist - process it [12:45:41]req_shift_opened [12:45:41]FM_GetShiftState [12:45:41]SAM_PROTO_GetShiftState [12:45:41]wFMCommunicate request_size=4 [12:45:41]MH_SAM_APDU [12:45:41]CAPDU: 80 13 01 00 [12:45:41]Write to MH i2c: E2 08 00 F3 55 80 13 01 00 00 00 00 00 C5 [12:45:41]Write i2c OK [12:45:41]MH_I2C_Read... [12:45:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:45:41]Read from MH i2c: E2 [12:45:41]MH_I2C_Read... [12:45:41]Read from MH i2c: E2 0E 00 [12:45:41]MH_I2C_Read... [12:45:41]Read from MH i2c: E2 0E 00 F3 55 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 24 [12:45:41]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [12:45:41]wFMCommunicate OK [12:45:41]SAM_PROTO_GetShiftState done [12:45:41]FM_GetShiftState done [12:45:41]req_shift_opened done [12:45:41]requested_item shift.open_date is exist - process it [12:45:41]req_shift_open_date [12:45:41]req_shift_open_date done [12:45:41]produce_requested_data done [12:45:41]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187725,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [12:45:41]process_action_free close_receipt [12:45:41]json_value_free [12:45:41]json_value_free done [12:45:41]process_json_proto returns [12:45:41]Send response to host [12:45:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187725,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [12:45:41]free response buf [12:45:41]execute_script done [12:45:41]execute_script returns [12:45:41]free content buf [12:45:41]Sock 8.Close socket [12:45:41]Sock 8.Thread stoped [12:45:43]accept exits with 9 [12:45:43]New connection [12:45:43]New thread 3067157860 created [12:45:43]Thread 3067014500 joined [12:45:43]Waiting for new connection... [12:45:43] Sock 9.Parse request [12:45:43]Sock 9.Check first char [12:45:43]Sock 9.First char is OK [12:45:43]request: POST /json_proto HTTP/1.0 [12:45:43]Method: POST [12:45:43]URL: /json_proto [12:45:43]Method is POST - this is cgi request [12:45:43]url: /json_proto [12:45:43]query_string will be loaded in cgi processing [12:45:43]execute_cgi json_proto POST (null) [12:45:43]execute_cgi path=json_proto method=POST [12:45:43]POST find Content-Length [12:45:43]Host: 172.17.42.131:8080 [12:45:43]Content-Length: 775 [12:45:43]Content-Type: application/json [12:45:43] [12:45:43]POST finish read [12:45:43]Found Content-Length = 775 [12:45:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209777", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 12.960, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.51 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:45:43]execute_script... [12:45:43]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209777", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 12.960, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.51 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:45:43]POST & json_proto [12:45:43]process_json_proto [12:45:43]json parsed OK: [12:45:43]protocol is kg_v1.0 [12:45:43]action value=close_receipt [12:45:43]process_action close_receipt [12:45:43]cmd_close_receipt [12:45:43]MH_GetDate [12:45:43]Write to MH i2c: F0 00 00 F4 55 38 [12:45:43]Write i2c OK [12:45:43]MH_I2C_Read... [12:45:43]Read from MH i2c: F0 [12:45:43]MH_I2C_Read... [12:45:43]Read from MH i2c: F0 09 00 [12:45:43]MH_I2C_Read... [12:45:43]Read from MH i2c: F0 09 00 F4 55 00 FC 4C 16 67 A0 18 CA 66 EE [12:45:43]GetLastDocTimeStamp 1729514741 [12:45:43]current date 1729514748 [12:45:43]FM_GetShiftState [12:45:43]SAM_PROTO_GetShiftState [12:45:43]wFMCommunicate request_size=4 [12:45:43]MH_SAM_APDU [12:45:43]CAPDU: 80 13 01 00 [12:45:43]Write to MH i2c: E2 08 00 F5 55 80 13 01 00 00 00 00 00 C7 [12:45:43]Write i2c OK [12:45:43]MH_I2C_Read... [12:45:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:45:43]Read from MH i2c: E2 [12:45:43]MH_I2C_Read... [12:45:43]Read from MH i2c: E2 0E 00 [12:45:43]MH_I2C_Read... [12:45:43]Read from MH i2c: E2 0E 00 F5 55 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 26 [12:45:43]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [12:45:43]wFMCommunicate OK [12:45:43]SAM_PROTO_GetShiftState done [12:45:43]FM_GetShiftState done [12:45:43]opened in 1729469754 [12:45:43]opened+sec_in_day 1729556154 [12:45:43]quantity*price = 100051 [12:45:43]sum+1 = 100052 [12:45:43]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.51 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 0.00 Безнал.: 1000.51 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 190 21.10.2024 12:45 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000965340 ФД: 187726 ФПД: 263631430093240 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T124548&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187726&fm=263631430093240&tin=02508201610067®Number=0000000000100030&sum=100051 [12:45:45]StoreToDocumentArchive [12:45:45]shift 460 fd 187726 [12:45:45]save to /storage/0460/doc_00187726 [12:45:45]save last doc name /storage/0460/doc_00187726 to /storage/kkm_last_doc_name [12:45:45]save OK [12:45:45]Clear old archive folders... [12:45:45]ProcessDocumentItem done err = 0, tmpTLVsize=257 [12:45:45]tlvbuf is 01190170 [12:45:45]SAM_PROTO_ClearQueue [12:45:45]wFMCommunicate request_size=4 [12:45:45]MH_SAM_APDU [12:45:45]CAPDU: 80 09 00 00 [12:45:45]Write to MH i2c: E2 08 00 02 56 80 09 00 00 00 00 00 00 CA [12:45:45]Write i2c OK [12:45:45]MH_I2C_Read... [12:45:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:45:45]Read from MH i2c: E2 [12:45:45]MH_I2C_Read... [12:45:45]Read from MH i2c: E2 03 00 [12:45:45]MH_I2C_Read... [12:45:45]Read from MH i2c: E2 03 00 02 56 00 90 00 CC [12:45:45]RAPDU: 90 00 [12:45:45]wFMCommunicate OK [12:45:45]SAM_PROTO_ClearQueue done [12:45:45]KKMCreateOFDPacket [12:45:45]OFDProtocolAddRootSTLVToBuf [12:45:45]FM_MakeSignedData [12:45:45]FM_MakeSignedData [12:45:45]SAM_PROTO_SignData [12:45:45]wFMCommunicate request_size=4 [12:45:45]MH_SAM_APDU [12:45:45]CAPDU: 80 0D 01 02 [12:45:45]Write to MH i2c: E2 08 00 03 56 80 0D 01 02 00 00 00 00 D2 [12:45:45]Write i2c OK [12:45:45]MH_I2C_Read... [12:45:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:45:45]Read from MH i2c: E2 [12:45:45]MH_I2C_Read... [12:45:45]Read from MH i2c: E2 03 00 [12:45:45]MH_I2C_Read... [12:45:45]Read from MH i2c: E2 03 00 03 56 00 90 00 CD [12:45:45]RAPDU: 90 00 [12:45:45]wFMCommunicate OK [12:45:45]wFMCommunicate request_size=255 [12:45:45]MH_SAM_APDU [12:45:45]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 BE 00 00 00 F4 03 04 00 FC 4C 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 4E DD 02 [12:45:45]Write to MH i2c: E2 02 01 04 56 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 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 BE 00 00 00 F4 03 04 00 FC 4C 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 4E DD 02 00 00 12 [12:45:45]Write i2c OK [12:45:45]MH_I2C_Read... [12:45:45]OFD Sender: No OFD packet to send [12:45:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:45:45]Read from MH i2c: E2 [12:45:45]MH_I2C_Read... [12:45:45]Read from MH i2c: E2 03 00 [12:45:45]MH_I2C_Read... [12:45:45]Read from MH i2c: E2 03 00 04 56 00 90 00 CE [12:45:45]RAPDU: 90 00 [12:45:45]wFMCommunicate OK [12:45:45]wFMCommunicate request_size=16 [12:45:45]MH_SAM_APDU [12:45:45]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 EF C5 79 BE 09 B8 [12:45:45]Write to MH i2c: E2 13 00 05 56 80 0D 02 02 0B 00 00 35 04 06 00 EF C5 79 BE 09 B8 00 00 D6 [12:45:45]Write i2c OK [12:45:45]MH_I2C_Read... [12:45:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:45:45]Read from MH i2c: E2 [12:45:45]MH_I2C_Read... [12:45:45]Read from MH i2c: E2 03 00 [12:45:45]MH_I2C_Read... [12:45:45]Read from MH i2c: E2 03 00 05 56 00 90 00 CF [12:45:45]RAPDU: 90 00 [12:45:45]wFMCommunicate OK [12:45:45]wFMCommunicate request_size=4 [12:45:45]MH_SAM_APDU [12:45:45]CAPDU: 80 0D 03 02 [12:45:45]Write to MH i2c: E2 08 00 06 56 80 0D 03 02 00 00 00 00 D7 [12:45:45]Write i2c OK [12:45:45]MH_I2C_Read... [12:45:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:45:45]Read from MH i2c: E2 [12:45:45]MH_I2C_Read... [12:45:45]Read from MH i2c: E2 0B 00 [12:45:45]MH_I2C_Read... [12:45:45]Read from MH i2c: E2 0B 00 06 56 00 5A 4D 23 8B 99 3F C9 76 90 00 44 [12:45:45]RAPDU: 5A 4D 23 8B 99 3F C9 76 90 00 [12:45:45]wFMCommunicate OK [12:45:45]SAM_PROTO_SignData done [12:45:45]FM_MakeSignedData done [12:45:45]CreateOFDProtocolMessage [12:45:45]wFMCommunicate request_size=4 [12:45:45]MH_SAM_APDU [12:45:45]CAPDU: 80 11 00 00 [12:45:45]Write to MH i2c: E2 08 00 07 56 80 11 00 00 00 00 00 00 D7 [12:45:45]Write i2c OK [12:45:45]MH_I2C_Read... [12:45:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:45:45]Read from MH i2c: E2 [12:45:45]MH_I2C_Read... [12:45:45]Read from MH i2c: E2 17 00 [12:45:45]MH_I2C_Read... [12:45:45]Read from MH i2c: E2 17 00 07 56 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 25 [12:45:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [12:45:45]wFMCommunicate OK [12:45:45]CreateOFDProtocolMessage done [12:45:45]OFDSenderStorePacket 187726 [12:45:45]StoreOFDPacket docnum=187726 [12:45:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 2E 8B 0D 01 85 B4 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 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 BE 00 00 00 F4 03 04 00 FC 4C 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 4E DD 02 00 35 04 06 00 EF C5 79 BE 09 B8 5A 4D 23 8B 99 3F C9 76 [12:45:45]CheckFolder [12:45:45]dirname=/storage/ofd_packets [12:45:45]CheckFolder done [12:45:45]ProducePacketName [12:45:45]name=ofd_packets/00187726 [12:45:45]NVStorageSaveData ofd_packets/00187726 [12:45:45]File name is /storage/ofd_packets/00187726 [12:45:45]Write 307 bytes [12:45:45]NVStorageSaveData done [12:45:45]OFDSenderStorePacket done [12:45:45]KKMCreateOFDPacket done [12:45:45]NVStorageSaveData kkm_last_timestamp [12:45:45]File name is /storage/kkm_last_timestamp [12:45:45]Write 4 bytes [12:45:45]NVStorageSaveData done [12:45:45]ExternCall_PrintAddStr [12:45:45]wPrintStart [12:45:45]Write to MH i2c: 01 00 00 08 56 5E [12:45:45]Write i2c OK [12:45:45]MH_I2C_Read... [12:45:45]Read from MH i2c: 01 [12:45:45]MH_I2C_Read... [12:45:45]Read from MH i2c: 01 07 00 [12:45:45]MH_I2C_Read... [12:45:45]Read from MH i2c: 01 07 00 08 56 00 00 00 00 00 FF 0F 73 [12:45:45]RasterBufferAndPrint [12:45:45]line Счет N : (1)209777 [12:45:45]line ИНН: 02508201610067 [12:45:45]line Контрольно-Кассовый Чек [12:45:45]line ПРОДАЖА [12:45:45]line ТРК (МРК, ГНК) : 11 [12:45:45]line Товар: 2710194210 [12:45:45]line D-ENERGY ДТ-К-5 [12:45:45]line 12.960 * 77.20 [12:45:45]line = 1000.51 [12:45:45]line НДС 12% НСП 1% [12:45:45]line > о реализуемом товаре [12:45:45]line ИТОГО: 1000.51 [12:45:45]line НСП 1% : 8.85 [12:45:45]line НДС 12% : 106.25 [12:45:45]line Наличными: 0.00 [12:45:45]line Безнал.: 1000.51 [12:45:45]line Место: АЗС № 86 "Партнер Нефть" [12:45:45]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [12:45:45]line СНО: Общий режим [12:45:45]line Чек 190 21.10.2024 12:45 [12:45:45]line Смена: 460 ФФД: 1.0 [12:45:45]line ЗНМ: 0300000155 [12:45:45]line РНМ: 0000000000100030 [12:45:45]line Версия ККМ: 001 [12:45:45]line Платежная система: Mbank [12:45:45]line ФМ: 0000000000965340 [12:45:45]line ФД: 187726 [12:45:45]line ФПД: 263631430093240 [12:45:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T124548&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187726&fm=263631430093240&tin=02508201610067®Number=0000000000100030&sum=100051 [12:45:45]written 0, free lines is 4095 [12:45:45]OFD Sender: Processing packet 187726 [packets to send 1062, broken 1061] [12:45:45]ProducePacketName [12:45:45]name=ofd_packets/00187726 [12:45:45]OFD Sender: To server: pG, [12:45:45]CommunicateWithHost lk.salyk.kg:30040 [12:45:45]ConnectInit lk.salyk.kg [12:45:46]Connected sock=10 [12:45:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 2E 8B 0D 01 85 B4 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 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 BE 00 00 00 F4 03 04 00 FC 4C 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 4E DD 02 00 35 04 06 00 EF C5 79 BE 09 B8 5A 4D 23 8B 99 3F C9 76 [12:45:46]Write to MH i2c: 01 00 00 31 56 87 [12:45:46]Write i2c OK [12:45:46]MH_I2C_Read... [12:45:46]Read from MH i2c: 01 [12:45:46]MH_I2C_Read... [12:45:46]Read from MH i2c: 01 07 00 [12:45:46]MH_I2C_Read... [12:45:46]Read from MH i2c: 01 07 00 31 56 00 00 00 00 00 9D 0C 37 [12:45:46]RasterBufferAndPrint [12:45:46]line [12:45:46]line [12:45:46]line [12:45:46]line [12:45:46]line [12:45:46]written 0, free lines is 3238 [12:45:46]MH_Cut [12:45:46]Write to MH i2c: D1 01 00 38 56 01 60 [12:45:46]Write i2c OK [12:45:46]MH_I2C_Read... [12:45:46]Read from MH i2c: D1 [12:45:46]MH_I2C_Read... [12:45:46]Read from MH i2c: D1 01 00 [12:45:46]MH_I2C_Read... [12:45:46]Read from MH i2c: D1 01 00 38 56 00 5F [12:45:46]Write to MH i2c: 01 00 00 39 56 8F [12:45:46]Write i2c OK [12:45:46]MH_I2C_Read... [12:45:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 67 3C 47 00 EF 76 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 4E DD 02 00 F4 03 04 00 EB F6 15 67 B6 04 01 00 00 80 78 70 15 0C 08 F9 DE [12:45:46]CommunicateWithHost err = 0 [12:45:46]CheckOFDResponse [12:45:46]1017 (14) - 77093643461234 [12:45:46]1041 (16) - 0000000000965340 [12:45:46]1040 (4) - 187726 [12:45:46]1012 (4) - 21.10.2024 06:38 [12:45:46]1206 (1) - 0 [12:45:46]OFD Sender: Remove packet 187726 [12:45:46]ProducePacketName [12:45:46]name=ofd_packets/00187726 [12:45:46]NVStorageDeleteData [12:45:46]OFD Sender: No OFD packet to send [12:45:47]*** Cut start [12:45:47]*** Partial cut [12:45:47]*** CUTSNS_PIN = 1 [12:45:47]*** CUTSNS_PIN = 0 [12:45:47]*** Brake cut motor [12:45:47]Read from MH i2c: 01 [12:45:47]MH_I2C_Read... [12:45:47]*** Stop cut motor [12:45:47]*** Cut end [12:45:47]Read from MH i2c: 01 07 00 [12:45:47]MH_I2C_Read... [12:45:47]Read from MH i2c: 01 07 00 39 56 00 00 00 00 00 FF 0F A4 [12:45:47]process_action close_receipt done [12:45:47]requested_data is exist [12:45:47]produce_requested_data [12:45:47]requested_item fm.sn is exist - process it [12:45:47]wFMCommunicate request_size=4 [12:45:47]MH_SAM_APDU [12:45:47]CAPDU: 80 11 00 00 [12:45:47]Write to MH i2c: E2 08 00 3A 56 80 11 00 00 00 00 00 00 0A [12:45:47]Write i2c OK [12:45:47]MH_I2C_Read... [12:45:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:45:48]Read from MH i2c: E2 [12:45:48]MH_I2C_Read... [12:45:48]Read from MH i2c: E2 17 00 [12:45:48]MH_I2C_Read... [12:45:48]Read from MH i2c: E2 17 00 3A 56 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 58 [12:45:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [12:45:48]wFMCommunicate OK [12:45:48]requested_item fd.num is exist - process it [12:45:48]SAM_PROTO_GetFieldsCounters [12:45:48]wFMCommunicate request_size=4 [12:45:48]MH_SAM_APDU [12:45:48]CAPDU: 80 13 00 00 [12:45:48]Write to MH i2c: E2 08 00 3B 56 80 13 00 00 00 00 00 00 0D [12:45:48]Write i2c OK [12:45:48]MH_I2C_Read... [12:45:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:45:48]Read from MH i2c: E2 [12:45:48]MH_I2C_Read... [12:45:48]Read from MH i2c: E2 62 00 [12:45:48]MH_I2C_Read... [12:45:48]Read from MH i2c: E2 62 00 3B 56 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 4E DD 02 00 0E 04 04 00 CC 01 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 48 [12:45:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 4E DD 02 00 0E 04 04 00 CC 01 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 [12:45:48]wFMCommunicate OK [12:45:48]SAM_PROTO_GetFieldsCounters done [12:45:48]requested_item shift.num is exist - process it [12:45:48]requested_item shift.opened is exist - process it [12:45:48]req_shift_opened [12:45:48]FM_GetShiftState [12:45:48]SAM_PROTO_GetShiftState [12:45:48]wFMCommunicate request_size=4 [12:45:48]MH_SAM_APDU [12:45:48]CAPDU: 80 13 01 00 [12:45:48]Write to MH i2c: E2 08 00 3C 56 80 13 01 00 00 00 00 00 0F [12:45:48]Write i2c OK [12:45:48]MH_I2C_Read... [12:45:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:45:48]Read from MH i2c: E2 [12:45:48]MH_I2C_Read... [12:45:48]Read from MH i2c: E2 0E 00 [12:45:48]MH_I2C_Read... [12:45:48]Read from MH i2c: E2 0E 00 3C 56 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 6E [12:45:48]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [12:45:48]wFMCommunicate OK [12:45:48]SAM_PROTO_GetShiftState done [12:45:48]FM_GetShiftState done [12:45:48]req_shift_opened done [12:45:48]requested_item shift.open_date is exist - process it [12:45:48]req_shift_open_date [12:45:48]req_shift_open_date done [12:45:48]produce_requested_data done [12:45:48]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187726,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [12:45:48]process_action_free close_receipt [12:45:48]json_value_free [12:45:48]json_value_free done [12:45:48]process_json_proto returns [12:45:48]Send response to host [12:45:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187726,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [12:45:48]free response buf [12:45:48]execute_script done [12:45:48]execute_script returns [12:45:48]free content buf [12:45:48]Sock 9.Close socket [12:45:48]Sock 9.Thread stoped [12:45:51]OFD Sender: No OFD packet to send [12:45:56]OFD Sender: No OFD packet to send [12:46:02]OFD Sender: No OFD packet to send [12:46:07]OFD Sender: No OFD packet to send [12:46:12]OFD Sender: No OFD packet to send [12:46:17]OFD Sender: No OFD packet to send [12:46:22]OFD Sender: No OFD packet to send [12:46:27]OFD Sender: No OFD packet to send [12:46:32]OFD Sender: No OFD packet to send [12:46:37]OFD Sender: No OFD packet to send [12:46:42]OFD Sender: No OFD packet to send [12:46:47]OFD Sender: No OFD packet to send [12:46:52]OFD Sender: No OFD packet to send [12:46:57]OFD Sender: No OFD packet to send [12:47:02]OFD Sender: No OFD packet to send [12:47:07]OFD Sender: No OFD packet to send [12:47:12]OFD Sender: No OFD packet to send [12:47:17]OFD Sender: No OFD packet to send [12:47:22]OFD Sender: No OFD packet to send [12:47:27]OFD Sender: No OFD packet to send [12:47:32]OFD Sender: No OFD packet to send [12:47:37]OFD Sender: No OFD packet to send [12:47:42]OFD Sender: No OFD packet to send [12:47:47]OFD Sender: No OFD packet to send [12:47:52]OFD Sender: No OFD packet to send [12:47:57]OFD Sender: No OFD packet to send [12:48:02]OFD Sender: No OFD packet to send [12:48:07]OFD Sender: No OFD packet to send [12:48:12]OFD Sender: No OFD packet to send [12:48:17]OFD Sender: No OFD packet to send [12:48:22]OFD Sender: No OFD packet to send [12:48:27]OFD Sender: No OFD packet to send [12:48:32]OFD Sender: No OFD packet to send [12:48:37]OFD Sender: No OFD packet to send [12:48:42]OFD Sender: No OFD packet to send [12:48:47]OFD Sender: No OFD packet to send [12:48:52]OFD Sender: No OFD packet to send [12:48:57]OFD Sender: No OFD packet to send [12:49:02]OFD Sender: No OFD packet to send [12:49:07]OFD Sender: No OFD packet to send [12:49:12]OFD Sender: No OFD packet to send [12:49:17]OFD Sender: No OFD packet to send [12:49:22]OFD Sender: No OFD packet to send [12:49:27]OFD Sender: No OFD packet to send [12:49:32]OFD Sender: No OFD packet to send [12:49:37]OFD Sender: No OFD packet to send [12:49:42]OFD Sender: No OFD packet to send [12:49:47]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:53]OFD Sender: No OFD packet to send [12:51:53]accept exits with 8 [12:51:53]New connection [12:51:53]New thread 3067014500 created [12:51:53]Thread 3067157860 joined [12:51:53]Waiting for new connection... [12:51:53] Sock 8.Parse request [12:51:53]Sock 8.Check first char [12:51:53]Sock 8.First char is OK [12:51:53]request: POST /json_proto HTTP/1.0 [12:51:53]Method: POST [12:51:53]URL: /json_proto [12:51:53]Method is POST - this is cgi request [12:51:53]url: /json_proto [12:51:53]query_string will be loaded in cgi processing [12:51:53]execute_cgi json_proto POST (null) [12:51:53]execute_cgi path=json_proto method=POST [12:51:53]POST find Content-Length [12:51:53]Host: 172.17.42.131:8080 [12:51:53]Content-Length: 683 [12:51:53]Content-Type: application/json [12:51:53] [12:51:53]POST finish read [12:51:53]Found Content-Length = 683 [12:51:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209779", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 7.910, "sum" : 610.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 610.00, "total" : 610.00, "payments": [ { "type": 0, "sum" : 610.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:51:53]execute_script... [12:51:53]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209779", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 7.910, "sum" : 610.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 610.00, "total" : 610.00, "payments": [ { "type": 0, "sum" : 610.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:51:53]POST & json_proto [12:51:53]process_json_proto [12:51:53]json parsed OK: [12:51:53]protocol is kg_v1.0 [12:51:53]action value=close_receipt [12:51:53]process_action close_receipt [12:51:53]cmd_close_receipt [12:51:53]MH_GetDate [12:51:53]Write to MH i2c: F0 00 00 3D 56 82 [12:51:53]Write i2c OK [12:51:53]MH_I2C_Read... [12:51:53]Read from MH i2c: F0 [12:51:53]MH_I2C_Read... [12:51:53]Read from MH i2c: F0 09 00 [12:51:53]MH_I2C_Read... [12:51:53]Read from MH i2c: F0 09 00 3D 56 00 6D 4E 16 67 A0 18 CA 66 AB [12:51:53]GetLastDocTimeStamp 1729514748 [12:51:53]current date 1729515117 [12:51:53]FM_GetShiftState [12:51:53]SAM_PROTO_GetShiftState [12:51:53]wFMCommunicate request_size=4 [12:51:53]MH_SAM_APDU [12:51:53]CAPDU: 80 13 01 00 [12:51:53]Write to MH i2c: E2 08 00 3E 56 80 13 01 00 00 00 00 00 11 [12:51:53]Write i2c OK [12:51:53]MH_I2C_Read... [12:51:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:51:53]Read from MH i2c: E2 [12:51:53]MH_I2C_Read... [12:51:53]Read from MH i2c: E2 0E 00 [12:51:53]MH_I2C_Read... [12:51:53]Read from MH i2c: E2 0E 00 3E 56 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 70 [12:51:53]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [12:51:53]wFMCommunicate OK [12:51:53]SAM_PROTO_GetShiftState done [12:51:53]FM_GetShiftState done [12:51:53]opened in 1729469754 [12:51:53]opened+sec_in_day 1729556154 [12:51:53]quantity*price = 61065 [12:51:53]sum+1 = 61066 [12:51:53]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.65 ИТОГО: 610.00 Внесено: 610.00 СДАЧА: 0.00 НСП 1% : 5.40 НДС 12% : 64.85 Наличными: 610.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 191 21.10.2024 12:51 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 187727 ФПД: 268268051130182 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T125157&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187727&fm=268268051130182&tin=02508201610067®Number=0000000000100030&sum=61000 [12:51:54]StoreToDocumentArchive [12:51:54]shift 460 fd 187727 [12:51:54]save to /storage/0460/doc_00187727 [12:51:54]save last doc name /storage/0460/doc_00187727 to /storage/kkm_last_doc_name [12:51:54]save OK [12:51:54]Clear old archive folders... [12:51:54]ProcessDocumentItem done err = 0, tmpTLVsize=257 [12:51:54]tlvbuf is 0109C780 [12:51:54]SAM_PROTO_ClearQueue [12:51:54]wFMCommunicate request_size=4 [12:51:54]MH_SAM_APDU [12:51:54]CAPDU: 80 09 00 00 [12:51:54]Write to MH i2c: E2 08 00 4B 56 80 09 00 00 00 00 00 00 13 [12:51:54]Write i2c OK [12:51:54]MH_I2C_Read... [12:51:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:51:54]Read from MH i2c: E2 [12:51:54]MH_I2C_Read... [12:51:54]Read from MH i2c: E2 03 00 [12:51:54]MH_I2C_Read... [12:51:54]Read from MH i2c: E2 03 00 4B 56 00 90 00 15 [12:51:54]RAPDU: 90 00 [12:51:54]wFMCommunicate OK [12:51:54]SAM_PROTO_ClearQueue done [12:51:54]KKMCreateOFDPacket [12:51:54]OFDProtocolAddRootSTLVToBuf [12:51:54]FM_MakeSignedData [12:51:54]FM_MakeSignedData [12:51:54]SAM_PROTO_SignData [12:51:54]wFMCommunicate request_size=4 [12:51:54]MH_SAM_APDU [12:51:54]CAPDU: 80 0D 01 02 [12:51:54]Write to MH i2c: E2 08 00 4C 56 80 0D 01 02 00 00 00 00 1B [12:51:54]Write i2c OK [12:51:54]MH_I2C_Read... [12:51:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:51:54]Read from MH i2c: E2 [12:51:54]MH_I2C_Read... [12:51:54]Read from MH i2c: E2 03 00 [12:51:54]MH_I2C_Read... [12:51:54]Read from MH i2c: E2 03 00 4C 56 00 90 00 16 [12:51:54]RAPDU: 90 00 [12:51:54]wFMCommunicate OK [12:51:54]wFMCommunicate request_size=255 [12:51:54]MH_SAM_APDU [12:51:54]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 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E6 1E 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 89 EE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 EE 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 55 19 00 00 00 00 07 04 06 00 48 EE 00 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 6D 4E 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 4F DD 02 [12:51:54]Write to MH i2c: E2 02 01 4D 56 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 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E6 1E 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 89 EE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 EE 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 55 19 00 00 00 00 07 04 06 00 48 EE 00 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 6D 4E 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 4F DD 02 00 00 41 [12:51:54]Write i2c OK [12:51:54]MH_I2C_Read... [12:51:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:51:55]Read from MH i2c: E2 [12:51:55]MH_I2C_Read... [12:51:55]Read from MH i2c: E2 03 00 [12:51:55]MH_I2C_Read... [12:51:55]Read from MH i2c: E2 03 00 4D 56 00 90 00 17 [12:51:55]RAPDU: 90 00 [12:51:55]wFMCommunicate OK [12:51:55]wFMCommunicate request_size=16 [12:51:55]MH_SAM_APDU [12:51:55]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 F3 FD 05 E4 67 46 [12:51:55]Write to MH i2c: E2 13 00 4E 56 80 0D 02 02 0B 00 00 35 04 06 00 F3 FD 05 E4 67 46 00 00 F9 [12:51:55]Write i2c OK [12:51:55]MH_I2C_Read... [12:51:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:51:55]Read from MH i2c: E2 [12:51:55]MH_I2C_Read... [12:51:55]Read from MH i2c: E2 03 00 [12:51:55]MH_I2C_Read... [12:51:55]Read from MH i2c: E2 03 00 4E 56 00 90 00 18 [12:51:55]RAPDU: 90 00 [12:51:55]wFMCommunicate OK [12:51:55]wFMCommunicate request_size=4 [12:51:55]MH_SAM_APDU [12:51:55]CAPDU: 80 0D 03 02 [12:51:55]Write to MH i2c: E2 08 00 4F 56 80 0D 03 02 00 00 00 00 20 [12:51:55]Write i2c OK [12:51:55]MH_I2C_Read... [12:51:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:51:55]Read from MH i2c: E2 [12:51:55]MH_I2C_Read... [12:51:55]Read from MH i2c: E2 0B 00 [12:51:55]MH_I2C_Read... [12:51:55]Read from MH i2c: E2 0B 00 4F 56 00 29 44 5C 4C DB 29 64 6D 90 00 0B [12:51:55]RAPDU: 29 44 5C 4C DB 29 64 6D 90 00 [12:51:55]wFMCommunicate OK [12:51:55]SAM_PROTO_SignData done [12:51:55]FM_MakeSignedData done [12:51:55]CreateOFDProtocolMessage [12:51:55]wFMCommunicate request_size=4 [12:51:55]MH_SAM_APDU [12:51:55]CAPDU: 80 11 00 00 [12:51:55]Write to MH i2c: E2 08 00 50 56 80 11 00 00 00 00 00 00 20 [12:51:55]Write i2c OK [12:51:55]MH_I2C_Read... [12:51:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:51:55]Read from MH i2c: E2 [12:51:55]MH_I2C_Read... [12:51:55]Read from MH i2c: E2 17 00 [12:51:55]MH_I2C_Read... [12:51:55]Read from MH i2c: E2 17 00 50 56 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 6E [12:51:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [12:51:55]wFMCommunicate OK [12:51:55]CreateOFDProtocolMessage done [12:51:55]OFDSenderStorePacket 187727 [12:51:55]StoreOFDPacket docnum=187727 [12:51:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 26 F4 0D 01 1B D8 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E6 1E 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 89 EE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 EE 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 55 19 00 00 00 00 07 04 06 00 48 EE 00 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 6D 4E 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 4F DD 02 00 35 04 06 00 F3 FD 05 E4 67 46 29 44 5C 4C DB 29 64 6D [12:51:55]CheckFolder [12:51:55]dirname=/storage/ofd_packets [12:51:55]CheckFolder done [12:51:55]ProducePacketName [12:51:55]name=ofd_packets/00187727 [12:51:55]NVStorageSaveData ofd_packets/00187727 [12:51:55]File name is /storage/ofd_packets/00187727 [12:51:55]Write 307 bytes [12:51:55]NVStorageSaveData done [12:51:55]OFDSenderStorePacket done [12:51:55]KKMCreateOFDPacket done [12:51:55]NVStorageSaveData kkm_last_timestamp [12:51:55]File name is /storage/kkm_last_timestamp [12:51:55]Write 4 bytes [12:51:55]NVStorageSaveData done [12:51:55]ExternCall_PrintAddStr [12:51:55]wPrintStart [12:51:55]Write to MH i2c: 01 00 00 51 56 A7 [12:51:55]Write i2c OK [12:51:55]MH_I2C_Read... [12:51:55]Read from MH i2c: 01 [12:51:55]MH_I2C_Read... [12:51:55]Read from MH i2c: 01 07 00 [12:51:55]MH_I2C_Read... [12:51:55]Read from MH i2c: 01 07 00 51 56 00 00 00 00 00 FF 0F BC [12:51:55]RasterBufferAndPrint [12:51:55]line Счет N : (1)209779 [12:51:55]line ИНН: 02508201610067 [12:51:55]line Контрольно-Кассовый Чек [12:51:55]line ПРОДАЖА [12:51:55]line ТРК (МРК, ГНК) : 31 [12:51:55]line Товар: 2710194210 [12:51:55]line D-ENERGY ДТ-К-5 [12:51:55]line 7.910 * 77.20 [12:51:55]line = 610.65 [12:51:55]line НДС 12% НСП 1% [12:51:55]line > о реализуемом товаре [12:51:55]line ОКРУГЛЕНИЕ: -0.65 [12:51:55]line ИТОГО: 610.00 [12:51:55]line Внесено: 610.00 [12:51:55]line СДАЧА: 0.00 [12:51:55]line НСП 1% : 5.40 [12:51:55]line НДС 12% : 64.85 [12:51:55]line Наличными: 610.00 [12:51:55]line Безнал.: 0.00 [12:51:55]line Место: АЗС № 86 "Партнер Нефть" [12:51:55]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [12:51:55]line СНО: Общий режим [12:51:55]line Чек 191 21.10.2024 12:51 [12:51:55]line Смена: 460 ФФД: 1.0 [12:51:55]line ЗНМ: 0300000155 [12:51:55]line РНМ: 0000000000100030 [12:51:55]line Версия ККМ: 001 [12:51:55]line ФМ: 0000000000965340 [12:51:55]line ФД: 187727 [12:51:55]line ФПД: 268268051130182 [12:51:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T125157&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187727&fm=268268051130182&tin=02508201610067®Number=0000000000100030&sum=61000 [12:51:55]written 0, free lines is 4095 [12:51:55]OFD Sender: Processing packet 187727 [packets to send 1062, broken 1061] [12:51:55]ProducePacketName [12:51:55]name=ofd_packets/00187727 [12:51:55]OFD Sender: To server: pG, [12:51:55]CommunicateWithHost lk.salyk.kg:30040 [12:51:55]ConnectInit lk.salyk.kg [12:51:55]Connected sock=10 [12:51:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 26 F4 0D 01 1B D8 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E6 1E 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 89 EE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 EE 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 55 19 00 00 00 00 07 04 06 00 48 EE 00 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 6D 4E 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 4F DD 02 00 35 04 06 00 F3 FD 05 E4 67 46 29 44 5C 4C DB 29 64 6D [12:51:55]Write to MH i2c: 01 00 00 7C 56 D2 [12:51:55]Write i2c OK [12:51:55]MH_I2C_Read... [12:51:55]Read from MH i2c: 01 [12:51:55]MH_I2C_Read... [12:51:55]Read from MH i2c: 01 07 00 [12:51:55]MH_I2C_Read... [12:51:55]Read from MH i2c: 01 07 00 7C 56 00 00 00 00 00 6C 0C 51 [12:51:55]RasterBufferAndPrint [12:51:55]line [12:51:55]line [12:51:55]line [12:51:55]line [12:51:55]line [12:51:55]written 0, free lines is 3184 [12:51:55]MH_Cut [12:51:55]Write to MH i2c: D1 01 00 83 56 01 AB [12:51:55]Write i2c OK [12:51:55]MH_I2C_Read... [12:51:55]Read from MH i2c: D1 [12:51:55]MH_I2C_Read... [12:51:55]Read from MH i2c: D1 01 00 [12:51:55]MH_I2C_Read... [12:51:55]Read from MH i2c: D1 01 00 83 56 00 AA [12:51:55]Write to MH i2c: 01 00 00 84 56 DA [12:51:55]Write i2c OK [12:51:55]MH_I2C_Read... [12:51:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 18 29 47 00 A8 11 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 4F DD 02 00 F4 03 04 00 5D F8 15 67 B6 04 01 00 00 8F 47 30 86 D4 F9 C8 FE [12:51:55]CommunicateWithHost err = 0 [12:51:55]CheckOFDResponse [12:51:55]1017 (14) - 77093643461234 [12:51:55]1041 (16) - 0000000000965340 [12:51:55]1040 (4) - 187727 [12:51:55]1012 (4) - 21.10.2024 06:44 [12:51:55]1206 (1) - 0 [12:51:55]OFD Sender: Remove packet 187727 [12:51:55]ProducePacketName [12:51:55]name=ofd_packets/00187727 [12:51:55]NVStorageDeleteData [12:51:56]OFD Sender: No OFD packet to send [12:51:57]*** Cut start [12:51:57]*** Partial cut [12:51:57]*** CUTSNS_PIN = 1 [12:51:57]*** CUTSNS_PIN = 0 [12:51:57]*** Brake cut motor [12:51:57]Read from MH i2c: 01 [12:51:57]MH_I2C_Read... [12:51:57]*** Stop cut motor [12:51:57]*** Cut end [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 84 56 00 00 00 00 00 FF 0F EF [12:51:57]process_action close_receipt done [12:51:57]requested_data is exist [12:51:57]produce_requested_data [12:51:57]requested_item fm.sn is exist - process it [12:51:57]wFMCommunicate request_size=4 [12:51:57]MH_SAM_APDU [12:51:57]CAPDU: 80 11 00 00 [12:51:57]Write to MH i2c: E2 08 00 85 56 80 11 00 00 00 00 00 00 55 [12:51:57]Write i2c OK [12:51:57]MH_I2C_Read... [12:51:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:51:57]Read from MH i2c: E2 [12:51:57]MH_I2C_Read... [12:51:57]Read from MH i2c: E2 17 00 [12:51:57]MH_I2C_Read... [12:51:57]Read from MH i2c: E2 17 00 85 56 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 A3 [12:51:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [12:51:57]wFMCommunicate OK [12:51:57]requested_item fd.num is exist - process it [12:51:57]SAM_PROTO_GetFieldsCounters [12:51:57]wFMCommunicate request_size=4 [12:51:57]MH_SAM_APDU [12:51:57]CAPDU: 80 13 00 00 [12:51:57]Write to MH i2c: E2 08 00 86 56 80 13 00 00 00 00 00 00 58 [12:51:57]Write i2c OK [12:51:57]MH_I2C_Read... [12:51:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:51:57]Read from MH i2c: E2 [12:51:57]MH_I2C_Read... [12:51:57]Read from MH i2c: E2 62 00 [12:51:57]MH_I2C_Read... [12:51:57]Read from MH i2c: E2 62 00 86 56 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 4F DD 02 00 0E 04 04 00 CC 01 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 97 [12:51:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 4F DD 02 00 0E 04 04 00 CC 01 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 [12:51:57]wFMCommunicate OK [12:51:57]SAM_PROTO_GetFieldsCounters done [12:51:57]requested_item shift.num is exist - process it [12:51:57]requested_item shift.opened is exist - process it [12:51:57]req_shift_opened [12:51:57]FM_GetShiftState [12:51:57]SAM_PROTO_GetShiftState [12:51:57]wFMCommunicate request_size=4 [12:51:57]MH_SAM_APDU [12:51:57]CAPDU: 80 13 01 00 [12:51:57]Write to MH i2c: E2 08 00 87 56 80 13 01 00 00 00 00 00 5A [12:51:57]Write i2c OK [12:51:57]MH_I2C_Read... [12:51:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:51:57]Read from MH i2c: E2 [12:51:57]MH_I2C_Read... [12:51:57]Read from MH i2c: E2 0E 00 [12:51:57]MH_I2C_Read... [12:51:57]Read from MH i2c: E2 0E 00 87 56 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 B9 [12:51:57]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [12:51:57]wFMCommunicate OK [12:51:57]SAM_PROTO_GetShiftState done [12:51:57]FM_GetShiftState done [12:51:57]req_shift_opened done [12:51:57]requested_item shift.open_date is exist - process it [12:51:57]req_shift_open_date [12:51:57]req_shift_open_date done [12:51:57]produce_requested_data done [12:51:57]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187727,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [12:51:57]process_action_free close_receipt [12:51:57]json_value_free [12:51:57]json_value_free done [12:51:57]process_json_proto returns [12:51:57]Send response to host [12:51:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187727,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [12:51:57]free response buf [12:51:57]execute_script done [12:51:57]execute_script returns [12:51:57]free content buf [12:51:57]Sock 8.Close socket [12:51:57]Sock 8.Thread stoped [12:52:01]OFD Sender: No OFD packet to send [12:52:06]OFD Sender: No OFD packet to send [12:52:11]OFD Sender: No OFD packet to send [12:52:16]OFD Sender: No OFD packet to send [12:52:21]OFD Sender: No OFD packet to send [12:52:26]OFD Sender: No OFD packet to send [12:52:31]OFD Sender: No OFD packet to send [12:52:36]OFD Sender: No OFD packet to send [12:52:38]accept exits with 9 [12:52:38]New connection [12:52:38]New thread 3067157860 created [12:52:38]Thread 3067014500 joined [12:52:38]Waiting for new connection... [12:52:38] Sock 9.Parse request [12:52:38]Sock 9.Check first char [12:52:38]Sock 9.First char is OK [12:52:38]request: POST /json_proto HTTP/1.0 [12:52:38]Method: POST [12:52:38]URL: /json_proto [12:52:38]Method is POST - this is cgi request [12:52:38]url: /json_proto [12:52:38]query_string will be loaded in cgi processing [12:52:38]execute_cgi json_proto POST (null) [12:52:38]execute_cgi path=json_proto method=POST [12:52:38]POST find Content-Length [12:52:38]Host: 172.17.42.131:8080 [12:52:38]Content-Length: 682 [12:52:38]Content-Type: application/json [12:52:38] [12:52:38]POST finish read [12:52:38]Found Content-Length = 682 [12:52:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209781", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "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:52:38]execute_script... [12:52: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)209781", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "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:52:38]POST & json_proto [12:52:38]process_json_proto [12:52:38]json parsed OK: [12:52:38]protocol is kg_v1.0 [12:52:38]action value=close_receipt [12:52:38]process_action close_receipt [12:52:38]cmd_close_receipt [12:52:38]MH_GetDate [12:52:38]Write to MH i2c: F0 00 00 88 56 CD [12:52:38]Write i2c OK [12:52:38]MH_I2C_Read... [12:52:38]Read from MH i2c: F0 [12:52:38]MH_I2C_Read... [12:52:38]Read from MH i2c: F0 09 00 [12:52:38]MH_I2C_Read... [12:52:38]Read from MH i2c: F0 09 00 88 56 00 9A 4E 16 67 A0 18 CA 66 23 [12:52:38]GetLastDocTimeStamp 1729515117 [12:52:38]current date 1729515162 [12:52:38]FM_GetShiftState [12:52:38]SAM_PROTO_GetShiftState [12:52:38]wFMCommunicate request_size=4 [12:52:38]MH_SAM_APDU [12:52:38]CAPDU: 80 13 01 00 [12:52:38]Write to MH i2c: E2 08 00 89 56 80 13 01 00 00 00 00 00 5C [12:52:38]Write i2c OK [12:52:38]MH_I2C_Read... [12:52:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:52:38]Read from MH i2c: E2 [12:52:38]MH_I2C_Read... [12:52:38]Read from MH i2c: E2 0E 00 [12:52:38]MH_I2C_Read... [12:52:38]Read from MH i2c: E2 0E 00 89 56 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 BB [12:52:38]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [12:52:38]wFMCommunicate OK [12:52:38]SAM_PROTO_GetShiftState done [12:52:38]FM_GetShiftState done [12:52:38]opened in 1729469754 [12:52:38]opened+sec_in_day 1729556154 [12:52:38]quantity*price = 100015 [12:52:38]sum+1 = 100017 [12:52:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 192 21.10.2024 12:52 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 187728 ФПД: 35175459951673 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T125242&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187728&fm=35175459951673&tin=02508201610067®Number=0000000000100030&sum=100000 [12:52:39]StoreToDocumentArchive [12:52:39]shift 460 fd 187728 [12:52:39]save to /storage/0460/doc_00187728 [12:52:39]save last doc name /storage/0460/doc_00187728 to /storage/kkm_last_doc_name [12:52:39]save OK [12:52:39]Clear old archive folders... [12:52:39]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:52:39]tlvbuf is 0112F3C0 [12:52:39]SAM_PROTO_ClearQueue [12:52:39]wFMCommunicate request_size=4 [12:52:39]MH_SAM_APDU [12:52:39]CAPDU: 80 09 00 00 [12:52:39]Write to MH i2c: E2 08 00 96 56 80 09 00 00 00 00 00 00 5E [12:52:39]Write i2c OK [12:52:39]MH_I2C_Read... [12:52:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:52:39]Read from MH i2c: E2 [12:52:39]MH_I2C_Read... [12:52:39]Read from MH i2c: E2 03 00 [12:52:39]MH_I2C_Read... [12:52:39]Read from MH i2c: E2 03 00 96 56 00 90 00 60 [12:52:39]RAPDU: 90 00 [12:52:39]wFMCommunicate OK [12:52:39]SAM_PROTO_ClearQueue done [12:52:39]KKMCreateOFDPacket [12:52:39]OFDProtocolAddRootSTLVToBuf [12:52:39]FM_MakeSignedData [12:52:39]FM_MakeSignedData [12:52:39]SAM_PROTO_SignData [12:52:39]wFMCommunicate request_size=4 [12:52:39]MH_SAM_APDU [12:52:39]CAPDU: 80 0D 01 02 [12:52:39]Write to MH i2c: E2 08 00 97 56 80 0D 01 02 00 00 00 00 66 [12:52:39]Write i2c OK [12:52:39]MH_I2C_Read... [12:52:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:52:39]Read from MH i2c: E2 [12:52:39]MH_I2C_Read... [12:52:39]Read from MH i2c: E2 03 00 [12:52:39]MH_I2C_Read... [12:52:39]Read from MH i2c: E2 03 00 97 56 00 90 00 61 [12:52:39]RAPDU: 90 00 [12:52:39]wFMCommunicate OK [12:52:39]wFMCommunicate request_size=255 [12:52:39]MH_SAM_APDU [12:52: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 33 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 C0 00 00 00 F4 03 04 00 9A 4E 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 50 DD 02 00 35 04 06 00 1F [12:52:39]Write to MH i2c: E2 02 01 98 56 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 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 C0 00 00 00 F4 03 04 00 9A 4E 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 50 DD 02 00 35 04 06 00 1F 00 00 13 [12:52:39]Write i2c OK [12:52:39]MH_I2C_Read... [12:52:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:52:39]Read from MH i2c: E2 [12:52:39]MH_I2C_Read... [12:52:39]Read from MH i2c: E2 03 00 [12:52:39]MH_I2C_Read... [12:52:39]Read from MH i2c: E2 03 00 98 56 00 90 00 62 [12:52:39]RAPDU: 90 00 [12:52:39]wFMCommunicate OK [12:52:39]wFMCommunicate request_size=10 [12:52:39]MH_SAM_APDU [12:52:39]CAPDU: 80 0D 02 02 05 FD EC CB 94 39 [12:52:39]Write to MH i2c: E2 0D 00 99 56 80 0D 02 02 05 00 FD EC CB 94 39 00 00 F4 [12:52:39]Write i2c OK [12:52:39]MH_I2C_Read... [12:52:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:52:40]Read from MH i2c: E2 [12:52:40]MH_I2C_Read... [12:52:40]Read from MH i2c: E2 03 00 [12:52:40]MH_I2C_Read... [12:52:40]Read from MH i2c: E2 03 00 99 56 00 90 00 63 [12:52:40]RAPDU: 90 00 [12:52:40]wFMCommunicate OK [12:52:40]wFMCommunicate request_size=4 [12:52:40]MH_SAM_APDU [12:52:40]CAPDU: 80 0D 03 02 [12:52:40]Write to MH i2c: E2 08 00 9A 56 80 0D 03 02 00 00 00 00 6B [12:52:40]Write i2c OK [12:52:40]MH_I2C_Read... [12:52:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:52:40]Read from MH i2c: E2 [12:52:40]MH_I2C_Read... [12:52:40]Read from MH i2c: E2 0B 00 [12:52:40]MH_I2C_Read... [12:52:40]Read from MH i2c: E2 0B 00 9A 56 00 6C F5 E4 50 BC 76 E3 CA 90 00 E0 [12:52:40]RAPDU: 6C F5 E4 50 BC 76 E3 CA 90 00 [12:52:40]wFMCommunicate OK [12:52:40]SAM_PROTO_SignData done [12:52:40]FM_MakeSignedData done [12:52:40]CreateOFDProtocolMessage [12:52:40]wFMCommunicate request_size=4 [12:52:40]MH_SAM_APDU [12:52:40]CAPDU: 80 11 00 00 [12:52:40]Write to MH i2c: E2 08 00 9B 56 80 11 00 00 00 00 00 00 6B [12:52:40]Write i2c OK [12:52:40]MH_I2C_Read... [12:52:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:52:40]Read from MH i2c: E2 [12:52:40]MH_I2C_Read... [12:52:40]Read from MH i2c: E2 17 00 [12:52:40]MH_I2C_Read... [12:52:40]Read from MH i2c: E2 17 00 9B 56 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 B9 [12:52:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [12:52:40]wFMCommunicate OK [12:52:40]CreateOFDProtocolMessage done [12:52:40]OFDSenderStorePacket 187728 [12:52:40]StoreOFDPacket docnum=187728 [12:52:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 C1 71 07 01 A6 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 33 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 C0 00 00 00 F4 03 04 00 9A 4E 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 50 DD 02 00 35 04 06 00 1F FD EC CB 94 39 6C F5 E4 50 BC 76 E3 CA [12:52:40]CheckFolder [12:52:40]dirname=/storage/ofd_packets [12:52:40]CheckFolder done [12:52:40]ProducePacketName [12:52:40]name=ofd_packets/00187728 [12:52:40]NVStorageSaveData ofd_packets/00187728 [12:52:40]File name is /storage/ofd_packets/00187728 [12:52:40]Write 301 bytes [12:52:40]NVStorageSaveData done [12:52:40]OFDSenderStorePacket done [12:52:40]KKMCreateOFDPacket done [12:52:40]NVStorageSaveData kkm_last_timestamp [12:52:40]File name is /storage/kkm_last_timestamp [12:52:40]Write 4 bytes [12:52:40]NVStorageSaveData done [12:52:40]ExternCall_PrintAddStr [12:52:40]wPrintStart [12:52:40]Write to MH i2c: 01 00 00 9C 56 F2 [12:52:40]Write i2c OK [12:52:40]MH_I2C_Read... [12:52:40]Read from MH i2c: 01 [12:52:40]MH_I2C_Read... [12:52:40]Read from MH i2c: 01 07 00 [12:52:40]MH_I2C_Read... [12:52:40]Read from MH i2c: 01 07 00 9C 56 00 00 00 00 00 FF 0F 07 [12:52:40]RasterBufferAndPrint [12:52:40]line Счет N : (1)209781 [12:52:40]line ИНН: 02508201610067 [12:52:40]line Контрольно-Кассовый Чек [12:52:40]line ПРОДАЖА [12:52:40]line ТРК (МРК, ГНК) : 12 [12:52:40]line Товар: 2710124130 [12:52:40]line Аи-92-К-3 [12:52:40]line 14.950 * 66.90 [12:52:40]line = 1000.16 [12:52:40]line НДС 12% НСП 1% [12:52:40]line > о реализуемом товаре [12:52:40]line ОКРУГЛЕНИЕ: -0.16 [12:52:40]line ИТОГО: 1000.00 [12:52:40]line Внесено: 1000.00 [12:52:40]line СДАЧА: 0.00 [12:52:40]line НСП 1% : 8.85 [12:52:40]line НДС 12% : 106.21 [12:52:40]line Наличными: 1000.00 [12:52:40]line Безнал.: 0.00 [12:52:40]line Место: АЗС № 86 "Партнер Нефть" [12:52:40]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [12:52:40]line СНО: Общий режим [12:52:40]line Чек 192 21.10.2024 12:52 [12:52:40]line Смена: 460 ФФД: 1.0 [12:52:40]line ЗНМ: 0300000155 [12:52:40]line РНМ: 0000000000100030 [12:52:40]line Версия ККМ: 001 [12:52:40]line ФМ: 0000000000965340 [12:52:40]line ФД: 187728 [12:52:40]line ФПД: 35175459951673 [12:52:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T125242&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187728&fm=35175459951673&tin=02508201610067®Number=0000000000100030&sum=100000 [12:52:40]written 0, free lines is 4095 [12:52:40]OFD Sender: Processing packet 187728 [packets to send 1062, broken 1061] [12:52:40]ProducePacketName [12:52:40]name=ofd_packets/00187728 [12:52:40]OFD Sender: To server: pG, [12:52:40]CommunicateWithHost lk.salyk.kg:30040 [12:52:40]ConnectInit lk.salyk.kg [12:52:40]Connected sock=10 [12:52:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 C1 71 07 01 A6 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 33 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 C0 00 00 00 F4 03 04 00 9A 4E 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 50 DD 02 00 35 04 06 00 1F FD EC CB 94 39 6C F5 E4 50 BC 76 E3 CA [12:52:40]Write to MH i2c: 01 00 00 C7 56 1D [12:52:40]Write i2c OK [12:52:40]MH_I2C_Read... [12:52:40]Read from MH i2c: 01 [12:52:40]MH_I2C_Read... [12:52:40]Read from MH i2c: 01 07 00 [12:52:40]MH_I2C_Read... [12:52:40]Read from MH i2c: 01 07 00 C7 56 00 00 00 00 00 73 0C A3 [12:52:40]RasterBufferAndPrint [12:52:40]line [12:52:40]line [12:52:40]line [12:52:40]line [12:52:40]line [12:52:40]written 0, free lines is 3189 [12:52:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 5F 43 47 00 BC C6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 50 DD 02 00 F4 03 04 00 8A F8 15 67 B6 04 01 00 00 EE 9A 8A AC C0 C5 48 59 [12:52:40]CommunicateWithHost err = 0 [12:52:40]CheckOFDResponse [12:52:40]1017 (14) - 77093643461234 [12:52:40]1041 (16) - 0000000000965340 [12:52:40]1040 (4) - 187728 [12:52:40]1012 (4) - 21.10.2024 06:45 [12:52:40]1206 (1) - 0 [12:52:40]OFD Sender: Remove packet 187728 [12:52:40]ProducePacketName [12:52:40]name=ofd_packets/00187728 [12:52:40]NVStorageDeleteData [12:52:40]MH_Cut [12:52:40]Write to MH i2c: D1 01 00 CE 56 01 F6 [12:52:40]Write i2c OK [12:52:40]MH_I2C_Read... [12:52:40]Read from MH i2c: D1 [12:52:40]MH_I2C_Read... [12:52:40]Read from MH i2c: D1 01 00 [12:52:40]MH_I2C_Read... [12:52:40]Read from MH i2c: D1 01 00 CE 56 00 F5 [12:52:40]Write to MH i2c: 01 00 00 CF 56 25 [12:52:40]Write i2c OK [12:52:40]MH_I2C_Read... [12:52:41]OFD Sender: No OFD packet to send [12:52:41]*** Cut start [12:52:41]*** Partial cut [12:52:41]*** CUTSNS_PIN = 1 [12:52:41]*** CUTSNS_PIN = 0 [12:52:42]*** Brake cut motor [12:52:42]Read from MH i2c: 01 [12:52:42]MH_I2C_Read... [12:52:42]*** Stop cut motor [12:52:42]*** Cut end [12:52:42]Read from MH i2c: 01 07 00 [12:52:42]MH_I2C_Read... [12:52:42]Read from MH i2c: 01 07 00 CF 56 00 00 00 00 00 FF 0F 3A [12:52:42]process_action close_receipt done [12:52:42]requested_data is exist [12:52:42]produce_requested_data [12:52:42]requested_item fm.sn is exist - process it [12:52:42]wFMCommunicate request_size=4 [12:52:42]MH_SAM_APDU [12:52:42]CAPDU: 80 11 00 00 [12:52:42]Write to MH i2c: E2 08 00 D0 56 80 11 00 00 00 00 00 00 A0 [12:52:42]Write i2c OK [12:52:42]MH_I2C_Read... [12:52:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:52:42]Read from MH i2c: E2 [12:52:42]MH_I2C_Read... [12:52:42]Read from MH i2c: E2 17 00 [12:52:42]MH_I2C_Read... [12:52:42]Read from MH i2c: E2 17 00 D0 56 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 EE [12:52:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [12:52:42]wFMCommunicate OK [12:52:42]requested_item fd.num is exist - process it [12:52:42]SAM_PROTO_GetFieldsCounters [12:52:42]wFMCommunicate request_size=4 [12:52:42]MH_SAM_APDU [12:52:42]CAPDU: 80 13 00 00 [12:52:42]Write to MH i2c: E2 08 00 D1 56 80 13 00 00 00 00 00 00 A3 [12:52:42]Write i2c OK [12:52:42]MH_I2C_Read... [12:52:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:52:42]Read from MH i2c: E2 [12:52:42]MH_I2C_Read... [12:52:42]Read from MH i2c: E2 62 00 [12:52:42]MH_I2C_Read... [12:52:42]Read from MH i2c: E2 62 00 D1 56 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 50 DD 02 00 0E 04 04 00 CC 01 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 E6 [12:52:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 50 DD 02 00 0E 04 04 00 CC 01 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 [12:52:42]wFMCommunicate OK [12:52:42]SAM_PROTO_GetFieldsCounters done [12:52:42]requested_item shift.num is exist - process it [12:52:42]requested_item shift.opened is exist - process it [12:52:42]req_shift_opened [12:52:42]FM_GetShiftState [12:52:42]SAM_PROTO_GetShiftState [12:52:42]wFMCommunicate request_size=4 [12:52:42]MH_SAM_APDU [12:52:42]CAPDU: 80 13 01 00 [12:52:42]Write to MH i2c: E2 08 00 D2 56 80 13 01 00 00 00 00 00 A5 [12:52:42]Write i2c OK [12:52:42]MH_I2C_Read... [12:52:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:52:42]Read from MH i2c: E2 [12:52:42]MH_I2C_Read... [12:52:42]Read from MH i2c: E2 0E 00 [12:52:42]MH_I2C_Read... [12:52:42]Read from MH i2c: E2 0E 00 D2 56 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 04 [12:52:42]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [12:52:42]wFMCommunicate OK [12:52:42]SAM_PROTO_GetShiftState done [12:52:42]FM_GetShiftState done [12:52:42]req_shift_opened done [12:52:42]requested_item shift.open_date is exist - process it [12:52:42]req_shift_open_date [12:52:42]req_shift_open_date done [12:52:42]produce_requested_data done [12:52:42]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187728,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [12:52:42]process_action_free close_receipt [12:52:42]json_value_free [12:52:42]json_value_free done [12:52:42]process_json_proto returns [12:52:42]Send response to host [12:52:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187728,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [12:52:42]free response buf [12:52:42]execute_script done [12:52:42]execute_script returns [12:52:42]free content buf [12:52:42]Sock 9.Close socket [12:52:42]Sock 9.Thread stoped [12:52:44]accept exits with 8 [12:52:44]New connection [12:52:44]New thread 3067014500 created [12:52:44]Thread 3067157860 joined [12:52:44]Waiting for new connection... [12:52:44] Sock 8.Parse request [12:52:44]Sock 8.Check first char [12:52:44]Sock 8.First char is OK [12:52:44]request: POST /json_proto HTTP/1.0 [12:52:44]Method: POST [12:52:44]URL: /json_proto [12:52:44]Method is POST - this is cgi request [12:52:44]url: /json_proto [12:52:44]query_string will be loaded in cgi processing [12:52:44]execute_cgi json_proto POST (null) [12:52:44]execute_cgi path=json_proto method=POST [12:52:44]POST find Content-Length [12:52:44]Host: 172.17.42.131:8080 [12:52:44]Content-Length: 817 [12:52:44]Content-Type: application/json [12:52:44] [12:52:44]POST finish read [12:52:44]Found Content-Length = 817 [12:52:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209780", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 129.930, "sum" : 9900.67, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 9900.67 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:52:44]execute_script... [12:52: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)209780", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 129.930, "sum" : 9900.67, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 9900.67 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:52:44]POST & json_proto [12:52:44]process_json_proto [12:52:44]json parsed OK: [12:52:44]protocol is kg_v1.0 [12:52:44]action value=close_receipt [12:52:44]process_action close_receipt [12:52:44]cmd_close_receipt [12:52:44]MH_GetDate [12:52:44]Write to MH i2c: F0 00 00 D3 56 18 [12:52:44]Write i2c OK [12:52:44]MH_I2C_Read... [12:52:44]Read from MH i2c: F0 [12:52:44]MH_I2C_Read... [12:52:44]Read from MH i2c: F0 09 00 [12:52:44]MH_I2C_Read... [12:52:44]Read from MH i2c: F0 09 00 D3 56 00 A0 4E 16 67 A0 18 CA 66 74 [12:52:44]GetLastDocTimeStamp 1729515162 [12:52:44]current date 1729515168 [12:52:44]FM_GetShiftState [12:52:44]SAM_PROTO_GetShiftState [12:52:44]wFMCommunicate request_size=4 [12:52:44]MH_SAM_APDU [12:52:44]CAPDU: 80 13 01 00 [12:52:44]Write to MH i2c: E2 08 00 D4 56 80 13 01 00 00 00 00 00 A7 [12:52:44]Write i2c OK [12:52:44]MH_I2C_Read... [12:52:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:52:44]Read from MH i2c: E2 [12:52:44]MH_I2C_Read... [12:52:44]Read from MH i2c: E2 0E 00 [12:52:44]MH_I2C_Read... [12:52:44]Read from MH i2c: E2 0E 00 D4 56 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 06 [12:52:44]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [12:52:44]wFMCommunicate OK [12:52:44]SAM_PROTO_GetShiftState done [12:52:44]FM_GetShiftState done [12:52:44]opened in 1729469754 [12:52:44]opened+sec_in_day 1729556154 [12:52:44]quantity*price = 990066 [12:52:44]sum+1 = 990068 [12:52:44]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 9900.67 НСП 1% : 87.62 НДС 12% : 1051.40 Наличными: 0.00 Безнал.: 9900.67 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 193 21.10.2024 12:52 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000965340 ФД: 187729 ФПД: 51114546749576 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T125248&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187729&fm=51114546749576&tin=02508201610067®Number=0000000000100030&sum=990067 [12:52:45]StoreToDocumentArchive [12:52:45]shift 460 fd 187729 [12:52:45]save to /storage/0460/doc_00187729 [12:52:45]save last doc name /storage/0460/doc_00187729 to /storage/kkm_last_doc_name [12:52:45]save OK [12:52:45]Clear old archive folders... [12:52:45]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:52:45]tlvbuf is 010E3BC0 [12:52:45]SAM_PROTO_ClearQueue [12:52:45]wFMCommunicate request_size=4 [12:52:45]MH_SAM_APDU [12:52:45]CAPDU: 80 09 00 00 [12:52:45]Write to MH i2c: E2 08 00 E1 56 80 09 00 00 00 00 00 00 A9 [12:52:45]Write i2c OK [12:52:45]MH_I2C_Read... [12:52:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:52:45]Read from MH i2c: E2 [12:52:45]MH_I2C_Read... [12:52:45]Read from MH i2c: E2 03 00 [12:52:45]MH_I2C_Read... [12:52:45]Read from MH i2c: E2 03 00 E1 56 00 90 00 AB [12:52:45]RAPDU: 90 00 [12:52:45]wFMCommunicate OK [12:52:45]SAM_PROTO_ClearQueue done [12:52:45]KKMCreateOFDPacket [12:52:45]OFDProtocolAddRootSTLVToBuf [12:52:45]FM_MakeSignedData [12:52:45]FM_MakeSignedData [12:52:45]SAM_PROTO_SignData [12:52:45]wFMCommunicate request_size=4 [12:52:45]MH_SAM_APDU [12:52:45]CAPDU: 80 0D 01 02 [12:52:45]Write to MH i2c: E2 08 00 E2 56 80 0D 01 02 00 00 00 00 B1 [12:52:45]Write i2c OK [12:52:45]MH_I2C_Read... [12:52:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:52:45]Read from MH i2c: E2 [12:52:45]MH_I2C_Read... [12:52:45]Read from MH i2c: E2 03 00 [12:52:45]MH_I2C_Read... [12:52:45]Read from MH i2c: E2 03 00 E2 56 00 90 00 AC [12:52:45]RAPDU: 90 00 [12:52:45]wFMCommunicate OK [12:52:45]wFMCommunicate request_size=255 [12:52:45]MH_SAM_APDU [12:52:45]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A FB 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 73 1B 0F 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 73 1B 0F 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3A 22 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B4 9A 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 73 1B 0F 00 00 00 1F 04 02 00 01 00 12 04 04 00 C1 00 00 00 F4 03 04 00 A0 4E 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 51 DD 02 00 35 04 06 00 2E 7D 08 66 [12:52:45]Write to MH i2c: E2 02 01 E3 56 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A FB 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 73 1B 0F 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 73 1B 0F 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3A 22 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B4 9A 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 73 1B 0F 00 00 00 1F 04 02 00 01 00 12 04 04 00 C1 00 00 00 F4 03 04 00 A0 4E 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 51 DD 02 00 35 04 06 00 2E 7D 08 66 00 00 1F [12:52:45]Write i2c OK [12:52:45]MH_I2C_Read... [12:52:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:52:45]Read from MH i2c: E2 [12:52:45]MH_I2C_Read... [12:52:45]Read from MH i2c: E2 03 00 [12:52:45]MH_I2C_Read... [12:52:45]Read from MH i2c: E2 03 00 E3 56 00 90 00 AD [12:52:45]RAPDU: 90 00 [12:52:45]wFMCommunicate OK [12:52:45]wFMCommunicate request_size=7 [12:52:45]MH_SAM_APDU [12:52:45]CAPDU: 80 0D 02 02 02 E0 88 [12:52:45]Write to MH i2c: E2 0A 00 E4 56 80 0D 02 02 02 00 E0 88 00 00 20 [12:52:45]Write i2c OK [12:52:45]MH_I2C_Read... [12:52:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:52:46]Read from MH i2c: E2 [12:52:46]MH_I2C_Read... [12:52:46]Read from MH i2c: E2 03 00 [12:52:46]MH_I2C_Read... [12:52:46]Read from MH i2c: E2 03 00 E4 56 00 90 00 AE [12:52:46]RAPDU: 90 00 [12:52:46]wFMCommunicate OK [12:52:46]wFMCommunicate request_size=4 [12:52:46]MH_SAM_APDU [12:52:46]CAPDU: 80 0D 03 02 [12:52:46]Write to MH i2c: E2 08 00 E5 56 80 0D 03 02 00 00 00 00 B6 [12:52:46]Write i2c OK [12:52:46]MH_I2C_Read... [12:52:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:52:46]Read from MH i2c: E2 [12:52:46]MH_I2C_Read... [12:52:46]Read from MH i2c: E2 0B 00 [12:52:46]MH_I2C_Read... [12:52:46]Read from MH i2c: E2 0B 00 E5 56 00 87 89 F6 86 B7 4F D6 51 90 00 70 [12:52:46]RAPDU: 87 89 F6 86 B7 4F D6 51 90 00 [12:52:46]wFMCommunicate OK [12:52:46]SAM_PROTO_SignData done [12:52:46]FM_MakeSignedData done [12:52:46]CreateOFDProtocolMessage [12:52:46]wFMCommunicate request_size=4 [12:52:46]MH_SAM_APDU [12:52:46]CAPDU: 80 11 00 00 [12:52:46]Write to MH i2c: E2 08 00 E6 56 80 11 00 00 00 00 00 00 B6 [12:52:46]Write i2c OK [12:52:46]MH_I2C_Read... [12:52:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:52:46]Read from MH i2c: E2 [12:52:46]MH_I2C_Read... [12:52:46]Read from MH i2c: E2 17 00 [12:52:46]MH_I2C_Read... [12:52:46]Read from MH i2c: E2 17 00 E6 56 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 04 [12:52:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [12:52:46]wFMCommunicate OK [12:52:46]CreateOFDProtocolMessage done [12:52:46]OFDSenderStorePacket 187729 [12:52:46]StoreOFDPacket docnum=187729 [12:52:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 AC 3D 04 01 D8 8C 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A FB 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 73 1B 0F 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 73 1B 0F 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3A 22 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B4 9A 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 73 1B 0F 00 00 00 1F 04 02 00 01 00 12 04 04 00 C1 00 00 00 F4 03 04 00 A0 4E 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 51 DD 02 00 35 04 06 00 2E 7D 08 66 E0 88 87 89 F6 86 B7 4F D6 51 [12:52:46]CheckFolder [12:52:46]dirname=/storage/ofd_packets [12:52:46]CheckFolder done [12:52:46]ProducePacketName [12:52:46]name=ofd_packets/00187729 [12:52:46]NVStorageSaveData ofd_packets/00187729 [12:52:46]File name is /storage/ofd_packets/00187729 [12:52:46]Write 298 bytes [12:52:46]NVStorageSaveData done [12:52:46]OFDSenderStorePacket done [12:52:46]KKMCreateOFDPacket done [12:52:46]NVStorageSaveData kkm_last_timestamp [12:52:46]File name is /storage/kkm_last_timestamp [12:52:46]Write 4 bytes [12:52:46]NVStorageSaveData done [12:52:46]ExternCall_PrintAddStr [12:52:46]wPrintStart [12:52:46]Write to MH i2c: 01 00 00 E7 56 3D [12:52:46]Write i2c OK [12:52:46]MH_I2C_Read... [12:52:46]Read from MH i2c: 01 [12:52:46]MH_I2C_Read... [12:52:46]Read from MH i2c: 01 07 00 [12:52:46]MH_I2C_Read... [12:52:46]Read from MH i2c: 01 07 00 E7 56 00 00 00 00 00 FF 0F 52 [12:52:46]RasterBufferAndPrint [12:52:46]line Счет N : (1)209780 [12:52:46]line ИНН: 02508201610067 [12:52:46]line Контрольно-Кассовый Чек [12:52:46]line ПРОДАЖА [12:52:46]line ТРК (МРК, ГНК) : 51 [12:52:46]line Товар: 2710194210 [12:52:46]line ДТ-К-5 [12:52:46]line 129.930 * 76.20 [12:52:46]line = 9900.67 [12:52:46]line НДС 12% НСП 1% [12:52:46]line > о реализуемом товаре [12:52:46]line ИТОГО: 9900.67 [12:52:46]line НСП 1% : 87.62 [12:52:46]line НДС 12% : 1051.40 [12:52:46]line Наличными: 0.00 [12:52:46]line Безнал.: 9900.67 [12:52:46]line Место: АЗС № 86 "Партнер Нефть" [12:52:46]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [12:52:46]line СНО: Общий режим [12:52:46]line Чек 193 21.10.2024 12:52 [12:52:46]line Смена: 460 ФФД: 1.0 [12:52:46]line ЗНМ: 0300000155 [12:52:46]line РНМ: 0000000000100030 [12:52:46]line Версия ККМ: 001 [12:52:46]line Платежная система: Бакай Банк [12:52:46]line ФМ: 0000000000965340 [12:52:46]line ФД: 187729 [12:52:46]line ФПД: 51114546749576 [12:52:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T125248&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187729&fm=51114546749576&tin=02508201610067®Number=0000000000100030&sum=990067 [12:52:46]written 0, free lines is 4095 [12:52:46]OFD Sender: Processing packet 187729 [packets to send 1062, broken 1061] [12:52:46]ProducePacketName [12:52:46]name=ofd_packets/00187729 [12:52:46]OFD Sender: To server: pG, [12:52:46]CommunicateWithHost lk.salyk.kg:30040 [12:52:46]ConnectInit lk.salyk.kg [12:52:46]Connected sock=11 [12:52:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 AC 3D 04 01 D8 8C 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A FB 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 73 1B 0F 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 73 1B 0F 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3A 22 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B4 9A 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 73 1B 0F 00 00 00 1F 04 02 00 01 00 12 04 04 00 C1 00 00 00 F4 03 04 00 A0 4E 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 51 DD 02 00 35 04 06 00 2E 7D 08 66 E0 88 87 89 F6 86 B7 4F D6 51 [12:52:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 EC 30 47 00 67 3B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 51 DD 02 00 F4 03 04 00 90 F8 15 67 B6 04 01 00 00 13 98 1F 64 EA 64 30 41 [12:52:46]CommunicateWithHost err = 0 [12:52:46]CheckOFDResponse [12:52:46]1017 (14) - 77093643461234 [12:52:46]1041 (16) - 0000000000965340 [12:52:46]1040 (4) - 187729 [12:52:46]1012 (4) - 21.10.2024 06:45 [12:52:46]1206 (1) - 0 [12:52:46]OFD Sender: Remove packet 187729 [12:52:46]ProducePacketName [12:52:46]name=ofd_packets/00187729 [12:52:46]NVStorageDeleteData [12:52:46]Write to MH i2c: 01 00 00 11 57 68 [12:52:46]Write i2c OK [12:52:46]MH_I2C_Read... [12:52:46]Read from MH i2c: 01 [12:52:46]MH_I2C_Read... [12:52:46]Read from MH i2c: 01 07 00 [12:52:46]MH_I2C_Read... [12:52:46]Read from MH i2c: 01 07 00 11 57 00 00 00 00 00 8E 0C 09 [12:52:46]RasterBufferAndPrint [12:52:46]line [12:52:46]line [12:52:46]line [12:52:46]line [12:52:46]line [12:52:46]written 0, free lines is 3218 [12:52:46]MH_Cut [12:52:46]Write to MH i2c: D1 01 00 18 57 01 41 [12:52:46]Write i2c OK [12:52:46]MH_I2C_Read... [12:52:46]Read from MH i2c: D1 [12:52:46]MH_I2C_Read... [12:52:46]Read from MH i2c: D1 01 00 [12:52:46]MH_I2C_Read... [12:52:46]Read from MH i2c: D1 01 00 18 57 00 40 [12:52:46]Write to MH i2c: 01 00 00 19 57 70 [12:52:46]Write i2c OK [12:52:46]MH_I2C_Read... [12:52:47]OFD Sender: No OFD packet to send [12:52:47]*** Cut start [12:52:47]*** Partial cut [12:52:47]*** CUTSNS_PIN = 1 [12:52:47]*** CUTSNS_PIN = 0 [12:52:48]*** Brake cut motor [12:52:48]Read from MH i2c: 01 [12:52:48]MH_I2C_Read... [12:52:48]*** Stop cut motor [12:52:48]*** Cut end [12:52:48]Read from MH i2c: 01 07 00 [12:52:48]MH_I2C_Read... [12:52:48]Read from MH i2c: 01 07 00 19 57 00 00 00 00 00 FF 0F 85 [12:52:48]process_action close_receipt done [12:52:48]requested_data is exist [12:52:48]produce_requested_data [12:52:48]requested_item fm.sn is exist - process it [12:52:48]wFMCommunicate request_size=4 [12:52:48]MH_SAM_APDU [12:52:48]CAPDU: 80 11 00 00 [12:52:48]Write to MH i2c: E2 08 00 1A 57 80 11 00 00 00 00 00 00 EB [12:52:48]Write i2c OK [12:52:48]MH_I2C_Read... [12:52:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:52:48]Read from MH i2c: E2 [12:52:48]MH_I2C_Read... [12:52:48]Read from MH i2c: E2 17 00 [12:52:48]MH_I2C_Read... [12:52:48]Read from MH i2c: E2 17 00 1A 57 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 39 [12:52:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [12:52:48]wFMCommunicate OK [12:52:48]requested_item fd.num is exist - process it [12:52:48]SAM_PROTO_GetFieldsCounters [12:52:48]wFMCommunicate request_size=4 [12:52:48]MH_SAM_APDU [12:52:48]CAPDU: 80 13 00 00 [12:52:48]Write to MH i2c: E2 08 00 1B 57 80 13 00 00 00 00 00 00 EE [12:52:48]Write i2c OK [12:52:48]MH_I2C_Read... [12:52:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:52:48]Read from MH i2c: E2 [12:52:48]MH_I2C_Read... [12:52:48]Read from MH i2c: E2 62 00 [12:52:48]MH_I2C_Read... [12:52:48]Read from MH i2c: E2 62 00 1B 57 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 51 DD 02 00 0E 04 04 00 CC 01 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 35 [12:52:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 51 DD 02 00 0E 04 04 00 CC 01 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 [12:52:48]wFMCommunicate OK [12:52:48]SAM_PROTO_GetFieldsCounters done [12:52:48]requested_item shift.num is exist - process it [12:52:48]requested_item shift.opened is exist - process it [12:52:48]req_shift_opened [12:52:48]FM_GetShiftState [12:52:48]SAM_PROTO_GetShiftState [12:52:48]wFMCommunicate request_size=4 [12:52:48]MH_SAM_APDU [12:52:48]CAPDU: 80 13 01 00 [12:52:48]Write to MH i2c: E2 08 00 1C 57 80 13 01 00 00 00 00 00 F0 [12:52:48]Write i2c OK [12:52:48]MH_I2C_Read... [12:52:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:52:48]Read from MH i2c: E2 [12:52:48]MH_I2C_Read... [12:52:48]Read from MH i2c: E2 0E 00 [12:52:48]MH_I2C_Read... [12:52:48]Read from MH i2c: E2 0E 00 1C 57 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 4F [12:52:48]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [12:52:48]wFMCommunicate OK [12:52:48]SAM_PROTO_GetShiftState done [12:52:48]FM_GetShiftState done [12:52:48]req_shift_opened done [12:52:48]requested_item shift.open_date is exist - process it [12:52:48]req_shift_open_date [12:52:48]req_shift_open_date done [12:52:48]produce_requested_data done [12:52:48]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187729,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [12:52:48]process_action_free close_receipt [12:52:48]json_value_free [12:52:48]json_value_free done [12:52:48]process_json_proto returns [12:52:48]Send response to host [12:52:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187729,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [12:52:48]free response buf [12:52:48]execute_script done [12:52:48]execute_script returns [12:52:48]free content buf [12:52:48]Sock 8.Close socket [12:52:48]Sock 8.Thread stoped [12:52:52]OFD Sender: No OFD packet to send [12:52:57]OFD Sender: No OFD packet to send [12:53:02]OFD Sender: No OFD packet to send [12:53:07]OFD Sender: No OFD packet to send [12:53:12]OFD Sender: No OFD packet to send [12:53:17]OFD Sender: No OFD packet to send [12:53:22]OFD Sender: No OFD packet to send [12:53:27]OFD Sender: No OFD packet to send [12:53:32]OFD Sender: No OFD packet to send [12:53:37]OFD Sender: No OFD packet to send [12:53:42]OFD Sender: No OFD packet to send [12:53:47]OFD Sender: No OFD packet to send [12:53:52]OFD Sender: No OFD packet to send [12:53:57]OFD Sender: No OFD packet to send [12:54:02]OFD Sender: No OFD packet to send [12:54:07]OFD Sender: No OFD packet to send [12:54:12]OFD Sender: No OFD packet to send [12:54:17]OFD Sender: No OFD packet to send [12:54:22]OFD Sender: No OFD packet to send [12:54:27]OFD Sender: No OFD packet to send [12:54:32]OFD Sender: No OFD packet to send [12:54:37]OFD Sender: No OFD packet to send [12:54:42]OFD Sender: No OFD packet to send [12:54:47]OFD Sender: No OFD packet to send [12:54:52]OFD Sender: No OFD packet to send [12:54:57]OFD Sender: No OFD packet to send [12:55:02]OFD Sender: No OFD packet to send [12:55:07]OFD Sender: No OFD packet to send [12:55:12]OFD Sender: No OFD packet to send [12:55:17]OFD Sender: No OFD packet to send [12:55:22]OFD Sender: No OFD packet to send [12:55:26]accept exits with 9 [12:55:26]New connection [12:55:26]New thread 3067157860 created [12:55:26]Thread 3067014500 joined [12:55:26]Waiting for new connection... [12:55:26] Sock 9.Parse request [12:55:26]Sock 9.Check first char [12:55:26]Sock 9.First char is OK [12:55:26]request: POST /json_proto HTTP/1.0 [12:55:26]Method: POST [12:55:26]URL: /json_proto [12:55:26]Method is POST - this is cgi request [12:55:26]url: /json_proto [12:55:26]query_string will be loaded in cgi processing [12:55:26]execute_cgi json_proto POST (null) [12:55:26]execute_cgi path=json_proto method=POST [12:55:26]POST find Content-Length [12:55:26]Host: 172.17.42.131:8080 [12:55:26]Content-Length: 677 [12:55:26]Content-Type: application/json [12:55:26] [12:55:26]POST finish read [12:55:26]Found Content-Length = 677 [12:55:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209783", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 9.270, "sum" : 620.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 620.00, "total" : 620.00, "payments": [ { "type": 0, "sum" : 620.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:55:26]execute_script... [12:55: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)209783", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 9.270, "sum" : 620.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 620.00, "total" : 620.00, "payments": [ { "type": 0, "sum" : 620.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:55:26]POST & json_proto [12:55:26]process_json_proto [12:55:26]json parsed OK: [12:55:26]protocol is kg_v1.0 [12:55:26]action value=close_receipt [12:55:26]process_action close_receipt [12:55:26]cmd_close_receipt [12:55:26]MH_GetDate [12:55:26]Write to MH i2c: F0 00 00 1D 57 63 [12:55:26]Write i2c OK [12:55:26]MH_I2C_Read... [12:55:26]Read from MH i2c: F0 [12:55:26]MH_I2C_Read... [12:55:26]Read from MH i2c: F0 09 00 [12:55:26]MH_I2C_Read... [12:55:26]Read from MH i2c: F0 09 00 1D 57 00 42 4F 16 67 A0 18 CA 66 62 [12:55:26]GetLastDocTimeStamp 1729515168 [12:55:26]current date 1729515330 [12:55:26]FM_GetShiftState [12:55:26]SAM_PROTO_GetShiftState [12:55:26]wFMCommunicate request_size=4 [12:55:26]MH_SAM_APDU [12:55:26]CAPDU: 80 13 01 00 [12:55:26]Write to MH i2c: E2 08 00 1E 57 80 13 01 00 00 00 00 00 F2 [12:55:26]Write i2c OK [12:55:26]MH_I2C_Read... [12:55:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:55:26]Read from MH i2c: E2 [12:55:26]MH_I2C_Read... [12:55:26]Read from MH i2c: E2 0E 00 [12:55:26]MH_I2C_Read... [12:55:26]Read from MH i2c: E2 0E 00 1E 57 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 51 [12:55:26]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [12:55:26]wFMCommunicate OK [12:55:26]SAM_PROTO_GetShiftState done [12:55:26]FM_GetShiftState done [12:55:26]opened in 1729469754 [12:55:26]opened+sec_in_day 1729556154 [12:55:26]quantity*price = 62016 [12:55:26]sum+1 = 62017 [12:55:26]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 620.00 Внесено: 620.00 СДАЧА: 0.00 НСП 1% : 5.49 НДС 12% : 65.86 Наличными: 620.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 194 21.10.2024 12:55 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 187730 ФПД: 261856850561500 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T125530&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187730&fm=261856850561500&tin=02508201610067®Number=0000000000100030&sum=62000 [12:55:27]StoreToDocumentArchive [12:55:27]shift 460 fd 187730 [12:55:27]save to /storage/0460/doc_00187730 [12:55:27]save last doc name /storage/0460/doc_00187730 to /storage/kkm_last_doc_name [12:55:27]save OK [12:55:27]Clear old archive folders... [12:55:27]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:55:27]tlvbuf is 01256810 [12:55:27]SAM_PROTO_ClearQueue [12:55:27]wFMCommunicate request_size=4 [12:55:27]MH_SAM_APDU [12:55:27]CAPDU: 80 09 00 00 [12:55:27]Write to MH i2c: E2 08 00 2B 57 80 09 00 00 00 00 00 00 F4 [12:55:27]Write i2c OK [12:55:27]MH_I2C_Read... [12:55:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:55:27]Read from MH i2c: E2 [12:55:27]MH_I2C_Read... [12:55:27]Read from MH i2c: E2 03 00 [12:55:27]MH_I2C_Read... [12:55:27]Read from MH i2c: E2 03 00 2B 57 00 90 00 F6 [12:55:27]RAPDU: 90 00 [12:55:27]wFMCommunicate OK [12:55:27]SAM_PROTO_ClearQueue done [12:55:27]KKMCreateOFDPacket [12:55:27]OFDProtocolAddRootSTLVToBuf [12:55:27]FM_MakeSignedData [12:55:27]FM_MakeSignedData [12:55:27]SAM_PROTO_SignData [12:55:27]wFMCommunicate request_size=4 [12:55:27]MH_SAM_APDU [12:55:27]CAPDU: 80 0D 01 02 [12:55:27]Write to MH i2c: E2 08 00 2C 57 80 0D 01 02 00 00 00 00 FC [12:55:27]Write i2c OK [12:55:27]MH_I2C_Read... [12:55:27]OFD Sender: No OFD packet to send [12:55:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:55:27]Read from MH i2c: E2 [12:55:27]MH_I2C_Read... [12:55:27]Read from MH i2c: E2 03 00 [12:55:27]MH_I2C_Read... [12:55:27]Read from MH i2c: E2 03 00 2C 57 00 90 00 F7 [12:55:27]RAPDU: 90 00 [12:55:27]wFMCommunicate OK [12:55:27]wFMCommunicate request_size=255 [12:55:27]MH_SAM_APDU [12:55: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 33 FF 03 08 00 03 36 24 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 40 F2 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 F2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 25 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BA 19 00 00 00 00 07 04 06 00 30 F2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C2 00 00 00 F4 03 04 00 42 4F 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 52 DD 02 00 35 04 06 00 EE [12:55:27]Write to MH i2c: E2 02 01 2D 57 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 36 24 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 40 F2 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 F2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 25 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BA 19 00 00 00 00 07 04 06 00 30 F2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C2 00 00 00 F4 03 04 00 42 4F 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 52 DD 02 00 35 04 06 00 EE 00 00 AC [12:55:27]Write i2c OK [12:55:27]MH_I2C_Read... [12:55:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:55:28]Read from MH i2c: E2 [12:55:28]MH_I2C_Read... [12:55:28]Read from MH i2c: E2 03 00 [12:55:28]MH_I2C_Read... [12:55:28]Read from MH i2c: E2 03 00 2D 57 00 90 00 F8 [12:55:28]RAPDU: 90 00 [12:55:28]wFMCommunicate OK [12:55:28]wFMCommunicate request_size=10 [12:55:28]MH_SAM_APDU [12:55:28]CAPDU: 80 0D 02 02 05 28 4C 8F 49 DC [12:55:28]Write to MH i2c: E2 0D 00 2E 57 80 0D 02 02 05 00 28 4C 8F 49 DC 00 00 31 [12:55:28]Write i2c OK [12:55:28]MH_I2C_Read... [12:55:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:55:28]Read from MH i2c: E2 [12:55:28]MH_I2C_Read... [12:55:28]Read from MH i2c: E2 03 00 [12:55:28]MH_I2C_Read... [12:55:28]Read from MH i2c: E2 03 00 2E 57 00 90 00 F9 [12:55:28]RAPDU: 90 00 [12:55:28]wFMCommunicate OK [12:55:28]wFMCommunicate request_size=4 [12:55:28]MH_SAM_APDU [12:55:28]CAPDU: 80 0D 03 02 [12:55:28]Write to MH i2c: E2 08 00 2F 57 80 0D 03 02 00 00 00 00 01 [12:55:28]Write i2c OK [12:55:28]MH_I2C_Read... [12:55:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:55:28]Read from MH i2c: E2 [12:55:28]MH_I2C_Read... [12:55:28]Read from MH i2c: E2 0B 00 [12:55:28]MH_I2C_Read... [12:55:28]Read from MH i2c: E2 0B 00 2F 57 00 C1 E8 7F D1 3A EB 68 EA 90 00 72 [12:55:28]RAPDU: C1 E8 7F D1 3A EB 68 EA 90 00 [12:55:28]wFMCommunicate OK [12:55:28]SAM_PROTO_SignData done [12:55:28]FM_MakeSignedData done [12:55:28]CreateOFDProtocolMessage [12:55:28]wFMCommunicate request_size=4 [12:55:28]MH_SAM_APDU [12:55:28]CAPDU: 80 11 00 00 [12:55:28]Write to MH i2c: E2 08 00 30 57 80 11 00 00 00 00 00 00 01 [12:55:28]Write i2c OK [12:55:28]MH_I2C_Read... [12:55:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:55:28]Read from MH i2c: E2 [12:55:28]MH_I2C_Read... [12:55:28]Read from MH i2c: E2 17 00 [12:55:28]MH_I2C_Read... [12:55:28]Read from MH i2c: E2 17 00 30 57 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 4F [12:55:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [12:55:28]wFMCommunicate OK [12:55:28]CreateOFDProtocolMessage done [12:55:28]OFDSenderStorePacket 187730 [12:55:28]StoreOFDPacket docnum=187730 [12:55:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 40 D4 07 01 CB 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 33 FF 03 08 00 03 36 24 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 40 F2 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 F2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 25 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BA 19 00 00 00 00 07 04 06 00 30 F2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C2 00 00 00 F4 03 04 00 42 4F 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 52 DD 02 00 35 04 06 00 EE 28 4C 8F 49 DC C1 E8 7F D1 3A EB 68 EA [12:55:28]CheckFolder [12:55:28]dirname=/storage/ofd_packets [12:55:28]CheckFolder done [12:55:28]ProducePacketName [12:55:28]name=ofd_packets/00187730 [12:55:28]NVStorageSaveData ofd_packets/00187730 [12:55:28]File name is /storage/ofd_packets/00187730 [12:55:28]Write 301 bytes [12:55:28]NVStorageSaveData done [12:55:28]OFDSenderStorePacket done [12:55:28]KKMCreateOFDPacket done [12:55:28]NVStorageSaveData kkm_last_timestamp [12:55:28]File name is /storage/kkm_last_timestamp [12:55:28]Write 4 bytes [12:55:28]NVStorageSaveData done [12:55:28]ExternCall_PrintAddStr [12:55:28]wPrintStart [12:55:28]Write to MH i2c: 01 00 00 31 57 88 [12:55:28]Write i2c OK [12:55:28]MH_I2C_Read... [12:55:28]Read from MH i2c: 01 [12:55:28]MH_I2C_Read... [12:55:28]Read from MH i2c: 01 07 00 [12:55:28]MH_I2C_Read... [12:55:28]Read from MH i2c: 01 07 00 31 57 00 00 00 00 00 FF 0F 9D [12:55:28]RasterBufferAndPrint [12:55:28]line Счет N : (1)209783 [12:55:28]line ИНН: 02508201610067 [12:55:28]line Контрольно-Кассовый Чек [12:55:28]line ПРОДАЖА [12:55:28]line ТРК (МРК, ГНК) : 32 [12:55:28]line Товар: 2710124130 [12:55:28]line Аи-92-К-3 [12:55:28]line 9.270 * 66.90 [12:55:28]line = 620.16 [12:55:28]line НДС 12% НСП 1% [12:55:28]line > о реализуемом товаре [12:55:28]line ОКРУГЛЕНИЕ: -0.16 [12:55:28]line ИТОГО: 620.00 [12:55:28]line Внесено: 620.00 [12:55:28]line СДАЧА: 0.00 [12:55:28]line НСП 1% : 5.49 [12:55:28]line НДС 12% : 65.86 [12:55:28]line Наличными: 620.00 [12:55:28]line Безнал.: 0.00 [12:55:28]line Место: АЗС № 86 "Партнер Нефть" [12:55:28]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [12:55:28]line СНО: Общий режим [12:55:28]line Чек 194 21.10.2024 12:55 [12:55:28]line Смена: 460 ФФД: 1.0 [12:55:28]line ЗНМ: 0300000155 [12:55:28]line РНМ: 0000000000100030 [12:55:28]line Версия ККМ: 001 [12:55:28]line ФМ: 0000000000965340 [12:55:28]line ФД: 187730 [12:55:28]line ФПД: 261856850561500 [12:55:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T125530&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187730&fm=261856850561500&tin=02508201610067®Number=0000000000100030&sum=62000 [12:55:28]written 0, free lines is 4095 [12:55:28]OFD Sender: Processing packet 187730 [packets to send 1062, broken 1061] [12:55:28]ProducePacketName [12:55:28]name=ofd_packets/00187730 [12:55:28]OFD Sender: To server: pG, [12:55:28]CommunicateWithHost lk.salyk.kg:30040 [12:55:28]ConnectInit lk.salyk.kg [12:55:28]Connected sock=10 [12:55:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 40 D4 07 01 CB 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 33 FF 03 08 00 03 36 24 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 40 F2 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 F2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 25 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BA 19 00 00 00 00 07 04 06 00 30 F2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C2 00 00 00 F4 03 04 00 42 4F 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 52 DD 02 00 35 04 06 00 EE 28 4C 8F 49 DC C1 E8 7F D1 3A EB 68 EA [12:55:28]Write to MH i2c: 01 00 00 5C 57 B3 [12:55:28]Write i2c OK [12:55:28]MH_I2C_Read... [12:55:28]Read from MH i2c: 01 [12:55:28]MH_I2C_Read... [12:55:28]Read from MH i2c: 01 07 00 [12:55:28]MH_I2C_Read... [12:55:28]Read from MH i2c: 01 07 00 5C 57 00 00 00 00 00 71 0C 37 [12:55:28]RasterBufferAndPrint [12:55:28]line [12:55:28]line [12:55:28]line [12:55:28]line [12:55:28]line [12:55:28]written 0, free lines is 3187 [12:55:28]MH_Cut [12:55:28]Write to MH i2c: D1 01 00 63 57 01 8C [12:55:28]Write i2c OK [12:55:28]MH_I2C_Read... [12:55:28]Read from MH i2c: D1 [12:55:28]MH_I2C_Read... [12:55:28]Read from MH i2c: D1 01 00 [12:55:28]MH_I2C_Read... [12:55:28]Read from MH i2c: D1 01 00 63 57 00 8B [12:55:28]Write to MH i2c: 01 00 00 64 57 BB [12:55:28]Write i2c OK [12:55:28]MH_I2C_Read... [12:55:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 7B 3B 47 00 32 86 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 52 DD 02 00 F4 03 04 00 32 F9 15 67 B6 04 01 00 00 46 7D E0 9C B5 50 B8 F2 [12:55:28]CommunicateWithHost err = 0 [12:55:28]CheckOFDResponse [12:55:28]1017 (14) - 77093643461234 [12:55:28]1041 (16) - 0000000000965340 [12:55:28]1040 (4) - 187730 [12:55:28]1012 (4) - 21.10.2024 06:48 [12:55:28]1206 (1) - 0 [12:55:28]OFD Sender: Remove packet 187730 [12:55:28]ProducePacketName [12:55:28]name=ofd_packets/00187730 [12:55:28]NVStorageDeleteData [12:55:29]OFD Sender: No OFD packet to send [12:55:29]*** Cut start [12:55:29]*** Partial cut [12:55:29]*** CUTSNS_PIN = 1 [12:55:30]*** CUTSNS_PIN = 0 [12:55:30]*** Brake cut motor [12:55:30]Read from MH i2c: 01 [12:55:30]MH_I2C_Read... [12:55:30]*** Stop cut motor [12:55:30]*** Cut end [12:55:30]Read from MH i2c: 01 07 00 [12:55:30]MH_I2C_Read... [12:55:30]Read from MH i2c: 01 07 00 64 57 00 00 00 00 00 FF 0F D0 [12:55:30]process_action close_receipt done [12:55:30]requested_data is exist [12:55:30]produce_requested_data [12:55:30]requested_item fm.sn is exist - process it [12:55:30]wFMCommunicate request_size=4 [12:55:30]MH_SAM_APDU [12:55:30]CAPDU: 80 11 00 00 [12:55:30]Write to MH i2c: E2 08 00 65 57 80 11 00 00 00 00 00 00 36 [12:55:30]Write i2c OK [12:55:30]MH_I2C_Read... [12:55:30]Read from MH i2c: E2 [12:55:30]MH_I2C_Read... [12:55:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:55:30]Read from MH i2c: E2 17 00 [12:55:30]MH_I2C_Read... [12:55:30]Read from MH i2c: E2 17 00 65 57 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 84 [12:55:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [12:55:30]wFMCommunicate OK [12:55:30]requested_item fd.num is exist - process it [12:55:30]SAM_PROTO_GetFieldsCounters [12:55:30]wFMCommunicate request_size=4 [12:55:30]MH_SAM_APDU [12:55:30]CAPDU: 80 13 00 00 [12:55:30]Write to MH i2c: E2 08 00 66 57 80 13 00 00 00 00 00 00 39 [12:55:30]Write i2c OK [12:55:30]MH_I2C_Read... [12:55:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:55:30]Read from MH i2c: E2 [12:55:30]MH_I2C_Read... [12:55:30]Read from MH i2c: E2 62 00 [12:55:30]MH_I2C_Read... [12:55:30]Read from MH i2c: E2 62 00 66 57 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 52 DD 02 00 0E 04 04 00 CC 01 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 84 [12:55:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 52 DD 02 00 0E 04 04 00 CC 01 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 [12:55:30]wFMCommunicate OK [12:55:30]SAM_PROTO_GetFieldsCounters done [12:55:30]requested_item shift.num is exist - process it [12:55:30]requested_item shift.opened is exist - process it [12:55:30]req_shift_opened [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 67 57 80 13 01 00 00 00 00 00 3B [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 67 57 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 9A [12:55:30]RAPDU: 09 00 01 3A 9D 15 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]req_shift_opened done [12:55:30]requested_item shift.open_date is exist - process it [12:55:30]req_shift_open_date [12:55:30]req_shift_open_date done [12:55:30]produce_requested_data done [12:55:30]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187730,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [12:55:30]process_action_free close_receipt [12:55:30]json_value_free [12:55:30]json_value_free done [12:55:30]process_json_proto returns [12:55:30]Send response to host [12:55:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187730,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [12:55:30]free response buf [12:55:30]execute_script done [12:55:30]execute_script returns [12:55:30]free content buf [12:55:30]Sock 9.Close socket [12:55:30]Sock 9.Thread stoped [12:55:34]OFD Sender: No OFD packet to send [12:55:39]OFD Sender: No OFD packet to send [12:55:44]OFD Sender: No OFD packet to send [12:55:49]OFD Sender: No OFD packet to send [12:55:54]OFD Sender: No OFD packet to send [12:55:59]OFD Sender: No OFD packet to send [12:56:04]OFD Sender: No OFD packet to send [12:56:09]OFD Sender: No OFD packet to send [12:56:14]OFD Sender: No OFD packet to send [12:56:19]OFD Sender: No OFD packet to send [12:56:24]OFD Sender: No OFD packet to send [12:56:29]OFD Sender: No OFD packet to send [12:56:34]OFD Sender: No OFD packet to send [12:56:39]OFD Sender: No OFD packet to send [12:56:44]OFD Sender: No OFD packet to send [12:56:49]OFD Sender: No OFD packet to send [12:56:54]OFD Sender: No OFD packet to send [12:56:59]OFD Sender: No OFD packet to send [12:57:04]OFD Sender: No OFD packet to send [12:57:09]OFD Sender: No OFD packet to send [12:57:14]OFD Sender: No OFD packet to send [12:57:19]OFD Sender: No OFD packet to send [12:57:24]OFD Sender: No OFD packet to send [12:57:29]OFD Sender: No OFD packet to send [12:57:34]OFD Sender: No OFD packet to send [12:57:40]OFD Sender: No OFD packet to send [12:57:45]OFD Sender: No OFD packet to send [12:57:50]OFD Sender: No OFD packet to send [12:57:55]OFD Sender: No OFD packet to send [12:58:00]OFD Sender: No OFD packet to send [12:58:05]OFD Sender: No OFD packet to send [12:58:10]OFD Sender: No OFD packet to send [12:58:15]OFD Sender: No OFD packet to send [12:58:20]OFD Sender: No OFD packet to send [12:58:25]OFD Sender: No OFD packet to send [12:58:30]OFD Sender: No OFD packet to send [12:58:35]OFD Sender: No OFD packet to send [12:58:40]OFD Sender: No OFD packet to send [12:58:45]OFD Sender: No OFD packet to send [12:58:50]OFD Sender: No OFD packet to send [12:58:55]OFD Sender: No OFD packet to send [12:59:00]OFD Sender: No OFD packet to send [12:59:05]OFD Sender: No OFD packet to send [12:59:10]OFD Sender: No OFD packet to send [12:59:15]OFD Sender: No OFD packet to send [12:59:20]OFD Sender: No OFD packet to send [12:59:25]OFD Sender: No OFD packet to send [12:59:30]OFD Sender: No OFD packet to send [12:59:35]OFD Sender: No OFD packet to send [12:59:40]OFD Sender: No OFD packet to send [12:59:45]OFD Sender: No OFD packet to send [12:59:50]OFD Sender: No OFD packet to send [12:59:55]OFD Sender: No OFD packet to send [13:00:00]OFD Sender: No OFD packet to send [13:00:05]OFD Sender: No OFD packet to send [13:00:10]OFD Sender: No OFD packet to send [13:00:15]OFD Sender: No OFD packet to send [13:00:20]OFD Sender: No OFD packet to send [13:00:25]OFD Sender: No OFD packet to send [13:00:30]OFD Sender: No OFD packet to send [13:00:35]OFD Sender: No OFD packet to send [13:00:40]OFD Sender: No OFD packet to send [13:00:45]OFD Sender: No OFD packet to send [13:00:50]OFD Sender: No OFD packet to send [13:00:55]OFD Sender: No OFD packet to send [13:01:00]OFD Sender: No OFD packet to send [13:01:02]accept exits with 8 [13:01:02]New connection [13:01:02]New thread 3067014500 created [13:01:02]Thread 3067157860 joined [13:01:02]Waiting for new connection... [13:01:02] Sock 8.Parse request [13:01:02]Sock 8.Check first char [13:01:02]Sock 8.First char is OK [13:01:02]request: POST /json_proto HTTP/1.0 [13:01:02]Method: POST [13:01:02]URL: /json_proto [13:01:02]Method is POST - this is cgi request [13:01:02]url: /json_proto [13:01:02]query_string will be loaded in cgi processing [13:01:02]execute_cgi json_proto POST (null) [13:01:02]execute_cgi path=json_proto method=POST [13:01:02]POST find Content-Length [13:01:02]Host: 172.17.42.131:8080 [13:01:02]Content-Length: 817 [13:01:02]Content-Type: application/json [13:01:02] [13:01:02]POST finish read [13:01:02]Found Content-Length = 817 [13:01:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209782", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 106.300, "sum" : 8100.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: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 8100.06 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:01:02]execute_script... [13:01: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)209782", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 106.300, "sum" : 8100.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: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 8100.06 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:01:02]POST & json_proto [13:01:02]process_json_proto [13:01:02]json parsed OK: [13:01:02]protocol is kg_v1.0 [13:01:02]action value=close_receipt [13:01:02]process_action close_receipt [13:01:02]cmd_close_receipt [13:01:02]MH_GetDate [13:01:02]Write to MH i2c: F0 00 00 68 57 AE [13:01:02]Write i2c OK [13:01:02]MH_I2C_Read... [13:01:02]Read from MH i2c: F0 [13:01:02]MH_I2C_Read... [13:01:02]Read from MH i2c: F0 09 00 [13:01:02]MH_I2C_Read... [13:01:02]Read from MH i2c: F0 09 00 68 57 00 92 50 16 67 A0 18 CA 66 FE [13:01:02]GetLastDocTimeStamp 1729515330 [13:01:02]current date 1729515666 [13:01:02]FM_GetShiftState [13:01:02]SAM_PROTO_GetShiftState [13:01:02]wFMCommunicate request_size=4 [13:01:02]MH_SAM_APDU [13:01:02]CAPDU: 80 13 01 00 [13:01:02]Write to MH i2c: E2 08 00 69 57 80 13 01 00 00 00 00 00 3D [13:01:02]Write i2c OK [13:01:02]MH_I2C_Read... [13:01:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:01:02]Read from MH i2c: E2 [13:01:02]MH_I2C_Read... [13:01:02]Read from MH i2c: E2 0E 00 [13:01:02]MH_I2C_Read... [13:01:02]Read from MH i2c: E2 0E 00 69 57 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 9C [13:01:02]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [13:01:02]wFMCommunicate OK [13:01:02]SAM_PROTO_GetShiftState done [13:01:02]FM_GetShiftState done [13:01:02]opened in 1729469754 [13:01:02]opened+sec_in_day 1729556154 [13:01:02]quantity*price = 810006 [13:01:02]sum+1 = 810007 [13:01:02]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 8100.06 НСП 1% : 71.68 НДС 12% : 860.18 Наличными: 0.00 Безнал.: 8100.06 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 195 21.10.2024 13:01 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000965340 ФД: 187731 ФПД: 55639916182471 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T130106&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187731&fm=55639916182471&tin=02508201610067®Number=0000000000100030&sum=810006 [13:01:03]StoreToDocumentArchive [13:01:03]shift 460 fd 187731 [13:01:03]save to /storage/0460/doc_00187731 [13:01:03]save last doc name /storage/0460/doc_00187731 to /storage/kkm_last_doc_name [13:01:03]save OK [13:01:03]Clear old archive folders... [13:01:03]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:01:03]tlvbuf is 01094280 [13:01:03]SAM_PROTO_ClearQueue [13:01:03]wFMCommunicate request_size=4 [13:01:03]MH_SAM_APDU [13:01:03]CAPDU: 80 09 00 00 [13:01:03]Write to MH i2c: E2 08 00 76 57 80 09 00 00 00 00 00 00 3F [13:01:03]Write i2c OK [13:01:03]MH_I2C_Read... [13:01:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:01:03]Read from MH i2c: E2 [13:01:03]MH_I2C_Read... [13:01:03]Read from MH i2c: E2 03 00 [13:01:03]MH_I2C_Read... [13:01:03]Read from MH i2c: E2 03 00 76 57 00 90 00 41 [13:01:03]RAPDU: 90 00 [13:01:03]wFMCommunicate OK [13:01:03]SAM_PROTO_ClearQueue done [13:01:03]KKMCreateOFDPacket [13:01:03]OFDProtocolAddRootSTLVToBuf [13:01:03]FM_MakeSignedData [13:01:03]FM_MakeSignedData [13:01:03]SAM_PROTO_SignData [13:01:03]wFMCommunicate request_size=4 [13:01:03]MH_SAM_APDU [13:01:03]CAPDU: 80 0D 01 02 [13:01:03]Write to MH i2c: E2 08 00 77 57 80 0D 01 02 00 00 00 00 47 [13:01:03]Write i2c OK [13:01:03]MH_I2C_Read... [13:01:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:01:03]Read from MH i2c: E2 [13:01:03]MH_I2C_Read... [13:01:03]Read from MH i2c: E2 03 00 [13:01:03]MH_I2C_Read... [13:01:03]Read from MH i2c: E2 03 00 77 57 00 90 00 42 [13:01:03]RAPDU: 90 00 [13:01:03]wFMCommunicate OK [13:01:03]wFMCommunicate request_size=255 [13:01:03]MH_SAM_APDU [13:01:03]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 3C 9F 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 5C 0C 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 16 5C 0C 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 1C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 02 50 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 16 5C 0C 00 00 00 1F 04 02 00 01 00 12 04 04 00 C3 00 00 00 F4 03 04 00 92 50 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 53 DD 02 00 35 04 06 00 32 9A AD 70 [13:01:03]Write to MH i2c: E2 02 01 78 57 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 3C 9F 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 5C 0C 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 16 5C 0C 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 1C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 02 50 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 16 5C 0C 00 00 00 1F 04 02 00 01 00 12 04 04 00 C3 00 00 00 F4 03 04 00 92 50 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 53 DD 02 00 35 04 06 00 32 9A AD 70 00 00 3A [13:01:03]Write i2c OK [13:01:03]MH_I2C_Read... [13:01:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:01:03]Read from MH i2c: E2 [13:01:03]MH_I2C_Read... [13:01:03]Read from MH i2c: E2 03 00 [13:01:03]MH_I2C_Read... [13:01:03]Read from MH i2c: E2 03 00 78 57 00 90 00 43 [13:01:03]RAPDU: 90 00 [13:01:03]wFMCommunicate OK [13:01:03]wFMCommunicate request_size=7 [13:01:03]MH_SAM_APDU [13:01:03]CAPDU: 80 0D 02 02 02 7B C7 [13:01:03]Write to MH i2c: E2 0A 00 79 57 80 0D 02 02 02 00 7B C7 00 00 90 [13:01:03]Write i2c OK [13:01:03]MH_I2C_Read... [13:01:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:01:03]Read from MH i2c: E2 [13:01:03]MH_I2C_Read... [13:01:03]Read from MH i2c: E2 03 00 [13:01:03]MH_I2C_Read... [13:01:03]Read from MH i2c: E2 03 00 79 57 00 90 00 44 [13:01:03]RAPDU: 90 00 [13:01:03]wFMCommunicate OK [13:01:03]wFMCommunicate request_size=4 [13:01:03]MH_SAM_APDU [13:01:03]CAPDU: 80 0D 03 02 [13:01:03]Write to MH i2c: E2 08 00 7A 57 80 0D 03 02 00 00 00 00 4C [13:01:03]Write i2c OK [13:01:03]MH_I2C_Read... [13:01:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:01:03]Read from MH i2c: E2 [13:01:03]MH_I2C_Read... [13:01:03]Read from MH i2c: E2 0B 00 [13:01:03]MH_I2C_Read... [13:01:04]Read from MH i2c: E2 0B 00 7A 57 00 F8 CD 4B 18 95 EA 39 E5 90 00 12 [13:01:04]RAPDU: F8 CD 4B 18 95 EA 39 E5 90 00 [13:01:04]wFMCommunicate OK [13:01:04]SAM_PROTO_SignData done [13:01:04]FM_MakeSignedData done [13:01:04]CreateOFDProtocolMessage [13:01:04]wFMCommunicate request_size=4 [13:01:04]MH_SAM_APDU [13:01:04]CAPDU: 80 11 00 00 [13:01:04]Write to MH i2c: E2 08 00 7B 57 80 11 00 00 00 00 00 00 4C [13:01:04]Write i2c OK [13:01:04]MH_I2C_Read... [13:01:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:01:04]Read from MH i2c: E2 [13:01:04]MH_I2C_Read... [13:01:04]Read from MH i2c: E2 17 00 [13:01:04]MH_I2C_Read... [13:01:04]Read from MH i2c: E2 17 00 7B 57 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 9A [13:01:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [13:01:04]wFMCommunicate OK [13:01:04]CreateOFDProtocolMessage done [13:01:04]OFDSenderStorePacket 187731 [13:01:04]StoreOFDPacket docnum=187731 [13:01:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 06 1A 04 01 0C 0B 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 3C 9F 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 5C 0C 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 16 5C 0C 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 1C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 02 50 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 16 5C 0C 00 00 00 1F 04 02 00 01 00 12 04 04 00 C3 00 00 00 F4 03 04 00 92 50 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 53 DD 02 00 35 04 06 00 32 9A AD 70 7B C7 F8 CD 4B 18 95 EA 39 E5 [13:01:04]CheckFolder [13:01:04]dirname=/storage/ofd_packets [13:01:04]CheckFolder done [13:01:04]ProducePacketName [13:01:04]name=ofd_packets/00187731 [13:01:04]NVStorageSaveData ofd_packets/00187731 [13:01:04]File name is /storage/ofd_packets/00187731 [13:01:04]Write 298 bytes [13:01:04]NVStorageSaveData done [13:01:04]OFDSenderStorePacket done [13:01:04]KKMCreateOFDPacket done [13:01:04]NVStorageSaveData kkm_last_timestamp [13:01:04]File name is /storage/kkm_last_timestamp [13:01:04]Write 4 bytes [13:01:04]NVStorageSaveData done [13:01:04]ExternCall_PrintAddStr [13:01:04]wPrintStart [13:01:04]Write to MH i2c: 01 00 00 7C 57 D3 [13:01:04]Write i2c OK [13:01:04]MH_I2C_Read... [13:01:04]Read from MH i2c: 01 [13:01:04]MH_I2C_Read... [13:01:04]Read from MH i2c: 01 07 00 [13:01:04]MH_I2C_Read... [13:01:04]Read from MH i2c: 01 07 00 7C 57 00 00 00 00 00 FF 0F E8 [13:01:04]RasterBufferAndPrint [13:01:04]line Счет N : (1)209782 [13:01:04]line ИНН: 02508201610067 [13:01:04]line Контрольно-Кассовый Чек [13:01:04]line ПРОДАЖА [13:01:04]line ТРК (МРК, ГНК) : 51 [13:01:04]line Товар: 2710194210 [13:01:04]line ДТ-К-5 [13:01:04]line 106.300 * 76.20 [13:01:04]line = 8100.06 [13:01:04]line НДС 12% НСП 1% [13:01:04]line > о реализуемом товаре [13:01:04]line ИТОГО: 8100.06 [13:01:04]line НСП 1% : 71.68 [13:01:04]line НДС 12% : 860.18 [13:01:04]line Наличными: 0.00 [13:01:04]line Безнал.: 8100.06 [13:01:04]line Место: АЗС № 86 "Партнер Нефть" [13:01:04]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [13:01:04]line СНО: Общий режим [13:01:04]line Чек 195 21.10.2024 13:01 [13:01:04]line Смена: 460 ФФД: 1.0 [13:01:04]line ЗНМ: 0300000155 [13:01:04]line РНМ: 0000000000100030 [13:01:04]line Версия ККМ: 001 [13:01:04]line Платежная система: Бакай Банк [13:01:04]line ФМ: 0000000000965340 [13:01:04]line ФД: 187731 [13:01:04]line ФПД: 55639916182471 [13:01:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T130106&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187731&fm=55639916182471&tin=02508201610067®Number=0000000000100030&sum=810006 [13:01:04]written 0, free lines is 4095 [13:01:04]OFD Sender: Processing packet 187731 [packets to send 1062, broken 1061] [13:01:04]ProducePacketName [13:01:04]name=ofd_packets/00187731 [13:01:04]OFD Sender: To server: pG, [13:01:04]CommunicateWithHost lk.salyk.kg:30040 [13:01:04]ConnectInit lk.salyk.kg [13:01:04]Connected sock=10 [13:01:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 06 1A 04 01 0C 0B 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 3C 9F 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 5C 0C 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 16 5C 0C 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 1C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 02 50 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 16 5C 0C 00 00 00 1F 04 02 00 01 00 12 04 04 00 C3 00 00 00 F4 03 04 00 92 50 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 53 DD 02 00 35 04 06 00 32 9A AD 70 7B C7 F8 CD 4B 18 95 EA 39 E5 [13:01:04]Write to MH i2c: 01 00 00 A6 57 FD [13:01:04]Write i2c OK [13:01:04]MH_I2C_Read... [13:01:04]Read from MH i2c: 01 [13:01:04]MH_I2C_Read... [13:01:04]Read from MH i2c: 01 07 00 [13:01:04]MH_I2C_Read... [13:01:04]Read from MH i2c: 01 07 00 A6 57 00 00 00 00 00 81 0C 91 [13:01:04]RasterBufferAndPrint [13:01:04]line [13:01:04]line [13:01:04]line [13:01:04]line [13:01:04]line [13:01:04]written 0, free lines is 3204 [13:01:04]MH_Cut [13:01:04]Write to MH i2c: D1 01 00 AD 57 01 D6 [13:01:04]Write i2c OK [13:01:04]MH_I2C_Read... [13:01:04]Read from MH i2c: D1 [13:01:04]MH_I2C_Read... [13:01:04]Read from MH i2c: D1 01 00 [13:01:04]MH_I2C_Read... [13:01:04]Read from MH i2c: D1 01 00 AD 57 00 D5 [13:01:04]Write to MH i2c: 01 00 00 AE 57 05 [13:01:04]Write i2c OK [13:01:04]MH_I2C_Read... [13:01:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 5F 2C 47 00 CD 0C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 53 DD 02 00 F4 03 04 00 82 FA 15 67 B6 04 01 00 00 7C 16 17 13 DF F1 4F DF [13:01:04]CommunicateWithHost err = 0 [13:01:04]CheckOFDResponse [13:01:04]1017 (14) - 77093643461234 [13:01:04]1041 (16) - 0000000000965340 [13:01:04]1040 (4) - 187731 [13:01:04]1012 (4) - 21.10.2024 06:53 [13:01:04]1206 (1) - 0 [13:01:04]OFD Sender: Remove packet 187731 [13:01:04]ProducePacketName [13:01:04]name=ofd_packets/00187731 [13:01:04]NVStorageDeleteData [13:01:05]OFD Sender: No OFD packet to send [13:01:05]*** Cut start [13:01:05]*** Partial cut [13:01:05]*** CUTSNS_PIN = 1 [13:01:05]*** CUTSNS_PIN = 0 [13:01:06]*** Brake cut motor [13:01:06]Read from MH i2c: 01 [13:01:06]MH_I2C_Read... [13:01:06]*** Stop cut motor [13:01:06]*** Cut end [13:01:06]Read from MH i2c: 01 07 00 [13:01:06]MH_I2C_Read... [13:01:06]Read from MH i2c: 01 07 00 AE 57 00 00 00 00 00 FF 0F 1A [13:01:06]process_action close_receipt done [13:01:06]requested_data is exist [13:01:06]produce_requested_data [13:01:06]requested_item fm.sn is exist - process it [13:01:06]wFMCommunicate request_size=4 [13:01:06]MH_SAM_APDU [13:01:06]CAPDU: 80 11 00 00 [13:01:06]Write to MH i2c: E2 08 00 AF 57 80 11 00 00 00 00 00 00 80 [13:01:06]Write i2c OK [13:01:06]MH_I2C_Read... [13:01:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:01:06]Read from MH i2c: E2 [13:01:06]MH_I2C_Read... [13:01:06]Read from MH i2c: E2 17 00 [13:01:06]MH_I2C_Read... [13:01:06]Read from MH i2c: E2 17 00 AF 57 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 CE [13:01:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [13:01:06]wFMCommunicate OK [13:01:06]requested_item fd.num is exist - process it [13:01:06]SAM_PROTO_GetFieldsCounters [13:01:06]wFMCommunicate request_size=4 [13:01:06]MH_SAM_APDU [13:01:06]CAPDU: 80 13 00 00 [13:01:06]Write to MH i2c: E2 08 00 B0 57 80 13 00 00 00 00 00 00 83 [13:01:06]Write i2c OK [13:01:06]MH_I2C_Read... [13:01:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:01:06]Read from MH i2c: E2 [13:01:06]MH_I2C_Read... [13:01:06]Read from MH i2c: E2 62 00 [13:01:06]MH_I2C_Read... [13:01:06]Read from MH i2c: E2 62 00 B0 57 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 53 DD 02 00 0E 04 04 00 CC 01 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 D2 [13:01:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 53 DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 C3 00 00 00 5E 04 04 00 C3 00 00 00 57 04 04 00 C4 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:01:06]wFMCommunicate OK [13:01:06]SAM_PROTO_GetFieldsCounters done [13:01:06]requested_item shift.num is exist - process it [13:01:06]requested_item shift.opened is exist - process it [13:01:06]req_shift_opened [13:01:06]FM_GetShiftState [13:01:06]SAM_PROTO_GetShiftState [13:01:06]wFMCommunicate request_size=4 [13:01:06]MH_SAM_APDU [13:01:06]CAPDU: 80 13 01 00 [13:01:06]Write to MH i2c: E2 08 00 B1 57 80 13 01 00 00 00 00 00 85 [13:01:06]Write i2c OK [13:01:06]MH_I2C_Read... [13:01:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:01:06]Read from MH i2c: E2 [13:01:06]MH_I2C_Read... [13:01:06]Read from MH i2c: E2 0E 00 [13:01:06]MH_I2C_Read... [13:01:06]Read from MH i2c: E2 0E 00 B1 57 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 E4 [13:01:06]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [13:01:06]wFMCommunicate OK [13:01:06]SAM_PROTO_GetShiftState done [13:01:06]FM_GetShiftState done [13:01:06]req_shift_opened done [13:01:06]requested_item shift.open_date is exist - process it [13:01:06]req_shift_open_date [13:01:06]req_shift_open_date done [13:01:06]produce_requested_data done [13:01:06]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187731,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [13:01:06]process_action_free close_receipt [13:01:06]json_value_free [13:01:06]json_value_free done [13:01:06]process_json_proto returns [13:01:06]Send response to host [13:01:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187731,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [13:01:06]free response buf [13:01:06]execute_script done [13:01:06]execute_script returns [13:01:06]free content buf [13:01:06]Sock 8.Close socket [13:01:06]Sock 8.Thread stoped [13:01:10]OFD Sender: No OFD packet to send [13:01:15]OFD Sender: No OFD packet to send [13:01:20]OFD Sender: No OFD packet to send [13:01:25]OFD Sender: No OFD packet to send [13:01:30]OFD Sender: No OFD packet to send [13:01:35]OFD Sender: No OFD packet to send [13:01:40]OFD Sender: No OFD packet to send [13:01:45]OFD Sender: No OFD packet to send [13:01:50]OFD Sender: No OFD packet to send [13:01:55]OFD Sender: No OFD packet to send [13:02:00]OFD Sender: No OFD packet to send [13:02:05]OFD Sender: No OFD packet to send [13:02:10]OFD Sender: No OFD packet to send [13:02:15]OFD Sender: No OFD packet to send [13:02:20]OFD Sender: No OFD packet to send [13:02:25]OFD Sender: No OFD packet to send [13:02:30]OFD Sender: No OFD packet to send [13:02:35]OFD Sender: No OFD packet to send [13:02:40]OFD Sender: No OFD packet to send [13:02:45]OFD Sender: No OFD packet to send [13:02:50]OFD Sender: No OFD packet to send [13:02:55]OFD Sender: No OFD packet to send [13:03:00]OFD Sender: No OFD packet to send [13:03:05]OFD Sender: No OFD packet to send [13:03:10]OFD Sender: No OFD packet to send [13:03:15]OFD Sender: No OFD packet to send [13:03:20]OFD Sender: No OFD packet to send [13:03:25]OFD Sender: No OFD packet to send [13:03:30]OFD Sender: No OFD packet to send [13:03:35]OFD Sender: No OFD packet to send [13:03:40]OFD Sender: No OFD packet to send [13:03:45]OFD Sender: No OFD packet to send [13:03:50]OFD Sender: No OFD packet to send [13:03:55]OFD Sender: No OFD packet to send [13:04:00]OFD Sender: No OFD packet to send [13:04:05]OFD Sender: No OFD packet to send [13:04:10]OFD Sender: No OFD packet to send [13:04:16]OFD Sender: No OFD packet to send [13:04:21]OFD Sender: No OFD packet to send [13:04:26]OFD Sender: No OFD packet to send [13:04:31]OFD Sender: No OFD packet to send [13:04:36]OFD Sender: No OFD packet to send [13:04:41]OFD Sender: No OFD packet to send [13:04:46]OFD Sender: No OFD packet to send [13:04:46]accept exits with 9 [13:04:46]New connection [13:04:46]New thread 3067157860 created [13:04:46]Thread 3067014500 joined [13:04:46]Waiting for new connection... [13:04:46] Sock 9.Parse request [13:04:46]Sock 9.Check first char [13:04:46]Sock 9.First char is OK [13:04:46]request: POST /json_proto HTTP/1.0 [13:04:46]Method: POST [13:04:46]URL: /json_proto [13:04:46]Method is POST - this is cgi request [13:04:46]url: /json_proto [13:04:46]query_string will be loaded in cgi processing [13:04:46]execute_cgi json_proto POST (null) [13:04:46]execute_cgi path=json_proto method=POST [13:04:46]POST find Content-Length [13:04:46]Host: 172.17.42.131:8080 [13:04:46]Content-Length: 677 [13:04:46]Content-Type: application/json [13:04:46] [13:04:46]POST finish read [13:04:46]Found Content-Length = 677 [13:04:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209784", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "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:04:46]execute_script... [13:04: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)209784", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "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:04:46]POST & json_proto [13:04:46]process_json_proto [13:04:46]json parsed OK: [13:04:46]protocol is kg_v1.0 [13:04:46]action value=close_receipt [13:04:46]process_action close_receipt [13:04:46]cmd_close_receipt [13:04:46]MH_GetDate [13:04:46]Write to MH i2c: F0 00 00 B2 57 F8 [13:04:46]Write i2c OK [13:04:46]MH_I2C_Read... [13:04:46]Read from MH i2c: F0 [13:04:46]MH_I2C_Read... [13:04:46]Read from MH i2c: F0 09 00 [13:04:46]MH_I2C_Read... [13:04:46]Read from MH i2c: F0 09 00 B2 57 00 72 51 16 67 A0 18 CA 66 29 [13:04:46]GetLastDocTimeStamp 1729515666 [13:04:46]current date 1729515890 [13:04:46]FM_GetShiftState [13:04:46]SAM_PROTO_GetShiftState [13:04:46]wFMCommunicate request_size=4 [13:04:46]MH_SAM_APDU [13:04:46]CAPDU: 80 13 01 00 [13:04:46]Write to MH i2c: E2 08 00 B3 57 80 13 01 00 00 00 00 00 87 [13:04:46]Write i2c OK [13:04:46]MH_I2C_Read... [13:04:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:04:46]Read from MH i2c: E2 [13:04:46]MH_I2C_Read... [13:04:46]Read from MH i2c: E2 0E 00 [13:04:46]MH_I2C_Read... [13:04:46]Read from MH i2c: E2 0E 00 B3 57 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 E6 [13:04:46]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [13:04:46]wFMCommunicate OK [13:04:46]SAM_PROTO_GetShiftState done [13:04:46]FM_GetShiftState done [13:04:46]opened in 1729469754 [13:04:46]opened+sec_in_day 1729556154 [13:04:46]quantity*price = 40006 [13:04:46]sum+1 = 40007 [13:04:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 196 21.10.2024 13:04 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 187732 ФПД: 49914032103077 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T130450&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187732&fm=49914032103077&tin=02508201610067®Number=0000000000100030&sum=40000 [13:04:47]StoreToDocumentArchive [13:04:47]shift 460 fd 187732 [13:04:47]save to /storage/0460/doc_00187732 [13:04:47]save last doc name /storage/0460/doc_00187732 to /storage/kkm_last_doc_name [13:04:47]save OK [13:04:47]Clear old archive folders... [13:04:47]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:04:47]tlvbuf is 011F0F00 [13:04:47]SAM_PROTO_ClearQueue [13:04:47]wFMCommunicate request_size=4 [13:04:47]MH_SAM_APDU [13:04:47]CAPDU: 80 09 00 00 [13:04:47]Write to MH i2c: E2 08 00 C0 57 80 09 00 00 00 00 00 00 89 [13:04:47]Write i2c OK [13:04:47]MH_I2C_Read... [13:04:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:04:47]Read from MH i2c: E2 [13:04:47]MH_I2C_Read... [13:04:47]Read from MH i2c: E2 03 00 [13:04:47]MH_I2C_Read... [13:04:47]Read from MH i2c: E2 03 00 C0 57 00 90 00 8B [13:04:47]RAPDU: 90 00 [13:04:47]wFMCommunicate OK [13:04:47]SAM_PROTO_ClearQueue done [13:04:47]KKMCreateOFDPacket [13:04:47]OFDProtocolAddRootSTLVToBuf [13:04:47]FM_MakeSignedData [13:04:47]FM_MakeSignedData [13:04:47]SAM_PROTO_SignData [13:04:47]wFMCommunicate request_size=4 [13:04:47]MH_SAM_APDU [13:04:47]CAPDU: 80 0D 01 02 [13:04:47]Write to MH i2c: E2 08 00 C1 57 80 0D 01 02 00 00 00 00 91 [13:04:47]Write i2c OK [13:04:47]MH_I2C_Read... [13:04:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:04:47]Read from MH i2c: E2 [13:04:47]MH_I2C_Read... [13:04:47]Read from MH i2c: E2 03 00 [13:04:47]MH_I2C_Read... [13:04:47]Read from MH i2c: E2 03 00 C1 57 00 90 00 8C [13:04:47]RAPDU: 90 00 [13:04:47]wFMCommunicate OK [13:04:47]wFMCommunicate request_size=255 [13:04:47]MH_SAM_APDU [13:04: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 33 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 C4 00 00 00 F4 03 04 00 72 51 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 54 DD 02 00 35 04 06 00 2D [13:04:47]Write to MH i2c: E2 02 01 C2 57 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 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 C4 00 00 00 F4 03 04 00 72 51 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 54 DD 02 00 35 04 06 00 2D 00 00 04 [13:04:47]Write i2c OK [13:04:47]MH_I2C_Read... [13:04:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:04:48]Read from MH i2c: E2 [13:04:48]MH_I2C_Read... [13:04:48]Read from MH i2c: E2 03 00 [13:04:48]MH_I2C_Read... [13:04:48]Read from MH i2c: E2 03 00 C2 57 00 90 00 8D [13:04:48]RAPDU: 90 00 [13:04:48]wFMCommunicate OK [13:04:48]wFMCommunicate request_size=10 [13:04:48]MH_SAM_APDU [13:04:48]CAPDU: 80 0D 02 02 05 65 84 27 1E A5 [13:04:48]Write to MH i2c: E2 0D 00 C3 57 80 0D 02 02 05 00 65 84 27 1E A5 00 00 71 [13:04:48]Write i2c OK [13:04:48]MH_I2C_Read... [13:04:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:04:48]Read from MH i2c: E2 [13:04:48]MH_I2C_Read... [13:04:48]Read from MH i2c: E2 03 00 [13:04:48]MH_I2C_Read... [13:04:48]Read from MH i2c: E2 03 00 C3 57 00 90 00 8E [13:04:48]RAPDU: 90 00 [13:04:48]wFMCommunicate OK [13:04:48]wFMCommunicate request_size=4 [13:04:48]MH_SAM_APDU [13:04:48]CAPDU: 80 0D 03 02 [13:04:48]Write to MH i2c: E2 08 00 C4 57 80 0D 03 02 00 00 00 00 96 [13:04:48]Write i2c OK [13:04:48]MH_I2C_Read... [13:04:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:04:48]Read from MH i2c: E2 [13:04:48]MH_I2C_Read... [13:04:48]Read from MH i2c: E2 0B 00 [13:04:48]MH_I2C_Read... [13:04:48]Read from MH i2c: E2 0B 00 C4 57 00 BA 2E 30 92 0C 44 7F F2 90 00 02 [13:04:48]RAPDU: BA 2E 30 92 0C 44 7F F2 90 00 [13:04:48]wFMCommunicate OK [13:04:48]SAM_PROTO_SignData done [13:04:48]FM_MakeSignedData done [13:04:48]CreateOFDProtocolMessage [13:04:48]wFMCommunicate request_size=4 [13:04:48]MH_SAM_APDU [13:04:48]CAPDU: 80 11 00 00 [13:04:48]Write to MH i2c: E2 08 00 C5 57 80 11 00 00 00 00 00 00 96 [13:04:48]Write i2c OK [13:04:48]MH_I2C_Read... [13:04:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:04:48]Read from MH i2c: E2 [13:04:48]MH_I2C_Read... [13:04:48]Read from MH i2c: E2 17 00 [13:04:48]MH_I2C_Read... [13:04:48]Read from MH i2c: E2 17 00 C5 57 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 E4 [13:04:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [13:04:48]wFMCommunicate OK [13:04:48]CreateOFDProtocolMessage done [13:04:48]OFDSenderStorePacket 187732 [13:04:48]StoreOFDPacket docnum=187732 [13:04:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 20 14 07 01 50 5D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 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 C4 00 00 00 F4 03 04 00 72 51 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 54 DD 02 00 35 04 06 00 2D 65 84 27 1E A5 BA 2E 30 92 0C 44 7F F2 [13:04:48]CheckFolder [13:04:48]dirname=/storage/ofd_packets [13:04:48]CheckFolder done [13:04:48]ProducePacketName [13:04:48]name=ofd_packets/00187732 [13:04:48]NVStorageSaveData ofd_packets/00187732 [13:04:48]File name is /storage/ofd_packets/00187732 [13:04:48]Write 301 bytes [13:04:48]NVStorageSaveData done [13:04:48]OFDSenderStorePacket done [13:04:48]KKMCreateOFDPacket done [13:04:48]NVStorageSaveData kkm_last_timestamp [13:04:48]File name is /storage/kkm_last_timestamp [13:04:48]Write 4 bytes [13:04:48]NVStorageSaveData done [13:04:48]ExternCall_PrintAddStr [13:04:48]wPrintStart [13:04:48]Write to MH i2c: 01 00 00 C6 57 1D [13:04:48]Write i2c OK [13:04:48]MH_I2C_Read... [13:04:48]Read from MH i2c: 01 [13:04:48]MH_I2C_Read... [13:04:48]Read from MH i2c: 01 07 00 [13:04:48]MH_I2C_Read... [13:04:48]Read from MH i2c: 01 07 00 C6 57 00 00 00 00 00 FF 0F 32 [13:04:48]RasterBufferAndPrint [13:04:48]line Счет N : (1)209784 [13:04:48]line ИНН: 02508201610067 [13:04:48]line Контрольно-Кассовый Чек [13:04:48]line ПРОДАЖА [13:04:48]line ТРК (МРК, ГНК) : 42 [13:04:48]line Товар: 2710124130 [13:04:48]line Аи-92-К-3 [13:04:48]line 5.980 * 66.90 [13:04:48]line = 400.06 [13:04:48]line НДС 12% НСП 1% [13:04:48]line > о реализуемом товаре [13:04:48]line ОКРУГЛЕНИЕ: -0.06 [13:04:48]line ИТОГО: 400.00 [13:04:48]line Внесено: 400.00 [13:04:48]line СДАЧА: 0.00 [13:04:48]line НСП 1% : 3.54 [13:04:48]line НДС 12% : 42.48 [13:04:48]line Наличными: 400.00 [13:04:48]line Безнал.: 0.00 [13:04:48]line Место: АЗС № 86 "Партнер Нефть" [13:04:48]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [13:04:48]line СНО: Общий режим [13:04:48]line Чек 196 21.10.2024 13:04 [13:04:48]line Смена: 460 ФФД: 1.0 [13:04:48]line ЗНМ: 0300000155 [13:04:48]line РНМ: 0000000000100030 [13:04:48]line Версия ККМ: 001 [13:04:48]line ФМ: 0000000000965340 [13:04:48]line ФД: 187732 [13:04:48]line ФПД: 49914032103077 [13:04:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T130450&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187732&fm=49914032103077&tin=02508201610067®Number=0000000000100030&sum=40000 [13:04:48]written 0, free lines is 4095 [13:04:48]OFD Sender: Processing packet 187732 [packets to send 1062, broken 1061] [13:04:48]ProducePacketName [13:04:48]name=ofd_packets/00187732 [13:04:48]OFD Sender: To server: pG, [13:04:48]CommunicateWithHost lk.salyk.kg:30040 [13:04:48]ConnectInit lk.salyk.kg [13:04:48]Connected sock=11 [13:04:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 20 14 07 01 50 5D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 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 C4 00 00 00 F4 03 04 00 72 51 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 54 DD 02 00 35 04 06 00 2D 65 84 27 1E A5 BA 2E 30 92 0C 44 7F F2 [13:04:48]Write to MH i2c: 01 00 00 F1 57 48 [13:04:48]Write i2c OK [13:04:48]MH_I2C_Read... [13:04:48]Read from MH i2c: 01 [13:04:48]MH_I2C_Read... [13:04:48]Read from MH i2c: 01 07 00 [13:04:48]MH_I2C_Read... [13:04:48]Read from MH i2c: 01 07 00 F1 57 00 00 00 00 00 6B 0C C6 [13:04:48]RasterBufferAndPrint [13:04:48]line [13:04:48]line [13:04:48]line [13:04:48]line [13:04:48]line [13:04:48]written 0, free lines is 3182 [13:04:48]MH_Cut [13:04:48]Write to MH i2c: D1 01 00 F8 57 01 21 [13:04:48]Write i2c OK [13:04:48]MH_I2C_Read... [13:04:48]Read from MH i2c: D1 [13:04:48]MH_I2C_Read... [13:04:48]Read from MH i2c: D1 01 00 [13:04:48]MH_I2C_Read... [13:04:48]Read from MH i2c: D1 01 00 F8 57 00 20 [13:04:48]Write to MH i2c: 01 00 00 F9 57 50 [13:04:48]Write i2c OK [13:04:48]MH_I2C_Read... [13:04:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 0A DF 47 00 8F 1C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 54 DD 02 00 F4 03 04 00 62 FB 15 67 B6 04 01 00 00 3C 67 99 A1 D9 50 F2 F2 [13:04:48]CommunicateWithHost err = 0 [13:04:48]CheckOFDResponse [13:04:48]1017 (14) - 77093643461234 [13:04:48]1041 (16) - 0000000000965340 [13:04:48]1040 (4) - 187732 [13:04:48]1012 (4) - 21.10.2024 06:57 [13:04:48]1206 (1) - 0 [13:04:48]OFD Sender: Remove packet 187732 [13:04:48]ProducePacketName [13:04:48]name=ofd_packets/00187732 [13:04:48]NVStorageDeleteData [13:04:49]OFD Sender: No OFD packet to send [13:04:49]*** Cut start [13:04:49]*** Partial cut [13:04:49]*** CUTSNS_PIN = 1 [13:04:49]*** CUTSNS_PIN = 0 [13:04:50]*** Brake cut motor [13:04:50]Read from MH i2c: 01 [13:04:50]MH_I2C_Read... [13:04:50]*** Stop cut motor [13:04:50]*** Cut end [13:04:50]Read from MH i2c: 01 07 00 [13:04:50]MH_I2C_Read... [13:04:50]Read from MH i2c: 01 07 00 F9 57 00 00 00 00 00 FF 0F 65 [13:04:50]process_action close_receipt done [13:04:50]requested_data is exist [13:04:50]produce_requested_data [13:04:50]requested_item fm.sn is exist - process it [13:04:50]wFMCommunicate request_size=4 [13:04:50]MH_SAM_APDU [13:04:50]CAPDU: 80 11 00 00 [13:04:50]Write to MH i2c: E2 08 00 FA 57 80 11 00 00 00 00 00 00 CB [13:04:50]Write i2c OK [13:04:50]MH_I2C_Read... [13:04:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:04:50]Read from MH i2c: E2 [13:04:50]MH_I2C_Read... [13:04:50]Read from MH i2c: E2 17 00 [13:04:50]MH_I2C_Read... [13:04:50]Read from MH i2c: E2 17 00 FA 57 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 19 [13:04:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [13:04:50]wFMCommunicate OK [13:04:50]requested_item fd.num is exist - process it [13:04:50]SAM_PROTO_GetFieldsCounters [13:04:50]wFMCommunicate request_size=4 [13:04:50]MH_SAM_APDU [13:04:50]CAPDU: 80 13 00 00 [13:04:50]Write to MH i2c: E2 08 00 FB 57 80 13 00 00 00 00 00 00 CE [13:04:50]Write i2c OK [13:04:50]MH_I2C_Read... [13:04:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:04:50]Read from MH i2c: E2 [13:04:50]MH_I2C_Read... [13:04:50]Read from MH i2c: E2 62 00 [13:04:50]MH_I2C_Read... [13:04:50]Read from MH i2c: E2 62 00 FB 57 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 54 DD 02 00 0E 04 04 00 CC 01 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 [13:04:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 54 DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 C4 00 00 00 5E 04 04 00 C4 00 00 00 57 04 04 00 C5 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:04:50]wFMCommunicate OK [13:04:50]SAM_PROTO_GetFieldsCounters done [13:04:50]requested_item shift.num is exist - process it [13:04:50]requested_item shift.opened is exist - process it [13:04:50]req_shift_opened [13:04:50]FM_GetShiftState [13:04:50]SAM_PROTO_GetShiftState [13:04:50]wFMCommunicate request_size=4 [13:04:50]MH_SAM_APDU [13:04:50]CAPDU: 80 13 01 00 [13:04:50]Write to MH i2c: E2 08 00 FC 57 80 13 01 00 00 00 00 00 D0 [13:04:50]Write i2c OK [13:04:50]MH_I2C_Read... [13:04:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:04:50]Read from MH i2c: E2 [13:04:50]MH_I2C_Read... [13:04:50]Read from MH i2c: E2 0E 00 [13:04:50]MH_I2C_Read... [13:04:50]Read from MH i2c: E2 0E 00 FC 57 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 2F [13:04:50]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [13:04:50]wFMCommunicate OK [13:04:50]SAM_PROTO_GetShiftState done [13:04:50]FM_GetShiftState done [13:04:50]req_shift_opened done [13:04:50]requested_item shift.open_date is exist - process it [13:04:50]req_shift_open_date [13:04:50]req_shift_open_date done [13:04:50]produce_requested_data done [13:04:50]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187732,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [13:04:50]process_action_free close_receipt [13:04:50]json_value_free [13:04:50]json_value_free done [13:04:50]process_json_proto returns [13:04:50]Send response to host [13:04:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187732,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [13:04:50]free response buf [13:04:50]execute_script done [13:04:50]execute_script returns [13:04:50]free content buf [13:04:50]Sock 9.Close socket [13:04:50]Sock 9.Thread stoped [13:04:54]OFD Sender: No OFD packet to send [13:04:59]OFD Sender: No OFD packet to send [13:05:04]OFD Sender: No OFD packet to send [13:05:09]OFD Sender: No OFD packet to send [13:05:14]OFD Sender: No OFD packet to send [13:05:19]OFD Sender: No OFD packet to send [13:05:24]OFD Sender: No OFD packet to send [13:05:29]OFD Sender: No OFD packet to send [13:05:34]OFD Sender: No OFD packet to send [13:05:39]OFD Sender: No OFD packet to send [13:05:44]OFD Sender: No OFD packet to send [13:05:49]OFD Sender: No OFD packet to send [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]OFD Sender: No OFD packet to send [13:06:34]OFD Sender: No OFD packet to send [13:06:39]OFD Sender: No OFD packet to send [13:06:44]OFD Sender: No OFD packet to send [13:06:49]OFD Sender: No OFD packet to send [13:06:55]OFD Sender: No OFD packet to send [13:07:00]OFD Sender: No OFD packet to send [13:07:05]OFD Sender: No OFD packet to send [13:07:10]OFD Sender: No OFD packet to send [13:07:15]OFD Sender: No OFD packet to send [13:07:20]OFD Sender: No OFD packet to send [13:07:25]OFD Sender: No OFD packet to send [13:07:30]OFD Sender: No OFD packet to send [13:07:35]OFD Sender: No OFD packet to send [13:07:40]OFD Sender: No OFD packet to send [13:07:45]OFD Sender: No OFD packet to send [13:07:50]OFD Sender: No OFD packet to send [13:07:55]OFD Sender: No OFD packet to send [13:08:00]OFD Sender: No OFD packet to send [13:08:05]OFD Sender: No OFD packet to send [13:08:10]OFD Sender: No OFD packet to send [13:08:15]OFD Sender: No OFD packet to send [13:08:20]OFD Sender: No OFD packet to send [13:08:25]OFD Sender: No OFD packet to send [13:08:30]OFD Sender: No OFD packet to send [13:08:35]OFD Sender: No OFD packet to send [13:08:40]OFD Sender: No OFD packet to send [13:08:45]OFD Sender: No OFD packet to send [13:08:50]OFD Sender: No OFD packet to send [13:08:55]OFD Sender: No OFD packet to send [13:09:00]OFD Sender: No OFD packet to send [13:09:05]OFD Sender: No OFD packet to send [13:09:10]OFD Sender: No OFD packet to send [13:09:15]OFD Sender: No OFD packet to send [13:09:20]OFD Sender: No OFD packet to send [13:09:25]OFD Sender: No OFD packet to send [13:09:30]OFD Sender: No OFD packet to send [13:09:35]OFD Sender: No OFD packet to send [13:09:40]OFD Sender: No OFD packet to send [13:09:45]OFD Sender: No OFD packet to send [13:09:50]OFD Sender: No OFD packet to send [13:09:55]OFD Sender: No OFD packet to send [13:10:00]OFD Sender: No OFD packet to send [13:10:05]OFD Sender: No OFD packet to send [13:10:10]OFD Sender: No OFD packet to send [13:10:15]OFD Sender: No OFD packet to send [13:10:20]OFD Sender: No OFD packet to send [13:10:25]OFD Sender: No OFD packet to send [13:10:30]OFD Sender: No OFD packet to send [13:10:35]OFD Sender: No OFD packet to send [13:10:41]OFD Sender: No OFD packet to send [13:10:46]OFD Sender: No OFD packet to send [13:10:51]OFD Sender: No OFD packet to send [13:10:56]OFD Sender: No OFD packet to send [13:11:01]OFD Sender: No OFD packet to send [13:11:06]OFD Sender: No OFD packet to send [13:11:11]OFD Sender: No OFD packet to send [13:11:16]OFD Sender: No OFD packet to send [13:11:21]OFD Sender: No OFD packet to send [13:11:26]OFD Sender: No OFD packet to send [13:11:31]OFD Sender: No OFD packet to send [13:11:36]OFD Sender: No OFD packet to send [13:11:41]OFD Sender: No OFD packet to send [13:11:46]OFD Sender: No OFD packet to send [13:11:51]OFD Sender: No OFD packet to send [13:11:56]OFD Sender: No OFD packet to send [13:12:01]OFD Sender: No OFD packet to send [13:12:06]OFD Sender: No OFD packet to send [13:12:11]OFD Sender: No OFD packet to send [13:12:16]OFD Sender: No OFD packet to send [13:12:21]OFD Sender: No OFD packet to send [13:12:26]OFD Sender: No OFD packet to send [13:12:31]OFD Sender: No OFD packet to send [13:12:36]OFD Sender: No OFD packet to send [13:12:41]OFD Sender: No OFD packet to send [13:12:46]OFD Sender: No OFD packet to send [13:12:51]OFD Sender: No OFD packet to send [13:12:56]OFD Sender: No OFD packet to send [13:13:01]OFD Sender: No OFD packet to send [13:13:06]OFD Sender: No OFD packet to send [13:13:11]OFD Sender: No OFD packet to send [13:13:16]OFD Sender: No OFD packet to send [13:13:21]OFD Sender: No OFD packet to send [13:13:26]OFD Sender: No OFD packet to send [13:13:29]accept exits with 8 [13:13:29]New connection [13:13:29]New thread 3067014500 created [13:13:29]Thread 3067157860 joined [13:13:29]Waiting for new connection... [13:13:29] Sock 8.Parse request [13:13:29]Sock 8.Check first char [13:13:29]Sock 8.First char is OK [13:13:29]request: POST /json_proto HTTP/1.0 [13:13:29]Method: POST [13:13:29]URL: /json_proto [13:13:29]Method is POST - this is cgi request [13:13:29]url: /json_proto [13:13:29]query_string will be loaded in cgi processing [13:13:29]execute_cgi json_proto POST (null) [13:13:29]execute_cgi path=json_proto method=POST [13:13:29]POST find Content-Length [13:13:29]Host: 172.17.42.131:8080 [13:13:29]Content-Length: 688 [13:13:29]Content-Type: application/json [13:13:29] [13:13:29]POST finish read [13:13:29]Found Content-Length = 688 [13:13:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209786", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 12.960, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:13:29]execute_script... [13:13: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)209786", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 12.960, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:13:29]POST & json_proto [13:13:29]process_json_proto [13:13:29]json parsed OK: [13:13:29]protocol is kg_v1.0 [13:13:29]action value=close_receipt [13:13:29]process_action close_receipt [13:13:29]cmd_close_receipt [13:13:29]MH_GetDate [13:13:29]Write to MH i2c: F0 00 00 FD 57 43 [13:13:29]Write i2c OK [13:13:29]MH_I2C_Read... [13:13:29]Read from MH i2c: F0 [13:13:29]MH_I2C_Read... [13:13:29]Read from MH i2c: F0 09 00 [13:13:29]MH_I2C_Read... [13:13:29]Read from MH i2c: F0 09 00 FD 57 00 7E 53 16 67 A0 18 CA 66 82 [13:13:29]GetLastDocTimeStamp 1729515890 [13:13:29]current date 1729516414 [13:13:29]FM_GetShiftState [13:13:29]SAM_PROTO_GetShiftState [13:13:29]wFMCommunicate request_size=4 [13:13:29]MH_SAM_APDU [13:13:29]CAPDU: 80 13 01 00 [13:13:29]Write to MH i2c: E2 08 00 FE 57 80 13 01 00 00 00 00 00 D2 [13:13:29]Write i2c OK [13:13:29]MH_I2C_Read... [13:13:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:13:29]Read from MH i2c: E2 [13:13:29]MH_I2C_Read... [13:13:29]Read from MH i2c: E2 0E 00 [13:13:29]MH_I2C_Read... [13:13:29]Read from MH i2c: E2 0E 00 FE 57 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 31 [13:13:29]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [13:13:29]wFMCommunicate OK [13:13:29]SAM_PROTO_GetShiftState done [13:13:29]FM_GetShiftState done [13:13:29]opened in 1729469754 [13:13:29]opened+sec_in_day 1729556154 [13:13:29]quantity*price = 100051 [13:13:29]sum+1 = 100052 [13:13:29]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 197 21.10.2024 13:13 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 187733 ФПД: 25035582918801 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T131334&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187733&fm=25035582918801&tin=02508201610067®Number=0000000000100030&sum=100000 [13:13:31]StoreToDocumentArchive [13:13:31]shift 460 fd 187733 [13:13:31]save to /storage/0460/doc_00187733 [13:13:31]save last doc name /storage/0460/doc_00187733 to /storage/kkm_last_doc_name [13:13:31]save OK [13:13:31]Clear old archive folders... [13:13:31]ProcessDocumentItem done err = 0, tmpTLVsize=257 [13:13:31]tlvbuf is 011212B0 [13:13:31]SAM_PROTO_ClearQueue [13:13:31]wFMCommunicate request_size=4 [13:13:31]MH_SAM_APDU [13:13:31]CAPDU: 80 09 00 00 [13:13:31]Write to MH i2c: E2 08 00 0B 58 80 09 00 00 00 00 00 00 D5 [13:13:31]Write i2c OK [13:13:31]MH_I2C_Read... [13:13:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:13:31]Read from MH i2c: E2 [13:13:31]MH_I2C_Read... [13:13:31]Read from MH i2c: E2 03 00 [13:13:31]MH_I2C_Read... [13:13:31]Read from MH i2c: E2 03 00 0B 58 00 90 00 D7 [13:13:31]RAPDU: 90 00 [13:13:31]wFMCommunicate OK [13:13:31]SAM_PROTO_ClearQueue done [13:13:31]KKMCreateOFDPacket [13:13:31]OFDProtocolAddRootSTLVToBuf [13:13:31]FM_MakeSignedData [13:13:31]FM_MakeSignedData [13:13:31]SAM_PROTO_SignData [13:13:31]wFMCommunicate request_size=4 [13:13:31]MH_SAM_APDU [13:13:31]CAPDU: 80 0D 01 02 [13:13:31]Write to MH i2c: E2 08 00 0C 58 80 0D 01 02 00 00 00 00 DD [13:13:31]Write i2c OK [13:13:31]MH_I2C_Read... [13:13:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:13:31]Read from MH i2c: E2 [13:13:31]MH_I2C_Read... [13:13:31]Read from MH i2c: E2 03 00 [13:13:31]MH_I2C_Read... [13:13:31]Read from MH i2c: E2 03 00 0C 58 00 90 00 D8 [13:13:31]RAPDU: 90 00 [13:13:31]wFMCommunicate OK [13:13:31]wFMCommunicate request_size=255 [13:13:31]MH_SAM_APDU [13:13:31]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C5 00 00 00 F4 03 04 00 7E 53 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 55 DD 02 [13:13:31]Write to MH i2c: E2 02 01 0D 58 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C5 00 00 00 F4 03 04 00 7E 53 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 55 DD 02 00 00 4E [13:13:31]Write i2c OK [13:13:31]MH_I2C_Read... [13:13:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:13:31]Read from MH i2c: E2 [13:13:31]MH_I2C_Read... [13:13:31]Read from MH i2c: E2 03 00 [13:13:31]MH_I2C_Read... [13:13:31]Read from MH i2c: E2 03 00 0D 58 00 90 00 D9 [13:13:31]RAPDU: 90 00 [13:13:31]wFMCommunicate OK [13:13:31]wFMCommunicate request_size=16 [13:13:31]MH_SAM_APDU [13:13:31]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 16 C5 0D 06 D0 91 [13:13:31]Write to MH i2c: E2 13 00 0E 58 80 0D 02 02 0B 00 00 35 04 06 00 16 C5 0D 06 D0 91 00 00 84 [13:13:31]Write i2c OK [13:13:31]MH_I2C_Read... [13:13:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:13:31]Read from MH i2c: E2 [13:13:31]MH_I2C_Read... [13:13:31]Read from MH i2c: E2 03 00 [13:13:31]MH_I2C_Read... [13:13:31]Read from MH i2c: E2 03 00 0E 58 00 90 00 DA [13:13:31]RAPDU: 90 00 [13:13:31]wFMCommunicate OK [13:13:31]wFMCommunicate request_size=4 [13:13:31]MH_SAM_APDU [13:13:31]CAPDU: 80 0D 03 02 [13:13:31]Write to MH i2c: E2 08 00 0F 58 80 0D 03 02 00 00 00 00 E2 [13:13:31]Write i2c OK [13:13:31]MH_I2C_Read... [13:13:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:13:31]Read from MH i2c: E2 [13:13:31]MH_I2C_Read... [13:13:31]Read from MH i2c: E2 0B 00 [13:13:31]MH_I2C_Read... [13:13:31]Read from MH i2c: E2 0B 00 0F 58 00 32 8C 71 AD 8B B2 A7 E7 90 00 8A [13:13:31]RAPDU: 32 8C 71 AD 8B B2 A7 E7 90 00 [13:13:31]wFMCommunicate OK [13:13:31]SAM_PROTO_SignData done [13:13:31]FM_MakeSignedData done [13:13:31]CreateOFDProtocolMessage [13:13:31]wFMCommunicate request_size=4 [13:13:31]MH_SAM_APDU [13:13:31]CAPDU: 80 11 00 00 [13:13:31]Write to MH i2c: E2 08 00 10 58 80 11 00 00 00 00 00 00 E2 [13:13:31]Write i2c OK [13:13:31]MH_I2C_Read... [13:13:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:13:31]Read from MH i2c: E2 [13:13:31]MH_I2C_Read... [13:13:31]Read from MH i2c: E2 17 00 [13:13:31]MH_I2C_Read... [13:13:31]Read from MH i2c: E2 17 00 10 58 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 30 [13:13:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [13:13:31]wFMCommunicate OK [13:13:31]CreateOFDProtocolMessage done [13:13:31]OFDSenderStorePacket 187733 [13:13:31]StoreOFDPacket docnum=187733 [13:13:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 FA D8 0D 01 F0 82 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 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C5 00 00 00 F4 03 04 00 7E 53 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 55 DD 02 00 35 04 06 00 16 C5 0D 06 D0 91 32 8C 71 AD 8B B2 A7 E7 [13:13:31]CheckFolder [13:13:31]dirname=/storage/ofd_packets [13:13:31]CheckFolder done [13:13:31]ProducePacketName [13:13:31]name=ofd_packets/00187733 [13:13:31]NVStorageSaveData ofd_packets/00187733 [13:13:31]File name is /storage/ofd_packets/00187733 [13:13:31]Write 307 bytes [13:13:31]NVStorageSaveData done [13:13:31]OFDSenderStorePacket done [13:13:31]KKMCreateOFDPacket done [13:13:31]NVStorageSaveData kkm_last_timestamp [13:13:31]File name is /storage/kkm_last_timestamp [13:13:31]Write 4 bytes [13:13:31]NVStorageSaveData done [13:13:31]ExternCall_PrintAddStr [13:13:31]wPrintStart [13:13:31]Write to MH i2c: 01 00 00 11 58 69 [13:13:31]Write i2c OK [13:13:31]MH_I2C_Read... [13:13:31]Read from MH i2c: 01 [13:13:31]MH_I2C_Read... [13:13:31]Read from MH i2c: 01 07 00 [13:13:31]MH_I2C_Read... [13:13:31]Read from MH i2c: 01 07 00 11 58 00 00 00 00 00 FF 0F 7E [13:13:31]RasterBufferAndPrint [13:13:31]line Счет N : (1)209786 [13:13:31]line ИНН: 02508201610067 [13:13:31]line Контрольно-Кассовый Чек [13:13:31]line ПРОДАЖА [13:13:31]line ТРК (МРК, ГНК) : 31 [13:13:31]line Товар: 2710194210 [13:13:31]line D-ENERGY ДТ-К-5 [13:13:31]line 12.960 * 77.20 [13:13:31]line = 1000.51 [13:13:31]line НДС 12% НСП 1% [13:13:31]line > о реализуемом товаре [13:13:31]line ОКРУГЛЕНИЕ: -0.51 [13:13:31]line ИТОГО: 1000.00 [13:13:31]line Внесено: 1000.00 [13:13:31]line СДАЧА: 0.00 [13:13:31]line НСП 1% : 8.85 [13:13:31]line НДС 12% : 106.25 [13:13:31]line Наличными: 1000.00 [13:13:31]line Безнал.: 0.00 [13:13:31]line Место: АЗС № 86 "Партнер Нефть" [13:13:31]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [13:13:31]line СНО: Общий режим [13:13:31]line Чек 197 21.10.2024 13:13 [13:13:31]line Смена: 460 ФФД: 1.0 [13:13:31]line ЗНМ: 0300000155 [13:13:31]line РНМ: 0000000000100030 [13:13:31]line Версия ККМ: 001 [13:13:31]line ФМ: 0000000000965340 [13:13:31]line ФД: 187733 [13:13:31]line ФПД: 25035582918801 [13:13:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T131334&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187733&fm=25035582918801&tin=02508201610067®Number=0000000000100030&sum=100000 [13:13:31]written 0, free lines is 4095 [13:13:31]OFD Sender: Processing packet 187733 [packets to send 1062, broken 1061] [13:13:31]ProducePacketName [13:13:31]name=ofd_packets/00187733 [13:13:31]OFD Sender: To server: pG, [13:13:31]CommunicateWithHost lk.salyk.kg:30040 [13:13:31]ConnectInit lk.salyk.kg [13:13:31]Connected sock=10 [13:13:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 FA D8 0D 01 F0 82 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 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C5 00 00 00 F4 03 04 00 7E 53 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 55 DD 02 00 35 04 06 00 16 C5 0D 06 D0 91 32 8C 71 AD 8B B2 A7 E7 [13:13:32]Write to MH i2c: 01 00 00 3C 58 94 [13:13:32]Write i2c OK [13:13:32]MH_I2C_Read... [13:13:32]Read from MH i2c: 01 [13:13:32]MH_I2C_Read... [13:13:32]Read from MH i2c: 01 07 00 [13:13:32]MH_I2C_Read... [13:13:32]Read from MH i2c: 01 07 00 3C 58 00 00 00 00 00 6F 0C 16 [13:13:32]RasterBufferAndPrint [13:13:32]line [13:13:32]line [13:13:32]line [13:13:32]line [13:13:32]line [13:13:32]written 0, free lines is 3186 [13:13:32]MH_Cut [13:13:32]Write to MH i2c: D1 01 00 43 58 01 6D [13:13:32]Write i2c OK [13:13:32]MH_I2C_Read... [13:13:32]Read from MH i2c: D1 [13:13:32]MH_I2C_Read... [13:13:32]Read from MH i2c: D1 01 00 [13:13:32]MH_I2C_Read... [13:13:32]Read from MH i2c: D1 01 00 43 58 00 6C [13:13:32]Write to MH i2c: 01 00 00 44 58 9C [13:13:32]Write i2c OK [13:13:32]MH_I2C_Read... [13:13:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 2A 65 47 00 DF C2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 55 DD 02 00 F4 03 04 00 6D FD 15 67 B6 04 01 00 00 B7 1A 2E 80 1E 53 17 87 [13:13:32]CommunicateWithHost err = 0 [13:13:32]CheckOFDResponse [13:13:32]1017 (14) - 77093643461234 [13:13:32]1041 (16) - 0000000000965340 [13:13:32]1040 (4) - 187733 [13:13:32]1012 (4) - 21.10.2024 07:06 [13:13:32]1206 (1) - 0 [13:13:32]OFD Sender: Remove packet 187733 [13:13:32]ProducePacketName [13:13:32]name=ofd_packets/00187733 [13:13:32]NVStorageDeleteData [13:13:32]OFD Sender: No OFD packet to send [13:13:33]*** Cut start [13:13:33]*** Partial cut [13:13:33]*** CUTSNS_PIN = 1 [13:13:33]*** CUTSNS_PIN = 0 [13:13:33]*** Brake cut motor [13:13:33]Read from MH i2c: 01 [13:13:33]MH_I2C_Read... [13:13:33]*** Stop cut motor [13:13:33]*** Cut end [13:13:33]Read from MH i2c: 01 07 00 [13:13:33]MH_I2C_Read... [13:13:33]Read from MH i2c: 01 07 00 44 58 00 00 00 00 00 FF 0F B1 [13:13:33]process_action close_receipt done [13:13:33]requested_data is exist [13:13:33]produce_requested_data [13:13:33]requested_item fm.sn is exist - process it [13:13:33]wFMCommunicate request_size=4 [13:13:33]MH_SAM_APDU [13:13:33]CAPDU: 80 11 00 00 [13:13:33]Write to MH i2c: E2 08 00 45 58 80 11 00 00 00 00 00 00 17 [13:13:33]Write i2c OK [13:13:33]MH_I2C_Read... [13:13:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:13:33]Read from MH i2c: E2 [13:13:33]MH_I2C_Read... [13:13:33]Read from MH i2c: E2 17 00 [13:13:33]MH_I2C_Read... [13:13:33]Read from MH i2c: E2 17 00 45 58 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 65 [13:13:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [13:13:33]wFMCommunicate OK [13:13:33]requested_item fd.num is exist - process it [13:13:33]SAM_PROTO_GetFieldsCounters [13:13:33]wFMCommunicate request_size=4 [13:13:33]MH_SAM_APDU [13:13:33]CAPDU: 80 13 00 00 [13:13:33]Write to MH i2c: E2 08 00 46 58 80 13 00 00 00 00 00 00 1A [13:13:33]Write i2c OK [13:13:33]MH_I2C_Read... [13:13:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:13:34]Read from MH i2c: E2 [13:13:34]MH_I2C_Read... [13:13:34]Read from MH i2c: E2 62 00 [13:13:34]MH_I2C_Read... [13:13:34]Read from MH i2c: E2 62 00 46 58 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 55 DD 02 00 0E 04 04 00 CC 01 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 71 [13:13:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 55 DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 C5 00 00 00 5E 04 04 00 C5 00 00 00 57 04 04 00 C6 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:13:34]wFMCommunicate OK [13:13:34]SAM_PROTO_GetFieldsCounters done [13:13:34]requested_item shift.num is exist - process it [13:13:34]requested_item shift.opened is exist - process it [13:13:34]req_shift_opened [13:13:34]FM_GetShiftState [13:13:34]SAM_PROTO_GetShiftState [13:13:34]wFMCommunicate request_size=4 [13:13:34]MH_SAM_APDU [13:13:34]CAPDU: 80 13 01 00 [13:13:34]Write to MH i2c: E2 08 00 47 58 80 13 01 00 00 00 00 00 1C [13:13:34]Write i2c OK [13:13:34]MH_I2C_Read... [13:13:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:13:34]Read from MH i2c: E2 [13:13:34]MH_I2C_Read... [13:13:34]Read from MH i2c: E2 0E 00 [13:13:34]MH_I2C_Read... [13:13:34]Read from MH i2c: E2 0E 00 47 58 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 7B [13:13:34]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [13:13:34]wFMCommunicate OK [13:13:34]SAM_PROTO_GetShiftState done [13:13:34]FM_GetShiftState done [13:13:34]req_shift_opened done [13:13:34]requested_item shift.open_date is exist - process it [13:13:34]req_shift_open_date [13:13:34]req_shift_open_date done [13:13:34]produce_requested_data done [13:13:34]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187733,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [13:13:34]process_action_free close_receipt [13:13:34]json_value_free [13:13:34]json_value_free done [13:13:34]process_json_proto returns [13:13:34]Send response to host [13:13:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187733,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [13:13:34]free response buf [13:13:34]execute_script done [13:13:34]execute_script returns [13:13:34]free content buf [13:13:34]Sock 8.Close socket [13:13:34]Sock 8.Thread stoped [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:53]OFD Sender: No OFD packet to send [13:14:58]OFD Sender: No OFD packet to send [13:15:03]OFD Sender: No OFD packet to send [13:15:08]OFD Sender: No OFD packet to send [13:15:13]OFD Sender: No OFD packet to send [13:15:18]OFD Sender: No OFD packet to send [13:15:23]OFD Sender: No OFD packet to send [13:15:28]OFD Sender: No OFD packet to send [13:15:33]OFD Sender: No OFD packet to send [13:15:38]OFD Sender: No OFD packet to send [13:15:43]OFD Sender: No OFD packet to send [13:15:47]accept exits with 9 [13:15:47]New connection [13:15:47]New thread 3067157860 created [13:15:47]Thread 3067014500 joined [13:15:47]Waiting for new connection... [13:15:47] Sock 9.Parse request [13:15:47]Sock 9.Check first char [13:15:47]Sock 9.First char is OK [13:15:47]request: POST /json_proto HTTP/1.0 [13:15:47]Method: POST [13:15:47]URL: /json_proto [13:15:47]Method is POST - this is cgi request [13:15:47]url: /json_proto [13:15:47]query_string will be loaded in cgi processing [13:15:47]execute_cgi json_proto POST (null) [13:15:47]execute_cgi path=json_proto method=POST [13:15:47]POST find Content-Length [13:15:47]Host: 172.17.42.131:8080 [13:15:47]Content-Length: 688 [13:15:47]Content-Type: application/json [13:15:47] [13:15:47]POST finish read [13:15:47]Found Content-Length = 688 [13:15:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209787", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 12.960, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:15:47]execute_script... [13:15: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)209787", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 12.960, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:15:47]POST & json_proto [13:15:47]process_json_proto [13:15:47]json parsed OK: [13:15:47]protocol is kg_v1.0 [13:15:47]action value=close_receipt [13:15:47]process_action close_receipt [13:15:47]cmd_close_receipt [13:15:47]MH_GetDate [13:15:47]Write to MH i2c: F0 00 00 48 58 8F [13:15:47]Write i2c OK [13:15:47]MH_I2C_Read... [13:15:47]Read from MH i2c: F0 [13:15:47]MH_I2C_Read... [13:15:47]Read from MH i2c: F0 09 00 [13:15:47]MH_I2C_Read... [13:15:47]Read from MH i2c: F0 09 00 48 58 00 07 54 16 67 A0 18 CA 66 58 [13:15:47]GetLastDocTimeStamp 1729516414 [13:15:47]current date 1729516551 [13:15:47]FM_GetShiftState [13:15:47]SAM_PROTO_GetShiftState [13:15:47]wFMCommunicate request_size=4 [13:15:47]MH_SAM_APDU [13:15:47]CAPDU: 80 13 01 00 [13:15:47]Write to MH i2c: E2 08 00 49 58 80 13 01 00 00 00 00 00 1E [13:15:47]Write i2c OK [13:15:47]MH_I2C_Read... [13:15:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:15:47]Read from MH i2c: E2 [13:15:47]MH_I2C_Read... [13:15:47]Read from MH i2c: E2 0E 00 [13:15:47]MH_I2C_Read... [13:15:47]Read from MH i2c: E2 0E 00 49 58 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 7D [13:15:47]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [13:15:47]wFMCommunicate OK [13:15:47]SAM_PROTO_GetShiftState done [13:15:47]FM_GetShiftState done [13:15:47]opened in 1729469754 [13:15:47]opened+sec_in_day 1729556154 [13:15:47]quantity*price = 100051 [13:15:47]sum+1 = 100052 [13:15:47]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 198 21.10.2024 13:15 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 187734 ФПД: 161875210290096 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T131551&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187734&fm=161875210290096&tin=02508201610067®Number=0000000000100030&sum=100000 [13:15:48]StoreToDocumentArchive [13:15:48]shift 460 fd 187734 [13:15:48]save to /storage/0460/doc_00187734 [13:15:48]save last doc name /storage/0460/doc_00187734 to /storage/kkm_last_doc_name [13:15:48]save OK [13:15:48]Clear old archive folders... [13:15:48]ProcessDocumentItem done err = 0, tmpTLVsize=257 [13:15:48]tlvbuf is 01256540 [13:15:48]SAM_PROTO_ClearQueue [13:15:48]wFMCommunicate request_size=4 [13:15:48]MH_SAM_APDU [13:15:48]CAPDU: 80 09 00 00 [13:15:48]Write to MH i2c: E2 08 00 56 58 80 09 00 00 00 00 00 00 20 [13:15:48]Write i2c OK [13:15:48]MH_I2C_Read... [13:15:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:15:48]Read from MH i2c: E2 [13:15:48]MH_I2C_Read... [13:15:48]Read from MH i2c: E2 03 00 [13:15:48]MH_I2C_Read... [13:15:48]Read from MH i2c: E2 03 00 56 58 00 90 00 22 [13:15:48]RAPDU: 90 00 [13:15:48]wFMCommunicate OK [13:15:48]SAM_PROTO_ClearQueue done [13:15:48]KKMCreateOFDPacket [13:15:48]OFDProtocolAddRootSTLVToBuf [13:15:48]FM_MakeSignedData [13:15:48]FM_MakeSignedData [13:15:48]SAM_PROTO_SignData [13:15:48]wFMCommunicate request_size=4 [13:15:48]MH_SAM_APDU [13:15:48]CAPDU: 80 0D 01 02 [13:15:48]Write to MH i2c: E2 08 00 57 58 80 0D 01 02 00 00 00 00 28 [13:15:48]Write i2c OK [13:15:48]MH_I2C_Read... [13:15:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:15:48]Read from MH i2c: E2 [13:15:48]MH_I2C_Read... [13:15:48]Read from MH i2c: E2 03 00 [13:15:48]MH_I2C_Read... [13:15:48]Read from MH i2c: E2 03 00 57 58 00 90 00 23 [13:15:48]RAPDU: 90 00 [13:15:48]wFMCommunicate OK [13:15:48]wFMCommunicate request_size=255 [13:15:48]MH_SAM_APDU [13:15:48]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 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C6 00 00 00 F4 03 04 00 07 54 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 56 DD 02 [13:15:48]Write to MH i2c: E2 02 01 58 58 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C6 00 00 00 F4 03 04 00 07 54 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 56 DD 02 00 00 25 [13:15:48]Write i2c OK [13:15:48]MH_I2C_Read... [13:15:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:15:48]Read from MH i2c: E2 [13:15:48]MH_I2C_Read... [13:15:48]Read from MH i2c: E2 03 00 [13:15:48]MH_I2C_Read... [13:15:48]Read from MH i2c: E2 03 00 58 58 00 90 00 24 [13:15:48]RAPDU: 90 00 [13:15:48]wFMCommunicate OK [13:15:48]wFMCommunicate request_size=16 [13:15:48]MH_SAM_APDU [13:15:48]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 93 39 82 68 43 B0 [13:15:48]Write to MH i2c: E2 13 00 59 58 80 0D 02 02 0B 00 00 35 04 06 00 93 39 82 68 43 B0 00 00 29 [13:15:48]Write i2c OK [13:15:48]MH_I2C_Read... [13:15:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:15:48]Read from MH i2c: E2 [13:15:48]MH_I2C_Read... [13:15:48]Read from MH i2c: E2 03 00 [13:15:48]MH_I2C_Read... [13:15:48]Read from MH i2c: E2 03 00 59 58 00 90 00 25 [13:15:48]RAPDU: 90 00 [13:15:48]wFMCommunicate OK [13:15:48]wFMCommunicate request_size=4 [13:15:48]MH_SAM_APDU [13:15:48]CAPDU: 80 0D 03 02 [13:15:48]Write to MH i2c: E2 08 00 5A 58 80 0D 03 02 00 00 00 00 2D [13:15:48]Write i2c OK [13:15:48]MH_I2C_Read... [13:15:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:15:49]Read from MH i2c: E2 [13:15:49]MH_I2C_Read... [13:15:49]Read from MH i2c: E2 0B 00 [13:15:49]MH_I2C_Read... [13:15:49]Read from MH i2c: E2 0B 00 5A 58 00 82 62 41 16 03 DA 8A 7A 90 00 4A [13:15:49]RAPDU: 82 62 41 16 03 DA 8A 7A 90 00 [13:15:49]wFMCommunicate OK [13:15:49]SAM_PROTO_SignData done [13:15:49]FM_MakeSignedData done [13:15:49]CreateOFDProtocolMessage [13:15:49]wFMCommunicate request_size=4 [13:15:49]MH_SAM_APDU [13:15:49]CAPDU: 80 11 00 00 [13:15:49]Write to MH i2c: E2 08 00 5B 58 80 11 00 00 00 00 00 00 2D [13:15:49]Write i2c OK [13:15:49]MH_I2C_Read... [13:15:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:15:49]Read from MH i2c: E2 [13:15:49]MH_I2C_Read... [13:15:49]Read from MH i2c: E2 17 00 [13:15:49]MH_I2C_Read... [13:15:49]Read from MH i2c: E2 17 00 5B 58 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 7B [13:15:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [13:15:49]wFMCommunicate OK [13:15:49]CreateOFDProtocolMessage done [13:15:49]OFDSenderStorePacket 187734 [13:15:49]StoreOFDPacket docnum=187734 [13:15:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 74 E7 0D 01 74 A5 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 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C6 00 00 00 F4 03 04 00 07 54 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 56 DD 02 00 35 04 06 00 93 39 82 68 43 B0 82 62 41 16 03 DA 8A 7A [13:15:49]CheckFolder [13:15:49]dirname=/storage/ofd_packets [13:15:49]CheckFolder done [13:15:49]ProducePacketName [13:15:49]name=ofd_packets/00187734 [13:15:49]NVStorageSaveData ofd_packets/00187734 [13:15:49]File name is /storage/ofd_packets/00187734 [13:15:49]Write 307 bytes [13:15:49]NVStorageSaveData done [13:15:49]OFDSenderStorePacket done [13:15:49]KKMCreateOFDPacket done [13:15:49]NVStorageSaveData kkm_last_timestamp [13:15:49]File name is /storage/kkm_last_timestamp [13:15:49]Write 4 bytes [13:15:49]NVStorageSaveData done [13:15:49]ExternCall_PrintAddStr [13:15:49]wPrintStart [13:15:49]Write to MH i2c: 01 00 00 5C 58 B4 [13:15:49]Write i2c OK [13:15:49]MH_I2C_Read... [13:15:49]Read from MH i2c: 01 [13:15:49]MH_I2C_Read... [13:15:49]Read from MH i2c: 01 07 00 [13:15:49]MH_I2C_Read... [13:15:49]Read from MH i2c: 01 07 00 5C 58 00 00 00 00 00 FF 0F C9 [13:15:49]RasterBufferAndPrint [13:15:49]line Счет N : (1)209787 [13:15:49]line ИНН: 02508201610067 [13:15:49]line Контрольно-Кассовый Чек [13:15:49]line ПРОДАЖА [13:15:49]line ТРК (МРК, ГНК) : 11 [13:15:49]line Товар: 2710194210 [13:15:49]line D-ENERGY ДТ-К-5 [13:15:49]line 12.960 * 77.20 [13:15:49]line = 1000.51 [13:15:49]line НДС 12% НСП 1% [13:15:49]line > о реализуемом товаре [13:15:49]line ОКРУГЛЕНИЕ: -0.51 [13:15:49]line ИТОГО: 1000.00 [13:15:49]line Внесено: 1000.00 [13:15:49]line СДАЧА: 0.00 [13:15:49]line НСП 1% : 8.85 [13:15:49]line НДС 12% : 106.25 [13:15:49]line Наличными: 1000.00 [13:15:49]line Безнал.: 0.00 [13:15:49]line Место: АЗС № 86 "Партнер Нефть" [13:15:49]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [13:15:49]line СНО: Общий режим [13:15:49]line Чек 198 21.10.2024 13:15 [13:15:49]line Смена: 460 ФФД: 1.0 [13:15:49]line ЗНМ: 0300000155 [13:15:49]line РНМ: 0000000000100030 [13:15:49]line Версия ККМ: 001 [13:15:49]line ФМ: 0000000000965340 [13:15:49]line ФД: 187734 [13:15:49]line ФПД: 161875210290096 [13:15:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T131551&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187734&fm=161875210290096&tin=02508201610067®Number=0000000000100030&sum=100000 [13:15:49]written 0, free lines is 4095 [13:15:49]OFD Sender: Processing packet 187734 [packets to send 1062, broken 1061] [13:15:49]ProducePacketName [13:15:49]name=ofd_packets/00187734 [13:15:49]OFD Sender: To server: pG, [13:15:49]CommunicateWithHost lk.salyk.kg:30040 [13:15:49]ConnectInit lk.salyk.kg [13:15:49]Connected sock=10 [13:15:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 74 E7 0D 01 74 A5 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 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C6 00 00 00 F4 03 04 00 07 54 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 56 DD 02 00 35 04 06 00 93 39 82 68 43 B0 82 62 41 16 03 DA 8A 7A [13:15:49]Write to MH i2c: 01 00 00 87 58 DF [13:15:49]Write i2c OK [13:15:49]MH_I2C_Read... [13:15:49]Read from MH i2c: 01 [13:15:49]MH_I2C_Read... [13:15:49]Read from MH i2c: 01 07 00 [13:15:49]MH_I2C_Read... [13:15:49]Read from MH i2c: 01 07 00 87 58 00 00 00 00 00 70 0C 62 [13:15:49]RasterBufferAndPrint [13:15:49]line [13:15:49]line [13:15:49]line [13:15:49]line [13:15:49]line [13:15:49]written 0, free lines is 3187 [13:15:49]MH_Cut [13:15:49]Write to MH i2c: D1 01 00 8E 58 01 B8 [13:15:49]Write i2c OK [13:15:49]MH_I2C_Read... [13:15:49]Read from MH i2c: D1 [13:15:49]MH_I2C_Read... [13:15:49]Read from MH i2c: D1 01 00 [13:15:49]MH_I2C_Read... [13:15:49]Read from MH i2c: D1 01 00 8E 58 00 B7 [13:15:49]Write to MH i2c: 01 00 00 8F 58 E7 [13:15:49]Write i2c OK [13:15:49]MH_I2C_Read... [13:15:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 83 F5 47 00 43 B4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 56 DD 02 00 F4 03 04 00 F7 FD 15 67 B6 04 01 00 00 D0 A2 91 B3 41 6D 17 4D [13:15:49]CommunicateWithHost err = 0 [13:15:49]CheckOFDResponse [13:15:49]1017 (14) - 77093643461234 [13:15:49]1041 (16) - 0000000000965340 [13:15:49]1040 (4) - 187734 [13:15:49]1012 (4) - 21.10.2024 07:08 [13:15:49]1206 (1) - 0 [13:15:49]OFD Sender: Remove packet 187734 [13:15:49]ProducePacketName [13:15:49]name=ofd_packets/00187734 [13:15:49]NVStorageDeleteData [13:15:50]OFD Sender: No OFD packet to send [13:15:50]*** Cut start [13:15:50]*** Partial cut [13:15:50]*** CUTSNS_PIN = 1 [13:15:50]*** CUTSNS_PIN = 0 [13:15:51]*** Brake cut motor [13:15:51]Read from MH i2c: 01 [13:15:51]MH_I2C_Read... [13:15:51]*** Stop cut motor [13:15:51]*** Cut end [13:15:51]Read from MH i2c: 01 07 00 [13:15:51]MH_I2C_Read... [13:15:51]Read from MH i2c: 01 07 00 8F 58 00 00 00 00 00 FF 0F FC [13:15:51]process_action close_receipt done [13:15:51]requested_data is exist [13:15:51]produce_requested_data [13:15:51]requested_item fm.sn is exist - process it [13:15:51]wFMCommunicate request_size=4 [13:15:51]MH_SAM_APDU [13:15:51]CAPDU: 80 11 00 00 [13:15:51]Write to MH i2c: E2 08 00 90 58 80 11 00 00 00 00 00 00 62 [13:15:51]Write i2c OK [13:15:51]MH_I2C_Read... [13:15:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:15:51]Read from MH i2c: E2 [13:15:51]MH_I2C_Read... [13:15:51]Read from MH i2c: E2 17 00 [13:15:51]MH_I2C_Read... [13:15:51]Read from MH i2c: E2 17 00 90 58 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 B0 [13:15:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [13:15:51]wFMCommunicate OK [13:15:51]requested_item fd.num is exist - process it [13:15:51]SAM_PROTO_GetFieldsCounters [13:15:51]wFMCommunicate request_size=4 [13:15:51]MH_SAM_APDU [13:15:51]CAPDU: 80 13 00 00 [13:15:51]Write to MH i2c: E2 08 00 91 58 80 13 00 00 00 00 00 00 65 [13:15:51]Write i2c OK [13:15:51]MH_I2C_Read... [13:15:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:15:51]Read from MH i2c: E2 [13:15:51]MH_I2C_Read... [13:15:51]Read from MH i2c: E2 62 00 [13:15:51]MH_I2C_Read... [13:15:51]Read from MH i2c: E2 62 00 91 58 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 56 DD 02 00 0E 04 04 00 CC 01 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 C0 [13:15:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 56 DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 C6 00 00 00 5E 04 04 00 C6 00 00 00 57 04 04 00 C7 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:15:51]wFMCommunicate OK [13:15:51]SAM_PROTO_GetFieldsCounters done [13:15:51]requested_item shift.num is exist - process it [13:15:51]requested_item shift.opened is exist - process it [13:15:51]req_shift_opened [13:15:51]FM_GetShiftState [13:15:51]SAM_PROTO_GetShiftState [13:15:51]wFMCommunicate request_size=4 [13:15:51]MH_SAM_APDU [13:15:51]CAPDU: 80 13 01 00 [13:15:51]Write to MH i2c: E2 08 00 92 58 80 13 01 00 00 00 00 00 67 [13:15:51]Write i2c OK [13:15:51]MH_I2C_Read... [13:15:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:15:51]Read from MH i2c: E2 [13:15:51]MH_I2C_Read... [13:15:51]Read from MH i2c: E2 0E 00 [13:15:51]MH_I2C_Read... [13:15:51]Read from MH i2c: E2 0E 00 92 58 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 C6 [13:15:51]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [13:15:51]wFMCommunicate OK [13:15:51]SAM_PROTO_GetShiftState done [13:15:51]FM_GetShiftState done [13:15:51]req_shift_opened done [13:15:51]requested_item shift.open_date is exist - process it [13:15:51]req_shift_open_date [13:15:51]req_shift_open_date done [13:15:51]produce_requested_data done [13:15:51]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187734,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [13:15:51]process_action_free close_receipt [13:15:51]json_value_free [13:15:51]json_value_free done [13:15:51]process_json_proto returns [13:15:51]Send response to host [13:15:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187734,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [13:15:51]free response buf [13:15:51]execute_script done [13:15:51]execute_script returns [13:15:51]free content buf [13:15:51]Sock 9.Close socket [13:15:51]Sock 9.Thread stoped [13:15:51]accept exits with 8 [13:15:51]New connection [13:15:51]New thread 3067014500 created [13:15:51]Thread 3067157860 joined [13:15:51]Waiting for new connection... [13:15:51] Sock 8.Parse request [13:15:51]Sock 8.Check first char [13:15:51]Sock 8.First char is OK [13:15:51]request: POST /json_proto HTTP/1.0 [13:15:51]Method: POST [13:15:51]URL: /json_proto [13:15:51]Method is POST - this is cgi request [13:15:51]url: /json_proto [13:15:51]query_string will be loaded in cgi processing [13:15:51]execute_cgi json_proto POST (null) [13:15:51]execute_cgi path=json_proto method=POST [13:15:51]POST find Content-Length [13:15:51]Host: 172.17.42.131:8080 [13:15:51]Content-Length: 826 [13:15:51]Content-Type: application/json [13:15:51] [13:15:51]POST finish read [13:15:51]Found Content-Length = 826 [13:15:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209785", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 123.060, "sum" : 9500.23, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 9500.23 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:15:51]execute_script... [13:15: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)209785", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 123.060, "sum" : 9500.23, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 9500.23 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:15:51]POST & json_proto [13:15:51]process_json_proto [13:15:51]json parsed OK: [13:15:51]protocol is kg_v1.0 [13:15:51]action value=close_receipt [13:15:51]process_action close_receipt [13:15:51]cmd_close_receipt [13:15:51]MH_GetDate [13:15:51]Write to MH i2c: F0 00 00 93 58 DA [13:15:51]Write i2c OK [13:15:51]MH_I2C_Read... [13:15:51]Read from MH i2c: F0 [13:15:51]MH_I2C_Read... [13:15:51]Read from MH i2c: F0 09 00 [13:15:51]MH_I2C_Read... [13:15:51]Read from MH i2c: F0 09 00 93 58 00 0C 54 16 67 A0 18 CA 66 A8 [13:15:51]GetLastDocTimeStamp 1729516551 [13:15:51]current date 1729516556 [13:15:51]FM_GetShiftState [13:15:51]SAM_PROTO_GetShiftState [13:15:51]wFMCommunicate request_size=4 [13:15:51]MH_SAM_APDU [13:15:51]CAPDU: 80 13 01 00 [13:15:51]Write to MH i2c: E2 08 00 94 58 80 13 01 00 00 00 00 00 69 [13:15:51]Write i2c OK [13:15:51]MH_I2C_Read... [13:15:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:15:52]Read from MH i2c: E2 [13:15:52]MH_I2C_Read... [13:15:52]Read from MH i2c: E2 0E 00 [13:15:52]MH_I2C_Read... [13:15:52]Read from MH i2c: E2 0E 00 94 58 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 C8 [13:15:52]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [13:15:52]wFMCommunicate OK [13:15:52]SAM_PROTO_GetShiftState done [13:15:52]FM_GetShiftState done [13:15:52]opened in 1729469754 [13:15:52]opened+sec_in_day 1729556154 [13:15:52]quantity*price = 950023 [13:15:52]sum+1 = 950024 [13:15:52]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 9500.23 НСП 1% : 84.07 НДС 12% : 1008.87 Наличными: 0.00 Безнал.: 9500.23 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 199 21.10.2024 13:15 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000965340 ФД: 187735 ФПД: 127238839064491 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T131556&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187735&fm=127238839064491&tin=02508201610067®Number=0000000000100030&sum=950023 [13:15:53]StoreToDocumentArchive [13:15:53]shift 460 fd 187735 [13:15:53]save to /storage/0460/doc_00187735 [13:15:53]save last doc name /storage/0460/doc_00187735 to /storage/kkm_last_doc_name [13:15:53]save OK [13:15:53]Clear old archive folders... [13:15:53]ProcessDocumentItem done err = 0, tmpTLVsize=257 [13:15:53]tlvbuf is 010EF550 [13:15:53]SAM_PROTO_ClearQueue [13:15:53]wFMCommunicate request_size=4 [13:15:53]MH_SAM_APDU [13:15:53]CAPDU: 80 09 00 00 [13:15:53]Write to MH i2c: E2 08 00 A1 58 80 09 00 00 00 00 00 00 6B [13:15:53]Write i2c OK [13:15:53]MH_I2C_Read... [13:15:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:15:53]Read from MH i2c: E2 [13:15:53]MH_I2C_Read... [13:15:53]Read from MH i2c: E2 03 00 [13:15:53]MH_I2C_Read... [13:15:53]Read from MH i2c: E2 03 00 A1 58 00 90 00 6D [13:15:53]RAPDU: 90 00 [13:15:53]wFMCommunicate OK [13:15:53]SAM_PROTO_ClearQueue done [13:15:53]KKMCreateOFDPacket [13:15:53]OFDProtocolAddRootSTLVToBuf [13:15:53]FM_MakeSignedData [13:15:53]FM_MakeSignedData [13:15:53]SAM_PROTO_SignData [13:15:53]wFMCommunicate request_size=4 [13:15:53]MH_SAM_APDU [13:15:53]CAPDU: 80 0D 01 02 [13:15:53]Write to MH i2c: E2 08 00 A2 58 80 0D 01 02 00 00 00 00 73 [13:15:53]Write i2c OK [13:15:53]MH_I2C_Read... [13:15:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:15:53]Read from MH i2c: E2 [13:15:53]MH_I2C_Read... [13:15:53]Read from MH i2c: E2 03 00 [13:15:53]MH_I2C_Read... [13:15:53]Read from MH i2c: E2 03 00 A2 58 00 90 00 6E [13:15:53]RAPDU: 90 00 [13:15:53]wFMCommunicate OK [13:15:53]wFMCommunicate request_size=255 [13:15:53]MH_SAM_APDU [13:15:53]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 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 B4 E0 01 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 07 7F 0E 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 07 7F 0E 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 20 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 17 8A 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 07 7F 0E 00 00 00 1F 04 02 00 01 00 12 04 04 00 C7 00 00 00 F4 03 04 00 0C 54 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 57 DD 02 [13:15:53]Write to MH i2c: E2 02 01 A3 58 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 B4 E0 01 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 07 7F 0E 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 07 7F 0E 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 20 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 17 8A 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 07 7F 0E 00 00 00 1F 04 02 00 01 00 12 04 04 00 C7 00 00 00 F4 03 04 00 0C 54 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 57 DD 02 00 00 C5 [13:15:53]Write i2c OK [13:15:53]MH_I2C_Read... [13:15:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:15:53]Read from MH i2c: E2 [13:15:53]MH_I2C_Read... [13:15:53]Read from MH i2c: E2 03 00 [13:15:53]MH_I2C_Read... [13:15:53]Read from MH i2c: E2 03 00 A3 58 00 90 00 6F [13:15:53]RAPDU: 90 00 [13:15:53]wFMCommunicate OK [13:15:53]wFMCommunicate request_size=16 [13:15:53]MH_SAM_APDU [13:15:53]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 73 B9 19 CD D7 AB [13:15:53]Write to MH i2c: E2 13 00 A4 58 80 0D 02 02 0B 00 00 35 04 06 00 73 B9 19 CD D7 AB 00 00 5F [13:15:53]Write i2c OK [13:15:53]MH_I2C_Read... [13:15:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:15:53]Read from MH i2c: E2 [13:15:53]MH_I2C_Read... [13:15:53]Read from MH i2c: E2 03 00 [13:15:53]MH_I2C_Read... [13:15:53]Read from MH i2c: E2 03 00 A4 58 00 90 00 70 [13:15:53]RAPDU: 90 00 [13:15:53]wFMCommunicate OK [13:15:53]wFMCommunicate request_size=4 [13:15:53]MH_SAM_APDU [13:15:53]CAPDU: 80 0D 03 02 [13:15:53]Write to MH i2c: E2 08 00 A5 58 80 0D 03 02 00 00 00 00 78 [13:15:53]Write i2c OK [13:15:53]MH_I2C_Read... [13:15:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:15:53]Read from MH i2c: E2 [13:15:53]MH_I2C_Read... [13:15:53]Read from MH i2c: E2 0B 00 [13:15:53]MH_I2C_Read... [13:15:53]Read from MH i2c: E2 0B 00 A5 58 00 E2 2B 07 C1 C6 ED A1 82 90 00 24 [13:15:53]RAPDU: E2 2B 07 C1 C6 ED A1 82 90 00 [13:15:53]wFMCommunicate OK [13:15:53]SAM_PROTO_SignData done [13:15:53]FM_MakeSignedData done [13:15:53]CreateOFDProtocolMessage [13:15:53]wFMCommunicate request_size=4 [13:15:53]MH_SAM_APDU [13:15:53]CAPDU: 80 11 00 00 [13:15:53]Write to MH i2c: E2 08 00 A6 58 80 11 00 00 00 00 00 00 78 [13:15:53]Write i2c OK [13:15:53]MH_I2C_Read... [13:15:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:15:53]Read from MH i2c: E2 [13:15:54]MH_I2C_Read... [13:15:54]Read from MH i2c: E2 17 00 [13:15:54]MH_I2C_Read... [13:15:54]Read from MH i2c: E2 17 00 A6 58 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 C6 [13:15:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [13:15:54]wFMCommunicate OK [13:15:54]CreateOFDProtocolMessage done [13:15:54]OFDSenderStorePacket 187735 [13:15:54]StoreOFDPacket docnum=187735 [13:15:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 B1 00 0D 01 5E 9F 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 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 B4 E0 01 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 07 7F 0E 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 07 7F 0E 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 20 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 17 8A 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 07 7F 0E 00 00 00 1F 04 02 00 01 00 12 04 04 00 C7 00 00 00 F4 03 04 00 0C 54 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 57 DD 02 00 35 04 06 00 73 B9 19 CD D7 AB E2 2B 07 C1 C6 ED A1 82 [13:15:54]CheckFolder [13:15:54]dirname=/storage/ofd_packets [13:15:54]CheckFolder done [13:15:54]ProducePacketName [13:15:54]name=ofd_packets/00187735 [13:15:54]NVStorageSaveData ofd_packets/00187735 [13:15:54]File name is /storage/ofd_packets/00187735 [13:15:54]Write 307 bytes [13:15:54]NVStorageSaveData done [13:15:54]OFDSenderStorePacket done [13:15:54]KKMCreateOFDPacket done [13:15:54]NVStorageSaveData kkm_last_timestamp [13:15:54]File name is /storage/kkm_last_timestamp [13:15:54]Write 4 bytes [13:15:54]NVStorageSaveData done [13:15:54]ExternCall_PrintAddStr [13:15:54]wPrintStart [13:15:54]Write to MH i2c: 01 00 00 A7 58 FF [13:15:54]Write i2c OK [13:15:54]MH_I2C_Read... [13:15:54]Read from MH i2c: 01 [13:15:54]MH_I2C_Read... [13:15:54]Read from MH i2c: 01 07 00 [13:15:54]MH_I2C_Read... [13:15:54]Read from MH i2c: 01 07 00 A7 58 00 00 00 00 00 FF 0F 14 [13:15:54]RasterBufferAndPrint [13:15:54]line Счет N : (1)209785 [13:15:54]line ИНН: 02508201610067 [13:15:54]line Контрольно-Кассовый Чек [13:15:54]line ПРОДАЖА [13:15:54]line ТРК (МРК, ГНК) : 41 [13:15:54]line Товар: 2710194210 [13:15:54]line D-ENERGY ДТ-К-5 [13:15:54]line 123.060 * 77.20 [13:15:54]line = 9500.23 [13:15:54]line НДС 12% НСП 1% [13:15:54]line > о реализуемом товаре [13:15:54]line ИТОГО: 9500.23 [13:15:54]line НСП 1% : 84.07 [13:15:54]line НДС 12% : 1008.87 [13:15:54]line Наличными: 0.00 [13:15:54]line Безнал.: 9500.23 [13:15:54]line Место: АЗС № 86 "Партнер Нефть" [13:15:54]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [13:15:54]line СНО: Общий режим [13:15:54]line Чек 199 21.10.2024 13:15 [13:15:54]line Смена: 460 ФФД: 1.0 [13:15:54]line ЗНМ: 0300000155 [13:15:54]line РНМ: 0000000000100030 [13:15:54]line Версия ККМ: 001 [13:15:54]line Платежная система: Бакай Банк [13:15:54]line ФМ: 0000000000965340 [13:15:54]line ФД: 187735 [13:15:54]line ФПД: 127238839064491 [13:15:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T131556&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187735&fm=127238839064491&tin=02508201610067®Number=0000000000100030&sum=950023 [13:15:54]OFD Sender: Processing packet 187735 [packets to send 1062, broken 1061] [13:15:54]ProducePacketName [13:15:54]name=ofd_packets/00187735 [13:15:54]OFD Sender: To server: pG, [13:15:54]CommunicateWithHost lk.salyk.kg:30040 [13:15:54]ConnectInit lk.salyk.kg [13:15:54]written 0, free lines is 4095 [13:15:54]Connected sock=10 [13:15:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 B1 00 0D 01 5E 9F 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 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 B4 E0 01 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 07 7F 0E 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 07 7F 0E 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 20 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 17 8A 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 07 7F 0E 00 00 00 1F 04 02 00 01 00 12 04 04 00 C7 00 00 00 F4 03 04 00 0C 54 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 57 DD 02 00 35 04 06 00 73 B9 19 CD D7 AB E2 2B 07 C1 C6 ED A1 82 [13:15:54]Write to MH i2c: 01 00 00 D1 58 29 [13:15:54]Write i2c OK [13:15:54]MH_I2C_Read... [13:15:54]Read from MH i2c: 01 [13:15:54]MH_I2C_Read... [13:15:54]Read from MH i2c: 01 07 00 [13:15:54]MH_I2C_Read... [13:15:54]Read from MH i2c: 01 07 00 D1 58 00 00 00 00 00 97 0C D3 [13:15:54]RasterBufferAndPrint [13:15:54]line [13:15:54]line [13:15:54]line [13:15:54]line [13:15:54]line [13:15:54]written 0, free lines is 3230 [13:15:54]MH_Cut [13:15:54]Write to MH i2c: D1 01 00 D8 58 01 02 [13:15:54]Write i2c OK [13:15:54]MH_I2C_Read... [13:15:54]Read from MH i2c: D1 [13:15:54]MH_I2C_Read... [13:15:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 E5 3C 47 00 22 E9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 57 DD 02 00 F4 03 04 00 FC FD 15 67 B6 04 01 00 00 1A 27 62 0E 15 48 6A 19 [13:15:54]CommunicateWithHost err = 0 [13:15:54]CheckOFDResponse [13:15:54]1017 (14) - 77093643461234 [13:15:54]1041 (16) - 0000000000965340 [13:15:54]1040 (4) - 187735 [13:15:54]1012 (4) - 21.10.2024 07:08 [13:15:54]1206 (1) - 0 [13:15:54]OFD Sender: Remove packet 187735 [13:15:54]ProducePacketName [13:15:54]name=ofd_packets/00187735 [13:15:54]NVStorageDeleteData [13:15:54]Read from MH i2c: D1 01 00 [13:15:54]MH_I2C_Read... [13:15:54]Read from MH i2c: D1 01 00 D8 58 00 01 [13:15:54]Write to MH i2c: 01 00 00 D9 58 31 [13:15:54]Write i2c OK [13:15:54]MH_I2C_Read... [13:15:55]OFD Sender: No OFD packet to send [13:15:55]*** Cut start [13:15:55]*** Partial cut [13:15:55]*** CUTSNS_PIN = 1 [13:15:56]*** CUTSNS_PIN = 0 [13:15:56]*** Brake cut motor [13:15:56]Read from MH i2c: 01 [13:15:56]MH_I2C_Read... [13:15:56]*** Stop cut motor [13:15:56]*** Cut end [13:15:56]Read from MH i2c: 01 07 00 [13:15:56]MH_I2C_Read... [13:15:56]Read from MH i2c: 01 07 00 D9 58 00 00 00 00 00 FF 0F 46 [13:15:56]process_action close_receipt done [13:15:56]requested_data is exist [13:15:56]produce_requested_data [13:15:56]requested_item fm.sn is exist - process it [13:15:56]wFMCommunicate request_size=4 [13:15:56]MH_SAM_APDU [13:15:56]CAPDU: 80 11 00 00 [13:15:56]Write to MH i2c: E2 08 00 DA 58 80 11 00 00 00 00 00 00 AC [13:15:56]Write i2c OK [13:15:56]MH_I2C_Read... [13:15:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:15:56]Read from MH i2c: E2 [13:15:56]MH_I2C_Read... [13:15:56]Read from MH i2c: E2 17 00 [13:15:56]MH_I2C_Read... [13:15:56]Read from MH i2c: E2 17 00 DA 58 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 FA [13:15:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [13:15:56]wFMCommunicate OK [13:15:56]requested_item fd.num is exist - process it [13:15:56]SAM_PROTO_GetFieldsCounters [13:15:56]wFMCommunicate request_size=4 [13:15:56]MH_SAM_APDU [13:15:56]CAPDU: 80 13 00 00 [13:15:56]Write to MH i2c: E2 08 00 DB 58 80 13 00 00 00 00 00 00 AF [13:15:56]Write i2c OK [13:15:56]MH_I2C_Read... [13:15:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:15:56]Read from MH i2c: E2 [13:15:56]MH_I2C_Read... [13:15:56]Read from MH i2c: E2 62 00 [13:15:56]MH_I2C_Read... [13:15:56]Read from MH i2c: E2 62 00 DB 58 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 57 DD 02 00 0E 04 04 00 CC 01 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 0E [13:15:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 57 DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 C7 00 00 00 5E 04 04 00 C7 00 00 00 57 04 04 00 C8 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:15:56]wFMCommunicate OK [13:15:56]SAM_PROTO_GetFieldsCounters done [13:15:56]requested_item shift.num is exist - process it [13:15:56]requested_item shift.opened is exist - process it [13:15:56]req_shift_opened [13:15:56]FM_GetShiftState [13:15:56]SAM_PROTO_GetShiftState [13:15:56]wFMCommunicate request_size=4 [13:15:56]MH_SAM_APDU [13:15:56]CAPDU: 80 13 01 00 [13:15:56]Write to MH i2c: E2 08 00 DC 58 80 13 01 00 00 00 00 00 B1 [13:15:56]Write i2c OK [13:15:56]MH_I2C_Read... [13:15:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:15:56]Read from MH i2c: E2 [13:15:56]MH_I2C_Read... [13:15:56]Read from MH i2c: E2 0E 00 [13:15:56]MH_I2C_Read... [13:15:56]Read from MH i2c: E2 0E 00 DC 58 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 10 [13:15:56]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [13:15:56]wFMCommunicate OK [13:15:56]SAM_PROTO_GetShiftState done [13:15:56]FM_GetShiftState done [13:15:56]req_shift_opened done [13:15:56]requested_item shift.open_date is exist - process it [13:15:56]req_shift_open_date [13:15:56]req_shift_open_date done [13:15:56]produce_requested_data done [13:15:56]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187735,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [13:15:56]process_action_free close_receipt [13:15:56]json_value_free [13:15:56]json_value_free done [13:15:56]process_json_proto returns [13:15:56]Send response to host [13:15:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187735,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [13:15:56]free response buf [13:15:56]execute_script done [13:15:56]execute_script returns [13:15:56]free content buf [13:15:56]Sock 8.Close socket [13:15:56]Sock 8.Thread stoped [13:16:00]OFD Sender: No OFD packet to send [13:16:05]OFD Sender: No OFD packet to send [13:16:10]OFD Sender: No OFD packet to send [13:16:15]OFD Sender: No OFD packet to send [13:16:20]OFD Sender: No OFD packet to send [13:16:25]OFD Sender: No OFD packet to send [13:16:30]OFD Sender: No OFD packet to send [13:16:35]OFD Sender: No OFD packet to send [13:16:36]accept exits with 9 [13:16:36]New connection [13:16:36]New thread 3067157860 created [13:16:36]Thread 3067014500 joined [13:16:36]Waiting for new connection... [13:16:36] Sock 9.Parse request [13:16:36]Sock 9.Check first char [13:16:36]Sock 9.First char is OK [13:16:36]request: POST /json_proto HTTP/1.0 [13:16:36]Method: POST [13:16:36]URL: /json_proto [13:16:36]Method is POST - this is cgi request [13:16:36]url: /json_proto [13:16:36]query_string will be loaded in cgi processing [13:16:36]execute_cgi json_proto POST (null) [13:16:36]execute_cgi path=json_proto method=POST [13:16:36]POST find Content-Length [13:16:36]Host: 172.17.42.131:8080 [13:16:36]Content-Length: 772 [13:16:36]Content-Type: application/json [13:16:36] [13:16:36]POST finish read [13:16:36]Found Content-Length = 772 [13:16:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209788", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 6.480, "sum" : 500.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 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.26 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:16:36]execute_script... [13:16: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)209788", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 6.480, "sum" : 500.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 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.26 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:16:36]POST & json_proto [13:16:36]process_json_proto [13:16:36]json parsed OK: [13:16:36]protocol is kg_v1.0 [13:16:36]action value=close_receipt [13:16:36]process_action close_receipt [13:16:36]cmd_close_receipt [13:16:36]MH_GetDate [13:16:36]Write to MH i2c: F0 00 00 DD 58 24 [13:16:36]Write i2c OK [13:16:36]MH_I2C_Read... [13:16:36]Read from MH i2c: F0 [13:16:36]MH_I2C_Read... [13:16:36]Read from MH i2c: F0 09 00 [13:16:36]MH_I2C_Read... [13:16:36]Read from MH i2c: F0 09 00 DD 58 00 38 54 16 67 A0 18 CA 66 1E [13:16:36]GetLastDocTimeStamp 1729516556 [13:16:36]current date 1729516600 [13:16:36]FM_GetShiftState [13:16:36]SAM_PROTO_GetShiftState [13:16:36]wFMCommunicate request_size=4 [13:16:36]MH_SAM_APDU [13:16:36]CAPDU: 80 13 01 00 [13:16:36]Write to MH i2c: E2 08 00 DE 58 80 13 01 00 00 00 00 00 B3 [13:16:36]Write i2c OK [13:16:36]MH_I2C_Read... [13:16:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:16:36]Read from MH i2c: E2 [13:16:36]MH_I2C_Read... [13:16:36]Read from MH i2c: E2 0E 00 [13:16:36]MH_I2C_Read... [13:16:36]Read from MH i2c: E2 0E 00 DE 58 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 12 [13:16:36]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [13:16:36]wFMCommunicate OK [13:16:36]SAM_PROTO_GetShiftState done [13:16:36]FM_GetShiftState done [13:16:36]opened in 1729469754 [13:16:36]opened+sec_in_day 1729556154 [13:16:36]quantity*price = 50025 [13:16:36]sum+1 = 50027 [13:16:36]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.26 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 0.00 Безнал.: 500.26 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 200 21.10.2024 13:16 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000965340 ФД: 187736 ФПД: 215419830720393 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T131640&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187736&fm=215419830720393&tin=02508201610067®Number=0000000000100030&sum=50026 [13:16:37]StoreToDocumentArchive [13:16:37]shift 460 fd 187736 [13:16:37]save to /storage/0460/doc_00187736 [13:16:37]save last doc name /storage/0460/doc_00187736 to /storage/kkm_last_doc_name [13:16:37]save OK [13:16:37]Clear old archive folders... [13:16:37]ProcessDocumentItem done err = 0, tmpTLVsize=257 [13:16:37]tlvbuf is 01281870 [13:16:37]SAM_PROTO_ClearQueue [13:16:37]wFMCommunicate request_size=4 [13:16:37]MH_SAM_APDU [13:16:37]CAPDU: 80 09 00 00 [13:16:37]Write to MH i2c: E2 08 00 EB 58 80 09 00 00 00 00 00 00 B5 [13:16:37]Write i2c OK [13:16:37]MH_I2C_Read... [13:16:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:16:37]Read from MH i2c: E2 [13:16:37]MH_I2C_Read... [13:16:37]Read from MH i2c: E2 03 00 [13:16:37]MH_I2C_Read... [13:16:37]Read from MH i2c: E2 03 00 EB 58 00 90 00 B7 [13:16:37]RAPDU: 90 00 [13:16:37]wFMCommunicate OK [13:16:37]SAM_PROTO_ClearQueue done [13:16:37]KKMCreateOFDPacket [13:16:37]OFDProtocolAddRootSTLVToBuf [13:16:37]FM_MakeSignedData [13:16:37]FM_MakeSignedData [13:16:37]SAM_PROTO_SignData [13:16:37]wFMCommunicate request_size=4 [13:16:37]MH_SAM_APDU [13:16:37]CAPDU: 80 0D 01 02 [13:16:37]Write to MH i2c: E2 08 00 EC 58 80 0D 01 02 00 00 00 00 BD [13:16:37]Write i2c OK [13:16:37]MH_I2C_Read... [13:16:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:16:37]Read from MH i2c: E2 [13:16:37]MH_I2C_Read... [13:16:37]Read from MH i2c: E2 03 00 [13:16:37]MH_I2C_Read... [13:16:37]Read from MH i2c: E2 03 00 EC 58 00 90 00 B8 [13:16:37]RAPDU: 90 00 [13:16:37]wFMCommunicate OK [13:16:37]wFMCommunicate request_size=255 [13:16:37]MH_SAM_APDU [13:16:37]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 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 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 6A C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 6A C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C8 00 00 00 F4 03 04 00 38 54 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 58 DD 02 [13:16:37]Write to MH i2c: E2 02 01 ED 58 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 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 6A C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 6A C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C8 00 00 00 F4 03 04 00 38 54 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 58 DD 02 00 00 D3 [13:16:37]Write i2c OK [13:16:37]MH_I2C_Read... [13:16:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:16:37]Read from MH i2c: E2 [13:16:37]MH_I2C_Read... [13:16:37]Read from MH i2c: E2 03 00 [13:16:37]MH_I2C_Read... [13:16:37]Read from MH i2c: E2 03 00 ED 58 00 90 00 B9 [13:16:37]RAPDU: 90 00 [13:16:37]wFMCommunicate OK [13:16:37]wFMCommunicate request_size=16 [13:16:37]MH_SAM_APDU [13:16:37]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 C3 EC 56 7C D7 89 [13:16:37]Write to MH i2c: E2 13 00 EE 58 80 0D 02 02 0B 00 00 35 04 06 00 C3 EC 56 7C D7 89 00 00 F6 [13:16:37]Write i2c OK [13:16:37]MH_I2C_Read... [13:16:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:16:37]Read from MH i2c: E2 [13:16:37]MH_I2C_Read... [13:16:37]Read from MH i2c: E2 03 00 [13:16:37]MH_I2C_Read... [13:16:37]Read from MH i2c: E2 03 00 EE 58 00 90 00 BA [13:16:37]RAPDU: 90 00 [13:16:37]wFMCommunicate OK [13:16:37]wFMCommunicate request_size=4 [13:16:37]MH_SAM_APDU [13:16:37]CAPDU: 80 0D 03 02 [13:16:37]Write to MH i2c: E2 08 00 EF 58 80 0D 03 02 00 00 00 00 C2 [13:16:37]Write i2c OK [13:16:37]MH_I2C_Read... [13:16:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:16:37]Read from MH i2c: E2 [13:16:37]MH_I2C_Read... [13:16:37]Read from MH i2c: E2 0B 00 [13:16:37]MH_I2C_Read... [13:16:37]Read from MH i2c: E2 0B 00 EF 58 00 F6 58 CB 60 13 7D EC 17 90 00 CF [13:16:37]RAPDU: F6 58 CB 60 13 7D EC 17 90 00 [13:16:37]wFMCommunicate OK [13:16:37]SAM_PROTO_SignData done [13:16:37]FM_MakeSignedData done [13:16:37]CreateOFDProtocolMessage [13:16:37]wFMCommunicate request_size=4 [13:16:37]MH_SAM_APDU [13:16:37]CAPDU: 80 11 00 00 [13:16:37]Write to MH i2c: E2 08 00 F0 58 80 11 00 00 00 00 00 00 C2 [13:16:37]Write i2c OK [13:16:37]MH_I2C_Read... [13:16:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:16:37]Read from MH i2c: E2 [13:16:37]MH_I2C_Read... [13:16:37]Read from MH i2c: E2 17 00 [13:16:37]MH_I2C_Read... [13:16:37]Read from MH i2c: E2 17 00 F0 58 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 10 [13:16:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [13:16:38]wFMCommunicate OK [13:16:38]CreateOFDProtocolMessage done [13:16:38]OFDSenderStorePacket 187736 [13:16:38]StoreOFDPacket docnum=187736 [13:16:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 8B 00 0D 01 8F B8 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 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 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 6A C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 6A C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C8 00 00 00 F4 03 04 00 38 54 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 58 DD 02 00 35 04 06 00 C3 EC 56 7C D7 89 F6 58 CB 60 13 7D EC 17 [13:16:38]CheckFolder [13:16:38]dirname=/storage/ofd_packets [13:16:38]CheckFolder done [13:16:38]ProducePacketName [13:16:38]name=ofd_packets/00187736 [13:16:38]NVStorageSaveData ofd_packets/00187736 [13:16:38]File name is /storage/ofd_packets/00187736 [13:16:38]Write 307 bytes [13:16:38]NVStorageSaveData done [13:16:38]OFDSenderStorePacket done [13:16:38]KKMCreateOFDPacket done [13:16:38]NVStorageSaveData kkm_last_timestamp [13:16:38]File name is /storage/kkm_last_timestamp [13:16:38]Write 4 bytes [13:16:38]NVStorageSaveData done [13:16:38]ExternCall_PrintAddStr [13:16:38]wPrintStart [13:16:38]Write to MH i2c: 01 00 00 F1 58 49 [13:16:38]Write i2c OK [13:16:38]MH_I2C_Read... [13:16:38]Read from MH i2c: 01 [13:16:38]MH_I2C_Read... [13:16:38]Read from MH i2c: 01 07 00 [13:16:38]MH_I2C_Read... [13:16:38]Read from MH i2c: 01 07 00 F1 58 00 00 00 00 00 FF 0F 5E [13:16:38]RasterBufferAndPrint [13:16:38]line Счет N : (1)209788 [13:16:38]line ИНН: 02508201610067 [13:16:38]line Контрольно-Кассовый Чек [13:16:38]line ПРОДАЖА [13:16:38]line ТРК (МРК, ГНК) : 41 [13:16:38]line Товар: 2710194210 [13:16:38]line D-ENERGY ДТ-К-5 [13:16:38]line 6.480 * 77.20 [13:16:38]line = 500.26 [13:16:38]line НДС 12% НСП 1% [13:16:38]line > о реализуемом товаре [13:16:38]line ИТОГО: 500.26 [13:16:38]line НСП 1% : 4.43 [13:16:38]line НДС 12% : 53.12 [13:16:38]line Наличными: 0.00 [13:16:38]line Безнал.: 500.26 [13:16:38]line Место: АЗС № 86 "Партнер Нефть" [13:16:38]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [13:16:38]line СНО: Общий режим [13:16:38]line Чек 200 21.10.2024 13:16 [13:16:38]line Смена: 460 ФФД: 1.0 [13:16:38]line ЗНМ: 0300000155 [13:16:38]line РНМ: 0000000000100030 [13:16:38]line Версия ККМ: 001 [13:16:38]line Платежная система: Mbank [13:16:38]line ФМ: 0000000000965340 [13:16:38]line ФД: 187736 [13:16:38]line ФПД: 215419830720393 [13:16:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T131640&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187736&fm=215419830720393&tin=02508201610067®Number=0000000000100030&sum=50026 [13:16:38]written 0, free lines is 4095 [13:16:38]OFD Sender: Processing packet 187736 [packets to send 1062, broken 1061] [13:16:38]ProducePacketName [13:16:38]name=ofd_packets/00187736 [13:16:38]OFD Sender: To server: pG, [13:16:38]CommunicateWithHost lk.salyk.kg:30040 [13:16:38]ConnectInit lk.salyk.kg [13:16:38]Connected sock=10 [13:16:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 8B 00 0D 01 8F B8 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 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 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 6A C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 6A C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C8 00 00 00 F4 03 04 00 38 54 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 58 DD 02 00 35 04 06 00 C3 EC 56 7C D7 89 F6 58 CB 60 13 7D EC 17 [13:16:38]Write to MH i2c: 01 00 00 1A 59 73 [13:16:38]Write i2c OK [13:16:38]MH_I2C_Read... [13:16:38]Read from MH i2c: 01 [13:16:38]MH_I2C_Read... [13:16:38]Read from MH i2c: 01 07 00 [13:16:38]MH_I2C_Read... [13:16:38]Read from MH i2c: 01 07 00 1A 59 00 00 00 00 00 A1 0C 27 [13:16:38]RasterBufferAndPrint [13:16:38]line [13:16:38]line [13:16:38]line [13:16:38]line [13:16:38]line [13:16:38]written 0, free lines is 3237 [13:16:38]MH_Cut [13:16:38]Write to MH i2c: D1 01 00 21 59 01 4C [13:16:38]Write i2c OK [13:16:38]MH_I2C_Read... [13:16:38]Read from MH i2c: D1 [13:16:38]MH_I2C_Read... [13:16:38]Read from MH i2c: D1 01 00 [13:16:38]MH_I2C_Read... [13:16:38]Read from MH i2c: D1 01 00 21 59 00 4B [13:16:38]Write to MH i2c: 01 00 00 22 59 7B [13:16:38]Write i2c OK [13:16:38]MH_I2C_Read... [13:16:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 6D 03 47 00 F3 78 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 58 DD 02 00 F4 03 04 00 28 FE 15 67 B6 04 01 00 00 BD 6D 0E 7F 34 5C E7 A6 [13:16:38]CommunicateWithHost err = 0 [13:16:38]CheckOFDResponse [13:16:38]1017 (14) - 77093643461234 [13:16:38]1041 (16) - 0000000000965340 [13:16:38]1040 (4) - 187736 [13:16:38]1012 (4) - 21.10.2024 07:09 [13:16:38]1206 (1) - 0 [13:16:38]OFD Sender: Remove packet 187736 [13:16:38]ProducePacketName [13:16:38]name=ofd_packets/00187736 [13:16:38]NVStorageDeleteData [13:16:39]OFD Sender: No OFD packet to send [13:16:39]*** Cut start [13:16:39]*** Partial cut [13:16:39]*** CUTSNS_PIN = 1 [13:16:39]*** CUTSNS_PIN = 0 [13:16:39]*** Brake cut motor [13:16:40]Read from MH i2c: 01 [13:16:40]MH_I2C_Read... [13:16:40]*** Stop cut motor [13:16:40]*** Cut end [13:16:40]Read from MH i2c: 01 07 00 [13:16:40]MH_I2C_Read... [13:16:40]Read from MH i2c: 01 07 00 22 59 00 00 00 00 00 FF 0F 90 [13:16:40]process_action close_receipt done [13:16:40]requested_data is exist [13:16:40]produce_requested_data [13:16:40]requested_item fm.sn is exist - process it [13:16:40]wFMCommunicate request_size=4 [13:16:40]MH_SAM_APDU [13:16:40]CAPDU: 80 11 00 00 [13:16:40]Write to MH i2c: E2 08 00 23 59 80 11 00 00 00 00 00 00 F6 [13:16:40]Write i2c OK [13:16:40]MH_I2C_Read... [13:16:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:16:40]Read from MH i2c: E2 [13:16:40]MH_I2C_Read... [13:16:40]Read from MH i2c: E2 17 00 [13:16:40]MH_I2C_Read... [13:16:40]Read from MH i2c: E2 17 00 23 59 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 44 [13:16:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [13:16:40]wFMCommunicate OK [13:16:40]requested_item fd.num is exist - process it [13:16:40]SAM_PROTO_GetFieldsCounters [13:16:40]wFMCommunicate request_size=4 [13:16:40]MH_SAM_APDU [13:16:40]CAPDU: 80 13 00 00 [13:16:40]Write to MH i2c: E2 08 00 24 59 80 13 00 00 00 00 00 00 F9 [13:16:40]Write i2c OK [13:16:40]MH_I2C_Read... [13:16:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:16:40]Read from MH i2c: E2 [13:16:40]MH_I2C_Read... [13:16:40]Read from MH i2c: E2 62 00 [13:16:40]MH_I2C_Read... [13:16:40]Read from MH i2c: E2 62 00 24 59 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 58 DD 02 00 0E 04 04 00 CC 01 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 5C [13:16:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 58 DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 C8 00 00 00 5E 04 04 00 C8 00 00 00 57 04 04 00 C9 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:16:40]wFMCommunicate OK [13:16:40]SAM_PROTO_GetFieldsCounters done [13:16:40]requested_item shift.num is exist - process it [13:16:40]requested_item shift.opened is exist - process it [13:16:40]req_shift_opened [13:16:40]FM_GetShiftState [13:16:40]SAM_PROTO_GetShiftState [13:16:40]wFMCommunicate request_size=4 [13:16:40]MH_SAM_APDU [13:16:40]CAPDU: 80 13 01 00 [13:16:40]Write to MH i2c: E2 08 00 25 59 80 13 01 00 00 00 00 00 FB [13:16:40]Write i2c OK [13:16:40]MH_I2C_Read... [13:16:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:16:40]Read from MH i2c: E2 [13:16:40]MH_I2C_Read... [13:16:40]Read from MH i2c: E2 0E 00 [13:16:40]MH_I2C_Read... [13:16:40]Read from MH i2c: E2 0E 00 25 59 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 5A [13:16:40]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [13:16:40]wFMCommunicate OK [13:16:40]SAM_PROTO_GetShiftState done [13:16:40]FM_GetShiftState done [13:16:40]req_shift_opened done [13:16:40]requested_item shift.open_date is exist - process it [13:16:40]req_shift_open_date [13:16:40]req_shift_open_date done [13:16:40]produce_requested_data done [13:16:40]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187736,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [13:16:40]process_action_free close_receipt [13:16:40]json_value_free [13:16:40]json_value_free done [13:16:40]process_json_proto returns [13:16:40]Send response to host [13:16:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187736,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [13:16:40]free response buf [13:16:40]execute_script done [13:16:40]execute_script returns [13:16:40]free content buf [13:16:40]Sock 9.Close socket [13:16:40]Sock 9.Thread stoped [13:16:44]OFD Sender: No OFD packet to send [13:16:49]OFD Sender: No OFD packet to send [13:16:54]OFD Sender: No OFD packet to send [13:16:59]OFD Sender: No OFD packet to send [13:17:04]OFD Sender: No OFD packet to send [13:17:09]OFD Sender: No OFD packet to send [13:17:14]OFD Sender: No OFD packet to send [13:17:19]OFD Sender: No OFD packet to send [13:17:24]OFD Sender: No OFD packet to send [13:17:29]OFD Sender: No OFD packet to send [13:17:34]OFD Sender: No OFD packet to send [13:17:39]OFD Sender: No OFD packet to send [13:17:44]OFD Sender: No OFD packet to send [13:17:49]OFD Sender: No OFD packet to send [13:17:54]OFD Sender: No OFD packet to send [13:17:59]OFD Sender: No OFD packet to send [13:18:04]OFD Sender: No OFD packet to send [13:18:09]OFD Sender: No OFD packet to send [13:18:14]OFD Sender: No OFD packet to send [13:18:19]OFD Sender: No OFD packet to send [13:18:24]OFD Sender: No OFD packet to send [13:18:29]OFD Sender: No OFD packet to send [13:18:34]OFD Sender: No OFD packet to send [13:18:39]OFD Sender: No OFD packet to send [13:18:44]OFD Sender: No OFD packet to send [13:18:49]OFD Sender: No OFD packet to send [13:18:54]OFD Sender: No OFD packet to send [13:18:59]OFD Sender: No OFD packet to send [13:19:04]OFD Sender: No OFD packet to send [13:19:09]OFD Sender: No OFD packet to send [13:19:14]OFD Sender: No OFD packet to send [13:19:19]OFD Sender: No OFD packet to send [13:19:24]OFD Sender: No OFD packet to send [13:19:29]OFD Sender: No OFD packet to send [13:19:34]OFD Sender: No OFD packet to send [13:19:39]OFD Sender: No OFD packet to send [13:19:44]OFD Sender: No OFD packet to send [13:19:47]accept exits with 8 [13:19:47]New connection [13:19:47]New thread 3067014500 created [13:19:47]Thread 3067157860 joined [13:19:47]Waiting for new connection... [13:19:47] Sock 8.Parse request [13:19:47]Sock 8.Check first char [13:19:47]Sock 8.First char is OK [13:19:47]request: POST /json_proto HTTP/1.0 [13:19:47]Method: POST [13:19:47]URL: /json_proto [13:19:47]Method is POST - this is cgi request [13:19:47]url: /json_proto [13:19:47]query_string will be loaded in cgi processing [13:19:47]execute_cgi json_proto POST (null) [13:19:47]execute_cgi path=json_proto method=POST [13:19:47]POST find Content-Length [13:19:47]Host: 172.17.42.131:8080 [13:19:47]Content-Length: 688 [13:19:47]Content-Type: application/json [13:19:47] [13:19:47]POST finish read [13:19:47]Found Content-Length = 688 [13:19:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209789", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 12.960, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:19:47]execute_script... [13:19:47]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209789", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 12.960, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:19:47]POST & json_proto [13:19:47]process_json_proto [13:19:47]json parsed OK: [13:19:47]protocol is kg_v1.0 [13:19:47]action value=close_receipt [13:19:47]process_action close_receipt [13:19:47]cmd_close_receipt [13:19:47]MH_GetDate [13:19:47]Write to MH i2c: F0 00 00 26 59 6E [13:19:47]Write i2c OK [13:19:47]MH_I2C_Read... [13:19:47]Read from MH i2c: F0 [13:19:47]MH_I2C_Read... [13:19:47]Read from MH i2c: F0 09 00 [13:19:47]MH_I2C_Read... [13:19:47]Read from MH i2c: F0 09 00 26 59 00 F7 54 16 67 A0 18 CA 66 27 [13:19:47]GetLastDocTimeStamp 1729516600 [13:19:47]current date 1729516791 [13:19:47]FM_GetShiftState [13:19:47]SAM_PROTO_GetShiftState [13:19:47]wFMCommunicate request_size=4 [13:19:47]MH_SAM_APDU [13:19:47]CAPDU: 80 13 01 00 [13:19:47]Write to MH i2c: E2 08 00 27 59 80 13 01 00 00 00 00 00 FD [13:19:47]Write i2c OK [13:19:47]MH_I2C_Read... [13:19:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:19:47]Read from MH i2c: E2 [13:19:47]MH_I2C_Read... [13:19:47]Read from MH i2c: E2 0E 00 [13:19:47]MH_I2C_Read... [13:19:47]Read from MH i2c: E2 0E 00 27 59 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 5C [13:19:47]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [13:19:47]wFMCommunicate OK [13:19:47]SAM_PROTO_GetShiftState done [13:19:47]FM_GetShiftState done [13:19:47]opened in 1729469754 [13:19:47]opened+sec_in_day 1729556154 [13:19:47]quantity*price = 100051 [13:19:47]sum+1 = 100052 [13:19:47]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 201 21.10.2024 13:19 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 187737 ФПД: 147167202743190 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T131951&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187737&fm=147167202743190&tin=02508201610067®Number=0000000000100030&sum=100000 [13:19:48]StoreToDocumentArchive [13:19:48]shift 460 fd 187737 [13:19:48]save to /storage/0460/doc_00187737 [13:19:48]save last doc name /storage/0460/doc_00187737 to /storage/kkm_last_doc_name [13:19:48]save OK [13:19:48]Clear old archive folders... [13:19:48]ProcessDocumentItem done err = 0, tmpTLVsize=257 [13:19:48]tlvbuf is 01090B10 [13:19:48]SAM_PROTO_ClearQueue [13:19:48]wFMCommunicate request_size=4 [13:19:48]MH_SAM_APDU [13:19:48]CAPDU: 80 09 00 00 [13:19:48]Write to MH i2c: E2 08 00 34 59 80 09 00 00 00 00 00 00 FF [13:19:48]Write i2c OK [13:19:48]MH_I2C_Read... [13:19:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:19:48]Read from MH i2c: E2 [13:19:48]MH_I2C_Read... [13:19:48]Read from MH i2c: E2 03 00 [13:19:48]MH_I2C_Read... [13:19:48]Read from MH i2c: E2 03 00 34 59 00 90 00 01 [13:19:48]RAPDU: 90 00 [13:19:48]wFMCommunicate OK [13:19:48]SAM_PROTO_ClearQueue done [13:19:48]KKMCreateOFDPacket [13:19:48]OFDProtocolAddRootSTLVToBuf [13:19:48]FM_MakeSignedData [13:19:48]FM_MakeSignedData [13:19:48]SAM_PROTO_SignData [13:19:48]wFMCommunicate request_size=4 [13:19:48]MH_SAM_APDU [13:19:48]CAPDU: 80 0D 01 02 [13:19:48]Write to MH i2c: E2 08 00 35 59 80 0D 01 02 00 00 00 00 07 [13:19:48]Write i2c OK [13:19:48]MH_I2C_Read... [13:19:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:19:48]Read from MH i2c: E2 [13:19:48]MH_I2C_Read... [13:19:48]Read from MH i2c: E2 03 00 [13:19:48]MH_I2C_Read... [13:19:48]Read from MH i2c: E2 03 00 35 59 00 90 00 02 [13:19:48]RAPDU: 90 00 [13:19:48]wFMCommunicate OK [13:19:48]wFMCommunicate request_size=255 [13:19:48]MH_SAM_APDU [13:19:48]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 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C9 00 00 00 F4 03 04 00 F7 54 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 59 DD 02 [13:19:48]Write to MH i2c: E2 02 01 36 59 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 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C9 00 00 00 F4 03 04 00 F7 54 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 59 DD 02 00 00 FA [13:19:48]Write i2c OK [13:19:48]MH_I2C_Read... [13:19:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:19:48]Read from MH i2c: E2 [13:19:48]MH_I2C_Read... [13:19:48]Read from MH i2c: E2 03 00 [13:19:48]MH_I2C_Read... [13:19:48]Read from MH i2c: E2 03 00 36 59 00 90 00 03 [13:19:48]RAPDU: 90 00 [13:19:48]wFMCommunicate OK [13:19:48]wFMCommunicate request_size=16 [13:19:48]MH_SAM_APDU [13:19:48]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 85 D9 08 D7 93 96 [13:19:48]Write to MH i2c: E2 13 00 37 59 80 0D 02 02 0B 00 00 35 04 06 00 85 D9 08 D7 93 96 00 00 C5 [13:19:48]Write i2c OK [13:19:48]MH_I2C_Read... [13:19:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:19:48]Read from MH i2c: E2 [13:19:48]MH_I2C_Read... [13:19:48]Read from MH i2c: E2 03 00 [13:19:48]MH_I2C_Read... [13:19:48]Read from MH i2c: E2 03 00 37 59 00 90 00 04 [13:19:48]RAPDU: 90 00 [13:19:48]wFMCommunicate OK [13:19:48]wFMCommunicate request_size=4 [13:19:48]MH_SAM_APDU [13:19:48]CAPDU: 80 0D 03 02 [13:19:48]Write to MH i2c: E2 08 00 38 59 80 0D 03 02 00 00 00 00 0C [13:19:48]Write i2c OK [13:19:48]MH_I2C_Read... [13:19:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:19:48]Read from MH i2c: E2 [13:19:48]MH_I2C_Read... [13:19:48]Read from MH i2c: E2 0B 00 [13:19:48]MH_I2C_Read... [13:19:48]Read from MH i2c: E2 0B 00 38 59 00 FB 7C CB F9 01 D1 E9 91 90 00 94 [13:19:48]RAPDU: FB 7C CB F9 01 D1 E9 91 90 00 [13:19:48]wFMCommunicate OK [13:19:48]SAM_PROTO_SignData done [13:19:48]FM_MakeSignedData done [13:19:48]CreateOFDProtocolMessage [13:19:48]wFMCommunicate request_size=4 [13:19:48]MH_SAM_APDU [13:19:48]CAPDU: 80 11 00 00 [13:19:48]Write to MH i2c: E2 08 00 39 59 80 11 00 00 00 00 00 00 0C [13:19:48]Write i2c OK [13:19:48]MH_I2C_Read... [13:19:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:19:48]Read from MH i2c: E2 [13:19:48]MH_I2C_Read... [13:19:48]Read from MH i2c: E2 17 00 [13:19:48]MH_I2C_Read... [13:19:48]Read from MH i2c: E2 17 00 39 59 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 5A [13:19:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [13:19:48]wFMCommunicate OK [13:19:48]CreateOFDProtocolMessage done [13:19:48]OFDSenderStorePacket 187737 [13:19:48]StoreOFDPacket docnum=187737 [13:19:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 38 38 0D 01 7E 7A 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 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C9 00 00 00 F4 03 04 00 F7 54 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 59 DD 02 00 35 04 06 00 85 D9 08 D7 93 96 FB 7C CB F9 01 D1 E9 91 [13:19:48]CheckFolder [13:19:48]dirname=/storage/ofd_packets [13:19:48]CheckFolder done [13:19:48]ProducePacketName [13:19:48]name=ofd_packets/00187737 [13:19:48]NVStorageSaveData ofd_packets/00187737 [13:19:48]File name is /storage/ofd_packets/00187737 [13:19:48]Write 307 bytes [13:19:48]NVStorageSaveData done [13:19:48]OFDSenderStorePacket done [13:19:48]KKMCreateOFDPacket done [13:19:48]NVStorageSaveData kkm_last_timestamp [13:19:48]File name is /storage/kkm_last_timestamp [13:19:48]Write 4 bytes [13:19:48]NVStorageSaveData done [13:19:48]ExternCall_PrintAddStr [13:19:48]wPrintStart [13:19:48]Write to MH i2c: 01 00 00 3A 59 93 [13:19:48]Write i2c OK [13:19:48]MH_I2C_Read... [13:19:48]Read from MH i2c: 01 [13:19:48]MH_I2C_Read... [13:19:48]Read from MH i2c: 01 07 00 [13:19:48]MH_I2C_Read... [13:19:48]Read from MH i2c: 01 07 00 3A 59 00 00 00 00 00 FF 0F A8 [13:19:48]RasterBufferAndPrint [13:19:48]line Счет N : (1)209789 [13:19:48]line ИНН: 02508201610067 [13:19:48]line Контрольно-Кассовый Чек [13:19:48]line ПРОДАЖА [13:19:48]line ТРК (МРК, ГНК) : 11 [13:19:48]line Товар: 2710194210 [13:19:48]line D-ENERGY ДТ-К-5 [13:19:48]line 12.960 * 77.20 [13:19:48]line = 1000.51 [13:19:48]line НДС 12% НСП 1% [13:19:48]line > о реализуемом товаре [13:19:48]line ОКРУГЛЕНИЕ: -0.51 [13:19:48]line ИТОГО: 1000.00 [13:19:48]line Внесено: 1000.00 [13:19:48]line СДАЧА: 0.00 [13:19:48]line НСП 1% : 8.85 [13:19:48]line НДС 12% : 106.25 [13:19:48]line Наличными: 1000.00 [13:19:48]line Безнал.: 0.00 [13:19:48]line Место: АЗС № 86 "Партнер Нефть" [13:19:48]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [13:19:48]line СНО: Общий режим [13:19:48]line Чек 201 21.10.2024 13:19 [13:19:48]line Смена: 460 ФФД: 1.0 [13:19:48]line ЗНМ: 0300000155 [13:19:48]line РНМ: 0000000000100030 [13:19:48]line Версия ККМ: 001 [13:19:48]line ФМ: 0000000000965340 [13:19:48]line ФД: 187737 [13:19:48]line ФПД: 147167202743190 [13:19:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T131951&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187737&fm=147167202743190&tin=02508201610067®Number=0000000000100030&sum=100000 [13:19:48]written 0, free lines is 4095 [13:19:48]OFD Sender: Processing packet 187737 [packets to send 1062, broken 1061] [13:19:48]ProducePacketName [13:19:48]name=ofd_packets/00187737 [13:19:49]OFD Sender: To server: pG, [13:19:49]CommunicateWithHost lk.salyk.kg:30040 [13:19:49]ConnectInit lk.salyk.kg [13:19:49]Connected sock=10 [13:19:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 38 38 0D 01 7E 7A 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 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C9 00 00 00 F4 03 04 00 F7 54 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 59 DD 02 00 35 04 06 00 85 D9 08 D7 93 96 FB 7C CB F9 01 D1 E9 91 [13:19:49]Write to MH i2c: 01 00 00 65 59 BE [13:19:49]Write i2c OK [13:19:49]MH_I2C_Read... [13:19:49]Read from MH i2c: 01 [13:19:49]MH_I2C_Read... [13:19:49]Read from MH i2c: 01 07 00 [13:19:49]MH_I2C_Read... [13:19:49]Read from MH i2c: 01 07 00 65 59 00 00 00 00 00 6B 0C 3C [13:19:49]RasterBufferAndPrint [13:19:49]line [13:19:49]line [13:19:49]line [13:19:49]line [13:19:49]line [13:19:49]written 0, free lines is 3182 [13:19:49]MH_Cut [13:19:49]Write to MH i2c: D1 01 00 6C 59 01 97 [13:19:49]Write i2c OK [13:19:49]MH_I2C_Read... [13:19:49]Read from MH i2c: D1 [13:19:49]MH_I2C_Read... [13:19:49]Read from MH i2c: D1 01 00 [13:19:49]MH_I2C_Read... [13:19:49]Read from MH i2c: D1 01 00 6C 59 00 96 [13:19:49]Write to MH i2c: 01 00 00 6D 59 C6 [13:19:49]Write i2c OK [13:19:49]MH_I2C_Read... [13:19:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 24 D3 47 00 48 6F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 59 DD 02 00 F4 03 04 00 E6 FE 15 67 B6 04 01 00 00 B4 73 9C 10 58 1C 2B B7 [13:19:49]CommunicateWithHost err = 0 [13:19:49]CheckOFDResponse [13:19:49]1017 (14) - 77093643461234 [13:19:49]1041 (16) - 0000000000965340 [13:19:49]1040 (4) - 187737 [13:19:49]1012 (4) - 21.10.2024 07:12 [13:19:49]1206 (1) - 0 [13:19:49]OFD Sender: Remove packet 187737 [13:19:49]ProducePacketName [13:19:49]name=ofd_packets/00187737 [13:19:49]NVStorageDeleteData [13:19:50]OFD Sender: No OFD packet to send [13:19:50]*** Cut start [13:19:50]*** Partial cut [13:19:50]*** CUTSNS_PIN = 1 [13:19:50]*** CUTSNS_PIN = 0 [13:19:50]*** Brake cut motor [13:19:51]Read from MH i2c: 01 [13:19:51]MH_I2C_Read... [13:19:51]*** Stop cut motor [13:19:51]*** Cut end [13:19:51]Read from MH i2c: 01 07 00 [13:19:51]MH_I2C_Read... [13:19:51]Read from MH i2c: 01 07 00 6D 59 00 00 00 00 00 FF 0F DB [13:19:51]process_action close_receipt done [13:19:51]requested_data is exist [13:19:51]produce_requested_data [13:19:51]requested_item fm.sn is exist - process it [13:19:51]wFMCommunicate request_size=4 [13:19:51]MH_SAM_APDU [13:19:51]CAPDU: 80 11 00 00 [13:19:51]Write to MH i2c: E2 08 00 6E 59 80 11 00 00 00 00 00 00 41 [13:19:51]Write i2c OK [13:19:51]MH_I2C_Read... [13:19:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:19:51]Read from MH i2c: E2 [13:19:51]MH_I2C_Read... [13:19:51]Read from MH i2c: E2 17 00 [13:19:51]MH_I2C_Read... [13:19:51]Read from MH i2c: E2 17 00 6E 59 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 8F [13:19:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [13:19:51]wFMCommunicate OK [13:19:51]requested_item fd.num is exist - process it [13:19:51]SAM_PROTO_GetFieldsCounters [13:19:51]wFMCommunicate request_size=4 [13:19:51]MH_SAM_APDU [13:19:51]CAPDU: 80 13 00 00 [13:19:51]Write to MH i2c: E2 08 00 6F 59 80 13 00 00 00 00 00 00 44 [13:19:51]Write i2c OK [13:19:51]MH_I2C_Read... [13:19:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:19:51]Read from MH i2c: E2 [13:19:51]MH_I2C_Read... [13:19:51]Read from MH i2c: E2 62 00 [13:19:51]MH_I2C_Read... [13:19:51]Read from MH i2c: E2 62 00 6F 59 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 59 DD 02 00 0E 04 04 00 CC 01 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 AB [13:19:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 59 DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 C9 00 00 00 5E 04 04 00 C9 00 00 00 57 04 04 00 CA 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:19:51]wFMCommunicate OK [13:19:51]SAM_PROTO_GetFieldsCounters done [13:19:51]requested_item shift.num is exist - process it [13:19:51]requested_item shift.opened is exist - process it [13:19:51]req_shift_opened [13:19:51]FM_GetShiftState [13:19:51]SAM_PROTO_GetShiftState [13:19:51]wFMCommunicate request_size=4 [13:19:51]MH_SAM_APDU [13:19:51]CAPDU: 80 13 01 00 [13:19:51]Write to MH i2c: E2 08 00 70 59 80 13 01 00 00 00 00 00 46 [13:19:51]Write i2c OK [13:19:51]MH_I2C_Read... [13:19:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:19:51]Read from MH i2c: E2 [13:19:51]MH_I2C_Read... [13:19:51]Read from MH i2c: E2 0E 00 [13:19:51]MH_I2C_Read... [13:19:51]Read from MH i2c: E2 0E 00 70 59 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 A5 [13:19:51]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [13:19:51]wFMCommunicate OK [13:19:51]SAM_PROTO_GetShiftState done [13:19:51]FM_GetShiftState done [13:19:51]req_shift_opened done [13:19:51]requested_item shift.open_date is exist - process it [13:19:51]req_shift_open_date [13:19:51]req_shift_open_date done [13:19:51]produce_requested_data done [13:19:51]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187737,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [13:19:51]process_action_free close_receipt [13:19:51]json_value_free [13:19:51]json_value_free done [13:19:51]process_json_proto returns [13:19:51]Send response to host [13:19:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187737,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [13:19:51]free response buf [13:19:51]execute_script done [13:19:51]execute_script returns [13:19:51]free content buf [13:19:51]Sock 8.Close socket [13:19:51]Sock 8.Thread stoped [13:19:55]OFD Sender: No OFD packet to send [13:20:00]OFD Sender: No OFD packet to send [13:20:05]OFD Sender: No OFD packet to send [13:20:10]OFD Sender: No OFD packet to send [13:20:15]OFD Sender: No OFD packet to send [13:20:20]OFD Sender: No OFD packet to send [13:20:25]OFD Sender: No OFD packet to send [13:20:30]OFD Sender: No OFD packet to send [13:20:35]OFD Sender: No OFD packet to send [13:20:40]OFD Sender: No OFD packet to send [13:20:45]OFD Sender: No OFD packet to send [13:20:55]OFD Sender: No OFD packet to send [13:21:00]OFD Sender: No OFD packet to send [13:21:05]OFD Sender: No OFD packet to send [13:21:10]OFD Sender: No OFD packet to send [13:21:15]OFD Sender: No OFD packet to send [13:21:20]OFD Sender: No OFD packet to send [13:21:25]OFD Sender: No OFD packet to send [13:21:30]OFD Sender: No OFD packet to send [13:21:35]OFD Sender: No OFD packet to send [13:21:40]OFD Sender: No OFD packet to send [13:21:45]OFD Sender: No OFD packet to send [13:21:50]OFD Sender: No OFD packet to send [13:21:55]OFD Sender: No OFD packet to send [13:22:00]OFD Sender: No OFD packet to send [13:22:05]OFD Sender: No OFD packet to send [13:22:10]OFD Sender: No OFD packet to send [13:22:15]OFD Sender: No OFD packet to send [13:22:20]OFD Sender: No OFD packet to send [13:22:25]OFD Sender: No OFD packet to send [13:22:30]OFD Sender: No OFD packet to send [13:22:35]OFD Sender: No OFD packet to send [13:22:40]OFD Sender: No OFD packet to send [13:22:45]OFD Sender: No OFD packet to send [13:22:50]OFD Sender: No OFD packet to send [13:22:55]OFD Sender: No OFD packet to send [13:23:00]OFD Sender: No OFD packet to send [13:23:05]OFD Sender: No OFD packet to send [13:23:06]ConnectInit Can't connect to host [13:23:10]OFD Sender: No OFD packet to send [13:23:15]OFD Sender: No OFD packet to send [13:23:21]OFD Sender: No OFD packet to send [13:23:26]OFD Sender: No OFD packet to send [13:23:31]OFD Sender: No OFD packet to send [13:23:36]OFD Sender: No OFD packet to send [13:23:41]OFD Sender: No OFD packet to send [13:23:45]accept exits with 9 [13:23:45]New connection [13:23:45]New thread 3067157860 created [13:23:45]Thread 3067014500 joined [13:23:45]Waiting for new connection... [13:23:45] Sock 9.Parse request [13:23:45]Sock 9.Check first char [13:23:45]Sock 9.First char is OK [13:23:45]request: POST /json_proto HTTP/1.0 [13:23:45]Method: POST [13:23:45]URL: /json_proto [13:23:45]Method is POST - this is cgi request [13:23:45]url: /json_proto [13:23:45]query_string will be loaded in cgi processing [13:23:45]execute_cgi json_proto POST (null) [13:23:45]execute_cgi path=json_proto method=POST [13:23:45]POST find Content-Length [13:23:45]Host: 172.17.42.131:8080 [13:23:45]Content-Length: 983 [13:23:45]Content-Type: application/json [13:23:45] [13:23:45]POST finish read [13:23:45]Found Content-Length = 983 [13:23:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209790", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 65.90, "quantity" : 22.770, "sum" : 1500.54, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0410\u0418-92\u000A\u043D\u043E\u043C\u0435\u0440 86\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 22.77 \u0441\u043E\u043C", "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:23:45]execute_script... [13:23: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)209790", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 65.90, "quantity" : 22.770, "sum" : 1500.54, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0410\u0418-92\u000A\u043D\u043E\u043C\u0435\u0440 86\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 22.77 \u0441\u043E\u043C", "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:23:45]POST & json_proto [13:23:45]process_json_proto [13:23:45]json parsed OK: [13:23:45]protocol is kg_v1.0 [13:23:45]action value=close_receipt [13:23:45]process_action close_receipt [13:23:45]cmd_close_receipt [13:23:45]MH_GetDate [13:23:45]Write to MH i2c: F0 00 00 71 59 B9 [13:23:45]Write i2c OK [13:23:45]MH_I2C_Read... [13:23:45]Read from MH i2c: F0 [13:23:45]MH_I2C_Read... [13:23:45]Read from MH i2c: F0 09 00 [13:23:45]MH_I2C_Read... [13:23:45]Read from MH i2c: F0 09 00 71 59 00 E5 55 16 67 A0 18 CA 66 61 [13:23:45]GetLastDocTimeStamp 1729516791 [13:23:45]current date 1729517029 [13:23:45]FM_GetShiftState [13:23:45]SAM_PROTO_GetShiftState [13:23:45]wFMCommunicate request_size=4 [13:23:45]MH_SAM_APDU [13:23:45]CAPDU: 80 13 01 00 [13:23:45]Write to MH i2c: E2 08 00 72 59 80 13 01 00 00 00 00 00 48 [13:23:45]Write i2c OK [13:23:45]MH_I2C_Read... [13:23:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:23:45]Read from MH i2c: E2 [13:23:45]MH_I2C_Read... [13:23:45]Read from MH i2c: E2 0E 00 [13:23:45]MH_I2C_Read... [13:23:45]Read from MH i2c: E2 0E 00 72 59 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 A7 [13:23:45]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [13:23:45]wFMCommunicate OK [13:23:45]SAM_PROTO_GetShiftState done [13:23:45]FM_GetShiftState done [13:23:45]opened in 1729469754 [13:23:45]opened+sec_in_day 1729556154 [13:23:45]quantity*price = 150054 [13:23:45]sum+1 = 150055 [13:23:45]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.54 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.35 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 202 21.10.2024 13:23 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Дисконтная программа АИ-92 номер 86 сэкономлено 22.77 сом ФМ: 0000000000965340 ФД: 187738 ФПД: 76622363335641 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T132349&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187738&fm=76622363335641&tin=02508201610067®Number=0000000000100030&sum=150000 [13:23:46]StoreToDocumentArchive [13:23:46]shift 460 fd 187738 [13:23:46]save to /storage/0460/doc_00187738 [13:23:46]save last doc name /storage/0460/doc_00187738 to /storage/kkm_last_doc_name [13:23:46]save OK [13:23:46]Clear old archive folders... [13:23:46]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:23:46]tlvbuf is 01236AF0 [13:23:46]SAM_PROTO_ClearQueue [13:23:46]wFMCommunicate request_size=4 [13:23:46]MH_SAM_APDU [13:23:46]CAPDU: 80 09 00 00 [13:23:46]Write to MH i2c: E2 08 00 7F 59 80 09 00 00 00 00 00 00 4A [13:23:46]Write i2c OK [13:23:46]MH_I2C_Read... [13:23:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:23:46]Read from MH i2c: E2 [13:23:46]MH_I2C_Read... [13:23:46]Read from MH i2c: E2 03 00 [13:23:46]MH_I2C_Read... [13:23:46]Read from MH i2c: E2 03 00 7F 59 00 90 00 4C [13:23:46]RAPDU: 90 00 [13:23:46]wFMCommunicate OK [13:23:46]SAM_PROTO_ClearQueue done [13:23:46]KKMCreateOFDPacket [13:23:46]OFDProtocolAddRootSTLVToBuf [13:23:46]FM_MakeSignedData [13:23:46]FM_MakeSignedData [13:23:46]SAM_PROTO_SignData [13:23:46]wFMCommunicate request_size=4 [13:23:46]MH_SAM_APDU [13:23:46]CAPDU: 80 0D 01 02 [13:23:46]Write to MH i2c: E2 08 00 80 59 80 0D 01 02 00 00 00 00 52 [13:23:46]Write i2c OK [13:23:46]MH_I2C_Read... [13:23:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:23:46]Read from MH i2c: E2 [13:23:46]MH_I2C_Read... [13:23:46]Read from MH i2c: E2 03 00 [13:23:46]MH_I2C_Read... [13:23:46]Read from MH i2c: E2 03 00 80 59 00 90 00 4D [13:23:46]RAPDU: 90 00 [13:23:46]wFMCommunicate OK [13:23:46]wFMCommunicate request_size=255 [13:23:46]MH_SAM_APDU [13:23: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 33 FF 03 08 00 03 F2 58 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 26 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 CA 00 00 00 F4 03 04 00 E5 55 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 5A DD 02 00 35 04 06 00 45 [13:23:46]Write to MH i2c: E2 02 01 81 59 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 F2 58 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 26 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 CA 00 00 00 F4 03 04 00 E5 55 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 5A DD 02 00 35 04 06 00 45 00 00 C7 [13:23:46]Write i2c OK [13:23:46]MH_I2C_Read... [13:23:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:23:47]Read from MH i2c: E2 [13:23:47]MH_I2C_Read... [13:23:47]Read from MH i2c: E2 03 00 [13:23:47]MH_I2C_Read... [13:23:47]Read from MH i2c: E2 03 00 81 59 00 90 00 4E [13:23:47]RAPDU: 90 00 [13:23:47]wFMCommunicate OK [13:23:47]wFMCommunicate request_size=10 [13:23:47]MH_SAM_APDU [13:23:47]CAPDU: 80 0D 02 02 05 B0 08 BF 9B D9 [13:23:47]Write to MH i2c: E2 0D 00 82 59 80 0D 02 02 05 00 B0 08 BF 9B D9 00 00 4A [13:23:47]Write i2c OK [13:23:47]MH_I2C_Read... [13:23:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:23:47]Read from MH i2c: E2 [13:23:47]MH_I2C_Read... [13:23:47]Read from MH i2c: E2 03 00 [13:23:47]MH_I2C_Read... [13:23:47]Read from MH i2c: E2 03 00 82 59 00 90 00 4F [13:23:47]RAPDU: 90 00 [13:23:47]wFMCommunicate OK [13:23:47]wFMCommunicate request_size=4 [13:23:47]MH_SAM_APDU [13:23:47]CAPDU: 80 0D 03 02 [13:23:47]Write to MH i2c: E2 08 00 83 59 80 0D 03 02 00 00 00 00 57 [13:23:47]Write i2c OK [13:23:47]MH_I2C_Read... [13:23:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:23:47]Read from MH i2c: E2 [13:23:47]MH_I2C_Read... [13:23:47]Read from MH i2c: E2 0B 00 [13:23:47]MH_I2C_Read... [13:23:47]Read from MH i2c: E2 0B 00 83 59 00 57 75 C7 05 75 72 55 91 90 00 BD [13:23:47]RAPDU: 57 75 C7 05 75 72 55 91 90 00 [13:23:47]wFMCommunicate OK [13:23:47]SAM_PROTO_SignData done [13:23:47]FM_MakeSignedData done [13:23:47]CreateOFDProtocolMessage [13:23:47]wFMCommunicate request_size=4 [13:23:47]MH_SAM_APDU [13:23:47]CAPDU: 80 11 00 00 [13:23:47]Write to MH i2c: E2 08 00 84 59 80 11 00 00 00 00 00 00 57 [13:23:47]Write i2c OK [13:23:47]MH_I2C_Read... [13:23:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:23:47]Read from MH i2c: E2 [13:23:47]MH_I2C_Read... [13:23:47]Read from MH i2c: E2 17 00 [13:23:47]MH_I2C_Read... [13:23:47]Read from MH i2c: E2 17 00 84 59 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 A5 [13:23:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [13:23:47]wFMCommunicate OK [13:23:47]CreateOFDProtocolMessage done [13:23:47]OFDSenderStorePacket 187738 [13:23:47]StoreOFDPacket docnum=187738 [13:23:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 B3 5A 07 01 38 50 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 F2 58 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 26 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 CA 00 00 00 F4 03 04 00 E5 55 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 5A DD 02 00 35 04 06 00 45 B0 08 BF 9B D9 57 75 C7 05 75 72 55 91 [13:23:47]CheckFolder [13:23:47]dirname=/storage/ofd_packets [13:23:47]CheckFolder done [13:23:47]ProducePacketName [13:23:47]name=ofd_packets/00187738 [13:23:47]NVStorageSaveData ofd_packets/00187738 [13:23:47]File name is /storage/ofd_packets/00187738 [13:23:47]Write 301 bytes [13:23:47]NVStorageSaveData done [13:23:47]OFDSenderStorePacket done [13:23:47]KKMCreateOFDPacket done [13:23:47]NVStorageSaveData kkm_last_timestamp [13:23:47]File name is /storage/kkm_last_timestamp [13:23:47]Write 4 bytes [13:23:47]NVStorageSaveData done [13:23:47]ExternCall_PrintAddStr [13:23:47]wPrintStart [13:23:47]Write to MH i2c: 01 00 00 85 59 DE [13:23:47]Write i2c OK [13:23:47]MH_I2C_Read... [13:23:47]Read from MH i2c: 01 [13:23:47]MH_I2C_Read... [13:23:47]Read from MH i2c: 01 07 00 [13:23:47]MH_I2C_Read... [13:23:47]Read from MH i2c: 01 07 00 85 59 00 00 00 00 00 FF 0F F3 [13:23:47]RasterBufferAndPrint [13:23:47]line Счет N : (1)209790 [13:23:47]line ИНН: 02508201610067 [13:23:47]line Контрольно-Кассовый Чек [13:23:47]line ПРОДАЖА [13:23:47]line ТРК (МРК, ГНК) : 12 [13:23:47]line Товар: 2710124130 [13:23:47]line Аи-92-К-3 [13:23:47]line 22.770 * 65.90 [13:23:47]line = 1500.54 [13:23:47]line НДС 12% НСП 1% [13:23:47]line > о реализуемом товаре [13:23:47]line ОКРУГЛЕНИЕ: -0.54 [13:23:47]line ИТОГО: 1500.00 [13:23:47]line Внесено: 1500.00 [13:23:47]line СДАЧА: 0.00 [13:23:47]line НСП 1% : 13.28 [13:23:47]line НДС 12% : 159.35 [13:23:47]line Наличными: 1500.00 [13:23:47]line Безнал.: 0.00 [13:23:47]line Место: АЗС № 86 "Партнер Нефть" [13:23:47]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [13:23:47]line СНО: Общий режим [13:23:47]line Чек 202 21.10.2024 13:23 [13:23:47]line Смена: 460 ФФД: 1.0 [13:23:47]line ЗНМ: 0300000155 [13:23:47]line РНМ: 0000000000100030 [13:23:47]line Версия ККМ: 001 [13:23:47]line [13:23:47]line Дисконтная программа [13:23:47]line АИ-92 [13:23:47]line номер 86 [13:23:47]line сэкономлено 22.77 сом [13:23:47]line ФМ: 0000000000965340 [13:23:47]line ФД: 187738 [13:23:47]line ФПД: 76622363335641 [13:23:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T132349&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187738&fm=76622363335641&tin=02508201610067®Number=0000000000100030&sum=150000 [13:23:47]written 0, free lines is 4095 [13:23:47]OFD Sender: Processing packet 187738 [packets to send 1062, broken 1061] [13:23:47]ProducePacketName [13:23:47]name=ofd_packets/00187738 [13:23:47]OFD Sender: To server: pG, [13:23:47]CommunicateWithHost lk.salyk.kg:30040 [13:23:47]ConnectInit lk.salyk.kg [13:23:47]Connected sock=8 [13:23:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 B3 5A 07 01 38 50 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 F2 58 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 26 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 CA 00 00 00 F4 03 04 00 E5 55 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 5A DD 02 00 35 04 06 00 45 B0 08 BF 9B D9 57 75 C7 05 75 72 55 91 [13:23:47]Write to MH i2c: 01 00 00 B5 59 0E [13:23:47]Write i2c OK [13:23:47]MH_I2C_Read... [13:23:47]Read from MH i2c: 01 [13:23:47]MH_I2C_Read... [13:23:47]Read from MH i2c: 01 07 00 [13:23:47]MH_I2C_Read... [13:23:47]Read from MH i2c: 01 07 00 B5 59 00 00 00 00 00 F6 0B 16 [13:23:47]RasterBufferAndPrint [13:23:47]line [13:23:47]line [13:23:47]line [13:23:47]line [13:23:47]line [13:23:47]written 0, free lines is 3066 [13:23:47]MH_Cut [13:23:47]Write to MH i2c: D1 01 00 BC 59 01 E7 [13:23:47]Write i2c OK [13:23:47]MH_I2C_Read... [13:23:47]Read from MH i2c: D1 [13:23:47]MH_I2C_Read... [13:23:47]Read from MH i2c: D1 01 00 [13:23:47]MH_I2C_Read... [13:23:47]Read from MH i2c: D1 01 00 BC 59 00 E6 [13:23:47]Write to MH i2c: 01 00 00 BD 59 16 [13:23:47]Write i2c OK [13:23:47]MH_I2C_Read... [13:23:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 CC 2F 47 00 43 85 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 5A DD 02 00 F4 03 04 00 D5 FF 15 67 B6 04 01 00 00 9E 49 14 09 41 08 E4 66 [13:23:48]CommunicateWithHost err = 0 [13:23:48]CheckOFDResponse [13:23:48]1017 (14) - 77093643461234 [13:23:48]1041 (16) - 0000000000965340 [13:23:48]1040 (4) - 187738 [13:23:48]1012 (4) - 21.10.2024 07:16 [13:23:48]1206 (1) - 0 [13:23:48]OFD Sender: Remove packet 187738 [13:23:48]ProducePacketName [13:23:48]name=ofd_packets/00187738 [13:23:48]NVStorageDeleteData [13:23:48]OFD Sender: No OFD packet to send [13:23:49]*** Cut start [13:23:49]*** Partial cut [13:23:49]*** CUTSNS_PIN = 1 [13:23:49]*** CUTSNS_PIN = 0 [13:23:49]*** Brake cut motor [13:23:49]Read from MH i2c: 01 [13:23:49]MH_I2C_Read... [13:23:49]*** Stop cut motor [13:23:49]*** Cut end [13:23:49]Read from MH i2c: 01 07 00 [13:23:49]MH_I2C_Read... [13:23:49]Read from MH i2c: 01 07 00 BD 59 00 00 00 00 00 FF 0F 2B [13:23:49]process_action close_receipt done [13:23:49]requested_data is exist [13:23:49]produce_requested_data [13:23:49]requested_item fm.sn is exist - process it [13:23:49]wFMCommunicate request_size=4 [13:23:49]MH_SAM_APDU [13:23:49]CAPDU: 80 11 00 00 [13:23:49]Write to MH i2c: E2 08 00 BE 59 80 11 00 00 00 00 00 00 91 [13:23:49]Write i2c OK [13:23:49]MH_I2C_Read... [13:23:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:23:49]Read from MH i2c: E2 [13:23:49]MH_I2C_Read... [13:23:49]Read from MH i2c: E2 17 00 [13:23:49]MH_I2C_Read... [13:23:49]Read from MH i2c: E2 17 00 BE 59 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 DF [13:23:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [13:23:49]wFMCommunicate OK [13:23:49]requested_item fd.num is exist - process it [13:23:49]SAM_PROTO_GetFieldsCounters [13:23:49]wFMCommunicate request_size=4 [13:23:49]MH_SAM_APDU [13:23:49]CAPDU: 80 13 00 00 [13:23:49]Write to MH i2c: E2 08 00 BF 59 80 13 00 00 00 00 00 00 94 [13:23:49]Write i2c OK [13:23:49]MH_I2C_Read... [13:23:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:23:50]Read from MH i2c: E2 [13:23:50]MH_I2C_Read... [13:23:50]Read from MH i2c: E2 62 00 [13:23:50]MH_I2C_Read... [13:23:50]Read from MH i2c: E2 62 00 BF 59 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 5A DD 02 00 0E 04 04 00 CC 01 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 FF [13:23:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 5A DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 CA 00 00 00 5E 04 04 00 CA 00 00 00 57 04 04 00 CB 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:23:50]wFMCommunicate OK [13:23:50]SAM_PROTO_GetFieldsCounters done [13:23:50]requested_item shift.num is exist - process it [13:23:50]requested_item shift.opened is exist - process it [13:23:50]req_shift_opened [13:23:50]FM_GetShiftState [13:23:50]SAM_PROTO_GetShiftState [13:23:50]wFMCommunicate request_size=4 [13:23:50]MH_SAM_APDU [13:23:50]CAPDU: 80 13 01 00 [13:23:50]Write to MH i2c: E2 08 00 C0 59 80 13 01 00 00 00 00 00 96 [13:23:50]Write i2c OK [13:23:50]MH_I2C_Read... [13:23:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:23:50]Read from MH i2c: E2 [13:23:50]MH_I2C_Read... [13:23:50]Read from MH i2c: E2 0E 00 [13:23:50]MH_I2C_Read... [13:23:50]Read from MH i2c: E2 0E 00 C0 59 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 F5 [13:23:50]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [13:23:50]wFMCommunicate OK [13:23:50]SAM_PROTO_GetShiftState done [13:23:50]FM_GetShiftState done [13:23:50]req_shift_opened done [13:23:50]requested_item shift.open_date is exist - process it [13:23:50]req_shift_open_date [13:23:50]req_shift_open_date done [13:23:50]produce_requested_data done [13:23:50]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187738,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [13:23:50]process_action_free close_receipt [13:23:50]json_value_free [13:23:50]json_value_free done [13:23:50]process_json_proto returns [13:23:50]Send response to host [13:23:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187738,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [13:23:50]free response buf [13:23:50]execute_script done [13:23:50]execute_script returns [13:23:50]free content buf [13:23:50]Sock 9.Close socket [13:23:50]Sock 9.Thread stoped [13:23:53]OFD Sender: No OFD packet to send [13:23:58]OFD Sender: No OFD packet to send [13:24:03]OFD Sender: No OFD packet to send [13:24:08]OFD Sender: No OFD packet to send [13:24:13]OFD Sender: No OFD packet to send [13:24:18]OFD Sender: No OFD packet to send [13:24:23]OFD Sender: No OFD packet to send [13:24:24]accept exits with 10 [13:24:24]New connection [13:24:24]New thread 3067014500 created [13:24:24]Thread 3067157860 joined [13:24:24]Waiting for new connection... [13:24:24] Sock 10.Parse request [13:24:24]Sock 10.Check first char [13:24:24]Sock 10.First char is OK [13:24:24]request: POST /json_proto HTTP/1.0 [13:24:24]Method: POST [13:24:24]URL: /json_proto [13:24:24]Method is POST - this is cgi request [13:24:24]url: /json_proto [13:24:24]query_string will be loaded in cgi processing [13:24:24]execute_cgi json_proto POST (null) [13:24:24]execute_cgi path=json_proto method=POST [13:24:24]POST find Content-Length [13:24:24]Host: 172.17.42.131:8080 [13:24:24]Content-Length: 677 [13:24:24]Content-Type: application/json [13:24:24] [13:24:24]POST finish read [13:24:24]Found Content-Length = 677 [13:24:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209791", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "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" ] } } [13:24:24]execute_script... [13:24: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)209791", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "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" ] } } [13:24:24]POST & json_proto [13:24:24]process_json_proto [13:24:24]json parsed OK: [13:24:24]protocol is kg_v1.0 [13:24:24]action value=close_receipt [13:24:24]process_action close_receipt [13:24:24]cmd_close_receipt [13:24:24]MH_GetDate [13:24:24]Write to MH i2c: F0 00 00 C1 59 09 [13:24:24]Write i2c OK [13:24:24]MH_I2C_Read... [13:24:24]Read from MH i2c: F0 [13:24:24]MH_I2C_Read... [13:24:24]Read from MH i2c: F0 09 00 [13:24:24]MH_I2C_Read... [13:24:24]Read from MH i2c: F0 09 00 C1 59 00 0C 56 16 67 A0 18 CA 66 D9 [13:24:24]GetLastDocTimeStamp 1729517029 [13:24:24]current date 1729517068 [13:24:24]FM_GetShiftState [13:24:24]SAM_PROTO_GetShiftState [13:24:24]wFMCommunicate request_size=4 [13:24:24]MH_SAM_APDU [13:24:24]CAPDU: 80 13 01 00 [13:24:24]Write to MH i2c: E2 08 00 C2 59 80 13 01 00 00 00 00 00 98 [13:24:24]Write i2c OK [13:24:24]MH_I2C_Read... [13:24:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:24:24]Read from MH i2c: E2 [13:24:24]MH_I2C_Read... [13:24:24]Read from MH i2c: E2 0E 00 [13:24:24]MH_I2C_Read... [13:24:24]Read from MH i2c: E2 0E 00 C2 59 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 F7 [13:24:24]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [13:24:24]wFMCommunicate OK [13:24:24]SAM_PROTO_GetShiftState done [13:24:24]FM_GetShiftState done [13:24:24]opened in 1729469754 [13:24:24]opened+sec_in_day 1729556154 [13:24:24]quantity*price = 20003 [13:24:24]sum+1 = 20004 [13:24:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 203 21.10.2024 13:24 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 187739 ФПД: 190020841273402 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T132428&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187739&fm=190020841273402&tin=02508201610067®Number=0000000000100030&sum=20000 [13:24:25]StoreToDocumentArchive [13:24:25]shift 460 fd 187739 [13:24:25]save to /storage/0460/doc_00187739 [13:24:25]save last doc name /storage/0460/doc_00187739 to /storage/kkm_last_doc_name [13:24:25]save OK [13:24:25]Clear old archive folders... [13:24:25]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:24:25]tlvbuf is 011AD6C0 [13:24:25]SAM_PROTO_ClearQueue [13:24:25]wFMCommunicate request_size=4 [13:24:25]MH_SAM_APDU [13:24:25]CAPDU: 80 09 00 00 [13:24:25]Write to MH i2c: E2 08 00 CF 59 80 09 00 00 00 00 00 00 9A [13:24:25]Write i2c OK [13:24:25]MH_I2C_Read... [13:24:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:24:25]Read from MH i2c: E2 [13:24:25]MH_I2C_Read... [13:24:25]Read from MH i2c: E2 03 00 [13:24:25]MH_I2C_Read... [13:24:25]Read from MH i2c: E2 03 00 CF 59 00 90 00 9C [13:24:25]RAPDU: 90 00 [13:24:25]wFMCommunicate OK [13:24:25]SAM_PROTO_ClearQueue done [13:24:25]KKMCreateOFDPacket [13:24:25]OFDProtocolAddRootSTLVToBuf [13:24:25]FM_MakeSignedData [13:24:25]FM_MakeSignedData [13:24:25]SAM_PROTO_SignData [13:24:25]wFMCommunicate request_size=4 [13:24:25]MH_SAM_APDU [13:24:25]CAPDU: 80 0D 01 02 [13:24:25]Write to MH i2c: E2 08 00 D0 59 80 0D 01 02 00 00 00 00 A2 [13:24:25]Write i2c OK [13:24:25]MH_I2C_Read... [13:24:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:24:25]Read from MH i2c: E2 [13:24:25]MH_I2C_Read... [13:24:25]Read from MH i2c: E2 03 00 [13:24:25]MH_I2C_Read... [13:24:25]Read from MH i2c: E2 03 00 D0 59 00 90 00 9D [13:24:25]RAPDU: 90 00 [13:24:25]wFMCommunicate OK [13:24:25]wFMCommunicate request_size=255 [13:24:25]MH_SAM_APDU [13:24:25]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 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 CB 00 00 00 F4 03 04 00 0C 56 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 5B DD 02 00 35 04 06 00 AC [13:24:25]Write to MH i2c: E2 02 01 D1 59 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 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 CB 00 00 00 F4 03 04 00 0C 56 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 5B DD 02 00 35 04 06 00 AC 00 00 34 [13:24:25]Write i2c OK [13:24:25]MH_I2C_Read... [13:24:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:24:25]Read from MH i2c: E2 [13:24:25]MH_I2C_Read... [13:24:25]Read from MH i2c: E2 03 00 [13:24:25]MH_I2C_Read... [13:24:25]Read from MH i2c: E2 03 00 D1 59 00 90 00 9E [13:24:25]RAPDU: 90 00 [13:24:25]wFMCommunicate OK [13:24:25]wFMCommunicate request_size=10 [13:24:25]MH_SAM_APDU [13:24:25]CAPDU: 80 0D 02 02 05 D2 AC BE 78 3A [13:24:25]Write to MH i2c: E2 0D 00 D2 59 80 0D 02 02 05 00 D2 AC BE 78 3A 00 00 9D [13:24:25]Write i2c OK [13:24:25]MH_I2C_Read... [13:24:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:24:25]Read from MH i2c: E2 [13:24:25]MH_I2C_Read... [13:24:25]Read from MH i2c: E2 03 00 [13:24:25]MH_I2C_Read... [13:24:25]Read from MH i2c: E2 03 00 D2 59 00 90 00 9F [13:24:25]RAPDU: 90 00 [13:24:25]wFMCommunicate OK [13:24:25]wFMCommunicate request_size=4 [13:24:25]MH_SAM_APDU [13:24:25]CAPDU: 80 0D 03 02 [13:24:25]Write to MH i2c: E2 08 00 D3 59 80 0D 03 02 00 00 00 00 A7 [13:24:25]Write i2c OK [13:24:25]MH_I2C_Read... [13:24:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:24:25]Read from MH i2c: E2 [13:24:25]MH_I2C_Read... [13:24:25]Read from MH i2c: E2 0B 00 [13:24:25]MH_I2C_Read... [13:24:25]Read from MH i2c: E2 0B 00 D3 59 00 BE D2 40 C5 8A 9C 50 0D 90 00 C0 [13:24:25]RAPDU: BE D2 40 C5 8A 9C 50 0D 90 00 [13:24:25]wFMCommunicate OK [13:24:25]SAM_PROTO_SignData done [13:24:25]FM_MakeSignedData done [13:24:25]CreateOFDProtocolMessage [13:24:25]wFMCommunicate request_size=4 [13:24:25]MH_SAM_APDU [13:24:25]CAPDU: 80 11 00 00 [13:24:25]Write to MH i2c: E2 08 00 D4 59 80 11 00 00 00 00 00 00 A7 [13:24:25]Write i2c OK [13:24:25]MH_I2C_Read... [13:24:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:24:25]Read from MH i2c: E2 [13:24:25]MH_I2C_Read... [13:24:25]Read from MH i2c: E2 17 00 [13:24:25]MH_I2C_Read... [13:24:25]Read from MH i2c: E2 17 00 D4 59 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 F5 [13:24:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [13:24:25]wFMCommunicate OK [13:24:25]CreateOFDProtocolMessage done [13:24:25]OFDSenderStorePacket 187739 [13:24:25]StoreOFDPacket docnum=187739 [13:24:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 0C C1 07 01 94 8D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 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 CB 00 00 00 F4 03 04 00 0C 56 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 5B DD 02 00 35 04 06 00 AC D2 AC BE 78 3A BE D2 40 C5 8A 9C 50 0D [13:24:25]CheckFolder [13:24:25]dirname=/storage/ofd_packets [13:24:25]CheckFolder done [13:24:25]ProducePacketName [13:24:25]name=ofd_packets/00187739 [13:24:25]NVStorageSaveData ofd_packets/00187739 [13:24:25]File name is /storage/ofd_packets/00187739 [13:24:25]Write 301 bytes [13:24:25]NVStorageSaveData done [13:24:25]OFDSenderStorePacket done [13:24:25]KKMCreateOFDPacket done [13:24:25]NVStorageSaveData kkm_last_timestamp [13:24:25]File name is /storage/kkm_last_timestamp [13:24:25]Write 4 bytes [13:24:25]NVStorageSaveData done [13:24:26]ExternCall_PrintAddStr [13:24:26]wPrintStart [13:24:26]Write to MH i2c: 01 00 00 D5 59 2E [13:24:26]Write i2c OK [13:24:26]MH_I2C_Read... [13:24:26]Read from MH i2c: 01 [13:24:26]MH_I2C_Read... [13:24:26]Read from MH i2c: 01 07 00 [13:24:26]MH_I2C_Read... [13:24:26]Read from MH i2c: 01 07 00 D5 59 00 00 00 00 00 FF 0F 43 [13:24:26]RasterBufferAndPrint [13:24:26]line Счет N : (1)209791 [13:24:26]line ИНН: 02508201610067 [13:24:26]line Контрольно-Кассовый Чек [13:24:26]line ПРОДАЖА [13:24:26]line ТРК (МРК, ГНК) : 22 [13:24:26]line Товар: 2710124130 [13:24:26]line Аи-92-К-3 [13:24:26]line 2.990 * 66.90 [13:24:26]line = 200.03 [13:24:26]line НДС 12% НСП 1% [13:24:26]line > о реализуемом товаре [13:24:26]line ОКРУГЛЕНИЕ: -0.03 [13:24:26]line ИТОГО: 200.00 [13:24:26]line Внесено: 200.00 [13:24:26]line СДАЧА: 0.00 [13:24:26]line НСП 1% : 1.77 [13:24:26]line НДС 12% : 21.24 [13:24:26]line Наличными: 200.00 [13:24:26]line Безнал.: 0.00 [13:24:26]line Место: АЗС № 86 "Партнер Нефть" [13:24:26]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [13:24:26]line СНО: Общий режим [13:24:26]line Чек 203 21.10.2024 13:24 [13:24:26]line Смена: 460 ФФД: 1.0 [13:24:26]line ЗНМ: 0300000155 [13:24:26]line РНМ: 0000000000100030 [13:24:26]line Версия ККМ: 001 [13:24:26]line ФМ: 0000000000965340 [13:24:26]line ФД: 187739 [13:24:26]line ФПД: 190020841273402 [13:24:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T132428&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187739&fm=190020841273402&tin=02508201610067®Number=0000000000100030&sum=20000 [13:24:26]written 0, free lines is 4095 [13:24:26]OFD Sender: Processing packet 187739 [packets to send 1062, broken 1061] [13:24:26]ProducePacketName [13:24:26]name=ofd_packets/00187739 [13:24:26]OFD Sender: To server: pG, [13:24:26]CommunicateWithHost lk.salyk.kg:30040 [13:24:26]ConnectInit lk.salyk.kg [13:24:26]Write to MH i2c: 01 00 00 00 5A 5A [13:24:26]Write i2c OK [13:24:26]MH_I2C_Read... [13:24:26]Read from MH i2c: 01 [13:24:26]MH_I2C_Read... [13:24:26]Read from MH i2c: 01 07 00 [13:24:26]MH_I2C_Read... [13:24:26]Read from MH i2c: 01 07 00 00 5A 00 00 00 00 00 6D 0C DA [13:24:26]RasterBufferAndPrint [13:24:26]line [13:24:26]line [13:24:26]line [13:24:26]line [13:24:26]line [13:24:26]written 0, free lines is 3183 [13:24:26]MH_Cut [13:24:26]Write to MH i2c: D1 01 00 07 5A 01 33 [13:24:26]Write i2c OK [13:24:26]MH_I2C_Read... [13:24:26]Connected sock=9 [13:24:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 0C C1 07 01 94 8D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 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 CB 00 00 00 F4 03 04 00 0C 56 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 5B DD 02 00 35 04 06 00 AC D2 AC BE 78 3A BE D2 40 C5 8A 9C 50 0D [13:24:26]Read from MH i2c: D1 [13:24:26]MH_I2C_Read... [13:24:26]Read from MH i2c: D1 01 00 [13:24:26]MH_I2C_Read... [13:24:26]Read from MH i2c: D1 01 00 07 5A 00 32 [13:24:26]Write to MH i2c: 01 00 00 08 5A 62 [13:24:26]Write i2c OK [13:24:26]MH_I2C_Read... [13:24:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 5A F4 47 00 C2 66 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 5B DD 02 00 F4 03 04 00 FC FF 15 67 B6 04 01 00 00 E9 80 21 E2 50 48 3C E8 [13:24:26]CommunicateWithHost err = 0 [13:24:26]CheckOFDResponse [13:24:26]1017 (14) - 77093643461234 [13:24:26]1041 (16) - 0000000000965340 [13:24:26]1040 (4) - 187739 [13:24:26]1012 (4) - 21.10.2024 07:17 [13:24:26]1206 (1) - 0 [13:24:26]OFD Sender: Remove packet 187739 [13:24:26]ProducePacketName [13:24:26]name=ofd_packets/00187739 [13:24:26]NVStorageDeleteData [13:24:27]OFD Sender: No OFD packet to send [13:24:27]*** Cut start [13:24:27]*** Partial cut [13:24:27]*** CUTSNS_PIN = 1 [13:24:27]*** CUTSNS_PIN = 0 [13:24:27]*** Brake cut motor [13:24:28]Read from MH i2c: 01 [13:24:28]MH_I2C_Read... [13:24:28]*** Stop cut motor [13:24:28]*** Cut end [13:24:28]Read from MH i2c: 01 07 00 [13:24:28]MH_I2C_Read... [13:24:28]Read from MH i2c: 01 07 00 08 5A 00 00 00 00 00 FF 0F 77 [13:24:28]process_action close_receipt done [13:24:28]requested_data is exist [13:24:28]produce_requested_data [13:24:28]requested_item fm.sn is exist - process it [13:24:28]wFMCommunicate request_size=4 [13:24:28]MH_SAM_APDU [13:24:28]CAPDU: 80 11 00 00 [13:24:28]Write to MH i2c: E2 08 00 09 5A 80 11 00 00 00 00 00 00 DD [13:24:28]Write i2c OK [13:24:28]MH_I2C_Read... [13:24:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:24:28]Read from MH i2c: E2 [13:24:28]MH_I2C_Read... [13:24:28]Read from MH i2c: E2 17 00 [13:24:28]MH_I2C_Read... [13:24:28]Read from MH i2c: E2 17 00 09 5A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 2B [13:24:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [13:24:28]wFMCommunicate OK [13:24:28]requested_item fd.num is exist - process it [13:24:28]SAM_PROTO_GetFieldsCounters [13:24:28]wFMCommunicate request_size=4 [13:24:28]MH_SAM_APDU [13:24:28]CAPDU: 80 13 00 00 [13:24:28]Write to MH i2c: E2 08 00 0A 5A 80 13 00 00 00 00 00 00 E0 [13:24:28]Write i2c OK [13:24:28]MH_I2C_Read... [13:24:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:24:28]Read from MH i2c: E2 [13:24:28]MH_I2C_Read... [13:24:28]Read from MH i2c: E2 62 00 [13:24:28]MH_I2C_Read... [13:24:28]Read from MH i2c: E2 62 00 0A 5A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 5B DD 02 00 0E 04 04 00 CC 01 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 4F [13:24:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 5B DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 CB 00 00 00 5E 04 04 00 CB 00 00 00 57 04 04 00 CC 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:24:28]wFMCommunicate OK [13:24:28]SAM_PROTO_GetFieldsCounters done [13:24:28]requested_item shift.num is exist - process it [13:24:28]requested_item shift.opened is exist - process it [13:24:28]req_shift_opened [13:24:28]FM_GetShiftState [13:24:28]SAM_PROTO_GetShiftState [13:24:28]wFMCommunicate request_size=4 [13:24:28]MH_SAM_APDU [13:24:28]CAPDU: 80 13 01 00 [13:24:28]Write to MH i2c: E2 08 00 0B 5A 80 13 01 00 00 00 00 00 E2 [13:24:28]Write i2c OK [13:24:28]MH_I2C_Read... [13:24:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:24:28]Read from MH i2c: E2 [13:24:28]MH_I2C_Read... [13:24:28]Read from MH i2c: E2 0E 00 [13:24:28]MH_I2C_Read... [13:24:28]Read from MH i2c: E2 0E 00 0B 5A 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 41 [13:24:28]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [13:24:28]wFMCommunicate OK [13:24:28]SAM_PROTO_GetShiftState done [13:24:28]FM_GetShiftState done [13:24:28]req_shift_opened done [13:24:28]requested_item shift.open_date is exist - process it [13:24:28]req_shift_open_date [13:24:28]req_shift_open_date done [13:24:28]produce_requested_data done [13:24:28]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187739,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [13:24:28]process_action_free close_receipt [13:24:28]json_value_free [13:24:28]json_value_free done [13:24:28]process_json_proto returns [13:24:28]Send response to host [13:24:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187739,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [13:24:28]free response buf [13:24:28]execute_script done [13:24:28]execute_script returns [13:24:28]free content buf [13:24:28]Sock 10.Close socket [13:24:28]Sock 10.Thread stoped [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:49]accept exits with 8 [13:24:49]New connection [13:24:49]New thread 3067157860 created [13:24:49]Thread 3067014500 joined [13:24:49]Waiting for new connection... [13:24:49] Sock 8.Parse request [13:24:49]Sock 8.Check first char [13:24:49]Sock 8.First char is OK [13:24:49]request: POST /json_proto HTTP/1.0 [13:24:49]Method: POST [13:24:49]URL: /json_proto [13:24:49]Method is POST - this is cgi request [13:24:49]url: /json_proto [13:24:49]query_string will be loaded in cgi processing [13:24:49]execute_cgi json_proto POST (null) [13:24:49]execute_cgi path=json_proto method=POST [13:24:49]POST find Content-Length [13:24:49]Host: 172.17.42.131:8080 [13:24:49]Content-Length: 677 [13:24:49]Content-Type: application/json [13:24:49] [13:24:49]POST finish read [13:24:49]Found Content-Length = 677 [13:24:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209792", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "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" ] } } [13:24:49]execute_script... [13:24: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)209792", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "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" ] } } [13:24:49]POST & json_proto [13:24:49]process_json_proto [13:24:49]json parsed OK: [13:24:49]protocol is kg_v1.0 [13:24:49]action value=close_receipt [13:24:49]process_action close_receipt [13:24:49]cmd_close_receipt [13:24:49]MH_GetDate [13:24:49]Write to MH i2c: F0 00 00 0C 5A 55 [13:24:49]Write i2c OK [13:24:49]MH_I2C_Read... [13:24:49]Read from MH i2c: F0 [13:24:49]MH_I2C_Read... [13:24:49]Read from MH i2c: F0 09 00 [13:24:49]MH_I2C_Read... [13:24:49]Read from MH i2c: F0 09 00 0C 5A 00 25 56 16 67 A0 18 CA 66 3E [13:24:49]GetLastDocTimeStamp 1729517068 [13:24:49]current date 1729517093 [13:24:49]FM_GetShiftState [13:24:49]SAM_PROTO_GetShiftState [13:24:49]wFMCommunicate request_size=4 [13:24:49]MH_SAM_APDU [13:24:49]CAPDU: 80 13 01 00 [13:24:49]Write to MH i2c: E2 08 00 0D 5A 80 13 01 00 00 00 00 00 E4 [13:24:49]Write i2c OK [13:24:49]MH_I2C_Read... [13:24:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:24:49]Read from MH i2c: E2 [13:24:49]MH_I2C_Read... [13:24:49]Read from MH i2c: E2 0E 00 [13:24:49]MH_I2C_Read... [13:24:49]Read from MH i2c: E2 0E 00 0D 5A 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 43 [13:24:49]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [13:24:49]wFMCommunicate OK [13:24:49]SAM_PROTO_GetShiftState done [13:24:49]FM_GetShiftState done [13:24:49]opened in 1729469754 [13:24:49]opened+sec_in_day 1729556154 [13:24:49]quantity*price = 20003 [13:24:49]sum+1 = 20004 [13:24:49]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 204 21.10.2024 13:24 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 187740 ФПД: 15082473396277 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T132453&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187740&fm=15082473396277&tin=02508201610067®Number=0000000000100030&sum=20000 [13:24:50]StoreToDocumentArchive [13:24:50]shift 460 fd 187740 [13:24:50]save to /storage/0460/doc_00187740 [13:24:50]save last doc name /storage/0460/doc_00187740 to /storage/kkm_last_doc_name [13:24:50]save OK [13:24:50]Clear old archive folders... [13:24:50]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:24:50]tlvbuf is 01256640 [13:24:50]SAM_PROTO_ClearQueue [13:24:50]wFMCommunicate request_size=4 [13:24:50]MH_SAM_APDU [13:24:50]CAPDU: 80 09 00 00 [13:24:50]Write to MH i2c: E2 08 00 1A 5A 80 09 00 00 00 00 00 00 E6 [13:24:50]Write i2c OK [13:24:50]MH_I2C_Read... [13:24:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:24:50]Read from MH i2c: E2 [13:24:50]MH_I2C_Read... [13:24:50]Read from MH i2c: E2 03 00 [13:24:50]MH_I2C_Read... [13:24:50]Read from MH i2c: E2 03 00 1A 5A 00 90 00 E8 [13:24:50]RAPDU: 90 00 [13:24:50]wFMCommunicate OK [13:24:50]SAM_PROTO_ClearQueue done [13:24:50]KKMCreateOFDPacket [13:24:50]OFDProtocolAddRootSTLVToBuf [13:24:50]FM_MakeSignedData [13:24:50]FM_MakeSignedData [13:24:50]SAM_PROTO_SignData [13:24:50]wFMCommunicate request_size=4 [13:24:50]MH_SAM_APDU [13:24:50]CAPDU: 80 0D 01 02 [13:24:50]Write to MH i2c: E2 08 00 1B 5A 80 0D 01 02 00 00 00 00 EE [13:24:50]Write i2c OK [13:24:50]MH_I2C_Read... [13:24:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:24:50]Read from MH i2c: E2 [13:24:50]MH_I2C_Read... [13:24:50]Read from MH i2c: E2 03 00 [13:24:50]MH_I2C_Read... [13:24:50]Read from MH i2c: E2 03 00 1B 5A 00 90 00 E9 [13:24:50]RAPDU: 90 00 [13:24:50]wFMCommunicate OK [13:24:50]wFMCommunicate request_size=255 [13:24:50]MH_SAM_APDU [13:24: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 33 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 CC 00 00 00 F4 03 04 00 25 56 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 5C DD 02 00 35 04 06 00 0D [13:24:50]Write to MH i2c: E2 02 01 1C 5A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 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 CC 00 00 00 F4 03 04 00 25 56 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 5C DD 02 00 35 04 06 00 0D 00 00 FC [13:24:50]Write i2c OK [13:24:50]MH_I2C_Read... [13:24:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:24:50]Read from MH i2c: E2 [13:24:50]MH_I2C_Read... [13:24:50]Read from MH i2c: E2 03 00 [13:24:50]MH_I2C_Read... [13:24:50]Read from MH i2c: E2 03 00 1C 5A 00 90 00 EA [13:24:50]RAPDU: 90 00 [13:24:50]wFMCommunicate OK [13:24:50]wFMCommunicate request_size=10 [13:24:50]MH_SAM_APDU [13:24:50]CAPDU: 80 0D 02 02 05 B7 A9 78 18 35 [13:24:50]Write to MH i2c: E2 0D 00 1D 5A 80 0D 02 02 05 00 B7 A9 78 18 35 00 00 20 [13:24:50]Write i2c OK [13:24:50]MH_I2C_Read... [13:24:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:24:50]Read from MH i2c: E2 [13:24:50]MH_I2C_Read... [13:24:50]Read from MH i2c: E2 03 00 [13:24:50]MH_I2C_Read... [13:24:50]Read from MH i2c: E2 03 00 1D 5A 00 90 00 EB [13:24:50]RAPDU: 90 00 [13:24:50]wFMCommunicate OK [13:24:50]wFMCommunicate request_size=4 [13:24:50]MH_SAM_APDU [13:24:50]CAPDU: 80 0D 03 02 [13:24:50]Write to MH i2c: E2 08 00 1E 5A 80 0D 03 02 00 00 00 00 F3 [13:24:50]Write i2c OK [13:24:50]MH_I2C_Read... [13:24:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:24:50]Read from MH i2c: E2 [13:24:50]MH_I2C_Read... [13:24:50]Read from MH i2c: E2 0B 00 [13:24:50]MH_I2C_Read... [13:24:50]Read from MH i2c: E2 0B 00 1E 5A 00 99 8B F0 1D C1 8B 1C 5F 90 00 EC [13:24:50]RAPDU: 99 8B F0 1D C1 8B 1C 5F 90 00 [13:24:50]wFMCommunicate OK [13:24:50]SAM_PROTO_SignData done [13:24:50]FM_MakeSignedData done [13:24:50]CreateOFDProtocolMessage [13:24:50]wFMCommunicate request_size=4 [13:24:50]MH_SAM_APDU [13:24:50]CAPDU: 80 11 00 00 [13:24:50]Write to MH i2c: E2 08 00 1F 5A 80 11 00 00 00 00 00 00 F3 [13:24:50]Write i2c OK [13:24:50]MH_I2C_Read... [13:24:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:24:50]Read from MH i2c: E2 [13:24:50]MH_I2C_Read... [13:24:50]Read from MH i2c: E2 17 00 [13:24:50]MH_I2C_Read... [13:24:50]Read from MH i2c: E2 17 00 1F 5A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 41 [13:24:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [13:24:50]wFMCommunicate OK [13:24:50]CreateOFDProtocolMessage done [13:24:50]OFDSenderStorePacket 187740 [13:24:50]StoreOFDPacket docnum=187740 [13:24:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 EF 82 07 01 B4 EB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 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 CC 00 00 00 F4 03 04 00 25 56 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 5C DD 02 00 35 04 06 00 0D B7 A9 78 18 35 99 8B F0 1D C1 8B 1C 5F [13:24:50]CheckFolder [13:24:50]dirname=/storage/ofd_packets [13:24:50]CheckFolder done [13:24:50]ProducePacketName [13:24:50]name=ofd_packets/00187740 [13:24:50]NVStorageSaveData ofd_packets/00187740 [13:24:50]File name is /storage/ofd_packets/00187740 [13:24:50]Write 301 bytes [13:24:50]NVStorageSaveData done [13:24:50]OFDSenderStorePacket done [13:24:50]KKMCreateOFDPacket done [13:24:50]NVStorageSaveData kkm_last_timestamp [13:24:50]File name is /storage/kkm_last_timestamp [13:24:50]Write 4 bytes [13:24:50]NVStorageSaveData done [13:24:51]ExternCall_PrintAddStr [13:24:51]wPrintStart [13:24:51]Write to MH i2c: 01 00 00 20 5A 7A [13:24:51]Write i2c OK [13:24:51]MH_I2C_Read... [13:24:51]Read from MH i2c: 01 [13:24:51]MH_I2C_Read... [13:24:51]Read from MH i2c: 01 07 00 [13:24:51]MH_I2C_Read... [13:24:51]Read from MH i2c: 01 07 00 20 5A 00 00 00 00 00 FF 0F 8F [13:24:51]RasterBufferAndPrint [13:24:51]line Счет N : (1)209792 [13:24:51]line ИНН: 02508201610067 [13:24:51]line Контрольно-Кассовый Чек [13:24:51]line ПРОДАЖА [13:24:51]line ТРК (МРК, ГНК) : 42 [13:24:51]line Товар: 2710124130 [13:24:51]line Аи-92-К-3 [13:24:51]line 2.990 * 66.90 [13:24:51]line = 200.03 [13:24:51]line НДС 12% НСП 1% [13:24:51]line > о реализуемом товаре [13:24:51]line ОКРУГЛЕНИЕ: -0.03 [13:24:51]line ИТОГО: 200.00 [13:24:51]line Внесено: 200.00 [13:24:51]line СДАЧА: 0.00 [13:24:51]line НСП 1% : 1.77 [13:24:51]line НДС 12% : 21.24 [13:24:51]line Наличными: 200.00 [13:24:51]line Безнал.: 0.00 [13:24:51]line Место: АЗС № 86 "Партнер Нефть" [13:24:51]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [13:24:51]line СНО: Общий режим [13:24:51]line Чек 204 21.10.2024 13:24 [13:24:51]line Смена: 460 ФФД: 1.0 [13:24:51]line ЗНМ: 0300000155 [13:24:51]line РНМ: 0000000000100030 [13:24:51]line Версия ККМ: 001 [13:24:51]line ФМ: 0000000000965340 [13:24:51]line ФД: 187740 [13:24:51]line ФПД: 15082473396277 [13:24:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T132453&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187740&fm=15082473396277&tin=02508201610067®Number=0000000000100030&sum=20000 [13:24:51]written 0, free lines is 4095 [13:24:51]OFD Sender: Processing packet 187740 [packets to send 1062, broken 1061] [13:24:51]ProducePacketName [13:24:51]name=ofd_packets/00187740 [13:24:51]OFD Sender: To server: pG, [13:24:51]CommunicateWithHost lk.salyk.kg:30040 [13:24:51]ConnectInit lk.salyk.kg [13:24:51]Connected sock=10 [13:24:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 EF 82 07 01 B4 EB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 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 CC 00 00 00 F4 03 04 00 25 56 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 5C DD 02 00 35 04 06 00 0D B7 A9 78 18 35 99 8B F0 1D C1 8B 1C 5F [13:24:51]Write to MH i2c: 01 00 00 4B 5A A5 [13:24:51]Write i2c OK [13:24:51]MH_I2C_Read... [13:24:51]Read from MH i2c: 01 [13:24:51]MH_I2C_Read... [13:24:51]Read from MH i2c: 01 07 00 [13:24:51]MH_I2C_Read... [13:24:51]Read from MH i2c: 01 07 00 4B 5A 00 00 00 00 00 6C 0C 24 [13:24:51]RasterBufferAndPrint [13:24:51]line [13:24:51]line [13:24:51]line [13:24:51]line [13:24:51]line [13:24:51]written 0, free lines is 3183 [13:24:51]MH_Cut [13:24:51]Write to MH i2c: D1 01 00 52 5A 01 7E [13:24:51]Write i2c OK [13:24:51]MH_I2C_Read... [13:24:51]Read from MH i2c: D1 [13:24:51]MH_I2C_Read... [13:24:51]Read from MH i2c: D1 01 00 [13:24:51]MH_I2C_Read... [13:24:51]Read from MH i2c: D1 01 00 52 5A 00 7D [13:24:51]Write to MH i2c: 01 00 00 53 5A AD [13:24:51]Write i2c OK [13:24:51]MH_I2C_Read... [13:24:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 ED DF 47 00 30 95 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 5C DD 02 00 F4 03 04 00 15 00 16 67 B6 04 01 00 00 F5 EE 7B DB CD 20 6F 34 [13:24:51]CommunicateWithHost err = 0 [13:24:51]CheckOFDResponse [13:24:51]1017 (14) - 77093643461234 [13:24:51]1041 (16) - 0000000000965340 [13:24:51]1040 (4) - 187740 [13:24:51]1012 (4) - 21.10.2024 07:17 [13:24:51]1206 (1) - 0 [13:24:51]OFD Sender: Remove packet 187740 [13:24:51]ProducePacketName [13:24:51]name=ofd_packets/00187740 [13:24:51]NVStorageDeleteData [13:24:52]OFD Sender: No OFD packet to send [13:24:52]*** Cut start [13:24:52]*** Partial cut [13:24:52]*** CUTSNS_PIN = 1 [13:24:52]*** CUTSNS_PIN = 0 [13:24:52]*** Brake cut motor [13:24:53]Read from MH i2c: 01 [13:24:53]MH_I2C_Read... [13:24:53]*** Stop cut motor [13:24:53]*** Cut end [13:24:53]Read from MH i2c: 01 07 00 [13:24:53]MH_I2C_Read... [13:24:53]Read from MH i2c: 01 07 00 53 5A 00 00 00 00 00 FF 0F C2 [13:24:53]process_action close_receipt done [13:24:53]requested_data is exist [13:24:53]produce_requested_data [13:24:53]requested_item fm.sn is exist - process it [13:24:53]wFMCommunicate request_size=4 [13:24:53]MH_SAM_APDU [13:24:53]CAPDU: 80 11 00 00 [13:24:53]Write to MH i2c: E2 08 00 54 5A 80 11 00 00 00 00 00 00 28 [13:24:53]Write i2c OK [13:24:53]MH_I2C_Read... [13:24:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:24:53]Read from MH i2c: E2 [13:24:53]MH_I2C_Read... [13:24:53]Read from MH i2c: E2 17 00 [13:24:53]MH_I2C_Read... [13:24:53]Read from MH i2c: E2 17 00 54 5A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 76 [13:24:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [13:24:53]wFMCommunicate OK [13:24:53]requested_item fd.num is exist - process it [13:24:53]SAM_PROTO_GetFieldsCounters [13:24:53]wFMCommunicate request_size=4 [13:24:53]MH_SAM_APDU [13:24:53]CAPDU: 80 13 00 00 [13:24:53]Write to MH i2c: E2 08 00 55 5A 80 13 00 00 00 00 00 00 2B [13:24:53]Write i2c OK [13:24:53]MH_I2C_Read... [13:24:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:24:53]Read from MH i2c: E2 [13:24:53]MH_I2C_Read... [13:24:53]Read from MH i2c: E2 62 00 [13:24:53]MH_I2C_Read... [13:24:53]Read from MH i2c: E2 62 00 55 5A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 5C DD 02 00 0E 04 04 00 CC 01 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 9E [13:24:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 5C DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 CC 00 00 00 5E 04 04 00 CC 00 00 00 57 04 04 00 CD 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:24:53]wFMCommunicate OK [13:24:53]SAM_PROTO_GetFieldsCounters done [13:24:53]requested_item shift.num is exist - process it [13:24:53]requested_item shift.opened is exist - process it [13:24:53]req_shift_opened [13:24:53]FM_GetShiftState [13:24:53]SAM_PROTO_GetShiftState [13:24:53]wFMCommunicate request_size=4 [13:24:53]MH_SAM_APDU [13:24:53]CAPDU: 80 13 01 00 [13:24:53]Write to MH i2c: E2 08 00 56 5A 80 13 01 00 00 00 00 00 2D [13:24:53]Write i2c OK [13:24:53]MH_I2C_Read... [13:24:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:24:53]Read from MH i2c: E2 [13:24:53]MH_I2C_Read... [13:24:53]Read from MH i2c: E2 0E 00 [13:24:53]MH_I2C_Read... [13:24:53]Read from MH i2c: E2 0E 00 56 5A 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 8C [13:24:53]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [13:24:53]wFMCommunicate OK [13:24:53]SAM_PROTO_GetShiftState done [13:24:53]FM_GetShiftState done [13:24:53]req_shift_opened done [13:24:53]requested_item shift.open_date is exist - process it [13:24:53]req_shift_open_date [13:24:53]req_shift_open_date done [13:24:53]produce_requested_data done [13:24:53]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187740,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [13:24:53]process_action_free close_receipt [13:24:53]json_value_free [13:24:53]json_value_free done [13:24:53]process_json_proto returns [13:24:53]Send response to host [13:24:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187740,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [13:24:53]free response buf [13:24:53]execute_script done [13:24:53]execute_script returns [13:24:53]free content buf [13:24:53]Sock 8.Close socket [13:24:53]Sock 8.Thread stoped [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: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:42]OFD Sender: No OFD packet to send [13:27:47]OFD Sender: No OFD packet to send [13:27:52]OFD Sender: No OFD packet to send [13:27:58]OFD Sender: No OFD packet to send [13:28:03]OFD Sender: No OFD packet to send [13:28:08]OFD Sender: No OFD packet to send [13:28:13]OFD Sender: No OFD packet to send [13:28:18]OFD Sender: No OFD packet to send [13:28:23]OFD Sender: No OFD packet to send [13:28:28]OFD Sender: No OFD packet to send [13:28:33]OFD Sender: No OFD packet to send [13:28:38]OFD Sender: No OFD packet to send [13:28:43]OFD Sender: No OFD packet to send [13:28:48]OFD Sender: No OFD packet to send [13:28:53]OFD Sender: No OFD packet to send [13:28:58]OFD Sender: No OFD packet to send [13:29:03]OFD Sender: No OFD packet to send [13:29:08]OFD Sender: No OFD packet to send [13:29:13]OFD Sender: No OFD packet to send [13:29:18]OFD Sender: No OFD packet to send [13:29:23]OFD Sender: No OFD packet to send [13:29:28]OFD Sender: No OFD packet to send [13:29:33]OFD Sender: No OFD packet to send [13:29:38]OFD Sender: No OFD packet to send [13:29:43]OFD Sender: No OFD packet to send [13:29:48]OFD Sender: No OFD packet to send [13:29:53]OFD Sender: No OFD packet to send [13:29:58]OFD Sender: No OFD packet to send [13:30:03]OFD Sender: No OFD packet to send [13:30:08]OFD Sender: No OFD packet to send [13:30:13]OFD Sender: No OFD packet to send [13:30:18]OFD Sender: No OFD packet to send [13:30:23]OFD Sender: No OFD packet to send [13:30:28]OFD Sender: No OFD packet to send [13:30:33]OFD Sender: No OFD packet to send [13:30:38]OFD Sender: No OFD packet to send [13:30:43]OFD Sender: No OFD packet to send [13:30:45]accept exits with 9 [13:30:45]New connection [13:30:45]New thread 3067014500 created [13:30:45]Thread 3067157860 joined [13:30:45]Waiting for new connection... [13:30:45] Sock 9.Parse request [13:30:45]Sock 9.Check first char [13:30:45]Sock 9.First char is OK [13:30:45]request: POST /json_proto HTTP/1.0 [13:30:45]Method: POST [13:30:45]URL: /json_proto [13:30:45]Method is POST - this is cgi request [13:30:45]url: /json_proto [13:30:45]query_string will be loaded in cgi processing [13:30:45]execute_cgi json_proto POST (null) [13:30:45]execute_cgi path=json_proto method=POST [13:30:45]POST find Content-Length [13:30:45]Host: 172.17.42.131:8080 [13:30:45]Content-Length: 677 [13:30:45]Content-Type: application/json [13:30:45] [13:30:45]POST finish read [13:30:45]Found Content-Length = 677 [13:30:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209793", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "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:30:45]execute_script... [13: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)209793", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "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:30:45]POST & json_proto [13:30:45]process_json_proto [13:30:45]json parsed OK: [13:30:45]protocol is kg_v1.0 [13:30:45]action value=close_receipt [13:30:45]process_action close_receipt [13:30:45]cmd_close_receipt [13:30:45]MH_GetDate [13:30:45]Write to MH i2c: F0 00 00 57 5A A0 [13:30:45]Write i2c OK [13:30:45]MH_I2C_Read... [13:30:45]Read from MH i2c: F0 [13:30:45]MH_I2C_Read... [13:30:45]Read from MH i2c: F0 09 00 [13:30:45]MH_I2C_Read... [13:30:45]Read from MH i2c: F0 09 00 57 5A 00 89 57 16 67 A0 18 CA 66 EE [13:30:45]GetLastDocTimeStamp 1729517093 [13:30:45]current date 1729517449 [13:30:45]FM_GetShiftState [13:30:45]SAM_PROTO_GetShiftState [13:30:45]wFMCommunicate request_size=4 [13:30:45]MH_SAM_APDU [13:30:45]CAPDU: 80 13 01 00 [13:30:45]Write to MH i2c: E2 08 00 58 5A 80 13 01 00 00 00 00 00 2F [13:30:45]Write i2c OK [13:30:45]MH_I2C_Read... [13:30:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:30:45]Read from MH i2c: E2 [13:30:45]MH_I2C_Read... [13:30:45]Read from MH i2c: E2 0E 00 [13:30:45]MH_I2C_Read... [13:30:45]Read from MH i2c: E2 0E 00 58 5A 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 8E [13:30:45]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [13:30:45]wFMCommunicate OK [13:30:45]SAM_PROTO_GetShiftState done [13:30:45]FM_GetShiftState done [13:30:45]opened in 1729469754 [13:30:45]opened+sec_in_day 1729556154 [13:30:45]quantity*price = 50041 [13:30:45]sum+1 = 50042 [13:30:45]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 205 21.10.2024 13:30 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 187741 ФПД: 168180644628271 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T133049&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187741&fm=168180644628271&tin=02508201610067®Number=0000000000100030&sum=50000 [13:30:46]StoreToDocumentArchive [13:30:46]shift 460 fd 187741 [13:30:46]save to /storage/0460/doc_00187741 [13:30:46]save last doc name /storage/0460/doc_00187741 to /storage/kkm_last_doc_name [13:30:46]save OK [13:30:46]Clear old archive folders... [13:30:46]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:30:46]tlvbuf is B6F8A230 [13:30:46]SAM_PROTO_ClearQueue [13:30:46]wFMCommunicate request_size=4 [13:30:46]MH_SAM_APDU [13:30:46]CAPDU: 80 09 00 00 [13:30:46]Write to MH i2c: E2 08 00 65 5A 80 09 00 00 00 00 00 00 31 [13:30:46]Write i2c OK [13:30:46]MH_I2C_Read... [13:30:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:30:46]Read from MH i2c: E2 [13:30:46]MH_I2C_Read... [13:30:46]Read from MH i2c: E2 03 00 [13:30:46]MH_I2C_Read... [13:30:46]Read from MH i2c: E2 03 00 65 5A 00 90 00 33 [13:30:46]RAPDU: 90 00 [13:30:46]wFMCommunicate OK [13:30:46]SAM_PROTO_ClearQueue done [13:30:46]KKMCreateOFDPacket [13:30:46]OFDProtocolAddRootSTLVToBuf [13:30:46]FM_MakeSignedData [13:30:46]FM_MakeSignedData [13:30:46]SAM_PROTO_SignData [13:30:46]wFMCommunicate request_size=4 [13:30:46]MH_SAM_APDU [13:30:46]CAPDU: 80 0D 01 02 [13:30:46]Write to MH i2c: E2 08 00 66 5A 80 0D 01 02 00 00 00 00 39 [13:30:46]Write i2c OK [13:30:46]MH_I2C_Read... [13:30:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:30:46]Read from MH i2c: E2 [13:30:46]MH_I2C_Read... [13:30:46]Read from MH i2c: E2 03 00 [13:30:46]MH_I2C_Read... [13:30:46]Read from MH i2c: E2 03 00 66 5A 00 90 00 34 [13:30:46]RAPDU: 90 00 [13:30:46]wFMCommunicate OK [13:30:46]wFMCommunicate request_size=255 [13:30:46]MH_SAM_APDU [13:30: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 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CD 00 00 00 F4 03 04 00 89 57 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 5D DD 02 00 35 04 06 00 98 [13:30:46]Write to MH i2c: E2 02 01 67 5A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CD 00 00 00 F4 03 04 00 89 57 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 5D DD 02 00 35 04 06 00 98 00 00 77 [13:30:46]Write i2c OK [13:30:46]MH_I2C_Read... [13:30:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:30:46]Read from MH i2c: E2 [13:30:46]MH_I2C_Read... [13:30:46]Read from MH i2c: E2 03 00 [13:30:46]MH_I2C_Read... [13:30:46]Read from MH i2c: E2 03 00 67 5A 00 90 00 35 [13:30:46]RAPDU: 90 00 [13:30:46]wFMCommunicate OK [13:30:46]wFMCommunicate request_size=10 [13:30:46]MH_SAM_APDU [13:30:46]CAPDU: 80 0D 02 02 05 F5 9B 94 C7 2F [13:30:46]Write to MH i2c: E2 0D 00 68 5A 80 0D 02 02 05 00 F5 9B 94 C7 2F 00 00 60 [13:30:46]Write i2c OK [13:30:46]MH_I2C_Read... [13:30:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:30:46]Read from MH i2c: E2 [13:30:47]MH_I2C_Read... [13:30:47]Read from MH i2c: E2 03 00 [13:30:47]MH_I2C_Read... [13:30:47]Read from MH i2c: E2 03 00 68 5A 00 90 00 36 [13:30:47]RAPDU: 90 00 [13:30:47]wFMCommunicate OK [13:30:47]wFMCommunicate request_size=4 [13:30:47]MH_SAM_APDU [13:30:47]CAPDU: 80 0D 03 02 [13:30:47]Write to MH i2c: E2 08 00 69 5A 80 0D 03 02 00 00 00 00 3E [13:30:47]Write i2c OK [13:30:47]MH_I2C_Read... [13:30:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:30:47]Read from MH i2c: E2 [13:30:47]MH_I2C_Read... [13:30:47]Read from MH i2c: E2 0B 00 [13:30:47]MH_I2C_Read... [13:30:47]Read from MH i2c: E2 0B 00 69 5A 00 AC 52 48 7D 48 E0 34 53 90 00 B1 [13:30:47]RAPDU: AC 52 48 7D 48 E0 34 53 90 00 [13:30:47]wFMCommunicate OK [13:30:47]SAM_PROTO_SignData done [13:30:47]FM_MakeSignedData done [13:30:47]CreateOFDProtocolMessage [13:30:47]wFMCommunicate request_size=4 [13:30:47]MH_SAM_APDU [13:30:47]CAPDU: 80 11 00 00 [13:30:47]Write to MH i2c: E2 08 00 6A 5A 80 11 00 00 00 00 00 00 3E [13:30:47]Write i2c OK [13:30:47]MH_I2C_Read... [13:30:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:30:47]Read from MH i2c: E2 [13:30:47]MH_I2C_Read... [13:30:47]Read from MH i2c: E2 17 00 [13:30:47]MH_I2C_Read... [13:30:47]Read from MH i2c: E2 17 00 6A 5A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 8C [13:30:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [13:30:47]wFMCommunicate OK [13:30:47]CreateOFDProtocolMessage done [13:30:47]OFDSenderStorePacket 187741 [13:30:47]StoreOFDPacket docnum=187741 [13:30:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 86 C5 07 01 BF 74 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CD 00 00 00 F4 03 04 00 89 57 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 5D DD 02 00 35 04 06 00 98 F5 9B 94 C7 2F AC 52 48 7D 48 E0 34 53 [13:30:47]CheckFolder [13:30:47]dirname=/storage/ofd_packets [13:30:47]CheckFolder done [13:30:47]ProducePacketName [13:30:47]name=ofd_packets/00187741 [13:30:47]NVStorageSaveData ofd_packets/00187741 [13:30:47]File name is /storage/ofd_packets/00187741 [13:30:47]Write 301 bytes [13:30:47]NVStorageSaveData done [13:30:47]OFDSenderStorePacket done [13:30:47]KKMCreateOFDPacket done [13:30:47]NVStorageSaveData kkm_last_timestamp [13:30:47]File name is /storage/kkm_last_timestamp [13:30:47]Write 4 bytes [13:30:47]NVStorageSaveData done [13:30:47]ExternCall_PrintAddStr [13:30:47]wPrintStart [13:30:47]Write to MH i2c: 01 00 00 6B 5A C5 [13:30:47]Write i2c OK [13:30:47]MH_I2C_Read... [13:30:47]Read from MH i2c: 01 [13:30:47]MH_I2C_Read... [13:30:47]Read from MH i2c: 01 07 00 [13:30:47]MH_I2C_Read... [13:30:47]Read from MH i2c: 01 07 00 6B 5A 00 00 00 00 00 FF 0F DA [13:30:47]RasterBufferAndPrint [13:30:47]line Счет N : (1)209793 [13:30:47]line ИНН: 02508201610067 [13:30:47]line Контрольно-Кассовый Чек [13:30:47]line ПРОДАЖА [13:30:47]line ТРК (МРК, ГНК) : 42 [13:30:47]line Товар: 2710124130 [13:30:47]line Аи-92-К-3 [13:30:47]line 7.480 * 66.90 [13:30:47]line = 500.41 [13:30:47]line НДС 12% НСП 1% [13:30:47]line > о реализуемом товаре [13:30:47]line ОКРУГЛЕНИЕ: -0.41 [13:30:47]line ИТОГО: 500.00 [13:30:47]line Внесено: 500.00 [13:30:47]line СДАЧА: 0.00 [13:30:47]line НСП 1% : 4.43 [13:30:47]line НДС 12% : 53.14 [13:30:47]line Наличными: 500.00 [13:30:47]line Безнал.: 0.00 [13:30:47]line Место: АЗС № 86 "Партнер Нефть" [13:30:47]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [13:30:47]line СНО: Общий режим [13:30:47]line Чек 205 21.10.2024 13:30 [13:30:47]line Смена: 460 ФФД: 1.0 [13:30:47]line ЗНМ: 0300000155 [13:30:47]line РНМ: 0000000000100030 [13:30:47]line Версия ККМ: 001 [13:30:47]line ФМ: 0000000000965340 [13:30:47]line ФД: 187741 [13:30:47]line ФПД: 168180644628271 [13:30:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T133049&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187741&fm=168180644628271&tin=02508201610067®Number=0000000000100030&sum=50000 [13:30:47]written 0, free lines is 4095 [13:30:47]OFD Sender: Processing packet 187741 [packets to send 1062, broken 1061] [13:30:47]ProducePacketName [13:30:47]name=ofd_packets/00187741 [13:30:47]OFD Sender: To server: pG, [13:30:47]CommunicateWithHost lk.salyk.kg:30040 [13:30:47]ConnectInit lk.salyk.kg [13:30:47]Connected sock=8 [13:30:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 86 C5 07 01 BF 74 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CD 00 00 00 F4 03 04 00 89 57 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 5D DD 02 00 35 04 06 00 98 F5 9B 94 C7 2F AC 52 48 7D 48 E0 34 53 [13:30:47]Write to MH i2c: 01 00 00 96 5A F0 [13:30:47]Write i2c OK [13:30:47]MH_I2C_Read... [13:30:47]Read from MH i2c: 01 [13:30:47]MH_I2C_Read... [13:30:47]Read from MH i2c: 01 07 00 [13:30:47]MH_I2C_Read... [13:30:47]Read from MH i2c: 01 07 00 96 5A 00 00 00 00 00 6B 0C 6E [13:30:47]RasterBufferAndPrint [13:30:47]line [13:30:47]line [13:30:47]line [13:30:47]line [13:30:47]line [13:30:47]written 0, free lines is 3183 [13:30:47]MH_Cut [13:30:47]Write to MH i2c: D1 01 00 9D 5A 01 C9 [13:30:47]Write i2c OK [13:30:47]MH_I2C_Read... [13:30:47]Read from MH i2c: D1 [13:30:47]MH_I2C_Read... [13:30:47]Read from MH i2c: D1 01 00 [13:30:47]MH_I2C_Read... [13:30:47]Read from MH i2c: D1 01 00 9D 5A 00 C8 [13:30:47]Write to MH i2c: 01 00 00 9E 5A F8 [13:30:47]Write i2c OK [13:30:47]MH_I2C_Read... [13:30:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 9D 69 47 00 FD 66 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 5D DD 02 00 F4 03 04 00 79 01 16 67 B6 04 01 00 00 4D 75 8F 28 F9 4D 3D 5D [13:30:47]CommunicateWithHost err = 0 [13:30:47]CheckOFDResponse [13:30:47]1017 (14) - 77093643461234 [13:30:47]1041 (16) - 0000000000965340 [13:30:47]1040 (4) - 187741 [13:30:47]1012 (4) - 21.10.2024 07:23 [13:30:47]1206 (1) - 0 [13:30:47]OFD Sender: Remove packet 187741 [13:30:47]ProducePacketName [13:30:47]name=ofd_packets/00187741 [13:30:47]NVStorageDeleteData [13:30:48]OFD Sender: No OFD packet to send [13:30:48]*** Cut start [13:30:48]*** Partial cut [13:30:48]*** CUTSNS_PIN = 1 [13:30:48]*** CUTSNS_PIN = 0 [13:30:49]*** Brake cut motor [13:30:49]Read from MH i2c: 01 [13:30:49]MH_I2C_Read... [13:30:49]*** Stop cut motor [13:30:49]Read from MH i2c: 01 07 00 [13:30:49]MH_I2C_Read... [13:30:49]*** Cut end [13:30:49]Read from MH i2c: 01 07 00 9E 5A 00 00 00 00 00 FF 0F 0D [13:30:49]process_action close_receipt done [13:30:49]requested_data is exist [13:30:49]produce_requested_data [13:30:49]requested_item fm.sn is exist - process it [13:30:49]wFMCommunicate request_size=4 [13:30:49]MH_SAM_APDU [13:30:49]CAPDU: 80 11 00 00 [13:30:49]Write to MH i2c: E2 08 00 9F 5A 80 11 00 00 00 00 00 00 73 [13:30:49]Write i2c OK [13:30:49]MH_I2C_Read... [13:30:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:30:49]Read from MH i2c: E2 [13:30:49]MH_I2C_Read... [13:30:49]Read from MH i2c: E2 17 00 [13:30:49]MH_I2C_Read... [13:30:49]Read from MH i2c: E2 17 00 9F 5A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 C1 [13:30:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [13:30:49]wFMCommunicate OK [13:30:49]requested_item fd.num is exist - process it [13:30:49]SAM_PROTO_GetFieldsCounters [13:30:49]wFMCommunicate request_size=4 [13:30:49]MH_SAM_APDU [13:30:49]CAPDU: 80 13 00 00 [13:30:49]Write to MH i2c: E2 08 00 A0 5A 80 13 00 00 00 00 00 00 76 [13:30:49]Write i2c OK [13:30:49]MH_I2C_Read... [13:30:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:30:49]Read from MH i2c: E2 [13:30:49]MH_I2C_Read... [13:30:49]Read from MH i2c: E2 62 00 [13:30:49]MH_I2C_Read... [13:30:49]Read from MH i2c: E2 62 00 A0 5A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 5D DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 CD 00 00 00 5E 04 04 00 CD 00 00 00 57 04 04 00 CE 00 00 00 19 04 04 00 00 00 00 00 90 00 ED [13:30:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 5D DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 CD 00 00 00 5E 04 04 00 CD 00 00 00 57 04 04 00 CE 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:30:49]wFMCommunicate OK [13:30:49]SAM_PROTO_GetFieldsCounters done [13:30:49]requested_item shift.num is exist - process it [13:30:49]requested_item shift.opened is exist - process it [13:30:49]req_shift_opened [13:30:49]FM_GetShiftState [13:30:49]SAM_PROTO_GetShiftState [13:30:49]wFMCommunicate request_size=4 [13:30:49]MH_SAM_APDU [13:30:49]CAPDU: 80 13 01 00 [13:30:49]Write to MH i2c: E2 08 00 A1 5A 80 13 01 00 00 00 00 00 78 [13:30:49]Write i2c OK [13:30:49]MH_I2C_Read... [13:30:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:30:49]Read from MH i2c: E2 [13:30:49]MH_I2C_Read... [13:30:49]Read from MH i2c: E2 0E 00 [13:30:49]MH_I2C_Read... [13:30:49]Read from MH i2c: E2 0E 00 A1 5A 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 D7 [13:30:49]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [13:30:49]wFMCommunicate OK [13:30:49]SAM_PROTO_GetShiftState done [13:30:49]FM_GetShiftState done [13:30:49]req_shift_opened done [13:30:49]requested_item shift.open_date is exist - process it [13:30:49]req_shift_open_date [13:30:49]req_shift_open_date done [13:30:49]produce_requested_data done [13:30:49]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187741,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [13:30:49]process_action_free close_receipt [13:30:49]json_value_free [13:30:49]json_value_free done [13:30:49]process_json_proto returns [13:30:49]Send response to host [13:30:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187741,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [13:30:49]free response buf [13:30:49]execute_script done [13:30:49]execute_script returns [13:30:49]free content buf [13:30:49]Sock 9.Close socket [13:30:49]Sock 9.Thread stoped [13:30:53]OFD Sender: No OFD packet to send [13:30:58]OFD Sender: No OFD packet to send [13:31:03]OFD Sender: No OFD packet to send [13:31:08]OFD Sender: No OFD packet to send [13:31:13]OFD Sender: No OFD packet to send [13:31:18]OFD Sender: No OFD packet to send [13:31:23]OFD Sender: No OFD packet to send [13:31:28]OFD Sender: No OFD packet to send [13:31:33]OFD Sender: No OFD packet to send [13:31:38]OFD Sender: No OFD packet to send [13:31:43]OFD Sender: No OFD packet to send [13:31:48]OFD Sender: No OFD packet to send [13:31:53]OFD Sender: No OFD packet to send [13:31:58]OFD Sender: No OFD packet to send [13:32:03]OFD Sender: No OFD packet to send [13:32:08]OFD Sender: No OFD packet to send [13:32:13]OFD Sender: No OFD packet to send [13:32:18]OFD Sender: No OFD packet to send [13:32:23]OFD Sender: No OFD packet to send [13:32:28]OFD Sender: No OFD packet to send [13:32:33]OFD Sender: No OFD packet to send [13:32:38]OFD Sender: No OFD packet to send [13:32:43]OFD Sender: No OFD packet to send [13:32:48]OFD Sender: No OFD packet to send [13:32:53]OFD Sender: No OFD packet to send [13:32:58]OFD Sender: No OFD packet to send [13:33:03]OFD Sender: No OFD packet to send [13:33:08]OFD Sender: No OFD packet to send [13:33:11]accept exits with 10 [13:33:11]New connection [13:33:11]New thread 3067157860 created [13:33:11]Thread 3067014500 joined [13:33:11]Waiting for new connection... [13:33:11] Sock 10.Parse request [13:33:11]Sock 10.Check first char [13:33:11]Sock 10.First char is OK [13:33:11]request: POST /json_proto HTTP/1.0 [13:33:11]Method: POST [13:33:11]URL: /json_proto [13:33:11]Method is POST - this is cgi request [13:33:11]url: /json_proto [13:33:11]query_string will be loaded in cgi processing [13:33:11]execute_cgi json_proto POST (null) [13:33:11]execute_cgi path=json_proto method=POST [13:33:11]POST find Content-Length [13:33:11]Host: 172.17.42.131:8080 [13:33:11]Content-Length: 800 [13:33:11]Content-Type: application/json [13:33:11] [13:33:11]POST finish read [13:33:11]Found Content-Length = 800 [13:33:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209794", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 52.500, "sum" : 4000.50, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: 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" ] } } [13:33:11]execute_script... [13:33:11]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209794", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 52.500, "sum" : 4000.50, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: 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" ] } } [13:33:11]POST & json_proto [13:33:11]process_json_proto [13:33:11]json parsed OK: [13:33:11]protocol is kg_v1.0 [13:33:11]action value=close_receipt [13:33:11]process_action close_receipt [13:33:11]cmd_close_receipt [13:33:11]MH_GetDate [13:33:11]Write to MH i2c: F0 00 00 A2 5A EB [13:33:11]Write i2c OK [13:33:11]MH_I2C_Read... [13:33:11]Read from MH i2c: F0 [13:33:11]MH_I2C_Read... [13:33:11]Read from MH i2c: F0 09 00 [13:33:11]MH_I2C_Read... [13:33:11]Read from MH i2c: F0 09 00 A2 5A 00 1B 58 16 67 A0 18 CA 66 CC [13:33:11]GetLastDocTimeStamp 1729517449 [13:33:11]current date 1729517595 [13:33:11]FM_GetShiftState [13:33:11]SAM_PROTO_GetShiftState [13:33:11]wFMCommunicate request_size=4 [13:33:11]MH_SAM_APDU [13:33:11]CAPDU: 80 13 01 00 [13:33:11]Write to MH i2c: E2 08 00 A3 5A 80 13 01 00 00 00 00 00 7A [13:33:11]Write i2c OK [13:33:11]MH_I2C_Read... [13:33:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:33:11]Read from MH i2c: E2 [13:33:11]MH_I2C_Read... [13:33:11]Read from MH i2c: E2 0E 00 [13:33:11]MH_I2C_Read... [13:33:11]Read from MH i2c: E2 0E 00 A3 5A 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 D9 [13:33:11]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [13:33:11]wFMCommunicate OK [13:33:11]SAM_PROTO_GetShiftState done [13:33:11]FM_GetShiftState done [13:33:11]opened in 1729469754 [13:33:11]opened+sec_in_day 1729556154 [13:33:11]quantity*price = 400050 [13:33:11]sum+1 = 400051 [13:33:11]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 4000.50 НСП 1% : 35.40 НДС 12% : 424.83 Наличными: 0.00 Безнал.: 4000.50 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 206 21.10.2024 13:33 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000965340 ФД: 187742 ФПД: 111765317403606 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T133315&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187742&fm=111765317403606&tin=02508201610067®Number=0000000000100030&sum=400050 [13:33:12]StoreToDocumentArchive [13:33:12]shift 460 fd 187742 [13:33:12]save to /storage/0460/doc_00187742 [13:33:12]save last doc name /storage/0460/doc_00187742 to /storage/kkm_last_doc_name [13:33:12]save OK [13:33:12]Clear old archive folders... [13:33:12]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:33:12]tlvbuf is B6F8A230 [13:33:12]SAM_PROTO_ClearQueue [13:33:12]wFMCommunicate request_size=4 [13:33:12]MH_SAM_APDU [13:33:12]CAPDU: 80 09 00 00 [13:33:12]Write to MH i2c: E2 08 00 B0 5A 80 09 00 00 00 00 00 00 7C [13:33:12]Write i2c OK [13:33:12]MH_I2C_Read... [13:33:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:33:12]Read from MH i2c: E2 [13:33:12]MH_I2C_Read... [13:33:12]Read from MH i2c: E2 03 00 [13:33:12]MH_I2C_Read... [13:33:12]Read from MH i2c: E2 03 00 B0 5A 00 90 00 7E [13:33:12]RAPDU: 90 00 [13:33:12]wFMCommunicate OK [13:33:12]SAM_PROTO_ClearQueue done [13:33:12]KKMCreateOFDPacket [13:33:12]OFDProtocolAddRootSTLVToBuf [13:33:12]FM_MakeSignedData [13:33:12]FM_MakeSignedData [13:33:12]SAM_PROTO_SignData [13:33:12]wFMCommunicate request_size=4 [13:33:12]MH_SAM_APDU [13:33:12]CAPDU: 80 0D 01 02 [13:33:12]Write to MH i2c: E2 08 00 B1 5A 80 0D 01 02 00 00 00 00 84 [13:33:12]Write i2c OK [13:33:12]MH_I2C_Read... [13:33:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:33:12]Read from MH i2c: E2 [13:33:12]MH_I2C_Read... [13:33:12]Read from MH i2c: E2 03 00 [13:33:12]MH_I2C_Read... [13:33:12]Read from MH i2c: E2 03 00 B1 5A 00 90 00 7F [13:33:12]RAPDU: 90 00 [13:33:12]wFMCommunicate OK [13:33:12]wFMCommunicate request_size=255 [13:33:12]MH_SAM_APDU [13:33:12]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 CE 00 00 00 F4 03 04 00 1B 58 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 5E DD 02 00 35 04 06 00 65 A6 64 0A [13:33:12]Write to MH i2c: E2 02 01 B2 5A 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 14 CD 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 B2 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B2 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 A5 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B2 1A 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 CE 00 00 00 F4 03 04 00 1B 58 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 5E DD 02 00 35 04 06 00 65 A6 64 0A 00 00 B9 [13:33:12]Write i2c OK [13:33:12]MH_I2C_Read... [13:33:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:33:12]Read from MH i2c: E2 [13:33:12]MH_I2C_Read... [13:33:12]Read from MH i2c: E2 03 00 [13:33:12]MH_I2C_Read... [13:33:12]Read from MH i2c: E2 03 00 B2 5A 00 90 00 80 [13:33:12]RAPDU: 90 00 [13:33:12]wFMCommunicate OK [13:33:12]wFMCommunicate request_size=7 [13:33:12]MH_SAM_APDU [13:33:12]CAPDU: 80 0D 02 02 02 C3 D6 [13:33:12]Write to MH i2c: E2 0A 00 B3 5A 80 0D 02 02 02 00 C3 D6 00 00 24 [13:33:12]Write i2c OK [13:33:12]MH_I2C_Read... [13:33:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:33:12]Read from MH i2c: E2 [13:33:12]MH_I2C_Read... [13:33:12]Read from MH i2c: E2 03 00 [13:33:12]MH_I2C_Read... [13:33:12]Read from MH i2c: E2 03 00 B3 5A 00 90 00 81 [13:33:12]RAPDU: 90 00 [13:33:12]wFMCommunicate OK [13:33:12]wFMCommunicate request_size=4 [13:33:12]MH_SAM_APDU [13:33:12]CAPDU: 80 0D 03 02 [13:33:12]Write to MH i2c: E2 08 00 B4 5A 80 0D 03 02 00 00 00 00 89 [13:33:12]Write i2c OK [13:33:12]MH_I2C_Read... [13:33:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:33:12]Read from MH i2c: E2 [13:33:12]MH_I2C_Read... [13:33:12]Read from MH i2c: E2 0B 00 [13:33:12]MH_I2C_Read... [13:33:12]Read from MH i2c: E2 0B 00 B4 5A 00 29 67 87 93 BB 36 F0 E1 90 00 F6 [13:33:12]RAPDU: 29 67 87 93 BB 36 F0 E1 90 00 [13:33:12]wFMCommunicate OK [13:33:12]SAM_PROTO_SignData done [13:33:12]FM_MakeSignedData done [13:33:12]CreateOFDProtocolMessage [13:33:12]wFMCommunicate request_size=4 [13:33:12]MH_SAM_APDU [13:33:12]CAPDU: 80 11 00 00 [13:33:12]Write to MH i2c: E2 08 00 B5 5A 80 11 00 00 00 00 00 00 89 [13:33:12]Write i2c OK [13:33:12]MH_I2C_Read... [13:33:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:33:12]Read from MH i2c: E2 [13:33:12]MH_I2C_Read... [13:33:12]Read from MH i2c: E2 17 00 [13:33:12]MH_I2C_Read... [13:33:12]Read from MH i2c: E2 17 00 B5 5A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 D7 [13:33:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [13:33:12]wFMCommunicate OK [13:33:12]CreateOFDProtocolMessage done [13:33:12]OFDSenderStorePacket 187742 [13:33:12]StoreOFDPacket docnum=187742 [13:33:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 22 1F 04 01 86 BE 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 14 CD 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 B2 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B2 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 A5 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B2 1A 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 CE 00 00 00 F4 03 04 00 1B 58 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 5E DD 02 00 35 04 06 00 65 A6 64 0A C3 D6 29 67 87 93 BB 36 F0 E1 [13:33:12]CheckFolder [13:33:12]dirname=/storage/ofd_packets [13:33:12]CheckFolder done [13:33:12]ProducePacketName [13:33:12]name=ofd_packets/00187742 [13:33:12]NVStorageSaveData ofd_packets/00187742 [13:33:12]File name is /storage/ofd_packets/00187742 [13:33:12]Write 298 bytes [13:33:12]NVStorageSaveData done [13:33:12]OFDSenderStorePacket done [13:33:12]KKMCreateOFDPacket done [13:33:12]NVStorageSaveData kkm_last_timestamp [13:33:12]File name is /storage/kkm_last_timestamp [13:33:12]Write 4 bytes [13:33:12]NVStorageSaveData done [13:33:12]ExternCall_PrintAddStr [13:33:12]wPrintStart [13:33:12]Write to MH i2c: 01 00 00 B6 5A 10 [13:33:12]Write i2c OK [13:33:12]MH_I2C_Read... [13:33:12]Read from MH i2c: 01 [13:33:12]MH_I2C_Read... [13:33:12]Read from MH i2c: 01 07 00 [13:33:12]MH_I2C_Read... [13:33:12]Read from MH i2c: 01 07 00 B6 5A 00 00 00 00 00 FF 0F 25 [13:33:12]RasterBufferAndPrint [13:33:12]line Счет N : (1)209794 [13:33:12]line ИНН: 02508201610067 [13:33:12]line Контрольно-Кассовый Чек [13:33:12]line ПРОДАЖА [13:33:12]line ТРК (МРК, ГНК) : 51 [13:33:12]line Товар: 2710194210 [13:33:12]line ДТ-К-5 [13:33:12]line 52.500 * 76.20 [13:33:12]line = 4000.50 [13:33:12]line НДС 12% НСП 1% [13:33:12]line > о реализуемом товаре [13:33:12]line ИТОГО: 4000.50 [13:33:12]line НСП 1% : 35.40 [13:33:12]line НДС 12% : 424.83 [13:33:12]line Наличными: 0.00 [13:33:12]line Безнал.: 4000.50 [13:33:12]line Место: АЗС № 86 "Партнер Нефть" [13:33:12]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [13:33:12]line СНО: Общий режим [13:33:12]line Чек 206 21.10.2024 13:33 [13:33:12]line Смена: 460 ФФД: 1.0 [13:33:12]line ЗНМ: 0300000155 [13:33:12]line РНМ: 0000000000100030 [13:33:12]line Версия ККМ: 001 [13:33:12]line Платежная система: O! деньги [13:33:12]line ФМ: 0000000000965340 [13:33:12]line ФД: 187742 [13:33:12]line ФПД: 111765317403606 [13:33:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T133315&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187742&fm=111765317403606&tin=02508201610067®Number=0000000000100030&sum=400050 [13:33:12]written 0, free lines is 4095 [13:33:12]OFD Sender: Processing packet 187742 [packets to send 1062, broken 1061] [13:33:12]ProducePacketName [13:33:12]name=ofd_packets/00187742 [13:33:12]OFD Sender: To server: pG, [13:33:12]CommunicateWithHost lk.salyk.kg:30040 [13:33:12]ConnectInit lk.salyk.kg [13:33:13]Connected sock=9 [13:33:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 22 1F 04 01 86 BE 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 14 CD 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 B2 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B2 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 A5 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B2 1A 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 CE 00 00 00 F4 03 04 00 1B 58 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 5E DD 02 00 35 04 06 00 65 A6 64 0A C3 D6 29 67 87 93 BB 36 F0 E1 [13:33:13]Write to MH i2c: 01 00 00 E0 5A 3A [13:33:13]Write i2c OK [13:33:13]MH_I2C_Read... [13:33:13]Read from MH i2c: 01 [13:33:13]MH_I2C_Read... [13:33:13]Read from MH i2c: 01 07 00 [13:33:13]MH_I2C_Read... [13:33:13]Read from MH i2c: 01 07 00 E0 5A 00 00 00 00 00 81 0C CE [13:33:13]RasterBufferAndPrint [13:33:13]line [13:33:13]line [13:33:13]line [13:33:13]line [13:33:13]line [13:33:13]written 0, free lines is 3204 [13:33:13]MH_Cut [13:33:13]Write to MH i2c: D1 01 00 E7 5A 01 13 [13:33:13]Write i2c OK [13:33:13]MH_I2C_Read... [13:33:13]Read from MH i2c: D1 [13:33:13]MH_I2C_Read... [13:33:13]Read from MH i2c: D1 01 00 [13:33:13]MH_I2C_Read... [13:33:13]Read from MH i2c: D1 01 00 E7 5A 00 12 [13:33:13]Write to MH i2c: 01 00 00 E8 5A 42 [13:33:13]Write i2c OK [13:33:13]MH_I2C_Read... [13:33:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 B9 2E 47 00 F0 D6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 5E DD 02 00 F4 03 04 00 0A 02 16 67 B6 04 01 00 00 28 B5 39 5B 34 79 B3 D2 [13:33:13]CommunicateWithHost err = 0 [13:33:13]CheckOFDResponse [13:33:13]1017 (14) - 77093643461234 [13:33:13]1041 (16) - 0000000000965340 [13:33:13]1040 (4) - 187742 [13:33:13]1012 (4) - 21.10.2024 07:26 [13:33:13]1206 (1) - 0 [13:33:13]OFD Sender: Remove packet 187742 [13:33:13]ProducePacketName [13:33:13]name=ofd_packets/00187742 [13:33:13]NVStorageDeleteData [13:33:13]OFD Sender: No OFD packet to send [13:33:14]*** Cut start [13:33:14]*** Partial cut [13:33:14]*** CUTSNS_PIN = 1 [13:33:14]*** CUTSNS_PIN = 0 [13:33:14]*** Brake cut motor [13:33:15]Read from MH i2c: 01 [13:33:15]MH_I2C_Read... [13:33:15]*** Stop cut motor [13:33:15]*** Cut end [13:33:15]Read from MH i2c: 01 07 00 [13:33:15]MH_I2C_Read... [13:33:15]Read from MH i2c: 01 07 00 E8 5A 00 00 00 00 00 FF 0F 57 [13:33:15]process_action close_receipt done [13:33:15]requested_data is exist [13:33:15]produce_requested_data [13:33:15]requested_item fm.sn is exist - process it [13:33:15]wFMCommunicate request_size=4 [13:33:15]MH_SAM_APDU [13:33:15]CAPDU: 80 11 00 00 [13:33:15]Write to MH i2c: E2 08 00 E9 5A 80 11 00 00 00 00 00 00 BD [13:33:15]Write i2c OK [13:33:15]MH_I2C_Read... [13:33:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:33:15]Read from MH i2c: E2 [13:33:15]MH_I2C_Read... [13:33:15]Read from MH i2c: E2 17 00 [13:33:15]MH_I2C_Read... [13:33:15]Read from MH i2c: E2 17 00 E9 5A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 0B [13:33:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [13:33:15]wFMCommunicate OK [13:33:15]requested_item fd.num is exist - process it [13:33:15]SAM_PROTO_GetFieldsCounters [13:33:15]wFMCommunicate request_size=4 [13:33:15]MH_SAM_APDU [13:33:15]CAPDU: 80 13 00 00 [13:33:15]Write to MH i2c: E2 08 00 EA 5A 80 13 00 00 00 00 00 00 C0 [13:33:15]Write i2c OK [13:33:15]MH_I2C_Read... [13:33:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:33:15]Read from MH i2c: E2 [13:33:15]MH_I2C_Read... [13:33:15]Read from MH i2c: E2 62 00 [13:33:15]MH_I2C_Read... [13:33:15]Read from MH i2c: E2 62 00 EA 5A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 5E DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 CE 00 00 00 5E 04 04 00 CE 00 00 00 57 04 04 00 CF 00 00 00 19 04 04 00 00 00 00 00 90 00 3B [13:33:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 5E DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 CE 00 00 00 5E 04 04 00 CE 00 00 00 57 04 04 00 CF 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:33:15]wFMCommunicate OK [13:33:15]SAM_PROTO_GetFieldsCounters done [13:33:15]requested_item shift.num is exist - process it [13:33:15]requested_item shift.opened is exist - process it [13:33:15]req_shift_opened [13:33:15]FM_GetShiftState [13:33:15]SAM_PROTO_GetShiftState [13:33:15]wFMCommunicate request_size=4 [13:33:15]MH_SAM_APDU [13:33:15]CAPDU: 80 13 01 00 [13:33:15]Write to MH i2c: E2 08 00 EB 5A 80 13 01 00 00 00 00 00 C2 [13:33:15]Write i2c OK [13:33:15]MH_I2C_Read... [13:33:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:33:15]Read from MH i2c: E2 [13:33:15]MH_I2C_Read... [13:33:15]Read from MH i2c: E2 0E 00 [13:33:15]MH_I2C_Read... [13:33:15]Read from MH i2c: E2 0E 00 EB 5A 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 21 [13:33:15]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [13:33:15]wFMCommunicate OK [13:33:15]SAM_PROTO_GetShiftState done [13:33:15]FM_GetShiftState done [13:33:15]req_shift_opened done [13:33:15]requested_item shift.open_date is exist - process it [13:33:15]req_shift_open_date [13:33:15]req_shift_open_date done [13:33:15]produce_requested_data done [13:33:15]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187742,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [13:33:15]process_action_free close_receipt [13:33:15]json_value_free [13:33:15]json_value_free done [13:33:15]process_json_proto returns [13:33:15]Send response to host [13:33:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187742,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [13:33:15]free response buf [13:33:15]execute_script done [13:33:15]execute_script returns [13:33:15]free content buf [13:33:15]Sock 10.Close socket [13:33:15]Sock 10.Thread stoped [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:34]OFD Sender: No OFD packet to send [13:33:39]OFD Sender: No OFD packet to send [13:33:44]OFD Sender: No OFD packet to send [13:33:49]OFD Sender: No OFD packet to send [13:33:54]OFD Sender: No OFD packet to send [13:33:59]OFD Sender: No OFD packet to send [13:34:04]OFD Sender: No OFD packet to send [13:34:09]OFD Sender: No OFD packet to send [13:34:14]OFD Sender: No OFD packet to send [13:34:19]OFD Sender: No OFD packet to send [13:34:24]OFD Sender: No OFD packet to send [13:34:29]OFD Sender: No OFD packet to send [13:34:34]OFD Sender: No OFD packet to send [13:34:39]OFD Sender: No OFD packet to send [13:34:44]OFD Sender: No OFD packet to send [13:34:49]OFD Sender: No OFD packet to send [13:34:54]OFD Sender: No OFD packet to send [13:34:59]OFD Sender: No OFD packet to send [13:35:04]OFD Sender: No OFD packet to send [13:35:09]OFD Sender: No OFD packet to send [13:35:14]OFD Sender: No OFD packet to send [13:35:19]OFD Sender: No OFD packet to send [13:35:24]OFD Sender: No OFD packet to send [13:35:29]OFD Sender: No OFD packet to send [13:35:34]OFD Sender: No OFD packet to send [13:35:39]OFD Sender: No OFD packet to send [13:35:44]OFD Sender: No OFD packet to send [13:35:49]OFD Sender: No OFD packet to send [13:35:54]OFD Sender: No OFD packet to send [13:35:59]OFD Sender: No OFD packet to send [13:36:04]OFD Sender: No OFD packet to send [13:36:09]OFD Sender: No OFD packet to send [13:36:14]OFD Sender: No OFD packet to send [13:36:19]OFD Sender: No OFD packet to send [13:36:24]OFD Sender: No OFD packet to send [13:36:29]OFD Sender: No OFD packet to send [13:36:34]OFD Sender: No OFD packet to send [13:36:39]OFD Sender: No OFD packet to send [13:36:44]OFD Sender: No OFD packet to send [13:36:49]OFD Sender: No OFD packet to send [13:36:54]OFD Sender: No OFD packet to send [13:36:59]OFD Sender: No OFD packet to send [13:37:04]OFD Sender: No OFD packet to send [13:37:09]OFD Sender: No OFD packet to send [13:37:14]OFD Sender: No OFD packet to send [13:37:20]OFD Sender: No OFD packet to send [13:37:25]OFD Sender: No OFD packet to send [13:37:30]OFD Sender: No OFD packet to send [13:37:35]OFD Sender: No OFD packet to send [13:37:40]OFD Sender: No OFD packet to send [13:37:45]OFD Sender: No OFD packet to send [13:37:50]OFD Sender: No OFD packet to send [13:37:55]OFD Sender: No OFD packet to send [13:38:00]OFD Sender: No OFD packet to send [13:38:05]OFD Sender: No OFD packet to send [13:38:10]OFD Sender: No OFD packet to send [13:38:15]OFD Sender: No OFD packet to send [13:38:20]OFD Sender: No OFD packet to send [13:38:25]OFD Sender: No OFD packet to send [13:38:30]OFD Sender: No OFD packet to send [13:38:35]OFD Sender: No OFD packet to send [13:38:40]OFD Sender: No OFD packet to send [13:38:45]OFD Sender: No OFD packet to send [13:38:50]OFD Sender: No OFD packet to send [13:38:55]OFD Sender: No OFD packet to send [13:39:00]OFD Sender: No OFD packet to send [13:39:05]OFD Sender: No OFD packet to send [13:39:10]OFD Sender: No OFD packet to send [13:39:15]OFD Sender: No OFD packet to send [13:39:20]OFD Sender: No OFD packet to send [13:39:25]OFD Sender: No OFD packet to send [13:39:30]OFD Sender: No OFD packet to send [13:39:32]accept exits with 8 [13:39:32]New connection [13:39:32]New thread 3067014500 created [13:39:32]Thread 3067157860 joined [13:39:32]Waiting for new connection... [13:39:32] Sock 8.Parse request [13:39:32]Sock 8.Check first char [13:39:32]Sock 8.First char is OK [13:39:32]request: POST /json_proto HTTP/1.0 [13:39:32]Method: POST [13:39:32]URL: /json_proto [13:39:32]Method is POST - this is cgi request [13:39:32]url: /json_proto [13:39:32]query_string will be loaded in cgi processing [13:39:32]execute_cgi json_proto POST (null) [13:39:32]execute_cgi path=json_proto method=POST [13:39:32]POST find Content-Length [13:39:32]Host: 172.17.42.131:8080 [13:39:32]Content-Length: 769 [13:39:32]Content-Type: application/json [13:39:32] [13:39:32]POST finish read [13:39:32]Found Content-Length = 769 [13:39:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209795", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 26.960, "sum" : 2000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 2000.43 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:39:32]execute_script... [13:39: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)209795", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 26.960, "sum" : 2000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 2000.43 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:39:32]POST & json_proto [13:39:32]process_json_proto [13:39:32]json parsed OK: [13:39:32]protocol is kg_v1.0 [13:39:32]action value=close_receipt [13:39:32]process_action close_receipt [13:39:32]cmd_close_receipt [13:39:32]MH_GetDate [13:39:32]Write to MH i2c: F0 00 00 EC 5A 35 [13:39:32]Write i2c OK [13:39:32]MH_I2C_Read... [13:39:32]Read from MH i2c: F0 [13:39:32]MH_I2C_Read... [13:39:32]Read from MH i2c: F0 09 00 [13:39:32]MH_I2C_Read... [13:39:32]Read from MH i2c: F0 09 00 EC 5A 00 99 59 16 67 A0 18 CA 66 95 [13:39:32]GetLastDocTimeStamp 1729517595 [13:39:32]current date 1729517977 [13:39:32]FM_GetShiftState [13:39:32]SAM_PROTO_GetShiftState [13:39:32]wFMCommunicate request_size=4 [13:39:32]MH_SAM_APDU [13:39:32]CAPDU: 80 13 01 00 [13:39:32]Write to MH i2c: E2 08 00 ED 5A 80 13 01 00 00 00 00 00 C4 [13:39:32]Write i2c OK [13:39:32]MH_I2C_Read... [13:39:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:39:32]Read from MH i2c: E2 [13:39:32]MH_I2C_Read... [13:39:32]Read from MH i2c: E2 0E 00 [13:39:32]MH_I2C_Read... [13:39:32]Read from MH i2c: E2 0E 00 ED 5A 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 23 [13:39:32]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [13:39:32]wFMCommunicate OK [13:39:32]SAM_PROTO_GetShiftState done [13:39:32]FM_GetShiftState done [13:39:32]opened in 1729469754 [13:39:32]opened+sec_in_day 1729556154 [13:39:32]quantity*price = 200043 [13:39:32]sum+1 = 200044 [13:39:32]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2000.43 НСП 1% : 17.70 НДС 12% : 212.43 Наличными: 0.00 Безнал.: 2000.43 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 207 21.10.2024 13:39 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000965340 ФД: 187743 ФПД: 66784194551677 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T133937&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187743&fm=66784194551677&tin=02508201610067®Number=0000000000100030&sum=200043 [13:39:33]StoreToDocumentArchive [13:39:33]shift 460 fd 187743 [13:39:33]save to /storage/0460/doc_00187743 [13:39:33]save last doc name /storage/0460/doc_00187743 to /storage/kkm_last_doc_name [13:39:33]save OK [13:39:33]Clear old archive folders... [13:39:33]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:39:33]tlvbuf is 010A09B0 [13:39:33]SAM_PROTO_ClearQueue [13:39:33]wFMCommunicate request_size=4 [13:39:33]MH_SAM_APDU [13:39:33]CAPDU: 80 09 00 00 [13:39:33]Write to MH i2c: E2 08 00 FA 5A 80 09 00 00 00 00 00 00 C6 [13:39:33]Write i2c OK [13:39:33]MH_I2C_Read... [13:39:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:39:34]Read from MH i2c: E2 [13:39:34]MH_I2C_Read... [13:39:34]Read from MH i2c: E2 03 00 [13:39:34]MH_I2C_Read... [13:39:34]Read from MH i2c: E2 03 00 FA 5A 00 90 00 C8 [13:39:34]RAPDU: 90 00 [13:39:34]wFMCommunicate OK [13:39:34]SAM_PROTO_ClearQueue done [13:39:34]KKMCreateOFDPacket [13:39:34]OFDProtocolAddRootSTLVToBuf [13:39:34]FM_MakeSignedData [13:39:34]FM_MakeSignedData [13:39:34]SAM_PROTO_SignData [13:39:34]wFMCommunicate request_size=4 [13:39:34]MH_SAM_APDU [13:39:34]CAPDU: 80 0D 01 02 [13:39:34]Write to MH i2c: E2 08 00 FB 5A 80 0D 01 02 00 00 00 00 CE [13:39:34]Write i2c OK [13:39:34]MH_I2C_Read... [13:39:34]Read from MH i2c: E2 [13:39:34]MH_I2C_Read... [13:39:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:39:34]Read from MH i2c: E2 03 00 [13:39:34]MH_I2C_Read... [13:39:34]Read from MH i2c: E2 03 00 FB 5A 00 90 00 C9 [13:39:34]RAPDU: 90 00 [13:39:34]wFMCommunicate OK [13:39:34]wFMCommunicate request_size=255 [13:39:34]MH_SAM_APDU [13:39:34]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6B 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6B 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 CF 00 00 00 F4 03 04 00 99 59 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 5F DD 02 00 35 04 06 00 3C [13:39:34]Write to MH i2c: E2 02 01 FC 5A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6B 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6B 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 CF 00 00 00 F4 03 04 00 99 59 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 5F DD 02 00 35 04 06 00 3C 00 00 C4 [13:39:34]Write i2c OK [13:39:34]MH_I2C_Read... [13:39:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:39:34]Read from MH i2c: E2 [13:39:34]MH_I2C_Read... [13:39:34]Read from MH i2c: E2 03 00 [13:39:34]MH_I2C_Read... [13:39:34]Read from MH i2c: E2 03 00 FC 5A 00 90 00 CA [13:39:34]RAPDU: 90 00 [13:39:34]wFMCommunicate OK [13:39:34]wFMCommunicate request_size=10 [13:39:34]MH_SAM_APDU [13:39:34]CAPDU: 80 0D 02 02 05 BD 68 31 5F 7D [13:39:34]Write to MH i2c: E2 0D 00 FD 5A 80 0D 02 02 05 00 BD 68 31 5F 7D 00 00 0D [13:39:34]Write i2c OK [13:39:34]MH_I2C_Read... [13:39:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:39:34]Read from MH i2c: E2 [13:39:34]MH_I2C_Read... [13:39:34]Read from MH i2c: E2 03 00 [13:39:34]MH_I2C_Read... [13:39:34]Read from MH i2c: E2 03 00 FD 5A 00 90 00 CB [13:39:34]RAPDU: 90 00 [13:39:34]wFMCommunicate OK [13:39:34]wFMCommunicate request_size=4 [13:39:34]MH_SAM_APDU [13:39:34]CAPDU: 80 0D 03 02 [13:39:34]Write to MH i2c: E2 08 00 FE 5A 80 0D 03 02 00 00 00 00 D3 [13:39:34]Write i2c OK [13:39:34]MH_I2C_Read... [13:39:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:39:34]Read from MH i2c: E2 [13:39:34]MH_I2C_Read... [13:39:34]Read from MH i2c: E2 0B 00 [13:39:34]MH_I2C_Read... [13:39:34]Read from MH i2c: E2 0B 00 FE 5A 00 54 9E E1 FC E5 27 97 CC 90 00 12 [13:39:34]RAPDU: 54 9E E1 FC E5 27 97 CC 90 00 [13:39:34]wFMCommunicate OK [13:39:34]SAM_PROTO_SignData done [13:39:34]FM_MakeSignedData done [13:39:34]CreateOFDProtocolMessage [13:39:34]wFMCommunicate request_size=4 [13:39:34]MH_SAM_APDU [13:39:34]CAPDU: 80 11 00 00 [13:39:34]Write to MH i2c: E2 08 00 FF 5A 80 11 00 00 00 00 00 00 D3 [13:39:34]Write i2c OK [13:39:34]MH_I2C_Read... [13:39:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:39:34]Read from MH i2c: E2 [13:39:34]MH_I2C_Read... [13:39:34]Read from MH i2c: E2 17 00 [13:39:34]MH_I2C_Read... [13:39:34]Read from MH i2c: E2 17 00 FF 5A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 21 [13:39:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [13:39:34]wFMCommunicate OK [13:39:34]CreateOFDProtocolMessage done [13:39:34]OFDSenderStorePacket 187743 [13:39:34]StoreOFDPacket docnum=187743 [13:39:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 13 EE 07 01 C5 4E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6B 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6B 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 CF 00 00 00 F4 03 04 00 99 59 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 5F DD 02 00 35 04 06 00 3C BD 68 31 5F 7D 54 9E E1 FC E5 27 97 CC [13:39:34]CheckFolder [13:39:34]dirname=/storage/ofd_packets [13:39:34]CheckFolder done [13:39:34]ProducePacketName [13:39:34]name=ofd_packets/00187743 [13:39:34]NVStorageSaveData ofd_packets/00187743 [13:39:34]File name is /storage/ofd_packets/00187743 [13:39:34]Write 301 bytes [13:39:34]NVStorageSaveData done [13:39:34]OFDSenderStorePacket done [13:39:34]KKMCreateOFDPacket done [13:39:34]NVStorageSaveData kkm_last_timestamp [13:39:34]File name is /storage/kkm_last_timestamp [13:39:34]Write 4 bytes [13:39:34]NVStorageSaveData done [13:39:34]ExternCall_PrintAddStr [13:39:34]wPrintStart [13:39:34]Write to MH i2c: 01 00 00 00 5B 5B [13:39:34]Write i2c OK [13:39:34]MH_I2C_Read... [13:39:34]Read from MH i2c: 01 [13:39:34]MH_I2C_Read... [13:39:34]Read from MH i2c: 01 07 00 [13:39:34]MH_I2C_Read... [13:39:34]Read from MH i2c: 01 07 00 00 5B 00 00 00 00 00 FF 0F 70 [13:39:34]RasterBufferAndPrint [13:39:34]line Счет N : (1)209795 [13:39:34]line ИНН: 02508201610067 [13:39:34]line Контрольно-Кассовый Чек [13:39:34]line ПРОДАЖА [13:39:34]line ТРК (МРК, ГНК) : 13 [13:39:34]line Товар: 2710124500 [13:39:34]line Аи-95-К-3 [13:39:34]line 26.960 * 74.20 [13:39:34]line = 2000.43 [13:39:34]line НДС 12% НСП 1% [13:39:34]line > о реализуемом товаре [13:39:34]line ИТОГО: 2000.43 [13:39:34]line НСП 1% : 17.70 [13:39:34]line НДС 12% : 212.43 [13:39:34]line Наличными: 0.00 [13:39:34]line Безнал.: 2000.43 [13:39:34]line Место: АЗС № 86 "Партнер Нефть" [13:39:34]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [13:39:34]line СНО: Общий режим [13:39:34]line Чек 207 21.10.2024 13:39 [13:39:34]line Смена: 460 ФФД: 1.0 [13:39:34]line ЗНМ: 0300000155 [13:39:34]line РНМ: 0000000000100030 [13:39:34]line Версия ККМ: 001 [13:39:34]line Платежная система: Mbank [13:39:34]line ФМ: 0000000000965340 [13:39:34]line ФД: 187743 [13:39:34]line ФПД: 66784194551677 [13:39:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T133937&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187743&fm=66784194551677&tin=02508201610067®Number=0000000000100030&sum=200043 [13:39:34]written 0, free lines is 4095 [13:39:34]OFD Sender: Processing packet 187743 [packets to send 1062, broken 1061] [13:39:34]ProducePacketName [13:39:34]name=ofd_packets/00187743 [13:39:34]OFD Sender: To server: pG, [13:39:34]CommunicateWithHost lk.salyk.kg:30040 [13:39:34]ConnectInit lk.salyk.kg [13:39:34]Connected sock=11 [13:39:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 13 EE 07 01 C5 4E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6B 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6B 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 CF 00 00 00 F4 03 04 00 99 59 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 5F DD 02 00 35 04 06 00 3C BD 68 31 5F 7D 54 9E E1 FC E5 27 97 CC [13:39:34]Write to MH i2c: 01 00 00 29 5B 84 [13:39:34]Write i2c OK [13:39:34]MH_I2C_Read... [13:39:34]Read from MH i2c: 01 [13:39:34]MH_I2C_Read... [13:39:34]Read from MH i2c: 01 07 00 [13:39:34]MH_I2C_Read... [13:39:34]Read from MH i2c: 01 07 00 29 5B 00 00 00 00 00 9F 0C 36 [13:39:34]RasterBufferAndPrint [13:39:34]line [13:39:34]line [13:39:34]line [13:39:34]line [13:39:34]line [13:39:34]written 0, free lines is 3234 [13:39:34]MH_Cut [13:39:34]Write to MH i2c: D1 01 00 30 5B 01 5D [13:39:34]Write i2c OK [13:39:34]MH_I2C_Read... [13:39:34]Read from MH i2c: D1 [13:39:34]MH_I2C_Read... [13:39:34]Read from MH i2c: D1 01 00 [13:39:34]MH_I2C_Read... [13:39:34]Read from MH i2c: D1 01 00 30 5B 00 5C [13:39:34]Write to MH i2c: 01 00 00 31 5B 8C [13:39:34]Write i2c OK [13:39:34]MH_I2C_Read... [13:39:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 42 98 47 00 E8 82 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 5F DD 02 00 F4 03 04 00 88 03 16 67 B6 04 01 00 00 E5 5C 5E 6E F8 B8 5F E1 [13:39:35]CommunicateWithHost err = 0 [13:39:35]CheckOFDResponse [13:39:35]1017 (14) - 77093643461234 [13:39:35]1041 (16) - 0000000000965340 [13:39:35]1040 (4) - 187743 [13:39:35]1012 (4) - 21.10.2024 07:32 [13:39:35]1206 (1) - 0 [13:39:35]OFD Sender: Remove packet 187743 [13:39:35]ProducePacketName [13:39:35]name=ofd_packets/00187743 [13:39:35]NVStorageDeleteData [13:39:35]OFD Sender: No OFD packet to send [13:39:36]*** Cut start [13:39:36]*** Partial cut [13:39:36]*** CUTSNS_PIN = 1 [13:39:36]*** CUTSNS_PIN = 0 [13:39:36]*** Brake cut motor [13:39:36]Read from MH i2c: 01 [13:39:36]MH_I2C_Read... [13:39:36]*** Stop cut motor [13:39:36]*** Cut end [13:39:36]Read from MH i2c: 01 07 00 [13:39:36]MH_I2C_Read... [13:39:36]Read from MH i2c: 01 07 00 31 5B 00 00 00 00 00 FF 0F A1 [13:39:36]process_action close_receipt done [13:39:36]requested_data is exist [13:39:36]produce_requested_data [13:39:36]requested_item fm.sn is exist - process it [13:39:36]wFMCommunicate request_size=4 [13:39:36]MH_SAM_APDU [13:39:36]CAPDU: 80 11 00 00 [13:39:36]Write to MH i2c: E2 08 00 32 5B 80 11 00 00 00 00 00 00 07 [13:39:36]Write i2c OK [13:39:36]MH_I2C_Read... [13:39:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:39:36]Read from MH i2c: E2 [13:39:36]MH_I2C_Read... [13:39:36]Read from MH i2c: E2 17 00 [13:39:36]MH_I2C_Read... [13:39:36]Read from MH i2c: E2 17 00 32 5B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 55 [13:39:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [13:39:36]wFMCommunicate OK [13:39:36]requested_item fd.num is exist - process it [13:39:36]SAM_PROTO_GetFieldsCounters [13:39:36]wFMCommunicate request_size=4 [13:39:36]MH_SAM_APDU [13:39:36]CAPDU: 80 13 00 00 [13:39:36]Write to MH i2c: E2 08 00 33 5B 80 13 00 00 00 00 00 00 0A [13:39:36]Write i2c OK [13:39:36]MH_I2C_Read... [13:39:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:39:36]Read from MH i2c: E2 [13:39:36]MH_I2C_Read... [13:39:36]Read from MH i2c: E2 62 00 [13:39:36]MH_I2C_Read... [13:39:36]Read from MH i2c: E2 62 00 33 5B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 5F DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 CF 00 00 00 5E 04 04 00 CF 00 00 00 57 04 04 00 D0 00 00 00 19 04 04 00 00 00 00 00 90 00 89 [13:39:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 5F DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 CF 00 00 00 5E 04 04 00 CF 00 00 00 57 04 04 00 D0 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:39:36]wFMCommunicate OK [13:39:36]SAM_PROTO_GetFieldsCounters done [13:39:36]requested_item shift.num is exist - process it [13:39:36]requested_item shift.opened is exist - process it [13:39:36]req_shift_opened [13:39:36]FM_GetShiftState [13:39:36]SAM_PROTO_GetShiftState [13:39:36]wFMCommunicate request_size=4 [13:39:36]MH_SAM_APDU [13:39:36]CAPDU: 80 13 01 00 [13:39:36]Write to MH i2c: E2 08 00 34 5B 80 13 01 00 00 00 00 00 0C [13:39:36]Write i2c OK [13:39:36]MH_I2C_Read... [13:39:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:39:36]Read from MH i2c: E2 [13:39:36]MH_I2C_Read... [13:39:36]Read from MH i2c: E2 0E 00 [13:39:36]MH_I2C_Read... [13:39:36]Read from MH i2c: E2 0E 00 34 5B 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 6B [13:39:36]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [13:39:36]wFMCommunicate OK [13:39:36]SAM_PROTO_GetShiftState done [13:39:36]FM_GetShiftState done [13:39:36]req_shift_opened done [13:39:36]requested_item shift.open_date is exist - process it [13:39:36]req_shift_open_date [13:39:36]req_shift_open_date done [13:39:36]produce_requested_data done [13:39:36]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187743,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [13:39:36]process_action_free close_receipt [13:39:36]json_value_free [13:39:36]json_value_free done [13:39:36]process_json_proto returns [13:39:36]Send response to host [13:39:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187743,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [13:39:36]free response buf [13:39:36]execute_script done [13:39:36]execute_script returns [13:39:36]free content buf [13:39:36]Sock 8.Close socket [13:39:36]Sock 8.Thread stoped [13:39:40]accept exits with 9 [13:39:40]New connection [13:39:40]New thread 3067157860 created [13:39:40]Thread 3067014500 joined [13:39:40]Waiting for new connection... [13:39:40] Sock 9.Parse request [13:39:40]Sock 9.Check first char [13:39:40]Sock 9.First char is OK [13:39:40]request: POST /json_proto HTTP/1.0 [13:39:40]Method: POST [13:39:40]URL: /json_proto [13:39:40]Method is POST - this is cgi request [13:39:40]url: /json_proto [13:39:40]query_string will be loaded in cgi processing [13:39:40]execute_cgi json_proto POST (null) [13:39:40]execute_cgi path=json_proto method=POST [13:39:40]POST find Content-Length [13:39:40]Host: 172.17.42.131:8080 [13:39:40]Content-Length: 677 [13:39:40]Content-Type: application/json [13:39:40] [13:39:40]POST finish read [13:39:40]Found Content-Length = 677 [13:39:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209796", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 3.290, "sum" : 220.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 220.00, "total" : 220.00, "payments": [ { "type": 0, "sum" : 220.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:39:40]execute_script... [13:39: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)209796", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 3.290, "sum" : 220.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 220.00, "total" : 220.00, "payments": [ { "type": 0, "sum" : 220.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:39:40]POST & json_proto [13:39:40]process_json_proto [13:39:40]json parsed OK: [13:39:40]protocol is kg_v1.0 [13:39:40]action value=close_receipt [13:39:40]process_action close_receipt [13:39:40]cmd_close_receipt [13:39:40]MH_GetDate [13:39:40]Write to MH i2c: F0 00 00 35 5B 7F [13:39:40]Write i2c OK [13:39:40]MH_I2C_Read... [13:39:40]Read from MH i2c: F0 [13:39:40]MH_I2C_Read... [13:39:40]Read from MH i2c: F0 09 00 [13:39:40]MH_I2C_Read... [13:39:40]Read from MH i2c: F0 09 00 35 5B 00 A0 59 16 67 A0 18 CA 66 E6 [13:39:40]GetLastDocTimeStamp 1729517977 [13:39:40]current date 1729517984 [13:39:40]FM_GetShiftState [13:39:40]SAM_PROTO_GetShiftState [13:39:40]wFMCommunicate request_size=4 [13:39:40]MH_SAM_APDU [13:39:40]CAPDU: 80 13 01 00 [13:39:40]Write to MH i2c: E2 08 00 36 5B 80 13 01 00 00 00 00 00 0E [13:39:40]Write i2c OK [13:39:40]MH_I2C_Read... [13:39:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:39:40]Read from MH i2c: E2 [13:39:40]MH_I2C_Read... [13:39:40]Read from MH i2c: E2 0E 00 [13:39:40]MH_I2C_Read... [13:39:40]Read from MH i2c: E2 0E 00 36 5B 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 6D [13:39:40]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [13:39:40]wFMCommunicate OK [13:39:40]SAM_PROTO_GetShiftState done [13:39:40]FM_GetShiftState done [13:39:40]opened in 1729469754 [13:39:40]opened+sec_in_day 1729556154 [13:39:40]quantity*price = 22010 [13:39:40]sum+1 = 22011 [13:39:40]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.10 ИТОГО: 220.00 Внесено: 220.00 СДАЧА: 0.00 НСП 1% : 1.95 НДС 12% : 23.37 Наличными: 220.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 208 21.10.2024 13:39 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 187744 ФПД: 127032442671142 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T133944&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187744&fm=127032442671142&tin=02508201610067®Number=0000000000100030&sum=22000 [13:39:41]StoreToDocumentArchive [13:39:41]shift 460 fd 187744 [13:39:41]save to /storage/0460/doc_00187744 [13:39:41]save last doc name /storage/0460/doc_00187744 to /storage/kkm_last_doc_name [13:39:41]save OK [13:39:41]Clear old archive folders... [13:39:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:39:41]tlvbuf is 01121830 [13:39:41]SAM_PROTO_ClearQueue [13:39:41]wFMCommunicate request_size=4 [13:39:41]MH_SAM_APDU [13:39:41]CAPDU: 80 09 00 00 [13:39:41]Write to MH i2c: E2 08 00 43 5B 80 09 00 00 00 00 00 00 10 [13:39:41]Write i2c OK [13:39:41]MH_I2C_Read... [13:39:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:39:41]Read from MH i2c: E2 [13:39:41]MH_I2C_Read... [13:39:41]Read from MH i2c: E2 03 00 [13:39:41]MH_I2C_Read... [13:39:41]Read from MH i2c: E2 03 00 43 5B 00 90 00 12 [13:39:41]RAPDU: 90 00 [13:39:41]wFMCommunicate OK [13:39:41]SAM_PROTO_ClearQueue done [13:39:41]KKMCreateOFDPacket [13:39:41]OFDProtocolAddRootSTLVToBuf [13:39:41]FM_MakeSignedData [13:39:41]FM_MakeSignedData [13:39:41]SAM_PROTO_SignData [13:39:41]wFMCommunicate request_size=4 [13:39:41]MH_SAM_APDU [13:39:41]CAPDU: 80 0D 01 02 [13:39:41]Write to MH i2c: E2 08 00 44 5B 80 0D 01 02 00 00 00 00 18 [13:39:41]Write i2c OK [13:39:41]MH_I2C_Read... [13:39:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:39:41]Read from MH i2c: E2 [13:39:41]MH_I2C_Read... [13:39:41]Read from MH i2c: E2 03 00 [13:39:41]MH_I2C_Read... [13:39:41]Read from MH i2c: E2 03 00 44 5B 00 90 00 13 [13:39:41]RAPDU: 90 00 [13:39:41]wFMCommunicate OK [13:39:41]wFMCommunicate request_size=255 [13:39:41]MH_SAM_APDU [13:39: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 33 FF 03 08 00 03 DA 0C 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 FA 55 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 55 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 21 09 00 00 00 00 07 04 06 00 F0 55 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D0 00 00 00 F4 03 04 00 A0 59 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 60 DD 02 00 35 04 06 00 73 [13:39:41]Write to MH i2c: E2 02 01 45 5B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 DA 0C 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 FA 55 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 55 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 21 09 00 00 00 00 07 04 06 00 F0 55 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D0 00 00 00 F4 03 04 00 A0 59 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 60 DD 02 00 35 04 06 00 73 00 00 B3 [13:39:41]Write i2c OK [13:39:41]MH_I2C_Read... [13:39:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:39:42]Read from MH i2c: E2 [13:39:42]MH_I2C_Read... [13:39:42]Read from MH i2c: E2 03 00 [13:39:42]MH_I2C_Read... [13:39:42]Read from MH i2c: E2 03 00 45 5B 00 90 00 14 [13:39:42]RAPDU: 90 00 [13:39:42]wFMCommunicate OK [13:39:42]wFMCommunicate request_size=10 [13:39:42]MH_SAM_APDU [13:39:42]CAPDU: 80 0D 02 02 05 89 0B 9E D0 26 [13:39:42]Write to MH i2c: E2 0D 00 46 5B 80 0D 02 02 05 00 89 0B 9E D0 26 00 00 4D [13:39:42]Write i2c OK [13:39:42]MH_I2C_Read... [13:39:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:39:42]Read from MH i2c: E2 [13:39:42]MH_I2C_Read... [13:39:42]Read from MH i2c: E2 03 00 [13:39:42]MH_I2C_Read... [13:39:42]Read from MH i2c: E2 03 00 46 5B 00 90 00 15 [13:39:42]RAPDU: 90 00 [13:39:42]wFMCommunicate OK [13:39:42]wFMCommunicate request_size=4 [13:39:42]MH_SAM_APDU [13:39:42]CAPDU: 80 0D 03 02 [13:39:42]Write to MH i2c: E2 08 00 47 5B 80 0D 03 02 00 00 00 00 1D [13:39:42]Write i2c OK [13:39:42]MH_I2C_Read... [13:39:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:39:42]Read from MH i2c: E2 [13:39:42]MH_I2C_Read... [13:39:42]Read from MH i2c: E2 0B 00 [13:39:42]MH_I2C_Read... [13:39:42]Read from MH i2c: E2 0B 00 47 5B 00 80 F5 53 A2 AF 77 DA 46 90 00 CE [13:39:42]RAPDU: 80 F5 53 A2 AF 77 DA 46 90 00 [13:39:42]wFMCommunicate OK [13:39:42]SAM_PROTO_SignData done [13:39:42]FM_MakeSignedData done [13:39:42]CreateOFDProtocolMessage [13:39:42]wFMCommunicate request_size=4 [13:39:42]MH_SAM_APDU [13:39:42]CAPDU: 80 11 00 00 [13:39:42]Write to MH i2c: E2 08 00 48 5B 80 11 00 00 00 00 00 00 1D [13:39:42]Write i2c OK [13:39:42]MH_I2C_Read... [13:39:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:39:42]Read from MH i2c: E2 [13:39:42]MH_I2C_Read... [13:39:42]Read from MH i2c: E2 17 00 [13:39:42]MH_I2C_Read... [13:39:42]Read from MH i2c: E2 17 00 48 5B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 6B [13:39:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [13:39:42]wFMCommunicate OK [13:39:42]CreateOFDProtocolMessage done [13:39:42]OFDSenderStorePacket 187744 [13:39:42]StoreOFDPacket docnum=187744 [13:39:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 A0 4A 07 01 28 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 33 FF 03 08 00 03 DA 0C 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 FA 55 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 55 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 21 09 00 00 00 00 07 04 06 00 F0 55 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D0 00 00 00 F4 03 04 00 A0 59 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 60 DD 02 00 35 04 06 00 73 89 0B 9E D0 26 80 F5 53 A2 AF 77 DA 46 [13:39:42]CheckFolder [13:39:42]dirname=/storage/ofd_packets [13:39:42]CheckFolder done [13:39:42]ProducePacketName [13:39:42]name=ofd_packets/00187744 [13:39:42]NVStorageSaveData ofd_packets/00187744 [13:39:42]File name is /storage/ofd_packets/00187744 [13:39:42]Write 301 bytes [13:39:42]NVStorageSaveData done [13:39:42]OFDSenderStorePacket done [13:39:42]KKMCreateOFDPacket done [13:39:42]NVStorageSaveData kkm_last_timestamp [13:39:42]File name is /storage/kkm_last_timestamp [13:39:42]Write 4 bytes [13:39:42]NVStorageSaveData done [13:39:42]ExternCall_PrintAddStr [13:39:42]wPrintStart [13:39:42]Write to MH i2c: 01 00 00 49 5B A4 [13:39:42]Write i2c OK [13:39:42]MH_I2C_Read... [13:39:42]Read from MH i2c: 01 [13:39:42]MH_I2C_Read... [13:39:42]Read from MH i2c: 01 07 00 [13:39:42]MH_I2C_Read... [13:39:42]Read from MH i2c: 01 07 00 49 5B 00 00 00 00 00 FF 0F B9 [13:39:42]RasterBufferAndPrint [13:39:42]line Счет N : (1)209796 [13:39:42]line ИНН: 02508201610067 [13:39:42]line Контрольно-Кассовый Чек [13:39:42]line ПРОДАЖА [13:39:42]line ТРК (МРК, ГНК) : 42 [13:39:42]line Товар: 2710124130 [13:39:42]line Аи-92-К-3 [13:39:42]line 3.290 * 66.90 [13:39:42]line = 220.10 [13:39:42]line НДС 12% НСП 1% [13:39:42]line > о реализуемом товаре [13:39:42]line ОКРУГЛЕНИЕ: -0.10 [13:39:42]line ИТОГО: 220.00 [13:39:42]line Внесено: 220.00 [13:39:42]line СДАЧА: 0.00 [13:39:42]line НСП 1% : 1.95 [13:39:42]line НДС 12% : 23.37 [13:39:42]line Наличными: 220.00 [13:39:42]line Безнал.: 0.00 [13:39:42]line Место: АЗС № 86 "Партнер Нефть" [13:39:42]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [13:39:42]line СНО: Общий режим [13:39:42]line Чек 208 21.10.2024 13:39 [13:39:42]line Смена: 460 ФФД: 1.0 [13:39:42]line ЗНМ: 0300000155 [13:39:42]line РНМ: 0000000000100030 [13:39:42]line Версия ККМ: 001 [13:39:42]line ФМ: 0000000000965340 [13:39:42]line ФД: 187744 [13:39:42]line ФПД: 127032442671142 [13:39:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T133944&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187744&fm=127032442671142&tin=02508201610067®Number=0000000000100030&sum=22000 [13:39:42]written 0, free lines is 4095 [13:39:42]OFD Sender: Processing packet 187744 [packets to send 1062, broken 1061] [13:39:42]ProducePacketName [13:39:42]name=ofd_packets/00187744 [13:39:42]OFD Sender: To server: pG, [13:39:42]CommunicateWithHost lk.salyk.kg:30040 [13:39:42]ConnectInit lk.salyk.kg [13:39:42]Connected sock=10 [13:39:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 A0 4A 07 01 28 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 33 FF 03 08 00 03 DA 0C 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 FA 55 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 55 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 21 09 00 00 00 00 07 04 06 00 F0 55 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D0 00 00 00 F4 03 04 00 A0 59 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 60 DD 02 00 35 04 06 00 73 89 0B 9E D0 26 80 F5 53 A2 AF 77 DA 46 [13:39:42]Write to MH i2c: 01 00 00 74 5B CF [13:39:42]Write i2c OK [13:39:42]MH_I2C_Read... [13:39:42]Read from MH i2c: 01 [13:39:42]MH_I2C_Read... [13:39:42]Read from MH i2c: 01 07 00 [13:39:42]MH_I2C_Read... [13:39:42]Read from MH i2c: 01 07 00 74 5B 00 00 00 00 00 72 0C 54 [13:39:42]RasterBufferAndPrint [13:39:42]line [13:39:42]line [13:39:42]line [13:39:42]line [13:39:42]line [13:39:42]written 0, free lines is 3189 [13:39:42]MH_Cut [13:39:42]Write to MH i2c: D1 01 00 7B 5B 01 A8 [13:39:42]Write i2c OK [13:39:42]MH_I2C_Read... [13:39:42]Read from MH i2c: D1 [13:39:42]MH_I2C_Read... [13:39:42]Read from MH i2c: D1 01 00 [13:39:42]MH_I2C_Read... [13:39:42]Read from MH i2c: D1 01 00 7B 5B 00 A7 [13:39:42]Write to MH i2c: 01 00 00 7C 5B D7 [13:39:42]Write i2c OK [13:39:42]MH_I2C_Read... [13:39:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 37 C9 47 00 CC 6C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 60 DD 02 00 F4 03 04 00 90 03 16 67 B6 04 01 00 00 1D BE C0 B5 13 AE 0C E0 [13:39:43]CommunicateWithHost err = 0 [13:39:43]CheckOFDResponse [13:39:43]1017 (14) - 77093643461234 [13:39:43]1041 (16) - 0000000000965340 [13:39:43]1040 (4) - 187744 [13:39:43]1012 (4) - 21.10.2024 07:32 [13:39:43]1206 (1) - 0 [13:39:43]OFD Sender: Remove packet 187744 [13:39:43]ProducePacketName [13:39:43]name=ofd_packets/00187744 [13:39:43]NVStorageDeleteData [13:39:43]OFD Sender: No OFD packet to send [13:39:43]*** Cut start [13:39:43]*** Partial cut [13:39:43]*** CUTSNS_PIN = 1 [13:39:44]*** CUTSNS_PIN = 0 [13:39:44]*** Brake cut motor [13:39:44]Read from MH i2c: 01 [13:39:44]MH_I2C_Read... [13:39:44]*** Stop cut motor [13:39:44]*** Cut end [13:39:44]Read from MH i2c: 01 07 00 [13:39:44]MH_I2C_Read... [13:39:44]Read from MH i2c: 01 07 00 7C 5B 00 00 00 00 00 FF 0F EC [13:39:44]process_action close_receipt done [13:39:44]requested_data is exist [13:39:44]produce_requested_data [13:39:44]requested_item fm.sn is exist - process it [13:39:44]wFMCommunicate request_size=4 [13:39:44]MH_SAM_APDU [13:39:44]CAPDU: 80 11 00 00 [13:39:44]Write to MH i2c: E2 08 00 7D 5B 80 11 00 00 00 00 00 00 52 [13:39:44]Write i2c OK [13:39:44]MH_I2C_Read... [13:39:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:39:44]Read from MH i2c: E2 [13:39:44]MH_I2C_Read... [13:39:44]Read from MH i2c: E2 17 00 [13:39:44]MH_I2C_Read... [13:39:44]Read from MH i2c: E2 17 00 7D 5B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 A0 [13:39:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [13:39:44]wFMCommunicate OK [13:39:44]requested_item fd.num is exist - process it [13:39:44]SAM_PROTO_GetFieldsCounters [13:39:44]wFMCommunicate request_size=4 [13:39:44]MH_SAM_APDU [13:39:44]CAPDU: 80 13 00 00 [13:39:44]Write to MH i2c: E2 08 00 7E 5B 80 13 00 00 00 00 00 00 55 [13:39:44]Write i2c OK [13:39:44]MH_I2C_Read... [13:39:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:39:44]Read from MH i2c: E2 [13:39:44]MH_I2C_Read... [13:39:44]Read from MH i2c: E2 62 00 [13:39:44]MH_I2C_Read... [13:39:44]Read from MH i2c: E2 62 00 7E 5B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 60 DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 D0 00 00 00 5E 04 04 00 D0 00 00 00 57 04 04 00 D1 00 00 00 19 04 04 00 00 00 00 00 90 00 D8 [13:39:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 60 DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 D0 00 00 00 5E 04 04 00 D0 00 00 00 57 04 04 00 D1 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:39:44]wFMCommunicate OK [13:39:44]SAM_PROTO_GetFieldsCounters done [13:39:44]requested_item shift.num is exist - process it [13:39:44]requested_item shift.opened is exist - process it [13:39:44]req_shift_opened [13:39:44]FM_GetShiftState [13:39:44]SAM_PROTO_GetShiftState [13:39:44]wFMCommunicate request_size=4 [13:39:44]MH_SAM_APDU [13:39:44]CAPDU: 80 13 01 00 [13:39:44]Write to MH i2c: E2 08 00 7F 5B 80 13 01 00 00 00 00 00 57 [13:39:44]Write i2c OK [13:39:44]MH_I2C_Read... [13:39:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:39:44]Read from MH i2c: E2 [13:39:44]MH_I2C_Read... [13:39:44]Read from MH i2c: E2 0E 00 [13:39:44]MH_I2C_Read... [13:39:44]Read from MH i2c: E2 0E 00 7F 5B 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 B6 [13:39:44]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [13:39:44]wFMCommunicate OK [13:39:44]SAM_PROTO_GetShiftState done [13:39:44]FM_GetShiftState done [13:39:44]req_shift_opened done [13:39:44]requested_item shift.open_date is exist - process it [13:39:44]req_shift_open_date [13:39:44]req_shift_open_date done [13:39:44]produce_requested_data done [13:39:44]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187744,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [13:39:44]process_action_free close_receipt [13:39:44]json_value_free [13:39:44]json_value_free done [13:39:44]process_json_proto returns [13:39:44]Send response to host [13:39:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187744,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [13:39:44]free response buf [13:39:44]execute_script done [13:39:44]execute_script returns [13:39:44]free content buf [13:39:44]Sock 9.Close socket [13:39:44]Sock 9.Thread stoped [13:39:48]OFD Sender: No OFD packet to send [13:39:53]OFD Sender: No OFD packet to send [13:39:58]OFD Sender: No OFD packet to send [13:40:03]OFD Sender: No OFD packet to send [13:40:08]OFD Sender: No OFD packet to send [13:40:13]OFD Sender: No OFD packet to send [13:40:18]OFD Sender: No OFD packet to send [13:40:23]OFD Sender: No OFD packet to send [13:40:28]OFD Sender: No OFD packet to send [13:40:33]OFD Sender: No OFD packet to send [13:40:38]OFD Sender: No OFD packet to send [13:40:43]OFD Sender: No OFD packet to send [13:40:48]OFD Sender: No OFD packet to send [13:40:53]OFD Sender: No OFD packet to send [13:40:58]OFD Sender: No OFD packet to send [13:41:03]OFD Sender: No OFD packet to send [13:41:08]OFD Sender: No OFD packet to send [13:41:14]OFD Sender: No OFD packet to send [13:41:15]accept exits with 8 [13:41:15]New connection [13:41:15]New thread 3067014500 created [13:41:15]Thread 3067157860 joined [13:41:15]Waiting for new connection... [13:41:15] Sock 8.Parse request [13:41:15]Sock 8.Check first char [13:41:15]Sock 8.First char is OK [13:41:15]request: POST /json_proto HTTP/1.0 [13:41:15]Method: POST [13:41:15]URL: /json_proto [13:41:15]Method is POST - this is cgi request [13:41:15]url: /json_proto [13:41:15]query_string will be loaded in cgi processing [13:41:15]execute_cgi json_proto POST (null) [13:41:15]execute_cgi path=json_proto method=POST [13:41:15]POST find Content-Length [13:41:15]Host: 172.17.42.131:8080 [13:41:15]Content-Length: 683 [13:41:15]Content-Type: application/json [13:41:15] [13:41:15]POST finish read [13:41:15]Found Content-Length = 683 [13:41:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209797", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 7.780, "sum" : 600.62, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:41:15]execute_script... [13:41: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)209797", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 7.780, "sum" : 600.62, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:41:15]POST & json_proto [13:41:15]process_json_proto [13:41:15]json parsed OK: [13:41:15]protocol is kg_v1.0 [13:41:15]action value=close_receipt [13:41:15]process_action close_receipt [13:41:15]cmd_close_receipt [13:41:15]MH_GetDate [13:41:15]Write to MH i2c: F0 00 00 80 5B CA [13:41:15]Write i2c OK [13:41:15]MH_I2C_Read... [13:41:15]Read from MH i2c: F0 [13:41:15]MH_I2C_Read... [13:41:15]Read from MH i2c: F0 09 00 [13:41:15]MH_I2C_Read... [13:41:15]Read from MH i2c: F0 09 00 80 5B 00 FF 59 16 67 A0 18 CA 66 90 [13:41:15]GetLastDocTimeStamp 1729517984 [13:41:15]current date 1729518079 [13:41:15]FM_GetShiftState [13:41:15]SAM_PROTO_GetShiftState [13:41:15]wFMCommunicate request_size=4 [13:41:15]MH_SAM_APDU [13:41:15]CAPDU: 80 13 01 00 [13:41:15]Write to MH i2c: E2 08 00 81 5B 80 13 01 00 00 00 00 00 59 [13:41:15]Write i2c OK [13:41:15]MH_I2C_Read... [13:41:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:41:15]Read from MH i2c: E2 [13:41:15]MH_I2C_Read... [13:41:15]Read from MH i2c: E2 0E 00 [13:41:15]MH_I2C_Read... [13:41:15]Read from MH i2c: E2 0E 00 81 5B 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 B8 [13:41:15]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [13:41:15]wFMCommunicate OK [13:41:15]SAM_PROTO_GetShiftState done [13:41:15]FM_GetShiftState done [13:41:15]opened in 1729469754 [13:41:15]opened+sec_in_day 1729556154 [13:41:15]quantity*price = 60061 [13:41:15]sum+1 = 60063 [13:41:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.62 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.78 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 209 21.10.2024 13:41 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 187745 ФПД: 123747479021141 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T134120&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187745&fm=123747479021141&tin=02508201610067®Number=0000000000100030&sum=60000 [13:41:16]StoreToDocumentArchive [13:41:16]shift 460 fd 187745 [13:41:16]save to /storage/0460/doc_00187745 [13:41:16]save last doc name /storage/0460/doc_00187745 to /storage/kkm_last_doc_name [13:41:16]save OK [13:41:16]Clear old archive folders... [13:41:16]ProcessDocumentItem done err = 0, tmpTLVsize=257 [13:41:16]tlvbuf is 010C7C10 [13:41:16]SAM_PROTO_ClearQueue [13:41:16]wFMCommunicate request_size=4 [13:41:16]MH_SAM_APDU [13:41:16]CAPDU: 80 09 00 00 [13:41:16]Write to MH i2c: E2 08 00 8E 5B 80 09 00 00 00 00 00 00 5B [13:41:16]Write i2c OK [13:41:16]MH_I2C_Read... [13:41:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:41:16]Read from MH i2c: E2 [13:41:16]MH_I2C_Read... [13:41:16]Read from MH i2c: E2 03 00 [13:41:16]MH_I2C_Read... [13:41:16]Read from MH i2c: E2 03 00 8E 5B 00 90 00 5D [13:41:16]RAPDU: 90 00 [13:41:16]wFMCommunicate OK [13:41:16]SAM_PROTO_ClearQueue done [13:41:16]KKMCreateOFDPacket [13:41:16]OFDProtocolAddRootSTLVToBuf [13:41:16]FM_MakeSignedData [13:41:16]FM_MakeSignedData [13:41:16]SAM_PROTO_SignData [13:41:16]wFMCommunicate request_size=4 [13:41:16]MH_SAM_APDU [13:41:16]CAPDU: 80 0D 01 02 [13:41:16]Write to MH i2c: E2 08 00 8F 5B 80 0D 01 02 00 00 00 00 63 [13:41:16]Write i2c OK [13:41:16]MH_I2C_Read... [13:41:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:41:16]Read from MH i2c: E2 [13:41:16]MH_I2C_Read... [13:41:16]Read from MH i2c: E2 03 00 [13:41:16]MH_I2C_Read... [13:41:16]Read from MH i2c: E2 03 00 8F 5B 00 90 00 5E [13:41:16]RAPDU: 90 00 [13:41:16]wFMCommunicate OK [13:41:16]wFMCommunicate request_size=255 [13:41:16]MH_SAM_APDU [13:41:16]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 64 1E 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 9E EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EA 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D1 00 00 00 F4 03 04 00 00 5A 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 61 DD 02 [13:41:16]Write to MH i2c: E2 02 01 90 5B 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 64 1E 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 9E EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EA 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D1 00 00 00 F4 03 04 00 00 5A 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 61 DD 02 00 00 8E [13:41:16]Write i2c OK [13:41:16]MH_I2C_Read... [13:41:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:41:17]Read from MH i2c: E2 [13:41:17]MH_I2C_Read... [13:41:17]Read from MH i2c: E2 03 00 [13:41:17]MH_I2C_Read... [13:41:17]Read from MH i2c: E2 03 00 90 5B 00 90 00 5F [13:41:17]RAPDU: 90 00 [13:41:17]wFMCommunicate OK [13:41:17]wFMCommunicate request_size=16 [13:41:17]MH_SAM_APDU [13:41:17]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 70 8C 34 87 66 55 [13:41:17]Write to MH i2c: E2 13 00 91 5B 80 0D 02 02 0B 00 00 35 04 06 00 70 8C 34 87 66 55 00 00 2D [13:41:17]Write i2c OK [13:41:17]MH_I2C_Read... [13:41:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:41:17]Read from MH i2c: E2 [13:41:17]MH_I2C_Read... [13:41:17]Read from MH i2c: E2 03 00 [13:41:17]MH_I2C_Read... [13:41:17]Read from MH i2c: E2 03 00 91 5B 00 90 00 60 [13:41:17]RAPDU: 90 00 [13:41:17]wFMCommunicate OK [13:41:17]wFMCommunicate request_size=4 [13:41:17]MH_SAM_APDU [13:41:17]CAPDU: 80 0D 03 02 [13:41:17]Write to MH i2c: E2 08 00 92 5B 80 0D 03 02 00 00 00 00 68 [13:41:17]Write i2c OK [13:41:17]MH_I2C_Read... [13:41:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:41:17]Read from MH i2c: E2 [13:41:17]MH_I2C_Read... [13:41:17]Read from MH i2c: E2 0B 00 [13:41:17]MH_I2C_Read... [13:41:17]Read from MH i2c: E2 0B 00 92 5B 00 28 CE F9 DE 9D 51 51 7C 90 00 F1 [13:41:17]RAPDU: 28 CE F9 DE 9D 51 51 7C 90 00 [13:41:17]wFMCommunicate OK [13:41:17]SAM_PROTO_SignData done [13:41:17]FM_MakeSignedData done [13:41:17]CreateOFDProtocolMessage [13:41:17]wFMCommunicate request_size=4 [13:41:17]MH_SAM_APDU [13:41:17]CAPDU: 80 11 00 00 [13:41:17]Write to MH i2c: E2 08 00 93 5B 80 11 00 00 00 00 00 00 68 [13:41:17]Write i2c OK [13:41:17]MH_I2C_Read... [13:41:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:41:17]Read from MH i2c: E2 [13:41:17]MH_I2C_Read... [13:41:17]Read from MH i2c: E2 17 00 [13:41:17]MH_I2C_Read... [13:41:17]Read from MH i2c: E2 17 00 93 5B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 B6 [13:41:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [13:41:17]wFMCommunicate OK [13:41:17]CreateOFDProtocolMessage done [13:41:17]OFDSenderStorePacket 187745 [13:41:17]StoreOFDPacket docnum=187745 [13:41:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 39 60 0D 01 04 3A 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 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 64 1E 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 9E EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EA 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D1 00 00 00 F4 03 04 00 00 5A 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 61 DD 02 00 35 04 06 00 70 8C 34 87 66 55 28 CE F9 DE 9D 51 51 7C [13:41:17]CheckFolder [13:41:17]dirname=/storage/ofd_packets [13:41:17]CheckFolder done [13:41:17]ProducePacketName [13:41:17]name=ofd_packets/00187745 [13:41:17]NVStorageSaveData ofd_packets/00187745 [13:41:17]File name is /storage/ofd_packets/00187745 [13:41:17]Write 307 bytes [13:41:17]NVStorageSaveData done [13:41:17]OFDSenderStorePacket done [13:41:17]KKMCreateOFDPacket done [13:41:17]NVStorageSaveData kkm_last_timestamp [13:41:17]File name is /storage/kkm_last_timestamp [13:41:17]Write 4 bytes [13:41:17]NVStorageSaveData done [13:41:17]ExternCall_PrintAddStr [13:41:17]wPrintStart [13:41:17]Write to MH i2c: 01 00 00 94 5B EF [13:41:17]Write i2c OK [13:41:17]MH_I2C_Read... [13:41:17]Read from MH i2c: 01 [13:41:17]MH_I2C_Read... [13:41:17]Read from MH i2c: 01 07 00 [13:41:17]MH_I2C_Read... [13:41:17]Read from MH i2c: 01 07 00 94 5B 00 00 00 00 00 FF 0F 04 [13:41:17]RasterBufferAndPrint [13:41:17]line Счет N : (1)209797 [13:41:17]line ИНН: 02508201610067 [13:41:17]line Контрольно-Кассовый Чек [13:41:17]line ПРОДАЖА [13:41:17]line ТРК (МРК, ГНК) : 11 [13:41:17]line Товар: 2710194210 [13:41:17]line D-ENERGY ДТ-К-5 [13:41:17]line 7.780 * 77.20 [13:41:17]line = 600.62 [13:41:17]line НДС 12% НСП 1% [13:41:17]line > о реализуемом товаре [13:41:17]line ОКРУГЛЕНИЕ: -0.62 [13:41:17]line ИТОГО: 600.00 [13:41:17]line Внесено: 600.00 [13:41:17]line СДАЧА: 0.00 [13:41:17]line НСП 1% : 5.31 [13:41:17]line НДС 12% : 63.78 [13:41:17]line Наличными: 600.00 [13:41:17]line Безнал.: 0.00 [13:41:17]line Место: АЗС № 86 "Партнер Нефть" [13:41:17]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [13:41:17]line СНО: Общий режим [13:41:17]line Чек 209 21.10.2024 13:41 [13:41:17]line Смена: 460 ФФД: 1.0 [13:41:17]line ЗНМ: 0300000155 [13:41:17]line РНМ: 0000000000100030 [13:41:17]line Версия ККМ: 001 [13:41:17]line ФМ: 0000000000965340 [13:41:17]line ФД: 187745 [13:41:17]line ФПД: 123747479021141 [13:41:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T134120&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187745&fm=123747479021141&tin=02508201610067®Number=0000000000100030&sum=60000 [13:41:17]written 0, free lines is 4095 [13:41:17]OFD Sender: Processing packet 187745 [packets to send 1062, broken 1061] [13:41:17]ProducePacketName [13:41:17]name=ofd_packets/00187745 [13:41:17]OFD Sender: To server: pG, [13:41:17]CommunicateWithHost lk.salyk.kg:30040 [13:41:17]ConnectInit lk.salyk.kg [13:41:17]Connected sock=10 [13:41:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 39 60 0D 01 04 3A 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 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 64 1E 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 9E EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EA 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D1 00 00 00 F4 03 04 00 00 5A 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 61 DD 02 00 35 04 06 00 70 8C 34 87 66 55 28 CE F9 DE 9D 51 51 7C [13:41:17]Write to MH i2c: 01 00 00 BF 5B 1A [13:41:17]Write i2c OK [13:41:17]MH_I2C_Read... [13:41:17]Read from MH i2c: 01 [13:41:17]MH_I2C_Read... [13:41:17]Read from MH i2c: 01 07 00 [13:41:17]MH_I2C_Read... [13:41:17]Read from MH i2c: 01 07 00 BF 5B 00 00 00 00 00 69 0C 96 [13:41:17]RasterBufferAndPrint [13:41:17]line [13:41:17]line [13:41:17]line [13:41:17]line [13:41:17]line [13:41:17]written 0, free lines is 3180 [13:41:17]MH_Cut [13:41:17]Write to MH i2c: D1 01 00 C6 5B 01 F3 [13:41:17]Write i2c OK [13:41:17]MH_I2C_Read... [13:41:17]Read from MH i2c: D1 [13:41:17]MH_I2C_Read... [13:41:17]Read from MH i2c: D1 01 00 [13:41:17]MH_I2C_Read... [13:41:17]Read from MH i2c: D1 01 00 C6 5B 00 F2 [13:41:17]Write to MH i2c: 01 00 00 C7 5B 22 [13:41:17]Write i2c OK [13:41:17]MH_I2C_Read... [13:41:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 D6 11 47 00 9E CE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 61 DD 02 00 F4 03 04 00 EF 03 16 67 B6 04 01 00 00 31 88 9A 6F 24 01 DF EF [13:41:18]CommunicateWithHost err = 0 [13:41:18]CheckOFDResponse [13:41:18]1017 (14) - 77093643461234 [13:41:18]1041 (16) - 0000000000965340 [13:41:18]1040 (4) - 187745 [13:41:18]1012 (4) - 21.10.2024 07:34 [13:41:18]1206 (1) - 0 [13:41:18]OFD Sender: Remove packet 187745 [13:41:18]ProducePacketName [13:41:18]name=ofd_packets/00187745 [13:41:18]NVStorageDeleteData [13:41:18]OFD Sender: No OFD packet to send [13:41:19]*** Cut start [13:41:19]*** Partial cut [13:41:19]*** CUTSNS_PIN = 1 [13:41:19]*** CUTSNS_PIN = 0 [13:41:19]*** Brake cut motor [13:41:19]Read from MH i2c: 01 [13:41:19]MH_I2C_Read... [13:41:19]*** Stop cut motor [13:41:19]*** Cut end [13:41:19]Read from MH i2c: 01 07 00 [13:41:19]MH_I2C_Read... [13:41:19]Read from MH i2c: 01 07 00 C7 5B 00 00 00 00 00 FF 0F 37 [13:41:19]process_action close_receipt done [13:41:19]requested_data is exist [13:41:19]produce_requested_data [13:41:19]requested_item fm.sn is exist - process it [13:41:19]wFMCommunicate request_size=4 [13:41:19]MH_SAM_APDU [13:41:19]CAPDU: 80 11 00 00 [13:41:19]Write to MH i2c: E2 08 00 C8 5B 80 11 00 00 00 00 00 00 9D [13:41:19]Write i2c OK [13:41:19]MH_I2C_Read... [13:41:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:41:19]Read from MH i2c: E2 [13:41:19]MH_I2C_Read... [13:41:19]Read from MH i2c: E2 17 00 [13:41:19]MH_I2C_Read... [13:41:19]Read from MH i2c: E2 17 00 C8 5B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 EB [13:41:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [13:41:19]wFMCommunicate OK [13:41:19]requested_item fd.num is exist - process it [13:41:19]SAM_PROTO_GetFieldsCounters [13:41:19]wFMCommunicate request_size=4 [13:41:19]MH_SAM_APDU [13:41:19]CAPDU: 80 13 00 00 [13:41:19]Write to MH i2c: E2 08 00 C9 5B 80 13 00 00 00 00 00 00 A0 [13:41:19]Write i2c OK [13:41:19]MH_I2C_Read... [13:41:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:41:19]Read from MH i2c: E2 [13:41:19]MH_I2C_Read... [13:41:19]Read from MH i2c: E2 62 00 [13:41:19]MH_I2C_Read... [13:41:19]Read from MH i2c: E2 62 00 C9 5B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 61 DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 D1 00 00 00 5E 04 04 00 D1 00 00 00 57 04 04 00 D2 00 00 00 19 04 04 00 00 00 00 00 90 00 27 [13:41:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 61 DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 D1 00 00 00 5E 04 04 00 D1 00 00 00 57 04 04 00 D2 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:41:19]wFMCommunicate OK [13:41:19]SAM_PROTO_GetFieldsCounters done [13:41:19]requested_item shift.num is exist - process it [13:41:19]requested_item shift.opened is exist - process it [13:41:19]req_shift_opened [13:41:19]FM_GetShiftState [13:41:19]SAM_PROTO_GetShiftState [13:41:19]wFMCommunicate request_size=4 [13:41:19]MH_SAM_APDU [13:41:19]CAPDU: 80 13 01 00 [13:41:19]Write to MH i2c: E2 08 00 CA 5B 80 13 01 00 00 00 00 00 A2 [13:41:19]Write i2c OK [13:41:19]MH_I2C_Read... [13:41:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:41:19]Read from MH i2c: E2 [13:41:19]MH_I2C_Read... [13:41:19]Read from MH i2c: E2 0E 00 [13:41:19]MH_I2C_Read... [13:41:19]Read from MH i2c: E2 0E 00 CA 5B 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 01 [13:41:19]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [13:41:19]wFMCommunicate OK [13:41:19]SAM_PROTO_GetShiftState done [13:41:19]FM_GetShiftState done [13:41:19]req_shift_opened done [13:41:19]requested_item shift.open_date is exist - process it [13:41:19]req_shift_open_date [13:41:19]req_shift_open_date done [13:41:19]produce_requested_data done [13:41:19]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187745,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [13:41:19]process_action_free close_receipt [13:41:19]json_value_free [13:41:19]json_value_free done [13:41:19]process_json_proto returns [13:41:19]Send response to host [13:41:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187745,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [13:41:19]free response buf [13:41:19]execute_script done [13:41:19]execute_script returns [13:41:19]free content buf [13:41:19]Sock 8.Close socket [13:41:19]Sock 8.Thread stoped [13:41:23]OFD Sender: No OFD packet to send [13:41:28]OFD Sender: No OFD packet to send [13:41:33]OFD Sender: No OFD packet to send [13:41:38]OFD Sender: No OFD packet to send [13:41:43]OFD Sender: No OFD packet to send [13:41:48]OFD Sender: No OFD packet to send [13:41:53]OFD Sender: No OFD packet to send [13:41:58]OFD Sender: No OFD packet to send [13:42:03]OFD Sender: No OFD packet to send [13:42:08]OFD Sender: No OFD packet to send [13:42:13]OFD Sender: No OFD packet to send [13:42:18]OFD Sender: No OFD packet to send [13:42:23]OFD Sender: No OFD packet to send [13:42:28]OFD Sender: No OFD packet to send [13:42:33]OFD Sender: No OFD packet to send [13:42:38]OFD Sender: No OFD packet to send [13:42:44]OFD Sender: No OFD packet to send [13:42:49]OFD Sender: No OFD packet to send [13:42:54]OFD Sender: No OFD packet to send [13:42:59]OFD Sender: No OFD packet to send [13:43:04]OFD Sender: No OFD packet to send [13:43:07]accept exits with 9 [13:43:07]New connection [13:43:07]New thread 3067157860 created [13:43:07]Thread 3067014500 joined [13:43:07]Waiting for new connection... [13:43:07] Sock 9.Parse request [13:43:07]Sock 9.Check first char [13:43:07]Sock 9.First char is OK [13:43:07]request: POST /json_proto HTTP/1.0 [13:43:07]Method: POST [13:43:07]URL: /json_proto [13:43:07]Method is POST - this is cgi request [13:43:07]url: /json_proto [13:43:07]query_string will be loaded in cgi processing [13:43:07]execute_cgi json_proto POST (null) [13:43:07]execute_cgi path=json_proto method=POST [13:43:07]POST find Content-Length [13:43:07]Host: 172.17.42.131:8080 [13:43:07]Content-Length: 688 [13:43:07]Content-Type: application/json [13:43:07] [13:43:07]POST finish read [13:43:07]Found Content-Length = 688 [13:43:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209798", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 12.960, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:43:07]execute_script... [13:43: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)209798", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 12.960, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:43:07]POST & json_proto [13:43:07]process_json_proto [13:43:07]json parsed OK: [13:43:07]protocol is kg_v1.0 [13:43:07]action value=close_receipt [13:43:07]process_action close_receipt [13:43:07]cmd_close_receipt [13:43:07]MH_GetDate [13:43:07]Write to MH i2c: F0 00 00 CB 5B 15 [13:43:07]Write i2c OK [13:43:07]MH_I2C_Read... [13:43:07]Read from MH i2c: F0 [13:43:07]MH_I2C_Read... [13:43:07]Read from MH i2c: F0 09 00 [13:43:07]MH_I2C_Read... [13:43:07]Read from MH i2c: F0 09 00 CB 5B 00 6F 5A 16 67 A0 18 CA 66 4C [13:43:07]GetLastDocTimeStamp 1729518080 [13:43:07]current date 1729518191 [13:43:07]FM_GetShiftState [13:43:07]SAM_PROTO_GetShiftState [13:43:07]wFMCommunicate request_size=4 [13:43:07]MH_SAM_APDU [13:43:07]CAPDU: 80 13 01 00 [13:43:07]Write to MH i2c: E2 08 00 CC 5B 80 13 01 00 00 00 00 00 A4 [13:43:07]Write i2c OK [13:43:07]MH_I2C_Read... [13:43:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:43:07]Read from MH i2c: E2 [13:43:07]MH_I2C_Read... [13:43:07]Read from MH i2c: E2 0E 00 [13:43:07]MH_I2C_Read... [13:43:07]Read from MH i2c: E2 0E 00 CC 5B 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 03 [13:43:07]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [13:43:07]wFMCommunicate OK [13:43:07]SAM_PROTO_GetShiftState done [13:43:07]FM_GetShiftState done [13:43:07]opened in 1729469754 [13:43:07]opened+sec_in_day 1729556154 [13:43:07]quantity*price = 100051 [13:43:07]sum+1 = 100052 [13:43:07]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 210 21.10.2024 13:43 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 187746 ФПД: 62441585758615 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T134311&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187746&fm=62441585758615&tin=02508201610067®Number=0000000000100030&sum=100000 [13:43:08]StoreToDocumentArchive [13:43:08]shift 460 fd 187746 [13:43:08]save to /storage/0460/doc_00187746 [13:43:08]save last doc name /storage/0460/doc_00187746 to /storage/kkm_last_doc_name [13:43:08]save OK [13:43:08]Clear old archive folders... [13:43:08]ProcessDocumentItem done err = 0, tmpTLVsize=257 [13:43:08]tlvbuf is 011F8720 [13:43:08]SAM_PROTO_ClearQueue [13:43:08]wFMCommunicate request_size=4 [13:43:08]MH_SAM_APDU [13:43:08]CAPDU: 80 09 00 00 [13:43:08]Write to MH i2c: E2 08 00 D9 5B 80 09 00 00 00 00 00 00 A6 [13:43:08]Write i2c OK [13:43:08]MH_I2C_Read... [13:43:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:43:08]Read from MH i2c: E2 [13:43:08]MH_I2C_Read... [13:43:08]Read from MH i2c: E2 03 00 [13:43:08]MH_I2C_Read... [13:43:08]Read from MH i2c: E2 03 00 D9 5B 00 90 00 A8 [13:43:08]RAPDU: 90 00 [13:43:08]wFMCommunicate OK [13:43:08]SAM_PROTO_ClearQueue done [13:43:08]KKMCreateOFDPacket [13:43:08]OFDProtocolAddRootSTLVToBuf [13:43:08]FM_MakeSignedData [13:43:08]FM_MakeSignedData [13:43:08]SAM_PROTO_SignData [13:43:08]wFMCommunicate request_size=4 [13:43:08]MH_SAM_APDU [13:43:08]CAPDU: 80 0D 01 02 [13:43:08]Write to MH i2c: E2 08 00 DA 5B 80 0D 01 02 00 00 00 00 AE [13:43:08]Write i2c OK [13:43:08]MH_I2C_Read... [13:43:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:43:08]Read from MH i2c: E2 [13:43:08]MH_I2C_Read... [13:43:08]Read from MH i2c: E2 03 00 [13:43:08]MH_I2C_Read... [13:43:08]Read from MH i2c: E2 03 00 DA 5B 00 90 00 A9 [13:43:08]RAPDU: 90 00 [13:43:08]wFMCommunicate OK [13:43:08]wFMCommunicate request_size=255 [13:43:08]MH_SAM_APDU [13:43:08]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 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D2 00 00 00 F4 03 04 00 6F 5A 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 62 DD 02 [13:43:08]Write to MH i2c: E2 02 01 DB 5B 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D2 00 00 00 F4 03 04 00 6F 5A 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 62 DD 02 00 00 31 [13:43:08]Write i2c OK [13:43:08]MH_I2C_Read... [13:43:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:43:08]Read from MH i2c: E2 [13:43:08]MH_I2C_Read... [13:43:08]Read from MH i2c: E2 03 00 [13:43:08]MH_I2C_Read... [13:43:08]Read from MH i2c: E2 03 00 DB 5B 00 90 00 AA [13:43:08]RAPDU: 90 00 [13:43:08]wFMCommunicate OK [13:43:08]wFMCommunicate request_size=16 [13:43:08]MH_SAM_APDU [13:43:08]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 38 CA 50 89 D1 97 [13:43:08]Write to MH i2c: E2 13 00 DC 5B 80 0D 02 02 0B 00 00 35 04 06 00 38 CA 50 89 D1 97 00 00 49 [13:43:08]Write i2c OK [13:43:08]MH_I2C_Read... [13:43:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:43:09]Read from MH i2c: E2 [13:43:09]MH_I2C_Read... [13:43:09]Read from MH i2c: E2 03 00 [13:43:09]MH_I2C_Read... [13:43:09]Read from MH i2c: E2 03 00 DC 5B 00 90 00 AB [13:43:09]RAPDU: 90 00 [13:43:09]wFMCommunicate OK [13:43:09]wFMCommunicate request_size=4 [13:43:09]MH_SAM_APDU [13:43:09]CAPDU: 80 0D 03 02 [13:43:09]Write to MH i2c: E2 08 00 DD 5B 80 0D 03 02 00 00 00 00 B3 [13:43:09]Write i2c OK [13:43:09]MH_I2C_Read... [13:43:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:43:09]Read from MH i2c: E2 [13:43:09]MH_I2C_Read... [13:43:09]Read from MH i2c: E2 0B 00 [13:43:09]MH_I2C_Read... [13:43:09]Read from MH i2c: E2 0B 00 DD 5B 00 5F 74 E5 20 91 0C 70 42 90 00 DB [13:43:09]RAPDU: 5F 74 E5 20 91 0C 70 42 90 00 [13:43:09]wFMCommunicate OK [13:43:09]SAM_PROTO_SignData done [13:43:09]FM_MakeSignedData done [13:43:09]CreateOFDProtocolMessage [13:43:09]wFMCommunicate request_size=4 [13:43:09]MH_SAM_APDU [13:43:09]CAPDU: 80 11 00 00 [13:43:09]Write to MH i2c: E2 08 00 DE 5B 80 11 00 00 00 00 00 00 B3 [13:43:09]Write i2c OK [13:43:09]MH_I2C_Read... [13:43:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:43:09]Read from MH i2c: E2 [13:43:09]MH_I2C_Read... [13:43:09]Read from MH i2c: E2 17 00 [13:43:09]MH_I2C_Read... [13:43:09]Read from MH i2c: E2 17 00 DE 5B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 01 [13:43:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [13:43:09]wFMCommunicate OK [13:43:09]CreateOFDProtocolMessage done [13:43:09]OFDSenderStorePacket 187746 [13:43:09]StoreOFDPacket docnum=187746 [13:43:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 33 21 0D 01 5D 73 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 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D2 00 00 00 F4 03 04 00 6F 5A 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 62 DD 02 00 35 04 06 00 38 CA 50 89 D1 97 5F 74 E5 20 91 0C 70 42 [13:43:09]CheckFolder [13:43:09]dirname=/storage/ofd_packets [13:43:09]CheckFolder done [13:43:09]ProducePacketName [13:43:09]name=ofd_packets/00187746 [13:43:09]NVStorageSaveData ofd_packets/00187746 [13:43:09]File name is /storage/ofd_packets/00187746 [13:43:09]Write 307 bytes [13:43:09]NVStorageSaveData done [13:43:09]OFDSenderStorePacket done [13:43:09]KKMCreateOFDPacket done [13:43:09]NVStorageSaveData kkm_last_timestamp [13:43:09]File name is /storage/kkm_last_timestamp [13:43:09]Write 4 bytes [13:43:09]NVStorageSaveData done [13:43:09]ExternCall_PrintAddStr [13:43:09]wPrintStart [13:43:09]Write to MH i2c: 01 00 00 DF 5B 3A [13:43:09]Write i2c OK [13:43:09]MH_I2C_Read... [13:43:09]Read from MH i2c: 01 [13:43:09]MH_I2C_Read... [13:43:09]Read from MH i2c: 01 07 00 [13:43:09]MH_I2C_Read... [13:43:09]Read from MH i2c: 01 07 00 DF 5B 00 00 00 00 00 FF 0F 4F [13:43:09]RasterBufferAndPrint [13:43:09]line Счет N : (1)209798 [13:43:09]line ИНН: 02508201610067 [13:43:09]line Контрольно-Кассовый Чек [13:43:09]line ПРОДАЖА [13:43:09]line ТРК (МРК, ГНК) : 21 [13:43:09]line Товар: 2710194210 [13:43:09]line D-ENERGY ДТ-К-5 [13:43:09]line 12.960 * 77.20 [13:43:09]line = 1000.51 [13:43:09]line НДС 12% НСП 1% [13:43:09]line > о реализуемом товаре [13:43:09]line ОКРУГЛЕНИЕ: -0.51 [13:43:09]line ИТОГО: 1000.00 [13:43:09]line Внесено: 1000.00 [13:43:09]line СДАЧА: 0.00 [13:43:09]line НСП 1% : 8.85 [13:43:09]line НДС 12% : 106.25 [13:43:09]line Наличными: 1000.00 [13:43:09]line Безнал.: 0.00 [13:43:09]line Место: АЗС № 86 "Партнер Нефть" [13:43:09]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [13:43:09]line СНО: Общий режим [13:43:09]line Чек 210 21.10.2024 13:43 [13:43:09]line Смена: 460 ФФД: 1.0 [13:43:09]line ЗНМ: 0300000155 [13:43:09]line РНМ: 0000000000100030 [13:43:09]line Версия ККМ: 001 [13:43:09]line ФМ: 0000000000965340 [13:43:09]line ФД: 187746 [13:43:09]line ФПД: 62441585758615 [13:43:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T134311&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187746&fm=62441585758615&tin=02508201610067®Number=0000000000100030&sum=100000 [13:43:09]written 0, free lines is 4095 [13:43:09]OFD Sender: Processing packet 187746 [packets to send 1062, broken 1061] [13:43:09]ProducePacketName [13:43:09]name=ofd_packets/00187746 [13:43:09]OFD Sender: To server: pG, [13:43:09]CommunicateWithHost lk.salyk.kg:30040 [13:43:09]ConnectInit lk.salyk.kg [13:43:09]Connected sock=8 [13:43:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 33 21 0D 01 5D 73 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 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D2 00 00 00 F4 03 04 00 6F 5A 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 62 DD 02 00 35 04 06 00 38 CA 50 89 D1 97 5F 74 E5 20 91 0C 70 42 [13:43:09]Write to MH i2c: 01 00 00 0A 5C 66 [13:43:09]Write i2c OK [13:43:09]MH_I2C_Read... [13:43:09]Read from MH i2c: 01 [13:43:09]MH_I2C_Read... [13:43:09]Read from MH i2c: 01 07 00 [13:43:09]MH_I2C_Read... [13:43:09]Read from MH i2c: 01 07 00 0A 5C 00 00 00 00 00 6F 0C E8 [13:43:09]RasterBufferAndPrint [13:43:09]line [13:43:09]line [13:43:09]line [13:43:09]line [13:43:09]line [13:43:09]written 0, free lines is 3186 [13:43:09]MH_Cut [13:43:09]Write to MH i2c: D1 01 00 11 5C 01 3F [13:43:09]Write i2c OK [13:43:09]MH_I2C_Read... [13:43:09]Read from MH i2c: D1 [13:43:09]MH_I2C_Read... [13:43:09]Read from MH i2c: D1 01 00 [13:43:09]MH_I2C_Read... [13:43:09]Read from MH i2c: D1 01 00 11 5C 00 3E [13:43:09]Write to MH i2c: 01 00 00 12 5C 6E [13:43:09]Write i2c OK [13:43:09]MH_I2C_Read... [13:43:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 28 D5 47 00 12 20 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 62 DD 02 00 F4 03 04 00 5F 04 16 67 B6 04 01 00 00 92 12 E6 D6 4B A2 F8 C5 [13:43:09]CommunicateWithHost err = 0 [13:43:09]CheckOFDResponse [13:43:09]1017 (14) - 77093643461234 [13:43:09]1041 (16) - 0000000000965340 [13:43:09]1040 (4) - 187746 [13:43:09]1012 (4) - 21.10.2024 07:35 [13:43:09]1206 (1) - 0 [13:43:09]OFD Sender: Remove packet 187746 [13:43:09]ProducePacketName [13:43:09]name=ofd_packets/00187746 [13:43:09]NVStorageDeleteData [13:43:10]OFD Sender: No OFD packet to send [13:43:10]*** Cut start [13:43:10]*** Partial cut [13:43:10]*** CUTSNS_PIN = 1 [13:43:10]*** CUTSNS_PIN = 0 [13:43:11]*** Brake cut motor [13:43:11]Read from MH i2c: 01 [13:43:11]MH_I2C_Read... [13:43:11]*** Stop cut motor [13:43:11]*** Cut end [13:43:11]Read from MH i2c: 01 07 00 [13:43:11]MH_I2C_Read... [13:43:11]Read from MH i2c: 01 07 00 12 5C 00 00 00 00 00 FF 0F 83 [13:43:11]process_action close_receipt done [13:43:11]requested_data is exist [13:43:11]produce_requested_data [13:43:11]requested_item fm.sn is exist - process it [13:43:11]wFMCommunicate request_size=4 [13:43:11]MH_SAM_APDU [13:43:11]CAPDU: 80 11 00 00 [13:43:11]Write to MH i2c: E2 08 00 13 5C 80 11 00 00 00 00 00 00 E9 [13:43:11]Write i2c OK [13:43:11]MH_I2C_Read... [13:43:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:43:11]Read from MH i2c: E2 [13:43:11]MH_I2C_Read... [13:43:11]Read from MH i2c: E2 17 00 [13:43:11]MH_I2C_Read... [13:43:11]Read from MH i2c: E2 17 00 13 5C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 37 [13:43:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [13:43:11]wFMCommunicate OK [13:43:11]requested_item fd.num is exist - process it [13:43:11]SAM_PROTO_GetFieldsCounters [13:43:11]wFMCommunicate request_size=4 [13:43:11]MH_SAM_APDU [13:43:11]CAPDU: 80 13 00 00 [13:43:11]Write to MH i2c: E2 08 00 14 5C 80 13 00 00 00 00 00 00 EC [13:43:11]Write i2c OK [13:43:11]MH_I2C_Read... [13:43:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:43:11]Read from MH i2c: E2 [13:43:11]MH_I2C_Read... [13:43:11]Read from MH i2c: E2 62 00 [13:43:11]MH_I2C_Read... [13:43:11]Read from MH i2c: E2 62 00 14 5C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 62 DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 D2 00 00 00 5E 04 04 00 D2 00 00 00 57 04 04 00 D3 00 00 00 19 04 04 00 00 00 00 00 90 00 77 [13:43:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 62 DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 D2 00 00 00 5E 04 04 00 D2 00 00 00 57 04 04 00 D3 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:43:11]wFMCommunicate OK [13:43:11]SAM_PROTO_GetFieldsCounters done [13:43:11]requested_item shift.num is exist - process it [13:43:11]requested_item shift.opened is exist - process it [13:43:11]req_shift_opened [13:43:11]FM_GetShiftState [13:43:11]SAM_PROTO_GetShiftState [13:43:11]wFMCommunicate request_size=4 [13:43:11]MH_SAM_APDU [13:43:11]CAPDU: 80 13 01 00 [13:43:11]Write to MH i2c: E2 08 00 15 5C 80 13 01 00 00 00 00 00 EE [13:43:11]Write i2c OK [13:43:11]MH_I2C_Read... [13:43:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:43:11]Read from MH i2c: E2 [13:43:11]MH_I2C_Read... [13:43:11]Read from MH i2c: E2 0E 00 [13:43:11]MH_I2C_Read... [13:43:11]Read from MH i2c: E2 0E 00 15 5C 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 4D [13:43:11]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [13:43:11]wFMCommunicate OK [13:43:11]SAM_PROTO_GetShiftState done [13:43:11]FM_GetShiftState done [13:43:11]req_shift_opened done [13:43:11]requested_item shift.open_date is exist - process it [13:43:11]req_shift_open_date [13:43:11]req_shift_open_date done [13:43:11]produce_requested_data done [13:43:11]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187746,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [13:43:11]process_action_free close_receipt [13:43:11]json_value_free [13:43:11]json_value_free done [13:43:11]process_json_proto returns [13:43:11]Send response to host [13:43:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187746,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [13:43:11]free response buf [13:43:11]execute_script done [13:43:11]execute_script returns [13:43:11]free content buf [13:43:11]Sock 9.Close socket [13:43:11]Sock 9.Thread stoped [13:43:12]accept exits with 10 [13:43:12]New connection [13:43:12]New thread 3067014500 created [13:43:12]Thread 3067157860 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.42.131:8080 [13:43:12]Content-Length: 682 [13:43:12]Content-Type: application/json [13:43:12] [13:43:12]POST finish read [13:43:12]Found Content-Length = 682 [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)209799", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 26.960, "sum" : 2000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [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)209799", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 26.960, "sum" : 2000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [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 16 5C 61 [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 16 5C 00 74 5A 16 67 A0 18 CA 66 9D [13:43:12]GetLastDocTimeStamp 1729518191 [13:43:12]current date 1729518196 [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 17 5C 80 13 01 00 00 00 00 00 F0 [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 17 5C 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 4F [13:43:12]RAPDU: 09 00 01 3A 9D 15 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 1729469754 [13:43:12]opened+sec_in_day 1729556154 [13:43:12]quantity*price = 200043 [13:43:12]sum+1 = 200044 [13:43:12]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.43 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.43 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 211 21.10.2024 13:43 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 187747 ФПД: 106684308701977 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T134316&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187747&fm=106684308701977&tin=02508201610067®Number=0000000000100030&sum=200000 [13:43:12]StoreToDocumentArchive [13:43:12]shift 460 fd 187747 [13:43:12]save to /storage/0460/doc_00187747 [13:43:12]save last doc name /storage/0460/doc_00187747 to /storage/kkm_last_doc_name [13:43:12]save OK [13:43:12]Clear old archive folders... [13:43:12]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:43:12]tlvbuf is 01287970 [13:43:12]SAM_PROTO_ClearQueue [13:43:12]wFMCommunicate request_size=4 [13:43:12]MH_SAM_APDU [13:43:12]CAPDU: 80 09 00 00 [13:43:12]Write to MH i2c: E2 08 00 24 5C 80 09 00 00 00 00 00 00 F2 [13:43:12]Write i2c OK [13:43:12]MH_I2C_Read... [13:43:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:43:12]Read from MH i2c: E2 [13:43:12]MH_I2C_Read... [13:43:12]Read from MH i2c: E2 03 00 [13:43:12]MH_I2C_Read... [13:43:12]Read from MH i2c: E2 03 00 24 5C 00 90 00 F4 [13:43:12]RAPDU: 90 00 [13:43:12]wFMCommunicate OK [13:43:12]SAM_PROTO_ClearQueue done [13:43:12]KKMCreateOFDPacket [13:43:12]OFDProtocolAddRootSTLVToBuf [13:43:12]FM_MakeSignedData [13:43:12]FM_MakeSignedData [13:43:12]SAM_PROTO_SignData [13:43:12]wFMCommunicate request_size=4 [13:43:12]MH_SAM_APDU [13:43:12]CAPDU: 80 0D 01 02 [13:43:12]Write to MH i2c: E2 08 00 25 5C 80 0D 01 02 00 00 00 00 FA [13:43:12]Write i2c OK [13:43:12]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 25 5C 00 90 00 F5 [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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D3 00 00 00 F4 03 04 00 74 5A 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 63 DD 02 00 35 04 06 00 61 [13:43:13]Write to MH i2c: E2 02 01 26 5C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D3 00 00 00 F4 03 04 00 74 5A 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 63 DD 02 00 35 04 06 00 61 00 00 A3 [13:43:13]Write i2c OK [13:43:13]MH_I2C_Read... [13:43:13]Read from MH i2c: *** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:43:13]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 26 5C 00 90 00 F6 [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 07 60 52 C3 19 [13:43:13]Write to MH i2c: E2 0D 00 27 5C 80 0D 02 02 05 00 07 60 52 C3 19 00 00 9C [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 27 5C 00 90 00 F7 [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 28 5C 80 0D 03 02 00 00 00 00 FF [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:14]Read from MH i2c: E2 [13:43:14]MH_I2C_Read... [13:43:14]Read from MH i2c: E2 0B 00 [13:43:14]MH_I2C_Read... [13:43:14]Read from MH i2c: E2 0B 00 28 5C 00 0B 1F E8 48 21 21 3C D7 90 00 AF [13:43:14]RAPDU: 0B 1F E8 48 21 21 3C D7 90 00 [13:43:14]wFMCommunicate OK [13:43:14]SAM_PROTO_SignData done [13:43:14]FM_MakeSignedData done [13:43:14]CreateOFDProtocolMessage [13:43:14]wFMCommunicate request_size=4 [13:43:14]MH_SAM_APDU [13:43:14]CAPDU: 80 11 00 00 [13:43:14]Write to MH i2c: E2 08 00 29 5C 80 11 00 00 00 00 00 00 FF [13:43:14]Write i2c OK [13:43:14]MH_I2C_Read... [13:43:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:43:14]Read from MH i2c: E2 [13:43:14]MH_I2C_Read... [13:43:14]Read from MH i2c: E2 17 00 [13:43:14]MH_I2C_Read... [13:43:14]Read from MH i2c: E2 17 00 29 5C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 4D [13:43:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [13:43:14]wFMCommunicate OK [13:43:14]CreateOFDProtocolMessage done [13:43:14]OFDSenderStorePacket 187747 [13:43:14]StoreOFDPacket docnum=187747 [13:43:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 9E AA 07 01 48 10 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D3 00 00 00 F4 03 04 00 74 5A 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 63 DD 02 00 35 04 06 00 61 07 60 52 C3 19 0B 1F E8 48 21 21 3C D7 [13:43:14]CheckFolder [13:43:14]dirname=/storage/ofd_packets [13:43:14]CheckFolder done [13:43:14]ProducePacketName [13:43:14]name=ofd_packets/00187747 [13:43:14]NVStorageSaveData ofd_packets/00187747 [13:43:14]File name is /storage/ofd_packets/00187747 [13:43:14]Write 301 bytes [13:43:14]NVStorageSaveData done [13:43:14]OFDSenderStorePacket done [13:43:14]KKMCreateOFDPacket done [13:43:14]NVStorageSaveData kkm_last_timestamp [13:43:14]File name is /storage/kkm_last_timestamp [13:43:14]Write 4 bytes [13:43:14]NVStorageSaveData done [13:43:14]ExternCall_PrintAddStr [13:43:14]wPrintStart [13:43:14]Write to MH i2c: 01 00 00 2A 5C 86 [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 2A 5C 00 00 00 00 00 FF 0F 9B [13:43:14]RasterBufferAndPrint [13:43:14]line Счет N : (1)209799 [13:43:14]line ИНН: 02508201610067 [13:43:14]line Контрольно-Кассовый Чек [13:43:14]line ПРОДАЖА [13:43:14]line ТРК (МРК, ГНК) : 43 [13:43:14]line Товар: 2710124500 [13:43:14]line Аи-95-К-3 [13:43:14]line 26.960 * 74.20 [13:43:14]line = 2000.43 [13:43:14]line НДС 12% НСП 1% [13:43:14]line > о реализуемом товаре [13:43:14]line ОКРУГЛЕНИЕ: -0.43 [13:43:14]line ИТОГО: 2000.00 [13:43:14]line Внесено: 2000.00 [13:43:14]line СДАЧА: 0.00 [13:43:14]line НСП 1% : 17.70 [13:43:14]line НДС 12% : 212.43 [13:43:14]line Наличными: 2000.00 [13:43:14]line Безнал.: 0.00 [13:43:14]line Место: АЗС № 86 "Партнер Нефть" [13:43:14]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [13:43:14]line СНО: Общий режим [13:43:14]line Чек 211 21.10.2024 13:43 [13:43:14]line Смена: 460 ФФД: 1.0 [13:43:14]line ЗНМ: 0300000155 [13:43:14]line РНМ: 0000000000100030 [13:43:14]line Версия ККМ: 001 [13:43:14]line ФМ: 0000000000965340 [13:43:14]line ФД: 187747 [13:43:14]line ФПД: 106684308701977 [13:43:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T134316&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187747&fm=106684308701977&tin=02508201610067®Number=0000000000100030&sum=200000 [13:43:14]written 0, free lines is 4095 [13:43:14]OFD Sender: Processing packet 187747 [packets to send 1062, broken 1061] [13:43:14]ProducePacketName [13:43:14]name=ofd_packets/00187747 [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]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 39 36 35 33 34 30 0F 01 00 00 9E AA 07 01 48 10 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D3 00 00 00 F4 03 04 00 74 5A 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 63 DD 02 00 35 04 06 00 61 07 60 52 C3 19 0B 1F E8 48 21 21 3C D7 [13:43:14]Write to MH i2c: 01 00 00 55 5C B1 [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 55 5C 00 00 00 00 00 93 0C 57 [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 3230 [13:43:14]MH_Cut [13:43:14]Write to MH i2c: D1 01 00 5C 5C 01 8A [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 5C 5C 00 89 [13:43:14]Write to MH i2c: 01 00 00 5D 5C B9 [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 39 36 35 33 34 30 4F 00 00 00 95 4F 47 00 05 00 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 63 DD 02 00 F4 03 04 00 64 04 16 67 B6 04 01 00 00 7E 48 44 12 F6 E2 02 C2 [13:43:14]CommunicateWithHost err = 0 [13:43:14]CheckOFDResponse [13:43:14]1017 (14) - 77093643461234 [13:43:14]1041 (16) - 0000000000965340 [13:43:14]1040 (4) - 187747 [13:43:14]1012 (4) - 21.10.2024 07:36 [13:43:14]1206 (1) - 0 [13:43:14]OFD Sender: Remove packet 187747 [13:43:14]ProducePacketName [13:43:14]name=ofd_packets/00187747 [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:16]*** 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 5D 5C 00 00 00 00 00 FF 0F CE [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 5E 5C 80 11 00 00 00 00 00 00 34 [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 5E 5C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 82 [13:43:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 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 5F 5C 80 13 00 00 00 00 00 00 37 [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 5F 5C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 63 DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 D3 00 00 00 5E 04 04 00 D3 00 00 00 57 04 04 00 D4 00 00 00 19 04 04 00 00 00 00 00 90 00 C6 [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 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 63 DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 D3 00 00 00 5E 04 04 00 D3 00 00 00 57 04 04 00 D4 00 00 00 19 04 04 00 00 00 00 00 90 00 [13: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 60 5C 80 13 01 00 00 00 00 00 39 [13:43:16]Write i2c OK [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 [13:43:16]MH_I2C_Read... [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 60 5C 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 98 [13:43:16]RAPDU: 09 00 01 3A 9D 15 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":"0000000000965340","fd.num":187747,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [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":"0000000000965340","fd.num":187747,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [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:16]OFD Sender: No OFD packet to send [13:45:21]OFD Sender: No OFD packet to send [13:45:26]OFD Sender: No OFD packet to send [13:45:31]OFD Sender: No OFD packet to send [13:45:36]OFD Sender: No OFD packet to send [13:45:41]OFD Sender: No OFD packet to send [13:45:46]OFD Sender: No OFD packet to send [13:45:51]OFD Sender: No OFD packet to send [13:45:56]OFD Sender: No OFD packet to send [13:46:01]OFD Sender: No OFD packet to send [13:46:06]OFD Sender: No OFD packet to send [13:46:11]OFD Sender: No OFD packet to send [13:46:16]OFD Sender: No OFD packet to send [13:46:21]OFD Sender: No OFD packet to send [13:46:26]OFD Sender: No OFD packet to send [13:46:31]OFD Sender: No OFD packet to send [13:46:36]OFD Sender: No OFD packet to send [13:46:41]OFD Sender: No OFD packet to send [13:46:46]OFD Sender: No OFD packet to send [13:46:51]OFD Sender: No OFD packet to send [13:46:56]OFD Sender: No OFD packet to send [13:47:01]OFD Sender: No OFD packet to send [13:47:06]OFD Sender: No OFD packet to send [13:47:11]OFD Sender: No OFD packet to send [13:47:16]OFD Sender: No OFD packet to send [13:47:16]accept exits with 8 [13:47:16]New connection [13:47:16]New thread 3067157860 created [13:47:16]Thread 3067014500 joined [13:47:16]Waiting for new connection... [13:47:16] Sock 8.Parse request [13:47:16]Sock 8.Check first char [13:47:16]Sock 8.First char is OK [13:47:16]request: POST /json_proto HTTP/1.0 [13:47:16]Method: POST [13:47:16]URL: /json_proto [13:47:16]Method is POST - this is cgi request [13:47:16]url: /json_proto [13:47:16]query_string will be loaded in cgi processing [13:47:16]execute_cgi json_proto POST (null) [13:47:16]execute_cgi path=json_proto method=POST [13:47:16]POST find Content-Length [13:47:16]Host: 172.17.42.131:8080 [13:47:16]Content-Length: 678 [13:47:16]Content-Type: application/json [13:47:16] [13:47:16]POST finish read [13:47:16]Found Content-Length = 678 [13:47:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209800", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:47:16]execute_script... [13:47: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)209800", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:47:16]POST & json_proto [13:47:16]process_json_proto [13:47:16]json parsed OK: [13:47:16]protocol is kg_v1.0 [13:47:16]action value=close_receipt [13:47:16]process_action close_receipt [13:47:16]cmd_close_receipt [13:47:16]MH_GetDate [13:47:16]Write to MH i2c: F0 00 00 61 5C AC [13:47:16]Write i2c OK [13:47:16]MH_I2C_Read... [13:47:16]Read from MH i2c: F0 [13:47:16]MH_I2C_Read... [13:47:16]Read from MH i2c: F0 09 00 [13:47:16]MH_I2C_Read... [13:47:16]Read from MH i2c: F0 09 00 61 5C 00 69 5B 16 67 A0 18 CA 66 DE [13:47:16]GetLastDocTimeStamp 1729518196 [13:47:16]current date 1729518441 [13:47:16]FM_GetShiftState [13:47:16]SAM_PROTO_GetShiftState [13:47:16]wFMCommunicate request_size=4 [13:47:16]MH_SAM_APDU [13:47:16]CAPDU: 80 13 01 00 [13:47:16]Write to MH i2c: E2 08 00 62 5C 80 13 01 00 00 00 00 00 3B [13:47:16]Write i2c OK [13:47:16]MH_I2C_Read... [13:47:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:47:16]Read from MH i2c: E2 [13:47:16]MH_I2C_Read... [13:47:16]Read from MH i2c: E2 0E 00 [13:47:16]MH_I2C_Read... [13:47:16]Read from MH i2c: E2 0E 00 62 5C 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 9A [13:47:16]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [13:47:16]wFMCommunicate OK [13:47:16]SAM_PROTO_GetShiftState done [13:47:16]FM_GetShiftState done [13:47:16]opened in 1729469754 [13:47:16]opened+sec_in_day 1729556154 [13:47:16]quantity*price = 70044 [13:47:16]sum+1 = 70045 [13:47:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 212 21.10.2024 13:47 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 187748 ФПД: 115076598792857 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T134721&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187748&fm=115076598792857&tin=02508201610067®Number=0000000000100030&sum=70000 [13:47:18]StoreToDocumentArchive [13:47:18]shift 460 fd 187748 [13:47:18]save to /storage/0460/doc_00187748 [13:47:18]save last doc name /storage/0460/doc_00187748 to /storage/kkm_last_doc_name [13:47:18]save OK [13:47:18]Clear old archive folders... [13:47:18]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:47:18]tlvbuf is 011F1610 [13:47:18]SAM_PROTO_ClearQueue [13:47:18]wFMCommunicate request_size=4 [13:47:18]MH_SAM_APDU [13:47:18]CAPDU: 80 09 00 00 [13:47:18]Write to MH i2c: E2 08 00 6F 5C 80 09 00 00 00 00 00 00 3D [13:47:18]Write i2c OK [13:47:18]MH_I2C_Read... [13:47:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:47:18]Read from MH i2c: E2 [13:47:18]MH_I2C_Read... [13:47:18]Read from MH i2c: E2 03 00 [13:47:18]MH_I2C_Read... [13:47:18]Read from MH i2c: E2 03 00 6F 5C 00 90 00 3F [13:47:18]RAPDU: 90 00 [13:47:18]wFMCommunicate OK [13:47:18]SAM_PROTO_ClearQueue done [13:47:18]KKMCreateOFDPacket [13:47:18]OFDProtocolAddRootSTLVToBuf [13:47:18]FM_MakeSignedData [13:47:18]FM_MakeSignedData [13:47:18]SAM_PROTO_SignData [13:47:18]wFMCommunicate request_size=4 [13:47:18]MH_SAM_APDU [13:47:18]CAPDU: 80 0D 01 02 [13:47:18]Write to MH i2c: E2 08 00 70 5C 80 0D 01 02 00 00 00 00 45 [13:47:18]Write i2c OK [13:47:18]MH_I2C_Read... [13:47:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:47:18]Read from MH i2c: E2 [13:47:18]MH_I2C_Read... [13:47:18]Read from MH i2c: E2 03 00 [13:47:18]MH_I2C_Read... [13:47:18]Read from MH i2c: E2 03 00 70 5C 00 90 00 40 [13:47:18]RAPDU: 90 00 [13:47:18]wFMCommunicate OK [13:47:18]wFMCommunicate request_size=255 [13:47:18]MH_SAM_APDU [13:47: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 33 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 D4 00 00 00 F4 03 04 00 69 5B 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 64 DD 02 00 35 04 06 00 68 [13:47:18]Write to MH i2c: E2 02 01 71 5C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 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 D4 00 00 00 F4 03 04 00 69 5B 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 64 DD 02 00 35 04 06 00 68 00 00 55 [13:47:18]Write i2c OK [13:47:18]MH_I2C_Read... [13:47:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:47:18]Read from MH i2c: E2 [13:47:18]MH_I2C_Read... [13:47:18]Read from MH i2c: E2 03 00 [13:47:18]MH_I2C_Read... [13:47:18]Read from MH i2c: E2 03 00 71 5C 00 90 00 41 [13:47:18]RAPDU: 90 00 [13:47:18]wFMCommunicate OK [13:47:18]wFMCommunicate request_size=10 [13:47:18]MH_SAM_APDU [13:47:18]CAPDU: 80 0D 02 02 05 A9 5B CB 02 99 [13:47:18]Write to MH i2c: E2 0D 00 72 5C 80 0D 02 02 05 00 A9 5B CB 02 99 00 00 BC [13:47:18]Write i2c OK [13:47:18]MH_I2C_Read... [13:47:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:47:18]Read from MH i2c: E2 [13:47:18]MH_I2C_Read... [13:47:18]Read from MH i2c: E2 03 00 [13:47:18]MH_I2C_Read... [13:47:18]Read from MH i2c: E2 03 00 72 5C 00 90 00 42 [13:47:18]RAPDU: 90 00 [13:47:18]wFMCommunicate OK [13:47:18]wFMCommunicate request_size=4 [13:47:18]MH_SAM_APDU [13:47:18]CAPDU: 80 0D 03 02 [13:47:18]Write to MH i2c: E2 08 00 73 5C 80 0D 03 02 00 00 00 00 4A [13:47:18]Write i2c OK [13:47:18]MH_I2C_Read... [13:47:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:47:18]Read from MH i2c: E2 [13:47:18]MH_I2C_Read... [13:47:18]Read from MH i2c: E2 0B 00 [13:47:18]MH_I2C_Read... [13:47:18]Read from MH i2c: E2 0B 00 73 5C 00 7F 28 63 B3 95 63 15 6A 90 00 7F [13:47:18]RAPDU: 7F 28 63 B3 95 63 15 6A 90 00 [13:47:18]wFMCommunicate OK [13:47:18]SAM_PROTO_SignData done [13:47:18]FM_MakeSignedData done [13:47:18]CreateOFDProtocolMessage [13:47:18]wFMCommunicate request_size=4 [13:47:18]MH_SAM_APDU [13:47:18]CAPDU: 80 11 00 00 [13:47:18]Write to MH i2c: E2 08 00 74 5C 80 11 00 00 00 00 00 00 4A [13:47:18]Write i2c OK [13:47:18]MH_I2C_Read... [13:47:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:47:18]Read from MH i2c: E2 [13:47:18]MH_I2C_Read... [13:47:18]Read from MH i2c: E2 17 00 [13:47:18]MH_I2C_Read... [13:47:18]Read from MH i2c: E2 17 00 74 5C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 98 [13:47:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [13:47:18]wFMCommunicate OK [13:47:18]CreateOFDProtocolMessage done [13:47:18]OFDSenderStorePacket 187748 [13:47:18]StoreOFDPacket docnum=187748 [13:47:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 17 29 07 01 F5 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 33 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 D4 00 00 00 F4 03 04 00 69 5B 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 64 DD 02 00 35 04 06 00 68 A9 5B CB 02 99 7F 28 63 B3 95 63 15 6A [13:47:18]CheckFolder [13:47:18]dirname=/storage/ofd_packets [13:47:18]CheckFolder done [13:47:18]ProducePacketName [13:47:18]name=ofd_packets/00187748 [13:47:18]NVStorageSaveData ofd_packets/00187748 [13:47:18]File name is /storage/ofd_packets/00187748 [13:47:18]Write 301 bytes [13:47:18]NVStorageSaveData done [13:47:18]OFDSenderStorePacket done [13:47:18]KKMCreateOFDPacket done [13:47:18]NVStorageSaveData kkm_last_timestamp [13:47:18]File name is /storage/kkm_last_timestamp [13:47:18]Write 4 bytes [13:47:18]NVStorageSaveData done [13:47:18]ExternCall_PrintAddStr [13:47:18]wPrintStart [13:47:18]Write to MH i2c: 01 00 00 75 5C D1 [13:47:18]Write i2c OK [13:47:18]MH_I2C_Read... [13:47:18]Read from MH i2c: 01 [13:47:18]MH_I2C_Read... [13:47:18]Read from MH i2c: 01 07 00 [13:47:18]MH_I2C_Read... [13:47:18]Read from MH i2c: 01 07 00 75 5C 00 00 00 00 00 FF 0F E6 [13:47:18]RasterBufferAndPrint [13:47:18]line Счет N : (1)209800 [13:47:18]line ИНН: 02508201610067 [13:47:18]line Контрольно-Кассовый Чек [13:47:18]line ПРОДАЖА [13:47:18]line ТРК (МРК, ГНК) : 42 [13:47:18]line Товар: 2710124130 [13:47:18]line Аи-92-К-3 [13:47:18]line 10.470 * 66.90 [13:47:18]line = 700.44 [13:47:18]line НДС 12% НСП 1% [13:47:18]line > о реализуемом товаре [13:47:18]line ОКРУГЛЕНИЕ: -0.44 [13:47:18]line ИТОГО: 700.00 [13:47:18]line Внесено: 700.00 [13:47:18]line СДАЧА: 0.00 [13:47:18]line НСП 1% : 6.20 [13:47:18]line НДС 12% : 74.38 [13:47:18]line Наличными: 700.00 [13:47:18]line Безнал.: 0.00 [13:47:18]line Место: АЗС № 86 "Партнер Нефть" [13:47:18]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [13:47:18]line СНО: Общий режим [13:47:18]line Чек 212 21.10.2024 13:47 [13:47:18]line Смена: 460 ФФД: 1.0 [13:47:18]line ЗНМ: 0300000155 [13:47:18]line РНМ: 0000000000100030 [13:47:18]line Версия ККМ: 001 [13:47:18]line ФМ: 0000000000965340 [13:47:18]line ФД: 187748 [13:47:18]line ФПД: 115076598792857 [13:47:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T134721&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187748&fm=115076598792857&tin=02508201610067®Number=0000000000100030&sum=70000 [13:47:18]OFD Sender: Processing packet 187748 [packets to send 1062, broken 1061] [13:47:18]ProducePacketName [13:47:18]name=ofd_packets/00187748 [13:47:18]OFD Sender: To server: pG, [13:47:18]CommunicateWithHost lk.salyk.kg:30040 [13:47:18]ConnectInit lk.salyk.kg [13:47:18]written 0, free lines is 4095 [13:47:19]Connected sock=11 [13:47:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 17 29 07 01 F5 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 33 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 D4 00 00 00 F4 03 04 00 69 5B 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 64 DD 02 00 35 04 06 00 68 A9 5B CB 02 99 7F 28 63 B3 95 63 15 6A [13:47:19]Write to MH i2c: 01 00 00 A0 5C FC [13:47:19]Write i2c OK [13:47:19]MH_I2C_Read... [13:47:19]Read from MH i2c: 01 [13:47:19]MH_I2C_Read... [13:47:19]Read from MH i2c: 01 07 00 [13:47:19]MH_I2C_Read... [13:47:19]Read from MH i2c: 01 07 00 A0 5C 00 00 00 00 00 6D 0C 7C [13:47:19]RasterBufferAndPrint [13:47:19]line [13:47:19]line [13:47:19]line [13:47:19]line [13:47:19]line [13:47:19]written 0, free lines is 3184 [13:47:19]MH_Cut [13:47:19]Write to MH i2c: D1 01 00 A7 5C 01 D5 [13:47:19]Write i2c OK [13:47:19]MH_I2C_Read... [13:47:19]Read from MH i2c: D1 [13:47:19]MH_I2C_Read... [13:47:19]Read from MH i2c: D1 01 00 [13:47:19]MH_I2C_Read... [13:47:19]Read from MH i2c: D1 01 00 A7 5C 00 D4 [13:47:19]Write to MH i2c: 01 00 00 A8 5C 04 [13:47:19]Write i2c OK [13:47:19]MH_I2C_Read... [13:47:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 FE 9A 47 00 CC 9B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 64 DD 02 00 F4 03 04 00 58 05 16 67 B6 04 01 00 00 96 0E 7B 2F 79 8D 55 CC [13:47:19]CommunicateWithHost err = 0 [13:47:19]CheckOFDResponse [13:47:19]1017 (14) - 77093643461234 [13:47:19]1041 (16) - 0000000000965340 [13:47:19]1040 (4) - 187748 [13:47:19]1012 (4) - 21.10.2024 07:40 [13:47:19]1206 (1) - 0 [13:47:19]OFD Sender: Remove packet 187748 [13:47:19]ProducePacketName [13:47:19]name=ofd_packets/00187748 [13:47:19]NVStorageDeleteData [13:47:19]OFD Sender: No OFD packet to send [13:47:20]*** Cut start [13:47:20]*** Partial cut [13:47:20]*** CUTSNS_PIN = 1 [13:47:20]*** CUTSNS_PIN = 0 [13:47:20]*** Brake cut motor [13:47:20]Read from MH i2c: 01 [13:47:20]MH_I2C_Read... [13:47:20]*** Stop cut motor [13:47:20]*** Cut end [13:47:20]Read from MH i2c: 01 07 00 [13:47:20]MH_I2C_Read... [13:47:20]Read from MH i2c: 01 07 00 A8 5C 00 00 00 00 00 FF 0F 19 [13:47:20]process_action close_receipt done [13:47:20]requested_data is exist [13:47:20]produce_requested_data [13:47:20]requested_item fm.sn is exist - process it [13:47:20]wFMCommunicate request_size=4 [13:47:20]MH_SAM_APDU [13:47:20]CAPDU: 80 11 00 00 [13:47:20]Write to MH i2c: E2 08 00 A9 5C 80 11 00 00 00 00 00 00 7F [13:47:20]Write i2c OK [13:47:20]MH_I2C_Read... [13:47:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:47:20]Read from MH i2c: E2 [13:47:20]MH_I2C_Read... [13:47:20]Read from MH i2c: E2 17 00 [13:47:20]MH_I2C_Read... [13:47:20]Read from MH i2c: E2 17 00 A9 5C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 CD [13:47:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [13:47:20]wFMCommunicate OK [13:47:20]requested_item fd.num is exist - process it [13:47:20]SAM_PROTO_GetFieldsCounters [13:47:20]wFMCommunicate request_size=4 [13:47:20]MH_SAM_APDU [13:47:20]CAPDU: 80 13 00 00 [13:47:20]Write to MH i2c: E2 08 00 AA 5C 80 13 00 00 00 00 00 00 82 [13:47:20]Write i2c OK [13:47:20]MH_I2C_Read... [13:47:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:47:21]Read from MH i2c: E2 [13:47:21]MH_I2C_Read... [13:47:21]Read from MH i2c: E2 62 00 [13:47:21]MH_I2C_Read... [13:47:21]Read from MH i2c: E2 62 00 AA 5C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 64 DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 D4 00 00 00 5E 04 04 00 D4 00 00 00 57 04 04 00 D5 00 00 00 19 04 04 00 00 00 00 00 90 00 15 [13:47:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 64 DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 D4 00 00 00 5E 04 04 00 D4 00 00 00 57 04 04 00 D5 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:47:21]wFMCommunicate OK [13:47:21]SAM_PROTO_GetFieldsCounters done [13:47:21]requested_item shift.num is exist - process it [13:47:21]requested_item shift.opened is exist - process it [13:47:21]req_shift_opened [13:47:21]FM_GetShiftState [13:47:21]SAM_PROTO_GetShiftState [13:47:21]wFMCommunicate request_size=4 [13:47:21]MH_SAM_APDU [13:47:21]CAPDU: 80 13 01 00 [13:47:21]Write to MH i2c: E2 08 00 AB 5C 80 13 01 00 00 00 00 00 84 [13:47:21]Write i2c OK [13:47:21]MH_I2C_Read... [13:47:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:47:21]Read from MH i2c: E2 [13:47:21]MH_I2C_Read... [13:47:21]Read from MH i2c: E2 0E 00 [13:47:21]MH_I2C_Read... [13:47:21]Read from MH i2c: E2 0E 00 AB 5C 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 E3 [13:47:21]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [13:47:21]wFMCommunicate OK [13:47:21]SAM_PROTO_GetShiftState done [13:47:21]FM_GetShiftState done [13:47:21]req_shift_opened done [13:47:21]requested_item shift.open_date is exist - process it [13:47:21]req_shift_open_date [13:47:21]req_shift_open_date done [13:47:21]produce_requested_data done [13:47:21]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187748,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [13:47:21]process_action_free close_receipt [13:47:21]json_value_free [13:47:21]json_value_free done [13:47:21]process_json_proto returns [13:47:21]Send response to host [13:47:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187748,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [13:47:21]free response buf [13:47:21]execute_script done [13:47:21]execute_script returns [13:47:21]free content buf [13:47:21]Sock 8.Close socket [13:47:21]Sock 8.Thread stoped [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:16]OFD Sender: No OFD packet to send [13:51:21]OFD Sender: No OFD packet to send [13:51:26]OFD Sender: No OFD packet to send [13:51:31]OFD Sender: No OFD packet to send [13:51:36]OFD Sender: No OFD packet to send [13:51:41]OFD Sender: No OFD packet to send [13:51:46]OFD Sender: No OFD packet to send [13:51:51]OFD Sender: No OFD packet to send [13:51:56]OFD Sender: No OFD packet to send [13:52:01]OFD Sender: No OFD packet to send [13:52:06]OFD Sender: No OFD packet to send [13:52:11]OFD Sender: No OFD packet to send [13:52:16]OFD Sender: No OFD packet to send [13:52:21]OFD Sender: No OFD packet to send [13:52:26]OFD Sender: No OFD packet to send [13:52:31]OFD Sender: No OFD packet to send [13:52:34]accept exits with 9 [13:52:34]New connection [13:52:34]New thread 3067014500 created [13:52:34]Thread 3067157860 joined [13:52:34]Waiting for new connection... [13:52:34] Sock 9.Parse request [13:52:34]Sock 9.Check first char [13:52:34]Sock 9.First char is OK [13:52:34]request: POST /json_proto HTTP/1.0 [13:52:34]Method: POST [13:52:34]URL: /json_proto [13:52:34]Method is POST - this is cgi request [13:52:34]url: /json_proto [13:52:34]query_string will be loaded in cgi processing [13:52:34]execute_cgi json_proto POST (null) [13:52:34]execute_cgi path=json_proto method=POST [13:52:34]POST find Content-Length [13:52:34]Host: 172.17.42.131:8080 [13:52:34]Content-Length: 800 [13:52:34]Content-Type: application/json [13:52:34] [13:52:34]POST finish read [13:52:34]Found Content-Length = 800 [13:52:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209801", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 52.500, "sum" : 4000.50, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: 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" ] } } [13:52:34]execute_script... [13:52:34]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209801", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 52.500, "sum" : 4000.50, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: 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" ] } } [13:52:34]POST & json_proto [13:52:34]process_json_proto [13:52:34]json parsed OK: [13:52:34]protocol is kg_v1.0 [13:52:34]action value=close_receipt [13:52:34]process_action close_receipt [13:52:34]cmd_close_receipt [13:52:34]MH_GetDate [13:52:34]Write to MH i2c: F0 00 00 AC 5C F7 [13:52:34]Write i2c OK [13:52:34]MH_I2C_Read... [13:52:34]Read from MH i2c: F0 [13:52:34]MH_I2C_Read... [13:52:34]Read from MH i2c: F0 09 00 [13:52:34]MH_I2C_Read... [13:52:34]Read from MH i2c: F0 09 00 AC 5C 00 A7 5C 16 67 A0 18 CA 66 68 [13:52:34]GetLastDocTimeStamp 1729518441 [13:52:34]current date 1729518759 [13:52:34]FM_GetShiftState [13:52:34]SAM_PROTO_GetShiftState [13:52:34]wFMCommunicate request_size=4 [13:52:34]MH_SAM_APDU [13:52:34]CAPDU: 80 13 01 00 [13:52:34]Write to MH i2c: E2 08 00 AD 5C 80 13 01 00 00 00 00 00 86 [13:52:34]Write i2c OK [13:52:34]MH_I2C_Read... [13:52:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:52:35]Read from MH i2c: E2 [13:52:35]MH_I2C_Read... [13:52:35]Read from MH i2c: E2 0E 00 [13:52:35]MH_I2C_Read... [13:52:35]Read from MH i2c: E2 0E 00 AD 5C 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 E5 [13:52:35]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [13:52:35]wFMCommunicate OK [13:52:35]SAM_PROTO_GetShiftState done [13:52:35]FM_GetShiftState done [13:52:35]opened in 1729469754 [13:52:35]opened+sec_in_day 1729556154 [13:52:35]quantity*price = 400050 [13:52:35]sum+1 = 400051 [13:52:35]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 4000.50 НСП 1% : 35.40 НДС 12% : 424.83 Наличными: 0.00 Безнал.: 4000.50 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 213 21.10.2024 13:52 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000965340 ФД: 187749 ФПД: 22664496313149 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T135239&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187749&fm=22664496313149&tin=02508201610067®Number=0000000000100030&sum=400050 [13:52:36]StoreToDocumentArchive [13:52:36]shift 460 fd 187749 [13:52:36]save to /storage/0460/doc_00187749 [13:52:36]save last doc name /storage/0460/doc_00187749 to /storage/kkm_last_doc_name [13:52:36]save OK [13:52:36]Clear old archive folders... [13:52:36]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:52:36]tlvbuf is 011F1230 [13:52:36]SAM_PROTO_ClearQueue [13:52:36]wFMCommunicate request_size=4 [13:52:36]MH_SAM_APDU [13:52:36]CAPDU: 80 09 00 00 [13:52:36]Write to MH i2c: E2 08 00 BA 5C 80 09 00 00 00 00 00 00 88 [13:52:36]Write i2c OK [13:52:36]MH_I2C_Read... [13:52:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:52:36]Read from MH i2c: E2 [13:52:36]MH_I2C_Read... [13:52:36]Read from MH i2c: E2 03 00 [13:52:36]MH_I2C_Read... [13:52:36]Read from MH i2c: E2 03 00 BA 5C 00 90 00 8A [13:52:36]RAPDU: 90 00 [13:52:36]wFMCommunicate OK [13:52:36]SAM_PROTO_ClearQueue done [13:52:36]KKMCreateOFDPacket [13:52:36]OFDProtocolAddRootSTLVToBuf [13:52:36]FM_MakeSignedData [13:52:36]FM_MakeSignedData [13:52:36]SAM_PROTO_SignData [13:52:36]wFMCommunicate request_size=4 [13:52:36]MH_SAM_APDU [13:52:36]CAPDU: 80 0D 01 02 [13:52:36]Write to MH i2c: E2 08 00 BB 5C 80 0D 01 02 00 00 00 00 90 [13:52:36]Write i2c OK [13:52:36]MH_I2C_Read... [13:52:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:52:36]Read from MH i2c: E2 [13:52:36]MH_I2C_Read... [13:52:36]Read from MH i2c: E2 03 00 [13:52:36]MH_I2C_Read... [13:52:36]Read from MH i2c: E2 03 00 BB 5C 00 90 00 8B [13:52:36]RAPDU: 90 00 [13:52:36]wFMCommunicate OK [13:52:36]wFMCommunicate request_size=255 [13:52:36]MH_SAM_APDU [13:52:36]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 D5 00 00 00 F4 03 04 00 A7 5C 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 65 DD 02 00 35 04 06 00 14 9C FD 40 [13:52:36]Write to MH i2c: E2 02 01 BC 5C 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 D5 00 00 00 F4 03 04 00 A7 5C 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 65 DD 02 00 35 04 06 00 14 9C FD 40 00 00 D7 [13:52:36]Write i2c OK [13:52:36]MH_I2C_Read... [13:52:36]OFD Sender: No OFD packet to send [13:52:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:52:36]Read from MH i2c: E2 [13:52:36]MH_I2C_Read... [13:52:36]Read from MH i2c: E2 03 00 [13:52:36]MH_I2C_Read... [13:52:36]Read from MH i2c: E2 03 00 BC 5C 00 90 00 8C [13:52:36]RAPDU: 90 00 [13:52:36]wFMCommunicate OK [13:52:36]wFMCommunicate request_size=7 [13:52:36]MH_SAM_APDU [13:52:36]CAPDU: 80 0D 02 02 02 73 3D [13:52:36]Write to MH i2c: E2 0A 00 BD 5C 80 0D 02 02 02 00 73 3D 00 00 47 [13:52:36]Write i2c OK [13:52:36]MH_I2C_Read... [13:52:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:52:36]Read from MH i2c: E2 [13:52:36]MH_I2C_Read... [13:52:36]Read from MH i2c: E2 03 00 [13:52:36]MH_I2C_Read... [13:52:36]Read from MH i2c: E2 03 00 BD 5C 00 90 00 8D [13:52:36]RAPDU: 90 00 [13:52:36]wFMCommunicate OK [13:52:36]wFMCommunicate request_size=4 [13:52:36]MH_SAM_APDU [13:52:36]CAPDU: 80 0D 03 02 [13:52:36]Write to MH i2c: E2 08 00 BE 5C 80 0D 03 02 00 00 00 00 95 [13:52:36]Write i2c OK [13:52:36]MH_I2C_Read... [13:52:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:52:36]Read from MH i2c: E2 [13:52:36]MH_I2C_Read... [13:52:36]Read from MH i2c: E2 0B 00 [13:52:36]MH_I2C_Read... [13:52:36]Read from MH i2c: E2 0B 00 BE 5C 00 E1 A1 CA 75 30 27 28 7D 90 00 53 [13:52:36]RAPDU: E1 A1 CA 75 30 27 28 7D 90 00 [13:52:36]wFMCommunicate OK [13:52:36]SAM_PROTO_SignData done [13:52:36]FM_MakeSignedData done [13:52:36]CreateOFDProtocolMessage [13:52:36]wFMCommunicate request_size=4 [13:52:36]MH_SAM_APDU [13:52:36]CAPDU: 80 11 00 00 [13:52:36]Write to MH i2c: E2 08 00 BF 5C 80 11 00 00 00 00 00 00 95 [13:52:36]Write i2c OK [13:52:36]MH_I2C_Read... [13:52:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:52:36]Read from MH i2c: E2 [13:52:36]MH_I2C_Read... [13:52:36]Read from MH i2c: E2 17 00 [13:52:36]MH_I2C_Read... [13:52:36]Read from MH i2c: E2 17 00 BF 5C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 E3 [13:52:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [13:52:36]wFMCommunicate OK [13:52:36]CreateOFDProtocolMessage done [13:52:36]OFDSenderStorePacket 187749 [13:52:36]StoreOFDPacket docnum=187749 [13:52:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 71 6D 04 01 8B B4 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 D5 00 00 00 F4 03 04 00 A7 5C 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 65 DD 02 00 35 04 06 00 14 9C FD 40 73 3D E1 A1 CA 75 30 27 28 7D [13:52:36]CheckFolder [13:52:36]dirname=/storage/ofd_packets [13:52:36]CheckFolder done [13:52:36]ProducePacketName [13:52:36]name=ofd_packets/00187749 [13:52:36]NVStorageSaveData ofd_packets/00187749 [13:52:36]File name is /storage/ofd_packets/00187749 [13:52:36]Write 298 bytes [13:52:36]NVStorageSaveData done [13:52:36]OFDSenderStorePacket done [13:52:36]KKMCreateOFDPacket done [13:52:36]NVStorageSaveData kkm_last_timestamp [13:52:36]File name is /storage/kkm_last_timestamp [13:52:36]Write 4 bytes [13:52:36]NVStorageSaveData done [13:52:36]ExternCall_PrintAddStr [13:52:36]wPrintStart [13:52:36]Write to MH i2c: 01 00 00 C0 5C 1C [13:52:36]Write i2c OK [13:52:36]MH_I2C_Read... [13:52:36]Read from MH i2c: 01 [13:52:36]MH_I2C_Read... [13:52:36]Read from MH i2c: 01 07 00 [13:52:36]MH_I2C_Read... [13:52:36]Read from MH i2c: 01 07 00 C0 5C 00 00 00 00 00 FF 0F 31 [13:52:36]RasterBufferAndPrint [13:52:36]line Счет N : (1)209801 [13:52:36]line ИНН: 02508201610067 [13:52:36]line Контрольно-Кассовый Чек [13:52:36]line ПРОДАЖА [13:52:36]line ТРК (МРК, ГНК) : 51 [13:52:36]line Товар: 2710194210 [13:52:36]line ДТ-К-5 [13:52:36]line 52.500 * 76.20 [13:52:36]line = 4000.50 [13:52:36]line НДС 12% НСП 1% [13:52:36]line > о реализуемом товаре [13:52:36]line ИТОГО: 4000.50 [13:52:36]line НСП 1% : 35.40 [13:52:36]line НДС 12% : 424.83 [13:52:36]line Наличными: 0.00 [13:52:36]line Безнал.: 4000.50 [13:52:36]line Место: АЗС № 86 "Партнер Нефть" [13:52:36]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [13:52:36]line СНО: Общий режим [13:52:36]line Чек 213 21.10.2024 13:52 [13:52:36]line Смена: 460 ФФД: 1.0 [13:52:36]line ЗНМ: 0300000155 [13:52:36]line РНМ: 0000000000100030 [13:52:36]line Версия ККМ: 001 [13:52:36]line Платежная система: O! деньги [13:52:36]line ФМ: 0000000000965340 [13:52:36]line ФД: 187749 [13:52:36]line ФПД: 22664496313149 [13:52:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T135239&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187749&fm=22664496313149&tin=02508201610067®Number=0000000000100030&sum=400050 [13:52:36]written 0, free lines is 4095 [13:52:36]OFD Sender: Processing packet 187749 [packets to send 1062, broken 1061] [13:52:36]ProducePacketName [13:52:36]name=ofd_packets/00187749 [13:52:36]OFD Sender: To server: pG, [13:52:36]CommunicateWithHost lk.salyk.kg:30040 [13:52:36]ConnectInit lk.salyk.kg [13:52:37]Connected sock=10 [13:52:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 71 6D 04 01 8B B4 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 D5 00 00 00 F4 03 04 00 A7 5C 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 65 DD 02 00 35 04 06 00 14 9C FD 40 73 3D E1 A1 CA 75 30 27 28 7D [13:52:37]Write to MH i2c: 01 00 00 EA 5C 46 [13:52:37]Write i2c OK [13:52:37]MH_I2C_Read... [13:52:37]Read from MH i2c: 01 [13:52:37]MH_I2C_Read... [13:52:37]Read from MH i2c: 01 07 00 [13:52:37]MH_I2C_Read... [13:52:37]Read from MH i2c: 01 07 00 EA 5C 00 00 00 00 00 77 0C D0 [13:52:37]RasterBufferAndPrint [13:52:37]line [13:52:37]line [13:52:37]line [13:52:37]line [13:52:37]line [13:52:37]written 0, free lines is 3196 [13:52:37]MH_Cut [13:52:37]Write to MH i2c: D1 01 00 F1 5C 01 1F [13:52:37]Write i2c OK [13:52:37]MH_I2C_Read... [13:52:37]Read from MH i2c: D1 [13:52:37]MH_I2C_Read... [13:52:37]Read from MH i2c: D1 01 00 [13:52:37]MH_I2C_Read... [13:52:37]Read from MH i2c: D1 01 00 F1 5C 00 1E [13:52:37]Write to MH i2c: 01 00 00 F2 5C 4E [13:52:37]Write i2c OK [13:52:37]MH_I2C_Read... [13:52:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 50 5D 47 00 11 95 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 65 DD 02 00 F4 03 04 00 96 06 16 67 B6 04 01 00 00 69 5B 08 CC 5B 72 F0 43 [13:52:37]CommunicateWithHost err = 0 [13:52:37]CheckOFDResponse [13:52:37]1017 (14) - 77093643461234 [13:52:37]1041 (16) - 0000000000965340 [13:52:37]1040 (4) - 187749 [13:52:37]1012 (4) - 21.10.2024 07:45 [13:52:37]1206 (1) - 0 [13:52:37]OFD Sender: Remove packet 187749 [13:52:37]ProducePacketName [13:52:37]name=ofd_packets/00187749 [13:52:37]NVStorageDeleteData [13:52:37]OFD Sender: No OFD packet to send [13:52:38]*** Cut start [13:52:38]*** Partial cut [13:52:38]*** CUTSNS_PIN = 1 [13:52:38]*** CUTSNS_PIN = 0 [13:52:38]*** Brake cut motor [13:52:38]Read from MH i2c: 01 [13:52:38]MH_I2C_Read... [13:52:38]*** Stop cut motor [13:52:38]*** Cut end [13:52:38]Read from MH i2c: 01 07 00 [13:52:38]MH_I2C_Read... [13:52:38]Read from MH i2c: 01 07 00 F2 5C 00 00 00 00 00 FF 0F 63 [13:52:38]process_action close_receipt done [13:52:38]requested_data is exist [13:52:38]produce_requested_data [13:52:38]requested_item fm.sn is exist - process it [13:52:38]wFMCommunicate request_size=4 [13:52:38]MH_SAM_APDU [13:52:38]CAPDU: 80 11 00 00 [13:52:38]Write to MH i2c: E2 08 00 F3 5C 80 11 00 00 00 00 00 00 C9 [13:52:38]Write i2c OK [13:52:38]MH_I2C_Read... [13:52:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:52:39]Read from MH i2c: E2 [13:52:39]MH_I2C_Read... [13:52:39]Read from MH i2c: E2 17 00 [13:52:39]MH_I2C_Read... [13:52:39]Read from MH i2c: E2 17 00 F3 5C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 17 [13:52:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [13:52:39]wFMCommunicate OK [13:52:39]requested_item fd.num is exist - process it [13:52:39]SAM_PROTO_GetFieldsCounters [13:52:39]wFMCommunicate request_size=4 [13:52:39]MH_SAM_APDU [13:52:39]CAPDU: 80 13 00 00 [13:52:39]Write to MH i2c: E2 08 00 F4 5C 80 13 00 00 00 00 00 00 CC [13:52:39]Write i2c OK [13:52:39]MH_I2C_Read... [13:52:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:52:39]Read from MH i2c: E2 [13:52:39]MH_I2C_Read... [13:52:39]Read from MH i2c: E2 62 00 [13:52:39]MH_I2C_Read... [13:52:39]Read from MH i2c: E2 62 00 F4 5C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 65 DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 D5 00 00 00 5E 04 04 00 D5 00 00 00 57 04 04 00 D6 00 00 00 19 04 04 00 00 00 00 00 90 00 63 [13:52:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 65 DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 D5 00 00 00 5E 04 04 00 D5 00 00 00 57 04 04 00 D6 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:52:39]wFMCommunicate OK [13:52:39]SAM_PROTO_GetFieldsCounters done [13:52:39]requested_item shift.num is exist - process it [13:52:39]requested_item shift.opened is exist - process it [13:52:39]req_shift_opened [13:52:39]FM_GetShiftState [13:52:39]SAM_PROTO_GetShiftState [13:52:39]wFMCommunicate request_size=4 [13:52:39]MH_SAM_APDU [13:52:39]CAPDU: 80 13 01 00 [13:52:39]Write to MH i2c: E2 08 00 F5 5C 80 13 01 00 00 00 00 00 CE [13:52:39]Write i2c OK [13:52:39]MH_I2C_Read... [13:52:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:52:39]Read from MH i2c: E2 [13:52:39]MH_I2C_Read... [13:52:39]Read from MH i2c: E2 0E 00 [13:52:39]MH_I2C_Read... [13:52:39]Read from MH i2c: E2 0E 00 F5 5C 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 2D [13:52:39]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [13:52:39]wFMCommunicate OK [13:52:39]SAM_PROTO_GetShiftState done [13:52:39]FM_GetShiftState done [13:52:39]req_shift_opened done [13:52:39]requested_item shift.open_date is exist - process it [13:52:39]req_shift_open_date [13:52:39]req_shift_open_date done [13:52:39]produce_requested_data done [13:52:39]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187749,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [13:52:39]process_action_free close_receipt [13:52:39]json_value_free [13:52:39]json_value_free done [13:52:39]process_json_proto returns [13:52:39]Send response to host [13:52:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187749,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [13:52:39]free response buf [13:52:39]execute_script done [13:52:39]execute_script returns [13:52:39]free content buf [13:52:39]Sock 9.Close socket [13:52:39]Sock 9.Thread stoped [13:52:42]OFD Sender: No OFD packet to send [13:52:47]OFD Sender: No OFD packet to send [13:52:52]OFD Sender: No OFD packet to send [13:52:57]OFD Sender: No OFD packet to send [13:53:03]OFD Sender: No OFD packet to send [13:53:08]OFD Sender: No OFD packet to send [13:53:13]OFD Sender: No OFD packet to send [13:53:18]OFD Sender: No OFD packet to send [13:53:23]OFD Sender: No OFD packet to send [13:53:28]OFD Sender: No OFD packet to send [13:53:33]OFD Sender: No OFD packet to send [13:53:38]OFD Sender: No OFD packet to send [13:53:43]OFD Sender: No OFD packet to send [13:53:48]OFD Sender: No OFD packet to send [13:53:53]OFD Sender: No OFD packet to send [13:53:58]OFD Sender: No OFD packet to send [13:54:03]OFD Sender: No OFD packet to send [13:54:08]OFD Sender: No OFD packet to send [13:54:13]OFD Sender: No OFD packet to send [13:54:18]OFD Sender: No OFD packet to send [13:54:23]OFD Sender: No OFD packet to send [13:54:28]OFD Sender: No OFD packet to send [13:54:33]OFD Sender: No OFD packet to send [13:54:38]OFD Sender: No OFD packet to send [13:54:43]OFD Sender: No OFD packet to send [13:54:48]OFD Sender: No OFD packet to send [13:54:53]OFD Sender: No OFD packet to send [13:54:58]OFD Sender: No OFD packet to send [13:55:03]OFD Sender: No OFD packet to send [13:55:08]OFD Sender: No OFD packet to send [13:55:13]OFD Sender: No OFD packet to send [13:55:18]OFD Sender: No OFD packet to send [13:55:23]OFD Sender: No OFD packet to send [13:55:28]OFD Sender: No OFD packet to send [13:55:33]OFD Sender: No OFD packet to send [13:55:38]OFD Sender: No OFD packet to send [13:55:38]accept exits with 8 [13:55:38]New connection [13:55:38]New thread 3067157860 created [13:55:38]Thread 3067014500 joined [13:55:38]Waiting for new connection... [13:55:38] Sock 8.Parse request [13:55:38]Sock 8.Check first char [13:55:38]Sock 8.First char is OK [13:55:38]request: POST /json_proto HTTP/1.0 [13:55:38]Method: POST [13:55:38]URL: /json_proto [13:55:38]Method is POST - this is cgi request [13:55:38]url: /json_proto [13:55:38]query_string will be loaded in cgi processing [13:55:38]execute_cgi json_proto POST (null) [13:55:38]execute_cgi path=json_proto method=POST [13:55:38]POST find Content-Length [13:55:38]Host: 172.17.42.131:8080 [13:55:38]Content-Length: 983 [13:55:38]Content-Type: application/json [13:55:38] [13:55:38]POST finish read [13:55:38]Found Content-Length = 983 [13:55:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209802", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 65.90, "quantity" : 22.770, "sum" : 1500.54, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0410\u0418-92\u000A\u043D\u043E\u043C\u0435\u0440 86\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 22.77 \u0441\u043E\u043C", "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:55:38]execute_script... [13:55: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)209802", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 65.90, "quantity" : 22.770, "sum" : 1500.54, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0410\u0418-92\u000A\u043D\u043E\u043C\u0435\u0440 86\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 22.77 \u0441\u043E\u043C", "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:55:38]POST & json_proto [13:55:38]process_json_proto [13:55:38]json parsed OK: [13:55:38]protocol is kg_v1.0 [13:55:38]action value=close_receipt [13:55:38]process_action close_receipt [13:55:38]cmd_close_receipt [13:55:38]MH_GetDate [13:55:38]Write to MH i2c: F0 00 00 F6 5C 41 [13:55:38]Write i2c OK [13:55:38]MH_I2C_Read... [13:55:38]Read from MH i2c: F0 [13:55:38]MH_I2C_Read... [13:55:38]Read from MH i2c: F0 09 00 [13:55:38]MH_I2C_Read... [13:55:38]Read from MH i2c: F0 09 00 F6 5C 00 5F 5D 16 67 A0 18 CA 66 6B [13:55:38]GetLastDocTimeStamp 1729518759 [13:55:38]current date 1729518943 [13:55:38]FM_GetShiftState [13:55:38]SAM_PROTO_GetShiftState [13:55:38]wFMCommunicate request_size=4 [13:55:38]MH_SAM_APDU [13:55:38]CAPDU: 80 13 01 00 [13:55:38]Write to MH i2c: E2 08 00 F7 5C 80 13 01 00 00 00 00 00 D0 [13:55:38]Write i2c OK [13:55:38]MH_I2C_Read... [13:55:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:55:38]Read from MH i2c: E2 [13:55:38]MH_I2C_Read... [13:55:38]Read from MH i2c: E2 0E 00 [13:55:38]MH_I2C_Read... [13:55:38]Read from MH i2c: E2 0E 00 F7 5C 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 2F [13:55:38]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [13:55:38]wFMCommunicate OK [13:55:38]SAM_PROTO_GetShiftState done [13:55:38]FM_GetShiftState done [13:55:38]opened in 1729469754 [13:55:38]opened+sec_in_day 1729556154 [13:55:38]quantity*price = 150054 [13:55:38]sum+1 = 150055 [13:55:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.54 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.35 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 214 21.10.2024 13:55 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Дисконтная программа АИ-92 номер 86 сэкономлено 22.77 сом ФМ: 0000000000965340 ФД: 187750 ФПД: 25797577150085 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T135543&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187750&fm=25797577150085&tin=02508201610067®Number=0000000000100030&sum=150000 [13:55:40]StoreToDocumentArchive [13:55:40]shift 460 fd 187750 [13:55:40]save to /storage/0460/doc_00187750 [13:55:40]save last doc name /storage/0460/doc_00187750 to /storage/kkm_last_doc_name [13:55:40]save OK [13:55:40]Clear old archive folders... [13:55:40]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:55:40]tlvbuf is 0118D800 [13:55:40]SAM_PROTO_ClearQueue [13:55:40]wFMCommunicate request_size=4 [13:55:40]MH_SAM_APDU [13:55:40]CAPDU: 80 09 00 00 [13:55:40]Write to MH i2c: E2 08 00 04 5D 80 09 00 00 00 00 00 00 D3 [13:55:40]Write i2c OK [13:55:40]MH_I2C_Read... [13:55:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:55:40]Read from MH i2c: E2 [13:55:40]MH_I2C_Read... [13:55:40]Read from MH i2c: E2 03 00 [13:55:40]MH_I2C_Read... [13:55:40]Read from MH i2c: E2 03 00 04 5D 00 90 00 D5 [13:55:40]RAPDU: 90 00 [13:55:40]wFMCommunicate OK [13:55:40]SAM_PROTO_ClearQueue done [13:55:40]KKMCreateOFDPacket [13:55:40]OFDProtocolAddRootSTLVToBuf [13:55:40]FM_MakeSignedData [13:55:40]FM_MakeSignedData [13:55:40]SAM_PROTO_SignData [13:55:40]wFMCommunicate request_size=4 [13:55:40]MH_SAM_APDU [13:55:40]CAPDU: 80 0D 01 02 [13:55:40]Write to MH i2c: E2 08 00 05 5D 80 0D 01 02 00 00 00 00 DB [13:55:40]Write i2c OK [13:55:40]MH_I2C_Read... [13:55:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:55:40]Read from MH i2c: E2 [13:55:40]MH_I2C_Read... [13:55:40]Read from MH i2c: E2 03 00 [13:55:40]MH_I2C_Read... [13:55:40]Read from MH i2c: E2 03 00 05 5D 00 90 00 D6 [13:55:40]RAPDU: 90 00 [13:55:40]wFMCommunicate OK [13:55:40]wFMCommunicate request_size=255 [13:55:40]MH_SAM_APDU [13:55: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 33 FF 03 08 00 03 F2 58 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 26 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 D6 00 00 00 F4 03 04 00 5F 5D 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 66 DD 02 00 35 04 06 00 17 [13:55:40]Write to MH i2c: E2 02 01 06 5D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 F2 58 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 26 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 D6 00 00 00 F4 03 04 00 5F 5D 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 66 DD 02 00 35 04 06 00 17 00 00 BC [13:55:40]Write i2c OK [13:55:40]MH_I2C_Read... [13:55:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:55:40]Read from MH i2c: E2 [13:55:40]MH_I2C_Read... [13:55:40]Read from MH i2c: E2 03 00 [13:55:40]MH_I2C_Read... [13:55:40]Read from MH i2c: E2 03 00 06 5D 00 90 00 D7 [13:55:40]RAPDU: 90 00 [13:55:40]wFMCommunicate OK [13:55:40]wFMCommunicate request_size=10 [13:55:40]MH_SAM_APDU [13:55:40]CAPDU: 80 0D 02 02 05 76 77 6C 0E 85 [13:55:40]Write to MH i2c: E2 0D 00 07 5D 80 0D 02 02 05 00 76 77 6C 0E 85 00 00 D4 [13:55:40]Write i2c OK [13:55:40]MH_I2C_Read... [13:55:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:55:40]Read from MH i2c: E2 [13:55:40]MH_I2C_Read... [13:55:40]Read from MH i2c: E2 03 00 [13:55:40]MH_I2C_Read... [13:55:40]Read from MH i2c: E2 03 00 07 5D 00 90 00 D8 [13:55:40]RAPDU: 90 00 [13:55:40]wFMCommunicate OK [13:55:40]wFMCommunicate request_size=4 [13:55:40]MH_SAM_APDU [13:55:40]CAPDU: 80 0D 03 02 [13:55:40]Write to MH i2c: E2 08 00 08 5D 80 0D 03 02 00 00 00 00 E0 [13:55:40]Write i2c OK [13:55:40]MH_I2C_Read... [13:55:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:55:40]Read from MH i2c: E2 [13:55:40]MH_I2C_Read... [13:55:40]Read from MH i2c: E2 0B 00 [13:55:40]MH_I2C_Read... [13:55:40]Read from MH i2c: E2 0B 00 08 5D 00 6C E9 76 9A E6 31 BA 9B 90 00 B2 [13:55:40]RAPDU: 6C E9 76 9A E6 31 BA 9B 90 00 [13:55:40]wFMCommunicate OK [13:55:40]SAM_PROTO_SignData done [13:55:40]FM_MakeSignedData done [13:55:40]CreateOFDProtocolMessage [13:55:40]wFMCommunicate request_size=4 [13:55:40]MH_SAM_APDU [13:55:40]CAPDU: 80 11 00 00 [13:55:40]Write to MH i2c: E2 08 00 09 5D 80 11 00 00 00 00 00 00 E0 [13:55:40]Write i2c OK [13:55:40]MH_I2C_Read... [13:55:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:55:40]Read from MH i2c: E2 [13:55:40]MH_I2C_Read... [13:55:40]Read from MH i2c: E2 17 00 [13:55:40]MH_I2C_Read... [13:55:40]Read from MH i2c: E2 17 00 09 5D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 2E [13:55:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [13:55:40]wFMCommunicate OK [13:55:40]CreateOFDProtocolMessage done [13:55:40]OFDSenderStorePacket 187750 [13:55:40]StoreOFDPacket docnum=187750 [13:55:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 AF 8C 07 01 24 53 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 F2 58 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 26 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 D6 00 00 00 F4 03 04 00 5F 5D 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 66 DD 02 00 35 04 06 00 17 76 77 6C 0E 85 6C E9 76 9A E6 31 BA 9B [13:55:40]CheckFolder [13:55:40]dirname=/storage/ofd_packets [13:55:40]CheckFolder done [13:55:40]ProducePacketName [13:55:40]name=ofd_packets/00187750 [13:55:40]NVStorageSaveData ofd_packets/00187750 [13:55:40]File name is /storage/ofd_packets/00187750 [13:55:40]Write 301 bytes [13:55:40]NVStorageSaveData done [13:55:40]OFDSenderStorePacket done [13:55:40]KKMCreateOFDPacket done [13:55:40]NVStorageSaveData kkm_last_timestamp [13:55:40]File name is /storage/kkm_last_timestamp [13:55:40]Write 4 bytes [13:55:40]NVStorageSaveData done [13:55:40]ExternCall_PrintAddStr [13:55:40]wPrintStart [13:55:40]Write to MH i2c: 01 00 00 0A 5D 67 [13:55:40]Write i2c OK [13:55:40]MH_I2C_Read... [13:55:40]Read from MH i2c: 01 [13:55:40]MH_I2C_Read... [13:55:40]Read from MH i2c: 01 07 00 [13:55:40]MH_I2C_Read... [13:55:40]Read from MH i2c: 01 07 00 0A 5D 00 00 00 00 00 FF 0F 7C [13:55:40]RasterBufferAndPrint [13:55:40]line Счет N : (1)209802 [13:55:40]line ИНН: 02508201610067 [13:55:40]line Контрольно-Кассовый Чек [13:55:40]line ПРОДАЖА [13:55:40]line ТРК (МРК, ГНК) : 32 [13:55:40]line Товар: 2710124130 [13:55:40]line Аи-92-К-3 [13:55:40]line 22.770 * 65.90 [13:55:40]line = 1500.54 [13:55:40]line НДС 12% НСП 1% [13:55:40]line > о реализуемом товаре [13:55:40]line ОКРУГЛЕНИЕ: -0.54 [13:55:40]line ИТОГО: 1500.00 [13:55:40]line Внесено: 1500.00 [13:55:40]line СДАЧА: 0.00 [13:55:40]line НСП 1% : 13.28 [13:55:40]line НДС 12% : 159.35 [13:55:40]line Наличными: 1500.00 [13:55:40]line Безнал.: 0.00 [13:55:40]line Место: АЗС № 86 "Партнер Нефть" [13:55:40]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [13:55:40]line СНО: Общий режим [13:55:40]line Чек 214 21.10.2024 13:55 [13:55:40]line Смена: 460 ФФД: 1.0 [13:55:40]line ЗНМ: 0300000155 [13:55:40]line РНМ: 0000000000100030 [13:55:40]line Версия ККМ: 001 [13:55:40]line [13:55:40]line Дисконтная программа [13:55:40]line АИ-92 [13:55:40]line номер 86 [13:55:40]line сэкономлено 22.77 сом [13:55:40]line ФМ: 0000000000965340 [13:55:40]line ФД: 187750 [13:55:40]line ФПД: 25797577150085 [13:55:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T135543&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187750&fm=25797577150085&tin=02508201610067®Number=0000000000100030&sum=150000 [13:55:40]written 0, free lines is 4095 [13:55:40]OFD Sender: Processing packet 187750 [packets to send 1062, broken 1061] [13:55:40]ProducePacketName [13:55:40]name=ofd_packets/00187750 [13:55:40]OFD Sender: To server: pG, [13:55:40]CommunicateWithHost lk.salyk.kg:30040 [13:55:40]ConnectInit lk.salyk.kg [13:55:41]Connected sock=10 [13:55:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 AF 8C 07 01 24 53 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 F2 58 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 26 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 D6 00 00 00 F4 03 04 00 5F 5D 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 66 DD 02 00 35 04 06 00 17 76 77 6C 0E 85 6C E9 76 9A E6 31 BA 9B [13:55:41]Write to MH i2c: 01 00 00 3A 5D 97 [13:55:41]Write i2c OK [13:55:41]MH_I2C_Read... [13:55:41]Read from MH i2c: 01 [13:55:41]MH_I2C_Read... [13:55:41]Read from MH i2c: 01 07 00 [13:55:41]MH_I2C_Read... [13:55:41]Read from MH i2c: 01 07 00 3A 5D 00 00 00 00 00 EC 0B 95 [13:55:41]RasterBufferAndPrint [13:55:41]line [13:55:41]line [13:55:41]line [13:55:41]line [13:55:41]line [13:55:41]written 0, free lines is 3055 [13:55:41]MH_Cut [13:55:41]Write to MH i2c: D1 01 00 41 5D 01 70 [13:55:41]Write i2c OK [13:55:41]MH_I2C_Read... [13:55:41]Read from MH i2c: D1 [13:55:41]MH_I2C_Read... [13:55:41]Read from MH i2c: D1 01 00 [13:55:41]MH_I2C_Read... [13:55:41]Read from MH i2c: D1 01 00 41 5D 00 6F [13:55:41]Write to MH i2c: 01 00 00 42 5D 9F [13:55:41]Write i2c OK [13:55:41]MH_I2C_Read... [13:55:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 1C B4 47 00 0E 82 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 66 DD 02 00 F4 03 04 00 4E 07 16 67 B6 04 01 00 00 26 D7 C0 AE BD A2 70 69 [13:55:41]CommunicateWithHost err = 0 [13:55:41]CheckOFDResponse [13:55:41]1017 (14) - 77093643461234 [13:55:41]1041 (16) - 0000000000965340 [13:55:41]1040 (4) - 187750 [13:55:41]1012 (4) - 21.10.2024 07:48 [13:55:41]1206 (1) - 0 [13:55:41]OFD Sender: Remove packet 187750 [13:55:41]ProducePacketName [13:55:41]name=ofd_packets/00187750 [13:55:41]NVStorageDeleteData [13:55:41]OFD Sender: No OFD packet to send [13:55:42]*** Cut start [13:55:42]*** Partial cut [13:55:42]*** CUTSNS_PIN = 1 [13:55:42]*** CUTSNS_PIN = 0 [13:55:42]*** Brake cut motor [13:55:43]Read from MH i2c: 01 [13:55:43]MH_I2C_Read... [13:55:43]*** Stop cut motor [13:55:43]*** Cut end [13:55:43]Read from MH i2c: 01 07 00 [13:55:43]MH_I2C_Read... [13:55:43]Read from MH i2c: 01 07 00 42 5D 00 00 00 00 00 FF 0F B4 [13:55:43]process_action close_receipt done [13:55:43]requested_data is exist [13:55:43]produce_requested_data [13:55:43]requested_item fm.sn is exist - process it [13:55:43]wFMCommunicate request_size=4 [13:55:43]MH_SAM_APDU [13:55:43]CAPDU: 80 11 00 00 [13:55:43]Write to MH i2c: E2 08 00 43 5D 80 11 00 00 00 00 00 00 1A [13:55:43]Write i2c OK [13:55:43]MH_I2C_Read... [13:55:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:55:43]Read from MH i2c: E2 [13:55:43]MH_I2C_Read... [13:55:43]Read from MH i2c: E2 17 00 [13:55:43]MH_I2C_Read... [13:55:43]Read from MH i2c: E2 17 00 43 5D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 68 [13:55:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [13:55:43]wFMCommunicate OK [13:55:43]requested_item fd.num is exist - process it [13:55:43]SAM_PROTO_GetFieldsCounters [13:55:43]wFMCommunicate request_size=4 [13:55:43]MH_SAM_APDU [13:55:43]CAPDU: 80 13 00 00 [13:55:43]Write to MH i2c: E2 08 00 44 5D 80 13 00 00 00 00 00 00 1D [13:55:43]Write i2c OK [13:55:43]MH_I2C_Read... [13:55:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:55:43]Read from MH i2c: E2 [13:55:43]MH_I2C_Read... [13:55:43]Read from MH i2c: E2 62 00 [13:55:43]MH_I2C_Read... [13:55:43]Read from MH i2c: E2 62 00 44 5D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 66 DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 D6 00 00 00 5E 04 04 00 D6 00 00 00 57 04 04 00 D7 00 00 00 19 04 04 00 00 00 00 00 90 00 B8 [13:55:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 66 DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 D6 00 00 00 5E 04 04 00 D6 00 00 00 57 04 04 00 D7 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:55:43]wFMCommunicate OK [13:55:43]SAM_PROTO_GetFieldsCounters done [13:55:43]requested_item shift.num is exist - process it [13:55:43]requested_item shift.opened is exist - process it [13:55:43]req_shift_opened [13:55:43]FM_GetShiftState [13:55:43]SAM_PROTO_GetShiftState [13:55:43]wFMCommunicate request_size=4 [13:55:43]MH_SAM_APDU [13:55:43]CAPDU: 80 13 01 00 [13:55:43]Write to MH i2c: E2 08 00 45 5D 80 13 01 00 00 00 00 00 1F [13:55:43]Write i2c OK [13:55:43]MH_I2C_Read... [13:55:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:55:43]Read from MH i2c: E2 [13:55:43]MH_I2C_Read... [13:55:43]Read from MH i2c: E2 0E 00 [13:55:43]MH_I2C_Read... [13:55:43]Read from MH i2c: E2 0E 00 45 5D 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 7E [13:55:43]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [13:55:43]wFMCommunicate OK [13:55:43]SAM_PROTO_GetShiftState done [13:55:43]FM_GetShiftState done [13:55:43]req_shift_opened done [13:55:43]requested_item shift.open_date is exist - process it [13:55:43]req_shift_open_date [13:55:43]req_shift_open_date done [13:55:43]produce_requested_data done [13:55:43]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187750,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [13:55:43]process_action_free close_receipt [13:55:43]json_value_free [13:55:43]json_value_free done [13:55:43]process_json_proto returns [13:55:43]Send response to host [13:55:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187750,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [13:55:43]free response buf [13:55:43]execute_script done [13:55:43]execute_script returns [13:55:43]free content buf [13:55:43]Sock 8.Close socket [13:55:43]Sock 8.Thread stoped [13:55:46]OFD Sender: No OFD packet to send [13:55:51]OFD Sender: No OFD packet to send [13:55:56]OFD Sender: No OFD packet to send [13:56:01]OFD Sender: No OFD packet to send [13:56:06]OFD Sender: No OFD packet to send [13:56:12]OFD Sender: No OFD packet to send [13:56:17]OFD Sender: No OFD packet to send [13:56:19]accept exits with 9 [13:56:19]New connection [13:56:19]New thread 3067014500 created [13:56:19]Thread 3067157860 joined [13:56:19]Waiting for new connection... [13:56:19] Sock 9.Parse request [13:56:19]Sock 9.Check first char [13:56:19]Sock 9.First char is OK [13:56:19]request: POST /json_proto HTTP/1.0 [13:56:19]Method: POST [13:56:19]URL: /json_proto [13:56:19]Method is POST - this is cgi request [13:56:19]url: /json_proto [13:56:19]query_string will be loaded in cgi processing [13:56:19]execute_cgi json_proto POST (null) [13:56:19]execute_cgi path=json_proto method=POST [13:56:19]POST find Content-Length [13:56:19]Host: 172.17.42.131:8080 [13:56:19]Content-Length: 677 [13:56:19]Content-Type: application/json [13:56:19] [13:56:19]POST finish read [13:56:19]Found Content-Length = 677 [13:56:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209803", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 5.670, "sum" : 420.71, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 420.00, "total" : 420.00, "payments": [ { "type": 0, "sum" : 420.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:56:19]execute_script... [13:56: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)209803", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 5.670, "sum" : 420.71, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 420.00, "total" : 420.00, "payments": [ { "type": 0, "sum" : 420.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:56:19]POST & json_proto [13:56:19]process_json_proto [13:56:19]json parsed OK: [13:56:19]protocol is kg_v1.0 [13:56:19]action value=close_receipt [13:56:19]process_action close_receipt [13:56:19]cmd_close_receipt [13:56:19]MH_GetDate [13:56:19]Write to MH i2c: F0 00 00 46 5D 92 [13:56:19]Write i2c OK [13:56:19]MH_I2C_Read... [13:56:19]Read from MH i2c: F0 [13:56:19]MH_I2C_Read... [13:56:19]Read from MH i2c: F0 09 00 [13:56:19]MH_I2C_Read... [13:56:19]Read from MH i2c: F0 09 00 46 5D 00 87 5D 16 67 A0 18 CA 66 E4 [13:56:19]GetLastDocTimeStamp 1729518943 [13:56:19]current date 1729518983 [13:56:19]FM_GetShiftState [13:56:19]SAM_PROTO_GetShiftState [13:56:19]wFMCommunicate request_size=4 [13:56:19]MH_SAM_APDU [13:56:19]CAPDU: 80 13 01 00 [13:56:19]Write to MH i2c: E2 08 00 47 5D 80 13 01 00 00 00 00 00 21 [13:56:19]Write i2c OK [13:56:19]MH_I2C_Read... [13:56:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:56:19]Read from MH i2c: E2 [13:56:19]MH_I2C_Read... [13:56:19]Read from MH i2c: E2 0E 00 [13:56:19]MH_I2C_Read... [13:56:19]Read from MH i2c: E2 0E 00 47 5D 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 80 [13:56:19]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [13:56:19]wFMCommunicate OK [13:56:19]SAM_PROTO_GetShiftState done [13:56:19]FM_GetShiftState done [13:56:19]opened in 1729469754 [13:56:19]opened+sec_in_day 1729556154 [13:56:19]quantity*price = 42071 [13:56:19]sum+1 = 42072 [13:56:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.71 ИТОГО: 420.00 Внесено: 420.00 СДАЧА: 0.00 НСП 1% : 3.72 НДС 12% : 44.68 Наличными: 420.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 215 21.10.2024 13:56 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 187751 ФПД: 266158154881529 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T135623&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187751&fm=266158154881529&tin=02508201610067®Number=0000000000100030&sum=42000 [13:56:20]StoreToDocumentArchive [13:56:20]shift 460 fd 187751 [13:56:20]save to /storage/0460/doc_00187751 [13:56:20]save last doc name /storage/0460/doc_00187751 to /storage/kkm_last_doc_name [13:56:20]save OK [13:56:20]Clear old archive folders... [13:56:20]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:56:20]tlvbuf is 011AD100 [13:56:20]SAM_PROTO_ClearQueue [13:56:20]wFMCommunicate request_size=4 [13:56:20]MH_SAM_APDU [13:56:20]CAPDU: 80 09 00 00 [13:56:20]Write to MH i2c: E2 08 00 54 5D 80 09 00 00 00 00 00 00 23 [13:56:20]Write i2c OK [13:56:20]MH_I2C_Read... [13:56:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:56:20]Read from MH i2c: E2 [13:56:20]MH_I2C_Read... [13:56:20]Read from MH i2c: E2 03 00 [13:56:20]MH_I2C_Read... [13:56:20]Read from MH i2c: E2 03 00 54 5D 00 90 00 25 [13:56:20]RAPDU: 90 00 [13:56:20]wFMCommunicate OK [13:56:20]SAM_PROTO_ClearQueue done [13:56:20]KKMCreateOFDPacket [13:56:20]OFDProtocolAddRootSTLVToBuf [13:56:20]FM_MakeSignedData [13:56:20]FM_MakeSignedData [13:56:20]SAM_PROTO_SignData [13:56:20]wFMCommunicate request_size=4 [13:56:20]MH_SAM_APDU [13:56:20]CAPDU: 80 0D 01 02 [13:56:20]Write to MH i2c: E2 08 00 55 5D 80 0D 01 02 00 00 00 00 2B [13:56:20]Write i2c OK [13:56:20]MH_I2C_Read... [13:56:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:56:20]Read from MH i2c: E2 [13:56:20]MH_I2C_Read... [13:56:20]Read from MH i2c: E2 03 00 [13:56:20]MH_I2C_Read... [13:56:20]Read from MH i2c: E2 03 00 55 5D 00 90 00 26 [13:56:20]RAPDU: 90 00 [13:56:20]wFMCommunicate OK [13:56:20]wFMCommunicate request_size=255 [13:56:20]MH_SAM_APDU [13:56: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 26 16 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 57 A4 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 A4 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 74 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 74 11 00 00 00 00 07 04 06 00 10 A4 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D7 00 00 00 F4 03 04 00 87 5D 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 67 DD 02 00 35 04 06 00 F2 [13:56:20]Write to MH i2c: E2 02 01 56 5D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 26 16 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 57 A4 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 A4 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 74 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 74 11 00 00 00 00 07 04 06 00 10 A4 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D7 00 00 00 F4 03 04 00 87 5D 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 67 DD 02 00 35 04 06 00 F2 00 00 0B [13:56:20]Write i2c OK [13:56:20]MH_I2C_Read... [13:56:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:56:20]Read from MH i2c: E2 [13:56:20]MH_I2C_Read... [13:56:20]Read from MH i2c: E2 03 00 [13:56:20]MH_I2C_Read... [13:56:20]Read from MH i2c: E2 03 00 56 5D 00 90 00 27 [13:56:20]RAPDU: 90 00 [13:56:20]wFMCommunicate OK [13:56:20]wFMCommunicate request_size=10 [13:56:20]MH_SAM_APDU [13:56:20]CAPDU: 80 0D 02 02 05 11 C6 46 99 F9 [13:56:20]Write to MH i2c: E2 0D 00 57 5D 80 0D 02 02 05 00 11 C6 46 99 F9 00 00 E7 [13:56:20]Write i2c OK [13:56:20]MH_I2C_Read... [13:56:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:56:20]Read from MH i2c: E2 [13:56:20]MH_I2C_Read... [13:56:20]Read from MH i2c: E2 03 00 [13:56:20]MH_I2C_Read... [13:56:20]Read from MH i2c: E2 03 00 57 5D 00 90 00 28 [13:56:20]RAPDU: 90 00 [13:56:20]wFMCommunicate OK [13:56:20]wFMCommunicate request_size=4 [13:56:20]MH_SAM_APDU [13:56:20]CAPDU: 80 0D 03 02 [13:56:20]Write to MH i2c: E2 08 00 58 5D 80 0D 03 02 00 00 00 00 30 [13:56:20]Write i2c OK [13:56:20]MH_I2C_Read... [13:56:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:56:20]Read from MH i2c: E2 [13:56:20]MH_I2C_Read... [13:56:20]Read from MH i2c: E2 0B 00 [13:56:20]MH_I2C_Read... [13:56:20]Read from MH i2c: E2 0B 00 58 5D 00 F1 57 D1 FD DB A9 1D 38 90 00 20 [13:56:20]RAPDU: F1 57 D1 FD DB A9 1D 38 90 00 [13:56:20]wFMCommunicate OK [13:56:20]SAM_PROTO_SignData done [13:56:20]FM_MakeSignedData done [13:56:20]CreateOFDProtocolMessage [13:56:20]wFMCommunicate request_size=4 [13:56:20]MH_SAM_APDU [13:56:20]CAPDU: 80 11 00 00 [13:56:20]Write to MH i2c: E2 08 00 59 5D 80 11 00 00 00 00 00 00 30 [13:56:20]Write i2c OK [13:56:20]MH_I2C_Read... [13:56:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:56:20]Read from MH i2c: E2 [13:56:20]MH_I2C_Read... [13:56:20]Read from MH i2c: E2 17 00 [13:56:20]MH_I2C_Read... [13:56:20]Read from MH i2c: E2 17 00 59 5D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 7E [13:56:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [13:56:20]wFMCommunicate OK [13:56:20]CreateOFDProtocolMessage done [13:56:20]OFDSenderStorePacket 187751 [13:56:20]StoreOFDPacket docnum=187751 [13:56:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 BC 81 07 01 39 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 26 16 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 57 A4 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 A4 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 74 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 74 11 00 00 00 00 07 04 06 00 10 A4 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D7 00 00 00 F4 03 04 00 87 5D 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 67 DD 02 00 35 04 06 00 F2 11 C6 46 99 F9 F1 57 D1 FD DB A9 1D 38 [13:56:20]CheckFolder [13:56:20]dirname=/storage/ofd_packets [13:56:20]CheckFolder done [13:56:20]ProducePacketName [13:56:20]name=ofd_packets/00187751 [13:56:20]NVStorageSaveData ofd_packets/00187751 [13:56:20]File name is /storage/ofd_packets/00187751 [13:56:20]Write 301 bytes [13:56:20]NVStorageSaveData done [13:56:20]OFDSenderStorePacket done [13:56:20]KKMCreateOFDPacket done [13:56:20]NVStorageSaveData kkm_last_timestamp [13:56:20]File name is /storage/kkm_last_timestamp [13:56:20]Write 4 bytes [13:56:20]NVStorageSaveData done [13:56:20]ExternCall_PrintAddStr [13:56:20]wPrintStart [13:56:20]Write to MH i2c: 01 00 00 5A 5D B7 [13:56:20]Write i2c OK [13:56:20]MH_I2C_Read... [13:56:20]Read from MH i2c: 01 [13:56:20]MH_I2C_Read... [13:56:20]Read from MH i2c: 01 07 00 [13:56:20]MH_I2C_Read... [13:56:20]Read from MH i2c: 01 07 00 5A 5D 00 00 00 00 00 FF 0F CC [13:56:20]RasterBufferAndPrint [13:56:20]line Счет N : (1)209803 [13:56:20]line ИНН: 02508201610067 [13:56:20]line Контрольно-Кассовый Чек [13:56:20]line ПРОДАЖА [13:56:20]line ТРК (МРК, ГНК) : 13 [13:56:20]line Товар: 2710124500 [13:56:20]line Аи-95-К-3 [13:56:20]line 5.670 * 74.20 [13:56:20]line = 420.71 [13:56:20]line НДС 12% НСП 1% [13:56:20]line > о реализуемом товаре [13:56:20]line ОКРУГЛЕНИЕ: -0.71 [13:56:20]line ИТОГО: 420.00 [13:56:20]line Внесено: 420.00 [13:56:20]line СДАЧА: 0.00 [13:56:20]line НСП 1% : 3.72 [13:56:20]line НДС 12% : 44.68 [13:56:20]line Наличными: 420.00 [13:56:20]line Безнал.: 0.00 [13:56:20]line Место: АЗС № 86 "Партнер Нефть" [13:56:20]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [13:56:20]line СНО: Общий режим [13:56:20]line Чек 215 21.10.2024 13:56 [13:56:20]line Смена: 460 ФФД: 1.0 [13:56:20]line ЗНМ: 0300000155 [13:56:20]line РНМ: 0000000000100030 [13:56:20]line Версия ККМ: 001 [13:56:20]line ФМ: 0000000000965340 [13:56:20]line ФД: 187751 [13:56:20]line ФПД: 266158154881529 [13:56:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T135623&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187751&fm=266158154881529&tin=02508201610067®Number=0000000000100030&sum=42000 [13:56:21]written 0, free lines is 4095 [13:56:21]OFD Sender: Processing packet 187751 [packets to send 1062, broken 1061] [13:56:21]ProducePacketName [13:56:21]name=ofd_packets/00187751 [13:56:21]OFD Sender: To server: pG, [13:56:21]CommunicateWithHost lk.salyk.kg:30040 [13:56:21]ConnectInit lk.salyk.kg [13:56:21]Connected sock=10 [13:56:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 BC 81 07 01 39 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 26 16 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 57 A4 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 A4 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 74 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 74 11 00 00 00 00 07 04 06 00 10 A4 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D7 00 00 00 F4 03 04 00 87 5D 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 67 DD 02 00 35 04 06 00 F2 11 C6 46 99 F9 F1 57 D1 FD DB A9 1D 38 [13:56:21]Write to MH i2c: 01 00 00 85 5D E2 [13:56:21]Write i2c OK [13:56:21]MH_I2C_Read... [13:56:21]Read from MH i2c: 01 [13:56:21]MH_I2C_Read... [13:56:21]Read from MH i2c: 01 07 00 [13:56:21]MH_I2C_Read... [13:56:21]Read from MH i2c: 01 07 00 85 5D 00 00 00 00 00 65 0C 5A [13:56:21]RasterBufferAndPrint [13:56:21]line [13:56:21]line [13:56:21]line [13:56:21]line [13:56:21]line [13:56:21]written 0, free lines is 3176 [13:56:21]MH_Cut [13:56:21]Write to MH i2c: D1 01 00 8C 5D 01 BB [13:56:21]Write i2c OK [13:56:21]MH_I2C_Read... [13:56:21]Read from MH i2c: D1 [13:56:21]MH_I2C_Read... [13:56:21]Read from MH i2c: D1 01 00 [13:56:21]MH_I2C_Read... [13:56:21]Read from MH i2c: D1 01 00 8C 5D 00 BA [13:56:21]Write to MH i2c: 01 00 00 8D 5D EA [13:56:21]Write i2c OK [13:56:21]MH_I2C_Read... [13:56:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 A2 F0 47 00 D3 79 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 67 DD 02 00 F4 03 04 00 77 07 16 67 B6 04 01 00 00 E5 F1 DA 5A AB 69 D9 E6 [13:56:21]CommunicateWithHost err = 0 [13:56:21]CheckOFDResponse [13:56:21]1017 (14) - 77093643461234 [13:56:21]1041 (16) - 0000000000965340 [13:56:21]1040 (4) - 187751 [13:56:21]1012 (4) - 21.10.2024 07:49 [13:56:21]1206 (1) - 0 [13:56:21]OFD Sender: Remove packet 187751 [13:56:21]ProducePacketName [13:56:21]name=ofd_packets/00187751 [13:56:21]NVStorageDeleteData [13:56:22]OFD Sender: No OFD packet to send [13:56:22]*** Cut start [13:56:22]*** Partial cut [13:56:22]*** CUTSNS_PIN = 1 [13:56:22]*** CUTSNS_PIN = 0 [13:56:22]*** Brake cut motor [13:56:23]Read from MH i2c: 01 [13:56:23]MH_I2C_Read... [13:56:23]*** Stop cut motor [13:56:23]*** Cut end [13:56:23]Read from MH i2c: 01 07 00 [13:56:23]MH_I2C_Read... [13:56:23]Read from MH i2c: 01 07 00 8D 5D 00 00 00 00 00 FF 0F FF [13:56:23]process_action close_receipt done [13:56:23]requested_data is exist [13:56:23]produce_requested_data [13:56:23]requested_item fm.sn is exist - process it [13:56:23]wFMCommunicate request_size=4 [13:56:23]MH_SAM_APDU [13:56:23]CAPDU: 80 11 00 00 [13:56:23]Write to MH i2c: E2 08 00 8E 5D 80 11 00 00 00 00 00 00 65 [13:56:23]Write i2c OK [13:56:23]MH_I2C_Read... [13:56:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:56:23]Read from MH i2c: E2 [13:56:23]MH_I2C_Read... [13:56:23]Read from MH i2c: E2 17 00 [13:56:23]MH_I2C_Read... [13:56:23]Read from MH i2c: E2 17 00 8E 5D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 B3 [13:56:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [13:56:23]wFMCommunicate OK [13:56:23]requested_item fd.num is exist - process it [13:56:23]SAM_PROTO_GetFieldsCounters [13:56:23]wFMCommunicate request_size=4 [13:56:23]MH_SAM_APDU [13:56:23]CAPDU: 80 13 00 00 [13:56:23]Write to MH i2c: E2 08 00 8F 5D 80 13 00 00 00 00 00 00 68 [13:56:23]Write i2c OK [13:56:23]MH_I2C_Read... [13:56:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:56:23]Read from MH i2c: E2 [13:56:23]MH_I2C_Read... [13:56:23]Read from MH i2c: E2 62 00 [13:56:23]MH_I2C_Read... [13:56:23]Read from MH i2c: E2 62 00 8F 5D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 67 DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 D7 00 00 00 5E 04 04 00 D7 00 00 00 57 04 04 00 D8 00 00 00 19 04 04 00 00 00 00 00 90 00 07 [13:56:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 67 DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 D7 00 00 00 5E 04 04 00 D7 00 00 00 57 04 04 00 D8 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:56:23]wFMCommunicate OK [13:56:23]SAM_PROTO_GetFieldsCounters done [13:56:23]requested_item shift.num is exist - process it [13:56:23]requested_item shift.opened is exist - process it [13:56:23]req_shift_opened [13:56:23]FM_GetShiftState [13:56:23]SAM_PROTO_GetShiftState [13:56:23]wFMCommunicate request_size=4 [13:56:23]MH_SAM_APDU [13:56:23]CAPDU: 80 13 01 00 [13:56:23]Write to MH i2c: E2 08 00 90 5D 80 13 01 00 00 00 00 00 6A [13:56:23]Write i2c OK [13:56:23]MH_I2C_Read... [13:56:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:56:23]Read from MH i2c: E2 [13:56:23]MH_I2C_Read... [13:56:23]Read from MH i2c: E2 0E 00 [13:56:23]MH_I2C_Read... [13:56:23]Read from MH i2c: E2 0E 00 90 5D 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 C9 [13:56:23]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [13:56:23]wFMCommunicate OK [13:56:23]SAM_PROTO_GetShiftState done [13:56:23]FM_GetShiftState done [13:56:23]req_shift_opened done [13:56:23]requested_item shift.open_date is exist - process it [13:56:23]req_shift_open_date [13:56:23]req_shift_open_date done [13:56:23]produce_requested_data done [13:56:23]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187751,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [13:56:23]process_action_free close_receipt [13:56:23]json_value_free [13:56:23]json_value_free done [13:56:23]process_json_proto returns [13:56:23]Send response to host [13:56:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187751,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [13:56:23]free response buf [13:56:23]execute_script done [13:56:23]execute_script returns [13:56:23]free content buf [13:56:23]Sock 9.Close socket [13:56:23]Sock 9.Thread stoped [13:56:27]OFD Sender: No OFD packet to send [13:56:32]OFD Sender: No OFD packet to send [13:56:37]OFD Sender: No OFD packet to send [13:56:42]OFD Sender: No OFD packet to send [13:56:47]OFD Sender: No OFD packet to send [13:56:52]OFD Sender: No OFD packet to send [13:56:57]OFD Sender: No OFD packet to send [13:57:02]OFD Sender: No OFD packet to send [13:57:07]OFD Sender: No OFD packet to send [13:57:12]OFD Sender: No OFD packet to send [13:57:17]OFD Sender: No OFD packet to send [13:57:22]OFD Sender: No OFD packet to send [13:57:27]OFD Sender: No OFD packet to send [13:57:32]OFD Sender: No OFD packet to send [13:57:37]OFD Sender: No OFD packet to send [13:57:42]OFD Sender: No OFD packet to send [13:57:47]OFD Sender: No OFD packet to send [13:57:52]OFD Sender: No OFD packet to send [13:57:57]OFD Sender: No OFD packet to send [13:58:02]OFD Sender: No OFD packet to send [13:58:07]OFD Sender: No OFD packet to send [13:58:12]OFD Sender: No OFD packet to send [13:58:17]OFD Sender: No OFD packet to send [13:58:22]OFD Sender: No OFD packet to send [13:58:27]OFD Sender: No OFD packet to send [13:58:32]OFD Sender: No OFD packet to send [13:58:37]OFD Sender: No OFD packet to send [13:58:42]OFD Sender: No OFD packet to send [13:58:47]OFD Sender: No OFD packet to send [13:58:52]OFD Sender: No OFD packet to send [13:58:57]OFD Sender: No OFD packet to send [13:59:02]OFD Sender: No OFD packet to send [13:59:07]OFD Sender: No OFD packet to send [13:59:12]OFD Sender: No OFD packet to send [13:59:17]OFD Sender: No OFD packet to send [13:59:22]OFD Sender: No OFD packet to send [13:59:27]OFD Sender: No OFD packet to send [13:59:32]OFD Sender: No OFD packet to send [13:59:37]OFD Sender: No OFD packet to send [13:59:42]OFD Sender: No OFD packet to send [13:59:48]OFD Sender: No OFD packet to send [13:59:53]OFD Sender: No OFD packet to send [13:59:58]OFD Sender: No OFD packet to send [14:00:03]OFD Sender: No OFD packet to send [14:00:08]OFD Sender: No OFD packet to send [14:00:13]OFD Sender: No OFD packet to send [14:00:18]OFD Sender: No OFD packet to send [14:00:23]OFD Sender: No OFD packet to send [14:00:28]OFD Sender: No OFD packet to send [14:00:33]OFD Sender: No OFD packet to send [14:00:38]OFD Sender: No OFD packet to send [14:00:43]OFD Sender: No OFD packet to send [14:00:48]OFD Sender: No OFD packet to send [14:00:53]OFD Sender: No OFD packet to send [14:00:55]accept exits with 8 [14:00:55]New connection [14:00:55]New thread 3067157860 created [14:00:55]Thread 3067014500 joined [14:00:55]Waiting for new connection... [14:00:55] Sock 8.Parse request [14:00:55]Sock 8.Check first char [14:00:55]Sock 8.First char is OK [14:00:55]request: POST /json_proto HTTP/1.0 [14:00:55]Method: POST [14:00:55]URL: /json_proto [14:00:55]Method is POST - this is cgi request [14:00:55]url: /json_proto [14:00:55]query_string will be loaded in cgi processing [14:00:55]execute_cgi json_proto POST (null) [14:00:55]execute_cgi path=json_proto method=POST [14:00:55]POST find Content-Length [14:00:55]Host: 172.17.42.131:8080 [14:00:55]Content-Length: 809 [14:00:55]Content-Type: application/json [14:00:55] [14:00:55]POST finish read [14:00:55]Found Content-Length = 809 [14:00:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209804", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 25.910, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: 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" ] } } [14:00:55]execute_script... [14:00: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)209804", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 25.910, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: 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" ] } } [14:00:55]POST & json_proto [14:00:55]process_json_proto [14:00:55]json parsed OK: [14:00:55]protocol is kg_v1.0 [14:00:55]action value=close_receipt [14:00:55]process_action close_receipt [14:00:55]cmd_close_receipt [14:00:55]MH_GetDate [14:00:55]Write to MH i2c: F0 00 00 91 5D DD [14:00:55]Write i2c OK [14:00:55]MH_I2C_Read... [14:00:55]Read from MH i2c: F0 [14:00:55]MH_I2C_Read... [14:00:55]Read from MH i2c: F0 09 00 [14:00:55]MH_I2C_Read... [14:00:55]Read from MH i2c: F0 09 00 91 5D 00 9B 5E 16 67 A0 18 CA 66 44 [14:00:55]GetLastDocTimeStamp 1729518983 [14:00:55]current date 1729519259 [14:00:55]FM_GetShiftState [14:00:55]SAM_PROTO_GetShiftState [14:00:55]wFMCommunicate request_size=4 [14:00:55]MH_SAM_APDU [14:00:55]CAPDU: 80 13 01 00 [14:00:55]Write to MH i2c: E2 08 00 92 5D 80 13 01 00 00 00 00 00 6C [14:00:55]Write i2c OK [14:00:55]MH_I2C_Read... [14:00:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:00:55]Read from MH i2c: E2 [14:00:55]MH_I2C_Read... [14:00:55]Read from MH i2c: E2 0E 00 [14:00:55]MH_I2C_Read... [14:00:55]Read from MH i2c: E2 0E 00 92 5D 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 CB [14:00:55]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [14:00:55]wFMCommunicate OK [14:00:55]SAM_PROTO_GetShiftState done [14:00:55]FM_GetShiftState done [14:00:55]opened in 1729469754 [14:00:55]opened+sec_in_day 1729556154 [14:00:55]quantity*price = 200025 [14:00:55]sum+1 = 200026 [14:00:55]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2000.25 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 0.00 Безнал.: 2000.25 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 216 21.10.2024 14:00 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000965340 ФД: 187752 ФПД: 9523230433833 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T140059&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187752&fm=9523230433833&tin=02508201610067®Number=0000000000100030&sum=200025 [14:00:56]StoreToDocumentArchive [14:00:56]shift 460 fd 187752 [14:00:56]save to /storage/0460/doc_00187752 [14:00:56]save last doc name /storage/0460/doc_00187752 to /storage/kkm_last_doc_name [14:00:56]save OK [14:00:56]Clear old archive folders... [14:00:56]ProcessDocumentItem done err = 0, tmpTLVsize=257 [14:00:56]tlvbuf is B6F87810 [14:00:56]SAM_PROTO_ClearQueue [14:00:56]wFMCommunicate request_size=4 [14:00:56]MH_SAM_APDU [14:00:56]CAPDU: 80 09 00 00 [14:00:56]Write to MH i2c: E2 08 00 9F 5D 80 09 00 00 00 00 00 00 6E [14:00:56]Write i2c OK [14:00:56]MH_I2C_Read... [14:00:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:00:56]Read from MH i2c: E2 [14:00:56]MH_I2C_Read... [14:00:56]Read from MH i2c: E2 03 00 [14:00:56]MH_I2C_Read... [14:00:56]Read from MH i2c: E2 03 00 9F 5D 00 90 00 70 [14:00:56]RAPDU: 90 00 [14:00:56]wFMCommunicate OK [14:00:56]SAM_PROTO_ClearQueue done [14:00:56]KKMCreateOFDPacket [14:00:56]OFDProtocolAddRootSTLVToBuf [14:00:56]FM_MakeSignedData [14:00:56]FM_MakeSignedData [14:00:56]SAM_PROTO_SignData [14:00:56]wFMCommunicate request_size=4 [14:00:56]MH_SAM_APDU [14:00:56]CAPDU: 80 0D 01 02 [14:00:56]Write to MH i2c: E2 08 00 A0 5D 80 0D 01 02 00 00 00 00 76 [14:00:56]Write i2c OK [14:00:56]MH_I2C_Read... [14:00:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:00:56]Read from MH i2c: E2 [14:00:56]MH_I2C_Read... [14:00:56]Read from MH i2c: E2 03 00 [14:00:56]MH_I2C_Read... [14:00:56]Read from MH i2c: E2 03 00 A0 5D 00 90 00 71 [14:00:56]RAPDU: 90 00 [14:00:56]wFMCommunicate OK [14:00:56]wFMCommunicate request_size=255 [14:00:56]MH_SAM_APDU [14:00:56]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 36 65 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 59 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 59 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 D8 00 00 00 F4 03 04 00 9B 5E 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 68 DD 02 [14:00:56]Write to MH i2c: E2 02 01 A1 5D 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 36 65 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 59 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 59 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 D8 00 00 00 F4 03 04 00 9B 5E 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 68 DD 02 00 00 AB [14:00:56]Write i2c OK [14:00:56]MH_I2C_Read... [14:00:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:00:57]Read from MH i2c: E2 [14:00:57]MH_I2C_Read... [14:00:57]Read from MH i2c: E2 03 00 [14:00:57]MH_I2C_Read... [14:00:57]Read from MH i2c: E2 03 00 A1 5D 00 90 00 72 [14:00:57]RAPDU: 90 00 [14:00:57]wFMCommunicate OK [14:00:57]wFMCommunicate request_size=16 [14:00:57]MH_SAM_APDU [14:00:57]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 08 A9 4C C4 62 29 [14:00:57]Write to MH i2c: E2 13 00 A2 5D 80 0D 02 02 0B 00 00 35 04 06 00 08 A9 4C C4 62 29 00 00 1A [14:00:57]Write i2c OK [14:00:57]MH_I2C_Read... [14:00:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:00:57]Read from MH i2c: E2 [14:00:57]MH_I2C_Read... [14:00:57]Read from MH i2c: E2 03 00 [14:00:57]MH_I2C_Read... [14:00:57]Read from MH i2c: E2 03 00 A2 5D 00 90 00 73 [14:00:57]RAPDU: 90 00 [14:00:57]wFMCommunicate OK [14:00:57]wFMCommunicate request_size=4 [14:00:57]MH_SAM_APDU [14:00:57]CAPDU: 80 0D 03 02 [14:00:57]Write to MH i2c: E2 08 00 A3 5D 80 0D 03 02 00 00 00 00 7B [14:00:57]Write i2c OK [14:00:57]MH_I2C_Read... [14:00:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:00:57]Read from MH i2c: E2 [14:00:57]MH_I2C_Read... [14:00:57]Read from MH i2c: E2 0B 00 [14:00:57]MH_I2C_Read... [14:00:57]Read from MH i2c: E2 0B 00 A3 5D 00 7F 36 64 16 BA 88 1B 1C 90 00 24 [14:00:57]RAPDU: 7F 36 64 16 BA 88 1B 1C 90 00 [14:00:57]wFMCommunicate OK [14:00:57]SAM_PROTO_SignData done [14:00:57]FM_MakeSignedData done [14:00:57]CreateOFDProtocolMessage [14:00:57]wFMCommunicate request_size=4 [14:00:57]MH_SAM_APDU [14:00:57]CAPDU: 80 11 00 00 [14:00:57]Write to MH i2c: E2 08 00 A4 5D 80 11 00 00 00 00 00 00 7B [14:00:57]Write i2c OK [14:00:57]MH_I2C_Read... [14:00:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:00:57]Read from MH i2c: E2 [14:00:57]MH_I2C_Read... [14:00:57]Read from MH i2c: E2 17 00 [14:00:57]MH_I2C_Read... [14:00:57]Read from MH i2c: E2 17 00 A4 5D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 C9 [14:00:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [14:00:57]wFMCommunicate OK [14:00:57]CreateOFDProtocolMessage done [14:00:57]OFDSenderStorePacket 187752 [14:00:57]StoreOFDPacket docnum=187752 [14:00:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 51 A1 0D 01 93 FF 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 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 36 65 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 59 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 59 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 D8 00 00 00 F4 03 04 00 9B 5E 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 68 DD 02 00 35 04 06 00 08 A9 4C C4 62 29 7F 36 64 16 BA 88 1B 1C [14:00:57]CheckFolder [14:00:57]dirname=/storage/ofd_packets [14:00:57]CheckFolder done [14:00:57]ProducePacketName [14:00:57]name=ofd_packets/00187752 [14:00:57]NVStorageSaveData ofd_packets/00187752 [14:00:57]File name is /storage/ofd_packets/00187752 [14:00:57]Write 307 bytes [14:00:57]NVStorageSaveData done [14:00:57]OFDSenderStorePacket done [14:00:57]KKMCreateOFDPacket done [14:00:57]NVStorageSaveData kkm_last_timestamp [14:00:57]File name is /storage/kkm_last_timestamp [14:00:57]Write 4 bytes [14:00:57]NVStorageSaveData done [14:00:57]ExternCall_PrintAddStr [14:00:57]wPrintStart [14:00:57]Write to MH i2c: 01 00 00 A5 5D 02 [14:00:57]Write i2c OK [14:00:57]MH_I2C_Read... [14:00:57]Read from MH i2c: 01 [14:00:57]MH_I2C_Read... [14:00:57]Read from MH i2c: 01 07 00 [14:00:57]MH_I2C_Read... [14:00:57]Read from MH i2c: 01 07 00 A5 5D 00 00 00 00 00 FF 0F 17 [14:00:57]RasterBufferAndPrint [14:00:57]line Счет N : (1)209804 [14:00:57]line ИНН: 02508201610067 [14:00:57]line Контрольно-Кассовый Чек [14:00:57]line ПРОДАЖА [14:00:57]line ТРК (МРК, ГНК) : 31 [14:00:57]line Товар: 2710194210 [14:00:57]line D-ENERGY ДТ-К-5 [14:00:57]line 25.910 * 77.20 [14:00:57]line = 2000.25 [14:00:57]line НДС 12% НСП 1% [14:00:57]line > о реализуемом товаре [14:00:57]line ИТОГО: 2000.25 [14:00:57]line НСП 1% : 17.70 [14:00:57]line НДС 12% : 212.42 [14:00:57]line Наличными: 0.00 [14:00:57]line Безнал.: 2000.25 [14:00:57]line Место: АЗС № 86 "Партнер Нефть" [14:00:57]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [14:00:57]line СНО: Общий режим [14:00:57]line Чек 216 21.10.2024 14:00 [14:00:57]line Смена: 460 ФФД: 1.0 [14:00:57]line ЗНМ: 0300000155 [14:00:57]line РНМ: 0000000000100030 [14:00:57]line Версия ККМ: 001 [14:00:57]line Платежная система: O! деньги [14:00:57]line ФМ: 0000000000965340 [14:00:57]line ФД: 187752 [14:00:57]line ФПД: 9523230433833 [14:00:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T140059&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187752&fm=9523230433833&tin=02508201610067®Number=0000000000100030&sum=200025 [14:00:57]written 0, free lines is 4095 [14:00:57]OFD Sender: Processing packet 187752 [packets to send 1062, broken 1061] [14:00:57]ProducePacketName [14:00:57]name=ofd_packets/00187752 [14:00:57]OFD Sender: To server: pG, [14:00:57]CommunicateWithHost lk.salyk.kg:30040 [14:00:57]ConnectInit lk.salyk.kg [14:00:57]Connected sock=11 [14:00:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 51 A1 0D 01 93 FF 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 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 36 65 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 59 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 59 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 D8 00 00 00 F4 03 04 00 9B 5E 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 68 DD 02 00 35 04 06 00 08 A9 4C C4 62 29 7F 36 64 16 BA 88 1B 1C [14:00:57]Write to MH i2c: 01 00 00 CF 5D 2C [14:00:57]Write i2c OK [14:00:57]MH_I2C_Read... [14:00:57]Read from MH i2c: 01 [14:00:57]MH_I2C_Read... [14:00:57]Read from MH i2c: 01 07 00 [14:00:57]MH_I2C_Read... [14:00:57]Read from MH i2c: 01 07 00 CF 5D 00 00 00 00 00 77 0C B6 [14:00:57]RasterBufferAndPrint [14:00:57]line [14:00:57]line [14:00:57]line [14:00:57]line [14:00:57]line [14:00:57]written 0, free lines is 3195 [14:00:57]MH_Cut [14:00:57]Write to MH i2c: D1 01 00 D6 5D 01 05 [14:00:57]Write i2c OK [14:00:57]MH_I2C_Read... [14:00:57]Read from MH i2c: D1 [14:00:57]MH_I2C_Read... [14:00:57]Read from MH i2c: D1 01 00 [14:00:57]MH_I2C_Read... [14:00:57]Read from MH i2c: D1 01 00 D6 5D 00 04 [14:00:57]Write to MH i2c: 01 00 00 D7 5D 34 [14:00:57]Write i2c OK [14:00:57]MH_I2C_Read... [14:00:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 0C C1 47 00 5F F0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 68 DD 02 00 F4 03 04 00 8B 08 16 67 B6 04 01 00 00 B3 1E 41 D4 89 61 96 80 [14:00:58]CommunicateWithHost err = 0 [14:00:58]CheckOFDResponse [14:00:58]1017 (14) - 77093643461234 [14:00:58]1041 (16) - 0000000000965340 [14:00:58]1040 (4) - 187752 [14:00:58]1012 (4) - 21.10.2024 07:53 [14:00:58]1206 (1) - 0 [14:00:58]OFD Sender: Remove packet 187752 [14:00:58]ProducePacketName [14:00:58]name=ofd_packets/00187752 [14:00:58]NVStorageDeleteData [14:00:58]OFD Sender: No OFD packet to send [14:00:58]*** Cut start [14:00:58]*** Partial cut [14:00:58]*** CUTSNS_PIN = 1 [14:00:58]*** CUTSNS_PIN = 0 [14:00:59]*** Brake cut motor [14:00:59]Read from MH i2c: 01 [14:00:59]MH_I2C_Read... [14:00:59]*** Stop cut motor [14:00:59]*** Cut end [14:00:59]Read from MH i2c: 01 07 00 [14:00:59]MH_I2C_Read... [14:00:59]Read from MH i2c: 01 07 00 D7 5D 00 00 00 00 00 FF 0F 49 [14:00:59]process_action close_receipt done [14:00:59]requested_data is exist [14:00:59]produce_requested_data [14:00:59]requested_item fm.sn is exist - process it [14:00:59]wFMCommunicate request_size=4 [14:00:59]MH_SAM_APDU [14:00:59]CAPDU: 80 11 00 00 [14:00:59]Write to MH i2c: E2 08 00 D8 5D 80 11 00 00 00 00 00 00 AF [14:00:59]Write i2c OK [14:00:59]MH_I2C_Read... [14:00:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:00:59]Read from MH i2c: E2 [14:00:59]MH_I2C_Read... [14:00:59]Read from MH i2c: E2 17 00 [14:00:59]MH_I2C_Read... [14:00:59]Read from MH i2c: E2 17 00 D8 5D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 FD [14:00:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [14:00:59]wFMCommunicate OK [14:00:59]requested_item fd.num is exist - process it [14:00:59]SAM_PROTO_GetFieldsCounters [14:00:59]wFMCommunicate request_size=4 [14:00:59]MH_SAM_APDU [14:00:59]CAPDU: 80 13 00 00 [14:00:59]Write to MH i2c: E2 08 00 D9 5D 80 13 00 00 00 00 00 00 B2 [14:00:59]Write i2c OK [14:00:59]MH_I2C_Read... [14:00:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:00:59]Read from MH i2c: E2 [14:00:59]MH_I2C_Read... [14:00:59]Read from MH i2c: E2 62 00 [14:00:59]MH_I2C_Read... [14:00:59]Read from MH i2c: E2 62 00 D9 5D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 68 DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 D8 00 00 00 5E 04 04 00 D8 00 00 00 57 04 04 00 D9 00 00 00 19 04 04 00 00 00 00 00 90 00 55 [14:00:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 68 DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 D8 00 00 00 5E 04 04 00 D8 00 00 00 57 04 04 00 D9 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:00:59]wFMCommunicate OK [14:00:59]SAM_PROTO_GetFieldsCounters done [14:00:59]requested_item shift.num is exist - process it [14:00:59]requested_item shift.opened is exist - process it [14:00:59]req_shift_opened [14:00:59]FM_GetShiftState [14:00:59]SAM_PROTO_GetShiftState [14:00:59]wFMCommunicate request_size=4 [14:00:59]MH_SAM_APDU [14:00:59]CAPDU: 80 13 01 00 [14:00:59]Write to MH i2c: E2 08 00 DA 5D 80 13 01 00 00 00 00 00 B4 [14:00:59]Write i2c OK [14:00:59]MH_I2C_Read... [14:00:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:00:59]Read from MH i2c: E2 [14:00:59]MH_I2C_Read... [14:00:59]Read from MH i2c: E2 0E 00 [14:00:59]MH_I2C_Read... [14:00:59]Read from MH i2c: E2 0E 00 DA 5D 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 13 [14:00:59]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [14:00:59]wFMCommunicate OK [14:00:59]SAM_PROTO_GetShiftState done [14:00:59]FM_GetShiftState done [14:00:59]req_shift_opened done [14:00:59]requested_item shift.open_date is exist - process it [14:00:59]req_shift_open_date [14:00:59]req_shift_open_date done [14:00:59]produce_requested_data done [14:00:59]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187752,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [14:00:59]process_action_free close_receipt [14:00:59]json_value_free [14:00:59]json_value_free done [14:00:59]process_json_proto returns [14:00:59]Send response to host [14:00:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187752,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [14:00:59]free response buf [14:00:59]execute_script done [14:00:59]execute_script returns [14:00:59]free content buf [14:00:59]Sock 8.Close socket [14:00:59]Sock 8.Thread stoped [14:01:03]OFD Sender: No OFD packet to send [14:01:08]OFD Sender: No OFD packet to send [14:01:13]OFD Sender: No OFD packet to send [14:01:18]OFD Sender: No OFD packet to send [14:01:23]OFD Sender: No OFD packet to send [14:01:28]OFD Sender: No OFD packet to send [14:01:33]OFD Sender: No OFD packet to send [14:01:38]OFD Sender: No OFD packet to send [14:01:43]OFD Sender: No OFD packet to send [14:01:48]OFD Sender: No OFD packet to send [14:01:53]OFD Sender: No OFD packet to send [14:01:58]OFD Sender: No OFD packet to send [14:02:03]OFD Sender: No OFD packet to send [14:02:08]OFD Sender: No OFD packet to send [14:02:13]OFD Sender: No OFD packet to send [14:02:18]OFD Sender: No OFD packet to send [14:02:23]OFD Sender: No OFD packet to send [14:02:28]OFD Sender: No OFD packet to send [14:02:34]OFD Sender: No OFD packet to send [14:02:39]OFD Sender: No OFD packet to send [14:02:44]OFD Sender: No OFD packet to send [14:02:49]OFD Sender: No OFD packet to send [14:02:54]OFD Sender: No OFD packet to send [14:02:59]OFD Sender: No OFD packet to send [14:03:04]OFD Sender: No OFD packet to send [14:03:09]OFD Sender: No OFD packet to send [14:03:14]OFD Sender: No OFD packet to send [14:03:15]accept exits with 9 [14:03:15]New connection [14:03:15]New thread 3067014500 created [14:03:15]Thread 3067157860 joined [14:03:15]Waiting for new connection... [14:03:15] Sock 9.Parse request [14:03:15]Sock 9.Check first char [14:03:15]Sock 9.First char is OK [14:03:15]request: POST /json_proto HTTP/1.0 [14:03:15]Method: POST [14:03:15]URL: /json_proto [14:03:15]Method is POST - this is cgi request [14:03:15]url: /json_proto [14:03:15]query_string will be loaded in cgi processing [14:03:15]execute_cgi json_proto POST (null) [14:03:15]execute_cgi path=json_proto method=POST [14:03:15]POST find Content-Length [14:03:15]Host: 172.17.42.131:8080 [14:03:15]Content-Length: 688 [14:03:15]Content-Type: application/json [14:03:15] [14:03:15]POST finish read [14:03:15]Found Content-Length = 688 [14:03:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209805", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 38.870, "sum" : 3000.76, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:03:15]execute_script... [14:03:15]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209805", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 38.870, "sum" : 3000.76, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:03:15]POST & json_proto [14:03:15]process_json_proto [14:03:15]json parsed OK: [14:03:15]protocol is kg_v1.0 [14:03:15]action value=close_receipt [14:03:15]process_action close_receipt [14:03:15]cmd_close_receipt [14:03:15]MH_GetDate [14:03:15]Write to MH i2c: F0 00 00 DB 5D 27 [14:03:15]Write i2c OK [14:03:15]MH_I2C_Read... [14:03:15]Read from MH i2c: F0 [14:03:15]MH_I2C_Read... [14:03:15]Read from MH i2c: F0 09 00 [14:03:15]MH_I2C_Read... [14:03:15]Read from MH i2c: F0 09 00 DB 5D 00 27 5F 16 67 A0 18 CA 66 1B [14:03:15]GetLastDocTimeStamp 1729519259 [14:03:15]current date 1729519399 [14:03:15]FM_GetShiftState [14:03:15]SAM_PROTO_GetShiftState [14:03:15]wFMCommunicate request_size=4 [14:03:15]MH_SAM_APDU [14:03:15]CAPDU: 80 13 01 00 [14:03:15]Write to MH i2c: E2 08 00 DC 5D 80 13 01 00 00 00 00 00 B6 [14:03:15]Write i2c OK [14:03:15]MH_I2C_Read... [14:03:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:03:15]Read from MH i2c: E2 [14:03:15]MH_I2C_Read... [14:03:15]Read from MH i2c: E2 0E 00 [14:03:15]MH_I2C_Read... [14:03:15]Read from MH i2c: E2 0E 00 DC 5D 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 15 [14:03:15]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [14:03:15]wFMCommunicate OK [14:03:15]SAM_PROTO_GetShiftState done [14:03:15]FM_GetShiftState done [14:03:15]opened in 1729469754 [14:03:15]opened+sec_in_day 1729556154 [14:03:15]quantity*price = 300076 [14:03:15]sum+1 = 300077 [14:03:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.76 ИТОГО: 3000.00 Внесено: 3000.00 СДАЧА: 0.00 НСП 1% : 26.55 НДС 12% : 318.66 Наличными: 3000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 217 21.10.2024 14:03 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 187753 ФПД: 21368365504508 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T140319&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187753&fm=21368365504508&tin=02508201610067®Number=0000000000100030&sum=300000 [14:03:16]StoreToDocumentArchive [14:03:16]shift 460 fd 187753 [14:03:16]save to /storage/0460/doc_00187753 [14:03:16]save last doc name /storage/0460/doc_00187753 to /storage/kkm_last_doc_name [14:03:16]save OK [14:03:16]Clear old archive folders... [14:03:16]ProcessDocumentItem done err = 0, tmpTLVsize=257 [14:03:16]tlvbuf is 010A0FE0 [14:03:16]SAM_PROTO_ClearQueue [14:03:16]wFMCommunicate request_size=4 [14:03:16]MH_SAM_APDU [14:03:16]CAPDU: 80 09 00 00 [14:03:16]Write to MH i2c: E2 08 00 E9 5D 80 09 00 00 00 00 00 00 B8 [14:03:16]Write i2c OK [14:03:16]MH_I2C_Read... [14:03:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:03:16]Read from MH i2c: E2 [14:03:16]MH_I2C_Read... [14:03:16]Read from MH i2c: E2 03 00 [14:03:16]MH_I2C_Read... [14:03:16]Read from MH i2c: E2 03 00 E9 5D 00 90 00 BA [14:03:16]RAPDU: 90 00 [14:03:16]wFMCommunicate OK [14:03:16]SAM_PROTO_ClearQueue done [14:03:16]KKMCreateOFDPacket [14:03:16]OFDProtocolAddRootSTLVToBuf [14:03:16]FM_MakeSignedData [14:03:16]FM_MakeSignedData [14:03:16]SAM_PROTO_SignData [14:03:16]wFMCommunicate request_size=4 [14:03:16]MH_SAM_APDU [14:03:16]CAPDU: 80 0D 01 02 [14:03:16]Write to MH i2c: E2 08 00 EA 5D 80 0D 01 02 00 00 00 00 C0 [14:03:16]Write i2c OK [14:03:16]MH_I2C_Read... [14:03:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:03:16]Read from MH i2c: E2 [14:03:16]MH_I2C_Read... [14:03:16]Read from MH i2c: E2 03 00 [14:03:16]MH_I2C_Read... [14:03:16]Read from MH i2c: E2 03 00 EA 5D 00 90 00 BB [14:03:16]RAPDU: 90 00 [14:03:16]wFMCommunicate OK [14:03:16]wFMCommunicate request_size=255 [14:03:16]MH_SAM_APDU [14:03:16]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D6 97 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D9 00 00 00 F4 03 04 00 27 5F 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 69 DD 02 [14:03:16]Write to MH i2c: E2 02 01 EB 5D 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D6 97 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D9 00 00 00 F4 03 04 00 27 5F 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 69 DD 02 00 00 F0 [14:03:16]Write i2c OK [14:03:16]MH_I2C_Read... [14:03:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:03:16]Read from MH i2c: E2 [14:03:16]MH_I2C_Read... [14:03:16]Read from MH i2c: E2 03 00 [14:03:16]MH_I2C_Read... [14:03:16]Read from MH i2c: E2 03 00 EB 5D 00 90 00 BC [14:03:16]RAPDU: 90 00 [14:03:16]wFMCommunicate OK [14:03:16]wFMCommunicate request_size=16 [14:03:16]MH_SAM_APDU [14:03:16]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 13 6F 35 D5 D7 FC [14:03:16]Write to MH i2c: E2 13 00 EC 5D 80 0D 02 02 0B 00 00 35 04 06 00 13 6F 35 D5 D7 FC 00 00 77 [14:03:16]Write i2c OK [14:03:16]MH_I2C_Read... [14:03:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:03:16]Read from MH i2c: E2 [14:03:16]MH_I2C_Read... [14:03:16]Read from MH i2c: E2 03 00 [14:03:16]MH_I2C_Read... [14:03:16]Read from MH i2c: E2 03 00 EC 5D 00 90 00 BD [14:03:16]RAPDU: 90 00 [14:03:16]wFMCommunicate OK [14:03:16]wFMCommunicate request_size=4 [14:03:16]MH_SAM_APDU [14:03:16]CAPDU: 80 0D 03 02 [14:03:16]Write to MH i2c: E2 08 00 ED 5D 80 0D 03 02 00 00 00 00 C5 [14:03:16]Write i2c OK [14:03:16]MH_I2C_Read... [14:03:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:03:17]Read from MH i2c: E2 [14:03:17]MH_I2C_Read... [14:03:17]Read from MH i2c: E2 0B 00 [14:03:17]MH_I2C_Read... [14:03:17]Read from MH i2c: E2 0B 00 ED 5D 00 77 4C 32 4F FC 01 0A 02 90 00 13 [14:03:17]RAPDU: 77 4C 32 4F FC 01 0A 02 90 00 [14:03:17]wFMCommunicate OK [14:03:17]SAM_PROTO_SignData done [14:03:17]FM_MakeSignedData done [14:03:17]CreateOFDProtocolMessage [14:03:17]wFMCommunicate request_size=4 [14:03:17]MH_SAM_APDU [14:03:17]CAPDU: 80 11 00 00 [14:03:17]Write to MH i2c: E2 08 00 EE 5D 80 11 00 00 00 00 00 00 C5 [14:03:17]Write i2c OK [14:03:17]MH_I2C_Read... [14:03:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:03:17]Read from MH i2c: E2 [14:03:17]MH_I2C_Read... [14:03:17]Read from MH i2c: E2 17 00 [14:03:17]MH_I2C_Read... [14:03:17]Read from MH i2c: E2 17 00 EE 5D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 13 [14:03:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [14:03:17]wFMCommunicate OK [14:03:17]CreateOFDProtocolMessage done [14:03:17]OFDSenderStorePacket 187753 [14:03:17]StoreOFDPacket docnum=187753 [14:03:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 BD 71 0D 01 46 11 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D6 97 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D9 00 00 00 F4 03 04 00 27 5F 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 69 DD 02 00 35 04 06 00 13 6F 35 D5 D7 FC 77 4C 32 4F FC 01 0A 02 [14:03:17]CheckFolder [14:03:17]dirname=/storage/ofd_packets [14:03:17]CheckFolder done [14:03:17]ProducePacketName [14:03:17]name=ofd_packets/00187753 [14:03:17]NVStorageSaveData ofd_packets/00187753 [14:03:17]File name is /storage/ofd_packets/00187753 [14:03:17]Write 307 bytes [14:03:17]NVStorageSaveData done [14:03:17]OFDSenderStorePacket done [14:03:17]KKMCreateOFDPacket done [14:03:17]NVStorageSaveData kkm_last_timestamp [14:03:17]File name is /storage/kkm_last_timestamp [14:03:17]Write 4 bytes [14:03:17]NVStorageSaveData done [14:03:17]ExternCall_PrintAddStr [14:03:17]wPrintStart [14:03:17]Write to MH i2c: 01 00 00 EF 5D 4C [14:03:17]Write i2c OK [14:03:17]MH_I2C_Read... [14:03:17]Read from MH i2c: 01 [14:03:17]MH_I2C_Read... [14:03:17]Read from MH i2c: 01 07 00 [14:03:17]MH_I2C_Read... [14:03:17]Read from MH i2c: 01 07 00 EF 5D 00 00 00 00 00 FF 0F 61 [14:03:17]RasterBufferAndPrint [14:03:17]line Счет N : (1)209805 [14:03:17]line ИНН: 02508201610067 [14:03:17]line Контрольно-Кассовый Чек [14:03:17]line ПРОДАЖА [14:03:17]line ТРК (МРК, ГНК) : 11 [14:03:17]line Товар: 2710194210 [14:03:17]line D-ENERGY ДТ-К-5 [14:03:17]line 38.870 * 77.20 [14:03:17]line = 3000.76 [14:03:17]line НДС 12% НСП 1% [14:03:17]line > о реализуемом товаре [14:03:17]line ОКРУГЛЕНИЕ: -0.76 [14:03:17]line ИТОГО: 3000.00 [14:03:17]line Внесено: 3000.00 [14:03:17]line СДАЧА: 0.00 [14:03:17]line НСП 1% : 26.55 [14:03:17]line НДС 12% : 318.66 [14:03:17]line Наличными: 3000.00 [14:03:17]line Безнал.: 0.00 [14:03:17]line Место: АЗС № 86 "Партнер Нефть" [14:03:17]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [14:03:17]line СНО: Общий режим [14:03:17]line Чек 217 21.10.2024 14:03 [14:03:17]line Смена: 460 ФФД: 1.0 [14:03:17]line ЗНМ: 0300000155 [14:03:17]line РНМ: 0000000000100030 [14:03:17]line Версия ККМ: 001 [14:03:17]line ФМ: 0000000000965340 [14:03:17]line ФД: 187753 [14:03:17]line ФПД: 21368365504508 [14:03:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T140319&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187753&fm=21368365504508&tin=02508201610067®Number=0000000000100030&sum=300000 [14:03:17]OFD Sender: Processing packet 187753 [packets to send 1062, broken 1061] [14:03:17]ProducePacketName [14:03:17]name=ofd_packets/00187753 [14:03:17]OFD Sender: To server: pG, [14:03:17]CommunicateWithHost lk.salyk.kg:30040 [14:03:17]ConnectInit lk.salyk.kg [14:03:17]written 0, free lines is 4095 [14:03:17]Connected sock=10 [14:03:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 BD 71 0D 01 46 11 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D6 97 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D9 00 00 00 F4 03 04 00 27 5F 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 69 DD 02 00 35 04 06 00 13 6F 35 D5 D7 FC 77 4C 32 4F FC 01 0A 02 [14:03:17]Write to MH i2c: 01 00 00 1A 5E 78 [14:03:17]Write i2c OK [14:03:17]MH_I2C_Read... [14:03:17]Read from MH i2c: 01 [14:03:17]MH_I2C_Read... [14:03:17]Read from MH i2c: 01 07 00 [14:03:17]MH_I2C_Read... [14:03:17]Read from MH i2c: 01 07 00 1A 5E 00 00 00 00 00 63 0C EE [14:03:17]RasterBufferAndPrint [14:03:17]line [14:03:17]line [14:03:17]line [14:03:17]line [14:03:17]line [14:03:17]written 0, free lines is 3174 [14:03:17]MH_Cut [14:03:17]Write to MH i2c: D1 01 00 21 5E 01 51 [14:03:17]Write i2c OK [14:03:17]MH_I2C_Read... [14:03:17]Read from MH i2c: D1 [14:03:17]MH_I2C_Read... [14:03:17]Read from MH i2c: D1 01 00 [14:03:17]MH_I2C_Read... [14:03:17]Read from MH i2c: D1 01 00 21 5E 00 50 [14:03:17]Write to MH i2c: 01 00 00 22 5E 80 [14:03:17]Write i2c OK [14:03:17]MH_I2C_Read... [14:03:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 60 2C 47 00 A6 D9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 69 DD 02 00 F4 03 04 00 17 09 16 67 B6 04 01 00 00 B4 6A 85 3F 23 C8 61 4F [14:03:18]CommunicateWithHost err = 0 [14:03:18]CheckOFDResponse [14:03:18]1017 (14) - 77093643461234 [14:03:18]1041 (16) - 0000000000965340 [14:03:18]1040 (4) - 187753 [14:03:18]1012 (4) - 21.10.2024 07:56 [14:03:18]1206 (1) - 0 [14:03:18]OFD Sender: Remove packet 187753 [14:03:18]ProducePacketName [14:03:18]name=ofd_packets/00187753 [14:03:18]NVStorageDeleteData [14:03:18]OFD Sender: No OFD packet to send [14:03:19]*** Cut start [14:03:19]*** Partial cut [14:03:19]*** CUTSNS_PIN = 1 [14:03:19]*** CUTSNS_PIN = 0 [14:03:19]*** Brake cut motor [14:03:19]Read from MH i2c: 01 [14:03:19]MH_I2C_Read... [14:03:19]*** Stop cut motor [14:03:19]*** Cut end [14:03:19]Read from MH i2c: 01 07 00 [14:03:19]MH_I2C_Read... [14:03:19]Read from MH i2c: 01 07 00 22 5E 00 00 00 00 00 FF 0F 95 [14:03:19]process_action close_receipt done [14:03:19]requested_data is exist [14:03:19]produce_requested_data [14:03:19]requested_item fm.sn is exist - process it [14:03:19]wFMCommunicate request_size=4 [14:03:19]MH_SAM_APDU [14:03:19]CAPDU: 80 11 00 00 [14:03:19]Write to MH i2c: E2 08 00 23 5E 80 11 00 00 00 00 00 00 FB [14:03:19]Write i2c OK [14:03:19]MH_I2C_Read... [14:03:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:03:19]Read from MH i2c: E2 [14:03:19]MH_I2C_Read... [14:03:19]Read from MH i2c: E2 17 00 [14:03:19]MH_I2C_Read... [14:03:19]Read from MH i2c: E2 17 00 23 5E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 49 [14:03:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [14:03:19]wFMCommunicate OK [14:03:19]requested_item fd.num is exist - process it [14:03:19]SAM_PROTO_GetFieldsCounters [14:03:19]wFMCommunicate request_size=4 [14:03:19]MH_SAM_APDU [14:03:19]CAPDU: 80 13 00 00 [14:03:19]Write to MH i2c: E2 08 00 24 5E 80 13 00 00 00 00 00 00 FE [14:03:19]Write i2c OK [14:03:19]MH_I2C_Read... [14:03:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:03:19]Read from MH i2c: E2 [14:03:19]MH_I2C_Read... [14:03:19]Read from MH i2c: E2 62 00 [14:03:19]MH_I2C_Read... [14:03:19]Read from MH i2c: E2 62 00 24 5E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 69 DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 D9 00 00 00 5E 04 04 00 D9 00 00 00 57 04 04 00 DA 00 00 00 19 04 04 00 00 00 00 00 90 00 A5 [14:03:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 69 DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 D9 00 00 00 5E 04 04 00 D9 00 00 00 57 04 04 00 DA 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:03:19]wFMCommunicate OK [14:03:19]SAM_PROTO_GetFieldsCounters done [14:03:19]requested_item shift.num is exist - process it [14:03:19]requested_item shift.opened is exist - process it [14:03:19]req_shift_opened [14:03:19]FM_GetShiftState [14:03:19]SAM_PROTO_GetShiftState [14:03:19]wFMCommunicate request_size=4 [14:03:19]MH_SAM_APDU [14:03:19]CAPDU: 80 13 01 00 [14:03:19]Write to MH i2c: E2 08 00 25 5E 80 13 01 00 00 00 00 00 00 [14:03:19]Write i2c OK [14:03:19]MH_I2C_Read... [14:03:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:03:19]Read from MH i2c: E2 [14:03:19]MH_I2C_Read... [14:03:19]Read from MH i2c: E2 0E 00 [14:03:19]MH_I2C_Read... [14:03:19]Read from MH i2c: E2 0E 00 25 5E 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 5F [14:03:19]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [14:03:19]wFMCommunicate OK [14:03:19]SAM_PROTO_GetShiftState done [14:03:19]FM_GetShiftState done [14:03:19]req_shift_opened done [14:03:19]requested_item shift.open_date is exist - process it [14:03:19]req_shift_open_date [14:03:19]req_shift_open_date done [14:03:19]produce_requested_data done [14:03:19]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187753,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [14:03:19]process_action_free close_receipt [14:03:19]json_value_free [14:03:19]json_value_free done [14:03:19]process_json_proto returns [14:03:19]Send response to host [14:03:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187753,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [14:03:19]free response buf [14:03:19]execute_script done [14:03:19]execute_script returns [14:03:19]free content buf [14:03:19]Sock 9.Close socket [14:03:19]Sock 9.Thread stoped [14:03:23]OFD Sender: No OFD packet to send [14:03:28]OFD Sender: No OFD packet to send [14:03:33]OFD Sender: No OFD packet to send [14:03:38]OFD Sender: No OFD packet to send [14:03:43]OFD Sender: No OFD packet to send [14:03:48]OFD Sender: No OFD packet to send [14:03:53]OFD Sender: No OFD packet to send [14:03:58]OFD Sender: No OFD packet to send [14:04:03]OFD Sender: No OFD packet to send [14:04:08]OFD Sender: No OFD packet to send [14:04:13]OFD Sender: No OFD packet to send [14:04:18]OFD Sender: No OFD packet to send [14:04:23]OFD Sender: No OFD packet to send [14:04:28]OFD Sender: No OFD packet to send [14:04:33]OFD Sender: No OFD packet to send [14:04:38]OFD Sender: No OFD packet to send [14:04:43]OFD Sender: No OFD packet to send [14:04:48]OFD Sender: No OFD packet to send [14:04:54]OFD Sender: No OFD packet to send [14:04:59]OFD Sender: No OFD packet to send [14:05:04]OFD Sender: No OFD packet to send [14:05:09]OFD Sender: No OFD packet to send [14:05:14]OFD Sender: No OFD packet to send [14:05:19]OFD Sender: No OFD packet to send [14:05:24]OFD Sender: No OFD packet to send [14:05:29]OFD Sender: No OFD packet to send [14:05:34]OFD Sender: No OFD packet to send [14:05:39]OFD Sender: No OFD packet to send [14:05:44]OFD Sender: No OFD packet to send [14:05:44]accept exits with 8 [14:05:44]New connection [14:05:44]New thread 3067157860 created [14:05:44]Thread 3067014500 joined [14:05:44]Waiting for new connection... [14:05:44] Sock 8.Parse request [14:05:44]Sock 8.Check first char [14:05:44]Sock 8.First char is OK [14:05:44]request: POST /json_proto HTTP/1.0 [14:05:44]Method: POST [14:05:44]URL: /json_proto [14:05:44]Method is POST - this is cgi request [14:05:44]url: /json_proto [14:05:44]query_string will be loaded in cgi processing [14:05:44]execute_cgi json_proto POST (null) [14:05:44]execute_cgi path=json_proto method=POST [14:05:44]POST find Content-Length [14:05:44]Host: 172.17.42.131:8080 [14:05:44]Content-Length: 688 [14:05:44]Content-Type: application/json [14:05:44] [14:05:44]POST finish read [14:05:44]Found Content-Length = 688 [14:05:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209806", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 12.960, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:05:44]execute_script... [14:05: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)209806", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 12.960, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:05:44]POST & json_proto [14:05:44]process_json_proto [14:05:44]json parsed OK: [14:05:44]protocol is kg_v1.0 [14:05:44]action value=close_receipt [14:05:44]process_action close_receipt [14:05:44]cmd_close_receipt [14:05:44]MH_GetDate [14:05:44]Write to MH i2c: F0 00 00 26 5E 73 [14:05:44]Write i2c OK [14:05:44]MH_I2C_Read... [14:05:44]Read from MH i2c: F0 [14:05:44]MH_I2C_Read... [14:05:44]Read from MH i2c: F0 09 00 [14:05:44]MH_I2C_Read... [14:05:44]Read from MH i2c: F0 09 00 26 5E 00 BC 5F 16 67 A0 18 CA 66 FC [14:05:44]GetLastDocTimeStamp 1729519399 [14:05:44]current date 1729519548 [14:05:44]FM_GetShiftState [14:05:44]SAM_PROTO_GetShiftState [14:05:44]wFMCommunicate request_size=4 [14:05:44]MH_SAM_APDU [14:05:44]CAPDU: 80 13 01 00 [14:05:44]Write to MH i2c: E2 08 00 27 5E 80 13 01 00 00 00 00 00 02 [14:05:44]Write i2c OK [14:05:44]MH_I2C_Read... [14:05:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:05:44]Read from MH i2c: E2 [14:05:44]MH_I2C_Read... [14:05:44]Read from MH i2c: E2 0E 00 [14:05:44]MH_I2C_Read... [14:05:44]Read from MH i2c: E2 0E 00 27 5E 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 61 [14:05:44]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [14:05:44]wFMCommunicate OK [14:05:44]SAM_PROTO_GetShiftState done [14:05:44]FM_GetShiftState done [14:05:44]opened in 1729469754 [14:05:44]opened+sec_in_day 1729556154 [14:05:44]quantity*price = 100051 [14:05:44]sum+1 = 100052 [14:05:44]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 218 21.10.2024 14:05 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 187754 ФПД: 116257051725883 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T140548&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187754&fm=116257051725883&tin=02508201610067®Number=0000000000100030&sum=100000 [14:05:45]StoreToDocumentArchive [14:05:45]shift 460 fd 187754 [14:05:45]save to /storage/0460/doc_00187754 [14:05:45]save last doc name /storage/0460/doc_00187754 to /storage/kkm_last_doc_name [14:05:45]save OK [14:05:45]Clear old archive folders... [14:05:45]ProcessDocumentItem done err = 0, tmpTLVsize=257 [14:05:45]tlvbuf is 010907B0 [14:05:45]SAM_PROTO_ClearQueue [14:05:45]wFMCommunicate request_size=4 [14:05:45]MH_SAM_APDU [14:05:45]CAPDU: 80 09 00 00 [14:05:45]Write to MH i2c: E2 08 00 34 5E 80 09 00 00 00 00 00 00 04 [14:05:45]Write i2c OK [14:05:45]MH_I2C_Read... [14:05:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:05:45]Read from MH i2c: E2 [14:05:45]MH_I2C_Read... [14:05:45]Read from MH i2c: E2 03 00 [14:05:45]MH_I2C_Read... [14:05:45]Read from MH i2c: E2 03 00 34 5E 00 90 00 06 [14:05:45]RAPDU: 90 00 [14:05:45]wFMCommunicate OK [14:05:45]SAM_PROTO_ClearQueue done [14:05:45]KKMCreateOFDPacket [14:05:45]OFDProtocolAddRootSTLVToBuf [14:05:45]FM_MakeSignedData [14:05:45]FM_MakeSignedData [14:05:45]SAM_PROTO_SignData [14:05:45]wFMCommunicate request_size=4 [14:05:45]MH_SAM_APDU [14:05:45]CAPDU: 80 0D 01 02 [14:05:45]Write to MH i2c: E2 08 00 35 5E 80 0D 01 02 00 00 00 00 0C [14:05:45]Write i2c OK [14:05:45]MH_I2C_Read... [14:05:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:05:45]Read from MH i2c: E2 [14:05:45]MH_I2C_Read... [14:05:45]Read from MH i2c: E2 03 00 [14:05:45]MH_I2C_Read... [14:05:45]Read from MH i2c: E2 03 00 35 5E 00 90 00 07 [14:05:45]RAPDU: 90 00 [14:05:45]wFMCommunicate OK [14:05:45]wFMCommunicate request_size=255 [14:05:45]MH_SAM_APDU [14:05:45]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DA 00 00 00 F4 03 04 00 BC 5F 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 6A DD 02 [14:05:45]Write to MH i2c: E2 02 01 36 5E 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 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DA 00 00 00 F4 03 04 00 BC 5F 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 6A DD 02 00 00 F1 [14:05:45]Write i2c OK [14:05:45]MH_I2C_Read... [14:05:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:05:45]Read from MH i2c: E2 [14:05:45]MH_I2C_Read... [14:05:45]Read from MH i2c: E2 03 00 [14:05:45]MH_I2C_Read... [14:05:45]Read from MH i2c: E2 03 00 36 5E 00 90 00 08 [14:05:45]RAPDU: 90 00 [14:05:45]wFMCommunicate OK [14:05:45]wFMCommunicate request_size=16 [14:05:45]MH_SAM_APDU [14:05:45]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 69 BC 34 45 50 3B [14:05:45]Write to MH i2c: E2 13 00 37 5E 80 0D 02 02 0B 00 00 35 04 06 00 69 BC 34 45 50 3B 00 00 8D [14:05:45]Write i2c OK [14:05:45]MH_I2C_Read... [14:05:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:05:45]Read from MH i2c: E2 [14:05:45]MH_I2C_Read... [14:05:45]Read from MH i2c: E2 03 00 [14:05:45]MH_I2C_Read... [14:05:45]Read from MH i2c: E2 03 00 37 5E 00 90 00 09 [14:05:45]RAPDU: 90 00 [14:05:45]wFMCommunicate OK [14:05:45]wFMCommunicate request_size=4 [14:05:45]MH_SAM_APDU [14:05:45]CAPDU: 80 0D 03 02 [14:05:45]Write to MH i2c: E2 08 00 38 5E 80 0D 03 02 00 00 00 00 11 [14:05:45]Write i2c OK [14:05:45]MH_I2C_Read... [14:05:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:05:45]Read from MH i2c: E2 [14:05:45]MH_I2C_Read... [14:05:45]Read from MH i2c: E2 0B 00 [14:05:45]MH_I2C_Read... [14:05:45]Read from MH i2c: E2 0B 00 38 5E 00 D6 3E 80 F9 A3 F8 EF 84 90 00 AD [14:05:45]RAPDU: D6 3E 80 F9 A3 F8 EF 84 90 00 [14:05:45]wFMCommunicate OK [14:05:45]SAM_PROTO_SignData done [14:05:45]FM_MakeSignedData done [14:05:45]CreateOFDProtocolMessage [14:05:45]wFMCommunicate request_size=4 [14:05:45]MH_SAM_APDU [14:05:45]CAPDU: 80 11 00 00 [14:05:45]Write to MH i2c: E2 08 00 39 5E 80 11 00 00 00 00 00 00 11 [14:05:45]Write i2c OK [14:05:45]MH_I2C_Read... [14:05:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:05:45]Read from MH i2c: E2 [14:05:45]MH_I2C_Read... [14:05:45]Read from MH i2c: E2 17 00 [14:05:45]MH_I2C_Read... [14:05:45]Read from MH i2c: E2 17 00 39 5E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 5F [14:05:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [14:05:45]wFMCommunicate OK [14:05:45]CreateOFDProtocolMessage done [14:05:45]OFDSenderStorePacket 187754 [14:05:45]StoreOFDPacket docnum=187754 [14:05:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 17 BE 0D 01 7D B5 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 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DA 00 00 00 F4 03 04 00 BC 5F 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 6A DD 02 00 35 04 06 00 69 BC 34 45 50 3B D6 3E 80 F9 A3 F8 EF 84 [14:05:45]CheckFolder [14:05:45]dirname=/storage/ofd_packets [14:05:45]CheckFolder done [14:05:45]ProducePacketName [14:05:45]name=ofd_packets/00187754 [14:05:45]NVStorageSaveData ofd_packets/00187754 [14:05:45]File name is /storage/ofd_packets/00187754 [14:05:45]Write 307 bytes [14:05:45]NVStorageSaveData done [14:05:45]OFDSenderStorePacket done [14:05:45]KKMCreateOFDPacket done [14:05:45]NVStorageSaveData kkm_last_timestamp [14:05:45]File name is /storage/kkm_last_timestamp [14:05:45]Write 4 bytes [14:05:45]NVStorageSaveData done [14:05:45]ExternCall_PrintAddStr [14:05:45]wPrintStart [14:05:45]Write to MH i2c: 01 00 00 3A 5E 98 [14:05:45]Write i2c OK [14:05:45]MH_I2C_Read... [14:05:45]Read from MH i2c: 01 [14:05:45]MH_I2C_Read... [14:05:45]Read from MH i2c: 01 07 00 [14:05:45]MH_I2C_Read... [14:05:45]Read from MH i2c: 01 07 00 3A 5E 00 00 00 00 00 FF 0F AD [14:05:45]RasterBufferAndPrint [14:05:45]line Счет N : (1)209806 [14:05:45]line ИНН: 02508201610067 [14:05:45]line Контрольно-Кассовый Чек [14:05:45]line ПРОДАЖА [14:05:45]line ТРК (МРК, ГНК) : 21 [14:05:45]line Товар: 2710194210 [14:05:45]line D-ENERGY ДТ-К-5 [14:05:45]line 12.960 * 77.20 [14:05:45]line = 1000.51 [14:05:45]line НДС 12% НСП 1% [14:05:45]line > о реализуемом товаре [14:05:45]line ОКРУГЛЕНИЕ: -0.51 [14:05:45]line ИТОГО: 1000.00 [14:05:45]line Внесено: 1000.00 [14:05:45]line СДАЧА: 0.00 [14:05:45]line НСП 1% : 8.85 [14:05:45]line НДС 12% : 106.25 [14:05:45]line Наличными: 1000.00 [14:05:45]line Безнал.: 0.00 [14:05:45]line Место: АЗС № 86 "Партнер Нефть" [14:05:45]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [14:05:45]line СНО: Общий режим [14:05:45]line Чек 218 21.10.2024 14:05 [14:05:45]line Смена: 460 ФФД: 1.0 [14:05:45]line ЗНМ: 0300000155 [14:05:45]line РНМ: 0000000000100030 [14:05:45]line Версия ККМ: 001 [14:05:45]line ФМ: 0000000000965340 [14:05:45]line ФД: 187754 [14:05:45]line ФПД: 116257051725883 [14:05:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T140548&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187754&fm=116257051725883&tin=02508201610067®Number=0000000000100030&sum=100000 [14:05:45]written 0, free lines is 4095 [14:05:46]OFD Sender: Processing packet 187754 [packets to send 1062, broken 1061] [14:05:46]ProducePacketName [14:05:46]name=ofd_packets/00187754 [14:05:46]OFD Sender: To server: pG, [14:05:46]CommunicateWithHost lk.salyk.kg:30040 [14:05:46]ConnectInit lk.salyk.kg [14:05:46]Connected sock=10 [14:05:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 17 BE 0D 01 7D B5 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 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DA 00 00 00 F4 03 04 00 BC 5F 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 6A DD 02 00 35 04 06 00 69 BC 34 45 50 3B D6 3E 80 F9 A3 F8 EF 84 [14:05:46]Write to MH i2c: 01 00 00 65 5E C3 [14:05:46]Write i2c OK [14:05:46]MH_I2C_Read... [14:05:46]Read from MH i2c: 01 [14:05:46]MH_I2C_Read... [14:05:46]Read from MH i2c: 01 07 00 [14:05:46]MH_I2C_Read... [14:05:46]Read from MH i2c: 01 07 00 65 5E 00 00 00 00 00 65 0C 3B [14:05:46]RasterBufferAndPrint [14:05:46]line [14:05:46]line [14:05:46]line [14:05:46]line [14:05:46]line [14:05:46]written 0, free lines is 3177 [14:05:46]MH_Cut [14:05:46]Write to MH i2c: D1 01 00 6C 5E 01 9C [14:05:46]Write i2c OK [14:05:46]MH_I2C_Read... [14:05:46]Read from MH i2c: D1 [14:05:46]MH_I2C_Read... [14:05:46]Read from MH i2c: D1 01 00 [14:05:46]MH_I2C_Read... [14:05:46]Read from MH i2c: D1 01 00 6C 5E 00 9B [14:05:46]Write to MH i2c: 01 00 00 6D 5E CB [14:05:46]Write i2c OK [14:05:46]MH_I2C_Read... [14:05:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 8C 55 47 00 1E FD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 6A DD 02 00 F4 03 04 00 AC 09 16 67 B6 04 01 00 00 18 DF 60 14 07 B9 5E 89 [14:05:46]CommunicateWithHost err = 0 [14:05:46]CheckOFDResponse [14:05:46]1017 (14) - 77093643461234 [14:05:46]1041 (16) - 0000000000965340 [14:05:46]1040 (4) - 187754 [14:05:46]1012 (4) - 21.10.2024 07:58 [14:05:46]1206 (1) - 0 [14:05:46]OFD Sender: Remove packet 187754 [14:05:46]ProducePacketName [14:05:46]name=ofd_packets/00187754 [14:05:46]NVStorageDeleteData [14:05:47]OFD Sender: No OFD packet to send [14:05:47]*** Cut start [14:05:47]*** Partial cut [14:05:47]*** CUTSNS_PIN = 1 [14:05:47]*** CUTSNS_PIN = 0 [14:05:47]*** Brake cut motor [14:05:48]Read from MH i2c: 01 [14:05:48]MH_I2C_Read... [14:05:48]*** Stop cut motor [14:05:48]*** Cut end [14:05:48]Read from MH i2c: 01 07 00 [14:05:48]MH_I2C_Read... [14:05:48]Read from MH i2c: 01 07 00 6D 5E 00 00 00 00 00 FF 0F E0 [14:05:48]process_action close_receipt done [14:05:48]requested_data is exist [14:05:48]produce_requested_data [14:05:48]requested_item fm.sn is exist - process it [14:05:48]wFMCommunicate request_size=4 [14:05:48]MH_SAM_APDU [14:05:48]CAPDU: 80 11 00 00 [14:05:48]Write to MH i2c: E2 08 00 6E 5E 80 11 00 00 00 00 00 00 46 [14:05:48]Write i2c OK [14:05:48]MH_I2C_Read... [14:05:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:05:48]Read from MH i2c: E2 [14:05:48]MH_I2C_Read... [14:05:48]Read from MH i2c: E2 17 00 [14:05:48]MH_I2C_Read... [14:05:48]Read from MH i2c: E2 17 00 6E 5E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 94 [14:05:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [14:05:48]wFMCommunicate OK [14:05:48]requested_item fd.num is exist - process it [14:05:48]SAM_PROTO_GetFieldsCounters [14:05:48]wFMCommunicate request_size=4 [14:05:48]MH_SAM_APDU [14:05:48]CAPDU: 80 13 00 00 [14:05:48]Write to MH i2c: E2 08 00 6F 5E 80 13 00 00 00 00 00 00 49 [14:05:48]Write i2c OK [14:05:48]MH_I2C_Read... [14:05:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:05:48]Read from MH i2c: E2 [14:05:48]MH_I2C_Read... [14:05:48]Read from MH i2c: E2 62 00 [14:05:48]MH_I2C_Read... [14:05:48]Read from MH i2c: E2 62 00 6F 5E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 6A DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 DA 00 00 00 5E 04 04 00 DA 00 00 00 57 04 04 00 DB 00 00 00 19 04 04 00 00 00 00 00 90 00 F4 [14:05:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 6A DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 DA 00 00 00 5E 04 04 00 DA 00 00 00 57 04 04 00 DB 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:05:48]wFMCommunicate OK [14:05:48]SAM_PROTO_GetFieldsCounters done [14:05:48]requested_item shift.num is exist - process it [14:05:48]requested_item shift.opened is exist - process it [14:05:48]req_shift_opened [14:05:48]FM_GetShiftState [14:05:48]SAM_PROTO_GetShiftState [14:05:48]wFMCommunicate request_size=4 [14:05:48]MH_SAM_APDU [14:05:48]CAPDU: 80 13 01 00 [14:05:48]Write to MH i2c: E2 08 00 70 5E 80 13 01 00 00 00 00 00 4B [14:05:48]Write i2c OK [14:05:48]MH_I2C_Read... [14:05:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:05:48]Read from MH i2c: E2 [14:05:48]MH_I2C_Read... [14:05:48]Read from MH i2c: E2 0E 00 [14:05:48]MH_I2C_Read... [14:05:48]Read from MH i2c: E2 0E 00 70 5E 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 AA [14:05:48]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [14:05:48]wFMCommunicate OK [14:05:48]SAM_PROTO_GetShiftState done [14:05:48]FM_GetShiftState done [14:05:48]req_shift_opened done [14:05:48]requested_item shift.open_date is exist - process it [14:05:48]req_shift_open_date [14:05:48]req_shift_open_date done [14:05:48]produce_requested_data done [14:05:48]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187754,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [14:05:48]process_action_free close_receipt [14:05:48]json_value_free [14:05:48]json_value_free done [14:05:48]process_json_proto returns [14:05:48]Send response to host [14:05:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187754,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [14:05:48]free response buf [14:05:48]execute_script done [14:05:48]execute_script returns [14:05:48]free content buf [14:05:48]Sock 8.Close socket [14:05:48]Sock 8.Thread stoped [14:05:52]OFD Sender: No OFD packet to send [14:05:57]OFD Sender: No OFD packet to send [14:06:02]OFD Sender: No OFD packet to send [14:06:07]OFD Sender: No OFD packet to send [14:06:12]OFD Sender: No OFD packet to send [14:06:17]OFD Sender: No OFD packet to send [14:06:22]OFD Sender: No OFD packet to send [14:06:27]OFD Sender: No OFD packet to send [14:06:32]OFD Sender: No OFD packet to send [14:06:37]OFD Sender: No OFD packet to send [14:06:42]OFD Sender: No OFD packet to send [14:06:47]OFD Sender: No OFD packet to send [14:06:52]OFD Sender: No OFD packet to send [14:06:57]OFD Sender: No OFD packet to send [14:07:02]OFD Sender: No OFD packet to send [14:07:07]OFD Sender: No OFD packet to send [14:07:12]OFD Sender: No OFD packet to send [14:07:17]OFD Sender: No OFD packet to send [14:07:22]OFD Sender: No OFD packet to send [14:07:27]OFD Sender: No OFD packet to send [14:07:32]OFD Sender: No OFD packet to send [14:07:37]OFD Sender: No OFD packet to send [14:07:42]OFD Sender: No OFD packet to send [14:07:47]OFD Sender: No OFD packet to send [14:07:52]OFD Sender: No OFD packet to send [14:07:57]OFD Sender: No OFD packet to send [14:08:02]OFD Sender: No OFD packet to send [14:08:07]OFD Sender: No OFD packet to send [14:08:12]OFD Sender: No OFD packet to send [14:08:17]OFD Sender: No OFD packet to send [14:08:22]OFD Sender: No OFD packet to send [14:08:27]OFD Sender: No OFD packet to send [14:08:32]OFD Sender: No OFD packet to send [14:08:37]OFD Sender: No OFD packet to send [14:08:42]OFD Sender: No OFD packet to send [14:08:47]OFD Sender: No OFD packet to send [14:08:52]OFD Sender: No OFD packet to send [14:08:57]OFD Sender: No OFD packet to send [14:09:02]OFD Sender: No OFD packet to send [14:09:08]OFD Sender: No OFD packet to send [14:09:13]OFD Sender: No OFD packet to send [14:09:18]OFD Sender: No OFD packet to send [14:09:23]OFD Sender: No OFD packet to send [14:09:28]OFD Sender: No OFD packet to send [14:09:33]OFD Sender: No OFD packet to send [14:09:38]OFD Sender: No OFD packet to send [14:09:43]OFD Sender: No OFD packet to send [14:09:48]OFD Sender: No OFD packet to send [14:09:53]OFD Sender: No OFD packet to send [14:09:58]OFD Sender: No OFD packet to send [14:10:03]OFD Sender: No OFD packet to send [14:10:08]OFD Sender: No OFD packet to send [14:10:13]OFD Sender: No OFD packet to send [14:10:18]OFD Sender: No OFD packet to send [14:10:23]OFD Sender: No OFD packet to send [14:10:28]OFD Sender: No OFD packet to send [14:10:33]OFD Sender: No OFD packet to send [14:10:38]OFD Sender: No OFD packet to send [14:10:43]OFD Sender: No OFD packet to send [14:10:48]OFD Sender: No OFD packet to send [14:10:53]OFD Sender: No OFD packet to send [14:10:58]OFD Sender: No OFD packet to send [14:11:03]OFD Sender: No OFD packet to send [14:11:08]OFD Sender: No OFD packet to send [14:11:13]OFD Sender: No OFD packet to send [14:11:18]OFD Sender: No OFD packet to send [14:11:23]OFD Sender: No OFD packet to send [14:11:28]OFD Sender: No OFD packet to send [14:11:33]OFD Sender: No OFD packet to send [14:11:38]OFD Sender: No OFD packet to send [14:11:43]OFD Sender: No OFD packet to send [14:11:48]OFD Sender: No OFD packet to send [14:11:53]OFD Sender: No OFD packet to send [14:11:58]OFD Sender: No OFD packet to send [14:12:03]OFD Sender: No OFD packet to send [14:12:08]OFD Sender: No OFD packet to send [14:12:13]OFD Sender: No OFD packet to send [14:12:18]OFD Sender: No OFD packet to send [14:12:23]OFD Sender: No OFD packet to send [14:12:28]OFD Sender: No OFD packet to send [14:12:33]OFD Sender: No OFD packet to send [14:12:38]OFD Sender: No OFD packet to send [14:12:43]OFD Sender: No OFD packet to send [14:12:48]OFD Sender: No OFD packet to send [14:12:53]OFD Sender: No OFD packet to send [14:12:59]OFD Sender: No OFD packet to send [14:13:02]accept exits with 9 [14:13:02]New connection [14:13:02]New thread 3067014500 created [14:13:02]Thread 3067157860 joined [14:13:02]Waiting for new connection... [14:13:02] Sock 9.Parse request [14:13:02]Sock 9.Check first char [14:13:02]Sock 9.First char is OK [14:13:02]request: POST /json_proto HTTP/1.0 [14:13:02]Method: POST [14:13:02]URL: /json_proto [14:13:02]Method is POST - this is cgi request [14:13:02]url: /json_proto [14:13:02]query_string will be loaded in cgi processing [14:13:02]execute_cgi json_proto POST (null) [14:13:02]execute_cgi path=json_proto method=POST [14:13:02]POST find Content-Length [14:13:02]Host: 172.17.42.131:8080 [14:13:02]Content-Length: 677 [14:13:02]Content-Type: application/json [14:13:02] [14:13:02]POST finish read [14:13:02]Found Content-Length = 677 [14:13:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209807", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 9.570, "sum" : 640.23, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 640.00, "total" : 640.00, "payments": [ { "type": 0, "sum" : 640.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:13:02]execute_script... [14:13: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)209807", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 9.570, "sum" : 640.23, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 640.00, "total" : 640.00, "payments": [ { "type": 0, "sum" : 640.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:13:02]POST & json_proto [14:13:02]process_json_proto [14:13:02]json parsed OK: [14:13:02]protocol is kg_v1.0 [14:13:02]action value=close_receipt [14:13:02]process_action close_receipt [14:13:02]cmd_close_receipt [14:13:02]MH_GetDate [14:13:02]Write to MH i2c: F0 00 00 71 5E BE [14:13:02]Write i2c OK [14:13:02]MH_I2C_Read... [14:13:02]Read from MH i2c: F0 [14:13:02]MH_I2C_Read... [14:13:02]Read from MH i2c: F0 09 00 [14:13:02]MH_I2C_Read... [14:13:02]Read from MH i2c: F0 09 00 71 5E 00 72 61 16 67 A0 18 CA 66 FF [14:13:02]GetLastDocTimeStamp 1729519548 [14:13:02]current date 1729519986 [14:13:02]FM_GetShiftState [14:13:02]SAM_PROTO_GetShiftState [14:13:02]wFMCommunicate request_size=4 [14:13:02]MH_SAM_APDU [14:13:02]CAPDU: 80 13 01 00 [14:13:02]Write to MH i2c: E2 08 00 72 5E 80 13 01 00 00 00 00 00 4D [14:13:02]Write i2c OK [14:13:02]MH_I2C_Read... [14:13:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:13:02]Read from MH i2c: E2 [14:13:02]MH_I2C_Read... [14:13:02]Read from MH i2c: E2 0E 00 [14:13:02]MH_I2C_Read... [14:13:02]Read from MH i2c: E2 0E 00 72 5E 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 AC [14:13:02]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [14:13:02]wFMCommunicate OK [14:13:02]SAM_PROTO_GetShiftState done [14:13:02]FM_GetShiftState done [14:13:02]opened in 1729469754 [14:13:02]opened+sec_in_day 1729556154 [14:13:02]quantity*price = 64023 [14:13:02]sum+1 = 64024 [14:13:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.23 ИТОГО: 640.00 Внесено: 640.00 СДАЧА: 0.00 НСП 1% : 5.67 НДС 12% : 67.99 Наличными: 640.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 219 21.10.2024 14:13 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 187755 ФПД: 47315849052322 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T141306&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187755&fm=47315849052322&tin=02508201610067®Number=0000000000100030&sum=64000 [14:13:03]StoreToDocumentArchive [14:13:03]shift 460 fd 187755 [14:13:03]save to /storage/0460/doc_00187755 [14:13:03]save last doc name /storage/0460/doc_00187755 to /storage/kkm_last_doc_name [14:13:03]save OK [14:13:03]Clear old archive folders... [14:13:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:13:03]tlvbuf is 010CD450 [14:13:03]SAM_PROTO_ClearQueue [14:13:03]wFMCommunicate request_size=4 [14:13:03]MH_SAM_APDU [14:13:03]CAPDU: 80 09 00 00 [14:13:03]Write to MH i2c: E2 08 00 7F 5E 80 09 00 00 00 00 00 00 4F [14:13:03]Write i2c OK [14:13:03]MH_I2C_Read... [14:13:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:13:03]Read from MH i2c: E2 [14:13:03]MH_I2C_Read... [14:13:03]Read from MH i2c: E2 03 00 [14:13:03]MH_I2C_Read... [14:13:03]Read from MH i2c: E2 03 00 7F 5E 00 90 00 51 [14:13:03]RAPDU: 90 00 [14:13:03]wFMCommunicate OK [14:13:03]SAM_PROTO_ClearQueue done [14:13:03]KKMCreateOFDPacket [14:13:03]OFDProtocolAddRootSTLVToBuf [14:13:03]FM_MakeSignedData [14:13:03]FM_MakeSignedData [14:13:03]SAM_PROTO_SignData [14:13:03]wFMCommunicate request_size=4 [14:13:03]MH_SAM_APDU [14:13:03]CAPDU: 80 0D 01 02 [14:13:03]Write to MH i2c: E2 08 00 80 5E 80 0D 01 02 00 00 00 00 57 [14:13:03]Write i2c OK [14:13:03]MH_I2C_Read... [14:13:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:13:03]Read from MH i2c: E2 [14:13:03]MH_I2C_Read... [14:13:03]Read from MH i2c: E2 03 00 [14:13:03]MH_I2C_Read... [14:13:03]Read from MH i2c: E2 03 00 80 5E 00 90 00 52 [14:13:03]RAPDU: 90 00 [14:13:03]wFMCommunicate OK [14:13:03]wFMCommunicate request_size=255 [14:13:03]MH_SAM_APDU [14:13: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 33 FF 03 08 00 03 62 25 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 17 FA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 FA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 37 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8F 1A 00 00 00 00 07 04 06 00 00 FA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DB 00 00 00 F4 03 04 00 72 61 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 6B DD 02 00 35 04 06 00 2B [14:13:03]Write to MH i2c: E2 02 01 81 5E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 62 25 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 17 FA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 FA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 37 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8F 1A 00 00 00 00 07 04 06 00 00 FA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DB 00 00 00 F4 03 04 00 72 61 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 6B DD 02 00 35 04 06 00 2B 00 00 5C [14:13:03]Write i2c OK [14:13:03]MH_I2C_Read... [14:13:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:13:03]Read from MH i2c: E2 [14:13:03]MH_I2C_Read... [14:13:03]Read from MH i2c: E2 03 00 [14:13:03]MH_I2C_Read... [14:13:03]Read from MH i2c: E2 03 00 81 5E 00 90 00 53 [14:13:03]RAPDU: 90 00 [14:13:03]wFMCommunicate OK [14:13:03]wFMCommunicate request_size=10 [14:13:03]MH_SAM_APDU [14:13:03]CAPDU: 80 0D 02 02 05 08 94 60 00 A2 [14:13:03]Write to MH i2c: E2 0D 00 82 5E 80 0D 02 02 05 00 08 94 60 00 A2 00 00 02 [14:13:03]Write i2c OK [14:13:03]MH_I2C_Read... [14:13:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:13:04]Read from MH i2c: E2 [14:13:04]MH_I2C_Read... [14:13:04]Read from MH i2c: E2 03 00 [14:13:04]MH_I2C_Read... [14:13:04]Read from MH i2c: E2 03 00 82 5E 00 90 00 54 [14:13:04]RAPDU: 90 00 [14:13:04]wFMCommunicate OK [14:13:04]wFMCommunicate request_size=4 [14:13:04]MH_SAM_APDU [14:13:04]CAPDU: 80 0D 03 02 [14:13:04]Write to MH i2c: E2 08 00 83 5E 80 0D 03 02 00 00 00 00 5C [14:13:04]Write i2c OK [14:13:04]MH_I2C_Read... [14:13:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:13:04]OFD Sender: No OFD packet to send [14:13:04]Read from MH i2c: E2 [14:13:04]MH_I2C_Read... [14:13:04]Read from MH i2c: E2 0B 00 [14:13:04]MH_I2C_Read... [14:13:04]Read from MH i2c: E2 0B 00 83 5E 00 B4 42 38 A8 56 B2 58 54 90 00 E7 [14:13:04]RAPDU: B4 42 38 A8 56 B2 58 54 90 00 [14:13:04]wFMCommunicate OK [14:13:04]SAM_PROTO_SignData done [14:13:04]FM_MakeSignedData done [14:13:04]CreateOFDProtocolMessage [14:13:04]wFMCommunicate request_size=4 [14:13:04]MH_SAM_APDU [14:13:04]CAPDU: 80 11 00 00 [14:13:04]Write to MH i2c: E2 08 00 84 5E 80 11 00 00 00 00 00 00 5C [14:13:04]Write i2c OK [14:13:04]MH_I2C_Read... [14:13:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:13:04]Read from MH i2c: E2 [14:13:04]MH_I2C_Read... [14:13:04]Read from MH i2c: E2 17 00 [14:13:04]MH_I2C_Read... [14:13:04]Read from MH i2c: E2 17 00 84 5E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 AA [14:13:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [14:13:04]wFMCommunicate OK [14:13:04]CreateOFDProtocolMessage done [14:13:04]OFDSenderStorePacket 187755 [14:13:04]StoreOFDPacket docnum=187755 [14:13:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 34 82 07 01 68 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 33 FF 03 08 00 03 62 25 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 17 FA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 FA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 37 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8F 1A 00 00 00 00 07 04 06 00 00 FA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DB 00 00 00 F4 03 04 00 72 61 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 6B DD 02 00 35 04 06 00 2B 08 94 60 00 A2 B4 42 38 A8 56 B2 58 54 [14:13:04]CheckFolder [14:13:04]dirname=/storage/ofd_packets [14:13:04]CheckFolder done [14:13:04]ProducePacketName [14:13:04]name=ofd_packets/00187755 [14:13:04]NVStorageSaveData ofd_packets/00187755 [14:13:04]File name is /storage/ofd_packets/00187755 [14:13:04]Write 301 bytes [14:13:04]NVStorageSaveData done [14:13:04]OFDSenderStorePacket done [14:13:04]KKMCreateOFDPacket done [14:13:04]NVStorageSaveData kkm_last_timestamp [14:13:04]File name is /storage/kkm_last_timestamp [14:13:04]Write 4 bytes [14:13:04]NVStorageSaveData done [14:13:04]ExternCall_PrintAddStr [14:13:04]wPrintStart [14:13:04]Write to MH i2c: 01 00 00 85 5E E3 [14:13:04]Write i2c OK [14:13:04]MH_I2C_Read... [14:13:04]Read from MH i2c: 01 [14:13:04]MH_I2C_Read... [14:13:04]Read from MH i2c: 01 07 00 [14:13:04]MH_I2C_Read... [14:13:04]Read from MH i2c: 01 07 00 85 5E 00 00 00 00 00 FF 0F F8 [14:13:04]RasterBufferAndPrint [14:13:04]line Счет N : (1)209807 [14:13:04]line ИНН: 02508201610067 [14:13:04]line Контрольно-Кассовый Чек [14:13:04]line ПРОДАЖА [14:13:04]line ТРК (МРК, ГНК) : 32 [14:13:04]line Товар: 2710124130 [14:13:04]line Аи-92-К-3 [14:13:04]line 9.570 * 66.90 [14:13:04]line = 640.23 [14:13:04]line НДС 12% НСП 1% [14:13:04]line > о реализуемом товаре [14:13:04]line ОКРУГЛЕНИЕ: -0.23 [14:13:04]line ИТОГО: 640.00 [14:13:04]line Внесено: 640.00 [14:13:04]line СДАЧА: 0.00 [14:13:04]line НСП 1% : 5.67 [14:13:04]line НДС 12% : 67.99 [14:13:04]line Наличными: 640.00 [14:13:04]line Безнал.: 0.00 [14:13:04]line Место: АЗС № 86 "Партнер Нефть" [14:13:04]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [14:13:04]line СНО: Общий режим [14:13:04]line Чек 219 21.10.2024 14:13 [14:13:04]line Смена: 460 ФФД: 1.0 [14:13:04]line ЗНМ: 0300000155 [14:13:04]line РНМ: 0000000000100030 [14:13:04]line Версия ККМ: 001 [14:13:04]line ФМ: 0000000000965340 [14:13:04]line ФД: 187755 [14:13:04]line ФПД: 47315849052322 [14:13:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T141306&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187755&fm=47315849052322&tin=02508201610067®Number=0000000000100030&sum=64000 [14:13:04]written 0, free lines is 4095 [14:13:04]OFD Sender: Processing packet 187755 [packets to send 1062, broken 1061] [14:13:04]ProducePacketName [14:13:04]name=ofd_packets/00187755 [14:13:04]OFD Sender: To server: pG, [14:13:04]CommunicateWithHost lk.salyk.kg:30040 [14:13:04]ConnectInit lk.salyk.kg [14:13:04]Connected sock=10 [14:13:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 34 82 07 01 68 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 33 FF 03 08 00 03 62 25 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 17 FA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 FA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 37 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8F 1A 00 00 00 00 07 04 06 00 00 FA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DB 00 00 00 F4 03 04 00 72 61 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 6B DD 02 00 35 04 06 00 2B 08 94 60 00 A2 B4 42 38 A8 56 B2 58 54 [14:13:04]Write to MH i2c: 01 00 00 B0 5E 0E [14:13:04]Write i2c OK [14:13:04]MH_I2C_Read... [14:13:04]Read from MH i2c: 01 [14:13:04]MH_I2C_Read... [14:13:04]Read from MH i2c: 01 07 00 [14:13:04]MH_I2C_Read... [14:13:04]Read from MH i2c: 01 07 00 B0 5E 00 00 00 00 00 5F 0C 80 [14:13:04]RasterBufferAndPrint [14:13:04]line [14:13:04]line [14:13:04]line [14:13:04]line [14:13:04]line [14:13:04]written 0, free lines is 3169 [14:13:04]MH_Cut [14:13:04]Write to MH i2c: D1 01 00 B7 5E 01 E7 [14:13:04]Write i2c OK [14:13:04]MH_I2C_Read... [14:13:04]Read from MH i2c: D1 [14:13:04]MH_I2C_Read... [14:13:04]Read from MH i2c: D1 01 00 [14:13:04]MH_I2C_Read... [14:13:04]Read from MH i2c: D1 01 00 B7 5E 00 E6 [14:13:04]Write to MH i2c: 01 00 00 B8 5E 16 [14:13:04]Write i2c OK [14:13:04]MH_I2C_Read... [14:13:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 8C E7 47 00 D6 8A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 6B DD 02 00 F4 03 04 00 62 0B 16 67 B6 04 01 00 00 9C BB 14 16 36 05 9A 18 [14:13:04]CommunicateWithHost err = 0 [14:13:04]CheckOFDResponse [14:13:04]1017 (14) - 77093643461234 [14:13:04]1041 (16) - 0000000000965340 [14:13:04]1040 (4) - 187755 [14:13:04]1012 (4) - 21.10.2024 08:05 [14:13:04]1206 (1) - 0 [14:13:04]OFD Sender: Remove packet 187755 [14:13:04]ProducePacketName [14:13:04]name=ofd_packets/00187755 [14:13:04]NVStorageDeleteData [14:13:05]OFD Sender: No OFD packet to send [14:13:05]*** Cut start [14:13:05]*** Partial cut [14:13:05]*** CUTSNS_PIN = 1 [14:13:05]*** CUTSNS_PIN = 0 [14:13:06]*** Brake cut motor [14:13:06]Read from MH i2c: 01 [14:13:06]MH_I2C_Read... [14:13:06]*** Stop cut motor [14:13:06]*** Cut end [14:13:06]Read from MH i2c: 01 07 00 [14:13:06]MH_I2C_Read... [14:13:06]Read from MH i2c: 01 07 00 B8 5E 00 00 00 00 00 FF 0F 2B [14:13:06]process_action close_receipt done [14:13:06]requested_data is exist [14:13:06]produce_requested_data [14:13:06]requested_item fm.sn is exist - process it [14:13:06]wFMCommunicate request_size=4 [14:13:06]MH_SAM_APDU [14:13:06]CAPDU: 80 11 00 00 [14:13:06]Write to MH i2c: E2 08 00 B9 5E 80 11 00 00 00 00 00 00 91 [14:13:06]Write i2c OK [14:13:06]MH_I2C_Read... [14:13:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:13:06]Read from MH i2c: E2 [14:13:06]MH_I2C_Read... [14:13:06]Read from MH i2c: E2 17 00 [14:13:06]MH_I2C_Read... [14:13:06]Read from MH i2c: E2 17 00 B9 5E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 DF [14:13:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [14:13:06]wFMCommunicate OK [14:13:06]requested_item fd.num is exist - process it [14:13:06]SAM_PROTO_GetFieldsCounters [14:13:06]wFMCommunicate request_size=4 [14:13:06]MH_SAM_APDU [14:13:06]CAPDU: 80 13 00 00 [14:13:06]Write to MH i2c: E2 08 00 BA 5E 80 13 00 00 00 00 00 00 94 [14:13:06]Write i2c OK [14:13:06]MH_I2C_Read... [14:13:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:13:06]Read from MH i2c: E2 [14:13:06]MH_I2C_Read... [14:13:06]Read from MH i2c: E2 62 00 [14:13:06]MH_I2C_Read... [14:13:06]Read from MH i2c: E2 62 00 BA 5E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 6B DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 DB 00 00 00 5E 04 04 00 DB 00 00 00 57 04 04 00 DC 00 00 00 19 04 04 00 00 00 00 00 90 00 43 [14:13:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 6B DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 DB 00 00 00 5E 04 04 00 DB 00 00 00 57 04 04 00 DC 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:13:06]wFMCommunicate OK [14:13:06]SAM_PROTO_GetFieldsCounters done [14:13:06]requested_item shift.num is exist - process it [14:13:06]requested_item shift.opened is exist - process it [14:13:06]req_shift_opened [14:13:06]FM_GetShiftState [14:13:06]SAM_PROTO_GetShiftState [14:13:06]wFMCommunicate request_size=4 [14:13:06]MH_SAM_APDU [14:13:06]CAPDU: 80 13 01 00 [14:13:06]Write to MH i2c: E2 08 00 BB 5E 80 13 01 00 00 00 00 00 96 [14:13:06]Write i2c OK [14:13:06]MH_I2C_Read... [14:13:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:13:06]Read from MH i2c: E2 [14:13:06]MH_I2C_Read... [14:13:06]Read from MH i2c: E2 0E 00 [14:13:06]MH_I2C_Read... [14:13:06]Read from MH i2c: E2 0E 00 BB 5E 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 F5 [14:13:06]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [14:13:06]wFMCommunicate OK [14:13:06]SAM_PROTO_GetShiftState done [14:13:06]FM_GetShiftState done [14:13:06]req_shift_opened done [14:13:06]requested_item shift.open_date is exist - process it [14:13:06]req_shift_open_date [14:13:06]req_shift_open_date done [14:13:06]produce_requested_data done [14:13:06]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187755,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [14:13:06]process_action_free close_receipt [14:13:06]json_value_free [14:13:06]json_value_free done [14:13:06]process_json_proto returns [14:13:06]Send response to host [14:13:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187755,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [14:13:06]free response buf [14:13:06]execute_script done [14:13:06]execute_script returns [14:13:06]free content buf [14:13:06]Sock 9.Close socket [14:13:06]Sock 9.Thread stoped [14:13:10]OFD Sender: No OFD packet to send [14:13:10]accept exits with 8 [14:13:10]New connection [14:13:10]New thread 3067157860 created [14:13:10]Thread 3067014500 joined [14:13:10]Waiting for new connection... [14:13:10] Sock 8.Parse request [14:13:10]Sock 8.Check first char [14:13:10]Sock 8.First char is OK [14:13:10]request: POST /json_proto HTTP/1.0 [14:13:10]Method: POST [14:13:10]URL: /json_proto [14:13:10]Method is POST - this is cgi request [14:13:10]url: /json_proto [14:13:10]query_string will be loaded in cgi processing [14:13:10]execute_cgi json_proto POST (null) [14:13:10]execute_cgi path=json_proto method=POST [14:13:10]POST find Content-Length [14:13:10]Host: 172.17.42.131:8080 [14:13:10]Content-Length: 677 [14:13:10]Content-Type: application/json [14:13:10] [14:13:10]POST finish read [14:13:10]Found Content-Length = 677 [14:13:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209808", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "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:13:10]execute_script... [14:13: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)209808", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "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:13:10]POST & json_proto [14:13:10]process_json_proto [14:13:10]json parsed OK: [14:13:10]protocol is kg_v1.0 [14:13:10]action value=close_receipt [14:13:10]process_action close_receipt [14:13:10]cmd_close_receipt [14:13:10]MH_GetDate [14:13:10]Write to MH i2c: F0 00 00 BC 5E 09 [14:13:10]Write i2c OK [14:13:10]MH_I2C_Read... [14:13:10]Read from MH i2c: F0 [14:13:10]MH_I2C_Read... [14:13:10]Read from MH i2c: F0 09 00 [14:13:10]MH_I2C_Read... [14:13:10]Read from MH i2c: F0 09 00 BC 5E 00 7B 61 16 67 A0 18 CA 66 53 [14:13:10]GetLastDocTimeStamp 1729519986 [14:13:10]current date 1729519995 [14:13:10]FM_GetShiftState [14:13:10]SAM_PROTO_GetShiftState [14:13:10]wFMCommunicate request_size=4 [14:13:10]MH_SAM_APDU [14:13:10]CAPDU: 80 13 01 00 [14:13:10]Write to MH i2c: E2 08 00 BD 5E 80 13 01 00 00 00 00 00 98 [14:13:10]Write i2c OK [14:13:10]MH_I2C_Read... [14:13:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:13:10]Read from MH i2c: E2 [14:13:10]MH_I2C_Read... [14:13:10]Read from MH i2c: E2 0E 00 [14:13:10]MH_I2C_Read... [14:13:10]Read from MH i2c: E2 0E 00 BD 5E 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 F7 [14:13:10]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [14:13:10]wFMCommunicate OK [14:13:10]SAM_PROTO_GetShiftState done [14:13:10]FM_GetShiftState done [14:13:10]opened in 1729469754 [14:13:10]opened+sec_in_day 1729556154 [14:13:10]quantity*price = 50041 [14:13:10]sum+1 = 50042 [14:13: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 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 220 21.10.2024 14:13 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 187756 ФПД: 58126130478687 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T141315&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187756&fm=58126130478687&tin=02508201610067®Number=0000000000100030&sum=50000 [14:13:11]StoreToDocumentArchive [14:13:11]shift 460 fd 187756 [14:13:11]save to /storage/0460/doc_00187756 [14:13:11]save last doc name /storage/0460/doc_00187756 to /storage/kkm_last_doc_name [14:13:11]save OK [14:13:11]Clear old archive folders... [14:13:11]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:13:11]tlvbuf is 01115CF0 [14:13:11]SAM_PROTO_ClearQueue [14:13:11]wFMCommunicate request_size=4 [14:13:11]MH_SAM_APDU [14:13:11]CAPDU: 80 09 00 00 [14:13:11]Write to MH i2c: E2 08 00 CA 5E 80 09 00 00 00 00 00 00 9A [14:13:11]Write i2c OK [14:13:11]MH_I2C_Read... [14:13:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:13:11]Read from MH i2c: E2 [14:13:11]MH_I2C_Read... [14:13:11]Read from MH i2c: E2 03 00 [14:13:11]MH_I2C_Read... [14:13:11]Read from MH i2c: E2 03 00 CA 5E 00 90 00 9C [14:13:11]RAPDU: 90 00 [14:13:11]wFMCommunicate OK [14:13:11]SAM_PROTO_ClearQueue done [14:13:12]KKMCreateOFDPacket [14:13:12]OFDProtocolAddRootSTLVToBuf [14:13:12]FM_MakeSignedData [14:13:12]FM_MakeSignedData [14:13:12]SAM_PROTO_SignData [14:13:12]wFMCommunicate request_size=4 [14:13:12]MH_SAM_APDU [14:13:12]CAPDU: 80 0D 01 02 [14:13:12]Write to MH i2c: E2 08 00 CB 5E 80 0D 01 02 00 00 00 00 A2 [14:13:12]Write i2c OK [14:13:12]MH_I2C_Read... [14:13:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:13:12]Read from MH i2c: E2 [14:13:12]MH_I2C_Read... [14:13:12]Read from MH i2c: E2 03 00 [14:13:12]MH_I2C_Read... [14:13:12]Read from MH i2c: E2 03 00 CB 5E 00 90 00 9D [14:13:12]RAPDU: 90 00 [14:13:12]wFMCommunicate OK [14:13:12]wFMCommunicate request_size=255 [14:13:12]MH_SAM_APDU [14: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 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DC 00 00 00 F4 03 04 00 7B 61 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 6C DD 02 00 35 04 06 00 34 [14:13:12]Write to MH i2c: E2 02 01 CC 5E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DC 00 00 00 F4 03 04 00 7B 61 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 6C DD 02 00 35 04 06 00 34 00 00 96 [14:13:12]Write i2c OK [14:13:12]MH_I2C_Read... [14:13:12]Read from MH i2c: E2 [14:13:12]MH_I2C_Read... [14:13:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:13:12]Read from MH i2c: E2 03 00 [14:13:12]MH_I2C_Read... [14:13:12]Read from MH i2c: E2 03 00 CC 5E 00 90 00 9E [14:13:12]RAPDU: 90 00 [14:13:12]wFMCommunicate OK [14:13:12]wFMCommunicate request_size=10 [14:13:12]MH_SAM_APDU [14:13:12]CAPDU: 80 0D 02 02 05 DD 8B 5B FE 5F [14:13:12]Write to MH i2c: E2 0D 00 CD 5E 80 0D 02 02 05 00 DD 8B 5B FE 5F 00 00 CF [14:13:12]Write i2c OK [14:13:12]MH_I2C_Read... [14:13:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:13:12]Read from MH i2c: E2 [14:13:12]MH_I2C_Read... [14:13:12]Read from MH i2c: E2 03 00 [14:13:12]MH_I2C_Read... [14:13:12]Read from MH i2c: E2 03 00 CD 5E 00 90 00 9F [14:13:12]RAPDU: 90 00 [14:13:12]wFMCommunicate OK [14:13:12]wFMCommunicate request_size=4 [14:13:12]MH_SAM_APDU [14:13:12]CAPDU: 80 0D 03 02 [14:13:12]Write to MH i2c: E2 08 00 CE 5E 80 0D 03 02 00 00 00 00 A7 [14:13:12]Write i2c OK [14:13:12]MH_I2C_Read... [14:13:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:13:12]Read from MH i2c: E2 [14:13:12]MH_I2C_Read... [14:13:12]Read from MH i2c: E2 0B 00 [14:13:12]MH_I2C_Read... [14:13:12]Read from MH i2c: E2 0B 00 CE 5E 00 89 1C 33 ED 89 C9 B2 9A 90 00 0B [14:13:12]RAPDU: 89 1C 33 ED 89 C9 B2 9A 90 00 [14:13:12]wFMCommunicate OK [14:13:12]SAM_PROTO_SignData done [14:13:12]FM_MakeSignedData done [14:13:12]CreateOFDProtocolMessage [14:13:12]wFMCommunicate request_size=4 [14:13:12]MH_SAM_APDU [14:13:12]CAPDU: 80 11 00 00 [14:13:12]Write to MH i2c: E2 08 00 CF 5E 80 11 00 00 00 00 00 00 A7 [14:13:12]Write i2c OK [14:13:12]MH_I2C_Read... [14:13:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:13:12]Read from MH i2c: E2 [14:13:12]MH_I2C_Read... [14:13:12]Read from MH i2c: E2 17 00 [14:13:12]MH_I2C_Read... [14:13:12]Read from MH i2c: E2 17 00 CF 5E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 F5 [14:13:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [14:13:12]wFMCommunicate OK [14:13:12]CreateOFDProtocolMessage done [14:13:12]OFDSenderStorePacket 187756 [14:13:12]StoreOFDPacket docnum=187756 [14:13:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 89 C3 07 01 01 BD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DC 00 00 00 F4 03 04 00 7B 61 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 6C DD 02 00 35 04 06 00 34 DD 8B 5B FE 5F 89 1C 33 ED 89 C9 B2 9A [14:13:12]CheckFolder [14:13:12]dirname=/storage/ofd_packets [14:13:12]CheckFolder done [14:13:12]ProducePacketName [14:13:12]name=ofd_packets/00187756 [14:13:12]NVStorageSaveData ofd_packets/00187756 [14:13:12]File name is /storage/ofd_packets/00187756 [14:13:12]Write 301 bytes [14:13:12]NVStorageSaveData done [14:13:12]OFDSenderStorePacket done [14:13:12]KKMCreateOFDPacket done [14:13:12]NVStorageSaveData kkm_last_timestamp [14:13:12]File name is /storage/kkm_last_timestamp [14:13:12]Write 4 bytes [14:13:12]NVStorageSaveData done [14:13:12]ExternCall_PrintAddStr [14:13:12]wPrintStart [14:13:12]Write to MH i2c: 01 00 00 D0 5E 2E [14:13:12]Write i2c OK [14:13:12]MH_I2C_Read... [14:13:12]Read from MH i2c: 01 [14:13:12]MH_I2C_Read... [14:13:12]Read from MH i2c: 01 07 00 [14:13:12]MH_I2C_Read... [14:13:12]Read from MH i2c: 01 07 00 D0 5E 00 00 00 00 00 FF 0F 43 [14:13:12]RasterBufferAndPrint [14:13:12]line Счет N : (1)209808 [14:13:12]line ИНН: 02508201610067 [14:13:12]line Контрольно-Кассовый Чек [14:13:12]line ПРОДАЖА [14:13:12]line ТРК (МРК, ГНК) : 12 [14:13:12]line Товар: 2710124130 [14:13:12]line Аи-92-К-3 [14:13:12]line 7.480 * 66.90 [14:13:12]line = 500.41 [14:13:12]line НДС 12% НСП 1% [14:13:12]line > о реализуемом товаре [14:13:12]line ОКРУГЛЕНИЕ: -0.41 [14:13:12]line ИТОГО: 500.00 [14:13:12]line Внесено: 500.00 [14:13:12]line СДАЧА: 0.00 [14:13:12]line НСП 1% : 4.43 [14:13:12]line НДС 12% : 53.14 [14:13:12]line Наличными: 500.00 [14:13:12]line Безнал.: 0.00 [14:13:12]line Место: АЗС № 86 "Партнер Нефть" [14:13:12]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [14:13:12]line СНО: Общий режим [14:13:12]line Чек 220 21.10.2024 14:13 [14:13:12]line Смена: 460 ФФД: 1.0 [14:13:12]line ЗНМ: 0300000155 [14:13:12]line РНМ: 0000000000100030 [14:13:12]line Версия ККМ: 001 [14:13:12]line ФМ: 0000000000965340 [14:13:12]line ФД: 187756 [14:13:12]line ФПД: 58126130478687 [14:13:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T141315&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187756&fm=58126130478687&tin=02508201610067®Number=0000000000100030&sum=50000 [14:13:12]written 0, free lines is 4095 [14:13:12]OFD Sender: Processing packet 187756 [packets to send 1062, broken 1061] [14:13:12]ProducePacketName [14:13:12]name=ofd_packets/00187756 [14:13:12]OFD Sender: To server: pG, [14:13:12]CommunicateWithHost lk.salyk.kg:30040 [14:13:12]ConnectInit lk.salyk.kg [14:13:12]Connected sock=10 [14:13:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 89 C3 07 01 01 BD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DC 00 00 00 F4 03 04 00 7B 61 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 6C DD 02 00 35 04 06 00 34 DD 8B 5B FE 5F 89 1C 33 ED 89 C9 B2 9A [14:13:12]Write to MH i2c: 01 00 00 FB 5E 59 [14:13:12]Write i2c OK [14:13:12]MH_I2C_Read... [14:13:12]Read from MH i2c: 01 [14:13:12]MH_I2C_Read... [14:13:12]Read from MH i2c: 01 07 00 [14:13:12]MH_I2C_Read... [14:13:12]Read from MH i2c: 01 07 00 FB 5E 00 00 00 00 00 69 0C D5 [14:13:12]RasterBufferAndPrint [14:13:12]line [14:13:12]line [14:13:12]line [14:13:12]line [14:13:12]line [14:13:12]written 0, free lines is 3182 [14:13:13]MH_Cut [14:13:13]Write to MH i2c: D1 01 00 02 5F 01 33 [14:13:13]Write i2c OK [14:13:13]MH_I2C_Read... [14:13:13]Read from MH i2c: D1 [14:13:13]MH_I2C_Read... [14:13:13]Read from MH i2c: D1 01 00 [14:13:13]MH_I2C_Read... [14:13:13]Read from MH i2c: D1 01 00 02 5F 00 32 [14:13:13]Write to MH i2c: 01 00 00 03 5F 62 [14:13:13]Write i2c OK [14:13:13]MH_I2C_Read... [14:13:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 15 11 47 00 07 5D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 6C DD 02 00 F4 03 04 00 6A 0B 16 67 B6 04 01 00 00 09 02 5F 25 18 BD 84 97 [14:13:13]CommunicateWithHost err = 0 [14:13:13]CheckOFDResponse [14:13:13]1017 (14) - 77093643461234 [14:13:13]1041 (16) - 0000000000965340 [14:13:13]1040 (4) - 187756 [14:13:13]1012 (4) - 21.10.2024 08:06 [14:13:13]1206 (1) - 0 [14:13:13]OFD Sender: Remove packet 187756 [14:13:13]ProducePacketName [14:13:13]name=ofd_packets/00187756 [14:13:13]NVStorageDeleteData [14:13:13]OFD Sender: No OFD packet to send [14:13:14]*** Cut start [14:13:14]*** Partial cut [14:13:14]*** CUTSNS_PIN = 1 [14:13:14]*** CUTSNS_PIN = 0 [14:13:14]*** Brake cut motor [14:13:14]Read from MH i2c: 01 [14:13:14]MH_I2C_Read... [14:13:14]*** Stop cut motor [14:13:14]*** Cut end [14:13:14]Read from MH i2c: 01 07 00 [14:13:14]MH_I2C_Read... [14:13:14]Read from MH i2c: 01 07 00 03 5F 00 00 00 00 00 FF 0F 77 [14:13:14]process_action close_receipt done [14:13:14]requested_data is exist [14:13:14]produce_requested_data [14:13:14]requested_item fm.sn is exist - process it [14:13:14]wFMCommunicate request_size=4 [14:13:14]MH_SAM_APDU [14:13:14]CAPDU: 80 11 00 00 [14:13:14]Write to MH i2c: E2 08 00 04 5F 80 11 00 00 00 00 00 00 DD [14:13:14]Write i2c OK [14:13:14]MH_I2C_Read... [14:13:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:13:14]Read from MH i2c: E2 [14:13:14]MH_I2C_Read... [14:13:14]Read from MH i2c: E2 17 00 [14:13:14]MH_I2C_Read... [14:13:14]Read from MH i2c: E2 17 00 04 5F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 2B [14:13:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [14:13:14]wFMCommunicate OK [14:13:14]requested_item fd.num is exist - process it [14:13:14]SAM_PROTO_GetFieldsCounters [14:13:14]wFMCommunicate request_size=4 [14:13:14]MH_SAM_APDU [14:13:14]CAPDU: 80 13 00 00 [14:13:14]Write to MH i2c: E2 08 00 05 5F 80 13 00 00 00 00 00 00 E0 [14:13:14]Write i2c OK [14:13:14]MH_I2C_Read... [14:13:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:13:14]Read from MH i2c: E2 [14:13:14]MH_I2C_Read... [14:13:14]Read from MH i2c: E2 62 00 [14:13:14]MH_I2C_Read... [14:13:14]Read from MH i2c: E2 62 00 05 5F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 6C DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 DC 00 00 00 5E 04 04 00 DC 00 00 00 57 04 04 00 DD 00 00 00 19 04 04 00 00 00 00 00 90 00 93 [14:13:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 6C DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 DC 00 00 00 5E 04 04 00 DC 00 00 00 57 04 04 00 DD 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:13:14]wFMCommunicate OK [14:13:14]SAM_PROTO_GetFieldsCounters done [14:13:14]requested_item shift.num is exist - process it [14:13:14]requested_item shift.opened is exist - process it [14:13:14]req_shift_opened [14:13:14]FM_GetShiftState [14:13:14]SAM_PROTO_GetShiftState [14:13:14]wFMCommunicate request_size=4 [14:13:14]MH_SAM_APDU [14:13:14]CAPDU: 80 13 01 00 [14:13:14]Write to MH i2c: E2 08 00 06 5F 80 13 01 00 00 00 00 00 E2 [14:13:14]Write i2c OK [14:13:14]MH_I2C_Read... [14:13:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:13:15]Read from MH i2c: E2 [14:13:15]MH_I2C_Read... [14:13:15]Read from MH i2c: E2 0E 00 [14:13:15]MH_I2C_Read... [14:13:15]Read from MH i2c: E2 0E 00 06 5F 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 41 [14:13:15]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [14:13:15]wFMCommunicate OK [14:13:15]SAM_PROTO_GetShiftState done [14:13:15]FM_GetShiftState done [14:13:15]req_shift_opened done [14:13:15]requested_item shift.open_date is exist - process it [14:13:15]req_shift_open_date [14:13:15]req_shift_open_date done [14:13:15]produce_requested_data done [14:13:15]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187756,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [14:13:15]process_action_free close_receipt [14:13:15]json_value_free [14:13:15]json_value_free done [14:13:15]process_json_proto returns [14:13:15]Send response to host [14:13:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187756,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [14:13:15]free response buf [14:13:15]execute_script done [14:13:15]execute_script returns [14:13:15]free content buf [14:13:15]Sock 8.Close socket [14:13:15]Sock 8.Thread stoped [14:13:15]accept exits with 9 [14:13:15]New connection [14:13:15]New thread 3067014500 created [14:13:15]Thread 3067157860 joined [14:13:15]Waiting for new connection... [14:13:15] Sock 9.Parse request [14:13:15]Sock 9.Check first char [14:13:15]Sock 9.First char is OK [14:13:15]request: POST /json_proto HTTP/1.0 [14:13:15]Method: POST [14:13:15]URL: /json_proto [14:13:15]Method is POST - this is cgi request [14:13:15]url: /json_proto [14:13:15]query_string will be loaded in cgi processing [14:13:15]execute_cgi json_proto POST (null) [14:13:15]execute_cgi path=json_proto method=POST [14:13:15]POST find Content-Length [14:13:15]Host: 172.17.42.131:8080 [14:13:15]Content-Length: 674 [14:13:15]Content-Type: application/json [14:13:15] [14:13:15]POST finish read [14:13:15]Found Content-Length = 674 [14:13:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209809", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:13:15]execute_script... [14:13: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)209809", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:13:15]POST & json_proto [14:13:15]process_json_proto [14:13:15]json parsed OK: [14:13:15]protocol is kg_v1.0 [14:13:15]action value=close_receipt [14:13:15]process_action close_receipt [14:13:15]cmd_close_receipt [14:13:15]MH_GetDate [14:13:15]Write to MH i2c: F0 00 00 07 5F 55 [14:13:15]Write i2c OK [14:13:15]MH_I2C_Read... [14:13:15]Read from MH i2c: F0 [14:13:15]MH_I2C_Read... [14:13:15]Read from MH i2c: F0 09 00 [14:13:15]MH_I2C_Read... [14:13:15]Read from MH i2c: F0 09 00 07 5F 00 7F 61 16 67 A0 18 CA 66 A3 [14:13:15]GetLastDocTimeStamp 1729519995 [14:13:15]current date 1729519999 [14:13:15]FM_GetShiftState [14:13:15]SAM_PROTO_GetShiftState [14:13:15]wFMCommunicate request_size=4 [14:13:15]MH_SAM_APDU [14:13:15]CAPDU: 80 13 01 00 [14:13:15]Write to MH i2c: E2 08 00 08 5F 80 13 01 00 00 00 00 00 E4 [14:13:15]Write i2c OK [14:13:15]MH_I2C_Read... [14:13:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:13:15]Read from MH i2c: E2 [14:13:15]MH_I2C_Read... [14:13:15]Read from MH i2c: E2 0E 00 [14:13:15]MH_I2C_Read... [14:13:15]Read from MH i2c: E2 0E 00 08 5F 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 43 [14:13:15]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [14:13:15]wFMCommunicate OK [14:13:15]SAM_PROTO_GetShiftState done [14:13:15]FM_GetShiftState done [14:13:15]opened in 1729469754 [14:13:15]opened+sec_in_day 1729556154 [14:13:15]quantity*price = 50063 [14:13:15]sum+1 = 50064 [14:13:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 221 21.10.2024 14:13 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 187757 ФПД: 134374386170786 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T141319&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187757&fm=134374386170786&tin=02508201610067®Number=0000000000100030&sum=50000 [14:13:17]StoreToDocumentArchive [14:13:17]shift 460 fd 187757 [14:13:17]save to /storage/0460/doc_00187757 [14:13:17]save last doc name /storage/0460/doc_00187757 to /storage/kkm_last_doc_name [14:13:17]save OK [14:13:17]Clear old archive folders... [14:13:17]ProcessDocumentItem done err = 0, tmpTLVsize=248 [14:13:17]tlvbuf is 01190BB0 [14:13:17]SAM_PROTO_ClearQueue [14:13:17]wFMCommunicate request_size=4 [14:13:17]MH_SAM_APDU [14:13:17]CAPDU: 80 09 00 00 [14:13:17]Write to MH i2c: E2 08 00 15 5F 80 09 00 00 00 00 00 00 E6 [14:13:17]Write i2c OK [14:13:17]MH_I2C_Read... [14:13:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:13:17]Read from MH i2c: E2 [14:13:17]MH_I2C_Read... [14:13:17]Read from MH i2c: E2 03 00 [14:13:17]MH_I2C_Read... [14:13:17]Read from MH i2c: E2 03 00 15 5F 00 90 00 E8 [14:13:17]RAPDU: 90 00 [14:13:17]wFMCommunicate OK [14:13:17]SAM_PROTO_ClearQueue done [14:13:17]KKMCreateOFDPacket [14:13:17]OFDProtocolAddRootSTLVToBuf [14:13:17]FM_MakeSignedData [14:13:17]FM_MakeSignedData [14:13:17]SAM_PROTO_SignData [14:13:17]wFMCommunicate request_size=4 [14:13:17]MH_SAM_APDU [14:13:17]CAPDU: 80 0D 01 02 [14:13:17]Write to MH i2c: E2 08 00 16 5F 80 0D 01 02 00 00 00 00 EE [14:13:17]Write i2c OK [14:13:17]MH_I2C_Read... [14:13:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:13:17]Read from MH i2c: E2 [14:13:17]MH_I2C_Read... [14:13:17]Read from MH i2c: E2 03 00 [14:13:17]MH_I2C_Read... [14:13:17]Read from MH i2c: E2 03 00 16 5F 00 90 00 E9 [14:13:17]RAPDU: 90 00 [14:13:17]wFMCommunicate OK [14:13:17]wFMCommunicate request_size=255 [14:13:17]MH_SAM_APDU [14:13:17]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 DD 00 00 00 F4 03 04 00 7F 61 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 6D DD 02 00 35 04 06 00 7A 36 79 8D [14:13:17]Write to MH i2c: E2 02 01 17 5F 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DD 00 00 00 F4 03 04 00 7F 61 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 6D DD 02 00 35 04 06 00 7A 36 79 8D 00 00 EA [14:13:17]Write i2c OK [14:13:17]MH_I2C_Read... [14:13:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:13:17]Read from MH i2c: E2 [14:13:17]MH_I2C_Read... [14:13:17]Read from MH i2c: E2 03 00 [14:13:17]MH_I2C_Read... [14:13:17]Read from MH i2c: E2 03 00 17 5F 00 90 00 EA [14:13:17]RAPDU: 90 00 [14:13:17]wFMCommunicate OK [14:13:17]wFMCommunicate request_size=7 [14:13:17]MH_SAM_APDU [14:13:17]CAPDU: 80 0D 02 02 02 FB A2 [14:13:17]Write to MH i2c: E2 0A 00 18 5F 80 0D 02 02 02 00 FB A2 00 00 92 [14:13:17]Write i2c OK [14:13:17]MH_I2C_Read... [14:13:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:13:17]Read from MH i2c: E2 [14:13:17]MH_I2C_Read... [14:13:17]Read from MH i2c: E2 03 00 [14:13:17]MH_I2C_Read... [14:13:17]Read from MH i2c: E2 03 00 18 5F 00 90 00 EB [14:13:17]RAPDU: 90 00 [14:13:17]wFMCommunicate OK [14:13:17]wFMCommunicate request_size=4 [14:13:17]MH_SAM_APDU [14:13:17]CAPDU: 80 0D 03 02 [14:13:17]Write to MH i2c: E2 08 00 19 5F 80 0D 03 02 00 00 00 00 F3 [14:13:17]Write i2c OK [14:13:17]MH_I2C_Read... [14:13:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:13:17]Read from MH i2c: E2 [14:13:17]MH_I2C_Read... [14:13:17]Read from MH i2c: E2 0B 00 [14:13:17]MH_I2C_Read... [14:13:17]Read from MH i2c: E2 0B 00 19 5F 00 2A 17 34 B1 94 83 91 CE 90 00 90 [14:13:17]RAPDU: 2A 17 34 B1 94 83 91 CE 90 00 [14:13:17]wFMCommunicate OK [14:13:17]SAM_PROTO_SignData done [14:13:17]FM_MakeSignedData done [14:13:17]CreateOFDProtocolMessage [14:13:17]wFMCommunicate request_size=4 [14:13:17]MH_SAM_APDU [14:13:17]CAPDU: 80 11 00 00 [14:13:17]Write to MH i2c: E2 08 00 1A 5F 80 11 00 00 00 00 00 00 F3 [14:13:17]Write i2c OK [14:13:17]MH_I2C_Read... [14:13:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:13:17]Read from MH i2c: E2 [14:13:17]MH_I2C_Read... [14:13:17]Read from MH i2c: E2 17 00 [14:13:17]MH_I2C_Read... [14:13:17]Read from MH i2c: E2 17 00 1A 5F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 41 [14:13:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [14:13:17]wFMCommunicate OK [14:13:17]CreateOFDProtocolMessage done [14:13:17]OFDSenderStorePacket 187757 [14:13:17]StoreOFDPacket docnum=187757 [14:13:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 F0 AD 04 01 4F 6E 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DD 00 00 00 F4 03 04 00 7F 61 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 6D DD 02 00 35 04 06 00 7A 36 79 8D FB A2 2A 17 34 B1 94 83 91 CE [14:13:17]CheckFolder [14:13:17]dirname=/storage/ofd_packets [14:13:17]CheckFolder done [14:13:17]ProducePacketName [14:13:17]name=ofd_packets/00187757 [14:13:17]NVStorageSaveData ofd_packets/00187757 [14:13:17]File name is /storage/ofd_packets/00187757 [14:13:17]Write 298 bytes [14:13:17]NVStorageSaveData done [14:13:17]OFDSenderStorePacket done [14:13:17]KKMCreateOFDPacket done [14:13:17]NVStorageSaveData kkm_last_timestamp [14:13:17]File name is /storage/kkm_last_timestamp [14:13:17]Write 4 bytes [14:13:17]NVStorageSaveData done [14:13:17]ExternCall_PrintAddStr [14:13:17]wPrintStart [14:13:17]Write to MH i2c: 01 00 00 1B 5F 7A [14:13:17]Write i2c OK [14:13:17]MH_I2C_Read... [14:13:17]Read from MH i2c: 01 [14:13:17]MH_I2C_Read... [14:13:17]Read from MH i2c: 01 07 00 [14:13:17]MH_I2C_Read... [14:13:17]Read from MH i2c: 01 07 00 1B 5F 00 00 00 00 00 FF 0F 8F [14:13:17]RasterBufferAndPrint [14:13:17]line Счет N : (1)209809 [14:13:17]line ИНН: 02508201610067 [14:13:17]line Контрольно-Кассовый Чек [14:13:17]line ПРОДАЖА [14:13:17]line ТРК (МРК, ГНК) : 51 [14:13:17]line Товар: 2710194210 [14:13:17]line ДТ-К-5 [14:13:17]line 6.570 * 76.20 [14:13:17]line = 500.63 [14:13:17]line НДС 12% НСП 1% [14:13:17]line > о реализуемом товаре [14:13:17]line ОКРУГЛЕНИЕ: -0.63 [14:13:17]line ИТОГО: 500.00 [14:13:17]line Внесено: 500.00 [14:13:17]line СДАЧА: 0.00 [14:13:17]line НСП 1% : 4.43 [14:13:17]line НДС 12% : 53.16 [14:13:17]line Наличными: 500.00 [14:13:17]line Безнал.: 0.00 [14:13:17]line Место: АЗС № 86 "Партнер Нефть" [14:13:17]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [14:13:17]line СНО: Общий режим [14:13:17]line Чек 221 21.10.2024 14:13 [14:13:17]line Смена: 460 ФФД: 1.0 [14:13:17]line ЗНМ: 0300000155 [14:13:17]line РНМ: 0000000000100030 [14:13:17]line Версия ККМ: 001 [14:13:17]line ФМ: 0000000000965340 [14:13:17]line ФД: 187757 [14:13:17]line ФПД: 134374386170786 [14:13:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T141319&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187757&fm=134374386170786&tin=02508201610067®Number=0000000000100030&sum=50000 [14:13:17]written 0, free lines is 4095 [14:13:17]OFD Sender: Processing packet 187757 [packets to send 1062, broken 1061] [14:13:17]ProducePacketName [14:13:17]name=ofd_packets/00187757 [14:13:17]OFD Sender: To server: pG, [14:13:17]CommunicateWithHost lk.salyk.kg:30040 [14:13:17]ConnectInit lk.salyk.kg [14:13:18]Connected sock=10 [14:13:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 F0 AD 04 01 4F 6E 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DD 00 00 00 F4 03 04 00 7F 61 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 6D DD 02 00 35 04 06 00 7A 36 79 8D FB A2 2A 17 34 B1 94 83 91 CE [14:13:18]Write to MH i2c: 01 00 00 46 5F A5 [14:13:18]Write i2c OK [14:13:18]MH_I2C_Read... [14:13:18]Read from MH i2c: 01 [14:13:18]MH_I2C_Read... [14:13:18]Read from MH i2c: 01 07 00 [14:13:18]MH_I2C_Read... [14:13:18]Read from MH i2c: 01 07 00 46 5F 00 00 00 00 00 65 0C 1D [14:13:18]RasterBufferAndPrint [14:13:18]line [14:13:18]line [14:13:18]line [14:13:18]line [14:13:18]line [14:13:18]written 0, free lines is 3182 [14:13:18]MH_Cut [14:13:18]Write to MH i2c: D1 01 00 4D 5F 01 7E [14:13:18]Write i2c OK [14:13:18]MH_I2C_Read... [14:13:18]Read from MH i2c: D1 [14:13:18]MH_I2C_Read... [14:13:18]Read from MH i2c: D1 01 00 [14:13:18]MH_I2C_Read... [14:13:18]Read from MH i2c: D1 01 00 4D 5F 00 7D [14:13:18]Write to MH i2c: 01 00 00 4E 5F AD [14:13:18]Write i2c OK [14:13:18]MH_I2C_Read... [14:13:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 1D 4F 47 00 11 9B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 6D DD 02 00 F4 03 04 00 6F 0B 16 67 B6 04 01 00 00 FA 37 00 03 9B C6 8F AF [14:13:18]CommunicateWithHost err = 0 [14:13:18]CheckOFDResponse [14:13:18]1017 (14) - 77093643461234 [14:13:18]1041 (16) - 0000000000965340 [14:13:18]1040 (4) - 187757 [14:13:18]1012 (4) - 21.10.2024 08:06 [14:13:18]1206 (1) - 0 [14:13:18]OFD Sender: Remove packet 187757 [14:13:18]ProducePacketName [14:13:18]name=ofd_packets/00187757 [14:13:18]NVStorageDeleteData [14:13:18]OFD Sender: No OFD packet to send [14:13:19]*** Cut start [14:13:19]*** Partial cut [14:13:19]*** CUTSNS_PIN = 1 [14:13:19]*** CUTSNS_PIN = 0 [14:13:19]*** Brake cut motor [14:13:19]Read from MH i2c: 01 [14:13:19]MH_I2C_Read... [14:13:19]*** Stop cut motor [14:13:19]*** Cut end [14:13:19]Read from MH i2c: 01 07 00 [14:13:19]MH_I2C_Read... [14:13:19]Read from MH i2c: 01 07 00 4E 5F 00 00 00 00 00 FF 0F C2 [14:13:19]process_action close_receipt done [14:13:19]requested_data is exist [14:13:19]produce_requested_data [14:13:19]requested_item fm.sn is exist - process it [14:13:19]wFMCommunicate request_size=4 [14:13:19]MH_SAM_APDU [14:13:19]CAPDU: 80 11 00 00 [14:13:19]Write to MH i2c: E2 08 00 4F 5F 80 11 00 00 00 00 00 00 28 [14:13:19]Write i2c OK [14:13:19]MH_I2C_Read... [14:13:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:13:19]Read from MH i2c: E2 [14:13:19]MH_I2C_Read... [14:13:19]Read from MH i2c: E2 17 00 [14:13:19]MH_I2C_Read... [14:13:19]Read from MH i2c: E2 17 00 4F 5F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 76 [14:13:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [14:13:20]wFMCommunicate OK [14:13:20]requested_item fd.num is exist - process it [14:13:20]SAM_PROTO_GetFieldsCounters [14:13:20]wFMCommunicate request_size=4 [14:13:20]MH_SAM_APDU [14:13:20]CAPDU: 80 13 00 00 [14:13:20]Write to MH i2c: E2 08 00 50 5F 80 13 00 00 00 00 00 00 2B [14:13:20]Write i2c OK [14:13:20]MH_I2C_Read... [14:13:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:13:20]Read from MH i2c: E2 [14:13:20]MH_I2C_Read... [14:13:20]Read from MH i2c: E2 62 00 [14:13:20]MH_I2C_Read... [14:13:20]Read from MH i2c: E2 62 00 50 5F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 6D DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 DD 00 00 00 5E 04 04 00 DD 00 00 00 57 04 04 00 DE 00 00 00 19 04 04 00 00 00 00 00 90 00 E2 [14:13:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 6D DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 DD 00 00 00 5E 04 04 00 DD 00 00 00 57 04 04 00 DE 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:13:20]wFMCommunicate OK [14:13:20]SAM_PROTO_GetFieldsCounters done [14:13:20]requested_item shift.num is exist - process it [14:13:20]requested_item shift.opened is exist - process it [14:13:20]req_shift_opened [14:13:20]FM_GetShiftState [14:13:20]SAM_PROTO_GetShiftState [14:13:20]wFMCommunicate request_size=4 [14:13:20]MH_SAM_APDU [14:13:20]CAPDU: 80 13 01 00 [14:13:20]Write to MH i2c: E2 08 00 51 5F 80 13 01 00 00 00 00 00 2D [14:13:20]Write i2c OK [14:13:20]MH_I2C_Read... [14:13:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:13:20]Read from MH i2c: E2 [14:13:20]MH_I2C_Read... [14:13:20]Read from MH i2c: E2 0E 00 [14:13:20]MH_I2C_Read... [14:13:20]Read from MH i2c: E2 0E 00 51 5F 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 8C [14:13:20]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [14:13:20]wFMCommunicate OK [14:13:20]SAM_PROTO_GetShiftState done [14:13:20]FM_GetShiftState done [14:13:20]req_shift_opened done [14:13:20]requested_item shift.open_date is exist - process it [14:13:20]req_shift_open_date [14:13:20]req_shift_open_date done [14:13:20]produce_requested_data done [14:13:20]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187757,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [14:13:20]process_action_free close_receipt [14:13:20]json_value_free [14:13:20]json_value_free done [14:13:20]process_json_proto returns [14:13:20]Send response to host [14:13:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187757,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [14:13:20]free response buf [14:13:20]execute_script done [14:13:20]execute_script returns [14:13:20]free content buf [14:13:20]Sock 9.Close socket [14:13:20]Sock 9.Thread stoped [14:13:23]OFD Sender: No OFD packet to send [14:13:28]OFD Sender: No OFD packet to send [14:13:33]OFD Sender: No OFD packet to send [14:13:39]OFD Sender: No OFD packet to send [14:13:44]OFD Sender: No OFD packet to send [14:13:49]OFD Sender: No OFD packet to send [14:13:54]OFD Sender: No OFD packet to send [14:13:59]OFD Sender: No OFD packet to send [14:14:03]accept exits with 8 [14:14:03]New connection [14:14:03]New thread 3067157860 created [14:14:03]Thread 3067014500 joined [14:14:03]Waiting for new connection... [14:14:03] Sock 8.Parse request [14:14:03]Sock 8.Check first char [14:14:03]Sock 8.First char is OK [14:14:03]request: POST /json_proto HTTP/1.0 [14:14:03]Method: POST [14:14:03]URL: /json_proto [14:14:03]Method is POST - this is cgi request [14:14:03]url: /json_proto [14:14:03]query_string will be loaded in cgi processing [14:14:03]execute_cgi json_proto POST (null) [14:14:03]execute_cgi path=json_proto method=POST [14:14:03]POST find Content-Length [14:14:03]Host: 172.17.42.131:8080 [14:14:03]Content-Length: 677 [14:14:03]Content-Type: application/json [14:14:03] [14:14:03]POST finish read [14:14:03]Found Content-Length = 677 [14:14:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209810", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 9.440, "sum" : 700.45, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:14:03]execute_script... [14:14: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)209810", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 9.440, "sum" : 700.45, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:14:03]POST & json_proto [14:14:03]process_json_proto [14:14:03]json parsed OK: [14:14:03]protocol is kg_v1.0 [14:14:03]action value=close_receipt [14:14:03]process_action close_receipt [14:14:03]cmd_close_receipt [14:14:03]MH_GetDate [14:14:03]Write to MH i2c: F0 00 00 52 5F A0 [14:14:03]Write i2c OK [14:14:03]MH_I2C_Read... [14:14:03]Read from MH i2c: F0 [14:14:03]MH_I2C_Read... [14:14:03]Read from MH i2c: F0 09 00 [14:14:03]MH_I2C_Read... [14:14:03]Read from MH i2c: F0 09 00 52 5F 00 AF 61 16 67 A0 18 CA 66 1E [14:14:03]GetLastDocTimeStamp 1729519999 [14:14:03]current date 1729520047 [14:14:03]FM_GetShiftState [14:14:03]SAM_PROTO_GetShiftState [14:14:03]wFMCommunicate request_size=4 [14:14:03]MH_SAM_APDU [14:14:03]CAPDU: 80 13 01 00 [14:14:03]Write to MH i2c: E2 08 00 53 5F 80 13 01 00 00 00 00 00 2F [14:14:03]Write i2c OK [14:14:03]MH_I2C_Read... [14:14:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:14:03]Read from MH i2c: E2 [14:14:03]MH_I2C_Read... [14:14:03]Read from MH i2c: E2 0E 00 [14:14:03]MH_I2C_Read... [14:14:03]Read from MH i2c: E2 0E 00 53 5F 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 8E [14:14:03]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [14:14:03]wFMCommunicate OK [14:14:03]SAM_PROTO_GetShiftState done [14:14:03]FM_GetShiftState done [14:14:03]opened in 1729469754 [14:14:03]opened+sec_in_day 1729556154 [14:14:03]quantity*price = 70044 [14:14:03]sum+1 = 70046 [14:14:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.45 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 222 21.10.2024 14:14 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 187758 ФПД: 156636002093460 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T141407&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187758&fm=156636002093460&tin=02508201610067®Number=0000000000100030&sum=70000 [14:14:04]StoreToDocumentArchive [14:14:04]shift 460 fd 187758 [14:14:04]save to /storage/0460/doc_00187758 [14:14:04]save last doc name /storage/0460/doc_00187758 to /storage/kkm_last_doc_name [14:14:04]save OK [14:14:04]Clear old archive folders... [14:14:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:14:04]tlvbuf is 010B8B50 [14:14:04]SAM_PROTO_ClearQueue [14:14:04]wFMCommunicate request_size=4 [14:14:04]MH_SAM_APDU [14:14:04]CAPDU: 80 09 00 00 [14:14:04]Write to MH i2c: E2 08 00 60 5F 80 09 00 00 00 00 00 00 31 [14:14:04]Write i2c OK [14:14:04]MH_I2C_Read... [14:14:04]Read from MH i2c: E2 [14:14:04]MH_I2C_Read... [14:14:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:14:04]Read from MH i2c: E2 03 00 [14:14:04]MH_I2C_Read... [14:14:04]Read from MH i2c: E2 03 00 60 5F 00 90 00 33 [14:14:04]RAPDU: 90 00 [14:14:04]wFMCommunicate OK [14:14:04]SAM_PROTO_ClearQueue done [14:14:04]KKMCreateOFDPacket [14:14:04]OFDProtocolAddRootSTLVToBuf [14:14:04]FM_MakeSignedData [14:14:04]FM_MakeSignedData [14:14:04]SAM_PROTO_SignData [14:14:04]wFMCommunicate request_size=4 [14:14:04]MH_SAM_APDU [14:14:04]CAPDU: 80 0D 01 02 [14:14:04]Write to MH i2c: E2 08 00 61 5F 80 0D 01 02 00 00 00 00 39 [14:14:04]Write i2c OK [14:14:04]MH_I2C_Read... [14:14:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:14:04]Read from MH i2c: E2 [14:14:04]MH_I2C_Read... [14:14:04]Read from MH i2c: E2 03 00 [14:14:04]MH_I2C_Read... [14:14:04]Read from MH i2c: E2 03 00 61 5F 00 90 00 34 [14:14:04]RAPDU: 90 00 [14:14:04]wFMCommunicate OK [14:14:04]wFMCommunicate request_size=255 [14:14:04]MH_SAM_APDU [14:14:04]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 E0 24 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 9D 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DE 00 00 00 F4 03 04 00 AF 61 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 6E DD 02 00 35 04 06 00 8E [14:14:04]Write to MH i2c: E2 02 01 62 5F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 E0 24 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 9D 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DE 00 00 00 F4 03 04 00 AF 61 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 6E DD 02 00 35 04 06 00 8E 00 00 A6 [14:14:04]Write i2c OK [14:14:04]MH_I2C_Read... [14:14:04]Read from MH i2c: E2 [14:14:04]MH_I2C_Read... [14:14:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:14:04]Read from MH i2c: E2 03 00 [14:14:04]MH_I2C_Read... [14:14:04]Read from MH i2c: E2 03 00 62 5F 00 90 00 35 [14:14:04]RAPDU: 90 00 [14:14:04]wFMCommunicate OK [14:14:04]wFMCommunicate request_size=10 [14:14:04]MH_SAM_APDU [14:14:04]CAPDU: 80 0D 02 02 05 75 A9 43 89 94 [14:14:04]Write to MH i2c: E2 0D 00 63 5F 80 0D 02 02 05 00 75 A9 43 89 94 00 00 C4 [14:14:04]Write i2c OK [14:14:04]MH_I2C_Read... [14:14:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:14:04]Read from MH i2c: E2 [14:14:04]MH_I2C_Read... [14:14:04]Read from MH i2c: E2 03 00 [14:14:04]MH_I2C_Read... [14:14:04]Read from MH i2c: E2 03 00 63 5F 00 90 00 36 [14:14:04]RAPDU: 90 00 [14:14:04]wFMCommunicate OK [14:14:04]wFMCommunicate request_size=4 [14:14:04]MH_SAM_APDU [14:14:04]CAPDU: 80 0D 03 02 [14:14:04]Write to MH i2c: E2 08 00 64 5F 80 0D 03 02 00 00 00 00 3E [14:14:04]Write i2c OK [14:14:04]MH_I2C_Read... [14:14:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:14:04]Read from MH i2c: E2 [14:14:04]MH_I2C_Read... [14:14:04]Read from MH i2c: E2 0B 00 [14:14:04]MH_I2C_Read... [14:14:04]Read from MH i2c: E2 0B 00 64 5F 00 DF 58 FB 31 81 13 B4 71 90 00 5B [14:14:04]RAPDU: DF 58 FB 31 81 13 B4 71 90 00 [14:14:04]wFMCommunicate OK [14:14:04]SAM_PROTO_SignData done [14:14:04]FM_MakeSignedData done [14:14:04]CreateOFDProtocolMessage [14:14:04]wFMCommunicate request_size=4 [14:14:04]MH_SAM_APDU [14:14:04]CAPDU: 80 11 00 00 [14:14:04]Write to MH i2c: E2 08 00 65 5F 80 11 00 00 00 00 00 00 3E [14:14:04]Write i2c OK [14:14:04]MH_I2C_Read... [14:14:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:14:05]Read from MH i2c: E2 [14:14:05]MH_I2C_Read... [14:14:05]Read from MH i2c: E2 17 00 [14:14:05]MH_I2C_Read... [14:14:05]Read from MH i2c: E2 17 00 65 5F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 8C [14:14:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [14:14:05]wFMCommunicate OK [14:14:05]CreateOFDProtocolMessage done [14:14:05]OFDSenderStorePacket 187758 [14:14:05]StoreOFDPacket docnum=187758 [14:14:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 83 35 07 01 7C 21 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 E0 24 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 9D 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DE 00 00 00 F4 03 04 00 AF 61 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 6E DD 02 00 35 04 06 00 8E 75 A9 43 89 94 DF 58 FB 31 81 13 B4 71 [14:14:05]CheckFolder [14:14:05]dirname=/storage/ofd_packets [14:14:05]CheckFolder done [14:14:05]ProducePacketName [14:14:05]name=ofd_packets/00187758 [14:14:05]NVStorageSaveData ofd_packets/00187758 [14:14:05]File name is /storage/ofd_packets/00187758 [14:14:05]Write 301 bytes [14:14:05]NVStorageSaveData done [14:14:05]OFDSenderStorePacket done [14:14:05]KKMCreateOFDPacket done [14:14:05]NVStorageSaveData kkm_last_timestamp [14:14:05]File name is /storage/kkm_last_timestamp [14:14:05]Write 4 bytes [14:14:05]NVStorageSaveData done [14:14:05]ExternCall_PrintAddStr [14:14:05]wPrintStart [14:14:05]Write to MH i2c: 01 00 00 66 5F C5 [14:14:05]Write i2c OK [14:14:05]MH_I2C_Read... [14:14:05]Read from MH i2c: 01 [14:14:05]MH_I2C_Read... [14:14:05]Read from MH i2c: 01 07 00 [14:14:05]MH_I2C_Read... [14:14:05]Read from MH i2c: 01 07 00 66 5F 00 00 00 00 00 FF 0F DA [14:14:05]RasterBufferAndPrint [14:14:05]line Счет N : (1)209810 [14:14:05]line ИНН: 02508201610067 [14:14:05]line Контрольно-Кассовый Чек [14:14:05]line ПРОДАЖА [14:14:05]line ТРК (МРК, ГНК) : 33 [14:14:05]line Товар: 2710124500 [14:14:05]line Аи-95-К-3 [14:14:05]line 9.440 * 74.20 [14:14:05]line = 700.45 [14:14:05]line НДС 12% НСП 1% [14:14:05]line > о реализуемом товаре [14:14:05]line ОКРУГЛЕНИЕ: -0.45 [14:14:05]line ИТОГО: 700.00 [14:14:05]line Внесено: 700.00 [14:14:05]line СДАЧА: 0.00 [14:14:05]line НСП 1% : 6.20 [14:14:05]line НДС 12% : 74.38 [14:14:05]line Наличными: 700.00 [14:14:05]line Безнал.: 0.00 [14:14:05]line Место: АЗС № 86 "Партнер Нефть" [14:14:05]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [14:14:05]line СНО: Общий режим [14:14:05]line Чек 222 21.10.2024 14:14 [14:14:05]line Смена: 460 ФФД: 1.0 [14:14:05]line ЗНМ: 0300000155 [14:14:05]line РНМ: 0000000000100030 [14:14:05]line Версия ККМ: 001 [14:14:05]line ФМ: 0000000000965340 [14:14:05]line ФД: 187758 [14:14:05]line ФПД: 156636002093460 [14:14:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T141407&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187758&fm=156636002093460&tin=02508201610067®Number=0000000000100030&sum=70000 [14:14:05]OFD Sender: Processing packet 187758 [packets to send 1062, broken 1061] [14:14:05]ProducePacketName [14:14:05]name=ofd_packets/00187758 [14:14:05]OFD Sender: To server: pG, [14:14:05]CommunicateWithHost lk.salyk.kg:30040 [14:14:05]ConnectInit lk.salyk.kg [14:14:05]written 0, free lines is 4095 [14:14:05]Connected sock=10 [14:14:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 83 35 07 01 7C 21 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 E0 24 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 9D 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DE 00 00 00 F4 03 04 00 AF 61 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 6E DD 02 00 35 04 06 00 8E 75 A9 43 89 94 DF 58 FB 31 81 13 B4 71 [14:14:05]Write to MH i2c: 01 00 00 91 5F F0 [14:14:05]Write i2c OK [14:14:05]MH_I2C_Read... [14:14:05]Read from MH i2c: 01 [14:14:05]MH_I2C_Read... [14:14:05]Read from MH i2c: 01 07 00 [14:14:05]MH_I2C_Read... [14:14:05]Read from MH i2c: 01 07 00 91 5F 00 00 00 00 00 6B 0C 6E [14:14:05]RasterBufferAndPrint [14:14:05]line [14:14:05]line [14:14:05]line [14:14:05]line [14:14:05]line [14:14:05]written 0, free lines is 3182 [14:14:05]MH_Cut [14:14:05]Write to MH i2c: D1 01 00 98 5F 01 C9 [14:14:05]Write i2c OK [14:14:05]MH_I2C_Read... [14:14:05]Read from MH i2c: D1 [14:14:05]MH_I2C_Read... [14:14:05]Read from MH i2c: D1 01 00 [14:14:05]MH_I2C_Read... [14:14:05]Read from MH i2c: D1 01 00 98 5F 00 C8 [14:14:05]Write to MH i2c: 01 00 00 99 5F F8 [14:14:05]Write i2c OK [14:14:05]MH_I2C_Read... [14:14:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 53 F7 47 00 2E FE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 6E DD 02 00 F4 03 04 00 9F 0B 16 67 B6 04 01 00 00 A1 F2 27 C3 A6 2B 7B 0B [14:14:05]CommunicateWithHost err = 0 [14:14:05]CheckOFDResponse [14:14:05]1017 (14) - 77093643461234 [14:14:05]1041 (16) - 0000000000965340 [14:14:05]1040 (4) - 187758 [14:14:05]1012 (4) - 21.10.2024 08:06 [14:14:05]1206 (1) - 0 [14:14:05]OFD Sender: Remove packet 187758 [14:14:05]ProducePacketName [14:14:05]name=ofd_packets/00187758 [14:14:05]NVStorageDeleteData [14:14:06]OFD Sender: No OFD packet to send [14:14:06]*** Cut start [14:14:06]*** Partial cut [14:14:06]*** CUTSNS_PIN = 1 [14:14:06]*** CUTSNS_PIN = 0 [14:14:07]*** Brake cut motor [14:14:07]Read from MH i2c: 01 [14:14:07]MH_I2C_Read... [14:14:07]*** Stop cut motor [14:14:07]*** Cut end [14:14:07]Read from MH i2c: 01 07 00 [14:14:07]MH_I2C_Read... [14:14:07]Read from MH i2c: 01 07 00 99 5F 00 00 00 00 00 FF 0F 0D [14:14:07]process_action close_receipt done [14:14:07]requested_data is exist [14:14:07]produce_requested_data [14:14:07]requested_item fm.sn is exist - process it [14:14:07]wFMCommunicate request_size=4 [14:14:07]MH_SAM_APDU [14:14:07]CAPDU: 80 11 00 00 [14:14:07]Write to MH i2c: E2 08 00 9A 5F 80 11 00 00 00 00 00 00 73 [14:14:07]Write i2c OK [14:14:07]MH_I2C_Read... [14:14:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:14:07]Read from MH i2c: E2 [14:14:07]MH_I2C_Read... [14:14:07]Read from MH i2c: E2 17 00 [14:14:07]MH_I2C_Read... [14:14:07]Read from MH i2c: E2 17 00 9A 5F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 C1 [14:14:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [14:14:07]wFMCommunicate OK [14:14:07]requested_item fd.num is exist - process it [14:14:07]SAM_PROTO_GetFieldsCounters [14:14:07]wFMCommunicate request_size=4 [14:14:07]MH_SAM_APDU [14:14:07]CAPDU: 80 13 00 00 [14:14:07]Write to MH i2c: E2 08 00 9B 5F 80 13 00 00 00 00 00 00 76 [14:14:07]Write i2c OK [14:14:07]MH_I2C_Read... [14:14:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:14:07]Read from MH i2c: E2 [14:14:07]MH_I2C_Read... [14:14:07]Read from MH i2c: E2 62 00 [14:14:07]MH_I2C_Read... [14:14:07]Read from MH i2c: E2 62 00 9B 5F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 6E DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 DE 00 00 00 5E 04 04 00 DE 00 00 00 57 04 04 00 DF 00 00 00 19 04 04 00 00 00 00 00 90 00 31 [14:14:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 6E DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 DE 00 00 00 5E 04 04 00 DE 00 00 00 57 04 04 00 DF 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:14:07]wFMCommunicate OK [14:14:07]SAM_PROTO_GetFieldsCounters done [14:14:07]requested_item shift.num is exist - process it [14:14:07]requested_item shift.opened is exist - process it [14:14:07]req_shift_opened [14:14:07]FM_GetShiftState [14:14:07]SAM_PROTO_GetShiftState [14:14:07]wFMCommunicate request_size=4 [14:14:07]MH_SAM_APDU [14:14:07]CAPDU: 80 13 01 00 [14:14:07]Write to MH i2c: E2 08 00 9C 5F 80 13 01 00 00 00 00 00 78 [14:14:07]Write i2c OK [14:14:07]MH_I2C_Read... [14:14:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:14:07]Read from MH i2c: E2 [14:14:07]MH_I2C_Read... [14:14:07]Read from MH i2c: E2 0E 00 [14:14:07]MH_I2C_Read... [14:14:07]Read from MH i2c: E2 0E 00 9C 5F 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 D7 [14:14:07]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [14:14:07]wFMCommunicate OK [14:14:07]SAM_PROTO_GetShiftState done [14:14:07]FM_GetShiftState done [14:14:07]req_shift_opened done [14:14:07]requested_item shift.open_date is exist - process it [14:14:07]req_shift_open_date [14:14:07]req_shift_open_date done [14:14:07]produce_requested_data done [14:14:07]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187758,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [14:14:07]process_action_free close_receipt [14:14:07]json_value_free [14:14:07]json_value_free done [14:14:07]process_json_proto returns [14:14:07]Send response to host [14:14:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187758,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [14:14:07]free response buf [14:14:07]execute_script done [14:14:07]execute_script returns [14:14:07]free content buf [14:14:07]Sock 8.Close socket [14:14:07]Sock 8.Thread stoped [14:14:11]OFD Sender: No OFD packet to send [14:14:16]OFD Sender: No OFD packet to send [14:14:21]OFD Sender: No OFD packet to send [14:14:26]OFD Sender: No OFD packet to send [14:14:31]OFD Sender: No OFD packet to send [14:14:36]OFD Sender: No OFD packet to send [14:14:41]OFD Sender: No OFD packet to send [14:14:46]OFD Sender: No OFD packet to send [14:14:50]accept exits with 9 [14:14:50]New connection [14:14:50]New thread 3067014500 created [14:14:50]Thread 3067157860 joined [14:14:50]Waiting for new connection... [14:14:50] Sock 9.Parse request [14:14:50]Sock 9.Check first char [14:14:50]Sock 9.First char is OK [14:14:50]request: POST /json_proto HTTP/1.0 [14:14:50]Method: POST [14:14:50]URL: /json_proto [14:14:50]Method is POST - this is cgi request [14:14:50]url: /json_proto [14:14:50]query_string will be loaded in cgi processing [14:14:50]execute_cgi json_proto POST (null) [14:14:50]execute_cgi path=json_proto method=POST [14:14:50]POST find Content-Length [14:14:50]Host: 172.17.42.131:8080 [14:14:50]Content-Length: 682 [14:14:50]Content-Type: application/json [14:14:50] [14:14:50]POST finish read [14:14:50]Found Content-Length = 682 [14:14:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209811", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "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:14:50]execute_script... [14:14: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)209811", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "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:14:50]POST & json_proto [14:14:50]process_json_proto [14:14:50]json parsed OK: [14:14:50]protocol is kg_v1.0 [14:14:50]action value=close_receipt [14:14:50]process_action close_receipt [14:14:50]cmd_close_receipt [14:14:50]MH_GetDate [14:14:50]Write to MH i2c: F0 00 00 9D 5F EB [14:14:50]Write i2c OK [14:14:50]MH_I2C_Read... [14:14:50]Read from MH i2c: F0 [14:14:50]MH_I2C_Read... [14:14:50]Read from MH i2c: F0 09 00 [14:14:50]MH_I2C_Read... [14:14:50]Read from MH i2c: F0 09 00 9D 5F 00 DE 61 16 67 A0 18 CA 66 98 [14:14:50]GetLastDocTimeStamp 1729520047 [14:14:50]current date 1729520094 [14:14:50]FM_GetShiftState [14:14:50]SAM_PROTO_GetShiftState [14:14:50]wFMCommunicate request_size=4 [14:14:50]MH_SAM_APDU [14:14:50]CAPDU: 80 13 01 00 [14:14:50]Write to MH i2c: E2 08 00 9E 5F 80 13 01 00 00 00 00 00 7A [14:14:50]Write i2c OK [14:14:50]MH_I2C_Read... [14:14:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:14:50]Read from MH i2c: E2 [14:14:50]MH_I2C_Read... [14:14:50]Read from MH i2c: E2 0E 00 [14:14:50]MH_I2C_Read... [14:14:50]Read from MH i2c: E2 0E 00 9E 5F 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 D9 [14:14:50]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [14:14:50]wFMCommunicate OK [14:14:50]SAM_PROTO_GetShiftState done [14:14:50]FM_GetShiftState done [14:14:50]opened in 1729469754 [14:14:50]opened+sec_in_day 1729556154 [14:14:50]quantity*price = 100015 [14:14:50]sum+1 = 100017 [14:14:50]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 223 21.10.2024 14:14 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 187759 ФПД: 231557063362784 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T141454&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187759&fm=231557063362784&tin=02508201610067®Number=0000000000100030&sum=100000 [14:14:51]StoreToDocumentArchive [14:14:51]shift 460 fd 187759 [14:14:51]save to /storage/0460/doc_00187759 [14:14:51]save last doc name /storage/0460/doc_00187759 to /storage/kkm_last_doc_name [14:14:51]save OK [14:14:51]Clear old archive folders... [14:14:51]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:14:51]tlvbuf is 0129A770 [14:14:51]SAM_PROTO_ClearQueue [14:14:51]wFMCommunicate request_size=4 [14:14:51]MH_SAM_APDU [14:14:51]CAPDU: 80 09 00 00 [14:14:51]Write to MH i2c: E2 08 00 AB 5F 80 09 00 00 00 00 00 00 7C [14:14:51]Write i2c OK [14:14:51]MH_I2C_Read... [14:14:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:14:51]Read from MH i2c: E2 [14:14:51]MH_I2C_Read... [14:14:51]Read from MH i2c: E2 03 00 [14:14:51]MH_I2C_Read... [14:14:51]Read from MH i2c: E2 03 00 AB 5F 00 90 00 7E [14:14:51]RAPDU: 90 00 [14:14:51]wFMCommunicate OK [14:14:51]SAM_PROTO_ClearQueue done [14:14:51]KKMCreateOFDPacket [14:14:51]OFDProtocolAddRootSTLVToBuf [14:14:51]FM_MakeSignedData [14:14:51]FM_MakeSignedData [14:14:51]SAM_PROTO_SignData [14:14:51]wFMCommunicate request_size=4 [14:14:51]MH_SAM_APDU [14:14:51]CAPDU: 80 0D 01 02 [14:14:51]Write to MH i2c: E2 08 00 AC 5F 80 0D 01 02 00 00 00 00 84 [14:14:51]Write i2c OK [14:14:51]MH_I2C_Read... [14:14:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:14:51]Read from MH i2c: E2 [14:14:51]MH_I2C_Read... [14:14:51]Read from MH i2c: E2 03 00 [14:14:51]MH_I2C_Read... [14:14:51]Read from MH i2c: E2 03 00 AC 5F 00 90 00 7F [14:14:51]RAPDU: 90 00 [14:14:51]wFMCommunicate OK [14:14:51]wFMCommunicate request_size=255 [14:14:51]MH_SAM_APDU [14:14: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 33 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 DF 00 00 00 F4 03 04 00 DE 61 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 6F DD 02 00 35 04 06 00 D2 [14:14:51]Write to MH i2c: E2 02 01 AD 5F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 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 DF 00 00 00 F4 03 04 00 DE 61 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 6F DD 02 00 35 04 06 00 D2 00 00 79 [14:14:51]Write i2c OK [14:14:51]MH_I2C_Read... [14:14:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:14:51]OFD Sender: No OFD packet to send [14:14:51]Read from MH i2c: E2 [14:14:51]MH_I2C_Read... [14:14:51]Read from MH i2c: E2 03 00 [14:14:51]MH_I2C_Read... [14:14:51]Read from MH i2c: E2 03 00 AD 5F 00 90 00 80 [14:14:51]RAPDU: 90 00 [14:14:51]wFMCommunicate OK [14:14:51]wFMCommunicate request_size=10 [14:14:51]MH_SAM_APDU [14:14:51]CAPDU: 80 0D 02 02 05 99 94 81 C8 E0 [14:14:51]Write to MH i2c: E2 0D 00 AE 5F 80 0D 02 02 05 00 99 94 81 C8 E0 00 00 E7 [14:14:51]Write i2c OK [14:14:51]MH_I2C_Read... [14:14:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:14:51]Read from MH i2c: E2 [14:14:51]MH_I2C_Read... [14:14:51]Read from MH i2c: E2 03 00 [14:14:51]MH_I2C_Read... [14:14:51]Read from MH i2c: E2 03 00 AE 5F 00 90 00 81 [14:14:51]RAPDU: 90 00 [14:14:51]wFMCommunicate OK [14:14:51]wFMCommunicate request_size=4 [14:14:51]MH_SAM_APDU [14:14:51]CAPDU: 80 0D 03 02 [14:14:51]Write to MH i2c: E2 08 00 AF 5F 80 0D 03 02 00 00 00 00 89 [14:14:51]Write i2c OK [14:14:51]MH_I2C_Read... [14:14:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:14:51]Read from MH i2c: E2 [14:14:51]MH_I2C_Read... [14:14:51]Read from MH i2c: E2 0B 00 [14:14:51]MH_I2C_Read... [14:14:51]Read from MH i2c: E2 0B 00 AF 5F 00 4F C2 9C 4D 7F 50 EF 4A 90 00 8C [14:14:51]RAPDU: 4F C2 9C 4D 7F 50 EF 4A 90 00 [14:14:51]wFMCommunicate OK [14:14:51]SAM_PROTO_SignData done [14:14:51]FM_MakeSignedData done [14:14:51]CreateOFDProtocolMessage [14:14:51]wFMCommunicate request_size=4 [14:14:51]MH_SAM_APDU [14:14:51]CAPDU: 80 11 00 00 [14:14:51]Write to MH i2c: E2 08 00 B0 5F 80 11 00 00 00 00 00 00 89 [14:14:51]Write i2c OK [14:14:51]MH_I2C_Read... [14:14:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:14:51]Read from MH i2c: E2 [14:14:51]MH_I2C_Read... [14:14:51]Read from MH i2c: E2 17 00 [14:14:51]MH_I2C_Read... [14:14:51]Read from MH i2c: E2 17 00 B0 5F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 D7 [14:14:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [14:14:51]wFMCommunicate OK [14:14:51]CreateOFDProtocolMessage done [14:14:51]OFDSenderStorePacket 187759 [14:14:51]StoreOFDPacket docnum=187759 [14:14:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 7F 1B 07 01 77 95 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 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 DF 00 00 00 F4 03 04 00 DE 61 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 6F DD 02 00 35 04 06 00 D2 99 94 81 C8 E0 4F C2 9C 4D 7F 50 EF 4A [14:14:51]CheckFolder [14:14:51]dirname=/storage/ofd_packets [14:14:51]CheckFolder done [14:14:51]ProducePacketName [14:14:51]name=ofd_packets/00187759 [14:14:51]NVStorageSaveData ofd_packets/00187759 [14:14:51]File name is /storage/ofd_packets/00187759 [14:14:51]Write 301 bytes [14:14:51]NVStorageSaveData done [14:14:51]OFDSenderStorePacket done [14:14:51]KKMCreateOFDPacket done [14:14:51]NVStorageSaveData kkm_last_timestamp [14:14:51]File name is /storage/kkm_last_timestamp [14:14:51]Write 4 bytes [14:14:51]NVStorageSaveData done [14:14:51]ExternCall_PrintAddStr [14:14:51]wPrintStart [14:14:51]Write to MH i2c: 01 00 00 B1 5F 10 [14:14:51]Write i2c OK [14:14:51]MH_I2C_Read... [14:14:51]Read from MH i2c: 01 [14:14:51]MH_I2C_Read... [14:14:51]Read from MH i2c: 01 07 00 [14:14:51]MH_I2C_Read... [14:14:51]Read from MH i2c: 01 07 00 B1 5F 00 00 00 00 00 FF 0F 25 [14:14:51]RasterBufferAndPrint [14:14:51]line Счет N : (1)209811 [14:14:51]line ИНН: 02508201610067 [14:14:51]line Контрольно-Кассовый Чек [14:14:51]line ПРОДАЖА [14:14:51]line ТРК (МРК, ГНК) : 42 [14:14:51]line Товар: 2710124130 [14:14:51]line Аи-92-К-3 [14:14:51]line 14.950 * 66.90 [14:14:51]line = 1000.16 [14:14:51]line НДС 12% НСП 1% [14:14:51]line > о реализуемом товаре [14:14:51]line ОКРУГЛЕНИЕ: -0.16 [14:14:51]line ИТОГО: 1000.00 [14:14:51]line Внесено: 1000.00 [14:14:51]line СДАЧА: 0.00 [14:14:51]line НСП 1% : 8.85 [14:14:51]line НДС 12% : 106.21 [14:14:51]line Наличными: 1000.00 [14:14:51]line Безнал.: 0.00 [14:14:51]line Место: АЗС № 86 "Партнер Нефть" [14:14:51]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [14:14:51]line СНО: Общий режим [14:14:51]line Чек 223 21.10.2024 14:14 [14:14:51]line Смена: 460 ФФД: 1.0 [14:14:51]line ЗНМ: 0300000155 [14:14:51]line РНМ: 0000000000100030 [14:14:51]line Версия ККМ: 001 [14:14:51]line ФМ: 0000000000965340 [14:14:51]line ФД: 187759 [14:14:51]line ФПД: 231557063362784 [14:14:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T141454&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187759&fm=231557063362784&tin=02508201610067®Number=0000000000100030&sum=100000 [14:14:51]written 0, free lines is 4095 [14:14:51]OFD Sender: Processing packet 187759 [packets to send 1062, broken 1061] [14:14:51]ProducePacketName [14:14:51]name=ofd_packets/00187759 [14:14:51]OFD Sender: To server: pG, [14:14:51]CommunicateWithHost lk.salyk.kg:30040 [14:14:51]ConnectInit lk.salyk.kg [14:14:52]Connected sock=10 [14:14:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 7F 1B 07 01 77 95 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 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 DF 00 00 00 F4 03 04 00 DE 61 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 6F DD 02 00 35 04 06 00 D2 99 94 81 C8 E0 4F C2 9C 4D 7F 50 EF 4A [14:14:52]Write to MH i2c: 01 00 00 DC 5F 3B [14:14:52]Write i2c OK [14:14:52]MH_I2C_Read... [14:14:52]Read from MH i2c: 01 [14:14:52]MH_I2C_Read... [14:14:52]Read from MH i2c: 01 07 00 [14:14:52]MH_I2C_Read... [14:14:52]Read from MH i2c: 01 07 00 DC 5F 00 00 00 00 00 69 0C B7 [14:14:52]RasterBufferAndPrint [14:14:52]line [14:14:52]line [14:14:52]line [14:14:52]line [14:14:52]line [14:14:52]written 0, free lines is 3180 [14:14:52]MH_Cut [14:14:52]Write to MH i2c: D1 01 00 E3 5F 01 14 [14:14:52]Write i2c OK [14:14:52]MH_I2C_Read... [14:14:52]Read from MH i2c: D1 [14:14:52]MH_I2C_Read... [14:14:52]Read from MH i2c: D1 01 00 [14:14:52]MH_I2C_Read... [14:14:52]Read from MH i2c: D1 01 00 E3 5F 00 13 [14:14:52]Write to MH i2c: 01 00 00 E4 5F 43 [14:14:52]Write i2c OK [14:14:52]MH_I2C_Read... [14:14:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 FC 51 47 00 7E FE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 6F DD 02 00 F4 03 04 00 CE 0B 16 67 B6 04 01 00 00 60 92 70 FE 5B 35 4D 4F [14:14:52]CommunicateWithHost err = 0 [14:14:52]CheckOFDResponse [14:14:52]1017 (14) - 77093643461234 [14:14:52]1041 (16) - 0000000000965340 [14:14:52]1040 (4) - 187759 [14:14:52]1012 (4) - 21.10.2024 08:07 [14:14:52]1206 (1) - 0 [14:14:52]OFD Sender: Remove packet 187759 [14:14:52]ProducePacketName [14:14:52]name=ofd_packets/00187759 [14:14:52]NVStorageDeleteData [14:14:53]OFD Sender: No OFD packet to send [14:14:53]*** Cut start [14:14:53]*** Partial cut [14:14:53]*** CUTSNS_PIN = 1 [14:14:53]*** CUTSNS_PIN = 0 [14:14:53]*** Brake cut motor [14:14:54]Read from MH i2c: 01 [14:14:54]MH_I2C_Read... [14:14:54]*** Stop cut motor [14:14:54]*** Cut end [14:14:54]Read from MH i2c: 01 07 00 [14:14:54]MH_I2C_Read... [14:14:54]Read from MH i2c: 01 07 00 E4 5F 00 00 00 00 00 FF 0F 58 [14:14:54]process_action close_receipt done [14:14:54]requested_data is exist [14:14:54]produce_requested_data [14:14:54]requested_item fm.sn is exist - process it [14:14:54]wFMCommunicate request_size=4 [14:14:54]MH_SAM_APDU [14:14:54]CAPDU: 80 11 00 00 [14:14:54]Write to MH i2c: E2 08 00 E5 5F 80 11 00 00 00 00 00 00 BE [14:14:54]Write i2c OK [14:14:54]MH_I2C_Read... [14:14:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:14:54]Read from MH i2c: E2 [14:14:54]MH_I2C_Read... [14:14:54]Read from MH i2c: E2 17 00 [14:14:54]MH_I2C_Read... [14:14:54]Read from MH i2c: E2 17 00 E5 5F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 0C [14:14:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [14:14:54]wFMCommunicate OK [14:14:54]requested_item fd.num is exist - process it [14:14:54]SAM_PROTO_GetFieldsCounters [14:14:54]wFMCommunicate request_size=4 [14:14:54]MH_SAM_APDU [14:14:54]CAPDU: 80 13 00 00 [14:14:54]Write to MH i2c: E2 08 00 E6 5F 80 13 00 00 00 00 00 00 C1 [14:14:54]Write i2c OK [14:14:54]MH_I2C_Read... [14:14:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:14:54]Read from MH i2c: E2 [14:14:54]MH_I2C_Read... [14:14:54]Read from MH i2c: E2 62 00 [14:14:54]MH_I2C_Read... [14:14:54]Read from MH i2c: E2 62 00 E6 5F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 6F DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 DF 00 00 00 5E 04 04 00 DF 00 00 00 57 04 04 00 E0 00 00 00 19 04 04 00 00 00 00 00 90 00 80 [14:14:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 6F DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 DF 00 00 00 5E 04 04 00 DF 00 00 00 57 04 04 00 E0 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:14:54]wFMCommunicate OK [14:14:54]SAM_PROTO_GetFieldsCounters done [14:14:54]requested_item shift.num is exist - process it [14:14:54]requested_item shift.opened is exist - process it [14:14:54]req_shift_opened [14:14:54]FM_GetShiftState [14:14:54]SAM_PROTO_GetShiftState [14:14:54]wFMCommunicate request_size=4 [14:14:54]MH_SAM_APDU [14:14:54]CAPDU: 80 13 01 00 [14:14:54]Write to MH i2c: E2 08 00 E7 5F 80 13 01 00 00 00 00 00 C3 [14:14:54]Write i2c OK [14:14:54]MH_I2C_Read... [14:14:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:14:54]Read from MH i2c: E2 [14:14:54]MH_I2C_Read... [14:14:54]Read from MH i2c: E2 0E 00 [14:14:54]MH_I2C_Read... [14:14:54]Read from MH i2c: E2 0E 00 E7 5F 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 22 [14:14:54]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [14:14:54]wFMCommunicate OK [14:14:54]SAM_PROTO_GetShiftState done [14:14:54]FM_GetShiftState done [14:14:54]req_shift_opened done [14:14:54]requested_item shift.open_date is exist - process it [14:14:54]req_shift_open_date [14:14:54]req_shift_open_date done [14:14:54]produce_requested_data done [14:14:54]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187759,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [14:14:54]process_action_free close_receipt [14:14:54]json_value_free [14:14:54]json_value_free done [14:14:54]process_json_proto returns [14:14:54]Send response to host [14:14:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187759,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [14:14:54]free response buf [14:14:54]execute_script done [14:14:54]execute_script returns [14:14:54]free content buf [14:14:54]Sock 9.Close socket [14:14:54]Sock 9.Thread stoped [14:14:58]OFD Sender: No OFD packet to send [14:15:03]OFD Sender: No OFD packet to send [14:15:08]OFD Sender: No OFD packet to send [14:15:13]OFD Sender: No OFD packet to send [14:15:18]OFD Sender: No OFD packet to send [14:15:23]OFD Sender: No OFD packet to send [14:15:28]OFD Sender: No OFD packet to send [14:15:33]OFD Sender: No OFD packet to send [14:15:38]OFD Sender: No OFD packet to send [14:15:43]OFD Sender: No OFD packet to send [14:15:48]OFD Sender: No OFD packet to send [14:15:53]OFD Sender: No OFD packet to send [14:15:58]OFD Sender: No OFD packet to send [14:16:03]OFD Sender: No OFD packet to send [14:16:08]OFD Sender: No OFD packet to send [14:16:13]OFD Sender: No OFD packet to send [14:16:18]OFD Sender: No OFD packet to send [14:16:23]OFD Sender: No OFD packet to send [14:16:28]OFD Sender: No OFD packet to send [14:16:33]OFD Sender: No OFD packet to send [14:16:38]OFD Sender: No OFD packet to send [14:16:43]OFD Sender: No OFD packet to send [14:16:48]OFD Sender: No OFD packet to send [14:16:53]OFD Sender: No OFD packet to send [14:16:58]OFD Sender: No OFD packet to send [14:17:03]OFD Sender: No OFD packet to send [14:17:08]OFD Sender: No OFD packet to send [14:17:13]OFD Sender: No OFD packet to send [14:17:18]OFD Sender: No OFD packet to send [14:17:23]OFD Sender: No OFD packet to send [14:17:28]OFD Sender: No OFD packet to send [14:17:33]OFD Sender: No OFD packet to send [14:17:38]OFD Sender: No OFD packet to send [14:17:43]OFD Sender: No OFD packet to send [14:17:48]OFD Sender: No OFD packet to send [14:17:53]OFD Sender: No OFD packet to send [14:17:58]OFD Sender: No OFD packet to send [14:18:03]OFD Sender: No OFD packet to send [14:18:08]OFD Sender: No OFD packet to send [14:18:13]OFD Sender: No OFD packet to send [14:18:15]accept exits with 8 [14:18:15]New connection [14:18:15]New thread 3067157860 created [14:18:15]Thread 3067014500 joined [14:18:15]Waiting for new connection... [14:18:15] Sock 8.Parse request [14:18:15]Sock 8.Check first char [14:18:15]Sock 8.First char is OK [14:18:15]request: POST /json_proto HTTP/1.0 [14:18:15]Method: POST [14:18:15]URL: /json_proto [14:18:15]Method is POST - this is cgi request [14:18:15]url: /json_proto [14:18:15]query_string will be loaded in cgi processing [14:18:15]execute_cgi json_proto POST (null) [14:18:15]execute_cgi path=json_proto method=POST [14:18:15]POST find Content-Length [14:18:15]Host: 172.17.42.131:8080 [14:18:15]Content-Length: 677 [14:18:15]Content-Type: application/json [14:18:15] [14:18:15]POST finish read [14:18:15]Found Content-Length = 677 [14:18:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209812", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:18:15]execute_script... [14:18: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)209812", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:18:15]POST & json_proto [14:18:15]process_json_proto [14:18:15]json parsed OK: [14:18:15]protocol is kg_v1.0 [14:18:15]action value=close_receipt [14:18:15]process_action close_receipt [14:18:15]cmd_close_receipt [14:18:15]MH_GetDate [14:18:15]Write to MH i2c: F0 00 00 E8 5F 36 [14:18:15]Write i2c OK [14:18:15]MH_I2C_Read... [14:18:15]Read from MH i2c: F0 [14:18:15]MH_I2C_Read... [14:18:15]Read from MH i2c: F0 09 00 [14:18:15]MH_I2C_Read... [14:18:15]Read from MH i2c: F0 09 00 E8 5F 00 AC 62 16 67 A0 18 CA 66 B2 [14:18:15]GetLastDocTimeStamp 1729520094 [14:18:15]current date 1729520300 [14:18:15]FM_GetShiftState [14:18:15]SAM_PROTO_GetShiftState [14:18:15]wFMCommunicate request_size=4 [14:18:15]MH_SAM_APDU [14:18:15]CAPDU: 80 13 01 00 [14:18:15]Write to MH i2c: E2 08 00 E9 5F 80 13 01 00 00 00 00 00 C5 [14:18:15]Write i2c OK [14:18:15]MH_I2C_Read... [14:18:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:18:15]Read from MH i2c: E2 [14:18:15]MH_I2C_Read... [14:18:15]Read from MH i2c: E2 0E 00 [14:18:15]MH_I2C_Read... [14:18:15]Read from MH i2c: E2 0E 00 E9 5F 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 24 [14:18:15]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [14:18:15]wFMCommunicate OK [14:18:15]SAM_PROTO_GetShiftState done [14:18:15]FM_GetShiftState done [14:18:15]opened in 1729469754 [14:18:15]opened+sec_in_day 1729556154 [14:18:15]quantity*price = 30038 [14:18:15]sum+1 = 30039 [14:18:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 224 21.10.2024 14:18 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 187760 ФПД: 74170376635199 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T141820&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187760&fm=74170376635199&tin=02508201610067®Number=0000000000100030&sum=30000 [14:18:17]StoreToDocumentArchive [14:18:17]shift 460 fd 187760 [14:18:17]save to /storage/0460/doc_00187760 [14:18:17]save last doc name /storage/0460/doc_00187760 to /storage/kkm_last_doc_name [14:18:17]save OK [14:18:17]Clear old archive folders... [14:18:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:18:17]tlvbuf is 01236BF0 [14:18:17]SAM_PROTO_ClearQueue [14:18:17]wFMCommunicate request_size=4 [14:18:17]MH_SAM_APDU [14:18:17]CAPDU: 80 09 00 00 [14:18:17]Write to MH i2c: E2 08 00 F6 5F 80 09 00 00 00 00 00 00 C7 [14:18:17]Write i2c OK [14:18:17]MH_I2C_Read... [14:18:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:18:17]Read from MH i2c: E2 [14:18:17]MH_I2C_Read... [14:18:17]Read from MH i2c: E2 03 00 [14:18:17]MH_I2C_Read... [14:18:17]Read from MH i2c: E2 03 00 F6 5F 00 90 00 C9 [14:18:17]RAPDU: 90 00 [14:18:17]wFMCommunicate OK [14:18:17]SAM_PROTO_ClearQueue done [14:18:17]KKMCreateOFDPacket [14:18:17]OFDProtocolAddRootSTLVToBuf [14:18:17]FM_MakeSignedData [14:18:17]FM_MakeSignedData [14:18:17]SAM_PROTO_SignData [14:18:17]wFMCommunicate request_size=4 [14:18:17]MH_SAM_APDU [14:18:17]CAPDU: 80 0D 01 02 [14:18:17]Write to MH i2c: E2 08 00 F7 5F 80 0D 01 02 00 00 00 00 CF [14:18:17]Write i2c OK [14:18:17]MH_I2C_Read... [14:18:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:18:17]Read from MH i2c: E2 [14:18:17]MH_I2C_Read... [14:18:17]Read from MH i2c: E2 03 00 [14:18:17]MH_I2C_Read... [14:18:17]Read from MH i2c: E2 03 00 F7 5F 00 90 00 CA [14:18:17]RAPDU: 90 00 [14:18:17]wFMCommunicate OK [14:18:17]wFMCommunicate request_size=255 [14:18:17]MH_SAM_APDU [14:18:17]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 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 E0 00 00 00 F4 03 04 00 AC 62 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 70 DD 02 00 35 04 06 00 43 [14:18:17]Write to MH i2c: E2 02 01 F8 5F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 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 E0 00 00 00 F4 03 04 00 AC 62 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 70 DD 02 00 35 04 06 00 43 00 00 00 [14:18:17]Write i2c OK [14:18:17]MH_I2C_Read... [14:18:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:18:17]Read from MH i2c: E2 [14:18:17]MH_I2C_Read... [14:18:17]Read from MH i2c: E2 03 00 [14:18:17]MH_I2C_Read... [14:18:17]Read from MH i2c: E2 03 00 F8 5F 00 90 00 CB [14:18:17]RAPDU: 90 00 [14:18:17]wFMCommunicate OK [14:18:17]wFMCommunicate request_size=10 [14:18:17]MH_SAM_APDU [14:18:17]CAPDU: 80 0D 02 02 05 75 22 F3 C3 3F [14:18:17]Write to MH i2c: E2 0D 00 F9 5F 80 0D 02 02 05 00 75 22 F3 C3 3F 00 00 68 [14:18:17]Write i2c OK [14:18:17]MH_I2C_Read... [14:18:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:18:17]Read from MH i2c: E2 [14:18:17]MH_I2C_Read... [14:18:17]Read from MH i2c: E2 03 00 [14:18:17]MH_I2C_Read... [14:18:17]Read from MH i2c: E2 03 00 F9 5F 00 90 00 CC [14:18:17]RAPDU: 90 00 [14:18:17]wFMCommunicate OK [14:18:17]wFMCommunicate request_size=4 [14:18:17]MH_SAM_APDU [14:18:17]CAPDU: 80 0D 03 02 [14:18:17]Write to MH i2c: E2 08 00 FA 5F 80 0D 03 02 00 00 00 00 D4 [14:18:17]Write i2c OK [14:18:17]MH_I2C_Read... [14:18:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:18:17]Read from MH i2c: E2 [14:18:17]MH_I2C_Read... [14:18:17]Read from MH i2c: E2 0B 00 [14:18:17]MH_I2C_Read... [14:18:17]Read from MH i2c: E2 0B 00 FA 5F 00 20 16 E3 3C D1 70 99 D8 90 00 DC [14:18:17]RAPDU: 20 16 E3 3C D1 70 99 D8 90 00 [14:18:17]wFMCommunicate OK [14:18:17]SAM_PROTO_SignData done [14:18:17]FM_MakeSignedData done [14:18:17]CreateOFDProtocolMessage [14:18:17]wFMCommunicate request_size=4 [14:18:17]MH_SAM_APDU [14:18:17]CAPDU: 80 11 00 00 [14:18:17]Write to MH i2c: E2 08 00 FB 5F 80 11 00 00 00 00 00 00 D4 [14:18:17]Write i2c OK [14:18:17]MH_I2C_Read... [14:18:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:18:17]Read from MH i2c: E2 [14:18:17]MH_I2C_Read... [14:18:17]Read from MH i2c: E2 17 00 [14:18:17]MH_I2C_Read... [14:18:17]Read from MH i2c: E2 17 00 FB 5F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 22 [14:18:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [14:18:17]wFMCommunicate OK [14:18:17]CreateOFDProtocolMessage done [14:18:17]OFDSenderStorePacket 187760 [14:18:17]StoreOFDPacket docnum=187760 [14:18:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 42 4F 07 01 ED 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 33 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 E0 00 00 00 F4 03 04 00 AC 62 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 70 DD 02 00 35 04 06 00 43 75 22 F3 C3 3F 20 16 E3 3C D1 70 99 D8 [14:18:17]CheckFolder [14:18:17]dirname=/storage/ofd_packets [14:18:17]CheckFolder done [14:18:17]ProducePacketName [14:18:17]name=ofd_packets/00187760 [14:18:17]NVStorageSaveData ofd_packets/00187760 [14:18:17]File name is /storage/ofd_packets/00187760 [14:18:17]Write 301 bytes [14:18:17]NVStorageSaveData done [14:18:17]OFDSenderStorePacket done [14:18:17]KKMCreateOFDPacket done [14:18:17]NVStorageSaveData kkm_last_timestamp [14:18:17]File name is /storage/kkm_last_timestamp [14:18:17]Write 4 bytes [14:18:17]NVStorageSaveData done [14:18:17]ExternCall_PrintAddStr [14:18:17]wPrintStart [14:18:17]Write to MH i2c: 01 00 00 FC 5F 5B [14:18:17]Write i2c OK [14:18:17]MH_I2C_Read... [14:18:17]Read from MH i2c: 01 [14:18:17]MH_I2C_Read... [14:18:17]Read from MH i2c: 01 07 00 [14:18:17]MH_I2C_Read... [14:18:17]Read from MH i2c: 01 07 00 FC 5F 00 00 00 00 00 FF 0F 70 [14:18:17]RasterBufferAndPrint [14:18:17]line Счет N : (1)209812 [14:18:17]line ИНН: 02508201610067 [14:18:17]line Контрольно-Кассовый Чек [14:18:17]line ПРОДАЖА [14:18:17]line ТРК (МРК, ГНК) : 42 [14:18:17]line Товар: 2710124130 [14:18:17]line Аи-92-К-3 [14:18:17]line 4.490 * 66.90 [14:18:17]line = 300.38 [14:18:17]line НДС 12% НСП 1% [14:18:17]line > о реализуемом товаре [14:18:17]line ОКРУГЛЕНИЕ: -0.38 [14:18:17]line ИТОГО: 300.00 [14:18:17]line Внесено: 300.00 [14:18:17]line СДАЧА: 0.00 [14:18:17]line НСП 1% : 2.66 [14:18:17]line НДС 12% : 31.90 [14:18:17]line Наличными: 300.00 [14:18:17]line Безнал.: 0.00 [14:18:17]line Место: АЗС № 86 "Партнер Нефть" [14:18:17]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [14:18:17]line СНО: Общий режим [14:18:17]line Чек 224 21.10.2024 14:18 [14:18:17]line Смена: 460 ФФД: 1.0 [14:18:17]line ЗНМ: 0300000155 [14:18:17]line РНМ: 0000000000100030 [14:18:17]line Версия ККМ: 001 [14:18:17]line ФМ: 0000000000965340 [14:18:17]line ФД: 187760 [14:18:17]line ФПД: 74170376635199 [14:18:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T141820&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187760&fm=74170376635199&tin=02508201610067®Number=0000000000100030&sum=30000 [14:18:17]written 0, free lines is 4095 [14:18:17]OFD Sender: Processing packet 187760 [packets to send 1062, broken 1061] [14:18:17]ProducePacketName [14:18:17]name=ofd_packets/00187760 [14:18:17]OFD Sender: To server: pG, [14:18:17]CommunicateWithHost lk.salyk.kg:30040 [14:18:17]ConnectInit lk.salyk.kg [14:18:17]Connected sock=9 [14:18:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 42 4F 07 01 ED 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 33 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 E0 00 00 00 F4 03 04 00 AC 62 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 70 DD 02 00 35 04 06 00 43 75 22 F3 C3 3F 20 16 E3 3C D1 70 99 D8 [14:18:18]Write to MH i2c: 01 00 00 27 60 87 [14:18:18]Write i2c OK [14:18:18]MH_I2C_Read... [14:18:18]Read from MH i2c: 01 [14:18:18]MH_I2C_Read... [14:18:18]Read from MH i2c: 01 07 00 [14:18:18]MH_I2C_Read... [14:18:18]Read from MH i2c: 01 07 00 27 60 00 00 00 00 00 6C 0C 06 [14:18:18]RasterBufferAndPrint [14:18:18]line [14:18:18]line [14:18:18]line [14:18:18]line [14:18:18]line [14:18:18]written 0, free lines is 3183 [14:18:18]MH_Cut [14:18:18]Write to MH i2c: D1 01 00 2E 60 01 60 [14:18:18]Write i2c OK [14:18:18]MH_I2C_Read... [14:18:18]Read from MH i2c: D1 [14:18:18]MH_I2C_Read... [14:18:18]Read from MH i2c: D1 01 00 [14:18:18]MH_I2C_Read... [14:18:18]Read from MH i2c: D1 01 00 2E 60 00 5F [14:18:18]Write to MH i2c: 01 00 00 2F 60 8F [14:18:18]Write i2c OK [14:18:18]MH_I2C_Read... [14:18:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 33 85 47 00 C8 52 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 70 DD 02 00 F4 03 04 00 9B 0C 16 67 B6 04 01 00 00 42 D9 46 DD 31 97 03 E8 [14:18:18]CommunicateWithHost err = 0 [14:18:18]CheckOFDResponse [14:18:18]1017 (14) - 77093643461234 [14:18:18]1041 (16) - 0000000000965340 [14:18:18]1040 (4) - 187760 [14:18:18]1012 (4) - 21.10.2024 08:11 [14:18:18]1206 (1) - 0 [14:18:18]OFD Sender: Remove packet 187760 [14:18:18]ProducePacketName [14:18:18]name=ofd_packets/00187760 [14:18:18]NVStorageDeleteData [14:18:18]OFD Sender: No OFD packet to send [14:18:19]*** Cut start [14:18:19]*** Partial cut [14:18:19]*** CUTSNS_PIN = 1 [14:18:19]*** CUTSNS_PIN = 0 [14:18:19]*** Brake cut motor [14:18:19]Read from MH i2c: 01 [14:18:19]MH_I2C_Read... [14:18:19]*** Stop cut motor [14:18:19]*** Cut end [14:18:19]Read from MH i2c: 01 07 00 [14:18:19]MH_I2C_Read... [14:18:19]Read from MH i2c: 01 07 00 2F 60 00 00 00 00 00 FF 0F A4 [14:18:19]process_action close_receipt done [14:18:19]requested_data is exist [14:18:19]produce_requested_data [14:18:19]requested_item fm.sn is exist - process it [14:18:19]wFMCommunicate request_size=4 [14:18:19]MH_SAM_APDU [14:18:19]CAPDU: 80 11 00 00 [14:18:19]Write to MH i2c: E2 08 00 30 60 80 11 00 00 00 00 00 00 0A [14:18:19]Write i2c OK [14:18:19]MH_I2C_Read... [14:18:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:18:19]Read from MH i2c: E2 [14:18:19]MH_I2C_Read... [14:18:19]Read from MH i2c: E2 17 00 [14:18:19]MH_I2C_Read... [14:18:19]Read from MH i2c: E2 17 00 30 60 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 58 [14:18:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [14:18:19]wFMCommunicate OK [14:18:19]requested_item fd.num is exist - process it [14:18:19]SAM_PROTO_GetFieldsCounters [14:18:19]wFMCommunicate request_size=4 [14:18:19]MH_SAM_APDU [14:18:19]CAPDU: 80 13 00 00 [14:18:19]Write to MH i2c: E2 08 00 31 60 80 13 00 00 00 00 00 00 0D [14:18:20]Write i2c OK [14:18:20]MH_I2C_Read... [14:18:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:18:20]Read from MH i2c: E2 [14:18:20]MH_I2C_Read... [14:18:20]Read from MH i2c: E2 62 00 [14:18:20]MH_I2C_Read... [14:18:20]Read from MH i2c: E2 62 00 31 60 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 70 DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 E0 00 00 00 5E 04 04 00 E0 00 00 00 57 04 04 00 E1 00 00 00 19 04 04 00 00 00 00 00 90 00 D0 [14:18:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 70 DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 E0 00 00 00 5E 04 04 00 E0 00 00 00 57 04 04 00 E1 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:18:20]wFMCommunicate OK [14:18:20]SAM_PROTO_GetFieldsCounters done [14:18:20]requested_item shift.num is exist - process it [14:18:20]requested_item shift.opened is exist - process it [14:18:20]req_shift_opened [14:18:20]FM_GetShiftState [14:18:20]SAM_PROTO_GetShiftState [14:18:20]wFMCommunicate request_size=4 [14:18:20]MH_SAM_APDU [14:18:20]CAPDU: 80 13 01 00 [14:18:20]Write to MH i2c: E2 08 00 32 60 80 13 01 00 00 00 00 00 0F [14:18:20]Write i2c OK [14:18:20]MH_I2C_Read... [14:18:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:18:20]Read from MH i2c: E2 [14:18:20]MH_I2C_Read... [14:18:20]Read from MH i2c: E2 0E 00 [14:18:20]MH_I2C_Read... [14:18:20]Read from MH i2c: E2 0E 00 32 60 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 6E [14:18:20]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [14:18:20]wFMCommunicate OK [14:18:20]SAM_PROTO_GetShiftState done [14:18:20]FM_GetShiftState done [14:18:20]req_shift_opened done [14:18:20]requested_item shift.open_date is exist - process it [14:18:20]req_shift_open_date [14:18:20]req_shift_open_date done [14:18:20]produce_requested_data done [14:18:20]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187760,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [14:18:20]process_action_free close_receipt [14:18:20]json_value_free [14:18:20]json_value_free done [14:18:20]process_json_proto returns [14:18:20]Send response to host [14:18:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187760,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [14:18:20]free response buf [14:18:20]execute_script done [14:18:20]execute_script returns [14:18:20]free content buf [14:18:20]Sock 8.Close socket [14:18:20]Sock 8.Thread stoped [14:18:23]OFD Sender: No OFD packet to send [14:18:28]OFD Sender: No OFD packet to send [14:18:33]OFD Sender: No OFD packet to send [14:18:38]OFD Sender: No OFD packet to send [14:18:43]OFD Sender: No OFD packet to send [14:18:48]OFD Sender: No OFD packet to send [14:18:53]OFD Sender: No OFD packet to send [14:18:58]OFD Sender: No OFD packet to send [14:19:03]OFD Sender: No OFD packet to send [14:19:09]OFD Sender: No OFD packet to send [14:19:14]OFD Sender: No OFD packet to send [14:19:19]OFD Sender: No OFD packet to send [14:19:24]OFD Sender: No OFD packet to send [14:19:29]OFD Sender: No OFD packet to send [14:19:34]OFD Sender: No OFD packet to send [14:19:39]OFD Sender: No OFD packet to send [14:19:44]OFD Sender: No OFD packet to send [14:19:49]OFD Sender: No OFD packet to send [14:19:54]OFD Sender: No OFD packet to send [14:19:59]OFD Sender: No OFD packet to send [14:20:04]OFD Sender: No OFD packet to send [14:20:09]OFD Sender: No OFD packet to send [14:20:14]OFD Sender: No OFD packet to send [14:20:19]OFD Sender: No OFD packet to send [14:20:24]OFD Sender: No OFD packet to send [14:20:29]OFD Sender: No OFD packet to send [14:20:34]OFD Sender: No OFD packet to send [14:20:39]OFD Sender: No OFD packet to send [14:20:44]OFD Sender: No OFD packet to send [14:20:49]accept exits with 10 [14:20:49]New connection [14:20:49]New thread 3067014500 created [14:20:49]Thread 3067157860 joined [14:20:49]Waiting for new connection... [14:20:49] Sock 10.Parse request [14:20:49]Sock 10.Check first char [14:20:49]Sock 10.First char is OK [14:20:49]request: POST /json_proto HTTP/1.0 [14:20:49]Method: POST [14:20:49]URL: /json_proto [14:20:49]Method is POST - this is cgi request [14:20:49]url: /json_proto [14:20:49]query_string will be loaded in cgi processing [14:20:49]execute_cgi json_proto POST (null) [14:20:49]execute_cgi path=json_proto method=POST [14:20:49]POST find Content-Length [14:20:49]Host: 172.17.42.131:8080 [14:20:49]Content-Length: 688 [14:20:49]Content-Type: application/json [14:20:49] [14:20:49]POST finish read [14:20:49]Found Content-Length = 688 [14:20:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209813", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 12.960, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:20:49]execute_script... [14:20: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)209813", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 12.960, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:20:49]POST & json_proto [14:20:49]process_json_proto [14:20:49]json parsed OK: [14:20:49]protocol is kg_v1.0 [14:20:49]action value=close_receipt [14:20:49]process_action close_receipt [14:20:49]cmd_close_receipt [14:20:49]MH_GetDate [14:20:49]Write to MH i2c: F0 00 00 33 60 82 [14:20:49]Write i2c OK [14:20:49]MH_I2C_Read... [14:20:49]Read from MH i2c: F0 [14:20:49]MH_I2C_Read... [14:20:49]Read from MH i2c: F0 09 00 [14:20:49]MH_I2C_Read... [14:20:49]Read from MH i2c: F0 09 00 33 60 00 45 63 16 67 A0 18 CA 66 98 [14:20:49]GetLastDocTimeStamp 1729520300 [14:20:49]current date 1729520453 [14:20:49]FM_GetShiftState [14:20:49]SAM_PROTO_GetShiftState [14:20:49]wFMCommunicate request_size=4 [14:20:49]MH_SAM_APDU [14:20:49]CAPDU: 80 13 01 00 [14:20:49]Write to MH i2c: E2 08 00 34 60 80 13 01 00 00 00 00 00 11 [14:20:49]Write i2c OK [14:20:49]MH_I2C_Read... [14:20:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:20:49]Read from MH i2c: E2 [14:20:49]MH_I2C_Read... [14:20:49]Read from MH i2c: E2 0E 00 [14:20:49]MH_I2C_Read... [14:20:49]Read from MH i2c: E2 0E 00 34 60 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 70 [14:20:49]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [14:20:49]wFMCommunicate OK [14:20:49]SAM_PROTO_GetShiftState done [14:20:49]FM_GetShiftState done [14:20:49]opened in 1729469754 [14:20:49]opened+sec_in_day 1729556154 [14:20:49]quantity*price = 100051 [14:20:49]sum+1 = 100052 [14:20:49]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 225 21.10.2024 14:20 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 187761 ФПД: 22062559775072 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T142053&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187761&fm=22062559775072&tin=02508201610067®Number=0000000000100030&sum=100000 [14:20:50]StoreToDocumentArchive [14:20:50]shift 460 fd 187761 [14:20:50]save to /storage/0460/doc_00187761 [14:20:50]save last doc name /storage/0460/doc_00187761 to /storage/kkm_last_doc_name [14:20:50]save OK [14:20:50]Clear old archive folders... [14:20:50]ProcessDocumentItem done err = 0, tmpTLVsize=257 [14:20:50]tlvbuf is 010A0DE0 [14:20:50]SAM_PROTO_ClearQueue [14:20:50]wFMCommunicate request_size=4 [14:20:50]MH_SAM_APDU [14:20:50]CAPDU: 80 09 00 00 [14:20:50]Write to MH i2c: E2 08 00 41 60 80 09 00 00 00 00 00 00 13 [14:20:50]Write i2c OK [14:20:50]MH_I2C_Read... [14:20:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:20:50]Read from MH i2c: E2 [14:20:50]MH_I2C_Read... [14:20:50]Read from MH i2c: E2 03 00 [14:20:50]MH_I2C_Read... [14:20:50]Read from MH i2c: E2 03 00 41 60 00 90 00 15 [14:20:50]RAPDU: 90 00 [14:20:50]wFMCommunicate OK [14:20:50]SAM_PROTO_ClearQueue done [14:20:50]KKMCreateOFDPacket [14:20:50]OFDProtocolAddRootSTLVToBuf [14:20:50]FM_MakeSignedData [14:20:50]FM_MakeSignedData [14:20:50]SAM_PROTO_SignData [14:20:50]wFMCommunicate request_size=4 [14:20:50]MH_SAM_APDU [14:20:50]CAPDU: 80 0D 01 02 [14:20:50]Write to MH i2c: E2 08 00 42 60 80 0D 01 02 00 00 00 00 1B [14:20:50]Write i2c OK [14:20:50]MH_I2C_Read... [14:20:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:20:50]Read from MH i2c: E2 [14:20:50]MH_I2C_Read... [14:20:50]Read from MH i2c: E2 03 00 [14:20:50]MH_I2C_Read... [14:20:50]Read from MH i2c: E2 03 00 42 60 00 90 00 16 [14:20:50]RAPDU: 90 00 [14:20:50]wFMCommunicate OK [14:20:50]wFMCommunicate request_size=255 [14:20:50]MH_SAM_APDU [14:20:50]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 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E1 00 00 00 F4 03 04 00 45 63 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 71 DD 02 [14:20:50]Write to MH i2c: E2 02 01 43 60 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 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E1 00 00 00 F4 03 04 00 45 63 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 71 DD 02 00 00 9B [14:20:50]Write i2c OK [14:20:50]MH_I2C_Read... [14:20:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:20:50]Read from MH i2c: E2 [14:20:50]MH_I2C_Read... [14:20:50]Read from MH i2c: E2 03 00 [14:20:50]MH_I2C_Read... [14:20:50]Read from MH i2c: E2 03 00 43 60 00 90 00 17 [14:20:50]RAPDU: 90 00 [14:20:50]wFMCommunicate OK [14:20:50]wFMCommunicate request_size=16 [14:20:50]MH_SAM_APDU [14:20:50]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 14 10 D7 09 C9 60 [14:20:50]Write to MH i2c: E2 13 00 44 60 80 0D 02 02 0B 00 00 35 04 06 00 14 10 D7 09 C9 60 00 00 A0 [14:20:50]Write i2c OK [14:20:50]MH_I2C_Read... [14:20:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:20:50]Read from MH i2c: E2 [14:20:50]MH_I2C_Read... [14:20:50]Read from MH i2c: E2 03 00 [14:20:50]MH_I2C_Read... [14:20:50]Read from MH i2c: E2 03 00 44 60 00 90 00 18 [14:20:50]RAPDU: 90 00 [14:20:50]wFMCommunicate OK [14:20:50]wFMCommunicate request_size=4 [14:20:50]MH_SAM_APDU [14:20:50]CAPDU: 80 0D 03 02 [14:20:50]Write to MH i2c: E2 08 00 45 60 80 0D 03 02 00 00 00 00 20 [14:20:50]Write i2c OK [14:20:50]MH_I2C_Read... [14:20:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:20:50]Read from MH i2c: E2 [14:20:50]MH_I2C_Read... [14:20:50]Read from MH i2c: E2 0B 00 [14:20:50]MH_I2C_Read... [14:20:50]Read from MH i2c: E2 0B 00 45 60 00 52 F2 25 90 9E B3 34 61 90 00 00 [14:20:50]RAPDU: 52 F2 25 90 9E B3 34 61 90 00 [14:20:50]wFMCommunicate OK [14:20:50]SAM_PROTO_SignData done [14:20:50]FM_MakeSignedData done [14:20:50]CreateOFDProtocolMessage [14:20:50]wFMCommunicate request_size=4 [14:20:50]MH_SAM_APDU [14:20:50]CAPDU: 80 11 00 00 [14:20:50]Write to MH i2c: E2 08 00 46 60 80 11 00 00 00 00 00 00 20 [14:20:50]Write i2c OK [14:20:50]MH_I2C_Read... [14:20:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:20:50]Read from MH i2c: E2 [14:20:50]MH_I2C_Read... [14:20:50]Read from MH i2c: E2 17 00 [14:20:50]MH_I2C_Read... [14:20:50]Read from MH i2c: E2 17 00 46 60 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 6E [14:20:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [14:20:50]wFMCommunicate OK [14:20:50]CreateOFDProtocolMessage done [14:20:50]OFDSenderStorePacket 187761 [14:20:50]StoreOFDPacket docnum=187761 [14:20:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 97 EA 0D 01 2A 0F 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E1 00 00 00 F4 03 04 00 45 63 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 71 DD 02 00 35 04 06 00 14 10 D7 09 C9 60 52 F2 25 90 9E B3 34 61 [14:20:50]CheckFolder [14:20:50]dirname=/storage/ofd_packets [14:20:50]CheckFolder done [14:20:50]ProducePacketName [14:20:50]name=ofd_packets/00187761 [14:20:50]NVStorageSaveData ofd_packets/00187761 [14:20:50]File name is /storage/ofd_packets/00187761 [14:20:50]Write 307 bytes [14:20:50]NVStorageSaveData done [14:20:50]OFDSenderStorePacket done [14:20:50]KKMCreateOFDPacket done [14:20:50]NVStorageSaveData kkm_last_timestamp [14:20:50]File name is /storage/kkm_last_timestamp [14:20:50]Write 4 bytes [14:20:50]NVStorageSaveData done [14:20:50]ExternCall_PrintAddStr [14:20:50]wPrintStart [14:20:50]Write to MH i2c: 01 00 00 47 60 A7 [14:20:50]Write i2c OK [14:20:50]MH_I2C_Read... [14:20:50]Read from MH i2c: 01 [14:20:50]MH_I2C_Read... [14:20:50]Read from MH i2c: 01 07 00 [14:20:50]MH_I2C_Read... [14:20:50]Read from MH i2c: 01 07 00 47 60 00 00 00 00 00 FF 0F BC [14:20:50]RasterBufferAndPrint [14:20:50]line Счет N : (1)209813 [14:20:50]line ИНН: 02508201610067 [14:20:50]line Контрольно-Кассовый Чек [14:20:50]line ПРОДАЖА [14:20:50]line ТРК (МРК, ГНК) : 21 [14:20:50]line Товар: 2710194210 [14:20:50]line D-ENERGY ДТ-К-5 [14:20:50]line 12.960 * 77.20 [14:20:50]line = 1000.51 [14:20:50]line НДС 12% НСП 1% [14:20:50]line > о реализуемом товаре [14:20:50]line ОКРУГЛЕНИЕ: -0.51 [14:20:50]line ИТОГО: 1000.00 [14:20:50]line Внесено: 1000.00 [14:20:50]line СДАЧА: 0.00 [14:20:50]line НСП 1% : 8.85 [14:20:50]line НДС 12% : 106.25 [14:20:50]line Наличными: 1000.00 [14:20:50]line Безнал.: 0.00 [14:20:50]line Место: АЗС № 86 "Партнер Нефть" [14:20:50]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [14:20:50]line СНО: Общий режим [14:20:50]line Чек 225 21.10.2024 14:20 [14:20:50]line Смена: 460 ФФД: 1.0 [14:20:50]line ЗНМ: 0300000155 [14:20:50]line РНМ: 0000000000100030 [14:20:50]line Версия ККМ: 001 [14:20:50]line ФМ: 0000000000965340 [14:20:50]line ФД: 187761 [14:20:50]line ФПД: 22062559775072 [14:20:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T142053&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187761&fm=22062559775072&tin=02508201610067®Number=0000000000100030&sum=100000 [14:20:50]written 0, free lines is 4095 [14:20:50]OFD Sender: Processing packet 187761 [packets to send 1062, broken 1061] [14:20:50]ProducePacketName [14:20:50]name=ofd_packets/00187761 [14:20:50]OFD Sender: To server: pG, [14:20:50]CommunicateWithHost lk.salyk.kg:30040 [14:20:50]ConnectInit lk.salyk.kg [14:20:51]Connected sock=9 [14:20:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 97 EA 0D 01 2A 0F 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E1 00 00 00 F4 03 04 00 45 63 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 71 DD 02 00 35 04 06 00 14 10 D7 09 C9 60 52 F2 25 90 9E B3 34 61 [14:20:51]Write to MH i2c: 01 00 00 72 60 D2 [14:20:51]Write i2c OK [14:20:51]MH_I2C_Read... [14:20:51]Read from MH i2c: 01 [14:20:51]MH_I2C_Read... [14:20:51]Read from MH i2c: 01 07 00 [14:20:51]MH_I2C_Read... [14:20:51]Read from MH i2c: 01 07 00 72 60 00 00 00 00 00 60 0C 45 [14:20:51]RasterBufferAndPrint [14:20:51]line [14:20:51]line [14:20:51]line [14:20:51]line [14:20:51]line [14:20:51]written 0, free lines is 3173 [14:20:51]MH_Cut [14:20:51]Write to MH i2c: D1 01 00 79 60 01 AB [14:20:51]Write i2c OK [14:20:51]MH_I2C_Read... [14:20:51]Read from MH i2c: D1 [14:20:51]MH_I2C_Read... [14:20:51]Read from MH i2c: D1 01 00 [14:20:51]MH_I2C_Read... [14:20:51]Read from MH i2c: D1 01 00 79 60 00 AA [14:20:51]Write to MH i2c: 01 00 00 7A 60 DA [14:20:51]Write i2c OK [14:20:51]MH_I2C_Read... [14:20:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 4F FC 47 00 E8 1E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 71 DD 02 00 F4 03 04 00 35 0D 16 67 B6 04 01 00 00 57 F6 3B FB EC 0E 63 B7 [14:20:51]CommunicateWithHost err = 0 [14:20:51]CheckOFDResponse [14:20:51]1017 (14) - 77093643461234 [14:20:51]1041 (16) - 0000000000965340 [14:20:51]1040 (4) - 187761 [14:20:51]1012 (4) - 21.10.2024 08:13 [14:20:51]1206 (1) - 0 [14:20:51]OFD Sender: Remove packet 187761 [14:20:51]ProducePacketName [14:20:51]name=ofd_packets/00187761 [14:20:51]NVStorageDeleteData [14:20:52]OFD Sender: No OFD packet to send [14:20:52]*** Cut start [14:20:52]*** Partial cut [14:20:52]*** CUTSNS_PIN = 1 [14:20:52]*** CUTSNS_PIN = 0 [14:20:52]*** Brake cut motor [14:20:53]Read from MH i2c: 01 [14:20:53]MH_I2C_Read... [14:20:53]*** Stop cut motor [14:20:53]*** Cut end [14:20:53]Read from MH i2c: 01 07 00 [14:20:53]MH_I2C_Read... [14:20:53]Read from MH i2c: 01 07 00 7A 60 00 00 00 00 00 FF 0F EF [14:20:53]process_action close_receipt done [14:20:53]requested_data is exist [14:20:53]produce_requested_data [14:20:53]requested_item fm.sn is exist - process it [14:20:53]wFMCommunicate request_size=4 [14:20:53]MH_SAM_APDU [14:20:53]CAPDU: 80 11 00 00 [14:20:53]Write to MH i2c: E2 08 00 7B 60 80 11 00 00 00 00 00 00 55 [14:20:53]Write i2c OK [14:20:53]MH_I2C_Read... [14:20:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:20:53]Read from MH i2c: E2 [14:20:53]MH_I2C_Read... [14:20:53]Read from MH i2c: E2 17 00 [14:20:53]MH_I2C_Read... [14:20:53]Read from MH i2c: E2 17 00 7B 60 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 A3 [14:20:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [14:20:53]wFMCommunicate OK [14:20:53]requested_item fd.num is exist - process it [14:20:53]SAM_PROTO_GetFieldsCounters [14:20:53]wFMCommunicate request_size=4 [14:20:53]MH_SAM_APDU [14:20:53]CAPDU: 80 13 00 00 [14:20:53]Write to MH i2c: E2 08 00 7C 60 80 13 00 00 00 00 00 00 58 [14:20:53]Write i2c OK [14:20:53]MH_I2C_Read... [14:20:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:20:53]Read from MH i2c: E2 [14:20:53]MH_I2C_Read... [14:20:53]Read from MH i2c: E2 62 00 [14:20:53]MH_I2C_Read... [14:20:53]Read from MH i2c: E2 62 00 7C 60 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 71 DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 E1 00 00 00 5E 04 04 00 E1 00 00 00 57 04 04 00 E2 00 00 00 19 04 04 00 00 00 00 00 90 00 1F [14:20:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 71 DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 E1 00 00 00 5E 04 04 00 E1 00 00 00 57 04 04 00 E2 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:20:53]wFMCommunicate OK [14:20:53]SAM_PROTO_GetFieldsCounters done [14:20:53]requested_item shift.num is exist - process it [14:20:53]requested_item shift.opened is exist - process it [14:20:53]req_shift_opened [14:20:53]FM_GetShiftState [14:20:53]SAM_PROTO_GetShiftState [14:20:53]wFMCommunicate request_size=4 [14:20:53]MH_SAM_APDU [14:20:53]CAPDU: 80 13 01 00 [14:20:53]Write to MH i2c: E2 08 00 7D 60 80 13 01 00 00 00 00 00 5A [14:20:53]Write i2c OK [14:20:53]MH_I2C_Read... [14:20:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:20:53]Read from MH i2c: E2 [14:20:53]MH_I2C_Read... [14:20:53]Read from MH i2c: E2 0E 00 [14:20:53]MH_I2C_Read... [14:20:53]Read from MH i2c: E2 0E 00 7D 60 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 B9 [14:20:53]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [14:20:53]wFMCommunicate OK [14:20:53]SAM_PROTO_GetShiftState done [14:20:53]FM_GetShiftState done [14:20:53]req_shift_opened done [14:20:53]requested_item shift.open_date is exist - process it [14:20:53]req_shift_open_date [14:20:53]req_shift_open_date done [14:20:53]produce_requested_data done [14:20:53]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187761,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [14:20:53]process_action_free close_receipt [14:20:53]json_value_free [14:20:53]json_value_free done [14:20:53]process_json_proto returns [14:20:53]Send response to host [14:20:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187761,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [14:20:53]free response buf [14:20:53]execute_script done [14:20:53]execute_script returns [14:20:53]free content buf [14:20:53]Sock 10.Close socket [14:20:53]Sock 10.Thread stoped [14:20:57]OFD Sender: No OFD packet to send [14:21:02]OFD Sender: No OFD packet to send [14:21:07]OFD Sender: No OFD packet to send [14:21:12]OFD Sender: No OFD packet to send [14:21:17]OFD Sender: No OFD packet to send [14:21:22]OFD Sender: No OFD packet to send [14:21:27]OFD Sender: No OFD packet to send [14:21:32]OFD Sender: No OFD packet to send [14:21:37]OFD Sender: No OFD packet to send [14:21:42]OFD Sender: No OFD packet to send [14:21:47]OFD Sender: No OFD packet to send [14:21:52]OFD Sender: No OFD packet to send [14:21:57]OFD Sender: No OFD packet to send [14:22:02]OFD Sender: No OFD packet to send [14:22:07]OFD Sender: No OFD packet to send [14:22:12]OFD Sender: No OFD packet to send [14:22:17]OFD Sender: No OFD packet to send [14:22:22]OFD Sender: No OFD packet to send [14:22:27]OFD Sender: No OFD packet to send [14:22:32]OFD Sender: No OFD packet to send [14:22:37]OFD Sender: No OFD packet to send [14:22:42]OFD Sender: No OFD packet to send [14:22:47]OFD Sender: No OFD packet to send [14:22:52]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:23]OFD Sender: No OFD packet to send [14:24:28]OFD Sender: No OFD packet to send [14:24:33]OFD Sender: No OFD packet to send [14:24:38]OFD Sender: No OFD packet to send [14:24:43]OFD Sender: No OFD packet to send [14:24:48]OFD Sender: No OFD packet to send [14:24:53]OFD Sender: No OFD packet to send [14:24:58]OFD Sender: No OFD packet to send [14:25:03]OFD Sender: No OFD packet to send [14:25:08]OFD Sender: No OFD packet to send [14:25:13]OFD Sender: No OFD packet to send [14:25:18]OFD Sender: No OFD packet to send [14:25:23]OFD Sender: No OFD packet to send [14:25:28]OFD Sender: No OFD packet to send [14:25:33]OFD Sender: No OFD packet to send [14:25:38]OFD Sender: No OFD packet to send [14:25:43]OFD Sender: No OFD packet to send [14:25:48]OFD Sender: No OFD packet to send [14:25:53]OFD Sender: No OFD packet to send [14:25:58]OFD Sender: No OFD packet to send [14:26:03]OFD Sender: No OFD packet to send [14:26:08]OFD Sender: No OFD packet to send [14:26:13]OFD Sender: No OFD packet to send [14:26:18]OFD Sender: No OFD packet to send [14:26:23]OFD Sender: No OFD packet to send [14:26:28]OFD Sender: No OFD packet to send [14:26:33]OFD Sender: No OFD packet to send [14:26:38]OFD Sender: No OFD packet to send [14:26:43]OFD Sender: No OFD packet to send [14:26:48]OFD Sender: No OFD packet to send [14:26:52]accept exits with 8 [14:26:52]New connection [14:26:52]New thread 3067157860 created [14:26:52]Thread 3067014500 joined [14:26:52]Waiting for new connection... [14:26:52] Sock 8.Parse request [14:26:52]Sock 8.Check first char [14:26:52]Sock 8.First char is OK [14:26:52]request: POST /json_proto HTTP/1.0 [14:26:52]Method: POST [14:26:52]URL: /json_proto [14:26:52]Method is POST - this is cgi request [14:26:52]url: /json_proto [14:26:52]query_string will be loaded in cgi processing [14:26:52]execute_cgi json_proto POST (null) [14:26:52]execute_cgi path=json_proto method=POST [14:26:52]POST find Content-Length [14:26:52]Host: 172.17.42.131:8080 [14:26:52]Content-Length: 800 [14:26:52]Content-Type: application/json [14:26:52] [14:26:52]POST finish read [14:26:52]Found Content-Length = 800 [14:26:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209814", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "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\u000A3948487", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:26:52]execute_script... [14:26: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)209814", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "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\u000A3948487", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:26:52]POST & json_proto [14:26:52]process_json_proto [14:26:52]json parsed OK: [14:26:52]protocol is kg_v1.0 [14:26:52]action value=close_receipt [14:26:52]process_action close_receipt [14:26:52]cmd_close_receipt [14:26:52]MH_GetDate [14:26:52]Write to MH i2c: F0 00 00 7E 60 CD [14:26:52]Write i2c OK [14:26:52]MH_I2C_Read... [14:26:52]Read from MH i2c: F0 [14:26:52]MH_I2C_Read... [14:26:52]Read from MH i2c: F0 09 00 [14:26:52]MH_I2C_Read... [14:26:52]Read from MH i2c: F0 09 00 7E 60 00 B1 64 16 67 A0 18 CA 66 50 [14:26:52]GetLastDocTimeStamp 1729520453 [14:26:52]current date 1729520817 [14:26:52]FM_GetShiftState [14:26:52]SAM_PROTO_GetShiftState [14:26:52]wFMCommunicate request_size=4 [14:26:52]MH_SAM_APDU [14:26:52]CAPDU: 80 13 01 00 [14:26:52]Write to MH i2c: E2 08 00 7F 60 80 13 01 00 00 00 00 00 5C [14:26:52]Write i2c OK [14:26:52]MH_I2C_Read... [14:26:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:26:52]Read from MH i2c: E2 [14:26:52]MH_I2C_Read... [14:26:52]Read from MH i2c: E2 0E 00 [14:26:52]MH_I2C_Read... [14:26:52]Read from MH i2c: E2 0E 00 7F 60 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 BB [14:26:52]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [14:26:52]wFMCommunicate OK [14:26:52]SAM_PROTO_GetShiftState done [14:26:52]FM_GetShiftState done [14:26:52]opened in 1729469754 [14:26:52]opened+sec_in_day 1729556154 [14:26:52]quantity*price = 0 [14:26:52]sum+1 = 1 [14:26:52]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 226 21.10.2024 14:26 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Талоны: Топливные Талоны 3948487 ФМ: 0000000000965340 ФД: 187762 ФПД: 52762518792756 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T142657&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187762&fm=52762518792756&tin=02508201610067®Number=0000000000100030&sum=0 [14:26:53]StoreToDocumentArchive [14:26:53]shift 460 fd 187762 [14:26:53]save to /storage/0460/doc_00187762 [14:26:53]save last doc name /storage/0460/doc_00187762 to /storage/kkm_last_doc_name [14:26:53]save OK [14:26:53]Clear old archive folders... [14:26:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:26:53]tlvbuf is 011C3480 [14:26:53]SAM_PROTO_ClearQueue [14:26:53]wFMCommunicate request_size=4 [14:26:53]MH_SAM_APDU [14:26:53]CAPDU: 80 09 00 00 [14:26:53]Write to MH i2c: E2 08 00 8C 60 80 09 00 00 00 00 00 00 5E [14:26:53]Write i2c OK [14:26:53]MH_I2C_Read... [14:26:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:26:53]Read from MH i2c: E2 [14:26:53]MH_I2C_Read... [14:26:53]Read from MH i2c: E2 03 00 [14:26:53]MH_I2C_Read... [14:26:53]Read from MH i2c: E2 03 00 8C 60 00 90 00 60 [14:26:53]RAPDU: 90 00 [14:26:53]wFMCommunicate OK [14:26:53]SAM_PROTO_ClearQueue done [14:26:53]KKMCreateOFDPacket [14:26:53]OFDProtocolAddRootSTLVToBuf [14:26:53]FM_MakeSignedData [14:26:53]FM_MakeSignedData [14:26:53]SAM_PROTO_SignData [14:26:53]wFMCommunicate request_size=4 [14:26:53]MH_SAM_APDU [14:26:53]CAPDU: 80 0D 01 02 [14:26:53]Write to MH i2c: E2 08 00 8D 60 80 0D 01 02 00 00 00 00 66 [14:26:53]Write i2c OK [14:26:53]MH_I2C_Read... [14:26:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:26:53]Read from MH i2c: E2 [14:26:53]MH_I2C_Read... [14:26:53]Read from MH i2c: E2 03 00 [14:26:53]MH_I2C_Read... [14:26:53]Read from MH i2c: E2 03 00 8D 60 00 90 00 61 [14:26:53]RAPDU: 90 00 [14:26:53]wFMCommunicate OK [14:26:53]wFMCommunicate request_size=255 [14:26:53]MH_SAM_APDU [14:26:53]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 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 E2 00 00 00 F4 03 04 00 B1 64 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 72 DD 02 00 35 04 06 00 2F [14:26:53]Write to MH i2c: E2 02 01 8E 60 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 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 E2 00 00 00 F4 03 04 00 B1 64 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 72 DD 02 00 35 04 06 00 2F 00 00 83 [14:26:53]Write i2c OK [14:26:53]MH_I2C_Read... [14:26:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:26:54]Read from MH i2c: E2 [14:26:54]MH_I2C_Read... [14:26:54]Read from MH i2c: E2 03 00 [14:26:54]MH_I2C_Read... [14:26:54]Read from MH i2c: E2 03 00 8E 60 00 90 00 62 [14:26:54]RAPDU: 90 00 [14:26:54]wFMCommunicate OK [14:26:54]wFMCommunicate request_size=10 [14:26:54]MH_SAM_APDU [14:26:54]CAPDU: 80 0D 02 02 05 FC BB 30 AA 34 [14:26:54]Write to MH i2c: E2 0D 00 8F 60 80 0D 02 02 05 00 FC BB 30 AA 34 00 00 38 [14:26:54]Write i2c OK [14:26:54]MH_I2C_Read... [14:26:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:26:54]Read from MH i2c: E2 [14:26:54]MH_I2C_Read... [14:26:54]Read from MH i2c: E2 03 00 [14:26:54]MH_I2C_Read... [14:26:54]Read from MH i2c: E2 03 00 8F 60 00 90 00 63 [14:26:54]RAPDU: 90 00 [14:26:54]wFMCommunicate OK [14:26:54]wFMCommunicate request_size=4 [14:26:54]MH_SAM_APDU [14:26:54]CAPDU: 80 0D 03 02 [14:26:54]Write to MH i2c: E2 08 00 90 60 80 0D 03 02 00 00 00 00 6B [14:26:54]Write i2c OK [14:26:54]MH_I2C_Read... [14:26:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:26:54]Read from MH i2c: E2 [14:26:54]MH_I2C_Read... [14:26:54]Read from MH i2c: E2 0B 00 [14:26:54]MH_I2C_Read... [14:26:54]Read from MH i2c: E2 0B 00 90 60 00 47 7C 29 7F 77 7B 03 45 90 00 11 [14:26:54]RAPDU: 47 7C 29 7F 77 7B 03 45 90 00 [14:26:54]wFMCommunicate OK [14:26:54]SAM_PROTO_SignData done [14:26:54]FM_MakeSignedData done [14:26:54]CreateOFDProtocolMessage [14:26:54]wFMCommunicate request_size=4 [14:26:54]MH_SAM_APDU [14:26:54]CAPDU: 80 11 00 00 [14:26:54]Write to MH i2c: E2 08 00 91 60 80 11 00 00 00 00 00 00 6B [14:26:54]Write i2c OK [14:26:54]MH_I2C_Read... [14:26:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:26:54]Read from MH i2c: E2 [14:26:54]MH_I2C_Read... [14:26:54]Read from MH i2c: E2 17 00 [14:26:54]MH_I2C_Read... [14:26:54]Read from MH i2c: E2 17 00 91 60 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 B9 [14:26:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [14:26:54]wFMCommunicate OK [14:26:54]CreateOFDProtocolMessage done [14:26:54]OFDSenderStorePacket 187762 [14:26:54]StoreOFDPacket docnum=187762 [14:26:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 A3 A2 07 01 3C CC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 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 E2 00 00 00 F4 03 04 00 B1 64 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 72 DD 02 00 35 04 06 00 2F FC BB 30 AA 34 47 7C 29 7F 77 7B 03 45 [14:26:54]CheckFolder [14:26:54]dirname=/storage/ofd_packets [14:26:54]CheckFolder done [14:26:54]ProducePacketName [14:26:54]name=ofd_packets/00187762 [14:26:54]NVStorageSaveData ofd_packets/00187762 [14:26:54]File name is /storage/ofd_packets/00187762 [14:26:54]Write 301 bytes [14:26:54]NVStorageSaveData done [14:26:54]OFDSenderStorePacket done [14:26:54]KKMCreateOFDPacket done [14:26:54]NVStorageSaveData kkm_last_timestamp [14:26:54]File name is /storage/kkm_last_timestamp [14:26:54]Write 4 bytes [14:26:54]NVStorageSaveData done [14:26:54]ExternCall_PrintAddStr [14:26:54]wPrintStart [14:26:54]Write to MH i2c: 01 00 00 92 60 F2 [14:26:54]Write i2c OK [14:26:54]MH_I2C_Read... [14:26:54]Read from MH i2c: 01 [14:26:54]MH_I2C_Read... [14:26:54]Read from MH i2c: 01 07 00 [14:26:54]MH_I2C_Read... [14:26:54]Read from MH i2c: 01 07 00 92 60 00 00 00 00 00 FF 0F 07 [14:26:54]RasterBufferAndPrint [14:26:54]line Счет N : (1)209814 [14:26:54]line ИНН: 02508201610067 [14:26:54]line Контрольно-Кассовый Чек [14:26:54]line ПРОДАЖА [14:26:54]line ТРК (МРК, ГНК) : 12 [14:26:54]line Товар: 2710124130 [14:26:54]line Аи-92-К-3 [14:26:54]line 20.000 * 0.00 [14:26:54]line = 0.00 [14:26:54]line НДС 12% НСП 1% [14:26:54]line > о реализуемом товаре [14:26:54]line ИТОГО: 0.00 [14:26:54]line НСП 1% : 0.00 [14:26:54]line НДС 12% : 0.00 [14:26:54]line Наличными: 0.00 [14:26:54]line Безнал.: 0.00 [14:26:54]line Место: АЗС № 86 "Партнер Нефть" [14:26:54]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [14:26:54]line СНО: Общий режим [14:26:54]line Чек 226 21.10.2024 14:26 [14:26:54]line Смена: 460 ФФД: 1.0 [14:26:54]line ЗНМ: 0300000155 [14:26:54]line РНМ: 0000000000100030 [14:26:54]line Версия ККМ: 001 [14:26:54]line Талоны: Топливные Талоны [14:26:54]line 3948487 [14:26:54]line ФМ: 0000000000965340 [14:26:54]line ФД: 187762 [14:26:54]line ФПД: 52762518792756 [14:26:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T142657&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187762&fm=52762518792756&tin=02508201610067®Number=0000000000100030&sum=0 [14:26:54]OFD Sender: Processing packet 187762 [packets to send 1062, broken 1061] [14:26:54]ProducePacketName [14:26:54]name=ofd_packets/00187762 [14:26:54]OFD Sender: To server: pG, [14:26:54]CommunicateWithHost lk.salyk.kg:30040 [14:26:54]ConnectInit lk.salyk.kg [14:26:54]written 0, free lines is 4095 [14:26:55]Connected sock=10 [14:26:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 A3 A2 07 01 3C CC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 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 E2 00 00 00 F4 03 04 00 B1 64 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 72 DD 02 00 35 04 06 00 2F FC BB 30 AA 34 47 7C 29 7F 77 7B 03 45 [14:26:55]Write to MH i2c: 01 00 00 BC 60 1C [14:26:55]Write i2c OK [14:26:55]MH_I2C_Read... [14:26:55]Read from MH i2c: 01 [14:26:55]MH_I2C_Read... [14:26:55]Read from MH i2c: 01 07 00 [14:26:55]MH_I2C_Read... [14:26:55]Read from MH i2c: 01 07 00 BC 60 00 00 00 00 00 82 0C B1 [14:26:55]RasterBufferAndPrint [14:26:55]line [14:26:55]line [14:26:55]line [14:26:55]line [14:26:55]line [14:26:55]written 0, free lines is 3206 [14:26:55]MH_Cut [14:26:55]Write to MH i2c: D1 01 00 C3 60 01 F5 [14:26:55]Write i2c OK [14:26:55]MH_I2C_Read... [14:26:55]Read from MH i2c: D1 [14:26:55]MH_I2C_Read... [14:26:55]Read from MH i2c: D1 01 00 [14:26:55]MH_I2C_Read... [14:26:55]Read from MH i2c: D1 01 00 C3 60 00 F4 [14:26:55]Write to MH i2c: 01 00 00 C4 60 24 [14:26:55]Write i2c OK [14:26:55]MH_I2C_Read... [14:26:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 A5 83 47 00 D3 71 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 72 DD 02 00 F4 03 04 00 A0 0E 16 67 B6 04 01 00 00 32 97 1F A6 AA AF 73 DE [14:26:55]CommunicateWithHost err = 0 [14:26:55]CheckOFDResponse [14:26:55]1017 (14) - 77093643461234 [14:26:55]1041 (16) - 0000000000965340 [14:26:55]1040 (4) - 187762 [14:26:55]1012 (4) - 21.10.2024 08:19 [14:26:55]1206 (1) - 0 [14:26:55]OFD Sender: Remove packet 187762 [14:26:55]ProducePacketName [14:26:55]name=ofd_packets/00187762 [14:26:55]NVStorageDeleteData [14:26:55]OFD Sender: No OFD packet to send [14:26:56]*** Cut start [14:26:56]*** Partial cut [14:26:56]*** CUTSNS_PIN = 1 [14:26:56]*** CUTSNS_PIN = 0 [14:26:56]*** Brake cut motor [14:26:56]Read from MH i2c: 01 [14:26:56]MH_I2C_Read... [14:26:56]*** Stop cut motor [14:26:56]*** Cut end [14:26:56]Read from MH i2c: 01 07 00 [14:26:56]MH_I2C_Read... [14:26:56]Read from MH i2c: 01 07 00 C4 60 00 00 00 00 00 FF 0F 39 [14:26:56]process_action close_receipt done [14:26:56]requested_data is exist [14:26:56]produce_requested_data [14:26:56]requested_item fm.sn is exist - process it [14:26:56]wFMCommunicate request_size=4 [14:26:56]MH_SAM_APDU [14:26:56]CAPDU: 80 11 00 00 [14:26:56]Write to MH i2c: E2 08 00 C5 60 80 11 00 00 00 00 00 00 9F [14:26:56]Write i2c OK [14:26:56]MH_I2C_Read... [14:26:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:26:56]Read from MH i2c: E2 [14:26:56]MH_I2C_Read... [14:26:56]Read from MH i2c: E2 17 00 [14:26:56]MH_I2C_Read... [14:26:56]Read from MH i2c: E2 17 00 C5 60 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 ED [14:26:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [14:26:56]wFMCommunicate OK [14:26:56]requested_item fd.num is exist - process it [14:26:56]SAM_PROTO_GetFieldsCounters [14:26:56]wFMCommunicate request_size=4 [14:26:56]MH_SAM_APDU [14:26:56]CAPDU: 80 13 00 00 [14:26:56]Write to MH i2c: E2 08 00 C6 60 80 13 00 00 00 00 00 00 A2 [14:26:56]Write i2c OK [14:26:56]MH_I2C_Read... [14:26:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:26:57]Read from MH i2c: E2 [14:26:57]MH_I2C_Read... [14:26:57]Read from MH i2c: E2 62 00 [14:26:57]MH_I2C_Read... [14:26:57]Read from MH i2c: E2 62 00 C6 60 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 72 DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 E2 00 00 00 5E 04 04 00 E2 00 00 00 57 04 04 00 E3 00 00 00 19 04 04 00 00 00 00 00 90 00 6D [14:26:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 72 DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 E2 00 00 00 5E 04 04 00 E2 00 00 00 57 04 04 00 E3 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:26:57]wFMCommunicate OK [14:26:57]SAM_PROTO_GetFieldsCounters done [14:26:57]requested_item shift.num is exist - process it [14:26:57]requested_item shift.opened is exist - process it [14:26:57]req_shift_opened [14:26:57]FM_GetShiftState [14:26:57]SAM_PROTO_GetShiftState [14:26:57]wFMCommunicate request_size=4 [14:26:57]MH_SAM_APDU [14:26:57]CAPDU: 80 13 01 00 [14:26:57]Write to MH i2c: E2 08 00 C7 60 80 13 01 00 00 00 00 00 A4 [14:26:57]Write i2c OK [14:26:57]MH_I2C_Read... [14:26:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:26:57]Read from MH i2c: E2 [14:26:57]MH_I2C_Read... [14:26:57]Read from MH i2c: E2 0E 00 [14:26:57]MH_I2C_Read... [14:26:57]Read from MH i2c: E2 0E 00 C7 60 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 03 [14:26:57]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [14:26:57]wFMCommunicate OK [14:26:57]SAM_PROTO_GetShiftState done [14:26:57]FM_GetShiftState done [14:26:57]req_shift_opened done [14:26:57]requested_item shift.open_date is exist - process it [14:26:57]req_shift_open_date [14:26:57]req_shift_open_date done [14:26:57]produce_requested_data done [14:26:57]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187762,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [14:26:57]process_action_free close_receipt [14:26:57]json_value_free [14:26:57]json_value_free done [14:26:57]process_json_proto returns [14:26:57]Send response to host [14:26:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187762,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [14:26:57]free response buf [14:26:57]execute_script done [14:26:57]execute_script returns [14:26:57]free content buf [14:26:57]Sock 8.Close socket [14:26:57]Sock 8.Thread stoped [14:27:00]OFD Sender: No OFD packet to send [14:27:05]OFD Sender: No OFD packet to send [14:27:10]OFD Sender: No OFD packet to send [14:27:15]OFD Sender: No OFD packet to send [14:27:21]OFD Sender: No OFD packet to send [14:27:26]OFD Sender: No OFD packet to send [14:27:31]OFD Sender: No OFD packet to send [14:27:36]OFD Sender: No OFD packet to send [14:27:41]OFD Sender: No OFD packet to send [14:27:46]OFD Sender: No OFD packet to send [14:27:51]OFD Sender: No OFD packet to send [14:27:56]OFD Sender: No OFD packet to send [14:28:01]OFD Sender: No OFD packet to send [14:28:06]OFD Sender: No OFD packet to send [14:28:11]OFD Sender: No OFD packet to send [14:28:16]OFD Sender: No OFD packet to send [14:28:21]OFD Sender: No OFD packet to send [14:28:26]OFD Sender: No OFD packet to send [14:28:31]OFD Sender: No OFD packet to send [14:28:33]accept exits with 9 [14:28:33]New connection [14:28:33]New thread 3067014500 created [14:28:33]Thread 3067157860 joined [14:28:33]Waiting for new connection... [14:28:33] Sock 9.Parse request [14:28:33]Sock 9.Check first char [14:28:33]Sock 9.First char is OK [14:28:33]request: POST /json_proto HTTP/1.0 [14:28:33]Method: POST [14:28:33]URL: /json_proto [14:28:33]Method is POST - this is cgi request [14:28:33]url: /json_proto [14:28:33]query_string will be loaded in cgi processing [14:28:33]execute_cgi json_proto POST (null) [14:28:33]execute_cgi path=json_proto method=POST [14:28:33]POST find Content-Length [14:28:33]Host: 172.17.42.131:8080 [14:28:33]Content-Length: 679 [14:28:33]Content-Type: application/json [14:28:33] [14:28:33]POST finish read [14:28:33]Found Content-Length = 679 [14:28:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209815", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 31.830, "sum" : 2425.45, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2425.00, "total" : 2425.00, "payments": [ { "type": 0, "sum" : 2425.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:28:33]execute_script... [14:28: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)209815", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 31.830, "sum" : 2425.45, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2425.00, "total" : 2425.00, "payments": [ { "type": 0, "sum" : 2425.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:28:33]POST & json_proto [14:28:33]process_json_proto [14:28:33]json parsed OK: [14:28:33]protocol is kg_v1.0 [14:28:33]action value=close_receipt [14:28:33]process_action close_receipt [14:28:33]cmd_close_receipt [14:28:33]MH_GetDate [14:28:33]Write to MH i2c: F0 00 00 C8 60 17 [14:28:33]Write i2c OK [14:28:33]MH_I2C_Read... [14:28:33]Read from MH i2c: F0 [14:28:33]MH_I2C_Read... [14:28:33]Read from MH i2c: F0 09 00 [14:28:33]MH_I2C_Read... [14:28:33]Read from MH i2c: F0 09 00 C8 60 00 15 65 16 67 A0 18 CA 66 FF [14:28:33]GetLastDocTimeStamp 1729520817 [14:28:33]current date 1729520917 [14:28:33]FM_GetShiftState [14:28:33]SAM_PROTO_GetShiftState [14:28:33]wFMCommunicate request_size=4 [14:28:33]MH_SAM_APDU [14:28:33]CAPDU: 80 13 01 00 [14:28:33]Write to MH i2c: E2 08 00 C9 60 80 13 01 00 00 00 00 00 A6 [14:28:33]Write i2c OK [14:28:33]MH_I2C_Read... [14:28:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:28:33]Read from MH i2c: E2 [14:28:33]MH_I2C_Read... [14:28:33]Read from MH i2c: E2 0E 00 [14:28:33]MH_I2C_Read... [14:28:33]Read from MH i2c: E2 0E 00 C9 60 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 05 [14:28:33]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [14:28:33]wFMCommunicate OK [14:28:33]SAM_PROTO_GetShiftState done [14:28:33]FM_GetShiftState done [14:28:33]opened in 1729469754 [14:28:33]opened+sec_in_day 1729556154 [14:28:33]quantity*price = 242544 [14:28:33]sum+1 = 242546 [14:28:33]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.45 ИТОГО: 2425.00 Внесено: 2425.00 СДАЧА: 0.00 НСП 1% : 21.46 НДС 12% : 257.57 Наличными: 2425.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 227 21.10.2024 14:28 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 187763 ФПД: 141379518539890 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T142837&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187763&fm=141379518539890&tin=02508201610067®Number=0000000000100030&sum=242500 [14:28:34]StoreToDocumentArchive [14:28:34]shift 460 fd 187763 [14:28:34]save to /storage/0460/doc_00187763 [14:28:34]save last doc name /storage/0460/doc_00187763 to /storage/kkm_last_doc_name [14:28:34]save OK [14:28:34]Clear old archive folders... [14:28:34]ProcessDocumentItem done err = 0, tmpTLVsize=248 [14:28:34]tlvbuf is 0124AD50 [14:28:34]SAM_PROTO_ClearQueue [14:28:34]wFMCommunicate request_size=4 [14:28:34]MH_SAM_APDU [14:28:34]CAPDU: 80 09 00 00 [14:28:34]Write to MH i2c: E2 08 00 D6 60 80 09 00 00 00 00 00 00 A8 [14:28:34]Write i2c OK [14:28:34]MH_I2C_Read... [14:28:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:28:34]Read from MH i2c: E2 [14:28:34]MH_I2C_Read... [14:28:34]Read from MH i2c: E2 03 00 [14:28:34]MH_I2C_Read... [14:28:34]Read from MH i2c: E2 03 00 D6 60 00 90 00 AA [14:28:34]RAPDU: 90 00 [14:28:34]wFMCommunicate OK [14:28:34]SAM_PROTO_ClearQueue done [14:28:34]KKMCreateOFDPacket [14:28:34]OFDProtocolAddRootSTLVToBuf [14:28:34]FM_MakeSignedData [14:28:34]FM_MakeSignedData [14:28:34]SAM_PROTO_SignData [14:28:34]wFMCommunicate request_size=4 [14:28:34]MH_SAM_APDU [14:28:34]CAPDU: 80 0D 01 02 [14:28:34]Write to MH i2c: E2 08 00 D7 60 80 0D 01 02 00 00 00 00 B0 [14:28:34]Write i2c OK [14:28:34]MH_I2C_Read... [14:28:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:28:34]Read from MH i2c: E2 [14:28:34]MH_I2C_Read... [14:28:34]Read from MH i2c: E2 03 00 [14:28:34]MH_I2C_Read... [14:28:34]Read from MH i2c: E2 03 00 D7 60 00 90 00 AB [14:28:34]RAPDU: 90 00 [14:28:34]wFMCommunicate OK [14:28:34]wFMCommunicate request_size=255 [14:28:34]MH_SAM_APDU [14:28:34]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 56 7C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 71 B3 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 44 B3 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9D 64 00 00 00 00 07 04 06 00 44 B3 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E3 00 00 00 F4 03 04 00 15 65 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 73 DD 02 00 35 04 06 00 80 95 7B FB [14:28:34]Write to MH i2c: E2 02 01 D8 60 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 56 7C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 71 B3 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 44 B3 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9D 64 00 00 00 00 07 04 06 00 44 B3 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E3 00 00 00 F4 03 04 00 15 65 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 73 DD 02 00 35 04 06 00 80 95 7B FB 00 00 B0 [14:28:34]Write i2c OK [14:28:34]MH_I2C_Read... [14:28:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:28:34]Read from MH i2c: E2 [14:28:34]MH_I2C_Read... [14:28:34]Read from MH i2c: E2 03 00 [14:28:34]MH_I2C_Read... [14:28:34]Read from MH i2c: E2 03 00 D8 60 00 90 00 AC [14:28:34]RAPDU: 90 00 [14:28:34]wFMCommunicate OK [14:28:34]wFMCommunicate request_size=7 [14:28:34]MH_SAM_APDU [14:28:34]CAPDU: 80 0D 02 02 02 28 72 [14:28:34]Write to MH i2c: E2 0A 00 D9 60 80 0D 02 02 02 00 28 72 00 00 51 [14:28:34]Write i2c OK [14:28:34]MH_I2C_Read... [14:28:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:28:34]Read from MH i2c: E2 [14:28:34]MH_I2C_Read... [14:28:34]Read from MH i2c: E2 03 00 [14:28:34]MH_I2C_Read... [14:28:34]Read from MH i2c: E2 03 00 D9 60 00 90 00 AD [14:28:34]RAPDU: 90 00 [14:28:34]wFMCommunicate OK [14:28:34]wFMCommunicate request_size=4 [14:28:34]MH_SAM_APDU [14:28:34]CAPDU: 80 0D 03 02 [14:28:34]Write to MH i2c: E2 08 00 DA 60 80 0D 03 02 00 00 00 00 B5 [14:28:34]Write i2c OK [14:28:34]MH_I2C_Read... [14:28:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:28:34]Read from MH i2c: E2 [14:28:34]MH_I2C_Read... [14:28:34]Read from MH i2c: E2 0B 00 [14:28:34]MH_I2C_Read... [14:28:34]Read from MH i2c: E2 0B 00 DA 60 00 28 10 1A 89 50 1D C5 34 90 00 F7 [14:28:34]RAPDU: 28 10 1A 89 50 1D C5 34 90 00 [14:28:34]wFMCommunicate OK [14:28:34]SAM_PROTO_SignData done [14:28:34]FM_MakeSignedData done [14:28:34]CreateOFDProtocolMessage [14:28:34]wFMCommunicate request_size=4 [14:28:34]MH_SAM_APDU [14:28:34]CAPDU: 80 11 00 00 [14:28:34]Write to MH i2c: E2 08 00 DB 60 80 11 00 00 00 00 00 00 B5 [14:28:34]Write i2c OK [14:28:34]MH_I2C_Read... [14:28:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:28:34]Read from MH i2c: E2 [14:28:34]MH_I2C_Read... [14:28:34]Read from MH i2c: E2 17 00 [14:28:34]MH_I2C_Read... [14:28:34]Read from MH i2c: E2 17 00 DB 60 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 03 [14:28:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [14:28:34]wFMCommunicate OK [14:28:34]CreateOFDProtocolMessage done [14:28:34]OFDSenderStorePacket 187763 [14:28:34]StoreOFDPacket docnum=187763 [14:28:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 19 3F 04 01 0C A9 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 56 7C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 71 B3 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 44 B3 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9D 64 00 00 00 00 07 04 06 00 44 B3 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E3 00 00 00 F4 03 04 00 15 65 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 73 DD 02 00 35 04 06 00 80 95 7B FB 28 72 28 10 1A 89 50 1D C5 34 [14:28:34]CheckFolder [14:28:34]dirname=/storage/ofd_packets [14:28:34]CheckFolder done [14:28:34]ProducePacketName [14:28:34]name=ofd_packets/00187763 [14:28:34]NVStorageSaveData ofd_packets/00187763 [14:28:34]File name is /storage/ofd_packets/00187763 [14:28:34]Write 298 bytes [14:28:34]NVStorageSaveData done [14:28:34]OFDSenderStorePacket done [14:28:34]KKMCreateOFDPacket done [14:28:34]NVStorageSaveData kkm_last_timestamp [14:28:34]File name is /storage/kkm_last_timestamp [14:28:34]Write 4 bytes [14:28:34]NVStorageSaveData done [14:28:34]ExternCall_PrintAddStr [14:28:34]wPrintStart [14:28:34]Write to MH i2c: 01 00 00 DC 60 3C [14:28:34]Write i2c OK [14:28:34]MH_I2C_Read... [14:28:34]Read from MH i2c: 01 [14:28:34]MH_I2C_Read... [14:28:34]Read from MH i2c: 01 07 00 [14:28:34]MH_I2C_Read... [14:28:34]Read from MH i2c: 01 07 00 DC 60 00 00 00 00 00 FF 0F 51 [14:28:34]RasterBufferAndPrint [14:28:34]line Счет N : (1)209815 [14:28:34]line ИНН: 02508201610067 [14:28:34]line Контрольно-Кассовый Чек [14:28:34]line ПРОДАЖА [14:28:34]line ТРК (МРК, ГНК) : 51 [14:28:34]line Товар: 2710194210 [14:28:34]line ДТ-К-5 [14:28:34]line 31.830 * 76.20 [14:28:34]line = 2425.45 [14:28:34]line НДС 12% НСП 1% [14:28:34]line > о реализуемом товаре [14:28:34]line ОКРУГЛЕНИЕ: -0.45 [14:28:34]line ИТОГО: 2425.00 [14:28:34]line Внесено: 2425.00 [14:28:34]line СДАЧА: 0.00 [14:28:34]line НСП 1% : 21.46 [14:28:34]line НДС 12% : 257.57 [14:28:34]line Наличными: 2425.00 [14:28:34]line Безнал.: 0.00 [14:28:34]line Место: АЗС № 86 "Партнер Нефть" [14:28:34]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [14:28:34]line СНО: Общий режим [14:28:34]line Чек 227 21.10.2024 14:28 [14:28:34]line Смена: 460 ФФД: 1.0 [14:28:34]line ЗНМ: 0300000155 [14:28:34]line РНМ: 0000000000100030 [14:28:34]line Версия ККМ: 001 [14:28:34]line ФМ: 0000000000965340 [14:28:34]line ФД: 187763 [14:28:34]line ФПД: 141379518539890 [14:28:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T142837&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187763&fm=141379518539890&tin=02508201610067®Number=0000000000100030&sum=242500 [14:28:35]OFD Sender: Processing packet 187763 [packets to send 1062, broken 1061] [14:28:35]ProducePacketName [14:28:35]name=ofd_packets/00187763 [14:28:35]OFD Sender: To server: pG, [14:28:35]CommunicateWithHost lk.salyk.kg:30040 [14:28:35]ConnectInit lk.salyk.kg [14:28:35]written 0, free lines is 4095 [14:28:35]Connected sock=10 [14:28:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 19 3F 04 01 0C A9 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 56 7C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 71 B3 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 44 B3 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9D 64 00 00 00 00 07 04 06 00 44 B3 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E3 00 00 00 F4 03 04 00 15 65 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 73 DD 02 00 35 04 06 00 80 95 7B FB 28 72 28 10 1A 89 50 1D C5 34 [14:28:35]Write to MH i2c: 01 00 00 07 61 68 [14:28:35]Write i2c OK [14:28:35]MH_I2C_Read... [14:28:35]Read from MH i2c: 01 [14:28:35]MH_I2C_Read... [14:28:35]Read from MH i2c: 01 07 00 [14:28:35]MH_I2C_Read... [14:28:35]Read from MH i2c: 01 07 00 07 61 00 00 00 00 00 62 0C DD [14:28:35]RasterBufferAndPrint [14:28:35]line [14:28:35]line [14:28:35]line [14:28:35]line [14:28:35]line [14:28:35]written 0, free lines is 3173 [14:28:35]MH_Cut [14:28:35]Write to MH i2c: D1 01 00 0E 61 01 41 [14:28:35]Write i2c OK [14:28:35]MH_I2C_Read... [14:28:35]Read from MH i2c: D1 [14:28:35]MH_I2C_Read... [14:28:35]Read from MH i2c: D1 01 00 [14:28:35]MH_I2C_Read... [14:28:35]Read from MH i2c: D1 01 00 0E 61 00 40 [14:28:35]Write to MH i2c: 01 00 00 0F 61 70 [14:28:35]Write i2c OK [14:28:35]MH_I2C_Read... [14:28:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 05 C2 47 00 F5 92 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 73 DD 02 00 F4 03 04 00 05 0F 16 67 B6 04 01 00 00 72 35 9A 99 D4 FD 34 14 [14:28:35]CommunicateWithHost err = 0 [14:28:35]CheckOFDResponse [14:28:35]1017 (14) - 77093643461234 [14:28:35]1041 (16) - 0000000000965340 [14:28:35]1040 (4) - 187763 [14:28:35]1012 (4) - 21.10.2024 08:21 [14:28:35]1206 (1) - 0 [14:28:35]OFD Sender: Remove packet 187763 [14:28:35]ProducePacketName [14:28:35]name=ofd_packets/00187763 [14:28:35]NVStorageDeleteData [14:28:36]OFD Sender: No OFD packet to send [14:28:36]*** Cut start [14:28:36]*** Partial cut [14:28:36]*** CUTSNS_PIN = 1 [14:28:36]*** CUTSNS_PIN = 0 [14:28:37]*** Brake cut motor [14:28:37]Read from MH i2c: 01 [14:28:37]MH_I2C_Read... [14:28:37]*** Stop cut motor [14:28:37]*** Cut end [14:28:37]Read from MH i2c: 01 07 00 [14:28:37]MH_I2C_Read... [14:28:37]Read from MH i2c: 01 07 00 0F 61 00 00 00 00 00 FF 0F 85 [14:28:37]process_action close_receipt done [14:28:37]requested_data is exist [14:28:37]produce_requested_data [14:28:37]requested_item fm.sn is exist - process it [14:28:37]wFMCommunicate request_size=4 [14:28:37]MH_SAM_APDU [14:28:37]CAPDU: 80 11 00 00 [14:28:37]Write to MH i2c: E2 08 00 10 61 80 11 00 00 00 00 00 00 EB [14:28:37]Write i2c OK [14:28:37]MH_I2C_Read... [14:28:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:28:37]Read from MH i2c: E2 [14:28:37]MH_I2C_Read... [14:28:37]Read from MH i2c: E2 17 00 [14:28:37]MH_I2C_Read... [14:28:37]Read from MH i2c: E2 17 00 10 61 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 39 [14:28:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [14:28:37]wFMCommunicate OK [14:28:37]requested_item fd.num is exist - process it [14:28:37]SAM_PROTO_GetFieldsCounters [14:28:37]wFMCommunicate request_size=4 [14:28:37]MH_SAM_APDU [14:28:37]CAPDU: 80 13 00 00 [14:28:37]Write to MH i2c: E2 08 00 11 61 80 13 00 00 00 00 00 00 EE [14:28:37]Write i2c OK [14:28:37]MH_I2C_Read... [14:28:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:28:37]Read from MH i2c: E2 [14:28:37]MH_I2C_Read... [14:28:37]Read from MH i2c: E2 62 00 [14:28:37]MH_I2C_Read... [14:28:37]Read from MH i2c: E2 62 00 11 61 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 73 DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 E3 00 00 00 5E 04 04 00 E3 00 00 00 57 04 04 00 E4 00 00 00 19 04 04 00 00 00 00 00 90 00 BD [14:28:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 73 DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 E3 00 00 00 5E 04 04 00 E3 00 00 00 57 04 04 00 E4 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:28:37]wFMCommunicate OK [14:28:37]SAM_PROTO_GetFieldsCounters done [14:28:37]requested_item shift.num is exist - process it [14:28:37]requested_item shift.opened is exist - process it [14:28:37]req_shift_opened [14:28:37]FM_GetShiftState [14:28:37]SAM_PROTO_GetShiftState [14:28:37]wFMCommunicate request_size=4 [14:28:37]MH_SAM_APDU [14:28:37]CAPDU: 80 13 01 00 [14:28:37]Write to MH i2c: E2 08 00 12 61 80 13 01 00 00 00 00 00 F0 [14:28:37]Write i2c OK [14:28:37]MH_I2C_Read... [14:28:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:28:37]Read from MH i2c: E2 [14:28:37]MH_I2C_Read... [14:28:37]Read from MH i2c: E2 0E 00 [14:28:37]MH_I2C_Read... [14:28:37]Read from MH i2c: E2 0E 00 12 61 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 4F [14:28:37]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [14:28:37]wFMCommunicate OK [14:28:37]SAM_PROTO_GetShiftState done [14:28:37]FM_GetShiftState done [14:28:37]req_shift_opened done [14:28:37]requested_item shift.open_date is exist - process it [14:28:37]req_shift_open_date [14:28:37]req_shift_open_date done [14:28:37]produce_requested_data done [14:28:37]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187763,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [14:28:37]process_action_free close_receipt [14:28:37]json_value_free [14:28:37]json_value_free done [14:28:37]process_json_proto returns [14:28:37]Send response to host [14:28:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187763,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [14:28:37]free response buf [14:28:37]execute_script done [14:28:37]execute_script returns [14:28:37]free content buf [14:28:37]Sock 9.Close socket [14:28:37]Sock 9.Thread stoped [14:28:41]OFD Sender: No OFD packet to send [14:28:46]OFD Sender: No OFD packet to send [14:28:51]OFD Sender: No OFD packet to send [14:28:56]OFD Sender: No OFD packet to send [14:29:01]OFD Sender: No OFD packet to send [14:29:06]OFD Sender: No OFD packet to send [14:29:11]OFD Sender: No OFD packet to send [14:29:16]OFD Sender: No OFD packet to send [14:29:21]OFD Sender: No OFD packet to send [14:29:26]OFD Sender: No OFD packet to send [14:29:31]OFD Sender: No OFD packet to send [14:29:36]OFD Sender: No OFD packet to send [14:29:41]OFD Sender: No OFD packet to send [14:29:46]OFD Sender: No OFD packet to send [14:29:51]OFD Sender: No OFD packet to send [14:29:56]OFD Sender: No OFD packet to send [14:30:01]OFD Sender: No OFD packet to send [14:30:06]OFD Sender: No OFD packet to send [14:30:11]OFD Sender: No OFD packet to send [14:30:16]OFD Sender: No OFD packet to send [14:30:21]OFD Sender: No OFD packet to send [14:30:26]OFD Sender: No OFD packet to send [14:30:31]OFD Sender: No OFD packet to send [14:30:36]OFD Sender: No OFD packet to send [14:30:41]OFD Sender: No OFD packet to send [14:30:46]OFD Sender: No OFD packet to send [14:30:51]OFD Sender: No OFD packet to send [14:30:52]accept exits with 8 [14:30:52]New connection [14:30:52]New thread 3067157860 created [14:30:52]Thread 3067014500 joined [14:30:52]Waiting for new connection... [14:30:52] Sock 8.Parse request [14:30:52]Sock 8.Check first char [14:30:52]Sock 8.First char is OK [14:30:52]request: POST /json_proto HTTP/1.0 [14:30:52]Method: POST [14:30:52]URL: /json_proto [14:30:52]Method is POST - this is cgi request [14:30:52]url: /json_proto [14:30:52]query_string will be loaded in cgi processing [14:30:52]execute_cgi json_proto POST (null) [14:30:52]execute_cgi path=json_proto method=POST [14:30:52]POST find Content-Length [14:30:52]Host: 172.17.42.131:8080 [14:30:52]Content-Length: 677 [14:30:52]Content-Type: application/json [14:30:52] [14:30:52]POST finish read [14:30:52]Found Content-Length = 677 [14:30:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209816", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 4.710, "sum" : 315.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 315.00, "total" : 315.00, "payments": [ { "type": 0, "sum" : 315.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:30:52]execute_script... [14:30: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)209816", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 4.710, "sum" : 315.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 315.00, "total" : 315.00, "payments": [ { "type": 0, "sum" : 315.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:30:52]POST & json_proto [14:30:52]process_json_proto [14:30:52]json parsed OK: [14:30:52]protocol is kg_v1.0 [14:30:52]action value=close_receipt [14:30:52]process_action close_receipt [14:30:52]cmd_close_receipt [14:30:52]MH_GetDate [14:30:52]Write to MH i2c: F0 00 00 13 61 63 [14:30:52]Write i2c OK [14:30:52]MH_I2C_Read... [14:30:52]Read from MH i2c: F0 [14:30:52]MH_I2C_Read... [14:30:52]Read from MH i2c: F0 09 00 [14:30:52]MH_I2C_Read... [14:30:52]Read from MH i2c: F0 09 00 13 61 00 A1 65 16 67 A0 18 CA 66 D7 [14:30:52]GetLastDocTimeStamp 1729520917 [14:30:52]current date 1729521057 [14:30:52]FM_GetShiftState [14:30:52]SAM_PROTO_GetShiftState [14:30:52]wFMCommunicate request_size=4 [14:30:52]MH_SAM_APDU [14:30:52]CAPDU: 80 13 01 00 [14:30:52]Write to MH i2c: E2 08 00 14 61 80 13 01 00 00 00 00 00 F2 [14:30:52]Write i2c OK [14:30:52]MH_I2C_Read... [14:30:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:30:52]Read from MH i2c: E2 [14:30:52]MH_I2C_Read... [14:30:52]Read from MH i2c: E2 0E 00 [14:30:52]MH_I2C_Read... [14:30:52]Read from MH i2c: E2 0E 00 14 61 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 51 [14:30:52]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [14:30:52]wFMCommunicate OK [14:30:52]SAM_PROTO_GetShiftState done [14:30:52]FM_GetShiftState done [14:30:52]opened in 1729469754 [14:30:52]opened+sec_in_day 1729556154 [14:30:52]quantity*price = 31509 [14:30:52]sum+1 = 31511 [14:30:52]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.10 ИТОГО: 315.00 Внесено: 315.00 СДАЧА: 0.00 НСП 1% : 2.79 НДС 12% : 33.46 Наличными: 315.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 228 21.10.2024 14:30 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 187764 ФПД: 56787424703753 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T143057&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187764&fm=56787424703753&tin=02508201610067®Number=0000000000100030&sum=31500 [14:30:53]StoreToDocumentArchive [14:30:53]shift 460 fd 187764 [14:30:53]save to /storage/0460/doc_00187764 [14:30:53]save last doc name /storage/0460/doc_00187764 to /storage/kkm_last_doc_name [14:30:53]save OK [14:30:53]Clear old archive folders... [14:30:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:30:53]tlvbuf is 0118DB20 [14:30:53]SAM_PROTO_ClearQueue [14:30:53]wFMCommunicate request_size=4 [14:30:53]MH_SAM_APDU [14:30:53]CAPDU: 80 09 00 00 [14:30:53]Write to MH i2c: E2 08 00 21 61 80 09 00 00 00 00 00 00 F4 [14:30:53]Write i2c OK [14:30:53]MH_I2C_Read... [14:30:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:30:53]Read from MH i2c: E2 [14:30:53]MH_I2C_Read... [14:30:53]Read from MH i2c: E2 03 00 [14:30:53]MH_I2C_Read... [14:30:53]Read from MH i2c: E2 03 00 21 61 00 90 00 F6 [14:30:53]RAPDU: 90 00 [14:30:53]wFMCommunicate OK [14:30:53]SAM_PROTO_ClearQueue done [14:30:53]KKMCreateOFDPacket [14:30:53]OFDProtocolAddRootSTLVToBuf [14:30:53]FM_MakeSignedData [14:30:53]FM_MakeSignedData [14:30:53]SAM_PROTO_SignData [14:30:53]wFMCommunicate request_size=4 [14:30:53]MH_SAM_APDU [14:30:53]CAPDU: 80 0D 01 02 [14:30:53]Write to MH i2c: E2 08 00 22 61 80 0D 01 02 00 00 00 00 FC [14:30:53]Write i2c OK [14:30:53]MH_I2C_Read... [14:30:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:30:53]Read from MH i2c: E2 [14:30:53]MH_I2C_Read... [14:30:53]Read from MH i2c: E2 03 00 [14:30:53]MH_I2C_Read... [14:30:53]Read from MH i2c: E2 03 00 22 61 00 90 00 F7 [14:30:53]RAPDU: 90 00 [14:30:53]wFMCommunicate OK [14:30:53]wFMCommunicate request_size=255 [14:30:53]MH_SAM_APDU [14:30: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 33 FF 03 08 00 03 66 12 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 16 7B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 0C 7B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 17 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 12 0D 00 00 00 00 07 04 06 00 0C 7B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E4 00 00 00 F4 03 04 00 A1 65 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 74 DD 02 00 35 04 06 00 33 [14:30:53]Write to MH i2c: E2 02 01 23 61 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 66 12 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 16 7B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 0C 7B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 17 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 12 0D 00 00 00 00 07 04 06 00 0C 7B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E4 00 00 00 F4 03 04 00 A1 65 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 74 DD 02 00 35 04 06 00 33 00 00 2E [14:30:53]Write i2c OK [14:30:53]MH_I2C_Read... [14:30:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:30:54]Read from MH i2c: E2 [14:30:54]MH_I2C_Read... [14:30:54]Read from MH i2c: E2 03 00 [14:30:54]MH_I2C_Read... [14:30:54]Read from MH i2c: E2 03 00 23 61 00 90 00 F8 [14:30:54]RAPDU: 90 00 [14:30:54]wFMCommunicate OK [14:30:54]wFMCommunicate request_size=10 [14:30:54]MH_SAM_APDU [14:30:54]CAPDU: 80 0D 02 02 05 A5 DA 46 F5 09 [14:30:54]Write to MH i2c: E2 0D 00 24 61 80 0D 02 02 05 00 A5 DA 46 F5 09 00 00 CC [14:30:54]Write i2c OK [14:30:54]MH_I2C_Read... [14:30:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:30:54]Read from MH i2c: E2 [14:30:54]MH_I2C_Read... [14:30:54]Read from MH i2c: E2 03 00 [14:30:54]MH_I2C_Read... [14:30:54]Read from MH i2c: E2 03 00 24 61 00 90 00 F9 [14:30:54]RAPDU: 90 00 [14:30:54]wFMCommunicate OK [14:30:54]wFMCommunicate request_size=4 [14:30:54]MH_SAM_APDU [14:30:54]CAPDU: 80 0D 03 02 [14:30:54]Write to MH i2c: E2 08 00 25 61 80 0D 03 02 00 00 00 00 01 [14:30:54]Write i2c OK [14:30:54]MH_I2C_Read... [14:30:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:30:54]Read from MH i2c: E2 [14:30:54]MH_I2C_Read... [14:30:54]Read from MH i2c: E2 0B 00 [14:30:54]MH_I2C_Read... [14:30:54]Read from MH i2c: E2 0B 00 25 61 00 81 34 1C AF 20 F3 2E 3C 90 00 FF [14:30:54]RAPDU: 81 34 1C AF 20 F3 2E 3C 90 00 [14:30:54]wFMCommunicate OK [14:30:54]SAM_PROTO_SignData done [14:30:54]FM_MakeSignedData done [14:30:54]CreateOFDProtocolMessage [14:30:54]wFMCommunicate request_size=4 [14:30:54]MH_SAM_APDU [14:30:54]CAPDU: 80 11 00 00 [14:30:54]Write to MH i2c: E2 08 00 26 61 80 11 00 00 00 00 00 00 01 [14:30:54]Write i2c OK [14:30:54]MH_I2C_Read... [14:30:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:30:54]Read from MH i2c: E2 [14:30:54]MH_I2C_Read... [14:30:54]Read from MH i2c: E2 17 00 [14:30:54]MH_I2C_Read... [14:30:54]Read from MH i2c: E2 17 00 26 61 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 4F [14:30:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [14:30:54]wFMCommunicate OK [14:30:54]CreateOFDProtocolMessage done [14:30:54]OFDSenderStorePacket 187764 [14:30:54]StoreOFDPacket docnum=187764 [14:30:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 59 3D 07 01 EC 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 33 FF 03 08 00 03 66 12 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 16 7B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 0C 7B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 17 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 12 0D 00 00 00 00 07 04 06 00 0C 7B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E4 00 00 00 F4 03 04 00 A1 65 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 74 DD 02 00 35 04 06 00 33 A5 DA 46 F5 09 81 34 1C AF 20 F3 2E 3C [14:30:54]CheckFolder [14:30:54]dirname=/storage/ofd_packets [14:30:54]CheckFolder done [14:30:54]ProducePacketName [14:30:54]name=ofd_packets/00187764 [14:30:54]NVStorageSaveData ofd_packets/00187764 [14:30:54]File name is /storage/ofd_packets/00187764 [14:30:54]Write 301 bytes [14:30:54]NVStorageSaveData done [14:30:54]OFDSenderStorePacket done [14:30:54]KKMCreateOFDPacket done [14:30:54]NVStorageSaveData kkm_last_timestamp [14:30:54]File name is /storage/kkm_last_timestamp [14:30:54]Write 4 bytes [14:30:54]NVStorageSaveData done [14:30:54]ExternCall_PrintAddStr [14:30:54]wPrintStart [14:30:54]Write to MH i2c: 01 00 00 27 61 88 [14:30:54]Write i2c OK [14:30:54]MH_I2C_Read... [14:30:54]Read from MH i2c: 01 [14:30:54]MH_I2C_Read... [14:30:54]Read from MH i2c: 01 07 00 [14:30:54]MH_I2C_Read... [14:30:54]Read from MH i2c: 01 07 00 27 61 00 00 00 00 00 FF 0F 9D [14:30:54]RasterBufferAndPrint [14:30:54]line Счет N : (1)209816 [14:30:54]line ИНН: 02508201610067 [14:30:54]line Контрольно-Кассовый Чек [14:30:54]line ПРОДАЖА [14:30:54]line ТРК (МРК, ГНК) : 22 [14:30:54]line Товар: 2710124130 [14:30:54]line Аи-92-К-3 [14:30:54]line 4.710 * 66.90 [14:30:54]line = 315.10 [14:30:54]line НДС 12% НСП 1% [14:30:54]line > о реализуемом товаре [14:30:54]line ОКРУГЛЕНИЕ: -0.10 [14:30:54]line ИТОГО: 315.00 [14:30:54]line Внесено: 315.00 [14:30:54]line СДАЧА: 0.00 [14:30:54]line НСП 1% : 2.79 [14:30:54]line НДС 12% : 33.46 [14:30:54]line Наличными: 315.00 [14:30:54]line Безнал.: 0.00 [14:30:54]line Место: АЗС № 86 "Партнер Нефть" [14:30:54]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [14:30:54]line СНО: Общий режим [14:30:54]line Чек 228 21.10.2024 14:30 [14:30:54]line Смена: 460 ФФД: 1.0 [14:30:54]line ЗНМ: 0300000155 [14:30:54]line РНМ: 0000000000100030 [14:30:54]line Версия ККМ: 001 [14:30:54]line ФМ: 0000000000965340 [14:30:54]line ФД: 187764 [14:30:54]line ФПД: 56787424703753 [14:30:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T143057&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187764&fm=56787424703753&tin=02508201610067®Number=0000000000100030&sum=31500 [14:30:54]written 0, free lines is 4095 [14:30:54]OFD Sender: Processing packet 187764 [packets to send 1062, broken 1061] [14:30:54]ProducePacketName [14:30:54]name=ofd_packets/00187764 [14:30:54]OFD Sender: To server: pG, [14:30:54]CommunicateWithHost lk.salyk.kg:30040 [14:30:54]ConnectInit lk.salyk.kg [14:30:54]Write to MH i2c: 01 00 00 52 61 B3 [14:30:54]Write i2c OK [14:30:54]MH_I2C_Read... [14:30:54]Read from MH i2c: 01 [14:30:54]MH_I2C_Read... [14:30:54]Read from MH i2c: 01 07 00 [14:30:54]MH_I2C_Read... [14:30:54]Read from MH i2c: 01 07 00 52 61 00 00 00 00 00 5F 0C 25 [14:30:54]RasterBufferAndPrint [14:30:54]line [14:30:54]line [14:30:54]line [14:30:54]line [14:30:54]line [14:30:54]written 0, free lines is 3171 [14:30:54]MH_Cut [14:30:54]Write to MH i2c: D1 01 00 59 61 01 8C [14:30:54]Write i2c OK [14:30:54]MH_I2C_Read... [14:30:54]Read from MH i2c: D1 [14:30:54]MH_I2C_Read... [14:30:54]Read from MH i2c: D1 01 00 [14:30:54]MH_I2C_Read... [14:30:54]Read from MH i2c: D1 01 00 59 61 00 8B [14:30:54]Write to MH i2c: 01 00 00 5A 61 BB [14:30:54]Write i2c OK [14:30:54]MH_I2C_Read... [14:30:54]Connected sock=11 [14:30:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 59 3D 07 01 EC 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 33 FF 03 08 00 03 66 12 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 16 7B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 0C 7B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 17 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 12 0D 00 00 00 00 07 04 06 00 0C 7B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E4 00 00 00 F4 03 04 00 A1 65 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 74 DD 02 00 35 04 06 00 33 A5 DA 46 F5 09 81 34 1C AF 20 F3 2E 3C [14:30:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 92 30 47 00 58 E2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 74 DD 02 00 F4 03 04 00 90 0F 16 67 B6 04 01 00 00 BA 3E CC 59 AF BA 7E 87 [14:30:55]CommunicateWithHost err = 0 [14:30:55]CheckOFDResponse [14:30:55]1017 (14) - 77093643461234 [14:30:55]1041 (16) - 0000000000965340 [14:30:55]1040 (4) - 187764 [14:30:55]1012 (4) - 21.10.2024 08:23 [14:30:55]1206 (1) - 0 [14:30:55]OFD Sender: Remove packet 187764 [14:30:55]ProducePacketName [14:30:55]name=ofd_packets/00187764 [14:30:55]NVStorageDeleteData [14:30:55]OFD Sender: No OFD packet to send [14:30:56]*** Cut start [14:30:56]*** Partial cut [14:30:56]*** CUTSNS_PIN = 1 [14:30:56]*** CUTSNS_PIN = 0 [14:30:56]*** Brake cut motor [14:30:56]Read from MH i2c: 01 [14:30:56]MH_I2C_Read... [14:30:56]*** Stop cut motor [14:30:56]*** Cut end [14:30:56]Read from MH i2c: 01 07 00 [14:30:56]MH_I2C_Read... [14:30:56]Read from MH i2c: 01 07 00 5A 61 00 00 00 00 00 FF 0F D0 [14:30:56]process_action close_receipt done [14:30:56]requested_data is exist [14:30:56]produce_requested_data [14:30:56]requested_item fm.sn is exist - process it [14:30:56]wFMCommunicate request_size=4 [14:30:56]MH_SAM_APDU [14:30:56]CAPDU: 80 11 00 00 [14:30:56]Write to MH i2c: E2 08 00 5B 61 80 11 00 00 00 00 00 00 36 [14:30:56]Write i2c OK [14:30:56]MH_I2C_Read... [14:30:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:30:56]Read from MH i2c: E2 [14:30:56]MH_I2C_Read... [14:30:56]Read from MH i2c: E2 17 00 [14:30:56]MH_I2C_Read... [14:30:56]Read from MH i2c: E2 17 00 5B 61 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 84 [14:30:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [14:30:56]wFMCommunicate OK [14:30:56]requested_item fd.num is exist - process it [14:30:56]SAM_PROTO_GetFieldsCounters [14:30:56]wFMCommunicate request_size=4 [14:30:56]MH_SAM_APDU [14:30:56]CAPDU: 80 13 00 00 [14:30:56]Write to MH i2c: E2 08 00 5C 61 80 13 00 00 00 00 00 00 39 [14:30:56]Write i2c OK [14:30:56]MH_I2C_Read... [14:30:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:30:56]Read from MH i2c: E2 [14:30:56]MH_I2C_Read... [14:30:56]Read from MH i2c: E2 62 00 [14:30:56]MH_I2C_Read... [14:30:56]Read from MH i2c: E2 62 00 5C 61 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 74 DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 E4 00 00 00 5E 04 04 00 E4 00 00 00 57 04 04 00 E5 00 00 00 19 04 04 00 00 00 00 00 90 00 0C [14:30:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 74 DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 E4 00 00 00 5E 04 04 00 E4 00 00 00 57 04 04 00 E5 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:30:56]wFMCommunicate OK [14:30:56]SAM_PROTO_GetFieldsCounters done [14:30:56]requested_item shift.num is exist - process it [14:30:56]requested_item shift.opened is exist - process it [14:30:56]req_shift_opened [14:30:56]FM_GetShiftState [14:30:56]SAM_PROTO_GetShiftState [14:30:56]wFMCommunicate request_size=4 [14:30:56]MH_SAM_APDU [14:30:56]CAPDU: 80 13 01 00 [14:30:56]Write to MH i2c: E2 08 00 5D 61 80 13 01 00 00 00 00 00 3B [14:30:56]Write i2c OK [14:30:56]MH_I2C_Read... [14:30:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:30:56]Read from MH i2c: E2 [14:30:56]MH_I2C_Read... [14:30:56]Read from MH i2c: E2 0E 00 [14:30:56]MH_I2C_Read... [14:30:56]Read from MH i2c: E2 0E 00 5D 61 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 9A [14:30:56]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [14:30:56]wFMCommunicate OK [14:30:56]SAM_PROTO_GetShiftState done [14:30:56]FM_GetShiftState done [14:30:56]req_shift_opened done [14:30:56]requested_item shift.open_date is exist - process it [14:30:56]req_shift_open_date [14:30:56]req_shift_open_date done [14:30:56]produce_requested_data done [14:30:56]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187764,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [14:30:56]process_action_free close_receipt [14:30:56]json_value_free [14:30:56]json_value_free done [14:30:56]process_json_proto returns [14:30:56]Send response to host [14:30:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187764,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [14:30:56]free response buf [14:30:56]execute_script done [14:30:56]execute_script returns [14:30:56]free content buf [14:30:56]Sock 8.Close socket [14:30:56]Sock 8.Thread stoped [14:31:00]OFD Sender: No OFD packet to send [14:31:05]OFD Sender: No OFD packet to send [14:31:10]OFD Sender: No OFD packet to send [14:31:15]OFD Sender: No OFD packet to send [14:31:20]OFD Sender: No OFD packet to send [14:31:25]OFD Sender: No OFD packet to send [14:31:30]OFD Sender: No OFD packet to send [14:31:35]OFD Sender: No OFD packet to send [14:31:41]OFD Sender: No OFD packet to send [14:31:46]OFD Sender: No OFD packet to send [14:31:51]OFD Sender: No OFD packet to send [14:31:56]OFD Sender: No OFD packet to send [14:32:01]OFD Sender: No OFD packet to send [14:32:06]OFD Sender: No OFD packet to send [14:32:11]OFD Sender: No OFD packet to send [14:32:16]OFD Sender: No OFD packet to send [14:32:21]OFD Sender: No OFD packet to send [14:32:26]OFD Sender: No OFD packet to send [14:32:31]OFD Sender: No OFD packet to send [14:32:36]OFD Sender: No OFD packet to send [14:32:41]OFD Sender: No OFD packet to send [14:32:46]OFD Sender: No OFD packet to send [14:32:51]OFD Sender: No OFD packet to send [14:32:56]OFD Sender: No OFD packet to send [14:33:01]OFD Sender: No OFD packet to send [14:33:06]OFD Sender: No OFD packet to send [14:33:11]OFD Sender: No OFD packet to send [14:33:16]OFD Sender: No OFD packet to send [14:33:21]OFD Sender: No OFD packet to send [14:33:26]OFD Sender: No OFD packet to send [14:33:31]OFD Sender: No OFD packet to send [14:33:36]OFD Sender: No OFD packet to send [14:33:41]OFD Sender: No OFD packet to send [14:33:46]OFD Sender: No OFD packet to send [14:33:51]OFD Sender: No OFD packet to send [14:33:56]OFD Sender: No OFD packet to send [14:34:01]OFD Sender: No OFD packet to send [14:34:06]OFD Sender: No OFD packet to send [14:34:11]OFD Sender: No OFD packet to send [14:34:16]OFD Sender: No OFD packet to send [14:34:21]OFD Sender: No OFD packet to send [14:34:26]OFD Sender: No OFD packet to send [14:34:31]OFD Sender: No OFD packet to send [14:34:36]OFD Sender: No OFD packet to send [14:34:41]OFD Sender: No OFD packet to send [14:34:46]OFD Sender: No OFD packet to send [14:34:51]OFD Sender: No OFD packet to send [14:34:56]OFD Sender: No OFD packet to send [14:35:01]OFD Sender: No OFD packet to send [14:35:06]OFD Sender: No OFD packet to send [14:35:11]OFD Sender: No OFD packet to send [14:35:16]OFD Sender: No OFD packet to send [14:35:21]OFD Sender: No OFD packet to send [14:35:26]OFD Sender: No OFD packet to send [14:35:32]OFD Sender: No OFD packet to send [14:35:37]OFD Sender: No OFD packet to send [14:35:42]OFD Sender: No OFD packet to send [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:51]accept exits with 9 [14:37:51]New connection [14:37:51]New thread 3067014500 created [14:37:51]Thread 3067157860 joined [14:37:51]Waiting for new connection... [14:37:51] Sock 9.Parse request [14:37:51]Sock 9.Check first char [14:37:51]Sock 9.First char is OK [14:37:51]request: POST /json_proto HTTP/1.0 [14:37:51]Method: POST [14:37:51]URL: /json_proto [14:37:51]Method is POST - this is cgi request [14:37:51]url: /json_proto [14:37:51]query_string will be loaded in cgi processing [14:37:51]execute_cgi json_proto POST (null) [14:37:51]execute_cgi path=json_proto method=POST [14:37:51]POST find Content-Length [14:37:51]Host: 172.17.42.131:8080 [14:37:51]Content-Length: 677 [14:37:51]Content-Type: application/json [14:37:51] [14:37:51]POST finish read [14:37:51]Found Content-Length = 677 [14:37:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209817", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 5.540, "sum" : 370.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 370.00, "total" : 370.00, "payments": [ { "type": 0, "sum" : 370.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:37:51]execute_script... [14:37: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)209817", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 5.540, "sum" : 370.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 370.00, "total" : 370.00, "payments": [ { "type": 0, "sum" : 370.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:37:51]POST & json_proto [14:37:51]process_json_proto [14:37:51]json parsed OK: [14:37:51]protocol is kg_v1.0 [14:37:51]action value=close_receipt [14:37:51]process_action close_receipt [14:37:51]cmd_close_receipt [14:37:51]MH_GetDate [14:37:51]Write to MH i2c: F0 00 00 5E 61 AE [14:37:51]Write i2c OK [14:37:51]MH_I2C_Read... [14:37:51]Read from MH i2c: F0 [14:37:51]MH_I2C_Read... [14:37:51]Read from MH i2c: F0 09 00 [14:37:51]MH_I2C_Read... [14:37:51]Read from MH i2c: F0 09 00 5E 61 00 43 67 16 67 A0 18 CA 66 C6 [14:37:51]GetLastDocTimeStamp 1729521057 [14:37:51]current date 1729521475 [14:37:51]FM_GetShiftState [14:37:51]SAM_PROTO_GetShiftState [14:37:51]wFMCommunicate request_size=4 [14:37:51]MH_SAM_APDU [14:37:51]CAPDU: 80 13 01 00 [14:37:51]Write to MH i2c: E2 08 00 5F 61 80 13 01 00 00 00 00 00 3D [14:37:51]Write i2c OK [14:37:51]MH_I2C_Read... [14:37:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:37:51]Read from MH i2c: E2 [14:37:51]MH_I2C_Read... [14:37:51]Read from MH i2c: E2 0E 00 [14:37:51]MH_I2C_Read... [14:37:51]Read from MH i2c: E2 0E 00 5F 61 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 9C [14:37:51]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [14:37:51]wFMCommunicate OK [14:37:51]SAM_PROTO_GetShiftState done [14:37:51]FM_GetShiftState done [14:37:51]opened in 1729469754 [14:37:51]opened+sec_in_day 1729556154 [14:37:51]quantity*price = 37062 [14:37:51]sum+1 = 37064 [14:37:51]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 370.00 Внесено: 370.00 СДАЧА: 0.00 НСП 1% : 3.28 НДС 12% : 39.36 Наличными: 370.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 229 21.10.2024 14:37 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 187765 ФПД: 158287310053282 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T143755&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187765&fm=158287310053282&tin=02508201610067®Number=0000000000100030&sum=37000 [14:37:52]StoreToDocumentArchive [14:37:52]shift 460 fd 187765 [14:37:52]save to /storage/0460/doc_00187765 [14:37:52]save last doc name /storage/0460/doc_00187765 to /storage/kkm_last_doc_name [14:37:52]save OK [14:37:52]Clear old archive folders... [14:37:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:37:52]tlvbuf is 0116FCD0 [14:37:52]SAM_PROTO_ClearQueue [14:37:52]wFMCommunicate request_size=4 [14:37:52]MH_SAM_APDU [14:37:52]CAPDU: 80 09 00 00 [14:37:52]Write to MH i2c: E2 08 00 6C 61 80 09 00 00 00 00 00 00 3F [14:37:52]Write i2c OK [14:37:52]MH_I2C_Read... [14:37:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:37:52]Read from MH i2c: E2 [14:37:52]MH_I2C_Read... [14:37:52]Read from MH i2c: E2 03 00 [14:37:52]MH_I2C_Read... [14:37:52]Read from MH i2c: E2 03 00 6C 61 00 90 00 41 [14:37:52]RAPDU: 90 00 [14:37:52]wFMCommunicate OK [14:37:52]SAM_PROTO_ClearQueue done [14:37:52]KKMCreateOFDPacket [14:37:52]OFDProtocolAddRootSTLVToBuf [14:37:52]FM_MakeSignedData [14:37:52]FM_MakeSignedData [14:37:52]SAM_PROTO_SignData [14:37:52]wFMCommunicate request_size=4 [14:37:52]MH_SAM_APDU [14:37:52]CAPDU: 80 0D 01 02 [14:37:52]Write to MH i2c: E2 08 00 6D 61 80 0D 01 02 00 00 00 00 47 [14:37:52]Write i2c OK [14:37:52]MH_I2C_Read... [14:37:52]OFD Sender: No OFD packet to send [14:37:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:37:52]Read from MH i2c: E2 [14:37:52]MH_I2C_Read... [14:37:52]Read from MH i2c: E2 03 00 [14:37:52]MH_I2C_Read... [14:37:52]Read from MH i2c: E2 03 00 6D 61 00 90 00 42 [14:37:52]RAPDU: 90 00 [14:37:52]wFMCommunicate OK [14:37:52]wFMCommunicate request_size=255 [14:37:52]MH_SAM_APDU [14:37: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 33 FF 03 08 00 03 A4 15 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 C7 90 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 90 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 48 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 60 0F 00 00 00 00 07 04 06 00 88 90 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E5 00 00 00 F4 03 04 00 43 67 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 75 DD 02 00 35 04 06 00 8F [14:37:52]Write to MH i2c: E2 02 01 6E 61 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 A4 15 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 C7 90 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 90 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 48 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 60 0F 00 00 00 00 07 04 06 00 88 90 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E5 00 00 00 F4 03 04 00 43 67 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 75 DD 02 00 35 04 06 00 8F 00 00 25 [14:37:52]Write i2c OK [14:37:52]MH_I2C_Read... [14:37:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:37:52]Read from MH i2c: E2 [14:37:52]MH_I2C_Read... [14:37:52]Read from MH i2c: E2 03 00 [14:37:52]MH_I2C_Read... [14:37:52]Read from MH i2c: E2 03 00 6E 61 00 90 00 43 [14:37:52]RAPDU: 90 00 [14:37:52]wFMCommunicate OK [14:37:52]wFMCommunicate request_size=10 [14:37:52]MH_SAM_APDU [14:37:52]CAPDU: 80 0D 02 02 05 F6 22 E3 5F A2 [14:37:52]Write to MH i2c: E2 0D 00 6F 61 80 0D 02 02 05 00 F6 22 E3 5F A2 00 00 50 [14:37:52]Write i2c OK [14:37:52]MH_I2C_Read... [14:37:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:37:52]Read from MH i2c: E2 [14:37:52]MH_I2C_Read... [14:37:52]Read from MH i2c: E2 03 00 [14:37:52]MH_I2C_Read... [14:37:52]Read from MH i2c: E2 03 00 6F 61 00 90 00 44 [14:37:52]RAPDU: 90 00 [14:37:52]wFMCommunicate OK [14:37:52]wFMCommunicate request_size=4 [14:37:52]MH_SAM_APDU [14:37:52]CAPDU: 80 0D 03 02 [14:37:52]Write to MH i2c: E2 08 00 70 61 80 0D 03 02 00 00 00 00 4C [14:37:52]Write i2c OK [14:37:52]MH_I2C_Read... [14:37:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:37:53]Read from MH i2c: E2 [14:37:53]MH_I2C_Read... [14:37:53]Read from MH i2c: E2 0B 00 [14:37:53]MH_I2C_Read... [14:37:53]Read from MH i2c: E2 0B 00 70 61 00 AD 90 EF FA A4 DC 64 4E 90 00 A5 [14:37:53]RAPDU: AD 90 EF FA A4 DC 64 4E 90 00 [14:37:53]wFMCommunicate OK [14:37:53]SAM_PROTO_SignData done [14:37:53]FM_MakeSignedData done [14:37:53]CreateOFDProtocolMessage [14:37:53]wFMCommunicate request_size=4 [14:37:53]MH_SAM_APDU [14:37:53]CAPDU: 80 11 00 00 [14:37:53]Write to MH i2c: E2 08 00 71 61 80 11 00 00 00 00 00 00 4C [14:37:53]Write i2c OK [14:37:53]MH_I2C_Read... [14:37:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:37:53]Read from MH i2c: E2 [14:37:53]MH_I2C_Read... [14:37:53]Read from MH i2c: E2 17 00 [14:37:53]MH_I2C_Read... [14:37:53]Read from MH i2c: E2 17 00 71 61 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 9A [14:37:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [14:37:53]wFMCommunicate OK [14:37:53]CreateOFDProtocolMessage done [14:37:53]OFDSenderStorePacket 187765 [14:37:53]StoreOFDPacket docnum=187765 [14:37:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 51 28 07 01 D7 61 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 A4 15 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 C7 90 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 90 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 48 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 60 0F 00 00 00 00 07 04 06 00 88 90 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E5 00 00 00 F4 03 04 00 43 67 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 75 DD 02 00 35 04 06 00 8F F6 22 E3 5F A2 AD 90 EF FA A4 DC 64 4E [14:37:53]CheckFolder [14:37:53]dirname=/storage/ofd_packets [14:37:53]CheckFolder done [14:37:53]ProducePacketName [14:37:53]name=ofd_packets/00187765 [14:37:53]NVStorageSaveData ofd_packets/00187765 [14:37:53]File name is /storage/ofd_packets/00187765 [14:37:53]Write 301 bytes [14:37:53]NVStorageSaveData done [14:37:53]OFDSenderStorePacket done [14:37:53]KKMCreateOFDPacket done [14:37:53]NVStorageSaveData kkm_last_timestamp [14:37:53]File name is /storage/kkm_last_timestamp [14:37:53]Write 4 bytes [14:37:53]NVStorageSaveData done [14:37:53]ExternCall_PrintAddStr [14:37:53]wPrintStart [14:37:53]Write to MH i2c: 01 00 00 72 61 D3 [14:37:53]Write i2c OK [14:37:53]MH_I2C_Read... [14:37:53]Read from MH i2c: 01 [14:37:53]MH_I2C_Read... [14:37:53]Read from MH i2c: 01 07 00 [14:37:53]MH_I2C_Read... [14:37:53]Read from MH i2c: 01 07 00 72 61 00 00 00 00 00 FF 0F E8 [14:37:53]RasterBufferAndPrint [14:37:53]line Счет N : (1)209817 [14:37:53]line ИНН: 02508201610067 [14:37:53]line Контрольно-Кассовый Чек [14:37:53]line ПРОДАЖА [14:37:53]line ТРК (МРК, ГНК) : 22 [14:37:53]line Товар: 2710124130 [14:37:53]line Аи-92-К-3 [14:37:53]line 5.540 * 66.90 [14:37:53]line = 370.63 [14:37:53]line НДС 12% НСП 1% [14:37:53]line > о реализуемом товаре [14:37:53]line ОКРУГЛЕНИЕ: -0.63 [14:37:53]line ИТОГО: 370.00 [14:37:53]line Внесено: 370.00 [14:37:53]line СДАЧА: 0.00 [14:37:53]line НСП 1% : 3.28 [14:37:53]line НДС 12% : 39.36 [14:37:53]line Наличными: 370.00 [14:37:53]line Безнал.: 0.00 [14:37:53]line Место: АЗС № 86 "Партнер Нефть" [14:37:53]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [14:37:53]line СНО: Общий режим [14:37:53]line Чек 229 21.10.2024 14:37 [14:37:53]line Смена: 460 ФФД: 1.0 [14:37:53]line ЗНМ: 0300000155 [14:37:53]line РНМ: 0000000000100030 [14:37:53]line Версия ККМ: 001 [14:37:53]line ФМ: 0000000000965340 [14:37:53]line ФД: 187765 [14:37:53]line ФПД: 158287310053282 [14:37:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T143755&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187765&fm=158287310053282&tin=02508201610067®Number=0000000000100030&sum=37000 [14:37:53]written 0, free lines is 4095 [14:37:53]OFD Sender: Processing packet 187765 [packets to send 1062, broken 1061] [14:37:53]ProducePacketName [14:37:53]name=ofd_packets/00187765 [14:37:53]OFD Sender: To server: pG, [14:37:53]CommunicateWithHost lk.salyk.kg:30040 [14:37:53]ConnectInit lk.salyk.kg [14:37:53]Write to MH i2c: 01 00 00 9D 61 FE [14:37:53]Write i2c OK [14:37:53]MH_I2C_Read... [14:37:53]Read from MH i2c: 01 [14:37:53]MH_I2C_Read... [14:37:53]Read from MH i2c: 01 07 00 [14:37:53]MH_I2C_Read... [14:37:53]Read from MH i2c: 01 07 00 9D 61 00 00 00 00 00 63 0C 74 [14:37:53]RasterBufferAndPrint [14:37:53]line [14:37:53]line [14:37:53]line [14:37:53]line [14:37:53]line [14:37:53]written 0, free lines is 3174 [14:37:53]MH_Cut [14:37:53]Write to MH i2c: D1 01 00 A4 61 01 D7 [14:37:53]Write i2c OK [14:37:53]MH_I2C_Read... [14:37:53]Read from MH i2c: D1 [14:37:53]MH_I2C_Read... [14:37:53]Read from MH i2c: D1 01 00 [14:37:53]MH_I2C_Read... [14:37:53]Read from MH i2c: D1 01 00 A4 61 00 D6 [14:37:53]Write to MH i2c: 01 00 00 A5 61 06 [14:37:53]Write i2c OK [14:37:53]MH_I2C_Read... [14:37:54]*** Cut start [14:37:54]*** Partial cut [14:37:54]*** CUTSNS_PIN = 1 [14:37:54]*** CUTSNS_PIN = 0 [14:37:55]*** Brake cut motor [14:37:55]Read from MH i2c: 01 [14:37:55]MH_I2C_Read... [14:37:55]*** Stop cut motor [14:37:55]*** Cut end [14:37:55]Read from MH i2c: 01 07 00 [14:37:55]MH_I2C_Read... [14:37:55]Read from MH i2c: 01 07 00 A5 61 00 00 00 00 00 FF 0F 1B [14:37:55]process_action close_receipt done [14:37:55]requested_data is exist [14:37:55]produce_requested_data [14:37:55]requested_item fm.sn is exist - process it [14:37:55]wFMCommunicate request_size=4 [14:37:55]MH_SAM_APDU [14:37:55]CAPDU: 80 11 00 00 [14:37:55]Write to MH i2c: E2 08 00 A6 61 80 11 00 00 00 00 00 00 81 [14:37:55]Write i2c OK [14:37:55]MH_I2C_Read... [14:37:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:37:55]Read from MH i2c: E2 [14:37:55]MH_I2C_Read... [14:37:55]Read from MH i2c: E2 17 00 [14:37:55]MH_I2C_Read... [14:37:55]Read from MH i2c: E2 17 00 A6 61 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 CF [14:37:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [14:37:55]wFMCommunicate OK [14:37:55]requested_item fd.num is exist - process it [14:37:55]SAM_PROTO_GetFieldsCounters [14:37:55]wFMCommunicate request_size=4 [14:37:55]MH_SAM_APDU [14:37:55]CAPDU: 80 13 00 00 [14:37:55]Write to MH i2c: E2 08 00 A7 61 80 13 00 00 00 00 00 00 84 [14:37:55]Write i2c OK [14:37:55]MH_I2C_Read... [14:37:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:37:55]Read from MH i2c: E2 [14:37:55]MH_I2C_Read... [14:37:55]Read from MH i2c: E2 62 00 [14:37:55]MH_I2C_Read... [14:37:55]Read from MH i2c: E2 62 00 A7 61 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 75 DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 E5 00 00 00 5E 04 04 00 E5 00 00 00 57 04 04 00 E6 00 00 00 19 04 04 00 00 00 00 00 90 00 5B [14:37:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 75 DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 E5 00 00 00 5E 04 04 00 E5 00 00 00 57 04 04 00 E6 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:37:55]wFMCommunicate OK [14:37:55]SAM_PROTO_GetFieldsCounters done [14:37:55]requested_item shift.num is exist - process it [14:37:55]requested_item shift.opened is exist - process it [14:37:55]req_shift_opened [14:37:55]FM_GetShiftState [14:37:55]SAM_PROTO_GetShiftState [14:37:55]wFMCommunicate request_size=4 [14:37:55]MH_SAM_APDU [14:37:55]CAPDU: 80 13 01 00 [14:37:55]Write to MH i2c: E2 08 00 A8 61 80 13 01 00 00 00 00 00 86 [14:37:55]Write i2c OK [14:37:55]MH_I2C_Read... [14:37:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:37:55]Read from MH i2c: E2 [14:37:55]MH_I2C_Read... [14:37:55]Read from MH i2c: E2 0E 00 [14:37:55]MH_I2C_Read... [14:37:55]Read from MH i2c: E2 0E 00 A8 61 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 E5 [14:37:55]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [14:37:55]wFMCommunicate OK [14:37:55]SAM_PROTO_GetShiftState done [14:37:55]FM_GetShiftState done [14:37:55]req_shift_opened done [14:37:55]requested_item shift.open_date is exist - process it [14:37:55]req_shift_open_date [14:37:55]req_shift_open_date done [14:37:55]produce_requested_data done [14:37:55]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187765,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [14:37:55]process_action_free close_receipt [14:37:55]json_value_free [14:37:55]json_value_free done [14:37:55]process_json_proto returns [14:37:55]Send response to host [14:37:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187765,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [14:37:55]free response buf [14:37:55]execute_script done [14:37:55]execute_script returns [14:37:55]free content buf [14:37:55]Sock 9.Close socket [14:37:55]Sock 9.Thread stoped [14:38:34]accept exits with 8 [14:38:34]New connection [14:38:34]New thread 3067157860 created [14:38:34]Thread 3067014500 joined [14:38:34]Waiting for new connection... [14:38:34] Sock 8.Parse request [14:38:34]Sock 8.Check first char [14:38:34]Sock 8.First char is OK [14:38:34]request: POST /json_proto HTTP/1.0 [14:38:34]Method: POST [14:38:34]URL: /json_proto [14:38:34]Method is POST - this is cgi request [14:38:34]url: /json_proto [14:38:34]query_string will be loaded in cgi processing [14:38:34]execute_cgi json_proto POST (null) [14:38:34]execute_cgi path=json_proto method=POST [14:38:34]POST find Content-Length [14:38:34]Host: 172.17.42.131:8080 [14:38:34]Content-Length: 677 [14:38:34]Content-Type: application/json [14:38:34] [14:38:34]POST finish read [14:38:34]Found Content-Length = 677 [14:38:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209818", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "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:38:34]execute_script... [14:38: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)209818", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "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:38:34]POST & json_proto [14:38:34]process_json_proto [14:38:34]json parsed OK: [14:38:34]protocol is kg_v1.0 [14:38:34]action value=close_receipt [14:38:34]process_action close_receipt [14:38:34]cmd_close_receipt [14:38:34]MH_GetDate [14:38:34]Write to MH i2c: F0 00 00 A9 61 F9 [14:38:34]Write i2c OK [14:38:34]MH_I2C_Read... [14:38:34]Read from MH i2c: F0 [14:38:34]MH_I2C_Read... [14:38:34]Read from MH i2c: F0 09 00 [14:38:34]MH_I2C_Read... [14:38:34]Read from MH i2c: F0 09 00 A9 61 00 6E 67 16 67 A0 18 CA 66 3C [14:38:34]GetLastDocTimeStamp 1729521475 [14:38:34]current date 1729521518 [14:38:34]FM_GetShiftState [14:38:34]SAM_PROTO_GetShiftState [14:38:34]wFMCommunicate request_size=4 [14:38:34]MH_SAM_APDU [14:38:34]CAPDU: 80 13 01 00 [14:38:34]Write to MH i2c: E2 08 00 AA 61 80 13 01 00 00 00 00 00 88 [14:38:34]Write i2c OK [14:38:34]MH_I2C_Read... [14:38:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:38:34]Read from MH i2c: E2 [14:38:34]MH_I2C_Read... [14:38:34]Read from MH i2c: E2 0E 00 [14:38:34]MH_I2C_Read... [14:38:34]Read from MH i2c: E2 0E 00 AA 61 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 E7 [14:38:34]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [14:38:34]wFMCommunicate OK [14:38:34]SAM_PROTO_GetShiftState done [14:38:34]FM_GetShiftState done [14:38:34]opened in 1729469754 [14:38:34]opened+sec_in_day 1729556154 [14:38:34]quantity*price = 50041 [14:38:34]sum+1 = 50042 [14:38:34]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 230 21.10.2024 14:38 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 187766 ФПД: 177859538728710 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T143838&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187766&fm=177859538728710&tin=02508201610067®Number=0000000000100030&sum=50000 [14:38:35]StoreToDocumentArchive [14:38:35]shift 460 fd 187766 [14:38:35]save to /storage/0460/doc_00187766 [14:38:35]save last doc name /storage/0460/doc_00187766 to /storage/kkm_last_doc_name [14:38:35]save OK [14:38:35]Clear old archive folders... [14:38:35]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:38:35]tlvbuf is 011025B0 [14:38:35]SAM_PROTO_ClearQueue [14:38:35]wFMCommunicate request_size=4 [14:38:35]MH_SAM_APDU [14:38:35]CAPDU: 80 09 00 00 [14:38:35]Write to MH i2c: E2 08 00 B7 61 80 09 00 00 00 00 00 00 8A [14:38:35]Write i2c OK [14:38:35]MH_I2C_Read... [14:38:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:38:35]Read from MH i2c: E2 [14:38:35]MH_I2C_Read... [14:38:35]Read from MH i2c: E2 03 00 [14:38:35]MH_I2C_Read... [14:38:35]Read from MH i2c: E2 03 00 B7 61 00 90 00 8C [14:38:35]RAPDU: 90 00 [14:38:35]wFMCommunicate OK [14:38:35]SAM_PROTO_ClearQueue done [14:38:35]KKMCreateOFDPacket [14:38:35]OFDProtocolAddRootSTLVToBuf [14:38:35]FM_MakeSignedData [14:38:35]FM_MakeSignedData [14:38:35]SAM_PROTO_SignData [14:38:35]wFMCommunicate request_size=4 [14:38:35]MH_SAM_APDU [14:38:35]CAPDU: 80 0D 01 02 [14:38:35]Write to MH i2c: E2 08 00 B8 61 80 0D 01 02 00 00 00 00 92 [14:38:35]Write i2c OK [14:38:35]MH_I2C_Read... [14:38:35]Read from MH i2c: E2 [14:38:35]MH_I2C_Read... [14:38:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:38:35]Read from MH i2c: E2 03 00 [14:38:35]MH_I2C_Read... [14:38:35]Read from MH i2c: E2 03 00 B8 61 00 90 00 8D [14:38:35]RAPDU: 90 00 [14:38:35]wFMCommunicate OK [14:38:35]wFMCommunicate request_size=255 [14:38:35]MH_SAM_APDU [14:38: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 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E6 00 00 00 F4 03 04 00 6E 67 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 76 DD 02 00 35 04 06 00 A1 [14:38:35]Write to MH i2c: E2 02 01 B9 61 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E6 00 00 00 F4 03 04 00 6E 67 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 76 DD 02 00 35 04 06 00 A1 00 00 00 [14:38:35]Write i2c OK [14:38:35]MH_I2C_Read... [14:38:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:38:35]Read from MH i2c: E2 [14:38:35]MH_I2C_Read... [14:38:35]Read from MH i2c: E2 03 00 [14:38:35]MH_I2C_Read... [14:38:35]Read from MH i2c: E2 03 00 B9 61 00 90 00 8E [14:38:35]RAPDU: 90 00 [14:38:35]wFMCommunicate OK [14:38:35]wFMCommunicate request_size=10 [14:38:35]MH_SAM_APDU [14:38:35]CAPDU: 80 0D 02 02 05 C3 26 A0 37 06 [14:38:35]Write to MH i2c: E2 0D 00 BA 61 80 0D 02 02 05 00 C3 26 A0 37 06 00 00 65 [14:38:35]Write i2c OK [14:38:35]MH_I2C_Read... [14:38:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:38:35]Read from MH i2c: E2 [14:38:35]MH_I2C_Read... [14:38:35]Read from MH i2c: E2 03 00 [14:38:35]MH_I2C_Read... [14:38:35]Read from MH i2c: E2 03 00 BA 61 00 90 00 8F [14:38:35]RAPDU: 90 00 [14:38:35]wFMCommunicate OK [14:38:35]wFMCommunicate request_size=4 [14:38:35]MH_SAM_APDU [14:38:35]CAPDU: 80 0D 03 02 [14:38:35]Write to MH i2c: E2 08 00 BB 61 80 0D 03 02 00 00 00 00 97 [14:38:35]Write i2c OK [14:38:35]MH_I2C_Read... [14:38:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:38:35]Read from MH i2c: E2 [14:38:35]MH_I2C_Read... [14:38:35]Read from MH i2c: E2 0B 00 [14:38:35]MH_I2C_Read... [14:38:35]Read from MH i2c: E2 0B 00 BB 61 00 3A 35 D1 BD 7A AE AC 47 90 00 B0 [14:38:35]RAPDU: 3A 35 D1 BD 7A AE AC 47 90 00 [14:38:35]wFMCommunicate OK [14:38:35]SAM_PROTO_SignData done [14:38:35]FM_MakeSignedData done [14:38:35]CreateOFDProtocolMessage [14:38:35]wFMCommunicate request_size=4 [14:38:35]MH_SAM_APDU [14:38:35]CAPDU: 80 11 00 00 [14:38:35]Write to MH i2c: E2 08 00 BC 61 80 11 00 00 00 00 00 00 97 [14:38:35]Write i2c OK [14:38:35]MH_I2C_Read... [14:38:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:38:35]Read from MH i2c: E2 [14:38:35]MH_I2C_Read... [14:38:35]Read from MH i2c: E2 17 00 [14:38:35]MH_I2C_Read... [14:38:35]Read from MH i2c: E2 17 00 BC 61 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 E5 [14:38:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [14:38:35]wFMCommunicate OK [14:38:35]CreateOFDProtocolMessage done [14:38:35]OFDSenderStorePacket 187766 [14:38:35]StoreOFDPacket docnum=187766 [14:38:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 F1 8D 07 01 F4 4A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E6 00 00 00 F4 03 04 00 6E 67 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 76 DD 02 00 35 04 06 00 A1 C3 26 A0 37 06 3A 35 D1 BD 7A AE AC 47 [14:38:35]CheckFolder [14:38:35]dirname=/storage/ofd_packets [14:38:35]CheckFolder done [14:38:35]ProducePacketName [14:38:35]name=ofd_packets/00187766 [14:38:35]NVStorageSaveData ofd_packets/00187766 [14:38:35]File name is /storage/ofd_packets/00187766 [14:38:35]Write 301 bytes [14:38:35]NVStorageSaveData done [14:38:35]OFDSenderStorePacket done [14:38:35]KKMCreateOFDPacket done [14:38:35]NVStorageSaveData kkm_last_timestamp [14:38:35]File name is /storage/kkm_last_timestamp [14:38:35]Write 4 bytes [14:38:35]NVStorageSaveData done [14:38:35]ExternCall_PrintAddStr [14:38:35]wPrintStart [14:38:35]Write to MH i2c: 01 00 00 BD 61 1E [14:38:35]Write i2c OK [14:38:35]MH_I2C_Read... [14:38:35]Read from MH i2c: 01 [14:38:35]MH_I2C_Read... [14:38:35]Read from MH i2c: 01 07 00 [14:38:35]MH_I2C_Read... [14:38:35]Read from MH i2c: 01 07 00 BD 61 00 00 00 00 00 FF 0F 33 [14:38:35]RasterBufferAndPrint [14:38:35]line Счет N : (1)209818 [14:38:35]line ИНН: 02508201610067 [14:38:35]line Контрольно-Кассовый Чек [14:38:35]line ПРОДАЖА [14:38:35]line ТРК (МРК, ГНК) : 12 [14:38:35]line Товар: 2710124130 [14:38:35]line Аи-92-К-3 [14:38:35]line 7.480 * 66.90 [14:38:35]line = 500.41 [14:38:35]line НДС 12% НСП 1% [14:38:35]line > о реализуемом товаре [14:38:35]line ОКРУГЛЕНИЕ: -0.41 [14:38:35]line ИТОГО: 500.00 [14:38:35]line Внесено: 500.00 [14:38:35]line СДАЧА: 0.00 [14:38:35]line НСП 1% : 4.43 [14:38:35]line НДС 12% : 53.14 [14:38:35]line Наличными: 500.00 [14:38:35]line Безнал.: 0.00 [14:38:35]line Место: АЗС № 86 "Партнер Нефть" [14:38:35]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [14:38:35]line СНО: Общий режим [14:38:35]line Чек 230 21.10.2024 14:38 [14:38:35]line Смена: 460 ФФД: 1.0 [14:38:35]line ЗНМ: 0300000155 [14:38:35]line РНМ: 0000000000100030 [14:38:35]line Версия ККМ: 001 [14:38:35]line ФМ: 0000000000965340 [14:38:35]line ФД: 187766 [14:38:35]line ФПД: 177859538728710 [14:38:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T143838&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187766&fm=177859538728710&tin=02508201610067®Number=0000000000100030&sum=50000 [14:38:36]written 0, free lines is 4095 [14:38:36]Write to MH i2c: 01 00 00 E8 61 49 [14:38:36]Write i2c OK [14:38:36]MH_I2C_Read... [14:38:36]Read from MH i2c: 01 [14:38:36]MH_I2C_Read... [14:38:36]Read from MH i2c: 01 07 00 [14:38:36]MH_I2C_Read... [14:38:36]Read from MH i2c: 01 07 00 E8 61 00 00 00 00 00 61 0C BD [14:38:36]RasterBufferAndPrint [14:38:36]line [14:38:36]line [14:38:36]line [14:38:36]line [14:38:36]line [14:38:36]written 0, free lines is 3172 [14:38:36]MH_Cut [14:38:36]Write to MH i2c: D1 01 00 EF 61 01 22 [14:38:36]Write i2c OK [14:38:36]MH_I2C_Read... [14:38:36]Read from MH i2c: D1 [14:38:36]MH_I2C_Read... [14:38:36]Read from MH i2c: D1 01 00 [14:38:36]MH_I2C_Read... [14:38:36]Read from MH i2c: D1 01 00 EF 61 00 21 [14:38:36]Write to MH i2c: 01 00 00 F0 61 51 [14:38:36]Write i2c OK [14:38:36]MH_I2C_Read... [14:38:37]*** Cut start [14:38:37]*** Partial cut [14:38:37]*** CUTSNS_PIN = 1 [14:38:37]*** CUTSNS_PIN = 0 [14:38:37]*** Brake cut motor [14:38:38]Read from MH i2c: 01 [14:38:38]MH_I2C_Read... [14:38:38]*** Stop cut motor [14:38:38]*** Cut end [14:38:38]Read from MH i2c: 01 07 00 [14:38:38]MH_I2C_Read... [14:38:38]Read from MH i2c: 01 07 00 F0 61 00 00 00 00 00 FF 0F 66 [14:38:38]process_action close_receipt done [14:38:38]requested_data is exist [14:38:38]produce_requested_data [14:38:38]requested_item fm.sn is exist - process it [14:38:38]wFMCommunicate request_size=4 [14:38:38]MH_SAM_APDU [14:38:38]CAPDU: 80 11 00 00 [14:38:38]Write to MH i2c: E2 08 00 F1 61 80 11 00 00 00 00 00 00 CC [14:38:38]Write i2c OK [14:38:38]MH_I2C_Read... [14:38:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:38:38]Read from MH i2c: E2 [14:38:38]MH_I2C_Read... [14:38:38]Read from MH i2c: E2 17 00 [14:38:38]MH_I2C_Read... [14:38:38]Read from MH i2c: E2 17 00 F1 61 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 1A [14:38:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [14:38:38]wFMCommunicate OK [14:38:38]requested_item fd.num is exist - process it [14:38:38]SAM_PROTO_GetFieldsCounters [14:38:38]wFMCommunicate request_size=4 [14:38:38]MH_SAM_APDU [14:38:38]CAPDU: 80 13 00 00 [14:38:38]Write to MH i2c: E2 08 00 F2 61 80 13 00 00 00 00 00 00 CF [14:38:38]Write i2c OK [14:38:38]MH_I2C_Read... [14:38:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:38:38]Read from MH i2c: E2 [14:38:38]MH_I2C_Read... [14:38:38]Read from MH i2c: E2 62 00 [14:38:38]MH_I2C_Read... [14:38:38]Read from MH i2c: E2 62 00 F2 61 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 76 DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 E6 00 00 00 5E 04 04 00 E6 00 00 00 57 04 04 00 E7 00 00 00 19 04 04 00 00 00 00 00 90 00 AA [14:38:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 76 DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 E6 00 00 00 5E 04 04 00 E6 00 00 00 57 04 04 00 E7 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:38:38]wFMCommunicate OK [14:38:38]SAM_PROTO_GetFieldsCounters done [14:38:38]requested_item shift.num is exist - process it [14:38:38]requested_item shift.opened is exist - process it [14:38:38]req_shift_opened [14:38:38]FM_GetShiftState [14:38:38]SAM_PROTO_GetShiftState [14:38:38]wFMCommunicate request_size=4 [14:38:38]MH_SAM_APDU [14:38:38]CAPDU: 80 13 01 00 [14:38:38]Write to MH i2c: E2 08 00 F3 61 80 13 01 00 00 00 00 00 D1 [14:38:38]Write i2c OK [14:38:38]MH_I2C_Read... [14:38:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:38:38]Read from MH i2c: E2 [14:38:38]MH_I2C_Read... [14:38:38]Read from MH i2c: E2 0E 00 [14:38:38]MH_I2C_Read... [14:38:38]Read from MH i2c: E2 0E 00 F3 61 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 30 [14:38:38]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [14:38:38]wFMCommunicate OK [14:38:38]SAM_PROTO_GetShiftState done [14:38:38]FM_GetShiftState done [14:38:38]req_shift_opened done [14:38:38]requested_item shift.open_date is exist - process it [14:38:38]req_shift_open_date [14:38:38]req_shift_open_date done [14:38:38]produce_requested_data done [14:38:38]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187766,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [14:38:38]process_action_free close_receipt [14:38:38]json_value_free [14:38:38]json_value_free done [14:38:38]process_json_proto returns [14:38:38]Send response to host [14:38:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187766,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [14:38:38]free response buf [14:38:38]execute_script done [14:38:38]execute_script returns [14:38:38]free content buf [14:38:38]Sock 8.Close socket [14:38:38]Sock 8.Thread stoped [14:40:04]ConnectInit Can't connect to host [14:40:04]CommunicateWithHost connect error [14:40:04]CommunicateWithHost err = -1 [14:40:04]OFD Sender: Server communicate error [14:40:04]OFD Sender: Processing packet 187765 [packets to send 1063, broken 1061] [14:40:04]ProducePacketName [14:40:04]name=ofd_packets/00187765 [14:40:04]OFD Sender: To server: pG, [14:40:04]CommunicateWithHost lk.salyk.kg:30040 [14:40:04]ConnectInit lk.salyk.kg [14:40:05]Connected sock=8 [14:40:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 51 28 07 01 D7 61 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 A4 15 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 C7 90 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 90 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 48 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 60 0F 00 00 00 00 07 04 06 00 88 90 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E5 00 00 00 F4 03 04 00 43 67 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 75 DD 02 00 35 04 06 00 8F F6 22 E3 5F A2 AD 90 EF FA A4 DC 64 4E [14:40:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 2B 04 47 00 14 36 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 75 DD 02 00 F4 03 04 00 B7 11 16 67 B6 04 01 00 00 8A 9A 4F EC E1 02 A8 E4 [14:40:05]CommunicateWithHost err = 0 [14:40:05]CheckOFDResponse [14:40:05]1017 (14) - 77093643461234 [14:40:05]1041 (16) - 0000000000965340 [14:40:05]1040 (4) - 187765 [14:40:05]1012 (4) - 21.10.2024 08:32 [14:40:05]1206 (1) - 0 [14:40:05]OFD Sender: Remove packet 187765 [14:40:05]ProducePacketName [14:40:05]name=ofd_packets/00187765 [14:40:05]NVStorageDeleteData [14:40:06]OFD Sender: Processing packet 187766 [packets to send 1062, broken 1061] [14:40:06]ProducePacketName [14:40:06]name=ofd_packets/00187766 [14:40:06]OFD Sender: To server: pG, [14:40:06]CommunicateWithHost lk.salyk.kg:30040 [14:40:06]ConnectInit lk.salyk.kg [14:40:06]Connected sock=8 [14:40:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 F1 8D 07 01 F4 4A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E6 00 00 00 F4 03 04 00 6E 67 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 76 DD 02 00 35 04 06 00 A1 C3 26 A0 37 06 3A 35 D1 BD 7A AE AC 47 [14:40:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 61 2D 47 00 96 D0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 76 DD 02 00 F4 03 04 00 B8 11 16 67 B6 04 01 00 00 E8 80 87 DB 39 48 D2 F8 [14:40:06]CommunicateWithHost err = 0 [14:40:06]CheckOFDResponse [14:40:06]1017 (14) - 77093643461234 [14:40:06]1041 (16) - 0000000000965340 [14:40:06]1040 (4) - 187766 [14:40:06]1012 (4) - 21.10.2024 08:32 [14:40:06]1206 (1) - 0 [14:40:06]OFD Sender: Remove packet 187766 [14:40:06]ProducePacketName [14:40:06]name=ofd_packets/00187766 [14:40:06]NVStorageDeleteData [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:40]accept exits with 9 [14:40:40]New connection [14:40:40]New thread 3067014500 created [14:40:40]Thread 3067157860 joined [14:40:40]Waiting for new connection... [14:40:40] Sock 9.Parse request [14:40:40]Sock 9.Check first char [14:40:40]Sock 9.First char is OK [14:40:40]request: POST /json_proto HTTP/1.0 [14:40:40]Method: POST [14:40:40]URL: /json_proto [14:40:40]Method is POST - this is cgi request [14:40:40]url: /json_proto [14:40:40]query_string will be loaded in cgi processing [14:40:40]execute_cgi json_proto POST (null) [14:40:40]execute_cgi path=json_proto method=POST [14:40:40]POST find Content-Length [14:40:40]Host: 172.17.42.131:8080 [14:40:40]Content-Length: 683 [14:40:40]Content-Type: application/json [14:40:40] [14:40:40]POST finish read [14:40:40]Found Content-Length = 683 [14:40:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209819", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 5.190, "sum" : 400.67, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:40:40]execute_script... [14:40: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)209819", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 5.190, "sum" : 400.67, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:40:40]POST & json_proto [14:40:40]process_json_proto [14:40:40]json parsed OK: [14:40:40]protocol is kg_v1.0 [14:40:40]action value=close_receipt [14:40:40]process_action close_receipt [14:40:40]cmd_close_receipt [14:40:40]MH_GetDate [14:40:40]Write to MH i2c: F0 00 00 F4 61 44 [14:40:40]Write i2c OK [14:40:40]MH_I2C_Read... [14:40:40]Read from MH i2c: F0 [14:40:40]MH_I2C_Read... [14:40:40]Read from MH i2c: F0 09 00 [14:40:40]MH_I2C_Read... [14:40:40]Read from MH i2c: F0 09 00 F4 61 00 ED 67 16 67 A0 18 CA 66 06 [14:40:40]GetLastDocTimeStamp 1729521518 [14:40:40]current date 1729521645 [14:40:40]FM_GetShiftState [14:40:40]SAM_PROTO_GetShiftState [14:40:40]wFMCommunicate request_size=4 [14:40:40]MH_SAM_APDU [14:40:40]CAPDU: 80 13 01 00 [14:40:40]Write to MH i2c: E2 08 00 F5 61 80 13 01 00 00 00 00 00 D3 [14:40:40]Write i2c OK [14:40:40]MH_I2C_Read... [14:40:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:40:40]Read from MH i2c: E2 [14:40:40]MH_I2C_Read... [14:40:40]Read from MH i2c: E2 0E 00 [14:40:40]MH_I2C_Read... [14:40:40]Read from MH i2c: E2 0E 00 F5 61 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 32 [14:40:40]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [14:40:40]wFMCommunicate OK [14:40:40]SAM_PROTO_GetShiftState done [14:40:40]FM_GetShiftState done [14:40:40]opened in 1729469754 [14:40:40]opened+sec_in_day 1729556154 [14:40:40]quantity*price = 40066 [14:40:40]sum+1 = 40068 [14:40:40]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.67 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.55 НДС 12% : 42.55 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 231 21.10.2024 14:40 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 187767 ФПД: 222366302621474 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T144045&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187767&fm=222366302621474&tin=02508201610067®Number=0000000000100030&sum=40000 [14:40:41]StoreToDocumentArchive [14:40:41]shift 460 fd 187767 [14:40:41]save to /storage/0460/doc_00187767 [14:40:41]save last doc name /storage/0460/doc_00187767 to /storage/kkm_last_doc_name [14:40:41]save OK [14:40:41]Clear old archive folders... [14:40:41]ProcessDocumentItem done err = 0, tmpTLVsize=257 [14:40:41]tlvbuf is B6F8A850 [14:40:41]SAM_PROTO_ClearQueue [14:40:41]wFMCommunicate request_size=4 [14:40:41]MH_SAM_APDU [14:40:41]CAPDU: 80 09 00 00 [14:40:41]Write to MH i2c: E2 08 00 02 62 80 09 00 00 00 00 00 00 D6 [14:40:41]Write i2c OK [14:40:41]MH_I2C_Read... [14:40:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:40:41]Read from MH i2c: E2 [14:40:41]MH_I2C_Read... [14:40:41]Read from MH i2c: E2 03 00 [14:40:41]MH_I2C_Read... [14:40:41]Read from MH i2c: E2 03 00 02 62 00 90 00 D8 [14:40:41]RAPDU: 90 00 [14:40:41]wFMCommunicate OK [14:40:41]SAM_PROTO_ClearQueue done [14:40:41]KKMCreateOFDPacket [14:40:41]OFDProtocolAddRootSTLVToBuf [14:40:41]FM_MakeSignedData [14:40:41]FM_MakeSignedData [14:40:41]SAM_PROTO_SignData [14:40:41]wFMCommunicate request_size=4 [14:40:41]MH_SAM_APDU [14:40:41]CAPDU: 80 0D 01 02 [14:40:41]Write to MH i2c: E2 08 00 03 62 80 0D 01 02 00 00 00 00 DE [14:40:41]Write i2c OK [14:40:41]MH_I2C_Read... [14:40:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:40:41]Read from MH i2c: E2 [14:40:41]MH_I2C_Read... [14:40:41]Read from MH i2c: E2 03 00 [14:40:41]MH_I2C_Read... [14:40:41]Read from MH i2c: E2 03 00 03 62 00 90 00 D9 [14:40:41]RAPDU: 90 00 [14:40:41]wFMCommunicate OK [14:40:41]wFMCommunicate request_size=255 [14:40:41]MH_SAM_APDU [14:40:41]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 46 14 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 83 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 63 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9F 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E7 00 00 00 F4 03 04 00 ED 67 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 77 DD 02 [14:40:41]Write to MH i2c: E2 02 01 04 62 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 46 14 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 83 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 63 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9F 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E7 00 00 00 F4 03 04 00 ED 67 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 77 DD 02 00 00 BE [14:40:41]Write i2c OK [14:40:41]MH_I2C_Read... [14:40:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:40:42]Read from MH i2c: E2 [14:40:42]MH_I2C_Read... [14:40:42]Read from MH i2c: E2 03 00 [14:40:42]MH_I2C_Read... [14:40:42]Read from MH i2c: E2 03 00 04 62 00 90 00 DA [14:40:42]RAPDU: 90 00 [14:40:42]wFMCommunicate OK [14:40:42]wFMCommunicate request_size=16 [14:40:42]MH_SAM_APDU [14:40:42]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 CA 3D B0 7A 4F 22 [14:40:42]Write to MH i2c: E2 13 00 05 62 80 0D 02 02 0B 00 00 35 04 06 00 CA 3D B0 7A 4F 22 00 00 D8 [14:40:42]Write i2c OK [14:40:42]MH_I2C_Read... [14:40:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:40:42]Read from MH i2c: E2 [14:40:42]MH_I2C_Read... [14:40:42]Read from MH i2c: E2 03 00 [14:40:42]MH_I2C_Read... [14:40:42]Read from MH i2c: E2 03 00 05 62 00 90 00 DB [14:40:42]RAPDU: 90 00 [14:40:42]wFMCommunicate OK [14:40:42]wFMCommunicate request_size=4 [14:40:42]MH_SAM_APDU [14:40:42]CAPDU: 80 0D 03 02 [14:40:42]Write to MH i2c: E2 08 00 06 62 80 0D 03 02 00 00 00 00 E3 [14:40:42]Write i2c OK [14:40:42]MH_I2C_Read... [14:40:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:40:42]Read from MH i2c: E2 [14:40:42]MH_I2C_Read... [14:40:42]Read from MH i2c: E2 0B 00 [14:40:42]MH_I2C_Read... [14:40:42]Read from MH i2c: E2 0B 00 06 62 00 8D EF 46 14 9D D2 92 70 90 00 2B [14:40:42]RAPDU: 8D EF 46 14 9D D2 92 70 90 00 [14:40:42]wFMCommunicate OK [14:40:42]SAM_PROTO_SignData done [14:40:42]FM_MakeSignedData done [14:40:42]CreateOFDProtocolMessage [14:40:42]wFMCommunicate request_size=4 [14:40:42]MH_SAM_APDU [14:40:42]CAPDU: 80 11 00 00 [14:40:42]Write to MH i2c: E2 08 00 07 62 80 11 00 00 00 00 00 00 E3 [14:40:42]Write i2c OK [14:40:42]MH_I2C_Read... [14:40:42]OFD Sender: No OFD packet to send [14:40:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:40:42]Read from MH i2c: E2 [14:40:42]MH_I2C_Read... [14:40:42]Read from MH i2c: E2 17 00 [14:40:42]MH_I2C_Read... [14:40:42]Read from MH i2c: E2 17 00 07 62 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 31 [14:40:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [14:40:42]wFMCommunicate OK [14:40:42]CreateOFDProtocolMessage done [14:40:42]OFDSenderStorePacket 187767 [14:40:42]StoreOFDPacket docnum=187767 [14:40:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 12 50 0D 01 B8 9F 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 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 46 14 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 83 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 63 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9F 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E7 00 00 00 F4 03 04 00 ED 67 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 77 DD 02 00 35 04 06 00 CA 3D B0 7A 4F 22 8D EF 46 14 9D D2 92 70 [14:40:42]CheckFolder [14:40:42]dirname=/storage/ofd_packets [14:40:42]CheckFolder done [14:40:42]ProducePacketName [14:40:42]name=ofd_packets/00187767 [14:40:42]NVStorageSaveData ofd_packets/00187767 [14:40:42]File name is /storage/ofd_packets/00187767 [14:40:42]Write 307 bytes [14:40:42]NVStorageSaveData done [14:40:42]OFDSenderStorePacket done [14:40:42]KKMCreateOFDPacket done [14:40:42]NVStorageSaveData kkm_last_timestamp [14:40:42]File name is /storage/kkm_last_timestamp [14:40:42]Write 4 bytes [14:40:42]NVStorageSaveData done [14:40:42]ExternCall_PrintAddStr [14:40:42]wPrintStart [14:40:42]Write to MH i2c: 01 00 00 08 62 6A [14:40:42]Write i2c OK [14:40:42]MH_I2C_Read... [14:40:42]Read from MH i2c: 01 [14:40:42]MH_I2C_Read... [14:40:42]Read from MH i2c: 01 07 00 [14:40:42]MH_I2C_Read... [14:40:42]Read from MH i2c: 01 07 00 08 62 00 00 00 00 00 FF 0F 7F [14:40:42]RasterBufferAndPrint [14:40:42]line Счет N : (1)209819 [14:40:42]line ИНН: 02508201610067 [14:40:42]line Контрольно-Кассовый Чек [14:40:42]line ПРОДАЖА [14:40:42]line ТРК (МРК, ГНК) : 21 [14:40:42]line Товар: 2710194210 [14:40:42]line D-ENERGY ДТ-К-5 [14:40:42]line 5.190 * 77.20 [14:40:42]line = 400.67 [14:40:42]line НДС 12% НСП 1% [14:40:42]line > о реализуемом товаре [14:40:42]line ОКРУГЛЕНИЕ: -0.67 [14:40:42]line ИТОГО: 400.00 [14:40:42]line Внесено: 400.00 [14:40:42]line СДАЧА: 0.00 [14:40:42]line НСП 1% : 3.55 [14:40:42]line НДС 12% : 42.55 [14:40:42]line Наличными: 400.00 [14:40:42]line Безнал.: 0.00 [14:40:42]line Место: АЗС № 86 "Партнер Нефть" [14:40:42]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [14:40:42]line СНО: Общий режим [14:40:42]line Чек 231 21.10.2024 14:40 [14:40:42]line Смена: 460 ФФД: 1.0 [14:40:42]line ЗНМ: 0300000155 [14:40:42]line РНМ: 0000000000100030 [14:40:42]line Версия ККМ: 001 [14:40:42]line ФМ: 0000000000965340 [14:40:42]line ФД: 187767 [14:40:42]line ФПД: 222366302621474 [14:40:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T144045&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187767&fm=222366302621474&tin=02508201610067®Number=0000000000100030&sum=40000 [14:40:42]written 0, free lines is 4095 [14:40:42]OFD Sender: Processing packet 187767 [packets to send 1062, broken 1061] [14:40:42]ProducePacketName [14:40:42]name=ofd_packets/00187767 [14:40:42]OFD Sender: To server: pG, [14:40:42]CommunicateWithHost lk.salyk.kg:30040 [14:40:42]ConnectInit lk.salyk.kg [14:40:42]Connected sock=10 [14:40:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 12 50 0D 01 B8 9F 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 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 46 14 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 83 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 63 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9F 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E7 00 00 00 F4 03 04 00 ED 67 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 77 DD 02 00 35 04 06 00 CA 3D B0 7A 4F 22 8D EF 46 14 9D D2 92 70 [14:40:42]Write to MH i2c: 01 00 00 33 62 95 [14:40:42]Write i2c OK [14:40:42]MH_I2C_Read... [14:40:42]Read from MH i2c: 01 [14:40:42]MH_I2C_Read... [14:40:42]Read from MH i2c: 01 07 00 [14:40:42]MH_I2C_Read... [14:40:42]Read from MH i2c: 01 07 00 33 62 00 00 00 00 00 5F 0C 07 [14:40:42]RasterBufferAndPrint [14:40:42]line [14:40:42]line [14:40:42]line [14:40:42]line [14:40:42]line [14:40:42]written 0, free lines is 3171 [14:40:42]MH_Cut [14:40:42]Write to MH i2c: D1 01 00 3A 62 01 6E [14:40:42]Write i2c OK [14:40:42]MH_I2C_Read... [14:40:42]Read from MH i2c: D1 [14:40:42]MH_I2C_Read... [14:40:42]Read from MH i2c: D1 01 00 [14:40:42]MH_I2C_Read... [14:40:42]Read from MH i2c: D1 01 00 3A 62 00 6D [14:40:42]Write to MH i2c: 01 00 00 3B 62 9D [14:40:42]Write i2c OK [14:40:42]MH_I2C_Read... [14:40:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 13 78 47 00 F5 DC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 77 DD 02 00 F4 03 04 00 DC 11 16 67 B6 04 01 00 00 B3 33 15 86 55 A1 4A 7A [14:40:43]CommunicateWithHost err = 0 [14:40:43]CheckOFDResponse [14:40:43]1017 (14) - 77093643461234 [14:40:43]1041 (16) - 0000000000965340 [14:40:43]1040 (4) - 187767 [14:40:43]1012 (4) - 21.10.2024 08:33 [14:40:43]1206 (1) - 0 [14:40:43]OFD Sender: Remove packet 187767 [14:40:43]ProducePacketName [14:40:43]name=ofd_packets/00187767 [14:40:43]NVStorageDeleteData [14:40:43]OFD Sender: No OFD packet to send [14:40:44]*** Cut start [14:40:44]*** Partial cut [14:40:44]*** CUTSNS_PIN = 1 [14:40:44]*** CUTSNS_PIN = 0 [14:40:44]*** Brake cut motor [14:40:44]Read from MH i2c: 01 [14:40:44]MH_I2C_Read... [14:40:44]*** Stop cut motor [14:40:44]*** Cut end [14:40:44]Read from MH i2c: 01 07 00 [14:40:44]MH_I2C_Read... [14:40:44]Read from MH i2c: 01 07 00 3B 62 00 00 00 00 00 FF 0F B2 [14:40:44]process_action close_receipt done [14:40:44]requested_data is exist [14:40:44]produce_requested_data [14:40:44]requested_item fm.sn is exist - process it [14:40:44]wFMCommunicate request_size=4 [14:40:44]MH_SAM_APDU [14:40:44]CAPDU: 80 11 00 00 [14:40:44]Write to MH i2c: E2 08 00 3C 62 80 11 00 00 00 00 00 00 18 [14:40:44]Write i2c OK [14:40:44]MH_I2C_Read... [14:40:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:40:44]Read from MH i2c: E2 [14:40:44]MH_I2C_Read... [14:40:44]Read from MH i2c: E2 17 00 [14:40:44]MH_I2C_Read... [14:40:44]Read from MH i2c: E2 17 00 3C 62 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 66 [14:40:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [14:40:44]wFMCommunicate OK [14:40:44]requested_item fd.num is exist - process it [14:40:44]SAM_PROTO_GetFieldsCounters [14:40:44]wFMCommunicate request_size=4 [14:40:44]MH_SAM_APDU [14:40:44]CAPDU: 80 13 00 00 [14:40:44]Write to MH i2c: E2 08 00 3D 62 80 13 00 00 00 00 00 00 1B [14:40:44]Write i2c OK [14:40:44]MH_I2C_Read... [14:40:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:40:44]Read from MH i2c: E2 [14:40:44]MH_I2C_Read... [14:40:44]Read from MH i2c: E2 62 00 [14:40:44]MH_I2C_Read... [14:40:44]Read from MH i2c: E2 62 00 3D 62 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 77 DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 E7 00 00 00 5E 04 04 00 E7 00 00 00 57 04 04 00 E8 00 00 00 19 04 04 00 00 00 00 00 90 00 FA [14:40:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 77 DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 E7 00 00 00 5E 04 04 00 E7 00 00 00 57 04 04 00 E8 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:40:44]wFMCommunicate OK [14:40:44]SAM_PROTO_GetFieldsCounters done [14:40:44]requested_item shift.num is exist - process it [14:40:44]requested_item shift.opened is exist - process it [14:40:44]req_shift_opened [14:40:44]FM_GetShiftState [14:40:44]SAM_PROTO_GetShiftState [14:40:44]wFMCommunicate request_size=4 [14:40:44]MH_SAM_APDU [14:40:44]CAPDU: 80 13 01 00 [14:40:44]Write to MH i2c: E2 08 00 3E 62 80 13 01 00 00 00 00 00 1D [14:40:44]Write i2c OK [14:40:44]MH_I2C_Read... [14:40:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:40:44]Read from MH i2c: E2 [14:40:44]MH_I2C_Read... [14:40:44]Read from MH i2c: E2 0E 00 [14:40:44]MH_I2C_Read... [14:40:44]Read from MH i2c: E2 0E 00 3E 62 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 7C [14:40:44]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [14:40:44]wFMCommunicate OK [14:40:44]SAM_PROTO_GetShiftState done [14:40:44]FM_GetShiftState done [14:40:44]req_shift_opened done [14:40:44]requested_item shift.open_date is exist - process it [14:40:44]req_shift_open_date [14:40:44]req_shift_open_date done [14:40:44]produce_requested_data done [14:40:44]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187767,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [14:40:44]process_action_free close_receipt [14:40:44]json_value_free [14:40:44]json_value_free done [14:40:44]process_json_proto returns [14:40:44]Send response to host [14:40:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187767,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [14:40:44]free response buf [14:40:44]execute_script done [14:40:44]execute_script returns [14:40:44]free content buf [14:40:44]Sock 9.Close socket [14:40:44]Sock 9.Thread stoped [14:40:48]OFD Sender: No OFD packet to send [14:40:53]OFD Sender: No OFD packet to send [14:40:58]OFD Sender: No OFD packet to send [14:41:03]OFD Sender: No OFD packet to send [14:41:08]OFD Sender: No OFD packet to send [14:41:13]OFD Sender: No OFD packet to send [14:41:18]OFD Sender: No OFD packet to send [14:41:23]OFD Sender: No OFD packet to send [14:41:28]OFD Sender: No OFD packet to send [14:41:33]OFD Sender: No OFD packet to send [14:41:38]OFD Sender: No OFD packet to send [14:41:43]OFD Sender: No OFD packet to send [14:41:48]OFD Sender: No OFD packet to send [14:41:53]OFD Sender: No OFD packet to send [14:41:58]OFD Sender: No OFD packet to send [14:42:03]OFD Sender: No OFD packet to send [14:42:08]OFD Sender: No OFD packet to send [14:42:13]OFD Sender: No OFD packet to send [14:42:15]accept exits with 8 [14:42:15]New connection [14:42:15]New thread 3067157860 created [14:42:15]Thread 3067014500 joined [14:42:15]Waiting for new connection... [14:42:15] Sock 8.Parse request [14:42:15]Sock 8.Check first char [14:42:15]Sock 8.First char is OK [14:42:15]request: POST /json_proto HTTP/1.0 [14:42:15]Method: POST [14:42:15]URL: /json_proto [14:42:15]Method is POST - this is cgi request [14:42:15]url: /json_proto [14:42:15]query_string will be loaded in cgi processing [14:42:15]execute_cgi json_proto POST (null) [14:42:15]execute_cgi path=json_proto method=POST [14:42:15]POST find Content-Length [14:42:15]Host: 172.17.42.131:8080 [14:42:15]Content-Length: 678 [14:42:15]Content-Type: application/json [14:42:15] [14:42:15]POST finish read [14:42:15]Found Content-Length = 678 [14:42:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209820", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:42:15]execute_script... [14: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)209820", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:42:15]POST & json_proto [14:42:15]process_json_proto [14:42:15]json parsed OK: [14:42:15]protocol is kg_v1.0 [14:42:15]action value=close_receipt [14:42:15]process_action close_receipt [14:42:15]cmd_close_receipt [14:42:15]MH_GetDate [14:42:15]Write to MH i2c: F0 00 00 3F 62 90 [14:42:15]Write i2c OK [14:42:15]MH_I2C_Read... [14:42:15]Read from MH i2c: F0 [14:42:15]MH_I2C_Read... [14:42:15]Read from MH i2c: F0 09 00 [14:42:15]MH_I2C_Read... [14:42:15]Read from MH i2c: F0 09 00 3F 62 00 4B 68 16 67 A0 18 CA 66 B1 [14:42:15]GetLastDocTimeStamp 1729521645 [14:42:15]current date 1729521739 [14:42:15]FM_GetShiftState [14:42:15]SAM_PROTO_GetShiftState [14:42:15]wFMCommunicate request_size=4 [14:42:15]MH_SAM_APDU [14:42:15]CAPDU: 80 13 01 00 [14:42:15]Write to MH i2c: E2 08 00 40 62 80 13 01 00 00 00 00 00 1F [14:42:15]Write i2c OK [14:42:15]MH_I2C_Read... [14:42:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:42:15]Read from MH i2c: E2 [14:42:15]MH_I2C_Read... [14:42:15]Read from MH i2c: E2 0E 00 [14:42:15]MH_I2C_Read... [14:42:15]Read from MH i2c: E2 0E 00 40 62 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 7E [14:42:15]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [14:42:15]wFMCommunicate OK [14:42:15]SAM_PROTO_GetShiftState done [14:42:15]FM_GetShiftState done [14:42:15]opened in 1729469754 [14:42:15]opened+sec_in_day 1729556154 [14:42:15]quantity*price = 70044 [14:42:15]sum+1 = 70045 [14:42:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 232 21.10.2024 14:42 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 187768 ФПД: 145695810086410 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T144219&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187768&fm=145695810086410&tin=02508201610067®Number=0000000000100030&sum=70000 [14:42:16]StoreToDocumentArchive [14:42:16]shift 460 fd 187768 [14:42:16]save to /storage/0460/doc_00187768 [14:42:16]save last doc name /storage/0460/doc_00187768 to /storage/kkm_last_doc_name [14:42:16]save OK [14:42:16]Clear old archive folders... [14:42:16]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:42:16]tlvbuf is 011F8570 [14:42:16]SAM_PROTO_ClearQueue [14:42:16]wFMCommunicate request_size=4 [14:42:16]MH_SAM_APDU [14:42:16]CAPDU: 80 09 00 00 [14:42:16]Write to MH i2c: E2 08 00 4D 62 80 09 00 00 00 00 00 00 21 [14:42:16]Write i2c OK [14:42:16]MH_I2C_Read... [14:42:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:42:16]Read from MH i2c: E2 [14:42:16]MH_I2C_Read... [14:42:16]Read from MH i2c: E2 03 00 [14:42:16]MH_I2C_Read... [14:42:16]Read from MH i2c: E2 03 00 4D 62 00 90 00 23 [14:42:16]RAPDU: 90 00 [14:42:16]wFMCommunicate OK [14:42:16]SAM_PROTO_ClearQueue done [14:42:16]KKMCreateOFDPacket [14:42:16]OFDProtocolAddRootSTLVToBuf [14:42:16]FM_MakeSignedData [14:42:16]FM_MakeSignedData [14:42:16]SAM_PROTO_SignData [14:42:16]wFMCommunicate request_size=4 [14:42:16]MH_SAM_APDU [14:42:16]CAPDU: 80 0D 01 02 [14:42:16]Write to MH i2c: E2 08 00 4E 62 80 0D 01 02 00 00 00 00 29 [14:42:16]Write i2c OK [14:42:16]MH_I2C_Read... [14:42:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:42:16]Read from MH i2c: E2 [14:42:16]MH_I2C_Read... [14:42:16]Read from MH i2c: E2 03 00 [14:42:16]MH_I2C_Read... [14:42:16]Read from MH i2c: E2 03 00 4E 62 00 90 00 24 [14:42:16]RAPDU: 90 00 [14:42:16]wFMCommunicate OK [14:42:16]wFMCommunicate request_size=255 [14:42:16]MH_SAM_APDU [14:42: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 33 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 E8 00 00 00 F4 03 04 00 4B 68 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 78 DD 02 00 35 04 06 00 84 [14:42:16]Write to MH i2c: E2 02 01 4F 62 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 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 E8 00 00 00 F4 03 04 00 4B 68 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 78 DD 02 00 35 04 06 00 84 00 00 6C [14:42:16]Write i2c OK [14:42:16]MH_I2C_Read... [14:42:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:42:16]Read from MH i2c: E2 [14:42:16]MH_I2C_Read... [14:42:16]Read from MH i2c: E2 03 00 [14:42:16]MH_I2C_Read... [14:42:16]Read from MH i2c: E2 03 00 4F 62 00 90 00 25 [14:42:16]RAPDU: 90 00 [14:42:16]wFMCommunicate OK [14:42:16]wFMCommunicate request_size=10 [14:42:16]MH_SAM_APDU [14:42:16]CAPDU: 80 0D 02 02 05 82 73 01 66 0A [14:42:16]Write to MH i2c: E2 0D 00 50 62 80 0D 02 02 05 00 82 73 01 66 0A 00 00 9C [14:42:16]Write i2c OK [14:42:16]MH_I2C_Read... [14:42:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:42:16]Read from MH i2c: E2 [14:42:16]MH_I2C_Read... [14:42:16]Read from MH i2c: E2 03 00 [14:42:16]MH_I2C_Read... [14:42:16]Read from MH i2c: E2 03 00 50 62 00 90 00 26 [14:42:16]RAPDU: 90 00 [14:42:16]wFMCommunicate OK [14:42:16]wFMCommunicate request_size=4 [14:42:16]MH_SAM_APDU [14:42:16]CAPDU: 80 0D 03 02 [14:42:16]Write to MH i2c: E2 08 00 51 62 80 0D 03 02 00 00 00 00 2E [14:42:16]Write i2c OK [14:42:16]MH_I2C_Read... [14:42:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:42:17]Read from MH i2c: E2 [14:42:17]MH_I2C_Read... [14:42:17]Read from MH i2c: E2 0B 00 [14:42:17]MH_I2C_Read... [14:42:17]Read from MH i2c: E2 0B 00 51 62 00 1B A8 4F AE F5 EF 01 EA 90 00 BE [14:42:17]RAPDU: 1B A8 4F AE F5 EF 01 EA 90 00 [14:42:17]wFMCommunicate OK [14:42:17]SAM_PROTO_SignData done [14:42:17]FM_MakeSignedData done [14:42:17]CreateOFDProtocolMessage [14:42:17]wFMCommunicate request_size=4 [14:42:17]MH_SAM_APDU [14:42:17]CAPDU: 80 11 00 00 [14:42:17]Write to MH i2c: E2 08 00 52 62 80 11 00 00 00 00 00 00 2E [14:42:17]Write i2c OK [14:42:17]MH_I2C_Read... [14:42:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:42:17]Read from MH i2c: E2 [14:42:17]MH_I2C_Read... [14:42:17]Read from MH i2c: E2 17 00 [14:42:17]MH_I2C_Read... [14:42:17]Read from MH i2c: E2 17 00 52 62 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 7C [14:42:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [14:42:17]wFMCommunicate OK [14:42:17]CreateOFDProtocolMessage done [14:42:17]OFDSenderStorePacket 187768 [14:42:17]StoreOFDPacket docnum=187768 [14:42:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 FB DD 07 01 CF 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 33 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 E8 00 00 00 F4 03 04 00 4B 68 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 78 DD 02 00 35 04 06 00 84 82 73 01 66 0A 1B A8 4F AE F5 EF 01 EA [14:42:17]CheckFolder [14:42:17]dirname=/storage/ofd_packets [14:42:17]CheckFolder done [14:42:17]ProducePacketName [14:42:17]name=ofd_packets/00187768 [14:42:17]NVStorageSaveData ofd_packets/00187768 [14:42:17]File name is /storage/ofd_packets/00187768 [14:42:17]Write 301 bytes [14:42:17]NVStorageSaveData done [14:42:17]OFDSenderStorePacket done [14:42:17]KKMCreateOFDPacket done [14:42:17]NVStorageSaveData kkm_last_timestamp [14:42:17]File name is /storage/kkm_last_timestamp [14:42:17]Write 4 bytes [14:42:17]NVStorageSaveData done [14:42:17]ExternCall_PrintAddStr [14:42:17]wPrintStart [14:42:17]Write to MH i2c: 01 00 00 53 62 B5 [14:42:17]Write i2c OK [14:42:17]MH_I2C_Read... [14:42:17]Read from MH i2c: 01 [14:42:17]MH_I2C_Read... [14:42:17]Read from MH i2c: 01 07 00 [14:42:17]MH_I2C_Read... [14:42:17]Read from MH i2c: 01 07 00 53 62 00 00 00 00 00 FF 0F CA [14:42:17]RasterBufferAndPrint [14:42:17]line Счет N : (1)209820 [14:42:17]line ИНН: 02508201610067 [14:42:17]line Контрольно-Кассовый Чек [14:42:17]line ПРОДАЖА [14:42:17]line ТРК (МРК, ГНК) : 42 [14:42:17]line Товар: 2710124130 [14:42:17]line Аи-92-К-3 [14:42:17]line 10.470 * 66.90 [14:42:17]line = 700.44 [14:42:17]line НДС 12% НСП 1% [14:42:17]line > о реализуемом товаре [14:42:17]line ОКРУГЛЕНИЕ: -0.44 [14:42:17]line ИТОГО: 700.00 [14:42:17]line Внесено: 700.00 [14:42:17]line СДАЧА: 0.00 [14:42:17]line НСП 1% : 6.20 [14:42:17]line НДС 12% : 74.38 [14:42:17]line Наличными: 700.00 [14:42:17]line Безнал.: 0.00 [14:42:17]line Место: АЗС № 86 "Партнер Нефть" [14:42:17]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [14:42:17]line СНО: Общий режим [14:42:17]line Чек 232 21.10.2024 14:42 [14:42:17]line Смена: 460 ФФД: 1.0 [14:42:17]line ЗНМ: 0300000155 [14:42:17]line РНМ: 0000000000100030 [14:42:17]line Версия ККМ: 001 [14:42:17]line ФМ: 0000000000965340 [14:42:17]line ФД: 187768 [14:42:17]line ФПД: 145695810086410 [14:42:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T144219&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187768&fm=145695810086410&tin=02508201610067®Number=0000000000100030&sum=70000 [14:42:17]written 0, free lines is 4095 [14:42:17]OFD Sender: Processing packet 187768 [packets to send 1062, broken 1061] [14:42:17]ProducePacketName [14:42:17]name=ofd_packets/00187768 [14:42:17]OFD Sender: To server: pG, [14:42:17]CommunicateWithHost lk.salyk.kg:30040 [14:42:17]ConnectInit lk.salyk.kg [14:42:17]Connected sock=9 [14:42:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 FB DD 07 01 CF 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 33 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 E8 00 00 00 F4 03 04 00 4B 68 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 78 DD 02 00 35 04 06 00 84 82 73 01 66 0A 1B A8 4F AE F5 EF 01 EA [14:42:17]Write to MH i2c: 01 00 00 7E 62 E0 [14:42:17]Write i2c OK [14:42:17]MH_I2C_Read... [14:42:17]Read from MH i2c: 01 [14:42:17]MH_I2C_Read... [14:42:17]Read from MH i2c: 01 07 00 [14:42:17]MH_I2C_Read... [14:42:17]Read from MH i2c: 01 07 00 7E 62 00 00 00 00 00 66 0C 59 [14:42:17]RasterBufferAndPrint [14:42:17]line [14:42:17]line [14:42:17]line [14:42:17]line [14:42:17]line [14:42:17]written 0, free lines is 3178 [14:42:17]MH_Cut [14:42:17]Write to MH i2c: D1 01 00 85 62 01 B9 [14:42:17]Write i2c OK [14:42:17]MH_I2C_Read... [14:42:17]Read from MH i2c: D1 [14:42:17]MH_I2C_Read... [14:42:17]Read from MH i2c: D1 01 00 [14:42:17]MH_I2C_Read... [14:42:17]Read from MH i2c: D1 01 00 85 62 00 B8 [14:42:17]Write to MH i2c: 01 00 00 86 62 E8 [14:42:17]Write i2c OK [14:42:17]MH_I2C_Read... [14:42:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 4A B1 47 00 9A D3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 78 DD 02 00 F4 03 04 00 3B 12 16 67 B6 04 01 00 00 1F 55 51 9B 4B 72 03 A7 [14:42:17]CommunicateWithHost err = 0 [14:42:17]CheckOFDResponse [14:42:17]1017 (14) - 77093643461234 [14:42:17]1041 (16) - 0000000000965340 [14:42:17]1040 (4) - 187768 [14:42:17]1012 (4) - 21.10.2024 08:35 [14:42:17]1206 (1) - 0 [14:42:17]OFD Sender: Remove packet 187768 [14:42:17]ProducePacketName [14:42:17]name=ofd_packets/00187768 [14:42:17]NVStorageDeleteData [14:42:18]OFD Sender: No OFD packet to send [14:42:18]*** Cut start [14:42:18]*** Partial cut [14:42:18]*** CUTSNS_PIN = 1 [14:42:18]*** CUTSNS_PIN = 0 [14:42:19]*** Brake cut motor [14:42:19]Read from MH i2c: 01 [14:42:19]MH_I2C_Read... [14:42:19]*** Stop cut motor [14:42:19]*** Cut end [14:42:19]Read from MH i2c: 01 07 00 [14:42:19]MH_I2C_Read... [14:42:19]Read from MH i2c: 01 07 00 86 62 00 00 00 00 00 FF 0F FD [14:42:19]process_action close_receipt done [14:42:19]requested_data is exist [14:42:19]produce_requested_data [14:42:19]requested_item fm.sn is exist - process it [14:42:19]wFMCommunicate request_size=4 [14:42:19]MH_SAM_APDU [14:42:19]CAPDU: 80 11 00 00 [14:42:19]Write to MH i2c: E2 08 00 87 62 80 11 00 00 00 00 00 00 63 [14:42:19]Write i2c OK [14:42:19]MH_I2C_Read... [14:42:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:42:19]Read from MH i2c: E2 [14:42:19]MH_I2C_Read... [14:42:19]Read from MH i2c: E2 17 00 [14:42:19]MH_I2C_Read... [14:42:19]Read from MH i2c: E2 17 00 87 62 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 B1 [14:42:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [14:42:19]wFMCommunicate OK [14:42:19]requested_item fd.num is exist - process it [14:42:19]SAM_PROTO_GetFieldsCounters [14:42:19]wFMCommunicate request_size=4 [14:42:19]MH_SAM_APDU [14:42:19]CAPDU: 80 13 00 00 [14:42:19]Write to MH i2c: E2 08 00 88 62 80 13 00 00 00 00 00 00 66 [14:42:19]Write i2c OK [14:42:19]MH_I2C_Read... [14:42:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:42:19]Read from MH i2c: E2 [14:42:19]MH_I2C_Read... [14:42:19]Read from MH i2c: E2 62 00 [14:42:19]MH_I2C_Read... [14:42:19]Read from MH i2c: E2 62 00 88 62 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 78 DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 E8 00 00 00 5E 04 04 00 E8 00 00 00 57 04 04 00 E9 00 00 00 19 04 04 00 00 00 00 00 90 00 49 [14:42:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 78 DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 E8 00 00 00 5E 04 04 00 E8 00 00 00 57 04 04 00 E9 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:42:19]wFMCommunicate OK [14:42:19]SAM_PROTO_GetFieldsCounters done [14:42:19]requested_item shift.num is exist - process it [14:42:19]requested_item shift.opened is exist - process it [14:42:19]req_shift_opened [14:42:19]FM_GetShiftState [14:42:19]SAM_PROTO_GetShiftState [14:42:19]wFMCommunicate request_size=4 [14:42:19]MH_SAM_APDU [14:42:19]CAPDU: 80 13 01 00 [14:42:19]Write to MH i2c: E2 08 00 89 62 80 13 01 00 00 00 00 00 68 [14:42:19]Write i2c OK [14:42:19]MH_I2C_Read... [14:42:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:42:19]Read from MH i2c: E2 [14:42:19]MH_I2C_Read... [14:42:19]Read from MH i2c: E2 0E 00 [14:42:19]MH_I2C_Read... [14:42:19]Read from MH i2c: E2 0E 00 89 62 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 C7 [14:42:19]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [14:42:19]wFMCommunicate OK [14:42:19]SAM_PROTO_GetShiftState done [14:42:19]FM_GetShiftState done [14:42:19]req_shift_opened done [14:42:19]requested_item shift.open_date is exist - process it [14:42:19]req_shift_open_date [14:42:19]req_shift_open_date done [14:42:19]produce_requested_data done [14:42:19]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187768,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [14:42:19]process_action_free close_receipt [14:42:19]json_value_free [14:42:19]json_value_free done [14:42:19]process_json_proto returns [14:42:19]Send response to host [14:42:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187768,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [14:42:19]free response buf [14:42:19]execute_script done [14:42:19]execute_script returns [14:42:19]free content buf [14:42:19]Sock 8.Close socket [14:42:19]Sock 8.Thread stoped [14:42:23]OFD Sender: No OFD packet to send [14:42:28]OFD Sender: No OFD packet to send [14:42:33]OFD Sender: No OFD packet to send [14:42:38]OFD Sender: No OFD packet to send [14:42:39]accept exits with 10 [14:42:39]New connection [14:42:39]New thread 3067014500 created [14:42:39]Thread 3067157860 joined [14:42:39]Waiting for new connection... [14:42:39] Sock 10.Parse request [14:42:39]Sock 10.Check first char [14:42:39]Sock 10.First char is OK [14:42:39]request: POST /json_proto HTTP/1.0 [14:42:39]Method: POST [14:42:39]URL: /json_proto [14:42:39]Method is POST - this is cgi request [14:42:39]url: /json_proto [14:42:39]query_string will be loaded in cgi processing [14:42:39]execute_cgi json_proto POST (null) [14:42:39]execute_cgi path=json_proto method=POST [14:42:39]POST find Content-Length [14:42:39]Host: 172.17.42.131:8080 [14:42:39]Content-Length: 678 [14:42:39]Content-Type: application/json [14:42:39] [14:42:39]POST finish read [14:42:39]Found Content-Length = 678 [14:42:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209821", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:42:39]execute_script... [14:42: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)209821", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:42:39]POST & json_proto [14:42:39]process_json_proto [14:42:39]json parsed OK: [14:42:39]protocol is kg_v1.0 [14:42:39]action value=close_receipt [14:42:39]process_action close_receipt [14:42:39]cmd_close_receipt [14:42:39]MH_GetDate [14:42:39]Write to MH i2c: F0 00 00 8A 62 DB [14:42:39]Write i2c OK [14:42:39]MH_I2C_Read... [14:42:39]Read from MH i2c: F0 [14:42:39]MH_I2C_Read... [14:42:39]Read from MH i2c: F0 09 00 [14:42:39]MH_I2C_Read... [14:42:39]Read from MH i2c: F0 09 00 8A 62 00 63 68 16 67 A0 18 CA 66 14 [14:42:39]GetLastDocTimeStamp 1729521739 [14:42:39]current date 1729521763 [14:42:39]FM_GetShiftState [14:42:39]SAM_PROTO_GetShiftState [14:42:39]wFMCommunicate request_size=4 [14:42:39]MH_SAM_APDU [14:42:39]CAPDU: 80 13 01 00 [14:42:39]Write to MH i2c: E2 08 00 8B 62 80 13 01 00 00 00 00 00 6A [14:42:39]Write i2c OK [14:42:39]MH_I2C_Read... [14:42:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:42:39]Read from MH i2c: E2 [14:42:39]MH_I2C_Read... [14:42:39]Read from MH i2c: E2 0E 00 [14:42:39]MH_I2C_Read... [14:42:39]Read from MH i2c: E2 0E 00 8B 62 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 C9 [14:42:39]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [14:42:39]wFMCommunicate OK [14:42:39]SAM_PROTO_GetShiftState done [14:42:39]FM_GetShiftState done [14:42:39]opened in 1729469754 [14:42:39]opened+sec_in_day 1729556154 [14:42:39]quantity*price = 70044 [14:42:39]sum+1 = 70045 [14:42:39]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 233 21.10.2024 14:42 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 187769 ФПД: 184749218279322 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T144243&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187769&fm=184749218279322&tin=02508201610067®Number=0000000000100030&sum=70000 [14:42:40]StoreToDocumentArchive [14:42:40]shift 460 fd 187769 [14:42:40]save to /storage/0460/doc_00187769 [14:42:40]save last doc name /storage/0460/doc_00187769 to /storage/kkm_last_doc_name [14:42:40]save OK [14:42:40]Clear old archive folders... [14:42:40]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:42:40]tlvbuf is 01236DE0 [14:42:40]SAM_PROTO_ClearQueue [14:42:40]wFMCommunicate request_size=4 [14:42:40]MH_SAM_APDU [14:42:40]CAPDU: 80 09 00 00 [14:42:40]Write to MH i2c: E2 08 00 98 62 80 09 00 00 00 00 00 00 6C [14:42:40]Write i2c OK [14:42:40]MH_I2C_Read... [14:42:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:42:40]Read from MH i2c: E2 [14:42:40]MH_I2C_Read... [14:42:40]Read from MH i2c: E2 03 00 [14:42:40]MH_I2C_Read... [14:42:40]Read from MH i2c: E2 03 00 98 62 00 90 00 6E [14:42:40]RAPDU: 90 00 [14:42:40]wFMCommunicate OK [14:42:40]SAM_PROTO_ClearQueue done [14:42:40]KKMCreateOFDPacket [14:42:40]OFDProtocolAddRootSTLVToBuf [14:42:40]FM_MakeSignedData [14:42:40]FM_MakeSignedData [14:42:40]SAM_PROTO_SignData [14:42:40]wFMCommunicate request_size=4 [14:42:40]MH_SAM_APDU [14:42:40]CAPDU: 80 0D 01 02 [14:42:40]Write to MH i2c: E2 08 00 99 62 80 0D 01 02 00 00 00 00 74 [14:42:40]Write i2c OK [14:42:40]MH_I2C_Read... [14:42:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:42:40]Read from MH i2c: E2 [14:42:40]MH_I2C_Read... [14:42:40]Read from MH i2c: E2 03 00 [14:42:40]MH_I2C_Read... [14:42:40]Read from MH i2c: E2 03 00 99 62 00 90 00 6F [14:42:40]RAPDU: 90 00 [14:42:40]wFMCommunicate OK [14:42:40]wFMCommunicate request_size=255 [14:42:40]MH_SAM_APDU [14:42: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 33 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 E9 00 00 00 F4 03 04 00 63 68 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 79 DD 02 00 35 04 06 00 A8 [14:42:40]Write to MH i2c: E2 02 01 9A 62 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 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 E9 00 00 00 F4 03 04 00 63 68 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 79 DD 02 00 35 04 06 00 A8 00 00 F5 [14:42:40]Write i2c OK [14:42:40]MH_I2C_Read... [14:42:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:42:40]Read from MH i2c: E2 [14:42:40]MH_I2C_Read... [14:42:40]Read from MH i2c: E2 03 00 [14:42:40]MH_I2C_Read... [14:42:40]Read from MH i2c: E2 03 00 9A 62 00 90 00 70 [14:42:40]RAPDU: 90 00 [14:42:40]wFMCommunicate OK [14:42:40]wFMCommunicate request_size=10 [14:42:40]MH_SAM_APDU [14:42:40]CAPDU: 80 0D 02 02 05 07 47 87 2F 9A [14:42:40]Write to MH i2c: E2 0D 00 9B 62 80 0D 02 02 05 00 07 47 87 2F 9A 00 00 1F [14:42:40]Write i2c OK [14:42:40]MH_I2C_Read... [14:42:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:42:40]Read from MH i2c: E2 [14:42:40]MH_I2C_Read... [14:42:40]Read from MH i2c: E2 03 00 [14:42:40]MH_I2C_Read... [14:42:40]Read from MH i2c: E2 03 00 9B 62 00 90 00 71 [14:42:40]RAPDU: 90 00 [14:42:40]wFMCommunicate OK [14:42:40]wFMCommunicate request_size=4 [14:42:40]MH_SAM_APDU [14:42:40]CAPDU: 80 0D 03 02 [14:42:40]Write to MH i2c: E2 08 00 9C 62 80 0D 03 02 00 00 00 00 79 [14:42:40]Write i2c OK [14:42:40]MH_I2C_Read... [14:42:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:42:40]Read from MH i2c: E2 [14:42:40]MH_I2C_Read... [14:42:40]Read from MH i2c: E2 0B 00 [14:42:40]MH_I2C_Read... [14:42:40]Read from MH i2c: E2 0B 00 9C 62 00 77 EA 9D A3 5F 2F 79 91 90 00 B3 [14:42:40]RAPDU: 77 EA 9D A3 5F 2F 79 91 90 00 [14:42:40]wFMCommunicate OK [14:42:40]SAM_PROTO_SignData done [14:42:40]FM_MakeSignedData done [14:42:40]CreateOFDProtocolMessage [14:42:40]wFMCommunicate request_size=4 [14:42:40]MH_SAM_APDU [14:42:40]CAPDU: 80 11 00 00 [14:42:40]Write to MH i2c: E2 08 00 9D 62 80 11 00 00 00 00 00 00 79 [14:42:40]Write i2c OK [14:42:40]MH_I2C_Read... [14:42:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:42:40]Read from MH i2c: E2 [14:42:40]MH_I2C_Read... [14:42:40]Read from MH i2c: E2 17 00 [14:42:40]MH_I2C_Read... [14:42:40]Read from MH i2c: E2 17 00 9D 62 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 C7 [14:42:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [14:42:40]wFMCommunicate OK [14:42:40]CreateOFDProtocolMessage done [14:42:40]OFDSenderStorePacket 187769 [14:42:40]StoreOFDPacket docnum=187769 [14:42:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 99 A2 07 01 7B 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 33 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 E9 00 00 00 F4 03 04 00 63 68 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 79 DD 02 00 35 04 06 00 A8 07 47 87 2F 9A 77 EA 9D A3 5F 2F 79 91 [14:42:40]CheckFolder [14:42:40]dirname=/storage/ofd_packets [14:42:40]CheckFolder done [14:42:40]ProducePacketName [14:42:40]name=ofd_packets/00187769 [14:42:40]NVStorageSaveData ofd_packets/00187769 [14:42:40]File name is /storage/ofd_packets/00187769 [14:42:40]Write 301 bytes [14:42:40]NVStorageSaveData done [14:42:40]OFDSenderStorePacket done [14:42:40]KKMCreateOFDPacket done [14:42:40]NVStorageSaveData kkm_last_timestamp [14:42:40]File name is /storage/kkm_last_timestamp [14:42:40]Write 4 bytes [14:42:40]NVStorageSaveData done [14:42:40]ExternCall_PrintAddStr [14:42:40]wPrintStart [14:42:40]Write to MH i2c: 01 00 00 9E 62 00 [14:42:40]Write i2c OK [14:42:40]MH_I2C_Read... [14:42:40]Read from MH i2c: 01 [14:42:40]MH_I2C_Read... [14:42:40]Read from MH i2c: 01 07 00 [14:42:40]MH_I2C_Read... [14:42:40]Read from MH i2c: 01 07 00 9E 62 00 00 00 00 00 FF 0F 15 [14:42:40]RasterBufferAndPrint [14:42:40]line Счет N : (1)209821 [14:42:40]line ИНН: 02508201610067 [14:42:40]line Контрольно-Кассовый Чек [14:42:40]line ПРОДАЖА [14:42:40]line ТРК (МРК, ГНК) : 12 [14:42:40]line Товар: 2710124130 [14:42:40]line Аи-92-К-3 [14:42:40]line 10.470 * 66.90 [14:42:40]line = 700.44 [14:42:40]line НДС 12% НСП 1% [14:42:40]line > о реализуемом товаре [14:42:40]line ОКРУГЛЕНИЕ: -0.44 [14:42:40]line ИТОГО: 700.00 [14:42:40]line Внесено: 700.00 [14:42:40]line СДАЧА: 0.00 [14:42:40]line НСП 1% : 6.20 [14:42:40]line НДС 12% : 74.38 [14:42:40]line Наличными: 700.00 [14:42:40]line Безнал.: 0.00 [14:42:40]line Место: АЗС № 86 "Партнер Нефть" [14:42:40]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [14:42:40]line СНО: Общий режим [14:42:40]line Чек 233 21.10.2024 14:42 [14:42:40]line Смена: 460 ФФД: 1.0 [14:42:40]line ЗНМ: 0300000155 [14:42:40]line РНМ: 0000000000100030 [14:42:40]line Версия ККМ: 001 [14:42:40]line ФМ: 0000000000965340 [14:42:40]line ФД: 187769 [14:42:40]line ФПД: 184749218279322 [14:42:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T144243&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187769&fm=184749218279322&tin=02508201610067®Number=0000000000100030&sum=70000 [14:42:40]written 0, free lines is 4095 [14:42:40]OFD Sender: Processing packet 187769 [packets to send 1062, broken 1061] [14:42:40]ProducePacketName [14:42:40]name=ofd_packets/00187769 [14:42:40]OFD Sender: To server: pG, [14:42:40]CommunicateWithHost lk.salyk.kg:30040 [14:42:40]ConnectInit lk.salyk.kg [14:42:41]Connected sock=9 [14:42:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 99 A2 07 01 7B 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 33 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 E9 00 00 00 F4 03 04 00 63 68 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 79 DD 02 00 35 04 06 00 A8 07 47 87 2F 9A 77 EA 9D A3 5F 2F 79 91 [14:42:41]Write to MH i2c: 01 00 00 C9 62 2B [14:42:41]Write i2c OK [14:42:41]MH_I2C_Read... [14:42:41]Read from MH i2c: 01 [14:42:41]MH_I2C_Read... [14:42:41]Read from MH i2c: 01 07 00 [14:42:41]MH_I2C_Read... [14:42:41]Read from MH i2c: 01 07 00 C9 62 00 00 00 00 00 63 0C A1 [14:42:41]RasterBufferAndPrint [14:42:41]line [14:42:41]line [14:42:41]line [14:42:41]line [14:42:41]line [14:42:41]written 0, free lines is 3175 [14:42:41]MH_Cut [14:42:41]Write to MH i2c: D1 01 00 D0 62 01 04 [14:42:41]Write i2c OK [14:42:41]MH_I2C_Read... [14:42:41]Read from MH i2c: D1 [14:42:41]MH_I2C_Read... [14:42:41]Read from MH i2c: D1 01 00 [14:42:41]MH_I2C_Read... [14:42:41]Read from MH i2c: D1 01 00 D0 62 00 03 [14:42:41]Write to MH i2c: 01 00 00 D1 62 33 [14:42:41]Write i2c OK [14:42:41]MH_I2C_Read... [14:42:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 09 7A 47 00 19 3D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 79 DD 02 00 F4 03 04 00 53 12 16 67 B6 04 01 00 00 16 14 2B F1 DF E1 9E 73 [14:42:41]CommunicateWithHost err = 0 [14:42:41]CheckOFDResponse [14:42:41]1017 (14) - 77093643461234 [14:42:41]1041 (16) - 0000000000965340 [14:42:41]1040 (4) - 187769 [14:42:41]1012 (4) - 21.10.2024 08:35 [14:42:41]1206 (1) - 0 [14:42:41]OFD Sender: Remove packet 187769 [14:42:41]ProducePacketName [14:42:41]name=ofd_packets/00187769 [14:42:41]NVStorageDeleteData [14:42:41]OFD Sender: No OFD packet to send [14:42:42]*** Cut start [14:42:42]*** Partial cut [14:42:42]*** CUTSNS_PIN = 1 [14:42:42]*** CUTSNS_PIN = 0 [14:42:42]*** Brake cut motor [14:42:43]Read from MH i2c: 01 [14:42:43]MH_I2C_Read... [14:42:43]*** Stop cut motor [14:42:43]*** Cut end [14:42:43]Read from MH i2c: 01 07 00 [14:42:43]MH_I2C_Read... [14:42:43]Read from MH i2c: 01 07 00 D1 62 00 00 00 00 00 FF 0F 48 [14:42:43]process_action close_receipt done [14:42:43]requested_data is exist [14:42:43]produce_requested_data [14:42:43]requested_item fm.sn is exist - process it [14:42:43]wFMCommunicate request_size=4 [14:42:43]MH_SAM_APDU [14:42:43]CAPDU: 80 11 00 00 [14:42:43]Write to MH i2c: E2 08 00 D2 62 80 11 00 00 00 00 00 00 AE [14:42:43]Write i2c OK [14:42:43]MH_I2C_Read... [14:42:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:42:43]Read from MH i2c: E2 [14:42:43]MH_I2C_Read... [14:42:43]Read from MH i2c: E2 17 00 [14:42:43]MH_I2C_Read... [14:42:43]Read from MH i2c: E2 17 00 D2 62 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 FC [14:42:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [14:42:43]wFMCommunicate OK [14:42:43]requested_item fd.num is exist - process it [14:42:43]SAM_PROTO_GetFieldsCounters [14:42:43]wFMCommunicate request_size=4 [14:42:43]MH_SAM_APDU [14:42:43]CAPDU: 80 13 00 00 [14:42:43]Write to MH i2c: E2 08 00 D3 62 80 13 00 00 00 00 00 00 B1 [14:42:43]Write i2c OK [14:42:43]MH_I2C_Read... [14:42:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:42:43]Read from MH i2c: E2 [14:42:43]MH_I2C_Read... [14:42:43]Read from MH i2c: E2 62 00 [14:42:43]MH_I2C_Read... [14:42:43]Read from MH i2c: E2 62 00 D3 62 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 79 DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 E9 00 00 00 5E 04 04 00 E9 00 00 00 57 04 04 00 EA 00 00 00 19 04 04 00 00 00 00 00 90 00 98 [14:42:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 79 DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 E9 00 00 00 5E 04 04 00 E9 00 00 00 57 04 04 00 EA 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:42:43]wFMCommunicate OK [14:42:43]SAM_PROTO_GetFieldsCounters done [14:42:43]requested_item shift.num is exist - process it [14:42:43]requested_item shift.opened is exist - process it [14:42:43]req_shift_opened [14:42:43]FM_GetShiftState [14:42:43]SAM_PROTO_GetShiftState [14:42:43]wFMCommunicate request_size=4 [14:42:43]MH_SAM_APDU [14:42:43]CAPDU: 80 13 01 00 [14:42:43]Write to MH i2c: E2 08 00 D4 62 80 13 01 00 00 00 00 00 B3 [14:42:43]Write i2c OK [14:42:43]MH_I2C_Read... [14:42:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:42:43]Read from MH i2c: E2 [14:42:43]MH_I2C_Read... [14:42:43]Read from MH i2c: E2 0E 00 [14:42:43]MH_I2C_Read... [14:42:43]Read from MH i2c: E2 0E 00 D4 62 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 12 [14:42:43]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [14:42:43]wFMCommunicate OK [14:42:43]SAM_PROTO_GetShiftState done [14:42:43]FM_GetShiftState done [14:42:43]req_shift_opened done [14:42:43]requested_item shift.open_date is exist - process it [14:42:43]req_shift_open_date [14:42:43]req_shift_open_date done [14:42:43]produce_requested_data done [14:42:43]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187769,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [14:42:43]process_action_free close_receipt [14:42:43]json_value_free [14:42:43]json_value_free done [14:42:43]process_json_proto returns [14:42:43]Send response to host [14:42:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187769,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [14:42:43]free response buf [14:42:43]execute_script done [14:42:43]execute_script returns [14:42:43]free content buf [14:42:43]Sock 10.Close socket [14:42:43]Sock 10.Thread stoped [14:42:46]OFD Sender: No OFD packet to send [14:42:52]OFD Sender: No OFD packet to send [14:42:57]OFD Sender: No OFD packet to send [14:43:02]OFD Sender: No OFD packet to send [14:43:07]OFD Sender: No OFD packet to send [14:43:12]OFD Sender: No OFD packet to send [14:43:17]OFD Sender: No OFD packet to send [14:43:22]OFD Sender: No OFD packet to send [14:43:27]OFD Sender: No OFD packet to send [14:43:32]OFD Sender: No OFD packet to send [14:43:37]OFD Sender: No OFD packet to send [14:43:42]OFD Sender: No OFD packet to send [14:43:47]OFD Sender: No OFD packet to send [14:43:52]OFD Sender: No OFD packet to send [14:43:57]OFD Sender: No OFD packet to send [14:44:02]OFD Sender: No OFD packet to send [14:44:07]OFD Sender: No OFD packet to send [14:44:12]OFD Sender: No OFD packet to send [14:44:17]OFD Sender: No OFD packet to send [14:44:22]OFD Sender: No OFD packet to send [14:44:27]OFD Sender: No OFD packet to send [14:44:32]OFD Sender: No OFD packet to send [14:44:37]OFD Sender: No OFD packet to send [14:44:42]OFD Sender: No OFD packet to send [14:44:47]OFD Sender: No OFD packet to send [14:44:52]OFD Sender: No OFD packet to send [14:44:57]OFD Sender: No OFD packet to send [14:45:02]OFD Sender: No OFD packet to send [14:45:07]OFD Sender: No OFD packet to send [14:45:12]OFD Sender: No OFD packet to send [14:45:17]OFD Sender: No OFD packet to send [14:45:22]OFD Sender: No OFD packet to send [14:45:27]OFD Sender: No OFD packet to send [14:45:32]OFD Sender: No OFD packet to send [14:45:37]OFD Sender: No OFD packet to send [14:45:42]OFD Sender: No OFD packet to send [14:45:47]OFD Sender: No OFD packet to send [14:45:52]OFD Sender: No OFD packet to send [14:45:57]OFD Sender: No OFD packet to send [14:46:02]OFD Sender: No OFD packet to send [14:46:07]OFD Sender: No OFD packet to send [14:46:12]OFD Sender: No OFD packet to send [14:46:17]OFD Sender: No OFD packet to send [14:46:22]OFD Sender: No OFD packet to send [14:46:27]OFD Sender: No OFD packet to send [14:46:32]OFD Sender: No OFD packet to send [14:46:37]OFD Sender: No OFD packet to send [14:46:43]OFD Sender: No OFD packet to send [14:46:47]accept exits with 8 [14:46:47]New connection [14:46:47]New thread 3067157860 created [14:46:47]Thread 3067014500 joined [14:46:47]Waiting for new connection... [14:46:47] Sock 8.Parse request [14:46:47]Sock 8.Check first char [14:46:47]Sock 8.First char is OK [14:46:47]request: POST /json_proto HTTP/1.0 [14:46:47]Method: POST [14:46:47]URL: /json_proto [14:46:47]Method is POST - this is cgi request [14:46:47]url: /json_proto [14:46:47]query_string will be loaded in cgi processing [14:46:47]execute_cgi json_proto POST (null) [14:46:47]execute_cgi path=json_proto method=POST [14:46:47]POST find Content-Length [14:46:47]Host: 172.17.42.131:8080 [14:46:47]Content-Length: 677 [14:46:47]Content-Type: application/json [14:46:47] [14:46:47]POST finish read [14:46:47]Found Content-Length = 677 [14:46:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209822", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "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" ] } } [14:46:47]execute_script... [14:46: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)209822", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "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" ] } } [14:46:47]POST & json_proto [14:46:47]process_json_proto [14:46:47]json parsed OK: [14:46:47]protocol is kg_v1.0 [14:46:47]action value=close_receipt [14:46:47]process_action close_receipt [14:46:47]cmd_close_receipt [14:46:47]MH_GetDate [14:46:47]Write to MH i2c: F0 00 00 D5 62 26 [14:46:47]Write i2c OK [14:46:47]MH_I2C_Read... [14:46:47]Read from MH i2c: F0 [14:46:47]MH_I2C_Read... [14:46:47]Read from MH i2c: F0 09 00 [14:46:47]MH_I2C_Read... [14:46:47]Read from MH i2c: F0 09 00 D5 62 00 5B 69 16 67 A0 18 CA 66 58 [14:46:47]GetLastDocTimeStamp 1729521763 [14:46:47]current date 1729522011 [14:46:47]FM_GetShiftState [14:46:47]SAM_PROTO_GetShiftState [14:46:47]wFMCommunicate request_size=4 [14:46:47]MH_SAM_APDU [14:46:47]CAPDU: 80 13 01 00 [14:46:47]Write to MH i2c: E2 08 00 D6 62 80 13 01 00 00 00 00 00 B5 [14:46:47]Write i2c OK [14:46:47]MH_I2C_Read... [14:46:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:46:47]Read from MH i2c: E2 [14:46:47]MH_I2C_Read... [14:46:47]Read from MH i2c: E2 0E 00 [14:46:47]MH_I2C_Read... [14:46:47]Read from MH i2c: E2 0E 00 D6 62 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 14 [14:46:47]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [14:46:47]wFMCommunicate OK [14:46:47]SAM_PROTO_GetShiftState done [14:46:47]FM_GetShiftState done [14:46:47]opened in 1729469754 [14:46:47]opened+sec_in_day 1729556154 [14:46:47]quantity*price = 60009 [14:46:47]sum+1 = 60010 [14:46:47]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 234 21.10.2024 14:46 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 187770 ФПД: 101566714351535 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T144651&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187770&fm=101566714351535&tin=02508201610067®Number=0000000000100030&sum=60000 [14:46:48]StoreToDocumentArchive [14:46:48]shift 460 fd 187770 [14:46:48]save to /storage/0460/doc_00187770 [14:46:48]save last doc name /storage/0460/doc_00187770 to /storage/kkm_last_doc_name [14:46:48]save OK [14:46:48]Clear old archive folders... [14:46:48]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:46:48]tlvbuf is 01272D00 [14:46:48]SAM_PROTO_ClearQueue [14:46:48]wFMCommunicate request_size=4 [14:46:48]MH_SAM_APDU [14:46:48]CAPDU: 80 09 00 00 [14:46:48]Write to MH i2c: E2 08 00 E3 62 80 09 00 00 00 00 00 00 B7 [14:46:48]Write i2c OK [14:46:48]MH_I2C_Read... [14:46:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:46:48]Read from MH i2c: E2 [14:46:48]MH_I2C_Read... [14:46:48]Read from MH i2c: E2 03 00 [14:46:48]MH_I2C_Read... [14:46:48]Read from MH i2c: E2 03 00 E3 62 00 90 00 B9 [14:46:48]RAPDU: 90 00 [14:46:48]wFMCommunicate OK [14:46:48]SAM_PROTO_ClearQueue done [14:46:48]KKMCreateOFDPacket [14:46:48]OFDProtocolAddRootSTLVToBuf [14:46:48]FM_MakeSignedData [14:46:48]FM_MakeSignedData [14:46:48]SAM_PROTO_SignData [14:46:48]wFMCommunicate request_size=4 [14:46:48]MH_SAM_APDU [14:46:48]CAPDU: 80 0D 01 02 [14:46:48]Write to MH i2c: E2 08 00 E4 62 80 0D 01 02 00 00 00 00 BF [14:46:48]Write i2c OK [14:46:48]MH_I2C_Read... [14:46:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:46:48]Read from MH i2c: E2 [14:46:48]MH_I2C_Read... [14:46:48]Read from MH i2c: E2 03 00 [14:46:48]MH_I2C_Read... [14:46:48]Read from MH i2c: E2 03 00 E4 62 00 90 00 BA [14:46:48]RAPDU: 90 00 [14:46:48]wFMCommunicate OK [14:46:48]wFMCommunicate request_size=255 [14:46:48]MH_SAM_APDU [14:46: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 33 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 EA 00 00 00 F4 03 04 00 5B 69 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 7A DD 02 00 35 04 06 00 5C [14:46:48]Write to MH i2c: E2 02 01 E5 62 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 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 EA 00 00 00 F4 03 04 00 5B 69 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 7A DD 02 00 35 04 06 00 5C 00 00 BC [14:46:48]Write i2c OK [14:46:48]MH_I2C_Read... [14:46:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:46:48]Read from MH i2c: E2 [14:46:48]MH_I2C_Read... [14:46:48]Read from MH i2c: E2 03 00 [14:46:48]MH_I2C_Read... [14:46:48]Read from MH i2c: E2 03 00 E5 62 00 90 00 BB [14:46:48]RAPDU: 90 00 [14:46:48]wFMCommunicate OK [14:46:48]wFMCommunicate request_size=10 [14:46:48]MH_SAM_APDU [14:46:48]CAPDU: 80 0D 02 02 05 5F D7 EE 0F AF [14:46:48]Write to MH i2c: E2 0D 00 E6 62 80 0D 02 02 05 00 5F D7 EE 0F AF 00 00 AE [14:46:48]Write i2c OK [14:46:48]MH_I2C_Read... [14:46:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:46:48]Read from MH i2c: E2 [14:46:48]MH_I2C_Read... [14:46:48]Read from MH i2c: E2 03 00 [14:46:48]MH_I2C_Read... [14:46:48]Read from MH i2c: E2 03 00 E6 62 00 90 00 BC [14:46:48]RAPDU: 90 00 [14:46:48]wFMCommunicate OK [14:46:48]wFMCommunicate request_size=4 [14:46:48]MH_SAM_APDU [14:46:48]CAPDU: 80 0D 03 02 [14:46:48]Write to MH i2c: E2 08 00 E7 62 80 0D 03 02 00 00 00 00 C4 [14:46:48]Write i2c OK [14:46:48]MH_I2C_Read... [14:46:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:46:48]Read from MH i2c: E2 [14:46:48]MH_I2C_Read... [14:46:48]Read from MH i2c: E2 0B 00 [14:46:48]MH_I2C_Read... [14:46:48]Read from MH i2c: E2 0B 00 E7 62 00 87 41 91 19 DB 5B 1C 18 90 00 A1 [14:46:48]RAPDU: 87 41 91 19 DB 5B 1C 18 90 00 [14:46:48]wFMCommunicate OK [14:46:48]SAM_PROTO_SignData done [14:46:48]FM_MakeSignedData done [14:46:48]CreateOFDProtocolMessage [14:46:48]wFMCommunicate request_size=4 [14:46:48]MH_SAM_APDU [14:46:48]CAPDU: 80 11 00 00 [14:46:48]Write to MH i2c: E2 08 00 E8 62 80 11 00 00 00 00 00 00 C4 [14:46:48]Write i2c OK [14:46:48]MH_I2C_Read... [14:46:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:46:48]Read from MH i2c: E2 [14:46:48]MH_I2C_Read... [14:46:48]Read from MH i2c: E2 17 00 [14:46:48]MH_I2C_Read... [14:46:48]Read from MH i2c: E2 17 00 E8 62 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 12 [14:46:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [14:46:48]wFMCommunicate OK [14:46:48]CreateOFDProtocolMessage done [14:46:48]OFDSenderStorePacket 187770 [14:46:48]StoreOFDPacket docnum=187770 [14:46:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 F7 FC 07 01 1A EE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 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 EA 00 00 00 F4 03 04 00 5B 69 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 7A DD 02 00 35 04 06 00 5C 5F D7 EE 0F AF 87 41 91 19 DB 5B 1C 18 [14:46:48]CheckFolder [14:46:48]dirname=/storage/ofd_packets [14:46:48]CheckFolder done [14:46:48]ProducePacketName [14:46:48]name=ofd_packets/00187770 [14:46:48]NVStorageSaveData ofd_packets/00187770 [14:46:48]File name is /storage/ofd_packets/00187770 [14:46:48]Write 301 bytes [14:46:48]NVStorageSaveData done [14:46:48]OFDSenderStorePacket done [14:46:48]KKMCreateOFDPacket done [14:46:48]NVStorageSaveData kkm_last_timestamp [14:46:48]File name is /storage/kkm_last_timestamp [14:46:48]Write 4 bytes [14:46:48]NVStorageSaveData done [14:46:48]ExternCall_PrintAddStr [14:46:48]wPrintStart [14:46:48]Write to MH i2c: 01 00 00 E9 62 4B [14:46:48]Write i2c OK [14:46:48]MH_I2C_Read... [14:46:48]Read from MH i2c: 01 [14:46:48]MH_I2C_Read... [14:46:48]Read from MH i2c: 01 07 00 [14:46:48]MH_I2C_Read... [14:46:48]Read from MH i2c: 01 07 00 E9 62 00 00 00 00 00 FF 0F 60 [14:46:48]RasterBufferAndPrint [14:46:48]line Счет N : (1)209822 [14:46:48]line ИНН: 02508201610067 [14:46:48]line Контрольно-Кассовый Чек [14:46:48]line ПРОДАЖА [14:46:48]line ТРК (МРК, ГНК) : 32 [14:46:48]line Товар: 2710124130 [14:46:48]line Аи-92-К-3 [14:46:48]line 8.970 * 66.90 [14:46:48]line = 600.09 [14:46:48]line НДС 12% НСП 1% [14:46:48]line > о реализуемом товаре [14:46:48]line ОКРУГЛЕНИЕ: -0.09 [14:46:48]line ИТОГО: 600.00 [14:46:48]line Внесено: 600.00 [14:46:48]line СДАЧА: 0.00 [14:46:48]line НСП 1% : 5.31 [14:46:48]line НДС 12% : 63.73 [14:46:48]line Наличными: 600.00 [14:46:48]line Безнал.: 0.00 [14:46:48]line Место: АЗС № 86 "Партнер Нефть" [14:46:48]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [14:46:48]line СНО: Общий режим [14:46:48]line Чек 234 21.10.2024 14:46 [14:46:48]line Смена: 460 ФФД: 1.0 [14:46:48]line ЗНМ: 0300000155 [14:46:48]line РНМ: 0000000000100030 [14:46:48]line Версия ККМ: 001 [14:46:48]line ФМ: 0000000000965340 [14:46:48]line ФД: 187770 [14:46:48]line ФПД: 101566714351535 [14:46:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T144651&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187770&fm=101566714351535&tin=02508201610067®Number=0000000000100030&sum=60000 [14:46:49]OFD Sender: Processing packet 187770 [packets to send 1062, broken 1061] [14:46:49]ProducePacketName [14:46:49]name=ofd_packets/00187770 [14:46:49]OFD Sender: To server: pG, [14:46:49]CommunicateWithHost lk.salyk.kg:30040 [14:46:49]ConnectInit lk.salyk.kg [14:46:49]written 0, free lines is 4095 [14:46:49]Connected sock=10 [14:46:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 F7 FC 07 01 1A EE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 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 EA 00 00 00 F4 03 04 00 5B 69 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 7A DD 02 00 35 04 06 00 5C 5F D7 EE 0F AF 87 41 91 19 DB 5B 1C 18 [14:46:49]Write to MH i2c: 01 00 00 14 63 77 [14:46:49]Write i2c OK [14:46:49]MH_I2C_Read... [14:46:49]Read from MH i2c: 01 [14:46:49]MH_I2C_Read... [14:46:49]Read from MH i2c: 01 07 00 [14:46:49]MH_I2C_Read... [14:46:49]Read from MH i2c: 01 07 00 14 63 00 00 00 00 00 61 0C EB [14:46:49]RasterBufferAndPrint [14:46:49]line [14:46:49]line [14:46:49]line [14:46:49]line [14:46:49]line [14:46:49]written 0, free lines is 3173 [14:46:49]MH_Cut [14:46:49]Write to MH i2c: D1 01 00 1B 63 01 50 [14:46:49]Write i2c OK [14:46:49]MH_I2C_Read... [14:46:49]Read from MH i2c: D1 [14:46:49]MH_I2C_Read... [14:46:49]Read from MH i2c: D1 01 00 [14:46:49]MH_I2C_Read... [14:46:49]Read from MH i2c: D1 01 00 1B 63 00 4F [14:46:49]Write to MH i2c: 01 00 00 1C 63 7F [14:46:49]Write i2c OK [14:46:49]MH_I2C_Read... [14:46:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 BA F3 47 00 ED D0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 7A DD 02 00 F4 03 04 00 4B 13 16 67 B6 04 01 00 00 C6 19 10 A5 60 56 00 A2 [14:46:49]CommunicateWithHost err = 0 [14:46:49]CheckOFDResponse [14:46:49]1017 (14) - 77093643461234 [14:46:49]1041 (16) - 0000000000965340 [14:46:49]1040 (4) - 187770 [14:46:49]1012 (4) - 21.10.2024 08:39 [14:46:49]1206 (1) - 0 [14:46:49]OFD Sender: Remove packet 187770 [14:46:49]ProducePacketName [14:46:49]name=ofd_packets/00187770 [14:46:49]NVStorageDeleteData [14:46:50]OFD Sender: No OFD packet to send [14:46:50]*** Cut start [14:46:50]*** Partial cut [14:46:50]*** CUTSNS_PIN = 1 [14:46:50]*** CUTSNS_PIN = 0 [14:46:50]*** Brake cut motor [14:46:51]Read from MH i2c: 01 [14:46:51]MH_I2C_Read... [14:46:51]*** Stop cut motor [14:46:51]*** Cut end [14:46:51]Read from MH i2c: 01 07 00 [14:46:51]MH_I2C_Read... [14:46:51]Read from MH i2c: 01 07 00 1C 63 00 00 00 00 00 FF 0F 94 [14:46:51]process_action close_receipt done [14:46:51]requested_data is exist [14:46:51]produce_requested_data [14:46:51]requested_item fm.sn is exist - process it [14:46:51]wFMCommunicate request_size=4 [14:46:51]MH_SAM_APDU [14:46:51]CAPDU: 80 11 00 00 [14:46:51]Write to MH i2c: E2 08 00 1D 63 80 11 00 00 00 00 00 00 FA [14:46:51]Write i2c OK [14:46:51]MH_I2C_Read... [14:46:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:46:51]Read from MH i2c: E2 [14:46:51]MH_I2C_Read... [14:46:51]Read from MH i2c: E2 17 00 [14:46:51]MH_I2C_Read... [14:46:51]Read from MH i2c: E2 17 00 1D 63 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 48 [14:46:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [14:46:51]wFMCommunicate OK [14:46:51]requested_item fd.num is exist - process it [14:46:51]SAM_PROTO_GetFieldsCounters [14:46:51]wFMCommunicate request_size=4 [14:46:51]MH_SAM_APDU [14:46:51]CAPDU: 80 13 00 00 [14:46:51]Write to MH i2c: E2 08 00 1E 63 80 13 00 00 00 00 00 00 FD [14:46:51]Write i2c OK [14:46:51]MH_I2C_Read... [14:46:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:46:51]Read from MH i2c: E2 [14:46:51]MH_I2C_Read... [14:46:51]Read from MH i2c: E2 62 00 [14:46:51]MH_I2C_Read... [14:46:51]Read from MH i2c: E2 62 00 1E 63 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 7A DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 EA 00 00 00 5E 04 04 00 EA 00 00 00 57 04 04 00 EB 00 00 00 19 04 04 00 00 00 00 00 90 00 E8 [14:46:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 7A DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 EA 00 00 00 5E 04 04 00 EA 00 00 00 57 04 04 00 EB 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:46:51]wFMCommunicate OK [14:46:51]SAM_PROTO_GetFieldsCounters done [14:46:51]requested_item shift.num is exist - process it [14:46:51]requested_item shift.opened is exist - process it [14:46:51]req_shift_opened [14:46:51]FM_GetShiftState [14:46:51]SAM_PROTO_GetShiftState [14:46:51]wFMCommunicate request_size=4 [14:46:51]MH_SAM_APDU [14:46:51]CAPDU: 80 13 01 00 [14:46:51]Write to MH i2c: E2 08 00 1F 63 80 13 01 00 00 00 00 00 FF [14:46:51]Write i2c OK [14:46:51]MH_I2C_Read... [14:46:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:46:51]Read from MH i2c: E2 [14:46:51]MH_I2C_Read... [14:46:51]Read from MH i2c: E2 0E 00 [14:46:51]MH_I2C_Read... [14:46:51]Read from MH i2c: E2 0E 00 1F 63 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 5E [14:46:51]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [14:46:51]wFMCommunicate OK [14:46:51]SAM_PROTO_GetShiftState done [14:46:51]FM_GetShiftState done [14:46:51]req_shift_opened done [14:46:51]requested_item shift.open_date is exist - process it [14:46:51]req_shift_open_date [14:46:51]req_shift_open_date done [14:46:51]produce_requested_data done [14:46:51]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187770,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [14:46:51]process_action_free close_receipt [14:46:51]json_value_free [14:46:51]json_value_free done [14:46:51]process_json_proto returns [14:46:51]Send response to host [14:46:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187770,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [14:46:51]free response buf [14:46:51]execute_script done [14:46:51]execute_script returns [14:46:51]free content buf [14:46:51]Sock 8.Close socket [14:46:51]Sock 8.Thread stoped [14:46:55]OFD Sender: No OFD packet to send [14:47:00]OFD Sender: No OFD packet to send [14:47:05]OFD Sender: No OFD packet to send [14:47:10]OFD Sender: No OFD packet to send [14:47:15]OFD Sender: No OFD packet to send [14:47:20]OFD Sender: No OFD packet to send [14:47:25]OFD Sender: No OFD packet to send [14:47:30]OFD Sender: No OFD packet to send [14:47:35]OFD Sender: No OFD packet to send [14:47:40]OFD Sender: No OFD packet to send [14:47:45]OFD Sender: No OFD packet to send [14:47:50]OFD Sender: No OFD packet to send [14:47:55]OFD Sender: No OFD packet to send [14:48:00]OFD Sender: No OFD packet to send [14:48:05]OFD Sender: No OFD packet to send [14:48:10]OFD Sender: No OFD packet to send [14:48:15]OFD Sender: No OFD packet to send [14:48:20]OFD Sender: No OFD packet to send [14:48:25]OFD Sender: No OFD packet to send [14:48:30]OFD Sender: No OFD packet to send [14:48:35]OFD Sender: No OFD packet to send [14:48:40]OFD Sender: No OFD packet to send [14:48:45]OFD Sender: No OFD packet to send [14:48:50]OFD Sender: No OFD packet to send [14:48:55]OFD Sender: No OFD packet to send [14:49:00]OFD Sender: No OFD packet to send [14:49:05]OFD Sender: No OFD packet to send [14:49:10]OFD Sender: No OFD packet to send [14:49:15]OFD Sender: No OFD packet to send [14:49:20]OFD Sender: No OFD packet to send [14:49:25]OFD Sender: No OFD packet to send [14:49:30]OFD Sender: No OFD packet to send [14:49:35]OFD Sender: No OFD packet to send [14:49:40]OFD Sender: No OFD packet to send [14:49:42]accept exits with 9 [14:49:42]New connection [14:49:42]New thread 3067014500 created [14:49:42]Thread 3067157860 joined [14:49:42]Waiting for new connection... [14:49:42] Sock 9.Parse request [14:49:42]Sock 9.Check first char [14:49:42]Sock 9.First char is OK [14:49:42]request: POST /json_proto HTTP/1.0 [14:49:42]Method: POST [14:49:42]URL: /json_proto [14:49:42]Method is POST - this is cgi request [14:49:42]url: /json_proto [14:49:42]query_string will be loaded in cgi processing [14:49:42]execute_cgi json_proto POST (null) [14:49:42]execute_cgi path=json_proto method=POST [14:49:42]POST find Content-Length [14:49:42]Host: 172.17.42.131:8080 [14:49:42]Content-Length: 775 [14:49:42]Content-Type: application/json [14:49:42] [14:49:42]POST finish read [14:49:42]Found Content-Length = 775 [14:49:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209823", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 12.960, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.51 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:49:42]execute_script... [14:49: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)209823", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 12.960, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.51 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:49:42]POST & json_proto [14:49:42]process_json_proto [14:49:42]json parsed OK: [14:49:42]protocol is kg_v1.0 [14:49:42]action value=close_receipt [14:49:42]process_action close_receipt [14:49:42]cmd_close_receipt [14:49:42]MH_GetDate [14:49:42]Write to MH i2c: F0 00 00 20 63 72 [14:49:42]Write i2c OK [14:49:42]MH_I2C_Read... [14:49:42]Read from MH i2c: F0 [14:49:42]MH_I2C_Read... [14:49:42]Read from MH i2c: F0 09 00 [14:49:42]MH_I2C_Read... [14:49:42]Read from MH i2c: F0 09 00 20 63 00 0A 6A 16 67 A0 18 CA 66 54 [14:49:42]GetLastDocTimeStamp 1729522011 [14:49:42]current date 1729522186 [14:49:42]FM_GetShiftState [14:49:42]SAM_PROTO_GetShiftState [14:49:42]wFMCommunicate request_size=4 [14:49:42]MH_SAM_APDU [14:49:42]CAPDU: 80 13 01 00 [14:49:42]Write to MH i2c: E2 08 00 21 63 80 13 01 00 00 00 00 00 01 [14:49:42]Write i2c OK [14:49:42]MH_I2C_Read... [14:49:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:49:42]Read from MH i2c: E2 [14:49:42]MH_I2C_Read... [14:49:42]Read from MH i2c: E2 0E 00 [14:49:42]MH_I2C_Read... [14:49:42]Read from MH i2c: E2 0E 00 21 63 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 60 [14:49:42]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [14:49:42]wFMCommunicate OK [14:49:42]SAM_PROTO_GetShiftState done [14:49:42]FM_GetShiftState done [14:49:42]opened in 1729469754 [14:49:42]opened+sec_in_day 1729556154 [14:49:42]quantity*price = 100051 [14:49:42]sum+1 = 100052 [14:49:42]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.51 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 0.00 Безнал.: 1000.51 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 235 21.10.2024 14:49 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000965340 ФД: 187771 ФПД: 265662740276565 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T144946&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187771&fm=265662740276565&tin=02508201610067®Number=0000000000100030&sum=100051 [14:49:43]StoreToDocumentArchive [14:49:43]shift 460 fd 187771 [14:49:43]save to /storage/0460/doc_00187771 [14:49:43]save last doc name /storage/0460/doc_00187771 to /storage/kkm_last_doc_name [14:49:43]save OK [14:49:43]Clear old archive folders... [14:49:43]ProcessDocumentItem done err = 0, tmpTLVsize=257 [14:49:43]tlvbuf is 01256650 [14:49:43]SAM_PROTO_ClearQueue [14:49:43]wFMCommunicate request_size=4 [14:49:43]MH_SAM_APDU [14:49:43]CAPDU: 80 09 00 00 [14:49:43]Write to MH i2c: E2 08 00 2E 63 80 09 00 00 00 00 00 00 03 [14:49:43]Write i2c OK [14:49:43]MH_I2C_Read... [14:49:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:49:43]Read from MH i2c: E2 [14:49:43]MH_I2C_Read... [14:49:43]Read from MH i2c: E2 03 00 [14:49:43]MH_I2C_Read... [14:49:43]Read from MH i2c: E2 03 00 2E 63 00 90 00 05 [14:49:43]RAPDU: 90 00 [14:49:43]wFMCommunicate OK [14:49:43]SAM_PROTO_ClearQueue done [14:49:43]KKMCreateOFDPacket [14:49:43]OFDProtocolAddRootSTLVToBuf [14:49:43]FM_MakeSignedData [14:49:43]FM_MakeSignedData [14:49:43]SAM_PROTO_SignData [14:49:43]wFMCommunicate request_size=4 [14:49:43]MH_SAM_APDU [14:49:43]CAPDU: 80 0D 01 02 [14:49:43]Write to MH i2c: E2 08 00 2F 63 80 0D 01 02 00 00 00 00 0B [14:49:43]Write i2c OK [14:49:43]MH_I2C_Read... [14:49:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:49:43]Read from MH i2c: E2 [14:49:43]MH_I2C_Read... [14:49:43]Read from MH i2c: E2 03 00 [14:49:43]MH_I2C_Read... [14:49:43]Read from MH i2c: E2 03 00 2F 63 00 90 00 06 [14:49:43]RAPDU: 90 00 [14:49:43]wFMCommunicate OK [14:49:43]wFMCommunicate request_size=255 [14:49:43]MH_SAM_APDU [14:49:43]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 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 EB 00 00 00 F4 03 04 00 0A 6A 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 7B DD 02 [14:49:43]Write to MH i2c: E2 02 01 30 63 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 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 EB 00 00 00 F4 03 04 00 0A 6A 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 7B DD 02 00 00 D1 [14:49:43]Write i2c OK [14:49:43]MH_I2C_Read... [14:49:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:49:43]Read from MH i2c: E2 [14:49:43]MH_I2C_Read... [14:49:43]Read from MH i2c: E2 03 00 [14:49:43]MH_I2C_Read... [14:49:43]Read from MH i2c: E2 03 00 30 63 00 90 00 07 [14:49:43]RAPDU: 90 00 [14:49:43]wFMCommunicate OK [14:49:43]wFMCommunicate request_size=16 [14:49:43]MH_SAM_APDU [14:49:43]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 F1 9E 6D 43 A5 55 [14:49:43]Write to MH i2c: E2 13 00 31 63 80 0D 02 02 0B 00 00 35 04 06 00 F1 9E 6D 43 A5 55 00 00 9C [14:49:43]Write i2c OK [14:49:43]MH_I2C_Read... [14:49:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:49:43]Read from MH i2c: E2 [14:49:43]MH_I2C_Read... [14:49:43]Read from MH i2c: E2 03 00 [14:49:43]MH_I2C_Read... [14:49:43]Read from MH i2c: E2 03 00 31 63 00 90 00 08 [14:49:43]RAPDU: 90 00 [14:49:43]wFMCommunicate OK [14:49:43]wFMCommunicate request_size=4 [14:49:43]MH_SAM_APDU [14:49:43]CAPDU: 80 0D 03 02 [14:49:43]Write to MH i2c: E2 08 00 32 63 80 0D 03 02 00 00 00 00 10 [14:49:43]Write i2c OK [14:49:43]MH_I2C_Read... [14:49:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:49:44]Read from MH i2c: E2 [14:49:44]MH_I2C_Read... [14:49:44]Read from MH i2c: E2 0B 00 [14:49:44]MH_I2C_Read... [14:49:44]Read from MH i2c: E2 0B 00 32 63 00 9F E4 C0 FC CF C5 B5 F3 90 00 8C [14:49:44]RAPDU: 9F E4 C0 FC CF C5 B5 F3 90 00 [14:49:44]wFMCommunicate OK [14:49:44]SAM_PROTO_SignData done [14:49:44]FM_MakeSignedData done [14:49:44]CreateOFDProtocolMessage [14:49:44]wFMCommunicate request_size=4 [14:49:44]MH_SAM_APDU [14:49:44]CAPDU: 80 11 00 00 [14:49:44]Write to MH i2c: E2 08 00 33 63 80 11 00 00 00 00 00 00 10 [14:49:44]Write i2c OK [14:49:44]MH_I2C_Read... [14:49:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:49:44]Read from MH i2c: E2 [14:49:44]MH_I2C_Read... [14:49:44]Read from MH i2c: E2 17 00 [14:49:44]MH_I2C_Read... [14:49:44]Read from MH i2c: E2 17 00 33 63 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 5E [14:49:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [14:49:44]wFMCommunicate OK [14:49:44]CreateOFDProtocolMessage done [14:49:44]OFDSenderStorePacket 187771 [14:49:44]StoreOFDPacket docnum=187771 [14:49:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 52 3D 0D 01 0E 55 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 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 EB 00 00 00 F4 03 04 00 0A 6A 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 7B DD 02 00 35 04 06 00 F1 9E 6D 43 A5 55 9F E4 C0 FC CF C5 B5 F3 [14:49:44]CheckFolder [14:49:44]dirname=/storage/ofd_packets [14:49:44]CheckFolder done [14:49:44]ProducePacketName [14:49:44]name=ofd_packets/00187771 [14:49:44]NVStorageSaveData ofd_packets/00187771 [14:49:44]File name is /storage/ofd_packets/00187771 [14:49:44]Write 307 bytes [14:49:44]NVStorageSaveData done [14:49:44]OFDSenderStorePacket done [14:49:44]KKMCreateOFDPacket done [14:49:44]NVStorageSaveData kkm_last_timestamp [14:49:44]File name is /storage/kkm_last_timestamp [14:49:44]Write 4 bytes [14:49:44]NVStorageSaveData done [14:49:44]ExternCall_PrintAddStr [14:49:44]wPrintStart [14:49:44]Write to MH i2c: 01 00 00 34 63 97 [14:49:44]Write i2c OK [14:49:44]MH_I2C_Read... [14:49:44]Read from MH i2c: 01 [14:49:44]MH_I2C_Read... [14:49:44]Read from MH i2c: 01 07 00 [14:49:44]MH_I2C_Read... [14:49:44]Read from MH i2c: 01 07 00 34 63 00 00 00 00 00 FF 0F AC [14:49:44]RasterBufferAndPrint [14:49:44]line Счет N : (1)209823 [14:49:44]line ИНН: 02508201610067 [14:49:44]line Контрольно-Кассовый Чек [14:49:44]line ПРОДАЖА [14:49:44]line ТРК (МРК, ГНК) : 11 [14:49:44]line Товар: 2710194210 [14:49:44]line D-ENERGY ДТ-К-5 [14:49:44]line 12.960 * 77.20 [14:49:44]line = 1000.51 [14:49:44]line НДС 12% НСП 1% [14:49:44]line > о реализуемом товаре [14:49:44]line ИТОГО: 1000.51 [14:49:44]line НСП 1% : 8.85 [14:49:44]line НДС 12% : 106.25 [14:49:44]line Наличными: 0.00 [14:49:44]line Безнал.: 1000.51 [14:49:44]line Место: АЗС № 86 "Партнер Нефть" [14:49:44]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [14:49:44]line СНО: Общий режим [14:49:44]line Чек 235 21.10.2024 14:49 [14:49:44]line Смена: 460 ФФД: 1.0 [14:49:44]line ЗНМ: 0300000155 [14:49:44]line РНМ: 0000000000100030 [14:49:44]line Версия ККМ: 001 [14:49:44]line Платежная система: Mbank [14:49:44]line ФМ: 0000000000965340 [14:49:44]line ФД: 187771 [14:49:44]line ФПД: 265662740276565 [14:49:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T144946&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187771&fm=265662740276565&tin=02508201610067®Number=0000000000100030&sum=100051 [14:49:44]written 0, free lines is 4095 [14:49:44]OFD Sender: Processing packet 187771 [packets to send 1062, broken 1061] [14:49:44]ProducePacketName [14:49:44]name=ofd_packets/00187771 [14:49:44]OFD Sender: To server: pG, [14:49:44]CommunicateWithHost lk.salyk.kg:30040 [14:49:44]ConnectInit lk.salyk.kg [14:49:44]Connected sock=10 [14:49:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 52 3D 0D 01 0E 55 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 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 EB 00 00 00 F4 03 04 00 0A 6A 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 7B DD 02 00 35 04 06 00 F1 9E 6D 43 A5 55 9F E4 C0 FC CF C5 B5 F3 [14:49:44]Write to MH i2c: 01 00 00 5D 63 C0 [14:49:44]Write i2c OK [14:49:44]MH_I2C_Read... [14:49:44]Read from MH i2c: 01 [14:49:44]MH_I2C_Read... [14:49:44]Read from MH i2c: 01 07 00 [14:49:44]MH_I2C_Read... [14:49:44]Read from MH i2c: 01 07 00 5D 63 00 00 00 00 00 8C 0C 5F [14:49:44]RasterBufferAndPrint [14:49:44]line [14:49:44]line [14:49:44]line [14:49:44]line [14:49:44]line [14:49:44]written 0, free lines is 3217 [14:49:44]MH_Cut [14:49:44]Write to MH i2c: D1 01 00 64 63 01 99 [14:49:44]Write i2c OK [14:49:44]MH_I2C_Read... [14:49:44]Read from MH i2c: D1 [14:49:44]MH_I2C_Read... [14:49:44]Read from MH i2c: D1 01 00 [14:49:44]MH_I2C_Read... [14:49:44]Read from MH i2c: D1 01 00 64 63 00 98 [14:49:44]Write to MH i2c: 01 00 00 65 63 C8 [14:49:44]Write i2c OK [14:49:44]MH_I2C_Read... [14:49:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 52 8E 47 00 F0 57 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 7B DD 02 00 F4 03 04 00 FA 13 16 67 B6 04 01 00 00 0D 92 FB 1B 17 24 0B CA [14:49:44]CommunicateWithHost err = 0 [14:49:44]CheckOFDResponse [14:49:44]1017 (14) - 77093643461234 [14:49:44]1041 (16) - 0000000000965340 [14:49:44]1040 (4) - 187771 [14:49:44]1012 (4) - 21.10.2024 08:42 [14:49:44]1206 (1) - 0 [14:49:44]OFD Sender: Remove packet 187771 [14:49:44]ProducePacketName [14:49:44]name=ofd_packets/00187771 [14:49:44]NVStorageDeleteData [14:49:45]OFD Sender: No OFD packet to send [14:49:45]*** Cut start [14:49:45]*** Partial cut [14:49:45]*** CUTSNS_PIN = 1 [14:49:45]*** CUTSNS_PIN = 0 [14:49:46]*** Brake cut motor [14:49:46]Read from MH i2c: 01 [14:49:46]MH_I2C_Read... [14:49:46]*** Stop cut motor [14:49:46]*** Cut end [14:49:46]Read from MH i2c: 01 07 00 [14:49:46]MH_I2C_Read... [14:49:46]Read from MH i2c: 01 07 00 65 63 00 00 00 00 00 FF 0F DD [14:49:46]process_action close_receipt done [14:49:46]requested_data is exist [14:49:46]produce_requested_data [14:49:46]requested_item fm.sn is exist - process it [14:49:46]wFMCommunicate request_size=4 [14:49:46]MH_SAM_APDU [14:49:46]CAPDU: 80 11 00 00 [14:49:46]Write to MH i2c: E2 08 00 66 63 80 11 00 00 00 00 00 00 43 [14:49:46]Write i2c OK [14:49:46]MH_I2C_Read... [14:49:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:49:46]Read from MH i2c: E2 [14:49:46]MH_I2C_Read... [14:49:46]Read from MH i2c: E2 17 00 [14:49:46]MH_I2C_Read... [14:49:46]Read from MH i2c: E2 17 00 66 63 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 91 [14:49:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [14:49:46]wFMCommunicate OK [14:49:46]requested_item fd.num is exist - process it [14:49:46]SAM_PROTO_GetFieldsCounters [14:49:46]wFMCommunicate request_size=4 [14:49:46]MH_SAM_APDU [14:49:46]CAPDU: 80 13 00 00 [14:49:46]Write to MH i2c: E2 08 00 67 63 80 13 00 00 00 00 00 00 46 [14:49:46]Write i2c OK [14:49:46]MH_I2C_Read... [14:49:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:49:46]Read from MH i2c: E2 [14:49:46]MH_I2C_Read... [14:49:46]Read from MH i2c: E2 62 00 [14:49:46]MH_I2C_Read... [14:49:46]Read from MH i2c: E2 62 00 67 63 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 7B DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 EB 00 00 00 5E 04 04 00 EB 00 00 00 57 04 04 00 EC 00 00 00 19 04 04 00 00 00 00 00 90 00 35 [14:49:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 7B DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 EB 00 00 00 5E 04 04 00 EB 00 00 00 57 04 04 00 EC 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:49:46]wFMCommunicate OK [14:49:46]SAM_PROTO_GetFieldsCounters done [14:49:46]requested_item shift.num is exist - process it [14:49:46]requested_item shift.opened is exist - process it [14:49:46]req_shift_opened [14:49:46]FM_GetShiftState [14:49:46]SAM_PROTO_GetShiftState [14:49:46]wFMCommunicate request_size=4 [14:49:46]MH_SAM_APDU [14:49:46]CAPDU: 80 13 01 00 [14:49:46]Write to MH i2c: E2 08 00 68 63 80 13 01 00 00 00 00 00 48 [14:49:46]Write i2c OK [14:49:46]MH_I2C_Read... [14:49:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:49:46]Read from MH i2c: E2 [14:49:46]MH_I2C_Read... [14:49:46]Read from MH i2c: E2 0E 00 [14:49:46]MH_I2C_Read... [14:49:46]Read from MH i2c: E2 0E 00 68 63 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 A7 [14:49:46]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [14:49:46]wFMCommunicate OK [14:49:46]SAM_PROTO_GetShiftState done [14:49:46]FM_GetShiftState done [14:49:46]req_shift_opened done [14:49:46]requested_item shift.open_date is exist - process it [14:49:46]req_shift_open_date [14:49:46]req_shift_open_date done [14:49:46]produce_requested_data done [14:49:46]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187771,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [14:49:46]process_action_free close_receipt [14:49:46]json_value_free [14:49:46]json_value_free done [14:49:46]process_json_proto returns [14:49:46]Send response to host [14:49:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187771,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [14:49:46]free response buf [14:49:46]execute_script done [14:49:46]execute_script returns [14:49:46]free content buf [14:49:46]Sock 9.Close socket [14:49:46]Sock 9.Thread stoped [14:49:50]OFD Sender: No OFD packet to send [14:49:55]OFD Sender: No OFD packet to send [14:50:00]OFD Sender: No OFD packet to send [14:50:05]OFD Sender: No OFD packet to send [14:50:10]OFD Sender: No OFD packet to send [14:50:15]OFD Sender: No OFD packet to send [14:50:20]OFD Sender: No OFD packet to send [14:50:25]OFD Sender: No OFD packet to send [14:50:30]OFD Sender: No OFD packet to send [14:50:35]OFD Sender: No OFD packet to send [14:50:40]OFD Sender: No OFD packet to send [14:50:45]OFD Sender: No OFD packet to send [14:50:50]OFD Sender: No OFD packet to send [14:50:55]OFD Sender: No OFD packet to send [14:51:00]OFD Sender: No OFD packet to send [14:51:05]OFD Sender: No OFD packet to send [14:51:10]OFD Sender: No OFD packet to send [14:51:15]OFD Sender: No OFD packet to send [14:51:20]OFD Sender: No OFD packet to send [14:51:25]OFD Sender: No OFD packet to send [14:51:30]OFD Sender: No OFD packet to send [14:51:35]OFD Sender: No OFD packet to send [14:51:40]OFD Sender: No OFD packet to send [14:51:45]OFD Sender: No OFD packet to send [14:51:50]OFD Sender: No OFD packet to send [14:51:55]OFD Sender: No OFD packet to send [14:52:00]OFD Sender: No OFD packet to send [14:52: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:31]OFD Sender: No OFD packet to send [14:52:36]OFD Sender: No OFD packet to send [14:52:41]OFD Sender: No OFD packet to send [14:52:46]OFD Sender: No OFD packet to send [14:52:51]OFD Sender: No OFD packet to send [14:52:56]OFD Sender: No OFD packet to send [14:53:01]OFD Sender: No OFD packet to send [14:53:06]OFD Sender: No OFD packet to send [14:53:11]OFD Sender: No OFD packet to send [14:53:16]OFD Sender: No OFD packet to send [14:53:21]OFD Sender: No OFD packet to send [14:53:26]OFD Sender: No OFD packet to send [14:53:31]OFD Sender: No OFD packet to send [14:53:36]OFD Sender: No OFD packet to send [14:53:41]OFD Sender: No OFD packet to send [14:53:46]OFD Sender: No OFD packet to send [14:53:51]OFD Sender: No OFD packet to send [14:53:56]OFD Sender: No OFD packet to send [14:54:01]OFD Sender: No OFD packet to send [14:54:06]OFD Sender: No OFD packet to send [14:54:11]OFD Sender: No OFD packet to send [14:54:16]OFD Sender: No OFD packet to send [14:54:21]OFD Sender: No OFD packet to send [14:54:26]OFD Sender: No OFD packet to send [14:54:31]OFD Sender: No OFD packet to send [14:54:36]OFD Sender: No OFD packet to send [14:54:41]OFD Sender: No OFD packet to send [14:54:46]OFD Sender: No OFD packet to send [14:54:51]OFD Sender: No OFD packet to send [14:54:56]OFD Sender: No OFD packet to send [14:55:01]OFD Sender: No OFD packet to send [14:55:06]OFD Sender: No OFD packet to send [14:55:11]OFD Sender: No OFD packet to send [14:55:16]OFD Sender: No OFD packet to send [14:55:21]OFD Sender: No OFD packet to send [14:55:26]OFD Sender: No OFD packet to send [14:55:31]OFD Sender: No OFD packet to send [14:55:36]OFD Sender: No OFD packet to send [14:55:41]OFD Sender: No OFD packet to send [14:55:46]OFD Sender: No OFD packet to send [14:55:51]OFD Sender: No OFD packet to send [14:55:56]OFD Sender: No OFD packet to send [14:56:01]OFD Sender: No OFD packet to send [14:56:06]OFD Sender: No OFD packet to send [14:56:11]OFD Sender: No OFD packet to send [14:56:16]OFD Sender: No OFD packet to send [14:56:22]OFD Sender: No OFD packet to send [14:56:27]OFD Sender: No OFD packet to send [14:56:32]OFD Sender: No OFD packet to send [14:56:37]OFD Sender: No OFD packet to send [14:56:42]OFD Sender: No OFD packet to send [14:56:47]OFD Sender: No OFD packet to send [14:56:52]OFD Sender: No OFD packet to send [14:56:57]OFD Sender: No OFD packet to send [14:57:02]OFD Sender: No OFD packet to send [14:57:07]OFD Sender: No OFD packet to send [14:57:12]OFD Sender: No OFD packet to send [14:57:17]OFD Sender: No OFD packet to send [14:57:22]OFD Sender: No OFD packet to send [14:57:27]OFD Sender: No OFD packet to send [14:57:32]OFD Sender: No OFD packet to send [14:57:32]accept exits with 8 [14:57:32]New connection [14:57:32]New thread 3067157860 created [14:57:32]Thread 3067014500 joined [14:57:32]Waiting for new connection... [14:57:32] Sock 8.Parse request [14:57:32]Sock 8.Check first char [14:57:32]Sock 8.First char is OK [14:57:32]request: POST /json_proto HTTP/1.0 [14:57:32]Method: POST [14:57:32]URL: /json_proto [14:57:32]Method is POST - this is cgi request [14:57:32]url: /json_proto [14:57:32]query_string will be loaded in cgi processing [14:57:32]execute_cgi json_proto POST (null) [14:57:32]execute_cgi path=json_proto method=POST [14:57:32]POST find Content-Length [14:57:32]Host: 172.17.42.131:8080 [14:57:32]Content-Length: 776 [14:57:32]Content-Type: application/json [14:57:32] [14:57:32]POST finish read [14:57:32]Found Content-Length = 776 [14:57:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209824", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 128.240, "sum" : 9900.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 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" : 9900.13 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:57:32]execute_script... [14:57: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)209824", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 128.240, "sum" : 9900.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 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" : 9900.13 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:57:32]POST & json_proto [14:57:32]process_json_proto [14:57:32]json parsed OK: [14:57:32]protocol is kg_v1.0 [14:57:32]action value=close_receipt [14:57:32]process_action close_receipt [14:57:32]cmd_close_receipt [14:57:32]MH_GetDate [14:57:32]Write to MH i2c: F0 00 00 69 63 BB [14:57:32]Write i2c OK [14:57:32]MH_I2C_Read... [14:57:32]Read from MH i2c: F0 [14:57:32]MH_I2C_Read... [14:57:32]Read from MH i2c: F0 09 00 [14:57:32]MH_I2C_Read... [14:57:32]Read from MH i2c: F0 09 00 69 63 00 E1 6B 16 67 A0 18 CA 66 75 [14:57:32]GetLastDocTimeStamp 1729522186 [14:57:32]current date 1729522657 [14:57:32]FM_GetShiftState [14:57:32]SAM_PROTO_GetShiftState [14:57:32]wFMCommunicate request_size=4 [14:57:32]MH_SAM_APDU [14:57:32]CAPDU: 80 13 01 00 [14:57:32]Write to MH i2c: E2 08 00 6A 63 80 13 01 00 00 00 00 00 4A [14:57:32]Write i2c OK [14:57:32]MH_I2C_Read... [14:57:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:57:32]Read from MH i2c: E2 [14:57:32]MH_I2C_Read... [14:57:32]Read from MH i2c: E2 0E 00 [14:57:32]MH_I2C_Read... [14:57:32]Read from MH i2c: E2 0E 00 6A 63 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 A9 [14:57:32]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [14:57:32]wFMCommunicate OK [14:57:32]SAM_PROTO_GetShiftState done [14:57:32]FM_GetShiftState done [14:57:32]opened in 1729469754 [14:57:32]opened+sec_in_day 1729556154 [14:57:32]quantity*price = 990012 [14:57:32]sum+1 = 990014 [14:57:32]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 9900.13 НСП 1% : 87.61 НДС 12% : 1051.34 Наличными: 0.00 Безнал.: 9900.13 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 236 21.10.2024 14:57 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000965340 ФД: 187772 ФПД: 272635187986443 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T145737&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187772&fm=272635187986443&tin=02508201610067®Number=0000000000100030&sum=990013 [14:57:33]StoreToDocumentArchive [14:57:33]shift 460 fd 187772 [14:57:33]save to /storage/0460/doc_00187772 [14:57:33]save last doc name /storage/0460/doc_00187772 to /storage/kkm_last_doc_name [14:57:33]save OK [14:57:33]Clear old archive folders... [14:57:33]ProcessDocumentItem done err = 0, tmpTLVsize=257 [14:57:33]tlvbuf is 010F7A00 [14:57:33]SAM_PROTO_ClearQueue [14:57:33]wFMCommunicate request_size=4 [14:57:33]MH_SAM_APDU [14:57:33]CAPDU: 80 09 00 00 [14:57:33]Write to MH i2c: E2 08 00 77 63 80 09 00 00 00 00 00 00 4C [14:57:33]Write i2c OK [14:57:33]MH_I2C_Read... [14:57:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:57:33]Read from MH i2c: E2 [14:57:33]MH_I2C_Read... [14:57:33]Read from MH i2c: E2 03 00 [14:57:33]MH_I2C_Read... [14:57:33]Read from MH i2c: E2 03 00 77 63 00 90 00 4E [14:57:33]RAPDU: 90 00 [14:57:33]wFMCommunicate OK [14:57:33]SAM_PROTO_ClearQueue done [14:57:33]KKMCreateOFDPacket [14:57:33]OFDProtocolAddRootSTLVToBuf [14:57:33]FM_MakeSignedData [14:57:33]FM_MakeSignedData [14:57:33]SAM_PROTO_SignData [14:57:33]wFMCommunicate request_size=4 [14:57:33]MH_SAM_APDU [14:57:33]CAPDU: 80 0D 01 02 [14:57:33]Write to MH i2c: E2 08 00 78 63 80 0D 01 02 00 00 00 00 54 [14:57:33]Write i2c OK [14:57:33]MH_I2C_Read... [14:57:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:57:34]Read from MH i2c: E2 [14:57:34]MH_I2C_Read... [14:57:34]Read from MH i2c: E2 03 00 [14:57:34]MH_I2C_Read... [14:57:34]Read from MH i2c: E2 03 00 78 63 00 90 00 4F [14:57:34]RAPDU: 90 00 [14:57:34]wFMCommunicate OK [14:57:34]wFMCommunicate request_size=255 [14:57:34]MH_SAM_APDU [14:57: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 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 F0 F4 01 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 3D 1B 0F 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3D 1B 0F 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 22 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AE 9A 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 3D 1B 0F 00 00 00 1F 04 02 00 01 00 12 04 04 00 EC 00 00 00 F4 03 04 00 E1 6B 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 7C DD 02 [14:57:34]Write to MH i2c: E2 02 01 79 63 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 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 F0 F4 01 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 3D 1B 0F 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3D 1B 0F 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 22 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AE 9A 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 3D 1B 0F 00 00 00 1F 04 02 00 01 00 12 04 04 00 EC 00 00 00 F4 03 04 00 E1 6B 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 7C DD 02 00 00 B0 [14:57:34]Write i2c OK [14:57:34]MH_I2C_Read... [14:57:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:57:34]Read from MH i2c: E2 [14:57:34]MH_I2C_Read... [14:57:34]Read from MH i2c: E2 03 00 [14:57:34]MH_I2C_Read... [14:57:34]Read from MH i2c: E2 03 00 79 63 00 90 00 50 [14:57:34]RAPDU: 90 00 [14:57:34]wFMCommunicate OK [14:57:34]wFMCommunicate request_size=16 [14:57:34]MH_SAM_APDU [14:57:34]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 F7 F5 D3 88 80 0B [14:57:34]Write to MH i2c: E2 13 00 7A 63 80 0D 02 02 0B 00 00 35 04 06 00 F7 F5 D3 88 80 0B 00 00 7E [14:57:34]Write i2c OK [14:57:34]MH_I2C_Read... [14:57:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:57:34]Read from MH i2c: E2 [14:57:34]MH_I2C_Read... [14:57:34]Read from MH i2c: E2 03 00 [14:57:34]MH_I2C_Read... [14:57:34]Read from MH i2c: E2 03 00 7A 63 00 90 00 51 [14:57:34]RAPDU: 90 00 [14:57:34]wFMCommunicate OK [14:57:34]wFMCommunicate request_size=4 [14:57:34]MH_SAM_APDU [14:57:34]CAPDU: 80 0D 03 02 [14:57:34]Write to MH i2c: E2 08 00 7B 63 80 0D 03 02 00 00 00 00 59 [14:57:34]Write i2c OK [14:57:34]MH_I2C_Read... [14:57:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:57:34]Read from MH i2c: E2 [14:57:34]MH_I2C_Read... [14:57:34]Read from MH i2c: E2 0B 00 [14:57:34]MH_I2C_Read... [14:57:34]Read from MH i2c: E2 0B 00 7B 63 00 2F 79 8D 01 74 95 A0 C1 90 00 FA [14:57:34]RAPDU: 2F 79 8D 01 74 95 A0 C1 90 00 [14:57:34]wFMCommunicate OK [14:57:34]SAM_PROTO_SignData done [14:57:34]FM_MakeSignedData done [14:57:34]CreateOFDProtocolMessage [14:57:34]wFMCommunicate request_size=4 [14:57:34]MH_SAM_APDU [14:57:34]CAPDU: 80 11 00 00 [14:57:34]Write to MH i2c: E2 08 00 7C 63 80 11 00 00 00 00 00 00 59 [14:57:34]Write i2c OK [14:57:34]MH_I2C_Read... [14:57:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:57:34]Read from MH i2c: E2 [14:57:34]MH_I2C_Read... [14:57:34]Read from MH i2c: E2 17 00 [14:57:34]MH_I2C_Read... [14:57:34]Read from MH i2c: E2 17 00 7C 63 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 A7 [14:57:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [14:57:34]wFMCommunicate OK [14:57:34]CreateOFDProtocolMessage done [14:57:34]OFDSenderStorePacket 187772 [14:57:34]StoreOFDPacket docnum=187772 [14:57:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 C2 73 0D 01 59 0A 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 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 F0 F4 01 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 3D 1B 0F 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3D 1B 0F 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 22 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AE 9A 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 3D 1B 0F 00 00 00 1F 04 02 00 01 00 12 04 04 00 EC 00 00 00 F4 03 04 00 E1 6B 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 7C DD 02 00 35 04 06 00 F7 F5 D3 88 80 0B 2F 79 8D 01 74 95 A0 C1 [14:57:34]CheckFolder [14:57:34]dirname=/storage/ofd_packets [14:57:34]CheckFolder done [14:57:34]ProducePacketName [14:57:34]name=ofd_packets/00187772 [14:57:34]NVStorageSaveData ofd_packets/00187772 [14:57:34]File name is /storage/ofd_packets/00187772 [14:57:34]Write 307 bytes [14:57:34]NVStorageSaveData done [14:57:34]OFDSenderStorePacket done [14:57:34]KKMCreateOFDPacket done [14:57:34]NVStorageSaveData kkm_last_timestamp [14:57:34]File name is /storage/kkm_last_timestamp [14:57:34]Write 4 bytes [14:57:34]NVStorageSaveData done [14:57:34]ExternCall_PrintAddStr [14:57:34]wPrintStart [14:57:34]Write to MH i2c: 01 00 00 7D 63 E0 [14:57:34]Write i2c OK [14:57:34]MH_I2C_Read... [14:57:34]Read from MH i2c: 01 [14:57:34]MH_I2C_Read... [14:57:34]Read from MH i2c: 01 07 00 [14:57:34]MH_I2C_Read... [14:57:34]Read from MH i2c: 01 07 00 7D 63 00 00 00 00 00 FF 0F F5 [14:57:34]RasterBufferAndPrint [14:57:34]line Счет N : (1)209824 [14:57:34]line ИНН: 02508201610067 [14:57:34]line Контрольно-Кассовый Чек [14:57:34]line ПРОДАЖА [14:57:34]line ТРК (МРК, ГНК) : 21 [14:57:34]line Товар: 2710194210 [14:57:34]line D-ENERGY ДТ-К-5 [14:57:34]line 128.240 * 77.20 [14:57:34]line = 9900.13 [14:57:34]line НДС 12% НСП 1% [14:57:34]line > о реализуемом товаре [14:57:34]line ИТОГО: 9900.13 [14:57:34]line НСП 1% : 87.61 [14:57:34]line НДС 12% : 1051.34 [14:57:34]line Наличными: 0.00 [14:57:34]line Безнал.: 9900.13 [14:57:34]line Место: АЗС № 86 "Партнер Нефть" [14:57:34]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [14:57:34]line СНО: Общий режим [14:57:34]line Чек 236 21.10.2024 14:57 [14:57:34]line Смена: 460 ФФД: 1.0 [14:57:34]line ЗНМ: 0300000155 [14:57:34]line РНМ: 0000000000100030 [14:57:34]line Версия ККМ: 001 [14:57:34]line Платежная система: Mbank [14:57:34]line ФМ: 0000000000965340 [14:57:34]line ФД: 187772 [14:57:34]line ФПД: 272635187986443 [14:57:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T145737&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187772&fm=272635187986443&tin=02508201610067®Number=0000000000100030&sum=990013 [14:57:34]written 0, free lines is 4095 [14:57:34]OFD Sender: Processing packet 187772 [packets to send 1062, broken 1061] [14:57:34]ProducePacketName [14:57:34]name=ofd_packets/00187772 [14:57:34]OFD Sender: To server: pG, [14:57:34]CommunicateWithHost lk.salyk.kg:30040 [14:57:34]ConnectInit lk.salyk.kg [14:57:34]Write to MH i2c: 01 00 00 A6 63 09 [14:57:34]Write i2c OK [14:57:34]MH_I2C_Read... [14:57:34]Read from MH i2c: 01 [14:57:34]MH_I2C_Read... [14:57:34]Read from MH i2c: 01 07 00 [14:57:34]MH_I2C_Read... [14:57:34]Read from MH i2c: 01 07 00 A6 63 00 00 00 00 00 94 0C B0 [14:57:34]RasterBufferAndPrint [14:57:34]line [14:57:34]line [14:57:34]line [14:57:34]line [14:57:34]line [14:57:34]written 0, free lines is 3223 [14:57:34]MH_Cut [14:57:34]Write to MH i2c: D1 01 00 AD 63 01 E2 [14:57:34]Write i2c OK [14:57:34]MH_I2C_Read... [14:57:34]Read from MH i2c: D1 [14:57:34]MH_I2C_Read... [14:57:34]Read from MH i2c: D1 01 00 [14:57:34]MH_I2C_Read... [14:57:34]Read from MH i2c: D1 01 00 AD 63 00 E1 [14:57:34]Write to MH i2c: 01 00 00 AE 63 11 [14:57:34]Write i2c OK [14:57:34]MH_I2C_Read... [14:57:36]*** Cut start [14:57:36]*** Partial cut [14:57:36]*** CUTSNS_PIN = 1 [14:57:36]*** CUTSNS_PIN = 0 [14:57:36]*** Brake cut motor [14:57:36]Read from MH i2c: 01 [14:57:36]MH_I2C_Read... [14:57:36]*** Stop cut motor [14:57:36]*** Cut end [14:57:36]Read from MH i2c: 01 07 00 [14:57:36]MH_I2C_Read... [14:57:36]Read from MH i2c: 01 07 00 AE 63 00 00 00 00 00 FF 0F 26 [14:57:36]process_action close_receipt done [14:57:36]requested_data is exist [14:57:36]produce_requested_data [14:57:36]requested_item fm.sn is exist - process it [14:57:36]wFMCommunicate request_size=4 [14:57:36]MH_SAM_APDU [14:57:36]CAPDU: 80 11 00 00 [14:57:36]Write to MH i2c: E2 08 00 AF 63 80 11 00 00 00 00 00 00 8C [14:57:36]Write i2c OK [14:57:36]MH_I2C_Read... [14:57:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:57:36]Read from MH i2c: E2 [14:57:36]MH_I2C_Read... [14:57:36]Read from MH i2c: E2 17 00 [14:57:36]MH_I2C_Read... [14:57:36]Read from MH i2c: E2 17 00 AF 63 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 DA [14:57:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [14:57:36]wFMCommunicate OK [14:57:36]requested_item fd.num is exist - process it [14:57:36]SAM_PROTO_GetFieldsCounters [14:57:36]wFMCommunicate request_size=4 [14:57:36]MH_SAM_APDU [14:57:36]CAPDU: 80 13 00 00 [14:57:36]Write to MH i2c: E2 08 00 B0 63 80 13 00 00 00 00 00 00 8F [14:57:36]Write i2c OK [14:57:36]MH_I2C_Read... [14:57:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:57:36]Read from MH i2c: E2 [14:57:36]MH_I2C_Read... [14:57:36]Read from MH i2c: E2 62 00 [14:57:36]MH_I2C_Read... [14:57:36]Read from MH i2c: E2 62 00 B0 63 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 7C DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 EC 00 00 00 5E 04 04 00 EC 00 00 00 57 04 04 00 ED 00 00 00 19 04 04 00 00 00 00 00 90 00 82 [14:57:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 7C DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 EC 00 00 00 5E 04 04 00 EC 00 00 00 57 04 04 00 ED 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:57:36]wFMCommunicate OK [14:57:36]SAM_PROTO_GetFieldsCounters done [14:57:36]requested_item shift.num is exist - process it [14:57:36]requested_item shift.opened is exist - process it [14:57:36]req_shift_opened [14:57:36]FM_GetShiftState [14:57:36]SAM_PROTO_GetShiftState [14:57:36]wFMCommunicate request_size=4 [14:57:36]MH_SAM_APDU [14:57:36]CAPDU: 80 13 01 00 [14:57:36]Write to MH i2c: E2 08 00 B1 63 80 13 01 00 00 00 00 00 91 [14:57:36]Write i2c OK [14:57:36]MH_I2C_Read... [14:57:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:57:36]Read from MH i2c: E2 [14:57:36]MH_I2C_Read... [14:57:36]Read from MH i2c: E2 0E 00 [14:57:36]MH_I2C_Read... [14:57:36]Read from MH i2c: E2 0E 00 B1 63 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 F0 [14:57:36]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [14:57:36]wFMCommunicate OK [14:57:36]SAM_PROTO_GetShiftState done [14:57:36]FM_GetShiftState done [14:57:36]req_shift_opened done [14:57:36]requested_item shift.open_date is exist - process it [14:57:36]req_shift_open_date [14:57:36]req_shift_open_date done [14:57:36]produce_requested_data done [14:57:36]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187772,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [14:57:36]process_action_free close_receipt [14:57:36]json_value_free [14:57:36]json_value_free done [14:57:36]process_json_proto returns [14:57:36]Send response to host [14:57:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187772,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [14:57:36]free response buf [14:57:36]execute_script done [14:57:36]execute_script returns [14:57:36]free content buf [14:57:36]Sock 8.Close socket [14:57:36]Sock 8.Thread stoped [14:57:48]accept exits with 9 [14:57:48]New connection [14:57:48]New thread 3067014500 created [14:57:48]Thread 3067157860 joined [14:57:48]Waiting for new connection... [14:57:48] Sock 9.Parse request [14:57:48]Sock 9.Check first char [14:57:48]Sock 9.First char is OK [14:57:48]request: POST /json_proto HTTP/1.0 [14:57:48]Method: POST [14:57:48]URL: /json_proto [14:57:48]Method is POST - this is cgi request [14:57:48]url: /json_proto [14:57:48]query_string will be loaded in cgi processing [14:57:48]execute_cgi json_proto POST (null) [14:57:48]execute_cgi path=json_proto method=POST [14:57:48]POST find Content-Length [14:57:48]Host: 172.17.42.131:8080 [14:57:48]Content-Length: 677 [14:57:48]Content-Type: application/json [14:57:48] [14:57:48]POST finish read [14:57:48]Found Content-Length = 677 [14:57:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209825", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "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:57:48]execute_script... [14:57: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)209825", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "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:57:48]POST & json_proto [14:57:48]process_json_proto [14:57:48]json parsed OK: [14:57:48]protocol is kg_v1.0 [14:57:48]action value=close_receipt [14:57:48]process_action close_receipt [14:57:48]cmd_close_receipt [14:57:48]MH_GetDate [14:57:48]Write to MH i2c: F0 00 00 B2 63 04 [14:57:48]Write i2c OK [14:57:48]MH_I2C_Read... [14:57:48]Read from MH i2c: F0 [14:57:48]MH_I2C_Read... [14:57:48]Read from MH i2c: F0 09 00 [14:57:48]MH_I2C_Read... [14:57:48]Read from MH i2c: F0 09 00 B2 63 00 F1 6B 16 67 A0 18 CA 66 CE [14:57:48]GetLastDocTimeStamp 1729522657 [14:57:48]current date 1729522673 [14:57:48]FM_GetShiftState [14:57:48]SAM_PROTO_GetShiftState [14:57:48]wFMCommunicate request_size=4 [14:57:48]MH_SAM_APDU [14:57:48]CAPDU: 80 13 01 00 [14:57:48]Write to MH i2c: E2 08 00 B3 63 80 13 01 00 00 00 00 00 93 [14:57:48]Write i2c OK [14:57:48]MH_I2C_Read... [14:57:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:57:48]Read from MH i2c: E2 [14:57:48]MH_I2C_Read... [14:57:48]Read from MH i2c: E2 0E 00 [14:57:48]MH_I2C_Read... [14:57:48]Read from MH i2c: E2 0E 00 B3 63 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 F2 [14:57:48]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [14:57:48]wFMCommunicate OK [14:57:48]SAM_PROTO_GetShiftState done [14:57:48]FM_GetShiftState done [14:57:48]opened in 1729469754 [14:57:48]opened+sec_in_day 1729556154 [14:57:48]quantity*price = 50041 [14:57:48]sum+1 = 50042 [14:57: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 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 237 21.10.2024 14:57 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 187773 ФПД: 86302237581322 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T145753&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187773&fm=86302237581322&tin=02508201610067®Number=0000000000100030&sum=50000 [14:57:49]StoreToDocumentArchive [14:57:49]shift 460 fd 187773 [14:57:49]save to /storage/0460/doc_00187773 [14:57:49]save last doc name /storage/0460/doc_00187773 to /storage/kkm_last_doc_name [14:57:49]save OK [14:57:49]Clear old archive folders... [14:57:49]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:57:49]tlvbuf is 01121480 [14:57:49]SAM_PROTO_ClearQueue [14:57:49]wFMCommunicate request_size=4 [14:57:49]MH_SAM_APDU [14:57:49]CAPDU: 80 09 00 00 [14:57:49]Write to MH i2c: E2 08 00 C0 63 80 09 00 00 00 00 00 00 95 [14:57:49]Write i2c OK [14:57:49]MH_I2C_Read... [14:57:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:57:49]Read from MH i2c: E2 [14:57:49]MH_I2C_Read... [14:57:49]Read from MH i2c: E2 03 00 [14:57:49]MH_I2C_Read... [14:57:49]Read from MH i2c: E2 03 00 C0 63 00 90 00 97 [14:57:49]RAPDU: 90 00 [14:57:49]wFMCommunicate OK [14:57:49]SAM_PROTO_ClearQueue done [14:57:49]KKMCreateOFDPacket [14:57:49]OFDProtocolAddRootSTLVToBuf [14:57:49]FM_MakeSignedData [14:57:49]FM_MakeSignedData [14:57:49]SAM_PROTO_SignData [14:57:49]wFMCommunicate request_size=4 [14:57:49]MH_SAM_APDU [14:57:49]CAPDU: 80 0D 01 02 [14:57:49]Write to MH i2c: E2 08 00 C1 63 80 0D 01 02 00 00 00 00 9D [14:57:49]Write i2c OK [14:57:49]MH_I2C_Read... [14:57:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:57:49]Read from MH i2c: E2 [14:57:49]MH_I2C_Read... [14:57:49]Read from MH i2c: E2 03 00 [14:57:49]MH_I2C_Read... [14:57:49]Read from MH i2c: E2 03 00 C1 63 00 90 00 98 [14:57:49]RAPDU: 90 00 [14:57:49]wFMCommunicate OK [14:57:49]wFMCommunicate request_size=255 [14:57:49]MH_SAM_APDU [14:57: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 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 ED 00 00 00 F4 03 04 00 F1 6B 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 7D DD 02 00 35 04 06 00 4E [14:57:49]Write to MH i2c: E2 02 01 C2 63 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 ED 00 00 00 F4 03 04 00 F1 6B 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 7D DD 02 00 35 04 06 00 4E 00 00 4D [14:57:49]Write i2c OK [14:57:49]MH_I2C_Read... [14:57:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:57:50]Read from MH i2c: E2 [14:57:50]MH_I2C_Read... [14:57:50]Read from MH i2c: E2 03 00 [14:57:50]MH_I2C_Read... [14:57:50]Read from MH i2c: E2 03 00 C2 63 00 90 00 99 [14:57:50]RAPDU: 90 00 [14:57:50]wFMCommunicate OK [14:57:50]wFMCommunicate request_size=10 [14:57:50]MH_SAM_APDU [14:57:50]CAPDU: 80 0D 02 02 05 7D CE 36 E0 0A [14:57:50]Write to MH i2c: E2 0D 00 C3 63 80 0D 02 02 05 00 7D CE 36 E0 0A 00 00 15 [14:57:50]Write i2c OK [14:57:50]MH_I2C_Read... [14:57:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:57:50]Read from MH i2c: E2 [14:57:50]MH_I2C_Read... [14:57:50]Read from MH i2c: E2 03 00 [14:57:50]MH_I2C_Read... [14:57:50]Read from MH i2c: E2 03 00 C3 63 00 90 00 9A [14:57:50]RAPDU: 90 00 [14:57:50]wFMCommunicate OK [14:57:50]wFMCommunicate request_size=4 [14:57:50]MH_SAM_APDU [14:57:50]CAPDU: 80 0D 03 02 [14:57:50]Write to MH i2c: E2 08 00 C4 63 80 0D 03 02 00 00 00 00 A2 [14:57:50]Write i2c OK [14:57:50]MH_I2C_Read... [14:57:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:57:50]Read from MH i2c: E2 [14:57:50]MH_I2C_Read... [14:57:50]Read from MH i2c: E2 0B 00 [14:57:50]MH_I2C_Read... [14:57:50]Read from MH i2c: E2 0B 00 C4 63 00 16 AD D4 B9 1E 58 65 E5 90 00 B3 [14:57:50]RAPDU: 16 AD D4 B9 1E 58 65 E5 90 00 [14:57:50]wFMCommunicate OK [14:57:50]SAM_PROTO_SignData done [14:57:50]FM_MakeSignedData done [14:57:50]CreateOFDProtocolMessage [14:57:50]wFMCommunicate request_size=4 [14:57:50]MH_SAM_APDU [14:57:50]CAPDU: 80 11 00 00 [14:57:50]Write to MH i2c: E2 08 00 C5 63 80 11 00 00 00 00 00 00 A2 [14:57:50]Write i2c OK [14:57:50]MH_I2C_Read... [14:57:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:57:50]Read from MH i2c: E2 [14:57:50]MH_I2C_Read... [14:57:50]Read from MH i2c: E2 17 00 [14:57:50]MH_I2C_Read... [14:57:50]Read from MH i2c: E2 17 00 C5 63 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 F0 [14:57:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [14:57:50]wFMCommunicate OK [14:57:50]CreateOFDProtocolMessage done [14:57:50]OFDSenderStorePacket 187773 [14:57:50]StoreOFDPacket docnum=187773 [14:57:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 52 1D 07 01 FB 73 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 ED 00 00 00 F4 03 04 00 F1 6B 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 7D DD 02 00 35 04 06 00 4E 7D CE 36 E0 0A 16 AD D4 B9 1E 58 65 E5 [14:57:50]CheckFolder [14:57:50]dirname=/storage/ofd_packets [14:57:50]CheckFolder done [14:57:50]ProducePacketName [14:57:50]name=ofd_packets/00187773 [14:57:50]NVStorageSaveData ofd_packets/00187773 [14:57:50]File name is /storage/ofd_packets/00187773 [14:57:50]Write 301 bytes [14:57:50]NVStorageSaveData done [14:57:50]OFDSenderStorePacket done [14:57:50]KKMCreateOFDPacket done [14:57:50]NVStorageSaveData kkm_last_timestamp [14:57:50]File name is /storage/kkm_last_timestamp [14:57:50]Write 4 bytes [14:57:50]NVStorageSaveData done [14:57:50]ExternCall_PrintAddStr [14:57:50]wPrintStart [14:57:50]Write to MH i2c: 01 00 00 C6 63 29 [14:57:50]Write i2c OK [14:57:50]MH_I2C_Read... [14:57:50]Read from MH i2c: 01 [14:57:50]MH_I2C_Read... [14:57:50]Read from MH i2c: 01 07 00 [14:57:50]MH_I2C_Read... [14:57:50]Read from MH i2c: 01 07 00 C6 63 00 00 00 00 00 FF 0F 3E [14:57:50]RasterBufferAndPrint [14:57:50]line Счет N : (1)209825 [14:57:50]line ИНН: 02508201610067 [14:57:50]line Контрольно-Кассовый Чек [14:57:50]line ПРОДАЖА [14:57:50]line ТРК (МРК, ГНК) : 12 [14:57:50]line Товар: 2710124130 [14:57:50]line Аи-92-К-3 [14:57:50]line 7.480 * 66.90 [14:57:50]line = 500.41 [14:57:50]line НДС 12% НСП 1% [14:57:50]line > о реализуемом товаре [14:57:50]line ОКРУГЛЕНИЕ: -0.41 [14:57:50]line ИТОГО: 500.00 [14:57:50]line Внесено: 500.00 [14:57:50]line СДАЧА: 0.00 [14:57:50]line НСП 1% : 4.43 [14:57:50]line НДС 12% : 53.14 [14:57:50]line Наличными: 500.00 [14:57:50]line Безнал.: 0.00 [14:57:50]line Место: АЗС № 86 "Партнер Нефть" [14:57:50]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [14:57:50]line СНО: Общий режим [14:57:50]line Чек 237 21.10.2024 14:57 [14:57:50]line Смена: 460 ФФД: 1.0 [14:57:50]line ЗНМ: 0300000155 [14:57:50]line РНМ: 0000000000100030 [14:57:50]line Версия ККМ: 001 [14:57:50]line ФМ: 0000000000965340 [14:57:50]line ФД: 187773 [14:57:50]line ФПД: 86302237581322 [14:57:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T145753&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187773&fm=86302237581322&tin=02508201610067®Number=0000000000100030&sum=50000 [14:57:50]written 0, free lines is 4095 [14:57:50]Write to MH i2c: 01 00 00 F1 63 54 [14:57:50]Write i2c OK [14:57:50]MH_I2C_Read... [14:57:50]Read from MH i2c: 01 [14:57:50]MH_I2C_Read... [14:57:50]Read from MH i2c: 01 07 00 [14:57:50]MH_I2C_Read... [14:57:50]Read from MH i2c: 01 07 00 F1 63 00 00 00 00 00 66 0C CD [14:57:50]RasterBufferAndPrint [14:57:50]line [14:57:50]line [14:57:50]line [14:57:50]line [14:57:50]line [14:57:50]written 0, free lines is 3177 [14:57:50]MH_Cut [14:57:50]Write to MH i2c: D1 01 00 F8 63 01 2D [14:57:50]Write i2c OK [14:57:50]MH_I2C_Read... [14:57:50]Read from MH i2c: D1 [14:57:50]MH_I2C_Read... [14:57:50]Read from MH i2c: D1 01 00 [14:57:50]MH_I2C_Read... [14:57:50]Read from MH i2c: D1 01 00 F8 63 00 2C [14:57:50]Write to MH i2c: 01 00 00 F9 63 5C [14:57:50]Write i2c OK [14:57:50]MH_I2C_Read... [14:57:52]*** Cut start [14:57:52]*** Partial cut [14:57:52]*** CUTSNS_PIN = 1 [14:57:52]*** CUTSNS_PIN = 0 [14:57:52]*** Brake cut motor [14:57:52]Read from MH i2c: 01 [14:57:52]MH_I2C_Read... [14:57:52]*** Stop cut motor [14:57:52]*** Cut end [14:57:52]Read from MH i2c: 01 07 00 [14:57:52]MH_I2C_Read... [14:57:52]Read from MH i2c: 01 07 00 F9 63 00 00 00 00 00 FF 0F 71 [14:57:52]process_action close_receipt done [14:57:52]requested_data is exist [14:57:52]produce_requested_data [14:57:52]requested_item fm.sn is exist - process it [14:57:52]wFMCommunicate request_size=4 [14:57:52]MH_SAM_APDU [14:57:52]CAPDU: 80 11 00 00 [14:57:52]Write to MH i2c: E2 08 00 FA 63 80 11 00 00 00 00 00 00 D7 [14:57:52]Write i2c OK [14:57:52]MH_I2C_Read... [14:57:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:57:52]Read from MH i2c: E2 [14:57:52]MH_I2C_Read... [14:57:52]Read from MH i2c: E2 17 00 [14:57:52]MH_I2C_Read... [14:57:52]Read from MH i2c: E2 17 00 FA 63 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 25 [14:57:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [14:57:52]wFMCommunicate OK [14:57:52]requested_item fd.num is exist - process it [14:57:52]SAM_PROTO_GetFieldsCounters [14:57:52]wFMCommunicate request_size=4 [14:57:52]MH_SAM_APDU [14:57:52]CAPDU: 80 13 00 00 [14:57:52]Write to MH i2c: E2 08 00 FB 63 80 13 00 00 00 00 00 00 DA [14:57:52]Write i2c OK [14:57:52]MH_I2C_Read... [14:57:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:57:52]Read from MH i2c: E2 [14:57:52]MH_I2C_Read... [14:57:52]Read from MH i2c: E2 62 00 [14:57:52]MH_I2C_Read... [14:57:52]Read from MH i2c: E2 62 00 FB 63 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 7D DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 ED 00 00 00 5E 04 04 00 ED 00 00 00 57 04 04 00 EE 00 00 00 19 04 04 00 00 00 00 00 90 00 D1 [14:57:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 7D DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 ED 00 00 00 5E 04 04 00 ED 00 00 00 57 04 04 00 EE 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:57:52]wFMCommunicate OK [14:57:52]SAM_PROTO_GetFieldsCounters done [14:57:52]requested_item shift.num is exist - process it [14:57:52]requested_item shift.opened is exist - process it [14:57:52]req_shift_opened [14:57:52]FM_GetShiftState [14:57:52]SAM_PROTO_GetShiftState [14:57:52]wFMCommunicate request_size=4 [14:57:52]MH_SAM_APDU [14:57:52]CAPDU: 80 13 01 00 [14:57:52]Write to MH i2c: E2 08 00 FC 63 80 13 01 00 00 00 00 00 DC [14:57:52]Write i2c OK [14:57:52]MH_I2C_Read... [14:57:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:57:52]Read from MH i2c: E2 [14:57:52]MH_I2C_Read... [14:57:52]Read from MH i2c: E2 0E 00 [14:57:52]MH_I2C_Read... [14:57:52]Read from MH i2c: E2 0E 00 FC 63 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 3B [14:57:52]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [14:57:52]wFMCommunicate OK [14:57:52]SAM_PROTO_GetShiftState done [14:57:52]FM_GetShiftState done [14:57:52]req_shift_opened done [14:57:52]requested_item shift.open_date is exist - process it [14:57:52]req_shift_open_date [14:57:52]req_shift_open_date done [14:57:52]produce_requested_data done [14:57:52]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187773,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [14:57:52]process_action_free close_receipt [14:57:52]json_value_free [14:57:52]json_value_free done [14:57:52]process_json_proto returns [14:57:52]Send response to host [14:57:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187773,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [14:57:52]free response buf [14:57:52]execute_script done [14:57:52]execute_script returns [14:57:52]free content buf [14:57:52]Sock 9.Close socket [14:57:52]Sock 9.Thread stoped [14:59:46]accept exits with 8 [14:59:46]New connection [14:59:46]New thread 3067157860 created [14:59:46]Thread 3067014500 joined [14:59:46]Waiting for new connection... [14:59:46] Sock 8.Parse request [14:59:46]Sock 8.Check first char [14:59:46]Sock 8.First char is OK [14:59:46]request: POST /json_proto HTTP/1.0 [14:59:46]Method: POST [14:59:46]URL: /json_proto [14:59:46]Method is POST - this is cgi request [14:59:46]url: /json_proto [14:59:46]query_string will be loaded in cgi processing [14:59:46]execute_cgi json_proto POST (null) [14:59:46]execute_cgi path=json_proto method=POST [14:59:46]POST find Content-Length [14:59:46]Host: 172.17.42.131:8080 [14:59:46]Content-Length: 682 [14:59:46]Content-Type: application/json [14:59:46] [14:59:46]POST finish read [14:59:46]Found Content-Length = 682 [14:59:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209826", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "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" ] } } [14:59:46]execute_script... [14:59: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)209826", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "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" ] } } [14:59:46]POST & json_proto [14:59:46]process_json_proto [14:59:46]json parsed OK: [14:59:46]protocol is kg_v1.0 [14:59:46]action value=close_receipt [14:59:46]process_action close_receipt [14:59:46]cmd_close_receipt [14:59:46]MH_GetDate [14:59:46]Write to MH i2c: F0 00 00 FD 63 4F [14:59:46]Write i2c OK [14:59:46]MH_I2C_Read... [14:59:46]Read from MH i2c: F0 [14:59:46]MH_I2C_Read... [14:59:46]Read from MH i2c: F0 09 00 [14:59:46]MH_I2C_Read... [14:59:46]Read from MH i2c: F0 09 00 FD 63 00 66 6C 16 67 A0 18 CA 66 8F [14:59:46]GetLastDocTimeStamp 1729522673 [14:59:46]current date 1729522790 [14:59:46]FM_GetShiftState [14:59:46]SAM_PROTO_GetShiftState [14:59:46]wFMCommunicate request_size=4 [14:59:46]MH_SAM_APDU [14:59:46]CAPDU: 80 13 01 00 [14:59:46]Write to MH i2c: E2 08 00 FE 63 80 13 01 00 00 00 00 00 DE [14:59:46]Write i2c OK [14:59:46]MH_I2C_Read... [14:59:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:59:46]Read from MH i2c: E2 [14:59:46]MH_I2C_Read... [14:59:46]Read from MH i2c: E2 0E 00 [14:59:46]MH_I2C_Read... [14:59:46]Read from MH i2c: E2 0E 00 FE 63 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 3D [14:59:46]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [14:59:46]wFMCommunicate OK [14:59:46]SAM_PROTO_GetShiftState done [14:59:46]FM_GetShiftState done [14:59:46]opened in 1729469754 [14:59:46]opened+sec_in_day 1729556154 [14:59:46]quantity*price = 120018 [14:59:46]sum+1 = 120020 [14:59:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.19 ИТОГО: 1200.00 Внесено: 1200.00 СДАЧА: 0.00 НСП 1% : 10.62 НДС 12% : 127.45 Наличными: 1200.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 238 21.10.2024 14:59 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 187774 ФПД: 24210829360797 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T145950&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187774&fm=24210829360797&tin=02508201610067®Number=0000000000100030&sum=120000 [14:59:47]StoreToDocumentArchive [14:59:47]shift 460 fd 187774 [14:59:47]save to /storage/0460/doc_00187774 [14:59:47]save last doc name /storage/0460/doc_00187774 to /storage/kkm_last_doc_name [14:59:47]save OK [14:59:47]Clear old archive folders... [14:59:47]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:59:47]tlvbuf is B6F87080 [14:59:47]SAM_PROTO_ClearQueue [14:59:47]wFMCommunicate request_size=4 [14:59:47]MH_SAM_APDU [14:59:47]CAPDU: 80 09 00 00 [14:59:47]Write to MH i2c: E2 08 00 0B 64 80 09 00 00 00 00 00 00 E1 [14:59:47]Write i2c OK [14:59:47]MH_I2C_Read... [14:59:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:59:47]Read from MH i2c: E2 [14:59:47]MH_I2C_Read... [14:59:47]Read from MH i2c: E2 03 00 [14:59:47]MH_I2C_Read... [14:59:47]Read from MH i2c: E2 03 00 0B 64 00 90 00 E3 [14:59:47]RAPDU: 90 00 [14:59:47]wFMCommunicate OK [14:59:47]SAM_PROTO_ClearQueue done [14:59:47]KKMCreateOFDPacket [14:59:47]OFDProtocolAddRootSTLVToBuf [14:59:47]FM_MakeSignedData [14:59:47]FM_MakeSignedData [14:59:47]SAM_PROTO_SignData [14:59:47]wFMCommunicate request_size=4 [14:59:47]MH_SAM_APDU [14:59:47]CAPDU: 80 0D 01 02 [14:59:47]Write to MH i2c: E2 08 00 0C 64 80 0D 01 02 00 00 00 00 E9 [14:59:47]Write i2c OK [14:59:47]MH_I2C_Read... [14:59:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:59:47]Read from MH i2c: E2 [14:59:47]MH_I2C_Read... [14:59:47]Read from MH i2c: E2 03 00 [14:59:47]MH_I2C_Read... [14:59:47]Read from MH i2c: E2 03 00 0C 64 00 90 00 E4 [14:59:47]RAPDU: 90 00 [14:59:47]wFMCommunicate OK [14:59:47]wFMCommunicate request_size=255 [14:59:47]MH_SAM_APDU [14:59: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 33 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 EE 00 00 00 F4 03 04 00 66 6C 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 7E DD 02 00 35 04 06 00 16 [14:59:47]Write to MH i2c: E2 02 01 0D 64 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 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 EE 00 00 00 F4 03 04 00 66 6C 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 7E DD 02 00 35 04 06 00 16 00 00 E0 [14:59:47]Write i2c OK [14:59:47]MH_I2C_Read... [14:59:47]ConnectInit Can't connect to host [14:59:47]CommunicateWithHost connect error [14:59:47]CommunicateWithHost err = -1 [14:59:47]OFD Sender: Server communicate error [14:59:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:59:47]Read from MH i2c: E2 [14:59:47]MH_I2C_Read... [14:59:47]Read from MH i2c: E2 03 00 [14:59:47]MH_I2C_Read... [14:59:47]Read from MH i2c: E2 03 00 0D 64 00 90 00 E5 [14:59:47]RAPDU: 90 00 [14:59:47]wFMCommunicate OK [14:59:47]wFMCommunicate request_size=10 [14:59:47]MH_SAM_APDU [14:59:47]CAPDU: 80 0D 02 02 05 05 05 E2 3E 9D [14:59:47]Write to MH i2c: E2 0D 00 0E 64 80 0D 02 02 05 00 05 05 E2 3E 9D 00 00 BD [14:59:47]Write i2c OK [14:59:47]MH_I2C_Read... [14:59:47]OFD Sender: Processing packet 187772 [packets to send 1063, broken 1061] [14:59:47]ProducePacketName [14:59:47]name=ofd_packets/00187772 [14:59:47]OFD Sender: To server: pG, [14:59:47]CommunicateWithHost lk.salyk.kg:30040 [14:59:47]ConnectInit lk.salyk.kg [14:59:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:59:47]Read from MH i2c: E2 [14:59:47]MH_I2C_Read... [14:59:47]Read from MH i2c: E2 03 00 [14:59:47]MH_I2C_Read... [14:59:47]Read from MH i2c: E2 03 00 0E 64 00 90 00 E6 [14:59:47]RAPDU: 90 00 [14:59:47]wFMCommunicate OK [14:59:47]wFMCommunicate request_size=4 [14:59:47]MH_SAM_APDU [14:59:47]CAPDU: 80 0D 03 02 [14:59:47]Write to MH i2c: E2 08 00 0F 64 80 0D 03 02 00 00 00 00 EE [14:59:47]Write i2c OK [14:59:47]MH_I2C_Read... [14:59:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:59:47]Read from MH i2c: E2 [14:59:47]MH_I2C_Read... [14:59:47]Read from MH i2c: E2 0B 00 [14:59:47]MH_I2C_Read... [14:59:47]Read from MH i2c: E2 0B 00 0F 64 00 F5 D9 5F 3C DD B9 CE A0 90 00 5C [14:59:47]RAPDU: F5 D9 5F 3C DD B9 CE A0 90 00 [14:59:47]wFMCommunicate OK [14:59:47]SAM_PROTO_SignData done [14:59:47]FM_MakeSignedData done [14:59:47]CreateOFDProtocolMessage [14:59:47]wFMCommunicate request_size=4 [14:59:47]MH_SAM_APDU [14:59:47]CAPDU: 80 11 00 00 [14:59:47]Write to MH i2c: E2 08 00 10 64 80 11 00 00 00 00 00 00 EE [14:59:47]Write i2c OK [14:59:47]MH_I2C_Read... [14:59:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:59:47]Read from MH i2c: E2 [14:59:47]MH_I2C_Read... [14:59:47]Read from MH i2c: E2 17 00 [14:59:47]MH_I2C_Read... [14:59:47]Read from MH i2c: E2 17 00 10 64 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 3C [14:59:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [14:59:47]wFMCommunicate OK [14:59:47]CreateOFDProtocolMessage done [14:59:47]OFDSenderStorePacket 187774 [14:59:47]StoreOFDPacket docnum=187774 [14:59:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 A5 A1 07 01 5D 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 33 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 EE 00 00 00 F4 03 04 00 66 6C 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 7E DD 02 00 35 04 06 00 16 05 05 E2 3E 9D F5 D9 5F 3C DD B9 CE A0 [14:59:47]CheckFolder [14:59:47]dirname=/storage/ofd_packets [14:59:47]CheckFolder done [14:59:47]ProducePacketName [14:59:47]name=ofd_packets/00187774 [14:59:47]NVStorageSaveData ofd_packets/00187774 [14:59:47]File name is /storage/ofd_packets/00187774 [14:59:47]Write 301 bytes [14:59:47]NVStorageSaveData done [14:59:47]OFDSenderStorePacket done [14:59:47]KKMCreateOFDPacket done [14:59:47]NVStorageSaveData kkm_last_timestamp [14:59:47]File name is /storage/kkm_last_timestamp [14:59:47]Write 4 bytes [14:59:47]NVStorageSaveData done [14:59:47]ExternCall_PrintAddStr [14:59:47]wPrintStart [14:59:47]Write to MH i2c: 01 00 00 11 64 75 [14:59:47]Write i2c OK [14:59:47]MH_I2C_Read... [14:59:47]Read from MH i2c: 01 [14:59:47]MH_I2C_Read... [14:59:47]Read from MH i2c: 01 07 00 [14:59:47]MH_I2C_Read... [14:59:47]Read from MH i2c: 01 07 00 11 64 00 00 00 00 00 FF 0F 8A [14:59:47]RasterBufferAndPrint [14:59:47]line Счет N : (1)209826 [14:59:47]line ИНН: 02508201610067 [14:59:47]line Контрольно-Кассовый Чек [14:59:47]line ПРОДАЖА [14:59:47]line ТРК (МРК, ГНК) : 32 [14:59:47]line Товар: 2710124130 [14:59:47]line Аи-92-К-3 [14:59:47]line 17.940 * 66.90 [14:59:47]line = 1200.19 [14:59:47]line НДС 12% НСП 1% [14:59:47]line > о реализуемом товаре [14:59:47]line ОКРУГЛЕНИЕ: -0.19 [14:59:47]line ИТОГО: 1200.00 [14:59:47]line Внесено: 1200.00 [14:59:47]line СДАЧА: 0.00 [14:59:47]line НСП 1% : 10.62 [14:59:47]line НДС 12% : 127.45 [14:59:47]line Наличными: 1200.00 [14:59:47]line Безнал.: 0.00 [14:59:47]line Место: АЗС № 86 "Партнер Нефть" [14:59:47]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [14:59:47]line СНО: Общий режим [14:59:47]line Чек 238 21.10.2024 14:59 [14:59:47]line Смена: 460 ФФД: 1.0 [14:59:47]line ЗНМ: 0300000155 [14:59:47]line РНМ: 0000000000100030 [14:59:47]line Версия ККМ: 001 [14:59:47]line ФМ: 0000000000965340 [14:59:47]line ФД: 187774 [14:59:47]line ФПД: 24210829360797 [14:59:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T145950&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187774&fm=24210829360797&tin=02508201610067®Number=0000000000100030&sum=120000 [14:59:48]Connected sock=10 [14:59:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 C2 73 0D 01 59 0A 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 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 F0 F4 01 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 3D 1B 0F 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3D 1B 0F 00 00 00 EB 03 26 00 written 0, free lines is 4095 [14:59:48]EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 22 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AE 9A 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 3D 1B 0F 00 00 00 1F 04 02 00 01 00 12 04 04 00 EC 00 00 00 F4 03 04 00 E1 6B 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 7C DD 02 00 35 04 06 00 F7 F5 D3 88 80 0B 2F 79 8D 01 74 95 A0 C1 [14:59:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 D2 8F 47 00 A9 7A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 7C DD 02 00 F4 03 04 00 56 16 16 67 B6 04 01 00 00 EF F4 24 37 DC FA 95 D9 [14:59:48]CommunicateWithHost err = 0 [14:59:48]CheckOFDResponse [14:59:48]1017 (14) - 77093643461234 [14:59:48]1041 (16) - 0000000000965340 [14:59:48]1040 (4) - 187772 [14:59:48]1012 (4) - 21.10.2024 08:52 [14:59:48]1206 (1) - 0 [14:59:48]OFD Sender: Remove packet 187772 [14:59:48]ProducePacketName [14:59:48]name=ofd_packets/00187772 [14:59:48]NVStorageDeleteData [14:59:48]Write to MH i2c: 01 00 00 3C 64 A0 [14:59:48]Write i2c OK [14:59:48]MH_I2C_Read... [14:59:48]Read from MH i2c: 01 [14:59:48]MH_I2C_Read... [14:59:48]Read from MH i2c: 01 07 00 [14:59:48]MH_I2C_Read... [14:59:48]Read from MH i2c: 01 07 00 3C 64 00 00 00 00 00 6A 0C 1D [14:59:48]RasterBufferAndPrint [14:59:48]line [14:59:48]line [14:59:48]line [14:59:48]line [14:59:48]line [14:59:48]written 0, free lines is 3181 [14:59:48]MH_Cut [14:59:48]Write to MH i2c: D1 01 00 43 64 01 79 [14:59:48]Write i2c OK [14:59:48]MH_I2C_Read... [14:59:48]Read from MH i2c: D1 [14:59:48]MH_I2C_Read... [14:59:48]Read from MH i2c: D1 01 00 [14:59:48]MH_I2C_Read... [14:59:48]Read from MH i2c: D1 01 00 43 64 00 78 [14:59:48]Write to MH i2c: 01 00 00 44 64 A8 [14:59:48]Write i2c OK [14:59:48]MH_I2C_Read... [14:59:49]OFD Sender: Processing packet 187773 [packets to send 1063, broken 1061] [14:59:49]ProducePacketName [14:59:49]name=ofd_packets/00187773 [14:59:49]OFD Sender: To server: pG, [14:59:49]CommunicateWithHost lk.salyk.kg:30040 [14:59:49]ConnectInit lk.salyk.kg [14:59:49]Connected sock=10 [14:59:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 52 1D 07 01 FB 73 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 ED 00 00 00 F4 03 04 00 F1 6B 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 7D DD 02 00 35 04 06 00 4E 7D CE 36 E0 0A 16 AD D4 B9 1E 58 65 E5 [14:59:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 EF DD 47 00 50 87 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 7D DD 02 00 F4 03 04 00 57 16 16 67 B6 04 01 00 00 54 17 9C EA 9C BF 48 26 [14:59:49]CommunicateWithHost err = 0 [14:59:49]CheckOFDResponse [14:59:49]1017 (14) - 77093643461234 [14:59:49]1041 (16) - 0000000000965340 [14:59:49]1040 (4) - 187773 [14:59:49]1012 (4) - 21.10.2024 08:52 [14:59:49]1206 (1) - 0 [14:59:49]OFD Sender: Remove packet 187773 [14:59:49]ProducePacketName [14:59:49]name=ofd_packets/00187773 [14:59:49]NVStorageDeleteData [14:59:49]*** Cut start [14:59:49]*** Partial cut [14:59:49]*** CUTSNS_PIN = 1 [14:59:49]*** CUTSNS_PIN = 0 [14:59:50]*** Brake cut motor [14:59:50]OFD Sender: Processing packet 187774 [packets to send 1062, broken 1061] [14:59:50]ProducePacketName [14:59:50]name=ofd_packets/00187774 [14:59:50]OFD Sender: To server: pG, [14:59:50]CommunicateWithHost lk.salyk.kg:30040 [14:59:50]ConnectInit lk.salyk.kg [14:59:50]Read from MH i2c: 01 [14:59:50]MH_I2C_Read... [14:59:50]*** Stop cut motor [14:59:50]*** Cut end [14:59:50]Read from MH i2c: 01 07 00 [14:59:50]MH_I2C_Read... [14:59:50]Connected sock=10 [14:59:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 A5 A1 07 01 5D 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 33 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 EE 00 00 00 F4 03 04 00 66 6C 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 7E DD 02 00 35 04 06 00 16 05 05 E2 3E 9D F5 D9 5F 3C DD B9 CE A0 [14:59:50]Read from MH i2c: 01 07 00 44 64 00 00 00 00 00 FF 0F BD [14:59:50]process_action close_receipt done [14:59:50]requested_data is exist [14:59:50]produce_requested_data [14:59:50]requested_item fm.sn is exist - process it [14:59:50]wFMCommunicate request_size=4 [14:59:50]MH_SAM_APDU [14:59:50]CAPDU: 80 11 00 00 [14:59:50]Write to MH i2c: E2 08 00 45 64 80 11 00 00 00 00 00 00 23 [14:59:50]Write i2c OK [14:59:50]MH_I2C_Read... [14:59:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:59:50]Read from MH i2c: E2 [14:59:50]MH_I2C_Read... [14:59:50]Read from MH i2c: E2 17 00 [14:59:50]MH_I2C_Read... [14:59:50]Read from MH i2c: E2 17 00 45 64 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 71 [14:59:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [14:59:50]wFMCommunicate OK [14:59:50]requested_item fd.num is exist - process it [14:59:50]SAM_PROTO_GetFieldsCounters [14:59:50]wFMCommunicate request_size=4 [14:59:50]MH_SAM_APDU [14:59:50]CAPDU: 80 13 00 00 [14:59:50]Write to MH i2c: E2 08 00 46 64 80 13 00 00 00 00 00 00 26 [14:59:50]Write i2c OK [14:59:50]MH_I2C_Read... [14:59:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:59:50]Read from MH i2c: E2 [14:59:50]MH_I2C_Read... [14:59:50]Read from MH i2c: E2 62 00 [14:59:50]MH_I2C_Read... [14:59:50]Read from MH i2c: E2 62 00 46 64 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 7E DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 EE 00 00 00 5E 04 04 00 EE 00 00 00 57 04 04 00 EF 00 00 00 19 04 04 00 00 00 00 00 90 00 21 [14:59:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 7E DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 EE 00 00 00 5E 04 04 00 EE 00 00 00 57 04 04 00 EF 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:59:50]wFMCommunicate OK [14:59:50]SAM_PROTO_GetFieldsCounters done [14:59:50]requested_item shift.num is exist - process it [14:59:50]requested_item shift.opened is exist - process it [14:59:50]req_shift_opened [14:59:50]FM_GetShiftState [14:59:50]SAM_PROTO_GetShiftState [14:59:50]wFMCommunicate request_size=4 [14:59:50]MH_SAM_APDU [14:59:50]CAPDU: 80 13 01 00 [14:59:50]Write to MH i2c: E2 08 00 47 64 80 13 01 00 00 00 00 00 28 [14:59:50]Write i2c OK [14:59:50]MH_I2C_Read... [14:59:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:59:50]Read from MH i2c: E2 [14:59:50]MH_I2C_Read... [14:59:50]Read from MH i2c: E2 0E 00 [14:59:50]MH_I2C_Read... [14:59:50]Read from MH i2c: E2 0E 00 47 64 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 87 [14:59:50]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [14:59:50]wFMCommunicate OK [14:59:50]SAM_PROTO_GetShiftState done [14:59:50]FM_GetShiftState done [14:59:50]req_shift_opened done [14:59:50]requested_item shift.open_date is exist - process it [14:59:50]req_shift_open_date [14:59:50]req_shift_open_date done [14:59:50]produce_requested_data done [14:59:50]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187774,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [14:59:50]process_action_free close_receipt [14:59:50]json_value_free [14:59:50]json_value_free done [14:59:50]process_json_proto returns [14:59:50]Send response to host [14:59:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187774,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [14:59:50]free response buf [14:59:50]execute_script done [14:59:50]execute_script returns [14:59:50]free content buf [14:59:50]Sock 8.Close socket [14:59:50]Sock 8.Thread stoped [14:59:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 85 D7 47 00 A2 F2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 7E DD 02 00 F4 03 04 00 58 16 16 67 B6 04 01 00 00 F8 3D 37 BC 39 24 F5 EB [14:59:50]CommunicateWithHost err = 0 [14:59:50]CheckOFDResponse [14:59:50]1017 (14) - 77093643461234 [14:59:50]1041 (16) - 0000000000965340 [14:59:50]1040 (4) - 187774 [14:59:50]1012 (4) - 21.10.2024 08:52 [14:59:50]1206 (1) - 0 [14:59:50]OFD Sender: Remove packet 187774 [14:59:50]ProducePacketName [14:59:50]name=ofd_packets/00187774 [14:59:50]NVStorageDeleteData [14:59:51]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:53]accept exits with 9 [15:00:53]New connection [15:00:53]New thread 3067014500 created [15:00:53]Thread 3067157860 joined [15:00:53]Waiting for new connection... [15:00:53] Sock 9.Parse request [15:00:53]Sock 9.Check first char [15:00:53]Sock 9.First char is OK [15:00:53]request: POST /json_proto HTTP/1.0 [15:00:53]Method: POST [15:00:53]URL: /json_proto [15:00:53]Method is POST - this is cgi request [15:00:53]url: /json_proto [15:00:53]query_string will be loaded in cgi processing [15:00:53]execute_cgi json_proto POST (null) [15:00:53]execute_cgi path=json_proto method=POST [15:00:53]POST find Content-Length [15:00:53]Host: 172.17.42.131:8080 [15:00:53]Content-Length: 677 [15:00:53]Content-Type: application/json [15:00:53] [15:00:53]POST finish read [15:00:53]Found Content-Length = 677 [15:00:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209827", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:00:53]execute_script... [15:00: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)209827", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:00:53]POST & json_proto [15:00:53]process_json_proto [15:00:53]json parsed OK: [15:00:53]protocol is kg_v1.0 [15:00:53]action value=close_receipt [15:00:53]process_action close_receipt [15:00:53]cmd_close_receipt [15:00:53]MH_GetDate [15:00:53]Write to MH i2c: F0 00 00 48 64 9B [15:00:53]Write i2c OK [15:00:53]MH_I2C_Read... [15:00:53]Read from MH i2c: F0 [15:00:53]MH_I2C_Read... [15:00:53]Read from MH i2c: F0 09 00 [15:00:53]MH_I2C_Read... [15:00:53]Read from MH i2c: F0 09 00 48 64 00 AA 6C 16 67 A0 18 CA 66 1F [15:00:53]GetLastDocTimeStamp 1729522790 [15:00:53]current date 1729522858 [15:00:53]FM_GetShiftState [15:00:53]SAM_PROTO_GetShiftState [15:00:53]wFMCommunicate request_size=4 [15:00:53]MH_SAM_APDU [15:00:53]CAPDU: 80 13 01 00 [15:00:53]Write to MH i2c: E2 08 00 49 64 80 13 01 00 00 00 00 00 2A [15:00:53]Write i2c OK [15:00:53]MH_I2C_Read... [15:00:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:00:53]Read from MH i2c: E2 [15:00:53]MH_I2C_Read... [15:00:53]Read from MH i2c: E2 0E 00 [15:00:53]MH_I2C_Read... [15:00:53]Read from MH i2c: E2 0E 00 49 64 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 89 [15:00:53]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [15:00:53]wFMCommunicate OK [15:00:53]SAM_PROTO_GetShiftState done [15:00:53]FM_GetShiftState done [15:00:53]opened in 1729469754 [15:00:53]opened+sec_in_day 1729556154 [15:00:53]quantity*price = 50041 [15:00:53]sum+1 = 50042 [15:00: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 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 239 21.10.2024 15:00 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 187775 ФПД: 259283162035627 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T150058&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187775&fm=259283162035627&tin=02508201610067®Number=0000000000100030&sum=50000 [15:00:55]StoreToDocumentArchive [15:00:55]shift 460 fd 187775 [15:00:55]save to /storage/0460/doc_00187775 [15:00:55]save last doc name /storage/0460/doc_00187775 to /storage/kkm_last_doc_name [15:00:55]save OK [15:00:55]Clear old archive folders... [15:00:55]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:00:55]tlvbuf is 0109A450 [15:00:55]SAM_PROTO_ClearQueue [15:00:55]wFMCommunicate request_size=4 [15:00:55]MH_SAM_APDU [15:00:55]CAPDU: 80 09 00 00 [15:00:55]Write to MH i2c: E2 08 00 56 64 80 09 00 00 00 00 00 00 2C [15:00:55]Write i2c OK [15:00:55]MH_I2C_Read... [15:00:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:00:55]Read from MH i2c: E2 [15:00:55]MH_I2C_Read... [15:00:55]Read from MH i2c: E2 03 00 [15:00:55]MH_I2C_Read... [15:00:55]Read from MH i2c: E2 03 00 56 64 00 90 00 2E [15:00:55]RAPDU: 90 00 [15:00:55]wFMCommunicate OK [15:00:55]SAM_PROTO_ClearQueue done [15:00:55]KKMCreateOFDPacket [15:00:55]OFDProtocolAddRootSTLVToBuf [15:00:55]FM_MakeSignedData [15:00:55]FM_MakeSignedData [15:00:55]SAM_PROTO_SignData [15:00:55]wFMCommunicate request_size=4 [15:00:55]MH_SAM_APDU [15:00:55]CAPDU: 80 0D 01 02 [15:00:55]Write to MH i2c: E2 08 00 57 64 80 0D 01 02 00 00 00 00 34 [15:00:55]Write i2c OK [15:00:55]MH_I2C_Read... [15:00:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:00:55]Read from MH i2c: E2 [15:00:55]MH_I2C_Read... [15:00:55]Read from MH i2c: E2 03 00 [15:00:55]MH_I2C_Read... [15:00:55]Read from MH i2c: E2 03 00 57 64 00 90 00 2F [15:00:55]RAPDU: 90 00 [15:00:55]wFMCommunicate OK [15:00:55]wFMCommunicate request_size=255 [15:00:55]MH_SAM_APDU [15:00: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 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EF 00 00 00 F4 03 04 00 AA 6C 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 7F DD 02 00 35 04 06 00 EB [15:00:55]Write to MH i2c: E2 02 01 58 64 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EF 00 00 00 F4 03 04 00 AA 6C 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 7F DD 02 00 35 04 06 00 EB 00 00 3F [15:00:55]Write i2c OK [15:00:55]MH_I2C_Read... [15:00:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:00:55]Read from MH i2c: E2 [15:00:55]MH_I2C_Read... [15:00:55]Read from MH i2c: E2 03 00 [15:00:55]MH_I2C_Read... [15:00:55]Read from MH i2c: E2 03 00 58 64 00 90 00 30 [15:00:55]RAPDU: 90 00 [15:00:55]wFMCommunicate OK [15:00:55]wFMCommunicate request_size=10 [15:00:55]MH_SAM_APDU [15:00:55]CAPDU: 80 0D 02 02 05 D1 10 C4 F5 AB [15:00:55]Write to MH i2c: E2 0D 00 59 64 80 0D 02 02 05 00 D1 10 C4 F5 AB 00 00 86 [15:00:55]Write i2c OK [15:00:55]MH_I2C_Read... [15:00:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:00:55]Read from MH i2c: E2 [15:00:55]MH_I2C_Read... [15:00:55]Read from MH i2c: E2 03 00 [15:00:55]MH_I2C_Read... [15:00:55]Read from MH i2c: E2 03 00 59 64 00 90 00 31 [15:00:55]RAPDU: 90 00 [15:00:55]wFMCommunicate OK [15:00:55]wFMCommunicate request_size=4 [15:00:55]MH_SAM_APDU [15:00:55]CAPDU: 80 0D 03 02 [15:00:55]Write to MH i2c: E2 08 00 5A 64 80 0D 03 02 00 00 00 00 39 [15:00:55]Write i2c OK [15:00:55]MH_I2C_Read... [15:00:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:00:55]Read from MH i2c: E2 [15:00:55]MH_I2C_Read... [15:00:55]Read from MH i2c: E2 0B 00 [15:00:55]MH_I2C_Read... [15:00:55]Read from MH i2c: E2 0B 00 5A 64 00 2D 8E 5B 8C 63 CC F1 D3 90 00 CF [15:00:55]RAPDU: 2D 8E 5B 8C 63 CC F1 D3 90 00 [15:00:55]wFMCommunicate OK [15:00:55]SAM_PROTO_SignData done [15:00:55]FM_MakeSignedData done [15:00:55]CreateOFDProtocolMessage [15:00:55]wFMCommunicate request_size=4 [15:00:55]MH_SAM_APDU [15:00:55]CAPDU: 80 11 00 00 [15:00:55]Write to MH i2c: E2 08 00 5B 64 80 11 00 00 00 00 00 00 39 [15:00:55]Write i2c OK [15:00:55]MH_I2C_Read... [15:00:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:00:55]Read from MH i2c: E2 [15:00:55]MH_I2C_Read... [15:00:55]Read from MH i2c: E2 17 00 [15:00:55]MH_I2C_Read... [15:00:55]Read from MH i2c: E2 17 00 5B 64 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 87 [15:00:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [15:00:55]wFMCommunicate OK [15:00:55]CreateOFDProtocolMessage done [15:00:55]OFDSenderStorePacket 187775 [15:00:55]StoreOFDPacket docnum=187775 [15:00:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 3E E4 07 01 9A 8D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EF 00 00 00 F4 03 04 00 AA 6C 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 7F DD 02 00 35 04 06 00 EB D1 10 C4 F5 AB 2D 8E 5B 8C 63 CC F1 D3 [15:00:55]CheckFolder [15:00:55]dirname=/storage/ofd_packets [15:00:55]CheckFolder done [15:00:55]ProducePacketName [15:00:55]name=ofd_packets/00187775 [15:00:55]NVStorageSaveData ofd_packets/00187775 [15:00:55]File name is /storage/ofd_packets/00187775 [15:00:55]Write 301 bytes [15:00:55]NVStorageSaveData done [15:00:55]OFDSenderStorePacket done [15:00:55]KKMCreateOFDPacket done [15:00:55]NVStorageSaveData kkm_last_timestamp [15:00:55]File name is /storage/kkm_last_timestamp [15:00:55]Write 4 bytes [15:00:55]NVStorageSaveData done [15:00:55]ExternCall_PrintAddStr [15:00:55]wPrintStart [15:00:55]Write to MH i2c: 01 00 00 5C 64 C0 [15:00:55]Write i2c OK [15:00:55]MH_I2C_Read... [15:00:55]Read from MH i2c: 01 [15:00:55]MH_I2C_Read... [15:00:55]Read from MH i2c: 01 07 00 [15:00:55]MH_I2C_Read... [15:00:55]Read from MH i2c: 01 07 00 5C 64 00 00 00 00 00 FF 0F D5 [15:00:55]RasterBufferAndPrint [15:00:55]line Счет N : (1)209827 [15:00:55]line ИНН: 02508201610067 [15:00:55]line Контрольно-Кассовый Чек [15:00:55]line ПРОДАЖА [15:00:55]line ТРК (МРК, ГНК) : 42 [15:00:55]line Товар: 2710124130 [15:00:55]line Аи-92-К-3 [15:00:55]line 7.480 * 66.90 [15:00:55]line = 500.41 [15:00:55]line НДС 12% НСП 1% [15:00:55]line > о реализуемом товаре [15:00:55]line ОКРУГЛЕНИЕ: -0.41 [15:00:55]line ИТОГО: 500.00 [15:00:55]line Внесено: 500.00 [15:00:55]line СДАЧА: 0.00 [15:00:55]line НСП 1% : 4.43 [15:00:55]line НДС 12% : 53.14 [15:00:55]line Наличными: 500.00 [15:00:55]line Безнал.: 0.00 [15:00:55]line Место: АЗС № 86 "Партнер Нефть" [15:00:55]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [15:00:55]line СНО: Общий режим [15:00:55]line Чек 239 21.10.2024 15:00 [15:00:55]line Смена: 460 ФФД: 1.0 [15:00:55]line ЗНМ: 0300000155 [15:00:55]line РНМ: 0000000000100030 [15:00:55]line Версия ККМ: 001 [15:00:55]line ФМ: 0000000000965340 [15:00:55]line ФД: 187775 [15:00:55]line ФПД: 259283162035627 [15:00:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T150058&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187775&fm=259283162035627&tin=02508201610067®Number=0000000000100030&sum=50000 [15:00:55]OFD Sender: Processing packet 187775 [packets to send 1062, broken 1061] [15:00:55]ProducePacketName [15:00:55]name=ofd_packets/00187775 [15:00:55]OFD Sender: To server: pG, [15:00:55]CommunicateWithHost lk.salyk.kg:30040 [15:00:55]ConnectInit lk.salyk.kg [15:00:55]written 0, free lines is 4095 [15:00:56]Connected sock=10 [15:00:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 3E E4 07 01 9A 8D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EF 00 00 00 F4 03 04 00 AA 6C 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 7F DD 02 00 35 04 06 00 EB D1 10 C4 F5 AB 2D 8E 5B 8C 63 CC F1 D3 [15:00:56]Write to MH i2c: 01 00 00 87 64 EB [15:00:56]Write i2c OK [15:00:56]MH_I2C_Read... [15:00:56]Read from MH i2c: 01 [15:00:56]MH_I2C_Read... [15:00:56]Read from MH i2c: 01 07 00 [15:00:56]MH_I2C_Read... [15:00:56]Read from MH i2c: 01 07 00 87 64 00 00 00 00 00 69 0C 67 [15:00:56]RasterBufferAndPrint [15:00:56]line [15:00:56]line [15:00:56]line [15:00:56]line [15:00:56]line [15:00:56]written 0, free lines is 3180 [15:00:56]MH_Cut [15:00:56]Write to MH i2c: D1 01 00 8E 64 01 C4 [15:00:56]Write i2c OK [15:00:56]MH_I2C_Read... [15:00:56]Read from MH i2c: D1 [15:00:56]MH_I2C_Read... [15:00:56]Read from MH i2c: D1 01 00 [15:00:56]MH_I2C_Read... [15:00:56]Read from MH i2c: D1 01 00 8E 64 00 C3 [15:00:56]Write to MH i2c: 01 00 00 8F 64 F3 [15:00:56]Write i2c OK [15:00:56]MH_I2C_Read... [15:00:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 FB 5A 47 00 B3 2B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 7F DD 02 00 F4 03 04 00 9A 16 16 67 B6 04 01 00 00 4F 10 84 9B 48 A3 27 9A [15:00:56]CommunicateWithHost err = 0 [15:00:56]CheckOFDResponse [15:00:56]1017 (14) - 77093643461234 [15:00:56]1041 (16) - 0000000000965340 [15:00:56]1040 (4) - 187775 [15:00:56]1012 (4) - 21.10.2024 08:53 [15:00:56]1206 (1) - 0 [15:00:56]OFD Sender: Remove packet 187775 [15:00:56]ProducePacketName [15:00:56]name=ofd_packets/00187775 [15:00:56]NVStorageDeleteData [15:00:57]OFD Sender: No OFD packet to send [15:00:57]*** Cut start [15:00:57]*** Partial cut [15:00:57]*** CUTSNS_PIN = 1 [15:00:57]*** CUTSNS_PIN = 0 [15:00:57]*** Brake cut motor [15:00:58]Read from MH i2c: 01 [15:00:58]MH_I2C_Read... [15:00:58]*** Stop cut motor [15:00:58]*** Cut end [15:00:58]Read from MH i2c: 01 07 00 [15:00:58]MH_I2C_Read... [15:00:58]Read from MH i2c: 01 07 00 8F 64 00 00 00 00 00 FF 0F 08 [15:00:58]process_action close_receipt done [15:00:58]requested_data is exist [15:00:58]produce_requested_data [15:00:58]requested_item fm.sn is exist - process it [15:00:58]wFMCommunicate request_size=4 [15:00:58]MH_SAM_APDU [15:00:58]CAPDU: 80 11 00 00 [15:00:58]Write to MH i2c: E2 08 00 90 64 80 11 00 00 00 00 00 00 6E [15:00:58]Write i2c OK [15:00:58]MH_I2C_Read... [15:00:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:00:58]Read from MH i2c: E2 [15:00:58]MH_I2C_Read... [15:00:58]Read from MH i2c: E2 17 00 [15:00:58]MH_I2C_Read... [15:00:58]Read from MH i2c: E2 17 00 90 64 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 BC [15:00:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [15:00:58]wFMCommunicate OK [15:00:58]requested_item fd.num is exist - process it [15:00:58]SAM_PROTO_GetFieldsCounters [15:00:58]wFMCommunicate request_size=4 [15:00:58]MH_SAM_APDU [15:00:58]CAPDU: 80 13 00 00 [15:00:58]Write to MH i2c: E2 08 00 91 64 80 13 00 00 00 00 00 00 71 [15:00:58]Write i2c OK [15:00:58]MH_I2C_Read... [15:00:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:00:58]Read from MH i2c: E2 [15:00:58]MH_I2C_Read... [15:00:58]Read from MH i2c: E2 62 00 [15:00:58]MH_I2C_Read... [15:00:58]Read from MH i2c: E2 62 00 91 64 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 7F DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 EF 00 00 00 5E 04 04 00 EF 00 00 00 57 04 04 00 F0 00 00 00 19 04 04 00 00 00 00 00 90 00 70 [15:00:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 7F DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 EF 00 00 00 5E 04 04 00 EF 00 00 00 57 04 04 00 F0 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:00:58]wFMCommunicate OK [15:00:58]SAM_PROTO_GetFieldsCounters done [15:00:58]requested_item shift.num is exist - process it [15:00:58]requested_item shift.opened is exist - process it [15:00:58]req_shift_opened [15:00:58]FM_GetShiftState [15:00:58]SAM_PROTO_GetShiftState [15:00:58]wFMCommunicate request_size=4 [15:00:58]MH_SAM_APDU [15:00:58]CAPDU: 80 13 01 00 [15:00:58]Write to MH i2c: E2 08 00 92 64 80 13 01 00 00 00 00 00 73 [15:00:58]Write i2c OK [15:00:58]MH_I2C_Read... [15:00:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:00:58]Read from MH i2c: E2 [15:00:58]MH_I2C_Read... [15:00:58]Read from MH i2c: E2 0E 00 [15:00:58]MH_I2C_Read... [15:00:58]Read from MH i2c: E2 0E 00 92 64 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 D2 [15:00:58]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [15:00:58]wFMCommunicate OK [15:00:58]SAM_PROTO_GetShiftState done [15:00:58]FM_GetShiftState done [15:00:58]req_shift_opened done [15:00:58]requested_item shift.open_date is exist - process it [15:00:58]req_shift_open_date [15:00:58]req_shift_open_date done [15:00:58]produce_requested_data done [15:00:58]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187775,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [15:00:58]process_action_free close_receipt [15:00:58]json_value_free [15:00:58]json_value_free done [15:00:58]process_json_proto returns [15:00:58]Send response to host [15:00:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187775,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [15:00:58]free response buf [15:00:58]execute_script done [15:00:58]execute_script returns [15:00:58]free content buf [15:00:58]Sock 9.Close socket [15:00:58]Sock 9.Thread stoped [15:01:02]OFD Sender: No OFD packet to send [15:01:07]OFD Sender: No OFD packet to send [15:01:12]OFD Sender: No OFD packet to send [15:01:17]OFD Sender: No OFD packet to send [15:01:22]OFD Sender: No OFD packet to send [15:01:27]OFD Sender: No OFD packet to send [15:01:32]OFD Sender: No OFD packet to send [15:01:37]OFD Sender: No OFD packet to send [15:01:42]OFD Sender: No OFD packet to send [15:01:47]OFD Sender: No OFD packet to send [15:01:52]OFD Sender: No OFD packet to send [15:01:57]OFD Sender: No OFD packet to send [15:02:02]OFD Sender: No OFD packet to send [15:02:07]OFD Sender: No OFD packet to send [15:02:12]OFD Sender: No OFD packet to send [15:02:17]OFD Sender: No OFD packet to send [15:02:22]OFD Sender: No OFD packet to send [15:02:27]OFD Sender: No OFD packet to send [15:02:32]OFD Sender: No OFD packet to send [15:02:37]OFD Sender: No OFD packet to send [15:02:42]OFD Sender: No OFD packet to send [15:02:47]OFD Sender: No OFD packet to send [15:02:52]OFD Sender: No OFD packet to send [15:02:57]OFD Sender: No OFD packet to send [15:03:02]OFD Sender: No OFD packet to send [15:03:07]OFD Sender: No OFD packet to send [15:03:12]OFD Sender: No OFD packet to send [15:03:17]OFD Sender: No OFD packet to send [15:03:22]OFD Sender: No OFD packet to send [15:03:27]OFD Sender: No OFD packet to send [15:03:32]OFD Sender: No OFD packet to send [15:03:37]OFD Sender: No OFD packet to send [15:03:42]OFD Sender: No OFD packet to send [15:03:47]OFD Sender: No OFD packet to send [15:03:52]OFD Sender: No OFD packet to send [15:03:57]OFD Sender: No OFD packet to send [15:04:02]OFD Sender: No OFD packet to send [15:04:07]OFD Sender: No OFD packet to send [15:04:12]OFD Sender: No OFD packet to send [15:04:17]OFD Sender: No OFD packet to send [15:04:22]OFD Sender: No OFD packet to send [15:04:27]OFD Sender: No OFD packet to send [15:04:32]OFD Sender: No OFD packet to send [15:04:38]OFD Sender: No OFD packet to send [15:04:43]OFD Sender: No OFD packet to send [15:04:48]OFD Sender: No OFD packet to send [15:04:53]OFD Sender: No OFD packet to send [15:04:58]OFD Sender: No OFD packet to send [15:05:03]OFD Sender: No OFD packet to send [15:05:08]OFD Sender: No OFD packet to send [15:05:13]OFD Sender: No OFD packet to send [15:05:18]OFD Sender: No OFD packet to send [15:05:23]OFD Sender: No OFD packet to send [15:05:28]OFD Sender: No OFD packet to send [15:05:33]OFD Sender: No OFD packet to send [15:05:38]OFD Sender: No OFD packet to send [15:05:43]OFD Sender: No OFD packet to send [15:05:48]OFD Sender: No OFD packet to send [15:05:53]OFD Sender: No OFD packet to send [15:05:58]OFD Sender: No OFD packet to send [15:06:03]OFD Sender: No OFD packet to send [15:06:08]OFD Sender: No OFD packet to send [15:06:13]OFD Sender: No OFD packet to send [15:06:18]OFD Sender: No OFD packet to send [15:06:23]OFD Sender: No OFD packet to send [15:06:28]OFD Sender: No OFD packet to send [15:06:33]OFD Sender: No OFD packet to send [15:06:38]OFD Sender: No OFD packet to send [15:06:43]OFD Sender: No OFD packet to send [15:06:48]OFD Sender: No OFD packet to send [15:06:53]OFD Sender: No OFD packet to send [15:06:56]accept exits with 8 [15:06:56]New connection [15:06:56]New thread 3067157860 created [15:06:56]Thread 3067014500 joined [15:06:56]Waiting for new connection... [15:06:56] Sock 8.Parse request [15:06:56]Sock 8.Check first char [15:06:56]Sock 8.First char is OK [15:06:56]request: POST /json_proto HTTP/1.0 [15:06:56]Method: POST [15:06:56]URL: /json_proto [15:06:56]Method is POST - this is cgi request [15:06:56]url: /json_proto [15:06:56]query_string will be loaded in cgi processing [15:06:56]execute_cgi json_proto POST (null) [15:06:56]execute_cgi path=json_proto method=POST [15:06:56]POST find Content-Length [15:06:56]Host: 172.17.42.131:8080 [15:06:56]Content-Length: 751 [15:06:56]Content-Type: application/json [15:06:56] [15:06:56]POST finish read [15:06:56]Found Content-Length = 751 [15:06:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209828", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 40.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30138319", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:06:56]execute_script... [15:06:56]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209828", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 40.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30138319", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:06:56]POST & json_proto [15:06:56]process_json_proto [15:06:56]json parsed OK: [15:06:56]protocol is kg_v1.0 [15:06:56]action value=close_receipt [15:06:56]process_action close_receipt [15:06:56]cmd_close_receipt [15:06:56]MH_GetDate [15:06:56]Write to MH i2c: F0 00 00 93 64 E6 [15:06:56]Write i2c OK [15:06:56]MH_I2C_Read... [15:06:56]Read from MH i2c: F0 [15:06:56]MH_I2C_Read... [15:06:56]Read from MH i2c: F0 09 00 [15:06:56]MH_I2C_Read... [15:06:56]Read from MH i2c: F0 09 00 93 64 00 14 6E 16 67 A0 18 CA 66 D6 [15:06:56]GetLastDocTimeStamp 1729522858 [15:06:56]current date 1729523220 [15:06:56]FM_GetShiftState [15:06:56]SAM_PROTO_GetShiftState [15:06:56]wFMCommunicate request_size=4 [15:06:56]MH_SAM_APDU [15:06:56]CAPDU: 80 13 01 00 [15:06:56]Write to MH i2c: E2 08 00 94 64 80 13 01 00 00 00 00 00 75 [15:06:56]Write i2c OK [15:06:56]MH_I2C_Read... [15:06:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:06:56]Read from MH i2c: E2 [15:06:56]MH_I2C_Read... [15:06:56]Read from MH i2c: E2 0E 00 [15:06:56]MH_I2C_Read... [15:06:56]Read from MH i2c: E2 0E 00 94 64 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 D4 [15:06:56]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [15:06:56]wFMCommunicate OK [15:06:56]SAM_PROTO_GetShiftState done [15:06:56]FM_GetShiftState done [15:06:56]opened in 1729469754 [15:06:56]opened+sec_in_day 1729556154 [15:06:56]quantity*price = 0 [15:06:56]sum+1 = 1 [15:06:56]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 240 21.10.2024 15:07 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Талоны: ТК ГПНА Online 30138319 ФМ: 0000000000965340 ФД: 187776 ФПД: 169677237775878 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T150700&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187776&fm=169677237775878&tin=02508201610067®Number=0000000000100030&sum=0 [15:06:57]StoreToDocumentArchive [15:06:57]shift 460 fd 187776 [15:06:57]save to /storage/0460/doc_00187776 [15:06:57]save last doc name /storage/0460/doc_00187776 to /storage/kkm_last_doc_name [15:06:57]save OK [15:06:57]Clear old archive folders... [15:06:57]ProcessDocumentItem done err = 0, tmpTLVsize=248 [15:06:57]tlvbuf is 01099E30 [15:06:57]SAM_PROTO_ClearQueue [15:06:57]wFMCommunicate request_size=4 [15:06:57]MH_SAM_APDU [15:06:57]CAPDU: 80 09 00 00 [15:06:57]Write to MH i2c: E2 08 00 A1 64 80 09 00 00 00 00 00 00 77 [15:06:57]Write i2c OK [15:06:57]MH_I2C_Read... [15:06:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:06:57]Read from MH i2c: E2 [15:06:57]MH_I2C_Read... [15:06:57]Read from MH i2c: E2 03 00 [15:06:57]MH_I2C_Read... [15:06:57]Read from MH i2c: E2 03 00 A1 64 00 90 00 79 [15:06:57]RAPDU: 90 00 [15:06:57]wFMCommunicate OK [15:06:57]SAM_PROTO_ClearQueue done [15:06:57]KKMCreateOFDPacket [15:06:57]OFDProtocolAddRootSTLVToBuf [15:06:57]FM_MakeSignedData [15:06:57]FM_MakeSignedData [15:06:57]SAM_PROTO_SignData [15:06:57]wFMCommunicate request_size=4 [15:06:57]MH_SAM_APDU [15:06:57]CAPDU: 80 0D 01 02 [15:06:57]Write to MH i2c: E2 08 00 A2 64 80 0D 01 02 00 00 00 00 7F [15:06:57]Write i2c OK [15:06:57]MH_I2C_Read... [15:06:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:06:57]Read from MH i2c: E2 [15:06:57]MH_I2C_Read... [15:06:57]Read from MH i2c: E2 03 00 [15:06:57]MH_I2C_Read... [15:06:57]Read from MH i2c: E2 03 00 A2 64 00 90 00 7A [15:06:57]RAPDU: 90 00 [15:06:57]wFMCommunicate OK [15:06:57]wFMCommunicate request_size=255 [15:06:57]MH_SAM_APDU [15:06:57]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 40 9C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F0 00 00 00 F4 03 04 00 14 6E 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 80 DD 02 00 35 04 06 00 9A 52 0F 7B [15:06:57]Write to MH i2c: E2 02 01 A3 64 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 40 9C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F0 00 00 00 F4 03 04 00 14 6E 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 80 DD 02 00 35 04 06 00 9A 52 0F 7B 00 00 2F [15:06:57]Write i2c OK [15:06:57]MH_I2C_Read... [15:06:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:06:57]Read from MH i2c: E2 [15:06:57]MH_I2C_Read... [15:06:57]Read from MH i2c: E2 03 00 [15:06:57]MH_I2C_Read... [15:06:57]Read from MH i2c: E2 03 00 A3 64 00 90 00 7B [15:06:57]RAPDU: 90 00 [15:06:57]wFMCommunicate OK [15:06:57]wFMCommunicate request_size=7 [15:06:57]MH_SAM_APDU [15:06:57]CAPDU: 80 0D 02 02 02 EE 06 [15:06:57]Write to MH i2c: E2 0A 00 A4 64 80 0D 02 02 02 00 EE 06 00 00 7A [15:06:57]Write i2c OK [15:06:57]MH_I2C_Read... [15:06:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:06:57]Read from MH i2c: E2 [15:06:57]MH_I2C_Read... [15:06:57]Read from MH i2c: E2 03 00 [15:06:57]MH_I2C_Read... [15:06:57]Read from MH i2c: E2 03 00 A4 64 00 90 00 7C [15:06:57]RAPDU: 90 00 [15:06:57]wFMCommunicate OK [15:06:57]wFMCommunicate request_size=4 [15:06:57]MH_SAM_APDU [15:06:57]CAPDU: 80 0D 03 02 [15:06:57]Write to MH i2c: E2 08 00 A5 64 80 0D 03 02 00 00 00 00 84 [15:06:57]Write i2c OK [15:06:57]MH_I2C_Read... [15:06:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:06:57]Read from MH i2c: E2 [15:06:57]MH_I2C_Read... [15:06:57]Read from MH i2c: E2 0B 00 [15:06:57]MH_I2C_Read... [15:06:57]Read from MH i2c: E2 0B 00 A5 64 00 68 27 C8 B8 26 76 1E E5 90 00 33 [15:06:57]RAPDU: 68 27 C8 B8 26 76 1E E5 90 00 [15:06:57]wFMCommunicate OK [15:06:57]SAM_PROTO_SignData done [15:06:57]FM_MakeSignedData done [15:06:57]CreateOFDProtocolMessage [15:06:57]wFMCommunicate request_size=4 [15:06:57]MH_SAM_APDU [15:06:57]CAPDU: 80 11 00 00 [15:06:57]Write to MH i2c: E2 08 00 A6 64 80 11 00 00 00 00 00 00 84 [15:06:57]Write i2c OK [15:06:57]MH_I2C_Read... [15:06:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:06:57]Read from MH i2c: E2 [15:06:57]MH_I2C_Read... [15:06:57]Read from MH i2c: E2 17 00 [15:06:57]MH_I2C_Read... [15:06:57]Read from MH i2c: E2 17 00 A6 64 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 D2 [15:06:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [15:06:57]wFMCommunicate OK [15:06:57]CreateOFDProtocolMessage done [15:06:57]OFDSenderStorePacket 187776 [15:06:57]StoreOFDPacket docnum=187776 [15:06:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 BA 44 04 01 86 88 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 40 9C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F0 00 00 00 F4 03 04 00 14 6E 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 80 DD 02 00 35 04 06 00 9A 52 0F 7B EE 06 68 27 C8 B8 26 76 1E E5 [15:06:57]CheckFolder [15:06:57]dirname=/storage/ofd_packets [15:06:57]CheckFolder done [15:06:57]ProducePacketName [15:06:57]name=ofd_packets/00187776 [15:06:57]NVStorageSaveData ofd_packets/00187776 [15:06:57]File name is /storage/ofd_packets/00187776 [15:06:57]Write 298 bytes [15:06:57]NVStorageSaveData done [15:06:57]OFDSenderStorePacket done [15:06:57]KKMCreateOFDPacket done [15:06:57]NVStorageSaveData kkm_last_timestamp [15:06:57]File name is /storage/kkm_last_timestamp [15:06:57]Write 4 bytes [15:06:57]NVStorageSaveData done [15:06:57]ExternCall_PrintAddStr [15:06:57]wPrintStart [15:06:57]Write to MH i2c: 01 00 00 A7 64 0B [15:06:57]Write i2c OK [15:06:57]MH_I2C_Read... [15:06:57]Read from MH i2c: 01 [15:06:57]MH_I2C_Read... [15:06:57]Read from MH i2c: 01 07 00 [15:06:57]MH_I2C_Read... [15:06:57]Read from MH i2c: 01 07 00 A7 64 00 00 00 00 00 FF 0F 20 [15:06:57]RasterBufferAndPrint [15:06:57]line Счет N : (1)209828 [15:06:57]line ИНН: 02508201610067 [15:06:57]line Контрольно-Кассовый Чек [15:06:57]line ПРОДАЖА [15:06:57]line ТРК (МРК, ГНК) : 51 [15:06:57]line Товар: 2710194210 [15:06:57]line ДТ-К-5 [15:06:57]line 40.000 * 0.00 [15:06:57]line = 0.00 [15:06:57]line НДС 12% НСП 1% [15:06:57]line > о реализуемом товаре [15:06:57]line ИТОГО: 0.00 [15:06:57]line НСП 1% : 0.00 [15:06:57]line НДС 12% : 0.00 [15:06:57]line Наличными: 0.00 [15:06:57]line Безнал.: 0.00 [15:06:57]line Место: АЗС № 86 "Партнер Нефть" [15:06:57]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [15:06:57]line СНО: Общий режим [15:06:57]line Чек 240 21.10.2024 15:07 [15:06:57]line Смена: 460 ФФД: 1.0 [15:06:57]line ЗНМ: 0300000155 [15:06:57]line РНМ: 0000000000100030 [15:06:57]line Версия ККМ: 001 [15:06:57]line Талоны: ТК ГПНА Online [15:06:57]line 30138319 [15:06:57]line ФМ: 0000000000965340 [15:06:57]line ФД: 187776 [15:06:57]line ФПД: 169677237775878 [15:06:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T150700&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187776&fm=169677237775878&tin=02508201610067®Number=0000000000100030&sum=0 [15:06:57]written 0, free lines is 4095 [15:06:57]OFD Sender: Processing packet 187776 [packets to send 1062, broken 1061] [15:06:57]ProducePacketName [15:06:57]name=ofd_packets/00187776 [15:06:57]OFD Sender: To server: pG, [15:06:57]CommunicateWithHost lk.salyk.kg:30040 [15:06:57]ConnectInit lk.salyk.kg [15:06:58]Connected sock=10 [15:06:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 BA 44 04 01 86 88 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 40 9C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F0 00 00 00 F4 03 04 00 14 6E 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 80 DD 02 00 35 04 06 00 9A 52 0F 7B EE 06 68 27 C8 B8 26 76 1E E5 [15:06:58]Write to MH i2c: 01 00 00 D1 64 35 [15:06:58]Write i2c OK [15:06:58]MH_I2C_Read... [15:06:58]Read from MH i2c: 01 [15:06:58]MH_I2C_Read... [15:06:58]Read from MH i2c: 01 07 00 [15:06:58]MH_I2C_Read... [15:06:58]Read from MH i2c: 01 07 00 D1 64 00 00 00 00 00 7C 0C C4 [15:06:58]RasterBufferAndPrint [15:06:58]line [15:06:58]line [15:06:58]line [15:06:58]line [15:06:58]line [15:06:58]written 0, free lines is 3200 [15:06:58]MH_Cut [15:06:58]Write to MH i2c: D1 01 00 D8 64 01 0E [15:06:58]Write i2c OK [15:06:58]MH_I2C_Read... [15:06:58]Read from MH i2c: D1 [15:06:58]MH_I2C_Read... [15:06:58]Read from MH i2c: D1 01 00 [15:06:58]MH_I2C_Read... [15:06:58]Read from MH i2c: D1 01 00 D8 64 00 0D [15:06:58]Write to MH i2c: 01 00 00 D9 64 3D [15:06:58]Write i2c OK [15:06:58]MH_I2C_Read... [15:06:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 00 52 47 00 5B 65 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 80 DD 02 00 F4 03 04 00 04 18 16 67 B6 04 01 00 00 18 54 77 7F 8B C1 F2 20 [15:06:58]CommunicateWithHost err = 0 [15:06:58]CheckOFDResponse [15:06:58]1017 (14) - 77093643461234 [15:06:58]1041 (16) - 0000000000965340 [15:06:58]1040 (4) - 187776 [15:06:58]1012 (4) - 21.10.2024 08:59 [15:06:58]1206 (1) - 0 [15:06:58]OFD Sender: Remove packet 187776 [15:06:58]ProducePacketName [15:06:58]name=ofd_packets/00187776 [15:06:58]NVStorageDeleteData [15:06:59]OFD Sender: No OFD packet to send [15:06:59]*** Cut start [15:06:59]*** Partial cut [15:06:59]*** CUTSNS_PIN = 1 [15:06:59]*** CUTSNS_PIN = 0 [15:06:59]*** Brake cut motor [15:06:59]Read from MH i2c: 01 [15:07:00]MH_I2C_Read... [15:07:00]*** Stop cut motor [15:07:00]*** Cut end [15:07:00]Read from MH i2c: 01 07 00 [15:07:00]MH_I2C_Read... [15:07:00]Read from MH i2c: 01 07 00 D9 64 00 00 00 00 00 FF 0F 52 [15:07:00]process_action close_receipt done [15:07:00]requested_data is exist [15:07:00]produce_requested_data [15:07:00]requested_item fm.sn is exist - process it [15:07:00]wFMCommunicate request_size=4 [15:07:00]MH_SAM_APDU [15:07:00]CAPDU: 80 11 00 00 [15:07:00]Write to MH i2c: E2 08 00 DA 64 80 11 00 00 00 00 00 00 B8 [15:07:00]Write i2c OK [15:07:00]MH_I2C_Read... [15:07:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:07:00]Read from MH i2c: E2 [15:07:00]MH_I2C_Read... [15:07:00]Read from MH i2c: E2 17 00 [15:07:00]MH_I2C_Read... [15:07:00]Read from MH i2c: E2 17 00 DA 64 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 06 [15:07:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [15:07:00]wFMCommunicate OK [15:07:00]requested_item fd.num is exist - process it [15:07:00]SAM_PROTO_GetFieldsCounters [15:07:00]wFMCommunicate request_size=4 [15:07:00]MH_SAM_APDU [15:07:00]CAPDU: 80 13 00 00 [15:07:00]Write to MH i2c: E2 08 00 DB 64 80 13 00 00 00 00 00 00 BB [15:07:00]Write i2c OK [15:07:00]MH_I2C_Read... [15:07:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:07:00]Read from MH i2c: E2 [15:07:00]MH_I2C_Read... [15:07:00]Read from MH i2c: E2 62 00 [15:07:00]MH_I2C_Read... [15:07:00]Read from MH i2c: E2 62 00 DB 64 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 80 DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 F0 00 00 00 5E 04 04 00 F0 00 00 00 57 04 04 00 F1 00 00 00 19 04 04 00 00 00 00 00 90 00 BE [15:07:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 80 DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 F0 00 00 00 5E 04 04 00 F0 00 00 00 57 04 04 00 F1 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:07:00]wFMCommunicate OK [15:07:00]SAM_PROTO_GetFieldsCounters done [15:07:00]requested_item shift.num is exist - process it [15:07:00]requested_item shift.opened is exist - process it [15:07:00]req_shift_opened [15:07:00]FM_GetShiftState [15:07:00]SAM_PROTO_GetShiftState [15:07:00]wFMCommunicate request_size=4 [15:07:00]MH_SAM_APDU [15:07:00]CAPDU: 80 13 01 00 [15:07:00]Write to MH i2c: E2 08 00 DC 64 80 13 01 00 00 00 00 00 BD [15:07:00]Write i2c OK [15:07:00]MH_I2C_Read... [15:07:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:07:00]Read from MH i2c: E2 [15:07:00]MH_I2C_Read... [15:07:00]Read from MH i2c: E2 0E 00 [15:07:00]MH_I2C_Read... [15:07:00]Read from MH i2c: E2 0E 00 DC 64 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 1C [15:07:00]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [15:07:00]wFMCommunicate OK [15:07:00]SAM_PROTO_GetShiftState done [15:07:00]FM_GetShiftState done [15:07:00]req_shift_opened done [15:07:00]requested_item shift.open_date is exist - process it [15:07:00]req_shift_open_date [15:07:00]req_shift_open_date done [15:07:00]produce_requested_data done [15:07:00]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187776,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [15:07:00]process_action_free close_receipt [15:07:00]json_value_free [15:07:00]json_value_free done [15:07:00]process_json_proto returns [15:07:00]Send response to host [15:07:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187776,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [15:07:00]free response buf [15:07:00]execute_script done [15:07:00]execute_script returns [15:07:00]free content buf [15:07:00]Sock 8.Close socket [15:07:00]Sock 8.Thread stoped [15:07:00]accept exits with 9 [15:07:00]New connection [15:07:00]New thread 3067014500 created [15:07:00]Thread 3067157860 joined [15:07:00]Waiting for new connection... [15:07:00] Sock 9.Parse request [15:07:00]Sock 9.Check first char [15:07:00]Sock 9.First char is OK [15:07:00]request: POST /json_proto HTTP/1.0 [15:07:00]Method: POST [15:07:00]URL: /json_proto [15:07:00]Method is POST - this is cgi request [15:07:00]url: /json_proto [15:07:00]query_string will be loaded in cgi processing [15:07:00]execute_cgi json_proto POST (null) [15:07:00]execute_cgi path=json_proto method=POST [15:07:00]POST find Content-Length [15:07:00]Host: 172.17.42.131:8080 [15:07:00]Content-Length: 677 [15:07:00]Content-Type: application/json [15:07:00] [15:07:00]POST finish read [15:07:00]Found Content-Length = 677 [15:07:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209830", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:07:00]execute_script... [15:07: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)209830", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:07:00]POST & json_proto [15:07:00]process_json_proto [15:07:00]json parsed OK: [15:07:00]protocol is kg_v1.0 [15:07:00]action value=close_receipt [15:07:00]process_action close_receipt [15:07:00]cmd_close_receipt [15:07:00]MH_GetDate [15:07:00]Write to MH i2c: F0 00 00 DD 64 30 [15:07:00]Write i2c OK [15:07:00]MH_I2C_Read... [15:07:00]Read from MH i2c: F0 [15:07:00]MH_I2C_Read... [15:07:00]Read from MH i2c: F0 09 00 [15:07:00]MH_I2C_Read... [15:07:00]Read from MH i2c: F0 09 00 DD 64 00 19 6E 16 67 A0 18 CA 66 25 [15:07:00]GetLastDocTimeStamp 1729523220 [15:07:00]current date 1729523225 [15:07:00]FM_GetShiftState [15:07:00]SAM_PROTO_GetShiftState [15:07:00]wFMCommunicate request_size=4 [15:07:00]MH_SAM_APDU [15:07:00]CAPDU: 80 13 01 00 [15:07:00]Write to MH i2c: E2 08 00 DE 64 80 13 01 00 00 00 00 00 BF [15:07:00]Write i2c OK [15:07:00]MH_I2C_Read... [15:07:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:07:00]Read from MH i2c: E2 [15:07:00]MH_I2C_Read... [15:07:00]Read from MH i2c: E2 0E 00 [15:07:00]MH_I2C_Read... [15:07:00]Read from MH i2c: E2 0E 00 DE 64 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 1E [15:07:00]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [15:07:00]wFMCommunicate OK [15:07:00]SAM_PROTO_GetShiftState done [15:07:00]FM_GetShiftState done [15:07:00]opened in 1729469754 [15:07:00]opened+sec_in_day 1729556154 [15:07:00]quantity*price = 20003 [15:07:00]sum+1 = 20004 [15:07:00]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 241 21.10.2024 15:07 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 187777 ФПД: 248304970237392 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T150705&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187777&fm=248304970237392&tin=02508201610067®Number=0000000000100030&sum=20000 [15:07:02]StoreToDocumentArchive [15:07:02]shift 460 fd 187777 [15:07:02]save to /storage/0460/doc_00187777 [15:07:02]save last doc name /storage/0460/doc_00187777 to /storage/kkm_last_doc_name [15:07:02]save OK [15:07:02]Clear old archive folders... [15:07:02]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:07:02]tlvbuf is 0109C5D0 [15:07:02]SAM_PROTO_ClearQueue [15:07:02]wFMCommunicate request_size=4 [15:07:02]MH_SAM_APDU [15:07:02]CAPDU: 80 09 00 00 [15:07:02]Write to MH i2c: E2 08 00 EB 64 80 09 00 00 00 00 00 00 C1 [15:07:02]Write i2c OK [15:07:02]MH_I2C_Read... [15:07:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:07:02]Read from MH i2c: E2 [15:07:02]MH_I2C_Read... [15:07:02]Read from MH i2c: E2 03 00 [15:07:02]MH_I2C_Read... [15:07:02]Read from MH i2c: E2 03 00 EB 64 00 90 00 C3 [15:07:02]RAPDU: 90 00 [15:07:02]wFMCommunicate OK [15:07:02]SAM_PROTO_ClearQueue done [15:07:02]KKMCreateOFDPacket [15:07:02]OFDProtocolAddRootSTLVToBuf [15:07:02]FM_MakeSignedData [15:07:02]FM_MakeSignedData [15:07:02]SAM_PROTO_SignData [15:07:02]wFMCommunicate request_size=4 [15:07:02]MH_SAM_APDU [15:07:02]CAPDU: 80 0D 01 02 [15:07:02]Write to MH i2c: E2 08 00 EC 64 80 0D 01 02 00 00 00 00 C9 [15:07:02]Write i2c OK [15:07:02]MH_I2C_Read... [15:07:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:07:02]Read from MH i2c: E2 [15:07:02]MH_I2C_Read... [15:07:02]Read from MH i2c: E2 03 00 [15:07:02]MH_I2C_Read... [15:07:02]Read from MH i2c: E2 03 00 EC 64 00 90 00 C4 [15:07:02]RAPDU: 90 00 [15:07:02]wFMCommunicate OK [15:07:02]wFMCommunicate request_size=255 [15:07:02]MH_SAM_APDU [15:07: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 33 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 F1 00 00 00 F4 03 04 00 19 6E 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 81 DD 02 00 35 04 06 00 E1 [15:07:02]Write to MH i2c: E2 02 01 ED 64 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 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 F1 00 00 00 F4 03 04 00 19 6E 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 81 DD 02 00 35 04 06 00 E1 00 00 01 [15:07:02]Write i2c OK [15:07:02]MH_I2C_Read... [15:07:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:07:02]Read from MH i2c: E2 [15:07:02]MH_I2C_Read... [15:07:02]Read from MH i2c: E2 03 00 [15:07:02]MH_I2C_Read... [15:07:02]Read from MH i2c: E2 03 00 ED 64 00 90 00 C5 [15:07:02]RAPDU: 90 00 [15:07:02]wFMCommunicate OK [15:07:02]wFMCommunicate request_size=10 [15:07:02]MH_SAM_APDU [15:07:02]CAPDU: 80 0D 02 02 05 D5 01 8C 05 D0 [15:07:02]Write to MH i2c: E2 0D 00 EE 64 80 0D 02 02 05 00 D5 01 8C 05 D0 00 00 0D [15:07:02]Write i2c OK [15:07:02]MH_I2C_Read... [15:07:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:07:02]Read from MH i2c: E2 [15:07:02]MH_I2C_Read... [15:07:02]Read from MH i2c: E2 03 00 [15:07:02]MH_I2C_Read... [15:07:02]Read from MH i2c: E2 03 00 EE 64 00 90 00 C6 [15:07:02]RAPDU: 90 00 [15:07:02]wFMCommunicate OK [15:07:02]wFMCommunicate request_size=4 [15:07:02]MH_SAM_APDU [15:07:02]CAPDU: 80 0D 03 02 [15:07:02]Write to MH i2c: E2 08 00 EF 64 80 0D 03 02 00 00 00 00 CE [15:07:02]Write i2c OK [15:07:02]MH_I2C_Read... [15:07:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:07:02]Read from MH i2c: E2 [15:07:02]MH_I2C_Read... [15:07:02]Read from MH i2c: E2 0B 00 [15:07:02]MH_I2C_Read... [15:07:02]Read from MH i2c: E2 0B 00 EF 64 00 5E CE 2E 23 60 EB 1C E4 90 00 97 [15:07:02]RAPDU: 5E CE 2E 23 60 EB 1C E4 90 00 [15:07:02]wFMCommunicate OK [15:07:02]SAM_PROTO_SignData done [15:07:02]FM_MakeSignedData done [15:07:02]CreateOFDProtocolMessage [15:07:02]wFMCommunicate request_size=4 [15:07:02]MH_SAM_APDU [15:07:02]CAPDU: 80 11 00 00 [15:07:02]Write to MH i2c: E2 08 00 F0 64 80 11 00 00 00 00 00 00 CE [15:07:02]Write i2c OK [15:07:02]MH_I2C_Read... [15:07:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:07:02]Read from MH i2c: E2 [15:07:02]MH_I2C_Read... [15:07:02]Read from MH i2c: E2 17 00 [15:07:02]MH_I2C_Read... [15:07:02]Read from MH i2c: E2 17 00 F0 64 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 1C [15:07:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [15:07:02]wFMCommunicate OK [15:07:02]CreateOFDProtocolMessage done [15:07:02]OFDSenderStorePacket 187777 [15:07:02]StoreOFDPacket docnum=187777 [15:07:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 4F 03 07 01 19 C6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 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 F1 00 00 00 F4 03 04 00 19 6E 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 81 DD 02 00 35 04 06 00 E1 D5 01 8C 05 D0 5E CE 2E 23 60 EB 1C E4 [15:07:02]CheckFolder [15:07:02]dirname=/storage/ofd_packets [15:07:02]CheckFolder done [15:07:02]ProducePacketName [15:07:02]name=ofd_packets/00187777 [15:07:02]NVStorageSaveData ofd_packets/00187777 [15:07:02]File name is /storage/ofd_packets/00187777 [15:07:02]Write 301 bytes [15:07:02]NVStorageSaveData done [15:07:02]OFDSenderStorePacket done [15:07:02]KKMCreateOFDPacket done [15:07:02]NVStorageSaveData kkm_last_timestamp [15:07:02]File name is /storage/kkm_last_timestamp [15:07:02]Write 4 bytes [15:07:02]NVStorageSaveData done [15:07:02]ExternCall_PrintAddStr [15:07:02]wPrintStart [15:07:02]Write to MH i2c: 01 00 00 F1 64 55 [15:07:02]Write i2c OK [15:07:02]MH_I2C_Read... [15:07:02]Read from MH i2c: 01 [15:07:02]MH_I2C_Read... [15:07:02]Read from MH i2c: 01 07 00 [15:07:02]MH_I2C_Read... [15:07:02]Read from MH i2c: 01 07 00 F1 64 00 00 00 00 00 FF 0F 6A [15:07:02]RasterBufferAndPrint [15:07:02]line Счет N : (1)209830 [15:07:02]line ИНН: 02508201610067 [15:07:02]line Контрольно-Кассовый Чек [15:07:02]line ПРОДАЖА [15:07:02]line ТРК (МРК, ГНК) : 22 [15:07:02]line Товар: 2710124130 [15:07:02]line Аи-92-К-3 [15:07:02]line 2.990 * 66.90 [15:07:02]line = 200.03 [15:07:02]line НДС 12% НСП 1% [15:07:02]line > о реализуемом товаре [15:07:02]line ОКРУГЛЕНИЕ: -0.03 [15:07:02]line ИТОГО: 200.00 [15:07:02]line Внесено: 200.00 [15:07:02]line СДАЧА: 0.00 [15:07:02]line НСП 1% : 1.77 [15:07:02]line НДС 12% : 21.24 [15:07:02]line Наличными: 200.00 [15:07:02]line Безнал.: 0.00 [15:07:02]line Место: АЗС № 86 "Партнер Нефть" [15:07:02]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [15:07:02]line СНО: Общий режим [15:07:02]line Чек 241 21.10.2024 15:07 [15:07:02]line Смена: 460 ФФД: 1.0 [15:07:02]line ЗНМ: 0300000155 [15:07:02]line РНМ: 0000000000100030 [15:07:02]line Версия ККМ: 001 [15:07:02]line ФМ: 0000000000965340 [15:07:02]line ФД: 187777 [15:07:02]line ФПД: 248304970237392 [15:07:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T150705&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187777&fm=248304970237392&tin=02508201610067®Number=0000000000100030&sum=20000 [15:07:03]OFD Sender: Processing packet 187777 [packets to send 1062, broken 1061] [15:07:03]ProducePacketName [15:07:03]name=ofd_packets/00187777 [15:07:03]OFD Sender: To server: pG, [15:07:03]CommunicateWithHost lk.salyk.kg:30040 [15:07:03]ConnectInit lk.salyk.kg [15:07:03]written 0, free lines is 4095 [15:07:03]Connected sock=10 [15:07:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 4F 03 07 01 19 C6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 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 F1 00 00 00 F4 03 04 00 19 6E 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 81 DD 02 00 35 04 06 00 E1 D5 01 8C 05 D0 5E CE 2E 23 60 EB 1C E4 [15:07:03]Write to MH i2c: 01 00 00 1C 65 81 [15:07:03]Write i2c OK [15:07:03]MH_I2C_Read... [15:07:03]Read from MH i2c: 01 [15:07:03]MH_I2C_Read... [15:07:03]Read from MH i2c: 01 07 00 [15:07:03]MH_I2C_Read... [15:07:03]Read from MH i2c: 01 07 00 1C 65 00 00 00 00 00 75 0C 09 [15:07:03]RasterBufferAndPrint [15:07:03]line [15:07:03]line [15:07:03]line [15:07:03]line [15:07:03]line [15:07:03]written 0, free lines is 3195 [15:07:03]MH_Cut [15:07:03]Write to MH i2c: D1 01 00 23 65 01 5A [15:07:03]Write i2c OK [15:07:03]MH_I2C_Read... [15:07:03]Read from MH i2c: D1 [15:07:03]MH_I2C_Read... [15:07:03]Read from MH i2c: D1 01 00 [15:07:03]MH_I2C_Read... [15:07:03]Read from MH i2c: D1 01 00 23 65 00 59 [15:07:03]Write to MH i2c: 01 00 00 24 65 89 [15:07:03]Write i2c OK [15:07:03]MH_I2C_Read... [15:07:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 D9 99 47 00 FC 60 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 81 DD 02 00 F4 03 04 00 09 18 16 67 B6 04 01 00 00 AC 17 B3 F9 16 D9 5A 3E [15:07:03]CommunicateWithHost err = 0 [15:07:03]CheckOFDResponse [15:07:03]1017 (14) - 77093643461234 [15:07:03]1041 (16) - 0000000000965340 [15:07:03]1040 (4) - 187777 [15:07:03]1012 (4) - 21.10.2024 08:59 [15:07:03]1206 (1) - 0 [15:07:03]OFD Sender: Remove packet 187777 [15:07:03]ProducePacketName [15:07:03]name=ofd_packets/00187777 [15:07:03]NVStorageDeleteData [15:07:04]OFD Sender: No OFD packet to send [15:07:04]*** Cut start [15:07:04]*** Partial cut [15:07:04]*** CUTSNS_PIN = 1 [15:07:04]*** CUTSNS_PIN = 0 [15:07:05]*** Brake cut motor [15:07:05]Read from MH i2c: 01 [15:07:05]MH_I2C_Read... [15:07:05]*** Stop cut motor [15:07:05]*** Cut end [15:07:05]Read from MH i2c: 01 07 00 [15:07:05]MH_I2C_Read... [15:07:05]Read from MH i2c: 01 07 00 24 65 00 00 00 00 00 FF 0F 9E [15:07:05]process_action close_receipt done [15:07:05]requested_data is exist [15:07:05]produce_requested_data [15:07:05]requested_item fm.sn is exist - process it [15:07:05]wFMCommunicate request_size=4 [15:07:05]MH_SAM_APDU [15:07:05]CAPDU: 80 11 00 00 [15:07:05]Write to MH i2c: E2 08 00 25 65 80 11 00 00 00 00 00 00 04 [15:07:05]Write i2c OK [15:07:05]MH_I2C_Read... [15:07:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:07:05]Read from MH i2c: E2 [15:07:05]MH_I2C_Read... [15:07:05]Read from MH i2c: E2 17 00 [15:07:05]MH_I2C_Read... [15:07:05]Read from MH i2c: E2 17 00 25 65 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 52 [15:07:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [15:07:05]wFMCommunicate OK [15:07:05]requested_item fd.num is exist - process it [15:07:05]SAM_PROTO_GetFieldsCounters [15:07:05]wFMCommunicate request_size=4 [15:07:05]MH_SAM_APDU [15:07:05]CAPDU: 80 13 00 00 [15:07:05]Write to MH i2c: E2 08 00 26 65 80 13 00 00 00 00 00 00 07 [15:07:05]Write i2c OK [15:07:05]MH_I2C_Read... [15:07:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:07:05]Read from MH i2c: E2 [15:07:05]MH_I2C_Read... [15:07:05]Read from MH i2c: E2 62 00 [15:07:05]MH_I2C_Read... [15:07:05]Read from MH i2c: E2 62 00 26 65 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 81 DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 F1 00 00 00 5E 04 04 00 F1 00 00 00 57 04 04 00 F2 00 00 00 19 04 04 00 00 00 00 00 90 00 0E [15:07:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 81 DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 F1 00 00 00 5E 04 04 00 F1 00 00 00 57 04 04 00 F2 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:07:05]wFMCommunicate OK [15:07:05]SAM_PROTO_GetFieldsCounters done [15:07:05]requested_item shift.num is exist - process it [15:07:05]requested_item shift.opened is exist - process it [15:07:05]req_shift_opened [15:07:05]FM_GetShiftState [15:07:05]SAM_PROTO_GetShiftState [15:07:05]wFMCommunicate request_size=4 [15:07:05]MH_SAM_APDU [15:07:05]CAPDU: 80 13 01 00 [15:07:05]Write to MH i2c: E2 08 00 27 65 80 13 01 00 00 00 00 00 09 [15:07:05]Write i2c OK [15:07:05]MH_I2C_Read... [15:07:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:07:05]Read from MH i2c: E2 [15:07:05]MH_I2C_Read... [15:07:05]Read from MH i2c: E2 0E 00 [15:07:05]MH_I2C_Read... [15:07:05]Read from MH i2c: E2 0E 00 27 65 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 68 [15:07:05]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [15:07:05]wFMCommunicate OK [15:07:05]SAM_PROTO_GetShiftState done [15:07:05]FM_GetShiftState done [15:07:05]req_shift_opened done [15:07:05]requested_item shift.open_date is exist - process it [15:07:05]req_shift_open_date [15:07:05]req_shift_open_date done [15:07:05]produce_requested_data done [15:07:05]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187777,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [15:07:05]process_action_free close_receipt [15:07:05]json_value_free [15:07:05]json_value_free done [15:07:05]process_json_proto returns [15:07:05]Send response to host [15:07:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187777,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [15:07:05]free response buf [15:07:05]execute_script done [15:07:05]execute_script returns [15:07:05]free content buf [15:07:05]Sock 9.Close socket [15:07:05]Sock 9.Thread stoped [15:07:06]accept exits with 8 [15:07:06]New connection [15:07:06]New thread 3067157860 created [15:07:06]Thread 3067014500 joined [15:07:06]Waiting for new connection... [15:07:06] Sock 8.Parse request [15:07:06]Sock 8.Check first char [15:07:06]Sock 8.First char is OK [15:07:06]request: POST /json_proto HTTP/1.0 [15:07:06]Method: POST [15:07:06]URL: /json_proto [15:07:06]Method is POST - this is cgi request [15:07:06]url: /json_proto [15:07:06]query_string will be loaded in cgi processing [15:07:06]execute_cgi json_proto POST (null) [15:07:06]execute_cgi path=json_proto method=POST [15:07:06]POST find Content-Length [15:07:06]Host: 172.17.42.131:8080 [15:07:06]Content-Length: 677 [15:07:06]Content-Type: application/json [15:07:06] [15:07:06]POST finish read [15:07:06]Found Content-Length = 677 [15:07:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209829", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 9.240, "sum" : 685.61, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 685.00, "payments": [ { "type": 0, "sum" : 685.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:07:06]execute_script... [15:07: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)209829", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 9.240, "sum" : 685.61, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 685.00, "payments": [ { "type": 0, "sum" : 685.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:07:06]POST & json_proto [15:07:06]process_json_proto [15:07:06]json parsed OK: [15:07:06]protocol is kg_v1.0 [15:07:06]action value=close_receipt [15:07:06]process_action close_receipt [15:07:06]cmd_close_receipt [15:07:06]MH_GetDate [15:07:06]Write to MH i2c: F0 00 00 28 65 7C [15:07:06]Write i2c OK [15:07:06]MH_I2C_Read... [15:07:06]Read from MH i2c: F0 [15:07:06]MH_I2C_Read... [15:07:06]Read from MH i2c: F0 09 00 [15:07:06]MH_I2C_Read... [15:07:06]Read from MH i2c: F0 09 00 28 65 00 1E 6E 16 67 A0 18 CA 66 76 [15:07:06]GetLastDocTimeStamp 1729523225 [15:07:06]current date 1729523230 [15:07:06]FM_GetShiftState [15:07:06]SAM_PROTO_GetShiftState [15:07:06]wFMCommunicate request_size=4 [15:07:06]MH_SAM_APDU [15:07:06]CAPDU: 80 13 01 00 [15:07:06]Write to MH i2c: E2 08 00 29 65 80 13 01 00 00 00 00 00 0B [15:07:06]Write i2c OK [15:07:06]MH_I2C_Read... [15:07:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:07:06]Read from MH i2c: E2 [15:07:06]MH_I2C_Read... [15:07:06]Read from MH i2c: E2 0E 00 [15:07:06]MH_I2C_Read... [15:07:06]Read from MH i2c: E2 0E 00 29 65 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 6A [15:07:06]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [15:07:06]wFMCommunicate OK [15:07:06]SAM_PROTO_GetShiftState done [15:07:06]FM_GetShiftState done [15:07:06]opened in 1729469754 [15:07:06]opened+sec_in_day 1729556154 [15:07:06]quantity*price = 68560 [15:07:06]sum+1 = 68562 [15:07:06]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.61 ИТОГО: 685.00 Внесено: 700.00 СДАЧА: 15.00 НСП 1% : 6.07 НДС 12% : 72.81 Наличными: 685.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 242 21.10.2024 15:07 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 187778 ФПД: 50440378177759 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T150710&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187778&fm=50440378177759&tin=02508201610067®Number=0000000000100030&sum=68500 [15:07:07]StoreToDocumentArchive [15:07:07]shift 460 fd 187778 [15:07:07]save to /storage/0460/doc_00187778 [15:07:07]save last doc name /storage/0460/doc_00187778 to /storage/kkm_last_doc_name [15:07:07]save OK [15:07:07]Clear old archive folders... [15:07:07]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:07:07]tlvbuf is 012C78E0 [15:07:07]SAM_PROTO_ClearQueue [15:07:07]wFMCommunicate request_size=4 [15:07:07]MH_SAM_APDU [15:07:07]CAPDU: 80 09 00 00 [15:07:07]Write to MH i2c: E2 08 00 36 65 80 09 00 00 00 00 00 00 0D [15:07:07]Write i2c OK [15:07:07]MH_I2C_Read... [15:07:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:07:07]Read from MH i2c: E2 [15:07:07]MH_I2C_Read... [15:07:07]Read from MH i2c: E2 03 00 [15:07:07]MH_I2C_Read... [15:07:07]Read from MH i2c: E2 03 00 36 65 00 90 00 0F [15:07:07]RAPDU: 90 00 [15:07:07]wFMCommunicate OK [15:07:07]SAM_PROTO_ClearQueue done [15:07:07]KKMCreateOFDPacket [15:07:07]OFDProtocolAddRootSTLVToBuf [15:07:07]FM_MakeSignedData [15:07:07]FM_MakeSignedData [15:07:07]SAM_PROTO_SignData [15:07:07]wFMCommunicate request_size=4 [15:07:07]MH_SAM_APDU [15:07:07]CAPDU: 80 0D 01 02 [15:07:07]Write to MH i2c: E2 08 00 37 65 80 0D 01 02 00 00 00 00 15 [15:07:07]Write i2c OK [15:07:07]MH_I2C_Read... [15:07:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:07:07]Read from MH i2c: E2 [15:07:07]MH_I2C_Read... [15:07:07]Read from MH i2c: E2 03 00 [15:07:07]MH_I2C_Read... [15:07:07]Read from MH i2c: E2 03 00 37 65 00 90 00 10 [15:07:07]RAPDU: 90 00 [15:07:07]wFMCommunicate OK [15:07:07]wFMCommunicate request_size=255 [15:07:07]MH_SAM_APDU [15:07:07]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 18 24 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 D1 0B 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 0B 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 71 1C 00 00 00 00 07 04 06 00 94 0B 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F2 00 00 00 F4 03 04 00 1E 6E 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 82 DD 02 00 35 04 06 00 2D [15:07:07]Write to MH i2c: E2 02 01 38 65 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 18 24 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 D1 0B 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 0B 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 71 1C 00 00 00 00 07 04 06 00 94 0B 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F2 00 00 00 F4 03 04 00 1E 6E 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 82 DD 02 00 35 04 06 00 2D 00 00 BC [15:07:07]Write i2c OK [15:07:07]MH_I2C_Read... [15:07:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:07:08]Read from MH i2c: E2 [15:07:08]MH_I2C_Read... [15:07:08]Read from MH i2c: E2 03 00 [15:07:08]MH_I2C_Read... [15:07:08]Read from MH i2c: E2 03 00 38 65 00 90 00 11 [15:07:08]RAPDU: 90 00 [15:07:08]wFMCommunicate OK [15:07:08]wFMCommunicate request_size=10 [15:07:08]MH_SAM_APDU [15:07:08]CAPDU: 80 0D 02 02 05 E0 10 D2 D8 DF [15:07:08]Write to MH i2c: E2 0D 00 39 65 80 0D 02 02 05 00 E0 10 D2 D8 DF 00 00 9B [15:07:08]Write i2c OK [15:07:08]MH_I2C_Read... [15:07:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:07:08]Read from MH i2c: E2 [15:07:08]MH_I2C_Read... [15:07:08]Read from MH i2c: E2 03 00 [15:07:08]MH_I2C_Read... [15:07:08]Read from MH i2c: E2 03 00 39 65 00 90 00 12 [15:07:08]RAPDU: 90 00 [15:07:08]wFMCommunicate OK [15:07:08]wFMCommunicate request_size=4 [15:07:08]MH_SAM_APDU [15:07:08]CAPDU: 80 0D 03 02 [15:07:08]Write to MH i2c: E2 08 00 3A 65 80 0D 03 02 00 00 00 00 1A [15:07:08]Write i2c OK [15:07:08]MH_I2C_Read... [15:07:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:07:08]Read from MH i2c: E2 [15:07:08]MH_I2C_Read... [15:07:08]Read from MH i2c: E2 0B 00 [15:07:08]MH_I2C_Read... [15:07:08]Read from MH i2c: E2 0B 00 3A 65 00 B3 10 95 C7 C6 0C C1 56 90 00 23 [15:07:08]RAPDU: B3 10 95 C7 C6 0C C1 56 90 00 [15:07:08]wFMCommunicate OK [15:07:08]SAM_PROTO_SignData done [15:07:08]FM_MakeSignedData done [15:07:08]CreateOFDProtocolMessage [15:07:08]wFMCommunicate request_size=4 [15:07:08]MH_SAM_APDU [15:07:08]CAPDU: 80 11 00 00 [15:07:08]Write to MH i2c: E2 08 00 3B 65 80 11 00 00 00 00 00 00 1A [15:07:08]Write i2c OK [15:07:08]MH_I2C_Read... [15:07:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:07:08]Read from MH i2c: E2 [15:07:08]MH_I2C_Read... [15:07:08]Read from MH i2c: E2 17 00 [15:07:08]MH_I2C_Read... [15:07:08]Read from MH i2c: E2 17 00 3B 65 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 68 [15:07:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [15:07:08]wFMCommunicate OK [15:07:08]CreateOFDProtocolMessage done [15:07:08]OFDSenderStorePacket 187778 [15:07:08]StoreOFDPacket docnum=187778 [15:07:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 47 16 07 01 22 D8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 18 24 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 D1 0B 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 0B 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 71 1C 00 00 00 00 07 04 06 00 94 0B 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F2 00 00 00 F4 03 04 00 1E 6E 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 82 DD 02 00 35 04 06 00 2D E0 10 D2 D8 DF B3 10 95 C7 C6 0C C1 56 [15:07:08]CheckFolder [15:07:08]dirname=/storage/ofd_packets [15:07:08]CheckFolder done [15:07:08]ProducePacketName [15:07:08]name=ofd_packets/00187778 [15:07:08]NVStorageSaveData ofd_packets/00187778 [15:07:08]File name is /storage/ofd_packets/00187778 [15:07:08]Write 301 bytes [15:07:08]NVStorageSaveData done [15:07:08]OFDSenderStorePacket done [15:07:08]KKMCreateOFDPacket done [15:07:08]NVStorageSaveData kkm_last_timestamp [15:07:08]File name is /storage/kkm_last_timestamp [15:07:08]Write 4 bytes [15:07:08]NVStorageSaveData done [15:07:08]ExternCall_PrintAddStr [15:07:08]wPrintStart [15:07:08]Write to MH i2c: 01 00 00 3C 65 A1 [15:07:08]Write i2c OK [15:07:08]MH_I2C_Read... [15:07:08]Read from MH i2c: 01 [15:07:08]MH_I2C_Read... [15:07:08]Read from MH i2c: 01 07 00 [15:07:08]MH_I2C_Read... [15:07:08]Read from MH i2c: 01 07 00 3C 65 00 00 00 00 00 FF 0F B6 [15:07:08]RasterBufferAndPrint [15:07:08]line Счет N : (1)209829 [15:07:08]line ИНН: 02508201610067 [15:07:08]line Контрольно-Кассовый Чек [15:07:08]line ПРОДАЖА [15:07:08]line ТРК (МРК, ГНК) : 13 [15:07:08]line Товар: 2710124500 [15:07:08]line Аи-95-К-3 [15:07:08]line 9.240 * 74.20 [15:07:08]line = 685.61 [15:07:08]line НДС 12% НСП 1% [15:07:08]line > о реализуемом товаре [15:07:08]line ОКРУГЛЕНИЕ: -0.61 [15:07:08]line ИТОГО: 685.00 [15:07:08]line Внесено: 700.00 [15:07:08]line СДАЧА: 15.00 [15:07:08]line НСП 1% : 6.07 [15:07:08]line НДС 12% : 72.81 [15:07:08]line Наличными: 685.00 [15:07:08]line Безнал.: 0.00 [15:07:08]line Место: АЗС № 86 "Партнер Нефть" [15:07:08]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [15:07:08]line СНО: Общий режим [15:07:08]line Чек 242 21.10.2024 15:07 [15:07:08]line Смена: 460 ФФД: 1.0 [15:07:08]line ЗНМ: 0300000155 [15:07:08]line РНМ: 0000000000100030 [15:07:08]line Версия ККМ: 001 [15:07:08]line ФМ: 0000000000965340 [15:07:08]line ФД: 187778 [15:07:08]line ФПД: 50440378177759 [15:07:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T150710&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187778&fm=50440378177759&tin=02508201610067®Number=0000000000100030&sum=68500 [15:07:08]written 0, free lines is 4095 [15:07:08]OFD Sender: Processing packet 187778 [packets to send 1062, broken 1061] [15:07:08]ProducePacketName [15:07:08]name=ofd_packets/00187778 [15:07:08]OFD Sender: To server: pG, [15:07:08]CommunicateWithHost lk.salyk.kg:30040 [15:07:08]ConnectInit lk.salyk.kg [15:07:08]Connected sock=10 [15:07:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 47 16 07 01 22 D8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 18 24 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 D1 0B 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 0B 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 71 1C 00 00 00 00 07 04 06 00 94 0B 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F2 00 00 00 F4 03 04 00 1E 6E 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 82 DD 02 00 35 04 06 00 2D E0 10 D2 D8 DF B3 10 95 C7 C6 0C C1 56 [15:07:08]Write to MH i2c: 01 00 00 67 65 CC [15:07:08]Write i2c OK [15:07:08]MH_I2C_Read... [15:07:08]Read from MH i2c: 01 [15:07:08]MH_I2C_Read... [15:07:08]Read from MH i2c: 01 07 00 [15:07:08]MH_I2C_Read... [15:07:08]Read from MH i2c: 01 07 00 67 65 00 00 00 00 00 73 0C 52 [15:07:08]RasterBufferAndPrint [15:07:08]line [15:07:08]line [15:07:08]line [15:07:08]line [15:07:08]line [15:07:08]written 0, free lines is 3197 [15:07:08]MH_Cut [15:07:08]Write to MH i2c: D1 01 00 6E 65 01 A5 [15:07:08]Write i2c OK [15:07:08]MH_I2C_Read... [15:07:08]Read from MH i2c: D1 [15:07:08]MH_I2C_Read... [15:07:08]Read from MH i2c: D1 01 00 [15:07:08]MH_I2C_Read... [15:07:08]Read from MH i2c: D1 01 00 6E 65 00 A4 [15:07:08]Write to MH i2c: 01 00 00 6F 65 D4 [15:07:08]Write i2c OK [15:07:08]MH_I2C_Read... [15:07:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 1A 17 47 00 9C 2E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 82 DD 02 00 F4 03 04 00 0E 18 16 67 B6 04 01 00 00 7B 28 57 D8 0F 1B 35 18 [15:07:08]CommunicateWithHost err = 0 [15:07:08]CheckOFDResponse [15:07:08]1017 (14) - 77093643461234 [15:07:08]1041 (16) - 0000000000965340 [15:07:08]1040 (4) - 187778 [15:07:08]1012 (4) - 21.10.2024 08:59 [15:07:08]1206 (1) - 0 [15:07:08]OFD Sender: Remove packet 187778 [15:07:08]ProducePacketName [15:07:08]name=ofd_packets/00187778 [15:07:08]NVStorageDeleteData [15:07:09]OFD Sender: No OFD packet to send [15:07:09]*** Cut start [15:07:09]*** Partial cut [15:07:09]*** CUTSNS_PIN = 1 [15:07:09]*** CUTSNS_PIN = 0 [15:07:10]*** Brake cut motor [15:07:10]Read from MH i2c: 01 [15:07:10]MH_I2C_Read... [15:07:10]*** Stop cut motor [15:07:10]*** Cut end [15:07:10]Read from MH i2c: 01 07 00 [15:07:10]MH_I2C_Read... [15:07:10]Read from MH i2c: 01 07 00 6F 65 00 00 00 00 00 FF 0F E9 [15:07:10]process_action close_receipt done [15:07:10]requested_data is exist [15:07:10]produce_requested_data [15:07:10]requested_item fm.sn is exist - process it [15:07:10]wFMCommunicate request_size=4 [15:07:10]MH_SAM_APDU [15:07:10]CAPDU: 80 11 00 00 [15:07:10]Write to MH i2c: E2 08 00 70 65 80 11 00 00 00 00 00 00 4F [15:07:10]Write i2c OK [15:07:10]MH_I2C_Read... [15:07:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:07:10]Read from MH i2c: E2 [15:07:10]MH_I2C_Read... [15:07:10]Read from MH i2c: E2 17 00 [15:07:10]MH_I2C_Read... [15:07:10]Read from MH i2c: E2 17 00 70 65 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 9D [15:07:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [15:07:10]wFMCommunicate OK [15:07:10]requested_item fd.num is exist - process it [15:07:10]SAM_PROTO_GetFieldsCounters [15:07:10]wFMCommunicate request_size=4 [15:07:10]MH_SAM_APDU [15:07:10]CAPDU: 80 13 00 00 [15:07:10]Write to MH i2c: E2 08 00 71 65 80 13 00 00 00 00 00 00 52 [15:07:10]Write i2c OK [15:07:10]MH_I2C_Read... [15:07:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:07:10]Read from MH i2c: E2 [15:07:10]MH_I2C_Read... [15:07:10]Read from MH i2c: E2 62 00 [15:07:10]MH_I2C_Read... [15:07:10]Read from MH i2c: E2 62 00 71 65 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 82 DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 F2 00 00 00 5E 04 04 00 F2 00 00 00 57 04 04 00 F3 00 00 00 19 04 04 00 00 00 00 00 90 00 5D [15:07:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 82 DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 F2 00 00 00 5E 04 04 00 F2 00 00 00 57 04 04 00 F3 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:07:10]wFMCommunicate OK [15:07:10]SAM_PROTO_GetFieldsCounters done [15:07:10]requested_item shift.num is exist - process it [15:07:10]requested_item shift.opened is exist - process it [15:07:10]req_shift_opened [15:07:10]FM_GetShiftState [15:07:10]SAM_PROTO_GetShiftState [15:07:10]wFMCommunicate request_size=4 [15:07:10]MH_SAM_APDU [15:07:10]CAPDU: 80 13 01 00 [15:07:10]Write to MH i2c: E2 08 00 72 65 80 13 01 00 00 00 00 00 54 [15:07:10]Write i2c OK [15:07:10]MH_I2C_Read... [15:07:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:07:10]Read from MH i2c: E2 [15:07:10]MH_I2C_Read... [15:07:10]Read from MH i2c: E2 0E 00 [15:07:10]MH_I2C_Read... [15:07:10]Read from MH i2c: E2 0E 00 72 65 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 B3 [15:07:10]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [15:07:10]wFMCommunicate OK [15:07:10]SAM_PROTO_GetShiftState done [15:07:10]FM_GetShiftState done [15:07:10]req_shift_opened done [15:07:10]requested_item shift.open_date is exist - process it [15:07:10]req_shift_open_date [15:07:10]req_shift_open_date done [15:07:10]produce_requested_data done [15:07:10]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187778,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [15:07:10]process_action_free close_receipt [15:07:10]json_value_free [15:07:10]json_value_free done [15:07:10]process_json_proto returns [15:07:10]Send response to host [15:07:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187778,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [15:07:10]free response buf [15:07:10]execute_script done [15:07:10]execute_script returns [15:07:10]free content buf [15:07:10]Sock 8.Close socket [15:07:10]Sock 8.Thread stoped [15:07:14]OFD Sender: No OFD packet to send [15:07:19]OFD Sender: No OFD packet to send [15:07:24]OFD Sender: No OFD packet to send [15:07:29]OFD Sender: No OFD packet to send [15:07:34]OFD Sender: No OFD packet to send [15:07:39]OFD Sender: No OFD packet to send [15:07:44]OFD Sender: No OFD packet to send [15:07:46]int [15:07:46]Write to MH i2c: 01 00 00 73 65 D8 [15:07:46]*** FLAG_PRN_PAP2 set [15:07:46]Write i2c OK [15:07:46]MH_I2C_Read... [15:07:46]Read from MH i2c: 01 [15:07:46]MH_I2C_Read... [15:07:46]Read from MH i2c: 01 07 00 [15:07:46]MH_I2C_Read... [15:07:46]Read from MH i2c: 01 07 00 73 65 00 02 00 00 00 FF 0F EF [15:07:46]state=0 [15:07:46]Cover opened [15:07:46]int [15:07:46]Write to MH i2c: 01 00 00 74 65 D9 [15:07:46]*** FLAG_PRN_PAP1 set [15:07:46]Write i2c OK [15:07:46]MH_I2C_Read... [15:07:46]Read from MH i2c: 01 [15:07:46]MH_I2C_Read... [15:07:46]Read from MH i2c: 01 07 00 [15:07:46]MH_I2C_Read... [15:07:46]Read from MH i2c: 01 07 00 74 65 00 03 00 00 00 FF 0F F1 [15:07:46]state=3 [15:07:46]No paper [15:07:46]Cover opened [15:07:48]int [15:07:48]Write to MH i2c: 01 00 00 75 65 DA [15:07:48]*** FLAG_PRN_PAP2 reset [15:07:48]Write i2c OK [15:07:48]MH_I2C_Read... [15:07:48]Read from MH i2c: 01 [15:07:48]MH_I2C_Read... [15:07:48]Read from MH i2c: 01 07 00 [15:07:48]MH_I2C_Read... [15:07:48]Read from MH i2c: 01 07 00 75 65 00 01 00 00 00 FF 0F F0 [15:07:48]state=3 [15:07:48]No paper [15:07:48]Cover closed [15:07:48]int [15:07:48]Write to MH i2c: 01 00 00 76 65 DB [15:07:48]*** FLAG_PRN_PAP2 set [15:07:48]Write i2c OK [15:07:48]MH_I2C_Read... [15:07:48]Read from MH i2c: 01 [15:07:48]MH_I2C_Read... [15:07:48]Read from MH i2c: 01 07 00 [15:07:48]MH_I2C_Read... [15:07:48]Read from MH i2c: 01 07 00 76 65 00 03 00 00 00 FF 0F F3 [15:07:48]state=0 [15:07:48]No paper [15:07:48]Cover opened [15:07:49]OFD Sender: No OFD packet to send [15:07:53]Write to MH i2c: 01 00 00 77 65 DC [15:07:53]Write i2c OK [15:07:53]MH_I2C_Read... [15:07:53]Read from MH i2c: 01 [15:07:53]MH_I2C_Read... [15:07:53]Read from MH i2c: 01 07 00 [15:07:53]MH_I2C_Read... [15:07:53]Read from MH i2c: 01 07 00 77 65 00 03 00 00 00 FF 0F F4 [15:07:53]state=3 [15:07:53]No paper [15:07:53]Cover opened [15:07:54]OFD Sender: No OFD packet to send [15:07:58]Write to MH i2c: 01 00 00 78 65 DD [15:07:58]Write i2c OK [15:07:58]MH_I2C_Read... [15:07:58]Read from MH i2c: 01 [15:07:58]MH_I2C_Read... [15:07:58]Read from MH i2c: 01 07 00 [15:07:58]MH_I2C_Read... [15:07:58]Read from MH i2c: 01 07 00 78 65 00 03 00 00 00 FF 0F F5 [15:07:58]state=3 [15:07:58]No paper [15:07:58]Cover opened [15:07:59]OFD Sender: No OFD packet to send [15:08:01]int [15:08:01]Write to MH i2c: 01 00 00 79 65 DE [15:08:01]*** FLAG_PRN_PAP2 reset [15:08:01]Write i2c OK [15:08:01]MH_I2C_Read... [15:08:01]Read from MH i2c: 01 [15:08:01]MH_I2C_Read... [15:08:01]Read from MH i2c: 01 07 00 [15:08:01]MH_I2C_Read... [15:08:01]Read from MH i2c: 01 07 00 79 65 00 01 00 00 00 FF 0F F4 [15:08:01]state=3 [15:08:01]No paper [15:08:01]Cover closed [15:08:01]int [15:08:01]Write to MH i2c: 01 00 00 7A 65 DF [15:08:01]*** FLAG_PRN_PAP1 reset [15:08:01]Write i2c OK [15:08:01]MH_I2C_Read... [15:08:01]Read from MH i2c: 01 [15:08:01]MH_I2C_Read... [15:08:01]Read from MH i2c: 01 07 00 [15:08:01]MH_I2C_Read... [15:08:01]Read from MH i2c: 01 07 00 7A 65 00 00 00 00 00 FF 0F F4 [15:08:01]state=0 [15:08:04]OFD Sender: No OFD packet to send [15:08:09]OFD Sender: No OFD packet to send [15:08:14]OFD Sender: No OFD packet to send [15:08:19]OFD Sender: No OFD packet to send [15:08:24]OFD Sender: No OFD packet to send [15:08:29]OFD Sender: No OFD packet to send [15:08:34]OFD Sender: No OFD packet to send [15:08:39]OFD Sender: No OFD packet to send [15:08:44]OFD Sender: No OFD packet to send [15:08:49]OFD Sender: No OFD packet to send [15:08:54]OFD Sender: No OFD packet to send [15: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:30]accept exits with 9 [15:09:30]New connection [15:09:30]New thread 3067014500 created [15:09:30]Thread 3067157860 joined [15:09:30]Waiting for new connection... [15:09:30] Sock 9.Parse request [15:09:30]Sock 9.Check first char [15:09:30]Sock 9.First char is OK [15:09:30]request: POST /json_proto HTTP/1.0 [15:09:30]Method: POST [15:09:30]URL: /json_proto [15:09:30]Method is POST - this is cgi request [15:09:30]url: /json_proto [15:09:30]query_string will be loaded in cgi processing [15:09:30]execute_cgi json_proto POST (null) [15:09:30]execute_cgi path=json_proto method=POST [15:09:30]POST find Content-Length [15:09:30]Host: 172.17.42.131:8080 [15:09:30]Content-Length: 677 [15:09:30]Content-Type: application/json [15:09:30] [15:09:30]POST finish read [15:09:30]Found Content-Length = 677 [15:09:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209831", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:09:30]execute_script... [15:09:30]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209831", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:09:30]POST & json_proto [15:09:30]process_json_proto [15:09:30]json parsed OK: [15:09:30]protocol is kg_v1.0 [15:09:30]action value=close_receipt [15:09:30]process_action close_receipt [15:09:30]cmd_close_receipt [15:09:30]MH_GetDate [15:09:30]Write to MH i2c: F0 00 00 7B 65 CF [15:09:30]Write i2c OK [15:09:30]MH_I2C_Read... [15:09:30]Read from MH i2c: F0 [15:09:30]MH_I2C_Read... [15:09:30]Read from MH i2c: F0 09 00 [15:09:30]MH_I2C_Read... [15:09:30]Read from MH i2c: F0 09 00 7B 65 00 AE 6E 16 67 A0 18 CA 66 59 [15:09:30]GetLastDocTimeStamp 1729523230 [15:09:30]current date 1729523374 [15:09:30]FM_GetShiftState [15:09:30]SAM_PROTO_GetShiftState [15:09:30]wFMCommunicate request_size=4 [15:09:30]MH_SAM_APDU [15:09:30]CAPDU: 80 13 01 00 [15:09:30]Write to MH i2c: E2 08 00 7C 65 80 13 01 00 00 00 00 00 5E [15:09:30]Write i2c OK [15:09:30]MH_I2C_Read... [15:09:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:09:30]Read from MH i2c: E2 [15:09:30]MH_I2C_Read... [15:09:30]Read from MH i2c: E2 0E 00 [15:09:30]MH_I2C_Read... [15:09:30]Read from MH i2c: E2 0E 00 7C 65 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 BD [15:09:30]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [15:09:30]wFMCommunicate OK [15:09:30]SAM_PROTO_GetShiftState done [15:09:30]FM_GetShiftState done [15:09:30]opened in 1729469754 [15:09:30]opened+sec_in_day 1729556154 [15:09:30]quantity*price = 50041 [15:09:30]sum+1 = 50042 [15:09: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 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 243 21.10.2024 15:09 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 187779 ФПД: 98923352635116 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T150935&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187779&fm=98923352635116&tin=02508201610067®Number=0000000000100030&sum=50000 [15:09:31]StoreToDocumentArchive [15:09:31]shift 460 fd 187779 [15:09:31]save to /storage/0460/doc_00187779 [15:09:31]save last doc name /storage/0460/doc_00187779 to /storage/kkm_last_doc_name [15:09:31]save OK [15:09:31]Clear old archive folders... [15:09:31]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:09:31]tlvbuf is 0118D6A0 [15:09:31]SAM_PROTO_ClearQueue [15:09:31]wFMCommunicate request_size=4 [15:09:31]MH_SAM_APDU [15:09:31]CAPDU: 80 09 00 00 [15:09:31]Write to MH i2c: E2 08 00 89 65 80 09 00 00 00 00 00 00 60 [15:09:31]Write i2c OK [15:09:31]MH_I2C_Read... [15:09:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:09:31]Read from MH i2c: E2 [15:09:31]MH_I2C_Read... [15:09:31]Read from MH i2c: E2 03 00 [15:09:31]MH_I2C_Read... [15:09:31]Read from MH i2c: E2 03 00 89 65 00 90 00 62 [15:09:31]RAPDU: 90 00 [15:09:31]wFMCommunicate OK [15:09:31]SAM_PROTO_ClearQueue done [15:09:31]KKMCreateOFDPacket [15:09:31]OFDProtocolAddRootSTLVToBuf [15:09:31]FM_MakeSignedData [15:09:31]FM_MakeSignedData [15:09:31]SAM_PROTO_SignData [15:09:31]wFMCommunicate request_size=4 [15:09:31]MH_SAM_APDU [15:09:31]CAPDU: 80 0D 01 02 [15:09:31]Write to MH i2c: E2 08 00 8A 65 80 0D 01 02 00 00 00 00 68 [15:09:31]Write i2c OK [15:09:31]MH_I2C_Read... [15:09:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:09:31]Read from MH i2c: E2 [15:09:31]MH_I2C_Read... [15:09:31]Read from MH i2c: E2 03 00 [15:09:31]MH_I2C_Read... [15:09:31]Read from MH i2c: E2 03 00 8A 65 00 90 00 63 [15:09:31]RAPDU: 90 00 [15:09:31]wFMCommunicate OK [15:09:31]wFMCommunicate request_size=255 [15:09:31]MH_SAM_APDU [15:09:31]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F3 00 00 00 F4 03 04 00 AF 6E 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 83 DD 02 00 35 04 06 00 59 [15:09:31]Write to MH i2c: E2 02 01 8B 65 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F3 00 00 00 F4 03 04 00 AF 6E 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 83 DD 02 00 35 04 06 00 59 00 00 F0 [15:09:31]Write i2c OK [15:09:31]MH_I2C_Read... [15:09:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:09:31]Read from MH i2c: E2 [15:09:31]MH_I2C_Read... [15:09:31]Read from MH i2c: E2 03 00 [15:09:31]MH_I2C_Read... [15:09:31]Read from MH i2c: E2 03 00 8B 65 00 90 00 64 [15:09:31]RAPDU: 90 00 [15:09:31]wFMCommunicate OK [15:09:31]wFMCommunicate request_size=10 [15:09:31]MH_SAM_APDU [15:09:31]CAPDU: 80 0D 02 02 05 F8 63 4B 36 EC [15:09:31]Write to MH i2c: E2 0D 00 8C 65 80 0D 02 02 05 00 F8 63 4B 36 EC 00 00 3D [15:09:31]Write i2c OK [15:09:31]MH_I2C_Read... [15:09:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:09:31]Read from MH i2c: E2 [15:09:31]MH_I2C_Read... [15:09:31]Read from MH i2c: E2 03 00 [15:09:31]MH_I2C_Read... [15:09:31]Read from MH i2c: E2 03 00 8C 65 00 90 00 65 [15:09:31]RAPDU: 90 00 [15:09:31]wFMCommunicate OK [15:09:31]wFMCommunicate request_size=4 [15:09:31]MH_SAM_APDU [15:09:31]CAPDU: 80 0D 03 02 [15:09:31]Write to MH i2c: E2 08 00 8D 65 80 0D 03 02 00 00 00 00 6D [15:09:31]Write i2c OK [15:09:31]MH_I2C_Read... [15:09:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:09:32]Read from MH i2c: E2 [15:09:32]MH_I2C_Read... [15:09:32]Read from MH i2c: E2 0B 00 [15:09:32]MH_I2C_Read... [15:09:32]Read from MH i2c: E2 0B 00 8D 65 00 64 C2 6D C9 47 85 A3 7F 90 00 B8 [15:09:32]RAPDU: 64 C2 6D C9 47 85 A3 7F 90 00 [15:09:32]wFMCommunicate OK [15:09:32]SAM_PROTO_SignData done [15:09:32]FM_MakeSignedData done [15:09:32]CreateOFDProtocolMessage [15:09:32]wFMCommunicate request_size=4 [15:09:32]MH_SAM_APDU [15:09:32]CAPDU: 80 11 00 00 [15:09:32]Write to MH i2c: E2 08 00 8E 65 80 11 00 00 00 00 00 00 6D [15:09:32]Write i2c OK [15:09:32]MH_I2C_Read... [15:09:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:09:32]Read from MH i2c: E2 [15:09:32]MH_I2C_Read... [15:09:32]Read from MH i2c: E2 17 00 [15:09:32]MH_I2C_Read... [15:09:32]Read from MH i2c: E2 17 00 8E 65 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 BB [15:09:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [15:09:32]wFMCommunicate OK [15:09:32]CreateOFDProtocolMessage done [15:09:32]OFDSenderStorePacket 187779 [15:09:32]StoreOFDPacket docnum=187779 [15:09:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 06 C8 07 01 63 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 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F3 00 00 00 F4 03 04 00 AF 6E 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 83 DD 02 00 35 04 06 00 59 F8 63 4B 36 EC 64 C2 6D C9 47 85 A3 7F [15:09:32]CheckFolder [15:09:32]dirname=/storage/ofd_packets [15:09:32]CheckFolder done [15:09:32]ProducePacketName [15:09:32]name=ofd_packets/00187779 [15:09:32]NVStorageSaveData ofd_packets/00187779 [15:09:32]File name is /storage/ofd_packets/00187779 [15:09:32]Write 301 bytes [15:09:32]NVStorageSaveData done [15:09:32]OFDSenderStorePacket done [15:09:32]KKMCreateOFDPacket done [15:09:32]NVStorageSaveData kkm_last_timestamp [15:09:32]File name is /storage/kkm_last_timestamp [15:09:32]Write 4 bytes [15:09:32]NVStorageSaveData done [15:09:32]ExternCall_PrintAddStr [15:09:32]wPrintStart [15:09:32]Write to MH i2c: 01 00 00 8F 65 F4 [15:09:32]Write i2c OK [15:09:32]MH_I2C_Read... [15:09:32]Read from MH i2c: 01 [15:09:32]MH_I2C_Read... [15:09:32]Read from MH i2c: 01 07 00 [15:09:32]MH_I2C_Read... [15:09:32]Read from MH i2c: 01 07 00 8F 65 00 00 00 00 00 FF 0F 09 [15:09:32]RasterBufferAndPrint [15:09:32]line Счет N : (1)209831 [15:09:32]line ИНН: 02508201610067 [15:09:32]line Контрольно-Кассовый Чек [15:09:32]line ПРОДАЖА [15:09:32]line ТРК (МРК, ГНК) : 22 [15:09:32]line Товар: 2710124130 [15:09:32]line Аи-92-К-3 [15:09:32]line 7.480 * 66.90 [15:09:32]line = 500.41 [15:09:32]line НДС 12% НСП 1% [15:09:32]line > о реализуемом товаре [15:09:32]line ОКРУГЛЕНИЕ: -0.41 [15:09:32]line ИТОГО: 500.00 [15:09:32]line Внесено: 500.00 [15:09:32]line СДАЧА: 0.00 [15:09:32]line НСП 1% : 4.43 [15:09:32]line НДС 12% : 53.14 [15:09:32]line Наличными: 500.00 [15:09:32]line Безнал.: 0.00 [15:09:32]line Место: АЗС № 86 "Партнер Нефть" [15:09:32]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [15:09:32]line СНО: Общий режим [15:09:32]line Чек 243 21.10.2024 15:09 [15:09:32]line Смена: 460 ФФД: 1.0 [15:09:32]line ЗНМ: 0300000155 [15:09:32]line РНМ: 0000000000100030 [15:09:32]line Версия ККМ: 001 [15:09:32]line ФМ: 0000000000965340 [15:09:32]line ФД: 187779 [15:09:32]line ФПД: 98923352635116 [15:09:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T150935&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187779&fm=98923352635116&tin=02508201610067®Number=0000000000100030&sum=50000 [15:09:32]OFD Sender: Processing packet 187779 [packets to send 1062, broken 1061] [15:09:32]ProducePacketName [15:09:32]name=ofd_packets/00187779 [15:09:32]OFD Sender: To server: pG, [15:09:32]CommunicateWithHost lk.salyk.kg:30040 [15:09:32]ConnectInit lk.salyk.kg [15:09:32]written 0, free lines is 4095 [15:09:32]Connected sock=10 [15:09:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 06 C8 07 01 63 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 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F3 00 00 00 F4 03 04 00 AF 6E 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 83 DD 02 00 35 04 06 00 59 F8 63 4B 36 EC 64 C2 6D C9 47 85 A3 7F [15:09:32]Write to MH i2c: 01 00 00 BA 65 1F [15:09:32]Write i2c OK [15:09:32]MH_I2C_Read... [15:09:32]Read from MH i2c: 01 [15:09:32]MH_I2C_Read... [15:09:32]Read from MH i2c: 01 07 00 [15:09:32]MH_I2C_Read... [15:09:32]Read from MH i2c: 01 07 00 BA 65 00 00 00 00 00 6A 0C 9C [15:09:32]RasterBufferAndPrint [15:09:32]line [15:09:32]line [15:09:32]line [15:09:32]line [15:09:32]line [15:09:32]written 0, free lines is 3181 [15:09:32]MH_Cut [15:09:32]Write to MH i2c: D1 01 00 C1 65 01 F8 [15:09:32]Write i2c OK [15:09:32]MH_I2C_Read... [15:09:32]Read from MH i2c: D1 [15:09:32]MH_I2C_Read... [15:09:32]Read from MH i2c: D1 01 00 [15:09:32]MH_I2C_Read... [15:09:32]Read from MH i2c: D1 01 00 C1 65 00 F7 [15:09:32]Write to MH i2c: 01 00 00 C2 65 27 [15:09:32]Write i2c OK [15:09:32]MH_I2C_Read... [15:09:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 78 EA 47 00 34 90 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 83 DD 02 00 F4 03 04 00 9E 18 16 67 B6 04 01 00 00 10 FA A2 A1 A9 9F E9 0E [15:09:32]CommunicateWithHost err = 0 [15:09:32]CheckOFDResponse [15:09:32]1017 (14) - 77093643461234 [15:09:32]1041 (16) - 0000000000965340 [15:09:32]1040 (4) - 187779 [15:09:32]1012 (4) - 21.10.2024 09:02 [15:09:32]1206 (1) - 0 [15:09:32]OFD Sender: Remove packet 187779 [15:09:32]ProducePacketName [15:09:32]name=ofd_packets/00187779 [15:09:32]NVStorageDeleteData [15:09:33]OFD Sender: No OFD packet to send [15:09:33]*** Cut start [15:09:33]*** Partial cut [15:09:33]*** CUTSNS_PIN = 1 [15:09:33]*** CUTSNS_PIN = 0 [15:09:34]*** Brake cut motor [15:09:34]Read from MH i2c: 01 [15:09:34]MH_I2C_Read... [15:09:34]*** Stop cut motor [15:09:34]*** Cut end [15:09:34]Read from MH i2c: 01 07 00 [15:09:34]MH_I2C_Read... [15:09:34]Read from MH i2c: 01 07 00 C2 65 00 00 00 00 00 FF 0F 3C [15:09:34]process_action close_receipt done [15:09:34]requested_data is exist [15:09:34]produce_requested_data [15:09:34]requested_item fm.sn is exist - process it [15:09:34]wFMCommunicate request_size=4 [15:09:34]MH_SAM_APDU [15:09:34]CAPDU: 80 11 00 00 [15:09:34]Write to MH i2c: E2 08 00 C3 65 80 11 00 00 00 00 00 00 A2 [15:09:34]Write i2c OK [15:09:34]MH_I2C_Read... [15:09:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:09:34]Read from MH i2c: E2 [15:09:34]MH_I2C_Read... [15:09:34]Read from MH i2c: E2 17 00 [15:09:34]MH_I2C_Read... [15:09:34]Read from MH i2c: E2 17 00 C3 65 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 F0 [15:09:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [15:09:34]wFMCommunicate OK [15:09:34]requested_item fd.num is exist - process it [15:09:34]SAM_PROTO_GetFieldsCounters [15:09:34]wFMCommunicate request_size=4 [15:09:34]MH_SAM_APDU [15:09:34]CAPDU: 80 13 00 00 [15:09:34]Write to MH i2c: E2 08 00 C4 65 80 13 00 00 00 00 00 00 A5 [15:09:34]Write i2c OK [15:09:34]MH_I2C_Read... [15:09:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:09:34]Read from MH i2c: E2 [15:09:34]MH_I2C_Read... [15:09:34]Read from MH i2c: E2 62 00 [15:09:34]MH_I2C_Read... [15:09:34]Read from MH i2c: E2 62 00 C4 65 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 83 DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 F3 00 00 00 5E 04 04 00 F3 00 00 00 57 04 04 00 F4 00 00 00 19 04 04 00 00 00 00 00 90 00 B4 [15:09:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 83 DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 F3 00 00 00 5E 04 04 00 F3 00 00 00 57 04 04 00 F4 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:09:34]wFMCommunicate OK [15:09:34]SAM_PROTO_GetFieldsCounters done [15:09:34]requested_item shift.num is exist - process it [15:09:34]requested_item shift.opened is exist - process it [15:09:34]req_shift_opened [15:09:34]FM_GetShiftState [15:09:34]SAM_PROTO_GetShiftState [15:09:34]wFMCommunicate request_size=4 [15:09:34]MH_SAM_APDU [15:09:34]CAPDU: 80 13 01 00 [15:09:34]Write to MH i2c: E2 08 00 C5 65 80 13 01 00 00 00 00 00 A7 [15:09:34]Write i2c OK [15:09:34]MH_I2C_Read... [15:09:34]Read from MH i2c: E2 [15:09:34]MH_I2C_Read... [15:09:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:09:34]Read from MH i2c: E2 0E 00 [15:09:34]MH_I2C_Read... [15:09:34]Read from MH i2c: E2 0E 00 C5 65 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 06 [15:09:34]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [15:09:34]wFMCommunicate OK [15:09:34]SAM_PROTO_GetShiftState done [15:09:34]FM_GetShiftState done [15:09:34]req_shift_opened done [15:09:34]requested_item shift.open_date is exist - process it [15:09:34]req_shift_open_date [15:09:34]req_shift_open_date done [15:09:34]produce_requested_data done [15:09:34]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187779,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [15:09:34]process_action_free close_receipt [15:09:34]json_value_free [15:09:34]json_value_free done [15:09:34]process_json_proto returns [15:09:34]Send response to host [15:09:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187779,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [15:09:34]free response buf [15:09:34]execute_script done [15:09:34]execute_script returns [15:09:34]free content buf [15:09:34]Sock 9.Close socket [15:09:34]Sock 9.Thread stoped [15:09:38]OFD Sender: No OFD packet to send [15:09:43]OFD Sender: No OFD packet to send [15:09:48]OFD Sender: No OFD packet to send [15:09:53]OFD Sender: No OFD packet to send [15:09:58]OFD Sender: No OFD packet to send [15:10:03]OFD Sender: No OFD packet to send [15:10:08]OFD Sender: No OFD packet to send [15:10:13]OFD Sender: No OFD packet to send [15:10:18]OFD Sender: No OFD packet to send [15:10:23]OFD Sender: No OFD packet to send [15:10:28]OFD Sender: No OFD packet to send [15:10:33]OFD Sender: No OFD packet to send [15:10:38]OFD Sender: No OFD packet to send [15:10:43]OFD Sender: No OFD packet to send [15:10:44]accept exits with 8 [15:10:44]New connection [15:10:44]New thread 3067157860 created [15:10:44]Thread 3067014500 joined [15:10:44]Waiting for new connection... [15:10:44] Sock 8.Parse request [15:10:44]Sock 8.Check first char [15:10:44]Sock 8.First char is OK [15:10:44]request: POST /json_proto HTTP/1.0 [15:10:44]Method: POST [15:10:44]URL: /json_proto [15:10:44]Method is POST - this is cgi request [15:10:44]url: /json_proto [15:10:44]query_string will be loaded in cgi processing [15:10:44]execute_cgi json_proto POST (null) [15:10:44]execute_cgi path=json_proto method=POST [15:10:44]POST find Content-Length [15:10:44]Host: 172.17.42.131:8080 [15:10:44]Content-Length: 679 [15:10:44]Content-Type: application/json [15:10:44] [15:10:44]POST finish read [15:10:44]Found Content-Length = 679 [15:10:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209833", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:10:44]execute_script... [15:10:44]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209833", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:10:44]POST & json_proto [15:10:44]process_json_proto [15:10:44]json parsed OK: [15:10:44]protocol is kg_v1.0 [15:10:44]action value=close_receipt [15:10:44]process_action close_receipt [15:10:44]cmd_close_receipt [15:10:44]MH_GetDate [15:10:44]Write to MH i2c: F0 00 00 C6 65 1A [15:10:44]Write i2c OK [15:10:44]MH_I2C_Read... [15:10:44]Read from MH i2c: F0 [15:10:44]MH_I2C_Read... [15:10:44]Read from MH i2c: F0 09 00 [15:10:44]MH_I2C_Read... [15:10:44]Read from MH i2c: F0 09 00 C6 65 00 F9 6E 16 67 A0 18 CA 66 EF [15:10:44]GetLastDocTimeStamp 1729523375 [15:10:44]current date 1729523449 [15:10:44]FM_GetShiftState [15:10:44]SAM_PROTO_GetShiftState [15:10:44]wFMCommunicate request_size=4 [15:10:44]MH_SAM_APDU [15:10:44]CAPDU: 80 13 01 00 [15:10:44]Write to MH i2c: E2 08 00 C7 65 80 13 01 00 00 00 00 00 A9 [15:10:44]Write i2c OK [15:10:44]MH_I2C_Read... [15:10:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:10:44]Read from MH i2c: E2 [15:10:44]MH_I2C_Read... [15:10:44]Read from MH i2c: E2 0E 00 [15:10:44]MH_I2C_Read... [15:10:44]Read from MH i2c: E2 0E 00 C7 65 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 08 [15:10:44]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [15:10:44]wFMCommunicate OK [15:10:44]SAM_PROTO_GetShiftState done [15:10:44]FM_GetShiftState done [15:10:44]opened in 1729469754 [15:10:44]opened+sec_in_day 1729556154 [15:10:44]quantity*price = 100050 [15:10:44]sum+1 = 100052 [15:10:44]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 244 21.10.2024 15:10 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 187780 ФПД: 107662777578330 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T151049&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187780&fm=107662777578330&tin=02508201610067®Number=0000000000100030&sum=100000 [15:10:46]StoreToDocumentArchive [15:10:46]shift 460 fd 187780 [15:10:46]save to /storage/0460/doc_00187780 [15:10:46]save last doc name /storage/0460/doc_00187780 to /storage/kkm_last_doc_name [15:10:46]save OK [15:10:46]Clear old archive folders... [15:10:46]ProcessDocumentItem done err = 0, tmpTLVsize=248 [15:10:46]tlvbuf is 010F9ED0 [15:10:46]SAM_PROTO_ClearQueue [15:10:46]wFMCommunicate request_size=4 [15:10:46]MH_SAM_APDU [15:10:46]CAPDU: 80 09 00 00 [15:10:46]Write to MH i2c: E2 08 00 D4 65 80 09 00 00 00 00 00 00 AB [15:10:46]Write i2c OK [15:10:46]MH_I2C_Read... [15:10:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:10:46]Read from MH i2c: E2 [15:10:46]MH_I2C_Read... [15:10:46]Read from MH i2c: E2 03 00 [15:10:46]MH_I2C_Read... [15:10:46]Read from MH i2c: E2 03 00 D4 65 00 90 00 AD [15:10:46]RAPDU: 90 00 [15:10:46]wFMCommunicate OK [15:10:46]SAM_PROTO_ClearQueue done [15:10:46]KKMCreateOFDPacket [15:10:46]OFDProtocolAddRootSTLVToBuf [15:10:46]FM_MakeSignedData [15:10:46]FM_MakeSignedData [15:10:46]SAM_PROTO_SignData [15:10:46]wFMCommunicate request_size=4 [15:10:46]MH_SAM_APDU [15:10:46]CAPDU: 80 0D 01 02 [15:10:46]Write to MH i2c: E2 08 00 D5 65 80 0D 01 02 00 00 00 00 B3 [15:10:46]Write i2c OK [15:10:46]MH_I2C_Read... [15:10:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:10:46]Read from MH i2c: E2 [15:10:46]MH_I2C_Read... [15:10:46]Read from MH i2c: E2 03 00 [15:10:46]MH_I2C_Read... [15:10:46]Read from MH i2c: E2 03 00 D5 65 00 90 00 AE [15:10:46]RAPDU: 90 00 [15:10:46]wFMCommunicate OK [15:10:46]wFMCommunicate request_size=255 [15:10:46]MH_SAM_APDU [15:10:46]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F4 00 00 00 F4 03 04 00 F9 6E 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 84 DD 02 00 35 04 06 00 61 EB 31 9C [15:10:46]Write to MH i2c: E2 02 01 D6 65 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 F4 00 00 00 F4 03 04 00 F9 6E 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 84 DD 02 00 35 04 06 00 61 EB 31 9C 00 00 3F [15:10:46]Write i2c OK [15:10:46]MH_I2C_Read... [15:10:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:10:46]Read from MH i2c: E2 [15:10:46]MH_I2C_Read... [15:10:46]Read from MH i2c: E2 03 00 [15:10:46]MH_I2C_Read... [15:10:46]Read from MH i2c: E2 03 00 D6 65 00 90 00 AF [15:10:46]RAPDU: 90 00 [15:10:46]wFMCommunicate OK [15:10:46]wFMCommunicate request_size=7 [15:10:46]MH_SAM_APDU [15:10:46]CAPDU: 80 0D 02 02 02 F3 5A [15:10:46]Write to MH i2c: E2 0A 00 D7 65 80 0D 02 02 02 00 F3 5A 00 00 07 [15:10:46]Write i2c OK [15:10:46]MH_I2C_Read... [15:10:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:10:46]Read from MH i2c: E2 [15:10:46]MH_I2C_Read... [15:10:46]Read from MH i2c: E2 03 00 [15:10:46]MH_I2C_Read... [15:10:46]Read from MH i2c: E2 03 00 D7 65 00 90 00 B0 [15:10:46]RAPDU: 90 00 [15:10:46]wFMCommunicate OK [15:10:46]wFMCommunicate request_size=4 [15:10:46]MH_SAM_APDU [15:10:46]CAPDU: 80 0D 03 02 [15:10:46]Write to MH i2c: E2 08 00 D8 65 80 0D 03 02 00 00 00 00 B8 [15:10:46]Write i2c OK [15:10:46]MH_I2C_Read... [15:10:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:10:46]Read from MH i2c: E2 [15:10:46]MH_I2C_Read... [15:10:46]Read from MH i2c: E2 0B 00 [15:10:46]MH_I2C_Read... [15:10:46]Read from MH i2c: E2 0B 00 D8 65 00 65 1F 55 DD 39 7B AF CF 90 00 A1 [15:10:46]RAPDU: 65 1F 55 DD 39 7B AF CF 90 00 [15:10:46]wFMCommunicate OK [15:10:46]SAM_PROTO_SignData done [15:10:46]FM_MakeSignedData done [15:10:46]CreateOFDProtocolMessage [15:10:46]wFMCommunicate request_size=4 [15:10:46]MH_SAM_APDU [15:10:46]CAPDU: 80 11 00 00 [15:10:46]Write to MH i2c: E2 08 00 D9 65 80 11 00 00 00 00 00 00 B8 [15:10:46]Write i2c OK [15:10:46]MH_I2C_Read... [15:10:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:10:46]Read from MH i2c: E2 [15:10:46]MH_I2C_Read... [15:10:46]Read from MH i2c: E2 17 00 [15:10:46]MH_I2C_Read... [15:10:46]Read from MH i2c: E2 17 00 D9 65 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 06 [15:10:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [15:10:46]wFMCommunicate OK [15:10:46]CreateOFDProtocolMessage done [15:10:46]OFDSenderStorePacket 187780 [15:10:46]StoreOFDPacket docnum=187780 [15:10:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 09 EC 04 01 F6 A6 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 F4 00 00 00 F4 03 04 00 F9 6E 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 84 DD 02 00 35 04 06 00 61 EB 31 9C F3 5A 65 1F 55 DD 39 7B AF CF [15:10:46]CheckFolder [15:10:46]dirname=/storage/ofd_packets [15:10:46]CheckFolder done [15:10:46]ProducePacketName [15:10:46]name=ofd_packets/00187780 [15:10:46]NVStorageSaveData ofd_packets/00187780 [15:10:46]File name is /storage/ofd_packets/00187780 [15:10:46]Write 298 bytes [15:10:46]NVStorageSaveData done [15:10:46]OFDSenderStorePacket done [15:10:46]KKMCreateOFDPacket done [15:10:46]NVStorageSaveData kkm_last_timestamp [15:10:46]File name is /storage/kkm_last_timestamp [15:10:46]Write 4 bytes [15:10:46]NVStorageSaveData done [15:10:46]ExternCall_PrintAddStr [15:10:46]wPrintStart [15:10:46]Write to MH i2c: 01 00 00 DA 65 3F [15:10:46]Write i2c OK [15:10:46]MH_I2C_Read... [15:10:46]Read from MH i2c: 01 [15:10:46]MH_I2C_Read... [15:10:46]Read from MH i2c: 01 07 00 [15:10:46]MH_I2C_Read... [15:10:46]Read from MH i2c: 01 07 00 DA 65 00 00 00 00 00 FF 0F 54 [15:10:46]RasterBufferAndPrint [15:10:46]line Счет N : (1)209833 [15:10:46]line ИНН: 02508201610067 [15:10:46]line Контрольно-Кассовый Чек [15:10:46]line ПРОДАЖА [15:10:46]line ТРК (МРК, ГНК) : 51 [15:10:46]line Товар: 2710194210 [15:10:46]line ДТ-К-5 [15:10:46]line 13.130 * 76.20 [15:10:46]line = 1000.51 [15:10:46]line НДС 12% НСП 1% [15:10:46]line > о реализуемом товаре [15:10:46]line ОКРУГЛЕНИЕ: -0.51 [15:10:46]line ИТОГО: 1000.00 [15:10:46]line Внесено: 1000.00 [15:10:46]line СДАЧА: 0.00 [15:10:46]line НСП 1% : 8.85 [15:10:46]line НДС 12% : 106.25 [15:10:46]line Наличными: 1000.00 [15:10:46]line Безнал.: 0.00 [15:10:46]line Место: АЗС № 86 "Партнер Нефть" [15:10:46]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [15:10:46]line СНО: Общий режим [15:10:46]line Чек 244 21.10.2024 15:10 [15:10:46]line Смена: 460 ФФД: 1.0 [15:10:46]line ЗНМ: 0300000155 [15:10:46]line РНМ: 0000000000100030 [15:10:46]line Версия ККМ: 001 [15:10:46]line ФМ: 0000000000965340 [15:10:46]line ФД: 187780 [15:10:46]line ФПД: 107662777578330 [15:10:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T151049&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187780&fm=107662777578330&tin=02508201610067®Number=0000000000100030&sum=100000 [15:10:46]written 0, free lines is 4095 [15:10:46]OFD Sender: Processing packet 187780 [packets to send 1062, broken 1061] [15:10:46]ProducePacketName [15:10:46]name=ofd_packets/00187780 [15:10:46]OFD Sender: To server: pG, [15:10:46]CommunicateWithHost lk.salyk.kg:30040 [15:10:46]ConnectInit lk.salyk.kg [15:10:46]Connected sock=10 [15:10:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 09 EC 04 01 F6 A6 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 F4 00 00 00 F4 03 04 00 F9 6E 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 84 DD 02 00 35 04 06 00 61 EB 31 9C F3 5A 65 1F 55 DD 39 7B AF CF [15:10:47]Write to MH i2c: 01 00 00 05 66 6B [15:10:47]Write i2c OK [15:10:47]MH_I2C_Read... [15:10:47]Read from MH i2c: 01 [15:10:47]MH_I2C_Read... [15:10:47]Read from MH i2c: 01 07 00 [15:10:47]MH_I2C_Read... [15:10:47]Read from MH i2c: 01 07 00 05 66 00 00 00 00 00 61 0C DF [15:10:47]RasterBufferAndPrint [15:10:47]line [15:10:47]line [15:10:47]line [15:10:47]line [15:10:47]line [15:10:47]written 0, free lines is 3173 [15:10:47]MH_Cut [15:10:47]Write to MH i2c: D1 01 00 0C 66 01 44 [15:10:47]Write i2c OK [15:10:47]MH_I2C_Read... [15:10:47]Read from MH i2c: D1 [15:10:47]MH_I2C_Read... [15:10:47]Read from MH i2c: D1 01 00 [15:10:47]MH_I2C_Read... [15:10:47]Read from MH i2c: D1 01 00 0C 66 00 43 [15:10:47]Write to MH i2c: 01 00 00 0D 66 73 [15:10:47]Write i2c OK [15:10:47]MH_I2C_Read... [15:10:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 3C F8 47 00 6A 5C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 84 DD 02 00 F4 03 04 00 E8 18 16 67 B6 04 01 00 00 11 ED C8 D0 AE AB 28 B1 [15:10:47]CommunicateWithHost err = 0 [15:10:47]CheckOFDResponse [15:10:47]1017 (14) - 77093643461234 [15:10:47]1041 (16) - 0000000000965340 [15:10:47]1040 (4) - 187780 [15:10:47]1012 (4) - 21.10.2024 09:03 [15:10:47]1206 (1) - 0 [15:10:47]OFD Sender: Remove packet 187780 [15:10:47]ProducePacketName [15:10:47]name=ofd_packets/00187780 [15:10:47]NVStorageDeleteData [15:10:47]OFD Sender: No OFD packet to send [15:10:48]*** Cut start [15:10:48]*** Partial cut [15:10:48]*** CUTSNS_PIN = 1 [15:10:48]*** CUTSNS_PIN = 0 [15:10:48]*** Brake cut motor [15:10:48]Read from MH i2c: 01 [15:10:48]MH_I2C_Read... [15:10:48]*** Stop cut motor [15:10:48]*** Cut end [15:10:48]Read from MH i2c: 01 07 00 [15:10:48]MH_I2C_Read... [15:10:48]Read from MH i2c: 01 07 00 0D 66 00 00 00 00 00 FF 0F 88 [15:10:48]process_action close_receipt done [15:10:48]requested_data is exist [15:10:48]produce_requested_data [15:10:48]requested_item fm.sn is exist - process it [15:10:48]wFMCommunicate request_size=4 [15:10:48]MH_SAM_APDU [15:10:48]CAPDU: 80 11 00 00 [15:10:48]Write to MH i2c: E2 08 00 0E 66 80 11 00 00 00 00 00 00 EE [15:10:48]Write i2c OK [15:10:48]MH_I2C_Read... [15:10:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:10:49]Read from MH i2c: E2 [15:10:49]MH_I2C_Read... [15:10:49]Read from MH i2c: E2 17 00 [15:10:49]MH_I2C_Read... [15:10:49]Read from MH i2c: E2 17 00 0E 66 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 3C [15:10:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [15:10:49]wFMCommunicate OK [15:10:49]requested_item fd.num is exist - process it [15:10:49]SAM_PROTO_GetFieldsCounters [15:10:49]wFMCommunicate request_size=4 [15:10:49]MH_SAM_APDU [15:10:49]CAPDU: 80 13 00 00 [15:10:49]Write to MH i2c: E2 08 00 0F 66 80 13 00 00 00 00 00 00 F1 [15:10:49]Write i2c OK [15:10:49]MH_I2C_Read... [15:10:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:10:49]Read from MH i2c: E2 [15:10:49]MH_I2C_Read... [15:10:49]Read from MH i2c: E2 62 00 [15:10:49]MH_I2C_Read... [15:10:49]Read from MH i2c: E2 62 00 0F 66 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 84 DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 F4 00 00 00 5E 04 04 00 F4 00 00 00 57 04 04 00 F5 00 00 00 19 04 04 00 00 00 00 00 90 00 04 [15:10:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 84 DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 F4 00 00 00 5E 04 04 00 F4 00 00 00 57 04 04 00 F5 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:10:49]wFMCommunicate OK [15:10:49]SAM_PROTO_GetFieldsCounters done [15:10:49]requested_item shift.num is exist - process it [15:10:49]requested_item shift.opened is exist - process it [15:10:49]req_shift_opened [15:10:49]FM_GetShiftState [15:10:49]SAM_PROTO_GetShiftState [15:10:49]wFMCommunicate request_size=4 [15:10:49]MH_SAM_APDU [15:10:49]CAPDU: 80 13 01 00 [15:10:49]Write to MH i2c: E2 08 00 10 66 80 13 01 00 00 00 00 00 F3 [15:10:49]Write i2c OK [15:10:49]MH_I2C_Read... [15:10:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:10:49]Read from MH i2c: E2 [15:10:49]MH_I2C_Read... [15:10:49]Read from MH i2c: E2 0E 00 [15:10:49]MH_I2C_Read... [15:10:49]Read from MH i2c: E2 0E 00 10 66 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 52 [15:10:49]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [15:10:49]wFMCommunicate OK [15:10:49]SAM_PROTO_GetShiftState done [15:10:49]FM_GetShiftState done [15:10:49]req_shift_opened done [15:10:49]requested_item shift.open_date is exist - process it [15:10:49]req_shift_open_date [15:10:49]req_shift_open_date done [15:10:49]produce_requested_data done [15:10:49]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187780,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [15:10:49]process_action_free close_receipt [15:10:49]json_value_free [15:10:49]json_value_free done [15:10:49]process_json_proto returns [15:10:49]Send response to host [15:10:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187780,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [15:10:49]free response buf [15:10:49]execute_script done [15:10:49]execute_script returns [15:10:49]free content buf [15:10:49]Sock 8.Close socket [15:10:49]Sock 8.Thread stoped [15:10:52]OFD Sender: No OFD packet to send [15:10:57]OFD Sender: No OFD packet to send [15:11:02]OFD Sender: No OFD packet to send [15:11:07]OFD Sender: No OFD packet to send [15:11:12]accept exits with 9 [15:11:12]New connection [15:11:12]New thread 3067014500 created [15:11:12]Thread 3067157860 joined [15:11:12]Waiting for new connection... [15:11:12] Sock 9.Parse request [15:11:12]Sock 9.Check first char [15:11:12]Sock 9.First char is OK [15:11:12]request: POST /json_proto HTTP/1.0 [15:11:12]Method: POST [15:11:12]URL: /json_proto [15:11:12]Method is POST - this is cgi request [15:11:12]url: /json_proto [15:11:12]query_string will be loaded in cgi processing [15:11:12]execute_cgi json_proto POST (null) [15:11:12]execute_cgi path=json_proto method=POST [15:11:12]POST find Content-Length [15:11:12]Host: 172.17.42.131:8080 [15:11:12]Content-Length: 754 [15:11:12]Content-Type: application/json [15:11:12] [15:11:12]POST finish read [15:11:12]Found Content-Length = 754 [15:11:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209832", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 0.00, "quantity" : 30.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30110813", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:11:12]execute_script... [15:11: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)209832", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 0.00, "quantity" : 30.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30110813", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:11:12]POST & json_proto [15:11:12]process_json_proto [15:11:12]json parsed OK: [15:11:12]protocol is kg_v1.0 [15:11:12]action value=close_receipt [15:11:12]process_action close_receipt [15:11:12]cmd_close_receipt [15:11:12]MH_GetDate [15:11:12]Write to MH i2c: F0 00 00 11 66 66 [15:11:12]Write i2c OK [15:11:12]MH_I2C_Read... [15:11:12]Read from MH i2c: F0 [15:11:12]MH_I2C_Read... [15:11:12]Read from MH i2c: F0 09 00 [15:11:12]MH_I2C_Read... [15:11:12]Read from MH i2c: F0 09 00 11 66 00 15 6F 16 67 A0 18 CA 66 58 [15:11:12]GetLastDocTimeStamp 1729523449 [15:11:12]current date 1729523477 [15:11:12]FM_GetShiftState [15:11:12]SAM_PROTO_GetShiftState [15:11:12]wFMCommunicate request_size=4 [15:11:12]MH_SAM_APDU [15:11:12]CAPDU: 80 13 01 00 [15:11:12]Write to MH i2c: E2 08 00 12 66 80 13 01 00 00 00 00 00 F5 [15:11:12]Write i2c OK [15:11:12]MH_I2C_Read... [15:11:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:11:12]Read from MH i2c: E2 [15:11:12]MH_I2C_Read... [15:11:12]Read from MH i2c: E2 0E 00 [15:11:12]MH_I2C_Read... [15:11:12]Read from MH i2c: E2 0E 00 12 66 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 54 [15:11:12]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [15:11:12]wFMCommunicate OK [15:11:12]SAM_PROTO_GetShiftState done [15:11:12]FM_GetShiftState done [15:11:12]opened in 1729469754 [15:11:12]opened+sec_in_day 1729556154 [15:11:12]quantity*price = 0 [15:11:12]sum+1 = 1 [15:11:12]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 245 21.10.2024 15:11 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Талоны: ТК ГПНА Online 30110813 ФМ: 0000000000965340 ФД: 187781 ФПД: 210678257701622 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T151117&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187781&fm=210678257701622&tin=02508201610067®Number=0000000000100030&sum=0 [15:11:13]StoreToDocumentArchive [15:11:13]shift 460 fd 187781 [15:11:13]save to /storage/0460/doc_00187781 [15:11:13]save last doc name /storage/0460/doc_00187781 to /storage/kkm_last_doc_name [15:11:13]save OK [15:11:13]Clear old archive folders... [15:11:13]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:11:13]tlvbuf is 01267500 [15:11:13]SAM_PROTO_ClearQueue [15:11:13]wFMCommunicate request_size=4 [15:11:13]MH_SAM_APDU [15:11:13]CAPDU: 80 09 00 00 [15:11:13]Write to MH i2c: E2 08 00 1F 66 80 09 00 00 00 00 00 00 F7 [15:11:13]Write i2c OK [15:11:13]MH_I2C_Read... [15:11:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:11:13]Read from MH i2c: E2 [15:11:13]MH_I2C_Read... [15:11:13]Read from MH i2c: E2 03 00 [15:11:13]MH_I2C_Read... [15:11:13]Read from MH i2c: E2 03 00 1F 66 00 90 00 F9 [15:11:13]RAPDU: 90 00 [15:11:13]wFMCommunicate OK [15:11:13]SAM_PROTO_ClearQueue done [15:11:13]KKMCreateOFDPacket [15:11:13]OFDProtocolAddRootSTLVToBuf [15:11:13]FM_MakeSignedData [15:11:13]FM_MakeSignedData [15:11:13]SAM_PROTO_SignData [15:11:13]wFMCommunicate request_size=4 [15:11:13]MH_SAM_APDU [15:11:13]CAPDU: 80 0D 01 02 [15:11:13]Write to MH i2c: E2 08 00 20 66 80 0D 01 02 00 00 00 00 FF [15:11:13]Write i2c OK [15:11:13]MH_I2C_Read... [15:11:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:11:13]Read from MH i2c: E2 [15:11:13]MH_I2C_Read... [15:11:13]Read from MH i2c: E2 03 00 [15:11:13]MH_I2C_Read... [15:11:13]Read from MH i2c: E2 03 00 20 66 00 90 00 FA [15:11:13]RAPDU: 90 00 [15:11:13]wFMCommunicate OK [15:11:13]wFMCommunicate request_size=255 [15:11:13]MH_SAM_APDU [15:11: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 33 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 F5 00 00 00 F4 03 04 00 15 6F 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 85 DD 02 00 35 04 06 00 BF [15:11:13]Write to MH i2c: E2 02 01 21 66 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 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 F5 00 00 00 F4 03 04 00 15 6F 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 85 DD 02 00 35 04 06 00 BF 00 00 78 [15:11:13]Write i2c OK [15:11:13]MH_I2C_Read... [15:11:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:11:14]Read from MH i2c: E2 [15:11:14]MH_I2C_Read... [15:11:14]Read from MH i2c: E2 03 00 [15:11:14]MH_I2C_Read... [15:11:14]Read from MH i2c: E2 03 00 21 66 00 90 00 FB [15:11:14]RAPDU: 90 00 [15:11:14]wFMCommunicate OK [15:11:14]wFMCommunicate request_size=10 [15:11:14]MH_SAM_APDU [15:11:14]CAPDU: 80 0D 02 02 05 9C 5A B6 52 F6 [15:11:14]Write to MH i2c: E2 0D 00 22 66 80 0D 02 02 05 00 9C 5A B6 52 F6 00 00 00 [15:11:14]Write i2c OK [15:11:14]MH_I2C_Read... [15:11:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:11:14]Read from MH i2c: E2 [15:11:14]MH_I2C_Read... [15:11:14]Read from MH i2c: E2 03 00 [15:11:14]MH_I2C_Read... [15:11:14]Read from MH i2c: E2 03 00 22 66 00 90 00 FC [15:11:14]RAPDU: 90 00 [15:11:14]wFMCommunicate OK [15:11:14]wFMCommunicate request_size=4 [15:11:14]MH_SAM_APDU [15:11:14]CAPDU: 80 0D 03 02 [15:11:14]Write to MH i2c: E2 08 00 23 66 80 0D 03 02 00 00 00 00 04 [15:11:14]Write i2c OK [15:11:14]MH_I2C_Read... [15:11:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:11:14]Read from MH i2c: E2 [15:11:14]MH_I2C_Read... [15:11:14]Read from MH i2c: E2 0B 00 [15:11:14]MH_I2C_Read... [15:11:14]Read from MH i2c: E2 0B 00 23 66 00 9F 21 BB 11 6A CE 8B A9 90 00 FD [15:11:14]RAPDU: 9F 21 BB 11 6A CE 8B A9 90 00 [15:11:14]wFMCommunicate OK [15:11:14]SAM_PROTO_SignData done [15:11:14]FM_MakeSignedData done [15:11:14]CreateOFDProtocolMessage [15:11:14]wFMCommunicate request_size=4 [15:11:14]MH_SAM_APDU [15:11:14]CAPDU: 80 11 00 00 [15:11:14]Write to MH i2c: E2 08 00 24 66 80 11 00 00 00 00 00 00 04 [15:11:14]Write i2c OK [15:11:14]MH_I2C_Read... [15:11:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:11:14]Read from MH i2c: E2 [15:11:14]MH_I2C_Read... [15:11:14]Read from MH i2c: E2 17 00 [15:11:14]MH_I2C_Read... [15:11:14]Read from MH i2c: E2 17 00 24 66 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 52 [15:11:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [15:11:14]wFMCommunicate OK [15:11:14]CreateOFDProtocolMessage done [15:11:14]OFDSenderStorePacket 187781 [15:11:14]StoreOFDPacket docnum=187781 [15:11:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 C1 33 07 01 DC 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 33 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 F5 00 00 00 F4 03 04 00 15 6F 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 85 DD 02 00 35 04 06 00 BF 9C 5A B6 52 F6 9F 21 BB 11 6A CE 8B A9 [15:11:14]CheckFolder [15:11:14]dirname=/storage/ofd_packets [15:11:14]CheckFolder done [15:11:14]ProducePacketName [15:11:14]name=ofd_packets/00187781 [15:11:14]NVStorageSaveData ofd_packets/00187781 [15:11:14]File name is /storage/ofd_packets/00187781 [15:11:14]Write 301 bytes [15:11:14]NVStorageSaveData done [15:11:14]OFDSenderStorePacket done [15:11:14]KKMCreateOFDPacket done [15:11:14]NVStorageSaveData kkm_last_timestamp [15:11:14]File name is /storage/kkm_last_timestamp [15:11:14]Write 4 bytes [15:11:14]NVStorageSaveData done [15:11:14]ExternCall_PrintAddStr [15:11:14]wPrintStart [15:11:14]Write to MH i2c: 01 00 00 25 66 8B [15:11:14]Write i2c OK [15:11:14]MH_I2C_Read... [15:11:14]Read from MH i2c: 01 [15:11:14]MH_I2C_Read... [15:11:14]Read from MH i2c: 01 07 00 [15:11:14]MH_I2C_Read... [15:11:14]Read from MH i2c: 01 07 00 25 66 00 00 00 00 00 FF 0F A0 [15:11:14]RasterBufferAndPrint [15:11:14]line Счет N : (1)209832 [15:11:14]line ИНН: 02508201610067 [15:11:14]line Контрольно-Кассовый Чек [15:11:14]line ПРОДАЖА [15:11:14]line ТРК (МРК, ГНК) : 42 [15:11:14]line Товар: 2710124130 [15:11:14]line Аи-92-К-3 [15:11:14]line 30.000 * 0.00 [15:11:14]line = 0.00 [15:11:14]line НДС 12% НСП 1% [15:11:14]line > о реализуемом товаре [15:11:14]line ИТОГО: 0.00 [15:11:14]line НСП 1% : 0.00 [15:11:14]line НДС 12% : 0.00 [15:11:14]line Наличными: 0.00 [15:11:14]line Безнал.: 0.00 [15:11:14]line Место: АЗС № 86 "Партнер Нефть" [15:11:14]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [15:11:14]line СНО: Общий режим [15:11:14]line Чек 245 21.10.2024 15:11 [15:11:14]line Смена: 460 ФФД: 1.0 [15:11:14]line ЗНМ: 0300000155 [15:11:14]line РНМ: 0000000000100030 [15:11:14]line Версия ККМ: 001 [15:11:14]line Талоны: ТК ГПНА Online [15:11:14]line 30110813 [15:11:14]line ФМ: 0000000000965340 [15:11:14]line ФД: 187781 [15:11:14]line ФПД: 210678257701622 [15:11:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T151117&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187781&fm=210678257701622&tin=02508201610067®Number=0000000000100030&sum=0 [15:11:14]written 0, free lines is 4095 [15:11:14]OFD Sender: Processing packet 187781 [packets to send 1062, broken 1061] [15:11:14]ProducePacketName [15:11:14]name=ofd_packets/00187781 [15:11:14]OFD Sender: To server: pG, [15:11:14]CommunicateWithHost lk.salyk.kg:30040 [15:11:14]ConnectInit lk.salyk.kg [15:11:14]Connected sock=10 [15:11:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 C1 33 07 01 DC 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 33 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 F5 00 00 00 F4 03 04 00 15 6F 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 85 DD 02 00 35 04 06 00 BF 9C 5A B6 52 F6 9F 21 BB 11 6A CE 8B A9 [15:11:14]Write to MH i2c: 01 00 00 4F 66 B5 [15:11:14]Write i2c OK [15:11:14]MH_I2C_Read... [15:11:14]Read from MH i2c: 01 [15:11:14]MH_I2C_Read... [15:11:14]Read from MH i2c: 01 07 00 [15:11:14]MH_I2C_Read... [15:11:14]Read from MH i2c: 01 07 00 4F 66 00 00 00 00 00 7A 0C 42 [15:11:14]RasterBufferAndPrint [15:11:14]line [15:11:14]line [15:11:14]line [15:11:14]line [15:11:14]line [15:11:14]written 0, free lines is 3198 [15:11:14]MH_Cut [15:11:14]Write to MH i2c: D1 01 00 56 66 01 8E [15:11:14]Write i2c OK [15:11:14]MH_I2C_Read... [15:11:14]Read from MH i2c: D1 [15:11:14]MH_I2C_Read... [15:11:14]Read from MH i2c: D1 01 00 [15:11:14]MH_I2C_Read... [15:11:14]Read from MH i2c: D1 01 00 56 66 00 8D [15:11:14]Write to MH i2c: 01 00 00 57 66 BD [15:11:14]Write i2c OK [15:11:14]MH_I2C_Read... [15:11:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 25 5F 47 00 56 66 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 85 DD 02 00 F4 03 04 00 04 19 16 67 B6 04 01 00 00 E5 5C 7B 3E 98 9E 2B C7 [15:11:14]CommunicateWithHost err = 0 [15:11:14]CheckOFDResponse [15:11:14]1017 (14) - 77093643461234 [15:11:14]1041 (16) - 0000000000965340 [15:11:14]1040 (4) - 187781 [15:11:14]1012 (4) - 21.10.2024 09:04 [15:11:14]1206 (1) - 0 [15:11:14]OFD Sender: Remove packet 187781 [15:11:14]ProducePacketName [15:11:14]name=ofd_packets/00187781 [15:11:14]NVStorageDeleteData [15:11:15]OFD Sender: No OFD packet to send [15:11:15]*** Cut start [15:11:15]*** Partial cut [15:11:15]*** CUTSNS_PIN = 1 [15:11:15]*** CUTSNS_PIN = 0 [15:11:16]*** Brake cut motor [15:11:16]Read from MH i2c: 01 [15:11:16]MH_I2C_Read... [15:11:16]*** Stop cut motor [15:11:16]*** Cut end [15:11:16]Read from MH i2c: 01 07 00 [15:11:16]MH_I2C_Read... [15:11:16]Read from MH i2c: 01 07 00 57 66 00 00 00 00 00 FF 0F D2 [15:11:16]process_action close_receipt done [15:11:16]requested_data is exist [15:11:16]produce_requested_data [15:11:16]requested_item fm.sn is exist - process it [15:11:16]wFMCommunicate request_size=4 [15:11:16]MH_SAM_APDU [15:11:16]CAPDU: 80 11 00 00 [15:11:16]Write to MH i2c: E2 08 00 58 66 80 11 00 00 00 00 00 00 38 [15:11:16]Write i2c OK [15:11:16]MH_I2C_Read... [15:11:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:11:16]Read from MH i2c: E2 [15:11:16]MH_I2C_Read... [15:11:16]Read from MH i2c: E2 17 00 [15:11:16]MH_I2C_Read... [15:11:16]Read from MH i2c: E2 17 00 58 66 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 86 [15:11:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [15:11:16]wFMCommunicate OK [15:11:16]requested_item fd.num is exist - process it [15:11:16]SAM_PROTO_GetFieldsCounters [15:11:16]wFMCommunicate request_size=4 [15:11:16]MH_SAM_APDU [15:11:16]CAPDU: 80 13 00 00 [15:11:16]Write to MH i2c: E2 08 00 59 66 80 13 00 00 00 00 00 00 3B [15:11:16]Write i2c OK [15:11:16]MH_I2C_Read... [15:11:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:11:16]Read from MH i2c: E2 [15:11:16]MH_I2C_Read... [15:11:16]Read from MH i2c: E2 62 00 [15:11:16]MH_I2C_Read... [15:11:16]Read from MH i2c: E2 62 00 59 66 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 85 DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 F5 00 00 00 5E 04 04 00 F5 00 00 00 57 04 04 00 F6 00 00 00 19 04 04 00 00 00 00 00 90 00 52 [15:11:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 85 DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 F5 00 00 00 5E 04 04 00 F5 00 00 00 57 04 04 00 F6 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:11:16]wFMCommunicate OK [15:11:16]SAM_PROTO_GetFieldsCounters done [15:11:16]requested_item shift.num is exist - process it [15:11:16]requested_item shift.opened is exist - process it [15:11:16]req_shift_opened [15:11:16]FM_GetShiftState [15:11:16]SAM_PROTO_GetShiftState [15:11:16]wFMCommunicate request_size=4 [15:11:16]MH_SAM_APDU [15:11:16]CAPDU: 80 13 01 00 [15:11:16]Write to MH i2c: E2 08 00 5A 66 80 13 01 00 00 00 00 00 3D [15:11:16]Write i2c OK [15:11:16]MH_I2C_Read... [15:11:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:11:16]Read from MH i2c: E2 [15:11:16]MH_I2C_Read... [15:11:16]Read from MH i2c: E2 0E 00 [15:11:16]MH_I2C_Read... [15:11:16]Read from MH i2c: E2 0E 00 5A 66 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 9C [15:11:16]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [15:11:16]wFMCommunicate OK [15:11:16]SAM_PROTO_GetShiftState done [15:11:16]FM_GetShiftState done [15:11:16]req_shift_opened done [15:11:16]requested_item shift.open_date is exist - process it [15:11:16]req_shift_open_date [15:11:16]req_shift_open_date done [15:11:16]produce_requested_data done [15:11:16]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187781,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [15:11:16]process_action_free close_receipt [15:11:16]json_value_free [15:11:16]json_value_free done [15:11:16]process_json_proto returns [15:11:16]Send response to host [15:11:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187781,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [15:11:16]free response buf [15:11:16]execute_script done [15:11:16]execute_script returns [15:11:16]free content buf [15:11:16]Sock 9.Close socket [15:11:16]Sock 9.Thread stoped [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:53]accept exits with 8 [15:12:53]New connection [15:12:53]New thread 3067157860 created [15:12:53]Thread 3067014500 joined [15:12:53]Waiting for new connection... [15:12:53] Sock 8.Parse request [15:12:53]Sock 8.Check first char [15:12:53]Sock 8.First char is OK [15:12:53]request: POST /json_proto HTTP/1.0 [15:12:53]Method: POST [15:12:53]URL: /json_proto [15:12:53]Method is POST - this is cgi request [15:12:53]url: /json_proto [15:12:53]query_string will be loaded in cgi processing [15:12:53]execute_cgi json_proto POST (null) [15:12:53]execute_cgi path=json_proto method=POST [15:12:53]POST find Content-Length [15:12:53]Host: 172.17.42.131:8080 [15:12:53]Content-Length: 792 [15:12:53]Content-Type: application/json [15:12:53] [15:12:53]POST finish read [15:12:53]Found Content-Length = 792 [15:12:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209834", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 0.00, "quantity" : 40.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A03517", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:12:53]execute_script... [15:12: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)209834", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 0.00, "quantity" : 40.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A03517", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:12:53]POST & json_proto [15:12:53]process_json_proto [15:12:53]json parsed OK: [15:12:53]protocol is kg_v1.0 [15:12:53]action value=close_receipt [15:12:53]process_action close_receipt [15:12:53]cmd_close_receipt [15:12:53]MH_GetDate [15:12:53]Write to MH i2c: F0 00 00 5B 66 B0 [15:12:53]Write i2c OK [15:12:53]MH_I2C_Read... [15:12:53]Read from MH i2c: F0 [15:12:53]MH_I2C_Read... [15:12:53]Read from MH i2c: F0 09 00 [15:12:53]MH_I2C_Read... [15:12:53]Read from MH i2c: F0 09 00 5B 66 00 7A 6F 16 67 A0 18 CA 66 07 [15:12:53]GetLastDocTimeStamp 1729523477 [15:12:53]current date 1729523578 [15:12:53]FM_GetShiftState [15:12:53]SAM_PROTO_GetShiftState [15:12:53]wFMCommunicate request_size=4 [15:12:53]MH_SAM_APDU [15:12:53]CAPDU: 80 13 01 00 [15:12:53]Write to MH i2c: E2 08 00 5C 66 80 13 01 00 00 00 00 00 3F [15:12:53]Write i2c OK [15:12:53]MH_I2C_Read... [15:12:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:12:53]Read from MH i2c: E2 [15:12:53]MH_I2C_Read... [15:12:53]Read from MH i2c: E2 0E 00 [15:12:53]MH_I2C_Read... [15:12:53]Read from MH i2c: E2 0E 00 5C 66 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 9E [15:12:53]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [15:12:53]wFMCommunicate OK [15:12:53]SAM_PROTO_GetShiftState done [15:12:53]FM_GetShiftState done [15:12:53]opened in 1729469754 [15:12:53]opened+sec_in_day 1729556154 [15:12:53]quantity*price = 0 [15:12:53]sum+1 = 1 [15:12:53]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 246 21.10.2024 15:12 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Талоны: Топливная Карта 03517 ФМ: 0000000000965340 ФД: 187782 ФПД: 215897801332452 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T151258&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187782&fm=215897801332452&tin=02508201610067®Number=0000000000100030&sum=0 [15:12:54]StoreToDocumentArchive [15:12:54]shift 460 fd 187782 [15:12:54]save to /storage/0460/doc_00187782 [15:12:54]save last doc name /storage/0460/doc_00187782 to /storage/kkm_last_doc_name [15:12:54]save OK [15:12:54]Clear old archive folders... [15:12:54]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:12:54]tlvbuf is 01093E40 [15:12:54]SAM_PROTO_ClearQueue [15:12:54]wFMCommunicate request_size=4 [15:12:54]MH_SAM_APDU [15:12:54]CAPDU: 80 09 00 00 [15:12:54]Write to MH i2c: E2 08 00 69 66 80 09 00 00 00 00 00 00 41 [15:12:54]Write i2c OK [15:12:54]MH_I2C_Read... [15:12:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:12:54]Read from MH i2c: E2 [15:12:54]MH_I2C_Read... [15:12:54]Read from MH i2c: E2 03 00 [15:12:54]MH_I2C_Read... [15:12:54]Read from MH i2c: E2 03 00 69 66 00 90 00 43 [15:12:54]RAPDU: 90 00 [15:12:54]wFMCommunicate OK [15:12:54]SAM_PROTO_ClearQueue done [15:12:54]KKMCreateOFDPacket [15:12:54]OFDProtocolAddRootSTLVToBuf [15:12:54]FM_MakeSignedData [15:12:54]FM_MakeSignedData [15:12:54]SAM_PROTO_SignData [15:12:54]wFMCommunicate request_size=4 [15:12:54]MH_SAM_APDU [15:12:54]CAPDU: 80 0D 01 02 [15:12:54]Write to MH i2c: E2 08 00 6A 66 80 0D 01 02 00 00 00 00 49 [15:12:54]Write i2c OK [15:12:54]MH_I2C_Read... [15:12:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:12:54]Read from MH i2c: E2 [15:12:54]MH_I2C_Read... [15:12:54]Read from MH i2c: E2 03 00 [15:12:54]MH_I2C_Read... [15:12:54]Read from MH i2c: E2 03 00 6A 66 00 90 00 44 [15:12:54]RAPDU: 90 00 [15:12:54]wFMCommunicate OK [15:12:54]wFMCommunicate request_size=255 [15:12:54]MH_SAM_APDU [15:12: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 33 FF 03 08 00 03 40 9C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F6 00 00 00 F4 03 04 00 7A 6F 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 86 DD 02 00 35 04 06 00 C4 [15:12:54]Write to MH i2c: E2 02 01 6B 66 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 40 9C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F6 00 00 00 F4 03 04 00 7A 6F 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 86 DD 02 00 35 04 06 00 C4 00 00 65 [15:12:54]Write i2c OK [15:12:54]MH_I2C_Read... [15:12:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:12:54]Read from MH i2c: E2 [15:12:54]MH_I2C_Read... [15:12:54]Read from MH i2c: E2 03 00 [15:12:54]MH_I2C_Read... [15:12:54]Read from MH i2c: E2 03 00 6B 66 00 90 00 45 [15:12:54]RAPDU: 90 00 [15:12:54]wFMCommunicate OK [15:12:54]wFMCommunicate request_size=10 [15:12:54]MH_SAM_APDU [15:12:54]CAPDU: 80 0D 02 02 05 5B 9F C1 96 E4 [15:12:54]Write to MH i2c: E2 0D 00 6C 66 80 0D 02 02 05 00 5B 9F C1 96 E4 00 00 8B [15:12:54]Write i2c OK [15:12:54]MH_I2C_Read... [15:12:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:12:55]Read from MH i2c: E2 [15:12:55]MH_I2C_Read... [15:12:55]Read from MH i2c: E2 03 00 [15:12:55]MH_I2C_Read... [15:12:55]Read from MH i2c: E2 03 00 6C 66 00 90 00 46 [15:12:55]RAPDU: 90 00 [15:12:55]wFMCommunicate OK [15:12:55]wFMCommunicate request_size=4 [15:12:55]MH_SAM_APDU [15:12:55]CAPDU: 80 0D 03 02 [15:12:55]Write to MH i2c: E2 08 00 6D 66 80 0D 03 02 00 00 00 00 4E [15:12:55]Write i2c OK [15:12:55]MH_I2C_Read... [15:12:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:12:55]Read from MH i2c: E2 [15:12:55]MH_I2C_Read... [15:12:55]Read from MH i2c: E2 0B 00 [15:12:55]MH_I2C_Read... [15:12:55]Read from MH i2c: E2 0B 00 6D 66 00 23 0D B5 C8 A3 9F 7B 6B 90 00 24 [15:12:55]RAPDU: 23 0D B5 C8 A3 9F 7B 6B 90 00 [15:12:55]wFMCommunicate OK [15:12:55]SAM_PROTO_SignData done [15:12:55]FM_MakeSignedData done [15:12:55]CreateOFDProtocolMessage [15:12:55]wFMCommunicate request_size=4 [15:12:55]MH_SAM_APDU [15:12:55]CAPDU: 80 11 00 00 [15:12:55]Write to MH i2c: E2 08 00 6E 66 80 11 00 00 00 00 00 00 4E [15:12:55]Write i2c OK [15:12:55]MH_I2C_Read... [15:12:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:12:55]Read from MH i2c: E2 [15:12:55]MH_I2C_Read... [15:12:55]Read from MH i2c: E2 17 00 [15:12:55]MH_I2C_Read... [15:12:55]Read from MH i2c: E2 17 00 6E 66 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 9C [15:12:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [15:12:55]wFMCommunicate OK [15:12:55]CreateOFDProtocolMessage done [15:12:55]OFDSenderStorePacket 187782 [15:12:55]StoreOFDPacket docnum=187782 [15:12:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 E8 C7 07 01 30 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 33 FF 03 08 00 03 40 9C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F6 00 00 00 F4 03 04 00 7A 6F 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 86 DD 02 00 35 04 06 00 C4 5B 9F C1 96 E4 23 0D B5 C8 A3 9F 7B 6B [15:12:55]CheckFolder [15:12:55]dirname=/storage/ofd_packets [15:12:55]CheckFolder done [15:12:55]ProducePacketName [15:12:55]name=ofd_packets/00187782 [15:12:55]NVStorageSaveData ofd_packets/00187782 [15:12:55]File name is /storage/ofd_packets/00187782 [15:12:55]Write 301 bytes [15:12:55]NVStorageSaveData done [15:12:55]OFDSenderStorePacket done [15:12:55]KKMCreateOFDPacket done [15:12:55]NVStorageSaveData kkm_last_timestamp [15:12:55]File name is /storage/kkm_last_timestamp [15:12:55]Write 4 bytes [15:12:55]NVStorageSaveData done [15:12:55]ExternCall_PrintAddStr [15:12:55]wPrintStart [15:12:55]Write to MH i2c: 01 00 00 6F 66 D5 [15:12:55]Write i2c OK [15:12:55]MH_I2C_Read... [15:12:55]Read from MH i2c: 01 [15:12:55]MH_I2C_Read... [15:12:55]Read from MH i2c: 01 07 00 [15:12:55]MH_I2C_Read... [15:12:55]Read from MH i2c: 01 07 00 6F 66 00 00 00 00 00 FF 0F EA [15:12:55]RasterBufferAndPrint [15:12:55]line Счет N : (1)209834 [15:12:55]line ИНН: 02508201610067 [15:12:55]line Контрольно-Кассовый Чек [15:12:55]line ПРОДАЖА [15:12:55]line ТРК (МРК, ГНК) : 12 [15:12:55]line Товар: 2710124130 [15:12:55]line Аи-92-К-3 [15:12:55]line 40.000 * 0.00 [15:12:55]line = 0.00 [15:12:55]line НДС 12% НСП 1% [15:12:55]line > о реализуемом товаре [15:12:55]line ИТОГО: 0.00 [15:12:55]line НСП 1% : 0.00 [15:12:55]line НДС 12% : 0.00 [15:12:55]line Наличными: 0.00 [15:12:55]line Безнал.: 0.00 [15:12:55]line Место: АЗС № 86 "Партнер Нефть" [15:12:55]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [15:12:55]line СНО: Общий режим [15:12:55]line Чек 246 21.10.2024 15:12 [15:12:55]line Смена: 460 ФФД: 1.0 [15:12:55]line ЗНМ: 0300000155 [15:12:55]line РНМ: 0000000000100030 [15:12:55]line Версия ККМ: 001 [15:12:55]line Талоны: Топливная Карта [15:12:55]line 03517 [15:12:55]line ФМ: 0000000000965340 [15:12:55]line ФД: 187782 [15:12:55]line ФПД: 215897801332452 [15:12:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T151258&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187782&fm=215897801332452&tin=02508201610067®Number=0000000000100030&sum=0 [15:12:55]written 0, free lines is 4095 [15:12:55]OFD Sender: Processing packet 187782 [packets to send 1062, broken 1061] [15:12:55]ProducePacketName [15:12:55]name=ofd_packets/00187782 [15:12:55]OFD Sender: To server: pG, [15:12:55]CommunicateWithHost lk.salyk.kg:30040 [15:12:55]ConnectInit lk.salyk.kg [15:12:55]Connected sock=10 [15:12:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 E8 C7 07 01 30 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 33 FF 03 08 00 03 40 9C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F6 00 00 00 F4 03 04 00 7A 6F 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 86 DD 02 00 35 04 06 00 C4 5B 9F C1 96 E4 23 0D B5 C8 A3 9F 7B 6B [15:12:55]Write to MH i2c: 01 00 00 99 66 FF [15:12:55]Write i2c OK [15:12:55]MH_I2C_Read... [15:12:55]Read from MH i2c: 01 [15:12:55]MH_I2C_Read... [15:12:55]Read from MH i2c: 01 07 00 [15:12:55]MH_I2C_Read... [15:12:55]Read from MH i2c: 01 07 00 99 66 00 00 00 00 00 83 0C 95 [15:12:55]RasterBufferAndPrint [15:12:55]line [15:12:55]line [15:12:55]line [15:12:55]line [15:12:55]line [15:12:55]written 0, free lines is 3207 [15:12:55]MH_Cut [15:12:55]Write to MH i2c: D1 01 00 A0 66 01 D8 [15:12:55]Write i2c OK [15:12:55]MH_I2C_Read... [15:12:55]Read from MH i2c: D1 [15:12:55]MH_I2C_Read... [15:12:55]Read from MH i2c: D1 01 00 [15:12:55]MH_I2C_Read... [15:12:55]Read from MH i2c: D1 01 00 A0 66 00 D7 [15:12:55]Write to MH i2c: 01 00 00 A1 66 07 [15:12:55]Write i2c OK [15:12:55]MH_I2C_Read... [15:12:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 0B BD 47 00 D5 CF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 86 DD 02 00 F4 03 04 00 69 19 16 67 B6 04 01 00 00 55 3D B7 D9 E1 6C EA FF [15:12:55]CommunicateWithHost err = 0 [15:12:55]CheckOFDResponse [15:12:55]1017 (14) - 77093643461234 [15:12:55]1041 (16) - 0000000000965340 [15:12:55]1040 (4) - 187782 [15:12:55]1012 (4) - 21.10.2024 09:05 [15:12:55]1206 (1) - 0 [15:12:55]OFD Sender: Remove packet 187782 [15:12:55]ProducePacketName [15:12:55]name=ofd_packets/00187782 [15:12:55]NVStorageDeleteData [15:12:56]OFD Sender: No OFD packet to send [15:12:56]*** Cut start [15:12:56]*** Partial cut [15:12:56]*** CUTSNS_PIN = 1 [15:12:56]*** CUTSNS_PIN = 0 [15:12:57]*** Brake cut motor [15:12:57]Read from MH i2c: 01 [15:12:57]MH_I2C_Read... [15:12:57]*** Stop cut motor [15:12:57]*** Cut end [15:12:57]Read from MH i2c: 01 07 00 [15:12:57]MH_I2C_Read... [15:12:57]Read from MH i2c: 01 07 00 A1 66 00 00 00 00 00 FF 0F 1C [15:12:57]process_action close_receipt done [15:12:57]requested_data is exist [15:12:57]produce_requested_data [15:12:57]requested_item fm.sn is exist - process it [15:12:57]wFMCommunicate request_size=4 [15:12:57]MH_SAM_APDU [15:12:57]CAPDU: 80 11 00 00 [15:12:57]Write to MH i2c: E2 08 00 A2 66 80 11 00 00 00 00 00 00 82 [15:12:57]Write i2c OK [15:12:57]MH_I2C_Read... [15:12:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:12:57]Read from MH i2c: E2 [15:12:57]MH_I2C_Read... [15:12:57]Read from MH i2c: E2 17 00 [15:12:57]MH_I2C_Read... [15:12:57]Read from MH i2c: E2 17 00 A2 66 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 D0 [15:12:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [15:12:57]wFMCommunicate OK [15:12:57]requested_item fd.num is exist - process it [15:12:57]SAM_PROTO_GetFieldsCounters [15:12:57]wFMCommunicate request_size=4 [15:12:57]MH_SAM_APDU [15:12:57]CAPDU: 80 13 00 00 [15:12:57]Write to MH i2c: E2 08 00 A3 66 80 13 00 00 00 00 00 00 85 [15:12:57]Write i2c OK [15:12:57]MH_I2C_Read... [15:12:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:12:57]Read from MH i2c: E2 [15:12:57]MH_I2C_Read... [15:12:57]Read from MH i2c: E2 62 00 [15:12:57]MH_I2C_Read... [15:12:57]Read from MH i2c: E2 62 00 A3 66 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 86 DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 F6 00 00 00 5E 04 04 00 F6 00 00 00 57 04 04 00 F7 00 00 00 19 04 04 00 00 00 00 00 90 00 A0 [15:12:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 86 DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 F6 00 00 00 5E 04 04 00 F6 00 00 00 57 04 04 00 F7 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:12:57]wFMCommunicate OK [15:12:57]SAM_PROTO_GetFieldsCounters done [15:12:57]requested_item shift.num is exist - process it [15:12:57]requested_item shift.opened is exist - process it [15:12:57]req_shift_opened [15:12:57]FM_GetShiftState [15:12:57]SAM_PROTO_GetShiftState [15:12:57]wFMCommunicate request_size=4 [15:12:57]MH_SAM_APDU [15:12:57]CAPDU: 80 13 01 00 [15:12:57]Write to MH i2c: E2 08 00 A4 66 80 13 01 00 00 00 00 00 87 [15:12:57]Write i2c OK [15:12:57]MH_I2C_Read... [15:12:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:12:57]Read from MH i2c: E2 [15:12:57]MH_I2C_Read... [15:12:57]Read from MH i2c: E2 0E 00 [15:12:57]MH_I2C_Read... [15:12:57]Read from MH i2c: E2 0E 00 A4 66 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 E6 [15:12:57]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [15:12:57]wFMCommunicate OK [15:12:57]SAM_PROTO_GetShiftState done [15:12:57]FM_GetShiftState done [15:12:57]req_shift_opened done [15:12:57]requested_item shift.open_date is exist - process it [15:12:57]req_shift_open_date [15:12:57]req_shift_open_date done [15:12:57]produce_requested_data done [15:12:57]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187782,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [15:12:57]process_action_free close_receipt [15:12:57]json_value_free [15:12:57]json_value_free done [15:12:57]process_json_proto returns [15:12:57]Send response to host [15:12:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187782,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [15:12:57]free response buf [15:12:57]execute_script done [15:12:57]execute_script returns [15:12:57]free content buf [15:12:57]Sock 8.Close socket [15:12:57]Sock 8.Thread stoped [15:13:01]OFD Sender: No OFD packet to send [15:13:06]OFD Sender: No OFD packet to send [15:13:11]OFD Sender: No OFD packet to send [15:13:16]OFD Sender: No OFD packet to send [15:13:21]OFD Sender: No OFD packet to send [15:13:26]OFD Sender: No OFD packet to send [15:13:31]OFD Sender: No OFD packet to send [15:13:36]OFD Sender: No OFD packet to send [15:13:41]OFD Sender: No OFD packet to send [15:13:46]OFD Sender: No OFD packet to send [15:13:51]OFD Sender: No OFD packet to send [15:13:56]OFD Sender: No OFD packet to send [15:14:00]accept exits with 9 [15:14:00]New connection [15:14:00]New thread 3067014500 created [15:14:00]Thread 3067157860 joined [15:14:00]Waiting for new connection... [15:14:00] Sock 9.Parse request [15:14:00]Sock 9.Check first char [15:14:00]Sock 9.First char is OK [15:14:00]request: POST /json_proto HTTP/1.0 [15:14:00]Method: POST [15:14:00]URL: /json_proto [15:14:00]Method is POST - this is cgi request [15:14:00]url: /json_proto [15:14:00]query_string will be loaded in cgi processing [15:14:00]execute_cgi json_proto POST (null) [15:14:00]execute_cgi path=json_proto method=POST [15:14:00]POST find Content-Length [15:14:00]Host: 172.17.42.131:8080 [15:14:00]Content-Length: 682 [15:14:00]Content-Type: application/json [15:14:00] [15:14:00]POST finish read [15:14:00]Found Content-Length = 682 [15:14:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209835", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "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:14:00]execute_script... [15:14: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)209835", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "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:14:00]POST & json_proto [15:14:00]process_json_proto [15:14:00]json parsed OK: [15:14:00]protocol is kg_v1.0 [15:14:00]action value=close_receipt [15:14:00]process_action close_receipt [15:14:00]cmd_close_receipt [15:14:00]MH_GetDate [15:14:00]Write to MH i2c: F0 00 00 A5 66 FA [15:14:00]Write i2c OK [15:14:00]MH_I2C_Read... [15:14:00]Read from MH i2c: F0 [15:14:00]MH_I2C_Read... [15:14:00]Read from MH i2c: F0 09 00 [15:14:00]MH_I2C_Read... [15:14:00]Read from MH i2c: F0 09 00 A5 66 00 BD 6F 16 67 A0 18 CA 66 94 [15:14:00]GetLastDocTimeStamp 1729523578 [15:14:00]current date 1729523645 [15:14:00]FM_GetShiftState [15:14:00]SAM_PROTO_GetShiftState [15:14:00]wFMCommunicate request_size=4 [15:14:00]MH_SAM_APDU [15:14:00]CAPDU: 80 13 01 00 [15:14:00]Write to MH i2c: E2 08 00 A6 66 80 13 01 00 00 00 00 00 89 [15:14:00]Write i2c OK [15:14:00]MH_I2C_Read... [15:14:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:14:00]Read from MH i2c: E2 [15:14:00]MH_I2C_Read... [15:14:00]Read from MH i2c: E2 0E 00 [15:14:00]MH_I2C_Read... [15:14:00]Read from MH i2c: E2 0E 00 A6 66 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 E8 [15:14:00]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [15:14:00]wFMCommunicate OK [15:14:00]SAM_PROTO_GetShiftState done [15:14:00]FM_GetShiftState done [15:14:00]opened in 1729469754 [15:14:00]opened+sec_in_day 1729556154 [15:14:00]quantity*price = 100015 [15:14:00]sum+1 = 100017 [15:14:00]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 247 21.10.2024 15:14 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 187783 ФПД: 250759192477303 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T151405&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187783&fm=250759192477303&tin=02508201610067®Number=0000000000100030&sum=100000 [15:14:01]StoreToDocumentArchive [15:14:01]shift 460 fd 187783 [15:14:01]save to /storage/0460/doc_00187783 [15:14:01]save last doc name /storage/0460/doc_00187783 to /storage/kkm_last_doc_name [15:14:01]save OK [15:14:01]Clear old archive folders... [15:14:01]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:14:01]tlvbuf is 0129A2B0 [15:14:01]SAM_PROTO_ClearQueue [15:14:01]wFMCommunicate request_size=4 [15:14:01]MH_SAM_APDU [15:14:01]CAPDU: 80 09 00 00 [15:14:01]Write to MH i2c: E2 08 00 B3 66 80 09 00 00 00 00 00 00 8B [15:14:01]Write i2c OK [15:14:01]MH_I2C_Read... [15:14:01]OFD Sender: No OFD packet to send [15:14:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:14:01]Read from MH i2c: E2 [15:14:01]MH_I2C_Read... [15:14:01]Read from MH i2c: E2 03 00 [15:14:01]MH_I2C_Read... [15:14:01]Read from MH i2c: E2 03 00 B3 66 00 90 00 8D [15:14:01]RAPDU: 90 00 [15:14:01]wFMCommunicate OK [15:14:01]SAM_PROTO_ClearQueue done [15:14:01]KKMCreateOFDPacket [15:14:01]OFDProtocolAddRootSTLVToBuf [15:14:01]FM_MakeSignedData [15:14:01]FM_MakeSignedData [15:14:01]SAM_PROTO_SignData [15:14:01]wFMCommunicate request_size=4 [15:14:01]MH_SAM_APDU [15:14:01]CAPDU: 80 0D 01 02 [15:14:01]Write to MH i2c: E2 08 00 B4 66 80 0D 01 02 00 00 00 00 93 [15:14:01]Write i2c OK [15:14:01]MH_I2C_Read... [15:14:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:14:01]Read from MH i2c: E2 [15:14:01]MH_I2C_Read... [15:14:01]Read from MH i2c: E2 03 00 [15:14:01]MH_I2C_Read... [15:14:01]Read from MH i2c: E2 03 00 B4 66 00 90 00 8E [15:14:01]RAPDU: 90 00 [15:14:01]wFMCommunicate OK [15:14:01]wFMCommunicate request_size=255 [15:14:01]MH_SAM_APDU [15:14: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 33 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 F7 00 00 00 F4 03 04 00 BD 6F 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 87 DD 02 00 35 04 06 00 E4 [15:14:01]Write to MH i2c: E2 02 01 B5 66 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 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 F7 00 00 00 F4 03 04 00 BD 6F 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 87 DD 02 00 35 04 06 00 E4 00 00 B7 [15:14:01]Write i2c OK [15:14:01]MH_I2C_Read... [15:14:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:14:01]Read from MH i2c: E2 [15:14:01]MH_I2C_Read... [15:14:01]Read from MH i2c: E2 03 00 [15:14:01]MH_I2C_Read... [15:14:01]Read from MH i2c: E2 03 00 B5 66 00 90 00 8F [15:14:02]RAPDU: 90 00 [15:14:02]wFMCommunicate OK [15:14:02]wFMCommunicate request_size=10 [15:14:02]MH_SAM_APDU [15:14:02]CAPDU: 80 0D 02 02 05 10 6C 97 7E 77 [15:14:02]Write to MH i2c: E2 0D 00 B6 66 80 0D 02 02 05 00 10 6C 97 7E 77 00 00 A8 [15:14:02]Write i2c OK [15:14:02]MH_I2C_Read... [15:14:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:14:02]Read from MH i2c: E2 [15:14:02]MH_I2C_Read... [15:14:02]Read from MH i2c: E2 03 00 [15:14:02]MH_I2C_Read... [15:14:02]Read from MH i2c: E2 03 00 B6 66 00 90 00 90 [15:14:02]RAPDU: 90 00 [15:14:02]wFMCommunicate OK [15:14:02]wFMCommunicate request_size=4 [15:14:02]MH_SAM_APDU [15:14:02]CAPDU: 80 0D 03 02 [15:14:02]Write to MH i2c: E2 08 00 B7 66 80 0D 03 02 00 00 00 00 98 [15:14:02]Write i2c OK [15:14:02]MH_I2C_Read... [15:14:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:14:02]Read from MH i2c: E2 [15:14:02]MH_I2C_Read... [15:14:02]Read from MH i2c: E2 0B 00 [15:14:02]MH_I2C_Read... [15:14:02]Read from MH i2c: E2 0B 00 B7 66 00 E0 41 D6 93 6A EB 4A 9B 90 00 5D [15:14:02]RAPDU: E0 41 D6 93 6A EB 4A 9B 90 00 [15:14:02]wFMCommunicate OK [15:14:02]SAM_PROTO_SignData done [15:14:02]FM_MakeSignedData done [15:14:02]CreateOFDProtocolMessage [15:14:02]wFMCommunicate request_size=4 [15:14:02]MH_SAM_APDU [15:14:02]CAPDU: 80 11 00 00 [15:14:02]Write to MH i2c: E2 08 00 B8 66 80 11 00 00 00 00 00 00 98 [15:14:02]Write i2c OK [15:14:02]MH_I2C_Read... [15:14:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:14:02]Read from MH i2c: E2 [15:14:02]MH_I2C_Read... [15:14:02]Read from MH i2c: E2 17 00 [15:14:02]MH_I2C_Read... [15:14:02]Read from MH i2c: E2 17 00 B8 66 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 E6 [15:14:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [15:14:02]wFMCommunicate OK [15:14:02]CreateOFDProtocolMessage done [15:14:02]OFDSenderStorePacket 187783 [15:14:02]StoreOFDPacket docnum=187783 [15:14:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 D7 51 07 01 C7 77 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 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 F7 00 00 00 F4 03 04 00 BD 6F 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 87 DD 02 00 35 04 06 00 E4 10 6C 97 7E 77 E0 41 D6 93 6A EB 4A 9B [15:14:02]CheckFolder [15:14:02]dirname=/storage/ofd_packets [15:14:02]CheckFolder done [15:14:02]ProducePacketName [15:14:02]name=ofd_packets/00187783 [15:14:02]NVStorageSaveData ofd_packets/00187783 [15:14:02]File name is /storage/ofd_packets/00187783 [15:14:02]Write 301 bytes [15:14:02]NVStorageSaveData done [15:14:02]OFDSenderStorePacket done [15:14:02]KKMCreateOFDPacket done [15:14:02]NVStorageSaveData kkm_last_timestamp [15:14:02]File name is /storage/kkm_last_timestamp [15:14:02]Write 4 bytes [15:14:02]NVStorageSaveData done [15:14:02]ExternCall_PrintAddStr [15:14:02]wPrintStart [15:14:02]Write to MH i2c: 01 00 00 B9 66 1F [15:14:02]Write i2c OK [15:14:02]MH_I2C_Read... [15:14:02]Read from MH i2c: 01 [15:14:02]MH_I2C_Read... [15:14:02]Read from MH i2c: 01 07 00 [15:14:02]MH_I2C_Read... [15:14:02]Read from MH i2c: 01 07 00 B9 66 00 00 00 00 00 FF 0F 34 [15:14:02]RasterBufferAndPrint [15:14:02]line Счет N : (1)209835 [15:14:02]line ИНН: 02508201610067 [15:14:02]line Контрольно-Кассовый Чек [15:14:02]line ПРОДАЖА [15:14:02]line ТРК (МРК, ГНК) : 42 [15:14:02]line Товар: 2710124130 [15:14:02]line Аи-92-К-3 [15:14:02]line 14.950 * 66.90 [15:14:02]line = 1000.16 [15:14:02]line НДС 12% НСП 1% [15:14:02]line > о реализуемом товаре [15:14:02]line ОКРУГЛЕНИЕ: -0.16 [15:14:02]line ИТОГО: 1000.00 [15:14:02]line Внесено: 1000.00 [15:14:02]line СДАЧА: 0.00 [15:14:02]line НСП 1% : 8.85 [15:14:02]line НДС 12% : 106.21 [15:14:02]line Наличными: 1000.00 [15:14:02]line Безнал.: 0.00 [15:14:02]line Место: АЗС № 86 "Партнер Нефть" [15:14:02]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [15:14:02]line СНО: Общий режим [15:14:02]line Чек 247 21.10.2024 15:14 [15:14:02]line Смена: 460 ФФД: 1.0 [15:14:02]line ЗНМ: 0300000155 [15:14:02]line РНМ: 0000000000100030 [15:14:02]line Версия ККМ: 001 [15:14:02]line ФМ: 0000000000965340 [15:14:02]line ФД: 187783 [15:14:02]line ФПД: 250759192477303 [15:14:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T151405&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187783&fm=250759192477303&tin=02508201610067®Number=0000000000100030&sum=100000 [15:14:02]written 0, free lines is 4095 [15:14:02]OFD Sender: Processing packet 187783 [packets to send 1062, broken 1061] [15:14:02]ProducePacketName [15:14:02]name=ofd_packets/00187783 [15:14:02]OFD Sender: To server: pG, [15:14:02]CommunicateWithHost lk.salyk.kg:30040 [15:14:02]ConnectInit lk.salyk.kg [15:14:02]Connected sock=10 [15:14:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 D7 51 07 01 C7 77 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 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 F7 00 00 00 F4 03 04 00 BD 6F 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 87 DD 02 00 35 04 06 00 E4 10 6C 97 7E 77 E0 41 D6 93 6A EB 4A 9B [15:14:02]Write to MH i2c: 01 00 00 E4 66 4A [15:14:02]Write i2c OK [15:14:02]MH_I2C_Read... [15:14:02]Read from MH i2c: 01 [15:14:02]MH_I2C_Read... [15:14:02]Read from MH i2c: 01 07 00 [15:14:02]MH_I2C_Read... [15:14:02]Read from MH i2c: 01 07 00 E4 66 00 00 00 00 00 61 0C BE [15:14:02]RasterBufferAndPrint [15:14:02]line [15:14:02]line [15:14:02]line [15:14:02]line [15:14:02]line [15:14:02]written 0, free lines is 3173 [15:14:02]MH_Cut [15:14:02]Write to MH i2c: D1 01 00 EB 66 01 23 [15:14:02]Write i2c OK [15:14:02]MH_I2C_Read... [15:14:02]Read from MH i2c: D1 [15:14:02]MH_I2C_Read... [15:14:02]Read from MH i2c: D1 01 00 [15:14:02]MH_I2C_Read... [15:14:02]Read from MH i2c: D1 01 00 EB 66 00 22 [15:14:02]Write to MH i2c: 01 00 00 EC 66 52 [15:14:02]Write i2c OK [15:14:02]MH_I2C_Read... [15:14:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 79 93 47 00 EA 39 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 87 DD 02 00 F4 03 04 00 AC 19 16 67 B6 04 01 00 00 B8 69 E9 E7 47 6D 85 C7 [15:14:02]CommunicateWithHost err = 0 [15:14:02]CheckOFDResponse [15:14:02]1017 (14) - 77093643461234 [15:14:02]1041 (16) - 0000000000965340 [15:14:02]1040 (4) - 187783 [15:14:02]1012 (4) - 21.10.2024 09:06 [15:14:02]1206 (1) - 0 [15:14:02]OFD Sender: Remove packet 187783 [15:14:02]ProducePacketName [15:14:02]name=ofd_packets/00187783 [15:14:02]NVStorageDeleteData [15:14:03]OFD Sender: No OFD packet to send [15:14:03]*** Cut start [15:14:03]*** Partial cut [15:14:03]*** CUTSNS_PIN = 1 [15:14:03]*** CUTSNS_PIN = 0 [15:14:04]*** Brake cut motor [15:14:04]Read from MH i2c: 01 [15:14:04]MH_I2C_Read... [15:14:04]*** Stop cut motor [15:14:04]*** Cut end [15:14:04]Read from MH i2c: 01 07 00 [15:14:04]MH_I2C_Read... [15:14:04]Read from MH i2c: 01 07 00 EC 66 00 00 00 00 00 FF 0F 67 [15:14:04]process_action close_receipt done [15:14:04]requested_data is exist [15:14:04]produce_requested_data [15:14:04]requested_item fm.sn is exist - process it [15:14:04]wFMCommunicate request_size=4 [15:14:04]MH_SAM_APDU [15:14:04]CAPDU: 80 11 00 00 [15:14:04]Write to MH i2c: E2 08 00 ED 66 80 11 00 00 00 00 00 00 CD [15:14:04]Write i2c OK [15:14:04]MH_I2C_Read... [15:14:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:14:04]Read from MH i2c: E2 [15:14:04]MH_I2C_Read... [15:14:04]Read from MH i2c: E2 17 00 [15:14:04]MH_I2C_Read... [15:14:04]Read from MH i2c: E2 17 00 ED 66 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 1B [15:14:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [15:14:04]wFMCommunicate OK [15:14:04]requested_item fd.num is exist - process it [15:14:04]SAM_PROTO_GetFieldsCounters [15:14:04]wFMCommunicate request_size=4 [15:14:04]MH_SAM_APDU [15:14:04]CAPDU: 80 13 00 00 [15:14:04]Write to MH i2c: E2 08 00 EE 66 80 13 00 00 00 00 00 00 D0 [15:14:04]Write i2c OK [15:14:04]MH_I2C_Read... [15:14:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:14:04]Read from MH i2c: E2 [15:14:04]MH_I2C_Read... [15:14:04]Read from MH i2c: E2 62 00 [15:14:04]MH_I2C_Read... [15:14:04]Read from MH i2c: E2 62 00 EE 66 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 87 DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 F7 00 00 00 5E 04 04 00 F7 00 00 00 57 04 04 00 F8 00 00 00 19 04 04 00 00 00 00 00 90 00 EF [15:14:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 87 DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 F7 00 00 00 5E 04 04 00 F7 00 00 00 57 04 04 00 F8 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:14:04]wFMCommunicate OK [15:14:04]SAM_PROTO_GetFieldsCounters done [15:14:04]requested_item shift.num is exist - process it [15:14:04]requested_item shift.opened is exist - process it [15:14:04]req_shift_opened [15:14:04]FM_GetShiftState [15:14:04]SAM_PROTO_GetShiftState [15:14:04]wFMCommunicate request_size=4 [15:14:04]MH_SAM_APDU [15:14:04]CAPDU: 80 13 01 00 [15:14:04]Write to MH i2c: E2 08 00 EF 66 80 13 01 00 00 00 00 00 D2 [15:14:04]Write i2c OK [15:14:04]MH_I2C_Read... [15:14:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:14:04]Read from MH i2c: E2 [15:14:04]MH_I2C_Read... [15:14:04]Read from MH i2c: E2 0E 00 [15:14:04]MH_I2C_Read... [15:14:04]Read from MH i2c: E2 0E 00 EF 66 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 31 [15:14:04]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [15:14:04]wFMCommunicate OK [15:14:04]SAM_PROTO_GetShiftState done [15:14:04]FM_GetShiftState done [15:14:04]req_shift_opened done [15:14:04]requested_item shift.open_date is exist - process it [15:14:04]req_shift_open_date [15:14:04]req_shift_open_date done [15:14:04]produce_requested_data done [15:14:04]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187783,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [15:14:04]process_action_free close_receipt [15:14:04]json_value_free [15:14:04]json_value_free done [15:14:04]process_json_proto returns [15:14:04]Send response to host [15:14:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187783,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [15:14:04]free response buf [15:14:04]execute_script done [15:14:04]execute_script returns [15:14:04]free content buf [15:14:04]Sock 9.Close socket [15:14:04]Sock 9.Thread stoped [15:14:08]OFD Sender: No OFD packet to send [15:14:13]OFD Sender: No OFD packet to send [15:14:18]OFD Sender: No OFD packet to send [15:14:23]OFD Sender: No OFD packet to send [15:14:28]OFD Sender: No OFD packet to send [15:14:33]OFD Sender: No OFD packet to send [15:14:38]OFD Sender: No OFD packet to send [15:14:43]OFD Sender: No OFD packet to send [15:14:48]OFD Sender: No OFD packet to send [15:14:53]OFD Sender: No OFD packet to send [15:14:58]OFD Sender: No OFD packet to send [15:15:03]OFD Sender: No OFD packet to send [15:15:08]OFD Sender: No OFD packet to send [15:15:13]OFD Sender: No OFD packet to send [15:15:18]OFD Sender: No OFD packet to send [15:15:23]OFD Sender: No OFD packet to send [15:15:28]OFD Sender: No OFD packet to send [15:15:33]OFD Sender: No OFD packet to send [15:15:38]OFD Sender: No OFD packet to send [15:15:43]OFD Sender: No OFD packet to send [15:15:48]OFD Sender: No OFD packet to send [15:15:53]OFD Sender: No OFD packet to send [15:15:58]OFD Sender: No OFD packet to send [15:16:03]OFD Sender: No OFD packet to send [15:16:08]OFD Sender: No OFD packet to send [15:16:13]OFD Sender: No OFD packet to send [15:16:19]OFD Sender: No OFD packet to send [15:16:24]OFD Sender: No OFD packet to send [15:16:29]OFD Sender: No OFD packet to send [15:16:34]OFD Sender: No OFD packet to send [15:16:39]OFD Sender: No OFD packet to send [15:16:44]OFD Sender: No OFD packet to send [15:16:49]OFD Sender: No OFD packet to send [15:16:54]OFD Sender: No OFD packet to send [15:16:59]OFD Sender: No OFD packet to send [15:17:04]OFD Sender: No OFD packet to send [15:17:08]accept exits with 8 [15:17:08]New connection [15:17:08]New thread 3067157860 created [15:17:08]Thread 3067014500 joined [15:17:08]Waiting for new connection... [15:17:08] Sock 8.Parse request [15:17:08]Sock 8.Check first char [15:17:08]Sock 8.First char is OK [15:17:08]request: POST /json_proto HTTP/1.0 [15:17:08]Method: POST [15:17:08]URL: /json_proto [15:17:08]Method is POST - this is cgi request [15:17:08]url: /json_proto [15:17:08]query_string will be loaded in cgi processing [15:17:08]execute_cgi json_proto POST (null) [15:17:08]execute_cgi path=json_proto method=POST [15:17:08]POST find Content-Length [15:17:08]Host: 172.17.42.131:8080 [15:17:08]Content-Length: 678 [15:17:08]Content-Type: application/json [15:17:08] [15:17:08]POST finish read [15:17:08]Found Content-Length = 678 [15:17:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209837", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "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" ] } } [15:17:08]execute_script... [15:17:08]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209837", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "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" ] } } [15:17:08]POST & json_proto [15:17:08]process_json_proto [15:17:08]json parsed OK: [15:17:08]protocol is kg_v1.0 [15:17:08]action value=close_receipt [15:17:08]process_action close_receipt [15:17:08]cmd_close_receipt [15:17:08]MH_GetDate [15:17:08]Write to MH i2c: F0 00 00 F0 66 45 [15:17:08]Write i2c OK [15:17:08]MH_I2C_Read... [15:17:08]Read from MH i2c: F0 [15:17:08]MH_I2C_Read... [15:17:08]Read from MH i2c: F0 09 00 [15:17:08]MH_I2C_Read... [15:17:08]Read from MH i2c: F0 09 00 F0 66 00 78 70 16 67 A0 18 CA 66 9B [15:17:08]GetLastDocTimeStamp 1729523645 [15:17:08]current date 1729523832 [15:17:08]FM_GetShiftState [15:17:08]SAM_PROTO_GetShiftState [15:17:08]wFMCommunicate request_size=4 [15:17:08]MH_SAM_APDU [15:17:08]CAPDU: 80 13 01 00 [15:17:08]Write to MH i2c: E2 08 00 F1 66 80 13 01 00 00 00 00 00 D4 [15:17:08]Write i2c OK [15:17:08]MH_I2C_Read... [15:17:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:17:08]Read from MH i2c: E2 [15:17:08]MH_I2C_Read... [15:17:08]Read from MH i2c: E2 0E 00 [15:17:08]MH_I2C_Read... [15:17:08]Read from MH i2c: E2 0E 00 F1 66 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 33 [15:17:08]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [15:17:08]wFMCommunicate OK [15:17:08]SAM_PROTO_GetShiftState done [15:17:08]FM_GetShiftState done [15:17:08]opened in 1729469754 [15:17:08]opened+sec_in_day 1729556154 [15:17:08]quantity*price = 80012 [15:17:08]sum+1 = 80013 [15:17:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.97 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 248 21.10.2024 15:17 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 187784 ФПД: 201490348134408 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T151713&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187784&fm=201490348134408&tin=02508201610067®Number=0000000000100030&sum=80000 [15:17:09]StoreToDocumentArchive [15:17:09]shift 460 fd 187784 [15:17:09]save to /storage/0460/doc_00187784 [15:17:09]save last doc name /storage/0460/doc_00187784 to /storage/kkm_last_doc_name [15:17:09]save OK [15:17:09]Clear old archive folders... [15:17:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:17:09]tlvbuf is 012D0780 [15:17:09]SAM_PROTO_ClearQueue [15:17:09]wFMCommunicate request_size=4 [15:17:09]MH_SAM_APDU [15:17:09]CAPDU: 80 09 00 00 [15:17:09]Write to MH i2c: E2 08 00 FE 66 80 09 00 00 00 00 00 00 D6 [15:17:09]Write i2c OK [15:17:09]MH_I2C_Read... [15:17:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:17:09]Read from MH i2c: E2 [15:17:09]MH_I2C_Read... [15:17:09]Read from MH i2c: E2 03 00 [15:17:09]MH_I2C_Read... [15:17:09]Read from MH i2c: E2 03 00 FE 66 00 90 00 D8 [15:17:09]RAPDU: 90 00 [15:17:09]wFMCommunicate OK [15:17:09]SAM_PROTO_ClearQueue done [15:17:09]KKMCreateOFDPacket [15:17:09]OFDProtocolAddRootSTLVToBuf [15:17:09]FM_MakeSignedData [15:17:09]FM_MakeSignedData [15:17:09]SAM_PROTO_SignData [15:17:09]wFMCommunicate request_size=4 [15:17:09]MH_SAM_APDU [15:17:09]CAPDU: 80 0D 01 02 [15:17:09]Write to MH i2c: E2 08 00 FF 66 80 0D 01 02 00 00 00 00 DE [15:17:09]Write i2c OK [15:17:09]MH_I2C_Read... [15:17:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:17:09]Read from MH i2c: E2 [15:17:09]MH_I2C_Read... [15:17:09]Read from MH i2c: E2 03 00 [15:17:09]MH_I2C_Read... [15:17:09]Read from MH i2c: E2 03 00 FF 66 00 90 00 D9 [15:17:09]RAPDU: 90 00 [15:17:09]wFMCommunicate OK [15:17:09]wFMCommunicate request_size=255 [15:17:09]MH_SAM_APDU [15:17:09]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 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 F8 00 00 00 F4 03 04 00 79 70 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 88 DD 02 00 35 04 06 00 B7 [15:17:09]Write to MH i2c: E2 02 01 00 67 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 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 F8 00 00 00 F4 03 04 00 79 70 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 88 DD 02 00 35 04 06 00 B7 00 00 87 [15:17:09]Write i2c OK [15:17:09]MH_I2C_Read... [15:17:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:17:09]Read from MH i2c: E2 [15:17:09]MH_I2C_Read... [15:17:09]Read from MH i2c: E2 03 00 [15:17:09]MH_I2C_Read... [15:17:09]Read from MH i2c: E2 03 00 00 67 00 90 00 DB [15:17:09]RAPDU: 90 00 [15:17:09]wFMCommunicate OK [15:17:09]wFMCommunicate request_size=10 [15:17:09]MH_SAM_APDU [15:17:09]CAPDU: 80 0D 02 02 05 41 20 A0 50 08 [15:17:09]Write to MH i2c: E2 0D 00 01 67 80 0D 02 02 05 00 41 20 A0 50 08 00 00 45 [15:17:09]Write i2c OK [15:17:09]MH_I2C_Read... [15:17:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:17:09]Read from MH i2c: E2 [15:17:09]MH_I2C_Read... [15:17:09]Read from MH i2c: E2 03 00 [15:17:09]MH_I2C_Read... [15:17:09]Read from MH i2c: E2 03 00 01 67 00 90 00 DC [15:17:09]RAPDU: 90 00 [15:17:09]wFMCommunicate OK [15:17:09]wFMCommunicate request_size=4 [15:17:09]MH_SAM_APDU [15:17:09]CAPDU: 80 0D 03 02 [15:17:09]Write to MH i2c: E2 08 00 02 67 80 0D 03 02 00 00 00 00 E4 [15:17:09]Write i2c OK [15:17:09]MH_I2C_Read... [15:17:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:17:10]Read from MH i2c: E2 [15:17:10]MH_I2C_Read... [15:17:10]Read from MH i2c: E2 0B 00 [15:17:10]MH_I2C_Read... [15:17:10]Read from MH i2c: E2 0B 00 02 67 00 83 E7 60 DD 2B 45 20 83 90 00 9F [15:17:10]RAPDU: 83 E7 60 DD 2B 45 20 83 90 00 [15:17:10]wFMCommunicate OK [15:17:10]SAM_PROTO_SignData done [15:17:10]FM_MakeSignedData done [15:17:10]CreateOFDProtocolMessage [15:17:10]wFMCommunicate request_size=4 [15:17:10]MH_SAM_APDU [15:17:10]CAPDU: 80 11 00 00 [15:17:10]Write to MH i2c: E2 08 00 03 67 80 11 00 00 00 00 00 00 E4 [15:17:10]Write i2c OK [15:17:10]MH_I2C_Read... [15:17:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:17:10]Read from MH i2c: E2 [15:17:10]MH_I2C_Read... [15:17:10]Read from MH i2c: E2 17 00 [15:17:10]MH_I2C_Read... [15:17:10]Read from MH i2c: E2 17 00 03 67 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 32 [15:17:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [15:17:10]wFMCommunicate OK [15:17:10]CreateOFDProtocolMessage done [15:17:10]OFDSenderStorePacket 187784 [15:17:10]StoreOFDPacket docnum=187784 [15:17:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 5C F1 07 01 8E 9A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 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 F8 00 00 00 F4 03 04 00 79 70 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 88 DD 02 00 35 04 06 00 B7 41 20 A0 50 08 83 E7 60 DD 2B 45 20 83 [15:17:10]CheckFolder [15:17:10]dirname=/storage/ofd_packets [15:17:10]CheckFolder done [15:17:10]ProducePacketName [15:17:10]name=ofd_packets/00187784 [15:17:10]NVStorageSaveData ofd_packets/00187784 [15:17:10]File name is /storage/ofd_packets/00187784 [15:17:10]Write 301 bytes [15:17:10]NVStorageSaveData done [15:17:10]OFDSenderStorePacket done [15:17:10]KKMCreateOFDPacket done [15:17:10]NVStorageSaveData kkm_last_timestamp [15:17:10]File name is /storage/kkm_last_timestamp [15:17:10]Write 4 bytes [15:17:10]NVStorageSaveData done [15:17:10]ExternCall_PrintAddStr [15:17:10]wPrintStart [15:17:10]Write to MH i2c: 01 00 00 04 67 6B [15:17:10]Write i2c OK [15:17:10]MH_I2C_Read... [15:17:10]Read from MH i2c: 01 [15:17:10]MH_I2C_Read... [15:17:10]Read from MH i2c: 01 07 00 [15:17:10]MH_I2C_Read... [15:17:10]Read from MH i2c: 01 07 00 04 67 00 00 00 00 00 FF 0F 80 [15:17:10]RasterBufferAndPrint [15:17:10]line Счет N : (1)209837 [15:17:10]line ИНН: 02508201610067 [15:17:10]line Контрольно-Кассовый Чек [15:17:10]line ПРОДАЖА [15:17:10]line ТРК (МРК, ГНК) : 12 [15:17:10]line Товар: 2710124130 [15:17:10]line Аи-92-К-3 [15:17:10]line 11.960 * 66.90 [15:17:10]line = 800.12 [15:17:10]line НДС 12% НСП 1% [15:17:10]line > о реализуемом товаре [15:17:10]line ОКРУГЛЕНИЕ: -0.12 [15:17:10]line ИТОГО: 800.00 [15:17:10]line Внесено: 800.00 [15:17:10]line СДАЧА: 0.00 [15:17:10]line НСП 1% : 7.08 [15:17:10]line НДС 12% : 84.97 [15:17:10]line Наличными: 800.00 [15:17:10]line Безнал.: 0.00 [15:17:10]line Место: АЗС № 86 "Партнер Нефть" [15:17:10]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [15:17:10]line СНО: Общий режим [15:17:10]line Чек 248 21.10.2024 15:17 [15:17:10]line Смена: 460 ФФД: 1.0 [15:17:10]line ЗНМ: 0300000155 [15:17:10]line РНМ: 0000000000100030 [15:17:10]line Версия ККМ: 001 [15:17:10]line ФМ: 0000000000965340 [15:17:10]line ФД: 187784 [15:17:10]line ФПД: 201490348134408 [15:17:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T151713&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187784&fm=201490348134408&tin=02508201610067®Number=0000000000100030&sum=80000 [15:17:10]written 0, free lines is 4095 [15:17:10]OFD Sender: Processing packet 187784 [packets to send 1062, broken 1061] [15:17:10]ProducePacketName [15:17:10]name=ofd_packets/00187784 [15:17:10]OFD Sender: To server: pG, [15:17:10]CommunicateWithHost lk.salyk.kg:30040 [15:17:10]ConnectInit lk.salyk.kg [15:17:10]Write to MH i2c: 01 00 00 2F 67 96 [15:17:10]Write i2c OK [15:17:10]MH_I2C_Read... [15:17:10]Read from MH i2c: 01 [15:17:10]MH_I2C_Read... [15:17:10]Read from MH i2c: 01 07 00 [15:17:10]MH_I2C_Read... [15:17:10]Read from MH i2c: 01 07 00 2F 67 00 00 00 00 00 63 0C 0C [15:17:10]RasterBufferAndPrint [15:17:10]line [15:17:10]line [15:17:10]line [15:17:10]line [15:17:10]line [15:17:10]written 0, free lines is 3174 [15:17:10]MH_Cut [15:17:10]Write to MH i2c: D1 01 00 36 67 01 6F [15:17:10]Write i2c OK [15:17:10]MH_I2C_Read... [15:17:10]Read from MH i2c: D1 [15:17:10]MH_I2C_Read... [15:17:10]Read from MH i2c: D1 01 00 [15:17:10]MH_I2C_Read... [15:17:10]Read from MH i2c: D1 01 00 36 67 00 6E [15:17:10]Write to MH i2c: 01 00 00 37 67 9E [15:17:10]Write i2c OK [15:17:10]MH_I2C_Read... [15:17:10]Connected sock=10 [15:17:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 5C F1 07 01 8E 9A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 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 F8 00 00 00 F4 03 04 00 79 70 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 88 DD 02 00 35 04 06 00 B7 41 20 A0 50 08 83 E7 60 DD 2B 45 20 83 [15:17:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 A3 7C 47 00 8B 8A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 88 DD 02 00 F4 03 04 00 68 1A 16 67 B6 04 01 00 00 B3 08 D7 AE 3B FB CA E1 [15:17:11]CommunicateWithHost err = 0 [15:17:11]CheckOFDResponse [15:17:11]1017 (14) - 77093643461234 [15:17:11]1041 (16) - 0000000000965340 [15:17:11]1040 (4) - 187784 [15:17:11]1012 (4) - 21.10.2024 09:10 [15:17:11]1206 (1) - 0 [15:17:11]OFD Sender: Remove packet 187784 [15:17:11]ProducePacketName [15:17:11]name=ofd_packets/00187784 [15:17:11]NVStorageDeleteData [15:17:11]OFD Sender: No OFD packet to send [15:17:11]*** Cut start [15:17:11]*** Partial cut [15:17:11]*** CUTSNS_PIN = 1 [15:17:11]*** CUTSNS_PIN = 0 [15:17:12]*** Brake cut motor [15:17:12]Read from MH i2c: 01 [15:17:12]MH_I2C_Read... [15:17:12]*** Stop cut motor [15:17:12]*** Cut end [15:17:12]Read from MH i2c: 01 07 00 [15:17:12]MH_I2C_Read... [15:17:12]Read from MH i2c: 01 07 00 37 67 00 00 00 00 00 FF 0F B3 [15:17:12]process_action close_receipt done [15:17:12]requested_data is exist [15:17:12]produce_requested_data [15:17:12]requested_item fm.sn is exist - process it [15:17:12]wFMCommunicate request_size=4 [15:17:12]MH_SAM_APDU [15:17:12]CAPDU: 80 11 00 00 [15:17:12]Write to MH i2c: E2 08 00 38 67 80 11 00 00 00 00 00 00 19 [15:17:12]Write i2c OK [15:17:12]MH_I2C_Read... [15:17:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:17:12]Read from MH i2c: E2 [15:17:12]MH_I2C_Read... [15:17:12]Read from MH i2c: E2 17 00 [15:17:12]MH_I2C_Read... [15:17:12]Read from MH i2c: E2 17 00 38 67 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 67 [15:17:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [15:17:12]wFMCommunicate OK [15:17:12]requested_item fd.num is exist - process it [15:17:12]SAM_PROTO_GetFieldsCounters [15:17:12]wFMCommunicate request_size=4 [15:17:12]MH_SAM_APDU [15:17:12]CAPDU: 80 13 00 00 [15:17:12]Write to MH i2c: E2 08 00 39 67 80 13 00 00 00 00 00 00 1C [15:17:12]Write i2c OK [15:17:12]MH_I2C_Read... [15:17:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:17:12]Read from MH i2c: E2 [15:17:12]MH_I2C_Read... [15:17:12]Read from MH i2c: E2 62 00 [15:17:12]MH_I2C_Read... [15:17:12]Read from MH i2c: E2 62 00 39 67 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 88 DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 F8 00 00 00 5E 04 04 00 F8 00 00 00 57 04 04 00 F9 00 00 00 19 04 04 00 00 00 00 00 90 00 3F [15:17:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 88 DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 F8 00 00 00 5E 04 04 00 F8 00 00 00 57 04 04 00 F9 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:17:12]wFMCommunicate OK [15:17:12]SAM_PROTO_GetFieldsCounters done [15:17:12]requested_item shift.num is exist - process it [15:17:12]requested_item shift.opened is exist - process it [15:17:12]req_shift_opened [15:17:12]FM_GetShiftState [15:17:12]SAM_PROTO_GetShiftState [15:17:12]wFMCommunicate request_size=4 [15:17:12]MH_SAM_APDU [15:17:12]CAPDU: 80 13 01 00 [15:17:12]Write to MH i2c: E2 08 00 3A 67 80 13 01 00 00 00 00 00 1E [15:17:12]Write i2c OK [15:17:12]MH_I2C_Read... [15:17:12]Read from MH i2c: E2 [15:17:12]MH_I2C_Read... [15:17:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:17:12]Read from MH i2c: E2 0E 00 [15:17:12]MH_I2C_Read... [15:17:12]Read from MH i2c: E2 0E 00 3A 67 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 7D [15:17:12]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [15:17:12]wFMCommunicate OK [15:17:12]SAM_PROTO_GetShiftState done [15:17:12]FM_GetShiftState done [15:17:12]req_shift_opened done [15:17:12]requested_item shift.open_date is exist - process it [15:17:12]req_shift_open_date [15:17:12]req_shift_open_date done [15:17:12]produce_requested_data done [15:17:12]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187784,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [15:17:12]process_action_free close_receipt [15:17:12]json_value_free [15:17:12]json_value_free done [15:17:12]process_json_proto returns [15:17:12]Send response to host [15:17:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187784,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [15:17:12]free response buf [15:17:12]execute_script done [15:17:12]execute_script returns [15:17:12]free content buf [15:17:12]Sock 8.Close socket [15:17:12]Sock 8.Thread stoped [15:17:16]accept exits with 9 [15:17:16]New connection [15:17:16]New thread 3067014500 created [15:17:16]Thread 3067157860 joined [15:17:16]Waiting for new connection... [15:17:16] Sock 9.Parse request [15:17:16]Sock 9.Check first char [15:17:16]Sock 9.First char is OK [15:17:16]request: POST /json_proto HTTP/1.0 [15:17:16]Method: POST [15:17:16]URL: /json_proto [15:17:16]Method is POST - this is cgi request [15:17:16]url: /json_proto [15:17:16]query_string will be loaded in cgi processing [15:17:16]execute_cgi json_proto POST (null) [15:17:16]execute_cgi path=json_proto method=POST [15:17:16]POST find Content-Length [15:17:16]Host: 172.17.42.131:8080 [15:17:16]Content-Length: 688 [15:17:16]Content-Type: application/json [15:17:16] [15:17:16]POST finish read [15:17:16]Found Content-Length = 688 [15:17:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209836", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 51.820, "sum" : 4000.50, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 4000.00, "total" : 4000.00, "payments": [ { "type": 0, "sum" : 4000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:17:16]execute_script... [15:17:16]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209836", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 51.820, "sum" : 4000.50, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 4000.00, "total" : 4000.00, "payments": [ { "type": 0, "sum" : 4000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:17:16]POST & json_proto [15:17:16]process_json_proto [15:17:16]json parsed OK: [15:17:16]protocol is kg_v1.0 [15:17:16]action value=close_receipt [15:17:16]process_action close_receipt [15:17:16]cmd_close_receipt [15:17:16]MH_GetDate [15:17:16]Write to MH i2c: F0 00 00 3B 67 91 [15:17:16]Write i2c OK [15:17:16]MH_I2C_Read... [15:17:16]Read from MH i2c: F0 [15:17:16]MH_I2C_Read... [15:17:16]Read from MH i2c: F0 09 00 [15:17:16]MH_I2C_Read... [15:17:16]Read from MH i2c: F0 09 00 3B 67 00 80 70 16 67 A0 18 CA 66 EF [15:17:16]GetLastDocTimeStamp 1729523833 [15:17:16]current date 1729523840 [15:17:16]FM_GetShiftState [15:17:16]SAM_PROTO_GetShiftState [15:17:16]wFMCommunicate request_size=4 [15:17:16]MH_SAM_APDU [15:17:16]CAPDU: 80 13 01 00 [15:17:16]Write to MH i2c: E2 08 00 3C 67 80 13 01 00 00 00 00 00 20 [15:17:16]Write i2c OK [15:17:16]MH_I2C_Read... [15:17:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:17:16]Read from MH i2c: E2 [15:17:16]MH_I2C_Read... [15:17:16]Read from MH i2c: E2 0E 00 [15:17:16]MH_I2C_Read... [15:17:16]Read from MH i2c: E2 0E 00 3C 67 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 7F [15:17:16]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [15:17:16]wFMCommunicate OK [15:17:16]SAM_PROTO_GetShiftState done [15:17:16]FM_GetShiftState done [15:17:16]opened in 1729469754 [15:17:16]opened+sec_in_day 1729556154 [15:17:16]quantity*price = 400050 [15:17:16]sum+1 = 400051 [15:17:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.50 ИТОГО: 4000.00 Внесено: 4000.00 СДАЧА: 0.00 НСП 1% : 35.40 НДС 12% : 424.83 Наличными: 4000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 249 21.10.2024 15:17 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 187785 ФПД: 26814586386029 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T151720&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187785&fm=26814586386029&tin=02508201610067®Number=0000000000100030&sum=400000 [15:17:17]StoreToDocumentArchive [15:17:17]shift 460 fd 187785 [15:17:17]save to /storage/0460/doc_00187785 [15:17:17]save last doc name /storage/0460/doc_00187785 to /storage/kkm_last_doc_name [15:17:17]save OK [15:17:17]Clear old archive folders... [15:17:17]ProcessDocumentItem done err = 0, tmpTLVsize=257 [15:17:17]tlvbuf is 010F9F90 [15:17:17]SAM_PROTO_ClearQueue [15:17:17]wFMCommunicate request_size=4 [15:17:17]MH_SAM_APDU [15:17:17]CAPDU: 80 09 00 00 [15:17:17]Write to MH i2c: E2 08 00 49 67 80 09 00 00 00 00 00 00 22 [15:17:17]Write i2c OK [15:17:17]MH_I2C_Read... [15:17:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:17:17]Read from MH i2c: E2 [15:17:17]MH_I2C_Read... [15:17:17]Read from MH i2c: E2 03 00 [15:17:17]MH_I2C_Read... [15:17:17]Read from MH i2c: E2 03 00 49 67 00 90 00 24 [15:17:17]RAPDU: 90 00 [15:17:17]wFMCommunicate OK [15:17:17]SAM_PROTO_ClearQueue done [15:17:17]KKMCreateOFDPacket [15:17:17]OFDProtocolAddRootSTLVToBuf [15:17:17]FM_MakeSignedData [15:17:17]FM_MakeSignedData [15:17:17]SAM_PROTO_SignData [15:17:17]wFMCommunicate request_size=4 [15:17:17]MH_SAM_APDU [15:17:17]CAPDU: 80 0D 01 02 [15:17:17]Write to MH i2c: E2 08 00 4A 67 80 0D 01 02 00 00 00 00 2A [15:17:17]Write i2c OK [15:17:17]MH_I2C_Read... [15:17:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:17:17]Read from MH i2c: E2 [15:17:17]MH_I2C_Read... [15:17:17]Read from MH i2c: E2 03 00 [15:17:17]MH_I2C_Read... [15:17:17]Read from MH i2c: E2 03 00 4A 67 00 90 00 25 [15:17:17]RAPDU: 90 00 [15:17:17]wFMCommunicate OK [15:17:17]wFMCommunicate request_size=255 [15:17:17]MH_SAM_APDU [15:17:17]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 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 6C CA 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 B2 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 A5 00 00 00 00 07 04 06 00 80 1A 06 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F9 00 00 00 F4 03 04 00 80 70 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 89 DD 02 [15:17:17]Write to MH i2c: E2 02 01 4B 67 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 6C CA 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 B2 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 A5 00 00 00 00 07 04 06 00 80 1A 06 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F9 00 00 00 F4 03 04 00 80 70 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 89 DD 02 00 00 47 [15:17:17]Write i2c OK [15:17:17]MH_I2C_Read... [15:17:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:17:17]Read from MH i2c: E2 [15:17:17]MH_I2C_Read... [15:17:17]Read from MH i2c: E2 03 00 [15:17:17]MH_I2C_Read... [15:17:17]Read from MH i2c: E2 03 00 4B 67 00 90 00 26 [15:17:17]RAPDU: 90 00 [15:17:17]wFMCommunicate OK [15:17:17]wFMCommunicate request_size=16 [15:17:17]MH_SAM_APDU [15:17:17]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 18 63 41 E5 76 6D [15:17:17]Write to MH i2c: E2 13 00 4C 67 80 0D 02 02 0B 00 00 35 04 06 00 18 63 41 E5 76 6D 00 00 06 [15:17:17]Write i2c OK [15:17:17]MH_I2C_Read... [15:17:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:17:17]Read from MH i2c: E2 [15:17:17]MH_I2C_Read... [15:17:17]Read from MH i2c: E2 03 00 [15:17:17]MH_I2C_Read... [15:17:17]Read from MH i2c: E2 03 00 4C 67 00 90 00 27 [15:17:17]RAPDU: 90 00 [15:17:17]wFMCommunicate OK [15:17:17]wFMCommunicate request_size=4 [15:17:17]MH_SAM_APDU [15:17:17]CAPDU: 80 0D 03 02 [15:17:17]Write to MH i2c: E2 08 00 4D 67 80 0D 03 02 00 00 00 00 2F [15:17:17]Write i2c OK [15:17:17]MH_I2C_Read... [15:17:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:17:17]Read from MH i2c: E2 [15:17:17]MH_I2C_Read... [15:17:17]Read from MH i2c: E2 0B 00 [15:17:17]MH_I2C_Read... [15:17:17]Read from MH i2c: E2 0B 00 4D 67 00 B3 49 16 2F 9B 62 CF 7F 90 00 BC [15:17:17]RAPDU: B3 49 16 2F 9B 62 CF 7F 90 00 [15:17:17]wFMCommunicate OK [15:17:17]SAM_PROTO_SignData done [15:17:17]FM_MakeSignedData done [15:17:17]CreateOFDProtocolMessage [15:17:17]wFMCommunicate request_size=4 [15:17:17]MH_SAM_APDU [15:17:17]CAPDU: 80 11 00 00 [15:17:17]Write to MH i2c: E2 08 00 4E 67 80 11 00 00 00 00 00 00 2F [15:17:17]Write i2c OK [15:17:17]MH_I2C_Read... [15:17:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:17:17]Read from MH i2c: E2 [15:17:17]MH_I2C_Read... [15:17:17]Read from MH i2c: E2 17 00 [15:17:17]MH_I2C_Read... [15:17:17]Read from MH i2c: E2 17 00 4E 67 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 7D [15:17:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [15:17:17]wFMCommunicate OK [15:17:17]CreateOFDProtocolMessage done [15:17:17]OFDSenderStorePacket 187785 [15:17:17]StoreOFDPacket docnum=187785 [15:17:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 5F CF 0D 01 C2 CC 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 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 6C CA 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 B2 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 A5 00 00 00 00 07 04 06 00 80 1A 06 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F9 00 00 00 F4 03 04 00 80 70 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 89 DD 02 00 35 04 06 00 18 63 41 E5 76 6D B3 49 16 2F 9B 62 CF 7F [15:17:17]CheckFolder [15:17:17]dirname=/storage/ofd_packets [15:17:17]CheckFolder done [15:17:17]ProducePacketName [15:17:17]name=ofd_packets/00187785 [15:17:17]NVStorageSaveData ofd_packets/00187785 [15:17:17]File name is /storage/ofd_packets/00187785 [15:17:17]Write 307 bytes [15:17:17]NVStorageSaveData done [15:17:17]OFDSenderStorePacket done [15:17:17]KKMCreateOFDPacket done [15:17:17]NVStorageSaveData kkm_last_timestamp [15:17:17]File name is /storage/kkm_last_timestamp [15:17:17]Write 4 bytes [15:17:17]NVStorageSaveData done [15:17:17]ExternCall_PrintAddStr [15:17:17]wPrintStart [15:17:17]Write to MH i2c: 01 00 00 4F 67 B6 [15:17:17]Write i2c OK [15:17:17]MH_I2C_Read... [15:17:17]Read from MH i2c: 01 [15:17:17]MH_I2C_Read... [15:17:17]Read from MH i2c: 01 07 00 [15:17:17]MH_I2C_Read... [15:17:17]Read from MH i2c: 01 07 00 4F 67 00 00 00 00 00 FF 0F CB [15:17:17]RasterBufferAndPrint [15:17:17]line Счет N : (1)209836 [15:17:17]line ИНН: 02508201610067 [15:17:17]line Контрольно-Кассовый Чек [15:17:17]line ПРОДАЖА [15:17:17]line ТРК (МРК, ГНК) : 21 [15:17:17]line Товар: 2710194210 [15:17:17]line D-ENERGY ДТ-К-5 [15:17:17]line 51.820 * 77.20 [15:17:17]line = 4000.50 [15:17:17]line НДС 12% НСП 1% [15:17:17]line > о реализуемом товаре [15:17:17]line ОКРУГЛЕНИЕ: -0.50 [15:17:17]line ИТОГО: 4000.00 [15:17:17]line Внесено: 4000.00 [15:17:17]line СДАЧА: 0.00 [15:17:17]line НСП 1% : 35.40 [15:17:17]line НДС 12% : 424.83 [15:17:17]line Наличными: 4000.00 [15:17:17]line Безнал.: 0.00 [15:17:17]line Место: АЗС № 86 "Партнер Нефть" [15:17:17]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [15:17:17]line СНО: Общий режим [15:17:17]line Чек 249 21.10.2024 15:17 [15:17:17]line Смена: 460 ФФД: 1.0 [15:17:17]line ЗНМ: 0300000155 [15:17:17]line РНМ: 0000000000100030 [15:17:17]line Версия ККМ: 001 [15:17:17]line ФМ: 0000000000965340 [15:17:17]line ФД: 187785 [15:17:17]line ФПД: 26814586386029 [15:17:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T151720&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187785&fm=26814586386029&tin=02508201610067®Number=0000000000100030&sum=400000 [15:17:17]written 0, free lines is 4095 [15:17:17]OFD Sender: Processing packet 187785 [packets to send 1062, broken 1061] [15:17:17]ProducePacketName [15:17:17]name=ofd_packets/00187785 [15:17:17]OFD Sender: To server: pG, [15:17:17]CommunicateWithHost lk.salyk.kg:30040 [15:17:17]ConnectInit lk.salyk.kg [15:17:18]Connected sock=10 [15:17:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 5F CF 0D 01 C2 CC 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 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 6C CA 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 B2 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 A5 00 00 00 00 07 04 06 00 80 1A 06 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F9 00 00 00 F4 03 04 00 80 70 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 89 DD 02 00 35 04 06 00 18 63 41 E5 76 6D B3 49 16 2F 9B 62 CF 7F [15:17:18]Write to MH i2c: 01 00 00 7A 67 E1 [15:17:18]Write i2c OK [15:17:18]MH_I2C_Read... [15:17:18]Read from MH i2c: 01 [15:17:18]MH_I2C_Read... [15:17:18]Read from MH i2c: 01 07 00 [15:17:18]MH_I2C_Read... [15:17:18]Read from MH i2c: 01 07 00 7A 67 00 00 00 00 00 6D 0C 61 [15:17:18]RasterBufferAndPrint [15:17:18]line [15:17:18]line [15:17:18]line [15:17:18]line [15:17:18]line [15:17:18]written 0, free lines is 3187 [15:17:18]MH_Cut [15:17:18]Write to MH i2c: D1 01 00 81 67 01 BA [15:17:18]Write i2c OK [15:17:18]MH_I2C_Read... [15:17:18]Read from MH i2c: D1 [15:17:18]MH_I2C_Read... [15:17:18]Read from MH i2c: D1 01 00 [15:17:18]MH_I2C_Read... [15:17:18]Read from MH i2c: D1 01 00 81 67 00 B9 [15:17:18]Write to MH i2c: 01 00 00 82 67 E9 [15:17:18]Write i2c OK [15:17:18]MH_I2C_Read... [15:17:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 4A F6 47 00 92 04 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 89 DD 02 00 F4 03 04 00 70 1A 16 67 B6 04 01 00 00 B2 70 45 7B BC 8C 8F 6F [15:17:18]CommunicateWithHost err = 0 [15:17:18]CheckOFDResponse [15:17:18]1017 (14) - 77093643461234 [15:17:18]1041 (16) - 0000000000965340 [15:17:18]1040 (4) - 187785 [15:17:18]1012 (4) - 21.10.2024 09:10 [15:17:18]1206 (1) - 0 [15:17:18]OFD Sender: Remove packet 187785 [15:17:18]ProducePacketName [15:17:18]name=ofd_packets/00187785 [15:17:18]NVStorageDeleteData [15:17:19]OFD Sender: No OFD packet to send [15:17:19]*** Cut start [15:17:19]*** Partial cut [15:17:19]*** CUTSNS_PIN = 1 [15:17:19]*** CUTSNS_PIN = 0 [15:17:19]*** Brake cut motor [15:17:20]Read from MH i2c: 01 [15:17:20]MH_I2C_Read... [15:17:20]*** Stop cut motor [15:17:20]*** Cut end [15:17:20]Read from MH i2c: 01 07 00 [15:17:20]MH_I2C_Read... [15:17:20]Read from MH i2c: 01 07 00 82 67 00 00 00 00 00 FF 0F FE [15:17:20]process_action close_receipt done [15:17:20]requested_data is exist [15:17:20]produce_requested_data [15:17:20]requested_item fm.sn is exist - process it [15:17:20]wFMCommunicate request_size=4 [15:17:20]MH_SAM_APDU [15:17:20]CAPDU: 80 11 00 00 [15:17:20]Write to MH i2c: E2 08 00 83 67 80 11 00 00 00 00 00 00 64 [15:17:20]Write i2c OK [15:17:20]MH_I2C_Read... [15:17:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:17:20]Read from MH i2c: E2 [15:17:20]MH_I2C_Read... [15:17:20]Read from MH i2c: E2 17 00 [15:17:20]MH_I2C_Read... [15:17:20]Read from MH i2c: E2 17 00 83 67 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 B2 [15:17:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [15:17:20]wFMCommunicate OK [15:17:20]requested_item fd.num is exist - process it [15:17:20]SAM_PROTO_GetFieldsCounters [15:17:20]wFMCommunicate request_size=4 [15:17:20]MH_SAM_APDU [15:17:20]CAPDU: 80 13 00 00 [15:17:20]Write to MH i2c: E2 08 00 84 67 80 13 00 00 00 00 00 00 67 [15:17:20]Write i2c OK [15:17:20]MH_I2C_Read... [15:17:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:17:20]Read from MH i2c: E2 [15:17:20]MH_I2C_Read... [15:17:20]Read from MH i2c: E2 62 00 [15:17:20]MH_I2C_Read... [15:17:20]Read from MH i2c: E2 62 00 84 67 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 89 DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 F9 00 00 00 5E 04 04 00 F9 00 00 00 57 04 04 00 FA 00 00 00 19 04 04 00 00 00 00 00 90 00 8E [15:17:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 89 DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 F9 00 00 00 5E 04 04 00 F9 00 00 00 57 04 04 00 FA 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:17:20]wFMCommunicate OK [15:17:20]SAM_PROTO_GetFieldsCounters done [15:17:20]requested_item shift.num is exist - process it [15:17:20]requested_item shift.opened is exist - process it [15:17:20]req_shift_opened [15:17:20]FM_GetShiftState [15:17:20]SAM_PROTO_GetShiftState [15:17:20]wFMCommunicate request_size=4 [15:17:20]MH_SAM_APDU [15:17:20]CAPDU: 80 13 01 00 [15:17:20]Write to MH i2c: E2 08 00 85 67 80 13 01 00 00 00 00 00 69 [15:17:20]Write i2c OK [15:17:20]MH_I2C_Read... [15:17:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:17:20]Read from MH i2c: E2 [15:17:20]MH_I2C_Read... [15:17:20]Read from MH i2c: E2 0E 00 [15:17:20]MH_I2C_Read... [15:17:20]Read from MH i2c: E2 0E 00 85 67 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 C8 [15:17:20]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [15:17:20]wFMCommunicate OK [15:17:20]SAM_PROTO_GetShiftState done [15:17:20]FM_GetShiftState done [15:17:20]req_shift_opened done [15:17:20]requested_item shift.open_date is exist - process it [15:17:20]req_shift_open_date [15:17:20]req_shift_open_date done [15:17:20]produce_requested_data done [15:17:20]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187785,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [15:17:20]process_action_free close_receipt [15:17:20]json_value_free [15:17:20]json_value_free done [15:17:20]process_json_proto returns [15:17:20]Send response to host [15:17:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187785,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [15:17:20]free response buf [15:17:20]execute_script done [15:17:20]execute_script returns [15:17:20]free content buf [15:17:20]Sock 9.Close socket [15:17:20]Sock 9.Thread stoped [15:17:24]OFD Sender: No OFD packet to send [15:17:29]OFD Sender: No OFD packet to send [15:17:34]OFD Sender: No OFD packet to send [15:17:39]OFD Sender: No OFD packet to send [15:17:44]OFD Sender: No OFD packet to send [15:17:49]OFD Sender: No OFD packet to send [15:17:54]OFD Sender: No OFD packet to send [15:17:59]OFD Sender: No OFD packet to send [15:18:04]OFD Sender: No OFD packet to send [15:18:09]OFD Sender: No OFD packet to send [15:18:14]OFD Sender: No OFD packet to send [15:18:19]OFD Sender: No OFD packet to send [15:18:24]OFD Sender: No OFD packet to send [15:18:26]accept exits with 8 [15:18:26]New connection [15:18:26]New thread 3067157860 created [15:18:26]Thread 3067014500 joined [15:18:26]Waiting for new connection... [15:18:26] Sock 8.Parse request [15:18:26]Sock 8.Check first char [15:18:26]Sock 8.First char is OK [15:18:26]request: POST /json_proto HTTP/1.0 [15:18:26]Method: POST [15:18:26]URL: /json_proto [15:18:26]Method is POST - this is cgi request [15:18:26]url: /json_proto [15:18:26]query_string will be loaded in cgi processing [15:18:26]execute_cgi json_proto POST (null) [15:18:26]execute_cgi path=json_proto method=POST [15:18:26]POST find Content-Length [15:18:26]Host: 172.17.42.131:8080 [15:18:26]Content-Length: 754 [15:18:26]Content-Type: application/json [15:18:26] [15:18:26]POST finish read [15:18:26]Found Content-Length = 754 [15:18:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209838", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 0.00, "quantity" : 30.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30088522", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:18:26]execute_script... [15:18: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)209838", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 0.00, "quantity" : 30.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30088522", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:18:26]POST & json_proto [15:18:26]process_json_proto [15:18:26]json parsed OK: [15:18:26]protocol is kg_v1.0 [15:18:26]action value=close_receipt [15:18:26]process_action close_receipt [15:18:26]cmd_close_receipt [15:18:26]MH_GetDate [15:18:26]Write to MH i2c: F0 00 00 86 67 DC [15:18:26]Write i2c OK [15:18:26]MH_I2C_Read... [15:18:26]Read from MH i2c: F0 [15:18:26]MH_I2C_Read... [15:18:26]Read from MH i2c: F0 09 00 [15:18:26]MH_I2C_Read... [15:18:26]Read from MH i2c: F0 09 00 86 67 00 C6 70 16 67 A0 18 CA 66 80 [15:18:26]GetLastDocTimeStamp 1729523840 [15:18:26]current date 1729523910 [15:18:26]FM_GetShiftState [15:18:26]SAM_PROTO_GetShiftState [15:18:26]wFMCommunicate request_size=4 [15:18:26]MH_SAM_APDU [15:18:26]CAPDU: 80 13 01 00 [15:18:26]Write to MH i2c: E2 08 00 87 67 80 13 01 00 00 00 00 00 6B [15:18:26]Write i2c OK [15:18:26]MH_I2C_Read... [15:18:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:18:26]Read from MH i2c: E2 [15:18:26]MH_I2C_Read... [15:18:26]Read from MH i2c: E2 0E 00 [15:18:26]MH_I2C_Read... [15:18:26]Read from MH i2c: E2 0E 00 87 67 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 CA [15:18:26]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [15:18:26]wFMCommunicate OK [15:18:26]SAM_PROTO_GetShiftState done [15:18:26]FM_GetShiftState done [15:18:26]opened in 1729469754 [15:18:26]opened+sec_in_day 1729556154 [15:18:26]quantity*price = 0 [15:18:26]sum+1 = 1 [15:18:26]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 250 21.10.2024 15:18 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Талоны: ТК ГПНА Online 30088522 ФМ: 0000000000965340 ФД: 187786 ФПД: 18010538677372 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T151830&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187786&fm=18010538677372&tin=02508201610067®Number=0000000000100030&sum=0 [15:18:27]StoreToDocumentArchive [15:18:27]shift 460 fd 187786 [15:18:27]save to /storage/0460/doc_00187786 [15:18:27]save last doc name /storage/0460/doc_00187786 to /storage/kkm_last_doc_name [15:18:27]save OK [15:18:27]Clear old archive folders... [15:18:27]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:18:27]tlvbuf is 010EB4E0 [15:18:27]SAM_PROTO_ClearQueue [15:18:27]wFMCommunicate request_size=4 [15:18:27]MH_SAM_APDU [15:18:27]CAPDU: 80 09 00 00 [15:18:27]Write to MH i2c: E2 08 00 94 67 80 09 00 00 00 00 00 00 6D [15:18:27]Write i2c OK [15:18:27]MH_I2C_Read... [15:18:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:18:27]Read from MH i2c: E2 [15:18:27]MH_I2C_Read... [15:18:27]Read from MH i2c: E2 03 00 [15:18:27]MH_I2C_Read... [15:18:27]Read from MH i2c: E2 03 00 94 67 00 90 00 6F [15:18:27]RAPDU: 90 00 [15:18:27]wFMCommunicate OK [15:18:27]SAM_PROTO_ClearQueue done [15:18:27]KKMCreateOFDPacket [15:18:27]OFDProtocolAddRootSTLVToBuf [15:18:27]FM_MakeSignedData [15:18:27]FM_MakeSignedData [15:18:27]SAM_PROTO_SignData [15:18:27]wFMCommunicate request_size=4 [15:18:27]MH_SAM_APDU [15:18:27]CAPDU: 80 0D 01 02 [15:18:27]Write to MH i2c: E2 08 00 95 67 80 0D 01 02 00 00 00 00 75 [15:18:27]Write i2c OK [15:18:27]MH_I2C_Read... [15:18:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:18:27]Read from MH i2c: E2 [15:18:27]MH_I2C_Read... [15:18:27]Read from MH i2c: E2 03 00 [15:18:27]MH_I2C_Read... [15:18:27]Read from MH i2c: E2 03 00 95 67 00 90 00 70 [15:18:27]RAPDU: 90 00 [15:18:27]wFMCommunicate OK [15:18:27]wFMCommunicate request_size=255 [15:18:27]MH_SAM_APDU [15:18: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 33 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 FA 00 00 00 F4 03 04 00 C6 70 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 8A DD 02 00 35 04 06 00 10 [15:18:27]Write to MH i2c: E2 02 01 96 67 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 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 FA 00 00 00 F4 03 04 00 C6 70 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 8A DD 02 00 35 04 06 00 10 00 00 FB [15:18:27]Write i2c OK [15:18:27]MH_I2C_Read... [15:18:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:18:27]Read from MH i2c: E2 [15:18:27]MH_I2C_Read... [15:18:27]Read from MH i2c: E2 03 00 [15:18:27]MH_I2C_Read... [15:18:27]Read from MH i2c: E2 03 00 96 67 00 90 00 71 [15:18:27]RAPDU: 90 00 [15:18:27]wFMCommunicate OK [15:18:27]wFMCommunicate request_size=10 [15:18:27]MH_SAM_APDU [15:18:27]CAPDU: 80 0D 02 02 05 61 67 C2 94 7C [15:18:27]Write to MH i2c: E2 0D 00 97 67 80 0D 02 02 05 00 61 67 C2 94 7C 00 00 1C [15:18:27]Write i2c OK [15:18:27]MH_I2C_Read... [15:18:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:18:27]Read from MH i2c: E2 [15:18:27]MH_I2C_Read... [15:18:27]Read from MH i2c: E2 03 00 [15:18:27]MH_I2C_Read... [15:18:27]Read from MH i2c: E2 03 00 97 67 00 90 00 72 [15:18:27]RAPDU: 90 00 [15:18:27]wFMCommunicate OK [15:18:27]wFMCommunicate request_size=4 [15:18:27]MH_SAM_APDU [15:18:27]CAPDU: 80 0D 03 02 [15:18:27]Write to MH i2c: E2 08 00 98 67 80 0D 03 02 00 00 00 00 7A [15:18:27]Write i2c OK [15:18:27]MH_I2C_Read... [15:18:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:18:27]Read from MH i2c: E2 [15:18:27]MH_I2C_Read... [15:18:27]Read from MH i2c: E2 0B 00 [15:18:27]MH_I2C_Read... [15:18:27]Read from MH i2c: E2 0B 00 98 67 00 D1 2C AA 21 5F 1E 86 86 90 00 CC [15:18:27]RAPDU: D1 2C AA 21 5F 1E 86 86 90 00 [15:18:27]wFMCommunicate OK [15:18:27]SAM_PROTO_SignData done [15:18:27]FM_MakeSignedData done [15:18:27]CreateOFDProtocolMessage [15:18:27]wFMCommunicate request_size=4 [15:18:27]MH_SAM_APDU [15:18:27]CAPDU: 80 11 00 00 [15:18:27]Write to MH i2c: E2 08 00 99 67 80 11 00 00 00 00 00 00 7A [15:18:27]Write i2c OK [15:18:27]MH_I2C_Read... [15:18:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:18:27]Read from MH i2c: E2 [15:18:27]MH_I2C_Read... [15:18:27]Read from MH i2c: E2 17 00 [15:18:27]MH_I2C_Read... [15:18:27]Read from MH i2c: E2 17 00 99 67 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 C8 [15:18:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [15:18:27]wFMCommunicate OK [15:18:27]CreateOFDProtocolMessage done [15:18:27]OFDSenderStorePacket 187786 [15:18:27]StoreOFDPacket docnum=187786 [15:18:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 A3 F1 07 01 1F BC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 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 FA 00 00 00 F4 03 04 00 C6 70 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 8A DD 02 00 35 04 06 00 10 61 67 C2 94 7C D1 2C AA 21 5F 1E 86 86 [15:18:27]CheckFolder [15:18:27]dirname=/storage/ofd_packets [15:18:27]CheckFolder done [15:18:27]ProducePacketName [15:18:27]name=ofd_packets/00187786 [15:18:27]NVStorageSaveData ofd_packets/00187786 [15:18:27]File name is /storage/ofd_packets/00187786 [15:18:27]Write 301 bytes [15:18:27]NVStorageSaveData done [15:18:27]OFDSenderStorePacket done [15:18:27]KKMCreateOFDPacket done [15:18:27]NVStorageSaveData kkm_last_timestamp [15:18:27]File name is /storage/kkm_last_timestamp [15:18:27]Write 4 bytes [15:18:27]NVStorageSaveData done [15:18:27]ExternCall_PrintAddStr [15:18:27]wPrintStart [15:18:27]Write to MH i2c: 01 00 00 9A 67 01 [15:18:27]Write i2c OK [15:18:27]MH_I2C_Read... [15:18:27]Read from MH i2c: 01 [15:18:27]MH_I2C_Read... [15:18:27]Read from MH i2c: 01 07 00 [15:18:27]MH_I2C_Read... [15:18:27]Read from MH i2c: 01 07 00 9A 67 00 00 00 00 00 FF 0F 16 [15:18:27]RasterBufferAndPrint [15:18:27]line Счет N : (1)209838 [15:18:27]line ИНН: 02508201610067 [15:18:27]line Контрольно-Кассовый Чек [15:18:27]line ПРОДАЖА [15:18:27]line ТРК (МРК, ГНК) : 32 [15:18:27]line Товар: 2710124130 [15:18:27]line Аи-92-К-3 [15:18:27]line 30.000 * 0.00 [15:18:27]line = 0.00 [15:18:27]line НДС 12% НСП 1% [15:18:27]line > о реализуемом товаре [15:18:27]line ИТОГО: 0.00 [15:18:27]line НСП 1% : 0.00 [15:18:27]line НДС 12% : 0.00 [15:18:27]line Наличными: 0.00 [15:18:27]line Безнал.: 0.00 [15:18:27]line Место: АЗС № 86 "Партнер Нефть" [15:18:27]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [15:18:27]line СНО: Общий режим [15:18:27]line Чек 250 21.10.2024 15:18 [15:18:27]line Смена: 460 ФФД: 1.0 [15:18:27]line ЗНМ: 0300000155 [15:18:27]line РНМ: 0000000000100030 [15:18:27]line Версия ККМ: 001 [15:18:27]line Талоны: ТК ГПНА Online [15:18:27]line 30088522 [15:18:27]line ФМ: 0000000000965340 [15:18:27]line ФД: 187786 [15:18:27]line ФПД: 18010538677372 [15:18:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T151830&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187786&fm=18010538677372&tin=02508201610067®Number=0000000000100030&sum=0 [15:18:27]written 0, free lines is 4095 [15:18:27]OFD Sender: Processing packet 187786 [packets to send 1062, broken 1061] [15:18:27]ProducePacketName [15:18:27]name=ofd_packets/00187786 [15:18:27]OFD Sender: To server: pG, [15:18:27]CommunicateWithHost lk.salyk.kg:30040 [15:18:27]ConnectInit lk.salyk.kg [15:18:27]Connected sock=9 [15:18:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 A3 F1 07 01 1F BC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 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 FA 00 00 00 F4 03 04 00 C6 70 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 8A DD 02 00 35 04 06 00 10 61 67 C2 94 7C D1 2C AA 21 5F 1E 86 86 [15:18:28]Write to MH i2c: 01 00 00 C4 67 2B [15:18:28]Write i2c OK [15:18:28]MH_I2C_Read... [15:18:28]Read from MH i2c: 01 [15:18:28]MH_I2C_Read... [15:18:28]Read from MH i2c: 01 07 00 [15:18:28]MH_I2C_Read... [15:18:28]Read from MH i2c: 01 07 00 C4 67 00 00 00 00 00 83 0C C1 [15:18:28]RasterBufferAndPrint [15:18:28]line [15:18:28]line [15:18:28]line [15:18:28]line [15:18:28]line [15:18:28]written 0, free lines is 3207 [15:18:28]MH_Cut [15:18:28]Write to MH i2c: D1 01 00 CB 67 01 04 [15:18:28]Write i2c OK [15:18:28]MH_I2C_Read... [15:18:28]Read from MH i2c: D1 [15:18:28]MH_I2C_Read... [15:18:28]Read from MH i2c: D1 01 00 [15:18:28]MH_I2C_Read... [15:18:28]Read from MH i2c: D1 01 00 CB 67 00 03 [15:18:28]Write to MH i2c: 01 00 00 CC 67 33 [15:18:28]Write i2c OK [15:18:28]MH_I2C_Read... [15:18:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 BE 7A 47 00 66 73 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 8A DD 02 00 F4 03 04 00 B6 1A 16 67 B6 04 01 00 00 3B B9 F2 0D E9 8B DC 1D [15:18:28]CommunicateWithHost err = 0 [15:18:28]CheckOFDResponse [15:18:28]1017 (14) - 77093643461234 [15:18:28]1041 (16) - 0000000000965340 [15:18:28]1040 (4) - 187786 [15:18:28]1012 (4) - 21.10.2024 09:11 [15:18:28]1206 (1) - 0 [15:18:28]OFD Sender: Remove packet 187786 [15:18:28]ProducePacketName [15:18:28]name=ofd_packets/00187786 [15:18:28]NVStorageDeleteData [15:18:28]OFD Sender: No OFD packet to send [15:18:29]*** Cut start [15:18:29]*** Partial cut [15:18:29]*** CUTSNS_PIN = 1 [15:18:29]*** CUTSNS_PIN = 0 [15:18:29]*** Brake cut motor [15:18:29]Read from MH i2c: 01 [15:18:29]MH_I2C_Read... [15:18:29]*** Stop cut motor [15:18:29]*** Cut end [15:18:29]Read from MH i2c: 01 07 00 [15:18:29]MH_I2C_Read... [15:18:29]Read from MH i2c: 01 07 00 CC 67 00 00 00 00 00 FF 0F 48 [15:18:29]process_action close_receipt done [15:18:29]requested_data is exist [15:18:29]produce_requested_data [15:18:29]requested_item fm.sn is exist - process it [15:18:29]wFMCommunicate request_size=4 [15:18:29]MH_SAM_APDU [15:18:29]CAPDU: 80 11 00 00 [15:18:29]Write to MH i2c: E2 08 00 CD 67 80 11 00 00 00 00 00 00 AE [15:18:29]Write i2c OK [15:18:29]MH_I2C_Read... [15:18:30]Read from MH i2c: E2 [15:18:30]MH_I2C_Read... [15:18:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:18:30]Read from MH i2c: E2 17 00 [15:18:30]MH_I2C_Read... [15:18:30]Read from MH i2c: E2 17 00 CD 67 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 FC [15:18:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [15:18:30]wFMCommunicate OK [15:18:30]requested_item fd.num is exist - process it [15:18:30]SAM_PROTO_GetFieldsCounters [15:18:30]wFMCommunicate request_size=4 [15:18:30]MH_SAM_APDU [15:18:30]CAPDU: 80 13 00 00 [15:18:30]Write to MH i2c: E2 08 00 CE 67 80 13 00 00 00 00 00 00 B1 [15:18:30]Write i2c OK [15:18:30]MH_I2C_Read... [15:18:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:18:30]Read from MH i2c: E2 [15:18:30]MH_I2C_Read... [15:18:30]Read from MH i2c: E2 62 00 [15:18:30]MH_I2C_Read... [15:18:30]Read from MH i2c: E2 62 00 CE 67 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 8A DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 FA 00 00 00 5E 04 04 00 FA 00 00 00 57 04 04 00 FB 00 00 00 19 04 04 00 00 00 00 00 90 00 DC [15:18:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 8A DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 FA 00 00 00 5E 04 04 00 FA 00 00 00 57 04 04 00 FB 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:18:30]wFMCommunicate OK [15:18:30]SAM_PROTO_GetFieldsCounters done [15:18:30]requested_item shift.num is exist - process it [15:18:30]requested_item shift.opened is exist - process it [15:18:30]req_shift_opened [15:18:30]FM_GetShiftState [15:18:30]SAM_PROTO_GetShiftState [15:18:30]wFMCommunicate request_size=4 [15:18:30]MH_SAM_APDU [15:18:30]CAPDU: 80 13 01 00 [15:18:30]Write to MH i2c: E2 08 00 CF 67 80 13 01 00 00 00 00 00 B3 [15:18:30]Write i2c OK [15:18:30]MH_I2C_Read... [15:18:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:18:30]Read from MH i2c: E2 [15:18:30]MH_I2C_Read... [15:18:30]Read from MH i2c: E2 0E 00 [15:18:30]MH_I2C_Read... [15:18:30]Read from MH i2c: E2 0E 00 CF 67 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 12 [15:18:30]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [15:18:30]wFMCommunicate OK [15:18:30]SAM_PROTO_GetShiftState done [15:18:30]FM_GetShiftState done [15:18:30]req_shift_opened done [15:18:30]requested_item shift.open_date is exist - process it [15:18:30]req_shift_open_date [15:18:30]req_shift_open_date done [15:18:30]produce_requested_data done [15:18:30]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187786,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [15:18:30]process_action_free close_receipt [15:18:30]json_value_free [15:18:30]json_value_free done [15:18:30]process_json_proto returns [15:18:30]Send response to host [15:18:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187786,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [15:18:30]free response buf [15:18:30]execute_script done [15:18:30]execute_script returns [15:18:30]free content buf [15:18:30]Sock 8.Close socket [15:18:30]Sock 8.Thread stoped [15:18:33]OFD Sender: No OFD packet to send [15:18:38]OFD Sender: No OFD packet to send [15:18:43]OFD Sender: No OFD packet to send [15:18:48]OFD Sender: No OFD packet to send [15:18:53]OFD Sender: No OFD packet to send [15:18:58]OFD Sender: No OFD packet to send [15:19:04]OFD Sender: No OFD packet to send [15:19:09]OFD Sender: No OFD packet to send [15:19:14]OFD Sender: No OFD packet to send [15:19:19]OFD Sender: No OFD packet to send [15:19:24]OFD Sender: No OFD packet to send [15:19:29]OFD Sender: No OFD packet to send [15:19:34]OFD Sender: No OFD packet to send [15:19:39]OFD Sender: No OFD packet to send [15:19:44]OFD Sender: No OFD packet to send [15:19:49]OFD Sender: No OFD packet to send [15:19:54]OFD Sender: No OFD packet to send [15:19:59]OFD Sender: No OFD packet to send [15:20:04]OFD Sender: No OFD packet to send [15:20:04]accept exits with 10 [15:20:04]New connection [15:20:04]New thread 3067014500 created [15:20:04]Thread 3067157860 joined [15:20:04]Waiting for new connection... [15:20:04] Sock 10.Parse request [15:20:04]Sock 10.Check first char [15:20:04]Sock 10.First char is OK [15:20:04]request: POST /json_proto HTTP/1.0 [15:20:04]Method: POST [15:20:04]URL: /json_proto [15:20:04]Method is POST - this is cgi request [15:20:04]url: /json_proto [15:20:04]query_string will be loaded in cgi processing [15:20:04]execute_cgi json_proto POST (null) [15:20:04]execute_cgi path=json_proto method=POST [15:20:04]POST find Content-Length [15:20:04]Host: 172.17.42.131:8080 [15:20:04]Content-Length: 682 [15:20:04]Content-Type: application/json [15:20:04] [15:20:04]POST finish read [15:20:04]Found Content-Length = 682 [15:20:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209839", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "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:20:04]execute_script... [15:20: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)209839", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "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:20:04]POST & json_proto [15:20:04]process_json_proto [15:20:04]json parsed OK: [15:20:04]protocol is kg_v1.0 [15:20:04]action value=close_receipt [15:20:04]process_action close_receipt [15:20:04]cmd_close_receipt [15:20:04]MH_GetDate [15:20:04]Write to MH i2c: F0 00 00 D0 67 26 [15:20:04]Write i2c OK [15:20:04]MH_I2C_Read... [15:20:04]Read from MH i2c: F0 [15:20:04]MH_I2C_Read... [15:20:04]Read from MH i2c: F0 09 00 [15:20:04]MH_I2C_Read... [15:20:04]Read from MH i2c: F0 09 00 D0 67 00 29 71 16 67 A0 18 CA 66 2E [15:20:04]GetLastDocTimeStamp 1729523910 [15:20:04]current date 1729524009 [15:20:04]FM_GetShiftState [15:20:04]SAM_PROTO_GetShiftState [15:20:04]wFMCommunicate request_size=4 [15:20:04]MH_SAM_APDU [15:20:04]CAPDU: 80 13 01 00 [15:20:04]Write to MH i2c: E2 08 00 D1 67 80 13 01 00 00 00 00 00 B5 [15:20:04]Write i2c OK [15:20:04]MH_I2C_Read... [15:20:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:20:04]Read from MH i2c: E2 [15:20:04]MH_I2C_Read... [15:20:04]Read from MH i2c: E2 0E 00 [15:20:04]MH_I2C_Read... [15:20:04]Read from MH i2c: E2 0E 00 D1 67 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 14 [15:20:04]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [15:20:04]wFMCommunicate OK [15:20:04]SAM_PROTO_GetShiftState done [15:20:04]FM_GetShiftState done [15:20:04]opened in 1729469754 [15:20:04]opened+sec_in_day 1729556154 [15:20:04]quantity*price = 100015 [15:20:04]sum+1 = 100017 [15:20:04]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 251 21.10.2024 15:20 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 187787 ФПД: 226799657756278 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T152009&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187787&fm=226799657756278&tin=02508201610067®Number=0000000000100030&sum=100000 [15:20:05]StoreToDocumentArchive [15:20:05]shift 460 fd 187787 [15:20:05]save to /storage/0460/doc_00187787 [15:20:05]save last doc name /storage/0460/doc_00187787 to /storage/kkm_last_doc_name [15:20:05]save OK [15:20:05]Clear old archive folders... [15:20:05]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:20:05]tlvbuf is 01293660 [15:20:05]SAM_PROTO_ClearQueue [15:20:05]wFMCommunicate request_size=4 [15:20:05]MH_SAM_APDU [15:20:05]CAPDU: 80 09 00 00 [15:20:05]Write to MH i2c: E2 08 00 DE 67 80 09 00 00 00 00 00 00 B7 [15:20:05]Write i2c OK [15:20:05]MH_I2C_Read... [15:20:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:20:05]Read from MH i2c: E2 [15:20:05]MH_I2C_Read... [15:20:05]Read from MH i2c: E2 03 00 [15:20:05]MH_I2C_Read... [15:20:05]Read from MH i2c: E2 03 00 DE 67 00 90 00 B9 [15:20:05]RAPDU: 90 00 [15:20:05]wFMCommunicate OK [15:20:05]SAM_PROTO_ClearQueue done [15:20:05]KKMCreateOFDPacket [15:20:05]OFDProtocolAddRootSTLVToBuf [15:20:05]FM_MakeSignedData [15:20:05]FM_MakeSignedData [15:20:05]SAM_PROTO_SignData [15:20:05]wFMCommunicate request_size=4 [15:20:05]MH_SAM_APDU [15:20:05]CAPDU: 80 0D 01 02 [15:20:05]Write to MH i2c: E2 08 00 DF 67 80 0D 01 02 00 00 00 00 BF [15:20:05]Write i2c OK [15:20:05]MH_I2C_Read... [15:20:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:20:05]Read from MH i2c: E2 [15:20:05]MH_I2C_Read... [15:20:05]Read from MH i2c: E2 03 00 [15:20:05]MH_I2C_Read... [15:20:05]Read from MH i2c: E2 03 00 DF 67 00 90 00 BA [15:20:05]RAPDU: 90 00 [15:20:05]wFMCommunicate OK [15:20:05]wFMCommunicate request_size=255 [15:20:05]MH_SAM_APDU [15:20: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 33 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 FB 00 00 00 F4 03 04 00 29 71 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 8B DD 02 00 35 04 06 00 CE [15:20:05]Write to MH i2c: E2 02 01 E0 67 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 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 FB 00 00 00 F4 03 04 00 29 71 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 8B DD 02 00 35 04 06 00 CE 00 00 43 [15:20:05]Write i2c OK [15:20:05]MH_I2C_Read... [15:20:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:20:06]Read from MH i2c: E2 [15:20:06]MH_I2C_Read... [15:20:06]Read from MH i2c: E2 03 00 [15:20:06]MH_I2C_Read... [15:20:06]Read from MH i2c: E2 03 00 E0 67 00 90 00 BB [15:20:06]RAPDU: 90 00 [15:20:06]wFMCommunicate OK [15:20:06]wFMCommunicate request_size=10 [15:20:06]MH_SAM_APDU [15:20:06]CAPDU: 80 0D 02 02 05 45 E9 09 26 76 [15:20:06]Write to MH i2c: E2 0D 00 E1 67 80 0D 02 02 05 00 45 E9 09 26 76 00 00 9F [15:20:06]Write i2c OK [15:20:06]MH_I2C_Read... [15:20:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:20:06]Read from MH i2c: E2 [15:20:06]MH_I2C_Read... [15:20:06]Read from MH i2c: E2 03 00 [15:20:06]MH_I2C_Read... [15:20:06]Read from MH i2c: E2 03 00 E1 67 00 90 00 BC [15:20:06]RAPDU: 90 00 [15:20:06]wFMCommunicate OK [15:20:06]wFMCommunicate request_size=4 [15:20:06]MH_SAM_APDU [15:20:06]CAPDU: 80 0D 03 02 [15:20:06]Write to MH i2c: E2 08 00 E2 67 80 0D 03 02 00 00 00 00 C4 [15:20:06]Write i2c OK [15:20:06]MH_I2C_Read... [15:20:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:20:06]Read from MH i2c: E2 [15:20:06]MH_I2C_Read... [15:20:06]Read from MH i2c: E2 0B 00 [15:20:06]MH_I2C_Read... [15:20:06]Read from MH i2c: E2 0B 00 E2 67 00 AB 1D E8 74 A2 64 C6 8E 90 00 43 [15:20:06]RAPDU: AB 1D E8 74 A2 64 C6 8E 90 00 [15:20:06]wFMCommunicate OK [15:20:06]SAM_PROTO_SignData done [15:20:06]FM_MakeSignedData done [15:20:06]CreateOFDProtocolMessage [15:20:06]wFMCommunicate request_size=4 [15:20:06]MH_SAM_APDU [15:20:06]CAPDU: 80 11 00 00 [15:20:06]Write to MH i2c: E2 08 00 E3 67 80 11 00 00 00 00 00 00 C4 [15:20:06]Write i2c OK [15:20:06]MH_I2C_Read... [15:20:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:20:06]Read from MH i2c: E2 [15:20:06]MH_I2C_Read... [15:20:06]Read from MH i2c: E2 17 00 [15:20:06]MH_I2C_Read... [15:20:06]Read from MH i2c: E2 17 00 E3 67 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 12 [15:20:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [15:20:06]wFMCommunicate OK [15:20:06]CreateOFDProtocolMessage done [15:20:06]OFDSenderStorePacket 187787 [15:20:06]StoreOFDPacket docnum=187787 [15:20:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 5B 48 07 01 19 DC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 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 FB 00 00 00 F4 03 04 00 29 71 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 8B DD 02 00 35 04 06 00 CE 45 E9 09 26 76 AB 1D E8 74 A2 64 C6 8E [15:20:06]CheckFolder [15:20:06]dirname=/storage/ofd_packets [15:20:06]CheckFolder done [15:20:06]ProducePacketName [15:20:06]name=ofd_packets/00187787 [15:20:06]NVStorageSaveData ofd_packets/00187787 [15:20:06]File name is /storage/ofd_packets/00187787 [15:20:06]Write 301 bytes [15:20:06]NVStorageSaveData done [15:20:06]OFDSenderStorePacket done [15:20:06]KKMCreateOFDPacket done [15:20:06]NVStorageSaveData kkm_last_timestamp [15:20:06]File name is /storage/kkm_last_timestamp [15:20:06]Write 4 bytes [15:20:06]NVStorageSaveData done [15:20:06]ExternCall_PrintAddStr [15:20:06]wPrintStart [15:20:06]Write to MH i2c: 01 00 00 E4 67 4B [15:20:06]Write i2c OK [15:20:06]MH_I2C_Read... [15:20:06]Read from MH i2c: 01 [15:20:06]MH_I2C_Read... [15:20:06]Read from MH i2c: 01 07 00 [15:20:06]MH_I2C_Read... [15:20:06]Read from MH i2c: 01 07 00 E4 67 00 00 00 00 00 FF 0F 60 [15:20:06]RasterBufferAndPrint [15:20:06]line Счет N : (1)209839 [15:20:06]line ИНН: 02508201610067 [15:20:06]line Контрольно-Кассовый Чек [15:20:06]line ПРОДАЖА [15:20:06]line ТРК (МРК, ГНК) : 22 [15:20:06]line Товар: 2710124130 [15:20:06]line Аи-92-К-3 [15:20:06]line 14.950 * 66.90 [15:20:06]line = 1000.16 [15:20:06]line НДС 12% НСП 1% [15:20:06]line > о реализуемом товаре [15:20:06]line ОКРУГЛЕНИЕ: -0.16 [15:20:06]line ИТОГО: 1000.00 [15:20:06]line Внесено: 1000.00 [15:20:06]line СДАЧА: 0.00 [15:20:06]line НСП 1% : 8.85 [15:20:06]line НДС 12% : 106.21 [15:20:06]line Наличными: 1000.00 [15:20:06]line Безнал.: 0.00 [15:20:06]line Место: АЗС № 86 "Партнер Нефть" [15:20:06]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [15:20:06]line СНО: Общий режим [15:20:06]line Чек 251 21.10.2024 15:20 [15:20:06]line Смена: 460 ФФД: 1.0 [15:20:06]line ЗНМ: 0300000155 [15:20:06]line РНМ: 0000000000100030 [15:20:06]line Версия ККМ: 001 [15:20:06]line ФМ: 0000000000965340 [15:20:06]line ФД: 187787 [15:20:06]line ФПД: 226799657756278 [15:20:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T152009&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187787&fm=226799657756278&tin=02508201610067®Number=0000000000100030&sum=100000 [15:20:06]OFD Sender: Processing packet 187787 [packets to send 1062, broken 1061] [15:20:06]ProducePacketName [15:20:06]name=ofd_packets/00187787 [15:20:06]OFD Sender: To server: pG, [15:20:06]CommunicateWithHost lk.salyk.kg:30040 [15:20:06]ConnectInit lk.salyk.kg [15:20:06]written 0, free lines is 4095 [15:20:06]Connected sock=9 [15:20:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 5B 48 07 01 19 DC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 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 FB 00 00 00 F4 03 04 00 29 71 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 8B DD 02 00 35 04 06 00 CE 45 E9 09 26 76 AB 1D E8 74 A2 64 C6 8E [15:20:06]Write to MH i2c: 01 00 00 0F 68 77 [15:20:06]Write i2c OK [15:20:06]MH_I2C_Read... [15:20:06]Read from MH i2c: 01 [15:20:06]MH_I2C_Read... [15:20:06]Read from MH i2c: 01 07 00 [15:20:06]MH_I2C_Read... [15:20:06]Read from MH i2c: 01 07 00 0F 68 00 00 00 00 00 65 0C EF [15:20:06]RasterBufferAndPrint [15:20:06]line [15:20:06]line [15:20:06]line [15:20:06]line [15:20:06]line [15:20:06]written 0, free lines is 3176 [15:20:06]MH_Cut [15:20:06]Write to MH i2c: D1 01 00 16 68 01 50 [15:20:06]Write i2c OK [15:20:06]MH_I2C_Read... [15:20:06]Read from MH i2c: D1 [15:20:06]MH_I2C_Read... [15:20:06]Read from MH i2c: D1 01 00 [15:20:06]MH_I2C_Read... [15:20:06]Read from MH i2c: D1 01 00 16 68 00 4F [15:20:06]Write to MH i2c: 01 00 00 17 68 7F [15:20:06]Write i2c OK [15:20:06]MH_I2C_Read... [15:20:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 29 B4 47 00 BC 53 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 8B DD 02 00 F4 03 04 00 18 1B 16 67 B6 04 01 00 00 40 16 6B 46 50 FA DD D6 [15:20:06]CommunicateWithHost err = 0 [15:20:06]CheckOFDResponse [15:20:06]1017 (14) - 77093643461234 [15:20:06]1041 (16) - 0000000000965340 [15:20:06]1040 (4) - 187787 [15:20:06]1012 (4) - 21.10.2024 09:12 [15:20:06]1206 (1) - 0 [15:20:06]OFD Sender: Remove packet 187787 [15:20:06]ProducePacketName [15:20:06]name=ofd_packets/00187787 [15:20:06]NVStorageDeleteData [15:20:07]OFD Sender: No OFD packet to send [15:20:07]*** Cut start [15:20:07]*** Partial cut [15:20:07]*** CUTSNS_PIN = 1 [15:20:07]*** CUTSNS_PIN = 0 [15:20:08]*** Brake cut motor [15:20:08]Read from MH i2c: 01 [15:20:08]MH_I2C_Read... [15:20:08]*** Stop cut motor [15:20:08]*** Cut end [15:20:08]Read from MH i2c: 01 07 00 [15:20:08]MH_I2C_Read... [15:20:08]Read from MH i2c: 01 07 00 17 68 00 00 00 00 00 FF 0F 94 [15:20:08]process_action close_receipt done [15:20:08]requested_data is exist [15:20:08]produce_requested_data [15:20:08]requested_item fm.sn is exist - process it [15:20:08]wFMCommunicate request_size=4 [15:20:08]MH_SAM_APDU [15:20:08]CAPDU: 80 11 00 00 [15:20:08]Write to MH i2c: E2 08 00 18 68 80 11 00 00 00 00 00 00 FA [15:20:08]Write i2c OK [15:20:08]MH_I2C_Read... [15:20:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:20:08]Read from MH i2c: E2 [15:20:08]MH_I2C_Read... [15:20:08]Read from MH i2c: E2 17 00 [15:20:08]MH_I2C_Read... [15:20:08]Read from MH i2c: E2 17 00 18 68 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 48 [15:20:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [15:20:08]wFMCommunicate OK [15:20:08]requested_item fd.num is exist - process it [15:20:08]SAM_PROTO_GetFieldsCounters [15:20:08]wFMCommunicate request_size=4 [15:20:08]MH_SAM_APDU [15:20:08]CAPDU: 80 13 00 00 [15:20:08]Write to MH i2c: E2 08 00 19 68 80 13 00 00 00 00 00 00 FD [15:20:08]Write i2c OK [15:20:08]MH_I2C_Read... [15:20:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:20:08]Read from MH i2c: E2 [15:20:08]MH_I2C_Read... [15:20:08]Read from MH i2c: E2 62 00 [15:20:08]MH_I2C_Read... [15:20:08]Read from MH i2c: E2 62 00 19 68 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 8B DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 FB 00 00 00 5E 04 04 00 FB 00 00 00 57 04 04 00 FC 00 00 00 19 04 04 00 00 00 00 00 90 00 2C [15:20:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 8B DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 FB 00 00 00 5E 04 04 00 FB 00 00 00 57 04 04 00 FC 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:20:08]wFMCommunicate OK [15:20:08]SAM_PROTO_GetFieldsCounters done [15:20:08]requested_item shift.num is exist - process it [15:20:08]requested_item shift.opened is exist - process it [15:20:08]req_shift_opened [15:20:08]FM_GetShiftState [15:20:08]SAM_PROTO_GetShiftState [15:20:08]wFMCommunicate request_size=4 [15:20:08]MH_SAM_APDU [15:20:08]CAPDU: 80 13 01 00 [15:20:08]Write to MH i2c: E2 08 00 1A 68 80 13 01 00 00 00 00 00 FF [15:20:08]Write i2c OK [15:20:08]MH_I2C_Read... [15:20:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:20:08]Read from MH i2c: E2 [15:20:08]MH_I2C_Read... [15:20:08]Read from MH i2c: E2 0E 00 [15:20:08]MH_I2C_Read... [15:20:08]Read from MH i2c: E2 0E 00 1A 68 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 5E [15:20:08]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [15:20:08]wFMCommunicate OK [15:20:08]SAM_PROTO_GetShiftState done [15:20:08]FM_GetShiftState done [15:20:08]req_shift_opened done [15:20:08]requested_item shift.open_date is exist - process it [15:20:08]req_shift_open_date [15:20:08]req_shift_open_date done [15:20:08]produce_requested_data done [15:20:08]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187787,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [15:20:08]process_action_free close_receipt [15:20:08]json_value_free [15:20:08]json_value_free done [15:20:08]process_json_proto returns [15:20:08]Send response to host [15:20:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187787,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [15:20:08]free response buf [15:20:08]execute_script done [15:20:08]execute_script returns [15:20:08]free content buf [15:20:08]Sock 10.Close socket [15:20:08]Sock 10.Thread stoped [15:20:12]OFD Sender: No OFD packet to send [15:20:17]OFD Sender: No OFD packet to send [15:20:22]OFD Sender: No OFD packet to send [15:20:27]OFD Sender: No OFD packet to send [15:20:32]OFD Sender: No OFD packet to send [15:20:37]OFD Sender: No OFD packet to send [15:20:42]OFD Sender: No OFD packet to send [15:20:47]OFD Sender: No OFD packet to send [15:20:52]OFD Sender: No OFD packet to send [15:20:57]OFD Sender: No OFD packet to send [15:21:02]OFD Sender: No OFD packet to send [15:21:07]OFD Sender: No OFD packet to send [15:21:12]OFD Sender: No OFD packet to send [15:21:17]OFD Sender: No OFD packet to send [15:21:22]OFD Sender: No OFD packet to send [15:21:27]OFD Sender: No OFD packet to send [15:21:32]OFD Sender: No OFD packet to send [15:21:37]OFD Sender: No OFD packet to send [15:21:42]OFD Sender: No OFD packet to send [15:21:47]OFD Sender: No OFD packet to send [15:21:52]OFD Sender: No OFD packet to send [15:21:54]accept exits with 8 [15:21:54]New connection [15:21:54]New thread 3067157860 created [15:21:54]Thread 3067014500 joined [15:21:54]Waiting for new connection... [15:21:54] Sock 8.Parse request [15:21:54]Sock 8.Check first char [15:21:54]Sock 8.First char is OK [15:21:54]request: POST /json_proto HTTP/1.0 [15:21:54]Method: POST [15:21:54]URL: /json_proto [15:21:54]Method is POST - this is cgi request [15:21:54]url: /json_proto [15:21:54]query_string will be loaded in cgi processing [15:21:54]execute_cgi json_proto POST (null) [15:21:54]execute_cgi path=json_proto method=POST [15:21:54]POST find Content-Length [15:21:54]Host: 172.17.42.131:8080 [15:21:54]Content-Length: 799 [15:21:54]Content-Type: application/json [15:21:54] [15:21:54]POST finish read [15:21:54]Found Content-Length = 799 [15:21:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209840", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 0.00, "quantity" : 5.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4865503", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:21:54]execute_script... [15:21: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)209840", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 0.00, "quantity" : 5.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4865503", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:21:54]POST & json_proto [15:21:54]process_json_proto [15:21:54]json parsed OK: [15:21:54]protocol is kg_v1.0 [15:21:54]action value=close_receipt [15:21:54]process_action close_receipt [15:21:54]cmd_close_receipt [15:21:54]MH_GetDate [15:21:54]Write to MH i2c: F0 00 00 1B 68 72 [15:21:54]Write i2c OK [15:21:54]MH_I2C_Read... [15:21:54]Read from MH i2c: F0 [15:21:54]MH_I2C_Read... [15:21:54]Read from MH i2c: F0 09 00 [15:21:54]MH_I2C_Read... [15:21:54]Read from MH i2c: F0 09 00 1B 68 00 96 71 16 67 A0 18 CA 66 E7 [15:21:54]GetLastDocTimeStamp 1729524009 [15:21:54]current date 1729524118 [15:21:54]FM_GetShiftState [15:21:54]SAM_PROTO_GetShiftState [15:21:54]wFMCommunicate request_size=4 [15:21:54]MH_SAM_APDU [15:21:54]CAPDU: 80 13 01 00 [15:21:54]Write to MH i2c: E2 08 00 1C 68 80 13 01 00 00 00 00 00 01 [15:21:54]Write i2c OK [15:21:54]MH_I2C_Read... [15:21:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:21:54]Read from MH i2c: E2 [15:21:54]MH_I2C_Read... [15:21:54]Read from MH i2c: E2 0E 00 [15:21:54]MH_I2C_Read... [15:21:54]Read from MH i2c: E2 0E 00 1C 68 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 60 [15:21:54]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [15:21:54]wFMCommunicate OK [15:21:54]SAM_PROTO_GetShiftState done [15:21:54]FM_GetShiftState done [15:21:54]opened in 1729469754 [15:21:54]opened+sec_in_day 1729556154 [15:21:54]quantity*price = 0 [15:21:54]sum+1 = 1 [15:21:54]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 252 21.10.2024 15:21 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Талоны: Топливные Талоны 4865503 ФМ: 0000000000965340 ФД: 187788 ФПД: 204902662097408 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T152158&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187788&fm=204902662097408&tin=02508201610067®Number=0000000000100030&sum=0 [15:21:55]StoreToDocumentArchive [15:21:55]shift 460 fd 187788 [15:21:55]save to /storage/0460/doc_00187788 [15:21:55]save last doc name /storage/0460/doc_00187788 to /storage/kkm_last_doc_name [15:21:55]save OK [15:21:55]Clear old archive folders... [15:21:55]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:21:55]tlvbuf is 010E41A0 [15:21:55]SAM_PROTO_ClearQueue [15:21:55]wFMCommunicate request_size=4 [15:21:55]MH_SAM_APDU [15:21:55]CAPDU: 80 09 00 00 [15:21:55]Write to MH i2c: E2 08 00 29 68 80 09 00 00 00 00 00 00 03 [15:21:55]Write i2c OK [15:21:55]MH_I2C_Read... [15:21:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:21:55]Read from MH i2c: E2 [15:21:55]MH_I2C_Read... [15:21:55]Read from MH i2c: E2 03 00 [15:21:55]MH_I2C_Read... [15:21:55]Read from MH i2c: E2 03 00 29 68 00 90 00 05 [15:21:55]RAPDU: 90 00 [15:21:55]wFMCommunicate OK [15:21:55]SAM_PROTO_ClearQueue done [15:21:55]KKMCreateOFDPacket [15:21:55]OFDProtocolAddRootSTLVToBuf [15:21:55]FM_MakeSignedData [15:21:55]FM_MakeSignedData [15:21:55]SAM_PROTO_SignData [15:21:55]wFMCommunicate request_size=4 [15:21:55]MH_SAM_APDU [15:21:55]CAPDU: 80 0D 01 02 [15:21:55]Write to MH i2c: E2 08 00 2A 68 80 0D 01 02 00 00 00 00 0B [15:21:55]Write i2c OK [15:21:55]MH_I2C_Read... [15:21:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:21:55]Read from MH i2c: E2 [15:21:55]MH_I2C_Read... [15:21:55]Read from MH i2c: E2 03 00 [15:21:55]MH_I2C_Read... [15:21:55]Read from MH i2c: E2 03 00 2A 68 00 90 00 06 [15:21:55]RAPDU: 90 00 [15:21:55]wFMCommunicate OK [15:21:55]wFMCommunicate request_size=255 [15:21:55]MH_SAM_APDU [15:21: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 33 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FC 00 00 00 F4 03 04 00 96 71 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 8C DD 02 00 35 04 06 00 BA [15:21:55]Write to MH i2c: E2 02 01 2B 68 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FC 00 00 00 F4 03 04 00 96 71 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 8C DD 02 00 35 04 06 00 BA 00 00 06 [15:21:55]Write i2c OK [15:21:55]MH_I2C_Read... [15:21:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:21:55]Read from MH i2c: E2 [15:21:55]MH_I2C_Read... [15:21:55]Read from MH i2c: E2 03 00 [15:21:55]MH_I2C_Read... [15:21:55]Read from MH i2c: E2 03 00 2B 68 00 90 00 07 [15:21:55]RAPDU: 90 00 [15:21:55]wFMCommunicate OK [15:21:55]wFMCommunicate request_size=10 [15:21:55]MH_SAM_APDU [15:21:55]CAPDU: 80 0D 02 02 05 5B 9E 63 4A 00 [15:21:55]Write to MH i2c: E2 0D 00 2C 68 80 0D 02 02 05 00 5B 9E 63 4A 00 00 00 BE [15:21:55]Write i2c OK [15:21:55]MH_I2C_Read... [15:21:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:21:55]Read from MH i2c: E2 [15:21:55]MH_I2C_Read... [15:21:55]Read from MH i2c: E2 03 00 [15:21:55]MH_I2C_Read... [15:21:55]Read from MH i2c: E2 03 00 2C 68 00 90 00 08 [15:21:55]RAPDU: 90 00 [15:21:55]wFMCommunicate OK [15:21:55]wFMCommunicate request_size=4 [15:21:55]MH_SAM_APDU [15:21:55]CAPDU: 80 0D 03 02 [15:21:55]Write to MH i2c: E2 08 00 2D 68 80 0D 03 02 00 00 00 00 10 [15:21:55]Write i2c OK [15:21:55]MH_I2C_Read... [15:21:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:21:55]Read from MH i2c: E2 [15:21:55]MH_I2C_Read... [15:21:55]Read from MH i2c: E2 0B 00 [15:21:55]MH_I2C_Read... [15:21:55]Read from MH i2c: E2 0B 00 2D 68 00 6F 24 7B 06 9A A8 AF DD 90 00 F3 [15:21:55]RAPDU: 6F 24 7B 06 9A A8 AF DD 90 00 [15:21:55]wFMCommunicate OK [15:21:55]SAM_PROTO_SignData done [15:21:55]FM_MakeSignedData done [15:21:55]CreateOFDProtocolMessage [15:21:55]wFMCommunicate request_size=4 [15:21:55]MH_SAM_APDU [15:21:55]CAPDU: 80 11 00 00 [15:21:55]Write to MH i2c: E2 08 00 2E 68 80 11 00 00 00 00 00 00 10 [15:21:55]Write i2c OK [15:21:55]MH_I2C_Read... [15:21:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:21:55]Read from MH i2c: E2 [15:21:55]MH_I2C_Read... [15:21:55]Read from MH i2c: E2 17 00 [15:21:55]MH_I2C_Read... [15:21:55]Read from MH i2c: E2 17 00 2E 68 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 5E [15:21:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [15:21:55]wFMCommunicate OK [15:21:55]CreateOFDProtocolMessage done [15:21:55]OFDSenderStorePacket 187788 [15:21:55]StoreOFDPacket docnum=187788 [15:21:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 22 BF 07 01 04 7B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FC 00 00 00 F4 03 04 00 96 71 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 8C DD 02 00 35 04 06 00 BA 5B 9E 63 4A 00 6F 24 7B 06 9A A8 AF DD [15:21:55]CheckFolder [15:21:55]dirname=/storage/ofd_packets [15:21:55]CheckFolder done [15:21:55]ProducePacketName [15:21:55]name=ofd_packets/00187788 [15:21:55]NVStorageSaveData ofd_packets/00187788 [15:21:55]File name is /storage/ofd_packets/00187788 [15:21:55]Write 301 bytes [15:21:55]NVStorageSaveData done [15:21:55]OFDSenderStorePacket done [15:21:55]KKMCreateOFDPacket done [15:21:55]NVStorageSaveData kkm_last_timestamp [15:21:55]File name is /storage/kkm_last_timestamp [15:21:55]Write 4 bytes [15:21:55]NVStorageSaveData done [15:21:55]ExternCall_PrintAddStr [15:21:55]wPrintStart [15:21:55]Write to MH i2c: 01 00 00 2F 68 97 [15:21:55]Write i2c OK [15:21:55]MH_I2C_Read... [15:21:55]Read from MH i2c: 01 [15:21:55]MH_I2C_Read... [15:21:55]Read from MH i2c: 01 07 00 [15:21:55]MH_I2C_Read... [15:21:55]Read from MH i2c: 01 07 00 2F 68 00 00 00 00 00 FF 0F AC [15:21:55]RasterBufferAndPrint [15:21:55]line Счет N : (1)209840 [15:21:55]line ИНН: 02508201610067 [15:21:55]line Контрольно-Кассовый Чек [15:21:55]line ПРОДАЖА [15:21:55]line ТРК (МРК, ГНК) : 12 [15:21:55]line Товар: 2710124130 [15:21:55]line Аи-92-К-3 [15:21:55]line 5.000 * 0.00 [15:21:55]line = 0.00 [15:21:55]line НДС 12% НСП 1% [15:21:55]line > о реализуемом товаре [15:21:55]line ИТОГО: 0.00 [15:21:55]line НСП 1% : 0.00 [15:21:55]line НДС 12% : 0.00 [15:21:55]line Наличными: 0.00 [15:21:55]line Безнал.: 0.00 [15:21:55]line Место: АЗС № 86 "Партнер Нефть" [15:21:55]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [15:21:55]line СНО: Общий режим [15:21:55]line Чек 252 21.10.2024 15:21 [15:21:55]line Смена: 460 ФФД: 1.0 [15:21:55]line ЗНМ: 0300000155 [15:21:55]line РНМ: 0000000000100030 [15:21:55]line Версия ККМ: 001 [15:21:55]line Талоны: Топливные Талоны [15:21:55]line 4865503 [15:21:55]line ФМ: 0000000000965340 [15:21:55]line ФД: 187788 [15:21:55]line ФПД: 204902662097408 [15:21:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T152158&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187788&fm=204902662097408&tin=02508201610067®Number=0000000000100030&sum=0 [15:21:55]written 0, free lines is 4095 [15:21:55]OFD Sender: Processing packet 187788 [packets to send 1062, broken 1061] [15:21:55]ProducePacketName [15:21:55]name=ofd_packets/00187788 [15:21:55]OFD Sender: To server: pG, [15:21:55]CommunicateWithHost lk.salyk.kg:30040 [15:21:55]ConnectInit lk.salyk.kg [15:21:56]Connected sock=10 [15:21:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 22 BF 07 01 04 7B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FC 00 00 00 F4 03 04 00 96 71 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 8C DD 02 00 35 04 06 00 BA 5B 9E 63 4A 00 6F 24 7B 06 9A A8 AF DD [15:21:56]Write to MH i2c: 01 00 00 59 68 C1 [15:21:56]Write i2c OK [15:21:56]MH_I2C_Read... [15:21:56]Read from MH i2c: 01 [15:21:56]MH_I2C_Read... [15:21:56]Read from MH i2c: 01 07 00 [15:21:56]MH_I2C_Read... [15:21:56]Read from MH i2c: 01 07 00 59 68 00 00 00 00 00 7D 0C 51 [15:21:56]RasterBufferAndPrint [15:21:56]line [15:21:56]line [15:21:56]line [15:21:56]line [15:21:56]line [15:21:56]written 0, free lines is 3201 [15:21:56]MH_Cut [15:21:56]Write to MH i2c: D1 01 00 60 68 01 9A [15:21:56]Write i2c OK [15:21:56]MH_I2C_Read... [15:21:56]Read from MH i2c: D1 [15:21:56]MH_I2C_Read... [15:21:56]Read from MH i2c: D1 01 00 [15:21:56]MH_I2C_Read... [15:21:56]Read from MH i2c: D1 01 00 60 68 00 99 [15:21:56]Write to MH i2c: 01 00 00 61 68 C9 [15:21:56]Write i2c OK [15:21:56]MH_I2C_Read... [15:21:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 7D CB 47 00 E0 4A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 8C DD 02 00 F4 03 04 00 86 1B 16 67 B6 04 01 00 00 A4 EF 72 2D 9B 44 82 D3 [15:21:56]CommunicateWithHost err = 0 [15:21:56]CheckOFDResponse [15:21:56]1017 (14) - 77093643461234 [15:21:56]1041 (16) - 0000000000965340 [15:21:56]1040 (4) - 187788 [15:21:56]1012 (4) - 21.10.2024 09:14 [15:21:56]1206 (1) - 0 [15:21:56]OFD Sender: Remove packet 187788 [15:21:56]ProducePacketName [15:21:56]name=ofd_packets/00187788 [15:21:56]NVStorageDeleteData [15:21:56]OFD Sender: No OFD packet to send [15:21:57]*** Cut start [15:21:57]*** Partial cut [15:21:57]*** CUTSNS_PIN = 1 [15:21:57]*** CUTSNS_PIN = 0 [15:21:57]*** Brake cut motor [15:21:57]Read from MH i2c: 01 [15:21:57]MH_I2C_Read... [15:21:57]*** Stop cut motor [15:21:57]*** Cut end [15:21:57]Read from MH i2c: 01 07 00 [15:21:57]MH_I2C_Read... [15:21:57]Read from MH i2c: 01 07 00 61 68 00 00 00 00 00 FF 0F DE [15:21:57]process_action close_receipt done [15:21:57]requested_data is exist [15:21:57]produce_requested_data [15:21:57]requested_item fm.sn is exist - process it [15:21:57]wFMCommunicate request_size=4 [15:21:57]MH_SAM_APDU [15:21:57]CAPDU: 80 11 00 00 [15:21:57]Write to MH i2c: E2 08 00 62 68 80 11 00 00 00 00 00 00 44 [15:21:57]Write i2c OK [15:21:57]MH_I2C_Read... [15:21:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:21:58]Read from MH i2c: E2 [15:21:58]MH_I2C_Read... [15:21:58]Read from MH i2c: E2 17 00 [15:21:58]MH_I2C_Read... [15:21:58]Read from MH i2c: E2 17 00 62 68 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 92 [15:21:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [15:21:58]wFMCommunicate OK [15:21:58]requested_item fd.num is exist - process it [15:21:58]SAM_PROTO_GetFieldsCounters [15:21:58]wFMCommunicate request_size=4 [15:21:58]MH_SAM_APDU [15:21:58]CAPDU: 80 13 00 00 [15:21:58]Write to MH i2c: E2 08 00 63 68 80 13 00 00 00 00 00 00 47 [15:21:58]Write i2c OK [15:21:58]MH_I2C_Read... [15:21:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:21:58]Read from MH i2c: E2 [15:21:58]MH_I2C_Read... [15:21:58]Read from MH i2c: E2 62 00 [15:21:58]MH_I2C_Read... [15:21:58]Read from MH i2c: E2 62 00 63 68 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 8C DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 FC 00 00 00 5E 04 04 00 FC 00 00 00 57 04 04 00 FD 00 00 00 19 04 04 00 00 00 00 00 90 00 7A [15:21:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 8C DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 FC 00 00 00 5E 04 04 00 FC 00 00 00 57 04 04 00 FD 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:21:58]wFMCommunicate OK [15:21:58]SAM_PROTO_GetFieldsCounters done [15:21:58]requested_item shift.num is exist - process it [15:21:58]requested_item shift.opened is exist - process it [15:21:58]req_shift_opened [15:21:58]FM_GetShiftState [15:21:58]SAM_PROTO_GetShiftState [15:21:58]wFMCommunicate request_size=4 [15:21:58]MH_SAM_APDU [15:21:58]CAPDU: 80 13 01 00 [15:21:58]Write to MH i2c: E2 08 00 64 68 80 13 01 00 00 00 00 00 49 [15:21:58]Write i2c OK [15:21:58]MH_I2C_Read... [15:21:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:21:58]Read from MH i2c: E2 [15:21:58]MH_I2C_Read... [15:21:58]Read from MH i2c: E2 0E 00 [15:21:58]MH_I2C_Read... [15:21:58]Read from MH i2c: E2 0E 00 64 68 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 A8 [15:21:58]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [15:21:58]wFMCommunicate OK [15:21:58]SAM_PROTO_GetShiftState done [15:21:58]FM_GetShiftState done [15:21:58]req_shift_opened done [15:21:58]requested_item shift.open_date is exist - process it [15:21:58]req_shift_open_date [15:21:58]req_shift_open_date done [15:21:58]produce_requested_data done [15:21:58]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187788,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [15:21:58]process_action_free close_receipt [15:21:58]json_value_free [15:21:58]json_value_free done [15:21:58]process_json_proto returns [15:21:58]Send response to host [15:21:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187788,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [15:21:58]free response buf [15:21:58]execute_script done [15:21:58]execute_script returns [15:21:58]free content buf [15:21:58]Sock 8.Close socket [15:21:58]Sock 8.Thread stoped [15:22:01]OFD Sender: No OFD packet to send [15:22:06]OFD Sender: No OFD packet to send [15:22:11]OFD Sender: No OFD packet to send [15:22:17]OFD Sender: No OFD packet to send [15:22:22]OFD Sender: No OFD packet to send [15:22:27]OFD Sender: No OFD packet to send [15:22:32]OFD Sender: No OFD packet to send [15:22:37]OFD Sender: No OFD packet to send [15:22:42]OFD Sender: No OFD packet to send [15:22:47]OFD Sender: No OFD packet to send [15:22:52]OFD Sender: No OFD packet to send [15:22:57]OFD Sender: No OFD packet to send [15:23:02]OFD Sender: No OFD packet to send [15:23:07]OFD Sender: No OFD packet to send [15:23:12]OFD Sender: No OFD packet to send [15:23:17]OFD Sender: No OFD packet to send [15:23:22]OFD Sender: No OFD packet to send [15:23:25]accept exits with 9 [15:23:25]New connection [15:23:25]New thread 3067014500 created [15:23:25]Thread 3067157860 joined [15:23:25]Waiting for new connection... [15:23:25] Sock 9.Parse request [15:23:25]Sock 9.Check first char [15:23:25]Sock 9.First char is OK [15:23:25]request: POST /json_proto HTTP/1.0 [15:23:25]Method: POST [15:23:25]URL: /json_proto [15:23:25]Method is POST - this is cgi request [15:23:25]url: /json_proto [15:23:25]query_string will be loaded in cgi processing [15:23:25]execute_cgi json_proto POST (null) [15:23:25]execute_cgi path=json_proto method=POST [15:23:25]POST find Content-Length [15:23:25]Host: 172.17.42.131:8080 [15:23:25]Content-Length: 799 [15:23:25]Content-Type: application/json [15:23:25] [15:23:25]POST finish read [15:23:25]Found Content-Length = 799 [15:23:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209841", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 0.00, "quantity" : 5.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4868736", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:23:25]execute_script... [15:23:25]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209841", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 0.00, "quantity" : 5.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4868736", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:23:25]POST & json_proto [15:23:25]process_json_proto [15:23:25]json parsed OK: [15:23:25]protocol is kg_v1.0 [15:23:25]action value=close_receipt [15:23:25]process_action close_receipt [15:23:25]cmd_close_receipt [15:23:25]MH_GetDate [15:23:25]Write to MH i2c: F0 00 00 65 68 BC [15:23:25]Write i2c OK [15:23:25]MH_I2C_Read... [15:23:25]Read from MH i2c: F0 [15:23:25]MH_I2C_Read... [15:23:25]Read from MH i2c: F0 09 00 [15:23:25]MH_I2C_Read... [15:23:25]Read from MH i2c: F0 09 00 65 68 00 F1 71 16 67 A0 18 CA 66 8C [15:23:25]GetLastDocTimeStamp 1729524118 [15:23:25]current date 1729524209 [15:23:25]FM_GetShiftState [15:23:25]SAM_PROTO_GetShiftState [15:23:25]wFMCommunicate request_size=4 [15:23:25]MH_SAM_APDU [15:23:25]CAPDU: 80 13 01 00 [15:23:25]Write to MH i2c: E2 08 00 66 68 80 13 01 00 00 00 00 00 4B [15:23:25]Write i2c OK [15:23:25]MH_I2C_Read... [15:23:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:23:25]Read from MH i2c: E2 [15:23:25]MH_I2C_Read... [15:23:25]Read from MH i2c: E2 0E 00 [15:23:25]MH_I2C_Read... [15:23:25]Read from MH i2c: E2 0E 00 66 68 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 AA [15:23:25]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [15:23:25]wFMCommunicate OK [15:23:25]SAM_PROTO_GetShiftState done [15:23:25]FM_GetShiftState done [15:23:25]opened in 1729469754 [15:23:25]opened+sec_in_day 1729556154 [15:23:25]quantity*price = 0 [15:23:25]sum+1 = 1 [15:23:25]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 253 21.10.2024 15:23 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Талоны: Топливные Талоны 4868736 ФМ: 0000000000965340 ФД: 187789 ФПД: 220898353656362 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T152329&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187789&fm=220898353656362&tin=02508201610067®Number=0000000000100030&sum=0 [15:23:26]StoreToDocumentArchive [15:23:26]shift 460 fd 187789 [15:23:26]save to /storage/0460/doc_00187789 [15:23:26]save last doc name /storage/0460/doc_00187789 to /storage/kkm_last_doc_name [15:23:26]save OK [15:23:26]Clear old archive folders... [15:23:26]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:23:26]tlvbuf is 01090130 [15:23:26]SAM_PROTO_ClearQueue [15:23:26]wFMCommunicate request_size=4 [15:23:26]MH_SAM_APDU [15:23:26]CAPDU: 80 09 00 00 [15:23:26]Write to MH i2c: E2 08 00 73 68 80 09 00 00 00 00 00 00 4D [15:23:26]Write i2c OK [15:23:26]MH_I2C_Read... [15:23:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:23:26]Read from MH i2c: E2 [15:23:26]MH_I2C_Read... [15:23:26]Read from MH i2c: E2 03 00 [15:23:26]MH_I2C_Read... [15:23:26]Read from MH i2c: E2 03 00 73 68 00 90 00 4F [15:23:26]RAPDU: 90 00 [15:23:26]wFMCommunicate OK [15:23:26]SAM_PROTO_ClearQueue done [15:23:26]KKMCreateOFDPacket [15:23:26]OFDProtocolAddRootSTLVToBuf [15:23:26]FM_MakeSignedData [15:23:26]FM_MakeSignedData [15:23:26]SAM_PROTO_SignData [15:23:26]wFMCommunicate request_size=4 [15:23:26]MH_SAM_APDU [15:23:26]CAPDU: 80 0D 01 02 [15:23:26]Write to MH i2c: E2 08 00 74 68 80 0D 01 02 00 00 00 00 55 [15:23:26]Write i2c OK [15:23:26]MH_I2C_Read... [15:23:26]Read from MH i2c: E2 [15:23:26]MH_I2C_Read... [15:23:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:23:26]Read from MH i2c: E2 03 00 [15:23:26]MH_I2C_Read... [15:23:26]Read from MH i2c: E2 03 00 74 68 00 90 00 50 [15:23:26]RAPDU: 90 00 [15:23:26]wFMCommunicate OK [15:23:26]wFMCommunicate request_size=255 [15:23:26]MH_SAM_APDU [15:23: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 33 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FD 00 00 00 F4 03 04 00 F1 71 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 8D DD 02 00 35 04 06 00 C8 [15:23:26]Write to MH i2c: E2 02 01 75 68 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FD 00 00 00 F4 03 04 00 F1 71 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 8D DD 02 00 35 04 06 00 C8 00 00 BB [15:23:26]Write i2c OK [15:23:26]MH_I2C_Read... [15:23:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:23:26]Read from MH i2c: E2 [15:23:26]MH_I2C_Read... [15:23:26]Read from MH i2c: E2 03 00 [15:23:26]MH_I2C_Read... [15:23:26]Read from MH i2c: E2 03 00 75 68 00 90 00 51 [15:23:26]RAPDU: 90 00 [15:23:26]wFMCommunicate OK [15:23:26]wFMCommunicate request_size=10 [15:23:26]MH_SAM_APDU [15:23:26]CAPDU: 80 0D 02 02 05 E7 E7 E6 B2 2A [15:23:26]Write to MH i2c: E2 0D 00 76 68 80 0D 02 02 05 00 E7 E7 E6 B2 2A 00 00 F2 [15:23:26]Write i2c OK [15:23:26]MH_I2C_Read... [15:23:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:23:26]Read from MH i2c: E2 [15:23:26]MH_I2C_Read... [15:23:26]Read from MH i2c: E2 03 00 [15:23:26]MH_I2C_Read... [15:23:26]Read from MH i2c: E2 03 00 76 68 00 90 00 52 [15:23:26]RAPDU: 90 00 [15:23:26]wFMCommunicate OK [15:23:26]wFMCommunicate request_size=4 [15:23:26]MH_SAM_APDU [15:23:26]CAPDU: 80 0D 03 02 [15:23:26]Write to MH i2c: E2 08 00 77 68 80 0D 03 02 00 00 00 00 5A [15:23:26]Write i2c OK [15:23:26]MH_I2C_Read... [15:23:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:23:26]Read from MH i2c: E2 [15:23:26]MH_I2C_Read... [15:23:26]Read from MH i2c: E2 0B 00 [15:23:26]MH_I2C_Read... [15:23:26]Read from MH i2c: E2 0B 00 77 68 00 54 79 B7 45 3C D7 66 DB 90 00 78 [15:23:26]RAPDU: 54 79 B7 45 3C D7 66 DB 90 00 [15:23:26]wFMCommunicate OK [15:23:26]SAM_PROTO_SignData done [15:23:26]FM_MakeSignedData done [15:23:26]CreateOFDProtocolMessage [15:23:26]wFMCommunicate request_size=4 [15:23:26]MH_SAM_APDU [15:23:26]CAPDU: 80 11 00 00 [15:23:26]Write to MH i2c: E2 08 00 78 68 80 11 00 00 00 00 00 00 5A [15:23:26]Write i2c OK [15:23:26]MH_I2C_Read... [15:23:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:23:26]Read from MH i2c: E2 [15:23:26]MH_I2C_Read... [15:23:26]Read from MH i2c: E2 17 00 [15:23:26]MH_I2C_Read... [15:23:26]Read from MH i2c: E2 17 00 78 68 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 A8 [15:23:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [15:23:26]wFMCommunicate OK [15:23:26]CreateOFDProtocolMessage done [15:23:26]OFDSenderStorePacket 187789 [15:23:26]StoreOFDPacket docnum=187789 [15:23:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 8D A7 07 01 55 3D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FD 00 00 00 F4 03 04 00 F1 71 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 8D DD 02 00 35 04 06 00 C8 E7 E7 E6 B2 2A 54 79 B7 45 3C D7 66 DB [15:23:26]CheckFolder [15:23:26]dirname=/storage/ofd_packets [15:23:26]CheckFolder done [15:23:26]ProducePacketName [15:23:26]name=ofd_packets/00187789 [15:23:26]NVStorageSaveData ofd_packets/00187789 [15:23:26]File name is /storage/ofd_packets/00187789 [15:23:26]Write 301 bytes [15:23:26]NVStorageSaveData done [15:23:26]OFDSenderStorePacket done [15:23:26]KKMCreateOFDPacket done [15:23:26]NVStorageSaveData kkm_last_timestamp [15:23:26]File name is /storage/kkm_last_timestamp [15:23:26]Write 4 bytes [15:23:26]NVStorageSaveData done [15:23:26]ExternCall_PrintAddStr [15:23:26]wPrintStart [15:23:26]Write to MH i2c: 01 00 00 79 68 E1 [15:23:26]Write i2c OK [15:23:26]MH_I2C_Read... [15:23:26]Read from MH i2c: 01 [15:23:26]MH_I2C_Read... [15:23:26]Read from MH i2c: 01 07 00 [15:23:26]MH_I2C_Read... [15:23:26]Read from MH i2c: 01 07 00 79 68 00 00 00 00 00 FF 0F F6 [15:23:26]RasterBufferAndPrint [15:23:26]line Счет N : (1)209841 [15:23:26]line ИНН: 02508201610067 [15:23:26]line Контрольно-Кассовый Чек [15:23:26]line ПРОДАЖА [15:23:26]line ТРК (МРК, ГНК) : 12 [15:23:26]line Товар: 2710124130 [15:23:26]line Аи-92-К-3 [15:23:26]line 5.000 * 0.00 [15:23:26]line = 0.00 [15:23:26]line НДС 12% НСП 1% [15:23:26]line > о реализуемом товаре [15:23:26]line ИТОГО: 0.00 [15:23:26]line НСП 1% : 0.00 [15:23:26]line НДС 12% : 0.00 [15:23:26]line Наличными: 0.00 [15:23:26]line Безнал.: 0.00 [15:23:26]line Место: АЗС № 86 "Партнер Нефть" [15:23:26]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [15:23:26]line СНО: Общий режим [15:23:26]line Чек 253 21.10.2024 15:23 [15:23:26]line Смена: 460 ФФД: 1.0 [15:23:26]line ЗНМ: 0300000155 [15:23:26]line РНМ: 0000000000100030 [15:23:26]line Версия ККМ: 001 [15:23:26]line Талоны: Топливные Талоны [15:23:26]line 4868736 [15:23:26]line ФМ: 0000000000965340 [15:23:26]line ФД: 187789 [15:23:26]line ФПД: 220898353656362 [15:23:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T152329&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187789&fm=220898353656362&tin=02508201610067®Number=0000000000100030&sum=0 [15:23:26]written 0, free lines is 4095 [15:23:26]OFD Sender: Processing packet 187789 [packets to send 1062, broken 1061] [15:23:26]ProducePacketName [15:23:26]name=ofd_packets/00187789 [15:23:26]OFD Sender: To server: pG, [15:23:26]CommunicateWithHost lk.salyk.kg:30040 [15:23:26]ConnectInit lk.salyk.kg [15:23:27]Connected sock=10 [15:23:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 8D A7 07 01 55 3D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FD 00 00 00 F4 03 04 00 F1 71 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 8D DD 02 00 35 04 06 00 C8 E7 E7 E6 B2 2A 54 79 B7 45 3C D7 66 DB [15:23:27]Write to MH i2c: 01 00 00 A3 68 0B [15:23:27]Write i2c OK [15:23:27]MH_I2C_Read... [15:23:27]Read from MH i2c: 01 [15:23:27]MH_I2C_Read... [15:23:27]Read from MH i2c: 01 07 00 [15:23:27]MH_I2C_Read... [15:23:27]Read from MH i2c: 01 07 00 A3 68 00 00 00 00 00 7D 0C 9B [15:23:27]RasterBufferAndPrint [15:23:27]line [15:23:27]line [15:23:27]line [15:23:27]line [15:23:27]line [15:23:27]written 0, free lines is 3201 [15:23:27]MH_Cut [15:23:27]Write to MH i2c: D1 01 00 AA 68 01 E4 [15:23:27]Write i2c OK [15:23:27]MH_I2C_Read... [15:23:27]Read from MH i2c: D1 [15:23:27]MH_I2C_Read... [15:23:27]Read from MH i2c: D1 01 00 [15:23:27]MH_I2C_Read... [15:23:27]Read from MH i2c: D1 01 00 AA 68 00 E3 [15:23:27]Write to MH i2c: 01 00 00 AB 68 13 [15:23:27]Write i2c OK [15:23:27]MH_I2C_Read... [15:23:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 C4 09 47 00 DE 64 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 8D DD 02 00 F4 03 04 00 E1 1B 16 67 B6 04 01 00 00 1B B8 CF 8C 07 D2 66 E6 [15:23:27]CommunicateWithHost err = 0 [15:23:27]CheckOFDResponse [15:23:27]1017 (14) - 77093643461234 [15:23:27]1041 (16) - 0000000000965340 [15:23:27]1040 (4) - 187789 [15:23:27]1012 (4) - 21.10.2024 09:16 [15:23:27]1206 (1) - 0 [15:23:27]OFD Sender: Remove packet 187789 [15:23:27]ProducePacketName [15:23:27]name=ofd_packets/00187789 [15:23:27]NVStorageDeleteData [15:23:28]OFD Sender: No OFD packet to send [15:23:28]*** Cut start [15:23:28]*** Partial cut [15:23:28]*** CUTSNS_PIN = 1 [15:23:28]*** CUTSNS_PIN = 0 [15:23:28]*** Brake cut motor [15:23:29]Read from MH i2c: 01 [15:23:29]MH_I2C_Read... [15:23:29]*** Stop cut motor [15:23:29]*** Cut end [15:23:29]Read from MH i2c: 01 07 00 [15:23:29]MH_I2C_Read... [15:23:29]Read from MH i2c: 01 07 00 AB 68 00 00 00 00 00 FF 0F 28 [15:23:29]process_action close_receipt done [15:23:29]requested_data is exist [15:23:29]produce_requested_data [15:23:29]requested_item fm.sn is exist - process it [15:23:29]wFMCommunicate request_size=4 [15:23:29]MH_SAM_APDU [15:23:29]CAPDU: 80 11 00 00 [15:23:29]Write to MH i2c: E2 08 00 AC 68 80 11 00 00 00 00 00 00 8E [15:23:29]Write i2c OK [15:23:29]MH_I2C_Read... [15:23:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:23:29]Read from MH i2c: E2 [15:23:29]MH_I2C_Read... [15:23:29]Read from MH i2c: E2 17 00 [15:23:29]MH_I2C_Read... [15:23:29]Read from MH i2c: E2 17 00 AC 68 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 DC [15:23:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [15:23:29]wFMCommunicate OK [15:23:29]requested_item fd.num is exist - process it [15:23:29]SAM_PROTO_GetFieldsCounters [15:23:29]wFMCommunicate request_size=4 [15:23:29]MH_SAM_APDU [15:23:29]CAPDU: 80 13 00 00 [15:23:29]Write to MH i2c: E2 08 00 AD 68 80 13 00 00 00 00 00 00 91 [15:23:29]Write i2c OK [15:23:29]MH_I2C_Read... [15:23:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:23:29]Read from MH i2c: E2 [15:23:29]MH_I2C_Read... [15:23:29]Read from MH i2c: E2 62 00 [15:23:29]MH_I2C_Read... [15:23:29]Read from MH i2c: E2 62 00 AD 68 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 8D DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 FD 00 00 00 5E 04 04 00 FD 00 00 00 57 04 04 00 FE 00 00 00 19 04 04 00 00 00 00 00 90 00 C8 [15:23:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 8D DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 FD 00 00 00 5E 04 04 00 FD 00 00 00 57 04 04 00 FE 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:23:29]wFMCommunicate OK [15:23:29]SAM_PROTO_GetFieldsCounters done [15:23:29]requested_item shift.num is exist - process it [15:23:29]requested_item shift.opened is exist - process it [15:23:29]req_shift_opened [15:23:29]FM_GetShiftState [15:23:29]SAM_PROTO_GetShiftState [15:23:29]wFMCommunicate request_size=4 [15:23:29]MH_SAM_APDU [15:23:29]CAPDU: 80 13 01 00 [15:23:29]Write to MH i2c: E2 08 00 AE 68 80 13 01 00 00 00 00 00 93 [15:23:29]Write i2c OK [15:23:29]MH_I2C_Read... [15:23:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:23:29]Read from MH i2c: E2 [15:23:29]MH_I2C_Read... [15:23:29]Read from MH i2c: E2 0E 00 [15:23:29]MH_I2C_Read... [15:23:29]Read from MH i2c: E2 0E 00 AE 68 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 F2 [15:23:29]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [15:23:29]wFMCommunicate OK [15:23:29]SAM_PROTO_GetShiftState done [15:23:29]FM_GetShiftState done [15:23:29]req_shift_opened done [15:23:29]requested_item shift.open_date is exist - process it [15:23:29]req_shift_open_date [15:23:29]req_shift_open_date done [15:23:29]produce_requested_data done [15:23:29]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187789,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [15:23:29]process_action_free close_receipt [15:23:29]json_value_free [15:23:29]json_value_free done [15:23:29]process_json_proto returns [15:23:29]Send response to host [15:23:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187789,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [15:23:29]free response buf [15:23:29]execute_script done [15:23:29]execute_script returns [15:23:29]free content buf [15:23:29]Sock 9.Close socket [15:23:29]Sock 9.Thread stoped [15:23:33]OFD Sender: No OFD packet to send [15:23:38]OFD Sender: No OFD packet to send [15:23:43]OFD Sender: No OFD packet to send [15:23:48]OFD Sender: No OFD packet to send [15:23:53]OFD Sender: No OFD packet to send [15:23:58]OFD Sender: No OFD packet to send [15:24:03]OFD Sender: No OFD packet to send [15:24:08]OFD Sender: No OFD packet to send [15:24:13]OFD Sender: No OFD packet to send [15:24:18]OFD Sender: No OFD packet to send [15:24:23]OFD Sender: No OFD packet to send [15:24:28]OFD Sender: No OFD packet to send [15:24:33]OFD Sender: No OFD packet to send [15:24:38]OFD Sender: No OFD packet to send [15:24:43]OFD Sender: No OFD packet to send [15:24:48]OFD Sender: No OFD packet to send [15:24:53]OFD Sender: No OFD packet to send [15:24:58]OFD Sender: No OFD packet to send [15:25:03]OFD Sender: No OFD packet to send [15:25:08]OFD Sender: No OFD packet to send [15:25:13]OFD Sender: No OFD packet to send [15:25:18]OFD Sender: No OFD packet to send [15:25:23]OFD Sender: No OFD packet to send [15:25:28]OFD Sender: No OFD packet to send [15:25:33]OFD Sender: No OFD packet to send [15:25:38]OFD Sender: No OFD packet to send [15:25:43]OFD Sender: No OFD packet to send [15:25:48]OFD Sender: No OFD packet to send [15:25:53]OFD Sender: No OFD packet to send [15:25:58]OFD Sender: No OFD packet to send [15:26:03]OFD Sender: No OFD packet to send [15:26:08]OFD Sender: No OFD packet to send [15:26:13]OFD Sender: No OFD packet to send [15:26:18]OFD Sender: No OFD packet to send [15:26:23]OFD Sender: No OFD packet to send [15:26:24]accept exits with 8 [15:26:24]New connection [15:26:24]New thread 3067157860 created [15:26:24]Thread 3067014500 joined [15:26:24]Waiting for new connection... [15:26:24] Sock 8.Parse request [15:26:24]Sock 8.Check first char [15:26:24]Sock 8.First char is OK [15:26:24]request: POST /json_proto HTTP/1.0 [15:26:24]Method: POST [15:26:24]URL: /json_proto [15:26:24]Method is POST - this is cgi request [15:26:24]url: /json_proto [15:26:24]query_string will be loaded in cgi processing [15:26:24]execute_cgi json_proto POST (null) [15:26:24]execute_cgi path=json_proto method=POST [15:26:24]POST find Content-Length [15:26:24]Host: 172.17.42.131:8080 [15:26:24]Content-Length: 688 [15:26:24]Content-Type: application/json [15:26:24] [15:26:24]POST finish read [15:26:24]Found Content-Length = 688 [15:26:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209843", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 25.910, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:26:24]execute_script... [15:26: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)209843", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 25.910, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:26:24]POST & json_proto [15:26:24]process_json_proto [15:26:24]json parsed OK: [15:26:24]protocol is kg_v1.0 [15:26:24]action value=close_receipt [15:26:24]process_action close_receipt [15:26:24]cmd_close_receipt [15:26:24]MH_GetDate [15:26:24]Write to MH i2c: F0 00 00 AF 68 06 [15:26:24]Write i2c OK [15:26:24]MH_I2C_Read... [15:26:24]Read from MH i2c: F0 [15:26:24]MH_I2C_Read... [15:26:24]Read from MH i2c: F0 09 00 [15:26:24]MH_I2C_Read... [15:26:24]Read from MH i2c: F0 09 00 AF 68 00 A4 72 16 67 A0 18 CA 66 8A [15:26:24]GetLastDocTimeStamp 1729524209 [15:26:24]current date 1729524388 [15:26:24]FM_GetShiftState [15:26:24]SAM_PROTO_GetShiftState [15:26:24]wFMCommunicate request_size=4 [15:26:24]MH_SAM_APDU [15:26:24]CAPDU: 80 13 01 00 [15:26:24]Write to MH i2c: E2 08 00 B0 68 80 13 01 00 00 00 00 00 95 [15:26:24]Write i2c OK [15:26:24]MH_I2C_Read... [15:26:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:26:24]Read from MH i2c: E2 [15:26:24]MH_I2C_Read... [15:26:24]Read from MH i2c: E2 0E 00 [15:26:24]MH_I2C_Read... [15:26:24]Read from MH i2c: E2 0E 00 B0 68 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 F4 [15:26:24]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [15:26:24]wFMCommunicate OK [15:26:24]SAM_PROTO_GetShiftState done [15:26:24]FM_GetShiftState done [15:26:24]opened in 1729469754 [15:26:24]opened+sec_in_day 1729556154 [15:26:24]quantity*price = 200025 [15:26:24]sum+1 = 200026 [15:26:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 254 21.10.2024 15:26 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 187790 ФПД: 74797592696156 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T152628&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187790&fm=74797592696156&tin=02508201610067®Number=0000000000100030&sum=200000 [15:26:25]StoreToDocumentArchive [15:26:25]shift 460 fd 187790 [15:26:25]save to /storage/0460/doc_00187790 [15:26:25]save last doc name /storage/0460/doc_00187790 to /storage/kkm_last_doc_name [15:26:25]save OK [15:26:25]Clear old archive folders... [15:26:25]ProcessDocumentItem done err = 0, tmpTLVsize=257 [15:26:25]tlvbuf is 0112F650 [15:26:25]SAM_PROTO_ClearQueue [15:26:25]wFMCommunicate request_size=4 [15:26:25]MH_SAM_APDU [15:26:25]CAPDU: 80 09 00 00 [15:26:25]Write to MH i2c: E2 08 00 BD 68 80 09 00 00 00 00 00 00 97 [15:26:25]Write i2c OK [15:26:25]MH_I2C_Read... [15:26:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:26:25]Read from MH i2c: E2 [15:26:25]MH_I2C_Read... [15:26:25]Read from MH i2c: E2 03 00 [15:26:25]MH_I2C_Read... [15:26:25]Read from MH i2c: E2 03 00 BD 68 00 90 00 99 [15:26:25]RAPDU: 90 00 [15:26:25]wFMCommunicate OK [15:26:25]SAM_PROTO_ClearQueue done [15:26:25]KKMCreateOFDPacket [15:26:25]OFDProtocolAddRootSTLVToBuf [15:26:25]FM_MakeSignedData [15:26:25]FM_MakeSignedData [15:26:25]SAM_PROTO_SignData [15:26:25]wFMCommunicate request_size=4 [15:26:25]MH_SAM_APDU [15:26:25]CAPDU: 80 0D 01 02 [15:26:25]Write to MH i2c: E2 08 00 BE 68 80 0D 01 02 00 00 00 00 9F [15:26:25]Write i2c OK [15:26:25]MH_I2C_Read... [15:26:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:26:25]Read from MH i2c: E2 [15:26:25]MH_I2C_Read... [15:26:25]Read from MH i2c: E2 03 00 [15:26:25]MH_I2C_Read... [15:26:25]Read from MH i2c: E2 03 00 BE 68 00 90 00 9A [15:26:25]RAPDU: 90 00 [15:26:25]wFMCommunicate OK [15:26:25]wFMCommunicate request_size=255 [15:26:25]MH_SAM_APDU [15:26:25]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 36 65 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FE 00 00 00 F4 03 04 00 A4 72 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 8E DD 02 [15:26:25]Write to MH i2c: E2 02 01 BF 68 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 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 36 65 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FE 00 00 00 F4 03 04 00 A4 72 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 8E DD 02 00 00 0B [15:26:25]Write i2c OK [15:26:25]MH_I2C_Read... [15:26:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:26:25]Read from MH i2c: E2 [15:26:25]MH_I2C_Read... [15:26:25]Read from MH i2c: E2 03 00 [15:26:25]MH_I2C_Read... [15:26:25]Read from MH i2c: E2 03 00 BF 68 00 90 00 9B [15:26:25]RAPDU: 90 00 [15:26:25]wFMCommunicate OK [15:26:25]wFMCommunicate request_size=16 [15:26:25]MH_SAM_APDU [15:26:25]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 44 07 2B F1 55 5C [15:26:25]Write to MH i2c: E2 13 00 C0 68 80 0D 02 02 0B 00 00 35 04 06 00 44 07 2B F1 55 5C 00 00 0F [15:26:25]Write i2c OK [15:26:25]MH_I2C_Read... [15:26:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:26:25]Read from MH i2c: E2 [15:26:25]MH_I2C_Read... [15:26:25]Read from MH i2c: E2 03 00 [15:26:25]MH_I2C_Read... [15:26:25]Read from MH i2c: E2 03 00 C0 68 00 90 00 9C [15:26:25]RAPDU: 90 00 [15:26:25]wFMCommunicate OK [15:26:25]wFMCommunicate request_size=4 [15:26:25]MH_SAM_APDU [15:26:25]CAPDU: 80 0D 03 02 [15:26:25]Write to MH i2c: E2 08 00 C1 68 80 0D 03 02 00 00 00 00 A4 [15:26:25]Write i2c OK [15:26:25]MH_I2C_Read... [15:26:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:26:25]Read from MH i2c: E2 [15:26:25]MH_I2C_Read... [15:26:25]Read from MH i2c: E2 0B 00 [15:26:25]MH_I2C_Read... [15:26:25]Read from MH i2c: E2 0B 00 C1 68 00 47 C6 C8 BB 39 83 21 58 90 00 6A [15:26:25]RAPDU: 47 C6 C8 BB 39 83 21 58 90 00 [15:26:25]wFMCommunicate OK [15:26:25]SAM_PROTO_SignData done [15:26:25]FM_MakeSignedData done [15:26:25]CreateOFDProtocolMessage [15:26:25]wFMCommunicate request_size=4 [15:26:25]MH_SAM_APDU [15:26:25]CAPDU: 80 11 00 00 [15:26:25]Write to MH i2c: E2 08 00 C2 68 80 11 00 00 00 00 00 00 A4 [15:26:25]Write i2c OK [15:26:25]MH_I2C_Read... [15:26:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:26:25]Read from MH i2c: E2 [15:26:25]MH_I2C_Read... [15:26:25]Read from MH i2c: E2 17 00 [15:26:25]MH_I2C_Read... [15:26:25]Read from MH i2c: E2 17 00 C2 68 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 F2 [15:26:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [15:26:25]wFMCommunicate OK [15:26:25]CreateOFDProtocolMessage done [15:26:25]OFDSenderStorePacket 187790 [15:26:25]StoreOFDPacket docnum=187790 [15:26:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 A2 9E 0D 01 C4 E0 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 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 36 65 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FE 00 00 00 F4 03 04 00 A4 72 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 8E DD 02 00 35 04 06 00 44 07 2B F1 55 5C 47 C6 C8 BB 39 83 21 58 [15:26:25]CheckFolder [15:26:25]dirname=/storage/ofd_packets [15:26:25]CheckFolder done [15:26:25]ProducePacketName [15:26:25]name=ofd_packets/00187790 [15:26:25]NVStorageSaveData ofd_packets/00187790 [15:26:25]File name is /storage/ofd_packets/00187790 [15:26:25]Write 307 bytes [15:26:25]NVStorageSaveData done [15:26:25]OFDSenderStorePacket done [15:26:25]KKMCreateOFDPacket done [15:26:25]NVStorageSaveData kkm_last_timestamp [15:26:25]File name is /storage/kkm_last_timestamp [15:26:25]Write 4 bytes [15:26:25]NVStorageSaveData done [15:26:25]ExternCall_PrintAddStr [15:26:25]wPrintStart [15:26:25]Write to MH i2c: 01 00 00 C3 68 2B [15:26:25]Write i2c OK [15:26:25]MH_I2C_Read... [15:26:25]Read from MH i2c: 01 [15:26:25]MH_I2C_Read... [15:26:25]Read from MH i2c: 01 07 00 [15:26:25]MH_I2C_Read... [15:26:25]Read from MH i2c: 01 07 00 C3 68 00 00 00 00 00 FF 0F 40 [15:26:25]RasterBufferAndPrint [15:26:25]line Счет N : (1)209843 [15:26:25]line ИНН: 02508201610067 [15:26:25]line Контрольно-Кассовый Чек [15:26:25]line ПРОДАЖА [15:26:25]line ТРК (МРК, ГНК) : 21 [15:26:25]line Товар: 2710194210 [15:26:25]line D-ENERGY ДТ-К-5 [15:26:25]line 25.910 * 77.20 [15:26:25]line = 2000.25 [15:26:25]line НДС 12% НСП 1% [15:26:25]line > о реализуемом товаре [15:26:25]line ОКРУГЛЕНИЕ: -0.25 [15:26:25]line ИТОГО: 2000.00 [15:26:25]line Внесено: 2000.00 [15:26:25]line СДАЧА: 0.00 [15:26:25]line НСП 1% : 17.70 [15:26:25]line НДС 12% : 212.42 [15:26:25]line Наличными: 2000.00 [15:26:25]line Безнал.: 0.00 [15:26:25]line Место: АЗС № 86 "Партнер Нефть" [15:26:25]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [15:26:25]line СНО: Общий режим [15:26:25]line Чек 254 21.10.2024 15:26 [15:26:25]line Смена: 460 ФФД: 1.0 [15:26:25]line ЗНМ: 0300000155 [15:26:25]line РНМ: 0000000000100030 [15:26:25]line Версия ККМ: 001 [15:26:25]line ФМ: 0000000000965340 [15:26:25]line ФД: 187790 [15:26:25]line ФПД: 74797592696156 [15:26:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T152628&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187790&fm=74797592696156&tin=02508201610067®Number=0000000000100030&sum=200000 [15:26:25]written 0, free lines is 4095 [15:26:26]OFD Sender: Processing packet 187790 [packets to send 1062, broken 1061] [15:26:26]ProducePacketName [15:26:26]name=ofd_packets/00187790 [15:26:26]OFD Sender: To server: pG, [15:26:26]CommunicateWithHost lk.salyk.kg:30040 [15:26:26]ConnectInit lk.salyk.kg [15:26:26]Connected sock=11 [15:26:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 A2 9E 0D 01 C4 E0 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 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 36 65 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FE 00 00 00 F4 03 04 00 A4 72 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 8E DD 02 00 35 04 06 00 44 07 2B F1 55 5C 47 C6 C8 BB 39 83 21 58 [15:26:26]Write to MH i2c: 01 00 00 EE 68 56 [15:26:26]Write i2c OK [15:26:26]MH_I2C_Read... [15:26:26]Read from MH i2c: 01 [15:26:26]MH_I2C_Read... [15:26:26]Read from MH i2c: 01 07 00 [15:26:26]MH_I2C_Read... [15:26:26]Read from MH i2c: 01 07 00 EE 68 00 00 00 00 00 61 0C CA [15:26:26]RasterBufferAndPrint [15:26:26]line [15:26:26]line [15:26:26]line [15:26:26]line [15:26:26]line [15:26:26]written 0, free lines is 3172 [15:26:26]MH_Cut [15:26:26]Write to MH i2c: D1 01 00 F5 68 01 2F [15:26:26]Write i2c OK [15:26:26]MH_I2C_Read... [15:26:26]Read from MH i2c: D1 [15:26:26]MH_I2C_Read... [15:26:26]Read from MH i2c: D1 01 00 [15:26:26]MH_I2C_Read... [15:26:26]Read from MH i2c: D1 01 00 F5 68 00 2E [15:26:26]Write to MH i2c: 01 00 00 F6 68 5E [15:26:26]Write i2c OK [15:26:26]MH_I2C_Read... [15:26:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 57 84 47 00 CC B7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 8E DD 02 00 F4 03 04 00 94 1C 16 67 B6 04 01 00 00 DD 41 FB 13 DE B5 04 ED [15:26:26]CommunicateWithHost err = 0 [15:26:26]CheckOFDResponse [15:26:26]1017 (14) - 77093643461234 [15:26:26]1041 (16) - 0000000000965340 [15:26:26]1040 (4) - 187790 [15:26:26]1012 (4) - 21.10.2024 09:19 [15:26:26]1206 (1) - 0 [15:26:26]OFD Sender: Remove packet 187790 [15:26:26]ProducePacketName [15:26:26]name=ofd_packets/00187790 [15:26:26]NVStorageDeleteData [15:26:27]OFD Sender: No OFD packet to send [15:26:27]*** Cut start [15:26:27]*** Partial cut [15:26:27]*** CUTSNS_PIN = 1 [15:26:27]*** CUTSNS_PIN = 0 [15:26:27]*** Brake cut motor [15:26:28]Read from MH i2c: 01 [15:26:28]MH_I2C_Read... [15:26:28]*** Stop cut motor [15:26:28]*** Cut end [15:26:28]Read from MH i2c: 01 07 00 [15:26:28]MH_I2C_Read... [15:26:28]Read from MH i2c: 01 07 00 F6 68 00 00 00 00 00 FF 0F 73 [15:26:28]process_action close_receipt done [15:26:28]requested_data is exist [15:26:28]produce_requested_data [15:26:28]requested_item fm.sn is exist - process it [15:26:28]wFMCommunicate request_size=4 [15:26:28]MH_SAM_APDU [15:26:28]CAPDU: 80 11 00 00 [15:26:28]Write to MH i2c: E2 08 00 F7 68 80 11 00 00 00 00 00 00 D9 [15:26:28]Write i2c OK [15:26:28]MH_I2C_Read... [15:26:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:26:28]Read from MH i2c: E2 [15:26:28]MH_I2C_Read... [15:26:28]Read from MH i2c: E2 17 00 [15:26:28]MH_I2C_Read... [15:26:28]Read from MH i2c: E2 17 00 F7 68 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 27 [15:26:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [15:26:28]wFMCommunicate OK [15:26:28]requested_item fd.num is exist - process it [15:26:28]SAM_PROTO_GetFieldsCounters [15:26:28]wFMCommunicate request_size=4 [15:26:28]MH_SAM_APDU [15:26:28]CAPDU: 80 13 00 00 [15:26:28]Write to MH i2c: E2 08 00 F8 68 80 13 00 00 00 00 00 00 DC [15:26:28]Write i2c OK [15:26:28]MH_I2C_Read... [15:26:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:26:28]Read from MH i2c: E2 [15:26:28]MH_I2C_Read... [15:26:28]Read from MH i2c: E2 62 00 [15:26:28]MH_I2C_Read... [15:26:28]Read from MH i2c: E2 62 00 F8 68 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 8E DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 FE 00 00 00 5E 04 04 00 FE 00 00 00 57 04 04 00 FF 00 00 00 19 04 04 00 00 00 00 00 90 00 17 [15:26:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 8E DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 FE 00 00 00 5E 04 04 00 FE 00 00 00 57 04 04 00 FF 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:26:28]wFMCommunicate OK [15:26:28]SAM_PROTO_GetFieldsCounters done [15:26:28]requested_item shift.num is exist - process it [15:26:28]requested_item shift.opened is exist - process it [15:26:28]req_shift_opened [15:26:28]FM_GetShiftState [15:26:28]SAM_PROTO_GetShiftState [15:26:28]wFMCommunicate request_size=4 [15:26:28]MH_SAM_APDU [15:26:28]CAPDU: 80 13 01 00 [15:26:28]Write to MH i2c: E2 08 00 F9 68 80 13 01 00 00 00 00 00 DE [15:26:28]Write i2c OK [15:26:28]MH_I2C_Read... [15:26:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:26:28]Read from MH i2c: E2 [15:26:28]MH_I2C_Read... [15:26:28]Read from MH i2c: E2 0E 00 [15:26:28]MH_I2C_Read... [15:26:28]Read from MH i2c: E2 0E 00 F9 68 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 3D [15:26:28]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [15:26:28]wFMCommunicate OK [15:26:28]SAM_PROTO_GetShiftState done [15:26:28]FM_GetShiftState done [15:26:28]req_shift_opened done [15:26:28]requested_item shift.open_date is exist - process it [15:26:28]req_shift_open_date [15:26:28]req_shift_open_date done [15:26:28]produce_requested_data done [15:26:28]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187790,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [15:26:28]process_action_free close_receipt [15:26:28]json_value_free [15:26:28]json_value_free done [15:26:28]process_json_proto returns [15:26:28]Send response to host [15:26:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187790,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [15:26:28]free response buf [15:26:28]execute_script done [15:26:28]execute_script returns [15:26:28]free content buf [15:26:28]Sock 8.Close socket [15:26:28]Sock 8.Thread stoped [15:26:32]OFD Sender: No OFD packet to send [15:26:37]OFD Sender: No OFD packet to send [15:26:42]OFD Sender: No OFD packet to send [15:26:47]OFD Sender: No OFD packet to send [15:26:52]OFD Sender: No OFD packet to send [15:26:57]OFD Sender: No OFD packet to send [15:27:02]OFD Sender: No OFD packet to send [15:27:07]OFD Sender: No OFD packet to send [15:27:12]OFD Sender: No OFD packet to send [15:27:17]OFD Sender: No OFD packet to send [15:27:22]OFD Sender: No OFD packet to send [15:27:27]OFD Sender: No OFD packet to send [15:27:32]OFD Sender: No OFD packet to send [15:27:37]OFD Sender: No OFD packet to send [15:27:42]OFD Sender: No OFD packet to send [15:27:47]OFD Sender: No OFD packet to send [15:27:52]OFD Sender: No OFD packet to send [15:27:54]accept exits with 9 [15:27:54]New connection [15:27:54]New thread 3067014500 created [15:27:54]Thread 3067157860 joined [15:27:54]Waiting for new connection... [15:27:54] Sock 9.Parse request [15:27:54]Sock 9.Check first char [15:27:54]Sock 9.First char is OK [15:27:54]request: POST /json_proto HTTP/1.0 [15:27:54]Method: POST [15:27:54]URL: /json_proto [15:27:54]Method is POST - this is cgi request [15:27:54]url: /json_proto [15:27:54]query_string will be loaded in cgi processing [15:27:54]execute_cgi json_proto POST (null) [15:27:54]execute_cgi path=json_proto method=POST [15:27:54]POST find Content-Length [15:27:54]Host: 172.17.42.131:8080 [15:27:54]Content-Length: 801 [15:27:54]Content-Type: application/json [15:27:54] [15:27:54]POST finish read [15:27:54]Found Content-Length = 801 [15:27:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209842", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 11.960, "sum" : 800.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 800.12 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:27:54]execute_script... [15:27: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)209842", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 11.960, "sum" : 800.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 800.12 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:27:54]POST & json_proto [15:27:54]process_json_proto [15:27:54]json parsed OK: [15:27:54]protocol is kg_v1.0 [15:27:54]action value=close_receipt [15:27:54]process_action close_receipt [15:27:54]cmd_close_receipt [15:27:54]MH_GetDate [15:27:54]Write to MH i2c: F0 00 00 FA 68 51 [15:27:54]Write i2c OK [15:27:54]MH_I2C_Read... [15:27:54]Read from MH i2c: F0 [15:27:54]MH_I2C_Read... [15:27:54]Read from MH i2c: F0 09 00 [15:27:54]MH_I2C_Read... [15:27:54]Read from MH i2c: F0 09 00 FA 68 00 FE 72 16 67 A0 18 CA 66 2F [15:27:54]GetLastDocTimeStamp 1729524388 [15:27:54]current date 1729524478 [15:27:54]FM_GetShiftState [15:27:54]SAM_PROTO_GetShiftState [15:27:54]wFMCommunicate request_size=4 [15:27:54]MH_SAM_APDU [15:27:54]CAPDU: 80 13 01 00 [15:27:54]Write to MH i2c: E2 08 00 FB 68 80 13 01 00 00 00 00 00 E0 [15:27:54]Write i2c OK [15:27:54]MH_I2C_Read... [15:27:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:27:54]Read from MH i2c: E2 [15:27:54]MH_I2C_Read... [15:27:54]Read from MH i2c: E2 0E 00 [15:27:54]MH_I2C_Read... [15:27:54]Read from MH i2c: E2 0E 00 FB 68 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 3F [15:27:54]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [15:27:54]wFMCommunicate OK [15:27:54]SAM_PROTO_GetShiftState done [15:27:54]FM_GetShiftState done [15:27:54]opened in 1729469754 [15:27:54]opened+sec_in_day 1729556154 [15:27:54]quantity*price = 80012 [15:27:54]sum+1 = 80013 [15:27:54]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 800.12 НСП 1% : 7.08 НДС 12% : 84.97 Наличными: 0.00 Безнал.: 800.12 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 255 21.10.2024 15:27 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000965340 ФД: 187791 ФПД: 102869578079554 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T152758&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187791&fm=102869578079554&tin=02508201610067®Number=0000000000100030&sum=80012 [15:27:55]StoreToDocumentArchive [15:27:55]shift 460 fd 187791 [15:27:55]save to /storage/0460/doc_00187791 [15:27:55]save last doc name /storage/0460/doc_00187791 to /storage/kkm_last_doc_name [15:27:55]save OK [15:27:55]Clear old archive folders... [15:27:55]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:27:55]tlvbuf is 0109A260 [15:27:55]SAM_PROTO_ClearQueue [15:27:55]wFMCommunicate request_size=4 [15:27:55]MH_SAM_APDU [15:27:55]CAPDU: 80 09 00 00 [15:27:55]Write to MH i2c: E2 08 00 08 69 80 09 00 00 00 00 00 00 E3 [15:27:55]Write i2c OK [15:27:55]MH_I2C_Read... [15:27:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:27:55]Read from MH i2c: E2 [15:27:55]MH_I2C_Read... [15:27:55]Read from MH i2c: E2 03 00 [15:27:55]MH_I2C_Read... [15:27:55]Read from MH i2c: E2 03 00 08 69 00 90 00 E5 [15:27:55]RAPDU: 90 00 [15:27:55]wFMCommunicate OK [15:27:55]SAM_PROTO_ClearQueue done [15:27:55]KKMCreateOFDPacket [15:27:55]OFDProtocolAddRootSTLVToBuf [15:27:55]FM_MakeSignedData [15:27:55]FM_MakeSignedData [15:27:55]SAM_PROTO_SignData [15:27:55]wFMCommunicate request_size=4 [15:27:55]MH_SAM_APDU [15:27:55]CAPDU: 80 0D 01 02 [15:27:55]Write to MH i2c: E2 08 00 09 69 80 0D 01 02 00 00 00 00 EB [15:27:55]Write i2c OK [15:27:55]MH_I2C_Read... [15:27:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:27:55]Read from MH i2c: E2 [15:27:55]MH_I2C_Read... [15:27:55]Read from MH i2c: E2 03 00 [15:27:55]MH_I2C_Read... [15:27:55]Read from MH i2c: E2 03 00 09 69 00 90 00 E6 [15:27:55]RAPDU: 90 00 [15:27:55]wFMCommunicate OK [15:27:55]wFMCommunicate request_size=255 [15:27:55]MH_SAM_APDU [15:27: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 33 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8C 38 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 FF 00 00 00 F4 03 04 00 FE 72 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 8F DD 02 00 35 04 06 00 5D [15:27:55]Write to MH i2c: E2 02 01 0A 69 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8C 38 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 FF 00 00 00 F4 03 04 00 FE 72 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 8F DD 02 00 35 04 06 00 5D 00 00 E6 [15:27:55]Write i2c OK [15:27:55]MH_I2C_Read... [15:27:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:27:55]Read from MH i2c: E2 [15:27:55]MH_I2C_Read... [15:27:55]Read from MH i2c: E2 03 00 [15:27:55]MH_I2C_Read... [15:27:55]Read from MH i2c: E2 03 00 0A 69 00 90 00 E7 [15:27:55]RAPDU: 90 00 [15:27:55]wFMCommunicate OK [15:27:55]wFMCommunicate request_size=10 [15:27:55]MH_SAM_APDU [15:27:55]CAPDU: 80 0D 02 02 05 8F 30 A8 DD 42 [15:27:55]Write to MH i2c: E2 0D 00 0B 69 80 0D 02 02 05 00 8F 30 A8 DD 42 00 00 7E [15:27:55]Write i2c OK [15:27:55]MH_I2C_Read... [15:27:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:27:55]Read from MH i2c: E2 [15:27:55]MH_I2C_Read... [15:27:55]Read from MH i2c: E2 03 00 [15:27:55]MH_I2C_Read... [15:27:55]Read from MH i2c: E2 03 00 0B 69 00 90 00 E8 [15:27:55]RAPDU: 90 00 [15:27:55]wFMCommunicate OK [15:27:55]wFMCommunicate request_size=4 [15:27:55]MH_SAM_APDU [15:27:55]CAPDU: 80 0D 03 02 [15:27:55]Write to MH i2c: E2 08 00 0C 69 80 0D 03 02 00 00 00 00 F0 [15:27:55]Write i2c OK [15:27:55]MH_I2C_Read... [15:27:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:27:55]Read from MH i2c: E2 [15:27:55]MH_I2C_Read... [15:27:55]Read from MH i2c: E2 0B 00 [15:27:55]MH_I2C_Read... [15:27:55]Read from MH i2c: E2 0B 00 0C 69 00 51 5C 40 3B C8 33 64 59 90 00 D1 [15:27:55]RAPDU: 51 5C 40 3B C8 33 64 59 90 00 [15:27:55]wFMCommunicate OK [15:27:55]SAM_PROTO_SignData done [15:27:55]FM_MakeSignedData done [15:27:55]CreateOFDProtocolMessage [15:27:55]wFMCommunicate request_size=4 [15:27:55]MH_SAM_APDU [15:27:55]CAPDU: 80 11 00 00 [15:27:55]Write to MH i2c: E2 08 00 0D 69 80 11 00 00 00 00 00 00 F0 [15:27:55]Write i2c OK [15:27:55]MH_I2C_Read... [15:27:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:27:55]Read from MH i2c: E2 [15:27:55]MH_I2C_Read... [15:27:55]Read from MH i2c: E2 17 00 [15:27:55]MH_I2C_Read... [15:27:55]Read from MH i2c: E2 17 00 0D 69 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 3E [15:27:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [15:27:55]wFMCommunicate OK [15:27:55]CreateOFDProtocolMessage done [15:27:55]OFDSenderStorePacket 187791 [15:27:55]StoreOFDPacket docnum=187791 [15:27:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 59 57 07 01 CB 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 33 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8C 38 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 FF 00 00 00 F4 03 04 00 FE 72 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 8F DD 02 00 35 04 06 00 5D 8F 30 A8 DD 42 51 5C 40 3B C8 33 64 59 [15:27:55]CheckFolder [15:27:55]dirname=/storage/ofd_packets [15:27:55]CheckFolder done [15:27:55]ProducePacketName [15:27:55]name=ofd_packets/00187791 [15:27:55]NVStorageSaveData ofd_packets/00187791 [15:27:55]File name is /storage/ofd_packets/00187791 [15:27:55]Write 301 bytes [15:27:55]NVStorageSaveData done [15:27:55]OFDSenderStorePacket done [15:27:55]KKMCreateOFDPacket done [15:27:55]NVStorageSaveData kkm_last_timestamp [15:27:55]File name is /storage/kkm_last_timestamp [15:27:55]Write 4 bytes [15:27:55]NVStorageSaveData done [15:27:55]ExternCall_PrintAddStr [15:27:55]wPrintStart [15:27:55]Write to MH i2c: 01 00 00 0E 69 77 [15:27:55]Write i2c OK [15:27:55]MH_I2C_Read... [15:27:55]Read from MH i2c: 01 [15:27:55]MH_I2C_Read... [15:27:55]Read from MH i2c: 01 07 00 [15:27:55]MH_I2C_Read... [15:27:55]Read from MH i2c: 01 07 00 0E 69 00 00 00 00 00 FF 0F 8C [15:27:55]RasterBufferAndPrint [15:27:55]line Счет N : (1)209842 [15:27:55]line ИНН: 02508201610067 [15:27:55]line Контрольно-Кассовый Чек [15:27:55]line ПРОДАЖА [15:27:55]line ТРК (МРК, ГНК) : 12 [15:27:55]line Товар: 2710124130 [15:27:55]line Аи-92-К-3 [15:27:55]line 11.960 * 66.90 [15:27:55]line = 800.12 [15:27:55]line НДС 12% НСП 1% [15:27:55]line > о реализуемом товаре [15:27:55]line ИТОГО: 800.12 [15:27:55]line НСП 1% : 7.08 [15:27:55]line НДС 12% : 84.97 [15:27:55]line Наличными: 0.00 [15:27:55]line Безнал.: 800.12 [15:27:55]line Место: АЗС № 86 "Партнер Нефть" [15:27:55]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [15:27:55]line СНО: Общий режим [15:27:55]line Чек 255 21.10.2024 15:27 [15:27:55]line Смена: 460 ФФД: 1.0 [15:27:55]line ЗНМ: 0300000155 [15:27:55]line РНМ: 0000000000100030 [15:27:55]line Версия ККМ: 001 [15:27:55]line Платежная система: O! деньги [15:27:55]line ФМ: 0000000000965340 [15:27:55]line ФД: 187791 [15:27:55]line ФПД: 102869578079554 [15:27:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T152758&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187791&fm=102869578079554&tin=02508201610067®Number=0000000000100030&sum=80012 [15:27:56]OFD Sender: Processing packet 187791 [packets to send 1062, broken 1061] [15:27:56]ProducePacketName [15:27:56]name=ofd_packets/00187791 [15:27:56]OFD Sender: To server: pG, [15:27:56]CommunicateWithHost lk.salyk.kg:30040 [15:27:56]ConnectInit lk.salyk.kg [15:27:56]written 0, free lines is 4095 [15:27:56]Connected sock=10 [15:27:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 59 57 07 01 CB 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 33 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8C 38 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 FF 00 00 00 F4 03 04 00 FE 72 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 8F DD 02 00 35 04 06 00 5D 8F 30 A8 DD 42 51 5C 40 3B C8 33 64 59 [15:27:56]Write to MH i2c: 01 00 00 38 69 A1 [15:27:56]Write i2c OK [15:27:56]MH_I2C_Read... [15:27:56]Read from MH i2c: 01 [15:27:56]MH_I2C_Read... [15:27:56]Read from MH i2c: 01 07 00 [15:27:56]MH_I2C_Read... [15:27:56]Read from MH i2c: 01 07 00 38 69 00 00 00 00 00 79 0C 2D [15:27:56]RasterBufferAndPrint [15:27:56]line [15:27:56]line [15:27:56]line [15:27:56]line [15:27:56]line [15:27:56]written 0, free lines is 3197 [15:27:56]MH_Cut [15:27:56]Write to MH i2c: D1 01 00 3F 69 01 7A [15:27:56]Write i2c OK [15:27:56]MH_I2C_Read... [15:27:56]Read from MH i2c: D1 [15:27:56]MH_I2C_Read... [15:27:56]Read from MH i2c: D1 01 00 [15:27:56]MH_I2C_Read... [15:27:56]Read from MH i2c: D1 01 00 3F 69 00 79 [15:27:56]Write to MH i2c: 01 00 00 40 69 A9 [15:27:56]Write i2c OK [15:27:56]MH_I2C_Read... [15:27:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 42 29 47 00 D4 55 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 8F DD 02 00 F4 03 04 00 EE 1C 16 67 B6 04 01 00 00 DE F6 45 9B 3B E7 64 66 [15:27:56]CommunicateWithHost err = 0 [15:27:56]CheckOFDResponse [15:27:56]1017 (14) - 77093643461234 [15:27:56]1041 (16) - 0000000000965340 [15:27:56]1040 (4) - 187791 [15:27:56]1012 (4) - 21.10.2024 09:20 [15:27:56]1206 (1) - 0 [15:27:56]OFD Sender: Remove packet 187791 [15:27:56]ProducePacketName [15:27:56]name=ofd_packets/00187791 [15:27:56]NVStorageDeleteData [15:27:57]OFD Sender: No OFD packet to send [15:27:57]*** Cut start [15:27:57]*** Partial cut [15:27:57]*** CUTSNS_PIN = 1 [15:27:57]*** CUTSNS_PIN = 0 [15:27:58]*** Brake cut motor [15:27:58]Read from MH i2c: 01 [15:27:58]MH_I2C_Read... [15:27:58]*** Stop cut motor [15:27:58]*** Cut end [15:27:58]Read from MH i2c: 01 07 00 [15:27:58]MH_I2C_Read... [15:27:58]Read from MH i2c: 01 07 00 40 69 00 00 00 00 00 FF 0F BE [15:27:58]process_action close_receipt done [15:27:58]requested_data is exist [15:27:58]produce_requested_data [15:27:58]requested_item fm.sn is exist - process it [15:27:58]wFMCommunicate request_size=4 [15:27:58]MH_SAM_APDU [15:27:58]CAPDU: 80 11 00 00 [15:27:58]Write to MH i2c: E2 08 00 41 69 80 11 00 00 00 00 00 00 24 [15:27:58]Write i2c OK [15:27:58]MH_I2C_Read... [15:27:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:27:58]Read from MH i2c: E2 [15:27:58]MH_I2C_Read... [15:27:58]Read from MH i2c: E2 17 00 [15:27:58]MH_I2C_Read... [15:27:58]Read from MH i2c: E2 17 00 41 69 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 72 [15:27:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [15:27:58]wFMCommunicate OK [15:27:58]requested_item fd.num is exist - process it [15:27:58]SAM_PROTO_GetFieldsCounters [15:27:58]wFMCommunicate request_size=4 [15:27:58]MH_SAM_APDU [15:27:58]CAPDU: 80 13 00 00 [15:27:58]Write to MH i2c: E2 08 00 42 69 80 13 00 00 00 00 00 00 27 [15:27:58]Write i2c OK [15:27:58]MH_I2C_Read... [15:27:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:27:58]Read from MH i2c: E2 [15:27:58]MH_I2C_Read... [15:27:58]Read from MH i2c: E2 62 00 [15:27:58]MH_I2C_Read... [15:27:58]Read from MH i2c: E2 62 00 42 69 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 8F DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 FF 00 00 00 5E 04 04 00 FF 00 00 00 57 04 04 00 00 01 00 00 19 04 04 00 00 00 00 00 90 00 67 [15:27:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 8F DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 FF 00 00 00 5E 04 04 00 FF 00 00 00 57 04 04 00 00 01 00 00 19 04 04 00 00 00 00 00 90 00 [15:27:58]wFMCommunicate OK [15:27:58]SAM_PROTO_GetFieldsCounters done [15:27:58]requested_item shift.num is exist - process it [15:27:58]requested_item shift.opened is exist - process it [15:27:58]req_shift_opened [15:27:58]FM_GetShiftState [15:27:58]SAM_PROTO_GetShiftState [15:27:58]wFMCommunicate request_size=4 [15:27:58]MH_SAM_APDU [15:27:58]CAPDU: 80 13 01 00 [15:27:58]Write to MH i2c: E2 08 00 43 69 80 13 01 00 00 00 00 00 29 [15:27:58]Write i2c OK [15:27:58]MH_I2C_Read... [15:27:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:27:58]Read from MH i2c: E2 [15:27:58]MH_I2C_Read... [15:27:58]Read from MH i2c: E2 0E 00 [15:27:58]MH_I2C_Read... [15:27:58]Read from MH i2c: E2 0E 00 43 69 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 88 [15:27:58]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [15:27:58]wFMCommunicate OK [15:27:58]SAM_PROTO_GetShiftState done [15:27:58]FM_GetShiftState done [15:27:58]req_shift_opened done [15:27:58]requested_item shift.open_date is exist - process it [15:27:58]req_shift_open_date [15:27:58]req_shift_open_date done [15:27:58]produce_requested_data done [15:27:58]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187791,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [15:27:58]process_action_free close_receipt [15:27:58]json_value_free [15:27:58]json_value_free done [15:27:58]process_json_proto returns [15:27:58]Send response to host [15:27:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187791,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [15:27:58]free response buf [15:27:58]execute_script done [15:27:58]execute_script returns [15:27:58]free content buf [15:27:58]Sock 9.Close socket [15:27:58]Sock 9.Thread stoped [15:28:02]OFD Sender: No OFD packet to send [15:28:07]OFD Sender: No OFD packet to send [15:28:12]OFD Sender: No OFD packet to send [15:28:17]OFD Sender: No OFD packet to send [15:28:22]OFD Sender: No OFD packet to send [15:28:27]OFD Sender: No OFD packet to send [15:28:31]accept exits with 8 [15:28:31]New connection [15:28:31]New thread 3067157860 created [15:28:31]Thread 3067014500 joined [15:28:31]Waiting for new connection... [15:28:31] Sock 8.Parse request [15:28:31]Sock 8.Check first char [15:28:31]Sock 8.First char is OK [15:28:31]request: POST /json_proto HTTP/1.0 [15:28:31]Method: POST [15:28:31]URL: /json_proto [15:28:31]Method is POST - this is cgi request [15:28:31]url: /json_proto [15:28:31]query_string will be loaded in cgi processing [15:28:31]execute_cgi json_proto POST (null) [15:28:31]execute_cgi path=json_proto method=POST [15:28:31]POST find Content-Length [15:28:31]Host: 172.17.42.131:8080 [15:28:31]Content-Length: 682 [15:28:31]Content-Type: application/json [15:28:31] [15:28:31]POST finish read [15:28:31]Found Content-Length = 682 [15:28:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209844", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:28:31]execute_script... [15:28: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)209844", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:28:31]POST & json_proto [15:28:31]process_json_proto [15:28:31]json parsed OK: [15:28:31]protocol is kg_v1.0 [15:28:31]action value=close_receipt [15:28:31]process_action close_receipt [15:28:31]cmd_close_receipt [15:28:31]MH_GetDate [15:28:31]Write to MH i2c: F0 00 00 44 69 9C [15:28:31]Write i2c OK [15:28:31]MH_I2C_Read... [15:28:31]Read from MH i2c: F0 [15:28:31]MH_I2C_Read... [15:28:31]Read from MH i2c: F0 09 00 [15:28:31]MH_I2C_Read... [15:28:31]Read from MH i2c: F0 09 00 44 69 00 23 73 16 67 A0 18 CA 66 A0 [15:28:31]GetLastDocTimeStamp 1729524478 [15:28:31]current date 1729524515 [15:28:31]FM_GetShiftState [15:28:31]SAM_PROTO_GetShiftState [15:28:31]wFMCommunicate request_size=4 [15:28:31]MH_SAM_APDU [15:28:31]CAPDU: 80 13 01 00 [15:28:31]Write to MH i2c: E2 08 00 45 69 80 13 01 00 00 00 00 00 2B [15:28:31]Write i2c OK [15:28:31]MH_I2C_Read... [15:28:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:28:31]Read from MH i2c: E2 [15:28:31]MH_I2C_Read... [15:28:31]Read from MH i2c: E2 0E 00 [15:28:31]MH_I2C_Read... [15:28:31]Read from MH i2c: E2 0E 00 45 69 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 8A [15:28:31]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [15:28:31]wFMCommunicate OK [15:28:31]SAM_PROTO_GetShiftState done [15:28:31]FM_GetShiftState done [15:28:31]opened in 1729469754 [15:28:31]opened+sec_in_day 1729556154 [15:28:31]quantity*price = 100021 [15:28:31]sum+1 = 100023 [15:28:31]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 256 21.10.2024 15:28 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 187792 ФПД: 42909269592763 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T152835&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187792&fm=42909269592763&tin=02508201610067®Number=0000000000100030&sum=100000 [15:28:32]StoreToDocumentArchive [15:28:32]shift 460 fd 187792 [15:28:32]save to /storage/0460/doc_00187792 [15:28:32]save last doc name /storage/0460/doc_00187792 to /storage/kkm_last_doc_name [15:28:32]save OK [15:28:32]Clear old archive folders... [15:28:32]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:28:32]tlvbuf is 01084600 [15:28:32]SAM_PROTO_ClearQueue [15:28:32]wFMCommunicate request_size=4 [15:28:32]MH_SAM_APDU [15:28:32]CAPDU: 80 09 00 00 [15:28:32]Write to MH i2c: E2 08 00 52 69 80 09 00 00 00 00 00 00 2D [15:28:32]Write i2c OK [15:28:32]MH_I2C_Read... [15:28:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:28:32]Read from MH i2c: E2 [15:28:32]MH_I2C_Read... [15:28:32]Read from MH i2c: E2 03 00 [15:28:32]MH_I2C_Read... [15:28:32]Read from MH i2c: E2 03 00 52 69 00 90 00 2F [15:28:32]RAPDU: 90 00 [15:28:32]wFMCommunicate OK [15:28:32]SAM_PROTO_ClearQueue done [15:28:32]KKMCreateOFDPacket [15:28:32]OFDProtocolAddRootSTLVToBuf [15:28:32]FM_MakeSignedData [15:28:32]FM_MakeSignedData [15:28:32]SAM_PROTO_SignData [15:28:32]wFMCommunicate request_size=4 [15:28:32]MH_SAM_APDU [15:28:32]CAPDU: 80 0D 01 02 [15:28:32]Write to MH i2c: E2 08 00 53 69 80 0D 01 02 00 00 00 00 35 [15:28:32]Write i2c OK [15:28:32]MH_I2C_Read... [15:28:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:28:32]Read from MH i2c: E2 [15:28:32]MH_I2C_Read... [15:28:32]Read from MH i2c: E2 03 00 [15:28:32]MH_I2C_Read... [15:28:32]Read from MH i2c: E2 03 00 53 69 00 90 00 30 [15:28:32]RAPDU: 90 00 [15:28:32]wFMCommunicate OK [15:28:32]wFMCommunicate request_size=255 [15:28:32]MH_SAM_APDU [15:28:32]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 00 01 00 00 F4 03 04 00 23 73 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 90 DD 02 00 35 04 06 00 27 [15:28:32]Write to MH i2c: E2 02 01 54 69 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 00 01 00 00 F4 03 04 00 23 73 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 90 DD 02 00 35 04 06 00 27 00 00 3C [15:28:32]Write i2c OK [15:28:32]MH_I2C_Read... [15:28:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:28:32]Read from MH i2c: E2 [15:28:32]MH_I2C_Read... [15:28:32]Read from MH i2c: E2 03 00 [15:28:32]MH_I2C_Read... [15:28:32]Read from MH i2c: E2 03 00 54 69 00 90 00 31 [15:28:32]RAPDU: 90 00 [15:28:32]wFMCommunicate OK [15:28:32]wFMCommunicate request_size=10 [15:28:32]MH_SAM_APDU [15:28:32]CAPDU: 80 0D 02 02 05 06 97 C5 8A BB [15:28:32]Write to MH i2c: E2 0D 00 55 69 80 0D 02 02 05 00 06 97 C5 8A BB 00 00 E9 [15:28:32]Write i2c OK [15:28:32]MH_I2C_Read... [15:28:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:28:32]Read from MH i2c: E2 [15:28:32]MH_I2C_Read... [15:28:32]Read from MH i2c: E2 03 00 [15:28:32]MH_I2C_Read... [15:28:32]Read from MH i2c: E2 03 00 55 69 00 90 00 32 [15:28:32]RAPDU: 90 00 [15:28:32]wFMCommunicate OK [15:28:32]wFMCommunicate request_size=4 [15:28:32]MH_SAM_APDU [15:28:32]CAPDU: 80 0D 03 02 [15:28:32]Write to MH i2c: E2 08 00 56 69 80 0D 03 02 00 00 00 00 3A [15:28:32]Write i2c OK [15:28:32]MH_I2C_Read... [15:28:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:28:32]Read from MH i2c: E2 [15:28:32]MH_I2C_Read... [15:28:32]Read from MH i2c: E2 0B 00 [15:28:32]MH_I2C_Read... [15:28:32]Read from MH i2c: E2 0B 00 56 69 00 5E 11 42 41 9E 90 90 B9 90 00 A4 [15:28:32]RAPDU: 5E 11 42 41 9E 90 90 B9 90 00 [15:28:32]wFMCommunicate OK [15:28:32]SAM_PROTO_SignData done [15:28:32]FM_MakeSignedData done [15:28:32]CreateOFDProtocolMessage [15:28:32]wFMCommunicate request_size=4 [15:28:32]MH_SAM_APDU [15:28:32]CAPDU: 80 11 00 00 [15:28:32]Write to MH i2c: E2 08 00 57 69 80 11 00 00 00 00 00 00 3A [15:28:32]Write i2c OK [15:28:32]MH_I2C_Read... [15:28:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:28:32]Read from MH i2c: E2 [15:28:32]MH_I2C_Read... [15:28:32]Read from MH i2c: E2 17 00 [15:28:32]MH_I2C_Read... [15:28:32]Read from MH i2c: E2 17 00 57 69 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 88 [15:28:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [15:28:32]wFMCommunicate OK [15:28:32]CreateOFDProtocolMessage done [15:28:32]OFDSenderStorePacket 187792 [15:28:32]StoreOFDPacket docnum=187792 [15:28:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 74 15 07 01 86 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 00 01 00 00 F4 03 04 00 23 73 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 90 DD 02 00 35 04 06 00 27 06 97 C5 8A BB 5E 11 42 41 9E 90 90 B9 [15:28:32]CheckFolder [15:28:32]dirname=/storage/ofd_packets [15:28:32]CheckFolder done [15:28:32]ProducePacketName [15:28:32]name=ofd_packets/00187792 [15:28:32]NVStorageSaveData ofd_packets/00187792 [15:28:32]File name is /storage/ofd_packets/00187792 [15:28:32]Write 301 bytes [15:28:32]NVStorageSaveData done [15:28:32]OFDSenderStorePacket done [15:28:32]KKMCreateOFDPacket done [15:28:32]NVStorageSaveData kkm_last_timestamp [15:28:32]File name is /storage/kkm_last_timestamp [15:28:32]Write 4 bytes [15:28:32]NVStorageSaveData done [15:28:32]ExternCall_PrintAddStr [15:28:32]wPrintStart [15:28:32]Write to MH i2c: 01 00 00 58 69 C1 [15:28:32]Write i2c OK [15:28:32]MH_I2C_Read... [15:28:32]Read from MH i2c: 01 [15:28:32]MH_I2C_Read... [15:28:32]Read from MH i2c: 01 07 00 [15:28:32]MH_I2C_Read... [15:28:32]Read from MH i2c: 01 07 00 58 69 00 00 00 00 00 FF 0F D6 [15:28:32]RasterBufferAndPrint [15:28:32]line Счет N : (1)209844 [15:28:32]line ИНН: 02508201610067 [15:28:32]line Контрольно-Кассовый Чек [15:28:32]line ПРОДАЖА [15:28:32]line ТРК (МРК, ГНК) : 43 [15:28:32]line Товар: 2710124500 [15:28:32]line Аи-95-К-3 [15:28:32]line 13.480 * 74.20 [15:28:32]line = 1000.22 [15:28:32]line НДС 12% НСП 1% [15:28:32]line > о реализуемом товаре [15:28:32]line ОКРУГЛЕНИЕ: -0.22 [15:28:32]line ИТОГО: 1000.00 [15:28:32]line Внесено: 1000.00 [15:28:32]line СДАЧА: 0.00 [15:28:32]line НСП 1% : 8.85 [15:28:32]line НДС 12% : 106.22 [15:28:32]line Наличными: 1000.00 [15:28:32]line Безнал.: 0.00 [15:28:32]line Место: АЗС № 86 "Партнер Нефть" [15:28:32]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [15:28:32]line СНО: Общий режим [15:28:32]line Чек 256 21.10.2024 15:28 [15:28:32]line Смена: 460 ФФД: 1.0 [15:28:32]line ЗНМ: 0300000155 [15:28:32]line РНМ: 0000000000100030 [15:28:32]line Версия ККМ: 001 [15:28:32]line ФМ: 0000000000965340 [15:28:32]line ФД: 187792 [15:28:32]line ФПД: 42909269592763 [15:28:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T152835&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187792&fm=42909269592763&tin=02508201610067®Number=0000000000100030&sum=100000 [15:28:32]written 0, free lines is 4095 [15:28:33]OFD Sender: Processing packet 187792 [packets to send 1062, broken 1061] [15:28:33]ProducePacketName [15:28:33]name=ofd_packets/00187792 [15:28:33]OFD Sender: To server: pG, [15:28:33]CommunicateWithHost lk.salyk.kg:30040 [15:28:33]ConnectInit lk.salyk.kg [15:28:33]Connected sock=10 [15:28:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 74 15 07 01 86 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 00 01 00 00 F4 03 04 00 23 73 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 90 DD 02 00 35 04 06 00 27 06 97 C5 8A BB 5E 11 42 41 9E 90 90 B9 [15:28:33]Write to MH i2c: 01 00 00 83 69 EC [15:28:33]Write i2c OK [15:28:33]MH_I2C_Read... [15:28:33]Read from MH i2c: 01 [15:28:33]MH_I2C_Read... [15:28:33]Read from MH i2c: 01 07 00 [15:28:33]MH_I2C_Read... [15:28:33]Read from MH i2c: 01 07 00 83 69 00 00 00 00 00 6B 0C 6A [15:28:33]RasterBufferAndPrint [15:28:33]line [15:28:33]line [15:28:33]line [15:28:33]line [15:28:33]line [15:28:33]written 0, free lines is 3183 [15:28:33]MH_Cut [15:28:33]Write to MH i2c: D1 01 00 8A 69 01 C5 [15:28:33]Write i2c OK [15:28:33]MH_I2C_Read... [15:28:33]Read from MH i2c: D1 [15:28:33]MH_I2C_Read... [15:28:33]Read from MH i2c: D1 01 00 [15:28:33]MH_I2C_Read... [15:28:33]Read from MH i2c: D1 01 00 8A 69 00 C4 [15:28:33]Write to MH i2c: 01 00 00 8B 69 F4 [15:28:33]Write i2c OK [15:28:33]MH_I2C_Read... [15:28:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 6A 0B 47 00 AF 8A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 90 DD 02 00 F4 03 04 00 13 1D 16 67 B6 04 01 00 00 6A 29 4B 38 37 23 74 36 [15:28:33]CommunicateWithHost err = 0 [15:28:33]CheckOFDResponse [15:28:33]1017 (14) - 77093643461234 [15:28:33]1041 (16) - 0000000000965340 [15:28:33]1040 (4) - 187792 [15:28:33]1012 (4) - 21.10.2024 09:21 [15:28:33]1206 (1) - 0 [15:28:33]OFD Sender: Remove packet 187792 [15:28:33]ProducePacketName [15:28:33]name=ofd_packets/00187792 [15:28:33]NVStorageDeleteData [15:28:34]OFD Sender: No OFD packet to send [15:28:34]*** Cut start [15:28:34]*** Partial cut [15:28:34]*** CUTSNS_PIN = 1 [15:28:34]*** CUTSNS_PIN = 0 [15:28:34]*** Brake cut motor [15:28:35]Read from MH i2c: 01 [15:28:35]MH_I2C_Read... [15:28:35]*** Stop cut motor [15:28:35]*** Cut end [15:28:35]Read from MH i2c: 01 07 00 [15:28:35]MH_I2C_Read... [15:28:35]Read from MH i2c: 01 07 00 8B 69 00 00 00 00 00 FF 0F 09 [15:28:35]process_action close_receipt done [15:28:35]requested_data is exist [15:28:35]produce_requested_data [15:28:35]requested_item fm.sn is exist - process it [15:28:35]wFMCommunicate request_size=4 [15:28:35]MH_SAM_APDU [15:28:35]CAPDU: 80 11 00 00 [15:28:35]Write to MH i2c: E2 08 00 8C 69 80 11 00 00 00 00 00 00 6F [15:28:35]Write i2c OK [15:28:35]MH_I2C_Read... [15:28:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:28:35]Read from MH i2c: E2 [15:28:35]MH_I2C_Read... [15:28:35]Read from MH i2c: E2 17 00 [15:28:35]MH_I2C_Read... [15:28:35]Read from MH i2c: E2 17 00 8C 69 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 BD [15:28:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [15:28:35]wFMCommunicate OK [15:28:35]requested_item fd.num is exist - process it [15:28:35]SAM_PROTO_GetFieldsCounters [15:28:35]wFMCommunicate request_size=4 [15:28:35]MH_SAM_APDU [15:28:35]CAPDU: 80 13 00 00 [15:28:35]Write to MH i2c: E2 08 00 8D 69 80 13 00 00 00 00 00 00 72 [15:28:35]Write i2c OK [15:28:35]MH_I2C_Read... [15:28:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:28:35]Read from MH i2c: E2 [15:28:35]MH_I2C_Read... [15:28:35]Read from MH i2c: E2 62 00 [15:28:35]MH_I2C_Read... [15:28:35]Read from MH i2c: E2 62 00 8D 69 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 90 DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 00 01 00 00 5E 04 04 00 00 01 00 00 57 04 04 00 01 01 00 00 19 04 04 00 00 00 00 00 90 00 B8 [15:28:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 90 DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 00 01 00 00 5E 04 04 00 00 01 00 00 57 04 04 00 01 01 00 00 19 04 04 00 00 00 00 00 90 00 [15:28:35]wFMCommunicate OK [15:28:35]SAM_PROTO_GetFieldsCounters done [15:28:35]requested_item shift.num is exist - process it [15:28:35]requested_item shift.opened is exist - process it [15:28:35]req_shift_opened [15:28:35]FM_GetShiftState [15:28:35]SAM_PROTO_GetShiftState [15:28:35]wFMCommunicate request_size=4 [15:28:35]MH_SAM_APDU [15:28:35]CAPDU: 80 13 01 00 [15:28:35]Write to MH i2c: E2 08 00 8E 69 80 13 01 00 00 00 00 00 74 [15:28:35]Write i2c OK [15:28:35]MH_I2C_Read... [15:28:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:28:35]Read from MH i2c: E2 [15:28:35]MH_I2C_Read... [15:28:35]Read from MH i2c: E2 0E 00 [15:28:35]MH_I2C_Read... [15:28:35]Read from MH i2c: E2 0E 00 8E 69 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 D3 [15:28:35]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [15:28:35]wFMCommunicate OK [15:28:35]SAM_PROTO_GetShiftState done [15:28:35]FM_GetShiftState done [15:28:35]req_shift_opened done [15:28:35]requested_item shift.open_date is exist - process it [15:28:35]req_shift_open_date [15:28:35]req_shift_open_date done [15:28:35]produce_requested_data done [15:28:35]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187792,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [15:28:35]process_action_free close_receipt [15:28:35]json_value_free [15:28:35]json_value_free done [15:28:35]process_json_proto returns [15:28:35]Send response to host [15:28:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187792,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [15:28:35]free response buf [15:28:35]execute_script done [15:28:35]execute_script returns [15:28:35]free content buf [15:28:35]Sock 8.Close socket [15:28:35]Sock 8.Thread stoped [15:28:39]OFD Sender: No OFD packet to send [15:28:44]OFD Sender: No OFD packet to send [15:28:49]OFD Sender: No OFD packet to send [15:28:54]OFD Sender: No OFD packet to send [15:28:59]OFD Sender: No OFD packet to send [15:29:04]OFD Sender: No OFD packet to send [15:29:09]OFD Sender: No OFD packet to send [15:29:14]OFD Sender: No OFD packet to send [15:29:19]OFD Sender: No OFD packet to send [15:29:24]OFD Sender: No OFD packet to send [15:29:29]OFD Sender: No OFD packet to send [15:29:34]OFD Sender: No OFD packet to send [15:29:39]OFD Sender: No OFD packet to send [15:29:44]OFD Sender: No OFD packet to send [15:29:49]OFD Sender: No OFD packet to send [15:29:54]OFD Sender: No OFD packet to send [15:29:59]OFD Sender: No OFD packet to send [15:30:04]OFD Sender: No OFD packet to send [15:30:09]OFD Sender: No OFD packet to send [15:30:14]OFD Sender: No OFD packet to send [15:30:19]OFD Sender: No OFD packet to send [15:30:24]OFD Sender: No OFD packet to send [15:30:29]OFD Sender: No OFD packet to send [15:30:34]OFD Sender: No OFD packet to send [15:30:39]OFD Sender: No OFD packet to send [15:30:44]OFD Sender: No OFD packet to send [15:30:49]OFD Sender: No OFD packet to send [15:30:54]OFD Sender: No OFD packet to send [15:30:59]OFD Sender: No OFD packet to send [15:31:04]OFD Sender: No OFD packet to send [15:31:09]OFD Sender: No OFD packet to send [15:31:14]OFD Sender: No OFD packet to send [15:31:19]OFD Sender: No OFD packet to send [15:31:24]OFD Sender: No OFD packet to send [15:31:29]OFD Sender: No OFD packet to send [15:31:34]OFD Sender: No OFD packet to send [15:31:39]OFD Sender: No OFD packet to send [15:31: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:15]accept exits with 9 [15:32:15]New connection [15:32:15]New thread 3067014500 created [15:32:15]Thread 3067157860 joined [15:32:15]Waiting for new connection... [15:32:15] Sock 9.Parse request [15:32:15]Sock 9.Check first char [15:32:15]Sock 9.First char is OK [15:32:15]request: POST /json_proto HTTP/1.0 [15:32:15]Method: POST [15:32:15]URL: /json_proto [15:32:15]Method is POST - this is cgi request [15:32:15]url: /json_proto [15:32:15]query_string will be loaded in cgi processing [15:32:15]execute_cgi json_proto POST (null) [15:32:15]execute_cgi path=json_proto method=POST [15:32:15]POST find Content-Length [15:32:15]Host: 172.17.42.131:8080 [15:32:15]Content-Length: 677 [15:32:15]Content-Type: application/json [15:32:15] [15:32:15]POST finish read [15:32:15]Found Content-Length = 677 [15:32:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209845", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 3.740, "sum" : 250.21, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 250.00, "total" : 250.00, "payments": [ { "type": 0, "sum" : 250.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:32:15]execute_script... [15:32:15]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209845", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 3.740, "sum" : 250.21, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 250.00, "total" : 250.00, "payments": [ { "type": 0, "sum" : 250.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:32:15]POST & json_proto [15:32:15]process_json_proto [15:32:15]json parsed OK: [15:32:15]protocol is kg_v1.0 [15:32:15]action value=close_receipt [15:32:15]process_action close_receipt [15:32:15]cmd_close_receipt [15:32:15]MH_GetDate [15:32:15]Write to MH i2c: F0 00 00 8F 69 E7 [15:32:15]Write i2c OK [15:32:15]MH_I2C_Read... [15:32:15]Read from MH i2c: F0 [15:32:15]MH_I2C_Read... [15:32:15]Read from MH i2c: F0 09 00 [15:32:15]MH_I2C_Read... [15:32:15]Read from MH i2c: F0 09 00 8F 69 00 03 74 16 67 A0 18 CA 66 CC [15:32:15]GetLastDocTimeStamp 1729524515 [15:32:15]current date 1729524739 [15:32:15]FM_GetShiftState [15:32:15]SAM_PROTO_GetShiftState [15:32:15]wFMCommunicate request_size=4 [15:32:15]MH_SAM_APDU [15:32:15]CAPDU: 80 13 01 00 [15:32:15]Write to MH i2c: E2 08 00 90 69 80 13 01 00 00 00 00 00 76 [15:32:15]Write i2c OK [15:32:15]MH_I2C_Read... [15:32:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:32:15]Read from MH i2c: E2 [15:32:15]MH_I2C_Read... [15:32:15]Read from MH i2c: E2 0E 00 [15:32:15]MH_I2C_Read... [15:32:15]Read from MH i2c: E2 0E 00 90 69 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 D5 [15:32:15]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [15:32:15]wFMCommunicate OK [15:32:15]SAM_PROTO_GetShiftState done [15:32:15]FM_GetShiftState done [15:32:15]opened in 1729469754 [15:32:15]opened+sec_in_day 1729556154 [15:32:15]quantity*price = 25020 [15:32:15]sum+1 = 25022 [15:32:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.21 ИТОГО: 250.00 Внесено: 250.00 СДАЧА: 0.00 НСП 1% : 2.21 НДС 12% : 26.57 Наличными: 250.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 257 21.10.2024 15:32 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 187793 ФПД: 156741144359287 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T153220&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187793&fm=156741144359287&tin=02508201610067®Number=0000000000100030&sum=25000 [15:32:16]StoreToDocumentArchive [15:32:16]shift 460 fd 187793 [15:32:16]save to /storage/0460/doc_00187793 [15:32:16]save last doc name /storage/0460/doc_00187793 to /storage/kkm_last_doc_name [15:32:16]save OK [15:32:16]Clear old archive folders... [15:32:16]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:32:16]tlvbuf is 010FA0C0 [15:32:16]SAM_PROTO_ClearQueue [15:32:16]wFMCommunicate request_size=4 [15:32:16]MH_SAM_APDU [15:32:16]CAPDU: 80 09 00 00 [15:32:16]Write to MH i2c: E2 08 00 9D 69 80 09 00 00 00 00 00 00 78 [15:32:16]Write i2c OK [15:32:16]MH_I2C_Read... [15:32:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:32:16]Read from MH i2c: E2 [15:32:16]MH_I2C_Read... [15:32:16]Read from MH i2c: E2 03 00 [15:32:16]MH_I2C_Read... [15:32:16]Read from MH i2c: E2 03 00 9D 69 00 90 00 7A [15:32:16]RAPDU: 90 00 [15:32:16]wFMCommunicate OK [15:32:16]SAM_PROTO_ClearQueue done [15:32:16]KKMCreateOFDPacket [15:32:16]OFDProtocolAddRootSTLVToBuf [15:32:16]FM_MakeSignedData [15:32:16]FM_MakeSignedData [15:32:16]SAM_PROTO_SignData [15:32:16]wFMCommunicate request_size=4 [15:32:16]MH_SAM_APDU [15:32:16]CAPDU: 80 0D 01 02 [15:32:16]Write to MH i2c: E2 08 00 9E 69 80 0D 01 02 00 00 00 00 80 [15:32:16]Write i2c OK [15:32:16]MH_I2C_Read... [15:32:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:32:16]Read from MH i2c: E2 [15:32:16]MH_I2C_Read... [15:32:16]Read from MH i2c: E2 03 00 [15:32:16]MH_I2C_Read... [15:32:16]Read from MH i2c: E2 03 00 9E 69 00 90 00 7B [15:32:16]RAPDU: 90 00 [15:32:16]wFMCommunicate OK [15:32:16]wFMCommunicate request_size=255 [15:32:16]MH_SAM_APDU [15:32:16]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 9C 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BD 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 01 00 00 F4 03 04 00 04 74 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 91 DD 02 00 35 04 06 00 8E [15:32:16]Write to MH i2c: E2 02 01 9F 69 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 9C 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BD 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 01 00 00 F4 03 04 00 04 74 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 91 DD 02 00 35 04 06 00 8E 00 00 8E [15:32:16]Write i2c OK [15:32:16]MH_I2C_Read... [15:32:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:32:16]Read from MH i2c: E2 [15:32:16]MH_I2C_Read... [15:32:16]Read from MH i2c: E2 03 00 [15:32:16]MH_I2C_Read... [15:32:16]Read from MH i2c: E2 03 00 9F 69 00 90 00 7C [15:32:16]RAPDU: 90 00 [15:32:16]wFMCommunicate OK [15:32:16]wFMCommunicate request_size=10 [15:32:16]MH_SAM_APDU [15:32:16]CAPDU: 80 0D 02 02 05 8E 24 3B 31 77 [15:32:16]Write to MH i2c: E2 0D 00 A0 69 80 0D 02 02 05 00 8E 24 3B 31 77 00 00 22 [15:32:16]Write i2c OK [15:32:16]MH_I2C_Read... [15:32:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:32:16]Read from MH i2c: E2 [15:32:16]MH_I2C_Read... [15:32:16]Read from MH i2c: E2 03 00 [15:32:16]MH_I2C_Read... [15:32:16]Read from MH i2c: E2 03 00 A0 69 00 90 00 7D [15:32:16]RAPDU: 90 00 [15:32:16]wFMCommunicate OK [15:32:16]wFMCommunicate request_size=4 [15:32:16]MH_SAM_APDU [15:32:16]CAPDU: 80 0D 03 02 [15:32:16]Write to MH i2c: E2 08 00 A1 69 80 0D 03 02 00 00 00 00 85 [15:32:16]Write i2c OK [15:32:16]MH_I2C_Read... [15:32:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:32:16]Read from MH i2c: E2 [15:32:16]MH_I2C_Read... [15:32:16]Read from MH i2c: E2 0B 00 [15:32:16]MH_I2C_Read... [15:32:16]Read from MH i2c: E2 0B 00 A1 69 00 29 4A C3 EF CC 2D 83 C8 90 00 EF [15:32:16]RAPDU: 29 4A C3 EF CC 2D 83 C8 90 00 [15:32:16]wFMCommunicate OK [15:32:16]SAM_PROTO_SignData done [15:32:16]FM_MakeSignedData done [15:32:16]CreateOFDProtocolMessage [15:32:16]wFMCommunicate request_size=4 [15:32:16]MH_SAM_APDU [15:32:16]CAPDU: 80 11 00 00 [15:32:16]Write to MH i2c: E2 08 00 A2 69 80 11 00 00 00 00 00 00 85 [15:32:16]Write i2c OK [15:32:16]MH_I2C_Read... [15:32:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:32:16]Read from MH i2c: E2 [15:32:17]MH_I2C_Read... [15:32:17]Read from MH i2c: E2 17 00 [15:32:17]MH_I2C_Read... [15:32:17]Read from MH i2c: E2 17 00 A2 69 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 D3 [15:32:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [15:32:17]wFMCommunicate OK [15:32:17]CreateOFDProtocolMessage done [15:32:17]OFDSenderStorePacket 187793 [15:32:17]StoreOFDPacket docnum=187793 [15:32:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 A6 F4 07 01 3E 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 33 FF 03 08 00 03 9C 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BD 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 01 00 00 F4 03 04 00 04 74 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 91 DD 02 00 35 04 06 00 8E 8E 24 3B 31 77 29 4A C3 EF CC 2D 83 C8 [15:32:17]CheckFolder [15:32:17]dirname=/storage/ofd_packets [15:32:17]CheckFolder done [15:32:17]ProducePacketName [15:32:17]name=ofd_packets/00187793 [15:32:17]NVStorageSaveData ofd_packets/00187793 [15:32:17]File name is /storage/ofd_packets/00187793 [15:32:17]Write 301 bytes [15:32:17]NVStorageSaveData done [15:32:17]OFDSenderStorePacket done [15:32:17]KKMCreateOFDPacket done [15:32:17]NVStorageSaveData kkm_last_timestamp [15:32:17]File name is /storage/kkm_last_timestamp [15:32:17]Write 4 bytes [15:32:17]NVStorageSaveData done [15:32:17]ExternCall_PrintAddStr [15:32:17]wPrintStart [15:32:17]Write to MH i2c: 01 00 00 A3 69 0C [15:32:17]Write i2c OK [15:32:17]MH_I2C_Read... [15:32:17]Read from MH i2c: 01 [15:32:17]MH_I2C_Read... [15:32:17]Read from MH i2c: 01 07 00 [15:32:17]MH_I2C_Read... [15:32:17]Read from MH i2c: 01 07 00 A3 69 00 00 00 00 00 FF 0F 21 [15:32:17]RasterBufferAndPrint [15:32:17]line Счет N : (1)209845 [15:32:17]line ИНН: 02508201610067 [15:32:17]line Контрольно-Кассовый Чек [15:32:17]line ПРОДАЖА [15:32:17]line ТРК (МРК, ГНК) : 22 [15:32:17]line Товар: 2710124130 [15:32:17]line Аи-92-К-3 [15:32:17]line 3.740 * 66.90 [15:32:17]line = 250.21 [15:32:17]line НДС 12% НСП 1% [15:32:17]line > о реализуемом товаре [15:32:17]line ОКРУГЛЕНИЕ: -0.21 [15:32:17]line ИТОГО: 250.00 [15:32:17]line Внесено: 250.00 [15:32:17]line СДАЧА: 0.00 [15:32:17]line НСП 1% : 2.21 [15:32:17]line НДС 12% : 26.57 [15:32:17]line Наличными: 250.00 [15:32:17]line Безнал.: 0.00 [15:32:17]line Место: АЗС № 86 "Партнер Нефть" [15:32:17]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [15:32:17]line СНО: Общий режим [15:32:17]line Чек 257 21.10.2024 15:32 [15:32:17]line Смена: 460 ФФД: 1.0 [15:32:17]line ЗНМ: 0300000155 [15:32:17]line РНМ: 0000000000100030 [15:32:17]line Версия ККМ: 001 [15:32:17]line ФМ: 0000000000965340 [15:32:17]line ФД: 187793 [15:32:17]line ФПД: 156741144359287 [15:32:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T153220&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187793&fm=156741144359287&tin=02508201610067®Number=0000000000100030&sum=25000 [15:32:17]written 0, free lines is 4095 [15:32:17]OFD Sender: Processing packet 187793 [packets to send 1062, broken 1061] [15:32:17]ProducePacketName [15:32:17]name=ofd_packets/00187793 [15:32:17]OFD Sender: To server: pG, [15:32:17]CommunicateWithHost lk.salyk.kg:30040 [15:32:17]ConnectInit lk.salyk.kg [15:32:17]Connected sock=10 [15:32:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 A6 F4 07 01 3E 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 33 FF 03 08 00 03 9C 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BD 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 01 00 00 F4 03 04 00 04 74 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 91 DD 02 00 35 04 06 00 8E 8E 24 3B 31 77 29 4A C3 EF CC 2D 83 C8 [15:32:17]Write to MH i2c: 01 00 00 CE 69 37 [15:32:17]Write i2c OK [15:32:17]MH_I2C_Read... [15:32:17]Read from MH i2c: 01 [15:32:17]MH_I2C_Read... [15:32:17]Read from MH i2c: 01 07 00 [15:32:17]MH_I2C_Read... [15:32:17]Read from MH i2c: 01 07 00 CE 69 00 00 00 00 00 65 0C AF [15:32:17]RasterBufferAndPrint [15:32:17]line [15:32:17]line [15:32:17]line [15:32:17]line [15:32:17]line [15:32:17]written 0, free lines is 3176 [15:32:17]MH_Cut [15:32:17]Write to MH i2c: D1 01 00 D5 69 01 10 [15:32:17]Write i2c OK [15:32:17]MH_I2C_Read... [15:32:17]Read from MH i2c: D1 [15:32:17]MH_I2C_Read... [15:32:17]Read from MH i2c: D1 01 00 [15:32:17]MH_I2C_Read... [15:32:17]Read from MH i2c: D1 01 00 D5 69 00 0F [15:32:17]Write to MH i2c: 01 00 00 D6 69 3F [15:32:17]Write i2c OK [15:32:17]MH_I2C_Read... [15:32:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 F3 7F 47 00 9C 90 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 91 DD 02 00 F4 03 04 00 F3 1D 16 67 B6 04 01 00 00 E7 28 A4 82 1E 8B 01 F4 [15:32:17]CommunicateWithHost err = 0 [15:32:17]CheckOFDResponse [15:32:17]1017 (14) - 77093643461234 [15:32:17]1041 (16) - 0000000000965340 [15:32:17]1040 (4) - 187793 [15:32:17]1012 (4) - 21.10.2024 09:25 [15:32:17]1206 (1) - 0 [15:32:17]OFD Sender: Remove packet 187793 [15:32:17]ProducePacketName [15:32:17]name=ofd_packets/00187793 [15:32:17]NVStorageDeleteData [15:32:18]OFD Sender: No OFD packet to send [15:32:18]*** Cut start [15:32:18]*** Partial cut [15:32:18]*** CUTSNS_PIN = 1 [15:32:18]*** CUTSNS_PIN = 0 [15:32:18]*** Brake cut motor [15:32:19]Read from MH i2c: 01 [15:32:19]MH_I2C_Read... [15:32:19]*** Stop cut motor [15:32:19]*** Cut end [15:32:19]Read from MH i2c: 01 07 00 [15:32:19]MH_I2C_Read... [15:32:19]Read from MH i2c: 01 07 00 D6 69 00 00 00 00 00 FF 0F 54 [15:32:19]process_action close_receipt done [15:32:19]requested_data is exist [15:32:19]produce_requested_data [15:32:19]requested_item fm.sn is exist - process it [15:32:19]wFMCommunicate request_size=4 [15:32:19]MH_SAM_APDU [15:32:19]CAPDU: 80 11 00 00 [15:32:19]Write to MH i2c: E2 08 00 D7 69 80 11 00 00 00 00 00 00 BA [15:32:19]Write i2c OK [15:32:19]MH_I2C_Read... [15:32:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:32:19]Read from MH i2c: E2 [15:32:19]MH_I2C_Read... [15:32:19]Read from MH i2c: E2 17 00 [15:32:19]MH_I2C_Read... [15:32:19]Read from MH i2c: E2 17 00 D7 69 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 08 [15:32:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [15:32:19]wFMCommunicate OK [15:32:19]requested_item fd.num is exist - process it [15:32:19]SAM_PROTO_GetFieldsCounters [15:32:19]wFMCommunicate request_size=4 [15:32:19]MH_SAM_APDU [15:32:19]CAPDU: 80 13 00 00 [15:32:19]Write to MH i2c: E2 08 00 D8 69 80 13 00 00 00 00 00 00 BD [15:32:19]Write i2c OK [15:32:19]MH_I2C_Read... [15:32:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:32:19]Read from MH i2c: E2 [15:32:19]MH_I2C_Read... [15:32:19]Read from MH i2c: E2 62 00 [15:32:19]MH_I2C_Read... [15:32:19]Read from MH i2c: E2 62 00 D8 69 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 91 DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 01 01 00 00 5E 04 04 00 01 01 00 00 57 04 04 00 02 01 00 00 19 04 04 00 00 00 00 00 90 00 07 [15:32:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 91 DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 01 01 00 00 5E 04 04 00 01 01 00 00 57 04 04 00 02 01 00 00 19 04 04 00 00 00 00 00 90 00 [15:32:19]wFMCommunicate OK [15:32:19]SAM_PROTO_GetFieldsCounters done [15:32:19]requested_item shift.num is exist - process it [15:32:19]requested_item shift.opened is exist - process it [15:32:19]req_shift_opened [15:32:19]FM_GetShiftState [15:32:19]SAM_PROTO_GetShiftState [15:32:19]wFMCommunicate request_size=4 [15:32:19]MH_SAM_APDU [15:32:19]CAPDU: 80 13 01 00 [15:32:19]Write to MH i2c: E2 08 00 D9 69 80 13 01 00 00 00 00 00 BF [15:32:19]Write i2c OK [15:32:19]MH_I2C_Read... [15:32:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:32:19]Read from MH i2c: E2 [15:32:19]MH_I2C_Read... [15:32:19]Read from MH i2c: E2 0E 00 [15:32:19]MH_I2C_Read... [15:32:19]Read from MH i2c: E2 0E 00 D9 69 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 1E [15:32:19]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [15:32:19]wFMCommunicate OK [15:32:19]SAM_PROTO_GetShiftState done [15:32:19]FM_GetShiftState done [15:32:19]req_shift_opened done [15:32:19]requested_item shift.open_date is exist - process it [15:32:19]req_shift_open_date [15:32:19]req_shift_open_date done [15:32:19]produce_requested_data done [15:32:19]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187793,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [15:32:19]process_action_free close_receipt [15:32:19]json_value_free [15:32:19]json_value_free done [15:32:19]process_json_proto returns [15:32:19]Send response to host [15:32:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187793,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [15:32:19]free response buf [15:32:19]execute_script done [15:32:19]execute_script returns [15:32:19]free content buf [15:32:19]Sock 9.Close socket [15:32:19]Sock 9.Thread stoped [15:32:19]accept exits with 8 [15:32:19]New connection [15:32:19]New thread 3067157860 created [15:32:19]Thread 3067014500 joined [15:32:19]Waiting for new connection... [15:32:19] Sock 8.Parse request [15:32:19]Sock 8.Check first char [15:32:19]Sock 8.First char is OK [15:32:19]request: POST /json_proto HTTP/1.0 [15:32:19]Method: POST [15:32:19]URL: /json_proto [15:32:19]Method is POST - this is cgi request [15:32:19]url: /json_proto [15:32:19]query_string will be loaded in cgi processing [15:32:19]execute_cgi json_proto POST (null) [15:32:19]execute_cgi path=json_proto method=POST [15:32:19]POST find Content-Length [15:32:19]Host: 172.17.42.131:8080 [15:32:19]Content-Length: 677 [15:32:19]Content-Type: application/json [15:32:19] [15:32:19]POST finish read [15:32:19]Found Content-Length = 677 [15:32:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209846", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "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:32:19]execute_script... [15:32:19]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209846", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "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:32:19]POST & json_proto [15:32:19]process_json_proto [15:32:19]json parsed OK: [15:32:19]protocol is kg_v1.0 [15:32:19]action value=close_receipt [15:32:19]process_action close_receipt [15:32:19]cmd_close_receipt [15:32:19]MH_GetDate [15:32:19]Write to MH i2c: F0 00 00 DA 69 32 [15:32:19]Write i2c OK [15:32:19]MH_I2C_Read... [15:32:19]Read from MH i2c: F0 [15:32:19]MH_I2C_Read... [15:32:19]Read from MH i2c: F0 09 00 [15:32:19]MH_I2C_Read... [15:32:19]Read from MH i2c: F0 09 00 DA 69 00 08 74 16 67 A0 18 CA 66 1C [15:32:19]GetLastDocTimeStamp 1729524740 [15:32:19]current date 1729524744 [15:32:19]FM_GetShiftState [15:32:19]SAM_PROTO_GetShiftState [15:32:19]wFMCommunicate request_size=4 [15:32:19]MH_SAM_APDU [15:32:19]CAPDU: 80 13 01 00 [15:32:19]Write to MH i2c: E2 08 00 DB 69 80 13 01 00 00 00 00 00 C1 [15:32:19]Write i2c OK [15:32:19]MH_I2C_Read... [15:32:19]Read from MH i2c: E2 [15:32:19]MH_I2C_Read... [15:32:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:32:19]Read from MH i2c: E2 0E 00 [15:32:19]MH_I2C_Read... [15:32:19]Read from MH i2c: E2 0E 00 DB 69 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 20 [15:32:19]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [15:32:19]wFMCommunicate OK [15:32:19]SAM_PROTO_GetShiftState done [15:32:19]FM_GetShiftState done [15:32:19]opened in 1729469754 [15:32:19]opened+sec_in_day 1729556154 [15:32:19]quantity*price = 30038 [15:32:19]sum+1 = 30039 [15:32:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 258 21.10.2024 15:32 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 187794 ФПД: 105604149028553 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T153224&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187794&fm=105604149028553&tin=02508201610067®Number=0000000000100030&sum=30000 [15:32:21]StoreToDocumentArchive [15:32:21]shift 460 fd 187794 [15:32:21]save to /storage/0460/doc_00187794 [15:32:21]save last doc name /storage/0460/doc_00187794 to /storage/kkm_last_doc_name [15:32:21]save OK [15:32:21]Clear old archive folders... [15:32:21]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:32:21]tlvbuf is 01104710 [15:32:21]SAM_PROTO_ClearQueue [15:32:21]wFMCommunicate request_size=4 [15:32:21]MH_SAM_APDU [15:32:21]CAPDU: 80 09 00 00 [15:32:21]Write to MH i2c: E2 08 00 E8 69 80 09 00 00 00 00 00 00 C3 [15:32:21]Write i2c OK [15:32:21]MH_I2C_Read... [15:32:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:32:21]Read from MH i2c: E2 [15:32:21]MH_I2C_Read... [15:32:21]Read from MH i2c: E2 03 00 [15:32:21]MH_I2C_Read... [15:32:21]Read from MH i2c: E2 03 00 E8 69 00 90 00 C5 [15:32:21]RAPDU: 90 00 [15:32:21]wFMCommunicate OK [15:32:21]SAM_PROTO_ClearQueue done [15:32:21]KKMCreateOFDPacket [15:32:21]OFDProtocolAddRootSTLVToBuf [15:32:21]FM_MakeSignedData [15:32:21]FM_MakeSignedData [15:32:21]SAM_PROTO_SignData [15:32:21]wFMCommunicate request_size=4 [15:32:21]MH_SAM_APDU [15:32:21]CAPDU: 80 0D 01 02 [15:32:21]Write to MH i2c: E2 08 00 E9 69 80 0D 01 02 00 00 00 00 CB [15:32:21]Write i2c OK [15:32:21]MH_I2C_Read... [15:32:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:32:21]Read from MH i2c: E2 [15:32:21]MH_I2C_Read... [15:32:21]Read from MH i2c: E2 03 00 [15:32:21]MH_I2C_Read... [15:32:21]Read from MH i2c: E2 03 00 E9 69 00 90 00 C6 [15:32:21]RAPDU: 90 00 [15:32:21]wFMCommunicate OK [15:32:21]wFMCommunicate request_size=255 [15:32:21]MH_SAM_APDU [15:32: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 33 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 02 01 00 00 F4 03 04 00 08 74 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 92 DD 02 00 35 04 06 00 60 [15:32:21]Write to MH i2c: E2 02 01 EA 69 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 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 02 01 00 00 F4 03 04 00 08 74 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 92 DD 02 00 35 04 06 00 60 00 00 CC [15:32:21]Write i2c OK [15:32:21]MH_I2C_Read... [15:32:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:32:21]Read from MH i2c: E2 [15:32:21]MH_I2C_Read... [15:32:21]Read from MH i2c: E2 03 00 [15:32:21]MH_I2C_Read... [15:32:21]Read from MH i2c: E2 03 00 EA 69 00 90 00 C7 [15:32:21]RAPDU: 90 00 [15:32:21]wFMCommunicate OK [15:32:21]wFMCommunicate request_size=10 [15:32:21]MH_SAM_APDU [15:32:21]CAPDU: 80 0D 02 02 05 0B E1 CA 26 C9 [15:32:21]Write to MH i2c: E2 0D 00 EB 69 80 0D 02 02 05 00 0B E1 CA 26 C9 00 00 7D [15:32:21]Write i2c OK [15:32:21]MH_I2C_Read... [15:32:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:32:21]Read from MH i2c: E2 [15:32:21]MH_I2C_Read... [15:32:21]Read from MH i2c: E2 03 00 [15:32:21]MH_I2C_Read... [15:32:21]Read from MH i2c: E2 03 00 EB 69 00 90 00 C8 [15:32:21]RAPDU: 90 00 [15:32:21]wFMCommunicate OK [15:32:21]wFMCommunicate request_size=4 [15:32:21]MH_SAM_APDU [15:32:21]CAPDU: 80 0D 03 02 [15:32:21]Write to MH i2c: E2 08 00 EC 69 80 0D 03 02 00 00 00 00 D0 [15:32:21]Write i2c OK [15:32:21]MH_I2C_Read... [15:32:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:32:21]Read from MH i2c: E2 [15:32:21]MH_I2C_Read... [15:32:21]Read from MH i2c: E2 0B 00 [15:32:21]MH_I2C_Read... [15:32:21]Read from MH i2c: E2 0B 00 EC 69 00 6B 11 08 C1 92 1D E2 8A 90 00 31 [15:32:21]RAPDU: 6B 11 08 C1 92 1D E2 8A 90 00 [15:32:21]wFMCommunicate OK [15:32:21]SAM_PROTO_SignData done [15:32:21]FM_MakeSignedData done [15:32:21]CreateOFDProtocolMessage [15:32:21]wFMCommunicate request_size=4 [15:32:21]MH_SAM_APDU [15:32:21]CAPDU: 80 11 00 00 [15:32:21]Write to MH i2c: E2 08 00 ED 69 80 11 00 00 00 00 00 00 D0 [15:32:21]Write i2c OK [15:32:21]MH_I2C_Read... [15:32:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:32:22]Read from MH i2c: E2 [15:32:22]MH_I2C_Read... [15:32:22]Read from MH i2c: E2 17 00 [15:32:22]MH_I2C_Read... [15:32:22]Read from MH i2c: E2 17 00 ED 69 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 1E [15:32:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [15:32:22]wFMCommunicate OK [15:32:22]CreateOFDProtocolMessage done [15:32:22]OFDSenderStorePacket 187794 [15:32:22]StoreOFDPacket docnum=187794 [15:32:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 C1 8E 07 01 AB 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 33 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 02 01 00 00 F4 03 04 00 08 74 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 92 DD 02 00 35 04 06 00 60 0B E1 CA 26 C9 6B 11 08 C1 92 1D E2 8A [15:32:22]CheckFolder [15:32:22]dirname=/storage/ofd_packets [15:32:22]CheckFolder done [15:32:22]ProducePacketName [15:32:22]name=ofd_packets/00187794 [15:32:22]NVStorageSaveData ofd_packets/00187794 [15:32:22]File name is /storage/ofd_packets/00187794 [15:32:22]Write 301 bytes [15:32:22]NVStorageSaveData done [15:32:22]OFDSenderStorePacket done [15:32:22]KKMCreateOFDPacket done [15:32:22]NVStorageSaveData kkm_last_timestamp [15:32:22]File name is /storage/kkm_last_timestamp [15:32:22]Write 4 bytes [15:32:22]NVStorageSaveData done [15:32:22]ExternCall_PrintAddStr [15:32:22]wPrintStart [15:32:22]Write to MH i2c: 01 00 00 EE 69 57 [15:32:22]Write i2c OK [15:32:22]MH_I2C_Read... [15:32:22]Read from MH i2c: 01 [15:32:22]MH_I2C_Read... [15:32:22]Read from MH i2c: 01 07 00 [15:32:22]MH_I2C_Read... [15:32:22]Read from MH i2c: 01 07 00 EE 69 00 00 00 00 00 FF 0F 6C [15:32:22]RasterBufferAndPrint [15:32:22]line Счет N : (1)209846 [15:32:22]line ИНН: 02508201610067 [15:32:22]line Контрольно-Кассовый Чек [15:32:22]line ПРОДАЖА [15:32:22]line ТРК (МРК, ГНК) : 32 [15:32:22]line Товар: 2710124130 [15:32:22]line Аи-92-К-3 [15:32:22]line 4.490 * 66.90 [15:32:22]line = 300.38 [15:32:22]line НДС 12% НСП 1% [15:32:22]line > о реализуемом товаре [15:32:22]line ОКРУГЛЕНИЕ: -0.38 [15:32:22]line ИТОГО: 300.00 [15:32:22]line Внесено: 300.00 [15:32:22]line СДАЧА: 0.00 [15:32:22]line НСП 1% : 2.66 [15:32:22]line НДС 12% : 31.90 [15:32:22]line Наличными: 300.00 [15:32:22]line Безнал.: 0.00 [15:32:22]line Место: АЗС № 86 "Партнер Нефть" [15:32:22]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [15:32:22]line СНО: Общий режим [15:32:22]line Чек 258 21.10.2024 15:32 [15:32:22]line Смена: 460 ФФД: 1.0 [15:32:22]line ЗНМ: 0300000155 [15:32:22]line РНМ: 0000000000100030 [15:32:22]line Версия ККМ: 001 [15:32:22]line ФМ: 0000000000965340 [15:32:22]line ФД: 187794 [15:32:22]line ФПД: 105604149028553 [15:32:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T153224&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187794&fm=105604149028553&tin=02508201610067®Number=0000000000100030&sum=30000 [15:32:22]written 0, free lines is 4095 [15:32:22]OFD Sender: Processing packet 187794 [packets to send 1062, broken 1061] [15:32:22]ProducePacketName [15:32:22]name=ofd_packets/00187794 [15:32:22]OFD Sender: To server: pG, [15:32:22]CommunicateWithHost lk.salyk.kg:30040 [15:32:22]ConnectInit lk.salyk.kg [15:32:22]Connected sock=10 [15:32:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 C1 8E 07 01 AB 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 33 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 02 01 00 00 F4 03 04 00 08 74 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 92 DD 02 00 35 04 06 00 60 0B E1 CA 26 C9 6B 11 08 C1 92 1D E2 8A [15:32:22]Write to MH i2c: 01 00 00 19 6A 83 [15:32:22]Write i2c OK [15:32:22]MH_I2C_Read... [15:32:22]Read from MH i2c: 01 [15:32:22]MH_I2C_Read... [15:32:22]Read from MH i2c: 01 07 00 [15:32:22]MH_I2C_Read... [15:32:22]Read from MH i2c: 01 07 00 19 6A 00 00 00 00 00 72 0C 08 [15:32:22]RasterBufferAndPrint [15:32:22]line [15:32:22]line [15:32:22]line [15:32:22]line [15:32:22]line [15:32:22]written 0, free lines is 3192 [15:32:22]MH_Cut [15:32:22]Write to MH i2c: D1 01 00 20 6A 01 5C [15:32:22]Write i2c OK [15:32:22]MH_I2C_Read... [15:32:22]Read from MH i2c: D1 [15:32:22]MH_I2C_Read... [15:32:22]Read from MH i2c: D1 01 00 [15:32:22]MH_I2C_Read... [15:32:22]Read from MH i2c: D1 01 00 20 6A 00 5B [15:32:22]Write to MH i2c: 01 00 00 21 6A 8B [15:32:22]Write i2c OK [15:32:22]MH_I2C_Read... [15:32:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 7A 90 47 00 FC D8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 92 DD 02 00 F4 03 04 00 F8 1D 16 67 B6 04 01 00 00 C0 8F 07 51 EE BB 7A B2 [15:32:23]CommunicateWithHost err = 0 [15:32:23]CheckOFDResponse [15:32:23]1017 (14) - 77093643461234 [15:32:23]1041 (16) - 0000000000965340 [15:32:23]1040 (4) - 187794 [15:32:23]1012 (4) - 21.10.2024 09:25 [15:32:23]1206 (1) - 0 [15:32:23]OFD Sender: Remove packet 187794 [15:32:23]ProducePacketName [15:32:23]name=ofd_packets/00187794 [15:32:23]NVStorageDeleteData [15:32:23]*** Cut start [15:32:23]*** Partial cut [15:32:23]*** CUTSNS_PIN = 1 [15:32:23]OFD Sender: No OFD packet to send [15:32:23]*** CUTSNS_PIN = 0 [15:32:24]*** Brake cut motor [15:32:24]Read from MH i2c: 01 [15:32:24]MH_I2C_Read... [15:32:24]*** Stop cut motor [15:32:24]*** Cut end [15:32:24]Read from MH i2c: 01 07 00 [15:32:24]MH_I2C_Read... [15:32:24]Read from MH i2c: 01 07 00 21 6A 00 00 00 00 00 FF 0F A0 [15:32:24]process_action close_receipt done [15:32:24]requested_data is exist [15:32:24]produce_requested_data [15:32:24]requested_item fm.sn is exist - process it [15:32:24]wFMCommunicate request_size=4 [15:32:24]MH_SAM_APDU [15:32:24]CAPDU: 80 11 00 00 [15:32:24]Write to MH i2c: E2 08 00 22 6A 80 11 00 00 00 00 00 00 06 [15:32:24]Write i2c OK [15:32:24]MH_I2C_Read... [15:32:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:32:24]Read from MH i2c: E2 [15:32:24]MH_I2C_Read... [15:32:24]Read from MH i2c: E2 17 00 [15:32:24]MH_I2C_Read... [15:32:24]Read from MH i2c: E2 17 00 22 6A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 54 [15:32:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [15:32:24]wFMCommunicate OK [15:32:24]requested_item fd.num is exist - process it [15:32:24]SAM_PROTO_GetFieldsCounters [15:32:24]wFMCommunicate request_size=4 [15:32:24]MH_SAM_APDU [15:32:24]CAPDU: 80 13 00 00 [15:32:24]Write to MH i2c: E2 08 00 23 6A 80 13 00 00 00 00 00 00 09 [15:32:24]Write i2c OK [15:32:24]MH_I2C_Read... [15:32:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:32:24]Read from MH i2c: E2 [15:32:24]MH_I2C_Read... [15:32:24]Read from MH i2c: E2 62 00 [15:32:24]MH_I2C_Read... [15:32:24]Read from MH i2c: E2 62 00 23 6A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 92 DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 02 01 00 00 5E 04 04 00 02 01 00 00 57 04 04 00 03 01 00 00 19 04 04 00 00 00 00 00 90 00 57 [15:32:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 92 DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 02 01 00 00 5E 04 04 00 02 01 00 00 57 04 04 00 03 01 00 00 19 04 04 00 00 00 00 00 90 00 [15:32:24]wFMCommunicate OK [15:32:24]SAM_PROTO_GetFieldsCounters done [15:32:24]requested_item shift.num is exist - process it [15:32:24]requested_item shift.opened is exist - process it [15:32:24]req_shift_opened [15:32:24]FM_GetShiftState [15:32:24]SAM_PROTO_GetShiftState [15:32:24]wFMCommunicate request_size=4 [15:32:24]MH_SAM_APDU [15:32:24]CAPDU: 80 13 01 00 [15:32:24]Write to MH i2c: E2 08 00 24 6A 80 13 01 00 00 00 00 00 0B [15:32:24]Write i2c OK [15:32:24]MH_I2C_Read... [15:32:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:32:24]Read from MH i2c: E2 [15:32:24]MH_I2C_Read... [15:32:24]Read from MH i2c: E2 0E 00 [15:32:24]MH_I2C_Read... [15:32:24]Read from MH i2c: E2 0E 00 24 6A 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 6A [15:32:24]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [15:32:24]wFMCommunicate OK [15:32:24]SAM_PROTO_GetShiftState done [15:32:24]FM_GetShiftState done [15:32:24]req_shift_opened done [15:32:24]requested_item shift.open_date is exist - process it [15:32:24]req_shift_open_date [15:32:24]req_shift_open_date done [15:32:24]produce_requested_data done [15:32:24]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187794,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [15:32:24]process_action_free close_receipt [15:32:24]json_value_free [15:32:24]json_value_free done [15:32:24]process_json_proto returns [15:32:24]Send response to host [15:32:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187794,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [15:32:24]free response buf [15:32:24]execute_script done [15:32:24]execute_script returns [15:32:24]free content buf [15:32:24]Sock 8.Close socket [15:32:24]Sock 8.Thread stoped [15:32:28]OFD Sender: No OFD packet to send [15:32:33]OFD Sender: No OFD packet to send [15:32:38]OFD Sender: No OFD packet to send [15:32:43]OFD Sender: No OFD packet to send [15:32:48]OFD Sender: No OFD packet to send [15:32:53]OFD Sender: No OFD packet to send [15:32:58]OFD Sender: No OFD packet to send [15:33:03]OFD Sender: No OFD packet to send [15:33:08]OFD Sender: No OFD packet to send [15:33:13]OFD Sender: No OFD packet to send [15:33:18]OFD Sender: No OFD packet to send [15:33:23]OFD Sender: No OFD packet to send [15:33:29]OFD Sender: No OFD packet to send [15:33:34]OFD Sender: No OFD packet to send [15:33:39]OFD Sender: No OFD packet to send [15:33:44]OFD Sender: No OFD packet to send [15:33:49]OFD Sender: No OFD packet to send [15:33:54]OFD Sender: No OFD packet to send [15:33:59]OFD Sender: No OFD packet to send [15:34:04]OFD Sender: No OFD packet to send [15:34:09]OFD Sender: No OFD packet to send [15:34:14]OFD Sender: No OFD packet to send [15:34:19]OFD Sender: No OFD packet to send [15:34:24]OFD Sender: No OFD packet to send [15:34:29]OFD Sender: No OFD packet to send [15:34:34]OFD Sender: No OFD packet to send [15:34:39]OFD Sender: No OFD packet to send [15:34:44]OFD Sender: No OFD packet to send [15:34:49]OFD Sender: No OFD packet to send [15:34:54]OFD Sender: No OFD packet to send [15:34:59]OFD Sender: No OFD packet to send [15:35:04]OFD Sender: No OFD packet to send [15:35:09]OFD Sender: No OFD packet to send [15:35:14]OFD Sender: No OFD packet to send [15:35:19]OFD Sender: No OFD packet to send [15:35:24]OFD Sender: No OFD packet to send [15:35:29]OFD Sender: No OFD packet to send [15:35:34]OFD Sender: No OFD packet to send [15:35:39]OFD Sender: No OFD packet to send [15:35:44]OFD Sender: No OFD packet to send [15:35:49]OFD Sender: No OFD packet to send [15:35:54]OFD Sender: No OFD packet to send [15:35:59]OFD Sender: No OFD packet to send [15:36:04]OFD Sender: No OFD packet to send [15:36:09]OFD Sender: No OFD packet to send [15:36:14]OFD Sender: No OFD packet to send [15:36:19]OFD Sender: No OFD packet to send [15:36:24]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:20]OFD Sender: No OFD packet to send [15:37:25]OFD Sender: No OFD packet to send [15:37:30]OFD Sender: No OFD packet to send [15:37:35]OFD Sender: No OFD packet to send [15:37:40]OFD Sender: No OFD packet to send [15:37:45]OFD Sender: No OFD packet to send [15:37:50]OFD Sender: No OFD packet to send [15:37:55]OFD Sender: No OFD packet to send [15:38:00]OFD Sender: No OFD packet to send [15:38:05]OFD Sender: No OFD packet to send [15:38:10]OFD Sender: No OFD packet to send [15:38:15]OFD Sender: No OFD packet to send [15:38:20]OFD Sender: No OFD packet to send [15:38:25]OFD Sender: No OFD packet to send [15:38:30]OFD Sender: No OFD packet to send [15:38:35]OFD Sender: No OFD packet to send [15:38:40]OFD Sender: No OFD packet to send [15:38:45]OFD Sender: No OFD packet to send [15:38:50]OFD Sender: No OFD packet to send [15:38:55]OFD Sender: No OFD packet to send [15:39:00]OFD Sender: No OFD packet to send [15:39:05]OFD Sender: No OFD packet to send [15:39:10]OFD Sender: No OFD packet to send [15:39:15]OFD Sender: No OFD packet to send [15:39:20]OFD Sender: No OFD packet to send [15:39:25]OFD Sender: No OFD packet to send [15:39:30]OFD Sender: No OFD packet to send [15:39:35]OFD Sender: No OFD packet to send [15:39:40]OFD Sender: No OFD packet to send [15:39:45]OFD Sender: No OFD packet to send [15:39:50]OFD Sender: No OFD packet to send [15:39:55]OFD Sender: No OFD packet to send [15:40:00]OFD Sender: No OFD packet to send [15:40:05]OFD Sender: No OFD packet to send [15:40:10]OFD Sender: No OFD packet to send [15:40:15]OFD Sender: No OFD packet to send [15:40:20]OFD Sender: No OFD packet to send [15:40:25]OFD Sender: No OFD packet to send [15:40:30]OFD Sender: No OFD packet to send [15:40:35]OFD Sender: No OFD packet to send [15:40:40]OFD Sender: No OFD packet to send [15:40:45]OFD Sender: No OFD packet to send [15:40:50]OFD Sender: No OFD packet to send [15:40:55]OFD Sender: No OFD packet to send [15:41:00]OFD Sender: No OFD packet to send [15:41:05]OFD Sender: No OFD packet to send [15:41:11]OFD Sender: No OFD packet to send [15:41:16]OFD Sender: No OFD packet to send [15:41:21]OFD Sender: No OFD packet to send [15:41:26]OFD Sender: No OFD packet to send [15:41:31]OFD Sender: No OFD packet to send [15:41:36]OFD Sender: No OFD packet to send [15:41:41]OFD Sender: No OFD packet to send [15:41:46]OFD Sender: No OFD packet to send [15:41:51]OFD Sender: No OFD packet to send [15:41:56]OFD Sender: No OFD packet to send [15:42:01]OFD Sender: No OFD packet to send [15:42:06]OFD Sender: No OFD packet to send [15:42:11]OFD Sender: No OFD packet to send [15:42:16]OFD Sender: No OFD packet to send [15:42:21]OFD Sender: No OFD packet to send [15:42:24]accept exits with 9 [15:42:24]New connection [15:42:24]New thread 3067014500 created [15:42:24]Thread 3067157860 joined [15:42:24]Waiting for new connection... [15:42:24] Sock 9.Parse request [15:42:24]Sock 9.Check first char [15:42:24]Sock 9.First char is OK [15:42:24]request: POST /json_proto HTTP/1.0 [15:42:24]Method: POST [15:42:24]URL: /json_proto [15:42:24]Method is POST - this is cgi request [15:42:24]url: /json_proto [15:42:24]query_string will be loaded in cgi processing [15:42:24]execute_cgi json_proto POST (null) [15:42:24]execute_cgi path=json_proto method=POST [15:42:24]POST find Content-Length [15:42:24]Host: 172.17.42.131:8080 [15:42:24]Content-Length: 677 [15:42:24]Content-Type: application/json [15:42:24] [15:42:24]POST finish read [15:42:24]Found Content-Length = 677 [15:42:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209848", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 6.740, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:42:24]execute_script... [15:42: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)209848", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 6.740, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:42:24]POST & json_proto [15:42:24]process_json_proto [15:42:24]json parsed OK: [15:42:24]protocol is kg_v1.0 [15:42:24]action value=close_receipt [15:42:24]process_action close_receipt [15:42:24]cmd_close_receipt [15:42:24]MH_GetDate [15:42:24]Write to MH i2c: F0 00 00 25 6A 7E [15:42:24]Write i2c OK [15:42:24]MH_I2C_Read... [15:42:24]Read from MH i2c: F0 [15:42:24]MH_I2C_Read... [15:42:24]Read from MH i2c: F0 09 00 [15:42:24]MH_I2C_Read... [15:42:24]Read from MH i2c: F0 09 00 25 6A 00 65 76 16 67 A0 18 CA 66 C7 [15:42:24]GetLastDocTimeStamp 1729524744 [15:42:24]current date 1729525349 [15:42:24]FM_GetShiftState [15:42:24]SAM_PROTO_GetShiftState [15:42:24]wFMCommunicate request_size=4 [15:42:24]MH_SAM_APDU [15:42:24]CAPDU: 80 13 01 00 [15:42:24]Write to MH i2c: E2 08 00 26 6A 80 13 01 00 00 00 00 00 0D [15:42:24]Write i2c OK [15:42:24]MH_I2C_Read... [15:42:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:42:24]Read from MH i2c: E2 [15:42:24]MH_I2C_Read... [15:42:24]Read from MH i2c: E2 0E 00 [15:42:24]MH_I2C_Read... [15:42:24]Read from MH i2c: E2 0E 00 26 6A 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 6C [15:42:24]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [15:42:24]wFMCommunicate OK [15:42:24]SAM_PROTO_GetShiftState done [15:42:24]FM_GetShiftState done [15:42:24]opened in 1729469754 [15:42:24]opened+sec_in_day 1729556154 [15:42:24]quantity*price = 50010 [15:42:24]sum+1 = 50012 [15:42:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 259 21.10.2024 15:42 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 187795 ФПД: 156337136850551 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T154229&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187795&fm=156337136850551&tin=02508201610067®Number=0000000000100030&sum=50000 [15:42:25]StoreToDocumentArchive [15:42:25]shift 460 fd 187795 [15:42:25]save to /storage/0460/doc_00187795 [15:42:25]save last doc name /storage/0460/doc_00187795 to /storage/kkm_last_doc_name [15:42:25]save OK [15:42:25]Clear old archive folders... [15:42:25]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:42:25]tlvbuf is 011B8720 [15:42:25]SAM_PROTO_ClearQueue [15:42:25]wFMCommunicate request_size=4 [15:42:25]MH_SAM_APDU [15:42:25]CAPDU: 80 09 00 00 [15:42:25]Write to MH i2c: E2 08 00 33 6A 80 09 00 00 00 00 00 00 0F [15:42:25]Write i2c OK [15:42:25]MH_I2C_Read... [15:42:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:42:25]Read from MH i2c: E2 [15:42:25]MH_I2C_Read... [15:42:25]Read from MH i2c: E2 03 00 [15:42:25]MH_I2C_Read... [15:42:25]Read from MH i2c: E2 03 00 33 6A 00 90 00 11 [15:42:25]RAPDU: 90 00 [15:42:25]wFMCommunicate OK [15:42:25]SAM_PROTO_ClearQueue done [15:42:25]KKMCreateOFDPacket [15:42:25]OFDProtocolAddRootSTLVToBuf [15:42:25]FM_MakeSignedData [15:42:25]FM_MakeSignedData [15:42:25]SAM_PROTO_SignData [15:42:25]wFMCommunicate request_size=4 [15:42:25]MH_SAM_APDU [15:42:25]CAPDU: 80 0D 01 02 [15:42:25]Write to MH i2c: E2 08 00 34 6A 80 0D 01 02 00 00 00 00 17 [15:42:25]Write i2c OK [15:42:25]MH_I2C_Read... [15:42:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:42:25]Read from MH i2c: E2 [15:42:25]MH_I2C_Read... [15:42:25]Read from MH i2c: E2 03 00 [15:42:25]MH_I2C_Read... [15:42:25]Read from MH i2c: E2 03 00 34 6A 00 90 00 12 [15:42:25]RAPDU: 90 00 [15:42:25]wFMCommunicate OK [15:42:25]wFMCommunicate request_size=255 [15:42:25]MH_SAM_APDU [15:42:25]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 01 00 00 F4 03 04 00 65 76 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 93 DD 02 00 35 04 06 00 8E [15:42:25]Write to MH i2c: E2 02 01 35 6A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 01 00 00 F4 03 04 00 65 76 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 93 DD 02 00 35 04 06 00 8E 00 00 8B [15:42:25]Write i2c OK [15:42:25]MH_I2C_Read... [15:42:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:42:26]Read from MH i2c: E2 [15:42:26]MH_I2C_Read... [15:42:26]Read from MH i2c: E2 03 00 [15:42:26]MH_I2C_Read... [15:42:26]Read from MH i2c: E2 03 00 35 6A 00 90 00 13 [15:42:26]RAPDU: 90 00 [15:42:26]wFMCommunicate OK [15:42:26]wFMCommunicate request_size=10 [15:42:26]MH_SAM_APDU [15:42:26]CAPDU: 80 0D 02 02 05 30 13 81 D6 77 [15:42:26]Write to MH i2c: E2 0D 00 36 6A 80 0D 02 02 05 00 30 13 81 D6 77 00 00 35 [15:42:26]Write i2c OK [15:42:26]MH_I2C_Read... [15:42:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:42:26]Read from MH i2c: E2 [15:42:26]MH_I2C_Read... [15:42:26]Read from MH i2c: E2 03 00 [15:42:26]MH_I2C_Read... [15:42:26]Read from MH i2c: E2 03 00 36 6A 00 90 00 14 [15:42:26]RAPDU: 90 00 [15:42:26]wFMCommunicate OK [15:42:26]wFMCommunicate request_size=4 [15:42:26]MH_SAM_APDU [15:42:26]CAPDU: 80 0D 03 02 [15:42:26]Write to MH i2c: E2 08 00 37 6A 80 0D 03 02 00 00 00 00 1C [15:42:26]Write i2c OK [15:42:26]MH_I2C_Read... [15:42:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:42:26]Read from MH i2c: E2 [15:42:26]MH_I2C_Read... [15:42:26]Read from MH i2c: E2 0B 00 [15:42:26]MH_I2C_Read... [15:42:26]Read from MH i2c: E2 0B 00 37 6A 00 E6 2D 65 25 17 DB FB D7 90 00 7E [15:42:26]RAPDU: E6 2D 65 25 17 DB FB D7 90 00 [15:42:26]wFMCommunicate OK [15:42:26]SAM_PROTO_SignData done [15:42:26]FM_MakeSignedData done [15:42:26]CreateOFDProtocolMessage [15:42:26]wFMCommunicate request_size=4 [15:42:26]MH_SAM_APDU [15:42:26]CAPDU: 80 11 00 00 [15:42:26]Write to MH i2c: E2 08 00 38 6A 80 11 00 00 00 00 00 00 1C [15:42:26]Write i2c OK [15:42:26]MH_I2C_Read... [15:42:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:42:26]Read from MH i2c: E2 [15:42:26]MH_I2C_Read... [15:42:26]Read from MH i2c: E2 17 00 [15:42:26]MH_I2C_Read... [15:42:26]Read from MH i2c: E2 17 00 38 6A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 6A [15:42:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [15:42:26]wFMCommunicate OK [15:42:26]CreateOFDProtocolMessage done [15:42:26]OFDSenderStorePacket 187795 [15:42:26]StoreOFDPacket docnum=187795 [15:42:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 B5 18 07 01 BA 03 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 01 00 00 F4 03 04 00 65 76 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 93 DD 02 00 35 04 06 00 8E 30 13 81 D6 77 E6 2D 65 25 17 DB FB D7 [15:42:26]CheckFolder [15:42:26]dirname=/storage/ofd_packets [15:42:26]CheckFolder done [15:42:26]ProducePacketName [15:42:26]name=ofd_packets/00187795 [15:42:26]NVStorageSaveData ofd_packets/00187795 [15:42:26]File name is /storage/ofd_packets/00187795 [15:42:26]Write 301 bytes [15:42:26]NVStorageSaveData done [15:42:26]OFDSenderStorePacket done [15:42:26]KKMCreateOFDPacket done [15:42:26]NVStorageSaveData kkm_last_timestamp [15:42:26]File name is /storage/kkm_last_timestamp [15:42:26]Write 4 bytes [15:42:26]NVStorageSaveData done [15:42:26]ExternCall_PrintAddStr [15:42:26]wPrintStart [15:42:26]Write to MH i2c: 01 00 00 39 6A A3 [15:42:26]Write i2c OK [15:42:26]MH_I2C_Read... [15:42:26]Read from MH i2c: 01 [15:42:26]MH_I2C_Read... [15:42:26]Read from MH i2c: 01 07 00 [15:42:26]MH_I2C_Read... [15:42:26]Read from MH i2c: 01 07 00 39 6A 00 00 00 00 00 FF 0F B8 [15:42:26]RasterBufferAndPrint [15:42:26]line Счет N : (1)209848 [15:42:26]line ИНН: 02508201610067 [15:42:26]line Контрольно-Кассовый Чек [15:42:26]line ПРОДАЖА [15:42:26]line ТРК (МРК, ГНК) : 33 [15:42:26]line Товар: 2710124500 [15:42:26]line Аи-95-К-3 [15:42:26]line 6.740 * 74.20 [15:42:26]line = 500.11 [15:42:26]line НДС 12% НСП 1% [15:42:26]line > о реализуемом товаре [15:42:26]line ОКРУГЛЕНИЕ: -0.11 [15:42:26]line ИТОГО: 500.00 [15:42:26]line Внесено: 500.00 [15:42:26]line СДАЧА: 0.00 [15:42:26]line НСП 1% : 4.43 [15:42:26]line НДС 12% : 53.11 [15:42:26]line Наличными: 500.00 [15:42:26]line Безнал.: 0.00 [15:42:26]line Место: АЗС № 86 "Партнер Нефть" [15:42:26]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [15:42:26]line СНО: Общий режим [15:42:26]line Чек 259 21.10.2024 15:42 [15:42:26]line Смена: 460 ФФД: 1.0 [15:42:26]line ЗНМ: 0300000155 [15:42:26]line РНМ: 0000000000100030 [15:42:26]line Версия ККМ: 001 [15:42:26]line ФМ: 0000000000965340 [15:42:26]line ФД: 187795 [15:42:26]line ФПД: 156337136850551 [15:42:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T154229&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187795&fm=156337136850551&tin=02508201610067®Number=0000000000100030&sum=50000 [15:42:26]written 0, free lines is 4095 [15:42:26]OFD Sender: Processing packet 187795 [packets to send 1062, broken 1061] [15:42:26]ProducePacketName [15:42:26]name=ofd_packets/00187795 [15:42:26]OFD Sender: To server: pG, [15:42:26]CommunicateWithHost lk.salyk.kg:30040 [15:42:26]ConnectInit lk.salyk.kg [15:42:26]Connected sock=10 [15:42:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 B5 18 07 01 BA 03 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 01 00 00 F4 03 04 00 65 76 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 93 DD 02 00 35 04 06 00 8E 30 13 81 D6 77 E6 2D 65 25 17 DB FB D7 [15:42:26]Write to MH i2c: 01 00 00 64 6A CE [15:42:26]Write i2c OK [15:42:26]MH_I2C_Read... [15:42:26]Read from MH i2c: 01 [15:42:26]MH_I2C_Read... [15:42:26]Read from MH i2c: 01 07 00 [15:42:26]MH_I2C_Read... [15:42:26]Read from MH i2c: 01 07 00 64 6A 00 00 00 00 00 64 0C 45 [15:42:26]RasterBufferAndPrint [15:42:26]line [15:42:26]line [15:42:26]line [15:42:26]line [15:42:26]line [15:42:26]written 0, free lines is 3176 [15:42:26]MH_Cut [15:42:26]Write to MH i2c: D1 01 00 6B 6A 01 A7 [15:42:26]Write i2c OK [15:42:26]MH_I2C_Read... [15:42:26]Read from MH i2c: D1 [15:42:26]MH_I2C_Read... [15:42:26]Read from MH i2c: D1 01 00 [15:42:26]MH_I2C_Read... [15:42:26]Read from MH i2c: D1 01 00 6B 6A 00 A6 [15:42:26]Write to MH i2c: 01 00 00 6C 6A D6 [15:42:26]Write i2c OK [15:42:26]MH_I2C_Read... [15:42:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 B0 42 47 00 08 03 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 93 DD 02 00 F4 03 04 00 54 20 16 67 B6 04 01 00 00 A4 86 76 1E B8 47 14 E8 [15:42:26]CommunicateWithHost err = 0 [15:42:26]CheckOFDResponse [15:42:26]1017 (14) - 77093643461234 [15:42:26]1041 (16) - 0000000000965340 [15:42:26]1040 (4) - 187795 [15:42:26]1012 (4) - 21.10.2024 09:35 [15:42:26]1206 (1) - 0 [15:42:26]OFD Sender: Remove packet 187795 [15:42:26]ProducePacketName [15:42:26]name=ofd_packets/00187795 [15:42:26]NVStorageDeleteData [15:42:27]OFD Sender: No OFD packet to send [15:42:28]*** Cut start [15:42:28]*** Partial cut [15:42:28]*** CUTSNS_PIN = 1 [15:42:28]*** CUTSNS_PIN = 0 [15:42:28]*** Brake cut motor [15:42:28]Read from MH i2c: 01 [15:42:28]MH_I2C_Read... [15:42:28]*** Stop cut motor [15:42:28]*** Cut end [15:42:28]Read from MH i2c: 01 07 00 [15:42:28]MH_I2C_Read... [15:42:28]Read from MH i2c: 01 07 00 6C 6A 00 00 00 00 00 FF 0F EB [15:42:28]process_action close_receipt done [15:42:28]requested_data is exist [15:42:28]produce_requested_data [15:42:28]requested_item fm.sn is exist - process it [15:42:28]wFMCommunicate request_size=4 [15:42:28]MH_SAM_APDU [15:42:28]CAPDU: 80 11 00 00 [15:42:28]Write to MH i2c: E2 08 00 6D 6A 80 11 00 00 00 00 00 00 51 [15:42:28]Write i2c OK [15:42:28]MH_I2C_Read... [15:42:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:42:28]Read from MH i2c: E2 [15:42:28]MH_I2C_Read... [15:42:28]Read from MH i2c: E2 17 00 [15:42:28]MH_I2C_Read... [15:42:28]Read from MH i2c: E2 17 00 6D 6A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 9F [15:42:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [15:42:28]wFMCommunicate OK [15:42:28]requested_item fd.num is exist - process it [15:42:28]SAM_PROTO_GetFieldsCounters [15:42:28]wFMCommunicate request_size=4 [15:42:28]MH_SAM_APDU [15:42:28]CAPDU: 80 13 00 00 [15:42:28]Write to MH i2c: E2 08 00 6E 6A 80 13 00 00 00 00 00 00 54 [15:42:28]Write i2c OK [15:42:28]MH_I2C_Read... [15:42:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:42:28]Read from MH i2c: E2 [15:42:28]MH_I2C_Read... [15:42:28]Read from MH i2c: E2 62 00 [15:42:28]MH_I2C_Read... [15:42:28]Read from MH i2c: E2 62 00 6E 6A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 93 DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 03 01 00 00 5E 04 04 00 03 01 00 00 57 04 04 00 04 01 00 00 19 04 04 00 00 00 00 00 90 00 A6 [15:42:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 93 DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 03 01 00 00 5E 04 04 00 03 01 00 00 57 04 04 00 04 01 00 00 19 04 04 00 00 00 00 00 90 00 [15:42:28]wFMCommunicate OK [15:42:28]SAM_PROTO_GetFieldsCounters done [15:42:28]requested_item shift.num is exist - process it [15:42:28]requested_item shift.opened is exist - process it [15:42:28]req_shift_opened [15:42:28]FM_GetShiftState [15:42:28]SAM_PROTO_GetShiftState [15:42:28]wFMCommunicate request_size=4 [15:42:28]MH_SAM_APDU [15:42:28]CAPDU: 80 13 01 00 [15:42:28]Write to MH i2c: E2 08 00 6F 6A 80 13 01 00 00 00 00 00 56 [15:42:28]Write i2c OK [15:42:28]MH_I2C_Read... [15:42:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:42:28]Read from MH i2c: E2 [15:42:28]MH_I2C_Read... [15:42:28]Read from MH i2c: E2 0E 00 [15:42:28]MH_I2C_Read... [15:42:28]Read from MH i2c: E2 0E 00 6F 6A 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 B5 [15:42:28]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [15:42:28]wFMCommunicate OK [15:42:28]SAM_PROTO_GetShiftState done [15:42:28]FM_GetShiftState done [15:42:28]req_shift_opened done [15:42:28]requested_item shift.open_date is exist - process it [15:42:28]req_shift_open_date [15:42:28]req_shift_open_date done [15:42:28]produce_requested_data done [15:42:28]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187795,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [15:42:28]process_action_free close_receipt [15:42:28]json_value_free [15:42:28]json_value_free done [15:42:28]process_json_proto returns [15:42:28]Send response to host [15:42:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187795,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [15:42:28]free response buf [15:42:28]execute_script done [15:42:28]execute_script returns [15:42:28]free content buf [15:42:28]Sock 9.Close socket [15:42:28]Sock 9.Thread stoped [15:42:32]OFD Sender: No OFD packet to send [15:42:32]accept exits with 8 [15:42:32]New connection [15:42:32]New thread 3067157860 created [15:42:32]Thread 3067014500 joined [15:42:32]Waiting for new connection... [15:42:32] Sock 8.Parse request [15:42:32]Sock 8.Check first char [15:42:32]Sock 8.First char is OK [15:42:32]request: POST /json_proto HTTP/1.0 [15:42:32]Method: POST [15:42:32]URL: /json_proto [15:42:32]Method is POST - this is cgi request [15:42:32]url: /json_proto [15:42:32]query_string will be loaded in cgi processing [15:42:32]execute_cgi json_proto POST (null) [15:42:32]execute_cgi path=json_proto method=POST [15:42:32]POST find Content-Length [15:42:32]Host: 172.17.42.131:8080 [15:42:32]Content-Length: 684 [15:42:32]Content-Type: application/json [15:42:32] [15:42:32]POST finish read [15:42:32]Found Content-Length = 684 [15:42:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209847", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 10.370, "sum" : 800.56, "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" ] } } [15:42:32]execute_script... [15:42: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)209847", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 10.370, "sum" : 800.56, "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" ] } } [15:42:32]POST & json_proto [15:42:32]process_json_proto [15:42:32]json parsed OK: [15:42:32]protocol is kg_v1.0 [15:42:32]action value=close_receipt [15:42:32]process_action close_receipt [15:42:32]cmd_close_receipt [15:42:32]MH_GetDate [15:42:32]Write to MH i2c: F0 00 00 70 6A C9 [15:42:32]Write i2c OK [15:42:32]MH_I2C_Read... [15:42:32]Read from MH i2c: F0 [15:42:32]MH_I2C_Read... [15:42:32]Read from MH i2c: F0 09 00 [15:42:32]MH_I2C_Read... [15:42:32]Read from MH i2c: F0 09 00 70 6A 00 6D 76 16 67 A0 18 CA 66 1A [15:42:32]GetLastDocTimeStamp 1729525349 [15:42:32]current date 1729525357 [15:42:32]FM_GetShiftState [15:42:32]SAM_PROTO_GetShiftState [15:42:32]wFMCommunicate request_size=4 [15:42:32]MH_SAM_APDU [15:42:32]CAPDU: 80 13 01 00 [15:42:32]Write to MH i2c: E2 08 00 71 6A 80 13 01 00 00 00 00 00 58 [15:42:32]Write i2c OK [15:42:32]MH_I2C_Read... [15:42:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:42:32]Read from MH i2c: E2 [15:42:32]MH_I2C_Read... [15:42:32]Read from MH i2c: E2 0E 00 [15:42:32]MH_I2C_Read... [15:42:32]Read from MH i2c: E2 0E 00 71 6A 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 B7 [15:42:32]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [15:42:32]wFMCommunicate OK [15:42:32]SAM_PROTO_GetShiftState done [15:42:32]FM_GetShiftState done [15:42:32]opened in 1729469754 [15:42:32]opened+sec_in_day 1729556154 [15:42:32]quantity*price = 80056 [15:42:32]sum+1 = 80057 [15:42:32]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.56 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 85.01 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 260 21.10.2024 15:42 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 187796 ФПД: 168303453401966 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T154237&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187796&fm=168303453401966&tin=02508201610067®Number=0000000000100030&sum=80000 [15:42:33]StoreToDocumentArchive [15:42:33]shift 460 fd 187796 [15:42:33]save to /storage/0460/doc_00187796 [15:42:33]save last doc name /storage/0460/doc_00187796 to /storage/kkm_last_doc_name [15:42:33]save OK [15:42:33]Clear old archive folders... [15:42:33]ProcessDocumentItem done err = 0, tmpTLVsize=257 [15:42:33]tlvbuf is 0123AC40 [15:42:33]SAM_PROTO_ClearQueue [15:42:33]wFMCommunicate request_size=4 [15:42:33]MH_SAM_APDU [15:42:33]CAPDU: 80 09 00 00 [15:42:33]Write to MH i2c: E2 08 00 7E 6A 80 09 00 00 00 00 00 00 5A [15:42:33]Write i2c OK [15:42:33]MH_I2C_Read... [15:42:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:42:33]Read from MH i2c: E2 [15:42:33]MH_I2C_Read... [15:42:33]Read from MH i2c: E2 03 00 [15:42:33]MH_I2C_Read... [15:42:33]Read from MH i2c: E2 03 00 7E 6A 00 90 00 5C [15:42:33]RAPDU: 90 00 [15:42:33]wFMCommunicate OK [15:42:33]SAM_PROTO_ClearQueue done [15:42:33]KKMCreateOFDPacket [15:42:33]OFDProtocolAddRootSTLVToBuf [15:42:33]FM_MakeSignedData [15:42:33]FM_MakeSignedData [15:42:33]SAM_PROTO_SignData [15:42:33]wFMCommunicate request_size=4 [15:42:33]MH_SAM_APDU [15:42:33]CAPDU: 80 0D 01 02 [15:42:33]Write to MH i2c: E2 08 00 7F 6A 80 0D 01 02 00 00 00 00 62 [15:42:33]Write i2c OK [15:42:33]MH_I2C_Read... [15:42:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:42:33]Read from MH i2c: E2 [15:42:33]MH_I2C_Read... [15:42:33]Read from MH i2c: E2 03 00 [15:42:33]MH_I2C_Read... [15:42:33]Read from MH i2c: E2 03 00 7F 6A 00 90 00 5D [15:42:33]RAPDU: 90 00 [15:42:33]wFMCommunicate OK [15:42:33]wFMCommunicate request_size=255 [15:42:33]MH_SAM_APDU [15:42:33]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 82 28 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 B8 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 35 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 04 01 00 00 F4 03 04 00 6D 76 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 94 DD 02 [15:42:33]Write to MH i2c: E2 02 01 80 6A 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 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 82 28 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 B8 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 35 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 04 01 00 00 F4 03 04 00 6D 76 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 94 DD 02 00 00 F1 [15:42:33]Write i2c OK [15:42:33]MH_I2C_Read... [15:42:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:42:34]Read from MH i2c: E2 [15:42:34]MH_I2C_Read... [15:42:34]Read from MH i2c: E2 03 00 [15:42:34]MH_I2C_Read... [15:42:34]Read from MH i2c: E2 03 00 80 6A 00 90 00 5E [15:42:34]RAPDU: 90 00 [15:42:34]wFMCommunicate OK [15:42:34]wFMCommunicate request_size=16 [15:42:34]MH_SAM_APDU [15:42:34]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 99 12 33 8D F3 6E [15:42:34]Write to MH i2c: E2 13 00 81 6A 80 0D 02 02 0B 00 00 35 04 06 00 99 12 33 8D F3 6E 00 00 86 [15:42:34]Write i2c OK [15:42:34]MH_I2C_Read... [15:42:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:42:34]Read from MH i2c: E2 [15:42:34]MH_I2C_Read... [15:42:34]Read from MH i2c: E2 03 00 [15:42:34]MH_I2C_Read... [15:42:34]Read from MH i2c: E2 03 00 81 6A 00 90 00 5F [15:42:34]RAPDU: 90 00 [15:42:34]wFMCommunicate OK [15:42:34]wFMCommunicate request_size=4 [15:42:34]MH_SAM_APDU [15:42:34]CAPDU: 80 0D 03 02 [15:42:34]Write to MH i2c: E2 08 00 82 6A 80 0D 03 02 00 00 00 00 67 [15:42:34]Write i2c OK [15:42:34]MH_I2C_Read... [15:42:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:42:34]Read from MH i2c: E2 [15:42:34]MH_I2C_Read... [15:42:34]Read from MH i2c: E2 0B 00 [15:42:34]MH_I2C_Read... [15:42:34]Read from MH i2c: E2 0B 00 82 6A 00 79 30 91 78 34 C1 15 4D 90 00 71 [15:42:34]RAPDU: 79 30 91 78 34 C1 15 4D 90 00 [15:42:34]wFMCommunicate OK [15:42:34]SAM_PROTO_SignData done [15:42:34]FM_MakeSignedData done [15:42:34]CreateOFDProtocolMessage [15:42:34]wFMCommunicate request_size=4 [15:42:34]MH_SAM_APDU [15:42:34]CAPDU: 80 11 00 00 [15:42:34]Write to MH i2c: E2 08 00 83 6A 80 11 00 00 00 00 00 00 67 [15:42:34]Write i2c OK [15:42:34]MH_I2C_Read... [15:42:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:42:34]Read from MH i2c: E2 [15:42:34]MH_I2C_Read... [15:42:34]Read from MH i2c: E2 17 00 [15:42:34]MH_I2C_Read... [15:42:34]Read from MH i2c: E2 17 00 83 6A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 B5 [15:42:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [15:42:34]wFMCommunicate OK [15:42:34]CreateOFDProtocolMessage done [15:42:34]OFDSenderStorePacket 187796 [15:42:34]StoreOFDPacket docnum=187796 [15:42:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 A0 BB 0D 01 82 16 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 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 82 28 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 B8 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 35 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 04 01 00 00 F4 03 04 00 6D 76 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 94 DD 02 00 35 04 06 00 99 12 33 8D F3 6E 79 30 91 78 34 C1 15 4D [15:42:34]CheckFolder [15:42:34]dirname=/storage/ofd_packets [15:42:34]CheckFolder done [15:42:34]ProducePacketName [15:42:34]name=ofd_packets/00187796 [15:42:34]NVStorageSaveData ofd_packets/00187796 [15:42:34]File name is /storage/ofd_packets/00187796 [15:42:34]Write 307 bytes [15:42:34]NVStorageSaveData done [15:42:34]OFDSenderStorePacket done [15:42:34]KKMCreateOFDPacket done [15:42:34]NVStorageSaveData kkm_last_timestamp [15:42:34]File name is /storage/kkm_last_timestamp [15:42:34]Write 4 bytes [15:42:34]NVStorageSaveData done [15:42:34]ExternCall_PrintAddStr [15:42:34]wPrintStart [15:42:34]Write to MH i2c: 01 00 00 84 6A EE [15:42:34]Write i2c OK [15:42:34]MH_I2C_Read... [15:42:34]Read from MH i2c: 01 [15:42:34]MH_I2C_Read... [15:42:34]Read from MH i2c: 01 07 00 [15:42:34]MH_I2C_Read... [15:42:34]Read from MH i2c: 01 07 00 84 6A 00 00 00 00 00 FF 0F 03 [15:42:34]RasterBufferAndPrint [15:42:34]line Счет N : (1)209847 [15:42:34]line ИНН: 02508201610067 [15:42:34]line Контрольно-Кассовый Чек [15:42:34]line ПРОДАЖА [15:42:34]line ТРК (МРК, ГНК) : 11 [15:42:34]line Товар: 2710194210 [15:42:34]line D-ENERGY ДТ-К-5 [15:42:34]line 10.370 * 77.20 [15:42:34]line = 800.56 [15:42:34]line НДС 12% НСП 1% [15:42:34]line > о реализуемом товаре [15:42:34]line ОКРУГЛЕНИЕ: -0.56 [15:42:34]line ИТОГО: 800.00 [15:42:34]line Внесено: 800.00 [15:42:34]line СДАЧА: 0.00 [15:42:34]line НСП 1% : 7.08 [15:42:34]line НДС 12% : 85.01 [15:42:34]line Наличными: 800.00 [15:42:34]line Безнал.: 0.00 [15:42:34]line Место: АЗС № 86 "Партнер Нефть" [15:42:34]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [15:42:34]line СНО: Общий режим [15:42:34]line Чек 260 21.10.2024 15:42 [15:42:34]line Смена: 460 ФФД: 1.0 [15:42:34]line ЗНМ: 0300000155 [15:42:34]line РНМ: 0000000000100030 [15:42:34]line Версия ККМ: 001 [15:42:34]line ФМ: 0000000000965340 [15:42:34]line ФД: 187796 [15:42:34]line ФПД: 168303453401966 [15:42:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T154237&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187796&fm=168303453401966&tin=02508201610067®Number=0000000000100030&sum=80000 [15:42:34]written 0, free lines is 4095 [15:42:34]OFD Sender: Processing packet 187796 [packets to send 1062, broken 1061] [15:42:34]ProducePacketName [15:42:34]name=ofd_packets/00187796 [15:42:34]OFD Sender: To server: pG, [15:42:34]CommunicateWithHost lk.salyk.kg:30040 [15:42:34]ConnectInit lk.salyk.kg [15:42:34]Connected sock=11 [15:42:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 A0 BB 0D 01 82 16 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 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 82 28 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 B8 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 35 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 04 01 00 00 F4 03 04 00 6D 76 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 94 DD 02 00 35 04 06 00 99 12 33 8D F3 6E 79 30 91 78 34 C1 15 4D [15:42:34]Write to MH i2c: 01 00 00 AF 6A 19 [15:42:34]Write i2c OK [15:42:34]MH_I2C_Read... [15:42:34]Read from MH i2c: 01 [15:42:34]MH_I2C_Read... [15:42:34]Read from MH i2c: 01 07 00 [15:42:34]MH_I2C_Read... [15:42:34]Read from MH i2c: 01 07 00 AF 6A 00 00 00 00 00 61 0C 8D [15:42:34]RasterBufferAndPrint [15:42:34]line [15:42:34]line [15:42:34]line [15:42:34]line [15:42:34]line [15:42:34]written 0, free lines is 3176 [15:42:34]MH_Cut [15:42:34]Write to MH i2c: D1 01 00 B6 6A 01 F2 [15:42:34]Write i2c OK [15:42:34]MH_I2C_Read... [15:42:34]Read from MH i2c: D1 [15:42:34]MH_I2C_Read... [15:42:34]Read from MH i2c: D1 01 00 [15:42:34]MH_I2C_Read... [15:42:34]Read from MH i2c: D1 01 00 B6 6A 00 F1 [15:42:34]Write to MH i2c: 01 00 00 B7 6A 21 [15:42:34]Write i2c OK [15:42:34]MH_I2C_Read... [15:42:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 03 B0 47 00 A0 14 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 94 DD 02 00 F4 03 04 00 5C 20 16 67 B6 04 01 00 00 0F 4A 43 7B 22 D1 B8 56 [15:42:35]CommunicateWithHost err = 0 [15:42:35]CheckOFDResponse [15:42:35]1017 (14) - 77093643461234 [15:42:35]1041 (16) - 0000000000965340 [15:42:35]1040 (4) - 187796 [15:42:35]1012 (4) - 21.10.2024 09:35 [15:42:35]1206 (1) - 0 [15:42:35]OFD Sender: Remove packet 187796 [15:42:35]ProducePacketName [15:42:35]name=ofd_packets/00187796 [15:42:35]NVStorageDeleteData [15:42:35]OFD Sender: No OFD packet to send [15:42:36]*** Cut start [15:42:36]*** Partial cut [15:42:36]*** CUTSNS_PIN = 1 [15:42:36]*** CUTSNS_PIN = 0 [15:42:36]*** Brake cut motor [15:42:36]Read from MH i2c: 01 [15:42:36]MH_I2C_Read... [15:42:36]*** Stop cut motor [15:42:36]*** Cut end [15:42:36]Read from MH i2c: 01 07 00 [15:42:36]MH_I2C_Read... [15:42:36]Read from MH i2c: 01 07 00 B7 6A 00 00 00 00 00 FF 0F 36 [15:42:36]process_action close_receipt done [15:42:36]requested_data is exist [15:42:36]produce_requested_data [15:42:36]requested_item fm.sn is exist - process it [15:42:36]wFMCommunicate request_size=4 [15:42:36]MH_SAM_APDU [15:42:36]CAPDU: 80 11 00 00 [15:42:36]Write to MH i2c: E2 08 00 B8 6A 80 11 00 00 00 00 00 00 9C [15:42:36]Write i2c OK [15:42:36]MH_I2C_Read... [15:42:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:42:36]Read from MH i2c: E2 [15:42:36]MH_I2C_Read... [15:42:36]Read from MH i2c: E2 17 00 [15:42:36]MH_I2C_Read... [15:42:36]Read from MH i2c: E2 17 00 B8 6A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 EA [15:42:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [15:42:36]wFMCommunicate OK [15:42:36]requested_item fd.num is exist - process it [15:42:36]SAM_PROTO_GetFieldsCounters [15:42:36]wFMCommunicate request_size=4 [15:42:36]MH_SAM_APDU [15:42:36]CAPDU: 80 13 00 00 [15:42:36]Write to MH i2c: E2 08 00 B9 6A 80 13 00 00 00 00 00 00 9F [15:42:36]Write i2c OK [15:42:36]MH_I2C_Read... [15:42:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:42:36]Read from MH i2c: E2 [15:42:36]MH_I2C_Read... [15:42:36]Read from MH i2c: E2 62 00 [15:42:36]MH_I2C_Read... [15:42:36]Read from MH i2c: E2 62 00 B9 6A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 94 DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 04 01 00 00 5E 04 04 00 04 01 00 00 57 04 04 00 05 01 00 00 19 04 04 00 00 00 00 00 90 00 F5 [15:42:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 94 DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 04 01 00 00 5E 04 04 00 04 01 00 00 57 04 04 00 05 01 00 00 19 04 04 00 00 00 00 00 90 00 [15:42:36]wFMCommunicate OK [15:42:36]SAM_PROTO_GetFieldsCounters done [15:42:36]requested_item shift.num is exist - process it [15:42:36]requested_item shift.opened is exist - process it [15:42:36]req_shift_opened [15:42:36]FM_GetShiftState [15:42:36]SAM_PROTO_GetShiftState [15:42:36]wFMCommunicate request_size=4 [15:42:36]MH_SAM_APDU [15:42:36]CAPDU: 80 13 01 00 [15:42:36]Write to MH i2c: E2 08 00 BA 6A 80 13 01 00 00 00 00 00 A1 [15:42:36]Write i2c OK [15:42:36]MH_I2C_Read... [15:42:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:42:37]Read from MH i2c: E2 [15:42:37]MH_I2C_Read... [15:42:37]Read from MH i2c: E2 0E 00 [15:42:37]MH_I2C_Read... [15:42:37]Read from MH i2c: E2 0E 00 BA 6A 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 00 [15:42:37]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [15:42:37]wFMCommunicate OK [15:42:37]SAM_PROTO_GetShiftState done [15:42:37]FM_GetShiftState done [15:42:37]req_shift_opened done [15:42:37]requested_item shift.open_date is exist - process it [15:42:37]req_shift_open_date [15:42:37]req_shift_open_date done [15:42:37]produce_requested_data done [15:42:37]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187796,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [15:42:37]process_action_free close_receipt [15:42:37]json_value_free [15:42:37]json_value_free done [15:42:37]process_json_proto returns [15:42:37]Send response to host [15:42:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187796,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [15:42:37]free response buf [15:42:37]execute_script done [15:42:37]execute_script returns [15:42:37]free content buf [15:42:37]Sock 8.Close socket [15:42:37]Sock 8.Thread stoped [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:46]OFD Sender: No OFD packet to send [15:43:51]OFD Sender: No OFD packet to send [15:43:56]OFD Sender: No OFD packet to send [15:44:01]OFD Sender: No OFD packet to send [15:44:06]OFD Sender: No OFD packet to send [15:44:11]OFD Sender: No OFD packet to send [15:44:16]OFD Sender: No OFD packet to send [15:44:21]OFD Sender: No OFD packet to send [15:44:26]OFD Sender: No OFD packet to send [15:44:31]OFD Sender: No OFD packet to send [15:44:36]OFD Sender: No OFD packet to send [15:44:41]OFD Sender: No OFD packet to send [15:44:46]OFD Sender: No OFD packet to send [15:44:51]OFD Sender: No OFD packet to send [15:44:56]OFD Sender: No OFD packet to send [15:45:01]OFD Sender: No OFD packet to send [15:45:06]OFD Sender: No OFD packet to send [15:45:11]OFD Sender: No OFD packet to send [15:45:16]OFD Sender: No OFD packet to send [15:45:21]OFD Sender: No OFD packet to send [15:45:26]OFD Sender: No OFD packet to send [15:45:31]OFD Sender: No OFD packet to send [15:45:36]OFD Sender: No OFD packet to send [15:45:41]OFD Sender: No OFD packet to send [15:45:46]OFD Sender: No OFD packet to send [15:45:49]accept exits with 9 [15:45:49]New connection [15:45:49]New thread 3067014500 created [15:45:49]Thread 3067157860 joined [15:45:49]Waiting for new connection... [15:45:49] Sock 9.Parse request [15:45:49]Sock 9.Check first char [15:45:49]Sock 9.First char is OK [15:45:49]request: POST /json_proto HTTP/1.0 [15:45:49]Method: POST [15:45:49]URL: /json_proto [15:45:49]Method is POST - this is cgi request [15:45:49]url: /json_proto [15:45:49]query_string will be loaded in cgi processing [15:45:49]execute_cgi json_proto POST (null) [15:45:49]execute_cgi path=json_proto method=POST [15:45:49]POST find Content-Length [15:45:49]Host: 172.17.42.131:8080 [15:45:49]Content-Length: 769 [15:45:49]Content-Type: application/json [15:45:49] [15:45:49]POST finish read [15:45:49]Found Content-Length = 769 [15:45:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209849", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 26.370, "sum" : 1764.15, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1764.15 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:45:49]execute_script... [15:45: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)209849", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 26.370, "sum" : 1764.15, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1764.15 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:45:49]POST & json_proto [15:45:49]process_json_proto [15:45:49]json parsed OK: [15:45:49]protocol is kg_v1.0 [15:45:49]action value=close_receipt [15:45:49]process_action close_receipt [15:45:49]cmd_close_receipt [15:45:49]MH_GetDate [15:45:49]Write to MH i2c: F0 00 00 BB 6A 14 [15:45:49]Write i2c OK [15:45:49]MH_I2C_Read... [15:45:49]Read from MH i2c: F0 [15:45:49]MH_I2C_Read... [15:45:49]Read from MH i2c: F0 09 00 [15:45:49]MH_I2C_Read... [15:45:49]Read from MH i2c: F0 09 00 BB 6A 00 32 77 16 67 A0 18 CA 66 2B [15:45:49]GetLastDocTimeStamp 1729525357 [15:45:49]current date 1729525554 [15:45:49]FM_GetShiftState [15:45:49]SAM_PROTO_GetShiftState [15:45:49]wFMCommunicate request_size=4 [15:45:49]MH_SAM_APDU [15:45:49]CAPDU: 80 13 01 00 [15:45:49]Write to MH i2c: E2 08 00 BC 6A 80 13 01 00 00 00 00 00 A3 [15:45:49]Write i2c OK [15:45:49]MH_I2C_Read... [15:45:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:45:49]Read from MH i2c: E2 [15:45:49]MH_I2C_Read... [15:45:49]Read from MH i2c: E2 0E 00 [15:45:49]MH_I2C_Read... [15:45:49]Read from MH i2c: E2 0E 00 BC 6A 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 02 [15:45:49]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [15:45:49]wFMCommunicate OK [15:45:49]SAM_PROTO_GetShiftState done [15:45:49]FM_GetShiftState done [15:45:49]opened in 1729469754 [15:45:49]opened+sec_in_day 1729556154 [15:45:49]quantity*price = 176415 [15:45:49]sum+1 = 176416 [15:45:49]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1764.15 НСП 1% : 15.61 НДС 12% : 187.34 Наличными: 0.00 Безнал.: 1764.15 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 261 21.10.2024 15:45 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000965340 ФД: 187797 ФПД: 31267540317071 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T154554&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187797&fm=31267540317071&tin=02508201610067®Number=0000000000100030&sum=176415 [15:45:50]StoreToDocumentArchive [15:45:50]shift 460 fd 187797 [15:45:50]save to /storage/0460/doc_00187797 [15:45:50]save last doc name /storage/0460/doc_00187797 to /storage/kkm_last_doc_name [15:45:50]save OK [15:45:50]Clear old archive folders... [15:45:50]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:45:50]tlvbuf is 01272A40 [15:45:50]SAM_PROTO_ClearQueue [15:45:50]wFMCommunicate request_size=4 [15:45:50]MH_SAM_APDU [15:45:50]CAPDU: 80 09 00 00 [15:45:50]Write to MH i2c: E2 08 00 C9 6A 80 09 00 00 00 00 00 00 A5 [15:45:50]Write i2c OK [15:45:50]MH_I2C_Read... [15:45:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:45:50]Read from MH i2c: E2 [15:45:50]MH_I2C_Read... [15:45:50]Read from MH i2c: E2 03 00 [15:45:50]MH_I2C_Read... [15:45:50]Read from MH i2c: E2 03 00 C9 6A 00 90 00 A7 [15:45:50]RAPDU: 90 00 [15:45:50]wFMCommunicate OK [15:45:50]SAM_PROTO_ClearQueue done [15:45:50]KKMCreateOFDPacket [15:45:50]OFDProtocolAddRootSTLVToBuf [15:45:50]FM_MakeSignedData [15:45:50]FM_MakeSignedData [15:45:50]SAM_PROTO_SignData [15:45:50]wFMCommunicate request_size=4 [15:45:50]MH_SAM_APDU [15:45:50]CAPDU: 80 0D 01 02 [15:45:50]Write to MH i2c: E2 08 00 CA 6A 80 0D 01 02 00 00 00 00 AD [15:45:50]Write i2c OK [15:45:50]MH_I2C_Read... [15:45:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:45:50]Read from MH i2c: E2 [15:45:50]MH_I2C_Read... [15:45:50]Read from MH i2c: E2 03 00 [15:45:50]MH_I2C_Read... [15:45:50]Read from MH i2c: E2 03 00 CA 6A 00 90 00 A8 [15:45:50]RAPDU: 90 00 [15:45:50]wFMCommunicate OK [15:45:50]wFMCommunicate request_size=255 [15:45:50]MH_SAM_APDU [15:45:50]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 02 67 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 1F B1 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1F B1 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 19 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2E 49 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 1F B1 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 01 00 00 F4 03 04 00 32 77 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 95 DD 02 00 35 04 06 00 1C [15:45:50]Write to MH i2c: E2 02 01 CB 6A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 02 67 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 1F B1 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1F B1 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 19 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2E 49 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 1F B1 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 01 00 00 F4 03 04 00 32 77 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 95 DD 02 00 35 04 06 00 1C 00 00 D5 [15:45:50]Write i2c OK [15:45:50]MH_I2C_Read... [15:45:50]Read from MH i2c: E2 [15:45:50]MH_I2C_Read... [15:45:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:45:50]Read from MH i2c: E2 03 00 [15:45:50]MH_I2C_Read... [15:45:50]Read from MH i2c: E2 03 00 CB 6A 00 90 00 A9 [15:45:50]RAPDU: 90 00 [15:45:50]wFMCommunicate OK [15:45:50]wFMCommunicate request_size=10 [15:45:50]MH_SAM_APDU [15:45:50]CAPDU: 80 0D 02 02 05 70 0A A2 33 8F [15:45:50]Write to MH i2c: E2 0D 00 CC 6A 80 0D 02 02 05 00 70 0A A2 33 8F 00 00 98 [15:45:50]Write i2c OK [15:45:50]MH_I2C_Read... [15:45:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:45:50]Read from MH i2c: E2 [15:45:50]MH_I2C_Read... [15:45:50]Read from MH i2c: E2 03 00 [15:45:50]MH_I2C_Read... [15:45:50]Read from MH i2c: E2 03 00 CC 6A 00 90 00 AA [15:45:50]RAPDU: 90 00 [15:45:50]wFMCommunicate OK [15:45:50]wFMCommunicate request_size=4 [15:45:50]MH_SAM_APDU [15:45:50]CAPDU: 80 0D 03 02 [15:45:50]Write to MH i2c: E2 08 00 CD 6A 80 0D 03 02 00 00 00 00 B2 [15:45:50]Write i2c OK [15:45:50]MH_I2C_Read... [15:45:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:45:50]Read from MH i2c: E2 [15:45:50]MH_I2C_Read... [15:45:50]Read from MH i2c: E2 0B 00 [15:45:50]MH_I2C_Read... [15:45:50]Read from MH i2c: E2 0B 00 CD 6A 00 E3 E9 E6 7B E1 20 E0 68 90 00 29 [15:45:50]RAPDU: E3 E9 E6 7B E1 20 E0 68 90 00 [15:45:50]wFMCommunicate OK [15:45:50]SAM_PROTO_SignData done [15:45:50]FM_MakeSignedData done [15:45:50]CreateOFDProtocolMessage [15:45:50]wFMCommunicate request_size=4 [15:45:50]MH_SAM_APDU [15:45:50]CAPDU: 80 11 00 00 [15:45:50]Write to MH i2c: E2 08 00 CE 6A 80 11 00 00 00 00 00 00 B2 [15:45:50]Write i2c OK [15:45:50]MH_I2C_Read... [15:45:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:45:51]Read from MH i2c: E2 [15:45:51]MH_I2C_Read... [15:45:51]Read from MH i2c: E2 17 00 [15:45:51]MH_I2C_Read... [15:45:51]Read from MH i2c: E2 17 00 CE 6A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 00 [15:45:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [15:45:51]wFMCommunicate OK [15:45:51]CreateOFDProtocolMessage done [15:45:51]OFDSenderStorePacket 187797 [15:45:51]StoreOFDPacket docnum=187797 [15:45:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 12 32 07 01 40 3F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 02 67 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 1F B1 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1F B1 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 19 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2E 49 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 1F B1 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 01 00 00 F4 03 04 00 32 77 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 95 DD 02 00 35 04 06 00 1C 70 0A A2 33 8F E3 E9 E6 7B E1 20 E0 68 [15:45:51]CheckFolder [15:45:51]dirname=/storage/ofd_packets [15:45:51]CheckFolder done [15:45:51]ProducePacketName [15:45:51]name=ofd_packets/00187797 [15:45:51]NVStorageSaveData ofd_packets/00187797 [15:45:51]File name is /storage/ofd_packets/00187797 [15:45:51]Write 301 bytes [15:45:51]NVStorageSaveData done [15:45:51]OFDSenderStorePacket done [15:45:51]KKMCreateOFDPacket done [15:45:51]NVStorageSaveData kkm_last_timestamp [15:45:51]File name is /storage/kkm_last_timestamp [15:45:51]Write 4 bytes [15:45:51]NVStorageSaveData done [15:45:51]ExternCall_PrintAddStr [15:45:51]wPrintStart [15:45:51]Write to MH i2c: 01 00 00 CF 6A 39 [15:45:51]Write i2c OK [15:45:51]MH_I2C_Read... [15:45:51]Read from MH i2c: 01 [15:45:51]MH_I2C_Read... [15:45:51]Read from MH i2c: 01 07 00 [15:45:51]MH_I2C_Read... [15:45:51]Read from MH i2c: 01 07 00 CF 6A 00 00 00 00 00 FF 0F 4E [15:45:51]RasterBufferAndPrint [15:45:51]line Счет N : (1)209849 [15:45:51]line ИНН: 02508201610067 [15:45:51]line Контрольно-Кассовый Чек [15:45:51]line ПРОДАЖА [15:45:51]line ТРК (МРК, ГНК) : 32 [15:45:51]line Товар: 2710124130 [15:45:51]line Аи-92-К-3 [15:45:51]line 26.370 * 66.90 [15:45:51]line = 1764.15 [15:45:51]line НДС 12% НСП 1% [15:45:51]line > о реализуемом товаре [15:45:51]line ИТОГО: 1764.15 [15:45:51]line НСП 1% : 15.61 [15:45:51]line НДС 12% : 187.34 [15:45:51]line Наличными: 0.00 [15:45:51]line Безнал.: 1764.15 [15:45:51]line Место: АЗС № 86 "Партнер Нефть" [15:45:51]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [15:45:51]line СНО: Общий режим [15:45:51]line Чек 261 21.10.2024 15:45 [15:45:51]line Смена: 460 ФФД: 1.0 [15:45:51]line ЗНМ: 0300000155 [15:45:51]line РНМ: 0000000000100030 [15:45:51]line Версия ККМ: 001 [15:45:51]line Платежная система: Mbank [15:45:51]line ФМ: 0000000000965340 [15:45:51]line ФД: 187797 [15:45:51]line ФПД: 31267540317071 [15:45:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T154554&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187797&fm=31267540317071&tin=02508201610067®Number=0000000000100030&sum=176415 [15:45:51]written 0, free lines is 4095 [15:45:51]OFD Sender: Processing packet 187797 [packets to send 1062, broken 1061] [15:45:51]ProducePacketName [15:45:51]name=ofd_packets/00187797 [15:45:51]OFD Sender: To server: pG, [15:45:51]CommunicateWithHost lk.salyk.kg:30040 [15:45:51]ConnectInit lk.salyk.kg [15:45:51]Connected sock=10 [15:45:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 12 32 07 01 40 3F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 02 67 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 1F B1 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1F B1 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 19 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2E 49 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 1F B1 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 01 00 00 F4 03 04 00 32 77 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 95 DD 02 00 35 04 06 00 1C 70 0A A2 33 8F E3 E9 E6 7B E1 20 E0 68 [15:45:51]Write to MH i2c: 01 00 00 F8 6A 62 [15:45:51]Write i2c OK [15:45:51]MH_I2C_Read... [15:45:51]Read from MH i2c: 01 [15:45:51]MH_I2C_Read... [15:45:51]Read from MH i2c: 01 07 00 [15:45:51]MH_I2C_Read... [15:45:51]Read from MH i2c: 01 07 00 F8 6A 00 00 00 00 00 93 0C 08 [15:45:51]RasterBufferAndPrint [15:45:51]line [15:45:51]line [15:45:51]line [15:45:51]line [15:45:51]line [15:45:51]written 0, free lines is 3222 [15:45:51]MH_Cut [15:45:51]Write to MH i2c: D1 01 00 FF 6A 01 3B [15:45:51]Write i2c OK [15:45:51]MH_I2C_Read... [15:45:51]Read from MH i2c: D1 [15:45:51]MH_I2C_Read... [15:45:51]Read from MH i2c: D1 01 00 [15:45:51]MH_I2C_Read... [15:45:51]Read from MH i2c: D1 01 00 FF 6A 00 3A [15:45:51]Write to MH i2c: 01 00 00 00 6B 6B [15:45:51]Write i2c OK [15:45:51]MH_I2C_Read... [15:45:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 30 34 47 00 73 43 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 95 DD 02 00 F4 03 04 00 21 21 16 67 B6 04 01 00 00 9D 92 3C E4 70 A3 9D B2 [15:45:51]CommunicateWithHost err = 0 [15:45:51]CheckOFDResponse [15:45:51]1017 (14) - 77093643461234 [15:45:51]1041 (16) - 0000000000965340 [15:45:51]1040 (4) - 187797 [15:45:51]1012 (4) - 21.10.2024 09:38 [15:45:51]1206 (1) - 0 [15:45:51]OFD Sender: Remove packet 187797 [15:45:51]ProducePacketName [15:45:51]name=ofd_packets/00187797 [15:45:51]NVStorageDeleteData [15:45:52]OFD Sender: No OFD packet to send [15:45:52]*** Cut start [15:45:52]*** Partial cut [15:45:52]*** CUTSNS_PIN = 1 [15:45:52]*** CUTSNS_PIN = 0 [15:45:52]*** Brake cut motor [15:45:53]Read from MH i2c: 01 [15:45:53]MH_I2C_Read... [15:45:53]*** Stop cut motor [15:45:53]*** Cut end [15:45:53]Read from MH i2c: 01 07 00 [15:45:53]MH_I2C_Read... [15:45:53]Read from MH i2c: 01 07 00 00 6B 00 00 00 00 00 FF 0F 80 [15:45:53]process_action close_receipt done [15:45:53]requested_data is exist [15:45:53]produce_requested_data [15:45:53]requested_item fm.sn is exist - process it [15:45:53]wFMCommunicate request_size=4 [15:45:53]MH_SAM_APDU [15:45:53]CAPDU: 80 11 00 00 [15:45:53]Write to MH i2c: E2 08 00 01 6B 80 11 00 00 00 00 00 00 E6 [15:45:53]Write i2c OK [15:45:53]MH_I2C_Read... [15:45:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:45:53]Read from MH i2c: E2 [15:45:53]MH_I2C_Read... [15:45:53]Read from MH i2c: E2 17 00 [15:45:53]MH_I2C_Read... [15:45:53]Read from MH i2c: E2 17 00 01 6B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 34 [15:45:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [15:45:53]wFMCommunicate OK [15:45:53]requested_item fd.num is exist - process it [15:45:53]SAM_PROTO_GetFieldsCounters [15:45:53]wFMCommunicate request_size=4 [15:45:53]MH_SAM_APDU [15:45:53]CAPDU: 80 13 00 00 [15:45:53]Write to MH i2c: E2 08 00 02 6B 80 13 00 00 00 00 00 00 E9 [15:45:53]Write i2c OK [15:45:53]MH_I2C_Read... [15:45:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:45:53]Read from MH i2c: E2 [15:45:53]MH_I2C_Read... [15:45:53]Read from MH i2c: E2 62 00 [15:45:53]MH_I2C_Read... [15:45:53]Read from MH i2c: E2 62 00 02 6B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 95 DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 05 01 00 00 5E 04 04 00 05 01 00 00 57 04 04 00 06 01 00 00 19 04 04 00 00 00 00 00 90 00 43 [15:45:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 95 DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 05 01 00 00 5E 04 04 00 05 01 00 00 57 04 04 00 06 01 00 00 19 04 04 00 00 00 00 00 90 00 [15:45:53]wFMCommunicate OK [15:45:53]SAM_PROTO_GetFieldsCounters done [15:45:53]requested_item shift.num is exist - process it [15:45:53]requested_item shift.opened is exist - process it [15:45:53]req_shift_opened [15:45:53]FM_GetShiftState [15:45:53]SAM_PROTO_GetShiftState [15:45:53]wFMCommunicate request_size=4 [15:45:53]MH_SAM_APDU [15:45:53]CAPDU: 80 13 01 00 [15:45:53]Write to MH i2c: E2 08 00 03 6B 80 13 01 00 00 00 00 00 EB [15:45:53]Write i2c OK [15:45:53]MH_I2C_Read... [15:45:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:45:53]Read from MH i2c: E2 [15:45:53]MH_I2C_Read... [15:45:53]Read from MH i2c: E2 0E 00 [15:45:53]MH_I2C_Read... [15:45:53]Read from MH i2c: E2 0E 00 03 6B 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 4A [15:45:53]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [15:45:53]wFMCommunicate OK [15:45:53]SAM_PROTO_GetShiftState done [15:45:53]FM_GetShiftState done [15:45:53]req_shift_opened done [15:45:53]requested_item shift.open_date is exist - process it [15:45:53]req_shift_open_date [15:45:53]req_shift_open_date done [15:45:53]produce_requested_data done [15:45:53]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187797,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [15:45:53]process_action_free close_receipt [15:45:53]json_value_free [15:45:53]json_value_free done [15:45:53]process_json_proto returns [15:45:53]Send response to host [15:45:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187797,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [15:45:53]free response buf [15:45:53]execute_script done [15:45:53]execute_script returns [15:45:53]free content buf [15:45:53]Sock 9.Close socket [15:45:53]Sock 9.Thread stoped [15:45:57]OFD Sender: No OFD packet to send [15:46:02]OFD Sender: No OFD packet to send [15:46:07]OFD Sender: No OFD packet to send [15:46:12]OFD Sender: No OFD packet to send [15:46:17]OFD Sender: No OFD packet to send [15:46:22]OFD Sender: No OFD packet to send [15:46:27]OFD Sender: No OFD packet to send [15:46:32]OFD Sender: No OFD packet to send [15:46:37]OFD Sender: No OFD packet to send [15:46:42]OFD Sender: No OFD packet to send [15:46:47]OFD Sender: No OFD packet to send [15:46:52]OFD Sender: No OFD packet to send [15:46:57]OFD Sender: No OFD packet to send [15:47:02]OFD Sender: No OFD packet to send [15:47:03]accept exits with 8 [15:47:03]New connection [15:47:03]New thread 3067157860 created [15:47:03]Thread 3067014500 joined [15:47:03]Waiting for new connection... [15:47:03] Sock 8.Parse request [15:47:03]Sock 8.Check first char [15:47:03]Sock 8.First char is OK [15:47:03]request: POST /json_proto HTTP/1.0 [15:47:03]Method: POST [15:47:03]URL: /json_proto [15:47:03]Method is POST - this is cgi request [15:47:03]url: /json_proto [15:47:03]query_string will be loaded in cgi processing [15:47:03]execute_cgi json_proto POST (null) [15:47:03]execute_cgi path=json_proto method=POST [15:47:03]POST find Content-Length [15:47:03]Host: 172.17.42.131:8080 [15:47:03]Content-Length: 766 [15:47:03]Content-Type: application/json [15:47:03] [15:47:03]POST finish read [15:47:03]Found Content-Length = 766 [15:47:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209850", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:47:03]execute_script... [15:47: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)209850", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:47:03]POST & json_proto [15:47:03]process_json_proto [15:47:03]json parsed OK: [15:47:03]protocol is kg_v1.0 [15:47:03]action value=close_receipt [15:47:03]process_action close_receipt [15:47:03]cmd_close_receipt [15:47:03]MH_GetDate [15:47:03]Write to MH i2c: F0 00 00 04 6B 5E [15:47:03]Write i2c OK [15:47:03]MH_I2C_Read... [15:47:03]Read from MH i2c: F0 [15:47:03]MH_I2C_Read... [15:47:03]Read from MH i2c: F0 09 00 [15:47:03]MH_I2C_Read... [15:47:03]Read from MH i2c: F0 09 00 04 6B 00 7B 77 16 67 A0 18 CA 66 BE [15:47:03]GetLastDocTimeStamp 1729525554 [15:47:03]current date 1729525627 [15:47:03]FM_GetShiftState [15:47:03]SAM_PROTO_GetShiftState [15:47:03]wFMCommunicate request_size=4 [15:47:03]MH_SAM_APDU [15:47:03]CAPDU: 80 13 01 00 [15:47:03]Write to MH i2c: E2 08 00 05 6B 80 13 01 00 00 00 00 00 ED [15:47:03]Write i2c OK [15:47:03]MH_I2C_Read... [15:47:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:47:03]Read from MH i2c: E2 [15:47:03]MH_I2C_Read... [15:47:03]Read from MH i2c: E2 0E 00 [15:47:03]MH_I2C_Read... [15:47:03]Read from MH i2c: E2 0E 00 05 6B 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 4C [15:47:03]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [15:47:03]wFMCommunicate OK [15:47:03]SAM_PROTO_GetShiftState done [15:47:03]FM_GetShiftState done [15:47:03]opened in 1729469754 [15:47:03]opened+sec_in_day 1729556154 [15:47:03]quantity*price = 50041 [15:47:03]sum+1 = 50042 [15:47:03]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.41 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 0.00 Безнал.: 500.41 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 262 21.10.2024 15:47 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000965340 ФД: 187798 ФПД: 34166127693722 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T154708&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187798&fm=34166127693722&tin=02508201610067®Number=0000000000100030&sum=50041 [15:47:04]StoreToDocumentArchive [15:47:04]shift 460 fd 187798 [15:47:04]save to /storage/0460/doc_00187798 [15:47:04]save last doc name /storage/0460/doc_00187798 to /storage/kkm_last_doc_name [15:47:04]save OK [15:47:04]Clear old archive folders... [15:47:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:47:04]tlvbuf is 011158B0 [15:47:04]SAM_PROTO_ClearQueue [15:47:04]wFMCommunicate request_size=4 [15:47:04]MH_SAM_APDU [15:47:04]CAPDU: 80 09 00 00 [15:47:04]Write to MH i2c: E2 08 00 12 6B 80 09 00 00 00 00 00 00 EF [15:47:04]Write i2c OK [15:47:04]MH_I2C_Read... [15:47:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:47:04]Read from MH i2c: E2 [15:47:04]MH_I2C_Read... [15:47:04]Read from MH i2c: E2 03 00 [15:47:04]MH_I2C_Read... [15:47:04]Read from MH i2c: E2 03 00 12 6B 00 90 00 F1 [15:47:04]RAPDU: 90 00 [15:47:04]wFMCommunicate OK [15:47:04]SAM_PROTO_ClearQueue done [15:47:04]KKMCreateOFDPacket [15:47:04]OFDProtocolAddRootSTLVToBuf [15:47:04]FM_MakeSignedData [15:47:04]FM_MakeSignedData [15:47:04]SAM_PROTO_SignData [15:47:04]wFMCommunicate request_size=4 [15:47:04]MH_SAM_APDU [15:47:04]CAPDU: 80 0D 01 02 [15:47:04]Write to MH i2c: E2 08 00 13 6B 80 0D 01 02 00 00 00 00 F7 [15:47:04]Write i2c OK [15:47:04]MH_I2C_Read... [15:47:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:47:04]Read from MH i2c: E2 [15:47:04]MH_I2C_Read... [15:47:04]Read from MH i2c: E2 03 00 [15:47:04]MH_I2C_Read... [15:47:04]Read from MH i2c: E2 03 00 13 6B 00 90 00 F2 [15:47:04]RAPDU: 90 00 [15:47:04]wFMCommunicate OK [15:47:04]wFMCommunicate request_size=255 [15:47:04]MH_SAM_APDU [15:47: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 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 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 06 01 00 00 F4 03 04 00 7C 77 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 96 DD 02 00 35 04 06 00 1F [15:47:04]Write to MH i2c: E2 02 01 14 6B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 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 06 01 00 00 F4 03 04 00 7C 77 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 96 DD 02 00 35 04 06 00 1F 00 00 94 [15:47:04]Write i2c OK [15:47:04]MH_I2C_Read... [15:47:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:47:04]Read from MH i2c: E2 [15:47:04]MH_I2C_Read... [15:47:04]Read from MH i2c: E2 03 00 [15:47:04]MH_I2C_Read... [15:47:04]Read from MH i2c: E2 03 00 14 6B 00 90 00 F3 [15:47:04]RAPDU: 90 00 [15:47:04]wFMCommunicate OK [15:47:04]wFMCommunicate request_size=10 [15:47:04]MH_SAM_APDU [15:47:04]CAPDU: 80 0D 02 02 05 12 EB E7 8F 9A [15:47:04]Write to MH i2c: E2 0D 00 15 6B 80 0D 02 02 05 00 12 EB E7 8F 9A 00 00 11 [15:47:04]Write i2c OK [15:47:04]MH_I2C_Read... [15:47:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:47:04]Read from MH i2c: E2 [15:47:04]MH_I2C_Read... [15:47:04]Read from MH i2c: E2 03 00 [15:47:04]MH_I2C_Read... [15:47:04]Read from MH i2c: E2 03 00 15 6B 00 90 00 F4 [15:47:04]RAPDU: 90 00 [15:47:04]wFMCommunicate OK [15:47:04]wFMCommunicate request_size=4 [15:47:04]MH_SAM_APDU [15:47:04]CAPDU: 80 0D 03 02 [15:47:04]Write to MH i2c: E2 08 00 16 6B 80 0D 03 02 00 00 00 00 FC [15:47:04]Write i2c OK [15:47:04]MH_I2C_Read... [15:47:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:47:04]Read from MH i2c: E2 [15:47:04]MH_I2C_Read... [15:47:04]Read from MH i2c: E2 0B 00 [15:47:04]MH_I2C_Read... [15:47:04]Read from MH i2c: E2 0B 00 16 6B 00 0A B3 03 E2 DC 57 22 8E 90 00 82 [15:47:04]RAPDU: 0A B3 03 E2 DC 57 22 8E 90 00 [15:47:04]wFMCommunicate OK [15:47:04]SAM_PROTO_SignData done [15:47:04]FM_MakeSignedData done [15:47:04]CreateOFDProtocolMessage [15:47:04]wFMCommunicate request_size=4 [15:47:04]MH_SAM_APDU [15:47:04]CAPDU: 80 11 00 00 [15:47:04]Write to MH i2c: E2 08 00 17 6B 80 11 00 00 00 00 00 00 FC [15:47:04]Write i2c OK [15:47:04]MH_I2C_Read... [15:47:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:47:04]Read from MH i2c: E2 [15:47:04]MH_I2C_Read... [15:47:04]Read from MH i2c: E2 17 00 [15:47:04]MH_I2C_Read... [15:47:04]Read from MH i2c: E2 17 00 17 6B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 4A [15:47:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [15:47:04]wFMCommunicate OK [15:47:04]CreateOFDProtocolMessage done [15:47:04]OFDSenderStorePacket 187798 [15:47:04]StoreOFDPacket docnum=187798 [15:47:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 12 9D 07 01 70 08 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 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 06 01 00 00 F4 03 04 00 7C 77 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 96 DD 02 00 35 04 06 00 1F 12 EB E7 8F 9A 0A B3 03 E2 DC 57 22 8E [15:47:04]CheckFolder [15:47:04]dirname=/storage/ofd_packets [15:47:04]CheckFolder done [15:47:04]ProducePacketName [15:47:04]name=ofd_packets/00187798 [15:47:04]NVStorageSaveData ofd_packets/00187798 [15:47:04]File name is /storage/ofd_packets/00187798 [15:47:04]Write 301 bytes [15:47:04]NVStorageSaveData done [15:47:04]OFDSenderStorePacket done [15:47:04]KKMCreateOFDPacket done [15:47:04]NVStorageSaveData kkm_last_timestamp [15:47:04]File name is /storage/kkm_last_timestamp [15:47:04]Write 4 bytes [15:47:04]NVStorageSaveData done [15:47:04]ExternCall_PrintAddStr [15:47:04]wPrintStart [15:47:04]Write to MH i2c: 01 00 00 18 6B 83 [15:47:05]Write i2c OK [15:47:05]MH_I2C_Read... [15:47:05]Read from MH i2c: 01 [15:47:05]MH_I2C_Read... [15:47:05]Read from MH i2c: 01 07 00 [15:47:05]MH_I2C_Read... [15:47:05]Read from MH i2c: 01 07 00 18 6B 00 00 00 00 00 FF 0F 98 [15:47:05]RasterBufferAndPrint [15:47:05]line Счет N : (1)209850 [15:47:05]line ИНН: 02508201610067 [15:47:05]line Контрольно-Кассовый Чек [15:47:05]line ПРОДАЖА [15:47:05]line ТРК (МРК, ГНК) : 42 [15:47:05]line Товар: 2710124130 [15:47:05]line Аи-92-К-3 [15:47:05]line 7.480 * 66.90 [15:47:05]line = 500.41 [15:47:05]line НДС 12% НСП 1% [15:47:05]line > о реализуемом товаре [15:47:05]line ИТОГО: 500.41 [15:47:05]line НСП 1% : 4.43 [15:47:05]line НДС 12% : 53.14 [15:47:05]line Наличными: 0.00 [15:47:05]line Безнал.: 500.41 [15:47:05]line Место: АЗС № 86 "Партнер Нефть" [15:47:05]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [15:47:05]line СНО: Общий режим [15:47:05]line Чек 262 21.10.2024 15:47 [15:47:05]line Смена: 460 ФФД: 1.0 [15:47:05]line ЗНМ: 0300000155 [15:47:05]line РНМ: 0000000000100030 [15:47:05]line Версия ККМ: 001 [15:47:05]line Платежная система: Mbank [15:47:05]line ФМ: 0000000000965340 [15:47:05]line ФД: 187798 [15:47:05]line ФПД: 34166127693722 [15:47:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T154708&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187798&fm=34166127693722&tin=02508201610067®Number=0000000000100030&sum=50041 [15:47:05]written 0, free lines is 4095 [15:47:05]OFD Sender: Processing packet 187798 [packets to send 1062, broken 1061] [15:47:05]ProducePacketName [15:47:05]name=ofd_packets/00187798 [15:47:05]OFD Sender: To server: pG, [15:47:05]CommunicateWithHost lk.salyk.kg:30040 [15:47:05]ConnectInit lk.salyk.kg [15:47:05]Connected sock=10 [15:47:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 12 9D 07 01 70 08 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 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 06 01 00 00 F4 03 04 00 7C 77 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 96 DD 02 00 35 04 06 00 1F 12 EB E7 8F 9A 0A B3 03 E2 DC 57 22 8E [15:47:05]Write to MH i2c: 01 00 00 41 6B AC [15:47:05]Write i2c OK [15:47:05]MH_I2C_Read... [15:47:05]Read from MH i2c: 01 [15:47:05]MH_I2C_Read... [15:47:05]Read from MH i2c: 01 07 00 [15:47:05]MH_I2C_Read... [15:47:05]Read from MH i2c: 01 07 00 41 6B 00 00 00 00 00 99 0C 58 [15:47:05]RasterBufferAndPrint [15:47:05]line [15:47:05]line [15:47:05]line [15:47:05]line [15:47:05]line [15:47:05]written 0, free lines is 3228 [15:47:05]MH_Cut [15:47:05]Write to MH i2c: D1 01 00 48 6B 01 85 [15:47:05]Write i2c OK [15:47:05]MH_I2C_Read... [15:47:05]Read from MH i2c: D1 [15:47:05]MH_I2C_Read... [15:47:05]Read from MH i2c: D1 01 00 [15:47:05]MH_I2C_Read... [15:47:05]Read from MH i2c: D1 01 00 48 6B 00 84 [15:47:05]Write to MH i2c: 01 00 00 49 6B B4 [15:47:05]Write i2c OK [15:47:05]MH_I2C_Read... [15:47:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 27 F7 47 00 AD A4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 96 DD 02 00 F4 03 04 00 6B 21 16 67 B6 04 01 00 00 F8 AC 4B 59 79 C5 38 24 [15:47:05]CommunicateWithHost err = 0 [15:47:05]CheckOFDResponse [15:47:05]1017 (14) - 77093643461234 [15:47:05]1041 (16) - 0000000000965340 [15:47:05]1040 (4) - 187798 [15:47:05]1012 (4) - 21.10.2024 09:39 [15:47:05]1206 (1) - 0 [15:47:05]OFD Sender: Remove packet 187798 [15:47:05]ProducePacketName [15:47:05]name=ofd_packets/00187798 [15:47:05]NVStorageDeleteData [15:47:06]OFD Sender: No OFD packet to send [15:47:06]*** Cut start [15:47:06]*** Partial cut [15:47:06]*** CUTSNS_PIN = 1 [15:47:06]*** CUTSNS_PIN = 0 [15:47:06]*** Brake cut motor [15:47:07]Read from MH i2c: 01 [15:47:07]MH_I2C_Read... [15:47:07]*** Stop cut motor [15:47:07]*** Cut end [15:47:07]Read from MH i2c: 01 07 00 [15:47:07]MH_I2C_Read... [15:47:07]Read from MH i2c: 01 07 00 49 6B 00 00 00 00 00 FF 0F C9 [15:47:07]process_action close_receipt done [15:47:07]requested_data is exist [15:47:07]produce_requested_data [15:47:07]requested_item fm.sn is exist - process it [15:47:07]wFMCommunicate request_size=4 [15:47:07]MH_SAM_APDU [15:47:07]CAPDU: 80 11 00 00 [15:47:07]Write to MH i2c: E2 08 00 4A 6B 80 11 00 00 00 00 00 00 2F [15:47:07]Write i2c OK [15:47:07]MH_I2C_Read... [15:47:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:47:07]Read from MH i2c: E2 [15:47:07]MH_I2C_Read... [15:47:07]Read from MH i2c: E2 17 00 [15:47:07]MH_I2C_Read... [15:47:07]Read from MH i2c: E2 17 00 4A 6B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 7D [15:47:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [15:47:07]wFMCommunicate OK [15:47:07]requested_item fd.num is exist - process it [15:47:07]SAM_PROTO_GetFieldsCounters [15:47:07]wFMCommunicate request_size=4 [15:47:07]MH_SAM_APDU [15:47:07]CAPDU: 80 13 00 00 [15:47:07]Write to MH i2c: E2 08 00 4B 6B 80 13 00 00 00 00 00 00 32 [15:47:07]Write i2c OK [15:47:07]MH_I2C_Read... [15:47:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:47:07]Read from MH i2c: E2 [15:47:07]MH_I2C_Read... [15:47:07]Read from MH i2c: E2 62 00 [15:47:07]MH_I2C_Read... [15:47:07]Read from MH i2c: E2 62 00 4B 6B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 96 DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 06 01 00 00 5E 04 04 00 06 01 00 00 57 04 04 00 07 01 00 00 19 04 04 00 00 00 00 00 90 00 90 [15:47:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 96 DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 06 01 00 00 5E 04 04 00 06 01 00 00 57 04 04 00 07 01 00 00 19 04 04 00 00 00 00 00 90 00 [15:47:07]wFMCommunicate OK [15:47:07]SAM_PROTO_GetFieldsCounters done [15:47:07]requested_item shift.num is exist - process it [15:47:07]requested_item shift.opened is exist - process it [15:47:07]req_shift_opened [15:47:07]FM_GetShiftState [15:47:07]SAM_PROTO_GetShiftState [15:47:07]wFMCommunicate request_size=4 [15:47:07]MH_SAM_APDU [15:47:07]CAPDU: 80 13 01 00 [15:47:07]Write to MH i2c: E2 08 00 4C 6B 80 13 01 00 00 00 00 00 34 [15:47:07]Write i2c OK [15:47:07]MH_I2C_Read... [15:47:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:47:07]Read from MH i2c: E2 [15:47:07]MH_I2C_Read... [15:47:07]Read from MH i2c: E2 0E 00 [15:47:07]MH_I2C_Read... [15:47:07]Read from MH i2c: E2 0E 00 4C 6B 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 93 [15:47:07]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [15:47:07]wFMCommunicate OK [15:47:07]SAM_PROTO_GetShiftState done [15:47:07]FM_GetShiftState done [15:47:07]req_shift_opened done [15:47:07]requested_item shift.open_date is exist - process it [15:47:07]req_shift_open_date [15:47:07]req_shift_open_date done [15:47:07]produce_requested_data done [15:47:07]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187798,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [15:47:07]process_action_free close_receipt [15:47:07]json_value_free [15:47:07]json_value_free done [15:47:07]process_json_proto returns [15:47:07]Send response to host [15:47:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187798,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [15:47:07]free response buf [15:47:07]execute_script done [15:47:07]execute_script returns [15:47:07]free content buf [15:47:07]Sock 8.Close socket [15:47:07]Sock 8.Thread stoped [15:47:11]OFD Sender: No OFD packet to send [15:47:16]OFD Sender: No OFD packet to send [15:47:21]OFD Sender: No OFD packet to send [15:47:26]OFD Sender: No OFD packet to send [15:47:31]OFD Sender: No OFD packet to send [15:47:36]OFD Sender: No OFD packet to send [15:47:41]OFD Sender: No OFD packet to send [15:47:46]OFD Sender: No OFD packet to send [15:47:51]OFD Sender: No OFD packet to send [15:47:56]OFD Sender: No OFD packet to send [15:48:01]OFD Sender: No OFD packet to send [15:48:06]OFD Sender: No OFD packet to send [15:48:11]OFD Sender: No OFD packet to send [15:48:16]OFD Sender: No OFD packet to send [15:48:21]OFD Sender: No OFD packet to send [15:48:26]OFD Sender: No OFD packet to send [15:48:31]OFD Sender: No OFD packet to send [15:48:36]OFD Sender: No OFD packet to send [15:48:41]OFD Sender: No OFD packet to send [15:48:46]OFD Sender: No OFD packet to send [15:48:51]OFD Sender: No OFD packet to send [15:48:52]accept exits with 9 [15:48:52]New connection [15:48:52]New thread 3067014500 created [15:48:52]Thread 3067157860 joined [15:48:52]Waiting for new connection... [15:48:52] Sock 9.Parse request [15:48:52]Sock 9.Check first char [15:48:52]Sock 9.First char is OK [15:48:52]request: POST /json_proto HTTP/1.0 [15:48:52]Method: POST [15:48:52]URL: /json_proto [15:48:52]Method is POST - this is cgi request [15:48:52]url: /json_proto [15:48:52]query_string will be loaded in cgi processing [15:48:52]execute_cgi json_proto POST (null) [15:48:52]execute_cgi path=json_proto method=POST [15:48:52]POST find Content-Length [15:48:52]Host: 172.17.42.131:8080 [15:48:52]Content-Length: 767 [15:48:52]Content-Type: application/json [15:48:52] [15:48:52]POST finish read [15:48:52]Found Content-Length = 767 [15:48:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209851", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 700.44 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:48:52]execute_script... [15:48:52]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209851", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 700.44 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:48:52]POST & json_proto [15:48:52]process_json_proto [15:48:52]json parsed OK: [15:48:52]protocol is kg_v1.0 [15:48:52]action value=close_receipt [15:48:52]process_action close_receipt [15:48:52]cmd_close_receipt [15:48:52]MH_GetDate [15:48:52]Write to MH i2c: F0 00 00 4D 6B A7 [15:48:52]Write i2c OK [15:48:52]MH_I2C_Read... [15:48:52]Read from MH i2c: F0 [15:48:52]MH_I2C_Read... [15:48:52]Read from MH i2c: F0 09 00 [15:48:52]MH_I2C_Read... [15:48:52]Read from MH i2c: F0 09 00 4D 6B 00 E9 77 16 67 A0 18 CA 66 75 [15:48:52]GetLastDocTimeStamp 1729525628 [15:48:52]current date 1729525737 [15:48:52]FM_GetShiftState [15:48:52]SAM_PROTO_GetShiftState [15:48:52]wFMCommunicate request_size=4 [15:48:52]MH_SAM_APDU [15:48:52]CAPDU: 80 13 01 00 [15:48:52]Write to MH i2c: E2 08 00 4E 6B 80 13 01 00 00 00 00 00 36 [15:48:52]Write i2c OK [15:48:52]MH_I2C_Read... [15:48:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:48:52]Read from MH i2c: E2 [15:48:52]MH_I2C_Read... [15:48:52]Read from MH i2c: E2 0E 00 [15:48:52]MH_I2C_Read... [15:48:52]Read from MH i2c: E2 0E 00 4E 6B 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 95 [15:48:52]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [15:48:52]wFMCommunicate OK [15:48:52]SAM_PROTO_GetShiftState done [15:48:52]FM_GetShiftState done [15:48:52]opened in 1729469754 [15:48:52]opened+sec_in_day 1729556154 [15:48:52]quantity*price = 70044 [15:48:52]sum+1 = 70045 [15:48:52]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 700.44 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 0.00 Безнал.: 700.44 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 263 21.10.2024 15:48 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000965340 ФД: 187799 ФПД: 222440528879115 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T154857&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187799&fm=222440528879115&tin=02508201610067®Number=0000000000100030&sum=70044 [15:48:54]StoreToDocumentArchive [15:48:54]shift 460 fd 187799 [15:48:54]save to /storage/0460/doc_00187799 [15:48:54]save last doc name /storage/0460/doc_00187799 to /storage/kkm_last_doc_name [15:48:54]save OK [15:48:54]Clear old archive folders... [15:48:54]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:48:54]tlvbuf is B6F0CA20 [15:48:54]SAM_PROTO_ClearQueue [15:48:54]wFMCommunicate request_size=4 [15:48:54]MH_SAM_APDU [15:48:54]CAPDU: 80 09 00 00 [15:48:54]Write to MH i2c: E2 08 00 5B 6B 80 09 00 00 00 00 00 00 38 [15:48:54]Write i2c OK [15:48:54]MH_I2C_Read... [15:48:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:48:54]Read from MH i2c: E2 [15:48:54]MH_I2C_Read... [15:48:54]Read from MH i2c: E2 03 00 [15:48:54]MH_I2C_Read... [15:48:54]Read from MH i2c: E2 03 00 5B 6B 00 90 00 3A [15:48:54]RAPDU: 90 00 [15:48:54]wFMCommunicate OK [15:48:54]SAM_PROTO_ClearQueue done [15:48:54]KKMCreateOFDPacket [15:48:54]OFDProtocolAddRootSTLVToBuf [15:48:54]FM_MakeSignedData [15:48:54]FM_MakeSignedData [15:48:54]SAM_PROTO_SignData [15:48:54]wFMCommunicate request_size=4 [15:48:54]MH_SAM_APDU [15:48:54]CAPDU: 80 0D 01 02 [15:48:54]Write to MH i2c: E2 08 00 5C 6B 80 0D 01 02 00 00 00 00 40 [15:48:54]Write i2c OK [15:48:54]MH_I2C_Read... [15:48:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:48:54]Read from MH i2c: E2 [15:48:54]MH_I2C_Read... [15:48:54]Read from MH i2c: E2 03 00 [15:48:54]MH_I2C_Read... [15:48:54]Read from MH i2c: E2 03 00 5C 6B 00 90 00 3B [15:48:54]RAPDU: 90 00 [15:48:54]wFMCommunicate OK [15:48:54]wFMCommunicate request_size=255 [15:48:54]MH_SAM_APDU [15:48: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 33 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9C 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 01 00 00 F4 03 04 00 E9 77 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 97 DD 02 00 35 04 06 00 CA [15:48:54]Write to MH i2c: E2 02 01 5D 6B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9C 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 01 00 00 F4 03 04 00 E9 77 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 97 DD 02 00 35 04 06 00 CA 00 00 0D [15:48:54]Write i2c OK [15:48:54]MH_I2C_Read... [15:48:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:48:54]Read from MH i2c: E2 [15:48:54]MH_I2C_Read... [15:48:54]Read from MH i2c: E2 03 00 [15:48:54]MH_I2C_Read... [15:48:54]Read from MH i2c: E2 03 00 5D 6B 00 90 00 3C [15:48:54]RAPDU: 90 00 [15:48:54]wFMCommunicate OK [15:48:54]wFMCommunicate request_size=10 [15:48:54]MH_SAM_APDU [15:48:54]CAPDU: 80 0D 02 02 05 4E F8 B5 1E 0B [15:48:54]Write to MH i2c: E2 0D 00 5E 6B 80 0D 02 02 05 00 4E F8 B5 1E 0B 00 00 71 [15:48:54]Write i2c OK [15:48:54]MH_I2C_Read... [15:48:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:48:54]Read from MH i2c: E2 [15:48:54]MH_I2C_Read... [15:48:54]Read from MH i2c: E2 03 00 [15:48:54]MH_I2C_Read... [15:48:54]Read from MH i2c: E2 03 00 5E 6B 00 90 00 3D [15:48:54]RAPDU: 90 00 [15:48:54]wFMCommunicate OK [15:48:54]wFMCommunicate request_size=4 [15:48:54]MH_SAM_APDU [15:48:54]CAPDU: 80 0D 03 02 [15:48:54]Write to MH i2c: E2 08 00 5F 6B 80 0D 03 02 00 00 00 00 45 [15:48:54]Write i2c OK [15:48:54]MH_I2C_Read... [15:48:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:48:54]Read from MH i2c: E2 [15:48:54]MH_I2C_Read... [15:48:54]Read from MH i2c: E2 0B 00 [15:48:54]MH_I2C_Read... [15:48:54]Read from MH i2c: E2 0B 00 5F 6B 00 5E 10 BD D6 D5 F0 DE FF 90 00 E9 [15:48:54]RAPDU: 5E 10 BD D6 D5 F0 DE FF 90 00 [15:48:54]wFMCommunicate OK [15:48:54]SAM_PROTO_SignData done [15:48:54]FM_MakeSignedData done [15:48:54]CreateOFDProtocolMessage [15:48:54]wFMCommunicate request_size=4 [15:48:54]MH_SAM_APDU [15:48:54]CAPDU: 80 11 00 00 [15:48:54]Write to MH i2c: E2 08 00 60 6B 80 11 00 00 00 00 00 00 45 [15:48:54]Write i2c OK [15:48:54]MH_I2C_Read... [15:48:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:48:54]Read from MH i2c: E2 [15:48:54]MH_I2C_Read... [15:48:54]Read from MH i2c: E2 17 00 [15:48:54]MH_I2C_Read... [15:48:54]Read from MH i2c: E2 17 00 60 6B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 93 [15:48:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [15:48:54]wFMCommunicate OK [15:48:54]CreateOFDProtocolMessage done [15:48:54]OFDSenderStorePacket 187799 [15:48:54]StoreOFDPacket docnum=187799 [15:48:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 B5 C5 07 01 05 E4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9C 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 01 00 00 F4 03 04 00 E9 77 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 97 DD 02 00 35 04 06 00 CA 4E F8 B5 1E 0B 5E 10 BD D6 D5 F0 DE FF [15:48:54]CheckFolder [15:48:54]dirname=/storage/ofd_packets [15:48:54]CheckFolder done [15:48:54]ProducePacketName [15:48:54]name=ofd_packets/00187799 [15:48:54]NVStorageSaveData ofd_packets/00187799 [15:48:54]File name is /storage/ofd_packets/00187799 [15:48:54]Write 301 bytes [15:48:54]NVStorageSaveData done [15:48:54]OFDSenderStorePacket done [15:48:54]KKMCreateOFDPacket done [15:48:54]NVStorageSaveData kkm_last_timestamp [15:48:54]File name is /storage/kkm_last_timestamp [15:48:54]Write 4 bytes [15:48:54]NVStorageSaveData done [15:48:54]ExternCall_PrintAddStr [15:48:54]wPrintStart [15:48:54]Write to MH i2c: 01 00 00 61 6B CC [15:48:54]Write i2c OK [15:48:54]MH_I2C_Read... [15:48:54]Read from MH i2c: 01 [15:48:54]MH_I2C_Read... [15:48:54]Read from MH i2c: 01 07 00 [15:48:54]MH_I2C_Read... [15:48:54]Read from MH i2c: 01 07 00 61 6B 00 00 00 00 00 FF 0F E1 [15:48:54]RasterBufferAndPrint [15:48:54]line Счет N : (1)209851 [15:48:54]line ИНН: 02508201610067 [15:48:54]line Контрольно-Кассовый Чек [15:48:54]line ПРОДАЖА [15:48:54]line ТРК (МРК, ГНК) : 12 [15:48:54]line Товар: 2710124130 [15:48:54]line Аи-92-К-3 [15:48:54]line 10.470 * 66.90 [15:48:54]line = 700.44 [15:48:54]line НДС 12% НСП 1% [15:48:54]line > о реализуемом товаре [15:48:54]line ИТОГО: 700.44 [15:48:54]line НСП 1% : 6.20 [15:48:54]line НДС 12% : 74.38 [15:48:54]line Наличными: 0.00 [15:48:54]line Безнал.: 700.44 [15:48:54]line Место: АЗС № 86 "Партнер Нефть" [15:48:54]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [15:48:54]line СНО: Общий режим [15:48:54]line Чек 263 21.10.2024 15:48 [15:48:54]line Смена: 460 ФФД: 1.0 [15:48:54]line ЗНМ: 0300000155 [15:48:54]line РНМ: 0000000000100030 [15:48:54]line Версия ККМ: 001 [15:48:54]line Платежная система: Mbank [15:48:54]line ФМ: 0000000000965340 [15:48:54]line ФД: 187799 [15:48:54]line ФПД: 222440528879115 [15:48:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T154857&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187799&fm=222440528879115&tin=02508201610067®Number=0000000000100030&sum=70044 [15:48:54]written 0, free lines is 4095 [15:48:54]OFD Sender: Processing packet 187799 [packets to send 1062, broken 1061] [15:48:54]ProducePacketName [15:48:54]name=ofd_packets/00187799 [15:48:54]OFD Sender: To server: pG, [15:48:54]CommunicateWithHost lk.salyk.kg:30040 [15:48:54]ConnectInit lk.salyk.kg [15:48:54]Connected sock=11 [15:48:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 B5 C5 07 01 05 E4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9C 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 01 00 00 F4 03 04 00 E9 77 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 97 DD 02 00 35 04 06 00 CA 4E F8 B5 1E 0B 5E 10 BD D6 D5 F0 DE FF [15:48:54]Write to MH i2c: 01 00 00 8A 6B F5 [15:48:55]Write i2c OK [15:48:55]MH_I2C_Read... [15:48:55]Read from MH i2c: 01 [15:48:55]MH_I2C_Read... [15:48:55]Read from MH i2c: 01 07 00 [15:48:55]MH_I2C_Read... [15:48:55]Read from MH i2c: 01 07 00 8A 6B 00 00 00 00 00 8F 0C 97 [15:48:55]RasterBufferAndPrint [15:48:55]line [15:48:55]line [15:48:55]line [15:48:55]line [15:48:55]line [15:48:55]written 0, free lines is 3219 [15:48:55]MH_Cut [15:48:55]Write to MH i2c: D1 01 00 91 6B 01 CE [15:48:55]Write i2c OK [15:48:55]MH_I2C_Read... [15:48:55]Read from MH i2c: D1 [15:48:55]MH_I2C_Read... [15:48:55]Read from MH i2c: D1 01 00 [15:48:55]MH_I2C_Read... [15:48:55]Read from MH i2c: D1 01 00 91 6B 00 CD [15:48:55]Write to MH i2c: 01 00 00 92 6B FD [15:48:55]Write i2c OK [15:48:55]MH_I2C_Read... [15:48:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 29 AC 47 00 8A 73 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 97 DD 02 00 F4 03 04 00 D9 21 16 67 B6 04 01 00 00 D3 24 92 9C F0 17 C7 51 [15:48:55]CommunicateWithHost err = 0 [15:48:55]CheckOFDResponse [15:48:55]1017 (14) - 77093643461234 [15:48:55]1041 (16) - 0000000000965340 [15:48:55]1040 (4) - 187799 [15:48:55]1012 (4) - 21.10.2024 09:41 [15:48:55]1206 (1) - 0 [15:48:55]OFD Sender: Remove packet 187799 [15:48:55]ProducePacketName [15:48:55]name=ofd_packets/00187799 [15:48:55]NVStorageDeleteData [15:48:55]OFD Sender: No OFD packet to send [15:48:56]*** Cut start [15:48:56]*** Partial cut [15:48:56]*** CUTSNS_PIN = 1 [15:48:56]*** CUTSNS_PIN = 0 [15:48:56]*** Brake cut motor [15:48:56]Read from MH i2c: 01 [15:48:56]MH_I2C_Read... [15:48:56]*** Stop cut motor [15:48:56]*** Cut end [15:48:56]Read from MH i2c: 01 07 00 [15:48:56]MH_I2C_Read... [15:48:56]Read from MH i2c: 01 07 00 92 6B 00 00 00 00 00 FF 0F 12 [15:48:56]process_action close_receipt done [15:48:56]requested_data is exist [15:48:56]produce_requested_data [15:48:56]requested_item fm.sn is exist - process it [15:48:56]wFMCommunicate request_size=4 [15:48:56]MH_SAM_APDU [15:48:56]CAPDU: 80 11 00 00 [15:48:56]Write to MH i2c: E2 08 00 93 6B 80 11 00 00 00 00 00 00 78 [15:48:56]Write i2c OK [15:48:56]MH_I2C_Read... [15:48:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:48:56]Read from MH i2c: E2 [15:48:56]MH_I2C_Read... [15:48:56]Read from MH i2c: E2 17 00 [15:48:56]MH_I2C_Read... [15:48:56]Read from MH i2c: E2 17 00 93 6B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 C6 [15:48:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [15:48:56]wFMCommunicate OK [15:48:56]requested_item fd.num is exist - process it [15:48:56]SAM_PROTO_GetFieldsCounters [15:48:56]wFMCommunicate request_size=4 [15:48:56]MH_SAM_APDU [15:48:56]CAPDU: 80 13 00 00 [15:48:56]Write to MH i2c: E2 08 00 94 6B 80 13 00 00 00 00 00 00 7B [15:48:56]Write i2c OK [15:48:56]MH_I2C_Read... [15:48:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:48:57]Read from MH i2c: E2 [15:48:57]MH_I2C_Read... [15:48:57]Read from MH i2c: E2 62 00 [15:48:57]MH_I2C_Read... [15:48:57]Read from MH i2c: E2 62 00 94 6B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 97 DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 07 01 00 00 5E 04 04 00 07 01 00 00 57 04 04 00 08 01 00 00 19 04 04 00 00 00 00 00 90 00 DD [15:48:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 97 DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 07 01 00 00 5E 04 04 00 07 01 00 00 57 04 04 00 08 01 00 00 19 04 04 00 00 00 00 00 90 00 [15:48:57]wFMCommunicate OK [15:48:57]SAM_PROTO_GetFieldsCounters done [15:48:57]requested_item shift.num is exist - process it [15:48:57]requested_item shift.opened is exist - process it [15:48:57]req_shift_opened [15:48:57]FM_GetShiftState [15:48:57]SAM_PROTO_GetShiftState [15:48:57]wFMCommunicate request_size=4 [15:48:57]MH_SAM_APDU [15:48:57]CAPDU: 80 13 01 00 [15:48:57]Write to MH i2c: E2 08 00 95 6B 80 13 01 00 00 00 00 00 7D [15:48:57]Write i2c OK [15:48:57]MH_I2C_Read... [15:48:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:48:57]Read from MH i2c: E2 [15:48:57]MH_I2C_Read... [15:48:57]Read from MH i2c: E2 0E 00 [15:48:57]MH_I2C_Read... [15:48:57]Read from MH i2c: E2 0E 00 95 6B 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 DC [15:48:57]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [15:48:57]wFMCommunicate OK [15:48:57]SAM_PROTO_GetShiftState done [15:48:57]FM_GetShiftState done [15:48:57]req_shift_opened done [15:48:57]requested_item shift.open_date is exist - process it [15:48:57]req_shift_open_date [15:48:57]req_shift_open_date done [15:48:57]produce_requested_data done [15:48:57]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187799,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [15:48:57]process_action_free close_receipt [15:48:57]json_value_free [15:48:57]json_value_free done [15:48:57]process_json_proto returns [15:48:57]Send response to host [15:48:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187799,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [15:48:57]free response buf [15:48:57]execute_script done [15:48:57]execute_script returns [15:48:57]free content buf [15:48:57]Sock 9.Close socket [15:48:57]Sock 9.Thread stoped [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:36]OFD Sender: No OFD packet to send [15:49:41]OFD Sender: No OFD packet to send [15:49:46]OFD Sender: No OFD packet to send [15:49:51]OFD Sender: No OFD packet to send [15:49:56]OFD Sender: No OFD packet to send [15:50:01]OFD Sender: No OFD packet to send [15:50:06]OFD Sender: No OFD packet to send [15:50:11]OFD Sender: No OFD packet to send [15:50:16]OFD Sender: No OFD packet to send [15:50:21]OFD Sender: No OFD packet to send [15:50:26]OFD Sender: No OFD packet to send [15:50:31]OFD Sender: No OFD packet to send [15:50:36]OFD Sender: No OFD packet to send [15:50:41]OFD Sender: No OFD packet to send [15:50:43]accept exits with 8 [15:50:43]New connection [15:50:43]New thread 3067157860 created [15:50:43]Thread 3067014500 joined [15:50:43]Waiting for new connection... [15:50:43] Sock 8.Parse request [15:50:43]Sock 8.Check first char [15:50:43]Sock 8.First char is OK [15:50:43]request: POST /json_proto HTTP/1.0 [15:50:43]Method: POST [15:50:43]URL: /json_proto [15:50:43]Method is POST - this is cgi request [15:50:43]url: /json_proto [15:50:43]query_string will be loaded in cgi processing [15:50:43]execute_cgi json_proto POST (null) [15:50:43]execute_cgi path=json_proto method=POST [15:50:43]POST find Content-Length [15:50:43]Host: 172.17.42.131:8080 [15:50:43]Content-Length: 769 [15:50:43]Content-Type: application/json [15:50:43] [15:50:43]POST finish read [15:50:43]Found Content-Length = 769 [15:50:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209852", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 25.000, "sum" : 1855.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" : 1855.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:50:43]execute_script... [15:50:43]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209852", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 25.000, "sum" : 1855.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" : 1855.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:50:43]POST & json_proto [15:50:43]process_json_proto [15:50:43]json parsed OK: [15:50:43]protocol is kg_v1.0 [15:50:43]action value=close_receipt [15:50:43]process_action close_receipt [15:50:43]cmd_close_receipt [15:50:43]MH_GetDate [15:50:43]Write to MH i2c: F0 00 00 96 6B F0 [15:50:43]Write i2c OK [15:50:43]MH_I2C_Read... [15:50:43]Read from MH i2c: F0 [15:50:43]MH_I2C_Read... [15:50:43]Read from MH i2c: F0 09 00 [15:50:43]MH_I2C_Read... [15:50:43]Read from MH i2c: F0 09 00 96 6B 00 58 78 16 67 A0 18 CA 66 2E [15:50:43]GetLastDocTimeStamp 1729525737 [15:50:43]current date 1729525848 [15:50:43]FM_GetShiftState [15:50:43]SAM_PROTO_GetShiftState [15:50:43]wFMCommunicate request_size=4 [15:50:43]MH_SAM_APDU [15:50:43]CAPDU: 80 13 01 00 [15:50:43]Write to MH i2c: E2 08 00 97 6B 80 13 01 00 00 00 00 00 7F [15:50:43]Write i2c OK [15:50:43]MH_I2C_Read... [15:50:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:50:43]Read from MH i2c: E2 [15:50:43]MH_I2C_Read... [15:50:43]Read from MH i2c: E2 0E 00 [15:50:43]MH_I2C_Read... [15:50:43]Read from MH i2c: E2 0E 00 97 6B 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 DE [15:50:43]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [15:50:43]wFMCommunicate OK [15:50:43]SAM_PROTO_GetShiftState done [15:50:43]FM_GetShiftState done [15:50:43]opened in 1729469754 [15:50:43]opened+sec_in_day 1729556154 [15:50:43]quantity*price = 185500 [15:50:43]sum+1 = 185501 [15:50:43]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1855.00 НСП 1% : 16.42 НДС 12% : 196.99 Наличными: 0.00 Безнал.: 1855.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 264 21.10.2024 15:50 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000965340 ФД: 187800 ФПД: 6446557264639 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T155048&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187800&fm=6446557264639&tin=02508201610067®Number=0000000000100030&sum=185500 [15:50:44]StoreToDocumentArchive [15:50:44]shift 460 fd 187800 [15:50:44]save to /storage/0460/doc_00187800 [15:50:44]save last doc name /storage/0460/doc_00187800 to /storage/kkm_last_doc_name [15:50:44]save OK [15:50:44]Clear old archive folders... [15:50:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:50:44]tlvbuf is 012EDF50 [15:50:44]SAM_PROTO_ClearQueue [15:50:44]wFMCommunicate request_size=4 [15:50:44]MH_SAM_APDU [15:50:44]CAPDU: 80 09 00 00 [15:50:44]Write to MH i2c: E2 08 00 A4 6B 80 09 00 00 00 00 00 00 81 [15:50:44]Write i2c OK [15:50:44]MH_I2C_Read... [15:50:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:50:44]Read from MH i2c: E2 [15:50:44]MH_I2C_Read... [15:50:44]Read from MH i2c: E2 03 00 [15:50:44]MH_I2C_Read... [15:50:44]Read from MH i2c: E2 03 00 A4 6B 00 90 00 83 [15:50:44]RAPDU: 90 00 [15:50:44]wFMCommunicate OK [15:50:44]SAM_PROTO_ClearQueue done [15:50:44]KKMCreateOFDPacket [15:50:44]OFDProtocolAddRootSTLVToBuf [15:50:44]FM_MakeSignedData [15:50:44]FM_MakeSignedData [15:50:44]SAM_PROTO_SignData [15:50:44]wFMCommunicate request_size=4 [15:50:44]MH_SAM_APDU [15:50:44]CAPDU: 80 0D 01 02 [15:50:44]Write to MH i2c: E2 08 00 A5 6B 80 0D 01 02 00 00 00 00 89 [15:50:44]Write i2c OK [15:50:44]MH_I2C_Read... [15:50:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:50:45]Read from MH i2c: E2 [15:50:45]MH_I2C_Read... [15:50:45]Read from MH i2c: E2 03 00 [15:50:45]MH_I2C_Read... [15:50:45]Read from MH i2c: E2 03 00 A5 6B 00 90 00 84 [15:50:45]RAPDU: 90 00 [15:50:45]wFMCommunicate OK [15:50:45]wFMCommunicate request_size=255 [15:50:45]MH_SAM_APDU [15:50:45]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 61 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 9C D4 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C D4 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6A 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 4C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9C D4 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 01 00 00 F4 03 04 00 58 78 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 98 DD 02 00 35 04 06 00 05 [15:50:45]Write to MH i2c: E2 02 01 A6 6B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 61 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 9C D4 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C D4 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6A 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 4C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9C D4 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 01 00 00 F4 03 04 00 58 78 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 98 DD 02 00 35 04 06 00 05 00 00 40 [15:50:45]Write i2c OK [15:50:45]MH_I2C_Read... [15:50:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:50:45]Read from MH i2c: E2 [15:50:45]MH_I2C_Read... [15:50:45]Read from MH i2c: E2 03 00 [15:50:45]MH_I2C_Read... [15:50:45]Read from MH i2c: E2 03 00 A6 6B 00 90 00 85 [15:50:45]RAPDU: 90 00 [15:50:45]wFMCommunicate OK [15:50:45]wFMCommunicate request_size=10 [15:50:45]MH_SAM_APDU [15:50:45]CAPDU: 80 0D 02 02 05 DC F4 C1 7A FF [15:50:45]Write to MH i2c: E2 0D 00 A7 6B 80 0D 02 02 05 00 DC F4 C1 7A FF 00 00 A0 [15:50:45]Write i2c OK [15:50:45]MH_I2C_Read... [15:50:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:50:45]Read from MH i2c: E2 [15:50:45]MH_I2C_Read... [15:50:45]Read from MH i2c: E2 03 00 [15:50:45]MH_I2C_Read... [15:50:45]Read from MH i2c: E2 03 00 A7 6B 00 90 00 86 [15:50:45]RAPDU: 90 00 [15:50:45]wFMCommunicate OK [15:50:45]wFMCommunicate request_size=4 [15:50:45]MH_SAM_APDU [15:50:45]CAPDU: 80 0D 03 02 [15:50:45]Write to MH i2c: E2 08 00 A8 6B 80 0D 03 02 00 00 00 00 8E [15:50:45]Write i2c OK [15:50:45]MH_I2C_Read... [15:50:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:50:45]Read from MH i2c: E2 [15:50:45]MH_I2C_Read... [15:50:45]Read from MH i2c: E2 0B 00 [15:50:45]MH_I2C_Read... [15:50:45]Read from MH i2c: E2 0B 00 A8 6B 00 36 1D C4 71 1F 7C 31 2F 90 00 12 [15:50:45]RAPDU: 36 1D C4 71 1F 7C 31 2F 90 00 [15:50:45]wFMCommunicate OK [15:50:45]SAM_PROTO_SignData done [15:50:45]FM_MakeSignedData done [15:50:45]CreateOFDProtocolMessage [15:50:45]wFMCommunicate request_size=4 [15:50:45]MH_SAM_APDU [15:50:45]CAPDU: 80 11 00 00 [15:50:45]Write to MH i2c: E2 08 00 A9 6B 80 11 00 00 00 00 00 00 8E [15:50:45]Write i2c OK [15:50:45]MH_I2C_Read... [15:50:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:50:45]Read from MH i2c: E2 [15:50:45]MH_I2C_Read... [15:50:45]Read from MH i2c: E2 17 00 [15:50:45]MH_I2C_Read... [15:50:45]Read from MH i2c: E2 17 00 A9 6B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 DC [15:50:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [15:50:45]wFMCommunicate OK [15:50:45]CreateOFDProtocolMessage done [15:50:45]OFDSenderStorePacket 187800 [15:50:45]StoreOFDPacket docnum=187800 [15:50:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 5A 01 07 01 B6 BA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 61 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 9C D4 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C D4 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6A 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 4C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9C D4 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 01 00 00 F4 03 04 00 58 78 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 98 DD 02 00 35 04 06 00 05 DC F4 C1 7A FF 36 1D C4 71 1F 7C 31 2F [15:50:45]CheckFolder [15:50:45]dirname=/storage/ofd_packets [15:50:45]CheckFolder done [15:50:45]ProducePacketName [15:50:45]name=ofd_packets/00187800 [15:50:45]NVStorageSaveData ofd_packets/00187800 [15:50:45]File name is /storage/ofd_packets/00187800 [15:50:45]Write 301 bytes [15:50:45]NVStorageSaveData done [15:50:45]OFDSenderStorePacket done [15:50:45]KKMCreateOFDPacket done [15:50:45]NVStorageSaveData kkm_last_timestamp [15:50:45]File name is /storage/kkm_last_timestamp [15:50:45]Write 4 bytes [15:50:45]NVStorageSaveData done [15:50:45]ExternCall_PrintAddStr [15:50:45]wPrintStart [15:50:45]Write to MH i2c: 01 00 00 AA 6B 15 [15:50:45]Write i2c OK [15:50:45]MH_I2C_Read... [15:50:45]Read from MH i2c: 01 [15:50:45]MH_I2C_Read... [15:50:45]Read from MH i2c: 01 07 00 [15:50:45]MH_I2C_Read... [15:50:45]Read from MH i2c: 01 07 00 AA 6B 00 00 00 00 00 FF 0F 2A [15:50:45]RasterBufferAndPrint [15:50:45]line Счет N : (1)209852 [15:50:45]line ИНН: 02508201610067 [15:50:45]line Контрольно-Кассовый Чек [15:50:45]line ПРОДАЖА [15:50:45]line ТРК (МРК, ГНК) : 33 [15:50:45]line Товар: 2710124500 [15:50:45]line Аи-95-К-3 [15:50:45]line 25.000 * 74.20 [15:50:45]line = 1855.00 [15:50:45]line НДС 12% НСП 1% [15:50:45]line > о реализуемом товаре [15:50:45]line ИТОГО: 1855.00 [15:50:45]line НСП 1% : 16.42 [15:50:45]line НДС 12% : 196.99 [15:50:45]line Наличными: 0.00 [15:50:45]line Безнал.: 1855.00 [15:50:45]line Место: АЗС № 86 "Партнер Нефть" [15:50:45]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [15:50:45]line СНО: Общий режим [15:50:45]line Чек 264 21.10.2024 15:50 [15:50:45]line Смена: 460 ФФД: 1.0 [15:50:45]line ЗНМ: 0300000155 [15:50:45]line РНМ: 0000000000100030 [15:50:45]line Версия ККМ: 001 [15:50:45]line Платежная система: Mbank [15:50:45]line ФМ: 0000000000965340 [15:50:45]line ФД: 187800 [15:50:45]line ФПД: 6446557264639 [15:50:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T155048&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187800&fm=6446557264639&tin=02508201610067®Number=0000000000100030&sum=185500 [15:50:45]written 0, free lines is 4095 [15:50:45]OFD Sender: Processing packet 187800 [packets to send 1062, broken 1061] [15:50:45]ProducePacketName [15:50:45]name=ofd_packets/00187800 [15:50:45]OFD Sender: To server: pG, [15:50:45]CommunicateWithHost lk.salyk.kg:30040 [15:50:45]ConnectInit lk.salyk.kg [15:50:45]Connected sock=10 [15:50:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 5A 01 07 01 B6 BA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 61 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 9C D4 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C D4 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6A 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 4C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9C D4 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 01 00 00 F4 03 04 00 58 78 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 98 DD 02 00 35 04 06 00 05 DC F4 C1 7A FF 36 1D C4 71 1F 7C 31 2F [15:50:45]Write to MH i2c: 01 00 00 D3 6B 3E [15:50:45]Write i2c OK [15:50:45]MH_I2C_Read... [15:50:45]Read from MH i2c: 01 [15:50:45]MH_I2C_Read... [15:50:45]Read from MH i2c: 01 07 00 [15:50:45]MH_I2C_Read... [15:50:45]Read from MH i2c: 01 07 00 D3 6B 00 00 00 00 00 92 0C E3 [15:50:45]RasterBufferAndPrint [15:50:45]line [15:50:45]line [15:50:45]line [15:50:45]line [15:50:45]line [15:50:45]written 0, free lines is 3222 [15:50:45]MH_Cut [15:50:45]Write to MH i2c: D1 01 00 DA 6B 01 17 [15:50:45]Write i2c OK [15:50:45]MH_I2C_Read... [15:50:45]Read from MH i2c: D1 [15:50:45]MH_I2C_Read... [15:50:45]Read from MH i2c: D1 01 00 [15:50:45]MH_I2C_Read... [15:50:45]Read from MH i2c: D1 01 00 DA 6B 00 16 [15:50:45]Write to MH i2c: 01 00 00 DB 6B 46 [15:50:45]Write i2c OK [15:50:45]MH_I2C_Read... [15:50:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 EE A4 47 00 8E 2E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 98 DD 02 00 F4 03 04 00 47 22 16 67 B6 04 01 00 00 EC 96 43 54 C2 E2 38 B8 [15:50:46]CommunicateWithHost err = 0 [15:50:46]CheckOFDResponse [15:50:46]1017 (14) - 77093643461234 [15:50:46]1041 (16) - 0000000000965340 [15:50:46]1040 (4) - 187800 [15:50:46]1012 (4) - 21.10.2024 09:43 [15:50:46]1206 (1) - 0 [15:50:46]OFD Sender: Remove packet 187800 [15:50:46]ProducePacketName [15:50:46]name=ofd_packets/00187800 [15:50:46]NVStorageDeleteData [15:50:46]OFD Sender: No OFD packet to send [15:50:47]*** Cut start [15:50:47]*** Partial cut [15:50:47]*** CUTSNS_PIN = 1 [15:50:47]*** CUTSNS_PIN = 0 [15:50:47]*** Brake cut motor [15:50:47]Read from MH i2c: 01 [15:50:47]MH_I2C_Read... [15:50:47]*** Stop cut motor [15:50:47]*** Cut end [15:50:47]Read from MH i2c: 01 07 00 [15:50:47]MH_I2C_Read... [15:50:47]Read from MH i2c: 01 07 00 DB 6B 00 00 00 00 00 FF 0F 5B [15:50:47]process_action close_receipt done [15:50:47]requested_data is exist [15:50:47]produce_requested_data [15:50:47]requested_item fm.sn is exist - process it [15:50:47]wFMCommunicate request_size=4 [15:50:47]MH_SAM_APDU [15:50:47]CAPDU: 80 11 00 00 [15:50:47]Write to MH i2c: E2 08 00 DC 6B 80 11 00 00 00 00 00 00 C1 [15:50:47]Write i2c OK [15:50:47]MH_I2C_Read... [15:50:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:50:47]Read from MH i2c: E2 [15:50:47]MH_I2C_Read... [15:50:47]Read from MH i2c: E2 17 00 [15:50:47]MH_I2C_Read... [15:50:47]Read from MH i2c: E2 17 00 DC 6B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 0F [15:50:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [15:50:47]wFMCommunicate OK [15:50:47]requested_item fd.num is exist - process it [15:50:47]SAM_PROTO_GetFieldsCounters [15:50:47]wFMCommunicate request_size=4 [15:50:47]MH_SAM_APDU [15:50:47]CAPDU: 80 13 00 00 [15:50:47]Write to MH i2c: E2 08 00 DD 6B 80 13 00 00 00 00 00 00 C4 [15:50:47]Write i2c OK [15:50:47]MH_I2C_Read... [15:50:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:50:47]Read from MH i2c: E2 [15:50:47]MH_I2C_Read... [15:50:47]Read from MH i2c: E2 62 00 [15:50:47]MH_I2C_Read... [15:50:47]Read from MH i2c: E2 62 00 DD 6B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 98 DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 08 01 00 00 5E 04 04 00 08 01 00 00 57 04 04 00 09 01 00 00 19 04 04 00 00 00 00 00 90 00 2A [15:50:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 98 DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 08 01 00 00 5E 04 04 00 08 01 00 00 57 04 04 00 09 01 00 00 19 04 04 00 00 00 00 00 90 00 [15:50:47]wFMCommunicate OK [15:50:47]SAM_PROTO_GetFieldsCounters done [15:50:47]requested_item shift.num is exist - process it [15:50:47]requested_item shift.opened is exist - process it [15:50:47]req_shift_opened [15:50:47]FM_GetShiftState [15:50:47]SAM_PROTO_GetShiftState [15:50:47]wFMCommunicate request_size=4 [15:50:47]MH_SAM_APDU [15:50:47]CAPDU: 80 13 01 00 [15:50:47]Write to MH i2c: E2 08 00 DE 6B 80 13 01 00 00 00 00 00 C6 [15:50:47]Write i2c OK [15:50:47]MH_I2C_Read... [15:50:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:50:48]Read from MH i2c: E2 [15:50:48]MH_I2C_Read... [15:50:48]Read from MH i2c: E2 0E 00 [15:50:48]MH_I2C_Read... [15:50:48]Read from MH i2c: E2 0E 00 DE 6B 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 25 [15:50:48]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [15:50:48]wFMCommunicate OK [15:50:48]SAM_PROTO_GetShiftState done [15:50:48]FM_GetShiftState done [15:50:48]req_shift_opened done [15:50:48]requested_item shift.open_date is exist - process it [15:50:48]req_shift_open_date [15:50:48]req_shift_open_date done [15:50:48]produce_requested_data done [15:50:48]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187800,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [15:50:48]process_action_free close_receipt [15:50:48]json_value_free [15:50:48]json_value_free done [15:50:48]process_json_proto returns [15:50:48]Send response to host [15:50:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187800,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [15:50:48]free response buf [15:50:48]execute_script done [15:50:48]execute_script returns [15:50:48]free content buf [15:50:48]Sock 8.Close socket [15:50:48]Sock 8.Thread stoped [15:50:51]OFD Sender: No OFD packet to send [15:50:56]OFD Sender: No OFD packet to send [15:51:01]OFD Sender: No OFD packet to send [15:51:06]OFD Sender: No OFD packet to send [15:51:11]OFD Sender: No OFD packet to send [15:51:16]OFD Sender: No OFD packet to send [15:51:21]OFD Sender: No OFD packet to send [15:51:26]OFD Sender: No OFD packet to send [15:51:31]OFD Sender: No OFD packet to send [15:51:36]OFD Sender: No OFD packet to send [15:51:41]OFD Sender: No OFD packet to send [15:51:46]OFD Sender: No OFD packet to send [15:51:51]OFD Sender: No OFD packet to send [15:51:56]OFD Sender: No OFD packet to send [15:52:01]OFD Sender: No OFD packet to send [15:52:06]OFD Sender: No OFD packet to send [15:52:12]OFD Sender: No OFD packet to send [15:52:17]OFD Sender: No OFD packet to send [15:52:22]OFD Sender: No OFD packet to send [15:52:27]OFD Sender: No OFD packet to send [15:52:32]OFD Sender: No OFD packet to send [15:52:37]OFD Sender: No OFD packet to send [15:52:42]OFD Sender: No OFD packet to send [15:52:47]OFD Sender: No OFD packet to send [15:52:52]OFD Sender: No OFD packet to send [15:52:57]OFD Sender: No OFD packet to send [15:53:02]OFD Sender: No OFD packet to send [15:53:07]OFD Sender: No OFD packet to send [15:53:12]OFD Sender: No OFD packet to send [15:53:17]OFD Sender: No OFD packet to send [15:53:22]OFD Sender: No OFD packet to send [15:53:27]OFD Sender: No OFD packet to send [15:53:32]OFD Sender: No OFD packet to send [15:53:37]OFD Sender: No OFD packet to send [15:53:42]OFD Sender: No OFD packet to send [15:53:47]OFD Sender: No OFD packet to send [15:53:52]OFD Sender: No OFD packet to send [15:53:57]OFD Sender: No OFD packet to send [15:54:02]OFD Sender: No OFD packet to send [15:54:07]OFD Sender: No OFD packet to send [15:54:12]OFD Sender: No OFD packet to send [15:54:17]OFD Sender: No OFD packet to send [15:54:22]OFD Sender: No OFD packet to send [15:54:27]OFD Sender: No OFD packet to send [15:54:32]OFD Sender: No OFD packet to send [15:54:37]OFD Sender: No OFD packet to send [15:54:42]OFD Sender: No OFD packet to send [15:54:47]OFD Sender: No OFD packet to send [15:54:52]OFD Sender: No OFD packet to send [15:54:57]OFD Sender: No OFD packet to send [15:55:02]OFD Sender: No OFD packet to send [15:55:07]OFD Sender: No OFD packet to send [15:55:12]OFD Sender: No OFD packet to send [15:55:17]OFD Sender: No OFD packet to send [15:55:22]OFD Sender: No OFD packet to send [15:55:27]OFD Sender: No OFD packet to send [15:55:32]OFD Sender: No OFD packet to send [15:55:37]OFD Sender: No OFD packet to send [15:55:42]OFD Sender: No OFD packet to send [15:55:47]OFD Sender: No OFD packet to send [15:55:52]OFD Sender: No OFD packet to send [15:55:57]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:00]accept exits with 9 [15:57:00]New connection [15:57:00]New thread 3067014500 created [15:57:00]Thread 3067157860 joined [15:57:00]Waiting for new connection... [15:57:00] Sock 9.Parse request [15:57:00]Sock 9.Check first char [15:57:00]Sock 9.First char is OK [15:57:00]request: POST /json_proto HTTP/1.0 [15:57:00]Method: POST [15:57:00]URL: /json_proto [15:57:00]Method is POST - this is cgi request [15:57:00]url: /json_proto [15:57:00]query_string will be loaded in cgi processing [15:57:00]execute_cgi json_proto POST (null) [15:57:00]execute_cgi path=json_proto method=POST [15:57:00]POST find Content-Length [15:57:00]Host: 172.17.42.131:8080 [15:57:00]Content-Length: 682 [15:57:00]Content-Type: application/json [15:57:00] [15:57:00]POST finish read [15:57:00]Found Content-Length = 682 [15:57:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209853", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 44.850, "sum" : 3000.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:57:00]execute_script... [15:57:00]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209853", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 44.850, "sum" : 3000.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:57:00]POST & json_proto [15:57:00]process_json_proto [15:57:00]json parsed OK: [15:57:00]protocol is kg_v1.0 [15:57:00]action value=close_receipt [15:57:00]process_action close_receipt [15:57:00]cmd_close_receipt [15:57:00]MH_GetDate [15:57:00]Write to MH i2c: F0 00 00 DF 6B 39 [15:57:00]Write i2c OK [15:57:00]MH_I2C_Read... [15:57:00]Read from MH i2c: F0 [15:57:00]MH_I2C_Read... [15:57:00]Read from MH i2c: F0 09 00 [15:57:00]MH_I2C_Read... [15:57:00]Read from MH i2c: F0 09 00 DF 6B 00 D1 79 16 67 A0 18 CA 66 F1 [15:57:00]GetLastDocTimeStamp 1729525848 [15:57:00]current date 1729526225 [15:57:00]FM_GetShiftState [15:57:00]SAM_PROTO_GetShiftState [15:57:00]wFMCommunicate request_size=4 [15:57:00]MH_SAM_APDU [15:57:00]CAPDU: 80 13 01 00 [15:57:00]Write to MH i2c: E2 08 00 E0 6B 80 13 01 00 00 00 00 00 C8 [15:57:00]Write i2c OK [15:57:00]MH_I2C_Read... [15:57:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:57:00]Read from MH i2c: E2 [15:57:00]MH_I2C_Read... [15:57:00]Read from MH i2c: E2 0E 00 [15:57:00]MH_I2C_Read... [15:57:00]Read from MH i2c: E2 0E 00 E0 6B 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 27 [15:57:00]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [15:57:00]wFMCommunicate OK [15:57:00]SAM_PROTO_GetShiftState done [15:57:00]FM_GetShiftState done [15:57:00]opened in 1729469754 [15:57:00]opened+sec_in_day 1729556154 [15:57:00]quantity*price = 300046 [15:57:00]sum+1 = 300048 [15:57:00]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.47 ИТОГО: 3000.00 Внесено: 3000.00 СДАЧА: 0.00 НСП 1% : 26.55 НДС 12% : 318.63 Наличными: 3000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 265 21.10.2024 15:57 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 187801 ФПД: 147022424278659 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T155705&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187801&fm=147022424278659&tin=02508201610067®Number=0000000000100030&sum=300000 [15:57:01]StoreToDocumentArchive [15:57:01]shift 460 fd 187801 [15:57:01]save to /storage/0460/doc_00187801 [15:57:01]save last doc name /storage/0460/doc_00187801 to /storage/kkm_last_doc_name [15:57:01]save OK [15:57:01]Clear old archive folders... [15:57:01]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:57:01]tlvbuf is 011F13D0 [15:57:01]SAM_PROTO_ClearQueue [15:57:01]wFMCommunicate request_size=4 [15:57:01]MH_SAM_APDU [15:57:01]CAPDU: 80 09 00 00 [15:57:01]Write to MH i2c: E2 08 00 ED 6B 80 09 00 00 00 00 00 00 CA [15:57:01]Write i2c OK [15:57:01]MH_I2C_Read... [15:57:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:57:01]Read from MH i2c: E2 [15:57:01]MH_I2C_Read... [15:57:01]Read from MH i2c: E2 03 00 [15:57:01]MH_I2C_Read... [15:57:01]Read from MH i2c: E2 03 00 ED 6B 00 90 00 CC [15:57:01]RAPDU: 90 00 [15:57:01]wFMCommunicate OK [15:57:01]SAM_PROTO_ClearQueue done [15:57:01]KKMCreateOFDPacket [15:57:01]OFDProtocolAddRootSTLVToBuf [15:57:01]FM_MakeSignedData [15:57:01]FM_MakeSignedData [15:57:01]SAM_PROTO_SignData [15:57:01]wFMCommunicate request_size=4 [15:57:01]MH_SAM_APDU [15:57:01]CAPDU: 80 0D 01 02 [15:57:01]Write to MH i2c: E2 08 00 EE 6B 80 0D 01 02 00 00 00 00 D2 [15:57:01]Write i2c OK [15:57:01]MH_I2C_Read... [15:57:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:57:01]Read from MH i2c: E2 [15:57:01]MH_I2C_Read... [15:57:01]Read from MH i2c: E2 03 00 [15:57:01]MH_I2C_Read... [15:57:01]Read from MH i2c: E2 03 00 EE 6B 00 90 00 CD [15:57:01]RAPDU: 90 00 [15:57:01]wFMCommunicate OK [15:57:01]wFMCommunicate request_size=255 [15:57:01]MH_SAM_APDU [15:57:01]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 32 AF 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 0F 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 01 00 00 F4 03 04 00 D1 79 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 99 DD 02 00 35 04 06 00 85 [15:57:01]Write to MH i2c: E2 02 01 EF 6B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 32 AF 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 0F 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 01 00 00 F4 03 04 00 D1 79 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 99 DD 02 00 35 04 06 00 85 00 00 69 [15:57:01]Write i2c OK [15:57:01]MH_I2C_Read... [15:57:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:57:01]Read from MH i2c: E2 [15:57:01]MH_I2C_Read... [15:57:01]Read from MH i2c: E2 03 00 [15:57:01]MH_I2C_Read... [15:57:01]Read from MH i2c: E2 03 00 EF 6B 00 90 00 CE [15:57:01]RAPDU: 90 00 [15:57:01]wFMCommunicate OK [15:57:01]wFMCommunicate request_size=10 [15:57:01]MH_SAM_APDU [15:57:01]CAPDU: 80 0D 02 02 05 B7 53 5F 86 83 [15:57:01]Write to MH i2c: E2 0D 00 F0 6B 80 0D 02 02 05 00 B7 53 5F 86 83 00 00 51 [15:57:01]Write i2c OK [15:57:01]MH_I2C_Read... [15:57:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:57:02]Read from MH i2c: E2 [15:57:02]MH_I2C_Read... [15:57:02]Read from MH i2c: E2 03 00 [15:57:02]MH_I2C_Read... [15:57:02]Read from MH i2c: E2 03 00 F0 6B 00 90 00 CF [15:57:02]RAPDU: 90 00 [15:57:02]wFMCommunicate OK [15:57:02]wFMCommunicate request_size=4 [15:57:02]MH_SAM_APDU [15:57:02]CAPDU: 80 0D 03 02 [15:57:02]Write to MH i2c: E2 08 00 F1 6B 80 0D 03 02 00 00 00 00 D7 [15:57:02]Write i2c OK [15:57:02]MH_I2C_Read... [15:57:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:57:02]Read from MH i2c: E2 [15:57:02]MH_I2C_Read... [15:57:02]Read from MH i2c: E2 0B 00 [15:57:02]MH_I2C_Read... [15:57:02]Read from MH i2c: E2 0B 00 F1 6B 00 DE 9D 90 6F 78 D7 AE B2 90 00 01 [15:57:02]RAPDU: DE 9D 90 6F 78 D7 AE B2 90 00 [15:57:02]wFMCommunicate OK [15:57:02]SAM_PROTO_SignData done [15:57:02]FM_MakeSignedData done [15:57:02]CreateOFDProtocolMessage [15:57:02]wFMCommunicate request_size=4 [15:57:02]MH_SAM_APDU [15:57:02]CAPDU: 80 11 00 00 [15:57:02]Write to MH i2c: E2 08 00 F2 6B 80 11 00 00 00 00 00 00 D7 [15:57:02]Write i2c OK [15:57:02]MH_I2C_Read... [15:57:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:57:02]Read from MH i2c: E2 [15:57:02]MH_I2C_Read... [15:57:02]Read from MH i2c: E2 17 00 [15:57:02]MH_I2C_Read... [15:57:02]Read from MH i2c: E2 17 00 F2 6B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 25 [15:57:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [15:57:02]wFMCommunicate OK [15:57:02]CreateOFDProtocolMessage done [15:57:02]OFDSenderStorePacket 187801 [15:57:02]StoreOFDPacket docnum=187801 [15:57:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 2F 55 07 01 B6 23 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 32 AF 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 0F 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 01 00 00 F4 03 04 00 D1 79 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 99 DD 02 00 35 04 06 00 85 B7 53 5F 86 83 DE 9D 90 6F 78 D7 AE B2 [15:57:02]CheckFolder [15:57:02]dirname=/storage/ofd_packets [15:57:02]CheckFolder done [15:57:02]ProducePacketName [15:57:02]name=ofd_packets/00187801 [15:57:02]NVStorageSaveData ofd_packets/00187801 [15:57:02]File name is /storage/ofd_packets/00187801 [15:57:02]Write 301 bytes [15:57:02]NVStorageSaveData done [15:57:02]OFDSenderStorePacket done [15:57:02]KKMCreateOFDPacket done [15:57:02]NVStorageSaveData kkm_last_timestamp [15:57:02]File name is /storage/kkm_last_timestamp [15:57:02]Write 4 bytes [15:57:02]NVStorageSaveData done [15:57:02]ExternCall_PrintAddStr [15:57:02]wPrintStart [15:57:02]Write to MH i2c: 01 00 00 F3 6B 5E [15:57:02]Write i2c OK [15:57:02]MH_I2C_Read... [15:57:02]Read from MH i2c: 01 [15:57:02]MH_I2C_Read... [15:57:02]Read from MH i2c: 01 07 00 [15:57:02]MH_I2C_Read... [15:57:02]Read from MH i2c: 01 07 00 F3 6B 00 00 00 00 00 FF 0F 73 [15:57:02]RasterBufferAndPrint [15:57:02]line Счет N : (1)209853 [15:57:02]line ИНН: 02508201610067 [15:57:02]line Контрольно-Кассовый Чек [15:57:02]line ПРОДАЖА [15:57:02]line ТРК (МРК, ГНК) : 32 [15:57:02]line Товар: 2710124130 [15:57:02]line Аи-92-К-3 [15:57:02]line 44.850 * 66.90 [15:57:02]line = 3000.47 [15:57:02]line НДС 12% НСП 1% [15:57:02]line > о реализуемом товаре [15:57:02]line ОКРУГЛЕНИЕ: -0.47 [15:57:02]line ИТОГО: 3000.00 [15:57:02]line Внесено: 3000.00 [15:57:02]line СДАЧА: 0.00 [15:57:02]line НСП 1% : 26.55 [15:57:02]line НДС 12% : 318.63 [15:57:02]line Наличными: 3000.00 [15:57:02]line Безнал.: 0.00 [15:57:02]line Место: АЗС № 86 "Партнер Нефть" [15:57:02]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [15:57:02]line СНО: Общий режим [15:57:02]line Чек 265 21.10.2024 15:57 [15:57:02]line Смена: 460 ФФД: 1.0 [15:57:02]line ЗНМ: 0300000155 [15:57:02]line РНМ: 0000000000100030 [15:57:02]line Версия ККМ: 001 [15:57:02]line ФМ: 0000000000965340 [15:57:02]line ФД: 187801 [15:57:02]line ФПД: 147022424278659 [15:57:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T155705&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187801&fm=147022424278659&tin=02508201610067®Number=0000000000100030&sum=300000 [15:57:02]written 0, free lines is 4095 [15:57:02]OFD Sender: Processing packet 187801 [packets to send 1062, broken 1061] [15:57:02]ProducePacketName [15:57:02]name=ofd_packets/00187801 [15:57:02]OFD Sender: To server: pG, [15:57:02]CommunicateWithHost lk.salyk.kg:30040 [15:57:02]ConnectInit lk.salyk.kg [15:57:02]Connected sock=10 [15:57:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 2F 55 07 01 B6 23 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 32 AF 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 0F 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 01 00 00 F4 03 04 00 D1 79 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 99 DD 02 00 35 04 06 00 85 B7 53 5F 86 83 DE 9D 90 6F 78 D7 AE B2 [15:57:02]Write to MH i2c: 01 00 00 1E 6C 8A [15:57:02]Write i2c OK [15:57:02]MH_I2C_Read... [15:57:02]Read from MH i2c: 01 [15:57:02]MH_I2C_Read... [15:57:02]Read from MH i2c: 01 07 00 [15:57:02]MH_I2C_Read... [15:57:02]Read from MH i2c: 01 07 00 1E 6C 00 00 00 00 00 67 0C 04 [15:57:02]RasterBufferAndPrint [15:57:02]line [15:57:02]line [15:57:02]line [15:57:02]line [15:57:02]line [15:57:02]written 0, free lines is 3178 [15:57:02]MH_Cut [15:57:02]Write to MH i2c: D1 01 00 25 6C 01 63 [15:57:02]Write i2c OK [15:57:02]MH_I2C_Read... [15:57:02]Read from MH i2c: D1 [15:57:02]MH_I2C_Read... [15:57:02]Read from MH i2c: D1 01 00 [15:57:02]MH_I2C_Read... [15:57:02]Read from MH i2c: D1 01 00 25 6C 00 62 [15:57:02]Write to MH i2c: 01 00 00 26 6C 92 [15:57:02]Write i2c OK [15:57:02]MH_I2C_Read... [15:57:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 87 AD 47 00 49 C7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 99 DD 02 00 F4 03 04 00 C0 23 16 67 B6 04 01 00 00 85 BB AC B3 4B B6 C4 45 [15:57:02]CommunicateWithHost err = 0 [15:57:02]CheckOFDResponse [15:57:02]1017 (14) - 77093643461234 [15:57:02]1041 (16) - 0000000000965340 [15:57:02]1040 (4) - 187801 [15:57:02]1012 (4) - 21.10.2024 09:49 [15:57:02]1206 (1) - 0 [15:57:02]OFD Sender: Remove packet 187801 [15:57:02]ProducePacketName [15:57:02]name=ofd_packets/00187801 [15:57:02]NVStorageDeleteData [15:57:03]OFD Sender: No OFD packet to send [15:57:03]*** Cut start [15:57:03]*** Partial cut [15:57:03]*** CUTSNS_PIN = 1 [15:57:03]*** CUTSNS_PIN = 0 [15:57:04]*** Brake cut motor [15:57:04]Read from MH i2c: 01 [15:57:04]MH_I2C_Read... [15:57:04]*** Stop cut motor [15:57:04]*** Cut end [15:57:04]Read from MH i2c: 01 07 00 [15:57:04]MH_I2C_Read... [15:57:04]Read from MH i2c: 01 07 00 26 6C 00 00 00 00 00 FF 0F A7 [15:57:04]process_action close_receipt done [15:57:04]requested_data is exist [15:57:04]produce_requested_data [15:57:04]requested_item fm.sn is exist - process it [15:57:04]wFMCommunicate request_size=4 [15:57:04]MH_SAM_APDU [15:57:04]CAPDU: 80 11 00 00 [15:57:04]Write to MH i2c: E2 08 00 27 6C 80 11 00 00 00 00 00 00 0D [15:57:04]Write i2c OK [15:57:04]MH_I2C_Read... [15:57:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:57:04]Read from MH i2c: E2 [15:57:04]MH_I2C_Read... [15:57:04]Read from MH i2c: E2 17 00 [15:57:04]MH_I2C_Read... [15:57:04]Read from MH i2c: E2 17 00 27 6C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 5B [15:57:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [15:57:04]wFMCommunicate OK [15:57:04]requested_item fd.num is exist - process it [15:57:04]SAM_PROTO_GetFieldsCounters [15:57:04]wFMCommunicate request_size=4 [15:57:04]MH_SAM_APDU [15:57:04]CAPDU: 80 13 00 00 [15:57:04]Write to MH i2c: E2 08 00 28 6C 80 13 00 00 00 00 00 00 10 [15:57:04]Write i2c OK [15:57:04]MH_I2C_Read... [15:57:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:57:04]Read from MH i2c: E2 [15:57:04]MH_I2C_Read... [15:57:04]Read from MH i2c: E2 62 00 [15:57:04]MH_I2C_Read... [15:57:04]Read from MH i2c: E2 62 00 28 6C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 99 DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 09 01 00 00 5E 04 04 00 09 01 00 00 57 04 04 00 0A 01 00 00 19 04 04 00 00 00 00 00 90 00 7A [15:57:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 99 DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 09 01 00 00 5E 04 04 00 09 01 00 00 57 04 04 00 0A 01 00 00 19 04 04 00 00 00 00 00 90 00 [15:57:04]wFMCommunicate OK [15:57:04]SAM_PROTO_GetFieldsCounters done [15:57:04]requested_item shift.num is exist - process it [15:57:04]requested_item shift.opened is exist - process it [15:57:04]req_shift_opened [15:57:04]FM_GetShiftState [15:57:04]SAM_PROTO_GetShiftState [15:57:04]wFMCommunicate request_size=4 [15:57:04]MH_SAM_APDU [15:57:04]CAPDU: 80 13 01 00 [15:57:04]Write to MH i2c: E2 08 00 29 6C 80 13 01 00 00 00 00 00 12 [15:57:04]Write i2c OK [15:57:04]MH_I2C_Read... [15:57:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:57:04]Read from MH i2c: E2 [15:57:04]MH_I2C_Read... [15:57:04]Read from MH i2c: E2 0E 00 [15:57:04]MH_I2C_Read... [15:57:04]Read from MH i2c: E2 0E 00 29 6C 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 71 [15:57:04]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [15:57:04]wFMCommunicate OK [15:57:04]SAM_PROTO_GetShiftState done [15:57:04]FM_GetShiftState done [15:57:04]req_shift_opened done [15:57:04]requested_item shift.open_date is exist - process it [15:57:04]req_shift_open_date [15:57:04]req_shift_open_date done [15:57:04]produce_requested_data done [15:57:04]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187801,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [15:57:04]process_action_free close_receipt [15:57:04]json_value_free [15:57:04]json_value_free done [15:57:04]process_json_proto returns [15:57:04]Send response to host [15:57:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187801,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [15:57:04]free response buf [15:57:04]execute_script done [15:57:04]execute_script returns [15:57:04]free content buf [15:57:04]Sock 9.Close socket [15:57:04]Sock 9.Thread stoped [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:39]OFD Sender: No OFD packet to send [15:59:44]OFD Sender: No OFD packet to send [15:59:49]OFD Sender: No OFD packet to send [15:59:54]OFD Sender: No OFD packet to send [15:59:59]OFD Sender: No OFD packet to send [16:00:04]OFD Sender: No OFD packet to send [16:00:09]OFD Sender: No OFD packet to send [16:00:14]OFD Sender: No OFD packet to send [16:00:19]OFD Sender: No OFD packet to send [16:00:24]OFD Sender: No OFD packet to send [16:00:29]OFD Sender: No OFD packet to send [16:00:34]OFD Sender: No OFD packet to send [16:00:39]OFD Sender: No OFD packet to send [16:00:44]OFD Sender: No OFD packet to send [16:00:49]OFD Sender: No OFD packet to send [16:00:54]OFD Sender: No OFD packet to send [16:00:59]OFD Sender: No OFD packet to send [16:01:04]OFD Sender: No OFD packet to send [16:01:09]OFD Sender: No OFD packet to send [16:01:14]OFD Sender: No OFD packet to send [16:01:19]OFD Sender: No OFD packet to send [16:01:24]OFD Sender: No OFD packet to send [16:01:29]OFD Sender: No OFD packet to send [16:01:34]OFD Sender: No OFD packet to send [16:01:39]OFD Sender: No OFD packet to send [16:01:44]OFD Sender: No OFD packet to send [16:01:49]OFD Sender: No OFD packet to send [16:01:54]OFD Sender: No OFD packet to send [16:01:59]OFD Sender: No OFD packet to send [16:02:04]OFD Sender: No OFD packet to send [16:02:09]OFD Sender: No OFD packet to send [16:02:14]OFD Sender: No OFD packet to send [16:02:19]OFD Sender: No OFD packet to send [16:02:24]OFD Sender: No OFD packet to send [16:02:29]OFD Sender: No OFD packet to send [16:02:34]OFD Sender: No OFD packet to send [16:02:39]OFD Sender: No OFD packet to send [16:02:44]OFD Sender: No OFD packet to send [16:02:49]OFD Sender: No OFD packet to send [16:02:54]OFD Sender: No OFD packet to send [16:02:59]OFD Sender: No OFD packet to send [16:03:04]OFD Sender: No OFD packet to send [16:03:09]OFD Sender: No OFD packet to send [16:03:14]OFD Sender: No OFD packet to send [16:03:19]OFD Sender: No OFD packet to send [16:03:24]OFD Sender: No OFD packet to send [16:03:30]OFD Sender: No OFD packet to send [16:03:35]OFD Sender: No OFD packet to send [16:03:40]OFD Sender: No OFD packet to send [16:03:45]OFD Sender: No OFD packet to send [16:03:50]OFD Sender: No OFD packet to send [16:03:55]OFD Sender: No OFD packet to send [16:04:00]OFD Sender: No OFD packet to send [16:04:05]OFD Sender: No OFD packet to send [16:04:10]OFD Sender: No OFD packet to send [16:04:15]OFD Sender: No OFD packet to send [16:04:20]OFD Sender: No OFD packet to send [16:04:25]OFD Sender: No OFD packet to send [16:04:30]OFD Sender: No OFD packet to send [16:04:35]OFD Sender: No OFD packet to send [16:04:40]OFD Sender: No OFD packet to send [16:04:45]OFD Sender: No OFD packet to send [16:04:50]OFD Sender: No OFD packet to send [16:04:55]OFD Sender: No OFD packet to send [16:05:00]OFD Sender: No OFD packet to send [16:05:05]OFD Sender: No OFD packet to send [16:05:10]OFD Sender: No OFD packet to send [16:05:15]OFD Sender: No OFD packet to send [16:05:20]OFD Sender: No OFD packet to send [16:05:25]OFD Sender: No OFD packet to send [16:05:30]OFD Sender: No OFD packet to send [16:05:35]OFD Sender: No OFD packet to send [16:05:40]OFD Sender: No OFD packet to send [16:05:45]OFD Sender: No OFD packet to send [16:05:50]OFD Sender: No OFD packet to send [16:05:55]OFD Sender: No OFD packet to send [16:06:00]OFD Sender: No OFD packet to send [16:06:05]OFD Sender: No OFD packet to send [16:06:10]OFD Sender: No OFD packet to send [16:06:15]OFD Sender: No OFD packet to send [16:06:20]OFD Sender: No OFD packet to send [16:06:25]OFD Sender: No OFD packet to send [16:06:30]OFD Sender: No OFD packet to send [16:06:35]OFD Sender: No OFD packet to send [16:06:36]accept exits with 8 [16:06:36]New connection [16:06:36]New thread 3067157860 created [16:06:36]Thread 3067014500 joined [16:06:36]Waiting for new connection... [16:06:36] Sock 8.Parse request [16:06:36]Sock 8.Check first char [16:06:36]Sock 8.First char is OK [16:06:36]request: POST /json_proto HTTP/1.0 [16:06:36]Method: POST [16:06:36]URL: /json_proto [16:06:36]Method is POST - this is cgi request [16:06:36]url: /json_proto [16:06:36]query_string will be loaded in cgi processing [16:06:36]execute_cgi json_proto POST (null) [16:06:36]execute_cgi path=json_proto method=POST [16:06:36]POST find Content-Length [16:06:36]Host: 172.17.42.131:8080 [16:06:36]Content-Length: 682 [16:06:36]Content-Type: application/json [16:06:36] [16:06:36]POST finish read [16:06:36]Found Content-Length = 682 [16:06:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209854", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:06:36]execute_script... [16:06:36]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209854", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:06:36]POST & json_proto [16:06:36]process_json_proto [16:06:36]json parsed OK: [16:06:36]protocol is kg_v1.0 [16:06:36]action value=close_receipt [16:06:36]process_action close_receipt [16:06:36]cmd_close_receipt [16:06:36]MH_GetDate [16:06:36]Write to MH i2c: F0 00 00 2A 6C 85 [16:06:36]Write i2c OK [16:06:36]MH_I2C_Read... [16:06:36]Read from MH i2c: F0 [16:06:36]MH_I2C_Read... [16:06:36]Read from MH i2c: F0 09 00 [16:06:36]MH_I2C_Read... [16:06:36]Read from MH i2c: F0 09 00 2A 6C 00 11 7C 16 67 A0 18 CA 66 80 [16:06:36]GetLastDocTimeStamp 1729526225 [16:06:36]current date 1729526801 [16:06:36]FM_GetShiftState [16:06:36]SAM_PROTO_GetShiftState [16:06:36]wFMCommunicate request_size=4 [16:06:36]MH_SAM_APDU [16:06:36]CAPDU: 80 13 01 00 [16:06:36]Write to MH i2c: E2 08 00 2B 6C 80 13 01 00 00 00 00 00 14 [16:06:36]Write i2c OK [16:06:36]MH_I2C_Read... [16:06:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:06:36]Read from MH i2c: E2 [16:06:36]MH_I2C_Read... [16:06:36]Read from MH i2c: E2 0E 00 [16:06:36]MH_I2C_Read... [16:06:36]Read from MH i2c: E2 0E 00 2B 6C 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 73 [16:06:36]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [16:06:36]wFMCommunicate OK [16:06:36]SAM_PROTO_GetShiftState done [16:06:36]FM_GetShiftState done [16:06:36]opened in 1729469754 [16:06:36]opened+sec_in_day 1729556154 [16:06:36]quantity*price = 100015 [16:06:36]sum+1 = 100017 [16:06:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 266 21.10.2024 16:06 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 187802 ФПД: 109428545792633 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T160641&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187802&fm=109428545792633&tin=02508201610067®Number=0000000000100030&sum=100000 [16:06:37]StoreToDocumentArchive [16:06:37]shift 460 fd 187802 [16:06:37]save to /storage/0460/doc_00187802 [16:06:37]save last doc name /storage/0460/doc_00187802 to /storage/kkm_last_doc_name [16:06:37]save OK [16:06:37]Clear old archive folders... [16:06:37]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:06:37]tlvbuf is B6F0C980 [16:06:37]SAM_PROTO_ClearQueue [16:06:37]wFMCommunicate request_size=4 [16:06:37]MH_SAM_APDU [16:06:37]CAPDU: 80 09 00 00 [16:06:37]Write to MH i2c: E2 08 00 38 6C 80 09 00 00 00 00 00 00 16 [16:06:37]Write i2c OK [16:06:37]MH_I2C_Read... [16:06:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:06:37]Read from MH i2c: E2 [16:06:37]MH_I2C_Read... [16:06:37]Read from MH i2c: E2 03 00 [16:06:37]MH_I2C_Read... [16:06:37]Read from MH i2c: E2 03 00 38 6C 00 90 00 18 [16:06:37]RAPDU: 90 00 [16:06:37]wFMCommunicate OK [16:06:37]SAM_PROTO_ClearQueue done [16:06:37]KKMCreateOFDPacket [16:06:37]OFDProtocolAddRootSTLVToBuf [16:06:37]FM_MakeSignedData [16:06:37]FM_MakeSignedData [16:06:37]SAM_PROTO_SignData [16:06:37]wFMCommunicate request_size=4 [16:06:37]MH_SAM_APDU [16:06:37]CAPDU: 80 0D 01 02 [16:06:37]Write to MH i2c: E2 08 00 39 6C 80 0D 01 02 00 00 00 00 1E [16:06:37]Write i2c OK [16:06:37]MH_I2C_Read... [16:06:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:06:38]Read from MH i2c: E2 [16:06:38]MH_I2C_Read... [16:06:38]Read from MH i2c: E2 03 00 [16:06:38]MH_I2C_Read... [16:06:38]Read from MH i2c: E2 03 00 39 6C 00 90 00 19 [16:06:38]RAPDU: 90 00 [16:06:38]wFMCommunicate OK [16:06:38]wFMCommunicate request_size=255 [16:06:38]MH_SAM_APDU [16:06: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 33 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 0A 01 00 00 F4 03 04 00 11 7C 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 9A DD 02 00 35 04 06 00 63 [16:06:38]Write to MH i2c: E2 02 01 3A 6C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 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 0A 01 00 00 F4 03 04 00 11 7C 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 9A DD 02 00 35 04 06 00 63 00 00 49 [16:06:38]Write i2c OK [16:06:38]MH_I2C_Read... [16:06:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:06:38]Read from MH i2c: E2 [16:06:38]MH_I2C_Read... [16:06:38]Read from MH i2c: E2 03 00 [16:06:38]MH_I2C_Read... [16:06:38]Read from MH i2c: E2 03 00 3A 6C 00 90 00 1A [16:06:38]RAPDU: 90 00 [16:06:38]wFMCommunicate OK [16:06:38]wFMCommunicate request_size=10 [16:06:38]MH_SAM_APDU [16:06:38]CAPDU: 80 0D 02 02 05 86 51 99 AA 79 [16:06:38]Write to MH i2c: E2 0D 00 3B 6C 80 0D 02 02 05 00 86 51 99 AA 79 00 00 BE [16:06:38]Write i2c OK [16:06:38]MH_I2C_Read... [16:06:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:06:38]Read from MH i2c: E2 [16:06:38]MH_I2C_Read... [16:06:38]Read from MH i2c: E2 03 00 [16:06:38]MH_I2C_Read... [16:06:38]Read from MH i2c: E2 03 00 3B 6C 00 90 00 1B [16:06:38]RAPDU: 90 00 [16:06:38]wFMCommunicate OK [16:06:38]wFMCommunicate request_size=4 [16:06:38]MH_SAM_APDU [16:06:38]CAPDU: 80 0D 03 02 [16:06:38]Write to MH i2c: E2 08 00 3C 6C 80 0D 03 02 00 00 00 00 23 [16:06:38]Write i2c OK [16:06:38]MH_I2C_Read... [16:06:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:06:38]Read from MH i2c: E2 [16:06:38]MH_I2C_Read... [16:06:38]Read from MH i2c: E2 0B 00 [16:06:38]MH_I2C_Read... [16:06:38]Read from MH i2c: E2 0B 00 3C 6C 00 1F 73 9C 99 1C 47 67 19 90 00 CE [16:06:38]RAPDU: 1F 73 9C 99 1C 47 67 19 90 00 [16:06:38]wFMCommunicate OK [16:06:38]SAM_PROTO_SignData done [16:06:38]FM_MakeSignedData done [16:06:38]CreateOFDProtocolMessage [16:06:38]wFMCommunicate request_size=4 [16:06:38]MH_SAM_APDU [16:06:38]CAPDU: 80 11 00 00 [16:06:38]Write to MH i2c: E2 08 00 3D 6C 80 11 00 00 00 00 00 00 23 [16:06:38]Write i2c OK [16:06:38]MH_I2C_Read... [16:06:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:06:38]Read from MH i2c: E2 [16:06:38]MH_I2C_Read... [16:06:38]Read from MH i2c: E2 17 00 [16:06:38]MH_I2C_Read... [16:06:38]Read from MH i2c: E2 17 00 3D 6C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 71 [16:06:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [16:06:38]wFMCommunicate OK [16:06:38]CreateOFDProtocolMessage done [16:06:38]OFDSenderStorePacket 187802 [16:06:38]StoreOFDPacket docnum=187802 [16:06:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 64 2E 07 01 A9 77 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 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 0A 01 00 00 F4 03 04 00 11 7C 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 9A DD 02 00 35 04 06 00 63 86 51 99 AA 79 1F 73 9C 99 1C 47 67 19 [16:06:38]CheckFolder [16:06:38]dirname=/storage/ofd_packets [16:06:38]CheckFolder done [16:06:38]ProducePacketName [16:06:38]name=ofd_packets/00187802 [16:06:38]NVStorageSaveData ofd_packets/00187802 [16:06:38]File name is /storage/ofd_packets/00187802 [16:06:38]Write 301 bytes [16:06:38]NVStorageSaveData done [16:06:38]OFDSenderStorePacket done [16:06:38]KKMCreateOFDPacket done [16:06:38]NVStorageSaveData kkm_last_timestamp [16:06:38]File name is /storage/kkm_last_timestamp [16:06:38]Write 4 bytes [16:06:38]NVStorageSaveData done [16:06:38]ExternCall_PrintAddStr [16:06:38]wPrintStart [16:06:38]Write to MH i2c: 01 00 00 3E 6C AA [16:06:38]Write i2c OK [16:06:38]MH_I2C_Read... [16:06:38]Read from MH i2c: 01 [16:06:38]MH_I2C_Read... [16:06:38]Read from MH i2c: 01 07 00 [16:06:38]MH_I2C_Read... [16:06:38]Read from MH i2c: 01 07 00 3E 6C 00 00 00 00 00 FF 0F BF [16:06:38]RasterBufferAndPrint [16:06:38]line Счет N : (1)209854 [16:06:38]line ИНН: 02508201610067 [16:06:38]line Контрольно-Кассовый Чек [16:06:38]line ПРОДАЖА [16:06:38]line ТРК (МРК, ГНК) : 42 [16:06:38]line Товар: 2710124130 [16:06:38]line Аи-92-К-3 [16:06:38]line 14.950 * 66.90 [16:06:38]line = 1000.16 [16:06:38]line НДС 12% НСП 1% [16:06:38]line > о реализуемом товаре [16:06:38]line ОКРУГЛЕНИЕ: -0.16 [16:06:38]line ИТОГО: 1000.00 [16:06:38]line Внесено: 1000.00 [16:06:38]line СДАЧА: 0.00 [16:06:38]line НСП 1% : 8.85 [16:06:38]line НДС 12% : 106.21 [16:06:38]line Наличными: 1000.00 [16:06:38]line Безнал.: 0.00 [16:06:38]line Место: АЗС № 86 "Партнер Нефть" [16:06:38]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [16:06:38]line СНО: Общий режим [16:06:38]line Чек 266 21.10.2024 16:06 [16:06:38]line Смена: 460 ФФД: 1.0 [16:06:38]line ЗНМ: 0300000155 [16:06:38]line РНМ: 0000000000100030 [16:06:38]line Версия ККМ: 001 [16:06:38]line ФМ: 0000000000965340 [16:06:38]line ФД: 187802 [16:06:38]line ФПД: 109428545792633 [16:06:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T160641&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187802&fm=109428545792633&tin=02508201610067®Number=0000000000100030&sum=100000 [16:06:38]written 0, free lines is 4095 [16:06:38]OFD Sender: Processing packet 187802 [packets to send 1062, broken 1061] [16:06:38]ProducePacketName [16:06:38]name=ofd_packets/00187802 [16:06:38]OFD Sender: To server: pG, [16:06:38]CommunicateWithHost lk.salyk.kg:30040 [16:06:38]ConnectInit lk.salyk.kg [16:06:38]Connected sock=10 [16:06:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 64 2E 07 01 A9 77 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 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 0A 01 00 00 F4 03 04 00 11 7C 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 9A DD 02 00 35 04 06 00 63 86 51 99 AA 79 1F 73 9C 99 1C 47 67 19 [16:06:38]Write to MH i2c: 01 00 00 69 6C D5 [16:06:38]Write i2c OK [16:06:38]MH_I2C_Read... [16:06:38]Read from MH i2c: 01 [16:06:38]MH_I2C_Read... [16:06:38]Read from MH i2c: 01 07 00 [16:06:38]MH_I2C_Read... [16:06:38]Read from MH i2c: 01 07 00 69 6C 00 00 00 00 00 61 0C 49 [16:06:38]RasterBufferAndPrint [16:06:38]line [16:06:38]line [16:06:38]line [16:06:38]line [16:06:38]line [16:06:38]written 0, free lines is 3173 [16:06:38]MH_Cut [16:06:38]Write to MH i2c: D1 01 00 70 6C 01 AE [16:06:38]Write i2c OK [16:06:38]MH_I2C_Read... [16:06:38]Read from MH i2c: D1 [16:06:38]MH_I2C_Read... [16:06:38]Read from MH i2c: D1 01 00 [16:06:38]MH_I2C_Read... [16:06:38]Read from MH i2c: D1 01 00 70 6C 00 AD [16:06:38]Write to MH i2c: 01 00 00 71 6C DD [16:06:38]Write i2c OK [16:06:38]MH_I2C_Read... [16:06:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 A8 36 47 00 52 3D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 9A DD 02 00 F4 03 04 00 00 26 16 67 B6 04 01 00 00 51 A4 D7 99 C2 B5 37 0F [16:06:39]CommunicateWithHost err = 0 [16:06:39]CheckOFDResponse [16:06:39]1017 (14) - 77093643461234 [16:06:39]1041 (16) - 0000000000965340 [16:06:39]1040 (4) - 187802 [16:06:39]1012 (4) - 21.10.2024 09:59 [16:06:39]1206 (1) - 0 [16:06:39]OFD Sender: Remove packet 187802 [16:06:39]ProducePacketName [16:06:39]name=ofd_packets/00187802 [16:06:39]NVStorageDeleteData [16:06:39]OFD Sender: No OFD packet to send [16:06:40]*** Cut start [16:06:40]*** Partial cut [16:06:40]*** CUTSNS_PIN = 1 [16:06:40]*** CUTSNS_PIN = 0 [16:06:40]*** Brake cut motor [16:06:40]Read from MH i2c: 01 [16:06:40]MH_I2C_Read... [16:06:40]*** Stop cut motor [16:06:40]*** Cut end [16:06:40]Read from MH i2c: 01 07 00 [16:06:40]MH_I2C_Read... [16:06:40]Read from MH i2c: 01 07 00 71 6C 00 00 00 00 00 FF 0F F2 [16:06:40]process_action close_receipt done [16:06:40]requested_data is exist [16:06:40]produce_requested_data [16:06:40]requested_item fm.sn is exist - process it [16:06:40]wFMCommunicate request_size=4 [16:06:40]MH_SAM_APDU [16:06:40]CAPDU: 80 11 00 00 [16:06:40]Write to MH i2c: E2 08 00 72 6C 80 11 00 00 00 00 00 00 58 [16:06:40]Write i2c OK [16:06:40]MH_I2C_Read... [16:06:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:06:40]Read from MH i2c: E2 [16:06:40]MH_I2C_Read... [16:06:40]Read from MH i2c: E2 17 00 [16:06:40]MH_I2C_Read... [16:06:40]Read from MH i2c: E2 17 00 72 6C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 A6 [16:06:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [16:06:40]wFMCommunicate OK [16:06:40]requested_item fd.num is exist - process it [16:06:40]SAM_PROTO_GetFieldsCounters [16:06:40]wFMCommunicate request_size=4 [16:06:40]MH_SAM_APDU [16:06:40]CAPDU: 80 13 00 00 [16:06:40]Write to MH i2c: E2 08 00 73 6C 80 13 00 00 00 00 00 00 5B [16:06:40]Write i2c OK [16:06:40]MH_I2C_Read... [16:06:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:06:40]Read from MH i2c: E2 [16:06:40]MH_I2C_Read... [16:06:40]Read from MH i2c: E2 62 00 [16:06:40]MH_I2C_Read... [16:06:40]Read from MH i2c: E2 62 00 73 6C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 9A DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 0A 01 00 00 5E 04 04 00 0A 01 00 00 57 04 04 00 0B 01 00 00 19 04 04 00 00 00 00 00 90 00 C9 [16:06:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 9A DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 0A 01 00 00 5E 04 04 00 0A 01 00 00 57 04 04 00 0B 01 00 00 19 04 04 00 00 00 00 00 90 00 [16:06:41]wFMCommunicate OK [16:06:41]SAM_PROTO_GetFieldsCounters done [16:06:41]requested_item shift.num is exist - process it [16:06:41]requested_item shift.opened is exist - process it [16:06:41]req_shift_opened [16:06:41]FM_GetShiftState [16:06:41]SAM_PROTO_GetShiftState [16:06:41]wFMCommunicate request_size=4 [16:06:41]MH_SAM_APDU [16:06:41]CAPDU: 80 13 01 00 [16:06:41]Write to MH i2c: E2 08 00 74 6C 80 13 01 00 00 00 00 00 5D [16:06:41]Write i2c OK [16:06:41]MH_I2C_Read... [16:06:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:06:41]Read from MH i2c: E2 [16:06:41]MH_I2C_Read... [16:06:41]Read from MH i2c: E2 0E 00 [16:06:41]MH_I2C_Read... [16:06:41]Read from MH i2c: E2 0E 00 74 6C 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 BC [16:06:41]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [16:06:41]wFMCommunicate OK [16:06:41]SAM_PROTO_GetShiftState done [16:06:41]FM_GetShiftState done [16:06:41]req_shift_opened done [16:06:41]requested_item shift.open_date is exist - process it [16:06:41]req_shift_open_date [16:06:41]req_shift_open_date done [16:06:41]produce_requested_data done [16:06:41]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187802,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [16:06:41]process_action_free close_receipt [16:06:41]json_value_free [16:06:41]json_value_free done [16:06:41]process_json_proto returns [16:06:41]Send response to host [16:06:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187802,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [16:06:41]free response buf [16:06:41]execute_script done [16:06:41]execute_script returns [16:06:41]free content buf [16:06:41]Sock 8.Close socket [16:06:41]Sock 8.Thread stoped [16:06:44]OFD Sender: No OFD packet to send [16:06:49]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]accept exits with 9 [16:07:29]New connection [16:07:29]New thread 3067014500 created [16:07:29]Thread 3067157860 joined [16:07:29]Waiting for new connection... [16:07:29] Sock 9.Parse request [16:07:29]Sock 9.Check first char [16:07:29]Sock 9.First char is OK [16:07:29]request: POST /json_proto HTTP/1.0 [16:07:29]Method: POST [16:07:29]URL: /json_proto [16:07:29]Method is POST - this is cgi request [16:07:29]url: /json_proto [16:07:29]query_string will be loaded in cgi processing [16:07:29]execute_cgi json_proto POST (null) [16:07:29]execute_cgi path=json_proto method=POST [16:07:29]POST find Content-Length [16:07:29]Host: 172.17.42.131:8080 [16:07:29]Content-Length: 677 [16:07:29]Content-Type: application/json [16:07:29] [16:07:29]POST finish read [16:07:29]Found Content-Length = 677 [16:07:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209855", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:07:29]execute_script... [16:07:29]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209855", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:07:29]POST & json_proto [16:07:29]process_json_proto [16:07:29]json parsed OK: [16:07:29]protocol is kg_v1.0 [16:07:29]action value=close_receipt [16:07:29]process_action close_receipt [16:07:29]cmd_close_receipt [16:07:29]MH_GetDate [16:07:29]Write to MH i2c: F0 00 00 75 6C D0 [16:07:29]Write i2c OK [16:07:29]MH_I2C_Read... [16:07:29]Read from MH i2c: F0 [16:07:29]MH_I2C_Read... [16:07:29]Read from MH i2c: F0 09 00 [16:07:29]MH_I2C_Read... [16:07:29]Read from MH i2c: F0 09 00 75 6C 00 46 7C 16 67 A0 18 CA 66 00 [16:07:29]GetLastDocTimeStamp 1729526801 [16:07:29]current date 1729526854 [16:07:29]FM_GetShiftState [16:07:29]SAM_PROTO_GetShiftState [16:07:29]wFMCommunicate request_size=4 [16:07:29]MH_SAM_APDU [16:07:29]CAPDU: 80 13 01 00 [16:07:29]Write to MH i2c: E2 08 00 76 6C 80 13 01 00 00 00 00 00 5F [16:07:29]Write i2c OK [16:07:29]MH_I2C_Read... [16:07:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:07:29]Read from MH i2c: E2 [16:07:29]MH_I2C_Read... [16:07:29]Read from MH i2c: E2 0E 00 [16:07:29]MH_I2C_Read... [16:07:29]Read from MH i2c: E2 0E 00 76 6C 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 BE [16:07:29]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [16:07:29]wFMCommunicate OK [16:07:29]SAM_PROTO_GetShiftState done [16:07:29]FM_GetShiftState done [16:07:29]opened in 1729469754 [16:07:29]opened+sec_in_day 1729556154 [16:07:29]quantity*price = 50041 [16:07:29]sum+1 = 50042 [16:07: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 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 267 21.10.2024 16:07 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 187803 ФПД: 212071535482094 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T160734&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187803&fm=212071535482094&tin=02508201610067®Number=0000000000100030&sum=50000 [16:07:30]StoreToDocumentArchive [16:07:30]shift 460 fd 187803 [16:07:30]save to /storage/0460/doc_00187803 [16:07:30]save last doc name /storage/0460/doc_00187803 to /storage/kkm_last_doc_name [16:07:30]save OK [16:07:30]Clear old archive folders... [16:07:30]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:07:30]tlvbuf is 0124A760 [16:07:30]SAM_PROTO_ClearQueue [16:07:30]wFMCommunicate request_size=4 [16:07:30]MH_SAM_APDU [16:07:30]CAPDU: 80 09 00 00 [16:07:30]Write to MH i2c: E2 08 00 83 6C 80 09 00 00 00 00 00 00 61 [16:07:30]Write i2c OK [16:07:30]MH_I2C_Read... [16:07:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:07:30]Read from MH i2c: E2 [16:07:30]MH_I2C_Read... [16:07:30]Read from MH i2c: E2 03 00 [16:07:30]MH_I2C_Read... [16:07:30]Read from MH i2c: E2 03 00 83 6C 00 90 00 63 [16:07:30]RAPDU: 90 00 [16:07:30]wFMCommunicate OK [16:07:30]SAM_PROTO_ClearQueue done [16:07:30]KKMCreateOFDPacket [16:07:30]OFDProtocolAddRootSTLVToBuf [16:07:30]FM_MakeSignedData [16:07:30]FM_MakeSignedData [16:07:30]SAM_PROTO_SignData [16:07:30]wFMCommunicate request_size=4 [16:07:30]MH_SAM_APDU [16:07:30]CAPDU: 80 0D 01 02 [16:07:30]Write to MH i2c: E2 08 00 84 6C 80 0D 01 02 00 00 00 00 69 [16:07:30]Write i2c OK [16:07:30]MH_I2C_Read... [16:07:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:07:30]Read from MH i2c: E2 [16:07:30]MH_I2C_Read... [16:07:30]Read from MH i2c: E2 03 00 [16:07:30]MH_I2C_Read... [16:07:30]Read from MH i2c: E2 03 00 84 6C 00 90 00 64 [16:07:30]RAPDU: 90 00 [16:07:30]wFMCommunicate OK [16:07:30]wFMCommunicate request_size=255 [16:07:30]MH_SAM_APDU [16:07: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 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 01 00 00 F4 03 04 00 46 7C 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 9B DD 02 00 35 04 06 00 C0 [16:07:30]Write to MH i2c: E2 02 01 85 6C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 01 00 00 F4 03 04 00 46 7C 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 9B DD 02 00 35 04 06 00 C0 00 00 2E [16:07:30]Write i2c OK [16:07:30]MH_I2C_Read... [16:07:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:07:30]Read from MH i2c: E2 [16:07:30]MH_I2C_Read... [16:07:30]Read from MH i2c: E2 03 00 [16:07:30]MH_I2C_Read... [16:07:30]Read from MH i2c: E2 03 00 85 6C 00 90 00 65 [16:07:30]RAPDU: 90 00 [16:07:30]wFMCommunicate OK [16:07:30]wFMCommunicate request_size=10 [16:07:30]MH_SAM_APDU [16:07:30]CAPDU: 80 0D 02 02 05 E0 C0 8A 14 EE [16:07:30]Write to MH i2c: E2 0D 00 86 6C 80 0D 02 02 05 00 E0 C0 8A 14 EE 00 00 A2 [16:07:30]Write i2c OK [16:07:30]MH_I2C_Read... [16:07:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:07:30]Read from MH i2c: E2 [16:07:30]MH_I2C_Read... [16:07:30]Read from MH i2c: E2 03 00 [16:07:30]MH_I2C_Read... [16:07:30]Read from MH i2c: E2 03 00 86 6C 00 90 00 66 [16:07:30]RAPDU: 90 00 [16:07:30]wFMCommunicate OK [16:07:30]wFMCommunicate request_size=4 [16:07:30]MH_SAM_APDU [16:07:30]CAPDU: 80 0D 03 02 [16:07:30]Write to MH i2c: E2 08 00 87 6C 80 0D 03 02 00 00 00 00 6E [16:07:30]Write i2c OK [16:07:30]MH_I2C_Read... [16:07:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:07:30]Read from MH i2c: E2 [16:07:30]MH_I2C_Read... [16:07:30]Read from MH i2c: E2 0B 00 [16:07:30]MH_I2C_Read... [16:07:30]Read from MH i2c: E2 0B 00 87 6C 00 C8 E1 80 4B AC 1A A2 8B 90 00 D6 [16:07:30]RAPDU: C8 E1 80 4B AC 1A A2 8B 90 00 [16:07:30]wFMCommunicate OK [16:07:30]SAM_PROTO_SignData done [16:07:30]FM_MakeSignedData done [16:07:30]CreateOFDProtocolMessage [16:07:30]wFMCommunicate request_size=4 [16:07:30]MH_SAM_APDU [16:07:30]CAPDU: 80 11 00 00 [16:07:30]Write to MH i2c: E2 08 00 88 6C 80 11 00 00 00 00 00 00 6E [16:07:30]Write i2c OK [16:07:30]MH_I2C_Read... [16:07:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:07:30]Read from MH i2c: E2 [16:07:30]MH_I2C_Read... [16:07:30]Read from MH i2c: E2 17 00 [16:07:30]MH_I2C_Read... [16:07:30]Read from MH i2c: E2 17 00 88 6C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 BC [16:07:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [16:07:30]wFMCommunicate OK [16:07:30]CreateOFDProtocolMessage done [16:07:30]OFDSenderStorePacket 187803 [16:07:30]StoreOFDPacket docnum=187803 [16:07:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 55 89 07 01 13 B0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 01 00 00 F4 03 04 00 46 7C 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 9B DD 02 00 35 04 06 00 C0 E0 C0 8A 14 EE C8 E1 80 4B AC 1A A2 8B [16:07:30]CheckFolder [16:07:30]dirname=/storage/ofd_packets [16:07:30]CheckFolder done [16:07:30]ProducePacketName [16:07:30]name=ofd_packets/00187803 [16:07:30]NVStorageSaveData ofd_packets/00187803 [16:07:30]File name is /storage/ofd_packets/00187803 [16:07:30]Write 301 bytes [16:07:30]NVStorageSaveData done [16:07:30]OFDSenderStorePacket done [16:07:30]KKMCreateOFDPacket done [16:07:30]NVStorageSaveData kkm_last_timestamp [16:07:30]File name is /storage/kkm_last_timestamp [16:07:30]Write 4 bytes [16:07:30]NVStorageSaveData done [16:07:30]ExternCall_PrintAddStr [16:07:30]wPrintStart [16:07:30]Write to MH i2c: 01 00 00 89 6C F5 [16:07:30]Write i2c OK [16:07:30]MH_I2C_Read... [16:07:30]Read from MH i2c: 01 [16:07:30]MH_I2C_Read... [16:07:30]Read from MH i2c: 01 07 00 [16:07:30]MH_I2C_Read... [16:07:30]Read from MH i2c: 01 07 00 89 6C 00 00 00 00 00 FF 0F 0A [16:07:30]RasterBufferAndPrint [16:07:30]line Счет N : (1)209855 [16:07:30]line ИНН: 02508201610067 [16:07:30]line Контрольно-Кассовый Чек [16:07:30]line ПРОДАЖА [16:07:30]line ТРК (МРК, ГНК) : 22 [16:07:30]line Товар: 2710124130 [16:07:30]line Аи-92-К-3 [16:07:30]line 7.480 * 66.90 [16:07:30]line = 500.41 [16:07:30]line НДС 12% НСП 1% [16:07:30]line > о реализуемом товаре [16:07:30]line ОКРУГЛЕНИЕ: -0.41 [16:07:30]line ИТОГО: 500.00 [16:07:30]line Внесено: 500.00 [16:07:30]line СДАЧА: 0.00 [16:07:30]line НСП 1% : 4.43 [16:07:30]line НДС 12% : 53.14 [16:07:30]line Наличными: 500.00 [16:07:30]line Безнал.: 0.00 [16:07:30]line Место: АЗС № 86 "Партнер Нефть" [16:07:30]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [16:07:30]line СНО: Общий режим [16:07:30]line Чек 267 21.10.2024 16:07 [16:07:30]line Смена: 460 ФФД: 1.0 [16:07:30]line ЗНМ: 0300000155 [16:07:30]line РНМ: 0000000000100030 [16:07:30]line Версия ККМ: 001 [16:07:30]line ФМ: 0000000000965340 [16:07:30]line ФД: 187803 [16:07:30]line ФПД: 212071535482094 [16:07:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T160734&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187803&fm=212071535482094&tin=02508201610067®Number=0000000000100030&sum=50000 [16:07:30]written 0, free lines is 4095 [16:07:31]OFD Sender: Processing packet 187803 [packets to send 1062, broken 1061] [16:07:31]ProducePacketName [16:07:31]name=ofd_packets/00187803 [16:07:31]OFD Sender: To server: pG, [16:07:31]CommunicateWithHost lk.salyk.kg:30040 [16:07:31]ConnectInit lk.salyk.kg [16:07:31]Connected sock=10 [16:07:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 55 89 07 01 13 B0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 01 00 00 F4 03 04 00 46 7C 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 9B DD 02 00 35 04 06 00 C0 E0 C0 8A 14 EE C8 E1 80 4B AC 1A A2 8B [16:07:31]Write to MH i2c: 01 00 00 B4 6C 20 [16:07:31]Write i2c OK [16:07:31]MH_I2C_Read... [16:07:31]Read from MH i2c: 01 [16:07:31]MH_I2C_Read... [16:07:31]Read from MH i2c: 01 07 00 [16:07:31]MH_I2C_Read... [16:07:31]Read from MH i2c: 01 07 00 B4 6C 00 00 00 00 00 5F 0C 92 [16:07:31]RasterBufferAndPrint [16:07:31]line [16:07:31]line [16:07:31]line [16:07:31]line [16:07:31]line [16:07:31]written 0, free lines is 3171 [16:07:31]MH_Cut [16:07:31]Write to MH i2c: D1 01 00 BB 6C 01 F9 [16:07:31]Write i2c OK [16:07:31]MH_I2C_Read... [16:07:31]Read from MH i2c: D1 [16:07:31]MH_I2C_Read... [16:07:31]Read from MH i2c: D1 01 00 [16:07:31]MH_I2C_Read... [16:07:31]Read from MH i2c: D1 01 00 BB 6C 00 F8 [16:07:31]Write to MH i2c: 01 00 00 BC 6C 28 [16:07:31]Write i2c OK [16:07:31]MH_I2C_Read... [16:07:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 05 FD 47 00 76 62 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 9B DD 02 00 F4 03 04 00 35 26 16 67 B6 04 01 00 00 51 2E 82 75 70 5A D5 39 [16:07:31]CommunicateWithHost err = 0 [16:07:31]CheckOFDResponse [16:07:31]1017 (14) - 77093643461234 [16:07:31]1041 (16) - 0000000000965340 [16:07:31]1040 (4) - 187803 [16:07:31]1012 (4) - 21.10.2024 10:00 [16:07:31]1206 (1) - 0 [16:07:31]OFD Sender: Remove packet 187803 [16:07:31]ProducePacketName [16:07:31]name=ofd_packets/00187803 [16:07:31]NVStorageDeleteData [16:07:32]OFD Sender: No OFD packet to send [16:07:32]*** Cut start [16:07:32]*** Partial cut [16:07:32]*** CUTSNS_PIN = 1 [16:07:32]*** CUTSNS_PIN = 0 [16:07:32]*** Brake cut motor [16:07:33]Read from MH i2c: 01 [16:07:33]MH_I2C_Read... [16:07:33]*** Stop cut motor [16:07:33]*** Cut end [16:07:33]Read from MH i2c: 01 07 00 [16:07:33]MH_I2C_Read... [16:07:33]Read from MH i2c: 01 07 00 BC 6C 00 00 00 00 00 FF 0F 3D [16:07:33]process_action close_receipt done [16:07:33]requested_data is exist [16:07:33]produce_requested_data [16:07:33]requested_item fm.sn is exist - process it [16:07:33]wFMCommunicate request_size=4 [16:07:33]MH_SAM_APDU [16:07:33]CAPDU: 80 11 00 00 [16:07:33]Write to MH i2c: E2 08 00 BD 6C 80 11 00 00 00 00 00 00 A3 [16:07:33]Write i2c OK [16:07:33]MH_I2C_Read... [16:07:33]Read from MH i2c: E2 [16:07:33]MH_I2C_Read... [16:07:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:07:33]Read from MH i2c: E2 17 00 [16:07:33]MH_I2C_Read... [16:07:33]Read from MH i2c: E2 17 00 BD 6C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 F1 [16:07:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [16:07:33]wFMCommunicate OK [16:07:33]requested_item fd.num is exist - process it [16:07:33]SAM_PROTO_GetFieldsCounters [16:07:33]wFMCommunicate request_size=4 [16:07:33]MH_SAM_APDU [16:07:33]CAPDU: 80 13 00 00 [16:07:33]Write to MH i2c: E2 08 00 BE 6C 80 13 00 00 00 00 00 00 A6 [16:07:33]Write i2c OK [16:07:33]MH_I2C_Read... [16:07:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:07:33]Read from MH i2c: E2 [16:07:33]MH_I2C_Read... [16:07:33]Read from MH i2c: E2 62 00 [16:07:33]MH_I2C_Read... [16:07:33]Read from MH i2c: E2 62 00 BE 6C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 9B DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 0B 01 00 00 5E 04 04 00 0B 01 00 00 57 04 04 00 0C 01 00 00 19 04 04 00 00 00 00 00 90 00 18 [16:07:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 9B DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 0B 01 00 00 5E 04 04 00 0B 01 00 00 57 04 04 00 0C 01 00 00 19 04 04 00 00 00 00 00 90 00 [16:07:33]wFMCommunicate OK [16:07:33]SAM_PROTO_GetFieldsCounters done [16:07:33]requested_item shift.num is exist - process it [16:07:33]requested_item shift.opened is exist - process it [16:07:33]req_shift_opened [16:07:33]FM_GetShiftState [16:07:33]SAM_PROTO_GetShiftState [16:07:33]wFMCommunicate request_size=4 [16:07:33]MH_SAM_APDU [16:07:33]CAPDU: 80 13 01 00 [16:07:33]Write to MH i2c: E2 08 00 BF 6C 80 13 01 00 00 00 00 00 A8 [16:07:33]Write i2c OK [16:07:33]MH_I2C_Read... [16:07:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:07:33]Read from MH i2c: E2 [16:07:33]MH_I2C_Read... [16:07:33]Read from MH i2c: E2 0E 00 [16:07:33]MH_I2C_Read... [16:07:33]Read from MH i2c: E2 0E 00 BF 6C 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 07 [16:07:33]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [16:07:33]wFMCommunicate OK [16:07:33]SAM_PROTO_GetShiftState done [16:07:33]FM_GetShiftState done [16:07:33]req_shift_opened done [16:07:33]requested_item shift.open_date is exist - process it [16:07:33]req_shift_open_date [16:07:33]req_shift_open_date done [16:07:33]produce_requested_data done [16:07:33]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187803,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [16:07:33]process_action_free close_receipt [16:07:33]json_value_free [16:07:33]json_value_free done [16:07:33]process_json_proto returns [16:07:33]Send response to host [16:07:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187803,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [16:07:33]free response buf [16:07:33]execute_script done [16:07:33]execute_script returns [16:07:33]free content buf [16:07:33]Sock 9.Close socket [16:07:33]Sock 9.Thread stoped [16:07:37]OFD Sender: No OFD packet to send [16:07:42]OFD Sender: No OFD packet to send [16:07:47]OFD Sender: No OFD packet to send [16:07:52]OFD Sender: No OFD packet to send [16:07:57]OFD Sender: No OFD packet to send [16:08:02]OFD Sender: No OFD packet to send [16:08:07]OFD Sender: No OFD packet to send [16:08:12]OFD Sender: No OFD packet to send [16:08:17]OFD Sender: No OFD packet to send [16:08:22]OFD Sender: No OFD packet to send [16:08:27]OFD Sender: No OFD packet to send [16:08:32]OFD Sender: No OFD packet to send [16:08:37]OFD Sender: No OFD packet to send [16:08:42]OFD Sender: No OFD packet to send [16:08:47]OFD Sender: No OFD packet to send [16:08:52]OFD Sender: No OFD packet to send [16:08:57]OFD Sender: No OFD packet to send [16:09:02]OFD Sender: No OFD packet to send [16:09:07]OFD Sender: No OFD packet to send [16:09:12]OFD Sender: No OFD packet to send [16:09:17]OFD Sender: No OFD packet to send [16:09:22]OFD Sender: No OFD packet to send [16:09:27]OFD Sender: No OFD packet to send [16:09:32]OFD Sender: No OFD packet to send [16:09:37]OFD Sender: No OFD packet to send [16:09:42]OFD Sender: No OFD packet to send [16:09:47]OFD Sender: No OFD packet to send [16:09:52]OFD Sender: No OFD packet to send [16:09:57]OFD Sender: No OFD packet to send [16:10:02]OFD Sender: No OFD packet to send [16:10:03]accept exits with 8 [16:10:03]New connection [16:10:03]New thread 3067157860 created [16:10:03]Thread 3067014500 joined [16:10:03]Waiting for new connection... [16:10:03] Sock 8.Parse request [16:10:03]Sock 8.Check first char [16:10:03]Sock 8.First char is OK [16:10:03]request: POST /json_proto HTTP/1.0 [16:10:03]Method: POST [16:10:03]URL: /json_proto [16:10:03]Method is POST - this is cgi request [16:10:03]url: /json_proto [16:10:03]query_string will be loaded in cgi processing [16:10:03]execute_cgi json_proto POST (null) [16:10:03]execute_cgi path=json_proto method=POST [16:10:03]POST find Content-Length [16:10:03]Host: 172.17.42.131:8080 [16:10:03]Content-Length: 688 [16:10:03]Content-Type: application/json [16:10:03] [16:10:03]POST finish read [16:10:03]Found Content-Length = 688 [16:10:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209856", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 12.960, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:10:03]execute_script... [16:10: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)209856", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 12.960, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:10:03]POST & json_proto [16:10:03]process_json_proto [16:10:03]json parsed OK: [16:10:03]protocol is kg_v1.0 [16:10:03]action value=close_receipt [16:10:03]process_action close_receipt [16:10:03]cmd_close_receipt [16:10:03]MH_GetDate [16:10:03]Write to MH i2c: F0 00 00 C0 6C 1B [16:10:03]Write i2c OK [16:10:03]MH_I2C_Read... [16:10:03]Read from MH i2c: F0 [16:10:03]MH_I2C_Read... [16:10:03]Read from MH i2c: F0 09 00 [16:10:03]MH_I2C_Read... [16:10:03]Read from MH i2c: F0 09 00 C0 6C 00 DF 7C 16 67 A0 18 CA 66 E4 [16:10:03]GetLastDocTimeStamp 1729526854 [16:10:03]current date 1729527007 [16:10:03]FM_GetShiftState [16:10:03]SAM_PROTO_GetShiftState [16:10:03]wFMCommunicate request_size=4 [16:10:03]MH_SAM_APDU [16:10:03]CAPDU: 80 13 01 00 [16:10:03]Write to MH i2c: E2 08 00 C1 6C 80 13 01 00 00 00 00 00 AA [16:10:03]Write i2c OK [16:10:03]MH_I2C_Read... [16:10:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:10:03]Read from MH i2c: E2 [16:10:03]MH_I2C_Read... [16:10:03]Read from MH i2c: E2 0E 00 [16:10:03]MH_I2C_Read... [16:10:03]Read from MH i2c: E2 0E 00 C1 6C 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 09 [16:10:03]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [16:10:03]wFMCommunicate OK [16:10:03]SAM_PROTO_GetShiftState done [16:10:03]FM_GetShiftState done [16:10:03]opened in 1729469754 [16:10:03]opened+sec_in_day 1729556154 [16:10:03]quantity*price = 100051 [16:10:03]sum+1 = 100052 [16:10:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 268 21.10.2024 16:10 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 187804 ФПД: 261580386395205 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T161007&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187804&fm=261580386395205&tin=02508201610067®Number=0000000000100030&sum=100000 [16:10:04]StoreToDocumentArchive [16:10:04]shift 460 fd 187804 [16:10:04]save to /storage/0460/doc_00187804 [16:10:04]save last doc name /storage/0460/doc_00187804 to /storage/kkm_last_doc_name [16:10:04]save OK [16:10:04]Clear old archive folders... [16:10:04]ProcessDocumentItem done err = 0, tmpTLVsize=257 [16:10:04]tlvbuf is B6F8A790 [16:10:04]SAM_PROTO_ClearQueue [16:10:04]wFMCommunicate request_size=4 [16:10:04]MH_SAM_APDU [16:10:04]CAPDU: 80 09 00 00 [16:10:04]Write to MH i2c: E2 08 00 CE 6C 80 09 00 00 00 00 00 00 AC [16:10:04]Write i2c OK [16:10:04]MH_I2C_Read... [16:10:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:10:04]Read from MH i2c: E2 [16:10:04]MH_I2C_Read... [16:10:04]Read from MH i2c: E2 03 00 [16:10:04]MH_I2C_Read... [16:10:04]Read from MH i2c: E2 03 00 CE 6C 00 90 00 AE [16:10:04]RAPDU: 90 00 [16:10:04]wFMCommunicate OK [16:10:04]SAM_PROTO_ClearQueue done [16:10:04]KKMCreateOFDPacket [16:10:04]OFDProtocolAddRootSTLVToBuf [16:10:04]FM_MakeSignedData [16:10:04]FM_MakeSignedData [16:10:04]SAM_PROTO_SignData [16:10:04]wFMCommunicate request_size=4 [16:10:04]MH_SAM_APDU [16:10:04]CAPDU: 80 0D 01 02 [16:10:04]Write to MH i2c: E2 08 00 CF 6C 80 0D 01 02 00 00 00 00 B4 [16:10:04]Write i2c OK [16:10:04]MH_I2C_Read... [16:10:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:10:04]Read from MH i2c: E2 [16:10:04]MH_I2C_Read... [16:10:04]Read from MH i2c: E2 03 00 [16:10:04]MH_I2C_Read... [16:10:04]Read from MH i2c: E2 03 00 CF 6C 00 90 00 AF [16:10:04]RAPDU: 90 00 [16:10:04]wFMCommunicate OK [16:10:04]wFMCommunicate request_size=255 [16:10:04]MH_SAM_APDU [16:10:04]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 01 00 00 F4 03 04 00 DF 7C 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 9C DD 02 [16:10:04]Write to MH i2c: E2 02 01 D0 6C 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 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 01 00 00 F4 03 04 00 DF 7C 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 9C DD 02 00 00 3E [16:10:04]Write i2c OK [16:10:04]MH_I2C_Read... [16:10:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:10:04]Read from MH i2c: E2 [16:10:04]MH_I2C_Read... [16:10:04]Read from MH i2c: E2 03 00 [16:10:04]MH_I2C_Read... [16:10:04]Read from MH i2c: E2 03 00 D0 6C 00 90 00 B0 [16:10:04]RAPDU: 90 00 [16:10:04]wFMCommunicate OK [16:10:04]wFMCommunicate request_size=16 [16:10:04]MH_SAM_APDU [16:10:04]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 ED E7 EE 02 E4 45 [16:10:04]Write to MH i2c: E2 13 00 D1 6C 80 0D 02 02 0B 00 00 35 04 06 00 ED E7 EE 02 E4 45 00 00 F9 [16:10:04]Write i2c OK [16:10:04]MH_I2C_Read... [16:10:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:10:04]Read from MH i2c: E2 [16:10:04]MH_I2C_Read... [16:10:04]Read from MH i2c: E2 03 00 [16:10:04]MH_I2C_Read... [16:10:04]Read from MH i2c: E2 03 00 D1 6C 00 90 00 B1 [16:10:04]RAPDU: 90 00 [16:10:04]wFMCommunicate OK [16:10:04]wFMCommunicate request_size=4 [16:10:04]MH_SAM_APDU [16:10:04]CAPDU: 80 0D 03 02 [16:10:04]Write to MH i2c: E2 08 00 D2 6C 80 0D 03 02 00 00 00 00 B9 [16:10:04]Write i2c OK [16:10:04]MH_I2C_Read... [16:10:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:10:04]Read from MH i2c: E2 [16:10:04]MH_I2C_Read... [16:10:04]Read from MH i2c: E2 0B 00 [16:10:04]MH_I2C_Read... [16:10:04]Read from MH i2c: E2 0B 00 D2 6C 00 AD C0 7E 93 75 BC 95 FD 90 00 FB [16:10:04]RAPDU: AD C0 7E 93 75 BC 95 FD 90 00 [16:10:04]wFMCommunicate OK [16:10:04]SAM_PROTO_SignData done [16:10:04]FM_MakeSignedData done [16:10:04]CreateOFDProtocolMessage [16:10:04]wFMCommunicate request_size=4 [16:10:04]MH_SAM_APDU [16:10:04]CAPDU: 80 11 00 00 [16:10:04]Write to MH i2c: E2 08 00 D3 6C 80 11 00 00 00 00 00 00 B9 [16:10:04]Write i2c OK [16:10:04]MH_I2C_Read... [16:10:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:10:04]Read from MH i2c: E2 [16:10:04]MH_I2C_Read... [16:10:04]Read from MH i2c: E2 17 00 [16:10:04]MH_I2C_Read... [16:10:04]Read from MH i2c: E2 17 00 D3 6C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 07 [16:10:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [16:10:04]wFMCommunicate OK [16:10:04]CreateOFDProtocolMessage done [16:10:04]OFDSenderStorePacket 187804 [16:10:04]StoreOFDPacket docnum=187804 [16:10:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 71 B8 0D 01 02 33 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 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 01 00 00 F4 03 04 00 DF 7C 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 9C DD 02 00 35 04 06 00 ED E7 EE 02 E4 45 AD C0 7E 93 75 BC 95 FD [16:10:04]CheckFolder [16:10:04]dirname=/storage/ofd_packets [16:10:04]CheckFolder done [16:10:04]ProducePacketName [16:10:04]name=ofd_packets/00187804 [16:10:04]NVStorageSaveData ofd_packets/00187804 [16:10:04]File name is /storage/ofd_packets/00187804 [16:10:04]Write 307 bytes [16:10:04]NVStorageSaveData done [16:10:04]OFDSenderStorePacket done [16:10:04]KKMCreateOFDPacket done [16:10:04]NVStorageSaveData kkm_last_timestamp [16:10:04]File name is /storage/kkm_last_timestamp [16:10:04]Write 4 bytes [16:10:04]NVStorageSaveData done [16:10:04]ExternCall_PrintAddStr [16:10:04]wPrintStart [16:10:04]Write to MH i2c: 01 00 00 D4 6C 40 [16:10:04]Write i2c OK [16:10:04]MH_I2C_Read... [16:10:04]Read from MH i2c: 01 [16:10:04]MH_I2C_Read... [16:10:04]Read from MH i2c: 01 07 00 [16:10:04]MH_I2C_Read... [16:10:04]Read from MH i2c: 01 07 00 D4 6C 00 00 00 00 00 FF 0F 55 [16:10:04]RasterBufferAndPrint [16:10:04]line Счет N : (1)209856 [16:10:04]line ИНН: 02508201610067 [16:10:04]line Контрольно-Кассовый Чек [16:10:04]line ПРОДАЖА [16:10:04]line ТРК (МРК, ГНК) : 21 [16:10:04]line Товар: 2710194210 [16:10:04]line D-ENERGY ДТ-К-5 [16:10:04]line 12.960 * 77.20 [16:10:04]line = 1000.51 [16:10:04]line НДС 12% НСП 1% [16:10:04]line > о реализуемом товаре [16:10:04]line ОКРУГЛЕНИЕ: -0.51 [16:10:04]line ИТОГО: 1000.00 [16:10:04]line Внесено: 1000.00 [16:10:04]line СДАЧА: 0.00 [16:10:04]line НСП 1% : 8.85 [16:10:04]line НДС 12% : 106.25 [16:10:04]line Наличными: 1000.00 [16:10:04]line Безнал.: 0.00 [16:10:04]line Место: АЗС № 86 "Партнер Нефть" [16:10:04]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [16:10:04]line СНО: Общий режим [16:10:04]line Чек 268 21.10.2024 16:10 [16:10:04]line Смена: 460 ФФД: 1.0 [16:10:04]line ЗНМ: 0300000155 [16:10:04]line РНМ: 0000000000100030 [16:10:04]line Версия ККМ: 001 [16:10:04]line ФМ: 0000000000965340 [16:10:04]line ФД: 187804 [16:10:04]line ФПД: 261580386395205 [16:10:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T161007&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187804&fm=261580386395205&tin=02508201610067®Number=0000000000100030&sum=100000 [16:10:04]OFD Sender: Processing packet 187804 [packets to send 1062, broken 1061] [16:10:04]ProducePacketName [16:10:04]name=ofd_packets/00187804 [16:10:04]OFD Sender: To server: pG, [16:10:04]CommunicateWithHost lk.salyk.kg:30040 [16:10:04]ConnectInit lk.salyk.kg [16:10:04]written 0, free lines is 4095 [16:10:05]Connected sock=7 [16:10:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 71 B8 0D 01 02 33 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 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 01 00 00 F4 03 04 00 DF 7C 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 9C DD 02 00 35 04 06 00 ED E7 EE 02 E4 45 AD C0 7E 93 75 BC 95 FD [16:10:05]Write to MH i2c: 01 00 00 FF 6C 6B [16:10:05]Write i2c OK [16:10:05]MH_I2C_Read... [16:10:05]Read from MH i2c: 01 [16:10:05]MH_I2C_Read... [16:10:05]Read from MH i2c: 01 07 00 [16:10:05]MH_I2C_Read... [16:10:05]Read from MH i2c: 01 07 00 FF 6C 00 00 00 00 00 65 0C E3 [16:10:05]RasterBufferAndPrint [16:10:05]line [16:10:05]line [16:10:05]line [16:10:05]line [16:10:05]line [16:10:05]written 0, free lines is 3177 [16:10:05]MH_Cut [16:10:05]Write to MH i2c: D1 01 00 06 6D 01 45 [16:10:05]Write i2c OK [16:10:05]MH_I2C_Read... [16:10:05]Read from MH i2c: D1 [16:10:05]MH_I2C_Read... [16:10:05]Read from MH i2c: D1 01 00 [16:10:05]MH_I2C_Read... [16:10:05]Read from MH i2c: D1 01 00 06 6D 00 44 [16:10:05]Write to MH i2c: 01 00 00 07 6D 74 [16:10:05]Write i2c OK [16:10:05]MH_I2C_Read... [16:10:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 05 20 47 00 AA 58 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 9C DD 02 00 F4 03 04 00 CF 26 16 67 B6 04 01 00 00 AB E4 D1 76 69 BE 34 3D [16:10:05]CommunicateWithHost err = 0 [16:10:05]CheckOFDResponse [16:10:05]1017 (14) - 77093643461234 [16:10:05]1041 (16) - 0000000000965340 [16:10:05]1040 (4) - 187804 [16:10:05]1012 (4) - 21.10.2024 10:02 [16:10:05]1206 (1) - 0 [16:10:05]OFD Sender: Remove packet 187804 [16:10:05]ProducePacketName [16:10:05]name=ofd_packets/00187804 [16:10:05]NVStorageDeleteData [16:10:06]OFD Sender: No OFD packet to send [16:10:06]*** Cut start [16:10:06]*** Partial cut [16:10:06]*** CUTSNS_PIN = 1 [16:10:06]*** CUTSNS_PIN = 0 [16:10:06]*** Brake cut motor [16:10:07]Read from MH i2c: 01 [16:10:07]MH_I2C_Read... [16:10:07]*** Stop cut motor [16:10:07]*** Cut end [16:10:07]Read from MH i2c: 01 07 00 [16:10:07]MH_I2C_Read... [16:10:07]Read from MH i2c: 01 07 00 07 6D 00 00 00 00 00 FF 0F 89 [16:10:07]process_action close_receipt done [16:10:07]requested_data is exist [16:10:07]produce_requested_data [16:10:07]requested_item fm.sn is exist - process it [16:10:07]wFMCommunicate request_size=4 [16:10:07]MH_SAM_APDU [16:10:07]CAPDU: 80 11 00 00 [16:10:07]Write to MH i2c: E2 08 00 08 6D 80 11 00 00 00 00 00 00 EF [16:10:07]Write i2c OK [16:10:07]MH_I2C_Read... [16:10:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:10:07]Read from MH i2c: E2 [16:10:07]MH_I2C_Read... [16:10:07]Read from MH i2c: E2 17 00 [16:10:07]MH_I2C_Read... [16:10:07]Read from MH i2c: E2 17 00 08 6D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 3D [16:10:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [16:10:07]wFMCommunicate OK [16:10:07]requested_item fd.num is exist - process it [16:10:07]SAM_PROTO_GetFieldsCounters [16:10:07]wFMCommunicate request_size=4 [16:10:07]MH_SAM_APDU [16:10:07]CAPDU: 80 13 00 00 [16:10:07]Write to MH i2c: E2 08 00 09 6D 80 13 00 00 00 00 00 00 F2 [16:10:07]Write i2c OK [16:10:07]MH_I2C_Read... [16:10:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:10:07]Read from MH i2c: E2 [16:10:07]MH_I2C_Read... [16:10:07]Read from MH i2c: E2 62 00 [16:10:07]MH_I2C_Read... [16:10:07]Read from MH i2c: E2 62 00 09 6D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 9C DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 0C 01 00 00 5E 04 04 00 0C 01 00 00 57 04 04 00 0D 01 00 00 19 04 04 00 00 00 00 00 90 00 68 [16:10:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 9C DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 0C 01 00 00 5E 04 04 00 0C 01 00 00 57 04 04 00 0D 01 00 00 19 04 04 00 00 00 00 00 90 00 [16:10:07]wFMCommunicate OK [16:10:07]SAM_PROTO_GetFieldsCounters done [16:10:07]requested_item shift.num is exist - process it [16:10:07]requested_item shift.opened is exist - process it [16:10:07]req_shift_opened [16:10:07]FM_GetShiftState [16:10:07]SAM_PROTO_GetShiftState [16:10:07]wFMCommunicate request_size=4 [16:10:07]MH_SAM_APDU [16:10:07]CAPDU: 80 13 01 00 [16:10:07]Write to MH i2c: E2 08 00 0A 6D 80 13 01 00 00 00 00 00 F4 [16:10:07]Write i2c OK [16:10:07]MH_I2C_Read... [16:10:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:10:07]Read from MH i2c: E2 [16:10:07]MH_I2C_Read... [16:10:07]Read from MH i2c: E2 0E 00 [16:10:07]MH_I2C_Read... [16:10:07]Read from MH i2c: E2 0E 00 0A 6D 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 53 [16:10:07]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [16:10:07]wFMCommunicate OK [16:10:07]SAM_PROTO_GetShiftState done [16:10:07]FM_GetShiftState done [16:10:07]req_shift_opened done [16:10:07]requested_item shift.open_date is exist - process it [16:10:07]req_shift_open_date [16:10:07]req_shift_open_date done [16:10:07]produce_requested_data done [16:10:07]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187804,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [16:10:07]process_action_free close_receipt [16:10:07]json_value_free [16:10:07]json_value_free done [16:10:07]process_json_proto returns [16:10:07]Send response to host [16:10:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187804,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [16:10:07]free response buf [16:10:07]execute_script done [16:10:07]execute_script returns [16:10:07]free content buf [16:10:07]Sock 8.Close socket [16:10:07]Sock 8.Thread stoped [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:34]accept exits with 10 [16:11:34]New connection [16:11:34]New thread 3067014500 created [16:11:34]Thread 3067157860 joined [16:11:34]Waiting for new connection... [16:11:34] Sock 10.Parse request [16:11:34]Sock 10.Check first char [16:11:34]Sock 10.First char is OK [16:11:34]request: POST /json_proto HTTP/1.0 [16:11:34]Method: POST [16:11:34]URL: /json_proto [16:11:34]Method is POST - this is cgi request [16:11:34]url: /json_proto [16:11:34]query_string will be loaded in cgi processing [16:11:34]execute_cgi json_proto POST (null) [16:11:34]execute_cgi path=json_proto method=POST [16:11:34]POST find Content-Length [16:11:34]Host: 172.17.42.131:8080 [16:11:34]Content-Length: 682 [16:11:34]Content-Type: application/json [16:11:34] [16:11:34]POST finish read [16:11:34]Found Content-Length = 682 [16:11:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209857", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:11:34]execute_script... [16:11: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)209857", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:11:34]POST & json_proto [16:11:34]process_json_proto [16:11:34]json parsed OK: [16:11:34]protocol is kg_v1.0 [16:11:34]action value=close_receipt [16:11:34]process_action close_receipt [16:11:34]cmd_close_receipt [16:11:34]MH_GetDate [16:11:34]Write to MH i2c: F0 00 00 0B 6D 67 [16:11:34]Write i2c OK [16:11:34]MH_I2C_Read... [16:11:34]Read from MH i2c: F0 [16:11:34]MH_I2C_Read... [16:11:34]Read from MH i2c: F0 09 00 [16:11:34]MH_I2C_Read... [16:11:34]Read from MH i2c: F0 09 00 0B 6D 00 3B 7D 16 67 A0 18 CA 66 8D [16:11:34]GetLastDocTimeStamp 1729527007 [16:11:34]current date 1729527099 [16:11:34]FM_GetShiftState [16:11:34]SAM_PROTO_GetShiftState [16:11:34]wFMCommunicate request_size=4 [16:11:34]MH_SAM_APDU [16:11:34]CAPDU: 80 13 01 00 [16:11:34]Write to MH i2c: E2 08 00 0C 6D 80 13 01 00 00 00 00 00 F6 [16:11:34]Write i2c OK [16:11:34]MH_I2C_Read... [16:11:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:11:34]Read from MH i2c: E2 [16:11:34]MH_I2C_Read... [16:11:34]Read from MH i2c: E2 0E 00 [16:11:34]MH_I2C_Read... [16:11:34]Read from MH i2c: E2 0E 00 0C 6D 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 55 [16:11:34]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [16:11:34]wFMCommunicate OK [16:11:34]SAM_PROTO_GetShiftState done [16:11:34]FM_GetShiftState done [16:11:34]opened in 1729469754 [16:11:34]opened+sec_in_day 1729556154 [16:11:34]quantity*price = 100015 [16:11:34]sum+1 = 100017 [16:11:34]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 269 21.10.2024 16:11 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 187805 ФПД: 70830044148847 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T161139&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187805&fm=70830044148847&tin=02508201610067®Number=0000000000100030&sum=100000 [16:11:36]StoreToDocumentArchive [16:11:36]shift 460 fd 187805 [16:11:36]save to /storage/0460/doc_00187805 [16:11:36]save last doc name /storage/0460/doc_00187805 to /storage/kkm_last_doc_name [16:11:36]save OK [16:11:36]Clear old archive folders... [16:11:36]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:11:36]tlvbuf is 012D6490 [16:11:36]SAM_PROTO_ClearQueue [16:11:36]wFMCommunicate request_size=4 [16:11:36]MH_SAM_APDU [16:11:36]CAPDU: 80 09 00 00 [16:11:36]Write to MH i2c: E2 08 00 19 6D 80 09 00 00 00 00 00 00 F8 [16:11:36]Write i2c OK [16:11:36]MH_I2C_Read... [16:11:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:11:36]Read from MH i2c: E2 [16:11:36]MH_I2C_Read... [16:11:36]Read from MH i2c: E2 03 00 [16:11:36]MH_I2C_Read... [16:11:36]Read from MH i2c: E2 03 00 19 6D 00 90 00 FA [16:11:36]RAPDU: 90 00 [16:11:36]wFMCommunicate OK [16:11:36]SAM_PROTO_ClearQueue done [16:11:36]KKMCreateOFDPacket [16:11:36]OFDProtocolAddRootSTLVToBuf [16:11:36]FM_MakeSignedData [16:11:36]FM_MakeSignedData [16:11:36]SAM_PROTO_SignData [16:11:36]wFMCommunicate request_size=4 [16:11:36]MH_SAM_APDU [16:11:36]CAPDU: 80 0D 01 02 [16:11:36]Write to MH i2c: E2 08 00 1A 6D 80 0D 01 02 00 00 00 00 00 [16:11:36]Write i2c OK [16:11:36]MH_I2C_Read... [16:11:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:11:36]Read from MH i2c: E2 [16:11:36]MH_I2C_Read... [16:11:36]Read from MH i2c: E2 03 00 [16:11:36]MH_I2C_Read... [16:11:36]Read from MH i2c: E2 03 00 1A 6D 00 90 00 FB [16:11:36]RAPDU: 90 00 [16:11:36]wFMCommunicate OK [16:11:36]wFMCommunicate request_size=255 [16:11:36]MH_SAM_APDU [16:11: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 33 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 0D 01 00 00 F4 03 04 00 3B 7D 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 9D DD 02 00 35 04 06 00 40 [16:11:36]Write to MH i2c: E2 02 01 1B 6D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 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 0D 01 00 00 F4 03 04 00 3B 7D 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 9D DD 02 00 35 04 06 00 40 00 00 39 [16:11:36]Write i2c OK [16:11:36]MH_I2C_Read... [16:11:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:11:36]Read from MH i2c: E2 [16:11:36]MH_I2C_Read... [16:11:36]Read from MH i2c: E2 03 00 [16:11:36]MH_I2C_Read... [16:11:36]Read from MH i2c: E2 03 00 1B 6D 00 90 00 FC [16:11:36]RAPDU: 90 00 [16:11:36]wFMCommunicate OK [16:11:36]wFMCommunicate request_size=10 [16:11:36]MH_SAM_APDU [16:11:36]CAPDU: 80 0D 02 02 05 6B 67 9E F4 6F [16:11:36]Write to MH i2c: E2 0D 00 1C 6D 80 0D 02 02 05 00 6B 67 9E F4 6F 00 00 E0 [16:11:36]Write i2c OK [16:11:36]MH_I2C_Read... [16:11:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:11:36]Read from MH i2c: E2 [16:11:36]MH_I2C_Read... [16:11:36]Read from MH i2c: E2 03 00 [16:11:36]MH_I2C_Read... [16:11:36]Read from MH i2c: E2 03 00 1C 6D 00 90 00 FD [16:11:36]RAPDU: 90 00 [16:11:36]wFMCommunicate OK [16:11:36]wFMCommunicate request_size=4 [16:11:36]MH_SAM_APDU [16:11:36]CAPDU: 80 0D 03 02 [16:11:36]Write to MH i2c: E2 08 00 1D 6D 80 0D 03 02 00 00 00 00 05 [16:11:36]Write i2c OK [16:11:36]MH_I2C_Read... [16:11:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:11:36]Read from MH i2c: E2 [16:11:36]MH_I2C_Read... [16:11:36]Read from MH i2c: E2 0B 00 [16:11:36]MH_I2C_Read... [16:11:36]Read from MH i2c: E2 0B 00 1D 6D 00 CF 70 29 83 79 CF 50 33 90 00 BC [16:11:36]RAPDU: CF 70 29 83 79 CF 50 33 90 00 [16:11:36]wFMCommunicate OK [16:11:36]SAM_PROTO_SignData done [16:11:36]FM_MakeSignedData done [16:11:36]CreateOFDProtocolMessage [16:11:36]wFMCommunicate request_size=4 [16:11:36]MH_SAM_APDU [16:11:36]CAPDU: 80 11 00 00 [16:11:36]Write to MH i2c: E2 08 00 1E 6D 80 11 00 00 00 00 00 00 05 [16:11:36]Write i2c OK [16:11:36]MH_I2C_Read... [16:11:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:11:36]Read from MH i2c: E2 [16:11:36]MH_I2C_Read... [16:11:36]Read from MH i2c: E2 17 00 [16:11:36]MH_I2C_Read... [16:11:36]Read from MH i2c: E2 17 00 1E 6D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 53 [16:11:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [16:11:36]wFMCommunicate OK [16:11:36]CreateOFDProtocolMessage done [16:11:36]OFDSenderStorePacket 187805 [16:11:36]StoreOFDPacket docnum=187805 [16:11:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 D5 05 07 01 9E 74 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 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 0D 01 00 00 F4 03 04 00 3B 7D 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 9D DD 02 00 35 04 06 00 40 6B 67 9E F4 6F CF 70 29 83 79 CF 50 33 [16:11:36]CheckFolder [16:11:36]dirname=/storage/ofd_packets [16:11:36]CheckFolder done [16:11:36]ProducePacketName [16:11:36]name=ofd_packets/00187805 [16:11:36]NVStorageSaveData ofd_packets/00187805 [16:11:36]File name is /storage/ofd_packets/00187805 [16:11:36]Write 301 bytes [16:11:36]NVStorageSaveData done [16:11:36]OFDSenderStorePacket done [16:11:36]KKMCreateOFDPacket done [16:11:36]NVStorageSaveData kkm_last_timestamp [16:11:36]File name is /storage/kkm_last_timestamp [16:11:36]Write 4 bytes [16:11:36]NVStorageSaveData done [16:11:36]ExternCall_PrintAddStr [16:11:36]wPrintStart [16:11:36]Write to MH i2c: 01 00 00 1F 6D 8C [16:11:36]Write i2c OK [16:11:36]MH_I2C_Read... [16:11:36]Read from MH i2c: 01 [16:11:36]MH_I2C_Read... [16:11:36]Read from MH i2c: 01 07 00 [16:11:36]MH_I2C_Read... [16:11:36]Read from MH i2c: 01 07 00 1F 6D 00 00 00 00 00 FF 0F A1 [16:11:36]RasterBufferAndPrint [16:11:36]line Счет N : (1)209857 [16:11:36]line ИНН: 02508201610067 [16:11:36]line Контрольно-Кассовый Чек [16:11:36]line ПРОДАЖА [16:11:36]line ТРК (МРК, ГНК) : 32 [16:11:36]line Товар: 2710124130 [16:11:36]line Аи-92-К-3 [16:11:36]line 14.950 * 66.90 [16:11:36]line = 1000.16 [16:11:36]line НДС 12% НСП 1% [16:11:36]line > о реализуемом товаре [16:11:36]line ОКРУГЛЕНИЕ: -0.16 [16:11:36]line ИТОГО: 1000.00 [16:11:36]line Внесено: 1000.00 [16:11:36]line СДАЧА: 0.00 [16:11:36]line НСП 1% : 8.85 [16:11:36]line НДС 12% : 106.21 [16:11:36]line Наличными: 1000.00 [16:11:36]line Безнал.: 0.00 [16:11:36]line Место: АЗС № 86 "Партнер Нефть" [16:11:36]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [16:11:36]line СНО: Общий режим [16:11:36]line Чек 269 21.10.2024 16:11 [16:11:36]line Смена: 460 ФФД: 1.0 [16:11:36]line ЗНМ: 0300000155 [16:11:36]line РНМ: 0000000000100030 [16:11:36]line Версия ККМ: 001 [16:11:36]line ФМ: 0000000000965340 [16:11:36]line ФД: 187805 [16:11:36]line ФПД: 70830044148847 [16:11:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T161139&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187805&fm=70830044148847&tin=02508201610067®Number=0000000000100030&sum=100000 [16:11:36]written 0, free lines is 4095 [16:11:36]OFD Sender: Processing packet 187805 [packets to send 1062, broken 1061] [16:11:36]ProducePacketName [16:11:36]name=ofd_packets/00187805 [16:11:36]OFD Sender: To server: pG, [16:11:36]CommunicateWithHost lk.salyk.kg:30040 [16:11:36]ConnectInit lk.salyk.kg [16:11:36]Connected sock=9 [16:11:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 D5 05 07 01 9E 74 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 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 0D 01 00 00 F4 03 04 00 3B 7D 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 9D DD 02 00 35 04 06 00 40 6B 67 9E F4 6F CF 70 29 83 79 CF 50 33 [16:11:37]Write to MH i2c: 01 00 00 4A 6D B7 [16:11:37]Write i2c OK [16:11:37]MH_I2C_Read... [16:11:37]Read from MH i2c: 01 [16:11:37]MH_I2C_Read... [16:11:37]Read from MH i2c: 01 07 00 [16:11:37]MH_I2C_Read... [16:11:37]Read from MH i2c: 01 07 00 4A 6D 00 00 00 00 00 65 0C 2F [16:11:37]RasterBufferAndPrint [16:11:37]line [16:11:37]line [16:11:37]line [16:11:37]line [16:11:37]line [16:11:37]written 0, free lines is 3177 [16:11:37]MH_Cut [16:11:37]Write to MH i2c: D1 01 00 51 6D 01 90 [16:11:37]Write i2c OK [16:11:37]MH_I2C_Read... [16:11:37]Read from MH i2c: D1 [16:11:37]MH_I2C_Read... [16:11:37]Read from MH i2c: D1 01 00 [16:11:37]MH_I2C_Read... [16:11:37]Read from MH i2c: D1 01 00 51 6D 00 8F [16:11:37]Write to MH i2c: 01 00 00 52 6D BF [16:11:37]Write i2c OK [16:11:37]MH_I2C_Read... [16:11:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 36 76 47 00 4A 85 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 9D DD 02 00 F4 03 04 00 2B 27 16 67 B6 04 01 00 00 5F 17 D1 EE 6D 4A 49 56 [16:11:37]CommunicateWithHost err = 0 [16:11:37]CheckOFDResponse [16:11:37]1017 (14) - 77093643461234 [16:11:37]1041 (16) - 0000000000965340 [16:11:37]1040 (4) - 187805 [16:11:37]1012 (4) - 21.10.2024 10:04 [16:11:37]1206 (1) - 0 [16:11:37]OFD Sender: Remove packet 187805 [16:11:37]ProducePacketName [16:11:37]name=ofd_packets/00187805 [16:11:37]NVStorageDeleteData [16:11:37]OFD Sender: No OFD packet to send [16:11:38]*** Cut start [16:11:38]*** Partial cut [16:11:38]*** CUTSNS_PIN = 1 [16:11:38]*** CUTSNS_PIN = 0 [16:11:38]*** Brake cut motor [16:11:38]Read from MH i2c: 01 [16:11:38]MH_I2C_Read... [16:11:38]*** Stop cut motor [16:11:38]*** Cut end [16:11:38]Read from MH i2c: 01 07 00 [16:11:38]MH_I2C_Read... [16:11:38]Read from MH i2c: 01 07 00 52 6D 00 00 00 00 00 FF 0F D4 [16:11:38]process_action close_receipt done [16:11:38]requested_data is exist [16:11:38]produce_requested_data [16:11:38]requested_item fm.sn is exist - process it [16:11:38]wFMCommunicate request_size=4 [16:11:38]MH_SAM_APDU [16:11:38]CAPDU: 80 11 00 00 [16:11:38]Write to MH i2c: E2 08 00 53 6D 80 11 00 00 00 00 00 00 3A [16:11:38]Write i2c OK [16:11:38]MH_I2C_Read... [16:11:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:11:38]Read from MH i2c: E2 [16:11:38]MH_I2C_Read... [16:11:38]Read from MH i2c: E2 17 00 [16:11:38]MH_I2C_Read... [16:11:38]Read from MH i2c: E2 17 00 53 6D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 88 [16:11:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [16:11:38]wFMCommunicate OK [16:11:38]requested_item fd.num is exist - process it [16:11:38]SAM_PROTO_GetFieldsCounters [16:11:38]wFMCommunicate request_size=4 [16:11:38]MH_SAM_APDU [16:11:38]CAPDU: 80 13 00 00 [16:11:38]Write to MH i2c: E2 08 00 54 6D 80 13 00 00 00 00 00 00 3D [16:11:38]Write i2c OK [16:11:38]MH_I2C_Read... [16:11:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:11:39]Read from MH i2c: E2 [16:11:39]MH_I2C_Read... [16:11:39]Read from MH i2c: E2 62 00 [16:11:39]MH_I2C_Read... [16:11:39]Read from MH i2c: E2 62 00 54 6D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 9D DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 0D 01 00 00 5E 04 04 00 0D 01 00 00 57 04 04 00 0E 01 00 00 19 04 04 00 00 00 00 00 90 00 B7 [16:11:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 9D DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 0D 01 00 00 5E 04 04 00 0D 01 00 00 57 04 04 00 0E 01 00 00 19 04 04 00 00 00 00 00 90 00 [16:11:39]wFMCommunicate OK [16:11:39]SAM_PROTO_GetFieldsCounters done [16:11:39]requested_item shift.num is exist - process it [16:11:39]requested_item shift.opened is exist - process it [16:11:39]req_shift_opened [16:11:39]FM_GetShiftState [16:11:39]SAM_PROTO_GetShiftState [16:11:39]wFMCommunicate request_size=4 [16:11:39]MH_SAM_APDU [16:11:39]CAPDU: 80 13 01 00 [16:11:39]Write to MH i2c: E2 08 00 55 6D 80 13 01 00 00 00 00 00 3F [16:11:39]Write i2c OK [16:11:39]MH_I2C_Read... [16:11:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:11:39]Read from MH i2c: E2 [16:11:39]MH_I2C_Read... [16:11:39]Read from MH i2c: E2 0E 00 [16:11:39]MH_I2C_Read... [16:11:39]Read from MH i2c: E2 0E 00 55 6D 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 9E [16:11:39]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [16:11:39]wFMCommunicate OK [16:11:39]SAM_PROTO_GetShiftState done [16:11:39]FM_GetShiftState done [16:11:39]req_shift_opened done [16:11:39]requested_item shift.open_date is exist - process it [16:11:39]req_shift_open_date [16:11:39]req_shift_open_date done [16:11:39]produce_requested_data done [16:11:39]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187805,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [16:11:39]process_action_free close_receipt [16:11:39]json_value_free [16:11:39]json_value_free done [16:11:39]process_json_proto returns [16:11:39]Send response to host [16:11:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187805,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [16:11:39]free response buf [16:11:39]execute_script done [16:11:39]execute_script returns [16:11:39]free content buf [16:11:39]Sock 10.Close socket [16:11:39]Sock 10.Thread stoped [16:11:42]OFD Sender: No OFD packet to send [16:11:47]OFD Sender: No OFD packet to send [16:11:52]OFD Sender: No OFD packet to send [16:11:57]OFD Sender: No OFD packet to send [16:12:02]OFD Sender: No OFD packet to send [16:12:08]OFD Sender: No OFD packet to send [16:12:13]OFD Sender: No OFD packet to send [16:12:18]OFD Sender: No OFD packet to send [16:12:23]OFD Sender: No OFD packet to send [16:12:28]OFD Sender: No OFD packet to send [16:12:33]OFD Sender: No OFD packet to send [16:12:38]OFD Sender: No OFD packet to send [16:12:43]OFD Sender: No OFD packet to send [16:12:48]OFD Sender: No OFD packet to send [16:12:53]OFD Sender: No OFD packet to send [16:12:58]OFD Sender: No OFD packet to send [16:13:03]OFD Sender: No OFD packet to send [16:13:08]OFD Sender: No OFD packet to send [16:13:13]OFD Sender: No OFD packet to send [16:13:18]OFD Sender: No OFD packet to send [16:13:23]OFD Sender: No OFD packet to send [16:13:28]OFD Sender: No OFD packet to send [16:13:33]OFD Sender: No OFD packet to send [16:13:38]OFD Sender: No OFD packet to send [16:13:43]OFD Sender: No OFD packet to send [16:13:48]OFD Sender: No OFD packet to send [16:13:53]accept exits with 8 [16:13:53]New connection [16:13:53]New thread 3067157860 created [16:13:53]Thread 3067014500 joined [16:13:53]Waiting for new connection... [16:13:53] Sock 8.Parse request [16:13:53]Sock 8.Check first char [16:13:53]Sock 8.First char is OK [16:13:53]request: POST /json_proto HTTP/1.0 [16:13:53]Method: POST [16:13:53]URL: /json_proto [16:13:53]Method is POST - this is cgi request [16:13:53]url: /json_proto [16:13:53]query_string will be loaded in cgi processing [16:13:53]execute_cgi json_proto POST (null) [16:13:53]execute_cgi path=json_proto method=POST [16:13:53]POST find Content-Length [16:13:53]Host: 172.17.42.131:8080 [16:13:53]Content-Length: 682 [16:13:53]Content-Type: application/json [16:13:53] [16:13:53]POST finish read [16:13:53]Found Content-Length = 682 [16:13:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209859", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:13:53]execute_script... [16:13:53]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209859", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:13:53]POST & json_proto [16:13:53]process_json_proto [16:13:53]json parsed OK: [16:13:53]protocol is kg_v1.0 [16:13:53]action value=close_receipt [16:13:53]process_action close_receipt [16:13:53]cmd_close_receipt [16:13:53]MH_GetDate [16:13:53]Write to MH i2c: F0 00 00 56 6D B2 [16:13:53]Write i2c OK [16:13:53]MH_I2C_Read... [16:13:53]Read from MH i2c: F0 [16:13:53]MH_I2C_Read... [16:13:53]Read from MH i2c: F0 09 00 [16:13:53]MH_I2C_Read... [16:13:53]Read from MH i2c: F0 09 00 56 6D 00 C6 7D 16 67 A0 18 CA 66 63 [16:13:53]GetLastDocTimeStamp 1729527099 [16:13:53]current date 1729527238 [16:13:53]FM_GetShiftState [16:13:53]SAM_PROTO_GetShiftState [16:13:53]wFMCommunicate request_size=4 [16:13:53]MH_SAM_APDU [16:13:53]CAPDU: 80 13 01 00 [16:13:53]Write to MH i2c: E2 08 00 57 6D 80 13 01 00 00 00 00 00 41 [16:13:53]Write i2c OK [16:13:53]MH_I2C_Read... [16:13:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:13:53]Read from MH i2c: E2 [16:13:53]MH_I2C_Read... [16:13:53]Read from MH i2c: E2 0E 00 [16:13:53]MH_I2C_Read... [16:13:53]Read from MH i2c: E2 0E 00 57 6D 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 A0 [16:13:53]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [16:13:53]wFMCommunicate OK [16:13:53]SAM_PROTO_GetShiftState done [16:13:53]FM_GetShiftState done [16:13:53]opened in 1729469754 [16:13:53]opened+sec_in_day 1729556154 [16:13:53]quantity*price = 100015 [16:13:53]sum+1 = 100017 [16:13:53]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 270 21.10.2024 16:13 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 187806 ФПД: 33030930201908 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T161358&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187806&fm=33030930201908&tin=02508201610067®Number=0000000000100030&sum=100000 [16:13:54]StoreToDocumentArchive [16:13:54]shift 460 fd 187806 [16:13:54]save to /storage/0460/doc_00187806 [16:13:54]save last doc name /storage/0460/doc_00187806 to /storage/kkm_last_doc_name [16:13:54]save OK [16:13:54]Clear old archive folders... [16:13:54]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:13:54]tlvbuf is 01121680 [16:13:54]SAM_PROTO_ClearQueue [16:13:54]wFMCommunicate request_size=4 [16:13:54]MH_SAM_APDU [16:13:54]CAPDU: 80 09 00 00 [16:13:54]Write to MH i2c: E2 08 00 64 6D 80 09 00 00 00 00 00 00 43 [16:13:54]Write i2c OK [16:13:54]MH_I2C_Read... [16:13:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:13:54]Read from MH i2c: E2 [16:13:54]MH_I2C_Read... [16:13:54]Read from MH i2c: E2 03 00 [16:13:54]MH_I2C_Read... [16:13:54]Read from MH i2c: E2 03 00 64 6D 00 90 00 45 [16:13:54]RAPDU: 90 00 [16:13:54]wFMCommunicate OK [16:13:54]SAM_PROTO_ClearQueue done [16:13:54]KKMCreateOFDPacket [16:13:54]OFDProtocolAddRootSTLVToBuf [16:13:54]FM_MakeSignedData [16:13:54]FM_MakeSignedData [16:13:54]SAM_PROTO_SignData [16:13:54]wFMCommunicate request_size=4 [16:13:54]MH_SAM_APDU [16:13:54]CAPDU: 80 0D 01 02 [16:13:54]Write to MH i2c: E2 08 00 65 6D 80 0D 01 02 00 00 00 00 4B [16:13:54]Write i2c OK [16:13:54]MH_I2C_Read... [16:13:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:13:54]Read from MH i2c: E2 [16:13:54]MH_I2C_Read... [16:13:54]Read from MH i2c: E2 03 00 [16:13:54]MH_I2C_Read... [16:13:54]Read from MH i2c: E2 03 00 65 6D 00 90 00 46 [16:13:54]RAPDU: 90 00 [16:13:54]wFMCommunicate OK [16:13:54]wFMCommunicate request_size=255 [16:13:54]MH_SAM_APDU [16:13: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 33 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 0E 01 00 00 F4 03 04 00 C6 7D 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 9E DD 02 00 35 04 06 00 1E [16:13:54]Write to MH i2c: E2 02 01 66 6D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 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 0E 01 00 00 F4 03 04 00 C6 7D 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 9E DD 02 00 35 04 06 00 1E 00 00 EF [16:13:54]Write i2c OK [16:13:54]MH_I2C_Read... [16:13:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:13:54]Read from MH i2c: E2 [16:13:54]MH_I2C_Read... [16:13:54]Read from MH i2c: E2 03 00 [16:13:54]MH_I2C_Read... [16:13:54]Read from MH i2c: E2 03 00 66 6D 00 90 00 47 [16:13:54]RAPDU: 90 00 [16:13:54]wFMCommunicate OK [16:13:54]wFMCommunicate request_size=10 [16:13:54]MH_SAM_APDU [16:13:54]CAPDU: 80 0D 02 02 05 0A 9C DC 7D 34 [16:13:54]Write to MH i2c: E2 0D 00 67 6D 80 0D 02 02 05 00 0A 9C DC 7D 34 00 00 8B [16:13:54]Write i2c OK [16:13:54]MH_I2C_Read... [16:13:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:13:54]Read from MH i2c: E2 [16:13:54]MH_I2C_Read... [16:13:54]Read from MH i2c: E2 03 00 [16:13:54]MH_I2C_Read... [16:13:54]Read from MH i2c: E2 03 00 67 6D 00 90 00 48 [16:13:54]RAPDU: 90 00 [16:13:54]wFMCommunicate OK [16:13:54]wFMCommunicate request_size=4 [16:13:54]MH_SAM_APDU [16:13:54]CAPDU: 80 0D 03 02 [16:13:54]Write to MH i2c: E2 08 00 68 6D 80 0D 03 02 00 00 00 00 50 [16:13:54]Write i2c OK [16:13:54]MH_I2C_Read... [16:13:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:13:54]Read from MH i2c: E2 [16:13:54]MH_I2C_Read... [16:13:54]Read from MH i2c: E2 0B 00 [16:13:54]MH_I2C_Read... [16:13:54]Read from MH i2c: E2 0B 00 68 6D 00 16 1F 96 58 A3 4A E8 3A 90 00 83 [16:13:54]RAPDU: 16 1F 96 58 A3 4A E8 3A 90 00 [16:13:54]wFMCommunicate OK [16:13:54]SAM_PROTO_SignData done [16:13:54]FM_MakeSignedData done [16:13:54]CreateOFDProtocolMessage [16:13:54]wFMCommunicate request_size=4 [16:13:54]MH_SAM_APDU [16:13:54]CAPDU: 80 11 00 00 [16:13:54]Write to MH i2c: E2 08 00 69 6D 80 11 00 00 00 00 00 00 50 [16:13:54]Write i2c OK [16:13:54]MH_I2C_Read... [16:13:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:13:54]Read from MH i2c: E2 [16:13:54]MH_I2C_Read... [16:13:54]Read from MH i2c: E2 17 00 [16:13:54]MH_I2C_Read... [16:13:54]Read from MH i2c: E2 17 00 69 6D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 9E [16:13:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [16:13:54]wFMCommunicate OK [16:13:54]CreateOFDProtocolMessage done [16:13:54]OFDSenderStorePacket 187806 [16:13:54]StoreOFDPacket docnum=187806 [16:13:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 7F 87 07 01 AC 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 33 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 0E 01 00 00 F4 03 04 00 C6 7D 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 9E DD 02 00 35 04 06 00 1E 0A 9C DC 7D 34 16 1F 96 58 A3 4A E8 3A [16:13:54]CheckFolder [16:13:54]dirname=/storage/ofd_packets [16:13:54]CheckFolder done [16:13:54]ProducePacketName [16:13:54]name=ofd_packets/00187806 [16:13:54]NVStorageSaveData ofd_packets/00187806 [16:13:54]File name is /storage/ofd_packets/00187806 [16:13:54]Write 301 bytes [16:13:54]NVStorageSaveData done [16:13:54]OFDSenderStorePacket done [16:13:54]KKMCreateOFDPacket done [16:13:54]NVStorageSaveData kkm_last_timestamp [16:13:54]File name is /storage/kkm_last_timestamp [16:13:54]Write 4 bytes [16:13:54]NVStorageSaveData done [16:13:54]ExternCall_PrintAddStr [16:13:54]wPrintStart [16:13:54]Write to MH i2c: 01 00 00 6A 6D D7 [16:13:54]Write i2c OK [16:13:54]MH_I2C_Read... [16:13:54]Read from MH i2c: 01 [16:13:54]MH_I2C_Read... [16:13:54]Read from MH i2c: 01 07 00 [16:13:54]MH_I2C_Read... [16:13:54]Read from MH i2c: 01 07 00 6A 6D 00 00 00 00 00 FF 0F EC [16:13:54]RasterBufferAndPrint [16:13:54]line Счет N : (1)209859 [16:13:54]line ИНН: 02508201610067 [16:13:54]line Контрольно-Кассовый Чек [16:13:54]line ПРОДАЖА [16:13:54]line ТРК (МРК, ГНК) : 32 [16:13:54]line Товар: 2710124130 [16:13:54]line Аи-92-К-3 [16:13:54]line 14.950 * 66.90 [16:13:54]line = 1000.16 [16:13:54]line НДС 12% НСП 1% [16:13:54]line > о реализуемом товаре [16:13:54]line ОКРУГЛЕНИЕ: -0.16 [16:13:54]line ИТОГО: 1000.00 [16:13:54]line Внесено: 1000.00 [16:13:54]line СДАЧА: 0.00 [16:13:54]line НСП 1% : 8.85 [16:13:54]line НДС 12% : 106.21 [16:13:54]line Наличными: 1000.00 [16:13:54]line Безнал.: 0.00 [16:13:54]line Место: АЗС № 86 "Партнер Нефть" [16:13:54]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [16:13:54]line СНО: Общий режим [16:13:54]line Чек 270 21.10.2024 16:13 [16:13:54]line Смена: 460 ФФД: 1.0 [16:13:54]line ЗНМ: 0300000155 [16:13:54]line РНМ: 0000000000100030 [16:13:54]line Версия ККМ: 001 [16:13:54]line ФМ: 0000000000965340 [16:13:54]line ФД: 187806 [16:13:54]line ФПД: 33030930201908 [16:13:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T161358&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187806&fm=33030930201908&tin=02508201610067®Number=0000000000100030&sum=100000 [16:13:54]written 0, free lines is 4095 [16:13:54]OFD Sender: Processing packet 187806 [packets to send 1062, broken 1061] [16:13:54]ProducePacketName [16:13:54]name=ofd_packets/00187806 [16:13:54]OFD Sender: To server: pG, [16:13:54]CommunicateWithHost lk.salyk.kg:30040 [16:13:54]ConnectInit lk.salyk.kg [16:13:55]Connected sock=10 [16:13:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 7F 87 07 01 AC 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 33 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 0E 01 00 00 F4 03 04 00 C6 7D 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 9E DD 02 00 35 04 06 00 1E 0A 9C DC 7D 34 16 1F 96 58 A3 4A E8 3A [16:13:55]Write to MH i2c: 01 00 00 95 6D 02 [16:13:55]Write i2c OK [16:13:55]MH_I2C_Read... [16:13:55]Read from MH i2c: 01 [16:13:55]MH_I2C_Read... [16:13:55]Read from MH i2c: 01 07 00 [16:13:55]MH_I2C_Read... [16:13:55]Read from MH i2c: 01 07 00 95 6D 00 00 00 00 00 62 0C 77 [16:13:55]RasterBufferAndPrint [16:13:55]line [16:13:55]line [16:13:55]line [16:13:55]line [16:13:55]line [16:13:55]written 0, free lines is 3174 [16:13:55]MH_Cut [16:13:55]Write to MH i2c: D1 01 00 9C 6D 01 DB [16:13:55]Write i2c OK [16:13:55]MH_I2C_Read... [16:13:55]Read from MH i2c: D1 [16:13:55]MH_I2C_Read... [16:13:55]Read from MH i2c: D1 01 00 [16:13:55]MH_I2C_Read... [16:13:55]Read from MH i2c: D1 01 00 9C 6D 00 DA [16:13:55]Write to MH i2c: 01 00 00 9D 6D 0A [16:13:55]Write i2c OK [16:13:55]MH_I2C_Read... [16:13:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 70 39 47 00 4A AC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 9E DD 02 00 F4 03 04 00 B5 27 16 67 B6 04 01 00 00 E1 00 48 15 D2 E2 00 77 [16:13:55]CommunicateWithHost err = 0 [16:13:55]CheckOFDResponse [16:13:55]1017 (14) - 77093643461234 [16:13:55]1041 (16) - 0000000000965340 [16:13:55]1040 (4) - 187806 [16:13:55]1012 (4) - 21.10.2024 10:06 [16:13:55]1206 (1) - 0 [16:13:55]OFD Sender: Remove packet 187806 [16:13:55]ProducePacketName [16:13:55]name=ofd_packets/00187806 [16:13:55]NVStorageDeleteData [16:13:56]OFD Sender: No OFD packet to send [16:13:56]*** Cut start [16:13:56]*** Partial cut [16:13:56]*** CUTSNS_PIN = 1 [16:13:56]*** CUTSNS_PIN = 0 [16:13:56]*** Brake cut motor [16:13:57]Read from MH i2c: 01 [16:13:57]MH_I2C_Read... [16:13:57]*** Stop cut motor [16:13:57]*** Cut end [16:13:57]Read from MH i2c: 01 07 00 [16:13:57]MH_I2C_Read... [16:13:57]Read from MH i2c: 01 07 00 9D 6D 00 00 00 00 00 FF 0F 1F [16:13:57]process_action close_receipt done [16:13:57]requested_data is exist [16:13:57]produce_requested_data [16:13:57]requested_item fm.sn is exist - process it [16:13:57]wFMCommunicate request_size=4 [16:13:57]MH_SAM_APDU [16:13:57]CAPDU: 80 11 00 00 [16:13:57]Write to MH i2c: E2 08 00 9E 6D 80 11 00 00 00 00 00 00 85 [16:13:57]Write i2c OK [16:13:57]MH_I2C_Read... [16:13:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:13:57]Read from MH i2c: E2 [16:13:57]MH_I2C_Read... [16:13:57]Read from MH i2c: E2 17 00 [16:13:57]MH_I2C_Read... [16:13:57]Read from MH i2c: E2 17 00 9E 6D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 D3 [16:13:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [16:13:57]wFMCommunicate OK [16:13:57]requested_item fd.num is exist - process it [16:13:57]SAM_PROTO_GetFieldsCounters [16:13:57]wFMCommunicate request_size=4 [16:13:57]MH_SAM_APDU [16:13:57]CAPDU: 80 13 00 00 [16:13:57]Write to MH i2c: E2 08 00 9F 6D 80 13 00 00 00 00 00 00 88 [16:13:57]Write i2c OK [16:13:57]MH_I2C_Read... [16:13:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:13:57]Read from MH i2c: E2 [16:13:57]MH_I2C_Read... [16:13:57]Read from MH i2c: E2 62 00 [16:13:57]MH_I2C_Read... [16:13:57]Read from MH i2c: E2 62 00 9F 6D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 9E DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 0E 01 00 00 5E 04 04 00 0E 01 00 00 57 04 04 00 0F 01 00 00 19 04 04 00 00 00 00 00 90 00 06 [16:13:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 9E DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 0E 01 00 00 5E 04 04 00 0E 01 00 00 57 04 04 00 0F 01 00 00 19 04 04 00 00 00 00 00 90 00 [16:13:57]wFMCommunicate OK [16:13:57]SAM_PROTO_GetFieldsCounters done [16:13:57]requested_item shift.num is exist - process it [16:13:57]requested_item shift.opened is exist - process it [16:13:57]req_shift_opened [16:13:57]FM_GetShiftState [16:13:57]SAM_PROTO_GetShiftState [16:13:57]wFMCommunicate request_size=4 [16:13:57]MH_SAM_APDU [16:13:57]CAPDU: 80 13 01 00 [16:13:57]Write to MH i2c: E2 08 00 A0 6D 80 13 01 00 00 00 00 00 8A [16:13:57]Write i2c OK [16:13:57]MH_I2C_Read... [16:13:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:13:57]Read from MH i2c: E2 [16:13:57]MH_I2C_Read... [16:13:57]Read from MH i2c: E2 0E 00 [16:13:57]MH_I2C_Read... [16:13:57]Read from MH i2c: E2 0E 00 A0 6D 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 E9 [16:13:57]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [16:13:57]wFMCommunicate OK [16:13:57]SAM_PROTO_GetShiftState done [16:13:57]FM_GetShiftState done [16:13:57]req_shift_opened done [16:13:57]requested_item shift.open_date is exist - process it [16:13:57]req_shift_open_date [16:13:57]req_shift_open_date done [16:13:57]produce_requested_data done [16:13:57]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187806,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [16:13:57]process_action_free close_receipt [16:13:57]json_value_free [16:13:57]json_value_free done [16:13:57]process_json_proto returns [16:13:57]Send response to host [16:13:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187806,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [16:13:57]free response buf [16:13:57]execute_script done [16:13:57]execute_script returns [16:13:57]free content buf [16:13:57]Sock 8.Close socket [16:13:57]Sock 8.Thread stoped [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:11]OFD Sender: No OFD packet to send [16:17:16]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:29]accept exits with 9 [16:17:29]New connection [16:17:29]New thread 3067014500 created [16:17:29]Thread 3067157860 joined [16:17:29]Waiting for new connection... [16:17:29] Sock 9.Parse request [16:17:29]Sock 9.Check first char [16:17:29]Sock 9.First char is OK [16:17:29]request: POST /json_proto HTTP/1.0 [16:17:29]Method: POST [16:17:29]URL: /json_proto [16:17:29]Method is POST - this is cgi request [16:17:29]url: /json_proto [16:17:29]query_string will be loaded in cgi processing [16:17:29]execute_cgi json_proto POST (null) [16:17:29]execute_cgi path=json_proto method=POST [16:17:29]POST find Content-Length [16:17:29]Host: 172.17.42.131:8080 [16:17:29]Content-Length: 751 [16:17:29]Content-Type: application/json [16:17:29] [16:17:29]POST finish read [16:17:29]Found Content-Length = 751 [16:17:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209858", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 91.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\u000A30116760", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:17:29]execute_script... [16:17: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)209858", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 91.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\u000A30116760", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:17:29]POST & json_proto [16:17:29]process_json_proto [16:17:29]json parsed OK: [16:17:29]protocol is kg_v1.0 [16:17:29]action value=close_receipt [16:17:29]process_action close_receipt [16:17:29]cmd_close_receipt [16:17:29]MH_GetDate [16:17:29]Write to MH i2c: F0 00 00 A1 6D FD [16:17:29]Write i2c OK [16:17:29]MH_I2C_Read... [16:17:29]Read from MH i2c: F0 [16:17:29]MH_I2C_Read... [16:17:29]Read from MH i2c: F0 09 00 [16:17:29]MH_I2C_Read... [16:17:29]Read from MH i2c: F0 09 00 A1 6D 00 9E 7E 16 67 A0 18 CA 66 87 [16:17:29]GetLastDocTimeStamp 1729527238 [16:17:29]current date 1729527454 [16:17:29]FM_GetShiftState [16:17:29]SAM_PROTO_GetShiftState [16:17:29]wFMCommunicate request_size=4 [16:17:29]MH_SAM_APDU [16:17:29]CAPDU: 80 13 01 00 [16:17:29]Write to MH i2c: E2 08 00 A2 6D 80 13 01 00 00 00 00 00 8C [16:17:29]Write i2c OK [16:17:29]MH_I2C_Read... [16:17:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:17:29]Read from MH i2c: E2 [16:17:29]MH_I2C_Read... [16:17:29]Read from MH i2c: E2 0E 00 [16:17:29]MH_I2C_Read... [16:17:29]Read from MH i2c: E2 0E 00 A2 6D 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 EB [16:17:29]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [16:17:29]wFMCommunicate OK [16:17:29]SAM_PROTO_GetShiftState done [16:17:29]FM_GetShiftState done [16:17:29]opened in 1729469754 [16:17:29]opened+sec_in_day 1729556154 [16:17:29]quantity*price = 0 [16:17:29]sum+1 = 1 [16:17:29]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 271 21.10.2024 16:17 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Талоны: ТК ГПНА Online 30116760 ФМ: 0000000000965340 ФД: 187807 ФПД: 86753660396750 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T161734&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187807&fm=86753660396750&tin=02508201610067®Number=0000000000100030&sum=0 [16:17:30]StoreToDocumentArchive [16:17:30]shift 460 fd 187807 [16:17:30]save to /storage/0460/doc_00187807 [16:17:30]save last doc name /storage/0460/doc_00187807 to /storage/kkm_last_doc_name [16:17:30]save OK [16:17:30]Clear old archive folders... [16:17:30]ProcessDocumentItem done err = 0, tmpTLVsize=248 [16:17:30]tlvbuf is 01272D50 [16:17:30]SAM_PROTO_ClearQueue [16:17:30]wFMCommunicate request_size=4 [16:17:30]MH_SAM_APDU [16:17:30]CAPDU: 80 09 00 00 [16:17:30]Write to MH i2c: E2 08 00 AF 6D 80 09 00 00 00 00 00 00 8E [16:17:30]Write i2c OK [16:17:30]MH_I2C_Read... [16:17:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:17:30]Read from MH i2c: E2 [16:17:30]MH_I2C_Read... [16:17:30]Read from MH i2c: E2 03 00 [16:17:30]MH_I2C_Read... [16:17:30]Read from MH i2c: E2 03 00 AF 6D 00 90 00 90 [16:17:30]RAPDU: 90 00 [16:17:30]wFMCommunicate OK [16:17:30]SAM_PROTO_ClearQueue done [16:17:30]KKMCreateOFDPacket [16:17:30]OFDProtocolAddRootSTLVToBuf [16:17:30]FM_MakeSignedData [16:17:30]FM_MakeSignedData [16:17:30]SAM_PROTO_SignData [16:17:30]wFMCommunicate request_size=4 [16:17:30]MH_SAM_APDU [16:17:30]CAPDU: 80 0D 01 02 [16:17:30]Write to MH i2c: E2 08 00 B0 6D 80 0D 01 02 00 00 00 00 96 [16:17:30]Write i2c OK [16:17:30]MH_I2C_Read... [16:17:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:17:30]Read from MH i2c: E2 [16:17:30]MH_I2C_Read... [16:17:30]Read from MH i2c: E2 03 00 [16:17:30]MH_I2C_Read... [16:17:30]Read from MH i2c: E2 03 00 B0 6D 00 90 00 91 [16:17:30]RAPDU: 90 00 [16:17:30]wFMCommunicate OK [16:17:30]wFMCommunicate request_size=255 [16:17:30]MH_SAM_APDU [16:17:30]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 78 63 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 01 00 00 F4 03 04 00 9E 7E 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 9F DD 02 00 35 04 06 00 4E E6 E9 1C [16:17:30]Write to MH i2c: E2 02 01 B1 6D 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 78 63 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 01 00 00 F4 03 04 00 9E 7E 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 9F DD 02 00 35 04 06 00 4E E6 E9 1C 00 00 E2 [16:17:30]Write i2c OK [16:17:30]MH_I2C_Read... [16:17:30]Read from MH i2c: E2 [16:17:30]MH_I2C_Read... [16:17:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:17:30]Read from MH i2c: E2 03 00 [16:17:30]MH_I2C_Read... [16:17:30]Read from MH i2c: E2 03 00 B1 6D 00 90 00 92 [16:17:30]RAPDU: 90 00 [16:17:30]wFMCommunicate OK [16:17:30]wFMCommunicate request_size=7 [16:17:30]MH_SAM_APDU [16:17:30]CAPDU: 80 0D 02 02 02 64 CE [16:17:30]Write to MH i2c: E2 0A 00 B2 6D 80 0D 02 02 02 00 64 CE 00 00 CF [16:17:30]Write i2c OK [16:17:30]MH_I2C_Read... [16:17:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:17:30]Read from MH i2c: E2 [16:17:30]MH_I2C_Read... [16:17:30]Read from MH i2c: E2 03 00 [16:17:30]MH_I2C_Read... [16:17:30]Read from MH i2c: E2 03 00 B2 6D 00 90 00 93 [16:17:30]RAPDU: 90 00 [16:17:30]wFMCommunicate OK [16:17:30]wFMCommunicate request_size=4 [16:17:30]MH_SAM_APDU [16:17:30]CAPDU: 80 0D 03 02 [16:17:30]Write to MH i2c: E2 08 00 B3 6D 80 0D 03 02 00 00 00 00 9B [16:17:30]Write i2c OK [16:17:30]MH_I2C_Read... [16:17:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:17:30]Read from MH i2c: E2 [16:17:30]MH_I2C_Read... [16:17:30]Read from MH i2c: E2 0B 00 [16:17:30]MH_I2C_Read... [16:17:30]Read from MH i2c: E2 0B 00 B3 6D 00 04 65 34 6A 3C 52 6D 18 90 00 B6 [16:17:30]RAPDU: 04 65 34 6A 3C 52 6D 18 90 00 [16:17:30]wFMCommunicate OK [16:17:30]SAM_PROTO_SignData done [16:17:30]FM_MakeSignedData done [16:17:30]CreateOFDProtocolMessage [16:17:30]wFMCommunicate request_size=4 [16:17:30]MH_SAM_APDU [16:17:30]CAPDU: 80 11 00 00 [16:17:30]Write to MH i2c: E2 08 00 B4 6D 80 11 00 00 00 00 00 00 9B [16:17:30]Write i2c OK [16:17:30]MH_I2C_Read... [16:17:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:17:30]Read from MH i2c: E2 [16:17:30]MH_I2C_Read... [16:17:30]Read from MH i2c: E2 17 00 [16:17:30]MH_I2C_Read... [16:17:30]Read from MH i2c: E2 17 00 B4 6D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 E9 [16:17:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [16:17:30]wFMCommunicate OK [16:17:30]CreateOFDProtocolMessage done [16:17:30]OFDSenderStorePacket 187807 [16:17:30]StoreOFDPacket docnum=187807 [16:17:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 8C 33 04 01 F2 7C 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 78 63 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 01 00 00 F4 03 04 00 9E 7E 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 9F DD 02 00 35 04 06 00 4E E6 E9 1C 64 CE 04 65 34 6A 3C 52 6D 18 [16:17:30]CheckFolder [16:17:30]dirname=/storage/ofd_packets [16:17:30]CheckFolder done [16:17:30]ProducePacketName [16:17:30]name=ofd_packets/00187807 [16:17:30]NVStorageSaveData ofd_packets/00187807 [16:17:30]File name is /storage/ofd_packets/00187807 [16:17:30]Write 298 bytes [16:17:30]NVStorageSaveData done [16:17:30]OFDSenderStorePacket done [16:17:30]KKMCreateOFDPacket done [16:17:30]NVStorageSaveData kkm_last_timestamp [16:17:30]File name is /storage/kkm_last_timestamp [16:17:30]Write 4 bytes [16:17:30]NVStorageSaveData done [16:17:31]ExternCall_PrintAddStr [16:17:31]wPrintStart [16:17:31]Write to MH i2c: 01 00 00 B5 6D 22 [16:17:31]Write i2c OK [16:17:31]MH_I2C_Read... [16:17:31]Read from MH i2c: 01 [16:17:31]MH_I2C_Read... [16:17:31]Read from MH i2c: 01 07 00 [16:17:31]MH_I2C_Read... [16:17:31]Read from MH i2c: 01 07 00 B5 6D 00 00 00 00 00 FF 0F 37 [16:17:31]RasterBufferAndPrint [16:17:31]line Счет N : (1)209858 [16:17:31]line ИНН: 02508201610067 [16:17:31]line Контрольно-Кассовый Чек [16:17:31]line ПРОДАЖА [16:17:31]line ТРК (МРК, ГНК) : 51 [16:17:31]line Товар: 2710194210 [16:17:31]line ДТ-К-5 [16:17:31]line 91.000 * 0.00 [16:17:31]line = 0.00 [16:17:31]line НДС 12% НСП 1% [16:17:31]line > о реализуемом товаре [16:17:31]line ИТОГО: 0.00 [16:17:31]line НСП 1% : 0.00 [16:17:31]line НДС 12% : 0.00 [16:17:31]line Наличными: 0.00 [16:17:31]line Безнал.: 0.00 [16:17:31]line Место: АЗС № 86 "Партнер Нефть" [16:17:31]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [16:17:31]line СНО: Общий режим [16:17:31]line Чек 271 21.10.2024 16:17 [16:17:31]line Смена: 460 ФФД: 1.0 [16:17:31]line ЗНМ: 0300000155 [16:17:31]line РНМ: 0000000000100030 [16:17:31]line Версия ККМ: 001 [16:17:31]line Талоны: ТК ГПНА Online [16:17:31]line 30116760 [16:17:31]line ФМ: 0000000000965340 [16:17:31]line ФД: 187807 [16:17:31]line ФПД: 86753660396750 [16:17:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T161734&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187807&fm=86753660396750&tin=02508201610067®Number=0000000000100030&sum=0 [16:17:31]written 0, free lines is 4095 [16:17:31]OFD Sender: Processing packet 187807 [packets to send 1062, broken 1061] [16:17:31]ProducePacketName [16:17:31]name=ofd_packets/00187807 [16:17:31]OFD Sender: To server: pG, [16:17:31]CommunicateWithHost lk.salyk.kg:30040 [16:17:31]ConnectInit lk.salyk.kg [16:17:31]Connected sock=10 [16:17:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 8C 33 04 01 F2 7C 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 78 63 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 01 00 00 F4 03 04 00 9E 7E 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 9F DD 02 00 35 04 06 00 4E E6 E9 1C 64 CE 04 65 34 6A 3C 52 6D 18 [16:17:31]Write to MH i2c: 01 00 00 DF 6D 4C [16:17:31]Write i2c OK [16:17:31]MH_I2C_Read... [16:17:31]Read from MH i2c: 01 [16:17:31]MH_I2C_Read... [16:17:31]Read from MH i2c: 01 07 00 [16:17:31]MH_I2C_Read... [16:17:31]Read from MH i2c: 01 07 00 DF 6D 00 00 00 00 00 74 0C D3 [16:17:31]RasterBufferAndPrint [16:17:31]line [16:17:31]line [16:17:31]line [16:17:31]line [16:17:31]line [16:17:31]written 0, free lines is 3193 [16:17:31]MH_Cut [16:17:31]Write to MH i2c: D1 01 00 E6 6D 01 25 [16:17:31]Write i2c OK [16:17:31]MH_I2C_Read... [16:17:31]Read from MH i2c: D1 [16:17:31]MH_I2C_Read... [16:17:31]Read from MH i2c: D1 01 00 [16:17:31]MH_I2C_Read... [16:17:31]Read from MH i2c: D1 01 00 E6 6D 00 24 [16:17:31]Write to MH i2c: 01 00 00 E7 6D 54 [16:17:31]Write i2c OK [16:17:31]MH_I2C_Read... [16:17:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 11 94 47 00 F2 69 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 9F DD 02 00 F4 03 04 00 8D 28 16 67 B6 04 01 00 00 0D E0 9E 4C 92 1B 9E B3 [16:17:31]CommunicateWithHost err = 0 [16:17:31]CheckOFDResponse [16:17:31]1017 (14) - 77093643461234 [16:17:31]1041 (16) - 0000000000965340 [16:17:31]1040 (4) - 187807 [16:17:31]1012 (4) - 21.10.2024 10:10 [16:17:31]1206 (1) - 0 [16:17:31]OFD Sender: Remove packet 187807 [16:17:31]ProducePacketName [16:17:31]name=ofd_packets/00187807 [16:17:31]NVStorageDeleteData [16:17:32]OFD Sender: No OFD packet to send [16:17:32]*** Cut start [16:17:32]*** Partial cut [16:17:32]*** CUTSNS_PIN = 1 [16:17:32]*** CUTSNS_PIN = 0 [16:17:32]*** Brake cut motor [16:17:33]Read from MH i2c: 01 [16:17:33]MH_I2C_Read... [16:17:33]*** Stop cut motor [16:17:33]*** Cut end [16:17:33]Read from MH i2c: 01 07 00 [16:17:33]MH_I2C_Read... [16:17:33]Read from MH i2c: 01 07 00 E7 6D 00 00 00 00 00 FF 0F 69 [16:17:33]process_action close_receipt done [16:17:33]requested_data is exist [16:17:33]produce_requested_data [16:17:33]requested_item fm.sn is exist - process it [16:17:33]wFMCommunicate request_size=4 [16:17:33]MH_SAM_APDU [16:17:33]CAPDU: 80 11 00 00 [16:17:33]Write to MH i2c: E2 08 00 E8 6D 80 11 00 00 00 00 00 00 CF [16:17:33]Write i2c OK [16:17:33]MH_I2C_Read... [16:17:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:17:33]Read from MH i2c: E2 [16:17:33]MH_I2C_Read... [16:17:33]Read from MH i2c: E2 17 00 [16:17:33]MH_I2C_Read... [16:17:33]Read from MH i2c: E2 17 00 E8 6D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 1D [16:17:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [16:17:33]wFMCommunicate OK [16:17:33]requested_item fd.num is exist - process it [16:17:33]SAM_PROTO_GetFieldsCounters [16:17:33]wFMCommunicate request_size=4 [16:17:33]MH_SAM_APDU [16:17:33]CAPDU: 80 13 00 00 [16:17:33]Write to MH i2c: E2 08 00 E9 6D 80 13 00 00 00 00 00 00 D2 [16:17:33]Write i2c OK [16:17:33]MH_I2C_Read... [16:17:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:17:33]Read from MH i2c: E2 [16:17:33]MH_I2C_Read... [16:17:33]Read from MH i2c: E2 62 00 [16:17:33]MH_I2C_Read... [16:17:33]Read from MH i2c: E2 62 00 E9 6D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 9F DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 0F 01 00 00 5E 04 04 00 0F 01 00 00 57 04 04 00 10 01 00 00 19 04 04 00 00 00 00 00 90 00 54 [16:17:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 9F DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 0F 01 00 00 5E 04 04 00 0F 01 00 00 57 04 04 00 10 01 00 00 19 04 04 00 00 00 00 00 90 00 [16:17:33]wFMCommunicate OK [16:17:33]SAM_PROTO_GetFieldsCounters done [16:17:33]requested_item shift.num is exist - process it [16:17:33]requested_item shift.opened is exist - process it [16:17:33]req_shift_opened [16:17:33]FM_GetShiftState [16:17:33]SAM_PROTO_GetShiftState [16:17:33]wFMCommunicate request_size=4 [16:17:33]MH_SAM_APDU [16:17:33]CAPDU: 80 13 01 00 [16:17:33]Write to MH i2c: E2 08 00 EA 6D 80 13 01 00 00 00 00 00 D4 [16:17:33]Write i2c OK [16:17:33]MH_I2C_Read... [16:17:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:17:33]Read from MH i2c: E2 [16:17:33]MH_I2C_Read... [16:17:33]Read from MH i2c: E2 0E 00 [16:17:33]MH_I2C_Read... [16:17:33]Read from MH i2c: E2 0E 00 EA 6D 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 33 [16:17:33]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [16:17:33]wFMCommunicate OK [16:17:33]SAM_PROTO_GetShiftState done [16:17:33]FM_GetShiftState done [16:17:33]req_shift_opened done [16:17:33]requested_item shift.open_date is exist - process it [16:17:33]req_shift_open_date [16:17:33]req_shift_open_date done [16:17:33]produce_requested_data done [16:17:33]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187807,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [16:17:33]process_action_free close_receipt [16:17:33]json_value_free [16:17:33]json_value_free done [16:17:33]process_json_proto returns [16:17:33]Send response to host [16:17:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187807,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [16:17:33]free response buf [16:17:33]execute_script done [16:17:33]execute_script returns [16:17:33]free content buf [16:17:33]Sock 9.Close socket [16:17:33]Sock 9.Thread stoped [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:27]OFD Sender: No OFD packet to send [16:19:32]OFD Sender: No OFD packet to send [16:19:37]OFD Sender: No OFD packet to send [16:19:42]OFD Sender: No OFD packet to send [16:19:47]OFD Sender: No OFD packet to send [16:19:52]OFD Sender: No OFD packet to send [16:19:57]OFD Sender: No OFD packet to send [16:20:02]OFD Sender: No OFD packet to send [16:20:07]OFD Sender: No OFD packet to send [16:20:10]accept exits with 8 [16:20:10]New connection [16:20:10]New thread 3067157860 created [16:20:10]Thread 3067014500 joined [16:20:10]Waiting for new connection... [16:20:10] Sock 8.Parse request [16:20:10]Sock 8.Check first char [16:20:10]Sock 8.First char is OK [16:20:10]request: POST /json_proto HTTP/1.0 [16:20:10]Method: POST [16:20:10]URL: /json_proto [16:20:10]Method is POST - this is cgi request [16:20:10]url: /json_proto [16:20:10]query_string will be loaded in cgi processing [16:20:10]execute_cgi json_proto POST (null) [16:20:10]execute_cgi path=json_proto method=POST [16:20:10]POST find Content-Length [16:20:10]Host: 172.17.42.131:8080 [16:20:10]Content-Length: 682 [16:20:10]Content-Type: application/json [16:20:10] [16:20:10]POST finish read [16:20:10]Found Content-Length = 682 [16:20:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209860", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:20:10]execute_script... [16:20:10]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209860", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:20:10]POST & json_proto [16:20:10]process_json_proto [16:20:10]json parsed OK: [16:20:10]protocol is kg_v1.0 [16:20:10]action value=close_receipt [16:20:10]process_action close_receipt [16:20:10]cmd_close_receipt [16:20:10]MH_GetDate [16:20:10]Write to MH i2c: F0 00 00 EB 6D 47 [16:20:10]Write i2c OK [16:20:10]MH_I2C_Read... [16:20:10]Read from MH i2c: F0 [16:20:10]MH_I2C_Read... [16:20:10]Read from MH i2c: F0 09 00 [16:20:10]MH_I2C_Read... [16:20:10]Read from MH i2c: F0 09 00 EB 6D 00 3F 7F 16 67 A0 18 CA 66 73 [16:20:10]GetLastDocTimeStamp 1729527454 [16:20:10]current date 1729527615 [16:20:10]FM_GetShiftState [16:20:10]SAM_PROTO_GetShiftState [16:20:10]wFMCommunicate request_size=4 [16:20:10]MH_SAM_APDU [16:20:10]CAPDU: 80 13 01 00 [16:20:10]Write to MH i2c: E2 08 00 EC 6D 80 13 01 00 00 00 00 00 D6 [16:20:10]Write i2c OK [16:20:10]MH_I2C_Read... [16:20:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:20:10]Read from MH i2c: E2 [16:20:10]MH_I2C_Read... [16:20:10]Read from MH i2c: E2 0E 00 [16:20:10]MH_I2C_Read... [16:20:10]Read from MH i2c: E2 0E 00 EC 6D 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 35 [16:20:10]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [16:20:10]wFMCommunicate OK [16:20:10]SAM_PROTO_GetShiftState done [16:20:10]FM_GetShiftState done [16:20:10]opened in 1729469754 [16:20:10]opened+sec_in_day 1729556154 [16:20:10]quantity*price = 100015 [16:20:10]sum+1 = 100017 [16:20:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 272 21.10.2024 16:20 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 187808 ФПД: 233494880360388 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T162015&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187808&fm=233494880360388&tin=02508201610067®Number=0000000000100030&sum=100000 [16:20:11]StoreToDocumentArchive [16:20:11]shift 460 fd 187808 [16:20:11]save to /storage/0460/doc_00187808 [16:20:11]save last doc name /storage/0460/doc_00187808 to /storage/kkm_last_doc_name [16:20:11]save OK [16:20:11]Clear old archive folders... [16:20:11]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:20:11]tlvbuf is 0126EBE0 [16:20:11]SAM_PROTO_ClearQueue [16:20:11]wFMCommunicate request_size=4 [16:20:11]MH_SAM_APDU [16:20:11]CAPDU: 80 09 00 00 [16:20:11]Write to MH i2c: E2 08 00 F9 6D 80 09 00 00 00 00 00 00 D8 [16:20:11]Write i2c OK [16:20:11]MH_I2C_Read... [16:20:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:20:11]Read from MH i2c: E2 [16:20:11]MH_I2C_Read... [16:20:11]Read from MH i2c: E2 03 00 [16:20:11]MH_I2C_Read... [16:20:11]Read from MH i2c: E2 03 00 F9 6D 00 90 00 DA [16:20:11]RAPDU: 90 00 [16:20:11]wFMCommunicate OK [16:20:11]SAM_PROTO_ClearQueue done [16:20:11]KKMCreateOFDPacket [16:20:11]OFDProtocolAddRootSTLVToBuf [16:20:11]FM_MakeSignedData [16:20:11]FM_MakeSignedData [16:20:11]SAM_PROTO_SignData [16:20:11]wFMCommunicate request_size=4 [16:20:11]MH_SAM_APDU [16:20:11]CAPDU: 80 0D 01 02 [16:20:11]Write to MH i2c: E2 08 00 FA 6D 80 0D 01 02 00 00 00 00 E0 [16:20:11]Write i2c OK [16:20:11]MH_I2C_Read... [16:20:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:20:11]Read from MH i2c: E2 [16:20:11]MH_I2C_Read... [16:20:11]Read from MH i2c: E2 03 00 [16:20:11]MH_I2C_Read... [16:20:11]Read from MH i2c: E2 03 00 FA 6D 00 90 00 DB [16:20:11]RAPDU: 90 00 [16:20:11]wFMCommunicate OK [16:20:11]wFMCommunicate request_size=255 [16:20:11]MH_SAM_APDU [16:20: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 33 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 10 01 00 00 F4 03 04 00 3F 7F 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 A0 DD 02 00 35 04 06 00 D4 [16:20:11]Write to MH i2c: E2 02 01 FB 6D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 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 10 01 00 00 F4 03 04 00 3F 7F 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 A0 DD 02 00 35 04 06 00 D4 00 00 B9 [16:20:11]Write i2c OK [16:20:11]MH_I2C_Read... [16:20:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:20:12]Read from MH i2c: E2 [16:20:12]MH_I2C_Read... [16:20:12]Read from MH i2c: E2 03 00 [16:20:12]MH_I2C_Read... [16:20:12]Read from MH i2c: E2 03 00 FB 6D 00 90 00 DC [16:20:12]RAPDU: 90 00 [16:20:12]wFMCommunicate OK [16:20:12]wFMCommunicate request_size=10 [16:20:12]MH_SAM_APDU [16:20:12]CAPDU: 80 0D 02 02 05 5C C3 66 97 C4 [16:20:12]Write to MH i2c: E2 0D 00 FC 6D 80 0D 02 02 05 00 5C C3 66 97 C4 00 00 CD [16:20:12]Write i2c OK [16:20:12]MH_I2C_Read... [16:20:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:20:12]Read from MH i2c: E2 [16:20:12]MH_I2C_Read... [16:20:12]Read from MH i2c: E2 03 00 [16:20:12]MH_I2C_Read... [16:20:12]Read from MH i2c: E2 03 00 FC 6D 00 90 00 DD [16:20:12]RAPDU: 90 00 [16:20:12]wFMCommunicate OK [16:20:12]wFMCommunicate request_size=4 [16:20:12]MH_SAM_APDU [16:20:12]CAPDU: 80 0D 03 02 [16:20:12]Write to MH i2c: E2 08 00 FD 6D 80 0D 03 02 00 00 00 00 E5 [16:20:12]Write i2c OK [16:20:12]MH_I2C_Read... [16:20:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:20:12]Read from MH i2c: E2 [16:20:12]MH_I2C_Read... [16:20:12]Read from MH i2c: E2 0B 00 [16:20:12]MH_I2C_Read... [16:20:12]Read from MH i2c: E2 0B 00 FD 6D 00 4B D5 DC 0A 41 1E D9 39 90 00 5D [16:20:12]RAPDU: 4B D5 DC 0A 41 1E D9 39 90 00 [16:20:12]wFMCommunicate OK [16:20:12]SAM_PROTO_SignData done [16:20:12]FM_MakeSignedData done [16:20:12]CreateOFDProtocolMessage [16:20:12]wFMCommunicate request_size=4 [16:20:12]MH_SAM_APDU [16:20:12]CAPDU: 80 11 00 00 [16:20:12]Write to MH i2c: E2 08 00 FE 6D 80 11 00 00 00 00 00 00 E5 [16:20:12]Write i2c OK [16:20:12]MH_I2C_Read... [16:20:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:20:12]Read from MH i2c: E2 [16:20:12]MH_I2C_Read... [16:20:12]Read from MH i2c: E2 17 00 [16:20:12]MH_I2C_Read... [16:20:12]Read from MH i2c: E2 17 00 FE 6D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 33 [16:20:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [16:20:12]wFMCommunicate OK [16:20:12]CreateOFDProtocolMessage done [16:20:12]OFDSenderStorePacket 187808 [16:20:12]StoreOFDPacket docnum=187808 [16:20:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 00 4A 07 01 D4 90 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 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 10 01 00 00 F4 03 04 00 3F 7F 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 A0 DD 02 00 35 04 06 00 D4 5C C3 66 97 C4 4B D5 DC 0A 41 1E D9 39 [16:20:12]CheckFolder [16:20:12]dirname=/storage/ofd_packets [16:20:12]CheckFolder done [16:20:12]ProducePacketName [16:20:12]name=ofd_packets/00187808 [16:20:12]NVStorageSaveData ofd_packets/00187808 [16:20:12]File name is /storage/ofd_packets/00187808 [16:20:12]Write 301 bytes [16:20:12]NVStorageSaveData done [16:20:12]OFDSenderStorePacket done [16:20:12]KKMCreateOFDPacket done [16:20:12]NVStorageSaveData kkm_last_timestamp [16:20:12]File name is /storage/kkm_last_timestamp [16:20:12]Write 4 bytes [16:20:12]NVStorageSaveData done [16:20:12]ExternCall_PrintAddStr [16:20:12]wPrintStart [16:20:12]Write to MH i2c: 01 00 00 FF 6D 6C [16:20:12]Write i2c OK [16:20:12]MH_I2C_Read... [16:20:12]Read from MH i2c: 01 [16:20:12]MH_I2C_Read... [16:20:12]Read from MH i2c: 01 07 00 [16:20:12]MH_I2C_Read... [16:20:12]Read from MH i2c: 01 07 00 FF 6D 00 00 00 00 00 FF 0F 81 [16:20:12]RasterBufferAndPrint [16:20:12]line Счет N : (1)209860 [16:20:12]line ИНН: 02508201610067 [16:20:12]line Контрольно-Кассовый Чек [16:20:12]line ПРОДАЖА [16:20:12]line ТРК (МРК, ГНК) : 32 [16:20:12]line Товар: 2710124130 [16:20:12]line Аи-92-К-3 [16:20:12]line 14.950 * 66.90 [16:20:12]line = 1000.16 [16:20:12]line НДС 12% НСП 1% [16:20:12]line > о реализуемом товаре [16:20:12]line ОКРУГЛЕНИЕ: -0.16 [16:20:12]line ИТОГО: 1000.00 [16:20:12]line Внесено: 1000.00 [16:20:12]line СДАЧА: 0.00 [16:20:12]line НСП 1% : 8.85 [16:20:12]line НДС 12% : 106.21 [16:20:12]line Наличными: 1000.00 [16:20:12]line Безнал.: 0.00 [16:20:12]line Место: АЗС № 86 "Партнер Нефть" [16:20:12]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [16:20:12]line СНО: Общий режим [16:20:12]line Чек 272 21.10.2024 16:20 [16:20:12]line Смена: 460 ФФД: 1.0 [16:20:12]line ЗНМ: 0300000155 [16:20:12]line РНМ: 0000000000100030 [16:20:12]line Версия ККМ: 001 [16:20:12]line ФМ: 0000000000965340 [16:20:12]line ФД: 187808 [16:20:12]line ФПД: 233494880360388 [16:20:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T162015&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187808&fm=233494880360388&tin=02508201610067®Number=0000000000100030&sum=100000 [16:20:12]written 0, free lines is 4095 [16:20:12]OFD Sender: Processing packet 187808 [packets to send 1062, broken 1061] [16:20:12]ProducePacketName [16:20:12]name=ofd_packets/00187808 [16:20:12]OFD Sender: To server: pG, [16:20:12]CommunicateWithHost lk.salyk.kg:30040 [16:20:12]ConnectInit lk.salyk.kg [16:20:12]Connected sock=11 [16:20:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 00 4A 07 01 D4 90 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 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 10 01 00 00 F4 03 04 00 3F 7F 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 A0 DD 02 00 35 04 06 00 D4 5C C3 66 97 C4 4B D5 DC 0A 41 1E D9 39 [16:20:12]Write to MH i2c: 01 00 00 2A 6E 98 [16:20:12]Write i2c OK [16:20:12]MH_I2C_Read... [16:20:12]Read from MH i2c: 01 [16:20:12]MH_I2C_Read... [16:20:12]Read from MH i2c: 01 07 00 [16:20:12]MH_I2C_Read... [16:20:12]Read from MH i2c: 01 07 00 2A 6E 00 00 00 00 00 69 0C 14 [16:20:12]RasterBufferAndPrint [16:20:12]line [16:20:12]line [16:20:12]line [16:20:12]line [16:20:12]line [16:20:12]written 0, free lines is 3180 [16:20:12]MH_Cut [16:20:12]Write to MH i2c: D1 01 00 31 6E 01 71 [16:20:12]Write i2c OK [16:20:12]MH_I2C_Read... [16:20:12]Read from MH i2c: D1 [16:20:12]MH_I2C_Read... [16:20:12]Read from MH i2c: D1 01 00 [16:20:12]MH_I2C_Read... [16:20:12]Read from MH i2c: D1 01 00 31 6E 00 70 [16:20:12]Write to MH i2c: 01 00 00 32 6E A0 [16:20:12]Write i2c OK [16:20:12]MH_I2C_Read... [16:20:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 3C 61 47 00 0C EB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 A0 DD 02 00 F4 03 04 00 2E 29 16 67 B6 04 01 00 00 7C 05 BE 61 AB 75 BC EE [16:20:13]CommunicateWithHost err = 0 [16:20:13]CheckOFDResponse [16:20:13]1017 (14) - 77093643461234 [16:20:13]1041 (16) - 0000000000965340 [16:20:13]1040 (4) - 187808 [16:20:13]1012 (4) - 21.10.2024 10:13 [16:20:13]1206 (1) - 0 [16:20:13]OFD Sender: Remove packet 187808 [16:20:13]ProducePacketName [16:20:13]name=ofd_packets/00187808 [16:20:13]NVStorageDeleteData [16:20:13]OFD Sender: No OFD packet to send [16:20:13]*** Cut start [16:20:13]*** Partial cut [16:20:13]*** CUTSNS_PIN = 1 [16:20:14]*** CUTSNS_PIN = 0 [16:20:14]*** Brake cut motor [16:20:14]Read from MH i2c: 01 [16:20:14]MH_I2C_Read... [16:20:14]Read from MH i2c: 01 07 00 [16:20:14]MH_I2C_Read... [16:20:14]*** Stop cut motor [16:20:14]*** Cut end [16:20:14]Read from MH i2c: 01 07 00 32 6E 00 00 00 00 00 FF 0F B5 [16:20:14]process_action close_receipt done [16:20:14]requested_data is exist [16:20:14]produce_requested_data [16:20:14]requested_item fm.sn is exist - process it [16:20:14]wFMCommunicate request_size=4 [16:20:14]MH_SAM_APDU [16:20:14]CAPDU: 80 11 00 00 [16:20:14]Write to MH i2c: E2 08 00 33 6E 80 11 00 00 00 00 00 00 1B [16:20:14]Write i2c OK [16:20:14]MH_I2C_Read... [16:20:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:20:14]Read from MH i2c: E2 [16:20:14]MH_I2C_Read... [16:20:14]Read from MH i2c: E2 17 00 [16:20:14]MH_I2C_Read... [16:20:14]Read from MH i2c: E2 17 00 33 6E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 69 [16:20:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [16:20:14]wFMCommunicate OK [16:20:14]requested_item fd.num is exist - process it [16:20:14]SAM_PROTO_GetFieldsCounters [16:20:14]wFMCommunicate request_size=4 [16:20:14]MH_SAM_APDU [16:20:14]CAPDU: 80 13 00 00 [16:20:14]Write to MH i2c: E2 08 00 34 6E 80 13 00 00 00 00 00 00 1E [16:20:14]Write i2c OK [16:20:14]MH_I2C_Read... [16:20:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:20:14]Read from MH i2c: E2 [16:20:14]MH_I2C_Read... [16:20:14]Read from MH i2c: E2 62 00 [16:20:14]MH_I2C_Read... [16:20:14]Read from MH i2c: E2 62 00 34 6E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 A0 DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 10 01 00 00 5E 04 04 00 10 01 00 00 57 04 04 00 11 01 00 00 19 04 04 00 00 00 00 00 90 00 A4 [16:20:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 A0 DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 10 01 00 00 5E 04 04 00 10 01 00 00 57 04 04 00 11 01 00 00 19 04 04 00 00 00 00 00 90 00 [16:20:14]wFMCommunicate OK [16:20:14]SAM_PROTO_GetFieldsCounters done [16:20:14]requested_item shift.num is exist - process it [16:20:14]requested_item shift.opened is exist - process it [16:20:14]req_shift_opened [16:20:14]FM_GetShiftState [16:20:14]SAM_PROTO_GetShiftState [16:20:14]wFMCommunicate request_size=4 [16:20:14]MH_SAM_APDU [16:20:14]CAPDU: 80 13 01 00 [16:20:14]Write to MH i2c: E2 08 00 35 6E 80 13 01 00 00 00 00 00 20 [16:20:14]Write i2c OK [16:20:14]MH_I2C_Read... [16:20:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:20:14]Read from MH i2c: E2 [16:20:14]MH_I2C_Read... [16:20:14]Read from MH i2c: E2 0E 00 [16:20:14]MH_I2C_Read... [16:20:14]Read from MH i2c: E2 0E 00 35 6E 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 7F [16:20:14]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [16:20:14]wFMCommunicate OK [16:20:14]SAM_PROTO_GetShiftState done [16:20:14]FM_GetShiftState done [16:20:14]req_shift_opened done [16:20:14]requested_item shift.open_date is exist - process it [16:20:14]req_shift_open_date [16:20:14]req_shift_open_date done [16:20:14]produce_requested_data done [16:20:14]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187808,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [16:20:14]process_action_free close_receipt [16:20:14]json_value_free [16:20:14]json_value_free done [16:20:14]process_json_proto returns [16:20:14]Send response to host [16:20:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187808,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [16:20:14]free response buf [16:20:14]execute_script done [16:20:14]execute_script returns [16:20:14]free content buf [16:20:14]Sock 8.Close socket [16:20:14]Sock 8.Thread stoped [16:20:18]OFD Sender: No OFD packet to send [16:20:23]OFD Sender: No OFD packet to send [16:20:28]OFD Sender: No OFD packet to send [16:20:33]OFD Sender: No OFD packet to send [16:20:38]OFD Sender: No OFD packet to send [16:20:43]OFD Sender: No OFD packet to send [16:20:48]OFD Sender: No OFD packet to send [16:20:53]OFD Sender: No OFD packet to send [16:20:58]OFD Sender: No OFD packet to send [16:21:03]OFD Sender: No OFD packet to send [16:21:08]OFD Sender: No OFD packet to send [16:21:12]accept exits with 9 [16:21:12]New connection [16:21:12]New thread 3067014500 created [16:21:12]Thread 3067157860 joined [16:21:12]Waiting for new connection... [16:21:12] Sock 9.Parse request [16:21:12]Sock 9.Check first char [16:21:12]Sock 9.First char is OK [16:21:12]request: POST /json_proto HTTP/1.0 [16:21:12]Method: POST [16:21:12]URL: /json_proto [16:21:12]Method is POST - this is cgi request [16:21:12]url: /json_proto [16:21:12]query_string will be loaded in cgi processing [16:21:12]execute_cgi json_proto POST (null) [16:21:12]execute_cgi path=json_proto method=POST [16:21:12]POST find Content-Length [16:21:12]Host: 172.17.42.131:8080 [16:21:12]Content-Length: 678 [16:21:12]Content-Type: application/json [16:21:12] [16:21:12]POST finish read [16:21:12]Found Content-Length = 678 [16:21:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209861", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 10.020, "sum" : 670.34, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 670.00, "total" : 670.00, "payments": [ { "type": 0, "sum" : 670.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:21:12]execute_script... [16:21: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)209861", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 10.020, "sum" : 670.34, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 670.00, "total" : 670.00, "payments": [ { "type": 0, "sum" : 670.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:21:12]POST & json_proto [16:21:12]process_json_proto [16:21:12]json parsed OK: [16:21:12]protocol is kg_v1.0 [16:21:12]action value=close_receipt [16:21:12]process_action close_receipt [16:21:12]cmd_close_receipt [16:21:12]MH_GetDate [16:21:12]Write to MH i2c: F0 00 00 36 6E 93 [16:21:12]Write i2c OK [16:21:12]MH_I2C_Read... [16:21:12]Read from MH i2c: F0 [16:21:12]MH_I2C_Read... [16:21:12]Read from MH i2c: F0 09 00 [16:21:12]MH_I2C_Read... [16:21:12]Read from MH i2c: F0 09 00 36 6E 00 7C 7F 16 67 A0 18 CA 66 FC [16:21:12]GetLastDocTimeStamp 1729527615 [16:21:12]current date 1729527676 [16:21:12]FM_GetShiftState [16:21:12]SAM_PROTO_GetShiftState [16:21:12]wFMCommunicate request_size=4 [16:21:12]MH_SAM_APDU [16:21:12]CAPDU: 80 13 01 00 [16:21:12]Write to MH i2c: E2 08 00 37 6E 80 13 01 00 00 00 00 00 22 [16:21:12]Write i2c OK [16:21:12]MH_I2C_Read... [16:21:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:21:12]Read from MH i2c: E2 [16:21:12]MH_I2C_Read... [16:21:12]Read from MH i2c: E2 0E 00 [16:21:12]MH_I2C_Read... [16:21:12]Read from MH i2c: E2 0E 00 37 6E 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 81 [16:21:12]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [16:21:12]wFMCommunicate OK [16:21:12]SAM_PROTO_GetShiftState done [16:21:12]FM_GetShiftState done [16:21:12]opened in 1729469754 [16:21:12]opened+sec_in_day 1729556154 [16:21:12]quantity*price = 67033 [16:21:12]sum+1 = 67035 [16:21:12]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.34 ИТОГО: 670.00 Внесено: 670.00 СДАЧА: 0.00 НСП 1% : 5.93 НДС 12% : 71.19 Наличными: 670.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 273 21.10.2024 16:21 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 187809 ФПД: 273973471767663 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T162116&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187809&fm=273973471767663&tin=02508201610067®Number=0000000000100030&sum=67000 [16:21:13]StoreToDocumentArchive [16:21:13]shift 460 fd 187809 [16:21:13]save to /storage/0460/doc_00187809 [16:21:13]save last doc name /storage/0460/doc_00187809 to /storage/kkm_last_doc_name [16:21:13]save OK [16:21:13]Clear old archive folders... [16:21:13]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:21:13]tlvbuf is 01121650 [16:21:13]SAM_PROTO_ClearQueue [16:21:13]wFMCommunicate request_size=4 [16:21:13]MH_SAM_APDU [16:21:13]CAPDU: 80 09 00 00 [16:21:13]Write to MH i2c: E2 08 00 44 6E 80 09 00 00 00 00 00 00 24 [16:21:13]Write i2c OK [16:21:13]MH_I2C_Read... [16:21:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:21:13]Read from MH i2c: E2 [16:21:13]MH_I2C_Read... [16:21:13]Read from MH i2c: E2 03 00 [16:21:13]MH_I2C_Read... [16:21:13]Read from MH i2c: E2 03 00 44 6E 00 90 00 26 [16:21:13]RAPDU: 90 00 [16:21:13]wFMCommunicate OK [16:21:13]SAM_PROTO_ClearQueue done [16:21:13]KKMCreateOFDPacket [16:21:13]OFDProtocolAddRootSTLVToBuf [16:21:13]FM_MakeSignedData [16:21:13]FM_MakeSignedData [16:21:13]SAM_PROTO_SignData [16:21:13]wFMCommunicate request_size=4 [16:21:13]MH_SAM_APDU [16:21:13]CAPDU: 80 0D 01 02 [16:21:13]Write to MH i2c: E2 08 00 45 6E 80 0D 01 02 00 00 00 00 2C [16:21:13]Write i2c OK [16:21:13]MH_I2C_Read... [16:21:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:21:13]Read from MH i2c: E2 [16:21:13]MH_I2C_Read... [16:21:13]Read from MH i2c: E2 03 00 [16:21:13]MH_I2C_Read... [16:21:13]Read from MH i2c: E2 03 00 45 6E 00 90 00 27 [16:21:13]RAPDU: 90 00 [16:21:13]wFMCommunicate OK [16:21:13]wFMCommunicate request_size=255 [16:21:13]MH_SAM_APDU [16:21: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 33 FF 03 08 00 03 24 27 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 DA 05 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 05 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 51 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 1B 00 00 00 00 07 04 06 00 B8 05 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 01 00 00 F4 03 04 00 7C 7F 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 A1 DD 02 00 35 04 06 00 F9 [16:21:13]Write to MH i2c: E2 02 01 46 6E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 24 27 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 DA 05 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 05 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 51 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 1B 00 00 00 00 07 04 06 00 B8 05 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 01 00 00 F4 03 04 00 7C 7F 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 A1 DD 02 00 35 04 06 00 F9 00 00 0A [16:21:13]Write i2c OK [16:21:13]MH_I2C_Read... [16:21:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:21:13]Read from MH i2c: E2 [16:21:13]MH_I2C_Read... [16:21:13]Read from MH i2c: E2 03 00 [16:21:13]MH_I2C_Read... [16:21:13]Read from MH i2c: E2 03 00 46 6E 00 90 00 28 [16:21:13]RAPDU: 90 00 [16:21:13]wFMCommunicate OK [16:21:13]wFMCommunicate request_size=10 [16:21:13]MH_SAM_APDU [16:21:13]CAPDU: 80 0D 02 02 05 2D 6B 76 6C 6F [16:21:13]Write to MH i2c: E2 0D 00 47 6E 80 0D 02 02 05 00 2D 6B 76 6C 6F 00 00 22 [16:21:13]Write i2c OK [16:21:13]MH_I2C_Read... [16:21:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:21:13]Read from MH i2c: E2 [16:21:13]MH_I2C_Read... [16:21:13]Read from MH i2c: E2 03 00 [16:21:13]MH_I2C_Read... [16:21:13]Read from MH i2c: E2 03 00 47 6E 00 90 00 29 [16:21:13]RAPDU: 90 00 [16:21:13]wFMCommunicate OK [16:21:13]wFMCommunicate request_size=4 [16:21:13]MH_SAM_APDU [16:21:13]CAPDU: 80 0D 03 02 [16:21:13]Write to MH i2c: E2 08 00 48 6E 80 0D 03 02 00 00 00 00 31 [16:21:13]Write i2c OK [16:21:13]MH_I2C_Read... [16:21:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:21:13]Read from MH i2c: E2 [16:21:13]MH_I2C_Read... [16:21:13]Read from MH i2c: E2 0B 00 [16:21:13]MH_I2C_Read... [16:21:13]Read from MH i2c: E2 0B 00 48 6E 00 9B DB FD E6 3D 43 41 E2 90 00 2E [16:21:13]RAPDU: 9B DB FD E6 3D 43 41 E2 90 00 [16:21:13]wFMCommunicate OK [16:21:13]SAM_PROTO_SignData done [16:21:13]FM_MakeSignedData done [16:21:13]CreateOFDProtocolMessage [16:21:13]wFMCommunicate request_size=4 [16:21:13]MH_SAM_APDU [16:21:13]CAPDU: 80 11 00 00 [16:21:13]Write to MH i2c: E2 08 00 49 6E 80 11 00 00 00 00 00 00 31 [16:21:13]Write i2c OK [16:21:13]MH_I2C_Read... [16:21:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:21:13]Read from MH i2c: E2 [16:21:13]MH_I2C_Read... [16:21:13]Read from MH i2c: E2 17 00 [16:21:13]MH_I2C_Read... [16:21:13]Read from MH i2c: E2 17 00 49 6E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 7F [16:21:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [16:21:13]wFMCommunicate OK [16:21:13]CreateOFDProtocolMessage done [16:21:13]OFDSenderStorePacket 187809 [16:21:13]StoreOFDPacket docnum=187809 [16:21:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 8B A1 07 01 16 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 33 FF 03 08 00 03 24 27 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 DA 05 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 05 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 51 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 1B 00 00 00 00 07 04 06 00 B8 05 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 01 00 00 F4 03 04 00 7C 7F 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 A1 DD 02 00 35 04 06 00 F9 2D 6B 76 6C 6F 9B DB FD E6 3D 43 41 E2 [16:21:13]CheckFolder [16:21:13]dirname=/storage/ofd_packets [16:21:13]CheckFolder done [16:21:13]ProducePacketName [16:21:13]name=ofd_packets/00187809 [16:21:13]NVStorageSaveData ofd_packets/00187809 [16:21:13]File name is /storage/ofd_packets/00187809 [16:21:13]Write 301 bytes [16:21:13]NVStorageSaveData done [16:21:13]OFDSenderStorePacket done [16:21:13]KKMCreateOFDPacket done [16:21:13]NVStorageSaveData kkm_last_timestamp [16:21:13]File name is /storage/kkm_last_timestamp [16:21:13]Write 4 bytes [16:21:13]NVStorageSaveData done [16:21:13]ExternCall_PrintAddStr [16:21:13]wPrintStart [16:21:13]Write to MH i2c: 01 00 00 4A 6E B8 [16:21:13]Write i2c OK [16:21:13]MH_I2C_Read... [16:21:13]Read from MH i2c: 01 [16:21:13]MH_I2C_Read... [16:21:13]Read from MH i2c: 01 07 00 [16:21:13]MH_I2C_Read... [16:21:13]Read from MH i2c: 01 07 00 4A 6E 00 00 00 00 00 FF 0F CD [16:21:13]RasterBufferAndPrint [16:21:13]line Счет N : (1)209861 [16:21:13]line ИНН: 02508201610067 [16:21:13]line Контрольно-Кассовый Чек [16:21:13]line ПРОДАЖА [16:21:13]line ТРК (МРК, ГНК) : 22 [16:21:13]line Товар: 2710124130 [16:21:13]line Аи-92-К-3 [16:21:13]line 10.020 * 66.90 [16:21:13]line = 670.34 [16:21:13]line НДС 12% НСП 1% [16:21:13]line > о реализуемом товаре [16:21:13]line ОКРУГЛЕНИЕ: -0.34 [16:21:13]line ИТОГО: 670.00 [16:21:13]line Внесено: 670.00 [16:21:13]line СДАЧА: 0.00 [16:21:13]line НСП 1% : 5.93 [16:21:13]line НДС 12% : 71.19 [16:21:13]line Наличными: 670.00 [16:21:13]line Безнал.: 0.00 [16:21:13]line Место: АЗС № 86 "Партнер Нефть" [16:21:13]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [16:21:13]line СНО: Общий режим [16:21:13]line Чек 273 21.10.2024 16:21 [16:21:13]line Смена: 460 ФФД: 1.0 [16:21:13]line ЗНМ: 0300000155 [16:21:13]line РНМ: 0000000000100030 [16:21:13]line Версия ККМ: 001 [16:21:13]line ФМ: 0000000000965340 [16:21:13]line ФД: 187809 [16:21:13]line ФПД: 273973471767663 [16:21:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T162116&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187809&fm=273973471767663&tin=02508201610067®Number=0000000000100030&sum=67000 [16:21:13]written 0, free lines is 4095 [16:21:13]OFD Sender: Processing packet 187809 [packets to send 1062, broken 1061] [16:21:13]ProducePacketName [16:21:13]name=ofd_packets/00187809 [16:21:13]OFD Sender: To server: pG, [16:21:13]CommunicateWithHost lk.salyk.kg:30040 [16:21:13]ConnectInit lk.salyk.kg [16:21:14]Write to MH i2c: 01 00 00 75 6E E3 [16:21:14]Write i2c OK [16:21:14]MH_I2C_Read... [16:21:14]Read from MH i2c: 01 [16:21:14]MH_I2C_Read... [16:21:14]Read from MH i2c: 01 07 00 [16:21:14]MH_I2C_Read... [16:21:14]Read from MH i2c: 01 07 00 75 6E 00 00 00 00 00 68 0C 5E [16:21:14]RasterBufferAndPrint [16:21:14]line [16:21:14]line [16:21:14]line [16:21:14]line [16:21:14]line [16:21:14]written 0, free lines is 3179 [16:21:14]MH_Cut [16:21:14]Write to MH i2c: D1 01 00 7C 6E 01 BC [16:21:14]Write i2c OK [16:21:14]MH_I2C_Read... [16:21:14]Read from MH i2c: D1 [16:21:14]MH_I2C_Read... [16:21:14]Read from MH i2c: D1 01 00 [16:21:14]MH_I2C_Read... [16:21:14]Read from MH i2c: D1 01 00 7C 6E 00 BB [16:21:14]Write to MH i2c: 01 00 00 7D 6E EB [16:21:14]Write i2c OK [16:21:14]MH_I2C_Read... [16:21:14]Connected sock=11 [16:21:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 8B A1 07 01 16 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 33 FF 03 08 00 03 24 27 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 DA 05 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 05 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 51 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 1B 00 00 00 00 07 04 06 00 B8 05 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 01 00 00 F4 03 04 00 7C 7F 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 A1 DD 02 00 35 04 06 00 F9 2D 6B 76 6C 6F 9B DB FD E6 3D 43 41 E2 [16:21:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 1D 91 47 00 7F FB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 A1 DD 02 00 F4 03 04 00 6C 29 16 67 B6 04 01 00 00 D0 0E 80 13 CF D8 47 4D [16:21:14]CommunicateWithHost err = 0 [16:21:14]CheckOFDResponse [16:21:14]1017 (14) - 77093643461234 [16:21:14]1041 (16) - 0000000000965340 [16:21:14]1040 (4) - 187809 [16:21:14]1012 (4) - 21.10.2024 10:14 [16:21:14]1206 (1) - 0 [16:21:14]OFD Sender: Remove packet 187809 [16:21:14]ProducePacketName [16:21:14]name=ofd_packets/00187809 [16:21:14]NVStorageDeleteData [16:21:15]OFD Sender: No OFD packet to send [16:21:15]*** Cut start [16:21:15]*** Partial cut [16:21:15]*** CUTSNS_PIN = 1 [16:21:15]*** CUTSNS_PIN = 0 [16:21:15]*** Brake cut motor [16:21:16]Read from MH i2c: 01 [16:21:16]MH_I2C_Read... [16:21:16]*** Stop cut motor [16:21:16]*** Cut end [16:21:16]Read from MH i2c: 01 07 00 [16:21:16]MH_I2C_Read... [16:21:16]Read from MH i2c: 01 07 00 7D 6E 00 00 00 00 00 FF 0F 00 [16:21:16]process_action close_receipt done [16:21:16]requested_data is exist [16:21:16]produce_requested_data [16:21:16]requested_item fm.sn is exist - process it [16:21:16]wFMCommunicate request_size=4 [16:21:16]MH_SAM_APDU [16:21:16]CAPDU: 80 11 00 00 [16:21:16]Write to MH i2c: E2 08 00 7E 6E 80 11 00 00 00 00 00 00 66 [16:21:16]Write i2c OK [16:21:16]MH_I2C_Read... [16:21:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:21:16]Read from MH i2c: E2 [16:21:16]MH_I2C_Read... [16:21:16]Read from MH i2c: E2 17 00 [16:21:16]MH_I2C_Read... [16:21:16]Read from MH i2c: E2 17 00 7E 6E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 B4 [16:21:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [16:21:16]wFMCommunicate OK [16:21:16]requested_item fd.num is exist - process it [16:21:16]SAM_PROTO_GetFieldsCounters [16:21:16]wFMCommunicate request_size=4 [16:21:16]MH_SAM_APDU [16:21:16]CAPDU: 80 13 00 00 [16:21:16]Write to MH i2c: E2 08 00 7F 6E 80 13 00 00 00 00 00 00 69 [16:21:16]Write i2c OK [16:21:16]MH_I2C_Read... [16:21:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:21:16]Read from MH i2c: E2 [16:21:16]MH_I2C_Read... [16:21:16]Read from MH i2c: E2 62 00 [16:21:16]MH_I2C_Read... [16:21:16]Read from MH i2c: E2 62 00 7F 6E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 A1 DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 11 01 00 00 5E 04 04 00 11 01 00 00 57 04 04 00 12 01 00 00 19 04 04 00 00 00 00 00 90 00 F3 [16:21:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 A1 DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 11 01 00 00 5E 04 04 00 11 01 00 00 57 04 04 00 12 01 00 00 19 04 04 00 00 00 00 00 90 00 [16:21:16]wFMCommunicate OK [16:21:16]SAM_PROTO_GetFieldsCounters done [16:21:16]requested_item shift.num is exist - process it [16:21:16]requested_item shift.opened is exist - process it [16:21:16]req_shift_opened [16:21:16]FM_GetShiftState [16:21:16]SAM_PROTO_GetShiftState [16:21:16]wFMCommunicate request_size=4 [16:21:16]MH_SAM_APDU [16:21:16]CAPDU: 80 13 01 00 [16:21:16]Write to MH i2c: E2 08 00 80 6E 80 13 01 00 00 00 00 00 6B [16:21:16]Write i2c OK [16:21:16]MH_I2C_Read... [16:21:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:21:16]Read from MH i2c: E2 [16:21:16]MH_I2C_Read... [16:21:16]Read from MH i2c: E2 0E 00 [16:21:16]MH_I2C_Read... [16:21:16]Read from MH i2c: E2 0E 00 80 6E 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 CA [16:21:16]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [16:21:16]wFMCommunicate OK [16:21:16]SAM_PROTO_GetShiftState done [16:21:16]FM_GetShiftState done [16:21:16]req_shift_opened done [16:21:16]requested_item shift.open_date is exist - process it [16:21:16]req_shift_open_date [16:21:16]req_shift_open_date done [16:21:16]produce_requested_data done [16:21:16]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187809,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [16:21:16]process_action_free close_receipt [16:21:16]json_value_free [16:21:16]json_value_free done [16:21:16]process_json_proto returns [16:21:16]Send response to host [16:21:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187809,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [16:21:16]free response buf [16:21:16]execute_script done [16:21:16]execute_script returns [16:21:16]free content buf [16:21:16]Sock 9.Close socket [16:21:16]Sock 9.Thread stoped [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:16]OFD Sender: No OFD packet to send [16:24:21]OFD Sender: No OFD packet to send [16:24:26]OFD Sender: No OFD packet to send [16:24:31]OFD Sender: No OFD packet to send [16:24:36]OFD Sender: No OFD packet to send [16:24:41]OFD Sender: No OFD packet to send [16:24:46]OFD Sender: No OFD packet to send [16:24:51]OFD Sender: No OFD packet to send [16:24:56]OFD Sender: No OFD packet to send [16:25:01]OFD Sender: No OFD packet to send [16:25:06]OFD Sender: No OFD packet to send [16:25:11]OFD Sender: No OFD packet to send [16:25:16]OFD Sender: No OFD packet to send [16:25:21]OFD Sender: No OFD packet to send [16:25:26]OFD Sender: No OFD packet to send [16:25:31]OFD Sender: No OFD packet to send [16:25:36]OFD Sender: No OFD packet to send [16:25:41]OFD Sender: No OFD packet to send [16:25:46]OFD Sender: No OFD packet to send [16:25:51]OFD Sender: No OFD packet to send [16:25:56]OFD Sender: No OFD packet to send [16:26:01]OFD Sender: No OFD packet to send [16:26:06]OFD Sender: No OFD packet to send [16:26:11]OFD Sender: No OFD packet to send [16:26:16]OFD Sender: No OFD packet to send [16:26:21]OFD Sender: No OFD packet to send [16:26:26]OFD Sender: No OFD packet to send [16:26:31]OFD Sender: No OFD packet to send [16:26:36]OFD Sender: No OFD packet to send [16:26:41]OFD Sender: No OFD packet to send [16:26:46]OFD Sender: No OFD packet to send [16:26:51]OFD Sender: No OFD packet to send [16:26:56]OFD Sender: No OFD packet to send [16:27:01]OFD Sender: No OFD packet to send [16:27:06]OFD Sender: No OFD packet to send [16:27:11]OFD Sender: No OFD packet to send [16:27:16]OFD Sender: No OFD packet to send [16:27:21]OFD Sender: No OFD packet to send [16:27:26]OFD Sender: No OFD packet to send [16:27:31]OFD Sender: No OFD packet to send [16:27:36]OFD Sender: No OFD packet to send [16:27:41]OFD Sender: No OFD packet to send [16:27:46]OFD Sender: No OFD packet to send [16:27:51]OFD Sender: No OFD packet to send [16:27:56]OFD Sender: No OFD packet to send [16:28:01]OFD Sender: No OFD packet to send [16:28:07]OFD Sender: No OFD packet to send [16:28:12]OFD Sender: No OFD packet to send [16:28:17]OFD Sender: No OFD packet to send [16:28:22]OFD Sender: No OFD packet to send [16:28:27]OFD Sender: No OFD packet to send [16:28:32]OFD Sender: No OFD packet to send [16:28:37]OFD Sender: No OFD packet to send [16:28:42]OFD Sender: No OFD packet to send [16:28:47]OFD Sender: No OFD packet to send [16:28:52]OFD Sender: No OFD packet to send [16:28:57]OFD Sender: No OFD packet to send [16:29:02]OFD Sender: No OFD packet to send [16:29:07]OFD Sender: No OFD packet to send [16:29:12]OFD Sender: No OFD packet to send [16:29:17]OFD Sender: No OFD packet to send [16:29:22]OFD Sender: No OFD packet to send [16:29:27]OFD Sender: No OFD packet to send [16:29:32]OFD Sender: No OFD packet to send [16:29:37]OFD Sender: No OFD packet to send [16:29:42]OFD Sender: No OFD packet to send [16:29:47]OFD Sender: No OFD packet to send [16:29:52]OFD Sender: No OFD packet to send [16:29:57]OFD Sender: No OFD packet to send [16:30:02]OFD Sender: No OFD packet to send [16:30:07]OFD Sender: No OFD packet to send [16:30:12]OFD Sender: No OFD packet to send [16:30:17]OFD Sender: No OFD packet to send [16:30:22]OFD Sender: No OFD packet to send [16:30:27]OFD Sender: No OFD packet to send [16:30:32]OFD Sender: No OFD packet to send [16:30:37]OFD Sender: No OFD packet to send [16:30:42]OFD Sender: No OFD packet to send [16:30:47]OFD Sender: No OFD packet to send [16:30:52]OFD Sender: No OFD packet to send [16:30:57]OFD Sender: No OFD packet to send [16:31:02]OFD Sender: No OFD packet to send [16:31:07]OFD Sender: No OFD packet to send [16:31:12]OFD Sender: No OFD packet to send [16:31:17]OFD Sender: No OFD packet to send [16:31:22]OFD Sender: No OFD packet to send [16:31:27]OFD Sender: No OFD packet to send [16:31:32]OFD Sender: No OFD packet to send [16:31:37]OFD Sender: No OFD packet to send [16:31:42]OFD Sender: No OFD packet to send [16:31:47]OFD Sender: No OFD packet to send [16:31: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:31]accept exits with 8 [16:33:31]New connection [16:33:31]New thread 3067157860 created [16:33:31]Thread 3067014500 joined [16:33:31]Waiting for new connection... [16:33:31] Sock 8.Parse request [16:33:31]Sock 8.Check first char [16:33:31]Sock 8.First char is OK [16:33:31]request: POST /json_proto HTTP/1.0 [16:33:31]Method: POST [16:33:31]URL: /json_proto [16:33:31]Method is POST - this is cgi request [16:33:31]url: /json_proto [16:33:31]query_string will be loaded in cgi processing [16:33:31]execute_cgi json_proto POST (null) [16:33:31]execute_cgi path=json_proto method=POST [16:33:31]POST find Content-Length [16:33:31]Host: 172.17.42.131:8080 [16:33:31]Content-Length: 679 [16:33:31]Content-Type: application/json [16:33:31] [16:33:31]POST finish read [16:33:31]Found Content-Length = 679 [16:33:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209862", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 15.750, "sum" : 1200.15, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1200.00, "total" : 1200.00, "payments": [ { "type": 0, "sum" : 1200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:33:31]execute_script... [16:33: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)209862", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 15.750, "sum" : 1200.15, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1200.00, "total" : 1200.00, "payments": [ { "type": 0, "sum" : 1200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:33:31]POST & json_proto [16:33:31]process_json_proto [16:33:31]json parsed OK: [16:33:31]protocol is kg_v1.0 [16:33:31]action value=close_receipt [16:33:31]process_action close_receipt [16:33:31]cmd_close_receipt [16:33:31]MH_GetDate [16:33:31]Write to MH i2c: F0 00 00 81 6E DE [16:33:31]Write i2c OK [16:33:31]MH_I2C_Read... [16:33:31]Read from MH i2c: F0 [16:33:31]MH_I2C_Read... [16:33:31]Read from MH i2c: F0 09 00 [16:33:31]MH_I2C_Read... [16:33:31]Read from MH i2c: F0 09 00 81 6E 00 60 82 16 67 A0 18 CA 66 2E [16:33:31]GetLastDocTimeStamp 1729527676 [16:33:31]current date 1729528416 [16:33:31]FM_GetShiftState [16:33:31]SAM_PROTO_GetShiftState [16:33:31]wFMCommunicate request_size=4 [16:33:31]MH_SAM_APDU [16:33:31]CAPDU: 80 13 01 00 [16:33:31]Write to MH i2c: E2 08 00 82 6E 80 13 01 00 00 00 00 00 6D [16:33:31]Write i2c OK [16:33:31]MH_I2C_Read... [16:33:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:33:31]Read from MH i2c: E2 [16:33:31]MH_I2C_Read... [16:33:31]Read from MH i2c: E2 0E 00 [16:33:31]MH_I2C_Read... [16:33:31]Read from MH i2c: E2 0E 00 82 6E 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 CC [16:33:31]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [16:33:31]wFMCommunicate OK [16:33:31]SAM_PROTO_GetShiftState done [16:33:31]FM_GetShiftState done [16:33:31]opened in 1729469754 [16:33:31]opened+sec_in_day 1729556154 [16:33:31]quantity*price = 120015 [16:33:31]sum+1 = 120016 [16:33:31]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.15 ИТОГО: 1200.00 Внесено: 1200.00 СДАЧА: 0.00 НСП 1% : 10.62 НДС 12% : 127.45 Наличными: 1200.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 274 21.10.2024 16:33 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 187810 ФПД: 78090155434912 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T163336&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187810&fm=78090155434912&tin=02508201610067®Number=0000000000100030&sum=120000 [16:33:32]StoreToDocumentArchive [16:33:32]shift 460 fd 187810 [16:33:32]save to /storage/0460/doc_00187810 [16:33:32]save last doc name /storage/0460/doc_00187810 to /storage/kkm_last_doc_name [16:33:32]save OK [16:33:32]Clear old archive folders... [16:33:32]ProcessDocumentItem done err = 0, tmpTLVsize=248 [16:33:32]tlvbuf is 01236EF0 [16:33:32]SAM_PROTO_ClearQueue [16:33:32]wFMCommunicate request_size=4 [16:33:32]MH_SAM_APDU [16:33:32]CAPDU: 80 09 00 00 [16:33:32]Write to MH i2c: E2 08 00 8F 6E 80 09 00 00 00 00 00 00 6F [16:33:32]Write i2c OK [16:33:32]MH_I2C_Read... [16:33:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:33:32]Read from MH i2c: E2 [16:33:32]MH_I2C_Read... [16:33:32]Read from MH i2c: E2 03 00 [16:33:32]MH_I2C_Read... [16:33:32]Read from MH i2c: E2 03 00 8F 6E 00 90 00 71 [16:33:32]RAPDU: 90 00 [16:33:32]wFMCommunicate OK [16:33:32]SAM_PROTO_ClearQueue done [16:33:32]KKMCreateOFDPacket [16:33:32]OFDProtocolAddRootSTLVToBuf [16:33:32]FM_MakeSignedData [16:33:32]FM_MakeSignedData [16:33:32]SAM_PROTO_SignData [16:33:32]wFMCommunicate request_size=4 [16:33:32]MH_SAM_APDU [16:33:32]CAPDU: 80 0D 01 02 [16:33:32]Write to MH i2c: E2 08 00 90 6E 80 0D 01 02 00 00 00 00 77 [16:33:32]Write i2c OK [16:33:32]MH_I2C_Read... [16:33:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:33:32]Read from MH i2c: E2 [16:33:32]MH_I2C_Read... [16:33:32]Read from MH i2c: E2 03 00 [16:33:32]MH_I2C_Read... [16:33:32]Read from MH i2c: E2 03 00 90 6E 00 90 00 72 [16:33:32]RAPDU: 90 00 [16:33:32]wFMCommunicate OK [16:33:32]wFMCommunicate request_size=255 [16:33:32]MH_SAM_APDU [16:33:32]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 86 3D 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 CF 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 12 01 00 00 F4 03 04 00 60 82 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 A2 DD 02 00 35 04 06 00 47 05 C7 F9 [16:33:32]Write to MH i2c: E2 02 01 91 6E 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 86 3D 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 CF 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 12 01 00 00 F4 03 04 00 60 82 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 A2 DD 02 00 35 04 06 00 47 05 C7 F9 00 00 1C [16:33:32]Write i2c OK [16:33:32]MH_I2C_Read... [16:33:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:33:33]Read from MH i2c: E2 [16:33:33]MH_I2C_Read... [16:33:33]Read from MH i2c: E2 03 00 [16:33:33]MH_I2C_Read... [16:33:33]Read from MH i2c: E2 03 00 91 6E 00 90 00 73 [16:33:33]RAPDU: 90 00 [16:33:33]wFMCommunicate OK [16:33:33]wFMCommunicate request_size=7 [16:33:33]MH_SAM_APDU [16:33:33]CAPDU: 80 0D 02 02 02 A3 A0 [16:33:33]Write to MH i2c: E2 0A 00 92 6E 80 0D 02 02 02 00 A3 A0 00 00 C1 [16:33:33]Write i2c OK [16:33:33]MH_I2C_Read... [16:33:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:33:33]Read from MH i2c: E2 [16:33:33]MH_I2C_Read... [16:33:33]Read from MH i2c: E2 03 00 [16:33:33]MH_I2C_Read... [16:33:33]Read from MH i2c: E2 03 00 92 6E 00 90 00 74 [16:33:33]RAPDU: 90 00 [16:33:33]wFMCommunicate OK [16:33:33]wFMCommunicate request_size=4 [16:33:33]MH_SAM_APDU [16:33:33]CAPDU: 80 0D 03 02 [16:33:33]Write to MH i2c: E2 08 00 93 6E 80 0D 03 02 00 00 00 00 7C [16:33:33]Write i2c OK [16:33:33]MH_I2C_Read... [16:33:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:33:33]Read from MH i2c: E2 [16:33:33]MH_I2C_Read... [16:33:33]Read from MH i2c: E2 0B 00 [16:33:33]MH_I2C_Read... [16:33:33]Read from MH i2c: E2 0B 00 93 6E 00 B8 75 29 3C E2 F8 1A 5E 90 00 61 [16:33:33]RAPDU: B8 75 29 3C E2 F8 1A 5E 90 00 [16:33:33]wFMCommunicate OK [16:33:33]SAM_PROTO_SignData done [16:33:33]FM_MakeSignedData done [16:33:33]CreateOFDProtocolMessage [16:33:33]wFMCommunicate request_size=4 [16:33:33]MH_SAM_APDU [16:33:33]CAPDU: 80 11 00 00 [16:33:33]Write to MH i2c: E2 08 00 94 6E 80 11 00 00 00 00 00 00 7C [16:33:33]Write i2c OK [16:33:33]MH_I2C_Read... [16:33:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:33:33]Read from MH i2c: E2 [16:33:33]MH_I2C_Read... [16:33:33]Read from MH i2c: E2 17 00 [16:33:33]MH_I2C_Read... [16:33:33]Read from MH i2c: E2 17 00 94 6E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 CA [16:33:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [16:33:33]wFMCommunicate OK [16:33:33]CreateOFDProtocolMessage done [16:33:33]OFDSenderStorePacket 187810 [16:33:33]StoreOFDPacket docnum=187810 [16:33:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 E3 D8 04 01 7A C9 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 86 3D 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 CF 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 12 01 00 00 F4 03 04 00 60 82 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 A2 DD 02 00 35 04 06 00 47 05 C7 F9 A3 A0 B8 75 29 3C E2 F8 1A 5E [16:33:33]CheckFolder [16:33:33]dirname=/storage/ofd_packets [16:33:33]CheckFolder done [16:33:33]ProducePacketName [16:33:33]name=ofd_packets/00187810 [16:33:33]NVStorageSaveData ofd_packets/00187810 [16:33:33]File name is /storage/ofd_packets/00187810 [16:33:33]Write 298 bytes [16:33:33]NVStorageSaveData done [16:33:33]OFDSenderStorePacket done [16:33:33]KKMCreateOFDPacket done [16:33:33]NVStorageSaveData kkm_last_timestamp [16:33:33]File name is /storage/kkm_last_timestamp [16:33:33]Write 4 bytes [16:33:33]NVStorageSaveData done [16:33:33]ExternCall_PrintAddStr [16:33:33]wPrintStart [16:33:33]Write to MH i2c: 01 00 00 95 6E 03 [16:33:33]Write i2c OK [16:33:33]MH_I2C_Read... [16:33:33]Read from MH i2c: 01 [16:33:33]MH_I2C_Read... [16:33:33]Read from MH i2c: 01 07 00 [16:33:33]MH_I2C_Read... [16:33:33]Read from MH i2c: 01 07 00 95 6E 00 00 00 00 00 FF 0F 18 [16:33:33]RasterBufferAndPrint [16:33:33]line Счет N : (1)209862 [16:33:33]line ИНН: 02508201610067 [16:33:33]line Контрольно-Кассовый Чек [16:33:33]line ПРОДАЖА [16:33:33]line ТРК (МРК, ГНК) : 51 [16:33:33]line Товар: 2710194210 [16:33:33]line ДТ-К-5 [16:33:33]line 15.750 * 76.20 [16:33:33]line = 1200.15 [16:33:33]line НДС 12% НСП 1% [16:33:33]line > о реализуемом товаре [16:33:33]line ОКРУГЛЕНИЕ: -0.15 [16:33:33]line ИТОГО: 1200.00 [16:33:33]line Внесено: 1200.00 [16:33:33]line СДАЧА: 0.00 [16:33:33]line НСП 1% : 10.62 [16:33:33]line НДС 12% : 127.45 [16:33:33]line Наличными: 1200.00 [16:33:33]line Безнал.: 0.00 [16:33:33]line Место: АЗС № 86 "Партнер Нефть" [16:33:33]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [16:33:33]line СНО: Общий режим [16:33:33]line Чек 274 21.10.2024 16:33 [16:33:33]line Смена: 460 ФФД: 1.0 [16:33:33]line ЗНМ: 0300000155 [16:33:33]line РНМ: 0000000000100030 [16:33:33]line Версия ККМ: 001 [16:33:33]line ФМ: 0000000000965340 [16:33:33]line ФД: 187810 [16:33:33]line ФПД: 78090155434912 [16:33:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T163336&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187810&fm=78090155434912&tin=02508201610067®Number=0000000000100030&sum=120000 [16:33:33]written 0, free lines is 4095 [16:33:33]OFD Sender: Processing packet 187810 [packets to send 1062, broken 1061] [16:33:33]ProducePacketName [16:33:33]name=ofd_packets/00187810 [16:33:33]OFD Sender: To server: pG, [16:33:33]CommunicateWithHost lk.salyk.kg:30040 [16:33:33]ConnectInit lk.salyk.kg [16:33:33]Connected sock=10 [16:33:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 E3 D8 04 01 7A C9 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 86 3D 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 CF 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 12 01 00 00 F4 03 04 00 60 82 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 A2 DD 02 00 35 04 06 00 47 05 C7 F9 A3 A0 B8 75 29 3C E2 F8 1A 5E [16:33:33]Write to MH i2c: 01 00 00 C0 6E 2E [16:33:33]Write i2c OK [16:33:33]MH_I2C_Read... [16:33:33]Read from MH i2c: 01 [16:33:33]MH_I2C_Read... [16:33:33]Read from MH i2c: 01 07 00 [16:33:33]MH_I2C_Read... [16:33:33]Read from MH i2c: 01 07 00 C0 6E 00 00 00 00 00 62 0C A3 [16:33:33]RasterBufferAndPrint [16:33:33]line [16:33:33]line [16:33:33]line [16:33:33]line [16:33:33]line [16:33:33]written 0, free lines is 3174 [16:33:33]MH_Cut [16:33:33]Write to MH i2c: D1 01 00 C7 6E 01 07 [16:33:33]Write i2c OK [16:33:33]MH_I2C_Read... [16:33:33]Read from MH i2c: D1 [16:33:33]MH_I2C_Read... [16:33:33]Read from MH i2c: D1 01 00 [16:33:33]MH_I2C_Read... [16:33:33]Read from MH i2c: D1 01 00 C7 6E 00 06 [16:33:33]Write to MH i2c: 01 00 00 C8 6E 36 [16:33:33]Write i2c OK [16:33:33]MH_I2C_Read... [16:33:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 9C 92 47 00 87 F8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 A2 DD 02 00 F4 03 04 00 4F 2C 16 67 B6 04 01 00 00 45 7D 9A 95 0D C5 3A 3C [16:33:34]CommunicateWithHost err = 0 [16:33:34]CheckOFDResponse [16:33:34]1017 (14) - 77093643461234 [16:33:34]1041 (16) - 0000000000965340 [16:33:34]1040 (4) - 187810 [16:33:34]1012 (4) - 21.10.2024 10:26 [16:33:34]1206 (1) - 0 [16:33:34]OFD Sender: Remove packet 187810 [16:33:34]ProducePacketName [16:33:34]name=ofd_packets/00187810 [16:33:34]NVStorageDeleteData [16:33:34]OFD Sender: No OFD packet to send [16:33:34]*** Cut start [16:33:34]*** Partial cut [16:33:34]*** CUTSNS_PIN = 1 [16:33:35]*** CUTSNS_PIN = 0 [16:33:35]*** Brake cut motor [16:33:35]Read from MH i2c: 01 [16:33:35]MH_I2C_Read... [16:33:35]*** Stop cut motor [16:33:35]*** Cut end [16:33:35]Read from MH i2c: 01 07 00 [16:33:35]MH_I2C_Read... [16:33:35]Read from MH i2c: 01 07 00 C8 6E 00 00 00 00 00 FF 0F 4B [16:33:35]process_action close_receipt done [16:33:35]requested_data is exist [16:33:35]produce_requested_data [16:33:35]requested_item fm.sn is exist - process it [16:33:35]wFMCommunicate request_size=4 [16:33:35]MH_SAM_APDU [16:33:35]CAPDU: 80 11 00 00 [16:33:35]Write to MH i2c: E2 08 00 C9 6E 80 11 00 00 00 00 00 00 B1 [16:33:35]Write i2c OK [16:33:35]MH_I2C_Read... [16:33:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:33:35]Read from MH i2c: E2 [16:33:35]MH_I2C_Read... [16:33:35]Read from MH i2c: E2 17 00 [16:33:35]MH_I2C_Read... [16:33:35]Read from MH i2c: E2 17 00 C9 6E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 FF [16:33:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [16:33:35]wFMCommunicate OK [16:33:35]requested_item fd.num is exist - process it [16:33:35]SAM_PROTO_GetFieldsCounters [16:33:35]wFMCommunicate request_size=4 [16:33:35]MH_SAM_APDU [16:33:35]CAPDU: 80 13 00 00 [16:33:35]Write to MH i2c: E2 08 00 CA 6E 80 13 00 00 00 00 00 00 B4 [16:33:35]Write i2c OK [16:33:35]MH_I2C_Read... [16:33:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:33:35]Read from MH i2c: E2 [16:33:35]MH_I2C_Read... [16:33:35]Read from MH i2c: E2 62 00 [16:33:35]MH_I2C_Read... [16:33:35]Read from MH i2c: E2 62 00 CA 6E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 A2 DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 12 01 00 00 5E 04 04 00 12 01 00 00 57 04 04 00 13 01 00 00 19 04 04 00 00 00 00 00 90 00 42 [16:33:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 A2 DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 12 01 00 00 5E 04 04 00 12 01 00 00 57 04 04 00 13 01 00 00 19 04 04 00 00 00 00 00 90 00 [16:33:35]wFMCommunicate OK [16:33:35]SAM_PROTO_GetFieldsCounters done [16:33:35]requested_item shift.num is exist - process it [16:33:35]requested_item shift.opened is exist - process it [16:33:35]req_shift_opened [16:33:35]FM_GetShiftState [16:33:35]SAM_PROTO_GetShiftState [16:33:35]wFMCommunicate request_size=4 [16:33:35]MH_SAM_APDU [16:33:35]CAPDU: 80 13 01 00 [16:33:35]Write to MH i2c: E2 08 00 CB 6E 80 13 01 00 00 00 00 00 B6 [16:33:35]Write i2c OK [16:33:35]MH_I2C_Read... [16:33:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:33:35]Read from MH i2c: E2 [16:33:35]MH_I2C_Read... [16:33:35]Read from MH i2c: E2 0E 00 [16:33:35]MH_I2C_Read... [16:33:35]Read from MH i2c: E2 0E 00 CB 6E 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 15 [16:33:35]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [16:33:35]wFMCommunicate OK [16:33:35]SAM_PROTO_GetShiftState done [16:33:35]FM_GetShiftState done [16:33:35]req_shift_opened done [16:33:35]requested_item shift.open_date is exist - process it [16:33:35]req_shift_open_date [16:33:35]req_shift_open_date done [16:33:35]produce_requested_data done [16:33:35]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187810,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [16:33:35]process_action_free close_receipt [16:33:35]json_value_free [16:33:35]json_value_free done [16:33:35]process_json_proto returns [16:33:35]Send response to host [16:33:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187810,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [16:33:35]free response buf [16:33:35]execute_script done [16:33:35]execute_script returns [16:33:35]free content buf [16:33:35]Sock 8.Close socket [16:33:35]Sock 8.Thread stoped [16:33:39]OFD Sender: No OFD packet to send [16:33:44]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:04]OFD Sender: No OFD packet to send [16:34:09]OFD Sender: No OFD packet to send [16:34:14]OFD Sender: No OFD packet to send [16:34:19]OFD Sender: No OFD packet to send [16:34:24]OFD Sender: No OFD packet to send [16:34:29]OFD Sender: No OFD packet to send [16:34:34]OFD Sender: No OFD packet to send [16:34:39]OFD Sender: No OFD packet to send [16:34:44]OFD Sender: No OFD packet to send [16:34:49]OFD Sender: No OFD packet to send [16:34:54]OFD Sender: No OFD packet to send [16:34:59]OFD Sender: No OFD packet to send [16:35:04]OFD Sender: No OFD packet to send [16:35:06]accept exits with 9 [16:35:06]New connection [16:35:06]New thread 3067014500 created [16:35:06]Thread 3067157860 joined [16:35:06]Waiting for new connection... [16:35:06] Sock 9.Parse request [16:35:06]Sock 9.Check first char [16:35:06]Sock 9.First char is OK [16:35:06]request: POST /json_proto HTTP/1.0 [16:35:06]Method: POST [16:35:06]URL: /json_proto [16:35:06]Method is POST - this is cgi request [16:35:06]url: /json_proto [16:35:06]query_string will be loaded in cgi processing [16:35:06]execute_cgi json_proto POST (null) [16:35:06]execute_cgi path=json_proto method=POST [16:35:06]POST find Content-Length [16:35:06]Host: 172.17.42.131:8080 [16:35:06]Content-Length: 797 [16:35:06]Content-Type: application/json [16:35:06] [16:35:06]POST finish read [16:35:06]Found Content-Length = 797 [16:35:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209863", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 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\u000A4339726", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:35:06]execute_script... [16:35:06]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209863", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 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\u000A4339726", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:35:06]POST & json_proto [16:35:06]process_json_proto [16:35:06]json parsed OK: [16:35:06]protocol is kg_v1.0 [16:35:06]action value=close_receipt [16:35:06]process_action close_receipt [16:35:06]cmd_close_receipt [16:35:06]MH_GetDate [16:35:06]Write to MH i2c: F0 00 00 CC 6E 29 [16:35:06]Write i2c OK [16:35:06]MH_I2C_Read... [16:35:06]Read from MH i2c: F0 [16:35:06]MH_I2C_Read... [16:35:06]Read from MH i2c: F0 09 00 [16:35:06]MH_I2C_Read... [16:35:06]Read from MH i2c: F0 09 00 CC 6E 00 BE 82 16 67 A0 18 CA 66 D7 [16:35:06]GetLastDocTimeStamp 1729528416 [16:35:06]current date 1729528510 [16:35:06]FM_GetShiftState [16:35:06]SAM_PROTO_GetShiftState [16:35:06]wFMCommunicate request_size=4 [16:35:06]MH_SAM_APDU [16:35:06]CAPDU: 80 13 01 00 [16:35:06]Write to MH i2c: E2 08 00 CD 6E 80 13 01 00 00 00 00 00 B8 [16:35:06]Write i2c OK [16:35:06]MH_I2C_Read... [16:35:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:35:06]Read from MH i2c: E2 [16:35:06]MH_I2C_Read... [16:35:06]Read from MH i2c: E2 0E 00 [16:35:06]MH_I2C_Read... [16:35:06]Read from MH i2c: E2 0E 00 CD 6E 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 17 [16:35:06]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [16:35:06]wFMCommunicate OK [16:35:06]SAM_PROTO_GetShiftState done [16:35:06]FM_GetShiftState done [16:35:06]opened in 1729469754 [16:35:06]opened+sec_in_day 1729556154 [16:35:06]quantity*price = 0 [16:35:06]sum+1 = 1 [16:35:06]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 275 21.10.2024 16:35 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Талоны: Топливные Талоны 4339726 ФМ: 0000000000965340 ФД: 187811 ФПД: 200646970598640 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T163511&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187811&fm=200646970598640&tin=02508201610067®Number=0000000000100030&sum=0 [16:35:07]StoreToDocumentArchive [16:35:07]shift 460 fd 187811 [16:35:07]save to /storage/0460/doc_00187811 [16:35:07]save last doc name /storage/0460/doc_00187811 to /storage/kkm_last_doc_name [16:35:07]save OK [16:35:07]Clear old archive folders... [16:35:07]ProcessDocumentItem done err = 0, tmpTLVsize=248 [16:35:07]tlvbuf is 012D6590 [16:35:07]SAM_PROTO_ClearQueue [16:35:07]wFMCommunicate request_size=4 [16:35:07]MH_SAM_APDU [16:35:07]CAPDU: 80 09 00 00 [16:35:07]Write to MH i2c: E2 08 00 DA 6E 80 09 00 00 00 00 00 00 BA [16:35:07]Write i2c OK [16:35:07]MH_I2C_Read... [16:35:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:35:07]Read from MH i2c: E2 [16:35:07]MH_I2C_Read... [16:35:07]Read from MH i2c: E2 03 00 [16:35:07]MH_I2C_Read... [16:35:07]Read from MH i2c: E2 03 00 DA 6E 00 90 00 BC [16:35:07]RAPDU: 90 00 [16:35:07]wFMCommunicate OK [16:35:07]SAM_PROTO_ClearQueue done [16:35:07]KKMCreateOFDPacket [16:35:07]OFDProtocolAddRootSTLVToBuf [16:35:07]FM_MakeSignedData [16:35:07]FM_MakeSignedData [16:35:07]SAM_PROTO_SignData [16:35:07]wFMCommunicate request_size=4 [16:35:07]MH_SAM_APDU [16:35:07]CAPDU: 80 0D 01 02 [16:35:07]Write to MH i2c: E2 08 00 DB 6E 80 0D 01 02 00 00 00 00 C2 [16:35:07]Write i2c OK [16:35:07]MH_I2C_Read... [16:35:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:35:07]Read from MH i2c: E2 [16:35:07]MH_I2C_Read... [16:35:07]Read from MH i2c: E2 03 00 [16:35:07]MH_I2C_Read... [16:35:07]Read from MH i2c: E2 03 00 DB 6E 00 90 00 BD [16:35:07]RAPDU: 90 00 [16:35:07]wFMCommunicate OK [16:35:07]wFMCommunicate request_size=255 [16:35:07]MH_SAM_APDU [16:35:07]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 13 01 00 00 F4 03 04 00 BF 82 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 A3 DD 02 00 35 04 06 00 B6 7C C3 68 [16:35:07]Write to MH i2c: E2 02 01 DC 6E 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 13 01 00 00 F4 03 04 00 BF 82 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 A3 DD 02 00 35 04 06 00 B6 7C C3 68 00 00 F1 [16:35:07]Write i2c OK [16:35:07]MH_I2C_Read... [16:35:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:35:07]Read from MH i2c: E2 [16:35:07]MH_I2C_Read... [16:35:07]Read from MH i2c: E2 03 00 [16:35:07]MH_I2C_Read... [16:35:07]Read from MH i2c: E2 03 00 DC 6E 00 90 00 BE [16:35:07]RAPDU: 90 00 [16:35:07]wFMCommunicate OK [16:35:07]wFMCommunicate request_size=7 [16:35:07]MH_SAM_APDU [16:35:07]CAPDU: 80 0D 02 02 02 64 F0 [16:35:07]Write to MH i2c: E2 0A 00 DD 6E 80 0D 02 02 02 00 64 F0 00 00 1D [16:35:07]Write i2c OK [16:35:07]MH_I2C_Read... [16:35:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:35:07]Read from MH i2c: E2 [16:35:07]MH_I2C_Read... [16:35:07]Read from MH i2c: E2 03 00 [16:35:07]MH_I2C_Read... [16:35:07]Read from MH i2c: E2 03 00 DD 6E 00 90 00 BF [16:35:07]RAPDU: 90 00 [16:35:07]wFMCommunicate OK [16:35:07]wFMCommunicate request_size=4 [16:35:07]MH_SAM_APDU [16:35:07]CAPDU: 80 0D 03 02 [16:35:07]Write to MH i2c: E2 08 00 DE 6E 80 0D 03 02 00 00 00 00 C7 [16:35:07]Write i2c OK [16:35:07]MH_I2C_Read... [16:35:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:35:07]Read from MH i2c: E2 [16:35:07]MH_I2C_Read... [16:35:07]Read from MH i2c: E2 0B 00 [16:35:07]MH_I2C_Read... [16:35:07]Read from MH i2c: E2 0B 00 DE 6E 00 B2 CD 1F 31 B6 0A 0C F5 90 00 58 [16:35:07]RAPDU: B2 CD 1F 31 B6 0A 0C F5 90 00 [16:35:07]wFMCommunicate OK [16:35:07]SAM_PROTO_SignData done [16:35:07]FM_MakeSignedData done [16:35:07]CreateOFDProtocolMessage [16:35:07]wFMCommunicate request_size=4 [16:35:07]MH_SAM_APDU [16:35:07]CAPDU: 80 11 00 00 [16:35:07]Write to MH i2c: E2 08 00 DF 6E 80 11 00 00 00 00 00 00 C7 [16:35:07]Write i2c OK [16:35:07]MH_I2C_Read... [16:35:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:35:07]Read from MH i2c: E2 [16:35:07]MH_I2C_Read... [16:35:07]Read from MH i2c: E2 17 00 [16:35:07]MH_I2C_Read... [16:35:07]Read from MH i2c: E2 17 00 DF 6E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 15 [16:35:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [16:35:07]wFMCommunicate OK [16:35:07]CreateOFDProtocolMessage done [16:35:07]OFDSenderStorePacket 187811 [16:35:07]StoreOFDPacket docnum=187811 [16:35:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 75 B2 04 01 C4 86 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 01 00 00 F4 03 04 00 BF 82 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 A3 DD 02 00 35 04 06 00 B6 7C C3 68 64 F0 B2 CD 1F 31 B6 0A 0C F5 [16:35:07]CheckFolder [16:35:07]dirname=/storage/ofd_packets [16:35:07]CheckFolder done [16:35:07]ProducePacketName [16:35:07]name=ofd_packets/00187811 [16:35:07]NVStorageSaveData ofd_packets/00187811 [16:35:07]File name is /storage/ofd_packets/00187811 [16:35:07]Write 298 bytes [16:35:07]NVStorageSaveData done [16:35:07]OFDSenderStorePacket done [16:35:07]KKMCreateOFDPacket done [16:35:07]NVStorageSaveData kkm_last_timestamp [16:35:07]File name is /storage/kkm_last_timestamp [16:35:07]Write 4 bytes [16:35:07]NVStorageSaveData done [16:35:07]ExternCall_PrintAddStr [16:35:07]wPrintStart [16:35:07]Write to MH i2c: 01 00 00 E0 6E 4E [16:35:07]Write i2c OK [16:35:07]MH_I2C_Read... [16:35:07]Read from MH i2c: 01 [16:35:07]MH_I2C_Read... [16:35:07]Read from MH i2c: 01 07 00 [16:35:07]MH_I2C_Read... [16:35:07]Read from MH i2c: 01 07 00 E0 6E 00 00 00 00 00 FF 0F 63 [16:35:07]RasterBufferAndPrint [16:35:07]line Счет N : (1)209863 [16:35:07]line ИНН: 02508201610067 [16:35:07]line Контрольно-Кассовый Чек [16:35:07]line ПРОДАЖА [16:35:07]line ТРК (МРК, ГНК) : 51 [16:35:07]line Товар: 2710194210 [16:35:07]line ДТ-К-5 [16:35:07]line 20.000 * 0.00 [16:35:07]line = 0.00 [16:35:07]line НДС 12% НСП 1% [16:35:07]line > о реализуемом товаре [16:35:07]line ИТОГО: 0.00 [16:35:07]line НСП 1% : 0.00 [16:35:07]line НДС 12% : 0.00 [16:35:07]line Наличными: 0.00 [16:35:07]line Безнал.: 0.00 [16:35:07]line Место: АЗС № 86 "Партнер Нефть" [16:35:07]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [16:35:07]line СНО: Общий режим [16:35:07]line Чек 275 21.10.2024 16:35 [16:35:07]line Смена: 460 ФФД: 1.0 [16:35:07]line ЗНМ: 0300000155 [16:35:07]line РНМ: 0000000000100030 [16:35:07]line Версия ККМ: 001 [16:35:07]line Талоны: Топливные Талоны [16:35:07]line 4339726 [16:35:07]line ФМ: 0000000000965340 [16:35:07]line ФД: 187811 [16:35:07]line ФПД: 200646970598640 [16:35:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T163511&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187811&fm=200646970598640&tin=02508201610067®Number=0000000000100030&sum=0 [16:35:07]written 0, free lines is 4095 [16:35:07]OFD Sender: Processing packet 187811 [packets to send 1062, broken 1061] [16:35:07]ProducePacketName [16:35:07]name=ofd_packets/00187811 [16:35:07]OFD Sender: To server: pG, [16:35:07]CommunicateWithHost lk.salyk.kg:30040 [16:35:07]ConnectInit lk.salyk.kg [16:35:08]Connected sock=11 [16:35:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 75 B2 04 01 C4 86 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 01 00 00 F4 03 04 00 BF 82 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 A3 DD 02 00 35 04 06 00 B6 7C C3 68 64 F0 B2 CD 1F 31 B6 0A 0C F5 [16:35:08]Write to MH i2c: 01 00 00 0A 6F 79 [16:35:08]Write i2c OK [16:35:08]MH_I2C_Read... [16:35:08]Read from MH i2c: 01 [16:35:08]MH_I2C_Read... [16:35:08]Read from MH i2c: 01 07 00 [16:35:08]MH_I2C_Read... [16:35:08]Read from MH i2c: 01 07 00 0A 6F 00 00 00 00 00 86 0C 12 [16:35:08]RasterBufferAndPrint [16:35:08]line [16:35:08]line [16:35:08]line [16:35:08]line [16:35:08]line [16:35:08]written 0, free lines is 3210 [16:35:08]MH_Cut [16:35:08]Write to MH i2c: D1 01 00 11 6F 01 52 [16:35:08]Write i2c OK [16:35:08]MH_I2C_Read... [16:35:08]Read from MH i2c: D1 [16:35:08]MH_I2C_Read... [16:35:08]Read from MH i2c: D1 01 00 [16:35:08]MH_I2C_Read... [16:35:08]Read from MH i2c: D1 01 00 11 6F 00 51 [16:35:08]Write to MH i2c: 01 00 00 12 6F 81 [16:35:08]Write i2c OK [16:35:08]MH_I2C_Read... [16:35:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 48 80 47 00 07 A6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 A3 DD 02 00 F4 03 04 00 AE 2C 16 67 B6 04 01 00 00 1F 2F BA 0C 09 66 AB 31 [16:35:08]CommunicateWithHost err = 0 [16:35:08]CheckOFDResponse [16:35:08]1017 (14) - 77093643461234 [16:35:08]1041 (16) - 0000000000965340 [16:35:08]1040 (4) - 187811 [16:35:08]1012 (4) - 21.10.2024 10:27 [16:35:08]1206 (1) - 0 [16:35:08]OFD Sender: Remove packet 187811 [16:35:08]ProducePacketName [16:35:08]name=ofd_packets/00187811 [16:35:08]NVStorageDeleteData [16:35:09]OFD Sender: No OFD packet to send [16:35:09]*** Cut start [16:35:09]*** Partial cut [16:35:09]*** CUTSNS_PIN = 1 [16:35:09]*** CUTSNS_PIN = 0 [16:35:09]*** Brake cut motor [16:35:10]Read from MH i2c: 01 [16:35:10]MH_I2C_Read... [16:35:10]*** Stop cut motor [16:35:10]*** Cut end [16:35:10]Read from MH i2c: 01 07 00 [16:35:10]MH_I2C_Read... [16:35:10]Read from MH i2c: 01 07 00 12 6F 00 00 00 00 00 FF 0F 96 [16:35:10]process_action close_receipt done [16:35:10]requested_data is exist [16:35:10]produce_requested_data [16:35:10]requested_item fm.sn is exist - process it [16:35:10]wFMCommunicate request_size=4 [16:35:10]MH_SAM_APDU [16:35:10]CAPDU: 80 11 00 00 [16:35:10]Write to MH i2c: E2 08 00 13 6F 80 11 00 00 00 00 00 00 FC [16:35:10]Write i2c OK [16:35:10]MH_I2C_Read... [16:35:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:35:10]Read from MH i2c: E2 [16:35:10]MH_I2C_Read... [16:35:10]Read from MH i2c: E2 17 00 [16:35:10]MH_I2C_Read... [16:35:10]Read from MH i2c: E2 17 00 13 6F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 4A [16:35:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [16:35:10]wFMCommunicate OK [16:35:10]requested_item fd.num is exist - process it [16:35:10]SAM_PROTO_GetFieldsCounters [16:35:10]wFMCommunicate request_size=4 [16:35:10]MH_SAM_APDU [16:35:10]CAPDU: 80 13 00 00 [16:35:10]Write to MH i2c: E2 08 00 14 6F 80 13 00 00 00 00 00 00 FF [16:35:10]Write i2c OK [16:35:10]MH_I2C_Read... [16:35:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:35:10]Read from MH i2c: E2 [16:35:10]MH_I2C_Read... [16:35:10]Read from MH i2c: E2 62 00 [16:35:10]MH_I2C_Read... [16:35:10]Read from MH i2c: E2 62 00 14 6F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 A3 DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 13 01 00 00 5E 04 04 00 13 01 00 00 57 04 04 00 14 01 00 00 19 04 04 00 00 00 00 00 90 00 91 [16:35:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 A3 DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 13 01 00 00 5E 04 04 00 13 01 00 00 57 04 04 00 14 01 00 00 19 04 04 00 00 00 00 00 90 00 [16:35:10]wFMCommunicate OK [16:35:10]SAM_PROTO_GetFieldsCounters done [16:35:10]requested_item shift.num is exist - process it [16:35:10]requested_item shift.opened is exist - process it [16:35:10]req_shift_opened [16:35:10]FM_GetShiftState [16:35:10]SAM_PROTO_GetShiftState [16:35:10]wFMCommunicate request_size=4 [16:35:10]MH_SAM_APDU [16:35:10]CAPDU: 80 13 01 00 [16:35:10]Write to MH i2c: E2 08 00 15 6F 80 13 01 00 00 00 00 00 01 [16:35:10]Write i2c OK [16:35:10]MH_I2C_Read... [16:35:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:35:10]Read from MH i2c: E2 [16:35:10]MH_I2C_Read... [16:35:10]Read from MH i2c: E2 0E 00 [16:35:10]MH_I2C_Read... [16:35:10]Read from MH i2c: E2 0E 00 15 6F 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 60 [16:35:10]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [16:35:10]wFMCommunicate OK [16:35:10]SAM_PROTO_GetShiftState done [16:35:10]FM_GetShiftState done [16:35:10]req_shift_opened done [16:35:10]requested_item shift.open_date is exist - process it [16:35:10]req_shift_open_date [16:35:10]req_shift_open_date done [16:35:10]produce_requested_data done [16:35:10]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187811,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [16:35:10]process_action_free close_receipt [16:35:10]json_value_free [16:35:10]json_value_free done [16:35:10]process_json_proto returns [16:35:10]Send response to host [16:35:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187811,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [16:35:10]free response buf [16:35:10]execute_script done [16:35:10]execute_script returns [16:35:10]free content buf [16:35:10]Sock 9.Close socket [16:35:10]Sock 9.Thread stoped [16:35:14]OFD Sender: No OFD packet to send [16:35:19]OFD Sender: No OFD packet to send [16:35:24]OFD Sender: No OFD packet to send [16:35:29]OFD Sender: No OFD packet to send [16:35:34]OFD Sender: No OFD packet to send [16:35:39]OFD Sender: No OFD packet to send [16:35:44]OFD Sender: No OFD packet to send [16:35:49]OFD Sender: No OFD packet to send [16:35:54]OFD Sender: No OFD packet to send [16:35:59]OFD Sender: No OFD packet to send [16:36:04]OFD Sender: No OFD packet to send [16:36:09]OFD Sender: No OFD packet to send [16:36:12]accept exits with 8 [16:36:12]New connection [16:36:12]New thread 3067157860 created [16:36:12]Thread 3067014500 joined [16:36:12]Waiting for new connection... [16:36:12] Sock 8.Parse request [16:36:12]Sock 8.Check first char [16:36:12]Sock 8.First char is OK [16:36:12]request: POST /json_proto HTTP/1.0 [16:36:12]Method: POST [16:36:12]URL: /json_proto [16:36:12]Method is POST - this is cgi request [16:36:12]url: /json_proto [16:36:12]query_string will be loaded in cgi processing [16:36:12]execute_cgi json_proto POST (null) [16:36:12]execute_cgi path=json_proto method=POST [16:36:12]POST find Content-Length [16:36:12]Host: 172.17.42.131:8080 [16:36:12]Content-Length: 766 [16:36:12]Content-Type: application/json [16:36:12] [16:36:12]POST finish read [16:36:12]Found Content-Length = 766 [16:36:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209864", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "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" ] } } [16:36:12]execute_script... [16:36: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)209864", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "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" ] } } [16:36:12]POST & json_proto [16:36:12]process_json_proto [16:36:12]json parsed OK: [16:36:12]protocol is kg_v1.0 [16:36:12]action value=close_receipt [16:36:12]process_action close_receipt [16:36:12]cmd_close_receipt [16:36:12]MH_GetDate [16:36:12]Write to MH i2c: F0 00 00 16 6F 74 [16:36:12]Write i2c OK [16:36:12]MH_I2C_Read... [16:36:12]Read from MH i2c: F0 [16:36:12]MH_I2C_Read... [16:36:12]Read from MH i2c: F0 09 00 [16:36:12]MH_I2C_Read... [16:36:12]Read from MH i2c: F0 09 00 16 6F 00 01 83 16 67 A0 18 CA 66 66 [16:36:12]GetLastDocTimeStamp 1729528511 [16:36:12]current date 1729528577 [16:36:12]FM_GetShiftState [16:36:12]SAM_PROTO_GetShiftState [16:36:12]wFMCommunicate request_size=4 [16:36:12]MH_SAM_APDU [16:36:12]CAPDU: 80 13 01 00 [16:36:12]Write to MH i2c: E2 08 00 17 6F 80 13 01 00 00 00 00 00 03 [16:36:12]Write i2c OK [16:36:12]MH_I2C_Read... [16:36:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:36:12]Read from MH i2c: E2 [16:36:12]MH_I2C_Read... [16:36:12]Read from MH i2c: E2 0E 00 [16:36:12]MH_I2C_Read... [16:36:12]Read from MH i2c: E2 0E 00 17 6F 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 62 [16:36:12]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [16:36:12]wFMCommunicate OK [16:36:12]SAM_PROTO_GetShiftState done [16:36:12]FM_GetShiftState done [16:36:12]opened in 1729469754 [16:36:12]opened+sec_in_day 1729556154 [16:36:12]quantity*price = 50041 [16:36:12]sum+1 = 50042 [16:36:12]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.41 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 0.00 Безнал.: 500.41 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 276 21.10.2024 16:36 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000965340 ФД: 187812 ФПД: 230080197948616 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T163617&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187812&fm=230080197948616&tin=02508201610067®Number=0000000000100030&sum=50041 [16:36:14]StoreToDocumentArchive [16:36:14]shift 460 fd 187812 [16:36:14]save to /storage/0460/doc_00187812 [16:36:14]save last doc name /storage/0460/doc_00187812 to /storage/kkm_last_doc_name [16:36:14]save OK [16:36:14]Clear old archive folders... [16:36:14]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:36:14]tlvbuf is B6F8A9D0 [16:36:14]SAM_PROTO_ClearQueue [16:36:14]wFMCommunicate request_size=4 [16:36:14]MH_SAM_APDU [16:36:14]CAPDU: 80 09 00 00 [16:36:14]Write to MH i2c: E2 08 00 24 6F 80 09 00 00 00 00 00 00 05 [16:36:14]Write i2c OK [16:36:14]MH_I2C_Read... [16:36:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:36:14]Read from MH i2c: E2 [16:36:14]MH_I2C_Read... [16:36:14]Read from MH i2c: E2 03 00 [16:36:14]MH_I2C_Read... [16:36:14]Read from MH i2c: E2 03 00 24 6F 00 90 00 07 [16:36:14]RAPDU: 90 00 [16:36:14]wFMCommunicate OK [16:36:14]SAM_PROTO_ClearQueue done [16:36:14]KKMCreateOFDPacket [16:36:14]OFDProtocolAddRootSTLVToBuf [16:36:14]FM_MakeSignedData [16:36:14]FM_MakeSignedData [16:36:14]SAM_PROTO_SignData [16:36:14]wFMCommunicate request_size=4 [16:36:14]MH_SAM_APDU [16:36:14]CAPDU: 80 0D 01 02 [16:36:14]Write to MH i2c: E2 08 00 25 6F 80 0D 01 02 00 00 00 00 0D [16:36:14]Write i2c OK [16:36:14]MH_I2C_Read... [16:36:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:36:14]Read from MH i2c: E2 [16:36:14]MH_I2C_Read... [16:36:14]Read from MH i2c: E2 03 00 [16:36:14]MH_I2C_Read... [16:36:14]Read from MH i2c: E2 03 00 25 6F 00 90 00 08 [16:36:14]RAPDU: 90 00 [16:36:14]wFMCommunicate OK [16:36:14]wFMCommunicate request_size=255 [16:36:14]MH_SAM_APDU [16:36: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 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 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 14 01 00 00 F4 03 04 00 01 83 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 A4 DD 02 00 35 04 06 00 D1 [16:36:14]Write to MH i2c: E2 02 01 26 6F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 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 14 01 00 00 F4 03 04 00 01 83 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 A4 DD 02 00 35 04 06 00 D1 00 00 09 [16:36:14]Write i2c OK [16:36:14]MH_I2C_Read... [16:36:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:36:14]Read from MH i2c: E2 [16:36:14]MH_I2C_Read... [16:36:14]Read from MH i2c: E2 03 00 [16:36:14]MH_I2C_Read... [16:36:14]Read from MH i2c: E2 03 00 26 6F 00 90 00 09 [16:36:14]RAPDU: 90 00 [16:36:14]wFMCommunicate OK [16:36:14]wFMCommunicate request_size=10 [16:36:14]MH_SAM_APDU [16:36:14]CAPDU: 80 0D 02 02 05 41 B8 77 F4 C8 [16:36:14]Write to MH i2c: E2 0D 00 27 6F 80 0D 02 02 05 00 41 B8 77 F4 C8 00 00 46 [16:36:14]Write i2c OK [16:36:14]MH_I2C_Read... [16:36:14]OFD Sender: No OFD packet to send [16:36:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:36:14]Read from MH i2c: E2 [16:36:14]MH_I2C_Read... [16:36:14]Read from MH i2c: E2 03 00 [16:36:14]MH_I2C_Read... [16:36:14]Read from MH i2c: E2 03 00 27 6F 00 90 00 0A [16:36:14]RAPDU: 90 00 [16:36:14]wFMCommunicate OK [16:36:14]wFMCommunicate request_size=4 [16:36:14]MH_SAM_APDU [16:36:14]CAPDU: 80 0D 03 02 [16:36:14]Write to MH i2c: E2 08 00 28 6F 80 0D 03 02 00 00 00 00 12 [16:36:14]Write i2c OK [16:36:14]MH_I2C_Read... [16:36:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:36:14]Read from MH i2c: E2 [16:36:14]MH_I2C_Read... [16:36:14]Read from MH i2c: E2 0B 00 [16:36:14]MH_I2C_Read... [16:36:14]Read from MH i2c: E2 0B 00 28 6F 00 A4 F7 43 21 5B 7E FB A1 90 00 87 [16:36:14]RAPDU: A4 F7 43 21 5B 7E FB A1 90 00 [16:36:14]wFMCommunicate OK [16:36:14]SAM_PROTO_SignData done [16:36:14]FM_MakeSignedData done [16:36:14]CreateOFDProtocolMessage [16:36:14]wFMCommunicate request_size=4 [16:36:14]MH_SAM_APDU [16:36:14]CAPDU: 80 11 00 00 [16:36:14]Write to MH i2c: E2 08 00 29 6F 80 11 00 00 00 00 00 00 12 [16:36:14]Write i2c OK [16:36:14]MH_I2C_Read... [16:36:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:36:14]Read from MH i2c: E2 [16:36:14]MH_I2C_Read... [16:36:14]Read from MH i2c: E2 17 00 [16:36:14]MH_I2C_Read... [16:36:14]Read from MH i2c: E2 17 00 29 6F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 60 [16:36:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [16:36:14]wFMCommunicate OK [16:36:14]CreateOFDProtocolMessage done [16:36:14]OFDSenderStorePacket 187812 [16:36:14]StoreOFDPacket docnum=187812 [16:36:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 59 EF 07 01 19 8B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 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 14 01 00 00 F4 03 04 00 01 83 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 A4 DD 02 00 35 04 06 00 D1 41 B8 77 F4 C8 A4 F7 43 21 5B 7E FB A1 [16:36:14]CheckFolder [16:36:14]dirname=/storage/ofd_packets [16:36:14]CheckFolder done [16:36:14]ProducePacketName [16:36:14]name=ofd_packets/00187812 [16:36:14]NVStorageSaveData ofd_packets/00187812 [16:36:14]File name is /storage/ofd_packets/00187812 [16:36:14]Write 301 bytes [16:36:14]NVStorageSaveData done [16:36:14]OFDSenderStorePacket done [16:36:14]KKMCreateOFDPacket done [16:36:14]NVStorageSaveData kkm_last_timestamp [16:36:14]File name is /storage/kkm_last_timestamp [16:36:14]Write 4 bytes [16:36:14]NVStorageSaveData done [16:36:14]ExternCall_PrintAddStr [16:36:14]wPrintStart [16:36:14]Write to MH i2c: 01 00 00 2A 6F 99 [16:36:14]Write i2c OK [16:36:14]MH_I2C_Read... [16:36:14]Read from MH i2c: 01 [16:36:14]MH_I2C_Read... [16:36:14]Read from MH i2c: 01 07 00 [16:36:14]MH_I2C_Read... [16:36:14]Read from MH i2c: 01 07 00 2A 6F 00 00 00 00 00 FF 0F AE [16:36:14]RasterBufferAndPrint [16:36:14]line Счет N : (1)209864 [16:36:14]line ИНН: 02508201610067 [16:36:14]line Контрольно-Кассовый Чек [16:36:14]line ПРОДАЖА [16:36:14]line ТРК (МРК, ГНК) : 12 [16:36:14]line Товар: 2710124130 [16:36:14]line Аи-92-К-3 [16:36:14]line 7.480 * 66.90 [16:36:14]line = 500.41 [16:36:14]line НДС 12% НСП 1% [16:36:14]line > о реализуемом товаре [16:36:14]line ИТОГО: 500.41 [16:36:14]line НСП 1% : 4.43 [16:36:14]line НДС 12% : 53.14 [16:36:14]line Наличными: 0.00 [16:36:14]line Безнал.: 500.41 [16:36:14]line Место: АЗС № 86 "Партнер Нефть" [16:36:14]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [16:36:14]line СНО: Общий режим [16:36:14]line Чек 276 21.10.2024 16:36 [16:36:14]line Смена: 460 ФФД: 1.0 [16:36:14]line ЗНМ: 0300000155 [16:36:14]line РНМ: 0000000000100030 [16:36:14]line Версия ККМ: 001 [16:36:14]line Платежная система: Mbank [16:36:14]line ФМ: 0000000000965340 [16:36:14]line ФД: 187812 [16:36:14]line ФПД: 230080197948616 [16:36:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T163617&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187812&fm=230080197948616&tin=02508201610067®Number=0000000000100030&sum=50041 [16:36:14]written 0, free lines is 4095 [16:36:14]OFD Sender: Processing packet 187812 [packets to send 1062, broken 1061] [16:36:14]ProducePacketName [16:36:14]name=ofd_packets/00187812 [16:36:14]OFD Sender: To server: pG, [16:36:14]CommunicateWithHost lk.salyk.kg:30040 [16:36:14]ConnectInit lk.salyk.kg [16:36:15]Write to MH i2c: 01 00 00 53 6F C2 [16:36:15]Write i2c OK [16:36:15]MH_I2C_Read... [16:36:15]Read from MH i2c: 01 [16:36:15]MH_I2C_Read... [16:36:15]Read from MH i2c: 01 07 00 [16:36:15]MH_I2C_Read... [16:36:15]Read from MH i2c: 01 07 00 53 6F 00 00 00 00 00 95 0C 6A [16:36:15]RasterBufferAndPrint [16:36:15]line [16:36:15]line [16:36:15]line [16:36:15]line [16:36:15]line [16:36:15]written 0, free lines is 3224 [16:36:15]MH_Cut [16:36:15]Write to MH i2c: D1 01 00 5A 6F 01 9B [16:36:15]Write i2c OK [16:36:15]MH_I2C_Read... [16:36:15]Read from MH i2c: D1 [16:36:15]MH_I2C_Read... [16:36:15]Read from MH i2c: D1 01 00 [16:36:15]MH_I2C_Read... [16:36:15]Read from MH i2c: D1 01 00 5A 6F 00 9A [16:36:15]Write to MH i2c: 01 00 00 5B 6F CA [16:36:15]Write i2c OK [16:36:15]MH_I2C_Read... [16:36:15]Connected sock=11 [16:36:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 59 EF 07 01 19 8B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 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 14 01 00 00 F4 03 04 00 01 83 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 A4 DD 02 00 35 04 06 00 D1 41 B8 77 F4 C8 A4 F7 43 21 5B 7E FB A1 [16:36:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 14 A1 47 00 28 FE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 A4 DD 02 00 F4 03 04 00 F1 2C 16 67 B6 04 01 00 00 00 8E 23 78 84 52 56 30 [16:36:15]CommunicateWithHost err = 0 [16:36:15]CheckOFDResponse [16:36:15]1017 (14) - 77093643461234 [16:36:15]1041 (16) - 0000000000965340 [16:36:15]1040 (4) - 187812 [16:36:15]1012 (4) - 21.10.2024 10:29 [16:36:15]1206 (1) - 0 [16:36:15]OFD Sender: Remove packet 187812 [16:36:15]ProducePacketName [16:36:15]name=ofd_packets/00187812 [16:36:15]NVStorageDeleteData [16:36:15]OFD Sender: No OFD packet to send [16:36:16]*** Cut start [16:36:16]*** Partial cut [16:36:16]*** CUTSNS_PIN = 1 [16:36:16]*** CUTSNS_PIN = 0 [16:36:16]*** Brake cut motor [16:36:16]Read from MH i2c: 01 [16:36:16]MH_I2C_Read... [16:36:16]*** Stop cut motor [16:36:16]*** Cut end [16:36:16]Read from MH i2c: 01 07 00 [16:36:16]MH_I2C_Read... [16:36:16]Read from MH i2c: 01 07 00 5B 6F 00 00 00 00 00 FF 0F DF [16:36:16]process_action close_receipt done [16:36:16]requested_data is exist [16:36:16]produce_requested_data [16:36:16]requested_item fm.sn is exist - process it [16:36:16]wFMCommunicate request_size=4 [16:36:16]MH_SAM_APDU [16:36:16]CAPDU: 80 11 00 00 [16:36:16]Write to MH i2c: E2 08 00 5C 6F 80 11 00 00 00 00 00 00 45 [16:36:16]Write i2c OK [16:36:16]MH_I2C_Read... [16:36:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:36:16]Read from MH i2c: E2 [16:36:16]MH_I2C_Read... [16:36:16]Read from MH i2c: E2 17 00 [16:36:16]MH_I2C_Read... [16:36:16]Read from MH i2c: E2 17 00 5C 6F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 93 [16:36:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [16:36:16]wFMCommunicate OK [16:36:16]requested_item fd.num is exist - process it [16:36:16]SAM_PROTO_GetFieldsCounters [16:36:16]wFMCommunicate request_size=4 [16:36:16]MH_SAM_APDU [16:36:16]CAPDU: 80 13 00 00 [16:36:16]Write to MH i2c: E2 08 00 5D 6F 80 13 00 00 00 00 00 00 48 [16:36:16]Write i2c OK [16:36:16]MH_I2C_Read... [16:36:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:36:17]Read from MH i2c: E2 [16:36:17]MH_I2C_Read... [16:36:17]Read from MH i2c: E2 62 00 [16:36:17]MH_I2C_Read... [16:36:17]Read from MH i2c: E2 62 00 5D 6F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 A4 DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 14 01 00 00 5E 04 04 00 14 01 00 00 57 04 04 00 15 01 00 00 19 04 04 00 00 00 00 00 90 00 DE [16:36:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 A4 DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 14 01 00 00 5E 04 04 00 14 01 00 00 57 04 04 00 15 01 00 00 19 04 04 00 00 00 00 00 90 00 [16:36:17]wFMCommunicate OK [16:36:17]SAM_PROTO_GetFieldsCounters done [16:36:17]requested_item shift.num is exist - process it [16:36:17]requested_item shift.opened is exist - process it [16:36:17]req_shift_opened [16:36:17]FM_GetShiftState [16:36:17]SAM_PROTO_GetShiftState [16:36:17]wFMCommunicate request_size=4 [16:36:17]MH_SAM_APDU [16:36:17]CAPDU: 80 13 01 00 [16:36:17]Write to MH i2c: E2 08 00 5E 6F 80 13 01 00 00 00 00 00 4A [16:36:17]Write i2c OK [16:36:17]MH_I2C_Read... [16:36:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:36:17]Read from MH i2c: E2 [16:36:17]MH_I2C_Read... [16:36:17]Read from MH i2c: E2 0E 00 [16:36:17]MH_I2C_Read... [16:36:17]Read from MH i2c: E2 0E 00 5E 6F 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 A9 [16:36:17]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [16:36:17]wFMCommunicate OK [16:36:17]SAM_PROTO_GetShiftState done [16:36:17]FM_GetShiftState done [16:36:17]req_shift_opened done [16:36:17]requested_item shift.open_date is exist - process it [16:36:17]req_shift_open_date [16:36:17]req_shift_open_date done [16:36:17]produce_requested_data done [16:36:17]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187812,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [16:36:17]process_action_free close_receipt [16:36:17]json_value_free [16:36:17]json_value_free done [16:36:17]process_json_proto returns [16:36:17]Send response to host [16:36:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187812,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [16:36:17]free response buf [16:36:17]execute_script done [16:36:17]execute_script returns [16:36:17]free content buf [16:36:17]Sock 8.Close socket [16:36:17]Sock 8.Thread stoped [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:53]accept exits with 9 [16:37:53]New connection [16:37:53]New thread 3067014500 created [16:37:53]Thread 3067157860 joined [16:37:53]Waiting for new connection... [16:37:53] Sock 9.Parse request [16:37:53]Sock 9.Check first char [16:37:53]Sock 9.First char is OK [16:37:53]request: POST /json_proto HTTP/1.0 [16:37:53]Method: POST [16:37:53]URL: /json_proto [16:37:53]Method is POST - this is cgi request [16:37:53]url: /json_proto [16:37:53]query_string will be loaded in cgi processing [16:37:53]execute_cgi json_proto POST (null) [16:37:53]execute_cgi path=json_proto method=POST [16:37:53]POST find Content-Length [16:37:53]Host: 172.17.42.131:8080 [16:37:53]Content-Length: 789 [16:37:53]Content-Type: application/json [16:37:53] [16:37:53]POST finish read [16:37:53]Found Content-Length = 789 [16:37:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209865", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 52.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\u000A03537", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:37:53]execute_script... [16:37: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)209865", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 52.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\u000A03537", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:37:53]POST & json_proto [16:37:53]process_json_proto [16:37:53]json parsed OK: [16:37:53]protocol is kg_v1.0 [16:37:53]action value=close_receipt [16:37:53]process_action close_receipt [16:37:53]cmd_close_receipt [16:37:53]MH_GetDate [16:37:53]Write to MH i2c: F0 00 00 5F 6F BD [16:37:53]Write i2c OK [16:37:53]MH_I2C_Read... [16:37:53]Read from MH i2c: F0 [16:37:53]MH_I2C_Read... [16:37:53]Read from MH i2c: F0 09 00 [16:37:53]MH_I2C_Read... [16:37:53]Read from MH i2c: F0 09 00 5F 6F 00 65 83 16 67 A0 18 CA 66 13 [16:37:53]GetLastDocTimeStamp 1729528577 [16:37:53]current date 1729528677 [16:37:53]FM_GetShiftState [16:37:53]SAM_PROTO_GetShiftState [16:37:53]wFMCommunicate request_size=4 [16:37:53]MH_SAM_APDU [16:37:53]CAPDU: 80 13 01 00 [16:37:53]Write to MH i2c: E2 08 00 60 6F 80 13 01 00 00 00 00 00 4C [16:37:53]Write i2c OK [16:37:53]MH_I2C_Read... [16:37:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:37:53]Read from MH i2c: E2 [16:37:53]MH_I2C_Read... [16:37:53]Read from MH i2c: E2 0E 00 [16:37:53]MH_I2C_Read... [16:37:53]Read from MH i2c: E2 0E 00 60 6F 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 AB [16:37:53]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [16:37:53]wFMCommunicate OK [16:37:53]SAM_PROTO_GetShiftState done [16:37:53]FM_GetShiftState done [16:37:53]opened in 1729469754 [16:37:53]opened+sec_in_day 1729556154 [16:37:53]quantity*price = 0 [16:37:53]sum+1 = 1 [16:37:53]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 277 21.10.2024 16:37 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Талоны: Топливная Карта 03537 ФМ: 0000000000965340 ФД: 187813 ФПД: 275595004223739 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T163757&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187813&fm=275595004223739&tin=02508201610067®Number=0000000000100030&sum=0 [16:37:54]StoreToDocumentArchive [16:37:54]shift 460 fd 187813 [16:37:54]save to /storage/0460/doc_00187813 [16:37:54]save last doc name /storage/0460/doc_00187813 to /storage/kkm_last_doc_name [16:37:54]save OK [16:37:54]Clear old archive folders... [16:37:54]ProcessDocumentItem done err = 0, tmpTLVsize=248 [16:37:54]tlvbuf is 01236D10 [16:37:54]SAM_PROTO_ClearQueue [16:37:54]wFMCommunicate request_size=4 [16:37:54]MH_SAM_APDU [16:37:54]CAPDU: 80 09 00 00 [16:37:54]Write to MH i2c: E2 08 00 6D 6F 80 09 00 00 00 00 00 00 4E [16:37:54]Write i2c OK [16:37:54]MH_I2C_Read... [16:37:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:37:54]Read from MH i2c: E2 [16:37:54]MH_I2C_Read... [16:37:54]Read from MH i2c: E2 03 00 [16:37:54]MH_I2C_Read... [16:37:54]Read from MH i2c: E2 03 00 6D 6F 00 90 00 50 [16:37:54]RAPDU: 90 00 [16:37:54]wFMCommunicate OK [16:37:54]SAM_PROTO_ClearQueue done [16:37:54]KKMCreateOFDPacket [16:37:54]OFDProtocolAddRootSTLVToBuf [16:37:54]FM_MakeSignedData [16:37:54]FM_MakeSignedData [16:37:54]SAM_PROTO_SignData [16:37:54]wFMCommunicate request_size=4 [16:37:54]MH_SAM_APDU [16:37:54]CAPDU: 80 0D 01 02 [16:37:54]Write to MH i2c: E2 08 00 6E 6F 80 0D 01 02 00 00 00 00 56 [16:37:54]Write i2c OK [16:37:54]MH_I2C_Read... [16:37:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:37:54]Read from MH i2c: E2 [16:37:54]MH_I2C_Read... [16:37:54]Read from MH i2c: E2 03 00 [16:37:54]MH_I2C_Read... [16:37:54]Read from MH i2c: E2 03 00 6E 6F 00 90 00 51 [16:37:54]RAPDU: 90 00 [16:37:54]wFMCommunicate OK [16:37:54]wFMCommunicate request_size=255 [16:37:54]MH_SAM_APDU [16:37:54]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 20 CB 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 15 01 00 00 F4 03 04 00 65 83 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 A5 DD 02 00 35 04 06 00 FA A6 F6 54 [16:37:54]Write to MH i2c: E2 02 01 6F 6F 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 20 CB 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 15 01 00 00 F4 03 04 00 65 83 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 A5 DD 02 00 35 04 06 00 FA A6 F6 54 00 00 3A [16:37:54]Write i2c OK [16:37:54]MH_I2C_Read... [16:37:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:37:54]Read from MH i2c: E2 [16:37:54]MH_I2C_Read... [16:37:54]Read from MH i2c: E2 03 00 [16:37:54]MH_I2C_Read... [16:37:54]Read from MH i2c: E2 03 00 6F 6F 00 90 00 52 [16:37:54]RAPDU: 90 00 [16:37:54]wFMCommunicate OK [16:37:54]wFMCommunicate request_size=7 [16:37:54]MH_SAM_APDU [16:37:54]CAPDU: 80 0D 02 02 02 20 FB [16:37:54]Write to MH i2c: E2 0A 00 70 6F 80 0D 02 02 02 00 20 FB 00 00 78 [16:37:54]Write i2c OK [16:37:54]MH_I2C_Read... [16:37:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:37:54]Read from MH i2c: E2 [16:37:54]MH_I2C_Read... [16:37:54]Read from MH i2c: E2 03 00 [16:37:54]MH_I2C_Read... [16:37:54]Read from MH i2c: E2 03 00 70 6F 00 90 00 53 [16:37:54]RAPDU: 90 00 [16:37:54]wFMCommunicate OK [16:37:54]wFMCommunicate request_size=4 [16:37:54]MH_SAM_APDU [16:37:54]CAPDU: 80 0D 03 02 [16:37:54]Write to MH i2c: E2 08 00 71 6F 80 0D 03 02 00 00 00 00 5B [16:37:54]Write i2c OK [16:37:54]MH_I2C_Read... [16:37:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:37:54]Read from MH i2c: E2 [16:37:54]MH_I2C_Read... [16:37:54]Read from MH i2c: E2 0B 00 [16:37:54]MH_I2C_Read... [16:37:54]Read from MH i2c: E2 0B 00 71 6F 00 02 FE D2 26 9D 36 F4 C7 90 00 E2 [16:37:54]RAPDU: 02 FE D2 26 9D 36 F4 C7 90 00 [16:37:54]wFMCommunicate OK [16:37:54]SAM_PROTO_SignData done [16:37:54]FM_MakeSignedData done [16:37:54]CreateOFDProtocolMessage [16:37:54]wFMCommunicate request_size=4 [16:37:54]MH_SAM_APDU [16:37:54]CAPDU: 80 11 00 00 [16:37:54]Write to MH i2c: E2 08 00 72 6F 80 11 00 00 00 00 00 00 5B [16:37:54]Write i2c OK [16:37:54]MH_I2C_Read... [16:37:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:37:54]Read from MH i2c: E2 [16:37:54]MH_I2C_Read... [16:37:54]Read from MH i2c: E2 17 00 [16:37:54]MH_I2C_Read... [16:37:54]Read from MH i2c: E2 17 00 72 6F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 A9 [16:37:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [16:37:54]wFMCommunicate OK [16:37:54]CreateOFDProtocolMessage done [16:37:54]OFDSenderStorePacket 187813 [16:37:54]StoreOFDPacket docnum=187813 [16:37:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 52 FF 04 01 F7 B0 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 20 CB 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 15 01 00 00 F4 03 04 00 65 83 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 A5 DD 02 00 35 04 06 00 FA A6 F6 54 20 FB 02 FE D2 26 9D 36 F4 C7 [16:37:54]CheckFolder [16:37:54]dirname=/storage/ofd_packets [16:37:54]CheckFolder done [16:37:54]ProducePacketName [16:37:54]name=ofd_packets/00187813 [16:37:54]NVStorageSaveData ofd_packets/00187813 [16:37:54]File name is /storage/ofd_packets/00187813 [16:37:54]Write 298 bytes [16:37:54]NVStorageSaveData done [16:37:54]OFDSenderStorePacket done [16:37:54]KKMCreateOFDPacket done [16:37:54]NVStorageSaveData kkm_last_timestamp [16:37:54]File name is /storage/kkm_last_timestamp [16:37:54]Write 4 bytes [16:37:54]NVStorageSaveData done [16:37:54]ExternCall_PrintAddStr [16:37:54]wPrintStart [16:37:54]Write to MH i2c: 01 00 00 73 6F E2 [16:37:54]Write i2c OK [16:37:54]MH_I2C_Read... [16:37:54]Read from MH i2c: 01 [16:37:54]MH_I2C_Read... [16:37:54]Read from MH i2c: 01 07 00 [16:37:54]MH_I2C_Read... [16:37:54]Read from MH i2c: 01 07 00 73 6F 00 00 00 00 00 FF 0F F7 [16:37:54]RasterBufferAndPrint [16:37:54]line Счет N : (1)209865 [16:37:54]line ИНН: 02508201610067 [16:37:54]line Контрольно-Кассовый Чек [16:37:54]line ПРОДАЖА [16:37:54]line ТРК (МРК, ГНК) : 51 [16:37:54]line Товар: 2710194210 [16:37:54]line ДТ-К-5 [16:37:54]line 52.000 * 0.00 [16:37:54]line = 0.00 [16:37:54]line НДС 12% НСП 1% [16:37:54]line > о реализуемом товаре [16:37:54]line ИТОГО: 0.00 [16:37:54]line НСП 1% : 0.00 [16:37:54]line НДС 12% : 0.00 [16:37:54]line Наличными: 0.00 [16:37:54]line Безнал.: 0.00 [16:37:54]line Место: АЗС № 86 "Партнер Нефть" [16:37:54]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [16:37:54]line СНО: Общий режим [16:37:54]line Чек 277 21.10.2024 16:37 [16:37:54]line Смена: 460 ФФД: 1.0 [16:37:54]line ЗНМ: 0300000155 [16:37:54]line РНМ: 0000000000100030 [16:37:54]line Версия ККМ: 001 [16:37:54]line Талоны: Топливная Карта [16:37:54]line 03537 [16:37:54]line ФМ: 0000000000965340 [16:37:54]line ФД: 187813 [16:37:54]line ФПД: 275595004223739 [16:37:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T163757&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187813&fm=275595004223739&tin=02508201610067®Number=0000000000100030&sum=0 [16:37:54]written 0, free lines is 4095 [16:37:54]OFD Sender: Processing packet 187813 [packets to send 1062, broken 1061] [16:37:54]ProducePacketName [16:37:54]name=ofd_packets/00187813 [16:37:54]OFD Sender: To server: pG, [16:37:54]CommunicateWithHost lk.salyk.kg:30040 [16:37:54]ConnectInit lk.salyk.kg [16:37:55]Write to MH i2c: 01 00 00 9D 6F 0C [16:37:55]Write i2c OK [16:37:55]MH_I2C_Read... [16:37:55]Read from MH i2c: 01 [16:37:55]MH_I2C_Read... [16:37:55]Read from MH i2c: 01 07 00 [16:37:55]MH_I2C_Read... [16:37:55]Read from MH i2c: 01 07 00 9D 6F 00 00 00 00 00 80 0C 9F [16:37:55]RasterBufferAndPrint [16:37:55]line [16:37:55]line [16:37:55]line [16:37:55]line [16:37:55]line [16:37:55]written 0, free lines is 3204 [16:37:55]MH_Cut [16:37:55]Write to MH i2c: D1 01 00 A4 6F 01 E5 [16:37:55]Write i2c OK [16:37:55]MH_I2C_Read... [16:37:55]Read from MH i2c: D1 [16:37:55]MH_I2C_Read... [16:37:55]Read from MH i2c: D1 01 00 [16:37:55]MH_I2C_Read... [16:37:55]Read from MH i2c: D1 01 00 A4 6F 00 E4 [16:37:55]Write to MH i2c: 01 00 00 A5 6F 14 [16:37:55]Write i2c OK [16:37:55]MH_I2C_Read... [16:37:55]Connected sock=11 [16:37:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 52 FF 04 01 F7 B0 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 20 CB 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 15 01 00 00 F4 03 04 00 65 83 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 A5 DD 02 00 35 04 06 00 FA A6 F6 54 20 FB 02 FE D2 26 9D 36 F4 C7 [16:37:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 0D 69 47 00 00 89 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 A5 DD 02 00 F4 03 04 00 55 2D 16 67 B6 04 01 00 00 C9 F6 2E 2B 73 9F F6 24 [16:37:55]CommunicateWithHost err = 0 [16:37:55]CheckOFDResponse [16:37:55]1017 (14) - 77093643461234 [16:37:55]1041 (16) - 0000000000965340 [16:37:55]1040 (4) - 187813 [16:37:55]1012 (4) - 21.10.2024 10:30 [16:37:55]1206 (1) - 0 [16:37:55]OFD Sender: Remove packet 187813 [16:37:55]ProducePacketName [16:37:55]name=ofd_packets/00187813 [16:37:55]NVStorageDeleteData [16:37:56]*** Cut start [16:37:56]*** Partial cut [16:37:56]*** CUTSNS_PIN = 1 [16:37:56]*** CUTSNS_PIN = 0 [16:37:56]OFD Sender: No OFD packet to send [16:37:56]*** Brake cut motor [16:37:56]Read from MH i2c: 01 [16:37:56]MH_I2C_Read... [16:37:56]*** Stop cut motor [16:37:56]*** Cut end [16:37:56]Read from MH i2c: 01 07 00 [16:37:56]MH_I2C_Read... [16:37:56]Read from MH i2c: 01 07 00 A5 6F 00 00 00 00 00 FF 0F 29 [16:37:56]process_action close_receipt done [16:37:56]requested_data is exist [16:37:56]produce_requested_data [16:37:56]requested_item fm.sn is exist - process it [16:37:56]wFMCommunicate request_size=4 [16:37:56]MH_SAM_APDU [16:37:56]CAPDU: 80 11 00 00 [16:37:56]Write to MH i2c: E2 08 00 A6 6F 80 11 00 00 00 00 00 00 8F [16:37:56]Write i2c OK [16:37:56]MH_I2C_Read... [16:37:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:37:57]Read from MH i2c: E2 [16:37:57]MH_I2C_Read... [16:37:57]Read from MH i2c: E2 17 00 [16:37:57]MH_I2C_Read... [16:37:57]Read from MH i2c: E2 17 00 A6 6F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 DD [16:37:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [16:37:57]wFMCommunicate OK [16:37:57]requested_item fd.num is exist - process it [16:37:57]SAM_PROTO_GetFieldsCounters [16:37:57]wFMCommunicate request_size=4 [16:37:57]MH_SAM_APDU [16:37:57]CAPDU: 80 13 00 00 [16:37:57]Write to MH i2c: E2 08 00 A7 6F 80 13 00 00 00 00 00 00 92 [16:37:57]Write i2c OK [16:37:57]MH_I2C_Read... [16:37:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:37:57]Read from MH i2c: E2 [16:37:57]MH_I2C_Read... [16:37:57]Read from MH i2c: E2 62 00 [16:37:57]MH_I2C_Read... [16:37:57]Read from MH i2c: E2 62 00 A7 6F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 A5 DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 15 01 00 00 5E 04 04 00 15 01 00 00 57 04 04 00 16 01 00 00 19 04 04 00 00 00 00 00 90 00 2C [16:37:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 A5 DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 15 01 00 00 5E 04 04 00 15 01 00 00 57 04 04 00 16 01 00 00 19 04 04 00 00 00 00 00 90 00 [16:37:57]wFMCommunicate OK [16:37:57]SAM_PROTO_GetFieldsCounters done [16:37:57]requested_item shift.num is exist - process it [16:37:57]requested_item shift.opened is exist - process it [16:37:57]req_shift_opened [16:37:57]FM_GetShiftState [16:37:57]SAM_PROTO_GetShiftState [16:37:57]wFMCommunicate request_size=4 [16:37:57]MH_SAM_APDU [16:37:57]CAPDU: 80 13 01 00 [16:37:57]Write to MH i2c: E2 08 00 A8 6F 80 13 01 00 00 00 00 00 94 [16:37:57]Write i2c OK [16:37:57]MH_I2C_Read... [16:37:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:37:57]Read from MH i2c: E2 [16:37:57]MH_I2C_Read... [16:37:57]Read from MH i2c: E2 0E 00 [16:37:57]MH_I2C_Read... [16:37:57]Read from MH i2c: E2 0E 00 A8 6F 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 F3 [16:37:57]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [16:37:57]wFMCommunicate OK [16:37:57]SAM_PROTO_GetShiftState done [16:37:57]FM_GetShiftState done [16:37:57]req_shift_opened done [16:37:57]requested_item shift.open_date is exist - process it [16:37:57]req_shift_open_date [16:37:57]req_shift_open_date done [16:37:57]produce_requested_data done [16:37:57]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187813,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [16:37:57]process_action_free close_receipt [16:37:57]json_value_free [16:37:57]json_value_free done [16:37:57]process_json_proto returns [16:37:57]Send response to host [16:37:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187813,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [16:37:57]free response buf [16:37:57]execute_script done [16:37:57]execute_script returns [16:37:57]free content buf [16:37:57]Sock 9.Close socket [16:37:57]Sock 9.Thread stoped [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:17]OFD Sender: No OFD packet to send [16:40:22]OFD Sender: No OFD packet to send [16:40:24]accept exits with 8 [16:40:24]New connection [16:40:24]New thread 3067157860 created [16:40:24]Thread 3067014500 joined [16:40:24]Waiting for new connection... [16:40:24] Sock 8.Parse request [16:40:24]Sock 8.Check first char [16:40:24]Sock 8.First char is OK [16:40:24]request: POST /json_proto HTTP/1.0 [16:40:24]Method: POST [16:40:24]URL: /json_proto [16:40:24]Method is POST - this is cgi request [16:40:24]url: /json_proto [16:40:24]query_string will be loaded in cgi processing [16:40:24]execute_cgi json_proto POST (null) [16:40:24]execute_cgi path=json_proto method=POST [16:40:24]POST find Content-Length [16:40:24]Host: 172.17.42.131:8080 [16:40:24]Content-Length: 678 [16:40:24]Content-Type: application/json [16:40:24] [16:40:24]POST finish read [16:40:24]Found Content-Length = 678 [16:40:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209866", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 10.110, "sum" : 750.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 750.00, "total" : 750.00, "payments": [ { "type": 0, "sum" : 750.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:40:24]execute_script... [16:40: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)209866", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 10.110, "sum" : 750.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 750.00, "total" : 750.00, "payments": [ { "type": 0, "sum" : 750.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:40:24]POST & json_proto [16:40:24]process_json_proto [16:40:24]json parsed OK: [16:40:24]protocol is kg_v1.0 [16:40:24]action value=close_receipt [16:40:24]process_action close_receipt [16:40:24]cmd_close_receipt [16:40:24]MH_GetDate [16:40:24]Write to MH i2c: F0 00 00 A9 6F 07 [16:40:24]Write i2c OK [16:40:24]MH_I2C_Read... [16:40:24]Read from MH i2c: F0 [16:40:24]MH_I2C_Read... [16:40:24]Read from MH i2c: F0 09 00 [16:40:24]MH_I2C_Read... [16:40:24]Read from MH i2c: F0 09 00 A9 6F 00 FD 83 16 67 A0 18 CA 66 F5 [16:40:24]GetLastDocTimeStamp 1729528677 [16:40:24]current date 1729528829 [16:40:24]FM_GetShiftState [16:40:24]SAM_PROTO_GetShiftState [16:40:24]wFMCommunicate request_size=4 [16:40:24]MH_SAM_APDU [16:40:24]CAPDU: 80 13 01 00 [16:40:24]Write to MH i2c: E2 08 00 AA 6F 80 13 01 00 00 00 00 00 96 [16:40:24]Write i2c OK [16:40:24]MH_I2C_Read... [16:40:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:40:24]Read from MH i2c: E2 [16:40:24]MH_I2C_Read... [16:40:24]Read from MH i2c: E2 0E 00 [16:40:24]MH_I2C_Read... [16:40:24]Read from MH i2c: E2 0E 00 AA 6F 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 F5 [16:40:24]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [16:40:24]wFMCommunicate OK [16:40:24]SAM_PROTO_GetShiftState done [16:40:24]FM_GetShiftState done [16:40:24]opened in 1729469754 [16:40:24]opened+sec_in_day 1729556154 [16:40:24]quantity*price = 75016 [16:40:24]sum+1 = 75017 [16:40:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 750.00 Внесено: 750.00 СДАЧА: 0.00 НСП 1% : 6.64 НДС 12% : 79.66 Наличными: 750.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 278 21.10.2024 16:40 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 187814 ФПД: 173224848495528 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T164029&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187814&fm=173224848495528&tin=02508201610067®Number=0000000000100030&sum=75000 [16:40:25]StoreToDocumentArchive [16:40:25]shift 460 fd 187814 [16:40:25]save to /storage/0460/doc_00187814 [16:40:25]save last doc name /storage/0460/doc_00187814 to /storage/kkm_last_doc_name [16:40:25]save OK [16:40:25]Clear old archive folders... [16:40:25]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:40:25]tlvbuf is 0124A560 [16:40:25]SAM_PROTO_ClearQueue [16:40:25]wFMCommunicate request_size=4 [16:40:25]MH_SAM_APDU [16:40:25]CAPDU: 80 09 00 00 [16:40:25]Write to MH i2c: E2 08 00 B7 6F 80 09 00 00 00 00 00 00 98 [16:40:25]Write i2c OK [16:40:25]MH_I2C_Read... [16:40:26]Read from MH i2c: E2 [16:40:26]MH_I2C_Read... [16:40:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:40:26]Read from MH i2c: E2 03 00 [16:40:26]MH_I2C_Read... [16:40:26]Read from MH i2c: E2 03 00 B7 6F 00 90 00 9A [16:40:26]RAPDU: 90 00 [16:40:26]wFMCommunicate OK [16:40:26]SAM_PROTO_ClearQueue done [16:40:26]KKMCreateOFDPacket [16:40:26]OFDProtocolAddRootSTLVToBuf [16:40:26]FM_MakeSignedData [16:40:26]FM_MakeSignedData [16:40:26]SAM_PROTO_SignData [16:40:26]wFMCommunicate request_size=4 [16:40:26]MH_SAM_APDU [16:40:26]CAPDU: 80 0D 01 02 [16:40:26]Write to MH i2c: E2 08 00 B8 6F 80 0D 01 02 00 00 00 00 A0 [16:40:26]Write i2c OK [16:40:26]MH_I2C_Read... [16:40:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:40:26]Read from MH i2c: E2 [16:40:26]MH_I2C_Read... [16:40:26]Read from MH i2c: E2 03 00 [16:40:26]MH_I2C_Read... [16:40:26]Read from MH i2c: E2 03 00 B8 6F 00 90 00 9B [16:40:26]RAPDU: 90 00 [16:40:26]wFMCommunicate OK [16:40:26]wFMCommunicate request_size=255 [16:40:26]MH_SAM_APDU [16:40:26]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 7E 27 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 08 25 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 24 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 98 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1E 1F 00 00 00 00 07 04 06 00 F8 24 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 01 00 00 F4 03 04 00 FD 83 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 A6 DD 02 00 35 04 06 00 9D [16:40:26]Write to MH i2c: E2 02 01 B9 6F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 7E 27 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 08 25 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 24 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 98 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1E 1F 00 00 00 00 07 04 06 00 F8 24 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 01 00 00 F4 03 04 00 FD 83 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 A6 DD 02 00 35 04 06 00 9D 00 00 91 [16:40:26]Write i2c OK [16:40:26]MH_I2C_Read... [16:40:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:40:26]Read from MH i2c: E2 [16:40:26]MH_I2C_Read... [16:40:26]Read from MH i2c: E2 03 00 [16:40:26]MH_I2C_Read... [16:40:26]Read from MH i2c: E2 03 00 B9 6F 00 90 00 9C [16:40:26]RAPDU: 90 00 [16:40:26]wFMCommunicate OK [16:40:26]wFMCommunicate request_size=10 [16:40:26]MH_SAM_APDU [16:40:26]CAPDU: 80 0D 02 02 05 8C 0D 8F 93 A8 [16:40:26]Write to MH i2c: E2 0D 00 BA 6F 80 0D 02 02 05 00 8C 0D 8F 93 A8 00 00 10 [16:40:26]Write i2c OK [16:40:26]MH_I2C_Read... [16:40:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:40:26]Read from MH i2c: E2 [16:40:26]MH_I2C_Read... [16:40:26]Read from MH i2c: E2 03 00 [16:40:26]MH_I2C_Read... [16:40:26]Read from MH i2c: E2 03 00 BA 6F 00 90 00 9D [16:40:26]RAPDU: 90 00 [16:40:26]wFMCommunicate OK [16:40:26]wFMCommunicate request_size=4 [16:40:26]MH_SAM_APDU [16:40:26]CAPDU: 80 0D 03 02 [16:40:26]Write to MH i2c: E2 08 00 BB 6F 80 0D 03 02 00 00 00 00 A5 [16:40:26]Write i2c OK [16:40:26]MH_I2C_Read... [16:40:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:40:26]Read from MH i2c: E2 [16:40:26]MH_I2C_Read... [16:40:26]Read from MH i2c: E2 0B 00 [16:40:26]MH_I2C_Read... [16:40:26]Read from MH i2c: E2 0B 00 BB 6F 00 9A 78 3C A7 0C 48 EF 30 90 00 0E [16:40:26]RAPDU: 9A 78 3C A7 0C 48 EF 30 90 00 [16:40:26]wFMCommunicate OK [16:40:26]SAM_PROTO_SignData done [16:40:26]FM_MakeSignedData done [16:40:26]CreateOFDProtocolMessage [16:40:26]wFMCommunicate request_size=4 [16:40:26]MH_SAM_APDU [16:40:26]CAPDU: 80 11 00 00 [16:40:26]Write to MH i2c: E2 08 00 BC 6F 80 11 00 00 00 00 00 00 A5 [16:40:26]Write i2c OK [16:40:26]MH_I2C_Read... [16:40:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:40:26]Read from MH i2c: E2 [16:40:26]MH_I2C_Read... [16:40:26]Read from MH i2c: E2 17 00 [16:40:26]MH_I2C_Read... [16:40:26]Read from MH i2c: E2 17 00 BC 6F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 F3 [16:40:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [16:40:26]wFMCommunicate OK [16:40:26]CreateOFDProtocolMessage done [16:40:26]OFDSenderStorePacket 187814 [16:40:26]StoreOFDPacket docnum=187814 [16:40:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 35 B5 07 01 9B 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 7E 27 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 08 25 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 24 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 98 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1E 1F 00 00 00 00 07 04 06 00 F8 24 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 01 00 00 F4 03 04 00 FD 83 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 A6 DD 02 00 35 04 06 00 9D 8C 0D 8F 93 A8 9A 78 3C A7 0C 48 EF 30 [16:40:26]CheckFolder [16:40:26]dirname=/storage/ofd_packets [16:40:26]CheckFolder done [16:40:26]ProducePacketName [16:40:26]name=ofd_packets/00187814 [16:40:26]NVStorageSaveData ofd_packets/00187814 [16:40:26]File name is /storage/ofd_packets/00187814 [16:40:26]Write 301 bytes [16:40:26]NVStorageSaveData done [16:40:26]OFDSenderStorePacket done [16:40:26]KKMCreateOFDPacket done [16:40:26]NVStorageSaveData kkm_last_timestamp [16:40:26]File name is /storage/kkm_last_timestamp [16:40:26]Write 4 bytes [16:40:26]NVStorageSaveData done [16:40:26]ExternCall_PrintAddStr [16:40:26]wPrintStart [16:40:26]Write to MH i2c: 01 00 00 BD 6F 2C [16:40:26]Write i2c OK [16:40:26]MH_I2C_Read... [16:40:26]Read from MH i2c: 01 [16:40:26]MH_I2C_Read... [16:40:26]Read from MH i2c: 01 07 00 [16:40:26]MH_I2C_Read... [16:40:26]Read from MH i2c: 01 07 00 BD 6F 00 00 00 00 00 FF 0F 41 [16:40:26]RasterBufferAndPrint [16:40:26]line Счет N : (1)209866 [16:40:26]line ИНН: 02508201610067 [16:40:26]line Контрольно-Кассовый Чек [16:40:26]line ПРОДАЖА [16:40:26]line ТРК (МРК, ГНК) : 23 [16:40:26]line Товар: 2710124500 [16:40:26]line Аи-95-К-3 [16:40:26]line 10.110 * 74.20 [16:40:26]line = 750.16 [16:40:26]line НДС 12% НСП 1% [16:40:26]line > о реализуемом товаре [16:40:26]line ОКРУГЛЕНИЕ: -0.16 [16:40:26]line ИТОГО: 750.00 [16:40:26]line Внесено: 750.00 [16:40:26]line СДАЧА: 0.00 [16:40:26]line НСП 1% : 6.64 [16:40:26]line НДС 12% : 79.66 [16:40:26]line Наличными: 750.00 [16:40:26]line Безнал.: 0.00 [16:40:26]line Место: АЗС № 86 "Партнер Нефть" [16:40:26]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [16:40:26]line СНО: Общий режим [16:40:26]line Чек 278 21.10.2024 16:40 [16:40:26]line Смена: 460 ФФД: 1.0 [16:40:26]line ЗНМ: 0300000155 [16:40:26]line РНМ: 0000000000100030 [16:40:26]line Версия ККМ: 001 [16:40:26]line ФМ: 0000000000965340 [16:40:26]line ФД: 187814 [16:40:26]line ФПД: 173224848495528 [16:40:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T164029&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187814&fm=173224848495528&tin=02508201610067®Number=0000000000100030&sum=75000 [16:40:26]written 0, free lines is 4095 [16:40:26]OFD Sender: Processing packet 187814 [packets to send 1062, broken 1061] [16:40:26]ProducePacketName [16:40:26]name=ofd_packets/00187814 [16:40:26]OFD Sender: To server: pG, [16:40:26]CommunicateWithHost lk.salyk.kg:30040 [16:40:26]ConnectInit lk.salyk.kg [16:40:26]Connected sock=10 [16:40:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 35 B5 07 01 9B 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 7E 27 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 08 25 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 24 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 98 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1E 1F 00 00 00 00 07 04 06 00 F8 24 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 01 00 00 F4 03 04 00 FD 83 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 A6 DD 02 00 35 04 06 00 9D 8C 0D 8F 93 A8 9A 78 3C A7 0C 48 EF 30 [16:40:26]Write to MH i2c: 01 00 00 E8 6F 57 [16:40:26]Write i2c OK [16:40:26]MH_I2C_Read... [16:40:26]Read from MH i2c: 01 [16:40:26]MH_I2C_Read... [16:40:26]Read from MH i2c: 01 07 00 [16:40:26]MH_I2C_Read... [16:40:26]Read from MH i2c: 01 07 00 E8 6F 00 00 00 00 00 69 0C D3 [16:40:26]RasterBufferAndPrint [16:40:26]line [16:40:26]line [16:40:26]line [16:40:26]line [16:40:26]line [16:40:26]written 0, free lines is 3180 [16:40:26]MH_Cut [16:40:26]Write to MH i2c: D1 01 00 EF 6F 01 30 [16:40:26]Write i2c OK [16:40:26]MH_I2C_Read... [16:40:26]Read from MH i2c: D1 [16:40:26]MH_I2C_Read... [16:40:26]Read from MH i2c: D1 01 00 [16:40:27]MH_I2C_Read... [16:40:27]Read from MH i2c: D1 01 00 EF 6F 00 2F [16:40:27]Write to MH i2c: 01 00 00 F0 6F 5F [16:40:27]Write i2c OK [16:40:27]MH_I2C_Read... [16:40:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 3D 1B 47 00 05 9F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 A6 DD 02 00 F4 03 04 00 ED 2D 16 67 B6 04 01 00 00 82 5A D0 3B 7C 40 B6 58 [16:40:27]CommunicateWithHost err = 0 [16:40:27]CheckOFDResponse [16:40:27]1017 (14) - 77093643461234 [16:40:27]1041 (16) - 0000000000965340 [16:40:27]1040 (4) - 187814 [16:40:27]1012 (4) - 21.10.2024 10:33 [16:40:27]1206 (1) - 0 [16:40:27]OFD Sender: Remove packet 187814 [16:40:27]ProducePacketName [16:40:27]name=ofd_packets/00187814 [16:40:27]NVStorageDeleteData [16:40:27]OFD Sender: No OFD packet to send [16:40:28]*** Cut start [16:40:28]*** Partial cut [16:40:28]*** CUTSNS_PIN = 1 [16:40:28]*** CUTSNS_PIN = 0 [16:40:28]*** Brake cut motor [16:40:28]Read from MH i2c: 01 [16:40:28]MH_I2C_Read... [16:40:28]*** Stop cut motor [16:40:28]*** Cut end [16:40:28]Read from MH i2c: 01 07 00 [16:40:28]MH_I2C_Read... [16:40:28]Read from MH i2c: 01 07 00 F0 6F 00 00 00 00 00 FF 0F 74 [16:40:28]process_action close_receipt done [16:40:28]requested_data is exist [16:40:28]produce_requested_data [16:40:28]requested_item fm.sn is exist - process it [16:40:28]wFMCommunicate request_size=4 [16:40:28]MH_SAM_APDU [16:40:28]CAPDU: 80 11 00 00 [16:40:28]Write to MH i2c: E2 08 00 F1 6F 80 11 00 00 00 00 00 00 DA [16:40:28]Write i2c OK [16:40:28]MH_I2C_Read... [16:40:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:40:28]Read from MH i2c: E2 [16:40:28]MH_I2C_Read... [16:40:28]Read from MH i2c: E2 17 00 [16:40:28]MH_I2C_Read... [16:40:28]Read from MH i2c: E2 17 00 F1 6F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 28 [16:40:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [16:40:28]wFMCommunicate OK [16:40:28]requested_item fd.num is exist - process it [16:40:28]SAM_PROTO_GetFieldsCounters [16:40:28]wFMCommunicate request_size=4 [16:40:28]MH_SAM_APDU [16:40:28]CAPDU: 80 13 00 00 [16:40:28]Write to MH i2c: E2 08 00 F2 6F 80 13 00 00 00 00 00 00 DD [16:40:28]Write i2c OK [16:40:28]MH_I2C_Read... [16:40:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:40:29]Read from MH i2c: E2 [16:40:29]MH_I2C_Read... [16:40:29]Read from MH i2c: E2 62 00 [16:40:29]MH_I2C_Read... [16:40:29]Read from MH i2c: E2 62 00 F2 6F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 A6 DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 16 01 00 00 5E 04 04 00 16 01 00 00 57 04 04 00 17 01 00 00 19 04 04 00 00 00 00 00 90 00 7B [16:40:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 A6 DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 16 01 00 00 5E 04 04 00 16 01 00 00 57 04 04 00 17 01 00 00 19 04 04 00 00 00 00 00 90 00 [16:40:29]wFMCommunicate OK [16:40:29]SAM_PROTO_GetFieldsCounters done [16:40:29]requested_item shift.num is exist - process it [16:40:29]requested_item shift.opened is exist - process it [16:40:29]req_shift_opened [16:40:29]FM_GetShiftState [16:40:29]SAM_PROTO_GetShiftState [16:40:29]wFMCommunicate request_size=4 [16:40:29]MH_SAM_APDU [16:40:29]CAPDU: 80 13 01 00 [16:40:29]Write to MH i2c: E2 08 00 F3 6F 80 13 01 00 00 00 00 00 DF [16:40:29]Write i2c OK [16:40:29]MH_I2C_Read... [16:40:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:40:29]Read from MH i2c: E2 [16:40:29]MH_I2C_Read... [16:40:29]Read from MH i2c: E2 0E 00 [16:40:29]MH_I2C_Read... [16:40:29]Read from MH i2c: E2 0E 00 F3 6F 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 3E [16:40:29]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [16:40:29]wFMCommunicate OK [16:40:29]SAM_PROTO_GetShiftState done [16:40:29]FM_GetShiftState done [16:40:29]req_shift_opened done [16:40:29]requested_item shift.open_date is exist - process it [16:40:29]req_shift_open_date [16:40:29]req_shift_open_date done [16:40:29]produce_requested_data done [16:40:29]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187814,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [16:40:29]process_action_free close_receipt [16:40:29]json_value_free [16:40:29]json_value_free done [16:40:29]process_json_proto returns [16:40:29]Send response to host [16:40:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187814,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [16:40:29]free response buf [16:40:29]execute_script done [16:40:29]execute_script returns [16:40:29]free content buf [16:40:29]Sock 8.Close socket [16:40:29]Sock 8.Thread stoped [16:40:32]OFD Sender: No OFD packet to send [16:40:37]OFD Sender: No OFD packet to send [16:40:42]OFD Sender: No OFD packet to send [16:40:47]OFD Sender: No OFD packet to send [16:40:52]OFD Sender: No OFD packet to send [16:40:57]OFD Sender: No OFD packet to send [16:41:03]OFD Sender: No OFD packet to send [16:41:08]OFD Sender: No OFD packet to send [16:41:13]OFD Sender: No OFD packet to send [16:41:18]OFD Sender: No OFD packet to send [16:41:23]OFD Sender: No OFD packet to send [16:41:28]OFD Sender: No OFD packet to send [16:41:33]OFD Sender: No OFD packet to send [16:41:38]OFD Sender: No OFD packet to send [16:41:43]OFD Sender: No OFD packet to send [16:41:48]OFD Sender: No OFD packet to send [16:41:53]OFD Sender: No OFD packet to send [16:41:58]OFD Sender: No OFD packet to send [16:42:03]OFD Sender: No OFD packet to send [16:42:08]OFD Sender: No OFD packet to send [16:42:13]OFD Sender: No OFD packet to send [16:42:18]OFD Sender: No OFD packet to send [16:42:23]OFD Sender: No OFD packet to send [16:42:28]OFD Sender: No OFD packet to send [16:42:33]OFD Sender: No OFD packet to send [16:42:38]OFD Sender: No OFD packet to send [16:42:43]OFD Sender: No OFD packet to send [16:42:48]OFD Sender: No OFD packet to send [16:42:53]OFD Sender: No OFD packet to send [16:42:58]OFD Sender: No OFD packet to send [16:43:03]OFD Sender: No OFD packet to send [16:43:08]OFD Sender: No OFD packet to send [16:43:13]OFD Sender: No OFD packet to send [16:43:18]OFD Sender: No OFD packet to send [16:43:23]OFD Sender: No OFD packet to send [16:43:28]OFD Sender: No OFD packet to send [16:43:33]OFD Sender: No OFD packet to send [16:43:38]OFD Sender: No OFD packet to send [16:43:43]OFD Sender: No OFD packet to send [16:43:48]OFD Sender: No OFD packet to send [16:43:53]OFD Sender: No OFD packet to send [16:43:58]OFD Sender: No OFD packet to send [16:44:03]OFD Sender: No OFD packet to send [16:44:08]OFD Sender: No OFD packet to send [16:44:13]OFD Sender: No OFD packet to send [16:44:18]OFD Sender: No OFD packet to send [16:44:23]OFD Sender: No OFD packet to send [16:44:28]OFD Sender: No OFD packet to send [16:44:33]OFD Sender: No OFD packet to send [16:44:38]OFD Sender: No OFD packet to send [16:44:43]OFD Sender: No OFD packet to send [16:44:49]OFD Sender: No OFD packet to send [16:44:54]OFD Sender: No OFD packet to send [16:44:59]OFD Sender: No OFD packet to send [16:45:04]OFD Sender: No OFD packet to send [16:45:09]OFD Sender: No OFD packet to send [16:45:14]OFD Sender: No OFD packet to send [16:45:19]OFD Sender: No OFD packet to send [16:45:24]OFD Sender: No OFD packet to send [16:45:29]OFD Sender: No OFD packet to send [16:45:34]OFD Sender: No OFD packet to send [16:45:39]OFD Sender: No OFD packet to send [16:45:44]OFD Sender: No OFD packet to send [16:45:49]OFD Sender: No OFD packet to send [16:45:54]OFD Sender: No OFD packet to send [16:45:59]OFD Sender: No OFD packet to send [16:46:04]OFD Sender: No OFD packet to send [16:46:09]OFD Sender: No OFD packet to send [16:46:14]OFD Sender: No OFD packet to send [16:46:19]OFD Sender: No OFD packet to send [16:46:24]OFD Sender: No OFD packet to send [16:46:29]OFD Sender: No OFD packet to send [16:46:34]OFD Sender: No OFD packet to send [16:46:39]OFD Sender: No OFD packet to send [16:46:40]accept exits with 9 [16:46:40]New connection [16:46:40]New thread 3067014500 created [16:46:40]Thread 3067157860 joined [16:46:40]Waiting for new connection... [16:46:40] Sock 9.Parse request [16:46:40]Sock 9.Check first char [16:46:40]Sock 9.First char is OK [16:46:40]request: POST /json_proto HTTP/1.0 [16:46:40]Method: POST [16:46:40]URL: /json_proto [16:46:40]Method is POST - this is cgi request [16:46:40]url: /json_proto [16:46:40]query_string will be loaded in cgi processing [16:46:40]execute_cgi json_proto POST (null) [16:46:40]execute_cgi path=json_proto method=POST [16:46:40]POST find Content-Length [16:46:40]Host: 172.17.42.131:8080 [16:46:40]Content-Length: 677 [16:46:40]Content-Type: application/json [16:46:40] [16:46:40]POST finish read [16:46:40]Found Content-Length = 677 [16:46:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209868", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 6.740, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:46:40]execute_script... [16:46: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)209868", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 6.740, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:46:40]POST & json_proto [16:46:40]process_json_proto [16:46:40]json parsed OK: [16:46:40]protocol is kg_v1.0 [16:46:40]action value=close_receipt [16:46:40]process_action close_receipt [16:46:40]cmd_close_receipt [16:46:40]MH_GetDate [16:46:40]Write to MH i2c: F0 00 00 F4 6F 52 [16:46:40]Write i2c OK [16:46:40]MH_I2C_Read... [16:46:40]Read from MH i2c: F0 [16:46:40]MH_I2C_Read... [16:46:40]Read from MH i2c: F0 09 00 [16:46:40]MH_I2C_Read... [16:46:40]Read from MH i2c: F0 09 00 F4 6F 00 75 85 16 67 A0 18 CA 66 BA [16:46:40]GetLastDocTimeStamp 1729528829 [16:46:40]current date 1729529205 [16:46:40]FM_GetShiftState [16:46:40]SAM_PROTO_GetShiftState [16:46:40]wFMCommunicate request_size=4 [16:46:40]MH_SAM_APDU [16:46:40]CAPDU: 80 13 01 00 [16:46:40]Write to MH i2c: E2 08 00 F5 6F 80 13 01 00 00 00 00 00 E1 [16:46:40]Write i2c OK [16:46:40]MH_I2C_Read... [16:46:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:46:40]Read from MH i2c: E2 [16:46:40]MH_I2C_Read... [16:46:40]Read from MH i2c: E2 0E 00 [16:46:40]MH_I2C_Read... [16:46:40]Read from MH i2c: E2 0E 00 F5 6F 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 40 [16:46:40]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [16:46:40]wFMCommunicate OK [16:46:40]SAM_PROTO_GetShiftState done [16:46:40]FM_GetShiftState done [16:46:40]opened in 1729469754 [16:46:40]opened+sec_in_day 1729556154 [16:46:40]quantity*price = 50010 [16:46:40]sum+1 = 50012 [16:46:40]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 279 21.10.2024 16:46 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 187815 ФПД: 260412436041975 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T164645&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187815&fm=260412436041975&tin=02508201610067®Number=0000000000100030&sum=50000 [16:46:41]StoreToDocumentArchive [16:46:41]shift 460 fd 187815 [16:46:41]save to /storage/0460/doc_00187815 [16:46:41]save last doc name /storage/0460/doc_00187815 to /storage/kkm_last_doc_name [16:46:41]save OK [16:46:41]Clear old archive folders... [16:46:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:46:41]tlvbuf is 0126ECE0 [16:46:41]SAM_PROTO_ClearQueue [16:46:41]wFMCommunicate request_size=4 [16:46:41]MH_SAM_APDU [16:46:41]CAPDU: 80 09 00 00 [16:46:41]Write to MH i2c: E2 08 00 02 70 80 09 00 00 00 00 00 00 E4 [16:46:41]Write i2c OK [16:46:41]MH_I2C_Read... [16:46:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:46:41]Read from MH i2c: E2 [16:46:41]MH_I2C_Read... [16:46:41]Read from MH i2c: E2 03 00 [16:46:41]MH_I2C_Read... [16:46:41]Read from MH i2c: E2 03 00 02 70 00 90 00 E6 [16:46:41]RAPDU: 90 00 [16:46:41]wFMCommunicate OK [16:46:41]SAM_PROTO_ClearQueue done [16:46:41]KKMCreateOFDPacket [16:46:41]OFDProtocolAddRootSTLVToBuf [16:46:41]FM_MakeSignedData [16:46:41]FM_MakeSignedData [16:46:41]SAM_PROTO_SignData [16:46:41]wFMCommunicate request_size=4 [16:46:41]MH_SAM_APDU [16:46:41]CAPDU: 80 0D 01 02 [16:46:41]Write to MH i2c: E2 08 00 03 70 80 0D 01 02 00 00 00 00 EC [16:46:41]Write i2c OK [16:46:41]MH_I2C_Read... [16:46:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:46:41]Read from MH i2c: E2 [16:46:41]MH_I2C_Read... [16:46:41]Read from MH i2c: E2 03 00 [16:46:41]MH_I2C_Read... [16:46:41]Read from MH i2c: E2 03 00 03 70 00 90 00 E7 [16:46:41]RAPDU: 90 00 [16:46:41]wFMCommunicate OK [16:46:41]wFMCommunicate request_size=255 [16:46:41]MH_SAM_APDU [16:46:41]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 01 00 00 F4 03 04 00 75 85 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 A7 DD 02 00 35 04 06 00 EC [16:46:41]Write to MH i2c: E2 02 01 04 70 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 01 00 00 F4 03 04 00 75 85 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 A7 DD 02 00 35 04 06 00 EC 00 00 05 [16:46:41]Write i2c OK [16:46:41]MH_I2C_Read... [16:46:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:46:41]Read from MH i2c: E2 [16:46:41]MH_I2C_Read... [16:46:41]Read from MH i2c: E2 03 00 [16:46:41]MH_I2C_Read... [16:46:41]Read from MH i2c: E2 03 00 04 70 00 90 00 E8 [16:46:41]RAPDU: 90 00 [16:46:41]wFMCommunicate OK [16:46:41]wFMCommunicate request_size=10 [16:46:41]MH_SAM_APDU [16:46:41]CAPDU: 80 0D 02 02 05 D7 FE BE D0 F7 [16:46:41]Write to MH i2c: E2 0D 00 05 70 80 0D 02 02 05 00 D7 FE BE D0 F7 00 00 53 [16:46:41]Write i2c OK [16:46:41]MH_I2C_Read... [16:46:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:46:41]Read from MH i2c: E2 [16:46:41]MH_I2C_Read... [16:46:41]Read from MH i2c: E2 03 00 [16:46:41]MH_I2C_Read... [16:46:41]Read from MH i2c: E2 03 00 05 70 00 90 00 E9 [16:46:41]RAPDU: 90 00 [16:46:41]wFMCommunicate OK [16:46:41]wFMCommunicate request_size=4 [16:46:41]MH_SAM_APDU [16:46:41]CAPDU: 80 0D 03 02 [16:46:41]Write to MH i2c: E2 08 00 06 70 80 0D 03 02 00 00 00 00 F1 [16:46:41]Write i2c OK [16:46:41]MH_I2C_Read... [16:46:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:46:41]Read from MH i2c: E2 [16:46:41]MH_I2C_Read... [16:46:41]Read from MH i2c: E2 0B 00 [16:46:41]MH_I2C_Read... [16:46:41]Read from MH i2c: E2 0B 00 06 70 00 93 35 48 51 85 3C 88 58 90 00 F4 [16:46:41]RAPDU: 93 35 48 51 85 3C 88 58 90 00 [16:46:41]wFMCommunicate OK [16:46:41]SAM_PROTO_SignData done [16:46:41]FM_MakeSignedData done [16:46:41]CreateOFDProtocolMessage [16:46:41]wFMCommunicate request_size=4 [16:46:41]MH_SAM_APDU [16:46:41]CAPDU: 80 11 00 00 [16:46:41]Write to MH i2c: E2 08 00 07 70 80 11 00 00 00 00 00 00 F1 [16:46:41]Write i2c OK [16:46:41]MH_I2C_Read... [16:46:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:46:41]Read from MH i2c: E2 [16:46:41]MH_I2C_Read... [16:46:41]Read from MH i2c: E2 17 00 [16:46:41]MH_I2C_Read... [16:46:41]Read from MH i2c: E2 17 00 07 70 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 3F [16:46:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [16:46:41]wFMCommunicate OK [16:46:41]CreateOFDProtocolMessage done [16:46:41]OFDSenderStorePacket 187815 [16:46:41]StoreOFDPacket docnum=187815 [16:46:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 74 45 07 01 BB 38 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 01 00 00 F4 03 04 00 75 85 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 A7 DD 02 00 35 04 06 00 EC D7 FE BE D0 F7 93 35 48 51 85 3C 88 58 [16:46:41]CheckFolder [16:46:41]dirname=/storage/ofd_packets [16:46:41]CheckFolder done [16:46:41]ProducePacketName [16:46:41]name=ofd_packets/00187815 [16:46:41]NVStorageSaveData ofd_packets/00187815 [16:46:41]File name is /storage/ofd_packets/00187815 [16:46:41]Write 301 bytes [16:46:41]NVStorageSaveData done [16:46:41]OFDSenderStorePacket done [16:46:41]KKMCreateOFDPacket done [16:46:41]NVStorageSaveData kkm_last_timestamp [16:46:41]File name is /storage/kkm_last_timestamp [16:46:41]Write 4 bytes [16:46:41]NVStorageSaveData done [16:46:41]ExternCall_PrintAddStr [16:46:41]wPrintStart [16:46:41]Write to MH i2c: 01 00 00 08 70 78 [16:46:41]Write i2c OK [16:46:41]MH_I2C_Read... [16:46:41]Read from MH i2c: 01 [16:46:41]MH_I2C_Read... [16:46:41]Read from MH i2c: 01 07 00 [16:46:41]MH_I2C_Read... [16:46:41]Read from MH i2c: 01 07 00 08 70 00 00 00 00 00 FF 0F 8D [16:46:41]RasterBufferAndPrint [16:46:41]line Счет N : (1)209868 [16:46:41]line ИНН: 02508201610067 [16:46:41]line Контрольно-Кассовый Чек [16:46:41]line ПРОДАЖА [16:46:41]line ТРК (МРК, ГНК) : 43 [16:46:41]line Товар: 2710124500 [16:46:41]line Аи-95-К-3 [16:46:41]line 6.740 * 74.20 [16:46:41]line = 500.11 [16:46:41]line НДС 12% НСП 1% [16:46:41]line > о реализуемом товаре [16:46:41]line ОКРУГЛЕНИЕ: -0.11 [16:46:41]line ИТОГО: 500.00 [16:46:41]line Внесено: 500.00 [16:46:41]line СДАЧА: 0.00 [16:46:41]line НСП 1% : 4.43 [16:46:41]line НДС 12% : 53.11 [16:46:41]line Наличными: 500.00 [16:46:41]line Безнал.: 0.00 [16:46:41]line Место: АЗС № 86 "Партнер Нефть" [16:46:41]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [16:46:41]line СНО: Общий режим [16:46:41]line Чек 279 21.10.2024 16:46 [16:46:41]line Смена: 460 ФФД: 1.0 [16:46:41]line ЗНМ: 0300000155 [16:46:41]line РНМ: 0000000000100030 [16:46:41]line Версия ККМ: 001 [16:46:41]line ФМ: 0000000000965340 [16:46:41]line ФД: 187815 [16:46:41]line ФПД: 260412436041975 [16:46:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T164645&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187815&fm=260412436041975&tin=02508201610067®Number=0000000000100030&sum=50000 [16:46:42]written 0, free lines is 4095 [16:46:42]OFD Sender: Processing packet 187815 [packets to send 1062, broken 1061] [16:46:42]ProducePacketName [16:46:42]name=ofd_packets/00187815 [16:46:42]OFD Sender: To server: pG, [16:46:42]CommunicateWithHost lk.salyk.kg:30040 [16:46:42]ConnectInit lk.salyk.kg [16:46:42]Connected sock=10 [16:46:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 74 45 07 01 BB 38 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 01 00 00 F4 03 04 00 75 85 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 A7 DD 02 00 35 04 06 00 EC D7 FE BE D0 F7 93 35 48 51 85 3C 88 58 [16:46:42]Write to MH i2c: 01 00 00 33 70 A3 [16:46:42]Write i2c OK [16:46:42]MH_I2C_Read... [16:46:42]Read from MH i2c: 01 [16:46:42]MH_I2C_Read... [16:46:42]Read from MH i2c: 01 07 00 [16:46:42]MH_I2C_Read... [16:46:42]Read from MH i2c: 01 07 00 33 70 00 00 00 00 00 70 0C 26 [16:46:42]RasterBufferAndPrint [16:46:42]line [16:46:42]line [16:46:42]line [16:46:42]line [16:46:42]line [16:46:42]written 0, free lines is 3186 [16:46:42]MH_Cut [16:46:42]Write to MH i2c: D1 01 00 3A 70 01 7C [16:46:42]Write i2c OK [16:46:42]MH_I2C_Read... [16:46:42]Read from MH i2c: D1 [16:46:42]MH_I2C_Read... [16:46:42]Read from MH i2c: D1 01 00 [16:46:42]MH_I2C_Read... [16:46:42]Read from MH i2c: D1 01 00 3A 70 00 7B [16:46:42]Write to MH i2c: 01 00 00 3B 70 AB [16:46:42]Write i2c OK [16:46:42]MH_I2C_Read... [16:46:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 8E 20 47 00 7F FF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 A7 DD 02 00 F4 03 04 00 64 2F 16 67 B6 04 01 00 00 6D 38 5B CD 45 52 D1 B8 [16:46:42]CommunicateWithHost err = 0 [16:46:42]CheckOFDResponse [16:46:42]1017 (14) - 77093643461234 [16:46:42]1041 (16) - 0000000000965340 [16:46:42]1040 (4) - 187815 [16:46:42]1012 (4) - 21.10.2024 10:39 [16:46:42]1206 (1) - 0 [16:46:42]OFD Sender: Remove packet 187815 [16:46:42]ProducePacketName [16:46:42]name=ofd_packets/00187815 [16:46:42]NVStorageDeleteData [16:46:43]OFD Sender: No OFD packet to send [16:46:43]*** Cut start [16:46:43]*** Partial cut [16:46:43]*** CUTSNS_PIN = 1 [16:46:43]*** CUTSNS_PIN = 0 [16:46:43]*** Brake cut motor [16:46:44]Read from MH i2c: 01 [16:46:44]MH_I2C_Read... [16:46:44]Read from MH i2c: 01 07 00 [16:46:44]MH_I2C_Read... [16:46:44]*** Stop cut motor [16:46:44]*** Cut end [16:46:44]Read from MH i2c: 01 07 00 3B 70 00 00 00 00 00 FF 0F C0 [16:46:44]process_action close_receipt done [16:46:44]requested_data is exist [16:46:44]produce_requested_data [16:46:44]requested_item fm.sn is exist - process it [16:46:44]wFMCommunicate request_size=4 [16:46:44]MH_SAM_APDU [16:46:44]CAPDU: 80 11 00 00 [16:46:44]Write to MH i2c: E2 08 00 3C 70 80 11 00 00 00 00 00 00 26 [16:46:44]Write i2c OK [16:46:44]MH_I2C_Read... [16:46:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:46:44]Read from MH i2c: E2 [16:46:44]MH_I2C_Read... [16:46:44]Read from MH i2c: E2 17 00 [16:46:44]MH_I2C_Read... [16:46:44]Read from MH i2c: E2 17 00 3C 70 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 74 [16:46:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [16:46:44]wFMCommunicate OK [16:46:44]requested_item fd.num is exist - process it [16:46:44]SAM_PROTO_GetFieldsCounters [16:46:44]wFMCommunicate request_size=4 [16:46:44]MH_SAM_APDU [16:46:44]CAPDU: 80 13 00 00 [16:46:44]Write to MH i2c: E2 08 00 3D 70 80 13 00 00 00 00 00 00 29 [16:46:44]Write i2c OK [16:46:44]MH_I2C_Read... [16:46:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:46:44]Read from MH i2c: E2 [16:46:44]MH_I2C_Read... [16:46:44]Read from MH i2c: E2 62 00 [16:46:44]MH_I2C_Read... [16:46:44]Read from MH i2c: E2 62 00 3D 70 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 A7 DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 17 01 00 00 5E 04 04 00 17 01 00 00 57 04 04 00 18 01 00 00 19 04 04 00 00 00 00 00 90 00 CB [16:46:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 A7 DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 17 01 00 00 5E 04 04 00 17 01 00 00 57 04 04 00 18 01 00 00 19 04 04 00 00 00 00 00 90 00 [16:46:44]wFMCommunicate OK [16:46:44]SAM_PROTO_GetFieldsCounters done [16:46:44]requested_item shift.num is exist - process it [16:46:44]requested_item shift.opened is exist - process it [16:46:44]req_shift_opened [16:46:44]FM_GetShiftState [16:46:44]SAM_PROTO_GetShiftState [16:46:44]wFMCommunicate request_size=4 [16:46:44]MH_SAM_APDU [16:46:44]CAPDU: 80 13 01 00 [16:46:44]Write to MH i2c: E2 08 00 3E 70 80 13 01 00 00 00 00 00 2B [16:46:44]Write i2c OK [16:46:44]MH_I2C_Read... [16:46:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:46:44]Read from MH i2c: E2 [16:46:44]MH_I2C_Read... [16:46:44]Read from MH i2c: E2 0E 00 [16:46:44]MH_I2C_Read... [16:46:44]Read from MH i2c: E2 0E 00 3E 70 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 8A [16:46:44]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [16:46:44]wFMCommunicate OK [16:46:44]SAM_PROTO_GetShiftState done [16:46:44]FM_GetShiftState done [16:46:44]req_shift_opened done [16:46:44]requested_item shift.open_date is exist - process it [16:46:44]req_shift_open_date [16:46:44]req_shift_open_date done [16:46:44]produce_requested_data done [16:46:44]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187815,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [16:46:44]process_action_free close_receipt [16:46:44]json_value_free [16:46:44]json_value_free done [16:46:44]process_json_proto returns [16:46:44]Send response to host [16:46:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187815,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [16:46:44]free response buf [16:46:44]execute_script done [16:46:44]execute_script returns [16:46:44]free content buf [16:46:44]Sock 9.Close socket [16:46:44]Sock 9.Thread stoped [16:46:48]OFD Sender: No OFD packet to send [16:46:53]OFD Sender: No OFD packet to send [16:46:58]OFD Sender: No OFD packet to send [16:47:03]OFD Sender: No OFD packet to send [16:47:08]OFD Sender: No OFD packet to send [16:47:13]OFD Sender: No OFD packet to send [16:47:18]OFD Sender: No OFD packet to send [16:47:23]OFD Sender: No OFD packet to send [16:47:28]OFD Sender: No OFD packet to send [16:47:33]OFD Sender: No OFD packet to send [16:47:38]OFD Sender: No OFD packet to send [16:47:43]OFD Sender: No OFD packet to send [16:47:48]OFD Sender: No OFD packet to send [16:47:53]OFD Sender: No OFD packet to send [16:47:58]OFD Sender: No OFD packet to send [16:48:03]OFD Sender: No OFD packet to send [16:48:08]OFD Sender: No OFD packet to send [16:48:13]OFD Sender: No OFD packet to send [16:48:18]OFD Sender: No OFD packet to send [16:48:23]OFD Sender: No OFD packet to send [16:48:28]OFD Sender: No OFD packet to send [16:48:33]OFD Sender: No OFD packet to send [16:48:38]OFD Sender: No OFD packet to send [16:48:39]accept exits with 8 [16:48:39]New connection [16:48:39]New thread 3067157860 created [16:48:39]Thread 3067014500 joined [16:48:39]Waiting for new connection... [16:48:39] Sock 8.Parse request [16:48:39]Sock 8.Check first char [16:48:39]Sock 8.First char is OK [16:48:39]request: POST /json_proto HTTP/1.0 [16:48:39]Method: POST [16:48:39]URL: /json_proto [16:48:39]Method is POST - this is cgi request [16:48:39]url: /json_proto [16:48:39]query_string will be loaded in cgi processing [16:48:39]execute_cgi json_proto POST (null) [16:48:39]execute_cgi path=json_proto method=POST [16:48:39]POST find Content-Length [16:48:39]Host: 172.17.42.131:8080 [16:48:39]Content-Length: 642 [16:48:39]Content-Type: application/json [16:48:39] [16:48:39]POST finish read [16:48:39]Found Content-Length = 642 [16:48:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209867", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 50.000, "sum" : 3710.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 3710.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:48:39]execute_script... [16:48:39]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209867", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 50.000, "sum" : 3710.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 3710.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:48:39]POST & json_proto [16:48:39]process_json_proto [16:48:39]json parsed OK: [16:48:39]protocol is kg_v1.0 [16:48:39]action value=close_receipt [16:48:39]process_action close_receipt [16:48:39]cmd_close_receipt [16:48:39]MH_GetDate [16:48:39]Write to MH i2c: F0 00 00 3F 70 9E [16:48:39]Write i2c OK [16:48:39]MH_I2C_Read... [16:48:39]Read from MH i2c: F0 [16:48:39]MH_I2C_Read... [16:48:39]Read from MH i2c: F0 09 00 [16:48:39]MH_I2C_Read... [16:48:39]Read from MH i2c: F0 09 00 3F 70 00 EC 85 16 67 A0 18 CA 66 7D [16:48:39]GetLastDocTimeStamp 1729529205 [16:48:39]current date 1729529324 [16:48:39]FM_GetShiftState [16:48:39]SAM_PROTO_GetShiftState [16:48:39]wFMCommunicate request_size=4 [16:48:39]MH_SAM_APDU [16:48:39]CAPDU: 80 13 01 00 [16:48:39]Write to MH i2c: E2 08 00 40 70 80 13 01 00 00 00 00 00 2D [16:48:39]Write i2c OK [16:48:39]MH_I2C_Read... [16:48:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:48:39]Read from MH i2c: E2 [16:48:39]MH_I2C_Read... [16:48:39]Read from MH i2c: E2 0E 00 [16:48:39]MH_I2C_Read... [16:48:39]Read from MH i2c: E2 0E 00 40 70 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 8C [16:48:39]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [16:48:39]wFMCommunicate OK [16:48:39]SAM_PROTO_GetShiftState done [16:48:39]FM_GetShiftState done [16:48:39]opened in 1729469754 [16:48:39]opened+sec_in_day 1729556154 [16:48:39]quantity*price = 371000 [16:48:39]sum+1 = 371001 [16:48:39]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 3710.00 НСП 1% : 32.83 НДС 12% : 393.98 Наличными: 3710.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 280 21.10.2024 16:48 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 187816 ФПД: 75289538737031 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T164844&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187816&fm=75289538737031&tin=02508201610067®Number=0000000000100030&sum=371000 [16:48:41]StoreToDocumentArchive [16:48:41]shift 460 fd 187816 [16:48:41]save to /storage/0460/doc_00187816 [16:48:41]save last doc name /storage/0460/doc_00187816 to /storage/kkm_last_doc_name [16:48:41]save OK [16:48:41]Clear old archive folders... [16:48:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:48:41]tlvbuf is 01093F30 [16:48:41]SAM_PROTO_ClearQueue [16:48:41]wFMCommunicate request_size=4 [16:48:41]MH_SAM_APDU [16:48:41]CAPDU: 80 09 00 00 [16:48:41]Write to MH i2c: E2 08 00 4D 70 80 09 00 00 00 00 00 00 2F [16:48:41]Write i2c OK [16:48:41]MH_I2C_Read... [16:48:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:48:41]Read from MH i2c: E2 [16:48:41]MH_I2C_Read... [16:48:41]Read from MH i2c: E2 03 00 [16:48:41]MH_I2C_Read... [16:48:41]Read from MH i2c: E2 03 00 4D 70 00 90 00 31 [16:48:41]RAPDU: 90 00 [16:48:41]wFMCommunicate OK [16:48:41]SAM_PROTO_ClearQueue done [16:48:41]KKMCreateOFDPacket [16:48:41]OFDProtocolAddRootSTLVToBuf [16:48:41]FM_MakeSignedData [16:48:41]FM_MakeSignedData [16:48:41]SAM_PROTO_SignData [16:48:41]wFMCommunicate request_size=4 [16:48:41]MH_SAM_APDU [16:48:41]CAPDU: 80 0D 01 02 [16:48:41]Write to MH i2c: E2 08 00 4E 70 80 0D 01 02 00 00 00 00 37 [16:48:41]Write i2c OK [16:48:41]MH_I2C_Read... [16:48:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:48:41]Read from MH i2c: E2 [16:48:41]MH_I2C_Read... [16:48:41]Read from MH i2c: E2 03 00 [16:48:41]MH_I2C_Read... [16:48:41]Read from MH i2c: E2 03 00 4E 70 00 90 00 32 [16:48:41]RAPDU: 90 00 [16:48:41]wFMCommunicate OK [16:48:41]wFMCommunicate request_size=255 [16:48:41]MH_SAM_APDU [16:48:41]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 50 C3 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 38 A9 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 A9 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D3 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 99 00 00 00 00 07 04 06 00 38 A9 05 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 01 00 00 F4 03 04 00 EC 85 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 A8 DD 02 00 35 04 06 00 44 [16:48:41]Write to MH i2c: E2 02 01 4F 70 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 50 C3 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 38 A9 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 A9 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D3 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 99 00 00 00 00 07 04 06 00 38 A9 05 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 01 00 00 F4 03 04 00 EC 85 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 A8 DD 02 00 35 04 06 00 44 00 00 03 [16:48:41]Write i2c OK [16:48:41]MH_I2C_Read... [16:48:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:48:41]Read from MH i2c: E2 [16:48:41]MH_I2C_Read... [16:48:41]Read from MH i2c: E2 03 00 [16:48:41]MH_I2C_Read... [16:48:41]Read from MH i2c: E2 03 00 4F 70 00 90 00 33 [16:48:41]RAPDU: 90 00 [16:48:41]wFMCommunicate OK [16:48:41]wFMCommunicate request_size=10 [16:48:41]MH_SAM_APDU [16:48:41]CAPDU: 80 0D 02 02 05 79 B6 36 33 87 [16:48:41]Write to MH i2c: E2 0D 00 50 70 80 0D 02 02 05 00 79 B6 36 33 87 00 00 63 [16:48:41]Write i2c OK [16:48:41]MH_I2C_Read... [16:48:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:48:41]Read from MH i2c: E2 [16:48:41]MH_I2C_Read... [16:48:41]Read from MH i2c: E2 03 00 [16:48:41]MH_I2C_Read... [16:48:41]Read from MH i2c: E2 03 00 50 70 00 90 00 34 [16:48:41]RAPDU: 90 00 [16:48:41]wFMCommunicate OK [16:48:41]wFMCommunicate request_size=4 [16:48:41]MH_SAM_APDU [16:48:41]CAPDU: 80 0D 03 02 [16:48:41]Write to MH i2c: E2 08 00 51 70 80 0D 03 02 00 00 00 00 3C [16:48:41]Write i2c OK [16:48:41]MH_I2C_Read... [16:48:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:48:41]Read from MH i2c: E2 [16:48:41]MH_I2C_Read... [16:48:41]Read from MH i2c: E2 0B 00 [16:48:41]MH_I2C_Read... [16:48:41]Read from MH i2c: E2 0B 00 51 70 00 87 84 33 A7 3C E7 BD 72 90 00 74 [16:48:41]RAPDU: 87 84 33 A7 3C E7 BD 72 90 00 [16:48:41]wFMCommunicate OK [16:48:41]SAM_PROTO_SignData done [16:48:41]FM_MakeSignedData done [16:48:41]CreateOFDProtocolMessage [16:48:41]wFMCommunicate request_size=4 [16:48:41]MH_SAM_APDU [16:48:41]CAPDU: 80 11 00 00 [16:48:41]Write to MH i2c: E2 08 00 52 70 80 11 00 00 00 00 00 00 3C [16:48:41]Write i2c OK [16:48:41]MH_I2C_Read... [16:48:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:48:41]Read from MH i2c: E2 [16:48:41]MH_I2C_Read... [16:48:41]Read from MH i2c: E2 17 00 [16:48:41]MH_I2C_Read... [16:48:41]Read from MH i2c: E2 17 00 52 70 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 8A [16:48:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [16:48:41]wFMCommunicate OK [16:48:41]CreateOFDProtocolMessage done [16:48:41]OFDSenderStorePacket 187816 [16:48:41]StoreOFDPacket docnum=187816 [16:48:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 02 0A 07 01 F6 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 50 C3 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 38 A9 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 A9 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D3 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 99 00 00 00 00 07 04 06 00 38 A9 05 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 01 00 00 F4 03 04 00 EC 85 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 A8 DD 02 00 35 04 06 00 44 79 B6 36 33 87 87 84 33 A7 3C E7 BD 72 [16:48:41]CheckFolder [16:48:41]dirname=/storage/ofd_packets [16:48:41]CheckFolder done [16:48:41]ProducePacketName [16:48:41]name=ofd_packets/00187816 [16:48:41]NVStorageSaveData ofd_packets/00187816 [16:48:41]File name is /storage/ofd_packets/00187816 [16:48:41]Write 301 bytes [16:48:41]NVStorageSaveData done [16:48:41]OFDSenderStorePacket done [16:48:41]KKMCreateOFDPacket done [16:48:41]NVStorageSaveData kkm_last_timestamp [16:48:41]File name is /storage/kkm_last_timestamp [16:48:41]Write 4 bytes [16:48:41]NVStorageSaveData done [16:48:41]ExternCall_PrintAddStr [16:48:41]wPrintStart [16:48:41]Write to MH i2c: 01 00 00 53 70 C3 [16:48:41]Write i2c OK [16:48:41]MH_I2C_Read... [16:48:41]Read from MH i2c: 01 [16:48:41]MH_I2C_Read... [16:48:41]Read from MH i2c: 01 07 00 [16:48:41]MH_I2C_Read... [16:48:41]Read from MH i2c: 01 07 00 53 70 00 00 00 00 00 FF 0F D8 [16:48:41]RasterBufferAndPrint [16:48:41]line Счет N : (1)209867 [16:48:41]line ИНН: 02508201610067 [16:48:41]line Контрольно-Кассовый Чек [16:48:41]line ПРОДАЖА [16:48:41]line ТРК (МРК, ГНК) : 13 [16:48:41]line Товар: 2710124500 [16:48:41]line Аи-95-К-3 [16:48:41]line 50.000 * 74.20 [16:48:41]line = 3710.00 [16:48:41]line НДС 12% НСП 1% [16:48:41]line > о реализуемом товаре [16:48:41]line ИТОГО: 3710.00 [16:48:41]line НСП 1% : 32.83 [16:48:41]line НДС 12% : 393.98 [16:48:41]line Наличными: 3710.00 [16:48:41]line Безнал.: 0.00 [16:48:41]line Место: АЗС № 86 "Партнер Нефть" [16:48:41]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [16:48:41]line СНО: Общий режим [16:48:41]line Чек 280 21.10.2024 16:48 [16:48:41]line Смена: 460 ФФД: 1.0 [16:48:41]line ЗНМ: 0300000155 [16:48:41]line РНМ: 0000000000100030 [16:48:41]line Версия ККМ: 001 [16:48:41]line ФМ: 0000000000965340 [16:48:41]line ФД: 187816 [16:48:41]line ФПД: 75289538737031 [16:48:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T164844&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187816&fm=75289538737031&tin=02508201610067®Number=0000000000100030&sum=371000 [16:48:41]written 0, free lines is 4095 [16:48:41]OFD Sender: Processing packet 187816 [packets to send 1062, broken 1061] [16:48:41]ProducePacketName [16:48:41]name=ofd_packets/00187816 [16:48:41]OFD Sender: To server: pG, [16:48:41]CommunicateWithHost lk.salyk.kg:30040 [16:48:41]ConnectInit lk.salyk.kg [16:48:42]Connected sock=9 [16:48:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 02 0A 07 01 F6 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 50 C3 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 38 A9 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 A9 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D3 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 99 00 00 00 00 07 04 06 00 38 A9 05 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 01 00 00 F4 03 04 00 EC 85 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 A8 DD 02 00 35 04 06 00 44 79 B6 36 33 87 87 84 33 A7 3C E7 BD 72 [16:48:42]Write to MH i2c: 01 00 00 7B 70 EB [16:48:42]Write i2c OK [16:48:42]MH_I2C_Read... [16:48:42]Read from MH i2c: 01 [16:48:42]MH_I2C_Read... [16:48:42]Read from MH i2c: 01 07 00 [16:48:42]MH_I2C_Read... [16:48:42]Read from MH i2c: 01 07 00 7B 70 00 00 00 00 00 A8 0C A6 [16:48:42]RasterBufferAndPrint [16:48:42]line [16:48:42]line [16:48:42]line [16:48:42]line [16:48:42]line [16:48:42]written 0, free lines is 3244 [16:48:42]MH_Cut [16:48:42]Write to MH i2c: D1 01 00 82 70 01 C4 [16:48:42]Write i2c OK [16:48:42]MH_I2C_Read... [16:48:42]Read from MH i2c: D1 [16:48:42]MH_I2C_Read... [16:48:42]Read from MH i2c: D1 01 00 [16:48:42]MH_I2C_Read... [16:48:42]Read from MH i2c: D1 01 00 82 70 00 C3 [16:48:42]Write to MH i2c: 01 00 00 83 70 F3 [16:48:42]Write i2c OK [16:48:42]MH_I2C_Read... [16:48:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 C4 72 47 00 82 9E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 A8 DD 02 00 F4 03 04 00 DC 2F 16 67 B6 04 01 00 00 F5 89 D7 58 1F DD 70 E4 [16:48:42]CommunicateWithHost err = 0 [16:48:42]CheckOFDResponse [16:48:42]1017 (14) - 77093643461234 [16:48:42]1041 (16) - 0000000000965340 [16:48:42]1040 (4) - 187816 [16:48:42]1012 (4) - 21.10.2024 10:41 [16:48:42]1206 (1) - 0 [16:48:42]OFD Sender: Remove packet 187816 [16:48:42]ProducePacketName [16:48:42]name=ofd_packets/00187816 [16:48:42]NVStorageDeleteData [16:48:43]OFD Sender: No OFD packet to send [16:48:43]*** Cut start [16:48:43]*** Partial cut [16:48:43]*** CUTSNS_PIN = 1 [16:48:43]*** CUTSNS_PIN = 0 [16:48:43]*** Brake cut motor [16:48:43]Read from MH i2c: 01 [16:48:43]MH_I2C_Read... [16:48:43]*** Stop cut motor [16:48:43]*** Cut end [16:48:43]Read from MH i2c: 01 07 00 [16:48:43]MH_I2C_Read... [16:48:43]Read from MH i2c: 01 07 00 83 70 00 00 00 00 00 FF 0F 08 [16:48:43]process_action close_receipt done [16:48:43]requested_data is exist [16:48:43]produce_requested_data [16:48:43]requested_item fm.sn is exist - process it [16:48:43]wFMCommunicate request_size=4 [16:48:43]MH_SAM_APDU [16:48:43]CAPDU: 80 11 00 00 [16:48:43]Write to MH i2c: E2 08 00 84 70 80 11 00 00 00 00 00 00 6E [16:48:43]Write i2c OK [16:48:43]MH_I2C_Read... [16:48:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:48:43]Read from MH i2c: E2 [16:48:43]MH_I2C_Read... [16:48:43]Read from MH i2c: E2 17 00 [16:48:43]MH_I2C_Read... [16:48:43]Read from MH i2c: E2 17 00 84 70 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 BC [16:48:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [16:48:43]wFMCommunicate OK [16:48:43]requested_item fd.num is exist - process it [16:48:43]SAM_PROTO_GetFieldsCounters [16:48:43]wFMCommunicate request_size=4 [16:48:43]MH_SAM_APDU [16:48:43]CAPDU: 80 13 00 00 [16:48:43]Write to MH i2c: E2 08 00 85 70 80 13 00 00 00 00 00 00 71 [16:48:43]Write i2c OK [16:48:43]MH_I2C_Read... [16:48:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:48:44]Read from MH i2c: E2 [16:48:44]MH_I2C_Read... [16:48:44]Read from MH i2c: E2 62 00 [16:48:44]MH_I2C_Read... [16:48:44]Read from MH i2c: E2 62 00 85 70 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 A8 DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 18 01 00 00 5E 04 04 00 18 01 00 00 57 04 04 00 19 01 00 00 19 04 04 00 00 00 00 00 90 00 17 [16:48:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 A8 DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 18 01 00 00 5E 04 04 00 18 01 00 00 57 04 04 00 19 01 00 00 19 04 04 00 00 00 00 00 90 00 [16:48:44]wFMCommunicate OK [16:48:44]SAM_PROTO_GetFieldsCounters done [16:48:44]requested_item shift.num is exist - process it [16:48:44]requested_item shift.opened is exist - process it [16:48:44]req_shift_opened [16:48:44]FM_GetShiftState [16:48:44]SAM_PROTO_GetShiftState [16:48:44]wFMCommunicate request_size=4 [16:48:44]MH_SAM_APDU [16:48:44]CAPDU: 80 13 01 00 [16:48:44]Write to MH i2c: E2 08 00 86 70 80 13 01 00 00 00 00 00 73 [16:48:44]Write i2c OK [16:48:44]MH_I2C_Read... [16:48:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:48:44]Read from MH i2c: E2 [16:48:44]MH_I2C_Read... [16:48:44]Read from MH i2c: E2 0E 00 [16:48:44]MH_I2C_Read... [16:48:44]Read from MH i2c: E2 0E 00 86 70 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 D2 [16:48:44]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [16:48:44]wFMCommunicate OK [16:48:44]SAM_PROTO_GetShiftState done [16:48:44]FM_GetShiftState done [16:48:44]req_shift_opened done [16:48:44]requested_item shift.open_date is exist - process it [16:48:44]req_shift_open_date [16:48:44]req_shift_open_date done [16:48:44]produce_requested_data done [16:48:44]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187816,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [16:48:44]process_action_free close_receipt [16:48:44]json_value_free [16:48:44]json_value_free done [16:48:44]process_json_proto returns [16:48:44]Send response to host [16:48:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187816,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [16:48:44]free response buf [16:48:44]execute_script done [16:48:44]execute_script returns [16:48:44]free content buf [16:48:44]Sock 8.Close socket [16:48:44]Sock 8.Thread stoped [16:48:48]OFD Sender: No OFD packet to send [16:48:53]OFD Sender: No OFD packet to send [16:48:58]OFD Sender: No OFD packet to send [16:49:03]OFD Sender: No OFD packet to send [16:49:08]OFD Sender: No OFD packet to send [16:49:13]OFD Sender: No OFD packet to send [16:49:18]OFD Sender: No OFD packet to send [16:49:23]OFD Sender: No OFD packet to send [16:49:28]OFD Sender: No OFD packet to send [16:49:33]OFD Sender: No OFD packet to send [16:49:37]accept exits with 10 [16:49:37]New connection [16:49:37]New thread 3067014500 created [16:49:37]Thread 3067157860 joined [16:49:37]Waiting for new connection... [16:49:37] Sock 10.Parse request [16:49:37]Sock 10.Check first char [16:49:37]Sock 10.First char is OK [16:49:37]request: POST /json_proto HTTP/1.0 [16:49:37]Method: POST [16:49:37]URL: /json_proto [16:49:37]Method is POST - this is cgi request [16:49:37]url: /json_proto [16:49:37]query_string will be loaded in cgi processing [16:49:37]execute_cgi json_proto POST (null) [16:49:37]execute_cgi path=json_proto method=POST [16:49:37]POST find Content-Length [16:49:37]Host: 172.17.42.131:8080 [16:49:37]Content-Length: 792 [16:49:37]Content-Type: application/json [16:49:37] [16:49:37]POST finish read [16:49:37]Found Content-Length = 792 [16:49:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209869", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 0.00, "quantity" : 21.680, "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\u000A02633", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:49:37]execute_script... [16:49: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)209869", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 0.00, "quantity" : 21.680, "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\u000A02633", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:49:37]POST & json_proto [16:49:37]process_json_proto [16:49:37]json parsed OK: [16:49:37]protocol is kg_v1.0 [16:49:37]action value=close_receipt [16:49:37]process_action close_receipt [16:49:37]cmd_close_receipt [16:49:37]MH_GetDate [16:49:37]Write to MH i2c: F0 00 00 87 70 E6 [16:49:37]Write i2c OK [16:49:37]MH_I2C_Read... [16:49:37]Read from MH i2c: F0 [16:49:37]MH_I2C_Read... [16:49:37]Read from MH i2c: F0 09 00 [16:49:37]MH_I2C_Read... [16:49:37]Read from MH i2c: F0 09 00 87 70 00 26 86 16 67 A0 18 CA 66 00 [16:49:37]GetLastDocTimeStamp 1729529324 [16:49:37]current date 1729529382 [16:49:37]FM_GetShiftState [16:49:37]SAM_PROTO_GetShiftState [16:49:37]wFMCommunicate request_size=4 [16:49:37]MH_SAM_APDU [16:49:37]CAPDU: 80 13 01 00 [16:49:37]Write to MH i2c: E2 08 00 88 70 80 13 01 00 00 00 00 00 75 [16:49:37]Write i2c OK [16:49:37]MH_I2C_Read... [16:49:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:49:37]Read from MH i2c: E2 [16:49:37]MH_I2C_Read... [16:49:37]Read from MH i2c: E2 0E 00 [16:49:37]MH_I2C_Read... [16:49:37]Read from MH i2c: E2 0E 00 88 70 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 D4 [16:49:37]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [16:49:37]wFMCommunicate OK [16:49:37]SAM_PROTO_GetShiftState done [16:49:37]FM_GetShiftState done [16:49:37]opened in 1729469754 [16:49:37]opened+sec_in_day 1729556154 [16:49:37]quantity*price = 0 [16:49:37]sum+1 = 1 [16:49:37]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 281 21.10.2024 16:49 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Талоны: Топливная Карта 02633 ФМ: 0000000000965340 ФД: 187817 ФПД: 26903864972119 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T164942&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187817&fm=26903864972119&tin=02508201610067®Number=0000000000100030&sum=0 [16:49:38]StoreToDocumentArchive [16:49:38]shift 460 fd 187817 [16:49:38]save to /storage/0460/doc_00187817 [16:49:38]save last doc name /storage/0460/doc_00187817 to /storage/kkm_last_doc_name [16:49:38]save OK [16:49:38]Clear old archive folders... [16:49:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:49:38]tlvbuf is 01155B30 [16:49:38]SAM_PROTO_ClearQueue [16:49:38]wFMCommunicate request_size=4 [16:49:38]MH_SAM_APDU [16:49:38]CAPDU: 80 09 00 00 [16:49:38]Write to MH i2c: E2 08 00 95 70 80 09 00 00 00 00 00 00 77 [16:49:38]Write i2c OK [16:49:38]MH_I2C_Read... [16:49:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:49:38]Read from MH i2c: E2 [16:49:38]MH_I2C_Read... [16:49:38]Read from MH i2c: E2 03 00 [16:49:38]MH_I2C_Read... [16:49:38]Read from MH i2c: E2 03 00 95 70 00 90 00 79 [16:49:38]RAPDU: 90 00 [16:49:38]wFMCommunicate OK [16:49:38]SAM_PROTO_ClearQueue done [16:49:38]KKMCreateOFDPacket [16:49:38]OFDProtocolAddRootSTLVToBuf [16:49:38]FM_MakeSignedData [16:49:38]FM_MakeSignedData [16:49:38]SAM_PROTO_SignData [16:49:38]wFMCommunicate request_size=4 [16:49:38]MH_SAM_APDU [16:49:38]CAPDU: 80 0D 01 02 [16:49:38]Write to MH i2c: E2 08 00 96 70 80 0D 01 02 00 00 00 00 7F [16:49:38]Write i2c OK [16:49:38]MH_I2C_Read... [16:49:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:49:38]Read from MH i2c: E2 [16:49:38]MH_I2C_Read... [16:49:38]Read from MH i2c: E2 03 00 [16:49:38]MH_I2C_Read... [16:49:38]Read from MH i2c: E2 03 00 96 70 00 90 00 7A [16:49:38]RAPDU: 90 00 [16:49:38]wFMCommunicate OK [16:49:38]wFMCommunicate request_size=255 [16:49:38]MH_SAM_APDU [16:49: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 33 FF 03 08 00 03 B0 54 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 01 00 00 F4 03 04 00 26 86 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 A9 DD 02 00 35 04 06 00 18 [16:49:38]Write to MH i2c: E2 02 01 97 70 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 B0 54 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 01 00 00 F4 03 04 00 26 86 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 A9 DD 02 00 35 04 06 00 18 00 00 21 [16:49:38]Write i2c OK [16:49:38]MH_I2C_Read... [16:49:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:49:38]Read from MH i2c: E2 [16:49:38]MH_I2C_Read... [16:49:38]Read from MH i2c: E2 03 00 [16:49:38]MH_I2C_Read... [16:49:38]Read from MH i2c: E2 03 00 97 70 00 90 00 7B [16:49:38]RAPDU: 90 00 [16:49:38]wFMCommunicate OK [16:49:38]wFMCommunicate request_size=10 [16:49:38]MH_SAM_APDU [16:49:38]CAPDU: 80 0D 02 02 05 78 0B 50 93 57 [16:49:38]Write to MH i2c: E2 0D 00 98 70 80 0D 02 02 05 00 78 0B 50 93 57 00 00 49 [16:49:38]Write i2c OK [16:49:38]MH_I2C_Read... [16:49:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:49:38]Read from MH i2c: E2 [16:49:38]MH_I2C_Read... [16:49:38]Read from MH i2c: E2 03 00 [16:49:38]MH_I2C_Read... [16:49:38]Read from MH i2c: E2 03 00 98 70 00 90 00 7C [16:49:38]RAPDU: 90 00 [16:49:38]wFMCommunicate OK [16:49:38]wFMCommunicate request_size=4 [16:49:38]MH_SAM_APDU [16:49:38]CAPDU: 80 0D 03 02 [16:49:38]Write to MH i2c: E2 08 00 99 70 80 0D 03 02 00 00 00 00 84 [16:49:38]Write i2c OK [16:49:38]MH_I2C_Read... [16:49:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:49:38]Read from MH i2c: E2 [16:49:38]MH_I2C_Read... [16:49:38]Read from MH i2c: E2 0B 00 [16:49:38]MH_I2C_Read... [16:49:38]Read from MH i2c: E2 0B 00 99 70 00 AC 33 4E F7 F7 55 19 43 90 00 51 [16:49:38]RAPDU: AC 33 4E F7 F7 55 19 43 90 00 [16:49:38]wFMCommunicate OK [16:49:38]SAM_PROTO_SignData done [16:49:38]FM_MakeSignedData done [16:49:38]CreateOFDProtocolMessage [16:49:38]wFMCommunicate request_size=4 [16:49:38]MH_SAM_APDU [16:49:38]CAPDU: 80 11 00 00 [16:49:38]Write to MH i2c: E2 08 00 9A 70 80 11 00 00 00 00 00 00 84 [16:49:38]Write i2c OK [16:49:38]MH_I2C_Read... [16:49:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:49:39]Read from MH i2c: E2 [16:49:39]MH_I2C_Read... [16:49:39]Read from MH i2c: E2 17 00 [16:49:39]MH_I2C_Read... [16:49:39]Read from MH i2c: E2 17 00 9A 70 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 D2 [16:49:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [16:49:39]wFMCommunicate OK [16:49:39]CreateOFDProtocolMessage done [16:49:39]OFDSenderStorePacket 187817 [16:49:39]StoreOFDPacket docnum=187817 [16:49:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 D5 72 07 01 B4 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 33 FF 03 08 00 03 B0 54 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 01 00 00 F4 03 04 00 26 86 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 A9 DD 02 00 35 04 06 00 18 78 0B 50 93 57 AC 33 4E F7 F7 55 19 43 [16:49:39]CheckFolder [16:49:39]dirname=/storage/ofd_packets [16:49:39]CheckFolder done [16:49:39]ProducePacketName [16:49:39]name=ofd_packets/00187817 [16:49:39]NVStorageSaveData ofd_packets/00187817 [16:49:39]File name is /storage/ofd_packets/00187817 [16:49:39]Write 301 bytes [16:49:39]NVStorageSaveData done [16:49:39]OFDSenderStorePacket done [16:49:39]KKMCreateOFDPacket done [16:49:39]NVStorageSaveData kkm_last_timestamp [16:49:39]File name is /storage/kkm_last_timestamp [16:49:39]Write 4 bytes [16:49:39]NVStorageSaveData done [16:49:39]ExternCall_PrintAddStr [16:49:39]wPrintStart [16:49:39]Write to MH i2c: 01 00 00 9B 70 0B [16:49:39]Write i2c OK [16:49:39]MH_I2C_Read... [16:49:39]Read from MH i2c: 01 [16:49:39]MH_I2C_Read... [16:49:39]Read from MH i2c: 01 07 00 [16:49:39]MH_I2C_Read... [16:49:39]Read from MH i2c: 01 07 00 9B 70 00 00 00 00 00 FF 0F 20 [16:49:39]RasterBufferAndPrint [16:49:39]line Счет N : (1)209869 [16:49:39]line ИНН: 02508201610067 [16:49:39]line Контрольно-Кассовый Чек [16:49:39]line ПРОДАЖА [16:49:39]line ТРК (МРК, ГНК) : 32 [16:49:39]line Товар: 2710124130 [16:49:39]line Аи-92-К-3 [16:49:39]line 21.680 * 0.00 [16:49:39]line = 0.00 [16:49:39]line НДС 12% НСП 1% [16:49:39]line > о реализуемом товаре [16:49:39]line ИТОГО: 0.00 [16:49:39]line НСП 1% : 0.00 [16:49:39]line НДС 12% : 0.00 [16:49:39]line Наличными: 0.00 [16:49:39]line Безнал.: 0.00 [16:49:39]line Место: АЗС № 86 "Партнер Нефть" [16:49:39]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [16:49:39]line СНО: Общий режим [16:49:39]line Чек 281 21.10.2024 16:49 [16:49:39]line Смена: 460 ФФД: 1.0 [16:49:39]line ЗНМ: 0300000155 [16:49:39]line РНМ: 0000000000100030 [16:49:39]line Версия ККМ: 001 [16:49:39]line Талоны: Топливная Карта [16:49:39]line 02633 [16:49:39]line ФМ: 0000000000965340 [16:49:39]line ФД: 187817 [16:49:39]line ФПД: 26903864972119 [16:49:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T164942&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187817&fm=26903864972119&tin=02508201610067®Number=0000000000100030&sum=0 [16:49:39]OFD Sender: Processing packet 187817 [packets to send 1062, broken 1061] [16:49:39]ProducePacketName [16:49:39]name=ofd_packets/00187817 [16:49:39]OFD Sender: To server: pG, [16:49:39]CommunicateWithHost lk.salyk.kg:30040 [16:49:39]ConnectInit lk.salyk.kg [16:49:39]written 0, free lines is 4095 [16:49:39]Connected sock=9 [16:49:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 D5 72 07 01 B4 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 33 FF 03 08 00 03 B0 54 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 01 00 00 F4 03 04 00 26 86 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 A9 DD 02 00 35 04 06 00 18 78 0B 50 93 57 AC 33 4E F7 F7 55 19 43 [16:49:39]Write to MH i2c: 01 00 00 C5 70 35 [16:49:39]Write i2c OK [16:49:39]MH_I2C_Read... [16:49:39]Read from MH i2c: 01 [16:49:39]MH_I2C_Read... [16:49:39]Read from MH i2c: 01 07 00 [16:49:39]MH_I2C_Read... [16:49:39]Read from MH i2c: 01 07 00 C5 70 00 00 00 00 00 82 0C CA [16:49:39]RasterBufferAndPrint [16:49:39]line [16:49:39]line [16:49:39]line [16:49:39]line [16:49:39]line [16:49:39]written 0, free lines is 3206 [16:49:39]MH_Cut [16:49:39]Write to MH i2c: D1 01 00 CC 70 01 0E [16:49:39]Write i2c OK [16:49:39]MH_I2C_Read... [16:49:39]Read from MH i2c: D1 [16:49:39]MH_I2C_Read... [16:49:39]Read from MH i2c: D1 01 00 [16:49:39]MH_I2C_Read... [16:49:39]Read from MH i2c: D1 01 00 CC 70 00 0D [16:49:39]Write to MH i2c: 01 00 00 CD 70 3D [16:49:39]Write i2c OK [16:49:39]MH_I2C_Read... [16:49:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 64 F9 47 00 A1 D7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 A9 DD 02 00 F4 03 04 00 15 30 16 67 B6 04 01 00 00 A4 03 B1 19 0F 97 04 EB [16:49:39]CommunicateWithHost err = 0 [16:49:39]CheckOFDResponse [16:49:39]1017 (14) - 77093643461234 [16:49:39]1041 (16) - 0000000000965340 [16:49:39]1040 (4) - 187817 [16:49:39]1012 (4) - 21.10.2024 10:42 [16:49:39]1206 (1) - 0 [16:49:39]OFD Sender: Remove packet 187817 [16:49:39]ProducePacketName [16:49:39]name=ofd_packets/00187817 [16:49:39]NVStorageDeleteData [16:49:40]OFD Sender: No OFD packet to send [16:49:40]*** Cut start [16:49:40]*** Partial cut [16:49:40]*** CUTSNS_PIN = 1 [16:49:40]*** CUTSNS_PIN = 0 [16:49:40]*** Brake cut motor [16:49:41]Read from MH i2c: 01 [16:49:41]MH_I2C_Read... [16:49:41]*** Stop cut motor [16:49:41]*** Cut end [16:49:41]Read from MH i2c: 01 07 00 [16:49:41]MH_I2C_Read... [16:49:41]Read from MH i2c: 01 07 00 CD 70 00 00 00 00 00 FF 0F 52 [16:49:41]process_action close_receipt done [16:49:41]requested_data is exist [16:49:41]produce_requested_data [16:49:41]requested_item fm.sn is exist - process it [16:49:41]wFMCommunicate request_size=4 [16:49:41]MH_SAM_APDU [16:49:41]CAPDU: 80 11 00 00 [16:49:41]Write to MH i2c: E2 08 00 CE 70 80 11 00 00 00 00 00 00 B8 [16:49:41]Write i2c OK [16:49:41]MH_I2C_Read... [16:49:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:49:41]Read from MH i2c: E2 [16:49:41]MH_I2C_Read... [16:49:41]Read from MH i2c: E2 17 00 [16:49:41]MH_I2C_Read... [16:49:41]Read from MH i2c: E2 17 00 CE 70 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 06 [16:49:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [16:49:41]wFMCommunicate OK [16:49:41]requested_item fd.num is exist - process it [16:49:41]SAM_PROTO_GetFieldsCounters [16:49:41]wFMCommunicate request_size=4 [16:49:41]MH_SAM_APDU [16:49:41]CAPDU: 80 13 00 00 [16:49:41]Write to MH i2c: E2 08 00 CF 70 80 13 00 00 00 00 00 00 BB [16:49:41]Write i2c OK [16:49:41]MH_I2C_Read... [16:49:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:49:41]Read from MH i2c: E2 [16:49:41]MH_I2C_Read... [16:49:41]Read from MH i2c: E2 62 00 [16:49:41]MH_I2C_Read... [16:49:41]Read from MH i2c: E2 62 00 CF 70 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 A9 DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 19 01 00 00 5E 04 04 00 19 01 00 00 57 04 04 00 1A 01 00 00 19 04 04 00 00 00 00 00 90 00 65 [16:49:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 A9 DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 19 01 00 00 5E 04 04 00 19 01 00 00 57 04 04 00 1A 01 00 00 19 04 04 00 00 00 00 00 90 00 [16:49:41]wFMCommunicate OK [16:49:41]SAM_PROTO_GetFieldsCounters done [16:49:41]requested_item shift.num is exist - process it [16:49:41]requested_item shift.opened is exist - process it [16:49:41]req_shift_opened [16:49:41]FM_GetShiftState [16:49:41]SAM_PROTO_GetShiftState [16:49:41]wFMCommunicate request_size=4 [16:49:41]MH_SAM_APDU [16:49:41]CAPDU: 80 13 01 00 [16:49:41]Write to MH i2c: E2 08 00 D0 70 80 13 01 00 00 00 00 00 BD [16:49:41]Write i2c OK [16:49:41]MH_I2C_Read... [16:49:41]Read from MH i2c: E2 [16:49:41]MH_I2C_Read... [16:49:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:49:41]Read from MH i2c: E2 0E 00 [16:49:41]MH_I2C_Read... [16:49:41]Read from MH i2c: E2 0E 00 D0 70 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 1C [16:49:41]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [16:49:41]wFMCommunicate OK [16:49:41]SAM_PROTO_GetShiftState done [16:49:41]FM_GetShiftState done [16:49:41]req_shift_opened done [16:49:41]requested_item shift.open_date is exist - process it [16:49:41]req_shift_open_date [16:49:41]req_shift_open_date done [16:49:41]produce_requested_data done [16:49:41]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187817,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [16:49:41]process_action_free close_receipt [16:49:41]json_value_free [16:49:41]json_value_free done [16:49:41]process_json_proto returns [16:49:41]Send response to host [16:49:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187817,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [16:49:41]free response buf [16:49:41]execute_script done [16:49:41]execute_script returns [16:49:41]free content buf [16:49:41]Sock 10.Close socket [16:49:41]Sock 10.Thread stoped [16:49:45]OFD Sender: No OFD packet to send [16:49:50]OFD Sender: No OFD packet to send [16:49:55]OFD Sender: No OFD packet to send [16:50:00]OFD Sender: No OFD packet to send [16:50:05]OFD Sender: No OFD packet to send [16:50:10]OFD Sender: No OFD packet to send [16:50:12]accept exits with 8 [16:50:12]New connection [16:50:12]New thread 3067157860 created [16:50:12]Thread 3067014500 joined [16:50:12]Waiting for new connection... [16:50:12] Sock 8.Parse request [16:50:12]Sock 8.Check first char [16:50:12]Sock 8.First char is OK [16:50:12]request: POST /json_proto HTTP/1.0 [16:50:12]Method: POST [16:50:12]URL: /json_proto [16:50:12]Method is POST - this is cgi request [16:50:12]url: /json_proto [16:50:12]query_string will be loaded in cgi processing [16:50:12]execute_cgi json_proto POST (null) [16:50:12]execute_cgi path=json_proto method=POST [16:50:12]POST find Content-Length [16:50:12]Host: 172.17.42.131:8080 [16:50:12]Content-Length: 682 [16:50:12]Content-Type: application/json [16:50:12] [16:50:12]POST finish read [16:50:12]Found Content-Length = 682 [16:50:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209870", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:50:12]execute_script... [16:50: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)209870", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:50:12]POST & json_proto [16:50:12]process_json_proto [16:50:12]json parsed OK: [16:50:12]protocol is kg_v1.0 [16:50:12]action value=close_receipt [16:50:12]process_action close_receipt [16:50:12]cmd_close_receipt [16:50:12]MH_GetDate [16:50:12]Write to MH i2c: F0 00 00 D1 70 30 [16:50:12]Write i2c OK [16:50:12]MH_I2C_Read... [16:50:12]Read from MH i2c: F0 [16:50:12]MH_I2C_Read... [16:50:12]Read from MH i2c: F0 09 00 [16:50:12]MH_I2C_Read... [16:50:12]Read from MH i2c: F0 09 00 D1 70 00 49 86 16 67 A0 18 CA 66 6D [16:50:12]GetLastDocTimeStamp 1729529382 [16:50:12]current date 1729529417 [16:50:12]FM_GetShiftState [16:50:12]SAM_PROTO_GetShiftState [16:50:12]wFMCommunicate request_size=4 [16:50:12]MH_SAM_APDU [16:50:12]CAPDU: 80 13 01 00 [16:50:12]Write to MH i2c: E2 08 00 D2 70 80 13 01 00 00 00 00 00 BF [16:50:12]Write i2c OK [16:50:12]MH_I2C_Read... [16:50:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:50:12]Read from MH i2c: E2 [16:50:12]MH_I2C_Read... [16:50:12]Read from MH i2c: E2 0E 00 [16:50:12]MH_I2C_Read... [16:50:12]Read from MH i2c: E2 0E 00 D2 70 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 1E [16:50:12]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [16:50:12]wFMCommunicate OK [16:50:12]SAM_PROTO_GetShiftState done [16:50:12]FM_GetShiftState done [16:50:12]opened in 1729469754 [16:50:12]opened+sec_in_day 1729556154 [16:50:12]quantity*price = 100015 [16:50:12]sum+1 = 100017 [16:50:12]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 282 21.10.2024 16:50 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 187818 ФПД: 171598851197061 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T165017&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187818&fm=171598851197061&tin=02508201610067®Number=0000000000100030&sum=100000 [16:50:13]StoreToDocumentArchive [16:50:13]shift 460 fd 187818 [16:50:13]save to /storage/0460/doc_00187818 [16:50:13]save last doc name /storage/0460/doc_00187818 to /storage/kkm_last_doc_name [16:50:13]save OK [16:50:13]Clear old archive folders... [16:50:13]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:50:13]tlvbuf is 012E3DB0 [16:50:13]SAM_PROTO_ClearQueue [16:50:13]wFMCommunicate request_size=4 [16:50:13]MH_SAM_APDU [16:50:13]CAPDU: 80 09 00 00 [16:50:13]Write to MH i2c: E2 08 00 DF 70 80 09 00 00 00 00 00 00 C1 [16:50:13]Write i2c OK [16:50:13]MH_I2C_Read... [16:50:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:50:13]Read from MH i2c: E2 [16:50:13]MH_I2C_Read... [16:50:13]Read from MH i2c: E2 03 00 [16:50:13]MH_I2C_Read... [16:50:13]Read from MH i2c: E2 03 00 DF 70 00 90 00 C3 [16:50:13]RAPDU: 90 00 [16:50:13]wFMCommunicate OK [16:50:13]SAM_PROTO_ClearQueue done [16:50:13]KKMCreateOFDPacket [16:50:13]OFDProtocolAddRootSTLVToBuf [16:50:13]FM_MakeSignedData [16:50:13]FM_MakeSignedData [16:50:13]SAM_PROTO_SignData [16:50:13]wFMCommunicate request_size=4 [16:50:13]MH_SAM_APDU [16:50:13]CAPDU: 80 0D 01 02 [16:50:13]Write to MH i2c: E2 08 00 E0 70 80 0D 01 02 00 00 00 00 C9 [16:50:13]Write i2c OK [16:50:13]MH_I2C_Read... [16:50:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:50:13]Read from MH i2c: E2 [16:50:13]MH_I2C_Read... [16:50:13]Read from MH i2c: E2 03 00 [16:50:13]MH_I2C_Read... [16:50:13]Read from MH i2c: E2 03 00 E0 70 00 90 00 C4 [16:50:13]RAPDU: 90 00 [16:50:13]wFMCommunicate OK [16:50:13]wFMCommunicate request_size=255 [16:50:13]MH_SAM_APDU [16:50: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 33 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 01 00 00 F4 03 04 00 49 86 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 AA DD 02 00 35 04 06 00 9C [16:50:13]Write to MH i2c: E2 02 01 E1 70 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 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 01 00 00 F4 03 04 00 49 86 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 AA DD 02 00 35 04 06 00 9C 00 00 8F [16:50:13]Write i2c OK [16:50:13]MH_I2C_Read... [16:50:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:50:14]Read from MH i2c: E2 [16:50:14]MH_I2C_Read... [16:50:14]Read from MH i2c: E2 03 00 [16:50:14]MH_I2C_Read... [16:50:14]Read from MH i2c: E2 03 00 E1 70 00 90 00 C5 [16:50:14]RAPDU: 90 00 [16:50:14]wFMCommunicate OK [16:50:14]wFMCommunicate request_size=10 [16:50:14]MH_SAM_APDU [16:50:14]CAPDU: 80 0D 02 02 05 11 78 91 C8 85 [16:50:14]Write to MH i2c: E2 0D 00 E2 70 80 0D 02 02 05 00 11 78 91 C8 85 00 00 3D [16:50:14]Write i2c OK [16:50:14]MH_I2C_Read... [16:50:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:50:14]Read from MH i2c: E2 [16:50:14]MH_I2C_Read... [16:50:14]Read from MH i2c: E2 03 00 [16:50:14]MH_I2C_Read... [16:50:14]Read from MH i2c: E2 03 00 E2 70 00 90 00 C6 [16:50:14]RAPDU: 90 00 [16:50:14]wFMCommunicate OK [16:50:14]wFMCommunicate request_size=4 [16:50:14]MH_SAM_APDU [16:50:14]CAPDU: 80 0D 03 02 [16:50:14]Write to MH i2c: E2 08 00 E3 70 80 0D 03 02 00 00 00 00 CE [16:50:14]Write i2c OK [16:50:14]MH_I2C_Read... [16:50:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:50:14]Read from MH i2c: E2 [16:50:14]MH_I2C_Read... [16:50:14]Read from MH i2c: E2 0B 00 [16:50:14]MH_I2C_Read... [16:50:14]Read from MH i2c: E2 0B 00 E3 70 00 53 10 E7 12 35 D0 4E 6F 90 00 ED [16:50:14]RAPDU: 53 10 E7 12 35 D0 4E 6F 90 00 [16:50:14]wFMCommunicate OK [16:50:14]SAM_PROTO_SignData done [16:50:14]FM_MakeSignedData done [16:50:14]CreateOFDProtocolMessage [16:50:14]wFMCommunicate request_size=4 [16:50:14]MH_SAM_APDU [16:50:14]CAPDU: 80 11 00 00 [16:50:14]Write to MH i2c: E2 08 00 E4 70 80 11 00 00 00 00 00 00 CE [16:50:14]Write i2c OK [16:50:14]MH_I2C_Read... [16:50:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:50:14]Read from MH i2c: E2 [16:50:14]MH_I2C_Read... [16:50:14]Read from MH i2c: E2 17 00 [16:50:14]MH_I2C_Read... [16:50:14]Read from MH i2c: E2 17 00 E4 70 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 1C [16:50:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [16:50:14]wFMCommunicate OK [16:50:14]CreateOFDProtocolMessage done [16:50:14]OFDSenderStorePacket 187818 [16:50:14]StoreOFDPacket docnum=187818 [16:50:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 4A A3 07 01 60 D5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 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 01 00 00 F4 03 04 00 49 86 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 AA DD 02 00 35 04 06 00 9C 11 78 91 C8 85 53 10 E7 12 35 D0 4E 6F [16:50:14]CheckFolder [16:50:14]dirname=/storage/ofd_packets [16:50:14]CheckFolder done [16:50:14]ProducePacketName [16:50:14]name=ofd_packets/00187818 [16:50:14]NVStorageSaveData ofd_packets/00187818 [16:50:14]File name is /storage/ofd_packets/00187818 [16:50:14]Write 301 bytes [16:50:14]NVStorageSaveData done [16:50:14]OFDSenderStorePacket done [16:50:14]KKMCreateOFDPacket done [16:50:14]NVStorageSaveData kkm_last_timestamp [16:50:14]File name is /storage/kkm_last_timestamp [16:50:14]Write 4 bytes [16:50:14]NVStorageSaveData done [16:50:14]ExternCall_PrintAddStr [16:50:14]wPrintStart [16:50:14]Write to MH i2c: 01 00 00 E5 70 55 [16:50:14]Write i2c OK [16:50:14]MH_I2C_Read... [16:50:14]Read from MH i2c: 01 [16:50:14]MH_I2C_Read... [16:50:14]Read from MH i2c: 01 07 00 [16:50:14]MH_I2C_Read... [16:50:14]Read from MH i2c: 01 07 00 E5 70 00 00 00 00 00 FF 0F 6A [16:50:14]RasterBufferAndPrint [16:50:14]line Счет N : (1)209870 [16:50:14]line ИНН: 02508201610067 [16:50:14]line Контрольно-Кассовый Чек [16:50:14]line ПРОДАЖА [16:50:14]line ТРК (МРК, ГНК) : 42 [16:50:14]line Товар: 2710124130 [16:50:14]line Аи-92-К-3 [16:50:14]line 14.950 * 66.90 [16:50:14]line = 1000.16 [16:50:14]line НДС 12% НСП 1% [16:50:14]line > о реализуемом товаре [16:50:14]line ОКРУГЛЕНИЕ: -0.16 [16:50:14]line ИТОГО: 1000.00 [16:50:14]line Внесено: 1000.00 [16:50:14]line СДАЧА: 0.00 [16:50:14]line НСП 1% : 8.85 [16:50:14]line НДС 12% : 106.21 [16:50:14]line Наличными: 1000.00 [16:50:14]line Безнал.: 0.00 [16:50:14]line Место: АЗС № 86 "Партнер Нефть" [16:50:14]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [16:50:14]line СНО: Общий режим [16:50:14]line Чек 282 21.10.2024 16:50 [16:50:14]line Смена: 460 ФФД: 1.0 [16:50:14]line ЗНМ: 0300000155 [16:50:14]line РНМ: 0000000000100030 [16:50:14]line Версия ККМ: 001 [16:50:14]line ФМ: 0000000000965340 [16:50:14]line ФД: 187818 [16:50:14]line ФПД: 171598851197061 [16:50:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T165017&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187818&fm=171598851197061&tin=02508201610067®Number=0000000000100030&sum=100000 [16:50:14]written 0, free lines is 4095 [16:50:14]OFD Sender: Processing packet 187818 [packets to send 1062, broken 1061] [16:50:14]ProducePacketName [16:50:14]name=ofd_packets/00187818 [16:50:14]OFD Sender: To server: pG, [16:50:14]CommunicateWithHost lk.salyk.kg:30040 [16:50:14]ConnectInit lk.salyk.kg [16:50:14]Connected sock=10 [16:50:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 4A A3 07 01 60 D5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 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 01 00 00 F4 03 04 00 49 86 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 AA DD 02 00 35 04 06 00 9C 11 78 91 C8 85 53 10 E7 12 35 D0 4E 6F [16:50:14]Write to MH i2c: 01 00 00 10 71 81 [16:50:14]Write i2c OK [16:50:14]MH_I2C_Read... [16:50:14]Read from MH i2c: 01 [16:50:14]MH_I2C_Read... [16:50:14]Read from MH i2c: 01 07 00 [16:50:14]MH_I2C_Read... [16:50:14]Read from MH i2c: 01 07 00 10 71 00 00 00 00 00 6D 0C 01 [16:50:14]RasterBufferAndPrint [16:50:14]line [16:50:14]line [16:50:14]line [16:50:14]line [16:50:14]line [16:50:14]written 0, free lines is 3184 [16:50:14]MH_Cut [16:50:14]Write to MH i2c: D1 01 00 17 71 01 5A [16:50:14]Write i2c OK [16:50:14]MH_I2C_Read... [16:50:14]Read from MH i2c: D1 [16:50:14]MH_I2C_Read... [16:50:14]Read from MH i2c: D1 01 00 [16:50:14]MH_I2C_Read... [16:50:14]Read from MH i2c: D1 01 00 17 71 00 59 [16:50:14]Write to MH i2c: 01 00 00 18 71 89 [16:50:14]Write i2c OK [16:50:14]MH_I2C_Read... [16:50:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 31 1E 47 00 AB 70 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 AA DD 02 00 F4 03 04 00 38 30 16 67 B6 04 01 00 00 87 67 94 DF 1A 15 DF 7C [16:50:14]CommunicateWithHost err = 0 [16:50:14]CheckOFDResponse [16:50:14]1017 (14) - 77093643461234 [16:50:14]1041 (16) - 0000000000965340 [16:50:14]1040 (4) - 187818 [16:50:14]1012 (4) - 21.10.2024 10:43 [16:50:14]1206 (1) - 0 [16:50:14]OFD Sender: Remove packet 187818 [16:50:14]ProducePacketName [16:50:14]name=ofd_packets/00187818 [16:50:14]NVStorageDeleteData [16:50:15]OFD Sender: No OFD packet to send [16:50:15]*** Cut start [16:50:15]*** Partial cut [16:50:15]*** CUTSNS_PIN = 1 [16:50:15]*** CUTSNS_PIN = 0 [16:50:16]*** Brake cut motor [16:50:16]Read from MH i2c: 01 [16:50:16]MH_I2C_Read... [16:50:16]*** Stop cut motor [16:50:16]*** Cut end [16:50:16]Read from MH i2c: 01 07 00 [16:50:16]MH_I2C_Read... [16:50:16]Read from MH i2c: 01 07 00 18 71 00 00 00 00 00 FF 0F 9E [16:50:16]process_action close_receipt done [16:50:16]requested_data is exist [16:50:16]produce_requested_data [16:50:16]requested_item fm.sn is exist - process it [16:50:16]wFMCommunicate request_size=4 [16:50:16]MH_SAM_APDU [16:50:16]CAPDU: 80 11 00 00 [16:50:16]Write to MH i2c: E2 08 00 19 71 80 11 00 00 00 00 00 00 04 [16:50:16]Write i2c OK [16:50:16]MH_I2C_Read... [16:50:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:50:16]Read from MH i2c: E2 [16:50:16]MH_I2C_Read... [16:50:16]Read from MH i2c: E2 17 00 [16:50:16]MH_I2C_Read... [16:50:16]Read from MH i2c: E2 17 00 19 71 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 52 [16:50:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [16:50:16]wFMCommunicate OK [16:50:16]requested_item fd.num is exist - process it [16:50:16]SAM_PROTO_GetFieldsCounters [16:50:16]wFMCommunicate request_size=4 [16:50:16]MH_SAM_APDU [16:50:16]CAPDU: 80 13 00 00 [16:50:16]Write to MH i2c: E2 08 00 1A 71 80 13 00 00 00 00 00 00 07 [16:50:16]Write i2c OK [16:50:16]MH_I2C_Read... [16:50:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:50:16]Read from MH i2c: E2 [16:50:16]MH_I2C_Read... [16:50:16]Read from MH i2c: E2 62 00 [16:50:16]MH_I2C_Read... [16:50:16]Read from MH i2c: E2 62 00 1A 71 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 AA DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 1A 01 00 00 5E 04 04 00 1A 01 00 00 57 04 04 00 1B 01 00 00 19 04 04 00 00 00 00 00 90 00 B5 [16:50:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 AA DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 1A 01 00 00 5E 04 04 00 1A 01 00 00 57 04 04 00 1B 01 00 00 19 04 04 00 00 00 00 00 90 00 [16:50:16]wFMCommunicate OK [16:50:16]SAM_PROTO_GetFieldsCounters done [16:50:16]requested_item shift.num is exist - process it [16:50:16]requested_item shift.opened is exist - process it [16:50:16]req_shift_opened [16:50:16]FM_GetShiftState [16:50:16]SAM_PROTO_GetShiftState [16:50:16]wFMCommunicate request_size=4 [16:50:16]MH_SAM_APDU [16:50:16]CAPDU: 80 13 01 00 [16:50:16]Write to MH i2c: E2 08 00 1B 71 80 13 01 00 00 00 00 00 09 [16:50:16]Write i2c OK [16:50:16]MH_I2C_Read... [16:50:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:50:16]Read from MH i2c: E2 [16:50:16]MH_I2C_Read... [16:50:16]Read from MH i2c: E2 0E 00 [16:50:16]MH_I2C_Read... [16:50:16]Read from MH i2c: E2 0E 00 1B 71 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 68 [16:50:16]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [16:50:16]wFMCommunicate OK [16:50:16]SAM_PROTO_GetShiftState done [16:50:16]FM_GetShiftState done [16:50:16]req_shift_opened done [16:50:16]requested_item shift.open_date is exist - process it [16:50:16]req_shift_open_date [16:50:16]req_shift_open_date done [16:50:16]produce_requested_data done [16:50:16]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187818,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [16:50:16]process_action_free close_receipt [16:50:16]json_value_free [16:50:16]json_value_free done [16:50:16]process_json_proto returns [16:50:16]Send response to host [16:50:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187818,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [16:50:16]free response buf [16:50:16]execute_script done [16:50:16]execute_script returns [16:50:16]free content buf [16:50:16]Sock 8.Close socket [16:50:16]Sock 8.Thread stoped [16:50:20]OFD Sender: No OFD packet to send [16:50:25]OFD Sender: No OFD packet to send [16:50:30]OFD Sender: No OFD packet to send [16:50:35]OFD Sender: No OFD packet to send [16:50:40]OFD Sender: No OFD packet to send [16:50:45]OFD Sender: No OFD packet to send [16:50:50]OFD Sender: No OFD packet to send [16:50:55]OFD Sender: No OFD packet to send [16:51:00]OFD Sender: No OFD packet to send [16:51:05]OFD Sender: No OFD packet to send [16:51:10]OFD Sender: No OFD packet to send [16:51:15]OFD Sender: No OFD packet to send [16:51:20]OFD Sender: No OFD packet to send [16:51:25]OFD Sender: No OFD packet to send [16:51:30]OFD Sender: No OFD packet to send [16:51:35]OFD Sender: No OFD packet to send [16:51:40]OFD Sender: No OFD packet to send [16:51:45]OFD Sender: No OFD packet to send [16:51:50]OFD Sender: No OFD packet to send [16:51:55]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:16]OFD Sender: No OFD packet to send [16:52:21]OFD Sender: No OFD packet to send [16:52:26]OFD Sender: No OFD packet to send [16:52:31]OFD Sender: No OFD packet to send [16:52:36]OFD Sender: No OFD packet to send [16:52:41]OFD Sender: No OFD packet to send [16:52:46]OFD Sender: No OFD packet to send [16:52:51]OFD Sender: No OFD packet to send [16:52:56]OFD Sender: No OFD packet to send [16:53:01]OFD Sender: No OFD packet to send [16:53:06]OFD Sender: No OFD packet to send [16:53:11]OFD Sender: No OFD packet to send [16:53:16]OFD Sender: No OFD packet to send [16:53:21]OFD Sender: No OFD packet to send [16:53:26]OFD Sender: No OFD packet to send [16:53:30]accept exits with 9 [16:53:30]New connection [16:53:30]New thread 3067014500 created [16:53:30]Thread 3067157860 joined [16:53:30]Waiting for new connection... [16:53:30] Sock 9.Parse request [16:53:30]Sock 9.Check first char [16:53:30]Sock 9.First char is OK [16:53:30]request: POST /json_proto HTTP/1.0 [16:53:30]Method: POST [16:53:30]URL: /json_proto [16:53:30]Method is POST - this is cgi request [16:53:30]url: /json_proto [16:53:30]query_string will be loaded in cgi processing [16:53:30]execute_cgi json_proto POST (null) [16:53:30]execute_cgi path=json_proto method=POST [16:53:30]POST find Content-Length [16:53:30]Host: 172.17.42.131:8080 [16:53:30]Content-Length: 682 [16:53:30]Content-Type: application/json [16:53:30] [16:53:30]POST finish read [16:53:30]Found Content-Length = 682 [16:53:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209872", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:53:30]execute_script... [16:53: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)209872", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:53:30]POST & json_proto [16:53:30]process_json_proto [16:53:30]json parsed OK: [16:53:30]protocol is kg_v1.0 [16:53:30]action value=close_receipt [16:53:30]process_action close_receipt [16:53:30]cmd_close_receipt [16:53:30]MH_GetDate [16:53:30]Write to MH i2c: F0 00 00 1C 71 7C [16:53:30]Write i2c OK [16:53:30]MH_I2C_Read... [16:53:30]Read from MH i2c: F0 [16:53:30]MH_I2C_Read... [16:53:30]Read from MH i2c: F0 09 00 [16:53:30]MH_I2C_Read... [16:53:30]Read from MH i2c: F0 09 00 1C 71 00 0F 87 16 67 A0 18 CA 66 80 [16:53:30]GetLastDocTimeStamp 1729529417 [16:53:30]current date 1729529615 [16:53:30]FM_GetShiftState [16:53:30]SAM_PROTO_GetShiftState [16:53:30]wFMCommunicate request_size=4 [16:53:30]MH_SAM_APDU [16:53:30]CAPDU: 80 13 01 00 [16:53:30]Write to MH i2c: E2 08 00 1D 71 80 13 01 00 00 00 00 00 0B [16:53:30]Write i2c OK [16:53:30]MH_I2C_Read... [16:53:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:53:30]Read from MH i2c: E2 [16:53:30]MH_I2C_Read... [16:53:30]Read from MH i2c: E2 0E 00 [16:53:30]MH_I2C_Read... [16:53:30]Read from MH i2c: E2 0E 00 1D 71 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 6A [16:53:30]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [16:53:30]wFMCommunicate OK [16:53:30]SAM_PROTO_GetShiftState done [16:53:30]FM_GetShiftState done [16:53:30]opened in 1729469754 [16:53:30]opened+sec_in_day 1729556154 [16:53:30]quantity*price = 100015 [16:53:30]sum+1 = 100017 [16:53: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 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 283 21.10.2024 16:53 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 187819 ФПД: 101838720253440 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T165335&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187819&fm=101838720253440&tin=02508201610067®Number=0000000000100030&sum=100000 [16:53:31]StoreToDocumentArchive [16:53:31]shift 460 fd 187819 [16:53:31]save to /storage/0460/doc_00187819 [16:53:31]save last doc name /storage/0460/doc_00187819 to /storage/kkm_last_doc_name [16:53:31]save OK [16:53:31]Clear old archive folders... [16:53:31]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:53:31]tlvbuf is 0130A720 [16:53:31]SAM_PROTO_ClearQueue [16:53:31]wFMCommunicate request_size=4 [16:53:31]MH_SAM_APDU [16:53:31]CAPDU: 80 09 00 00 [16:53:31]Write to MH i2c: E2 08 00 2A 71 80 09 00 00 00 00 00 00 0D [16:53:31]Write i2c OK [16:53:31]MH_I2C_Read... [16:53:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:53:31]Read from MH i2c: E2 [16:53:31]MH_I2C_Read... [16:53:31]Read from MH i2c: E2 03 00 [16:53:31]MH_I2C_Read... [16:53:31]Read from MH i2c: E2 03 00 2A 71 00 90 00 0F [16:53:31]RAPDU: 90 00 [16:53:31]wFMCommunicate OK [16:53:31]SAM_PROTO_ClearQueue done [16:53:31]KKMCreateOFDPacket [16:53:31]OFDProtocolAddRootSTLVToBuf [16:53:31]FM_MakeSignedData [16:53:31]FM_MakeSignedData [16:53:31]SAM_PROTO_SignData [16:53:31]wFMCommunicate request_size=4 [16:53:31]MH_SAM_APDU [16:53:31]CAPDU: 80 0D 01 02 [16:53:31]Write to MH i2c: E2 08 00 2B 71 80 0D 01 02 00 00 00 00 15 [16:53:31]Write i2c OK [16:53:31]MH_I2C_Read... [16:53:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:53:31]Read from MH i2c: E2 [16:53:31]MH_I2C_Read... [16:53:31]Read from MH i2c: E2 03 00 [16:53:31]MH_I2C_Read... [16:53:31]Read from MH i2c: E2 03 00 2B 71 00 90 00 10 [16:53:31]RAPDU: 90 00 [16:53:31]wFMCommunicate OK [16:53:31]wFMCommunicate request_size=255 [16:53:31]MH_SAM_APDU [16:53: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 33 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 1B 01 00 00 F4 03 04 00 0F 87 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 AB DD 02 00 35 04 06 00 5C [16:53:31]Write to MH i2c: E2 02 01 2C 71 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 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 1B 01 00 00 F4 03 04 00 0F 87 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 AB DD 02 00 35 04 06 00 5C 00 00 64 [16:53:31]Write i2c OK [16:53:31]MH_I2C_Read... [16:53:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:53:32]Read from MH i2c: E2 [16:53:32]MH_I2C_Read... [16:53:32]Read from MH i2c: E2 03 00 [16:53:32]MH_I2C_Read... [16:53:32]Read from MH i2c: E2 03 00 2C 71 00 90 00 11 [16:53:32]RAPDU: 90 00 [16:53:32]wFMCommunicate OK [16:53:32]wFMCommunicate request_size=10 [16:53:32]MH_SAM_APDU [16:53:32]CAPDU: 80 0D 02 02 05 9F 2C BE BE 00 [16:53:32]Write to MH i2c: E2 0D 00 2D 71 80 0D 02 02 05 00 9F 2C BE BE 00 00 00 69 [16:53:32]Write i2c OK [16:53:32]MH_I2C_Read... [16:53:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:53:32]Read from MH i2c: E2 [16:53:32]MH_I2C_Read... [16:53:32]Read from MH i2c: E2 03 00 [16:53:32]MH_I2C_Read... [16:53:32]Read from MH i2c: E2 03 00 2D 71 00 90 00 12 [16:53:32]RAPDU: 90 00 [16:53:32]wFMCommunicate OK [16:53:32]wFMCommunicate request_size=4 [16:53:32]MH_SAM_APDU [16:53:32]CAPDU: 80 0D 03 02 [16:53:32]Write to MH i2c: E2 08 00 2E 71 80 0D 03 02 00 00 00 00 1A [16:53:32]Write i2c OK [16:53:32]MH_I2C_Read... [16:53:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:53:32]Read from MH i2c: E2 [16:53:32]MH_I2C_Read... [16:53:32]Read from MH i2c: E2 0B 00 [16:53:32]MH_I2C_Read... [16:53:32]Read from MH i2c: E2 0B 00 2E 71 00 C4 F1 C7 E4 7E 8B A1 CC 90 00 F1 [16:53:32]RAPDU: C4 F1 C7 E4 7E 8B A1 CC 90 00 [16:53:32]wFMCommunicate OK [16:53:32]SAM_PROTO_SignData done [16:53:32]FM_MakeSignedData done [16:53:32]CreateOFDProtocolMessage [16:53:32]wFMCommunicate request_size=4 [16:53:32]MH_SAM_APDU [16:53:32]CAPDU: 80 11 00 00 [16:53:32]Write to MH i2c: E2 08 00 2F 71 80 11 00 00 00 00 00 00 1A [16:53:32]Write i2c OK [16:53:32]MH_I2C_Read... [16:53:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:53:32]Read from MH i2c: E2 [16:53:32]MH_I2C_Read... [16:53:32]Read from MH i2c: E2 17 00 [16:53:32]MH_I2C_Read... [16:53:32]Read from MH i2c: E2 17 00 2F 71 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 68 [16:53:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [16:53:32]wFMCommunicate OK [16:53:32]CreateOFDProtocolMessage done [16:53:32]OFDSenderStorePacket 187819 [16:53:32]StoreOFDPacket docnum=187819 [16:53:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 7E 19 07 01 53 61 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 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 1B 01 00 00 F4 03 04 00 0F 87 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 AB DD 02 00 35 04 06 00 5C 9F 2C BE BE 00 C4 F1 C7 E4 7E 8B A1 CC [16:53:32]CheckFolder [16:53:32]dirname=/storage/ofd_packets [16:53:32]CheckFolder done [16:53:32]ProducePacketName [16:53:32]name=ofd_packets/00187819 [16:53:32]NVStorageSaveData ofd_packets/00187819 [16:53:32]File name is /storage/ofd_packets/00187819 [16:53:32]Write 301 bytes [16:53:32]NVStorageSaveData done [16:53:32]OFDSenderStorePacket done [16:53:32]KKMCreateOFDPacket done [16:53:32]NVStorageSaveData kkm_last_timestamp [16:53:32]File name is /storage/kkm_last_timestamp [16:53:32]Write 4 bytes [16:53:32]NVStorageSaveData done [16:53:32]ExternCall_PrintAddStr [16:53:32]wPrintStart [16:53:32]Write to MH i2c: 01 00 00 30 71 A1 [16:53:32]Write i2c OK [16:53:32]MH_I2C_Read... [16:53:32]Read from MH i2c: 01 [16:53:32]MH_I2C_Read... [16:53:32]Read from MH i2c: 01 07 00 [16:53:32]MH_I2C_Read... [16:53:32]Read from MH i2c: 01 07 00 30 71 00 00 00 00 00 FF 0F B6 [16:53:32]RasterBufferAndPrint [16:53:32]line Счет N : (1)209872 [16:53:32]line ИНН: 02508201610067 [16:53:32]line Контрольно-Кассовый Чек [16:53:32]line ПРОДАЖА [16:53:32]line ТРК (МРК, ГНК) : 12 [16:53:32]line Товар: 2710124130 [16:53:32]line Аи-92-К-3 [16:53:32]line 14.950 * 66.90 [16:53:32]line = 1000.16 [16:53:32]line НДС 12% НСП 1% [16:53:32]line > о реализуемом товаре [16:53:32]line ОКРУГЛЕНИЕ: -0.16 [16:53:32]line ИТОГО: 1000.00 [16:53:32]line Внесено: 1000.00 [16:53:32]line СДАЧА: 0.00 [16:53:32]line НСП 1% : 8.85 [16:53:32]line НДС 12% : 106.21 [16:53:32]line Наличными: 1000.00 [16:53:32]line Безнал.: 0.00 [16:53:32]line Место: АЗС № 86 "Партнер Нефть" [16:53:32]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [16:53:32]line СНО: Общий режим [16:53:32]line Чек 283 21.10.2024 16:53 [16:53:32]line Смена: 460 ФФД: 1.0 [16:53:32]line ЗНМ: 0300000155 [16:53:32]line РНМ: 0000000000100030 [16:53:32]line Версия ККМ: 001 [16:53:32]line ФМ: 0000000000965340 [16:53:32]line ФД: 187819 [16:53:32]line ФПД: 101838720253440 [16:53:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T165335&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187819&fm=101838720253440&tin=02508201610067®Number=0000000000100030&sum=100000 [16:53:32]OFD Sender: Processing packet 187819 [packets to send 1062, broken 1061] [16:53:32]ProducePacketName [16:53:32]name=ofd_packets/00187819 [16:53:32]OFD Sender: To server: pG, [16:53:32]CommunicateWithHost lk.salyk.kg:30040 [16:53:32]ConnectInit lk.salyk.kg [16:53:32]written 0, free lines is 4095 [16:53:32]Connected sock=10 [16:53:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 7E 19 07 01 53 61 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 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 1B 01 00 00 F4 03 04 00 0F 87 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 AB DD 02 00 35 04 06 00 5C 9F 2C BE BE 00 C4 F1 C7 E4 7E 8B A1 CC [16:53:33]Write to MH i2c: 01 00 00 5B 71 CC [16:53:33]Write i2c OK [16:53:33]MH_I2C_Read... [16:53:33]Read from MH i2c: 01 [16:53:33]MH_I2C_Read... [16:53:33]Read from MH i2c: 01 07 00 [16:53:33]MH_I2C_Read... [16:53:33]Read from MH i2c: 01 07 00 5B 71 00 00 00 00 00 6C 0C 4B [16:53:33]RasterBufferAndPrint [16:53:33]line [16:53:33]line [16:53:33]line [16:53:33]line [16:53:33]line [16:53:33]written 0, free lines is 3182 [16:53:33]MH_Cut [16:53:33]Write to MH i2c: D1 01 00 62 71 01 A5 [16:53:33]Write i2c OK [16:53:33]MH_I2C_Read... [16:53:33]Read from MH i2c: D1 [16:53:33]MH_I2C_Read... [16:53:33]Read from MH i2c: D1 01 00 [16:53:33]MH_I2C_Read... [16:53:33]Read from MH i2c: D1 01 00 62 71 00 A4 [16:53:33]Write to MH i2c: 01 00 00 63 71 D4 [16:53:33]Write i2c OK [16:53:33]MH_I2C_Read... [16:53:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 4F C3 47 00 0E 69 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 AB DD 02 00 F4 03 04 00 FF 30 16 67 B6 04 01 00 00 0A B8 A8 C8 32 08 F2 E0 [16:53:33]CommunicateWithHost err = 0 [16:53:33]CheckOFDResponse [16:53:33]1017 (14) - 77093643461234 [16:53:33]1041 (16) - 0000000000965340 [16:53:33]1040 (4) - 187819 [16:53:33]1012 (4) - 21.10.2024 10:46 [16:53:33]1206 (1) - 0 [16:53:33]OFD Sender: Remove packet 187819 [16:53:33]ProducePacketName [16:53:33]name=ofd_packets/00187819 [16:53:33]NVStorageDeleteData [16:53:33]OFD Sender: No OFD packet to send [16:53:34]*** Cut start [16:53:34]*** Partial cut [16:53:34]*** CUTSNS_PIN = 1 [16:53:34]*** CUTSNS_PIN = 0 [16:53:34]*** Brake cut motor [16:53:34]Read from MH i2c: 01 [16:53:34]MH_I2C_Read... [16:53:34]*** Stop cut motor [16:53:34]*** Cut end [16:53:34]Read from MH i2c: 01 07 00 [16:53:34]MH_I2C_Read... [16:53:34]Read from MH i2c: 01 07 00 63 71 00 00 00 00 00 FF 0F E9 [16:53:34]process_action close_receipt done [16:53:34]requested_data is exist [16:53:34]produce_requested_data [16:53:34]requested_item fm.sn is exist - process it [16:53:34]wFMCommunicate request_size=4 [16:53:34]MH_SAM_APDU [16:53:34]CAPDU: 80 11 00 00 [16:53:34]Write to MH i2c: E2 08 00 64 71 80 11 00 00 00 00 00 00 4F [16:53:34]Write i2c OK [16:53:34]MH_I2C_Read... [16:53:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:53:34]Read from MH i2c: E2 [16:53:34]MH_I2C_Read... [16:53:34]Read from MH i2c: E2 17 00 [16:53:34]MH_I2C_Read... [16:53:34]Read from MH i2c: E2 17 00 64 71 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 9D [16:53:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [16:53:34]wFMCommunicate OK [16:53:34]requested_item fd.num is exist - process it [16:53:34]SAM_PROTO_GetFieldsCounters [16:53:34]wFMCommunicate request_size=4 [16:53:34]MH_SAM_APDU [16:53:34]CAPDU: 80 13 00 00 [16:53:34]Write to MH i2c: E2 08 00 65 71 80 13 00 00 00 00 00 00 52 [16:53:34]Write i2c OK [16:53:34]MH_I2C_Read... [16:53:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:53:35]Read from MH i2c: E2 [16:53:35]MH_I2C_Read... [16:53:35]Read from MH i2c: E2 62 00 [16:53:35]MH_I2C_Read... [16:53:35]Read from MH i2c: E2 62 00 65 71 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 AB DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 1B 01 00 00 5E 04 04 00 1B 01 00 00 57 04 04 00 1C 01 00 00 19 04 04 00 00 00 00 00 90 00 04 [16:53:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 AB DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 1B 01 00 00 5E 04 04 00 1B 01 00 00 57 04 04 00 1C 01 00 00 19 04 04 00 00 00 00 00 90 00 [16:53:35]wFMCommunicate OK [16:53:35]SAM_PROTO_GetFieldsCounters done [16:53:35]requested_item shift.num is exist - process it [16:53:35]requested_item shift.opened is exist - process it [16:53:35]req_shift_opened [16:53:35]FM_GetShiftState [16:53:35]SAM_PROTO_GetShiftState [16:53:35]wFMCommunicate request_size=4 [16:53:35]MH_SAM_APDU [16:53:35]CAPDU: 80 13 01 00 [16:53:35]Write to MH i2c: E2 08 00 66 71 80 13 01 00 00 00 00 00 54 [16:53:35]Write i2c OK [16:53:35]MH_I2C_Read... [16:53:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:53:35]Read from MH i2c: E2 [16:53:35]MH_I2C_Read... [16:53:35]Read from MH i2c: E2 0E 00 [16:53:35]MH_I2C_Read... [16:53:35]Read from MH i2c: E2 0E 00 66 71 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 B3 [16:53:35]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [16:53:35]wFMCommunicate OK [16:53:35]SAM_PROTO_GetShiftState done [16:53:35]FM_GetShiftState done [16:53:35]req_shift_opened done [16:53:35]requested_item shift.open_date is exist - process it [16:53:35]req_shift_open_date [16:53:35]req_shift_open_date done [16:53:35]produce_requested_data done [16:53:35]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187819,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [16:53:35]process_action_free close_receipt [16:53:35]json_value_free [16:53:35]json_value_free done [16:53:35]process_json_proto returns [16:53:35]Send response to host [16:53:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187819,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [16:53:35]free response buf [16:53:35]execute_script done [16:53:35]execute_script returns [16:53:35]free content buf [16:53:35]Sock 9.Close socket [16:53:35]Sock 9.Thread stoped [16:53:35]accept exits with 8 [16:53:35]New connection [16:53:35]New thread 3067157860 created [16:53:35]Thread 3067014500 joined [16:53:35]Waiting for new connection... [16:53:35] Sock 8.Parse request [16:53:35]Sock 8.Check first char [16:53:35]Sock 8.First char is OK [16:53:35]request: POST /json_proto HTTP/1.0 [16:53:35]Method: POST [16:53:35]URL: /json_proto [16:53:35]Method is POST - this is cgi request [16:53:35]url: /json_proto [16:53:35]query_string will be loaded in cgi processing [16:53:35]execute_cgi json_proto POST (null) [16:53:35]execute_cgi path=json_proto method=POST [16:53:35]POST find Content-Length [16:53:35]Host: 172.17.42.131:8080 [16:53:35]Content-Length: 792 [16:53:35]Content-Type: application/json [16:53:35] [16:53:35]POST finish read [16:53:35]Found Content-Length = 792 [16:53:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209873", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 0.00, "quantity" : 29.900, "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\u000A02633", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:53:35]execute_script... [16:53: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)209873", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 0.00, "quantity" : 29.900, "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\u000A02633", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:53:35]POST & json_proto [16:53:35]process_json_proto [16:53:35]json parsed OK: [16:53:35]protocol is kg_v1.0 [16:53:35]action value=close_receipt [16:53:35]process_action close_receipt [16:53:35]cmd_close_receipt [16:53:35]MH_GetDate [16:53:35]Write to MH i2c: F0 00 00 67 71 C7 [16:53:35]Write i2c OK [16:53:35]MH_I2C_Read... [16:53:35]Read from MH i2c: F0 [16:53:35]MH_I2C_Read... [16:53:35]Read from MH i2c: F0 09 00 [16:53:35]MH_I2C_Read... [16:53:35]Read from MH i2c: F0 09 00 67 71 00 14 87 16 67 A0 18 CA 66 D0 [16:53:35]GetLastDocTimeStamp 1729529615 [16:53:35]current date 1729529620 [16:53:35]FM_GetShiftState [16:53:35]SAM_PROTO_GetShiftState [16:53:35]wFMCommunicate request_size=4 [16:53:35]MH_SAM_APDU [16:53:35]CAPDU: 80 13 01 00 [16:53:35]Write to MH i2c: E2 08 00 68 71 80 13 01 00 00 00 00 00 56 [16:53:35]Write i2c OK [16:53:35]MH_I2C_Read... [16:53:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:53:35]Read from MH i2c: E2 [16:53:35]MH_I2C_Read... [16:53:35]Read from MH i2c: E2 0E 00 [16:53:35]MH_I2C_Read... [16:53:35]Read from MH i2c: E2 0E 00 68 71 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 B5 [16:53:35]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [16:53:35]wFMCommunicate OK [16:53:35]SAM_PROTO_GetShiftState done [16:53:35]FM_GetShiftState done [16:53:35]opened in 1729469754 [16:53:35]opened+sec_in_day 1729556154 [16:53:35]quantity*price = 0 [16:53:35]sum+1 = 1 [16:53:35]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 284 21.10.2024 16:53 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Талоны: Топливная Карта 02633 ФМ: 0000000000965340 ФД: 187820 ФПД: 90236836847365 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T165340&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187820&fm=90236836847365&tin=02508201610067®Number=0000000000100030&sum=0 [16:53:37]StoreToDocumentArchive [16:53:37]shift 460 fd 187820 [16:53:37]save to /storage/0460/doc_00187820 [16:53:37]save last doc name /storage/0460/doc_00187820 to /storage/kkm_last_doc_name [16:53:37]save OK [16:53:37]Clear old archive folders... [16:53:37]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:53:37]tlvbuf is 0122E450 [16:53:37]SAM_PROTO_ClearQueue [16:53:37]wFMCommunicate request_size=4 [16:53:37]MH_SAM_APDU [16:53:37]CAPDU: 80 09 00 00 [16:53:37]Write to MH i2c: E2 08 00 75 71 80 09 00 00 00 00 00 00 58 [16:53:37]Write i2c OK [16:53:37]MH_I2C_Read... [16:53:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:53:37]Read from MH i2c: E2 [16:53:37]MH_I2C_Read... [16:53:37]Read from MH i2c: E2 03 00 [16:53:37]MH_I2C_Read... [16:53:37]Read from MH i2c: E2 03 00 75 71 00 90 00 5A [16:53:37]RAPDU: 90 00 [16:53:37]wFMCommunicate OK [16:53:37]SAM_PROTO_ClearQueue done [16:53:37]KKMCreateOFDPacket [16:53:37]OFDProtocolAddRootSTLVToBuf [16:53:37]FM_MakeSignedData [16:53:37]FM_MakeSignedData [16:53:37]SAM_PROTO_SignData [16:53:37]wFMCommunicate request_size=4 [16:53:37]MH_SAM_APDU [16:53:37]CAPDU: 80 0D 01 02 [16:53:37]Write to MH i2c: E2 08 00 76 71 80 0D 01 02 00 00 00 00 60 [16:53:37]Write i2c OK [16:53:37]MH_I2C_Read... [16:53:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:53:37]Read from MH i2c: E2 [16:53:37]MH_I2C_Read... [16:53:37]Read from MH i2c: E2 03 00 [16:53:37]MH_I2C_Read... [16:53:37]Read from MH i2c: E2 03 00 76 71 00 90 00 5B [16:53:37]RAPDU: 90 00 [16:53:37]wFMCommunicate OK [16:53:37]wFMCommunicate request_size=255 [16:53:37]MH_SAM_APDU [16:53: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 33 FF 03 08 00 03 CC 74 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 1C 01 00 00 F4 03 04 00 14 87 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 AC DD 02 00 35 04 06 00 52 [16:53:37]Write to MH i2c: E2 02 01 77 71 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 CC 74 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 1C 01 00 00 F4 03 04 00 14 87 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 AC DD 02 00 35 04 06 00 52 00 00 6D [16:53:37]Write i2c OK [16:53:37]MH_I2C_Read... [16:53:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:53:37]Read from MH i2c: E2 [16:53:37]MH_I2C_Read... [16:53:37]Read from MH i2c: E2 03 00 [16:53:37]MH_I2C_Read... [16:53:37]Read from MH i2c: E2 03 00 77 71 00 90 00 5C [16:53:37]RAPDU: 90 00 [16:53:37]wFMCommunicate OK [16:53:37]wFMCommunicate request_size=10 [16:53:37]MH_SAM_APDU [16:53:37]CAPDU: 80 0D 02 02 05 11 E6 9B 1F 05 [16:53:37]Write to MH i2c: E2 0D 00 78 71 80 0D 02 02 05 00 11 E6 9B 1F 05 00 00 23 [16:53:37]Write i2c OK [16:53:37]MH_I2C_Read... [16:53:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:53:37]Read from MH i2c: E2 [16:53:37]MH_I2C_Read... [16:53:37]Read from MH i2c: E2 03 00 [16:53:37]MH_I2C_Read... [16:53:37]Read from MH i2c: E2 03 00 78 71 00 90 00 5D [16:53:37]RAPDU: 90 00 [16:53:37]wFMCommunicate OK [16:53:37]wFMCommunicate request_size=4 [16:53:37]MH_SAM_APDU [16:53:37]CAPDU: 80 0D 03 02 [16:53:37]Write to MH i2c: E2 08 00 79 71 80 0D 03 02 00 00 00 00 65 [16:53:37]Write i2c OK [16:53:37]MH_I2C_Read... [16:53:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:53:37]Read from MH i2c: E2 [16:53:37]MH_I2C_Read... [16:53:37]Read from MH i2c: E2 0B 00 [16:53:37]MH_I2C_Read... [16:53:37]Read from MH i2c: E2 0B 00 79 71 00 4E A6 37 DE A0 56 5A 8D 90 00 4C [16:53:37]RAPDU: 4E A6 37 DE A0 56 5A 8D 90 00 [16:53:37]wFMCommunicate OK [16:53:37]SAM_PROTO_SignData done [16:53:37]FM_MakeSignedData done [16:53:37]CreateOFDProtocolMessage [16:53:37]wFMCommunicate request_size=4 [16:53:37]MH_SAM_APDU [16:53:37]CAPDU: 80 11 00 00 [16:53:37]Write to MH i2c: E2 08 00 7A 71 80 11 00 00 00 00 00 00 65 [16:53:37]Write i2c OK [16:53:37]MH_I2C_Read... [16:53:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:53:37]Read from MH i2c: E2 [16:53:37]MH_I2C_Read... [16:53:37]Read from MH i2c: E2 17 00 [16:53:37]MH_I2C_Read... [16:53:37]Read from MH i2c: E2 17 00 7A 71 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 B3 [16:53:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [16:53:37]wFMCommunicate OK [16:53:37]CreateOFDProtocolMessage done [16:53:37]OFDSenderStorePacket 187820 [16:53:37]StoreOFDPacket docnum=187820 [16:53:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 58 78 07 01 17 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 33 FF 03 08 00 03 CC 74 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 1C 01 00 00 F4 03 04 00 14 87 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 AC DD 02 00 35 04 06 00 52 11 E6 9B 1F 05 4E A6 37 DE A0 56 5A 8D [16:53:37]CheckFolder [16:53:37]dirname=/storage/ofd_packets [16:53:37]CheckFolder done [16:53:37]ProducePacketName [16:53:37]name=ofd_packets/00187820 [16:53:37]NVStorageSaveData ofd_packets/00187820 [16:53:37]File name is /storage/ofd_packets/00187820 [16:53:37]Write 301 bytes [16:53:37]NVStorageSaveData done [16:53:37]OFDSenderStorePacket done [16:53:37]KKMCreateOFDPacket done [16:53:37]NVStorageSaveData kkm_last_timestamp [16:53:37]File name is /storage/kkm_last_timestamp [16:53:37]Write 4 bytes [16:53:37]NVStorageSaveData done [16:53:37]ExternCall_PrintAddStr [16:53:37]wPrintStart [16:53:37]Write to MH i2c: 01 00 00 7B 71 EC [16:53:37]Write i2c OK [16:53:37]MH_I2C_Read... [16:53:37]Read from MH i2c: 01 [16:53:37]MH_I2C_Read... [16:53:37]Read from MH i2c: 01 07 00 [16:53:37]MH_I2C_Read... [16:53:37]Read from MH i2c: 01 07 00 7B 71 00 00 00 00 00 FF 0F 01 [16:53:37]RasterBufferAndPrint [16:53:37]line Счет N : (1)209873 [16:53:37]line ИНН: 02508201610067 [16:53:37]line Контрольно-Кассовый Чек [16:53:37]line ПРОДАЖА [16:53:37]line ТРК (МРК, ГНК) : 32 [16:53:37]line Товар: 2710124130 [16:53:37]line Аи-92-К-3 [16:53:37]line 29.900 * 0.00 [16:53:37]line = 0.00 [16:53:37]line НДС 12% НСП 1% [16:53:37]line > о реализуемом товаре [16:53:37]line ИТОГО: 0.00 [16:53:37]line НСП 1% : 0.00 [16:53:37]line НДС 12% : 0.00 [16:53:37]line Наличными: 0.00 [16:53:37]line Безнал.: 0.00 [16:53:37]line Место: АЗС № 86 "Партнер Нефть" [16:53:37]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [16:53:37]line СНО: Общий режим [16:53:37]line Чек 284 21.10.2024 16:53 [16:53:37]line Смена: 460 ФФД: 1.0 [16:53:37]line ЗНМ: 0300000155 [16:53:37]line РНМ: 0000000000100030 [16:53:37]line Версия ККМ: 001 [16:53:37]line Талоны: Топливная Карта [16:53:37]line 02633 [16:53:37]line ФМ: 0000000000965340 [16:53:37]line ФД: 187820 [16:53:37]line ФПД: 90236836847365 [16:53:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T165340&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187820&fm=90236836847365&tin=02508201610067®Number=0000000000100030&sum=0 [16:53:38]OFD Sender: Processing packet 187820 [packets to send 1062, broken 1061] [16:53:38]ProducePacketName [16:53:38]name=ofd_packets/00187820 [16:53:38]OFD Sender: To server: pG, [16:53:38]CommunicateWithHost lk.salyk.kg:30040 [16:53:38]ConnectInit lk.salyk.kg [16:53:38]written 0, free lines is 4095 [16:53:38]Connected sock=10 [16:53:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 58 78 07 01 17 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 33 FF 03 08 00 03 CC 74 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 1C 01 00 00 F4 03 04 00 14 87 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 AC DD 02 00 35 04 06 00 52 11 E6 9B 1F 05 4E A6 37 DE A0 56 5A 8D [16:53:38]Write to MH i2c: 01 00 00 A5 71 16 [16:53:38]Write i2c OK [16:53:38]MH_I2C_Read... [16:53:38]Read from MH i2c: 01 [16:53:38]MH_I2C_Read... [16:53:38]Read from MH i2c: 01 07 00 [16:53:38]MH_I2C_Read... [16:53:38]Read from MH i2c: 01 07 00 A5 71 00 00 00 00 00 88 0C B1 [16:53:38]RasterBufferAndPrint [16:53:38]line [16:53:38]line [16:53:38]line [16:53:38]line [16:53:38]line [16:53:38]written 0, free lines is 3214 [16:53:38]MH_Cut [16:53:38]Write to MH i2c: D1 01 00 AC 71 01 EF [16:53:38]Write i2c OK [16:53:38]MH_I2C_Read... [16:53:38]Read from MH i2c: D1 [16:53:38]MH_I2C_Read... [16:53:38]Read from MH i2c: D1 01 00 [16:53:38]MH_I2C_Read... [16:53:38]Read from MH i2c: D1 01 00 AC 71 00 EE [16:53:38]Write to MH i2c: 01 00 00 AD 71 1E [16:53:38]Write i2c OK [16:53:38]MH_I2C_Read... [16:53:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 2A 6A 47 00 30 72 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 AC DD 02 00 F4 03 04 00 04 31 16 67 B6 04 01 00 00 92 A5 EB 51 87 ED 10 94 [16:53:38]CommunicateWithHost err = 0 [16:53:38]CheckOFDResponse [16:53:38]1017 (14) - 77093643461234 [16:53:38]1041 (16) - 0000000000965340 [16:53:38]1040 (4) - 187820 [16:53:38]1012 (4) - 21.10.2024 10:46 [16:53:38]1206 (1) - 0 [16:53:38]OFD Sender: Remove packet 187820 [16:53:38]ProducePacketName [16:53:38]name=ofd_packets/00187820 [16:53:38]NVStorageDeleteData [16:53:39]OFD Sender: No OFD packet to send [16:53:39]*** Cut start [16:53:39]*** Partial cut [16:53:39]*** CUTSNS_PIN = 1 [16:53:39]*** CUTSNS_PIN = 0 [16:53:39]*** Brake cut motor [16:53:40]Read from MH i2c: 01 [16:53:40]MH_I2C_Read... [16:53:40]*** Stop cut motor [16:53:40]*** Cut end [16:53:40]Read from MH i2c: 01 07 00 [16:53:40]MH_I2C_Read... [16:53:40]Read from MH i2c: 01 07 00 AD 71 00 00 00 00 00 FF 0F 33 [16:53:40]process_action close_receipt done [16:53:40]requested_data is exist [16:53:40]produce_requested_data [16:53:40]requested_item fm.sn is exist - process it [16:53:40]wFMCommunicate request_size=4 [16:53:40]MH_SAM_APDU [16:53:40]CAPDU: 80 11 00 00 [16:53:40]Write to MH i2c: E2 08 00 AE 71 80 11 00 00 00 00 00 00 99 [16:53:40]Write i2c OK [16:53:40]MH_I2C_Read... [16:53:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:53:40]Read from MH i2c: E2 [16:53:40]MH_I2C_Read... [16:53:40]Read from MH i2c: E2 17 00 [16:53:40]MH_I2C_Read... [16:53:40]Read from MH i2c: E2 17 00 AE 71 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 E7 [16:53:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [16:53:40]wFMCommunicate OK [16:53:40]requested_item fd.num is exist - process it [16:53:40]SAM_PROTO_GetFieldsCounters [16:53:40]wFMCommunicate request_size=4 [16:53:40]MH_SAM_APDU [16:53:40]CAPDU: 80 13 00 00 [16:53:40]Write to MH i2c: E2 08 00 AF 71 80 13 00 00 00 00 00 00 9C [16:53:40]Write i2c OK [16:53:40]MH_I2C_Read... [16:53:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:53:40]Read from MH i2c: E2 [16:53:40]MH_I2C_Read... [16:53:40]Read from MH i2c: E2 62 00 [16:53:40]MH_I2C_Read... [16:53:40]Read from MH i2c: E2 62 00 AF 71 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 AC DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 1C 01 00 00 5E 04 04 00 1C 01 00 00 57 04 04 00 1D 01 00 00 19 04 04 00 00 00 00 00 90 00 52 [16:53:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 AC DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 1C 01 00 00 5E 04 04 00 1C 01 00 00 57 04 04 00 1D 01 00 00 19 04 04 00 00 00 00 00 90 00 [16:53:40]wFMCommunicate OK [16:53:40]SAM_PROTO_GetFieldsCounters done [16:53:40]requested_item shift.num is exist - process it [16:53:40]requested_item shift.opened is exist - process it [16:53:40]req_shift_opened [16:53:40]FM_GetShiftState [16:53:40]SAM_PROTO_GetShiftState [16:53:40]wFMCommunicate request_size=4 [16:53:40]MH_SAM_APDU [16:53:40]CAPDU: 80 13 01 00 [16:53:40]Write to MH i2c: E2 08 00 B0 71 80 13 01 00 00 00 00 00 9E [16:53:40]Write i2c OK [16:53:40]MH_I2C_Read... [16:53:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:53:40]Read from MH i2c: E2 [16:53:40]MH_I2C_Read... [16:53:40]Read from MH i2c: E2 0E 00 [16:53:40]MH_I2C_Read... [16:53:40]Read from MH i2c: E2 0E 00 B0 71 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 FD [16:53:40]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [16:53:40]wFMCommunicate OK [16:53:40]SAM_PROTO_GetShiftState done [16:53:40]FM_GetShiftState done [16:53:40]req_shift_opened done [16:53:40]requested_item shift.open_date is exist - process it [16:53:40]req_shift_open_date [16:53:40]req_shift_open_date done [16:53:40]produce_requested_data done [16:53:40]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187820,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [16:53:40]process_action_free close_receipt [16:53:40]json_value_free [16:53:40]json_value_free done [16:53:40]process_json_proto returns [16:53:40]Send response to host [16:53:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187820,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [16:53:40]free response buf [16:53:40]execute_script done [16:53:40]execute_script returns [16:53:40]free content buf [16:53:40]Sock 8.Close socket [16:53:40]Sock 8.Thread stoped [16:53:44]OFD Sender: No OFD packet to send [16:53:45]accept exits with 9 [16:53:45]New connection [16:53:45]New thread 3067014500 created [16:53:45]Thread 3067157860 joined [16:53:45]Waiting for new connection... [16:53:45] Sock 9.Parse request [16:53:45]Sock 9.Check first char [16:53:45]Sock 9.First char is OK [16:53:45]request: POST /json_proto HTTP/1.0 [16:53:45]Method: POST [16:53:45]URL: /json_proto [16:53:45]Method is POST - this is cgi request [16:53:45]url: /json_proto [16:53:45]query_string will be loaded in cgi processing [16:53:45]execute_cgi json_proto POST (null) [16:53:45]execute_cgi path=json_proto method=POST [16:53:45]POST find Content-Length [16:53:45]Host: 172.17.42.131:8080 [16:53:45]Content-Length: 754 [16:53:45]Content-Type: application/json [16:53:45] [16:53:45]POST finish read [16:53:45]Found Content-Length = 754 [16:53:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209871", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 0.00, "quantity" : 50.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30126934", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:53:45]execute_script... [16:53:45]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209871", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 0.00, "quantity" : 50.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30126934", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:53:45]POST & json_proto [16:53:45]process_json_proto [16:53:45]json parsed OK: [16:53:45]protocol is kg_v1.0 [16:53:45]action value=close_receipt [16:53:45]process_action close_receipt [16:53:45]cmd_close_receipt [16:53:45]MH_GetDate [16:53:45]Write to MH i2c: F0 00 00 B1 71 11 [16:53:45]Write i2c OK [16:53:45]MH_I2C_Read... [16:53:45]Read from MH i2c: F0 [16:53:45]MH_I2C_Read... [16:53:45]Read from MH i2c: F0 09 00 [16:53:45]MH_I2C_Read... [16:53:45]Read from MH i2c: F0 09 00 B1 71 00 1E 87 16 67 A0 18 CA 66 24 [16:53:45]GetLastDocTimeStamp 1729529620 [16:53:45]current date 1729529630 [16:53:45]FM_GetShiftState [16:53:45]SAM_PROTO_GetShiftState [16:53:45]wFMCommunicate request_size=4 [16:53:45]MH_SAM_APDU [16:53:45]CAPDU: 80 13 01 00 [16:53:45]Write to MH i2c: E2 08 00 B2 71 80 13 01 00 00 00 00 00 A0 [16:53:45]Write i2c OK [16:53:45]MH_I2C_Read... [16:53:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:53:45]Read from MH i2c: E2 [16:53:45]MH_I2C_Read... [16:53:45]Read from MH i2c: E2 0E 00 [16:53:45]MH_I2C_Read... [16:53:45]Read from MH i2c: E2 0E 00 B2 71 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 FF [16:53:45]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [16:53:45]wFMCommunicate OK [16:53:45]SAM_PROTO_GetShiftState done [16:53:45]FM_GetShiftState done [16:53:45]opened in 1729469754 [16:53:45]opened+sec_in_day 1729556154 [16:53:45]quantity*price = 0 [16:53:45]sum+1 = 1 [16:53:45]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 285 21.10.2024 16:53 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Талоны: ТК ГПНА Online 30126934 ФМ: 0000000000965340 ФД: 187821 ФПД: 239778769844321 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T165350&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187821&fm=239778769844321&tin=02508201610067®Number=0000000000100030&sum=0 [16:53:46]StoreToDocumentArchive [16:53:46]shift 460 fd 187821 [16:53:46]save to /storage/0460/doc_00187821 [16:53:46]save last doc name /storage/0460/doc_00187821 to /storage/kkm_last_doc_name [16:53:46]save OK [16:53:46]Clear old archive folders... [16:53:46]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:53:46]tlvbuf is 010EFC80 [16:53:46]SAM_PROTO_ClearQueue [16:53:46]wFMCommunicate request_size=4 [16:53:46]MH_SAM_APDU [16:53:46]CAPDU: 80 09 00 00 [16:53:46]Write to MH i2c: E2 08 00 BF 71 80 09 00 00 00 00 00 00 A2 [16:53:46]Write i2c OK [16:53:46]MH_I2C_Read... [16:53:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:53:46]Read from MH i2c: E2 [16:53:46]MH_I2C_Read... [16:53:46]Read from MH i2c: E2 03 00 [16:53:46]MH_I2C_Read... [16:53:46]Read from MH i2c: E2 03 00 BF 71 00 90 00 A4 [16:53:46]RAPDU: 90 00 [16:53:46]wFMCommunicate OK [16:53:46]SAM_PROTO_ClearQueue done [16:53:46]KKMCreateOFDPacket [16:53:46]OFDProtocolAddRootSTLVToBuf [16:53:46]FM_MakeSignedData [16:53:46]FM_MakeSignedData [16:53:46]SAM_PROTO_SignData [16:53:46]wFMCommunicate request_size=4 [16:53:46]MH_SAM_APDU [16:53:46]CAPDU: 80 0D 01 02 [16:53:46]Write to MH i2c: E2 08 00 C0 71 80 0D 01 02 00 00 00 00 AA [16:53:46]Write i2c OK [16:53:46]MH_I2C_Read... [16:53:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:53:46]Read from MH i2c: E2 [16:53:46]MH_I2C_Read... [16:53:46]Read from MH i2c: E2 03 00 [16:53:46]MH_I2C_Read... [16:53:46]Read from MH i2c: E2 03 00 C0 71 00 90 00 A5 [16:53:46]RAPDU: 90 00 [16:53:46]wFMCommunicate OK [16:53:46]wFMCommunicate request_size=255 [16:53:46]MH_SAM_APDU [16:53:46]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 50 C3 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 01 00 00 F4 03 04 00 1E 87 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 AD DD 02 00 35 04 06 00 DA [16:53:46]Write to MH i2c: E2 02 01 C1 71 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 50 C3 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 01 00 00 F4 03 04 00 1E 87 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 AD DD 02 00 35 04 06 00 DA 00 00 22 [16:53:47]Write i2c OK [16:53:47]MH_I2C_Read... [16:53:47]Read from MH i2c: E2 [16:53:47]MH_I2C_Read... [16:53:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:53:47]Read from MH i2c: E2 03 00 [16:53:47]MH_I2C_Read... [16:53:47]Read from MH i2c: E2 03 00 C1 71 00 90 00 A6 [16:53:47]RAPDU: 90 00 [16:53:47]wFMCommunicate OK [16:53:47]wFMCommunicate request_size=10 [16:53:47]MH_SAM_APDU [16:53:47]CAPDU: 80 0D 02 02 05 13 D8 66 B8 61 [16:53:47]Write to MH i2c: E2 0D 00 C2 71 80 0D 02 02 05 00 13 D8 66 B8 61 00 00 21 [16:53:47]Write i2c OK [16:53:47]MH_I2C_Read... [16:53:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:53:47]Read from MH i2c: E2 [16:53:47]MH_I2C_Read... [16:53:47]Read from MH i2c: E2 03 00 [16:53:47]MH_I2C_Read... [16:53:47]Read from MH i2c: E2 03 00 C2 71 00 90 00 A7 [16:53:47]RAPDU: 90 00 [16:53:47]wFMCommunicate OK [16:53:47]wFMCommunicate request_size=4 [16:53:47]MH_SAM_APDU [16:53:47]CAPDU: 80 0D 03 02 [16:53:47]Write to MH i2c: E2 08 00 C3 71 80 0D 03 02 00 00 00 00 AF [16:53:47]Write i2c OK [16:53:47]MH_I2C_Read... [16:53:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:53:47]Read from MH i2c: E2 [16:53:47]MH_I2C_Read... [16:53:47]Read from MH i2c: E2 0B 00 [16:53:47]MH_I2C_Read... [16:53:47]Read from MH i2c: E2 0B 00 C3 71 00 75 7C 30 AF C0 19 01 D2 90 00 2C [16:53:47]RAPDU: 75 7C 30 AF C0 19 01 D2 90 00 [16:53:47]wFMCommunicate OK [16:53:47]SAM_PROTO_SignData done [16:53:47]FM_MakeSignedData done [16:53:47]CreateOFDProtocolMessage [16:53:47]wFMCommunicate request_size=4 [16:53:47]MH_SAM_APDU [16:53:47]CAPDU: 80 11 00 00 [16:53:47]Write to MH i2c: E2 08 00 C4 71 80 11 00 00 00 00 00 00 AF [16:53:47]Write i2c OK [16:53:47]MH_I2C_Read... [16:53:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:53:47]Read from MH i2c: E2 [16:53:47]MH_I2C_Read... [16:53:47]Read from MH i2c: E2 17 00 [16:53:47]MH_I2C_Read... [16:53:47]Read from MH i2c: E2 17 00 C4 71 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 FD [16:53:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [16:53:47]wFMCommunicate OK [16:53:47]CreateOFDProtocolMessage done [16:53:47]OFDSenderStorePacket 187821 [16:53:47]StoreOFDPacket docnum=187821 [16:53:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 09 34 07 01 75 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 50 C3 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 01 00 00 F4 03 04 00 1E 87 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 AD DD 02 00 35 04 06 00 DA 13 D8 66 B8 61 75 7C 30 AF C0 19 01 D2 [16:53:47]CheckFolder [16:53:47]dirname=/storage/ofd_packets [16:53:47]CheckFolder done [16:53:47]ProducePacketName [16:53:47]name=ofd_packets/00187821 [16:53:47]NVStorageSaveData ofd_packets/00187821 [16:53:47]File name is /storage/ofd_packets/00187821 [16:53:47]Write 301 bytes [16:53:47]NVStorageSaveData done [16:53:47]OFDSenderStorePacket done [16:53:47]KKMCreateOFDPacket done [16:53:47]NVStorageSaveData kkm_last_timestamp [16:53:47]File name is /storage/kkm_last_timestamp [16:53:47]Write 4 bytes [16:53:47]NVStorageSaveData done [16:53:47]ExternCall_PrintAddStr [16:53:47]wPrintStart [16:53:47]Write to MH i2c: 01 00 00 C5 71 36 [16:53:47]Write i2c OK [16:53:47]MH_I2C_Read... [16:53:47]Read from MH i2c: 01 [16:53:47]MH_I2C_Read... [16:53:47]Read from MH i2c: 01 07 00 [16:53:47]MH_I2C_Read... [16:53:47]Read from MH i2c: 01 07 00 C5 71 00 00 00 00 00 FF 0F 4B [16:53:47]RasterBufferAndPrint [16:53:47]line Счет N : (1)209871 [16:53:47]line ИНН: 02508201610067 [16:53:47]line Контрольно-Кассовый Чек [16:53:47]line ПРОДАЖА [16:53:47]line ТРК (МРК, ГНК) : 23 [16:53:47]line Товар: 2710124500 [16:53:47]line Аи-95-К-3 [16:53:47]line 50.000 * 0.00 [16:53:47]line = 0.00 [16:53:47]line НДС 12% НСП 1% [16:53:47]line > о реализуемом товаре [16:53:47]line ИТОГО: 0.00 [16:53:47]line НСП 1% : 0.00 [16:53:47]line НДС 12% : 0.00 [16:53:47]line Наличными: 0.00 [16:53:47]line Безнал.: 0.00 [16:53:47]line Место: АЗС № 86 "Партнер Нефть" [16:53:47]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [16:53:47]line СНО: Общий режим [16:53:47]line Чек 285 21.10.2024 16:53 [16:53:47]line Смена: 460 ФФД: 1.0 [16:53:47]line ЗНМ: 0300000155 [16:53:47]line РНМ: 0000000000100030 [16:53:47]line Версия ККМ: 001 [16:53:47]line Талоны: ТК ГПНА Online [16:53:47]line 30126934 [16:53:47]line ФМ: 0000000000965340 [16:53:47]line ФД: 187821 [16:53:47]line ФПД: 239778769844321 [16:53:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T165350&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187821&fm=239778769844321&tin=02508201610067®Number=0000000000100030&sum=0 [16:53:47]written 0, free lines is 4095 [16:53:47]OFD Sender: Processing packet 187821 [packets to send 1062, broken 1061] [16:53:47]ProducePacketName [16:53:47]name=ofd_packets/00187821 [16:53:47]OFD Sender: To server: pG, [16:53:47]CommunicateWithHost lk.salyk.kg:30040 [16:53:47]ConnectInit lk.salyk.kg [16:53:47]Connected sock=10 [16:53:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 09 34 07 01 75 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 50 C3 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 01 00 00 F4 03 04 00 1E 87 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 AD DD 02 00 35 04 06 00 DA 13 D8 66 B8 61 75 7C 30 AF C0 19 01 D2 [16:53:47]Write to MH i2c: 01 00 00 EF 71 60 [16:53:47]Write i2c OK [16:53:47]MH_I2C_Read... [16:53:47]Read from MH i2c: 01 [16:53:47]MH_I2C_Read... [16:53:47]Read from MH i2c: 01 07 00 [16:53:47]MH_I2C_Read... [16:53:47]Read from MH i2c: 01 07 00 EF 71 00 00 00 00 00 98 0C 0B [16:53:47]RasterBufferAndPrint [16:53:47]line [16:53:47]line [16:53:47]line [16:53:47]line [16:53:47]line [16:53:47]written 0, free lines is 3233 [16:53:47]MH_Cut [16:53:47]Write to MH i2c: D1 01 00 F6 71 01 39 [16:53:47]Write i2c OK [16:53:47]MH_I2C_Read... [16:53:47]Read from MH i2c: D1 [16:53:47]MH_I2C_Read... [16:53:47]Read from MH i2c: D1 01 00 [16:53:47]MH_I2C_Read... [16:53:47]Read from MH i2c: D1 01 00 F6 71 00 38 [16:53:47]Write to MH i2c: 01 00 00 F7 71 68 [16:53:47]Write i2c OK [16:53:47]MH_I2C_Read... [16:53:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 68 F3 47 00 85 0F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 AD DD 02 00 F4 03 04 00 0E 31 16 67 B6 04 01 00 00 C5 39 18 2C 33 71 C7 BE [16:53:48]CommunicateWithHost err = 0 [16:53:48]CheckOFDResponse [16:53:48]1017 (14) - 77093643461234 [16:53:48]1041 (16) - 0000000000965340 [16:53:48]1040 (4) - 187821 [16:53:48]1012 (4) - 21.10.2024 10:46 [16:53:48]1206 (1) - 0 [16:53:48]OFD Sender: Remove packet 187821 [16:53:48]ProducePacketName [16:53:48]name=ofd_packets/00187821 [16:53:48]NVStorageDeleteData [16:53:48]OFD Sender: No OFD packet to send [16:53:49]*** Cut start [16:53:49]*** Partial cut [16:53:49]*** CUTSNS_PIN = 1 [16:53:49]*** CUTSNS_PIN = 0 [16:53:49]*** Brake cut motor [16:53:49]Read from MH i2c: 01 [16:53:49]MH_I2C_Read... [16:53:49]*** Stop cut motor [16:53:49]*** Cut end [16:53:49]Read from MH i2c: 01 07 00 [16:53:49]MH_I2C_Read... [16:53:49]Read from MH i2c: 01 07 00 F7 71 00 00 00 00 00 FF 0F 7D [16:53:49]process_action close_receipt done [16:53:49]requested_data is exist [16:53:49]produce_requested_data [16:53:49]requested_item fm.sn is exist - process it [16:53:49]wFMCommunicate request_size=4 [16:53:49]MH_SAM_APDU [16:53:49]CAPDU: 80 11 00 00 [16:53:49]Write to MH i2c: E2 08 00 F8 71 80 11 00 00 00 00 00 00 E3 [16:53:49]Write i2c OK [16:53:49]MH_I2C_Read... [16:53:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:53:49]Read from MH i2c: E2 [16:53:49]MH_I2C_Read... [16:53:49]Read from MH i2c: E2 17 00 [16:53:49]MH_I2C_Read... [16:53:49]Read from MH i2c: E2 17 00 F8 71 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 31 [16:53:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [16:53:49]wFMCommunicate OK [16:53:49]requested_item fd.num is exist - process it [16:53:49]SAM_PROTO_GetFieldsCounters [16:53:49]wFMCommunicate request_size=4 [16:53:49]MH_SAM_APDU [16:53:49]CAPDU: 80 13 00 00 [16:53:49]Write to MH i2c: E2 08 00 F9 71 80 13 00 00 00 00 00 00 E6 [16:53:49]Write i2c OK [16:53:49]MH_I2C_Read... [16:53:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:53:49]Read from MH i2c: E2 [16:53:49]MH_I2C_Read... [16:53:49]Read from MH i2c: E2 62 00 [16:53:49]MH_I2C_Read... [16:53:49]Read from MH i2c: E2 62 00 F9 71 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 AD DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 1D 01 00 00 5E 04 04 00 1D 01 00 00 57 04 04 00 1E 01 00 00 19 04 04 00 00 00 00 00 90 00 A0 [16:53:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 AD DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 1D 01 00 00 5E 04 04 00 1D 01 00 00 57 04 04 00 1E 01 00 00 19 04 04 00 00 00 00 00 90 00 [16:53:49]wFMCommunicate OK [16:53:49]SAM_PROTO_GetFieldsCounters done [16:53:49]requested_item shift.num is exist - process it [16:53:49]requested_item shift.opened is exist - process it [16:53:49]req_shift_opened [16:53:49]FM_GetShiftState [16:53:49]SAM_PROTO_GetShiftState [16:53:49]wFMCommunicate request_size=4 [16:53:49]MH_SAM_APDU [16:53:49]CAPDU: 80 13 01 00 [16:53:49]Write to MH i2c: E2 08 00 FA 71 80 13 01 00 00 00 00 00 E8 [16:53:49]Write i2c OK [16:53:49]MH_I2C_Read... [16:53:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:53:50]Read from MH i2c: E2 [16:53:50]MH_I2C_Read... [16:53:50]Read from MH i2c: E2 0E 00 [16:53:50]MH_I2C_Read... [16:53:50]Read from MH i2c: E2 0E 00 FA 71 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 47 [16:53:50]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [16:53:50]wFMCommunicate OK [16:53:50]SAM_PROTO_GetShiftState done [16:53:50]FM_GetShiftState done [16:53:50]req_shift_opened done [16:53:50]requested_item shift.open_date is exist - process it [16:53:50]req_shift_open_date [16:53:50]req_shift_open_date done [16:53:50]produce_requested_data done [16:53:50]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187821,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [16:53:50]process_action_free close_receipt [16:53:50]json_value_free [16:53:50]json_value_free done [16:53:50]process_json_proto returns [16:53:50]Send response to host [16:53:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187821,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [16:53:50]free response buf [16:53:50]execute_script done [16:53:50]execute_script returns [16:53:50]free content buf [16:53:50]Sock 9.Close socket [16:53:50]Sock 9.Thread stoped [16:53:53]OFD Sender: No OFD packet to send [16:53:58]OFD Sender: No OFD packet to send [16:54:03]OFD Sender: No OFD packet to send [16:54:08]OFD Sender: No OFD packet to send [16:54:13]OFD Sender: No OFD packet to send [16:54:18]OFD Sender: No OFD packet to send [16:54:23]OFD Sender: No OFD packet to send [16:54:28]OFD Sender: No OFD packet to send [16:54:33]OFD Sender: No OFD packet to send [16:54:38]OFD Sender: No OFD packet to send [16:54:43]OFD Sender: No OFD packet to send [16:54:48]OFD Sender: No OFD packet to send [16:54:54]OFD Sender: No OFD packet to send [16:54:59]OFD Sender: No OFD packet to send [16:55:04]OFD Sender: No OFD packet to send [16:55:09]OFD Sender: No OFD packet to send [16:55:10]accept exits with 8 [16:55:10]New connection [16:55:10]New thread 3067157860 created [16:55:10]Thread 3067014500 joined [16:55:10]Waiting for new connection... [16:55:10] Sock 8.Parse request [16:55:10]Sock 8.Check first char [16:55:10]Sock 8.First char is OK [16:55:10]request: POST /json_proto HTTP/1.0 [16:55:10]Method: POST [16:55:10]URL: /json_proto [16:55:10]Method is POST - this is cgi request [16:55:10]url: /json_proto [16:55:10]query_string will be loaded in cgi processing [16:55:10]execute_cgi json_proto POST (null) [16:55:10]execute_cgi path=json_proto method=POST [16:55:10]POST find Content-Length [16:55:10]Host: 172.17.42.131:8080 [16:55:10]Content-Length: 803 [16:55:10]Content-Type: application/json [16:55:10] [16:55:10]POST finish read [16:55:10]Found Content-Length = 803 [16:55:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209874", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 40.440, "sum" : 3000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 3000.65 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:55:10]execute_script... [16:55: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)209874", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 40.440, "sum" : 3000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 3000.65 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:55:10]POST & json_proto [16:55:10]process_json_proto [16:55:10]json parsed OK: [16:55:10]protocol is kg_v1.0 [16:55:10]action value=close_receipt [16:55:10]process_action close_receipt [16:55:10]cmd_close_receipt [16:55:10]MH_GetDate [16:55:10]Write to MH i2c: F0 00 00 FB 71 5B [16:55:10]Write i2c OK [16:55:10]MH_I2C_Read... [16:55:10]Read from MH i2c: F0 [16:55:10]MH_I2C_Read... [16:55:10]Read from MH i2c: F0 09 00 [16:55:10]MH_I2C_Read... [16:55:10]Read from MH i2c: F0 09 00 FB 71 00 73 87 16 67 A0 18 CA 66 C3 [16:55:10]GetLastDocTimeStamp 1729529630 [16:55:10]current date 1729529715 [16:55:10]FM_GetShiftState [16:55:10]SAM_PROTO_GetShiftState [16:55:10]wFMCommunicate request_size=4 [16:55:10]MH_SAM_APDU [16:55:10]CAPDU: 80 13 01 00 [16:55:10]Write to MH i2c: E2 08 00 FC 71 80 13 01 00 00 00 00 00 EA [16:55:10]Write i2c OK [16:55:10]MH_I2C_Read... [16:55:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:55:10]Read from MH i2c: E2 [16:55:10]MH_I2C_Read... [16:55:10]Read from MH i2c: E2 0E 00 [16:55:10]MH_I2C_Read... [16:55:10]Read from MH i2c: E2 0E 00 FC 71 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 49 [16:55:10]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [16:55:10]wFMCommunicate OK [16:55:10]SAM_PROTO_GetShiftState done [16:55:10]FM_GetShiftState done [16:55:10]opened in 1729469754 [16:55:10]opened+sec_in_day 1729556154 [16:55:10]quantity*price = 300064 [16:55:10]sum+1 = 300066 [16:55:10]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 3000.65 НСП 1% : 26.55 НДС 12% : 318.65 Наличными: 0.00 Безнал.: 3000.65 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 286 21.10.2024 16:55 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000965340 ФД: 187822 ФПД: 270837498756412 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T165515&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187822&fm=270837498756412&tin=02508201610067®Number=0000000000100030&sum=300065 [16:55:12]StoreToDocumentArchive [16:55:12]shift 460 fd 187822 [16:55:12]save to /storage/0460/doc_00187822 [16:55:12]save last doc name /storage/0460/doc_00187822 to /storage/kkm_last_doc_name [16:55:12]save OK [16:55:12]Clear old archive folders... [16:55:12]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:55:12]tlvbuf is 011C2F40 [16:55:12]SAM_PROTO_ClearQueue [16:55:12]wFMCommunicate request_size=4 [16:55:12]MH_SAM_APDU [16:55:12]CAPDU: 80 09 00 00 [16:55:12]Write to MH i2c: E2 08 00 09 72 80 09 00 00 00 00 00 00 ED [16:55:12]Write i2c OK [16:55:12]MH_I2C_Read... [16:55:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:55:12]Read from MH i2c: E2 [16:55:12]MH_I2C_Read... [16:55:12]Read from MH i2c: E2 03 00 [16:55:12]MH_I2C_Read... [16:55:12]Read from MH i2c: E2 03 00 09 72 00 90 00 EF [16:55:12]RAPDU: 90 00 [16:55:12]wFMCommunicate OK [16:55:12]SAM_PROTO_ClearQueue done [16:55:12]KKMCreateOFDPacket [16:55:12]OFDProtocolAddRootSTLVToBuf [16:55:12]FM_MakeSignedData [16:55:12]FM_MakeSignedData [16:55:12]SAM_PROTO_SignData [16:55:12]wFMCommunicate request_size=4 [16:55:12]MH_SAM_APDU [16:55:12]CAPDU: 80 0D 01 02 [16:55:12]Write to MH i2c: E2 08 00 0A 72 80 0D 01 02 00 00 00 00 F5 [16:55:12]Write i2c OK [16:55:12]MH_I2C_Read... [16:55:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:55:12]Read from MH i2c: E2 [16:55:12]MH_I2C_Read... [16:55:12]Read from MH i2c: E2 03 00 [16:55:12]MH_I2C_Read... [16:55:12]Read from MH i2c: E2 03 00 0A 72 00 90 00 F0 [16:55:12]RAPDU: 90 00 [16:55:12]wFMCommunicate OK [16:55:12]wFMCommunicate request_size=255 [16:55:12]MH_SAM_APDU [16: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 F8 9D 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 21 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 21 94 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 21 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 01 00 00 F4 03 04 00 73 87 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 AE DD 02 00 35 04 06 00 F6 [16:55:12]Write to MH i2c: E2 02 01 0B 72 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 F8 9D 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 21 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 21 94 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 21 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 01 00 00 F4 03 04 00 73 87 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 AE DD 02 00 35 04 06 00 F6 00 00 03 [16:55:12]Write i2c OK [16:55:12]MH_I2C_Read... [16:55:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:55:12]Read from MH i2c: E2 [16:55:12]MH_I2C_Read... [16:55:12]Read from MH i2c: E2 03 00 [16:55:12]MH_I2C_Read... [16:55:12]Read from MH i2c: E2 03 00 0B 72 00 90 00 F1 [16:55:12]RAPDU: 90 00 [16:55:12]wFMCommunicate OK [16:55:12]wFMCommunicate request_size=10 [16:55:12]MH_SAM_APDU [16:55:12]CAPDU: 80 0D 02 02 05 53 44 E7 BD 3C [16:55:12]Write to MH i2c: E2 0D 00 0C 72 80 0D 02 02 05 00 53 44 E7 BD 3C 00 00 79 [16:55:12]Write i2c OK [16:55:12]MH_I2C_Read... [16:55:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:55:12]Read from MH i2c: E2 [16:55:12]MH_I2C_Read... [16:55:12]Read from MH i2c: E2 03 00 [16:55:12]MH_I2C_Read... [16:55:12]Read from MH i2c: E2 03 00 0C 72 00 90 00 F2 [16:55:12]RAPDU: 90 00 [16:55:12]wFMCommunicate OK [16:55:12]wFMCommunicate request_size=4 [16:55:12]MH_SAM_APDU [16:55:12]CAPDU: 80 0D 03 02 [16:55:12]Write to MH i2c: E2 08 00 0D 72 80 0D 03 02 00 00 00 00 FA [16:55:12]Write i2c OK [16:55:12]MH_I2C_Read... [16:55:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:55:12]Read from MH i2c: E2 [16:55:12]MH_I2C_Read... [16:55:12]Read from MH i2c: E2 0B 00 [16:55:12]MH_I2C_Read... [16:55:12]Read from MH i2c: E2 0B 00 0D 72 00 E5 44 75 87 F5 7D 0A 13 90 00 AF [16:55:12]RAPDU: E5 44 75 87 F5 7D 0A 13 90 00 [16:55:12]wFMCommunicate OK [16:55:12]SAM_PROTO_SignData done [16:55:12]FM_MakeSignedData done [16:55:12]CreateOFDProtocolMessage [16:55:12]wFMCommunicate request_size=4 [16:55:12]MH_SAM_APDU [16:55:12]CAPDU: 80 11 00 00 [16:55:12]Write to MH i2c: E2 08 00 0E 72 80 11 00 00 00 00 00 00 FA [16:55:12]Write i2c OK [16:55:12]MH_I2C_Read... [16:55:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:55:12]Read from MH i2c: E2 [16:55:12]MH_I2C_Read... [16:55:12]Read from MH i2c: E2 17 00 [16:55:12]MH_I2C_Read... [16:55:12]Read from MH i2c: E2 17 00 0E 72 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 48 [16:55:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [16:55:12]wFMCommunicate OK [16:55:12]CreateOFDProtocolMessage done [16:55:12]OFDSenderStorePacket 187822 [16:55:12]StoreOFDPacket docnum=187822 [16:55:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 B3 9A 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 F8 9D 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 21 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 21 94 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 21 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 01 00 00 F4 03 04 00 73 87 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 AE DD 02 00 35 04 06 00 F6 53 44 E7 BD 3C E5 44 75 87 F5 7D 0A 13 [16:55:12]CheckFolder [16:55:12]dirname=/storage/ofd_packets [16:55:12]CheckFolder done [16:55:12]ProducePacketName [16:55:12]name=ofd_packets/00187822 [16:55:12]NVStorageSaveData ofd_packets/00187822 [16:55:12]File name is /storage/ofd_packets/00187822 [16:55:12]Write 301 bytes [16:55:12]NVStorageSaveData done [16:55:12]OFDSenderStorePacket done [16:55:12]KKMCreateOFDPacket done [16:55:12]NVStorageSaveData kkm_last_timestamp [16:55:12]File name is /storage/kkm_last_timestamp [16:55:12]Write 4 bytes [16:55:12]NVStorageSaveData done [16:55:12]ExternCall_PrintAddStr [16:55:12]wPrintStart [16:55:12]Write to MH i2c: 01 00 00 0F 72 81 [16:55:12]Write i2c OK [16:55:12]MH_I2C_Read... [16:55:12]Read from MH i2c: 01 [16:55:12]MH_I2C_Read... [16:55:12]Read from MH i2c: 01 07 00 [16:55:12]MH_I2C_Read... [16:55:12]Read from MH i2c: 01 07 00 0F 72 00 00 00 00 00 FF 0F 96 [16:55:12]RasterBufferAndPrint [16:55:12]line Счет N : (1)209874 [16:55:12]line ИНН: 02508201610067 [16:55:12]line Контрольно-Кассовый Чек [16:55:12]line ПРОДАЖА [16:55:12]line ТРК (МРК, ГНК) : 43 [16:55:12]line Товар: 2710124500 [16:55:12]line Аи-95-К-3 [16:55:12]line 40.440 * 74.20 [16:55:12]line = 3000.65 [16:55:12]line НДС 12% НСП 1% [16:55:12]line > о реализуемом товаре [16:55:12]line ИТОГО: 3000.65 [16:55:12]line НСП 1% : 26.55 [16:55:12]line НДС 12% : 318.65 [16:55:12]line Наличными: 0.00 [16:55:12]line Безнал.: 3000.65 [16:55:12]line Место: АЗС № 86 "Партнер Нефть" [16:55:12]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [16:55:12]line СНО: Общий режим [16:55:12]line Чек 286 21.10.2024 16:55 [16:55:12]line Смена: 460 ФФД: 1.0 [16:55:12]line ЗНМ: 0300000155 [16:55:12]line РНМ: 0000000000100030 [16:55:12]line Версия ККМ: 001 [16:55:12]line Платежная система: O! деньги [16:55:12]line ФМ: 0000000000965340 [16:55:12]line ФД: 187822 [16:55:12]line ФПД: 270837498756412 [16:55:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T165515&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187822&fm=270837498756412&tin=02508201610067®Number=0000000000100030&sum=300065 [16:55:12]OFD Sender: Processing packet 187822 [packets to send 1062, broken 1061] [16:55:12]ProducePacketName [16:55:12]name=ofd_packets/00187822 [16:55:12]OFD Sender: To server: pG, [16:55:12]CommunicateWithHost lk.salyk.kg:30040 [16:55:12]ConnectInit lk.salyk.kg [16:55:12]written 0, free lines is 4095 [16:55:13]Connected sock=10 [16:55:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 B3 9A 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 F8 9D 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 21 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 21 94 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 21 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 01 00 00 F4 03 04 00 73 87 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 AE DD 02 00 35 04 06 00 F6 53 44 E7 BD 3C E5 44 75 87 F5 7D 0A 13 [16:55:13]Write to MH i2c: 01 00 00 39 72 AB [16:55:13]Write i2c OK [16:55:13]MH_I2C_Read... [16:55:13]Read from MH i2c: 01 [16:55:13]MH_I2C_Read... [16:55:13]Read from MH i2c: 01 07 00 [16:55:13]MH_I2C_Read... [16:55:13]Read from MH i2c: 01 07 00 39 72 00 00 00 00 00 8E 0C 4C [16:55:13]RasterBufferAndPrint [16:55:13]line [16:55:13]line [16:55:13]line [16:55:13]line [16:55:13]line [16:55:13]written 0, free lines is 3216 [16:55:13]MH_Cut [16:55:13]Write to MH i2c: D1 01 00 40 72 01 84 [16:55:13]Write i2c OK [16:55:13]MH_I2C_Read... [16:55:13]Read from MH i2c: D1 [16:55:13]MH_I2C_Read... [16:55:13]Read from MH i2c: D1 01 00 [16:55:13]MH_I2C_Read... [16:55:13]Read from MH i2c: D1 01 00 40 72 00 83 [16:55:13]Write to MH i2c: 01 00 00 41 72 B3 [16:55:13]Write i2c OK [16:55:13]MH_I2C_Read... [16:55:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 DF 56 47 00 AD 5C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 AE DD 02 00 F4 03 04 00 63 31 16 67 B6 04 01 00 00 5F CD 41 72 5E 34 82 9F [16:55:13]CommunicateWithHost err = 0 [16:55:13]CheckOFDResponse [16:55:13]1017 (14) - 77093643461234 [16:55:13]1041 (16) - 0000000000965340 [16:55:13]1040 (4) - 187822 [16:55:13]1012 (4) - 21.10.2024 10:48 [16:55:13]1206 (1) - 0 [16:55:13]OFD Sender: Remove packet 187822 [16:55:13]ProducePacketName [16:55:13]name=ofd_packets/00187822 [16:55:13]NVStorageDeleteData [16:55:14]OFD Sender: No OFD packet to send [16:55:14]*** Cut start [16:55:14]*** Partial cut [16:55:14]*** CUTSNS_PIN = 1 [16:55:14]*** CUTSNS_PIN = 0 [16:55:14]*** Brake cut motor [16:55:15]Read from MH i2c: 01 [16:55:15]MH_I2C_Read... [16:55:15]*** Stop cut motor [16:55:15]*** Cut end [16:55:15]Read from MH i2c: 01 07 00 [16:55:15]MH_I2C_Read... [16:55:15]Read from MH i2c: 01 07 00 41 72 00 00 00 00 00 FF 0F C8 [16:55:15]process_action close_receipt done [16:55:15]requested_data is exist [16:55:15]produce_requested_data [16:55:15]requested_item fm.sn is exist - process it [16:55:15]wFMCommunicate request_size=4 [16:55:15]MH_SAM_APDU [16:55:15]CAPDU: 80 11 00 00 [16:55:15]Write to MH i2c: E2 08 00 42 72 80 11 00 00 00 00 00 00 2E [16:55:15]Write i2c OK [16:55:15]MH_I2C_Read... [16:55:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:55:15]Read from MH i2c: E2 [16:55:15]MH_I2C_Read... [16:55:15]Read from MH i2c: E2 17 00 [16:55:15]MH_I2C_Read... [16:55:15]Read from MH i2c: E2 17 00 42 72 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 7C [16:55:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [16:55:15]wFMCommunicate OK [16:55:15]requested_item fd.num is exist - process it [16:55:15]SAM_PROTO_GetFieldsCounters [16:55:15]wFMCommunicate request_size=4 [16:55:15]MH_SAM_APDU [16:55:15]CAPDU: 80 13 00 00 [16:55:15]Write to MH i2c: E2 08 00 43 72 80 13 00 00 00 00 00 00 31 [16:55:15]Write i2c OK [16:55:15]MH_I2C_Read... [16:55:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:55:15]Read from MH i2c: E2 [16:55:15]MH_I2C_Read... [16:55:15]Read from MH i2c: E2 62 00 [16:55:15]MH_I2C_Read... [16:55:15]Read from MH i2c: E2 62 00 43 72 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 AE DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 1E 01 00 00 5E 04 04 00 1E 01 00 00 57 04 04 00 1F 01 00 00 19 04 04 00 00 00 00 00 90 00 EF [16:55:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 AE DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 1E 01 00 00 5E 04 04 00 1E 01 00 00 57 04 04 00 1F 01 00 00 19 04 04 00 00 00 00 00 90 00 [16:55:15]wFMCommunicate OK [16:55:15]SAM_PROTO_GetFieldsCounters done [16:55:15]requested_item shift.num is exist - process it [16:55:15]requested_item shift.opened is exist - process it [16:55:15]req_shift_opened [16:55:15]FM_GetShiftState [16:55:15]SAM_PROTO_GetShiftState [16:55:15]wFMCommunicate request_size=4 [16:55:15]MH_SAM_APDU [16:55:15]CAPDU: 80 13 01 00 [16:55:15]Write to MH i2c: E2 08 00 44 72 80 13 01 00 00 00 00 00 33 [16:55:15]Write i2c OK [16:55:15]MH_I2C_Read... [16:55:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:55:15]Read from MH i2c: E2 [16:55:15]MH_I2C_Read... [16:55:15]Read from MH i2c: E2 0E 00 [16:55:15]MH_I2C_Read... [16:55:15]Read from MH i2c: E2 0E 00 44 72 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 92 [16:55:15]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [16:55:15]wFMCommunicate OK [16:55:15]SAM_PROTO_GetShiftState done [16:55:15]FM_GetShiftState done [16:55:15]req_shift_opened done [16:55:15]requested_item shift.open_date is exist - process it [16:55:15]req_shift_open_date [16:55:15]req_shift_open_date done [16:55:15]produce_requested_data done [16:55:15]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187822,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [16:55:15]process_action_free close_receipt [16:55:15]json_value_free [16:55:15]json_value_free done [16:55:15]process_json_proto returns [16:55:15]Send response to host [16:55:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187822,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [16:55:15]free response buf [16:55:15]execute_script done [16:55:15]execute_script returns [16:55:15]free content buf [16:55:15]Sock 8.Close socket [16:55:15]Sock 8.Thread stoped [16:55:19]OFD Sender: No OFD packet to send [16:55:24]OFD Sender: No OFD packet to send [16:55:29]OFD Sender: No OFD packet to send [16:55:34]OFD Sender: No OFD packet to send [16:55:39]OFD Sender: No OFD packet to send [16:55:44]OFD Sender: No OFD packet to send [16:55:49]OFD Sender: No OFD packet to send [16:55:54]OFD Sender: No OFD packet to send [16:55:59]OFD Sender: No OFD packet to send [16:56:04]OFD Sender: No OFD packet to send [16:56:09]OFD Sender: No OFD packet to send [16:56:14]OFD Sender: No OFD packet to send [16:56:19]OFD Sender: No OFD packet to send [16:56:24]OFD Sender: No OFD packet to send [16:56:29]OFD Sender: No OFD packet to send [16:56:34]OFD Sender: No OFD packet to send [16:56:39]OFD Sender: No OFD packet to send [16:56:44]OFD Sender: No OFD packet to send [16:56:49]OFD Sender: No OFD packet to send [16:56:54]OFD Sender: No OFD packet to send [16:56:59]OFD Sender: No OFD packet to send [16:57:04]OFD Sender: No OFD packet to send [16:57:09]OFD Sender: No OFD packet to send [16:57:14]OFD Sender: No OFD packet to send [16:57:19]OFD Sender: No OFD packet to send [16:57:20]accept exits with 9 [16:57:20]New connection [16:57:20]New thread 3067014500 created [16:57:20]Thread 3067157860 joined [16:57:20]Waiting for new connection... [16:57:20] Sock 9.Parse request [16:57:20]Sock 9.Check first char [16:57:20]Sock 9.First char is OK [16:57:20]request: POST /json_proto HTTP/1.0 [16:57:20]Method: POST [16:57:20]URL: /json_proto [16:57:20]Method is POST - this is cgi request [16:57:20]url: /json_proto [16:57:20]query_string will be loaded in cgi processing [16:57:20]execute_cgi json_proto POST (null) [16:57:20]execute_cgi path=json_proto method=POST [16:57:20]POST find Content-Length [16:57:20]Host: 172.17.42.131:8080 [16:57:20]Content-Length: 682 [16:57:20]Content-Type: application/json [16:57:20] [16:57:20]POST finish read [16:57:20]Found Content-Length = 682 [16:57:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209875", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "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" ] } } [16:57:20]execute_script... [16: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)209875", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "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" ] } } [16:57:20]POST & json_proto [16:57:20]process_json_proto [16:57:20]json parsed OK: [16:57:20]protocol is kg_v1.0 [16:57:20]action value=close_receipt [16:57:20]process_action close_receipt [16:57:20]cmd_close_receipt [16:57:20]MH_GetDate [16:57:20]Write to MH i2c: F0 00 00 45 72 A6 [16:57:20]Write i2c OK [16:57:20]MH_I2C_Read... [16:57:20]Read from MH i2c: F0 [16:57:20]MH_I2C_Read... [16:57:20]Read from MH i2c: F0 09 00 [16:57:20]MH_I2C_Read... [16:57:20]Read from MH i2c: F0 09 00 45 72 00 F5 87 16 67 A0 18 CA 66 90 [16:57:20]GetLastDocTimeStamp 1729529715 [16:57:20]current date 1729529845 [16:57:20]FM_GetShiftState [16:57:20]SAM_PROTO_GetShiftState [16:57:20]wFMCommunicate request_size=4 [16:57:20]MH_SAM_APDU [16:57:20]CAPDU: 80 13 01 00 [16:57:20]Write to MH i2c: E2 08 00 46 72 80 13 01 00 00 00 00 00 35 [16:57:20]Write i2c OK [16:57:20]MH_I2C_Read... [16:57:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:57:20]Read from MH i2c: E2 [16:57:20]MH_I2C_Read... [16:57:20]Read from MH i2c: E2 0E 00 [16:57:20]MH_I2C_Read... [16:57:20]Read from MH i2c: E2 0E 00 46 72 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 94 [16:57:20]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [16:57:20]wFMCommunicate OK [16:57:20]SAM_PROTO_GetShiftState done [16:57:20]FM_GetShiftState done [16:57:20]opened in 1729469754 [16:57:20]opened+sec_in_day 1729556154 [16:57:20]quantity*price = 120018 [16:57:20]sum+1 = 120020 [16:57:20]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.19 ИТОГО: 1200.00 Внесено: 1200.00 СДАЧА: 0.00 НСП 1% : 10.62 НДС 12% : 127.45 Наличными: 1200.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 287 21.10.2024 16:57 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 187823 ФПД: 85661718495738 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T165725&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187823&fm=85661718495738&tin=02508201610067®Number=0000000000100030&sum=120000 [16:57:22]StoreToDocumentArchive [16:57:22]shift 460 fd 187823 [16:57:22]save to /storage/0460/doc_00187823 [16:57:22]save last doc name /storage/0460/doc_00187823 to /storage/kkm_last_doc_name [16:57:22]save OK [16:57:22]Clear old archive folders... [16:57:22]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:57:22]tlvbuf is 011557F0 [16:57:22]SAM_PROTO_ClearQueue [16:57:22]wFMCommunicate request_size=4 [16:57:22]MH_SAM_APDU [16:57:22]CAPDU: 80 09 00 00 [16:57:22]Write to MH i2c: E2 08 00 53 72 80 09 00 00 00 00 00 00 37 [16:57:22]Write i2c OK [16:57:22]MH_I2C_Read... [16:57:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:57:22]Read from MH i2c: E2 [16:57:22]MH_I2C_Read... [16:57:22]Read from MH i2c: E2 03 00 [16:57:22]MH_I2C_Read... [16:57:22]Read from MH i2c: E2 03 00 53 72 00 90 00 39 [16:57:22]RAPDU: 90 00 [16:57:22]wFMCommunicate OK [16:57:22]SAM_PROTO_ClearQueue done [16:57:22]KKMCreateOFDPacket [16:57:22]OFDProtocolAddRootSTLVToBuf [16:57:22]FM_MakeSignedData [16:57:22]FM_MakeSignedData [16:57:22]SAM_PROTO_SignData [16:57:22]wFMCommunicate request_size=4 [16:57:22]MH_SAM_APDU [16:57:22]CAPDU: 80 0D 01 02 [16:57:22]Write to MH i2c: E2 08 00 54 72 80 0D 01 02 00 00 00 00 3F [16:57:22]Write i2c OK [16:57:22]MH_I2C_Read... [16:57:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:57:22]Read from MH i2c: E2 [16:57:22]MH_I2C_Read... [16:57:22]Read from MH i2c: E2 03 00 [16:57:22]MH_I2C_Read... [16:57:22]Read from MH i2c: E2 03 00 54 72 00 90 00 3A [16:57:22]RAPDU: 90 00 [16:57:22]wFMCommunicate OK [16:57:22]wFMCommunicate request_size=255 [16:57:22]MH_SAM_APDU [16: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 33 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 1F 01 00 00 F4 03 04 00 F5 87 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 AF DD 02 00 35 04 06 00 4D [16:57:22]Write to MH i2c: E2 02 01 55 72 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 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 1F 01 00 00 F4 03 04 00 F5 87 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 AF DD 02 00 35 04 06 00 4D 00 00 7A [16:57:22]Write i2c OK [16:57:22]MH_I2C_Read... [16:57:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:57:22]Read from MH i2c: E2 [16:57:22]MH_I2C_Read... [16:57:22]Read from MH i2c: E2 03 00 [16:57:22]MH_I2C_Read... [16:57:22]Read from MH i2c: E2 03 00 55 72 00 90 00 3B [16:57:22]RAPDU: 90 00 [16:57:22]wFMCommunicate OK [16:57:22]wFMCommunicate request_size=10 [16:57:22]MH_SAM_APDU [16:57:22]CAPDU: 80 0D 02 02 05 E8 AC 4D 41 FA [16:57:22]Write to MH i2c: E2 0D 00 56 72 80 0D 02 02 05 00 E8 AC 4D 41 FA 00 00 68 [16:57:22]Write i2c OK [16:57:22]MH_I2C_Read... [16:57:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:57:22]Read from MH i2c: E2 [16:57:22]MH_I2C_Read... [16:57:22]Read from MH i2c: E2 03 00 [16:57:22]MH_I2C_Read... [16:57:22]Read from MH i2c: E2 03 00 56 72 00 90 00 3C [16:57:22]RAPDU: 90 00 [16:57:22]wFMCommunicate OK [16:57:22]wFMCommunicate request_size=4 [16:57:22]MH_SAM_APDU [16:57:22]CAPDU: 80 0D 03 02 [16:57:22]Write to MH i2c: E2 08 00 57 72 80 0D 03 02 00 00 00 00 44 [16:57:22]Write i2c OK [16:57:22]MH_I2C_Read... [16:57:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:57:22]Read from MH i2c: E2 [16:57:22]MH_I2C_Read... [16:57:22]Read from MH i2c: E2 0B 00 [16:57:22]MH_I2C_Read... [16:57:22]Read from MH i2c: E2 0B 00 57 72 00 9D 88 B8 8F 5D A9 20 6E 90 00 45 [16:57:22]RAPDU: 9D 88 B8 8F 5D A9 20 6E 90 00 [16:57:22]wFMCommunicate OK [16:57:22]SAM_PROTO_SignData done [16:57:22]FM_MakeSignedData done [16:57:22]CreateOFDProtocolMessage [16:57:22]wFMCommunicate request_size=4 [16:57:22]MH_SAM_APDU [16:57:22]CAPDU: 80 11 00 00 [16:57:22]Write to MH i2c: E2 08 00 58 72 80 11 00 00 00 00 00 00 44 [16:57:22]Write i2c OK [16:57:22]MH_I2C_Read... [16:57:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:57:22]Read from MH i2c: E2 [16:57:22]MH_I2C_Read... [16:57:22]Read from MH i2c: E2 17 00 [16:57:22]MH_I2C_Read... [16:57:22]Read from MH i2c: E2 17 00 58 72 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 92 [16:57:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [16:57:22]wFMCommunicate OK [16:57:22]CreateOFDProtocolMessage done [16:57:22]OFDSenderStorePacket 187823 [16:57:22]StoreOFDPacket docnum=187823 [16:57:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 CF 85 07 01 FC 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 33 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 1F 01 00 00 F4 03 04 00 F5 87 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 AF DD 02 00 35 04 06 00 4D E8 AC 4D 41 FA 9D 88 B8 8F 5D A9 20 6E [16:57:22]CheckFolder [16:57:22]dirname=/storage/ofd_packets [16:57:22]CheckFolder done [16:57:22]ProducePacketName [16:57:22]name=ofd_packets/00187823 [16:57:22]NVStorageSaveData ofd_packets/00187823 [16:57:22]File name is /storage/ofd_packets/00187823 [16:57:22]Write 301 bytes [16:57:22]NVStorageSaveData done [16:57:22]OFDSenderStorePacket done [16:57:22]KKMCreateOFDPacket done [16:57:22]NVStorageSaveData kkm_last_timestamp [16:57:22]File name is /storage/kkm_last_timestamp [16:57:22]Write 4 bytes [16:57:22]NVStorageSaveData done [16:57:22]ExternCall_PrintAddStr [16:57:22]wPrintStart [16:57:22]Write to MH i2c: 01 00 00 59 72 CB [16:57:22]Write i2c OK [16:57:22]MH_I2C_Read... [16:57:22]Read from MH i2c: 01 [16:57:22]MH_I2C_Read... [16:57:22]Read from MH i2c: 01 07 00 [16:57:22]MH_I2C_Read... [16:57:22]Read from MH i2c: 01 07 00 59 72 00 00 00 00 00 FF 0F E0 [16:57:22]RasterBufferAndPrint [16:57:22]line Счет N : (1)209875 [16:57:22]line ИНН: 02508201610067 [16:57:22]line Контрольно-Кассовый Чек [16:57:22]line ПРОДАЖА [16:57:22]line ТРК (МРК, ГНК) : 32 [16:57:22]line Товар: 2710124130 [16:57:22]line Аи-92-К-3 [16:57:22]line 17.940 * 66.90 [16:57:22]line = 1200.19 [16:57:22]line НДС 12% НСП 1% [16:57:22]line > о реализуемом товаре [16:57:22]line ОКРУГЛЕНИЕ: -0.19 [16:57:22]line ИТОГО: 1200.00 [16:57:22]line Внесено: 1200.00 [16:57:22]line СДАЧА: 0.00 [16:57:22]line НСП 1% : 10.62 [16:57:22]line НДС 12% : 127.45 [16:57:22]line Наличными: 1200.00 [16:57:22]line Безнал.: 0.00 [16:57:22]line Место: АЗС № 86 "Партнер Нефть" [16:57:22]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [16:57:22]line СНО: Общий режим [16:57:22]line Чек 287 21.10.2024 16:57 [16:57:22]line Смена: 460 ФФД: 1.0 [16:57:22]line ЗНМ: 0300000155 [16:57:22]line РНМ: 0000000000100030 [16:57:22]line Версия ККМ: 001 [16:57:22]line ФМ: 0000000000965340 [16:57:22]line ФД: 187823 [16:57:22]line ФПД: 85661718495738 [16:57:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T165725&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187823&fm=85661718495738&tin=02508201610067®Number=0000000000100030&sum=120000 [16:57:22]written 0, free lines is 4095 [16:57:22]OFD Sender: Processing packet 187823 [packets to send 1062, broken 1061] [16:57:22]ProducePacketName [16:57:22]name=ofd_packets/00187823 [16:57:22]OFD Sender: To server: pG, [16:57:22]CommunicateWithHost lk.salyk.kg:30040 [16:57:22]ConnectInit lk.salyk.kg [16:57:22]Connected sock=10 [16:57:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 CF 85 07 01 FC 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 33 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 1F 01 00 00 F4 03 04 00 F5 87 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 AF DD 02 00 35 04 06 00 4D E8 AC 4D 41 FA 9D 88 B8 8F 5D A9 20 6E [16:57:23]Write to MH i2c: 01 00 00 84 72 F6 [16:57:23]Write i2c OK [16:57:23]MH_I2C_Read... [16:57:23]Read from MH i2c: 01 [16:57:23]MH_I2C_Read... [16:57:23]Read from MH i2c: 01 07 00 [16:57:23]MH_I2C_Read... [16:57:23]Read from MH i2c: 01 07 00 84 72 00 00 00 00 00 6B 0C 74 [16:57:23]RasterBufferAndPrint [16:57:23]line [16:57:23]line [16:57:23]line [16:57:23]line [16:57:23]line [16:57:23]written 0, free lines is 3183 [16:57:23]MH_Cut [16:57:23]Write to MH i2c: D1 01 00 8B 72 01 CF [16:57:23]Write i2c OK [16:57:23]MH_I2C_Read... [16:57:23]Read from MH i2c: D1 [16:57:23]MH_I2C_Read... [16:57:23]Read from MH i2c: D1 01 00 [16:57:23]MH_I2C_Read... [16:57:23]Read from MH i2c: D1 01 00 8B 72 00 CE [16:57:23]Write to MH i2c: 01 00 00 8C 72 FE [16:57:23]Write i2c OK [16:57:23]MH_I2C_Read... [16:57:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 F0 A2 47 00 81 96 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 AF DD 02 00 F4 03 04 00 E5 31 16 67 B6 04 01 00 00 4D CE D1 CD 0D E4 6E 72 [16:57:23]CommunicateWithHost err = 0 [16:57:23]CheckOFDResponse [16:57:23]1017 (14) - 77093643461234 [16:57:23]1041 (16) - 0000000000965340 [16:57:23]1040 (4) - 187823 [16:57:23]1012 (4) - 21.10.2024 10:50 [16:57:23]1206 (1) - 0 [16:57:23]OFD Sender: Remove packet 187823 [16:57:23]ProducePacketName [16:57:23]name=ofd_packets/00187823 [16:57:23]NVStorageDeleteData [16:57:23]OFD Sender: No OFD packet to send [16:57:24]*** Cut start [16:57:24]*** Partial cut [16:57:24]*** CUTSNS_PIN = 1 [16:57:24]*** CUTSNS_PIN = 0 [16:57:24]*** Brake cut motor [16:57:24]Read from MH i2c: 01 [16:57:24]MH_I2C_Read... [16:57:24]*** Stop cut motor [16:57:24]*** Cut end [16:57:24]Read from MH i2c: 01 07 00 [16:57:24]MH_I2C_Read... [16:57:24]Read from MH i2c: 01 07 00 8C 72 00 00 00 00 00 FF 0F 13 [16:57:24]process_action close_receipt done [16:57:24]requested_data is exist [16:57:24]produce_requested_data [16:57:24]requested_item fm.sn is exist - process it [16:57:24]wFMCommunicate request_size=4 [16:57:24]MH_SAM_APDU [16:57:24]CAPDU: 80 11 00 00 [16:57:24]Write to MH i2c: E2 08 00 8D 72 80 11 00 00 00 00 00 00 79 [16:57:24]Write i2c OK [16:57:24]MH_I2C_Read... [16:57:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:57:24]Read from MH i2c: E2 [16:57:24]MH_I2C_Read... [16:57:24]Read from MH i2c: E2 17 00 [16:57:24]MH_I2C_Read... [16:57:24]Read from MH i2c: E2 17 00 8D 72 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 C7 [16:57:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [16:57:24]wFMCommunicate OK [16:57:24]requested_item fd.num is exist - process it [16:57:24]SAM_PROTO_GetFieldsCounters [16:57:24]wFMCommunicate request_size=4 [16:57:24]MH_SAM_APDU [16:57:24]CAPDU: 80 13 00 00 [16:57:24]Write to MH i2c: E2 08 00 8E 72 80 13 00 00 00 00 00 00 7C [16:57:24]Write i2c OK [16:57:24]MH_I2C_Read... [16:57:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:57:25]Read from MH i2c: E2 [16:57:25]MH_I2C_Read... [16:57:25]Read from MH i2c: E2 62 00 [16:57:25]MH_I2C_Read... [16:57:25]Read from MH i2c: E2 62 00 8E 72 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 AF DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 1F 01 00 00 5E 04 04 00 1F 01 00 00 57 04 04 00 20 01 00 00 19 04 04 00 00 00 00 00 90 00 3E [16:57:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 AF DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 1F 01 00 00 5E 04 04 00 1F 01 00 00 57 04 04 00 20 01 00 00 19 04 04 00 00 00 00 00 90 00 [16:57:25]wFMCommunicate OK [16:57:25]SAM_PROTO_GetFieldsCounters done [16:57:25]requested_item shift.num is exist - process it [16:57:25]requested_item shift.opened is exist - process it [16:57:25]req_shift_opened [16:57:25]FM_GetShiftState [16:57:25]SAM_PROTO_GetShiftState [16:57:25]wFMCommunicate request_size=4 [16:57:25]MH_SAM_APDU [16:57:25]CAPDU: 80 13 01 00 [16:57:25]Write to MH i2c: E2 08 00 8F 72 80 13 01 00 00 00 00 00 7E [16:57:25]Write i2c OK [16:57:25]MH_I2C_Read... [16:57:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:57:25]Read from MH i2c: E2 [16:57:25]MH_I2C_Read... [16:57:25]Read from MH i2c: E2 0E 00 [16:57:25]MH_I2C_Read... [16:57:25]Read from MH i2c: E2 0E 00 8F 72 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 DD [16:57:25]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [16:57:25]wFMCommunicate OK [16:57:25]SAM_PROTO_GetShiftState done [16:57:25]FM_GetShiftState done [16:57:25]req_shift_opened done [16:57:25]requested_item shift.open_date is exist - process it [16:57:25]req_shift_open_date [16:57:25]req_shift_open_date done [16:57:25]produce_requested_data done [16:57:25]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187823,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [16:57:25]process_action_free close_receipt [16:57:25]json_value_free [16:57:25]json_value_free done [16:57:25]process_json_proto returns [16:57:25]Send response to host [16:57:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187823,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [16:57:25]free response buf [16:57:25]execute_script done [16:57:25]execute_script returns [16:57:25]free content buf [16:57:25]Sock 9.Close socket [16:57:25]Sock 9.Thread stoped [16:57:28]OFD Sender: No OFD packet to send [16:57:33]OFD Sender: No OFD packet to send [16:57:38]OFD Sender: No OFD packet to send [16:57:43]OFD Sender: No OFD packet to send [16:57:48]OFD Sender: No OFD packet to send [16:57:49]accept exits with 8 [16:57:49]New connection [16:57:49]New thread 3067157860 created [16:57:49]Thread 3067014500 joined [16:57:49]Waiting for new connection... [16:57:49] Sock 8.Parse request [16:57:49]Sock 8.Check first char [16:57:49]Sock 8.First char is OK [16:57:49]request: POST /json_proto HTTP/1.0 [16:57:49]Method: POST [16:57:49]URL: /json_proto [16:57:49]Method is POST - this is cgi request [16:57:49]url: /json_proto [16:57:49]query_string will be loaded in cgi processing [16:57:49]execute_cgi json_proto POST (null) [16:57:49]execute_cgi path=json_proto method=POST [16:57:49]POST find Content-Length [16:57:49]Host: 172.17.42.131:8080 [16:57:49]Content-Length: 677 [16:57:49]Content-Type: application/json [16:57:49] [16:57:49]POST finish read [16:57:49]Found Content-Length = 677 [16:57:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209876", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:57:49]execute_script... [16: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)209876", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:57:49]POST & json_proto [16:57:49]process_json_proto [16:57:49]json parsed OK: [16:57:49]protocol is kg_v1.0 [16:57:49]action value=close_receipt [16:57:49]process_action close_receipt [16:57:49]cmd_close_receipt [16:57:49]MH_GetDate [16:57:49]Write to MH i2c: F0 00 00 90 72 F1 [16:57:49]Write i2c OK [16:57:49]MH_I2C_Read... [16:57:49]Read from MH i2c: F0 [16:57:49]MH_I2C_Read... [16:57:49]Read from MH i2c: F0 09 00 [16:57:49]MH_I2C_Read... [16:57:49]Read from MH i2c: F0 09 00 90 72 00 12 88 16 67 A0 18 CA 66 F9 [16:57:49]GetLastDocTimeStamp 1729529845 [16:57:49]current date 1729529874 [16:57:49]FM_GetShiftState [16:57:49]SAM_PROTO_GetShiftState [16:57:49]wFMCommunicate request_size=4 [16:57:49]MH_SAM_APDU [16:57:49]CAPDU: 80 13 01 00 [16:57:49]Write to MH i2c: E2 08 00 91 72 80 13 01 00 00 00 00 00 80 [16:57:49]Write i2c OK [16:57:49]MH_I2C_Read... [16:57:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:57:49]Read from MH i2c: E2 [16:57:49]MH_I2C_Read... [16:57:49]Read from MH i2c: E2 0E 00 [16:57:49]MH_I2C_Read... [16:57:49]Read from MH i2c: E2 0E 00 91 72 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 DF [16:57:49]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [16:57:49]wFMCommunicate OK [16:57:49]SAM_PROTO_GetShiftState done [16:57:49]FM_GetShiftState done [16:57:49]opened in 1729469754 [16:57:49]opened+sec_in_day 1729556154 [16:57:49]quantity*price = 30038 [16:57:49]sum+1 = 30039 [16: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 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 288 21.10.2024 16:57 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 187824 ФПД: 33727887106572 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T165754&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187824&fm=33727887106572&tin=02508201610067®Number=0000000000100030&sum=30000 [16:57:50]StoreToDocumentArchive [16:57:50]shift 460 fd 187824 [16:57:50]save to /storage/0460/doc_00187824 [16:57:50]save last doc name /storage/0460/doc_00187824 to /storage/kkm_last_doc_name [16:57:50]save OK [16:57:50]Clear old archive folders... [16:57:50]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:57:50]tlvbuf is 0126EC20 [16:57:50]SAM_PROTO_ClearQueue [16:57:50]wFMCommunicate request_size=4 [16:57:50]MH_SAM_APDU [16:57:50]CAPDU: 80 09 00 00 [16:57:50]Write to MH i2c: E2 08 00 9E 72 80 09 00 00 00 00 00 00 82 [16:57:50]Write i2c OK [16:57:50]MH_I2C_Read... [16:57:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:57:50]Read from MH i2c: E2 [16:57:50]MH_I2C_Read... [16:57:50]Read from MH i2c: E2 03 00 [16:57:50]MH_I2C_Read... [16:57:50]Read from MH i2c: E2 03 00 9E 72 00 90 00 84 [16:57:50]RAPDU: 90 00 [16:57:50]wFMCommunicate OK [16:57:50]SAM_PROTO_ClearQueue done [16:57:50]KKMCreateOFDPacket [16:57:50]OFDProtocolAddRootSTLVToBuf [16:57:50]FM_MakeSignedData [16:57:50]FM_MakeSignedData [16:57:50]SAM_PROTO_SignData [16:57:50]wFMCommunicate request_size=4 [16:57:50]MH_SAM_APDU [16:57:50]CAPDU: 80 0D 01 02 [16:57:50]Write to MH i2c: E2 08 00 9F 72 80 0D 01 02 00 00 00 00 8A [16:57:50]Write i2c OK [16:57:50]MH_I2C_Read... [16:57:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:57:50]Read from MH i2c: E2 [16:57:50]MH_I2C_Read... [16:57:50]Read from MH i2c: E2 03 00 [16:57:50]MH_I2C_Read... [16:57:50]Read from MH i2c: E2 03 00 9F 72 00 90 00 85 [16:57:50]RAPDU: 90 00 [16:57:50]wFMCommunicate OK [16:57:50]wFMCommunicate request_size=255 [16:57:50]MH_SAM_APDU [16: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 33 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 20 01 00 00 F4 03 04 00 12 88 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 B0 DD 02 00 35 04 06 00 1E [16:57:50]Write to MH i2c: E2 02 01 A0 72 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 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 20 01 00 00 F4 03 04 00 12 88 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 B0 DD 02 00 35 04 06 00 1E 00 00 A3 [16:57:50]Write i2c OK [16:57:50]MH_I2C_Read... [16:57:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:57:50]Read from MH i2c: E2 [16:57:50]MH_I2C_Read... [16:57:50]Read from MH i2c: E2 03 00 [16:57:50]MH_I2C_Read... [16:57:50]Read from MH i2c: E2 03 00 A0 72 00 90 00 86 [16:57:50]RAPDU: 90 00 [16:57:50]wFMCommunicate OK [16:57:50]wFMCommunicate request_size=10 [16:57:50]MH_SAM_APDU [16:57:50]CAPDU: 80 0D 02 02 05 AC E2 BA E2 0C [16:57:50]Write to MH i2c: E2 0D 00 A1 72 80 0D 02 02 05 00 AC E2 BA E2 0C 00 00 CD [16:57:50]Write i2c OK [16:57:50]MH_I2C_Read... [16:57:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:57:50]Read from MH i2c: E2 [16:57:50]MH_I2C_Read... [16:57:50]Read from MH i2c: E2 03 00 [16:57:50]MH_I2C_Read... [16:57:50]Read from MH i2c: E2 03 00 A1 72 00 90 00 87 [16:57:50]RAPDU: 90 00 [16:57:50]wFMCommunicate OK [16:57:50]wFMCommunicate request_size=4 [16:57:50]MH_SAM_APDU [16:57:50]CAPDU: 80 0D 03 02 [16:57:50]Write to MH i2c: E2 08 00 A2 72 80 0D 03 02 00 00 00 00 8F [16:57:50]Write i2c OK [16:57:50]MH_I2C_Read... [16:57:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:57:50]Read from MH i2c: E2 [16:57:50]MH_I2C_Read... [16:57:50]Read from MH i2c: E2 0B 00 [16:57:50]MH_I2C_Read... [16:57:50]Read from MH i2c: E2 0B 00 A2 72 00 87 DC 1E 5C 51 86 C4 CC 90 00 D4 [16:57:50]RAPDU: 87 DC 1E 5C 51 86 C4 CC 90 00 [16:57:50]wFMCommunicate OK [16:57:50]SAM_PROTO_SignData done [16:57:50]FM_MakeSignedData done [16:57:50]CreateOFDProtocolMessage [16:57:50]wFMCommunicate request_size=4 [16:57:50]MH_SAM_APDU [16:57:50]CAPDU: 80 11 00 00 [16:57:50]Write to MH i2c: E2 08 00 A3 72 80 11 00 00 00 00 00 00 8F [16:57:50]Write i2c OK [16:57:50]MH_I2C_Read... [16:57:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:57:50]Read from MH i2c: E2 [16:57:50]MH_I2C_Read... [16:57:50]Read from MH i2c: E2 17 00 [16:57:50]MH_I2C_Read... [16:57:50]Read from MH i2c: E2 17 00 A3 72 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 DD [16:57:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [16:57:50]wFMCommunicate OK [16:57:50]CreateOFDProtocolMessage done [16:57:50]OFDSenderStorePacket 187824 [16:57:50]StoreOFDPacket docnum=187824 [16:57:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 54 C5 07 01 19 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 33 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 20 01 00 00 F4 03 04 00 12 88 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 B0 DD 02 00 35 04 06 00 1E AC E2 BA E2 0C 87 DC 1E 5C 51 86 C4 CC [16:57:50]CheckFolder [16:57:50]dirname=/storage/ofd_packets [16:57:50]CheckFolder done [16:57:50]ProducePacketName [16:57:50]name=ofd_packets/00187824 [16:57:50]NVStorageSaveData ofd_packets/00187824 [16:57:50]File name is /storage/ofd_packets/00187824 [16:57:50]Write 301 bytes [16:57:50]NVStorageSaveData done [16:57:50]OFDSenderStorePacket done [16:57:50]KKMCreateOFDPacket done [16:57:50]NVStorageSaveData kkm_last_timestamp [16:57:50]File name is /storage/kkm_last_timestamp [16:57:50]Write 4 bytes [16:57:50]NVStorageSaveData done [16:57:50]ExternCall_PrintAddStr [16:57:50]wPrintStart [16:57:50]Write to MH i2c: 01 00 00 A4 72 16 [16:57:50]Write i2c OK [16:57:50]MH_I2C_Read... [16:57:50]Read from MH i2c: 01 [16:57:50]MH_I2C_Read... [16:57:50]Read from MH i2c: 01 07 00 [16:57:50]MH_I2C_Read... [16:57:50]Read from MH i2c: 01 07 00 A4 72 00 00 00 00 00 FF 0F 2B [16:57:50]RasterBufferAndPrint [16:57:50]line Счет N : (1)209876 [16:57:50]line ИНН: 02508201610067 [16:57:50]line Контрольно-Кассовый Чек [16:57:50]line ПРОДАЖА [16:57:50]line ТРК (МРК, ГНК) : 12 [16:57:50]line Товар: 2710124130 [16:57:50]line Аи-92-К-3 [16:57:50]line 4.490 * 66.90 [16:57:50]line = 300.38 [16:57:50]line НДС 12% НСП 1% [16:57:50]line > о реализуемом товаре [16:57:50]line ОКРУГЛЕНИЕ: -0.38 [16:57:50]line ИТОГО: 300.00 [16:57:50]line Внесено: 300.00 [16:57:50]line СДАЧА: 0.00 [16:57:50]line НСП 1% : 2.66 [16:57:50]line НДС 12% : 31.90 [16:57:50]line Наличными: 300.00 [16:57:50]line Безнал.: 0.00 [16:57:50]line Место: АЗС № 86 "Партнер Нефть" [16:57:50]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [16:57:50]line СНО: Общий режим [16:57:50]line Чек 288 21.10.2024 16:57 [16:57:50]line Смена: 460 ФФД: 1.0 [16:57:50]line ЗНМ: 0300000155 [16:57:50]line РНМ: 0000000000100030 [16:57:50]line Версия ККМ: 001 [16:57:50]line ФМ: 0000000000965340 [16:57:50]line ФД: 187824 [16:57:50]line ФПД: 33727887106572 [16:57:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T165754&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187824&fm=33727887106572&tin=02508201610067®Number=0000000000100030&sum=30000 [16:57:50]written 0, free lines is 4095 [16:57:50]OFD Sender: Processing packet 187824 [packets to send 1062, broken 1061] [16:57:50]ProducePacketName [16:57:50]name=ofd_packets/00187824 [16:57:50]OFD Sender: To server: pG, [16:57:50]CommunicateWithHost lk.salyk.kg:30040 [16:57:50]ConnectInit lk.salyk.kg [16:57:51]Connected sock=10 [16:57:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 54 C5 07 01 19 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 33 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 20 01 00 00 F4 03 04 00 12 88 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 B0 DD 02 00 35 04 06 00 1E AC E2 BA E2 0C 87 DC 1E 5C 51 86 C4 CC [16:57:51]Write to MH i2c: 01 00 00 CF 72 41 [16:57:51]Write i2c OK [16:57:51]MH_I2C_Read... [16:57:51]Read from MH i2c: 01 [16:57:51]MH_I2C_Read... [16:57:51]Read from MH i2c: 01 07 00 [16:57:51]MH_I2C_Read... [16:57:51]Read from MH i2c: 01 07 00 CF 72 00 00 00 00 00 6B 0C BF [16:57:51]RasterBufferAndPrint [16:57:51]line [16:57:51]line [16:57:51]line [16:57:51]line [16:57:51]line [16:57:51]written 0, free lines is 3182 [16:57:51]MH_Cut [16:57:51]Write to MH i2c: D1 01 00 D6 72 01 1A [16:57:51]Write i2c OK [16:57:51]MH_I2C_Read... [16:57:51]Read from MH i2c: D1 [16:57:51]MH_I2C_Read... [16:57:51]Read from MH i2c: D1 01 00 [16:57:51]MH_I2C_Read... [16:57:51]Read from MH i2c: D1 01 00 D6 72 00 19 [16:57:51]Write to MH i2c: 01 00 00 D7 72 49 [16:57:51]Write i2c OK [16:57:51]MH_I2C_Read... [16:57:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 A4 78 47 00 A9 EF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 B0 DD 02 00 F4 03 04 00 01 32 16 67 B6 04 01 00 00 E7 A4 EE 9B 2D 38 C3 F2 [16:57:51]CommunicateWithHost err = 0 [16:57:51]CheckOFDResponse [16:57:51]1017 (14) - 77093643461234 [16:57:51]1041 (16) - 0000000000965340 [16:57:51]1040 (4) - 187824 [16:57:51]1012 (4) - 21.10.2024 10:50 [16:57:51]1206 (1) - 0 [16:57:51]OFD Sender: Remove packet 187824 [16:57:51]ProducePacketName [16:57:51]name=ofd_packets/00187824 [16:57:51]NVStorageDeleteData [16:57:52]OFD Sender: No OFD packet to send [16:57:52]*** Cut start [16:57:52]*** Partial cut [16:57:52]*** CUTSNS_PIN = 1 [16:57:52]*** CUTSNS_PIN = 0 [16:57:52]*** Brake cut motor [16:57:53]Read from MH i2c: 01 [16:57:53]MH_I2C_Read... [16:57:53]*** Stop cut motor [16:57:53]*** Cut end [16:57:53]Read from MH i2c: 01 07 00 [16:57:53]MH_I2C_Read... [16:57:53]Read from MH i2c: 01 07 00 D7 72 00 00 00 00 00 FF 0F 5E [16:57:53]process_action close_receipt done [16:57:53]requested_data is exist [16:57:53]produce_requested_data [16:57:53]requested_item fm.sn is exist - process it [16:57:53]wFMCommunicate request_size=4 [16:57:53]MH_SAM_APDU [16:57:53]CAPDU: 80 11 00 00 [16:57:53]Write to MH i2c: E2 08 00 D8 72 80 11 00 00 00 00 00 00 C4 [16:57:53]Write i2c OK [16:57:53]MH_I2C_Read... [16:57:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:57:53]Read from MH i2c: E2 [16:57:53]MH_I2C_Read... [16:57:53]Read from MH i2c: E2 17 00 [16:57:53]MH_I2C_Read... [16:57:53]Read from MH i2c: E2 17 00 D8 72 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 12 [16:57:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [16:57:53]wFMCommunicate OK [16:57:53]requested_item fd.num is exist - process it [16:57:53]SAM_PROTO_GetFieldsCounters [16:57:53]wFMCommunicate request_size=4 [16:57:53]MH_SAM_APDU [16:57:53]CAPDU: 80 13 00 00 [16:57:53]Write to MH i2c: E2 08 00 D9 72 80 13 00 00 00 00 00 00 C7 [16:57:53]Write i2c OK [16:57:53]MH_I2C_Read... [16:57:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:57:53]Read from MH i2c: E2 [16:57:53]MH_I2C_Read... [16:57:53]Read from MH i2c: E2 62 00 [16:57:53]MH_I2C_Read... [16:57:53]Read from MH i2c: E2 62 00 D9 72 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 B0 DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 20 01 00 00 5E 04 04 00 20 01 00 00 57 04 04 00 21 01 00 00 19 04 04 00 00 00 00 00 90 00 8D [16:57:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 B0 DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 20 01 00 00 5E 04 04 00 20 01 00 00 57 04 04 00 21 01 00 00 19 04 04 00 00 00 00 00 90 00 [16:57:53]wFMCommunicate OK [16:57:53]SAM_PROTO_GetFieldsCounters done [16:57:53]requested_item shift.num is exist - process it [16:57:53]requested_item shift.opened is exist - process it [16:57:53]req_shift_opened [16:57:53]FM_GetShiftState [16:57:53]SAM_PROTO_GetShiftState [16:57:53]wFMCommunicate request_size=4 [16:57:53]MH_SAM_APDU [16:57:53]CAPDU: 80 13 01 00 [16:57:53]Write to MH i2c: E2 08 00 DA 72 80 13 01 00 00 00 00 00 C9 [16:57:53]Write i2c OK [16:57:53]MH_I2C_Read... [16:57:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:57:53]Read from MH i2c: E2 [16:57:53]MH_I2C_Read... [16:57:53]Read from MH i2c: E2 0E 00 [16:57:53]MH_I2C_Read... [16:57:53]Read from MH i2c: E2 0E 00 DA 72 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 28 [16:57:53]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [16:57:53]wFMCommunicate OK [16:57:53]SAM_PROTO_GetShiftState done [16:57:53]FM_GetShiftState done [16:57:53]req_shift_opened done [16:57:53]requested_item shift.open_date is exist - process it [16:57:53]req_shift_open_date [16:57:53]req_shift_open_date done [16:57:53]produce_requested_data done [16:57:53]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187824,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [16:57:53]process_action_free close_receipt [16:57:53]json_value_free [16:57:53]json_value_free done [16:57:53]process_json_proto returns [16:57:53]Send response to host [16:57:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187824,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [16:57:53]free response buf [16:57:53]execute_script done [16:57:53]execute_script returns [16:57:53]free content buf [16:57:53]Sock 8.Close socket [16:57:53]Sock 8.Thread stoped [16:57:57]OFD Sender: No OFD packet to send [16:58:02]OFD Sender: No OFD packet to send [16:58:07]OFD Sender: No OFD packet to send [16:58:12]OFD Sender: No OFD packet to send [16:58:17]OFD Sender: No OFD packet to send [16:58:22]OFD Sender: No OFD packet to send [16:58:27]OFD Sender: No OFD packet to send [16:58:32]OFD Sender: No OFD packet to send [16:58:37]OFD Sender: No OFD packet to send [16:58:42]OFD Sender: No OFD packet to send [16:58:47]OFD Sender: No OFD packet to send [16:58:52]OFD Sender: No OFD packet to send [16:58:57]OFD Sender: No OFD packet to send [16:59:02]OFD Sender: No OFD packet to send [16:59:07]OFD Sender: No OFD packet to send [16:59:12]OFD Sender: No OFD packet to send [16:59:17]OFD Sender: No OFD packet to send [16:59:22]OFD Sender: No OFD packet to send [16:59:27]OFD Sender: No OFD packet to send [16:59:32]OFD Sender: No OFD packet to send [16:59:37]OFD Sender: No OFD packet to send [16:59:42]OFD Sender: No OFD packet to send [16:59:43]accept exits with 9 [16:59:43]New connection [16:59:43]New thread 3067014500 created [16:59:43]Thread 3067157860 joined [16:59:43]Waiting for new connection... [16:59:43] Sock 9.Parse request [16:59:43]Sock 9.Check first char [16:59:43]Sock 9.First char is OK [16:59:43]request: POST /json_proto HTTP/1.0 [16:59:43]Method: POST [16:59:43]URL: /json_proto [16:59:43]Method is POST - this is cgi request [16:59:43]url: /json_proto [16:59:43]query_string will be loaded in cgi processing [16:59:43]execute_cgi json_proto POST (null) [16:59:43]execute_cgi path=json_proto method=POST [16:59:43]POST find Content-Length [16:59:43]Host: 172.17.42.131:8080 [16:59:43]Content-Length: 792 [16:59:43]Content-Type: application/json [16:59:43] [16:59:43]POST finish read [16:59:43]Found Content-Length = 792 [16:59:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209877", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 0.00, "quantity" : 22.430, "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\u000A02633", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:59:43]execute_script... [16:59: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)209877", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 0.00, "quantity" : 22.430, "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\u000A02633", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:59:43]POST & json_proto [16:59:43]process_json_proto [16:59:43]json parsed OK: [16:59:43]protocol is kg_v1.0 [16:59:43]action value=close_receipt [16:59:43]process_action close_receipt [16:59:43]cmd_close_receipt [16:59:43]MH_GetDate [16:59:43]Write to MH i2c: F0 00 00 DB 72 3C [16:59:43]Write i2c OK [16:59:43]MH_I2C_Read... [16:59:43]Read from MH i2c: F0 [16:59:43]MH_I2C_Read... [16:59:43]Read from MH i2c: F0 09 00 [16:59:43]MH_I2C_Read... [16:59:43]Read from MH i2c: F0 09 00 DB 72 00 84 88 16 67 A0 18 CA 66 B6 [16:59:43]GetLastDocTimeStamp 1729529874 [16:59:43]current date 1729529988 [16:59:43]FM_GetShiftState [16:59:43]SAM_PROTO_GetShiftState [16:59:43]wFMCommunicate request_size=4 [16:59:43]MH_SAM_APDU [16:59:43]CAPDU: 80 13 01 00 [16:59:43]Write to MH i2c: E2 08 00 DC 72 80 13 01 00 00 00 00 00 CB [16:59:43]Write i2c OK [16:59:43]MH_I2C_Read... [16:59:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:59:44]Read from MH i2c: E2 [16:59:44]MH_I2C_Read... [16:59:44]Read from MH i2c: E2 0E 00 [16:59:44]MH_I2C_Read... [16:59:44]Read from MH i2c: E2 0E 00 DC 72 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 2A [16:59:44]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [16:59:44]wFMCommunicate OK [16:59:44]SAM_PROTO_GetShiftState done [16:59:44]FM_GetShiftState done [16:59:44]opened in 1729469754 [16:59:44]opened+sec_in_day 1729556154 [16:59:44]quantity*price = 0 [16:59:44]sum+1 = 1 [16:59:44]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 289 21.10.2024 16:59 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Талоны: Топливная Карта 02633 ФМ: 0000000000965340 ФД: 187825 ФПД: 116595870574073 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T165948&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187825&fm=116595870574073&tin=02508201610067®Number=0000000000100030&sum=0 [16:59:45]StoreToDocumentArchive [16:59:45]shift 460 fd 187825 [16:59:45]save to /storage/0460/doc_00187825 [16:59:45]save last doc name /storage/0460/doc_00187825 to /storage/kkm_last_doc_name [16:59:45]save OK [16:59:45]Clear old archive folders... [16:59:45]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:59:45]tlvbuf is 012EE2D0 [16:59:45]SAM_PROTO_ClearQueue [16:59:45]wFMCommunicate request_size=4 [16:59:45]MH_SAM_APDU [16:59:45]CAPDU: 80 09 00 00 [16:59:45]Write to MH i2c: E2 08 00 E9 72 80 09 00 00 00 00 00 00 CD [16:59:45]Write i2c OK [16:59:45]MH_I2C_Read... [16:59:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:59:45]Read from MH i2c: E2 [16:59:45]MH_I2C_Read... [16:59:45]Read from MH i2c: E2 03 00 [16:59:45]MH_I2C_Read... [16:59:45]Read from MH i2c: E2 03 00 E9 72 00 90 00 CF [16:59:45]RAPDU: 90 00 [16:59:45]wFMCommunicate OK [16:59:45]SAM_PROTO_ClearQueue done [16:59:45]KKMCreateOFDPacket [16:59:45]OFDProtocolAddRootSTLVToBuf [16:59:45]FM_MakeSignedData [16:59:45]FM_MakeSignedData [16:59:45]SAM_PROTO_SignData [16:59:45]wFMCommunicate request_size=4 [16:59:45]MH_SAM_APDU [16:59:45]CAPDU: 80 0D 01 02 [16:59:45]Write to MH i2c: E2 08 00 EA 72 80 0D 01 02 00 00 00 00 D5 [16:59:45]Write i2c OK [16:59:45]MH_I2C_Read... [16:59:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:59:45]Read from MH i2c: E2 [16:59:45]MH_I2C_Read... [16:59:45]Read from MH i2c: E2 03 00 [16:59:45]MH_I2C_Read... [16:59:45]Read from MH i2c: E2 03 00 EA 72 00 90 00 D0 [16:59:45]RAPDU: 90 00 [16:59:45]wFMCommunicate OK [16:59:45]wFMCommunicate request_size=255 [16:59:45]MH_SAM_APDU [16:59:45]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 9E 57 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 21 01 00 00 F4 03 04 00 84 88 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 B1 DD 02 00 35 04 06 00 6A [16:59:45]Write to MH i2c: E2 02 01 EB 72 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 9E 57 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 21 01 00 00 F4 03 04 00 84 88 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 B1 DD 02 00 35 04 06 00 6A 00 00 2A [16:59:45]Write i2c OK [16:59:45]MH_I2C_Read... [16:59:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:59:45]Read from MH i2c: E2 [16:59:45]MH_I2C_Read... [16:59:45]Read from MH i2c: E2 03 00 [16:59:45]MH_I2C_Read... [16:59:45]Read from MH i2c: E2 03 00 EB 72 00 90 00 D1 [16:59:45]RAPDU: 90 00 [16:59:45]wFMCommunicate OK [16:59:45]wFMCommunicate request_size=10 [16:59:45]MH_SAM_APDU [16:59:45]CAPDU: 80 0D 02 02 05 0B 17 72 A5 F9 [16:59:45]Write to MH i2c: E2 0D 00 EC 72 80 0D 02 02 05 00 0B 17 72 A5 F9 00 00 14 [16:59:45]Write i2c OK [16:59:45]MH_I2C_Read... [16:59:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:59:45]Read from MH i2c: E2 [16:59:45]MH_I2C_Read... [16:59:45]Read from MH i2c: E2 03 00 [16:59:45]MH_I2C_Read... [16:59:45]Read from MH i2c: E2 03 00 EC 72 00 90 00 D2 [16:59:45]RAPDU: 90 00 [16:59:45]wFMCommunicate OK [16:59:45]wFMCommunicate request_size=4 [16:59:45]MH_SAM_APDU [16:59:45]CAPDU: 80 0D 03 02 [16:59:45]Write to MH i2c: E2 08 00 ED 72 80 0D 03 02 00 00 00 00 DA [16:59:45]Write i2c OK [16:59:45]MH_I2C_Read... [16:59:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:59:45]Read from MH i2c: E2 [16:59:45]MH_I2C_Read... [16:59:45]Read from MH i2c: E2 0B 00 [16:59:45]MH_I2C_Read... [16:59:45]Read from MH i2c: E2 0B 00 ED 72 00 9B B6 41 CA 6F 9B FC 6E 90 00 AB [16:59:45]RAPDU: 9B B6 41 CA 6F 9B FC 6E 90 00 [16:59:45]wFMCommunicate OK [16:59:45]SAM_PROTO_SignData done [16:59:45]FM_MakeSignedData done [16:59:45]CreateOFDProtocolMessage [16:59:45]wFMCommunicate request_size=4 [16:59:45]MH_SAM_APDU [16:59:45]CAPDU: 80 11 00 00 [16:59:45]Write to MH i2c: E2 08 00 EE 72 80 11 00 00 00 00 00 00 DA [16:59:45]Write i2c OK [16:59:45]MH_I2C_Read... [16:59:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:59:45]Read from MH i2c: E2 [16:59:45]MH_I2C_Read... [16:59:45]Read from MH i2c: E2 17 00 [16:59:45]MH_I2C_Read... [16:59:45]Read from MH i2c: E2 17 00 EE 72 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 28 [16:59:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [16:59:45]wFMCommunicate OK [16:59:45]CreateOFDProtocolMessage done [16:59:45]OFDSenderStorePacket 187825 [16:59:45]StoreOFDPacket docnum=187825 [16:59:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 38 47 07 01 81 DD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 9E 57 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 21 01 00 00 F4 03 04 00 84 88 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 B1 DD 02 00 35 04 06 00 6A 0B 17 72 A5 F9 9B B6 41 CA 6F 9B FC 6E [16:59:45]CheckFolder [16:59:45]dirname=/storage/ofd_packets [16:59:45]CheckFolder done [16:59:45]ProducePacketName [16:59:45]name=ofd_packets/00187825 [16:59:45]NVStorageSaveData ofd_packets/00187825 [16:59:45]File name is /storage/ofd_packets/00187825 [16:59:45]Write 301 bytes [16:59:45]NVStorageSaveData done [16:59:45]OFDSenderStorePacket done [16:59:45]KKMCreateOFDPacket done [16:59:45]NVStorageSaveData kkm_last_timestamp [16:59:45]File name is /storage/kkm_last_timestamp [16:59:45]Write 4 bytes [16:59:45]NVStorageSaveData done [16:59:45]ExternCall_PrintAddStr [16:59:45]wPrintStart [16:59:45]Write to MH i2c: 01 00 00 EF 72 61 [16:59:45]Write i2c OK [16:59:45]MH_I2C_Read... [16:59:45]Read from MH i2c: 01 [16:59:45]MH_I2C_Read... [16:59:45]Read from MH i2c: 01 07 00 [16:59:45]MH_I2C_Read... [16:59:45]Read from MH i2c: 01 07 00 EF 72 00 00 00 00 00 FF 0F 76 [16:59:45]RasterBufferAndPrint [16:59:45]line Счет N : (1)209877 [16:59:45]line ИНН: 02508201610067 [16:59:45]line Контрольно-Кассовый Чек [16:59:45]line ПРОДАЖА [16:59:45]line ТРК (МРК, ГНК) : 42 [16:59:45]line Товар: 2710124130 [16:59:45]line Аи-92-К-3 [16:59:45]line 22.430 * 0.00 [16:59:45]line = 0.00 [16:59:45]line НДС 12% НСП 1% [16:59:45]line > о реализуемом товаре [16:59:45]line ИТОГО: 0.00 [16:59:45]line НСП 1% : 0.00 [16:59:45]line НДС 12% : 0.00 [16:59:45]line Наличными: 0.00 [16:59:45]line Безнал.: 0.00 [16:59:45]line Место: АЗС № 86 "Партнер Нефть" [16:59:45]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [16:59:45]line СНО: Общий режим [16:59:45]line Чек 289 21.10.2024 16:59 [16:59:45]line Смена: 460 ФФД: 1.0 [16:59:45]line ЗНМ: 0300000155 [16:59:45]line РНМ: 0000000000100030 [16:59:45]line Версия ККМ: 001 [16:59:45]line Талоны: Топливная Карта [16:59:45]line 02633 [16:59:45]line ФМ: 0000000000965340 [16:59:45]line ФД: 187825 [16:59:45]line ФПД: 116595870574073 [16:59:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T165948&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187825&fm=116595870574073&tin=02508201610067®Number=0000000000100030&sum=0 [16:59:45]OFD Sender: Processing packet 187825 [packets to send 1062, broken 1061] [16:59:45]ProducePacketName [16:59:45]name=ofd_packets/00187825 [16:59:45]OFD Sender: To server: pG, [16:59:45]CommunicateWithHost lk.salyk.kg:30040 [16:59:45]ConnectInit lk.salyk.kg [16:59:45]written 0, free lines is 4095 [16:59:45]Connected sock=10 [16:59:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 38 47 07 01 81 DD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 9E 57 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 21 01 00 00 F4 03 04 00 84 88 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 B1 DD 02 00 35 04 06 00 6A 0B 17 72 A5 F9 9B B6 41 CA 6F 9B FC 6E [16:59:46]Write to MH i2c: 01 00 00 19 73 8C [16:59:46]Write i2c OK [16:59:46]MH_I2C_Read... [16:59:46]Read from MH i2c: 01 [16:59:46]MH_I2C_Read... [16:59:46]Read from MH i2c: 01 07 00 [16:59:46]MH_I2C_Read... [16:59:46]Read from MH i2c: 01 07 00 19 73 00 00 00 00 00 8D 0C 2C [16:59:46]RasterBufferAndPrint [16:59:46]line [16:59:46]line [16:59:46]line [16:59:46]line [16:59:46]line [16:59:46]written 0, free lines is 3216 [16:59:46]MH_Cut [16:59:46]Write to MH i2c: D1 01 00 20 73 01 65 [16:59:46]Write i2c OK [16:59:46]MH_I2C_Read... [16:59:46]Read from MH i2c: D1 [16:59:46]MH_I2C_Read... [16:59:46]Read from MH i2c: D1 01 00 [16:59:46]MH_I2C_Read... [16:59:46]Read from MH i2c: D1 01 00 20 73 00 64 [16:59:46]Write to MH i2c: 01 00 00 21 73 94 [16:59:46]Write i2c OK [16:59:46]MH_I2C_Read... [16:59:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 D0 C5 47 00 68 F5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 B1 DD 02 00 F4 03 04 00 74 32 16 67 B6 04 01 00 00 5A 82 C6 ED F5 26 76 3F [16:59:46]CommunicateWithHost err = 0 [16:59:46]CheckOFDResponse [16:59:46]1017 (14) - 77093643461234 [16:59:46]1041 (16) - 0000000000965340 [16:59:46]1040 (4) - 187825 [16:59:46]1012 (4) - 21.10.2024 10:52 [16:59:46]1206 (1) - 0 [16:59:46]OFD Sender: Remove packet 187825 [16:59:46]ProducePacketName [16:59:46]name=ofd_packets/00187825 [16:59:46]NVStorageDeleteData [16:59:46]OFD Sender: No OFD packet to send [16:59:47]*** Cut start [16:59:47]*** Partial cut [16:59:47]*** CUTSNS_PIN = 1 [16:59:47]*** CUTSNS_PIN = 0 [16:59:47]*** Brake cut motor [16:59:47]Read from MH i2c: 01 [16:59:47]MH_I2C_Read... [16:59:47]*** Stop cut motor [16:59:47]*** Cut end [16:59:47]Read from MH i2c: 01 07 00 [16:59:47]MH_I2C_Read... [16:59:47]Read from MH i2c: 01 07 00 21 73 00 00 00 00 00 FF 0F A9 [16:59:47]process_action close_receipt done [16:59:47]requested_data is exist [16:59:47]produce_requested_data [16:59:47]requested_item fm.sn is exist - process it [16:59:47]wFMCommunicate request_size=4 [16:59:47]MH_SAM_APDU [16:59:47]CAPDU: 80 11 00 00 [16:59:47]Write to MH i2c: E2 08 00 22 73 80 11 00 00 00 00 00 00 0F [16:59:47]Write i2c OK [16:59:47]MH_I2C_Read... [16:59:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:59:48]Read from MH i2c: E2 [16:59:48]MH_I2C_Read... [16:59:48]Read from MH i2c: E2 17 00 [16:59:48]MH_I2C_Read... [16:59:48]Read from MH i2c: E2 17 00 22 73 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 5D [16:59:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [16:59:48]wFMCommunicate OK [16:59:48]requested_item fd.num is exist - process it [16:59:48]SAM_PROTO_GetFieldsCounters [16:59:48]wFMCommunicate request_size=4 [16:59:48]MH_SAM_APDU [16:59:48]CAPDU: 80 13 00 00 [16:59:48]Write to MH i2c: E2 08 00 23 73 80 13 00 00 00 00 00 00 12 [16:59:48]Write i2c OK [16:59:48]MH_I2C_Read... [16:59:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:59:48]Read from MH i2c: E2 [16:59:48]MH_I2C_Read... [16:59:48]Read from MH i2c: E2 62 00 [16:59:48]MH_I2C_Read... [16:59:48]Read from MH i2c: E2 62 00 23 73 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 B1 DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 21 01 00 00 5E 04 04 00 21 01 00 00 57 04 04 00 22 01 00 00 19 04 04 00 00 00 00 00 90 00 DC [16:59:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 B1 DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 21 01 00 00 5E 04 04 00 21 01 00 00 57 04 04 00 22 01 00 00 19 04 04 00 00 00 00 00 90 00 [16:59:48]wFMCommunicate OK [16:59:48]SAM_PROTO_GetFieldsCounters done [16:59:48]requested_item shift.num is exist - process it [16:59:48]requested_item shift.opened is exist - process it [16:59:48]req_shift_opened [16:59:48]FM_GetShiftState [16:59:48]SAM_PROTO_GetShiftState [16:59:48]wFMCommunicate request_size=4 [16:59:48]MH_SAM_APDU [16:59:48]CAPDU: 80 13 01 00 [16:59:48]Write to MH i2c: E2 08 00 24 73 80 13 01 00 00 00 00 00 14 [16:59:48]Write i2c OK [16:59:48]MH_I2C_Read... [16:59:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:59:48]Read from MH i2c: E2 [16:59:48]MH_I2C_Read... [16:59:48]Read from MH i2c: E2 0E 00 [16:59:48]MH_I2C_Read... [16:59:48]Read from MH i2c: E2 0E 00 24 73 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 73 [16:59:48]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [16:59:48]wFMCommunicate OK [16:59:48]SAM_PROTO_GetShiftState done [16:59:48]FM_GetShiftState done [16:59:48]req_shift_opened done [16:59:48]requested_item shift.open_date is exist - process it [16:59:48]req_shift_open_date [16:59:48]req_shift_open_date done [16:59:48]produce_requested_data done [16:59:48]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187825,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [16:59:48]process_action_free close_receipt [16:59:48]json_value_free [16:59:48]json_value_free done [16:59:48]process_json_proto returns [16:59:48]Send response to host [16:59:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187825,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [16:59:48]free response buf [16:59:48]execute_script done [16:59:48]execute_script returns [16:59:48]free content buf [16:59:48]Sock 9.Close socket [16:59:48]Sock 9.Thread stoped [16:59:51]OFD Sender: No OFD packet to send [16:59:56]OFD Sender: No OFD packet to send [17:00:01]OFD Sender: No OFD packet to send [17:00:06]OFD Sender: No OFD packet to send [17:00:11]OFD Sender: No OFD packet to send [17:00:16]OFD Sender: No OFD packet to send [17:00:21]OFD Sender: No OFD packet to send [17:00:27]OFD Sender: No OFD packet to send [17:00:32]OFD Sender: No OFD packet to send [17:00:37]OFD Sender: No OFD packet to send [17:00:42]OFD Sender: No OFD packet to send [17:00:47]OFD Sender: No OFD packet to send [17:00:52]OFD Sender: No OFD packet to send [17:00:57]OFD Sender: No OFD packet to send [17:01:02]OFD Sender: No OFD packet to send [17:01:07]OFD Sender: No OFD packet to send [17:01:12]OFD Sender: No OFD packet to send [17:01:17]OFD Sender: No OFD packet to send [17:01:22]OFD Sender: No OFD packet to send [17:01:27]OFD Sender: No OFD packet to send [17:01:32]OFD Sender: No OFD packet to send [17:01:37]OFD Sender: No OFD packet to send [17:01:42]OFD Sender: No OFD packet to send [17:01:47]OFD Sender: No OFD packet to send [17:01:52]OFD Sender: No OFD packet to send [17:01:57]OFD Sender: No OFD packet to send [17:02:02]OFD Sender: No OFD packet to send [17:02:07]OFD Sender: No OFD packet to send [17:02:12]OFD Sender: No OFD packet to send [17:02:17]OFD Sender: No OFD packet to send [17:02:22]OFD Sender: No OFD packet to send [17:02:27]OFD Sender: No OFD packet to send [17:02:32]OFD Sender: No OFD packet to send [17:02:37]OFD Sender: No OFD packet to send [17:02:42]OFD Sender: No OFD packet to send [17:02:47]OFD Sender: No OFD packet to send [17:02:52]OFD Sender: No OFD packet to send [17:02:57]OFD Sender: No OFD packet to send [17:03:02]OFD Sender: No OFD packet to send [17:03:07]OFD Sender: No OFD packet to send [17:03:12]OFD Sender: No OFD packet to send [17:03:17]OFD Sender: No OFD packet to send [17:03:18]accept exits with 8 [17:03:18]New connection [17:03:18]New thread 3067157860 created [17:03:18]Thread 3067014500 joined [17:03:18]Waiting for new connection... [17:03:18] Sock 8.Parse request [17:03:18]Sock 8.Check first char [17:03:18]Sock 8.First char is OK [17:03:18]request: POST /json_proto HTTP/1.0 [17:03:18]Method: POST [17:03:18]URL: /json_proto [17:03:18]Method is POST - this is cgi request [17:03:18]url: /json_proto [17:03:18]query_string will be loaded in cgi processing [17:03:18]execute_cgi json_proto POST (null) [17:03:18]execute_cgi path=json_proto method=POST [17:03:18]POST find Content-Length [17:03:18]Host: 172.17.42.131:8080 [17:03:18]Content-Length: 790 [17:03:18]Content-Type: application/json [17:03:18] [17:03:18]POST finish read [17:03:18]Found Content-Length = 790 [17:03:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209878", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 100.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02640", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:03:18]execute_script... [17:03: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)209878", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 100.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02640", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:03:18]POST & json_proto [17:03:18]process_json_proto [17:03:18]json parsed OK: [17:03:18]protocol is kg_v1.0 [17:03:18]action value=close_receipt [17:03:18]process_action close_receipt [17:03:18]cmd_close_receipt [17:03:18]MH_GetDate [17:03:18]Write to MH i2c: F0 00 00 25 73 87 [17:03:18]Write i2c OK [17:03:18]MH_I2C_Read... [17:03:18]Read from MH i2c: F0 [17:03:18]MH_I2C_Read... [17:03:18]Read from MH i2c: F0 09 00 [17:03:18]MH_I2C_Read... [17:03:18]Read from MH i2c: F0 09 00 25 73 00 5B 89 16 67 A0 18 CA 66 D9 [17:03:18]GetLastDocTimeStamp 1729529988 [17:03:18]current date 1729530203 [17:03:18]FM_GetShiftState [17:03:18]SAM_PROTO_GetShiftState [17:03:18]wFMCommunicate request_size=4 [17:03:18]MH_SAM_APDU [17:03:18]CAPDU: 80 13 01 00 [17:03:18]Write to MH i2c: E2 08 00 26 73 80 13 01 00 00 00 00 00 16 [17:03:18]Write i2c OK [17:03:18]MH_I2C_Read... [17:03:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:03:18]Read from MH i2c: E2 [17:03:18]MH_I2C_Read... [17:03:18]Read from MH i2c: E2 0E 00 [17:03:18]MH_I2C_Read... [17:03:18]Read from MH i2c: E2 0E 00 26 73 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 75 [17:03:18]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [17:03:18]wFMCommunicate OK [17:03:18]SAM_PROTO_GetShiftState done [17:03:18]FM_GetShiftState done [17:03:18]opened in 1729469754 [17:03:18]opened+sec_in_day 1729556154 [17:03:18]quantity*price = 0 [17:03:18]sum+1 = 1 [17:03:18]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 290 21.10.2024 17:03 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Талоны: Топливная Карта 02640 ФМ: 0000000000965340 ФД: 187826 ФПД: 187108582052468 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T170323&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187826&fm=187108582052468&tin=02508201610067®Number=0000000000100030&sum=0 [17:03:19]StoreToDocumentArchive [17:03:19]shift 460 fd 187826 [17:03:19]save to /storage/0460/doc_00187826 [17:03:19]save last doc name /storage/0460/doc_00187826 to /storage/kkm_last_doc_name [17:03:19]save OK [17:03:19]Clear old archive folders... [17:03:19]ProcessDocumentItem done err = 0, tmpTLVsize=248 [17:03:19]tlvbuf is 01314810 [17:03:19]SAM_PROTO_ClearQueue [17:03:19]wFMCommunicate request_size=4 [17:03:19]MH_SAM_APDU [17:03:19]CAPDU: 80 09 00 00 [17:03:19]Write to MH i2c: E2 08 00 33 73 80 09 00 00 00 00 00 00 18 [17:03:19]Write i2c OK [17:03:19]MH_I2C_Read... [17:03:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:03:19]Read from MH i2c: E2 [17:03:19]MH_I2C_Read... [17:03:19]Read from MH i2c: E2 03 00 [17:03:19]MH_I2C_Read... [17:03:19]Read from MH i2c: E2 03 00 33 73 00 90 00 1A [17:03:19]RAPDU: 90 00 [17:03:19]wFMCommunicate OK [17:03:19]SAM_PROTO_ClearQueue done [17:03:19]KKMCreateOFDPacket [17:03:19]OFDProtocolAddRootSTLVToBuf [17:03:19]FM_MakeSignedData [17:03:19]FM_MakeSignedData [17:03:19]SAM_PROTO_SignData [17:03:19]wFMCommunicate request_size=4 [17:03:19]MH_SAM_APDU [17:03:19]CAPDU: 80 0D 01 02 [17:03:19]Write to MH i2c: E2 08 00 34 73 80 0D 01 02 00 00 00 00 20 [17:03:19]Write i2c OK [17:03:19]MH_I2C_Read... [17:03:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:03:19]Read from MH i2c: E2 [17:03:19]MH_I2C_Read... [17:03:19]Read from MH i2c: E2 03 00 [17:03:19]MH_I2C_Read... [17:03:19]Read from MH i2c: E2 03 00 34 73 00 90 00 1B [17:03:19]RAPDU: 90 00 [17:03:19]wFMCommunicate OK [17:03:19]wFMCommunicate request_size=255 [17:03:19]MH_SAM_APDU [17:03:19]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 86 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 01 00 00 F4 03 04 00 5B 89 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 B2 DD 02 00 35 04 06 00 AA 2C 9C 91 [17:03:19]Write to MH i2c: E2 02 01 35 73 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 86 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 01 00 00 F4 03 04 00 5B 89 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 B2 DD 02 00 35 04 06 00 AA 2C 9C 91 00 00 6F [17:03:19]Write i2c OK [17:03:19]MH_I2C_Read... [17:03:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:03:20]Read from MH i2c: E2 [17:03:20]MH_I2C_Read... [17:03:20]Read from MH i2c: E2 03 00 [17:03:20]MH_I2C_Read... [17:03:20]Read from MH i2c: E2 03 00 35 73 00 90 00 1C [17:03:20]RAPDU: 90 00 [17:03:20]wFMCommunicate OK [17:03:20]wFMCommunicate request_size=7 [17:03:20]MH_SAM_APDU [17:03:20]CAPDU: 80 0D 02 02 02 52 74 [17:03:20]Write to MH i2c: E2 0A 00 36 73 80 0D 02 02 02 00 52 74 00 00 ED [17:03:20]Write i2c OK [17:03:20]MH_I2C_Read... [17:03:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:03:20]Read from MH i2c: E2 [17:03:20]MH_I2C_Read... [17:03:20]Read from MH i2c: E2 03 00 [17:03:20]MH_I2C_Read... [17:03:20]Read from MH i2c: E2 03 00 36 73 00 90 00 1D [17:03:20]RAPDU: 90 00 [17:03:20]wFMCommunicate OK [17:03:20]wFMCommunicate request_size=4 [17:03:20]MH_SAM_APDU [17:03:20]CAPDU: 80 0D 03 02 [17:03:20]Write to MH i2c: E2 08 00 37 73 80 0D 03 02 00 00 00 00 25 [17:03:20]Write i2c OK [17:03:20]MH_I2C_Read... [17:03:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:03:20]Read from MH i2c: E2 [17:03:20]MH_I2C_Read... [17:03:20]Read from MH i2c: E2 0B 00 [17:03:20]MH_I2C_Read... [17:03:20]Read from MH i2c: E2 0B 00 37 73 00 67 96 18 EA 11 DB B6 D0 90 00 97 [17:03:20]RAPDU: 67 96 18 EA 11 DB B6 D0 90 00 [17:03:20]wFMCommunicate OK [17:03:20]SAM_PROTO_SignData done [17:03:20]FM_MakeSignedData done [17:03:20]CreateOFDProtocolMessage [17:03:20]wFMCommunicate request_size=4 [17:03:20]MH_SAM_APDU [17:03:20]CAPDU: 80 11 00 00 [17:03:20]Write to MH i2c: E2 08 00 38 73 80 11 00 00 00 00 00 00 25 [17:03:20]Write i2c OK [17:03:20]MH_I2C_Read... [17:03:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:03:20]Read from MH i2c: E2 [17:03:20]MH_I2C_Read... [17:03:20]Read from MH i2c: E2 17 00 [17:03:20]MH_I2C_Read... [17:03:20]Read from MH i2c: E2 17 00 38 73 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 73 [17:03:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [17:03:20]wFMCommunicate OK [17:03:20]CreateOFDProtocolMessage done [17:03:20]OFDSenderStorePacket 187826 [17:03:20]StoreOFDPacket docnum=187826 [17:03:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 BA AF 04 01 B7 1E 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 86 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 01 00 00 F4 03 04 00 5B 89 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 B2 DD 02 00 35 04 06 00 AA 2C 9C 91 52 74 67 96 18 EA 11 DB B6 D0 [17:03:20]CheckFolder [17:03:20]dirname=/storage/ofd_packets [17:03:20]CheckFolder done [17:03:20]ProducePacketName [17:03:20]name=ofd_packets/00187826 [17:03:20]NVStorageSaveData ofd_packets/00187826 [17:03:20]File name is /storage/ofd_packets/00187826 [17:03:20]Write 298 bytes [17:03:20]NVStorageSaveData done [17:03:20]OFDSenderStorePacket done [17:03:20]KKMCreateOFDPacket done [17:03:20]NVStorageSaveData kkm_last_timestamp [17:03:20]File name is /storage/kkm_last_timestamp [17:03:20]Write 4 bytes [17:03:20]NVStorageSaveData done [17:03:20]ExternCall_PrintAddStr [17:03:20]wPrintStart [17:03:20]Write to MH i2c: 01 00 00 39 73 AC [17:03:20]Write i2c OK [17:03:20]MH_I2C_Read... [17:03:20]Read from MH i2c: 01 [17:03:20]MH_I2C_Read... [17:03:20]Read from MH i2c: 01 07 00 [17:03:20]MH_I2C_Read... [17:03:20]Read from MH i2c: 01 07 00 39 73 00 00 00 00 00 FF 0F C1 [17:03:20]RasterBufferAndPrint [17:03:20]line Счет N : (1)209878 [17:03:20]line ИНН: 02508201610067 [17:03:20]line Контрольно-Кассовый Чек [17:03:20]line ПРОДАЖА [17:03:20]line ТРК (МРК, ГНК) : 51 [17:03:20]line Товар: 2710194210 [17:03:20]line ДТ-К-5 [17:03:20]line 100.000 * 0.00 [17:03:20]line = 0.00 [17:03:20]line НДС 12% НСП 1% [17:03:20]line > о реализуемом товаре [17:03:20]line ИТОГО: 0.00 [17:03:20]line НСП 1% : 0.00 [17:03:20]line НДС 12% : 0.00 [17:03:20]line Наличными: 0.00 [17:03:20]line Безнал.: 0.00 [17:03:20]line Место: АЗС № 86 "Партнер Нефть" [17:03:20]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [17:03:20]line СНО: Общий режим [17:03:20]line Чек 290 21.10.2024 17:03 [17:03:20]line Смена: 460 ФФД: 1.0 [17:03:20]line ЗНМ: 0300000155 [17:03:20]line РНМ: 0000000000100030 [17:03:20]line Версия ККМ: 001 [17:03:20]line Талоны: Топливная Карта [17:03:20]line 02640 [17:03:20]line ФМ: 0000000000965340 [17:03:20]line ФД: 187826 [17:03:20]line ФПД: 187108582052468 [17:03:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T170323&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187826&fm=187108582052468&tin=02508201610067®Number=0000000000100030&sum=0 [17:03:20]OFD Sender: Processing packet 187826 [packets to send 1062, broken 1061] [17:03:20]ProducePacketName [17:03:20]name=ofd_packets/00187826 [17:03:20]OFD Sender: To server: pG, [17:03:20]CommunicateWithHost lk.salyk.kg:30040 [17:03:20]ConnectInit lk.salyk.kg [17:03:20]written 0, free lines is 4095 [17:03:20]Connected sock=10 [17:03:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 BA AF 04 01 B7 1E 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 86 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 01 00 00 F4 03 04 00 5B 89 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 B2 DD 02 00 35 04 06 00 AA 2C 9C 91 52 74 67 96 18 EA 11 DB B6 D0 [17:03:20]Write to MH i2c: 01 00 00 63 73 D6 [17:03:20]Write i2c OK [17:03:20]MH_I2C_Read... [17:03:20]Read from MH i2c: 01 [17:03:20]MH_I2C_Read... [17:03:20]Read from MH i2c: 01 07 00 [17:03:20]MH_I2C_Read... [17:03:20]Read from MH i2c: 01 07 00 63 73 00 00 00 00 00 86 0C 6F [17:03:20]RasterBufferAndPrint [17:03:20]line [17:03:20]line [17:03:20]line [17:03:20]line [17:03:20]line [17:03:20]written 0, free lines is 3210 [17:03:21]MH_Cut [17:03:21]Write to MH i2c: D1 01 00 6A 73 01 AF [17:03:21]Write i2c OK [17:03:21]MH_I2C_Read... [17:03:21]Read from MH i2c: D1 [17:03:21]MH_I2C_Read... [17:03:21]Read from MH i2c: D1 01 00 [17:03:21]MH_I2C_Read... [17:03:21]Read from MH i2c: D1 01 00 6A 73 00 AE [17:03:21]Write to MH i2c: 01 00 00 6B 73 DE [17:03:21]Write i2c OK [17:03:21]MH_I2C_Read... [17:03:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 07 A3 47 00 9A DD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 B2 DD 02 00 F4 03 04 00 4B 33 16 67 B6 04 01 00 00 0B 56 05 C3 03 BC 58 B6 [17:03:21]CommunicateWithHost err = 0 [17:03:21]CheckOFDResponse [17:03:21]1017 (14) - 77093643461234 [17:03:21]1041 (16) - 0000000000965340 [17:03:21]1040 (4) - 187826 [17:03:21]1012 (4) - 21.10.2024 10:56 [17:03:21]1206 (1) - 0 [17:03:21]OFD Sender: Remove packet 187826 [17:03:21]ProducePacketName [17:03:21]name=ofd_packets/00187826 [17:03:21]NVStorageDeleteData [17:03:21]OFD Sender: No OFD packet to send [17:03:22]*** Cut start [17:03:22]*** Partial cut [17:03:22]*** CUTSNS_PIN = 1 [17:03:22]*** CUTSNS_PIN = 0 [17:03:22]*** Brake cut motor [17:03:22]Read from MH i2c: 01 [17:03:22]MH_I2C_Read... [17:03:22]*** Stop cut motor [17:03:22]*** Cut end [17:03:22]Read from MH i2c: 01 07 00 [17:03:22]MH_I2C_Read... [17:03:22]Read from MH i2c: 01 07 00 6B 73 00 00 00 00 00 FF 0F F3 [17:03:22]process_action close_receipt done [17:03:22]requested_data is exist [17:03:22]produce_requested_data [17:03:22]requested_item fm.sn is exist - process it [17:03:22]wFMCommunicate request_size=4 [17:03:22]MH_SAM_APDU [17:03:22]CAPDU: 80 11 00 00 [17:03:22]Write to MH i2c: E2 08 00 6C 73 80 11 00 00 00 00 00 00 59 [17:03:22]Write i2c OK [17:03:22]MH_I2C_Read... [17:03:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:03:22]Read from MH i2c: E2 [17:03:22]MH_I2C_Read... [17:03:22]Read from MH i2c: E2 17 00 [17:03:22]MH_I2C_Read... [17:03:22]Read from MH i2c: E2 17 00 6C 73 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 A7 [17:03:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [17:03:22]wFMCommunicate OK [17:03:22]requested_item fd.num is exist - process it [17:03:22]SAM_PROTO_GetFieldsCounters [17:03:22]wFMCommunicate request_size=4 [17:03:22]MH_SAM_APDU [17:03:22]CAPDU: 80 13 00 00 [17:03:22]Write to MH i2c: E2 08 00 6D 73 80 13 00 00 00 00 00 00 5C [17:03:22]Write i2c OK [17:03:22]MH_I2C_Read... [17:03:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:03:22]Read from MH i2c: E2 [17:03:22]MH_I2C_Read... [17:03:22]Read from MH i2c: E2 62 00 [17:03:22]MH_I2C_Read... [17:03:22]Read from MH i2c: E2 62 00 6D 73 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 B2 DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 22 01 00 00 5E 04 04 00 22 01 00 00 57 04 04 00 23 01 00 00 19 04 04 00 00 00 00 00 90 00 2A [17:03:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 B2 DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 22 01 00 00 5E 04 04 00 22 01 00 00 57 04 04 00 23 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:03:22]wFMCommunicate OK [17:03:22]SAM_PROTO_GetFieldsCounters done [17:03:22]requested_item shift.num is exist - process it [17:03:22]requested_item shift.opened is exist - process it [17:03:22]req_shift_opened [17:03:23]FM_GetShiftState [17:03:23]SAM_PROTO_GetShiftState [17:03:23]wFMCommunicate request_size=4 [17:03:23]MH_SAM_APDU [17:03:23]CAPDU: 80 13 01 00 [17:03:23]Write to MH i2c: E2 08 00 6E 73 80 13 01 00 00 00 00 00 5E [17:03:23]Write i2c OK [17:03:23]MH_I2C_Read... [17:03:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:03:23]Read from MH i2c: E2 [17:03:23]MH_I2C_Read... [17:03:23]Read from MH i2c: E2 0E 00 [17:03:23]MH_I2C_Read... [17:03:23]Read from MH i2c: E2 0E 00 6E 73 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 BD [17:03:23]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [17:03:23]wFMCommunicate OK [17:03:23]SAM_PROTO_GetShiftState done [17:03:23]FM_GetShiftState done [17:03:23]req_shift_opened done [17:03:23]requested_item shift.open_date is exist - process it [17:03:23]req_shift_open_date [17:03:23]req_shift_open_date done [17:03:23]produce_requested_data done [17:03:23]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187826,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [17:03:23]process_action_free close_receipt [17:03:23]json_value_free [17:03:23]json_value_free done [17:03:23]process_json_proto returns [17:03:23]Send response to host [17:03:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187826,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [17:03:23]free response buf [17:03:23]execute_script done [17:03:23]execute_script returns [17:03:23]free content buf [17:03:23]Sock 8.Close socket [17:03:23]Sock 8.Thread stoped [17:03:26]OFD Sender: No OFD packet to send [17:03:31]OFD Sender: No OFD packet to send [17:03:36]OFD Sender: No OFD packet to send [17:03:41]OFD Sender: No OFD packet to send [17:03:46]OFD Sender: No OFD packet to send [17:03:51]OFD Sender: No OFD packet to send [17:03:56]OFD Sender: No OFD packet to send [17:04:01]OFD Sender: No OFD packet to send [17:04:06]OFD Sender: No OFD packet to send [17:04:11]OFD Sender: No OFD packet to send [17:04:16]OFD Sender: No OFD packet to send [17:04:21]OFD Sender: No OFD packet to send [17:04:27]OFD Sender: No OFD packet to send [17:04:32]OFD Sender: No OFD packet to send [17:04:37]OFD Sender: No OFD packet to send [17:04:42]OFD Sender: No OFD packet to send [17:04:47]OFD Sender: No OFD packet to send [17:04:52]OFD Sender: No OFD packet to send [17:04:57]OFD Sender: No OFD packet to send [17:05:02]OFD Sender: No OFD packet to send [17:05:07]OFD Sender: No OFD packet to send [17:05:12]OFD Sender: No OFD packet to send [17:05:17]OFD Sender: No OFD packet to send [17:05:22]OFD Sender: No OFD packet to send [17:05:27]OFD Sender: No OFD packet to send [17:05:32]OFD Sender: No OFD packet to send [17:05:37]OFD Sender: No OFD packet to send [17:05:42]OFD Sender: No OFD packet to send [17:05:47]OFD Sender: No OFD packet to send [17:05:52]OFD Sender: No OFD packet to send [17:05:57]OFD Sender: No OFD packet to send [17:06:02]OFD Sender: No OFD packet to send [17:06:07]OFD Sender: No OFD packet to send [17:06:12]OFD Sender: No OFD packet to send [17:06:17]OFD Sender: No OFD packet to send [17:06:22]OFD Sender: No OFD packet to send [17:06:27]OFD Sender: No OFD packet to send [17:06:32]OFD Sender: No OFD packet to send [17:06:37]OFD Sender: No OFD packet to send [17:06:42]OFD Sender: No OFD packet to send [17:06:47]OFD Sender: No OFD packet to send [17:06:52]OFD Sender: No OFD packet to send [17:06:57]OFD Sender: No OFD packet to send [17:07:02]OFD Sender: No OFD packet to send [17:07:07]OFD Sender: No OFD packet to send [17:07:12]OFD Sender: No OFD packet to send [17:07:17]OFD Sender: No OFD packet to send [17:07:22]OFD Sender: No OFD packet to send [17:07:27]OFD Sender: No OFD packet to send [17:07:32]OFD Sender: No OFD packet to send [17:07:37]OFD Sender: No OFD packet to send [17:07:42]OFD Sender: No OFD packet to send [17:07:47]OFD Sender: No OFD packet to send [17:07:52]OFD Sender: No OFD packet to send [17:07:57]OFD Sender: No OFD packet to send [17:08:02]OFD Sender: No OFD packet to send [17:08:07]OFD Sender: No OFD packet to send [17:08:12]OFD Sender: No OFD packet to send [17:08:18]OFD Sender: No OFD packet to send [17:08:23]OFD Sender: No OFD packet to send [17:08:28]OFD Sender: No OFD packet to send [17:08:33]OFD Sender: No OFD packet to send [17:08:38]OFD Sender: No OFD packet to send [17:08:43]OFD Sender: No OFD packet to send [17:08:48]OFD Sender: No OFD packet to send [17:08:53]OFD Sender: No OFD packet to send [17:08:58]OFD Sender: No OFD packet to send [17:09:03]OFD Sender: No OFD packet to send [17:09:08]OFD Sender: No OFD packet to send [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:04]OFD Sender: No OFD packet to send [17:12:04]accept exits with 9 [17:12:04]New connection [17:12:04]New thread 3067014500 created [17:12:04]Thread 3067157860 joined [17:12:04]Waiting for new connection... [17:12:04] Sock 9.Parse request [17:12:04]Sock 9.Check first char [17:12:04]Sock 9.First char is OK [17:12:04]request: POST /json_proto HTTP/1.0 [17:12:04]Method: POST [17:12:04]URL: /json_proto [17:12:04]Method is POST - this is cgi request [17:12:04]url: /json_proto [17:12:04]query_string will be loaded in cgi processing [17:12:04]execute_cgi json_proto POST (null) [17:12:04]execute_cgi path=json_proto method=POST [17:12:04]POST find Content-Length [17:12:04]Host: 172.17.42.131:8080 [17:12:04]Content-Length: 754 [17:12:04]Content-Type: application/json [17:12:04] [17:12:04]POST finish read [17:12:04]Found Content-Length = 754 [17:12:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209879", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 0.00, "quantity" : 40.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30145314", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:12:04]execute_script... [17:12: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)209879", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 0.00, "quantity" : 40.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30145314", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:12:04]POST & json_proto [17:12:04]process_json_proto [17:12:04]json parsed OK: [17:12:04]protocol is kg_v1.0 [17:12:04]action value=close_receipt [17:12:04]process_action close_receipt [17:12:04]cmd_close_receipt [17:12:04]MH_GetDate [17:12:04]Write to MH i2c: F0 00 00 6F 73 D1 [17:12:04]Write i2c OK [17:12:04]MH_I2C_Read... [17:12:04]Read from MH i2c: F0 [17:12:04]MH_I2C_Read... [17:12:04]Read from MH i2c: F0 09 00 [17:12:04]MH_I2C_Read... [17:12:04]Read from MH i2c: F0 09 00 6F 73 00 69 8B 16 67 A0 18 CA 66 33 [17:12:04]GetLastDocTimeStamp 1729530203 [17:12:04]current date 1729530729 [17:12:04]FM_GetShiftState [17:12:04]SAM_PROTO_GetShiftState [17:12:04]wFMCommunicate request_size=4 [17:12:04]MH_SAM_APDU [17:12:04]CAPDU: 80 13 01 00 [17:12:04]Write to MH i2c: E2 08 00 70 73 80 13 01 00 00 00 00 00 60 [17:12:04]Write i2c OK [17:12:04]MH_I2C_Read... [17:12:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:12:04]Read from MH i2c: E2 [17:12:04]MH_I2C_Read... [17:12:04]Read from MH i2c: E2 0E 00 [17:12:04]MH_I2C_Read... [17:12:04]Read from MH i2c: E2 0E 00 70 73 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 BF [17:12:04]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [17:12:04]wFMCommunicate OK [17:12:04]SAM_PROTO_GetShiftState done [17:12:04]FM_GetShiftState done [17:12:04]opened in 1729469754 [17:12:04]opened+sec_in_day 1729556154 [17:12:04]quantity*price = 0 [17:12:04]sum+1 = 1 [17:12:04]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 291 21.10.2024 17:12 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Талоны: ТК ГПНА Online 30145314 ФМ: 0000000000965340 ФД: 187827 ФПД: 62653321201933 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T171209&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187827&fm=62653321201933&tin=02508201610067®Number=0000000000100030&sum=0 [17:12:06]StoreToDocumentArchive [17:12:06]shift 460 fd 187827 [17:12:06]save to /storage/0460/doc_00187827 [17:12:06]save last doc name /storage/0460/doc_00187827 to /storage/kkm_last_doc_name [17:12:06]save OK [17:12:06]Clear old archive folders... [17:12:06]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:12:06]tlvbuf is 0130A690 [17:12:06]SAM_PROTO_ClearQueue [17:12:06]wFMCommunicate request_size=4 [17:12:06]MH_SAM_APDU [17:12:06]CAPDU: 80 09 00 00 [17:12:06]Write to MH i2c: E2 08 00 7D 73 80 09 00 00 00 00 00 00 62 [17:12:06]Write i2c OK [17:12:06]MH_I2C_Read... [17:12:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:12:06]Read from MH i2c: E2 [17:12:06]MH_I2C_Read... [17:12:06]Read from MH i2c: E2 03 00 [17:12:06]MH_I2C_Read... [17:12:06]Read from MH i2c: E2 03 00 7D 73 00 90 00 64 [17:12:06]RAPDU: 90 00 [17:12:06]wFMCommunicate OK [17:12:06]SAM_PROTO_ClearQueue done [17:12:06]KKMCreateOFDPacket [17:12:06]OFDProtocolAddRootSTLVToBuf [17:12:06]FM_MakeSignedData [17:12:06]FM_MakeSignedData [17:12:06]SAM_PROTO_SignData [17:12:06]wFMCommunicate request_size=4 [17:12:06]MH_SAM_APDU [17:12:06]CAPDU: 80 0D 01 02 [17:12:06]Write to MH i2c: E2 08 00 7E 73 80 0D 01 02 00 00 00 00 6A [17:12:06]Write i2c OK [17:12:06]MH_I2C_Read... [17:12:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:12:06]Read from MH i2c: E2 [17:12:06]MH_I2C_Read... [17:12:06]Read from MH i2c: E2 03 00 [17:12:06]MH_I2C_Read... [17:12:06]Read from MH i2c: E2 03 00 7E 73 00 90 00 65 [17:12:06]RAPDU: 90 00 [17:12:06]wFMCommunicate OK [17:12:06]wFMCommunicate request_size=255 [17:12:06]MH_SAM_APDU [17:12: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 40 9C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 01 00 00 F4 03 04 00 69 8B 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 B3 DD 02 00 35 04 06 00 38 [17:12:06]Write to MH i2c: E2 02 01 7F 73 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 40 9C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 01 00 00 F4 03 04 00 69 8B 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 B3 DD 02 00 35 04 06 00 38 00 00 64 [17:12:06]Write i2c OK [17:12:06]MH_I2C_Read... [17:12:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:12:06]Read from MH i2c: E2 [17:12:06]MH_I2C_Read... [17:12:06]Read from MH i2c: E2 03 00 [17:12:06]MH_I2C_Read... [17:12:06]Read from MH i2c: E2 03 00 7F 73 00 90 00 66 [17:12:06]RAPDU: 90 00 [17:12:06]wFMCommunicate OK [17:12:06]wFMCommunicate request_size=10 [17:12:06]MH_SAM_APDU [17:12:06]CAPDU: 80 0D 02 02 05 FB 9C F4 49 0D [17:12:06]Write to MH i2c: E2 0D 00 80 73 80 0D 02 02 05 00 FB 9C F4 49 0D 00 00 58 [17:12:06]Write i2c OK [17:12:06]MH_I2C_Read... [17:12:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:12:06]Read from MH i2c: E2 [17:12:06]MH_I2C_Read... [17:12:06]Read from MH i2c: E2 03 00 [17:12:06]MH_I2C_Read... [17:12:06]Read from MH i2c: E2 03 00 80 73 00 90 00 67 [17:12:06]RAPDU: 90 00 [17:12:06]wFMCommunicate OK [17:12:06]wFMCommunicate request_size=4 [17:12:06]MH_SAM_APDU [17:12:06]CAPDU: 80 0D 03 02 [17:12:06]Write to MH i2c: E2 08 00 81 73 80 0D 03 02 00 00 00 00 6F [17:12:06]Write i2c OK [17:12:06]MH_I2C_Read... [17:12:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:12:06]Read from MH i2c: E2 [17:12:06]MH_I2C_Read... [17:12:06]Read from MH i2c: E2 0B 00 [17:12:06]MH_I2C_Read... [17:12:06]Read from MH i2c: E2 0B 00 81 73 00 CC D7 27 7B 25 61 F3 13 90 00 41 [17:12:06]RAPDU: CC D7 27 7B 25 61 F3 13 90 00 [17:12:06]wFMCommunicate OK [17:12:06]SAM_PROTO_SignData done [17:12:06]FM_MakeSignedData done [17:12:06]CreateOFDProtocolMessage [17:12:06]wFMCommunicate request_size=4 [17:12:06]MH_SAM_APDU [17:12:06]CAPDU: 80 11 00 00 [17:12:06]Write to MH i2c: E2 08 00 82 73 80 11 00 00 00 00 00 00 6F [17:12:06]Write i2c OK [17:12:06]MH_I2C_Read... [17:12:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:12:06]Read from MH i2c: E2 [17:12:06]MH_I2C_Read... [17:12:06]Read from MH i2c: E2 17 00 [17:12:06]MH_I2C_Read... [17:12:06]Read from MH i2c: E2 17 00 82 73 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 BD [17:12:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [17:12:06]wFMCommunicate OK [17:12:06]CreateOFDProtocolMessage done [17:12:06]OFDSenderStorePacket 187827 [17:12:06]StoreOFDPacket docnum=187827 [17:12:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 B8 54 07 01 4E 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 40 9C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 01 00 00 F4 03 04 00 69 8B 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 B3 DD 02 00 35 04 06 00 38 FB 9C F4 49 0D CC D7 27 7B 25 61 F3 13 [17:12:06]CheckFolder [17:12:06]dirname=/storage/ofd_packets [17:12:06]CheckFolder done [17:12:06]ProducePacketName [17:12:06]name=ofd_packets/00187827 [17:12:06]NVStorageSaveData ofd_packets/00187827 [17:12:06]File name is /storage/ofd_packets/00187827 [17:12:06]Write 301 bytes [17:12:06]NVStorageSaveData done [17:12:06]OFDSenderStorePacket done [17:12:06]KKMCreateOFDPacket done [17:12:06]NVStorageSaveData kkm_last_timestamp [17:12:06]File name is /storage/kkm_last_timestamp [17:12:06]Write 4 bytes [17:12:06]NVStorageSaveData done [17:12:06]ExternCall_PrintAddStr [17:12:06]wPrintStart [17:12:06]Write to MH i2c: 01 00 00 83 73 F6 [17:12:06]Write i2c OK [17:12:06]MH_I2C_Read... [17:12:06]Read from MH i2c: 01 [17:12:06]MH_I2C_Read... [17:12:06]Read from MH i2c: 01 07 00 [17:12:06]MH_I2C_Read... [17:12:06]Read from MH i2c: 01 07 00 83 73 00 00 00 00 00 FF 0F 0B [17:12:06]RasterBufferAndPrint [17:12:06]line Счет N : (1)209879 [17:12:06]line ИНН: 02508201610067 [17:12:06]line Контрольно-Кассовый Чек [17:12:06]line ПРОДАЖА [17:12:06]line ТРК (МРК, ГНК) : 33 [17:12:06]line Товар: 2710124500 [17:12:06]line Аи-95-К-3 [17:12:06]line 40.000 * 0.00 [17:12:06]line = 0.00 [17:12:06]line НДС 12% НСП 1% [17:12:06]line > о реализуемом товаре [17:12:06]line ИТОГО: 0.00 [17:12:06]line НСП 1% : 0.00 [17:12:06]line НДС 12% : 0.00 [17:12:06]line Наличными: 0.00 [17:12:06]line Безнал.: 0.00 [17:12:06]line Место: АЗС № 86 "Партнер Нефть" [17:12:06]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [17:12:06]line СНО: Общий режим [17:12:06]line Чек 291 21.10.2024 17:12 [17:12:06]line Смена: 460 ФФД: 1.0 [17:12:06]line ЗНМ: 0300000155 [17:12:06]line РНМ: 0000000000100030 [17:12:06]line Версия ККМ: 001 [17:12:06]line Талоны: ТК ГПНА Online [17:12:06]line 30145314 [17:12:06]line ФМ: 0000000000965340 [17:12:06]line ФД: 187827 [17:12:06]line ФПД: 62653321201933 [17:12:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T171209&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187827&fm=62653321201933&tin=02508201610067®Number=0000000000100030&sum=0 [17:12:06]written 0, free lines is 4095 [17:12:06]OFD Sender: Processing packet 187827 [packets to send 1062, broken 1061] [17:12:06]ProducePacketName [17:12:06]name=ofd_packets/00187827 [17:12:06]OFD Sender: To server: pG, [17:12:06]CommunicateWithHost lk.salyk.kg:30040 [17:12:06]ConnectInit lk.salyk.kg [17:12:06]Connected sock=10 [17:12:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 B8 54 07 01 4E 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 40 9C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 01 00 00 F4 03 04 00 69 8B 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 B3 DD 02 00 35 04 06 00 38 FB 9C F4 49 0D CC D7 27 7B 25 61 F3 13 [17:12:07]Write to MH i2c: 01 00 00 AD 73 20 [17:12:07]Write i2c OK [17:12:07]MH_I2C_Read... [17:12:07]Read from MH i2c: 01 [17:12:07]MH_I2C_Read... [17:12:07]Read from MH i2c: 01 07 00 [17:12:07]MH_I2C_Read... [17:12:07]Read from MH i2c: 01 07 00 AD 73 00 00 00 00 00 7B 0C AE [17:12:07]RasterBufferAndPrint [17:12:07]line [17:12:07]line [17:12:07]line [17:12:07]line [17:12:07]line [17:12:07]written 0, free lines is 3199 [17:12:07]MH_Cut [17:12:07]Write to MH i2c: D1 01 00 B4 73 01 F9 [17:12:07]Write i2c OK [17:12:07]MH_I2C_Read... [17:12:07]Read from MH i2c: D1 [17:12:07]MH_I2C_Read... [17:12:07]Read from MH i2c: D1 01 00 [17:12:07]MH_I2C_Read... [17:12:07]Read from MH i2c: D1 01 00 B4 73 00 F8 [17:12:07]Write to MH i2c: 01 00 00 B5 73 28 [17:12:07]Write i2c OK [17:12:07]MH_I2C_Read... [17:12:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 13 96 47 00 B1 06 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 B3 DD 02 00 F4 03 04 00 59 35 16 67 B6 04 01 00 00 A9 C2 68 BB 61 84 1B E8 [17:12:07]CommunicateWithHost err = 0 [17:12:07]CheckOFDResponse [17:12:07]1017 (14) - 77093643461234 [17:12:07]1041 (16) - 0000000000965340 [17:12:07]1040 (4) - 187827 [17:12:07]1012 (4) - 21.10.2024 11:04 [17:12:07]1206 (1) - 0 [17:12:07]OFD Sender: Remove packet 187827 [17:12:07]ProducePacketName [17:12:07]name=ofd_packets/00187827 [17:12:07]NVStorageDeleteData [17:12:07]OFD Sender: No OFD packet to send [17:12:08]*** Cut start [17:12:08]*** Partial cut [17:12:08]*** CUTSNS_PIN = 1 [17:12:08]*** CUTSNS_PIN = 0 [17:12:08]*** Brake cut motor [17:12:08]Read from MH i2c: 01 [17:12:08]MH_I2C_Read... [17:12:08]*** Stop cut motor [17:12:08]*** Cut end [17:12:08]Read from MH i2c: 01 07 00 [17:12:08]MH_I2C_Read... [17:12:08]Read from MH i2c: 01 07 00 B5 73 00 00 00 00 00 FF 0F 3D [17:12:08]process_action close_receipt done [17:12:08]requested_data is exist [17:12:08]produce_requested_data [17:12:08]requested_item fm.sn is exist - process it [17:12:08]wFMCommunicate request_size=4 [17:12:08]MH_SAM_APDU [17:12:08]CAPDU: 80 11 00 00 [17:12:08]Write to MH i2c: E2 08 00 B6 73 80 11 00 00 00 00 00 00 A3 [17:12:08]Write i2c OK [17:12:08]MH_I2C_Read... [17:12:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:12:08]Read from MH i2c: E2 [17:12:08]MH_I2C_Read... [17:12:08]Read from MH i2c: E2 17 00 [17:12:08]MH_I2C_Read... [17:12:08]Read from MH i2c: E2 17 00 B6 73 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 F1 [17:12:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [17:12:08]wFMCommunicate OK [17:12:08]requested_item fd.num is exist - process it [17:12:08]SAM_PROTO_GetFieldsCounters [17:12:08]wFMCommunicate request_size=4 [17:12:08]MH_SAM_APDU [17:12:08]CAPDU: 80 13 00 00 [17:12:08]Write to MH i2c: E2 08 00 B7 73 80 13 00 00 00 00 00 00 A6 [17:12:08]Write i2c OK [17:12:08]MH_I2C_Read... [17:12:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:12:09]Read from MH i2c: E2 [17:12:09]MH_I2C_Read... [17:12:09]Read from MH i2c: E2 62 00 [17:12:09]MH_I2C_Read... [17:12:09]Read from MH i2c: E2 62 00 B7 73 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 B3 DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 23 01 00 00 5E 04 04 00 23 01 00 00 57 04 04 00 24 01 00 00 19 04 04 00 00 00 00 00 90 00 78 [17:12:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 B3 DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 23 01 00 00 5E 04 04 00 23 01 00 00 57 04 04 00 24 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:12:09]wFMCommunicate OK [17:12:09]SAM_PROTO_GetFieldsCounters done [17:12:09]requested_item shift.num is exist - process it [17:12:09]requested_item shift.opened is exist - process it [17:12:09]req_shift_opened [17:12:09]FM_GetShiftState [17:12:09]SAM_PROTO_GetShiftState [17:12:09]wFMCommunicate request_size=4 [17:12:09]MH_SAM_APDU [17:12:09]CAPDU: 80 13 01 00 [17:12:09]Write to MH i2c: E2 08 00 B8 73 80 13 01 00 00 00 00 00 A8 [17:12:09]Write i2c OK [17:12:09]MH_I2C_Read... [17:12:09]Read from MH i2c: E2 [17:12:09]MH_I2C_Read... [17:12:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:12:09]Read from MH i2c: E2 0E 00 [17:12:09]MH_I2C_Read... [17:12:09]Read from MH i2c: E2 0E 00 B8 73 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 07 [17:12:09]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [17:12:09]wFMCommunicate OK [17:12:09]SAM_PROTO_GetShiftState done [17:12:09]FM_GetShiftState done [17:12:09]req_shift_opened done [17:12:09]requested_item shift.open_date is exist - process it [17:12:09]req_shift_open_date [17:12:09]req_shift_open_date done [17:12:09]produce_requested_data done [17:12:09]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187827,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [17:12:09]process_action_free close_receipt [17:12:09]json_value_free [17:12:09]json_value_free done [17:12:09]process_json_proto returns [17:12:09]Send response to host [17:12:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187827,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [17:12:09]free response buf [17:12:09]execute_script done [17:12:09]execute_script returns [17:12:09]free content buf [17:12:09]Sock 9.Close socket [17:12:09]Sock 9.Thread stoped [17:12:12]OFD Sender: No OFD packet to send [17:12:17]OFD Sender: No OFD packet to send [17:12:22]OFD Sender: No OFD packet to send [17:12:27]OFD Sender: No OFD packet to send [17:12:32]OFD Sender: No OFD packet to send [17:12:37]OFD Sender: No OFD packet to send [17:12:42]OFD Sender: No OFD packet to send [17:12: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:09]accept exits with 8 [17:13:09]New connection [17:13:09]New thread 3067157860 created [17:13:09]Thread 3067014500 joined [17:13:09]Waiting for new connection... [17:13:09] Sock 8.Parse request [17:13:09]Sock 8.Check first char [17:13:09]Sock 8.First char is OK [17:13:09]request: POST /json_proto HTTP/1.0 [17:13:09]Method: POST [17:13:09]URL: /json_proto [17:13:09]Method is POST - this is cgi request [17:13:09]url: /json_proto [17:13:09]query_string will be loaded in cgi processing [17:13:09]execute_cgi json_proto POST (null) [17:13:09]execute_cgi path=json_proto method=POST [17:13:09]POST find Content-Length [17:13:09]Host: 172.17.42.131:8080 [17:13:09]Content-Length: 819 [17:13:09]Content-Type: application/json [17:13:09] [17:13:09]POST finish read [17:13:09]Found Content-Length = 819 [17:13:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209880", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 27.160, "sum" : 1817.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1817.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:13:09]execute_script... [17:13: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)209880", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 27.160, "sum" : 1817.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1817.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:13:09]POST & json_proto [17:13:09]process_json_proto [17:13:09]json parsed OK: [17:13:09]protocol is kg_v1.0 [17:13:09]action value=close_receipt [17:13:09]process_action close_receipt [17:13:09]cmd_close_receipt [17:13:09]MH_GetDate [17:13:09]Write to MH i2c: F0 00 00 B9 73 1B [17:13:09]Write i2c OK [17:13:09]MH_I2C_Read... [17:13:09]Read from MH i2c: F0 [17:13:09]MH_I2C_Read... [17:13:09]Read from MH i2c: F0 09 00 [17:13:09]MH_I2C_Read... [17:13:09]Read from MH i2c: F0 09 00 B9 73 00 AA 8B 16 67 A0 18 CA 66 BE [17:13:09]GetLastDocTimeStamp 1729530729 [17:13:09]current date 1729530794 [17:13:09]FM_GetShiftState [17:13:09]SAM_PROTO_GetShiftState [17:13:09]wFMCommunicate request_size=4 [17:13:09]MH_SAM_APDU [17:13:09]CAPDU: 80 13 01 00 [17:13:09]Write to MH i2c: E2 08 00 BA 73 80 13 01 00 00 00 00 00 AA [17:13:09]Write i2c OK [17:13:09]MH_I2C_Read... [17:13:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:13:09]Read from MH i2c: E2 [17:13:09]MH_I2C_Read... [17:13:09]Read from MH i2c: E2 0E 00 [17:13:09]MH_I2C_Read... [17:13:09]Read from MH i2c: E2 0E 00 BA 73 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 09 [17:13:09]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [17:13:09]wFMCommunicate OK [17:13:09]SAM_PROTO_GetShiftState done [17:13:09]FM_GetShiftState done [17:13:09]opened in 1729469754 [17:13:09]opened+sec_in_day 1729556154 [17:13:09]quantity*price = 181700 [17:13:09]sum+1 = 181701 [17:13:09]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1817.00 НСП 1% : 16.08 НДС 12% : 192.96 Наличными: 0.00 Безнал.: 1817.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 292 21.10.2024 17:13 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000965340 ФД: 187828 ФПД: 189539600697526 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T171314&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187828&fm=189539600697526&tin=02508201610067®Number=0000000000100030&sum=181700 [17:13:10]StoreToDocumentArchive [17:13:10]shift 460 fd 187828 [17:13:10]save to /storage/0460/doc_00187828 [17:13:10]save last doc name /storage/0460/doc_00187828 to /storage/kkm_last_doc_name [17:13:10]save OK [17:13:10]Clear old archive folders... [17:13:10]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:13:10]tlvbuf is 012930A0 [17:13:10]SAM_PROTO_ClearQueue [17:13:10]wFMCommunicate request_size=4 [17:13:10]MH_SAM_APDU [17:13:10]CAPDU: 80 09 00 00 [17:13:10]Write to MH i2c: E2 08 00 C7 73 80 09 00 00 00 00 00 00 AC [17:13:10]Write i2c OK [17:13:10]MH_I2C_Read... [17:13:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:13:10]Read from MH i2c: E2 [17:13:10]MH_I2C_Read... [17:13:10]Read from MH i2c: E2 03 00 [17:13:10]MH_I2C_Read... [17:13:10]Read from MH i2c: E2 03 00 C7 73 00 90 00 AE [17:13:10]RAPDU: 90 00 [17:13:10]wFMCommunicate OK [17:13:10]SAM_PROTO_ClearQueue done [17:13:10]KKMCreateOFDPacket [17:13:10]OFDProtocolAddRootSTLVToBuf [17:13:10]FM_MakeSignedData [17:13:10]FM_MakeSignedData [17:13:10]SAM_PROTO_SignData [17:13:10]wFMCommunicate request_size=4 [17:13:10]MH_SAM_APDU [17:13:10]CAPDU: 80 0D 01 02 [17:13:10]Write to MH i2c: E2 08 00 C8 73 80 0D 01 02 00 00 00 00 B4 [17:13:10]Write i2c OK [17:13:10]MH_I2C_Read... [17:13:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:13:10]Read from MH i2c: E2 [17:13:10]MH_I2C_Read... [17:13:10]Read from MH i2c: E2 03 00 [17:13:10]MH_I2C_Read... [17:13:10]Read from MH i2c: E2 03 00 C8 73 00 90 00 AF [17:13:10]RAPDU: 90 00 [17:13:10]wFMCommunicate OK [17:13:10]wFMCommunicate request_size=255 [17:13:10]MH_SAM_APDU [17:13: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 33 FF 03 08 00 03 18 6A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 C4 C5 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 C5 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 48 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 60 4B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C4 C5 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 01 00 00 F4 03 04 00 AA 8B 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 B4 DD 02 00 35 04 06 00 AC [17:13:10]Write to MH i2c: E2 02 01 C9 73 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 18 6A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 C4 C5 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 C5 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 48 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 60 4B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C4 C5 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 01 00 00 F4 03 04 00 AA 8B 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 B4 DD 02 00 35 04 06 00 AC 00 00 DD [17:13:10]Write i2c OK [17:13:10]MH_I2C_Read... [17:13:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:13:10]Read from MH i2c: E2 [17:13:10]MH_I2C_Read... [17:13:10]Read from MH i2c: E2 03 00 [17:13:10]MH_I2C_Read... [17:13:10]Read from MH i2c: E2 03 00 C9 73 00 90 00 B0 [17:13:10]RAPDU: 90 00 [17:13:10]wFMCommunicate OK [17:13:10]wFMCommunicate request_size=10 [17:13:10]MH_SAM_APDU [17:13:10]CAPDU: 80 0D 02 02 05 62 A0 92 08 B6 [17:13:10]Write to MH i2c: E2 0D 00 CA 73 80 0D 02 02 05 00 62 A0 92 08 B6 00 00 13 [17:13:10]Write i2c OK [17:13:10]MH_I2C_Read... [17:13:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:13:10]Read from MH i2c: E2 [17:13:10]MH_I2C_Read... [17:13:10]Read from MH i2c: E2 03 00 [17:13:10]MH_I2C_Read... [17:13:10]Read from MH i2c: E2 03 00 CA 73 00 90 00 B1 [17:13:10]RAPDU: 90 00 [17:13:10]wFMCommunicate OK [17:13:10]wFMCommunicate request_size=4 [17:13:10]MH_SAM_APDU [17:13:10]CAPDU: 80 0D 03 02 [17:13:10]Write to MH i2c: E2 08 00 CB 73 80 0D 03 02 00 00 00 00 B9 [17:13:10]Write i2c OK [17:13:10]MH_I2C_Read... [17:13:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:13:10]Read from MH i2c: E2 [17:13:10]MH_I2C_Read... [17:13:10]Read from MH i2c: E2 0B 00 [17:13:10]MH_I2C_Read... [17:13:10]Read from MH i2c: E2 0B 00 CB 73 00 B1 9F 0C 55 C2 86 D4 F6 90 00 7D [17:13:10]RAPDU: B1 9F 0C 55 C2 86 D4 F6 90 00 [17:13:10]wFMCommunicate OK [17:13:10]SAM_PROTO_SignData done [17:13:10]FM_MakeSignedData done [17:13:10]CreateOFDProtocolMessage [17:13:10]wFMCommunicate request_size=4 [17:13:10]MH_SAM_APDU [17:13:10]CAPDU: 80 11 00 00 [17:13:10]Write to MH i2c: E2 08 00 CC 73 80 11 00 00 00 00 00 00 B9 [17:13:10]Write i2c OK [17:13:10]MH_I2C_Read... [17:13:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:13:10]Read from MH i2c: E2 [17:13:10]MH_I2C_Read... [17:13:10]Read from MH i2c: E2 17 00 [17:13:10]MH_I2C_Read... [17:13:10]Read from MH i2c: E2 17 00 CC 73 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 07 [17:13:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [17:13:10]wFMCommunicate OK [17:13:10]CreateOFDProtocolMessage done [17:13:10]OFDSenderStorePacket 187828 [17:13:10]StoreOFDPacket docnum=187828 [17:13:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 78 51 07 01 3E D3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 18 6A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 C4 C5 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 C5 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 48 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 60 4B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C4 C5 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 01 00 00 F4 03 04 00 AA 8B 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 B4 DD 02 00 35 04 06 00 AC 62 A0 92 08 B6 B1 9F 0C 55 C2 86 D4 F6 [17:13:10]CheckFolder [17:13:10]dirname=/storage/ofd_packets [17:13:10]CheckFolder done [17:13:10]ProducePacketName [17:13:10]name=ofd_packets/00187828 [17:13:10]NVStorageSaveData ofd_packets/00187828 [17:13:10]File name is /storage/ofd_packets/00187828 [17:13:10]Write 301 bytes [17:13:10]NVStorageSaveData done [17:13:10]OFDSenderStorePacket done [17:13:10]KKMCreateOFDPacket done [17:13:10]NVStorageSaveData kkm_last_timestamp [17:13:10]File name is /storage/kkm_last_timestamp [17:13:10]Write 4 bytes [17:13:10]NVStorageSaveData done [17:13:10]ExternCall_PrintAddStr [17:13:10]wPrintStart [17:13:10]Write to MH i2c: 01 00 00 CD 73 40 [17:13:10]Write i2c OK [17:13:10]MH_I2C_Read... [17:13:10]Read from MH i2c: 01 [17:13:10]MH_I2C_Read... [17:13:10]Read from MH i2c: 01 07 00 [17:13:10]MH_I2C_Read... [17:13:10]Read from MH i2c: 01 07 00 CD 73 00 00 00 00 00 FF 0F 55 [17:13:10]RasterBufferAndPrint [17:13:10]line Счет N : (1)209880 [17:13:10]line ИНН: 02508201610067 [17:13:10]line Контрольно-Кассовый Чек [17:13:10]line ПРОДАЖА [17:13:10]line ТРК (МРК, ГНК) : 12 [17:13:10]line Товар: 2710124130 [17:13:10]line Аи-92-К-3 [17:13:10]line 27.160 * 66.90 [17:13:10]line = 1817.00 [17:13:10]line НДС 12% НСП 1% [17:13:10]line > о реализуемом товаре [17:13:10]line ИТОГО: 1817.00 [17:13:10]line НСП 1% : 16.08 [17:13:10]line НДС 12% : 192.96 [17:13:10]line Наличными: 0.00 [17:13:10]line Безнал.: 1817.00 [17:13:10]line Место: АЗС № 86 "Партнер Нефть" [17:13:10]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [17:13:10]line СНО: Общий режим [17:13:10]line Чек 292 21.10.2024 17:13 [17:13:10]line Смена: 460 ФФД: 1.0 [17:13:10]line ЗНМ: 0300000155 [17:13:10]line РНМ: 0000000000100030 [17:13:10]line Версия ККМ: 001 [17:13:10]line Платежная система: Бакай Банк [17:13:10]line ФМ: 0000000000965340 [17:13:10]line ФД: 187828 [17:13:10]line ФПД: 189539600697526 [17:13:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T171314&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187828&fm=189539600697526&tin=02508201610067®Number=0000000000100030&sum=181700 [17:13:10]written 0, free lines is 4095 [17:13:10]OFD Sender: Processing packet 187828 [packets to send 1062, broken 1061] [17:13:10]ProducePacketName [17:13:10]name=ofd_packets/00187828 [17:13:10]OFD Sender: To server: pG, [17:13:10]CommunicateWithHost lk.salyk.kg:30040 [17:13:10]ConnectInit lk.salyk.kg [17:13:11]Connected sock=10 [17:13:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 78 51 07 01 3E D3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 18 6A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 C4 C5 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 C5 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 48 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 60 4B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C4 C5 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 01 00 00 F4 03 04 00 AA 8B 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 B4 DD 02 00 35 04 06 00 AC 62 A0 92 08 B6 B1 9F 0C 55 C2 86 D4 F6 [17:13:11]Write to MH i2c: 01 00 00 F7 73 6A [17:13:11]Write i2c OK [17:13:11]MH_I2C_Read... [17:13:11]Read from MH i2c: 01 [17:13:11]MH_I2C_Read... [17:13:11]Read from MH i2c: 01 07 00 [17:13:11]MH_I2C_Read... [17:13:11]Read from MH i2c: 01 07 00 F7 73 00 00 00 00 00 7D 0C FA [17:13:11]RasterBufferAndPrint [17:13:11]line [17:13:11]line [17:13:11]line [17:13:11]line [17:13:11]line [17:13:11]written 0, free lines is 3200 [17:13:11]MH_Cut [17:13:11]Write to MH i2c: D1 01 00 FE 73 01 43 [17:13:11]Write i2c OK [17:13:11]MH_I2C_Read... [17:13:11]Read from MH i2c: D1 [17:13:11]MH_I2C_Read... [17:13:11]Read from MH i2c: D1 01 00 [17:13:11]MH_I2C_Read... [17:13:11]Read from MH i2c: D1 01 00 FE 73 00 42 [17:13:11]Write to MH i2c: 01 00 00 FF 73 72 [17:13:11]Write i2c OK [17:13:11]MH_I2C_Read... [17:13:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 2D 16 47 00 BA 4D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 B4 DD 02 00 F4 03 04 00 99 35 16 67 B6 04 01 00 00 C0 B8 DB BB F3 FC DC 21 [17:13:11]CommunicateWithHost err = 0 [17:13:11]CheckOFDResponse [17:13:11]1017 (14) - 77093643461234 [17:13:11]1041 (16) - 0000000000965340 [17:13:11]1040 (4) - 187828 [17:13:11]1012 (4) - 21.10.2024 11:06 [17:13:11]1206 (1) - 0 [17:13:11]OFD Sender: Remove packet 187828 [17:13:11]ProducePacketName [17:13:11]name=ofd_packets/00187828 [17:13:11]NVStorageDeleteData [17:13:12]OFD Sender: No OFD packet to send [17:13:12]*** Cut start [17:13:12]*** Partial cut [17:13:12]*** CUTSNS_PIN = 1 [17:13:12]*** CUTSNS_PIN = 0 [17:13:12]*** Brake cut motor [17:13:13]Read from MH i2c: 01 [17:13:13]MH_I2C_Read... [17:13:13]*** Stop cut motor [17:13:13]*** Cut end [17:13:13]Read from MH i2c: 01 07 00 [17:13:13]MH_I2C_Read... [17:13:13]Read from MH i2c: 01 07 00 FF 73 00 00 00 00 00 FF 0F 87 [17:13:13]process_action close_receipt done [17:13:13]requested_data is exist [17:13:13]produce_requested_data [17:13:13]requested_item fm.sn is exist - process it [17:13:13]wFMCommunicate request_size=4 [17:13:13]MH_SAM_APDU [17:13:13]CAPDU: 80 11 00 00 [17:13:13]Write to MH i2c: E2 08 00 00 74 80 11 00 00 00 00 00 00 EE [17:13:13]Write i2c OK [17:13:13]MH_I2C_Read... [17:13:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:13:13]Read from MH i2c: E2 [17:13:13]MH_I2C_Read... [17:13:13]Read from MH i2c: E2 17 00 [17:13:13]MH_I2C_Read... [17:13:13]Read from MH i2c: E2 17 00 00 74 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 3C [17:13:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [17:13:13]wFMCommunicate OK [17:13:13]requested_item fd.num is exist - process it [17:13:13]SAM_PROTO_GetFieldsCounters [17:13:13]wFMCommunicate request_size=4 [17:13:13]MH_SAM_APDU [17:13:13]CAPDU: 80 13 00 00 [17:13:13]Write to MH i2c: E2 08 00 01 74 80 13 00 00 00 00 00 00 F1 [17:13:13]Write i2c OK [17:13:13]MH_I2C_Read... [17:13:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:13:13]Read from MH i2c: E2 [17:13:13]MH_I2C_Read... [17:13:13]Read from MH i2c: E2 62 00 [17:13:13]MH_I2C_Read... [17:13:13]Read from MH i2c: E2 62 00 01 74 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 B4 DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 24 01 00 00 5E 04 04 00 24 01 00 00 57 04 04 00 25 01 00 00 19 04 04 00 00 00 00 00 90 00 C7 [17:13:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 B4 DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 24 01 00 00 5E 04 04 00 24 01 00 00 57 04 04 00 25 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:13:13]wFMCommunicate OK [17:13:13]SAM_PROTO_GetFieldsCounters done [17:13:13]requested_item shift.num is exist - process it [17:13:13]requested_item shift.opened is exist - process it [17:13:13]req_shift_opened [17:13:13]FM_GetShiftState [17:13:13]SAM_PROTO_GetShiftState [17:13:13]wFMCommunicate request_size=4 [17:13:13]MH_SAM_APDU [17:13:13]CAPDU: 80 13 01 00 [17:13:13]Write to MH i2c: E2 08 00 02 74 80 13 01 00 00 00 00 00 F3 [17:13:13]Write i2c OK [17:13:13]MH_I2C_Read... [17:13:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:13:13]Read from MH i2c: E2 [17:13:13]MH_I2C_Read... [17:13:13]Read from MH i2c: E2 0E 00 [17:13:13]MH_I2C_Read... [17:13:13]Read from MH i2c: E2 0E 00 02 74 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 52 [17:13:13]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [17:13:13]wFMCommunicate OK [17:13:13]SAM_PROTO_GetShiftState done [17:13:13]FM_GetShiftState done [17:13:13]req_shift_opened done [17:13:13]requested_item shift.open_date is exist - process it [17:13:13]req_shift_open_date [17:13:13]req_shift_open_date done [17:13:13]produce_requested_data done [17:13:13]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187828,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [17:13:13]process_action_free close_receipt [17:13:13]json_value_free [17:13:13]json_value_free done [17:13:13]process_json_proto returns [17:13:13]Send response to host [17:13:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187828,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [17:13:13]free response buf [17:13:13]execute_script done [17:13:13]execute_script returns [17:13:13]free content buf [17:13:13]Sock 8.Close socket [17:13:13]Sock 8.Thread stoped [17:13:17]OFD Sender: No OFD packet to send [17:13:22]OFD Sender: No OFD packet to send [17:13:27]OFD Sender: No OFD packet to send [17:13:32]OFD Sender: No OFD packet to send [17:13:37]OFD Sender: No OFD packet to send [17:13:42]OFD Sender: No OFD packet to send [17:13:47]OFD Sender: No OFD packet to send [17:13:52]OFD Sender: No OFD packet to send [17:13:57]OFD Sender: No OFD packet to send [17:14:02]OFD Sender: No OFD packet to send [17:14:07]OFD Sender: No OFD packet to send [17:14:08]accept exits with 9 [17:14:08]New connection [17:14:08]New thread 3067014500 created [17:14:08]Thread 3067157860 joined [17:14:08]Waiting for new connection... [17:14:08] Sock 9.Parse request [17:14:08]Sock 9.Check first char [17:14:08]Sock 9.First char is OK [17:14:08]request: POST /json_proto HTTP/1.0 [17:14:08]Method: POST [17:14:08]URL: /json_proto [17:14:08]Method is POST - this is cgi request [17:14:08]url: /json_proto [17:14:08]query_string will be loaded in cgi processing [17:14:08]execute_cgi json_proto POST (null) [17:14:08]execute_cgi path=json_proto method=POST [17:14:08]POST find Content-Length [17:14:08]Host: 172.17.42.131:8080 [17:14:08]Content-Length: 682 [17:14:08]Content-Type: application/json [17:14:08] [17:14:08]POST finish read [17:14:08]Found Content-Length = 682 [17:14:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209881", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:14:08]execute_script... [17:14: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)209881", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:14:08]POST & json_proto [17:14:08]process_json_proto [17:14:08]json parsed OK: [17:14:08]protocol is kg_v1.0 [17:14:08]action value=close_receipt [17:14:08]process_action close_receipt [17:14:08]cmd_close_receipt [17:14:08]MH_GetDate [17:14:08]Write to MH i2c: F0 00 00 03 74 66 [17:14:08]Write i2c OK [17:14:08]MH_I2C_Read... [17:14:08]Read from MH i2c: F0 [17:14:08]MH_I2C_Read... [17:14:08]Read from MH i2c: F0 09 00 [17:14:08]MH_I2C_Read... [17:14:08]Read from MH i2c: F0 09 00 03 74 00 E5 8B 16 67 A0 18 CA 66 44 [17:14:08]GetLastDocTimeStamp 1729530794 [17:14:08]current date 1729530853 [17:14:08]FM_GetShiftState [17:14:08]SAM_PROTO_GetShiftState [17:14:08]wFMCommunicate request_size=4 [17:14:08]MH_SAM_APDU [17:14:08]CAPDU: 80 13 01 00 [17:14:08]Write to MH i2c: E2 08 00 04 74 80 13 01 00 00 00 00 00 F5 [17:14:08]Write i2c OK [17:14:08]MH_I2C_Read... [17:14:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:14:08]Read from MH i2c: E2 [17:14:08]MH_I2C_Read... [17:14:08]Read from MH i2c: E2 0E 00 [17:14:08]MH_I2C_Read... [17:14:08]Read from MH i2c: E2 0E 00 04 74 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 54 [17:14:08]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [17:14:08]wFMCommunicate OK [17:14:08]SAM_PROTO_GetShiftState done [17:14:08]FM_GetShiftState done [17:14:08]opened in 1729469754 [17:14:08]opened+sec_in_day 1729556154 [17:14:08]quantity*price = 100021 [17:14:08]sum+1 = 100023 [17:14:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 293 21.10.2024 17:14 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 187829 ФПД: 227689398783838 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T171413&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187829&fm=227689398783838&tin=02508201610067®Number=0000000000100030&sum=100000 [17:14:09]StoreToDocumentArchive [17:14:09]shift 460 fd 187829 [17:14:09]save to /storage/0460/doc_00187829 [17:14:09]save last doc name /storage/0460/doc_00187829 to /storage/kkm_last_doc_name [17:14:09]save OK [17:14:09]Clear old archive folders... [17:14:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:14:09]tlvbuf is 010A30A0 [17:14:09]SAM_PROTO_ClearQueue [17:14:09]wFMCommunicate request_size=4 [17:14:09]MH_SAM_APDU [17:14:09]CAPDU: 80 09 00 00 [17:14:09]Write to MH i2c: E2 08 00 11 74 80 09 00 00 00 00 00 00 F7 [17:14:09]Write i2c OK [17:14:09]MH_I2C_Read... [17:14:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:14:09]Read from MH i2c: E2 [17:14:09]MH_I2C_Read... [17:14:09]Read from MH i2c: E2 03 00 [17:14:09]MH_I2C_Read... [17:14:09]Read from MH i2c: E2 03 00 11 74 00 90 00 F9 [17:14:09]RAPDU: 90 00 [17:14:09]wFMCommunicate OK [17:14:09]SAM_PROTO_ClearQueue done [17:14:09]KKMCreateOFDPacket [17:14:09]OFDProtocolAddRootSTLVToBuf [17:14:09]FM_MakeSignedData [17:14:09]FM_MakeSignedData [17:14:09]SAM_PROTO_SignData [17:14:09]wFMCommunicate request_size=4 [17:14:09]MH_SAM_APDU [17:14:09]CAPDU: 80 0D 01 02 [17:14:09]Write to MH i2c: E2 08 00 12 74 80 0D 01 02 00 00 00 00 FF [17:14:09]Write i2c OK [17:14:09]MH_I2C_Read... [17:14:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:14:09]Read from MH i2c: E2 [17:14:09]MH_I2C_Read... [17:14:09]Read from MH i2c: E2 03 00 [17:14:09]MH_I2C_Read... [17:14:09]Read from MH i2c: E2 03 00 12 74 00 90 00 FA [17:14:09]RAPDU: 90 00 [17:14:09]wFMCommunicate OK [17:14:09]wFMCommunicate request_size=255 [17:14:09]MH_SAM_APDU [17:14:09]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 01 00 00 F4 03 04 00 E5 8B 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 B5 DD 02 00 35 04 06 00 CF [17:14:09]Write to MH i2c: E2 02 01 13 74 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 01 00 00 F4 03 04 00 E5 8B 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 B5 DD 02 00 35 04 06 00 CF 00 00 D2 [17:14:09]Write i2c OK [17:14:09]MH_I2C_Read... [17:14:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:14:09]Read from MH i2c: E2 [17:14:09]MH_I2C_Read... [17:14:09]Read from MH i2c: E2 03 00 [17:14:09]MH_I2C_Read... [17:14:09]Read from MH i2c: E2 03 00 13 74 00 90 00 FB [17:14:09]RAPDU: 90 00 [17:14:09]wFMCommunicate OK [17:14:09]wFMCommunicate request_size=10 [17:14:09]MH_SAM_APDU [17:14:09]CAPDU: 80 0D 02 02 05 15 11 BB CF 5E [17:14:09]Write to MH i2c: E2 0D 00 14 74 80 0D 02 02 05 00 15 11 BB CF 5E 00 00 1A [17:14:09]Write i2c OK [17:14:09]MH_I2C_Read... [17:14:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:14:09]Read from MH i2c: E2 [17:14:09]MH_I2C_Read... [17:14:09]Read from MH i2c: E2 03 00 [17:14:09]MH_I2C_Read... [17:14:09]Read from MH i2c: E2 03 00 14 74 00 90 00 FC [17:14:09]RAPDU: 90 00 [17:14:09]wFMCommunicate OK [17:14:09]wFMCommunicate request_size=4 [17:14:09]MH_SAM_APDU [17:14:09]CAPDU: 80 0D 03 02 [17:14:09]Write to MH i2c: E2 08 00 15 74 80 0D 03 02 00 00 00 00 04 [17:14:09]Write i2c OK [17:14:09]MH_I2C_Read... [17:14:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:14:09]Read from MH i2c: E2 [17:14:09]MH_I2C_Read... [17:14:09]Read from MH i2c: E2 0B 00 [17:14:09]MH_I2C_Read... [17:14:09]Read from MH i2c: E2 0B 00 15 74 00 AD DD 50 89 09 B4 7C 86 90 00 27 [17:14:09]RAPDU: AD DD 50 89 09 B4 7C 86 90 00 [17:14:09]wFMCommunicate OK [17:14:09]SAM_PROTO_SignData done [17:14:09]FM_MakeSignedData done [17:14:09]CreateOFDProtocolMessage [17:14:09]wFMCommunicate request_size=4 [17:14:09]MH_SAM_APDU [17:14:09]CAPDU: 80 11 00 00 [17:14:09]Write to MH i2c: E2 08 00 16 74 80 11 00 00 00 00 00 00 04 [17:14:09]Write i2c OK [17:14:09]MH_I2C_Read... [17:14:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:14:09]Read from MH i2c: E2 [17:14:09]MH_I2C_Read... [17:14:09]Read from MH i2c: E2 17 00 [17:14:09]MH_I2C_Read... [17:14:09]Read from MH i2c: E2 17 00 16 74 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 52 [17:14:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [17:14:09]wFMCommunicate OK [17:14:09]CreateOFDProtocolMessage done [17:14:09]OFDSenderStorePacket 187829 [17:14:09]StoreOFDPacket docnum=187829 [17:14:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 4B F1 07 01 FE 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 01 00 00 F4 03 04 00 E5 8B 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 B5 DD 02 00 35 04 06 00 CF 15 11 BB CF 5E AD DD 50 89 09 B4 7C 86 [17:14:09]CheckFolder [17:14:09]dirname=/storage/ofd_packets [17:14:09]CheckFolder done [17:14:09]ProducePacketName [17:14:09]name=ofd_packets/00187829 [17:14:09]NVStorageSaveData ofd_packets/00187829 [17:14:09]File name is /storage/ofd_packets/00187829 [17:14:09]Write 301 bytes [17:14:09]NVStorageSaveData done [17:14:09]OFDSenderStorePacket done [17:14:09]KKMCreateOFDPacket done [17:14:09]NVStorageSaveData kkm_last_timestamp [17:14:09]File name is /storage/kkm_last_timestamp [17:14:09]Write 4 bytes [17:14:09]NVStorageSaveData done [17:14:09]ExternCall_PrintAddStr [17:14:09]wPrintStart [17:14:09]Write to MH i2c: 01 00 00 17 74 8B [17:14:09]Write i2c OK [17:14:09]MH_I2C_Read... [17:14:09]Read from MH i2c: 01 [17:14:09]MH_I2C_Read... [17:14:09]Read from MH i2c: 01 07 00 [17:14:09]MH_I2C_Read... [17:14:09]Read from MH i2c: 01 07 00 17 74 00 00 00 00 00 FF 0F A0 [17:14:09]RasterBufferAndPrint [17:14:09]line Счет N : (1)209881 [17:14:09]line ИНН: 02508201610067 [17:14:09]line Контрольно-Кассовый Чек [17:14:09]line ПРОДАЖА [17:14:09]line ТРК (МРК, ГНК) : 43 [17:14:09]line Товар: 2710124500 [17:14:09]line Аи-95-К-3 [17:14:09]line 13.480 * 74.20 [17:14:09]line = 1000.22 [17:14:09]line НДС 12% НСП 1% [17:14:09]line > о реализуемом товаре [17:14:09]line ОКРУГЛЕНИЕ: -0.22 [17:14:09]line ИТОГО: 1000.00 [17:14:09]line Внесено: 1000.00 [17:14:09]line СДАЧА: 0.00 [17:14:09]line НСП 1% : 8.85 [17:14:09]line НДС 12% : 106.22 [17:14:09]line Наличными: 1000.00 [17:14:09]line Безнал.: 0.00 [17:14:09]line Место: АЗС № 86 "Партнер Нефть" [17:14:09]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [17:14:09]line СНО: Общий режим [17:14:09]line Чек 293 21.10.2024 17:14 [17:14:09]line Смена: 460 ФФД: 1.0 [17:14:09]line ЗНМ: 0300000155 [17:14:09]line РНМ: 0000000000100030 [17:14:09]line Версия ККМ: 001 [17:14:09]line ФМ: 0000000000965340 [17:14:09]line ФД: 187829 [17:14:09]line ФПД: 227689398783838 [17:14:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T171413&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187829&fm=227689398783838&tin=02508201610067®Number=0000000000100030&sum=100000 [17:14:09]OFD Sender: Processing packet 187829 [packets to send 1062, broken 1061] [17:14:09]ProducePacketName [17:14:09]name=ofd_packets/00187829 [17:14:09]OFD Sender: To server: pG, [17:14:09]CommunicateWithHost lk.salyk.kg:30040 [17:14:09]ConnectInit lk.salyk.kg [17:14:09]written 0, free lines is 4095 [17:14:10]Connected sock=8 [17:14:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 4B F1 07 01 FE 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 01 00 00 F4 03 04 00 E5 8B 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 B5 DD 02 00 35 04 06 00 CF 15 11 BB CF 5E AD DD 50 89 09 B4 7C 86 [17:14:10]Write to MH i2c: 01 00 00 42 74 B6 [17:14:10]Write i2c OK [17:14:10]MH_I2C_Read... [17:14:10]Read from MH i2c: 01 [17:14:10]MH_I2C_Read... [17:14:10]Read from MH i2c: 01 07 00 [17:14:10]MH_I2C_Read... [17:14:10]Read from MH i2c: 01 07 00 42 74 00 00 00 00 00 6B 0C 34 [17:14:10]RasterBufferAndPrint [17:14:10]line [17:14:10]line [17:14:10]line [17:14:10]line [17:14:10]line [17:14:10]written 0, free lines is 3182 [17:14:10]MH_Cut [17:14:10]Write to MH i2c: D1 01 00 49 74 01 8F [17:14:10]Write i2c OK [17:14:10]MH_I2C_Read... [17:14:10]Read from MH i2c: D1 [17:14:10]MH_I2C_Read... [17:14:10]Read from MH i2c: D1 01 00 [17:14:10]MH_I2C_Read... [17:14:10]Read from MH i2c: D1 01 00 49 74 00 8E [17:14:10]Write to MH i2c: 01 00 00 4A 74 BE [17:14:10]Write i2c OK [17:14:10]MH_I2C_Read... [17:14:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 26 24 47 00 8D 5A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 B5 DD 02 00 F4 03 04 00 D4 35 16 67 B6 04 01 00 00 19 87 B8 B9 7D 51 24 C6 [17:14:10]CommunicateWithHost err = 0 [17:14:10]CheckOFDResponse [17:14:10]1017 (14) - 77093643461234 [17:14:10]1041 (16) - 0000000000965340 [17:14:10]1040 (4) - 187829 [17:14:10]1012 (4) - 21.10.2024 11:07 [17:14:10]1206 (1) - 0 [17:14:10]OFD Sender: Remove packet 187829 [17:14:10]ProducePacketName [17:14:10]name=ofd_packets/00187829 [17:14:10]NVStorageDeleteData [17:14:11]OFD Sender: No OFD packet to send [17:14:11]*** Cut start [17:14:11]*** Partial cut [17:14:11]*** CUTSNS_PIN = 1 [17:14:11]*** CUTSNS_PIN = 0 [17:14:11]*** Brake cut motor [17:14:12]Read from MH i2c: 01 [17:14:12]MH_I2C_Read... [17:14:12]*** Stop cut motor [17:14:12]*** Cut end [17:14:12]Read from MH i2c: 01 07 00 [17:14:12]MH_I2C_Read... [17:14:12]Read from MH i2c: 01 07 00 4A 74 00 00 00 00 00 FF 0F D3 [17:14:12]process_action close_receipt done [17:14:12]requested_data is exist [17:14:12]produce_requested_data [17:14:12]requested_item fm.sn is exist - process it [17:14:12]wFMCommunicate request_size=4 [17:14:12]MH_SAM_APDU [17:14:12]CAPDU: 80 11 00 00 [17:14:12]Write to MH i2c: E2 08 00 4B 74 80 11 00 00 00 00 00 00 39 [17:14:12]Write i2c OK [17:14:12]MH_I2C_Read... [17:14:12]Read from MH i2c: E2 [17:14:12]MH_I2C_Read... [17:14:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:14:12]Read from MH i2c: E2 17 00 [17:14:12]MH_I2C_Read... [17:14:12]Read from MH i2c: E2 17 00 4B 74 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 87 [17:14:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [17:14:12]wFMCommunicate OK [17:14:12]requested_item fd.num is exist - process it [17:14:12]SAM_PROTO_GetFieldsCounters [17:14:12]wFMCommunicate request_size=4 [17:14:12]MH_SAM_APDU [17:14:12]CAPDU: 80 13 00 00 [17:14:12]Write to MH i2c: E2 08 00 4C 74 80 13 00 00 00 00 00 00 3C [17:14:12]Write i2c OK [17:14:12]MH_I2C_Read... [17:14:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:14:12]Read from MH i2c: E2 [17:14:12]MH_I2C_Read... [17:14:12]Read from MH i2c: E2 62 00 [17:14:12]MH_I2C_Read... [17:14:12]Read from MH i2c: E2 62 00 4C 74 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 B5 DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 25 01 00 00 5E 04 04 00 25 01 00 00 57 04 04 00 26 01 00 00 19 04 04 00 00 00 00 00 90 00 16 [17:14:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 B5 DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 25 01 00 00 5E 04 04 00 25 01 00 00 57 04 04 00 26 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:14:12]wFMCommunicate OK [17:14:12]SAM_PROTO_GetFieldsCounters done [17:14:12]requested_item shift.num is exist - process it [17:14:12]requested_item shift.opened is exist - process it [17:14:12]req_shift_opened [17:14:12]FM_GetShiftState [17:14:12]SAM_PROTO_GetShiftState [17:14:12]wFMCommunicate request_size=4 [17:14:12]MH_SAM_APDU [17:14:12]CAPDU: 80 13 01 00 [17:14:12]Write to MH i2c: E2 08 00 4D 74 80 13 01 00 00 00 00 00 3E [17:14:12]Write i2c OK [17:14:12]MH_I2C_Read... [17:14:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:14:12]Read from MH i2c: E2 [17:14:12]MH_I2C_Read... [17:14:12]Read from MH i2c: E2 0E 00 [17:14:12]MH_I2C_Read... [17:14:12]Read from MH i2c: E2 0E 00 4D 74 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 9D [17:14:12]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [17:14:12]wFMCommunicate OK [17:14:12]SAM_PROTO_GetShiftState done [17:14:12]FM_GetShiftState done [17:14:12]req_shift_opened done [17:14:12]requested_item shift.open_date is exist - process it [17:14:12]req_shift_open_date [17:14:12]req_shift_open_date done [17:14:12]produce_requested_data done [17:14:12]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187829,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [17:14:12]process_action_free close_receipt [17:14:12]json_value_free [17:14:12]json_value_free done [17:14:12]process_json_proto returns [17:14:12]Send response to host [17:14:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187829,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [17:14:12]free response buf [17:14:12]execute_script done [17:14:12]execute_script returns [17:14:12]free content buf [17:14:12]Sock 9.Close socket [17:14:12]Sock 9.Thread stoped [17:14:16]OFD Sender: No OFD packet to send [17:14:21]OFD Sender: No OFD packet to send [17:14:26]OFD Sender: No OFD packet to send [17:14:31]OFD Sender: No OFD packet to send [17:14:36]OFD Sender: No OFD packet to send [17:14:41]OFD Sender: No OFD packet to send [17:14:46]OFD Sender: No OFD packet to send [17:14:51]OFD Sender: No OFD packet to send [17:14:56]OFD Sender: No OFD packet to send [17:15:01]OFD Sender: No OFD packet to send [17:15:06]OFD Sender: No OFD packet to send [17:15:11]OFD Sender: No OFD packet to send [17:15:16]OFD Sender: No OFD packet to send [17:15:21]OFD Sender: No OFD packet to send [17:15:26]OFD Sender: No OFD packet to send [17:15:31]OFD Sender: No OFD packet to send [17:15:36]OFD Sender: No OFD packet to send [17:15:41]OFD Sender: No OFD packet to send [17:15:46]OFD Sender: No OFD packet to send [17:15:51]OFD Sender: No OFD packet to send [17:15:56]OFD Sender: No OFD packet to send [17:16:01]OFD Sender: No OFD packet to send [17:16:06]OFD Sender: No OFD packet to send [17:16:11]OFD Sender: No OFD packet to send [17:16:16]OFD Sender: No OFD packet to send [17:16:21]OFD Sender: No OFD packet to send [17:16:26]OFD Sender: No OFD packet to send [17:16:31]OFD Sender: No OFD packet to send [17:16:36]OFD Sender: No OFD packet to send [17:16:41]OFD Sender: No OFD packet to send [17:16:46]OFD Sender: No OFD packet to send [17:16:51]OFD Sender: No OFD packet to send [17:16:56]OFD Sender: No OFD packet to send [17:17:01]OFD Sender: No OFD packet to send [17:17:06]OFD Sender: No OFD packet to send [17:17:11]OFD Sender: No OFD packet to send [17:17:16]OFD Sender: No OFD packet to send [17:17:21]OFD Sender: No OFD packet to send [17:17:26]OFD Sender: No OFD packet to send [17:17:32]OFD Sender: No OFD packet to send [17:17:37]OFD Sender: No OFD packet to send [17:17:42]OFD Sender: No OFD packet to send [17:17:43]accept exits with 10 [17:17:43]New connection [17:17:43]New thread 3067157860 created [17:17:43]Thread 3067014500 joined [17:17:43]Waiting for new connection... [17:17:43] Sock 10.Parse request [17:17:43]Sock 10.Check first char [17:17:43]Sock 10.First char is OK [17:17:43]request: POST /json_proto HTTP/1.0 [17:17:43]Method: POST [17:17:43]URL: /json_proto [17:17:43]Method is POST - this is cgi request [17:17:43]url: /json_proto [17:17:43]query_string will be loaded in cgi processing [17:17:43]execute_cgi json_proto POST (null) [17:17:43]execute_cgi path=json_proto method=POST [17:17:43]POST find Content-Length [17:17:43]Host: 172.17.42.131:8080 [17:17:43]Content-Length: 677 [17:17:43]Content-Type: application/json [17:17:43] [17:17:43]POST finish read [17:17:43]Found Content-Length = 677 [17:17:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209883", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 9.440, "sum" : 700.45, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:17:43]execute_script... [17:17: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)209883", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 9.440, "sum" : 700.45, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:17:43]POST & json_proto [17:17:43]process_json_proto [17:17:43]json parsed OK: [17:17:43]protocol is kg_v1.0 [17:17:43]action value=close_receipt [17:17:43]process_action close_receipt [17:17:43]cmd_close_receipt [17:17:43]MH_GetDate [17:17:43]Write to MH i2c: F0 00 00 4E 74 B1 [17:17:43]Write i2c OK [17:17:43]MH_I2C_Read... [17:17:43]Read from MH i2c: F0 [17:17:43]MH_I2C_Read... [17:17:43]Read from MH i2c: F0 09 00 [17:17:43]MH_I2C_Read... [17:17:43]Read from MH i2c: F0 09 00 4E 74 00 BC 8C 16 67 A0 18 CA 66 67 [17:17:43]GetLastDocTimeStamp 1729530853 [17:17:43]current date 1729531068 [17:17:43]FM_GetShiftState [17:17:43]SAM_PROTO_GetShiftState [17:17:43]wFMCommunicate request_size=4 [17:17:43]MH_SAM_APDU [17:17:43]CAPDU: 80 13 01 00 [17:17:43]Write to MH i2c: E2 08 00 4F 74 80 13 01 00 00 00 00 00 40 [17:17:43]Write i2c OK [17:17:43]MH_I2C_Read... [17:17:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:17:43]Read from MH i2c: E2 [17:17:43]MH_I2C_Read... [17:17:43]Read from MH i2c: E2 0E 00 [17:17:43]MH_I2C_Read... [17:17:43]Read from MH i2c: E2 0E 00 4F 74 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 9F [17:17:43]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [17:17:43]wFMCommunicate OK [17:17:43]SAM_PROTO_GetShiftState done [17:17:43]FM_GetShiftState done [17:17:43]opened in 1729469754 [17:17:43]opened+sec_in_day 1729556154 [17:17:43]quantity*price = 70044 [17:17:43]sum+1 = 70046 [17:17:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.45 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 294 21.10.2024 17:17 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 187830 ФПД: 247227439863115 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T171748&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187830&fm=247227439863115&tin=02508201610067®Number=0000000000100030&sum=70000 [17:17:44]StoreToDocumentArchive [17:17:44]shift 460 fd 187830 [17:17:44]save to /storage/0460/doc_00187830 [17:17:44]save last doc name /storage/0460/doc_00187830 to /storage/kkm_last_doc_name [17:17:44]save OK [17:17:44]Clear old archive folders... [17:17:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:17:44]tlvbuf is 01084760 [17:17:44]SAM_PROTO_ClearQueue [17:17:44]wFMCommunicate request_size=4 [17:17:44]MH_SAM_APDU [17:17:44]CAPDU: 80 09 00 00 [17:17:44]Write to MH i2c: E2 08 00 5C 74 80 09 00 00 00 00 00 00 42 [17:17:44]Write i2c OK [17:17:44]MH_I2C_Read... [17:17:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:17:44]Read from MH i2c: E2 [17:17:44]MH_I2C_Read... [17:17:44]Read from MH i2c: E2 03 00 [17:17:44]MH_I2C_Read... [17:17:44]Read from MH i2c: E2 03 00 5C 74 00 90 00 44 [17:17:44]RAPDU: 90 00 [17:17:44]wFMCommunicate OK [17:17:44]SAM_PROTO_ClearQueue done [17:17:44]KKMCreateOFDPacket [17:17:44]OFDProtocolAddRootSTLVToBuf [17:17:44]FM_MakeSignedData [17:17:44]FM_MakeSignedData [17:17:44]SAM_PROTO_SignData [17:17:44]wFMCommunicate request_size=4 [17:17:44]MH_SAM_APDU [17:17:44]CAPDU: 80 0D 01 02 [17:17:44]Write to MH i2c: E2 08 00 5D 74 80 0D 01 02 00 00 00 00 4A [17:17:44]Write i2c OK [17:17:44]MH_I2C_Read... [17:17:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:17:44]Read from MH i2c: E2 [17:17:44]MH_I2C_Read... [17:17:44]Read from MH i2c: E2 03 00 [17:17:44]MH_I2C_Read... [17:17:44]Read from MH i2c: E2 03 00 5D 74 00 90 00 45 [17:17:44]RAPDU: 90 00 [17:17:44]wFMCommunicate OK [17:17:44]wFMCommunicate request_size=255 [17:17:44]MH_SAM_APDU [17:17:44]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 E0 24 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 9D 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 01 00 00 F4 03 04 00 BC 8C 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 B6 DD 02 00 35 04 06 00 E0 [17:17:44]Write to MH i2c: E2 02 01 5E 74 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 E0 24 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 9D 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 01 00 00 F4 03 04 00 BC 8C 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 B6 DD 02 00 35 04 06 00 E0 00 00 D2 [17:17:44]Write i2c OK [17:17:44]MH_I2C_Read... [17:17:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:17:44]Read from MH i2c: E2 [17:17:44]MH_I2C_Read... [17:17:44]Read from MH i2c: E2 03 00 [17:17:44]MH_I2C_Read... [17:17:44]Read from MH i2c: E2 03 00 5E 74 00 90 00 46 [17:17:44]RAPDU: 90 00 [17:17:44]wFMCommunicate OK [17:17:44]wFMCommunicate request_size=10 [17:17:44]MH_SAM_APDU [17:17:44]CAPDU: 80 0D 02 02 05 DA 1F BB 55 4B [17:17:44]Write to MH i2c: E2 0D 00 5F 74 80 0D 02 02 05 00 DA 1F BB 55 4B 00 00 AB [17:17:44]Write i2c OK [17:17:44]MH_I2C_Read... [17:17:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:17:44]Read from MH i2c: E2 [17:17:44]MH_I2C_Read... [17:17:44]Read from MH i2c: E2 03 00 [17:17:44]MH_I2C_Read... [17:17:44]Read from MH i2c: E2 03 00 5F 74 00 90 00 47 [17:17:44]RAPDU: 90 00 [17:17:44]wFMCommunicate OK [17:17:44]wFMCommunicate request_size=4 [17:17:44]MH_SAM_APDU [17:17:44]CAPDU: 80 0D 03 02 [17:17:44]Write to MH i2c: E2 08 00 60 74 80 0D 03 02 00 00 00 00 4F [17:17:44]Write i2c OK [17:17:44]MH_I2C_Read... [17:17:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:17:44]Read from MH i2c: E2 [17:17:44]MH_I2C_Read... [17:17:44]Read from MH i2c: E2 0B 00 [17:17:44]MH_I2C_Read... [17:17:44]Read from MH i2c: E2 0B 00 60 74 00 A9 1A 30 3C AD 57 74 29 90 00 20 [17:17:44]RAPDU: A9 1A 30 3C AD 57 74 29 90 00 [17:17:44]wFMCommunicate OK [17:17:44]SAM_PROTO_SignData done [17:17:44]FM_MakeSignedData done [17:17:44]CreateOFDProtocolMessage [17:17:44]wFMCommunicate request_size=4 [17:17:44]MH_SAM_APDU [17:17:44]CAPDU: 80 11 00 00 [17:17:44]Write to MH i2c: E2 08 00 61 74 80 11 00 00 00 00 00 00 4F [17:17:44]Write i2c OK [17:17:44]MH_I2C_Read... [17:17:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:17:44]Read from MH i2c: E2 [17:17:44]MH_I2C_Read... [17:17:44]Read from MH i2c: E2 17 00 [17:17:44]MH_I2C_Read... [17:17:44]Read from MH i2c: E2 17 00 61 74 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 9D [17:17:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [17:17:44]wFMCommunicate OK [17:17:44]CreateOFDProtocolMessage done [17:17:44]OFDSenderStorePacket 187830 [17:17:44]StoreOFDPacket docnum=187830 [17:17:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 7A 72 07 01 CA A6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 E0 24 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 9D 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 01 00 00 F4 03 04 00 BC 8C 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 B6 DD 02 00 35 04 06 00 E0 DA 1F BB 55 4B A9 1A 30 3C AD 57 74 29 [17:17:44]CheckFolder [17:17:44]dirname=/storage/ofd_packets [17:17:44]CheckFolder done [17:17:44]ProducePacketName [17:17:44]name=ofd_packets/00187830 [17:17:44]NVStorageSaveData ofd_packets/00187830 [17:17:44]File name is /storage/ofd_packets/00187830 [17:17:44]Write 301 bytes [17:17:44]NVStorageSaveData done [17:17:44]OFDSenderStorePacket done [17:17:44]KKMCreateOFDPacket done [17:17:44]NVStorageSaveData kkm_last_timestamp [17:17:44]File name is /storage/kkm_last_timestamp [17:17:44]Write 4 bytes [17:17:44]NVStorageSaveData done [17:17:44]ExternCall_PrintAddStr [17:17:44]wPrintStart [17:17:44]Write to MH i2c: 01 00 00 62 74 D6 [17:17:44]Write i2c OK [17:17:44]MH_I2C_Read... [17:17:44]Read from MH i2c: 01 [17:17:44]MH_I2C_Read... [17:17:44]Read from MH i2c: 01 07 00 [17:17:44]MH_I2C_Read... [17:17:44]Read from MH i2c: 01 07 00 62 74 00 00 00 00 00 FF 0F EB [17:17:44]RasterBufferAndPrint [17:17:44]line Счет N : (1)209883 [17:17:44]line ИНН: 02508201610067 [17:17:44]line Контрольно-Кассовый Чек [17:17:44]line ПРОДАЖА [17:17:44]line ТРК (МРК, ГНК) : 13 [17:17:44]line Товар: 2710124500 [17:17:44]line Аи-95-К-3 [17:17:44]line 9.440 * 74.20 [17:17:44]line = 700.45 [17:17:44]line НДС 12% НСП 1% [17:17:44]line > о реализуемом товаре [17:17:44]line ОКРУГЛЕНИЕ: -0.45 [17:17:44]line ИТОГО: 700.00 [17:17:44]line Внесено: 700.00 [17:17:44]line СДАЧА: 0.00 [17:17:44]line НСП 1% : 6.20 [17:17:44]line НДС 12% : 74.38 [17:17:44]line Наличными: 700.00 [17:17:44]line Безнал.: 0.00 [17:17:44]line Место: АЗС № 86 "Партнер Нефть" [17:17:44]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [17:17:44]line СНО: Общий режим [17:17:44]line Чек 294 21.10.2024 17:17 [17:17:44]line Смена: 460 ФФД: 1.0 [17:17:44]line ЗНМ: 0300000155 [17:17:44]line РНМ: 0000000000100030 [17:17:44]line Версия ККМ: 001 [17:17:44]line ФМ: 0000000000965340 [17:17:44]line ФД: 187830 [17:17:44]line ФПД: 247227439863115 [17:17:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T171748&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187830&fm=247227439863115&tin=02508201610067®Number=0000000000100030&sum=70000 [17:17:44]written 0, free lines is 4095 [17:17:45]OFD Sender: Processing packet 187830 [packets to send 1062, broken 1061] [17:17:45]ProducePacketName [17:17:45]name=ofd_packets/00187830 [17:17:45]OFD Sender: To server: pG, [17:17:45]CommunicateWithHost lk.salyk.kg:30040 [17:17:45]ConnectInit lk.salyk.kg [17:17:45]Connected sock=9 [17:17:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 7A 72 07 01 CA A6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 E0 24 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 9D 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 01 00 00 F4 03 04 00 BC 8C 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 B6 DD 02 00 35 04 06 00 E0 DA 1F BB 55 4B A9 1A 30 3C AD 57 74 29 [17:17:45]Write to MH i2c: 01 00 00 8D 74 01 [17:17:45]Write i2c OK [17:17:45]MH_I2C_Read... [17:17:45]Read from MH i2c: 01 [17:17:45]MH_I2C_Read... [17:17:45]Read from MH i2c: 01 07 00 [17:17:45]MH_I2C_Read... [17:17:45]Read from MH i2c: 01 07 00 8D 74 00 00 00 00 00 61 0C 75 [17:17:45]RasterBufferAndPrint [17:17:45]line [17:17:45]line [17:17:45]line [17:17:45]line [17:17:45]line [17:17:45]written 0, free lines is 3174 [17:17:45]MH_Cut [17:17:45]Write to MH i2c: D1 01 00 94 74 01 DA [17:17:45]Write i2c OK [17:17:45]MH_I2C_Read... [17:17:45]Read from MH i2c: D1 [17:17:45]MH_I2C_Read... [17:17:45]Read from MH i2c: D1 01 00 [17:17:45]MH_I2C_Read... [17:17:45]Read from MH i2c: D1 01 00 94 74 00 D9 [17:17:45]Write to MH i2c: 01 00 00 95 74 09 [17:17:45]Write i2c OK [17:17:45]MH_I2C_Read... [17:17:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 39 0B 47 00 CB F6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 B6 DD 02 00 F4 03 04 00 AB 36 16 67 B6 04 01 00 00 AA F6 9D B7 37 86 B2 74 [17:17:45]CommunicateWithHost err = 0 [17:17:45]CheckOFDResponse [17:17:45]1017 (14) - 77093643461234 [17:17:45]1041 (16) - 0000000000965340 [17:17:45]1040 (4) - 187830 [17:17:45]1012 (4) - 21.10.2024 11:10 [17:17:45]1206 (1) - 0 [17:17:45]OFD Sender: Remove packet 187830 [17:17:45]ProducePacketName [17:17:45]name=ofd_packets/00187830 [17:17:45]NVStorageDeleteData [17:17:46]OFD Sender: No OFD packet to send [17:17:46]*** Cut start [17:17:46]*** Partial cut [17:17:46]*** CUTSNS_PIN = 1 [17:17:46]*** CUTSNS_PIN = 0 [17:17:46]*** Brake cut motor [17:17:47]Read from MH i2c: 01 [17:17:47]MH_I2C_Read... [17:17:47]*** Stop cut motor [17:17:47]*** Cut end [17:17:47]Read from MH i2c: 01 07 00 [17:17:47]MH_I2C_Read... [17:17:47]Read from MH i2c: 01 07 00 95 74 00 00 00 00 00 FF 0F 1E [17:17:47]process_action close_receipt done [17:17:47]requested_data is exist [17:17:47]produce_requested_data [17:17:47]requested_item fm.sn is exist - process it [17:17:47]wFMCommunicate request_size=4 [17:17:47]MH_SAM_APDU [17:17:47]CAPDU: 80 11 00 00 [17:17:47]Write to MH i2c: E2 08 00 96 74 80 11 00 00 00 00 00 00 84 [17:17:47]Write i2c OK [17:17:47]MH_I2C_Read... [17:17:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:17:47]Read from MH i2c: E2 [17:17:47]MH_I2C_Read... [17:17:47]Read from MH i2c: E2 17 00 [17:17:47]MH_I2C_Read... [17:17:47]Read from MH i2c: E2 17 00 96 74 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 D2 [17:17:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [17:17:47]wFMCommunicate OK [17:17:47]requested_item fd.num is exist - process it [17:17:47]SAM_PROTO_GetFieldsCounters [17:17:47]wFMCommunicate request_size=4 [17:17:47]MH_SAM_APDU [17:17:47]CAPDU: 80 13 00 00 [17:17:47]Write to MH i2c: E2 08 00 97 74 80 13 00 00 00 00 00 00 87 [17:17:47]Write i2c OK [17:17:47]MH_I2C_Read... [17:17:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:17:47]Read from MH i2c: E2 [17:17:47]MH_I2C_Read... [17:17:47]Read from MH i2c: E2 62 00 [17:17:47]MH_I2C_Read... [17:17:47]Read from MH i2c: E2 62 00 97 74 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 B6 DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 26 01 00 00 5E 04 04 00 26 01 00 00 57 04 04 00 27 01 00 00 19 04 04 00 00 00 00 00 90 00 65 [17:17:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 B6 DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 26 01 00 00 5E 04 04 00 26 01 00 00 57 04 04 00 27 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:17:47]wFMCommunicate OK [17:17:47]SAM_PROTO_GetFieldsCounters done [17:17:47]requested_item shift.num is exist - process it [17:17:47]requested_item shift.opened is exist - process it [17:17:47]req_shift_opened [17:17:47]FM_GetShiftState [17:17:47]SAM_PROTO_GetShiftState [17:17:47]wFMCommunicate request_size=4 [17:17:47]MH_SAM_APDU [17:17:47]CAPDU: 80 13 01 00 [17:17:47]Write to MH i2c: E2 08 00 98 74 80 13 01 00 00 00 00 00 89 [17:17:47]Write i2c OK [17:17:47]MH_I2C_Read... [17:17:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:17:47]Read from MH i2c: E2 [17:17:47]MH_I2C_Read... [17:17:47]Read from MH i2c: E2 0E 00 [17:17:47]MH_I2C_Read... [17:17:47]Read from MH i2c: E2 0E 00 98 74 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 E8 [17:17:47]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [17:17:47]wFMCommunicate OK [17:17:47]SAM_PROTO_GetShiftState done [17:17:47]FM_GetShiftState done [17:17:47]req_shift_opened done [17:17:47]requested_item shift.open_date is exist - process it [17:17:47]req_shift_open_date [17:17:47]req_shift_open_date done [17:17:47]produce_requested_data done [17:17:47]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187830,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [17:17:47]process_action_free close_receipt [17:17:47]json_value_free [17:17:47]json_value_free done [17:17:47]process_json_proto returns [17:17:47]Send response to host [17:17:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187830,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [17:17:47]free response buf [17:17:47]execute_script done [17:17:47]execute_script returns [17:17:47]free content buf [17:17:47]Sock 10.Close socket [17:17:47]Sock 10.Thread stoped [17:17:51]OFD Sender: No OFD packet to send [17:17:56]OFD Sender: No OFD packet to send [17:18:01]OFD Sender: No OFD packet to send [17:18:06]OFD Sender: No OFD packet to send [17:18:11]OFD Sender: No OFD packet to send [17:18:16]OFD Sender: No OFD packet to send [17:18:16]accept exits with 8 [17:18:16]New connection [17:18:16]New thread 3067014500 created [17:18:16]Thread 3067157860 joined [17:18:16]Waiting for new connection... [17:18:16] Sock 8.Parse request [17:18:16]Sock 8.Check first char [17:18:16]Sock 8.First char is OK [17:18:16]request: POST /json_proto HTTP/1.0 [17:18:16]Method: POST [17:18:16]URL: /json_proto [17:18:16]Method is POST - this is cgi request [17:18:16]url: /json_proto [17:18:16]query_string will be loaded in cgi processing [17:18:16]execute_cgi json_proto POST (null) [17:18:16]execute_cgi path=json_proto method=POST [17:18:16]POST find Content-Length [17:18:16]Host: 172.17.42.131:8080 [17:18:16]Content-Length: 751 [17:18:16]Content-Type: application/json [17:18:16] [17:18:16]POST finish read [17:18:16]Found Content-Length = 751 [17:18:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209882", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 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\u041A \u0413\u041F\u041D\u0410 Online\u000A30116760", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:18:16]execute_script... [17:18:16]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209882", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 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\u041A \u0413\u041F\u041D\u0410 Online\u000A30116760", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:18:16]POST & json_proto [17:18:16]process_json_proto [17:18:16]json parsed OK: [17:18:16]protocol is kg_v1.0 [17:18:16]action value=close_receipt [17:18:16]process_action close_receipt [17:18:16]cmd_close_receipt [17:18:16]MH_GetDate [17:18:16]Write to MH i2c: F0 00 00 99 74 FC [17:18:16]Write i2c OK [17:18:16]MH_I2C_Read... [17:18:16]Read from MH i2c: F0 [17:18:16]MH_I2C_Read... [17:18:16]Read from MH i2c: F0 09 00 [17:18:16]MH_I2C_Read... [17:18:16]Read from MH i2c: F0 09 00 99 74 00 DD 8C 16 67 A0 18 CA 66 D3 [17:18:16]GetLastDocTimeStamp 1729531068 [17:18:16]current date 1729531101 [17:18:16]FM_GetShiftState [17:18:16]SAM_PROTO_GetShiftState [17:18:16]wFMCommunicate request_size=4 [17:18:16]MH_SAM_APDU [17:18:16]CAPDU: 80 13 01 00 [17:18:16]Write to MH i2c: E2 08 00 9A 74 80 13 01 00 00 00 00 00 8B [17:18:16]Write i2c OK [17:18:16]MH_I2C_Read... [17:18:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:18:16]Read from MH i2c: E2 [17:18:16]MH_I2C_Read... [17:18:16]Read from MH i2c: E2 0E 00 [17:18:16]MH_I2C_Read... [17:18:16]Read from MH i2c: E2 0E 00 9A 74 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 EA [17:18:16]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [17:18:16]wFMCommunicate OK [17:18:16]SAM_PROTO_GetShiftState done [17:18:16]FM_GetShiftState done [17:18:16]opened in 1729469754 [17:18:16]opened+sec_in_day 1729556154 [17:18:16]quantity*price = 0 [17:18:16]sum+1 = 1 [17:18:16]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 295 21.10.2024 17:18 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Талоны: ТК ГПНА Online 30116760 ФМ: 0000000000965340 ФД: 187831 ФПД: 15063800788004 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T171821&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187831&fm=15063800788004&tin=02508201610067®Number=0000000000100030&sum=0 [17:18:17]StoreToDocumentArchive [17:18:17]shift 460 fd 187831 [17:18:17]save to /storage/0460/doc_00187831 [17:18:17]save last doc name /storage/0460/doc_00187831 to /storage/kkm_last_doc_name [17:18:17]save OK [17:18:17]Clear old archive folders... [17:18:17]ProcessDocumentItem done err = 0, tmpTLVsize=248 [17:18:17]tlvbuf is 010F7B90 [17:18:17]SAM_PROTO_ClearQueue [17:18:17]wFMCommunicate request_size=4 [17:18:17]MH_SAM_APDU [17:18:17]CAPDU: 80 09 00 00 [17:18:17]Write to MH i2c: E2 08 00 A7 74 80 09 00 00 00 00 00 00 8D [17:18:17]Write i2c OK [17:18:17]MH_I2C_Read... [17:18:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:18:17]Read from MH i2c: E2 [17:18:17]MH_I2C_Read... [17:18:17]Read from MH i2c: E2 03 00 [17:18:17]MH_I2C_Read... [17:18:17]Read from MH i2c: E2 03 00 A7 74 00 90 00 8F [17:18:17]RAPDU: 90 00 [17:18:17]wFMCommunicate OK [17:18:17]SAM_PROTO_ClearQueue done [17:18:17]KKMCreateOFDPacket [17:18:17]OFDProtocolAddRootSTLVToBuf [17:18:17]FM_MakeSignedData [17:18:17]FM_MakeSignedData [17:18:17]SAM_PROTO_SignData [17:18:17]wFMCommunicate request_size=4 [17:18:17]MH_SAM_APDU [17:18:17]CAPDU: 80 0D 01 02 [17:18:17]Write to MH i2c: E2 08 00 A8 74 80 0D 01 02 00 00 00 00 95 [17:18:17]Write i2c OK [17:18:17]MH_I2C_Read... [17:18:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:18:17]Read from MH i2c: E2 [17:18:17]MH_I2C_Read... [17:18:17]Read from MH i2c: E2 03 00 [17:18:17]MH_I2C_Read... [17:18:17]Read from MH i2c: E2 03 00 A8 74 00 90 00 90 [17:18:17]RAPDU: 90 00 [17:18:17]wFMCommunicate OK [17:18:17]wFMCommunicate request_size=255 [17:18:17]MH_SAM_APDU [17:18:17]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 27 01 00 00 F4 03 04 00 DD 8C 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 B7 DD 02 00 35 04 06 00 0D B3 50 7E [17:18:17]Write to MH i2c: E2 02 01 A9 74 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 27 01 00 00 F4 03 04 00 DD 8C 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 B7 DD 02 00 35 04 06 00 0D B3 50 7E 00 00 44 [17:18:17]Write i2c OK [17:18:17]MH_I2C_Read... [17:18:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:18:17]Read from MH i2c: E2 [17:18:17]MH_I2C_Read... [17:18:17]Read from MH i2c: E2 03 00 [17:18:17]MH_I2C_Read... [17:18:17]Read from MH i2c: E2 03 00 A9 74 00 90 00 91 [17:18:17]RAPDU: 90 00 [17:18:17]wFMCommunicate OK [17:18:17]wFMCommunicate request_size=7 [17:18:17]MH_SAM_APDU [17:18:17]CAPDU: 80 0D 02 02 02 B4 24 [17:18:17]Write to MH i2c: E2 0A 00 AA 74 80 0D 02 02 02 00 B4 24 00 00 74 [17:18:17]Write i2c OK [17:18:17]MH_I2C_Read... [17:18:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:18:17]Read from MH i2c: E2 [17:18:17]MH_I2C_Read... [17:18:17]Read from MH i2c: E2 03 00 [17:18:17]MH_I2C_Read... [17:18:17]Read from MH i2c: E2 03 00 AA 74 00 90 00 92 [17:18:17]RAPDU: 90 00 [17:18:17]wFMCommunicate OK [17:18:17]wFMCommunicate request_size=4 [17:18:17]MH_SAM_APDU [17:18:17]CAPDU: 80 0D 03 02 [17:18:17]Write to MH i2c: E2 08 00 AB 74 80 0D 03 02 00 00 00 00 9A [17:18:17]Write i2c OK [17:18:17]MH_I2C_Read... [17:18:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:18:18]Read from MH i2c: E2 [17:18:18]MH_I2C_Read... [17:18:18]Read from MH i2c: E2 0B 00 [17:18:18]MH_I2C_Read... [17:18:18]Read from MH i2c: E2 0B 00 AB 74 00 A1 39 9C AB B4 0B F1 28 90 00 94 [17:18:18]RAPDU: A1 39 9C AB B4 0B F1 28 90 00 [17:18:18]wFMCommunicate OK [17:18:18]SAM_PROTO_SignData done [17:18:18]FM_MakeSignedData done [17:18:18]CreateOFDProtocolMessage [17:18:18]wFMCommunicate request_size=4 [17:18:18]MH_SAM_APDU [17:18:18]CAPDU: 80 11 00 00 [17:18:18]Write to MH i2c: E2 08 00 AC 74 80 11 00 00 00 00 00 00 9A [17:18:18]Write i2c OK [17:18:18]MH_I2C_Read... [17:18:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:18:18]Read from MH i2c: E2 [17:18:18]MH_I2C_Read... [17:18:18]Read from MH i2c: E2 17 00 [17:18:18]MH_I2C_Read... [17:18:18]Read from MH i2c: E2 17 00 AC 74 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 E8 [17:18:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [17:18:18]wFMCommunicate OK [17:18:18]CreateOFDProtocolMessage done [17:18:18]OFDSenderStorePacket 187831 [17:18:18]StoreOFDPacket docnum=187831 [17:18:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 7A 17 04 01 4A 8F 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 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 27 01 00 00 F4 03 04 00 DD 8C 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 B7 DD 02 00 35 04 06 00 0D B3 50 7E B4 24 A1 39 9C AB B4 0B F1 28 [17:18:18]CheckFolder [17:18:18]dirname=/storage/ofd_packets [17:18:18]CheckFolder done [17:18:18]ProducePacketName [17:18:18]name=ofd_packets/00187831 [17:18:18]NVStorageSaveData ofd_packets/00187831 [17:18:18]File name is /storage/ofd_packets/00187831 [17:18:18]Write 298 bytes [17:18:18]NVStorageSaveData done [17:18:18]OFDSenderStorePacket done [17:18:18]KKMCreateOFDPacket done [17:18:18]NVStorageSaveData kkm_last_timestamp [17:18:18]File name is /storage/kkm_last_timestamp [17:18:18]Write 4 bytes [17:18:18]NVStorageSaveData done [17:18:18]ExternCall_PrintAddStr [17:18:18]wPrintStart [17:18:18]Write to MH i2c: 01 00 00 AD 74 21 [17:18:18]Write i2c OK [17:18:18]MH_I2C_Read... [17:18:18]Read from MH i2c: 01 [17:18:18]MH_I2C_Read... [17:18:18]Read from MH i2c: 01 07 00 [17:18:18]MH_I2C_Read... [17:18:18]Read from MH i2c: 01 07 00 AD 74 00 00 00 00 00 FF 0F 36 [17:18:18]RasterBufferAndPrint [17:18:18]line Счет N : (1)209882 [17:18:18]line ИНН: 02508201610067 [17:18:18]line Контрольно-Кассовый Чек [17:18:18]line ПРОДАЖА [17:18:18]line ТРК (МРК, ГНК) : 51 [17:18:18]line Товар: 2710194210 [17:18:18]line ДТ-К-5 [17:18:18]line 39.380 * 0.00 [17:18:18]line = 0.00 [17:18:18]line НДС 12% НСП 1% [17:18:18]line > о реализуемом товаре [17:18:18]line ИТОГО: 0.00 [17:18:18]line НСП 1% : 0.00 [17:18:18]line НДС 12% : 0.00 [17:18:18]line Наличными: 0.00 [17:18:18]line Безнал.: 0.00 [17:18:18]line Место: АЗС № 86 "Партнер Нефть" [17:18:18]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [17:18:18]line СНО: Общий режим [17:18:18]line Чек 295 21.10.2024 17:18 [17:18:18]line Смена: 460 ФФД: 1.0 [17:18:18]line ЗНМ: 0300000155 [17:18:18]line РНМ: 0000000000100030 [17:18:18]line Версия ККМ: 001 [17:18:18]line Талоны: ТК ГПНА Online [17:18:18]line 30116760 [17:18:18]line ФМ: 0000000000965340 [17:18:18]line ФД: 187831 [17:18:18]line ФПД: 15063800788004 [17:18:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T171821&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187831&fm=15063800788004&tin=02508201610067®Number=0000000000100030&sum=0 [17:18:18]written 0, free lines is 4095 [17:18:18]OFD Sender: Processing packet 187831 [packets to send 1062, broken 1061] [17:18:18]ProducePacketName [17:18:18]name=ofd_packets/00187831 [17:18:18]OFD Sender: To server: pG, [17:18:18]CommunicateWithHost lk.salyk.kg:30040 [17:18:18]ConnectInit lk.salyk.kg [17:18:18]Connected sock=10 [17:18:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 7A 17 04 01 4A 8F 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 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 27 01 00 00 F4 03 04 00 DD 8C 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 B7 DD 02 00 35 04 06 00 0D B3 50 7E B4 24 A1 39 9C AB B4 0B F1 28 [17:18:18]Write to MH i2c: 01 00 00 D7 74 4B [17:18:18]Write i2c OK [17:18:18]MH_I2C_Read... [17:18:18]Read from MH i2c: 01 [17:18:18]MH_I2C_Read... [17:18:18]Read from MH i2c: 01 07 00 [17:18:18]MH_I2C_Read... [17:18:18]Read from MH i2c: 01 07 00 D7 74 00 00 00 00 00 77 0C D5 [17:18:18]RasterBufferAndPrint [17:18:18]line [17:18:18]line [17:18:18]line [17:18:18]line [17:18:18]line [17:18:18]written 0, free lines is 3196 [17:18:18]MH_Cut [17:18:18]Write to MH i2c: D1 01 00 DE 74 01 24 [17:18:18]Write i2c OK [17:18:18]MH_I2C_Read... [17:18:18]Read from MH i2c: D1 [17:18:18]MH_I2C_Read... [17:18:18]Read from MH i2c: D1 01 00 [17:18:18]MH_I2C_Read... [17:18:18]Read from MH i2c: D1 01 00 DE 74 00 23 [17:18:18]Write to MH i2c: 01 00 00 DF 74 53 [17:18:18]Write i2c OK [17:18:18]MH_I2C_Read... [17:18:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 0D E4 47 00 0D F4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 B7 DD 02 00 F4 03 04 00 CC 36 16 67 B6 04 01 00 00 03 47 B1 5F 6E 3E F6 6A [17:18:18]CommunicateWithHost err = 0 [17:18:18]CheckOFDResponse [17:18:18]1017 (14) - 77093643461234 [17:18:18]1041 (16) - 0000000000965340 [17:18:18]1040 (4) - 187831 [17:18:18]1012 (4) - 21.10.2024 11:11 [17:18:18]1206 (1) - 0 [17:18:18]OFD Sender: Remove packet 187831 [17:18:18]ProducePacketName [17:18:18]name=ofd_packets/00187831 [17:18:18]NVStorageDeleteData [17:18:19]OFD Sender: No OFD packet to send [17:18:19]*** Cut start [17:18:19]*** Partial cut [17:18:19]*** CUTSNS_PIN = 1 [17:18:19]*** CUTSNS_PIN = 0 [17:18:19]*** Brake cut motor [17:18:20]Read from MH i2c: 01 [17:18:20]MH_I2C_Read... [17:18:20]*** Stop cut motor [17:18:20]*** Cut end [17:18:20]Read from MH i2c: 01 07 00 [17:18:20]MH_I2C_Read... [17:18:20]Read from MH i2c: 01 07 00 DF 74 00 00 00 00 00 FF 0F 68 [17:18:20]process_action close_receipt done [17:18:20]requested_data is exist [17:18:20]produce_requested_data [17:18:20]requested_item fm.sn is exist - process it [17:18:20]wFMCommunicate request_size=4 [17:18:20]MH_SAM_APDU [17:18:20]CAPDU: 80 11 00 00 [17:18:20]Write to MH i2c: E2 08 00 E0 74 80 11 00 00 00 00 00 00 CE [17:18:20]Write i2c OK [17:18:20]MH_I2C_Read... [17:18:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:18:20]Read from MH i2c: E2 [17:18:20]MH_I2C_Read... [17:18:20]Read from MH i2c: E2 17 00 [17:18:20]MH_I2C_Read... [17:18:20]Read from MH i2c: E2 17 00 E0 74 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 1C [17:18:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [17:18:20]wFMCommunicate OK [17:18:20]requested_item fd.num is exist - process it [17:18:20]SAM_PROTO_GetFieldsCounters [17:18:20]wFMCommunicate request_size=4 [17:18:20]MH_SAM_APDU [17:18:20]CAPDU: 80 13 00 00 [17:18:20]Write to MH i2c: E2 08 00 E1 74 80 13 00 00 00 00 00 00 D1 [17:18:20]Write i2c OK [17:18:20]MH_I2C_Read... [17:18:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:18:20]Read from MH i2c: E2 [17:18:20]MH_I2C_Read... [17:18:20]Read from MH i2c: E2 62 00 [17:18:20]MH_I2C_Read... [17:18:20]Read from MH i2c: E2 62 00 E1 74 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 B7 DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 27 01 00 00 5E 04 04 00 27 01 00 00 57 04 04 00 28 01 00 00 19 04 04 00 00 00 00 00 90 00 B3 [17:18:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 B7 DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 27 01 00 00 5E 04 04 00 27 01 00 00 57 04 04 00 28 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:18:20]wFMCommunicate OK [17:18:20]SAM_PROTO_GetFieldsCounters done [17:18:20]requested_item shift.num is exist - process it [17:18:20]requested_item shift.opened is exist - process it [17:18:20]req_shift_opened [17:18:20]FM_GetShiftState [17:18:20]SAM_PROTO_GetShiftState [17:18:20]wFMCommunicate request_size=4 [17:18:20]MH_SAM_APDU [17:18:20]CAPDU: 80 13 01 00 [17:18:20]Write to MH i2c: E2 08 00 E2 74 80 13 01 00 00 00 00 00 D3 [17:18:20]Write i2c OK [17:18:20]MH_I2C_Read... [17:18:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:18:20]Read from MH i2c: E2 [17:18:20]MH_I2C_Read... [17:18:20]Read from MH i2c: E2 0E 00 [17:18:20]MH_I2C_Read... [17:18:20]Read from MH i2c: E2 0E 00 E2 74 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 32 [17:18:20]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [17:18:20]wFMCommunicate OK [17:18:20]SAM_PROTO_GetShiftState done [17:18:20]FM_GetShiftState done [17:18:20]req_shift_opened done [17:18:20]requested_item shift.open_date is exist - process it [17:18:20]req_shift_open_date [17:18:20]req_shift_open_date done [17:18:20]produce_requested_data done [17:18:20]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187831,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [17:18:20]process_action_free close_receipt [17:18:20]json_value_free [17:18:20]json_value_free done [17:18:20]process_json_proto returns [17:18:20]Send response to host [17:18:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187831,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [17:18:20]free response buf [17:18:20]execute_script done [17:18:20]execute_script returns [17:18:20]free content buf [17:18:20]Sock 8.Close socket [17:18:20]Sock 8.Thread stoped [17:18:24]OFD Sender: No OFD packet to send [17:18:29]OFD Sender: No OFD packet to send [17:18:34]OFD Sender: No OFD packet to send [17:18:39]OFD Sender: No OFD packet to send [17:18:44]OFD Sender: No OFD packet to send [17:18:49]OFD Sender: No OFD packet to send [17:18:54]OFD Sender: No OFD packet to send [17:18:59]OFD Sender: No OFD packet to send [17:19:04]OFD Sender: No OFD packet to send [17:19:09]OFD Sender: No OFD packet to send [17:19:14]OFD Sender: No OFD packet to send [17:19:19]OFD Sender: No OFD packet to send [17:19:24]OFD Sender: No OFD packet to send [17:19:25]accept exits with 9 [17:19:25]New connection [17:19:25]New thread 3067157860 created [17:19:25]Thread 3067014500 joined [17:19:25]Waiting for new connection... [17:19:25] Sock 9.Parse request [17:19:25]Sock 9.Check first char [17:19:25]Sock 9.First char is OK [17:19:25]request: POST /json_proto HTTP/1.0 [17:19:25]Method: POST [17:19:25]URL: /json_proto [17:19:25]Method is POST - this is cgi request [17:19:25]url: /json_proto [17:19:25]query_string will be loaded in cgi processing [17:19:25]execute_cgi json_proto POST (null) [17:19:25]execute_cgi path=json_proto method=POST [17:19:25]POST find Content-Length [17:19:25]Host: 172.17.42.131:8080 [17:19:25]Content-Length: 754 [17:19:25]Content-Type: application/json [17:19:25] [17:19:25]POST finish read [17:19:25]Found Content-Length = 754 [17:19:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209884", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30145314", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:19:25]execute_script... [17:19: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)209884", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30145314", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:19:25]POST & json_proto [17:19:25]process_json_proto [17:19:25]json parsed OK: [17:19:25]protocol is kg_v1.0 [17:19:25]action value=close_receipt [17:19:25]process_action close_receipt [17:19:25]cmd_close_receipt [17:19:25]MH_GetDate [17:19:25]Write to MH i2c: F0 00 00 E3 74 46 [17:19:25]Write i2c OK [17:19:25]MH_I2C_Read... [17:19:25]Read from MH i2c: F0 [17:19:25]MH_I2C_Read... [17:19:25]Read from MH i2c: F0 09 00 [17:19:25]MH_I2C_Read... [17:19:25]Read from MH i2c: F0 09 00 E3 74 00 22 8D 16 67 A0 18 CA 66 63 [17:19:25]GetLastDocTimeStamp 1729531101 [17:19:25]current date 1729531170 [17:19:25]FM_GetShiftState [17:19:25]SAM_PROTO_GetShiftState [17:19:25]wFMCommunicate request_size=4 [17:19:25]MH_SAM_APDU [17:19:25]CAPDU: 80 13 01 00 [17:19:25]Write to MH i2c: E2 08 00 E4 74 80 13 01 00 00 00 00 00 D5 [17:19:25]Write i2c OK [17:19:25]MH_I2C_Read... [17:19:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:19:25]Read from MH i2c: E2 [17:19:25]MH_I2C_Read... [17:19:25]Read from MH i2c: E2 0E 00 [17:19:25]MH_I2C_Read... [17:19:25]Read from MH i2c: E2 0E 00 E4 74 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 34 [17:19:25]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [17:19:25]wFMCommunicate OK [17:19:25]SAM_PROTO_GetShiftState done [17:19:25]FM_GetShiftState done [17:19:25]opened in 1729469754 [17:19:25]opened+sec_in_day 1729556154 [17:19:25]quantity*price = 0 [17:19:25]sum+1 = 1 [17:19:25]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 296 21.10.2024 17:19 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Талоны: ТК ГПНА Online 30145314 ФМ: 0000000000965340 ФД: 187832 ФПД: 197543077154999 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T171930&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187832&fm=197543077154999&tin=02508201610067®Number=0000000000100030&sum=0 [17:19:26]StoreToDocumentArchive [17:19:26]shift 460 fd 187832 [17:19:26]save to /storage/0460/doc_00187832 [17:19:26]save last doc name /storage/0460/doc_00187832 to /storage/kkm_last_doc_name [17:19:26]save OK [17:19:26]Clear old archive folders... [17:19:26]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:19:26]tlvbuf is 01282030 [17:19:26]SAM_PROTO_ClearQueue [17:19:26]wFMCommunicate request_size=4 [17:19:26]MH_SAM_APDU [17:19:26]CAPDU: 80 09 00 00 [17:19:26]Write to MH i2c: E2 08 00 F1 74 80 09 00 00 00 00 00 00 D7 [17:19:26]Write i2c OK [17:19:26]MH_I2C_Read... [17:19:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:19:26]Read from MH i2c: E2 [17:19:26]MH_I2C_Read... [17:19:26]Read from MH i2c: E2 03 00 [17:19:26]MH_I2C_Read... [17:19:26]Read from MH i2c: E2 03 00 F1 74 00 90 00 D9 [17:19:26]RAPDU: 90 00 [17:19:26]wFMCommunicate OK [17:19:26]SAM_PROTO_ClearQueue done [17:19:26]KKMCreateOFDPacket [17:19:26]OFDProtocolAddRootSTLVToBuf [17:19:26]FM_MakeSignedData [17:19:26]FM_MakeSignedData [17:19:26]SAM_PROTO_SignData [17:19:26]wFMCommunicate request_size=4 [17:19:26]MH_SAM_APDU [17:19:26]CAPDU: 80 0D 01 02 [17:19:26]Write to MH i2c: E2 08 00 F2 74 80 0D 01 02 00 00 00 00 DF [17:19:26]Write i2c OK [17:19:26]MH_I2C_Read... [17:19:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:19:26]Read from MH i2c: E2 [17:19:26]MH_I2C_Read... [17:19:26]Read from MH i2c: E2 03 00 [17:19:26]MH_I2C_Read... [17:19:26]Read from MH i2c: E2 03 00 F2 74 00 90 00 DA [17:19:26]RAPDU: 90 00 [17:19:26]wFMCommunicate OK [17:19:26]wFMCommunicate request_size=255 [17:19:26]MH_SAM_APDU [17:19:26]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 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 28 01 00 00 F4 03 04 00 22 8D 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 B8 DD 02 00 35 04 06 00 B3 [17:19:26]Write to MH i2c: E2 02 01 F3 74 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 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 28 01 00 00 F4 03 04 00 22 8D 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 B8 DD 02 00 35 04 06 00 B3 00 00 74 [17:19:26]Write i2c OK [17:19:26]MH_I2C_Read... [17:19:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:19:27]Read from MH i2c: E2 [17:19:27]MH_I2C_Read... [17:19:27]Read from MH i2c: E2 03 00 [17:19:27]MH_I2C_Read... [17:19:27]Read from MH i2c: E2 03 00 F3 74 00 90 00 DB [17:19:27]RAPDU: 90 00 [17:19:27]wFMCommunicate OK [17:19:27]wFMCommunicate request_size=10 [17:19:27]MH_SAM_APDU [17:19:27]CAPDU: 80 0D 02 02 05 AA 14 F1 10 B7 [17:19:27]Write to MH i2c: E2 0D 00 F4 74 80 0D 02 02 05 00 AA 14 F1 10 B7 00 00 62 [17:19:27]Write i2c OK [17:19:27]MH_I2C_Read... [17:19:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:19:27]Read from MH i2c: E2 [17:19:27]MH_I2C_Read... [17:19:27]Read from MH i2c: E2 03 00 [17:19:27]MH_I2C_Read... [17:19:27]Read from MH i2c: E2 03 00 F4 74 00 90 00 DC [17:19:27]RAPDU: 90 00 [17:19:27]wFMCommunicate OK [17:19:27]wFMCommunicate request_size=4 [17:19:27]MH_SAM_APDU [17:19:27]CAPDU: 80 0D 03 02 [17:19:27]Write to MH i2c: E2 08 00 F5 74 80 0D 03 02 00 00 00 00 E4 [17:19:27]Write i2c OK [17:19:27]MH_I2C_Read... [17:19:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:19:27]Read from MH i2c: E2 [17:19:27]MH_I2C_Read... [17:19:27]Read from MH i2c: E2 0B 00 [17:19:27]MH_I2C_Read... [17:19:27]Read from MH i2c: E2 0B 00 F5 74 00 98 1D 0D D7 6A 4E 8A 0E 90 00 CE [17:19:27]RAPDU: 98 1D 0D D7 6A 4E 8A 0E 90 00 [17:19:27]wFMCommunicate OK [17:19:27]SAM_PROTO_SignData done [17:19:27]FM_MakeSignedData done [17:19:27]CreateOFDProtocolMessage [17:19:27]wFMCommunicate request_size=4 [17:19:27]MH_SAM_APDU [17:19:27]CAPDU: 80 11 00 00 [17:19:27]Write to MH i2c: E2 08 00 F6 74 80 11 00 00 00 00 00 00 E4 [17:19:27]Write i2c OK [17:19:27]MH_I2C_Read... [17:19:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:19:27]Read from MH i2c: E2 [17:19:27]MH_I2C_Read... [17:19:27]Read from MH i2c: E2 17 00 [17:19:27]MH_I2C_Read... [17:19:27]Read from MH i2c: E2 17 00 F6 74 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 32 [17:19:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [17:19:27]wFMCommunicate OK [17:19:27]CreateOFDProtocolMessage done [17:19:27]OFDSenderStorePacket 187832 [17:19:27]StoreOFDPacket docnum=187832 [17:19:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 4B 07 07 01 85 95 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 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 28 01 00 00 F4 03 04 00 22 8D 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 B8 DD 02 00 35 04 06 00 B3 AA 14 F1 10 B7 98 1D 0D D7 6A 4E 8A 0E [17:19:27]CheckFolder [17:19:27]dirname=/storage/ofd_packets [17:19:27]CheckFolder done [17:19:27]ProducePacketName [17:19:27]name=ofd_packets/00187832 [17:19:27]NVStorageSaveData ofd_packets/00187832 [17:19:27]File name is /storage/ofd_packets/00187832 [17:19:27]Write 301 bytes [17:19:27]NVStorageSaveData done [17:19:27]OFDSenderStorePacket done [17:19:27]KKMCreateOFDPacket done [17:19:27]NVStorageSaveData kkm_last_timestamp [17:19:27]File name is /storage/kkm_last_timestamp [17:19:27]Write 4 bytes [17:19:27]NVStorageSaveData done [17:19:27]ExternCall_PrintAddStr [17:19:27]wPrintStart [17:19:27]Write to MH i2c: 01 00 00 F7 74 6B [17:19:27]Write i2c OK [17:19:27]MH_I2C_Read... [17:19:27]Read from MH i2c: 01 [17:19:27]MH_I2C_Read... [17:19:27]Read from MH i2c: 01 07 00 [17:19:27]MH_I2C_Read... [17:19:27]Read from MH i2c: 01 07 00 F7 74 00 00 00 00 00 FF 0F 80 [17:19:27]RasterBufferAndPrint [17:19:27]line Счет N : (1)209884 [17:19:27]line ИНН: 02508201610067 [17:19:27]line Контрольно-Кассовый Чек [17:19:27]line ПРОДАЖА [17:19:27]line ТРК (МРК, ГНК) : 33 [17:19:27]line Товар: 2710124500 [17:19:27]line Аи-95-К-3 [17:19:27]line 10.000 * 0.00 [17:19:27]line = 0.00 [17:19:27]line НДС 12% НСП 1% [17:19:27]line > о реализуемом товаре [17:19:27]line ИТОГО: 0.00 [17:19:27]line НСП 1% : 0.00 [17:19:27]line НДС 12% : 0.00 [17:19:27]line Наличными: 0.00 [17:19:27]line Безнал.: 0.00 [17:19:27]line Место: АЗС № 86 "Партнер Нефть" [17:19:27]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [17:19:27]line СНО: Общий режим [17:19:27]line Чек 296 21.10.2024 17:19 [17:19:27]line Смена: 460 ФФД: 1.0 [17:19:27]line ЗНМ: 0300000155 [17:19:27]line РНМ: 0000000000100030 [17:19:27]line Версия ККМ: 001 [17:19:27]line Талоны: ТК ГПНА Online [17:19:27]line 30145314 [17:19:27]line ФМ: 0000000000965340 [17:19:27]line ФД: 187832 [17:19:27]line ФПД: 197543077154999 [17:19:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T171930&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187832&fm=197543077154999&tin=02508201610067®Number=0000000000100030&sum=0 [17:19:27]written 0, free lines is 4095 [17:19:27]OFD Sender: Processing packet 187832 [packets to send 1062, broken 1061] [17:19:27]ProducePacketName [17:19:27]name=ofd_packets/00187832 [17:19:27]OFD Sender: To server: pG, [17:19:27]CommunicateWithHost lk.salyk.kg:30040 [17:19:27]ConnectInit lk.salyk.kg [17:19:27]Connected sock=10 [17:19:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 4B 07 07 01 85 95 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 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 28 01 00 00 F4 03 04 00 22 8D 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 B8 DD 02 00 35 04 06 00 B3 AA 14 F1 10 B7 98 1D 0D D7 6A 4E 8A 0E [17:19:27]Write to MH i2c: 01 00 00 21 75 96 [17:19:27]Write i2c OK [17:19:27]MH_I2C_Read... [17:19:27]Read from MH i2c: 01 [17:19:27]MH_I2C_Read... [17:19:27]Read from MH i2c: 01 07 00 [17:19:27]MH_I2C_Read... [17:19:27]Read from MH i2c: 01 07 00 21 75 00 00 00 00 00 7F 0C 28 [17:19:27]RasterBufferAndPrint [17:19:27]line [17:19:27]line [17:19:27]line [17:19:27]line [17:19:27]line [17:19:27]written 0, free lines is 3205 [17:19:27]MH_Cut [17:19:27]Write to MH i2c: D1 01 00 28 75 01 6F [17:19:27]Write i2c OK [17:19:27]MH_I2C_Read... [17:19:27]Read from MH i2c: D1 [17:19:27]MH_I2C_Read... [17:19:27]Read from MH i2c: D1 01 00 [17:19:27]MH_I2C_Read... [17:19:27]Read from MH i2c: D1 01 00 28 75 00 6E [17:19:27]Write to MH i2c: 01 00 00 29 75 9E [17:19:27]Write i2c OK [17:19:27]MH_I2C_Read... [17:19:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 9C 10 47 00 00 B2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 B8 DD 02 00 F4 03 04 00 11 37 16 67 B6 04 01 00 00 5C BD A3 F6 A1 F1 46 55 [17:19:28]CommunicateWithHost err = 0 [17:19:28]CheckOFDResponse [17:19:28]1017 (14) - 77093643461234 [17:19:28]1041 (16) - 0000000000965340 [17:19:28]1040 (4) - 187832 [17:19:28]1012 (4) - 21.10.2024 11:12 [17:19:28]1206 (1) - 0 [17:19:28]OFD Sender: Remove packet 187832 [17:19:28]ProducePacketName [17:19:28]name=ofd_packets/00187832 [17:19:28]NVStorageDeleteData [17:19:28]OFD Sender: No OFD packet to send [17:19:28]*** Cut start [17:19:28]*** Partial cut [17:19:28]*** CUTSNS_PIN = 1 [17:19:29]*** CUTSNS_PIN = 0 [17:19:29]*** Brake cut motor [17:19:29]Read from MH i2c: 01 [17:19:29]MH_I2C_Read... [17:19:29]*** Stop cut motor [17:19:29]*** Cut end [17:19:29]Read from MH i2c: 01 07 00 [17:19:29]MH_I2C_Read... [17:19:29]Read from MH i2c: 01 07 00 29 75 00 00 00 00 00 FF 0F B3 [17:19:29]process_action close_receipt done [17:19:29]requested_data is exist [17:19:29]produce_requested_data [17:19:29]requested_item fm.sn is exist - process it [17:19:29]wFMCommunicate request_size=4 [17:19:29]MH_SAM_APDU [17:19:29]CAPDU: 80 11 00 00 [17:19:29]Write to MH i2c: E2 08 00 2A 75 80 11 00 00 00 00 00 00 19 [17:19:29]Write i2c OK [17:19:29]MH_I2C_Read... [17:19:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:19:29]Read from MH i2c: E2 [17:19:29]MH_I2C_Read... [17:19:29]Read from MH i2c: E2 17 00 [17:19:29]MH_I2C_Read... [17:19:29]Read from MH i2c: E2 17 00 2A 75 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 67 [17:19:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [17:19:29]wFMCommunicate OK [17:19:29]requested_item fd.num is exist - process it [17:19:29]SAM_PROTO_GetFieldsCounters [17:19:29]wFMCommunicate request_size=4 [17:19:29]MH_SAM_APDU [17:19:29]CAPDU: 80 13 00 00 [17:19:29]Write to MH i2c: E2 08 00 2B 75 80 13 00 00 00 00 00 00 1C [17:19:29]Write i2c OK [17:19:29]MH_I2C_Read... [17:19:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:19:29]Read from MH i2c: E2 [17:19:29]MH_I2C_Read... [17:19:29]Read from MH i2c: E2 62 00 [17:19:29]MH_I2C_Read... [17:19:29]Read from MH i2c: E2 62 00 2B 75 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 B8 DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 28 01 00 00 5E 04 04 00 28 01 00 00 57 04 04 00 29 01 00 00 19 04 04 00 00 00 00 00 90 00 02 [17:19:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 B8 DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 28 01 00 00 5E 04 04 00 28 01 00 00 57 04 04 00 29 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:19:29]wFMCommunicate OK [17:19:29]SAM_PROTO_GetFieldsCounters done [17:19:29]requested_item shift.num is exist - process it [17:19:29]requested_item shift.opened is exist - process it [17:19:29]req_shift_opened [17:19:29]FM_GetShiftState [17:19:29]SAM_PROTO_GetShiftState [17:19:29]wFMCommunicate request_size=4 [17:19:29]MH_SAM_APDU [17:19:29]CAPDU: 80 13 01 00 [17:19:29]Write to MH i2c: E2 08 00 2C 75 80 13 01 00 00 00 00 00 1E [17:19:29]Write i2c OK [17:19:29]MH_I2C_Read... [17:19:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:19:29]Read from MH i2c: E2 [17:19:29]MH_I2C_Read... [17:19:29]Read from MH i2c: E2 0E 00 [17:19:29]MH_I2C_Read... [17:19:29]Read from MH i2c: E2 0E 00 2C 75 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 7D [17:19:29]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [17:19:29]wFMCommunicate OK [17:19:29]SAM_PROTO_GetShiftState done [17:19:29]FM_GetShiftState done [17:19:29]req_shift_opened done [17:19:29]requested_item shift.open_date is exist - process it [17:19:29]req_shift_open_date [17:19:29]req_shift_open_date done [17:19:29]produce_requested_data done [17:19:29]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187832,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [17:19:29]process_action_free close_receipt [17:19:29]json_value_free [17:19:29]json_value_free done [17:19:29]process_json_proto returns [17:19:29]Send response to host [17:19:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187832,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [17:19:29]free response buf [17:19:29]execute_script done [17:19:29]execute_script returns [17:19:29]free content buf [17:19:29]Sock 9.Close socket [17:19:29]Sock 9.Thread stoped [17:19:33]OFD Sender: No OFD packet to send [17:19:38]OFD Sender: No OFD packet to send [17:19:43]OFD Sender: No OFD packet to send [17:19:48]OFD Sender: No OFD packet to send [17:19:53]OFD Sender: No OFD packet to send [17:19:58]OFD Sender: No OFD packet to send [17:20:03]OFD Sender: No OFD packet to send [17:20:08]OFD Sender: No OFD packet to send [17:20:13]OFD Sender: No OFD packet to send [17:20:18]OFD Sender: No OFD packet to send [17:20:23]OFD Sender: No OFD packet to send [17:20:28]OFD Sender: No OFD packet to send [17:20:33]OFD Sender: No OFD packet to send [17:20:38]OFD Sender: No OFD packet to send [17:20:43]OFD Sender: No OFD packet to send [17:20:48]OFD Sender: No OFD packet to send [17:20:53]OFD Sender: No OFD packet to send [17:20:58]OFD Sender: No OFD packet to send [17:21:03]OFD Sender: No OFD packet to send [17:21:08]OFD Sender: No OFD packet to send [17:21: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:50]accept exits with 8 [17:21:50]New connection [17:21:50]New thread 3067014500 created [17:21:50]Thread 3067157860 joined [17:21:50]Waiting for new connection... [17:21:50] Sock 8.Parse request [17:21:50]Sock 8.Check first char [17:21:50]Sock 8.First char is OK [17:21:50]request: POST /json_proto HTTP/1.0 [17:21:50]Method: POST [17:21:50]URL: /json_proto [17:21:50]Method is POST - this is cgi request [17:21:50]url: /json_proto [17:21:50]query_string will be loaded in cgi processing [17:21:50]execute_cgi json_proto POST (null) [17:21:50]execute_cgi path=json_proto method=POST [17:21:50]POST find Content-Length [17:21:50]Host: 172.17.42.131:8080 [17:21:50]Content-Length: 688 [17:21:50]Content-Type: application/json [17:21:50] [17:21:50]POST finish read [17:21:50]Found Content-Length = 688 [17:21:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209885", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 25.910, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:21:50]execute_script... [17:21: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)209885", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 25.910, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:21:50]POST & json_proto [17:21:50]process_json_proto [17:21:50]json parsed OK: [17:21:50]protocol is kg_v1.0 [17:21:50]action value=close_receipt [17:21:50]process_action close_receipt [17:21:50]cmd_close_receipt [17:21:50]MH_GetDate [17:21:50]Write to MH i2c: F0 00 00 2D 75 91 [17:21:50]Write i2c OK [17:21:50]MH_I2C_Read... [17:21:50]Read from MH i2c: F0 [17:21:50]MH_I2C_Read... [17:21:50]Read from MH i2c: F0 09 00 [17:21:50]MH_I2C_Read... [17:21:50]Read from MH i2c: F0 09 00 2D 75 00 B3 8D 16 67 A0 18 CA 66 3F [17:21:50]GetLastDocTimeStamp 1729531170 [17:21:50]current date 1729531315 [17:21:50]FM_GetShiftState [17:21:50]SAM_PROTO_GetShiftState [17:21:50]wFMCommunicate request_size=4 [17:21:50]MH_SAM_APDU [17:21:50]CAPDU: 80 13 01 00 [17:21:50]Write to MH i2c: E2 08 00 2E 75 80 13 01 00 00 00 00 00 20 [17:21:50]Write i2c OK [17:21:50]MH_I2C_Read... [17:21:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:21:50]Read from MH i2c: E2 [17:21:50]MH_I2C_Read... [17:21:50]Read from MH i2c: E2 0E 00 [17:21:50]MH_I2C_Read... [17:21:50]Read from MH i2c: E2 0E 00 2E 75 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 7F [17:21:50]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [17:21:50]wFMCommunicate OK [17:21:50]SAM_PROTO_GetShiftState done [17:21:50]FM_GetShiftState done [17:21:50]opened in 1729469754 [17:21:50]opened+sec_in_day 1729556154 [17:21:50]quantity*price = 200025 [17:21:50]sum+1 = 200026 [17:21:50]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 297 21.10.2024 17:21 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 187833 ФПД: 201029036906719 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T172155&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187833&fm=201029036906719&tin=02508201610067®Number=0000000000100030&sum=200000 [17:21:51]StoreToDocumentArchive [17:21:51]shift 460 fd 187833 [17:21:51]save to /storage/0460/doc_00187833 [17:21:51]save last doc name /storage/0460/doc_00187833 to /storage/kkm_last_doc_name [17:21:51]save OK [17:21:51]Clear old archive folders... [17:21:51]ProcessDocumentItem done err = 0, tmpTLVsize=257 [17:21:51]tlvbuf is 0129AA50 [17:21:51]SAM_PROTO_ClearQueue [17:21:51]wFMCommunicate request_size=4 [17:21:51]MH_SAM_APDU [17:21:51]CAPDU: 80 09 00 00 [17:21:51]Write to MH i2c: E2 08 00 3B 75 80 09 00 00 00 00 00 00 22 [17:21:51]Write i2c OK [17:21:51]MH_I2C_Read... [17:21:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:21:51]Read from MH i2c: E2 [17:21:51]MH_I2C_Read... [17:21:51]Read from MH i2c: E2 03 00 [17:21:51]MH_I2C_Read... [17:21:51]Read from MH i2c: E2 03 00 3B 75 00 90 00 24 [17:21:51]RAPDU: 90 00 [17:21:51]wFMCommunicate OK [17:21:51]SAM_PROTO_ClearQueue done [17:21:51]KKMCreateOFDPacket [17:21:51]OFDProtocolAddRootSTLVToBuf [17:21:51]FM_MakeSignedData [17:21:51]FM_MakeSignedData [17:21:51]SAM_PROTO_SignData [17:21:51]wFMCommunicate request_size=4 [17:21:51]MH_SAM_APDU [17:21:51]CAPDU: 80 0D 01 02 [17:21:51]Write to MH i2c: E2 08 00 3C 75 80 0D 01 02 00 00 00 00 2A [17:21:51]Write i2c OK [17:21:51]MH_I2C_Read... [17:21:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:21:51]Read from MH i2c: E2 [17:21:51]MH_I2C_Read... [17:21:51]Read from MH i2c: E2 03 00 [17:21:51]MH_I2C_Read... [17:21:51]Read from MH i2c: E2 03 00 3C 75 00 90 00 25 [17:21:51]RAPDU: 90 00 [17:21:51]wFMCommunicate OK [17:21:51]wFMCommunicate request_size=255 [17:21:51]MH_SAM_APDU [17:21:51]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 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 36 65 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 01 00 00 F4 03 04 00 B3 8D 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 B9 DD 02 [17:21:51]Write to MH i2c: E2 02 01 3D 75 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 36 65 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 01 00 00 F4 03 04 00 B3 8D 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 B9 DD 02 00 00 17 [17:21:51]Write i2c OK [17:21:51]MH_I2C_Read... [17:21:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:21:51]Read from MH i2c: E2 [17:21:51]MH_I2C_Read... [17:21:51]Read from MH i2c: E2 03 00 [17:21:51]MH_I2C_Read... [17:21:51]Read from MH i2c: E2 03 00 3D 75 00 90 00 26 [17:21:51]RAPDU: 90 00 [17:21:51]wFMCommunicate OK [17:21:51]wFMCommunicate request_size=16 [17:21:51]MH_SAM_APDU [17:21:51]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 B6 D5 B8 55 98 DF [17:21:51]Write to MH i2c: E2 13 00 3E 75 80 0D 02 02 0B 00 00 35 04 06 00 B6 D5 B8 55 98 DF 00 00 91 [17:21:51]Write i2c OK [17:21:51]MH_I2C_Read... [17:21:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:21:51]Read from MH i2c: E2 [17:21:51]MH_I2C_Read... [17:21:51]Read from MH i2c: E2 03 00 [17:21:51]MH_I2C_Read... [17:21:51]Read from MH i2c: E2 03 00 3E 75 00 90 00 27 [17:21:51]RAPDU: 90 00 [17:21:51]wFMCommunicate OK [17:21:51]wFMCommunicate request_size=4 [17:21:51]MH_SAM_APDU [17:21:51]CAPDU: 80 0D 03 02 [17:21:51]Write to MH i2c: E2 08 00 3F 75 80 0D 03 02 00 00 00 00 2F [17:21:51]Write i2c OK [17:21:51]MH_I2C_Read... [17:21:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:21:51]Read from MH i2c: E2 [17:21:51]MH_I2C_Read... [17:21:51]Read from MH i2c: E2 0B 00 [17:21:51]MH_I2C_Read... [17:21:51]Read from MH i2c: E2 0B 00 3F 75 00 B2 07 E7 B3 53 E0 DB F1 90 00 82 [17:21:51]RAPDU: B2 07 E7 B3 53 E0 DB F1 90 00 [17:21:51]wFMCommunicate OK [17:21:51]SAM_PROTO_SignData done [17:21:51]FM_MakeSignedData done [17:21:51]CreateOFDProtocolMessage [17:21:51]wFMCommunicate request_size=4 [17:21:51]MH_SAM_APDU [17:21:51]CAPDU: 80 11 00 00 [17:21:51]Write to MH i2c: E2 08 00 40 75 80 11 00 00 00 00 00 00 2F [17:21:51]Write i2c OK [17:21:51]MH_I2C_Read... [17:21:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:21:51]Read from MH i2c: E2 [17:21:51]MH_I2C_Read... [17:21:51]Read from MH i2c: E2 17 00 [17:21:51]MH_I2C_Read... [17:21:51]Read from MH i2c: E2 17 00 40 75 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 7D [17:21:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [17:21:51]wFMCommunicate OK [17:21:51]CreateOFDProtocolMessage done [17:21:51]OFDSenderStorePacket 187833 [17:21:51]StoreOFDPacket docnum=187833 [17:21:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 A9 63 0D 01 C9 A7 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 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 36 65 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 01 00 00 F4 03 04 00 B3 8D 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 B9 DD 02 00 35 04 06 00 B6 D5 B8 55 98 DF B2 07 E7 B3 53 E0 DB F1 [17:21:51]CheckFolder [17:21:51]dirname=/storage/ofd_packets [17:21:51]CheckFolder done [17:21:51]ProducePacketName [17:21:51]name=ofd_packets/00187833 [17:21:51]NVStorageSaveData ofd_packets/00187833 [17:21:51]File name is /storage/ofd_packets/00187833 [17:21:51]Write 307 bytes [17:21:51]NVStorageSaveData done [17:21:51]OFDSenderStorePacket done [17:21:51]KKMCreateOFDPacket done [17:21:51]NVStorageSaveData kkm_last_timestamp [17:21:51]File name is /storage/kkm_last_timestamp [17:21:51]Write 4 bytes [17:21:51]NVStorageSaveData done [17:21:51]ExternCall_PrintAddStr [17:21:51]wPrintStart [17:21:51]Write to MH i2c: 01 00 00 41 75 B6 [17:21:51]Write i2c OK [17:21:51]MH_I2C_Read... [17:21:51]Read from MH i2c: 01 [17:21:51]MH_I2C_Read... [17:21:51]Read from MH i2c: 01 07 00 [17:21:51]MH_I2C_Read... [17:21:51]Read from MH i2c: 01 07 00 41 75 00 00 00 00 00 FF 0F CB [17:21:51]RasterBufferAndPrint [17:21:51]line Счет N : (1)209885 [17:21:51]line ИНН: 02508201610067 [17:21:51]line Контрольно-Кассовый Чек [17:21:51]line ПРОДАЖА [17:21:51]line ТРК (МРК, ГНК) : 21 [17:21:51]line Товар: 2710194210 [17:21:51]line D-ENERGY ДТ-К-5 [17:21:51]line 25.910 * 77.20 [17:21:51]line = 2000.25 [17:21:51]line НДС 12% НСП 1% [17:21:51]line > о реализуемом товаре [17:21:51]line ОКРУГЛЕНИЕ: -0.25 [17:21:51]line ИТОГО: 2000.00 [17:21:51]line Внесено: 2000.00 [17:21:51]line СДАЧА: 0.00 [17:21:51]line НСП 1% : 17.70 [17:21:51]line НДС 12% : 212.42 [17:21:51]line Наличными: 2000.00 [17:21:51]line Безнал.: 0.00 [17:21:51]line Место: АЗС № 86 "Партнер Нефть" [17:21:51]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [17:21:51]line СНО: Общий режим [17:21:51]line Чек 297 21.10.2024 17:21 [17:21:51]line Смена: 460 ФФД: 1.0 [17:21:51]line ЗНМ: 0300000155 [17:21:51]line РНМ: 0000000000100030 [17:21:51]line Версия ККМ: 001 [17:21:51]line ФМ: 0000000000965340 [17:21:51]line ФД: 187833 [17:21:51]line ФПД: 201029036906719 [17:21:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T172155&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187833&fm=201029036906719&tin=02508201610067®Number=0000000000100030&sum=200000 [17:21:51]OFD Sender: Processing packet 187833 [packets to send 1062, broken 1061] [17:21:51]ProducePacketName [17:21:51]name=ofd_packets/00187833 [17:21:51]OFD Sender: To server: pG, [17:21:51]CommunicateWithHost lk.salyk.kg:30040 [17:21:51]ConnectInit lk.salyk.kg [17:21:51]written 0, free lines is 4095 [17:21:52]Connected sock=10 [17:21:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 A9 63 0D 01 C9 A7 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 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 36 65 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 01 00 00 F4 03 04 00 B3 8D 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 B9 DD 02 00 35 04 06 00 B6 D5 B8 55 98 DF B2 07 E7 B3 53 E0 DB F1 [17:21:52]Write to MH i2c: 01 00 00 6C 75 E1 [17:21:52]Write i2c OK [17:21:52]MH_I2C_Read... [17:21:52]Read from MH i2c: 01 [17:21:52]MH_I2C_Read... [17:21:52]Read from MH i2c: 01 07 00 [17:21:52]MH_I2C_Read... [17:21:52]Read from MH i2c: 01 07 00 6C 75 00 00 00 00 00 68 0C 5C [17:21:52]RasterBufferAndPrint [17:21:52]line [17:21:52]line [17:21:52]line [17:21:52]line [17:21:52]line [17:21:52]written 0, free lines is 3180 [17:21:52]MH_Cut [17:21:52]Write to MH i2c: D1 01 00 73 75 01 BA [17:21:52]Write i2c OK [17:21:52]MH_I2C_Read... [17:21:52]Read from MH i2c: D1 [17:21:52]MH_I2C_Read... [17:21:52]Read from MH i2c: D1 01 00 [17:21:52]MH_I2C_Read... [17:21:52]Read from MH i2c: D1 01 00 73 75 00 B9 [17:21:52]Write to MH i2c: 01 00 00 74 75 E9 [17:21:52]Write i2c OK [17:21:52]MH_I2C_Read... [17:21:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 9D 4E 47 00 0E 4C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 B9 DD 02 00 F4 03 04 00 A2 37 16 67 B6 04 01 00 00 2C F4 52 F2 00 2A 33 B1 [17:21:52]CommunicateWithHost err = 0 [17:21:52]CheckOFDResponse [17:21:52]1017 (14) - 77093643461234 [17:21:52]1041 (16) - 0000000000965340 [17:21:52]1040 (4) - 187833 [17:21:52]1012 (4) - 21.10.2024 11:14 [17:21:52]1206 (1) - 0 [17:21:52]OFD Sender: Remove packet 187833 [17:21:52]ProducePacketName [17:21:52]name=ofd_packets/00187833 [17:21:52]NVStorageDeleteData [17:21:53]OFD Sender: No OFD packet to send [17:21:53]*** Cut start [17:21:53]*** Partial cut [17:21:53]*** CUTSNS_PIN = 1 [17:21:53]*** CUTSNS_PIN = 0 [17:21:53]*** Brake cut motor [17:21:54]Read from MH i2c: 01 [17:21:54]MH_I2C_Read... [17:21:54]*** Stop cut motor [17:21:54]*** Cut end [17:21:54]Read from MH i2c: 01 07 00 [17:21:54]MH_I2C_Read... [17:21:54]Read from MH i2c: 01 07 00 74 75 00 00 00 00 00 FF 0F FE [17:21:54]process_action close_receipt done [17:21:54]requested_data is exist [17:21:54]produce_requested_data [17:21:54]requested_item fm.sn is exist - process it [17:21:54]wFMCommunicate request_size=4 [17:21:54]MH_SAM_APDU [17:21:54]CAPDU: 80 11 00 00 [17:21:54]Write to MH i2c: E2 08 00 75 75 80 11 00 00 00 00 00 00 64 [17:21:54]Write i2c OK [17:21:54]MH_I2C_Read... [17:21:54]Read from MH i2c: E2 [17:21:54]MH_I2C_Read... [17:21:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:21:54]Read from MH i2c: E2 17 00 [17:21:54]MH_I2C_Read... [17:21:54]Read from MH i2c: E2 17 00 75 75 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 B2 [17:21:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [17:21:54]wFMCommunicate OK [17:21:54]requested_item fd.num is exist - process it [17:21:54]SAM_PROTO_GetFieldsCounters [17:21:54]wFMCommunicate request_size=4 [17:21:54]MH_SAM_APDU [17:21:54]CAPDU: 80 13 00 00 [17:21:54]Write to MH i2c: E2 08 00 76 75 80 13 00 00 00 00 00 00 67 [17:21:54]Write i2c OK [17:21:54]MH_I2C_Read... [17:21:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:21:54]Read from MH i2c: E2 [17:21:54]MH_I2C_Read... [17:21:54]Read from MH i2c: E2 62 00 [17:21:54]MH_I2C_Read... [17:21:54]Read from MH i2c: E2 62 00 76 75 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 B9 DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 29 01 00 00 5E 04 04 00 29 01 00 00 57 04 04 00 2A 01 00 00 19 04 04 00 00 00 00 00 90 00 51 [17:21:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 B9 DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 29 01 00 00 5E 04 04 00 29 01 00 00 57 04 04 00 2A 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:21:54]wFMCommunicate OK [17:21:54]SAM_PROTO_GetFieldsCounters done [17:21:54]requested_item shift.num is exist - process it [17:21:54]requested_item shift.opened is exist - process it [17:21:54]req_shift_opened [17:21:54]FM_GetShiftState [17:21:54]SAM_PROTO_GetShiftState [17:21:54]wFMCommunicate request_size=4 [17:21:54]MH_SAM_APDU [17:21:54]CAPDU: 80 13 01 00 [17:21:54]Write to MH i2c: E2 08 00 77 75 80 13 01 00 00 00 00 00 69 [17:21:54]Write i2c OK [17:21:54]MH_I2C_Read... [17:21:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:21:54]Read from MH i2c: E2 [17:21:54]MH_I2C_Read... [17:21:54]Read from MH i2c: E2 0E 00 [17:21:54]MH_I2C_Read... [17:21:54]Read from MH i2c: E2 0E 00 77 75 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 C8 [17:21:54]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [17:21:54]wFMCommunicate OK [17:21:54]SAM_PROTO_GetShiftState done [17:21:54]FM_GetShiftState done [17:21:54]req_shift_opened done [17:21:54]requested_item shift.open_date is exist - process it [17:21:54]req_shift_open_date [17:21:54]req_shift_open_date done [17:21:54]produce_requested_data done [17:21:54]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187833,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [17:21:54]process_action_free close_receipt [17:21:54]json_value_free [17:21:54]json_value_free done [17:21:54]process_json_proto returns [17:21:54]Send response to host [17:21:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187833,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [17:21:54]free response buf [17:21:54]execute_script done [17:21:54]execute_script returns [17:21:54]free content buf [17:21:54]Sock 8.Close socket [17:21:54]Sock 8.Thread stoped [17:21:58]OFD Sender: No OFD packet to send [17:22:03]OFD Sender: No OFD packet to send [17:22:08]OFD Sender: No OFD packet to send [17:22:13]OFD Sender: No OFD packet to send [17:22:18]OFD Sender: No OFD packet to send [17:22:23]OFD Sender: No OFD packet to send [17:22:28]OFD Sender: No OFD packet to send [17:22:33]OFD Sender: No OFD packet to send [17:22:38]OFD Sender: No OFD packet to send [17:22:43]OFD Sender: No OFD packet to send [17:22:48]OFD Sender: No OFD packet to send [17:22:53]OFD Sender: No OFD packet to send [17:22:58]OFD Sender: No OFD packet to send [17:23:03]OFD Sender: No OFD packet to send [17:23:08]OFD Sender: No OFD packet to send [17:23:13]OFD Sender: No OFD packet to send [17:23:18]OFD Sender: No OFD packet to send [17:23:23]OFD Sender: No OFD packet to send [17:23:28]OFD Sender: No OFD packet to send [17:23:33]OFD Sender: No OFD packet to send [17:23:38]OFD Sender: No OFD packet to send [17:23:43]OFD Sender: No OFD packet to send [17:23:48]OFD Sender: No OFD packet to send [17:23:53]OFD Sender: No OFD packet to send [17:23:58]OFD Sender: No OFD packet to send [17:24:03]OFD Sender: No OFD packet to send [17:24:07]accept exits with 9 [17:24:07]New connection [17:24:07]New thread 3067157860 created [17:24:07]Thread 3067014500 joined [17:24:07]Waiting for new connection... [17:24:07] Sock 9.Parse request [17:24:07]Sock 9.Check first char [17:24:07]Sock 9.First char is OK [17:24:07]request: POST /json_proto HTTP/1.0 [17:24:07]Method: POST [17:24:07]URL: /json_proto [17:24:07]Method is POST - this is cgi request [17:24:07]url: /json_proto [17:24:07]query_string will be loaded in cgi processing [17:24:07]execute_cgi json_proto POST (null) [17:24:07]execute_cgi path=json_proto method=POST [17:24:07]POST find Content-Length [17:24:07]Host: 172.17.42.131:8080 [17:24:07]Content-Length: 751 [17:24:07]Content-Type: application/json [17:24:07] [17:24:07]POST finish read [17:24:07]Found Content-Length = 751 [17:24:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209887", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 10.620, "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\u000A30116760", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:24:07]execute_script... [17:24: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)209887", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 10.620, "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\u000A30116760", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:24:07]POST & json_proto [17:24:07]process_json_proto [17:24:07]json parsed OK: [17:24:07]protocol is kg_v1.0 [17:24:07]action value=close_receipt [17:24:07]process_action close_receipt [17:24:07]cmd_close_receipt [17:24:07]MH_GetDate [17:24:07]Write to MH i2c: F0 00 00 78 75 DC [17:24:07]Write i2c OK [17:24:07]MH_I2C_Read... [17:24:07]Read from MH i2c: F0 [17:24:07]MH_I2C_Read... [17:24:07]Read from MH i2c: F0 09 00 [17:24:07]MH_I2C_Read... [17:24:07]Read from MH i2c: F0 09 00 78 75 00 3C 8E 16 67 A0 18 CA 66 14 [17:24:07]GetLastDocTimeStamp 1729531315 [17:24:07]current date 1729531452 [17:24:07]FM_GetShiftState [17:24:07]SAM_PROTO_GetShiftState [17:24:07]wFMCommunicate request_size=4 [17:24:07]MH_SAM_APDU [17:24:07]CAPDU: 80 13 01 00 [17:24:07]Write to MH i2c: E2 08 00 79 75 80 13 01 00 00 00 00 00 6B [17:24:07]Write i2c OK [17:24:07]MH_I2C_Read... [17:24:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:24:07]Read from MH i2c: E2 [17:24:07]MH_I2C_Read... [17:24:07]Read from MH i2c: E2 0E 00 [17:24:07]MH_I2C_Read... [17:24:07]Read from MH i2c: E2 0E 00 79 75 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 CA [17:24:07]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [17:24:07]wFMCommunicate OK [17:24:07]SAM_PROTO_GetShiftState done [17:24:07]FM_GetShiftState done [17:24:07]opened in 1729469754 [17:24:07]opened+sec_in_day 1729556154 [17:24:07]quantity*price = 0 [17:24:07]sum+1 = 1 [17:24:07]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 298 21.10.2024 17:24 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Талоны: ТК ГПНА Online 30116760 ФМ: 0000000000965340 ФД: 187834 ФПД: 179715285428006 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T172412&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187834&fm=179715285428006&tin=02508201610067®Number=0000000000100030&sum=0 [17:24:08]StoreToDocumentArchive [17:24:08]shift 460 fd 187834 [17:24:08]save to /storage/0460/doc_00187834 [17:24:08]save last doc name /storage/0460/doc_00187834 to /storage/kkm_last_doc_name [17:24:08]save OK [17:24:08]Clear old archive folders... [17:24:08]ProcessDocumentItem done err = 0, tmpTLVsize=248 [17:24:08]tlvbuf is 010FC200 [17:24:08]SAM_PROTO_ClearQueue [17:24:08]wFMCommunicate request_size=4 [17:24:08]MH_SAM_APDU [17:24:08]CAPDU: 80 09 00 00 [17:24:08]Write to MH i2c: E2 08 00 86 75 80 09 00 00 00 00 00 00 6D [17:24:08]Write i2c OK [17:24:08]MH_I2C_Read... [17:24:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:24:08]Read from MH i2c: E2 [17:24:08]MH_I2C_Read... [17:24:08]Read from MH i2c: E2 03 00 [17:24:08]MH_I2C_Read... [17:24:08]Read from MH i2c: E2 03 00 86 75 00 90 00 6F [17:24:08]RAPDU: 90 00 [17:24:08]wFMCommunicate OK [17:24:08]SAM_PROTO_ClearQueue done [17:24:08]KKMCreateOFDPacket [17:24:08]OFDProtocolAddRootSTLVToBuf [17:24:08]FM_MakeSignedData [17:24:08]FM_MakeSignedData [17:24:08]SAM_PROTO_SignData [17:24:08]wFMCommunicate request_size=4 [17:24:08]MH_SAM_APDU [17:24:08]CAPDU: 80 0D 01 02 [17:24:08]Write to MH i2c: E2 08 00 87 75 80 0D 01 02 00 00 00 00 75 [17:24:08]Write i2c OK [17:24:08]MH_I2C_Read... [17:24:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:24:08]Read from MH i2c: E2 [17:24:08]MH_I2C_Read... [17:24:08]Read from MH i2c: E2 03 00 [17:24:08]MH_I2C_Read... [17:24:08]Read from MH i2c: E2 03 00 87 75 00 90 00 70 [17:24:08]RAPDU: 90 00 [17:24:08]wFMCommunicate OK [17:24:08]wFMCommunicate request_size=255 [17:24:08]MH_SAM_APDU [17:24:08]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 7C 29 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 2A 01 00 00 F4 03 04 00 3C 8E 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 BA DD 02 00 35 04 06 00 A3 73 39 BF [17:24:08]Write to MH i2c: E2 02 01 88 75 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 7C 29 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 2A 01 00 00 F4 03 04 00 3C 8E 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 BA DD 02 00 35 04 06 00 A3 73 39 BF 00 00 43 [17:24:08]Write i2c OK [17:24:08]MH_I2C_Read... [17:24:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:24:08]Read from MH i2c: E2 [17:24:08]MH_I2C_Read... [17:24:08]Read from MH i2c: E2 03 00 [17:24:08]MH_I2C_Read... [17:24:08]Read from MH i2c: E2 03 00 88 75 00 90 00 71 [17:24:08]RAPDU: 90 00 [17:24:08]wFMCommunicate OK [17:24:08]wFMCommunicate request_size=7 [17:24:08]MH_SAM_APDU [17:24:08]CAPDU: 80 0D 02 02 02 A7 26 [17:24:08]Write to MH i2c: E2 0A 00 89 75 80 0D 02 02 02 00 A7 26 00 00 49 [17:24:08]Write i2c OK [17:24:08]MH_I2C_Read... [17:24:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:24:08]Read from MH i2c: E2 [17:24:08]MH_I2C_Read... [17:24:08]Read from MH i2c: E2 03 00 [17:24:08]MH_I2C_Read... [17:24:08]Read from MH i2c: E2 03 00 89 75 00 90 00 72 [17:24:08]RAPDU: 90 00 [17:24:08]wFMCommunicate OK [17:24:08]wFMCommunicate request_size=4 [17:24:08]MH_SAM_APDU [17:24:08]CAPDU: 80 0D 03 02 [17:24:08]Write to MH i2c: E2 08 00 8A 75 80 0D 03 02 00 00 00 00 7A [17:24:08]Write i2c OK [17:24:08]MH_I2C_Read... [17:24:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:24:08]Read from MH i2c: E2 [17:24:08]MH_I2C_Read... [17:24:08]Read from MH i2c: E2 0B 00 [17:24:08]MH_I2C_Read... [17:24:08]Read from MH i2c: E2 0B 00 8A 75 00 87 5F 02 15 6E 2A CF AB 90 00 8A [17:24:08]RAPDU: 87 5F 02 15 6E 2A CF AB 90 00 [17:24:08]wFMCommunicate OK [17:24:08]SAM_PROTO_SignData done [17:24:08]FM_MakeSignedData done [17:24:08]CreateOFDProtocolMessage [17:24:08]wFMCommunicate request_size=4 [17:24:08]MH_SAM_APDU [17:24:08]CAPDU: 80 11 00 00 [17:24:08]Write to MH i2c: E2 08 00 8B 75 80 11 00 00 00 00 00 00 7A [17:24:08]Write i2c OK [17:24:08]MH_I2C_Read... [17:24:08]OFD Sender: No OFD packet to send [17:24:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:24:08]Read from MH i2c: E2 [17:24:08]MH_I2C_Read... [17:24:08]Read from MH i2c: E2 17 00 [17:24:08]MH_I2C_Read... [17:24:08]Read from MH i2c: E2 17 00 8B 75 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 C8 [17:24:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [17:24:08]wFMCommunicate OK [17:24:08]CreateOFDProtocolMessage done [17:24:08]OFDSenderStorePacket 187834 [17:24:08]StoreOFDPacket docnum=187834 [17:24:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 70 12 04 01 8A 52 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 7C 29 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 2A 01 00 00 F4 03 04 00 3C 8E 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 BA DD 02 00 35 04 06 00 A3 73 39 BF A7 26 87 5F 02 15 6E 2A CF AB [17:24:08]CheckFolder [17:24:08]dirname=/storage/ofd_packets [17:24:08]CheckFolder done [17:24:08]ProducePacketName [17:24:08]name=ofd_packets/00187834 [17:24:08]NVStorageSaveData ofd_packets/00187834 [17:24:08]File name is /storage/ofd_packets/00187834 [17:24:08]Write 298 bytes [17:24:08]NVStorageSaveData done [17:24:08]OFDSenderStorePacket done [17:24:08]KKMCreateOFDPacket done [17:24:08]NVStorageSaveData kkm_last_timestamp [17:24:08]File name is /storage/kkm_last_timestamp [17:24:08]Write 4 bytes [17:24:08]NVStorageSaveData done [17:24:08]ExternCall_PrintAddStr [17:24:08]wPrintStart [17:24:08]Write to MH i2c: 01 00 00 8C 75 01 [17:24:08]Write i2c OK [17:24:08]MH_I2C_Read... [17:24:08]Read from MH i2c: 01 [17:24:08]MH_I2C_Read... [17:24:08]Read from MH i2c: 01 07 00 [17:24:08]MH_I2C_Read... [17:24:08]Read from MH i2c: 01 07 00 8C 75 00 00 00 00 00 FF 0F 16 [17:24:08]RasterBufferAndPrint [17:24:08]line Счет N : (1)209887 [17:24:08]line ИНН: 02508201610067 [17:24:08]line Контрольно-Кассовый Чек [17:24:08]line ПРОДАЖА [17:24:08]line ТРК (МРК, ГНК) : 51 [17:24:08]line Товар: 2710194210 [17:24:08]line ДТ-К-5 [17:24:08]line 10.620 * 0.00 [17:24:08]line = 0.00 [17:24:08]line НДС 12% НСП 1% [17:24:08]line > о реализуемом товаре [17:24:08]line ИТОГО: 0.00 [17:24:08]line НСП 1% : 0.00 [17:24:08]line НДС 12% : 0.00 [17:24:08]line Наличными: 0.00 [17:24:08]line Безнал.: 0.00 [17:24:08]line Место: АЗС № 86 "Партнер Нефть" [17:24:08]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [17:24:08]line СНО: Общий режим [17:24:08]line Чек 298 21.10.2024 17:24 [17:24:08]line Смена: 460 ФФД: 1.0 [17:24:08]line ЗНМ: 0300000155 [17:24:08]line РНМ: 0000000000100030 [17:24:08]line Версия ККМ: 001 [17:24:08]line Талоны: ТК ГПНА Online [17:24:08]line 30116760 [17:24:08]line ФМ: 0000000000965340 [17:24:08]line ФД: 187834 [17:24:08]line ФПД: 179715285428006 [17:24:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T172412&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187834&fm=179715285428006&tin=02508201610067®Number=0000000000100030&sum=0 [17:24:08]written 0, free lines is 4095 [17:24:08]OFD Sender: Processing packet 187834 [packets to send 1062, broken 1061] [17:24:08]ProducePacketName [17:24:08]name=ofd_packets/00187834 [17:24:08]OFD Sender: To server: pG, [17:24:08]CommunicateWithHost lk.salyk.kg:30040 [17:24:08]ConnectInit lk.salyk.kg [17:24:09]Connected sock=10 [17:24:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 70 12 04 01 8A 52 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 7C 29 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 2A 01 00 00 F4 03 04 00 3C 8E 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 BA DD 02 00 35 04 06 00 A3 73 39 BF A7 26 87 5F 02 15 6E 2A CF AB [17:24:09]Write to MH i2c: 01 00 00 B6 75 2B [17:24:09]Write i2c OK [17:24:09]MH_I2C_Read... [17:24:09]Read from MH i2c: 01 [17:24:09]MH_I2C_Read... [17:24:09]Read from MH i2c: 01 07 00 [17:24:09]MH_I2C_Read... [17:24:09]Read from MH i2c: 01 07 00 B6 75 00 00 00 00 00 77 0C B5 [17:24:09]RasterBufferAndPrint [17:24:09]line [17:24:09]line [17:24:09]line [17:24:09]line [17:24:09]line [17:24:09]written 0, free lines is 3196 [17:24:09]MH_Cut [17:24:09]Write to MH i2c: D1 01 00 BD 75 01 04 [17:24:09]Write i2c OK [17:24:09]MH_I2C_Read... [17:24:09]Read from MH i2c: D1 [17:24:09]MH_I2C_Read... [17:24:09]Read from MH i2c: D1 01 00 [17:24:09]MH_I2C_Read... [17:24:09]Read from MH i2c: D1 01 00 BD 75 00 03 [17:24:09]Write to MH i2c: 01 00 00 BE 75 33 [17:24:09]Write i2c OK [17:24:09]MH_I2C_Read... [17:24:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 7C 5C 47 00 7A 39 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 BA DD 02 00 F4 03 04 00 2B 38 16 67 B6 04 01 00 00 65 6B A0 48 D6 43 FD BC [17:24:09]CommunicateWithHost err = 0 [17:24:09]CheckOFDResponse [17:24:09]1017 (14) - 77093643461234 [17:24:09]1041 (16) - 0000000000965340 [17:24:09]1040 (4) - 187834 [17:24:09]1012 (4) - 21.10.2024 11:16 [17:24:09]1206 (1) - 0 [17:24:09]OFD Sender: Remove packet 187834 [17:24:09]ProducePacketName [17:24:09]name=ofd_packets/00187834 [17:24:09]NVStorageDeleteData [17:24:09]OFD Sender: No OFD packet to send [17:24:10]*** Cut start [17:24:10]*** Partial cut [17:24:10]*** CUTSNS_PIN = 1 [17:24:10]*** CUTSNS_PIN = 0 [17:24:10]*** Brake cut motor [17:24:10]Read from MH i2c: 01 [17:24:10]MH_I2C_Read... [17:24:10]*** Stop cut motor [17:24:10]*** Cut end [17:24:10]Read from MH i2c: 01 07 00 [17:24:10]MH_I2C_Read... [17:24:10]Read from MH i2c: 01 07 00 BE 75 00 00 00 00 00 FF 0F 48 [17:24:10]process_action close_receipt done [17:24:10]requested_data is exist [17:24:10]produce_requested_data [17:24:10]requested_item fm.sn is exist - process it [17:24:10]wFMCommunicate request_size=4 [17:24:10]MH_SAM_APDU [17:24:10]CAPDU: 80 11 00 00 [17:24:10]Write to MH i2c: E2 08 00 BF 75 80 11 00 00 00 00 00 00 AE [17:24:10]Write i2c OK [17:24:10]MH_I2C_Read... [17:24:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:24:10]Read from MH i2c: E2 [17:24:10]MH_I2C_Read... [17:24:10]Read from MH i2c: E2 17 00 [17:24:10]MH_I2C_Read... [17:24:10]Read from MH i2c: E2 17 00 BF 75 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 FC [17:24:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [17:24:10]wFMCommunicate OK [17:24:10]requested_item fd.num is exist - process it [17:24:10]SAM_PROTO_GetFieldsCounters [17:24:10]wFMCommunicate request_size=4 [17:24:10]MH_SAM_APDU [17:24:10]CAPDU: 80 13 00 00 [17:24:10]Write to MH i2c: E2 08 00 C0 75 80 13 00 00 00 00 00 00 B1 [17:24:10]Write i2c OK [17:24:10]MH_I2C_Read... [17:24:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:24:11]Read from MH i2c: E2 [17:24:11]MH_I2C_Read... [17:24:11]Read from MH i2c: E2 62 00 [17:24:11]MH_I2C_Read... [17:24:11]Read from MH i2c: E2 62 00 C0 75 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 BA DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 2A 01 00 00 5E 04 04 00 2A 01 00 00 57 04 04 00 2B 01 00 00 19 04 04 00 00 00 00 00 90 00 9F [17:24:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 BA DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 2A 01 00 00 5E 04 04 00 2A 01 00 00 57 04 04 00 2B 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:24:11]wFMCommunicate OK [17:24:11]SAM_PROTO_GetFieldsCounters done [17:24:11]requested_item shift.num is exist - process it [17:24:11]requested_item shift.opened is exist - process it [17:24:11]req_shift_opened [17:24:11]FM_GetShiftState [17:24:11]SAM_PROTO_GetShiftState [17:24:11]wFMCommunicate request_size=4 [17:24:11]MH_SAM_APDU [17:24:11]CAPDU: 80 13 01 00 [17:24:11]Write to MH i2c: E2 08 00 C1 75 80 13 01 00 00 00 00 00 B3 [17:24:11]Write i2c OK [17:24:11]MH_I2C_Read... [17:24:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:24:11]Read from MH i2c: E2 [17:24:11]MH_I2C_Read... [17:24:11]Read from MH i2c: E2 0E 00 [17:24:11]MH_I2C_Read... [17:24:11]Read from MH i2c: E2 0E 00 C1 75 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 12 [17:24:11]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [17:24:11]wFMCommunicate OK [17:24:11]SAM_PROTO_GetShiftState done [17:24:11]FM_GetShiftState done [17:24:11]req_shift_opened done [17:24:11]requested_item shift.open_date is exist - process it [17:24:11]req_shift_open_date [17:24:11]req_shift_open_date done [17:24:11]produce_requested_data done [17:24:11]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187834,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [17:24:11]process_action_free close_receipt [17:24:11]json_value_free [17:24:11]json_value_free done [17:24:11]process_json_proto returns [17:24:11]Send response to host [17:24:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187834,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [17:24:11]free response buf [17:24:11]execute_script done [17:24:11]execute_script returns [17:24:11]free content buf [17:24:11]Sock 9.Close socket [17:24:11]Sock 9.Thread stoped [17:24:12]accept exits with 8 [17:24:12]New connection [17:24:12]New thread 3067014500 created [17:24:12]Thread 3067157860 joined [17:24:12]Waiting for new connection... [17:24:12] Sock 8.Parse request [17:24:12]Sock 8.Check first char [17:24:12]Sock 8.First char is OK [17:24:12]request: POST /json_proto HTTP/1.0 [17:24:12]Method: POST [17:24:12]URL: /json_proto [17:24:12]Method is POST - this is cgi request [17:24:12]url: /json_proto [17:24:12]query_string will be loaded in cgi processing [17:24:12]execute_cgi json_proto POST (null) [17:24:12]execute_cgi path=json_proto method=POST [17:24:12]POST find Content-Length [17:24:12]Host: 172.17.42.131:8080 [17:24:12]Content-Length: 688 [17:24:12]Content-Type: application/json [17:24:12] [17:24:12]POST finish read [17:24:12]Found Content-Length = 688 [17:24:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209886", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 36.270, "sum" : 2800.04, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2800.00, "total" : 2800.00, "payments": [ { "type": 0, "sum" : 2800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:24:12]execute_script... [17:24:12]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209886", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 36.270, "sum" : 2800.04, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2800.00, "total" : 2800.00, "payments": [ { "type": 0, "sum" : 2800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:24:12]POST & json_proto [17:24:12]process_json_proto [17:24:12]json parsed OK: [17:24:12]protocol is kg_v1.0 [17:24:12]action value=close_receipt [17:24:12]process_action close_receipt [17:24:12]cmd_close_receipt [17:24:12]MH_GetDate [17:24:12]Write to MH i2c: F0 00 00 C2 75 26 [17:24:12]Write i2c OK [17:24:12]MH_I2C_Read... [17:24:12]Read from MH i2c: F0 [17:24:12]MH_I2C_Read... [17:24:12]Read from MH i2c: F0 09 00 [17:24:12]MH_I2C_Read... [17:24:12]Read from MH i2c: F0 09 00 C2 75 00 41 8E 16 67 A0 18 CA 66 63 [17:24:12]GetLastDocTimeStamp 1729531452 [17:24:12]current date 1729531457 [17:24:12]FM_GetShiftState [17:24:12]SAM_PROTO_GetShiftState [17:24:12]wFMCommunicate request_size=4 [17:24:12]MH_SAM_APDU [17:24:12]CAPDU: 80 13 01 00 [17:24:12]Write to MH i2c: E2 08 00 C3 75 80 13 01 00 00 00 00 00 B5 [17:24:12]Write i2c OK [17:24:12]MH_I2C_Read... [17:24:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:24:12]Read from MH i2c: E2 [17:24:12]MH_I2C_Read... [17:24:12]Read from MH i2c: E2 0E 00 [17:24:12]MH_I2C_Read... [17:24:12]Read from MH i2c: E2 0E 00 C3 75 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 14 [17:24:12]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [17:24:12]wFMCommunicate OK [17:24:12]SAM_PROTO_GetShiftState done [17:24:12]FM_GetShiftState done [17:24:12]opened in 1729469754 [17:24:12]opened+sec_in_day 1729556154 [17:24:12]quantity*price = 280004 [17:24:12]sum+1 = 280005 [17:24:12]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.04 ИТОГО: 2800.00 Внесено: 2800.00 СДАЧА: 0.00 НСП 1% : 24.78 НДС 12% : 297.35 Наличными: 2800.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 299 21.10.2024 17:24 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 187835 ФПД: 133379552773510 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T172417&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187835&fm=133379552773510&tin=02508201610067®Number=0000000000100030&sum=280000 [17:24:14]StoreToDocumentArchive [17:24:14]shift 460 fd 187835 [17:24:14]save to /storage/0460/doc_00187835 [17:24:14]save last doc name /storage/0460/doc_00187835 to /storage/kkm_last_doc_name [17:24:14]save OK [17:24:14]Clear old archive folders... [17:24:14]ProcessDocumentItem done err = 0, tmpTLVsize=257 [17:24:14]tlvbuf is 01304FC0 [17:24:14]SAM_PROTO_ClearQueue [17:24:14]wFMCommunicate request_size=4 [17:24:14]MH_SAM_APDU [17:24:14]CAPDU: 80 09 00 00 [17:24:14]Write to MH i2c: E2 08 00 D0 75 80 09 00 00 00 00 00 00 B7 [17:24:14]Write i2c OK [17:24:14]MH_I2C_Read... [17:24:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:24:14]Read from MH i2c: E2 [17:24:14]MH_I2C_Read... [17:24:14]Read from MH i2c: E2 03 00 [17:24:14]MH_I2C_Read... [17:24:14]Read from MH i2c: E2 03 00 D0 75 00 90 00 B9 [17:24:14]RAPDU: 90 00 [17:24:14]wFMCommunicate OK [17:24:14]SAM_PROTO_ClearQueue done [17:24:14]KKMCreateOFDPacket [17:24:14]OFDProtocolAddRootSTLVToBuf [17:24:14]FM_MakeSignedData [17:24:14]FM_MakeSignedData [17:24:14]SAM_PROTO_SignData [17:24:14]wFMCommunicate request_size=4 [17:24:14]MH_SAM_APDU [17:24:14]CAPDU: 80 0D 01 02 [17:24:14]Write to MH i2c: E2 08 00 D1 75 80 0D 01 02 00 00 00 00 BF [17:24:14]Write i2c OK [17:24:14]MH_I2C_Read... [17:24:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:24:14]Read from MH i2c: E2 [17:24:14]MH_I2C_Read... [17:24:14]Read from MH i2c: E2 03 00 [17:24:14]MH_I2C_Read... [17:24:14]Read from MH i2c: E2 03 00 D1 75 00 90 00 BA [17:24:14]RAPDU: 90 00 [17:24:14]wFMCommunicate OK [17:24:14]wFMCommunicate request_size=255 [17:24:14]MH_SAM_APDU [17:24: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 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AE 8D 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 C4 45 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 45 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AE 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 27 74 00 00 00 00 07 04 06 00 C0 45 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 01 00 00 F4 03 04 00 41 8E 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 BB DD 02 [17:24:14]Write to MH i2c: E2 02 01 D2 75 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AE 8D 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 C4 45 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 45 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AE 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 27 74 00 00 00 00 07 04 06 00 C0 45 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 01 00 00 F4 03 04 00 41 8E 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 BB DD 02 00 00 0B [17:24:14]Write i2c OK [17:24:14]MH_I2C_Read... [17:24:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:24:14]Read from MH i2c: E2 [17:24:14]MH_I2C_Read... [17:24:14]Read from MH i2c: E2 03 00 [17:24:14]MH_I2C_Read... [17:24:14]Read from MH i2c: E2 03 00 D2 75 00 90 00 BB [17:24:14]RAPDU: 90 00 [17:24:14]wFMCommunicate OK [17:24:14]wFMCommunicate request_size=16 [17:24:14]MH_SAM_APDU [17:24:14]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 79 4E D8 DD 05 86 [17:24:14]Write to MH i2c: E2 13 00 D3 75 80 0D 02 02 0B 00 00 35 04 06 00 79 4E D8 DD 05 86 00 00 1E [17:24:14]Write i2c OK [17:24:14]MH_I2C_Read... [17:24:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:24:14]Read from MH i2c: E2 [17:24:14]MH_I2C_Read... [17:24:14]Read from MH i2c: E2 03 00 [17:24:14]MH_I2C_Read... [17:24:14]Read from MH i2c: E2 03 00 D3 75 00 90 00 BC [17:24:14]RAPDU: 90 00 [17:24:14]wFMCommunicate OK [17:24:14]wFMCommunicate request_size=4 [17:24:14]MH_SAM_APDU [17:24:14]CAPDU: 80 0D 03 02 [17:24:14]Write to MH i2c: E2 08 00 D4 75 80 0D 03 02 00 00 00 00 C4 [17:24:14]Write i2c OK [17:24:14]MH_I2C_Read... [17:24:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:24:14]Read from MH i2c: E2 [17:24:14]MH_I2C_Read... [17:24:14]Read from MH i2c: E2 0B 00 [17:24:14]MH_I2C_Read... [17:24:14]Read from MH i2c: E2 0B 00 D4 75 00 C8 BB 5D DA 69 2A 7C 47 90 00 D5 [17:24:14]RAPDU: C8 BB 5D DA 69 2A 7C 47 90 00 [17:24:14]wFMCommunicate OK [17:24:14]SAM_PROTO_SignData done [17:24:14]FM_MakeSignedData done [17:24:14]CreateOFDProtocolMessage [17:24:14]wFMCommunicate request_size=4 [17:24:14]MH_SAM_APDU [17:24:14]CAPDU: 80 11 00 00 [17:24:14]Write to MH i2c: E2 08 00 D5 75 80 11 00 00 00 00 00 00 C4 [17:24:14]Write i2c OK [17:24:14]MH_I2C_Read... [17:24:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:24:14]Read from MH i2c: E2 [17:24:14]MH_I2C_Read... [17:24:14]Read from MH i2c: E2 17 00 [17:24:14]MH_I2C_Read... [17:24:14]Read from MH i2c: E2 17 00 D5 75 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 12 [17:24:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [17:24:14]wFMCommunicate OK [17:24:14]CreateOFDProtocolMessage done [17:24:14]OFDSenderStorePacket 187835 [17:24:14]StoreOFDPacket docnum=187835 [17:24:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 A4 46 0D 01 AE 0F 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AE 8D 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 C4 45 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 45 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AE 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 27 74 00 00 00 00 07 04 06 00 C0 45 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 01 00 00 F4 03 04 00 41 8E 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 BB DD 02 00 35 04 06 00 79 4E D8 DD 05 86 C8 BB 5D DA 69 2A 7C 47 [17:24:14]CheckFolder [17:24:14]dirname=/storage/ofd_packets [17:24:14]CheckFolder done [17:24:14]ProducePacketName [17:24:14]name=ofd_packets/00187835 [17:24:14]NVStorageSaveData ofd_packets/00187835 [17:24:14]File name is /storage/ofd_packets/00187835 [17:24:14]Write 307 bytes [17:24:14]NVStorageSaveData done [17:24:14]OFDSenderStorePacket done [17:24:14]KKMCreateOFDPacket done [17:24:14]NVStorageSaveData kkm_last_timestamp [17:24:14]File name is /storage/kkm_last_timestamp [17:24:14]Write 4 bytes [17:24:14]NVStorageSaveData done [17:24:14]ExternCall_PrintAddStr [17:24:14]wPrintStart [17:24:14]Write to MH i2c: 01 00 00 D6 75 4B [17:24:14]Write i2c OK [17:24:14]MH_I2C_Read... [17:24:14]Read from MH i2c: 01 [17:24:14]MH_I2C_Read... [17:24:14]Read from MH i2c: 01 07 00 [17:24:14]MH_I2C_Read... [17:24:14]Read from MH i2c: 01 07 00 D6 75 00 00 00 00 00 FF 0F 60 [17:24:14]RasterBufferAndPrint [17:24:14]line Счет N : (1)209886 [17:24:14]line ИНН: 02508201610067 [17:24:14]line Контрольно-Кассовый Чек [17:24:14]line ПРОДАЖА [17:24:14]line ТРК (МРК, ГНК) : 31 [17:24:14]line Товар: 2710194210 [17:24:14]line D-ENERGY ДТ-К-5 [17:24:14]line 36.270 * 77.20 [17:24:14]line = 2800.04 [17:24:14]line НДС 12% НСП 1% [17:24:14]line > о реализуемом товаре [17:24:14]line ОКРУГЛЕНИЕ: -0.04 [17:24:14]line ИТОГО: 2800.00 [17:24:14]line Внесено: 2800.00 [17:24:14]line СДАЧА: 0.00 [17:24:14]line НСП 1% : 24.78 [17:24:14]line НДС 12% : 297.35 [17:24:14]line Наличными: 2800.00 [17:24:14]line Безнал.: 0.00 [17:24:14]line Место: АЗС № 86 "Партнер Нефть" [17:24:14]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [17:24:14]line СНО: Общий режим [17:24:14]line Чек 299 21.10.2024 17:24 [17:24:14]line Смена: 460 ФФД: 1.0 [17:24:14]line ЗНМ: 0300000155 [17:24:14]line РНМ: 0000000000100030 [17:24:14]line Версия ККМ: 001 [17:24:14]line ФМ: 0000000000965340 [17:24:14]line ФД: 187835 [17:24:14]line ФПД: 133379552773510 [17:24:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T172417&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187835&fm=133379552773510&tin=02508201610067®Number=0000000000100030&sum=280000 [17:24:14]OFD Sender: Processing packet 187835 [packets to send 1062, broken 1061] [17:24:14]ProducePacketName [17:24:14]name=ofd_packets/00187835 [17:24:14]OFD Sender: To server: pG, [17:24:14]CommunicateWithHost lk.salyk.kg:30040 [17:24:14]ConnectInit lk.salyk.kg [17:24:14]written 0, free lines is 4095 [17:24:15]Connected sock=9 [17:24:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 A4 46 0D 01 AE 0F 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AE 8D 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 C4 45 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 45 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AE 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 27 74 00 00 00 00 07 04 06 00 C0 45 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 01 00 00 F4 03 04 00 41 8E 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 BB DD 02 00 35 04 06 00 79 4E D8 DD 05 86 C8 BB 5D DA 69 2A 7C 47 [17:24:15]Write to MH i2c: 01 00 00 01 76 77 [17:24:15]Write i2c OK [17:24:15]MH_I2C_Read... [17:24:15]Read from MH i2c: 01 [17:24:15]MH_I2C_Read... [17:24:15]Read from MH i2c: 01 07 00 [17:24:15]MH_I2C_Read... [17:24:15]Read from MH i2c: 01 07 00 01 76 00 00 00 00 00 70 0C FA [17:24:15]RasterBufferAndPrint [17:24:15]line [17:24:15]line [17:24:15]line [17:24:15]line [17:24:15]line [17:24:15]written 0, free lines is 3189 [17:24:15]MH_Cut [17:24:15]Write to MH i2c: D1 01 00 08 76 01 50 [17:24:15]Write i2c OK [17:24:15]MH_I2C_Read... [17:24:15]Read from MH i2c: D1 [17:24:15]MH_I2C_Read... [17:24:15]Read from MH i2c: D1 01 00 [17:24:15]MH_I2C_Read... [17:24:15]Read from MH i2c: D1 01 00 08 76 00 4F [17:24:15]Write to MH i2c: 01 00 00 09 76 7F [17:24:15]Write i2c OK [17:24:15]MH_I2C_Read... [17:24:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 74 26 47 00 48 08 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 BB DD 02 00 F4 03 04 00 31 38 16 67 B6 04 01 00 00 18 68 5B B1 AE AB A8 71 [17:24:15]CommunicateWithHost err = 0 [17:24:15]CheckOFDResponse [17:24:15]1017 (14) - 77093643461234 [17:24:15]1041 (16) - 0000000000965340 [17:24:15]1040 (4) - 187835 [17:24:15]1012 (4) - 21.10.2024 11:17 [17:24:15]1206 (1) - 0 [17:24:15]OFD Sender: Remove packet 187835 [17:24:15]ProducePacketName [17:24:15]name=ofd_packets/00187835 [17:24:15]NVStorageDeleteData [17:24:16]OFD Sender: No OFD packet to send [17:24:16]*** Cut start [17:24:16]*** Partial cut [17:24:16]*** CUTSNS_PIN = 1 [17:24:16]*** CUTSNS_PIN = 0 [17:24:16]*** Brake cut motor [17:24:16]Read from MH i2c: 01 [17:24:16]MH_I2C_Read... [17:24:16]*** Stop cut motor [17:24:16]*** Cut end [17:24:16]Read from MH i2c: 01 07 00 [17:24:16]MH_I2C_Read... [17:24:16]Read from MH i2c: 01 07 00 09 76 00 00 00 00 00 FF 0F 94 [17:24:16]process_action close_receipt done [17:24:16]requested_data is exist [17:24:16]produce_requested_data [17:24:16]requested_item fm.sn is exist - process it [17:24:16]wFMCommunicate request_size=4 [17:24:16]MH_SAM_APDU [17:24:16]CAPDU: 80 11 00 00 [17:24:16]Write to MH i2c: E2 08 00 0A 76 80 11 00 00 00 00 00 00 FA [17:24:17]Write i2c OK [17:24:17]MH_I2C_Read... [17:24:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:24:17]Read from MH i2c: E2 [17:24:17]MH_I2C_Read... [17:24:17]Read from MH i2c: E2 17 00 [17:24:17]MH_I2C_Read... [17:24:17]Read from MH i2c: E2 17 00 0A 76 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 48 [17:24:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [17:24:17]wFMCommunicate OK [17:24:17]requested_item fd.num is exist - process it [17:24:17]SAM_PROTO_GetFieldsCounters [17:24:17]wFMCommunicate request_size=4 [17:24:17]MH_SAM_APDU [17:24:17]CAPDU: 80 13 00 00 [17:24:17]Write to MH i2c: E2 08 00 0B 76 80 13 00 00 00 00 00 00 FD [17:24:17]Write i2c OK [17:24:17]MH_I2C_Read... [17:24:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:24:17]Read from MH i2c: E2 [17:24:17]MH_I2C_Read... [17:24:17]Read from MH i2c: E2 62 00 [17:24:17]MH_I2C_Read... [17:24:17]Read from MH i2c: E2 62 00 0B 76 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 BB DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 2B 01 00 00 5E 04 04 00 2B 01 00 00 57 04 04 00 2C 01 00 00 19 04 04 00 00 00 00 00 90 00 EF [17:24:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 BB DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 2B 01 00 00 5E 04 04 00 2B 01 00 00 57 04 04 00 2C 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:24:17]wFMCommunicate OK [17:24:17]SAM_PROTO_GetFieldsCounters done [17:24:17]requested_item shift.num is exist - process it [17:24:17]requested_item shift.opened is exist - process it [17:24:17]req_shift_opened [17:24:17]FM_GetShiftState [17:24:17]SAM_PROTO_GetShiftState [17:24:17]wFMCommunicate request_size=4 [17:24:17]MH_SAM_APDU [17:24:17]CAPDU: 80 13 01 00 [17:24:17]Write to MH i2c: E2 08 00 0C 76 80 13 01 00 00 00 00 00 FF [17:24:17]Write i2c OK [17:24:17]MH_I2C_Read... [17:24:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:24:17]Read from MH i2c: E2 [17:24:17]MH_I2C_Read... [17:24:17]Read from MH i2c: E2 0E 00 [17:24:17]MH_I2C_Read... [17:24:17]Read from MH i2c: E2 0E 00 0C 76 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 5E [17:24:17]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [17:24:17]wFMCommunicate OK [17:24:17]SAM_PROTO_GetShiftState done [17:24:17]FM_GetShiftState done [17:24:17]req_shift_opened done [17:24:17]requested_item shift.open_date is exist - process it [17:24:17]req_shift_open_date [17:24:17]req_shift_open_date done [17:24:17]produce_requested_data done [17:24:17]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187835,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [17:24:17]process_action_free close_receipt [17:24:17]json_value_free [17:24:17]json_value_free done [17:24:17]process_json_proto returns [17:24:17]Send response to host [17:24:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187835,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [17:24:17]free response buf [17:24:17]execute_script done [17:24:17]execute_script returns [17:24:17]free content buf [17:24:17]Sock 8.Close socket [17:24:17]Sock 8.Thread stoped [17:24:21]OFD Sender: No OFD packet to send [17:24:26]OFD Sender: No OFD packet to send [17:24:31]OFD Sender: No OFD packet to send [17:24:36]OFD Sender: No OFD packet to send [17:24:41]OFD Sender: No OFD packet to send [17:24:46]OFD Sender: No OFD packet to send [17:24:48]accept exits with 10 [17:24:48]New connection [17:24:48]New thread 3067157860 created [17:24:48]Thread 3067014500 joined [17:24:48]Waiting for new connection... [17:24:48] Sock 10.Parse request [17:24:48]Sock 10.Check first char [17:24:48]Sock 10.First char is OK [17:24:48]request: POST /json_proto HTTP/1.0 [17:24:48]Method: POST [17:24:48]URL: /json_proto [17:24:48]Method is POST - this is cgi request [17:24:48]url: /json_proto [17:24:48]query_string will be loaded in cgi processing [17:24:48]execute_cgi json_proto POST (null) [17:24:48]execute_cgi path=json_proto method=POST [17:24:48]POST find Content-Length [17:24:48]Host: 172.17.42.131:8080 [17:24:48]Content-Length: 674 [17:24:48]Content-Type: application/json [17:24:48] [17:24:48]POST finish read [17:24:48]Found Content-Length = 674 [17:24:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209888", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 2.560, "sum" : 195.07, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 195.00, "total" : 195.00, "payments": [ { "type": 0, "sum" : 195.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:24:48]execute_script... [17:24: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)209888", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 2.560, "sum" : 195.07, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 195.00, "total" : 195.00, "payments": [ { "type": 0, "sum" : 195.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:24:48]POST & json_proto [17:24:48]process_json_proto [17:24:48]json parsed OK: [17:24:48]protocol is kg_v1.0 [17:24:48]action value=close_receipt [17:24:48]process_action close_receipt [17:24:48]cmd_close_receipt [17:24:48]MH_GetDate [17:24:48]Write to MH i2c: F0 00 00 0D 76 72 [17:24:48]Write i2c OK [17:24:48]MH_I2C_Read... [17:24:48]Read from MH i2c: F0 [17:24:48]MH_I2C_Read... [17:24:48]Read from MH i2c: F0 09 00 [17:24:48]MH_I2C_Read... [17:24:48]Read from MH i2c: F0 09 00 0D 76 00 65 8E 16 67 A0 18 CA 66 D3 [17:24:48]GetLastDocTimeStamp 1729531457 [17:24:48]current date 1729531493 [17:24:48]FM_GetShiftState [17:24:48]SAM_PROTO_GetShiftState [17:24:48]wFMCommunicate request_size=4 [17:24:48]MH_SAM_APDU [17:24:48]CAPDU: 80 13 01 00 [17:24:48]Write to MH i2c: E2 08 00 0E 76 80 13 01 00 00 00 00 00 01 [17:24:48]Write i2c OK [17:24:48]MH_I2C_Read... [17:24:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:24:48]Read from MH i2c: E2 [17:24:48]MH_I2C_Read... [17:24:48]Read from MH i2c: E2 0E 00 [17:24:48]MH_I2C_Read... [17:24:48]Read from MH i2c: E2 0E 00 0E 76 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 60 [17:24:48]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [17:24:48]wFMCommunicate OK [17:24:48]SAM_PROTO_GetShiftState done [17:24:48]FM_GetShiftState done [17:24:48]opened in 1729469754 [17:24:48]opened+sec_in_day 1729556154 [17:24:48]quantity*price = 19507 [17:24:48]sum+1 = 19508 [17:24:48]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.07 ИТОГО: 195.00 Внесено: 195.00 СДАЧА: 0.00 НСП 1% : 1.73 НДС 12% : 20.71 Наличными: 195.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 300 21.10.2024 17:24 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 187836 ФПД: 72786292004 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T172453&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187836&fm=72786292004&tin=02508201610067®Number=0000000000100030&sum=19500 [17:24:49]StoreToDocumentArchive [17:24:49]shift 460 fd 187836 [17:24:49]save to /storage/0460/doc_00187836 [17:24:49]save last doc name /storage/0460/doc_00187836 to /storage/kkm_last_doc_name [17:24:49]save OK [17:24:49]Clear old archive folders... [17:24:49]ProcessDocumentItem done err = 0, tmpTLVsize=248 [17:24:49]tlvbuf is 012D0BF0 [17:24:49]SAM_PROTO_ClearQueue [17:24:49]wFMCommunicate request_size=4 [17:24:49]MH_SAM_APDU [17:24:49]CAPDU: 80 09 00 00 [17:24:49]Write to MH i2c: E2 08 00 1B 76 80 09 00 00 00 00 00 00 03 [17:24:49]Write i2c OK [17:24:49]MH_I2C_Read... [17:24:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:24:49]Read from MH i2c: E2 [17:24:49]MH_I2C_Read... [17:24:49]Read from MH i2c: E2 03 00 [17:24:49]MH_I2C_Read... [17:24:49]Read from MH i2c: E2 03 00 1B 76 00 90 00 05 [17:24:49]RAPDU: 90 00 [17:24:49]wFMCommunicate OK [17:24:49]SAM_PROTO_ClearQueue done [17:24:49]KKMCreateOFDPacket [17:24:49]OFDProtocolAddRootSTLVToBuf [17:24:49]FM_MakeSignedData [17:24:49]FM_MakeSignedData [17:24:49]SAM_PROTO_SignData [17:24:49]wFMCommunicate request_size=4 [17:24:49]MH_SAM_APDU [17:24:49]CAPDU: 80 0D 01 02 [17:24:49]Write to MH i2c: E2 08 00 1C 76 80 0D 01 02 00 00 00 00 0B [17:24:49]Write i2c OK [17:24:49]MH_I2C_Read... [17:24:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:24:49]Read from MH i2c: E2 [17:24:49]MH_I2C_Read... [17:24:49]Read from MH i2c: E2 03 00 [17:24:49]MH_I2C_Read... [17:24:49]Read from MH i2c: E2 03 00 1C 76 00 90 00 06 [17:24:49]RAPDU: 90 00 [17:24:49]wFMCommunicate OK [17:24:49]wFMCommunicate request_size=255 [17:24:49]MH_SAM_APDU [17:24:49]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 00 0A 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 33 4C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 4C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 17 08 00 00 00 00 07 04 06 00 2C 4C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 01 00 00 F4 03 04 00 65 8E 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 BC DD 02 00 35 04 06 00 00 10 F2 66 [17:24:49]Write to MH i2c: E2 02 01 1D 76 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 00 0A 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 33 4C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 4C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 17 08 00 00 00 00 07 04 06 00 2C 4C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 01 00 00 F4 03 04 00 65 8E 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 BC DD 02 00 35 04 06 00 00 10 F2 66 00 00 E1 [17:24:49]Write i2c OK [17:24:49]MH_I2C_Read... [17:24:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:24:49]Read from MH i2c: E2 [17:24:49]MH_I2C_Read... [17:24:49]Read from MH i2c: E2 03 00 [17:24:49]MH_I2C_Read... [17:24:49]Read from MH i2c: E2 03 00 1D 76 00 90 00 07 [17:24:49]RAPDU: 90 00 [17:24:49]wFMCommunicate OK [17:24:49]wFMCommunicate request_size=7 [17:24:49]MH_SAM_APDU [17:24:49]CAPDU: 80 0D 02 02 02 AD 24 [17:24:49]Write to MH i2c: E2 0A 00 1E 76 80 0D 02 02 02 00 AD 24 00 00 E3 [17:24:49]Write i2c OK [17:24:49]MH_I2C_Read... [17:24:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:24:49]Read from MH i2c: E2 [17:24:49]MH_I2C_Read... [17:24:49]Read from MH i2c: E2 03 00 [17:24:49]MH_I2C_Read... [17:24:49]Read from MH i2c: E2 03 00 1E 76 00 90 00 08 [17:24:49]RAPDU: 90 00 [17:24:49]wFMCommunicate OK [17:24:49]wFMCommunicate request_size=4 [17:24:49]MH_SAM_APDU [17:24:49]CAPDU: 80 0D 03 02 [17:24:49]Write to MH i2c: E2 08 00 1F 76 80 0D 03 02 00 00 00 00 10 [17:24:49]Write i2c OK [17:24:49]MH_I2C_Read... [17:24:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:24:49]Read from MH i2c: E2 [17:24:49]MH_I2C_Read... [17:24:49]Read from MH i2c: E2 0B 00 [17:24:49]MH_I2C_Read... [17:24:49]Read from MH i2c: E2 0B 00 1F 76 00 22 A2 09 B3 F3 3F 25 48 90 00 30 [17:24:49]RAPDU: 22 A2 09 B3 F3 3F 25 48 90 00 [17:24:49]wFMCommunicate OK [17:24:49]SAM_PROTO_SignData done [17:24:49]FM_MakeSignedData done [17:24:49]CreateOFDProtocolMessage [17:24:49]wFMCommunicate request_size=4 [17:24:49]MH_SAM_APDU [17:24:49]CAPDU: 80 11 00 00 [17:24:49]Write to MH i2c: E2 08 00 20 76 80 11 00 00 00 00 00 00 10 [17:24:49]Write i2c OK [17:24:49]MH_I2C_Read... [17:24:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:24:49]Read from MH i2c: E2 [17:24:49]MH_I2C_Read... [17:24:49]Read from MH i2c: E2 17 00 [17:24:49]MH_I2C_Read... [17:24:49]Read from MH i2c: E2 17 00 20 76 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 5E [17:24:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [17:24:49]wFMCommunicate OK [17:24:49]CreateOFDProtocolMessage done [17:24:49]OFDSenderStorePacket 187836 [17:24:49]StoreOFDPacket docnum=187836 [17:24:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 2E 73 04 01 13 74 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 00 0A 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 33 4C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 4C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 17 08 00 00 00 00 07 04 06 00 2C 4C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 01 00 00 F4 03 04 00 65 8E 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 BC DD 02 00 35 04 06 00 00 10 F2 66 AD 24 22 A2 09 B3 F3 3F 25 48 [17:24:49]CheckFolder [17:24:49]dirname=/storage/ofd_packets [17:24:49]CheckFolder done [17:24:49]ProducePacketName [17:24:49]name=ofd_packets/00187836 [17:24:49]NVStorageSaveData ofd_packets/00187836 [17:24:49]File name is /storage/ofd_packets/00187836 [17:24:49]Write 298 bytes [17:24:49]NVStorageSaveData done [17:24:49]OFDSenderStorePacket done [17:24:49]KKMCreateOFDPacket done [17:24:49]NVStorageSaveData kkm_last_timestamp [17:24:49]File name is /storage/kkm_last_timestamp [17:24:49]Write 4 bytes [17:24:49]NVStorageSaveData done [17:24:49]ExternCall_PrintAddStr [17:24:49]wPrintStart [17:24:49]Write to MH i2c: 01 00 00 21 76 97 [17:24:49]Write i2c OK [17:24:49]MH_I2C_Read... [17:24:49]Read from MH i2c: 01 [17:24:49]MH_I2C_Read... [17:24:49]Read from MH i2c: 01 07 00 [17:24:49]MH_I2C_Read... [17:24:49]Read from MH i2c: 01 07 00 21 76 00 00 00 00 00 FF 0F AC [17:24:49]RasterBufferAndPrint [17:24:49]line Счет N : (1)209888 [17:24:49]line ИНН: 02508201610067 [17:24:49]line Контрольно-Кассовый Чек [17:24:49]line ПРОДАЖА [17:24:49]line ТРК (МРК, ГНК) : 51 [17:24:49]line Товар: 2710194210 [17:24:49]line ДТ-К-5 [17:24:49]line 2.560 * 76.20 [17:24:49]line = 195.07 [17:24:49]line НДС 12% НСП 1% [17:24:49]line > о реализуемом товаре [17:24:49]line ОКРУГЛЕНИЕ: -0.07 [17:24:49]line ИТОГО: 195.00 [17:24:49]line Внесено: 195.00 [17:24:49]line СДАЧА: 0.00 [17:24:49]line НСП 1% : 1.73 [17:24:49]line НДС 12% : 20.71 [17:24:49]line Наличными: 195.00 [17:24:49]line Безнал.: 0.00 [17:24:49]line Место: АЗС № 86 "Партнер Нефть" [17:24:49]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [17:24:49]line СНО: Общий режим [17:24:49]line Чек 300 21.10.2024 17:24 [17:24:49]line Смена: 460 ФФД: 1.0 [17:24:49]line ЗНМ: 0300000155 [17:24:49]line РНМ: 0000000000100030 [17:24:49]line Версия ККМ: 001 [17:24:49]line ФМ: 0000000000965340 [17:24:49]line ФД: 187836 [17:24:49]line ФПД: 72786292004 [17:24:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T172453&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187836&fm=72786292004&tin=02508201610067®Number=0000000000100030&sum=19500 [17:24:49]written 0, free lines is 4095 [17:24:49]OFD Sender: Processing packet 187836 [packets to send 1062, broken 1061] [17:24:49]ProducePacketName [17:24:49]name=ofd_packets/00187836 [17:24:49]OFD Sender: To server: pG, [17:24:49]CommunicateWithHost lk.salyk.kg:30040 [17:24:49]ConnectInit lk.salyk.kg [17:24:50]Connected sock=9 [17:24:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 2E 73 04 01 13 74 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 00 0A 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 33 4C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 4C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 17 08 00 00 00 00 07 04 06 00 2C 4C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 01 00 00 F4 03 04 00 65 8E 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 BC DD 02 00 35 04 06 00 00 10 F2 66 AD 24 22 A2 09 B3 F3 3F 25 48 [17:24:50]Write to MH i2c: 01 00 00 4C 76 C2 [17:24:50]Write i2c OK [17:24:50]MH_I2C_Read... [17:24:50]Read from MH i2c: 01 [17:24:50]MH_I2C_Read... [17:24:50]Read from MH i2c: 01 07 00 [17:24:50]MH_I2C_Read... [17:24:50]Read from MH i2c: 01 07 00 4C 76 00 00 00 00 00 61 0C 36 [17:24:50]RasterBufferAndPrint [17:24:50]line [17:24:50]line [17:24:50]line [17:24:50]line [17:24:50]line [17:24:50]written 0, free lines is 3173 [17:24:50]MH_Cut [17:24:50]Write to MH i2c: D1 01 00 53 76 01 9B [17:24:50]Write i2c OK [17:24:50]MH_I2C_Read... [17:24:50]Read from MH i2c: D1 [17:24:50]MH_I2C_Read... [17:24:50]Read from MH i2c: D1 01 00 [17:24:50]MH_I2C_Read... [17:24:50]Read from MH i2c: D1 01 00 53 76 00 9A [17:24:50]Write to MH i2c: 01 00 00 54 76 CA [17:24:50]Write i2c OK [17:24:50]MH_I2C_Read... [17:24:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 01 18 47 00 3E 51 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 BC DD 02 00 F4 03 04 00 54 38 16 67 B6 04 01 00 00 E8 80 3C 05 7C C5 BE 16 [17:24:50]CommunicateWithHost err = 0 [17:24:50]CheckOFDResponse [17:24:50]1017 (14) - 77093643461234 [17:24:50]1041 (16) - 0000000000965340 [17:24:50]1040 (4) - 187836 [17:24:50]1012 (4) - 21.10.2024 11:17 [17:24:50]1206 (1) - 0 [17:24:50]OFD Sender: Remove packet 187836 [17:24:50]ProducePacketName [17:24:50]name=ofd_packets/00187836 [17:24:50]NVStorageDeleteData [17:24:51]OFD Sender: No OFD packet to send [17:24:51]*** Cut start [17:24:51]*** Partial cut [17:24:51]*** CUTSNS_PIN = 1 [17:24:51]*** CUTSNS_PIN = 0 [17:24:51]*** Brake cut motor [17:24:52]Read from MH i2c: 01 [17:24:52]MH_I2C_Read... [17:24:52]*** Stop cut motor [17:24:52]*** Cut end [17:24:52]Read from MH i2c: 01 07 00 [17:24:52]MH_I2C_Read... [17:24:52]Read from MH i2c: 01 07 00 54 76 00 00 00 00 00 FF 0F DF [17:24:52]process_action close_receipt done [17:24:52]requested_data is exist [17:24:52]produce_requested_data [17:24:52]requested_item fm.sn is exist - process it [17:24:52]wFMCommunicate request_size=4 [17:24:52]MH_SAM_APDU [17:24:52]CAPDU: 80 11 00 00 [17:24:52]Write to MH i2c: E2 08 00 55 76 80 11 00 00 00 00 00 00 45 [17:24:52]Write i2c OK [17:24:52]MH_I2C_Read... [17:24:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:24:52]Read from MH i2c: E2 [17:24:52]MH_I2C_Read... [17:24:52]Read from MH i2c: E2 17 00 [17:24:52]MH_I2C_Read... [17:24:52]Read from MH i2c: E2 17 00 55 76 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 93 [17:24:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [17:24:52]wFMCommunicate OK [17:24:52]requested_item fd.num is exist - process it [17:24:52]SAM_PROTO_GetFieldsCounters [17:24:52]wFMCommunicate request_size=4 [17:24:52]MH_SAM_APDU [17:24:52]CAPDU: 80 13 00 00 [17:24:52]Write to MH i2c: E2 08 00 56 76 80 13 00 00 00 00 00 00 48 [17:24:52]Write i2c OK [17:24:52]MH_I2C_Read... [17:24:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:24:52]Read from MH i2c: E2 [17:24:52]MH_I2C_Read... [17:24:52]Read from MH i2c: E2 62 00 [17:24:52]MH_I2C_Read... [17:24:52]Read from MH i2c: E2 62 00 56 76 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 BC DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 2C 01 00 00 5E 04 04 00 2C 01 00 00 57 04 04 00 2D 01 00 00 19 04 04 00 00 00 00 00 90 00 3E [17:24:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 BC DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 2C 01 00 00 5E 04 04 00 2C 01 00 00 57 04 04 00 2D 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:24:52]wFMCommunicate OK [17:24:52]SAM_PROTO_GetFieldsCounters done [17:24:52]requested_item shift.num is exist - process it [17:24:52]requested_item shift.opened is exist - process it [17:24:52]req_shift_opened [17:24:52]FM_GetShiftState [17:24:52]SAM_PROTO_GetShiftState [17:24:52]wFMCommunicate request_size=4 [17:24:52]MH_SAM_APDU [17:24:52]CAPDU: 80 13 01 00 [17:24:52]Write to MH i2c: E2 08 00 57 76 80 13 01 00 00 00 00 00 4A [17:24:52]Write i2c OK [17:24:52]MH_I2C_Read... [17:24:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:24:52]Read from MH i2c: E2 [17:24:52]MH_I2C_Read... [17:24:52]Read from MH i2c: E2 0E 00 [17:24:52]MH_I2C_Read... [17:24:52]Read from MH i2c: E2 0E 00 57 76 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 A9 [17:24:52]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [17:24:52]wFMCommunicate OK [17:24:52]SAM_PROTO_GetShiftState done [17:24:52]FM_GetShiftState done [17:24:52]req_shift_opened done [17:24:52]requested_item shift.open_date is exist - process it [17:24:52]req_shift_open_date [17:24:52]req_shift_open_date done [17:24:52]produce_requested_data done [17:24:52]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187836,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [17:24:52]process_action_free close_receipt [17:24:52]json_value_free [17:24:52]json_value_free done [17:24:52]process_json_proto returns [17:24:52]Send response to host [17:24:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187836,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [17:24:52]free response buf [17:24:52]execute_script done [17:24:52]execute_script returns [17:24:52]free content buf [17:24:52]Sock 10.Close socket [17:24:52]Sock 10.Thread stoped [17:24:56]OFD Sender: No OFD packet to send [17:25:01]OFD Sender: No OFD packet to send [17:25:06]OFD Sender: No OFD packet to send [17:25:11]OFD Sender: No OFD packet to send [17:25:16]OFD Sender: No OFD packet to send [17:25:21]OFD Sender: No OFD packet to send [17:25:26]OFD Sender: No OFD packet to send [17:25:31]OFD Sender: No OFD packet to send [17:25:36]OFD Sender: No OFD packet to send [17:25:41]OFD Sender: No OFD packet to send [17:25:46]OFD Sender: No OFD packet to send [17:25:51]OFD Sender: No OFD packet to send [17:25:56]OFD Sender: No OFD packet to send [17:26:01]OFD Sender: No OFD packet to send [17:26:06]OFD Sender: No OFD packet to send [17:26:11]OFD Sender: No OFD packet to send [17:26:16]OFD Sender: No OFD packet to send [17:26:21]OFD Sender: No OFD packet to send [17:26:26]OFD Sender: No OFD packet to send [17:26:31]OFD Sender: No OFD packet to send [17:26:36]OFD Sender: No OFD packet to send [17:26:41]OFD Sender: No OFD packet to send [17:26:46]OFD Sender: No OFD packet to send [17:26:51]OFD Sender: No OFD packet to send [17:26:56]OFD Sender: No OFD packet to send [17:27:01]OFD Sender: No OFD packet to send [17:27:04]accept exits with 8 [17:27:04]New connection [17:27:04]New thread 3067014500 created [17:27:04]Thread 3067157860 joined [17:27:04]Waiting for new connection... [17:27:04] Sock 8.Parse request [17:27:04]Sock 8.Check first char [17:27:04]Sock 8.First char is OK [17:27:04]request: POST /json_proto HTTP/1.0 [17:27:04]Method: POST [17:27:04]URL: /json_proto [17:27:04]Method is POST - this is cgi request [17:27:04]url: /json_proto [17:27:04]query_string will be loaded in cgi processing [17:27:04]execute_cgi json_proto POST (null) [17:27:04]execute_cgi path=json_proto method=POST [17:27:04]POST find Content-Length [17:27:04]Host: 172.17.42.131:8080 [17:27:04]Content-Length: 682 [17:27:04]Content-Type: application/json [17:27:04] [17:27:04]POST finish read [17:27:04]Found Content-Length = 682 [17:27:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209889", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 27.090, "sum" : 2010.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2010.00, "total" : 2010.00, "payments": [ { "type": 0, "sum" : 2010.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:27:04]execute_script... [17:27: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)209889", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 27.090, "sum" : 2010.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2010.00, "total" : 2010.00, "payments": [ { "type": 0, "sum" : 2010.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:27:04]POST & json_proto [17:27:04]process_json_proto [17:27:04]json parsed OK: [17:27:04]protocol is kg_v1.0 [17:27:04]action value=close_receipt [17:27:04]process_action close_receipt [17:27:04]cmd_close_receipt [17:27:04]MH_GetDate [17:27:04]Write to MH i2c: F0 00 00 58 76 BD [17:27:04]Write i2c OK [17:27:04]MH_I2C_Read... [17:27:04]Read from MH i2c: F0 [17:27:04]MH_I2C_Read... [17:27:04]Read from MH i2c: F0 09 00 [17:27:04]MH_I2C_Read... [17:27:04]Read from MH i2c: F0 09 00 58 76 00 ED 8E 16 67 A0 18 CA 66 A6 [17:27:04]GetLastDocTimeStamp 1729531493 [17:27:04]current date 1729531629 [17:27:04]FM_GetShiftState [17:27:04]SAM_PROTO_GetShiftState [17:27:04]wFMCommunicate request_size=4 [17:27:04]MH_SAM_APDU [17:27:04]CAPDU: 80 13 01 00 [17:27:04]Write to MH i2c: E2 08 00 59 76 80 13 01 00 00 00 00 00 4C [17:27:04]Write i2c OK [17:27:04]MH_I2C_Read... [17:27:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:27:04]Read from MH i2c: E2 [17:27:04]MH_I2C_Read... [17:27:04]Read from MH i2c: E2 0E 00 [17:27:04]MH_I2C_Read... [17:27:04]Read from MH i2c: E2 0E 00 59 76 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 AB [17:27:04]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [17:27:04]wFMCommunicate OK [17:27:04]SAM_PROTO_GetShiftState done [17:27:04]FM_GetShiftState done [17:27:04]opened in 1729469754 [17:27:04]opened+sec_in_day 1729556154 [17:27:04]quantity*price = 201007 [17:27:04]sum+1 = 201009 [17:27:04]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.08 ИТОГО: 2010.00 Внесено: 2010.00 СДАЧА: 0.00 НСП 1% : 17.79 НДС 12% : 213.46 Наличными: 2010.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 301 21.10.2024 17:27 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 187837 ФПД: 48202468978042 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T172709&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187837&fm=48202468978042&tin=02508201610067®Number=0000000000100030&sum=201000 [17:27:05]StoreToDocumentArchive [17:27:05]shift 460 fd 187837 [17:27:05]save to /storage/0460/doc_00187837 [17:27:05]save last doc name /storage/0460/doc_00187837 to /storage/kkm_last_doc_name [17:27:05]save OK [17:27:05]Clear old archive folders... [17:27:05]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:27:05]tlvbuf is 010B8C40 [17:27:05]SAM_PROTO_ClearQueue [17:27:05]wFMCommunicate request_size=4 [17:27:05]MH_SAM_APDU [17:27:05]CAPDU: 80 09 00 00 [17:27:05]Write to MH i2c: E2 08 00 66 76 80 09 00 00 00 00 00 00 4E [17:27:05]Write i2c OK [17:27:05]MH_I2C_Read... [17:27:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:27:05]Read from MH i2c: E2 [17:27:05]MH_I2C_Read... [17:27:05]Read from MH i2c: E2 03 00 [17:27:05]MH_I2C_Read... [17:27:05]Read from MH i2c: E2 03 00 66 76 00 90 00 50 [17:27:05]RAPDU: 90 00 [17:27:05]wFMCommunicate OK [17:27:05]SAM_PROTO_ClearQueue done [17:27:05]KKMCreateOFDPacket [17:27:05]OFDProtocolAddRootSTLVToBuf [17:27:05]FM_MakeSignedData [17:27:05]FM_MakeSignedData [17:27:05]SAM_PROTO_SignData [17:27:05]wFMCommunicate request_size=4 [17:27:05]MH_SAM_APDU [17:27:05]CAPDU: 80 0D 01 02 [17:27:05]Write to MH i2c: E2 08 00 67 76 80 0D 01 02 00 00 00 00 56 [17:27:05]Write i2c OK [17:27:05]MH_I2C_Read... [17:27:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:27:05]Read from MH i2c: E2 [17:27:05]MH_I2C_Read... [17:27:05]Read from MH i2c: E2 03 00 [17:27:05]MH_I2C_Read... [17:27:05]Read from MH i2c: E2 03 00 67 76 00 90 00 51 [17:27:05]RAPDU: 90 00 [17:27:05]wFMCommunicate OK [17:27:05]wFMCommunicate request_size=255 [17:27:05]MH_SAM_APDU [17:27:05]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 D2 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 30 11 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 11 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F3 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 62 53 00 00 00 00 07 04 06 00 28 11 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 01 00 00 F4 03 04 00 ED 8E 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 BD DD 02 00 35 04 06 00 2B [17:27:05]Write to MH i2c: E2 02 01 68 76 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 D2 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 30 11 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 11 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F3 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 62 53 00 00 00 00 07 04 06 00 28 11 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 01 00 00 F4 03 04 00 ED 8E 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 BD DD 02 00 35 04 06 00 2B 00 00 BF [17:27:05]Write i2c OK [17:27:05]MH_I2C_Read... [17:27:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:27:05]Read from MH i2c: E2 [17:27:05]MH_I2C_Read... [17:27:05]Read from MH i2c: E2 03 00 [17:27:05]MH_I2C_Read... [17:27:05]Read from MH i2c: E2 03 00 68 76 00 90 00 52 [17:27:05]RAPDU: 90 00 [17:27:05]wFMCommunicate OK [17:27:05]wFMCommunicate request_size=10 [17:27:05]MH_SAM_APDU [17:27:05]CAPDU: 80 0D 02 02 05 D7 03 0A 6D 7A [17:27:05]Write to MH i2c: E2 0D 00 69 76 80 0D 02 02 05 00 D7 03 0A 6D 7A 00 00 2E [17:27:05]Write i2c OK [17:27:05]MH_I2C_Read... [17:27:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:27:05]Read from MH i2c: E2 [17:27:05]MH_I2C_Read... [17:27:05]Read from MH i2c: E2 03 00 [17:27:05]MH_I2C_Read... [17:27:05]Read from MH i2c: E2 03 00 69 76 00 90 00 53 [17:27:05]RAPDU: 90 00 [17:27:05]wFMCommunicate OK [17:27:05]wFMCommunicate request_size=4 [17:27:05]MH_SAM_APDU [17:27:05]CAPDU: 80 0D 03 02 [17:27:05]Write to MH i2c: E2 08 00 6A 76 80 0D 03 02 00 00 00 00 5B [17:27:05]Write i2c OK [17:27:05]MH_I2C_Read... [17:27:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:27:05]Read from MH i2c: E2 [17:27:05]MH_I2C_Read... [17:27:05]Read from MH i2c: E2 0B 00 [17:27:05]MH_I2C_Read... [17:27:05]Read from MH i2c: E2 0B 00 6A 76 00 14 42 3C 39 26 80 81 EB 90 00 39 [17:27:05]RAPDU: 14 42 3C 39 26 80 81 EB 90 00 [17:27:05]wFMCommunicate OK [17:27:05]SAM_PROTO_SignData done [17:27:05]FM_MakeSignedData done [17:27:05]CreateOFDProtocolMessage [17:27:05]wFMCommunicate request_size=4 [17:27:05]MH_SAM_APDU [17:27:05]CAPDU: 80 11 00 00 [17:27:05]Write to MH i2c: E2 08 00 6B 76 80 11 00 00 00 00 00 00 5B [17:27:05]Write i2c OK [17:27:05]MH_I2C_Read... [17:27:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:27:05]Read from MH i2c: E2 [17:27:05]MH_I2C_Read... [17:27:05]Read from MH i2c: E2 17 00 [17:27:05]MH_I2C_Read... [17:27:05]Read from MH i2c: E2 17 00 6B 76 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 A9 [17:27:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [17:27:05]wFMCommunicate OK [17:27:05]CreateOFDProtocolMessage done [17:27:05]OFDSenderStorePacket 187837 [17:27:05]StoreOFDPacket docnum=187837 [17:27:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 51 BB 07 01 C1 B2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 D2 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 30 11 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 11 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F3 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 62 53 00 00 00 00 07 04 06 00 28 11 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 01 00 00 F4 03 04 00 ED 8E 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 BD DD 02 00 35 04 06 00 2B D7 03 0A 6D 7A 14 42 3C 39 26 80 81 EB [17:27:05]CheckFolder [17:27:05]dirname=/storage/ofd_packets [17:27:05]CheckFolder done [17:27:05]ProducePacketName [17:27:05]name=ofd_packets/00187837 [17:27:05]NVStorageSaveData ofd_packets/00187837 [17:27:05]File name is /storage/ofd_packets/00187837 [17:27:05]Write 301 bytes [17:27:05]NVStorageSaveData done [17:27:05]OFDSenderStorePacket done [17:27:05]KKMCreateOFDPacket done [17:27:05]NVStorageSaveData kkm_last_timestamp [17:27:05]File name is /storage/kkm_last_timestamp [17:27:05]Write 4 bytes [17:27:05]NVStorageSaveData done [17:27:05]ExternCall_PrintAddStr [17:27:05]wPrintStart [17:27:05]Write to MH i2c: 01 00 00 6C 76 E2 [17:27:05]Write i2c OK [17:27:05]MH_I2C_Read... [17:27:05]Read from MH i2c: 01 [17:27:05]MH_I2C_Read... [17:27:05]Read from MH i2c: 01 07 00 [17:27:05]MH_I2C_Read... [17:27:05]Read from MH i2c: 01 07 00 6C 76 00 00 00 00 00 FF 0F F7 [17:27:05]RasterBufferAndPrint [17:27:05]line Счет N : (1)209889 [17:27:05]line ИНН: 02508201610067 [17:27:05]line Контрольно-Кассовый Чек [17:27:05]line ПРОДАЖА [17:27:05]line ТРК (МРК, ГНК) : 43 [17:27:05]line Товар: 2710124500 [17:27:05]line Аи-95-К-3 [17:27:05]line 27.090 * 74.20 [17:27:05]line = 2010.08 [17:27:05]line НДС 12% НСП 1% [17:27:05]line > о реализуемом товаре [17:27:05]line ОКРУГЛЕНИЕ: -0.08 [17:27:05]line ИТОГО: 2010.00 [17:27:05]line Внесено: 2010.00 [17:27:05]line СДАЧА: 0.00 [17:27:05]line НСП 1% : 17.79 [17:27:05]line НДС 12% : 213.46 [17:27:05]line Наличными: 2010.00 [17:27:05]line Безнал.: 0.00 [17:27:05]line Место: АЗС № 86 "Партнер Нефть" [17:27:05]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [17:27:05]line СНО: Общий режим [17:27:05]line Чек 301 21.10.2024 17:27 [17:27:05]line Смена: 460 ФФД: 1.0 [17:27:05]line ЗНМ: 0300000155 [17:27:05]line РНМ: 0000000000100030 [17:27:05]line Версия ККМ: 001 [17:27:05]line ФМ: 0000000000965340 [17:27:05]line ФД: 187837 [17:27:05]line ФПД: 48202468978042 [17:27:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T172709&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187837&fm=48202468978042&tin=02508201610067®Number=0000000000100030&sum=201000 [17:27:05]written 0, free lines is 4095 [17:27:05]OFD Sender: Processing packet 187837 [packets to send 1062, broken 1061] [17:27:05]ProducePacketName [17:27:05]name=ofd_packets/00187837 [17:27:05]OFD Sender: To server: pG, [17:27:05]CommunicateWithHost lk.salyk.kg:30040 [17:27:05]ConnectInit lk.salyk.kg [17:27:06]Connected sock=11 [17:27:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 51 BB 07 01 C1 B2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 D2 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 30 11 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 11 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F3 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 62 53 00 00 00 00 07 04 06 00 28 11 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 01 00 00 F4 03 04 00 ED 8E 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 BD DD 02 00 35 04 06 00 2B D7 03 0A 6D 7A 14 42 3C 39 26 80 81 EB [17:27:06]Write to MH i2c: 01 00 00 97 76 0D [17:27:06]Write i2c OK [17:27:06]MH_I2C_Read... [17:27:06]Read from MH i2c: 01 [17:27:06]MH_I2C_Read... [17:27:06]Read from MH i2c: 01 07 00 [17:27:06]MH_I2C_Read... [17:27:06]Read from MH i2c: 01 07 00 97 76 00 00 00 00 00 6D 0C 8D [17:27:06]RasterBufferAndPrint [17:27:06]line [17:27:06]line [17:27:06]line [17:27:06]line [17:27:06]line [17:27:06]written 0, free lines is 3183 [17:27:06]MH_Cut [17:27:06]Write to MH i2c: D1 01 00 9E 76 01 E6 [17:27:06]Write i2c OK [17:27:06]MH_I2C_Read... [17:27:06]Read from MH i2c: D1 [17:27:06]MH_I2C_Read... [17:27:06]Read from MH i2c: D1 01 00 [17:27:06]MH_I2C_Read... [17:27:06]Read from MH i2c: D1 01 00 9E 76 00 E5 [17:27:06]Write to MH i2c: 01 00 00 9F 76 15 [17:27:06]Write i2c OK [17:27:06]MH_I2C_Read... [17:27:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 0E 8B 47 00 BD 02 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 BD DD 02 00 F4 03 04 00 DC 38 16 67 B6 04 01 00 00 34 C2 95 36 9D 1B 48 3C [17:27:06]CommunicateWithHost err = 0 [17:27:06]CheckOFDResponse [17:27:06]1017 (14) - 77093643461234 [17:27:06]1041 (16) - 0000000000965340 [17:27:06]1040 (4) - 187837 [17:27:06]1012 (4) - 21.10.2024 11:19 [17:27:06]1206 (1) - 0 [17:27:06]OFD Sender: Remove packet 187837 [17:27:06]ProducePacketName [17:27:06]name=ofd_packets/00187837 [17:27:06]NVStorageDeleteData [17:27:07]OFD Sender: No OFD packet to send [17:27:07]*** Cut start [17:27:07]*** Partial cut [17:27:07]*** CUTSNS_PIN = 1 [17:27:07]*** CUTSNS_PIN = 0 [17:27:07]*** Brake cut motor [17:27:08]Read from MH i2c: 01 [17:27:08]MH_I2C_Read... [17:27:08]*** Stop cut motor [17:27:08]*** Cut end [17:27:08]Read from MH i2c: 01 07 00 [17:27:08]MH_I2C_Read... [17:27:08]Read from MH i2c: 01 07 00 9F 76 00 00 00 00 00 FF 0F 2A [17:27:08]process_action close_receipt done [17:27:08]requested_data is exist [17:27:08]produce_requested_data [17:27:08]requested_item fm.sn is exist - process it [17:27:08]wFMCommunicate request_size=4 [17:27:08]MH_SAM_APDU [17:27:08]CAPDU: 80 11 00 00 [17:27:08]Write to MH i2c: E2 08 00 A0 76 80 11 00 00 00 00 00 00 90 [17:27:08]Write i2c OK [17:27:08]MH_I2C_Read... [17:27:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:27:08]Read from MH i2c: E2 [17:27:08]MH_I2C_Read... [17:27:08]Read from MH i2c: E2 17 00 [17:27:08]MH_I2C_Read... [17:27:08]Read from MH i2c: E2 17 00 A0 76 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 DE [17:27:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [17:27:08]wFMCommunicate OK [17:27:08]requested_item fd.num is exist - process it [17:27:08]SAM_PROTO_GetFieldsCounters [17:27:08]wFMCommunicate request_size=4 [17:27:08]MH_SAM_APDU [17:27:08]CAPDU: 80 13 00 00 [17:27:08]Write to MH i2c: E2 08 00 A1 76 80 13 00 00 00 00 00 00 93 [17:27:08]Write i2c OK [17:27:08]MH_I2C_Read... [17:27:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:27:08]Read from MH i2c: E2 [17:27:08]MH_I2C_Read... [17:27:08]Read from MH i2c: E2 62 00 [17:27:08]MH_I2C_Read... [17:27:08]Read from MH i2c: E2 62 00 A1 76 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 BD DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 2D 01 00 00 5E 04 04 00 2D 01 00 00 57 04 04 00 2E 01 00 00 19 04 04 00 00 00 00 00 90 00 8D [17:27:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 BD DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 2D 01 00 00 5E 04 04 00 2D 01 00 00 57 04 04 00 2E 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:27:08]wFMCommunicate OK [17:27:08]SAM_PROTO_GetFieldsCounters done [17:27:08]requested_item shift.num is exist - process it [17:27:08]requested_item shift.opened is exist - process it [17:27:08]req_shift_opened [17:27:08]FM_GetShiftState [17:27:08]SAM_PROTO_GetShiftState [17:27:08]wFMCommunicate request_size=4 [17:27:08]MH_SAM_APDU [17:27:08]CAPDU: 80 13 01 00 [17:27:08]Write to MH i2c: E2 08 00 A2 76 80 13 01 00 00 00 00 00 95 [17:27:08]Write i2c OK [17:27:08]MH_I2C_Read... [17:27:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:27:08]Read from MH i2c: E2 [17:27:08]MH_I2C_Read... [17:27:08]Read from MH i2c: E2 0E 00 [17:27:08]MH_I2C_Read... [17:27:08]Read from MH i2c: E2 0E 00 A2 76 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 F4 [17:27:08]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [17:27:08]wFMCommunicate OK [17:27:08]SAM_PROTO_GetShiftState done [17:27:08]FM_GetShiftState done [17:27:08]req_shift_opened done [17:27:08]requested_item shift.open_date is exist - process it [17:27:08]req_shift_open_date [17:27:08]req_shift_open_date done [17:27:08]produce_requested_data done [17:27:08]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187837,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [17:27:08]process_action_free close_receipt [17:27:08]json_value_free [17:27:08]json_value_free done [17:27:08]process_json_proto returns [17:27:08]Send response to host [17:27:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187837,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [17:27:08]free response buf [17:27:08]execute_script done [17:27:08]execute_script returns [17:27:08]free content buf [17:27:08]Sock 8.Close socket [17:27:08]Sock 8.Thread stoped [17:27:12]OFD Sender: No OFD packet to send [17:27:17]OFD Sender: No OFD packet to send [17:27:22]OFD Sender: No OFD packet to send [17:27:27]OFD Sender: No OFD packet to send [17:27:31]accept exits with 9 [17:27:31]New connection [17:27:31]New thread 3067157860 created [17:27:31]Thread 3067014500 joined [17:27:31]Waiting for new connection... [17:27:31] Sock 9.Parse request [17:27:31]Sock 9.Check first char [17:27:31]Sock 9.First char is OK [17:27:31]request: POST /json_proto HTTP/1.0 [17:27:31]Method: POST [17:27:31]URL: /json_proto [17:27:31]Method is POST - this is cgi request [17:27:31]url: /json_proto [17:27:31]query_string will be loaded in cgi processing [17:27:31]execute_cgi json_proto POST (null) [17:27:31]execute_cgi path=json_proto method=POST [17:27:31]POST find Content-Length [17:27:31]Host: 172.17.42.131:8080 [17:27:31]Content-Length: 816 [17:27:31]Content-Type: application/json [17:27:31] [17:27:31]POST finish read [17:27:31]Found Content-Length = 816 [17:27:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209890", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1000.51 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:27:31]execute_script... [17:27:31]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209890", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1000.51 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:27:31]POST & json_proto [17:27:31]process_json_proto [17:27:31]json parsed OK: [17:27:31]protocol is kg_v1.0 [17:27:31]action value=close_receipt [17:27:31]process_action close_receipt [17:27:31]cmd_close_receipt [17:27:31]MH_GetDate [17:27:31]Write to MH i2c: F0 00 00 A3 76 08 [17:27:31]Write i2c OK [17:27:31]MH_I2C_Read... [17:27:31]Read from MH i2c: F0 [17:27:31]MH_I2C_Read... [17:27:31]Read from MH i2c: F0 09 00 [17:27:31]MH_I2C_Read... [17:27:31]Read from MH i2c: F0 09 00 A3 76 00 08 8F 16 67 A0 18 CA 66 0D [17:27:31]GetLastDocTimeStamp 1729531629 [17:27:31]current date 1729531656 [17:27:31]FM_GetShiftState [17:27:31]SAM_PROTO_GetShiftState [17:27:31]wFMCommunicate request_size=4 [17:27:31]MH_SAM_APDU [17:27:31]CAPDU: 80 13 01 00 [17:27:31]Write to MH i2c: E2 08 00 A4 76 80 13 01 00 00 00 00 00 97 [17:27:31]Write i2c OK [17:27:31]MH_I2C_Read... [17:27:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:27:31]Read from MH i2c: E2 [17:27:31]MH_I2C_Read... [17:27:31]Read from MH i2c: E2 0E 00 [17:27:31]MH_I2C_Read... [17:27:31]Read from MH i2c: E2 0E 00 A4 76 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 F6 [17:27:31]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [17:27:31]wFMCommunicate OK [17:27:31]SAM_PROTO_GetShiftState done [17:27:31]FM_GetShiftState done [17:27:31]opened in 1729469754 [17:27:31]opened+sec_in_day 1729556154 [17:27:31]quantity*price = 100050 [17:27:31]sum+1 = 100052 [17:27:31]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.51 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 0.00 Безнал.: 1000.51 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 302 21.10.2024 17:27 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000965340 ФД: 187838 ФПД: 42016202484199 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T172736&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187838&fm=42016202484199&tin=02508201610067®Number=0000000000100030&sum=100051 [17:27:32]StoreToDocumentArchive [17:27:32]shift 460 fd 187838 [17:27:32]save to /storage/0460/doc_00187838 [17:27:32]save last doc name /storage/0460/doc_00187838 to /storage/kkm_last_doc_name [17:27:32]save OK [17:27:32]Clear old archive folders... [17:27:32]ProcessDocumentItem done err = 0, tmpTLVsize=248 [17:27:32]tlvbuf is 01293760 [17:27:32]SAM_PROTO_ClearQueue [17:27:32]wFMCommunicate request_size=4 [17:27:32]MH_SAM_APDU [17:27:32]CAPDU: 80 09 00 00 [17:27:32]Write to MH i2c: E2 08 00 B1 76 80 09 00 00 00 00 00 00 99 [17:27:32]Write i2c OK [17:27:32]MH_I2C_Read... [17:27:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:27:32]Read from MH i2c: E2 [17:27:32]MH_I2C_Read... [17:27:32]Read from MH i2c: E2 03 00 [17:27:32]MH_I2C_Read... [17:27:32]Read from MH i2c: E2 03 00 B1 76 00 90 00 9B [17:27:32]RAPDU: 90 00 [17:27:32]wFMCommunicate OK [17:27:32]SAM_PROTO_ClearQueue done [17:27:32]KKMCreateOFDPacket [17:27:32]OFDProtocolAddRootSTLVToBuf [17:27:32]FM_MakeSignedData [17:27:32]FM_MakeSignedData [17:27:32]SAM_PROTO_SignData [17:27:32]wFMCommunicate request_size=4 [17:27:32]MH_SAM_APDU [17:27:32]CAPDU: 80 0D 01 02 [17:27:32]Write to MH i2c: E2 08 00 B2 76 80 0D 01 02 00 00 00 00 A1 [17:27:32]Write i2c OK [17:27:32]MH_I2C_Read... [17:27:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:27:32]Read from MH i2c: E2 [17:27:32]MH_I2C_Read... [17:27:32]Read from MH i2c: E2 03 00 [17:27:32]MH_I2C_Read... [17:27:32]Read from MH i2c: E2 03 00 B2 76 00 90 00 9C [17:27:32]RAPDU: 90 00 [17:27:32]wFMCommunicate OK [17:27:32]wFMCommunicate request_size=255 [17:27:32]MH_SAM_APDU [17:27:32]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 2E 01 00 00 F4 03 04 00 08 8F 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 BE DD 02 00 35 04 06 00 26 36 A8 D2 [17:27:32]Write to MH i2c: E2 02 01 B3 76 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 2E 01 00 00 F4 03 04 00 08 8F 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 BE DD 02 00 35 04 06 00 26 36 A8 D2 00 00 F5 [17:27:32]Write i2c OK [17:27:32]MH_I2C_Read... [17:27:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:27:32]Read from MH i2c: E2 [17:27:32]MH_I2C_Read... [17:27:32]Read from MH i2c: E2 03 00 [17:27:32]MH_I2C_Read... [17:27:32]Read from MH i2c: E2 03 00 B3 76 00 90 00 9D [17:27:32]RAPDU: 90 00 [17:27:32]wFMCommunicate OK [17:27:32]wFMCommunicate request_size=7 [17:27:32]MH_SAM_APDU [17:27:32]CAPDU: 80 0D 02 02 02 E9 E7 [17:27:32]Write to MH i2c: E2 0A 00 B4 76 80 0D 02 02 02 00 E9 E7 00 00 78 [17:27:32]Write i2c OK [17:27:32]MH_I2C_Read... [17:27:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:27:32]Read from MH i2c: E2 [17:27:32]MH_I2C_Read... [17:27:32]Read from MH i2c: E2 03 00 [17:27:32]MH_I2C_Read... [17:27:32]Read from MH i2c: E2 03 00 B4 76 00 90 00 9E [17:27:32]RAPDU: 90 00 [17:27:32]wFMCommunicate OK [17:27:32]wFMCommunicate request_size=4 [17:27:32]MH_SAM_APDU [17:27:32]CAPDU: 80 0D 03 02 [17:27:32]Write to MH i2c: E2 08 00 B5 76 80 0D 03 02 00 00 00 00 A6 [17:27:32]Write i2c OK [17:27:32]MH_I2C_Read... [17:27:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:27:32]Read from MH i2c: E2 [17:27:32]MH_I2C_Read... [17:27:32]Read from MH i2c: E2 0B 00 [17:27:32]MH_I2C_Read... [17:27:32]Read from MH i2c: E2 0B 00 B5 76 00 5F F7 1F 62 06 68 93 67 90 00 E6 [17:27:32]RAPDU: 5F F7 1F 62 06 68 93 67 90 00 [17:27:32]wFMCommunicate OK [17:27:32]SAM_PROTO_SignData done [17:27:32]FM_MakeSignedData done [17:27:32]CreateOFDProtocolMessage [17:27:32]wFMCommunicate request_size=4 [17:27:32]MH_SAM_APDU [17:27:32]CAPDU: 80 11 00 00 [17:27:32]Write to MH i2c: E2 08 00 B6 76 80 11 00 00 00 00 00 00 A6 [17:27:32]Write i2c OK [17:27:32]MH_I2C_Read... [17:27:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:27:32]Read from MH i2c: E2 [17:27:32]MH_I2C_Read... [17:27:32]Read from MH i2c: E2 17 00 [17:27:32]MH_I2C_Read... [17:27:32]Read from MH i2c: E2 17 00 B6 76 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 F4 [17:27:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [17:27:33]wFMCommunicate OK [17:27:33]CreateOFDProtocolMessage done [17:27:33]OFDSenderStorePacket 187838 [17:27:33]StoreOFDPacket docnum=187838 [17:27:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 80 DB 04 01 04 C1 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 2E 01 00 00 F4 03 04 00 08 8F 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 BE DD 02 00 35 04 06 00 26 36 A8 D2 E9 E7 5F F7 1F 62 06 68 93 67 [17:27:33]CheckFolder [17:27:33]dirname=/storage/ofd_packets [17:27:33]CheckFolder done [17:27:33]ProducePacketName [17:27:33]name=ofd_packets/00187838 [17:27:33]NVStorageSaveData ofd_packets/00187838 [17:27:33]File name is /storage/ofd_packets/00187838 [17:27:33]Write 298 bytes [17:27:33]NVStorageSaveData done [17:27:33]OFDSenderStorePacket done [17:27:33]KKMCreateOFDPacket done [17:27:33]NVStorageSaveData kkm_last_timestamp [17:27:33]File name is /storage/kkm_last_timestamp [17:27:33]Write 4 bytes [17:27:33]NVStorageSaveData done [17:27:33]ExternCall_PrintAddStr [17:27:33]wPrintStart [17:27:33]Write to MH i2c: 01 00 00 B7 76 2D [17:27:33]Write i2c OK [17:27:33]MH_I2C_Read... [17:27:33]Read from MH i2c: 01 [17:27:33]MH_I2C_Read... [17:27:33]Read from MH i2c: 01 07 00 [17:27:33]MH_I2C_Read... [17:27:33]Read from MH i2c: 01 07 00 B7 76 00 00 00 00 00 FF 0F 42 [17:27:33]RasterBufferAndPrint [17:27:33]line Счет N : (1)209890 [17:27:33]line ИНН: 02508201610067 [17:27:33]line Контрольно-Кассовый Чек [17:27:33]line ПРОДАЖА [17:27:33]line ТРК (МРК, ГНК) : 51 [17:27:33]line Товар: 2710194210 [17:27:33]line ДТ-К-5 [17:27:33]line 13.130 * 76.20 [17:27:33]line = 1000.51 [17:27:33]line НДС 12% НСП 1% [17:27:33]line > о реализуемом товаре [17:27:33]line ИТОГО: 1000.51 [17:27:33]line НСП 1% : 8.85 [17:27:33]line НДС 12% : 106.25 [17:27:33]line Наличными: 0.00 [17:27:33]line Безнал.: 1000.51 [17:27:33]line Место: АЗС № 86 "Партнер Нефть" [17:27:33]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [17:27:33]line СНО: Общий режим [17:27:33]line Чек 302 21.10.2024 17:27 [17:27:33]line Смена: 460 ФФД: 1.0 [17:27:33]line ЗНМ: 0300000155 [17:27:33]line РНМ: 0000000000100030 [17:27:33]line Версия ККМ: 001 [17:27:33]line Платежная система: Бакай Банк [17:27:33]line ФМ: 0000000000965340 [17:27:33]line ФД: 187838 [17:27:33]line ФПД: 42016202484199 [17:27:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T172736&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187838&fm=42016202484199&tin=02508201610067®Number=0000000000100030&sum=100051 [17:27:33]written 0, free lines is 4095 [17:27:33]OFD Sender: Processing packet 187838 [packets to send 1062, broken 1061] [17:27:33]ProducePacketName [17:27:33]name=ofd_packets/00187838 [17:27:33]OFD Sender: To server: pG, [17:27:33]CommunicateWithHost lk.salyk.kg:30040 [17:27:33]ConnectInit lk.salyk.kg [17:27:33]Write to MH i2c: 01 00 00 E1 76 57 [17:27:33]Write i2c OK [17:27:33]MH_I2C_Read... [17:27:33]Read from MH i2c: 01 [17:27:33]MH_I2C_Read... [17:27:33]Read from MH i2c: 01 07 00 [17:27:33]MH_I2C_Read... [17:27:33]Read from MH i2c: 01 07 00 E1 76 00 00 00 00 00 7B 0C E5 [17:27:33]RasterBufferAndPrint [17:27:33]line [17:27:33]line [17:27:33]line [17:27:33]line [17:27:33]line [17:27:33]written 0, free lines is 3197 [17:27:33]MH_Cut [17:27:33]Write to MH i2c: D1 01 00 E8 76 01 30 [17:27:33]Write i2c OK [17:27:33]MH_I2C_Read... [17:27:33]Read from MH i2c: D1 [17:27:33]MH_I2C_Read... [17:27:33]Read from MH i2c: D1 01 00 [17:27:33]MH_I2C_Read... [17:27:33]Read from MH i2c: D1 01 00 E8 76 00 2F [17:27:33]Write to MH i2c: 01 00 00 E9 76 5F [17:27:33]Write i2c OK [17:27:33]MH_I2C_Read... [17:27:34]*** Cut start [17:27:34]*** Partial cut [17:27:34]*** CUTSNS_PIN = 1 [17:27:34]*** CUTSNS_PIN = 0 [17:27:34]*** Brake cut motor [17:27:35]Read from MH i2c: 01 [17:27:35]MH_I2C_Read... [17:27:35]*** Stop cut motor [17:27:35]*** Cut end [17:27:35]Read from MH i2c: 01 07 00 [17:27:35]MH_I2C_Read... [17:27:35]Read from MH i2c: 01 07 00 E9 76 00 00 00 00 00 FF 0F 74 [17:27:35]process_action close_receipt done [17:27:35]requested_data is exist [17:27:35]produce_requested_data [17:27:35]requested_item fm.sn is exist - process it [17:27:35]wFMCommunicate request_size=4 [17:27:35]MH_SAM_APDU [17:27:35]CAPDU: 80 11 00 00 [17:27:35]Write to MH i2c: E2 08 00 EA 76 80 11 00 00 00 00 00 00 DA [17:27:35]Write i2c OK [17:27:35]MH_I2C_Read... [17:27:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:27:35]Read from MH i2c: E2 [17:27:35]MH_I2C_Read... [17:27:35]Read from MH i2c: E2 17 00 [17:27:35]MH_I2C_Read... [17:27:35]Read from MH i2c: E2 17 00 EA 76 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 28 [17:27:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [17:27:35]wFMCommunicate OK [17:27:35]requested_item fd.num is exist - process it [17:27:35]SAM_PROTO_GetFieldsCounters [17:27:35]wFMCommunicate request_size=4 [17:27:35]MH_SAM_APDU [17:27:35]CAPDU: 80 13 00 00 [17:27:35]Write to MH i2c: E2 08 00 EB 76 80 13 00 00 00 00 00 00 DD [17:27:35]Write i2c OK [17:27:35]MH_I2C_Read... [17:27:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:27:35]Read from MH i2c: E2 [17:27:35]MH_I2C_Read... [17:27:35]Read from MH i2c: E2 62 00 [17:27:35]MH_I2C_Read... [17:27:35]Read from MH i2c: E2 62 00 EB 76 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 BE DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 2E 01 00 00 5E 04 04 00 2E 01 00 00 57 04 04 00 2F 01 00 00 19 04 04 00 00 00 00 00 90 00 DB [17:27:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 BE DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 2E 01 00 00 5E 04 04 00 2E 01 00 00 57 04 04 00 2F 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:27:35]wFMCommunicate OK [17:27:35]SAM_PROTO_GetFieldsCounters done [17:27:35]requested_item shift.num is exist - process it [17:27:35]requested_item shift.opened is exist - process it [17:27:35]req_shift_opened [17:27:35]FM_GetShiftState [17:27:35]SAM_PROTO_GetShiftState [17:27:35]wFMCommunicate request_size=4 [17:27:35]MH_SAM_APDU [17:27:35]CAPDU: 80 13 01 00 [17:27:35]Write to MH i2c: E2 08 00 EC 76 80 13 01 00 00 00 00 00 DF [17:27:35]Write i2c OK [17:27:35]MH_I2C_Read... [17:27:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:27:35]Read from MH i2c: E2 [17:27:35]MH_I2C_Read... [17:27:35]Read from MH i2c: E2 0E 00 [17:27:35]MH_I2C_Read... [17:27:35]Read from MH i2c: E2 0E 00 EC 76 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 3E [17:27:35]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [17:27:35]wFMCommunicate OK [17:27:35]SAM_PROTO_GetShiftState done [17:27:35]FM_GetShiftState done [17:27:35]req_shift_opened done [17:27:35]requested_item shift.open_date is exist - process it [17:27:35]req_shift_open_date [17:27:35]req_shift_open_date done [17:27:35]produce_requested_data done [17:27:35]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187838,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [17:27:35]process_action_free close_receipt [17:27:35]json_value_free [17:27:35]json_value_free done [17:27:35]process_json_proto returns [17:27:35]Send response to host [17:27:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187838,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [17:27:35]free response buf [17:27:35]execute_script done [17:27:35]execute_script returns [17:27:35]free content buf [17:27:35]Sock 9.Close socket [17:27:35]Sock 9.Thread stoped [17:29:43]ConnectInit Can't connect to host [17:29:43]CommunicateWithHost connect error [17:29:43]CommunicateWithHost err = -1 [17:29:43]OFD Sender: Server communicate error [17:29:48]OFD Sender: Processing packet 187838 [packets to send 1062, broken 1061] [17:29:48]ProducePacketName [17:29:48]name=ofd_packets/00187838 [17:29:48]OFD Sender: To server: pG, [17:29:48]CommunicateWithHost lk.salyk.kg:30040 [17:29:48]ConnectInit lk.salyk.kg [17:29:48]Connected sock=9 [17:29:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 80 DB 04 01 04 C1 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 2E 01 00 00 F4 03 04 00 08 8F 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 BE DD 02 00 35 04 06 00 26 36 A8 D2 E9 E7 5F F7 1F 62 06 68 93 67 [17:29:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 EB FD 47 00 D1 D3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 BE DD 02 00 F4 03 04 00 7F 39 16 67 B6 04 01 00 00 73 B7 69 72 CE 6D FA 7F [17:29:49]CommunicateWithHost err = 0 [17:29:49]CheckOFDResponse [17:29:49]1017 (14) - 77093643461234 [17:29:49]1041 (16) - 0000000000965340 [17:29:49]1040 (4) - 187838 [17:29:49]1012 (4) - 21.10.2024 11:22 [17:29:49]1206 (1) - 0 [17:29:49]OFD Sender: Remove packet 187838 [17:29:49]ProducePacketName [17:29:49]name=ofd_packets/00187838 [17:29:49]NVStorageDeleteData [17:29:49]OFD Sender: No OFD packet to send [17:29:54]OFD Sender: No OFD packet to send [17:29:59]OFD Sender: No OFD packet to send [17:30:04]OFD Sender: No OFD packet to send [17:30:09]OFD Sender: No OFD packet to send [17:30:14]OFD Sender: No OFD packet to send [17:30:19]OFD Sender: No OFD packet to send [17:30:24]OFD Sender: No OFD packet to send [17:30:29]OFD Sender: No OFD packet to send [17:30:34]OFD Sender: No OFD packet to send [17:30:39]OFD Sender: No OFD packet to send [17:30:44]OFD Sender: No OFD packet to send [17:30:49]OFD Sender: No OFD packet to send [17:30:54]OFD Sender: No OFD packet to send [17:30:59]OFD Sender: No OFD packet to send [17:31:04]OFD Sender: No OFD packet to send [17:31:09]OFD Sender: No OFD packet to send [17:31:15]OFD Sender: No OFD packet to send [17:31:20]OFD Sender: No OFD packet to send [17:31:25]OFD Sender: No OFD packet to send [17:31:30]OFD Sender: No OFD packet to send [17:31:35]OFD Sender: No OFD packet to send [17:31:40]OFD Sender: No OFD packet to send [17:31:45]OFD Sender: No OFD packet to send [17:31:50]OFD Sender: No OFD packet to send [17:31:55]OFD Sender: No OFD packet to send [17:32:00]OFD Sender: No OFD packet to send [17:32:05]OFD Sender: No OFD packet to send [17:32:10]OFD Sender: No OFD packet to send [17:32:15]OFD Sender: No OFD packet to send [17:32:20]OFD Sender: No OFD packet to send [17:32:25]OFD Sender: No OFD packet to send [17:32:30]OFD Sender: No OFD packet to send [17:32:35]OFD Sender: No OFD packet to send [17:32:40]OFD Sender: No OFD packet to send [17:32:45]OFD Sender: No OFD packet to send [17:32:50]OFD Sender: No OFD packet to send [17:32:55]OFD Sender: No OFD packet to send [17:33:00]OFD Sender: No OFD packet to send [17:33:05]OFD Sender: No OFD packet to send [17:33:10]OFD Sender: No OFD packet to send [17:33:15]OFD Sender: No OFD packet to send [17:33:20]OFD Sender: No OFD packet to send [17:33:25]OFD Sender: No OFD packet to send [17:33:30]OFD Sender: No OFD packet to send [17:33:35]OFD Sender: No OFD packet to send [17:33:40]OFD Sender: No OFD packet to send [17:33:45]OFD Sender: No OFD packet to send [17:33:50]OFD Sender: No OFD packet to send [17:33:55]OFD Sender: No OFD packet to send [17:34:00]OFD Sender: No OFD packet to send [17:34:05]OFD Sender: No OFD packet to send [17:34:10]OFD Sender: No OFD packet to send [17:34:15]OFD Sender: No OFD packet to send [17:34:20]OFD Sender: No OFD packet to send [17:34:25]OFD Sender: No OFD packet to send [17:34:30]OFD Sender: No OFD packet to send [17:34:35]OFD Sender: No OFD packet to send [17:34:40]OFD Sender: No OFD packet to send [17:34:45]OFD Sender: No OFD packet to send [17:34:50]OFD Sender: No OFD packet to send [17:34:55]OFD Sender: No OFD packet to send [17:35:00]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: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:50]accept exits with 8 [17:36:50]New connection [17:36:50]New thread 3067014500 created [17:36:50]Thread 3067157860 joined [17:36:50]Waiting for new connection... [17:36:50] Sock 8.Parse request [17:36:50]Sock 8.Check first char [17:36:50]Sock 8.First char is OK [17:36:50]request: POST /json_proto HTTP/1.0 [17:36:50]Method: POST [17:36:50]URL: /json_proto [17:36:50]Method is POST - this is cgi request [17:36:50]url: /json_proto [17:36:50]query_string will be loaded in cgi processing [17:36:50]execute_cgi json_proto POST (null) [17:36:50]execute_cgi path=json_proto method=POST [17:36:50]POST find Content-Length [17:36:50]Host: 172.17.42.131:8080 [17:36:50]Content-Length: 769 [17:36:50]Content-Type: application/json [17:36:50] [17:36:50]POST finish read [17:36:50]Found Content-Length = 769 [17:36:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209891", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "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" ] } } [17:36:50]execute_script... [17:36: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)209891", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "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" ] } } [17:36:50]POST & json_proto [17:36:50]process_json_proto [17:36:50]json parsed OK: [17:36:50]protocol is kg_v1.0 [17:36:50]action value=close_receipt [17:36:50]process_action close_receipt [17:36:50]cmd_close_receipt [17:36:50]MH_GetDate [17:36:50]Write to MH i2c: F0 00 00 ED 76 52 [17:36:50]Write i2c OK [17:36:50]MH_I2C_Read... [17:36:50]Read from MH i2c: F0 [17:36:50]MH_I2C_Read... [17:36:50]Read from MH i2c: F0 09 00 [17:36:50]MH_I2C_Read... [17:36:50]Read from MH i2c: F0 09 00 ED 76 00 37 91 16 67 A0 18 CA 66 88 [17:36:50]GetLastDocTimeStamp 1729531656 [17:36:50]current date 1729532215 [17:36:50]FM_GetShiftState [17:36:50]SAM_PROTO_GetShiftState [17:36:50]wFMCommunicate request_size=4 [17:36:50]MH_SAM_APDU [17:36:50]CAPDU: 80 13 01 00 [17:36:50]Write to MH i2c: E2 08 00 EE 76 80 13 01 00 00 00 00 00 E1 [17:36:50]Write i2c OK [17:36:50]MH_I2C_Read... [17:36:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:36:50]Read from MH i2c: E2 [17:36:50]MH_I2C_Read... [17:36:50]Read from MH i2c: E2 0E 00 [17:36:50]MH_I2C_Read... [17:36:50]Read from MH i2c: E2 0E 00 EE 76 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 40 [17:36:50]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [17:36:50]wFMCommunicate OK [17:36:50]SAM_PROTO_GetShiftState done [17:36:50]FM_GetShiftState done [17:36:50]opened in 1729469754 [17:36:50]opened+sec_in_day 1729556154 [17:36:50]quantity*price = 200031 [17:36:50]sum+1 = 200032 [17:36:50]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2000.31 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 0.00 Безнал.: 2000.31 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 303 21.10.2024 17:36 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000965340 ФД: 187839 ФПД: 84808136032384 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T173655&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187839&fm=84808136032384&tin=02508201610067®Number=0000000000100030&sum=200031 [17:36:51]StoreToDocumentArchive [17:36:51]shift 460 fd 187839 [17:36:51]save to /storage/0460/doc_00187839 [17:36:51]save last doc name /storage/0460/doc_00187839 to /storage/kkm_last_doc_name [17:36:51]save OK [17:36:51]Clear old archive folders... [17:36:51]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:36:51]tlvbuf is 011ACBF0 [17:36:51]SAM_PROTO_ClearQueue [17:36:51]wFMCommunicate request_size=4 [17:36:51]MH_SAM_APDU [17:36:51]CAPDU: 80 09 00 00 [17:36:51]Write to MH i2c: E2 08 00 FB 76 80 09 00 00 00 00 00 00 E3 [17:36:51]Write i2c OK [17:36:51]MH_I2C_Read... [17:36:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:36:51]Read from MH i2c: E2 [17:36:51]MH_I2C_Read... [17:36:51]Read from MH i2c: E2 03 00 [17:36:51]MH_I2C_Read... [17:36:51]Read from MH i2c: E2 03 00 FB 76 00 90 00 E5 [17:36:51]RAPDU: 90 00 [17:36:51]wFMCommunicate OK [17:36:51]SAM_PROTO_ClearQueue done [17:36:51]KKMCreateOFDPacket [17:36:51]OFDProtocolAddRootSTLVToBuf [17:36:51]FM_MakeSignedData [17:36:51]FM_MakeSignedData [17:36:51]SAM_PROTO_SignData [17:36:51]wFMCommunicate request_size=4 [17:36:51]MH_SAM_APDU [17:36:51]CAPDU: 80 0D 01 02 [17:36:51]Write to MH i2c: E2 08 00 FC 76 80 0D 01 02 00 00 00 00 EB [17:36:51]Write i2c OK [17:36:51]MH_I2C_Read... [17:36:51]OFD Sender: No OFD packet to send [17:36:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:36:51]Read from MH i2c: E2 [17:36:51]MH_I2C_Read... [17:36:51]Read from MH i2c: E2 03 00 [17:36:51]MH_I2C_Read... [17:36:51]Read from MH i2c: E2 03 00 FC 76 00 90 00 E6 [17:36:51]RAPDU: 90 00 [17:36:51]wFMCommunicate OK [17:36:51]wFMCommunicate request_size=255 [17:36:51]MH_SAM_APDU [17:36: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 33 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 2F 01 00 00 F4 03 04 00 37 91 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 BF DD 02 00 35 04 06 00 4D [17:36:51]Write to MH i2c: E2 02 01 FD 76 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 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 2F 01 00 00 F4 03 04 00 37 91 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 BF DD 02 00 35 04 06 00 4D 00 00 0B [17:36:51]Write i2c OK [17:36:51]MH_I2C_Read... [17:36:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:36:51]Read from MH i2c: E2 [17:36:51]MH_I2C_Read... [17:36:51]Read from MH i2c: E2 03 00 [17:36:51]MH_I2C_Read... [17:36:51]Read from MH i2c: E2 03 00 FD 76 00 90 00 E7 [17:36:51]RAPDU: 90 00 [17:36:51]wFMCommunicate OK [17:36:51]wFMCommunicate request_size=10 [17:36:51]MH_SAM_APDU [17:36:51]CAPDU: 80 0D 02 02 05 21 EE D2 80 80 [17:36:51]Write to MH i2c: E2 0D 00 FE 76 80 0D 02 02 05 00 21 EE D2 80 80 00 00 D9 [17:36:51]Write i2c OK [17:36:51]MH_I2C_Read... [17:36:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:36:51]Read from MH i2c: E2 [17:36:51]MH_I2C_Read... [17:36:51]Read from MH i2c: E2 03 00 [17:36:51]MH_I2C_Read... [17:36:51]Read from MH i2c: E2 03 00 FE 76 00 90 00 E8 [17:36:51]RAPDU: 90 00 [17:36:51]wFMCommunicate OK [17:36:51]wFMCommunicate request_size=4 [17:36:51]MH_SAM_APDU [17:36:51]CAPDU: 80 0D 03 02 [17:36:51]Write to MH i2c: E2 08 00 FF 76 80 0D 03 02 00 00 00 00 F0 [17:36:51]Write i2c OK [17:36:51]MH_I2C_Read... [17:36:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:36:51]Read from MH i2c: E2 [17:36:51]MH_I2C_Read... [17:36:51]Read from MH i2c: E2 0B 00 [17:36:51]MH_I2C_Read... [17:36:51]Read from MH i2c: E2 0B 00 FF 76 00 17 FD 3D 46 0B 9E 72 C1 90 00 64 [17:36:51]RAPDU: 17 FD 3D 46 0B 9E 72 C1 90 00 [17:36:51]wFMCommunicate OK [17:36:51]SAM_PROTO_SignData done [17:36:51]FM_MakeSignedData done [17:36:51]CreateOFDProtocolMessage [17:36:51]wFMCommunicate request_size=4 [17:36:51]MH_SAM_APDU [17:36:51]CAPDU: 80 11 00 00 [17:36:51]Write to MH i2c: E2 08 00 00 77 80 11 00 00 00 00 00 00 F1 [17:36:51]Write i2c OK [17:36:51]MH_I2C_Read... [17:36:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:36:51]Read from MH i2c: E2 [17:36:51]MH_I2C_Read... [17:36:51]Read from MH i2c: E2 17 00 [17:36:51]MH_I2C_Read... [17:36:51]Read from MH i2c: E2 17 00 00 77 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 3F [17:36:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [17:36:51]wFMCommunicate OK [17:36:51]CreateOFDProtocolMessage done [17:36:51]OFDSenderStorePacket 187839 [17:36:51]StoreOFDPacket docnum=187839 [17:36:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 E8 57 07 01 BF 0F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 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 2F 01 00 00 F4 03 04 00 37 91 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 BF DD 02 00 35 04 06 00 4D 21 EE D2 80 80 17 FD 3D 46 0B 9E 72 C1 [17:36:51]CheckFolder [17:36:51]dirname=/storage/ofd_packets [17:36:51]CheckFolder done [17:36:51]ProducePacketName [17:36:51]name=ofd_packets/00187839 [17:36:51]NVStorageSaveData ofd_packets/00187839 [17:36:51]File name is /storage/ofd_packets/00187839 [17:36:51]Write 301 bytes [17:36:51]NVStorageSaveData done [17:36:51]OFDSenderStorePacket done [17:36:51]KKMCreateOFDPacket done [17:36:51]NVStorageSaveData kkm_last_timestamp [17:36:51]File name is /storage/kkm_last_timestamp [17:36:51]Write 4 bytes [17:36:51]NVStorageSaveData done [17:36:51]ExternCall_PrintAddStr [17:36:51]wPrintStart [17:36:51]Write to MH i2c: 01 00 00 01 77 78 [17:36:51]Write i2c OK [17:36:51]MH_I2C_Read... [17:36:51]Read from MH i2c: 01 [17:36:51]MH_I2C_Read... [17:36:51]Read from MH i2c: 01 07 00 [17:36:51]MH_I2C_Read... [17:36:51]Read from MH i2c: 01 07 00 01 77 00 00 00 00 00 FF 0F 8D [17:36:51]RasterBufferAndPrint [17:36:51]line Счет N : (1)209891 [17:36:51]line ИНН: 02508201610067 [17:36:51]line Контрольно-Кассовый Чек [17:36:51]line ПРОДАЖА [17:36:51]line ТРК (МРК, ГНК) : 32 [17:36:51]line Товар: 2710124130 [17:36:51]line Аи-92-К-3 [17:36:51]line 29.900 * 66.90 [17:36:51]line = 2000.31 [17:36:51]line НДС 12% НСП 1% [17:36:51]line > о реализуемом товаре [17:36:51]line ИТОГО: 2000.31 [17:36:51]line НСП 1% : 17.70 [17:36:51]line НДС 12% : 212.42 [17:36:51]line Наличными: 0.00 [17:36:51]line Безнал.: 2000.31 [17:36:51]line Место: АЗС № 86 "Партнер Нефть" [17:36:51]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [17:36:51]line СНО: Общий режим [17:36:51]line Чек 303 21.10.2024 17:36 [17:36:51]line Смена: 460 ФФД: 1.0 [17:36:51]line ЗНМ: 0300000155 [17:36:51]line РНМ: 0000000000100030 [17:36:51]line Версия ККМ: 001 [17:36:51]line Платежная система: Mbank [17:36:51]line ФМ: 0000000000965340 [17:36:51]line ФД: 187839 [17:36:51]line ФПД: 84808136032384 [17:36:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T173655&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187839&fm=84808136032384&tin=02508201610067®Number=0000000000100030&sum=200031 [17:36:51]written 0, free lines is 4095 [17:36:52]OFD Sender: Processing packet 187839 [packets to send 1062, broken 1061] [17:36:52]ProducePacketName [17:36:52]name=ofd_packets/00187839 [17:36:52]OFD Sender: To server: pG, [17:36:52]CommunicateWithHost lk.salyk.kg:30040 [17:36:52]ConnectInit lk.salyk.kg [17:36:52]Connected sock=9 [17:36:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 E8 57 07 01 BF 0F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 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 2F 01 00 00 F4 03 04 00 37 91 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 BF DD 02 00 35 04 06 00 4D 21 EE D2 80 80 17 FD 3D 46 0B 9E 72 C1 [17:36:52]Write to MH i2c: 01 00 00 2A 77 A1 [17:36:52]Write i2c OK [17:36:52]MH_I2C_Read... [17:36:52]Read from MH i2c: 01 [17:36:52]MH_I2C_Read... [17:36:52]Read from MH i2c: 01 07 00 [17:36:52]MH_I2C_Read... [17:36:52]Read from MH i2c: 01 07 00 2A 77 00 00 00 00 00 98 0C 4C [17:36:52]RasterBufferAndPrint [17:36:52]line [17:36:52]line [17:36:52]line [17:36:52]line [17:36:52]line [17:36:52]written 0, free lines is 3227 [17:36:52]MH_Cut [17:36:52]Write to MH i2c: D1 01 00 31 77 01 7A [17:36:52]Write i2c OK [17:36:52]MH_I2C_Read... [17:36:52]Read from MH i2c: D1 [17:36:52]MH_I2C_Read... [17:36:52]Read from MH i2c: D1 01 00 [17:36:52]MH_I2C_Read... [17:36:52]Read from MH i2c: D1 01 00 31 77 00 79 [17:36:52]Write to MH i2c: 01 00 00 32 77 A9 [17:36:52]Write i2c OK [17:36:52]MH_I2C_Read... [17:36:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 24 A7 47 00 BD DF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 BF DD 02 00 F4 03 04 00 26 3B 16 67 B6 04 01 00 00 5C 31 8B 8F 94 E3 3C 8D [17:36:52]CommunicateWithHost err = 0 [17:36:52]CheckOFDResponse [17:36:52]1017 (14) - 77093643461234 [17:36:52]1041 (16) - 0000000000965340 [17:36:52]1040 (4) - 187839 [17:36:52]1012 (4) - 21.10.2024 11:29 [17:36:52]1206 (1) - 0 [17:36:52]OFD Sender: Remove packet 187839 [17:36:52]ProducePacketName [17:36:52]name=ofd_packets/00187839 [17:36:52]NVStorageDeleteData [17:36:53]OFD Sender: No OFD packet to send [17:36:53]*** Cut start [17:36:53]*** Partial cut [17:36:53]*** CUTSNS_PIN = 1 [17:36:53]*** CUTSNS_PIN = 0 [17:36:53]*** Brake cut motor [17:36:54]Read from MH i2c: 01 [17:36:54]MH_I2C_Read... [17:36:54]*** Stop cut motor [17:36:54]*** Cut end [17:36:54]Read from MH i2c: 01 07 00 [17:36:54]MH_I2C_Read... [17:36:54]Read from MH i2c: 01 07 00 32 77 00 00 00 00 00 FF 0F BE [17:36:54]process_action close_receipt done [17:36:54]requested_data is exist [17:36:54]produce_requested_data [17:36:54]requested_item fm.sn is exist - process it [17:36:54]wFMCommunicate request_size=4 [17:36:54]MH_SAM_APDU [17:36:54]CAPDU: 80 11 00 00 [17:36:54]Write to MH i2c: E2 08 00 33 77 80 11 00 00 00 00 00 00 24 [17:36:54]Write i2c OK [17:36:54]MH_I2C_Read... [17:36:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:36:54]Read from MH i2c: E2 [17:36:54]MH_I2C_Read... [17:36:54]Read from MH i2c: E2 17 00 [17:36:54]MH_I2C_Read... [17:36:54]Read from MH i2c: E2 17 00 33 77 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 72 [17:36:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [17:36:54]wFMCommunicate OK [17:36:54]requested_item fd.num is exist - process it [17:36:54]SAM_PROTO_GetFieldsCounters [17:36:54]wFMCommunicate request_size=4 [17:36:54]MH_SAM_APDU [17:36:54]CAPDU: 80 13 00 00 [17:36:54]Write to MH i2c: E2 08 00 34 77 80 13 00 00 00 00 00 00 27 [17:36:54]Write i2c OK [17:36:54]MH_I2C_Read... [17:36:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:36:54]Read from MH i2c: E2 [17:36:54]MH_I2C_Read... [17:36:54]Read from MH i2c: E2 62 00 [17:36:54]MH_I2C_Read... [17:36:54]Read from MH i2c: E2 62 00 34 77 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 BF DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 2F 01 00 00 5E 04 04 00 2F 01 00 00 57 04 04 00 30 01 00 00 19 04 04 00 00 00 00 00 90 00 29 [17:36:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 BF DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 2F 01 00 00 5E 04 04 00 2F 01 00 00 57 04 04 00 30 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:36:54]wFMCommunicate OK [17:36:54]SAM_PROTO_GetFieldsCounters done [17:36:54]requested_item shift.num is exist - process it [17:36:54]requested_item shift.opened is exist - process it [17:36:54]req_shift_opened [17:36:54]FM_GetShiftState [17:36:54]SAM_PROTO_GetShiftState [17:36:54]wFMCommunicate request_size=4 [17:36:54]MH_SAM_APDU [17:36:54]CAPDU: 80 13 01 00 [17:36:54]Write to MH i2c: E2 08 00 35 77 80 13 01 00 00 00 00 00 29 [17:36:54]Write i2c OK [17:36:54]MH_I2C_Read... [17:36:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:36:54]Read from MH i2c: E2 [17:36:54]MH_I2C_Read... [17:36:54]Read from MH i2c: E2 0E 00 [17:36:54]MH_I2C_Read... [17:36:54]Read from MH i2c: E2 0E 00 35 77 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 88 [17:36:54]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [17:36:54]wFMCommunicate OK [17:36:54]SAM_PROTO_GetShiftState done [17:36:54]FM_GetShiftState done [17:36:54]req_shift_opened done [17:36:54]requested_item shift.open_date is exist - process it [17:36:54]req_shift_open_date [17:36:54]req_shift_open_date done [17:36:54]produce_requested_data done [17:36:54]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187839,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [17:36:54]process_action_free close_receipt [17:36:54]json_value_free [17:36:54]json_value_free done [17:36:54]process_json_proto returns [17:36:54]Send response to host [17:36:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187839,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [17:36:54]free response buf [17:36:54]execute_script done [17:36:54]execute_script returns [17:36:54]free content buf [17:36:54]Sock 8.Close socket [17:36:54]Sock 8.Thread stoped [17:36:58]OFD Sender: No OFD packet to send [17:37:03]OFD Sender: No OFD packet to send [17:37:08]OFD Sender: No OFD packet to send [17:37:13]OFD Sender: No OFD packet to send [17:37:18]OFD Sender: No OFD packet to send [17:37:23]OFD Sender: No OFD packet to send [17:37:28]OFD Sender: No OFD packet to send [17:37:33]OFD Sender: No OFD packet to send [17:37:38]OFD Sender: No OFD packet to send [17:37:43]OFD Sender: No OFD packet to send [17:37:48]OFD Sender: No OFD packet to send [17:37:53]OFD Sender: No OFD packet to send [17:37:58]OFD Sender: No OFD packet to send [17:38:03]OFD Sender: No OFD packet to send [17:38:08]OFD Sender: No OFD packet to send [17:38:13]OFD Sender: No OFD packet to send [17:38:18]OFD Sender: No OFD packet to send [17:38:23]OFD Sender: No OFD packet to send [17:38:28]OFD Sender: No OFD packet to send [17:38:33]OFD Sender: No OFD packet to send [17:38:38]OFD Sender: No OFD packet to send [17:38:43]OFD Sender: No OFD packet to send [17:38:46]accept exits with 10 [17:38:46]New connection [17:38:46]New thread 3067157860 created [17:38:46]Thread 3067014500 joined [17:38:46]Waiting for new connection... [17:38:46] Sock 10.Parse request [17:38:46]Sock 10.Check first char [17:38:46]Sock 10.First char is OK [17:38:46]request: POST /json_proto HTTP/1.0 [17:38:46]Method: POST [17:38:46]URL: /json_proto [17:38:46]Method is POST - this is cgi request [17:38:46]url: /json_proto [17:38:46]query_string will be loaded in cgi processing [17:38:46]execute_cgi json_proto POST (null) [17:38:46]execute_cgi path=json_proto method=POST [17:38:46]POST find Content-Length [17:38:46]Host: 172.17.42.131:8080 [17:38:46]Content-Length: 769 [17:38:46]Content-Type: application/json [17:38:46] [17:38:46]POST finish read [17:38:46]Found Content-Length = 769 [17:38:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209892", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.22 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:38:46]execute_script... [17:38: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)209892", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.22 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:38:46]POST & json_proto [17:38:46]process_json_proto [17:38:46]json parsed OK: [17:38:46]protocol is kg_v1.0 [17:38:46]action value=close_receipt [17:38:46]process_action close_receipt [17:38:46]cmd_close_receipt [17:38:46]MH_GetDate [17:38:46]Write to MH i2c: F0 00 00 36 77 9C [17:38:46]Write i2c OK [17:38:46]MH_I2C_Read... [17:38:46]Read from MH i2c: F0 [17:38:46]MH_I2C_Read... [17:38:46]Read from MH i2c: F0 09 00 [17:38:46]MH_I2C_Read... [17:38:46]Read from MH i2c: F0 09 00 36 77 00 AB 91 16 67 A0 18 CA 66 46 [17:38:46]GetLastDocTimeStamp 1729532215 [17:38:46]current date 1729532331 [17:38:46]FM_GetShiftState [17:38:46]SAM_PROTO_GetShiftState [17:38:46]wFMCommunicate request_size=4 [17:38:46]MH_SAM_APDU [17:38:46]CAPDU: 80 13 01 00 [17:38:46]Write to MH i2c: E2 08 00 37 77 80 13 01 00 00 00 00 00 2B [17:38:46]Write i2c OK [17:38:46]MH_I2C_Read... [17:38:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:38:46]Read from MH i2c: E2 [17:38:46]MH_I2C_Read... [17:38:46]Read from MH i2c: E2 0E 00 [17:38:46]MH_I2C_Read... [17:38:46]Read from MH i2c: E2 0E 00 37 77 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 8A [17:38:46]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [17:38:46]wFMCommunicate OK [17:38:46]SAM_PROTO_GetShiftState done [17:38:46]FM_GetShiftState done [17:38:46]opened in 1729469754 [17:38:46]opened+sec_in_day 1729556154 [17:38:46]quantity*price = 100021 [17:38:46]sum+1 = 100023 [17:38:46]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.22 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 0.00 Безнал.: 1000.22 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 304 21.10.2024 17:38 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000965340 ФД: 187840 ФПД: 248572777044965 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T173851&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187840&fm=248572777044965&tin=02508201610067®Number=0000000000100030&sum=100022 [17:38:47]StoreToDocumentArchive [17:38:47]shift 460 fd 187840 [17:38:47]save to /storage/0460/doc_00187840 [17:38:47]save last doc name /storage/0460/doc_00187840 to /storage/kkm_last_doc_name [17:38:47]save OK [17:38:47]Clear old archive folders... [17:38:47]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:38:47]tlvbuf is 0109A2C0 [17:38:47]SAM_PROTO_ClearQueue [17:38:47]wFMCommunicate request_size=4 [17:38:47]MH_SAM_APDU [17:38:47]CAPDU: 80 09 00 00 [17:38:47]Write to MH i2c: E2 08 00 44 77 80 09 00 00 00 00 00 00 2D [17:38:47]Write i2c OK [17:38:47]MH_I2C_Read... [17:38:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:38:47]Read from MH i2c: E2 [17:38:47]MH_I2C_Read... [17:38:47]Read from MH i2c: E2 03 00 [17:38:47]MH_I2C_Read... [17:38:47]Read from MH i2c: E2 03 00 44 77 00 90 00 2F [17:38:47]RAPDU: 90 00 [17:38:47]wFMCommunicate OK [17:38:47]SAM_PROTO_ClearQueue done [17:38:47]KKMCreateOFDPacket [17:38:47]OFDProtocolAddRootSTLVToBuf [17:38:47]FM_MakeSignedData [17:38:47]FM_MakeSignedData [17:38:47]SAM_PROTO_SignData [17:38:47]wFMCommunicate request_size=4 [17:38:47]MH_SAM_APDU [17:38:47]CAPDU: 80 0D 01 02 [17:38:47]Write to MH i2c: E2 08 00 45 77 80 0D 01 02 00 00 00 00 35 [17:38:47]Write i2c OK [17:38:47]MH_I2C_Read... [17:38:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:38:47]Read from MH i2c: E2 [17:38:47]MH_I2C_Read... [17:38:47]Read from MH i2c: E2 03 00 [17:38:47]MH_I2C_Read... [17:38:47]Read from MH i2c: E2 03 00 45 77 00 90 00 30 [17:38:47]RAPDU: 90 00 [17:38:47]wFMCommunicate OK [17:38:47]wFMCommunicate request_size=255 [17:38:47]MH_SAM_APDU [17:38:47]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B6 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 01 00 00 F4 03 04 00 AB 91 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 C0 DD 02 00 35 04 06 00 E2 [17:38:47]Write to MH i2c: E2 02 01 46 77 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B6 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 01 00 00 F4 03 04 00 AB 91 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 C0 DD 02 00 35 04 06 00 E2 00 00 29 [17:38:47]Write i2c OK [17:38:47]MH_I2C_Read... [17:38:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:38:48]Read from MH i2c: E2 [17:38:48]MH_I2C_Read... [17:38:48]Read from MH i2c: E2 03 00 [17:38:48]MH_I2C_Read... [17:38:48]Read from MH i2c: E2 03 00 46 77 00 90 00 31 [17:38:48]RAPDU: 90 00 [17:38:48]wFMCommunicate OK [17:38:48]wFMCommunicate request_size=10 [17:38:48]MH_SAM_APDU [17:38:48]CAPDU: 80 0D 02 02 05 13 5C 13 9B E5 [17:38:48]Write to MH i2c: E2 0D 00 47 77 80 0D 02 02 05 00 13 5C 13 9B E5 00 00 44 [17:38:48]Write i2c OK [17:38:48]MH_I2C_Read... [17:38:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:38:48]Read from MH i2c: E2 [17:38:48]MH_I2C_Read... [17:38:48]Read from MH i2c: E2 03 00 [17:38:48]MH_I2C_Read... [17:38:48]Read from MH i2c: E2 03 00 47 77 00 90 00 32 [17:38:48]RAPDU: 90 00 [17:38:48]wFMCommunicate OK [17:38:48]wFMCommunicate request_size=4 [17:38:48]MH_SAM_APDU [17:38:48]CAPDU: 80 0D 03 02 [17:38:48]Write to MH i2c: E2 08 00 48 77 80 0D 03 02 00 00 00 00 3A [17:38:48]Write i2c OK [17:38:48]MH_I2C_Read... [17:38:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:38:48]Read from MH i2c: E2 [17:38:48]MH_I2C_Read... [17:38:48]Read from MH i2c: E2 0B 00 [17:38:48]MH_I2C_Read... [17:38:48]Read from MH i2c: E2 0B 00 48 77 00 87 A3 43 0A 42 7D 2E BF 90 00 5E [17:38:48]RAPDU: 87 A3 43 0A 42 7D 2E BF 90 00 [17:38:48]wFMCommunicate OK [17:38:48]SAM_PROTO_SignData done [17:38:48]FM_MakeSignedData done [17:38:48]CreateOFDProtocolMessage [17:38:48]wFMCommunicate request_size=4 [17:38:48]MH_SAM_APDU [17:38:48]CAPDU: 80 11 00 00 [17:38:48]Write to MH i2c: E2 08 00 49 77 80 11 00 00 00 00 00 00 3A [17:38:48]Write i2c OK [17:38:48]MH_I2C_Read... [17:38:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:38:48]Read from MH i2c: E2 [17:38:48]MH_I2C_Read... [17:38:48]Read from MH i2c: E2 17 00 [17:38:48]MH_I2C_Read... [17:38:48]Read from MH i2c: E2 17 00 49 77 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 88 [17:38:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [17:38:48]wFMCommunicate OK [17:38:48]CreateOFDProtocolMessage done [17:38:48]OFDSenderStorePacket 187840 [17:38:48]StoreOFDPacket docnum=187840 [17:38:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 32 6C 07 01 43 A6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B6 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 01 00 00 F4 03 04 00 AB 91 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 C0 DD 02 00 35 04 06 00 E2 13 5C 13 9B E5 87 A3 43 0A 42 7D 2E BF [17:38:48]CheckFolder [17:38:48]dirname=/storage/ofd_packets [17:38:48]CheckFolder done [17:38:48]ProducePacketName [17:38:48]name=ofd_packets/00187840 [17:38:48]NVStorageSaveData ofd_packets/00187840 [17:38:48]File name is /storage/ofd_packets/00187840 [17:38:48]Write 301 bytes [17:38:48]NVStorageSaveData done [17:38:48]OFDSenderStorePacket done [17:38:48]KKMCreateOFDPacket done [17:38:48]NVStorageSaveData kkm_last_timestamp [17:38:48]File name is /storage/kkm_last_timestamp [17:38:48]Write 4 bytes [17:38:48]NVStorageSaveData done [17:38:48]ExternCall_PrintAddStr [17:38:48]wPrintStart [17:38:48]Write to MH i2c: 01 00 00 4A 77 C1 [17:38:48]Write i2c OK [17:38:48]MH_I2C_Read... [17:38:48]Read from MH i2c: 01 [17:38:48]MH_I2C_Read... [17:38:48]Read from MH i2c: 01 07 00 [17:38:48]MH_I2C_Read... [17:38:48]Read from MH i2c: 01 07 00 4A 77 00 00 00 00 00 FF 0F D6 [17:38:48]RasterBufferAndPrint [17:38:48]line Счет N : (1)209892 [17:38:48]line ИНН: 02508201610067 [17:38:48]line Контрольно-Кассовый Чек [17:38:48]line ПРОДАЖА [17:38:48]line ТРК (МРК, ГНК) : 23 [17:38:48]line Товар: 2710124500 [17:38:48]line Аи-95-К-3 [17:38:48]line 13.480 * 74.20 [17:38:48]line = 1000.22 [17:38:48]line НДС 12% НСП 1% [17:38:48]line > о реализуемом товаре [17:38:48]line ИТОГО: 1000.22 [17:38:48]line НСП 1% : 8.85 [17:38:48]line НДС 12% : 106.22 [17:38:48]line Наличными: 0.00 [17:38:48]line Безнал.: 1000.22 [17:38:48]line Место: АЗС № 86 "Партнер Нефть" [17:38:48]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [17:38:48]line СНО: Общий режим [17:38:48]line Чек 304 21.10.2024 17:38 [17:38:48]line Смена: 460 ФФД: 1.0 [17:38:48]line ЗНМ: 0300000155 [17:38:48]line РНМ: 0000000000100030 [17:38:48]line Версия ККМ: 001 [17:38:48]line Платежная система: Mbank [17:38:48]line ФМ: 0000000000965340 [17:38:48]line ФД: 187840 [17:38:48]line ФПД: 248572777044965 [17:38:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T173851&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187840&fm=248572777044965&tin=02508201610067®Number=0000000000100030&sum=100022 [17:38:48]written 0, free lines is 4095 [17:38:48]OFD Sender: Processing packet 187840 [packets to send 1062, broken 1061] [17:38:48]ProducePacketName [17:38:48]name=ofd_packets/00187840 [17:38:48]OFD Sender: To server: pG, [17:38:48]CommunicateWithHost lk.salyk.kg:30040 [17:38:48]ConnectInit lk.salyk.kg [17:38:48]Connected sock=9 [17:38:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 32 6C 07 01 43 A6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B6 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 01 00 00 F4 03 04 00 AB 91 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 C0 DD 02 00 35 04 06 00 E2 13 5C 13 9B E5 87 A3 43 0A 42 7D 2E BF [17:38:48]Write to MH i2c: 01 00 00 73 77 EA [17:38:48]Write i2c OK [17:38:48]MH_I2C_Read... [17:38:48]Read from MH i2c: 01 [17:38:48]MH_I2C_Read... [17:38:48]Read from MH i2c: 01 07 00 [17:38:48]MH_I2C_Read... [17:38:48]Read from MH i2c: 01 07 00 73 77 00 00 00 00 00 94 0C 91 [17:38:48]RasterBufferAndPrint [17:38:48]line [17:38:48]line [17:38:48]line [17:38:48]line [17:38:48]line [17:38:48]written 0, free lines is 3224 [17:38:48]MH_Cut [17:38:48]Write to MH i2c: D1 01 00 7A 77 01 C3 [17:38:48]Write i2c OK [17:38:48]MH_I2C_Read... [17:38:48]Read from MH i2c: D1 [17:38:48]MH_I2C_Read... [17:38:48]Read from MH i2c: D1 01 00 [17:38:48]MH_I2C_Read... [17:38:48]Read from MH i2c: D1 01 00 7A 77 00 C2 [17:38:48]Write to MH i2c: 01 00 00 7B 77 F2 [17:38:48]Write i2c OK [17:38:48]MH_I2C_Read... [17:38:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 85 2E 47 00 1C C5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 C0 DD 02 00 F4 03 04 00 9A 3B 16 67 B6 04 01 00 00 3B 52 50 EC 0F 89 E7 30 [17:38:48]CommunicateWithHost err = 0 [17:38:48]CheckOFDResponse [17:38:48]1017 (14) - 77093643461234 [17:38:48]1041 (16) - 0000000000965340 [17:38:48]1040 (4) - 187840 [17:38:48]1012 (4) - 21.10.2024 11:31 [17:38:48]1206 (1) - 0 [17:38:48]OFD Sender: Remove packet 187840 [17:38:48]ProducePacketName [17:38:48]name=ofd_packets/00187840 [17:38:48]NVStorageDeleteData [17:38:49]OFD Sender: No OFD packet to send [17:38:49]*** Cut start [17:38:49]*** Partial cut [17:38:49]*** CUTSNS_PIN = 1 [17:38:49]*** CUTSNS_PIN = 0 [17:38:50]*** Brake cut motor [17:38:50]Read from MH i2c: 01 [17:38:50]MH_I2C_Read... [17:38:50]*** Stop cut motor [17:38:50]*** Cut end [17:38:50]Read from MH i2c: 01 07 00 [17:38:50]MH_I2C_Read... [17:38:50]Read from MH i2c: 01 07 00 7B 77 00 00 00 00 00 FF 0F 07 [17:38:50]process_action close_receipt done [17:38:50]requested_data is exist [17:38:50]produce_requested_data [17:38:50]requested_item fm.sn is exist - process it [17:38:50]wFMCommunicate request_size=4 [17:38:50]MH_SAM_APDU [17:38:50]CAPDU: 80 11 00 00 [17:38:50]Write to MH i2c: E2 08 00 7C 77 80 11 00 00 00 00 00 00 6D [17:38:50]Write i2c OK [17:38:50]MH_I2C_Read... [17:38:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:38:50]Read from MH i2c: E2 [17:38:50]MH_I2C_Read... [17:38:50]Read from MH i2c: E2 17 00 [17:38:50]MH_I2C_Read... [17:38:50]Read from MH i2c: E2 17 00 7C 77 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 BB [17:38:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [17:38:50]wFMCommunicate OK [17:38:50]requested_item fd.num is exist - process it [17:38:50]SAM_PROTO_GetFieldsCounters [17:38:50]wFMCommunicate request_size=4 [17:38:50]MH_SAM_APDU [17:38:50]CAPDU: 80 13 00 00 [17:38:50]Write to MH i2c: E2 08 00 7D 77 80 13 00 00 00 00 00 00 70 [17:38:50]Write i2c OK [17:38:50]MH_I2C_Read... [17:38:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:38:50]Read from MH i2c: E2 [17:38:50]MH_I2C_Read... [17:38:50]Read from MH i2c: E2 62 00 [17:38:50]MH_I2C_Read... [17:38:50]Read from MH i2c: E2 62 00 7D 77 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 C0 DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 30 01 00 00 5E 04 04 00 30 01 00 00 57 04 04 00 31 01 00 00 19 04 04 00 00 00 00 00 90 00 76 [17:38:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 C0 DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 30 01 00 00 5E 04 04 00 30 01 00 00 57 04 04 00 31 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:38:50]wFMCommunicate OK [17:38:50]SAM_PROTO_GetFieldsCounters done [17:38:50]requested_item shift.num is exist - process it [17:38:50]requested_item shift.opened is exist - process it [17:38:50]req_shift_opened [17:38:50]FM_GetShiftState [17:38:50]SAM_PROTO_GetShiftState [17:38:50]wFMCommunicate request_size=4 [17:38:50]MH_SAM_APDU [17:38:50]CAPDU: 80 13 01 00 [17:38:50]Write to MH i2c: E2 08 00 7E 77 80 13 01 00 00 00 00 00 72 [17:38:50]Write i2c OK [17:38:50]MH_I2C_Read... [17:38:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:38:50]Read from MH i2c: E2 [17:38:50]MH_I2C_Read... [17:38:50]Read from MH i2c: E2 0E 00 [17:38:50]MH_I2C_Read... [17:38:50]Read from MH i2c: E2 0E 00 7E 77 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 D1 [17:38:50]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [17:38:50]wFMCommunicate OK [17:38:50]SAM_PROTO_GetShiftState done [17:38:50]FM_GetShiftState done [17:38:50]req_shift_opened done [17:38:50]requested_item shift.open_date is exist - process it [17:38:50]req_shift_open_date [17:38:50]req_shift_open_date done [17:38:50]produce_requested_data done [17:38:50]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187840,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [17:38:50]process_action_free close_receipt [17:38:50]json_value_free [17:38:50]json_value_free done [17:38:50]process_json_proto returns [17:38:50]Send response to host [17:38:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187840,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [17:38:50]free response buf [17:38:50]execute_script done [17:38:50]execute_script returns [17:38:50]free content buf [17:38:50]Sock 10.Close socket [17:38:50]Sock 10.Thread stoped [17:38:54]OFD Sender: No OFD packet to send [17:38:59]OFD Sender: No OFD packet to send [17:39:04]OFD Sender: No OFD packet to send [17:39:09]OFD Sender: No OFD packet to send [17:39:14]OFD Sender: No OFD packet to send [17:39:19]OFD Sender: No OFD packet to send [17:39:24]OFD Sender: No OFD packet to send [17:39:29]OFD Sender: No OFD packet to send [17:39:31]accept exits with 8 [17:39:31]New connection [17:39:31]New thread 3067014500 created [17:39:31]Thread 3067157860 joined [17:39:31]Waiting for new connection... [17:39:31] Sock 8.Parse request [17:39:31]Sock 8.Check first char [17:39:31]Sock 8.First char is OK [17:39:31]request: POST /json_proto HTTP/1.0 [17:39:31]Method: POST [17:39:31]URL: /json_proto [17:39:31]Method is POST - this is cgi request [17:39:31]url: /json_proto [17:39:31]query_string will be loaded in cgi processing [17:39:31]execute_cgi json_proto POST (null) [17:39:31]execute_cgi path=json_proto method=POST [17:39:31]POST find Content-Length [17:39:31]Host: 172.17.42.131:8080 [17:39:31]Content-Length: 677 [17:39:31]Content-Type: application/json [17:39:31] [17:39:31]POST finish read [17:39:31]Found Content-Length = 677 [17:39:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209894", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:39:31]execute_script... [17:39: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)209894", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:39:31]POST & json_proto [17:39:31]process_json_proto [17:39:31]json parsed OK: [17:39:31]protocol is kg_v1.0 [17:39:31]action value=close_receipt [17:39:31]process_action close_receipt [17:39:31]cmd_close_receipt [17:39:31]MH_GetDate [17:39:31]Write to MH i2c: F0 00 00 7F 77 E5 [17:39:31]Write i2c OK [17:39:31]MH_I2C_Read... [17:39:31]Read from MH i2c: F0 [17:39:31]MH_I2C_Read... [17:39:31]Read from MH i2c: F0 09 00 [17:39:31]MH_I2C_Read... [17:39:31]Read from MH i2c: F0 09 00 7F 77 00 D8 91 16 67 A0 18 CA 66 BC [17:39:31]GetLastDocTimeStamp 1729532331 [17:39:31]current date 1729532376 [17:39:31]FM_GetShiftState [17:39:31]SAM_PROTO_GetShiftState [17:39:31]wFMCommunicate request_size=4 [17:39:31]MH_SAM_APDU [17:39:31]CAPDU: 80 13 01 00 [17:39:31]Write to MH i2c: E2 08 00 80 77 80 13 01 00 00 00 00 00 74 [17:39:31]Write i2c OK [17:39:31]MH_I2C_Read... [17:39:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:39:31]Read from MH i2c: E2 [17:39:31]MH_I2C_Read... [17:39:31]Read from MH i2c: E2 0E 00 [17:39:31]MH_I2C_Read... [17:39:31]Read from MH i2c: E2 0E 00 80 77 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 D3 [17:39:31]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [17:39:31]wFMCommunicate OK [17:39:31]SAM_PROTO_GetShiftState done [17:39:31]FM_GetShiftState done [17:39:31]opened in 1729469754 [17:39:31]opened+sec_in_day 1729556154 [17:39:31]quantity*price = 50041 [17:39:31]sum+1 = 50042 [17:39: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 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 305 21.10.2024 17:39 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 187841 ФПД: 79629467590671 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T173936&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187841&fm=79629467590671&tin=02508201610067®Number=0000000000100030&sum=50000 [17:39:32]StoreToDocumentArchive [17:39:32]shift 460 fd 187841 [17:39:32]save to /storage/0460/doc_00187841 [17:39:32]save last doc name /storage/0460/doc_00187841 to /storage/kkm_last_doc_name [17:39:32]save OK [17:39:32]Clear old archive folders... [17:39:32]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:39:32]tlvbuf is 01293240 [17:39:32]SAM_PROTO_ClearQueue [17:39:32]wFMCommunicate request_size=4 [17:39:32]MH_SAM_APDU [17:39:32]CAPDU: 80 09 00 00 [17:39:32]Write to MH i2c: E2 08 00 8D 77 80 09 00 00 00 00 00 00 76 [17:39:32]Write i2c OK [17:39:32]MH_I2C_Read... [17:39:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:39:32]Read from MH i2c: E2 [17:39:32]MH_I2C_Read... [17:39:32]Read from MH i2c: E2 03 00 [17:39:32]MH_I2C_Read... [17:39:32]Read from MH i2c: E2 03 00 8D 77 00 90 00 78 [17:39:32]RAPDU: 90 00 [17:39:32]wFMCommunicate OK [17:39:32]SAM_PROTO_ClearQueue done [17:39:32]KKMCreateOFDPacket [17:39:32]OFDProtocolAddRootSTLVToBuf [17:39:32]FM_MakeSignedData [17:39:32]FM_MakeSignedData [17:39:32]SAM_PROTO_SignData [17:39:32]wFMCommunicate request_size=4 [17:39:32]MH_SAM_APDU [17:39:32]CAPDU: 80 0D 01 02 [17:39:32]Write to MH i2c: E2 08 00 8E 77 80 0D 01 02 00 00 00 00 7E [17:39:32]Write i2c OK [17:39:32]MH_I2C_Read... [17:39:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:39:32]Read from MH i2c: E2 [17:39:32]MH_I2C_Read... [17:39:32]Read from MH i2c: E2 03 00 [17:39:32]MH_I2C_Read... [17:39:32]Read from MH i2c: E2 03 00 8E 77 00 90 00 79 [17:39:32]RAPDU: 90 00 [17:39:32]wFMCommunicate OK [17:39:32]wFMCommunicate request_size=255 [17:39:32]MH_SAM_APDU [17:39: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 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 01 00 00 F4 03 04 00 D8 91 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 C1 DD 02 00 35 04 06 00 48 [17:39:32]Write to MH i2c: E2 02 01 8F 77 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 01 00 00 F4 03 04 00 D8 91 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 C1 DD 02 00 35 04 06 00 48 00 00 BE [17:39:32]Write i2c OK [17:39:32]MH_I2C_Read... [17:39:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:39:33]Read from MH i2c: E2 [17:39:33]MH_I2C_Read... [17:39:33]Read from MH i2c: E2 03 00 [17:39:33]MH_I2C_Read... [17:39:33]Read from MH i2c: E2 03 00 8F 77 00 90 00 7A [17:39:33]RAPDU: 90 00 [17:39:33]wFMCommunicate OK [17:39:33]wFMCommunicate request_size=10 [17:39:33]MH_SAM_APDU [17:39:33]CAPDU: 80 0D 02 02 05 6C 2E 21 20 0F [17:39:33]Write to MH i2c: E2 0D 00 90 77 80 0D 02 02 05 00 6C 2E 21 20 0F 00 00 75 [17:39:33]Write i2c OK [17:39:33]MH_I2C_Read... [17:39:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:39:33]Read from MH i2c: E2 [17:39:33]MH_I2C_Read... [17:39:33]Read from MH i2c: E2 03 00 [17:39:33]MH_I2C_Read... [17:39:33]Read from MH i2c: E2 03 00 90 77 00 90 00 7B [17:39:33]RAPDU: 90 00 [17:39:33]wFMCommunicate OK [17:39:33]wFMCommunicate request_size=4 [17:39:33]MH_SAM_APDU [17:39:33]CAPDU: 80 0D 03 02 [17:39:33]Write to MH i2c: E2 08 00 91 77 80 0D 03 02 00 00 00 00 83 [17:39:33]Write i2c OK [17:39:33]MH_I2C_Read... [17:39:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:39:33]Read from MH i2c: E2 [17:39:33]MH_I2C_Read... [17:39:33]Read from MH i2c: E2 0B 00 [17:39:33]MH_I2C_Read... [17:39:33]Read from MH i2c: E2 0B 00 91 77 00 F9 9D A8 02 A7 63 C3 2A 90 00 BB [17:39:33]RAPDU: F9 9D A8 02 A7 63 C3 2A 90 00 [17:39:33]wFMCommunicate OK [17:39:33]SAM_PROTO_SignData done [17:39:33]FM_MakeSignedData done [17:39:33]CreateOFDProtocolMessage [17:39:33]wFMCommunicate request_size=4 [17:39:33]MH_SAM_APDU [17:39:33]CAPDU: 80 11 00 00 [17:39:33]Write to MH i2c: E2 08 00 92 77 80 11 00 00 00 00 00 00 83 [17:39:33]Write i2c OK [17:39:33]MH_I2C_Read... [17:39:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:39:33]Read from MH i2c: E2 [17:39:33]MH_I2C_Read... [17:39:33]Read from MH i2c: E2 17 00 [17:39:33]MH_I2C_Read... [17:39:33]Read from MH i2c: E2 17 00 92 77 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 D1 [17:39:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [17:39:33]wFMCommunicate OK [17:39:33]CreateOFDProtocolMessage done [17:39:33]OFDSenderStorePacket 187841 [17:39:33]StoreOFDPacket docnum=187841 [17:39:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 FB 28 07 01 2D 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 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 01 00 00 F4 03 04 00 D8 91 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 C1 DD 02 00 35 04 06 00 48 6C 2E 21 20 0F F9 9D A8 02 A7 63 C3 2A [17:39:33]CheckFolder [17:39:33]dirname=/storage/ofd_packets [17:39:33]CheckFolder done [17:39:33]ProducePacketName [17:39:33]name=ofd_packets/00187841 [17:39:33]NVStorageSaveData ofd_packets/00187841 [17:39:33]File name is /storage/ofd_packets/00187841 [17:39:33]Write 301 bytes [17:39:33]NVStorageSaveData done [17:39:33]OFDSenderStorePacket done [17:39:33]KKMCreateOFDPacket done [17:39:33]NVStorageSaveData kkm_last_timestamp [17:39:33]File name is /storage/kkm_last_timestamp [17:39:33]Write 4 bytes [17:39:33]NVStorageSaveData done [17:39:33]ExternCall_PrintAddStr [17:39:33]wPrintStart [17:39:33]Write to MH i2c: 01 00 00 93 77 0A [17:39:33]Write i2c OK [17:39:33]MH_I2C_Read... [17:39:33]Read from MH i2c: 01 [17:39:33]MH_I2C_Read... [17:39:33]Read from MH i2c: 01 07 00 [17:39:33]MH_I2C_Read... [17:39:33]Read from MH i2c: 01 07 00 93 77 00 00 00 00 00 FF 0F 1F [17:39:33]RasterBufferAndPrint [17:39:33]line Счет N : (1)209894 [17:39:33]line ИНН: 02508201610067 [17:39:33]line Контрольно-Кассовый Чек [17:39:33]line ПРОДАЖА [17:39:33]line ТРК (МРК, ГНК) : 32 [17:39:33]line Товар: 2710124130 [17:39:33]line Аи-92-К-3 [17:39:33]line 7.480 * 66.90 [17:39:33]line = 500.41 [17:39:33]line НДС 12% НСП 1% [17:39:33]line > о реализуемом товаре [17:39:33]line ОКРУГЛЕНИЕ: -0.41 [17:39:33]line ИТОГО: 500.00 [17:39:33]line Внесено: 500.00 [17:39:33]line СДАЧА: 0.00 [17:39:33]line НСП 1% : 4.43 [17:39:33]line НДС 12% : 53.14 [17:39:33]line Наличными: 500.00 [17:39:33]line Безнал.: 0.00 [17:39:33]line Место: АЗС № 86 "Партнер Нефть" [17:39:33]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [17:39:33]line СНО: Общий режим [17:39:33]line Чек 305 21.10.2024 17:39 [17:39:33]line Смена: 460 ФФД: 1.0 [17:39:33]line ЗНМ: 0300000155 [17:39:33]line РНМ: 0000000000100030 [17:39:33]line Версия ККМ: 001 [17:39:33]line ФМ: 0000000000965340 [17:39:33]line ФД: 187841 [17:39:33]line ФПД: 79629467590671 [17:39:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T173936&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187841&fm=79629467590671&tin=02508201610067®Number=0000000000100030&sum=50000 [17:39:33]written 0, free lines is 4095 [17:39:33]OFD Sender: Processing packet 187841 [packets to send 1062, broken 1061] [17:39:33]ProducePacketName [17:39:33]name=ofd_packets/00187841 [17:39:33]OFD Sender: To server: pG, [17:39:33]CommunicateWithHost lk.salyk.kg:30040 [17:39:33]ConnectInit lk.salyk.kg [17:39:33]Connected sock=10 [17:39:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 FB 28 07 01 2D 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 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 01 00 00 F4 03 04 00 D8 91 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 C1 DD 02 00 35 04 06 00 48 6C 2E 21 20 0F F9 9D A8 02 A7 63 C3 2A [17:39:33]Write to MH i2c: 01 00 00 BE 77 35 [17:39:33]Write i2c OK [17:39:33]MH_I2C_Read... [17:39:33]Read from MH i2c: 01 [17:39:33]MH_I2C_Read... [17:39:33]Read from MH i2c: 01 07 00 [17:39:33]MH_I2C_Read... [17:39:33]Read from MH i2c: 01 07 00 BE 77 00 00 00 00 00 62 0C AA [17:39:33]RasterBufferAndPrint [17:39:33]line [17:39:33]line [17:39:33]line [17:39:33]line [17:39:33]line [17:39:33]written 0, free lines is 3174 [17:39:33]MH_Cut [17:39:33]Write to MH i2c: D1 01 00 C5 77 01 0E [17:39:33]Write i2c OK [17:39:33]MH_I2C_Read... [17:39:33]Read from MH i2c: D1 [17:39:33]MH_I2C_Read... [17:39:33]Read from MH i2c: D1 01 00 [17:39:33]MH_I2C_Read... [17:39:33]Read from MH i2c: D1 01 00 C5 77 00 0D [17:39:33]Write to MH i2c: 01 00 00 C6 77 3D [17:39:33]Write i2c OK [17:39:33]MH_I2C_Read... [17:39:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 A1 F0 47 00 31 38 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 C1 DD 02 00 F4 03 04 00 C7 3B 16 67 B6 04 01 00 00 C6 3F A2 E8 CE EE 33 79 [17:39:33]CommunicateWithHost err = 0 [17:39:33]CheckOFDResponse [17:39:33]1017 (14) - 77093643461234 [17:39:33]1041 (16) - 0000000000965340 [17:39:33]1040 (4) - 187841 [17:39:33]1012 (4) - 21.10.2024 11:32 [17:39:33]1206 (1) - 0 [17:39:33]OFD Sender: Remove packet 187841 [17:39:33]ProducePacketName [17:39:33]name=ofd_packets/00187841 [17:39:33]NVStorageDeleteData [17:39:34]OFD Sender: No OFD packet to send [17:39:34]*** Cut start [17:39:34]*** Partial cut [17:39:34]*** CUTSNS_PIN = 1 [17:39:34]*** CUTSNS_PIN = 0 [17:39:35]*** Brake cut motor [17:39:35]Read from MH i2c: 01 [17:39:35]MH_I2C_Read... [17:39:35]*** Stop cut motor [17:39:35]*** Cut end [17:39:35]Read from MH i2c: 01 07 00 [17:39:35]MH_I2C_Read... [17:39:35]Read from MH i2c: 01 07 00 C6 77 00 00 00 00 00 FF 0F 52 [17:39:35]process_action close_receipt done [17:39:35]requested_data is exist [17:39:35]produce_requested_data [17:39:35]requested_item fm.sn is exist - process it [17:39:35]wFMCommunicate request_size=4 [17:39:35]MH_SAM_APDU [17:39:35]CAPDU: 80 11 00 00 [17:39:35]Write to MH i2c: E2 08 00 C7 77 80 11 00 00 00 00 00 00 B8 [17:39:35]Write i2c OK [17:39:35]MH_I2C_Read... [17:39:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:39:35]Read from MH i2c: E2 [17:39:35]MH_I2C_Read... [17:39:35]Read from MH i2c: E2 17 00 [17:39:35]MH_I2C_Read... [17:39:35]Read from MH i2c: E2 17 00 C7 77 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 06 [17:39:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [17:39:35]wFMCommunicate OK [17:39:35]requested_item fd.num is exist - process it [17:39:35]SAM_PROTO_GetFieldsCounters [17:39:35]wFMCommunicate request_size=4 [17:39:35]MH_SAM_APDU [17:39:35]CAPDU: 80 13 00 00 [17:39:35]Write to MH i2c: E2 08 00 C8 77 80 13 00 00 00 00 00 00 BB [17:39:35]Write i2c OK [17:39:35]MH_I2C_Read... [17:39:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:39:35]Read from MH i2c: E2 [17:39:35]MH_I2C_Read... [17:39:35]Read from MH i2c: E2 62 00 [17:39:35]MH_I2C_Read... [17:39:35]Read from MH i2c: E2 62 00 C8 77 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 C1 DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 31 01 00 00 5E 04 04 00 31 01 00 00 57 04 04 00 32 01 00 00 19 04 04 00 00 00 00 00 90 00 C5 [17:39:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 C1 DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 31 01 00 00 5E 04 04 00 31 01 00 00 57 04 04 00 32 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:39:35]wFMCommunicate OK [17:39:35]SAM_PROTO_GetFieldsCounters done [17:39:35]requested_item shift.num is exist - process it [17:39:35]requested_item shift.opened is exist - process it [17:39:35]req_shift_opened [17:39:35]FM_GetShiftState [17:39:35]SAM_PROTO_GetShiftState [17:39:35]wFMCommunicate request_size=4 [17:39:35]MH_SAM_APDU [17:39:35]CAPDU: 80 13 01 00 [17:39:35]Write to MH i2c: E2 08 00 C9 77 80 13 01 00 00 00 00 00 BD [17:39:35]Write i2c OK [17:39:35]MH_I2C_Read... [17:39:35]Read from MH i2c: E2 [17:39:35]MH_I2C_Read... [17:39:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:39:35]Read from MH i2c: E2 0E 00 [17:39:35]MH_I2C_Read... [17:39:35]Read from MH i2c: E2 0E 00 C9 77 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 1C [17:39:35]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [17:39:35]wFMCommunicate OK [17:39:35]SAM_PROTO_GetShiftState done [17:39:35]FM_GetShiftState done [17:39:35]req_shift_opened done [17:39:35]requested_item shift.open_date is exist - process it [17:39:35]req_shift_open_date [17:39:35]req_shift_open_date done [17:39:35]produce_requested_data done [17:39:35]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187841,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [17:39:35]process_action_free close_receipt [17:39:35]json_value_free [17:39:35]json_value_free done [17:39:35]process_json_proto returns [17:39:35]Send response to host [17:39:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187841,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [17:39:35]free response buf [17:39:35]execute_script done [17:39:35]execute_script returns [17:39:35]free content buf [17:39:35]Sock 8.Close socket [17:39:35]Sock 8.Thread stoped [17:39:39]OFD Sender: No OFD packet to send [17:39:44]OFD Sender: No OFD packet to send [17:39:49]OFD Sender: No OFD packet to send [17:39:54]OFD Sender: No OFD packet to send [17:39:59]accept exits with 9 [17:39:59]New connection [17:39:59]New thread 3067157860 created [17:39:59]Thread 3067014500 joined [17:39:59]Waiting for new connection... [17:39:59] Sock 9.Parse request [17:39:59]Sock 9.Check first char [17:39:59]Sock 9.First char is OK [17:39:59]request: POST /json_proto HTTP/1.0 [17:39:59]Method: POST [17:39:59]URL: /json_proto [17:39:59]Method is POST - this is cgi request [17:39:59]url: /json_proto [17:39:59]query_string will be loaded in cgi processing [17:39:59]execute_cgi json_proto POST (null) [17:39:59]execute_cgi path=json_proto method=POST [17:39:59]POST find Content-Length [17:39:59]Host: 172.17.42.131:8080 [17:39:59]Content-Length: 688 [17:39:59]Content-Type: application/json [17:39:59] [17:39:59]POST finish read [17:39:59]Found Content-Length = 688 [17:39:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209893", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 25.910, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:39:59]execute_script... [17:39: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)209893", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 25.910, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:39:59]POST & json_proto [17:39:59]process_json_proto [17:39:59]json parsed OK: [17:39:59]protocol is kg_v1.0 [17:39:59]action value=close_receipt [17:39:59]process_action close_receipt [17:39:59]cmd_close_receipt [17:39:59]MH_GetDate [17:39:59]Write to MH i2c: F0 00 00 CA 77 30 [17:39:59]Write i2c OK [17:39:59]MH_I2C_Read... [17:39:59]Read from MH i2c: F0 [17:39:59]MH_I2C_Read... [17:39:59]Read from MH i2c: F0 09 00 [17:39:59]MH_I2C_Read... [17:39:59]Read from MH i2c: F0 09 00 CA 77 00 F4 91 16 67 A0 18 CA 66 23 [17:39:59]GetLastDocTimeStamp 1729532376 [17:39:59]current date 1729532404 [17:39:59]FM_GetShiftState [17:39:59]SAM_PROTO_GetShiftState [17:39:59]wFMCommunicate request_size=4 [17:39:59]MH_SAM_APDU [17:39:59]CAPDU: 80 13 01 00 [17:39:59]Write to MH i2c: E2 08 00 CB 77 80 13 01 00 00 00 00 00 BF [17:39:59]Write i2c OK [17:39:59]MH_I2C_Read... [17:39:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:39:59]Read from MH i2c: E2 [17:39:59]MH_I2C_Read... [17:39:59]Read from MH i2c: E2 0E 00 [17:39:59]MH_I2C_Read... [17:39:59]Read from MH i2c: E2 0E 00 CB 77 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 1E [17:39:59]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [17:39:59]wFMCommunicate OK [17:39:59]SAM_PROTO_GetShiftState done [17:39:59]FM_GetShiftState done [17:39:59]opened in 1729469754 [17:39:59]opened+sec_in_day 1729556154 [17:39:59]quantity*price = 200025 [17:39:59]sum+1 = 200026 [17:39:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 306 21.10.2024 17:40 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 187842 ФПД: 200762867958468 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T174004&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187842&fm=200762867958468&tin=02508201610067®Number=0000000000100030&sum=200000 [17:40:00]StoreToDocumentArchive [17:40:00]shift 460 fd 187842 [17:40:00]save to /storage/0460/doc_00187842 [17:40:00]save last doc name /storage/0460/doc_00187842 to /storage/kkm_last_doc_name [17:40:00]save OK [17:40:00]Clear old archive folders... [17:40:00]ProcessDocumentItem done err = 0, tmpTLVsize=257 [17:40:00]tlvbuf is 0123D7A0 [17:40:00]SAM_PROTO_ClearQueue [17:40:00]wFMCommunicate request_size=4 [17:40:00]MH_SAM_APDU [17:40:00]CAPDU: 80 09 00 00 [17:40:00]Write to MH i2c: E2 08 00 D8 77 80 09 00 00 00 00 00 00 C1 [17:40:00]Write i2c OK [17:40:00]MH_I2C_Read... [17:40:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:40:00]Read from MH i2c: E2 [17:40:00]MH_I2C_Read... [17:40:00]Read from MH i2c: E2 03 00 [17:40:00]MH_I2C_Read... [17:40:00]Read from MH i2c: E2 03 00 D8 77 00 90 00 C3 [17:40:00]RAPDU: 90 00 [17:40:00]wFMCommunicate OK [17:40:00]SAM_PROTO_ClearQueue done [17:40:00]KKMCreateOFDPacket [17:40:00]OFDProtocolAddRootSTLVToBuf [17:40:00]FM_MakeSignedData [17:40:00]FM_MakeSignedData [17:40:00]SAM_PROTO_SignData [17:40:00]wFMCommunicate request_size=4 [17:40:00]MH_SAM_APDU [17:40:00]CAPDU: 80 0D 01 02 [17:40:00]Write to MH i2c: E2 08 00 D9 77 80 0D 01 02 00 00 00 00 C9 [17:40:00]Write i2c OK [17:40:00]MH_I2C_Read... [17:40:00]Read from MH i2c: E2 [17:40:00]MH_I2C_Read... [17:40:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:40:00]Read from MH i2c: E2 03 00 [17:40:00]MH_I2C_Read... [17:40:00]Read from MH i2c: E2 03 00 D9 77 00 90 00 C4 [17:40:00]RAPDU: 90 00 [17:40:00]wFMCommunicate OK [17:40:00]wFMCommunicate request_size=255 [17:40:00]MH_SAM_APDU [17:40:00]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 36 65 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 01 00 00 F4 03 04 00 F4 91 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 C2 DD 02 [17:40:00]Write to MH i2c: E2 02 01 DA 77 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 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 36 65 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 01 00 00 F4 03 04 00 F4 91 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 C2 DD 02 00 00 0D [17:40:00]Write i2c OK [17:40:00]MH_I2C_Read... [17:40:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:40:00]Read from MH i2c: E2 [17:40:00]MH_I2C_Read... [17:40:00]Read from MH i2c: E2 03 00 [17:40:00]MH_I2C_Read... [17:40:00]Read from MH i2c: E2 03 00 DA 77 00 90 00 C5 [17:40:00]RAPDU: 90 00 [17:40:00]wFMCommunicate OK [17:40:00]wFMCommunicate request_size=16 [17:40:00]MH_SAM_APDU [17:40:00]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 B6 97 BF 6D C2 C4 [17:40:00]Write to MH i2c: E2 13 00 DB 77 80 0D 02 02 0B 00 00 35 04 06 00 B6 97 BF 6D C2 C4 00 00 20 [17:40:00]Write i2c OK [17:40:00]MH_I2C_Read... [17:40:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:40:00]Read from MH i2c: E2 [17:40:00]MH_I2C_Read... [17:40:00]Read from MH i2c: E2 03 00 [17:40:00]MH_I2C_Read... [17:40:00]Read from MH i2c: E2 03 00 DB 77 00 90 00 C6 [17:40:00]RAPDU: 90 00 [17:40:00]wFMCommunicate OK [17:40:00]wFMCommunicate request_size=4 [17:40:00]MH_SAM_APDU [17:40:00]CAPDU: 80 0D 03 02 [17:40:00]Write to MH i2c: E2 08 00 DC 77 80 0D 03 02 00 00 00 00 CE [17:40:00]Write i2c OK [17:40:00]MH_I2C_Read... [17:40:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:40:00]Read from MH i2c: E2 [17:40:00]MH_I2C_Read... [17:40:00]Read from MH i2c: E2 0B 00 [17:40:00]MH_I2C_Read... [17:40:00]Read from MH i2c: E2 0B 00 DC 77 00 1F 42 25 A7 7C 39 B6 D2 90 00 39 [17:40:00]RAPDU: 1F 42 25 A7 7C 39 B6 D2 90 00 [17:40:00]wFMCommunicate OK [17:40:00]SAM_PROTO_SignData done [17:40:00]FM_MakeSignedData done [17:40:00]CreateOFDProtocolMessage [17:40:00]wFMCommunicate request_size=4 [17:40:00]MH_SAM_APDU [17:40:00]CAPDU: 80 11 00 00 [17:40:00]Write to MH i2c: E2 08 00 DD 77 80 11 00 00 00 00 00 00 CE [17:40:00]Write i2c OK [17:40:00]MH_I2C_Read... [17:40:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:40:00]Read from MH i2c: E2 [17:40:00]MH_I2C_Read... [17:40:00]Read from MH i2c: E2 17 00 [17:40:00]MH_I2C_Read... [17:40:00]Read from MH i2c: E2 17 00 DD 77 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 1C [17:40:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [17:40:00]wFMCommunicate OK [17:40:00]CreateOFDProtocolMessage done [17:40:00]OFDSenderStorePacket 187842 [17:40:00]StoreOFDPacket docnum=187842 [17:40:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 CA E8 0D 01 E9 28 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 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 36 65 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 01 00 00 F4 03 04 00 F4 91 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 C2 DD 02 00 35 04 06 00 B6 97 BF 6D C2 C4 1F 42 25 A7 7C 39 B6 D2 [17:40:00]CheckFolder [17:40:00]dirname=/storage/ofd_packets [17:40:00]CheckFolder done [17:40:00]ProducePacketName [17:40:00]name=ofd_packets/00187842 [17:40:00]NVStorageSaveData ofd_packets/00187842 [17:40:00]File name is /storage/ofd_packets/00187842 [17:40:00]Write 307 bytes [17:40:00]NVStorageSaveData done [17:40:00]OFDSenderStorePacket done [17:40:00]KKMCreateOFDPacket done [17:40:00]NVStorageSaveData kkm_last_timestamp [17:40:00]File name is /storage/kkm_last_timestamp [17:40:00]Write 4 bytes [17:40:00]NVStorageSaveData done [17:40:00]ExternCall_PrintAddStr [17:40:00]wPrintStart [17:40:00]Write to MH i2c: 01 00 00 DE 77 55 [17:40:00]Write i2c OK [17:40:00]MH_I2C_Read... [17:40:00]Read from MH i2c: 01 [17:40:00]MH_I2C_Read... [17:40:00]Read from MH i2c: 01 07 00 [17:40:00]MH_I2C_Read... [17:40:00]Read from MH i2c: 01 07 00 DE 77 00 00 00 00 00 FF 0F 6A [17:40:00]RasterBufferAndPrint [17:40:00]line Счет N : (1)209893 [17:40:00]line ИНН: 02508201610067 [17:40:00]line Контрольно-Кассовый Чек [17:40:00]line ПРОДАЖА [17:40:00]line ТРК (МРК, ГНК) : 11 [17:40:00]line Товар: 2710194210 [17:40:00]line D-ENERGY ДТ-К-5 [17:40:00]line 25.910 * 77.20 [17:40:00]line = 2000.25 [17:40:00]line НДС 12% НСП 1% [17:40:00]line > о реализуемом товаре [17:40:00]line ОКРУГЛЕНИЕ: -0.25 [17:40:00]line ИТОГО: 2000.00 [17:40:00]line Внесено: 2000.00 [17:40:00]line СДАЧА: 0.00 [17:40:00]line НСП 1% : 17.70 [17:40:00]line НДС 12% : 212.42 [17:40:00]line Наличными: 2000.00 [17:40:00]line Безнал.: 0.00 [17:40:00]line Место: АЗС № 86 "Партнер Нефть" [17:40:00]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [17:40:00]line СНО: Общий режим [17:40:00]line Чек 306 21.10.2024 17:40 [17:40:00]line Смена: 460 ФФД: 1.0 [17:40:00]line ЗНМ: 0300000155 [17:40:00]line РНМ: 0000000000100030 [17:40:00]line Версия ККМ: 001 [17:40:00]line ФМ: 0000000000965340 [17:40:00]line ФД: 187842 [17:40:00]line ФПД: 200762867958468 [17:40:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T174004&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187842&fm=200762867958468&tin=02508201610067®Number=0000000000100030&sum=200000 [17:40:01]OFD Sender: Processing packet 187842 [packets to send 1062, broken 1061] [17:40:01]ProducePacketName [17:40:01]name=ofd_packets/00187842 [17:40:01]OFD Sender: To server: pG, [17:40:01]CommunicateWithHost lk.salyk.kg:30040 [17:40:01]ConnectInit lk.salyk.kg [17:40:01]written 0, free lines is 4095 [17:40:01]Connected sock=10 [17:40:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 CA E8 0D 01 E9 28 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 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 36 65 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 01 00 00 F4 03 04 00 F4 91 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 C2 DD 02 00 35 04 06 00 B6 97 BF 6D C2 C4 1F 42 25 A7 7C 39 B6 D2 [17:40:01]Write to MH i2c: 01 00 00 09 78 81 [17:40:01]Write i2c OK [17:40:01]MH_I2C_Read... [17:40:01]Read from MH i2c: 01 [17:40:01]MH_I2C_Read... [17:40:01]Read from MH i2c: 01 07 00 [17:40:01]MH_I2C_Read... [17:40:01]Read from MH i2c: 01 07 00 09 78 00 00 00 00 00 65 0C F9 [17:40:01]RasterBufferAndPrint [17:40:01]line [17:40:01]line [17:40:01]line [17:40:01]line [17:40:01]line [17:40:01]written 0, free lines is 3176 [17:40:01]MH_Cut [17:40:01]Write to MH i2c: D1 01 00 10 78 01 5A [17:40:01]Write i2c OK [17:40:01]MH_I2C_Read... [17:40:01]Read from MH i2c: D1 [17:40:01]MH_I2C_Read... [17:40:01]Read from MH i2c: D1 01 00 [17:40:01]MH_I2C_Read... [17:40:01]Read from MH i2c: D1 01 00 10 78 00 59 [17:40:01]Write to MH i2c: 01 00 00 11 78 89 [17:40:01]Write i2c OK [17:40:01]MH_I2C_Read... [17:40:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 E5 8D 47 00 7B B9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 C2 DD 02 00 F4 03 04 00 E3 3B 16 67 B6 04 01 00 00 5E 0E 52 1A 2D E5 3B 60 [17:40:01]CommunicateWithHost err = 0 [17:40:01]CheckOFDResponse [17:40:01]1017 (14) - 77093643461234 [17:40:01]1041 (16) - 0000000000965340 [17:40:01]1040 (4) - 187842 [17:40:01]1012 (4) - 21.10.2024 11:32 [17:40:01]1206 (1) - 0 [17:40:01]OFD Sender: Remove packet 187842 [17:40:01]ProducePacketName [17:40:01]name=ofd_packets/00187842 [17:40:01]NVStorageDeleteData [17:40:02]OFD Sender: No OFD packet to send [17:40:02]*** Cut start [17:40:02]*** Partial cut [17:40:02]*** CUTSNS_PIN = 1 [17:40:02]*** CUTSNS_PIN = 0 [17:40:03]*** Brake cut motor [17:40:03]Read from MH i2c: 01 [17:40:03]MH_I2C_Read... [17:40:03]*** Stop cut motor [17:40:03]*** Cut end [17:40:03]Read from MH i2c: 01 07 00 [17:40:03]MH_I2C_Read... [17:40:03]Read from MH i2c: 01 07 00 11 78 00 00 00 00 00 FF 0F 9E [17:40:03]process_action close_receipt done [17:40:03]requested_data is exist [17:40:03]produce_requested_data [17:40:03]requested_item fm.sn is exist - process it [17:40:03]wFMCommunicate request_size=4 [17:40:03]MH_SAM_APDU [17:40:03]CAPDU: 80 11 00 00 [17:40:03]Write to MH i2c: E2 08 00 12 78 80 11 00 00 00 00 00 00 04 [17:40:03]Write i2c OK [17:40:03]MH_I2C_Read... [17:40:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:40:03]Read from MH i2c: E2 [17:40:03]MH_I2C_Read... [17:40:03]Read from MH i2c: E2 17 00 [17:40:03]MH_I2C_Read... [17:40:03]Read from MH i2c: E2 17 00 12 78 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 52 [17:40:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [17:40:03]wFMCommunicate OK [17:40:03]requested_item fd.num is exist - process it [17:40:03]SAM_PROTO_GetFieldsCounters [17:40:03]wFMCommunicate request_size=4 [17:40:03]MH_SAM_APDU [17:40:03]CAPDU: 80 13 00 00 [17:40:03]Write to MH i2c: E2 08 00 13 78 80 13 00 00 00 00 00 00 07 [17:40:03]Write i2c OK [17:40:03]MH_I2C_Read... [17:40:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:40:03]Read from MH i2c: E2 [17:40:03]MH_I2C_Read... [17:40:03]Read from MH i2c: E2 62 00 [17:40:03]MH_I2C_Read... [17:40:03]Read from MH i2c: E2 62 00 13 78 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 C2 DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 32 01 00 00 5E 04 04 00 32 01 00 00 57 04 04 00 33 01 00 00 19 04 04 00 00 00 00 00 90 00 15 [17:40:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 C2 DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 32 01 00 00 5E 04 04 00 32 01 00 00 57 04 04 00 33 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:40:03]wFMCommunicate OK [17:40:03]SAM_PROTO_GetFieldsCounters done [17:40:03]requested_item shift.num is exist - process it [17:40:03]requested_item shift.opened is exist - process it [17:40:03]req_shift_opened [17:40:03]FM_GetShiftState [17:40:03]SAM_PROTO_GetShiftState [17:40:03]wFMCommunicate request_size=4 [17:40:03]MH_SAM_APDU [17:40:03]CAPDU: 80 13 01 00 [17:40:03]Write to MH i2c: E2 08 00 14 78 80 13 01 00 00 00 00 00 09 [17:40:03]Write i2c OK [17:40:03]MH_I2C_Read... [17:40:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:40:03]Read from MH i2c: E2 [17:40:03]MH_I2C_Read... [17:40:03]Read from MH i2c: E2 0E 00 [17:40:03]MH_I2C_Read... [17:40:03]Read from MH i2c: E2 0E 00 14 78 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 68 [17:40:03]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [17:40:03]wFMCommunicate OK [17:40:03]SAM_PROTO_GetShiftState done [17:40:03]FM_GetShiftState done [17:40:03]req_shift_opened done [17:40:03]requested_item shift.open_date is exist - process it [17:40:03]req_shift_open_date [17:40:03]req_shift_open_date done [17:40:03]produce_requested_data done [17:40:03]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187842,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [17:40:03]process_action_free close_receipt [17:40:03]json_value_free [17:40:03]json_value_free done [17:40:03]process_json_proto returns [17:40:03]Send response to host [17:40:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187842,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [17:40:03]free response buf [17:40:03]execute_script done [17:40:03]execute_script returns [17:40:03]free content buf [17:40:03]Sock 9.Close socket [17:40:03]Sock 9.Thread stoped [17:40:07]OFD Sender: No OFD packet to send [17:40:12]OFD Sender: No OFD packet to send [17:40:17]OFD Sender: No OFD packet to send [17:40:22]OFD Sender: No OFD packet to send [17:40:27]OFD Sender: No OFD packet to send [17:40:32]OFD Sender: No OFD packet to send [17:40:37]OFD Sender: No OFD packet to send [17:40:42]OFD Sender: No OFD packet to send [17:40:47]OFD Sender: No OFD packet to send [17:40:52]OFD Sender: No OFD packet to send [17:40:57]OFD Sender: No OFD packet to send [17:41:02]OFD Sender: No OFD packet to send [17:41:07]OFD Sender: No OFD packet to send [17:41:12]OFD Sender: No OFD packet to send [17:41:17]OFD Sender: No OFD packet to send [17:41:22]OFD Sender: No OFD packet to send [17:41:27]OFD Sender: No OFD packet to send [17:41:32]OFD Sender: No OFD packet to send [17:41:37]OFD Sender: No OFD packet to send [17:41:42]OFD Sender: No OFD packet to send [17:41:47]OFD Sender: No OFD packet to send [17:41:52]OFD Sender: No OFD packet to send [17:41:57]OFD Sender: No OFD packet to send [17:42:02]OFD Sender: No OFD packet to send [17:42:07]OFD Sender: No OFD packet to send [17:42:12]OFD Sender: No OFD packet to send [17:42:17]OFD Sender: No OFD packet to send [17:42:22]OFD Sender: No OFD packet to send [17:42:27]OFD Sender: No OFD packet to send [17:42:33]OFD Sender: No OFD packet to send [17:42:38]OFD Sender: No OFD packet to send [17:42:43]OFD Sender: No OFD packet to send [17:42:48]OFD Sender: No OFD packet to send [17:42:53]OFD Sender: No OFD packet to send [17:42:58]OFD Sender: No OFD packet to send [17:43:03]OFD Sender: No OFD packet to send [17:43:08]OFD Sender: No OFD packet to send [17:43:13]OFD Sender: No OFD packet to send [17:43:18]OFD Sender: No OFD packet to send [17:43:23]OFD Sender: No OFD packet to send [17:43:28]OFD Sender: No OFD packet to send [17:43:33]OFD Sender: No OFD packet to send [17:43:38]OFD Sender: No OFD packet to send [17:43:43]OFD Sender: No OFD packet to send [17:43:48]OFD Sender: No OFD packet to send [17:43:53]OFD Sender: No OFD packet to send [17:43:55]accept exits with 8 [17:43:55]New connection [17:43:55]New thread 3067014500 created [17:43:55]Thread 3067157860 joined [17:43:55]Waiting for new connection... [17:43:55] Sock 8.Parse request [17:43:55]Sock 8.Check first char [17:43:55]Sock 8.First char is OK [17:43:55]request: POST /json_proto HTTP/1.0 [17:43:55]Method: POST [17:43:55]URL: /json_proto [17:43:55]Method is POST - this is cgi request [17:43:55]url: /json_proto [17:43:55]query_string will be loaded in cgi processing [17:43:55]execute_cgi json_proto POST (null) [17:43:55]execute_cgi path=json_proto method=POST [17:43:55]POST find Content-Length [17:43:55]Host: 172.17.42.131:8080 [17:43:55]Content-Length: 682 [17:43:55]Content-Type: application/json [17:43:55] [17:43:55]POST finish read [17:43:55]Found Content-Length = 682 [17:43:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209895", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:43:55]execute_script... [17:43: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)209895", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:43:55]POST & json_proto [17:43:55]process_json_proto [17:43:55]json parsed OK: [17:43:55]protocol is kg_v1.0 [17:43:55]action value=close_receipt [17:43:55]process_action close_receipt [17:43:55]cmd_close_receipt [17:43:55]MH_GetDate [17:43:55]Write to MH i2c: F0 00 00 15 78 7C [17:43:55]Write i2c OK [17:43:55]MH_I2C_Read... [17:43:55]Read from MH i2c: F0 [17:43:55]MH_I2C_Read... [17:43:55]Read from MH i2c: F0 09 00 [17:43:55]MH_I2C_Read... [17:43:55]Read from MH i2c: F0 09 00 15 78 00 E0 92 16 67 A0 18 CA 66 5C [17:43:55]GetLastDocTimeStamp 1729532404 [17:43:55]current date 1729532640 [17:43:55]FM_GetShiftState [17:43:55]SAM_PROTO_GetShiftState [17:43:55]wFMCommunicate request_size=4 [17:43:55]MH_SAM_APDU [17:43:55]CAPDU: 80 13 01 00 [17:43:55]Write to MH i2c: E2 08 00 16 78 80 13 01 00 00 00 00 00 0B [17:43:55]Write i2c OK [17:43:55]MH_I2C_Read... [17:43:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:43:55]Read from MH i2c: E2 [17:43:55]MH_I2C_Read... [17:43:55]Read from MH i2c: E2 0E 00 [17:43:55]MH_I2C_Read... [17:43:55]Read from MH i2c: E2 0E 00 16 78 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 6A [17:43:55]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [17:43:55]wFMCommunicate OK [17:43:55]SAM_PROTO_GetShiftState done [17:43:55]FM_GetShiftState done [17:43:55]opened in 1729469754 [17:43:55]opened+sec_in_day 1729556154 [17:43:55]quantity*price = 100015 [17:43:55]sum+1 = 100017 [17:43:55]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 307 21.10.2024 17:44 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 187843 ФПД: 93523009806420 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T174400&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187843&fm=93523009806420&tin=02508201610067®Number=0000000000100030&sum=100000 [17:43:56]StoreToDocumentArchive [17:43:56]shift 460 fd 187843 [17:43:56]save to /storage/0460/doc_00187843 [17:43:56]save last doc name /storage/0460/doc_00187843 to /storage/kkm_last_doc_name [17:43:56]save OK [17:43:56]Clear old archive folders... [17:43:56]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:43:56]tlvbuf is 011218A0 [17:43:56]SAM_PROTO_ClearQueue [17:43:56]wFMCommunicate request_size=4 [17:43:56]MH_SAM_APDU [17:43:56]CAPDU: 80 09 00 00 [17:43:56]Write to MH i2c: E2 08 00 23 78 80 09 00 00 00 00 00 00 0D [17:43:56]Write i2c OK [17:43:56]MH_I2C_Read... [17:43:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:43:56]Read from MH i2c: E2 [17:43:56]MH_I2C_Read... [17:43:56]Read from MH i2c: E2 03 00 [17:43:56]MH_I2C_Read... [17:43:56]Read from MH i2c: E2 03 00 23 78 00 90 00 0F [17:43:56]RAPDU: 90 00 [17:43:56]wFMCommunicate OK [17:43:56]SAM_PROTO_ClearQueue done [17:43:56]KKMCreateOFDPacket [17:43:56]OFDProtocolAddRootSTLVToBuf [17:43:56]FM_MakeSignedData [17:43:56]FM_MakeSignedData [17:43:56]SAM_PROTO_SignData [17:43:56]wFMCommunicate request_size=4 [17:43:56]MH_SAM_APDU [17:43:56]CAPDU: 80 0D 01 02 [17:43:56]Write to MH i2c: E2 08 00 24 78 80 0D 01 02 00 00 00 00 15 [17:43:56]Write i2c OK [17:43:56]MH_I2C_Read... [17:43:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:43:56]Read from MH i2c: E2 [17:43:56]MH_I2C_Read... [17:43:56]Read from MH i2c: E2 03 00 [17:43:56]MH_I2C_Read... [17:43:56]Read from MH i2c: E2 03 00 24 78 00 90 00 10 [17:43:56]RAPDU: 90 00 [17:43:56]wFMCommunicate OK [17:43:56]wFMCommunicate request_size=255 [17:43:56]MH_SAM_APDU [17:43: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 33 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 33 01 00 00 F4 03 04 00 E0 92 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 C3 DD 02 00 35 04 06 00 55 [17:43:56]Write to MH i2c: E2 02 01 25 78 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 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 33 01 00 00 F4 03 04 00 E0 92 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 C3 DD 02 00 35 04 06 00 55 00 00 69 [17:43:56]Write i2c OK [17:43:56]MH_I2C_Read... [17:43:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:43:56]Read from MH i2c: E2 [17:43:56]MH_I2C_Read... [17:43:56]Read from MH i2c: E2 03 00 [17:43:56]MH_I2C_Read... [17:43:56]Read from MH i2c: E2 03 00 25 78 00 90 00 11 [17:43:56]RAPDU: 90 00 [17:43:56]wFMCommunicate OK [17:43:56]wFMCommunicate request_size=10 [17:43:56]MH_SAM_APDU [17:43:56]CAPDU: 80 0D 02 02 05 0F 05 C7 20 54 [17:43:56]Write to MH i2c: E2 0D 00 26 78 80 0D 02 02 05 00 0F 05 C7 20 54 00 00 71 [17:43:56]Write i2c OK [17:43:56]MH_I2C_Read... [17:43:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:43:56]Read from MH i2c: E2 [17:43:56]MH_I2C_Read... [17:43:56]Read from MH i2c: E2 03 00 [17:43:56]MH_I2C_Read... [17:43:56]Read from MH i2c: E2 03 00 26 78 00 90 00 12 [17:43:56]RAPDU: 90 00 [17:43:56]wFMCommunicate OK [17:43:56]wFMCommunicate request_size=4 [17:43:56]MH_SAM_APDU [17:43:56]CAPDU: 80 0D 03 02 [17:43:56]Write to MH i2c: E2 08 00 27 78 80 0D 03 02 00 00 00 00 1A [17:43:56]Write i2c OK [17:43:56]MH_I2C_Read... [17:43:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:43:56]Read from MH i2c: E2 [17:43:56]MH_I2C_Read... [17:43:56]Read from MH i2c: E2 0B 00 [17:43:56]MH_I2C_Read... [17:43:56]Read from MH i2c: E2 0B 00 27 78 00 D0 3B 23 FA 26 67 B9 EE 90 00 77 [17:43:56]RAPDU: D0 3B 23 FA 26 67 B9 EE 90 00 [17:43:56]wFMCommunicate OK [17:43:56]SAM_PROTO_SignData done [17:43:56]FM_MakeSignedData done [17:43:56]CreateOFDProtocolMessage [17:43:56]wFMCommunicate request_size=4 [17:43:56]MH_SAM_APDU [17:43:56]CAPDU: 80 11 00 00 [17:43:56]Write to MH i2c: E2 08 00 28 78 80 11 00 00 00 00 00 00 1A [17:43:56]Write i2c OK [17:43:56]MH_I2C_Read... [17:43:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:43:56]Read from MH i2c: E2 [17:43:56]MH_I2C_Read... [17:43:56]Read from MH i2c: E2 17 00 [17:43:56]MH_I2C_Read... [17:43:56]Read from MH i2c: E2 17 00 28 78 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 68 [17:43:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [17:43:56]wFMCommunicate OK [17:43:56]CreateOFDProtocolMessage done [17:43:56]OFDSenderStorePacket 187843 [17:43:56]StoreOFDPacket docnum=187843 [17:43:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 10 B8 07 01 3F ED 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 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 33 01 00 00 F4 03 04 00 E0 92 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 C3 DD 02 00 35 04 06 00 55 0F 05 C7 20 54 D0 3B 23 FA 26 67 B9 EE [17:43:56]CheckFolder [17:43:56]dirname=/storage/ofd_packets [17:43:56]CheckFolder done [17:43:56]ProducePacketName [17:43:56]name=ofd_packets/00187843 [17:43:56]NVStorageSaveData ofd_packets/00187843 [17:43:56]File name is /storage/ofd_packets/00187843 [17:43:56]Write 301 bytes [17:43:56]NVStorageSaveData done [17:43:56]OFDSenderStorePacket done [17:43:56]KKMCreateOFDPacket done [17:43:56]NVStorageSaveData kkm_last_timestamp [17:43:56]File name is /storage/kkm_last_timestamp [17:43:56]Write 4 bytes [17:43:56]NVStorageSaveData done [17:43:56]ExternCall_PrintAddStr [17:43:56]wPrintStart [17:43:56]Write to MH i2c: 01 00 00 29 78 A1 [17:43:56]Write i2c OK [17:43:56]MH_I2C_Read... [17:43:56]Read from MH i2c: 01 [17:43:56]MH_I2C_Read... [17:43:56]Read from MH i2c: 01 07 00 [17:43:56]MH_I2C_Read... [17:43:56]Read from MH i2c: 01 07 00 29 78 00 00 00 00 00 FF 0F B6 [17:43:56]RasterBufferAndPrint [17:43:56]line Счет N : (1)209895 [17:43:56]line ИНН: 02508201610067 [17:43:56]line Контрольно-Кассовый Чек [17:43:56]line ПРОДАЖА [17:43:56]line ТРК (МРК, ГНК) : 42 [17:43:56]line Товар: 2710124130 [17:43:56]line Аи-92-К-3 [17:43:56]line 14.950 * 66.90 [17:43:56]line = 1000.16 [17:43:56]line НДС 12% НСП 1% [17:43:56]line > о реализуемом товаре [17:43:56]line ОКРУГЛЕНИЕ: -0.16 [17:43:56]line ИТОГО: 1000.00 [17:43:56]line Внесено: 1000.00 [17:43:56]line СДАЧА: 0.00 [17:43:56]line НСП 1% : 8.85 [17:43:56]line НДС 12% : 106.21 [17:43:56]line Наличными: 1000.00 [17:43:56]line Безнал.: 0.00 [17:43:56]line Место: АЗС № 86 "Партнер Нефть" [17:43:56]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [17:43:56]line СНО: Общий режим [17:43:56]line Чек 307 21.10.2024 17:44 [17:43:56]line Смена: 460 ФФД: 1.0 [17:43:56]line ЗНМ: 0300000155 [17:43:56]line РНМ: 0000000000100030 [17:43:56]line Версия ККМ: 001 [17:43:56]line ФМ: 0000000000965340 [17:43:56]line ФД: 187843 [17:43:56]line ФПД: 93523009806420 [17:43:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T174400&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187843&fm=93523009806420&tin=02508201610067®Number=0000000000100030&sum=100000 [17:43:56]written 0, free lines is 4095 [17:43:57]OFD Sender: Processing packet 187843 [packets to send 1062, broken 1061] [17:43:57]ProducePacketName [17:43:57]name=ofd_packets/00187843 [17:43:57]OFD Sender: To server: pG, [17:43:57]CommunicateWithHost lk.salyk.kg:30040 [17:43:57]ConnectInit lk.salyk.kg [17:43:57]Connected sock=9 [17:43:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 10 B8 07 01 3F ED 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 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 33 01 00 00 F4 03 04 00 E0 92 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 C3 DD 02 00 35 04 06 00 55 0F 05 C7 20 54 D0 3B 23 FA 26 67 B9 EE [17:43:57]Write to MH i2c: 01 00 00 54 78 CC [17:43:57]Write i2c OK [17:43:57]MH_I2C_Read... [17:43:57]Read from MH i2c: 01 [17:43:57]MH_I2C_Read... [17:43:57]Read from MH i2c: 01 07 00 [17:43:57]MH_I2C_Read... [17:43:57]Read from MH i2c: 01 07 00 54 78 00 00 00 00 00 6A 0C 49 [17:43:57]RasterBufferAndPrint [17:43:57]line [17:43:57]line [17:43:57]line [17:43:57]line [17:43:57]line [17:43:57]written 0, free lines is 3181 [17:43:57]MH_Cut [17:43:57]Write to MH i2c: D1 01 00 5B 78 01 A5 [17:43:57]Write i2c OK [17:43:57]MH_I2C_Read... [17:43:57]Read from MH i2c: D1 [17:43:57]MH_I2C_Read... [17:43:57]Read from MH i2c: D1 01 00 [17:43:57]MH_I2C_Read... [17:43:57]Read from MH i2c: D1 01 00 5B 78 00 A4 [17:43:57]Write to MH i2c: 01 00 00 5C 78 D4 [17:43:57]Write i2c OK [17:43:57]MH_I2C_Read... [17:43:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 76 C5 47 00 83 70 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 C3 DD 02 00 F4 03 04 00 CF 3C 16 67 B6 04 01 00 00 5C 13 E2 49 5E B4 DF FA [17:43:57]CommunicateWithHost err = 0 [17:43:57]CheckOFDResponse [17:43:57]1017 (14) - 77093643461234 [17:43:57]1041 (16) - 0000000000965340 [17:43:57]1040 (4) - 187843 [17:43:57]1012 (4) - 21.10.2024 11:36 [17:43:57]1206 (1) - 0 [17:43:57]OFD Sender: Remove packet 187843 [17:43:57]ProducePacketName [17:43:57]name=ofd_packets/00187843 [17:43:57]NVStorageDeleteData [17:43:58]OFD Sender: No OFD packet to send [17:43:58]*** Cut start [17:43:58]*** Partial cut [17:43:58]*** CUTSNS_PIN = 1 [17:43:58]*** CUTSNS_PIN = 0 [17:43:58]*** Brake cut motor [17:43:59]Read from MH i2c: 01 [17:43:59]MH_I2C_Read... [17:43:59]*** Stop cut motor [17:43:59]*** Cut end [17:43:59]Read from MH i2c: 01 07 00 [17:43:59]MH_I2C_Read... [17:43:59]Read from MH i2c: 01 07 00 5C 78 00 00 00 00 00 FF 0F E9 [17:43:59]process_action close_receipt done [17:43:59]requested_data is exist [17:43:59]produce_requested_data [17:43:59]requested_item fm.sn is exist - process it [17:43:59]wFMCommunicate request_size=4 [17:43:59]MH_SAM_APDU [17:43:59]CAPDU: 80 11 00 00 [17:43:59]Write to MH i2c: E2 08 00 5D 78 80 11 00 00 00 00 00 00 4F [17:43:59]Write i2c OK [17:43:59]MH_I2C_Read... [17:43:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:43:59]Read from MH i2c: E2 [17:43:59]MH_I2C_Read... [17:43:59]Read from MH i2c: E2 17 00 [17:43:59]MH_I2C_Read... [17:43:59]Read from MH i2c: E2 17 00 5D 78 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 9D [17:43:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [17:43:59]wFMCommunicate OK [17:43:59]requested_item fd.num is exist - process it [17:43:59]SAM_PROTO_GetFieldsCounters [17:43:59]wFMCommunicate request_size=4 [17:43:59]MH_SAM_APDU [17:43:59]CAPDU: 80 13 00 00 [17:43:59]Write to MH i2c: E2 08 00 5E 78 80 13 00 00 00 00 00 00 52 [17:43:59]Write i2c OK [17:43:59]MH_I2C_Read... [17:43:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:43:59]Read from MH i2c: E2 [17:43:59]MH_I2C_Read... [17:43:59]Read from MH i2c: E2 62 00 [17:43:59]MH_I2C_Read... [17:43:59]Read from MH i2c: E2 62 00 5E 78 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 C3 DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 33 01 00 00 5E 04 04 00 33 01 00 00 57 04 04 00 34 01 00 00 19 04 04 00 00 00 00 00 90 00 64 [17:43:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 C3 DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 33 01 00 00 5E 04 04 00 33 01 00 00 57 04 04 00 34 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:43:59]wFMCommunicate OK [17:43:59]SAM_PROTO_GetFieldsCounters done [17:43:59]requested_item shift.num is exist - process it [17:43:59]requested_item shift.opened is exist - process it [17:43:59]req_shift_opened [17:43:59]FM_GetShiftState [17:43:59]SAM_PROTO_GetShiftState [17:43:59]wFMCommunicate request_size=4 [17:43:59]MH_SAM_APDU [17:43:59]CAPDU: 80 13 01 00 [17:43:59]Write to MH i2c: E2 08 00 5F 78 80 13 01 00 00 00 00 00 54 [17:43:59]Write i2c OK [17:43:59]MH_I2C_Read... [17:43:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:43:59]Read from MH i2c: E2 [17:43:59]MH_I2C_Read... [17:43:59]Read from MH i2c: E2 0E 00 [17:43:59]MH_I2C_Read... [17:43:59]Read from MH i2c: E2 0E 00 5F 78 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 B3 [17:43:59]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [17:43:59]wFMCommunicate OK [17:43:59]SAM_PROTO_GetShiftState done [17:43:59]FM_GetShiftState done [17:43:59]req_shift_opened done [17:43:59]requested_item shift.open_date is exist - process it [17:43:59]req_shift_open_date [17:43:59]req_shift_open_date done [17:43:59]produce_requested_data done [17:43:59]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187843,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [17:43:59]process_action_free close_receipt [17:43:59]json_value_free [17:43:59]json_value_free done [17:43:59]process_json_proto returns [17:43:59]Send response to host [17:43:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187843,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [17:43:59]free response buf [17:43:59]execute_script done [17:43:59]execute_script returns [17:43:59]free content buf [17:43:59]Sock 8.Close socket [17:43:59]Sock 8.Thread stoped [17:44:03]OFD Sender: No OFD packet to send [17:44:08]OFD Sender: No OFD packet to send [17:44:13]OFD Sender: No OFD packet to send [17:44:18]OFD Sender: No OFD packet to send [17:44:23]OFD Sender: No OFD packet to send [17:44:28]OFD Sender: No OFD packet to send [17:44:33]OFD Sender: No OFD packet to send [17:44:38]OFD Sender: No OFD packet to send [17:44:43]OFD Sender: No OFD packet to send [17:44:48]OFD Sender: No OFD packet to send [17:44:53]OFD Sender: No OFD packet to send [17:44:58]OFD Sender: No OFD packet to send [17:45:03]OFD Sender: No OFD packet to send [17:45:08]OFD Sender: No OFD packet to send [17:45:13]OFD Sender: No OFD packet to send [17:45:18]OFD Sender: No OFD packet to send [17:45:23]OFD Sender: No OFD packet to send [17:45:28]OFD Sender: No OFD packet to send [17:45:33]OFD Sender: No OFD packet to send [17:45:38]OFD Sender: No OFD packet to send [17:45:43]OFD Sender: No OFD packet to send [17:45:46]accept exits with 10 [17:45:46]New connection [17:45:46]New thread 3067157860 created [17:45:46]Thread 3067014500 joined [17:45:46]Waiting for new connection... [17:45:46] Sock 10.Parse request [17:45:46]Sock 10.Check first char [17:45:46]Sock 10.First char is OK [17:45:46]request: POST /json_proto HTTP/1.0 [17:45:46]Method: POST [17:45:46]URL: /json_proto [17:45:46]Method is POST - this is cgi request [17:45:46]url: /json_proto [17:45:46]query_string will be loaded in cgi processing [17:45:46]execute_cgi json_proto POST (null) [17:45:46]execute_cgi path=json_proto method=POST [17:45:46]POST find Content-Length [17:45:46]Host: 172.17.42.131:8080 [17:45:46]Content-Length: 677 [17:45:46]Content-Type: application/json [17:45:46] [17:45:46]POST finish read [17:45:46]Found Content-Length = 677 [17:45:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209896", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:45:46]execute_script... [17:45: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)209896", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:45:46]POST & json_proto [17:45:46]process_json_proto [17:45:46]json parsed OK: [17:45:46]protocol is kg_v1.0 [17:45:46]action value=close_receipt [17:45:46]process_action close_receipt [17:45:46]cmd_close_receipt [17:45:46]MH_GetDate [17:45:46]Write to MH i2c: F0 00 00 60 78 C7 [17:45:46]Write i2c OK [17:45:46]MH_I2C_Read... [17:45:46]Read from MH i2c: F0 [17:45:46]MH_I2C_Read... [17:45:46]Read from MH i2c: F0 09 00 [17:45:46]MH_I2C_Read... [17:45:46]Read from MH i2c: F0 09 00 60 78 00 50 93 16 67 A0 18 CA 66 18 [17:45:46]GetLastDocTimeStamp 1729532640 [17:45:46]current date 1729532752 [17:45:46]FM_GetShiftState [17:45:46]SAM_PROTO_GetShiftState [17:45:46]wFMCommunicate request_size=4 [17:45:46]MH_SAM_APDU [17:45:46]CAPDU: 80 13 01 00 [17:45:46]Write to MH i2c: E2 08 00 61 78 80 13 01 00 00 00 00 00 56 [17:45:46]Write i2c OK [17:45:46]MH_I2C_Read... [17:45:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:45:46]Read from MH i2c: E2 [17:45:46]MH_I2C_Read... [17:45:46]Read from MH i2c: E2 0E 00 [17:45:46]MH_I2C_Read... [17:45:46]Read from MH i2c: E2 0E 00 61 78 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 B5 [17:45:46]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [17:45:46]wFMCommunicate OK [17:45:46]SAM_PROTO_GetShiftState done [17:45:46]FM_GetShiftState done [17:45:46]opened in 1729469754 [17:45:46]opened+sec_in_day 1729556154 [17:45:46]quantity*price = 50041 [17:45:46]sum+1 = 50042 [17:45:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 308 21.10.2024 17:45 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 187844 ФПД: 137943979361022 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T174552&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187844&fm=137943979361022&tin=02508201610067®Number=0000000000100030&sum=50000 [17:45:48]StoreToDocumentArchive [17:45:48]shift 460 fd 187844 [17:45:48]save to /storage/0460/doc_00187844 [17:45:48]save last doc name /storage/0460/doc_00187844 to /storage/kkm_last_doc_name [17:45:48]save OK [17:45:48]Clear old archive folders... [17:45:48]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:45:48]tlvbuf is 01293600 [17:45:48]SAM_PROTO_ClearQueue [17:45:48]wFMCommunicate request_size=4 [17:45:48]MH_SAM_APDU [17:45:48]CAPDU: 80 09 00 00 [17:45:48]Write to MH i2c: E2 08 00 6E 78 80 09 00 00 00 00 00 00 58 [17:45:48]Write i2c OK [17:45:48]MH_I2C_Read... [17:45:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:45:48]Read from MH i2c: E2 [17:45:48]MH_I2C_Read... [17:45:48]Read from MH i2c: E2 03 00 [17:45:48]MH_I2C_Read... [17:45:48]Read from MH i2c: E2 03 00 6E 78 00 90 00 5A [17:45:48]RAPDU: 90 00 [17:45:48]wFMCommunicate OK [17:45:48]SAM_PROTO_ClearQueue done [17:45:48]KKMCreateOFDPacket [17:45:48]OFDProtocolAddRootSTLVToBuf [17:45:48]FM_MakeSignedData [17:45:48]FM_MakeSignedData [17:45:48]SAM_PROTO_SignData [17:45:48]wFMCommunicate request_size=4 [17:45:48]MH_SAM_APDU [17:45:48]CAPDU: 80 0D 01 02 [17:45:48]Write to MH i2c: E2 08 00 6F 78 80 0D 01 02 00 00 00 00 60 [17:45:48]Write i2c OK [17:45:48]MH_I2C_Read... [17:45:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:45:48]Read from MH i2c: E2 [17:45:48]MH_I2C_Read... [17:45:48]Read from MH i2c: E2 03 00 [17:45:48]MH_I2C_Read... [17:45:48]Read from MH i2c: E2 03 00 6F 78 00 90 00 5B [17:45:48]RAPDU: 90 00 [17:45:48]wFMCommunicate OK [17:45:48]wFMCommunicate request_size=255 [17:45:48]MH_SAM_APDU [17:45: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 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 01 00 00 F4 03 04 00 50 93 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 C4 DD 02 00 35 04 06 00 7D [17:45:48]Write to MH i2c: E2 02 01 70 78 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 01 00 00 F4 03 04 00 50 93 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 C4 DD 02 00 35 04 06 00 7D 00 00 55 [17:45:48]Write i2c OK [17:45:48]MH_I2C_Read... [17:45:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:45:48]Read from MH i2c: E2 [17:45:48]MH_I2C_Read... [17:45:48]Read from MH i2c: E2 03 00 [17:45:48]MH_I2C_Read... [17:45:48]Read from MH i2c: E2 03 00 70 78 00 90 00 5C [17:45:48]RAPDU: 90 00 [17:45:48]wFMCommunicate OK [17:45:48]wFMCommunicate request_size=10 [17:45:48]MH_SAM_APDU [17:45:48]CAPDU: 80 0D 02 02 05 75 95 E3 82 FE [17:45:48]Write to MH i2c: E2 0D 00 71 78 80 0D 02 02 05 00 75 95 E3 82 FE 00 00 DA [17:45:48]Write i2c OK [17:45:48]MH_I2C_Read... [17:45:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:45:48]Read from MH i2c: E2 [17:45:48]MH_I2C_Read... [17:45:48]Read from MH i2c: E2 03 00 [17:45:48]MH_I2C_Read... [17:45:48]Read from MH i2c: E2 03 00 71 78 00 90 00 5D [17:45:48]RAPDU: 90 00 [17:45:48]wFMCommunicate OK [17:45:48]wFMCommunicate request_size=4 [17:45:48]MH_SAM_APDU [17:45:48]CAPDU: 80 0D 03 02 [17:45:48]Write to MH i2c: E2 08 00 72 78 80 0D 03 02 00 00 00 00 65 [17:45:48]Write i2c OK [17:45:48]MH_I2C_Read... [17:45:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:45:48]Read from MH i2c: E2 [17:45:48]MH_I2C_Read... [17:45:48]Read from MH i2c: E2 0B 00 [17:45:48]MH_I2C_Read... [17:45:48]Read from MH i2c: E2 0B 00 72 78 00 FC AF 69 49 44 BD 9B AD 90 00 0C [17:45:48]RAPDU: FC AF 69 49 44 BD 9B AD 90 00 [17:45:48]wFMCommunicate OK [17:45:48]SAM_PROTO_SignData done [17:45:48]FM_MakeSignedData done [17:45:48]CreateOFDProtocolMessage [17:45:48]wFMCommunicate request_size=4 [17:45:48]MH_SAM_APDU [17:45:48]CAPDU: 80 11 00 00 [17:45:48]Write to MH i2c: E2 08 00 73 78 80 11 00 00 00 00 00 00 65 [17:45:48]Write i2c OK [17:45:48]MH_I2C_Read... [17:45:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:45:48]OFD Sender: No OFD packet to send [17:45:48]Read from MH i2c: E2 [17:45:48]MH_I2C_Read... [17:45:48]Read from MH i2c: E2 17 00 [17:45:48]MH_I2C_Read... [17:45:48]Read from MH i2c: E2 17 00 73 78 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 B3 [17:45:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [17:45:48]wFMCommunicate OK [17:45:48]CreateOFDProtocolMessage done [17:45:48]OFDSenderStorePacket 187844 [17:45:48]StoreOFDPacket docnum=187844 [17:45:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 51 63 07 01 5C 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 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 01 00 00 F4 03 04 00 50 93 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 C4 DD 02 00 35 04 06 00 7D 75 95 E3 82 FE FC AF 69 49 44 BD 9B AD [17:45:48]CheckFolder [17:45:48]dirname=/storage/ofd_packets [17:45:48]CheckFolder done [17:45:48]ProducePacketName [17:45:48]name=ofd_packets/00187844 [17:45:48]NVStorageSaveData ofd_packets/00187844 [17:45:48]File name is /storage/ofd_packets/00187844 [17:45:48]Write 301 bytes [17:45:48]NVStorageSaveData done [17:45:48]OFDSenderStorePacket done [17:45:48]KKMCreateOFDPacket done [17:45:48]NVStorageSaveData kkm_last_timestamp [17:45:48]File name is /storage/kkm_last_timestamp [17:45:48]Write 4 bytes [17:45:48]NVStorageSaveData done [17:45:48]ExternCall_PrintAddStr [17:45:48]wPrintStart [17:45:48]Write to MH i2c: 01 00 00 74 78 EC [17:45:48]Write i2c OK [17:45:48]MH_I2C_Read... [17:45:48]Read from MH i2c: 01 [17:45:48]MH_I2C_Read... [17:45:48]Read from MH i2c: 01 07 00 [17:45:48]MH_I2C_Read... [17:45:48]Read from MH i2c: 01 07 00 74 78 00 00 00 00 00 FF 0F 01 [17:45:48]RasterBufferAndPrint [17:45:48]line Счет N : (1)209896 [17:45:48]line ИНН: 02508201610067 [17:45:48]line Контрольно-Кассовый Чек [17:45:48]line ПРОДАЖА [17:45:48]line ТРК (МРК, ГНК) : 22 [17:45:48]line Товар: 2710124130 [17:45:48]line Аи-92-К-3 [17:45:48]line 7.480 * 66.90 [17:45:48]line = 500.41 [17:45:48]line НДС 12% НСП 1% [17:45:48]line > о реализуемом товаре [17:45:48]line ОКРУГЛЕНИЕ: -0.41 [17:45:48]line ИТОГО: 500.00 [17:45:48]line Внесено: 500.00 [17:45:48]line СДАЧА: 0.00 [17:45:48]line НСП 1% : 4.43 [17:45:48]line НДС 12% : 53.14 [17:45:48]line Наличными: 500.00 [17:45:48]line Безнал.: 0.00 [17:45:48]line Место: АЗС № 86 "Партнер Нефть" [17:45:48]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [17:45:48]line СНО: Общий режим [17:45:48]line Чек 308 21.10.2024 17:45 [17:45:48]line Смена: 460 ФФД: 1.0 [17:45:48]line ЗНМ: 0300000155 [17:45:48]line РНМ: 0000000000100030 [17:45:48]line Версия ККМ: 001 [17:45:48]line ФМ: 0000000000965340 [17:45:48]line ФД: 187844 [17:45:48]line ФПД: 137943979361022 [17:45:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T174552&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187844&fm=137943979361022&tin=02508201610067®Number=0000000000100030&sum=50000 [17:45:48]written 0, free lines is 4095 [17:45:48]OFD Sender: Processing packet 187844 [packets to send 1062, broken 1061] [17:45:48]ProducePacketName [17:45:48]name=ofd_packets/00187844 [17:45:48]OFD Sender: To server: pG, [17:45:48]CommunicateWithHost lk.salyk.kg:30040 [17:45:48]ConnectInit lk.salyk.kg [17:45:48]Connected sock=8 [17:45:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 51 63 07 01 5C 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 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 01 00 00 F4 03 04 00 50 93 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 C4 DD 02 00 35 04 06 00 7D 75 95 E3 82 FE FC AF 69 49 44 BD 9B AD [17:45:49]Write to MH i2c: 01 00 00 9F 78 17 [17:45:49]Write i2c OK [17:45:49]MH_I2C_Read... [17:45:49]Read from MH i2c: 01 [17:45:49]MH_I2C_Read... [17:45:49]Read from MH i2c: 01 07 00 [17:45:49]MH_I2C_Read... [17:45:49]Read from MH i2c: 01 07 00 9F 78 00 00 00 00 00 61 0C 8B [17:45:49]RasterBufferAndPrint [17:45:49]line [17:45:49]line [17:45:49]line [17:45:49]line [17:45:49]line [17:45:49]written 0, free lines is 3173 [17:45:49]MH_Cut [17:45:49]Write to MH i2c: D1 01 00 A6 78 01 F0 [17:45:49]Write i2c OK [17:45:49]MH_I2C_Read... [17:45:49]Read from MH i2c: D1 [17:45:49]MH_I2C_Read... [17:45:49]Read from MH i2c: D1 01 00 [17:45:49]MH_I2C_Read... [17:45:49]Read from MH i2c: D1 01 00 A6 78 00 EF [17:45:49]Write to MH i2c: 01 00 00 A7 78 1F [17:45:49]Write i2c OK [17:45:49]MH_I2C_Read... [17:45:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 02 E2 47 00 B5 FA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 C4 DD 02 00 F4 03 04 00 3F 3D 16 67 B6 04 01 00 00 21 B7 55 9E AB 9F C0 C1 [17:45:49]CommunicateWithHost err = 0 [17:45:49]CheckOFDResponse [17:45:49]1017 (14) - 77093643461234 [17:45:49]1041 (16) - 0000000000965340 [17:45:49]1040 (4) - 187844 [17:45:49]1012 (4) - 21.10.2024 11:38 [17:45:49]1206 (1) - 0 [17:45:49]OFD Sender: Remove packet 187844 [17:45:49]ProducePacketName [17:45:49]name=ofd_packets/00187844 [17:45:49]NVStorageDeleteData [17:45:49]OFD Sender: No OFD packet to send [17:45:50]*** Cut start [17:45:50]*** Partial cut [17:45:50]*** CUTSNS_PIN = 1 [17:45:50]*** CUTSNS_PIN = 0 [17:45:50]*** Brake cut motor [17:45:50]Read from MH i2c: 01 [17:45:50]MH_I2C_Read... [17:45:50]*** Stop cut motor [17:45:50]*** Cut end [17:45:50]Read from MH i2c: 01 07 00 [17:45:50]MH_I2C_Read... [17:45:50]Read from MH i2c: 01 07 00 A7 78 00 00 00 00 00 FF 0F 34 [17:45:50]process_action close_receipt done [17:45:50]requested_data is exist [17:45:50]produce_requested_data [17:45:50]requested_item fm.sn is exist - process it [17:45:50]wFMCommunicate request_size=4 [17:45:50]MH_SAM_APDU [17:45:50]CAPDU: 80 11 00 00 [17:45:50]Write to MH i2c: E2 08 00 A8 78 80 11 00 00 00 00 00 00 9A [17:45:50]Write i2c OK [17:45:50]MH_I2C_Read... [17:45:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:45:50]Read from MH i2c: E2 [17:45:50]MH_I2C_Read... [17:45:50]Read from MH i2c: E2 17 00 [17:45:50]MH_I2C_Read... [17:45:50]Read from MH i2c: E2 17 00 A8 78 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 E8 [17:45:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [17:45:50]wFMCommunicate OK [17:45:50]requested_item fd.num is exist - process it [17:45:50]SAM_PROTO_GetFieldsCounters [17:45:50]wFMCommunicate request_size=4 [17:45:50]MH_SAM_APDU [17:45:50]CAPDU: 80 13 00 00 [17:45:50]Write to MH i2c: E2 08 00 A9 78 80 13 00 00 00 00 00 00 9D [17:45:50]Write i2c OK [17:45:50]MH_I2C_Read... [17:45:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:45:51]Read from MH i2c: E2 [17:45:51]MH_I2C_Read... [17:45:51]Read from MH i2c: E2 62 00 [17:45:51]MH_I2C_Read... [17:45:51]Read from MH i2c: E2 62 00 A9 78 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 C4 DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 34 01 00 00 5E 04 04 00 34 01 00 00 57 04 04 00 35 01 00 00 19 04 04 00 00 00 00 00 90 00 B3 [17:45:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 C4 DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 34 01 00 00 5E 04 04 00 34 01 00 00 57 04 04 00 35 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:45:51]wFMCommunicate OK [17:45:51]SAM_PROTO_GetFieldsCounters done [17:45:51]requested_item shift.num is exist - process it [17:45:51]requested_item shift.opened is exist - process it [17:45:51]req_shift_opened [17:45:51]FM_GetShiftState [17:45:51]SAM_PROTO_GetShiftState [17:45:51]wFMCommunicate request_size=4 [17:45:51]MH_SAM_APDU [17:45:51]CAPDU: 80 13 01 00 [17:45:51]Write to MH i2c: E2 08 00 AA 78 80 13 01 00 00 00 00 00 9F [17:45:51]Write i2c OK [17:45:51]MH_I2C_Read... [17:45:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:45:51]Read from MH i2c: E2 [17:45:51]MH_I2C_Read... [17:45:51]Read from MH i2c: E2 0E 00 [17:45:51]MH_I2C_Read... [17:45:51]Read from MH i2c: E2 0E 00 AA 78 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 FE [17:45:51]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [17:45:51]wFMCommunicate OK [17:45:51]SAM_PROTO_GetShiftState done [17:45:51]FM_GetShiftState done [17:45:51]req_shift_opened done [17:45:51]requested_item shift.open_date is exist - process it [17:45:51]req_shift_open_date [17:45:51]req_shift_open_date done [17:45:51]produce_requested_data done [17:45:51]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187844,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [17:45:51]process_action_free close_receipt [17:45:51]json_value_free [17:45:51]json_value_free done [17:45:51]process_json_proto returns [17:45:51]Send response to host [17:45:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187844,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [17:45:51]free response buf [17:45:51]execute_script done [17:45:51]execute_script returns [17:45:51]free content buf [17:45:51]Sock 10.Close socket [17:45:51]Sock 10.Thread stoped [17:45:54]OFD Sender: No OFD packet to send [17:45:59]OFD Sender: No OFD packet to send [17:46:04]OFD Sender: No OFD packet to send [17:46:09]OFD Sender: No OFD packet to send [17:46:14]OFD Sender: No OFD packet to send [17:46:19]OFD Sender: No OFD packet to send [17:46:25]OFD Sender: No OFD packet to send [17:46:30]OFD Sender: No OFD packet to send [17:46:35]OFD Sender: No OFD packet to send [17:46:40]OFD Sender: No OFD packet to send [17:46:45]OFD Sender: No OFD packet to send [17:46:50]OFD Sender: No OFD packet to send [17:46:55]OFD Sender: No OFD packet to send [17:47:00]OFD Sender: No OFD packet to send [17:47:05]OFD Sender: No OFD packet to send [17:47:10]OFD Sender: No OFD packet to send [17:47:15]OFD Sender: No OFD packet to send [17:47:20]OFD Sender: No OFD packet to send [17:47:25]OFD Sender: No OFD packet to send [17:47:30]accept exits with 9 [17:47:30]New connection [17:47:30]New thread 3067014500 created [17:47:30]Thread 3067157860 joined [17:47:30]Waiting for new connection... [17:47:30] Sock 9.Parse request [17:47:30]Sock 9.Check first char [17:47:30]Sock 9.First char is OK [17:47:30]request: POST /json_proto HTTP/1.0 [17:47:30]Method: POST [17:47:30]URL: /json_proto [17:47:30]Method is POST - this is cgi request [17:47:30]url: /json_proto [17:47:30]query_string will be loaded in cgi processing [17:47:30]execute_cgi json_proto POST (null) [17:47:30]execute_cgi path=json_proto method=POST [17:47:30]POST find Content-Length [17:47:30]Host: 172.17.42.131:8080 [17:47:30]Content-Length: 677 [17:47:30]Content-Type: application/json [17:47:30] [17:47:30]POST finish read [17:47:30]Found Content-Length = 677 [17:47:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209898", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "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:47:30]execute_script... [17:47:30]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209898", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "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:47:30]POST & json_proto [17:47:30]process_json_proto [17:47:30]json parsed OK: [17:47:30]protocol is kg_v1.0 [17:47:30]action value=close_receipt [17:47:30]process_action close_receipt [17:47:30]cmd_close_receipt [17:47:30]MH_GetDate [17:47:30]Write to MH i2c: F0 00 00 AB 78 12 [17:47:30]Write i2c OK [17:47:30]MH_I2C_Read... [17:47:30]Read from MH i2c: F0 [17:47:30]MH_I2C_Read... [17:47:30]Read from MH i2c: F0 09 00 [17:47:30]MH_I2C_Read... [17:47:30]Read from MH i2c: F0 09 00 AB 78 00 B7 93 16 67 A0 18 CA 66 CA [17:47:30]GetLastDocTimeStamp 1729532752 [17:47:30]current date 1729532855 [17:47:30]FM_GetShiftState [17:47:30]SAM_PROTO_GetShiftState [17:47:30]wFMCommunicate request_size=4 [17:47:30]MH_SAM_APDU [17:47:30]CAPDU: 80 13 01 00 [17:47:30]Write to MH i2c: E2 08 00 AC 78 80 13 01 00 00 00 00 00 A1 [17:47:30]Write i2c OK [17:47:30]MH_I2C_Read... [17:47:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:47:30]Read from MH i2c: E2 [17:47:30]MH_I2C_Read... [17:47:30]Read from MH i2c: E2 0E 00 [17:47:30]MH_I2C_Read... [17:47:30]Read from MH i2c: E2 0E 00 AC 78 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 00 [17:47:30]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [17:47:30]wFMCommunicate OK [17:47:30]SAM_PROTO_GetShiftState done [17:47:30]FM_GetShiftState done [17:47:30]opened in 1729469754 [17:47:30]opened+sec_in_day 1729556154 [17:47:30]quantity*price = 60009 [17:47:30]sum+1 = 60010 [17:47:30]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 309 21.10.2024 17:47 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 187845 ФПД: 276327054747496 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T174735&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187845&fm=276327054747496&tin=02508201610067®Number=0000000000100030&sum=60000 [17:47:31]StoreToDocumentArchive [17:47:31]shift 460 fd 187845 [17:47:31]save to /storage/0460/doc_00187845 [17:47:31]save last doc name /storage/0460/doc_00187845 to /storage/kkm_last_doc_name [17:47:31]save OK [17:47:31]Clear old archive folders... [17:47:31]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:47:31]tlvbuf is 0126E660 [17:47:31]SAM_PROTO_ClearQueue [17:47:31]wFMCommunicate request_size=4 [17:47:31]MH_SAM_APDU [17:47:31]CAPDU: 80 09 00 00 [17:47:31]Write to MH i2c: E2 08 00 B9 78 80 09 00 00 00 00 00 00 A3 [17:47:31]Write i2c OK [17:47:31]MH_I2C_Read... [17:47:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:47:31]Read from MH i2c: E2 [17:47:31]MH_I2C_Read... [17:47:31]Read from MH i2c: E2 03 00 [17:47:31]MH_I2C_Read... [17:47:31]Read from MH i2c: E2 03 00 B9 78 00 90 00 A5 [17:47:31]RAPDU: 90 00 [17:47:31]wFMCommunicate OK [17:47:31]SAM_PROTO_ClearQueue done [17:47:31]KKMCreateOFDPacket [17:47:31]OFDProtocolAddRootSTLVToBuf [17:47:31]FM_MakeSignedData [17:47:31]FM_MakeSignedData [17:47:31]SAM_PROTO_SignData [17:47:31]wFMCommunicate request_size=4 [17:47:31]MH_SAM_APDU [17:47:31]CAPDU: 80 0D 01 02 [17:47:31]Write to MH i2c: E2 08 00 BA 78 80 0D 01 02 00 00 00 00 AB [17:47:31]Write i2c OK [17:47:31]MH_I2C_Read... [17:47:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:47:31]Read from MH i2c: E2 [17:47:31]MH_I2C_Read... [17:47:31]Read from MH i2c: E2 03 00 [17:47:31]MH_I2C_Read... [17:47:31]Read from MH i2c: E2 03 00 BA 78 00 90 00 A6 [17:47:31]RAPDU: 90 00 [17:47:31]wFMCommunicate OK [17:47:31]wFMCommunicate request_size=255 [17:47:31]MH_SAM_APDU [17:47: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 33 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 35 01 00 00 F4 03 04 00 B7 93 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 C5 DD 02 00 35 04 06 00 FB [17:47:31]Write to MH i2c: E2 02 01 BB 78 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 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 35 01 00 00 F4 03 04 00 B7 93 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 C5 DD 02 00 35 04 06 00 FB 00 00 64 [17:47:31]Write i2c OK [17:47:31]MH_I2C_Read... [17:47:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:47:31]Read from MH i2c: E2 [17:47:31]MH_I2C_Read... [17:47:31]Read from MH i2c: E2 03 00 [17:47:31]MH_I2C_Read... [17:47:31]Read from MH i2c: E2 03 00 BB 78 00 90 00 A7 [17:47:31]RAPDU: 90 00 [17:47:31]wFMCommunicate OK [17:47:31]wFMCommunicate request_size=10 [17:47:31]MH_SAM_APDU [17:47:31]CAPDU: 80 0D 02 02 05 51 67 F0 A7 68 [17:47:31]Write to MH i2c: E2 0D 00 BC 78 80 0D 02 02 05 00 51 67 F0 A7 68 00 00 6F [17:47:31]Write i2c OK [17:47:31]MH_I2C_Read... [17:47:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:47:31]Read from MH i2c: E2 [17:47:31]MH_I2C_Read... [17:47:31]Read from MH i2c: E2 03 00 [17:47:31]MH_I2C_Read... [17:47:31]Read from MH i2c: E2 03 00 BC 78 00 90 00 A8 [17:47:31]RAPDU: 90 00 [17:47:31]wFMCommunicate OK [17:47:31]wFMCommunicate request_size=4 [17:47:31]MH_SAM_APDU [17:47:31]CAPDU: 80 0D 03 02 [17:47:31]Write to MH i2c: E2 08 00 BD 78 80 0D 03 02 00 00 00 00 B0 [17:47:31]Write i2c OK [17:47:31]MH_I2C_Read... [17:47:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:47:31]Read from MH i2c: E2 [17:47:31]MH_I2C_Read... [17:47:31]Read from MH i2c: E2 0B 00 [17:47:31]MH_I2C_Read... [17:47:31]Read from MH i2c: E2 0B 00 BD 78 00 16 2F 4C 73 52 01 27 75 90 00 A4 [17:47:31]RAPDU: 16 2F 4C 73 52 01 27 75 90 00 [17:47:31]wFMCommunicate OK [17:47:31]SAM_PROTO_SignData done [17:47:31]FM_MakeSignedData done [17:47:31]CreateOFDProtocolMessage [17:47:31]wFMCommunicate request_size=4 [17:47:31]MH_SAM_APDU [17:47:31]CAPDU: 80 11 00 00 [17:47:31]Write to MH i2c: E2 08 00 BE 78 80 11 00 00 00 00 00 00 B0 [17:47:31]Write i2c OK [17:47:31]MH_I2C_Read... [17:47:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:47:31]Read from MH i2c: E2 [17:47:31]MH_I2C_Read... [17:47:31]Read from MH i2c: E2 17 00 [17:47:31]MH_I2C_Read... [17:47:31]Read from MH i2c: E2 17 00 BE 78 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 FE [17:47:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [17:47:31]wFMCommunicate OK [17:47:31]CreateOFDProtocolMessage done [17:47:31]OFDSenderStorePacket 187845 [17:47:31]StoreOFDPacket docnum=187845 [17:47:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 A5 FE 07 01 AD ED 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 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 35 01 00 00 F4 03 04 00 B7 93 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 C5 DD 02 00 35 04 06 00 FB 51 67 F0 A7 68 16 2F 4C 73 52 01 27 75 [17:47:31]CheckFolder [17:47:31]dirname=/storage/ofd_packets [17:47:31]CheckFolder done [17:47:31]ProducePacketName [17:47:31]name=ofd_packets/00187845 [17:47:31]NVStorageSaveData ofd_packets/00187845 [17:47:31]File name is /storage/ofd_packets/00187845 [17:47:31]Write 301 bytes [17:47:31]NVStorageSaveData done [17:47:31]OFDSenderStorePacket done [17:47:31]KKMCreateOFDPacket done [17:47:31]NVStorageSaveData kkm_last_timestamp [17:47:31]File name is /storage/kkm_last_timestamp [17:47:31]Write 4 bytes [17:47:31]NVStorageSaveData done [17:47:31]ExternCall_PrintAddStr [17:47:31]wPrintStart [17:47:31]Write to MH i2c: 01 00 00 BF 78 37 [17:47:31]Write i2c OK [17:47:31]MH_I2C_Read... [17:47:31]Read from MH i2c: 01 [17:47:31]MH_I2C_Read... [17:47:31]Read from MH i2c: 01 07 00 [17:47:31]MH_I2C_Read... [17:47:31]Read from MH i2c: 01 07 00 BF 78 00 00 00 00 00 FF 0F 4C [17:47:31]RasterBufferAndPrint [17:47:31]line Счет N : (1)209898 [17:47:31]line ИНН: 02508201610067 [17:47:31]line Контрольно-Кассовый Чек [17:47:31]line ПРОДАЖА [17:47:31]line ТРК (МРК, ГНК) : 42 [17:47:31]line Товар: 2710124130 [17:47:31]line Аи-92-К-3 [17:47:31]line 8.970 * 66.90 [17:47:31]line = 600.09 [17:47:31]line НДС 12% НСП 1% [17:47:31]line > о реализуемом товаре [17:47:31]line ОКРУГЛЕНИЕ: -0.09 [17:47:31]line ИТОГО: 600.00 [17:47:31]line Внесено: 600.00 [17:47:31]line СДАЧА: 0.00 [17:47:31]line НСП 1% : 5.31 [17:47:31]line НДС 12% : 63.73 [17:47:31]line Наличными: 600.00 [17:47:31]line Безнал.: 0.00 [17:47:31]line Место: АЗС № 86 "Партнер Нефть" [17:47:31]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [17:47:31]line СНО: Общий режим [17:47:31]line Чек 309 21.10.2024 17:47 [17:47:31]line Смена: 460 ФФД: 1.0 [17:47:31]line ЗНМ: 0300000155 [17:47:31]line РНМ: 0000000000100030 [17:47:31]line Версия ККМ: 001 [17:47:31]line ФМ: 0000000000965340 [17:47:31]line ФД: 187845 [17:47:31]line ФПД: 276327054747496 [17:47:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T174735&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187845&fm=276327054747496&tin=02508201610067®Number=0000000000100030&sum=60000 [17:47:31]written 0, free lines is 4095 [17:47:32]OFD Sender: Processing packet 187845 [packets to send 1062, broken 1061] [17:47:32]ProducePacketName [17:47:32]name=ofd_packets/00187845 [17:47:32]OFD Sender: To server: pG, [17:47:32]CommunicateWithHost lk.salyk.kg:30040 [17:47:32]ConnectInit lk.salyk.kg [17:47:32]Write to MH i2c: 01 00 00 EA 78 62 [17:47:32]Write i2c OK [17:47:32]MH_I2C_Read... [17:47:32]Read from MH i2c: 01 [17:47:32]MH_I2C_Read... [17:47:32]Read from MH i2c: 01 07 00 [17:47:32]MH_I2C_Read... [17:47:32]Read from MH i2c: 01 07 00 EA 78 00 00 00 00 00 61 0C D6 [17:47:32]RasterBufferAndPrint [17:47:32]line [17:47:32]line [17:47:32]line [17:47:32]line [17:47:32]line [17:47:32]written 0, free lines is 3173 [17:47:32]MH_Cut [17:47:32]Write to MH i2c: D1 01 00 F1 78 01 3B [17:47:32]Write i2c OK [17:47:32]MH_I2C_Read... [17:47:32]Read from MH i2c: D1 [17:47:32]MH_I2C_Read... [17:47:32]Read from MH i2c: D1 01 00 [17:47:32]MH_I2C_Read... [17:47:32]Read from MH i2c: D1 01 00 F1 78 00 3A [17:47:32]Write to MH i2c: 01 00 00 F2 78 6A [17:47:32]Write i2c OK [17:47:32]MH_I2C_Read... [17:47:32]Connected sock=10 [17:47:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 A5 FE 07 01 AD ED 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 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 35 01 00 00 F4 03 04 00 B7 93 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 C5 DD 02 00 35 04 06 00 FB 51 67 F0 A7 68 16 2F 4C 73 52 01 27 75 [17:47:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 A8 B8 47 00 ED 1A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 C5 DD 02 00 F4 03 04 00 A6 3D 16 67 B6 04 01 00 00 5F AE 2B 67 C5 56 A9 B2 [17:47:32]CommunicateWithHost err = 0 [17:47:32]CheckOFDResponse [17:47:32]1017 (14) - 77093643461234 [17:47:32]1041 (16) - 0000000000965340 [17:47:32]1040 (4) - 187845 [17:47:32]1012 (4) - 21.10.2024 11:40 [17:47:32]1206 (1) - 0 [17:47:32]OFD Sender: Remove packet 187845 [17:47:32]ProducePacketName [17:47:32]name=ofd_packets/00187845 [17:47:32]NVStorageDeleteData [17:47:33]OFD Sender: No OFD packet to send [17:47:33]*** Cut start [17:47:33]*** Partial cut [17:47:33]*** CUTSNS_PIN = 1 [17:47:33]*** CUTSNS_PIN = 0 [17:47:33]*** Brake cut motor [17:47:34]Read from MH i2c: 01 [17:47:34]MH_I2C_Read... [17:47:34]*** Stop cut motor [17:47:34]*** Cut end [17:47:34]Read from MH i2c: 01 07 00 [17:47:34]MH_I2C_Read... [17:47:34]Read from MH i2c: 01 07 00 F2 78 00 00 00 00 00 FF 0F 7F [17:47:34]process_action close_receipt done [17:47:34]requested_data is exist [17:47:34]produce_requested_data [17:47:34]requested_item fm.sn is exist - process it [17:47:34]wFMCommunicate request_size=4 [17:47:34]MH_SAM_APDU [17:47:34]CAPDU: 80 11 00 00 [17:47:34]Write to MH i2c: E2 08 00 F3 78 80 11 00 00 00 00 00 00 E5 [17:47:34]Write i2c OK [17:47:34]MH_I2C_Read... [17:47:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:47:34]Read from MH i2c: E2 [17:47:34]MH_I2C_Read... [17:47:34]Read from MH i2c: E2 17 00 [17:47:34]MH_I2C_Read... [17:47:34]Read from MH i2c: E2 17 00 F3 78 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 33 [17:47:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [17:47:34]wFMCommunicate OK [17:47:34]requested_item fd.num is exist - process it [17:47:34]SAM_PROTO_GetFieldsCounters [17:47:34]wFMCommunicate request_size=4 [17:47:34]MH_SAM_APDU [17:47:34]CAPDU: 80 13 00 00 [17:47:34]Write to MH i2c: E2 08 00 F4 78 80 13 00 00 00 00 00 00 E8 [17:47:34]Write i2c OK [17:47:34]MH_I2C_Read... [17:47:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:47:34]Read from MH i2c: E2 [17:47:34]MH_I2C_Read... [17:47:34]Read from MH i2c: E2 62 00 [17:47:34]MH_I2C_Read... [17:47:34]Read from MH i2c: E2 62 00 F4 78 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 C5 DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 35 01 00 00 5E 04 04 00 35 01 00 00 57 04 04 00 36 01 00 00 19 04 04 00 00 00 00 00 90 00 02 [17:47:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 C5 DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 35 01 00 00 5E 04 04 00 35 01 00 00 57 04 04 00 36 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:47:34]wFMCommunicate OK [17:47:34]SAM_PROTO_GetFieldsCounters done [17:47:34]requested_item shift.num is exist - process it [17:47:34]requested_item shift.opened is exist - process it [17:47:34]req_shift_opened [17:47:34]FM_GetShiftState [17:47:34]SAM_PROTO_GetShiftState [17:47:34]wFMCommunicate request_size=4 [17:47:34]MH_SAM_APDU [17:47:34]CAPDU: 80 13 01 00 [17:47:34]Write to MH i2c: E2 08 00 F5 78 80 13 01 00 00 00 00 00 EA [17:47:34]Write i2c OK [17:47:34]MH_I2C_Read... [17:47:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:47:34]Read from MH i2c: E2 [17:47:34]MH_I2C_Read... [17:47:34]Read from MH i2c: E2 0E 00 [17:47:34]MH_I2C_Read... [17:47:34]Read from MH i2c: E2 0E 00 F5 78 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 49 [17:47:34]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [17:47:34]wFMCommunicate OK [17:47:34]SAM_PROTO_GetShiftState done [17:47:34]FM_GetShiftState done [17:47:34]req_shift_opened done [17:47:34]requested_item shift.open_date is exist - process it [17:47:34]req_shift_open_date [17:47:34]req_shift_open_date done [17:47:34]produce_requested_data done [17:47:34]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187845,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [17:47:34]process_action_free close_receipt [17:47:34]json_value_free [17:47:34]json_value_free done [17:47:34]process_json_proto returns [17:47:34]Send response to host [17:47:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187845,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [17:47:34]free response buf [17:47:34]execute_script done [17:47:34]execute_script returns [17:47:34]free content buf [17:47:34]Sock 9.Close socket [17:47:34]Sock 9.Thread stoped [17:47:38]OFD Sender: No OFD packet to send [17:47:42]accept exits with 8 [17:47:42]New connection [17:47:42]New thread 3067157860 created [17:47:42]Thread 3067014500 joined [17:47:42]Waiting for new connection... [17:47:42] Sock 8.Parse request [17:47:42]Sock 8.Check first char [17:47:42]Sock 8.First char is OK [17:47:42]request: POST /json_proto HTTP/1.0 [17:47:42]Method: POST [17:47:42]URL: /json_proto [17:47:42]Method is POST - this is cgi request [17:47:42]url: /json_proto [17:47:42]query_string will be loaded in cgi processing [17:47:42]execute_cgi json_proto POST (null) [17:47:42]execute_cgi path=json_proto method=POST [17:47:42]POST find Content-Length [17:47:42]Host: 172.17.42.131:8080 [17:47:42]Content-Length: 682 [17:47:42]Content-Type: application/json [17:47:42] [17:47:42]POST finish read [17:47:42]Found Content-Length = 682 [17:47:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209897", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 18.990, "sum" : 1409.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 8500.00, "total" : 1409.00, "payments": [ { "type": 0, "sum" : 1409.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:47:42]execute_script... [17:47: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)209897", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 18.990, "sum" : 1409.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 8500.00, "total" : 1409.00, "payments": [ { "type": 0, "sum" : 1409.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:47:42]POST & json_proto [17:47:42]process_json_proto [17:47:42]json parsed OK: [17:47:42]protocol is kg_v1.0 [17:47:42]action value=close_receipt [17:47:42]process_action close_receipt [17:47:42]cmd_close_receipt [17:47:42]MH_GetDate [17:47:42]Write to MH i2c: F0 00 00 F6 78 5D [17:47:42]Write i2c OK [17:47:42]MH_I2C_Read... [17:47:42]Read from MH i2c: F0 [17:47:42]MH_I2C_Read... [17:47:42]Read from MH i2c: F0 09 00 [17:47:42]MH_I2C_Read... [17:47:42]Read from MH i2c: F0 09 00 F6 78 00 C3 93 16 67 A0 18 CA 66 21 [17:47:42]GetLastDocTimeStamp 1729532855 [17:47:42]current date 1729532867 [17:47:42]FM_GetShiftState [17:47:42]SAM_PROTO_GetShiftState [17:47:42]wFMCommunicate request_size=4 [17:47:42]MH_SAM_APDU [17:47:42]CAPDU: 80 13 01 00 [17:47:42]Write to MH i2c: E2 08 00 F7 78 80 13 01 00 00 00 00 00 EC [17:47:42]Write i2c OK [17:47:42]MH_I2C_Read... [17:47:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:47:42]Read from MH i2c: E2 [17:47:42]MH_I2C_Read... [17:47:42]Read from MH i2c: E2 0E 00 [17:47:42]MH_I2C_Read... [17:47:42]Read from MH i2c: E2 0E 00 F7 78 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 4B [17:47:42]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [17:47:42]wFMCommunicate OK [17:47:42]SAM_PROTO_GetShiftState done [17:47:42]FM_GetShiftState done [17:47:42]opened in 1729469754 [17:47:42]opened+sec_in_day 1729556154 [17:47:42]quantity*price = 140905 [17:47:42]sum+1 = 140907 [17:47:42]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 1409.00 Внесено: 8500.00 СДАЧА: 7091.00 НСП 1% : 12.47 НДС 12% : 149.63 Наличными: 1409.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 310 21.10.2024 17:47 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 187846 ФПД: 226352622774388 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T174747&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187846&fm=226352622774388&tin=02508201610067®Number=0000000000100030&sum=140900 [17:47:43]StoreToDocumentArchive [17:47:43]shift 460 fd 187846 [17:47:43]save to /storage/0460/doc_00187846 [17:47:43]save last doc name /storage/0460/doc_00187846 to /storage/kkm_last_doc_name [17:47:43]save OK [17:47:43]Clear old archive folders... [17:47:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:47:43]tlvbuf is 010F7380 [17:47:43]SAM_PROTO_ClearQueue [17:47:43]wFMCommunicate request_size=4 [17:47:43]MH_SAM_APDU [17:47:43]CAPDU: 80 09 00 00 [17:47:43]Write to MH i2c: E2 08 00 04 79 80 09 00 00 00 00 00 00 EF [17:47:43]Write i2c OK [17:47:43]MH_I2C_Read... [17:47:43]Read from MH i2c: E2 [17:47:43]MH_I2C_Read... [17:47:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:47:43]Read from MH i2c: E2 03 00 [17:47:43]MH_I2C_Read... [17:47:43]Read from MH i2c: E2 03 00 04 79 00 90 00 F1 [17:47:43]RAPDU: 90 00 [17:47:43]wFMCommunicate OK [17:47:43]SAM_PROTO_ClearQueue done [17:47:43]KKMCreateOFDPacket [17:47:43]OFDProtocolAddRootSTLVToBuf [17:47:43]FM_MakeSignedData [17:47:43]FM_MakeSignedData [17:47:43]SAM_PROTO_SignData [17:47:43]wFMCommunicate request_size=4 [17:47:43]MH_SAM_APDU [17:47:43]CAPDU: 80 0D 01 02 [17:47:43]Write to MH i2c: E2 08 00 05 79 80 0D 01 02 00 00 00 00 F7 [17:47:43]Write i2c OK [17:47:43]MH_I2C_Read... [17:47:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:47:43]Read from MH i2c: E2 [17:47:43]MH_I2C_Read... [17:47:43]Read from MH i2c: E2 03 00 [17:47:43]MH_I2C_Read... [17:47:43]Read from MH i2c: E2 03 00 05 79 00 90 00 F2 [17:47:43]RAPDU: 90 00 [17:47:43]wFMCommunicate OK [17:47:43]wFMCommunicate request_size=255 [17:47:43]MH_SAM_APDU [17:47:43]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 2E 4A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6A 26 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 26 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DF 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 3A 00 00 00 00 07 04 06 00 64 26 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 01 00 00 F4 03 04 00 C3 93 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 C6 DD 02 00 35 04 06 00 CD [17:47:43]Write to MH i2c: E2 02 01 06 79 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 2E 4A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6A 26 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 26 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DF 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 3A 00 00 00 00 07 04 06 00 64 26 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 01 00 00 F4 03 04 00 C3 93 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 C6 DD 02 00 35 04 06 00 CD 00 00 FC [17:47:43]Write i2c OK [17:47:43]MH_I2C_Read... [17:47:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:47:43]Read from MH i2c: E2 [17:47:43]MH_I2C_Read... [17:47:43]Read from MH i2c: E2 03 00 [17:47:43]MH_I2C_Read... [17:47:43]Read from MH i2c: E2 03 00 06 79 00 90 00 F3 [17:47:43]RAPDU: 90 00 [17:47:43]wFMCommunicate OK [17:47:43]wFMCommunicate request_size=10 [17:47:43]MH_SAM_APDU [17:47:43]CAPDU: 80 0D 02 02 05 DD D3 AC A8 74 [17:47:43]Write to MH i2c: E2 0D 00 07 79 80 0D 02 02 05 00 DD D3 AC A8 74 00 00 7C [17:47:43]Write i2c OK [17:47:43]MH_I2C_Read... [17:47:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:47:43]Read from MH i2c: E2 [17:47:43]MH_I2C_Read... [17:47:43]Read from MH i2c: E2 03 00 [17:47:43]MH_I2C_Read... [17:47:43]Read from MH i2c: E2 03 00 07 79 00 90 00 F4 [17:47:43]RAPDU: 90 00 [17:47:43]wFMCommunicate OK [17:47:43]wFMCommunicate request_size=4 [17:47:43]MH_SAM_APDU [17:47:43]CAPDU: 80 0D 03 02 [17:47:43]Write to MH i2c: E2 08 00 08 79 80 0D 03 02 00 00 00 00 FC [17:47:43]Write i2c OK [17:47:43]MH_I2C_Read... [17:47:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:47:44]Read from MH i2c: E2 [17:47:44]MH_I2C_Read... [17:47:44]Read from MH i2c: E2 0B 00 [17:47:44]MH_I2C_Read... [17:47:44]Read from MH i2c: E2 0B 00 08 79 00 90 8F 52 61 B2 F4 6B 4F 90 00 2F [17:47:44]RAPDU: 90 8F 52 61 B2 F4 6B 4F 90 00 [17:47:44]wFMCommunicate OK [17:47:44]SAM_PROTO_SignData done [17:47:44]FM_MakeSignedData done [17:47:44]CreateOFDProtocolMessage [17:47:44]wFMCommunicate request_size=4 [17:47:44]MH_SAM_APDU [17:47:44]CAPDU: 80 11 00 00 [17:47:44]Write to MH i2c: E2 08 00 09 79 80 11 00 00 00 00 00 00 FC [17:47:44]Write i2c OK [17:47:44]MH_I2C_Read... [17:47:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:47:44]Read from MH i2c: E2 [17:47:44]MH_I2C_Read... [17:47:44]Read from MH i2c: E2 17 00 [17:47:44]MH_I2C_Read... [17:47:44]Read from MH i2c: E2 17 00 09 79 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 4A [17:47:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [17:47:44]wFMCommunicate OK [17:47:44]CreateOFDProtocolMessage done [17:47:44]OFDSenderStorePacket 187846 [17:47:44]StoreOFDPacket docnum=187846 [17:47:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 DE F7 07 01 FB D8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 2E 4A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6A 26 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 26 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DF 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 3A 00 00 00 00 07 04 06 00 64 26 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 01 00 00 F4 03 04 00 C3 93 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 C6 DD 02 00 35 04 06 00 CD DD D3 AC A8 74 90 8F 52 61 B2 F4 6B 4F [17:47:44]CheckFolder [17:47:44]dirname=/storage/ofd_packets [17:47:44]CheckFolder done [17:47:44]ProducePacketName [17:47:44]name=ofd_packets/00187846 [17:47:44]NVStorageSaveData ofd_packets/00187846 [17:47:44]File name is /storage/ofd_packets/00187846 [17:47:44]Write 301 bytes [17:47:44]NVStorageSaveData done [17:47:44]OFDSenderStorePacket done [17:47:44]KKMCreateOFDPacket done [17:47:44]NVStorageSaveData kkm_last_timestamp [17:47:44]File name is /storage/kkm_last_timestamp [17:47:44]Write 4 bytes [17:47:44]NVStorageSaveData done [17:47:44]ExternCall_PrintAddStr [17:47:44]wPrintStart [17:47:44]Write to MH i2c: 01 00 00 0A 79 83 [17:47:44]Write i2c OK [17:47:44]MH_I2C_Read... [17:47:44]Read from MH i2c: 01 [17:47:44]MH_I2C_Read... [17:47:44]Read from MH i2c: 01 07 00 [17:47:44]MH_I2C_Read... [17:47:44]Read from MH i2c: 01 07 00 0A 79 00 00 00 00 00 FF 0F 98 [17:47:44]RasterBufferAndPrint [17:47:44]line Счет N : (1)209897 [17:47:44]line ИНН: 02508201610067 [17:47:44]line Контрольно-Кассовый Чек [17:47:44]line ПРОДАЖА [17:47:44]line ТРК (МРК, ГНК) : 33 [17:47:44]line Товар: 2710124500 [17:47:44]line Аи-95-К-3 [17:47:44]line 18.990 * 74.20 [17:47:44]line = 1409.06 [17:47:44]line НДС 12% НСП 1% [17:47:44]line > о реализуемом товаре [17:47:44]line ОКРУГЛЕНИЕ: -0.06 [17:47:44]line ИТОГО: 1409.00 [17:47:44]line Внесено: 8500.00 [17:47:44]line СДАЧА: 7091.00 [17:47:44]line НСП 1% : 12.47 [17:47:44]line НДС 12% : 149.63 [17:47:44]line Наличными: 1409.00 [17:47:44]line Безнал.: 0.00 [17:47:44]line Место: АЗС № 86 "Партнер Нефть" [17:47:44]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [17:47:44]line СНО: Общий режим [17:47:44]line Чек 310 21.10.2024 17:47 [17:47:44]line Смена: 460 ФФД: 1.0 [17:47:44]line ЗНМ: 0300000155 [17:47:44]line РНМ: 0000000000100030 [17:47:44]line Версия ККМ: 001 [17:47:44]line ФМ: 0000000000965340 [17:47:44]line ФД: 187846 [17:47:44]line ФПД: 226352622774388 [17:47:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T174747&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187846&fm=226352622774388&tin=02508201610067®Number=0000000000100030&sum=140900 [17:47:44]written 0, free lines is 4095 [17:47:44]OFD Sender: Processing packet 187846 [packets to send 1062, broken 1061] [17:47:44]ProducePacketName [17:47:44]name=ofd_packets/00187846 [17:47:44]OFD Sender: To server: pG, [17:47:44]CommunicateWithHost lk.salyk.kg:30040 [17:47:44]ConnectInit lk.salyk.kg [17:47:44]Connected sock=11 [17:47:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 DE F7 07 01 FB D8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 2E 4A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6A 26 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 26 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DF 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 3A 00 00 00 00 07 04 06 00 64 26 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 01 00 00 F4 03 04 00 C3 93 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 C6 DD 02 00 35 04 06 00 CD DD D3 AC A8 74 90 8F 52 61 B2 F4 6B 4F [17:47:44]Write to MH i2c: 01 00 00 35 79 AE [17:47:44]Write i2c OK [17:47:44]MH_I2C_Read... [17:47:44]Read from MH i2c: 01 [17:47:44]MH_I2C_Read... [17:47:44]Read from MH i2c: 01 07 00 [17:47:44]MH_I2C_Read... [17:47:44]Read from MH i2c: 01 07 00 35 79 00 00 00 00 00 69 0C 2A [17:47:44]RasterBufferAndPrint [17:47:44]line [17:47:44]line [17:47:44]line [17:47:44]line [17:47:44]line [17:47:44]written 0, free lines is 3180 [17:47:44]MH_Cut [17:47:44]Write to MH i2c: D1 01 00 3C 79 01 87 [17:47:44]Write i2c OK [17:47:44]MH_I2C_Read... [17:47:44]Read from MH i2c: D1 [17:47:44]MH_I2C_Read... [17:47:44]Read from MH i2c: D1 01 00 [17:47:44]MH_I2C_Read... [17:47:44]Read from MH i2c: D1 01 00 3C 79 00 86 [17:47:44]Write to MH i2c: 01 00 00 3D 79 B6 [17:47:44]Write i2c OK [17:47:44]MH_I2C_Read... [17:47:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 CC C2 47 00 D0 82 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 C6 DD 02 00 F4 03 04 00 B2 3D 16 67 B6 04 01 00 00 64 9A F3 40 5F D9 3B A3 [17:47:44]CommunicateWithHost err = 0 [17:47:44]CheckOFDResponse [17:47:44]1017 (14) - 77093643461234 [17:47:44]1041 (16) - 0000000000965340 [17:47:44]1040 (4) - 187846 [17:47:44]1012 (4) - 21.10.2024 11:40 [17:47:44]1206 (1) - 0 [17:47:44]OFD Sender: Remove packet 187846 [17:47:44]ProducePacketName [17:47:44]name=ofd_packets/00187846 [17:47:44]NVStorageDeleteData [17:47:45]OFD Sender: No OFD packet to send [17:47:45]*** Cut start [17:47:45]*** Partial cut [17:47:45]*** CUTSNS_PIN = 1 [17:47:45]*** CUTSNS_PIN = 0 [17:47:46]*** Brake cut motor [17:47:46]Read from MH i2c: 01 [17:47:46]MH_I2C_Read... [17:47:46]*** Stop cut motor [17:47:46]*** Cut end [17:47:46]Read from MH i2c: 01 07 00 [17:47:46]MH_I2C_Read... [17:47:46]Read from MH i2c: 01 07 00 3D 79 00 00 00 00 00 FF 0F CB [17:47:46]process_action close_receipt done [17:47:46]requested_data is exist [17:47:46]produce_requested_data [17:47:46]requested_item fm.sn is exist - process it [17:47:46]wFMCommunicate request_size=4 [17:47:46]MH_SAM_APDU [17:47:46]CAPDU: 80 11 00 00 [17:47:46]Write to MH i2c: E2 08 00 3E 79 80 11 00 00 00 00 00 00 31 [17:47:46]Write i2c OK [17:47:46]MH_I2C_Read... [17:47:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:47:46]Read from MH i2c: E2 [17:47:46]MH_I2C_Read... [17:47:46]Read from MH i2c: E2 17 00 [17:47:46]MH_I2C_Read... [17:47:46]Read from MH i2c: E2 17 00 3E 79 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 7F [17:47:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [17:47:46]wFMCommunicate OK [17:47:46]requested_item fd.num is exist - process it [17:47:46]SAM_PROTO_GetFieldsCounters [17:47:46]wFMCommunicate request_size=4 [17:47:46]MH_SAM_APDU [17:47:46]CAPDU: 80 13 00 00 [17:47:46]Write to MH i2c: E2 08 00 3F 79 80 13 00 00 00 00 00 00 34 [17:47:46]Write i2c OK [17:47:46]MH_I2C_Read... [17:47:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:47:46]Read from MH i2c: E2 [17:47:46]MH_I2C_Read... [17:47:46]Read from MH i2c: E2 62 00 [17:47:46]MH_I2C_Read... [17:47:46]Read from MH i2c: E2 62 00 3F 79 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 C6 DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 36 01 00 00 5E 04 04 00 36 01 00 00 57 04 04 00 37 01 00 00 19 04 04 00 00 00 00 00 90 00 52 [17:47:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 C6 DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 36 01 00 00 5E 04 04 00 36 01 00 00 57 04 04 00 37 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:47:46]wFMCommunicate OK [17:47:46]SAM_PROTO_GetFieldsCounters done [17:47:46]requested_item shift.num is exist - process it [17:47:46]requested_item shift.opened is exist - process it [17:47:46]req_shift_opened [17:47:46]FM_GetShiftState [17:47:46]SAM_PROTO_GetShiftState [17:47:46]wFMCommunicate request_size=4 [17:47:46]MH_SAM_APDU [17:47:46]CAPDU: 80 13 01 00 [17:47:46]Write to MH i2c: E2 08 00 40 79 80 13 01 00 00 00 00 00 36 [17:47:46]Write i2c OK [17:47:46]MH_I2C_Read... [17:47:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:47:46]Read from MH i2c: E2 [17:47:46]MH_I2C_Read... [17:47:46]Read from MH i2c: E2 0E 00 [17:47:46]MH_I2C_Read... [17:47:46]Read from MH i2c: E2 0E 00 40 79 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 95 [17:47:46]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [17:47:46]wFMCommunicate OK [17:47:46]SAM_PROTO_GetShiftState done [17:47:46]FM_GetShiftState done [17:47:46]req_shift_opened done [17:47:46]requested_item shift.open_date is exist - process it [17:47:46]req_shift_open_date [17:47:46]req_shift_open_date done [17:47:46]produce_requested_data done [17:47:46]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187846,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [17:47:46]process_action_free close_receipt [17:47:46]json_value_free [17:47:46]json_value_free done [17:47:46]process_json_proto returns [17:47:46]Send response to host [17:47:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187846,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [17:47:46]free response buf [17:47:46]execute_script done [17:47:46]execute_script returns [17:47:46]free content buf [17:47:46]Sock 8.Close socket [17:47:46]Sock 8.Thread stoped [17:47:50]OFD Sender: No OFD packet to send [17:47:50]accept exits with 9 [17:47:50]New connection [17:47:50]New thread 3067014500 created [17:47:50]Thread 3067157860 joined [17:47:50]Waiting for new connection... [17:47:50] Sock 9.Parse request [17:47:50]Sock 9.Check first char [17:47:50]Sock 9.First char is OK [17:47:50]request: POST /json_proto HTTP/1.0 [17:47:50]Method: POST [17:47:50]URL: /json_proto [17:47:50]Method is POST - this is cgi request [17:47:50]url: /json_proto [17:47:50]query_string will be loaded in cgi processing [17:47:50]execute_cgi json_proto POST (null) [17:47:50]execute_cgi path=json_proto method=POST [17:47:50]POST find Content-Length [17:47:50]Host: 172.17.42.131:8080 [17:47:50]Content-Length: 684 [17:47:50]Content-Type: application/json [17:47:50] [17:47:50]POST finish read [17:47:50]Found Content-Length = 684 [17:47:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209899", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 10.370, "sum" : 800.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:47:50]execute_script... [17:47:50]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209899", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 10.370, "sum" : 800.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:47:50]POST & json_proto [17:47:50]process_json_proto [17:47:50]json parsed OK: [17:47:50]protocol is kg_v1.0 [17:47:50]action value=close_receipt [17:47:50]process_action close_receipt [17:47:50]cmd_close_receipt [17:47:50]MH_GetDate [17:47:50]Write to MH i2c: F0 00 00 41 79 A9 [17:47:50]Write i2c OK [17:47:50]MH_I2C_Read... [17:47:50]Read from MH i2c: F0 [17:47:50]MH_I2C_Read... [17:47:50]Read from MH i2c: F0 09 00 [17:47:50]MH_I2C_Read... [17:47:50]Read from MH i2c: F0 09 00 41 79 00 CB 93 16 67 A0 18 CA 66 75 [17:47:50]GetLastDocTimeStamp 1729532867 [17:47:50]current date 1729532875 [17:47:50]FM_GetShiftState [17:47:50]SAM_PROTO_GetShiftState [17:47:50]wFMCommunicate request_size=4 [17:47:50]MH_SAM_APDU [17:47:50]CAPDU: 80 13 01 00 [17:47:50]Write to MH i2c: E2 08 00 42 79 80 13 01 00 00 00 00 00 38 [17:47:50]Write i2c OK [17:47:50]MH_I2C_Read... [17:47:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:47:50]Read from MH i2c: E2 [17:47:50]MH_I2C_Read... [17:47:50]Read from MH i2c: E2 0E 00 [17:47:50]MH_I2C_Read... [17:47:50]Read from MH i2c: E2 0E 00 42 79 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 97 [17:47:50]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [17:47:50]wFMCommunicate OK [17:47:50]SAM_PROTO_GetShiftState done [17:47:50]FM_GetShiftState done [17:47:50]opened in 1729469754 [17:47:50]opened+sec_in_day 1729556154 [17:47:50]quantity*price = 80056 [17:47:50]sum+1 = 80057 [17:47:50]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.56 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 85.01 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 311 21.10.2024 17:47 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 187847 ФПД: 48083590886429 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T174755&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187847&fm=48083590886429&tin=02508201610067®Number=0000000000100030&sum=80000 [17:47:52]StoreToDocumentArchive [17:47:52]shift 460 fd 187847 [17:47:52]save to /storage/0460/doc_00187847 [17:47:52]save last doc name /storage/0460/doc_00187847 to /storage/kkm_last_doc_name [17:47:52]save OK [17:47:52]Clear old archive folders... [17:47:52]ProcessDocumentItem done err = 0, tmpTLVsize=257 [17:47:52]tlvbuf is 010733E0 [17:47:52]SAM_PROTO_ClearQueue [17:47:52]wFMCommunicate request_size=4 [17:47:52]MH_SAM_APDU [17:47:52]CAPDU: 80 09 00 00 [17:47:52]Write to MH i2c: E2 08 00 4F 79 80 09 00 00 00 00 00 00 3A [17:47:52]Write i2c OK [17:47:52]MH_I2C_Read... [17:47:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:47:52]Read from MH i2c: E2 [17:47:52]MH_I2C_Read... [17:47:52]Read from MH i2c: E2 03 00 [17:47:52]MH_I2C_Read... [17:47:52]Read from MH i2c: E2 03 00 4F 79 00 90 00 3C [17:47:52]RAPDU: 90 00 [17:47:52]wFMCommunicate OK [17:47:52]SAM_PROTO_ClearQueue done [17:47:52]KKMCreateOFDPacket [17:47:52]OFDProtocolAddRootSTLVToBuf [17:47:52]FM_MakeSignedData [17:47:52]FM_MakeSignedData [17:47:52]SAM_PROTO_SignData [17:47:52]wFMCommunicate request_size=4 [17:47:52]MH_SAM_APDU [17:47:52]CAPDU: 80 0D 01 02 [17:47:52]Write to MH i2c: E2 08 00 50 79 80 0D 01 02 00 00 00 00 42 [17:47:52]Write i2c OK [17:47:52]MH_I2C_Read... [17:47:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:47:52]Read from MH i2c: E2 [17:47:52]MH_I2C_Read... [17:47:52]Read from MH i2c: E2 03 00 [17:47:52]MH_I2C_Read... [17:47:52]Read from MH i2c: E2 03 00 50 79 00 90 00 3D [17:47:52]RAPDU: 90 00 [17:47:52]wFMCommunicate OK [17:47:52]wFMCommunicate request_size=255 [17:47:52]MH_SAM_APDU [17:47:52]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 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 82 28 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 B8 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 35 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 37 01 00 00 F4 03 04 00 CB 93 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 C7 DD 02 [17:47:52]Write to MH i2c: E2 02 01 51 79 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 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 82 28 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 B8 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 35 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 37 01 00 00 F4 03 04 00 CB 93 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 C7 DD 02 00 00 B2 [17:47:52]Write i2c OK [17:47:52]MH_I2C_Read... [17:47:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:47:52]Read from MH i2c: E2 [17:47:52]MH_I2C_Read... [17:47:52]Read from MH i2c: E2 03 00 [17:47:52]MH_I2C_Read... [17:47:52]Read from MH i2c: E2 03 00 51 79 00 90 00 3E [17:47:52]RAPDU: 90 00 [17:47:52]wFMCommunicate OK [17:47:52]wFMCommunicate request_size=16 [17:47:52]MH_SAM_APDU [17:47:52]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 2B BB 55 5A B4 1D [17:47:52]Write to MH i2c: E2 13 00 52 79 80 0D 02 02 0B 00 00 35 04 06 00 2B BB 55 5A B4 1D 00 00 00 [17:47:52]Write i2c OK [17:47:52]MH_I2C_Read... [17:47:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:47:52]Read from MH i2c: E2 [17:47:52]MH_I2C_Read... [17:47:52]Read from MH i2c: E2 03 00 [17:47:52]MH_I2C_Read... [17:47:52]Read from MH i2c: E2 03 00 52 79 00 90 00 3F [17:47:52]RAPDU: 90 00 [17:47:52]wFMCommunicate OK [17:47:52]wFMCommunicate request_size=4 [17:47:52]MH_SAM_APDU [17:47:52]CAPDU: 80 0D 03 02 [17:47:52]Write to MH i2c: E2 08 00 53 79 80 0D 03 02 00 00 00 00 47 [17:47:52]Write i2c OK [17:47:52]MH_I2C_Read... [17:47:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:47:52]Read from MH i2c: E2 [17:47:52]MH_I2C_Read... [17:47:52]Read from MH i2c: E2 0B 00 [17:47:52]MH_I2C_Read... [17:47:52]Read from MH i2c: E2 0B 00 53 79 00 1B 41 0B E7 EF 57 F3 82 90 00 51 [17:47:52]RAPDU: 1B 41 0B E7 EF 57 F3 82 90 00 [17:47:52]wFMCommunicate OK [17:47:52]SAM_PROTO_SignData done [17:47:52]FM_MakeSignedData done [17:47:52]CreateOFDProtocolMessage [17:47:52]wFMCommunicate request_size=4 [17:47:52]MH_SAM_APDU [17:47:52]CAPDU: 80 11 00 00 [17:47:52]Write to MH i2c: E2 08 00 54 79 80 11 00 00 00 00 00 00 47 [17:47:52]Write i2c OK [17:47:52]MH_I2C_Read... [17:47:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:47:52]Read from MH i2c: E2 [17:47:52]MH_I2C_Read... [17:47:52]Read from MH i2c: E2 17 00 [17:47:52]MH_I2C_Read... [17:47:52]Read from MH i2c: E2 17 00 54 79 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 95 [17:47:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [17:47:52]wFMCommunicate OK [17:47:52]CreateOFDProtocolMessage done [17:47:52]OFDSenderStorePacket 187847 [17:47:52]StoreOFDPacket docnum=187847 [17:47:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 C4 9E 0D 01 BF 2B 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 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 82 28 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 B8 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 35 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 37 01 00 00 F4 03 04 00 CB 93 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 C7 DD 02 00 35 04 06 00 2B BB 55 5A B4 1D 1B 41 0B E7 EF 57 F3 82 [17:47:52]CheckFolder [17:47:52]dirname=/storage/ofd_packets [17:47:52]CheckFolder done [17:47:52]ProducePacketName [17:47:52]name=ofd_packets/00187847 [17:47:52]NVStorageSaveData ofd_packets/00187847 [17:47:52]File name is /storage/ofd_packets/00187847 [17:47:52]Write 307 bytes [17:47:52]NVStorageSaveData done [17:47:52]OFDSenderStorePacket done [17:47:52]KKMCreateOFDPacket done [17:47:52]NVStorageSaveData kkm_last_timestamp [17:47:52]File name is /storage/kkm_last_timestamp [17:47:52]Write 4 bytes [17:47:52]NVStorageSaveData done [17:47:52]ExternCall_PrintAddStr [17:47:52]wPrintStart [17:47:52]Write to MH i2c: 01 00 00 55 79 CE [17:47:52]Write i2c OK [17:47:52]MH_I2C_Read... [17:47:52]Read from MH i2c: 01 [17:47:52]MH_I2C_Read... [17:47:52]Read from MH i2c: 01 07 00 [17:47:52]MH_I2C_Read... [17:47:52]Read from MH i2c: 01 07 00 55 79 00 00 00 00 00 FF 0F E3 [17:47:52]RasterBufferAndPrint [17:47:52]line Счет N : (1)209899 [17:47:52]line ИНН: 02508201610067 [17:47:52]line Контрольно-Кассовый Чек [17:47:52]line ПРОДАЖА [17:47:52]line ТРК (МРК, ГНК) : 11 [17:47:52]line Товар: 2710194210 [17:47:52]line D-ENERGY ДТ-К-5 [17:47:52]line 10.370 * 77.20 [17:47:52]line = 800.56 [17:47:52]line НДС 12% НСП 1% [17:47:52]line > о реализуемом товаре [17:47:52]line ОКРУГЛЕНИЕ: -0.56 [17:47:52]line ИТОГО: 800.00 [17:47:52]line Внесено: 800.00 [17:47:52]line СДАЧА: 0.00 [17:47:52]line НСП 1% : 7.08 [17:47:52]line НДС 12% : 85.01 [17:47:52]line Наличными: 800.00 [17:47:52]line Безнал.: 0.00 [17:47:52]line Место: АЗС № 86 "Партнер Нефть" [17:47:52]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [17:47:52]line СНО: Общий режим [17:47:52]line Чек 311 21.10.2024 17:47 [17:47:52]line Смена: 460 ФФД: 1.0 [17:47:52]line ЗНМ: 0300000155 [17:47:52]line РНМ: 0000000000100030 [17:47:52]line Версия ККМ: 001 [17:47:52]line ФМ: 0000000000965340 [17:47:52]line ФД: 187847 [17:47:52]line ФПД: 48083590886429 [17:47:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T174755&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187847&fm=48083590886429&tin=02508201610067®Number=0000000000100030&sum=80000 [17:47:52]OFD Sender: Processing packet 187847 [packets to send 1062, broken 1061] [17:47:52]ProducePacketName [17:47:52]name=ofd_packets/00187847 [17:47:52]OFD Sender: To server: pG, [17:47:52]CommunicateWithHost lk.salyk.kg:30040 [17:47:52]ConnectInit lk.salyk.kg [17:47:52]written 0, free lines is 4095 [17:47:52]Connected sock=10 [17:47:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 C4 9E 0D 01 BF 2B 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 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 82 28 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 B8 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 35 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 37 01 00 00 F4 03 04 00 CB 93 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 C7 DD 02 00 35 04 06 00 2B BB 55 5A B4 1D 1B 41 0B E7 EF 57 F3 82 [17:47:53]Write to MH i2c: 01 00 00 80 79 F9 [17:47:53]Write i2c OK [17:47:53]MH_I2C_Read... [17:47:53]Read from MH i2c: 01 [17:47:53]MH_I2C_Read... [17:47:53]Read from MH i2c: 01 07 00 [17:47:53]MH_I2C_Read... [17:47:53]Read from MH i2c: 01 07 00 80 79 00 00 00 00 00 66 0C 72 [17:47:53]RasterBufferAndPrint [17:47:53]line [17:47:53]line [17:47:53]line [17:47:53]line [17:47:53]line [17:47:53]written 0, free lines is 3182 [17:47:53]MH_Cut [17:47:53]Write to MH i2c: D1 01 00 87 79 01 D2 [17:47:53]Write i2c OK [17:47:53]MH_I2C_Read... [17:47:53]Read from MH i2c: D1 [17:47:53]MH_I2C_Read... [17:47:53]Read from MH i2c: D1 01 00 [17:47:53]MH_I2C_Read... [17:47:53]Read from MH i2c: D1 01 00 87 79 00 D1 [17:47:53]Write to MH i2c: 01 00 00 88 79 01 [17:47:53]Write i2c OK [17:47:53]MH_I2C_Read... [17:47:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 AF B3 47 00 45 48 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 C7 DD 02 00 F4 03 04 00 BB 3D 16 67 B6 04 01 00 00 77 91 F4 D3 34 EF 03 7E [17:47:53]CommunicateWithHost err = 0 [17:47:53]CheckOFDResponse [17:47:53]1017 (14) - 77093643461234 [17:47:53]1041 (16) - 0000000000965340 [17:47:53]1040 (4) - 187847 [17:47:53]1012 (4) - 21.10.2024 11:40 [17:47:53]1206 (1) - 0 [17:47:53]OFD Sender: Remove packet 187847 [17:47:53]ProducePacketName [17:47:53]name=ofd_packets/00187847 [17:47:53]NVStorageDeleteData [17:47:53]OFD Sender: No OFD packet to send [17:47:54]*** Cut start [17:47:54]*** Partial cut [17:47:54]*** CUTSNS_PIN = 1 [17:47:54]*** CUTSNS_PIN = 0 [17:47:54]*** Brake cut motor [17:47:54]Read from MH i2c: 01 [17:47:54]MH_I2C_Read... [17:47:54]*** Stop cut motor [17:47:54]*** Cut end [17:47:54]Read from MH i2c: 01 07 00 [17:47:54]MH_I2C_Read... [17:47:54]Read from MH i2c: 01 07 00 88 79 00 00 00 00 00 FF 0F 16 [17:47:54]process_action close_receipt done [17:47:54]requested_data is exist [17:47:54]produce_requested_data [17:47:54]requested_item fm.sn is exist - process it [17:47:54]wFMCommunicate request_size=4 [17:47:54]MH_SAM_APDU [17:47:54]CAPDU: 80 11 00 00 [17:47:54]Write to MH i2c: E2 08 00 89 79 80 11 00 00 00 00 00 00 7C [17:47:54]Write i2c OK [17:47:54]MH_I2C_Read... [17:47:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:47:54]Read from MH i2c: E2 [17:47:54]MH_I2C_Read... [17:47:54]Read from MH i2c: E2 17 00 [17:47:54]MH_I2C_Read... [17:47:54]Read from MH i2c: E2 17 00 89 79 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 CA [17:47:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [17:47:54]wFMCommunicate OK [17:47:54]requested_item fd.num is exist - process it [17:47:54]SAM_PROTO_GetFieldsCounters [17:47:54]wFMCommunicate request_size=4 [17:47:54]MH_SAM_APDU [17:47:54]CAPDU: 80 13 00 00 [17:47:54]Write to MH i2c: E2 08 00 8A 79 80 13 00 00 00 00 00 00 7F [17:47:54]Write i2c OK [17:47:54]MH_I2C_Read... [17:47:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:47:55]Read from MH i2c: E2 [17:47:55]MH_I2C_Read... [17:47:55]Read from MH i2c: E2 62 00 [17:47:55]MH_I2C_Read... [17:47:55]Read from MH i2c: E2 62 00 8A 79 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 C7 DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 37 01 00 00 5E 04 04 00 37 01 00 00 57 04 04 00 38 01 00 00 19 04 04 00 00 00 00 00 90 00 A1 [17:47:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 C7 DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 37 01 00 00 5E 04 04 00 37 01 00 00 57 04 04 00 38 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:47:55]wFMCommunicate OK [17:47:55]SAM_PROTO_GetFieldsCounters done [17:47:55]requested_item shift.num is exist - process it [17:47:55]requested_item shift.opened is exist - process it [17:47:55]req_shift_opened [17:47:55]FM_GetShiftState [17:47:55]SAM_PROTO_GetShiftState [17:47:55]wFMCommunicate request_size=4 [17:47:55]MH_SAM_APDU [17:47:55]CAPDU: 80 13 01 00 [17:47:55]Write to MH i2c: E2 08 00 8B 79 80 13 01 00 00 00 00 00 81 [17:47:55]Write i2c OK [17:47:55]MH_I2C_Read... [17:47:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:47:55]Read from MH i2c: E2 [17:47:55]MH_I2C_Read... [17:47:55]Read from MH i2c: E2 0E 00 [17:47:55]MH_I2C_Read... [17:47:55]Read from MH i2c: E2 0E 00 8B 79 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 E0 [17:47:55]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [17:47:55]wFMCommunicate OK [17:47:55]SAM_PROTO_GetShiftState done [17:47:55]FM_GetShiftState done [17:47:55]req_shift_opened done [17:47:55]requested_item shift.open_date is exist - process it [17:47:55]req_shift_open_date [17:47:55]req_shift_open_date done [17:47:55]produce_requested_data done [17:47:55]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187847,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [17:47:55]process_action_free close_receipt [17:47:55]json_value_free [17:47:55]json_value_free done [17:47:55]process_json_proto returns [17:47:55]Send response to host [17:47:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187847,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [17:47:55]free response buf [17:47:55]execute_script done [17:47:55]execute_script returns [17:47:55]free content buf [17:47:55]Sock 9.Close socket [17:47:55]Sock 9.Thread stoped [17:47:58]OFD Sender: No OFD packet to send [17:48:03]OFD Sender: No OFD packet to send [17:48:08]OFD Sender: No OFD packet to send [17:48:13]OFD Sender: No OFD packet to send [17:48:18]OFD Sender: No OFD packet to send [17:48:23]OFD Sender: No OFD packet to send [17:48:28]OFD Sender: No OFD packet to send [17:48:33]OFD Sender: No OFD packet to send [17:48:39]OFD Sender: No OFD packet to send [17:48:44]OFD Sender: No OFD packet to send [17:48:49]OFD Sender: No OFD packet to send [17:48:54]OFD Sender: No OFD packet to send [17:48:59]OFD Sender: No OFD packet to send [17:49:04]OFD Sender: No OFD packet to send [17:49:09]OFD Sender: No OFD packet to send [17:49:14]OFD Sender: No OFD packet to send [17:49:19]OFD Sender: No OFD packet to send [17:49:24]OFD Sender: No OFD packet to send [17:49:29]OFD Sender: No OFD packet to send [17:49:34]OFD Sender: No OFD packet to send [17:49:39]OFD Sender: No OFD packet to send [17:49:44]accept exits with 8 [17:49:44]New connection [17:49:44]New thread 3067157860 created [17:49:44]Thread 3067014500 joined [17:49:44]Waiting for new connection... [17:49:44] Sock 8.Parse request [17:49:44]Sock 8.Check first char [17:49:44]Sock 8.First char is OK [17:49:44]request: POST /json_proto HTTP/1.0 [17:49:44]Method: POST [17:49:44]URL: /json_proto [17:49:44]Method is POST - this is cgi request [17:49:44]url: /json_proto [17:49:44]query_string will be loaded in cgi processing [17:49:44]execute_cgi json_proto POST (null) [17:49:44]execute_cgi path=json_proto method=POST [17:49:44]POST find Content-Length [17:49:44]Host: 172.17.42.131:8080 [17:49:44]Content-Length: 792 [17:49:44]Content-Type: application/json [17:49:44] [17:49:44]POST finish read [17:49:44]Found Content-Length = 792 [17:49:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209900", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 0.00, "quantity" : 15.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A53078", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:49:44]execute_script... [17:49: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)209900", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 0.00, "quantity" : 15.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A53078", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:49:44]POST & json_proto [17:49:44]process_json_proto [17:49:44]json parsed OK: [17:49:44]protocol is kg_v1.0 [17:49:44]action value=close_receipt [17:49:44]process_action close_receipt [17:49:44]cmd_close_receipt [17:49:44]MH_GetDate [17:49:44]Write to MH i2c: F0 00 00 8C 79 F4 [17:49:44]Write i2c OK [17:49:44]MH_I2C_Read... [17:49:44]Read from MH i2c: F0 [17:49:44]MH_I2C_Read... [17:49:44]Read from MH i2c: F0 09 00 [17:49:44]MH_I2C_Read... [17:49:44]Read from MH i2c: F0 09 00 8C 79 00 3D 94 16 67 A0 18 CA 66 33 [17:49:44]GetLastDocTimeStamp 1729532875 [17:49:44]current date 1729532989 [17:49:44]FM_GetShiftState [17:49:44]SAM_PROTO_GetShiftState [17:49:44]wFMCommunicate request_size=4 [17:49:44]MH_SAM_APDU [17:49:44]CAPDU: 80 13 01 00 [17:49:44]Write to MH i2c: E2 08 00 8D 79 80 13 01 00 00 00 00 00 83 [17:49:44]Write i2c OK [17:49:44]MH_I2C_Read... [17:49:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:49:44]Read from MH i2c: E2 [17:49:44]MH_I2C_Read... [17:49:44]Read from MH i2c: E2 0E 00 [17:49:44]MH_I2C_Read... [17:49:44]Read from MH i2c: E2 0E 00 8D 79 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 E2 [17:49:44]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [17:49:44]wFMCommunicate OK [17:49:44]SAM_PROTO_GetShiftState done [17:49:44]FM_GetShiftState done [17:49:44]opened in 1729469754 [17:49:44]opened+sec_in_day 1729556154 [17:49:44]quantity*price = 0 [17:49:44]sum+1 = 1 [17:49:44]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 312 21.10.2024 17:49 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Талоны: Топливная Карта 53078 ФМ: 0000000000965340 ФД: 187848 ФПД: 76491922183460 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T174949&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187848&fm=76491922183460&tin=02508201610067®Number=0000000000100030&sum=0 [17:49:45]StoreToDocumentArchive [17:49:45]shift 460 fd 187848 [17:49:45]save to /storage/0460/doc_00187848 [17:49:45]save last doc name /storage/0460/doc_00187848 to /storage/kkm_last_doc_name [17:49:45]save OK [17:49:45]Clear old archive folders... [17:49:45]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:49:45]tlvbuf is 012676D0 [17:49:45]SAM_PROTO_ClearQueue [17:49:45]wFMCommunicate request_size=4 [17:49:45]MH_SAM_APDU [17:49:45]CAPDU: 80 09 00 00 [17:49:45]Write to MH i2c: E2 08 00 9A 79 80 09 00 00 00 00 00 00 85 [17:49:45]Write i2c OK [17:49:45]MH_I2C_Read... [17:49:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:49:45]Read from MH i2c: E2 [17:49:45]MH_I2C_Read... [17:49:45]Read from MH i2c: E2 03 00 [17:49:45]MH_I2C_Read... [17:49:45]Read from MH i2c: E2 03 00 9A 79 00 90 00 87 [17:49:45]RAPDU: 90 00 [17:49:45]wFMCommunicate OK [17:49:45]SAM_PROTO_ClearQueue done [17:49:45]KKMCreateOFDPacket [17:49:45]OFDProtocolAddRootSTLVToBuf [17:49:45]FM_MakeSignedData [17:49:45]FM_MakeSignedData [17:49:45]SAM_PROTO_SignData [17:49:45]wFMCommunicate request_size=4 [17:49:45]MH_SAM_APDU [17:49:45]CAPDU: 80 0D 01 02 [17:49:45]Write to MH i2c: E2 08 00 9B 79 80 0D 01 02 00 00 00 00 8D [17:49:45]Write i2c OK [17:49:45]MH_I2C_Read... [17:49:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:49:45]Read from MH i2c: E2 [17:49:45]MH_I2C_Read... [17:49:45]Read from MH i2c: E2 03 00 [17:49:45]MH_I2C_Read... [17:49:45]Read from MH i2c: E2 03 00 9B 79 00 90 00 88 [17:49:45]RAPDU: 90 00 [17:49:45]wFMCommunicate OK [17:49:45]wFMCommunicate request_size=255 [17:49:45]MH_SAM_APDU [17:49:45]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 98 3A 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 01 00 00 F4 03 04 00 3D 94 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 C8 DD 02 00 35 04 06 00 45 [17:49:45]Write to MH i2c: E2 02 01 9C 79 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 98 3A 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 01 00 00 F4 03 04 00 3D 94 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 C8 DD 02 00 35 04 06 00 45 00 00 8D [17:49:45]Write i2c OK [17:49:45]MH_I2C_Read... [17:49:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:49:45]Read from MH i2c: E2 [17:49:45]MH_I2C_Read... [17:49:45]Read from MH i2c: E2 03 00 [17:49:45]MH_I2C_Read... [17:49:45]Read from MH i2c: E2 03 00 9C 79 00 90 00 89 [17:49:45]RAPDU: 90 00 [17:49:45]wFMCommunicate OK [17:49:45]wFMCommunicate request_size=10 [17:49:45]MH_SAM_APDU [17:49:45]CAPDU: 80 0D 02 02 05 91 A9 D9 95 24 [17:49:45]Write to MH i2c: E2 0D 00 9D 79 80 0D 02 02 05 00 91 A9 D9 95 24 00 00 66 [17:49:45]Write i2c OK [17:49:45]MH_I2C_Read... [17:49:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:49:45]Read from MH i2c: E2 [17:49:45]MH_I2C_Read... [17:49:45]Read from MH i2c: E2 03 00 [17:49:45]MH_I2C_Read... [17:49:45]Read from MH i2c: E2 03 00 9D 79 00 90 00 8A [17:49:45]RAPDU: 90 00 [17:49:45]wFMCommunicate OK [17:49:45]wFMCommunicate request_size=4 [17:49:45]MH_SAM_APDU [17:49:45]CAPDU: 80 0D 03 02 [17:49:45]Write to MH i2c: E2 08 00 9E 79 80 0D 03 02 00 00 00 00 92 [17:49:45]Write i2c OK [17:49:45]MH_I2C_Read... [17:49:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:49:45]Read from MH i2c: E2 [17:49:45]MH_I2C_Read... [17:49:45]Read from MH i2c: E2 0B 00 [17:49:45]MH_I2C_Read... [17:49:45]Read from MH i2c: E2 0B 00 9E 79 00 13 10 44 41 6B 35 2B 07 90 00 0D [17:49:45]RAPDU: 13 10 44 41 6B 35 2B 07 90 00 [17:49:45]wFMCommunicate OK [17:49:45]SAM_PROTO_SignData done [17:49:45]FM_MakeSignedData done [17:49:45]CreateOFDProtocolMessage [17:49:45]wFMCommunicate request_size=4 [17:49:45]MH_SAM_APDU [17:49:45]CAPDU: 80 11 00 00 [17:49:45]Write to MH i2c: E2 08 00 9F 79 80 11 00 00 00 00 00 00 92 [17:49:45]Write i2c OK [17:49:45]MH_I2C_Read... [17:49:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:49:45]Read from MH i2c: E2 [17:49:45]MH_I2C_Read... [17:49:45]Read from MH i2c: E2 17 00 [17:49:45]MH_I2C_Read... [17:49:45]Read from MH i2c: E2 17 00 9F 79 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 E0 [17:49:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [17:49:45]wFMCommunicate OK [17:49:45]CreateOFDProtocolMessage done [17:49:45]OFDSenderStorePacket 187848 [17:49:45]StoreOFDPacket docnum=187848 [17:49:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 74 AE 07 01 4A 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 33 FF 03 08 00 03 98 3A 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 01 00 00 F4 03 04 00 3D 94 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 C8 DD 02 00 35 04 06 00 45 91 A9 D9 95 24 13 10 44 41 6B 35 2B 07 [17:49:45]CheckFolder [17:49:45]dirname=/storage/ofd_packets [17:49:45]CheckFolder done [17:49:45]ProducePacketName [17:49:45]name=ofd_packets/00187848 [17:49:45]NVStorageSaveData ofd_packets/00187848 [17:49:45]File name is /storage/ofd_packets/00187848 [17:49:45]Write 301 bytes [17:49:45]NVStorageSaveData done [17:49:45]OFDSenderStorePacket done [17:49:45]KKMCreateOFDPacket done [17:49:45]NVStorageSaveData kkm_last_timestamp [17:49:45]File name is /storage/kkm_last_timestamp [17:49:45]Write 4 bytes [17:49:45]NVStorageSaveData done [17:49:45]ExternCall_PrintAddStr [17:49:45]wPrintStart [17:49:45]Write to MH i2c: 01 00 00 A0 79 19 [17:49:45]Write i2c OK [17:49:45]MH_I2C_Read... [17:49:45]Read from MH i2c: 01 [17:49:45]MH_I2C_Read... [17:49:45]Read from MH i2c: 01 07 00 [17:49:45]MH_I2C_Read... [17:49:45]Read from MH i2c: 01 07 00 A0 79 00 00 00 00 00 FF 0F 2E [17:49:45]RasterBufferAndPrint [17:49:45]line Счет N : (1)209900 [17:49:45]line ИНН: 02508201610067 [17:49:45]line Контрольно-Кассовый Чек [17:49:45]line ПРОДАЖА [17:49:45]line ТРК (МРК, ГНК) : 22 [17:49:45]line Товар: 2710124130 [17:49:45]line Аи-92-К-3 [17:49:45]line 15.000 * 0.00 [17:49:45]line = 0.00 [17:49:45]line НДС 12% НСП 1% [17:49:45]line > о реализуемом товаре [17:49:45]line ИТОГО: 0.00 [17:49:45]line НСП 1% : 0.00 [17:49:45]line НДС 12% : 0.00 [17:49:45]line Наличными: 0.00 [17:49:45]line Безнал.: 0.00 [17:49:45]line Место: АЗС № 86 "Партнер Нефть" [17:49:45]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [17:49:45]line СНО: Общий режим [17:49:45]line Чек 312 21.10.2024 17:49 [17:49:45]line Смена: 460 ФФД: 1.0 [17:49:45]line ЗНМ: 0300000155 [17:49:45]line РНМ: 0000000000100030 [17:49:45]line Версия ККМ: 001 [17:49:45]line Талоны: Топливная Карта [17:49:45]line 53078 [17:49:45]line ФМ: 0000000000965340 [17:49:45]line ФД: 187848 [17:49:45]line ФПД: 76491922183460 [17:49:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T174949&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187848&fm=76491922183460&tin=02508201610067®Number=0000000000100030&sum=0 [17:49:45]OFD Sender: Processing packet 187848 [packets to send 1062, broken 1061] [17:49:45]ProducePacketName [17:49:45]name=ofd_packets/00187848 [17:49:45]OFD Sender: To server: pG, [17:49:45]CommunicateWithHost lk.salyk.kg:30040 [17:49:45]ConnectInit lk.salyk.kg [17:49:45]written 0, free lines is 4095 [17:49:46]Connected sock=10 [17:49:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 74 AE 07 01 4A 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 33 FF 03 08 00 03 98 3A 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 01 00 00 F4 03 04 00 3D 94 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 C8 DD 02 00 35 04 06 00 45 91 A9 D9 95 24 13 10 44 41 6B 35 2B 07 [17:49:46]Write to MH i2c: 01 00 00 CA 79 43 [17:49:46]Write i2c OK [17:49:46]MH_I2C_Read... [17:49:46]Read from MH i2c: 01 [17:49:46]MH_I2C_Read... [17:49:46]Read from MH i2c: 01 07 00 [17:49:46]MH_I2C_Read... [17:49:46]Read from MH i2c: 01 07 00 CA 79 00 00 00 00 00 83 0C D9 [17:49:46]RasterBufferAndPrint [17:49:46]line [17:49:46]line [17:49:46]line [17:49:46]line [17:49:46]line [17:49:46]written 0, free lines is 3207 [17:49:46]MH_Cut [17:49:46]Write to MH i2c: D1 01 00 D1 79 01 1C [17:49:46]Write i2c OK [17:49:46]MH_I2C_Read... [17:49:46]Read from MH i2c: D1 [17:49:46]MH_I2C_Read... [17:49:46]Read from MH i2c: D1 01 00 [17:49:46]MH_I2C_Read... [17:49:46]Read from MH i2c: D1 01 00 D1 79 00 1B [17:49:46]Write to MH i2c: 01 00 00 D2 79 4B [17:49:46]Write i2c OK [17:49:46]MH_I2C_Read... [17:49:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 86 D8 47 00 CA 84 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 C8 DD 02 00 F4 03 04 00 2C 3E 16 67 B6 04 01 00 00 EE FA F8 4A C7 EE 43 CE [17:49:46]CommunicateWithHost err = 0 [17:49:46]CheckOFDResponse [17:49:46]1017 (14) - 77093643461234 [17:49:46]1041 (16) - 0000000000965340 [17:49:46]1040 (4) - 187848 [17:49:46]1012 (4) - 21.10.2024 11:42 [17:49:46]1206 (1) - 0 [17:49:46]OFD Sender: Remove packet 187848 [17:49:46]ProducePacketName [17:49:46]name=ofd_packets/00187848 [17:49:46]NVStorageDeleteData [17:49:47]OFD Sender: No OFD packet to send [17:49:47]*** Cut start [17:49:47]*** Partial cut [17:49:47]*** CUTSNS_PIN = 1 [17:49:47]*** CUTSNS_PIN = 0 [17:49:47]*** Brake cut motor [17:49:48]Read from MH i2c: 01 [17:49:48]MH_I2C_Read... [17:49:48]*** Stop cut motor [17:49:48]*** Cut end [17:49:48]Read from MH i2c: 01 07 00 [17:49:48]MH_I2C_Read... [17:49:48]Read from MH i2c: 01 07 00 D2 79 00 00 00 00 00 FF 0F 60 [17:49:48]process_action close_receipt done [17:49:48]requested_data is exist [17:49:48]produce_requested_data [17:49:48]requested_item fm.sn is exist - process it [17:49:48]wFMCommunicate request_size=4 [17:49:48]MH_SAM_APDU [17:49:48]CAPDU: 80 11 00 00 [17:49:48]Write to MH i2c: E2 08 00 D3 79 80 11 00 00 00 00 00 00 C6 [17:49:48]Write i2c OK [17:49:48]MH_I2C_Read... [17:49:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:49:48]Read from MH i2c: E2 [17:49:48]MH_I2C_Read... [17:49:48]Read from MH i2c: E2 17 00 [17:49:48]MH_I2C_Read... [17:49:48]Read from MH i2c: E2 17 00 D3 79 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 14 [17:49:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [17:49:48]wFMCommunicate OK [17:49:48]requested_item fd.num is exist - process it [17:49:48]SAM_PROTO_GetFieldsCounters [17:49:48]wFMCommunicate request_size=4 [17:49:48]MH_SAM_APDU [17:49:48]CAPDU: 80 13 00 00 [17:49:48]Write to MH i2c: E2 08 00 D4 79 80 13 00 00 00 00 00 00 C9 [17:49:48]Write i2c OK [17:49:48]MH_I2C_Read... [17:49:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:49:48]Read from MH i2c: E2 [17:49:48]MH_I2C_Read... [17:49:48]Read from MH i2c: E2 62 00 [17:49:48]MH_I2C_Read... [17:49:48]Read from MH i2c: E2 62 00 D4 79 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 C8 DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 38 01 00 00 5E 04 04 00 38 01 00 00 57 04 04 00 39 01 00 00 19 04 04 00 00 00 00 00 90 00 EF [17:49:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 C8 DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 38 01 00 00 5E 04 04 00 38 01 00 00 57 04 04 00 39 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:49:48]wFMCommunicate OK [17:49:48]SAM_PROTO_GetFieldsCounters done [17:49:48]requested_item shift.num is exist - process it [17:49:48]requested_item shift.opened is exist - process it [17:49:48]req_shift_opened [17:49:48]FM_GetShiftState [17:49:48]SAM_PROTO_GetShiftState [17:49:48]wFMCommunicate request_size=4 [17:49:48]MH_SAM_APDU [17:49:48]CAPDU: 80 13 01 00 [17:49:48]Write to MH i2c: E2 08 00 D5 79 80 13 01 00 00 00 00 00 CB [17:49:48]Write i2c OK [17:49:48]MH_I2C_Read... [17:49:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:49:48]Read from MH i2c: E2 [17:49:48]MH_I2C_Read... [17:49:48]Read from MH i2c: E2 0E 00 [17:49:48]MH_I2C_Read... [17:49:48]Read from MH i2c: E2 0E 00 D5 79 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 2A [17:49:48]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [17:49:48]wFMCommunicate OK [17:49:48]SAM_PROTO_GetShiftState done [17:49:48]FM_GetShiftState done [17:49:48]req_shift_opened done [17:49:48]requested_item shift.open_date is exist - process it [17:49:48]req_shift_open_date [17:49:48]req_shift_open_date done [17:49:48]produce_requested_data done [17:49:48]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187848,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [17:49:48]process_action_free close_receipt [17:49:48]json_value_free [17:49:48]json_value_free done [17:49:48]process_json_proto returns [17:49:48]Send response to host [17:49:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187848,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [17:49:48]free response buf [17:49:48]execute_script done [17:49:48]execute_script returns [17:49:48]free content buf [17:49:48]Sock 8.Close socket [17:49:48]Sock 8.Thread stoped [17:49:52]OFD Sender: No OFD packet to send [17:49:57]OFD Sender: No OFD packet to send [17:50:02]OFD Sender: No OFD packet to send [17:50:07]OFD Sender: No OFD packet to send [17:50:12]OFD Sender: No OFD packet to send [17:50:17]OFD Sender: No OFD packet to send [17:50:22]OFD Sender: No OFD packet to send [17:50:27]OFD Sender: No OFD packet to send [17:50:32]OFD Sender: No OFD packet to send [17:50:37]OFD Sender: No OFD packet to send [17:50:42]OFD Sender: No OFD packet to send [17:50:47]OFD Sender: No OFD packet to send [17:50:52]OFD Sender: No OFD packet to send [17:50:57]OFD Sender: No OFD packet to send [17:51:02]OFD Sender: No OFD packet to send [17:51:07]OFD Sender: No OFD packet to send [17:51:12]OFD Sender: No OFD packet to send [17:51:17]OFD Sender: No OFD packet to send [17:51:22]OFD Sender: No OFD packet to send [17:51:27]OFD Sender: No OFD packet to send [17:51:32]OFD Sender: No OFD packet to send [17:51:37]OFD Sender: No OFD packet to send [17:51:42]OFD Sender: No OFD packet to send [17:51:47]OFD Sender: No OFD packet to send [17:51:52]OFD Sender: No OFD packet to send [17:51:57]OFD Sender: No OFD packet to send [17:52:02]OFD Sender: No OFD packet to send [17:52:07]OFD Sender: No OFD packet to send [17:52:12]OFD Sender: No OFD packet to send [17:52:17]OFD Sender: No OFD packet to send [17:52:22]OFD Sender: No OFD packet to send [17:52:27]OFD Sender: No OFD packet to send [17:52:32]OFD Sender: No OFD packet to send [17:52:37]OFD Sender: No OFD packet to send [17:52:42]OFD Sender: No OFD packet to send [17:52:47]OFD Sender: No OFD packet to send [17:52:52]OFD Sender: No OFD packet to send [17:52:57]OFD Sender: No OFD packet to send [17:53:02]OFD Sender: No OFD packet to send [17:53:08]OFD Sender: No OFD packet to send [17:53:08]accept exits with 9 [17:53:08]New connection [17:53:08]New thread 3067014500 created [17:53:08]Thread 3067157860 joined [17:53:08]Waiting for new connection... [17:53:08] Sock 9.Parse request [17:53:08]Sock 9.Check first char [17:53:08]Sock 9.First char is OK [17:53:08]request: POST /json_proto HTTP/1.0 [17:53:08]Method: POST [17:53:08]URL: /json_proto [17:53:08]Method is POST - this is cgi request [17:53:08]url: /json_proto [17:53:08]query_string will be loaded in cgi processing [17:53:08]execute_cgi json_proto POST (null) [17:53:08]execute_cgi path=json_proto method=POST [17:53:08]POST find Content-Length [17:53:08]Host: 172.17.42.131:8080 [17:53:08]Content-Length: 682 [17:53:08]Content-Type: application/json [17:53:08] [17:53:08]POST finish read [17:53:08]Found Content-Length = 682 [17:53:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209901", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 49.870, "sum" : 3700.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 4025.00, "total" : 3700.00, "payments": [ { "type": 0, "sum" : 3700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:53:08]execute_script... [17:53: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)209901", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 49.870, "sum" : 3700.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 4025.00, "total" : 3700.00, "payments": [ { "type": 0, "sum" : 3700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:53:08]POST & json_proto [17:53:08]process_json_proto [17:53:08]json parsed OK: [17:53:08]protocol is kg_v1.0 [17:53:08]action value=close_receipt [17:53:08]process_action close_receipt [17:53:08]cmd_close_receipt [17:53:08]MH_GetDate [17:53:08]Write to MH i2c: F0 00 00 D6 79 3E [17:53:08]Write i2c OK [17:53:08]MH_I2C_Read... [17:53:08]Read from MH i2c: F0 [17:53:08]MH_I2C_Read... [17:53:08]Read from MH i2c: F0 09 00 [17:53:08]MH_I2C_Read... [17:53:08]Read from MH i2c: F0 09 00 D6 79 00 0A 95 16 67 A0 18 CA 66 4B [17:53:08]GetLastDocTimeStamp 1729532989 [17:53:08]current date 1729533194 [17:53:08]FM_GetShiftState [17:53:08]SAM_PROTO_GetShiftState [17:53:08]wFMCommunicate request_size=4 [17:53:08]MH_SAM_APDU [17:53:08]CAPDU: 80 13 01 00 [17:53:08]Write to MH i2c: E2 08 00 D7 79 80 13 01 00 00 00 00 00 CD [17:53:08]Write i2c OK [17:53:08]MH_I2C_Read... [17:53:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:53:08]Read from MH i2c: E2 [17:53:08]MH_I2C_Read... [17:53:08]Read from MH i2c: E2 0E 00 [17:53:08]MH_I2C_Read... [17:53:08]Read from MH i2c: E2 0E 00 D7 79 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 2C [17:53:08]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [17:53:08]wFMCommunicate OK [17:53:08]SAM_PROTO_GetShiftState done [17:53:08]FM_GetShiftState done [17:53:08]opened in 1729469754 [17:53:08]opened+sec_in_day 1729556154 [17:53:08]quantity*price = 370035 [17:53:08]sum+1 = 370036 [17:53:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 3700.00 Внесено: 4025.00 СДАЧА: 325.00 НСП 1% : 32.75 НДС 12% : 392.96 Наличными: 3700.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 313 21.10.2024 17:53 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 187849 ФПД: 60705917062113 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T175314&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187849&fm=60705917062113&tin=02508201610067®Number=0000000000100030&sum=370000 [17:53:10]StoreToDocumentArchive [17:53:10]shift 460 fd 187849 [17:53:10]save to /storage/0460/doc_00187849 [17:53:10]save last doc name /storage/0460/doc_00187849 to /storage/kkm_last_doc_name [17:53:10]save OK [17:53:10]Clear old archive folders... [17:53:10]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:53:10]tlvbuf is 012D0C00 [17:53:10]SAM_PROTO_ClearQueue [17:53:10]wFMCommunicate request_size=4 [17:53:10]MH_SAM_APDU [17:53:10]CAPDU: 80 09 00 00 [17:53:10]Write to MH i2c: E2 08 00 E4 79 80 09 00 00 00 00 00 00 CF [17:53:10]Write i2c OK [17:53:10]MH_I2C_Read... [17:53:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:53:10]Read from MH i2c: E2 [17:53:10]MH_I2C_Read... [17:53:10]Read from MH i2c: E2 03 00 [17:53:10]MH_I2C_Read... [17:53:10]Read from MH i2c: E2 03 00 E4 79 00 90 00 D1 [17:53:10]RAPDU: 90 00 [17:53:10]wFMCommunicate OK [17:53:10]SAM_PROTO_ClearQueue done [17:53:10]KKMCreateOFDPacket [17:53:10]OFDProtocolAddRootSTLVToBuf [17:53:10]FM_MakeSignedData [17:53:10]FM_MakeSignedData [17:53:10]SAM_PROTO_SignData [17:53:10]wFMCommunicate request_size=4 [17:53:10]MH_SAM_APDU [17:53:10]CAPDU: 80 0D 01 02 [17:53:10]Write to MH i2c: E2 08 00 E5 79 80 0D 01 02 00 00 00 00 D7 [17:53:10]Write i2c OK [17:53:10]MH_I2C_Read... [17:53:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:53:10]Read from MH i2c: E2 [17:53:10]MH_I2C_Read... [17:53:10]Read from MH i2c: E2 03 00 [17:53:10]MH_I2C_Read... [17:53:10]Read from MH i2c: E2 03 00 E5 79 00 90 00 D2 [17:53:10]RAPDU: 90 00 [17:53:10]wFMCommunicate OK [17:53:10]wFMCommunicate request_size=255 [17:53:10]MH_SAM_APDU [17:53:10]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 CE C2 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 73 A5 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 A5 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CB 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 99 00 00 00 00 07 04 06 00 50 A5 05 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 01 00 00 F4 03 04 00 0A 95 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 C9 DD 02 00 35 04 06 00 37 [17:53:10]Write to MH i2c: E2 02 01 E6 79 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 CE C2 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 73 A5 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 A5 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CB 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 99 00 00 00 00 07 04 06 00 50 A5 05 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 01 00 00 F4 03 04 00 0A 95 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 C9 DD 02 00 35 04 06 00 37 00 00 74 [17:53:10]Write i2c OK [17:53:10]MH_I2C_Read... [17:53:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:53:10]Read from MH i2c: E2 [17:53:10]MH_I2C_Read... [17:53:10]Read from MH i2c: E2 03 00 [17:53:10]MH_I2C_Read... [17:53:10]Read from MH i2c: E2 03 00 E6 79 00 90 00 D3 [17:53:10]RAPDU: 90 00 [17:53:10]wFMCommunicate OK [17:53:10]wFMCommunicate request_size=10 [17:53:10]MH_SAM_APDU [17:53:10]CAPDU: 80 0D 02 02 05 36 32 9F 4B E1 [17:53:10]Write to MH i2c: E2 0D 00 E7 79 80 0D 02 02 05 00 36 32 9F 4B E1 00 00 17 [17:53:10]Write i2c OK [17:53:10]MH_I2C_Read... [17:53:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:53:10]Read from MH i2c: E2 [17:53:10]MH_I2C_Read... [17:53:10]Read from MH i2c: E2 03 00 [17:53:10]MH_I2C_Read... [17:53:10]Read from MH i2c: E2 03 00 E7 79 00 90 00 D4 [17:53:10]RAPDU: 90 00 [17:53:10]wFMCommunicate OK [17:53:10]wFMCommunicate request_size=4 [17:53:10]MH_SAM_APDU [17:53:10]CAPDU: 80 0D 03 02 [17:53:10]Write to MH i2c: E2 08 00 E8 79 80 0D 03 02 00 00 00 00 DC [17:53:10]Write i2c OK [17:53:10]MH_I2C_Read... [17:53:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:53:10]Read from MH i2c: E2 [17:53:10]MH_I2C_Read... [17:53:10]Read from MH i2c: E2 0B 00 [17:53:10]MH_I2C_Read... [17:53:10]Read from MH i2c: E2 0B 00 E8 79 00 08 95 98 90 44 CF FF 84 90 00 38 [17:53:10]RAPDU: 08 95 98 90 44 CF FF 84 90 00 [17:53:10]wFMCommunicate OK [17:53:10]SAM_PROTO_SignData done [17:53:10]FM_MakeSignedData done [17:53:10]CreateOFDProtocolMessage [17:53:10]wFMCommunicate request_size=4 [17:53:10]MH_SAM_APDU [17:53:10]CAPDU: 80 11 00 00 [17:53:10]Write to MH i2c: E2 08 00 E9 79 80 11 00 00 00 00 00 00 DC [17:53:10]Write i2c OK [17:53:10]MH_I2C_Read... [17:53:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:53:10]Read from MH i2c: E2 [17:53:10]MH_I2C_Read... [17:53:10]Read from MH i2c: E2 17 00 [17:53:10]MH_I2C_Read... [17:53:10]Read from MH i2c: E2 17 00 E9 79 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 2A [17:53:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [17:53:10]wFMCommunicate OK [17:53:10]CreateOFDProtocolMessage done [17:53:10]OFDSenderStorePacket 187849 [17:53:10]StoreOFDPacket docnum=187849 [17:53:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 96 AE 07 01 2A 6F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 CE C2 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 73 A5 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 A5 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CB 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 99 00 00 00 00 07 04 06 00 50 A5 05 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 01 00 00 F4 03 04 00 0A 95 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 C9 DD 02 00 35 04 06 00 37 36 32 9F 4B E1 08 95 98 90 44 CF FF 84 [17:53:10]CheckFolder [17:53:10]dirname=/storage/ofd_packets [17:53:10]CheckFolder done [17:53:10]ProducePacketName [17:53:10]name=ofd_packets/00187849 [17:53:10]NVStorageSaveData ofd_packets/00187849 [17:53:10]File name is /storage/ofd_packets/00187849 [17:53:10]Write 301 bytes [17:53:10]NVStorageSaveData done [17:53:10]OFDSenderStorePacket done [17:53:10]KKMCreateOFDPacket done [17:53:10]NVStorageSaveData kkm_last_timestamp [17:53:10]File name is /storage/kkm_last_timestamp [17:53:10]Write 4 bytes [17:53:10]NVStorageSaveData done [17:53:10]ExternCall_PrintAddStr [17:53:10]wPrintStart [17:53:10]Write to MH i2c: 01 00 00 EA 79 63 [17:53:10]Write i2c OK [17:53:10]MH_I2C_Read... [17:53:10]Read from MH i2c: 01 [17:53:10]MH_I2C_Read... [17:53:10]Read from MH i2c: 01 07 00 [17:53:10]MH_I2C_Read... [17:53:10]Read from MH i2c: 01 07 00 EA 79 00 00 00 00 00 FF 0F 78 [17:53:10]RasterBufferAndPrint [17:53:10]line Счет N : (1)209901 [17:53:10]line ИНН: 02508201610067 [17:53:10]line Контрольно-Кассовый Чек [17:53:10]line ПРОДАЖА [17:53:10]line ТРК (МРК, ГНК) : 13 [17:53:10]line Товар: 2710124500 [17:53:10]line Аи-95-К-3 [17:53:10]line 49.870 * 74.20 [17:53:10]line = 3700.35 [17:53:10]line НДС 12% НСП 1% [17:53:10]line > о реализуемом товаре [17:53:10]line ОКРУГЛЕНИЕ: -0.35 [17:53:10]line ИТОГО: 3700.00 [17:53:10]line Внесено: 4025.00 [17:53:10]line СДАЧА: 325.00 [17:53:10]line НСП 1% : 32.75 [17:53:10]line НДС 12% : 392.96 [17:53:10]line Наличными: 3700.00 [17:53:10]line Безнал.: 0.00 [17:53:10]line Место: АЗС № 86 "Партнер Нефть" [17:53:10]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [17:53:10]line СНО: Общий режим [17:53:10]line Чек 313 21.10.2024 17:53 [17:53:10]line Смена: 460 ФФД: 1.0 [17:53:10]line ЗНМ: 0300000155 [17:53:10]line РНМ: 0000000000100030 [17:53:10]line Версия ККМ: 001 [17:53:10]line ФМ: 0000000000965340 [17:53:10]line ФД: 187849 [17:53:10]line ФПД: 60705917062113 [17:53:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T175314&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187849&fm=60705917062113&tin=02508201610067®Number=0000000000100030&sum=370000 [17:53:10]written 0, free lines is 4095 [17:53:10]OFD Sender: Processing packet 187849 [packets to send 1062, broken 1061] [17:53:10]ProducePacketName [17:53:10]name=ofd_packets/00187849 [17:53:10]OFD Sender: To server: pG, [17:53:10]CommunicateWithHost lk.salyk.kg:30040 [17:53:10]ConnectInit lk.salyk.kg [17:53:10]Connected sock=10 [17:53:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 96 AE 07 01 2A 6F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 CE C2 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 73 A5 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 A5 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CB 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 99 00 00 00 00 07 04 06 00 50 A5 05 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 01 00 00 F4 03 04 00 0A 95 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 C9 DD 02 00 35 04 06 00 37 36 32 9F 4B E1 08 95 98 90 44 CF FF 84 [17:53:11]Write to MH i2c: 01 00 00 15 7A 8F [17:53:11]Write i2c OK [17:53:11]MH_I2C_Read... [17:53:11]Read from MH i2c: 01 [17:53:11]MH_I2C_Read... [17:53:11]Read from MH i2c: 01 07 00 [17:53:11]MH_I2C_Read... [17:53:11]Read from MH i2c: 01 07 00 15 7A 00 00 00 00 00 66 0C 08 [17:53:11]RasterBufferAndPrint [17:53:11]line [17:53:11]line [17:53:11]line [17:53:11]line [17:53:11]line [17:53:11]written 0, free lines is 3178 [17:53:11]MH_Cut [17:53:11]Write to MH i2c: D1 01 00 1C 7A 01 68 [17:53:11]Write i2c OK [17:53:11]MH_I2C_Read... [17:53:11]Read from MH i2c: D1 [17:53:11]MH_I2C_Read... [17:53:11]Read from MH i2c: D1 01 00 [17:53:11]MH_I2C_Read... [17:53:11]Read from MH i2c: D1 01 00 1C 7A 00 67 [17:53:11]Write to MH i2c: 01 00 00 1D 7A 97 [17:53:11]Write i2c OK [17:53:11]MH_I2C_Read... [17:53:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 50 B3 47 00 13 B5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 C9 DD 02 00 F4 03 04 00 F9 3E 16 67 B6 04 01 00 00 9F 15 D3 BE 59 0C F4 81 [17:53:11]CommunicateWithHost err = 0 [17:53:11]CheckOFDResponse [17:53:11]1017 (14) - 77093643461234 [17:53:11]1041 (16) - 0000000000965340 [17:53:11]1040 (4) - 187849 [17:53:11]1012 (4) - 21.10.2024 11:46 [17:53:11]1206 (1) - 0 [17:53:11]OFD Sender: Remove packet 187849 [17:53:11]ProducePacketName [17:53:11]name=ofd_packets/00187849 [17:53:11]NVStorageDeleteData [17:53:11]OFD Sender: No OFD packet to send [17:53:12]*** Cut start [17:53:12]*** Partial cut [17:53:12]*** CUTSNS_PIN = 1 [17:53:12]*** CUTSNS_PIN = 0 [17:53:12]*** Brake cut motor [17:53:12]Read from MH i2c: 01 [17:53:12]MH_I2C_Read... [17:53:12]*** Stop cut motor [17:53:12]*** Cut end [17:53:12]Read from MH i2c: 01 07 00 [17:53:12]MH_I2C_Read... [17:53:12]Read from MH i2c: 01 07 00 1D 7A 00 00 00 00 00 FF 0F AC [17:53:12]process_action close_receipt done [17:53:12]requested_data is exist [17:53:12]produce_requested_data [17:53:12]requested_item fm.sn is exist - process it [17:53:12]wFMCommunicate request_size=4 [17:53:12]MH_SAM_APDU [17:53:12]CAPDU: 80 11 00 00 [17:53:12]Write to MH i2c: E2 08 00 1E 7A 80 11 00 00 00 00 00 00 12 [17:53:12]Write i2c OK [17:53:12]MH_I2C_Read... [17:53:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:53:12]Read from MH i2c: E2 [17:53:12]MH_I2C_Read... [17:53:12]Read from MH i2c: E2 17 00 [17:53:12]MH_I2C_Read... [17:53:12]Read from MH i2c: E2 17 00 1E 7A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 60 [17:53:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [17:53:12]wFMCommunicate OK [17:53:12]requested_item fd.num is exist - process it [17:53:12]SAM_PROTO_GetFieldsCounters [17:53:12]wFMCommunicate request_size=4 [17:53:12]MH_SAM_APDU [17:53:12]CAPDU: 80 13 00 00 [17:53:12]Write to MH i2c: E2 08 00 1F 7A 80 13 00 00 00 00 00 00 15 [17:53:12]Write i2c OK [17:53:12]MH_I2C_Read... [17:53:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:53:13]Read from MH i2c: E2 [17:53:13]MH_I2C_Read... [17:53:13]Read from MH i2c: E2 62 00 [17:53:13]MH_I2C_Read... [17:53:13]Read from MH i2c: E2 62 00 1F 7A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 C9 DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 39 01 00 00 5E 04 04 00 39 01 00 00 57 04 04 00 3A 01 00 00 19 04 04 00 00 00 00 00 90 00 3F [17:53:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 C9 DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 39 01 00 00 5E 04 04 00 39 01 00 00 57 04 04 00 3A 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:53:13]wFMCommunicate OK [17:53:13]SAM_PROTO_GetFieldsCounters done [17:53:13]requested_item shift.num is exist - process it [17:53:13]requested_item shift.opened is exist - process it [17:53:13]req_shift_opened [17:53:13]FM_GetShiftState [17:53:13]SAM_PROTO_GetShiftState [17:53:13]wFMCommunicate request_size=4 [17:53:13]MH_SAM_APDU [17:53:13]CAPDU: 80 13 01 00 [17:53:13]Write to MH i2c: E2 08 00 20 7A 80 13 01 00 00 00 00 00 17 [17:53:13]Write i2c OK [17:53:13]MH_I2C_Read... [17:53:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:53:13]Read from MH i2c: E2 [17:53:13]MH_I2C_Read... [17:53:13]Read from MH i2c: E2 0E 00 [17:53:13]MH_I2C_Read... [17:53:13]Read from MH i2c: E2 0E 00 20 7A 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 76 [17:53:13]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [17:53:13]wFMCommunicate OK [17:53:13]SAM_PROTO_GetShiftState done [17:53:13]FM_GetShiftState done [17:53:13]req_shift_opened done [17:53:13]requested_item shift.open_date is exist - process it [17:53:13]req_shift_open_date [17:53:13]req_shift_open_date done [17:53:13]produce_requested_data done [17:53:13]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187849,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [17:53:13]process_action_free close_receipt [17:53:13]json_value_free [17:53:13]json_value_free done [17:53:13]process_json_proto returns [17:53:13]Send response to host [17:53:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187849,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [17:53:13]free response buf [17:53:13]execute_script done [17:53:13]execute_script returns [17:53:13]free content buf [17:53:13]Sock 9.Close socket [17:53:13]Sock 9.Thread stoped [17:53:16]OFD Sender: No OFD packet to send [17:53:21]OFD Sender: No OFD packet to send [17:53:26]OFD Sender: No OFD packet to send [17:53:31]OFD Sender: No OFD packet to send [17:53:36]OFD Sender: No OFD packet to send [17:53:41]OFD Sender: No OFD packet to send [17:53:46]OFD Sender: No OFD packet to send [17:53:51]OFD Sender: No OFD packet to send [17:53:56]OFD Sender: No OFD packet to send [17:54:01]OFD Sender: No OFD packet to send [17:54:07]OFD Sender: No OFD packet to send [17:54:12]OFD Sender: No OFD packet to send [17:54:17]OFD Sender: No OFD packet to send [17:54:22]OFD Sender: No OFD packet to send [17:54:27]OFD Sender: No OFD packet to send [17:54:32]OFD Sender: No OFD packet to send [17:54:37]OFD Sender: No OFD packet to send [17:54:42]OFD Sender: No OFD packet to send [17:54:47]OFD Sender: No OFD packet to send [17:54:52]OFD Sender: No OFD packet to send [17:54:57]OFD Sender: No OFD packet to send [17:55:02]OFD Sender: No OFD packet to send [17:55:07]OFD Sender: No OFD packet to send [17:55:12]OFD Sender: No OFD packet to send [17:55:17]OFD Sender: No OFD packet to send [17:55:22]OFD Sender: No OFD packet to send [17:55:27]OFD Sender: No OFD packet to send [17:55:32]OFD Sender: No OFD packet to send [17:55:37]OFD Sender: No OFD packet to send [17:55:42]OFD Sender: No OFD packet to send [17:55:47]OFD Sender: No OFD packet to send [17:55:52]OFD Sender: No OFD packet to send [17:55:57]OFD Sender: No OFD packet to send [17:56:02]OFD Sender: No OFD packet to send [17:56:07]OFD Sender: No OFD packet to send [17:56:12]OFD Sender: No OFD packet to send [17:56:17]OFD Sender: No OFD packet to send [17:56:22]OFD Sender: No OFD packet to send [17:56:27]OFD Sender: No OFD packet to send [17:56:32]OFD Sender: No OFD packet to send [17:56:37]OFD Sender: No OFD packet to send [17:56:42]OFD Sender: No OFD packet to send [17:56:47]OFD Sender: No OFD packet to send [17:56:52]OFD Sender: No OFD packet to send [17:56:57]OFD Sender: No OFD packet to send [17:57:02]OFD Sender: No OFD packet to send [17:57:07]OFD Sender: No OFD packet to send [17:57:12]OFD Sender: No OFD packet to send [17:57: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:53]OFD Sender: No OFD packet to send [17:57:58]OFD Sender: No OFD packet to send [17:58:03]OFD Sender: No OFD packet to send [17:58:08]OFD Sender: No OFD packet to send [17:58:13]OFD Sender: No OFD packet to send [17:58:18]OFD Sender: No OFD packet to send [17:58:23]OFD Sender: No OFD packet to send [17:58:28]OFD Sender: No OFD packet to send [17:58:33]OFD Sender: No OFD packet to send [17:58:38]OFD Sender: No OFD packet to send [17:58:43]OFD Sender: No OFD packet to send [17:58:48]OFD Sender: No OFD packet to send [17:58:53]OFD Sender: No OFD packet to send [17:58:58]OFD Sender: No OFD packet to send [17:59:03]OFD Sender: No OFD packet to send [17:59:08]OFD Sender: No OFD packet to send [17:59:13]OFD Sender: No OFD packet to send [17:59:18]OFD Sender: No OFD packet to send [17:59:23]OFD Sender: No OFD packet to send [17:59:28]OFD Sender: No OFD packet to send [17:59:33]OFD Sender: No OFD packet to send [17:59:38]OFD Sender: No OFD packet to send [17:59:43]OFD Sender: No OFD packet to send [17:59:48]OFD Sender: No OFD packet to send [17:59:53]OFD Sender: No OFD packet to send [17:59:58]OFD Sender: No OFD packet to send [18:00:03]OFD Sender: No OFD packet to send [18:00:08]OFD Sender: No OFD packet to send [18:00:13]OFD Sender: No OFD packet to send [18:00:18]OFD Sender: No OFD packet to send [18:00:23]OFD Sender: No OFD packet to send [18:00:28]OFD Sender: No OFD packet to send [18:00:33]OFD Sender: No OFD packet to send [18:00:38]OFD Sender: No OFD packet to send [18:00:43]OFD Sender: No OFD packet to send [18:00:48]OFD Sender: No OFD packet to send [18:00:50]accept exits with 8 [18:00:50]New connection [18:00:50]New thread 3067157860 created [18:00:50]Thread 3067014500 joined [18:00:50]Waiting for new connection... [18:00:50] Sock 8.Parse request [18:00:50]Sock 8.Check first char [18:00:50]Sock 8.First char is OK [18:00:50]request: POST /json_proto HTTP/1.0 [18:00:50]Method: POST [18:00:50]URL: /json_proto [18:00:50]Method is POST - this is cgi request [18:00:50]url: /json_proto [18:00:50]query_string will be loaded in cgi processing [18:00:50]execute_cgi json_proto POST (null) [18:00:50]execute_cgi path=json_proto method=POST [18:00:50]POST find Content-Length [18:00:50]Host: 172.17.42.131:8080 [18:00:50]Content-Length: 688 [18:00:50]Content-Type: application/json [18:00:50] [18:00:50]POST finish read [18:00:50]Found Content-Length = 688 [18:00:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209902", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 12.960, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:00:50]execute_script... [18:00: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)209902", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 12.960, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:00:50]POST & json_proto [18:00:50]process_json_proto [18:00:50]json parsed OK: [18:00:50]protocol is kg_v1.0 [18:00:50]action value=close_receipt [18:00:50]process_action close_receipt [18:00:50]cmd_close_receipt [18:00:50]MH_GetDate [18:00:50]Write to MH i2c: F0 00 00 21 7A 8A [18:00:50]Write i2c OK [18:00:50]MH_I2C_Read... [18:00:50]Read from MH i2c: F0 [18:00:50]MH_I2C_Read... [18:00:50]Read from MH i2c: F0 09 00 [18:00:50]MH_I2C_Read... [18:00:50]Read from MH i2c: F0 09 00 21 7A 00 D7 96 16 67 A0 18 CA 66 65 [18:00:50]GetLastDocTimeStamp 1729533194 [18:00:50]current date 1729533655 [18:00:50]FM_GetShiftState [18:00:50]SAM_PROTO_GetShiftState [18:00:50]wFMCommunicate request_size=4 [18:00:50]MH_SAM_APDU [18:00:50]CAPDU: 80 13 01 00 [18:00:50]Write to MH i2c: E2 08 00 22 7A 80 13 01 00 00 00 00 00 19 [18:00:50]Write i2c OK [18:00:50]MH_I2C_Read... [18:00:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:00:50]Read from MH i2c: E2 [18:00:50]MH_I2C_Read... [18:00:50]Read from MH i2c: E2 0E 00 [18:00:50]MH_I2C_Read... [18:00:50]Read from MH i2c: E2 0E 00 22 7A 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 78 [18:00:50]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [18:00:50]wFMCommunicate OK [18:00:50]SAM_PROTO_GetShiftState done [18:00:50]FM_GetShiftState done [18:00:50]opened in 1729469754 [18:00:50]opened+sec_in_day 1729556154 [18:00:50]quantity*price = 100051 [18:00:50]sum+1 = 100052 [18:00:50]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 314 21.10.2024 18:00 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 187850 ФПД: 131898012544700 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T180055&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187850&fm=131898012544700&tin=02508201610067®Number=0000000000100030&sum=100000 [18:00:51]StoreToDocumentArchive [18:00:51]shift 460 fd 187850 [18:00:51]save to /storage/0460/doc_00187850 [18:00:51]save last doc name /storage/0460/doc_00187850 to /storage/kkm_last_doc_name [18:00:51]save OK [18:00:51]Clear old archive folders... [18:00:51]ProcessDocumentItem done err = 0, tmpTLVsize=257 [18:00:51]tlvbuf is 010CD450 [18:00:51]SAM_PROTO_ClearQueue [18:00:51]wFMCommunicate request_size=4 [18:00:51]MH_SAM_APDU [18:00:51]CAPDU: 80 09 00 00 [18:00:51]Write to MH i2c: E2 08 00 2F 7A 80 09 00 00 00 00 00 00 1B [18:00:51]Write i2c OK [18:00:51]MH_I2C_Read... [18:00:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:00:51]Read from MH i2c: E2 [18:00:51]MH_I2C_Read... [18:00:51]Read from MH i2c: E2 03 00 [18:00:51]MH_I2C_Read... [18:00:51]Read from MH i2c: E2 03 00 2F 7A 00 90 00 1D [18:00:51]RAPDU: 90 00 [18:00:51]wFMCommunicate OK [18:00:51]SAM_PROTO_ClearQueue done [18:00:51]KKMCreateOFDPacket [18:00:51]OFDProtocolAddRootSTLVToBuf [18:00:51]FM_MakeSignedData [18:00:51]FM_MakeSignedData [18:00:51]SAM_PROTO_SignData [18:00:51]wFMCommunicate request_size=4 [18:00:51]MH_SAM_APDU [18:00:51]CAPDU: 80 0D 01 02 [18:00:51]Write to MH i2c: E2 08 00 30 7A 80 0D 01 02 00 00 00 00 23 [18:00:51]Write i2c OK [18:00:51]MH_I2C_Read... [18:00:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:00:51]Read from MH i2c: E2 [18:00:51]MH_I2C_Read... [18:00:51]Read from MH i2c: E2 03 00 [18:00:51]MH_I2C_Read... [18:00:51]Read from MH i2c: E2 03 00 30 7A 00 90 00 1E [18:00:51]RAPDU: 90 00 [18:00:51]wFMCommunicate OK [18:00:51]wFMCommunicate request_size=255 [18:00:51]MH_SAM_APDU [18:00:51]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 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 01 00 00 F4 03 04 00 D7 96 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 CA DD 02 [18:00:51]Write to MH i2c: E2 02 01 31 7A 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 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 01 00 00 F4 03 04 00 D7 96 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 CA DD 02 00 00 1B [18:00:51]Write i2c OK [18:00:51]MH_I2C_Read... [18:00:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:00:51]Read from MH i2c: E2 [18:00:51]MH_I2C_Read... [18:00:51]Read from MH i2c: E2 03 00 [18:00:51]MH_I2C_Read... [18:00:51]Read from MH i2c: E2 03 00 31 7A 00 90 00 1F [18:00:51]RAPDU: 90 00 [18:00:51]wFMCommunicate OK [18:00:51]wFMCommunicate request_size=16 [18:00:51]MH_SAM_APDU [18:00:51]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 77 F5 E6 2F 2E BC [18:00:51]Write to MH i2c: E2 13 00 32 7A 80 0D 02 02 0B 00 00 35 04 06 00 77 F5 E6 2F 2E BC 00 00 E6 [18:00:51]Write i2c OK [18:00:51]MH_I2C_Read... [18:00:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:00:51]Read from MH i2c: E2 [18:00:51]MH_I2C_Read... [18:00:51]Read from MH i2c: E2 03 00 [18:00:51]MH_I2C_Read... [18:00:51]Read from MH i2c: E2 03 00 32 7A 00 90 00 20 [18:00:51]RAPDU: 90 00 [18:00:51]wFMCommunicate OK [18:00:51]wFMCommunicate request_size=4 [18:00:51]MH_SAM_APDU [18:00:51]CAPDU: 80 0D 03 02 [18:00:51]Write to MH i2c: E2 08 00 33 7A 80 0D 03 02 00 00 00 00 28 [18:00:51]Write i2c OK [18:00:51]MH_I2C_Read... [18:00:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:00:51]Read from MH i2c: E2 [18:00:51]MH_I2C_Read... [18:00:51]Read from MH i2c: E2 0B 00 [18:00:51]MH_I2C_Read... [18:00:51]Read from MH i2c: E2 0B 00 33 7A 00 B3 60 7D D9 7A CB 8C 0A 90 00 6D [18:00:51]RAPDU: B3 60 7D D9 7A CB 8C 0A 90 00 [18:00:51]wFMCommunicate OK [18:00:51]SAM_PROTO_SignData done [18:00:51]FM_MakeSignedData done [18:00:51]CreateOFDProtocolMessage [18:00:51]wFMCommunicate request_size=4 [18:00:51]MH_SAM_APDU [18:00:51]CAPDU: 80 11 00 00 [18:00:51]Write to MH i2c: E2 08 00 34 7A 80 11 00 00 00 00 00 00 28 [18:00:51]Write i2c OK [18:00:51]MH_I2C_Read... [18:00:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:00:51]Read from MH i2c: E2 [18:00:51]MH_I2C_Read... [18:00:51]Read from MH i2c: E2 17 00 [18:00:51]MH_I2C_Read... [18:00:51]Read from MH i2c: E2 17 00 34 7A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 76 [18:00:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [18:00:51]wFMCommunicate OK [18:00:51]CreateOFDProtocolMessage done [18:00:51]OFDSenderStorePacket 187850 [18:00:51]StoreOFDPacket docnum=187850 [18:00:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 68 0E 0D 01 5A 0D 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 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 01 00 00 F4 03 04 00 D7 96 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 CA DD 02 00 35 04 06 00 77 F5 E6 2F 2E BC B3 60 7D D9 7A CB 8C 0A [18:00:51]CheckFolder [18:00:51]dirname=/storage/ofd_packets [18:00:51]CheckFolder done [18:00:51]ProducePacketName [18:00:51]name=ofd_packets/00187850 [18:00:51]NVStorageSaveData ofd_packets/00187850 [18:00:51]File name is /storage/ofd_packets/00187850 [18:00:51]Write 307 bytes [18:00:51]NVStorageSaveData done [18:00:51]OFDSenderStorePacket done [18:00:51]KKMCreateOFDPacket done [18:00:51]NVStorageSaveData kkm_last_timestamp [18:00:51]File name is /storage/kkm_last_timestamp [18:00:51]Write 4 bytes [18:00:51]NVStorageSaveData done [18:00:51]ExternCall_PrintAddStr [18:00:51]wPrintStart [18:00:51]Write to MH i2c: 01 00 00 35 7A AF [18:00:51]Write i2c OK [18:00:51]MH_I2C_Read... [18:00:51]Read from MH i2c: 01 [18:00:51]MH_I2C_Read... [18:00:51]Read from MH i2c: 01 07 00 [18:00:51]MH_I2C_Read... [18:00:51]Read from MH i2c: 01 07 00 35 7A 00 00 00 00 00 FF 0F C4 [18:00:51]RasterBufferAndPrint [18:00:51]line Счет N : (1)209902 [18:00:51]line ИНН: 02508201610067 [18:00:51]line Контрольно-Кассовый Чек [18:00:51]line ПРОДАЖА [18:00:51]line ТРК (МРК, ГНК) : 21 [18:00:51]line Товар: 2710194210 [18:00:51]line D-ENERGY ДТ-К-5 [18:00:51]line 12.960 * 77.20 [18:00:51]line = 1000.51 [18:00:51]line НДС 12% НСП 1% [18:00:51]line > о реализуемом товаре [18:00:51]line ОКРУГЛЕНИЕ: -0.51 [18:00:51]line ИТОГО: 1000.00 [18:00:51]line Внесено: 1000.00 [18:00:51]line СДАЧА: 0.00 [18:00:51]line НСП 1% : 8.85 [18:00:51]line НДС 12% : 106.25 [18:00:51]line Наличными: 1000.00 [18:00:51]line Безнал.: 0.00 [18:00:51]line Место: АЗС № 86 "Партнер Нефть" [18:00:51]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [18:00:51]line СНО: Общий режим [18:00:51]line Чек 314 21.10.2024 18:00 [18:00:51]line Смена: 460 ФФД: 1.0 [18:00:51]line ЗНМ: 0300000155 [18:00:51]line РНМ: 0000000000100030 [18:00:51]line Версия ККМ: 001 [18:00:51]line ФМ: 0000000000965340 [18:00:51]line ФД: 187850 [18:00:51]line ФПД: 131898012544700 [18:00:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T180055&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187850&fm=131898012544700&tin=02508201610067®Number=0000000000100030&sum=100000 [18:00:52]OFD Sender: Processing packet 187850 [packets to send 1062, broken 1061] [18:00:52]ProducePacketName [18:00:52]name=ofd_packets/00187850 [18:00:52]OFD Sender: To server: pG, [18:00:52]CommunicateWithHost lk.salyk.kg:30040 [18:00:52]ConnectInit lk.salyk.kg [18:00:52]written 0, free lines is 4095 [18:00:52]Connected sock=10 [18:00:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 68 0E 0D 01 5A 0D 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 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 01 00 00 F4 03 04 00 D7 96 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 CA DD 02 00 35 04 06 00 77 F5 E6 2F 2E BC B3 60 7D D9 7A CB 8C 0A [18:00:52]Write to MH i2c: 01 00 00 60 7A DA [18:00:52]Write i2c OK [18:00:52]MH_I2C_Read... [18:00:52]Read from MH i2c: 01 [18:00:52]MH_I2C_Read... [18:00:52]Read from MH i2c: 01 07 00 [18:00:52]MH_I2C_Read... [18:00:52]Read from MH i2c: 01 07 00 60 7A 00 00 00 00 00 5C 0C 49 [18:00:52]RasterBufferAndPrint [18:00:52]line [18:00:52]line [18:00:52]line [18:00:52]line [18:00:52]line [18:00:52]written 0, free lines is 3167 [18:00:52]MH_Cut [18:00:52]Write to MH i2c: D1 01 00 67 7A 01 B3 [18:00:52]Write i2c OK [18:00:52]MH_I2C_Read... [18:00:52]Read from MH i2c: D1 [18:00:52]MH_I2C_Read... [18:00:52]Read from MH i2c: D1 01 00 [18:00:52]MH_I2C_Read... [18:00:52]Read from MH i2c: D1 01 00 67 7A 00 B2 [18:00:52]Write to MH i2c: 01 00 00 68 7A E2 [18:00:52]Write i2c OK [18:00:52]MH_I2C_Read... [18:00:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 1D D5 47 00 A0 F1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 CA DD 02 00 F4 03 04 00 C6 40 16 67 B6 04 01 00 00 EF 87 56 E4 19 DC FA 26 [18:00:52]CommunicateWithHost err = 0 [18:00:52]CheckOFDResponse [18:00:52]1017 (14) - 77093643461234 [18:00:52]1041 (16) - 0000000000965340 [18:00:52]1040 (4) - 187850 [18:00:52]1012 (4) - 21.10.2024 11:53 [18:00:52]1206 (1) - 0 [18:00:52]OFD Sender: Remove packet 187850 [18:00:52]ProducePacketName [18:00:52]name=ofd_packets/00187850 [18:00:52]NVStorageDeleteData [18:00:53]OFD Sender: No OFD packet to send [18:00:53]*** Cut start [18:00:53]*** Partial cut [18:00:53]*** CUTSNS_PIN = 1 [18:00:53]*** CUTSNS_PIN = 0 [18:00:54]*** Brake cut motor [18:00:54]Read from MH i2c: 01 [18:00:54]MH_I2C_Read... [18:00:54]*** Stop cut motor [18:00:54]*** Cut end [18:00:54]Read from MH i2c: 01 07 00 [18:00:54]MH_I2C_Read... [18:00:54]Read from MH i2c: 01 07 00 68 7A 00 00 00 00 00 FF 0F F7 [18:00:54]process_action close_receipt done [18:00:54]requested_data is exist [18:00:54]produce_requested_data [18:00:54]requested_item fm.sn is exist - process it [18:00:54]wFMCommunicate request_size=4 [18:00:54]MH_SAM_APDU [18:00:54]CAPDU: 80 11 00 00 [18:00:54]Write to MH i2c: E2 08 00 69 7A 80 11 00 00 00 00 00 00 5D [18:00:54]Write i2c OK [18:00:54]MH_I2C_Read... [18:00:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:00:54]Read from MH i2c: E2 [18:00:54]MH_I2C_Read... [18:00:54]Read from MH i2c: E2 17 00 [18:00:54]MH_I2C_Read... [18:00:54]Read from MH i2c: E2 17 00 69 7A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 AB [18:00:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [18:00:54]wFMCommunicate OK [18:00:54]requested_item fd.num is exist - process it [18:00:54]SAM_PROTO_GetFieldsCounters [18:00:54]wFMCommunicate request_size=4 [18:00:54]MH_SAM_APDU [18:00:54]CAPDU: 80 13 00 00 [18:00:54]Write to MH i2c: E2 08 00 6A 7A 80 13 00 00 00 00 00 00 60 [18:00:54]Write i2c OK [18:00:54]MH_I2C_Read... [18:00:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:00:54]Read from MH i2c: E2 [18:00:54]MH_I2C_Read... [18:00:54]Read from MH i2c: E2 62 00 [18:00:54]MH_I2C_Read... [18:00:54]Read from MH i2c: E2 62 00 6A 7A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 CA DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 3A 01 00 00 5E 04 04 00 3A 01 00 00 57 04 04 00 3B 01 00 00 19 04 04 00 00 00 00 00 90 00 8E [18:00:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 CA DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 3A 01 00 00 5E 04 04 00 3A 01 00 00 57 04 04 00 3B 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:00:54]wFMCommunicate OK [18:00:54]SAM_PROTO_GetFieldsCounters done [18:00:54]requested_item shift.num is exist - process it [18:00:54]requested_item shift.opened is exist - process it [18:00:54]req_shift_opened [18:00:54]FM_GetShiftState [18:00:54]SAM_PROTO_GetShiftState [18:00:54]wFMCommunicate request_size=4 [18:00:54]MH_SAM_APDU [18:00:54]CAPDU: 80 13 01 00 [18:00:54]Write to MH i2c: E2 08 00 6B 7A 80 13 01 00 00 00 00 00 62 [18:00:54]Write i2c OK [18:00:54]MH_I2C_Read... [18:00:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:00:54]Read from MH i2c: E2 [18:00:54]MH_I2C_Read... [18:00:54]Read from MH i2c: E2 0E 00 [18:00:54]MH_I2C_Read... [18:00:54]Read from MH i2c: E2 0E 00 6B 7A 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 C1 [18:00:54]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [18:00:54]wFMCommunicate OK [18:00:54]SAM_PROTO_GetShiftState done [18:00:54]FM_GetShiftState done [18:00:54]req_shift_opened done [18:00:54]requested_item shift.open_date is exist - process it [18:00:54]req_shift_open_date [18:00:54]req_shift_open_date done [18:00:54]produce_requested_data done [18:00:54]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187850,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [18:00:54]process_action_free close_receipt [18:00:54]json_value_free [18:00:54]json_value_free done [18:00:54]process_json_proto returns [18:00:54]Send response to host [18:00:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187850,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [18:00:54]free response buf [18:00:54]execute_script done [18:00:54]execute_script returns [18:00:54]free content buf [18:00:54]Sock 8.Close socket [18:00:54]Sock 8.Thread stoped [18:00:58]OFD Sender: No OFD packet to send [18:01:03]OFD Sender: No OFD packet to send [18:01:08]OFD Sender: No OFD packet to send [18:01:13]OFD Sender: No OFD packet to send [18:01:18]OFD Sender: No OFD packet to send [18:01:23]OFD Sender: No OFD packet to send [18:01:28]OFD Sender: No OFD packet to send [18:01:33]OFD Sender: No OFD packet to send [18:01:38]OFD Sender: No OFD packet to send [18:01:43]OFD Sender: No OFD packet to send [18:01:48]OFD Sender: No OFD packet to send [18:01:53]OFD Sender: No OFD packet to send [18:01:58]OFD Sender: No OFD packet to send [18:02:03]OFD Sender: No OFD packet to send [18:02:08]OFD Sender: No OFD packet to send [18:02:13]OFD Sender: No OFD packet to send [18:02:18]OFD Sender: No OFD packet to send [18:02:23]OFD Sender: No OFD packet to send [18:02:28]OFD Sender: No OFD packet to send [18:02:33]OFD Sender: No OFD packet to send [18:02:38]OFD Sender: No OFD packet to send [18:02:43]OFD Sender: No OFD packet to send [18:02:48]OFD Sender: No OFD packet to send [18:02:53]OFD Sender: No OFD packet to send [18:02:58]OFD Sender: No OFD packet to send [18:03:03]OFD Sender: No OFD packet to send [18:03:08]OFD Sender: No OFD packet to send [18:03:13]OFD Sender: No OFD packet to send [18:03:18]OFD Sender: No OFD packet to send [18:03:23]OFD Sender: No OFD packet to send [18:03:28]OFD Sender: No OFD packet to send [18:03:33]OFD Sender: No OFD packet to send [18:03:39]OFD Sender: No OFD packet to send [18:03:44]OFD Sender: No OFD packet to send [18:03:49]OFD Sender: No OFD packet to send [18:03:54]OFD Sender: No OFD packet to send [18:03:59]OFD Sender: No OFD packet to send [18:04:04]OFD Sender: No OFD packet to send [18:04:09]OFD Sender: No OFD packet to send [18:04:09]accept exits with 9 [18:04:09]New connection [18:04:09]New thread 3067014500 created [18:04:09]Thread 3067157860 joined [18:04:09]Waiting for new connection... [18:04:09] Sock 9.Parse request [18:04:09]Sock 9.Check first char [18:04:09]Sock 9.First char is OK [18:04:09]request: POST /json_proto HTTP/1.0 [18:04:09]Method: POST [18:04:09]URL: /json_proto [18:04:09]Method is POST - this is cgi request [18:04:09]url: /json_proto [18:04:09]query_string will be loaded in cgi processing [18:04:09]execute_cgi json_proto POST (null) [18:04:09]execute_cgi path=json_proto method=POST [18:04:09]POST find Content-Length [18:04:09]Host: 172.17.42.131:8080 [18:04:09]Content-Length: 677 [18:04:09]Content-Type: application/json [18:04:09] [18:04:09]POST finish read [18:04:09]Found Content-Length = 677 [18:04:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209903", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "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:04:09]execute_script... [18:04: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)209903", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "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:04:09]POST & json_proto [18:04:09]process_json_proto [18:04:09]json parsed OK: [18:04:09]protocol is kg_v1.0 [18:04:09]action value=close_receipt [18:04:09]process_action close_receipt [18:04:09]cmd_close_receipt [18:04:09]MH_GetDate [18:04:09]Write to MH i2c: F0 00 00 6C 7A D5 [18:04:09]Write i2c OK [18:04:09]MH_I2C_Read... [18:04:09]Read from MH i2c: F0 [18:04:09]MH_I2C_Read... [18:04:09]Read from MH i2c: F0 09 00 [18:04:09]MH_I2C_Read... [18:04:09]Read from MH i2c: F0 09 00 6C 7A 00 9E 97 16 67 A0 18 CA 66 78 [18:04:09]GetLastDocTimeStamp 1729533655 [18:04:09]current date 1729533854 [18:04:09]FM_GetShiftState [18:04:09]SAM_PROTO_GetShiftState [18:04:09]wFMCommunicate request_size=4 [18:04:09]MH_SAM_APDU [18:04:09]CAPDU: 80 13 01 00 [18:04:09]Write to MH i2c: E2 08 00 6D 7A 80 13 01 00 00 00 00 00 64 [18:04:09]Write i2c OK [18:04:09]MH_I2C_Read... [18:04:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:04:09]Read from MH i2c: E2 [18:04:09]MH_I2C_Read... [18:04:09]Read from MH i2c: E2 0E 00 [18:04:09]MH_I2C_Read... [18:04:09]Read from MH i2c: E2 0E 00 6D 7A 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 C3 [18:04:09]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [18:04:09]wFMCommunicate OK [18:04:09]SAM_PROTO_GetShiftState done [18:04:09]FM_GetShiftState done [18:04:09]opened in 1729469754 [18:04:09]opened+sec_in_day 1729556154 [18:04:09]quantity*price = 50041 [18:04:09]sum+1 = 50042 [18:04:09]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 315 21.10.2024 18:04 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 187851 ФПД: 143385733389509 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T180414&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187851&fm=143385733389509&tin=02508201610067®Number=0000000000100030&sum=50000 [18:04:10]StoreToDocumentArchive [18:04:10]shift 460 fd 187851 [18:04:10]save to /storage/0460/doc_00187851 [18:04:10]save last doc name /storage/0460/doc_00187851 to /storage/kkm_last_doc_name [18:04:10]save OK [18:04:10]Clear old archive folders... [18:04:10]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:04:10]tlvbuf is B6F87BC0 [18:04:10]SAM_PROTO_ClearQueue [18:04:10]wFMCommunicate request_size=4 [18:04:10]MH_SAM_APDU [18:04:10]CAPDU: 80 09 00 00 [18:04:10]Write to MH i2c: E2 08 00 7A 7A 80 09 00 00 00 00 00 00 66 [18:04:10]Write i2c OK [18:04:10]MH_I2C_Read... [18:04:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:04:10]Read from MH i2c: E2 [18:04:10]MH_I2C_Read... [18:04:10]Read from MH i2c: E2 03 00 [18:04:10]MH_I2C_Read... [18:04:10]Read from MH i2c: E2 03 00 7A 7A 00 90 00 68 [18:04:10]RAPDU: 90 00 [18:04:10]wFMCommunicate OK [18:04:10]SAM_PROTO_ClearQueue done [18:04:10]KKMCreateOFDPacket [18:04:10]OFDProtocolAddRootSTLVToBuf [18:04:10]FM_MakeSignedData [18:04:10]FM_MakeSignedData [18:04:10]SAM_PROTO_SignData [18:04:10]wFMCommunicate request_size=4 [18:04:10]MH_SAM_APDU [18:04:10]CAPDU: 80 0D 01 02 [18:04:10]Write to MH i2c: E2 08 00 7B 7A 80 0D 01 02 00 00 00 00 6E [18:04:10]Write i2c OK [18:04:10]MH_I2C_Read... [18:04:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:04:10]Read from MH i2c: E2 [18:04:10]MH_I2C_Read... [18:04:10]Read from MH i2c: E2 03 00 [18:04:10]MH_I2C_Read... [18:04:10]Read from MH i2c: E2 03 00 7B 7A 00 90 00 69 [18:04:10]RAPDU: 90 00 [18:04:10]wFMCommunicate OK [18:04:10]wFMCommunicate request_size=255 [18:04:10]MH_SAM_APDU [18:04: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 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 01 00 00 F4 03 04 00 9E 97 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 CB DD 02 00 35 04 06 00 82 [18:04:10]Write to MH i2c: E2 02 01 7C 7A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 01 00 00 F4 03 04 00 9E 97 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 CB DD 02 00 35 04 06 00 82 00 00 C8 [18:04:10]Write i2c OK [18:04:10]MH_I2C_Read... [18:04:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:04:11]Read from MH i2c: E2 [18:04:11]MH_I2C_Read... [18:04:11]Read from MH i2c: E2 03 00 [18:04:11]MH_I2C_Read... [18:04:11]Read from MH i2c: E2 03 00 7C 7A 00 90 00 6A [18:04:11]RAPDU: 90 00 [18:04:11]wFMCommunicate OK [18:04:11]wFMCommunicate request_size=10 [18:04:11]MH_SAM_APDU [18:04:11]CAPDU: 80 0D 02 02 05 68 97 B4 5C C5 [18:04:11]Write to MH i2c: E2 0D 00 7D 7A 80 0D 02 02 05 00 68 97 B4 5C C5 00 00 4F [18:04:11]Write i2c OK [18:04:11]MH_I2C_Read... [18:04:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:04:11]Read from MH i2c: E2 [18:04:11]MH_I2C_Read... [18:04:11]Read from MH i2c: E2 03 00 [18:04:11]MH_I2C_Read... [18:04:11]Read from MH i2c: E2 03 00 7D 7A 00 90 00 6B [18:04:11]RAPDU: 90 00 [18:04:11]wFMCommunicate OK [18:04:11]wFMCommunicate request_size=4 [18:04:11]MH_SAM_APDU [18:04:11]CAPDU: 80 0D 03 02 [18:04:11]Write to MH i2c: E2 08 00 7E 7A 80 0D 03 02 00 00 00 00 73 [18:04:11]Write i2c OK [18:04:11]MH_I2C_Read... [18:04:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:04:11]Read from MH i2c: E2 [18:04:11]MH_I2C_Read... [18:04:11]Read from MH i2c: E2 0B 00 [18:04:11]MH_I2C_Read... [18:04:11]Read from MH i2c: E2 0B 00 7E 7A 00 74 68 4B 8C 9B BC 63 6D 90 00 4E [18:04:11]RAPDU: 74 68 4B 8C 9B BC 63 6D 90 00 [18:04:11]wFMCommunicate OK [18:04:11]SAM_PROTO_SignData done [18:04:11]FM_MakeSignedData done [18:04:11]CreateOFDProtocolMessage [18:04:11]wFMCommunicate request_size=4 [18:04:11]MH_SAM_APDU [18:04:11]CAPDU: 80 11 00 00 [18:04:11]Write to MH i2c: E2 08 00 7F 7A 80 11 00 00 00 00 00 00 73 [18:04:11]Write i2c OK [18:04:11]MH_I2C_Read... [18:04:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:04:11]Read from MH i2c: E2 [18:04:11]MH_I2C_Read... [18:04:11]Read from MH i2c: E2 17 00 [18:04:11]MH_I2C_Read... [18:04:11]Read from MH i2c: E2 17 00 7F 7A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 C1 [18:04:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [18:04:11]wFMCommunicate OK [18:04:11]CreateOFDProtocolMessage done [18:04:11]OFDSenderStorePacket 187851 [18:04:11]StoreOFDPacket docnum=187851 [18:04:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 7F 0C 07 01 95 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 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 01 00 00 F4 03 04 00 9E 97 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 CB DD 02 00 35 04 06 00 82 68 97 B4 5C C5 74 68 4B 8C 9B BC 63 6D [18:04:11]CheckFolder [18:04:11]dirname=/storage/ofd_packets [18:04:11]CheckFolder done [18:04:11]ProducePacketName [18:04:11]name=ofd_packets/00187851 [18:04:11]NVStorageSaveData ofd_packets/00187851 [18:04:11]File name is /storage/ofd_packets/00187851 [18:04:11]Write 301 bytes [18:04:11]NVStorageSaveData done [18:04:11]OFDSenderStorePacket done [18:04:11]KKMCreateOFDPacket done [18:04:11]NVStorageSaveData kkm_last_timestamp [18:04:11]File name is /storage/kkm_last_timestamp [18:04:11]Write 4 bytes [18:04:11]NVStorageSaveData done [18:04:11]ExternCall_PrintAddStr [18:04:11]wPrintStart [18:04:11]Write to MH i2c: 01 00 00 80 7A FA [18:04:11]Write i2c OK [18:04:11]MH_I2C_Read... [18:04:11]Read from MH i2c: 01 [18:04:11]MH_I2C_Read... [18:04:11]Read from MH i2c: 01 07 00 [18:04:11]MH_I2C_Read... [18:04:11]Read from MH i2c: 01 07 00 80 7A 00 00 00 00 00 FF 0F 0F [18:04:11]RasterBufferAndPrint [18:04:11]line Счет N : (1)209903 [18:04:11]line ИНН: 02508201610067 [18:04:11]line Контрольно-Кассовый Чек [18:04:11]line ПРОДАЖА [18:04:11]line ТРК (МРК, ГНК) : 22 [18:04:11]line Товар: 2710124130 [18:04:11]line Аи-92-К-3 [18:04:11]line 7.480 * 66.90 [18:04:11]line = 500.41 [18:04:11]line НДС 12% НСП 1% [18:04:11]line > о реализуемом товаре [18:04:11]line ОКРУГЛЕНИЕ: -0.41 [18:04:11]line ИТОГО: 500.00 [18:04:11]line Внесено: 500.00 [18:04:11]line СДАЧА: 0.00 [18:04:11]line НСП 1% : 4.43 [18:04:11]line НДС 12% : 53.14 [18:04:11]line Наличными: 500.00 [18:04:11]line Безнал.: 0.00 [18:04:11]line Место: АЗС № 86 "Партнер Нефть" [18:04:11]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [18:04:11]line СНО: Общий режим [18:04:11]line Чек 315 21.10.2024 18:04 [18:04:11]line Смена: 460 ФФД: 1.0 [18:04:11]line ЗНМ: 0300000155 [18:04:11]line РНМ: 0000000000100030 [18:04:11]line Версия ККМ: 001 [18:04:11]line ФМ: 0000000000965340 [18:04:11]line ФД: 187851 [18:04:11]line ФПД: 143385733389509 [18:04:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T180414&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187851&fm=143385733389509&tin=02508201610067®Number=0000000000100030&sum=50000 [18:04:11]written 0, free lines is 4095 [18:04:11]OFD Sender: Processing packet 187851 [packets to send 1062, broken 1061] [18:04:11]ProducePacketName [18:04:11]name=ofd_packets/00187851 [18:04:11]OFD Sender: To server: pG, [18:04:11]CommunicateWithHost lk.salyk.kg:30040 [18:04:11]ConnectInit lk.salyk.kg [18:04:11]Connected sock=10 [18:04:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 7F 0C 07 01 95 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 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 01 00 00 F4 03 04 00 9E 97 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 CB DD 02 00 35 04 06 00 82 68 97 B4 5C C5 74 68 4B 8C 9B BC 63 6D [18:04:11]Write to MH i2c: 01 00 00 AB 7A 25 [18:04:11]Write i2c OK [18:04:11]MH_I2C_Read... [18:04:11]Read from MH i2c: 01 [18:04:11]MH_I2C_Read... [18:04:11]Read from MH i2c: 01 07 00 [18:04:11]MH_I2C_Read... [18:04:11]Read from MH i2c: 01 07 00 AB 7A 00 00 00 00 00 5E 0C 96 [18:04:11]RasterBufferAndPrint [18:04:11]line [18:04:11]line [18:04:11]line [18:04:11]line [18:04:11]line [18:04:11]written 0, free lines is 3170 [18:04:11]MH_Cut [18:04:11]Write to MH i2c: D1 01 00 B2 7A 01 FE [18:04:11]Write i2c OK [18:04:11]MH_I2C_Read... [18:04:11]Read from MH i2c: D1 [18:04:11]MH_I2C_Read... [18:04:11]Read from MH i2c: D1 01 00 [18:04:11]MH_I2C_Read... [18:04:11]Read from MH i2c: D1 01 00 B2 7A 00 FD [18:04:11]Write to MH i2c: 01 00 00 B3 7A 2D [18:04:11]Write i2c OK [18:04:11]MH_I2C_Read... [18:04:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 35 75 47 00 7F 19 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 CB DD 02 00 F4 03 04 00 8E 41 16 67 B6 04 01 00 00 80 64 93 8D 68 F6 E2 4D [18:04:12]CommunicateWithHost err = 0 [18:04:12]CheckOFDResponse [18:04:12]1017 (14) - 77093643461234 [18:04:12]1041 (16) - 0000000000965340 [18:04:12]1040 (4) - 187851 [18:04:12]1012 (4) - 21.10.2024 11:57 [18:04:12]1206 (1) - 0 [18:04:12]OFD Sender: Remove packet 187851 [18:04:12]ProducePacketName [18:04:12]name=ofd_packets/00187851 [18:04:12]NVStorageDeleteData [18:04:12]OFD Sender: No OFD packet to send [18:04:13]*** Cut start [18:04:13]*** Partial cut [18:04:13]*** CUTSNS_PIN = 1 [18:04:13]*** CUTSNS_PIN = 0 [18:04:13]*** Brake cut motor [18:04:13]Read from MH i2c: 01 [18:04:13]MH_I2C_Read... [18:04:13]*** Stop cut motor [18:04:13]*** Cut end [18:04:13]Read from MH i2c: 01 07 00 [18:04:13]MH_I2C_Read... [18:04:13]Read from MH i2c: 01 07 00 B3 7A 00 00 00 00 00 FF 0F 42 [18:04:13]process_action close_receipt done [18:04:13]requested_data is exist [18:04:13]produce_requested_data [18:04:13]requested_item fm.sn is exist - process it [18:04:13]wFMCommunicate request_size=4 [18:04:13]MH_SAM_APDU [18:04:13]CAPDU: 80 11 00 00 [18:04:13]Write to MH i2c: E2 08 00 B4 7A 80 11 00 00 00 00 00 00 A8 [18:04:13]Write i2c OK [18:04:13]MH_I2C_Read... [18:04:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:04:13]Read from MH i2c: E2 [18:04:13]MH_I2C_Read... [18:04:13]Read from MH i2c: E2 17 00 [18:04:13]MH_I2C_Read... [18:04:13]Read from MH i2c: E2 17 00 B4 7A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 F6 [18:04:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [18:04:13]wFMCommunicate OK [18:04:13]requested_item fd.num is exist - process it [18:04:13]SAM_PROTO_GetFieldsCounters [18:04:13]wFMCommunicate request_size=4 [18:04:13]MH_SAM_APDU [18:04:13]CAPDU: 80 13 00 00 [18:04:13]Write to MH i2c: E2 08 00 B5 7A 80 13 00 00 00 00 00 00 AB [18:04:13]Write i2c OK [18:04:13]MH_I2C_Read... [18:04:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:04:13]Read from MH i2c: E2 [18:04:13]MH_I2C_Read... [18:04:13]Read from MH i2c: E2 62 00 [18:04:13]MH_I2C_Read... [18:04:13]Read from MH i2c: E2 62 00 B5 7A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 CB DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 3B 01 00 00 5E 04 04 00 3B 01 00 00 57 04 04 00 3C 01 00 00 19 04 04 00 00 00 00 00 90 00 DD [18:04:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 CB DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 3B 01 00 00 5E 04 04 00 3B 01 00 00 57 04 04 00 3C 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:04:13]wFMCommunicate OK [18:04:13]SAM_PROTO_GetFieldsCounters done [18:04:13]requested_item shift.num is exist - process it [18:04:13]requested_item shift.opened is exist - process it [18:04:13]req_shift_opened [18:04:13]FM_GetShiftState [18:04:13]SAM_PROTO_GetShiftState [18:04:13]wFMCommunicate request_size=4 [18:04:13]MH_SAM_APDU [18:04:13]CAPDU: 80 13 01 00 [18:04:13]Write to MH i2c: E2 08 00 B6 7A 80 13 01 00 00 00 00 00 AD [18:04:13]Write i2c OK [18:04:13]MH_I2C_Read... [18:04:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:04:13]Read from MH i2c: E2 [18:04:13]MH_I2C_Read... [18:04:13]Read from MH i2c: E2 0E 00 [18:04:13]MH_I2C_Read... [18:04:13]Read from MH i2c: E2 0E 00 B6 7A 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 0C [18:04:13]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [18:04:13]wFMCommunicate OK [18:04:13]SAM_PROTO_GetShiftState done [18:04:13]FM_GetShiftState done [18:04:13]req_shift_opened done [18:04:13]requested_item shift.open_date is exist - process it [18:04:13]req_shift_open_date [18:04:13]req_shift_open_date done [18:04:13]produce_requested_data done [18:04:13]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187851,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [18:04:13]process_action_free close_receipt [18:04:13]json_value_free [18:04:13]json_value_free done [18:04:13]process_json_proto returns [18:04:13]Send response to host [18:04:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187851,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [18:04:13]free response buf [18:04:13]execute_script done [18:04:13]execute_script returns [18:04:13]free content buf [18:04:13]Sock 9.Close socket [18:04:13]Sock 9.Thread stoped [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:03]OFD Sender: No OFD packet to send [18:06:08]OFD Sender: No OFD packet to send [18:06:13]OFD Sender: No OFD packet to send [18:06:18]OFD Sender: No OFD packet to send [18:06:23]OFD Sender: No OFD packet to send [18:06:28]OFD Sender: No OFD packet to send [18:06:33]OFD Sender: No OFD packet to send [18:06:38]OFD Sender: No OFD packet to send [18:06:43]OFD Sender: No OFD packet to send [18:06:48]OFD Sender: No OFD packet to send [18:06:53]OFD Sender: No OFD packet to send [18:06:58]OFD Sender: No OFD packet to send [18:07:03]OFD Sender: No OFD packet to send [18:07:08]OFD Sender: No OFD packet to send [18:07:13]OFD Sender: No OFD packet to send [18:07:14]accept exits with 8 [18:07:14]New connection [18:07:14]New thread 3067157860 created [18:07:14]Thread 3067014500 joined [18:07:14]Waiting for new connection... [18:07:14] Sock 8.Parse request [18:07:14]Sock 8.Check first char [18:07:14]Sock 8.First char is OK [18:07:14]request: POST /json_proto HTTP/1.0 [18:07:14]Method: POST [18:07:14]URL: /json_proto [18:07:14]Method is POST - this is cgi request [18:07:14]url: /json_proto [18:07:14]query_string will be loaded in cgi processing [18:07:14]execute_cgi json_proto POST (null) [18:07:14]execute_cgi path=json_proto method=POST [18:07:14]POST find Content-Length [18:07:14]Host: 172.17.42.131:8080 [18:07:14]Content-Length: 679 [18:07:14]Content-Type: application/json [18:07:14] [18:07:14]POST finish read [18:07:14]Found Content-Length = 679 [18:07:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209904", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:07:14]execute_script... [18:07: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)209904", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:07:14]POST & json_proto [18:07:14]process_json_proto [18:07:14]json parsed OK: [18:07:14]protocol is kg_v1.0 [18:07:14]action value=close_receipt [18:07:14]process_action close_receipt [18:07:14]cmd_close_receipt [18:07:14]MH_GetDate [18:07:14]Write to MH i2c: F0 00 00 B7 7A 20 [18:07:14]Write i2c OK [18:07:14]MH_I2C_Read... [18:07:14]Read from MH i2c: F0 [18:07:14]MH_I2C_Read... [18:07:14]Read from MH i2c: F0 09 00 [18:07:14]MH_I2C_Read... [18:07:14]Read from MH i2c: F0 09 00 B7 7A 00 58 98 16 67 A0 18 CA 66 7E [18:07:14]GetLastDocTimeStamp 1729533854 [18:07:14]current date 1729534040 [18:07:14]FM_GetShiftState [18:07:14]SAM_PROTO_GetShiftState [18:07:14]wFMCommunicate request_size=4 [18:07:14]MH_SAM_APDU [18:07:14]CAPDU: 80 13 01 00 [18:07:14]Write to MH i2c: E2 08 00 B8 7A 80 13 01 00 00 00 00 00 AF [18:07:14]Write i2c OK [18:07:14]MH_I2C_Read... [18:07:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:07:14]Read from MH i2c: E2 [18:07:14]MH_I2C_Read... [18:07:14]Read from MH i2c: E2 0E 00 [18:07:14]MH_I2C_Read... [18:07:14]Read from MH i2c: E2 0E 00 B8 7A 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 0E [18:07:14]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [18:07:14]wFMCommunicate OK [18:07:14]SAM_PROTO_GetShiftState done [18:07:14]FM_GetShiftState done [18:07:14]opened in 1729469754 [18:07:14]opened+sec_in_day 1729556154 [18:07:14]quantity*price = 100050 [18:07:14]sum+1 = 100052 [18:07:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 316 21.10.2024 18:07 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 187852 ФПД: 175948014362184 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T180720&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187852&fm=175948014362184&tin=02508201610067®Number=0000000000100030&sum=100000 [18:07:15]StoreToDocumentArchive [18:07:15]shift 460 fd 187852 [18:07:15]save to /storage/0460/doc_00187852 [18:07:15]save last doc name /storage/0460/doc_00187852 to /storage/kkm_last_doc_name [18:07:15]save OK [18:07:15]Clear old archive folders... [18:07:15]ProcessDocumentItem done err = 0, tmpTLVsize=248 [18:07:15]tlvbuf is 012936B0 [18:07:15]SAM_PROTO_ClearQueue [18:07:15]wFMCommunicate request_size=4 [18:07:15]MH_SAM_APDU [18:07:15]CAPDU: 80 09 00 00 [18:07:15]Write to MH i2c: E2 08 00 C5 7A 80 09 00 00 00 00 00 00 B1 [18:07:15]Write i2c OK [18:07:15]MH_I2C_Read... [18:07:16]Read from MH i2c: E2 [18:07:16]MH_I2C_Read... [18:07:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:07:16]Read from MH i2c: E2 03 00 [18:07:16]MH_I2C_Read... [18:07:16]Read from MH i2c: E2 03 00 C5 7A 00 90 00 B3 [18:07:16]RAPDU: 90 00 [18:07:16]wFMCommunicate OK [18:07:16]SAM_PROTO_ClearQueue done [18:07:16]KKMCreateOFDPacket [18:07:16]OFDProtocolAddRootSTLVToBuf [18:07:16]FM_MakeSignedData [18:07:16]FM_MakeSignedData [18:07:16]SAM_PROTO_SignData [18:07:16]wFMCommunicate request_size=4 [18:07:16]MH_SAM_APDU [18:07:16]CAPDU: 80 0D 01 02 [18:07:16]Write to MH i2c: E2 08 00 C6 7A 80 0D 01 02 00 00 00 00 B9 [18:07:16]Write i2c OK [18:07:16]MH_I2C_Read... [18:07:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:07:16]Read from MH i2c: E2 [18:07:16]MH_I2C_Read... [18:07:16]Read from MH i2c: E2 03 00 [18:07:16]MH_I2C_Read... [18:07:16]Read from MH i2c: E2 03 00 C6 7A 00 90 00 B4 [18:07:16]RAPDU: 90 00 [18:07:16]wFMCommunicate OK [18:07:16]wFMCommunicate request_size=255 [18:07:16]MH_SAM_APDU [18:07:16]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 3C 01 00 00 F4 03 04 00 58 98 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 CC DD 02 00 35 04 06 00 A0 06 16 E5 [18:07:16]Write to MH i2c: E2 02 01 C7 7A 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 01 00 00 F4 03 04 00 58 98 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 CC DD 02 00 35 04 06 00 A0 06 16 E5 00 00 E7 [18:07:16]Write i2c OK [18:07:16]MH_I2C_Read... [18:07:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:07:16]Read from MH i2c: E2 [18:07:16]MH_I2C_Read... [18:07:16]Read from MH i2c: E2 03 00 [18:07:16]MH_I2C_Read... [18:07:16]Read from MH i2c: E2 03 00 C7 7A 00 90 00 B5 [18:07:16]RAPDU: 90 00 [18:07:16]wFMCommunicate OK [18:07:16]wFMCommunicate request_size=7 [18:07:16]MH_SAM_APDU [18:07:16]CAPDU: 80 0D 02 02 02 1E 48 [18:07:16]Write to MH i2c: E2 0A 00 C8 7A 80 0D 02 02 02 00 1E 48 00 00 26 [18:07:16]Write i2c OK [18:07:16]MH_I2C_Read... [18:07:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:07:16]Read from MH i2c: E2 [18:07:16]MH_I2C_Read... [18:07:16]Read from MH i2c: E2 03 00 [18:07:16]MH_I2C_Read... [18:07:16]Read from MH i2c: E2 03 00 C8 7A 00 90 00 B6 [18:07:16]RAPDU: 90 00 [18:07:16]wFMCommunicate OK [18:07:16]wFMCommunicate request_size=4 [18:07:16]MH_SAM_APDU [18:07:16]CAPDU: 80 0D 03 02 [18:07:16]Write to MH i2c: E2 08 00 C9 7A 80 0D 03 02 00 00 00 00 BE [18:07:16]Write i2c OK [18:07:16]MH_I2C_Read... [18:07:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:07:16]Read from MH i2c: E2 [18:07:16]MH_I2C_Read... [18:07:16]Read from MH i2c: E2 0B 00 [18:07:16]MH_I2C_Read... [18:07:16]Read from MH i2c: E2 0B 00 C9 7A 00 B9 59 16 B6 7A 8D B5 1B 90 00 74 [18:07:16]RAPDU: B9 59 16 B6 7A 8D B5 1B 90 00 [18:07:16]wFMCommunicate OK [18:07:16]SAM_PROTO_SignData done [18:07:16]FM_MakeSignedData done [18:07:16]CreateOFDProtocolMessage [18:07:16]wFMCommunicate request_size=4 [18:07:16]MH_SAM_APDU [18:07:16]CAPDU: 80 11 00 00 [18:07:16]Write to MH i2c: E2 08 00 CA 7A 80 11 00 00 00 00 00 00 BE [18:07:16]Write i2c OK [18:07:16]MH_I2C_Read... [18:07:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:07:16]Read from MH i2c: E2 [18:07:16]MH_I2C_Read... [18:07:16]Read from MH i2c: E2 17 00 [18:07:16]MH_I2C_Read... [18:07:16]Read from MH i2c: E2 17 00 CA 7A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 0C [18:07:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [18:07:16]wFMCommunicate OK [18:07:16]CreateOFDProtocolMessage done [18:07:16]OFDSenderStorePacket 187852 [18:07:16]StoreOFDPacket docnum=187852 [18:07:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 CE AA 04 01 D5 B1 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 3C 01 00 00 F4 03 04 00 58 98 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 CC DD 02 00 35 04 06 00 A0 06 16 E5 1E 48 B9 59 16 B6 7A 8D B5 1B [18:07:16]CheckFolder [18:07:16]dirname=/storage/ofd_packets [18:07:16]CheckFolder done [18:07:16]ProducePacketName [18:07:16]name=ofd_packets/00187852 [18:07:16]NVStorageSaveData ofd_packets/00187852 [18:07:16]File name is /storage/ofd_packets/00187852 [18:07:16]Write 298 bytes [18:07:16]NVStorageSaveData done [18:07:16]OFDSenderStorePacket done [18:07:16]KKMCreateOFDPacket done [18:07:16]NVStorageSaveData kkm_last_timestamp [18:07:16]File name is /storage/kkm_last_timestamp [18:07:16]Write 4 bytes [18:07:16]NVStorageSaveData done [18:07:16]ExternCall_PrintAddStr [18:07:16]wPrintStart [18:07:16]Write to MH i2c: 01 00 00 CB 7A 45 [18:07:16]Write i2c OK [18:07:16]MH_I2C_Read... [18:07:16]Read from MH i2c: 01 [18:07:16]MH_I2C_Read... [18:07:16]Read from MH i2c: 01 07 00 [18:07:16]MH_I2C_Read... [18:07:16]Read from MH i2c: 01 07 00 CB 7A 00 00 00 00 00 FF 0F 5A [18:07:16]RasterBufferAndPrint [18:07:16]line Счет N : (1)209904 [18:07:16]line ИНН: 02508201610067 [18:07:16]line Контрольно-Кассовый Чек [18:07:16]line ПРОДАЖА [18:07:16]line ТРК (МРК, ГНК) : 51 [18:07:16]line Товар: 2710194210 [18:07:16]line ДТ-К-5 [18:07:16]line 13.130 * 76.20 [18:07:16]line = 1000.51 [18:07:16]line НДС 12% НСП 1% [18:07:16]line > о реализуемом товаре [18:07:16]line ОКРУГЛЕНИЕ: -0.51 [18:07:16]line ИТОГО: 1000.00 [18:07:16]line Внесено: 1000.00 [18:07:16]line СДАЧА: 0.00 [18:07:16]line НСП 1% : 8.85 [18:07:16]line НДС 12% : 106.25 [18:07:16]line Наличными: 1000.00 [18:07:16]line Безнал.: 0.00 [18:07:16]line Место: АЗС № 86 "Партнер Нефть" [18:07:16]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [18:07:16]line СНО: Общий режим [18:07:16]line Чек 316 21.10.2024 18:07 [18:07:16]line Смена: 460 ФФД: 1.0 [18:07:16]line ЗНМ: 0300000155 [18:07:16]line РНМ: 0000000000100030 [18:07:16]line Версия ККМ: 001 [18:07:16]line ФМ: 0000000000965340 [18:07:16]line ФД: 187852 [18:07:16]line ФПД: 175948014362184 [18:07:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T180720&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187852&fm=175948014362184&tin=02508201610067®Number=0000000000100030&sum=100000 [18:07:16]OFD Sender: Processing packet 187852 [packets to send 1062, broken 1061] [18:07:16]ProducePacketName [18:07:16]name=ofd_packets/00187852 [18:07:16]OFD Sender: To server: pG, [18:07:16]CommunicateWithHost lk.salyk.kg:30040 [18:07:16]ConnectInit lk.salyk.kg [18:07:16]written 0, free lines is 4095 [18:07:17]Connected sock=10 [18:07:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 CE AA 04 01 D5 B1 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 3C 01 00 00 F4 03 04 00 58 98 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 CC DD 02 00 35 04 06 00 A0 06 16 E5 1E 48 B9 59 16 B6 7A 8D B5 1B [18:07:17]Write to MH i2c: 01 00 00 F6 7A 70 [18:07:17]Write i2c OK [18:07:17]MH_I2C_Read... [18:07:17]Read from MH i2c: 01 [18:07:17]MH_I2C_Read... [18:07:17]Read from MH i2c: 01 07 00 [18:07:17]MH_I2C_Read... [18:07:17]Read from MH i2c: 01 07 00 F6 7A 00 00 00 00 00 61 0C E4 [18:07:17]RasterBufferAndPrint [18:07:17]line [18:07:17]line [18:07:17]line [18:07:17]line [18:07:17]line [18:07:17]written 0, free lines is 3173 [18:07:17]MH_Cut [18:07:17]Write to MH i2c: D1 01 00 FD 7A 01 49 [18:07:17]Write i2c OK [18:07:17]MH_I2C_Read... [18:07:17]Read from MH i2c: D1 [18:07:17]MH_I2C_Read... [18:07:17]Read from MH i2c: D1 01 00 [18:07:17]MH_I2C_Read... [18:07:17]Read from MH i2c: D1 01 00 FD 7A 00 48 [18:07:17]Write to MH i2c: 01 00 00 FE 7A 78 [18:07:17]Write i2c OK [18:07:17]MH_I2C_Read... [18:07:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 0E 41 47 00 DD 2F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 CC DD 02 00 F4 03 04 00 47 42 16 67 B6 04 01 00 00 D0 7B 76 6D B9 35 BB 89 [18:07:17]CommunicateWithHost err = 0 [18:07:17]CheckOFDResponse [18:07:17]1017 (14) - 77093643461234 [18:07:17]1041 (16) - 0000000000965340 [18:07:17]1040 (4) - 187852 [18:07:17]1012 (4) - 21.10.2024 12:00 [18:07:17]1206 (1) - 0 [18:07:17]OFD Sender: Remove packet 187852 [18:07:17]ProducePacketName [18:07:17]name=ofd_packets/00187852 [18:07:17]NVStorageDeleteData [18:07:18]OFD Sender: No OFD packet to send [18:07:18]*** Cut start [18:07:18]*** Partial cut [18:07:18]*** CUTSNS_PIN = 1 [18:07:18]*** CUTSNS_PIN = 0 [18:07:18]*** Brake cut motor [18:07:19]Read from MH i2c: 01 [18:07:19]MH_I2C_Read... [18:07:19]*** Stop cut motor [18:07:19]*** Cut end [18:07:19]Read from MH i2c: 01 07 00 [18:07:19]MH_I2C_Read... [18:07:19]Read from MH i2c: 01 07 00 FE 7A 00 00 00 00 00 FF 0F 8D [18:07:19]process_action close_receipt done [18:07:19]requested_data is exist [18:07:19]produce_requested_data [18:07:19]requested_item fm.sn is exist - process it [18:07:19]wFMCommunicate request_size=4 [18:07:19]MH_SAM_APDU [18:07:19]CAPDU: 80 11 00 00 [18:07:19]Write to MH i2c: E2 08 00 FF 7A 80 11 00 00 00 00 00 00 F3 [18:07:19]Write i2c OK [18:07:19]MH_I2C_Read... [18:07:19]Read from MH i2c: E2 [18:07:19]MH_I2C_Read... [18:07:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:07:19]Read from MH i2c: E2 17 00 [18:07:19]MH_I2C_Read... [18:07:19]Read from MH i2c: E2 17 00 FF 7A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 41 [18:07:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [18:07:19]wFMCommunicate OK [18:07:19]requested_item fd.num is exist - process it [18:07:19]SAM_PROTO_GetFieldsCounters [18:07:19]wFMCommunicate request_size=4 [18:07:19]MH_SAM_APDU [18:07:19]CAPDU: 80 13 00 00 [18:07:19]Write to MH i2c: E2 08 00 00 7B 80 13 00 00 00 00 00 00 F7 [18:07:19]Write i2c OK [18:07:19]MH_I2C_Read... [18:07:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:07:19]Read from MH i2c: E2 [18:07:19]MH_I2C_Read... [18:07:19]Read from MH i2c: E2 62 00 [18:07:19]MH_I2C_Read... [18:07:19]Read from MH i2c: E2 62 00 00 7B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 CC DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 3C 01 00 00 5E 04 04 00 3C 01 00 00 57 04 04 00 3D 01 00 00 19 04 04 00 00 00 00 00 90 00 2D [18:07:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 CC DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 3C 01 00 00 5E 04 04 00 3C 01 00 00 57 04 04 00 3D 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:07:19]wFMCommunicate OK [18:07:19]SAM_PROTO_GetFieldsCounters done [18:07:19]requested_item shift.num is exist - process it [18:07:19]requested_item shift.opened is exist - process it [18:07:19]req_shift_opened [18:07:19]FM_GetShiftState [18:07:19]SAM_PROTO_GetShiftState [18:07:19]wFMCommunicate request_size=4 [18:07:19]MH_SAM_APDU [18:07:19]CAPDU: 80 13 01 00 [18:07:19]Write to MH i2c: E2 08 00 01 7B 80 13 01 00 00 00 00 00 F9 [18:07:19]Write i2c OK [18:07:19]MH_I2C_Read... [18:07:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:07:19]Read from MH i2c: E2 [18:07:19]MH_I2C_Read... [18:07:19]Read from MH i2c: E2 0E 00 [18:07:19]MH_I2C_Read... [18:07:19]Read from MH i2c: E2 0E 00 01 7B 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 58 [18:07:19]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [18:07:19]wFMCommunicate OK [18:07:19]SAM_PROTO_GetShiftState done [18:07:19]FM_GetShiftState done [18:07:19]req_shift_opened done [18:07:19]requested_item shift.open_date is exist - process it [18:07:19]req_shift_open_date [18:07:19]req_shift_open_date done [18:07:19]produce_requested_data done [18:07:19]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187852,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [18:07:19]process_action_free close_receipt [18:07:19]json_value_free [18:07:19]json_value_free done [18:07:19]process_json_proto returns [18:07:19]Send response to host [18:07:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187852,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [18:07:19]free response buf [18:07:19]execute_script done [18:07:19]execute_script returns [18:07:19]free content buf [18:07:19]Sock 8.Close socket [18:07:19]Sock 8.Thread stoped [18:07:23]OFD Sender: No OFD packet to send [18:07:28]OFD Sender: No OFD packet to send [18:07:33]OFD Sender: No OFD packet to send [18:07:38]OFD Sender: No OFD packet to send [18:07:43]OFD Sender: No OFD packet to send [18:07:48]OFD Sender: No OFD packet to send [18:07:53]OFD Sender: No OFD packet to send [18:07:58]OFD Sender: No OFD packet to send [18:08:03]OFD Sender: No OFD packet to send [18:08:08]OFD Sender: No OFD packet to send [18:08:13]OFD Sender: No OFD packet to send [18:08:18]OFD Sender: No OFD packet to send [18:08:23]OFD Sender: No OFD packet to send [18:08:28]OFD Sender: No OFD packet to send [18:08:33]OFD Sender: No OFD packet to send [18:08:38]OFD Sender: No OFD packet to send [18:08:43]OFD Sender: No OFD packet to send [18:08:48]OFD Sender: No OFD packet to send [18:08:53]OFD Sender: No OFD packet to send [18:08:58]OFD Sender: No OFD packet to send [18:09:03]OFD Sender: No OFD packet to send [18:09:08]OFD Sender: No OFD packet to send [18:09:13]OFD Sender: No OFD packet to send [18:09:18]OFD Sender: No OFD packet to send [18:09:23]OFD Sender: No OFD packet to send [18:09:28]OFD Sender: No OFD packet to send [18:09:33]OFD Sender: No OFD packet to send [18:09:38]OFD Sender: No OFD packet to send [18:09:43]OFD Sender: No OFD packet to send [18:09:48]OFD Sender: No OFD packet to send [18:09:53]OFD Sender: No OFD packet to send [18:09:58]OFD Sender: No OFD packet to send [18:10:03]OFD Sender: No OFD packet to send [18:10:08]OFD Sender: No OFD packet to send [18:10:13]OFD Sender: No OFD packet to send [18:10:18]OFD Sender: No OFD packet to send [18:10:23]OFD Sender: No OFD packet to send [18:10:28]OFD Sender: No OFD packet to send [18:10:33]OFD Sender: No OFD packet to send [18:10:38]OFD Sender: No OFD packet to send [18:10:43]OFD Sender: No OFD packet to send [18:10:48]OFD Sender: No OFD packet to send [18:10:53]OFD Sender: No OFD packet to send [18:10:58]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:41]accept exits with 9 [18:11:41]New connection [18:11:41]New thread 3067014500 created [18:11:41]Thread 3067157860 joined [18:11:41]Waiting for new connection... [18:11:41] Sock 9.Parse request [18:11:41]Sock 9.Check first char [18:11:41]Sock 9.First char is OK [18:11:41]request: POST /json_proto HTTP/1.0 [18:11:41]Method: POST [18:11:41]URL: /json_proto [18:11:41]Method is POST - this is cgi request [18:11:41]url: /json_proto [18:11:41]query_string will be loaded in cgi processing [18:11:41]execute_cgi json_proto POST (null) [18:11:41]execute_cgi path=json_proto method=POST [18:11:41]POST find Content-Length [18:11:41]Host: 172.17.42.131:8080 [18:11:41]Content-Length: 769 [18:11:41]Content-Type: application/json [18:11:41] [18:11:41]POST finish read [18:11:41]Found Content-Length = 769 [18:11:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209905", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:11:41]execute_script... [18:11: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)209905", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:11:41]POST & json_proto [18:11:41]process_json_proto [18:11:41]json parsed OK: [18:11:41]protocol is kg_v1.0 [18:11:41]action value=close_receipt [18:11:41]process_action close_receipt [18:11:41]cmd_close_receipt [18:11:41]MH_GetDate [18:11:41]Write to MH i2c: F0 00 00 02 7B 6C [18:11:41]Write i2c OK [18:11:41]MH_I2C_Read... [18:11:41]Read from MH i2c: F0 [18:11:41]MH_I2C_Read... [18:11:41]Read from MH i2c: F0 09 00 [18:11:41]MH_I2C_Read... [18:11:41]Read from MH i2c: F0 09 00 02 7B 00 63 99 16 67 A0 18 CA 66 D6 [18:11:41]GetLastDocTimeStamp 1729534040 [18:11:41]current date 1729534307 [18:11:41]FM_GetShiftState [18:11:41]SAM_PROTO_GetShiftState [18:11:41]wFMCommunicate request_size=4 [18:11:41]MH_SAM_APDU [18:11:41]CAPDU: 80 13 01 00 [18:11:41]Write to MH i2c: E2 08 00 03 7B 80 13 01 00 00 00 00 00 FB [18:11:41]Write i2c OK [18:11:41]MH_I2C_Read... [18:11:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:11:41]Read from MH i2c: E2 [18:11:41]MH_I2C_Read... [18:11:41]Read from MH i2c: E2 0E 00 [18:11:41]MH_I2C_Read... [18:11:41]Read from MH i2c: E2 0E 00 03 7B 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 5A [18:11:41]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [18:11:41]wFMCommunicate OK [18:11:41]SAM_PROTO_GetShiftState done [18:11:41]FM_GetShiftState done [18:11:41]opened in 1729469754 [18:11:41]opened+sec_in_day 1729556154 [18:11:41]quantity*price = 100015 [18:11:41]sum+1 = 100017 [18:11:41]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.16 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 0.00 Безнал.: 1000.16 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 317 21.10.2024 18:11 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000965340 ФД: 187853 ФПД: 222188276251100 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T181147&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187853&fm=222188276251100&tin=02508201610067®Number=0000000000100030&sum=100016 [18:11:43]StoreToDocumentArchive [18:11:43]shift 460 fd 187853 [18:11:43]save to /storage/0460/doc_00187853 [18:11:43]save last doc name /storage/0460/doc_00187853 to /storage/kkm_last_doc_name [18:11:43]save OK [18:11:43]Clear old archive folders... [18:11:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:11:43]tlvbuf is 010A0890 [18:11:43]SAM_PROTO_ClearQueue [18:11:43]wFMCommunicate request_size=4 [18:11:43]MH_SAM_APDU [18:11:43]CAPDU: 80 09 00 00 [18:11:43]Write to MH i2c: E2 08 00 10 7B 80 09 00 00 00 00 00 00 FD [18:11:43]Write i2c OK [18:11:43]MH_I2C_Read... [18:11:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:11:43]Read from MH i2c: E2 [18:11:43]MH_I2C_Read... [18:11:43]Read from MH i2c: E2 03 00 [18:11:43]MH_I2C_Read... [18:11:43]Read from MH i2c: E2 03 00 10 7B 00 90 00 FF [18:11:43]RAPDU: 90 00 [18:11:43]wFMCommunicate OK [18:11:43]SAM_PROTO_ClearQueue done [18:11:43]KKMCreateOFDPacket [18:11:43]OFDProtocolAddRootSTLVToBuf [18:11:43]FM_MakeSignedData [18:11:43]FM_MakeSignedData [18:11:43]SAM_PROTO_SignData [18:11:43]wFMCommunicate request_size=4 [18:11:43]MH_SAM_APDU [18:11:43]CAPDU: 80 0D 01 02 [18:11:43]Write to MH i2c: E2 08 00 11 7B 80 0D 01 02 00 00 00 00 05 [18:11:43]Write i2c OK [18:11:43]MH_I2C_Read... [18:11:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:11:43]Read from MH i2c: E2 [18:11:43]MH_I2C_Read... [18:11:43]Read from MH i2c: E2 03 00 [18:11:43]MH_I2C_Read... [18:11:43]Read from MH i2c: E2 03 00 11 7B 00 90 00 00 [18:11:43]RAPDU: 90 00 [18:11:43]wFMCommunicate OK [18:11:43]wFMCommunicate request_size=255 [18:11:43]MH_SAM_APDU [18:11: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 33 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 3D 01 00 00 F4 03 04 00 63 99 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 CD DD 02 00 35 04 06 00 CA [18:11:43]Write to MH i2c: E2 02 01 12 7B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 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 3D 01 00 00 F4 03 04 00 63 99 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 CD DD 02 00 35 04 06 00 CA 00 00 8C [18:11:43]Write i2c OK [18:11:43]MH_I2C_Read... [18:11:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:11:43]Read from MH i2c: E2 [18:11:43]MH_I2C_Read... [18:11:43]Read from MH i2c: E2 03 00 [18:11:43]MH_I2C_Read... [18:11:43]Read from MH i2c: E2 03 00 12 7B 00 90 00 01 [18:11:43]RAPDU: 90 00 [18:11:43]wFMCommunicate OK [18:11:43]wFMCommunicate request_size=10 [18:11:43]MH_SAM_APDU [18:11:43]CAPDU: 80 0D 02 02 05 14 3D 47 79 DC [18:11:43]Write to MH i2c: E2 0D 00 13 7B 80 0D 02 02 05 00 14 3D 47 79 DC 00 00 FF [18:11:43]Write i2c OK [18:11:43]MH_I2C_Read... [18:11:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:11:43]Read from MH i2c: E2 [18:11:43]MH_I2C_Read... [18:11:43]Read from MH i2c: E2 03 00 [18:11:43]MH_I2C_Read... [18:11:43]Read from MH i2c: E2 03 00 13 7B 00 90 00 02 [18:11:43]RAPDU: 90 00 [18:11:43]wFMCommunicate OK [18:11:43]wFMCommunicate request_size=4 [18:11:43]MH_SAM_APDU [18:11:43]CAPDU: 80 0D 03 02 [18:11:43]Write to MH i2c: E2 08 00 14 7B 80 0D 03 02 00 00 00 00 0A [18:11:43]Write i2c OK [18:11:43]MH_I2C_Read... [18:11:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:11:43]Read from MH i2c: E2 [18:11:43]MH_I2C_Read... [18:11:43]Read from MH i2c: E2 0B 00 [18:11:43]MH_I2C_Read... [18:11:43]Read from MH i2c: E2 0B 00 14 7B 00 98 9E D2 FD 6C E5 41 6B 90 00 0D [18:11:43]RAPDU: 98 9E D2 FD 6C E5 41 6B 90 00 [18:11:43]wFMCommunicate OK [18:11:43]SAM_PROTO_SignData done [18:11:43]FM_MakeSignedData done [18:11:43]CreateOFDProtocolMessage [18:11:43]wFMCommunicate request_size=4 [18:11:43]MH_SAM_APDU [18:11:43]CAPDU: 80 11 00 00 [18:11:43]Write to MH i2c: E2 08 00 15 7B 80 11 00 00 00 00 00 00 0A [18:11:43]Write i2c OK [18:11:43]MH_I2C_Read... [18:11:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:11:43]Read from MH i2c: E2 [18:11:43]MH_I2C_Read... [18:11:43]Read from MH i2c: E2 17 00 [18:11:43]MH_I2C_Read... [18:11:43]Read from MH i2c: E2 17 00 15 7B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 58 [18:11:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [18:11:43]wFMCommunicate OK [18:11:43]CreateOFDProtocolMessage done [18:11:43]OFDSenderStorePacket 187853 [18:11:43]StoreOFDPacket docnum=187853 [18:11:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 0E E1 07 01 F9 CE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 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 3D 01 00 00 F4 03 04 00 63 99 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 CD DD 02 00 35 04 06 00 CA 14 3D 47 79 DC 98 9E D2 FD 6C E5 41 6B [18:11:43]CheckFolder [18:11:43]dirname=/storage/ofd_packets [18:11:43]CheckFolder done [18:11:43]ProducePacketName [18:11:43]name=ofd_packets/00187853 [18:11:43]NVStorageSaveData ofd_packets/00187853 [18:11:43]File name is /storage/ofd_packets/00187853 [18:11:43]Write 301 bytes [18:11:43]NVStorageSaveData done [18:11:43]OFDSenderStorePacket done [18:11:43]KKMCreateOFDPacket done [18:11:43]NVStorageSaveData kkm_last_timestamp [18:11:43]File name is /storage/kkm_last_timestamp [18:11:43]Write 4 bytes [18:11:43]NVStorageSaveData done [18:11:43]ExternCall_PrintAddStr [18:11:43]wPrintStart [18:11:43]Write to MH i2c: 01 00 00 16 7B 91 [18:11:43]Write i2c OK [18:11:43]MH_I2C_Read... [18:11:43]Read from MH i2c: 01 [18:11:43]MH_I2C_Read... [18:11:43]Read from MH i2c: 01 07 00 [18:11:43]MH_I2C_Read... [18:11:43]Read from MH i2c: 01 07 00 16 7B 00 00 00 00 00 FF 0F A6 [18:11:43]RasterBufferAndPrint [18:11:43]line Счет N : (1)209905 [18:11:43]line ИНН: 02508201610067 [18:11:43]line Контрольно-Кассовый Чек [18:11:43]line ПРОДАЖА [18:11:43]line ТРК (МРК, ГНК) : 22 [18:11:43]line Товар: 2710124130 [18:11:43]line Аи-92-К-3 [18:11:43]line 14.950 * 66.90 [18:11:43]line = 1000.16 [18:11:43]line НДС 12% НСП 1% [18:11:43]line > о реализуемом товаре [18:11:43]line ИТОГО: 1000.16 [18:11:43]line НСП 1% : 8.85 [18:11:43]line НДС 12% : 106.21 [18:11:43]line Наличными: 0.00 [18:11:43]line Безнал.: 1000.16 [18:11:43]line Место: АЗС № 86 "Партнер Нефть" [18:11:43]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [18:11:43]line СНО: Общий режим [18:11:43]line Чек 317 21.10.2024 18:11 [18:11:43]line Смена: 460 ФФД: 1.0 [18:11:43]line ЗНМ: 0300000155 [18:11:43]line РНМ: 0000000000100030 [18:11:43]line Версия ККМ: 001 [18:11:43]line Платежная система: Mbank [18:11:43]line ФМ: 0000000000965340 [18:11:43]line ФД: 187853 [18:11:43]line ФПД: 222188276251100 [18:11:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T181147&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187853&fm=222188276251100&tin=02508201610067®Number=0000000000100030&sum=100016 [18:11:43]written 0, free lines is 4095 [18:11:43]OFD Sender: Processing packet 187853 [packets to send 1062, broken 1061] [18:11:43]ProducePacketName [18:11:43]name=ofd_packets/00187853 [18:11:43]OFD Sender: To server: pG, [18:11:43]CommunicateWithHost lk.salyk.kg:30040 [18:11:43]ConnectInit lk.salyk.kg [18:11:43]Connected sock=10 [18:11:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 0E E1 07 01 F9 CE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 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 3D 01 00 00 F4 03 04 00 63 99 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 CD DD 02 00 35 04 06 00 CA 14 3D 47 79 DC 98 9E D2 FD 6C E5 41 6B [18:11:44]Write to MH i2c: 01 00 00 3F 7B BA [18:11:44]Write i2c OK [18:11:44]MH_I2C_Read... [18:11:44]Read from MH i2c: 01 [18:11:44]MH_I2C_Read... [18:11:44]Read from MH i2c: 01 07 00 [18:11:44]MH_I2C_Read... [18:11:44]Read from MH i2c: 01 07 00 3F 7B 00 00 00 00 00 91 0C 5E [18:11:44]RasterBufferAndPrint [18:11:44]line [18:11:44]line [18:11:44]line [18:11:44]line [18:11:44]line [18:11:44]written 0, free lines is 3221 [18:11:44]MH_Cut [18:11:44]Write to MH i2c: D1 01 00 46 7B 01 93 [18:11:44]Write i2c OK [18:11:44]MH_I2C_Read... [18:11:44]Read from MH i2c: D1 [18:11:44]MH_I2C_Read... [18:11:44]Read from MH i2c: D1 01 00 [18:11:44]MH_I2C_Read... [18:11:44]Read from MH i2c: D1 01 00 46 7B 00 92 [18:11:44]Write to MH i2c: 01 00 00 47 7B C2 [18:11:44]Write i2c OK [18:11:44]MH_I2C_Read... [18:11:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 43 D2 47 00 AE CB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 CD DD 02 00 F4 03 04 00 52 43 16 67 B6 04 01 00 00 B6 F8 E6 11 8F CF 5D 3C [18:11:44]CommunicateWithHost err = 0 [18:11:44]CheckOFDResponse [18:11:44]1017 (14) - 77093643461234 [18:11:44]1041 (16) - 0000000000965340 [18:11:44]1040 (4) - 187853 [18:11:44]1012 (4) - 21.10.2024 12:04 [18:11:44]1206 (1) - 0 [18:11:44]OFD Sender: Remove packet 187853 [18:11:44]ProducePacketName [18:11:44]name=ofd_packets/00187853 [18:11:44]NVStorageDeleteData [18:11:44]OFD Sender: No OFD packet to send [18:11:45]*** Cut start [18:11:45]*** Partial cut [18:11:45]*** CUTSNS_PIN = 1 [18:11:45]*** CUTSNS_PIN = 0 [18:11:45]*** Brake cut motor [18:11:45]*** Stop cut motor [18:11:45]*** Cut end [18:11:45]Read from MH i2c: 01 [18:11:45]MH_I2C_Read... [18:11:45]Read from MH i2c: 01 07 00 [18:11:45]MH_I2C_Read... [18:11:45]Read from MH i2c: 01 07 00 47 7B 00 00 00 00 00 FF 0F D7 [18:11:45]process_action close_receipt done [18:11:45]requested_data is exist [18:11:45]produce_requested_data [18:11:45]requested_item fm.sn is exist - process it [18:11:45]wFMCommunicate request_size=4 [18:11:45]MH_SAM_APDU [18:11:45]CAPDU: 80 11 00 00 [18:11:45]Write to MH i2c: E2 08 00 48 7B 80 11 00 00 00 00 00 00 3D [18:11:45]Write i2c OK [18:11:45]MH_I2C_Read... [18:11:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:11:45]Read from MH i2c: E2 [18:11:45]MH_I2C_Read... [18:11:45]Read from MH i2c: E2 17 00 [18:11:45]MH_I2C_Read... [18:11:45]Read from MH i2c: E2 17 00 48 7B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 8B [18:11:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [18:11:45]wFMCommunicate OK [18:11:45]requested_item fd.num is exist - process it [18:11:45]SAM_PROTO_GetFieldsCounters [18:11:45]wFMCommunicate request_size=4 [18:11:45]MH_SAM_APDU [18:11:45]CAPDU: 80 13 00 00 [18:11:45]Write to MH i2c: E2 08 00 49 7B 80 13 00 00 00 00 00 00 40 [18:11:45]Write i2c OK [18:11:45]MH_I2C_Read... [18:11:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:11:46]Read from MH i2c: E2 [18:11:46]MH_I2C_Read... [18:11:46]Read from MH i2c: E2 62 00 [18:11:46]MH_I2C_Read... [18:11:46]Read from MH i2c: E2 62 00 49 7B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 CD DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 3D 01 00 00 5E 04 04 00 3D 01 00 00 57 04 04 00 3E 01 00 00 19 04 04 00 00 00 00 00 90 00 7A [18:11:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 CD DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 3D 01 00 00 5E 04 04 00 3D 01 00 00 57 04 04 00 3E 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:11:46]wFMCommunicate OK [18:11:46]SAM_PROTO_GetFieldsCounters done [18:11:46]requested_item shift.num is exist - process it [18:11:46]requested_item shift.opened is exist - process it [18:11:46]req_shift_opened [18:11:46]FM_GetShiftState [18:11:46]SAM_PROTO_GetShiftState [18:11:46]wFMCommunicate request_size=4 [18:11:46]MH_SAM_APDU [18:11:46]CAPDU: 80 13 01 00 [18:11:46]Write to MH i2c: E2 08 00 4A 7B 80 13 01 00 00 00 00 00 42 [18:11:46]Write i2c OK [18:11:46]MH_I2C_Read... [18:11:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:11:46]Read from MH i2c: E2 [18:11:46]MH_I2C_Read... [18:11:46]Read from MH i2c: E2 0E 00 [18:11:46]MH_I2C_Read... [18:11:46]Read from MH i2c: E2 0E 00 4A 7B 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 A1 [18:11:46]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [18:11:46]wFMCommunicate OK [18:11:46]SAM_PROTO_GetShiftState done [18:11:46]FM_GetShiftState done [18:11:46]req_shift_opened done [18:11:46]requested_item shift.open_date is exist - process it [18:11:46]req_shift_open_date [18:11:46]req_shift_open_date done [18:11:46]produce_requested_data done [18:11:46]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187853,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [18:11:46]process_action_free close_receipt [18:11:46]json_value_free [18:11:46]json_value_free done [18:11:46]process_json_proto returns [18:11:46]Send response to host [18:11:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187853,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [18:11:46]free response buf [18:11:46]execute_script done [18:11:46]execute_script returns [18:11:46]free content buf [18:11:46]Sock 9.Close socket [18:11:46]Sock 9.Thread stoped [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:09]OFD Sender: No OFD packet to send [18:12:14]OFD Sender: No OFD packet to send [18:12:20]OFD Sender: No OFD packet to send [18:12:25]OFD Sender: No OFD packet to send [18:12:30]OFD Sender: No OFD packet to send [18:12:35]OFD Sender: No OFD packet to send [18:12:40]OFD Sender: No OFD packet to send [18:12:43]accept exits with 8 [18:12:43]New connection [18:12:43]New thread 3067157860 created [18:12:43]Thread 3067014500 joined [18:12:43]Waiting for new connection... [18:12:43] Sock 8.Parse request [18:12:43]Sock 8.Check first char [18:12:43]Sock 8.First char is OK [18:12:43]request: POST /json_proto HTTP/1.0 [18:12:43]Method: POST [18:12:43]URL: /json_proto [18:12:43]Method is POST - this is cgi request [18:12:43]url: /json_proto [18:12:43]query_string will be loaded in cgi processing [18:12:43]execute_cgi json_proto POST (null) [18:12:43]execute_cgi path=json_proto method=POST [18:12:43]POST find Content-Length [18:12:43]Host: 172.17.42.131:8080 [18:12:43]Content-Length: 682 [18:12:43]Content-Type: application/json [18:12:43] [18:12:43]POST finish read [18:12:43]Found Content-Length = 682 [18:12:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209906", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 33.700, "sum" : 2500.54, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2500.00, "total" : 2500.00, "payments": [ { "type": 0, "sum" : 2500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:12:43]execute_script... [18:12: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)209906", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 33.700, "sum" : 2500.54, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2500.00, "total" : 2500.00, "payments": [ { "type": 0, "sum" : 2500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:12:43]POST & json_proto [18:12:43]process_json_proto [18:12:43]json parsed OK: [18:12:43]protocol is kg_v1.0 [18:12:43]action value=close_receipt [18:12:43]process_action close_receipt [18:12:43]cmd_close_receipt [18:12:43]MH_GetDate [18:12:43]Write to MH i2c: F0 00 00 4B 7B B5 [18:12:43]Write i2c OK [18:12:43]MH_I2C_Read... [18:12:43]Read from MH i2c: F0 [18:12:43]MH_I2C_Read... [18:12:43]Read from MH i2c: F0 09 00 [18:12:43]MH_I2C_Read... [18:12:43]Read from MH i2c: F0 09 00 4B 7B 00 A0 99 16 67 A0 18 CA 66 5C [18:12:43]GetLastDocTimeStamp 1729534307 [18:12:43]current date 1729534368 [18:12:43]FM_GetShiftState [18:12:43]SAM_PROTO_GetShiftState [18:12:43]wFMCommunicate request_size=4 [18:12:43]MH_SAM_APDU [18:12:43]CAPDU: 80 13 01 00 [18:12:43]Write to MH i2c: E2 08 00 4C 7B 80 13 01 00 00 00 00 00 44 [18:12:43]Write i2c OK [18:12:43]MH_I2C_Read... [18:12:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:12:43]Read from MH i2c: E2 [18:12:43]MH_I2C_Read... [18:12:43]Read from MH i2c: E2 0E 00 [18:12:43]MH_I2C_Read... [18:12:43]Read from MH i2c: E2 0E 00 4C 7B 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 A3 [18:12:43]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [18:12:43]wFMCommunicate OK [18:12:43]SAM_PROTO_GetShiftState done [18:12:43]FM_GetShiftState done [18:12:43]opened in 1729469754 [18:12:43]opened+sec_in_day 1729556154 [18:12:43]quantity*price = 250054 [18:12:43]sum+1 = 250055 [18:12:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.54 ИТОГО: 2500.00 Внесено: 2500.00 СДАЧА: 0.00 НСП 1% : 22.13 НДС 12% : 265.54 Наличными: 2500.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 318 21.10.2024 18:12 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 187854 ФПД: 126689175201637 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T181248&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187854&fm=126689175201637&tin=02508201610067®Number=0000000000100030&sum=250000 [18:12:44]StoreToDocumentArchive [18:12:44]shift 460 fd 187854 [18:12:44]save to /storage/0460/doc_00187854 [18:12:44]save last doc name /storage/0460/doc_00187854 to /storage/kkm_last_doc_name [18:12:44]save OK [18:12:44]Clear old archive folders... [18:12:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:12:44]tlvbuf is 010B8B70 [18:12:44]SAM_PROTO_ClearQueue [18:12:44]wFMCommunicate request_size=4 [18:12:44]MH_SAM_APDU [18:12:44]CAPDU: 80 09 00 00 [18:12:44]Write to MH i2c: E2 08 00 59 7B 80 09 00 00 00 00 00 00 46 [18:12:44]Write i2c OK [18:12:44]MH_I2C_Read... [18:12:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:12:44]Read from MH i2c: E2 [18:12:44]MH_I2C_Read... [18:12:44]Read from MH i2c: E2 03 00 [18:12:44]MH_I2C_Read... [18:12:44]Read from MH i2c: E2 03 00 59 7B 00 90 00 48 [18:12:44]RAPDU: 90 00 [18:12:44]wFMCommunicate OK [18:12:44]SAM_PROTO_ClearQueue done [18:12:44]KKMCreateOFDPacket [18:12:44]OFDProtocolAddRootSTLVToBuf [18:12:44]FM_MakeSignedData [18:12:44]FM_MakeSignedData [18:12:44]SAM_PROTO_SignData [18:12:44]wFMCommunicate request_size=4 [18:12:44]MH_SAM_APDU [18:12:44]CAPDU: 80 0D 01 02 [18:12:44]Write to MH i2c: E2 08 00 5A 7B 80 0D 01 02 00 00 00 00 4E [18:12:44]Write i2c OK [18:12:44]MH_I2C_Read... [18:12:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:12:44]Read from MH i2c: E2 [18:12:44]MH_I2C_Read... [18:12:44]Read from MH i2c: E2 03 00 [18:12:44]MH_I2C_Read... [18:12:44]Read from MH i2c: E2 03 00 5A 7B 00 90 00 49 [18:12:44]RAPDU: 90 00 [18:12:44]wFMCommunicate OK [18:12:44]wFMCommunicate request_size=255 [18:12:44]MH_SAM_APDU [18:12:44]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A4 83 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 C6 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BA 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 01 00 00 F4 03 04 00 A0 99 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 CE DD 02 00 35 04 06 00 73 [18:12:44]Write to MH i2c: E2 02 01 5B 7B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A4 83 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 C6 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BA 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 01 00 00 F4 03 04 00 A0 99 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 CE DD 02 00 35 04 06 00 73 00 00 8E [18:12:44]Write i2c OK [18:12:44]MH_I2C_Read... [18:12:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:12:44]Read from MH i2c: E2 [18:12:44]MH_I2C_Read... [18:12:44]Read from MH i2c: E2 03 00 [18:12:44]MH_I2C_Read... [18:12:44]Read from MH i2c: E2 03 00 5B 7B 00 90 00 4A [18:12:44]RAPDU: 90 00 [18:12:44]wFMCommunicate OK [18:12:44]wFMCommunicate request_size=10 [18:12:44]MH_SAM_APDU [18:12:44]CAPDU: 80 0D 02 02 05 39 1F 48 E7 65 [18:12:44]Write to MH i2c: E2 0D 00 5C 7B 80 0D 02 02 05 00 39 1F 48 E7 65 00 00 47 [18:12:44]Write i2c OK [18:12:44]MH_I2C_Read... [18:12:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:12:44]Read from MH i2c: E2 [18:12:44]MH_I2C_Read... [18:12:44]Read from MH i2c: E2 03 00 [18:12:44]MH_I2C_Read... [18:12:44]Read from MH i2c: E2 03 00 5C 7B 00 90 00 4B [18:12:44]RAPDU: 90 00 [18:12:44]wFMCommunicate OK [18:12:44]wFMCommunicate request_size=4 [18:12:44]MH_SAM_APDU [18:12:44]CAPDU: 80 0D 03 02 [18:12:44]Write to MH i2c: E2 08 00 5D 7B 80 0D 03 02 00 00 00 00 53 [18:12:44]Write i2c OK [18:12:44]MH_I2C_Read... [18:12:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:12:44]Read from MH i2c: E2 [18:12:44]MH_I2C_Read... [18:12:44]Read from MH i2c: E2 0B 00 [18:12:44]MH_I2C_Read... [18:12:44]Read from MH i2c: E2 0B 00 5D 7B 00 71 5C 35 33 93 2B 73 F6 90 00 B0 [18:12:44]RAPDU: 71 5C 35 33 93 2B 73 F6 90 00 [18:12:44]wFMCommunicate OK [18:12:44]SAM_PROTO_SignData done [18:12:44]FM_MakeSignedData done [18:12:44]CreateOFDProtocolMessage [18:12:44]wFMCommunicate request_size=4 [18:12:44]MH_SAM_APDU [18:12:44]CAPDU: 80 11 00 00 [18:12:44]Write to MH i2c: E2 08 00 5E 7B 80 11 00 00 00 00 00 00 53 [18:12:44]Write i2c OK [18:12:44]MH_I2C_Read... [18:12:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:12:44]Read from MH i2c: E2 [18:12:44]MH_I2C_Read... [18:12:44]Read from MH i2c: E2 17 00 [18:12:44]MH_I2C_Read... [18:12:44]Read from MH i2c: E2 17 00 5E 7B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 A1 [18:12:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [18:12:44]wFMCommunicate OK [18:12:44]CreateOFDProtocolMessage done [18:12:44]OFDSenderStorePacket 187854 [18:12:44]StoreOFDPacket docnum=187854 [18:12:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 02 03 07 01 07 D7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A4 83 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 C6 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BA 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 01 00 00 F4 03 04 00 A0 99 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 CE DD 02 00 35 04 06 00 73 39 1F 48 E7 65 71 5C 35 33 93 2B 73 F6 [18:12:44]CheckFolder [18:12:44]dirname=/storage/ofd_packets [18:12:44]CheckFolder done [18:12:44]ProducePacketName [18:12:44]name=ofd_packets/00187854 [18:12:44]NVStorageSaveData ofd_packets/00187854 [18:12:44]File name is /storage/ofd_packets/00187854 [18:12:44]Write 301 bytes [18:12:44]NVStorageSaveData done [18:12:44]OFDSenderStorePacket done [18:12:44]KKMCreateOFDPacket done [18:12:44]NVStorageSaveData kkm_last_timestamp [18:12:44]File name is /storage/kkm_last_timestamp [18:12:44]Write 4 bytes [18:12:44]NVStorageSaveData done [18:12:44]ExternCall_PrintAddStr [18:12:44]wPrintStart [18:12:44]Write to MH i2c: 01 00 00 5F 7B DA [18:12:44]Write i2c OK [18:12:44]MH_I2C_Read... [18:12:44]Read from MH i2c: 01 [18:12:44]MH_I2C_Read... [18:12:44]Read from MH i2c: 01 07 00 [18:12:44]MH_I2C_Read... [18:12:44]Read from MH i2c: 01 07 00 5F 7B 00 00 00 00 00 FF 0F EF [18:12:44]RasterBufferAndPrint [18:12:44]line Счет N : (1)209906 [18:12:44]line ИНН: 02508201610067 [18:12:44]line Контрольно-Кассовый Чек [18:12:44]line ПРОДАЖА [18:12:44]line ТРК (МРК, ГНК) : 13 [18:12:44]line Товар: 2710124500 [18:12:44]line Аи-95-К-3 [18:12:44]line 33.700 * 74.20 [18:12:44]line = 2500.54 [18:12:44]line НДС 12% НСП 1% [18:12:44]line > о реализуемом товаре [18:12:44]line ОКРУГЛЕНИЕ: -0.54 [18:12:44]line ИТОГО: 2500.00 [18:12:44]line Внесено: 2500.00 [18:12:44]line СДАЧА: 0.00 [18:12:44]line НСП 1% : 22.13 [18:12:44]line НДС 12% : 265.54 [18:12:44]line Наличными: 2500.00 [18:12:44]line Безнал.: 0.00 [18:12:44]line Место: АЗС № 86 "Партнер Нефть" [18:12:44]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [18:12:44]line СНО: Общий режим [18:12:44]line Чек 318 21.10.2024 18:12 [18:12:44]line Смена: 460 ФФД: 1.0 [18:12:44]line ЗНМ: 0300000155 [18:12:44]line РНМ: 0000000000100030 [18:12:44]line Версия ККМ: 001 [18:12:44]line ФМ: 0000000000965340 [18:12:44]line ФД: 187854 [18:12:44]line ФПД: 126689175201637 [18:12:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T181248&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187854&fm=126689175201637&tin=02508201610067®Number=0000000000100030&sum=250000 [18:12:44]written 0, free lines is 4095 [18:12:44]OFD Sender: Processing packet 187854 [packets to send 1062, broken 1061] [18:12:44]ProducePacketName [18:12:44]name=ofd_packets/00187854 [18:12:44]OFD Sender: To server: pG, [18:12:44]CommunicateWithHost lk.salyk.kg:30040 [18:12:44]ConnectInit lk.salyk.kg [18:12:45]Connected sock=10 [18:12:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 02 03 07 01 07 D7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A4 83 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 C6 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BA 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 01 00 00 F4 03 04 00 A0 99 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 CE DD 02 00 35 04 06 00 73 39 1F 48 E7 65 71 5C 35 33 93 2B 73 F6 [18:12:45]Write to MH i2c: 01 00 00 8A 7B 05 [18:12:45]Write i2c OK [18:12:45]MH_I2C_Read... [18:12:45]Read from MH i2c: 01 [18:12:45]MH_I2C_Read... [18:12:45]Read from MH i2c: 01 07 00 [18:12:45]MH_I2C_Read... [18:12:45]Read from MH i2c: 01 07 00 8A 7B 00 00 00 00 00 64 0C 7C [18:12:45]RasterBufferAndPrint [18:12:45]line [18:12:45]line [18:12:45]line [18:12:45]line [18:12:45]line [18:12:45]written 0, free lines is 3176 [18:12:45]MH_Cut [18:12:45]Write to MH i2c: D1 01 00 91 7B 01 DE [18:12:45]Write i2c OK [18:12:45]MH_I2C_Read... [18:12:45]Read from MH i2c: D1 [18:12:45]MH_I2C_Read... [18:12:45]Read from MH i2c: D1 01 00 [18:12:45]MH_I2C_Read... [18:12:45]Read from MH i2c: D1 01 00 91 7B 00 DD [18:12:45]Write to MH i2c: 01 00 00 92 7B 0D [18:12:45]Write i2c OK [18:12:45]MH_I2C_Read... [18:12:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 B5 53 47 00 93 E4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 CE DD 02 00 F4 03 04 00 8F 43 16 67 B6 04 01 00 00 1C F4 23 73 9E 28 11 82 [18:12:45]CommunicateWithHost err = 0 [18:12:45]CheckOFDResponse [18:12:45]1017 (14) - 77093643461234 [18:12:45]1041 (16) - 0000000000965340 [18:12:45]1040 (4) - 187854 [18:12:45]1012 (4) - 21.10.2024 12:05 [18:12:45]1206 (1) - 0 [18:12:45]OFD Sender: Remove packet 187854 [18:12:45]ProducePacketName [18:12:45]name=ofd_packets/00187854 [18:12:45]NVStorageDeleteData [18:12:46]OFD Sender: No OFD packet to send [18:12:46]*** Cut start [18:12:46]*** Partial cut [18:12:46]*** CUTSNS_PIN = 1 [18:12:46]*** CUTSNS_PIN = 0 [18:12:46]*** Brake cut motor [18:12:47]Read from MH i2c: 01 [18:12:47]MH_I2C_Read... [18:12:47]*** Stop cut motor [18:12:47]*** Cut end [18:12:47]Read from MH i2c: 01 07 00 [18:12:47]MH_I2C_Read... [18:12:47]Read from MH i2c: 01 07 00 92 7B 00 00 00 00 00 FF 0F 22 [18:12:47]process_action close_receipt done [18:12:47]requested_data is exist [18:12:47]produce_requested_data [18:12:47]requested_item fm.sn is exist - process it [18:12:47]wFMCommunicate request_size=4 [18:12:47]MH_SAM_APDU [18:12:47]CAPDU: 80 11 00 00 [18:12:47]Write to MH i2c: E2 08 00 93 7B 80 11 00 00 00 00 00 00 88 [18:12:47]Write i2c OK [18:12:47]MH_I2C_Read... [18:12:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:12:47]Read from MH i2c: E2 [18:12:47]MH_I2C_Read... [18:12:47]Read from MH i2c: E2 17 00 [18:12:47]MH_I2C_Read... [18:12:47]Read from MH i2c: E2 17 00 93 7B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 D6 [18:12:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [18:12:47]wFMCommunicate OK [18:12:47]requested_item fd.num is exist - process it [18:12:47]SAM_PROTO_GetFieldsCounters [18:12:47]wFMCommunicate request_size=4 [18:12:47]MH_SAM_APDU [18:12:47]CAPDU: 80 13 00 00 [18:12:47]Write to MH i2c: E2 08 00 94 7B 80 13 00 00 00 00 00 00 8B [18:12:47]Write i2c OK [18:12:47]MH_I2C_Read... [18:12:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:12:47]Read from MH i2c: E2 [18:12:47]MH_I2C_Read... [18:12:47]Read from MH i2c: E2 62 00 [18:12:47]MH_I2C_Read... [18:12:47]Read from MH i2c: E2 62 00 94 7B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 CE DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 3E 01 00 00 5E 04 04 00 3E 01 00 00 57 04 04 00 3F 01 00 00 19 04 04 00 00 00 00 00 90 00 C9 [18:12:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 CE DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 3E 01 00 00 5E 04 04 00 3E 01 00 00 57 04 04 00 3F 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:12:47]wFMCommunicate OK [18:12:47]SAM_PROTO_GetFieldsCounters done [18:12:47]requested_item shift.num is exist - process it [18:12:47]requested_item shift.opened is exist - process it [18:12:47]req_shift_opened [18:12:47]FM_GetShiftState [18:12:47]SAM_PROTO_GetShiftState [18:12:47]wFMCommunicate request_size=4 [18:12:47]MH_SAM_APDU [18:12:47]CAPDU: 80 13 01 00 [18:12:47]Write to MH i2c: E2 08 00 95 7B 80 13 01 00 00 00 00 00 8D [18:12:47]Write i2c OK [18:12:47]MH_I2C_Read... [18:12:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:12:47]Read from MH i2c: E2 [18:12:47]MH_I2C_Read... [18:12:47]Read from MH i2c: E2 0E 00 [18:12:47]MH_I2C_Read... [18:12:47]Read from MH i2c: E2 0E 00 95 7B 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 EC [18:12:47]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [18:12:47]wFMCommunicate OK [18:12:47]SAM_PROTO_GetShiftState done [18:12:47]FM_GetShiftState done [18:12:47]req_shift_opened done [18:12:47]requested_item shift.open_date is exist - process it [18:12:47]req_shift_open_date [18:12:47]req_shift_open_date done [18:12:47]produce_requested_data done [18:12:47]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187854,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [18:12:47]process_action_free close_receipt [18:12:47]json_value_free [18:12:47]json_value_free done [18:12:47]process_json_proto returns [18:12:47]Send response to host [18:12:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187854,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [18:12:47]free response buf [18:12:47]execute_script done [18:12:47]execute_script returns [18:12:47]free content buf [18:12:47]Sock 8.Close socket [18:12:47]Sock 8.Thread stoped [18:12:51]OFD Sender: No OFD packet to send [18:12:56]OFD Sender: No OFD packet to send [18:13:01]OFD Sender: No OFD packet to send [18:13:06]OFD Sender: No OFD packet to send [18:13:11]OFD Sender: No OFD packet to send [18:13:16]OFD Sender: No OFD packet to send [18:13:21]OFD Sender: No OFD packet to send [18:13:26]OFD Sender: No OFD packet to send [18:13:31]OFD Sender: No OFD packet to send [18:13:36]OFD Sender: No OFD packet to send [18:13:41]OFD Sender: No OFD packet to send [18:13:46]OFD Sender: No OFD packet to send [18:13:51]OFD Sender: No OFD packet to send [18:13:56]OFD Sender: No OFD packet to send [18:14:01]OFD Sender: No OFD packet to send [18:14:06]OFD Sender: No OFD packet to send [18:14:11]OFD Sender: No OFD packet to send [18:14:16]OFD Sender: No OFD packet to send [18:14:21]OFD Sender: No OFD packet to send [18:14:26]OFD Sender: No OFD packet to send [18:14:31]OFD Sender: No OFD packet to send [18:14:36]OFD Sender: No OFD packet to send [18:14:41]OFD Sender: No OFD packet to send [18:14:46]OFD Sender: No OFD packet to send [18:14:51]OFD Sender: No OFD packet to send [18:14:55]accept exits with 9 [18:14:55]New connection [18:14:55]New thread 3067014500 created [18:14:55]Thread 3067157860 joined [18:14:55]Waiting for new connection... [18:14:55] Sock 9.Parse request [18:14:55]Sock 9.Check first char [18:14:55]Sock 9.First char is OK [18:14:55]request: POST /json_proto HTTP/1.0 [18:14:55]Method: POST [18:14:55]URL: /json_proto [18:14:55]Method is POST - this is cgi request [18:14:55]url: /json_proto [18:14:55]query_string will be loaded in cgi processing [18:14:55]execute_cgi json_proto POST (null) [18:14:55]execute_cgi path=json_proto method=POST [18:14:55]POST find Content-Length [18:14:55]Host: 172.17.42.131:8080 [18:14:55]Content-Length: 682 [18:14:55]Content-Type: application/json [18:14:55] [18:14:55]POST finish read [18:14:55]Found Content-Length = 682 [18:14:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209907", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 22.920, "sum" : 1700.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1700.00, "total" : 1700.00, "payments": [ { "type": 0, "sum" : 1700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:14:55]execute_script... [18:14: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)209907", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 22.920, "sum" : 1700.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1700.00, "total" : 1700.00, "payments": [ { "type": 0, "sum" : 1700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:14:55]POST & json_proto [18:14:55]process_json_proto [18:14:55]json parsed OK: [18:14:55]protocol is kg_v1.0 [18:14:55]action value=close_receipt [18:14:55]process_action close_receipt [18:14:55]cmd_close_receipt [18:14:55]MH_GetDate [18:14:55]Write to MH i2c: F0 00 00 96 7B 00 [18:14:55]Write i2c OK [18:14:55]MH_I2C_Read... [18:14:55]Read from MH i2c: F0 [18:14:55]MH_I2C_Read... [18:14:55]Read from MH i2c: F0 09 00 [18:14:55]MH_I2C_Read... [18:14:55]Read from MH i2c: F0 09 00 96 7B 00 24 9A 16 67 A0 18 CA 66 2C [18:14:55]GetLastDocTimeStamp 1729534368 [18:14:55]current date 1729534500 [18:14:55]FM_GetShiftState [18:14:55]SAM_PROTO_GetShiftState [18:14:55]wFMCommunicate request_size=4 [18:14:55]MH_SAM_APDU [18:14:55]CAPDU: 80 13 01 00 [18:14:55]Write to MH i2c: E2 08 00 97 7B 80 13 01 00 00 00 00 00 8F [18:14:55]Write i2c OK [18:14:55]MH_I2C_Read... [18:14:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:14:55]Read from MH i2c: E2 [18:14:55]MH_I2C_Read... [18:14:55]Read from MH i2c: E2 0E 00 [18:14:55]MH_I2C_Read... [18:14:55]Read from MH i2c: E2 0E 00 97 7B 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 EE [18:14:55]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [18:14:55]wFMCommunicate OK [18:14:55]SAM_PROTO_GetShiftState done [18:14:55]FM_GetShiftState done [18:14:55]opened in 1729469754 [18:14:55]opened+sec_in_day 1729556154 [18:14:55]quantity*price = 170066 [18:14:55]sum+1 = 170067 [18:14:55]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.66 ИТОГО: 1700.00 Внесено: 1700.00 СДАЧА: 0.00 НСП 1% : 15.05 НДС 12% : 180.60 Наличными: 1700.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 319 21.10.2024 18:15 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 187855 ФПД: 217094876937745 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T181500&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187855&fm=217094876937745&tin=02508201610067®Number=0000000000100030&sum=170000 [18:14:56]StoreToDocumentArchive [18:14:56]shift 460 fd 187855 [18:14:56]save to /storage/0460/doc_00187855 [18:14:56]save last doc name /storage/0460/doc_00187855 to /storage/kkm_last_doc_name [18:14:56]save OK [18:14:56]Clear old archive folders... [18:14:56]OFD Sender: No OFD packet to send [18:14:56]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:14:56]tlvbuf is 012EE5C0 [18:14:56]SAM_PROTO_ClearQueue [18:14:56]wFMCommunicate request_size=4 [18:14:56]MH_SAM_APDU [18:14:56]CAPDU: 80 09 00 00 [18:14:56]Write to MH i2c: E2 08 00 A4 7B 80 09 00 00 00 00 00 00 91 [18:14:56]Write i2c OK [18:14:56]MH_I2C_Read... [18:14:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:14:56]Read from MH i2c: E2 [18:14:56]MH_I2C_Read... [18:14:56]Read from MH i2c: E2 03 00 [18:14:56]MH_I2C_Read... [18:14:56]Read from MH i2c: E2 03 00 A4 7B 00 90 00 93 [18:14:56]RAPDU: 90 00 [18:14:56]wFMCommunicate OK [18:14:56]SAM_PROTO_ClearQueue done [18:14:56]KKMCreateOFDPacket [18:14:56]OFDProtocolAddRootSTLVToBuf [18:14:56]FM_MakeSignedData [18:14:56]FM_MakeSignedData [18:14:56]SAM_PROTO_SignData [18:14:56]wFMCommunicate request_size=4 [18:14:56]MH_SAM_APDU [18:14:56]CAPDU: 80 0D 01 02 [18:14:56]Write to MH i2c: E2 08 00 A5 7B 80 0D 01 02 00 00 00 00 99 [18:14:56]Write i2c OK [18:14:56]MH_I2C_Read... [18:14:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:14:56]Read from MH i2c: E2 [18:14:56]MH_I2C_Read... [18:14:56]Read from MH i2c: E2 03 00 [18:14:56]MH_I2C_Read... [18:14:56]Read from MH i2c: E2 03 00 A5 7B 00 90 00 94 [18:14:56]RAPDU: 90 00 [18:14:56]wFMCommunicate OK [18:14:56]wFMCommunicate request_size=255 [18:14:56]MH_SAM_APDU [18:14: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 88 59 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 52 98 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 98 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E1 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8C 46 00 00 00 00 07 04 06 00 10 98 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 01 00 00 F4 03 04 00 24 9A 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 CF DD 02 00 35 04 06 00 C5 [18:14:56]Write to MH i2c: E2 02 01 A6 7B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 88 59 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 52 98 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 98 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E1 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8C 46 00 00 00 00 07 04 06 00 10 98 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 01 00 00 F4 03 04 00 24 9A 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 CF DD 02 00 35 04 06 00 C5 00 00 37 [18:14:56]Write i2c OK [18:14:56]MH_I2C_Read... [18:14:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:14:57]Read from MH i2c: E2 [18:14:57]MH_I2C_Read... [18:14:57]Read from MH i2c: E2 03 00 [18:14:57]MH_I2C_Read... [18:14:57]Read from MH i2c: E2 03 00 A6 7B 00 90 00 95 [18:14:57]RAPDU: 90 00 [18:14:57]wFMCommunicate OK [18:14:57]wFMCommunicate request_size=10 [18:14:57]MH_SAM_APDU [18:14:57]CAPDU: 80 0D 02 02 05 72 57 05 BE 11 [18:14:57]Write to MH i2c: E2 0D 00 A7 7B 80 0D 02 02 05 00 72 57 05 BE 11 00 00 43 [18:14:57]Write i2c OK [18:14:57]MH_I2C_Read... [18:14:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:14:57]Read from MH i2c: E2 [18:14:57]MH_I2C_Read... [18:14:57]Read from MH i2c: E2 03 00 [18:14:57]MH_I2C_Read... [18:14:57]Read from MH i2c: E2 03 00 A7 7B 00 90 00 96 [18:14:57]RAPDU: 90 00 [18:14:57]wFMCommunicate OK [18:14:57]wFMCommunicate request_size=4 [18:14:57]MH_SAM_APDU [18:14:57]CAPDU: 80 0D 03 02 [18:14:57]Write to MH i2c: E2 08 00 A8 7B 80 0D 03 02 00 00 00 00 9E [18:14:57]Write i2c OK [18:14:57]MH_I2C_Read... [18:14:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:14:57]Read from MH i2c: E2 [18:14:57]MH_I2C_Read... [18:14:57]Read from MH i2c: E2 0B 00 [18:14:57]MH_I2C_Read... [18:14:57]Read from MH i2c: E2 0B 00 A8 7B 00 83 CA 81 20 45 7A 6E 20 90 00 DA [18:14:57]RAPDU: 83 CA 81 20 45 7A 6E 20 90 00 [18:14:57]wFMCommunicate OK [18:14:57]SAM_PROTO_SignData done [18:14:57]FM_MakeSignedData done [18:14:57]CreateOFDProtocolMessage [18:14:57]wFMCommunicate request_size=4 [18:14:57]MH_SAM_APDU [18:14:57]CAPDU: 80 11 00 00 [18:14:57]Write to MH i2c: E2 08 00 A9 7B 80 11 00 00 00 00 00 00 9E [18:14:57]Write i2c OK [18:14:57]MH_I2C_Read... [18:14:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:14:57]Read from MH i2c: E2 [18:14:57]MH_I2C_Read... [18:14:57]Read from MH i2c: E2 17 00 [18:14:57]MH_I2C_Read... [18:14:57]Read from MH i2c: E2 17 00 A9 7B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 EC [18:14:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [18:14:57]wFMCommunicate OK [18:14:57]CreateOFDProtocolMessage done [18:14:57]OFDSenderStorePacket 187855 [18:14:57]StoreOFDPacket docnum=187855 [18:14:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 33 32 07 01 0E 31 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 88 59 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 52 98 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 98 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E1 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8C 46 00 00 00 00 07 04 06 00 10 98 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 01 00 00 F4 03 04 00 24 9A 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 CF DD 02 00 35 04 06 00 C5 72 57 05 BE 11 83 CA 81 20 45 7A 6E 20 [18:14:57]CheckFolder [18:14:57]dirname=/storage/ofd_packets [18:14:57]CheckFolder done [18:14:57]ProducePacketName [18:14:57]name=ofd_packets/00187855 [18:14:57]NVStorageSaveData ofd_packets/00187855 [18:14:57]File name is /storage/ofd_packets/00187855 [18:14:57]Write 301 bytes [18:14:57]NVStorageSaveData done [18:14:57]OFDSenderStorePacket done [18:14:57]KKMCreateOFDPacket done [18:14:57]NVStorageSaveData kkm_last_timestamp [18:14:57]File name is /storage/kkm_last_timestamp [18:14:57]Write 4 bytes [18:14:57]NVStorageSaveData done [18:14:57]ExternCall_PrintAddStr [18:14:57]wPrintStart [18:14:57]Write to MH i2c: 01 00 00 AA 7B 25 [18:14:57]Write i2c OK [18:14:57]MH_I2C_Read... [18:14:57]Read from MH i2c: 01 [18:14:57]MH_I2C_Read... [18:14:57]Read from MH i2c: 01 07 00 [18:14:57]MH_I2C_Read... [18:14:57]Read from MH i2c: 01 07 00 AA 7B 00 00 00 00 00 FF 0F 3A [18:14:57]RasterBufferAndPrint [18:14:57]line Счет N : (1)209907 [18:14:57]line ИНН: 02508201610067 [18:14:57]line Контрольно-Кассовый Чек [18:14:57]line ПРОДАЖА [18:14:57]line ТРК (МРК, ГНК) : 43 [18:14:57]line Товар: 2710124500 [18:14:57]line Аи-95-К-3 [18:14:57]line 22.920 * 74.20 [18:14:57]line = 1700.66 [18:14:57]line НДС 12% НСП 1% [18:14:57]line > о реализуемом товаре [18:14:57]line ОКРУГЛЕНИЕ: -0.66 [18:14:57]line ИТОГО: 1700.00 [18:14:57]line Внесено: 1700.00 [18:14:57]line СДАЧА: 0.00 [18:14:57]line НСП 1% : 15.05 [18:14:57]line НДС 12% : 180.60 [18:14:57]line Наличными: 1700.00 [18:14:57]line Безнал.: 0.00 [18:14:57]line Место: АЗС № 86 "Партнер Нефть" [18:14:57]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [18:14:57]line СНО: Общий режим [18:14:57]line Чек 319 21.10.2024 18:15 [18:14:57]line Смена: 460 ФФД: 1.0 [18:14:57]line ЗНМ: 0300000155 [18:14:57]line РНМ: 0000000000100030 [18:14:57]line Версия ККМ: 001 [18:14:57]line ФМ: 0000000000965340 [18:14:57]line ФД: 187855 [18:14:57]line ФПД: 217094876937745 [18:14:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T181500&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187855&fm=217094876937745&tin=02508201610067®Number=0000000000100030&sum=170000 [18:14:57]written 0, free lines is 4095 [18:14:57]OFD Sender: Processing packet 187855 [packets to send 1062, broken 1061] [18:14:57]ProducePacketName [18:14:57]name=ofd_packets/00187855 [18:14:57]OFD Sender: To server: pG, [18:14:57]CommunicateWithHost lk.salyk.kg:30040 [18:14:57]ConnectInit lk.salyk.kg [18:14:57]Connected sock=8 [18:14:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 33 32 07 01 0E 31 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 88 59 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 52 98 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 98 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E1 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8C 46 00 00 00 00 07 04 06 00 10 98 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 01 00 00 F4 03 04 00 24 9A 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 CF DD 02 00 35 04 06 00 C5 72 57 05 BE 11 83 CA 81 20 45 7A 6E 20 [18:14:57]Write to MH i2c: 01 00 00 D5 7B 50 [18:14:57]Write i2c OK [18:14:57]MH_I2C_Read... [18:14:57]Read from MH i2c: 01 [18:14:57]MH_I2C_Read... [18:14:57]Read from MH i2c: 01 07 00 [18:14:57]MH_I2C_Read... [18:14:57]Read from MH i2c: 01 07 00 D5 7B 00 00 00 00 00 69 0C CC [18:14:57]RasterBufferAndPrint [18:14:57]line [18:14:57]line [18:14:57]line [18:14:57]line [18:14:57]line [18:14:57]written 0, free lines is 3180 [18:14:57]MH_Cut [18:14:57]Write to MH i2c: D1 01 00 DC 7B 01 29 [18:14:57]Write i2c OK [18:14:57]MH_I2C_Read... [18:14:57]Read from MH i2c: D1 [18:14:57]MH_I2C_Read... [18:14:57]Read from MH i2c: D1 01 00 [18:14:57]MH_I2C_Read... [18:14:57]Read from MH i2c: D1 01 00 DC 7B 00 28 [18:14:57]Write to MH i2c: 01 00 00 DD 7B 58 [18:14:57]Write i2c OK [18:14:57]MH_I2C_Read... [18:14:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 F9 C1 47 00 F3 74 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 CF DD 02 00 F4 03 04 00 13 44 16 67 B6 04 01 00 00 07 9C 26 64 55 35 0E 16 [18:14:57]CommunicateWithHost err = 0 [18:14:57]CheckOFDResponse [18:14:57]1017 (14) - 77093643461234 [18:14:57]1041 (16) - 0000000000965340 [18:14:57]1040 (4) - 187855 [18:14:57]1012 (4) - 21.10.2024 12:07 [18:14:57]1206 (1) - 0 [18:14:57]OFD Sender: Remove packet 187855 [18:14:57]ProducePacketName [18:14:57]name=ofd_packets/00187855 [18:14:57]NVStorageDeleteData [18:14:58]OFD Sender: No OFD packet to send [18:14:58]*** Cut start [18:14:58]*** Partial cut [18:14:58]*** CUTSNS_PIN = 1 [18:14:58]*** CUTSNS_PIN = 0 [18:14:59]*** Brake cut motor [18:14:59]Read from MH i2c: 01 [18:14:59]MH_I2C_Read... [18:14:59]*** Stop cut motor [18:14:59]*** Cut end [18:14:59]Read from MH i2c: 01 07 00 [18:14:59]MH_I2C_Read... [18:14:59]Read from MH i2c: 01 07 00 DD 7B 00 00 00 00 00 FF 0F 6D [18:14:59]process_action close_receipt done [18:14:59]requested_data is exist [18:14:59]produce_requested_data [18:14:59]requested_item fm.sn is exist - process it [18:14:59]wFMCommunicate request_size=4 [18:14:59]MH_SAM_APDU [18:14:59]CAPDU: 80 11 00 00 [18:14:59]Write to MH i2c: E2 08 00 DE 7B 80 11 00 00 00 00 00 00 D3 [18:14:59]Write i2c OK [18:14:59]MH_I2C_Read... [18:14:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:14:59]Read from MH i2c: E2 [18:14:59]MH_I2C_Read... [18:14:59]Read from MH i2c: E2 17 00 [18:14:59]MH_I2C_Read... [18:14:59]Read from MH i2c: E2 17 00 DE 7B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 21 [18:14:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [18:14:59]wFMCommunicate OK [18:14:59]requested_item fd.num is exist - process it [18:14:59]SAM_PROTO_GetFieldsCounters [18:14:59]wFMCommunicate request_size=4 [18:14:59]MH_SAM_APDU [18:14:59]CAPDU: 80 13 00 00 [18:14:59]Write to MH i2c: E2 08 00 DF 7B 80 13 00 00 00 00 00 00 D6 [18:14:59]Write i2c OK [18:14:59]MH_I2C_Read... [18:14:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:14:59]Read from MH i2c: E2 [18:14:59]MH_I2C_Read... [18:14:59]Read from MH i2c: E2 62 00 [18:14:59]MH_I2C_Read... [18:14:59]Read from MH i2c: E2 62 00 DF 7B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 CF DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 3F 01 00 00 5E 04 04 00 3F 01 00 00 57 04 04 00 40 01 00 00 19 04 04 00 00 00 00 00 90 00 18 [18:14:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 CF DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 3F 01 00 00 5E 04 04 00 3F 01 00 00 57 04 04 00 40 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:14:59]wFMCommunicate OK [18:14:59]SAM_PROTO_GetFieldsCounters done [18:14:59]requested_item shift.num is exist - process it [18:14:59]requested_item shift.opened is exist - process it [18:14:59]req_shift_opened [18:14:59]FM_GetShiftState [18:14:59]SAM_PROTO_GetShiftState [18:14:59]wFMCommunicate request_size=4 [18:14:59]MH_SAM_APDU [18:14:59]CAPDU: 80 13 01 00 [18:14:59]Write to MH i2c: E2 08 00 E0 7B 80 13 01 00 00 00 00 00 D8 [18:14:59]Write i2c OK [18:14:59]MH_I2C_Read... [18:14:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:14:59]Read from MH i2c: E2 [18:14:59]MH_I2C_Read... [18:14:59]Read from MH i2c: E2 0E 00 [18:14:59]MH_I2C_Read... [18:14:59]Read from MH i2c: E2 0E 00 E0 7B 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 37 [18:14:59]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [18:14:59]wFMCommunicate OK [18:14:59]SAM_PROTO_GetShiftState done [18:14:59]FM_GetShiftState done [18:14:59]req_shift_opened done [18:14:59]requested_item shift.open_date is exist - process it [18:14:59]req_shift_open_date [18:14:59]req_shift_open_date done [18:14:59]produce_requested_data done [18:14:59]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187855,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [18:14:59]process_action_free close_receipt [18:14:59]json_value_free [18:14:59]json_value_free done [18:14:59]process_json_proto returns [18:14:59]Send response to host [18:14:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187855,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [18:14:59]free response buf [18:14:59]execute_script done [18:14:59]execute_script returns [18:14:59]free content buf [18:14:59]Sock 9.Close socket [18:14:59]Sock 9.Thread stoped [18:15:00]accept exits with 10 [18:15:00]New connection [18:15:00]New thread 3067157860 created [18:15:00]Thread 3067014500 joined [18:15:00]Waiting for new connection... [18:15:00] Sock 10.Parse request [18:15:00]Sock 10.Check first char [18:15:00]Sock 10.First char is OK [18:15:00]request: POST /json_proto HTTP/1.0 [18:15:00]Method: POST [18:15:00]URL: /json_proto [18:15:00]Method is POST - this is cgi request [18:15:00]url: /json_proto [18:15:00]query_string will be loaded in cgi processing [18:15:00]execute_cgi json_proto POST (null) [18:15:00]execute_cgi path=json_proto method=POST [18:15:00]POST find Content-Length [18:15:00]Host: 172.17.42.131:8080 [18:15:00]Content-Length: 677 [18:15:00]Content-Type: application/json [18:15:00] [18:15:00]POST finish read [18:15:00]Found Content-Length = 677 [18:15:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209908", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "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:15:00]execute_script... [18:15: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)209908", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "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:15:00]POST & json_proto [18:15:00]process_json_proto [18:15:00]json parsed OK: [18:15:00]protocol is kg_v1.0 [18:15:00]action value=close_receipt [18:15:00]process_action close_receipt [18:15:00]cmd_close_receipt [18:15:00]MH_GetDate [18:15:00]Write to MH i2c: F0 00 00 E1 7B 4B [18:15:00]Write i2c OK [18:15:00]MH_I2C_Read... [18:15:00]Read from MH i2c: F0 [18:15:00]MH_I2C_Read... [18:15:00]Read from MH i2c: F0 09 00 [18:15:00]MH_I2C_Read... [18:15:00]Read from MH i2c: F0 09 00 E1 7B 00 29 9A 16 67 A0 18 CA 66 7C [18:15:00]GetLastDocTimeStamp 1729534500 [18:15:00]current date 1729534505 [18:15:00]FM_GetShiftState [18:15:00]SAM_PROTO_GetShiftState [18:15:00]wFMCommunicate request_size=4 [18:15:00]MH_SAM_APDU [18:15:00]CAPDU: 80 13 01 00 [18:15:00]Write to MH i2c: E2 08 00 E2 7B 80 13 01 00 00 00 00 00 DA [18:15:00]Write i2c OK [18:15:00]MH_I2C_Read... [18:15:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:15:00]Read from MH i2c: E2 [18:15:00]MH_I2C_Read... [18:15:00]Read from MH i2c: E2 0E 00 [18:15:00]MH_I2C_Read... [18:15:00]Read from MH i2c: E2 0E 00 E2 7B 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 39 [18:15:00]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [18:15:00]wFMCommunicate OK [18:15:00]SAM_PROTO_GetShiftState done [18:15:00]FM_GetShiftState done [18:15:00]opened in 1729469754 [18:15:00]opened+sec_in_day 1729556154 [18:15:00]quantity*price = 50041 [18:15:00]sum+1 = 50042 [18:15:00]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 320 21.10.2024 18:15 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 187856 ФПД: 193514894203073 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T181505&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187856&fm=193514894203073&tin=02508201610067®Number=0000000000100030&sum=50000 [18:15:01]StoreToDocumentArchive [18:15:01]shift 460 fd 187856 [18:15:01]save to /storage/0460/doc_00187856 [18:15:01]save last doc name /storage/0460/doc_00187856 to /storage/kkm_last_doc_name [18:15:01]save OK [18:15:01]Clear old archive folders... [18:15:01]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:15:01]tlvbuf is 01098320 [18:15:01]SAM_PROTO_ClearQueue [18:15:01]wFMCommunicate request_size=4 [18:15:01]MH_SAM_APDU [18:15:01]CAPDU: 80 09 00 00 [18:15:01]Write to MH i2c: E2 08 00 EF 7B 80 09 00 00 00 00 00 00 DC [18:15:01]Write i2c OK [18:15:01]MH_I2C_Read... [18:15:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:15:01]Read from MH i2c: E2 [18:15:01]MH_I2C_Read... [18:15:01]Read from MH i2c: E2 03 00 [18:15:01]MH_I2C_Read... [18:15:01]Read from MH i2c: E2 03 00 EF 7B 00 90 00 DE [18:15:01]RAPDU: 90 00 [18:15:01]wFMCommunicate OK [18:15:01]SAM_PROTO_ClearQueue done [18:15:01]KKMCreateOFDPacket [18:15:01]OFDProtocolAddRootSTLVToBuf [18:15:01]FM_MakeSignedData [18:15:01]FM_MakeSignedData [18:15:01]SAM_PROTO_SignData [18:15:01]wFMCommunicate request_size=4 [18:15:01]MH_SAM_APDU [18:15:01]CAPDU: 80 0D 01 02 [18:15:01]Write to MH i2c: E2 08 00 F0 7B 80 0D 01 02 00 00 00 00 E4 [18:15:01]Write i2c OK [18:15:01]MH_I2C_Read... [18:15:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:15:01]Read from MH i2c: E2 [18:15:01]MH_I2C_Read... [18:15:01]Read from MH i2c: E2 03 00 [18:15:01]MH_I2C_Read... [18:15:01]Read from MH i2c: E2 03 00 F0 7B 00 90 00 DF [18:15:01]RAPDU: 90 00 [18:15:01]wFMCommunicate OK [18:15:01]wFMCommunicate request_size=255 [18:15:01]MH_SAM_APDU [18:15: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 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 01 00 00 F4 03 04 00 29 9A 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 D0 DD 02 00 35 04 06 00 B0 [18:15:01]Write to MH i2c: E2 02 01 F1 7B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 01 00 00 F4 03 04 00 29 9A 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 D0 DD 02 00 35 04 06 00 B0 00 00 04 [18:15:01]Write i2c OK [18:15:01]MH_I2C_Read... [18:15:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:15:01]Read from MH i2c: E2 [18:15:01]MH_I2C_Read... [18:15:01]Read from MH i2c: E2 03 00 [18:15:01]MH_I2C_Read... [18:15:01]Read from MH i2c: E2 03 00 F1 7B 00 90 00 E0 [18:15:02]RAPDU: 90 00 [18:15:02]wFMCommunicate OK [18:15:02]wFMCommunicate request_size=10 [18:15:02]MH_SAM_APDU [18:15:02]CAPDU: 80 0D 02 02 05 00 32 87 18 C1 [18:15:02]Write to MH i2c: E2 0D 00 F2 7B 80 0D 02 02 05 00 00 32 87 18 C1 00 00 83 [18:15:02]Write i2c OK [18:15:02]MH_I2C_Read... [18:15:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:15:02]Read from MH i2c: E2 [18:15:02]MH_I2C_Read... [18:15:02]Read from MH i2c: E2 03 00 [18:15:02]MH_I2C_Read... [18:15:02]Read from MH i2c: E2 03 00 F2 7B 00 90 00 E1 [18:15:02]RAPDU: 90 00 [18:15:02]wFMCommunicate OK [18:15:02]wFMCommunicate request_size=4 [18:15:02]MH_SAM_APDU [18:15:02]CAPDU: 80 0D 03 02 [18:15:02]Write to MH i2c: E2 08 00 F3 7B 80 0D 03 02 00 00 00 00 E9 [18:15:02]Write i2c OK [18:15:02]MH_I2C_Read... [18:15:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:15:02]Read from MH i2c: E2 [18:15:02]MH_I2C_Read... [18:15:02]Read from MH i2c: E2 0B 00 [18:15:02]MH_I2C_Read... [18:15:02]Read from MH i2c: E2 0B 00 F3 7B 00 83 C8 07 F7 F6 FE 82 69 90 00 12 [18:15:02]RAPDU: 83 C8 07 F7 F6 FE 82 69 90 00 [18:15:02]wFMCommunicate OK [18:15:02]SAM_PROTO_SignData done [18:15:02]FM_MakeSignedData done [18:15:02]CreateOFDProtocolMessage [18:15:02]wFMCommunicate request_size=4 [18:15:02]MH_SAM_APDU [18:15:02]CAPDU: 80 11 00 00 [18:15:02]Write to MH i2c: E2 08 00 F4 7B 80 11 00 00 00 00 00 00 E9 [18:15:02]Write i2c OK [18:15:02]MH_I2C_Read... [18:15:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:15:02]Read from MH i2c: E2 [18:15:02]MH_I2C_Read... [18:15:02]Read from MH i2c: E2 17 00 [18:15:02]MH_I2C_Read... [18:15:02]Read from MH i2c: E2 17 00 F4 7B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 37 [18:15:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [18:15:02]wFMCommunicate OK [18:15:02]CreateOFDProtocolMessage done [18:15:02]OFDSenderStorePacket 187856 [18:15:02]StoreOFDPacket docnum=187856 [18:15:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 63 F4 07 01 E8 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 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 01 00 00 F4 03 04 00 29 9A 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 D0 DD 02 00 35 04 06 00 B0 00 32 87 18 C1 83 C8 07 F7 F6 FE 82 69 [18:15:02]CheckFolder [18:15:02]dirname=/storage/ofd_packets [18:15:02]CheckFolder done [18:15:02]ProducePacketName [18:15:02]name=ofd_packets/00187856 [18:15:02]NVStorageSaveData ofd_packets/00187856 [18:15:02]File name is /storage/ofd_packets/00187856 [18:15:02]Write 301 bytes [18:15:02]NVStorageSaveData done [18:15:02]OFDSenderStorePacket done [18:15:02]KKMCreateOFDPacket done [18:15:02]NVStorageSaveData kkm_last_timestamp [18:15:02]File name is /storage/kkm_last_timestamp [18:15:02]Write 4 bytes [18:15:02]NVStorageSaveData done [18:15:02]ExternCall_PrintAddStr [18:15:02]wPrintStart [18:15:02]Write to MH i2c: 01 00 00 F5 7B 70 [18:15:02]Write i2c OK [18:15:02]MH_I2C_Read... [18:15:02]Read from MH i2c: 01 [18:15:02]MH_I2C_Read... [18:15:02]Read from MH i2c: 01 07 00 [18:15:02]MH_I2C_Read... [18:15:02]Read from MH i2c: 01 07 00 F5 7B 00 00 00 00 00 FF 0F 85 [18:15:02]RasterBufferAndPrint [18:15:02]line Счет N : (1)209908 [18:15:02]line ИНН: 02508201610067 [18:15:02]line Контрольно-Кассовый Чек [18:15:02]line ПРОДАЖА [18:15:02]line ТРК (МРК, ГНК) : 32 [18:15:02]line Товар: 2710124130 [18:15:02]line Аи-92-К-3 [18:15:02]line 7.480 * 66.90 [18:15:02]line = 500.41 [18:15:02]line НДС 12% НСП 1% [18:15:02]line > о реализуемом товаре [18:15:02]line ОКРУГЛЕНИЕ: -0.41 [18:15:02]line ИТОГО: 500.00 [18:15:02]line Внесено: 500.00 [18:15:02]line СДАЧА: 0.00 [18:15:02]line НСП 1% : 4.43 [18:15:02]line НДС 12% : 53.14 [18:15:02]line Наличными: 500.00 [18:15:02]line Безнал.: 0.00 [18:15:02]line Место: АЗС № 86 "Партнер Нефть" [18:15:02]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [18:15:02]line СНО: Общий режим [18:15:02]line Чек 320 21.10.2024 18:15 [18:15:02]line Смена: 460 ФФД: 1.0 [18:15:02]line ЗНМ: 0300000155 [18:15:02]line РНМ: 0000000000100030 [18:15:02]line Версия ККМ: 001 [18:15:02]line ФМ: 0000000000965340 [18:15:02]line ФД: 187856 [18:15:02]line ФПД: 193514894203073 [18:15:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T181505&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187856&fm=193514894203073&tin=02508201610067®Number=0000000000100030&sum=50000 [18:15:02]OFD Sender: Processing packet 187856 [packets to send 1062, broken 1061] [18:15:02]ProducePacketName [18:15:02]name=ofd_packets/00187856 [18:15:02]OFD Sender: To server: pG, [18:15:02]CommunicateWithHost lk.salyk.kg:30040 [18:15:02]ConnectInit lk.salyk.kg [18:15:02]written 0, free lines is 4095 [18:15:02]Connected sock=9 [18:15:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 63 F4 07 01 E8 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 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 01 00 00 F4 03 04 00 29 9A 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 D0 DD 02 00 35 04 06 00 B0 00 32 87 18 C1 83 C8 07 F7 F6 FE 82 69 [18:15:02]Write to MH i2c: 01 00 00 20 7C 9C [18:15:02]Write i2c OK [18:15:02]MH_I2C_Read... [18:15:02]Read from MH i2c: 01 [18:15:02]MH_I2C_Read... [18:15:02]Read from MH i2c: 01 07 00 [18:15:02]MH_I2C_Read... [18:15:02]Read from MH i2c: 01 07 00 20 7C 00 00 00 00 00 6D 0C 1C [18:15:02]RasterBufferAndPrint [18:15:02]line [18:15:02]line [18:15:02]line [18:15:02]line [18:15:02]line [18:15:02]written 0, free lines is 3188 [18:15:02]MH_Cut [18:15:02]Write to MH i2c: D1 01 00 27 7C 01 75 [18:15:02]Write i2c OK [18:15:02]MH_I2C_Read... [18:15:02]Read from MH i2c: D1 [18:15:02]MH_I2C_Read... [18:15:02]Read from MH i2c: D1 01 00 [18:15:02]MH_I2C_Read... [18:15:02]Read from MH i2c: D1 01 00 27 7C 00 74 [18:15:02]Write to MH i2c: 01 00 00 28 7C A4 [18:15:02]Write i2c OK [18:15:02]MH_I2C_Read... [18:15:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 E5 CA 47 00 73 6E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 D0 DD 02 00 F4 03 04 00 18 44 16 67 B6 04 01 00 00 93 A7 B4 96 F2 16 99 33 [18:15:02]CommunicateWithHost err = 0 [18:15:02]CheckOFDResponse [18:15:02]1017 (14) - 77093643461234 [18:15:02]1041 (16) - 0000000000965340 [18:15:02]1040 (4) - 187856 [18:15:02]1012 (4) - 21.10.2024 12:07 [18:15:02]1206 (1) - 0 [18:15:02]OFD Sender: Remove packet 187856 [18:15:02]ProducePacketName [18:15:02]name=ofd_packets/00187856 [18:15:02]NVStorageDeleteData [18:15:03]OFD Sender: No OFD packet to send [18:15:03]*** Cut start [18:15:03]*** Partial cut [18:15:03]*** CUTSNS_PIN = 1 [18:15:03]*** CUTSNS_PIN = 0 [18:15:04]*** Brake cut motor [18:15:04]Read from MH i2c: 01 [18:15:04]MH_I2C_Read... [18:15:04]*** Stop cut motor [18:15:04]*** Cut end [18:15:04]Read from MH i2c: 01 07 00 [18:15:04]MH_I2C_Read... [18:15:04]Read from MH i2c: 01 07 00 28 7C 00 00 00 00 00 FF 0F B9 [18:15:04]process_action close_receipt done [18:15:04]requested_data is exist [18:15:04]produce_requested_data [18:15:04]requested_item fm.sn is exist - process it [18:15:04]wFMCommunicate request_size=4 [18:15:04]MH_SAM_APDU [18:15:04]CAPDU: 80 11 00 00 [18:15:04]Write to MH i2c: E2 08 00 29 7C 80 11 00 00 00 00 00 00 1F [18:15:04]Write i2c OK [18:15:04]MH_I2C_Read... [18:15:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:15:04]Read from MH i2c: E2 [18:15:04]MH_I2C_Read... [18:15:04]Read from MH i2c: E2 17 00 [18:15:04]MH_I2C_Read... [18:15:04]Read from MH i2c: E2 17 00 29 7C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 6D [18:15:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [18:15:04]wFMCommunicate OK [18:15:04]requested_item fd.num is exist - process it [18:15:04]SAM_PROTO_GetFieldsCounters [18:15:04]wFMCommunicate request_size=4 [18:15:04]MH_SAM_APDU [18:15:04]CAPDU: 80 13 00 00 [18:15:04]Write to MH i2c: E2 08 00 2A 7C 80 13 00 00 00 00 00 00 22 [18:15:04]Write i2c OK [18:15:04]MH_I2C_Read... [18:15:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:15:04]Read from MH i2c: E2 [18:15:04]MH_I2C_Read... [18:15:04]Read from MH i2c: E2 62 00 [18:15:04]MH_I2C_Read... [18:15:04]Read from MH i2c: E2 62 00 2A 7C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 D0 DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 40 01 00 00 5E 04 04 00 40 01 00 00 57 04 04 00 41 01 00 00 19 04 04 00 00 00 00 00 90 00 68 [18:15:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 D0 DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 40 01 00 00 5E 04 04 00 40 01 00 00 57 04 04 00 41 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:15:04]wFMCommunicate OK [18:15:04]SAM_PROTO_GetFieldsCounters done [18:15:04]requested_item shift.num is exist - process it [18:15:04]requested_item shift.opened is exist - process it [18:15:04]req_shift_opened [18:15:04]FM_GetShiftState [18:15:04]SAM_PROTO_GetShiftState [18:15:04]wFMCommunicate request_size=4 [18:15:04]MH_SAM_APDU [18:15:04]CAPDU: 80 13 01 00 [18:15:04]Write to MH i2c: E2 08 00 2B 7C 80 13 01 00 00 00 00 00 24 [18:15:04]Write i2c OK [18:15:04]MH_I2C_Read... [18:15:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:15:04]Read from MH i2c: E2 [18:15:04]MH_I2C_Read... [18:15:04]Read from MH i2c: E2 0E 00 [18:15:04]MH_I2C_Read... [18:15:04]Read from MH i2c: E2 0E 00 2B 7C 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 83 [18:15:04]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [18:15:04]wFMCommunicate OK [18:15:04]SAM_PROTO_GetShiftState done [18:15:04]FM_GetShiftState done [18:15:04]req_shift_opened done [18:15:04]requested_item shift.open_date is exist - process it [18:15:04]req_shift_open_date [18:15:04]req_shift_open_date done [18:15:04]produce_requested_data done [18:15:04]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187856,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [18:15:04]process_action_free close_receipt [18:15:04]json_value_free [18:15:04]json_value_free done [18:15:04]process_json_proto returns [18:15:04]Send response to host [18:15:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187856,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [18:15:04]free response buf [18:15:04]execute_script done [18:15:04]execute_script returns [18:15:04]free content buf [18:15:04]Sock 10.Close socket [18:15:04]Sock 10.Thread stoped [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:24]OFD Sender: No OFD packet to send [18:17:29]OFD Sender: No OFD packet to send [18:17:34]OFD Sender: No OFD packet to send [18:17:39]OFD Sender: No OFD packet to send [18:17:44]OFD Sender: No OFD packet to send [18:17:49]OFD Sender: No OFD packet to send [18:17:54]OFD Sender: No OFD packet to send [18:17:59]OFD Sender: No OFD packet to send [18:18:04]OFD Sender: No OFD packet to send [18:18:09]OFD Sender: No OFD packet to send [18:18:14]OFD Sender: No OFD packet to send [18:18:19]OFD Sender: No OFD packet to send [18:18:24]OFD Sender: No OFD packet to send [18:18:29]OFD Sender: No OFD packet to send [18:18:34]OFD Sender: No OFD packet to send [18:18:39]OFD Sender: No OFD packet to send [18:18:44]OFD Sender: No OFD packet to send [18:18:49]OFD Sender: No OFD packet to send [18:18:54]OFD Sender: No OFD packet to send [18:18:59]OFD Sender: No OFD packet to send [18:19:04]OFD Sender: No OFD packet to send [18:19:09]OFD Sender: No OFD packet to send [18:19:14]OFD Sender: No OFD packet to send [18:19:19]OFD Sender: No OFD packet to send [18:19:24]OFD Sender: No OFD packet to send [18:19:29]OFD Sender: No OFD packet to send [18:19:34]OFD Sender: No OFD packet to send [18:19:39]OFD Sender: No OFD packet to send [18:19:44]OFD Sender: No OFD packet to send [18:19:49]OFD Sender: No OFD packet to send [18:19:54]OFD Sender: No OFD packet to send [18:19:59]OFD Sender: No OFD packet to send [18:20:04]OFD Sender: No OFD packet to send [18:20:09]OFD Sender: No OFD packet to send [18:20:14]OFD Sender: No OFD packet to send [18:20:19]OFD Sender: No OFD packet to send [18:20:24]OFD Sender: No OFD packet to send [18:20:29]OFD Sender: No OFD packet to send [18:20:34]OFD Sender: No OFD packet to send [18:20:39]OFD Sender: No OFD packet to send [18:20:44]OFD Sender: No OFD packet to send [18:20:49]OFD Sender: No OFD packet to send [18:20:54]OFD Sender: No OFD packet to send [18:20:59]OFD Sender: No OFD packet to send [18:21:04]OFD Sender: No OFD packet to send [18:21:09]OFD Sender: No OFD packet to send [18:21:10]accept exits with 8 [18:21:10]New connection [18:21:10]New thread 3067014500 created [18:21:10]Thread 3067157860 joined [18:21:10]Waiting for new connection... [18:21:10] Sock 8.Parse request [18:21:10]Sock 8.Check first char [18:21:10]Sock 8.First char is OK [18:21:10]request: POST /json_proto HTTP/1.0 [18:21:10]Method: POST [18:21:10]URL: /json_proto [18:21:10]Method is POST - this is cgi request [18:21:10]url: /json_proto [18:21:10]query_string will be loaded in cgi processing [18:21:10]execute_cgi json_proto POST (null) [18:21:10]execute_cgi path=json_proto method=POST [18:21:10]POST find Content-Length [18:21:10]Host: 172.17.42.131:8080 [18:21:10]Content-Length: 682 [18:21:10]Content-Type: application/json [18:21:10] [18:21:10]POST finish read [18:21:10]Found Content-Length = 682 [18:21:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209909", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "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" ] } } [18:21:10]execute_script... [18:21: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)209909", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "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" ] } } [18:21:10]POST & json_proto [18:21:10]process_json_proto [18:21:10]json parsed OK: [18:21:10]protocol is kg_v1.0 [18:21:10]action value=close_receipt [18:21:10]process_action close_receipt [18:21:10]cmd_close_receipt [18:21:10]MH_GetDate [18:21:10]Write to MH i2c: F0 00 00 2C 7C 97 [18:21:10]Write i2c OK [18:21:10]MH_I2C_Read... [18:21:10]Read from MH i2c: F0 [18:21:10]MH_I2C_Read... [18:21:10]Read from MH i2c: F0 09 00 [18:21:10]MH_I2C_Read... [18:21:10]Read from MH i2c: F0 09 00 2C 7C 00 9B 9B 16 67 A0 18 CA 66 3B [18:21:10]GetLastDocTimeStamp 1729534505 [18:21:10]current date 1729534875 [18:21:10]FM_GetShiftState [18:21:10]SAM_PROTO_GetShiftState [18:21:10]wFMCommunicate request_size=4 [18:21:10]MH_SAM_APDU [18:21:10]CAPDU: 80 13 01 00 [18:21:10]Write to MH i2c: E2 08 00 2D 7C 80 13 01 00 00 00 00 00 26 [18:21:10]Write i2c OK [18:21:10]MH_I2C_Read... [18:21:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:21:10]Read from MH i2c: E2 [18:21:10]MH_I2C_Read... [18:21:10]Read from MH i2c: E2 0E 00 [18:21:10]MH_I2C_Read... [18:21:10]Read from MH i2c: E2 0E 00 2D 7C 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 85 [18:21:10]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [18:21:10]wFMCommunicate OK [18:21:10]SAM_PROTO_GetShiftState done [18:21:10]FM_GetShiftState done [18:21:10]opened in 1729469754 [18:21:10]opened+sec_in_day 1729556154 [18:21:10]quantity*price = 100015 [18:21:10]sum+1 = 100017 [18:21:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 321 21.10.2024 18:21 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 187857 ФПД: 43731917333167 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T182115&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187857&fm=43731917333167&tin=02508201610067®Number=0000000000100030&sum=100000 [18:21:11]StoreToDocumentArchive [18:21:11]shift 460 fd 187857 [18:21:11]save to /storage/0460/doc_00187857 [18:21:11]save last doc name /storage/0460/doc_00187857 to /storage/kkm_last_doc_name [18:21:11]save OK [18:21:11]Clear old archive folders... [18:21:11]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:21:11]tlvbuf is 010FE7C0 [18:21:11]SAM_PROTO_ClearQueue [18:21:11]wFMCommunicate request_size=4 [18:21:11]MH_SAM_APDU [18:21:11]CAPDU: 80 09 00 00 [18:21:11]Write to MH i2c: E2 08 00 3A 7C 80 09 00 00 00 00 00 00 28 [18:21:11]Write i2c OK [18:21:11]MH_I2C_Read... [18:21:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:21:11]Read from MH i2c: E2 [18:21:11]MH_I2C_Read... [18:21:11]Read from MH i2c: E2 03 00 [18:21:11]MH_I2C_Read... [18:21:11]Read from MH i2c: E2 03 00 3A 7C 00 90 00 2A [18:21:11]RAPDU: 90 00 [18:21:11]wFMCommunicate OK [18:21:11]SAM_PROTO_ClearQueue done [18:21:11]KKMCreateOFDPacket [18:21:11]OFDProtocolAddRootSTLVToBuf [18:21:11]FM_MakeSignedData [18:21:11]FM_MakeSignedData [18:21:11]SAM_PROTO_SignData [18:21:11]wFMCommunicate request_size=4 [18:21:11]MH_SAM_APDU [18:21:11]CAPDU: 80 0D 01 02 [18:21:11]Write to MH i2c: E2 08 00 3B 7C 80 0D 01 02 00 00 00 00 30 [18:21:11]Write i2c OK [18:21:11]MH_I2C_Read... [18:21:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:21:11]Read from MH i2c: E2 [18:21:11]MH_I2C_Read... [18:21:11]Read from MH i2c: E2 03 00 [18:21:11]MH_I2C_Read... [18:21:11]Read from MH i2c: E2 03 00 3B 7C 00 90 00 2B [18:21:11]RAPDU: 90 00 [18:21:11]wFMCommunicate OK [18:21:11]wFMCommunicate request_size=255 [18:21:11]MH_SAM_APDU [18:21: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 33 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 41 01 00 00 F4 03 04 00 9B 9B 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 D1 DD 02 00 35 04 06 00 27 [18:21:11]Write to MH i2c: E2 02 01 3C 7C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 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 41 01 00 00 F4 03 04 00 9B 9B 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 D1 DD 02 00 35 04 06 00 27 00 00 36 [18:21:11]Write i2c OK [18:21:11]MH_I2C_Read... [18:21:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:21:12]Read from MH i2c: E2 [18:21:12]MH_I2C_Read... [18:21:12]Read from MH i2c: E2 03 00 [18:21:12]MH_I2C_Read... [18:21:12]Read from MH i2c: E2 03 00 3C 7C 00 90 00 2C [18:21:12]RAPDU: 90 00 [18:21:12]wFMCommunicate OK [18:21:12]wFMCommunicate request_size=10 [18:21:12]MH_SAM_APDU [18:21:12]CAPDU: 80 0D 02 02 05 C6 21 65 E2 AF [18:21:12]Write to MH i2c: E2 0D 00 3D 7C 80 0D 02 02 05 00 C6 21 65 E2 AF 00 00 1A [18:21:12]Write i2c OK [18:21:12]MH_I2C_Read... [18:21:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:21:12]Read from MH i2c: E2 [18:21:12]MH_I2C_Read... [18:21:12]Read from MH i2c: E2 03 00 [18:21:12]MH_I2C_Read... [18:21:12]Read from MH i2c: E2 03 00 3D 7C 00 90 00 2D [18:21:12]RAPDU: 90 00 [18:21:12]wFMCommunicate OK [18:21:12]wFMCommunicate request_size=4 [18:21:12]MH_SAM_APDU [18:21:12]CAPDU: 80 0D 03 02 [18:21:12]Write to MH i2c: E2 08 00 3E 7C 80 0D 03 02 00 00 00 00 35 [18:21:12]Write i2c OK [18:21:12]MH_I2C_Read... [18:21:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:21:12]Read from MH i2c: E2 [18:21:12]MH_I2C_Read... [18:21:12]Read from MH i2c: E2 0B 00 [18:21:12]MH_I2C_Read... [18:21:12]Read from MH i2c: E2 0B 00 3E 7C 00 B8 7B 32 19 FB 0D 77 4E 90 00 81 [18:21:12]RAPDU: B8 7B 32 19 FB 0D 77 4E 90 00 [18:21:12]wFMCommunicate OK [18:21:12]SAM_PROTO_SignData done [18:21:12]FM_MakeSignedData done [18:21:12]CreateOFDProtocolMessage [18:21:12]wFMCommunicate request_size=4 [18:21:12]MH_SAM_APDU [18:21:12]CAPDU: 80 11 00 00 [18:21:12]Write to MH i2c: E2 08 00 3F 7C 80 11 00 00 00 00 00 00 35 [18:21:12]Write i2c OK [18:21:12]MH_I2C_Read... [18:21:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:21:12]Read from MH i2c: E2 [18:21:12]MH_I2C_Read... [18:21:12]Read from MH i2c: E2 17 00 [18:21:12]MH_I2C_Read... [18:21:12]Read from MH i2c: E2 17 00 3F 7C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 83 [18:21:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [18:21:12]wFMCommunicate OK [18:21:12]CreateOFDProtocolMessage done [18:21:12]OFDSenderStorePacket 187857 [18:21:12]StoreOFDPacket docnum=187857 [18:21:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 77 CB 07 01 5B 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 33 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 41 01 00 00 F4 03 04 00 9B 9B 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 D1 DD 02 00 35 04 06 00 27 C6 21 65 E2 AF B8 7B 32 19 FB 0D 77 4E [18:21:12]CheckFolder [18:21:12]dirname=/storage/ofd_packets [18:21:12]CheckFolder done [18:21:12]ProducePacketName [18:21:12]name=ofd_packets/00187857 [18:21:12]NVStorageSaveData ofd_packets/00187857 [18:21:12]File name is /storage/ofd_packets/00187857 [18:21:12]Write 301 bytes [18:21:12]NVStorageSaveData done [18:21:12]OFDSenderStorePacket done [18:21:12]KKMCreateOFDPacket done [18:21:12]NVStorageSaveData kkm_last_timestamp [18:21:12]File name is /storage/kkm_last_timestamp [18:21:12]Write 4 bytes [18:21:12]NVStorageSaveData done [18:21:12]ExternCall_PrintAddStr [18:21:12]wPrintStart [18:21:12]Write to MH i2c: 01 00 00 40 7C BC [18:21:12]Write i2c OK [18:21:12]MH_I2C_Read... [18:21:12]Read from MH i2c: 01 [18:21:12]MH_I2C_Read... [18:21:12]Read from MH i2c: 01 07 00 [18:21:12]MH_I2C_Read... [18:21:12]Read from MH i2c: 01 07 00 40 7C 00 00 00 00 00 FF 0F D1 [18:21:12]RasterBufferAndPrint [18:21:12]line Счет N : (1)209909 [18:21:12]line ИНН: 02508201610067 [18:21:12]line Контрольно-Кассовый Чек [18:21:12]line ПРОДАЖА [18:21:12]line ТРК (МРК, ГНК) : 12 [18:21:12]line Товар: 2710124130 [18:21:12]line Аи-92-К-3 [18:21:12]line 14.950 * 66.90 [18:21:12]line = 1000.16 [18:21:12]line НДС 12% НСП 1% [18:21:12]line > о реализуемом товаре [18:21:12]line ОКРУГЛЕНИЕ: -0.16 [18:21:12]line ИТОГО: 1000.00 [18:21:12]line Внесено: 1000.00 [18:21:12]line СДАЧА: 0.00 [18:21:12]line НСП 1% : 8.85 [18:21:12]line НДС 12% : 106.21 [18:21:12]line Наличными: 1000.00 [18:21:12]line Безнал.: 0.00 [18:21:12]line Место: АЗС № 86 "Партнер Нефть" [18:21:12]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [18:21:12]line СНО: Общий режим [18:21:12]line Чек 321 21.10.2024 18:21 [18:21:12]line Смена: 460 ФФД: 1.0 [18:21:12]line ЗНМ: 0300000155 [18:21:12]line РНМ: 0000000000100030 [18:21:12]line Версия ККМ: 001 [18:21:12]line ФМ: 0000000000965340 [18:21:12]line ФД: 187857 [18:21:12]line ФПД: 43731917333167 [18:21:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T182115&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187857&fm=43731917333167&tin=02508201610067®Number=0000000000100030&sum=100000 [18:21:12]written 0, free lines is 4095 [18:21:12]OFD Sender: Processing packet 187857 [packets to send 1062, broken 1061] [18:21:12]ProducePacketName [18:21:12]name=ofd_packets/00187857 [18:21:12]OFD Sender: To server: pG, [18:21:12]CommunicateWithHost lk.salyk.kg:30040 [18:21:12]ConnectInit lk.salyk.kg [18:21:12]Write to MH i2c: 01 00 00 6B 7C E7 [18:21:12]Write i2c OK [18:21:12]MH_I2C_Read... [18:21:12]Read from MH i2c: 01 [18:21:12]MH_I2C_Read... [18:21:12]Read from MH i2c: 01 07 00 [18:21:12]MH_I2C_Read... [18:21:12]Read from MH i2c: 01 07 00 6B 7C 00 00 00 00 00 65 0C 5F [18:21:12]RasterBufferAndPrint [18:21:12]line [18:21:12]line [18:21:12]line [18:21:12]line [18:21:12]line [18:21:12]written 0, free lines is 3177 [18:21:12]MH_Cut [18:21:12]Write to MH i2c: D1 01 00 72 7C 01 C0 [18:21:12]Write i2c OK [18:21:12]MH_I2C_Read... [18:21:12]Read from MH i2c: D1 [18:21:12]MH_I2C_Read... [18:21:12]Read from MH i2c: D1 01 00 [18:21:12]MH_I2C_Read... [18:21:12]Read from MH i2c: D1 01 00 72 7C 00 BF [18:21:12]Write to MH i2c: 01 00 00 73 7C EF [18:21:12]Write i2c OK [18:21:12]MH_I2C_Read... [18:21:12]Connected sock=10 [18:21:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 77 CB 07 01 5B 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 33 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 41 01 00 00 F4 03 04 00 9B 9B 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 D1 DD 02 00 35 04 06 00 27 C6 21 65 E2 AF B8 7B 32 19 FB 0D 77 4E [18:21:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 2E EC 47 00 12 9B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 D1 DD 02 00 F4 03 04 00 8B 45 16 67 B6 04 01 00 00 96 C6 DF C4 93 DE D0 C8 [18:21:13]CommunicateWithHost err = 0 [18:21:13]CheckOFDResponse [18:21:13]1017 (14) - 77093643461234 [18:21:13]1041 (16) - 0000000000965340 [18:21:13]1040 (4) - 187857 [18:21:13]1012 (4) - 21.10.2024 12:14 [18:21:13]1206 (1) - 0 [18:21:13]OFD Sender: Remove packet 187857 [18:21:13]ProducePacketName [18:21:13]name=ofd_packets/00187857 [18:21:13]NVStorageDeleteData [18:21:13]OFD Sender: No OFD packet to send [18:21:13]*** Cut start [18:21:13]*** Partial cut [18:21:13]*** CUTSNS_PIN = 1 [18:21:13]*** CUTSNS_PIN = 0 [18:21:14]*** Brake cut motor [18:21:14]Read from MH i2c: 01 [18:21:14]MH_I2C_Read... [18:21:14]*** Stop cut motor [18:21:14]*** Cut end [18:21:14]Read from MH i2c: 01 07 00 [18:21:14]MH_I2C_Read... [18:21:14]Read from MH i2c: 01 07 00 73 7C 00 00 00 00 00 FF 0F 04 [18:21:14]process_action close_receipt done [18:21:14]requested_data is exist [18:21:14]produce_requested_data [18:21:14]requested_item fm.sn is exist - process it [18:21:14]wFMCommunicate request_size=4 [18:21:14]MH_SAM_APDU [18:21:14]CAPDU: 80 11 00 00 [18:21:14]Write to MH i2c: E2 08 00 74 7C 80 11 00 00 00 00 00 00 6A [18:21:14]Write i2c OK [18:21:14]MH_I2C_Read... [18:21:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:21:14]Read from MH i2c: E2 [18:21:14]MH_I2C_Read... [18:21:14]Read from MH i2c: E2 17 00 [18:21:14]MH_I2C_Read... [18:21:14]Read from MH i2c: E2 17 00 74 7C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 B8 [18:21:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [18:21:14]wFMCommunicate OK [18:21:14]requested_item fd.num is exist - process it [18:21:14]SAM_PROTO_GetFieldsCounters [18:21:14]wFMCommunicate request_size=4 [18:21:14]MH_SAM_APDU [18:21:14]CAPDU: 80 13 00 00 [18:21:14]Write to MH i2c: E2 08 00 75 7C 80 13 00 00 00 00 00 00 6D [18:21:14]Write i2c OK [18:21:14]MH_I2C_Read... [18:21:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:21:14]Read from MH i2c: E2 [18:21:14]MH_I2C_Read... [18:21:14]Read from MH i2c: E2 62 00 [18:21:14]MH_I2C_Read... [18:21:14]Read from MH i2c: E2 62 00 75 7C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 D1 DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 41 01 00 00 5E 04 04 00 41 01 00 00 57 04 04 00 42 01 00 00 19 04 04 00 00 00 00 00 90 00 B7 [18:21:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 D1 DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 41 01 00 00 5E 04 04 00 41 01 00 00 57 04 04 00 42 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:21:14]wFMCommunicate OK [18:21:14]SAM_PROTO_GetFieldsCounters done [18:21:14]requested_item shift.num is exist - process it [18:21:14]requested_item shift.opened is exist - process it [18:21:14]req_shift_opened [18:21:14]FM_GetShiftState [18:21:14]SAM_PROTO_GetShiftState [18:21:14]wFMCommunicate request_size=4 [18:21:14]MH_SAM_APDU [18:21:14]CAPDU: 80 13 01 00 [18:21:14]Write to MH i2c: E2 08 00 76 7C 80 13 01 00 00 00 00 00 6F [18:21:14]Write i2c OK [18:21:14]MH_I2C_Read... [18:21:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:21:14]Read from MH i2c: E2 [18:21:14]MH_I2C_Read... [18:21:14]Read from MH i2c: E2 0E 00 [18:21:14]MH_I2C_Read... [18:21:14]Read from MH i2c: E2 0E 00 76 7C 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 CE [18:21:14]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [18:21:14]wFMCommunicate OK [18:21:14]SAM_PROTO_GetShiftState done [18:21:14]FM_GetShiftState done [18:21:14]req_shift_opened done [18:21:14]requested_item shift.open_date is exist - process it [18:21:14]req_shift_open_date [18:21:14]req_shift_open_date done [18:21:14]produce_requested_data done [18:21:14]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187857,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [18:21:14]process_action_free close_receipt [18:21:14]json_value_free [18:21:14]json_value_free done [18:21:14]process_json_proto returns [18:21:14]Send response to host [18:21:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187857,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [18:21:14]free response buf [18:21:14]execute_script done [18:21:14]execute_script returns [18:21:14]free content buf [18:21:14]Sock 8.Close socket [18:21:14]Sock 8.Thread stoped [18:21:18]OFD Sender: No OFD packet to send [18:21:23]OFD Sender: No OFD packet to send [18:21:28]OFD Sender: No OFD packet to send [18:21:33]OFD Sender: No OFD packet to send [18:21:38]OFD Sender: No OFD packet to send [18:21:43]OFD Sender: No OFD packet to send [18:21:48]OFD Sender: No OFD packet to send [18:21:53]OFD Sender: No OFD packet to send [18:21:58]OFD Sender: No OFD packet to send [18:22:03]OFD Sender: No OFD packet to send [18:22:08]OFD Sender: No OFD packet to send [18:22:13]OFD Sender: No OFD packet to send [18:22:18]OFD Sender: No OFD packet to send [18:22:23]OFD Sender: No OFD packet to send [18:22:28]OFD Sender: No OFD packet to send [18:22:33]OFD Sender: No OFD packet to send [18:22:39]OFD Sender: No OFD packet to send [18:22:44]OFD Sender: No OFD packet to send [18:22:49]OFD Sender: No OFD packet to send [18:22:54]OFD Sender: No OFD packet to send [18:22:59]OFD Sender: No OFD packet to send [18:23:04]OFD Sender: No OFD packet to send [18:23:09]OFD Sender: No OFD packet to send [18:23:14]OFD Sender: No OFD packet to send [18:23:19]OFD Sender: No OFD packet to send [18:23:24]OFD Sender: No OFD packet to send [18:23:29]OFD Sender: No OFD packet to send [18:23:34]OFD Sender: No OFD packet to send [18:23:39]OFD Sender: No OFD packet to send [18:23:44]OFD Sender: No OFD packet to send [18:23:49]OFD Sender: No OFD packet to send [18:23:54]OFD Sender: No OFD packet to send [18:23:59]OFD Sender: No OFD packet to send [18:24:04]OFD Sender: No OFD packet to send [18:24:09]OFD Sender: No OFD packet to send [18:24:14]OFD Sender: No OFD packet to send [18:24:19]OFD Sender: No OFD packet to send [18:24:24]OFD Sender: No OFD packet to send [18:24:29]OFD Sender: No OFD packet to send [18:24:34]OFD Sender: No OFD packet to send [18:24:39]OFD Sender: No OFD packet to send [18:24:42]accept exits with 9 [18:24:42]New connection [18:24:42]New thread 3067157860 created [18:24:42]Thread 3067014500 joined [18:24:42]Waiting for new connection... [18:24:42] Sock 9.Parse request [18:24:42]Sock 9.Check first char [18:24:42]Sock 9.First char is OK [18:24:42]request: POST /json_proto HTTP/1.0 [18:24:42]Method: POST [18:24:42]URL: /json_proto [18:24:42]Method is POST - this is cgi request [18:24:42]url: /json_proto [18:24:42]query_string will be loaded in cgi processing [18:24:42]execute_cgi json_proto POST (null) [18:24:42]execute_cgi path=json_proto method=POST [18:24:42]POST find Content-Length [18:24:42]Host: 172.17.42.131:8080 [18:24:42]Content-Length: 769 [18:24:42]Content-Type: application/json [18:24:42] [18:24:42]POST finish read [18:24:42]Found Content-Length = 769 [18:24:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209910", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.22 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:24:42]execute_script... [18:24: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)209910", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.22 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:24:42]POST & json_proto [18:24:42]process_json_proto [18:24:42]json parsed OK: [18:24:42]protocol is kg_v1.0 [18:24:42]action value=close_receipt [18:24:42]process_action close_receipt [18:24:42]cmd_close_receipt [18:24:42]MH_GetDate [18:24:42]Write to MH i2c: F0 00 00 77 7C E2 [18:24:42]Write i2c OK [18:24:42]MH_I2C_Read... [18:24:42]Read from MH i2c: F0 [18:24:42]MH_I2C_Read... [18:24:42]Read from MH i2c: F0 09 00 [18:24:42]MH_I2C_Read... [18:24:42]Read from MH i2c: F0 09 00 77 7C 00 70 9C 16 67 A0 18 CA 66 5C [18:24:42]GetLastDocTimeStamp 1729534875 [18:24:42]current date 1729535088 [18:24:42]FM_GetShiftState [18:24:42]SAM_PROTO_GetShiftState [18:24:42]wFMCommunicate request_size=4 [18:24:42]MH_SAM_APDU [18:24:42]CAPDU: 80 13 01 00 [18:24:42]Write to MH i2c: E2 08 00 78 7C 80 13 01 00 00 00 00 00 71 [18:24:42]Write i2c OK [18:24:42]MH_I2C_Read... [18:24:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:24:42]Read from MH i2c: E2 [18:24:42]MH_I2C_Read... [18:24:42]Read from MH i2c: E2 0E 00 [18:24:42]MH_I2C_Read... [18:24:42]Read from MH i2c: E2 0E 00 78 7C 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 D0 [18:24:42]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [18:24:42]wFMCommunicate OK [18:24:42]SAM_PROTO_GetShiftState done [18:24:42]FM_GetShiftState done [18:24:42]opened in 1729469754 [18:24:42]opened+sec_in_day 1729556154 [18:24:42]quantity*price = 100021 [18:24:42]sum+1 = 100023 [18:24:42]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.22 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 0.00 Безнал.: 1000.22 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 322 21.10.2024 18:24 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000965340 ФД: 187858 ФПД: 151685996208321 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T182448&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187858&fm=151685996208321&tin=02508201610067®Number=0000000000100030&sum=100022 [18:24:43]StoreToDocumentArchive [18:24:43]shift 460 fd 187858 [18:24:43]save to /storage/0460/doc_00187858 [18:24:43]save last doc name /storage/0460/doc_00187858 to /storage/kkm_last_doc_name [18:24:43]save OK [18:24:43]Clear old archive folders... [18:24:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:24:43]tlvbuf is 0130A450 [18:24:43]SAM_PROTO_ClearQueue [18:24:43]wFMCommunicate request_size=4 [18:24:43]MH_SAM_APDU [18:24:43]CAPDU: 80 09 00 00 [18:24:43]Write to MH i2c: E2 08 00 85 7C 80 09 00 00 00 00 00 00 73 [18:24:43]Write i2c OK [18:24:43]MH_I2C_Read... [18:24:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:24:43]Read from MH i2c: E2 [18:24:43]MH_I2C_Read... [18:24:43]Read from MH i2c: E2 03 00 [18:24:43]MH_I2C_Read... [18:24:43]Read from MH i2c: E2 03 00 85 7C 00 90 00 75 [18:24:43]RAPDU: 90 00 [18:24:43]wFMCommunicate OK [18:24:43]SAM_PROTO_ClearQueue done [18:24:43]KKMCreateOFDPacket [18:24:43]OFDProtocolAddRootSTLVToBuf [18:24:43]FM_MakeSignedData [18:24:43]FM_MakeSignedData [18:24:43]SAM_PROTO_SignData [18:24:43]wFMCommunicate request_size=4 [18:24:43]MH_SAM_APDU [18:24:43]CAPDU: 80 0D 01 02 [18:24:43]Write to MH i2c: E2 08 00 86 7C 80 0D 01 02 00 00 00 00 7B [18:24:43]Write i2c OK [18:24:43]MH_I2C_Read... [18:24:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:24:44]Read from MH i2c: E2 [18:24:44]MH_I2C_Read... [18:24:44]Read from MH i2c: E2 03 00 [18:24:44]MH_I2C_Read... [18:24:44]Read from MH i2c: E2 03 00 86 7C 00 90 00 76 [18:24:44]RAPDU: 90 00 [18:24:44]wFMCommunicate OK [18:24:44]wFMCommunicate request_size=255 [18:24:44]MH_SAM_APDU [18:24:44]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B6 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 01 00 00 F4 03 04 00 70 9C 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 D2 DD 02 00 35 04 06 00 89 [18:24:44]Write to MH i2c: E2 02 01 87 7C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B6 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 01 00 00 F4 03 04 00 70 9C 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 D2 DD 02 00 35 04 06 00 89 00 00 0A [18:24:44]Write i2c OK [18:24:44]MH_I2C_Read... [18:24:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:24:44]Read from MH i2c: E2 [18:24:44]MH_I2C_Read... [18:24:44]Read from MH i2c: E2 03 00 [18:24:44]MH_I2C_Read... [18:24:44]Read from MH i2c: E2 03 00 87 7C 00 90 00 77 [18:24:44]RAPDU: 90 00 [18:24:44]wFMCommunicate OK [18:24:44]wFMCommunicate request_size=10 [18:24:44]MH_SAM_APDU [18:24:44]CAPDU: 80 0D 02 02 05 F5 25 EB E0 C1 [18:24:44]Write to MH i2c: E2 0D 00 88 7C 80 0D 02 02 05 00 F5 25 EB E0 C1 00 00 2E [18:24:44]Write i2c OK [18:24:44]MH_I2C_Read... [18:24:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:24:44]Read from MH i2c: E2 [18:24:44]MH_I2C_Read... [18:24:44]Read from MH i2c: E2 03 00 [18:24:44]MH_I2C_Read... [18:24:44]Read from MH i2c: E2 03 00 88 7C 00 90 00 78 [18:24:44]RAPDU: 90 00 [18:24:44]wFMCommunicate OK [18:24:44]wFMCommunicate request_size=4 [18:24:44]MH_SAM_APDU [18:24:44]CAPDU: 80 0D 03 02 [18:24:44]Write to MH i2c: E2 08 00 89 7C 80 0D 03 02 00 00 00 00 80 [18:24:44]Write i2c OK [18:24:44]MH_I2C_Read... [18:24:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:24:44]Read from MH i2c: E2 [18:24:44]MH_I2C_Read... [18:24:44]Read from MH i2c: E2 0B 00 [18:24:44]MH_I2C_Read... [18:24:44]Read from MH i2c: E2 0B 00 89 7C 00 80 97 C3 44 C7 F0 AF 33 90 00 38 [18:24:44]RAPDU: 80 97 C3 44 C7 F0 AF 33 90 00 [18:24:44]wFMCommunicate OK [18:24:44]SAM_PROTO_SignData done [18:24:44]FM_MakeSignedData done [18:24:44]CreateOFDProtocolMessage [18:24:44]wFMCommunicate request_size=4 [18:24:44]MH_SAM_APDU [18:24:44]CAPDU: 80 11 00 00 [18:24:44]Write to MH i2c: E2 08 00 8A 7C 80 11 00 00 00 00 00 00 80 [18:24:44]Write i2c OK [18:24:44]MH_I2C_Read... [18:24:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:24:44]Read from MH i2c: E2 [18:24:44]MH_I2C_Read... [18:24:44]Read from MH i2c: E2 17 00 [18:24:44]MH_I2C_Read... [18:24:44]Read from MH i2c: E2 17 00 8A 7C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 CE [18:24:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [18:24:44]wFMCommunicate OK [18:24:44]CreateOFDProtocolMessage done [18:24:44]OFDSenderStorePacket 187858 [18:24:44]StoreOFDPacket docnum=187858 [18:24:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 FF 68 07 01 F7 74 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B6 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 01 00 00 F4 03 04 00 70 9C 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 D2 DD 02 00 35 04 06 00 89 F5 25 EB E0 C1 80 97 C3 44 C7 F0 AF 33 [18:24:44]CheckFolder [18:24:44]dirname=/storage/ofd_packets [18:24:44]CheckFolder done [18:24:44]ProducePacketName [18:24:44]name=ofd_packets/00187858 [18:24:44]NVStorageSaveData ofd_packets/00187858 [18:24:44]File name is /storage/ofd_packets/00187858 [18:24:44]Write 301 bytes [18:24:44]NVStorageSaveData done [18:24:44]OFDSenderStorePacket done [18:24:44]KKMCreateOFDPacket done [18:24:44]NVStorageSaveData kkm_last_timestamp [18:24:44]File name is /storage/kkm_last_timestamp [18:24:44]Write 4 bytes [18:24:44]NVStorageSaveData done [18:24:44]ExternCall_PrintAddStr [18:24:44]wPrintStart [18:24:44]Write to MH i2c: 01 00 00 8B 7C 07 [18:24:44]Write i2c OK [18:24:44]MH_I2C_Read... [18:24:44]Read from MH i2c: 01 [18:24:44]MH_I2C_Read... [18:24:44]Read from MH i2c: 01 07 00 [18:24:44]MH_I2C_Read... [18:24:44]Read from MH i2c: 01 07 00 8B 7C 00 00 00 00 00 FF 0F 1C [18:24:44]RasterBufferAndPrint [18:24:44]line Счет N : (1)209910 [18:24:44]line ИНН: 02508201610067 [18:24:44]line Контрольно-Кассовый Чек [18:24:44]line ПРОДАЖА [18:24:44]line ТРК (МРК, ГНК) : 33 [18:24:44]line Товар: 2710124500 [18:24:44]line Аи-95-К-3 [18:24:44]line 13.480 * 74.20 [18:24:44]line = 1000.22 [18:24:44]line НДС 12% НСП 1% [18:24:44]line > о реализуемом товаре [18:24:44]line ИТОГО: 1000.22 [18:24:44]line НСП 1% : 8.85 [18:24:44]line НДС 12% : 106.22 [18:24:44]line Наличными: 0.00 [18:24:44]line Безнал.: 1000.22 [18:24:44]line Место: АЗС № 86 "Партнер Нефть" [18:24:44]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [18:24:44]line СНО: Общий режим [18:24:44]line Чек 322 21.10.2024 18:24 [18:24:44]line Смена: 460 ФФД: 1.0 [18:24:44]line ЗНМ: 0300000155 [18:24:44]line РНМ: 0000000000100030 [18:24:44]line Версия ККМ: 001 [18:24:44]line Платежная система: Mbank [18:24:44]line ФМ: 0000000000965340 [18:24:44]line ФД: 187858 [18:24:44]line ФПД: 151685996208321 [18:24:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T182448&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187858&fm=151685996208321&tin=02508201610067®Number=0000000000100030&sum=100022 [18:24:44]written 0, free lines is 4095 [18:24:44]OFD Sender: Processing packet 187858 [packets to send 1062, broken 1061] [18:24:44]ProducePacketName [18:24:44]name=ofd_packets/00187858 [18:24:44]OFD Sender: To server: pG, [18:24:44]CommunicateWithHost lk.salyk.kg:30040 [18:24:44]ConnectInit lk.salyk.kg [18:24:44]Connected sock=10 [18:24:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 FF 68 07 01 F7 74 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B6 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 01 00 00 F4 03 04 00 70 9C 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 D2 DD 02 00 35 04 06 00 89 F5 25 EB E0 C1 80 97 C3 44 C7 F0 AF 33 [18:24:44]Write to MH i2c: 01 00 00 B4 7C 30 [18:24:44]Write i2c OK [18:24:44]MH_I2C_Read... [18:24:44]Read from MH i2c: 01 [18:24:44]MH_I2C_Read... [18:24:44]Read from MH i2c: 01 07 00 [18:24:44]MH_I2C_Read... [18:24:44]Read from MH i2c: 01 07 00 B4 7C 00 00 00 00 00 9B 0C DE [18:24:44]RasterBufferAndPrint [18:24:44]line [18:24:44]line [18:24:44]line [18:24:44]line [18:24:44]line [18:24:44]written 0, free lines is 3230 [18:24:44]MH_Cut [18:24:44]Write to MH i2c: D1 01 00 BB 7C 01 09 [18:24:44]Write i2c OK [18:24:44]MH_I2C_Read... [18:24:44]Read from MH i2c: D1 [18:24:44]MH_I2C_Read... [18:24:44]Read from MH i2c: D1 01 00 [18:24:44]MH_I2C_Read... [18:24:44]Read from MH i2c: D1 01 00 BB 7C 00 08 [18:24:44]Write to MH i2c: 01 00 00 BC 7C 38 [18:24:44]Write i2c OK [18:24:44]MH_I2C_Read... [18:24:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 DD 37 47 00 84 E9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 D2 DD 02 00 F4 03 04 00 5F 46 16 67 B6 04 01 00 00 ED 03 07 CE 99 F0 16 32 [18:24:45]CommunicateWithHost err = 0 [18:24:45]CheckOFDResponse [18:24:45]1017 (14) - 77093643461234 [18:24:45]1041 (16) - 0000000000965340 [18:24:45]1040 (4) - 187858 [18:24:45]1012 (4) - 21.10.2024 12:17 [18:24:45]1206 (1) - 0 [18:24:45]OFD Sender: Remove packet 187858 [18:24:45]ProducePacketName [18:24:45]name=ofd_packets/00187858 [18:24:45]NVStorageDeleteData [18:24:45]OFD Sender: No OFD packet to send [18:24:46]*** Cut start [18:24:46]*** Partial cut [18:24:46]*** CUTSNS_PIN = 1 [18:24:46]*** CUTSNS_PIN = 0 [18:24:46]*** Brake cut motor [18:24:46]Read from MH i2c: 01 [18:24:46]MH_I2C_Read... [18:24:46]*** Stop cut motor [18:24:46]*** Cut end [18:24:46]Read from MH i2c: 01 07 00 [18:24:46]MH_I2C_Read... [18:24:46]Read from MH i2c: 01 07 00 BC 7C 00 00 00 00 00 FF 0F 4D [18:24:46]process_action close_receipt done [18:24:46]requested_data is exist [18:24:46]produce_requested_data [18:24:46]requested_item fm.sn is exist - process it [18:24:46]wFMCommunicate request_size=4 [18:24:46]MH_SAM_APDU [18:24:46]CAPDU: 80 11 00 00 [18:24:46]Write to MH i2c: E2 08 00 BD 7C 80 11 00 00 00 00 00 00 B3 [18:24:46]Write i2c OK [18:24:46]MH_I2C_Read... [18:24:46]Read from MH i2c: E2 [18:24:46]MH_I2C_Read... [18:24:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:24:46]Read from MH i2c: E2 17 00 [18:24:46]MH_I2C_Read... [18:24:46]Read from MH i2c: E2 17 00 BD 7C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 01 [18:24:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [18:24:46]wFMCommunicate OK [18:24:46]requested_item fd.num is exist - process it [18:24:46]SAM_PROTO_GetFieldsCounters [18:24:46]wFMCommunicate request_size=4 [18:24:46]MH_SAM_APDU [18:24:46]CAPDU: 80 13 00 00 [18:24:46]Write to MH i2c: E2 08 00 BE 7C 80 13 00 00 00 00 00 00 B6 [18:24:46]Write i2c OK [18:24:46]MH_I2C_Read... [18:24:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:24:46]Read from MH i2c: E2 [18:24:46]MH_I2C_Read... [18:24:46]Read from MH i2c: E2 62 00 [18:24:46]MH_I2C_Read... [18:24:46]Read from MH i2c: E2 62 00 BE 7C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 D2 DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 42 01 00 00 5E 04 04 00 42 01 00 00 57 04 04 00 43 01 00 00 19 04 04 00 00 00 00 00 90 00 04 [18:24:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 D2 DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 42 01 00 00 5E 04 04 00 42 01 00 00 57 04 04 00 43 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:24:46]wFMCommunicate OK [18:24:46]SAM_PROTO_GetFieldsCounters done [18:24:46]requested_item shift.num is exist - process it [18:24:46]requested_item shift.opened is exist - process it [18:24:46]req_shift_opened [18:24:46]FM_GetShiftState [18:24:46]SAM_PROTO_GetShiftState [18:24:46]wFMCommunicate request_size=4 [18:24:46]MH_SAM_APDU [18:24:46]CAPDU: 80 13 01 00 [18:24:46]Write to MH i2c: E2 08 00 BF 7C 80 13 01 00 00 00 00 00 B8 [18:24:46]Write i2c OK [18:24:46]MH_I2C_Read... [18:24:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:24:47]Read from MH i2c: E2 [18:24:47]MH_I2C_Read... [18:24:47]Read from MH i2c: E2 0E 00 [18:24:47]MH_I2C_Read... [18:24:47]Read from MH i2c: E2 0E 00 BF 7C 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 17 [18:24:47]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [18:24:47]wFMCommunicate OK [18:24:47]SAM_PROTO_GetShiftState done [18:24:47]FM_GetShiftState done [18:24:47]req_shift_opened done [18:24:47]requested_item shift.open_date is exist - process it [18:24:47]req_shift_open_date [18:24:47]req_shift_open_date done [18:24:47]produce_requested_data done [18:24:47]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187858,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [18:24:47]process_action_free close_receipt [18:24:47]json_value_free [18:24:47]json_value_free done [18:24:47]process_json_proto returns [18:24:47]Send response to host [18:24:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187858,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [18:24:47]free response buf [18:24:47]execute_script done [18:24:47]execute_script returns [18:24:47]free content buf [18:24:47]Sock 9.Close socket [18:24:47]Sock 9.Thread stoped [18:24:50]OFD Sender: No OFD packet to send [18:24:55]OFD Sender: No OFD packet to send [18:25:00]OFD Sender: No OFD packet to send [18:25:00]accept exits with 8 [18:25:00]New connection [18:25:00]New thread 3067014500 created [18:25:00]Thread 3067157860 joined [18:25:00]Waiting for new connection... [18:25:00] Sock 8.Parse request [18:25:00]Sock 8.Check first char [18:25:00]Sock 8.First char is OK [18:25:00]request: POST /json_proto HTTP/1.0 [18:25:00]Method: POST [18:25:00]URL: /json_proto [18:25:00]Method is POST - this is cgi request [18:25:00]url: /json_proto [18:25:00]query_string will be loaded in cgi processing [18:25:00]execute_cgi json_proto POST (null) [18:25:00]execute_cgi path=json_proto method=POST [18:25:00]POST find Content-Length [18:25:00]Host: 172.17.42.131:8080 [18:25:00]Content-Length: 766 [18:25:00]Content-Type: application/json [18:25:00] [18:25:00]POST finish read [18:25:00]Found Content-Length = 766 [18:25:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209911", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "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:25:00]execute_script... [18:25: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)209911", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "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:25:00]POST & json_proto [18:25:00]process_json_proto [18:25:00]json parsed OK: [18:25:00]protocol is kg_v1.0 [18:25:00]action value=close_receipt [18:25:00]process_action close_receipt [18:25:00]cmd_close_receipt [18:25:00]MH_GetDate [18:25:00]Write to MH i2c: F0 00 00 C0 7C 2B [18:25:00]Write i2c OK [18:25:00]MH_I2C_Read... [18:25:00]Read from MH i2c: F0 [18:25:00]MH_I2C_Read... [18:25:00]Read from MH i2c: F0 09 00 [18:25:00]MH_I2C_Read... [18:25:00]Read from MH i2c: F0 09 00 C0 7C 00 82 9C 16 67 A0 18 CA 66 B7 [18:25:00]GetLastDocTimeStamp 1729535088 [18:25:00]current date 1729535106 [18:25:00]FM_GetShiftState [18:25:00]SAM_PROTO_GetShiftState [18:25:00]wFMCommunicate request_size=4 [18:25:00]MH_SAM_APDU [18:25:00]CAPDU: 80 13 01 00 [18:25:00]Write to MH i2c: E2 08 00 C1 7C 80 13 01 00 00 00 00 00 BA [18:25:00]Write i2c OK [18:25:00]MH_I2C_Read... [18:25:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:25:00]Read from MH i2c: E2 [18:25:00]MH_I2C_Read... [18:25:00]Read from MH i2c: E2 0E 00 [18:25:00]MH_I2C_Read... [18:25:00]Read from MH i2c: E2 0E 00 C1 7C 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 19 [18:25:00]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [18:25:00]wFMCommunicate OK [18:25:00]SAM_PROTO_GetShiftState done [18:25:00]FM_GetShiftState done [18:25:00]opened in 1729469754 [18:25:00]opened+sec_in_day 1729556154 [18:25:00]quantity*price = 50041 [18:25:00]sum+1 = 50042 [18:25:00]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.41 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 0.00 Безнал.: 500.41 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 323 21.10.2024 18:25 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000965340 ФД: 187859 ФПД: 41146609708555 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T182506&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187859&fm=41146609708555&tin=02508201610067®Number=0000000000100030&sum=50041 [18:25:01]StoreToDocumentArchive [18:25:01]shift 460 fd 187859 [18:25:01]save to /storage/0460/doc_00187859 [18:25:01]save last doc name /storage/0460/doc_00187859 to /storage/kkm_last_doc_name [18:25:01]save OK [18:25:01]Clear old archive folders... [18:25:01]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:25:01]tlvbuf is 012D0AB0 [18:25:01]SAM_PROTO_ClearQueue [18:25:01]wFMCommunicate request_size=4 [18:25:01]MH_SAM_APDU [18:25:01]CAPDU: 80 09 00 00 [18:25:01]Write to MH i2c: E2 08 00 CE 7C 80 09 00 00 00 00 00 00 BC [18:25:01]Write i2c OK [18:25:01]MH_I2C_Read... [18:25:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:25:02]Read from MH i2c: E2 [18:25:02]MH_I2C_Read... [18:25:02]Read from MH i2c: E2 03 00 [18:25:02]MH_I2C_Read... [18:25:02]Read from MH i2c: E2 03 00 CE 7C 00 90 00 BE [18:25:02]RAPDU: 90 00 [18:25:02]wFMCommunicate OK [18:25:02]SAM_PROTO_ClearQueue done [18:25:02]KKMCreateOFDPacket [18:25:02]OFDProtocolAddRootSTLVToBuf [18:25:02]FM_MakeSignedData [18:25:02]FM_MakeSignedData [18:25:02]SAM_PROTO_SignData [18:25:02]wFMCommunicate request_size=4 [18:25:02]MH_SAM_APDU [18:25:02]CAPDU: 80 0D 01 02 [18:25:02]Write to MH i2c: E2 08 00 CF 7C 80 0D 01 02 00 00 00 00 C4 [18:25:02]Write i2c OK [18:25:02]MH_I2C_Read... [18:25:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:25:02]Read from MH i2c: E2 [18:25:02]MH_I2C_Read... [18:25:02]Read from MH i2c: E2 03 00 [18:25:02]MH_I2C_Read... [18:25:02]Read from MH i2c: E2 03 00 CF 7C 00 90 00 BF [18:25:02]RAPDU: 90 00 [18:25:02]wFMCommunicate OK [18:25:02]wFMCommunicate request_size=255 [18:25:02]MH_SAM_APDU [18:25: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 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 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 43 01 00 00 F4 03 04 00 82 9C 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 D3 DD 02 00 35 04 06 00 25 [18:25:02]Write to MH i2c: E2 02 01 D0 7C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 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 43 01 00 00 F4 03 04 00 82 9C 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 D3 DD 02 00 35 04 06 00 25 00 00 0C [18:25:02]Write i2c OK [18:25:02]MH_I2C_Read... [18:25:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:25:02]Read from MH i2c: E2 [18:25:02]MH_I2C_Read... [18:25:02]Read from MH i2c: E2 03 00 [18:25:02]MH_I2C_Read... [18:25:02]Read from MH i2c: E2 03 00 D0 7C 00 90 00 C0 [18:25:02]RAPDU: 90 00 [18:25:02]wFMCommunicate OK [18:25:02]wFMCommunicate request_size=10 [18:25:02]MH_SAM_APDU [18:25:02]CAPDU: 80 0D 02 02 05 6C 31 0E 2E 0B [18:25:02]Write to MH i2c: E2 0D 00 D1 7C 80 0D 02 02 05 00 6C 31 0E 2E 0B 00 00 B5 [18:25:02]Write i2c OK [18:25:02]MH_I2C_Read... [18:25:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:25:02]Read from MH i2c: E2 [18:25:02]MH_I2C_Read... [18:25:02]Read from MH i2c: E2 03 00 [18:25:02]MH_I2C_Read... [18:25:02]Read from MH i2c: E2 03 00 D1 7C 00 90 00 C1 [18:25:02]RAPDU: 90 00 [18:25:02]wFMCommunicate OK [18:25:02]wFMCommunicate request_size=4 [18:25:02]MH_SAM_APDU [18:25:02]CAPDU: 80 0D 03 02 [18:25:02]Write to MH i2c: E2 08 00 D2 7C 80 0D 03 02 00 00 00 00 C9 [18:25:02]Write i2c OK [18:25:02]MH_I2C_Read... [18:25:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:25:02]Read from MH i2c: E2 [18:25:02]MH_I2C_Read... [18:25:02]Read from MH i2c: E2 0B 00 [18:25:02]MH_I2C_Read... [18:25:02]Read from MH i2c: E2 0B 00 D2 7C 00 E5 D1 81 56 18 EC 96 9F 90 00 90 [18:25:02]RAPDU: E5 D1 81 56 18 EC 96 9F 90 00 [18:25:02]wFMCommunicate OK [18:25:02]SAM_PROTO_SignData done [18:25:02]FM_MakeSignedData done [18:25:02]CreateOFDProtocolMessage [18:25:02]wFMCommunicate request_size=4 [18:25:02]MH_SAM_APDU [18:25:02]CAPDU: 80 11 00 00 [18:25:02]Write to MH i2c: E2 08 00 D3 7C 80 11 00 00 00 00 00 00 C9 [18:25:02]Write i2c OK [18:25:02]MH_I2C_Read... [18:25:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:25:02]Read from MH i2c: E2 [18:25:02]MH_I2C_Read... [18:25:02]Read from MH i2c: E2 17 00 [18:25:02]MH_I2C_Read... [18:25:02]Read from MH i2c: E2 17 00 D3 7C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 17 [18:25:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [18:25:02]wFMCommunicate OK [18:25:02]CreateOFDProtocolMessage done [18:25:02]OFDSenderStorePacket 187859 [18:25:02]StoreOFDPacket docnum=187859 [18:25:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 C7 14 07 01 33 8B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 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 43 01 00 00 F4 03 04 00 82 9C 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 D3 DD 02 00 35 04 06 00 25 6C 31 0E 2E 0B E5 D1 81 56 18 EC 96 9F [18:25:02]CheckFolder [18:25:02]dirname=/storage/ofd_packets [18:25:02]CheckFolder done [18:25:02]ProducePacketName [18:25:02]name=ofd_packets/00187859 [18:25:02]NVStorageSaveData ofd_packets/00187859 [18:25:02]File name is /storage/ofd_packets/00187859 [18:25:02]Write 301 bytes [18:25:02]NVStorageSaveData done [18:25:02]OFDSenderStorePacket done [18:25:02]KKMCreateOFDPacket done [18:25:02]NVStorageSaveData kkm_last_timestamp [18:25:02]File name is /storage/kkm_last_timestamp [18:25:02]Write 4 bytes [18:25:02]NVStorageSaveData done [18:25:02]ExternCall_PrintAddStr [18:25:02]wPrintStart [18:25:02]Write to MH i2c: 01 00 00 D4 7C 50 [18:25:02]Write i2c OK [18:25:02]MH_I2C_Read... [18:25:02]Read from MH i2c: 01 [18:25:02]MH_I2C_Read... [18:25:02]Read from MH i2c: 01 07 00 [18:25:02]MH_I2C_Read... [18:25:02]Read from MH i2c: 01 07 00 D4 7C 00 00 00 00 00 FF 0F 65 [18:25:02]RasterBufferAndPrint [18:25:02]line Счет N : (1)209911 [18:25:02]line ИНН: 02508201610067 [18:25:02]line Контрольно-Кассовый Чек [18:25:02]line ПРОДАЖА [18:25:02]line ТРК (МРК, ГНК) : 42 [18:25:02]line Товар: 2710124130 [18:25:02]line Аи-92-К-3 [18:25:02]line 7.480 * 66.90 [18:25:02]line = 500.41 [18:25:02]line НДС 12% НСП 1% [18:25:02]line > о реализуемом товаре [18:25:02]line ИТОГО: 500.41 [18:25:02]line НСП 1% : 4.43 [18:25:02]line НДС 12% : 53.14 [18:25:02]line Наличными: 0.00 [18:25:02]line Безнал.: 500.41 [18:25:02]line Место: АЗС № 86 "Партнер Нефть" [18:25:02]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [18:25:02]line СНО: Общий режим [18:25:02]line Чек 323 21.10.2024 18:25 [18:25:02]line Смена: 460 ФФД: 1.0 [18:25:02]line ЗНМ: 0300000155 [18:25:02]line РНМ: 0000000000100030 [18:25:02]line Версия ККМ: 001 [18:25:02]line Платежная система: Mbank [18:25:02]line ФМ: 0000000000965340 [18:25:02]line ФД: 187859 [18:25:02]line ФПД: 41146609708555 [18:25:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T182506&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187859&fm=41146609708555&tin=02508201610067®Number=0000000000100030&sum=50041 [18:25:02]written 0, free lines is 4095 [18:25:02]OFD Sender: Processing packet 187859 [packets to send 1062, broken 1061] [18:25:02]ProducePacketName [18:25:02]name=ofd_packets/00187859 [18:25:02]OFD Sender: To server: pG, [18:25:02]CommunicateWithHost lk.salyk.kg:30040 [18:25:02]ConnectInit lk.salyk.kg [18:25:02]Connected sock=10 [18:25:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 C7 14 07 01 33 8B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 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 43 01 00 00 F4 03 04 00 82 9C 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 D3 DD 02 00 35 04 06 00 25 6C 31 0E 2E 0B E5 D1 81 56 18 EC 96 9F [18:25:03]Write to MH i2c: 01 00 00 FD 7C 79 [18:25:03]Write i2c OK [18:25:03]MH_I2C_Read... [18:25:03]Read from MH i2c: 01 [18:25:03]MH_I2C_Read... [18:25:03]Read from MH i2c: 01 07 00 [18:25:03]MH_I2C_Read... [18:25:03]Read from MH i2c: 01 07 00 FD 7C 00 00 00 00 00 91 0C 1D [18:25:03]RasterBufferAndPrint [18:25:03]line [18:25:03]line [18:25:03]line [18:25:03]line [18:25:03]line [18:25:03]written 0, free lines is 3222 [18:25:03]MH_Cut [18:25:03]Write to MH i2c: D1 01 00 04 7D 01 53 [18:25:03]Write i2c OK [18:25:03]MH_I2C_Read... [18:25:03]Read from MH i2c: D1 [18:25:03]MH_I2C_Read... [18:25:03]Read from MH i2c: D1 01 00 [18:25:03]MH_I2C_Read... [18:25:03]Read from MH i2c: D1 01 00 04 7D 00 52 [18:25:03]Write to MH i2c: 01 00 00 05 7D 82 [18:25:03]Write i2c OK [18:25:03]MH_I2C_Read... [18:25:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 14 37 47 00 C4 7E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 D3 DD 02 00 F4 03 04 00 71 46 16 67 B6 04 01 00 00 EA 62 41 4E CC 19 F3 66 [18:25:03]CommunicateWithHost err = 0 [18:25:03]CheckOFDResponse [18:25:03]1017 (14) - 77093643461234 [18:25:03]1041 (16) - 0000000000965340 [18:25:03]1040 (4) - 187859 [18:25:03]1012 (4) - 21.10.2024 12:17 [18:25:03]1206 (1) - 0 [18:25:03]OFD Sender: Remove packet 187859 [18:25:03]ProducePacketName [18:25:03]name=ofd_packets/00187859 [18:25:03]NVStorageDeleteData [18:25:03]OFD Sender: No OFD packet to send [18:25:04]*** Cut start [18:25:04]*** Partial cut [18:25:04]*** CUTSNS_PIN = 1 [18:25:04]*** CUTSNS_PIN = 0 [18:25:04]*** Brake cut motor [18:25:04]Read from MH i2c: 01 [18:25:04]MH_I2C_Read... [18:25:04]*** Stop cut motor [18:25:04]*** Cut end [18:25:04]Read from MH i2c: 01 07 00 [18:25:04]MH_I2C_Read... [18:25:04]Read from MH i2c: 01 07 00 05 7D 00 00 00 00 00 FF 0F 97 [18:25:04]process_action close_receipt done [18:25:04]requested_data is exist [18:25:04]produce_requested_data [18:25:04]requested_item fm.sn is exist - process it [18:25:04]wFMCommunicate request_size=4 [18:25:04]MH_SAM_APDU [18:25:04]CAPDU: 80 11 00 00 [18:25:04]Write to MH i2c: E2 08 00 06 7D 80 11 00 00 00 00 00 00 FD [18:25:04]Write i2c OK [18:25:04]MH_I2C_Read... [18:25:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:25:04]Read from MH i2c: E2 [18:25:04]MH_I2C_Read... [18:25:04]Read from MH i2c: E2 17 00 [18:25:04]MH_I2C_Read... [18:25:04]Read from MH i2c: E2 17 00 06 7D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 4B [18:25:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [18:25:04]wFMCommunicate OK [18:25:04]requested_item fd.num is exist - process it [18:25:04]SAM_PROTO_GetFieldsCounters [18:25:04]wFMCommunicate request_size=4 [18:25:04]MH_SAM_APDU [18:25:04]CAPDU: 80 13 00 00 [18:25:04]Write to MH i2c: E2 08 00 07 7D 80 13 00 00 00 00 00 00 00 [18:25:04]Write i2c OK [18:25:04]MH_I2C_Read... [18:25:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:25:05]Read from MH i2c: E2 [18:25:05]MH_I2C_Read... [18:25:05]Read from MH i2c: E2 62 00 [18:25:05]MH_I2C_Read... [18:25:05]Read from MH i2c: E2 62 00 07 7D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 D3 DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 43 01 00 00 5E 04 04 00 43 01 00 00 57 04 04 00 44 01 00 00 19 04 04 00 00 00 00 00 90 00 52 [18:25:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 D3 DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 43 01 00 00 5E 04 04 00 43 01 00 00 57 04 04 00 44 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:25:05]wFMCommunicate OK [18:25:05]SAM_PROTO_GetFieldsCounters done [18:25:05]requested_item shift.num is exist - process it [18:25:05]requested_item shift.opened is exist - process it [18:25:05]req_shift_opened [18:25:05]FM_GetShiftState [18:25:05]SAM_PROTO_GetShiftState [18:25:05]wFMCommunicate request_size=4 [18:25:05]MH_SAM_APDU [18:25:05]CAPDU: 80 13 01 00 [18:25:05]Write to MH i2c: E2 08 00 08 7D 80 13 01 00 00 00 00 00 02 [18:25:05]Write i2c OK [18:25:05]MH_I2C_Read... [18:25:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:25:05]Read from MH i2c: E2 [18:25:05]MH_I2C_Read... [18:25:05]Read from MH i2c: E2 0E 00 [18:25:05]MH_I2C_Read... [18:25:05]Read from MH i2c: E2 0E 00 08 7D 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 61 [18:25:05]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [18:25:05]wFMCommunicate OK [18:25:05]SAM_PROTO_GetShiftState done [18:25:05]FM_GetShiftState done [18:25:05]req_shift_opened done [18:25:05]requested_item shift.open_date is exist - process it [18:25:05]req_shift_open_date [18:25:05]req_shift_open_date done [18:25:05]produce_requested_data done [18:25:05]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187859,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [18:25:05]process_action_free close_receipt [18:25:05]json_value_free [18:25:05]json_value_free done [18:25:05]process_json_proto returns [18:25:05]Send response to host [18:25:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187859,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [18:25:05]free response buf [18:25:05]execute_script done [18:25:05]execute_script returns [18:25:05]free content buf [18:25:05]Sock 8.Close socket [18:25:05]Sock 8.Thread stoped [18:25:08]OFD Sender: No OFD packet to send [18:25:13]OFD Sender: No OFD packet to send [18:25:18]OFD Sender: No OFD packet to send [18:25:23]OFD Sender: No OFD packet to send [18:25:28]OFD Sender: No OFD packet to send [18:25:33]OFD Sender: No OFD packet to send [18:25:38]OFD Sender: No OFD packet to send [18:25:43]OFD Sender: No OFD packet to send [18:25:48]OFD Sender: No OFD packet to send [18:25:53]OFD Sender: No OFD packet to send [18:25:58]OFD Sender: No OFD packet to send [18:26:03]OFD Sender: No OFD packet to send [18:26:08]OFD Sender: No OFD packet to send [18:26:14]OFD Sender: No OFD packet to send [18:26:19]OFD Sender: No OFD packet to send [18:26:24]OFD Sender: No OFD packet to send [18:26:29]OFD Sender: No OFD packet to send [18:26:34]OFD Sender: No OFD packet to send [18:26:39]OFD Sender: No OFD packet to send [18:26:44]OFD Sender: No OFD packet to send [18:26:49]OFD Sender: No OFD packet to send [18:26:54]OFD Sender: No OFD packet to send [18:26:59]OFD Sender: No OFD packet to send [18:27:04]OFD Sender: No OFD packet to send [18:27:09]OFD Sender: No OFD packet to send [18:27:14]OFD Sender: No OFD packet to send [18:27:19]OFD Sender: No OFD packet to send [18:27:24]OFD Sender: No OFD packet to send [18:27:29]OFD Sender: No OFD packet to send [18:27:34]OFD Sender: No OFD packet to send [18:27:39]OFD Sender: No OFD packet to send [18:27:44]OFD Sender: No OFD packet to send [18:27:49]OFD Sender: No OFD packet to send [18:27:54]OFD Sender: No OFD packet to send [18:27:59]OFD Sender: No OFD packet to send [18:28:04]OFD Sender: No OFD packet to send [18:28:08]accept exits with 9 [18:28:08]New connection [18:28:08]New thread 3067157860 created [18:28:08]Thread 3067014500 joined [18:28:08]Waiting for new connection... [18:28:08] Sock 9.Parse request [18:28:08]Sock 9.Check first char [18:28:08]Sock 9.First char is OK [18:28:08]request: POST /json_proto HTTP/1.0 [18:28:08]Method: POST [18:28:08]URL: /json_proto [18:28:08]Method is POST - this is cgi request [18:28:08]url: /json_proto [18:28:08]query_string will be loaded in cgi processing [18:28:08]execute_cgi json_proto POST (null) [18:28:08]execute_cgi path=json_proto method=POST [18:28:08]POST find Content-Length [18:28:08]Host: 172.17.42.131:8080 [18:28:08]Content-Length: 754 [18:28:08]Content-Type: application/json [18:28:08] [18:28:08]POST finish read [18:28:08]Found Content-Length = 754 [18:28:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209912", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 0.00, "quantity" : 25.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" ] } } [18:28:08]execute_script... [18:28: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)209912", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 0.00, "quantity" : 25.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" ] } } [18:28:08]POST & json_proto [18:28:08]process_json_proto [18:28:08]json parsed OK: [18:28:08]protocol is kg_v1.0 [18:28:08]action value=close_receipt [18:28:08]process_action close_receipt [18:28:08]cmd_close_receipt [18:28:08]MH_GetDate [18:28:08]Write to MH i2c: F0 00 00 09 7D 75 [18:28:08]Write i2c OK [18:28:08]MH_I2C_Read... [18:28:08]Read from MH i2c: F0 [18:28:08]MH_I2C_Read... [18:28:08]Read from MH i2c: F0 09 00 [18:28:08]MH_I2C_Read... [18:28:08]Read from MH i2c: F0 09 00 09 7D 00 3D 9D 16 67 A0 18 CA 66 BD [18:28:08]GetLastDocTimeStamp 1729535106 [18:28:08]current date 1729535293 [18:28:08]FM_GetShiftState [18:28:08]SAM_PROTO_GetShiftState [18:28:08]wFMCommunicate request_size=4 [18:28:08]MH_SAM_APDU [18:28:08]CAPDU: 80 13 01 00 [18:28:08]Write to MH i2c: E2 08 00 0A 7D 80 13 01 00 00 00 00 00 04 [18:28:08]Write i2c OK [18:28:08]MH_I2C_Read... [18:28:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:28:08]Read from MH i2c: E2 [18:28:08]MH_I2C_Read... [18:28:08]Read from MH i2c: E2 0E 00 [18:28:08]MH_I2C_Read... [18:28:08]Read from MH i2c: E2 0E 00 0A 7D 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 63 [18:28:08]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [18:28:08]wFMCommunicate OK [18:28:08]SAM_PROTO_GetShiftState done [18:28:08]FM_GetShiftState done [18:28:08]opened in 1729469754 [18:28:08]opened+sec_in_day 1729556154 [18:28:08]quantity*price = 0 [18:28:08]sum+1 = 1 [18:28:08]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 324 21.10.2024 18:28 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Талоны: ТК ГПНА Online 30097846 ФМ: 0000000000965340 ФД: 187860 ФПД: 62377457791417 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T182813&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187860&fm=62377457791417&tin=02508201610067®Number=0000000000100030&sum=0 [18:28:09]StoreToDocumentArchive [18:28:09]shift 460 fd 187860 [18:28:09]save to /storage/0460/doc_00187860 [18:28:09]save last doc name /storage/0460/doc_00187860 to /storage/kkm_last_doc_name [18:28:09]save OK [18:28:09]Clear old archive folders... [18:28:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:28:09]tlvbuf is 01090190 [18:28:09]SAM_PROTO_ClearQueue [18:28:09]wFMCommunicate request_size=4 [18:28:09]MH_SAM_APDU [18:28:09]CAPDU: 80 09 00 00 [18:28:09]Write to MH i2c: E2 08 00 17 7D 80 09 00 00 00 00 00 00 06 [18:28:09]Write i2c OK [18:28:09]MH_I2C_Read... [18:28:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:28:09]Read from MH i2c: E2 [18:28:09]MH_I2C_Read... [18:28:09]Read from MH i2c: E2 03 00 [18:28:09]MH_I2C_Read... [18:28:09]Read from MH i2c: E2 03 00 17 7D 00 90 00 08 [18:28:09]RAPDU: 90 00 [18:28:09]wFMCommunicate OK [18:28:09]SAM_PROTO_ClearQueue done [18:28:09]KKMCreateOFDPacket [18:28:09]OFDProtocolAddRootSTLVToBuf [18:28:09]FM_MakeSignedData [18:28:09]FM_MakeSignedData [18:28:09]SAM_PROTO_SignData [18:28:09]wFMCommunicate request_size=4 [18:28:09]MH_SAM_APDU [18:28:09]CAPDU: 80 0D 01 02 [18:28:09]Write to MH i2c: E2 08 00 18 7D 80 0D 01 02 00 00 00 00 0E [18:28:09]Write i2c OK [18:28:09]MH_I2C_Read... [18:28:09]OFD Sender: No OFD packet to send [18:28:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:28:09]Read from MH i2c: E2 [18:28:09]MH_I2C_Read... [18:28:09]Read from MH i2c: E2 03 00 [18:28:09]MH_I2C_Read... [18:28:09]Read from MH i2c: E2 03 00 18 7D 00 90 00 09 [18:28:09]RAPDU: 90 00 [18:28:09]wFMCommunicate OK [18:28:09]wFMCommunicate request_size=255 [18:28:09]MH_SAM_APDU [18:28:09]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 A8 61 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 44 01 00 00 F4 03 04 00 3D 9D 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 D4 DD 02 00 35 04 06 00 38 [18:28:09]Write to MH i2c: E2 02 01 19 7D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 A8 61 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 44 01 00 00 F4 03 04 00 3D 9D 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 D4 DD 02 00 35 04 06 00 38 00 00 59 [18:28:09]Write i2c OK [18:28:09]MH_I2C_Read... [18:28:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:28:09]Read from MH i2c: E2 [18:28:09]MH_I2C_Read... [18:28:09]Read from MH i2c: E2 03 00 [18:28:09]MH_I2C_Read... [18:28:09]Read from MH i2c: E2 03 00 19 7D 00 90 00 0A [18:28:09]RAPDU: 90 00 [18:28:09]wFMCommunicate OK [18:28:09]wFMCommunicate request_size=10 [18:28:09]MH_SAM_APDU [18:28:09]CAPDU: 80 0D 02 02 05 BB 62 36 B1 B9 [18:28:09]Write to MH i2c: E2 0D 00 1A 7D 80 0D 02 02 05 00 BB 62 36 B1 B9 00 00 D8 [18:28:09]Write i2c OK [18:28:09]MH_I2C_Read... [18:28:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:28:09]Read from MH i2c: E2 [18:28:09]MH_I2C_Read... [18:28:09]Read from MH i2c: E2 03 00 [18:28:09]MH_I2C_Read... [18:28:09]Read from MH i2c: E2 03 00 1A 7D 00 90 00 0B [18:28:09]RAPDU: 90 00 [18:28:09]wFMCommunicate OK [18:28:09]wFMCommunicate request_size=4 [18:28:09]MH_SAM_APDU [18:28:09]CAPDU: 80 0D 03 02 [18:28:09]Write to MH i2c: E2 08 00 1B 7D 80 0D 03 02 00 00 00 00 13 [18:28:09]Write i2c OK [18:28:09]MH_I2C_Read... [18:28:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:28:09]Read from MH i2c: E2 [18:28:09]MH_I2C_Read... [18:28:09]Read from MH i2c: E2 0B 00 [18:28:09]MH_I2C_Read... [18:28:09]Read from MH i2c: E2 0B 00 1B 7D 00 9C 1E 59 9D FC 63 F3 3F 90 00 55 [18:28:09]RAPDU: 9C 1E 59 9D FC 63 F3 3F 90 00 [18:28:09]wFMCommunicate OK [18:28:09]SAM_PROTO_SignData done [18:28:09]FM_MakeSignedData done [18:28:09]CreateOFDProtocolMessage [18:28:09]wFMCommunicate request_size=4 [18:28:09]MH_SAM_APDU [18:28:09]CAPDU: 80 11 00 00 [18:28:09]Write to MH i2c: E2 08 00 1C 7D 80 11 00 00 00 00 00 00 13 [18:28:09]Write i2c OK [18:28:09]MH_I2C_Read... [18:28:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:28:10]Read from MH i2c: E2 [18:28:10]MH_I2C_Read... [18:28:10]Read from MH i2c: E2 17 00 [18:28:10]MH_I2C_Read... [18:28:10]Read from MH i2c: E2 17 00 1C 7D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 61 [18:28:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [18:28:10]wFMCommunicate OK [18:28:10]CreateOFDProtocolMessage done [18:28:10]OFDSenderStorePacket 187860 [18:28:10]StoreOFDPacket docnum=187860 [18:28:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 C0 7C 07 01 C8 0F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 A8 61 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 44 01 00 00 F4 03 04 00 3D 9D 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 D4 DD 02 00 35 04 06 00 38 BB 62 36 B1 B9 9C 1E 59 9D FC 63 F3 3F [18:28:10]CheckFolder [18:28:10]dirname=/storage/ofd_packets [18:28:10]CheckFolder done [18:28:10]ProducePacketName [18:28:10]name=ofd_packets/00187860 [18:28:10]NVStorageSaveData ofd_packets/00187860 [18:28:10]File name is /storage/ofd_packets/00187860 [18:28:10]Write 301 bytes [18:28:10]NVStorageSaveData done [18:28:10]OFDSenderStorePacket done [18:28:10]KKMCreateOFDPacket done [18:28:10]NVStorageSaveData kkm_last_timestamp [18:28:10]File name is /storage/kkm_last_timestamp [18:28:10]Write 4 bytes [18:28:10]NVStorageSaveData done [18:28:10]ExternCall_PrintAddStr [18:28:10]wPrintStart [18:28:10]Write to MH i2c: 01 00 00 1D 7D 9A [18:28:10]Write i2c OK [18:28:10]MH_I2C_Read... [18:28:10]Read from MH i2c: 01 [18:28:10]MH_I2C_Read... [18:28:10]Read from MH i2c: 01 07 00 [18:28:10]MH_I2C_Read... [18:28:10]Read from MH i2c: 01 07 00 1D 7D 00 00 00 00 00 FF 0F AF [18:28:10]RasterBufferAndPrint [18:28:10]line Счет N : (1)209912 [18:28:10]line ИНН: 02508201610067 [18:28:10]line Контрольно-Кассовый Чек [18:28:10]line ПРОДАЖА [18:28:10]line ТРК (МРК, ГНК) : 12 [18:28:10]line Товар: 2710124130 [18:28:10]line Аи-92-К-3 [18:28:10]line 25.000 * 0.00 [18:28:10]line = 0.00 [18:28:10]line НДС 12% НСП 1% [18:28:10]line > о реализуемом товаре [18:28:10]line ИТОГО: 0.00 [18:28:10]line НСП 1% : 0.00 [18:28:10]line НДС 12% : 0.00 [18:28:10]line Наличными: 0.00 [18:28:10]line Безнал.: 0.00 [18:28:10]line Место: АЗС № 86 "Партнер Нефть" [18:28:10]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [18:28:10]line СНО: Общий режим [18:28:10]line Чек 324 21.10.2024 18:28 [18:28:10]line Смена: 460 ФФД: 1.0 [18:28:10]line ЗНМ: 0300000155 [18:28:10]line РНМ: 0000000000100030 [18:28:10]line Версия ККМ: 001 [18:28:10]line Талоны: ТК ГПНА Online [18:28:10]line 30097846 [18:28:10]line ФМ: 0000000000965340 [18:28:10]line ФД: 187860 [18:28:10]line ФПД: 62377457791417 [18:28:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T182813&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187860&fm=62377457791417&tin=02508201610067®Number=0000000000100030&sum=0 [18:28:10]written 0, free lines is 4095 [18:28:10]OFD Sender: Processing packet 187860 [packets to send 1062, broken 1061] [18:28:10]ProducePacketName [18:28:10]name=ofd_packets/00187860 [18:28:10]OFD Sender: To server: pG, [18:28:10]CommunicateWithHost lk.salyk.kg:30040 [18:28:10]ConnectInit lk.salyk.kg [18:28:10]Connected sock=10 [18:28:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 C0 7C 07 01 C8 0F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 A8 61 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 44 01 00 00 F4 03 04 00 3D 9D 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 D4 DD 02 00 35 04 06 00 38 BB 62 36 B1 B9 9C 1E 59 9D FC 63 F3 3F [18:28:10]Write to MH i2c: 01 00 00 47 7D C4 [18:28:10]Write i2c OK [18:28:10]MH_I2C_Read... [18:28:10]Read from MH i2c: 01 [18:28:10]MH_I2C_Read... [18:28:10]Read from MH i2c: 01 07 00 [18:28:10]MH_I2C_Read... [18:28:10]Read from MH i2c: 01 07 00 47 7D 00 00 00 00 00 80 0C 57 [18:28:10]RasterBufferAndPrint [18:28:10]line [18:28:10]line [18:28:10]line [18:28:10]line [18:28:10]line [18:28:10]written 0, free lines is 3204 [18:28:10]MH_Cut [18:28:10]Write to MH i2c: D1 01 00 4E 7D 01 9D [18:28:10]Write i2c OK [18:28:10]MH_I2C_Read... [18:28:10]Read from MH i2c: D1 [18:28:10]MH_I2C_Read... [18:28:10]Read from MH i2c: D1 01 00 [18:28:10]MH_I2C_Read... [18:28:10]Read from MH i2c: D1 01 00 4E 7D 00 9C [18:28:10]Write to MH i2c: 01 00 00 4F 7D CC [18:28:10]Write i2c OK [18:28:10]MH_I2C_Read... [18:28:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 AB 05 47 00 28 9C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 D4 DD 02 00 F4 03 04 00 2C 47 16 67 B6 04 01 00 00 89 31 F2 5B 20 CE 50 DF [18:28:10]CommunicateWithHost err = 0 [18:28:10]CheckOFDResponse [18:28:10]1017 (14) - 77093643461234 [18:28:10]1041 (16) - 0000000000965340 [18:28:10]1040 (4) - 187860 [18:28:10]1012 (4) - 21.10.2024 12:21 [18:28:10]1206 (1) - 0 [18:28:10]OFD Sender: Remove packet 187860 [18:28:10]ProducePacketName [18:28:10]name=ofd_packets/00187860 [18:28:10]NVStorageDeleteData [18:28:11]OFD Sender: No OFD packet to send [18:28:11]*** Cut start [18:28:11]*** Partial cut [18:28:11]*** CUTSNS_PIN = 1 [18:28:11]*** CUTSNS_PIN = 0 [18:28:11]*** Brake cut motor [18:28:12]Read from MH i2c: 01 [18:28:12]MH_I2C_Read... [18:28:12]*** Stop cut motor [18:28:12]*** Cut end [18:28:12]Read from MH i2c: 01 07 00 [18:28:12]MH_I2C_Read... [18:28:12]Read from MH i2c: 01 07 00 4F 7D 00 00 00 00 00 FF 0F E1 [18:28:12]process_action close_receipt done [18:28:12]requested_data is exist [18:28:12]produce_requested_data [18:28:12]requested_item fm.sn is exist - process it [18:28:12]wFMCommunicate request_size=4 [18:28:12]MH_SAM_APDU [18:28:12]CAPDU: 80 11 00 00 [18:28:12]Write to MH i2c: E2 08 00 50 7D 80 11 00 00 00 00 00 00 47 [18:28:12]Write i2c OK [18:28:12]MH_I2C_Read... [18:28:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:28:12]Read from MH i2c: E2 [18:28:12]MH_I2C_Read... [18:28:12]Read from MH i2c: E2 17 00 [18:28:12]MH_I2C_Read... [18:28:12]Read from MH i2c: E2 17 00 50 7D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 95 [18:28:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [18:28:12]wFMCommunicate OK [18:28:12]requested_item fd.num is exist - process it [18:28:12]SAM_PROTO_GetFieldsCounters [18:28:12]wFMCommunicate request_size=4 [18:28:12]MH_SAM_APDU [18:28:12]CAPDU: 80 13 00 00 [18:28:12]Write to MH i2c: E2 08 00 51 7D 80 13 00 00 00 00 00 00 4A [18:28:12]Write i2c OK [18:28:12]MH_I2C_Read... [18:28:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:28:12]Read from MH i2c: E2 [18:28:12]MH_I2C_Read... [18:28:12]Read from MH i2c: E2 62 00 [18:28:12]MH_I2C_Read... [18:28:12]Read from MH i2c: E2 62 00 51 7D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 D4 DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 44 01 00 00 5E 04 04 00 44 01 00 00 57 04 04 00 45 01 00 00 19 04 04 00 00 00 00 00 90 00 A0 [18:28:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 D4 DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 44 01 00 00 5E 04 04 00 44 01 00 00 57 04 04 00 45 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:28:12]wFMCommunicate OK [18:28:12]SAM_PROTO_GetFieldsCounters done [18:28:12]requested_item shift.num is exist - process it [18:28:12]requested_item shift.opened is exist - process it [18:28:12]req_shift_opened [18:28:12]FM_GetShiftState [18:28:12]SAM_PROTO_GetShiftState [18:28:12]wFMCommunicate request_size=4 [18:28:12]MH_SAM_APDU [18:28:12]CAPDU: 80 13 01 00 [18:28:12]Write to MH i2c: E2 08 00 52 7D 80 13 01 00 00 00 00 00 4C [18:28:12]Write i2c OK [18:28:12]MH_I2C_Read... [18:28:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:28:12]Read from MH i2c: E2 [18:28:12]MH_I2C_Read... [18:28:12]Read from MH i2c: E2 0E 00 [18:28:12]MH_I2C_Read... [18:28:12]Read from MH i2c: E2 0E 00 52 7D 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 AB [18:28:12]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [18:28:12]wFMCommunicate OK [18:28:12]SAM_PROTO_GetShiftState done [18:28:12]FM_GetShiftState done [18:28:12]req_shift_opened done [18:28:12]requested_item shift.open_date is exist - process it [18:28:12]req_shift_open_date [18:28:12]req_shift_open_date done [18:28:12]produce_requested_data done [18:28:12]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187860,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [18:28:12]process_action_free close_receipt [18:28:12]json_value_free [18:28:12]json_value_free done [18:28:12]process_json_proto returns [18:28:12]Send response to host [18:28:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187860,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [18:28:12]free response buf [18:28:12]execute_script done [18:28:12]execute_script returns [18:28:12]free content buf [18:28:12]Sock 9.Close socket [18:28:12]Sock 9.Thread stoped [18:28:16]OFD Sender: No OFD packet to send [18:28:21]OFD Sender: No OFD packet to send [18:28:26]OFD Sender: No OFD packet to send [18:28:31]OFD Sender: No OFD packet to send [18:28:36]OFD Sender: No OFD packet to send [18:28:41]OFD Sender: No OFD packet to send [18:28:42]accept exits with 8 [18:28:42]New connection [18:28:42]New thread 3067014500 created [18:28:42]Thread 3067157860 joined [18:28:42]Waiting for new connection... [18:28:42] Sock 8.Parse request [18:28:42]Sock 8.Check first char [18:28:42]Sock 8.First char is OK [18:28:42]request: POST /json_proto HTTP/1.0 [18:28:42]Method: POST [18:28:42]URL: /json_proto [18:28:42]Method is POST - this is cgi request [18:28:42]url: /json_proto [18:28:42]query_string will be loaded in cgi processing [18:28:42]execute_cgi json_proto POST (null) [18:28:42]execute_cgi path=json_proto method=POST [18:28:42]POST find Content-Length [18:28:42]Host: 172.17.42.131:8080 [18:28:42]Content-Length: 677 [18:28:42]Content-Type: application/json [18:28:42] [18:28:42]POST finish read [18:28:42]Found Content-Length = 677 [18:28:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209913", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 6.580, "sum" : 440.20, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 440.00, "total" : 440.00, "payments": [ { "type": 0, "sum" : 440.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:28:42]execute_script... [18:28: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)209913", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 6.580, "sum" : 440.20, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 440.00, "total" : 440.00, "payments": [ { "type": 0, "sum" : 440.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:28:42]POST & json_proto [18:28:42]process_json_proto [18:28:42]json parsed OK: [18:28:42]protocol is kg_v1.0 [18:28:42]action value=close_receipt [18:28:42]process_action close_receipt [18:28:42]cmd_close_receipt [18:28:42]MH_GetDate [18:28:42]Write to MH i2c: F0 00 00 53 7D BF [18:28:42]Write i2c OK [18:28:42]MH_I2C_Read... [18:28:42]Read from MH i2c: F0 [18:28:42]MH_I2C_Read... [18:28:42]Read from MH i2c: F0 09 00 [18:28:42]MH_I2C_Read... [18:28:42]Read from MH i2c: F0 09 00 53 7D 00 60 9D 16 67 A0 18 CA 66 2A [18:28:42]GetLastDocTimeStamp 1729535293 [18:28:42]current date 1729535328 [18:28:42]FM_GetShiftState [18:28:42]SAM_PROTO_GetShiftState [18:28:42]wFMCommunicate request_size=4 [18:28:42]MH_SAM_APDU [18:28:42]CAPDU: 80 13 01 00 [18:28:42]Write to MH i2c: E2 08 00 54 7D 80 13 01 00 00 00 00 00 4E [18:28:42]Write i2c OK [18:28:42]MH_I2C_Read... [18:28:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:28:43]Read from MH i2c: E2 [18:28:43]MH_I2C_Read... [18:28:43]Read from MH i2c: E2 0E 00 [18:28:43]MH_I2C_Read... [18:28:43]Read from MH i2c: E2 0E 00 54 7D 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 AD [18:28:43]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [18:28:43]wFMCommunicate OK [18:28:43]SAM_PROTO_GetShiftState done [18:28:43]FM_GetShiftState done [18:28:43]opened in 1729469754 [18:28:43]opened+sec_in_day 1729556154 [18:28:43]quantity*price = 44020 [18:28:43]sum+1 = 44021 [18:28:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.20 ИТОГО: 440.00 Внесено: 440.00 СДАЧА: 0.00 НСП 1% : 3.90 НДС 12% : 46.75 Наличными: 440.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 325 21.10.2024 18:28 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 187861 ФПД: 45116784958650 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T182848&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187861&fm=45116784958650&tin=02508201610067®Number=0000000000100030&sum=44000 [18:28:44]StoreToDocumentArchive [18:28:44]shift 460 fd 187861 [18:28:44]save to /storage/0460/doc_00187861 [18:28:44]save last doc name /storage/0460/doc_00187861 to /storage/kkm_last_doc_name [18:28:44]save OK [18:28:44]Clear old archive folders... [18:28:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:28:44]tlvbuf is 0130A8E0 [18:28:44]SAM_PROTO_ClearQueue [18:28:44]wFMCommunicate request_size=4 [18:28:44]MH_SAM_APDU [18:28:44]CAPDU: 80 09 00 00 [18:28:44]Write to MH i2c: E2 08 00 61 7D 80 09 00 00 00 00 00 00 50 [18:28:44]Write i2c OK [18:28:44]MH_I2C_Read... [18:28:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:28:44]Read from MH i2c: E2 [18:28:44]MH_I2C_Read... [18:28:44]Read from MH i2c: E2 03 00 [18:28:44]MH_I2C_Read... [18:28:44]Read from MH i2c: E2 03 00 61 7D 00 90 00 52 [18:28:44]RAPDU: 90 00 [18:28:44]wFMCommunicate OK [18:28:44]SAM_PROTO_ClearQueue done [18:28:44]KKMCreateOFDPacket [18:28:44]OFDProtocolAddRootSTLVToBuf [18:28:44]FM_MakeSignedData [18:28:44]FM_MakeSignedData [18:28:44]SAM_PROTO_SignData [18:28:44]wFMCommunicate request_size=4 [18:28:44]MH_SAM_APDU [18:28:44]CAPDU: 80 0D 01 02 [18:28:44]Write to MH i2c: E2 08 00 62 7D 80 0D 01 02 00 00 00 00 58 [18:28:44]Write i2c OK [18:28:44]MH_I2C_Read... [18:28:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:28:44]Read from MH i2c: E2 [18:28:44]MH_I2C_Read... [18:28:44]Read from MH i2c: E2 03 00 [18:28:44]MH_I2C_Read... [18:28:44]Read from MH i2c: E2 03 00 62 7D 00 90 00 53 [18:28:44]RAPDU: 90 00 [18:28:44]wFMCommunicate OK [18:28:44]wFMCommunicate request_size=255 [18:28:44]MH_SAM_APDU [18:28: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 33 FF 03 08 00 03 B4 19 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F4 AB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 AB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 86 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 43 12 00 00 00 00 07 04 06 00 E0 AB 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 01 00 00 F4 03 04 00 60 9D 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 D5 DD 02 00 35 04 06 00 29 [18:28:44]Write to MH i2c: E2 02 01 63 7D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 B4 19 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F4 AB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 AB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 86 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 43 12 00 00 00 00 07 04 06 00 E0 AB 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 01 00 00 F4 03 04 00 60 9D 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 D5 DD 02 00 35 04 06 00 29 00 00 4A [18:28:44]Write i2c OK [18:28:44]MH_I2C_Read... [18:28:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:28:44]Read from MH i2c: E2 [18:28:44]MH_I2C_Read... [18:28:44]Read from MH i2c: E2 03 00 [18:28:44]MH_I2C_Read... [18:28:44]Read from MH i2c: E2 03 00 63 7D 00 90 00 54 [18:28:44]RAPDU: 90 00 [18:28:44]wFMCommunicate OK [18:28:44]wFMCommunicate request_size=10 [18:28:44]MH_SAM_APDU [18:28:44]CAPDU: 80 0D 02 02 05 08 91 F0 DC BA [18:28:44]Write to MH i2c: E2 0D 00 64 7D 80 0D 02 02 05 00 08 91 F0 DC BA 00 00 84 [18:28:44]Write i2c OK [18:28:44]MH_I2C_Read... [18:28:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:28:44]Read from MH i2c: E2 [18:28:44]MH_I2C_Read... [18:28:44]Read from MH i2c: E2 03 00 [18:28:44]MH_I2C_Read... [18:28:44]Read from MH i2c: E2 03 00 64 7D 00 90 00 55 [18:28:44]RAPDU: 90 00 [18:28:44]wFMCommunicate OK [18:28:44]wFMCommunicate request_size=4 [18:28:44]MH_SAM_APDU [18:28:44]CAPDU: 80 0D 03 02 [18:28:44]Write to MH i2c: E2 08 00 65 7D 80 0D 03 02 00 00 00 00 5D [18:28:44]Write i2c OK [18:28:44]MH_I2C_Read... [18:28:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:28:44]Read from MH i2c: E2 [18:28:44]MH_I2C_Read... [18:28:44]Read from MH i2c: E2 0B 00 [18:28:44]MH_I2C_Read... [18:28:44]Read from MH i2c: E2 0B 00 65 7D 00 AA C0 A7 0D 48 B1 3F C1 90 00 75 [18:28:44]RAPDU: AA C0 A7 0D 48 B1 3F C1 90 00 [18:28:44]wFMCommunicate OK [18:28:44]SAM_PROTO_SignData done [18:28:44]FM_MakeSignedData done [18:28:44]CreateOFDProtocolMessage [18:28:44]wFMCommunicate request_size=4 [18:28:44]MH_SAM_APDU [18:28:44]CAPDU: 80 11 00 00 [18:28:44]Write to MH i2c: E2 08 00 66 7D 80 11 00 00 00 00 00 00 5D [18:28:44]Write i2c OK [18:28:44]MH_I2C_Read... [18:28:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:28:44]Read from MH i2c: E2 [18:28:44]MH_I2C_Read... [18:28:44]Read from MH i2c: E2 17 00 [18:28:44]MH_I2C_Read... [18:28:44]Read from MH i2c: E2 17 00 66 7D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 AB [18:28:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [18:28:44]wFMCommunicate OK [18:28:44]CreateOFDProtocolMessage done [18:28:44]OFDSenderStorePacket 187861 [18:28:44]StoreOFDPacket docnum=187861 [18:28:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 E4 AB 07 01 D5 30 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 B4 19 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F4 AB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 AB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 86 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 43 12 00 00 00 00 07 04 06 00 E0 AB 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 01 00 00 F4 03 04 00 60 9D 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 D5 DD 02 00 35 04 06 00 29 08 91 F0 DC BA AA C0 A7 0D 48 B1 3F C1 [18:28:44]CheckFolder [18:28:44]dirname=/storage/ofd_packets [18:28:44]CheckFolder done [18:28:44]ProducePacketName [18:28:44]name=ofd_packets/00187861 [18:28:44]NVStorageSaveData ofd_packets/00187861 [18:28:44]File name is /storage/ofd_packets/00187861 [18:28:44]Write 301 bytes [18:28:44]NVStorageSaveData done [18:28:44]OFDSenderStorePacket done [18:28:44]KKMCreateOFDPacket done [18:28:44]NVStorageSaveData kkm_last_timestamp [18:28:44]File name is /storage/kkm_last_timestamp [18:28:44]Write 4 bytes [18:28:44]NVStorageSaveData done [18:28:44]ExternCall_PrintAddStr [18:28:44]wPrintStart [18:28:44]Write to MH i2c: 01 00 00 67 7D E4 [18:28:44]Write i2c OK [18:28:44]MH_I2C_Read... [18:28:44]Read from MH i2c: 01 [18:28:44]MH_I2C_Read... [18:28:44]Read from MH i2c: 01 07 00 [18:28:44]MH_I2C_Read... [18:28:44]Read from MH i2c: 01 07 00 67 7D 00 00 00 00 00 FF 0F F9 [18:28:44]RasterBufferAndPrint [18:28:44]line Счет N : (1)209913 [18:28:44]line ИНН: 02508201610067 [18:28:44]line Контрольно-Кассовый Чек [18:28:44]line ПРОДАЖА [18:28:44]line ТРК (МРК, ГНК) : 22 [18:28:44]line Товар: 2710124130 [18:28:44]line Аи-92-К-3 [18:28:44]line 6.580 * 66.90 [18:28:44]line = 440.20 [18:28:44]line НДС 12% НСП 1% [18:28:44]line > о реализуемом товаре [18:28:44]line ОКРУГЛЕНИЕ: -0.20 [18:28:44]line ИТОГО: 440.00 [18:28:44]line Внесено: 440.00 [18:28:44]line СДАЧА: 0.00 [18:28:44]line НСП 1% : 3.90 [18:28:44]line НДС 12% : 46.75 [18:28:44]line Наличными: 440.00 [18:28:44]line Безнал.: 0.00 [18:28:44]line Место: АЗС № 86 "Партнер Нефть" [18:28:44]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [18:28:44]line СНО: Общий режим [18:28:44]line Чек 325 21.10.2024 18:28 [18:28:44]line Смена: 460 ФФД: 1.0 [18:28:44]line ЗНМ: 0300000155 [18:28:44]line РНМ: 0000000000100030 [18:28:44]line Версия ККМ: 001 [18:28:44]line ФМ: 0000000000965340 [18:28:44]line ФД: 187861 [18:28:44]line ФПД: 45116784958650 [18:28:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T182848&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187861&fm=45116784958650&tin=02508201610067®Number=0000000000100030&sum=44000 [18:28:44]OFD Sender: Processing packet 187861 [packets to send 1062, broken 1061] [18:28:44]ProducePacketName [18:28:44]name=ofd_packets/00187861 [18:28:44]OFD Sender: To server: pG, [18:28:44]CommunicateWithHost lk.salyk.kg:30040 [18:28:44]ConnectInit lk.salyk.kg [18:28:44]written 0, free lines is 4095 [18:28:44]Connected sock=10 [18:28:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 E4 AB 07 01 D5 30 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 B4 19 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F4 AB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 AB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 86 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 43 12 00 00 00 00 07 04 06 00 E0 AB 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 01 00 00 F4 03 04 00 60 9D 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 D5 DD 02 00 35 04 06 00 29 08 91 F0 DC BA AA C0 A7 0D 48 B1 3F C1 [18:28:45]Write to MH i2c: 01 00 00 92 7D 0F [18:28:45]Write i2c OK [18:28:45]MH_I2C_Read... [18:28:45]Read from MH i2c: 01 [18:28:45]MH_I2C_Read... [18:28:45]Read from MH i2c: 01 07 00 [18:28:45]MH_I2C_Read... [18:28:45]Read from MH i2c: 01 07 00 92 7D 00 00 00 00 00 6C 0C 8E [18:28:45]RasterBufferAndPrint [18:28:45]line [18:28:45]line [18:28:45]line [18:28:45]line [18:28:45]line [18:28:45]written 0, free lines is 3183 [18:28:45]MH_Cut [18:28:45]Write to MH i2c: D1 01 00 99 7D 01 E8 [18:28:45]Write i2c OK [18:28:45]MH_I2C_Read... [18:28:45]Read from MH i2c: D1 [18:28:45]MH_I2C_Read... [18:28:45]Read from MH i2c: D1 01 00 [18:28:45]MH_I2C_Read... [18:28:45]Read from MH i2c: D1 01 00 99 7D 00 E7 [18:28:45]Write to MH i2c: 01 00 00 9A 7D 17 [18:28:45]Write i2c OK [18:28:45]MH_I2C_Read... [18:28:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 5C 67 47 00 59 0D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 D5 DD 02 00 F4 03 04 00 4F 47 16 67 B6 04 01 00 00 10 1C 0C 5F 4F 2C 0C 32 [18:28:45]CommunicateWithHost err = 0 [18:28:45]CheckOFDResponse [18:28:45]1017 (14) - 77093643461234 [18:28:45]1041 (16) - 0000000000965340 [18:28:45]1040 (4) - 187861 [18:28:45]1012 (4) - 21.10.2024 12:21 [18:28:45]1206 (1) - 0 [18:28:45]OFD Sender: Remove packet 187861 [18:28:45]ProducePacketName [18:28:45]name=ofd_packets/00187861 [18:28:45]NVStorageDeleteData [18:28:45]OFD Sender: No OFD packet to send [18:28:46]*** Cut start [18:28:46]*** Partial cut [18:28:46]*** CUTSNS_PIN = 1 [18:28:46]*** CUTSNS_PIN = 0 [18:28:46]*** Brake cut motor [18:28:46]Read from MH i2c: 01 [18:28:47]MH_I2C_Read... [18:28:47]*** Stop cut motor [18:28:47]*** Cut end [18:28:47]Read from MH i2c: 01 07 00 [18:28:47]MH_I2C_Read... [18:28:47]Read from MH i2c: 01 07 00 9A 7D 00 00 00 00 00 FF 0F 2C [18:28:47]process_action close_receipt done [18:28:47]requested_data is exist [18:28:47]produce_requested_data [18:28:47]requested_item fm.sn is exist - process it [18:28:47]wFMCommunicate request_size=4 [18:28:47]MH_SAM_APDU [18:28:47]CAPDU: 80 11 00 00 [18:28:47]Write to MH i2c: E2 08 00 9B 7D 80 11 00 00 00 00 00 00 92 [18:28:47]Write i2c OK [18:28:47]MH_I2C_Read... [18:28:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:28:47]Read from MH i2c: E2 [18:28:47]MH_I2C_Read... [18:28:47]Read from MH i2c: E2 17 00 [18:28:47]MH_I2C_Read... [18:28:47]Read from MH i2c: E2 17 00 9B 7D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 E0 [18:28:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [18:28:47]wFMCommunicate OK [18:28:47]requested_item fd.num is exist - process it [18:28:47]SAM_PROTO_GetFieldsCounters [18:28:47]wFMCommunicate request_size=4 [18:28:47]MH_SAM_APDU [18:28:47]CAPDU: 80 13 00 00 [18:28:47]Write to MH i2c: E2 08 00 9C 7D 80 13 00 00 00 00 00 00 95 [18:28:47]Write i2c OK [18:28:47]MH_I2C_Read... [18:28:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:28:47]Read from MH i2c: E2 [18:28:47]MH_I2C_Read... [18:28:47]Read from MH i2c: E2 62 00 [18:28:47]MH_I2C_Read... [18:28:47]Read from MH i2c: E2 62 00 9C 7D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 D5 DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 45 01 00 00 5E 04 04 00 45 01 00 00 57 04 04 00 46 01 00 00 19 04 04 00 00 00 00 00 90 00 EF [18:28:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 D5 DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 45 01 00 00 5E 04 04 00 45 01 00 00 57 04 04 00 46 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:28:47]wFMCommunicate OK [18:28:47]SAM_PROTO_GetFieldsCounters done [18:28:47]requested_item shift.num is exist - process it [18:28:47]requested_item shift.opened is exist - process it [18:28:47]req_shift_opened [18:28:47]FM_GetShiftState [18:28:47]SAM_PROTO_GetShiftState [18:28:47]wFMCommunicate request_size=4 [18:28:47]MH_SAM_APDU [18:28:47]CAPDU: 80 13 01 00 [18:28:47]Write to MH i2c: E2 08 00 9D 7D 80 13 01 00 00 00 00 00 97 [18:28:47]Write i2c OK [18:28:47]MH_I2C_Read... [18:28:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:28:47]Read from MH i2c: E2 [18:28:47]MH_I2C_Read... [18:28:47]Read from MH i2c: E2 0E 00 [18:28:47]MH_I2C_Read... [18:28:47]Read from MH i2c: E2 0E 00 9D 7D 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 F6 [18:28:47]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [18:28:47]wFMCommunicate OK [18:28:47]SAM_PROTO_GetShiftState done [18:28:47]FM_GetShiftState done [18:28:47]req_shift_opened done [18:28:47]requested_item shift.open_date is exist - process it [18:28:47]req_shift_open_date [18:28:47]req_shift_open_date done [18:28:47]produce_requested_data done [18:28:47]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187861,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [18:28:47]process_action_free close_receipt [18:28:47]json_value_free [18:28:47]json_value_free done [18:28:47]process_json_proto returns [18:28:47]Send response to host [18:28:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187861,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [18:28:47]free response buf [18:28:47]execute_script done [18:28:47]execute_script returns [18:28:47]free content buf [18:28:47]Sock 8.Close socket [18:28:47]Sock 8.Thread stoped [18:28:50]OFD Sender: No OFD packet to send [18:28:55]OFD Sender: No OFD packet to send [18:29:00]OFD Sender: No OFD packet to send [18:29:05]OFD Sender: No OFD packet to send [18:29:10]OFD Sender: No OFD packet to send [18:29:16]OFD Sender: No OFD packet to send [18:29:21]OFD Sender: No OFD packet to send [18:29:26]OFD Sender: No OFD packet to send [18:29:31]OFD Sender: No OFD packet to send [18:29:36]OFD Sender: No OFD packet to send [18:29:41]OFD Sender: No OFD packet to send [18:29:46]OFD Sender: No OFD packet to send [18:29:51]OFD Sender: No OFD packet to send [18:29:56]OFD Sender: No OFD packet to send [18:30:01]OFD Sender: No OFD packet to send [18:30:06]OFD Sender: No OFD packet to send [18:30:11]OFD Sender: No OFD packet to send [18:30:16]OFD Sender: No OFD packet to send [18:30:21]OFD Sender: No OFD packet to send [18:30:26]OFD Sender: No OFD packet to send [18:30:31]OFD Sender: No OFD packet to send [18:30:36]OFD Sender: No OFD packet to send [18:30:41]OFD Sender: No OFD packet to send [18:30:46]OFD Sender: No OFD packet to send [18:30:51]OFD Sender: No OFD packet to send [18:30:56]OFD Sender: No OFD packet to send [18:31:01]OFD Sender: No OFD packet to send [18:31:06]OFD Sender: No OFD packet to send [18:31:11]OFD Sender: No OFD packet to send [18:31:16]OFD Sender: No OFD packet to send [18:31:21]OFD Sender: No OFD packet to send [18:31:26]OFD Sender: No OFD packet to send [18:31:31]OFD Sender: No OFD packet to send [18:31:36]OFD Sender: No OFD packet to send [18:31:41]OFD Sender: No OFD packet to send [18:31:46]OFD Sender: No OFD packet to send [18:31:51]OFD Sender: No OFD packet to send [18:31:56]OFD Sender: No OFD packet to send [18:32:01]OFD Sender: No OFD packet to send [18:32:06]OFD Sender: No OFD packet to send [18:32:11]OFD Sender: No OFD packet to send [18:32:16]OFD Sender: No OFD packet to send [18:32:21]OFD Sender: No OFD packet to send [18:32:26]OFD Sender: No OFD packet to send [18:32:31]OFD Sender: No OFD packet to send [18:32:36]OFD Sender: No OFD packet to send [18:32:41]OFD Sender: No OFD packet to send [18:32:43]accept exits with 9 [18:32:43]New connection [18:32:43]New thread 3067157860 created [18:32:43]Thread 3067014500 joined [18:32:43]Waiting for new connection... [18:32:43] Sock 9.Parse request [18:32:43]Sock 9.Check first char [18:32:43]Sock 9.First char is OK [18:32:43]request: POST /json_proto HTTP/1.0 [18:32:43]Method: POST [18:32:43]URL: /json_proto [18:32:43]Method is POST - this is cgi request [18:32:43]url: /json_proto [18:32:43]query_string will be loaded in cgi processing [18:32:43]execute_cgi json_proto POST (null) [18:32:43]execute_cgi path=json_proto method=POST [18:32:43]POST find Content-Length [18:32:43]Host: 172.17.42.131:8080 [18:32:43]Content-Length: 817 [18:32:43]Content-Type: application/json [18:32:43] [18:32:43]POST finish read [18:32:43]Found Content-Length = 817 [18:32:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209914", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 700.44 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:32:43]execute_script... [18: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)209914", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 700.44 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:32:43]POST & json_proto [18:32:43]process_json_proto [18:32:43]json parsed OK: [18:32:43]protocol is kg_v1.0 [18:32:43]action value=close_receipt [18:32:43]process_action close_receipt [18:32:43]cmd_close_receipt [18:32:43]MH_GetDate [18:32:43]Write to MH i2c: F0 00 00 9E 7D 0A [18:32:43]Write i2c OK [18:32:43]MH_I2C_Read... [18:32:43]Read from MH i2c: F0 [18:32:43]MH_I2C_Read... [18:32:43]Read from MH i2c: F0 09 00 [18:32:43]MH_I2C_Read... [18:32:43]Read from MH i2c: F0 09 00 9E 7D 00 50 9E 16 67 A0 18 CA 66 66 [18:32:43]GetLastDocTimeStamp 1729535328 [18:32:43]current date 1729535568 [18:32:43]FM_GetShiftState [18:32:43]SAM_PROTO_GetShiftState [18:32:43]wFMCommunicate request_size=4 [18:32:43]MH_SAM_APDU [18:32:43]CAPDU: 80 13 01 00 [18:32:43]Write to MH i2c: E2 08 00 9F 7D 80 13 01 00 00 00 00 00 99 [18:32:43]Write i2c OK [18:32:43]MH_I2C_Read... [18:32:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:32:43]Read from MH i2c: E2 [18:32:43]MH_I2C_Read... [18:32:43]Read from MH i2c: E2 0E 00 [18:32:43]MH_I2C_Read... [18:32:43]Read from MH i2c: E2 0E 00 9F 7D 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 F8 [18:32:43]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [18:32:43]wFMCommunicate OK [18:32:43]SAM_PROTO_GetShiftState done [18:32:43]FM_GetShiftState done [18:32:43]opened in 1729469754 [18:32:43]opened+sec_in_day 1729556154 [18:32:43]quantity*price = 70044 [18:32:43]sum+1 = 70045 [18:32:43]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 700.44 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 0.00 Безнал.: 700.44 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 326 21.10.2024 18:32 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000965340 ФД: 187862 ФПД: 142698913652063 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T183248&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187862&fm=142698913652063&tin=02508201610067®Number=0000000000100030&sum=70044 [18:32:44]StoreToDocumentArchive [18:32:44]shift 460 fd 187862 [18:32:44]save to /storage/0460/doc_00187862 [18:32:44]save last doc name /storage/0460/doc_00187862 to /storage/kkm_last_doc_name [18:32:44]save OK [18:32:44]Clear old archive folders... [18:32:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:32:44]tlvbuf is 0130A060 [18:32:44]SAM_PROTO_ClearQueue [18:32:44]wFMCommunicate request_size=4 [18:32:44]MH_SAM_APDU [18:32:44]CAPDU: 80 09 00 00 [18:32:44]Write to MH i2c: E2 08 00 AC 7D 80 09 00 00 00 00 00 00 9B [18:32:44]Write i2c OK [18:32:44]MH_I2C_Read... [18:32:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:32:44]Read from MH i2c: E2 [18:32:44]MH_I2C_Read... [18:32:44]Read from MH i2c: E2 03 00 [18:32:44]MH_I2C_Read... [18:32:44]Read from MH i2c: E2 03 00 AC 7D 00 90 00 9D [18:32:44]RAPDU: 90 00 [18:32:44]wFMCommunicate OK [18:32:44]SAM_PROTO_ClearQueue done [18:32:44]KKMCreateOFDPacket [18:32:44]OFDProtocolAddRootSTLVToBuf [18:32:44]FM_MakeSignedData [18:32:44]FM_MakeSignedData [18:32:44]SAM_PROTO_SignData [18:32:44]wFMCommunicate request_size=4 [18:32:44]MH_SAM_APDU [18:32:44]CAPDU: 80 0D 01 02 [18:32:44]Write to MH i2c: E2 08 00 AD 7D 80 0D 01 02 00 00 00 00 A3 [18:32:44]Write i2c OK [18:32:44]MH_I2C_Read... [18:32:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:32:44]Read from MH i2c: E2 [18:32:44]MH_I2C_Read... [18:32:44]Read from MH i2c: E2 03 00 [18:32:44]MH_I2C_Read... [18:32:44]Read from MH i2c: E2 03 00 AD 7D 00 90 00 9E [18:32:44]RAPDU: 90 00 [18:32:44]wFMCommunicate OK [18:32:44]wFMCommunicate request_size=255 [18:32:44]MH_SAM_APDU [18:32: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 33 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9C 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 01 00 00 F4 03 04 00 50 9E 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 D6 DD 02 00 35 04 06 00 81 [18:32:44]Write to MH i2c: E2 02 01 AE 7D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9C 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 01 00 00 F4 03 04 00 50 9E 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 D6 DD 02 00 35 04 06 00 81 00 00 33 [18:32:44]Write i2c OK [18:32:44]MH_I2C_Read... [18:32:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:32:45]Read from MH i2c: E2 [18:32:45]MH_I2C_Read... [18:32:45]Read from MH i2c: E2 03 00 [18:32:45]MH_I2C_Read... [18:32:45]Read from MH i2c: E2 03 00 AE 7D 00 90 00 9F [18:32:45]RAPDU: 90 00 [18:32:45]wFMCommunicate OK [18:32:45]wFMCommunicate request_size=10 [18:32:45]MH_SAM_APDU [18:32:45]CAPDU: 80 0D 02 02 05 C8 AE 0E DD 5F [18:32:45]Write to MH i2c: E2 0D 00 AF 7D 80 0D 02 02 05 00 C8 AE 0E DD 5F 00 00 70 [18:32:45]Write i2c OK [18:32:45]MH_I2C_Read... [18:32:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:32:45]Read from MH i2c: E2 [18:32:45]MH_I2C_Read... [18:32:45]Read from MH i2c: E2 03 00 [18:32:45]MH_I2C_Read... [18:32:45]Read from MH i2c: E2 03 00 AF 7D 00 90 00 A0 [18:32:45]RAPDU: 90 00 [18:32:45]wFMCommunicate OK [18:32:45]wFMCommunicate request_size=4 [18:32:45]MH_SAM_APDU [18:32:45]CAPDU: 80 0D 03 02 [18:32:45]Write to MH i2c: E2 08 00 B0 7D 80 0D 03 02 00 00 00 00 A8 [18:32:45]Write i2c OK [18:32:45]MH_I2C_Read... [18:32:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:32:45]Read from MH i2c: E2 [18:32:45]MH_I2C_Read... [18:32:45]Read from MH i2c: E2 0B 00 [18:32:45]MH_I2C_Read... [18:32:45]Read from MH i2c: E2 0B 00 B0 7D 00 E5 FD D8 E5 65 A5 6F C2 90 00 83 [18:32:45]RAPDU: E5 FD D8 E5 65 A5 6F C2 90 00 [18:32:45]wFMCommunicate OK [18:32:45]SAM_PROTO_SignData done [18:32:45]FM_MakeSignedData done [18:32:45]CreateOFDProtocolMessage [18:32:45]wFMCommunicate request_size=4 [18:32:45]MH_SAM_APDU [18:32:45]CAPDU: 80 11 00 00 [18:32:45]Write to MH i2c: E2 08 00 B1 7D 80 11 00 00 00 00 00 00 A8 [18:32:45]Write i2c OK [18:32:45]MH_I2C_Read... [18:32:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:32:45]Read from MH i2c: E2 [18:32:45]MH_I2C_Read... [18:32:45]Read from MH i2c: E2 17 00 [18:32:45]MH_I2C_Read... [18:32:45]Read from MH i2c: E2 17 00 B1 7D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 F6 [18:32:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [18:32:45]wFMCommunicate OK [18:32:45]CreateOFDProtocolMessage done [18:32:45]OFDSenderStorePacket 187862 [18:32:45]StoreOFDPacket docnum=187862 [18:32:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 0C FE 07 01 2B 5F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9C 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 01 00 00 F4 03 04 00 50 9E 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 D6 DD 02 00 35 04 06 00 81 C8 AE 0E DD 5F E5 FD D8 E5 65 A5 6F C2 [18:32:45]CheckFolder [18:32:45]dirname=/storage/ofd_packets [18:32:45]CheckFolder done [18:32:45]ProducePacketName [18:32:45]name=ofd_packets/00187862 [18:32:45]NVStorageSaveData ofd_packets/00187862 [18:32:45]File name is /storage/ofd_packets/00187862 [18:32:45]Write 301 bytes [18:32:45]NVStorageSaveData done [18:32:45]OFDSenderStorePacket done [18:32:45]KKMCreateOFDPacket done [18:32:45]NVStorageSaveData kkm_last_timestamp [18:32:45]File name is /storage/kkm_last_timestamp [18:32:45]Write 4 bytes [18:32:45]NVStorageSaveData done [18:32:45]ExternCall_PrintAddStr [18:32:45]wPrintStart [18:32:45]Write to MH i2c: 01 00 00 B2 7D 2F [18:32:45]Write i2c OK [18:32:45]MH_I2C_Read... [18:32:45]Read from MH i2c: 01 [18:32:45]MH_I2C_Read... [18:32:45]Read from MH i2c: 01 07 00 [18:32:45]MH_I2C_Read... [18:32:45]Read from MH i2c: 01 07 00 B2 7D 00 00 00 00 00 FF 0F 44 [18:32:45]RasterBufferAndPrint [18:32:45]line Счет N : (1)209914 [18:32:45]line ИНН: 02508201610067 [18:32:45]line Контрольно-Кассовый Чек [18:32:45]line ПРОДАЖА [18:32:45]line ТРК (МРК, ГНК) : 22 [18:32:45]line Товар: 2710124130 [18:32:45]line Аи-92-К-3 [18:32:45]line 10.470 * 66.90 [18:32:45]line = 700.44 [18:32:45]line НДС 12% НСП 1% [18:32:45]line > о реализуемом товаре [18:32:45]line ИТОГО: 700.44 [18:32:45]line НСП 1% : 6.20 [18:32:45]line НДС 12% : 74.38 [18:32:45]line Наличными: 0.00 [18:32:45]line Безнал.: 700.44 [18:32:45]line Место: АЗС № 86 "Партнер Нефть" [18:32:45]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [18:32:45]line СНО: Общий режим [18:32:45]line Чек 326 21.10.2024 18:32 [18:32:45]line Смена: 460 ФФД: 1.0 [18:32:45]line ЗНМ: 0300000155 [18:32:45]line РНМ: 0000000000100030 [18:32:45]line Версия ККМ: 001 [18:32:45]line Платежная система: Бакай Банк [18:32:45]line ФМ: 0000000000965340 [18:32:45]line ФД: 187862 [18:32:45]line ФПД: 142698913652063 [18:32:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T183248&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187862&fm=142698913652063&tin=02508201610067®Number=0000000000100030&sum=70044 [18:32:45]written 0, free lines is 4095 [18:32:45]OFD Sender: Processing packet 187862 [packets to send 1062, broken 1061] [18:32:45]ProducePacketName [18:32:45]name=ofd_packets/00187862 [18:32:45]OFD Sender: To server: pG, [18:32:45]CommunicateWithHost lk.salyk.kg:30040 [18:32:45]ConnectInit lk.salyk.kg [18:32:45]Connected sock=10 [18:32:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 0C FE 07 01 2B 5F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9C 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 01 00 00 F4 03 04 00 50 9E 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 D6 DD 02 00 35 04 06 00 81 C8 AE 0E DD 5F E5 FD D8 E5 65 A5 6F C2 [18:32:45]Write to MH i2c: 01 00 00 DC 7D 59 [18:32:45]Write i2c OK [18:32:45]MH_I2C_Read... [18:32:45]Read from MH i2c: 01 [18:32:45]MH_I2C_Read... [18:32:45]Read from MH i2c: 01 07 00 [18:32:45]MH_I2C_Read... [18:32:45]Read from MH i2c: 01 07 00 DC 7D 00 00 00 00 00 84 0C F0 [18:32:45]RasterBufferAndPrint [18:32:45]line [18:32:45]line [18:32:45]line [18:32:45]line [18:32:45]line [18:32:45]written 0, free lines is 3207 [18:32:45]MH_Cut [18:32:45]Write to MH i2c: D1 01 00 E3 7D 01 32 [18:32:45]Write i2c OK [18:32:45]MH_I2C_Read... [18:32:45]Read from MH i2c: D1 [18:32:45]MH_I2C_Read... [18:32:45]Read from MH i2c: D1 01 00 [18:32:45]MH_I2C_Read... [18:32:45]Read from MH i2c: D1 01 00 E3 7D 00 31 [18:32:45]Write to MH i2c: 01 00 00 E4 7D 61 [18:32:45]Write i2c OK [18:32:45]MH_I2C_Read... [18:32:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 B9 56 47 00 3D 0B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 D6 DD 02 00 F4 03 04 00 40 48 16 67 B6 04 01 00 00 83 19 B4 14 A0 FC 0D 75 [18:32:46]CommunicateWithHost err = 0 [18:32:46]CheckOFDResponse [18:32:46]1017 (14) - 77093643461234 [18:32:46]1041 (16) - 0000000000965340 [18:32:46]1040 (4) - 187862 [18:32:46]1012 (4) - 21.10.2024 12:25 [18:32:46]1206 (1) - 0 [18:32:46]OFD Sender: Remove packet 187862 [18:32:46]ProducePacketName [18:32:46]name=ofd_packets/00187862 [18:32:46]NVStorageDeleteData [18:32:46]OFD Sender: No OFD packet to send [18:32:47]*** Cut start [18:32:47]*** Partial cut [18:32:47]*** CUTSNS_PIN = 1 [18:32:47]*** CUTSNS_PIN = 0 [18:32:47]*** Brake cut motor [18:32:47]Read from MH i2c: 01 [18:32:47]MH_I2C_Read... [18:32:47]*** Stop cut motor [18:32:47]*** Cut end [18:32:47]Read from MH i2c: 01 07 00 [18:32:47]MH_I2C_Read... [18:32:47]Read from MH i2c: 01 07 00 E4 7D 00 00 00 00 00 FF 0F 76 [18:32:47]process_action close_receipt done [18:32:47]requested_data is exist [18:32:47]produce_requested_data [18:32:47]requested_item fm.sn is exist - process it [18:32:47]wFMCommunicate request_size=4 [18:32:47]MH_SAM_APDU [18:32:47]CAPDU: 80 11 00 00 [18:32:47]Write to MH i2c: E2 08 00 E5 7D 80 11 00 00 00 00 00 00 DC [18:32:47]Write i2c OK [18:32:47]MH_I2C_Read... [18:32:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:32:47]Read from MH i2c: E2 [18:32:47]MH_I2C_Read... [18:32:47]Read from MH i2c: E2 17 00 [18:32:47]MH_I2C_Read... [18:32:47]Read from MH i2c: E2 17 00 E5 7D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 2A [18:32:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [18:32:47]wFMCommunicate OK [18:32:47]requested_item fd.num is exist - process it [18:32:47]SAM_PROTO_GetFieldsCounters [18:32:47]wFMCommunicate request_size=4 [18:32:47]MH_SAM_APDU [18:32:47]CAPDU: 80 13 00 00 [18:32:47]Write to MH i2c: E2 08 00 E6 7D 80 13 00 00 00 00 00 00 DF [18:32:47]Write i2c OK [18:32:47]MH_I2C_Read... [18:32:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:32:47]Read from MH i2c: E2 [18:32:47]MH_I2C_Read... [18:32:47]Read from MH i2c: E2 62 00 [18:32:47]MH_I2C_Read... [18:32:47]Read from MH i2c: E2 62 00 E6 7D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 D6 DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 46 01 00 00 5E 04 04 00 46 01 00 00 57 04 04 00 47 01 00 00 19 04 04 00 00 00 00 00 90 00 3D [18:32:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 D6 DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 46 01 00 00 5E 04 04 00 46 01 00 00 57 04 04 00 47 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:32:47]wFMCommunicate OK [18:32:47]SAM_PROTO_GetFieldsCounters done [18:32:47]requested_item shift.num is exist - process it [18:32:47]requested_item shift.opened is exist - process it [18:32:47]req_shift_opened [18:32:47]FM_GetShiftState [18:32:47]SAM_PROTO_GetShiftState [18:32:47]wFMCommunicate request_size=4 [18:32:47]MH_SAM_APDU [18:32:47]CAPDU: 80 13 01 00 [18:32:47]Write to MH i2c: E2 08 00 E7 7D 80 13 01 00 00 00 00 00 E1 [18:32:47]Write i2c OK [18:32:47]MH_I2C_Read... [18:32:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:32:47]Read from MH i2c: E2 [18:32:47]MH_I2C_Read... [18:32:47]Read from MH i2c: E2 0E 00 [18:32:47]MH_I2C_Read... [18:32:47]Read from MH i2c: E2 0E 00 E7 7D 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 40 [18:32:47]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [18:32:47]wFMCommunicate OK [18:32:47]SAM_PROTO_GetShiftState done [18:32:47]FM_GetShiftState done [18:32:47]req_shift_opened done [18:32:47]requested_item shift.open_date is exist - process it [18:32:47]req_shift_open_date [18:32:47]req_shift_open_date done [18:32:47]produce_requested_data done [18:32:47]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187862,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [18:32:47]process_action_free close_receipt [18:32:47]json_value_free [18:32:47]json_value_free done [18:32:47]process_json_proto returns [18:32:47]Send response to host [18:32:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187862,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [18:32:47]free response buf [18:32:47]execute_script done [18:32:47]execute_script returns [18:32:47]free content buf [18:32:47]Sock 9.Close socket [18:32:47]Sock 9.Thread stoped [18:32:51]OFD Sender: No OFD packet to send [18:32:56]OFD Sender: No OFD packet to send [18:32:58]accept exits with 8 [18:32:58]New connection [18:32:58]New thread 3067014500 created [18:32:58]Thread 3067157860 joined [18:32:58]Waiting for new connection... [18:32:58] Sock 8.Parse request [18:32:58]Sock 8.Check first char [18:32:58]Sock 8.First char is OK [18:32:58]request: POST /json_proto HTTP/1.0 [18:32:58]Method: POST [18:32:58]URL: /json_proto [18:32:58]Method is POST - this is cgi request [18:32:58]url: /json_proto [18:32:58]query_string will be loaded in cgi processing [18:32:58]execute_cgi json_proto POST (null) [18:32:58]execute_cgi path=json_proto method=POST [18:32:58]POST find Content-Length [18:32:58]Host: 172.17.42.131:8080 [18:32:58]Content-Length: 683 [18:32:58]Content-Type: application/json [18:32:58] [18:32:58]POST finish read [18:32:58]Found Content-Length = 683 [18:32:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209915", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "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" ] } } [18:32:58]execute_script... [18:32:58]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209915", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "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" ] } } [18:32:58]POST & json_proto [18:32:58]process_json_proto [18:32:58]json parsed OK: [18:32:58]protocol is kg_v1.0 [18:32:58]action value=close_receipt [18:32:58]process_action close_receipt [18:32:58]cmd_close_receipt [18:32:58]MH_GetDate [18:32:58]Write to MH i2c: F0 00 00 E8 7D 54 [18:32:58]Write i2c OK [18:32:58]MH_I2C_Read... [18:32:58]Read from MH i2c: F0 [18:32:58]MH_I2C_Read... [18:32:58]Read from MH i2c: F0 09 00 [18:32:58]MH_I2C_Read... [18:32:58]Read from MH i2c: F0 09 00 E8 7D 00 60 9E 16 67 A0 18 CA 66 C0 [18:32:58]GetLastDocTimeStamp 1729535568 [18:32:58]current date 1729535584 [18:32:58]FM_GetShiftState [18:32:58]SAM_PROTO_GetShiftState [18:32:58]wFMCommunicate request_size=4 [18:32:58]MH_SAM_APDU [18:32:58]CAPDU: 80 13 01 00 [18:32:58]Write to MH i2c: E2 08 00 E9 7D 80 13 01 00 00 00 00 00 E3 [18:32:58]Write i2c OK [18:32:58]MH_I2C_Read... [18:32:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:32:58]Read from MH i2c: E2 [18:32:58]MH_I2C_Read... [18:32:58]Read from MH i2c: E2 0E 00 [18:32:58]MH_I2C_Read... [18:32:58]Read from MH i2c: E2 0E 00 E9 7D 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 42 [18:32:58]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [18:32:58]wFMCommunicate OK [18:32:58]SAM_PROTO_GetShiftState done [18:32:58]FM_GetShiftState done [18:32:58]opened in 1729469754 [18:32:58]opened+sec_in_day 1729556154 [18:32:58]quantity*price = 50025 [18:32:58]sum+1 = 50027 [18:32:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.26 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 327 21.10.2024 18:33 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 187863 ФПД: 55115462677945 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T183304&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187863&fm=55115462677945&tin=02508201610067®Number=0000000000100030&sum=50000 [18:32:59]StoreToDocumentArchive [18:32:59]shift 460 fd 187863 [18:32:59]save to /storage/0460/doc_00187863 [18:32:59]save last doc name /storage/0460/doc_00187863 to /storage/kkm_last_doc_name [18:32:59]save OK [18:32:59]Clear old archive folders... [18:32:59]ProcessDocumentItem done err = 0, tmpTLVsize=257 [18:32:59]tlvbuf is 012AC9C0 [18:32:59]SAM_PROTO_ClearQueue [18:32:59]wFMCommunicate request_size=4 [18:32:59]MH_SAM_APDU [18:32:59]CAPDU: 80 09 00 00 [18:32:59]Write to MH i2c: E2 08 00 F6 7D 80 09 00 00 00 00 00 00 E5 [18:32:59]Write i2c OK [18:32:59]MH_I2C_Read... [18:32:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:32:59]Read from MH i2c: E2 [18:32:59]MH_I2C_Read... [18:32:59]Read from MH i2c: E2 03 00 [18:32:59]MH_I2C_Read... [18:32:59]Read from MH i2c: E2 03 00 F6 7D 00 90 00 E7 [18:32:59]RAPDU: 90 00 [18:32:59]wFMCommunicate OK [18:32:59]SAM_PROTO_ClearQueue done [18:32:59]KKMCreateOFDPacket [18:32:59]OFDProtocolAddRootSTLVToBuf [18:32:59]FM_MakeSignedData [18:32:59]FM_MakeSignedData [18:32:59]SAM_PROTO_SignData [18:32:59]wFMCommunicate request_size=4 [18:32:59]MH_SAM_APDU [18:32:59]CAPDU: 80 0D 01 02 [18:32:59]Write to MH i2c: E2 08 00 F7 7D 80 0D 01 02 00 00 00 00 ED [18:32:59]Write i2c OK [18:32:59]MH_I2C_Read... [18:32:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:33:00]Read from MH i2c: E2 [18:33:00]MH_I2C_Read... [18:33:00]Read from MH i2c: E2 03 00 [18:33:00]MH_I2C_Read... [18:33:00]Read from MH i2c: E2 03 00 F7 7D 00 90 00 E8 [18:33:00]RAPDU: 90 00 [18:33:00]wFMCommunicate OK [18:33:00]wFMCommunicate request_size=255 [18:33:00]MH_SAM_APDU [18:33:00]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 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 47 01 00 00 F4 03 04 00 60 9E 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 D7 DD 02 [18:33:00]Write to MH i2c: E2 02 01 F8 7D 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 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 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 47 01 00 00 F4 03 04 00 60 9E 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 D7 DD 02 00 00 40 [18:33:00]Write i2c OK [18:33:00]MH_I2C_Read... [18:33:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:33:00]Read from MH i2c: E2 [18:33:00]MH_I2C_Read... [18:33:00]Read from MH i2c: E2 03 00 [18:33:00]MH_I2C_Read... [18:33:00]Read from MH i2c: E2 03 00 F8 7D 00 90 00 E9 [18:33:00]RAPDU: 90 00 [18:33:00]wFMCommunicate OK [18:33:00]wFMCommunicate request_size=16 [18:33:00]MH_SAM_APDU [18:33:00]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 32 20 91 93 15 B9 [18:33:00]Write to MH i2c: E2 13 00 F9 7D 80 0D 02 02 0B 00 00 35 04 06 00 32 20 91 93 15 B9 00 00 89 [18:33:00]Write i2c OK [18:33:00]MH_I2C_Read... [18:33:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:33:00]Read from MH i2c: E2 [18:33:00]MH_I2C_Read... [18:33:00]Read from MH i2c: E2 03 00 [18:33:00]MH_I2C_Read... [18:33:00]Read from MH i2c: E2 03 00 F9 7D 00 90 00 EA [18:33:00]RAPDU: 90 00 [18:33:00]wFMCommunicate OK [18:33:00]wFMCommunicate request_size=4 [18:33:00]MH_SAM_APDU [18:33:00]CAPDU: 80 0D 03 02 [18:33:00]Write to MH i2c: E2 08 00 FA 7D 80 0D 03 02 00 00 00 00 F2 [18:33:00]Write i2c OK [18:33:00]MH_I2C_Read... [18:33:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:33:00]Read from MH i2c: E2 [18:33:00]MH_I2C_Read... [18:33:00]Read from MH i2c: E2 0B 00 [18:33:00]MH_I2C_Read... [18:33:00]Read from MH i2c: E2 0B 00 FA 7D 00 CD 2E C9 7A A7 85 32 B9 90 00 48 [18:33:00]RAPDU: CD 2E C9 7A A7 85 32 B9 90 00 [18:33:00]wFMCommunicate OK [18:33:00]SAM_PROTO_SignData done [18:33:00]FM_MakeSignedData done [18:33:00]CreateOFDProtocolMessage [18:33:00]wFMCommunicate request_size=4 [18:33:00]MH_SAM_APDU [18:33:00]CAPDU: 80 11 00 00 [18:33:00]Write to MH i2c: E2 08 00 FB 7D 80 11 00 00 00 00 00 00 F2 [18:33:00]Write i2c OK [18:33:00]MH_I2C_Read... [18:33:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:33:00]Read from MH i2c: E2 [18:33:00]MH_I2C_Read... [18:33:00]Read from MH i2c: E2 17 00 [18:33:00]MH_I2C_Read... [18:33:00]Read from MH i2c: E2 17 00 FB 7D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 40 [18:33:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [18:33:00]wFMCommunicate OK [18:33:00]CreateOFDProtocolMessage done [18:33:00]OFDSenderStorePacket 187863 [18:33:00]StoreOFDPacket docnum=187863 [18:33:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 AC F0 0D 01 95 D3 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 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 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 47 01 00 00 F4 03 04 00 60 9E 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 D7 DD 02 00 35 04 06 00 32 20 91 93 15 B9 CD 2E C9 7A A7 85 32 B9 [18:33:00]CheckFolder [18:33:00]dirname=/storage/ofd_packets [18:33:00]CheckFolder done [18:33:00]ProducePacketName [18:33:00]name=ofd_packets/00187863 [18:33:00]NVStorageSaveData ofd_packets/00187863 [18:33:00]File name is /storage/ofd_packets/00187863 [18:33:00]Write 307 bytes [18:33:00]NVStorageSaveData done [18:33:00]OFDSenderStorePacket done [18:33:00]KKMCreateOFDPacket done [18:33:00]NVStorageSaveData kkm_last_timestamp [18:33:00]File name is /storage/kkm_last_timestamp [18:33:00]Write 4 bytes [18:33:00]NVStorageSaveData done [18:33:00]ExternCall_PrintAddStr [18:33:00]wPrintStart [18:33:00]Write to MH i2c: 01 00 00 FC 7D 79 [18:33:00]Write i2c OK [18:33:00]MH_I2C_Read... [18:33:00]Read from MH i2c: 01 [18:33:00]MH_I2C_Read... [18:33:00]Read from MH i2c: 01 07 00 [18:33:00]MH_I2C_Read... [18:33:00]Read from MH i2c: 01 07 00 FC 7D 00 00 00 00 00 FF 0F 8E [18:33:00]RasterBufferAndPrint [18:33:00]line Счет N : (1)209915 [18:33:00]line ИНН: 02508201610067 [18:33:00]line Контрольно-Кассовый Чек [18:33:00]line ПРОДАЖА [18:33:00]line ТРК (МРК, ГНК) : 31 [18:33:00]line Товар: 2710194210 [18:33:00]line D-ENERGY ДТ-К-5 [18:33:00]line 6.480 * 77.20 [18:33:00]line = 500.26 [18:33:00]line НДС 12% НСП 1% [18:33:00]line > о реализуемом товаре [18:33:00]line ОКРУГЛЕНИЕ: -0.26 [18:33:00]line ИТОГО: 500.00 [18:33:00]line Внесено: 500.00 [18:33:00]line СДАЧА: 0.00 [18:33:00]line НСП 1% : 4.43 [18:33:00]line НДС 12% : 53.12 [18:33:00]line Наличными: 500.00 [18:33:00]line Безнал.: 0.00 [18:33:00]line Место: АЗС № 86 "Партнер Нефть" [18:33:00]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [18:33:00]line СНО: Общий режим [18:33:00]line Чек 327 21.10.2024 18:33 [18:33:00]line Смена: 460 ФФД: 1.0 [18:33:00]line ЗНМ: 0300000155 [18:33:00]line РНМ: 0000000000100030 [18:33:00]line Версия ККМ: 001 [18:33:00]line ФМ: 0000000000965340 [18:33:00]line ФД: 187863 [18:33:00]line ФПД: 55115462677945 [18:33:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T183304&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187863&fm=55115462677945&tin=02508201610067®Number=0000000000100030&sum=50000 [18:33:00]written 0, free lines is 4095 [18:33:00]OFD Sender: Processing packet 187863 [packets to send 1062, broken 1061] [18:33:00]ProducePacketName [18:33:00]name=ofd_packets/00187863 [18:33:00]OFD Sender: To server: pG, [18:33:00]CommunicateWithHost lk.salyk.kg:30040 [18:33:00]ConnectInit lk.salyk.kg [18:33:00]Connected sock=10 [18:33:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 AC F0 0D 01 95 D3 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 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 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 47 01 00 00 F4 03 04 00 60 9E 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 D7 DD 02 00 35 04 06 00 32 20 91 93 15 B9 CD 2E C9 7A A7 85 32 B9 [18:33:00]Write to MH i2c: 01 00 00 27 7E A5 [18:33:00]Write i2c OK [18:33:00]MH_I2C_Read... [18:33:00]Read from MH i2c: 01 [18:33:00]MH_I2C_Read... [18:33:00]Read from MH i2c: 01 07 00 [18:33:00]MH_I2C_Read... [18:33:00]Read from MH i2c: 01 07 00 27 7E 00 00 00 00 00 66 0C 1E [18:33:00]RasterBufferAndPrint [18:33:00]line [18:33:00]line [18:33:00]line [18:33:00]line [18:33:00]line [18:33:00]written 0, free lines is 3177 [18:33:00]MH_Cut [18:33:00]Write to MH i2c: D1 01 00 2E 7E 01 7E [18:33:00]Write i2c OK [18:33:00]MH_I2C_Read... [18:33:00]Read from MH i2c: D1 [18:33:00]MH_I2C_Read... [18:33:00]Read from MH i2c: D1 01 00 [18:33:00]MH_I2C_Read... [18:33:00]Read from MH i2c: D1 01 00 2E 7E 00 7D [18:33:00]Write to MH i2c: 01 00 00 2F 7E AD [18:33:00]Write i2c OK [18:33:00]MH_I2C_Read... [18:33:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 48 E0 47 00 99 DC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 D7 DD 02 00 F4 03 04 00 4F 48 16 67 B6 04 01 00 00 99 54 87 1F DA C0 30 B9 [18:33:01]CommunicateWithHost err = 0 [18:33:01]CheckOFDResponse [18:33:01]1017 (14) - 77093643461234 [18:33:01]1041 (16) - 0000000000965340 [18:33:01]1040 (4) - 187863 [18:33:01]1012 (4) - 21.10.2024 12:25 [18:33:01]1206 (1) - 0 [18:33:01]OFD Sender: Remove packet 187863 [18:33:01]ProducePacketName [18:33:01]name=ofd_packets/00187863 [18:33:01]NVStorageDeleteData [18:33:01]OFD Sender: No OFD packet to send [18:33:02]*** Cut start [18:33:02]*** Partial cut [18:33:02]*** CUTSNS_PIN = 1 [18:33:02]*** CUTSNS_PIN = 0 [18:33:02]*** Brake cut motor [18:33:02]Read from MH i2c: 01 [18:33:02]MH_I2C_Read... [18:33:02]*** Stop cut motor [18:33:02]*** Cut end [18:33:02]Read from MH i2c: 01 07 00 [18:33:02]MH_I2C_Read... [18:33:02]Read from MH i2c: 01 07 00 2F 7E 00 00 00 00 00 FF 0F C2 [18:33:02]process_action close_receipt done [18:33:02]requested_data is exist [18:33:02]produce_requested_data [18:33:02]requested_item fm.sn is exist - process it [18:33:02]wFMCommunicate request_size=4 [18:33:02]MH_SAM_APDU [18:33:02]CAPDU: 80 11 00 00 [18:33:02]Write to MH i2c: E2 08 00 30 7E 80 11 00 00 00 00 00 00 28 [18:33:02]Write i2c OK [18:33:02]MH_I2C_Read... [18:33:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:33:02]Read from MH i2c: E2 [18:33:02]MH_I2C_Read... [18:33:02]Read from MH i2c: E2 17 00 [18:33:02]MH_I2C_Read... [18:33:02]Read from MH i2c: E2 17 00 30 7E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 76 [18:33:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [18:33:02]wFMCommunicate OK [18:33:02]requested_item fd.num is exist - process it [18:33:02]SAM_PROTO_GetFieldsCounters [18:33:02]wFMCommunicate request_size=4 [18:33:02]MH_SAM_APDU [18:33:02]CAPDU: 80 13 00 00 [18:33:02]Write to MH i2c: E2 08 00 31 7E 80 13 00 00 00 00 00 00 2B [18:33:02]Write i2c OK [18:33:02]MH_I2C_Read... [18:33:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:33:02]Read from MH i2c: E2 [18:33:02]MH_I2C_Read... [18:33:02]Read from MH i2c: E2 62 00 [18:33:02]MH_I2C_Read... [18:33:02]Read from MH i2c: E2 62 00 31 7E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 D7 DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 47 01 00 00 5E 04 04 00 47 01 00 00 57 04 04 00 48 01 00 00 19 04 04 00 00 00 00 00 90 00 8D [18:33:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 D7 DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 47 01 00 00 5E 04 04 00 47 01 00 00 57 04 04 00 48 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:33:03]wFMCommunicate OK [18:33:03]SAM_PROTO_GetFieldsCounters done [18:33:03]requested_item shift.num is exist - process it [18:33:03]requested_item shift.opened is exist - process it [18:33:03]req_shift_opened [18:33:03]FM_GetShiftState [18:33:03]SAM_PROTO_GetShiftState [18:33:03]wFMCommunicate request_size=4 [18:33:03]MH_SAM_APDU [18:33:03]CAPDU: 80 13 01 00 [18:33:03]Write to MH i2c: E2 08 00 32 7E 80 13 01 00 00 00 00 00 2D [18:33:03]Write i2c OK [18:33:03]MH_I2C_Read... [18:33:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:33:03]Read from MH i2c: E2 [18:33:03]MH_I2C_Read... [18:33:03]Read from MH i2c: E2 0E 00 [18:33:03]MH_I2C_Read... [18:33:03]Read from MH i2c: E2 0E 00 32 7E 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 8C [18:33:03]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [18:33:03]wFMCommunicate OK [18:33:03]SAM_PROTO_GetShiftState done [18:33:03]FM_GetShiftState done [18:33:03]req_shift_opened done [18:33:03]requested_item shift.open_date is exist - process it [18:33:03]req_shift_open_date [18:33:03]req_shift_open_date done [18:33:03]produce_requested_data done [18:33:03]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187863,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [18:33:03]process_action_free close_receipt [18:33:03]json_value_free [18:33:03]json_value_free done [18:33:03]process_json_proto returns [18:33:03]Send response to host [18:33:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187863,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [18:33:03]free response buf [18:33:03]execute_script done [18:33:03]execute_script returns [18:33:03]free content buf [18:33:03]Sock 8.Close socket [18:33:03]Sock 8.Thread stoped [18:33:06]OFD Sender: No OFD packet to send [18:33:11]OFD Sender: No OFD packet to send [18:33:16]OFD Sender: No OFD packet to send [18:33:21]OFD Sender: No OFD packet to send [18:33:26]OFD Sender: No OFD packet to send [18:33:31]OFD Sender: No OFD packet to send [18:33:36]OFD Sender: No OFD packet to send [18:33:41]OFD Sender: No OFD packet to send [18:33:46]OFD Sender: No OFD packet to send [18:33:52]OFD Sender: No OFD packet to send [18:33:57]OFD Sender: No OFD packet to send [18:34:02]OFD Sender: No OFD packet to send [18:34:07]OFD Sender: No OFD packet to send [18:34:12]OFD Sender: No OFD packet to send [18:34:17]OFD Sender: No OFD packet to send [18:34:22]OFD Sender: No OFD packet to send [18:34:27]OFD Sender: No OFD packet to send [18:34:32]OFD Sender: No OFD packet to send [18:34:37]OFD Sender: No OFD packet to send [18:34:42]OFD Sender: No OFD packet to send [18:34:47]OFD Sender: No OFD packet to send [18:34:52]OFD Sender: No OFD packet to send [18:34:57]OFD Sender: No OFD packet to send [18:35:02]OFD Sender: No OFD packet to send [18:35:07]OFD Sender: No OFD packet to send [18:35:12]OFD Sender: No OFD packet to send [18:35:17]OFD Sender: No OFD packet to send [18:35:22]OFD Sender: No OFD packet to send [18:35:27]OFD Sender: No OFD packet to send [18:35:32]OFD Sender: No OFD packet to send [18:35:37]OFD Sender: No OFD packet to send [18:35:42]OFD Sender: No OFD packet to send [18:35:47]OFD Sender: No OFD packet to send [18:35:52]OFD Sender: No OFD packet to send [18:35:57]OFD Sender: No OFD packet to send [18:36:02]OFD Sender: No OFD packet to send [18:36:07]OFD Sender: No OFD packet to send [18:36:12]OFD Sender: No OFD packet to send [18:36:17]OFD Sender: No OFD packet to send [18:36:22]OFD Sender: No OFD packet to send [18:36:27]OFD Sender: No OFD packet to send [18:36:32]OFD Sender: No OFD packet to send [18:36:37]OFD Sender: No OFD packet to send [18:36:42]OFD Sender: No OFD packet to send [18:36:47]OFD Sender: No OFD packet to send [18:36:52]OFD Sender: No OFD packet to send [18:36:57]OFD Sender: No OFD packet to send [18:37:02]OFD Sender: No OFD packet to send [18:37:07]OFD Sender: No OFD packet to send [18:37:12]OFD Sender: No OFD packet to send [18:37:17]OFD Sender: No OFD packet to send [18:37:22]OFD Sender: No OFD packet to send [18:37:27]OFD Sender: No OFD packet to send [18:37:32]OFD Sender: No OFD packet to send [18:37: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:19]accept exits with 9 [18:38:19]New connection [18:38:19]New thread 3067157860 created [18:38:19]Thread 3067014500 joined [18:38:19]Waiting for new connection... [18:38:19] Sock 9.Parse request [18:38:19]Sock 9.Check first char [18:38:19]Sock 9.First char is OK [18:38:19]request: POST /json_proto HTTP/1.0 [18:38:19]Method: POST [18:38:19]URL: /json_proto [18:38:19]Method is POST - this is cgi request [18:38:19]url: /json_proto [18:38:19]query_string will be loaded in cgi processing [18:38:19]execute_cgi json_proto POST (null) [18:38:19]execute_cgi path=json_proto method=POST [18:38:19]POST find Content-Length [18:38:19]Host: 172.17.42.131:8080 [18:38:19]Content-Length: 688 [18:38:19]Content-Type: application/json [18:38:19] [18:38:19]POST finish read [18:38:19]Found Content-Length = 688 [18:38:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209916", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 12.960, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:38:19]execute_script... [18:38: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)209916", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 12.960, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:38:19]POST & json_proto [18:38:19]process_json_proto [18:38:19]json parsed OK: [18:38:19]protocol is kg_v1.0 [18:38:19]action value=close_receipt [18:38:19]process_action close_receipt [18:38:19]cmd_close_receipt [18:38:19]MH_GetDate [18:38:19]Write to MH i2c: F0 00 00 33 7E A0 [18:38:19]Write i2c OK [18:38:19]MH_I2C_Read... [18:38:19]Read from MH i2c: F0 [18:38:19]MH_I2C_Read... [18:38:19]Read from MH i2c: F0 09 00 [18:38:19]MH_I2C_Read... [18:38:19]Read from MH i2c: F0 09 00 33 7E 00 A1 9F 16 67 A0 18 CA 66 4E [18:38:19]GetLastDocTimeStamp 1729535584 [18:38:19]current date 1729535905 [18:38:19]FM_GetShiftState [18:38:19]SAM_PROTO_GetShiftState [18:38:19]wFMCommunicate request_size=4 [18:38:19]MH_SAM_APDU [18:38:19]CAPDU: 80 13 01 00 [18:38:19]Write to MH i2c: E2 08 00 34 7E 80 13 01 00 00 00 00 00 2F [18:38:19]Write i2c OK [18:38:19]MH_I2C_Read... [18:38:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:38:19]Read from MH i2c: E2 [18:38:19]MH_I2C_Read... [18:38:19]Read from MH i2c: E2 0E 00 [18:38:19]MH_I2C_Read... [18:38:19]Read from MH i2c: E2 0E 00 34 7E 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 8E [18:38:19]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [18:38:19]wFMCommunicate OK [18:38:19]SAM_PROTO_GetShiftState done [18:38:19]FM_GetShiftState done [18:38:19]opened in 1729469754 [18:38:19]opened+sec_in_day 1729556154 [18:38:19]quantity*price = 100051 [18:38:19]sum+1 = 100052 [18:38:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 328 21.10.2024 18:38 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 187864 ФПД: 246720008731600 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T183825&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187864&fm=246720008731600&tin=02508201610067®Number=0000000000100030&sum=100000 [18:38:20]StoreToDocumentArchive [18:38:20]shift 460 fd 187864 [18:38:20]save to /storage/0460/doc_00187864 [18:38:20]save last doc name /storage/0460/doc_00187864 to /storage/kkm_last_doc_name [18:38:20]save OK [18:38:20]Clear old archive folders... [18:38:20]ProcessDocumentItem done err = 0, tmpTLVsize=257 [18:38:20]tlvbuf is 010FA110 [18:38:20]SAM_PROTO_ClearQueue [18:38:20]wFMCommunicate request_size=4 [18:38:20]MH_SAM_APDU [18:38:20]CAPDU: 80 09 00 00 [18:38:20]Write to MH i2c: E2 08 00 41 7E 80 09 00 00 00 00 00 00 31 [18:38:20]Write i2c OK [18:38:20]MH_I2C_Read... [18:38:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:38:21]Read from MH i2c: E2 [18:38:21]MH_I2C_Read... [18:38:21]Read from MH i2c: E2 03 00 [18:38:21]MH_I2C_Read... [18:38:21]Read from MH i2c: E2 03 00 41 7E 00 90 00 33 [18:38:21]RAPDU: 90 00 [18:38:21]wFMCommunicate OK [18:38:21]SAM_PROTO_ClearQueue done [18:38:21]KKMCreateOFDPacket [18:38:21]OFDProtocolAddRootSTLVToBuf [18:38:21]FM_MakeSignedData [18:38:21]FM_MakeSignedData [18:38:21]SAM_PROTO_SignData [18:38:21]wFMCommunicate request_size=4 [18:38:21]MH_SAM_APDU [18:38:21]CAPDU: 80 0D 01 02 [18:38:21]Write to MH i2c: E2 08 00 42 7E 80 0D 01 02 00 00 00 00 39 [18:38:21]Write i2c OK [18:38:21]MH_I2C_Read... [18:38:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:38:21]Read from MH i2c: E2 [18:38:21]MH_I2C_Read... [18:38:21]Read from MH i2c: E2 03 00 [18:38:21]MH_I2C_Read... [18:38:21]Read from MH i2c: E2 03 00 42 7E 00 90 00 34 [18:38:21]RAPDU: 90 00 [18:38:21]wFMCommunicate OK [18:38:21]wFMCommunicate request_size=255 [18:38:21]MH_SAM_APDU [18:38:21]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 01 00 00 F4 03 04 00 A1 9F 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 D8 DD 02 [18:38:21]Write to MH i2c: E2 02 01 43 7E 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 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 01 00 00 F4 03 04 00 A1 9F 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 D8 DD 02 00 00 20 [18:38:21]Write i2c OK [18:38:21]MH_I2C_Read... [18:38:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:38:21]Read from MH i2c: E2 [18:38:21]MH_I2C_Read... [18:38:21]Read from MH i2c: E2 03 00 [18:38:21]MH_I2C_Read... [18:38:21]Read from MH i2c: E2 03 00 43 7E 00 90 00 35 [18:38:21]RAPDU: 90 00 [18:38:21]wFMCommunicate OK [18:38:21]wFMCommunicate request_size=16 [18:38:21]MH_SAM_APDU [18:38:21]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 E0 63 FA 7A BB D0 [18:38:21]Write to MH i2c: E2 13 00 44 7E 80 0D 02 02 0B 00 00 35 04 06 00 E0 63 FA 7A BB D0 00 00 D3 [18:38:21]Write i2c OK [18:38:21]MH_I2C_Read... [18:38:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:38:21]Read from MH i2c: E2 [18:38:21]MH_I2C_Read... [18:38:21]Read from MH i2c: E2 03 00 [18:38:21]MH_I2C_Read... [18:38:21]Read from MH i2c: E2 03 00 44 7E 00 90 00 36 [18:38:21]RAPDU: 90 00 [18:38:21]wFMCommunicate OK [18:38:21]wFMCommunicate request_size=4 [18:38:21]MH_SAM_APDU [18:38:21]CAPDU: 80 0D 03 02 [18:38:21]Write to MH i2c: E2 08 00 45 7E 80 0D 03 02 00 00 00 00 3E [18:38:21]Write i2c OK [18:38:21]MH_I2C_Read... [18:38:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:38:21]Read from MH i2c: E2 [18:38:21]MH_I2C_Read... [18:38:21]Read from MH i2c: E2 0B 00 [18:38:21]MH_I2C_Read... [18:38:21]Read from MH i2c: E2 0B 00 45 7E 00 71 57 79 98 E4 09 C2 89 90 00 50 [18:38:21]RAPDU: 71 57 79 98 E4 09 C2 89 90 00 [18:38:21]wFMCommunicate OK [18:38:21]SAM_PROTO_SignData done [18:38:21]FM_MakeSignedData done [18:38:21]CreateOFDProtocolMessage [18:38:21]wFMCommunicate request_size=4 [18:38:21]MH_SAM_APDU [18:38:21]CAPDU: 80 11 00 00 [18:38:21]Write to MH i2c: E2 08 00 46 7E 80 11 00 00 00 00 00 00 3E [18:38:21]Write i2c OK [18:38:21]MH_I2C_Read... [18:38:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:38:21]Read from MH i2c: E2 [18:38:21]MH_I2C_Read... [18:38:21]Read from MH i2c: E2 17 00 [18:38:21]MH_I2C_Read... [18:38:21]Read from MH i2c: E2 17 00 46 7E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 8C [18:38:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [18:38:21]wFMCommunicate OK [18:38:21]CreateOFDProtocolMessage done [18:38:21]OFDSenderStorePacket 187864 [18:38:21]StoreOFDPacket docnum=187864 [18:38:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 96 A3 0D 01 DD 4B 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 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 01 00 00 F4 03 04 00 A1 9F 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 D8 DD 02 00 35 04 06 00 E0 63 FA 7A BB D0 71 57 79 98 E4 09 C2 89 [18:38:21]CheckFolder [18:38:21]dirname=/storage/ofd_packets [18:38:21]CheckFolder done [18:38:21]ProducePacketName [18:38:21]name=ofd_packets/00187864 [18:38:21]NVStorageSaveData ofd_packets/00187864 [18:38:21]File name is /storage/ofd_packets/00187864 [18:38:21]Write 307 bytes [18:38:21]NVStorageSaveData done [18:38:21]OFDSenderStorePacket done [18:38:21]KKMCreateOFDPacket done [18:38:21]NVStorageSaveData kkm_last_timestamp [18:38:21]File name is /storage/kkm_last_timestamp [18:38:21]Write 4 bytes [18:38:21]NVStorageSaveData done [18:38:21]ExternCall_PrintAddStr [18:38:21]wPrintStart [18:38:21]Write to MH i2c: 01 00 00 47 7E C5 [18:38:21]Write i2c OK [18:38:21]MH_I2C_Read... [18:38:21]Read from MH i2c: 01 [18:38:21]MH_I2C_Read... [18:38:21]Read from MH i2c: 01 07 00 [18:38:21]MH_I2C_Read... [18:38:21]Read from MH i2c: 01 07 00 47 7E 00 00 00 00 00 FF 0F DA [18:38:21]RasterBufferAndPrint [18:38:21]line Счет N : (1)209916 [18:38:21]line ИНН: 02508201610067 [18:38:21]line Контрольно-Кассовый Чек [18:38:21]line ПРОДАЖА [18:38:21]line ТРК (МРК, ГНК) : 41 [18:38:21]line Товар: 2710194210 [18:38:21]line D-ENERGY ДТ-К-5 [18:38:21]line 12.960 * 77.20 [18:38:21]line = 1000.51 [18:38:21]line НДС 12% НСП 1% [18:38:21]line > о реализуемом товаре [18:38:21]line ОКРУГЛЕНИЕ: -0.51 [18:38:21]line ИТОГО: 1000.00 [18:38:21]line Внесено: 1000.00 [18:38:21]line СДАЧА: 0.00 [18:38:21]line НСП 1% : 8.85 [18:38:21]line НДС 12% : 106.25 [18:38:21]line Наличными: 1000.00 [18:38:21]line Безнал.: 0.00 [18:38:21]line Место: АЗС № 86 "Партнер Нефть" [18:38:21]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [18:38:21]line СНО: Общий режим [18:38:21]line Чек 328 21.10.2024 18:38 [18:38:21]line Смена: 460 ФФД: 1.0 [18:38:21]line ЗНМ: 0300000155 [18:38:21]line РНМ: 0000000000100030 [18:38:21]line Версия ККМ: 001 [18:38:21]line ФМ: 0000000000965340 [18:38:21]line ФД: 187864 [18:38:21]line ФПД: 246720008731600 [18:38:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T183825&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187864&fm=246720008731600&tin=02508201610067®Number=0000000000100030&sum=100000 [18:38:21]written 0, free lines is 4095 [18:38:21]OFD Sender: Processing packet 187864 [packets to send 1062, broken 1061] [18:38:21]ProducePacketName [18:38:21]name=ofd_packets/00187864 [18:38:21]OFD Sender: To server: pG, [18:38:21]CommunicateWithHost lk.salyk.kg:30040 [18:38:21]ConnectInit lk.salyk.kg [18:38:21]Write to MH i2c: 01 00 00 72 7E F0 [18:38:21]Write i2c OK [18:38:21]MH_I2C_Read... [18:38:21]Read from MH i2c: 01 [18:38:21]MH_I2C_Read... [18:38:21]Read from MH i2c: 01 07 00 [18:38:21]MH_I2C_Read... [18:38:21]Read from MH i2c: 01 07 00 72 7E 00 00 00 00 00 6A 0C 6D [18:38:21]RasterBufferAndPrint [18:38:21]line [18:38:21]line [18:38:21]line [18:38:21]line [18:38:21]line [18:38:21]written 0, free lines is 3181 [18:38:22]MH_Cut [18:38:22]Write to MH i2c: D1 01 00 79 7E 01 C9 [18:38:22]Write i2c OK [18:38:22]MH_I2C_Read... [18:38:22]Read from MH i2c: D1 [18:38:22]MH_I2C_Read... [18:38:22]Read from MH i2c: D1 01 00 [18:38:22]MH_I2C_Read... [18:38:22]Read from MH i2c: D1 01 00 79 7E 00 C8 [18:38:22]Write to MH i2c: 01 00 00 7A 7E F8 [18:38:22]Write i2c OK [18:38:22]MH_I2C_Read... [18:38:22]Connected sock=10 [18:38:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 96 A3 0D 01 DD 4B 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 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 01 00 00 F4 03 04 00 A1 9F 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 D8 DD 02 00 35 04 06 00 E0 63 FA 7A BB D0 71 57 79 98 E4 09 C2 89 [18:38:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 0F 73 47 00 33 3C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 D8 DD 02 00 F4 03 04 00 90 49 16 67 B6 04 01 00 00 8A 8F AE 34 38 16 85 87 [18:38:22]CommunicateWithHost err = 0 [18:38:22]CheckOFDResponse [18:38:22]1017 (14) - 77093643461234 [18:38:22]1041 (16) - 0000000000965340 [18:38:22]1040 (4) - 187864 [18:38:22]1012 (4) - 21.10.2024 12:31 [18:38:22]1206 (1) - 0 [18:38:22]OFD Sender: Remove packet 187864 [18:38:22]ProducePacketName [18:38:22]name=ofd_packets/00187864 [18:38:22]NVStorageDeleteData [18:38:22]OFD Sender: No OFD packet to send [18:38:23]*** Cut start [18:38:23]*** Partial cut [18:38:23]*** CUTSNS_PIN = 1 [18:38:23]*** CUTSNS_PIN = 0 [18:38:23]*** Brake cut motor [18:38:23]Read from MH i2c: 01 [18:38:23]MH_I2C_Read... [18:38:23]*** Stop cut motor [18:38:23]*** Cut end [18:38:23]Read from MH i2c: 01 07 00 [18:38:23]MH_I2C_Read... [18:38:23]Read from MH i2c: 01 07 00 7A 7E 00 00 00 00 00 FF 0F 0D [18:38:23]process_action close_receipt done [18:38:23]requested_data is exist [18:38:23]produce_requested_data [18:38:23]requested_item fm.sn is exist - process it [18:38:23]wFMCommunicate request_size=4 [18:38:23]MH_SAM_APDU [18:38:23]CAPDU: 80 11 00 00 [18:38:23]Write to MH i2c: E2 08 00 7B 7E 80 11 00 00 00 00 00 00 73 [18:38:23]Write i2c OK [18:38:23]MH_I2C_Read... [18:38:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:38:23]Read from MH i2c: E2 [18:38:23]MH_I2C_Read... [18:38:23]Read from MH i2c: E2 17 00 [18:38:23]MH_I2C_Read... [18:38:23]Read from MH i2c: E2 17 00 7B 7E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 C1 [18:38:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [18:38:23]wFMCommunicate OK [18:38:23]requested_item fd.num is exist - process it [18:38:23]SAM_PROTO_GetFieldsCounters [18:38:23]wFMCommunicate request_size=4 [18:38:23]MH_SAM_APDU [18:38:23]CAPDU: 80 13 00 00 [18:38:23]Write to MH i2c: E2 08 00 7C 7E 80 13 00 00 00 00 00 00 76 [18:38:23]Write i2c OK [18:38:23]MH_I2C_Read... [18:38:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:38:24]Read from MH i2c: E2 [18:38:24]MH_I2C_Read... [18:38:24]Read from MH i2c: E2 62 00 [18:38:24]MH_I2C_Read... [18:38:24]Read from MH i2c: E2 62 00 7C 7E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 D8 DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 48 01 00 00 5E 04 04 00 48 01 00 00 57 04 04 00 49 01 00 00 19 04 04 00 00 00 00 00 90 00 DC [18:38:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 D8 DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 48 01 00 00 5E 04 04 00 48 01 00 00 57 04 04 00 49 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:38:24]wFMCommunicate OK [18:38:24]SAM_PROTO_GetFieldsCounters done [18:38:24]requested_item shift.num is exist - process it [18:38:24]requested_item shift.opened is exist - process it [18:38:24]req_shift_opened [18:38:24]FM_GetShiftState [18:38:24]SAM_PROTO_GetShiftState [18:38:24]wFMCommunicate request_size=4 [18:38:24]MH_SAM_APDU [18:38:24]CAPDU: 80 13 01 00 [18:38:24]Write to MH i2c: E2 08 00 7D 7E 80 13 01 00 00 00 00 00 78 [18:38:24]Write i2c OK [18:38:24]MH_I2C_Read... [18:38:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:38:24]Read from MH i2c: E2 [18:38:24]MH_I2C_Read... [18:38:24]Read from MH i2c: E2 0E 00 [18:38:24]MH_I2C_Read... [18:38:24]Read from MH i2c: E2 0E 00 7D 7E 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 D7 [18:38:24]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [18:38:24]wFMCommunicate OK [18:38:24]SAM_PROTO_GetShiftState done [18:38:24]FM_GetShiftState done [18:38:24]req_shift_opened done [18:38:24]requested_item shift.open_date is exist - process it [18:38:24]req_shift_open_date [18:38:24]req_shift_open_date done [18:38:24]produce_requested_data done [18:38:24]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187864,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [18:38:24]process_action_free close_receipt [18:38:24]json_value_free [18:38:24]json_value_free done [18:38:24]process_json_proto returns [18:38:24]Send response to host [18:38:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187864,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [18:38:24]free response buf [18:38:24]execute_script done [18:38:24]execute_script returns [18:38:24]free content buf [18:38:24]Sock 9.Close socket [18:38:24]Sock 9.Thread stoped [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:18]accept exits with 8 [18:39:18]New connection [18:39:18]New thread 3067014500 created [18:39:18]Thread 3067157860 joined [18:39:18]Waiting for new connection... [18:39:18] Sock 8.Parse request [18:39:18]Sock 8.Check first char [18:39:18]Sock 8.First char is OK [18:39:18]request: POST /json_proto HTTP/1.0 [18:39:18]Method: POST [18:39:18]URL: /json_proto [18:39:18]Method is POST - this is cgi request [18:39:18]url: /json_proto [18:39:18]query_string will be loaded in cgi processing [18:39:18]execute_cgi json_proto POST (null) [18:39:18]execute_cgi path=json_proto method=POST [18:39:18]POST find Content-Length [18:39:18]Host: 172.17.42.131:8080 [18:39:18]Content-Length: 677 [18:39:18]Content-Type: application/json [18:39:18] [18:39:18]POST finish read [18:39:18]Found Content-Length = 677 [18:39:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209917", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "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:39:18]execute_script... [18:39: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)209917", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "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:39:18]POST & json_proto [18:39:18]process_json_proto [18:39:18]json parsed OK: [18:39:18]protocol is kg_v1.0 [18:39:18]action value=close_receipt [18:39:18]process_action close_receipt [18:39:18]cmd_close_receipt [18:39:18]MH_GetDate [18:39:18]Write to MH i2c: F0 00 00 7E 7E EB [18:39:18]Write i2c OK [18:39:18]MH_I2C_Read... [18:39:18]Read from MH i2c: F0 [18:39:18]MH_I2C_Read... [18:39:18]Read from MH i2c: F0 09 00 [18:39:18]MH_I2C_Read... [18:39:18]Read from MH i2c: F0 09 00 7E 7E 00 DB 9F 16 67 A0 18 CA 66 D3 [18:39:18]GetLastDocTimeStamp 1729535905 [18:39:18]current date 1729535963 [18:39:18]FM_GetShiftState [18:39:18]SAM_PROTO_GetShiftState [18:39:18]wFMCommunicate request_size=4 [18:39:18]MH_SAM_APDU [18:39:18]CAPDU: 80 13 01 00 [18:39:18]Write to MH i2c: E2 08 00 7F 7E 80 13 01 00 00 00 00 00 7A [18:39:18]Write i2c OK [18:39:18]MH_I2C_Read... [18:39:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:39:18]Read from MH i2c: E2 [18:39:18]MH_I2C_Read... [18:39:18]Read from MH i2c: E2 0E 00 [18:39:18]MH_I2C_Read... [18:39:18]Read from MH i2c: E2 0E 00 7F 7E 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 D9 [18:39:18]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [18:39:18]wFMCommunicate OK [18:39:18]SAM_PROTO_GetShiftState done [18:39:18]FM_GetShiftState done [18:39:18]opened in 1729469754 [18:39:18]opened+sec_in_day 1729556154 [18:39:18]quantity*price = 50041 [18:39:18]sum+1 = 50042 [18:39: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 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 329 21.10.2024 18:39 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 187865 ФПД: 66421067126710 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T183923&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187865&fm=66421067126710&tin=02508201610067®Number=0000000000100030&sum=50000 [18:39:19]StoreToDocumentArchive [18:39:19]shift 460 fd 187865 [18:39:19]save to /storage/0460/doc_00187865 [18:39:19]save last doc name /storage/0460/doc_00187865 to /storage/kkm_last_doc_name [18:39:19]save OK [18:39:19]Clear old archive folders... [18:39:19]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:39:19]tlvbuf is 010FA0E0 [18:39:19]SAM_PROTO_ClearQueue [18:39:19]wFMCommunicate request_size=4 [18:39:19]MH_SAM_APDU [18:39:19]CAPDU: 80 09 00 00 [18:39:19]Write to MH i2c: E2 08 00 8C 7E 80 09 00 00 00 00 00 00 7C [18:39:19]Write i2c OK [18:39:19]MH_I2C_Read... [18:39:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:39:19]Read from MH i2c: E2 [18:39:19]MH_I2C_Read... [18:39:19]Read from MH i2c: E2 03 00 [18:39:19]MH_I2C_Read... [18:39:19]Read from MH i2c: E2 03 00 8C 7E 00 90 00 7E [18:39:19]RAPDU: 90 00 [18:39:19]wFMCommunicate OK [18:39:19]SAM_PROTO_ClearQueue done [18:39:19]KKMCreateOFDPacket [18:39:19]OFDProtocolAddRootSTLVToBuf [18:39:19]FM_MakeSignedData [18:39:19]FM_MakeSignedData [18:39:19]SAM_PROTO_SignData [18:39:19]wFMCommunicate request_size=4 [18:39:19]MH_SAM_APDU [18:39:19]CAPDU: 80 0D 01 02 [18:39:19]Write to MH i2c: E2 08 00 8D 7E 80 0D 01 02 00 00 00 00 84 [18:39:19]Write i2c OK [18:39:19]MH_I2C_Read... [18:39:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:39:19]Read from MH i2c: E2 [18:39:19]MH_I2C_Read... [18:39:19]Read from MH i2c: E2 03 00 [18:39:19]MH_I2C_Read... [18:39:19]Read from MH i2c: E2 03 00 8D 7E 00 90 00 7F [18:39:19]RAPDU: 90 00 [18:39:19]wFMCommunicate OK [18:39:19]wFMCommunicate request_size=255 [18:39:19]MH_SAM_APDU [18:39: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 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 01 00 00 F4 03 04 00 DB 9F 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 D9 DD 02 00 35 04 06 00 3C [18:39:19]Write to MH i2c: E2 02 01 8E 7E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 01 00 00 F4 03 04 00 DB 9F 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 D9 DD 02 00 35 04 06 00 3C 00 00 F9 [18:39:19]Write i2c OK [18:39:19]MH_I2C_Read... [18:39:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:39:20]Read from MH i2c: E2 [18:39:20]MH_I2C_Read... [18:39:20]Read from MH i2c: E2 03 00 [18:39:20]MH_I2C_Read... [18:39:20]Read from MH i2c: E2 03 00 8E 7E 00 90 00 80 [18:39:20]RAPDU: 90 00 [18:39:20]wFMCommunicate OK [18:39:20]wFMCommunicate request_size=10 [18:39:20]MH_SAM_APDU [18:39:20]CAPDU: 80 0D 02 02 05 68 DC 1C 97 B6 [18:39:20]Write to MH i2c: E2 0D 00 8F 7E 80 0D 02 02 05 00 68 DC 1C 97 B6 00 00 3E [18:39:20]Write i2c OK [18:39:20]MH_I2C_Read... [18:39:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:39:20]Read from MH i2c: E2 [18:39:20]MH_I2C_Read... [18:39:20]Read from MH i2c: E2 03 00 [18:39:20]MH_I2C_Read... [18:39:20]Read from MH i2c: E2 03 00 8F 7E 00 90 00 81 [18:39:20]RAPDU: 90 00 [18:39:20]wFMCommunicate OK [18:39:20]wFMCommunicate request_size=4 [18:39:20]MH_SAM_APDU [18:39:20]CAPDU: 80 0D 03 02 [18:39:20]Write to MH i2c: E2 08 00 90 7E 80 0D 03 02 00 00 00 00 89 [18:39:20]Write i2c OK [18:39:20]MH_I2C_Read... [18:39:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:39:20]Read from MH i2c: E2 [18:39:20]MH_I2C_Read... [18:39:20]Read from MH i2c: E2 0B 00 [18:39:20]MH_I2C_Read... [18:39:20]Read from MH i2c: E2 0B 00 90 7E 00 6E 03 8E F5 43 1B 6B A1 90 00 E8 [18:39:20]RAPDU: 6E 03 8E F5 43 1B 6B A1 90 00 [18:39:20]wFMCommunicate OK [18:39:20]SAM_PROTO_SignData done [18:39:20]FM_MakeSignedData done [18:39:20]CreateOFDProtocolMessage [18:39:20]wFMCommunicate request_size=4 [18:39:20]MH_SAM_APDU [18:39:20]CAPDU: 80 11 00 00 [18:39:20]Write to MH i2c: E2 08 00 91 7E 80 11 00 00 00 00 00 00 89 [18:39:20]Write i2c OK [18:39:20]MH_I2C_Read... [18:39:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:39:20]Read from MH i2c: E2 [18:39:20]MH_I2C_Read... [18:39:20]Read from MH i2c: E2 17 00 [18:39:20]MH_I2C_Read... [18:39:20]Read from MH i2c: E2 17 00 91 7E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 D7 [18:39:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [18:39:20]wFMCommunicate OK [18:39:20]CreateOFDProtocolMessage done [18:39:20]OFDSenderStorePacket 187865 [18:39:20]StoreOFDPacket docnum=187865 [18:39:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 07 42 07 01 E7 C7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 01 00 00 F4 03 04 00 DB 9F 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 D9 DD 02 00 35 04 06 00 3C 68 DC 1C 97 B6 6E 03 8E F5 43 1B 6B A1 [18:39:20]CheckFolder [18:39:20]dirname=/storage/ofd_packets [18:39:20]CheckFolder done [18:39:20]ProducePacketName [18:39:20]name=ofd_packets/00187865 [18:39:20]NVStorageSaveData ofd_packets/00187865 [18:39:20]File name is /storage/ofd_packets/00187865 [18:39:20]Write 301 bytes [18:39:20]NVStorageSaveData done [18:39:20]OFDSenderStorePacket done [18:39:20]KKMCreateOFDPacket done [18:39:20]NVStorageSaveData kkm_last_timestamp [18:39:20]File name is /storage/kkm_last_timestamp [18:39:20]Write 4 bytes [18:39:20]NVStorageSaveData done [18:39:20]ExternCall_PrintAddStr [18:39:20]wPrintStart [18:39:20]Write to MH i2c: 01 00 00 92 7E 10 [18:39:20]Write i2c OK [18:39:20]MH_I2C_Read... [18:39:20]Read from MH i2c: 01 [18:39:20]MH_I2C_Read... [18:39:20]Read from MH i2c: 01 07 00 [18:39:20]MH_I2C_Read... [18:39:20]Read from MH i2c: 01 07 00 92 7E 00 00 00 00 00 FF 0F 25 [18:39:20]RasterBufferAndPrint [18:39:20]line Счет N : (1)209917 [18:39:20]line ИНН: 02508201610067 [18:39:20]line Контрольно-Кассовый Чек [18:39:20]line ПРОДАЖА [18:39:20]line ТРК (МРК, ГНК) : 12 [18:39:20]line Товар: 2710124130 [18:39:20]line Аи-92-К-3 [18:39:20]line 7.480 * 66.90 [18:39:20]line = 500.41 [18:39:20]line НДС 12% НСП 1% [18:39:20]line > о реализуемом товаре [18:39:20]line ОКРУГЛЕНИЕ: -0.41 [18:39:20]line ИТОГО: 500.00 [18:39:20]line Внесено: 500.00 [18:39:20]line СДАЧА: 0.00 [18:39:20]line НСП 1% : 4.43 [18:39:20]line НДС 12% : 53.14 [18:39:20]line Наличными: 500.00 [18:39:20]line Безнал.: 0.00 [18:39:20]line Место: АЗС № 86 "Партнер Нефть" [18:39:20]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [18:39:20]line СНО: Общий режим [18:39:20]line Чек 329 21.10.2024 18:39 [18:39:20]line Смена: 460 ФФД: 1.0 [18:39:20]line ЗНМ: 0300000155 [18:39:20]line РНМ: 0000000000100030 [18:39:20]line Версия ККМ: 001 [18:39:20]line ФМ: 0000000000965340 [18:39:20]line ФД: 187865 [18:39:20]line ФПД: 66421067126710 [18:39:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T183923&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187865&fm=66421067126710&tin=02508201610067®Number=0000000000100030&sum=50000 [18:39:20]written 0, free lines is 4095 [18:39:20]OFD Sender: Processing packet 187865 [packets to send 1062, broken 1061] [18:39:20]ProducePacketName [18:39:20]name=ofd_packets/00187865 [18:39:20]OFD Sender: To server: pG, [18:39:20]CommunicateWithHost lk.salyk.kg:30040 [18:39:20]ConnectInit lk.salyk.kg [18:39:20]Write to MH i2c: 01 00 00 BD 7E 3B [18:39:20]Write i2c OK [18:39:20]MH_I2C_Read... [18:39:20]Read from MH i2c: 01 [18:39:20]MH_I2C_Read... [18:39:20]Read from MH i2c: 01 07 00 [18:39:20]MH_I2C_Read... [18:39:20]Read from MH i2c: 01 07 00 BD 7E 00 00 00 00 00 62 0C B0 [18:39:20]RasterBufferAndPrint [18:39:20]line [18:39:20]line [18:39:20]line [18:39:20]line [18:39:20]line [18:39:20]written 0, free lines is 3173 [18:39:20]MH_Cut [18:39:20]Write to MH i2c: D1 01 00 C4 7E 01 14 [18:39:20]Write i2c OK [18:39:20]MH_I2C_Read... [18:39:20]Read from MH i2c: D1 [18:39:20]MH_I2C_Read... [18:39:20]Read from MH i2c: D1 01 00 [18:39:20]MH_I2C_Read... [18:39:20]Read from MH i2c: D1 01 00 C4 7E 00 13 [18:39:20]Write to MH i2c: 01 00 00 C5 7E 43 [18:39:20]Write i2c OK [18:39:20]MH_I2C_Read... [18:39:20]Connected sock=11 [18:39:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 07 42 07 01 E7 C7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 01 00 00 F4 03 04 00 DB 9F 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 D9 DD 02 00 35 04 06 00 3C 68 DC 1C 97 B6 6E 03 8E F5 43 1B 6B A1 [18:39:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 6F AB 47 00 6D 3D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 D9 DD 02 00 F4 03 04 00 CB 49 16 67 B6 04 01 00 00 C4 27 28 5B B4 99 48 5D [18:39:21]CommunicateWithHost err = 0 [18:39:21]CheckOFDResponse [18:39:21]1017 (14) - 77093643461234 [18:39:21]1041 (16) - 0000000000965340 [18:39:21]1040 (4) - 187865 [18:39:21]1012 (4) - 21.10.2024 12:32 [18:39:21]1206 (1) - 0 [18:39:21]OFD Sender: Remove packet 187865 [18:39:21]ProducePacketName [18:39:21]name=ofd_packets/00187865 [18:39:21]NVStorageDeleteData [18:39:21]OFD Sender: No OFD packet to send [18:39:21]*** Cut start [18:39:21]*** Partial cut [18:39:21]*** CUTSNS_PIN = 1 [18:39:22]*** CUTSNS_PIN = 0 [18:39:22]*** Brake cut motor [18:39:22]Read from MH i2c: 01 [18:39:22]MH_I2C_Read... [18:39:22]*** Stop cut motor [18:39:22]*** Cut end [18:39:22]Read from MH i2c: 01 07 00 [18:39:22]MH_I2C_Read... [18:39:22]Read from MH i2c: 01 07 00 C5 7E 00 00 00 00 00 FF 0F 58 [18:39:22]process_action close_receipt done [18:39:22]requested_data is exist [18:39:22]produce_requested_data [18:39:22]requested_item fm.sn is exist - process it [18:39:22]wFMCommunicate request_size=4 [18:39:22]MH_SAM_APDU [18:39:22]CAPDU: 80 11 00 00 [18:39:22]Write to MH i2c: E2 08 00 C6 7E 80 11 00 00 00 00 00 00 BE [18:39:22]Write i2c OK [18:39:22]MH_I2C_Read... [18:39:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:39:22]Read from MH i2c: E2 [18:39:22]MH_I2C_Read... [18:39:22]Read from MH i2c: E2 17 00 [18:39:22]MH_I2C_Read... [18:39:22]Read from MH i2c: E2 17 00 C6 7E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 0C [18:39:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [18:39:22]wFMCommunicate OK [18:39:22]requested_item fd.num is exist - process it [18:39:22]SAM_PROTO_GetFieldsCounters [18:39:22]wFMCommunicate request_size=4 [18:39:22]MH_SAM_APDU [18:39:22]CAPDU: 80 13 00 00 [18:39:22]Write to MH i2c: E2 08 00 C7 7E 80 13 00 00 00 00 00 00 C1 [18:39:22]Write i2c OK [18:39:22]MH_I2C_Read... [18:39:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:39:22]Read from MH i2c: E2 [18:39:22]MH_I2C_Read... [18:39:22]Read from MH i2c: E2 62 00 [18:39:22]MH_I2C_Read... [18:39:22]Read from MH i2c: E2 62 00 C7 7E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 D9 DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 49 01 00 00 5E 04 04 00 49 01 00 00 57 04 04 00 4A 01 00 00 19 04 04 00 00 00 00 00 90 00 2B [18:39:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 D9 DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 49 01 00 00 5E 04 04 00 49 01 00 00 57 04 04 00 4A 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:39:22]wFMCommunicate OK [18:39:22]SAM_PROTO_GetFieldsCounters done [18:39:22]requested_item shift.num is exist - process it [18:39:22]requested_item shift.opened is exist - process it [18:39:22]req_shift_opened [18:39:22]FM_GetShiftState [18:39:22]SAM_PROTO_GetShiftState [18:39:22]wFMCommunicate request_size=4 [18:39:22]MH_SAM_APDU [18:39:22]CAPDU: 80 13 01 00 [18:39:22]Write to MH i2c: E2 08 00 C8 7E 80 13 01 00 00 00 00 00 C3 [18:39:22]Write i2c OK [18:39:22]MH_I2C_Read... [18:39:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:39:22]Read from MH i2c: E2 [18:39:22]MH_I2C_Read... [18:39:22]Read from MH i2c: E2 0E 00 [18:39:22]MH_I2C_Read... [18:39:22]Read from MH i2c: E2 0E 00 C8 7E 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 22 [18:39:22]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [18:39:22]wFMCommunicate OK [18:39:22]SAM_PROTO_GetShiftState done [18:39:22]FM_GetShiftState done [18:39:22]req_shift_opened done [18:39:22]requested_item shift.open_date is exist - process it [18:39:22]req_shift_open_date [18:39:22]req_shift_open_date done [18:39:22]produce_requested_data done [18:39:22]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187865,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [18:39:22]process_action_free close_receipt [18:39:22]json_value_free [18:39:22]json_value_free done [18:39:22]process_json_proto returns [18:39:22]Send response to host [18:39:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187865,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [18:39:22]free response buf [18:39:22]execute_script done [18:39:22]execute_script returns [18:39:22]free content buf [18:39:22]Sock 8.Close socket [18:39:22]Sock 8.Thread stoped [18:39:26]OFD Sender: No OFD packet to send [18:39:31]OFD Sender: No OFD packet to send [18:39:36]OFD Sender: No OFD packet to send [18:39:41]OFD Sender: No OFD packet to send [18:39:46]OFD Sender: No OFD packet to send [18:39:51]OFD Sender: No OFD packet to send [18:39:56]OFD Sender: No OFD packet to send [18:40:01]OFD Sender: No OFD packet to send [18:40:06]OFD Sender: No OFD packet to send [18:40:11]OFD Sender: No OFD packet to send [18:40:16]OFD Sender: No OFD packet to send [18:40:21]OFD Sender: No OFD packet to send [18:40:26]OFD Sender: No OFD packet to send [18:40:31]OFD Sender: No OFD packet to send [18:40:34]accept exits with 9 [18:40:34]New connection [18:40:34]New thread 3067157860 created [18:40:34]Thread 3067014500 joined [18:40:34]Waiting for new connection... [18:40:34] Sock 9.Parse request [18:40:34]Sock 9.Check first char [18:40:34]Sock 9.First char is OK [18:40:34]request: POST /json_proto HTTP/1.0 [18:40:34]Method: POST [18:40:34]URL: /json_proto [18:40:34]Method is POST - this is cgi request [18:40:34]url: /json_proto [18:40:34]query_string will be loaded in cgi processing [18:40:34]execute_cgi json_proto POST (null) [18:40:34]execute_cgi path=json_proto method=POST [18:40:34]POST find Content-Length [18:40:34]Host: 172.17.42.131:8080 [18:40:34]Content-Length: 769 [18:40:34]Content-Type: application/json [18:40:34] [18:40:34]POST finish read [18:40:34]Found Content-Length = 769 [18:40:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209918", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 17.940, "sum" : 1200.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1200.19 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:40:34]execute_script... [18:40: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)209918", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 17.940, "sum" : 1200.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1200.19 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:40:34]POST & json_proto [18:40:34]process_json_proto [18:40:34]json parsed OK: [18:40:34]protocol is kg_v1.0 [18:40:34]action value=close_receipt [18:40:34]process_action close_receipt [18:40:34]cmd_close_receipt [18:40:34]MH_GetDate [18:40:34]Write to MH i2c: F0 00 00 C9 7E 36 [18:40:34]Write i2c OK [18:40:34]MH_I2C_Read... [18:40:34]Read from MH i2c: F0 [18:40:34]MH_I2C_Read... [18:40:34]Read from MH i2c: F0 09 00 [18:40:34]MH_I2C_Read... [18:40:34]Read from MH i2c: F0 09 00 C9 7E 00 28 A0 16 67 A0 18 CA 66 6C [18:40:34]GetLastDocTimeStamp 1729535963 [18:40:34]current date 1729536040 [18:40:34]FM_GetShiftState [18:40:34]SAM_PROTO_GetShiftState [18:40:34]wFMCommunicate request_size=4 [18:40:34]MH_SAM_APDU [18:40:34]CAPDU: 80 13 01 00 [18:40:34]Write to MH i2c: E2 08 00 CA 7E 80 13 01 00 00 00 00 00 C5 [18:40:34]Write i2c OK [18:40:34]MH_I2C_Read... [18:40:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:40:34]Read from MH i2c: E2 [18:40:34]MH_I2C_Read... [18:40:34]Read from MH i2c: E2 0E 00 [18:40:34]MH_I2C_Read... [18:40:34]Read from MH i2c: E2 0E 00 CA 7E 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 24 [18:40:34]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [18:40:34]wFMCommunicate OK [18:40:34]SAM_PROTO_GetShiftState done [18:40:34]FM_GetShiftState done [18:40:34]opened in 1729469754 [18:40:34]opened+sec_in_day 1729556154 [18:40:34]quantity*price = 120018 [18:40:34]sum+1 = 120020 [18:40:34]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1200.19 НСП 1% : 10.62 НДС 12% : 127.45 Наличными: 0.00 Безнал.: 1200.19 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 330 21.10.2024 18:40 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000965340 ФД: 187866 ФПД: 632017387801 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T184040&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187866&fm=632017387801&tin=02508201610067®Number=0000000000100030&sum=120019 [18:40:35]StoreToDocumentArchive [18:40:35]shift 460 fd 187866 [18:40:35]save to /storage/0460/doc_00187866 [18:40:35]save last doc name /storage/0460/doc_00187866 to /storage/kkm_last_doc_name [18:40:35]save OK [18:40:35]Clear old archive folders... [18:40:35]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:40:35]tlvbuf is 0134AA90 [18:40:35]SAM_PROTO_ClearQueue [18:40:35]wFMCommunicate request_size=4 [18:40:35]MH_SAM_APDU [18:40:35]CAPDU: 80 09 00 00 [18:40:35]Write to MH i2c: E2 08 00 D7 7E 80 09 00 00 00 00 00 00 C7 [18:40:35]Write i2c OK [18:40:35]MH_I2C_Read... [18:40:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:40:36]Read from MH i2c: E2 [18:40:36]MH_I2C_Read... [18:40:36]Read from MH i2c: E2 03 00 [18:40:36]MH_I2C_Read... [18:40:36]Read from MH i2c: E2 03 00 D7 7E 00 90 00 C9 [18:40:36]RAPDU: 90 00 [18:40:36]wFMCommunicate OK [18:40:36]SAM_PROTO_ClearQueue done [18:40:36]KKMCreateOFDPacket [18:40:36]OFDProtocolAddRootSTLVToBuf [18:40:36]FM_MakeSignedData [18:40:36]FM_MakeSignedData [18:40:36]SAM_PROTO_SignData [18:40:36]wFMCommunicate request_size=4 [18:40:36]MH_SAM_APDU [18:40:36]CAPDU: 80 0D 01 02 [18:40:36]Write to MH i2c: E2 08 00 D8 7E 80 0D 01 02 00 00 00 00 CF [18:40:36]Write i2c OK [18:40:36]MH_I2C_Read... [18:40:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:40:36]Read from MH i2c: E2 [18:40:36]MH_I2C_Read... [18:40:36]Read from MH i2c: E2 03 00 [18:40:36]MH_I2C_Read... [18:40:36]Read from MH i2c: E2 03 00 D8 7E 00 90 00 CA [18:40:36]RAPDU: 90 00 [18:40:36]wFMCommunicate OK [18:40:36]wFMCommunicate request_size=255 [18:40:36]MH_SAM_APDU [18:40: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 33 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 D3 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 00 00 00 00 00 00 39 04 06 00 D3 D4 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 01 00 00 F4 03 04 00 28 A0 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 DA DD 02 00 35 04 06 00 00 [18:40:36]Write to MH i2c: E2 02 01 D9 7E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 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 D3 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 00 00 00 00 00 00 39 04 06 00 D3 D4 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 01 00 00 F4 03 04 00 28 A0 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 DA DD 02 00 35 04 06 00 00 00 00 85 [18:40:36]Write i2c OK [18:40:36]MH_I2C_Read... [18:40:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:40:36]Read from MH i2c: E2 [18:40:36]MH_I2C_Read... [18:40:36]Read from MH i2c: E2 03 00 [18:40:36]MH_I2C_Read... [18:40:36]Read from MH i2c: E2 03 00 D9 7E 00 90 00 CB [18:40:36]RAPDU: 90 00 [18:40:36]wFMCommunicate OK [18:40:36]wFMCommunicate request_size=10 [18:40:36]MH_SAM_APDU [18:40:36]CAPDU: 80 0D 02 02 05 93 27 2C 01 19 [18:40:36]Write to MH i2c: E2 0D 00 DA 7E 80 0D 02 02 05 00 93 27 2C 01 19 00 00 DC [18:40:36]Write i2c OK [18:40:36]MH_I2C_Read... [18:40:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:40:36]Read from MH i2c: E2 [18:40:36]MH_I2C_Read... [18:40:36]Read from MH i2c: E2 03 00 [18:40:36]MH_I2C_Read... [18:40:36]Read from MH i2c: E2 03 00 DA 7E 00 90 00 CC [18:40:36]RAPDU: 90 00 [18:40:36]wFMCommunicate OK [18:40:36]wFMCommunicate request_size=4 [18:40:36]MH_SAM_APDU [18:40:36]CAPDU: 80 0D 03 02 [18:40:36]Write to MH i2c: E2 08 00 DB 7E 80 0D 03 02 00 00 00 00 D4 [18:40:36]Write i2c OK [18:40:36]MH_I2C_Read... [18:40:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:40:36]Read from MH i2c: E2 [18:40:36]MH_I2C_Read... [18:40:36]Read from MH i2c: E2 0B 00 [18:40:36]MH_I2C_Read... [18:40:36]Read from MH i2c: E2 0B 00 DB 7E 00 C1 1B 52 78 D3 8E F6 C5 90 00 97 [18:40:36]RAPDU: C1 1B 52 78 D3 8E F6 C5 90 00 [18:40:36]wFMCommunicate OK [18:40:36]SAM_PROTO_SignData done [18:40:36]FM_MakeSignedData done [18:40:36]CreateOFDProtocolMessage [18:40:36]wFMCommunicate request_size=4 [18:40:36]MH_SAM_APDU [18:40:36]CAPDU: 80 11 00 00 [18:40:36]Write to MH i2c: E2 08 00 DC 7E 80 11 00 00 00 00 00 00 D4 [18:40:36]Write i2c OK [18:40:36]MH_I2C_Read... [18:40:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:40:36]Read from MH i2c: E2 [18:40:36]MH_I2C_Read... [18:40:36]Read from MH i2c: E2 17 00 [18:40:36]MH_I2C_Read... [18:40:36]Read from MH i2c: E2 17 00 DC 7E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 22 [18:40:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [18:40:36]wFMCommunicate OK [18:40:36]CreateOFDProtocolMessage done [18:40:36]OFDSenderStorePacket 187866 [18:40:36]StoreOFDPacket docnum=187866 [18:40:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 DC 9A 07 01 A6 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 33 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 D3 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 00 00 00 00 00 00 39 04 06 00 D3 D4 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 01 00 00 F4 03 04 00 28 A0 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 DA DD 02 00 35 04 06 00 00 93 27 2C 01 19 C1 1B 52 78 D3 8E F6 C5 [18:40:36]CheckFolder [18:40:36]dirname=/storage/ofd_packets [18:40:36]CheckFolder done [18:40:36]ProducePacketName [18:40:36]name=ofd_packets/00187866 [18:40:36]NVStorageSaveData ofd_packets/00187866 [18:40:36]File name is /storage/ofd_packets/00187866 [18:40:36]Write 301 bytes [18:40:36]NVStorageSaveData done [18:40:36]OFDSenderStorePacket done [18:40:36]KKMCreateOFDPacket done [18:40:36]NVStorageSaveData kkm_last_timestamp [18:40:36]File name is /storage/kkm_last_timestamp [18:40:36]Write 4 bytes [18:40:36]NVStorageSaveData done [18:40:36]ExternCall_PrintAddStr [18:40:36]wPrintStart [18:40:36]Write to MH i2c: 01 00 00 DD 7E 5B [18:40:36]Write i2c OK [18:40:36]MH_I2C_Read... [18:40:36]Read from MH i2c: 01 [18:40:36]MH_I2C_Read... [18:40:36]Read from MH i2c: 01 07 00 [18:40:36]MH_I2C_Read... [18:40:36]Read from MH i2c: 01 07 00 DD 7E 00 00 00 00 00 FF 0F 70 [18:40:36]RasterBufferAndPrint [18:40:36]line Счет N : (1)209918 [18:40:36]line ИНН: 02508201610067 [18:40:36]line Контрольно-Кассовый Чек [18:40:36]line ПРОДАЖА [18:40:36]line ТРК (МРК, ГНК) : 32 [18:40:36]line Товар: 2710124130 [18:40:36]line Аи-92-К-3 [18:40:36]line 17.940 * 66.90 [18:40:36]line = 1200.19 [18:40:36]line НДС 12% НСП 1% [18:40:36]line > о реализуемом товаре [18:40:36]line ИТОГО: 1200.19 [18:40:36]line НСП 1% : 10.62 [18:40:36]line НДС 12% : 127.45 [18:40:36]line Наличными: 0.00 [18:40:36]line Безнал.: 1200.19 [18:40:36]line Место: АЗС № 86 "Партнер Нефть" [18:40:36]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [18:40:36]line СНО: Общий режим [18:40:36]line Чек 330 21.10.2024 18:40 [18:40:36]line Смена: 460 ФФД: 1.0 [18:40:36]line ЗНМ: 0300000155 [18:40:36]line РНМ: 0000000000100030 [18:40:36]line Версия ККМ: 001 [18:40:36]line Платежная система: Mbank [18:40:36]line ФМ: 0000000000965340 [18:40:36]line ФД: 187866 [18:40:36]line ФПД: 632017387801 [18:40:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T184040&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187866&fm=632017387801&tin=02508201610067®Number=0000000000100030&sum=120019 [18:40:36]written 0, free lines is 4095 [18:40:36]OFD Sender: Processing packet 187866 [packets to send 1062, broken 1061] [18:40:36]ProducePacketName [18:40:36]name=ofd_packets/00187866 [18:40:36]OFD Sender: To server: pG, [18:40:36]CommunicateWithHost lk.salyk.kg:30040 [18:40:36]ConnectInit lk.salyk.kg [18:40:36]Connected sock=10 [18:40:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 DC 9A 07 01 A6 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 33 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 D3 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 00 00 00 00 00 00 39 04 06 00 D3 D4 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 01 00 00 F4 03 04 00 28 A0 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 DA DD 02 00 35 04 06 00 00 93 27 2C 01 19 C1 1B 52 78 D3 8E F6 C5 [18:40:36]Write to MH i2c: 01 00 00 06 7F 85 [18:40:36]Write i2c OK [18:40:36]MH_I2C_Read... [18:40:36]Read from MH i2c: 01 [18:40:36]MH_I2C_Read... [18:40:36]Read from MH i2c: 01 07 00 [18:40:36]MH_I2C_Read... [18:40:36]Read from MH i2c: 01 07 00 06 7F 00 00 00 00 00 9A 0C 32 [18:40:36]RasterBufferAndPrint [18:40:36]line [18:40:36]line [18:40:36]line [18:40:36]line [18:40:36]line [18:40:36]written 0, free lines is 3229 [18:40:37]MH_Cut [18:40:37]Write to MH i2c: D1 01 00 0D 7F 01 5E [18:40:37]Write i2c OK [18:40:37]MH_I2C_Read... [18:40:37]Read from MH i2c: D1 [18:40:37]MH_I2C_Read... [18:40:37]Read from MH i2c: D1 01 00 [18:40:37]MH_I2C_Read... [18:40:37]Read from MH i2c: D1 01 00 0D 7F 00 5D [18:40:37]Write to MH i2c: 01 00 00 0E 7F 8D [18:40:37]Write i2c OK [18:40:37]MH_I2C_Read... [18:40:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 F7 0F 47 00 CC 83 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 DA DD 02 00 F4 03 04 00 17 4A 16 67 B6 04 01 00 00 4C 38 0C 36 AA 76 2F 1A [18:40:37]CommunicateWithHost err = 0 [18:40:37]CheckOFDResponse [18:40:37]1017 (14) - 77093643461234 [18:40:37]1041 (16) - 0000000000965340 [18:40:37]1040 (4) - 187866 [18:40:37]1012 (4) - 21.10.2024 12:33 [18:40:37]1206 (1) - 0 [18:40:37]OFD Sender: Remove packet 187866 [18:40:37]ProducePacketName [18:40:37]name=ofd_packets/00187866 [18:40:37]NVStorageDeleteData [18:40:37]OFD Sender: No OFD packet to send [18:40:38]*** Cut start [18:40:38]*** Partial cut [18:40:38]*** CUTSNS_PIN = 1 [18:40:38]*** CUTSNS_PIN = 0 [18:40:38]*** Brake cut motor [18:40:38]Read from MH i2c: 01 [18:40:38]MH_I2C_Read... [18:40:38]*** Stop cut motor [18:40:38]*** Cut end [18:40:38]Read from MH i2c: 01 07 00 [18:40:38]MH_I2C_Read... [18:40:38]Read from MH i2c: 01 07 00 0E 7F 00 00 00 00 00 FF 0F A2 [18:40:38]process_action close_receipt done [18:40:38]requested_data is exist [18:40:38]produce_requested_data [18:40:38]requested_item fm.sn is exist - process it [18:40:38]wFMCommunicate request_size=4 [18:40:38]MH_SAM_APDU [18:40:38]CAPDU: 80 11 00 00 [18:40:38]Write to MH i2c: E2 08 00 0F 7F 80 11 00 00 00 00 00 00 08 [18:40:38]Write i2c OK [18:40:38]MH_I2C_Read... [18:40:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:40:38]Read from MH i2c: E2 [18:40:38]MH_I2C_Read... [18:40:38]Read from MH i2c: E2 17 00 [18:40:38]MH_I2C_Read... [18:40:38]Read from MH i2c: E2 17 00 0F 7F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 56 [18:40:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [18:40:38]wFMCommunicate OK [18:40:38]requested_item fd.num is exist - process it [18:40:38]SAM_PROTO_GetFieldsCounters [18:40:38]wFMCommunicate request_size=4 [18:40:38]MH_SAM_APDU [18:40:38]CAPDU: 80 13 00 00 [18:40:38]Write to MH i2c: E2 08 00 10 7F 80 13 00 00 00 00 00 00 0B [18:40:38]Write i2c OK [18:40:38]MH_I2C_Read... [18:40:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:40:38]Read from MH i2c: E2 [18:40:38]MH_I2C_Read... [18:40:38]Read from MH i2c: E2 62 00 [18:40:38]MH_I2C_Read... [18:40:38]Read from MH i2c: E2 62 00 10 7F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 DA DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 4A 01 00 00 5E 04 04 00 4A 01 00 00 57 04 04 00 4B 01 00 00 19 04 04 00 00 00 00 00 90 00 79 [18:40:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 DA DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 4A 01 00 00 5E 04 04 00 4A 01 00 00 57 04 04 00 4B 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:40:39]wFMCommunicate OK [18:40:39]SAM_PROTO_GetFieldsCounters done [18:40:39]requested_item shift.num is exist - process it [18:40:39]requested_item shift.opened is exist - process it [18:40:39]req_shift_opened [18:40:39]FM_GetShiftState [18:40:39]SAM_PROTO_GetShiftState [18:40:39]wFMCommunicate request_size=4 [18:40:39]MH_SAM_APDU [18:40:39]CAPDU: 80 13 01 00 [18:40:39]Write to MH i2c: E2 08 00 11 7F 80 13 01 00 00 00 00 00 0D [18:40:39]Write i2c OK [18:40:39]MH_I2C_Read... [18:40:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:40:39]Read from MH i2c: E2 [18:40:39]MH_I2C_Read... [18:40:39]Read from MH i2c: E2 0E 00 [18:40:39]MH_I2C_Read... [18:40:39]Read from MH i2c: E2 0E 00 11 7F 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 6C [18:40:39]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [18:40:39]wFMCommunicate OK [18:40:39]SAM_PROTO_GetShiftState done [18:40:39]FM_GetShiftState done [18:40:39]req_shift_opened done [18:40:39]requested_item shift.open_date is exist - process it [18:40:39]req_shift_open_date [18:40:39]req_shift_open_date done [18:40:39]produce_requested_data done [18:40:39]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187866,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [18:40:39]process_action_free close_receipt [18:40:39]json_value_free [18:40:39]json_value_free done [18:40:39]process_json_proto returns [18:40:39]Send response to host [18:40:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187866,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [18:40:39]free response buf [18:40:39]execute_script done [18:40:39]execute_script returns [18:40:39]free content buf [18:40:39]Sock 9.Close socket [18:40:39]Sock 9.Thread stoped [18:40:42]OFD Sender: No OFD packet to send [18:40:47]OFD Sender: No OFD packet to send [18:40:52]OFD Sender: No OFD packet to send [18:40:57]OFD Sender: No OFD packet to send [18:41:02]OFD Sender: No OFD packet to send [18:41:07]OFD Sender: No OFD packet to send [18:41:12]OFD Sender: No OFD packet to send [18:41:17]OFD Sender: No OFD packet to send [18:41:22]OFD Sender: No OFD packet to send [18:41:27]OFD Sender: No OFD packet to send [18:41:32]OFD Sender: No OFD packet to send [18:41:37]OFD Sender: No OFD packet to send [18:41:42]OFD Sender: No OFD packet to send [18:41:47]OFD Sender: No OFD packet to send [18:41:53]OFD Sender: No OFD packet to send [18:41:58]OFD Sender: No OFD packet to send [18:42:03]OFD Sender: No OFD packet to send [18:42:08]OFD Sender: No OFD packet to send [18:42:13]OFD Sender: No OFD packet to send [18:42:18]OFD Sender: No OFD packet to send [18:42:23]OFD Sender: No OFD packet to send [18:42:28]OFD Sender: No OFD packet to send [18:42:33]OFD Sender: No OFD packet to send [18:42:38]OFD Sender: No OFD packet to send [18:42:43]OFD Sender: No OFD packet to send [18:42:48]OFD Sender: No OFD packet to send [18:42:53]OFD Sender: No OFD packet to send [18:42:58]OFD Sender: No OFD packet to send [18:43:03]OFD Sender: No OFD packet to send [18:43:08]OFD Sender: No OFD packet to send [18:43:10]accept exits with 8 [18:43:10]New connection [18:43:10]New thread 3067014500 created [18:43:10]Thread 3067157860 joined [18:43:10]Waiting for new connection... [18:43:10] Sock 8.Parse request [18:43:10]Sock 8.Check first char [18:43:10]Sock 8.First char is OK [18:43:10]request: POST /json_proto HTTP/1.0 [18:43:10]Method: POST [18:43:10]URL: /json_proto [18:43:10]Method is POST - this is cgi request [18:43:10]url: /json_proto [18:43:10]query_string will be loaded in cgi processing [18:43:10]execute_cgi json_proto POST (null) [18:43:10]execute_cgi path=json_proto method=POST [18:43:10]POST find Content-Length [18:43:10]Host: 172.17.42.131:8080 [18:43:10]Content-Length: 682 [18:43:10]Content-Type: application/json [18:43:10] [18:43:10]POST finish read [18:43:10]Found Content-Length = 682 [18:43:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209919", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "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" ] } } [18:43:10]execute_script... [18:43: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)209919", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "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" ] } } [18:43:10]POST & json_proto [18:43:10]process_json_proto [18:43:10]json parsed OK: [18:43:10]protocol is kg_v1.0 [18:43:10]action value=close_receipt [18:43:10]process_action close_receipt [18:43:10]cmd_close_receipt [18:43:10]MH_GetDate [18:43:10]Write to MH i2c: F0 00 00 12 7F 80 [18:43:10]Write i2c OK [18:43:10]MH_I2C_Read... [18:43:10]Read from MH i2c: F0 [18:43:10]MH_I2C_Read... [18:43:10]Read from MH i2c: F0 09 00 [18:43:10]MH_I2C_Read... [18:43:10]Read from MH i2c: F0 09 00 12 7F 00 C4 A0 16 67 A0 18 CA 66 52 [18:43:10]GetLastDocTimeStamp 1729536040 [18:43:10]current date 1729536196 [18:43:10]FM_GetShiftState [18:43:10]SAM_PROTO_GetShiftState [18:43:10]wFMCommunicate request_size=4 [18:43:10]MH_SAM_APDU [18:43:10]CAPDU: 80 13 01 00 [18:43:10]Write to MH i2c: E2 08 00 13 7F 80 13 01 00 00 00 00 00 0F [18:43:10]Write i2c OK [18:43:10]MH_I2C_Read... [18:43:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:43:10]Read from MH i2c: E2 [18:43:10]MH_I2C_Read... [18:43:10]Read from MH i2c: E2 0E 00 [18:43:10]MH_I2C_Read... [18:43:10]Read from MH i2c: E2 0E 00 13 7F 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 6E [18:43:10]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [18:43:10]wFMCommunicate OK [18:43:10]SAM_PROTO_GetShiftState done [18:43:10]FM_GetShiftState done [18:43:10]opened in 1729469754 [18:43:10]opened+sec_in_day 1729556154 [18:43:10]quantity*price = 100015 [18:43:10]sum+1 = 100017 [18:43:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 331 21.10.2024 18:43 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 187867 ФПД: 111566633190130 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T184316&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187867&fm=111566633190130&tin=02508201610067®Number=0000000000100030&sum=100000 [18:43:11]StoreToDocumentArchive [18:43:11]shift 460 fd 187867 [18:43:11]save to /storage/0460/doc_00187867 [18:43:11]save last doc name /storage/0460/doc_00187867 to /storage/kkm_last_doc_name [18:43:11]save OK [18:43:11]Clear old archive folders... [18:43:11]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:43:11]tlvbuf is 010FA0A0 [18:43:11]SAM_PROTO_ClearQueue [18:43:11]wFMCommunicate request_size=4 [18:43:11]MH_SAM_APDU [18:43:11]CAPDU: 80 09 00 00 [18:43:11]Write to MH i2c: E2 08 00 20 7F 80 09 00 00 00 00 00 00 11 [18:43:11]Write i2c OK [18:43:11]MH_I2C_Read... [18:43:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:43:12]Read from MH i2c: E2 [18:43:12]MH_I2C_Read... [18:43:12]Read from MH i2c: E2 03 00 [18:43:12]MH_I2C_Read... [18:43:12]Read from MH i2c: E2 03 00 20 7F 00 90 00 13 [18:43:12]RAPDU: 90 00 [18:43:12]wFMCommunicate OK [18:43:12]SAM_PROTO_ClearQueue done [18:43:12]KKMCreateOFDPacket [18:43:12]OFDProtocolAddRootSTLVToBuf [18:43:12]FM_MakeSignedData [18:43:12]FM_MakeSignedData [18:43:12]SAM_PROTO_SignData [18:43:12]wFMCommunicate request_size=4 [18:43:12]MH_SAM_APDU [18:43:12]CAPDU: 80 0D 01 02 [18:43:12]Write to MH i2c: E2 08 00 21 7F 80 0D 01 02 00 00 00 00 19 [18:43:12]Write i2c OK [18:43:12]MH_I2C_Read... [18:43:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:43:12]Read from MH i2c: E2 [18:43:12]MH_I2C_Read... [18:43:12]Read from MH i2c: E2 03 00 [18:43:12]MH_I2C_Read... [18:43:12]Read from MH i2c: E2 03 00 21 7F 00 90 00 14 [18:43:12]RAPDU: 90 00 [18:43:12]wFMCommunicate OK [18:43:12]wFMCommunicate request_size=255 [18:43:12]MH_SAM_APDU [18:43: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 33 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 4B 01 00 00 F4 03 04 00 C4 A0 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 DB DD 02 00 35 04 06 00 65 [18:43:12]Write to MH i2c: E2 02 01 22 7F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 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 4B 01 00 00 F4 03 04 00 C4 A0 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 DB DD 02 00 35 04 06 00 65 00 00 9F [18:43:12]Write i2c OK [18:43:12]MH_I2C_Read... [18:43:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:43:12]Read from MH i2c: E2 [18:43:12]MH_I2C_Read... [18:43:12]Read from MH i2c: E2 03 00 [18:43:12]MH_I2C_Read... [18:43:12]Read from MH i2c: E2 03 00 22 7F 00 90 00 15 [18:43:12]RAPDU: 90 00 [18:43:12]wFMCommunicate OK [18:43:12]wFMCommunicate request_size=10 [18:43:12]MH_SAM_APDU [18:43:12]CAPDU: 80 0D 02 02 05 78 21 8A 42 F2 [18:43:12]Write to MH i2c: E2 0D 00 23 7F 80 0D 02 02 05 00 78 21 8A 42 F2 00 00 7D [18:43:12]Write i2c OK [18:43:12]MH_I2C_Read... [18:43:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:43:12]Read from MH i2c: E2 [18:43:12]MH_I2C_Read... [18:43:12]Read from MH i2c: E2 03 00 [18:43:12]MH_I2C_Read... [18:43:12]Read from MH i2c: E2 03 00 23 7F 00 90 00 16 [18:43:12]RAPDU: 90 00 [18:43:12]wFMCommunicate OK [18:43:12]wFMCommunicate request_size=4 [18:43:12]MH_SAM_APDU [18:43:12]CAPDU: 80 0D 03 02 [18:43:12]Write to MH i2c: E2 08 00 24 7F 80 0D 03 02 00 00 00 00 1E [18:43:12]Write i2c OK [18:43:12]MH_I2C_Read... [18:43:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:43:12]Read from MH i2c: E2 [18:43:12]MH_I2C_Read... [18:43:12]Read from MH i2c: E2 0B 00 [18:43:12]MH_I2C_Read... [18:43:12]Read from MH i2c: E2 0B 00 24 7F 00 89 14 77 03 62 9B 08 27 90 00 62 [18:43:12]RAPDU: 89 14 77 03 62 9B 08 27 90 00 [18:43:12]wFMCommunicate OK [18:43:12]SAM_PROTO_SignData done [18:43:12]FM_MakeSignedData done [18:43:12]CreateOFDProtocolMessage [18:43:12]wFMCommunicate request_size=4 [18:43:12]MH_SAM_APDU [18:43:12]CAPDU: 80 11 00 00 [18:43:12]Write to MH i2c: E2 08 00 25 7F 80 11 00 00 00 00 00 00 1E [18:43:12]Write i2c OK [18:43:12]MH_I2C_Read... [18:43:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:43:12]Read from MH i2c: E2 [18:43:12]MH_I2C_Read... [18:43:12]Read from MH i2c: E2 17 00 [18:43:12]MH_I2C_Read... [18:43:12]Read from MH i2c: E2 17 00 25 7F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 6C [18:43:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [18:43:12]wFMCommunicate OK [18:43:12]CreateOFDProtocolMessage done [18:43:12]OFDSenderStorePacket 187867 [18:43:12]StoreOFDPacket docnum=187867 [18:43:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 6B 2D 07 01 35 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 33 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 4B 01 00 00 F4 03 04 00 C4 A0 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 DB DD 02 00 35 04 06 00 65 78 21 8A 42 F2 89 14 77 03 62 9B 08 27 [18:43:12]CheckFolder [18:43:12]dirname=/storage/ofd_packets [18:43:12]CheckFolder done [18:43:12]ProducePacketName [18:43:12]name=ofd_packets/00187867 [18:43:12]NVStorageSaveData ofd_packets/00187867 [18:43:12]File name is /storage/ofd_packets/00187867 [18:43:12]Write 301 bytes [18:43:12]NVStorageSaveData done [18:43:12]OFDSenderStorePacket done [18:43:12]KKMCreateOFDPacket done [18:43:12]NVStorageSaveData kkm_last_timestamp [18:43:12]File name is /storage/kkm_last_timestamp [18:43:12]Write 4 bytes [18:43:12]NVStorageSaveData done [18:43:12]ExternCall_PrintAddStr [18:43:12]wPrintStart [18:43:12]Write to MH i2c: 01 00 00 26 7F A5 [18:43:12]Write i2c OK [18:43:12]MH_I2C_Read... [18:43:12]Read from MH i2c: 01 [18:43:12]MH_I2C_Read... [18:43:12]Read from MH i2c: 01 07 00 [18:43:12]MH_I2C_Read... [18:43:12]Read from MH i2c: 01 07 00 26 7F 00 00 00 00 00 FF 0F BA [18:43:12]RasterBufferAndPrint [18:43:12]line Счет N : (1)209919 [18:43:12]line ИНН: 02508201610067 [18:43:12]line Контрольно-Кассовый Чек [18:43:12]line ПРОДАЖА [18:43:12]line ТРК (МРК, ГНК) : 32 [18:43:12]line Товар: 2710124130 [18:43:12]line Аи-92-К-3 [18:43:12]line 14.950 * 66.90 [18:43:12]line = 1000.16 [18:43:12]line НДС 12% НСП 1% [18:43:12]line > о реализуемом товаре [18:43:12]line ОКРУГЛЕНИЕ: -0.16 [18:43:12]line ИТОГО: 1000.00 [18:43:12]line Внесено: 1000.00 [18:43:12]line СДАЧА: 0.00 [18:43:12]line НСП 1% : 8.85 [18:43:12]line НДС 12% : 106.21 [18:43:12]line Наличными: 1000.00 [18:43:12]line Безнал.: 0.00 [18:43:12]line Место: АЗС № 86 "Партнер Нефть" [18:43:12]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [18:43:12]line СНО: Общий режим [18:43:12]line Чек 331 21.10.2024 18:43 [18:43:12]line Смена: 460 ФФД: 1.0 [18:43:12]line ЗНМ: 0300000155 [18:43:12]line РНМ: 0000000000100030 [18:43:12]line Версия ККМ: 001 [18:43:12]line ФМ: 0000000000965340 [18:43:12]line ФД: 187867 [18:43:12]line ФПД: 111566633190130 [18:43:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T184316&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187867&fm=111566633190130&tin=02508201610067®Number=0000000000100030&sum=100000 [18:43:12]OFD Sender: Processing packet 187867 [packets to send 1062, broken 1061] [18:43:12]ProducePacketName [18:43:12]name=ofd_packets/00187867 [18:43:12]OFD Sender: To server: pG, [18:43:12]CommunicateWithHost lk.salyk.kg:30040 [18:43:12]ConnectInit lk.salyk.kg [18:43:12]written 0, free lines is 4095 [18:43:12]Connected sock=10 [18:43:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 6B 2D 07 01 35 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 33 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 4B 01 00 00 F4 03 04 00 C4 A0 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 DB DD 02 00 35 04 06 00 65 78 21 8A 42 F2 89 14 77 03 62 9B 08 27 [18:43:13]Write to MH i2c: 01 00 00 51 7F D0 [18:43:13]Write i2c OK [18:43:13]MH_I2C_Read... [18:43:13]Read from MH i2c: 01 [18:43:13]MH_I2C_Read... [18:43:13]Read from MH i2c: 01 07 00 [18:43:13]MH_I2C_Read... [18:43:13]Read from MH i2c: 01 07 00 51 7F 00 00 00 00 00 6E 0C 51 [18:43:13]RasterBufferAndPrint [18:43:13]line [18:43:13]line [18:43:13]line [18:43:13]line [18:43:13]line [18:43:13]written 0, free lines is 3185 [18:43:13]MH_Cut [18:43:13]Write to MH i2c: D1 01 00 58 7F 01 A9 [18:43:13]Write i2c OK [18:43:13]MH_I2C_Read... [18:43:13]Read from MH i2c: D1 [18:43:13]MH_I2C_Read... [18:43:13]Read from MH i2c: D1 01 00 [18:43:13]MH_I2C_Read... [18:43:13]Read from MH i2c: D1 01 00 58 7F 00 A8 [18:43:13]Write to MH i2c: 01 00 00 59 7F D8 [18:43:13]Write i2c OK [18:43:13]MH_I2C_Read... [18:43:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 14 04 47 00 1A 64 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 DB DD 02 00 F4 03 04 00 B3 4A 16 67 B6 04 01 00 00 96 E9 B3 1F 7C 1F FF 85 [18:43:13]CommunicateWithHost err = 0 [18:43:13]CheckOFDResponse [18:43:13]1017 (14) - 77093643461234 [18:43:13]1041 (16) - 0000000000965340 [18:43:13]1040 (4) - 187867 [18:43:13]1012 (4) - 21.10.2024 12:36 [18:43:13]1206 (1) - 0 [18:43:13]OFD Sender: Remove packet 187867 [18:43:13]ProducePacketName [18:43:13]name=ofd_packets/00187867 [18:43:13]NVStorageDeleteData [18:43:13]OFD Sender: No OFD packet to send [18:43:14]*** Cut start [18:43:14]*** Partial cut [18:43:14]*** CUTSNS_PIN = 1 [18:43:14]*** CUTSNS_PIN = 0 [18:43:14]*** Brake cut motor [18:43:14]Read from MH i2c: 01 [18:43:14]MH_I2C_Read... [18:43:14]*** Stop cut motor [18:43:14]*** Cut end [18:43:14]Read from MH i2c: 01 07 00 [18:43:14]MH_I2C_Read... [18:43:14]Read from MH i2c: 01 07 00 59 7F 00 00 00 00 00 FF 0F ED [18:43:14]process_action close_receipt done [18:43:14]requested_data is exist [18:43:14]produce_requested_data [18:43:14]requested_item fm.sn is exist - process it [18:43:14]wFMCommunicate request_size=4 [18:43:14]MH_SAM_APDU [18:43:14]CAPDU: 80 11 00 00 [18:43:14]Write to MH i2c: E2 08 00 5A 7F 80 11 00 00 00 00 00 00 53 [18:43:14]Write i2c OK [18:43:14]MH_I2C_Read... [18:43:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:43:14]Read from MH i2c: E2 [18:43:14]MH_I2C_Read... [18:43:14]Read from MH i2c: E2 17 00 [18:43:14]MH_I2C_Read... [18:43:14]Read from MH i2c: E2 17 00 5A 7F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 A1 [18:43:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [18:43:14]wFMCommunicate OK [18:43:14]requested_item fd.num is exist - process it [18:43:14]SAM_PROTO_GetFieldsCounters [18:43:14]wFMCommunicate request_size=4 [18:43:14]MH_SAM_APDU [18:43:14]CAPDU: 80 13 00 00 [18:43:14]Write to MH i2c: E2 08 00 5B 7F 80 13 00 00 00 00 00 00 56 [18:43:14]Write i2c OK [18:43:14]MH_I2C_Read... [18:43:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:43:15]Read from MH i2c: E2 [18:43:15]MH_I2C_Read... [18:43:15]Read from MH i2c: E2 62 00 [18:43:15]MH_I2C_Read... [18:43:15]Read from MH i2c: E2 62 00 5B 7F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 DB DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 4B 01 00 00 5E 04 04 00 4B 01 00 00 57 04 04 00 4C 01 00 00 19 04 04 00 00 00 00 00 90 00 C8 [18:43:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 DB DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 4B 01 00 00 5E 04 04 00 4B 01 00 00 57 04 04 00 4C 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:43:15]wFMCommunicate OK [18:43:15]SAM_PROTO_GetFieldsCounters done [18:43:15]requested_item shift.num is exist - process it [18:43:15]requested_item shift.opened is exist - process it [18:43:15]req_shift_opened [18:43:15]FM_GetShiftState [18:43:15]SAM_PROTO_GetShiftState [18:43:15]wFMCommunicate request_size=4 [18:43:15]MH_SAM_APDU [18:43:15]CAPDU: 80 13 01 00 [18:43:15]Write to MH i2c: E2 08 00 5C 7F 80 13 01 00 00 00 00 00 58 [18:43:15]Write i2c OK [18:43:15]MH_I2C_Read... [18:43:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:43:15]Read from MH i2c: E2 [18:43:15]MH_I2C_Read... [18:43:15]Read from MH i2c: E2 0E 00 [18:43:15]MH_I2C_Read... [18:43:15]Read from MH i2c: E2 0E 00 5C 7F 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 B7 [18:43:15]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [18:43:15]wFMCommunicate OK [18:43:15]SAM_PROTO_GetShiftState done [18:43:15]FM_GetShiftState done [18:43:15]req_shift_opened done [18:43:15]requested_item shift.open_date is exist - process it [18:43:15]req_shift_open_date [18:43:15]req_shift_open_date done [18:43:15]produce_requested_data done [18:43:15]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187867,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [18:43:15]process_action_free close_receipt [18:43:15]json_value_free [18:43:15]json_value_free done [18:43:15]process_json_proto returns [18:43:15]Send response to host [18:43:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187867,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [18:43:15]free response buf [18:43:15]execute_script done [18:43:15]execute_script returns [18:43:15]free content buf [18:43:15]Sock 8.Close socket [18:43:15]Sock 8.Thread stoped [18:43:18]OFD Sender: No OFD packet to send [18:43:23]OFD Sender: No OFD packet to send [18:43:28]OFD Sender: No OFD packet to send [18:43:33]OFD Sender: No OFD packet to send [18:43:38]OFD Sender: No OFD packet to send [18:43:43]OFD Sender: No OFD packet to send [18:43:48]OFD Sender: No OFD packet to send [18:43:53]OFD Sender: No OFD packet to send [18:43:58]OFD Sender: No OFD packet to send [18:44:03]OFD Sender: No OFD packet to send [18:44:09]OFD Sender: No OFD packet to send [18:44:14]OFD Sender: No OFD packet to send [18:44:19]OFD Sender: No OFD packet to send [18:44:24]OFD Sender: No OFD packet to send [18:44:29]OFD Sender: No OFD packet to send [18:44:34]OFD Sender: No OFD packet to send [18:44:39]OFD Sender: No OFD packet to send [18:44:44]OFD Sender: No OFD packet to send [18:44:49]OFD Sender: No OFD packet to send [18:44:54]OFD Sender: No OFD packet to send [18:44:59]OFD Sender: No OFD packet to send [18:45:04]OFD Sender: No OFD packet to send [18:45:04]accept exits with 9 [18:45:04]New connection [18:45:04]New thread 3067157860 created [18:45:04]Thread 3067014500 joined [18:45:04]Waiting for new connection... [18:45:04] Sock 9.Parse request [18:45:04]Sock 9.Check first char [18:45:04]Sock 9.First char is OK [18:45:04]request: POST /json_proto HTTP/1.0 [18:45:04]Method: POST [18:45:04]URL: /json_proto [18:45:04]Method is POST - this is cgi request [18:45:04]url: /json_proto [18:45:04]query_string will be loaded in cgi processing [18:45:04]execute_cgi json_proto POST (null) [18:45:04]execute_cgi path=json_proto method=POST [18:45:04]POST find Content-Length [18:45:04]Host: 172.17.42.131:8080 [18:45:04]Content-Length: 682 [18:45:04]Content-Type: application/json [18:45:04] [18:45:04]POST finish read [18:45:04]Found Content-Length = 682 [18:45:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209920", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "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" ] } } [18:45:04]execute_script... [18:45: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)209920", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "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" ] } } [18:45:04]POST & json_proto [18:45:04]process_json_proto [18:45:04]json parsed OK: [18:45:04]protocol is kg_v1.0 [18:45:04]action value=close_receipt [18:45:04]process_action close_receipt [18:45:04]cmd_close_receipt [18:45:04]MH_GetDate [18:45:04]Write to MH i2c: F0 00 00 5D 7F CB [18:45:04]Write i2c OK [18:45:04]MH_I2C_Read... [18:45:04]Read from MH i2c: F0 [18:45:04]MH_I2C_Read... [18:45:04]Read from MH i2c: F0 09 00 [18:45:04]MH_I2C_Read... [18:45:04]Read from MH i2c: F0 09 00 5D 7F 00 35 A1 16 67 A0 18 CA 66 0F [18:45:04]GetLastDocTimeStamp 1729536196 [18:45:04]current date 1729536309 [18:45:04]FM_GetShiftState [18:45:04]SAM_PROTO_GetShiftState [18:45:04]wFMCommunicate request_size=4 [18:45:04]MH_SAM_APDU [18:45:04]CAPDU: 80 13 01 00 [18:45:04]Write to MH i2c: E2 08 00 5E 7F 80 13 01 00 00 00 00 00 5A [18:45:04]Write i2c OK [18:45:04]MH_I2C_Read... [18:45:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:45:04]Read from MH i2c: E2 [18:45:04]MH_I2C_Read... [18:45:04]Read from MH i2c: E2 0E 00 [18:45:04]MH_I2C_Read... [18:45:04]Read from MH i2c: E2 0E 00 5E 7F 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 B9 [18:45:04]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [18:45:04]wFMCommunicate OK [18:45:04]SAM_PROTO_GetShiftState done [18:45:04]FM_GetShiftState done [18:45:04]opened in 1729469754 [18:45:04]opened+sec_in_day 1729556154 [18:45:04]quantity*price = 100015 [18:45:04]sum+1 = 100017 [18:45:04]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 332 21.10.2024 18:45 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 187868 ФПД: 138432654473851 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T184509&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187868&fm=138432654473851&tin=02508201610067®Number=0000000000100030&sum=100000 [18:45:05]StoreToDocumentArchive [18:45:05]shift 460 fd 187868 [18:45:05]save to /storage/0460/doc_00187868 [18:45:05]save last doc name /storage/0460/doc_00187868 to /storage/kkm_last_doc_name [18:45:05]save OK [18:45:05]Clear old archive folders... [18:45:05]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:45:05]tlvbuf is 0116FC60 [18:45:05]SAM_PROTO_ClearQueue [18:45:05]wFMCommunicate request_size=4 [18:45:05]MH_SAM_APDU [18:45:05]CAPDU: 80 09 00 00 [18:45:05]Write to MH i2c: E2 08 00 6B 7F 80 09 00 00 00 00 00 00 5C [18:45:05]Write i2c OK [18:45:05]MH_I2C_Read... [18:45:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:45:05]Read from MH i2c: E2 [18:45:05]MH_I2C_Read... [18:45:05]Read from MH i2c: E2 03 00 [18:45:05]MH_I2C_Read... [18:45:05]Read from MH i2c: E2 03 00 6B 7F 00 90 00 5E [18:45:05]RAPDU: 90 00 [18:45:05]wFMCommunicate OK [18:45:05]SAM_PROTO_ClearQueue done [18:45:05]KKMCreateOFDPacket [18:45:05]OFDProtocolAddRootSTLVToBuf [18:45:05]FM_MakeSignedData [18:45:05]FM_MakeSignedData [18:45:05]SAM_PROTO_SignData [18:45:05]wFMCommunicate request_size=4 [18:45:05]MH_SAM_APDU [18:45:05]CAPDU: 80 0D 01 02 [18:45:05]Write to MH i2c: E2 08 00 6C 7F 80 0D 01 02 00 00 00 00 64 [18:45:05]Write i2c OK [18:45:05]MH_I2C_Read... [18:45:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:45:05]Read from MH i2c: E2 [18:45:05]MH_I2C_Read... [18:45:05]Read from MH i2c: E2 03 00 [18:45:05]MH_I2C_Read... [18:45:05]Read from MH i2c: E2 03 00 6C 7F 00 90 00 5F [18:45:05]RAPDU: 90 00 [18:45:05]wFMCommunicate OK [18:45:05]wFMCommunicate request_size=255 [18:45:05]MH_SAM_APDU [18:45: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 33 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 4C 01 00 00 F4 03 04 00 35 A1 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 DC DD 02 00 35 04 06 00 7D [18:45:05]Write to MH i2c: E2 02 01 6D 7F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 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 4C 01 00 00 F4 03 04 00 35 A1 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 DC DD 02 00 35 04 06 00 7D 00 00 76 [18:45:05]Write i2c OK [18:45:05]MH_I2C_Read... [18:45:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:45:05]Read from MH i2c: E2 [18:45:05]MH_I2C_Read... [18:45:05]Read from MH i2c: E2 03 00 [18:45:05]MH_I2C_Read... [18:45:05]Read from MH i2c: E2 03 00 6D 7F 00 90 00 60 [18:45:05]RAPDU: 90 00 [18:45:05]wFMCommunicate OK [18:45:05]wFMCommunicate request_size=10 [18:45:05]MH_SAM_APDU [18:45:05]CAPDU: 80 0D 02 02 05 E7 5D 31 FA 7B [18:45:05]Write to MH i2c: E2 0D 00 6E 7F 80 0D 02 02 05 00 E7 5D 31 FA 7B 00 00 5B [18:45:05]Write i2c OK [18:45:05]MH_I2C_Read... [18:45:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:45:05]Read from MH i2c: E2 [18:45:05]MH_I2C_Read... [18:45:05]Read from MH i2c: E2 03 00 [18:45:05]MH_I2C_Read... [18:45:05]Read from MH i2c: E2 03 00 6E 7F 00 90 00 61 [18:45:05]RAPDU: 90 00 [18:45:05]wFMCommunicate OK [18:45:05]wFMCommunicate request_size=4 [18:45:05]MH_SAM_APDU [18:45:05]CAPDU: 80 0D 03 02 [18:45:05]Write to MH i2c: E2 08 00 6F 7F 80 0D 03 02 00 00 00 00 69 [18:45:05]Write i2c OK [18:45:05]MH_I2C_Read... [18:45:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:45:06]Read from MH i2c: E2 [18:45:06]MH_I2C_Read... [18:45:06]Read from MH i2c: E2 0B 00 [18:45:06]MH_I2C_Read... [18:45:06]Read from MH i2c: E2 0B 00 6F 7F 00 0C C2 9E BC 28 9D 68 06 90 00 C5 [18:45:06]RAPDU: 0C C2 9E BC 28 9D 68 06 90 00 [18:45:06]wFMCommunicate OK [18:45:06]SAM_PROTO_SignData done [18:45:06]FM_MakeSignedData done [18:45:06]CreateOFDProtocolMessage [18:45:06]wFMCommunicate request_size=4 [18:45:06]MH_SAM_APDU [18:45:06]CAPDU: 80 11 00 00 [18:45:06]Write to MH i2c: E2 08 00 70 7F 80 11 00 00 00 00 00 00 69 [18:45:06]Write i2c OK [18:45:06]MH_I2C_Read... [18:45:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:45:06]Read from MH i2c: E2 [18:45:06]MH_I2C_Read... [18:45:06]Read from MH i2c: E2 17 00 [18:45:06]MH_I2C_Read... [18:45:06]Read from MH i2c: E2 17 00 70 7F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 B7 [18:45:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [18:45:06]wFMCommunicate OK [18:45:06]CreateOFDProtocolMessage done [18:45:06]OFDSenderStorePacket 187868 [18:45:06]StoreOFDPacket docnum=187868 [18:45:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 DC A9 07 01 CA 6E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 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 4C 01 00 00 F4 03 04 00 35 A1 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 DC DD 02 00 35 04 06 00 7D E7 5D 31 FA 7B 0C C2 9E BC 28 9D 68 06 [18:45:06]CheckFolder [18:45:06]dirname=/storage/ofd_packets [18:45:06]CheckFolder done [18:45:06]ProducePacketName [18:45:06]name=ofd_packets/00187868 [18:45:06]NVStorageSaveData ofd_packets/00187868 [18:45:06]File name is /storage/ofd_packets/00187868 [18:45:06]Write 301 bytes [18:45:06]NVStorageSaveData done [18:45:06]OFDSenderStorePacket done [18:45:06]KKMCreateOFDPacket done [18:45:06]NVStorageSaveData kkm_last_timestamp [18:45:06]File name is /storage/kkm_last_timestamp [18:45:06]Write 4 bytes [18:45:06]NVStorageSaveData done [18:45:06]ExternCall_PrintAddStr [18:45:06]wPrintStart [18:45:06]Write to MH i2c: 01 00 00 71 7F F0 [18:45:06]Write i2c OK [18:45:06]MH_I2C_Read... [18:45:06]Read from MH i2c: 01 [18:45:06]MH_I2C_Read... [18:45:06]Read from MH i2c: 01 07 00 [18:45:06]MH_I2C_Read... [18:45:06]Read from MH i2c: 01 07 00 71 7F 00 00 00 00 00 FF 0F 05 [18:45:06]RasterBufferAndPrint [18:45:06]line Счет N : (1)209920 [18:45:06]line ИНН: 02508201610067 [18:45:06]line Контрольно-Кассовый Чек [18:45:06]line ПРОДАЖА [18:45:06]line ТРК (МРК, ГНК) : 12 [18:45:06]line Товар: 2710124130 [18:45:06]line Аи-92-К-3 [18:45:06]line 14.950 * 66.90 [18:45:06]line = 1000.16 [18:45:06]line НДС 12% НСП 1% [18:45:06]line > о реализуемом товаре [18:45:06]line ОКРУГЛЕНИЕ: -0.16 [18:45:06]line ИТОГО: 1000.00 [18:45:06]line Внесено: 1000.00 [18:45:06]line СДАЧА: 0.00 [18:45:06]line НСП 1% : 8.85 [18:45:06]line НДС 12% : 106.21 [18:45:06]line Наличными: 1000.00 [18:45:06]line Безнал.: 0.00 [18:45:06]line Место: АЗС № 86 "Партнер Нефть" [18:45:06]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [18:45:06]line СНО: Общий режим [18:45:06]line Чек 332 21.10.2024 18:45 [18:45:06]line Смена: 460 ФФД: 1.0 [18:45:06]line ЗНМ: 0300000155 [18:45:06]line РНМ: 0000000000100030 [18:45:06]line Версия ККМ: 001 [18:45:06]line ФМ: 0000000000965340 [18:45:06]line ФД: 187868 [18:45:06]line ФПД: 138432654473851 [18:45:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T184509&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187868&fm=138432654473851&tin=02508201610067®Number=0000000000100030&sum=100000 [18:45:06]written 0, free lines is 4095 [18:45:06]OFD Sender: Processing packet 187868 [packets to send 1062, broken 1061] [18:45:06]ProducePacketName [18:45:06]name=ofd_packets/00187868 [18:45:06]OFD Sender: To server: pG, [18:45:06]CommunicateWithHost lk.salyk.kg:30040 [18:45:06]ConnectInit lk.salyk.kg [18:45:06]Connected sock=10 [18:45:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 DC A9 07 01 CA 6E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 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 4C 01 00 00 F4 03 04 00 35 A1 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 DC DD 02 00 35 04 06 00 7D E7 5D 31 FA 7B 0C C2 9E BC 28 9D 68 06 [18:45:06]Write to MH i2c: 01 00 00 9C 7F 1B [18:45:06]Write i2c OK [18:45:06]MH_I2C_Read... [18:45:06]Read from MH i2c: 01 [18:45:06]MH_I2C_Read... [18:45:06]Read from MH i2c: 01 07 00 [18:45:06]MH_I2C_Read... [18:45:06]Read from MH i2c: 01 07 00 9C 7F 00 00 00 00 00 68 0C 96 [18:45:06]RasterBufferAndPrint [18:45:06]line [18:45:06]line [18:45:06]line [18:45:06]line [18:45:06]line [18:45:06]written 0, free lines is 3179 [18:45:06]MH_Cut [18:45:06]Write to MH i2c: D1 01 00 A3 7F 01 F4 [18:45:06]Write i2c OK [18:45:06]MH_I2C_Read... [18:45:06]Read from MH i2c: D1 [18:45:06]MH_I2C_Read... [18:45:06]Read from MH i2c: D1 01 00 [18:45:06]MH_I2C_Read... [18:45:06]Read from MH i2c: D1 01 00 A3 7F 00 F3 [18:45:06]Write to MH i2c: 01 00 00 A4 7F 23 [18:45:06]Write i2c OK [18:45:06]MH_I2C_Read... [18:45:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 B8 54 47 00 F9 A2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 DC DD 02 00 F4 03 04 00 24 4B 16 67 B6 04 01 00 00 BC EB D0 89 DA D9 18 58 [18:45:06]CommunicateWithHost err = 0 [18:45:06]CheckOFDResponse [18:45:06]1017 (14) - 77093643461234 [18:45:06]1041 (16) - 0000000000965340 [18:45:06]1040 (4) - 187868 [18:45:06]1012 (4) - 21.10.2024 12:37 [18:45:06]1206 (1) - 0 [18:45:06]OFD Sender: Remove packet 187868 [18:45:06]ProducePacketName [18:45:06]name=ofd_packets/00187868 [18:45:06]NVStorageDeleteData [18:45:07]OFD Sender: No OFD packet to send [18:45:07]*** Cut start [18:45:07]*** Partial cut [18:45:07]*** CUTSNS_PIN = 1 [18:45:07]*** CUTSNS_PIN = 0 [18:45:08]*** Brake cut motor [18:45:08]Read from MH i2c: 01 [18:45:08]MH_I2C_Read... [18:45:08]*** Stop cut motor [18:45:08]*** Cut end [18:45:08]Read from MH i2c: 01 07 00 [18:45:08]MH_I2C_Read... [18:45:08]Read from MH i2c: 01 07 00 A4 7F 00 00 00 00 00 FF 0F 38 [18:45:08]process_action close_receipt done [18:45:08]requested_data is exist [18:45:08]produce_requested_data [18:45:08]requested_item fm.sn is exist - process it [18:45:08]wFMCommunicate request_size=4 [18:45:08]MH_SAM_APDU [18:45:08]CAPDU: 80 11 00 00 [18:45:08]Write to MH i2c: E2 08 00 A5 7F 80 11 00 00 00 00 00 00 9E [18:45:08]Write i2c OK [18:45:08]MH_I2C_Read... [18:45:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:45:08]Read from MH i2c: E2 [18:45:08]MH_I2C_Read... [18:45:08]Read from MH i2c: E2 17 00 [18:45:08]MH_I2C_Read... [18:45:08]Read from MH i2c: E2 17 00 A5 7F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 EC [18:45:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [18:45:08]wFMCommunicate OK [18:45:08]requested_item fd.num is exist - process it [18:45:08]SAM_PROTO_GetFieldsCounters [18:45:08]wFMCommunicate request_size=4 [18:45:08]MH_SAM_APDU [18:45:08]CAPDU: 80 13 00 00 [18:45:08]Write to MH i2c: E2 08 00 A6 7F 80 13 00 00 00 00 00 00 A1 [18:45:08]Write i2c OK [18:45:08]MH_I2C_Read... [18:45:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:45:08]Read from MH i2c: E2 [18:45:08]MH_I2C_Read... [18:45:08]Read from MH i2c: E2 62 00 [18:45:08]MH_I2C_Read... [18:45:08]Read from MH i2c: E2 62 00 A6 7F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 DC DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 4C 01 00 00 5E 04 04 00 4C 01 00 00 57 04 04 00 4D 01 00 00 19 04 04 00 00 00 00 00 90 00 17 [18:45:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 DC DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 4C 01 00 00 5E 04 04 00 4C 01 00 00 57 04 04 00 4D 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:45:08]wFMCommunicate OK [18:45:08]SAM_PROTO_GetFieldsCounters done [18:45:08]requested_item shift.num is exist - process it [18:45:08]requested_item shift.opened is exist - process it [18:45:08]req_shift_opened [18:45:08]FM_GetShiftState [18:45:08]SAM_PROTO_GetShiftState [18:45:08]wFMCommunicate request_size=4 [18:45:08]MH_SAM_APDU [18:45:08]CAPDU: 80 13 01 00 [18:45:08]Write to MH i2c: E2 08 00 A7 7F 80 13 01 00 00 00 00 00 A3 [18:45:08]Write i2c OK [18:45:08]MH_I2C_Read... [18:45:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:45:08]Read from MH i2c: E2 [18:45:08]MH_I2C_Read... [18:45:08]Read from MH i2c: E2 0E 00 [18:45:08]MH_I2C_Read... [18:45:08]Read from MH i2c: E2 0E 00 A7 7F 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 02 [18:45:08]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [18:45:08]wFMCommunicate OK [18:45:08]SAM_PROTO_GetShiftState done [18:45:08]FM_GetShiftState done [18:45:08]req_shift_opened done [18:45:08]requested_item shift.open_date is exist - process it [18:45:08]req_shift_open_date [18:45:08]req_shift_open_date done [18:45:08]produce_requested_data done [18:45:08]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187868,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [18:45:08]process_action_free close_receipt [18:45:08]json_value_free [18:45:08]json_value_free done [18:45:08]process_json_proto returns [18:45:08]Send response to host [18:45:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187868,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [18:45:08]free response buf [18:45:08]execute_script done [18:45:08]execute_script returns [18:45:08]free content buf [18:45:08]Sock 9.Close socket [18:45:08]Sock 9.Thread stoped [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]accept exits with 8 [18:47:17]New connection [18:47:17]New thread 3067014500 created [18:47:17]Thread 3067157860 joined [18:47:17]Waiting for new connection... [18:47:17] Sock 8.Parse request [18:47:17]Sock 8.Check first char [18:47:17]Sock 8.First char is OK [18:47:17]request: POST /json_proto HTTP/1.0 [18:47:17]Method: POST [18:47:17]URL: /json_proto [18:47:17]Method is POST - this is cgi request [18:47:17]url: /json_proto [18:47:17]query_string will be loaded in cgi processing [18:47:17]execute_cgi json_proto POST (null) [18:47:17]execute_cgi path=json_proto method=POST [18:47:17]POST find Content-Length [18:47:17]Host: 172.17.42.131:8080 [18:47:17]Content-Length: 754 [18:47:17]Content-Type: application/json [18:47:17] [18:47:17]POST finish read [18:47:17]Found Content-Length = 754 [18:47:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209921", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 0.00, "quantity" : 35.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30088811", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:47:17]execute_script... [18:47: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)209921", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 0.00, "quantity" : 35.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30088811", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:47:17]POST & json_proto [18:47:17]process_json_proto [18:47:17]json parsed OK: [18:47:17]protocol is kg_v1.0 [18:47:17]action value=close_receipt [18:47:17]process_action close_receipt [18:47:17]cmd_close_receipt [18:47:17]MH_GetDate [18:47:17]Write to MH i2c: F0 00 00 A8 7F 16 [18:47:17]Write i2c OK [18:47:17]MH_I2C_Read... [18:47:17]Read from MH i2c: F0 [18:47:17]MH_I2C_Read... [18:47:17]Read from MH i2c: F0 09 00 [18:47:17]MH_I2C_Read... [18:47:17]Read from MH i2c: F0 09 00 A8 7F 00 BB A1 16 67 A0 18 CA 66 E0 [18:47:17]GetLastDocTimeStamp 1729536309 [18:47:17]current date 1729536443 [18:47:17]FM_GetShiftState [18:47:17]SAM_PROTO_GetShiftState [18:47:17]wFMCommunicate request_size=4 [18:47:17]MH_SAM_APDU [18:47:17]CAPDU: 80 13 01 00 [18:47:17]Write to MH i2c: E2 08 00 A9 7F 80 13 01 00 00 00 00 00 A5 [18:47:17]Write i2c OK [18:47:17]MH_I2C_Read... [18:47:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:47:17]Read from MH i2c: E2 [18:47:17]MH_I2C_Read... [18:47:17]Read from MH i2c: E2 0E 00 [18:47:17]MH_I2C_Read... [18:47:17]Read from MH i2c: E2 0E 00 A9 7F 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 04 [18:47:17]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [18:47:17]wFMCommunicate OK [18:47:17]SAM_PROTO_GetShiftState done [18:47:17]FM_GetShiftState done [18:47:17]opened in 1729469754 [18:47:17]opened+sec_in_day 1729556154 [18:47:17]quantity*price = 0 [18:47:17]sum+1 = 1 [18:47:17]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 333 21.10.2024 18:47 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Талоны: ТК ГПНА Online 30088811 ФМ: 0000000000965340 ФД: 187869 ФПД: 146226911928533 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T184723&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187869&fm=146226911928533&tin=02508201610067®Number=0000000000100030&sum=0 [18:47:18]StoreToDocumentArchive [18:47:18]shift 460 fd 187869 [18:47:18]save to /storage/0460/doc_00187869 [18:47:18]save last doc name /storage/0460/doc_00187869 to /storage/kkm_last_doc_name [18:47:18]save OK [18:47:18]Clear old archive folders... [18:47:18]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:47:18]tlvbuf is 01355F20 [18:47:18]SAM_PROTO_ClearQueue [18:47:18]wFMCommunicate request_size=4 [18:47:18]MH_SAM_APDU [18:47:18]CAPDU: 80 09 00 00 [18:47:18]Write to MH i2c: E2 08 00 B6 7F 80 09 00 00 00 00 00 00 A7 [18:47:18]Write i2c OK [18:47:18]MH_I2C_Read... [18:47:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:47:18]Read from MH i2c: E2 [18:47:18]MH_I2C_Read... [18:47:18]Read from MH i2c: E2 03 00 [18:47:18]MH_I2C_Read... [18:47:18]Read from MH i2c: E2 03 00 B6 7F 00 90 00 A9 [18:47:18]RAPDU: 90 00 [18:47:18]wFMCommunicate OK [18:47:18]SAM_PROTO_ClearQueue done [18:47:18]KKMCreateOFDPacket [18:47:18]OFDProtocolAddRootSTLVToBuf [18:47:18]FM_MakeSignedData [18:47:18]FM_MakeSignedData [18:47:18]SAM_PROTO_SignData [18:47:18]wFMCommunicate request_size=4 [18:47:18]MH_SAM_APDU [18:47:18]CAPDU: 80 0D 01 02 [18:47:18]Write to MH i2c: E2 08 00 B7 7F 80 0D 01 02 00 00 00 00 AF [18:47:18]Write i2c OK [18:47:18]MH_I2C_Read... [18:47:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:47:18]Read from MH i2c: E2 [18:47:18]MH_I2C_Read... [18:47:18]Read from MH i2c: E2 03 00 [18:47:18]MH_I2C_Read... [18:47:18]Read from MH i2c: E2 03 00 B7 7F 00 90 00 AA [18:47:18]RAPDU: 90 00 [18:47:18]wFMCommunicate OK [18:47:18]wFMCommunicate request_size=255 [18:47:18]MH_SAM_APDU [18:47:18]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 B8 88 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 01 00 00 F4 03 04 00 BB A1 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 DD DD 02 00 35 04 06 00 84 [18:47:18]Write to MH i2c: E2 02 01 B8 7F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 B8 88 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 01 00 00 F4 03 04 00 BB A1 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 DD DD 02 00 35 04 06 00 84 00 00 15 [18:47:19]Write i2c OK [18:47:19]MH_I2C_Read... [18:47:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:47:19]Read from MH i2c: E2 [18:47:19]MH_I2C_Read... [18:47:19]Read from MH i2c: E2 03 00 [18:47:19]MH_I2C_Read... [18:47:19]Read from MH i2c: E2 03 00 B8 7F 00 90 00 AB [18:47:19]RAPDU: 90 00 [18:47:19]wFMCommunicate OK [18:47:19]wFMCommunicate request_size=10 [18:47:19]MH_SAM_APDU [18:47:19]CAPDU: 80 0D 02 02 05 FE 1B 24 60 D5 [18:47:19]Write to MH i2c: E2 0D 00 B9 7F 80 0D 02 02 05 00 FE 1B 24 60 D5 00 00 2E [18:47:19]Write i2c OK [18:47:19]MH_I2C_Read... [18:47:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:47:19]Read from MH i2c: E2 [18:47:19]MH_I2C_Read... [18:47:19]Read from MH i2c: E2 03 00 [18:47:19]MH_I2C_Read... [18:47:19]Read from MH i2c: E2 03 00 B9 7F 00 90 00 AC [18:47:19]RAPDU: 90 00 [18:47:19]wFMCommunicate OK [18:47:19]wFMCommunicate request_size=4 [18:47:19]MH_SAM_APDU [18:47:19]CAPDU: 80 0D 03 02 [18:47:19]Write to MH i2c: E2 08 00 BA 7F 80 0D 03 02 00 00 00 00 B4 [18:47:19]Write i2c OK [18:47:19]MH_I2C_Read... [18:47:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:47:19]Read from MH i2c: E2 [18:47:19]MH_I2C_Read... [18:47:19]Read from MH i2c: E2 0B 00 [18:47:19]MH_I2C_Read... [18:47:19]Read from MH i2c: E2 0B 00 BA 7F 00 6A 3A 37 E2 AC 92 DB 4D 90 00 D8 [18:47:19]RAPDU: 6A 3A 37 E2 AC 92 DB 4D 90 00 [18:47:19]wFMCommunicate OK [18:47:19]SAM_PROTO_SignData done [18:47:19]FM_MakeSignedData done [18:47:19]CreateOFDProtocolMessage [18:47:19]wFMCommunicate request_size=4 [18:47:19]MH_SAM_APDU [18:47:19]CAPDU: 80 11 00 00 [18:47:19]Write to MH i2c: E2 08 00 BB 7F 80 11 00 00 00 00 00 00 B4 [18:47:19]Write i2c OK [18:47:19]MH_I2C_Read... [18:47:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:47:19]Read from MH i2c: E2 [18:47:19]MH_I2C_Read... [18:47:19]Read from MH i2c: E2 17 00 [18:47:19]MH_I2C_Read... [18:47:19]Read from MH i2c: E2 17 00 BB 7F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 02 [18:47:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [18:47:19]wFMCommunicate OK [18:47:19]CreateOFDProtocolMessage done [18:47:19]OFDSenderStorePacket 187869 [18:47:19]StoreOFDPacket docnum=187869 [18:47:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 08 30 07 01 EA 1A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 B8 88 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 01 00 00 F4 03 04 00 BB A1 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 DD DD 02 00 35 04 06 00 84 FE 1B 24 60 D5 6A 3A 37 E2 AC 92 DB 4D [18:47:19]CheckFolder [18:47:19]dirname=/storage/ofd_packets [18:47:19]CheckFolder done [18:47:19]ProducePacketName [18:47:19]name=ofd_packets/00187869 [18:47:19]NVStorageSaveData ofd_packets/00187869 [18:47:19]File name is /storage/ofd_packets/00187869 [18:47:19]Write 301 bytes [18:47:19]NVStorageSaveData done [18:47:19]OFDSenderStorePacket done [18:47:19]KKMCreateOFDPacket done [18:47:19]NVStorageSaveData kkm_last_timestamp [18:47:19]File name is /storage/kkm_last_timestamp [18:47:19]Write 4 bytes [18:47:19]NVStorageSaveData done [18:47:19]ExternCall_PrintAddStr [18:47:19]wPrintStart [18:47:19]Write to MH i2c: 01 00 00 BC 7F 3B [18:47:19]Write i2c OK [18:47:19]MH_I2C_Read... [18:47:19]Read from MH i2c: 01 [18:47:19]MH_I2C_Read... [18:47:19]Read from MH i2c: 01 07 00 [18:47:19]MH_I2C_Read... [18:47:19]Read from MH i2c: 01 07 00 BC 7F 00 00 00 00 00 FF 0F 50 [18:47:19]RasterBufferAndPrint [18:47:19]line Счет N : (1)209921 [18:47:19]line ИНН: 02508201610067 [18:47:19]line Контрольно-Кассовый Чек [18:47:19]line ПРОДАЖА [18:47:19]line ТРК (МРК, ГНК) : 33 [18:47:19]line Товар: 2710124500 [18:47:19]line Аи-95-К-3 [18:47:19]line 35.000 * 0.00 [18:47:19]line = 0.00 [18:47:19]line НДС 12% НСП 1% [18:47:19]line > о реализуемом товаре [18:47:19]line ИТОГО: 0.00 [18:47:19]line НСП 1% : 0.00 [18:47:19]line НДС 12% : 0.00 [18:47:19]line Наличными: 0.00 [18:47:19]line Безнал.: 0.00 [18:47:19]line Место: АЗС № 86 "Партнер Нефть" [18:47:19]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [18:47:19]line СНО: Общий режим [18:47:19]line Чек 333 21.10.2024 18:47 [18:47:19]line Смена: 460 ФФД: 1.0 [18:47:19]line ЗНМ: 0300000155 [18:47:19]line РНМ: 0000000000100030 [18:47:19]line Версия ККМ: 001 [18:47:19]line Талоны: ТК ГПНА Online [18:47:19]line 30088811 [18:47:19]line ФМ: 0000000000965340 [18:47:19]line ФД: 187869 [18:47:19]line ФПД: 146226911928533 [18:47:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T184723&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187869&fm=146226911928533&tin=02508201610067®Number=0000000000100030&sum=0 [18:47:19]written 0, free lines is 4095 [18:47:19]OFD Sender: Processing packet 187869 [packets to send 1062, broken 1061] [18:47:19]ProducePacketName [18:47:19]name=ofd_packets/00187869 [18:47:19]OFD Sender: To server: pG, [18:47:19]CommunicateWithHost lk.salyk.kg:30040 [18:47:19]ConnectInit lk.salyk.kg [18:47:19]Write to MH i2c: 01 00 00 E6 7F 65 [18:47:19]Write i2c OK [18:47:19]MH_I2C_Read... [18:47:19]Read from MH i2c: 01 [18:47:19]MH_I2C_Read... [18:47:19]Read from MH i2c: 01 07 00 [18:47:19]MH_I2C_Read... [18:47:19]Read from MH i2c: 01 07 00 E6 7F 00 00 00 00 00 80 0C F8 [18:47:19]RasterBufferAndPrint [18:47:19]line [18:47:19]line [18:47:19]line [18:47:19]line [18:47:19]line [18:47:19]written 0, free lines is 3204 [18:47:19]MH_Cut [18:47:19]Write to MH i2c: D1 01 00 ED 7F 01 3E [18:47:19]Connected sock=10 [18:47:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 08 30 07 01 EA 1A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 B8 88 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 01 00 00 F4 03 04 00 BB A1 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 DD DD 02 00 35 04 06 00 84 FE 1B 24 60 D5 6A 3A 37 E2 AC 92 DB 4D [18:47:19]Write i2c OK [18:47:19]MH_I2C_Read... [18:47:19]Read from MH i2c: D1 [18:47:19]MH_I2C_Read... [18:47:19]Read from MH i2c: D1 01 00 [18:47:19]MH_I2C_Read... [18:47:19]Read from MH i2c: D1 01 00 ED 7F 00 3D [18:47:19]Write to MH i2c: 01 00 00 EE 7F 6D [18:47:19]Write i2c OK [18:47:19]MH_I2C_Read... [18:47:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 7E 7A 47 00 78 26 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 DD DD 02 00 F4 03 04 00 AA 4B 16 67 B6 04 01 00 00 62 E2 4C 15 B8 B3 F8 EE [18:47:20]CommunicateWithHost err = 0 [18:47:20]CheckOFDResponse [18:47:20]1017 (14) - 77093643461234 [18:47:20]1041 (16) - 0000000000965340 [18:47:20]1040 (4) - 187869 [18:47:20]1012 (4) - 21.10.2024 12:40 [18:47:20]1206 (1) - 0 [18:47:20]OFD Sender: Remove packet 187869 [18:47:20]ProducePacketName [18:47:20]name=ofd_packets/00187869 [18:47:20]NVStorageDeleteData [18:47:20]OFD Sender: No OFD packet to send [18:47:21]*** Cut start [18:47:21]*** Partial cut [18:47:21]*** CUTSNS_PIN = 1 [18:47:21]*** CUTSNS_PIN = 0 [18:47:21]*** Brake cut motor [18:47:21]Read from MH i2c: 01 [18:47:21]MH_I2C_Read... [18:47:21]*** Stop cut motor [18:47:21]*** Cut end [18:47:21]Read from MH i2c: 01 07 00 [18:47:21]MH_I2C_Read... [18:47:21]Read from MH i2c: 01 07 00 EE 7F 00 00 00 00 00 FF 0F 82 [18:47:21]process_action close_receipt done [18:47:21]requested_data is exist [18:47:21]produce_requested_data [18:47:21]requested_item fm.sn is exist - process it [18:47:21]wFMCommunicate request_size=4 [18:47:21]MH_SAM_APDU [18:47:21]CAPDU: 80 11 00 00 [18:47:21]Write to MH i2c: E2 08 00 EF 7F 80 11 00 00 00 00 00 00 E8 [18:47:21]Write i2c OK [18:47:21]MH_I2C_Read... [18:47:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:47:21]Read from MH i2c: E2 [18:47:21]MH_I2C_Read... [18:47:21]Read from MH i2c: E2 17 00 [18:47:21]MH_I2C_Read... [18:47:21]Read from MH i2c: E2 17 00 EF 7F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 36 [18:47:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [18:47:21]wFMCommunicate OK [18:47:21]requested_item fd.num is exist - process it [18:47:21]SAM_PROTO_GetFieldsCounters [18:47:21]wFMCommunicate request_size=4 [18:47:21]MH_SAM_APDU [18:47:21]CAPDU: 80 13 00 00 [18:47:21]Write to MH i2c: E2 08 00 F0 7F 80 13 00 00 00 00 00 00 EB [18:47:21]Write i2c OK [18:47:21]MH_I2C_Read... [18:47:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:47:21]Read from MH i2c: E2 [18:47:21]MH_I2C_Read... [18:47:21]Read from MH i2c: E2 62 00 [18:47:21]MH_I2C_Read... [18:47:21]Read from MH i2c: E2 62 00 F0 7F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 DD DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 4D 01 00 00 5E 04 04 00 4D 01 00 00 57 04 04 00 4E 01 00 00 19 04 04 00 00 00 00 00 90 00 65 [18:47:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 DD DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 4D 01 00 00 5E 04 04 00 4D 01 00 00 57 04 04 00 4E 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:47:21]wFMCommunicate OK [18:47:21]SAM_PROTO_GetFieldsCounters done [18:47:21]requested_item shift.num is exist - process it [18:47:21]requested_item shift.opened is exist - process it [18:47:21]req_shift_opened [18:47:21]FM_GetShiftState [18:47:21]SAM_PROTO_GetShiftState [18:47:21]wFMCommunicate request_size=4 [18:47:21]MH_SAM_APDU [18:47:21]CAPDU: 80 13 01 00 [18:47:21]Write to MH i2c: E2 08 00 F1 7F 80 13 01 00 00 00 00 00 ED [18:47:21]Write i2c OK [18:47:21]MH_I2C_Read... [18:47:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:47:21]Read from MH i2c: E2 [18:47:21]MH_I2C_Read... [18:47:21]Read from MH i2c: E2 0E 00 [18:47:21]MH_I2C_Read... [18:47:21]Read from MH i2c: E2 0E 00 F1 7F 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 4C [18:47:21]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [18:47:21]wFMCommunicate OK [18:47:21]SAM_PROTO_GetShiftState done [18:47:21]FM_GetShiftState done [18:47:21]req_shift_opened done [18:47:21]requested_item shift.open_date is exist - process it [18:47:21]req_shift_open_date [18:47:21]req_shift_open_date done [18:47:21]produce_requested_data done [18:47:21]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187869,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [18:47:21]process_action_free close_receipt [18:47:21]json_value_free [18:47:21]json_value_free done [18:47:21]process_json_proto returns [18:47:21]Send response to host [18:47:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187869,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [18:47:21]free response buf [18:47:21]execute_script done [18:47:21]execute_script returns [18:47:21]free content buf [18:47:21]Sock 8.Close socket [18:47:21]Sock 8.Thread stoped [18:47:25]OFD Sender: No OFD packet to send [18:47:27]accept exits with 9 [18:47:27]New connection [18:47:27]New thread 3067157860 created [18:47:27]Thread 3067014500 joined [18:47:27]Waiting for new connection... [18:47:27] Sock 9.Parse request [18:47:27]Sock 9.Check first char [18:47:27]Sock 9.First char is OK [18:47:27]request: POST /json_proto HTTP/1.0 [18:47:27]Method: POST [18:47:27]URL: /json_proto [18:47:27]Method is POST - this is cgi request [18:47:27]url: /json_proto [18:47:27]query_string will be loaded in cgi processing [18:47:27]execute_cgi json_proto POST (null) [18:47:27]execute_cgi path=json_proto method=POST [18:47:27]POST find Content-Length [18:47:27]Host: 172.17.42.131:8080 [18:47:27]Content-Length: 766 [18:47:27]Content-Type: application/json [18:47:27] [18:47:27]POST finish read [18:47:27]Found Content-Length = 766 [18:47:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209922", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.51 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:47:27]execute_script... [18: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)209922", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.51 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:47:27]POST & json_proto [18:47:27]process_json_proto [18:47:27]json parsed OK: [18:47:27]protocol is kg_v1.0 [18:47:27]action value=close_receipt [18:47:27]process_action close_receipt [18:47:27]cmd_close_receipt [18:47:27]MH_GetDate [18:47:27]Write to MH i2c: F0 00 00 F2 7F 60 [18:47:27]Write i2c OK [18:47:27]MH_I2C_Read... [18:47:27]Read from MH i2c: F0 [18:47:27]MH_I2C_Read... [18:47:27]Read from MH i2c: F0 09 00 [18:47:27]MH_I2C_Read... [18:47:27]Read from MH i2c: F0 09 00 F2 7F 00 C4 A1 16 67 A0 18 CA 66 33 [18:47:27]GetLastDocTimeStamp 1729536443 [18:47:27]current date 1729536452 [18:47:27]FM_GetShiftState [18:47:27]SAM_PROTO_GetShiftState [18:47:27]wFMCommunicate request_size=4 [18:47:27]MH_SAM_APDU [18:47:27]CAPDU: 80 13 01 00 [18:47:27]Write to MH i2c: E2 08 00 F3 7F 80 13 01 00 00 00 00 00 EF [18:47:27]Write i2c OK [18:47:27]MH_I2C_Read... [18:47:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:47:27]Read from MH i2c: E2 [18:47:27]MH_I2C_Read... [18:47:27]Read from MH i2c: E2 0E 00 [18:47:27]MH_I2C_Read... [18:47:27]Read from MH i2c: E2 0E 00 F3 7F 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 4E [18:47:27]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [18:47:27]wFMCommunicate OK [18:47:27]SAM_PROTO_GetShiftState done [18:47:27]FM_GetShiftState done [18:47:27]opened in 1729469754 [18:47:27]opened+sec_in_day 1729556154 [18:47:27]quantity*price = 100050 [18:47:27]sum+1 = 100052 [18:47:27]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.51 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 0.00 Безнал.: 1000.51 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 334 21.10.2024 18:47 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000965340 ФД: 187870 ФПД: 18844338833199 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T184732&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187870&fm=18844338833199&tin=02508201610067®Number=0000000000100030&sum=100051 [18:47:28]StoreToDocumentArchive [18:47:28]shift 460 fd 187870 [18:47:28]save to /storage/0460/doc_00187870 [18:47:28]save last doc name /storage/0460/doc_00187870 to /storage/kkm_last_doc_name [18:47:28]save OK [18:47:28]Clear old archive folders... [18:47:28]ProcessDocumentItem done err = 0, tmpTLVsize=248 [18:47:28]tlvbuf is 010E3670 [18:47:28]SAM_PROTO_ClearQueue [18:47:28]wFMCommunicate request_size=4 [18:47:28]MH_SAM_APDU [18:47:28]CAPDU: 80 09 00 00 [18:47:28]Write to MH i2c: E2 08 00 00 80 80 09 00 00 00 00 00 00 F2 [18:47:28]Write i2c OK [18:47:28]MH_I2C_Read... [18:47:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:47:28]Read from MH i2c: E2 [18:47:28]MH_I2C_Read... [18:47:28]Read from MH i2c: E2 03 00 [18:47:28]MH_I2C_Read... [18:47:28]Read from MH i2c: E2 03 00 00 80 00 90 00 F4 [18:47:28]RAPDU: 90 00 [18:47:28]wFMCommunicate OK [18:47:28]SAM_PROTO_ClearQueue done [18:47:28]KKMCreateOFDPacket [18:47:28]OFDProtocolAddRootSTLVToBuf [18:47:28]FM_MakeSignedData [18:47:28]FM_MakeSignedData [18:47:28]SAM_PROTO_SignData [18:47:28]wFMCommunicate request_size=4 [18:47:28]MH_SAM_APDU [18:47:28]CAPDU: 80 0D 01 02 [18:47:28]Write to MH i2c: E2 08 00 01 80 80 0D 01 02 00 00 00 00 FA [18:47:28]Write i2c OK [18:47:28]MH_I2C_Read... [18:47:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:47:28]Read from MH i2c: E2 [18:47:28]MH_I2C_Read... [18:47:28]Read from MH i2c: E2 03 00 [18:47:28]MH_I2C_Read... [18:47:28]Read from MH i2c: E2 03 00 01 80 00 90 00 F5 [18:47:28]RAPDU: 90 00 [18:47:28]wFMCommunicate OK [18:47:28]wFMCommunicate request_size=255 [18:47:28]MH_SAM_APDU [18:47:28]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 4E 01 00 00 F4 03 04 00 C4 A1 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 DE DD 02 00 35 04 06 00 11 23 8A 1F [18:47:28]Write to MH i2c: E2 02 01 02 80 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 01 00 00 F4 03 04 00 C4 A1 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 DE DD 02 00 35 04 06 00 11 23 8A 1F 00 00 63 [18:47:28]Write i2c OK [18:47:28]MH_I2C_Read... [18:47:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:47:28]Read from MH i2c: E2 [18:47:28]MH_I2C_Read... [18:47:28]Read from MH i2c: E2 03 00 [18:47:28]MH_I2C_Read... [18:47:28]Read from MH i2c: E2 03 00 02 80 00 90 00 F6 [18:47:28]RAPDU: 90 00 [18:47:28]wFMCommunicate OK [18:47:28]wFMCommunicate request_size=7 [18:47:28]MH_SAM_APDU [18:47:28]CAPDU: 80 0D 02 02 02 47 2F [18:47:28]Write to MH i2c: E2 0A 00 03 80 80 0D 02 02 02 00 47 2F 00 00 77 [18:47:28]Write i2c OK [18:47:28]MH_I2C_Read... [18:47:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:47:29]Read from MH i2c: E2 [18:47:29]MH_I2C_Read... [18:47:29]Read from MH i2c: E2 03 00 [18:47:29]MH_I2C_Read... [18:47:29]Read from MH i2c: E2 03 00 03 80 00 90 00 F7 [18:47:29]RAPDU: 90 00 [18:47:29]wFMCommunicate OK [18:47:29]wFMCommunicate request_size=4 [18:47:29]MH_SAM_APDU [18:47:29]CAPDU: 80 0D 03 02 [18:47:29]Write to MH i2c: E2 08 00 04 80 80 0D 03 02 00 00 00 00 FF [18:47:29]Write i2c OK [18:47:29]MH_I2C_Read... [18:47:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:47:29]Read from MH i2c: E2 [18:47:29]MH_I2C_Read... [18:47:29]Read from MH i2c: E2 0B 00 [18:47:29]MH_I2C_Read... [18:47:29]Read from MH i2c: E2 0B 00 04 80 00 0D C6 E8 98 EB CC B6 3A 90 00 FA [18:47:29]RAPDU: 0D C6 E8 98 EB CC B6 3A 90 00 [18:47:29]wFMCommunicate OK [18:47:29]SAM_PROTO_SignData done [18:47:29]FM_MakeSignedData done [18:47:29]CreateOFDProtocolMessage [18:47:29]wFMCommunicate request_size=4 [18:47:29]MH_SAM_APDU [18:47:29]CAPDU: 80 11 00 00 [18:47:29]Write to MH i2c: E2 08 00 05 80 80 11 00 00 00 00 00 00 FF [18:47:29]Write i2c OK [18:47:29]MH_I2C_Read... [18:47:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:47:29]Read from MH i2c: E2 [18:47:29]MH_I2C_Read... [18:47:29]Read from MH i2c: E2 17 00 [18:47:29]MH_I2C_Read... [18:47:29]Read from MH i2c: E2 17 00 05 80 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 4D [18:47:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [18:47:29]wFMCommunicate OK [18:47:29]CreateOFDProtocolMessage done [18:47:29]OFDSenderStorePacket 187870 [18:47:29]StoreOFDPacket docnum=187870 [18:47:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 0B F6 04 01 8A B1 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 4E 01 00 00 F4 03 04 00 C4 A1 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 DE DD 02 00 35 04 06 00 11 23 8A 1F 47 2F 0D C6 E8 98 EB CC B6 3A [18:47:29]CheckFolder [18:47:29]dirname=/storage/ofd_packets [18:47:29]CheckFolder done [18:47:29]ProducePacketName [18:47:29]name=ofd_packets/00187870 [18:47:29]NVStorageSaveData ofd_packets/00187870 [18:47:29]File name is /storage/ofd_packets/00187870 [18:47:29]Write 298 bytes [18:47:29]NVStorageSaveData done [18:47:29]OFDSenderStorePacket done [18:47:29]KKMCreateOFDPacket done [18:47:29]NVStorageSaveData kkm_last_timestamp [18:47:29]File name is /storage/kkm_last_timestamp [18:47:29]Write 4 bytes [18:47:29]NVStorageSaveData done [18:47:29]ExternCall_PrintAddStr [18:47:29]wPrintStart [18:47:29]Write to MH i2c: 01 00 00 06 80 86 [18:47:29]Write i2c OK [18:47:29]MH_I2C_Read... [18:47:29]Read from MH i2c: 01 [18:47:29]MH_I2C_Read... [18:47:29]Read from MH i2c: 01 07 00 [18:47:29]MH_I2C_Read... [18:47:29]Read from MH i2c: 01 07 00 06 80 00 00 00 00 00 FF 0F 9B [18:47:29]RasterBufferAndPrint [18:47:29]line Счет N : (1)209922 [18:47:29]line ИНН: 02508201610067 [18:47:29]line Контрольно-Кассовый Чек [18:47:29]line ПРОДАЖА [18:47:29]line ТРК (МРК, ГНК) : 51 [18:47:29]line Товар: 2710194210 [18:47:29]line ДТ-К-5 [18:47:29]line 13.130 * 76.20 [18:47:29]line = 1000.51 [18:47:29]line НДС 12% НСП 1% [18:47:29]line > о реализуемом товаре [18:47:29]line ИТОГО: 1000.51 [18:47:29]line НСП 1% : 8.85 [18:47:29]line НДС 12% : 106.25 [18:47:29]line Наличными: 0.00 [18:47:29]line Безнал.: 1000.51 [18:47:29]line Место: АЗС № 86 "Партнер Нефть" [18:47:29]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [18:47:29]line СНО: Общий режим [18:47:29]line Чек 334 21.10.2024 18:47 [18:47:29]line Смена: 460 ФФД: 1.0 [18:47:29]line ЗНМ: 0300000155 [18:47:29]line РНМ: 0000000000100030 [18:47:29]line Версия ККМ: 001 [18:47:29]line Платежная система: Mbank [18:47:29]line ФМ: 0000000000965340 [18:47:29]line ФД: 187870 [18:47:29]line ФПД: 18844338833199 [18:47:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T184732&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187870&fm=18844338833199&tin=02508201610067®Number=0000000000100030&sum=100051 [18:47:29]written 0, free lines is 4095 [18:47:29]OFD Sender: Processing packet 187870 [packets to send 1062, broken 1061] [18:47:29]ProducePacketName [18:47:29]name=ofd_packets/00187870 [18:47:29]OFD Sender: To server: pG, [18:47:29]CommunicateWithHost lk.salyk.kg:30040 [18:47:29]ConnectInit lk.salyk.kg [18:47:29]Connected sock=10 [18:47:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 0B F6 04 01 8A B1 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 4E 01 00 00 F4 03 04 00 C4 A1 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 DE DD 02 00 35 04 06 00 11 23 8A 1F 47 2F 0D C6 E8 98 EB CC B6 3A [18:47:29]Write to MH i2c: 01 00 00 2F 80 AF [18:47:29]Write i2c OK [18:47:29]MH_I2C_Read... [18:47:29]Read from MH i2c: 01 [18:47:29]MH_I2C_Read... [18:47:29]Read from MH i2c: 01 07 00 [18:47:29]MH_I2C_Read... [18:47:29]Read from MH i2c: 01 07 00 2F 80 00 00 00 00 00 95 0C 57 [18:47:29]RasterBufferAndPrint [18:47:29]line [18:47:29]line [18:47:29]line [18:47:29]line [18:47:29]line [18:47:29]written 0, free lines is 3227 [18:47:29]MH_Cut [18:47:29]Write to MH i2c: D1 01 00 36 80 01 88 [18:47:29]Write i2c OK [18:47:29]MH_I2C_Read... [18:47:29]Read from MH i2c: D1 [18:47:29]MH_I2C_Read... [18:47:29]Read from MH i2c: D1 01 00 [18:47:29]MH_I2C_Read... [18:47:29]Read from MH i2c: D1 01 00 36 80 00 87 [18:47:29]Write to MH i2c: 01 00 00 37 80 B7 [18:47:29]Write i2c OK [18:47:29]MH_I2C_Read... [18:47:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 9E B8 47 00 9E F7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 DE DD 02 00 F4 03 04 00 B3 4B 16 67 B6 04 01 00 00 C6 27 56 07 22 EC 71 E5 [18:47:29]CommunicateWithHost err = 0 [18:47:29]CheckOFDResponse [18:47:29]1017 (14) - 77093643461234 [18:47:29]1041 (16) - 0000000000965340 [18:47:29]1040 (4) - 187870 [18:47:29]1012 (4) - 21.10.2024 12:40 [18:47:29]1206 (1) - 0 [18:47:29]OFD Sender: Remove packet 187870 [18:47:29]ProducePacketName [18:47:29]name=ofd_packets/00187870 [18:47:29]NVStorageDeleteData [18:47:30]OFD Sender: No OFD packet to send [18:47:30]*** Cut start [18:47:30]*** Partial cut [18:47:30]*** CUTSNS_PIN = 1 [18:47:30]*** CUTSNS_PIN = 0 [18:47:31]*** Brake cut motor [18:47:31]Read from MH i2c: 01 [18:47:31]MH_I2C_Read... [18:47:31]*** Stop cut motor [18:47:31]*** Cut end [18:47:31]Read from MH i2c: 01 07 00 [18:47:31]MH_I2C_Read... [18:47:31]Read from MH i2c: 01 07 00 37 80 00 00 00 00 00 FF 0F CC [18:47:31]process_action close_receipt done [18:47:31]requested_data is exist [18:47:31]produce_requested_data [18:47:31]requested_item fm.sn is exist - process it [18:47:31]wFMCommunicate request_size=4 [18:47:31]MH_SAM_APDU [18:47:31]CAPDU: 80 11 00 00 [18:47:31]Write to MH i2c: E2 08 00 38 80 80 11 00 00 00 00 00 00 32 [18:47:31]Write i2c OK [18:47:31]MH_I2C_Read... [18:47:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:47:31]Read from MH i2c: E2 [18:47:31]MH_I2C_Read... [18:47:31]Read from MH i2c: E2 17 00 [18:47:31]MH_I2C_Read... [18:47:31]Read from MH i2c: E2 17 00 38 80 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 80 [18:47:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [18:47:31]wFMCommunicate OK [18:47:31]requested_item fd.num is exist - process it [18:47:31]SAM_PROTO_GetFieldsCounters [18:47:31]wFMCommunicate request_size=4 [18:47:31]MH_SAM_APDU [18:47:31]CAPDU: 80 13 00 00 [18:47:31]Write to MH i2c: E2 08 00 39 80 80 13 00 00 00 00 00 00 35 [18:47:31]Write i2c OK [18:47:31]MH_I2C_Read... [18:47:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:47:31]Read from MH i2c: E2 [18:47:31]MH_I2C_Read... [18:47:31]Read from MH i2c: E2 62 00 [18:47:31]MH_I2C_Read... [18:47:31]Read from MH i2c: E2 62 00 39 80 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 DE DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 4E 01 00 00 5E 04 04 00 4E 01 00 00 57 04 04 00 4F 01 00 00 19 04 04 00 00 00 00 00 90 00 B3 [18:47:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 DE DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 4E 01 00 00 5E 04 04 00 4E 01 00 00 57 04 04 00 4F 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:47:31]wFMCommunicate OK [18:47:31]SAM_PROTO_GetFieldsCounters done [18:47:31]requested_item shift.num is exist - process it [18:47:31]requested_item shift.opened is exist - process it [18:47:31]req_shift_opened [18:47:31]FM_GetShiftState [18:47:31]SAM_PROTO_GetShiftState [18:47:31]wFMCommunicate request_size=4 [18:47:31]MH_SAM_APDU [18:47:31]CAPDU: 80 13 01 00 [18:47:31]Write to MH i2c: E2 08 00 3A 80 80 13 01 00 00 00 00 00 37 [18:47:31]Write i2c OK [18:47:31]MH_I2C_Read... [18:47:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:47:31]Read from MH i2c: E2 [18:47:31]MH_I2C_Read... [18:47:31]Read from MH i2c: E2 0E 00 [18:47:31]MH_I2C_Read... [18:47:31]Read from MH i2c: E2 0E 00 3A 80 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 96 [18:47:31]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [18:47:31]wFMCommunicate OK [18:47:31]SAM_PROTO_GetShiftState done [18:47:31]FM_GetShiftState done [18:47:31]req_shift_opened done [18:47:31]requested_item shift.open_date is exist - process it [18:47:31]req_shift_open_date [18:47:31]req_shift_open_date done [18:47:31]produce_requested_data done [18:47:31]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187870,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [18:47:31]process_action_free close_receipt [18:47:31]json_value_free [18:47:31]json_value_free done [18:47:31]process_json_proto returns [18:47:31]Send response to host [18:47:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187870,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [18:47:31]free response buf [18:47:31]execute_script done [18:47:31]execute_script returns [18:47:31]free content buf [18:47:31]Sock 9.Close socket [18:47:31]Sock 9.Thread stoped [18:47:35]OFD Sender: No OFD packet to send [18:47:40]OFD Sender: No OFD packet to send [18:47:45]OFD Sender: No OFD packet to send [18:47:50]OFD Sender: No OFD packet to send [18:47:55]OFD Sender: No OFD packet to send [18:48:00]OFD Sender: No OFD packet to send [18:48:05]OFD Sender: No OFD packet to send [18:48:10]OFD Sender: No OFD packet to send [18:48:15]OFD Sender: No OFD packet to send [18:48:20]OFD Sender: No OFD packet to send [18:48:22]accept exits with 8 [18:48:22]New connection [18:48:22]New thread 3067014500 created [18:48:22]Thread 3067157860 joined [18:48:22]Waiting for new connection... [18:48:22] Sock 8.Parse request [18:48:22]Sock 8.Check first char [18:48:22]Sock 8.First char is OK [18:48:22]request: POST /json_proto HTTP/1.0 [18:48:22]Method: POST [18:48:22]URL: /json_proto [18:48:22]Method is POST - this is cgi request [18:48:22]url: /json_proto [18:48:22]query_string will be loaded in cgi processing [18:48:22]execute_cgi json_proto POST (null) [18:48:22]execute_cgi path=json_proto method=POST [18:48:22]POST find Content-Length [18:48:22]Host: 172.17.42.131:8080 [18:48:22]Content-Length: 688 [18:48:22]Content-Type: application/json [18:48:22] [18:48:22]POST finish read [18:48:22]Found Content-Length = 688 [18:48:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209923", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 22.030, "sum" : 1700.72, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1700.00, "total" : 1700.00, "payments": [ { "type": 0, "sum" : 1700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:48:22]execute_script... [18:48: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)209923", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 22.030, "sum" : 1700.72, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1700.00, "total" : 1700.00, "payments": [ { "type": 0, "sum" : 1700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:48:22]POST & json_proto [18:48:22]process_json_proto [18:48:22]json parsed OK: [18:48:22]protocol is kg_v1.0 [18:48:22]action value=close_receipt [18:48:22]process_action close_receipt [18:48:22]cmd_close_receipt [18:48:22]MH_GetDate [18:48:22]Write to MH i2c: F0 00 00 3B 80 AA [18:48:22]Write i2c OK [18:48:22]MH_I2C_Read... [18:48:22]Read from MH i2c: F0 [18:48:22]MH_I2C_Read... [18:48:22]Read from MH i2c: F0 09 00 [18:48:22]MH_I2C_Read... [18:48:22]Read from MH i2c: F0 09 00 3B 80 00 FC A1 16 67 A0 18 CA 66 B5 [18:48:22]GetLastDocTimeStamp 1729536452 [18:48:22]current date 1729536508 [18:48:22]FM_GetShiftState [18:48:22]SAM_PROTO_GetShiftState [18:48:22]wFMCommunicate request_size=4 [18:48:22]MH_SAM_APDU [18:48:22]CAPDU: 80 13 01 00 [18:48:22]Write to MH i2c: E2 08 00 3C 80 80 13 01 00 00 00 00 00 39 [18:48:22]Write i2c OK [18:48:22]MH_I2C_Read... [18:48:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:48:22]Read from MH i2c: E2 [18:48:22]MH_I2C_Read... [18:48:22]Read from MH i2c: E2 0E 00 [18:48:22]MH_I2C_Read... [18:48:22]Read from MH i2c: E2 0E 00 3C 80 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 98 [18:48:22]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [18:48:22]wFMCommunicate OK [18:48:22]SAM_PROTO_GetShiftState done [18:48:22]FM_GetShiftState done [18:48:22]opened in 1729469754 [18:48:22]opened+sec_in_day 1729556154 [18:48:22]quantity*price = 170071 [18:48:22]sum+1 = 170073 [18:48:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.72 ИТОГО: 1700.00 Внесено: 1700.00 СДАЧА: 0.00 НСП 1% : 15.05 НДС 12% : 180.61 Наличными: 1700.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 335 21.10.2024 18:48 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 187871 ФПД: 73493627510514 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T184828&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187871&fm=73493627510514&tin=02508201610067®Number=0000000000100030&sum=170000 [18:48:23]StoreToDocumentArchive [18:48:23]shift 460 fd 187871 [18:48:23]save to /storage/0460/doc_00187871 [18:48:23]save last doc name /storage/0460/doc_00187871 to /storage/kkm_last_doc_name [18:48:23]save OK [18:48:23]Clear old archive folders... [18:48:23]ProcessDocumentItem done err = 0, tmpTLVsize=257 [18:48:23]tlvbuf is 01170090 [18:48:23]SAM_PROTO_ClearQueue [18:48:23]wFMCommunicate request_size=4 [18:48:23]MH_SAM_APDU [18:48:23]CAPDU: 80 09 00 00 [18:48:23]Write to MH i2c: E2 08 00 49 80 80 09 00 00 00 00 00 00 3B [18:48:23]Write i2c OK [18:48:23]MH_I2C_Read... [18:48:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:48:24]Read from MH i2c: E2 [18:48:24]MH_I2C_Read... [18:48:24]Read from MH i2c: E2 03 00 [18:48:24]MH_I2C_Read... [18:48:24]Read from MH i2c: E2 03 00 49 80 00 90 00 3D [18:48:24]RAPDU: 90 00 [18:48:24]wFMCommunicate OK [18:48:24]SAM_PROTO_ClearQueue done [18:48:24]KKMCreateOFDPacket [18:48:24]OFDProtocolAddRootSTLVToBuf [18:48:24]FM_MakeSignedData [18:48:24]FM_MakeSignedData [18:48:24]SAM_PROTO_SignData [18:48:24]wFMCommunicate request_size=4 [18:48:24]MH_SAM_APDU [18:48:24]CAPDU: 80 0D 01 02 [18:48:24]Write to MH i2c: E2 08 00 4A 80 80 0D 01 02 00 00 00 00 43 [18:48:24]Write i2c OK [18:48:24]MH_I2C_Read... [18:48:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:48:24]Read from MH i2c: E2 [18:48:24]MH_I2C_Read... [18:48:24]Read from MH i2c: E2 03 00 [18:48:24]MH_I2C_Read... [18:48:24]Read from MH i2c: E2 03 00 4A 80 00 90 00 3E [18:48:24]RAPDU: 90 00 [18:48:24]wFMCommunicate OK [18:48:24]wFMCommunicate request_size=255 [18:48:24]MH_SAM_APDU [18:48:24]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 0E 56 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 58 98 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 98 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E1 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8D 46 00 00 00 00 07 04 06 00 10 98 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 01 00 00 F4 03 04 00 FC A1 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 DF DD 02 [18:48:24]Write to MH i2c: E2 02 01 4B 80 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 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 0E 56 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 58 98 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 98 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E1 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8D 46 00 00 00 00 07 04 06 00 10 98 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 01 00 00 F4 03 04 00 FC A1 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 DF DD 02 00 00 5C [18:48:24]Write i2c OK [18:48:24]MH_I2C_Read... [18:48:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:48:24]Read from MH i2c: E2 [18:48:24]MH_I2C_Read... [18:48:24]Read from MH i2c: E2 03 00 [18:48:24]MH_I2C_Read... [18:48:24]Read from MH i2c: E2 03 00 4B 80 00 90 00 3F [18:48:24]RAPDU: 90 00 [18:48:24]wFMCommunicate OK [18:48:24]wFMCommunicate request_size=16 [18:48:24]MH_SAM_APDU [18:48:24]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 42 D7 91 8F 9E F2 [18:48:24]Write to MH i2c: E2 13 00 4C 80 80 0D 02 02 0B 00 00 35 04 06 00 42 D7 91 8F 9E F2 00 00 64 [18:48:24]Write i2c OK [18:48:24]MH_I2C_Read... [18:48:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:48:24]Read from MH i2c: E2 [18:48:24]MH_I2C_Read... [18:48:24]Read from MH i2c: E2 03 00 [18:48:24]MH_I2C_Read... [18:48:24]Read from MH i2c: E2 03 00 4C 80 00 90 00 40 [18:48:24]RAPDU: 90 00 [18:48:24]wFMCommunicate OK [18:48:24]wFMCommunicate request_size=4 [18:48:24]MH_SAM_APDU [18:48:24]CAPDU: 80 0D 03 02 [18:48:24]Write to MH i2c: E2 08 00 4D 80 80 0D 03 02 00 00 00 00 48 [18:48:24]Write i2c OK [18:48:24]MH_I2C_Read... [18:48:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:48:24]Read from MH i2c: E2 [18:48:24]MH_I2C_Read... [18:48:24]Read from MH i2c: E2 0B 00 [18:48:24]MH_I2C_Read... [18:48:24]Read from MH i2c: E2 0B 00 4D 80 00 7E 4E 06 31 C1 FE 0E BD 90 00 D6 [18:48:24]RAPDU: 7E 4E 06 31 C1 FE 0E BD 90 00 [18:48:24]wFMCommunicate OK [18:48:24]SAM_PROTO_SignData done [18:48:24]FM_MakeSignedData done [18:48:24]CreateOFDProtocolMessage [18:48:24]wFMCommunicate request_size=4 [18:48:24]MH_SAM_APDU [18:48:24]CAPDU: 80 11 00 00 [18:48:24]Write to MH i2c: E2 08 00 4E 80 80 11 00 00 00 00 00 00 48 [18:48:24]Write i2c OK [18:48:24]MH_I2C_Read... [18:48:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:48:24]Read from MH i2c: E2 [18:48:24]MH_I2C_Read... [18:48:24]Read from MH i2c: E2 17 00 [18:48:24]MH_I2C_Read... [18:48:24]Read from MH i2c: E2 17 00 4E 80 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 96 [18:48:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [18:48:24]wFMCommunicate OK [18:48:24]CreateOFDProtocolMessage done [18:48:24]OFDSenderStorePacket 187871 [18:48:24]StoreOFDPacket docnum=187871 [18:48:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 64 25 0D 01 5C F4 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 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 0E 56 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 58 98 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 98 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E1 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8D 46 00 00 00 00 07 04 06 00 10 98 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 01 00 00 F4 03 04 00 FC A1 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 DF DD 02 00 35 04 06 00 42 D7 91 8F 9E F2 7E 4E 06 31 C1 FE 0E BD [18:48:24]CheckFolder [18:48:24]dirname=/storage/ofd_packets [18:48:24]CheckFolder done [18:48:24]ProducePacketName [18:48:24]name=ofd_packets/00187871 [18:48:24]NVStorageSaveData ofd_packets/00187871 [18:48:24]File name is /storage/ofd_packets/00187871 [18:48:24]Write 307 bytes [18:48:24]NVStorageSaveData done [18:48:24]OFDSenderStorePacket done [18:48:24]KKMCreateOFDPacket done [18:48:24]NVStorageSaveData kkm_last_timestamp [18:48:24]File name is /storage/kkm_last_timestamp [18:48:24]Write 4 bytes [18:48:24]NVStorageSaveData done [18:48:24]ExternCall_PrintAddStr [18:48:24]wPrintStart [18:48:24]Write to MH i2c: 01 00 00 4F 80 CF [18:48:24]Write i2c OK [18:48:24]MH_I2C_Read... [18:48:24]Read from MH i2c: 01 [18:48:24]MH_I2C_Read... [18:48:24]Read from MH i2c: 01 07 00 [18:48:24]MH_I2C_Read... [18:48:24]Read from MH i2c: 01 07 00 4F 80 00 00 00 00 00 FF 0F E4 [18:48:24]RasterBufferAndPrint [18:48:24]line Счет N : (1)209923 [18:48:24]line ИНН: 02508201610067 [18:48:24]line Контрольно-Кассовый Чек [18:48:24]line ПРОДАЖА [18:48:24]line ТРК (МРК, ГНК) : 11 [18:48:24]line Товар: 2710194210 [18:48:24]line D-ENERGY ДТ-К-5 [18:48:24]line 22.030 * 77.20 [18:48:24]line = 1700.72 [18:48:24]line НДС 12% НСП 1% [18:48:24]line > о реализуемом товаре [18:48:24]line ОКРУГЛЕНИЕ: -0.72 [18:48:24]line ИТОГО: 1700.00 [18:48:24]line Внесено: 1700.00 [18:48:24]line СДАЧА: 0.00 [18:48:24]line НСП 1% : 15.05 [18:48:24]line НДС 12% : 180.61 [18:48:24]line Наличными: 1700.00 [18:48:24]line Безнал.: 0.00 [18:48:24]line Место: АЗС № 86 "Партнер Нефть" [18:48:24]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [18:48:24]line СНО: Общий режим [18:48:24]line Чек 335 21.10.2024 18:48 [18:48:24]line Смена: 460 ФФД: 1.0 [18:48:24]line ЗНМ: 0300000155 [18:48:24]line РНМ: 0000000000100030 [18:48:24]line Версия ККМ: 001 [18:48:24]line ФМ: 0000000000965340 [18:48:24]line ФД: 187871 [18:48:24]line ФПД: 73493627510514 [18:48:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T184828&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187871&fm=73493627510514&tin=02508201610067®Number=0000000000100030&sum=170000 [18:48:24]written 0, free lines is 4095 [18:48:24]OFD Sender: Processing packet 187871 [packets to send 1062, broken 1061] [18:48:24]ProducePacketName [18:48:24]name=ofd_packets/00187871 [18:48:24]OFD Sender: To server: pG, [18:48:24]CommunicateWithHost lk.salyk.kg:30040 [18:48:24]ConnectInit lk.salyk.kg [18:48:24]Connected sock=10 [18:48:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 64 25 0D 01 5C F4 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 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 0E 56 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 58 98 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 98 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E1 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8D 46 00 00 00 00 07 04 06 00 10 98 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 01 00 00 F4 03 04 00 FC A1 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 DF DD 02 00 35 04 06 00 42 D7 91 8F 9E F2 7E 4E 06 31 C1 FE 0E BD [18:48:25]Write to MH i2c: 01 00 00 7A 80 FA [18:48:25]Write i2c OK [18:48:25]MH_I2C_Read... [18:48:25]Read from MH i2c: 01 [18:48:25]MH_I2C_Read... [18:48:25]Read from MH i2c: 01 07 00 [18:48:25]MH_I2C_Read... [18:48:25]Read from MH i2c: 01 07 00 7A 80 00 00 00 00 00 66 0C 73 [18:48:25]RasterBufferAndPrint [18:48:25]line [18:48:25]line [18:48:25]line [18:48:25]line [18:48:25]line [18:48:25]written 0, free lines is 3178 [18:48:25]MH_Cut [18:48:25]Write to MH i2c: D1 01 00 81 80 01 D3 [18:48:25]Write i2c OK [18:48:25]MH_I2C_Read... [18:48:25]Read from MH i2c: D1 [18:48:25]MH_I2C_Read... [18:48:25]Read from MH i2c: D1 01 00 [18:48:25]MH_I2C_Read... [18:48:25]Read from MH i2c: D1 01 00 81 80 00 D2 [18:48:25]Write to MH i2c: 01 00 00 82 80 02 [18:48:25]Write i2c OK [18:48:25]MH_I2C_Read... [18:48:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 77 75 47 00 8F AE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 DF DD 02 00 F4 03 04 00 EB 4B 16 67 B6 04 01 00 00 24 77 71 6C 47 92 81 CA [18:48:25]CommunicateWithHost err = 0 [18:48:25]CheckOFDResponse [18:48:25]1017 (14) - 77093643461234 [18:48:25]1041 (16) - 0000000000965340 [18:48:25]1040 (4) - 187871 [18:48:25]1012 (4) - 21.10.2024 12:41 [18:48:25]1206 (1) - 0 [18:48:25]OFD Sender: Remove packet 187871 [18:48:25]ProducePacketName [18:48:25]name=ofd_packets/00187871 [18:48:25]NVStorageDeleteData [18:48:25]OFD Sender: No OFD packet to send [18:48:26]*** Cut start [18:48:26]*** Partial cut [18:48:26]*** CUTSNS_PIN = 1 [18:48:26]*** CUTSNS_PIN = 0 [18:48:26]*** Brake cut motor [18:48:26]Read from MH i2c: 01 [18:48:26]MH_I2C_Read... [18:48:26]*** Stop cut motor [18:48:26]*** Cut end [18:48:26]Read from MH i2c: 01 07 00 [18:48:26]MH_I2C_Read... [18:48:26]Read from MH i2c: 01 07 00 82 80 00 00 00 00 00 FF 0F 17 [18:48:26]process_action close_receipt done [18:48:26]requested_data is exist [18:48:26]produce_requested_data [18:48:26]requested_item fm.sn is exist - process it [18:48:26]wFMCommunicate request_size=4 [18:48:26]MH_SAM_APDU [18:48:26]CAPDU: 80 11 00 00 [18:48:26]Write to MH i2c: E2 08 00 83 80 80 11 00 00 00 00 00 00 7D [18:48:26]Write i2c OK [18:48:26]MH_I2C_Read... [18:48:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:48:26]Read from MH i2c: E2 [18:48:26]MH_I2C_Read... [18:48:26]Read from MH i2c: E2 17 00 [18:48:26]MH_I2C_Read... [18:48:26]Read from MH i2c: E2 17 00 83 80 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 CB [18:48:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [18:48:26]wFMCommunicate OK [18:48:26]requested_item fd.num is exist - process it [18:48:26]SAM_PROTO_GetFieldsCounters [18:48:26]wFMCommunicate request_size=4 [18:48:26]MH_SAM_APDU [18:48:26]CAPDU: 80 13 00 00 [18:48:26]Write to MH i2c: E2 08 00 84 80 80 13 00 00 00 00 00 00 80 [18:48:26]Write i2c OK [18:48:26]MH_I2C_Read... [18:48:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:48:27]Read from MH i2c: E2 [18:48:27]MH_I2C_Read... [18:48:27]Read from MH i2c: E2 62 00 [18:48:27]MH_I2C_Read... [18:48:27]Read from MH i2c: E2 62 00 84 80 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 DF DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 4F 01 00 00 5E 04 04 00 4F 01 00 00 57 04 04 00 50 01 00 00 19 04 04 00 00 00 00 00 90 00 02 [18:48:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 DF DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 4F 01 00 00 5E 04 04 00 4F 01 00 00 57 04 04 00 50 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:48:27]wFMCommunicate OK [18:48:27]SAM_PROTO_GetFieldsCounters done [18:48:27]requested_item shift.num is exist - process it [18:48:27]requested_item shift.opened is exist - process it [18:48:27]req_shift_opened [18:48:27]FM_GetShiftState [18:48:27]SAM_PROTO_GetShiftState [18:48:27]wFMCommunicate request_size=4 [18:48:27]MH_SAM_APDU [18:48:27]CAPDU: 80 13 01 00 [18:48:27]Write to MH i2c: E2 08 00 85 80 80 13 01 00 00 00 00 00 82 [18:48:27]Write i2c OK [18:48:27]MH_I2C_Read... [18:48:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:48:27]Read from MH i2c: E2 [18:48:27]MH_I2C_Read... [18:48:27]Read from MH i2c: E2 0E 00 [18:48:27]MH_I2C_Read... [18:48:27]Read from MH i2c: E2 0E 00 85 80 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 E1 [18:48:27]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [18:48:27]wFMCommunicate OK [18:48:27]SAM_PROTO_GetShiftState done [18:48:27]FM_GetShiftState done [18:48:27]req_shift_opened done [18:48:27]requested_item shift.open_date is exist - process it [18:48:27]req_shift_open_date [18:48:27]req_shift_open_date done [18:48:27]produce_requested_data done [18:48:27]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187871,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [18:48:27]process_action_free close_receipt [18:48:27]json_value_free [18:48:27]json_value_free done [18:48:27]process_json_proto returns [18:48:27]Send response to host [18:48:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187871,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [18:48:27]free response buf [18:48:27]execute_script done [18:48:27]execute_script returns [18:48:27]free content buf [18:48:27]Sock 8.Close socket [18:48:27]Sock 8.Thread stoped [18:48:30]OFD Sender: No OFD packet to send [18:48:35]OFD Sender: No OFD packet to send [18:48:40]OFD Sender: No OFD packet to send [18:48:45]accept exits with 9 [18:48:45]New connection [18:48:45]New thread 3067157860 created [18:48:45]Thread 3067014500 joined [18:48:45]Waiting for new connection... [18:48:45] Sock 9.Parse request [18:48:45]Sock 9.Check first char [18:48:45]Sock 9.First char is OK [18:48:45]request: POST /json_proto HTTP/1.0 [18:48:45]Method: POST [18:48:45]URL: /json_proto [18:48:45]Method is POST - this is cgi request [18:48:45]url: /json_proto [18:48:45]query_string will be loaded in cgi processing [18:48:45]execute_cgi json_proto POST (null) [18:48:45]execute_cgi path=json_proto method=POST [18:48:45]POST find Content-Length [18:48:45]Host: 172.17.42.131:8080 [18:48:45]Content-Length: 682 [18:48:45]Content-Type: application/json [18:48:45] [18:48:45]POST finish read [18:48:45]Found Content-Length = 682 [18:48:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209925", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 20.220, "sum" : 1500.32, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:48:45]execute_script... [18:48: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)209925", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 20.220, "sum" : 1500.32, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:48:45]POST & json_proto [18:48:45]process_json_proto [18:48:45]json parsed OK: [18:48:45]protocol is kg_v1.0 [18:48:45]action value=close_receipt [18:48:45]process_action close_receipt [18:48:45]cmd_close_receipt [18:48:45]MH_GetDate [18:48:45]Write to MH i2c: F0 00 00 86 80 F5 [18:48:45]Write i2c OK [18:48:45]MH_I2C_Read... [18:48:45]Read from MH i2c: F0 [18:48:45]MH_I2C_Read... [18:48:45]Read from MH i2c: F0 09 00 [18:48:45]MH_I2C_Read... [18:48:45]Read from MH i2c: F0 09 00 86 80 00 12 A2 16 67 A0 18 CA 66 17 [18:48:45]GetLastDocTimeStamp 1729536508 [18:48:45]current date 1729536530 [18:48:45]FM_GetShiftState [18:48:45]SAM_PROTO_GetShiftState [18:48:45]wFMCommunicate request_size=4 [18:48:45]MH_SAM_APDU [18:48:45]CAPDU: 80 13 01 00 [18:48:45]Write to MH i2c: E2 08 00 87 80 80 13 01 00 00 00 00 00 84 [18:48:45]Write i2c OK [18:48:45]MH_I2C_Read... [18:48:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:48:45]Read from MH i2c: E2 [18:48:45]MH_I2C_Read... [18:48:45]Read from MH i2c: E2 0E 00 [18:48:45]MH_I2C_Read... [18:48:45]Read from MH i2c: E2 0E 00 87 80 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 E3 [18:48:45]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [18:48:45]wFMCommunicate OK [18:48:45]SAM_PROTO_GetShiftState done [18:48:45]FM_GetShiftState done [18:48:45]opened in 1729469754 [18:48:45]opened+sec_in_day 1729556154 [18:48:45]quantity*price = 150032 [18:48:45]sum+1 = 150033 [18:48:45]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.32 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.33 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 336 21.10.2024 18:48 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 187872 ФПД: 184664573929097 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T184850&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187872&fm=184664573929097&tin=02508201610067®Number=0000000000100030&sum=150000 [18:48:46]StoreToDocumentArchive [18:48:46]shift 460 fd 187872 [18:48:46]save to /storage/0460/doc_00187872 [18:48:46]save last doc name /storage/0460/doc_00187872 to /storage/kkm_last_doc_name [18:48:46]save OK [18:48:46]Clear old archive folders... [18:48:46]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:48:46]tlvbuf is 013567F0 [18:48:46]SAM_PROTO_ClearQueue [18:48:46]wFMCommunicate request_size=4 [18:48:46]MH_SAM_APDU [18:48:46]CAPDU: 80 09 00 00 [18:48:46]Write to MH i2c: E2 08 00 94 80 80 09 00 00 00 00 00 00 86 [18:48:46]Write i2c OK [18:48:46]MH_I2C_Read... [18:48:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:48:46]Read from MH i2c: E2 [18:48:46]MH_I2C_Read... [18:48:46]Read from MH i2c: E2 03 00 [18:48:46]MH_I2C_Read... [18:48:46]Read from MH i2c: E2 03 00 94 80 00 90 00 88 [18:48:46]RAPDU: 90 00 [18:48:46]wFMCommunicate OK [18:48:46]SAM_PROTO_ClearQueue done [18:48:46]KKMCreateOFDPacket [18:48:46]OFDProtocolAddRootSTLVToBuf [18:48:46]FM_MakeSignedData [18:48:46]FM_MakeSignedData [18:48:46]SAM_PROTO_SignData [18:48:46]wFMCommunicate request_size=4 [18:48:46]MH_SAM_APDU [18:48:46]CAPDU: 80 0D 01 02 [18:48:46]Write to MH i2c: E2 08 00 95 80 80 0D 01 02 00 00 00 00 8E [18:48:46]Write i2c OK [18:48:46]MH_I2C_Read... [18:48:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:48:46]Read from MH i2c: E2 [18:48:46]MH_I2C_Read... [18:48:46]Read from MH i2c: E2 03 00 [18:48:46]MH_I2C_Read... [18:48:46]Read from MH i2c: E2 03 00 95 80 00 90 00 89 [18:48:46]RAPDU: 90 00 [18:48:46]wFMCommunicate OK [18:48:46]wFMCommunicate request_size=255 [18:48:46]MH_SAM_APDU [18:48:46]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 FC 4E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 10 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 01 00 00 F4 03 04 00 12 A2 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 E0 DD 02 00 35 04 06 00 A7 [18:48:46]Write to MH i2c: E2 02 01 96 80 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 FC 4E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 10 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 01 00 00 F4 03 04 00 12 A2 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 E0 DD 02 00 35 04 06 00 A7 00 00 19 [18:48:46]Write i2c OK [18:48:46]MH_I2C_Read... [18:48:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:48:46]Read from MH i2c: E2 [18:48:46]MH_I2C_Read... [18:48:46]Read from MH i2c: E2 03 00 [18:48:46]MH_I2C_Read... [18:48:46]Read from MH i2c: E2 03 00 96 80 00 90 00 8A [18:48:46]RAPDU: 90 00 [18:48:46]wFMCommunicate OK [18:48:46]wFMCommunicate request_size=10 [18:48:46]MH_SAM_APDU [18:48:46]CAPDU: 80 0D 02 02 05 F3 92 54 E6 89 [18:48:46]Write to MH i2c: E2 0D 00 97 80 80 0D 02 02 05 00 F3 92 54 E6 89 00 00 E3 [18:48:46]Write i2c OK [18:48:46]MH_I2C_Read... [18:48:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:48:46]Read from MH i2c: E2 [18:48:46]MH_I2C_Read... [18:48:46]Read from MH i2c: E2 03 00 [18:48:46]MH_I2C_Read... [18:48:46]Read from MH i2c: E2 03 00 97 80 00 90 00 8B [18:48:46]RAPDU: 90 00 [18:48:46]wFMCommunicate OK [18:48:46]wFMCommunicate request_size=4 [18:48:46]MH_SAM_APDU [18:48:46]CAPDU: 80 0D 03 02 [18:48:46]Write to MH i2c: E2 08 00 98 80 80 0D 03 02 00 00 00 00 93 [18:48:46]Write i2c OK [18:48:46]MH_I2C_Read... [18:48:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:48:46]Read from MH i2c: E2 [18:48:46]MH_I2C_Read... [18:48:46]Read from MH i2c: E2 0B 00 [18:48:46]MH_I2C_Read... [18:48:46]Read from MH i2c: E2 0B 00 98 80 00 DF 4F 31 C8 59 82 A2 85 90 00 BD [18:48:46]RAPDU: DF 4F 31 C8 59 82 A2 85 90 00 [18:48:46]wFMCommunicate OK [18:48:46]SAM_PROTO_SignData done [18:48:46]FM_MakeSignedData done [18:48:46]CreateOFDProtocolMessage [18:48:46]wFMCommunicate request_size=4 [18:48:46]MH_SAM_APDU [18:48:46]CAPDU: 80 11 00 00 [18:48:46]Write to MH i2c: E2 08 00 99 80 80 11 00 00 00 00 00 00 93 [18:48:46]Write i2c OK [18:48:46]MH_I2C_Read... [18:48:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:48:46]Read from MH i2c: E2 [18:48:46]MH_I2C_Read... [18:48:46]Read from MH i2c: E2 17 00 [18:48:46]MH_I2C_Read... [18:48:46]Read from MH i2c: E2 17 00 99 80 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 E1 [18:48:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [18:48:46]wFMCommunicate OK [18:48:46]CreateOFDProtocolMessage done [18:48:46]OFDSenderStorePacket 187872 [18:48:46]StoreOFDPacket docnum=187872 [18:48:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 9E 7B 07 01 24 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 FC 4E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 10 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 01 00 00 F4 03 04 00 12 A2 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 E0 DD 02 00 35 04 06 00 A7 F3 92 54 E6 89 DF 4F 31 C8 59 82 A2 85 [18:48:46]CheckFolder [18:48:46]dirname=/storage/ofd_packets [18:48:46]CheckFolder done [18:48:46]ProducePacketName [18:48:46]name=ofd_packets/00187872 [18:48:46]NVStorageSaveData ofd_packets/00187872 [18:48:46]File name is /storage/ofd_packets/00187872 [18:48:46]Write 301 bytes [18:48:46]NVStorageSaveData done [18:48:46]OFDSenderStorePacket done [18:48:46]KKMCreateOFDPacket done [18:48:46]NVStorageSaveData kkm_last_timestamp [18:48:46]File name is /storage/kkm_last_timestamp [18:48:46]Write 4 bytes [18:48:46]NVStorageSaveData done [18:48:46]ExternCall_PrintAddStr [18:48:46]wPrintStart [18:48:46]Write to MH i2c: 01 00 00 9A 80 1A [18:48:46]Write i2c OK [18:48:46]MH_I2C_Read... [18:48:46]Read from MH i2c: 01 [18:48:46]MH_I2C_Read... [18:48:46]Read from MH i2c: 01 07 00 [18:48:46]MH_I2C_Read... [18:48:46]Read from MH i2c: 01 07 00 9A 80 00 00 00 00 00 FF 0F 2F [18:48:46]RasterBufferAndPrint [18:48:46]line Счет N : (1)209925 [18:48:46]line ИНН: 02508201610067 [18:48:46]line Контрольно-Кассовый Чек [18:48:46]line ПРОДАЖА [18:48:46]line ТРК (МРК, ГНК) : 23 [18:48:46]line Товар: 2710124500 [18:48:46]line Аи-95-К-3 [18:48:46]line 20.220 * 74.20 [18:48:46]line = 1500.32 [18:48:46]line НДС 12% НСП 1% [18:48:46]line > о реализуемом товаре [18:48:46]line ОКРУГЛЕНИЕ: -0.32 [18:48:46]line ИТОГО: 1500.00 [18:48:46]line Внесено: 1500.00 [18:48:46]line СДАЧА: 0.00 [18:48:46]line НСП 1% : 13.28 [18:48:46]line НДС 12% : 159.33 [18:48:46]line Наличными: 1500.00 [18:48:46]line Безнал.: 0.00 [18:48:46]line Место: АЗС № 86 "Партнер Нефть" [18:48:46]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [18:48:46]line СНО: Общий режим [18:48:46]line Чек 336 21.10.2024 18:48 [18:48:46]line Смена: 460 ФФД: 1.0 [18:48:46]line ЗНМ: 0300000155 [18:48:46]line РНМ: 0000000000100030 [18:48:46]line Версия ККМ: 001 [18:48:46]line ФМ: 0000000000965340 [18:48:46]line ФД: 187872 [18:48:46]line ФПД: 184664573929097 [18:48:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T184850&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187872&fm=184664573929097&tin=02508201610067®Number=0000000000100030&sum=150000 [18:48:46]OFD Sender: Processing packet 187872 [packets to send 1062, broken 1061] [18:48:46]ProducePacketName [18:48:46]name=ofd_packets/00187872 [18:48:46]OFD Sender: To server: pG, [18:48:46]CommunicateWithHost lk.salyk.kg:30040 [18:48:46]ConnectInit lk.salyk.kg [18:48:46]written 0, free lines is 4095 [18:48:47]Connected sock=10 [18:48:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 9E 7B 07 01 24 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 FC 4E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 10 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 01 00 00 F4 03 04 00 12 A2 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 E0 DD 02 00 35 04 06 00 A7 F3 92 54 E6 89 DF 4F 31 C8 59 82 A2 85 [18:48:47]Write to MH i2c: 01 00 00 C5 80 45 [18:48:47]Write i2c OK [18:48:47]MH_I2C_Read... [18:48:47]Read from MH i2c: 01 [18:48:47]MH_I2C_Read... [18:48:47]Read from MH i2c: 01 07 00 [18:48:47]MH_I2C_Read... [18:48:47]Read from MH i2c: 01 07 00 C5 80 00 00 00 00 00 73 0C CB [18:48:47]RasterBufferAndPrint [18:48:47]line [18:48:47]line [18:48:47]line [18:48:47]line [18:48:47]line [18:48:47]written 0, free lines is 3189 [18:48:47]MH_Cut [18:48:47]Write to MH i2c: D1 01 00 CC 80 01 1E [18:48:47]Write i2c OK [18:48:47]MH_I2C_Read... [18:48:47]Read from MH i2c: D1 [18:48:47]MH_I2C_Read... [18:48:47]Read from MH i2c: D1 01 00 [18:48:47]MH_I2C_Read... [18:48:47]Read from MH i2c: D1 01 00 CC 80 00 1D [18:48:47]Write to MH i2c: 01 00 00 CD 80 4D [18:48:47]Write i2c OK [18:48:47]MH_I2C_Read... [18:48:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 39 4C 47 00 A6 A6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 E0 DD 02 00 F4 03 04 00 01 4C 16 67 B6 04 01 00 00 28 FF 64 5B 2A DD A1 F4 [18:48:47]CommunicateWithHost err = 0 [18:48:47]CheckOFDResponse [18:48:47]1017 (14) - 77093643461234 [18:48:47]1041 (16) - 0000000000965340 [18:48:47]1040 (4) - 187872 [18:48:47]1012 (4) - 21.10.2024 12:41 [18:48:47]1206 (1) - 0 [18:48:47]OFD Sender: Remove packet 187872 [18:48:47]ProducePacketName [18:48:47]name=ofd_packets/00187872 [18:48:47]NVStorageDeleteData [18:48:47]OFD Sender: No OFD packet to send [18:48:48]*** Cut start [18:48:48]*** Partial cut [18:48:48]*** CUTSNS_PIN = 1 [18:48:48]*** CUTSNS_PIN = 0 [18:48:48]*** Brake cut motor [18:48:49]Read from MH i2c: 01 [18:48:49]MH_I2C_Read... [18:48:49]*** Stop cut motor [18:48:49]*** Cut end [18:48:49]Read from MH i2c: 01 07 00 [18:48:49]MH_I2C_Read... [18:48:49]Read from MH i2c: 01 07 00 CD 80 00 00 00 00 00 FF 0F 62 [18:48:49]process_action close_receipt done [18:48:49]requested_data is exist [18:48:49]produce_requested_data [18:48:49]requested_item fm.sn is exist - process it [18:48:49]wFMCommunicate request_size=4 [18:48:49]MH_SAM_APDU [18:48:49]CAPDU: 80 11 00 00 [18:48:49]Write to MH i2c: E2 08 00 CE 80 80 11 00 00 00 00 00 00 C8 [18:48:49]Write i2c OK [18:48:49]MH_I2C_Read... [18:48:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:48:49]Read from MH i2c: E2 [18:48:49]MH_I2C_Read... [18:48:49]Read from MH i2c: E2 17 00 [18:48:49]MH_I2C_Read... [18:48:49]Read from MH i2c: E2 17 00 CE 80 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 16 [18:48:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [18:48:49]wFMCommunicate OK [18:48:49]requested_item fd.num is exist - process it [18:48:49]SAM_PROTO_GetFieldsCounters [18:48:49]wFMCommunicate request_size=4 [18:48:49]MH_SAM_APDU [18:48:49]CAPDU: 80 13 00 00 [18:48:49]Write to MH i2c: E2 08 00 CF 80 80 13 00 00 00 00 00 00 CB [18:48:49]Write i2c OK [18:48:49]MH_I2C_Read... [18:48:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:48:49]Read from MH i2c: E2 [18:48:49]MH_I2C_Read... [18:48:49]Read from MH i2c: E2 62 00 [18:48:49]MH_I2C_Read... [18:48:49]Read from MH i2c: E2 62 00 CF 80 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 E0 DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 50 01 00 00 5E 04 04 00 50 01 00 00 57 04 04 00 51 01 00 00 19 04 04 00 00 00 00 00 90 00 51 [18:48:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 E0 DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 50 01 00 00 5E 04 04 00 50 01 00 00 57 04 04 00 51 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:48:49]wFMCommunicate OK [18:48:49]SAM_PROTO_GetFieldsCounters done [18:48:49]requested_item shift.num is exist - process it [18:48:49]requested_item shift.opened is exist - process it [18:48:49]req_shift_opened [18:48:49]FM_GetShiftState [18:48:49]SAM_PROTO_GetShiftState [18:48:49]wFMCommunicate request_size=4 [18:48:49]MH_SAM_APDU [18:48:49]CAPDU: 80 13 01 00 [18:48:49]Write to MH i2c: E2 08 00 D0 80 80 13 01 00 00 00 00 00 CD [18:48:49]Write i2c OK [18:48:49]MH_I2C_Read... [18:48:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:48:49]Read from MH i2c: E2 [18:48:49]MH_I2C_Read... [18:48:49]Read from MH i2c: E2 0E 00 [18:48:49]MH_I2C_Read... [18:48:49]Read from MH i2c: E2 0E 00 D0 80 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 2C [18:48:49]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [18:48:49]wFMCommunicate OK [18:48:49]SAM_PROTO_GetShiftState done [18:48:49]FM_GetShiftState done [18:48:49]req_shift_opened done [18:48:49]requested_item shift.open_date is exist - process it [18:48:49]req_shift_open_date [18:48:49]req_shift_open_date done [18:48:49]produce_requested_data done [18:48:49]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187872,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [18:48:49]process_action_free close_receipt [18:48:49]json_value_free [18:48:49]json_value_free done [18:48:49]process_json_proto returns [18:48:49]Send response to host [18:48:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187872,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [18:48:49]free response buf [18:48:49]execute_script done [18:48:49]execute_script returns [18:48:49]free content buf [18:48:49]Sock 9.Close socket [18:48:49]Sock 9.Thread stoped [18:48:49]accept exits with 8 [18:48:49]New connection [18:48:49]New thread 3067014500 created [18:48:49]Thread 3067157860 joined [18:48:49]Waiting for new connection... [18:48:49] Sock 8.Parse request [18:48:49]Sock 8.Check first char [18:48:49]Sock 8.First char is OK [18:48:49]request: POST /json_proto HTTP/1.0 [18:48:49]Method: POST [18:48:49]URL: /json_proto [18:48:49]Method is POST - this is cgi request [18:48:49]url: /json_proto [18:48:49]query_string will be loaded in cgi processing [18:48:49]execute_cgi json_proto POST (null) [18:48:49]execute_cgi path=json_proto method=POST [18:48:49]POST find Content-Length [18:48:49]Host: 172.17.42.131:8080 [18:48:49]Content-Length: 682 [18:48:49]Content-Type: application/json [18:48:49] [18:48:49]POST finish read [18:48:49]Found Content-Length = 682 [18:48:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209924", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 26.960, "sum" : 2000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:48:49]execute_script... [18:48:49]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209924", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 26.960, "sum" : 2000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:48:49]POST & json_proto [18:48:49]process_json_proto [18:48:49]json parsed OK: [18:48:49]protocol is kg_v1.0 [18:48:49]action value=close_receipt [18:48:49]process_action close_receipt [18:48:49]cmd_close_receipt [18:48:49]MH_GetDate [18:48:49]Write to MH i2c: F0 00 00 D1 80 40 [18:48:49]Write i2c OK [18:48:49]MH_I2C_Read... [18:48:49]Read from MH i2c: F0 [18:48:49]MH_I2C_Read... [18:48:49]Read from MH i2c: F0 09 00 [18:48:49]MH_I2C_Read... [18:48:49]Read from MH i2c: F0 09 00 D1 80 00 17 A2 16 67 A0 18 CA 66 67 [18:48:49]GetLastDocTimeStamp 1729536530 [18:48:49]current date 1729536535 [18:48:49]FM_GetShiftState [18:48:49]SAM_PROTO_GetShiftState [18:48:49]wFMCommunicate request_size=4 [18:48:49]MH_SAM_APDU [18:48:49]CAPDU: 80 13 01 00 [18:48:49]Write to MH i2c: E2 08 00 D2 80 80 13 01 00 00 00 00 00 CF [18:48:49]Write i2c OK [18:48:49]MH_I2C_Read... [18:48:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:48:49]Read from MH i2c: E2 [18:48:49]MH_I2C_Read... [18:48:49]Read from MH i2c: E2 0E 00 [18:48:49]MH_I2C_Read... [18:48:49]Read from MH i2c: E2 0E 00 D2 80 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 2E [18:48:49]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [18:48:49]wFMCommunicate OK [18:48:49]SAM_PROTO_GetShiftState done [18:48:49]FM_GetShiftState done [18:48:49]opened in 1729469754 [18:48:49]opened+sec_in_day 1729556154 [18:48:49]quantity*price = 200043 [18:48:49]sum+1 = 200044 [18:48:49]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.43 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.43 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 337 21.10.2024 18:48 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 187873 ФПД: 95965302937824 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T184855&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187873&fm=95965302937824&tin=02508201610067®Number=0000000000100030&sum=200000 [18:48:50]StoreToDocumentArchive [18:48:50]shift 460 fd 187873 [18:48:50]save to /storage/0460/doc_00187873 [18:48:50]save last doc name /storage/0460/doc_00187873 to /storage/kkm_last_doc_name [18:48:50]save OK [18:48:50]Clear old archive folders... [18:48:50]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:48:50]tlvbuf is 011B8F20 [18:48:50]SAM_PROTO_ClearQueue [18:48:50]wFMCommunicate request_size=4 [18:48:50]MH_SAM_APDU [18:48:50]CAPDU: 80 09 00 00 [18:48:50]Write to MH i2c: E2 08 00 DF 80 80 09 00 00 00 00 00 00 D1 [18:48:50]Write i2c OK [18:48:50]MH_I2C_Read... [18:48:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:48:50]Read from MH i2c: E2 [18:48:50]MH_I2C_Read... [18:48:50]Read from MH i2c: E2 03 00 [18:48:50]MH_I2C_Read... [18:48:50]Read from MH i2c: E2 03 00 DF 80 00 90 00 D3 [18:48:50]RAPDU: 90 00 [18:48:50]wFMCommunicate OK [18:48:50]SAM_PROTO_ClearQueue done [18:48:50]KKMCreateOFDPacket [18:48:50]OFDProtocolAddRootSTLVToBuf [18:48:50]FM_MakeSignedData [18:48:50]FM_MakeSignedData [18:48:50]SAM_PROTO_SignData [18:48:50]wFMCommunicate request_size=4 [18:48:50]MH_SAM_APDU [18:48:50]CAPDU: 80 0D 01 02 [18:48:50]Write to MH i2c: E2 08 00 E0 80 80 0D 01 02 00 00 00 00 D9 [18:48:50]Write i2c OK [18:48:50]MH_I2C_Read... [18:48:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:48:51]Read from MH i2c: E2 [18:48:51]MH_I2C_Read... [18:48:51]Read from MH i2c: E2 03 00 [18:48:51]MH_I2C_Read... [18:48:51]Read from MH i2c: E2 03 00 E0 80 00 90 00 D4 [18:48:51]RAPDU: 90 00 [18:48:51]wFMCommunicate OK [18:48:51]wFMCommunicate request_size=255 [18:48:51]MH_SAM_APDU [18:48:51]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 01 00 00 F4 03 04 00 17 A2 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 E1 DD 02 00 35 04 06 00 57 [18:48:51]Write to MH i2c: E2 02 01 E1 80 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 01 00 00 F4 03 04 00 17 A2 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 E1 DD 02 00 35 04 06 00 57 00 00 60 [18:48:51]Write i2c OK [18:48:51]MH_I2C_Read... [18:48:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:48:51]Read from MH i2c: E2 [18:48:51]MH_I2C_Read... [18:48:51]Read from MH i2c: E2 03 00 [18:48:51]MH_I2C_Read... [18:48:51]Read from MH i2c: E2 03 00 E1 80 00 90 00 D5 [18:48:51]RAPDU: 90 00 [18:48:51]wFMCommunicate OK [18:48:51]wFMCommunicate request_size=10 [18:48:51]MH_SAM_APDU [18:48:51]CAPDU: 80 0D 02 02 05 47 A9 CA D8 E0 [18:48:51]Write to MH i2c: E2 0D 00 E2 80 80 0D 02 02 05 00 47 A9 CA D8 E0 00 00 58 [18:48:51]Write i2c OK [18:48:51]MH_I2C_Read... [18:48:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:48:51]Read from MH i2c: E2 [18:48:51]MH_I2C_Read... [18:48:51]Read from MH i2c: E2 03 00 [18:48:51]MH_I2C_Read... [18:48:51]Read from MH i2c: E2 03 00 E2 80 00 90 00 D6 [18:48:51]RAPDU: 90 00 [18:48:51]wFMCommunicate OK [18:48:51]wFMCommunicate request_size=4 [18:48:51]MH_SAM_APDU [18:48:51]CAPDU: 80 0D 03 02 [18:48:51]Write to MH i2c: E2 08 00 E3 80 80 0D 03 02 00 00 00 00 DE [18:48:51]Write i2c OK [18:48:51]MH_I2C_Read... [18:48:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:48:51]Read from MH i2c: E2 [18:48:51]MH_I2C_Read... [18:48:51]Read from MH i2c: E2 0B 00 [18:48:51]MH_I2C_Read... [18:48:51]Read from MH i2c: E2 0B 00 E3 80 00 DC 47 EA 6A 0B DA EC 1C 90 00 43 [18:48:51]RAPDU: DC 47 EA 6A 0B DA EC 1C 90 00 [18:48:51]wFMCommunicate OK [18:48:51]SAM_PROTO_SignData done [18:48:51]FM_MakeSignedData done [18:48:51]CreateOFDProtocolMessage [18:48:51]wFMCommunicate request_size=4 [18:48:51]MH_SAM_APDU [18:48:51]CAPDU: 80 11 00 00 [18:48:51]Write to MH i2c: E2 08 00 E4 80 80 11 00 00 00 00 00 00 DE [18:48:51]Write i2c OK [18:48:51]MH_I2C_Read... [18:48:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:48:51]Read from MH i2c: E2 [18:48:51]MH_I2C_Read... [18:48:51]Read from MH i2c: E2 17 00 [18:48:51]MH_I2C_Read... [18:48:51]Read from MH i2c: E2 17 00 E4 80 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 2C [18:48:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [18:48:51]wFMCommunicate OK [18:48:51]CreateOFDProtocolMessage done [18:48:51]OFDSenderStorePacket 187873 [18:48:51]StoreOFDPacket docnum=187873 [18:48:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 2A 6A 07 01 8D 92 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 01 00 00 F4 03 04 00 17 A2 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 E1 DD 02 00 35 04 06 00 57 47 A9 CA D8 E0 DC 47 EA 6A 0B DA EC 1C [18:48:51]CheckFolder [18:48:51]dirname=/storage/ofd_packets [18:48:51]CheckFolder done [18:48:51]ProducePacketName [18:48:51]name=ofd_packets/00187873 [18:48:51]NVStorageSaveData ofd_packets/00187873 [18:48:51]File name is /storage/ofd_packets/00187873 [18:48:51]Write 301 bytes [18:48:51]NVStorageSaveData done [18:48:51]OFDSenderStorePacket done [18:48:51]KKMCreateOFDPacket done [18:48:51]NVStorageSaveData kkm_last_timestamp [18:48:51]File name is /storage/kkm_last_timestamp [18:48:52]Write 4 bytes [18:48:52]NVStorageSaveData done [18:48:52]OFD Sender: Processing packet 187873 [packets to send 1062, broken 1061] [18:48:52]ProducePacketName [18:48:52]name=ofd_packets/00187873 [18:48:52]OFD Sender: To server: pG, [18:48:52]CommunicateWithHost lk.salyk.kg:30040 [18:48:52]ConnectInit lk.salyk.kg [18:48:52]ExternCall_PrintAddStr [18:48:52]wPrintStart [18:48:52]Write to MH i2c: 01 00 00 E5 80 65 [18:48:52]Write i2c OK [18:48:52]MH_I2C_Read... [18:48:52]Read from MH i2c: 01 [18:48:52]MH_I2C_Read... [18:48:52]Read from MH i2c: 01 07 00 [18:48:52]MH_I2C_Read... [18:48:52]Read from MH i2c: 01 07 00 E5 80 00 00 00 00 00 FF 0F 7A [18:48:52]RasterBufferAndPrint [18:48:52]line Счет N : (1)209924 [18:48:52]line ИНН: 02508201610067 [18:48:52]line Контрольно-Кассовый Чек [18:48:52]line ПРОДАЖА [18:48:52]line ТРК (МРК, ГНК) : 43 [18:48:52]line Товар: 2710124500 [18:48:52]line Аи-95-К-3 [18:48:52]line 26.960 * 74.20 [18:48:52]line = 2000.43 [18:48:52]line НДС 12% НСП 1% [18:48:52]line > о реализуемом товаре [18:48:52]line ОКРУГЛЕНИЕ: -0.43 [18:48:52]line ИТОГО: 2000.00 [18:48:52]line Внесено: 2000.00 [18:48:52]line СДАЧА: 0.00 [18:48:52]line НСП 1% : 17.70 [18:48:52]line НДС 12% : 212.43 [18:48:52]line Наличными: 2000.00 [18:48:52]line Безнал.: 0.00 [18:48:52]line Место: АЗС № 86 "Партнер Нефть" [18:48:52]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [18:48:52]line СНО: Общий режим [18:48:52]line Чек 337 21.10.2024 18:48 [18:48:52]line Смена: 460 ФФД: 1.0 [18:48:52]line ЗНМ: 0300000155 [18:48:52]line РНМ: 0000000000100030 [18:48:52]line Версия ККМ: 001 [18:48:52]line ФМ: 0000000000965340 [18:48:52]line ФД: 187873 [18:48:52]line ФПД: 95965302937824 [18:48:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T184855&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187873&fm=95965302937824&tin=02508201610067®Number=0000000000100030&sum=200000 [18:48:52]written 0, free lines is 4095 [18:48:52]Connected sock=11 [18:48:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 2A 6A 07 01 8D 92 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 01 00 00 F4 03 04 00 17 A2 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 E1 DD 02 00 35 04 06 00 57 47 A9 CA D8 E0 DC 47 EA 6A 0B DA EC 1C [18:48:52]Write to MH i2c: 01 00 00 10 81 91 [18:48:52]Write i2c OK [18:48:52]MH_I2C_Read... [18:48:52]Read from MH i2c: 01 [18:48:52]MH_I2C_Read... [18:48:52]Read from MH i2c: 01 07 00 [18:48:52]MH_I2C_Read... [18:48:52]Read from MH i2c: 01 07 00 10 81 00 00 00 00 00 77 0C 1B [18:48:52]RasterBufferAndPrint [18:48:52]line [18:48:52]line [18:48:52]line [18:48:52]line [18:48:52]line [18:48:52]written 0, free lines is 3197 [18:48:52]MH_Cut [18:48:52]Write to MH i2c: D1 01 00 17 81 01 6A [18:48:52]Write i2c OK [18:48:52]MH_I2C_Read... [18:48:52]Read from MH i2c: D1 [18:48:52]MH_I2C_Read... [18:48:52]Read from MH i2c: D1 01 00 [18:48:52]MH_I2C_Read... [18:48:52]Read from MH i2c: D1 01 00 17 81 00 69 [18:48:52]Write to MH i2c: 01 00 00 18 81 99 [18:48:52]Write i2c OK [18:48:52]MH_I2C_Read... [18:48:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 C5 E5 47 00 18 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 39 36 35 33 34 30 10 04 04 00 E1 DD 02 00 F4 03 04 00 06 4C 16 67 B6 04 01 00 00 57 7C 5F 56 A1 75 55 EF [18:48:52]CommunicateWithHost err = 0 [18:48:52]CheckOFDResponse [18:48:52]1017 (14) - 77093643461234 [18:48:52]1041 (16) - 0000000000965340 [18:48:52]1040 (4) - 187873 [18:48:52]1012 (4) - 21.10.2024 12:41 [18:48:52]1206 (1) - 0 [18:48:52]OFD Sender: Remove packet 187873 [18:48:52]ProducePacketName [18:48:52]name=ofd_packets/00187873 [18:48:52]NVStorageDeleteData [18:48:53]OFD Sender: No OFD packet to send [18:48:53]*** Cut start [18:48:53]*** Partial cut [18:48:53]*** CUTSNS_PIN = 1 [18:48:53]*** CUTSNS_PIN = 0 [18:48:54]*** Brake cut motor [18:48:54]Read from MH i2c: 01 [18:48:54]MH_I2C_Read... [18:48:54]*** Stop cut motor [18:48:54]*** Cut end [18:48:54]Read from MH i2c: 01 07 00 [18:48:54]MH_I2C_Read... [18:48:54]Read from MH i2c: 01 07 00 18 81 00 00 00 00 00 FF 0F AE [18:48:54]process_action close_receipt done [18:48:54]requested_data is exist [18:48:54]produce_requested_data [18:48:54]requested_item fm.sn is exist - process it [18:48:54]wFMCommunicate request_size=4 [18:48:54]MH_SAM_APDU [18:48:54]CAPDU: 80 11 00 00 [18:48:54]Write to MH i2c: E2 08 00 19 81 80 11 00 00 00 00 00 00 14 [18:48:54]Write i2c OK [18:48:54]MH_I2C_Read... [18:48:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:48:54]Read from MH i2c: E2 [18:48:54]MH_I2C_Read... [18:48:54]Read from MH i2c: E2 17 00 [18:48:54]MH_I2C_Read... [18:48:54]Read from MH i2c: E2 17 00 19 81 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 62 [18:48:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [18:48:54]wFMCommunicate OK [18:48:54]requested_item fd.num is exist - process it [18:48:54]SAM_PROTO_GetFieldsCounters [18:48:54]wFMCommunicate request_size=4 [18:48:54]MH_SAM_APDU [18:48:54]CAPDU: 80 13 00 00 [18:48:54]Write to MH i2c: E2 08 00 1A 81 80 13 00 00 00 00 00 00 17 [18:48:54]Write i2c OK [18:48:54]MH_I2C_Read... [18:48:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:48:54]Read from MH i2c: E2 [18:48:54]MH_I2C_Read... [18:48:54]Read from MH i2c: E2 62 00 [18:48:54]MH_I2C_Read... [18:48:54]Read from MH i2c: E2 62 00 1A 81 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 E1 DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 51 01 00 00 5E 04 04 00 51 01 00 00 57 04 04 00 52 01 00 00 19 04 04 00 00 00 00 00 90 00 A1 [18:48:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 E1 DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 51 01 00 00 5E 04 04 00 51 01 00 00 57 04 04 00 52 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:48:54]wFMCommunicate OK [18:48:54]SAM_PROTO_GetFieldsCounters done [18:48:54]requested_item shift.num is exist - process it [18:48:54]requested_item shift.opened is exist - process it [18:48:54]req_shift_opened [18:48:54]FM_GetShiftState [18:48:54]SAM_PROTO_GetShiftState [18:48:54]wFMCommunicate request_size=4 [18:48:54]MH_SAM_APDU [18:48:54]CAPDU: 80 13 01 00 [18:48:54]Write to MH i2c: E2 08 00 1B 81 80 13 01 00 00 00 00 00 19 [18:48:54]Write i2c OK [18:48:54]MH_I2C_Read... [18:48:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:48:54]Read from MH i2c: E2 [18:48:54]MH_I2C_Read... [18:48:54]Read from MH i2c: E2 0E 00 [18:48:54]MH_I2C_Read... [18:48:54]Read from MH i2c: E2 0E 00 1B 81 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 78 [18:48:54]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [18:48:54]wFMCommunicate OK [18:48:54]SAM_PROTO_GetShiftState done [18:48:54]FM_GetShiftState done [18:48:54]req_shift_opened done [18:48:54]requested_item shift.open_date is exist - process it [18:48:54]req_shift_open_date [18:48:54]req_shift_open_date done [18:48:54]produce_requested_data done [18:48:54]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187873,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [18:48:54]process_action_free close_receipt [18:48:54]json_value_free [18:48:54]json_value_free done [18:48:54]process_json_proto returns [18:48:54]Send response to host [18:48:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187873,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [18:48:54]free response buf [18:48:54]execute_script done [18:48:54]execute_script returns [18:48:54]free content buf [18:48:54]Sock 8.Close socket [18:48:54]Sock 8.Thread stoped [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:23]accept exits with 9 [18:50:23]New connection [18:50:23]New thread 3067157860 created [18:50:23]Thread 3067014500 joined [18:50:23]Waiting for new connection... [18:50:23] Sock 9.Parse request [18:50:23]Sock 9.Check first char [18:50:23]Sock 9.First char is OK [18:50:23]request: POST /json_proto HTTP/1.0 [18:50:23]Method: POST [18:50:23]URL: /json_proto [18:50:23]Method is POST - this is cgi request [18:50:23]url: /json_proto [18:50:23]query_string will be loaded in cgi processing [18:50:23]execute_cgi json_proto POST (null) [18:50:23]execute_cgi path=json_proto method=POST [18:50:23]POST find Content-Length [18:50:23]Host: 172.17.42.131:8080 [18:50:23]Content-Length: 682 [18:50:23]Content-Type: application/json [18:50:23] [18:50:23]POST finish read [18:50:23]Found Content-Length = 682 [18:50:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209926", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "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" ] } } [18:50:23]execute_script... [18:50: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)209926", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "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" ] } } [18:50:23]POST & json_proto [18:50:23]process_json_proto [18:50:23]json parsed OK: [18:50:23]protocol is kg_v1.0 [18:50:23]action value=close_receipt [18:50:23]process_action close_receipt [18:50:23]cmd_close_receipt [18:50:23]MH_GetDate [18:50:23]Write to MH i2c: F0 00 00 1C 81 8C [18:50:23]Write i2c OK [18:50:23]MH_I2C_Read... [18:50:23]Read from MH i2c: F0 [18:50:23]MH_I2C_Read... [18:50:23]Read from MH i2c: F0 09 00 [18:50:23]MH_I2C_Read... [18:50:23]Read from MH i2c: F0 09 00 1C 81 00 75 A2 16 67 A0 18 CA 66 11 [18:50:23]GetLastDocTimeStamp 1729536535 [18:50:23]current date 1729536629 [18:50:23]FM_GetShiftState [18:50:23]SAM_PROTO_GetShiftState [18:50:23]wFMCommunicate request_size=4 [18:50:23]MH_SAM_APDU [18:50:23]CAPDU: 80 13 01 00 [18:50:23]Write to MH i2c: E2 08 00 1D 81 80 13 01 00 00 00 00 00 1B [18:50:23]Write i2c OK [18:50:23]MH_I2C_Read... [18:50:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:50:23]Read from MH i2c: E2 [18:50:23]MH_I2C_Read... [18:50:23]Read from MH i2c: E2 0E 00 [18:50:23]MH_I2C_Read... [18:50:23]Read from MH i2c: E2 0E 00 1D 81 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 7A [18:50:23]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [18:50:23]wFMCommunicate OK [18:50:23]SAM_PROTO_GetShiftState done [18:50:23]FM_GetShiftState done [18:50:23]opened in 1729469754 [18:50:23]opened+sec_in_day 1729556154 [18:50:23]quantity*price = 100015 [18:50:23]sum+1 = 100017 [18:50:23]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 338 21.10.2024 18:50 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 187874 ФПД: 57427857767555 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T185029&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187874&fm=57427857767555&tin=02508201610067®Number=0000000000100030&sum=100000 [18:50:24]StoreToDocumentArchive [18:50:24]shift 460 fd 187874 [18:50:24]save to /storage/0460/doc_00187874 [18:50:24]save last doc name /storage/0460/doc_00187874 to /storage/kkm_last_doc_name [18:50:24]save OK [18:50:24]Clear old archive folders... [18:50:24]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:50:24]tlvbuf is 010FC110 [18:50:24]SAM_PROTO_ClearQueue [18:50:24]wFMCommunicate request_size=4 [18:50:24]MH_SAM_APDU [18:50:24]CAPDU: 80 09 00 00 [18:50:24]Write to MH i2c: E2 08 00 2A 81 80 09 00 00 00 00 00 00 1D [18:50:24]Write i2c OK [18:50:24]MH_I2C_Read... [18:50:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:50:24]Read from MH i2c: E2 [18:50:24]MH_I2C_Read... [18:50:24]Read from MH i2c: E2 03 00 [18:50:24]MH_I2C_Read... [18:50:24]Read from MH i2c: E2 03 00 2A 81 00 90 00 1F [18:50:24]RAPDU: 90 00 [18:50:24]wFMCommunicate OK [18:50:24]SAM_PROTO_ClearQueue done [18:50:24]KKMCreateOFDPacket [18:50:24]OFDProtocolAddRootSTLVToBuf [18:50:24]FM_MakeSignedData [18:50:24]FM_MakeSignedData [18:50:24]SAM_PROTO_SignData [18:50:24]wFMCommunicate request_size=4 [18:50:24]MH_SAM_APDU [18:50:24]CAPDU: 80 0D 01 02 [18:50:24]Write to MH i2c: E2 08 00 2B 81 80 0D 01 02 00 00 00 00 25 [18:50:25]Write i2c OK [18:50:25]MH_I2C_Read... [18:50:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:50:25]Read from MH i2c: E2 [18:50:25]MH_I2C_Read... [18:50:25]Read from MH i2c: E2 03 00 [18:50:25]MH_I2C_Read... [18:50:25]Read from MH i2c: E2 03 00 2B 81 00 90 00 20 [18:50:25]RAPDU: 90 00 [18:50:25]wFMCommunicate OK [18:50:25]wFMCommunicate request_size=255 [18:50:25]MH_SAM_APDU [18:50:25]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 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 52 01 00 00 F4 03 04 00 75 A2 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 E2 DD 02 00 35 04 06 00 34 [18:50:25]Write to MH i2c: E2 02 01 2C 81 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 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 52 01 00 00 F4 03 04 00 75 A2 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 E2 DD 02 00 35 04 06 00 34 00 00 3B [18:50:25]Write i2c OK [18:50:25]MH_I2C_Read... [18:50:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:50:25]Read from MH i2c: E2 [18:50:25]MH_I2C_Read... [18:50:25]Read from MH i2c: E2 03 00 [18:50:25]MH_I2C_Read... [18:50:25]Read from MH i2c: E2 03 00 2C 81 00 90 00 21 [18:50:25]RAPDU: 90 00 [18:50:25]wFMCommunicate OK [18:50:25]wFMCommunicate request_size=10 [18:50:25]MH_SAM_APDU [18:50:25]CAPDU: 80 0D 02 02 05 3A F7 0F FC 83 [18:50:25]Write to MH i2c: E2 0D 00 2D 81 80 0D 02 02 05 00 3A F7 0F FC 83 00 00 F1 [18:50:25]Write i2c OK [18:50:25]MH_I2C_Read... [18:50:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:50:25]Read from MH i2c: E2 [18:50:25]MH_I2C_Read... [18:50:25]Read from MH i2c: E2 03 00 [18:50:25]MH_I2C_Read... [18:50:25]Read from MH i2c: E2 03 00 2D 81 00 90 00 22 [18:50:25]RAPDU: 90 00 [18:50:25]wFMCommunicate OK [18:50:25]wFMCommunicate request_size=4 [18:50:25]MH_SAM_APDU [18:50:25]CAPDU: 80 0D 03 02 [18:50:25]Write to MH i2c: E2 08 00 2E 81 80 0D 03 02 00 00 00 00 2A [18:50:25]Write i2c OK [18:50:25]MH_I2C_Read... [18:50:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:50:25]Read from MH i2c: E2 [18:50:25]MH_I2C_Read... [18:50:25]Read from MH i2c: E2 0B 00 [18:50:25]MH_I2C_Read... [18:50:25]Read from MH i2c: E2 0B 00 2E 81 00 A6 98 F9 95 39 F9 67 74 90 00 04 [18:50:25]RAPDU: A6 98 F9 95 39 F9 67 74 90 00 [18:50:25]wFMCommunicate OK [18:50:25]SAM_PROTO_SignData done [18:50:25]FM_MakeSignedData done [18:50:25]CreateOFDProtocolMessage [18:50:25]wFMCommunicate request_size=4 [18:50:25]MH_SAM_APDU [18:50:25]CAPDU: 80 11 00 00 [18:50:25]Write to MH i2c: E2 08 00 2F 81 80 11 00 00 00 00 00 00 2A [18:50:25]Write i2c OK [18:50:25]MH_I2C_Read... [18:50:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:50:25]Read from MH i2c: E2 [18:50:25]MH_I2C_Read... [18:50:25]Read from MH i2c: E2 17 00 [18:50:25]MH_I2C_Read... [18:50:25]Read from MH i2c: E2 17 00 2F 81 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 78 [18:50:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [18:50:25]wFMCommunicate OK [18:50:25]CreateOFDProtocolMessage done [18:50:25]OFDSenderStorePacket 187874 [18:50:25]StoreOFDPacket docnum=187874 [18:50:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 20 59 07 01 E7 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 33 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 52 01 00 00 F4 03 04 00 75 A2 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 E2 DD 02 00 35 04 06 00 34 3A F7 0F FC 83 A6 98 F9 95 39 F9 67 74 [18:50:25]CheckFolder [18:50:25]dirname=/storage/ofd_packets [18:50:25]CheckFolder done [18:50:25]ProducePacketName [18:50:25]name=ofd_packets/00187874 [18:50:25]NVStorageSaveData ofd_packets/00187874 [18:50:25]File name is /storage/ofd_packets/00187874 [18:50:25]Write 301 bytes [18:50:25]NVStorageSaveData done [18:50:25]OFDSenderStorePacket done [18:50:25]KKMCreateOFDPacket done [18:50:25]NVStorageSaveData kkm_last_timestamp [18:50:25]File name is /storage/kkm_last_timestamp [18:50:25]Write 4 bytes [18:50:25]NVStorageSaveData done [18:50:25]ExternCall_PrintAddStr [18:50:25]wPrintStart [18:50:25]Write to MH i2c: 01 00 00 30 81 B1 [18:50:25]Write i2c OK [18:50:25]MH_I2C_Read... [18:50:25]Read from MH i2c: 01 [18:50:25]MH_I2C_Read... [18:50:25]Read from MH i2c: 01 07 00 [18:50:25]MH_I2C_Read... [18:50:25]Read from MH i2c: 01 07 00 30 81 00 00 00 00 00 FF 0F C6 [18:50:25]RasterBufferAndPrint [18:50:25]line Счет N : (1)209926 [18:50:25]line ИНН: 02508201610067 [18:50:25]line Контрольно-Кассовый Чек [18:50:25]line ПРОДАЖА [18:50:25]line ТРК (МРК, ГНК) : 32 [18:50:25]line Товар: 2710124130 [18:50:25]line Аи-92-К-3 [18:50:25]line 14.950 * 66.90 [18:50:25]line = 1000.16 [18:50:25]line НДС 12% НСП 1% [18:50:25]line > о реализуемом товаре [18:50:25]line ОКРУГЛЕНИЕ: -0.16 [18:50:25]line ИТОГО: 1000.00 [18:50:25]line Внесено: 1000.00 [18:50:25]line СДАЧА: 0.00 [18:50:25]line НСП 1% : 8.85 [18:50:25]line НДС 12% : 106.21 [18:50:25]line Наличными: 1000.00 [18:50:25]line Безнал.: 0.00 [18:50:25]line Место: АЗС № 86 "Партнер Нефть" [18:50:25]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [18:50:25]line СНО: Общий режим [18:50:25]line Чек 338 21.10.2024 18:50 [18:50:25]line Смена: 460 ФФД: 1.0 [18:50:25]line ЗНМ: 0300000155 [18:50:25]line РНМ: 0000000000100030 [18:50:25]line Версия ККМ: 001 [18:50:25]line ФМ: 0000000000965340 [18:50:25]line ФД: 187874 [18:50:25]line ФПД: 57427857767555 [18:50:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T185029&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187874&fm=57427857767555&tin=02508201610067®Number=0000000000100030&sum=100000 [18:50:25]written 0, free lines is 4095 [18:50:25]OFD Sender: Processing packet 187874 [packets to send 1062, broken 1061] [18:50:25]ProducePacketName [18:50:25]name=ofd_packets/00187874 [18:50:25]OFD Sender: To server: pG, [18:50:25]CommunicateWithHost lk.salyk.kg:30040 [18:50:25]ConnectInit lk.salyk.kg [18:50:25]Connected sock=10 [18:50:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 20 59 07 01 E7 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 33 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 52 01 00 00 F4 03 04 00 75 A2 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 E2 DD 02 00 35 04 06 00 34 3A F7 0F FC 83 A6 98 F9 95 39 F9 67 74 [18:50:25]Write to MH i2c: 01 00 00 5B 81 DC [18:50:25]Write i2c OK [18:50:25]MH_I2C_Read... [18:50:25]Read from MH i2c: 01 [18:50:25]MH_I2C_Read... [18:50:25]Read from MH i2c: 01 07 00 [18:50:25]MH_I2C_Read... [18:50:25]Read from MH i2c: 01 07 00 5B 81 00 00 00 00 00 69 0C 58 [18:50:25]RasterBufferAndPrint [18:50:25]line [18:50:25]line [18:50:25]line [18:50:25]line [18:50:25]line [18:50:25]written 0, free lines is 3180 [18:50:25]MH_Cut [18:50:25]Write to MH i2c: D1 01 00 62 81 01 B5 [18:50:25]Write i2c OK [18:50:25]MH_I2C_Read... [18:50:25]Read from MH i2c: D1 [18:50:25]MH_I2C_Read... [18:50:25]Read from MH i2c: D1 01 00 [18:50:25]MH_I2C_Read... [18:50:25]Read from MH i2c: D1 01 00 62 81 00 B4 [18:50:25]Write to MH i2c: 01 00 00 63 81 E4 [18:50:25]Write i2c OK [18:50:25]MH_I2C_Read... [18:50:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 07 12 47 00 E0 F0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 E2 DD 02 00 F4 03 04 00 64 4C 16 67 B6 04 01 00 00 B5 7B D6 C5 14 3A FE A0 [18:50:26]CommunicateWithHost err = 0 [18:50:26]CheckOFDResponse [18:50:26]1017 (14) - 77093643461234 [18:50:26]1041 (16) - 0000000000965340 [18:50:26]1040 (4) - 187874 [18:50:26]1012 (4) - 21.10.2024 12:43 [18:50:26]1206 (1) - 0 [18:50:26]OFD Sender: Remove packet 187874 [18:50:26]ProducePacketName [18:50:26]name=ofd_packets/00187874 [18:50:26]NVStorageDeleteData [18:50:26]OFD Sender: No OFD packet to send [18:50:27]*** Cut start [18:50:27]*** Partial cut [18:50:27]*** CUTSNS_PIN = 1 [18:50:27]*** CUTSNS_PIN = 0 [18:50:27]*** Brake cut motor [18:50:27]Read from MH i2c: 01 [18:50:27]MH_I2C_Read... [18:50:27]*** Stop cut motor [18:50:27]*** Cut end [18:50:27]Read from MH i2c: 01 07 00 [18:50:27]MH_I2C_Read... [18:50:27]Read from MH i2c: 01 07 00 63 81 00 00 00 00 00 FF 0F F9 [18:50:27]process_action close_receipt done [18:50:27]requested_data is exist [18:50:27]produce_requested_data [18:50:27]requested_item fm.sn is exist - process it [18:50:27]wFMCommunicate request_size=4 [18:50:27]MH_SAM_APDU [18:50:27]CAPDU: 80 11 00 00 [18:50:27]Write to MH i2c: E2 08 00 64 81 80 11 00 00 00 00 00 00 5F [18:50:27]Write i2c OK [18:50:27]MH_I2C_Read... [18:50:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:50:27]Read from MH i2c: E2 [18:50:27]MH_I2C_Read... [18:50:27]Read from MH i2c: E2 17 00 [18:50:27]MH_I2C_Read... [18:50:27]Read from MH i2c: E2 17 00 64 81 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 AD [18:50:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [18:50:27]wFMCommunicate OK [18:50:27]requested_item fd.num is exist - process it [18:50:27]SAM_PROTO_GetFieldsCounters [18:50:27]wFMCommunicate request_size=4 [18:50:27]MH_SAM_APDU [18:50:27]CAPDU: 80 13 00 00 [18:50:27]Write to MH i2c: E2 08 00 65 81 80 13 00 00 00 00 00 00 62 [18:50:27]Write i2c OK [18:50:27]MH_I2C_Read... [18:50:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:50:28]Read from MH i2c: E2 [18:50:28]MH_I2C_Read... [18:50:28]Read from MH i2c: E2 62 00 [18:50:28]MH_I2C_Read... [18:50:28]Read from MH i2c: E2 62 00 65 81 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 E2 DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 52 01 00 00 5E 04 04 00 52 01 00 00 57 04 04 00 53 01 00 00 19 04 04 00 00 00 00 00 90 00 F0 [18:50:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 E2 DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 52 01 00 00 5E 04 04 00 52 01 00 00 57 04 04 00 53 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:50:28]wFMCommunicate OK [18:50:28]SAM_PROTO_GetFieldsCounters done [18:50:28]requested_item shift.num is exist - process it [18:50:28]requested_item shift.opened is exist - process it [18:50:28]req_shift_opened [18:50:28]FM_GetShiftState [18:50:28]SAM_PROTO_GetShiftState [18:50:28]wFMCommunicate request_size=4 [18:50:28]MH_SAM_APDU [18:50:28]CAPDU: 80 13 01 00 [18:50:28]Write to MH i2c: E2 08 00 66 81 80 13 01 00 00 00 00 00 64 [18:50:28]Write i2c OK [18:50:28]MH_I2C_Read... [18:50:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:50:28]Read from MH i2c: E2 [18:50:28]MH_I2C_Read... [18:50:28]Read from MH i2c: E2 0E 00 [18:50:28]MH_I2C_Read... [18:50:28]Read from MH i2c: E2 0E 00 66 81 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 C3 [18:50:28]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [18:50:28]wFMCommunicate OK [18:50:28]SAM_PROTO_GetShiftState done [18:50:28]FM_GetShiftState done [18:50:28]req_shift_opened done [18:50:28]requested_item shift.open_date is exist - process it [18:50:28]req_shift_open_date [18:50:28]req_shift_open_date done [18:50:28]produce_requested_data done [18:50:28]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187874,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [18:50:28]process_action_free close_receipt [18:50:28]json_value_free [18:50:28]json_value_free done [18:50:28]process_json_proto returns [18:50:28]Send response to host [18:50:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187874,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [18:50:28]free response buf [18:50:28]execute_script done [18:50:28]execute_script returns [18:50:28]free content buf [18:50:28]Sock 9.Close socket [18:50:28]Sock 9.Thread stoped [18:50:31]OFD Sender: No OFD packet to send [18:50:36]OFD Sender: No OFD packet to send [18:50:41]OFD Sender: No OFD packet to send [18:50:46]OFD Sender: No OFD packet to send [18:50:51]OFD Sender: No OFD packet to send [18:50:56]OFD Sender: No OFD packet to send [18:51:01]OFD Sender: No OFD packet to send [18:51:06]OFD Sender: No OFD packet to send [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:37]OFD Sender: No OFD packet to send [18:51:42]OFD Sender: No OFD packet to send [18:51:47]OFD Sender: No OFD packet to send [18:51:52]OFD Sender: No OFD packet to send [18:51:57]OFD Sender: No OFD packet to send [18:52:02]OFD Sender: No OFD packet to send [18:52:07]OFD Sender: No OFD packet to send [18:52:08]accept exits with 8 [18:52:08]New connection [18:52:08]New thread 3067014500 created [18:52:08]Thread 3067157860 joined [18:52:08]Waiting for new connection... [18:52:08] Sock 8.Parse request [18:52:08]Sock 8.Check first char [18:52:08]Sock 8.First char is OK [18:52:08]request: POST /json_proto HTTP/1.0 [18:52:08]Method: POST [18:52:08]URL: /json_proto [18:52:08]Method is POST - this is cgi request [18:52:08]url: /json_proto [18:52:08]query_string will be loaded in cgi processing [18:52:08]execute_cgi json_proto POST (null) [18:52:08]execute_cgi path=json_proto method=POST [18:52:08]POST find Content-Length [18:52:08]Host: 172.17.42.131:8080 [18:52:08]Content-Length: 792 [18:52:08]Content-Type: application/json [18:52:08] [18:52:08]POST finish read [18:52:08]Found Content-Length = 792 [18:52:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209927", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 0.00, "quantity" : 22.430, "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\u000A02633", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:52:08]execute_script... [18:52: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)209927", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 0.00, "quantity" : 22.430, "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\u000A02633", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:52:08]POST & json_proto [18:52:08]process_json_proto [18:52:08]json parsed OK: [18:52:08]protocol is kg_v1.0 [18:52:08]action value=close_receipt [18:52:08]process_action close_receipt [18:52:08]cmd_close_receipt [18:52:08]MH_GetDate [18:52:08]Write to MH i2c: F0 00 00 67 81 D7 [18:52:08]Write i2c OK [18:52:08]MH_I2C_Read... [18:52:08]Read from MH i2c: F0 [18:52:08]MH_I2C_Read... [18:52:08]Read from MH i2c: F0 09 00 [18:52:08]MH_I2C_Read... [18:52:08]Read from MH i2c: F0 09 00 67 81 00 DD A2 16 67 A0 18 CA 66 C4 [18:52:08]GetLastDocTimeStamp 1729536629 [18:52:08]current date 1729536733 [18:52:08]FM_GetShiftState [18:52:08]SAM_PROTO_GetShiftState [18:52:08]wFMCommunicate request_size=4 [18:52:08]MH_SAM_APDU [18:52:08]CAPDU: 80 13 01 00 [18:52:08]Write to MH i2c: E2 08 00 68 81 80 13 01 00 00 00 00 00 66 [18:52:08]Write i2c OK [18:52:08]MH_I2C_Read... [18:52:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:52:08]Read from MH i2c: E2 [18:52:08]MH_I2C_Read... [18:52:08]Read from MH i2c: E2 0E 00 [18:52:08]MH_I2C_Read... [18:52:08]Read from MH i2c: E2 0E 00 68 81 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 C5 [18:52:08]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [18:52:08]wFMCommunicate OK [18:52:08]SAM_PROTO_GetShiftState done [18:52:08]FM_GetShiftState done [18:52:08]opened in 1729469754 [18:52:08]opened+sec_in_day 1729556154 [18:52:08]quantity*price = 0 [18:52:08]sum+1 = 1 [18:52:08]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 339 21.10.2024 18:52 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Талоны: Топливная Карта 02633 ФМ: 0000000000965340 ФД: 187875 ФПД: 49359461689394 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T185213&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187875&fm=49359461689394&tin=02508201610067®Number=0000000000100030&sum=0 [18:52:09]StoreToDocumentArchive [18:52:09]shift 460 fd 187875 [18:52:09]save to /storage/0460/doc_00187875 [18:52:09]save last doc name /storage/0460/doc_00187875 to /storage/kkm_last_doc_name [18:52:09]save OK [18:52:09]Clear old archive folders... [18:52:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:52:09]tlvbuf is 01236D10 [18:52:09]SAM_PROTO_ClearQueue [18:52:09]wFMCommunicate request_size=4 [18:52:09]MH_SAM_APDU [18:52:09]CAPDU: 80 09 00 00 [18:52:09]Write to MH i2c: E2 08 00 75 81 80 09 00 00 00 00 00 00 68 [18:52:09]Write i2c OK [18:52:09]MH_I2C_Read... [18:52:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:52:09]Read from MH i2c: E2 [18:52:09]MH_I2C_Read... [18:52:09]Read from MH i2c: E2 03 00 [18:52:09]MH_I2C_Read... [18:52:09]Read from MH i2c: E2 03 00 75 81 00 90 00 6A [18:52:09]RAPDU: 90 00 [18:52:09]wFMCommunicate OK [18:52:09]SAM_PROTO_ClearQueue done [18:52:09]KKMCreateOFDPacket [18:52:09]OFDProtocolAddRootSTLVToBuf [18:52:09]FM_MakeSignedData [18:52:09]FM_MakeSignedData [18:52:09]SAM_PROTO_SignData [18:52:09]wFMCommunicate request_size=4 [18:52:09]MH_SAM_APDU [18:52:09]CAPDU: 80 0D 01 02 [18:52:09]Write to MH i2c: E2 08 00 76 81 80 0D 01 02 00 00 00 00 70 [18:52:09]Write i2c OK [18:52:09]MH_I2C_Read... [18:52:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:52:09]Read from MH i2c: E2 [18:52:09]MH_I2C_Read... [18:52:09]Read from MH i2c: E2 03 00 [18:52:09]MH_I2C_Read... [18:52:09]Read from MH i2c: E2 03 00 76 81 00 90 00 6B [18:52:09]RAPDU: 90 00 [18:52:09]wFMCommunicate OK [18:52:09]wFMCommunicate request_size=255 [18:52:09]MH_SAM_APDU [18:52:09]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 01 00 00 F4 03 04 00 DD A2 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 E3 DD 02 00 35 04 06 00 2C [18:52:09]Write to MH i2c: E2 02 01 77 81 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 01 00 00 F4 03 04 00 DD A2 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 E3 DD 02 00 35 04 06 00 2C 00 00 5E [18:52:09]Write i2c OK [18:52:09]MH_I2C_Read... [18:52:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:52:10]Read from MH i2c: E2 [18:52:10]MH_I2C_Read... [18:52:10]Read from MH i2c: E2 03 00 [18:52:10]MH_I2C_Read... [18:52:10]Read from MH i2c: E2 03 00 77 81 00 90 00 6C [18:52:10]RAPDU: 90 00 [18:52:10]wFMCommunicate OK [18:52:10]wFMCommunicate request_size=10 [18:52:10]MH_SAM_APDU [18:52:10]CAPDU: 80 0D 02 02 05 E4 65 2E 28 32 [18:52:10]Write to MH i2c: E2 0D 00 78 81 80 0D 02 02 05 00 E4 65 2E 28 32 00 00 4E [18:52:10]Write i2c OK [18:52:10]MH_I2C_Read... [18:52:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:52:10]Read from MH i2c: E2 [18:52:10]MH_I2C_Read... [18:52:10]Read from MH i2c: E2 03 00 [18:52:10]MH_I2C_Read... [18:52:10]Read from MH i2c: E2 03 00 78 81 00 90 00 6D [18:52:10]RAPDU: 90 00 [18:52:10]wFMCommunicate OK [18:52:10]wFMCommunicate request_size=4 [18:52:10]MH_SAM_APDU [18:52:10]CAPDU: 80 0D 03 02 [18:52:10]Write to MH i2c: E2 08 00 79 81 80 0D 03 02 00 00 00 00 75 [18:52:10]Write i2c OK [18:52:10]MH_I2C_Read... [18:52:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:52:10]Read from MH i2c: E2 [18:52:10]MH_I2C_Read... [18:52:10]Read from MH i2c: E2 0B 00 [18:52:10]MH_I2C_Read... [18:52:10]Read from MH i2c: E2 0B 00 79 81 00 A4 0A 08 3F 24 E6 C9 4F 90 00 8D [18:52:10]RAPDU: A4 0A 08 3F 24 E6 C9 4F 90 00 [18:52:10]wFMCommunicate OK [18:52:10]SAM_PROTO_SignData done [18:52:10]FM_MakeSignedData done [18:52:10]CreateOFDProtocolMessage [18:52:10]wFMCommunicate request_size=4 [18:52:10]MH_SAM_APDU [18:52:10]CAPDU: 80 11 00 00 [18:52:10]Write to MH i2c: E2 08 00 7A 81 80 11 00 00 00 00 00 00 75 [18:52:10]Write i2c OK [18:52:10]MH_I2C_Read... [18:52:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:52:10]Read from MH i2c: E2 [18:52:10]MH_I2C_Read... [18:52:10]Read from MH i2c: E2 17 00 [18:52:10]MH_I2C_Read... [18:52:10]Read from MH i2c: E2 17 00 7A 81 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 C3 [18:52:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [18:52:10]wFMCommunicate OK [18:52:10]CreateOFDProtocolMessage done [18:52:10]OFDSenderStorePacket 187875 [18:52:10]StoreOFDPacket docnum=187875 [18:52:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 76 0F 07 01 76 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 33 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 01 00 00 F4 03 04 00 DD A2 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 E3 DD 02 00 35 04 06 00 2C E4 65 2E 28 32 A4 0A 08 3F 24 E6 C9 4F [18:52:10]CheckFolder [18:52:10]dirname=/storage/ofd_packets [18:52:10]CheckFolder done [18:52:10]ProducePacketName [18:52:10]name=ofd_packets/00187875 [18:52:10]NVStorageSaveData ofd_packets/00187875 [18:52:10]File name is /storage/ofd_packets/00187875 [18:52:10]Write 301 bytes [18:52:10]NVStorageSaveData done [18:52:10]OFDSenderStorePacket done [18:52:10]KKMCreateOFDPacket done [18:52:10]NVStorageSaveData kkm_last_timestamp [18:52:10]File name is /storage/kkm_last_timestamp [18:52:10]Write 4 bytes [18:52:10]NVStorageSaveData done [18:52:10]ExternCall_PrintAddStr [18:52:10]wPrintStart [18:52:10]Write to MH i2c: 01 00 00 7B 81 FC [18:52:10]Write i2c OK [18:52:10]MH_I2C_Read... [18:52:10]Read from MH i2c: 01 [18:52:10]MH_I2C_Read... [18:52:10]Read from MH i2c: 01 07 00 [18:52:10]MH_I2C_Read... [18:52:10]Read from MH i2c: 01 07 00 7B 81 00 00 00 00 00 FF 0F 11 [18:52:10]RasterBufferAndPrint [18:52:10]line Счет N : (1)209927 [18:52:10]line ИНН: 02508201610067 [18:52:10]line Контрольно-Кассовый Чек [18:52:10]line ПРОДАЖА [18:52:10]line ТРК (МРК, ГНК) : 42 [18:52:10]line Товар: 2710124130 [18:52:10]line Аи-92-К-3 [18:52:10]line 22.430 * 0.00 [18:52:10]line = 0.00 [18:52:10]line НДС 12% НСП 1% [18:52:10]line > о реализуемом товаре [18:52:10]line ИТОГО: 0.00 [18:52:10]line НСП 1% : 0.00 [18:52:10]line НДС 12% : 0.00 [18:52:10]line Наличными: 0.00 [18:52:10]line Безнал.: 0.00 [18:52:10]line Место: АЗС № 86 "Партнер Нефть" [18:52:10]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [18:52:10]line СНО: Общий режим [18:52:10]line Чек 339 21.10.2024 18:52 [18:52:10]line Смена: 460 ФФД: 1.0 [18:52:10]line ЗНМ: 0300000155 [18:52:10]line РНМ: 0000000000100030 [18:52:10]line Версия ККМ: 001 [18:52:10]line Талоны: Топливная Карта [18:52:10]line 02633 [18:52:10]line ФМ: 0000000000965340 [18:52:10]line ФД: 187875 [18:52:10]line ФПД: 49359461689394 [18:52:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T185213&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187875&fm=49359461689394&tin=02508201610067®Number=0000000000100030&sum=0 [18:52:10]written 0, free lines is 4095 [18:52:10]OFD Sender: Processing packet 187875 [packets to send 1062, broken 1061] [18:52:10]ProducePacketName [18:52:10]name=ofd_packets/00187875 [18:52:10]OFD Sender: To server: pG, [18:52:10]CommunicateWithHost lk.salyk.kg:30040 [18:52:10]ConnectInit lk.salyk.kg [18:52:10]Connected sock=10 [18:52:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 76 0F 07 01 76 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 33 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 01 00 00 F4 03 04 00 DD A2 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 E3 DD 02 00 35 04 06 00 2C E4 65 2E 28 32 A4 0A 08 3F 24 E6 C9 4F [18:52:10]Write to MH i2c: 01 00 00 A5 81 26 [18:52:10]Write i2c OK [18:52:10]MH_I2C_Read... [18:52:10]Read from MH i2c: 01 [18:52:10]MH_I2C_Read... [18:52:10]Read from MH i2c: 01 07 00 [18:52:10]MH_I2C_Read... [18:52:10]Read from MH i2c: 01 07 00 A5 81 00 00 00 00 00 8D 0C C6 [18:52:10]RasterBufferAndPrint [18:52:10]line [18:52:10]line [18:52:10]line [18:52:10]line [18:52:10]line [18:52:10]written 0, free lines is 3217 [18:52:10]MH_Cut [18:52:10]Write to MH i2c: D1 01 00 AC 81 01 FF [18:52:10]Write i2c OK [18:52:10]MH_I2C_Read... [18:52:10]Read from MH i2c: D1 [18:52:10]MH_I2C_Read... [18:52:10]Read from MH i2c: D1 01 00 [18:52:10]MH_I2C_Read... [18:52:10]Read from MH i2c: D1 01 00 AC 81 00 FE [18:52:10]Write to MH i2c: 01 00 00 AD 81 2E [18:52:10]Write i2c OK [18:52:10]MH_I2C_Read... [18:52:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 9A 76 47 00 1D 83 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 E3 DD 02 00 F4 03 04 00 CD 4C 16 67 B6 04 01 00 00 FB FA ED 2B 79 E8 04 64 [18:52:11]CommunicateWithHost err = 0 [18:52:11]CheckOFDResponse [18:52:11]1017 (14) - 77093643461234 [18:52:11]1041 (16) - 0000000000965340 [18:52:11]1040 (4) - 187875 [18:52:11]1012 (4) - 21.10.2024 12:45 [18:52:11]1206 (1) - 0 [18:52:11]OFD Sender: Remove packet 187875 [18:52:11]ProducePacketName [18:52:11]name=ofd_packets/00187875 [18:52:11]NVStorageDeleteData [18:52:11]OFD Sender: No OFD packet to send [18:52:11]*** Cut start [18:52:11]*** Partial cut [18:52:11]*** CUTSNS_PIN = 1 [18:52:11]*** CUTSNS_PIN = 0 [18:52:12]*** Brake cut motor [18:52:12]Read from MH i2c: 01 [18:52:12]MH_I2C_Read... [18:52:12]*** Stop cut motor [18:52:12]*** Cut end [18:52:12]Read from MH i2c: 01 07 00 [18:52:12]MH_I2C_Read... [18:52:12]Read from MH i2c: 01 07 00 AD 81 00 00 00 00 00 FF 0F 43 [18:52:12]process_action close_receipt done [18:52:12]requested_data is exist [18:52:12]produce_requested_data [18:52:12]requested_item fm.sn is exist - process it [18:52:12]wFMCommunicate request_size=4 [18:52:12]MH_SAM_APDU [18:52:12]CAPDU: 80 11 00 00 [18:52:12]Write to MH i2c: E2 08 00 AE 81 80 11 00 00 00 00 00 00 A9 [18:52:12]Write i2c OK [18:52:12]MH_I2C_Read... [18:52:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:52:12]Read from MH i2c: E2 [18:52:12]MH_I2C_Read... [18:52:12]Read from MH i2c: E2 17 00 [18:52:12]MH_I2C_Read... [18:52:12]Read from MH i2c: E2 17 00 AE 81 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 F7 [18:52:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [18:52:12]wFMCommunicate OK [18:52:12]requested_item fd.num is exist - process it [18:52:12]SAM_PROTO_GetFieldsCounters [18:52:12]wFMCommunicate request_size=4 [18:52:12]MH_SAM_APDU [18:52:12]CAPDU: 80 13 00 00 [18:52:12]Write to MH i2c: E2 08 00 AF 81 80 13 00 00 00 00 00 00 AC [18:52:12]Write i2c OK [18:52:12]MH_I2C_Read... [18:52:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:52:12]Read from MH i2c: E2 [18:52:12]MH_I2C_Read... [18:52:12]Read from MH i2c: E2 62 00 [18:52:12]MH_I2C_Read... [18:52:12]Read from MH i2c: E2 62 00 AF 81 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 E3 DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 53 01 00 00 5E 04 04 00 53 01 00 00 57 04 04 00 54 01 00 00 19 04 04 00 00 00 00 00 90 00 3E [18:52:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 E3 DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 53 01 00 00 5E 04 04 00 53 01 00 00 57 04 04 00 54 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:52:12]wFMCommunicate OK [18:52:12]SAM_PROTO_GetFieldsCounters done [18:52:12]requested_item shift.num is exist - process it [18:52:12]requested_item shift.opened is exist - process it [18:52:12]req_shift_opened [18:52:12]FM_GetShiftState [18:52:12]SAM_PROTO_GetShiftState [18:52:12]wFMCommunicate request_size=4 [18:52:12]MH_SAM_APDU [18:52:12]CAPDU: 80 13 01 00 [18:52:12]Write to MH i2c: E2 08 00 B0 81 80 13 01 00 00 00 00 00 AE [18:52:12]Write i2c OK [18:52:12]MH_I2C_Read... [18:52:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:52:12]Read from MH i2c: E2 [18:52:12]MH_I2C_Read... [18:52:12]Read from MH i2c: E2 0E 00 [18:52:12]MH_I2C_Read... [18:52:12]Read from MH i2c: E2 0E 00 B0 81 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 0D [18:52:12]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [18:52:12]wFMCommunicate OK [18:52:12]SAM_PROTO_GetShiftState done [18:52:12]FM_GetShiftState done [18:52:12]req_shift_opened done [18:52:12]requested_item shift.open_date is exist - process it [18:52:12]req_shift_open_date [18:52:12]req_shift_open_date done [18:52:12]produce_requested_data done [18:52:12]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187875,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [18:52:12]process_action_free close_receipt [18:52:12]json_value_free [18:52:12]json_value_free done [18:52:12]process_json_proto returns [18:52:12]Send response to host [18:52:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187875,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [18:52:12]free response buf [18:52:12]execute_script done [18:52:12]execute_script returns [18:52:12]free content buf [18:52:12]Sock 8.Close socket [18:52:12]Sock 8.Thread stoped [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:47]OFD Sender: No OFD packet to send [18:53:52]OFD Sender: No OFD packet to send [18:53:57]OFD Sender: No OFD packet to send [18:54:02]OFD Sender: No OFD packet to send [18:54:07]OFD Sender: No OFD packet to send [18:54:12]OFD Sender: No OFD packet to send [18:54:17]OFD Sender: No OFD packet to send [18:54:22]OFD Sender: No OFD packet to send [18:54:23]accept exits with 9 [18:54:23]New connection [18:54:23]New thread 3067157860 created [18:54:23]Thread 3067014500 joined [18:54:23]Waiting for new connection... [18:54:23] Sock 9.Parse request [18:54:23]Sock 9.Check first char [18:54:23]Sock 9.First char is OK [18:54:23]request: POST /json_proto HTTP/1.0 [18:54:23]Method: POST [18:54:23]URL: /json_proto [18:54:23]Method is POST - this is cgi request [18:54:23]url: /json_proto [18:54:23]query_string will be loaded in cgi processing [18:54:23]execute_cgi json_proto POST (null) [18:54:23]execute_cgi path=json_proto method=POST [18:54:23]POST find Content-Length [18:54:23]Host: 172.17.42.131:8080 [18:54:23]Content-Length: 682 [18:54:23]Content-Type: application/json [18:54:23] [18:54:23]POST finish read [18:54:23]Found Content-Length = 682 [18:54:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209928", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "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" ] } } [18:54:23]execute_script... [18:54:23]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209928", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "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" ] } } [18:54:23]POST & json_proto [18:54:23]process_json_proto [18:54:23]json parsed OK: [18:54:23]protocol is kg_v1.0 [18:54:23]action value=close_receipt [18:54:23]process_action close_receipt [18:54:23]cmd_close_receipt [18:54:23]MH_GetDate [18:54:23]Write to MH i2c: F0 00 00 B1 81 21 [18:54:23]Write i2c OK [18:54:23]MH_I2C_Read... [18:54:23]Read from MH i2c: F0 [18:54:23]MH_I2C_Read... [18:54:23]Read from MH i2c: F0 09 00 [18:54:23]MH_I2C_Read... [18:54:23]Read from MH i2c: F0 09 00 B1 81 00 65 A3 16 67 A0 18 CA 66 97 [18:54:23]GetLastDocTimeStamp 1729536733 [18:54:23]current date 1729536869 [18:54:23]FM_GetShiftState [18:54:23]SAM_PROTO_GetShiftState [18:54:23]wFMCommunicate request_size=4 [18:54:23]MH_SAM_APDU [18:54:23]CAPDU: 80 13 01 00 [18:54:23]Write to MH i2c: E2 08 00 B2 81 80 13 01 00 00 00 00 00 B0 [18:54:23]Write i2c OK [18:54:23]MH_I2C_Read... [18:54:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:54:23]Read from MH i2c: E2 [18:54:23]MH_I2C_Read... [18:54:23]Read from MH i2c: E2 0E 00 [18:54:23]MH_I2C_Read... [18:54:23]Read from MH i2c: E2 0E 00 B2 81 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 0F [18:54:23]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [18:54:23]wFMCommunicate OK [18:54:23]SAM_PROTO_GetShiftState done [18:54:23]FM_GetShiftState done [18:54:23]opened in 1729469754 [18:54:23]opened+sec_in_day 1729556154 [18:54:23]quantity*price = 100015 [18:54:23]sum+1 = 100017 [18:54:23]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 340 21.10.2024 18:54 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 187876 ФПД: 20227647180433 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T185429&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187876&fm=20227647180433&tin=02508201610067®Number=0000000000100030&sum=100000 [18:54:24]StoreToDocumentArchive [18:54:24]shift 460 fd 187876 [18:54:24]save to /storage/0460/doc_00187876 [18:54:24]save last doc name /storage/0460/doc_00187876 to /storage/kkm_last_doc_name [18:54:24]save OK [18:54:24]Clear old archive folders... [18:54:24]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:54:24]tlvbuf is 010FA010 [18:54:24]SAM_PROTO_ClearQueue [18:54:24]wFMCommunicate request_size=4 [18:54:24]MH_SAM_APDU [18:54:24]CAPDU: 80 09 00 00 [18:54:24]Write to MH i2c: E2 08 00 BF 81 80 09 00 00 00 00 00 00 B2 [18:54:24]Write i2c OK [18:54:24]MH_I2C_Read... [18:54:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:54:24]Read from MH i2c: E2 [18:54:24]MH_I2C_Read... [18:54:24]Read from MH i2c: E2 03 00 [18:54:24]MH_I2C_Read... [18:54:24]Read from MH i2c: E2 03 00 BF 81 00 90 00 B4 [18:54:24]RAPDU: 90 00 [18:54:24]wFMCommunicate OK [18:54:24]SAM_PROTO_ClearQueue done [18:54:24]KKMCreateOFDPacket [18:54:24]OFDProtocolAddRootSTLVToBuf [18:54:24]FM_MakeSignedData [18:54:24]FM_MakeSignedData [18:54:24]SAM_PROTO_SignData [18:54:24]wFMCommunicate request_size=4 [18:54:24]MH_SAM_APDU [18:54:24]CAPDU: 80 0D 01 02 [18:54:24]Write to MH i2c: E2 08 00 C0 81 80 0D 01 02 00 00 00 00 BA [18:54:24]Write i2c OK [18:54:24]MH_I2C_Read... [18:54:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:54:25]Read from MH i2c: E2 [18:54:25]MH_I2C_Read... [18:54:25]Read from MH i2c: E2 03 00 [18:54:25]MH_I2C_Read... [18:54:25]Read from MH i2c: E2 03 00 C0 81 00 90 00 B5 [18:54:25]RAPDU: 90 00 [18:54:25]wFMCommunicate OK [18:54:25]wFMCommunicate request_size=255 [18:54:25]MH_SAM_APDU [18:54:25]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 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 54 01 00 00 F4 03 04 00 65 A3 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 E4 DD 02 00 35 04 06 00 12 [18:54:25]Write to MH i2c: E2 02 01 C1 81 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 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 54 01 00 00 F4 03 04 00 65 A3 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 E4 DD 02 00 35 04 06 00 12 00 00 A3 [18:54:25]Write i2c OK [18:54:25]MH_I2C_Read... [18:54:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:54:25]Read from MH i2c: E2 [18:54:25]MH_I2C_Read... [18:54:25]Read from MH i2c: E2 03 00 [18:54:25]MH_I2C_Read... [18:54:25]Read from MH i2c: E2 03 00 C1 81 00 90 00 B6 [18:54:25]RAPDU: 90 00 [18:54:25]wFMCommunicate OK [18:54:25]wFMCommunicate request_size=10 [18:54:25]MH_SAM_APDU [18:54:25]CAPDU: 80 0D 02 02 05 65 9D B9 8E 91 [18:54:25]Write to MH i2c: E2 0D 00 C2 81 80 0D 02 02 05 00 65 9D B9 8E 91 00 00 A1 [18:54:25]Write i2c OK [18:54:25]MH_I2C_Read... [18:54:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:54:25]Read from MH i2c: E2 [18:54:25]MH_I2C_Read... [18:54:25]Read from MH i2c: E2 03 00 [18:54:25]MH_I2C_Read... [18:54:25]Read from MH i2c: E2 03 00 C2 81 00 90 00 B7 [18:54:25]RAPDU: 90 00 [18:54:25]wFMCommunicate OK [18:54:25]wFMCommunicate request_size=4 [18:54:25]MH_SAM_APDU [18:54:25]CAPDU: 80 0D 03 02 [18:54:25]Write to MH i2c: E2 08 00 C3 81 80 0D 03 02 00 00 00 00 BF [18:54:25]Write i2c OK [18:54:25]MH_I2C_Read... [18:54:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:54:25]Read from MH i2c: E2 [18:54:25]MH_I2C_Read... [18:54:25]Read from MH i2c: E2 0B 00 [18:54:25]MH_I2C_Read... [18:54:25]Read from MH i2c: E2 0B 00 C3 81 00 C7 D2 44 65 C1 D7 30 0C 90 00 D6 [18:54:25]RAPDU: C7 D2 44 65 C1 D7 30 0C 90 00 [18:54:25]wFMCommunicate OK [18:54:25]SAM_PROTO_SignData done [18:54:25]FM_MakeSignedData done [18:54:25]CreateOFDProtocolMessage [18:54:25]wFMCommunicate request_size=4 [18:54:25]MH_SAM_APDU [18:54:25]CAPDU: 80 11 00 00 [18:54:25]Write to MH i2c: E2 08 00 C4 81 80 11 00 00 00 00 00 00 BF [18:54:25]Write i2c OK [18:54:25]MH_I2C_Read... [18:54:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:54:25]Read from MH i2c: E2 [18:54:25]MH_I2C_Read... [18:54:25]Read from MH i2c: E2 17 00 [18:54:25]MH_I2C_Read... [18:54:25]Read from MH i2c: E2 17 00 C4 81 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 0D [18:54:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [18:54:25]wFMCommunicate OK [18:54:25]CreateOFDProtocolMessage done [18:54:25]OFDSenderStorePacket 187876 [18:54:25]StoreOFDPacket docnum=187876 [18:54:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 3D 9F 07 01 98 FF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 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 54 01 00 00 F4 03 04 00 65 A3 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 E4 DD 02 00 35 04 06 00 12 65 9D B9 8E 91 C7 D2 44 65 C1 D7 30 0C [18:54:25]CheckFolder [18:54:25]dirname=/storage/ofd_packets [18:54:25]CheckFolder done [18:54:25]ProducePacketName [18:54:25]name=ofd_packets/00187876 [18:54:25]NVStorageSaveData ofd_packets/00187876 [18:54:25]File name is /storage/ofd_packets/00187876 [18:54:25]Write 301 bytes [18:54:25]NVStorageSaveData done [18:54:25]OFDSenderStorePacket done [18:54:25]KKMCreateOFDPacket done [18:54:25]NVStorageSaveData kkm_last_timestamp [18:54:25]File name is /storage/kkm_last_timestamp [18:54:25]Write 4 bytes [18:54:25]NVStorageSaveData done [18:54:25]ExternCall_PrintAddStr [18:54:25]wPrintStart [18:54:25]Write to MH i2c: 01 00 00 C5 81 46 [18:54:25]Write i2c OK [18:54:25]MH_I2C_Read... [18:54:25]Read from MH i2c: 01 [18:54:25]MH_I2C_Read... [18:54:25]Read from MH i2c: 01 07 00 [18:54:25]MH_I2C_Read... [18:54:25]Read from MH i2c: 01 07 00 C5 81 00 00 00 00 00 FF 0F 5B [18:54:25]RasterBufferAndPrint [18:54:25]line Счет N : (1)209928 [18:54:25]line ИНН: 02508201610067 [18:54:25]line Контрольно-Кассовый Чек [18:54:25]line ПРОДАЖА [18:54:25]line ТРК (МРК, ГНК) : 32 [18:54:25]line Товар: 2710124130 [18:54:25]line Аи-92-К-3 [18:54:25]line 14.950 * 66.90 [18:54:25]line = 1000.16 [18:54:25]line НДС 12% НСП 1% [18:54:25]line > о реализуемом товаре [18:54:25]line ОКРУГЛЕНИЕ: -0.16 [18:54:25]line ИТОГО: 1000.00 [18:54:25]line Внесено: 1000.00 [18:54:25]line СДАЧА: 0.00 [18:54:25]line НСП 1% : 8.85 [18:54:25]line НДС 12% : 106.21 [18:54:25]line Наличными: 1000.00 [18:54:25]line Безнал.: 0.00 [18:54:25]line Место: АЗС № 86 "Партнер Нефть" [18:54:25]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [18:54:25]line СНО: Общий режим [18:54:25]line Чек 340 21.10.2024 18:54 [18:54:25]line Смена: 460 ФФД: 1.0 [18:54:25]line ЗНМ: 0300000155 [18:54:25]line РНМ: 0000000000100030 [18:54:25]line Версия ККМ: 001 [18:54:25]line ФМ: 0000000000965340 [18:54:25]line ФД: 187876 [18:54:25]line ФПД: 20227647180433 [18:54:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T185429&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187876&fm=20227647180433&tin=02508201610067®Number=0000000000100030&sum=100000 [18:54:25]written 0, free lines is 4095 [18:54:25]OFD Sender: Processing packet 187876 [packets to send 1062, broken 1061] [18:54:25]ProducePacketName [18:54:25]name=ofd_packets/00187876 [18:54:25]OFD Sender: To server: pG, [18:54:25]CommunicateWithHost lk.salyk.kg:30040 [18:54:25]ConnectInit lk.salyk.kg [18:54:25]Connected sock=10 [18:54:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 3D 9F 07 01 98 FF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 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 54 01 00 00 F4 03 04 00 65 A3 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 E4 DD 02 00 35 04 06 00 12 65 9D B9 8E 91 C7 D2 44 65 C1 D7 30 0C [18:54:25]Write to MH i2c: 01 00 00 F0 81 71 [18:54:25]Write i2c OK [18:54:25]MH_I2C_Read... [18:54:25]Read from MH i2c: 01 [18:54:25]MH_I2C_Read... [18:54:25]Read from MH i2c: 01 07 00 [18:54:25]MH_I2C_Read... [18:54:25]Read from MH i2c: 01 07 00 F0 81 00 00 00 00 00 6A 0C EE [18:54:25]RasterBufferAndPrint [18:54:25]line [18:54:25]line [18:54:25]line [18:54:25]line [18:54:25]line [18:54:25]written 0, free lines is 3181 [18:54:25]MH_Cut [18:54:25]Write to MH i2c: D1 01 00 F7 81 01 4A [18:54:25]Write i2c OK [18:54:25]MH_I2C_Read... [18:54:25]Read from MH i2c: D1 [18:54:25]MH_I2C_Read... [18:54:25]Read from MH i2c: D1 01 00 [18:54:25]MH_I2C_Read... [18:54:25]Read from MH i2c: D1 01 00 F7 81 00 49 [18:54:25]Write to MH i2c: 01 00 00 F8 81 79 [18:54:25]Write i2c OK [18:54:25]MH_I2C_Read... [18:54:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 43 C6 47 00 C5 01 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 E4 DD 02 00 F4 03 04 00 54 4D 16 67 B6 04 01 00 00 F3 9B 19 A6 A0 B5 4B E9 [18:54:26]CommunicateWithHost err = 0 [18:54:26]CheckOFDResponse [18:54:26]1017 (14) - 77093643461234 [18:54:26]1041 (16) - 0000000000965340 [18:54:26]1040 (4) - 187876 [18:54:26]1012 (4) - 21.10.2024 12:47 [18:54:26]1206 (1) - 0 [18:54:26]OFD Sender: Remove packet 187876 [18:54:26]ProducePacketName [18:54:26]name=ofd_packets/00187876 [18:54:26]NVStorageDeleteData [18:54:26]OFD Sender: No OFD packet to send [18:54:27]*** Cut start [18:54:27]*** Partial cut [18:54:27]*** CUTSNS_PIN = 1 [18:54:27]*** CUTSNS_PIN = 0 [18:54:27]*** Brake cut motor [18:54:27]Read from MH i2c: 01 [18:54:27]MH_I2C_Read... [18:54:27]*** Stop cut motor [18:54:27]*** Cut end [18:54:27]Read from MH i2c: 01 07 00 [18:54:27]MH_I2C_Read... [18:54:27]Read from MH i2c: 01 07 00 F8 81 00 00 00 00 00 FF 0F 8E [18:54:27]process_action close_receipt done [18:54:27]requested_data is exist [18:54:27]produce_requested_data [18:54:27]requested_item fm.sn is exist - process it [18:54:27]wFMCommunicate request_size=4 [18:54:27]MH_SAM_APDU [18:54:27]CAPDU: 80 11 00 00 [18:54:27]Write to MH i2c: E2 08 00 F9 81 80 11 00 00 00 00 00 00 F4 [18:54:27]Write i2c OK [18:54:27]MH_I2C_Read... [18:54:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:54:27]Read from MH i2c: E2 [18:54:27]MH_I2C_Read... [18:54:27]Read from MH i2c: E2 17 00 [18:54:27]MH_I2C_Read... [18:54:27]Read from MH i2c: E2 17 00 F9 81 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 42 [18:54:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [18:54:27]wFMCommunicate OK [18:54:27]requested_item fd.num is exist - process it [18:54:27]SAM_PROTO_GetFieldsCounters [18:54:27]wFMCommunicate request_size=4 [18:54:27]MH_SAM_APDU [18:54:27]CAPDU: 80 13 00 00 [18:54:27]Write to MH i2c: E2 08 00 FA 81 80 13 00 00 00 00 00 00 F7 [18:54:27]Write i2c OK [18:54:27]MH_I2C_Read... [18:54:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:54:27]Read from MH i2c: E2 [18:54:27]MH_I2C_Read... [18:54:27]Read from MH i2c: E2 62 00 [18:54:27]MH_I2C_Read... [18:54:27]Read from MH i2c: E2 62 00 FA 81 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 E4 DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 54 01 00 00 5E 04 04 00 54 01 00 00 57 04 04 00 55 01 00 00 19 04 04 00 00 00 00 00 90 00 8D [18:54:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 E4 DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 54 01 00 00 5E 04 04 00 54 01 00 00 57 04 04 00 55 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:54:27]wFMCommunicate OK [18:54:27]SAM_PROTO_GetFieldsCounters done [18:54:27]requested_item shift.num is exist - process it [18:54:27]requested_item shift.opened is exist - process it [18:54:27]req_shift_opened [18:54:27]FM_GetShiftState [18:54:27]SAM_PROTO_GetShiftState [18:54:27]wFMCommunicate request_size=4 [18:54:27]MH_SAM_APDU [18:54:27]CAPDU: 80 13 01 00 [18:54:27]Write to MH i2c: E2 08 00 FB 81 80 13 01 00 00 00 00 00 F9 [18:54:27]Write i2c OK [18:54:27]MH_I2C_Read... [18:54:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:54:28]Read from MH i2c: E2 [18:54:28]MH_I2C_Read... [18:54:28]Read from MH i2c: E2 0E 00 [18:54:28]MH_I2C_Read... [18:54:28]Read from MH i2c: E2 0E 00 FB 81 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 58 [18:54:28]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [18:54:28]wFMCommunicate OK [18:54:28]SAM_PROTO_GetShiftState done [18:54:28]FM_GetShiftState done [18:54:28]req_shift_opened done [18:54:28]requested_item shift.open_date is exist - process it [18:54:28]req_shift_open_date [18:54:28]req_shift_open_date done [18:54:28]produce_requested_data done [18:54:28]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187876,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [18:54:28]process_action_free close_receipt [18:54:28]json_value_free [18:54:28]json_value_free done [18:54:28]process_json_proto returns [18:54:28]Send response to host [18:54:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187876,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [18:54:28]free response buf [18:54:28]execute_script done [18:54:28]execute_script returns [18:54:28]free content buf [18:54:28]Sock 9.Close socket [18:54:28]Sock 9.Thread stoped [18:54:31]OFD Sender: No OFD packet to send [18:54:36]OFD Sender: No OFD packet to send [18:54:41]OFD Sender: No OFD packet to send [18:54:46]OFD Sender: No OFD packet to send [18:54:51]OFD Sender: No OFD packet to send [18:54:56]OFD Sender: No OFD packet to send [18:55:01]OFD Sender: No OFD packet to send [18:55:06]OFD Sender: No OFD packet to send [18:55:11]OFD Sender: No OFD packet to send [18:55:16]OFD Sender: No OFD packet to send [18:55:21]OFD Sender: No OFD packet to send [18:55:26]OFD Sender: No OFD packet to send [18:55:31]OFD Sender: No OFD packet to send [18:55:36]OFD Sender: No OFD packet to send [18:55:39]accept exits with 8 [18:55:39]New connection [18:55:39]New thread 3067014500 created [18:55:39]Thread 3067157860 joined [18:55:39]Waiting for new connection... [18:55:39] Sock 8.Parse request [18:55:39]Sock 8.Check first char [18:55:39]Sock 8.First char is OK [18:55:39]request: POST /json_proto HTTP/1.0 [18:55:39]Method: POST [18:55:39]URL: /json_proto [18:55:39]Method is POST - this is cgi request [18:55:39]url: /json_proto [18:55:39]query_string will be loaded in cgi processing [18:55:39]execute_cgi json_proto POST (null) [18:55:39]execute_cgi path=json_proto method=POST [18:55:39]POST find Content-Length [18:55:39]Host: 172.17.42.131:8080 [18:55:39]Content-Length: 679 [18:55:39]Content-Type: application/json [18:55:39] [18:55:39]POST finish read [18:55:39]Found Content-Length = 679 [18:55:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209929", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 13.240, "sum" : 982.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 982.00, "payments": [ { "type": 0, "sum" : 982.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:55:39]execute_script... [18:55: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)209929", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 13.240, "sum" : 982.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 982.00, "payments": [ { "type": 0, "sum" : 982.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:55:39]POST & json_proto [18:55:39]process_json_proto [18:55:39]json parsed OK: [18:55:39]protocol is kg_v1.0 [18:55:39]action value=close_receipt [18:55:39]process_action close_receipt [18:55:39]cmd_close_receipt [18:55:39]MH_GetDate [18:55:39]Write to MH i2c: F0 00 00 FC 81 6C [18:55:39]Write i2c OK [18:55:39]MH_I2C_Read... [18:55:39]Read from MH i2c: F0 [18:55:39]MH_I2C_Read... [18:55:39]Read from MH i2c: F0 09 00 [18:55:39]MH_I2C_Read... [18:55:39]Read from MH i2c: F0 09 00 FC 81 00 B0 A3 16 67 A0 18 CA 66 2D [18:55:39]GetLastDocTimeStamp 1729536869 [18:55:39]current date 1729536944 [18:55:39]FM_GetShiftState [18:55:39]SAM_PROTO_GetShiftState [18:55:39]wFMCommunicate request_size=4 [18:55:39]MH_SAM_APDU [18:55:39]CAPDU: 80 13 01 00 [18:55:39]Write to MH i2c: E2 08 00 FD 81 80 13 01 00 00 00 00 00 FB [18:55:39]Write i2c OK [18:55:39]MH_I2C_Read... [18:55:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:55:39]Read from MH i2c: E2 [18:55:39]MH_I2C_Read... [18:55:39]Read from MH i2c: E2 0E 00 [18:55:39]MH_I2C_Read... [18:55:39]Read from MH i2c: E2 0E 00 FD 81 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 5A [18:55:39]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [18:55:39]wFMCommunicate OK [18:55:39]SAM_PROTO_GetShiftState done [18:55:39]FM_GetShiftState done [18:55:39]opened in 1729469754 [18:55:39]opened+sec_in_day 1729556154 [18:55:39]quantity*price = 98240 [18:55:39]sum+1 = 98242 [18:55:39]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 982.00 Внесено: 1000.00 СДАЧА: 18.00 НСП 1% : 8.69 НДС 12% : 104.33 Наличными: 982.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 341 21.10.2024 18:55 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 187877 ФПД: 27995939506643 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T185544&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187877&fm=27995939506643&tin=02508201610067®Number=0000000000100030&sum=98200 [18:55:40]StoreToDocumentArchive [18:55:40]shift 460 fd 187877 [18:55:40]save to /storage/0460/doc_00187877 [18:55:40]save last doc name /storage/0460/doc_00187877 to /storage/kkm_last_doc_name [18:55:40]save OK [18:55:40]Clear old archive folders... [18:55:40]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:55:40]tlvbuf is 012E4120 [18:55:40]SAM_PROTO_ClearQueue [18:55:40]wFMCommunicate request_size=4 [18:55:40]MH_SAM_APDU [18:55:40]CAPDU: 80 09 00 00 [18:55:40]Write to MH i2c: E2 08 00 0A 82 80 09 00 00 00 00 00 00 FE [18:55:40]Write i2c OK [18:55:40]MH_I2C_Read... [18:55:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:55:40]Read from MH i2c: E2 [18:55:40]MH_I2C_Read... [18:55:40]Read from MH i2c: E2 03 00 [18:55:40]MH_I2C_Read... [18:55:40]Read from MH i2c: E2 03 00 0A 82 00 90 00 00 [18:55:40]RAPDU: 90 00 [18:55:40]wFMCommunicate OK [18:55:40]SAM_PROTO_ClearQueue done [18:55:40]KKMCreateOFDPacket [18:55:40]OFDProtocolAddRootSTLVToBuf [18:55:40]FM_MakeSignedData [18:55:40]FM_MakeSignedData [18:55:40]SAM_PROTO_SignData [18:55:40]wFMCommunicate request_size=4 [18:55:40]MH_SAM_APDU [18:55:40]CAPDU: 80 0D 01 02 [18:55:40]Write to MH i2c: E2 08 00 0B 82 80 0D 01 02 00 00 00 00 06 [18:55:40]Write i2c OK [18:55:40]MH_I2C_Read... [18:55:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:55:40]Read from MH i2c: E2 [18:55:40]MH_I2C_Read... [18:55:40]Read from MH i2c: E2 03 00 [18:55:40]MH_I2C_Read... [18:55:40]Read from MH i2c: E2 03 00 0B 82 00 90 00 01 [18:55:40]RAPDU: 90 00 [18:55:40]wFMCommunicate OK [18:55:40]wFMCommunicate request_size=255 [18:55:40]MH_SAM_APDU [18:55:40]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 B8 33 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 C1 7F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 7F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 65 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 28 00 00 00 00 07 04 06 00 98 7F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 01 00 00 F4 03 04 00 B0 A3 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 E5 DD 02 00 35 04 06 00 19 [18:55:40]Write to MH i2c: E2 02 01 0C 82 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 B8 33 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 C1 7F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 7F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 65 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 28 00 00 00 00 07 04 06 00 98 7F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 01 00 00 F4 03 04 00 B0 A3 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 E5 DD 02 00 35 04 06 00 19 00 00 8D [18:55:40]Write i2c OK [18:55:40]MH_I2C_Read... [18:55:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:55:40]Read from MH i2c: E2 [18:55:40]MH_I2C_Read... [18:55:40]Read from MH i2c: E2 03 00 [18:55:40]MH_I2C_Read... [18:55:40]Read from MH i2c: E2 03 00 0C 82 00 90 00 02 [18:55:40]RAPDU: 90 00 [18:55:40]wFMCommunicate OK [18:55:40]wFMCommunicate request_size=10 [18:55:40]MH_SAM_APDU [18:55:40]CAPDU: 80 0D 02 02 05 76 50 07 89 D3 [18:55:40]Write to MH i2c: E2 0D 00 0D 82 80 0D 02 02 05 00 76 50 07 89 D3 00 00 3C [18:55:40]Write i2c OK [18:55:40]MH_I2C_Read... [18:55:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:55:40]Read from MH i2c: E2 [18:55:40]MH_I2C_Read... [18:55:40]Read from MH i2c: E2 03 00 [18:55:40]MH_I2C_Read... [18:55:40]Read from MH i2c: E2 03 00 0D 82 00 90 00 03 [18:55:40]RAPDU: 90 00 [18:55:40]wFMCommunicate OK [18:55:40]wFMCommunicate request_size=4 [18:55:40]MH_SAM_APDU [18:55:40]CAPDU: 80 0D 03 02 [18:55:40]Write to MH i2c: E2 08 00 0E 82 80 0D 03 02 00 00 00 00 0B [18:55:40]Write i2c OK [18:55:40]MH_I2C_Read... [18:55:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:55:40]Read from MH i2c: E2 [18:55:40]MH_I2C_Read... [18:55:40]Read from MH i2c: E2 0B 00 [18:55:40]MH_I2C_Read... [18:55:40]Read from MH i2c: E2 0B 00 0E 82 00 F9 2A 1A 40 D2 51 8A 67 90 00 9D [18:55:40]RAPDU: F9 2A 1A 40 D2 51 8A 67 90 00 [18:55:40]wFMCommunicate OK [18:55:40]SAM_PROTO_SignData done [18:55:40]FM_MakeSignedData done [18:55:40]CreateOFDProtocolMessage [18:55:40]wFMCommunicate request_size=4 [18:55:40]MH_SAM_APDU [18:55:40]CAPDU: 80 11 00 00 [18:55:40]Write to MH i2c: E2 08 00 0F 82 80 11 00 00 00 00 00 00 0B [18:55:40]Write i2c OK [18:55:40]MH_I2C_Read... [18:55:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:55:41]Read from MH i2c: E2 [18:55:41]MH_I2C_Read... [18:55:41]Read from MH i2c: E2 17 00 [18:55:41]MH_I2C_Read... [18:55:41]Read from MH i2c: E2 17 00 0F 82 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 59 [18:55:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [18:55:41]wFMCommunicate OK [18:55:41]CreateOFDProtocolMessage done [18:55:41]OFDSenderStorePacket 187877 [18:55:41]StoreOFDPacket docnum=187877 [18:55:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 09 73 07 01 AA 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 B8 33 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 C1 7F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 7F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 65 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 28 00 00 00 00 07 04 06 00 98 7F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 01 00 00 F4 03 04 00 B0 A3 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 E5 DD 02 00 35 04 06 00 19 76 50 07 89 D3 F9 2A 1A 40 D2 51 8A 67 [18:55:41]CheckFolder [18:55:41]dirname=/storage/ofd_packets [18:55:41]CheckFolder done [18:55:41]ProducePacketName [18:55:41]name=ofd_packets/00187877 [18:55:41]NVStorageSaveData ofd_packets/00187877 [18:55:41]File name is /storage/ofd_packets/00187877 [18:55:41]Write 301 bytes [18:55:41]NVStorageSaveData done [18:55:41]OFDSenderStorePacket done [18:55:41]KKMCreateOFDPacket done [18:55:41]NVStorageSaveData kkm_last_timestamp [18:55:41]File name is /storage/kkm_last_timestamp [18:55:41]Write 4 bytes [18:55:41]NVStorageSaveData done [18:55:41]ExternCall_PrintAddStr [18:55:41]wPrintStart [18:55:41]Write to MH i2c: 01 00 00 10 82 92 [18:55:41]Write i2c OK [18:55:41]MH_I2C_Read... [18:55:41]Read from MH i2c: 01 [18:55:41]MH_I2C_Read... [18:55:41]Read from MH i2c: 01 07 00 [18:55:41]MH_I2C_Read... [18:55:41]Read from MH i2c: 01 07 00 10 82 00 00 00 00 00 FF 0F A7 [18:55:41]RasterBufferAndPrint [18:55:41]line Счет N : (1)209929 [18:55:41]line ИНН: 02508201610067 [18:55:41]line Контрольно-Кассовый Чек [18:55:41]line ПРОДАЖА [18:55:41]line ТРК (МРК, ГНК) : 13 [18:55:41]line Товар: 2710124500 [18:55:41]line Аи-95-К-3 [18:55:41]line 13.240 * 74.20 [18:55:41]line = 982.41 [18:55:41]line НДС 12% НСП 1% [18:55:41]line > о реализуемом товаре [18:55:41]line ОКРУГЛЕНИЕ: -0.41 [18:55:41]line ИТОГО: 982.00 [18:55:41]line Внесено: 1000.00 [18:55:41]line СДАЧА: 18.00 [18:55:41]line НСП 1% : 8.69 [18:55:41]line НДС 12% : 104.33 [18:55:41]line Наличными: 982.00 [18:55:41]line Безнал.: 0.00 [18:55:41]line Место: АЗС № 86 "Партнер Нефть" [18:55:41]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [18:55:41]line СНО: Общий режим [18:55:41]line Чек 341 21.10.2024 18:55 [18:55:41]line Смена: 460 ФФД: 1.0 [18:55:41]line ЗНМ: 0300000155 [18:55:41]line РНМ: 0000000000100030 [18:55:41]line Версия ККМ: 001 [18:55:41]line ФМ: 0000000000965340 [18:55:41]line ФД: 187877 [18:55:41]line ФПД: 27995939506643 [18:55:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T185544&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187877&fm=27995939506643&tin=02508201610067®Number=0000000000100030&sum=98200 [18:55:41]written 0, free lines is 4095 [18:55:41]OFD Sender: Processing packet 187877 [packets to send 1062, broken 1061] [18:55:41]ProducePacketName [18:55:41]name=ofd_packets/00187877 [18:55:41]OFD Sender: To server: pG, [18:55:41]CommunicateWithHost lk.salyk.kg:30040 [18:55:41]ConnectInit lk.salyk.kg [18:55:41]Connected sock=10 [18:55:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 09 73 07 01 AA 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 B8 33 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 C1 7F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 7F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 65 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 28 00 00 00 00 07 04 06 00 98 7F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 01 00 00 F4 03 04 00 B0 A3 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 E5 DD 02 00 35 04 06 00 19 76 50 07 89 D3 F9 2A 1A 40 D2 51 8A 67 [18:55:41]Write to MH i2c: 01 00 00 3B 82 BD [18:55:41]Write i2c OK [18:55:41]MH_I2C_Read... [18:55:41]Read from MH i2c: 01 [18:55:41]MH_I2C_Read... [18:55:41]Read from MH i2c: 01 07 00 [18:55:41]MH_I2C_Read... [18:55:41]Read from MH i2c: 01 07 00 3B 82 00 00 00 00 00 6A 0C 3A [18:55:41]RasterBufferAndPrint [18:55:41]line [18:55:41]line [18:55:41]line [18:55:41]line [18:55:41]line [18:55:41]written 0, free lines is 3181 [18:55:41]MH_Cut [18:55:41]Write to MH i2c: D1 01 00 42 82 01 96 [18:55:41]Write i2c OK [18:55:41]MH_I2C_Read... [18:55:41]Read from MH i2c: D1 [18:55:41]MH_I2C_Read... [18:55:41]Read from MH i2c: D1 01 00 [18:55:41]MH_I2C_Read... [18:55:41]Read from MH i2c: D1 01 00 42 82 00 95 [18:55:41]Write to MH i2c: 01 00 00 43 82 C5 [18:55:41]Write i2c OK [18:55:41]MH_I2C_Read... [18:55:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 06 6B 47 00 3E 59 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 E5 DD 02 00 F4 03 04 00 9F 4D 16 67 B6 04 01 00 00 23 C3 C6 C6 29 2E C1 57 [18:55:41]CommunicateWithHost err = 0 [18:55:41]CheckOFDResponse [18:55:41]1017 (14) - 77093643461234 [18:55:41]1041 (16) - 0000000000965340 [18:55:41]1040 (4) - 187877 [18:55:41]1012 (4) - 21.10.2024 12:48 [18:55:41]1206 (1) - 0 [18:55:41]OFD Sender: Remove packet 187877 [18:55:41]ProducePacketName [18:55:41]name=ofd_packets/00187877 [18:55:41]NVStorageDeleteData [18:55:42]OFD Sender: No OFD packet to send [18:55:42]*** Cut start [18:55:42]*** Partial cut [18:55:42]*** CUTSNS_PIN = 1 [18:55:42]*** CUTSNS_PIN = 0 [18:55:42]*** Brake cut motor [18:55:43]Read from MH i2c: 01 [18:55:43]MH_I2C_Read... [18:55:43]*** Stop cut motor [18:55:43]*** Cut end [18:55:43]Read from MH i2c: 01 07 00 [18:55:43]MH_I2C_Read... [18:55:43]Read from MH i2c: 01 07 00 43 82 00 00 00 00 00 FF 0F DA [18:55:43]process_action close_receipt done [18:55:43]requested_data is exist [18:55:43]produce_requested_data [18:55:43]requested_item fm.sn is exist - process it [18:55:43]wFMCommunicate request_size=4 [18:55:43]MH_SAM_APDU [18:55:43]CAPDU: 80 11 00 00 [18:55:43]Write to MH i2c: E2 08 00 44 82 80 11 00 00 00 00 00 00 40 [18:55:43]Write i2c OK [18:55:43]MH_I2C_Read... [18:55:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:55:43]Read from MH i2c: E2 [18:55:43]MH_I2C_Read... [18:55:43]Read from MH i2c: E2 17 00 [18:55:43]MH_I2C_Read... [18:55:43]Read from MH i2c: E2 17 00 44 82 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 8E [18:55:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [18:55:43]wFMCommunicate OK [18:55:43]requested_item fd.num is exist - process it [18:55:43]SAM_PROTO_GetFieldsCounters [18:55:43]wFMCommunicate request_size=4 [18:55:43]MH_SAM_APDU [18:55:43]CAPDU: 80 13 00 00 [18:55:43]Write to MH i2c: E2 08 00 45 82 80 13 00 00 00 00 00 00 43 [18:55:43]Write i2c OK [18:55:43]MH_I2C_Read... [18:55:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:55:43]Read from MH i2c: E2 [18:55:43]MH_I2C_Read... [18:55:43]Read from MH i2c: E2 62 00 [18:55:43]MH_I2C_Read... [18:55:43]Read from MH i2c: E2 62 00 45 82 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 E5 DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 55 01 00 00 5E 04 04 00 55 01 00 00 57 04 04 00 56 01 00 00 19 04 04 00 00 00 00 00 90 00 DD [18:55:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 E5 DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 55 01 00 00 5E 04 04 00 55 01 00 00 57 04 04 00 56 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:55:43]wFMCommunicate OK [18:55:43]SAM_PROTO_GetFieldsCounters done [18:55:43]requested_item shift.num is exist - process it [18:55:43]requested_item shift.opened is exist - process it [18:55:43]req_shift_opened [18:55:43]FM_GetShiftState [18:55:43]SAM_PROTO_GetShiftState [18:55:43]wFMCommunicate request_size=4 [18:55:43]MH_SAM_APDU [18:55:43]CAPDU: 80 13 01 00 [18:55:43]Write to MH i2c: E2 08 00 46 82 80 13 01 00 00 00 00 00 45 [18:55:43]Write i2c OK [18:55:43]MH_I2C_Read... [18:55:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:55:43]Read from MH i2c: E2 [18:55:43]MH_I2C_Read... [18:55:43]Read from MH i2c: E2 0E 00 [18:55:43]MH_I2C_Read... [18:55:43]Read from MH i2c: E2 0E 00 46 82 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 A4 [18:55:43]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [18:55:43]wFMCommunicate OK [18:55:43]SAM_PROTO_GetShiftState done [18:55:43]FM_GetShiftState done [18:55:43]req_shift_opened done [18:55:43]requested_item shift.open_date is exist - process it [18:55:43]req_shift_open_date [18:55:43]req_shift_open_date done [18:55:43]produce_requested_data done [18:55:43]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187877,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [18:55:43]process_action_free close_receipt [18:55:43]json_value_free [18:55:43]json_value_free done [18:55:43]process_json_proto returns [18:55:43]Send response to host [18:55:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187877,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [18:55:43]free response buf [18:55:43]execute_script done [18:55:43]execute_script returns [18:55:43]free content buf [18:55:43]Sock 8.Close socket [18:55:43]Sock 8.Thread stoped [18:55:47]OFD Sender: No OFD packet to send [18:55:52]OFD Sender: No OFD packet to send [18:55:57]OFD Sender: No OFD packet to send [18:56:02]OFD Sender: No OFD packet to send [18:56:07]OFD Sender: No OFD packet to send [18:56:12]OFD Sender: No OFD packet to send [18:56:17]OFD Sender: No OFD packet to send [18:56:22]OFD Sender: No OFD packet to send [18:56:27]OFD Sender: No OFD packet to send [18:56:32]OFD Sender: No OFD packet to send [18:56:37]OFD Sender: No OFD packet to send [18:56:42]OFD Sender: No OFD packet to send [18:56:47]OFD Sender: No OFD packet to send [18:56:52]OFD Sender: No OFD packet to send [18:56:57]OFD Sender: No OFD packet to send [18:57:02]OFD Sender: No OFD packet to send [18:57:07]OFD Sender: No OFD packet to send [18:57:12]OFD Sender: No OFD packet to send [18:57:17]OFD Sender: No OFD packet to send [18:57:22]OFD Sender: No OFD packet to send [18:57:27]OFD Sender: No OFD packet to send [18:57:32]OFD Sender: No OFD packet to send [18:57:37]OFD Sender: No OFD packet to send [18:57:42]OFD Sender: No OFD packet to send [18:57:47]OFD Sender: No OFD packet to send [18:57:52]OFD Sender: No OFD packet to send [18:57:57]OFD Sender: No OFD packet to send [18:58:02]OFD Sender: No OFD packet to send [18:58:07]OFD Sender: No OFD packet to send [18:58:12]OFD Sender: No OFD packet to send [18:58:17]OFD Sender: No OFD packet to send [18:58:22]OFD Sender: No OFD packet to send [18:58:27]OFD Sender: No OFD packet to send [18:58:32]OFD Sender: No OFD packet to send [18:58:38]OFD Sender: No OFD packet to send [18:58:43]OFD Sender: No OFD packet to send [18:58:48]OFD Sender: No OFD packet to send [18:58:53]OFD Sender: No OFD packet to send [18:58:58]OFD Sender: No OFD packet to send [18:59:03]OFD Sender: No OFD packet to send [18:59:08]OFD Sender: No OFD packet to send [18:59:13]OFD Sender: No OFD packet to send [18:59:18]OFD Sender: No OFD packet to send [18:59:23]OFD Sender: No OFD packet to send [18:59:28]OFD Sender: No OFD packet to send [18:59:33]OFD Sender: No OFD packet to send [18:59:38]OFD Sender: No OFD packet to send [18:59:43]OFD Sender: No OFD packet to send [18:59:48]OFD Sender: No OFD packet to send [18:59:53]OFD Sender: No OFD packet to send [18:59:58]OFD Sender: No OFD packet to send [19:00:03]OFD Sender: No OFD packet to send [19:00:08]OFD Sender: No OFD packet to send [19:00:13]OFD Sender: No OFD packet to send [19:00:18]OFD Sender: No OFD packet to send [19:00:23]OFD Sender: No OFD packet to send [19:00:28]OFD Sender: No OFD packet to send [19:00:33]OFD Sender: No OFD packet to send [19:00:38]OFD Sender: No OFD packet to send [19:00:43]OFD Sender: No OFD packet to send [19:00:48]OFD Sender: No OFD packet to send [19:00:53]OFD Sender: No OFD packet to send [19:00:58]OFD Sender: No OFD packet to send [19:01:03]OFD Sender: No OFD packet to send [19:01:08]OFD Sender: No OFD packet to send [19:01:13]OFD Sender: No OFD packet to send [19:01:18]OFD Sender: No OFD packet to send [19:01:23]OFD Sender: No OFD packet to send [19:01:28]OFD Sender: No OFD packet to send [19:01:33]OFD Sender: No OFD packet to send [19:01:38]OFD Sender: No OFD packet to send [19:01:43]OFD Sender: No OFD packet to send [19:01:48]OFD Sender: No OFD packet to send [19:01:53]OFD Sender: No OFD packet to send [19:01:58]OFD Sender: No OFD packet to send [19:02:03]OFD Sender: No OFD packet to send [19:02:08]OFD Sender: No OFD packet to send [19:02:13]OFD Sender: No OFD packet to send [19:02:18]OFD Sender: No OFD packet to send [19:02:23]OFD Sender: No OFD packet to send [19:02:29]OFD Sender: No OFD packet to send [19:02:34]OFD Sender: No OFD packet to send [19:02:39]OFD Sender: No OFD packet to send [19:02:44]OFD Sender: No OFD packet to send [19:02:49]OFD Sender: No OFD packet to send [19:02:54]OFD Sender: No OFD packet to send [19:02:59]OFD Sender: No OFD packet to send [19:03:04]OFD Sender: No OFD packet to send [19:03:09]OFD Sender: No OFD packet to send [19:03:14]OFD Sender: No OFD packet to send [19:03:19]OFD Sender: No OFD packet to send [19:03:24]OFD Sender: No OFD packet to send [19:03:29]OFD Sender: No OFD packet to send [19:03:34]OFD Sender: No OFD packet to send [19:03:39]OFD Sender: No OFD packet to send [19:03:44]OFD Sender: No OFD packet to send [19:03:49]OFD Sender: No OFD packet to send [19:03:54]OFD Sender: No OFD packet to send [19:03:59]OFD Sender: No OFD packet to send [19:04:04]OFD Sender: No OFD packet to send [19:04:09]OFD Sender: No OFD packet to send [19:04:13]accept exits with 9 [19:04:13]New connection [19:04:13]New thread 3067157860 created [19:04:13]Thread 3067014500 joined [19:04:13]Waiting for new connection... [19:04:13] Sock 9.Parse request [19:04:13]Sock 9.Check first char [19:04:13]Sock 9.First char is OK [19:04:13]request: POST /json_proto HTTP/1.0 [19:04:13]Method: POST [19:04:13]URL: /json_proto [19:04:13]Method is POST - this is cgi request [19:04:13]url: /json_proto [19:04:13]query_string will be loaded in cgi processing [19:04:13]execute_cgi json_proto POST (null) [19:04:13]execute_cgi path=json_proto method=POST [19:04:13]POST find Content-Length [19:04:13]Host: 172.17.42.131:8080 [19:04:13]Content-Length: 688 [19:04:13]Content-Type: application/json [19:04:13] [19:04:13]POST finish read [19:04:13]Found Content-Length = 688 [19:04:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209930", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 51.820, "sum" : 4000.50, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 4000.00, "total" : 4000.00, "payments": [ { "type": 0, "sum" : 4000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:04:13]execute_script... [19:04: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)209930", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 51.820, "sum" : 4000.50, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 4000.00, "total" : 4000.00, "payments": [ { "type": 0, "sum" : 4000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:04:13]POST & json_proto [19:04:13]process_json_proto [19:04:13]json parsed OK: [19:04:13]protocol is kg_v1.0 [19:04:13]action value=close_receipt [19:04:13]process_action close_receipt [19:04:13]cmd_close_receipt [19:04:13]MH_GetDate [19:04:13]Write to MH i2c: F0 00 00 47 82 B8 [19:04:13]Write i2c OK [19:04:13]MH_I2C_Read... [19:04:13]Read from MH i2c: F0 [19:04:13]MH_I2C_Read... [19:04:13]Read from MH i2c: F0 09 00 [19:04:13]MH_I2C_Read... [19:04:13]Read from MH i2c: F0 09 00 47 82 00 B2 A5 16 67 A0 18 CA 66 7D [19:04:13]GetLastDocTimeStamp 1729536944 [19:04:13]current date 1729537458 [19:04:13]FM_GetShiftState [19:04:13]SAM_PROTO_GetShiftState [19:04:13]wFMCommunicate request_size=4 [19:04:13]MH_SAM_APDU [19:04:13]CAPDU: 80 13 01 00 [19:04:13]Write to MH i2c: E2 08 00 48 82 80 13 01 00 00 00 00 00 47 [19:04:13]Write i2c OK [19:04:13]MH_I2C_Read... [19:04:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:04:13]Read from MH i2c: E2 [19:04:13]MH_I2C_Read... [19:04:13]Read from MH i2c: E2 0E 00 [19:04:13]MH_I2C_Read... [19:04:13]Read from MH i2c: E2 0E 00 48 82 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 A6 [19:04:13]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [19:04:13]wFMCommunicate OK [19:04:13]SAM_PROTO_GetShiftState done [19:04:13]FM_GetShiftState done [19:04:13]opened in 1729469754 [19:04:13]opened+sec_in_day 1729556154 [19:04:13]quantity*price = 400050 [19:04:13]sum+1 = 400051 [19:04:13]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.50 ИТОГО: 4000.00 Внесено: 4000.00 СДАЧА: 0.00 НСП 1% : 35.40 НДС 12% : 424.83 Наличными: 4000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 342 21.10.2024 19:04 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 187878 ФПД: 17647809204253 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T190418&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187878&fm=17647809204253&tin=02508201610067®Number=0000000000100030&sum=400000 [19:04:14]StoreToDocumentArchive [19:04:14]shift 460 fd 187878 [19:04:14]save to /storage/0460/doc_00187878 [19:04:14]save last doc name /storage/0460/doc_00187878 to /storage/kkm_last_doc_name [19:04:14]save OK [19:04:14]Clear old archive folders... [19:04:14]ProcessDocumentItem done err = 0, tmpTLVsize=257 [19:04:14]tlvbuf is 0109A280 [19:04:14]SAM_PROTO_ClearQueue [19:04:14]wFMCommunicate request_size=4 [19:04:14]MH_SAM_APDU [19:04:14]CAPDU: 80 09 00 00 [19:04:14]Write to MH i2c: E2 08 00 55 82 80 09 00 00 00 00 00 00 49 [19:04:14]Write i2c OK [19:04:14]MH_I2C_Read... [19:04:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:04:14]Read from MH i2c: E2 [19:04:14]MH_I2C_Read... [19:04:14]Read from MH i2c: E2 03 00 [19:04:14]MH_I2C_Read... [19:04:14]Read from MH i2c: E2 03 00 55 82 00 90 00 4B [19:04:14]RAPDU: 90 00 [19:04:14]wFMCommunicate OK [19:04:14]SAM_PROTO_ClearQueue done [19:04:14]KKMCreateOFDPacket [19:04:14]OFDProtocolAddRootSTLVToBuf [19:04:14]FM_MakeSignedData [19:04:14]FM_MakeSignedData [19:04:14]SAM_PROTO_SignData [19:04:14]wFMCommunicate request_size=4 [19:04:14]MH_SAM_APDU [19:04:14]CAPDU: 80 0D 01 02 [19:04:14]Write to MH i2c: E2 08 00 56 82 80 0D 01 02 00 00 00 00 51 [19:04:14]Write i2c OK [19:04:14]MH_I2C_Read... [19:04:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:04:14]Read from MH i2c: E2 [19:04:14]MH_I2C_Read... [19:04:14]Read from MH i2c: E2 03 00 [19:04:14]MH_I2C_Read... [19:04:14]Read from MH i2c: E2 03 00 56 82 00 90 00 4C [19:04:14]RAPDU: 90 00 [19:04:14]wFMCommunicate OK [19:04:14]wFMCommunicate request_size=255 [19:04:14]MH_SAM_APDU [19:04: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 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 6C CA 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 B2 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 A5 00 00 00 00 07 04 06 00 80 1A 06 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 01 00 00 F4 03 04 00 B2 A5 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 E6 DD 02 [19:04:14]Write to MH i2c: E2 02 01 57 82 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 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 6C CA 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 B2 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 A5 00 00 00 00 07 04 06 00 80 1A 06 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 01 00 00 F4 03 04 00 B2 A5 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 E6 DD 02 00 00 90 [19:04:14]Write i2c OK [19:04:14]MH_I2C_Read... [19:04:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:04:15]Read from MH i2c: E2 [19:04:15]MH_I2C_Read... [19:04:15]Read from MH i2c: E2 03 00 [19:04:15]MH_I2C_Read... [19:04:15]Read from MH i2c: E2 03 00 57 82 00 90 00 4D [19:04:15]RAPDU: 90 00 [19:04:15]wFMCommunicate OK [19:04:15]wFMCommunicate request_size=16 [19:04:15]MH_SAM_APDU [19:04:15]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 10 0C F3 66 10 1D [19:04:15]Write to MH i2c: E2 13 00 58 82 80 0D 02 02 0B 00 00 35 04 06 00 10 0C F3 66 10 1D 00 00 4B [19:04:15]Write i2c OK [19:04:15]MH_I2C_Read... [19:04:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:04:15]Read from MH i2c: E2 [19:04:15]MH_I2C_Read... [19:04:15]Read from MH i2c: E2 03 00 [19:04:15]MH_I2C_Read... [19:04:15]Read from MH i2c: E2 03 00 58 82 00 90 00 4E [19:04:15]RAPDU: 90 00 [19:04:15]wFMCommunicate OK [19:04:15]wFMCommunicate request_size=4 [19:04:15]MH_SAM_APDU [19:04:15]CAPDU: 80 0D 03 02 [19:04:15]Write to MH i2c: E2 08 00 59 82 80 0D 03 02 00 00 00 00 56 [19:04:15]Write i2c OK [19:04:15]MH_I2C_Read... [19:04:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:04:15]Read from MH i2c: E2 [19:04:15]MH_I2C_Read... [19:04:15]Read from MH i2c: E2 0B 00 [19:04:15]MH_I2C_Read... [19:04:15]Read from MH i2c: E2 0B 00 59 82 00 D5 F6 D3 3E F5 3D 03 3A 90 00 A2 [19:04:15]RAPDU: D5 F6 D3 3E F5 3D 03 3A 90 00 [19:04:15]wFMCommunicate OK [19:04:15]SAM_PROTO_SignData done [19:04:15]FM_MakeSignedData done [19:04:15]CreateOFDProtocolMessage [19:04:15]wFMCommunicate request_size=4 [19:04:15]MH_SAM_APDU [19:04:15]CAPDU: 80 11 00 00 [19:04:15]Write to MH i2c: E2 08 00 5A 82 80 11 00 00 00 00 00 00 56 [19:04:15]Write i2c OK [19:04:15]MH_I2C_Read... [19:04:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:04:15]Read from MH i2c: E2 [19:04:15]MH_I2C_Read... [19:04:15]Read from MH i2c: E2 17 00 [19:04:15]MH_I2C_Read... [19:04:15]Read from MH i2c: E2 17 00 5A 82 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 A4 [19:04:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [19:04:15]wFMCommunicate OK [19:04:15]CreateOFDProtocolMessage done [19:04:15]OFDSenderStorePacket 187878 [19:04:15]StoreOFDPacket docnum=187878 [19:04:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 17 88 0D 01 7A 64 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 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 6C CA 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 B2 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 A5 00 00 00 00 07 04 06 00 80 1A 06 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 01 00 00 F4 03 04 00 B2 A5 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 E6 DD 02 00 35 04 06 00 10 0C F3 66 10 1D D5 F6 D3 3E F5 3D 03 3A [19:04:15]CheckFolder [19:04:15]dirname=/storage/ofd_packets [19:04:15]CheckFolder done [19:04:15]ProducePacketName [19:04:15]name=ofd_packets/00187878 [19:04:15]NVStorageSaveData ofd_packets/00187878 [19:04:15]File name is /storage/ofd_packets/00187878 [19:04:15]Write 307 bytes [19:04:15]NVStorageSaveData done [19:04:15]OFDSenderStorePacket done [19:04:15]KKMCreateOFDPacket done [19:04:15]NVStorageSaveData kkm_last_timestamp [19:04:15]File name is /storage/kkm_last_timestamp [19:04:15]Write 4 bytes [19:04:15]NVStorageSaveData done [19:04:15]ExternCall_PrintAddStr [19:04:15]wPrintStart [19:04:15]Write to MH i2c: 01 00 00 5B 82 DD [19:04:15]Write i2c OK [19:04:15]MH_I2C_Read... [19:04:15]Read from MH i2c: 01 [19:04:15]MH_I2C_Read... [19:04:15]Read from MH i2c: 01 07 00 [19:04:15]MH_I2C_Read... [19:04:15]Read from MH i2c: 01 07 00 5B 82 00 00 00 00 00 FF 0F F2 [19:04:15]RasterBufferAndPrint [19:04:15]line Счет N : (1)209930 [19:04:15]line ИНН: 02508201610067 [19:04:15]line Контрольно-Кассовый Чек [19:04:15]line ПРОДАЖА [19:04:15]line ТРК (МРК, ГНК) : 11 [19:04:15]line Товар: 2710194210 [19:04:15]line D-ENERGY ДТ-К-5 [19:04:15]line 51.820 * 77.20 [19:04:15]line = 4000.50 [19:04:15]line НДС 12% НСП 1% [19:04:15]line > о реализуемом товаре [19:04:15]line ОКРУГЛЕНИЕ: -0.50 [19:04:15]line ИТОГО: 4000.00 [19:04:15]line Внесено: 4000.00 [19:04:15]line СДАЧА: 0.00 [19:04:15]line НСП 1% : 35.40 [19:04:15]line НДС 12% : 424.83 [19:04:15]line Наличными: 4000.00 [19:04:15]line Безнал.: 0.00 [19:04:15]line Место: АЗС № 86 "Партнер Нефть" [19:04:15]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [19:04:15]line СНО: Общий режим [19:04:15]line Чек 342 21.10.2024 19:04 [19:04:15]line Смена: 460 ФФД: 1.0 [19:04:15]line ЗНМ: 0300000155 [19:04:15]line РНМ: 0000000000100030 [19:04:15]line Версия ККМ: 001 [19:04:15]line ФМ: 0000000000965340 [19:04:15]line ФД: 187878 [19:04:15]line ФПД: 17647809204253 [19:04:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T190418&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187878&fm=17647809204253&tin=02508201610067®Number=0000000000100030&sum=400000 [19:04:15]written 0, free lines is 4095 [19:04:15]OFD Sender: Processing packet 187878 [packets to send 1062, broken 1061] [19:04:15]ProducePacketName [19:04:15]name=ofd_packets/00187878 [19:04:15]OFD Sender: To server: pG, [19:04:15]CommunicateWithHost lk.salyk.kg:30040 [19:04:15]ConnectInit lk.salyk.kg [19:04:15]Connected sock=10 [19:04:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 17 88 0D 01 7A 64 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 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 6C CA 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 B2 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 A5 00 00 00 00 07 04 06 00 80 1A 06 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 01 00 00 F4 03 04 00 B2 A5 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 E6 DD 02 00 35 04 06 00 10 0C F3 66 10 1D D5 F6 D3 3E F5 3D 03 3A [19:04:15]Write to MH i2c: 01 00 00 86 82 08 [19:04:15]Write i2c OK [19:04:15]MH_I2C_Read... [19:04:15]Read from MH i2c: 01 [19:04:15]MH_I2C_Read... [19:04:15]Read from MH i2c: 01 07 00 [19:04:15]MH_I2C_Read... [19:04:15]Read from MH i2c: 01 07 00 86 82 00 00 00 00 00 62 0C 7D [19:04:15]RasterBufferAndPrint [19:04:15]line [19:04:15]line [19:04:15]line [19:04:15]line [19:04:15]line [19:04:15]written 0, free lines is 3173 [19:04:15]MH_Cut [19:04:15]Write to MH i2c: D1 01 00 8D 82 01 E1 [19:04:15]Write i2c OK [19:04:15]MH_I2C_Read... [19:04:15]Read from MH i2c: D1 [19:04:15]MH_I2C_Read... [19:04:15]Read from MH i2c: D1 01 00 [19:04:15]MH_I2C_Read... [19:04:15]Read from MH i2c: D1 01 00 8D 82 00 E0 [19:04:15]Write to MH i2c: 01 00 00 8E 82 10 [19:04:15]Write i2c OK [19:04:15]MH_I2C_Read... [19:04:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 79 66 47 00 6C 63 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 E6 DD 02 00 F4 03 04 00 A2 4F 16 67 B6 04 01 00 00 D1 56 11 C8 1B 32 0D C9 [19:04:15]CommunicateWithHost err = 0 [19:04:15]CheckOFDResponse [19:04:15]1017 (14) - 77093643461234 [19:04:15]1041 (16) - 0000000000965340 [19:04:15]1040 (4) - 187878 [19:04:15]1012 (4) - 21.10.2024 12:57 [19:04:15]1206 (1) - 0 [19:04:15]OFD Sender: Remove packet 187878 [19:04:15]ProducePacketName [19:04:15]name=ofd_packets/00187878 [19:04:15]NVStorageDeleteData [19:04:16]OFD Sender: No OFD packet to send [19:04:16]*** Cut start [19:04:16]*** Partial cut [19:04:16]*** CUTSNS_PIN = 1 [19:04:16]*** CUTSNS_PIN = 0 [19:04:17]*** Brake cut motor [19:04:17]Read from MH i2c: 01 [19:04:17]MH_I2C_Read... [19:04:17]*** Stop cut motor [19:04:17]*** Cut end [19:04:17]Read from MH i2c: 01 07 00 [19:04:17]MH_I2C_Read... [19:04:17]Read from MH i2c: 01 07 00 8E 82 00 00 00 00 00 FF 0F 25 [19:04:17]process_action close_receipt done [19:04:17]requested_data is exist [19:04:17]produce_requested_data [19:04:17]requested_item fm.sn is exist - process it [19:04:17]wFMCommunicate request_size=4 [19:04:17]MH_SAM_APDU [19:04:17]CAPDU: 80 11 00 00 [19:04:17]Write to MH i2c: E2 08 00 8F 82 80 11 00 00 00 00 00 00 8B [19:04:17]Write i2c OK [19:04:17]MH_I2C_Read... [19:04:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:04:17]Read from MH i2c: E2 [19:04:17]MH_I2C_Read... [19:04:17]Read from MH i2c: E2 17 00 [19:04:17]MH_I2C_Read... [19:04:17]Read from MH i2c: E2 17 00 8F 82 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 D9 [19:04:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [19:04:17]wFMCommunicate OK [19:04:17]requested_item fd.num is exist - process it [19:04:17]SAM_PROTO_GetFieldsCounters [19:04:17]wFMCommunicate request_size=4 [19:04:17]MH_SAM_APDU [19:04:17]CAPDU: 80 13 00 00 [19:04:17]Write to MH i2c: E2 08 00 90 82 80 13 00 00 00 00 00 00 8E [19:04:17]Write i2c OK [19:04:17]MH_I2C_Read... [19:04:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:04:17]Read from MH i2c: E2 [19:04:17]MH_I2C_Read... [19:04:17]Read from MH i2c: E2 62 00 [19:04:17]MH_I2C_Read... [19:04:17]Read from MH i2c: E2 62 00 90 82 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 E6 DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 56 01 00 00 5E 04 04 00 56 01 00 00 57 04 04 00 57 01 00 00 19 04 04 00 00 00 00 00 90 00 2C [19:04:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 E6 DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 56 01 00 00 5E 04 04 00 56 01 00 00 57 04 04 00 57 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:04:17]wFMCommunicate OK [19:04:17]SAM_PROTO_GetFieldsCounters done [19:04:17]requested_item shift.num is exist - process it [19:04:17]requested_item shift.opened is exist - process it [19:04:17]req_shift_opened [19:04:17]FM_GetShiftState [19:04:17]SAM_PROTO_GetShiftState [19:04:17]wFMCommunicate request_size=4 [19:04:17]MH_SAM_APDU [19:04:17]CAPDU: 80 13 01 00 [19:04:17]Write to MH i2c: E2 08 00 91 82 80 13 01 00 00 00 00 00 90 [19:04:17]Write i2c OK [19:04:17]MH_I2C_Read... [19:04:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:04:17]Read from MH i2c: E2 [19:04:17]MH_I2C_Read... [19:04:17]Read from MH i2c: E2 0E 00 [19:04:17]MH_I2C_Read... [19:04:17]Read from MH i2c: E2 0E 00 91 82 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 EF [19:04:17]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [19:04:17]wFMCommunicate OK [19:04:17]SAM_PROTO_GetShiftState done [19:04:17]FM_GetShiftState done [19:04:17]req_shift_opened done [19:04:17]requested_item shift.open_date is exist - process it [19:04:17]req_shift_open_date [19:04:17]req_shift_open_date done [19:04:17]produce_requested_data done [19:04:17]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187878,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [19:04:17]process_action_free close_receipt [19:04:17]json_value_free [19:04:17]json_value_free done [19:04:17]process_json_proto returns [19:04:17]Send response to host [19:04:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187878,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [19:04:17]free response buf [19:04:17]execute_script done [19:04:17]execute_script returns [19:04:17]free content buf [19:04:17]Sock 9.Close socket [19:04:17]Sock 9.Thread stoped [19:04:21]OFD Sender: No OFD packet to send [19:04:26]OFD Sender: No OFD packet to send [19:04:31]OFD Sender: No OFD packet to send [19:04:31]accept exits with 8 [19:04:31]New connection [19:04:31]New thread 3067014500 created [19:04:31]Thread 3067157860 joined [19:04:31]Waiting for new connection... [19:04:31] Sock 8.Parse request [19:04:31]Sock 8.Check first char [19:04:31]Sock 8.First char is OK [19:04:31]request: POST /json_proto HTTP/1.0 [19:04:31]Method: POST [19:04:31]URL: /json_proto [19:04:31]Method is POST - this is cgi request [19:04:31]url: /json_proto [19:04:31]query_string will be loaded in cgi processing [19:04:31]execute_cgi json_proto POST (null) [19:04:31]execute_cgi path=json_proto method=POST [19:04:31]POST find Content-Length [19:04:31]Host: 172.17.42.131:8080 [19:04:31]Content-Length: 682 [19:04:31]Content-Type: application/json [19:04:31] [19:04:31]POST finish read [19:04:31]Found Content-Length = 682 [19:04:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209931", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 63.520, "sum" : 4249.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 7000.00, "total" : 4249.00, "payments": [ { "type": 0, "sum" : 4249.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:04:31]execute_script... [19:04: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)209931", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 63.520, "sum" : 4249.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 7000.00, "total" : 4249.00, "payments": [ { "type": 0, "sum" : 4249.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:04:31]POST & json_proto [19:04:31]process_json_proto [19:04:31]json parsed OK: [19:04:31]protocol is kg_v1.0 [19:04:31]action value=close_receipt [19:04:31]process_action close_receipt [19:04:31]cmd_close_receipt [19:04:31]MH_GetDate [19:04:31]Write to MH i2c: F0 00 00 92 82 03 [19:04:31]Write i2c OK [19:04:31]MH_I2C_Read... [19:04:31]Read from MH i2c: F0 [19:04:31]MH_I2C_Read... [19:04:31]Read from MH i2c: F0 09 00 [19:04:31]MH_I2C_Read... [19:04:31]Read from MH i2c: F0 09 00 92 82 00 C5 A5 16 67 A0 18 CA 66 DB [19:04:31]GetLastDocTimeStamp 1729537458 [19:04:31]current date 1729537477 [19:04:31]FM_GetShiftState [19:04:31]SAM_PROTO_GetShiftState [19:04:31]wFMCommunicate request_size=4 [19:04:31]MH_SAM_APDU [19:04:31]CAPDU: 80 13 01 00 [19:04:31]Write to MH i2c: E2 08 00 93 82 80 13 01 00 00 00 00 00 92 [19:04:31]Write i2c OK [19:04:31]MH_I2C_Read... [19:04:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:04:31]Read from MH i2c: E2 [19:04:31]MH_I2C_Read... [19:04:31]Read from MH i2c: E2 0E 00 [19:04:31]MH_I2C_Read... [19:04:31]Read from MH i2c: E2 0E 00 93 82 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 F1 [19:04:31]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [19:04:31]wFMCommunicate OK [19:04:31]SAM_PROTO_GetShiftState done [19:04:31]FM_GetShiftState done [19:04:31]opened in 1729469754 [19:04:31]opened+sec_in_day 1729556154 [19:04:31]quantity*price = 424948 [19:04:31]sum+1 = 424950 [19:04:31]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.49 ИТОГО: 4249.00 Внесено: 7000.00 СДАЧА: 2751.00 НСП 1% : 37.61 НДС 12% : 451.27 Наличными: 4249.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 343 21.10.2024 19:04 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 187879 ФПД: 22804033431150 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T190437&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187879&fm=22804033431150&tin=02508201610067®Number=0000000000100030&sum=424900 [19:04:32]StoreToDocumentArchive [19:04:32]shift 460 fd 187879 [19:04:32]save to /storage/0460/doc_00187879 [19:04:32]save last doc name /storage/0460/doc_00187879 to /storage/kkm_last_doc_name [19:04:32]save OK [19:04:32]Clear old archive folders... [19:04:32]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:04:32]tlvbuf is 010EACD0 [19:04:32]SAM_PROTO_ClearQueue [19:04:32]wFMCommunicate request_size=4 [19:04:32]MH_SAM_APDU [19:04:32]CAPDU: 80 09 00 00 [19:04:32]Write to MH i2c: E2 08 00 A0 82 80 09 00 00 00 00 00 00 94 [19:04:32]Write i2c OK [19:04:32]MH_I2C_Read... [19:04:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:04:32]Read from MH i2c: E2 [19:04:32]MH_I2C_Read... [19:04:32]Read from MH i2c: E2 03 00 [19:04:32]MH_I2C_Read... [19:04:32]Read from MH i2c: E2 03 00 A0 82 00 90 00 96 [19:04:32]RAPDU: 90 00 [19:04:32]wFMCommunicate OK [19:04:32]SAM_PROTO_ClearQueue done [19:04:32]KKMCreateOFDPacket [19:04:32]OFDProtocolAddRootSTLVToBuf [19:04:32]FM_MakeSignedData [19:04:32]FM_MakeSignedData [19:04:32]SAM_PROTO_SignData [19:04:32]wFMCommunicate request_size=4 [19:04:32]MH_SAM_APDU [19:04:32]CAPDU: 80 0D 01 02 [19:04:32]Write to MH i2c: E2 08 00 A1 82 80 0D 01 02 00 00 00 00 9C [19:04:32]Write i2c OK [19:04:32]MH_I2C_Read... [19:04:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:04:33]Read from MH i2c: E2 [19:04:33]MH_I2C_Read... [19:04:33]Read from MH i2c: E2 03 00 [19:04:33]MH_I2C_Read... [19:04:33]Read from MH i2c: E2 03 00 A1 82 00 90 00 97 [19:04:33]RAPDU: 90 00 [19:04:33]wFMCommunicate OK [19:04:33]wFMCommunicate request_size=255 [19:04:33]MH_SAM_APDU [19:04: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 33 FF 03 08 00 03 20 F8 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F5 7B 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 7B 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 0E 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 47 B0 00 00 00 00 07 04 06 00 C4 7B 06 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 01 00 00 F4 03 04 00 C5 A5 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 E7 DD 02 00 35 04 06 00 14 [19:04:33]Write to MH i2c: E2 02 01 A2 82 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 20 F8 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F5 7B 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 7B 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 0E 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 47 B0 00 00 00 00 07 04 06 00 C4 7B 06 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 01 00 00 F4 03 04 00 C5 A5 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 E7 DD 02 00 35 04 06 00 14 00 00 7A [19:04:33]Write i2c OK [19:04:33]MH_I2C_Read... [19:04:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:04:33]Read from MH i2c: E2 [19:04:33]MH_I2C_Read... [19:04:33]Read from MH i2c: E2 03 00 [19:04:33]MH_I2C_Read... [19:04:33]Read from MH i2c: E2 03 00 A2 82 00 90 00 98 [19:04:33]RAPDU: 90 00 [19:04:33]wFMCommunicate OK [19:04:33]wFMCommunicate request_size=10 [19:04:33]MH_SAM_APDU [19:04:33]CAPDU: 80 0D 02 02 05 BD 7A 4F E6 6E [19:04:33]Write to MH i2c: E2 0D 00 A3 82 80 0D 02 02 05 00 BD 7A 4F E6 6E 00 00 83 [19:04:33]Write i2c OK [19:04:33]MH_I2C_Read... [19:04:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:04:33]Read from MH i2c: E2 [19:04:33]MH_I2C_Read... [19:04:33]Read from MH i2c: E2 03 00 [19:04:33]MH_I2C_Read... [19:04:33]Read from MH i2c: E2 03 00 A3 82 00 90 00 99 [19:04:33]RAPDU: 90 00 [19:04:33]wFMCommunicate OK [19:04:33]wFMCommunicate request_size=4 [19:04:33]MH_SAM_APDU [19:04:33]CAPDU: 80 0D 03 02 [19:04:33]Write to MH i2c: E2 08 00 A4 82 80 0D 03 02 00 00 00 00 A1 [19:04:33]Write i2c OK [19:04:33]MH_I2C_Read... [19:04:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:04:33]Read from MH i2c: E2 [19:04:33]MH_I2C_Read... [19:04:33]Read from MH i2c: E2 0B 00 [19:04:33]MH_I2C_Read... [19:04:33]Read from MH i2c: E2 0B 00 A4 82 00 1A 96 57 AE DA BE 49 C4 90 00 FC [19:04:33]RAPDU: 1A 96 57 AE DA BE 49 C4 90 00 [19:04:33]wFMCommunicate OK [19:04:33]SAM_PROTO_SignData done [19:04:33]FM_MakeSignedData done [19:04:33]CreateOFDProtocolMessage [19:04:33]wFMCommunicate request_size=4 [19:04:33]MH_SAM_APDU [19:04:33]CAPDU: 80 11 00 00 [19:04:33]Write to MH i2c: E2 08 00 A5 82 80 11 00 00 00 00 00 00 A1 [19:04:33]Write i2c OK [19:04:33]MH_I2C_Read... [19:04:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:04:33]Read from MH i2c: E2 [19:04:33]MH_I2C_Read... [19:04:33]Read from MH i2c: E2 17 00 [19:04:33]MH_I2C_Read... [19:04:33]Read from MH i2c: E2 17 00 A5 82 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 EF [19:04:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [19:04:33]wFMCommunicate OK [19:04:33]CreateOFDProtocolMessage done [19:04:33]OFDSenderStorePacket 187879 [19:04:33]StoreOFDPacket docnum=187879 [19:04:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 A8 BD 07 01 94 12 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 20 F8 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F5 7B 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 7B 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 0E 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 47 B0 00 00 00 00 07 04 06 00 C4 7B 06 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 01 00 00 F4 03 04 00 C5 A5 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 E7 DD 02 00 35 04 06 00 14 BD 7A 4F E6 6E 1A 96 57 AE DA BE 49 C4 [19:04:33]CheckFolder [19:04:33]dirname=/storage/ofd_packets [19:04:33]CheckFolder done [19:04:33]ProducePacketName [19:04:33]name=ofd_packets/00187879 [19:04:33]NVStorageSaveData ofd_packets/00187879 [19:04:33]File name is /storage/ofd_packets/00187879 [19:04:33]Write 301 bytes [19:04:33]NVStorageSaveData done [19:04:33]OFDSenderStorePacket done [19:04:33]KKMCreateOFDPacket done [19:04:33]NVStorageSaveData kkm_last_timestamp [19:04:33]File name is /storage/kkm_last_timestamp [19:04:33]Write 4 bytes [19:04:33]NVStorageSaveData done [19:04:33]ExternCall_PrintAddStr [19:04:33]wPrintStart [19:04:33]Write to MH i2c: 01 00 00 A6 82 28 [19:04:33]Write i2c OK [19:04:33]MH_I2C_Read... [19:04:33]Read from MH i2c: 01 [19:04:33]MH_I2C_Read... [19:04:33]Read from MH i2c: 01 07 00 [19:04:33]MH_I2C_Read... [19:04:33]Read from MH i2c: 01 07 00 A6 82 00 00 00 00 00 FF 0F 3D [19:04:33]RasterBufferAndPrint [19:04:33]line Счет N : (1)209931 [19:04:33]line ИНН: 02508201610067 [19:04:33]line Контрольно-Кассовый Чек [19:04:33]line ПРОДАЖА [19:04:33]line ТРК (МРК, ГНК) : 42 [19:04:33]line Товар: 2710124130 [19:04:33]line Аи-92-К-3 [19:04:33]line 63.520 * 66.90 [19:04:33]line = 4249.49 [19:04:33]line НДС 12% НСП 1% [19:04:33]line > о реализуемом товаре [19:04:33]line ОКРУГЛЕНИЕ: -0.49 [19:04:33]line ИТОГО: 4249.00 [19:04:33]line Внесено: 7000.00 [19:04:33]line СДАЧА: 2751.00 [19:04:33]line НСП 1% : 37.61 [19:04:33]line НДС 12% : 451.27 [19:04:33]line Наличными: 4249.00 [19:04:33]line Безнал.: 0.00 [19:04:33]line Место: АЗС № 86 "Партнер Нефть" [19:04:33]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [19:04:33]line СНО: Общий режим [19:04:33]line Чек 343 21.10.2024 19:04 [19:04:33]line Смена: 460 ФФД: 1.0 [19:04:33]line ЗНМ: 0300000155 [19:04:33]line РНМ: 0000000000100030 [19:04:33]line Версия ККМ: 001 [19:04:33]line ФМ: 0000000000965340 [19:04:33]line ФД: 187879 [19:04:33]line ФПД: 22804033431150 [19:04:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T190437&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187879&fm=22804033431150&tin=02508201610067®Number=0000000000100030&sum=424900 [19:04:33]written 0, free lines is 4095 [19:04:33]OFD Sender: Processing packet 187879 [packets to send 1062, broken 1061] [19:04:33]ProducePacketName [19:04:33]name=ofd_packets/00187879 [19:04:33]OFD Sender: To server: pG, [19:04:33]CommunicateWithHost lk.salyk.kg:30040 [19:04:33]ConnectInit lk.salyk.kg [19:04:33]Connected sock=10 [19:04:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 A8 BD 07 01 94 12 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 20 F8 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F5 7B 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 7B 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 0E 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 47 B0 00 00 00 00 07 04 06 00 C4 7B 06 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 01 00 00 F4 03 04 00 C5 A5 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 E7 DD 02 00 35 04 06 00 14 BD 7A 4F E6 6E 1A 96 57 AE DA BE 49 C4 [19:04:33]Write to MH i2c: 01 00 00 D1 82 53 [19:04:33]Write i2c OK [19:04:33]MH_I2C_Read... [19:04:33]Read from MH i2c: 01 [19:04:33]MH_I2C_Read... [19:04:33]Read from MH i2c: 01 07 00 [19:04:33]MH_I2C_Read... [19:04:33]Read from MH i2c: 01 07 00 D1 82 00 00 00 00 00 69 0C CF [19:04:33]RasterBufferAndPrint [19:04:33]line [19:04:33]line [19:04:33]line [19:04:33]line [19:04:33]line [19:04:33]written 0, free lines is 3181 [19:04:33]MH_Cut [19:04:33]Write to MH i2c: D1 01 00 D8 82 01 2C [19:04:33]Write i2c OK [19:04:33]MH_I2C_Read... [19:04:33]Read from MH i2c: D1 [19:04:33]MH_I2C_Read... [19:04:33]Read from MH i2c: D1 01 00 [19:04:33]MH_I2C_Read... [19:04:33]Read from MH i2c: D1 01 00 D8 82 00 2B [19:04:33]Write to MH i2c: 01 00 00 D9 82 5B [19:04:33]Write i2c OK [19:04:33]MH_I2C_Read... [19:04:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 CE 42 47 00 37 DA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 E7 DD 02 00 F4 03 04 00 B4 4F 16 67 B6 04 01 00 00 87 7C 39 55 C8 EF 53 CC [19:04:34]CommunicateWithHost err = 0 [19:04:34]CheckOFDResponse [19:04:34]1017 (14) - 77093643461234 [19:04:34]1041 (16) - 0000000000965340 [19:04:34]1040 (4) - 187879 [19:04:34]1012 (4) - 21.10.2024 12:57 [19:04:34]1206 (1) - 0 [19:04:34]OFD Sender: Remove packet 187879 [19:04:34]ProducePacketName [19:04:34]name=ofd_packets/00187879 [19:04:34]NVStorageDeleteData [19:04:35]OFD Sender: No OFD packet to send [19:04:35]*** Cut start [19:04:35]*** Partial cut [19:04:35]*** CUTSNS_PIN = 1 [19:04:35]*** CUTSNS_PIN = 0 [19:04:35]*** Brake cut motor [19:04:35]Read from MH i2c: 01 [19:04:35]MH_I2C_Read... [19:04:35]*** Stop cut motor [19:04:35]*** Cut end [19:04:35]Read from MH i2c: 01 07 00 [19:04:35]MH_I2C_Read... [19:04:35]Read from MH i2c: 01 07 00 D9 82 00 00 00 00 00 FF 0F 70 [19:04:35]process_action close_receipt done [19:04:35]requested_data is exist [19:04:35]produce_requested_data [19:04:35]requested_item fm.sn is exist - process it [19:04:35]wFMCommunicate request_size=4 [19:04:35]MH_SAM_APDU [19:04:35]CAPDU: 80 11 00 00 [19:04:35]Write to MH i2c: E2 08 00 DA 82 80 11 00 00 00 00 00 00 D6 [19:04:35]Write i2c OK [19:04:35]MH_I2C_Read... [19:04:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:04:35]Read from MH i2c: E2 [19:04:35]MH_I2C_Read... [19:04:35]Read from MH i2c: E2 17 00 [19:04:35]MH_I2C_Read... [19:04:35]Read from MH i2c: E2 17 00 DA 82 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 24 [19:04:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [19:04:35]wFMCommunicate OK [19:04:35]requested_item fd.num is exist - process it [19:04:35]SAM_PROTO_GetFieldsCounters [19:04:35]wFMCommunicate request_size=4 [19:04:35]MH_SAM_APDU [19:04:35]CAPDU: 80 13 00 00 [19:04:35]Write to MH i2c: E2 08 00 DB 82 80 13 00 00 00 00 00 00 D9 [19:04:35]Write i2c OK [19:04:35]MH_I2C_Read... [19:04:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:04:35]Read from MH i2c: E2 [19:04:35]MH_I2C_Read... [19:04:35]Read from MH i2c: E2 62 00 [19:04:35]MH_I2C_Read... [19:04:36]Read from MH i2c: E2 62 00 DB 82 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 E7 DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 57 01 00 00 5E 04 04 00 57 01 00 00 57 04 04 00 58 01 00 00 19 04 04 00 00 00 00 00 90 00 7B [19:04:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 E7 DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 57 01 00 00 5E 04 04 00 57 01 00 00 57 04 04 00 58 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:04:36]wFMCommunicate OK [19:04:36]SAM_PROTO_GetFieldsCounters done [19:04:36]requested_item shift.num is exist - process it [19:04:36]requested_item shift.opened is exist - process it [19:04:36]req_shift_opened [19:04:36]FM_GetShiftState [19:04:36]SAM_PROTO_GetShiftState [19:04:36]wFMCommunicate request_size=4 [19:04:36]MH_SAM_APDU [19:04:36]CAPDU: 80 13 01 00 [19:04:36]Write to MH i2c: E2 08 00 DC 82 80 13 01 00 00 00 00 00 DB [19:04:36]Write i2c OK [19:04:36]MH_I2C_Read... [19:04:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:04:36]Read from MH i2c: E2 [19:04:36]MH_I2C_Read... [19:04:36]Read from MH i2c: E2 0E 00 [19:04:36]MH_I2C_Read... [19:04:36]Read from MH i2c: E2 0E 00 DC 82 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 3A [19:04:36]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [19:04:36]wFMCommunicate OK [19:04:36]SAM_PROTO_GetShiftState done [19:04:36]FM_GetShiftState done [19:04:36]req_shift_opened done [19:04:36]requested_item shift.open_date is exist - process it [19:04:36]req_shift_open_date [19:04:36]req_shift_open_date done [19:04:36]produce_requested_data done [19:04:36]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187879,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [19:04:36]process_action_free close_receipt [19:04:36]json_value_free [19:04:36]json_value_free done [19:04:36]process_json_proto returns [19:04:36]Send response to host [19:04:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187879,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [19:04:36]free response buf [19:04:36]execute_script done [19:04:36]execute_script returns [19:04:36]free content buf [19:04:36]Sock 8.Close socket [19:04:36]Sock 8.Thread stoped [19:04:40]OFD Sender: No OFD packet to send [19:04:45]OFD Sender: No OFD packet to send [19:04:50]OFD Sender: No OFD packet to send [19:04:55]OFD Sender: No OFD packet to send [19:05:00]OFD Sender: No OFD packet to send [19:05:05]OFD Sender: No OFD packet to send [19:05:10]OFD Sender: No OFD packet to send [19:05:15]OFD Sender: No OFD packet to send [19:05:20]OFD Sender: No OFD packet to send [19:05:25]OFD Sender: No OFD packet to send [19:05:30]OFD Sender: No OFD packet to send [19:05:35]OFD Sender: No OFD packet to send [19:05:40]OFD Sender: No OFD packet to send [19:05:41]accept exits with 9 [19:05:41]New connection [19:05:41]New thread 3067157860 created [19:05:41]Thread 3067014500 joined [19:05:41]Waiting for new connection... [19:05:41] Sock 9.Parse request [19:05:41]Sock 9.Check first char [19:05:41]Sock 9.First char is OK [19:05:41]request: POST /json_proto HTTP/1.0 [19:05:41]Method: POST [19:05:41]URL: /json_proto [19:05:41]Method is POST - this is cgi request [19:05:41]url: /json_proto [19:05:41]query_string will be loaded in cgi processing [19:05:41]execute_cgi json_proto POST (null) [19:05:41]execute_cgi path=json_proto method=POST [19:05:41]POST find Content-Length [19:05:41]Host: 172.17.42.131:8080 [19:05:41]Content-Length: 688 [19:05:41]Content-Type: application/json [19:05:41] [19:05:41]POST finish read [19:05:41]Found Content-Length = 688 [19:05:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209932", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "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" ] } } [19:05:41]execute_script... [19:05:41]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209932", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "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" ] } } [19:05:41]POST & json_proto [19:05:41]process_json_proto [19:05:41]json parsed OK: [19:05:41]protocol is kg_v1.0 [19:05:41]action value=close_receipt [19:05:41]process_action close_receipt [19:05:41]cmd_close_receipt [19:05:41]MH_GetDate [19:05:41]Write to MH i2c: F0 00 00 DD 82 4E [19:05:41]Write i2c OK [19:05:41]MH_I2C_Read... [19:05:41]Read from MH i2c: F0 [19:05:41]MH_I2C_Read... [19:05:41]Read from MH i2c: F0 09 00 [19:05:41]MH_I2C_Read... [19:05:41]Read from MH i2c: F0 09 00 DD 82 00 0B A6 16 67 A0 18 CA 66 6D [19:05:41]GetLastDocTimeStamp 1729537477 [19:05:41]current date 1729537547 [19:05:41]FM_GetShiftState [19:05:41]SAM_PROTO_GetShiftState [19:05:41]wFMCommunicate request_size=4 [19:05:41]MH_SAM_APDU [19:05:41]CAPDU: 80 13 01 00 [19:05:41]Write to MH i2c: E2 08 00 DE 82 80 13 01 00 00 00 00 00 DD [19:05:41]Write i2c OK [19:05:41]MH_I2C_Read... [19:05:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:05:41]Read from MH i2c: E2 [19:05:41]MH_I2C_Read... [19:05:41]Read from MH i2c: E2 0E 00 [19:05:41]MH_I2C_Read... [19:05:41]Read from MH i2c: E2 0E 00 DE 82 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 3C [19:05:41]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [19:05:41]wFMCommunicate OK [19:05:41]SAM_PROTO_GetShiftState done [19:05:41]FM_GetShiftState done [19:05:41]opened in 1729469754 [19:05:41]opened+sec_in_day 1729556154 [19:05:41]quantity*price = 150076 [19:05:41]sum+1 = 150078 [19:05:41]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.77 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.37 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 344 21.10.2024 19:05 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 187880 ФПД: 96589265671507 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T190547&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187880&fm=96589265671507&tin=02508201610067®Number=0000000000100030&sum=150000 [19:05:43]StoreToDocumentArchive [19:05:43]shift 460 fd 187880 [19:05:43]save to /storage/0460/doc_00187880 [19:05:43]save last doc name /storage/0460/doc_00187880 to /storage/kkm_last_doc_name [19:05:43]save OK [19:05:43]Clear old archive folders... [19:05:43]ProcessDocumentItem done err = 0, tmpTLVsize=257 [19:05:43]tlvbuf is 011F8210 [19:05:43]SAM_PROTO_ClearQueue [19:05:43]wFMCommunicate request_size=4 [19:05:43]MH_SAM_APDU [19:05:43]CAPDU: 80 09 00 00 [19:05:43]Write to MH i2c: E2 08 00 EB 82 80 09 00 00 00 00 00 00 DF [19:05:43]Write i2c OK [19:05:43]MH_I2C_Read... [19:05:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:05:43]Read from MH i2c: E2 [19:05:43]MH_I2C_Read... [19:05:43]Read from MH i2c: E2 03 00 [19:05:43]MH_I2C_Read... [19:05:43]Read from MH i2c: E2 03 00 EB 82 00 90 00 E1 [19:05:43]RAPDU: 90 00 [19:05:43]wFMCommunicate OK [19:05:43]SAM_PROTO_ClearQueue done [19:05:43]KKMCreateOFDPacket [19:05:43]OFDProtocolAddRootSTLVToBuf [19:05:43]FM_MakeSignedData [19:05:43]FM_MakeSignedData [19:05:43]SAM_PROTO_SignData [19:05:43]wFMCommunicate request_size=4 [19:05:43]MH_SAM_APDU [19:05:43]CAPDU: 80 0D 01 02 [19:05:43]Write to MH i2c: E2 08 00 EC 82 80 0D 01 02 00 00 00 00 E7 [19:05:43]Write i2c OK [19:05:43]MH_I2C_Read... [19:05:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:05:43]Read from MH i2c: E2 [19:05:43]MH_I2C_Read... [19:05:43]Read from MH i2c: E2 03 00 [19:05:43]MH_I2C_Read... [19:05:43]Read from MH i2c: E2 03 00 EC 82 00 90 00 E2 [19:05:43]RAPDU: 90 00 [19:05:43]wFMCommunicate OK [19:05:43]wFMCommunicate request_size=255 [19:05:43]MH_SAM_APDU [19:05:43]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 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 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 58 01 00 00 F4 03 04 00 0B A6 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 E8 DD 02 [19:05:43]Write to MH i2c: E2 02 01 ED 82 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 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 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 58 01 00 00 F4 03 04 00 0B A6 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 E8 DD 02 00 00 B1 [19:05:43]Write i2c OK [19:05:43]MH_I2C_Read... [19:05:43]Read from MH i2c: E2 [19:05:43]MH_I2C_Read... [19:05:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:05:43]Read from MH i2c: E2 03 00 [19:05:43]MH_I2C_Read... [19:05:43]Read from MH i2c: E2 03 00 ED 82 00 90 00 E3 [19:05:43]RAPDU: 90 00 [19:05:43]wFMCommunicate OK [19:05:43]wFMCommunicate request_size=16 [19:05:43]MH_SAM_APDU [19:05:43]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 57 D8 F0 DE 95 53 [19:05:43]Write to MH i2c: E2 13 00 EE 82 80 0D 02 02 0B 00 00 35 04 06 00 57 D8 F0 DE 95 53 00 00 24 [19:05:43]Write i2c OK [19:05:43]MH_I2C_Read... [19:05:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:05:43]Read from MH i2c: E2 [19:05:43]MH_I2C_Read... [19:05:43]Read from MH i2c: E2 03 00 [19:05:43]MH_I2C_Read... [19:05:43]Read from MH i2c: E2 03 00 EE 82 00 90 00 E4 [19:05:43]RAPDU: 90 00 [19:05:43]wFMCommunicate OK [19:05:43]wFMCommunicate request_size=4 [19:05:43]MH_SAM_APDU [19:05:43]CAPDU: 80 0D 03 02 [19:05:43]Write to MH i2c: E2 08 00 EF 82 80 0D 03 02 00 00 00 00 EC [19:05:43]Write i2c OK [19:05:43]MH_I2C_Read... [19:05:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:05:43]Read from MH i2c: E2 [19:05:43]MH_I2C_Read... [19:05:43]Read from MH i2c: E2 0B 00 [19:05:43]MH_I2C_Read... [19:05:43]Read from MH i2c: E2 0B 00 EF 82 00 B6 28 3B 67 62 87 98 65 90 00 53 [19:05:43]RAPDU: B6 28 3B 67 62 87 98 65 90 00 [19:05:43]wFMCommunicate OK [19:05:43]SAM_PROTO_SignData done [19:05:43]FM_MakeSignedData done [19:05:43]CreateOFDProtocolMessage [19:05:43]wFMCommunicate request_size=4 [19:05:43]MH_SAM_APDU [19:05:43]CAPDU: 80 11 00 00 [19:05:43]Write to MH i2c: E2 08 00 F0 82 80 11 00 00 00 00 00 00 EC [19:05:43]Write i2c OK [19:05:43]MH_I2C_Read... [19:05:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:05:43]Read from MH i2c: E2 [19:05:43]MH_I2C_Read... [19:05:43]Read from MH i2c: E2 17 00 [19:05:43]MH_I2C_Read... [19:05:43]Read from MH i2c: E2 17 00 F0 82 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 3A [19:05:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [19:05:43]wFMCommunicate OK [19:05:43]CreateOFDProtocolMessage done [19:05:43]OFDSenderStorePacket 187880 [19:05:43]StoreOFDPacket docnum=187880 [19:05:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 9A 0F 0D 01 6F DF 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 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 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 58 01 00 00 F4 03 04 00 0B A6 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 E8 DD 02 00 35 04 06 00 57 D8 F0 DE 95 53 B6 28 3B 67 62 87 98 65 [19:05:43]CheckFolder [19:05:43]dirname=/storage/ofd_packets [19:05:43]CheckFolder done [19:05:43]ProducePacketName [19:05:43]name=ofd_packets/00187880 [19:05:43]NVStorageSaveData ofd_packets/00187880 [19:05:43]File name is /storage/ofd_packets/00187880 [19:05:43]Write 307 bytes [19:05:43]NVStorageSaveData done [19:05:43]OFDSenderStorePacket done [19:05:43]KKMCreateOFDPacket done [19:05:43]NVStorageSaveData kkm_last_timestamp [19:05:43]File name is /storage/kkm_last_timestamp [19:05:43]Write 4 bytes [19:05:43]NVStorageSaveData done [19:05:43]ExternCall_PrintAddStr [19:05:43]wPrintStart [19:05:43]Write to MH i2c: 01 00 00 F1 82 73 [19:05:43]Write i2c OK [19:05:43]MH_I2C_Read... [19:05:43]Read from MH i2c: 01 [19:05:43]MH_I2C_Read... [19:05:43]Read from MH i2c: 01 07 00 [19:05:43]MH_I2C_Read... [19:05:43]Read from MH i2c: 01 07 00 F1 82 00 00 00 00 00 FF 0F 88 [19:05:43]RasterBufferAndPrint [19:05:43]line Счет N : (1)209932 [19:05:43]line ИНН: 02508201610067 [19:05:43]line Контрольно-Кассовый Чек [19:05:43]line ПРОДАЖА [19:05:43]line ТРК (МРК, ГНК) : 31 [19:05:43]line Товар: 2710194210 [19:05:43]line D-ENERGY ДТ-К-5 [19:05:43]line 19.440 * 77.20 [19:05:43]line = 1500.77 [19:05:43]line НДС 12% НСП 1% [19:05:43]line > о реализуемом товаре [19:05:43]line ОКРУГЛЕНИЕ: -0.77 [19:05:43]line ИТОГО: 1500.00 [19:05:43]line Внесено: 1500.00 [19:05:43]line СДАЧА: 0.00 [19:05:43]line НСП 1% : 13.28 [19:05:43]line НДС 12% : 159.37 [19:05:43]line Наличными: 1500.00 [19:05:43]line Безнал.: 0.00 [19:05:43]line Место: АЗС № 86 "Партнер Нефть" [19:05:43]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [19:05:43]line СНО: Общий режим [19:05:43]line Чек 344 21.10.2024 19:05 [19:05:43]line Смена: 460 ФФД: 1.0 [19:05:43]line ЗНМ: 0300000155 [19:05:43]line РНМ: 0000000000100030 [19:05:43]line Версия ККМ: 001 [19:05:43]line ФМ: 0000000000965340 [19:05:43]line ФД: 187880 [19:05:43]line ФПД: 96589265671507 [19:05:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T190547&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187880&fm=96589265671507&tin=02508201610067®Number=0000000000100030&sum=150000 [19:05:43]written 0, free lines is 4095 [19:05:43]OFD Sender: Processing packet 187880 [packets to send 1062, broken 1061] [19:05:43]ProducePacketName [19:05:43]name=ofd_packets/00187880 [19:05:43]OFD Sender: To server: pG, [19:05:43]CommunicateWithHost lk.salyk.kg:30040 [19:05:43]ConnectInit lk.salyk.kg [19:05:44]Connected sock=10 [19:05:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 9A 0F 0D 01 6F DF 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 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 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 58 01 00 00 F4 03 04 00 0B A6 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 E8 DD 02 00 35 04 06 00 57 D8 F0 DE 95 53 B6 28 3B 67 62 87 98 65 [19:05:44]Write to MH i2c: 01 00 00 1C 83 9F [19:05:44]Write i2c OK [19:05:44]MH_I2C_Read... [19:05:44]Read from MH i2c: 01 [19:05:44]MH_I2C_Read... [19:05:44]Read from MH i2c: 01 07 00 [19:05:44]MH_I2C_Read... [19:05:44]Read from MH i2c: 01 07 00 1C 83 00 00 00 00 00 6A 0C 1C [19:05:44]RasterBufferAndPrint [19:05:44]line [19:05:44]line [19:05:44]line [19:05:44]line [19:05:44]line [19:05:44]written 0, free lines is 3181 [19:05:44]MH_Cut [19:05:44]Write to MH i2c: D1 01 00 23 83 01 78 [19:05:44]Write i2c OK [19:05:44]MH_I2C_Read... [19:05:44]Read from MH i2c: D1 [19:05:44]MH_I2C_Read... [19:05:44]Read from MH i2c: D1 01 00 [19:05:44]MH_I2C_Read... [19:05:44]Read from MH i2c: D1 01 00 23 83 00 77 [19:05:44]Write to MH i2c: 01 00 00 24 83 A7 [19:05:44]Write i2c OK [19:05:44]MH_I2C_Read... [19:05:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 25 C9 47 00 99 9B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 E8 DD 02 00 F4 03 04 00 FA 4F 16 67 B6 04 01 00 00 BB 56 EF 81 FF AD 3D 52 [19:05:44]CommunicateWithHost err = 0 [19:05:44]CheckOFDResponse [19:05:44]1017 (14) - 77093643461234 [19:05:44]1041 (16) - 0000000000965340 [19:05:44]1040 (4) - 187880 [19:05:44]1012 (4) - 21.10.2024 12:58 [19:05:44]1206 (1) - 0 [19:05:44]OFD Sender: Remove packet 187880 [19:05:44]ProducePacketName [19:05:44]name=ofd_packets/00187880 [19:05:44]NVStorageDeleteData [19:05:44]OFD Sender: No OFD packet to send [19:05:45]*** Cut start [19:05:45]*** Partial cut [19:05:45]*** CUTSNS_PIN = 1 [19:05:45]*** CUTSNS_PIN = 0 [19:05:45]*** Brake cut motor [19:05:45]Read from MH i2c: 01 [19:05:45]MH_I2C_Read... [19:05:45]*** Stop cut motor [19:05:45]*** Cut end [19:05:45]Read from MH i2c: 01 07 00 [19:05:45]MH_I2C_Read... [19:05:45]Read from MH i2c: 01 07 00 24 83 00 00 00 00 00 FF 0F BC [19:05:45]process_action close_receipt done [19:05:45]requested_data is exist [19:05:45]produce_requested_data [19:05:45]requested_item fm.sn is exist - process it [19:05:45]wFMCommunicate request_size=4 [19:05:45]MH_SAM_APDU [19:05:45]CAPDU: 80 11 00 00 [19:05:45]Write to MH i2c: E2 08 00 25 83 80 11 00 00 00 00 00 00 22 [19:05:45]Write i2c OK [19:05:45]MH_I2C_Read... [19:05:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:05:45]Read from MH i2c: E2 [19:05:45]MH_I2C_Read... [19:05:45]Read from MH i2c: E2 17 00 [19:05:45]MH_I2C_Read... [19:05:45]Read from MH i2c: E2 17 00 25 83 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 70 [19:05:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [19:05:45]wFMCommunicate OK [19:05:45]requested_item fd.num is exist - process it [19:05:45]SAM_PROTO_GetFieldsCounters [19:05:45]wFMCommunicate request_size=4 [19:05:45]MH_SAM_APDU [19:05:45]CAPDU: 80 13 00 00 [19:05:45]Write to MH i2c: E2 08 00 26 83 80 13 00 00 00 00 00 00 25 [19:05:45]Write i2c OK [19:05:45]MH_I2C_Read... [19:05:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:05:46]Read from MH i2c: E2 [19:05:46]MH_I2C_Read... [19:05:46]Read from MH i2c: E2 62 00 [19:05:46]MH_I2C_Read... [19:05:46]Read from MH i2c: E2 62 00 26 83 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 E8 DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 58 01 00 00 5E 04 04 00 58 01 00 00 57 04 04 00 59 01 00 00 19 04 04 00 00 00 00 00 90 00 CB [19:05:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 E8 DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 58 01 00 00 5E 04 04 00 58 01 00 00 57 04 04 00 59 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:05:46]wFMCommunicate OK [19:05:46]SAM_PROTO_GetFieldsCounters done [19:05:46]requested_item shift.num is exist - process it [19:05:46]requested_item shift.opened is exist - process it [19:05:46]req_shift_opened [19:05:46]FM_GetShiftState [19:05:46]SAM_PROTO_GetShiftState [19:05:46]wFMCommunicate request_size=4 [19:05:46]MH_SAM_APDU [19:05:46]CAPDU: 80 13 01 00 [19:05:46]Write to MH i2c: E2 08 00 27 83 80 13 01 00 00 00 00 00 27 [19:05:46]Write i2c OK [19:05:46]MH_I2C_Read... [19:05:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:05:46]Read from MH i2c: E2 [19:05:46]MH_I2C_Read... [19:05:46]Read from MH i2c: E2 0E 00 [19:05:46]MH_I2C_Read... [19:05:46]Read from MH i2c: E2 0E 00 27 83 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 86 [19:05:46]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [19:05:46]wFMCommunicate OK [19:05:46]SAM_PROTO_GetShiftState done [19:05:46]FM_GetShiftState done [19:05:46]req_shift_opened done [19:05:46]requested_item shift.open_date is exist - process it [19:05:46]req_shift_open_date [19:05:46]req_shift_open_date done [19:05:46]produce_requested_data done [19:05:46]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187880,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [19:05:46]process_action_free close_receipt [19:05:46]json_value_free [19:05:46]json_value_free done [19:05:46]process_json_proto returns [19:05:46]Send response to host [19:05:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187880,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [19:05:46]free response buf [19:05:46]execute_script done [19:05:46]execute_script returns [19:05:46]free content buf [19:05:46]Sock 9.Close socket [19:05:46]Sock 9.Thread stoped [19:05:49]OFD Sender: No OFD packet to send [19:05:54]OFD Sender: No OFD packet to send [19:05:59]OFD Sender: No OFD packet to send [19:06:04]OFD Sender: No OFD packet to send [19:06:09]OFD Sender: No OFD packet to send [19:06:14]OFD Sender: No OFD packet to send [19:06:20]OFD Sender: No OFD packet to send [19:06:25]OFD Sender: No OFD packet to send [19:06:30]OFD Sender: No OFD packet to send [19:06:35]OFD Sender: No OFD packet to send [19:06:40]OFD Sender: No OFD packet to send [19:06:45]OFD Sender: No OFD packet to send [19:06:50]OFD Sender: No OFD packet to send [19:06:55]OFD Sender: No OFD packet to send [19:07:00]OFD Sender: No OFD packet to send [19:07:05]OFD Sender: No OFD packet to send [19:07:10]OFD Sender: No OFD packet to send [19:07:15]OFD Sender: No OFD packet to send [19:07:20]OFD Sender: No OFD packet to send [19:07:25]OFD Sender: No OFD packet to send [19:07:30]OFD Sender: No OFD packet to send [19:07:35]OFD Sender: No OFD packet to send [19:07:40]OFD Sender: No OFD packet to send [19:07:45]OFD Sender: No OFD packet to send [19:07:50]OFD Sender: No OFD packet to send [19:07:55]OFD Sender: No OFD packet to send [19:08:00]OFD Sender: No OFD packet to send [19:08:05]OFD Sender: No OFD packet to send [19:08:10]OFD Sender: No OFD packet to send [19:08:15]OFD Sender: No OFD packet to send [19:08:20]OFD Sender: No OFD packet to send [19:08:25]OFD Sender: No OFD packet to send [19:08:30]OFD Sender: No OFD packet to send [19:08:31]accept exits with 8 [19:08:31]New connection [19:08:31]New thread 3067014500 created [19:08:31]Thread 3067157860 joined [19:08:31]Waiting for new connection... [19:08:31] Sock 8.Parse request [19:08:31]Sock 8.Check first char [19:08:31]Sock 8.First char is OK [19:08:31]request: POST /json_proto HTTP/1.0 [19:08:31]Method: POST [19:08:31]URL: /json_proto [19:08:31]Method is POST - this is cgi request [19:08:31]url: /json_proto [19:08:31]query_string will be loaded in cgi processing [19:08:31]execute_cgi json_proto POST (null) [19:08:31]execute_cgi path=json_proto method=POST [19:08:31]POST find Content-Length [19:08:31]Host: 172.17.42.131:8080 [19:08:31]Content-Length: 682 [19:08:31]Content-Type: application/json [19:08:31] [19:08:31]POST finish read [19:08:31]Found Content-Length = 682 [19:08:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209933", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 26.960, "sum" : 2000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:08:31]execute_script... [19:08: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)209933", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 26.960, "sum" : 2000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:08:31]POST & json_proto [19:08:31]process_json_proto [19:08:31]json parsed OK: [19:08:31]protocol is kg_v1.0 [19:08:31]action value=close_receipt [19:08:31]process_action close_receipt [19:08:31]cmd_close_receipt [19:08:31]MH_GetDate [19:08:31]Write to MH i2c: F0 00 00 28 83 9A [19:08:31]Write i2c OK [19:08:31]MH_I2C_Read... [19:08:31]Read from MH i2c: F0 [19:08:31]MH_I2C_Read... [19:08:31]Read from MH i2c: F0 09 00 [19:08:31]MH_I2C_Read... [19:08:31]Read from MH i2c: F0 09 00 28 83 00 B5 A6 16 67 A0 18 CA 66 63 [19:08:31]GetLastDocTimeStamp 1729537547 [19:08:31]current date 1729537717 [19:08:31]FM_GetShiftState [19:08:31]SAM_PROTO_GetShiftState [19:08:31]wFMCommunicate request_size=4 [19:08:31]MH_SAM_APDU [19:08:31]CAPDU: 80 13 01 00 [19:08:31]Write to MH i2c: E2 08 00 29 83 80 13 01 00 00 00 00 00 29 [19:08:31]Write i2c OK [19:08:31]MH_I2C_Read... [19:08:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:08:32]Read from MH i2c: E2 [19:08:32]MH_I2C_Read... [19:08:32]Read from MH i2c: E2 0E 00 [19:08:32]MH_I2C_Read... [19:08:32]Read from MH i2c: E2 0E 00 29 83 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 88 [19:08:32]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [19:08:32]wFMCommunicate OK [19:08:32]SAM_PROTO_GetShiftState done [19:08:32]FM_GetShiftState done [19:08:32]opened in 1729469754 [19:08:32]opened+sec_in_day 1729556154 [19:08:32]quantity*price = 200043 [19:08:32]sum+1 = 200044 [19:08:32]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.43 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.43 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 345 21.10.2024 19:08 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 187881 ФПД: 12867139252752 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T190837&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187881&fm=12867139252752&tin=02508201610067®Number=0000000000100030&sum=200000 [19:08:33]StoreToDocumentArchive [19:08:33]shift 460 fd 187881 [19:08:33]save to /storage/0460/doc_00187881 [19:08:33]save last doc name /storage/0460/doc_00187881 to /storage/kkm_last_doc_name [19:08:33]save OK [19:08:33]Clear old archive folders... [19:08:33]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:08:33]tlvbuf is 0116FCA0 [19:08:33]SAM_PROTO_ClearQueue [19:08:33]wFMCommunicate request_size=4 [19:08:33]MH_SAM_APDU [19:08:33]CAPDU: 80 09 00 00 [19:08:33]Write to MH i2c: E2 08 00 36 83 80 09 00 00 00 00 00 00 2B [19:08:33]Write i2c OK [19:08:33]MH_I2C_Read... [19:08:33]Read from MH i2c: E2 [19:08:33]MH_I2C_Read... [19:08:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:08:33]Read from MH i2c: E2 03 00 [19:08:33]MH_I2C_Read... [19:08:33]Read from MH i2c: E2 03 00 36 83 00 90 00 2D [19:08:33]RAPDU: 90 00 [19:08:33]wFMCommunicate OK [19:08:33]SAM_PROTO_ClearQueue done [19:08:33]KKMCreateOFDPacket [19:08:33]OFDProtocolAddRootSTLVToBuf [19:08:33]FM_MakeSignedData [19:08:33]FM_MakeSignedData [19:08:33]SAM_PROTO_SignData [19:08:33]wFMCommunicate request_size=4 [19:08:33]MH_SAM_APDU [19:08:33]CAPDU: 80 0D 01 02 [19:08:33]Write to MH i2c: E2 08 00 37 83 80 0D 01 02 00 00 00 00 33 [19:08:33]Write i2c OK [19:08:33]MH_I2C_Read... [19:08:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:08:33]Read from MH i2c: E2 [19:08:33]MH_I2C_Read... [19:08:33]Read from MH i2c: E2 03 00 [19:08:33]MH_I2C_Read... [19:08:33]Read from MH i2c: E2 03 00 37 83 00 90 00 2E [19:08:33]RAPDU: 90 00 [19:08:33]wFMCommunicate OK [19:08:33]wFMCommunicate request_size=255 [19:08:33]MH_SAM_APDU [19:08:33]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 01 00 00 F4 03 04 00 B5 A6 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 E9 DD 02 00 35 04 06 00 0B [19:08:33]Write to MH i2c: E2 02 01 38 83 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 01 00 00 F4 03 04 00 B5 A6 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 E9 DD 02 00 35 04 06 00 0B 00 00 20 [19:08:33]Write i2c OK [19:08:33]MH_I2C_Read... [19:08:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:08:33]Read from MH i2c: E2 [19:08:33]MH_I2C_Read... [19:08:33]Read from MH i2c: E2 03 00 [19:08:33]MH_I2C_Read... [19:08:33]Read from MH i2c: E2 03 00 38 83 00 90 00 2F [19:08:33]RAPDU: 90 00 [19:08:33]wFMCommunicate OK [19:08:33]wFMCommunicate request_size=10 [19:08:33]MH_SAM_APDU [19:08:33]CAPDU: 80 0D 02 02 05 B3 DD 43 B2 10 [19:08:33]Write to MH i2c: E2 0D 00 39 83 80 0D 02 02 05 00 B3 DD 43 B2 10 00 00 D5 [19:08:33]Write i2c OK [19:08:33]MH_I2C_Read... [19:08:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:08:33]Read from MH i2c: E2 [19:08:33]MH_I2C_Read... [19:08:33]Read from MH i2c: E2 03 00 [19:08:33]MH_I2C_Read... [19:08:33]Read from MH i2c: E2 03 00 39 83 00 90 00 30 [19:08:33]RAPDU: 90 00 [19:08:33]wFMCommunicate OK [19:08:33]wFMCommunicate request_size=4 [19:08:33]MH_SAM_APDU [19:08:33]CAPDU: 80 0D 03 02 [19:08:33]Write to MH i2c: E2 08 00 3A 83 80 0D 03 02 00 00 00 00 38 [19:08:33]Write i2c OK [19:08:33]MH_I2C_Read... [19:08:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:08:33]Read from MH i2c: E2 [19:08:33]MH_I2C_Read... [19:08:33]Read from MH i2c: E2 0B 00 [19:08:33]MH_I2C_Read... [19:08:33]Read from MH i2c: E2 0B 00 3A 83 00 50 69 F2 0B EB 6C 13 10 90 00 69 [19:08:33]RAPDU: 50 69 F2 0B EB 6C 13 10 90 00 [19:08:33]wFMCommunicate OK [19:08:33]SAM_PROTO_SignData done [19:08:33]FM_MakeSignedData done [19:08:33]CreateOFDProtocolMessage [19:08:33]wFMCommunicate request_size=4 [19:08:33]MH_SAM_APDU [19:08:33]CAPDU: 80 11 00 00 [19:08:33]Write to MH i2c: E2 08 00 3B 83 80 11 00 00 00 00 00 00 38 [19:08:33]Write i2c OK [19:08:33]MH_I2C_Read... [19:08:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:08:33]Read from MH i2c: E2 [19:08:33]MH_I2C_Read... [19:08:33]Read from MH i2c: E2 17 00 [19:08:33]MH_I2C_Read... [19:08:33]Read from MH i2c: E2 17 00 3B 83 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 86 [19:08:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [19:08:33]wFMCommunicate OK [19:08:33]CreateOFDProtocolMessage done [19:08:33]OFDSenderStorePacket 187881 [19:08:33]StoreOFDPacket docnum=187881 [19:08:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 62 7B 07 01 C9 D5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 01 00 00 F4 03 04 00 B5 A6 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 E9 DD 02 00 35 04 06 00 0B B3 DD 43 B2 10 50 69 F2 0B EB 6C 13 10 [19:08:33]CheckFolder [19:08:33]dirname=/storage/ofd_packets [19:08:33]CheckFolder done [19:08:33]ProducePacketName [19:08:33]name=ofd_packets/00187881 [19:08:33]NVStorageSaveData ofd_packets/00187881 [19:08:33]File name is /storage/ofd_packets/00187881 [19:08:33]Write 301 bytes [19:08:33]NVStorageSaveData done [19:08:33]OFDSenderStorePacket done [19:08:33]KKMCreateOFDPacket done [19:08:33]NVStorageSaveData kkm_last_timestamp [19:08:33]File name is /storage/kkm_last_timestamp [19:08:33]Write 4 bytes [19:08:33]NVStorageSaveData done [19:08:33]ExternCall_PrintAddStr [19:08:33]wPrintStart [19:08:33]Write to MH i2c: 01 00 00 3C 83 BF [19:08:33]Write i2c OK [19:08:33]MH_I2C_Read... [19:08:33]Read from MH i2c: 01 [19:08:33]MH_I2C_Read... [19:08:33]Read from MH i2c: 01 07 00 [19:08:33]MH_I2C_Read... [19:08:33]Read from MH i2c: 01 07 00 3C 83 00 00 00 00 00 FF 0F D4 [19:08:33]RasterBufferAndPrint [19:08:33]line Счет N : (1)209933 [19:08:33]line ИНН: 02508201610067 [19:08:33]line Контрольно-Кассовый Чек [19:08:33]line ПРОДАЖА [19:08:33]line ТРК (МРК, ГНК) : 43 [19:08:33]line Товар: 2710124500 [19:08:33]line Аи-95-К-3 [19:08:33]line 26.960 * 74.20 [19:08:33]line = 2000.43 [19:08:33]line НДС 12% НСП 1% [19:08:33]line > о реализуемом товаре [19:08:33]line ОКРУГЛЕНИЕ: -0.43 [19:08:33]line ИТОГО: 2000.00 [19:08:33]line Внесено: 2000.00 [19:08:33]line СДАЧА: 0.00 [19:08:33]line НСП 1% : 17.70 [19:08:33]line НДС 12% : 212.43 [19:08:33]line Наличными: 2000.00 [19:08:33]line Безнал.: 0.00 [19:08:33]line Место: АЗС № 86 "Партнер Нефть" [19:08:33]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [19:08:33]line СНО: Общий режим [19:08:33]line Чек 345 21.10.2024 19:08 [19:08:33]line Смена: 460 ФФД: 1.0 [19:08:33]line ЗНМ: 0300000155 [19:08:33]line РНМ: 0000000000100030 [19:08:33]line Версия ККМ: 001 [19:08:33]line ФМ: 0000000000965340 [19:08:33]line ФД: 187881 [19:08:33]line ФПД: 12867139252752 [19:08:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T190837&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187881&fm=12867139252752&tin=02508201610067®Number=0000000000100030&sum=200000 [19:08:34]OFD Sender: Processing packet 187881 [packets to send 1062, broken 1061] [19:08:34]ProducePacketName [19:08:34]name=ofd_packets/00187881 [19:08:34]OFD Sender: To server: pG, [19:08:34]CommunicateWithHost lk.salyk.kg:30040 [19:08:34]ConnectInit lk.salyk.kg [19:08:34]written 0, free lines is 4095 [19:08:34]Connected sock=10 [19:08:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 62 7B 07 01 C9 D5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 01 00 00 F4 03 04 00 B5 A6 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 E9 DD 02 00 35 04 06 00 0B B3 DD 43 B2 10 50 69 F2 0B EB 6C 13 10 [19:08:34]Write to MH i2c: 01 00 00 67 83 EA [19:08:34]Write i2c OK [19:08:34]MH_I2C_Read... [19:08:34]Read from MH i2c: 01 [19:08:34]MH_I2C_Read... [19:08:34]Read from MH i2c: 01 07 00 [19:08:34]MH_I2C_Read... [19:08:34]Read from MH i2c: 01 07 00 67 83 00 00 00 00 00 6C 0C 69 [19:08:34]RasterBufferAndPrint [19:08:34]line [19:08:34]line [19:08:34]line [19:08:34]line [19:08:34]line [19:08:34]written 0, free lines is 3183 [19:08:34]MH_Cut [19:08:34]Write to MH i2c: D1 01 00 6E 83 01 C3 [19:08:34]Write i2c OK [19:08:34]MH_I2C_Read... [19:08:34]Read from MH i2c: D1 [19:08:34]MH_I2C_Read... [19:08:34]Read from MH i2c: D1 01 00 [19:08:34]MH_I2C_Read... [19:08:34]Read from MH i2c: D1 01 00 6E 83 00 C2 [19:08:34]Write to MH i2c: 01 00 00 6F 83 F2 [19:08:34]Write i2c OK [19:08:34]MH_I2C_Read... [19:08:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 61 87 47 00 4B FA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 E9 DD 02 00 F4 03 04 00 A4 50 16 67 B6 04 01 00 00 F0 B9 9C 49 64 EB ED 68 [19:08:34]CommunicateWithHost err = 0 [19:08:34]CheckOFDResponse [19:08:34]1017 (14) - 77093643461234 [19:08:34]1041 (16) - 0000000000965340 [19:08:34]1040 (4) - 187881 [19:08:34]1012 (4) - 21.10.2024 13:01 [19:08:34]1206 (1) - 0 [19:08:34]OFD Sender: Remove packet 187881 [19:08:34]ProducePacketName [19:08:34]name=ofd_packets/00187881 [19:08:34]NVStorageDeleteData [19:08:35]OFD Sender: No OFD packet to send [19:08:35]*** Cut start [19:08:35]*** Partial cut [19:08:35]*** CUTSNS_PIN = 1 [19:08:35]*** CUTSNS_PIN = 0 [19:08:35]*** Brake cut motor [19:08:36]Read from MH i2c: 01 [19:08:36]MH_I2C_Read... [19:08:36]*** Stop cut motor [19:08:36]*** Cut end [19:08:36]Read from MH i2c: 01 07 00 [19:08:36]MH_I2C_Read... [19:08:36]Read from MH i2c: 01 07 00 6F 83 00 00 00 00 00 FF 0F 07 [19:08:36]process_action close_receipt done [19:08:36]requested_data is exist [19:08:36]produce_requested_data [19:08:36]requested_item fm.sn is exist - process it [19:08:36]wFMCommunicate request_size=4 [19:08:36]MH_SAM_APDU [19:08:36]CAPDU: 80 11 00 00 [19:08:36]Write to MH i2c: E2 08 00 70 83 80 11 00 00 00 00 00 00 6D [19:08:36]Write i2c OK [19:08:36]MH_I2C_Read... [19:08:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:08:36]Read from MH i2c: E2 [19:08:36]MH_I2C_Read... [19:08:36]Read from MH i2c: E2 17 00 [19:08:36]MH_I2C_Read... [19:08:36]Read from MH i2c: E2 17 00 70 83 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 BB [19:08:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [19:08:36]wFMCommunicate OK [19:08:36]requested_item fd.num is exist - process it [19:08:36]SAM_PROTO_GetFieldsCounters [19:08:36]wFMCommunicate request_size=4 [19:08:36]MH_SAM_APDU [19:08:36]CAPDU: 80 13 00 00 [19:08:36]Write to MH i2c: E2 08 00 71 83 80 13 00 00 00 00 00 00 70 [19:08:36]Write i2c OK [19:08:36]MH_I2C_Read... [19:08:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:08:36]Read from MH i2c: E2 [19:08:36]MH_I2C_Read... [19:08:36]Read from MH i2c: E2 62 00 [19:08:36]MH_I2C_Read... [19:08:36]Read from MH i2c: E2 62 00 71 83 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 E9 DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 59 01 00 00 5E 04 04 00 59 01 00 00 57 04 04 00 5A 01 00 00 19 04 04 00 00 00 00 00 90 00 1A [19:08:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 E9 DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 59 01 00 00 5E 04 04 00 59 01 00 00 57 04 04 00 5A 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:08:36]wFMCommunicate OK [19:08:36]SAM_PROTO_GetFieldsCounters done [19:08:36]requested_item shift.num is exist - process it [19:08:36]requested_item shift.opened is exist - process it [19:08:36]req_shift_opened [19:08:36]FM_GetShiftState [19:08:36]SAM_PROTO_GetShiftState [19:08:36]wFMCommunicate request_size=4 [19:08:36]MH_SAM_APDU [19:08:36]CAPDU: 80 13 01 00 [19:08:36]Write to MH i2c: E2 08 00 72 83 80 13 01 00 00 00 00 00 72 [19:08:36]Write i2c OK [19:08:36]MH_I2C_Read... [19:08:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:08:36]Read from MH i2c: E2 [19:08:36]MH_I2C_Read... [19:08:36]Read from MH i2c: E2 0E 00 [19:08:36]MH_I2C_Read... [19:08:36]Read from MH i2c: E2 0E 00 72 83 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 D1 [19:08:36]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [19:08:36]wFMCommunicate OK [19:08:36]SAM_PROTO_GetShiftState done [19:08:36]FM_GetShiftState done [19:08:36]req_shift_opened done [19:08:36]requested_item shift.open_date is exist - process it [19:08:36]req_shift_open_date [19:08:36]req_shift_open_date done [19:08:36]produce_requested_data done [19:08:36]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187881,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [19:08:36]process_action_free close_receipt [19:08:36]json_value_free [19:08:36]json_value_free done [19:08:36]process_json_proto returns [19:08:36]Send response to host [19:08:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187881,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [19:08:36]free response buf [19:08:36]execute_script done [19:08:36]execute_script returns [19:08:36]free content buf [19:08:36]Sock 8.Close socket [19:08:36]Sock 8.Thread stoped [19:08:40]OFD Sender: No OFD packet to send [19:08:45]OFD Sender: No OFD packet to send [19:08:50]OFD Sender: No OFD packet to send [19:08:55]OFD Sender: No OFD packet to send [19:09:00]OFD Sender: No OFD packet to send [19:09:04]accept exits with 9 [19:09:04]New connection [19:09:04]New thread 3067157860 created [19:09:04]Thread 3067014500 joined [19:09:04]Waiting for new connection... [19:09:04] Sock 9.Parse request [19:09:04]Sock 9.Check first char [19:09:04]Sock 9.First char is OK [19:09:04]request: POST /json_proto HTTP/1.0 [19:09:04]Method: POST [19:09:04]URL: /json_proto [19:09:04]Method is POST - this is cgi request [19:09:04]url: /json_proto [19:09:04]query_string will be loaded in cgi processing [19:09:04]execute_cgi json_proto POST (null) [19:09:04]execute_cgi path=json_proto method=POST [19:09:04]POST find Content-Length [19:09:04]Host: 172.17.42.131:8080 [19:09:04]Content-Length: 688 [19:09:04]Content-Type: application/json [19:09:04] [19:09:04]POST finish read [19:09:04]Found Content-Length = 688 [19:09:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209934", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 12.960, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:09:04]execute_script... [19:09: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)209934", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 12.960, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:09:04]POST & json_proto [19:09:04]process_json_proto [19:09:04]json parsed OK: [19:09:04]protocol is kg_v1.0 [19:09:04]action value=close_receipt [19:09:04]process_action close_receipt [19:09:04]cmd_close_receipt [19:09:04]MH_GetDate [19:09:04]Write to MH i2c: F0 00 00 73 83 E5 [19:09:04]Write i2c OK [19:09:04]MH_I2C_Read... [19:09:04]Read from MH i2c: F0 [19:09:04]MH_I2C_Read... [19:09:04]Read from MH i2c: F0 09 00 [19:09:04]MH_I2C_Read... [19:09:04]Read from MH i2c: F0 09 00 73 83 00 D5 A6 16 67 A0 18 CA 66 CE [19:09:04]GetLastDocTimeStamp 1729537717 [19:09:04]current date 1729537749 [19:09:04]FM_GetShiftState [19:09:04]SAM_PROTO_GetShiftState [19:09:04]wFMCommunicate request_size=4 [19:09:04]MH_SAM_APDU [19:09:04]CAPDU: 80 13 01 00 [19:09:04]Write to MH i2c: E2 08 00 74 83 80 13 01 00 00 00 00 00 74 [19:09:04]Write i2c OK [19:09:04]MH_I2C_Read... [19:09:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:09:04]Read from MH i2c: E2 [19:09:04]MH_I2C_Read... [19:09:04]Read from MH i2c: E2 0E 00 [19:09:04]MH_I2C_Read... [19:09:04]Read from MH i2c: E2 0E 00 74 83 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 D3 [19:09:04]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [19:09:04]wFMCommunicate OK [19:09:04]SAM_PROTO_GetShiftState done [19:09:04]FM_GetShiftState done [19:09:04]opened in 1729469754 [19:09:04]opened+sec_in_day 1729556154 [19:09:04]quantity*price = 100051 [19:09:04]sum+1 = 100052 [19:09:04]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 346 21.10.2024 19:09 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 187882 ФПД: 65287540130808 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T190909&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187882&fm=65287540130808&tin=02508201610067®Number=0000000000100030&sum=100000 [19:09:05]StoreToDocumentArchive [19:09:05]shift 460 fd 187882 [19:09:05]save to /storage/0460/doc_00187882 [19:09:05]save last doc name /storage/0460/doc_00187882 to /storage/kkm_last_doc_name [19:09:05]save OK [19:09:05]Clear old archive folders... [19:09:05]ProcessDocumentItem done err = 0, tmpTLVsize=257 [19:09:05]tlvbuf is 0130A810 [19:09:05]SAM_PROTO_ClearQueue [19:09:05]wFMCommunicate request_size=4 [19:09:05]MH_SAM_APDU [19:09:05]CAPDU: 80 09 00 00 [19:09:05]Write to MH i2c: E2 08 00 81 83 80 09 00 00 00 00 00 00 76 [19:09:05]Write i2c OK [19:09:05]MH_I2C_Read... [19:09:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:09:05]Read from MH i2c: E2 [19:09:05]MH_I2C_Read... [19:09:05]Read from MH i2c: E2 03 00 [19:09:05]MH_I2C_Read... [19:09:05]Read from MH i2c: E2 03 00 81 83 00 90 00 78 [19:09:05]RAPDU: 90 00 [19:09:05]wFMCommunicate OK [19:09:05]SAM_PROTO_ClearQueue done [19:09:05]KKMCreateOFDPacket [19:09:05]OFDProtocolAddRootSTLVToBuf [19:09:05]FM_MakeSignedData [19:09:05]FM_MakeSignedData [19:09:05]SAM_PROTO_SignData [19:09:05]wFMCommunicate request_size=4 [19:09:05]MH_SAM_APDU [19:09:05]CAPDU: 80 0D 01 02 [19:09:05]Write to MH i2c: E2 08 00 82 83 80 0D 01 02 00 00 00 00 7E [19:09:05]Write i2c OK [19:09:05]MH_I2C_Read... [19:09:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:09:05]Read from MH i2c: E2 [19:09:05]MH_I2C_Read... [19:09:05]Read from MH i2c: E2 03 00 [19:09:05]MH_I2C_Read... [19:09:05]Read from MH i2c: E2 03 00 82 83 00 90 00 79 [19:09:05]RAPDU: 90 00 [19:09:05]wFMCommunicate OK [19:09:05]wFMCommunicate request_size=255 [19:09:05]MH_SAM_APDU [19:09:05]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 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 01 00 00 F4 03 04 00 D5 A6 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 EA DD 02 [19:09:05]Write to MH i2c: E2 02 01 83 83 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 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 01 00 00 F4 03 04 00 D5 A6 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 EA DD 02 00 00 C4 [19:09:05]Write i2c OK [19:09:05]MH_I2C_Read... [19:09:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:09:05]Read from MH i2c: E2 [19:09:05]MH_I2C_Read... [19:09:05]Read from MH i2c: E2 03 00 [19:09:05]MH_I2C_Read... [19:09:05]Read from MH i2c: E2 03 00 83 83 00 90 00 7A [19:09:05]RAPDU: 90 00 [19:09:05]wFMCommunicate OK [19:09:05]wFMCommunicate request_size=16 [19:09:05]MH_SAM_APDU [19:09:05]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 3B 60 F0 A3 43 F8 [19:09:05]Write to MH i2c: E2 13 00 84 83 80 0D 02 02 0B 00 00 35 04 06 00 3B 60 F0 A3 43 F8 00 00 3F [19:09:05]Write i2c OK [19:09:05]MH_I2C_Read... [19:09:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:09:05]Read from MH i2c: E2 [19:09:05]MH_I2C_Read... [19:09:05]Read from MH i2c: E2 03 00 [19:09:05]MH_I2C_Read... [19:09:05]Read from MH i2c: E2 03 00 84 83 00 90 00 7B [19:09:05]RAPDU: 90 00 [19:09:05]wFMCommunicate OK [19:09:05]wFMCommunicate request_size=4 [19:09:05]MH_SAM_APDU [19:09:05]CAPDU: 80 0D 03 02 [19:09:05]Write to MH i2c: E2 08 00 85 83 80 0D 03 02 00 00 00 00 83 [19:09:05]Write i2c OK [19:09:05]MH_I2C_Read... [19:09:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:09:05]Read from MH i2c: E2 [19:09:05]MH_I2C_Read... [19:09:05]Read from MH i2c: E2 0B 00 [19:09:05]MH_I2C_Read... [19:09:05]Read from MH i2c: E2 0B 00 85 83 00 AF BC 8F 1A D8 33 B4 95 90 00 EC [19:09:05]RAPDU: AF BC 8F 1A D8 33 B4 95 90 00 [19:09:05]wFMCommunicate OK [19:09:05]SAM_PROTO_SignData done [19:09:05]FM_MakeSignedData done [19:09:05]CreateOFDProtocolMessage [19:09:05]wFMCommunicate request_size=4 [19:09:05]MH_SAM_APDU [19:09:05]CAPDU: 80 11 00 00 [19:09:05]Write to MH i2c: E2 08 00 86 83 80 11 00 00 00 00 00 00 83 [19:09:05]Write i2c OK [19:09:05]MH_I2C_Read... [19:09:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:09:06]Read from MH i2c: E2 [19:09:06]MH_I2C_Read... [19:09:06]Read from MH i2c: E2 17 00 [19:09:06]MH_I2C_Read... [19:09:06]Read from MH i2c: E2 17 00 86 83 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 D1 [19:09:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [19:09:06]wFMCommunicate OK [19:09:06]CreateOFDProtocolMessage done [19:09:06]OFDSenderStorePacket 187882 [19:09:06]StoreOFDPacket docnum=187882 [19:09:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 65 D2 0D 01 96 75 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 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 01 00 00 F4 03 04 00 D5 A6 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 EA DD 02 00 35 04 06 00 3B 60 F0 A3 43 F8 AF BC 8F 1A D8 33 B4 95 [19:09:06]CheckFolder [19:09:06]dirname=/storage/ofd_packets [19:09:06]CheckFolder done [19:09:06]ProducePacketName [19:09:06]name=ofd_packets/00187882 [19:09:06]NVStorageSaveData ofd_packets/00187882 [19:09:06]File name is /storage/ofd_packets/00187882 [19:09:06]Write 307 bytes [19:09:06]NVStorageSaveData done [19:09:06]OFDSenderStorePacket done [19:09:06]KKMCreateOFDPacket done [19:09:06]NVStorageSaveData kkm_last_timestamp [19:09:06]File name is /storage/kkm_last_timestamp [19:09:06]Write 4 bytes [19:09:06]NVStorageSaveData done [19:09:06]ExternCall_PrintAddStr [19:09:06]wPrintStart [19:09:06]Write to MH i2c: 01 00 00 87 83 0A [19:09:06]Write i2c OK [19:09:06]MH_I2C_Read... [19:09:06]Read from MH i2c: 01 [19:09:06]MH_I2C_Read... [19:09:06]Read from MH i2c: 01 07 00 [19:09:06]MH_I2C_Read... [19:09:06]Read from MH i2c: 01 07 00 87 83 00 00 00 00 00 FF 0F 1F [19:09:06]RasterBufferAndPrint [19:09:06]line Счет N : (1)209934 [19:09:06]line ИНН: 02508201610067 [19:09:06]line Контрольно-Кассовый Чек [19:09:06]line ПРОДАЖА [19:09:06]line ТРК (МРК, ГНК) : 21 [19:09:06]line Товар: 2710194210 [19:09:06]line D-ENERGY ДТ-К-5 [19:09:06]line 12.960 * 77.20 [19:09:06]line = 1000.51 [19:09:06]line НДС 12% НСП 1% [19:09:06]line > о реализуемом товаре [19:09:06]line ОКРУГЛЕНИЕ: -0.51 [19:09:06]line ИТОГО: 1000.00 [19:09:06]line Внесено: 1000.00 [19:09:06]line СДАЧА: 0.00 [19:09:06]line НСП 1% : 8.85 [19:09:06]line НДС 12% : 106.25 [19:09:06]line Наличными: 1000.00 [19:09:06]line Безнал.: 0.00 [19:09:06]line Место: АЗС № 86 "Партнер Нефть" [19:09:06]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [19:09:06]line СНО: Общий режим [19:09:06]line Чек 346 21.10.2024 19:09 [19:09:06]line Смена: 460 ФФД: 1.0 [19:09:06]line ЗНМ: 0300000155 [19:09:06]line РНМ: 0000000000100030 [19:09:06]line Версия ККМ: 001 [19:09:06]line ФМ: 0000000000965340 [19:09:06]line ФД: 187882 [19:09:06]line ФПД: 65287540130808 [19:09:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T190909&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187882&fm=65287540130808&tin=02508201610067®Number=0000000000100030&sum=100000 [19:09:06]OFD Sender: Processing packet 187882 [packets to send 1062, broken 1061] [19:09:06]ProducePacketName [19:09:06]name=ofd_packets/00187882 [19:09:06]OFD Sender: To server: pG, [19:09:06]CommunicateWithHost lk.salyk.kg:30040 [19:09:06]ConnectInit lk.salyk.kg [19:09:06]written 0, free lines is 4095 [19:09:06]Connected sock=10 [19:09:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 65 D2 0D 01 96 75 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 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 01 00 00 F4 03 04 00 D5 A6 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 EA DD 02 00 35 04 06 00 3B 60 F0 A3 43 F8 AF BC 8F 1A D8 33 B4 95 [19:09:06]Write to MH i2c: 01 00 00 B2 83 35 [19:09:06]Write i2c OK [19:09:06]MH_I2C_Read... [19:09:06]Read from MH i2c: 01 [19:09:06]MH_I2C_Read... [19:09:06]Read from MH i2c: 01 07 00 [19:09:06]MH_I2C_Read... [19:09:06]Read from MH i2c: 01 07 00 B2 83 00 00 00 00 00 68 0C B0 [19:09:06]RasterBufferAndPrint [19:09:06]line [19:09:06]line [19:09:06]line [19:09:06]line [19:09:06]line [19:09:06]written 0, free lines is 3179 [19:09:06]MH_Cut [19:09:06]Write to MH i2c: D1 01 00 B9 83 01 0E [19:09:06]Write i2c OK [19:09:06]MH_I2C_Read... [19:09:06]Read from MH i2c: D1 [19:09:06]MH_I2C_Read... [19:09:06]Read from MH i2c: D1 01 00 [19:09:06]MH_I2C_Read... [19:09:06]Read from MH i2c: D1 01 00 B9 83 00 0D [19:09:06]Write to MH i2c: 01 00 00 BA 83 3D [19:09:06]Write i2c OK [19:09:06]MH_I2C_Read... [19:09:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 6A 4F 47 00 15 07 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 EA DD 02 00 F4 03 04 00 C4 50 16 67 B6 04 01 00 00 33 5F 44 A4 DE 39 64 06 [19:09:06]CommunicateWithHost err = 0 [19:09:06]CheckOFDResponse [19:09:06]1017 (14) - 77093643461234 [19:09:06]1041 (16) - 0000000000965340 [19:09:06]1040 (4) - 187882 [19:09:06]1012 (4) - 21.10.2024 13:01 [19:09:06]1206 (1) - 0 [19:09:06]OFD Sender: Remove packet 187882 [19:09:06]ProducePacketName [19:09:06]name=ofd_packets/00187882 [19:09:06]NVStorageDeleteData [19:09:07]OFD Sender: No OFD packet to send [19:09:07]*** Cut start [19:09:07]*** Partial cut [19:09:07]*** CUTSNS_PIN = 1 [19:09:07]*** CUTSNS_PIN = 0 [19:09:08]*** Brake cut motor [19:09:08]Read from MH i2c: 01 [19:09:08]MH_I2C_Read... [19:09:08]*** Stop cut motor [19:09:08]*** Cut end [19:09:08]Read from MH i2c: 01 07 00 [19:09:08]MH_I2C_Read... [19:09:08]Read from MH i2c: 01 07 00 BA 83 00 00 00 00 00 FF 0F 52 [19:09:08]process_action close_receipt done [19:09:08]requested_data is exist [19:09:08]produce_requested_data [19:09:08]requested_item fm.sn is exist - process it [19:09:08]wFMCommunicate request_size=4 [19:09:08]MH_SAM_APDU [19:09:08]CAPDU: 80 11 00 00 [19:09:08]Write to MH i2c: E2 08 00 BB 83 80 11 00 00 00 00 00 00 B8 [19:09:08]Write i2c OK [19:09:08]MH_I2C_Read... [19:09:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:09:08]Read from MH i2c: E2 [19:09:08]MH_I2C_Read... [19:09:08]Read from MH i2c: E2 17 00 [19:09:08]MH_I2C_Read... [19:09:08]Read from MH i2c: E2 17 00 BB 83 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 06 [19:09:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [19:09:08]wFMCommunicate OK [19:09:08]requested_item fd.num is exist - process it [19:09:08]SAM_PROTO_GetFieldsCounters [19:09:08]wFMCommunicate request_size=4 [19:09:08]MH_SAM_APDU [19:09:08]CAPDU: 80 13 00 00 [19:09:08]Write to MH i2c: E2 08 00 BC 83 80 13 00 00 00 00 00 00 BB [19:09:08]Write i2c OK [19:09:08]MH_I2C_Read... [19:09:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:09:08]Read from MH i2c: E2 [19:09:08]MH_I2C_Read... [19:09:08]Read from MH i2c: E2 62 00 [19:09:08]MH_I2C_Read... [19:09:08]Read from MH i2c: E2 62 00 BC 83 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 EA DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 5A 01 00 00 5E 04 04 00 5A 01 00 00 57 04 04 00 5B 01 00 00 19 04 04 00 00 00 00 00 90 00 69 [19:09:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 EA DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 5A 01 00 00 5E 04 04 00 5A 01 00 00 57 04 04 00 5B 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:09:08]wFMCommunicate OK [19:09:08]SAM_PROTO_GetFieldsCounters done [19:09:08]requested_item shift.num is exist - process it [19:09:08]requested_item shift.opened is exist - process it [19:09:08]req_shift_opened [19:09:08]FM_GetShiftState [19:09:08]SAM_PROTO_GetShiftState [19:09:08]wFMCommunicate request_size=4 [19:09:08]MH_SAM_APDU [19:09:08]CAPDU: 80 13 01 00 [19:09:08]Write to MH i2c: E2 08 00 BD 83 80 13 01 00 00 00 00 00 BD [19:09:08]Write i2c OK [19:09:08]MH_I2C_Read... [19:09:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:09:08]Read from MH i2c: E2 [19:09:08]MH_I2C_Read... [19:09:08]Read from MH i2c: E2 0E 00 [19:09:08]MH_I2C_Read... [19:09:08]Read from MH i2c: E2 0E 00 BD 83 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 1C [19:09:08]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [19:09:08]wFMCommunicate OK [19:09:08]SAM_PROTO_GetShiftState done [19:09:08]FM_GetShiftState done [19:09:08]req_shift_opened done [19:09:08]requested_item shift.open_date is exist - process it [19:09:08]req_shift_open_date [19:09:08]req_shift_open_date done [19:09:08]produce_requested_data done [19:09:08]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187882,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [19:09:08]process_action_free close_receipt [19:09:08]json_value_free [19:09:08]json_value_free done [19:09:08]process_json_proto returns [19:09:08]Send response to host [19:09:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187882,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [19:09:08]free response buf [19:09:08]execute_script done [19:09:08]execute_script returns [19:09:08]free content buf [19:09:08]Sock 9.Close socket [19:09:08]Sock 9.Thread stoped [19:09:08]accept exits with 8 [19:09:08]New connection [19:09:08]New thread 3067014500 created [19:09:08]Thread 3067157860 joined [19:09:08]Waiting for new connection... [19:09:08] Sock 8.Parse request [19:09:08]Sock 8.Check first char [19:09:08]Sock 8.First char is OK [19:09:08]request: POST /json_proto HTTP/1.0 [19:09:08]Method: POST [19:09:08]URL: /json_proto [19:09:08]Method is POST - this is cgi request [19:09:08]url: /json_proto [19:09:08]query_string will be loaded in cgi processing [19:09:08]execute_cgi json_proto POST (null) [19:09:08]execute_cgi path=json_proto method=POST [19:09:08]POST find Content-Length [19:09:08]Host: 172.17.42.131:8080 [19:09:08]Content-Length: 677 [19:09:08]Content-Type: application/json [19:09:08] [19:09:08]POST finish read [19:09:08]Found Content-Length = 677 [19:09:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209935", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "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:09:08]execute_script... [19:09: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)209935", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "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:09:08]POST & json_proto [19:09:08]process_json_proto [19:09:08]json parsed OK: [19:09:08]protocol is kg_v1.0 [19:09:08]action value=close_receipt [19:09:08]process_action close_receipt [19:09:08]cmd_close_receipt [19:09:08]MH_GetDate [19:09:08]Write to MH i2c: F0 00 00 BE 83 30 [19:09:08]Write i2c OK [19:09:08]MH_I2C_Read... [19:09:08]Read from MH i2c: F0 [19:09:08]MH_I2C_Read... [19:09:08]Read from MH i2c: F0 09 00 [19:09:08]MH_I2C_Read... [19:09:08]Read from MH i2c: F0 09 00 BE 83 00 DA A6 16 67 A0 18 CA 66 1E [19:09:08]GetLastDocTimeStamp 1729537749 [19:09:08]current date 1729537754 [19:09:08]FM_GetShiftState [19:09:08]SAM_PROTO_GetShiftState [19:09:08]wFMCommunicate request_size=4 [19:09:08]MH_SAM_APDU [19:09:08]CAPDU: 80 13 01 00 [19:09:08]Write to MH i2c: E2 08 00 BF 83 80 13 01 00 00 00 00 00 BF [19:09:08]Write i2c OK [19:09:08]MH_I2C_Read... [19:09:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:09:09]Read from MH i2c: E2 [19:09:09]MH_I2C_Read... [19:09:09]Read from MH i2c: E2 0E 00 [19:09:09]MH_I2C_Read... [19:09:09]Read from MH i2c: E2 0E 00 BF 83 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 1E [19:09:09]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [19:09:09]wFMCommunicate OK [19:09:09]SAM_PROTO_GetShiftState done [19:09:09]FM_GetShiftState done [19:09:09]opened in 1729469754 [19:09:09]opened+sec_in_day 1729556154 [19:09:09]quantity*price = 50041 [19:09:09]sum+1 = 50042 [19:09:09]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 347 21.10.2024 19:09 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 187883 ФПД: 185943493094272 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T190914&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187883&fm=185943493094272&tin=02508201610067®Number=0000000000100030&sum=50000 [19:09:10]StoreToDocumentArchive [19:09:10]shift 460 fd 187883 [19:09:10]save to /storage/0460/doc_00187883 [19:09:10]save last doc name /storage/0460/doc_00187883 to /storage/kkm_last_doc_name [19:09:10]save OK [19:09:10]Clear old archive folders... [19:09:10]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:09:10]tlvbuf is 010F78C0 [19:09:10]SAM_PROTO_ClearQueue [19:09:10]wFMCommunicate request_size=4 [19:09:10]MH_SAM_APDU [19:09:10]CAPDU: 80 09 00 00 [19:09:10]Write to MH i2c: E2 08 00 CC 83 80 09 00 00 00 00 00 00 C1 [19:09:10]Write i2c OK [19:09:10]MH_I2C_Read... [19:09:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:09:10]Read from MH i2c: E2 [19:09:10]MH_I2C_Read... [19:09:10]Read from MH i2c: E2 03 00 [19:09:10]MH_I2C_Read... [19:09:10]Read from MH i2c: E2 03 00 CC 83 00 90 00 C3 [19:09:10]RAPDU: 90 00 [19:09:10]wFMCommunicate OK [19:09:10]SAM_PROTO_ClearQueue done [19:09:10]KKMCreateOFDPacket [19:09:10]OFDProtocolAddRootSTLVToBuf [19:09:10]FM_MakeSignedData [19:09:10]FM_MakeSignedData [19:09:10]SAM_PROTO_SignData [19:09:10]wFMCommunicate request_size=4 [19:09:10]MH_SAM_APDU [19:09:10]CAPDU: 80 0D 01 02 [19:09:10]Write to MH i2c: E2 08 00 CD 83 80 0D 01 02 00 00 00 00 C9 [19:09:10]Write i2c OK [19:09:10]MH_I2C_Read... [19:09:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:09:10]Read from MH i2c: E2 [19:09:10]MH_I2C_Read... [19:09:10]Read from MH i2c: E2 03 00 [19:09:10]MH_I2C_Read... [19:09:10]Read from MH i2c: E2 03 00 CD 83 00 90 00 C4 [19:09:10]RAPDU: 90 00 [19:09:10]wFMCommunicate OK [19:09:10]wFMCommunicate request_size=255 [19:09:10]MH_SAM_APDU [19:09:10]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 01 00 00 F4 03 04 00 DA A6 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 EB DD 02 00 35 04 06 00 A9 [19:09:10]Write to MH i2c: E2 02 01 CE 83 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 01 00 00 F4 03 04 00 DA A6 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 EB DD 02 00 35 04 06 00 A9 00 00 D5 [19:09:10]Write i2c OK [19:09:10]MH_I2C_Read... [19:09:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:09:10]Read from MH i2c: E2 [19:09:10]MH_I2C_Read... [19:09:10]Read from MH i2c: E2 03 00 [19:09:10]MH_I2C_Read... [19:09:10]Read from MH i2c: E2 03 00 CE 83 00 90 00 C5 [19:09:10]RAPDU: 90 00 [19:09:10]wFMCommunicate OK [19:09:10]wFMCommunicate request_size=10 [19:09:10]MH_SAM_APDU [19:09:10]CAPDU: 80 0D 02 02 05 1D 57 DA AB 80 [19:09:10]Write to MH i2c: E2 0D 00 CF 83 80 0D 02 02 05 00 1D 57 DA AB 80 00 00 4F [19:09:10]Write i2c OK [19:09:10]MH_I2C_Read... [19:09:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:09:10]Read from MH i2c: E2 [19:09:10]MH_I2C_Read... [19:09:10]Read from MH i2c: E2 03 00 [19:09:10]MH_I2C_Read... [19:09:10]Read from MH i2c: E2 03 00 CF 83 00 90 00 C6 [19:09:10]RAPDU: 90 00 [19:09:10]wFMCommunicate OK [19:09:10]wFMCommunicate request_size=4 [19:09:10]MH_SAM_APDU [19:09:10]CAPDU: 80 0D 03 02 [19:09:10]Write to MH i2c: E2 08 00 D0 83 80 0D 03 02 00 00 00 00 CE [19:09:10]Write i2c OK [19:09:10]MH_I2C_Read... [19:09:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:09:11]Read from MH i2c: E2 [19:09:11]MH_I2C_Read... [19:09:11]Read from MH i2c: E2 0B 00 [19:09:11]MH_I2C_Read... [19:09:11]Read from MH i2c: E2 0B 00 D0 83 00 CC 05 E9 20 DE 46 53 92 90 00 B2 [19:09:11]RAPDU: CC 05 E9 20 DE 46 53 92 90 00 [19:09:11]wFMCommunicate OK [19:09:11]SAM_PROTO_SignData done [19:09:11]FM_MakeSignedData done [19:09:11]CreateOFDProtocolMessage [19:09:11]wFMCommunicate request_size=4 [19:09:11]MH_SAM_APDU [19:09:11]CAPDU: 80 11 00 00 [19:09:11]Write to MH i2c: E2 08 00 D1 83 80 11 00 00 00 00 00 00 CE [19:09:11]Write i2c OK [19:09:11]MH_I2C_Read... [19:09:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:09:11]Read from MH i2c: E2 [19:09:11]MH_I2C_Read... [19:09:11]Read from MH i2c: E2 17 00 [19:09:11]MH_I2C_Read... [19:09:11]Read from MH i2c: E2 17 00 D1 83 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 1C [19:09:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [19:09:11]wFMCommunicate OK [19:09:11]CreateOFDProtocolMessage done [19:09:11]OFDSenderStorePacket 187883 [19:09:11]StoreOFDPacket docnum=187883 [19:09:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 77 A7 07 01 C7 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 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 01 00 00 F4 03 04 00 DA A6 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 EB DD 02 00 35 04 06 00 A9 1D 57 DA AB 80 CC 05 E9 20 DE 46 53 92 [19:09:11]CheckFolder [19:09:11]dirname=/storage/ofd_packets [19:09:11]CheckFolder done [19:09:11]ProducePacketName [19:09:11]name=ofd_packets/00187883 [19:09:11]NVStorageSaveData ofd_packets/00187883 [19:09:11]File name is /storage/ofd_packets/00187883 [19:09:11]Write 301 bytes [19:09:11]NVStorageSaveData done [19:09:11]OFDSenderStorePacket done [19:09:11]KKMCreateOFDPacket done [19:09:11]NVStorageSaveData kkm_last_timestamp [19:09:11]File name is /storage/kkm_last_timestamp [19:09:11]Write 4 bytes [19:09:11]NVStorageSaveData done [19:09:11]ExternCall_PrintAddStr [19:09:11]wPrintStart [19:09:11]Write to MH i2c: 01 00 00 D2 83 55 [19:09:11]Write i2c OK [19:09:11]MH_I2C_Read... [19:09:11]Read from MH i2c: 01 [19:09:11]MH_I2C_Read... [19:09:11]Read from MH i2c: 01 07 00 [19:09:11]MH_I2C_Read... [19:09:11]Read from MH i2c: 01 07 00 D2 83 00 00 00 00 00 FF 0F 6A [19:09:11]RasterBufferAndPrint [19:09:11]line Счет N : (1)209935 [19:09:11]line ИНН: 02508201610067 [19:09:11]line Контрольно-Кассовый Чек [19:09:11]line ПРОДАЖА [19:09:11]line ТРК (МРК, ГНК) : 32 [19:09:11]line Товар: 2710124130 [19:09:11]line Аи-92-К-3 [19:09:11]line 7.480 * 66.90 [19:09:11]line = 500.41 [19:09:11]line НДС 12% НСП 1% [19:09:11]line > о реализуемом товаре [19:09:11]line ОКРУГЛЕНИЕ: -0.41 [19:09:11]line ИТОГО: 500.00 [19:09:11]line Внесено: 500.00 [19:09:11]line СДАЧА: 0.00 [19:09:11]line НСП 1% : 4.43 [19:09:11]line НДС 12% : 53.14 [19:09:11]line Наличными: 500.00 [19:09:11]line Безнал.: 0.00 [19:09:11]line Место: АЗС № 86 "Партнер Нефть" [19:09:11]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [19:09:11]line СНО: Общий режим [19:09:11]line Чек 347 21.10.2024 19:09 [19:09:11]line Смена: 460 ФФД: 1.0 [19:09:11]line ЗНМ: 0300000155 [19:09:11]line РНМ: 0000000000100030 [19:09:11]line Версия ККМ: 001 [19:09:11]line ФМ: 0000000000965340 [19:09:11]line ФД: 187883 [19:09:11]line ФПД: 185943493094272 [19:09:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T190914&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187883&fm=185943493094272&tin=02508201610067®Number=0000000000100030&sum=50000 [19:09:11]written 0, free lines is 4095 [19:09:11]OFD Sender: Processing packet 187883 [packets to send 1062, broken 1061] [19:09:11]ProducePacketName [19:09:11]name=ofd_packets/00187883 [19:09:11]OFD Sender: To server: pG, [19:09:11]CommunicateWithHost lk.salyk.kg:30040 [19:09:11]ConnectInit lk.salyk.kg [19:09:11]Connected sock=10 [19:09:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 77 A7 07 01 C7 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 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 01 00 00 F4 03 04 00 DA A6 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 EB DD 02 00 35 04 06 00 A9 1D 57 DA AB 80 CC 05 E9 20 DE 46 53 92 [19:09:11]Write to MH i2c: 01 00 00 FD 83 80 [19:09:11]Write i2c OK [19:09:11]MH_I2C_Read... [19:09:11]Read from MH i2c: 01 [19:09:11]MH_I2C_Read... [19:09:11]Read from MH i2c: 01 07 00 [19:09:11]MH_I2C_Read... [19:09:11]Read from MH i2c: 01 07 00 FD 83 00 00 00 00 00 69 0C FC [19:09:11]RasterBufferAndPrint [19:09:11]line [19:09:11]line [19:09:11]line [19:09:11]line [19:09:11]line [19:09:11]written 0, free lines is 3185 [19:09:11]MH_Cut [19:09:11]Write to MH i2c: D1 01 00 04 84 01 5A [19:09:11]Write i2c OK [19:09:11]MH_I2C_Read... [19:09:11]Read from MH i2c: D1 [19:09:11]MH_I2C_Read... [19:09:11]Read from MH i2c: D1 01 00 [19:09:11]MH_I2C_Read... [19:09:11]Read from MH i2c: D1 01 00 04 84 00 59 [19:09:11]Write to MH i2c: 01 00 00 05 84 89 [19:09:11]Write i2c OK [19:09:11]MH_I2C_Read... [19:09:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 F8 3A 47 00 89 EA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 EB DD 02 00 F4 03 04 00 C9 50 16 67 B6 04 01 00 00 AB F1 D4 C5 76 57 A6 B7 [19:09:11]CommunicateWithHost err = 0 [19:09:11]CheckOFDResponse [19:09:11]1017 (14) - 77093643461234 [19:09:11]1041 (16) - 0000000000965340 [19:09:11]1040 (4) - 187883 [19:09:11]1012 (4) - 21.10.2024 13:02 [19:09:11]1206 (1) - 0 [19:09:11]OFD Sender: Remove packet 187883 [19:09:11]ProducePacketName [19:09:11]name=ofd_packets/00187883 [19:09:11]NVStorageDeleteData [19:09:12]OFD Sender: No OFD packet to send [19:09:12]*** Cut start [19:09:12]*** Partial cut [19:09:12]*** CUTSNS_PIN = 1 [19:09:12]*** CUTSNS_PIN = 0 [19:09:13]*** Brake cut motor [19:09:13]Read from MH i2c: 01 [19:09:13]MH_I2C_Read... [19:09:13]*** Stop cut motor [19:09:13]*** Cut end [19:09:13]Read from MH i2c: 01 07 00 [19:09:13]MH_I2C_Read... [19:09:13]Read from MH i2c: 01 07 00 05 84 00 00 00 00 00 FF 0F 9E [19:09:13]process_action close_receipt done [19:09:13]requested_data is exist [19:09:13]produce_requested_data [19:09:13]requested_item fm.sn is exist - process it [19:09:13]wFMCommunicate request_size=4 [19:09:13]MH_SAM_APDU [19:09:13]CAPDU: 80 11 00 00 [19:09:13]Write to MH i2c: E2 08 00 06 84 80 11 00 00 00 00 00 00 04 [19:09:13]Write i2c OK [19:09:13]MH_I2C_Read... [19:09:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:09:13]Read from MH i2c: E2 [19:09:13]MH_I2C_Read... [19:09:13]Read from MH i2c: E2 17 00 [19:09:13]MH_I2C_Read... [19:09:13]Read from MH i2c: E2 17 00 06 84 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 52 [19:09:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [19:09:13]wFMCommunicate OK [19:09:13]requested_item fd.num is exist - process it [19:09:13]SAM_PROTO_GetFieldsCounters [19:09:13]wFMCommunicate request_size=4 [19:09:13]MH_SAM_APDU [19:09:13]CAPDU: 80 13 00 00 [19:09:13]Write to MH i2c: E2 08 00 07 84 80 13 00 00 00 00 00 00 07 [19:09:13]Write i2c OK [19:09:13]MH_I2C_Read... [19:09:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:09:13]Read from MH i2c: E2 [19:09:13]MH_I2C_Read... [19:09:13]Read from MH i2c: E2 62 00 [19:09:13]MH_I2C_Read... [19:09:13]Read from MH i2c: E2 62 00 07 84 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 EB DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 5B 01 00 00 5E 04 04 00 5B 01 00 00 57 04 04 00 5C 01 00 00 19 04 04 00 00 00 00 00 90 00 B9 [19:09:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 EB DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 5B 01 00 00 5E 04 04 00 5B 01 00 00 57 04 04 00 5C 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:09:13]wFMCommunicate OK [19:09:13]SAM_PROTO_GetFieldsCounters done [19:09:13]requested_item shift.num is exist - process it [19:09:13]requested_item shift.opened is exist - process it [19:09:13]req_shift_opened [19:09:13]FM_GetShiftState [19:09:13]SAM_PROTO_GetShiftState [19:09:13]wFMCommunicate request_size=4 [19:09:13]MH_SAM_APDU [19:09:13]CAPDU: 80 13 01 00 [19:09:13]Write to MH i2c: E2 08 00 08 84 80 13 01 00 00 00 00 00 09 [19:09:13]Write i2c OK [19:09:13]MH_I2C_Read... [19:09:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:09:13]Read from MH i2c: E2 [19:09:13]MH_I2C_Read... [19:09:13]Read from MH i2c: E2 0E 00 [19:09:13]MH_I2C_Read... [19:09:13]Read from MH i2c: E2 0E 00 08 84 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 68 [19:09:13]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [19:09:13]wFMCommunicate OK [19:09:13]SAM_PROTO_GetShiftState done [19:09:13]FM_GetShiftState done [19:09:13]req_shift_opened done [19:09:13]requested_item shift.open_date is exist - process it [19:09:13]req_shift_open_date [19:09:13]req_shift_open_date done [19:09:13]produce_requested_data done [19:09:13]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187883,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [19:09:13]process_action_free close_receipt [19:09:13]json_value_free [19:09:13]json_value_free done [19:09:13]process_json_proto returns [19:09:13]Send response to host [19:09:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187883,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [19:09:13]free response buf [19:09:13]execute_script done [19:09:13]execute_script returns [19:09:13]free content buf [19:09:13]Sock 8.Close socket [19:09:13]Sock 8.Thread stoped [19:09:17]OFD Sender: No OFD packet to send [19:09:22]OFD Sender: No OFD packet to send [19:09:27]OFD Sender: No OFD packet to send [19:09:32]OFD Sender: No OFD packet to send [19:09:37]OFD Sender: No OFD packet to send [19:09:42]OFD Sender: No OFD packet to send [19:09:47]OFD Sender: No OFD packet to send [19:09:52]OFD Sender: No OFD packet to send [19:09:57]OFD Sender: No OFD packet to send [19:10:02]OFD Sender: No OFD packet to send [19:10:07]OFD Sender: No OFD packet to send [19:10:12]OFD Sender: No OFD packet to send [19:10:17]OFD Sender: No OFD packet to send [19:10:22]OFD Sender: No OFD packet to send [19:10:27]OFD Sender: No OFD packet to send [19:10:32]OFD Sender: No OFD packet to send [19:10:37]OFD Sender: No OFD packet to send [19:10:42]OFD Sender: No OFD packet to send [19:10:47]OFD Sender: No OFD packet to send [19:10:52]OFD Sender: No OFD packet to send [19:10:57]OFD Sender: No OFD packet to send [19:11:02]OFD Sender: No OFD packet to send [19:11:07]OFD Sender: No OFD packet to send [19:11:12]OFD Sender: No OFD packet to send [19:11:17]OFD Sender: No OFD packet to send [19:11:22]OFD Sender: No OFD packet to send [19:11:28]OFD Sender: No OFD packet to send [19:11:33]OFD Sender: No OFD packet to send [19:11:38]OFD Sender: No OFD packet to send [19:11:43]OFD Sender: No OFD packet to send [19:11:48]OFD Sender: No OFD packet to send [19:11:53]OFD Sender: No OFD packet to send [19:11:58]OFD Sender: No OFD packet to send [19:12:03]OFD Sender: No OFD packet to send [19:12:08]OFD Sender: No OFD packet to send [19:12:13]OFD Sender: No OFD packet to send [19:12:13]accept exits with 9 [19:12:13]New connection [19:12:13]New thread 3067157860 created [19:12:13]Thread 3067014500 joined [19:12:13]Waiting for new connection... [19:12:13] Sock 9.Parse request [19:12:13]Sock 9.Check first char [19:12:13]Sock 9.First char is OK [19:12:13]request: POST /json_proto HTTP/1.0 [19:12:13]Method: POST [19:12:13]URL: /json_proto [19:12:13]Method is POST - this is cgi request [19:12:13]url: /json_proto [19:12:13]query_string will be loaded in cgi processing [19:12:13]execute_cgi json_proto POST (null) [19:12:13]execute_cgi path=json_proto method=POST [19:12:13]POST find Content-Length [19:12:13]Host: 172.17.42.131:8080 [19:12:13]Content-Length: 688 [19:12:13]Content-Type: application/json [19:12:13] [19:12:13]POST finish read [19:12:13]Found Content-Length = 688 [19:12:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209936", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 32.390, "sum" : 2500.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2500.00, "total" : 2500.00, "payments": [ { "type": 0, "sum" : 2500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:12:13]execute_script... [19:12: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)209936", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 32.390, "sum" : 2500.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2500.00, "total" : 2500.00, "payments": [ { "type": 0, "sum" : 2500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:12:13]POST & json_proto [19:12:13]process_json_proto [19:12:13]json parsed OK: [19:12:13]protocol is kg_v1.0 [19:12:13]action value=close_receipt [19:12:13]process_action close_receipt [19:12:13]cmd_close_receipt [19:12:13]MH_GetDate [19:12:13]Write to MH i2c: F0 00 00 09 84 7C [19:12:13]Write i2c OK [19:12:13]MH_I2C_Read... [19:12:13]Read from MH i2c: F0 [19:12:13]MH_I2C_Read... [19:12:13]Read from MH i2c: F0 09 00 [19:12:13]MH_I2C_Read... [19:12:13]Read from MH i2c: F0 09 00 09 84 00 92 A7 16 67 A0 18 CA 66 23 [19:12:13]GetLastDocTimeStamp 1729537754 [19:12:13]current date 1729537938 [19:12:13]FM_GetShiftState [19:12:13]SAM_PROTO_GetShiftState [19:12:13]wFMCommunicate request_size=4 [19:12:13]MH_SAM_APDU [19:12:13]CAPDU: 80 13 01 00 [19:12:13]Write to MH i2c: E2 08 00 0A 84 80 13 01 00 00 00 00 00 0B [19:12:13]Write i2c OK [19:12:13]MH_I2C_Read... [19:12:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:12:13]Read from MH i2c: E2 [19:12:13]MH_I2C_Read... [19:12:13]Read from MH i2c: E2 0E 00 [19:12:13]MH_I2C_Read... [19:12:13]Read from MH i2c: E2 0E 00 0A 84 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 6A [19:12:13]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [19:12:13]wFMCommunicate OK [19:12:13]SAM_PROTO_GetShiftState done [19:12:13]FM_GetShiftState done [19:12:13]opened in 1729469754 [19:12:13]opened+sec_in_day 1729556154 [19:12:13]quantity*price = 250050 [19:12:13]sum+1 = 250052 [19:12:13]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 2500.00 Внесено: 2500.00 СДАЧА: 0.00 НСП 1% : 22.13 НДС 12% : 265.54 Наличными: 2500.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 348 21.10.2024 19:12 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 187884 ФПД: 11103475178147 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T191218&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187884&fm=11103475178147&tin=02508201610067®Number=0000000000100030&sum=250000 [19:12:14]StoreToDocumentArchive [19:12:14]shift 460 fd 187884 [19:12:14]save to /storage/0460/doc_00187884 [19:12:14]save last doc name /storage/0460/doc_00187884 to /storage/kkm_last_doc_name [19:12:14]save OK [19:12:14]Clear old archive folders... [19:12:14]ProcessDocumentItem done err = 0, tmpTLVsize=257 [19:12:14]tlvbuf is B6EDA4D0 [19:12:14]SAM_PROTO_ClearQueue [19:12:14]wFMCommunicate request_size=4 [19:12:14]MH_SAM_APDU [19:12:14]CAPDU: 80 09 00 00 [19:12:14]Write to MH i2c: E2 08 00 17 84 80 09 00 00 00 00 00 00 0D [19:12:14]Write i2c OK [19:12:14]MH_I2C_Read... [19:12:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:12:14]Read from MH i2c: E2 [19:12:14]MH_I2C_Read... [19:12:14]Read from MH i2c: E2 03 00 [19:12:14]MH_I2C_Read... [19:12:14]Read from MH i2c: E2 03 00 17 84 00 90 00 0F [19:12:14]RAPDU: 90 00 [19:12:14]wFMCommunicate OK [19:12:14]SAM_PROTO_ClearQueue done [19:12:14]KKMCreateOFDPacket [19:12:14]OFDProtocolAddRootSTLVToBuf [19:12:14]FM_MakeSignedData [19:12:14]FM_MakeSignedData [19:12:14]SAM_PROTO_SignData [19:12:14]wFMCommunicate request_size=4 [19:12:14]MH_SAM_APDU [19:12:14]CAPDU: 80 0D 01 02 [19:12:14]Write to MH i2c: E2 08 00 18 84 80 0D 01 02 00 00 00 00 15 [19:12:14]Write i2c OK [19:12:14]MH_I2C_Read... [19:12:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:12:14]Read from MH i2c: E2 [19:12:14]MH_I2C_Read... [19:12:14]Read from MH i2c: E2 03 00 [19:12:14]MH_I2C_Read... [19:12:14]Read from MH i2c: E2 03 00 18 84 00 90 00 10 [19:12:14]RAPDU: 90 00 [19:12:14]wFMCommunicate OK [19:12:14]wFMCommunicate request_size=255 [19:12:14]MH_SAM_APDU [19:12: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 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 86 7E 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 C3 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BA 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 01 00 00 F4 03 04 00 92 A7 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 EC DD 02 [19:12:14]Write to MH i2c: E2 02 01 19 84 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 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 86 7E 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 C3 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BA 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 01 00 00 F4 03 04 00 92 A7 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 EC DD 02 00 00 AF [19:12:14]Write i2c OK [19:12:14]MH_I2C_Read... [19:12:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:12:14]Read from MH i2c: E2 [19:12:14]MH_I2C_Read... [19:12:14]Read from MH i2c: E2 03 00 [19:12:14]MH_I2C_Read... [19:12:14]Read from MH i2c: E2 03 00 19 84 00 90 00 11 [19:12:14]RAPDU: 90 00 [19:12:14]wFMCommunicate OK [19:12:14]wFMCommunicate request_size=16 [19:12:14]MH_SAM_APDU [19:12:14]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 0A 19 3A B1 9A A3 [19:12:14]Write to MH i2c: E2 13 00 1A 84 80 0D 02 02 0B 00 00 35 04 06 00 0A 19 3A B1 9A A3 00 00 B8 [19:12:14]Write i2c OK [19:12:14]MH_I2C_Read... [19:12:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:12:14]Read from MH i2c: E2 [19:12:14]MH_I2C_Read... [19:12:14]Read from MH i2c: E2 03 00 [19:12:14]MH_I2C_Read... [19:12:14]Read from MH i2c: E2 03 00 1A 84 00 90 00 12 [19:12:14]RAPDU: 90 00 [19:12:14]wFMCommunicate OK [19:12:14]wFMCommunicate request_size=4 [19:12:14]MH_SAM_APDU [19:12:14]CAPDU: 80 0D 03 02 [19:12:14]Write to MH i2c: E2 08 00 1B 84 80 0D 03 02 00 00 00 00 1A [19:12:14]Write i2c OK [19:12:14]MH_I2C_Read... [19:12:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:12:14]Read from MH i2c: E2 [19:12:14]MH_I2C_Read... [19:12:14]Read from MH i2c: E2 0B 00 [19:12:14]MH_I2C_Read... [19:12:14]Read from MH i2c: E2 0B 00 1B 84 00 6E A5 C7 DB 3C B9 C7 92 90 00 1E [19:12:14]RAPDU: 6E A5 C7 DB 3C B9 C7 92 90 00 [19:12:14]wFMCommunicate OK [19:12:14]SAM_PROTO_SignData done [19:12:14]FM_MakeSignedData done [19:12:14]CreateOFDProtocolMessage [19:12:14]wFMCommunicate request_size=4 [19:12:14]MH_SAM_APDU [19:12:14]CAPDU: 80 11 00 00 [19:12:14]Write to MH i2c: E2 08 00 1C 84 80 11 00 00 00 00 00 00 1A [19:12:14]Write i2c OK [19:12:14]MH_I2C_Read... [19:12:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:12:14]Read from MH i2c: E2 [19:12:14]MH_I2C_Read... [19:12:14]Read from MH i2c: E2 17 00 [19:12:14]MH_I2C_Read... [19:12:15]Read from MH i2c: E2 17 00 1C 84 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 68 [19:12:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [19:12:15]wFMCommunicate OK [19:12:15]CreateOFDProtocolMessage done [19:12:15]OFDSenderStorePacket 187884 [19:12:15]StoreOFDPacket docnum=187884 [19:12:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 67 1F 0D 01 F6 57 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 86 7E 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 C3 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BA 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 01 00 00 F4 03 04 00 92 A7 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 EC DD 02 00 35 04 06 00 0A 19 3A B1 9A A3 6E A5 C7 DB 3C B9 C7 92 [19:12:15]CheckFolder [19:12:15]dirname=/storage/ofd_packets [19:12:15]CheckFolder done [19:12:15]ProducePacketName [19:12:15]name=ofd_packets/00187884 [19:12:15]NVStorageSaveData ofd_packets/00187884 [19:12:15]File name is /storage/ofd_packets/00187884 [19:12:15]Write 307 bytes [19:12:15]NVStorageSaveData done [19:12:15]OFDSenderStorePacket done [19:12:15]KKMCreateOFDPacket done [19:12:15]NVStorageSaveData kkm_last_timestamp [19:12:15]File name is /storage/kkm_last_timestamp [19:12:15]Write 4 bytes [19:12:15]NVStorageSaveData done [19:12:15]ExternCall_PrintAddStr [19:12:15]wPrintStart [19:12:15]Write to MH i2c: 01 00 00 1D 84 A1 [19:12:15]Write i2c OK [19:12:15]MH_I2C_Read... [19:12:15]Read from MH i2c: 01 [19:12:15]MH_I2C_Read... [19:12:15]Read from MH i2c: 01 07 00 [19:12:15]MH_I2C_Read... [19:12:15]Read from MH i2c: 01 07 00 1D 84 00 00 00 00 00 FF 0F B6 [19:12:15]RasterBufferAndPrint [19:12:15]line Счет N : (1)209936 [19:12:15]line ИНН: 02508201610067 [19:12:15]line Контрольно-Кассовый Чек [19:12:15]line ПРОДАЖА [19:12:15]line ТРК (МРК, ГНК) : 11 [19:12:15]line Товар: 2710194210 [19:12:15]line D-ENERGY ДТ-К-5 [19:12:15]line 32.390 * 77.20 [19:12:15]line = 2500.51 [19:12:15]line НДС 12% НСП 1% [19:12:15]line > о реализуемом товаре [19:12:15]line ОКРУГЛЕНИЕ: -0.51 [19:12:15]line ИТОГО: 2500.00 [19:12:15]line Внесено: 2500.00 [19:12:15]line СДАЧА: 0.00 [19:12:15]line НСП 1% : 22.13 [19:12:15]line НДС 12% : 265.54 [19:12:15]line Наличными: 2500.00 [19:12:15]line Безнал.: 0.00 [19:12:15]line Место: АЗС № 86 "Партнер Нефть" [19:12:15]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [19:12:15]line СНО: Общий режим [19:12:15]line Чек 348 21.10.2024 19:12 [19:12:15]line Смена: 460 ФФД: 1.0 [19:12:15]line ЗНМ: 0300000155 [19:12:15]line РНМ: 0000000000100030 [19:12:15]line Версия ККМ: 001 [19:12:15]line ФМ: 0000000000965340 [19:12:15]line ФД: 187884 [19:12:15]line ФПД: 11103475178147 [19:12:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T191218&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187884&fm=11103475178147&tin=02508201610067®Number=0000000000100030&sum=250000 [19:12:15]written 0, free lines is 4095 [19:12:15]OFD Sender: Processing packet 187884 [packets to send 1062, broken 1061] [19:12:15]ProducePacketName [19:12:15]name=ofd_packets/00187884 [19:12:15]OFD Sender: To server: pG, [19:12:15]CommunicateWithHost lk.salyk.kg:30040 [19:12:15]ConnectInit lk.salyk.kg [19:12:15]Connected sock=10 [19:12:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 67 1F 0D 01 F6 57 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 86 7E 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 C3 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BA 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 01 00 00 F4 03 04 00 92 A7 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 EC DD 02 00 35 04 06 00 0A 19 3A B1 9A A3 6E A5 C7 DB 3C B9 C7 92 [19:12:15]Write to MH i2c: 01 00 00 48 84 CC [19:12:15]Write i2c OK [19:12:15]MH_I2C_Read... [19:12:15]Read from MH i2c: 01 [19:12:15]MH_I2C_Read... [19:12:15]Read from MH i2c: 01 07 00 [19:12:15]MH_I2C_Read... [19:12:15]Read from MH i2c: 01 07 00 48 84 00 00 00 00 00 62 0C 41 [19:12:15]RasterBufferAndPrint [19:12:15]line [19:12:15]line [19:12:15]line [19:12:15]line [19:12:15]line [19:12:15]written 0, free lines is 3174 [19:12:15]MH_Cut [19:12:15]Write to MH i2c: D1 01 00 4F 84 01 A5 [19:12:15]Write i2c OK [19:12:15]MH_I2C_Read... [19:12:15]Read from MH i2c: D1 [19:12:15]MH_I2C_Read... [19:12:15]Read from MH i2c: D1 01 00 [19:12:15]MH_I2C_Read... [19:12:15]Read from MH i2c: D1 01 00 4F 84 00 A4 [19:12:15]Write to MH i2c: 01 00 00 50 84 D4 [19:12:15]Write i2c OK [19:12:15]MH_I2C_Read... [19:12:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 A3 40 47 00 FC DA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 EC DD 02 00 F4 03 04 00 81 51 16 67 B6 04 01 00 00 EC 67 BF 38 5A 97 F7 A2 [19:12:15]CommunicateWithHost err = 0 [19:12:15]CheckOFDResponse [19:12:15]1017 (14) - 77093643461234 [19:12:15]1041 (16) - 0000000000965340 [19:12:15]1040 (4) - 187884 [19:12:15]1012 (4) - 21.10.2024 13:05 [19:12:15]1206 (1) - 0 [19:12:15]OFD Sender: Remove packet 187884 [19:12:15]ProducePacketName [19:12:15]name=ofd_packets/00187884 [19:12:15]NVStorageDeleteData [19:12:16]OFD Sender: No OFD packet to send [19:12:16]*** Cut start [19:12:16]*** Partial cut [19:12:16]*** CUTSNS_PIN = 1 [19:12:16]*** CUTSNS_PIN = 0 [19:12:17]*** Brake cut motor [19:12:17]Read from MH i2c: 01 [19:12:17]MH_I2C_Read... [19:12:17]*** Stop cut motor [19:12:17]*** Cut end [19:12:17]Read from MH i2c: 01 07 00 [19:12:17]MH_I2C_Read... [19:12:17]Read from MH i2c: 01 07 00 50 84 00 00 00 00 00 FF 0F E9 [19:12:17]process_action close_receipt done [19:12:17]requested_data is exist [19:12:17]produce_requested_data [19:12:17]requested_item fm.sn is exist - process it [19:12:17]wFMCommunicate request_size=4 [19:12:17]MH_SAM_APDU [19:12:17]CAPDU: 80 11 00 00 [19:12:17]Write to MH i2c: E2 08 00 51 84 80 11 00 00 00 00 00 00 4F [19:12:17]Write i2c OK [19:12:17]MH_I2C_Read... [19:12:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:12:17]Read from MH i2c: E2 [19:12:17]MH_I2C_Read... [19:12:17]Read from MH i2c: E2 17 00 [19:12:17]MH_I2C_Read... [19:12:17]Read from MH i2c: E2 17 00 51 84 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 9D [19:12:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [19:12:17]wFMCommunicate OK [19:12:17]requested_item fd.num is exist - process it [19:12:17]SAM_PROTO_GetFieldsCounters [19:12:17]wFMCommunicate request_size=4 [19:12:17]MH_SAM_APDU [19:12:17]CAPDU: 80 13 00 00 [19:12:17]Write to MH i2c: E2 08 00 52 84 80 13 00 00 00 00 00 00 52 [19:12:17]Write i2c OK [19:12:17]MH_I2C_Read... [19:12:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:12:17]Read from MH i2c: E2 [19:12:17]MH_I2C_Read... [19:12:17]Read from MH i2c: E2 62 00 [19:12:17]MH_I2C_Read... [19:12:17]Read from MH i2c: E2 62 00 52 84 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 EC DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 5C 01 00 00 5E 04 04 00 5C 01 00 00 57 04 04 00 5D 01 00 00 19 04 04 00 00 00 00 00 90 00 08 [19:12:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 EC DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 5C 01 00 00 5E 04 04 00 5C 01 00 00 57 04 04 00 5D 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:12:17]wFMCommunicate OK [19:12:17]SAM_PROTO_GetFieldsCounters done [19:12:17]requested_item shift.num is exist - process it [19:12:17]requested_item shift.opened is exist - process it [19:12:17]req_shift_opened [19:12:17]FM_GetShiftState [19:12:17]SAM_PROTO_GetShiftState [19:12:17]wFMCommunicate request_size=4 [19:12:17]MH_SAM_APDU [19:12:17]CAPDU: 80 13 01 00 [19:12:17]Write to MH i2c: E2 08 00 53 84 80 13 01 00 00 00 00 00 54 [19:12:17]Write i2c OK [19:12:17]MH_I2C_Read... [19:12:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:12:17]Read from MH i2c: E2 [19:12:17]MH_I2C_Read... [19:12:17]Read from MH i2c: E2 0E 00 [19:12:17]MH_I2C_Read... [19:12:17]Read from MH i2c: E2 0E 00 53 84 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 B3 [19:12:17]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [19:12:17]wFMCommunicate OK [19:12:17]SAM_PROTO_GetShiftState done [19:12:17]FM_GetShiftState done [19:12:17]req_shift_opened done [19:12:17]requested_item shift.open_date is exist - process it [19:12:17]req_shift_open_date [19:12:17]req_shift_open_date done [19:12:17]produce_requested_data done [19:12:17]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187884,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [19:12:17]process_action_free close_receipt [19:12:17]json_value_free [19:12:17]json_value_free done [19:12:17]process_json_proto returns [19:12:17]Send response to host [19:12:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187884,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [19:12:17]free response buf [19:12:17]execute_script done [19:12:17]execute_script returns [19:12:17]free content buf [19:12:17]Sock 9.Close socket [19:12:17]Sock 9.Thread stoped [19:12:21]OFD Sender: No OFD packet to send [19:12:26]OFD Sender: No OFD packet to send [19:12:31]OFD Sender: No OFD packet to send [19:12:36]OFD Sender: No OFD packet to send [19:12:41]OFD Sender: No OFD packet to send [19:12:46]OFD Sender: No OFD packet to send [19:12:50]accept exits with 8 [19:12:50]New connection [19:12:50]New thread 3067014500 created [19:12:50]Thread 3067157860 joined [19:12:50]Waiting for new connection... [19:12:50] Sock 8.Parse request [19:12:50]Sock 8.Check first char [19:12:50]Sock 8.First char is OK [19:12:50]request: POST /json_proto HTTP/1.0 [19:12:50]Method: POST [19:12:50]URL: /json_proto [19:12:50]Method is POST - this is cgi request [19:12:50]url: /json_proto [19:12:50]query_string will be loaded in cgi processing [19:12:50]execute_cgi json_proto POST (null) [19:12:50]execute_cgi path=json_proto method=POST [19:12:50]POST find Content-Length [19:12:50]Host: 172.17.42.131:8080 [19:12:50]Content-Length: 677 [19:12:50]Content-Type: application/json [19:12:50] [19:12:50]POST finish read [19:12:50]Found Content-Length = 677 [19:12:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209937", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "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:12:50]execute_script... [19:12: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)209937", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "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:12:50]POST & json_proto [19:12:50]process_json_proto [19:12:50]json parsed OK: [19:12:50]protocol is kg_v1.0 [19:12:50]action value=close_receipt [19:12:50]process_action close_receipt [19:12:50]cmd_close_receipt [19:12:50]MH_GetDate [19:12:50]Write to MH i2c: F0 00 00 54 84 C7 [19:12:50]Write i2c OK [19:12:50]MH_I2C_Read... [19:12:50]Read from MH i2c: F0 [19:12:50]MH_I2C_Read... [19:12:50]Read from MH i2c: F0 09 00 [19:12:50]MH_I2C_Read... [19:12:50]Read from MH i2c: F0 09 00 54 84 00 B7 A7 16 67 A0 18 CA 66 93 [19:12:50]GetLastDocTimeStamp 1729537938 [19:12:50]current date 1729537975 [19:12:50]FM_GetShiftState [19:12:50]SAM_PROTO_GetShiftState [19:12:50]wFMCommunicate request_size=4 [19:12:50]MH_SAM_APDU [19:12:50]CAPDU: 80 13 01 00 [19:12:50]Write to MH i2c: E2 08 00 55 84 80 13 01 00 00 00 00 00 56 [19:12:50]Write i2c OK [19:12:50]MH_I2C_Read... [19:12:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:12:50]Read from MH i2c: E2 [19:12:50]MH_I2C_Read... [19:12:50]Read from MH i2c: E2 0E 00 [19:12:50]MH_I2C_Read... [19:12:50]Read from MH i2c: E2 0E 00 55 84 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 B5 [19:12:50]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [19:12:50]wFMCommunicate OK [19:12:50]SAM_PROTO_GetShiftState done [19:12:50]FM_GetShiftState done [19:12:50]opened in 1729469754 [19:12:50]opened+sec_in_day 1729556154 [19:12:50]quantity*price = 50041 [19:12:50]sum+1 = 50042 [19:12: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 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 349 21.10.2024 19:12 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 187885 ФПД: 47059611138474 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T191255&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187885&fm=47059611138474&tin=02508201610067®Number=0000000000100030&sum=50000 [19:12:51]StoreToDocumentArchive [19:12:51]shift 460 fd 187885 [19:12:51]save to /storage/0460/doc_00187885 [19:12:51]save last doc name /storage/0460/doc_00187885 to /storage/kkm_last_doc_name [19:12:51]save OK [19:12:51]Clear old archive folders... [19:12:51]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:12:51]tlvbuf is 010A3500 [19:12:51]SAM_PROTO_ClearQueue [19:12:51]wFMCommunicate request_size=4 [19:12:51]MH_SAM_APDU [19:12:51]CAPDU: 80 09 00 00 [19:12:51]Write to MH i2c: E2 08 00 62 84 80 09 00 00 00 00 00 00 58 [19:12:51]Write i2c OK [19:12:51]MH_I2C_Read... [19:12:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:12:51]Read from MH i2c: E2 [19:12:51]MH_I2C_Read... [19:12:51]Read from MH i2c: E2 03 00 [19:12:51]MH_I2C_Read... [19:12:51]Read from MH i2c: E2 03 00 62 84 00 90 00 5A [19:12:51]RAPDU: 90 00 [19:12:51]wFMCommunicate OK [19:12:51]SAM_PROTO_ClearQueue done [19:12:51]KKMCreateOFDPacket [19:12:51]OFDProtocolAddRootSTLVToBuf [19:12:51]FM_MakeSignedData [19:12:51]FM_MakeSignedData [19:12:51]SAM_PROTO_SignData [19:12:51]wFMCommunicate request_size=4 [19:12:51]MH_SAM_APDU [19:12:51]CAPDU: 80 0D 01 02 [19:12:51]Write to MH i2c: E2 08 00 63 84 80 0D 01 02 00 00 00 00 60 [19:12:51]Write i2c OK [19:12:51]MH_I2C_Read... [19:12:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:12:51]Read from MH i2c: E2 [19:12:51]MH_I2C_Read... [19:12:51]Read from MH i2c: E2 03 00 [19:12:51]MH_I2C_Read... [19:12:51]Read from MH i2c: E2 03 00 63 84 00 90 00 5B [19:12:51]RAPDU: 90 00 [19:12:51]wFMCommunicate OK [19:12:51]wFMCommunicate request_size=255 [19:12:51]MH_SAM_APDU [19:12: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 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 01 00 00 F4 03 04 00 B7 A7 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 ED DD 02 00 35 04 06 00 2A [19:12:51]Write to MH i2c: E2 02 01 64 84 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 01 00 00 F4 03 04 00 B7 A7 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 ED DD 02 00 35 04 06 00 2A 00 00 CF [19:12:51]Write i2c OK [19:12:51]MH_I2C_Read... [19:12:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:12:52]Read from MH i2c: E2 [19:12:52]MH_I2C_Read... [19:12:52]Read from MH i2c: E2 03 00 [19:12:52]MH_I2C_Read... [19:12:52]Read from MH i2c: E2 03 00 64 84 00 90 00 5C [19:12:52]RAPDU: 90 00 [19:12:52]wFMCommunicate OK [19:12:52]wFMCommunicate request_size=10 [19:12:52]MH_SAM_APDU [19:12:52]CAPDU: 80 0D 02 02 05 CC EB 67 B9 AA [19:12:52]Write to MH i2c: E2 0D 00 65 84 80 0D 02 02 05 00 CC EB 67 B9 AA 00 00 EE [19:12:52]Write i2c OK [19:12:52]MH_I2C_Read... [19:12:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:12:52]Read from MH i2c: E2 [19:12:52]MH_I2C_Read... [19:12:52]Read from MH i2c: E2 03 00 [19:12:52]MH_I2C_Read... [19:12:52]Read from MH i2c: E2 03 00 65 84 00 90 00 5D [19:12:52]RAPDU: 90 00 [19:12:52]wFMCommunicate OK [19:12:52]wFMCommunicate request_size=4 [19:12:52]MH_SAM_APDU [19:12:52]CAPDU: 80 0D 03 02 [19:12:52]Write to MH i2c: E2 08 00 66 84 80 0D 03 02 00 00 00 00 65 [19:12:52]Write i2c OK [19:12:52]MH_I2C_Read... [19:12:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:12:52]Read from MH i2c: E2 [19:12:52]MH_I2C_Read... [19:12:52]Read from MH i2c: E2 0B 00 [19:12:52]MH_I2C_Read... [19:12:52]Read from MH i2c: E2 0B 00 66 84 00 F8 B4 52 85 0F 65 15 B8 90 00 2A [19:12:52]RAPDU: F8 B4 52 85 0F 65 15 B8 90 00 [19:12:52]wFMCommunicate OK [19:12:52]SAM_PROTO_SignData done [19:12:52]FM_MakeSignedData done [19:12:52]CreateOFDProtocolMessage [19:12:52]wFMCommunicate request_size=4 [19:12:52]MH_SAM_APDU [19:12:52]CAPDU: 80 11 00 00 [19:12:52]Write to MH i2c: E2 08 00 67 84 80 11 00 00 00 00 00 00 65 [19:12:52]Write i2c OK [19:12:52]MH_I2C_Read... [19:12:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:12:52]Read from MH i2c: E2 [19:12:52]MH_I2C_Read... [19:12:52]Read from MH i2c: E2 17 00 [19:12:52]MH_I2C_Read... [19:12:52]Read from MH i2c: E2 17 00 67 84 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 B3 [19:12:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [19:12:52]wFMCommunicate OK [19:12:52]CreateOFDProtocolMessage done [19:12:52]OFDSenderStorePacket 187885 [19:12:52]StoreOFDPacket docnum=187885 [19:12:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 6C C7 07 01 06 7A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 01 00 00 F4 03 04 00 B7 A7 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 ED DD 02 00 35 04 06 00 2A CC EB 67 B9 AA F8 B4 52 85 0F 65 15 B8 [19:12:52]CheckFolder [19:12:52]dirname=/storage/ofd_packets [19:12:52]CheckFolder done [19:12:52]ProducePacketName [19:12:52]name=ofd_packets/00187885 [19:12:52]NVStorageSaveData ofd_packets/00187885 [19:12:52]File name is /storage/ofd_packets/00187885 [19:12:52]Write 301 bytes [19:12:52]NVStorageSaveData done [19:12:52]OFDSenderStorePacket done [19:12:52]KKMCreateOFDPacket done [19:12:52]NVStorageSaveData kkm_last_timestamp [19:12:52]File name is /storage/kkm_last_timestamp [19:12:52]Write 4 bytes [19:12:52]NVStorageSaveData done [19:12:52]ExternCall_PrintAddStr [19:12:52]wPrintStart [19:12:52]Write to MH i2c: 01 00 00 68 84 EC [19:12:52]Write i2c OK [19:12:52]MH_I2C_Read... [19:12:52]Read from MH i2c: 01 [19:12:52]MH_I2C_Read... [19:12:52]Read from MH i2c: 01 07 00 [19:12:52]MH_I2C_Read... [19:12:52]Read from MH i2c: 01 07 00 68 84 00 00 00 00 00 FF 0F 01 [19:12:52]RasterBufferAndPrint [19:12:52]line Счет N : (1)209937 [19:12:52]line ИНН: 02508201610067 [19:12:52]line Контрольно-Кассовый Чек [19:12:52]line ПРОДАЖА [19:12:52]line ТРК (МРК, ГНК) : 42 [19:12:52]line Товар: 2710124130 [19:12:52]line Аи-92-К-3 [19:12:52]line 7.480 * 66.90 [19:12:52]line = 500.41 [19:12:52]line НДС 12% НСП 1% [19:12:52]line > о реализуемом товаре [19:12:52]line ОКРУГЛЕНИЕ: -0.41 [19:12:52]line ИТОГО: 500.00 [19:12:52]line Внесено: 500.00 [19:12:52]line СДАЧА: 0.00 [19:12:52]line НСП 1% : 4.43 [19:12:52]line НДС 12% : 53.14 [19:12:52]line Наличными: 500.00 [19:12:52]line Безнал.: 0.00 [19:12:52]line Место: АЗС № 86 "Партнер Нефть" [19:12:52]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [19:12:52]line СНО: Общий режим [19:12:52]line Чек 349 21.10.2024 19:12 [19:12:52]line Смена: 460 ФФД: 1.0 [19:12:52]line ЗНМ: 0300000155 [19:12:52]line РНМ: 0000000000100030 [19:12:52]line Версия ККМ: 001 [19:12:52]line ФМ: 0000000000965340 [19:12:52]line ФД: 187885 [19:12:52]line ФПД: 47059611138474 [19:12:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T191255&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187885&fm=47059611138474&tin=02508201610067®Number=0000000000100030&sum=50000 [19:12:52]OFD Sender: Processing packet 187885 [packets to send 1062, broken 1061] [19:12:52]ProducePacketName [19:12:52]name=ofd_packets/00187885 [19:12:52]OFD Sender: To server: pG, [19:12:52]CommunicateWithHost lk.salyk.kg:30040 [19:12:52]ConnectInit lk.salyk.kg [19:12:52]written 0, free lines is 4095 [19:12:52]Connected sock=9 [19:12:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 6C C7 07 01 06 7A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 01 00 00 F4 03 04 00 B7 A7 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 ED DD 02 00 35 04 06 00 2A CC EB 67 B9 AA F8 B4 52 85 0F 65 15 B8 [19:12:52]Write to MH i2c: 01 00 00 93 84 17 [19:12:52]Write i2c OK [19:12:52]MH_I2C_Read... [19:12:52]Read from MH i2c: 01 [19:12:52]MH_I2C_Read... [19:12:52]Read from MH i2c: 01 07 00 [19:12:52]MH_I2C_Read... [19:12:52]Read from MH i2c: 01 07 00 93 84 00 00 00 00 00 64 0C 8E [19:12:52]RasterBufferAndPrint [19:12:52]line [19:12:52]line [19:12:52]line [19:12:52]line [19:12:52]line [19:12:52]written 0, free lines is 3176 [19:12:52]MH_Cut [19:12:52]Write to MH i2c: D1 01 00 9A 84 01 F0 [19:12:52]Write i2c OK [19:12:52]MH_I2C_Read... [19:12:52]Read from MH i2c: D1 [19:12:52]MH_I2C_Read... [19:12:52]Read from MH i2c: D1 01 00 [19:12:52]MH_I2C_Read... [19:12:52]Read from MH i2c: D1 01 00 9A 84 00 EF [19:12:52]Write to MH i2c: 01 00 00 9B 84 1F [19:12:52]Write i2c OK [19:12:52]MH_I2C_Read... [19:12:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 EB 23 47 00 BF B3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 ED DD 02 00 F4 03 04 00 A6 51 16 67 B6 04 01 00 00 53 63 32 5A DD 18 C1 B0 [19:12:52]CommunicateWithHost err = 0 [19:12:52]CheckOFDResponse [19:12:52]1017 (14) - 77093643461234 [19:12:52]1041 (16) - 0000000000965340 [19:12:52]1040 (4) - 187885 [19:12:52]1012 (4) - 21.10.2024 13:05 [19:12:52]1206 (1) - 0 [19:12:52]OFD Sender: Remove packet 187885 [19:12:52]ProducePacketName [19:12:52]name=ofd_packets/00187885 [19:12:52]NVStorageDeleteData [19:12:53]OFD Sender: No OFD packet to send [19:12:53]*** Cut start [19:12:53]*** Partial cut [19:12:53]*** CUTSNS_PIN = 1 [19:12:53]*** CUTSNS_PIN = 0 [19:12:54]*** Brake cut motor [19:12:54]Read from MH i2c: 01 [19:12:54]MH_I2C_Read... [19:12:54]*** Stop cut motor [19:12:54]*** Cut end [19:12:54]Read from MH i2c: 01 07 00 [19:12:54]MH_I2C_Read... [19:12:54]Read from MH i2c: 01 07 00 9B 84 00 00 00 00 00 FF 0F 34 [19:12:54]process_action close_receipt done [19:12:54]requested_data is exist [19:12:54]produce_requested_data [19:12:54]requested_item fm.sn is exist - process it [19:12:54]wFMCommunicate request_size=4 [19:12:54]MH_SAM_APDU [19:12:54]CAPDU: 80 11 00 00 [19:12:54]Write to MH i2c: E2 08 00 9C 84 80 11 00 00 00 00 00 00 9A [19:12:54]Write i2c OK [19:12:54]MH_I2C_Read... [19:12:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:12:54]Read from MH i2c: E2 [19:12:54]MH_I2C_Read... [19:12:54]Read from MH i2c: E2 17 00 [19:12:54]MH_I2C_Read... [19:12:54]Read from MH i2c: E2 17 00 9C 84 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 E8 [19:12:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [19:12:54]wFMCommunicate OK [19:12:54]requested_item fd.num is exist - process it [19:12:54]SAM_PROTO_GetFieldsCounters [19:12:54]wFMCommunicate request_size=4 [19:12:54]MH_SAM_APDU [19:12:54]CAPDU: 80 13 00 00 [19:12:54]Write to MH i2c: E2 08 00 9D 84 80 13 00 00 00 00 00 00 9D [19:12:54]Write i2c OK [19:12:54]MH_I2C_Read... [19:12:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:12:54]Read from MH i2c: E2 [19:12:54]MH_I2C_Read... [19:12:54]Read from MH i2c: E2 62 00 [19:12:54]MH_I2C_Read... [19:12:54]Read from MH i2c: E2 62 00 9D 84 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 ED DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 5D 01 00 00 5E 04 04 00 5D 01 00 00 57 04 04 00 5E 01 00 00 19 04 04 00 00 00 00 00 90 00 57 [19:12:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 ED DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 5D 01 00 00 5E 04 04 00 5D 01 00 00 57 04 04 00 5E 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:12:54]wFMCommunicate OK [19:12:54]SAM_PROTO_GetFieldsCounters done [19:12:54]requested_item shift.num is exist - process it [19:12:54]requested_item shift.opened is exist - process it [19:12:54]req_shift_opened [19:12:54]FM_GetShiftState [19:12:54]SAM_PROTO_GetShiftState [19:12:54]wFMCommunicate request_size=4 [19:12:54]MH_SAM_APDU [19:12:54]CAPDU: 80 13 01 00 [19:12:54]Write to MH i2c: E2 08 00 9E 84 80 13 01 00 00 00 00 00 9F [19:12:54]Write i2c OK [19:12:54]MH_I2C_Read... [19:12:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:12:54]Read from MH i2c: E2 [19:12:54]MH_I2C_Read... [19:12:54]Read from MH i2c: E2 0E 00 [19:12:54]MH_I2C_Read... [19:12:54]Read from MH i2c: E2 0E 00 9E 84 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 FE [19:12:54]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [19:12:54]wFMCommunicate OK [19:12:54]SAM_PROTO_GetShiftState done [19:12:54]FM_GetShiftState done [19:12:54]req_shift_opened done [19:12:54]requested_item shift.open_date is exist - process it [19:12:54]req_shift_open_date [19:12:54]req_shift_open_date done [19:12:54]produce_requested_data done [19:12:54]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187885,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [19:12:54]process_action_free close_receipt [19:12:54]json_value_free [19:12:54]json_value_free done [19:12:54]process_json_proto returns [19:12:54]Send response to host [19:12:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187885,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [19:12:54]free response buf [19:12:54]execute_script done [19:12:54]execute_script returns [19:12:54]free content buf [19:12:54]Sock 8.Close socket [19:12:54]Sock 8.Thread stoped [19:12:58]OFD Sender: No OFD packet to send [19:13:03]OFD Sender: No OFD packet to send [19:13:08]OFD Sender: No OFD packet to send [19:13:13]OFD Sender: No OFD packet to send [19:13:18]OFD Sender: No OFD packet to send [19:13:23]OFD Sender: No OFD packet to send [19:13:28]OFD Sender: No OFD packet to send [19:13:33]OFD Sender: No OFD packet to send [19:13:38]accept exits with 10 [19:13:38]New connection [19:13:38]New thread 3067157860 created [19:13:38]Thread 3067014500 joined [19:13:38]Waiting for new connection... [19:13:38] Sock 10.Parse request [19:13:38]Sock 10.Check first char [19:13:38]Sock 10.First char is OK [19:13:38]request: POST /json_proto HTTP/1.0 [19:13:38]Method: POST [19:13:38]URL: /json_proto [19:13:38]Method is POST - this is cgi request [19:13:38]url: /json_proto [19:13:38]query_string will be loaded in cgi processing [19:13:38]execute_cgi json_proto POST (null) [19:13:38]execute_cgi path=json_proto method=POST [19:13:38]POST find Content-Length [19:13:38]Host: 172.17.42.131:8080 [19:13:38]Content-Length: 688 [19:13:38]Content-Type: application/json [19:13:38] [19:13:38]POST finish read [19:13:38]Found Content-Length = 688 [19:13:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209938", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 18.140, "sum" : 1400.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1400.00, "total" : 1400.00, "payments": [ { "type": 0, "sum" : 1400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:13:38]execute_script... [19:13: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)209938", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 18.140, "sum" : 1400.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1400.00, "total" : 1400.00, "payments": [ { "type": 0, "sum" : 1400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:13:38]POST & json_proto [19:13:38]process_json_proto [19:13:38]json parsed OK: [19:13:38]protocol is kg_v1.0 [19:13:38]action value=close_receipt [19:13:38]process_action close_receipt [19:13:38]cmd_close_receipt [19:13:38]MH_GetDate [19:13:38]Write to MH i2c: F0 00 00 9F 84 12 [19:13:38]Write i2c OK [19:13:38]MH_I2C_Read... [19:13:38]Read from MH i2c: F0 [19:13:38]MH_I2C_Read... [19:13:38]Read from MH i2c: F0 09 00 [19:13:38]MH_I2C_Read... [19:13:38]Read from MH i2c: F0 09 00 9F 84 00 E7 A7 16 67 A0 18 CA 66 0E [19:13:38]GetLastDocTimeStamp 1729537975 [19:13:38]current date 1729538023 [19:13:38]FM_GetShiftState [19:13:38]SAM_PROTO_GetShiftState [19:13:38]wFMCommunicate request_size=4 [19:13:38]MH_SAM_APDU [19:13:38]CAPDU: 80 13 01 00 [19:13:38]Write to MH i2c: E2 08 00 A0 84 80 13 01 00 00 00 00 00 A1 [19:13:38]Write i2c OK [19:13:38]MH_I2C_Read... [19:13:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:13:38]Read from MH i2c: E2 [19:13:38]MH_I2C_Read... [19:13:38]Read from MH i2c: E2 0E 00 [19:13:38]MH_I2C_Read... [19:13:38]Read from MH i2c: E2 0E 00 A0 84 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 00 [19:13:38]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [19:13:38]wFMCommunicate OK [19:13:38]SAM_PROTO_GetShiftState done [19:13:38]FM_GetShiftState done [19:13:38]opened in 1729469754 [19:13:38]opened+sec_in_day 1729556154 [19:13:38]quantity*price = 140040 [19:13:38]sum+1 = 140042 [19:13:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 1400.00 Внесено: 1400.00 СДАЧА: 0.00 НСП 1% : 12.39 НДС 12% : 148.72 Наличными: 1400.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 350 21.10.2024 19:13 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 187886 ФПД: 206048477864835 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T191343&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187886&fm=206048477864835&tin=02508201610067®Number=0000000000100030&sum=140000 [19:13:39]StoreToDocumentArchive [19:13:39]shift 460 fd 187886 [19:13:39]save to /storage/0460/doc_00187886 [19:13:39]save last doc name /storage/0460/doc_00187886 to /storage/kkm_last_doc_name [19:13:39]save OK [19:13:39]Clear old archive folders... [19:13:39]ProcessDocumentItem done err = 0, tmpTLVsize=257 [19:13:39]tlvbuf is 010FA0F0 [19:13:39]SAM_PROTO_ClearQueue [19:13:39]wFMCommunicate request_size=4 [19:13:39]MH_SAM_APDU [19:13:39]CAPDU: 80 09 00 00 [19:13:39]Write to MH i2c: E2 08 00 AD 84 80 09 00 00 00 00 00 00 A3 [19:13:39]Write i2c OK [19:13:39]MH_I2C_Read... [19:13:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:13:39]Read from MH i2c: E2 [19:13:39]MH_I2C_Read... [19:13:39]Read from MH i2c: E2 03 00 [19:13:39]MH_I2C_Read... [19:13:39]Read from MH i2c: E2 03 00 AD 84 00 90 00 A5 [19:13:39]RAPDU: 90 00 [19:13:39]wFMCommunicate OK [19:13:39]SAM_PROTO_ClearQueue done [19:13:39]KKMCreateOFDPacket [19:13:39]OFDProtocolAddRootSTLVToBuf [19:13:39]FM_MakeSignedData [19:13:39]FM_MakeSignedData [19:13:39]SAM_PROTO_SignData [19:13:39]wFMCommunicate request_size=4 [19:13:39]MH_SAM_APDU [19:13:39]CAPDU: 80 0D 01 02 [19:13:39]Write to MH i2c: E2 08 00 AE 84 80 0D 01 02 00 00 00 00 AB [19:13:39]Write i2c OK [19:13:39]MH_I2C_Read... [19:13:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:13:39]Read from MH i2c: E2 [19:13:39]MH_I2C_Read... [19:13:39]Read from MH i2c: E2 03 00 [19:13:39]MH_I2C_Read... [19:13:39]Read from MH i2c: E2 03 00 AE 84 00 90 00 A6 [19:13:39]RAPDU: 90 00 [19:13:39]wFMCommunicate OK [19:13:39]wFMCommunicate request_size=255 [19:13:39]MH_SAM_APDU [19:13:39]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 DC 46 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 09 23 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 22 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 18 3A 00 00 00 00 07 04 06 00 E0 22 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 01 00 00 F4 03 04 00 E7 A7 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 EE DD 02 [19:13:39]Write to MH i2c: E2 02 01 AF 84 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 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 DC 46 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 09 23 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 22 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 18 3A 00 00 00 00 07 04 06 00 E0 22 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 01 00 00 F4 03 04 00 E7 A7 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 EE DD 02 00 00 F5 [19:13:39]Write i2c OK [19:13:39]MH_I2C_Read... [19:13:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:13:39]Read from MH i2c: E2 [19:13:39]MH_I2C_Read... [19:13:39]Read from MH i2c: E2 03 00 [19:13:39]MH_I2C_Read... [19:13:39]Read from MH i2c: E2 03 00 AF 84 00 90 00 A7 [19:13:39]RAPDU: 90 00 [19:13:39]wFMCommunicate OK [19:13:39]wFMCommunicate request_size=16 [19:13:39]MH_SAM_APDU [19:13:39]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 BB 66 66 54 63 83 [19:13:39]Write to MH i2c: E2 13 00 B0 84 80 0D 02 02 0B 00 00 35 04 06 00 BB 66 66 54 63 83 00 00 C4 [19:13:39]Write i2c OK [19:13:39]MH_I2C_Read... [19:13:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:13:39]Read from MH i2c: E2 [19:13:39]MH_I2C_Read... [19:13:39]Read from MH i2c: E2 03 00 [19:13:39]MH_I2C_Read... [19:13:39]Read from MH i2c: E2 03 00 B0 84 00 90 00 A8 [19:13:39]RAPDU: 90 00 [19:13:39]wFMCommunicate OK [19:13:39]wFMCommunicate request_size=4 [19:13:39]MH_SAM_APDU [19:13:39]CAPDU: 80 0D 03 02 [19:13:39]Write to MH i2c: E2 08 00 B1 84 80 0D 03 02 00 00 00 00 B0 [19:13:39]Write i2c OK [19:13:39]MH_I2C_Read... [19:13:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:13:39]Read from MH i2c: E2 [19:13:39]MH_I2C_Read... [19:13:39]Read from MH i2c: E2 0B 00 [19:13:39]MH_I2C_Read... [19:13:39]Read from MH i2c: E2 0B 00 B1 84 00 62 D5 E1 26 37 5D FF C9 90 00 4B [19:13:39]RAPDU: 62 D5 E1 26 37 5D FF C9 90 00 [19:13:39]wFMCommunicate OK [19:13:39]SAM_PROTO_SignData done [19:13:39]FM_MakeSignedData done [19:13:39]CreateOFDProtocolMessage [19:13:39]wFMCommunicate request_size=4 [19:13:39]MH_SAM_APDU [19:13:39]CAPDU: 80 11 00 00 [19:13:39]Write to MH i2c: E2 08 00 B2 84 80 11 00 00 00 00 00 00 B0 [19:13:39]Write i2c OK [19:13:39]MH_I2C_Read... [19:13:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:13:39]Read from MH i2c: E2 [19:13:39]MH_I2C_Read... [19:13:39]Read from MH i2c: E2 17 00 [19:13:39]MH_I2C_Read... [19:13:39]Read from MH i2c: E2 17 00 B2 84 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 FE [19:13:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [19:13:39]wFMCommunicate OK [19:13:39]CreateOFDProtocolMessage done [19:13:39]OFDSenderStorePacket 187886 [19:13:39]StoreOFDPacket docnum=187886 [19:13:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 FC BB 0D 01 25 06 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 DC 46 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 09 23 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 22 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 18 3A 00 00 00 00 07 04 06 00 E0 22 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 01 00 00 F4 03 04 00 E7 A7 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 EE DD 02 00 35 04 06 00 BB 66 66 54 63 83 62 D5 E1 26 37 5D FF C9 [19:13:39]CheckFolder [19:13:39]dirname=/storage/ofd_packets [19:13:39]CheckFolder done [19:13:39]ProducePacketName [19:13:39]name=ofd_packets/00187886 [19:13:39]NVStorageSaveData ofd_packets/00187886 [19:13:39]File name is /storage/ofd_packets/00187886 [19:13:39]Write 307 bytes [19:13:39]NVStorageSaveData done [19:13:39]OFDSenderStorePacket done [19:13:39]KKMCreateOFDPacket done [19:13:39]NVStorageSaveData kkm_last_timestamp [19:13:39]File name is /storage/kkm_last_timestamp [19:13:39]Write 4 bytes [19:13:39]NVStorageSaveData done [19:13:39]ExternCall_PrintAddStr [19:13:39]wPrintStart [19:13:39]Write to MH i2c: 01 00 00 B3 84 37 [19:13:39]Write i2c OK [19:13:39]MH_I2C_Read... [19:13:39]Read from MH i2c: 01 [19:13:39]MH_I2C_Read... [19:13:39]Read from MH i2c: 01 07 00 [19:13:39]MH_I2C_Read... [19:13:39]Read from MH i2c: 01 07 00 B3 84 00 00 00 00 00 FF 0F 4C [19:13:39]RasterBufferAndPrint [19:13:39]line Счет N : (1)209938 [19:13:39]line ИНН: 02508201610067 [19:13:39]line Контрольно-Кассовый Чек [19:13:39]line ПРОДАЖА [19:13:39]line ТРК (МРК, ГНК) : 31 [19:13:39]line Товар: 2710194210 [19:13:39]line D-ENERGY ДТ-К-5 [19:13:39]line 18.140 * 77.20 [19:13:39]line = 1400.41 [19:13:39]line НДС 12% НСП 1% [19:13:39]line > о реализуемом товаре [19:13:39]line ОКРУГЛЕНИЕ: -0.41 [19:13:39]line ИТОГО: 1400.00 [19:13:39]line Внесено: 1400.00 [19:13:39]line СДАЧА: 0.00 [19:13:39]line НСП 1% : 12.39 [19:13:39]line НДС 12% : 148.72 [19:13:39]line Наличными: 1400.00 [19:13:39]line Безнал.: 0.00 [19:13:39]line Место: АЗС № 86 "Партнер Нефть" [19:13:39]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [19:13:39]line СНО: Общий режим [19:13:39]line Чек 350 21.10.2024 19:13 [19:13:39]line Смена: 460 ФФД: 1.0 [19:13:39]line ЗНМ: 0300000155 [19:13:39]line РНМ: 0000000000100030 [19:13:39]line Версия ККМ: 001 [19:13:39]line ФМ: 0000000000965340 [19:13:39]line ФД: 187886 [19:13:39]line ФПД: 206048477864835 [19:13:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T191343&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187886&fm=206048477864835&tin=02508201610067®Number=0000000000100030&sum=140000 [19:13:39]written 0, free lines is 4095 [19:13:39]OFD Sender: Processing packet 187886 [packets to send 1062, broken 1061] [19:13:39]ProducePacketName [19:13:39]name=ofd_packets/00187886 [19:13:39]OFD Sender: To server: pG, [19:13:39]CommunicateWithHost lk.salyk.kg:30040 [19:13:39]ConnectInit lk.salyk.kg [19:13:40]Write to MH i2c: 01 00 00 DE 84 62 [19:13:40]Write i2c OK [19:13:40]MH_I2C_Read... [19:13:40]Read from MH i2c: 01 [19:13:40]MH_I2C_Read... [19:13:40]Read from MH i2c: 01 07 00 [19:13:40]MH_I2C_Read... [19:13:40]Read from MH i2c: 01 07 00 DE 84 00 00 00 00 00 62 0C D7 [19:13:40]RasterBufferAndPrint [19:13:40]line [19:13:40]line [19:13:40]line [19:13:40]line [19:13:40]line [19:13:40]written 0, free lines is 3173 [19:13:40]MH_Cut [19:13:40]Write to MH i2c: D1 01 00 E5 84 01 3B [19:13:40]Write i2c OK [19:13:40]MH_I2C_Read... [19:13:40]Read from MH i2c: D1 [19:13:40]MH_I2C_Read... [19:13:40]Read from MH i2c: D1 01 00 [19:13:40]MH_I2C_Read... [19:13:40]Read from MH i2c: D1 01 00 E5 84 00 3A [19:13:40]Write to MH i2c: 01 00 00 E6 84 6A [19:13:40]Write i2c OK [19:13:40]MH_I2C_Read... [19:13:41]*** Cut start [19:13:41]*** Partial cut [19:13:41]*** CUTSNS_PIN = 1 [19:13:41]*** CUTSNS_PIN = 0 [19:13:41]*** Brake cut motor [19:13:42]Read from MH i2c: 01 [19:13:42]MH_I2C_Read... [19:13:42]*** Stop cut motor [19:13:42]*** Cut end [19:13:42]Read from MH i2c: 01 07 00 [19:13:42]MH_I2C_Read... [19:13:42]Read from MH i2c: 01 07 00 E6 84 00 00 00 00 00 FF 0F 7F [19:13:42]process_action close_receipt done [19:13:42]requested_data is exist [19:13:42]produce_requested_data [19:13:42]requested_item fm.sn is exist - process it [19:13:42]wFMCommunicate request_size=4 [19:13:42]MH_SAM_APDU [19:13:42]CAPDU: 80 11 00 00 [19:13:42]Write to MH i2c: E2 08 00 E7 84 80 11 00 00 00 00 00 00 E5 [19:13:42]Write i2c OK [19:13:42]MH_I2C_Read... [19:13:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:13:42]Read from MH i2c: E2 [19:13:42]MH_I2C_Read... [19:13:42]Read from MH i2c: E2 17 00 [19:13:42]MH_I2C_Read... [19:13:42]Read from MH i2c: E2 17 00 E7 84 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 33 [19:13:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [19:13:42]wFMCommunicate OK [19:13:42]requested_item fd.num is exist - process it [19:13:42]SAM_PROTO_GetFieldsCounters [19:13:42]wFMCommunicate request_size=4 [19:13:42]MH_SAM_APDU [19:13:42]CAPDU: 80 13 00 00 [19:13:42]Write to MH i2c: E2 08 00 E8 84 80 13 00 00 00 00 00 00 E8 [19:13:42]Write i2c OK [19:13:42]MH_I2C_Read... [19:13:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:13:42]Read from MH i2c: E2 [19:13:42]MH_I2C_Read... [19:13:42]Read from MH i2c: E2 62 00 [19:13:42]MH_I2C_Read... [19:13:42]Read from MH i2c: E2 62 00 E8 84 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 EE DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 5E 01 00 00 5E 04 04 00 5E 01 00 00 57 04 04 00 5F 01 00 00 19 04 04 00 00 00 00 00 90 00 A6 [19:13:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 EE DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 5E 01 00 00 5E 04 04 00 5E 01 00 00 57 04 04 00 5F 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:13:42]wFMCommunicate OK [19:13:42]SAM_PROTO_GetFieldsCounters done [19:13:42]requested_item shift.num is exist - process it [19:13:42]requested_item shift.opened is exist - process it [19:13:42]req_shift_opened [19:13:42]FM_GetShiftState [19:13:42]SAM_PROTO_GetShiftState [19:13:42]wFMCommunicate request_size=4 [19:13:42]MH_SAM_APDU [19:13:42]CAPDU: 80 13 01 00 [19:13:42]Write to MH i2c: E2 08 00 E9 84 80 13 01 00 00 00 00 00 EA [19:13:42]Write i2c OK [19:13:42]MH_I2C_Read... [19:13:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:13:42]Read from MH i2c: E2 [19:13:42]MH_I2C_Read... [19:13:42]Read from MH i2c: E2 0E 00 [19:13:42]MH_I2C_Read... [19:13:42]Read from MH i2c: E2 0E 00 E9 84 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 49 [19:13:42]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [19:13:42]wFMCommunicate OK [19:13:42]SAM_PROTO_GetShiftState done [19:13:42]FM_GetShiftState done [19:13:42]req_shift_opened done [19:13:42]requested_item shift.open_date is exist - process it [19:13:42]req_shift_open_date [19:13:42]req_shift_open_date done [19:13:42]produce_requested_data done [19:13:42]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187886,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [19:13:42]process_action_free close_receipt [19:13:42]json_value_free [19:13:42]json_value_free done [19:13:42]process_json_proto returns [19:13:42]Send response to host [19:13:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187886,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [19:13:42]free response buf [19:13:42]execute_script done [19:13:42]execute_script returns [19:13:42]free content buf [19:13:42]Sock 10.Close socket [19:13:42]Sock 10.Thread stoped [19:14:05]accept exits with 8 [19:14:05]New connection [19:14:05]New thread 3067014500 created [19:14:05]Thread 3067157860 joined [19:14:05]Waiting for new connection... [19:14:05] Sock 8.Parse request [19:14:05]Sock 8.Check first char [19:14:05]Sock 8.First char is OK [19:14:05]request: POST /json_proto HTTP/1.0 [19:14:05]Method: POST [19:14:05]URL: /json_proto [19:14:05]Method is POST - this is cgi request [19:14:05]url: /json_proto [19:14:05]query_string will be loaded in cgi processing [19:14:05]execute_cgi json_proto POST (null) [19:14:05]execute_cgi path=json_proto method=POST [19:14:05]POST find Content-Length [19:14:05]Host: 172.17.42.131:8080 [19:14:05]Content-Length: 766 [19:14:05]Content-Type: application/json [19:14:05] [19:14:05]POST finish read [19:14:05]Found Content-Length = 766 [19:14:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209939", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "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" ] } } [19:14:05]execute_script... [19:14: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)209939", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "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" ] } } [19:14:05]POST & json_proto [19:14:05]process_json_proto [19:14:05]json parsed OK: [19:14:05]protocol is kg_v1.0 [19:14:05]action value=close_receipt [19:14:05]process_action close_receipt [19:14:05]cmd_close_receipt [19:14:05]MH_GetDate [19:14:05]Write to MH i2c: F0 00 00 EA 84 5D [19:14:05]Write i2c OK [19:14:05]MH_I2C_Read... [19:14:05]Read from MH i2c: F0 [19:14:05]MH_I2C_Read... [19:14:05]Read from MH i2c: F0 09 00 [19:14:05]MH_I2C_Read... [19:14:05]Read from MH i2c: F0 09 00 EA 84 00 03 A8 16 67 A0 18 CA 66 76 [19:14:05]GetLastDocTimeStamp 1729538023 [19:14:05]current date 1729538051 [19:14:05]FM_GetShiftState [19:14:05]SAM_PROTO_GetShiftState [19:14:05]wFMCommunicate request_size=4 [19:14:05]MH_SAM_APDU [19:14:05]CAPDU: 80 13 01 00 [19:14:05]Write to MH i2c: E2 08 00 EB 84 80 13 01 00 00 00 00 00 EC [19:14:05]Write i2c OK [19:14:05]MH_I2C_Read... [19:14:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:14:05]Read from MH i2c: E2 [19:14:05]MH_I2C_Read... [19:14:05]Read from MH i2c: E2 0E 00 [19:14:05]MH_I2C_Read... [19:14:05]Read from MH i2c: E2 0E 00 EB 84 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 4B [19:14:05]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [19:14:05]wFMCommunicate OK [19:14:05]SAM_PROTO_GetShiftState done [19:14:05]FM_GetShiftState done [19:14:05]opened in 1729469754 [19:14:05]opened+sec_in_day 1729556154 [19:14:05]quantity*price = 30038 [19:14:05]sum+1 = 30039 [19:14:05]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 300.38 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 0.00 Безнал.: 300.38 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 351 21.10.2024 19:14 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000965340 ФД: 187887 ФПД: 125273919452274 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T191411&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187887&fm=125273919452274&tin=02508201610067®Number=0000000000100030&sum=30038 [19:14:06]StoreToDocumentArchive [19:14:06]shift 460 fd 187887 [19:14:06]save to /storage/0460/doc_00187887 [19:14:06]save last doc name /storage/0460/doc_00187887 to /storage/kkm_last_doc_name [19:14:06]save OK [19:14:06]Clear old archive folders... [19:14:06]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:14:06]tlvbuf is 0123D770 [19:14:06]SAM_PROTO_ClearQueue [19:14:06]wFMCommunicate request_size=4 [19:14:06]MH_SAM_APDU [19:14:06]CAPDU: 80 09 00 00 [19:14:06]Write to MH i2c: E2 08 00 F8 84 80 09 00 00 00 00 00 00 EE [19:14:06]Write i2c OK [19:14:06]MH_I2C_Read... [19:14:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:14:06]Read from MH i2c: E2 [19:14:06]MH_I2C_Read... [19:14:06]Read from MH i2c: E2 03 00 [19:14:06]MH_I2C_Read... [19:14:06]Read from MH i2c: E2 03 00 F8 84 00 90 00 F0 [19:14:06]RAPDU: 90 00 [19:14:06]wFMCommunicate OK [19:14:06]SAM_PROTO_ClearQueue done [19:14:06]KKMCreateOFDPacket [19:14:06]OFDProtocolAddRootSTLVToBuf [19:14:06]FM_MakeSignedData [19:14:06]FM_MakeSignedData [19:14:06]SAM_PROTO_SignData [19:14:06]wFMCommunicate request_size=4 [19:14:06]MH_SAM_APDU [19:14:06]CAPDU: 80 0D 01 02 [19:14:06]Write to MH i2c: E2 08 00 F9 84 80 0D 01 02 00 00 00 00 F6 [19:14:06]Write i2c OK [19:14:06]MH_I2C_Read... [19:14:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:14:06]Read from MH i2c: E2 [19:14:06]MH_I2C_Read... [19:14:06]Read from MH i2c: E2 03 00 [19:14:06]MH_I2C_Read... [19:14:06]Read from MH i2c: E2 03 00 F9 84 00 90 00 F1 [19:14:06]RAPDU: 90 00 [19:14:06]wFMCommunicate OK [19:14:06]wFMCommunicate request_size=255 [19:14:06]MH_SAM_APDU [19:14: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 33 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 5F 01 00 00 F4 03 04 00 03 A8 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 EF DD 02 00 35 04 06 00 71 [19:14:06]Write to MH i2c: E2 02 01 FA 84 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 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 5F 01 00 00 F4 03 04 00 03 A8 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 EF DD 02 00 35 04 06 00 71 00 00 3D [19:14:06]Write i2c OK [19:14:06]MH_I2C_Read... [19:14:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:14:07]Read from MH i2c: E2 [19:14:07]MH_I2C_Read... [19:14:07]Read from MH i2c: E2 03 00 [19:14:07]MH_I2C_Read... [19:14:07]Read from MH i2c: E2 03 00 FA 84 00 90 00 F2 [19:14:07]RAPDU: 90 00 [19:14:07]wFMCommunicate OK [19:14:07]wFMCommunicate request_size=10 [19:14:07]MH_SAM_APDU [19:14:07]CAPDU: 80 0D 02 02 05 EF 9B 77 F4 72 [19:14:07]Write to MH i2c: E2 0D 00 FB 84 80 0D 02 02 05 00 EF 9B 77 F4 72 00 00 6A [19:14:07]Write i2c OK [19:14:07]MH_I2C_Read... [19:14:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:14:07]Read from MH i2c: E2 [19:14:07]MH_I2C_Read... [19:14:07]Read from MH i2c: E2 03 00 [19:14:07]MH_I2C_Read... [19:14:07]Read from MH i2c: E2 03 00 FB 84 00 90 00 F3 [19:14:07]RAPDU: 90 00 [19:14:07]wFMCommunicate OK [19:14:07]wFMCommunicate request_size=4 [19:14:07]MH_SAM_APDU [19:14:07]CAPDU: 80 0D 03 02 [19:14:07]Write to MH i2c: E2 08 00 FC 84 80 0D 03 02 00 00 00 00 FB [19:14:07]Write i2c OK [19:14:07]MH_I2C_Read... [19:14:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:14:07]Read from MH i2c: E2 [19:14:07]MH_I2C_Read... [19:14:07]Read from MH i2c: E2 0B 00 [19:14:07]MH_I2C_Read... [19:14:07]Read from MH i2c: E2 0B 00 FC 84 00 B7 73 54 6D 3F 2D 94 64 90 00 4B [19:14:07]RAPDU: B7 73 54 6D 3F 2D 94 64 90 00 [19:14:07]wFMCommunicate OK [19:14:07]SAM_PROTO_SignData done [19:14:07]FM_MakeSignedData done [19:14:07]CreateOFDProtocolMessage [19:14:07]wFMCommunicate request_size=4 [19:14:07]MH_SAM_APDU [19:14:07]CAPDU: 80 11 00 00 [19:14:07]Write to MH i2c: E2 08 00 FD 84 80 11 00 00 00 00 00 00 FB [19:14:07]Write i2c OK [19:14:07]MH_I2C_Read... [19:14:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:14:07]Read from MH i2c: E2 [19:14:07]MH_I2C_Read... [19:14:07]Read from MH i2c: E2 17 00 [19:14:07]MH_I2C_Read... [19:14:07]Read from MH i2c: E2 17 00 FD 84 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 49 [19:14:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [19:14:07]wFMCommunicate OK [19:14:07]CreateOFDProtocolMessage done [19:14:07]OFDSenderStorePacket 187887 [19:14:07]StoreOFDPacket docnum=187887 [19:14:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 A0 16 07 01 C6 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 33 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 5F 01 00 00 F4 03 04 00 03 A8 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 EF DD 02 00 35 04 06 00 71 EF 9B 77 F4 72 B7 73 54 6D 3F 2D 94 64 [19:14:07]CheckFolder [19:14:07]dirname=/storage/ofd_packets [19:14:07]CheckFolder done [19:14:07]ProducePacketName [19:14:07]name=ofd_packets/00187887 [19:14:07]NVStorageSaveData ofd_packets/00187887 [19:14:07]File name is /storage/ofd_packets/00187887 [19:14:07]Write 301 bytes [19:14:07]NVStorageSaveData done [19:14:07]OFDSenderStorePacket done [19:14:07]KKMCreateOFDPacket done [19:14:07]NVStorageSaveData kkm_last_timestamp [19:14:07]File name is /storage/kkm_last_timestamp [19:14:07]Write 4 bytes [19:14:07]NVStorageSaveData done [19:14:07]ExternCall_PrintAddStr [19:14:07]wPrintStart [19:14:07]Write to MH i2c: 01 00 00 FE 84 82 [19:14:07]Write i2c OK [19:14:07]MH_I2C_Read... [19:14:07]Read from MH i2c: 01 [19:14:07]MH_I2C_Read... [19:14:07]Read from MH i2c: 01 07 00 [19:14:07]MH_I2C_Read... [19:14:07]Read from MH i2c: 01 07 00 FE 84 00 00 00 00 00 FF 0F 97 [19:14:07]RasterBufferAndPrint [19:14:07]line Счет N : (1)209939 [19:14:07]line ИНН: 02508201610067 [19:14:07]line Контрольно-Кассовый Чек [19:14:07]line ПРОДАЖА [19:14:07]line ТРК (МРК, ГНК) : 22 [19:14:07]line Товар: 2710124130 [19:14:07]line Аи-92-К-3 [19:14:07]line 4.490 * 66.90 [19:14:07]line = 300.38 [19:14:07]line НДС 12% НСП 1% [19:14:07]line > о реализуемом товаре [19:14:07]line ИТОГО: 300.38 [19:14:07]line НСП 1% : 2.66 [19:14:07]line НДС 12% : 31.90 [19:14:07]line Наличными: 0.00 [19:14:07]line Безнал.: 300.38 [19:14:07]line Место: АЗС № 86 "Партнер Нефть" [19:14:07]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [19:14:07]line СНО: Общий режим [19:14:07]line Чек 351 21.10.2024 19:14 [19:14:07]line Смена: 460 ФФД: 1.0 [19:14:07]line ЗНМ: 0300000155 [19:14:07]line РНМ: 0000000000100030 [19:14:07]line Версия ККМ: 001 [19:14:07]line Платежная система: Mbank [19:14:07]line ФМ: 0000000000965340 [19:14:07]line ФД: 187887 [19:14:07]line ФПД: 125273919452274 [19:14:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T191411&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187887&fm=125273919452274&tin=02508201610067®Number=0000000000100030&sum=30038 [19:14:07]written 0, free lines is 4095 [19:14:08]Write to MH i2c: 01 00 00 27 85 AC [19:14:08]Write i2c OK [19:14:08]MH_I2C_Read... [19:14:08]Read from MH i2c: 01 [19:14:08]MH_I2C_Read... [19:14:08]Read from MH i2c: 01 07 00 [19:14:08]MH_I2C_Read... [19:14:08]Read from MH i2c: 01 07 00 27 85 00 00 00 00 00 96 0C 55 [19:14:08]RasterBufferAndPrint [19:14:08]line [19:14:08]line [19:14:08]line [19:14:08]line [19:14:08]line [19:14:08]written 0, free lines is 3226 [19:14:08]MH_Cut [19:14:08]Write to MH i2c: D1 01 00 2E 85 01 85 [19:14:08]Write i2c OK [19:14:08]MH_I2C_Read... [19:14:08]Read from MH i2c: D1 [19:14:08]MH_I2C_Read... [19:14:08]Read from MH i2c: D1 01 00 [19:14:08]MH_I2C_Read... [19:14:08]Read from MH i2c: D1 01 00 2E 85 00 84 [19:14:08]Write to MH i2c: 01 00 00 2F 85 B4 [19:14:08]Write i2c OK [19:14:08]MH_I2C_Read... [19:14:09]*** Cut start [19:14:09]*** Partial cut [19:14:09]*** CUTSNS_PIN = 1 [19:14:09]*** CUTSNS_PIN = 0 [19:14:09]*** Brake cut motor [19:14:09]Read from MH i2c: 01 [19:14:09]MH_I2C_Read... [19:14:09]*** Stop cut motor [19:14:09]*** Cut end [19:14:09]Read from MH i2c: 01 07 00 [19:14:09]MH_I2C_Read... [19:14:09]Read from MH i2c: 01 07 00 2F 85 00 00 00 00 00 FF 0F C9 [19:14:09]process_action close_receipt done [19:14:09]requested_data is exist [19:14:09]produce_requested_data [19:14:09]requested_item fm.sn is exist - process it [19:14:09]wFMCommunicate request_size=4 [19:14:09]MH_SAM_APDU [19:14:09]CAPDU: 80 11 00 00 [19:14:09]Write to MH i2c: E2 08 00 30 85 80 11 00 00 00 00 00 00 2F [19:14:09]Write i2c OK [19:14:09]MH_I2C_Read... [19:14:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:14:10]Read from MH i2c: E2 [19:14:10]MH_I2C_Read... [19:14:10]Read from MH i2c: E2 17 00 [19:14:10]MH_I2C_Read... [19:14:10]Read from MH i2c: E2 17 00 30 85 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 7D [19:14:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [19:14:10]wFMCommunicate OK [19:14:10]requested_item fd.num is exist - process it [19:14:10]SAM_PROTO_GetFieldsCounters [19:14:10]wFMCommunicate request_size=4 [19:14:10]MH_SAM_APDU [19:14:10]CAPDU: 80 13 00 00 [19:14:10]Write to MH i2c: E2 08 00 31 85 80 13 00 00 00 00 00 00 32 [19:14:10]Write i2c OK [19:14:10]MH_I2C_Read... [19:14:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:14:10]Read from MH i2c: E2 [19:14:10]MH_I2C_Read... [19:14:10]Read from MH i2c: E2 62 00 [19:14:10]MH_I2C_Read... [19:14:10]Read from MH i2c: E2 62 00 31 85 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 EF DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 5F 01 00 00 5E 04 04 00 5F 01 00 00 57 04 04 00 60 01 00 00 19 04 04 00 00 00 00 00 90 00 F4 [19:14:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 EF DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 5F 01 00 00 5E 04 04 00 5F 01 00 00 57 04 04 00 60 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:14:10]wFMCommunicate OK [19:14:10]SAM_PROTO_GetFieldsCounters done [19:14:10]requested_item shift.num is exist - process it [19:14:10]requested_item shift.opened is exist - process it [19:14:10]req_shift_opened [19:14:10]FM_GetShiftState [19:14:10]SAM_PROTO_GetShiftState [19:14:10]wFMCommunicate request_size=4 [19:14:10]MH_SAM_APDU [19:14:10]CAPDU: 80 13 01 00 [19:14:10]Write to MH i2c: E2 08 00 32 85 80 13 01 00 00 00 00 00 34 [19:14:10]Write i2c OK [19:14:10]MH_I2C_Read... [19:14:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:14:10]Read from MH i2c: E2 [19:14:10]MH_I2C_Read... [19:14:10]Read from MH i2c: E2 0E 00 [19:14:10]MH_I2C_Read... [19:14:10]Read from MH i2c: E2 0E 00 32 85 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 93 [19:14:10]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [19:14:10]wFMCommunicate OK [19:14:10]SAM_PROTO_GetShiftState done [19:14:10]FM_GetShiftState done [19:14:10]req_shift_opened done [19:14:10]requested_item shift.open_date is exist - process it [19:14:10]req_shift_open_date [19:14:10]req_shift_open_date done [19:14:10]produce_requested_data done [19:14:10]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187887,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [19:14:10]process_action_free close_receipt [19:14:10]json_value_free [19:14:10]json_value_free done [19:14:10]process_json_proto returns [19:14:10]Send response to host [19:14:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187887,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [19:14:10]free response buf [19:14:10]execute_script done [19:14:10]execute_script returns [19:14:10]free content buf [19:14:10]Sock 8.Close socket [19:14:10]Sock 8.Thread stoped [19:15:00]accept exits with 10 [19:15:00]New connection [19:15:00]New thread 3067157860 created [19:15:00]Thread 3067014500 joined [19:15:00]Waiting for new connection... [19:15:00] Sock 10.Parse request [19:15:00]Sock 10.Check first char [19:15:00]Sock 10.First char is OK [19:15:00]request: POST /json_proto HTTP/1.0 [19:15:00]Method: POST [19:15:00]URL: /json_proto [19:15:00]Method is POST - this is cgi request [19:15:00]url: /json_proto [19:15:00]query_string will be loaded in cgi processing [19:15:00]execute_cgi json_proto POST (null) [19:15:00]execute_cgi path=json_proto method=POST [19:15:00]POST find Content-Length [19:15:00]Host: 172.17.42.131:8080 [19:15:00]Content-Length: 677 [19:15:00]Content-Type: application/json [19:15:00] [19:15:00]POST finish read [19:15:00]Found Content-Length = 677 [19:15:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209940", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "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:15:00]execute_script... [19:15: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)209940", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "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:15:00]POST & json_proto [19:15:00]process_json_proto [19:15:00]json parsed OK: [19:15:00]protocol is kg_v1.0 [19:15:00]action value=close_receipt [19:15:00]process_action close_receipt [19:15:00]cmd_close_receipt [19:15:00]MH_GetDate [19:15:00]Write to MH i2c: F0 00 00 33 85 A7 [19:15:00]Write i2c OK [19:15:00]MH_I2C_Read... [19:15:00]Read from MH i2c: F0 [19:15:00]MH_I2C_Read... [19:15:00]Read from MH i2c: F0 09 00 [19:15:00]MH_I2C_Read... [19:15:00]Read from MH i2c: F0 09 00 33 85 00 3A A8 16 67 A0 18 CA 66 F7 [19:15:00]GetLastDocTimeStamp 1729538051 [19:15:00]current date 1729538106 [19:15:00]FM_GetShiftState [19:15:00]SAM_PROTO_GetShiftState [19:15:00]wFMCommunicate request_size=4 [19:15:00]MH_SAM_APDU [19:15:00]CAPDU: 80 13 01 00 [19:15:00]Write to MH i2c: E2 08 00 34 85 80 13 01 00 00 00 00 00 36 [19:15:00]Write i2c OK [19:15:00]MH_I2C_Read... [19:15:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:15:00]Read from MH i2c: E2 [19:15:00]MH_I2C_Read... [19:15:00]Read from MH i2c: E2 0E 00 [19:15:00]MH_I2C_Read... [19:15:00]Read from MH i2c: E2 0E 00 34 85 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 95 [19:15:00]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [19:15:00]wFMCommunicate OK [19:15:00]SAM_PROTO_GetShiftState done [19:15:00]FM_GetShiftState done [19:15:00]opened in 1729469754 [19:15:00]opened+sec_in_day 1729556154 [19:15:00]quantity*price = 30038 [19:15:00]sum+1 = 30039 [19:15:00]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 352 21.10.2024 19:15 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 187888 ФПД: 48883493741557 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T191506&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187888&fm=48883493741557&tin=02508201610067®Number=0000000000100030&sum=30000 [19:15:02]StoreToDocumentArchive [19:15:02]shift 460 fd 187888 [19:15:02]save to /storage/0460/doc_00187888 [19:15:02]save last doc name /storage/0460/doc_00187888 to /storage/kkm_last_doc_name [19:15:02]save OK [19:15:02]Clear old archive folders... [19:15:02]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:15:02]tlvbuf is 0126F1A0 [19:15:02]SAM_PROTO_ClearQueue [19:15:02]wFMCommunicate request_size=4 [19:15:02]MH_SAM_APDU [19:15:02]CAPDU: 80 09 00 00 [19:15:02]Write to MH i2c: E2 08 00 41 85 80 09 00 00 00 00 00 00 38 [19:15:02]Write i2c OK [19:15:02]MH_I2C_Read... [19:15:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:15:02]Read from MH i2c: E2 [19:15:02]MH_I2C_Read... [19:15:02]Read from MH i2c: E2 03 00 [19:15:02]MH_I2C_Read... [19:15:02]Read from MH i2c: E2 03 00 41 85 00 90 00 3A [19:15:02]RAPDU: 90 00 [19:15:02]wFMCommunicate OK [19:15:02]SAM_PROTO_ClearQueue done [19:15:02]KKMCreateOFDPacket [19:15:02]OFDProtocolAddRootSTLVToBuf [19:15:02]FM_MakeSignedData [19:15:02]FM_MakeSignedData [19:15:02]SAM_PROTO_SignData [19:15:02]wFMCommunicate request_size=4 [19:15:02]MH_SAM_APDU [19:15:02]CAPDU: 80 0D 01 02 [19:15:02]Write to MH i2c: E2 08 00 42 85 80 0D 01 02 00 00 00 00 40 [19:15:02]Write i2c OK [19:15:02]MH_I2C_Read... [19:15:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:15:02]Read from MH i2c: E2 [19:15:02]MH_I2C_Read... [19:15:02]Read from MH i2c: E2 03 00 [19:15:02]MH_I2C_Read... [19:15:02]Read from MH i2c: E2 03 00 42 85 00 90 00 3B [19:15:02]RAPDU: 90 00 [19:15:02]wFMCommunicate OK [19:15:02]wFMCommunicate request_size=255 [19:15:02]MH_SAM_APDU [19:15: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 33 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 01 00 00 F4 03 04 00 3A A8 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 F0 DD 02 00 35 04 06 00 2C [19:15:02]Write to MH i2c: E2 02 01 43 85 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 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 01 00 00 F4 03 04 00 3A A8 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 F0 DD 02 00 35 04 06 00 2C 00 00 2F [19:15:02]Write i2c OK [19:15:02]MH_I2C_Read... [19:15:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:15:02]Read from MH i2c: E2 [19:15:02]MH_I2C_Read... [19:15:02]Read from MH i2c: E2 03 00 [19:15:02]MH_I2C_Read... [19:15:02]Read from MH i2c: E2 03 00 43 85 00 90 00 3C [19:15:02]RAPDU: 90 00 [19:15:02]wFMCommunicate OK [19:15:02]wFMCommunicate request_size=10 [19:15:02]MH_SAM_APDU [19:15:02]CAPDU: 80 0D 02 02 05 75 93 47 A3 F5 [19:15:02]Write to MH i2c: E2 0D 00 44 85 80 0D 02 02 05 00 75 93 47 A3 F5 00 00 34 [19:15:02]Write i2c OK [19:15:02]MH_I2C_Read... [19:15:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:15:02]Read from MH i2c: E2 [19:15:02]MH_I2C_Read... [19:15:02]Read from MH i2c: E2 03 00 [19:15:02]MH_I2C_Read... [19:15:02]Read from MH i2c: E2 03 00 44 85 00 90 00 3D [19:15:02]RAPDU: 90 00 [19:15:02]wFMCommunicate OK [19:15:02]wFMCommunicate request_size=4 [19:15:02]MH_SAM_APDU [19:15:02]CAPDU: 80 0D 03 02 [19:15:02]Write to MH i2c: E2 08 00 45 85 80 0D 03 02 00 00 00 00 45 [19:15:02]Write i2c OK [19:15:02]MH_I2C_Read... [19:15:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:15:02]Read from MH i2c: E2 [19:15:02]MH_I2C_Read... [19:15:02]Read from MH i2c: E2 0B 00 [19:15:02]MH_I2C_Read... [19:15:02]Read from MH i2c: E2 0B 00 45 85 00 34 F6 DA 51 03 92 19 CE 90 00 17 [19:15:02]RAPDU: 34 F6 DA 51 03 92 19 CE 90 00 [19:15:02]wFMCommunicate OK [19:15:02]SAM_PROTO_SignData done [19:15:02]FM_MakeSignedData done [19:15:02]CreateOFDProtocolMessage [19:15:02]wFMCommunicate request_size=4 [19:15:02]MH_SAM_APDU [19:15:02]CAPDU: 80 11 00 00 [19:15:02]Write to MH i2c: E2 08 00 46 85 80 11 00 00 00 00 00 00 45 [19:15:02]Write i2c OK [19:15:02]MH_I2C_Read... [19:15:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:15:02]Read from MH i2c: E2 [19:15:02]MH_I2C_Read... [19:15:02]Read from MH i2c: E2 17 00 [19:15:02]MH_I2C_Read... [19:15:02]Read from MH i2c: E2 17 00 46 85 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 93 [19:15:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [19:15:02]wFMCommunicate OK [19:15:02]CreateOFDProtocolMessage done [19:15:02]OFDSenderStorePacket 187888 [19:15:02]StoreOFDPacket docnum=187888 [19:15:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 A4 D4 07 01 53 6E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 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 01 00 00 F4 03 04 00 3A A8 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 F0 DD 02 00 35 04 06 00 2C 75 93 47 A3 F5 34 F6 DA 51 03 92 19 CE [19:15:02]CheckFolder [19:15:02]dirname=/storage/ofd_packets [19:15:02]CheckFolder done [19:15:02]ProducePacketName [19:15:02]name=ofd_packets/00187888 [19:15:02]NVStorageSaveData ofd_packets/00187888 [19:15:02]File name is /storage/ofd_packets/00187888 [19:15:02]Write 301 bytes [19:15:02]NVStorageSaveData done [19:15:02]OFDSenderStorePacket done [19:15:02]KKMCreateOFDPacket done [19:15:02]NVStorageSaveData kkm_last_timestamp [19:15:02]File name is /storage/kkm_last_timestamp [19:15:02]Write 4 bytes [19:15:02]NVStorageSaveData done [19:15:02]ExternCall_PrintAddStr [19:15:02]wPrintStart [19:15:02]Write to MH i2c: 01 00 00 47 85 CC [19:15:02]Write i2c OK [19:15:02]MH_I2C_Read... [19:15:02]Read from MH i2c: 01 [19:15:02]MH_I2C_Read... [19:15:02]Read from MH i2c: 01 07 00 [19:15:02]MH_I2C_Read... [19:15:02]Read from MH i2c: 01 07 00 47 85 00 00 00 00 00 FF 0F E1 [19:15:02]RasterBufferAndPrint [19:15:02]line Счет N : (1)209940 [19:15:02]line ИНН: 02508201610067 [19:15:02]line Контрольно-Кассовый Чек [19:15:02]line ПРОДАЖА [19:15:02]line ТРК (МРК, ГНК) : 12 [19:15:02]line Товар: 2710124130 [19:15:02]line Аи-92-К-3 [19:15:02]line 4.490 * 66.90 [19:15:02]line = 300.38 [19:15:02]line НДС 12% НСП 1% [19:15:02]line > о реализуемом товаре [19:15:02]line ОКРУГЛЕНИЕ: -0.38 [19:15:02]line ИТОГО: 300.00 [19:15:02]line Внесено: 300.00 [19:15:02]line СДАЧА: 0.00 [19:15:02]line НСП 1% : 2.66 [19:15:02]line НДС 12% : 31.90 [19:15:02]line Наличными: 300.00 [19:15:02]line Безнал.: 0.00 [19:15:02]line Место: АЗС № 86 "Партнер Нефть" [19:15:02]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [19:15:02]line СНО: Общий режим [19:15:02]line Чек 352 21.10.2024 19:15 [19:15:02]line Смена: 460 ФФД: 1.0 [19:15:02]line ЗНМ: 0300000155 [19:15:02]line РНМ: 0000000000100030 [19:15:02]line Версия ККМ: 001 [19:15:02]line ФМ: 0000000000965340 [19:15:02]line ФД: 187888 [19:15:02]line ФПД: 48883493741557 [19:15:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T191506&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187888&fm=48883493741557&tin=02508201610067®Number=0000000000100030&sum=30000 [19:15:02]written 0, free lines is 4095 [19:15:03]Write to MH i2c: 01 00 00 72 85 F7 [19:15:03]Write i2c OK [19:15:03]MH_I2C_Read... [19:15:03]Read from MH i2c: 01 [19:15:03]MH_I2C_Read... [19:15:03]Read from MH i2c: 01 07 00 [19:15:03]MH_I2C_Read... [19:15:03]Read from MH i2c: 01 07 00 72 85 00 00 00 00 00 66 0C 70 [19:15:03]RasterBufferAndPrint [19:15:03]line [19:15:03]line [19:15:03]line [19:15:03]line [19:15:03]line [19:15:03]written 0, free lines is 3178 [19:15:03]MH_Cut [19:15:03]Write to MH i2c: D1 01 00 79 85 01 D0 [19:15:03]Write i2c OK [19:15:03]MH_I2C_Read... [19:15:03]Read from MH i2c: D1 [19:15:03]MH_I2C_Read... [19:15:03]Read from MH i2c: D1 01 00 [19:15:03]MH_I2C_Read... [19:15:03]Read from MH i2c: D1 01 00 79 85 00 CF [19:15:03]Write to MH i2c: 01 00 00 7A 85 FF [19:15:03]Write i2c OK [19:15:03]MH_I2C_Read... [19:15:04]*** Cut start [19:15:04]*** Partial cut [19:15:04]*** CUTSNS_PIN = 1 [19:15:04]*** CUTSNS_PIN = 0 [19:15:04]*** Brake cut motor [19:15:04]Read from MH i2c: 01 [19:15:04]MH_I2C_Read... [19:15:04]*** Stop cut motor [19:15:04]*** Cut end [19:15:04]Read from MH i2c: 01 07 00 [19:15:04]MH_I2C_Read... [19:15:04]Read from MH i2c: 01 07 00 7A 85 00 00 00 00 00 FF 0F 14 [19:15:04]process_action close_receipt done [19:15:04]requested_data is exist [19:15:04]produce_requested_data [19:15:04]requested_item fm.sn is exist - process it [19:15:04]wFMCommunicate request_size=4 [19:15:04]MH_SAM_APDU [19:15:04]CAPDU: 80 11 00 00 [19:15:04]Write to MH i2c: E2 08 00 7B 85 80 11 00 00 00 00 00 00 7A [19:15:04]Write i2c OK [19:15:04]MH_I2C_Read... [19:15:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:15:04]Read from MH i2c: E2 [19:15:04]MH_I2C_Read... [19:15:04]Read from MH i2c: E2 17 00 [19:15:04]MH_I2C_Read... [19:15:04]Read from MH i2c: E2 17 00 7B 85 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 C8 [19:15:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [19:15:04]wFMCommunicate OK [19:15:04]requested_item fd.num is exist - process it [19:15:04]SAM_PROTO_GetFieldsCounters [19:15:04]wFMCommunicate request_size=4 [19:15:04]MH_SAM_APDU [19:15:04]CAPDU: 80 13 00 00 [19:15:04]Write to MH i2c: E2 08 00 7C 85 80 13 00 00 00 00 00 00 7D [19:15:04]Write i2c OK [19:15:04]MH_I2C_Read... [19:15:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:15:05]Read from MH i2c: E2 [19:15:05]MH_I2C_Read... [19:15:05]Read from MH i2c: E2 62 00 [19:15:05]MH_I2C_Read... [19:15:05]Read from MH i2c: E2 62 00 7C 85 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 F0 DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 60 01 00 00 5E 04 04 00 60 01 00 00 57 04 04 00 61 01 00 00 19 04 04 00 00 00 00 00 90 00 43 [19:15:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 F0 DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 60 01 00 00 5E 04 04 00 60 01 00 00 57 04 04 00 61 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:15:05]wFMCommunicate OK [19:15:05]SAM_PROTO_GetFieldsCounters done [19:15:05]requested_item shift.num is exist - process it [19:15:05]requested_item shift.opened is exist - process it [19:15:05]req_shift_opened [19:15:05]FM_GetShiftState [19:15:05]SAM_PROTO_GetShiftState [19:15:05]wFMCommunicate request_size=4 [19:15:05]MH_SAM_APDU [19:15:05]CAPDU: 80 13 01 00 [19:15:05]Write to MH i2c: E2 08 00 7D 85 80 13 01 00 00 00 00 00 7F [19:15:05]Write i2c OK [19:15:05]MH_I2C_Read... [19:15:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:15:05]Read from MH i2c: E2 [19:15:05]MH_I2C_Read... [19:15:05]Read from MH i2c: E2 0E 00 [19:15:05]MH_I2C_Read... [19:15:05]Read from MH i2c: E2 0E 00 7D 85 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 DE [19:15:05]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [19:15:05]wFMCommunicate OK [19:15:05]SAM_PROTO_GetShiftState done [19:15:05]FM_GetShiftState done [19:15:05]req_shift_opened done [19:15:05]requested_item shift.open_date is exist - process it [19:15:05]req_shift_open_date [19:15:05]req_shift_open_date done [19:15:05]produce_requested_data done [19:15:05]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187888,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [19:15:05]process_action_free close_receipt [19:15:05]json_value_free [19:15:05]json_value_free done [19:15:05]process_json_proto returns [19:15:05]Send response to host [19:15:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187888,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [19:15:05]free response buf [19:15:05]execute_script done [19:15:05]execute_script returns [19:15:05]free content buf [19:15:05]Sock 10.Close socket [19:15:05]Sock 10.Thread stoped [19:15:52]ConnectInit Can't connect to host [19:15:52]CommunicateWithHost connect error [19:15:52]CommunicateWithHost err = -1 [19:15:52]OFD Sender: Server communicate error [19:15:52]OFD Sender: Processing packet 187886 [packets to send 1064, broken 1061] [19:15:52]ProducePacketName [19:15:52]name=ofd_packets/00187886 [19:15:52]OFD Sender: To server: pG, [19:15:52]CommunicateWithHost lk.salyk.kg:30040 [19:15:52]ConnectInit lk.salyk.kg [19:15:53]Connected sock=9 [19:15:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 FC BB 0D 01 25 06 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 DC 46 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 09 23 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 22 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 18 3A 00 00 00 00 07 04 06 00 E0 22 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 01 00 00 F4 03 04 00 E7 A7 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 EE DD 02 00 35 04 06 00 BB 66 66 54 63 83 62 D5 E1 26 37 5D FF C9 [19:15:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 30 20 47 00 5E 73 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 EE DD 02 00 F4 03 04 00 5B 52 16 67 B6 04 01 00 00 1B D7 22 D9 EC D3 7F 90 [19:15:53]CommunicateWithHost err = 0 [19:15:53]CheckOFDResponse [19:15:53]1017 (14) - 77093643461234 [19:15:53]1041 (16) - 0000000000965340 [19:15:53]1040 (4) - 187886 [19:15:53]1012 (4) - 21.10.2024 13:08 [19:15:53]1206 (1) - 0 [19:15:53]OFD Sender: Remove packet 187886 [19:15:53]ProducePacketName [19:15:53]name=ofd_packets/00187886 [19:15:53]NVStorageDeleteData [19:15:53]OFD Sender: Processing packet 187887 [packets to send 1063, broken 1061] [19:15:53]ProducePacketName [19:15:53]name=ofd_packets/00187887 [19:15:53]OFD Sender: To server: pG, [19:15:53]CommunicateWithHost lk.salyk.kg:30040 [19:15:53]ConnectInit lk.salyk.kg [19:15:54]Connected sock=9 [19:15:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 A0 16 07 01 C6 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 33 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 5F 01 00 00 F4 03 04 00 03 A8 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 EF DD 02 00 35 04 06 00 71 EF 9B 77 F4 72 B7 73 54 6D 3F 2D 94 64 [19:15:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 67 00 47 00 98 26 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 EF DD 02 00 F4 03 04 00 5C 52 16 67 B6 04 01 00 00 DC 4D C9 B6 D5 61 FD 26 [19:15:54]CommunicateWithHost err = 0 [19:15:54]CheckOFDResponse [19:15:54]1017 (14) - 77093643461234 [19:15:54]1041 (16) - 0000000000965340 [19:15:54]1040 (4) - 187887 [19:15:54]1012 (4) - 21.10.2024 13:08 [19:15:54]1206 (1) - 0 [19:15:54]OFD Sender: Remove packet 187887 [19:15:54]ProducePacketName [19:15:54]name=ofd_packets/00187887 [19:15:54]NVStorageDeleteData [19:15:54]OFD Sender: Processing packet 187888 [packets to send 1062, broken 1061] [19:15:54]ProducePacketName [19:15:54]name=ofd_packets/00187888 [19:15:54]OFD Sender: To server: pG, [19:15:54]CommunicateWithHost lk.salyk.kg:30040 [19:15:54]ConnectInit lk.salyk.kg [19:15:55]Connected sock=10 [19:15:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 A4 D4 07 01 53 6E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 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 01 00 00 F4 03 04 00 3A A8 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 F0 DD 02 00 35 04 06 00 2C 75 93 47 A3 F5 34 F6 DA 51 03 92 19 CE [19:15:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 05 89 47 00 A0 AF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 F0 DD 02 00 F4 03 04 00 5D 52 16 67 B6 04 01 00 00 EB 13 58 28 81 2B 57 F4 [19:15:55]CommunicateWithHost err = 0 [19:15:55]CheckOFDResponse [19:15:55]1017 (14) - 77093643461234 [19:15:55]1041 (16) - 0000000000965340 [19:15:55]1040 (4) - 187888 [19:15:55]1012 (4) - 21.10.2024 13:08 [19:15:55]1206 (1) - 0 [19:15:55]OFD Sender: Remove packet 187888 [19:15:55]ProducePacketName [19:15:55]name=ofd_packets/00187888 [19:15:55]NVStorageDeleteData [19:15:56]OFD Sender: No OFD packet to send [19:15:57]accept exits with 8 [19:15:57]New connection [19:15:57]New thread 3067014500 created [19:15:57]Thread 3067157860 joined [19:15:57]Waiting for new connection... [19:15:57] Sock 8.Parse request [19:15:57]Sock 8.Check first char [19:15:57]Sock 8.First char is OK [19:15:57]request: POST /json_proto HTTP/1.0 [19:15:57]Method: POST [19:15:57]URL: /json_proto [19:15:57]Method is POST - this is cgi request [19:15:57]url: /json_proto [19:15:57]query_string will be loaded in cgi processing [19:15:57]execute_cgi json_proto POST (null) [19:15:57]execute_cgi path=json_proto method=POST [19:15:57]POST find Content-Length [19:15:57]Host: 172.17.42.131:8080 [19:15:57]Content-Length: 766 [19:15:57]Content-Type: application/json [19:15:57] [19:15:57]POST finish read [19:15:57]Found Content-Length = 766 [19:15:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209941", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:15:57]execute_script... [19:15:57]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209941", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:15:57]POST & json_proto [19:15:57]process_json_proto [19:15:57]json parsed OK: [19:15:57]protocol is kg_v1.0 [19:15:57]action value=close_receipt [19:15:57]process_action close_receipt [19:15:57]cmd_close_receipt [19:15:57]MH_GetDate [19:15:57]Write to MH i2c: F0 00 00 7E 85 F2 [19:15:57]Write i2c OK [19:15:57]MH_I2C_Read... [19:15:57]Read from MH i2c: F0 [19:15:57]MH_I2C_Read... [19:15:57]Read from MH i2c: F0 09 00 [19:15:57]MH_I2C_Read... [19:15:57]Read from MH i2c: F0 09 00 7E 85 00 72 A8 16 67 A0 18 CA 66 7A [19:15:57]GetLastDocTimeStamp 1729538106 [19:15:57]current date 1729538162 [19:15:57]FM_GetShiftState [19:15:57]SAM_PROTO_GetShiftState [19:15:57]wFMCommunicate request_size=4 [19:15:57]MH_SAM_APDU [19:15:57]CAPDU: 80 13 01 00 [19:15:57]Write to MH i2c: E2 08 00 7F 85 80 13 01 00 00 00 00 00 81 [19:15:57]Write i2c OK [19:15:57]MH_I2C_Read... [19:15:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:15:57]Read from MH i2c: E2 [19:15:57]MH_I2C_Read... [19:15:57]Read from MH i2c: E2 0E 00 [19:15:57]MH_I2C_Read... [19:15:57]Read from MH i2c: E2 0E 00 7F 85 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 E0 [19:15:57]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [19:15:57]wFMCommunicate OK [19:15:57]SAM_PROTO_GetShiftState done [19:15:57]FM_GetShiftState done [19:15:57]opened in 1729469754 [19:15:57]opened+sec_in_day 1729556154 [19:15:57]quantity*price = 50041 [19:15:57]sum+1 = 50042 [19:15:57]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.41 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 0.00 Безнал.: 500.41 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 353 21.10.2024 19:16 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000965340 ФД: 187889 ФПД: 193688673258110 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T191603&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187889&fm=193688673258110&tin=02508201610067®Number=0000000000100030&sum=50041 [19:15:58]StoreToDocumentArchive [19:15:58]shift 460 fd 187889 [19:15:58]save to /storage/0460/doc_00187889 [19:15:58]save last doc name /storage/0460/doc_00187889 to /storage/kkm_last_doc_name [19:15:58]save OK [19:15:58]Clear old archive folders... [19:15:58]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:15:58]tlvbuf is 0112EC40 [19:15:58]SAM_PROTO_ClearQueue [19:15:58]wFMCommunicate request_size=4 [19:15:58]MH_SAM_APDU [19:15:58]CAPDU: 80 09 00 00 [19:15:58]Write to MH i2c: E2 08 00 8C 85 80 09 00 00 00 00 00 00 83 [19:15:58]Write i2c OK [19:15:58]MH_I2C_Read... [19:15:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:15:58]Read from MH i2c: E2 [19:15:58]MH_I2C_Read... [19:15:58]Read from MH i2c: E2 03 00 [19:15:58]MH_I2C_Read... [19:15:58]Read from MH i2c: E2 03 00 8C 85 00 90 00 85 [19:15:58]RAPDU: 90 00 [19:15:58]wFMCommunicate OK [19:15:58]SAM_PROTO_ClearQueue done [19:15:58]KKMCreateOFDPacket [19:15:58]OFDProtocolAddRootSTLVToBuf [19:15:58]FM_MakeSignedData [19:15:58]FM_MakeSignedData [19:15:58]SAM_PROTO_SignData [19:15:58]wFMCommunicate request_size=4 [19:15:58]MH_SAM_APDU [19:15:58]CAPDU: 80 0D 01 02 [19:15:58]Write to MH i2c: E2 08 00 8D 85 80 0D 01 02 00 00 00 00 8B [19:15:58]Write i2c OK [19:15:58]MH_I2C_Read... [19:15:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:15:58]Read from MH i2c: E2 [19:15:58]MH_I2C_Read... [19:15:58]Read from MH i2c: E2 03 00 [19:15:58]MH_I2C_Read... [19:15:58]Read from MH i2c: E2 03 00 8D 85 00 90 00 86 [19:15:58]RAPDU: 90 00 [19:15:58]wFMCommunicate OK [19:15:58]wFMCommunicate request_size=255 [19:15:58]MH_SAM_APDU [19:15:58]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 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 61 01 00 00 F4 03 04 00 73 A8 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 F1 DD 02 00 35 04 06 00 B0 [19:15:58]Write to MH i2c: E2 02 01 8E 85 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 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 61 01 00 00 F4 03 04 00 73 A8 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 F1 DD 02 00 35 04 06 00 B0 00 00 97 [19:15:58]Write i2c OK [19:15:58]MH_I2C_Read... [19:15:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:15:59]Read from MH i2c: E2 [19:15:59]MH_I2C_Read... [19:15:59]Read from MH i2c: E2 03 00 [19:15:59]MH_I2C_Read... [19:15:59]Read from MH i2c: E2 03 00 8E 85 00 90 00 87 [19:15:59]RAPDU: 90 00 [19:15:59]wFMCommunicate OK [19:15:59]wFMCommunicate request_size=10 [19:15:59]MH_SAM_APDU [19:15:59]CAPDU: 80 0D 02 02 05 28 A8 91 0A 7E [19:15:59]Write to MH i2c: E2 0D 00 8F 85 80 0D 02 02 05 00 28 A8 91 0A 7E 00 00 81 [19:15:59]Write i2c OK [19:15:59]MH_I2C_Read... [19:15:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:15:59]Read from MH i2c: E2 [19:15:59]MH_I2C_Read... [19:15:59]Read from MH i2c: E2 03 00 [19:15:59]MH_I2C_Read... [19:15:59]Read from MH i2c: E2 03 00 8F 85 00 90 00 88 [19:15:59]RAPDU: 90 00 [19:15:59]wFMCommunicate OK [19:15:59]wFMCommunicate request_size=4 [19:15:59]MH_SAM_APDU [19:15:59]CAPDU: 80 0D 03 02 [19:15:59]Write to MH i2c: E2 08 00 90 85 80 0D 03 02 00 00 00 00 90 [19:15:59]Write i2c OK [19:15:59]MH_I2C_Read... [19:15:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:15:59]Read from MH i2c: E2 [19:15:59]MH_I2C_Read... [19:15:59]Read from MH i2c: E2 0B 00 [19:15:59]MH_I2C_Read... [19:15:59]Read from MH i2c: E2 0B 00 90 85 00 5A 27 2A 79 2E F1 3E 9A 90 00 AC [19:15:59]RAPDU: 5A 27 2A 79 2E F1 3E 9A 90 00 [19:15:59]wFMCommunicate OK [19:15:59]SAM_PROTO_SignData done [19:15:59]FM_MakeSignedData done [19:15:59]CreateOFDProtocolMessage [19:15:59]wFMCommunicate request_size=4 [19:15:59]MH_SAM_APDU [19:15:59]CAPDU: 80 11 00 00 [19:15:59]Write to MH i2c: E2 08 00 91 85 80 11 00 00 00 00 00 00 90 [19:15:59]Write i2c OK [19:15:59]MH_I2C_Read... [19:15:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:15:59]Read from MH i2c: E2 [19:15:59]MH_I2C_Read... [19:15:59]Read from MH i2c: E2 17 00 [19:15:59]MH_I2C_Read... [19:15:59]Read from MH i2c: E2 17 00 91 85 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 DE [19:15:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [19:15:59]wFMCommunicate OK [19:15:59]CreateOFDProtocolMessage done [19:15:59]OFDSenderStorePacket 187889 [19:15:59]StoreOFDPacket docnum=187889 [19:15:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 60 26 07 01 61 55 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 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 61 01 00 00 F4 03 04 00 73 A8 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 F1 DD 02 00 35 04 06 00 B0 28 A8 91 0A 7E 5A 27 2A 79 2E F1 3E 9A [19:15:59]CheckFolder [19:15:59]dirname=/storage/ofd_packets [19:15:59]CheckFolder done [19:15:59]ProducePacketName [19:15:59]name=ofd_packets/00187889 [19:15:59]NVStorageSaveData ofd_packets/00187889 [19:15:59]File name is /storage/ofd_packets/00187889 [19:15:59]Write 301 bytes [19:15:59]NVStorageSaveData done [19:15:59]OFDSenderStorePacket done [19:15:59]KKMCreateOFDPacket done [19:15:59]NVStorageSaveData kkm_last_timestamp [19:15:59]File name is /storage/kkm_last_timestamp [19:15:59]Write 4 bytes [19:15:59]NVStorageSaveData done [19:15:59]ExternCall_PrintAddStr [19:15:59]wPrintStart [19:15:59]Write to MH i2c: 01 00 00 92 85 17 [19:15:59]Write i2c OK [19:15:59]MH_I2C_Read... [19:15:59]Read from MH i2c: 01 [19:15:59]MH_I2C_Read... [19:15:59]Read from MH i2c: 01 07 00 [19:15:59]MH_I2C_Read... [19:15:59]Read from MH i2c: 01 07 00 92 85 00 00 00 00 00 FF 0F 2C [19:15:59]RasterBufferAndPrint [19:15:59]line Счет N : (1)209941 [19:15:59]line ИНН: 02508201610067 [19:15:59]line Контрольно-Кассовый Чек [19:15:59]line ПРОДАЖА [19:15:59]line ТРК (МРК, ГНК) : 42 [19:15:59]line Товар: 2710124130 [19:15:59]line Аи-92-К-3 [19:15:59]line 7.480 * 66.90 [19:15:59]line = 500.41 [19:15:59]line НДС 12% НСП 1% [19:15:59]line > о реализуемом товаре [19:15:59]line ИТОГО: 500.41 [19:15:59]line НСП 1% : 4.43 [19:15:59]line НДС 12% : 53.14 [19:15:59]line Наличными: 0.00 [19:15:59]line Безнал.: 500.41 [19:15:59]line Место: АЗС № 86 "Партнер Нефть" [19:15:59]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [19:15:59]line СНО: Общий режим [19:15:59]line Чек 353 21.10.2024 19:16 [19:15:59]line Смена: 460 ФФД: 1.0 [19:15:59]line ЗНМ: 0300000155 [19:15:59]line РНМ: 0000000000100030 [19:15:59]line Версия ККМ: 001 [19:15:59]line Платежная система: Mbank [19:15:59]line ФМ: 0000000000965340 [19:15:59]line ФД: 187889 [19:15:59]line ФПД: 193688673258110 [19:15:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T191603&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187889&fm=193688673258110&tin=02508201610067®Number=0000000000100030&sum=50041 [19:15:59]written 0, free lines is 4095 [19:15:59]OFD Sender: Processing packet 187889 [packets to send 1062, broken 1061] [19:15:59]ProducePacketName [19:15:59]name=ofd_packets/00187889 [19:15:59]OFD Sender: To server: pG, [19:15:59]CommunicateWithHost lk.salyk.kg:30040 [19:15:59]ConnectInit lk.salyk.kg [19:15:59]Connected sock=10 [19:15:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 60 26 07 01 61 55 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 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 61 01 00 00 F4 03 04 00 73 A8 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 F1 DD 02 00 35 04 06 00 B0 28 A8 91 0A 7E 5A 27 2A 79 2E F1 3E 9A [19:15:59]Write to MH i2c: 01 00 00 BB 85 40 [19:15:59]Write i2c OK [19:15:59]MH_I2C_Read... [19:15:59]Read from MH i2c: 01 [19:15:59]MH_I2C_Read... [19:15:59]Read from MH i2c: 01 07 00 [19:15:59]MH_I2C_Read... [19:15:59]Read from MH i2c: 01 07 00 BB 85 00 00 00 00 00 94 0C E7 [19:15:59]RasterBufferAndPrint [19:15:59]line [19:15:59]line [19:15:59]line [19:15:59]line [19:15:59]line [19:15:59]written 0, free lines is 3226 [19:15:59]MH_Cut [19:15:59]Write to MH i2c: D1 01 00 C2 85 01 19 [19:15:59]Write i2c OK [19:15:59]MH_I2C_Read... [19:15:59]Read from MH i2c: D1 [19:15:59]MH_I2C_Read... [19:15:59]Read from MH i2c: D1 01 00 [19:15:59]MH_I2C_Read... [19:15:59]Read from MH i2c: D1 01 00 C2 85 00 18 [19:15:59]Write to MH i2c: 01 00 00 C3 85 48 [19:15:59]Write i2c OK [19:15:59]MH_I2C_Read... [19:15:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 79 E4 47 00 AD D3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 F1 DD 02 00 F4 03 04 00 62 52 16 67 B6 04 01 00 00 AD C7 38 6B 4E 41 A1 2B [19:15:59]CommunicateWithHost err = 0 [19:15:59]CheckOFDResponse [19:15:59]1017 (14) - 77093643461234 [19:15:59]1041 (16) - 0000000000965340 [19:15:59]1040 (4) - 187889 [19:15:59]1012 (4) - 21.10.2024 13:08 [19:15:59]1206 (1) - 0 [19:15:59]OFD Sender: Remove packet 187889 [19:15:59]ProducePacketName [19:15:59]name=ofd_packets/00187889 [19:15:59]NVStorageDeleteData [19:16:00]OFD Sender: No OFD packet to send [19:16:00]*** Cut start [19:16:00]*** Partial cut [19:16:00]*** CUTSNS_PIN = 1 [19:16:00]*** CUTSNS_PIN = 0 [19:16:01]*** Brake cut motor [19:16:01]Read from MH i2c: 01 [19:16:01]MH_I2C_Read... [19:16:01]*** Stop cut motor [19:16:01]*** Cut end [19:16:01]Read from MH i2c: 01 07 00 [19:16:01]MH_I2C_Read... [19:16:01]Read from MH i2c: 01 07 00 C3 85 00 00 00 00 00 FF 0F 5D [19:16:01]process_action close_receipt done [19:16:01]requested_data is exist [19:16:01]produce_requested_data [19:16:01]requested_item fm.sn is exist - process it [19:16:01]wFMCommunicate request_size=4 [19:16:01]MH_SAM_APDU [19:16:01]CAPDU: 80 11 00 00 [19:16:01]Write to MH i2c: E2 08 00 C4 85 80 11 00 00 00 00 00 00 C3 [19:16:01]Write i2c OK [19:16:01]MH_I2C_Read... [19:16:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:16:01]Read from MH i2c: E2 [19:16:01]MH_I2C_Read... [19:16:01]Read from MH i2c: E2 17 00 [19:16:01]MH_I2C_Read... [19:16:01]Read from MH i2c: E2 17 00 C4 85 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 11 [19:16:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [19:16:01]wFMCommunicate OK [19:16:01]requested_item fd.num is exist - process it [19:16:01]SAM_PROTO_GetFieldsCounters [19:16:01]wFMCommunicate request_size=4 [19:16:01]MH_SAM_APDU [19:16:01]CAPDU: 80 13 00 00 [19:16:01]Write to MH i2c: E2 08 00 C5 85 80 13 00 00 00 00 00 00 C6 [19:16:01]Write i2c OK [19:16:01]MH_I2C_Read... [19:16:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:16:01]Read from MH i2c: E2 [19:16:01]MH_I2C_Read... [19:16:01]Read from MH i2c: E2 62 00 [19:16:01]MH_I2C_Read... [19:16:01]Read from MH i2c: E2 62 00 C5 85 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 F1 DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 61 01 00 00 5E 04 04 00 61 01 00 00 57 04 04 00 62 01 00 00 19 04 04 00 00 00 00 00 90 00 90 [19:16:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 F1 DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 61 01 00 00 5E 04 04 00 61 01 00 00 57 04 04 00 62 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:16:01]wFMCommunicate OK [19:16:01]SAM_PROTO_GetFieldsCounters done [19:16:01]requested_item shift.num is exist - process it [19:16:01]requested_item shift.opened is exist - process it [19:16:01]req_shift_opened [19:16:01]FM_GetShiftState [19:16:01]SAM_PROTO_GetShiftState [19:16:01]wFMCommunicate request_size=4 [19:16:01]MH_SAM_APDU [19:16:01]CAPDU: 80 13 01 00 [19:16:01]Write to MH i2c: E2 08 00 C6 85 80 13 01 00 00 00 00 00 C8 [19:16:01]Write i2c OK [19:16:01]MH_I2C_Read... [19:16:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:16:01]Read from MH i2c: E2 [19:16:01]MH_I2C_Read... [19:16:01]Read from MH i2c: E2 0E 00 [19:16:01]MH_I2C_Read... [19:16:01]Read from MH i2c: E2 0E 00 C6 85 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 27 [19:16:01]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [19:16:01]wFMCommunicate OK [19:16:01]SAM_PROTO_GetShiftState done [19:16:01]FM_GetShiftState done [19:16:01]req_shift_opened done [19:16:01]requested_item shift.open_date is exist - process it [19:16:01]req_shift_open_date [19:16:01]req_shift_open_date done [19:16:01]produce_requested_data done [19:16:01]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187889,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [19:16:01]process_action_free close_receipt [19:16:01]json_value_free [19:16:01]json_value_free done [19:16:01]process_json_proto returns [19:16:01]Send response to host [19:16:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187889,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [19:16:01]free response buf [19:16:01]execute_script done [19:16:01]execute_script returns [19:16:01]free content buf [19:16:01]Sock 8.Close socket [19:16:01]Sock 8.Thread stoped [19:16:05]OFD Sender: No OFD packet to send [19:16:10]OFD Sender: No OFD packet to send [19:16:15]OFD Sender: No OFD packet to send [19:16:20]OFD Sender: No OFD packet to send [19:16:25]OFD Sender: No OFD packet to send [19:16:30]OFD Sender: No OFD packet to send [19:16:35]OFD Sender: No OFD packet to send [19:16:40]OFD Sender: No OFD packet to send [19:16:45]OFD Sender: No OFD packet to send [19:16:50]OFD Sender: No OFD packet to send [19:16:55]OFD Sender: No OFD packet to send [19:17:00]OFD Sender: No OFD packet to send [19:17:05]OFD Sender: No OFD packet to send [19:17:10]OFD Sender: No OFD packet to send [19:17:15]OFD Sender: No OFD packet to send [19:17:20]OFD Sender: No OFD packet to send [19:17:25]OFD Sender: No OFD packet to send [19:17:30]OFD Sender: No OFD packet to send [19:17:35]OFD Sender: No OFD packet to send [19:17:40]OFD Sender: No OFD packet to send [19:17:45]OFD Sender: No OFD packet to send [19:17:50]OFD Sender: No OFD packet to send [19:17:55]OFD Sender: No OFD packet to send [19:18:00]OFD Sender: No OFD packet to send [19:18:05]OFD Sender: No OFD packet to send [19:18:11]OFD Sender: No OFD packet to send [19:18:16]OFD Sender: No OFD packet to send [19:18:21]OFD Sender: No OFD packet to send [19:18:26]OFD Sender: No OFD packet to send [19:18:31]OFD Sender: No OFD packet to send [19:18:36]OFD Sender: No OFD packet to send [19:18:41]OFD Sender: No OFD packet to send [19:18:46]OFD Sender: No OFD packet to send [19:18:51]OFD Sender: No OFD packet to send [19:18:56]OFD Sender: No OFD packet to send [19:19:01]OFD Sender: No OFD packet to send [19:19:06]OFD Sender: No OFD packet to send [19:19:11]OFD Sender: No OFD packet to send [19:19:16]OFD Sender: No OFD packet to send [19:19:21]OFD Sender: No OFD packet to send [19:19:26]OFD Sender: No OFD packet to send [19:19:31]OFD Sender: No OFD packet to send [19:19:36]OFD Sender: No OFD packet to send [19:19:41]OFD Sender: No OFD packet to send [19:19:46]OFD Sender: No OFD packet to send [19:19:51]OFD Sender: No OFD packet to send [19:19:56]OFD Sender: No OFD packet to send [19:20:01]OFD Sender: No OFD packet to send [19:20:06]accept exits with 9 [19:20:06]New connection [19:20:06]New thread 3067157860 created [19:20:06]Thread 3067014500 joined [19:20:06]Waiting for new connection... [19:20:06] Sock 9.Parse request [19:20:06]Sock 9.Check first char [19:20:06]Sock 9.First char is OK [19:20:06]request: POST /json_proto HTTP/1.0 [19:20:06]Method: POST [19:20:06]URL: /json_proto [19:20:06]Method is POST - this is cgi request [19:20:06]url: /json_proto [19:20:06]query_string will be loaded in cgi processing [19:20:06]execute_cgi json_proto POST (null) [19:20:06]execute_cgi path=json_proto method=POST [19:20:06]POST find Content-Length [19:20:06]Host: 172.17.42.131:8080 [19:20:06]Content-Length: 789 [19:20:06]Content-Type: application/json [19:20:06] [19:20:06]POST finish read [19:20:06]Found Content-Length = 789 [19:20:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209942", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 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\u000A02640", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:20:06]execute_script... [19:20: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)209942", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 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\u000A02640", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:20:06]POST & json_proto [19:20:06]process_json_proto [19:20:06]json parsed OK: [19:20:06]protocol is kg_v1.0 [19:20:06]action value=close_receipt [19:20:06]process_action close_receipt [19:20:06]cmd_close_receipt [19:20:06]MH_GetDate [19:20:06]Write to MH i2c: F0 00 00 C7 85 3B [19:20:06]Write i2c OK [19:20:06]MH_I2C_Read... [19:20:06]Read from MH i2c: F0 [19:20:06]MH_I2C_Read... [19:20:06]Read from MH i2c: F0 09 00 [19:20:06]MH_I2C_Read... [19:20:06]Read from MH i2c: F0 09 00 C7 85 00 6B A9 16 67 A0 18 CA 66 BD [19:20:06]GetLastDocTimeStamp 1729538163 [19:20:06]current date 1729538411 [19:20:06]FM_GetShiftState [19:20:06]SAM_PROTO_GetShiftState [19:20:06]wFMCommunicate request_size=4 [19:20:06]MH_SAM_APDU [19:20:06]CAPDU: 80 13 01 00 [19:20:06]Write to MH i2c: E2 08 00 C8 85 80 13 01 00 00 00 00 00 CA [19:20:06]Write i2c OK [19:20:06]MH_I2C_Read... [19:20:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:20:06]Read from MH i2c: E2 [19:20:06]MH_I2C_Read... [19:20:06]Read from MH i2c: E2 0E 00 [19:20:06]MH_I2C_Read... [19:20:06]Read from MH i2c: E2 0E 00 C8 85 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 29 [19:20:06]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [19:20:06]wFMCommunicate OK [19:20:06]SAM_PROTO_GetShiftState done [19:20:06]FM_GetShiftState done [19:20:06]opened in 1729469754 [19:20:06]opened+sec_in_day 1729556154 [19:20:06]quantity*price = 0 [19:20:06]sum+1 = 1 [19:20:06]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 354 21.10.2024 19:20 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Талоны: Топливная Карта 02640 ФМ: 0000000000965340 ФД: 187890 ФПД: 67589529173515 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T192011&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187890&fm=67589529173515&tin=02508201610067®Number=0000000000100030&sum=0 [19:20:07]StoreToDocumentArchive [19:20:07]shift 460 fd 187890 [19:20:07]save to /storage/0460/doc_00187890 [19:20:07]save last doc name /storage/0460/doc_00187890 to /storage/kkm_last_doc_name [19:20:07]save OK [19:20:07]Clear old archive folders... [19:20:07]ProcessDocumentItem done err = 0, tmpTLVsize=248 [19:20:07]tlvbuf is 0118DA60 [19:20:07]SAM_PROTO_ClearQueue [19:20:07]wFMCommunicate request_size=4 [19:20:07]MH_SAM_APDU [19:20:07]CAPDU: 80 09 00 00 [19:20:07]Write to MH i2c: E2 08 00 D5 85 80 09 00 00 00 00 00 00 CC [19:20:07]Write i2c OK [19:20:07]MH_I2C_Read... [19:20:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:20:07]Read from MH i2c: E2 [19:20:07]MH_I2C_Read... [19:20:07]Read from MH i2c: E2 03 00 [19:20:07]MH_I2C_Read... [19:20:07]Read from MH i2c: E2 03 00 D5 85 00 90 00 CE [19:20:07]RAPDU: 90 00 [19:20:07]wFMCommunicate OK [19:20:07]SAM_PROTO_ClearQueue done [19:20:07]KKMCreateOFDPacket [19:20:07]OFDProtocolAddRootSTLVToBuf [19:20:07]FM_MakeSignedData [19:20:07]FM_MakeSignedData [19:20:07]SAM_PROTO_SignData [19:20:07]wFMCommunicate request_size=4 [19:20:07]MH_SAM_APDU [19:20:07]CAPDU: 80 0D 01 02 [19:20:07]Write to MH i2c: E2 08 00 D6 85 80 0D 01 02 00 00 00 00 D4 [19:20:07]Write i2c OK [19:20:07]MH_I2C_Read... [19:20:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:20:07]Read from MH i2c: E2 [19:20:07]MH_I2C_Read... [19:20:07]Read from MH i2c: E2 03 00 [19:20:07]MH_I2C_Read... [19:20:07]Read from MH i2c: E2 03 00 D6 85 00 90 00 CF [19:20:07]RAPDU: 90 00 [19:20:07]wFMCommunicate OK [19:20:07]wFMCommunicate request_size=255 [19:20:07]MH_SAM_APDU [19:20:07]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 62 01 00 00 F4 03 04 00 6B A9 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 F2 DD 02 00 35 04 06 00 3D 78 E9 E0 [19:20:07]Write to MH i2c: E2 02 01 D7 85 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 01 00 00 F4 03 04 00 6B A9 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 F2 DD 02 00 35 04 06 00 3D 78 E9 E0 00 00 95 [19:20:07]Write i2c OK [19:20:07]MH_I2C_Read... [19:20:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:20:07]Read from MH i2c: E2 [19:20:07]MH_I2C_Read... [19:20:07]Read from MH i2c: E2 03 00 [19:20:07]MH_I2C_Read... [19:20:07]Read from MH i2c: E2 03 00 D7 85 00 90 00 D0 [19:20:07]RAPDU: 90 00 [19:20:07]wFMCommunicate OK [19:20:07]wFMCommunicate request_size=7 [19:20:07]MH_SAM_APDU [19:20:07]CAPDU: 80 0D 02 02 02 7E 0B [19:20:07]Write to MH i2c: E2 0A 00 D8 85 80 0D 02 02 02 00 7E 0B 00 00 64 [19:20:07]Write i2c OK [19:20:07]MH_I2C_Read... [19:20:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:20:07]Read from MH i2c: E2 [19:20:07]MH_I2C_Read... [19:20:07]Read from MH i2c: E2 03 00 [19:20:07]MH_I2C_Read... [19:20:07]Read from MH i2c: E2 03 00 D8 85 00 90 00 D1 [19:20:07]RAPDU: 90 00 [19:20:07]wFMCommunicate OK [19:20:07]wFMCommunicate request_size=4 [19:20:07]MH_SAM_APDU [19:20:07]CAPDU: 80 0D 03 02 [19:20:07]Write to MH i2c: E2 08 00 D9 85 80 0D 03 02 00 00 00 00 D9 [19:20:07]Write i2c OK [19:20:07]MH_I2C_Read... [19:20:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:20:07]Read from MH i2c: E2 [19:20:07]MH_I2C_Read... [19:20:07]Read from MH i2c: E2 0B 00 [19:20:07]MH_I2C_Read... [19:20:07]Read from MH i2c: E2 0B 00 D9 85 00 7B 4B 13 E3 45 47 8F 1A 90 00 CB [19:20:07]RAPDU: 7B 4B 13 E3 45 47 8F 1A 90 00 [19:20:07]wFMCommunicate OK [19:20:07]SAM_PROTO_SignData done [19:20:07]FM_MakeSignedData done [19:20:07]CreateOFDProtocolMessage [19:20:07]wFMCommunicate request_size=4 [19:20:07]MH_SAM_APDU [19:20:07]CAPDU: 80 11 00 00 [19:20:07]Write to MH i2c: E2 08 00 DA 85 80 11 00 00 00 00 00 00 D9 [19:20:07]Write i2c OK [19:20:07]MH_I2C_Read... [19:20:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:20:08]Read from MH i2c: E2 [19:20:08]MH_I2C_Read... [19:20:08]Read from MH i2c: E2 17 00 [19:20:08]MH_I2C_Read... [19:20:08]Read from MH i2c: E2 17 00 DA 85 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 27 [19:20:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [19:20:08]wFMCommunicate OK [19:20:08]CreateOFDProtocolMessage done [19:20:08]OFDSenderStorePacket 187890 [19:20:08]StoreOFDPacket docnum=187890 [19:20:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 A4 D8 04 01 31 6D 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 01 00 00 F4 03 04 00 6B A9 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 F2 DD 02 00 35 04 06 00 3D 78 E9 E0 7E 0B 7B 4B 13 E3 45 47 8F 1A [19:20:08]CheckFolder [19:20:08]dirname=/storage/ofd_packets [19:20:08]CheckFolder done [19:20:08]ProducePacketName [19:20:08]name=ofd_packets/00187890 [19:20:08]NVStorageSaveData ofd_packets/00187890 [19:20:08]File name is /storage/ofd_packets/00187890 [19:20:08]Write 298 bytes [19:20:08]NVStorageSaveData done [19:20:08]OFDSenderStorePacket done [19:20:08]KKMCreateOFDPacket done [19:20:08]NVStorageSaveData kkm_last_timestamp [19:20:08]File name is /storage/kkm_last_timestamp [19:20:08]Write 4 bytes [19:20:08]NVStorageSaveData done [19:20:08]ExternCall_PrintAddStr [19:20:08]wPrintStart [19:20:08]Write to MH i2c: 01 00 00 DB 85 60 [19:20:08]Write i2c OK [19:20:08]MH_I2C_Read... [19:20:08]Read from MH i2c: 01 [19:20:08]MH_I2C_Read... [19:20:08]Read from MH i2c: 01 07 00 [19:20:08]MH_I2C_Read... [19:20:08]Read from MH i2c: 01 07 00 DB 85 00 00 00 00 00 FF 0F 75 [19:20:08]RasterBufferAndPrint [19:20:08]line Счет N : (1)209942 [19:20:08]line ИНН: 02508201610067 [19:20:08]line Контрольно-Кассовый Чек [19:20:08]line ПРОДАЖА [19:20:08]line ТРК (МРК, ГНК) : 51 [19:20:08]line Товар: 2710194210 [19:20:08]line ДТ-К-5 [19:20:08]line 20.000 * 0.00 [19:20:08]line = 0.00 [19:20:08]line НДС 12% НСП 1% [19:20:08]line > о реализуемом товаре [19:20:08]line ИТОГО: 0.00 [19:20:08]line НСП 1% : 0.00 [19:20:08]line НДС 12% : 0.00 [19:20:08]line Наличными: 0.00 [19:20:08]line Безнал.: 0.00 [19:20:08]line Место: АЗС № 86 "Партнер Нефть" [19:20:08]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [19:20:08]line СНО: Общий режим [19:20:08]line Чек 354 21.10.2024 19:20 [19:20:08]line Смена: 460 ФФД: 1.0 [19:20:08]line ЗНМ: 0300000155 [19:20:08]line РНМ: 0000000000100030 [19:20:08]line Версия ККМ: 001 [19:20:08]line Талоны: Топливная Карта [19:20:08]line 02640 [19:20:08]line ФМ: 0000000000965340 [19:20:08]line ФД: 187890 [19:20:08]line ФПД: 67589529173515 [19:20:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T192011&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187890&fm=67589529173515&tin=02508201610067®Number=0000000000100030&sum=0 [19:20:08]written 0, free lines is 4095 [19:20:08]OFD Sender: Processing packet 187890 [packets to send 1062, broken 1061] [19:20:08]ProducePacketName [19:20:08]name=ofd_packets/00187890 [19:20:08]OFD Sender: To server: pG, [19:20:08]CommunicateWithHost lk.salyk.kg:30040 [19:20:08]ConnectInit lk.salyk.kg [19:20:08]Connected sock=10 [19:20:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 A4 D8 04 01 31 6D 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 01 00 00 F4 03 04 00 6B A9 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 F2 DD 02 00 35 04 06 00 3D 78 E9 E0 7E 0B 7B 4B 13 E3 45 47 8F 1A [19:20:08]Write to MH i2c: 01 00 00 05 86 8B [19:20:08]Write i2c OK [19:20:08]MH_I2C_Read... [19:20:08]Read from MH i2c: 01 [19:20:08]MH_I2C_Read... [19:20:08]Read from MH i2c: 01 07 00 [19:20:08]MH_I2C_Read... [19:20:08]Read from MH i2c: 01 07 00 05 86 00 00 00 00 00 7A 0C 18 [19:20:08]RasterBufferAndPrint [19:20:08]line [19:20:08]line [19:20:08]line [19:20:08]line [19:20:08]line [19:20:08]written 0, free lines is 3198 [19:20:08]MH_Cut [19:20:08]Write to MH i2c: D1 01 00 0C 86 01 64 [19:20:08]Write i2c OK [19:20:08]MH_I2C_Read... [19:20:08]Read from MH i2c: D1 [19:20:08]MH_I2C_Read... [19:20:08]Read from MH i2c: D1 01 00 [19:20:08]MH_I2C_Read... [19:20:08]Read from MH i2c: D1 01 00 0C 86 00 63 [19:20:08]Write to MH i2c: 01 00 00 0D 86 93 [19:20:08]Write i2c OK [19:20:08]MH_I2C_Read... [19:20:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 A3 E9 47 00 F6 2D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 F2 DD 02 00 F4 03 04 00 5A 53 16 67 B6 04 01 00 00 6C 54 13 07 F9 E9 A9 C2 [19:20:08]CommunicateWithHost err = 0 [19:20:08]CheckOFDResponse [19:20:08]1017 (14) - 77093643461234 [19:20:08]1041 (16) - 0000000000965340 [19:20:08]1040 (4) - 187890 [19:20:08]1012 (4) - 21.10.2024 13:12 [19:20:08]1206 (1) - 0 [19:20:08]OFD Sender: Remove packet 187890 [19:20:08]ProducePacketName [19:20:08]name=ofd_packets/00187890 [19:20:08]NVStorageDeleteData [19:20:09]OFD Sender: No OFD packet to send [19:20:09]*** Cut start [19:20:09]*** Partial cut [19:20:09]*** CUTSNS_PIN = 1 [19:20:09]*** CUTSNS_PIN = 0 [19:20:09]*** Brake cut motor [19:20:10]Read from MH i2c: 01 [19:20:10]MH_I2C_Read... [19:20:10]*** Stop cut motor [19:20:10]*** Cut end [19:20:10]Read from MH i2c: 01 07 00 [19:20:10]MH_I2C_Read... [19:20:10]Read from MH i2c: 01 07 00 0D 86 00 00 00 00 00 FF 0F A8 [19:20:10]process_action close_receipt done [19:20:10]requested_data is exist [19:20:10]produce_requested_data [19:20:10]requested_item fm.sn is exist - process it [19:20:10]wFMCommunicate request_size=4 [19:20:10]MH_SAM_APDU [19:20:10]CAPDU: 80 11 00 00 [19:20:10]Write to MH i2c: E2 08 00 0E 86 80 11 00 00 00 00 00 00 0E [19:20:10]Write i2c OK [19:20:10]MH_I2C_Read... [19:20:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:20:10]Read from MH i2c: E2 [19:20:10]MH_I2C_Read... [19:20:10]Read from MH i2c: E2 17 00 [19:20:10]MH_I2C_Read... [19:20:10]Read from MH i2c: E2 17 00 0E 86 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 5C [19:20:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [19:20:10]wFMCommunicate OK [19:20:10]requested_item fd.num is exist - process it [19:20:10]SAM_PROTO_GetFieldsCounters [19:20:10]wFMCommunicate request_size=4 [19:20:10]MH_SAM_APDU [19:20:10]CAPDU: 80 13 00 00 [19:20:10]Write to MH i2c: E2 08 00 0F 86 80 13 00 00 00 00 00 00 11 [19:20:10]Write i2c OK [19:20:10]MH_I2C_Read... [19:20:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:20:10]Read from MH i2c: E2 [19:20:10]MH_I2C_Read... [19:20:10]Read from MH i2c: E2 62 00 [19:20:10]MH_I2C_Read... [19:20:10]Read from MH i2c: E2 62 00 0F 86 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 F2 DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 62 01 00 00 5E 04 04 00 62 01 00 00 57 04 04 00 63 01 00 00 19 04 04 00 00 00 00 00 90 00 DF [19:20:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 F2 DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 62 01 00 00 5E 04 04 00 62 01 00 00 57 04 04 00 63 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:20:10]wFMCommunicate OK [19:20:10]SAM_PROTO_GetFieldsCounters done [19:20:10]requested_item shift.num is exist - process it [19:20:10]requested_item shift.opened is exist - process it [19:20:10]req_shift_opened [19:20:10]FM_GetShiftState [19:20:10]SAM_PROTO_GetShiftState [19:20:10]wFMCommunicate request_size=4 [19:20:10]MH_SAM_APDU [19:20:10]CAPDU: 80 13 01 00 [19:20:10]Write to MH i2c: E2 08 00 10 86 80 13 01 00 00 00 00 00 13 [19:20:10]Write i2c OK [19:20:10]MH_I2C_Read... [19:20:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:20:10]Read from MH i2c: E2 [19:20:10]MH_I2C_Read... [19:20:10]Read from MH i2c: E2 0E 00 [19:20:10]MH_I2C_Read... [19:20:10]Read from MH i2c: E2 0E 00 10 86 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 72 [19:20:10]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [19:20:10]wFMCommunicate OK [19:20:10]SAM_PROTO_GetShiftState done [19:20:10]FM_GetShiftState done [19:20:10]req_shift_opened done [19:20:10]requested_item shift.open_date is exist - process it [19:20:10]req_shift_open_date [19:20:10]req_shift_open_date done [19:20:10]produce_requested_data done [19:20:10]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187890,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [19:20:10]process_action_free close_receipt [19:20:10]json_value_free [19:20:10]json_value_free done [19:20:10]process_json_proto returns [19:20:10]Send response to host [19:20:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187890,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [19:20:10]free response buf [19:20:10]execute_script done [19:20:10]execute_script returns [19:20:10]free content buf [19:20:10]Sock 9.Close socket [19:20:10]Sock 9.Thread stoped [19:20:14]OFD Sender: No OFD packet to send [19:20:15]accept exits with 8 [19:20:15]New connection [19:20:15]New thread 3067014500 created [19:20:15]Thread 3067157860 joined [19:20:15]Waiting for new connection... [19:20:15] Sock 8.Parse request [19:20:15]Sock 8.Check first char [19:20:15]Sock 8.First char is OK [19:20:15]request: POST /json_proto HTTP/1.0 [19:20:15]Method: POST [19:20:15]URL: /json_proto [19:20:15]Method is POST - this is cgi request [19:20:15]url: /json_proto [19:20:15]query_string will be loaded in cgi processing [19:20:15]execute_cgi json_proto POST (null) [19:20:15]execute_cgi path=json_proto method=POST [19:20:15]POST find Content-Length [19:20:15]Host: 172.17.42.131:8080 [19:20:15]Content-Length: 766 [19:20:15]Content-Type: application/json [19:20:15] [19:20:15]POST finish read [19:20:15]Found Content-Length = 766 [19:20:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209943", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:20:15]execute_script... [19:20:15]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209943", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:20:15]POST & json_proto [19:20:15]process_json_proto [19:20:15]json parsed OK: [19:20:15]protocol is kg_v1.0 [19:20:15]action value=close_receipt [19:20:15]process_action close_receipt [19:20:15]cmd_close_receipt [19:20:15]MH_GetDate [19:20:15]Write to MH i2c: F0 00 00 11 86 86 [19:20:15]Write i2c OK [19:20:15]MH_I2C_Read... [19:20:15]Read from MH i2c: F0 [19:20:15]MH_I2C_Read... [19:20:15]Read from MH i2c: F0 09 00 [19:20:15]MH_I2C_Read... [19:20:15]Read from MH i2c: F0 09 00 11 86 00 74 A9 16 67 A0 18 CA 66 11 [19:20:15]GetLastDocTimeStamp 1729538411 [19:20:15]current date 1729538420 [19:20:15]FM_GetShiftState [19:20:15]SAM_PROTO_GetShiftState [19:20:15]wFMCommunicate request_size=4 [19:20:15]MH_SAM_APDU [19:20:15]CAPDU: 80 13 01 00 [19:20:15]Write to MH i2c: E2 08 00 12 86 80 13 01 00 00 00 00 00 15 [19:20:15]Write i2c OK [19:20:15]MH_I2C_Read... [19:20:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:20:15]Read from MH i2c: E2 [19:20:15]MH_I2C_Read... [19:20:15]Read from MH i2c: E2 0E 00 [19:20:15]MH_I2C_Read... [19:20:15]Read from MH i2c: E2 0E 00 12 86 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 74 [19:20:15]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [19:20:15]wFMCommunicate OK [19:20:15]SAM_PROTO_GetShiftState done [19:20:15]FM_GetShiftState done [19:20:15]opened in 1729469754 [19:20:15]opened+sec_in_day 1729556154 [19:20:15]quantity*price = 50041 [19:20:15]sum+1 = 50042 [19:20:15]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.41 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 0.00 Безнал.: 500.41 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 355 21.10.2024 19:20 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000965340 ФД: 187891 ФПД: 120832340513405 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T192020&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187891&fm=120832340513405&tin=02508201610067®Number=0000000000100030&sum=50041 [19:20:16]StoreToDocumentArchive [19:20:16]shift 460 fd 187891 [19:20:16]save to /storage/0460/doc_00187891 [19:20:16]save last doc name /storage/0460/doc_00187891 to /storage/kkm_last_doc_name [19:20:16]save OK [19:20:16]Clear old archive folders... [19:20:16]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:20:16]tlvbuf is 012D0630 [19:20:16]SAM_PROTO_ClearQueue [19:20:16]wFMCommunicate request_size=4 [19:20:16]MH_SAM_APDU [19:20:16]CAPDU: 80 09 00 00 [19:20:16]Write to MH i2c: E2 08 00 1F 86 80 09 00 00 00 00 00 00 17 [19:20:16]Write i2c OK [19:20:16]MH_I2C_Read... [19:20:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:20:16]Read from MH i2c: E2 [19:20:16]MH_I2C_Read... [19:20:16]Read from MH i2c: E2 03 00 [19:20:16]MH_I2C_Read... [19:20:16]Read from MH i2c: E2 03 00 1F 86 00 90 00 19 [19:20:16]RAPDU: 90 00 [19:20:16]wFMCommunicate OK [19:20:16]SAM_PROTO_ClearQueue done [19:20:16]KKMCreateOFDPacket [19:20:16]OFDProtocolAddRootSTLVToBuf [19:20:16]FM_MakeSignedData [19:20:16]FM_MakeSignedData [19:20:16]SAM_PROTO_SignData [19:20:16]wFMCommunicate request_size=4 [19:20:16]MH_SAM_APDU [19:20:16]CAPDU: 80 0D 01 02 [19:20:16]Write to MH i2c: E2 08 00 20 86 80 0D 01 02 00 00 00 00 1F [19:20:16]Write i2c OK [19:20:16]MH_I2C_Read... [19:20:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:20:16]Read from MH i2c: E2 [19:20:16]MH_I2C_Read... [19:20:16]Read from MH i2c: E2 03 00 [19:20:16]MH_I2C_Read... [19:20:16]Read from MH i2c: E2 03 00 20 86 00 90 00 1A [19:20:16]RAPDU: 90 00 [19:20:16]wFMCommunicate OK [19:20:16]wFMCommunicate request_size=255 [19:20:16]MH_SAM_APDU [19:20: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 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 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 63 01 00 00 F4 03 04 00 74 A9 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 F3 DD 02 00 35 04 06 00 6D [19:20:16]Write to MH i2c: E2 02 01 21 86 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 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 63 01 00 00 F4 03 04 00 74 A9 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 F3 DD 02 00 35 04 06 00 6D 00 00 EE [19:20:16]Write i2c OK [19:20:16]MH_I2C_Read... [19:20:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:20:16]Read from MH i2c: E2 [19:20:16]MH_I2C_Read... [19:20:16]Read from MH i2c: E2 03 00 [19:20:16]MH_I2C_Read... [19:20:16]Read from MH i2c: E2 03 00 21 86 00 90 00 1B [19:20:16]RAPDU: 90 00 [19:20:16]wFMCommunicate OK [19:20:16]wFMCommunicate request_size=10 [19:20:16]MH_SAM_APDU [19:20:16]CAPDU: 80 0D 02 02 05 E5 78 BB D2 7D [19:20:16]Write to MH i2c: E2 0D 00 22 86 80 0D 02 02 05 00 E5 78 BB D2 7D 00 00 93 [19:20:17]Write i2c OK [19:20:17]MH_I2C_Read... [19:20:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:20:17]Read from MH i2c: E2 [19:20:17]MH_I2C_Read... [19:20:17]Read from MH i2c: E2 03 00 [19:20:17]MH_I2C_Read... [19:20:17]Read from MH i2c: E2 03 00 22 86 00 90 00 1C [19:20:17]RAPDU: 90 00 [19:20:17]wFMCommunicate OK [19:20:17]wFMCommunicate request_size=4 [19:20:17]MH_SAM_APDU [19:20:17]CAPDU: 80 0D 03 02 [19:20:17]Write to MH i2c: E2 08 00 23 86 80 0D 03 02 00 00 00 00 24 [19:20:17]Write i2c OK [19:20:17]MH_I2C_Read... [19:20:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:20:17]Read from MH i2c: E2 [19:20:17]MH_I2C_Read... [19:20:17]Read from MH i2c: E2 0B 00 [19:20:17]MH_I2C_Read... [19:20:17]Read from MH i2c: E2 0B 00 23 86 00 4A 52 48 CD F4 E0 52 76 90 00 72 [19:20:17]RAPDU: 4A 52 48 CD F4 E0 52 76 90 00 [19:20:17]wFMCommunicate OK [19:20:17]SAM_PROTO_SignData done [19:20:17]FM_MakeSignedData done [19:20:17]CreateOFDProtocolMessage [19:20:17]wFMCommunicate request_size=4 [19:20:17]MH_SAM_APDU [19:20:17]CAPDU: 80 11 00 00 [19:20:17]Write to MH i2c: E2 08 00 24 86 80 11 00 00 00 00 00 00 24 [19:20:17]Write i2c OK [19:20:17]MH_I2C_Read... [19:20:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:20:17]Read from MH i2c: E2 [19:20:17]MH_I2C_Read... [19:20:17]Read from MH i2c: E2 17 00 [19:20:17]MH_I2C_Read... [19:20:17]Read from MH i2c: E2 17 00 24 86 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 72 [19:20:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [19:20:17]wFMCommunicate OK [19:20:17]CreateOFDProtocolMessage done [19:20:17]OFDSenderStorePacket 187891 [19:20:17]StoreOFDPacket docnum=187891 [19:20:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 04 5F 07 01 11 A2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 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 63 01 00 00 F4 03 04 00 74 A9 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 F3 DD 02 00 35 04 06 00 6D E5 78 BB D2 7D 4A 52 48 CD F4 E0 52 76 [19:20:17]CheckFolder [19:20:17]dirname=/storage/ofd_packets [19:20:17]CheckFolder done [19:20:17]ProducePacketName [19:20:17]name=ofd_packets/00187891 [19:20:17]NVStorageSaveData ofd_packets/00187891 [19:20:17]File name is /storage/ofd_packets/00187891 [19:20:17]Write 301 bytes [19:20:17]NVStorageSaveData done [19:20:17]OFDSenderStorePacket done [19:20:17]KKMCreateOFDPacket done [19:20:17]NVStorageSaveData kkm_last_timestamp [19:20:17]File name is /storage/kkm_last_timestamp [19:20:17]Write 4 bytes [19:20:17]NVStorageSaveData done [19:20:17]OFD Sender: Processing packet 187891 [packets to send 1062, broken 1061] [19:20:17]ProducePacketName [19:20:17]name=ofd_packets/00187891 [19:20:17]OFD Sender: To server: pG, [19:20:17]CommunicateWithHost lk.salyk.kg:30040 [19:20:17]ConnectInit lk.salyk.kg [19:20:17]ExternCall_PrintAddStr [19:20:17]wPrintStart [19:20:17]Write to MH i2c: 01 00 00 25 86 AB [19:20:17]Write i2c OK [19:20:17]MH_I2C_Read... [19:20:17]Read from MH i2c: 01 [19:20:17]MH_I2C_Read... [19:20:17]Read from MH i2c: 01 07 00 [19:20:17]MH_I2C_Read... [19:20:17]Read from MH i2c: 01 07 00 25 86 00 00 00 00 00 FF 0F C0 [19:20:17]RasterBufferAndPrint [19:20:17]line Счет N : (1)209943 [19:20:17]line ИНН: 02508201610067 [19:20:17]line Контрольно-Кассовый Чек [19:20:17]line ПРОДАЖА [19:20:17]line ТРК (МРК, ГНК) : 32 [19:20:17]line Товар: 2710124130 [19:20:17]line Аи-92-К-3 [19:20:17]line 7.480 * 66.90 [19:20:17]line = 500.41 [19:20:17]line НДС 12% НСП 1% [19:20:17]line > о реализуемом товаре [19:20:17]line ИТОГО: 500.41 [19:20:17]line НСП 1% : 4.43 [19:20:17]line НДС 12% : 53.14 [19:20:17]line Наличными: 0.00 [19:20:17]line Безнал.: 500.41 [19:20:17]line Место: АЗС № 86 "Партнер Нефть" [19:20:17]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [19:20:17]line СНО: Общий режим [19:20:17]line Чек 355 21.10.2024 19:20 [19:20:17]line Смена: 460 ФФД: 1.0 [19:20:17]line ЗНМ: 0300000155 [19:20:17]line РНМ: 0000000000100030 [19:20:17]line Версия ККМ: 001 [19:20:17]line Платежная система: Mbank [19:20:17]line ФМ: 0000000000965340 [19:20:17]line ФД: 187891 [19:20:17]line ФПД: 120832340513405 [19:20:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T192020&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187891&fm=120832340513405&tin=02508201610067®Number=0000000000100030&sum=50041 [19:20:17]written 0, free lines is 4095 [19:20:17]Connected sock=10 [19:20:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 04 5F 07 01 11 A2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 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 63 01 00 00 F4 03 04 00 74 A9 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 F3 DD 02 00 35 04 06 00 6D E5 78 BB D2 7D 4A 52 48 CD F4 E0 52 76 [19:20:17]Write to MH i2c: 01 00 00 4E 86 D4 [19:20:17]Write i2c OK [19:20:17]MH_I2C_Read... [19:20:17]Read from MH i2c: 01 [19:20:17]MH_I2C_Read... [19:20:17]Read from MH i2c: 01 07 00 [19:20:17]MH_I2C_Read... [19:20:17]Read from MH i2c: 01 07 00 4E 86 00 00 00 00 00 94 0C 7B [19:20:17]RasterBufferAndPrint [19:20:17]line [19:20:17]line [19:20:17]line [19:20:17]line [19:20:17]line [19:20:17]written 0, free lines is 3225 [19:20:17]MH_Cut [19:20:17]Write to MH i2c: D1 01 00 55 86 01 AD [19:20:17]Write i2c OK [19:20:17]MH_I2C_Read... [19:20:17]Read from MH i2c: D1 [19:20:17]MH_I2C_Read... [19:20:17]Read from MH i2c: D1 01 00 [19:20:17]MH_I2C_Read... [19:20:17]Read from MH i2c: D1 01 00 55 86 00 AC [19:20:17]Write to MH i2c: 01 00 00 56 86 DC [19:20:17]Write i2c OK [19:20:17]MH_I2C_Read... [19:20:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 75 78 47 00 23 71 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 F3 DD 02 00 F4 03 04 00 63 53 16 67 B6 04 01 00 00 EE C6 05 6F 55 C1 1E 50 [19:20:17]CommunicateWithHost err = 0 [19:20:17]CheckOFDResponse [19:20:17]1017 (14) - 77093643461234 [19:20:17]1041 (16) - 0000000000965340 [19:20:17]1040 (4) - 187891 [19:20:17]1012 (4) - 21.10.2024 13:13 [19:20:17]1206 (1) - 0 [19:20:17]OFD Sender: Remove packet 187891 [19:20:17]ProducePacketName [19:20:17]name=ofd_packets/00187891 [19:20:17]NVStorageDeleteData [19:20:18]OFD Sender: No OFD packet to send [19:20:18]*** Cut start [19:20:18]*** Partial cut [19:20:18]*** CUTSNS_PIN = 1 [19:20:18]*** CUTSNS_PIN = 0 [19:20:19]*** Brake cut motor [19:20:19]Read from MH i2c: 01 [19:20:19]MH_I2C_Read... [19:20:19]*** Stop cut motor [19:20:19]*** Cut end [19:20:19]Read from MH i2c: 01 07 00 [19:20:19]MH_I2C_Read... [19:20:19]Read from MH i2c: 01 07 00 56 86 00 00 00 00 00 FF 0F F1 [19:20:19]process_action close_receipt done [19:20:19]requested_data is exist [19:20:19]produce_requested_data [19:20:19]requested_item fm.sn is exist - process it [19:20:19]wFMCommunicate request_size=4 [19:20:19]MH_SAM_APDU [19:20:19]CAPDU: 80 11 00 00 [19:20:19]Write to MH i2c: E2 08 00 57 86 80 11 00 00 00 00 00 00 57 [19:20:19]Write i2c OK [19:20:19]MH_I2C_Read... [19:20:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:20:19]Read from MH i2c: E2 [19:20:19]MH_I2C_Read... [19:20:19]Read from MH i2c: E2 17 00 [19:20:19]MH_I2C_Read... [19:20:19]Read from MH i2c: E2 17 00 57 86 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 A5 [19:20:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [19:20:19]wFMCommunicate OK [19:20:19]requested_item fd.num is exist - process it [19:20:19]SAM_PROTO_GetFieldsCounters [19:20:19]wFMCommunicate request_size=4 [19:20:19]MH_SAM_APDU [19:20:19]CAPDU: 80 13 00 00 [19:20:19]Write to MH i2c: E2 08 00 58 86 80 13 00 00 00 00 00 00 5A [19:20:19]Write i2c OK [19:20:19]MH_I2C_Read... [19:20:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:20:19]Read from MH i2c: E2 [19:20:19]MH_I2C_Read... [19:20:19]Read from MH i2c: E2 62 00 [19:20:19]MH_I2C_Read... [19:20:19]Read from MH i2c: E2 62 00 58 86 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 F3 DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 63 01 00 00 5E 04 04 00 63 01 00 00 57 04 04 00 64 01 00 00 19 04 04 00 00 00 00 00 90 00 2C [19:20:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 F3 DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 63 01 00 00 5E 04 04 00 63 01 00 00 57 04 04 00 64 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:20:19]wFMCommunicate OK [19:20:19]SAM_PROTO_GetFieldsCounters done [19:20:19]requested_item shift.num is exist - process it [19:20:19]requested_item shift.opened is exist - process it [19:20:19]req_shift_opened [19:20:19]FM_GetShiftState [19:20:19]SAM_PROTO_GetShiftState [19:20:19]wFMCommunicate request_size=4 [19:20:19]MH_SAM_APDU [19:20:19]CAPDU: 80 13 01 00 [19:20:19]Write to MH i2c: E2 08 00 59 86 80 13 01 00 00 00 00 00 5C [19:20:19]Write i2c OK [19:20:19]MH_I2C_Read... [19:20:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:20:19]Read from MH i2c: E2 [19:20:19]MH_I2C_Read... [19:20:19]Read from MH i2c: E2 0E 00 [19:20:19]MH_I2C_Read... [19:20:19]Read from MH i2c: E2 0E 00 59 86 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 BB [19:20:19]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [19:20:19]wFMCommunicate OK [19:20:19]SAM_PROTO_GetShiftState done [19:20:19]FM_GetShiftState done [19:20:19]req_shift_opened done [19:20:19]requested_item shift.open_date is exist - process it [19:20:19]req_shift_open_date [19:20:19]req_shift_open_date done [19:20:19]produce_requested_data done [19:20:19]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187891,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [19:20:19]process_action_free close_receipt [19:20:19]json_value_free [19:20:19]json_value_free done [19:20:19]process_json_proto returns [19:20:19]Send response to host [19:20:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187891,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [19:20:19]free response buf [19:20:19]execute_script done [19:20:19]execute_script returns [19:20:19]free content buf [19:20:19]Sock 8.Close socket [19:20:19]Sock 8.Thread stoped [19:20:23]OFD Sender: No OFD packet to send [19:20:28]OFD Sender: No OFD packet to send [19:20:33]OFD Sender: No OFD packet to send [19:20:38]OFD Sender: No OFD packet to send [19:20:43]OFD Sender: No OFD packet to send [19:20:48]OFD Sender: No OFD packet to send [19:20:58]OFD Sender: No OFD packet to send [19:21:03]OFD Sender: No OFD packet to send [19:21:08]OFD Sender: No OFD packet to send [19:21:13]OFD Sender: No OFD packet to send [19:21:18]OFD Sender: No OFD packet to send [19:21:23]OFD Sender: No OFD packet to send [19:21:28]OFD Sender: No OFD packet to send [19:21:33]OFD Sender: No OFD packet to send [19:21:38]OFD Sender: No OFD packet to send [19:21:43]OFD Sender: No OFD packet to send [19:21:46]accept exits with 9 [19:21:46]New connection [19:21:46]New thread 3067157860 created [19:21:46]Thread 3067014500 joined [19:21:46]Waiting for new connection... [19:21:46] Sock 9.Parse request [19:21:46]Sock 9.Check first char [19:21:46]Sock 9.First char is OK [19:21:46]request: POST /json_proto HTTP/1.0 [19:21:46]Method: POST [19:21:46]URL: /json_proto [19:21:46]Method is POST - this is cgi request [19:21:46]url: /json_proto [19:21:46]query_string will be loaded in cgi processing [19:21:46]execute_cgi json_proto POST (null) [19:21:46]execute_cgi path=json_proto method=POST [19:21:46]POST find Content-Length [19:21:46]Host: 172.17.42.131:8080 [19:21:46]Content-Length: 639 [19:21:46]Content-Type: application/json [19:21:46] [19:21:46]POST finish read [19:21:46]Found Content-Length = 639 [19:21:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209944", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 40.000, "sum" : 3048.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 3048.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:21:46]execute_script... [19:21: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)209944", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 40.000, "sum" : 3048.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 3048.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:21:46]POST & json_proto [19:21:46]process_json_proto [19:21:46]json parsed OK: [19:21:46]protocol is kg_v1.0 [19:21:46]action value=close_receipt [19:21:46]process_action close_receipt [19:21:46]cmd_close_receipt [19:21:46]MH_GetDate [19:21:46]Write to MH i2c: F0 00 00 5A 86 CF [19:21:46]Write i2c OK [19:21:46]MH_I2C_Read... [19:21:46]Read from MH i2c: F0 [19:21:46]MH_I2C_Read... [19:21:46]Read from MH i2c: F0 09 00 [19:21:46]MH_I2C_Read... [19:21:46]Read from MH i2c: F0 09 00 5A 86 00 D0 A9 16 67 A0 18 CA 66 B6 [19:21:46]GetLastDocTimeStamp 1729538420 [19:21:46]current date 1729538512 [19:21:46]FM_GetShiftState [19:21:46]SAM_PROTO_GetShiftState [19:21:46]wFMCommunicate request_size=4 [19:21:46]MH_SAM_APDU [19:21:46]CAPDU: 80 13 01 00 [19:21:46]Write to MH i2c: E2 08 00 5B 86 80 13 01 00 00 00 00 00 5E [19:21:46]Write i2c OK [19:21:46]MH_I2C_Read... [19:21:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:21:46]Read from MH i2c: E2 [19:21:46]MH_I2C_Read... [19:21:46]Read from MH i2c: E2 0E 00 [19:21:46]MH_I2C_Read... [19:21:46]Read from MH i2c: E2 0E 00 5B 86 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 BD [19:21:46]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [19:21:46]wFMCommunicate OK [19:21:46]SAM_PROTO_GetShiftState done [19:21:46]FM_GetShiftState done [19:21:46]opened in 1729469754 [19:21:46]opened+sec_in_day 1729556154 [19:21:46]quantity*price = 304800 [19:21:46]sum+1 = 304801 [19:21:46]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 3048.00 НСП 1% : 26.97 НДС 12% : 323.68 Наличными: 3048.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 356 21.10.2024 19:21 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 187892 ФПД: 271675146749385 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T192152&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187892&fm=271675146749385&tin=02508201610067®Number=0000000000100030&sum=304800 [19:21:47]StoreToDocumentArchive [19:21:47]shift 460 fd 187892 [19:21:47]save to /storage/0460/doc_00187892 [19:21:47]save last doc name /storage/0460/doc_00187892 to /storage/kkm_last_doc_name [19:21:47]save OK [19:21:47]Clear old archive folders... [19:21:47]ProcessDocumentItem done err = 0, tmpTLVsize=248 [19:21:47]tlvbuf is 010B8BD0 [19:21:47]SAM_PROTO_ClearQueue [19:21:47]wFMCommunicate request_size=4 [19:21:47]MH_SAM_APDU [19:21:47]CAPDU: 80 09 00 00 [19:21:47]Write to MH i2c: E2 08 00 68 86 80 09 00 00 00 00 00 00 60 [19:21:47]Write i2c OK [19:21:47]MH_I2C_Read... [19:21:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:21:47]Read from MH i2c: E2 [19:21:47]MH_I2C_Read... [19:21:47]Read from MH i2c: E2 03 00 [19:21:47]MH_I2C_Read... [19:21:47]Read from MH i2c: E2 03 00 68 86 00 90 00 62 [19:21:47]RAPDU: 90 00 [19:21:47]wFMCommunicate OK [19:21:47]SAM_PROTO_ClearQueue done [19:21:47]KKMCreateOFDPacket [19:21:47]OFDProtocolAddRootSTLVToBuf [19:21:47]FM_MakeSignedData [19:21:47]FM_MakeSignedData [19:21:47]SAM_PROTO_SignData [19:21:47]wFMCommunicate request_size=4 [19:21:47]MH_SAM_APDU [19:21:47]CAPDU: 80 0D 01 02 [19:21:47]Write to MH i2c: E2 08 00 69 86 80 0D 01 02 00 00 00 00 68 [19:21:47]Write i2c OK [19:21:47]MH_I2C_Read... [19:21:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:21:47]Read from MH i2c: E2 [19:21:47]MH_I2C_Read... [19:21:47]Read from MH i2c: E2 03 00 [19:21:47]MH_I2C_Read... [19:21:47]Read from MH i2c: E2 03 00 69 86 00 90 00 63 [19:21:47]RAPDU: 90 00 [19:21:47]wFMCommunicate OK [19:21:47]wFMCommunicate request_size=255 [19:21:47]MH_SAM_APDU [19:21:47]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 40 9C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 A0 A6 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 A6 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 89 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 70 7E 00 00 00 00 07 04 06 00 A0 A6 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 01 00 00 F4 03 04 00 D0 A9 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 F4 DD 02 00 35 04 06 00 F7 16 4C 9D [19:21:47]Write to MH i2c: E2 02 01 6A 86 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 40 9C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 A0 A6 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 A6 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 89 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 70 7E 00 00 00 00 07 04 06 00 A0 A6 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 01 00 00 F4 03 04 00 D0 A9 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 F4 DD 02 00 35 04 06 00 F7 16 4C 9D 00 00 B8 [19:21:47]Write i2c OK [19:21:47]MH_I2C_Read... [19:21:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:21:48]Read from MH i2c: E2 [19:21:48]MH_I2C_Read... [19:21:48]Read from MH i2c: E2 03 00 [19:21:48]MH_I2C_Read... [19:21:48]Read from MH i2c: E2 03 00 6A 86 00 90 00 64 [19:21:48]RAPDU: 90 00 [19:21:48]wFMCommunicate OK [19:21:48]wFMCommunicate request_size=7 [19:21:48]MH_SAM_APDU [19:21:48]CAPDU: 80 0D 02 02 02 C5 C9 [19:21:48]Write to MH i2c: E2 0A 00 6B 86 80 0D 02 02 02 00 C5 C9 00 00 FD [19:21:48]Write i2c OK [19:21:48]MH_I2C_Read... [19:21:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:21:48]Read from MH i2c: E2 [19:21:48]MH_I2C_Read... [19:21:48]Read from MH i2c: E2 03 00 [19:21:48]MH_I2C_Read... [19:21:48]Read from MH i2c: E2 03 00 6B 86 00 90 00 65 [19:21:48]RAPDU: 90 00 [19:21:48]wFMCommunicate OK [19:21:48]wFMCommunicate request_size=4 [19:21:48]MH_SAM_APDU [19:21:48]CAPDU: 80 0D 03 02 [19:21:48]Write to MH i2c: E2 08 00 6C 86 80 0D 03 02 00 00 00 00 6D [19:21:48]Write i2c OK [19:21:48]MH_I2C_Read... [19:21:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:21:48]Read from MH i2c: E2 [19:21:48]MH_I2C_Read... [19:21:48]Read from MH i2c: E2 0B 00 [19:21:48]MH_I2C_Read... [19:21:48]Read from MH i2c: E2 0B 00 6C 86 00 FF B0 A9 81 12 13 FA 10 90 00 76 [19:21:48]RAPDU: FF B0 A9 81 12 13 FA 10 90 00 [19:21:48]wFMCommunicate OK [19:21:48]SAM_PROTO_SignData done [19:21:48]FM_MakeSignedData done [19:21:48]CreateOFDProtocolMessage [19:21:48]wFMCommunicate request_size=4 [19:21:48]MH_SAM_APDU [19:21:48]CAPDU: 80 11 00 00 [19:21:48]Write to MH i2c: E2 08 00 6D 86 80 11 00 00 00 00 00 00 6D [19:21:48]Write i2c OK [19:21:48]MH_I2C_Read... [19:21:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:21:48]Read from MH i2c: E2 [19:21:48]MH_I2C_Read... [19:21:48]Read from MH i2c: E2 17 00 [19:21:48]MH_I2C_Read... [19:21:48]Read from MH i2c: E2 17 00 6D 86 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 BB [19:21:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [19:21:48]wFMCommunicate OK [19:21:48]CreateOFDProtocolMessage done [19:21:48]OFDSenderStorePacket 187892 [19:21:48]StoreOFDPacket docnum=187892 [19:21:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 F6 7A 04 01 A3 17 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 40 9C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 A0 A6 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 A6 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 89 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 70 7E 00 00 00 00 07 04 06 00 A0 A6 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 01 00 00 F4 03 04 00 D0 A9 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 F4 DD 02 00 35 04 06 00 F7 16 4C 9D C5 C9 FF B0 A9 81 12 13 FA 10 [19:21:48]CheckFolder [19:21:48]dirname=/storage/ofd_packets [19:21:48]CheckFolder done [19:21:48]ProducePacketName [19:21:48]name=ofd_packets/00187892 [19:21:48]NVStorageSaveData ofd_packets/00187892 [19:21:48]File name is /storage/ofd_packets/00187892 [19:21:48]Write 298 bytes [19:21:48]NVStorageSaveData done [19:21:48]OFDSenderStorePacket done [19:21:48]KKMCreateOFDPacket done [19:21:48]NVStorageSaveData kkm_last_timestamp [19:21:48]File name is /storage/kkm_last_timestamp [19:21:48]Write 4 bytes [19:21:48]NVStorageSaveData done [19:21:48]ExternCall_PrintAddStr [19:21:48]wPrintStart [19:21:48]Write to MH i2c: 01 00 00 6E 86 F4 [19:21:48]Write i2c OK [19:21:48]MH_I2C_Read... [19:21:48]Read from MH i2c: 01 [19:21:48]MH_I2C_Read... [19:21:48]Read from MH i2c: 01 07 00 [19:21:48]MH_I2C_Read... [19:21:48]Read from MH i2c: 01 07 00 6E 86 00 00 00 00 00 FF 0F 09 [19:21:48]RasterBufferAndPrint [19:21:48]line Счет N : (1)209944 [19:21:48]line ИНН: 02508201610067 [19:21:48]line Контрольно-Кассовый Чек [19:21:48]line ПРОДАЖА [19:21:48]line ТРК (МРК, ГНК) : 51 [19:21:48]line Товар: 2710194210 [19:21:48]line ДТ-К-5 [19:21:48]line 40.000 * 76.20 [19:21:48]line = 3048.00 [19:21:48]line НДС 12% НСП 1% [19:21:48]line > о реализуемом товаре [19:21:48]line ИТОГО: 3048.00 [19:21:48]line НСП 1% : 26.97 [19:21:48]line НДС 12% : 323.68 [19:21:48]line Наличными: 3048.00 [19:21:48]line Безнал.: 0.00 [19:21:48]line Место: АЗС № 86 "Партнер Нефть" [19:21:48]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [19:21:48]line СНО: Общий режим [19:21:48]line Чек 356 21.10.2024 19:21 [19:21:48]line Смена: 460 ФФД: 1.0 [19:21:48]line ЗНМ: 0300000155 [19:21:48]line РНМ: 0000000000100030 [19:21:48]line Версия ККМ: 001 [19:21:48]line ФМ: 0000000000965340 [19:21:48]line ФД: 187892 [19:21:48]line ФПД: 271675146749385 [19:21:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T192152&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187892&fm=271675146749385&tin=02508201610067®Number=0000000000100030&sum=304800 [19:21:48]written 0, free lines is 4095 [19:21:48]OFD Sender: Processing packet 187892 [packets to send 1062, broken 1061] [19:21:48]ProducePacketName [19:21:48]name=ofd_packets/00187892 [19:21:48]OFD Sender: To server: pG, [19:21:48]CommunicateWithHost lk.salyk.kg:30040 [19:21:48]ConnectInit lk.salyk.kg [19:21:48]Write to MH i2c: 01 00 00 96 86 1C [19:21:48]Write i2c OK [19:21:48]MH_I2C_Read... [19:21:48]Read from MH i2c: 01 [19:21:48]MH_I2C_Read... [19:21:48]Read from MH i2c: 01 07 00 [19:21:48]MH_I2C_Read... [19:21:48]Read from MH i2c: 01 07 00 96 86 00 00 00 00 00 A6 0C D5 [19:21:48]RasterBufferAndPrint [19:21:48]line [19:21:48]line [19:21:48]line [19:21:48]line [19:21:48]line [19:21:48]written 0, free lines is 3242 [19:21:48]MH_Cut [19:21:48]Write to MH i2c: D1 01 00 9D 86 01 F5 [19:21:48]Write i2c OK [19:21:48]MH_I2C_Read... [19:21:48]Read from MH i2c: D1 [19:21:48]MH_I2C_Read... [19:21:48]Read from MH i2c: D1 01 00 [19:21:48]MH_I2C_Read... [19:21:48]Read from MH i2c: D1 01 00 9D 86 00 F4 [19:21:48]Write to MH i2c: 01 00 00 9E 86 24 [19:21:48]Write i2c OK [19:21:48]MH_I2C_Read... [19:21:49]*** Cut start [19:21:49]*** Partial cut [19:21:49]*** CUTSNS_PIN = 1 [19:21:50]*** CUTSNS_PIN = 0 [19:21:50]*** Brake cut motor [19:21:50]Read from MH i2c: 01 [19:21:50]MH_I2C_Read... [19:21:50]*** Stop cut motor [19:21:50]*** Cut end [19:21:50]Read from MH i2c: 01 07 00 [19:21:50]MH_I2C_Read... [19:21:50]Read from MH i2c: 01 07 00 9E 86 00 00 00 00 00 FF 0F 39 [19:21:50]process_action close_receipt done [19:21:50]requested_data is exist [19:21:50]produce_requested_data [19:21:50]requested_item fm.sn is exist - process it [19:21:50]wFMCommunicate request_size=4 [19:21:50]MH_SAM_APDU [19:21:50]CAPDU: 80 11 00 00 [19:21:50]Write to MH i2c: E2 08 00 9F 86 80 11 00 00 00 00 00 00 9F [19:21:50]Write i2c OK [19:21:50]MH_I2C_Read... [19:21:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:21:50]Read from MH i2c: E2 [19:21:50]MH_I2C_Read... [19:21:50]Read from MH i2c: E2 17 00 [19:21:50]MH_I2C_Read... [19:21:50]Read from MH i2c: E2 17 00 9F 86 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 ED [19:21:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [19:21:50]wFMCommunicate OK [19:21:50]requested_item fd.num is exist - process it [19:21:50]SAM_PROTO_GetFieldsCounters [19:21:50]wFMCommunicate request_size=4 [19:21:50]MH_SAM_APDU [19:21:50]CAPDU: 80 13 00 00 [19:21:50]Write to MH i2c: E2 08 00 A0 86 80 13 00 00 00 00 00 00 A2 [19:21:50]Write i2c OK [19:21:50]MH_I2C_Read... [19:21:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:21:50]Read from MH i2c: E2 [19:21:50]MH_I2C_Read... [19:21:50]Read from MH i2c: E2 62 00 [19:21:50]MH_I2C_Read... [19:21:50]Read from MH i2c: E2 62 00 A0 86 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 F4 DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 64 01 00 00 5E 04 04 00 64 01 00 00 57 04 04 00 65 01 00 00 19 04 04 00 00 00 00 00 90 00 78 [19:21:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 F4 DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 64 01 00 00 5E 04 04 00 64 01 00 00 57 04 04 00 65 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:21:50]wFMCommunicate OK [19:21:50]SAM_PROTO_GetFieldsCounters done [19:21:50]requested_item shift.num is exist - process it [19:21:50]requested_item shift.opened is exist - process it [19:21:50]req_shift_opened [19:21:50]FM_GetShiftState [19:21:50]SAM_PROTO_GetShiftState [19:21:50]wFMCommunicate request_size=4 [19:21:50]MH_SAM_APDU [19:21:50]CAPDU: 80 13 01 00 [19:21:50]Write to MH i2c: E2 08 00 A1 86 80 13 01 00 00 00 00 00 A4 [19:21:50]Write i2c OK [19:21:50]MH_I2C_Read... [19:21:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:21:50]Read from MH i2c: E2 [19:21:50]MH_I2C_Read... [19:21:50]Read from MH i2c: E2 0E 00 [19:21:50]MH_I2C_Read... [19:21:50]Read from MH i2c: E2 0E 00 A1 86 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 03 [19:21:50]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [19:21:50]wFMCommunicate OK [19:21:50]SAM_PROTO_GetShiftState done [19:21:50]FM_GetShiftState done [19:21:50]req_shift_opened done [19:21:50]requested_item shift.open_date is exist - process it [19:21:50]req_shift_open_date [19:21:50]req_shift_open_date done [19:21:50]produce_requested_data done [19:21:50]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187892,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [19:21:50]process_action_free close_receipt [19:21:50]json_value_free [19:21:50]json_value_free done [19:21:50]process_json_proto returns [19:21:50]Send response to host [19:21:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187892,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [19:21:50]free response buf [19:21:50]execute_script done [19:21:50]execute_script returns [19:21:50]free content buf [19:21:50]Sock 9.Close socket [19:21:50]Sock 9.Thread stoped [19:21:53]ConnectInit Can't take IP for lk.salyk.kg [19:21:53]CommunicateWithHost connect error [19:21:53]CommunicateWithHost err = -1 [19:21:53]OFD Sender: Server communicate error [19:21:58]OFD Sender: Processing packet 187892 [packets to send 1062, broken 1061] [19:21:58]ProducePacketName [19:21:58]name=ofd_packets/00187892 [19:21:58]OFD Sender: To server: pG, [19:21:58]CommunicateWithHost lk.salyk.kg:30040 [19:21:58]ConnectInit lk.salyk.kg [19:22:03]ConnectInit Can't take IP for lk.salyk.kg [19:22:03]CommunicateWithHost connect error [19:22:03]CommunicateWithHost err = -1 [19:22:03]OFD Sender: Server communicate error [19:22:08]OFD Sender: Processing packet 187892 [packets to send 1062, broken 1061] [19:22:08]ProducePacketName [19:22:08]name=ofd_packets/00187892 [19:22:08]OFD Sender: To server: pG, [19:22:08]CommunicateWithHost lk.salyk.kg:30040 [19:22:08]ConnectInit lk.salyk.kg [19:22:13]ConnectInit Can't take IP for lk.salyk.kg [19:22:13]CommunicateWithHost connect error [19:22:13]CommunicateWithHost err = -1 [19:22:13]OFD Sender: Server communicate error [19:22:18]OFD Sender: Processing packet 187892 [packets to send 1062, broken 1061] [19:22:18]ProducePacketName [19:22:18]name=ofd_packets/00187892 [19:22:18]OFD Sender: To server: pG, [19:22:18]CommunicateWithHost lk.salyk.kg:30040 [19:22:18]ConnectInit lk.salyk.kg [19:22:23]ConnectInit Can't take IP for lk.salyk.kg [19:22:23]CommunicateWithHost connect error [19:22:23]CommunicateWithHost err = -1 [19:22:23]OFD Sender: Server communicate error [19:22:28]OFD Sender: Processing packet 187892 [packets to send 1062, broken 1061] [19:22:28]ProducePacketName [19:22:28]name=ofd_packets/00187892 [19:22:28]OFD Sender: To server: pG, [19:22:28]CommunicateWithHost lk.salyk.kg:30040 [19:22:28]ConnectInit lk.salyk.kg [19:22:33]ConnectInit Can't take IP for lk.salyk.kg [19:22:33]CommunicateWithHost connect error [19:22:33]CommunicateWithHost err = -1 [19:22:33]OFD Sender: Server communicate error [19:22:36]accept exits with 10 [19:22:36]New connection [19:22:36]New thread 3067014500 created [19:22:36]Thread 3067157860 joined [19:22:36]Waiting for new connection... [19:22:36] Sock 10.Parse request [19:22:36]Sock 10.Check first char [19:22:36]Sock 10.First char is OK [19:22:36]request: POST /json_proto HTTP/1.0 [19:22:36]Method: POST [19:22:36]URL: /json_proto [19:22:36]Method is POST - this is cgi request [19:22:36]url: /json_proto [19:22:36]query_string will be loaded in cgi processing [19:22:36]execute_cgi json_proto POST (null) [19:22:36]execute_cgi path=json_proto method=POST [19:22:36]POST find Content-Length [19:22:36]Host: 172.17.42.131:8080 [19:22:36]Content-Length: 677 [19:22:36]Content-Type: application/json [19:22:36] [19:22:36]POST finish read [19:22:36]Found Content-Length = 677 [19:22:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209945", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "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:22:36]execute_script... [19:22: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)209945", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "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:22:36]POST & json_proto [19:22:36]process_json_proto [19:22:36]json parsed OK: [19:22:36]protocol is kg_v1.0 [19:22:36]action value=close_receipt [19:22:36]process_action close_receipt [19:22:36]cmd_close_receipt [19:22:36]MH_GetDate [19:22:36]Write to MH i2c: F0 00 00 A2 86 17 [19:22:36]Write i2c OK [19:22:36]MH_I2C_Read... [19:22:36]Read from MH i2c: F0 [19:22:36]MH_I2C_Read... [19:22:36]Read from MH i2c: F0 09 00 [19:22:36]MH_I2C_Read... [19:22:36]Read from MH i2c: F0 09 00 A2 86 00 01 AA 16 67 A0 18 CA 66 30 [19:22:36]GetLastDocTimeStamp 1729538512 [19:22:36]current date 1729538561 [19:22:36]FM_GetShiftState [19:22:36]SAM_PROTO_GetShiftState [19:22:36]wFMCommunicate request_size=4 [19:22:36]MH_SAM_APDU [19:22:36]CAPDU: 80 13 01 00 [19:22:36]Write to MH i2c: E2 08 00 A3 86 80 13 01 00 00 00 00 00 A6 [19:22:36]Write i2c OK [19:22:36]MH_I2C_Read... [19:22:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:22:36]Read from MH i2c: E2 [19:22:36]MH_I2C_Read... [19:22:36]Read from MH i2c: E2 0E 00 [19:22:36]MH_I2C_Read... [19:22:36]Read from MH i2c: E2 0E 00 A3 86 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 05 [19:22:36]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [19:22:36]wFMCommunicate OK [19:22:36]SAM_PROTO_GetShiftState done [19:22:36]FM_GetShiftState done [19:22:36]opened in 1729469754 [19:22:36]opened+sec_in_day 1729556154 [19:22:36]quantity*price = 50041 [19:22:36]sum+1 = 50042 [19:22: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 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 357 21.10.2024 19:22 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 187893 ФПД: 229436945578233 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T192241&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187893&fm=229436945578233&tin=02508201610067®Number=0000000000100030&sum=50000 [19:22:37]StoreToDocumentArchive [19:22:37]shift 460 fd 187893 [19:22:37]save to /storage/0460/doc_00187893 [19:22:37]save last doc name /storage/0460/doc_00187893 to /storage/kkm_last_doc_name [19:22:37]save OK [19:22:37]Clear old archive folders... [19:22:37]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:22:37]tlvbuf is 012EE010 [19:22:37]SAM_PROTO_ClearQueue [19:22:37]wFMCommunicate request_size=4 [19:22:37]MH_SAM_APDU [19:22:37]CAPDU: 80 09 00 00 [19:22:37]Write to MH i2c: E2 08 00 B0 86 80 09 00 00 00 00 00 00 A8 [19:22:37]Write i2c OK [19:22:37]MH_I2C_Read... [19:22:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:22:37]Read from MH i2c: E2 [19:22:37]MH_I2C_Read... [19:22:37]Read from MH i2c: E2 03 00 [19:22:37]MH_I2C_Read... [19:22:37]Read from MH i2c: E2 03 00 B0 86 00 90 00 AA [19:22:37]RAPDU: 90 00 [19:22:37]wFMCommunicate OK [19:22:37]SAM_PROTO_ClearQueue done [19:22:37]KKMCreateOFDPacket [19:22:37]OFDProtocolAddRootSTLVToBuf [19:22:37]FM_MakeSignedData [19:22:37]FM_MakeSignedData [19:22:37]SAM_PROTO_SignData [19:22:37]wFMCommunicate request_size=4 [19:22:37]MH_SAM_APDU [19:22:37]CAPDU: 80 0D 01 02 [19:22:37]Write to MH i2c: E2 08 00 B1 86 80 0D 01 02 00 00 00 00 B0 [19:22:37]Write i2c OK [19:22:37]MH_I2C_Read... [19:22:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:22:37]Read from MH i2c: E2 [19:22:37]MH_I2C_Read... [19:22:37]Read from MH i2c: E2 03 00 [19:22:37]MH_I2C_Read... [19:22:37]Read from MH i2c: E2 03 00 B1 86 00 90 00 AB [19:22:37]RAPDU: 90 00 [19:22:37]wFMCommunicate OK [19:22:37]wFMCommunicate request_size=255 [19:22:37]MH_SAM_APDU [19:22: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 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 01 00 00 F4 03 04 00 01 AA 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 F5 DD 02 00 35 04 06 00 D0 [19:22:37]Write to MH i2c: E2 02 01 B2 86 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 01 00 00 F4 03 04 00 01 AA 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 F5 DD 02 00 35 04 06 00 D0 00 00 22 [19:22:37]Write i2c OK [19:22:37]MH_I2C_Read... [19:22:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:22:37]Read from MH i2c: E2 [19:22:37]MH_I2C_Read... [19:22:37]Read from MH i2c: E2 03 00 [19:22:37]MH_I2C_Read... [19:22:37]Read from MH i2c: E2 03 00 B2 86 00 90 00 AC [19:22:37]RAPDU: 90 00 [19:22:37]wFMCommunicate OK [19:22:37]wFMCommunicate request_size=10 [19:22:37]MH_SAM_APDU [19:22:37]CAPDU: 80 0D 02 02 05 AB F3 A3 B8 F9 [19:22:37]Write to MH i2c: E2 0D 00 B3 86 80 0D 02 02 05 00 AB F3 A3 B8 F9 00 00 AF [19:22:37]Write i2c OK [19:22:37]MH_I2C_Read... [19:22:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:22:38]Read from MH i2c: E2 [19:22:38]MH_I2C_Read... [19:22:38]Read from MH i2c: E2 03 00 [19:22:38]MH_I2C_Read... [19:22:38]Read from MH i2c: E2 03 00 B3 86 00 90 00 AD [19:22:38]RAPDU: 90 00 [19:22:38]wFMCommunicate OK [19:22:38]wFMCommunicate request_size=4 [19:22:38]MH_SAM_APDU [19:22:38]CAPDU: 80 0D 03 02 [19:22:38]Write to MH i2c: E2 08 00 B4 86 80 0D 03 02 00 00 00 00 B5 [19:22:38]Write i2c OK [19:22:38]MH_I2C_Read... [19:22:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:22:38]Read from MH i2c: E2 [19:22:38]MH_I2C_Read... [19:22:38]Read from MH i2c: E2 0B 00 [19:22:38]MH_I2C_Read... [19:22:38]Read from MH i2c: E2 0B 00 B4 86 00 1D F0 2E 4E CF 7C EE 1E 90 00 96 [19:22:38]RAPDU: 1D F0 2E 4E CF 7C EE 1E 90 00 [19:22:38]wFMCommunicate OK [19:22:38]SAM_PROTO_SignData done [19:22:38]FM_MakeSignedData done [19:22:38]CreateOFDProtocolMessage [19:22:38]wFMCommunicate request_size=4 [19:22:38]MH_SAM_APDU [19:22:38]CAPDU: 80 11 00 00 [19:22:38]Write to MH i2c: E2 08 00 B5 86 80 11 00 00 00 00 00 00 B5 [19:22:38]Write i2c OK [19:22:38]MH_I2C_Read... [19:22:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:22:38]Read from MH i2c: E2 [19:22:38]MH_I2C_Read... [19:22:38]Read from MH i2c: E2 17 00 [19:22:38]MH_I2C_Read... [19:22:38]Read from MH i2c: E2 17 00 B5 86 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 03 [19:22:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [19:22:38]wFMCommunicate OK [19:22:38]CreateOFDProtocolMessage done [19:22:38]OFDSenderStorePacket 187893 [19:22:38]StoreOFDPacket docnum=187893 [19:22:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 47 75 07 01 73 3D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 01 00 00 F4 03 04 00 01 AA 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 F5 DD 02 00 35 04 06 00 D0 AB F3 A3 B8 F9 1D F0 2E 4E CF 7C EE 1E [19:22:38]CheckFolder [19:22:38]dirname=/storage/ofd_packets [19:22:38]CheckFolder done [19:22:38]ProducePacketName [19:22:38]name=ofd_packets/00187893 [19:22:38]NVStorageSaveData ofd_packets/00187893 [19:22:38]File name is /storage/ofd_packets/00187893 [19:22:38]Write 301 bytes [19:22:38]NVStorageSaveData done [19:22:38]OFDSenderStorePacket done [19:22:38]KKMCreateOFDPacket done [19:22:38]NVStorageSaveData kkm_last_timestamp [19:22:38]File name is /storage/kkm_last_timestamp [19:22:38]Write 4 bytes [19:22:38]NVStorageSaveData done [19:22:38]ExternCall_PrintAddStr [19:22:38]wPrintStart [19:22:38]Write to MH i2c: 01 00 00 B6 86 3C [19:22:38]Write i2c OK [19:22:38]MH_I2C_Read... [19:22:38]Read from MH i2c: 01 [19:22:38]MH_I2C_Read... [19:22:38]Read from MH i2c: 01 07 00 [19:22:38]MH_I2C_Read... [19:22:38]Read from MH i2c: 01 07 00 B6 86 00 00 00 00 00 FF 0F 51 [19:22:38]RasterBufferAndPrint [19:22:38]line Счет N : (1)209945 [19:22:38]line ИНН: 02508201610067 [19:22:38]line Контрольно-Кассовый Чек [19:22:38]line ПРОДАЖА [19:22:38]line ТРК (МРК, ГНК) : 12 [19:22:38]line Товар: 2710124130 [19:22:38]line Аи-92-К-3 [19:22:38]line 7.480 * 66.90 [19:22:38]line = 500.41 [19:22:38]line НДС 12% НСП 1% [19:22:38]line > о реализуемом товаре [19:22:38]line ОКРУГЛЕНИЕ: -0.41 [19:22:38]line ИТОГО: 500.00 [19:22:38]line Внесено: 500.00 [19:22:38]line СДАЧА: 0.00 [19:22:38]line НСП 1% : 4.43 [19:22:38]line НДС 12% : 53.14 [19:22:38]line Наличными: 500.00 [19:22:38]line Безнал.: 0.00 [19:22:38]line Место: АЗС № 86 "Партнер Нефть" [19:22:38]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [19:22:38]line СНО: Общий режим [19:22:38]line Чек 357 21.10.2024 19:22 [19:22:38]line Смена: 460 ФФД: 1.0 [19:22:38]line ЗНМ: 0300000155 [19:22:38]line РНМ: 0000000000100030 [19:22:38]line Версия ККМ: 001 [19:22:38]line ФМ: 0000000000965340 [19:22:38]line ФД: 187893 [19:22:38]line ФПД: 229436945578233 [19:22:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T192241&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187893&fm=229436945578233&tin=02508201610067®Number=0000000000100030&sum=50000 [19:22:38]OFD Sender: Processing packet 187892 [packets to send 1063, broken 1061] [19:22:38]ProducePacketName [19:22:38]name=ofd_packets/00187892 [19:22:38]OFD Sender: To server: pG, [19:22:38]CommunicateWithHost lk.salyk.kg:30040 [19:22:38]ConnectInit lk.salyk.kg [19:22:38]written 0, free lines is 4095 [19:22:38]Write to MH i2c: 01 00 00 E1 86 67 [19:22:38]Write i2c OK [19:22:38]MH_I2C_Read... [19:22:38]Read from MH i2c: 01 [19:22:38]MH_I2C_Read... [19:22:38]Read from MH i2c: 01 07 00 [19:22:38]MH_I2C_Read... [19:22:38]Read from MH i2c: 01 07 00 E1 86 00 00 00 00 00 67 0C E1 [19:22:38]RasterBufferAndPrint [19:22:38]line [19:22:38]line [19:22:38]line [19:22:38]line [19:22:38]line [19:22:38]written 0, free lines is 3184 [19:22:38]MH_Cut [19:22:38]Write to MH i2c: D1 01 00 E8 86 01 40 [19:22:38]Write i2c OK [19:22:38]MH_I2C_Read... [19:22:38]Read from MH i2c: D1 [19:22:38]MH_I2C_Read... [19:22:38]Read from MH i2c: D1 01 00 [19:22:38]MH_I2C_Read... [19:22:38]Read from MH i2c: D1 01 00 E8 86 00 3F [19:22:38]Write to MH i2c: 01 00 00 E9 86 6F [19:22:38]Write i2c OK [19:22:38]MH_I2C_Read... [19:22:39]*** Cut start [19:22:39]*** Partial cut [19:22:39]*** CUTSNS_PIN = 1 [19:22:39]*** CUTSNS_PIN = 0 [19:22:40]*** Brake cut motor [19:22:40]Read from MH i2c: 01 [19:22:40]MH_I2C_Read... [19:22:40]*** Stop cut motor [19:22:40]*** Cut end [19:22:40]Read from MH i2c: 01 07 00 [19:22:40]MH_I2C_Read... [19:22:40]Read from MH i2c: 01 07 00 E9 86 00 00 00 00 00 FF 0F 84 [19:22:40]process_action close_receipt done [19:22:40]requested_data is exist [19:22:40]produce_requested_data [19:22:40]requested_item fm.sn is exist - process it [19:22:40]wFMCommunicate request_size=4 [19:22:40]MH_SAM_APDU [19:22:40]CAPDU: 80 11 00 00 [19:22:40]Write to MH i2c: E2 08 00 EA 86 80 11 00 00 00 00 00 00 EA [19:22:40]Write i2c OK [19:22:40]MH_I2C_Read... [19:22:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:22:40]Read from MH i2c: E2 [19:22:40]MH_I2C_Read... [19:22:40]Read from MH i2c: E2 17 00 [19:22:40]MH_I2C_Read... [19:22:40]Read from MH i2c: E2 17 00 EA 86 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 38 [19:22:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [19:22:40]wFMCommunicate OK [19:22:40]requested_item fd.num is exist - process it [19:22:40]SAM_PROTO_GetFieldsCounters [19:22:40]wFMCommunicate request_size=4 [19:22:40]MH_SAM_APDU [19:22:40]CAPDU: 80 13 00 00 [19:22:40]Write to MH i2c: E2 08 00 EB 86 80 13 00 00 00 00 00 00 ED [19:22:40]Write i2c OK [19:22:40]MH_I2C_Read... [19:22:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:22:40]Read from MH i2c: E2 [19:22:40]MH_I2C_Read... [19:22:40]Read from MH i2c: E2 62 00 [19:22:40]MH_I2C_Read... [19:22:40]Read from MH i2c: E2 62 00 EB 86 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 F5 DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 65 01 00 00 5E 04 04 00 65 01 00 00 57 04 04 00 66 01 00 00 19 04 04 00 00 00 00 00 90 00 C7 [19:22:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 F5 DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 65 01 00 00 5E 04 04 00 65 01 00 00 57 04 04 00 66 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:22:40]wFMCommunicate OK [19:22:40]SAM_PROTO_GetFieldsCounters done [19:22:40]requested_item shift.num is exist - process it [19:22:40]requested_item shift.opened is exist - process it [19:22:40]req_shift_opened [19:22:40]FM_GetShiftState [19:22:40]SAM_PROTO_GetShiftState [19:22:40]wFMCommunicate request_size=4 [19:22:40]MH_SAM_APDU [19:22:40]CAPDU: 80 13 01 00 [19:22:40]Write to MH i2c: E2 08 00 EC 86 80 13 01 00 00 00 00 00 EF [19:22:40]Write i2c OK [19:22:40]MH_I2C_Read... [19:22:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:22:40]Read from MH i2c: E2 [19:22:40]MH_I2C_Read... [19:22:40]Read from MH i2c: E2 0E 00 [19:22:40]MH_I2C_Read... [19:22:40]Read from MH i2c: E2 0E 00 EC 86 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 4E [19:22:40]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [19:22:40]wFMCommunicate OK [19:22:40]SAM_PROTO_GetShiftState done [19:22:40]FM_GetShiftState done [19:22:40]req_shift_opened done [19:22:40]requested_item shift.open_date is exist - process it [19:22:40]req_shift_open_date [19:22:40]req_shift_open_date done [19:22:40]produce_requested_data done [19:22:40]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187893,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [19:22:40]process_action_free close_receipt [19:22:40]json_value_free [19:22:40]json_value_free done [19:22:40]process_json_proto returns [19:22:40]Send response to host [19:22:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187893,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [19:22:40]free response buf [19:22:40]execute_script done [19:22:40]execute_script returns [19:22:40]free content buf [19:22:40]Sock 10.Close socket [19:22:40]Sock 10.Thread stoped [19:22:43]ConnectInit Can't take IP for lk.salyk.kg [19:22:43]CommunicateWithHost connect error [19:22:43]CommunicateWithHost err = -1 [19:22:43]OFD Sender: Server communicate error [19:22:48]OFD Sender: Processing packet 187892 [packets to send 1063, broken 1061] [19:22:48]ProducePacketName [19:22:48]name=ofd_packets/00187892 [19:22:48]OFD Sender: To server: pG, [19:22:48]CommunicateWithHost lk.salyk.kg:30040 [19:22:48]ConnectInit lk.salyk.kg [19:22:53]ConnectInit Can't take IP for lk.salyk.kg [19:22:53]CommunicateWithHost connect error [19:22:53]CommunicateWithHost err = -1 [19:22:53]OFD Sender: Server communicate error [19:22:58]OFD Sender: Processing packet 187892 [packets to send 1063, broken 1061] [19:22:58]ProducePacketName [19:22:58]name=ofd_packets/00187892 [19:22:58]OFD Sender: To server: pG, [19:22:58]CommunicateWithHost lk.salyk.kg:30040 [19:22:58]ConnectInit lk.salyk.kg [19:23:01]Connected sock=10 [19:23:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 F6 7A 04 01 A3 17 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 40 9C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 A0 A6 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 A6 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 89 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 70 7E 00 00 00 00 07 04 06 00 A0 A6 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 01 00 00 F4 03 04 00 D0 A9 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 F4 DD 02 00 35 04 06 00 F7 16 4C 9D C5 C9 FF B0 A9 81 12 13 FA 10 [19:23:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 A4 FA 47 00 0D D8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 F4 DD 02 00 F4 03 04 00 07 54 16 67 B6 04 01 00 00 C9 00 CE BF 3E 59 AE 69 [19:23:01]CommunicateWithHost err = 0 [19:23:01]CheckOFDResponse [19:23:01]1017 (14) - 77093643461234 [19:23:01]1041 (16) - 0000000000965340 [19:23:01]1040 (4) - 187892 [19:23:01]1012 (4) - 21.10.2024 13:15 [19:23:01]1206 (1) - 0 [19:23:01]OFD Sender: Remove packet 187892 [19:23:01]ProducePacketName [19:23:01]name=ofd_packets/00187892 [19:23:01]NVStorageDeleteData [19:23:02]OFD Sender: Processing packet 187893 [packets to send 1062, broken 1061] [19:23:02]ProducePacketName [19:23:02]name=ofd_packets/00187893 [19:23:02]OFD Sender: To server: pG, [19:23:02]CommunicateWithHost lk.salyk.kg:30040 [19:23:02]ConnectInit lk.salyk.kg [19:23:02]Connected sock=10 [19:23:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 47 75 07 01 73 3D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 01 00 00 F4 03 04 00 01 AA 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 F5 DD 02 00 35 04 06 00 D0 AB F3 A3 B8 F9 1D F0 2E 4E CF 7C EE 1E [19:23:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 62 B7 47 00 C5 FB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 F5 DD 02 00 F4 03 04 00 08 54 16 67 B6 04 01 00 00 1B F6 2B BA F9 C8 73 E8 [19:23:02]CommunicateWithHost err = 0 [19:23:02]CheckOFDResponse [19:23:02]1017 (14) - 77093643461234 [19:23:02]1041 (16) - 0000000000965340 [19:23:02]1040 (4) - 187893 [19:23:02]1012 (4) - 21.10.2024 13:15 [19:23:02]1206 (1) - 0 [19:23:02]OFD Sender: Remove packet 187893 [19:23:02]ProducePacketName [19:23:02]name=ofd_packets/00187893 [19:23:02]NVStorageDeleteData [19:23:03]OFD Sender: No OFD packet to send [19:23:07]ConnectInit Can't connect to host [19:23:08]OFD Sender: No OFD packet to send [19:23:13]OFD Sender: No OFD packet to send [19:23:18]OFD Sender: No OFD packet to send [19:23:23]OFD Sender: No OFD packet to send [19:23:28]OFD Sender: No OFD packet to send [19:23:33]OFD Sender: No OFD packet to send [19:23:38]OFD Sender: No OFD packet to send [19:23:43]OFD Sender: No OFD packet to send [19:23:48]OFD Sender: No OFD packet to send [19:23:53]OFD Sender: No OFD packet to send [19:23:58]OFD Sender: No OFD packet to send [19:24:03]OFD Sender: No OFD packet to send [19:24:08]OFD Sender: No OFD packet to send [19:24:13]OFD Sender: No OFD packet to send [19:24:18]OFD Sender: No OFD packet to send [19:24:23]OFD Sender: No OFD packet to send [19:24:28]OFD Sender: No OFD packet to send [19:24:33]OFD Sender: No OFD packet to send [19:24:38]OFD Sender: No OFD packet to send [19:24:43]OFD Sender: No OFD packet to send [19:24:48]OFD Sender: No OFD packet to send [19:24:53]OFD Sender: No OFD packet to send [19:24:58]OFD Sender: No OFD packet to send [19:25:03]OFD Sender: No OFD packet to send [19:25:08]OFD Sender: No OFD packet to send [19:25:13]OFD Sender: No OFD packet to send [19:25:18]OFD Sender: No OFD packet to send [19:25:23]OFD Sender: No OFD packet to send [19:25:28]OFD Sender: No OFD packet to send [19:25:33]OFD Sender: No OFD packet to send [19:25:38]OFD Sender: No OFD packet to send [19:25:43]OFD Sender: No OFD packet to send [19:25:48]OFD Sender: No OFD packet to send [19:25:53]OFD Sender: No OFD packet to send [19:25:58]OFD Sender: No OFD packet to send [19:26:03]OFD Sender: No OFD packet to send [19:26: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:48]accept exits with 9 [19:28:48]New connection [19:28:48]New thread 3067157860 created [19:28:48]Thread 3067014500 joined [19:28:48]Waiting for new connection... [19:28:48] Sock 9.Parse request [19:28:48]Sock 9.Check first char [19:28:48]Sock 9.First char is OK [19:28:48]request: POST /json_proto HTTP/1.0 [19:28:48]Method: POST [19:28:48]URL: /json_proto [19:28:48]Method is POST - this is cgi request [19:28:48]url: /json_proto [19:28:48]query_string will be loaded in cgi processing [19:28:48]execute_cgi json_proto POST (null) [19:28:48]execute_cgi path=json_proto method=POST [19:28:48]POST find Content-Length [19:28:48]Host: 172.17.42.131:8080 [19:28:48]Content-Length: 678 [19:28:48]Content-Type: application/json [19:28:48] [19:28:48]POST finish read [19:28:48]Found Content-Length = 678 [19:28:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209947", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 11.960, "sum" : 800.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:28:48]execute_script... [19:28: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)209947", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 11.960, "sum" : 800.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:28:48]POST & json_proto [19:28:48]process_json_proto [19:28:48]json parsed OK: [19:28:48]protocol is kg_v1.0 [19:28:48]action value=close_receipt [19:28:48]process_action close_receipt [19:28:48]cmd_close_receipt [19:28:48]MH_GetDate [19:28:48]Write to MH i2c: F0 00 00 ED 86 62 [19:28:48]Write i2c OK [19:28:48]MH_I2C_Read... [19:28:48]Read from MH i2c: F0 [19:28:48]MH_I2C_Read... [19:28:48]Read from MH i2c: F0 09 00 [19:28:48]MH_I2C_Read... [19:28:48]Read from MH i2c: F0 09 00 ED 86 00 76 AB 16 67 A0 18 CA 66 F1 [19:28:48]GetLastDocTimeStamp 1729538561 [19:28:48]current date 1729538934 [19:28:48]FM_GetShiftState [19:28:48]SAM_PROTO_GetShiftState [19:28:48]wFMCommunicate request_size=4 [19:28:48]MH_SAM_APDU [19:28:48]CAPDU: 80 13 01 00 [19:28:48]Write to MH i2c: E2 08 00 EE 86 80 13 01 00 00 00 00 00 F1 [19:28:48]Write i2c OK [19:28:48]MH_I2C_Read... [19:28:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:28:49]Read from MH i2c: E2 [19:28:49]MH_I2C_Read... [19:28:49]Read from MH i2c: E2 0E 00 [19:28:49]MH_I2C_Read... [19:28:49]Read from MH i2c: E2 0E 00 EE 86 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 50 [19:28:49]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [19:28:49]wFMCommunicate OK [19:28:49]SAM_PROTO_GetShiftState done [19:28:49]FM_GetShiftState done [19:28:49]opened in 1729469754 [19:28:49]opened+sec_in_day 1729556154 [19:28:49]quantity*price = 80012 [19:28:49]sum+1 = 80013 [19:28:49]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.97 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 358 21.10.2024 19:28 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 187894 ФПД: 275164542895710 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T192854&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187894&fm=275164542895710&tin=02508201610067®Number=0000000000100030&sum=80000 [19:28:50]StoreToDocumentArchive [19:28:50]shift 460 fd 187894 [19:28:50]save to /storage/0460/doc_00187894 [19:28:50]save last doc name /storage/0460/doc_00187894 to /storage/kkm_last_doc_name [19:28:50]save OK [19:28:50]Clear old archive folders... [19:28:50]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:28:50]tlvbuf is 0130A1F0 [19:28:50]SAM_PROTO_ClearQueue [19:28:50]wFMCommunicate request_size=4 [19:28:50]MH_SAM_APDU [19:28:50]CAPDU: 80 09 00 00 [19:28:50]Write to MH i2c: E2 08 00 FB 86 80 09 00 00 00 00 00 00 F3 [19:28:50]Write i2c OK [19:28:50]MH_I2C_Read... [19:28:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:28:50]Read from MH i2c: E2 [19:28:50]MH_I2C_Read... [19:28:50]Read from MH i2c: E2 03 00 [19:28:50]MH_I2C_Read... [19:28:50]Read from MH i2c: E2 03 00 FB 86 00 90 00 F5 [19:28:50]RAPDU: 90 00 [19:28:50]wFMCommunicate OK [19:28:50]SAM_PROTO_ClearQueue done [19:28:50]KKMCreateOFDPacket [19:28:50]OFDProtocolAddRootSTLVToBuf [19:28:50]FM_MakeSignedData [19:28:50]FM_MakeSignedData [19:28:50]SAM_PROTO_SignData [19:28:50]wFMCommunicate request_size=4 [19:28:50]MH_SAM_APDU [19:28:50]CAPDU: 80 0D 01 02 [19:28:50]Write to MH i2c: E2 08 00 FC 86 80 0D 01 02 00 00 00 00 FB [19:28:50]Write i2c OK [19:28:50]MH_I2C_Read... [19:28:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:28:50]Read from MH i2c: E2 [19:28:50]MH_I2C_Read... [19:28:50]Read from MH i2c: E2 03 00 [19:28:50]MH_I2C_Read... [19:28:50]Read from MH i2c: E2 03 00 FC 86 00 90 00 F6 [19:28:50]RAPDU: 90 00 [19:28:50]wFMCommunicate OK [19:28:50]wFMCommunicate request_size=255 [19:28:50]MH_SAM_APDU [19:28: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 33 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 66 01 00 00 F4 03 04 00 76 AB 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 F6 DD 02 00 35 04 06 00 FA [19:28:50]Write to MH i2c: E2 02 01 FD 86 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 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 66 01 00 00 F4 03 04 00 76 AB 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 F6 DD 02 00 35 04 06 00 FA 00 00 FB [19:28:50]Write i2c OK [19:28:50]MH_I2C_Read... [19:28:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:28:50]Read from MH i2c: E2 [19:28:50]MH_I2C_Read... [19:28:50]Read from MH i2c: E2 03 00 [19:28:50]MH_I2C_Read... [19:28:50]Read from MH i2c: E2 03 00 FD 86 00 90 00 F7 [19:28:50]RAPDU: 90 00 [19:28:50]wFMCommunicate OK [19:28:50]wFMCommunicate request_size=10 [19:28:50]MH_SAM_APDU [19:28:50]CAPDU: 80 0D 02 02 05 42 BC D5 86 5E [19:28:50]Write to MH i2c: E2 0D 00 FE 86 80 0D 02 02 05 00 42 BC D5 86 5E 00 00 BF [19:28:50]Write i2c OK [19:28:50]MH_I2C_Read... [19:28:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:28:50]Read from MH i2c: E2 [19:28:50]MH_I2C_Read... [19:28:50]Read from MH i2c: E2 03 00 [19:28:50]MH_I2C_Read... [19:28:50]Read from MH i2c: E2 03 00 FE 86 00 90 00 F8 [19:28:50]RAPDU: 90 00 [19:28:50]wFMCommunicate OK [19:28:50]wFMCommunicate request_size=4 [19:28:50]MH_SAM_APDU [19:28:50]CAPDU: 80 0D 03 02 [19:28:50]Write to MH i2c: E2 08 00 FF 86 80 0D 03 02 00 00 00 00 00 [19:28:50]Write i2c OK [19:28:50]MH_I2C_Read... [19:28:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:28:50]Read from MH i2c: E2 [19:28:50]MH_I2C_Read... [19:28:50]Read from MH i2c: E2 0B 00 [19:28:50]MH_I2C_Read... [19:28:50]Read from MH i2c: E2 0B 00 FF 86 00 4F 2A CF D7 FE DD EF 14 90 00 FE [19:28:50]RAPDU: 4F 2A CF D7 FE DD EF 14 90 00 [19:28:50]wFMCommunicate OK [19:28:50]SAM_PROTO_SignData done [19:28:50]FM_MakeSignedData done [19:28:50]CreateOFDProtocolMessage [19:28:50]wFMCommunicate request_size=4 [19:28:50]MH_SAM_APDU [19:28:50]CAPDU: 80 11 00 00 [19:28:50]Write to MH i2c: E2 08 00 00 87 80 11 00 00 00 00 00 00 01 [19:28:50]Write i2c OK [19:28:50]MH_I2C_Read... [19:28:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:28:50]Read from MH i2c: E2 [19:28:50]MH_I2C_Read... [19:28:50]Read from MH i2c: E2 17 00 [19:28:50]MH_I2C_Read... [19:28:50]Read from MH i2c: E2 17 00 00 87 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 4F [19:28:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [19:28:50]wFMCommunicate OK [19:28:50]CreateOFDProtocolMessage done [19:28:50]OFDSenderStorePacket 187894 [19:28:50]StoreOFDPacket docnum=187894 [19:28:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 DE 46 07 01 5F C9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 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 66 01 00 00 F4 03 04 00 76 AB 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 F6 DD 02 00 35 04 06 00 FA 42 BC D5 86 5E 4F 2A CF D7 FE DD EF 14 [19:28:50]CheckFolder [19:28:50]dirname=/storage/ofd_packets [19:28:50]CheckFolder done [19:28:50]ProducePacketName [19:28:50]name=ofd_packets/00187894 [19:28:50]NVStorageSaveData ofd_packets/00187894 [19:28:50]File name is /storage/ofd_packets/00187894 [19:28:50]Write 301 bytes [19:28:50]NVStorageSaveData done [19:28:50]OFDSenderStorePacket done [19:28:50]KKMCreateOFDPacket done [19:28:50]NVStorageSaveData kkm_last_timestamp [19:28:50]File name is /storage/kkm_last_timestamp [19:28:50]Write 4 bytes [19:28:50]NVStorageSaveData done [19:28:50]ExternCall_PrintAddStr [19:28:50]wPrintStart [19:28:50]Write to MH i2c: 01 00 00 01 87 88 [19:28:50]Write i2c OK [19:28:50]MH_I2C_Read... [19:28:50]Read from MH i2c: 01 [19:28:50]MH_I2C_Read... [19:28:50]Read from MH i2c: 01 07 00 [19:28:50]MH_I2C_Read... [19:28:50]Read from MH i2c: 01 07 00 01 87 00 00 00 00 00 FF 0F 9D [19:28:50]RasterBufferAndPrint [19:28:50]line Счет N : (1)209947 [19:28:50]line ИНН: 02508201610067 [19:28:50]line Контрольно-Кассовый Чек [19:28:50]line ПРОДАЖА [19:28:50]line ТРК (МРК, ГНК) : 12 [19:28:50]line Товар: 2710124130 [19:28:50]line Аи-92-К-3 [19:28:50]line 11.960 * 66.90 [19:28:50]line = 800.12 [19:28:50]line НДС 12% НСП 1% [19:28:50]line > о реализуемом товаре [19:28:50]line ОКРУГЛЕНИЕ: -0.12 [19:28:50]line ИТОГО: 800.00 [19:28:50]line Внесено: 800.00 [19:28:50]line СДАЧА: 0.00 [19:28:50]line НСП 1% : 7.08 [19:28:50]line НДС 12% : 84.97 [19:28:50]line Наличными: 800.00 [19:28:50]line Безнал.: 0.00 [19:28:50]line Место: АЗС № 86 "Партнер Нефть" [19:28:50]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [19:28:50]line СНО: Общий режим [19:28:50]line Чек 358 21.10.2024 19:28 [19:28:50]line Смена: 460 ФФД: 1.0 [19:28:50]line ЗНМ: 0300000155 [19:28:50]line РНМ: 0000000000100030 [19:28:50]line Версия ККМ: 001 [19:28:50]line ФМ: 0000000000965340 [19:28:50]line ФД: 187894 [19:28:50]line ФПД: 275164542895710 [19:28:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T192854&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187894&fm=275164542895710&tin=02508201610067®Number=0000000000100030&sum=80000 [19:28:50]written 0, free lines is 4095 [19:28:50]OFD Sender: Processing packet 187894 [packets to send 1062, broken 1061] [19:28:50]ProducePacketName [19:28:50]name=ofd_packets/00187894 [19:28:50]OFD Sender: To server: pG, [19:28:50]CommunicateWithHost lk.salyk.kg:30040 [19:28:50]ConnectInit lk.salyk.kg [19:28:51]Connected sock=10 [19:28:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 DE 46 07 01 5F C9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 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 66 01 00 00 F4 03 04 00 76 AB 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 F6 DD 02 00 35 04 06 00 FA 42 BC D5 86 5E 4F 2A CF D7 FE DD EF 14 [19:28:51]Write to MH i2c: 01 00 00 2C 87 B3 [19:28:51]Write i2c OK [19:28:51]MH_I2C_Read... [19:28:51]Read from MH i2c: 01 [19:28:51]MH_I2C_Read... [19:28:51]Read from MH i2c: 01 07 00 [19:28:51]MH_I2C_Read... [19:28:51]Read from MH i2c: 01 07 00 2C 87 00 00 00 00 00 65 0C 2B [19:28:51]RasterBufferAndPrint [19:28:51]line [19:28:51]line [19:28:51]line [19:28:51]line [19:28:51]line [19:28:51]written 0, free lines is 3177 [19:28:51]MH_Cut [19:28:51]Write to MH i2c: D1 01 00 33 87 01 8C [19:28:51]Write i2c OK [19:28:51]MH_I2C_Read... [19:28:51]Read from MH i2c: D1 [19:28:51]MH_I2C_Read... [19:28:51]Read from MH i2c: D1 01 00 [19:28:51]MH_I2C_Read... [19:28:51]Read from MH i2c: D1 01 00 33 87 00 8B [19:28:51]Write to MH i2c: 01 00 00 34 87 BB [19:28:51]Write i2c OK [19:28:51]MH_I2C_Read... [19:28:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 9D 39 47 00 49 A6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 F6 DD 02 00 F4 03 04 00 65 55 16 67 B6 04 01 00 00 E9 0C 06 B0 28 9F B9 44 [19:28:51]CommunicateWithHost err = 0 [19:28:51]CheckOFDResponse [19:28:51]1017 (14) - 77093643461234 [19:28:51]1041 (16) - 0000000000965340 [19:28:51]1040 (4) - 187894 [19:28:51]1012 (4) - 21.10.2024 13:21 [19:28:51]1206 (1) - 0 [19:28:51]OFD Sender: Remove packet 187894 [19:28:51]ProducePacketName [19:28:51]name=ofd_packets/00187894 [19:28:51]NVStorageDeleteData [19:28:51]OFD Sender: No OFD packet to send [19:28:52]*** Cut start [19:28:52]*** Partial cut [19:28:52]*** CUTSNS_PIN = 1 [19:28:52]*** CUTSNS_PIN = 0 [19:28:52]*** Brake cut motor [19:28:53]Read from MH i2c: 01 [19:28:53]MH_I2C_Read... [19:28:53]*** Stop cut motor [19:28:53]*** Cut end [19:28:53]Read from MH i2c: 01 07 00 [19:28:53]MH_I2C_Read... [19:28:53]Read from MH i2c: 01 07 00 34 87 00 00 00 00 00 FF 0F D0 [19:28:53]process_action close_receipt done [19:28:53]requested_data is exist [19:28:53]produce_requested_data [19:28:53]requested_item fm.sn is exist - process it [19:28:53]wFMCommunicate request_size=4 [19:28:53]MH_SAM_APDU [19:28:53]CAPDU: 80 11 00 00 [19:28:53]Write to MH i2c: E2 08 00 35 87 80 11 00 00 00 00 00 00 36 [19:28:53]Write i2c OK [19:28:53]MH_I2C_Read... [19:28:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:28:53]Read from MH i2c: E2 [19:28:53]MH_I2C_Read... [19:28:53]Read from MH i2c: E2 17 00 [19:28:53]MH_I2C_Read... [19:28:53]Read from MH i2c: E2 17 00 35 87 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 84 [19:28:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [19:28:53]wFMCommunicate OK [19:28:53]requested_item fd.num is exist - process it [19:28:53]SAM_PROTO_GetFieldsCounters [19:28:53]wFMCommunicate request_size=4 [19:28:53]MH_SAM_APDU [19:28:53]CAPDU: 80 13 00 00 [19:28:53]Write to MH i2c: E2 08 00 36 87 80 13 00 00 00 00 00 00 39 [19:28:53]Write i2c OK [19:28:53]MH_I2C_Read... [19:28:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:28:53]Read from MH i2c: E2 [19:28:53]MH_I2C_Read... [19:28:53]Read from MH i2c: E2 62 00 [19:28:53]MH_I2C_Read... [19:28:53]Read from MH i2c: E2 62 00 36 87 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 F6 DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 66 01 00 00 5E 04 04 00 66 01 00 00 57 04 04 00 67 01 00 00 19 04 04 00 00 00 00 00 90 00 17 [19:28:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 F6 DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 66 01 00 00 5E 04 04 00 66 01 00 00 57 04 04 00 67 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:28:53]wFMCommunicate OK [19:28:53]SAM_PROTO_GetFieldsCounters done [19:28:53]requested_item shift.num is exist - process it [19:28:53]requested_item shift.opened is exist - process it [19:28:53]req_shift_opened [19:28:53]FM_GetShiftState [19:28:53]SAM_PROTO_GetShiftState [19:28:53]wFMCommunicate request_size=4 [19:28:53]MH_SAM_APDU [19:28:53]CAPDU: 80 13 01 00 [19:28:53]Write to MH i2c: E2 08 00 37 87 80 13 01 00 00 00 00 00 3B [19:28:53]Write i2c OK [19:28:53]MH_I2C_Read... [19:28:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:28:53]Read from MH i2c: E2 [19:28:53]MH_I2C_Read... [19:28:53]Read from MH i2c: E2 0E 00 [19:28:53]MH_I2C_Read... [19:28:53]Read from MH i2c: E2 0E 00 37 87 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 9A [19:28:53]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [19:28:53]wFMCommunicate OK [19:28:53]SAM_PROTO_GetShiftState done [19:28:53]FM_GetShiftState done [19:28:53]req_shift_opened done [19:28:53]requested_item shift.open_date is exist - process it [19:28:53]req_shift_open_date [19:28:53]req_shift_open_date done [19:28:53]produce_requested_data done [19:28:53]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187894,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [19:28:53]process_action_free close_receipt [19:28:53]json_value_free [19:28:53]json_value_free done [19:28:53]process_json_proto returns [19:28:53]Send response to host [19:28:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187894,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [19:28:53]free response buf [19:28:53]execute_script done [19:28:53]execute_script returns [19:28:53]free content buf [19:28:53]Sock 9.Close socket [19:28:53]Sock 9.Thread stoped [19:28:53]accept exits with 8 [19:28:53]New connection [19:28:53]New thread 3067014500 created [19:28:53]Thread 3067157860 joined [19:28:53]Waiting for new connection... [19:28:53] Sock 8.Parse request [19:28:53]Sock 8.Check first char [19:28:53]Sock 8.First char is OK [19:28:53]request: POST /json_proto HTTP/1.0 [19:28:53]Method: POST [19:28:53]URL: /json_proto [19:28:53]Method is POST - this is cgi request [19:28:53]url: /json_proto [19:28:53]query_string will be loaded in cgi processing [19:28:53]execute_cgi json_proto POST (null) [19:28:53]execute_cgi path=json_proto method=POST [19:28:53]POST find Content-Length [19:28:53]Host: 172.17.42.131:8080 [19:28:53]Content-Length: 767 [19:28:53]Content-Type: application/json [19:28:53] [19:28:53]POST finish read [19:28:53]Found Content-Length = 767 [19:28:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209946", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 14.930, "sum" : 998.82, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 998.82 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:28:53]execute_script... [19:28: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)209946", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 14.930, "sum" : 998.82, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 998.82 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:28:53]POST & json_proto [19:28:53]process_json_proto [19:28:53]json parsed OK: [19:28:53]protocol is kg_v1.0 [19:28:53]action value=close_receipt [19:28:53]process_action close_receipt [19:28:53]cmd_close_receipt [19:28:53]MH_GetDate [19:28:53]Write to MH i2c: F0 00 00 38 87 AE [19:28:53]Write i2c OK [19:28:53]MH_I2C_Read... [19:28:53]Read from MH i2c: F0 [19:28:53]MH_I2C_Read... [19:28:53]Read from MH i2c: F0 09 00 [19:28:53]MH_I2C_Read... [19:28:53]Read from MH i2c: F0 09 00 38 87 00 7B AB 16 67 A0 18 CA 66 42 [19:28:53]GetLastDocTimeStamp 1729538934 [19:28:53]current date 1729538939 [19:28:53]FM_GetShiftState [19:28:53]SAM_PROTO_GetShiftState [19:28:53]wFMCommunicate request_size=4 [19:28:53]MH_SAM_APDU [19:28:53]CAPDU: 80 13 01 00 [19:28:53]Write to MH i2c: E2 08 00 39 87 80 13 01 00 00 00 00 00 3D [19:28:53]Write i2c OK [19:28:53]MH_I2C_Read... [19:28:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:28:53]Read from MH i2c: E2 [19:28:53]MH_I2C_Read... [19:28:53]Read from MH i2c: E2 0E 00 [19:28:53]MH_I2C_Read... [19:28:53]Read from MH i2c: E2 0E 00 39 87 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 9C [19:28:53]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [19:28:53]wFMCommunicate OK [19:28:53]SAM_PROTO_GetShiftState done [19:28:53]FM_GetShiftState done [19:28:53]opened in 1729469754 [19:28:53]opened+sec_in_day 1729556154 [19:28:53]quantity*price = 99881 [19:28:53]sum+1 = 99883 [19:28:53]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 998.82 НСП 1% : 8.84 НДС 12% : 106.07 Наличными: 0.00 Безнал.: 998.82 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 359 21.10.2024 19:28 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000965340 ФД: 187895 ФПД: 157714920630696 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T192859&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187895&fm=157714920630696&tin=02508201610067®Number=0000000000100030&sum=99882 [19:28:54]StoreToDocumentArchive [19:28:54]shift 460 fd 187895 [19:28:54]save to /storage/0460/doc_00187895 [19:28:54]save last doc name /storage/0460/doc_00187895 to /storage/kkm_last_doc_name [19:28:54]save OK [19:28:54]Clear old archive folders... [19:28:54]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:28:54]tlvbuf is 010902C0 [19:28:54]SAM_PROTO_ClearQueue [19:28:54]wFMCommunicate request_size=4 [19:28:54]MH_SAM_APDU [19:28:54]CAPDU: 80 09 00 00 [19:28:54]Write to MH i2c: E2 08 00 46 87 80 09 00 00 00 00 00 00 3F [19:28:54]Write i2c OK [19:28:54]MH_I2C_Read... [19:28:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:28:54]Read from MH i2c: E2 [19:28:54]MH_I2C_Read... [19:28:54]Read from MH i2c: E2 03 00 [19:28:54]MH_I2C_Read... [19:28:54]Read from MH i2c: E2 03 00 46 87 00 90 00 41 [19:28:54]RAPDU: 90 00 [19:28:54]wFMCommunicate OK [19:28:54]SAM_PROTO_ClearQueue done [19:28:54]KKMCreateOFDPacket [19:28:54]OFDProtocolAddRootSTLVToBuf [19:28:54]FM_MakeSignedData [19:28:54]FM_MakeSignedData [19:28:54]SAM_PROTO_SignData [19:28:54]wFMCommunicate request_size=4 [19:28:54]MH_SAM_APDU [19:28:54]CAPDU: 80 0D 01 02 [19:28:54]Write to MH i2c: E2 08 00 47 87 80 0D 01 02 00 00 00 00 47 [19:28:54]Write i2c OK [19:28:54]MH_I2C_Read... [19:28:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:28:54]Read from MH i2c: E2 [19:28:54]MH_I2C_Read... [19:28:54]Read from MH i2c: E2 03 00 [19:28:54]MH_I2C_Read... [19:28:54]Read from MH i2c: E2 03 00 47 87 00 90 00 42 [19:28:54]RAPDU: 90 00 [19:28:54]wFMCommunicate OK [19:28:54]wFMCommunicate request_size=255 [19:28:54]MH_SAM_APDU [19:28: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 33 FF 03 08 00 03 52 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 2A 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2A 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 74 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6F 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 2A 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 01 00 00 F4 03 04 00 7B AB 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 F7 DD 02 00 35 04 06 00 8F [19:28:54]Write to MH i2c: E2 02 01 48 87 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 52 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 2A 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2A 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 74 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6F 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 2A 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 01 00 00 F4 03 04 00 7B AB 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 F7 DD 02 00 35 04 06 00 8F 00 00 5C [19:28:54]Write i2c OK [19:28:54]MH_I2C_Read... [19:28:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:28:55]Read from MH i2c: E2 [19:28:55]MH_I2C_Read... [19:28:55]Read from MH i2c: E2 03 00 [19:28:55]MH_I2C_Read... [19:28:55]Read from MH i2c: E2 03 00 48 87 00 90 00 43 [19:28:55]RAPDU: 90 00 [19:28:55]wFMCommunicate OK [19:28:55]wFMCommunicate request_size=10 [19:28:55]MH_SAM_APDU [19:28:55]CAPDU: 80 0D 02 02 05 70 DD D1 E9 A8 [19:28:55]Write to MH i2c: E2 0D 00 49 87 80 0D 02 02 05 00 70 DD D1 E9 A8 00 00 03 [19:28:55]Write i2c OK [19:28:55]MH_I2C_Read... [19:28:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:28:55]Read from MH i2c: E2 [19:28:55]MH_I2C_Read... [19:28:55]Read from MH i2c: E2 03 00 [19:28:55]MH_I2C_Read... [19:28:55]Read from MH i2c: E2 03 00 49 87 00 90 00 44 [19:28:55]RAPDU: 90 00 [19:28:55]wFMCommunicate OK [19:28:55]wFMCommunicate request_size=4 [19:28:55]MH_SAM_APDU [19:28:55]CAPDU: 80 0D 03 02 [19:28:55]Write to MH i2c: E2 08 00 4A 87 80 0D 03 02 00 00 00 00 4C [19:28:55]Write i2c OK [19:28:55]MH_I2C_Read... [19:28:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:28:55]Read from MH i2c: E2 [19:28:55]MH_I2C_Read... [19:28:55]Read from MH i2c: E2 0B 00 [19:28:55]MH_I2C_Read... [19:28:55]Read from MH i2c: E2 0B 00 4A 87 00 C1 4D D4 AE 4C E2 6E A9 90 00 22 [19:28:55]RAPDU: C1 4D D4 AE 4C E2 6E A9 90 00 [19:28:55]wFMCommunicate OK [19:28:55]SAM_PROTO_SignData done [19:28:55]FM_MakeSignedData done [19:28:55]CreateOFDProtocolMessage [19:28:55]wFMCommunicate request_size=4 [19:28:55]MH_SAM_APDU [19:28:55]CAPDU: 80 11 00 00 [19:28:55]Write to MH i2c: E2 08 00 4B 87 80 11 00 00 00 00 00 00 4C [19:28:55]Write i2c OK [19:28:55]MH_I2C_Read... [19:28:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:28:55]Read from MH i2c: E2 [19:28:55]MH_I2C_Read... [19:28:55]Read from MH i2c: E2 17 00 [19:28:55]MH_I2C_Read... [19:28:55]Read from MH i2c: E2 17 00 4B 87 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 9A [19:28:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [19:28:55]wFMCommunicate OK [19:28:55]CreateOFDProtocolMessage done [19:28:55]OFDSenderStorePacket 187895 [19:28:55]StoreOFDPacket docnum=187895 [19:28:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 2C F3 07 01 0B B6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 52 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 2A 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2A 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 74 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6F 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 2A 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 01 00 00 F4 03 04 00 7B AB 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 F7 DD 02 00 35 04 06 00 8F 70 DD D1 E9 A8 C1 4D D4 AE 4C E2 6E A9 [19:28:55]CheckFolder [19:28:55]dirname=/storage/ofd_packets [19:28:55]CheckFolder done [19:28:55]ProducePacketName [19:28:55]name=ofd_packets/00187895 [19:28:55]NVStorageSaveData ofd_packets/00187895 [19:28:55]File name is /storage/ofd_packets/00187895 [19:28:55]Write 301 bytes [19:28:55]NVStorageSaveData done [19:28:55]OFDSenderStorePacket done [19:28:55]KKMCreateOFDPacket done [19:28:55]NVStorageSaveData kkm_last_timestamp [19:28:55]File name is /storage/kkm_last_timestamp [19:28:55]Write 4 bytes [19:28:55]NVStorageSaveData done [19:28:55]ExternCall_PrintAddStr [19:28:55]wPrintStart [19:28:55]Write to MH i2c: 01 00 00 4C 87 D3 [19:28:55]Write i2c OK [19:28:55]MH_I2C_Read... [19:28:55]Read from MH i2c: 01 [19:28:55]MH_I2C_Read... [19:28:55]Read from MH i2c: 01 07 00 [19:28:55]MH_I2C_Read... [19:28:55]Read from MH i2c: 01 07 00 4C 87 00 00 00 00 00 FF 0F E8 [19:28:55]RasterBufferAndPrint [19:28:55]line Счет N : (1)209946 [19:28:55]line ИНН: 02508201610067 [19:28:55]line Контрольно-Кассовый Чек [19:28:55]line ПРОДАЖА [19:28:55]line ТРК (МРК, ГНК) : 32 [19:28:55]line Товар: 2710124130 [19:28:55]line Аи-92-К-3 [19:28:55]line 14.930 * 66.90 [19:28:55]line = 998.82 [19:28:55]line НДС 12% НСП 1% [19:28:55]line > о реализуемом товаре [19:28:55]line ИТОГО: 998.82 [19:28:55]line НСП 1% : 8.84 [19:28:55]line НДС 12% : 106.07 [19:28:55]line Наличными: 0.00 [19:28:55]line Безнал.: 998.82 [19:28:55]line Место: АЗС № 86 "Партнер Нефть" [19:28:55]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [19:28:55]line СНО: Общий режим [19:28:55]line Чек 359 21.10.2024 19:28 [19:28:55]line Смена: 460 ФФД: 1.0 [19:28:55]line ЗНМ: 0300000155 [19:28:55]line РНМ: 0000000000100030 [19:28:55]line Версия ККМ: 001 [19:28:55]line Платежная система: Mbank [19:28:55]line ФМ: 0000000000965340 [19:28:55]line ФД: 187895 [19:28:55]line ФПД: 157714920630696 [19:28:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T192859&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187895&fm=157714920630696&tin=02508201610067®Number=0000000000100030&sum=99882 [19:28:56]OFD Sender: Processing packet 187895 [packets to send 1062, broken 1061] [19:28:56]ProducePacketName [19:28:56]name=ofd_packets/00187895 [19:28:56]written 0, free lines is 4095 [19:28:56]OFD Sender: To server: pG, [19:28:56]CommunicateWithHost lk.salyk.kg:30040 [19:28:56]ConnectInit lk.salyk.kg [19:28:56]Connected sock=10 [19:28:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 2C F3 07 01 0B B6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 52 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 2A 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2A 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 74 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6F 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 2A 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 01 00 00 F4 03 04 00 7B AB 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 F7 DD 02 00 35 04 06 00 8F 70 DD D1 E9 A8 C1 4D D4 AE 4C E2 6E A9 [19:28:56]Write to MH i2c: 01 00 00 75 87 FC [19:28:56]Write i2c OK [19:28:56]MH_I2C_Read... [19:28:56]Read from MH i2c: 01 [19:28:56]MH_I2C_Read... [19:28:56]Read from MH i2c: 01 07 00 [19:28:56]MH_I2C_Read... [19:28:56]Read from MH i2c: 01 07 00 75 87 00 00 00 00 00 A0 0C AF [19:28:56]RasterBufferAndPrint [19:28:56]line [19:28:56]line [19:28:56]line [19:28:56]line [19:28:56]line [19:28:56]written 0, free lines is 3241 [19:28:56]MH_Cut [19:28:56]Write to MH i2c: D1 01 00 7C 87 01 D5 [19:28:56]Write i2c OK [19:28:56]MH_I2C_Read... [19:28:56]Read from MH i2c: D1 [19:28:56]MH_I2C_Read... [19:28:56]Read from MH i2c: D1 01 00 [19:28:56]MH_I2C_Read... [19:28:56]Read from MH i2c: D1 01 00 7C 87 00 D4 [19:28:56]Write to MH i2c: 01 00 00 7D 87 04 [19:28:56]Write i2c OK [19:28:56]MH_I2C_Read... [19:28:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 9F D9 47 00 55 03 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 F7 DD 02 00 F4 03 04 00 6A 55 16 67 B6 04 01 00 00 55 5C 07 BD 16 02 9B 68 [19:28:56]CommunicateWithHost err = 0 [19:28:56]CheckOFDResponse [19:28:56]1017 (14) - 77093643461234 [19:28:56]1041 (16) - 0000000000965340 [19:28:56]1040 (4) - 187895 [19:28:56]1012 (4) - 21.10.2024 13:21 [19:28:56]1206 (1) - 0 [19:28:56]OFD Sender: Remove packet 187895 [19:28:56]ProducePacketName [19:28:56]name=ofd_packets/00187895 [19:28:56]NVStorageDeleteData [19:28:57]OFD Sender: No OFD packet to send [19:28:57]*** Cut start [19:28:57]*** Partial cut [19:28:57]*** CUTSNS_PIN = 1 [19:28:57]*** CUTSNS_PIN = 0 [19:28:57]*** Brake cut motor [19:28:58]Read from MH i2c: 01 [19:28:58]MH_I2C_Read... [19:28:58]*** Stop cut motor [19:28:58]*** Cut end [19:28:58]Read from MH i2c: 01 07 00 [19:28:58]MH_I2C_Read... [19:28:58]Read from MH i2c: 01 07 00 7D 87 00 00 00 00 00 FF 0F 19 [19:28:58]process_action close_receipt done [19:28:58]requested_data is exist [19:28:58]produce_requested_data [19:28:58]requested_item fm.sn is exist - process it [19:28:58]wFMCommunicate request_size=4 [19:28:58]MH_SAM_APDU [19:28:58]CAPDU: 80 11 00 00 [19:28:58]Write to MH i2c: E2 08 00 7E 87 80 11 00 00 00 00 00 00 7F [19:28:58]Write i2c OK [19:28:58]MH_I2C_Read... [19:28:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:28:58]Read from MH i2c: E2 [19:28:58]MH_I2C_Read... [19:28:58]Read from MH i2c: E2 17 00 [19:28:58]MH_I2C_Read... [19:28:58]Read from MH i2c: E2 17 00 7E 87 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 CD [19:28:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [19:28:58]wFMCommunicate OK [19:28:58]requested_item fd.num is exist - process it [19:28:58]SAM_PROTO_GetFieldsCounters [19:28:58]wFMCommunicate request_size=4 [19:28:58]MH_SAM_APDU [19:28:58]CAPDU: 80 13 00 00 [19:28:58]Write to MH i2c: E2 08 00 7F 87 80 13 00 00 00 00 00 00 82 [19:28:58]Write i2c OK [19:28:58]MH_I2C_Read... [19:28:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:28:58]Read from MH i2c: E2 [19:28:58]MH_I2C_Read... [19:28:58]Read from MH i2c: E2 62 00 [19:28:58]MH_I2C_Read... [19:28:58]Read from MH i2c: E2 62 00 7F 87 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 F7 DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 67 01 00 00 5E 04 04 00 67 01 00 00 57 04 04 00 68 01 00 00 19 04 04 00 00 00 00 00 90 00 64 [19:28:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 F7 DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 67 01 00 00 5E 04 04 00 67 01 00 00 57 04 04 00 68 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:28:58]wFMCommunicate OK [19:28:58]SAM_PROTO_GetFieldsCounters done [19:28:58]requested_item shift.num is exist - process it [19:28:58]requested_item shift.opened is exist - process it [19:28:58]req_shift_opened [19:28:58]FM_GetShiftState [19:28:58]SAM_PROTO_GetShiftState [19:28:58]wFMCommunicate request_size=4 [19:28:58]MH_SAM_APDU [19:28:58]CAPDU: 80 13 01 00 [19:28:58]Write to MH i2c: E2 08 00 80 87 80 13 01 00 00 00 00 00 84 [19:28:58]Write i2c OK [19:28:58]MH_I2C_Read... [19:28:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:28:58]Read from MH i2c: E2 [19:28:58]MH_I2C_Read... [19:28:58]Read from MH i2c: E2 0E 00 [19:28:58]MH_I2C_Read... [19:28:58]Read from MH i2c: E2 0E 00 80 87 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 E3 [19:28:58]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [19:28:58]wFMCommunicate OK [19:28:58]SAM_PROTO_GetShiftState done [19:28:58]FM_GetShiftState done [19:28:58]req_shift_opened done [19:28:58]requested_item shift.open_date is exist - process it [19:28:58]req_shift_open_date [19:28:58]req_shift_open_date done [19:28:58]produce_requested_data done [19:28:58]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187895,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [19:28:58]process_action_free close_receipt [19:28:58]json_value_free [19:28:58]json_value_free done [19:28:58]process_json_proto returns [19:28:58]Send response to host [19:28:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187895,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [19:28:58]free response buf [19:28:58]execute_script done [19:28:58]execute_script returns [19:28:58]free content buf [19:28:58]Sock 8.Close socket [19:28:58]Sock 8.Thread stoped [19:29:02]OFD Sender: No OFD packet to send [19:29:07]OFD Sender: No OFD packet to send [19:29:12]OFD Sender: No OFD packet to send [19:29:17]OFD Sender: No OFD packet to send [19:29:22]OFD Sender: No OFD packet to send [19:29:27]OFD Sender: No OFD packet to send [19:29:32]OFD Sender: No OFD packet to send [19:29:37]OFD Sender: No OFD packet to send [19:29:42]OFD Sender: No OFD packet to send [19:29:47]OFD Sender: No OFD packet to send [19:29:52]OFD Sender: No OFD packet to send [19:29:57]OFD Sender: No OFD packet to send [19:30:02]OFD Sender: No OFD packet to send [19:30:07]OFD Sender: No OFD packet to send [19:30:12]OFD Sender: No OFD packet to send [19:30:17]OFD Sender: No OFD packet to send [19:30:22]OFD Sender: No OFD packet to send [19:30:27]OFD Sender: No OFD packet to send [19:30:32]OFD Sender: No OFD packet to send [19:30:37]OFD Sender: No OFD packet to send [19:30:42]OFD Sender: No OFD packet to send [19:30:47]OFD Sender: No OFD packet to send [19:30:52]OFD Sender: No OFD packet to send [19:30:57]OFD Sender: No OFD packet to send [19:31:02]OFD Sender: No OFD packet to send [19:31:07]OFD Sender: No OFD packet to send [19:31:12]OFD Sender: No OFD packet to send [19:31:17]OFD Sender: No OFD packet to send [19:31:22]OFD Sender: No OFD packet to send [19:31:27]OFD Sender: No OFD packet to send [19:31:32]OFD Sender: No OFD packet to send [19:31:34]accept exits with 9 [19:31:34]New connection [19:31:34]New thread 3067157860 created [19:31:34]Thread 3067014500 joined [19:31:34]Waiting for new connection... [19:31:34] Sock 9.Parse request [19:31:34]Sock 9.Check first char [19:31:34]Sock 9.First char is OK [19:31:34]request: POST /json_proto HTTP/1.0 [19:31:34]Method: POST [19:31:34]URL: /json_proto [19:31:34]Method is POST - this is cgi request [19:31:34]url: /json_proto [19:31:34]query_string will be loaded in cgi processing [19:31:34]execute_cgi json_proto POST (null) [19:31:34]execute_cgi path=json_proto method=POST [19:31:34]POST find Content-Length [19:31:34]Host: 172.17.42.131:8080 [19:31:34]Content-Length: 682 [19:31:34]Content-Type: application/json [19:31:34] [19:31:34]POST finish read [19:31:34]Found Content-Length = 682 [19:31:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209948", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "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:31:34]execute_script... [19:31:34]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209948", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "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:31:34]POST & json_proto [19:31:34]process_json_proto [19:31:34]json parsed OK: [19:31:34]protocol is kg_v1.0 [19:31:34]action value=close_receipt [19:31:34]process_action close_receipt [19:31:34]cmd_close_receipt [19:31:34]MH_GetDate [19:31:34]Write to MH i2c: F0 00 00 81 87 F7 [19:31:34]Write i2c OK [19:31:34]MH_I2C_Read... [19:31:34]Read from MH i2c: F0 [19:31:34]MH_I2C_Read... [19:31:34]Read from MH i2c: F0 09 00 [19:31:34]MH_I2C_Read... [19:31:34]Read from MH i2c: F0 09 00 81 87 00 1B AC 16 67 A0 18 CA 66 2C [19:31:34]GetLastDocTimeStamp 1729538939 [19:31:34]current date 1729539099 [19:31:34]FM_GetShiftState [19:31:34]SAM_PROTO_GetShiftState [19:31:34]wFMCommunicate request_size=4 [19:31:34]MH_SAM_APDU [19:31:34]CAPDU: 80 13 01 00 [19:31:34]Write to MH i2c: E2 08 00 82 87 80 13 01 00 00 00 00 00 86 [19:31:34]Write i2c OK [19:31:34]MH_I2C_Read... [19:31:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:31:34]Read from MH i2c: E2 [19:31:34]MH_I2C_Read... [19:31:34]Read from MH i2c: E2 0E 00 [19:31:34]MH_I2C_Read... [19:31:34]Read from MH i2c: E2 0E 00 82 87 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 E5 [19:31:34]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [19:31:34]wFMCommunicate OK [19:31:34]SAM_PROTO_GetShiftState done [19:31:34]FM_GetShiftState done [19:31:34]opened in 1729469754 [19:31:34]opened+sec_in_day 1729556154 [19:31:34]quantity*price = 100015 [19:31:34]sum+1 = 100017 [19:31:34]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 360 21.10.2024 19:31 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 187896 ФПД: 17942570610667 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T193139&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187896&fm=17942570610667&tin=02508201610067®Number=0000000000100030&sum=100000 [19:31:35]StoreToDocumentArchive [19:31:35]shift 460 fd 187896 [19:31:35]save to /storage/0460/doc_00187896 [19:31:35]save last doc name /storage/0460/doc_00187896 to /storage/kkm_last_doc_name [19:31:35]save OK [19:31:35]Clear old archive folders... [19:31:35]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:31:35]tlvbuf is 010FC2A0 [19:31:35]SAM_PROTO_ClearQueue [19:31:35]wFMCommunicate request_size=4 [19:31:35]MH_SAM_APDU [19:31:35]CAPDU: 80 09 00 00 [19:31:35]Write to MH i2c: E2 08 00 8F 87 80 09 00 00 00 00 00 00 88 [19:31:35]Write i2c OK [19:31:35]MH_I2C_Read... [19:31:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:31:35]Read from MH i2c: E2 [19:31:35]MH_I2C_Read... [19:31:35]Read from MH i2c: E2 03 00 [19:31:35]MH_I2C_Read... [19:31:35]Read from MH i2c: E2 03 00 8F 87 00 90 00 8A [19:31:35]RAPDU: 90 00 [19:31:35]wFMCommunicate OK [19:31:35]SAM_PROTO_ClearQueue done [19:31:35]KKMCreateOFDPacket [19:31:35]OFDProtocolAddRootSTLVToBuf [19:31:35]FM_MakeSignedData [19:31:35]FM_MakeSignedData [19:31:35]SAM_PROTO_SignData [19:31:35]wFMCommunicate request_size=4 [19:31:35]MH_SAM_APDU [19:31:35]CAPDU: 80 0D 01 02 [19:31:35]Write to MH i2c: E2 08 00 90 87 80 0D 01 02 00 00 00 00 90 [19:31:35]Write i2c OK [19:31:35]MH_I2C_Read... [19:31:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:31:35]Read from MH i2c: E2 [19:31:35]MH_I2C_Read... [19:31:35]Read from MH i2c: E2 03 00 [19:31:35]MH_I2C_Read... [19:31:35]Read from MH i2c: E2 03 00 90 87 00 90 00 8B [19:31:35]RAPDU: 90 00 [19:31:35]wFMCommunicate OK [19:31:35]wFMCommunicate request_size=255 [19:31:35]MH_SAM_APDU [19:31: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 33 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 68 01 00 00 F4 03 04 00 1B AC 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 F8 DD 02 00 35 04 06 00 10 [19:31:35]Write to MH i2c: E2 02 01 91 87 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 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 68 01 00 00 F4 03 04 00 1B AC 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 F8 DD 02 00 35 04 06 00 10 00 00 5E [19:31:35]Write i2c OK [19:31:35]MH_I2C_Read... [19:31:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:31:35]Read from MH i2c: E2 [19:31:35]MH_I2C_Read... [19:31:35]Read from MH i2c: E2 03 00 [19:31:35]MH_I2C_Read... [19:31:35]Read from MH i2c: E2 03 00 91 87 00 90 00 8C [19:31:35]RAPDU: 90 00 [19:31:35]wFMCommunicate OK [19:31:35]wFMCommunicate request_size=10 [19:31:35]MH_SAM_APDU [19:31:35]CAPDU: 80 0D 02 02 05 51 94 8C 2F EB [19:31:35]Write to MH i2c: E2 0D 00 92 87 80 0D 02 02 05 00 51 94 8C 2F EB 00 00 28 [19:31:35]Write i2c OK [19:31:35]MH_I2C_Read... [19:31:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:31:36]Read from MH i2c: E2 [19:31:36]MH_I2C_Read... [19:31:36]Read from MH i2c: E2 03 00 [19:31:36]MH_I2C_Read... [19:31:36]Read from MH i2c: E2 03 00 92 87 00 90 00 8D [19:31:36]RAPDU: 90 00 [19:31:36]wFMCommunicate OK [19:31:36]wFMCommunicate request_size=4 [19:31:36]MH_SAM_APDU [19:31:36]CAPDU: 80 0D 03 02 [19:31:36]Write to MH i2c: E2 08 00 93 87 80 0D 03 02 00 00 00 00 95 [19:31:36]Write i2c OK [19:31:36]MH_I2C_Read... [19:31:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:31:36]Read from MH i2c: E2 [19:31:36]MH_I2C_Read... [19:31:36]Read from MH i2c: E2 0B 00 [19:31:36]MH_I2C_Read... [19:31:36]Read from MH i2c: E2 0B 00 93 87 00 10 B4 DD E9 A6 19 ED EB 90 00 B7 [19:31:36]RAPDU: 10 B4 DD E9 A6 19 ED EB 90 00 [19:31:36]wFMCommunicate OK [19:31:36]SAM_PROTO_SignData done [19:31:36]FM_MakeSignedData done [19:31:36]CreateOFDProtocolMessage [19:31:36]wFMCommunicate request_size=4 [19:31:36]MH_SAM_APDU [19:31:36]CAPDU: 80 11 00 00 [19:31:36]Write to MH i2c: E2 08 00 94 87 80 11 00 00 00 00 00 00 95 [19:31:36]Write i2c OK [19:31:36]MH_I2C_Read... [19:31:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:31:36]Read from MH i2c: E2 [19:31:36]MH_I2C_Read... [19:31:36]Read from MH i2c: E2 17 00 [19:31:36]MH_I2C_Read... [19:31:36]Read from MH i2c: E2 17 00 94 87 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 E3 [19:31:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [19:31:36]wFMCommunicate OK [19:31:36]CreateOFDProtocolMessage done [19:31:36]OFDSenderStorePacket 187896 [19:31:36]StoreOFDPacket docnum=187896 [19:31:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 02 69 07 01 A7 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 33 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 68 01 00 00 F4 03 04 00 1B AC 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 F8 DD 02 00 35 04 06 00 10 51 94 8C 2F EB 10 B4 DD E9 A6 19 ED EB [19:31:36]CheckFolder [19:31:36]dirname=/storage/ofd_packets [19:31:36]CheckFolder done [19:31:36]ProducePacketName [19:31:36]name=ofd_packets/00187896 [19:31:36]NVStorageSaveData ofd_packets/00187896 [19:31:36]File name is /storage/ofd_packets/00187896 [19:31:36]Write 301 bytes [19:31:36]NVStorageSaveData done [19:31:36]OFDSenderStorePacket done [19:31:36]KKMCreateOFDPacket done [19:31:36]NVStorageSaveData kkm_last_timestamp [19:31:36]File name is /storage/kkm_last_timestamp [19:31:36]Write 4 bytes [19:31:36]NVStorageSaveData done [19:31:36]ExternCall_PrintAddStr [19:31:36]wPrintStart [19:31:36]Write to MH i2c: 01 00 00 95 87 1C [19:31:36]Write i2c OK [19:31:36]MH_I2C_Read... [19:31:36]Read from MH i2c: 01 [19:31:36]MH_I2C_Read... [19:31:36]Read from MH i2c: 01 07 00 [19:31:36]MH_I2C_Read... [19:31:36]Read from MH i2c: 01 07 00 95 87 00 00 00 00 00 FF 0F 31 [19:31:36]RasterBufferAndPrint [19:31:36]line Счет N : (1)209948 [19:31:36]line ИНН: 02508201610067 [19:31:36]line Контрольно-Кассовый Чек [19:31:36]line ПРОДАЖА [19:31:36]line ТРК (МРК, ГНК) : 22 [19:31:36]line Товар: 2710124130 [19:31:36]line Аи-92-К-3 [19:31:36]line 14.950 * 66.90 [19:31:36]line = 1000.16 [19:31:36]line НДС 12% НСП 1% [19:31:36]line > о реализуемом товаре [19:31:36]line ОКРУГЛЕНИЕ: -0.16 [19:31:36]line ИТОГО: 1000.00 [19:31:36]line Внесено: 1000.00 [19:31:36]line СДАЧА: 0.00 [19:31:36]line НСП 1% : 8.85 [19:31:36]line НДС 12% : 106.21 [19:31:36]line Наличными: 1000.00 [19:31:36]line Безнал.: 0.00 [19:31:36]line Место: АЗС № 86 "Партнер Нефть" [19:31:36]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [19:31:36]line СНО: Общий режим [19:31:36]line Чек 360 21.10.2024 19:31 [19:31:36]line Смена: 460 ФФД: 1.0 [19:31:36]line ЗНМ: 0300000155 [19:31:36]line РНМ: 0000000000100030 [19:31:36]line Версия ККМ: 001 [19:31:36]line ФМ: 0000000000965340 [19:31:36]line ФД: 187896 [19:31:36]line ФПД: 17942570610667 [19:31:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T193139&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187896&fm=17942570610667&tin=02508201610067®Number=0000000000100030&sum=100000 [19:31:36]written 0, free lines is 4095 [19:31:36]OFD Sender: Processing packet 187896 [packets to send 1062, broken 1061] [19:31:36]ProducePacketName [19:31:36]name=ofd_packets/00187896 [19:31:36]OFD Sender: To server: pG, [19:31:36]CommunicateWithHost lk.salyk.kg:30040 [19:31:36]ConnectInit lk.salyk.kg [19:31:36]Connected sock=10 [19:31:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 02 69 07 01 A7 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 33 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 68 01 00 00 F4 03 04 00 1B AC 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 F8 DD 02 00 35 04 06 00 10 51 94 8C 2F EB 10 B4 DD E9 A6 19 ED EB [19:31:36]Write to MH i2c: 01 00 00 C0 87 47 [19:31:36]Write i2c OK [19:31:36]MH_I2C_Read... [19:31:36]Read from MH i2c: 01 [19:31:36]MH_I2C_Read... [19:31:36]Read from MH i2c: 01 07 00 [19:31:36]MH_I2C_Read... [19:31:36]Read from MH i2c: 01 07 00 C0 87 00 00 00 00 00 68 0C C2 [19:31:36]RasterBufferAndPrint [19:31:36]line [19:31:36]line [19:31:36]line [19:31:36]line [19:31:36]line [19:31:36]written 0, free lines is 3180 [19:31:36]MH_Cut [19:31:36]Write to MH i2c: D1 01 00 C7 87 01 20 [19:31:36]Write i2c OK [19:31:36]MH_I2C_Read... [19:31:36]Read from MH i2c: D1 [19:31:36]MH_I2C_Read... [19:31:36]Read from MH i2c: D1 01 00 [19:31:36]MH_I2C_Read... [19:31:36]Read from MH i2c: D1 01 00 C7 87 00 1F [19:31:36]Write to MH i2c: 01 00 00 C8 87 4F [19:31:36]Write i2c OK [19:31:36]MH_I2C_Read... [19:31:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 7E 4A 47 00 14 66 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 F8 DD 02 00 F4 03 04 00 0B 56 16 67 B6 04 01 00 00 0C 75 B2 2B 40 49 22 F8 [19:31:36]CommunicateWithHost err = 0 [19:31:36]CheckOFDResponse [19:31:36]1017 (14) - 77093643461234 [19:31:36]1041 (16) - 0000000000965340 [19:31:36]1040 (4) - 187896 [19:31:36]1012 (4) - 21.10.2024 13:24 [19:31:36]1206 (1) - 0 [19:31:36]OFD Sender: Remove packet 187896 [19:31:36]ProducePacketName [19:31:36]name=ofd_packets/00187896 [19:31:36]NVStorageDeleteData [19:31:37]OFD Sender: No OFD packet to send [19:31:37]*** Cut start [19:31:37]*** Partial cut [19:31:37]*** CUTSNS_PIN = 1 [19:31:37]*** CUTSNS_PIN = 0 [19:31:38]*** Brake cut motor [19:31:38]Read from MH i2c: 01 [19:31:38]MH_I2C_Read... [19:31:38]*** Stop cut motor [19:31:38]*** Cut end [19:31:38]Read from MH i2c: 01 07 00 [19:31:38]MH_I2C_Read... [19:31:38]Read from MH i2c: 01 07 00 C8 87 00 00 00 00 00 FF 0F 64 [19:31:38]process_action close_receipt done [19:31:38]requested_data is exist [19:31:38]produce_requested_data [19:31:38]requested_item fm.sn is exist - process it [19:31:38]wFMCommunicate request_size=4 [19:31:38]MH_SAM_APDU [19:31:38]CAPDU: 80 11 00 00 [19:31:38]Write to MH i2c: E2 08 00 C9 87 80 11 00 00 00 00 00 00 CA [19:31:38]Write i2c OK [19:31:38]MH_I2C_Read... [19:31:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:31:38]Read from MH i2c: E2 [19:31:38]MH_I2C_Read... [19:31:38]Read from MH i2c: E2 17 00 [19:31:38]MH_I2C_Read... [19:31:38]Read from MH i2c: E2 17 00 C9 87 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 18 [19:31:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [19:31:38]wFMCommunicate OK [19:31:38]requested_item fd.num is exist - process it [19:31:38]SAM_PROTO_GetFieldsCounters [19:31:38]wFMCommunicate request_size=4 [19:31:38]MH_SAM_APDU [19:31:38]CAPDU: 80 13 00 00 [19:31:38]Write to MH i2c: E2 08 00 CA 87 80 13 00 00 00 00 00 00 CD [19:31:38]Write i2c OK [19:31:38]MH_I2C_Read... [19:31:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:31:38]Read from MH i2c: E2 [19:31:38]MH_I2C_Read... [19:31:38]Read from MH i2c: E2 62 00 [19:31:38]MH_I2C_Read... [19:31:38]Read from MH i2c: E2 62 00 CA 87 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 F8 DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 68 01 00 00 5E 04 04 00 68 01 00 00 57 04 04 00 69 01 00 00 19 04 04 00 00 00 00 00 90 00 B3 [19:31:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 F8 DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 68 01 00 00 5E 04 04 00 68 01 00 00 57 04 04 00 69 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:31:38]wFMCommunicate OK [19:31:38]SAM_PROTO_GetFieldsCounters done [19:31:38]requested_item shift.num is exist - process it [19:31:38]requested_item shift.opened is exist - process it [19:31:38]req_shift_opened [19:31:38]FM_GetShiftState [19:31:38]SAM_PROTO_GetShiftState [19:31:38]wFMCommunicate request_size=4 [19:31:38]MH_SAM_APDU [19:31:38]CAPDU: 80 13 01 00 [19:31:38]Write to MH i2c: E2 08 00 CB 87 80 13 01 00 00 00 00 00 CF [19:31:38]Write i2c OK [19:31:38]MH_I2C_Read... [19:31:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:31:38]Read from MH i2c: E2 [19:31:38]MH_I2C_Read... [19:31:38]Read from MH i2c: E2 0E 00 [19:31:38]MH_I2C_Read... [19:31:38]Read from MH i2c: E2 0E 00 CB 87 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 2E [19:31:38]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [19:31:38]wFMCommunicate OK [19:31:38]SAM_PROTO_GetShiftState done [19:31:38]FM_GetShiftState done [19:31:38]req_shift_opened done [19:31:38]requested_item shift.open_date is exist - process it [19:31:38]req_shift_open_date [19:31:38]req_shift_open_date done [19:31:38]produce_requested_data done [19:31:38]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187896,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [19:31:38]process_action_free close_receipt [19:31:38]json_value_free [19:31:38]json_value_free done [19:31:38]process_json_proto returns [19:31:38]Send response to host [19:31:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187896,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [19:31:38]free response buf [19:31:38]execute_script done [19:31:38]execute_script returns [19:31:38]free content buf [19:31:38]Sock 9.Close socket [19:31:38]Sock 9.Thread stoped [19:31:42]OFD Sender: No OFD packet to send [19:31:47]OFD Sender: No OFD packet to send [19:31:51]accept exits with 8 [19:31:51]New connection [19:31:51]New thread 3067014500 created [19:31:51]Thread 3067157860 joined [19:31:51]Waiting for new connection... [19:31:51] Sock 8.Parse request [19:31:51]Sock 8.Check first char [19:31:51]Sock 8.First char is OK [19:31:51]request: POST /json_proto HTTP/1.0 [19:31:51]Method: POST [19:31:51]URL: /json_proto [19:31:51]Method is POST - this is cgi request [19:31:51]url: /json_proto [19:31:51]query_string will be loaded in cgi processing [19:31:51]execute_cgi json_proto POST (null) [19:31:51]execute_cgi path=json_proto method=POST [19:31:51]POST find Content-Length [19:31:51]Host: 172.17.42.131:8080 [19:31:51]Content-Length: 773 [19:31:51]Content-Type: application/json [19:31:51] [19:31:51]POST finish read [19:31:51]Found Content-Length = 773 [19:31:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209949", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 10.370, "sum" : 800.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 800.56 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:31:51]execute_script... [19:31:51]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209949", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 10.370, "sum" : 800.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 800.56 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:31:51]POST & json_proto [19:31:51]process_json_proto [19:31:51]json parsed OK: [19:31:51]protocol is kg_v1.0 [19:31:51]action value=close_receipt [19:31:51]process_action close_receipt [19:31:51]cmd_close_receipt [19:31:51]MH_GetDate [19:31:51]Write to MH i2c: F0 00 00 CC 87 42 [19:31:51]Write i2c OK [19:31:51]MH_I2C_Read... [19:31:51]Read from MH i2c: F0 [19:31:51]MH_I2C_Read... [19:31:51]Read from MH i2c: F0 09 00 [19:31:51]MH_I2C_Read... [19:31:51]Read from MH i2c: F0 09 00 CC 87 00 2C AC 16 67 A0 18 CA 66 88 [19:31:51]GetLastDocTimeStamp 1729539099 [19:31:51]current date 1729539116 [19:31:51]FM_GetShiftState [19:31:51]SAM_PROTO_GetShiftState [19:31:51]wFMCommunicate request_size=4 [19:31:51]MH_SAM_APDU [19:31:51]CAPDU: 80 13 01 00 [19:31:51]Write to MH i2c: E2 08 00 CD 87 80 13 01 00 00 00 00 00 D1 [19:31:51]Write i2c OK [19:31:51]MH_I2C_Read... [19:31:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:31:51]Read from MH i2c: E2 [19:31:51]MH_I2C_Read... [19:31:51]Read from MH i2c: E2 0E 00 [19:31:51]MH_I2C_Read... [19:31:51]Read from MH i2c: E2 0E 00 CD 87 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 30 [19:31:51]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [19:31:51]wFMCommunicate OK [19:31:51]SAM_PROTO_GetShiftState done [19:31:51]FM_GetShiftState done [19:31:51]opened in 1729469754 [19:31:51]opened+sec_in_day 1729556154 [19:31:51]quantity*price = 80056 [19:31:51]sum+1 = 80057 [19:31:51]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 800.56 НСП 1% : 7.08 НДС 12% : 85.01 Наличными: 0.00 Безнал.: 800.56 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 361 21.10.2024 19:31 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000965340 ФД: 187897 ФПД: 186992958713035 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T193156&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187897&fm=186992958713035&tin=02508201610067®Number=0000000000100030&sum=80056 [19:31:52]StoreToDocumentArchive [19:31:52]shift 460 fd 187897 [19:31:52]save to /storage/0460/doc_00187897 [19:31:52]save last doc name /storage/0460/doc_00187897 to /storage/kkm_last_doc_name [19:31:52]save OK [19:31:52]Clear old archive folders... [19:31:52]ProcessDocumentItem done err = 0, tmpTLVsize=257 [19:31:52]tlvbuf is 010FC8D0 [19:31:52]SAM_PROTO_ClearQueue [19:31:52]wFMCommunicate request_size=4 [19:31:52]MH_SAM_APDU [19:31:52]CAPDU: 80 09 00 00 [19:31:52]Write to MH i2c: E2 08 00 DA 87 80 09 00 00 00 00 00 00 D3 [19:31:52]Write i2c OK [19:31:52]MH_I2C_Read... [19:31:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:31:52]Read from MH i2c: E2 [19:31:52]MH_I2C_Read... [19:31:52]Read from MH i2c: E2 03 00 [19:31:52]MH_I2C_Read... [19:31:52]Read from MH i2c: E2 03 00 DA 87 00 90 00 D5 [19:31:52]RAPDU: 90 00 [19:31:52]wFMCommunicate OK [19:31:52]SAM_PROTO_ClearQueue done [19:31:52]KKMCreateOFDPacket [19:31:52]OFDProtocolAddRootSTLVToBuf [19:31:52]FM_MakeSignedData [19:31:52]FM_MakeSignedData [19:31:52]SAM_PROTO_SignData [19:31:52]wFMCommunicate request_size=4 [19:31:52]MH_SAM_APDU [19:31:52]CAPDU: 80 0D 01 02 [19:31:52]Write to MH i2c: E2 08 00 DB 87 80 0D 01 02 00 00 00 00 DB [19:31:52]Write i2c OK [19:31:52]MH_I2C_Read... [19:31:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:31:52]Read from MH i2c: E2 [19:31:52]MH_I2C_Read... [19:31:52]Read from MH i2c: E2 03 00 [19:31:52]MH_I2C_Read... [19:31:52]Read from MH i2c: E2 03 00 DB 87 00 90 00 D6 [19:31:52]RAPDU: 90 00 [19:31:52]wFMCommunicate OK [19:31:52]wFMCommunicate request_size=255 [19:31:52]MH_SAM_APDU [19:31:52]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 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 82 28 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 B8 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 35 21 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B8 38 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 01 00 00 F4 03 04 00 2C AC 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 F9 DD 02 [19:31:52]Write to MH i2c: E2 02 01 DC 87 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 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 82 28 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 B8 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 35 21 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B8 38 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 01 00 00 F4 03 04 00 2C AC 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 F9 DD 02 00 00 99 [19:31:52]Write i2c OK [19:31:52]MH_I2C_Read... [19:31:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:31:52]OFD Sender: No OFD packet to send [19:31:52]Read from MH i2c: E2 [19:31:52]MH_I2C_Read... [19:31:52]Read from MH i2c: E2 03 00 [19:31:52]MH_I2C_Read... [19:31:52]Read from MH i2c: E2 03 00 DC 87 00 90 00 D7 [19:31:52]RAPDU: 90 00 [19:31:52]wFMCommunicate OK [19:31:52]wFMCommunicate request_size=16 [19:31:52]MH_SAM_APDU [19:31:52]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 AA 11 B0 E1 2C CB [19:31:52]Write to MH i2c: E2 13 00 DD 87 80 0D 02 02 0B 00 00 35 04 06 00 AA 11 B0 E1 2C CB 00 00 76 [19:31:52]Write i2c OK [19:31:52]MH_I2C_Read... [19:31:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:31:52]Read from MH i2c: E2 [19:31:52]MH_I2C_Read... [19:31:52]Read from MH i2c: E2 03 00 [19:31:52]MH_I2C_Read... [19:31:52]Read from MH i2c: E2 03 00 DD 87 00 90 00 D8 [19:31:52]RAPDU: 90 00 [19:31:52]wFMCommunicate OK [19:31:52]wFMCommunicate request_size=4 [19:31:52]MH_SAM_APDU [19:31:52]CAPDU: 80 0D 03 02 [19:31:52]Write to MH i2c: E2 08 00 DE 87 80 0D 03 02 00 00 00 00 E0 [19:31:52]Write i2c OK [19:31:52]MH_I2C_Read... [19:31:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:31:52]Read from MH i2c: E2 [19:31:52]MH_I2C_Read... [19:31:52]Read from MH i2c: E2 0B 00 [19:31:52]MH_I2C_Read... [19:31:52]Read from MH i2c: E2 0B 00 DE 87 00 2D B5 E9 B2 C8 1B 52 55 90 00 E8 [19:31:52]RAPDU: 2D B5 E9 B2 C8 1B 52 55 90 00 [19:31:52]wFMCommunicate OK [19:31:52]SAM_PROTO_SignData done [19:31:52]FM_MakeSignedData done [19:31:52]CreateOFDProtocolMessage [19:31:52]wFMCommunicate request_size=4 [19:31:52]MH_SAM_APDU [19:31:52]CAPDU: 80 11 00 00 [19:31:52]Write to MH i2c: E2 08 00 DF 87 80 11 00 00 00 00 00 00 E0 [19:31:52]Write i2c OK [19:31:52]MH_I2C_Read... [19:31:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:31:52]Read from MH i2c: E2 [19:31:52]MH_I2C_Read... [19:31:52]Read from MH i2c: E2 17 00 [19:31:52]MH_I2C_Read... [19:31:52]Read from MH i2c: E2 17 00 DF 87 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 2E [19:31:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [19:31:52]wFMCommunicate OK [19:31:52]CreateOFDProtocolMessage done [19:31:52]OFDSenderStorePacket 187897 [19:31:52]StoreOFDPacket docnum=187897 [19:31:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 35 CA 0D 01 B2 E3 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 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 82 28 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 B8 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 35 21 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B8 38 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 01 00 00 F4 03 04 00 2C AC 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 F9 DD 02 00 35 04 06 00 AA 11 B0 E1 2C CB 2D B5 E9 B2 C8 1B 52 55 [19:31:52]CheckFolder [19:31:52]dirname=/storage/ofd_packets [19:31:52]CheckFolder done [19:31:52]ProducePacketName [19:31:52]name=ofd_packets/00187897 [19:31:52]NVStorageSaveData ofd_packets/00187897 [19:31:52]File name is /storage/ofd_packets/00187897 [19:31:52]Write 307 bytes [19:31:52]NVStorageSaveData done [19:31:52]OFDSenderStorePacket done [19:31:52]KKMCreateOFDPacket done [19:31:52]NVStorageSaveData kkm_last_timestamp [19:31:52]File name is /storage/kkm_last_timestamp [19:31:52]Write 4 bytes [19:31:52]NVStorageSaveData done [19:31:52]ExternCall_PrintAddStr [19:31:52]wPrintStart [19:31:52]Write to MH i2c: 01 00 00 E0 87 67 [19:31:52]Write i2c OK [19:31:52]MH_I2C_Read... [19:31:52]Read from MH i2c: 01 [19:31:52]MH_I2C_Read... [19:31:52]Read from MH i2c: 01 07 00 [19:31:52]MH_I2C_Read... [19:31:52]Read from MH i2c: 01 07 00 E0 87 00 00 00 00 00 FF 0F 7C [19:31:52]RasterBufferAndPrint [19:31:52]line Счет N : (1)209949 [19:31:52]line ИНН: 02508201610067 [19:31:52]line Контрольно-Кассовый Чек [19:31:52]line ПРОДАЖА [19:31:52]line ТРК (МРК, ГНК) : 41 [19:31:52]line Товар: 2710194210 [19:31:52]line D-ENERGY ДТ-К-5 [19:31:52]line 10.370 * 77.20 [19:31:52]line = 800.56 [19:31:52]line НДС 12% НСП 1% [19:31:52]line > о реализуемом товаре [19:31:52]line ИТОГО: 800.56 [19:31:52]line НСП 1% : 7.08 [19:31:52]line НДС 12% : 85.01 [19:31:52]line Наличными: 0.00 [19:31:52]line Безнал.: 800.56 [19:31:52]line Место: АЗС № 86 "Партнер Нефть" [19:31:52]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [19:31:52]line СНО: Общий режим [19:31:52]line Чек 361 21.10.2024 19:31 [19:31:52]line Смена: 460 ФФД: 1.0 [19:31:52]line ЗНМ: 0300000155 [19:31:52]line РНМ: 0000000000100030 [19:31:52]line Версия ККМ: 001 [19:31:52]line Платежная система: Mbank [19:31:52]line ФМ: 0000000000965340 [19:31:52]line ФД: 187897 [19:31:52]line ФПД: 186992958713035 [19:31:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T193156&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187897&fm=186992958713035&tin=02508201610067®Number=0000000000100030&sum=80056 [19:31:52]written 0, free lines is 4095 [19:31:52]OFD Sender: Processing packet 187897 [packets to send 1062, broken 1061] [19:31:52]ProducePacketName [19:31:52]name=ofd_packets/00187897 [19:31:52]OFD Sender: To server: pG, [19:31:52]CommunicateWithHost lk.salyk.kg:30040 [19:31:52]ConnectInit lk.salyk.kg [19:31:53]Write to MH i2c: 01 00 00 09 88 91 [19:31:53]Write i2c OK [19:31:53]MH_I2C_Read... [19:31:53]Read from MH i2c: 01 [19:31:53]MH_I2C_Read... [19:31:53]Read from MH i2c: 01 07 00 [19:31:53]MH_I2C_Read... [19:31:53]Read from MH i2c: 01 07 00 09 88 00 00 00 00 00 9B 0C 3F [19:31:53]RasterBufferAndPrint [19:31:53]line [19:31:53]line [19:31:53]line [19:31:53]line [19:31:53]line [19:31:53]written 0, free lines is 3231 [19:31:53]Connected sock=10 [19:31:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 35 CA 0D 01 B2 E3 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 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 82 28 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 B8 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 35 21 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B8 38 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 01 00 00 F4 03 04 00 2C AC 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 F9 DD 02 00 35 04 06 00 AA 11 B0 E1 2C CB 2D B5 E9 B2 C8 1B 52 55 [19:31:53]MH_Cut [19:31:53]Write to MH i2c: D1 01 00 10 88 01 6A [19:31:53]Write i2c OK [19:31:53]MH_I2C_Read... [19:31:53]Read from MH i2c: D1 [19:31:53]MH_I2C_Read... [19:31:53]Read from MH i2c: D1 01 00 [19:31:53]MH_I2C_Read... [19:31:53]Read from MH i2c: D1 01 00 10 88 00 69 [19:31:53]Write to MH i2c: 01 00 00 11 88 99 [19:31:53]Write i2c OK [19:31:53]MH_I2C_Read... [19:31:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 E8 85 47 00 9B C8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 F9 DD 02 00 F4 03 04 00 1B 56 16 67 B6 04 01 00 00 84 52 BE 05 18 6C AE 00 [19:31:53]CommunicateWithHost err = 0 [19:31:53]CheckOFDResponse [19:31:53]1017 (14) - 77093643461234 [19:31:53]1041 (16) - 0000000000965340 [19:31:53]1040 (4) - 187897 [19:31:53]1012 (4) - 21.10.2024 13:24 [19:31:53]1206 (1) - 0 [19:31:53]OFD Sender: Remove packet 187897 [19:31:53]ProducePacketName [19:31:53]name=ofd_packets/00187897 [19:31:53]NVStorageDeleteData [19:31:54]OFD Sender: No OFD packet to send [19:31:54]*** Cut start [19:31:54]*** Partial cut [19:31:54]*** CUTSNS_PIN = 1 [19:31:54]*** CUTSNS_PIN = 0 [19:31:54]*** Brake cut motor [19:31:54]Read from MH i2c: 01 [19:31:54]MH_I2C_Read... [19:31:54]*** Stop cut motor [19:31:54]*** Cut end [19:31:54]Read from MH i2c: 01 07 00 [19:31:54]MH_I2C_Read... [19:31:54]Read from MH i2c: 01 07 00 11 88 00 00 00 00 00 FF 0F AE [19:31:54]process_action close_receipt done [19:31:54]requested_data is exist [19:31:54]produce_requested_data [19:31:54]requested_item fm.sn is exist - process it [19:31:54]wFMCommunicate request_size=4 [19:31:54]MH_SAM_APDU [19:31:54]CAPDU: 80 11 00 00 [19:31:54]Write to MH i2c: E2 08 00 12 88 80 11 00 00 00 00 00 00 14 [19:31:54]Write i2c OK [19:31:54]MH_I2C_Read... [19:31:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:31:55]Read from MH i2c: E2 [19:31:55]MH_I2C_Read... [19:31:55]Read from MH i2c: E2 17 00 [19:31:55]MH_I2C_Read... [19:31:55]Read from MH i2c: E2 17 00 12 88 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 62 [19:31:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [19:31:55]wFMCommunicate OK [19:31:55]requested_item fd.num is exist - process it [19:31:55]SAM_PROTO_GetFieldsCounters [19:31:55]wFMCommunicate request_size=4 [19:31:55]MH_SAM_APDU [19:31:55]CAPDU: 80 13 00 00 [19:31:55]Write to MH i2c: E2 08 00 13 88 80 13 00 00 00 00 00 00 17 [19:31:55]Write i2c OK [19:31:55]MH_I2C_Read... [19:31:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:31:55]Read from MH i2c: E2 [19:31:55]MH_I2C_Read... [19:31:55]Read from MH i2c: E2 62 00 [19:31:55]MH_I2C_Read... [19:31:55]Read from MH i2c: E2 62 00 13 88 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 F9 DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 69 01 00 00 5E 04 04 00 69 01 00 00 57 04 04 00 6A 01 00 00 19 04 04 00 00 00 00 00 90 00 01 [19:31:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 F9 DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 69 01 00 00 5E 04 04 00 69 01 00 00 57 04 04 00 6A 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:31:55]wFMCommunicate OK [19:31:55]SAM_PROTO_GetFieldsCounters done [19:31:55]requested_item shift.num is exist - process it [19:31:55]requested_item shift.opened is exist - process it [19:31:55]req_shift_opened [19:31:55]FM_GetShiftState [19:31:55]SAM_PROTO_GetShiftState [19:31:55]wFMCommunicate request_size=4 [19:31:55]MH_SAM_APDU [19:31:55]CAPDU: 80 13 01 00 [19:31:55]Write to MH i2c: E2 08 00 14 88 80 13 01 00 00 00 00 00 19 [19:31:55]Write i2c OK [19:31:55]MH_I2C_Read... [19:31:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:31:55]Read from MH i2c: E2 [19:31:55]MH_I2C_Read... [19:31:55]Read from MH i2c: E2 0E 00 [19:31:55]MH_I2C_Read... [19:31:55]Read from MH i2c: E2 0E 00 14 88 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 78 [19:31:55]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [19:31:55]wFMCommunicate OK [19:31:55]SAM_PROTO_GetShiftState done [19:31:55]FM_GetShiftState done [19:31:55]req_shift_opened done [19:31:55]requested_item shift.open_date is exist - process it [19:31:55]req_shift_open_date [19:31:55]req_shift_open_date done [19:31:55]produce_requested_data done [19:31:55]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187897,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [19:31:55]process_action_free close_receipt [19:31:55]json_value_free [19:31:55]json_value_free done [19:31:55]process_json_proto returns [19:31:55]Send response to host [19:31:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187897,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [19:31:55]free response buf [19:31:55]execute_script done [19:31:55]execute_script returns [19:31:55]free content buf [19:31:55]Sock 8.Close socket [19:31:55]Sock 8.Thread stoped [19:31:59]OFD Sender: No OFD packet to send [19:32:04]OFD Sender: No OFD packet to send [19:32:09]OFD Sender: No OFD packet to send [19:32:14]OFD Sender: No OFD packet to send [19:32:19]OFD Sender: No OFD packet to send [19:32:24]OFD Sender: No OFD packet to send [19:32:29]OFD Sender: No OFD packet to send [19:32:34]OFD Sender: No OFD packet to send [19:32:39]OFD Sender: No OFD packet to send [19:32:44]OFD Sender: No OFD packet to send [19:32:49]OFD Sender: No OFD packet to send [19:32:54]OFD Sender: No OFD packet to send [19:32:59]OFD Sender: No OFD packet to send [19:33:04]OFD Sender: No OFD packet to send [19:33:09]OFD Sender: No OFD packet to send [19:33:14]OFD Sender: No OFD packet to send [19:33:19]OFD Sender: No OFD packet to send [19:33:24]OFD Sender: No OFD packet to send [19:33:29]OFD Sender: No OFD packet to send [19:33:34]OFD Sender: No OFD packet to send [19:33:39]OFD Sender: No OFD packet to send [19:33:44]OFD Sender: No OFD packet to send [19:33:49]OFD Sender: No OFD packet to send [19:33:54]OFD Sender: No OFD packet to send [19:33:59]OFD Sender: No OFD packet to send [19:34:04]OFD Sender: No OFD packet to send [19:34:09]OFD Sender: No OFD packet to send [19:34:14]OFD Sender: No OFD packet to send [19:34:19]OFD Sender: No OFD packet to send [19:34:24]OFD Sender: No OFD packet to send [19:34:29]OFD Sender: No OFD packet to send [19:34:34]OFD Sender: No OFD packet to send [19:34:39]OFD Sender: No OFD packet to send [19:34:44]OFD Sender: No OFD packet to send [19:34:49]OFD Sender: No OFD packet to send [19:34:54]OFD Sender: No OFD packet to send [19:34:59]OFD Sender: No OFD packet to send [19:35:04]OFD Sender: No OFD packet to send [19:35:09]OFD Sender: No OFD packet to send [19:35:14]OFD Sender: No OFD packet to send [19:35:19]OFD Sender: No OFD packet to send [19:35:24]OFD Sender: No OFD packet to send [19:35:30]OFD Sender: No OFD packet to send [19:35:35]OFD Sender: No OFD packet to send [19:35:40]OFD Sender: No OFD packet to send [19:35:45]OFD Sender: No OFD packet to send [19:35:50]OFD Sender: No OFD packet to send [19:35:55]OFD Sender: No OFD packet to send [19:36:00]OFD Sender: No OFD packet to send [19:36:05]OFD Sender: No OFD packet to send [19:36:10]OFD Sender: No OFD packet to send [19:36:15]OFD Sender: No OFD packet to send [19:36:20]OFD Sender: No OFD packet to send [19:36:25]OFD Sender: No OFD packet to send [19:36:30]OFD Sender: No OFD packet to send [19:36:35]OFD Sender: No OFD packet to send [19:36:40]OFD Sender: No OFD packet to send [19:36:45]OFD Sender: No OFD packet to send [19:36:50]OFD Sender: No OFD packet to send [19:36:55]OFD Sender: No OFD packet to send [19:37:00]OFD Sender: No OFD packet to send [19:37:05]OFD Sender: No OFD packet to send [19:37:10]OFD Sender: No OFD packet to send [19:37:15]OFD Sender: No OFD packet to send [19:37:20]OFD Sender: No OFD packet to send [19:37:25]OFD Sender: No OFD packet to send [19:37:30]OFD Sender: No OFD packet to send [19:37:35]OFD Sender: No OFD packet to send [19:37:39]accept exits with 9 [19:37:39]New connection [19:37:39]New thread 3067157860 created [19:37:39]Thread 3067014500 joined [19:37:39]Waiting for new connection... [19:37:39] Sock 9.Parse request [19:37:39]Sock 9.Check first char [19:37:39]Sock 9.First char is OK [19:37:39]request: POST /json_proto HTTP/1.0 [19:37:39]Method: POST [19:37:39]URL: /json_proto [19:37:39]Method is POST - this is cgi request [19:37:39]url: /json_proto [19:37:39]query_string will be loaded in cgi processing [19:37:39]execute_cgi json_proto POST (null) [19:37:39]execute_cgi path=json_proto method=POST [19:37:39]POST find Content-Length [19:37:39]Host: 172.17.42.131:8080 [19:37:39]Content-Length: 800 [19:37:39]Content-Type: application/json [19:37:39] [19:37:39]POST finish read [19:37:39]Found Content-Length = 800 [19:37:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209950", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 3.740, "sum" : 250.21, "attribute": 0, "vats" : [ {"type": 0, "rate": 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" : 250.21 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:37:39]execute_script... [19:37:39]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209950", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 3.740, "sum" : 250.21, "attribute": 0, "vats" : [ {"type": 0, "rate": 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" : 250.21 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:37:39]POST & json_proto [19:37:39]process_json_proto [19:37:39]json parsed OK: [19:37:39]protocol is kg_v1.0 [19:37:39]action value=close_receipt [19:37:39]process_action close_receipt [19:37:39]cmd_close_receipt [19:37:39]MH_GetDate [19:37:39]Write to MH i2c: F0 00 00 15 88 8C [19:37:39]Write i2c OK [19:37:39]MH_I2C_Read... [19:37:39]Read from MH i2c: F0 [19:37:39]MH_I2C_Read... [19:37:39]Read from MH i2c: F0 09 00 [19:37:39]MH_I2C_Read... [19:37:39]Read from MH i2c: F0 09 00 15 88 00 89 AD 16 67 A0 18 CA 66 30 [19:37:39]GetLastDocTimeStamp 1729539116 [19:37:39]current date 1729539465 [19:37:39]FM_GetShiftState [19:37:39]SAM_PROTO_GetShiftState [19:37:39]wFMCommunicate request_size=4 [19:37:39]MH_SAM_APDU [19:37:39]CAPDU: 80 13 01 00 [19:37:39]Write to MH i2c: E2 08 00 16 88 80 13 01 00 00 00 00 00 1B [19:37:39]Write i2c OK [19:37:39]MH_I2C_Read... [19:37:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:37:39]Read from MH i2c: E2 [19:37:39]MH_I2C_Read... [19:37:39]Read from MH i2c: E2 0E 00 [19:37:39]MH_I2C_Read... [19:37:39]Read from MH i2c: E2 0E 00 16 88 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 7A [19:37:39]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [19:37:39]wFMCommunicate OK [19:37:39]SAM_PROTO_GetShiftState done [19:37:39]FM_GetShiftState done [19:37:39]opened in 1729469754 [19:37:39]opened+sec_in_day 1729556154 [19:37:39]quantity*price = 25020 [19:37:39]sum+1 = 25022 [19:37:39]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 250.21 НСП 1% : 2.21 НДС 12% : 26.57 Наличными: 0.00 Безнал.: 250.21 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 362 21.10.2024 19:37 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000965340 ФД: 187898 ФПД: 153362621237166 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T193745&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187898&fm=153362621237166&tin=02508201610067®Number=0000000000100030&sum=25021 [19:37:41]StoreToDocumentArchive [19:37:41]shift 460 fd 187898 [19:37:41]save to /storage/0460/doc_00187898 [19:37:41]save last doc name /storage/0460/doc_00187898 to /storage/kkm_last_doc_name [19:37:41]save OK [19:37:41]Clear old archive folders... [19:37:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:37:41]tlvbuf is 01084830 [19:37:41]SAM_PROTO_ClearQueue [19:37:41]wFMCommunicate request_size=4 [19:37:41]MH_SAM_APDU [19:37:41]CAPDU: 80 09 00 00 [19:37:41]Write to MH i2c: E2 08 00 23 88 80 09 00 00 00 00 00 00 1D [19:37:41]Write i2c OK [19:37:41]MH_I2C_Read... [19:37:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:37:41]Read from MH i2c: E2 [19:37:41]MH_I2C_Read... [19:37:41]Read from MH i2c: E2 03 00 [19:37:41]MH_I2C_Read... [19:37:41]Read from MH i2c: E2 03 00 23 88 00 90 00 1F [19:37:41]RAPDU: 90 00 [19:37:41]wFMCommunicate OK [19:37:41]SAM_PROTO_ClearQueue done [19:37:41]KKMCreateOFDPacket [19:37:41]OFDProtocolAddRootSTLVToBuf [19:37:41]FM_MakeSignedData [19:37:41]FM_MakeSignedData [19:37:41]SAM_PROTO_SignData [19:37:41]wFMCommunicate request_size=4 [19:37:41]MH_SAM_APDU [19:37:41]CAPDU: 80 0D 01 02 [19:37:41]Write to MH i2c: E2 08 00 24 88 80 0D 01 02 00 00 00 00 25 [19:37:41]Write i2c OK [19:37:41]MH_I2C_Read... [19:37:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:37:41]Read from MH i2c: E2 [19:37:41]MH_I2C_Read... [19:37:41]Read from MH i2c: E2 03 00 [19:37:41]MH_I2C_Read... [19:37:41]Read from MH i2c: E2 03 00 24 88 00 90 00 20 [19:37:41]RAPDU: 90 00 [19:37:41]wFMCommunicate OK [19:37:41]wFMCommunicate request_size=255 [19:37:41]MH_SAM_APDU [19:37: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 33 FF 03 08 00 03 9C 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BD 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BD 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 BD 61 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 01 00 00 F4 03 04 00 89 AD 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 FA DD 02 00 35 04 06 00 8B [19:37:41]Write to MH i2c: E2 02 01 25 88 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 9C 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BD 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BD 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 BD 61 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 01 00 00 F4 03 04 00 89 AD 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 FA DD 02 00 35 04 06 00 8B 00 00 EA [19:37:41]Write i2c OK [19:37:41]MH_I2C_Read... [19:37:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:37:41]Read from MH i2c: E2 [19:37:41]MH_I2C_Read... [19:37:41]Read from MH i2c: E2 03 00 [19:37:41]MH_I2C_Read... [19:37:41]Read from MH i2c: E2 03 00 25 88 00 90 00 21 [19:37:41]RAPDU: 90 00 [19:37:41]wFMCommunicate OK [19:37:41]wFMCommunicate request_size=10 [19:37:41]MH_SAM_APDU [19:37:41]CAPDU: 80 0D 02 02 05 7B 84 8F 87 AE [19:37:41]Write to MH i2c: E2 0D 00 26 88 80 0D 02 02 05 00 7B 84 8F 87 AE 00 00 F5 [19:37:41]Write i2c OK [19:37:41]MH_I2C_Read... [19:37:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:37:41]Read from MH i2c: E2 [19:37:41]MH_I2C_Read... [19:37:41]Read from MH i2c: E2 03 00 [19:37:41]MH_I2C_Read... [19:37:41]Read from MH i2c: E2 03 00 26 88 00 90 00 22 [19:37:41]RAPDU: 90 00 [19:37:41]wFMCommunicate OK [19:37:41]wFMCommunicate request_size=4 [19:37:41]MH_SAM_APDU [19:37:41]CAPDU: 80 0D 03 02 [19:37:41]Write to MH i2c: E2 08 00 27 88 80 0D 03 02 00 00 00 00 2A [19:37:41]Write i2c OK [19:37:41]MH_I2C_Read... [19:37:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:37:41]Read from MH i2c: E2 [19:37:41]MH_I2C_Read... [19:37:41]Read from MH i2c: E2 0B 00 [19:37:41]MH_I2C_Read... [19:37:41]Read from MH i2c: E2 0B 00 27 88 00 0D 91 D3 57 D0 F4 DA B3 90 00 44 [19:37:41]RAPDU: 0D 91 D3 57 D0 F4 DA B3 90 00 [19:37:41]wFMCommunicate OK [19:37:41]SAM_PROTO_SignData done [19:37:41]FM_MakeSignedData done [19:37:41]CreateOFDProtocolMessage [19:37:41]wFMCommunicate request_size=4 [19:37:41]MH_SAM_APDU [19:37:41]CAPDU: 80 11 00 00 [19:37:41]Write to MH i2c: E2 08 00 28 88 80 11 00 00 00 00 00 00 2A [19:37:41]Write i2c OK [19:37:41]MH_I2C_Read... [19:37:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:37:41]Read from MH i2c: E2 [19:37:41]MH_I2C_Read... [19:37:41]Read from MH i2c: E2 17 00 [19:37:41]MH_I2C_Read... [19:37:41]Read from MH i2c: E2 17 00 28 88 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 78 [19:37:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [19:37:41]wFMCommunicate OK [19:37:41]CreateOFDProtocolMessage done [19:37:41]OFDSenderStorePacket 187898 [19:37:41]StoreOFDPacket docnum=187898 [19:37:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 4B A1 07 01 C3 75 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 9C 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BD 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BD 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 BD 61 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 01 00 00 F4 03 04 00 89 AD 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 FA DD 02 00 35 04 06 00 8B 7B 84 8F 87 AE 0D 91 D3 57 D0 F4 DA B3 [19:37:41]CheckFolder [19:37:41]dirname=/storage/ofd_packets [19:37:41]CheckFolder done [19:37:41]ProducePacketName [19:37:41]name=ofd_packets/00187898 [19:37:41]NVStorageSaveData ofd_packets/00187898 [19:37:41]File name is /storage/ofd_packets/00187898 [19:37:41]Write 301 bytes [19:37:41]NVStorageSaveData done [19:37:41]OFDSenderStorePacket done [19:37:41]KKMCreateOFDPacket done [19:37:41]NVStorageSaveData kkm_last_timestamp [19:37:41]File name is /storage/kkm_last_timestamp [19:37:41]Write 4 bytes [19:37:41]NVStorageSaveData done [19:37:41]ExternCall_PrintAddStr [19:37:41]wPrintStart [19:37:41]Write to MH i2c: 01 00 00 29 88 B1 [19:37:41]Write i2c OK [19:37:41]MH_I2C_Read... [19:37:41]Read from MH i2c: 01 [19:37:41]MH_I2C_Read... [19:37:41]Read from MH i2c: 01 07 00 [19:37:41]MH_I2C_Read... [19:37:41]Read from MH i2c: 01 07 00 29 88 00 00 00 00 00 FF 0F C6 [19:37:41]RasterBufferAndPrint [19:37:41]line Счет N : (1)209950 [19:37:41]line ИНН: 02508201610067 [19:37:41]line Контрольно-Кассовый Чек [19:37:41]line ПРОДАЖА [19:37:41]line ТРК (МРК, ГНК) : 12 [19:37:41]line Товар: 2710124130 [19:37:41]line Аи-92-К-3 [19:37:41]line 3.740 * 66.90 [19:37:41]line = 250.21 [19:37:41]line НДС 12% НСП 1% [19:37:41]line > о реализуемом товаре [19:37:41]line ИТОГО: 250.21 [19:37:41]line НСП 1% : 2.21 [19:37:41]line НДС 12% : 26.57 [19:37:41]line Наличными: 0.00 [19:37:41]line Безнал.: 250.21 [19:37:41]line Место: АЗС № 86 "Партнер Нефть" [19:37:41]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [19:37:41]line СНО: Общий режим [19:37:41]line Чек 362 21.10.2024 19:37 [19:37:41]line Смена: 460 ФФД: 1.0 [19:37:41]line ЗНМ: 0300000155 [19:37:41]line РНМ: 0000000000100030 [19:37:41]line Версия ККМ: 001 [19:37:41]line Платежная система: O! деньги [19:37:41]line ФМ: 0000000000965340 [19:37:41]line ФД: 187898 [19:37:41]line ФПД: 153362621237166 [19:37:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T193745&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187898&fm=153362621237166&tin=02508201610067®Number=0000000000100030&sum=25021 [19:37:41]OFD Sender: Processing packet 187898 [packets to send 1062, broken 1061] [19:37:41]ProducePacketName [19:37:41]name=ofd_packets/00187898 [19:37:41]OFD Sender: To server: pG, [19:37:41]CommunicateWithHost lk.salyk.kg:30040 [19:37:41]ConnectInit lk.salyk.kg [19:37:41]written 0, free lines is 4095 [19:37:41]Connected sock=10 [19:37:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 4B A1 07 01 C3 75 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 9C 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BD 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BD 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 BD 61 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 01 00 00 F4 03 04 00 89 AD 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 FA DD 02 00 35 04 06 00 8B 7B 84 8F 87 AE 0D 91 D3 57 D0 F4 DA B3 [19:37:42]Write to MH i2c: 01 00 00 53 88 DB [19:37:42]Write i2c OK [19:37:42]MH_I2C_Read... [19:37:42]Read from MH i2c: 01 [19:37:42]MH_I2C_Read... [19:37:42]Read from MH i2c: 01 07 00 [19:37:42]MH_I2C_Read... [19:37:42]Read from MH i2c: 01 07 00 53 88 00 00 00 00 00 7F 0C 6D [19:37:42]RasterBufferAndPrint [19:37:42]line [19:37:42]line [19:37:42]line [19:37:42]line [19:37:42]line [19:37:42]written 0, free lines is 3203 [19:37:42]MH_Cut [19:37:42]Write to MH i2c: D1 01 00 5A 88 01 B4 [19:37:42]Write i2c OK [19:37:42]MH_I2C_Read... [19:37:42]Read from MH i2c: D1 [19:37:42]MH_I2C_Read... [19:37:42]Read from MH i2c: D1 01 00 [19:37:42]MH_I2C_Read... [19:37:42]Read from MH i2c: D1 01 00 5A 88 00 B3 [19:37:42]Write to MH i2c: 01 00 00 5B 88 E3 [19:37:42]Write i2c OK [19:37:42]MH_I2C_Read... [19:37:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 C3 3E 47 00 01 66 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 FA DD 02 00 F4 03 04 00 78 57 16 67 B6 04 01 00 00 1E A7 53 2A A3 2A 39 1C [19:37:42]CommunicateWithHost err = 0 [19:37:42]CheckOFDResponse [19:37:42]1017 (14) - 77093643461234 [19:37:42]1041 (16) - 0000000000965340 [19:37:42]1040 (4) - 187898 [19:37:42]1012 (4) - 21.10.2024 13:30 [19:37:42]1206 (1) - 0 [19:37:42]OFD Sender: Remove packet 187898 [19:37:42]ProducePacketName [19:37:42]name=ofd_packets/00187898 [19:37:42]NVStorageDeleteData [19:37:42]OFD Sender: No OFD packet to send [19:37:43]*** Cut start [19:37:43]*** Partial cut [19:37:43]*** CUTSNS_PIN = 1 [19:37:43]*** CUTSNS_PIN = 0 [19:37:43]*** Brake cut motor [19:37:43]Read from MH i2c: 01 [19:37:43]MH_I2C_Read... [19:37:43]*** Stop cut motor [19:37:43]*** Cut end [19:37:43]Read from MH i2c: 01 07 00 [19:37:43]MH_I2C_Read... [19:37:43]Read from MH i2c: 01 07 00 5B 88 00 00 00 00 00 FF 0F F8 [19:37:43]process_action close_receipt done [19:37:43]requested_data is exist [19:37:43]produce_requested_data [19:37:43]requested_item fm.sn is exist - process it [19:37:43]wFMCommunicate request_size=4 [19:37:43]MH_SAM_APDU [19:37:43]CAPDU: 80 11 00 00 [19:37:43]Write to MH i2c: E2 08 00 5C 88 80 11 00 00 00 00 00 00 5E [19:37:43]Write i2c OK [19:37:43]MH_I2C_Read... [19:37:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:37:44]Read from MH i2c: E2 [19:37:44]MH_I2C_Read... [19:37:44]Read from MH i2c: E2 17 00 [19:37:44]MH_I2C_Read... [19:37:44]Read from MH i2c: E2 17 00 5C 88 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 AC [19:37:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [19:37:44]wFMCommunicate OK [19:37:44]requested_item fd.num is exist - process it [19:37:44]SAM_PROTO_GetFieldsCounters [19:37:44]wFMCommunicate request_size=4 [19:37:44]MH_SAM_APDU [19:37:44]CAPDU: 80 13 00 00 [19:37:44]Write to MH i2c: E2 08 00 5D 88 80 13 00 00 00 00 00 00 61 [19:37:44]Write i2c OK [19:37:44]MH_I2C_Read... [19:37:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:37:44]Read from MH i2c: E2 [19:37:44]MH_I2C_Read... [19:37:44]Read from MH i2c: E2 62 00 [19:37:44]MH_I2C_Read... [19:37:44]Read from MH i2c: E2 62 00 5D 88 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 FA DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 6A 01 00 00 5E 04 04 00 6A 01 00 00 57 04 04 00 6B 01 00 00 19 04 04 00 00 00 00 00 90 00 4F [19:37:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 FA DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 6A 01 00 00 5E 04 04 00 6A 01 00 00 57 04 04 00 6B 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:37:44]wFMCommunicate OK [19:37:44]SAM_PROTO_GetFieldsCounters done [19:37:44]requested_item shift.num is exist - process it [19:37:44]requested_item shift.opened is exist - process it [19:37:44]req_shift_opened [19:37:44]FM_GetShiftState [19:37:44]SAM_PROTO_GetShiftState [19:37:44]wFMCommunicate request_size=4 [19:37:44]MH_SAM_APDU [19:37:44]CAPDU: 80 13 01 00 [19:37:44]Write to MH i2c: E2 08 00 5E 88 80 13 01 00 00 00 00 00 63 [19:37:44]Write i2c OK [19:37:44]MH_I2C_Read... [19:37:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:37:44]Read from MH i2c: E2 [19:37:44]MH_I2C_Read... [19:37:44]Read from MH i2c: E2 0E 00 [19:37:44]MH_I2C_Read... [19:37:44]Read from MH i2c: E2 0E 00 5E 88 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 C2 [19:37:44]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [19:37:44]wFMCommunicate OK [19:37:44]SAM_PROTO_GetShiftState done [19:37:44]FM_GetShiftState done [19:37:44]req_shift_opened done [19:37:44]requested_item shift.open_date is exist - process it [19:37:44]req_shift_open_date [19:37:44]req_shift_open_date done [19:37:44]produce_requested_data done [19:37:44]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187898,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [19:37:44]process_action_free close_receipt [19:37:44]json_value_free [19:37:44]json_value_free done [19:37:44]process_json_proto returns [19:37:44]Send response to host [19:37:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187898,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [19:37:44]free response buf [19:37:44]execute_script done [19:37:44]execute_script returns [19:37:44]free content buf [19:37:44]Sock 9.Close socket [19:37:44]Sock 9.Thread stoped [19:37:47]OFD Sender: No OFD packet to send [19:37:52]OFD Sender: No OFD packet to send [19:37:57]OFD Sender: No OFD packet to send [19:38:02]OFD Sender: No OFD packet to send [19:38:07]OFD Sender: No OFD packet to send [19:38:12]OFD Sender: No OFD packet to send [19:38:17]OFD Sender: No OFD packet to send [19:38:22]OFD Sender: No OFD packet to send [19:38:27]accept exits with 8 [19:38:27]New connection [19:38:27]New thread 3067014500 created [19:38:27]Thread 3067157860 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.42.131:8080 [19:38:27]Content-Length: 682 [19:38:27]Content-Type: application/json [19:38:27] [19:38:27]POST finish read [19:38:27]Found Content-Length = 682 [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)209951", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "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" ] } } [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)209951", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "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" ] } } [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 5F 88 D6 [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 5F 88 00 B9 AD 16 67 A0 18 CA 66 AA [19:38:27]GetLastDocTimeStamp 1729539465 [19:38:27]current date 1729539513 [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 60 88 80 13 01 00 00 00 00 00 65 [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 60 88 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 C4 [19:38:27]RAPDU: 09 00 01 3A 9D 15 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 1729469754 [19:38:27]opened+sec_in_day 1729556154 [19:38:27]quantity*price = 120018 [19:38:27]sum+1 = 120020 [19:38:27]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.19 ИТОГО: 1200.00 Внесено: 1200.00 СДАЧА: 0.00 НСП 1% : 10.62 НДС 12% : 127.45 Наличными: 1200.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 363 21.10.2024 19:38 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 187899 ФПД: 132137930984900 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T193833&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187899&fm=132137930984900&tin=02508201610067®Number=0000000000100030&sum=120000 [19:38:29]StoreToDocumentArchive [19:38:29]shift 460 fd 187899 [19:38:29]save to /storage/0460/doc_00187899 [19:38:29]save last doc name /storage/0460/doc_00187899 to /storage/kkm_last_doc_name [19:38:29]save OK [19:38:29]Clear old archive folders... [19:38:29]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:38:29]tlvbuf is 010F9A90 [19:38:29]SAM_PROTO_ClearQueue [19:38:29]wFMCommunicate request_size=4 [19:38:29]MH_SAM_APDU [19:38:29]CAPDU: 80 09 00 00 [19:38:29]Write to MH i2c: E2 08 00 6D 88 80 09 00 00 00 00 00 00 67 [19:38:29]Write i2c OK [19:38:29]MH_I2C_Read... [19:38:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:38:29]Read from MH i2c: E2 [19:38:29]MH_I2C_Read... [19:38:29]Read from MH i2c: E2 03 00 [19:38:29]MH_I2C_Read... [19:38:29]Read from MH i2c: E2 03 00 6D 88 00 90 00 69 [19:38:29]RAPDU: 90 00 [19:38:29]wFMCommunicate OK [19:38:29]SAM_PROTO_ClearQueue done [19:38:29]KKMCreateOFDPacket [19:38:29]OFDProtocolAddRootSTLVToBuf [19:38:29]FM_MakeSignedData [19:38:29]FM_MakeSignedData [19:38:29]SAM_PROTO_SignData [19:38:29]wFMCommunicate request_size=4 [19:38:29]MH_SAM_APDU [19:38:29]CAPDU: 80 0D 01 02 [19:38:29]Write to MH i2c: E2 08 00 6E 88 80 0D 01 02 00 00 00 00 6F [19:38:29]Write i2c OK [19:38:29]MH_I2C_Read... [19:38:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:38:29]Read from MH i2c: E2 [19:38:29]MH_I2C_Read... [19:38:29]Read from MH i2c: E2 03 00 [19:38:29]MH_I2C_Read... [19:38:29]Read from MH i2c: E2 03 00 6E 88 00 90 00 6A [19:38:29]RAPDU: 90 00 [19:38:29]wFMCommunicate OK [19:38:29]wFMCommunicate request_size=255 [19:38:29]MH_SAM_APDU [19:38: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 33 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 6B 01 00 00 F4 03 04 00 B9 AD 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 FB DD 02 00 35 04 06 00 78 [19:38:29]Write to MH i2c: E2 02 01 6F 88 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 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 6B 01 00 00 F4 03 04 00 B9 AD 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 FB DD 02 00 35 04 06 00 78 00 00 57 [19:38:29]Write i2c OK [19:38:29]MH_I2C_Read... [19:38:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:38:29]Read from MH i2c: E2 [19:38:29]MH_I2C_Read... [19:38:29]Read from MH i2c: E2 03 00 [19:38:29]MH_I2C_Read... [19:38:29]Read from MH i2c: E2 03 00 6F 88 00 90 00 6B [19:38:29]RAPDU: 90 00 [19:38:29]wFMCommunicate OK [19:38:29]wFMCommunicate request_size=10 [19:38:29]MH_SAM_APDU [19:38:29]CAPDU: 80 0D 02 02 05 2D C2 70 0D C4 [19:38:29]Write to MH i2c: E2 0D 00 70 88 80 0D 02 02 05 00 2D C2 70 0D C4 00 00 AC [19:38:29]Write i2c OK [19:38:29]MH_I2C_Read... [19:38:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:38:29]Read from MH i2c: E2 [19:38:29]MH_I2C_Read... [19:38:29]Read from MH i2c: E2 03 00 [19:38:29]MH_I2C_Read... [19:38:29]Read from MH i2c: E2 03 00 70 88 00 90 00 6C [19:38:29]RAPDU: 90 00 [19:38:29]wFMCommunicate OK [19:38:29]wFMCommunicate request_size=4 [19:38:29]MH_SAM_APDU [19:38:29]CAPDU: 80 0D 03 02 [19:38:29]Write to MH i2c: E2 08 00 71 88 80 0D 03 02 00 00 00 00 74 [19:38:29]Write i2c OK [19:38:29]MH_I2C_Read... [19:38:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:38:29]Read from MH i2c: E2 [19:38:29]MH_I2C_Read... [19:38:29]Read from MH i2c: E2 0B 00 [19:38:29]MH_I2C_Read... [19:38:29]Read from MH i2c: E2 0B 00 71 88 00 5F 46 83 51 61 76 9E EF 90 00 52 [19:38:29]RAPDU: 5F 46 83 51 61 76 9E EF 90 00 [19:38:29]wFMCommunicate OK [19:38:29]SAM_PROTO_SignData done [19:38:29]FM_MakeSignedData done [19:38:29]CreateOFDProtocolMessage [19:38:29]wFMCommunicate request_size=4 [19:38:29]MH_SAM_APDU [19:38:29]CAPDU: 80 11 00 00 [19:38:29]Write to MH i2c: E2 08 00 72 88 80 11 00 00 00 00 00 00 74 [19:38:29]Write i2c OK [19:38:29]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 72 88 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 C2 [19:38:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [19:38:29]wFMCommunicate OK [19:38:29]CreateOFDProtocolMessage done [19:38:29]OFDSenderStorePacket 187899 [19:38:29]StoreOFDPacket docnum=187899 [19:38:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 84 CE 07 01 16 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 33 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 6B 01 00 00 F4 03 04 00 B9 AD 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 FB DD 02 00 35 04 06 00 78 2D C2 70 0D C4 5F 46 83 51 61 76 9E EF [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/00187899 [19:38:29]NVStorageSaveData ofd_packets/00187899 [19:38:29]File name is /storage/ofd_packets/00187899 [19:38:29]Write 301 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 73 88 FB [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 73 88 00 00 00 00 00 FF 0F 10 [19:38:29]RasterBufferAndPrint [19:38:29]line Счет N : (1)209951 [19:38:29]line ИНН: 02508201610067 [19:38:29]line Контрольно-Кассовый Чек [19:38:29]line ПРОДАЖА [19:38:29]line ТРК (МРК, ГНК) : 32 [19:38:29]line Товар: 2710124130 [19:38:29]line Аи-92-К-3 [19:38:29]line 17.940 * 66.90 [19:38:29]line = 1200.19 [19:38:29]line НДС 12% НСП 1% [19:38:29]line > о реализуемом товаре [19:38:29]line ОКРУГЛЕНИЕ: -0.19 [19:38:29]line ИТОГО: 1200.00 [19:38:29]line Внесено: 1200.00 [19:38:29]line СДАЧА: 0.00 [19:38:29]line НСП 1% : 10.62 [19:38:29]line НДС 12% : 127.45 [19:38:29]line Наличными: 1200.00 [19:38:29]line Безнал.: 0.00 [19:38:29]line Место: АЗС № 86 "Партнер Нефть" [19:38:29]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [19:38:29]line СНО: Общий режим [19:38:29]line Чек 363 21.10.2024 19:38 [19:38:29]line Смена: 460 ФФД: 1.0 [19:38:29]line ЗНМ: 0300000155 [19:38:29]line РНМ: 0000000000100030 [19:38:29]line Версия ККМ: 001 [19:38:29]line ФМ: 0000000000965340 [19:38:29]line ФД: 187899 [19:38:29]line ФПД: 132137930984900 [19:38:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T193833&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187899&fm=132137930984900&tin=02508201610067®Number=0000000000100030&sum=120000 [19:38:29]OFD Sender: Processing packet 187899 [packets to send 1062, broken 1061] [19:38:29]ProducePacketName [19:38:29]name=ofd_packets/00187899 [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=10 [19:38:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 84 CE 07 01 16 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 33 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 6B 01 00 00 F4 03 04 00 B9 AD 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 FB DD 02 00 35 04 06 00 78 2D C2 70 0D C4 5F 46 83 51 61 76 9E EF [19:38:30]Write to MH i2c: 01 00 00 9E 88 26 [19:38:30]Write i2c OK [19:38:30]MH_I2C_Read... [19:38:30]Read from MH i2c: 01 [19:38:30]MH_I2C_Read... [19:38:30]Read from MH i2c: 01 07 00 [19:38:30]MH_I2C_Read... [19:38:30]Read from MH i2c: 01 07 00 9E 88 00 00 00 00 00 6B 0C A4 [19:38:30]RasterBufferAndPrint [19:38:30]line [19:38:30]line [19:38:30]line [19:38:30]line [19:38:30]line [19:38:30]written 0, free lines is 3182 [19:38:30]MH_Cut [19:38:30]Write to MH i2c: D1 01 00 A5 88 01 FF [19:38:30]Write i2c OK [19:38:30]MH_I2C_Read... [19:38:30]Read from MH i2c: D1 [19:38:30]MH_I2C_Read... [19:38:30]Read from MH i2c: D1 01 00 [19:38:30]MH_I2C_Read... [19:38:30]Read from MH i2c: D1 01 00 A5 88 00 FE [19:38:30]Write to MH i2c: 01 00 00 A6 88 2E [19:38:30]Write i2c OK [19:38:30]MH_I2C_Read... [19:38:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 70 4D 47 00 DA 9B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 FB DD 02 00 F4 03 04 00 A8 57 16 67 B6 04 01 00 00 AA CE 3C 91 AA 3B 00 82 [19:38:30]CommunicateWithHost err = 0 [19:38:30]CheckOFDResponse [19:38:30]1017 (14) - 77093643461234 [19:38:30]1041 (16) - 0000000000965340 [19:38:30]1040 (4) - 187899 [19:38:30]1012 (4) - 21.10.2024 13:31 [19:38:30]1206 (1) - 0 [19:38:30]OFD Sender: Remove packet 187899 [19:38:30]ProducePacketName [19:38:30]name=ofd_packets/00187899 [19:38:30]NVStorageDeleteData [19:38:30]OFD Sender: No OFD packet to send [19:38:31]*** Cut start [19:38:31]*** Partial cut [19:38:31]*** CUTSNS_PIN = 1 [19:38:31]*** CUTSNS_PIN = 0 [19:38:31]*** 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 A6 88 00 00 00 00 00 FF 0F 43 [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 A7 88 80 11 00 00 00 00 00 00 A9 [19:38:31]Write i2c OK [19:38:31]MH_I2C_Read... [19:38:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:38:32]Read from MH i2c: E2 [19:38:32]MH_I2C_Read... [19:38:32]Read from MH i2c: E2 17 00 [19:38:32]MH_I2C_Read... [19:38:32]Read from MH i2c: E2 17 00 A7 88 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 F7 [19:38:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [19:38:32]wFMCommunicate OK [19:38:32]requested_item fd.num is exist - process it [19:38:32]SAM_PROTO_GetFieldsCounters [19:38:32]wFMCommunicate request_size=4 [19:38:32]MH_SAM_APDU [19:38:32]CAPDU: 80 13 00 00 [19:38:32]Write to MH i2c: E2 08 00 A8 88 80 13 00 00 00 00 00 00 AC [19:38:32]Write i2c OK [19:38:32]MH_I2C_Read... [19:38:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:38:32]Read from MH i2c: E2 [19:38:32]MH_I2C_Read... [19:38:32]Read from MH i2c: E2 62 00 [19:38:32]MH_I2C_Read... [19:38:32]Read from MH i2c: E2 62 00 A8 88 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 FB DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 6B 01 00 00 5E 04 04 00 6B 01 00 00 57 04 04 00 6C 01 00 00 19 04 04 00 00 00 00 00 90 00 9E [19:38:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 FB DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 6B 01 00 00 5E 04 04 00 6B 01 00 00 57 04 04 00 6C 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:38:32]wFMCommunicate OK [19:38:32]SAM_PROTO_GetFieldsCounters done [19:38:32]requested_item shift.num is exist - process it [19:38:32]requested_item shift.opened is exist - process it [19:38:32]req_shift_opened [19:38:32]FM_GetShiftState [19:38:32]SAM_PROTO_GetShiftState [19:38:32]wFMCommunicate request_size=4 [19:38:32]MH_SAM_APDU [19:38:32]CAPDU: 80 13 01 00 [19:38:32]Write to MH i2c: E2 08 00 A9 88 80 13 01 00 00 00 00 00 AE [19:38:32]Write i2c OK [19:38:32]MH_I2C_Read... [19:38:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:38:32]Read from MH i2c: E2 [19:38:32]MH_I2C_Read... [19:38:32]Read from MH i2c: E2 0E 00 [19:38:32]MH_I2C_Read... [19:38:32]Read from MH i2c: E2 0E 00 A9 88 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 0D [19:38:32]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [19:38:32]wFMCommunicate OK [19:38:32]SAM_PROTO_GetShiftState done [19:38:32]FM_GetShiftState done [19:38:32]req_shift_opened done [19:38:32]requested_item shift.open_date is exist - process it [19:38:32]req_shift_open_date [19:38:32]req_shift_open_date done [19:38:32]produce_requested_data done [19:38:32]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187899,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [19:38:32]process_action_free close_receipt [19:38:32]json_value_free [19:38:32]json_value_free done [19:38:32]process_json_proto returns [19:38:32]Send response to host [19:38:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187899,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [19:38:32]free response buf [19:38:32]execute_script done [19:38:32]execute_script returns [19:38:32]free content buf [19:38:32]Sock 8.Close socket [19:38:32]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:11]OFD Sender: No OFD packet to send [19:39:16]OFD Sender: No OFD packet to send [19:39:21]OFD Sender: No OFD packet to send [19:39:26]OFD Sender: No OFD packet to send [19:39:31]OFD Sender: No OFD packet to send [19:39:36]OFD Sender: No OFD packet to send [19:39:41]OFD Sender: No OFD packet to send [19:39:46]OFD Sender: No OFD packet to send [19:39:51]OFD Sender: No OFD packet to send [19:39:56]OFD Sender: No OFD packet to send [19:40:01]OFD Sender: No OFD packet to send [19:40:06]OFD Sender: No OFD packet to send [19:40:11]OFD Sender: No OFD packet to send [19:40:16]OFD Sender: No OFD packet to send [19:40:21]OFD Sender: No OFD packet to send [19:40:26]OFD Sender: No OFD packet to send [19:40:31]OFD Sender: No OFD packet to send [19:40:36]OFD Sender: No OFD packet to send [19:40:41]OFD Sender: No OFD packet to send [19:40:46]OFD Sender: No OFD packet to send [19:40:51]OFD Sender: No OFD packet to send [19:40:56]OFD Sender: No OFD packet to send [19:41:01]OFD Sender: No OFD packet to send [19:41:06]OFD Sender: No OFD packet to send [19:41:11]OFD Sender: No OFD packet to send [19:41:16]OFD Sender: No OFD packet to send [19:41:21]OFD Sender: No OFD packet to send [19:41:26]OFD Sender: No OFD packet to send [19:41:31]OFD Sender: No OFD packet to send [19:41:36]OFD Sender: No OFD packet to send [19:41:41]OFD Sender: No OFD packet to send [19:41:46]OFD Sender: No OFD packet to send [19:41:51]OFD Sender: No OFD packet to send [19:41:55]accept exits with 9 [19:41:55]New connection [19:41:55]New thread 3067157860 created [19:41:55]Thread 3067014500 joined [19:41:55]Waiting for new connection... [19:41:55] Sock 9.Parse request [19:41:55]Sock 9.Check first char [19:41:55]Sock 9.First char is OK [19:41:55]request: POST /json_proto HTTP/1.0 [19:41:55]Method: POST [19:41:55]URL: /json_proto [19:41:55]Method is POST - this is cgi request [19:41:55]url: /json_proto [19:41:55]query_string will be loaded in cgi processing [19:41:55]execute_cgi json_proto POST (null) [19:41:55]execute_cgi path=json_proto method=POST [19:41:55]POST find Content-Length [19:41:55]Host: 172.17.42.131:8080 [19:41:55]Content-Length: 769 [19:41:55]Content-Type: application/json [19:41:55] [19:41:55]POST finish read [19:41:55]Found Content-Length = 769 [19:41:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209952", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 29.650, "sum" : 2200.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" : 2200.03 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:41:55]execute_script... [19:41: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)209952", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 29.650, "sum" : 2200.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" : 2200.03 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:41:55]POST & json_proto [19:41:55]process_json_proto [19:41:55]json parsed OK: [19:41:55]protocol is kg_v1.0 [19:41:55]action value=close_receipt [19:41:55]process_action close_receipt [19:41:55]cmd_close_receipt [19:41:55]MH_GetDate [19:41:55]Write to MH i2c: F0 00 00 AA 88 21 [19:41:55]Write i2c OK [19:41:55]MH_I2C_Read... [19:41:55]Read from MH i2c: F0 [19:41:55]MH_I2C_Read... [19:41:55]Read from MH i2c: F0 09 00 [19:41:55]MH_I2C_Read... [19:41:55]Read from MH i2c: F0 09 00 AA 88 00 89 AE 16 67 A0 18 CA 66 C6 [19:41:55]GetLastDocTimeStamp 1729539513 [19:41:55]current date 1729539721 [19:41:55]FM_GetShiftState [19:41:55]SAM_PROTO_GetShiftState [19:41:55]wFMCommunicate request_size=4 [19:41:55]MH_SAM_APDU [19:41:55]CAPDU: 80 13 01 00 [19:41:55]Write to MH i2c: E2 08 00 AB 88 80 13 01 00 00 00 00 00 B0 [19:41:55]Write i2c OK [19:41:55]MH_I2C_Read... [19:41:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:41:55]Read from MH i2c: E2 [19:41:55]MH_I2C_Read... [19:41:55]Read from MH i2c: E2 0E 00 [19:41:55]MH_I2C_Read... [19:41:55]Read from MH i2c: E2 0E 00 AB 88 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 0F [19:41:55]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [19:41:55]wFMCommunicate OK [19:41:55]SAM_PROTO_GetShiftState done [19:41:55]FM_GetShiftState done [19:41:55]opened in 1729469754 [19:41:55]opened+sec_in_day 1729556154 [19:41:55]quantity*price = 220003 [19:41:55]sum+1 = 220004 [19:41:55]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2200.03 НСП 1% : 19.47 НДС 12% : 233.63 Наличными: 0.00 Безнал.: 2200.03 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 364 21.10.2024 19:42 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000965340 ФД: 187900 ФПД: 151864943716575 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T194201&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187900&fm=151864943716575&tin=02508201610067®Number=0000000000100030&sum=220003 [19:41:56]StoreToDocumentArchive [19:41:56]shift 460 fd 187900 [19:41:56]save to /storage/0460/doc_00187900 [19:41:56]save last doc name /storage/0460/doc_00187900 to /storage/kkm_last_doc_name [19:41:56]save OK [19:41:56]Clear old archive folders... [19:41:56]OFD Sender: No OFD packet to send [19:41:56]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:41:56]tlvbuf is 012938B0 [19:41:56]SAM_PROTO_ClearQueue [19:41:56]wFMCommunicate request_size=4 [19:41:56]MH_SAM_APDU [19:41:56]CAPDU: 80 09 00 00 [19:41:56]Write to MH i2c: E2 08 00 B8 88 80 09 00 00 00 00 00 00 B2 [19:41:56]Write i2c OK [19:41:56]MH_I2C_Read... [19:41:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:41:56]Read from MH i2c: E2 [19:41:56]MH_I2C_Read... [19:41:56]Read from MH i2c: E2 03 00 [19:41:56]MH_I2C_Read... [19:41:56]Read from MH i2c: E2 03 00 B8 88 00 90 00 B4 [19:41:56]RAPDU: 90 00 [19:41:56]wFMCommunicate OK [19:41:56]SAM_PROTO_ClearQueue done [19:41:56]KKMCreateOFDPacket [19:41:56]OFDProtocolAddRootSTLVToBuf [19:41:56]FM_MakeSignedData [19:41:56]FM_MakeSignedData [19:41:56]SAM_PROTO_SignData [19:41:56]wFMCommunicate request_size=4 [19:41:56]MH_SAM_APDU [19:41:56]CAPDU: 80 0D 01 02 [19:41:56]Write to MH i2c: E2 08 00 B9 88 80 0D 01 02 00 00 00 00 BA [19:41:56]Write i2c OK [19:41:56]MH_I2C_Read... [19:41:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:41:56]Read from MH i2c: E2 [19:41:56]MH_I2C_Read... [19:41:56]Read from MH i2c: E2 03 00 [19:41:56]MH_I2C_Read... [19:41:56]Read from MH i2c: E2 03 00 B9 88 00 90 00 B5 [19:41:56]RAPDU: 90 00 [19:41:56]wFMCommunicate OK [19:41:56]wFMCommunicate request_size=255 [19:41:56]MH_SAM_APDU [19:41: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 D2 73 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 63 5B 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 63 5B 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9B 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 43 5B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 63 5B 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 01 00 00 F4 03 04 00 89 AE 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 FC DD 02 00 35 04 06 00 8A [19:41:56]Write to MH i2c: E2 02 01 BA 88 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 D2 73 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 63 5B 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 63 5B 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9B 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 43 5B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 63 5B 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 01 00 00 F4 03 04 00 89 AE 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 FC DD 02 00 35 04 06 00 8A 00 00 DF [19:41:56]Write i2c OK [19:41:56]MH_I2C_Read... [19:41:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:41:57]Read from MH i2c: E2 [19:41:57]MH_I2C_Read... [19:41:57]Read from MH i2c: E2 03 00 [19:41:57]MH_I2C_Read... [19:41:57]Read from MH i2c: E2 03 00 BA 88 00 90 00 B6 [19:41:57]RAPDU: 90 00 [19:41:57]wFMCommunicate OK [19:41:57]wFMCommunicate request_size=10 [19:41:57]MH_SAM_APDU [19:41:57]CAPDU: 80 0D 02 02 05 1E D0 06 28 DF [19:41:57]Write to MH i2c: E2 0D 00 BB 88 80 0D 02 02 05 00 1E D0 06 28 DF 00 00 C2 [19:41:57]Write i2c OK [19:41:57]MH_I2C_Read... [19:41:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:41:57]Read from MH i2c: E2 [19:41:57]MH_I2C_Read... [19:41:57]Read from MH i2c: E2 03 00 [19:41:57]MH_I2C_Read... [19:41:57]Read from MH i2c: E2 03 00 BB 88 00 90 00 B7 [19:41:57]RAPDU: 90 00 [19:41:57]wFMCommunicate OK [19:41:57]wFMCommunicate request_size=4 [19:41:57]MH_SAM_APDU [19:41:57]CAPDU: 80 0D 03 02 [19:41:57]Write to MH i2c: E2 08 00 BC 88 80 0D 03 02 00 00 00 00 BF [19:41:57]Write i2c OK [19:41:57]MH_I2C_Read... [19:41:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:41:57]Read from MH i2c: E2 [19:41:57]MH_I2C_Read... [19:41:57]Read from MH i2c: E2 0B 00 [19:41:57]MH_I2C_Read... [19:41:57]Read from MH i2c: E2 0B 00 BC 88 00 B7 E7 0E 2C 76 A6 86 0B 90 00 45 [19:41:57]RAPDU: B7 E7 0E 2C 76 A6 86 0B 90 00 [19:41:57]wFMCommunicate OK [19:41:57]SAM_PROTO_SignData done [19:41:57]FM_MakeSignedData done [19:41:57]CreateOFDProtocolMessage [19:41:57]wFMCommunicate request_size=4 [19:41:57]MH_SAM_APDU [19:41:57]CAPDU: 80 11 00 00 [19:41:57]Write to MH i2c: E2 08 00 BD 88 80 11 00 00 00 00 00 00 BF [19:41:57]Write i2c OK [19:41:57]MH_I2C_Read... [19:41:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:41:57]Read from MH i2c: E2 [19:41:57]MH_I2C_Read... [19:41:57]Read from MH i2c: E2 17 00 [19:41:57]MH_I2C_Read... [19:41:57]Read from MH i2c: E2 17 00 BD 88 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 0D [19:41:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [19:41:57]wFMCommunicate OK [19:41:57]CreateOFDProtocolMessage done [19:41:57]OFDSenderStorePacket 187900 [19:41:57]StoreOFDPacket docnum=187900 [19:41:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 42 13 07 01 84 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 D2 73 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 63 5B 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 63 5B 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9B 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 43 5B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 63 5B 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 01 00 00 F4 03 04 00 89 AE 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 FC DD 02 00 35 04 06 00 8A 1E D0 06 28 DF B7 E7 0E 2C 76 A6 86 0B [19:41:57]CheckFolder [19:41:57]dirname=/storage/ofd_packets [19:41:57]CheckFolder done [19:41:57]ProducePacketName [19:41:57]name=ofd_packets/00187900 [19:41:57]NVStorageSaveData ofd_packets/00187900 [19:41:57]File name is /storage/ofd_packets/00187900 [19:41:57]Write 301 bytes [19:41:57]NVStorageSaveData done [19:41:57]OFDSenderStorePacket done [19:41:57]KKMCreateOFDPacket done [19:41:57]NVStorageSaveData kkm_last_timestamp [19:41:57]File name is /storage/kkm_last_timestamp [19:41:57]Write 4 bytes [19:41:57]NVStorageSaveData done [19:41:57]ExternCall_PrintAddStr [19:41:57]wPrintStart [19:41:57]Write to MH i2c: 01 00 00 BE 88 46 [19:41:57]Write i2c OK [19:41:57]MH_I2C_Read... [19:41:57]Read from MH i2c: 01 [19:41:57]MH_I2C_Read... [19:41:57]Read from MH i2c: 01 07 00 [19:41:57]MH_I2C_Read... [19:41:57]Read from MH i2c: 01 07 00 BE 88 00 00 00 00 00 FF 0F 5B [19:41:57]RasterBufferAndPrint [19:41:57]line Счет N : (1)209952 [19:41:57]line ИНН: 02508201610067 [19:41:57]line Контрольно-Кассовый Чек [19:41:57]line ПРОДАЖА [19:41:57]line ТРК (МРК, ГНК) : 13 [19:41:57]line Товар: 2710124500 [19:41:57]line Аи-95-К-3 [19:41:57]line 29.650 * 74.20 [19:41:57]line = 2200.03 [19:41:57]line НДС 12% НСП 1% [19:41:57]line > о реализуемом товаре [19:41:57]line ИТОГО: 2200.03 [19:41:57]line НСП 1% : 19.47 [19:41:57]line НДС 12% : 233.63 [19:41:57]line Наличными: 0.00 [19:41:57]line Безнал.: 2200.03 [19:41:57]line Место: АЗС № 86 "Партнер Нефть" [19:41:57]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [19:41:57]line СНО: Общий режим [19:41:57]line Чек 364 21.10.2024 19:42 [19:41:57]line Смена: 460 ФФД: 1.0 [19:41:57]line ЗНМ: 0300000155 [19:41:57]line РНМ: 0000000000100030 [19:41:57]line Версия ККМ: 001 [19:41:57]line Платежная система: Mbank [19:41:57]line ФМ: 0000000000965340 [19:41:57]line ФД: 187900 [19:41:57]line ФПД: 151864943716575 [19:41:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T194201&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187900&fm=151864943716575&tin=02508201610067®Number=0000000000100030&sum=220003 [19:41:57]written 0, free lines is 4095 [19:41:57]OFD Sender: Processing packet 187900 [packets to send 1062, broken 1061] [19:41:57]ProducePacketName [19:41:57]name=ofd_packets/00187900 [19:41:57]OFD Sender: To server: pG, [19:41:57]CommunicateWithHost lk.salyk.kg:30040 [19:41:57]ConnectInit lk.salyk.kg [19:41:57]Connected sock=10 [19:41:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 42 13 07 01 84 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 D2 73 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 63 5B 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 63 5B 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9B 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 43 5B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 63 5B 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 01 00 00 F4 03 04 00 89 AE 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 FC DD 02 00 35 04 06 00 8A 1E D0 06 28 DF B7 E7 0E 2C 76 A6 86 0B [19:41:57]Write to MH i2c: 01 00 00 E7 88 6F [19:41:57]Write i2c OK [19:41:57]MH_I2C_Read... [19:41:57]Read from MH i2c: 01 [19:41:57]MH_I2C_Read... [19:41:57]Read from MH i2c: 01 07 00 [19:41:57]MH_I2C_Read... [19:41:57]Read from MH i2c: 01 07 00 E7 88 00 00 00 00 00 96 0C 18 [19:41:57]RasterBufferAndPrint [19:41:57]line [19:41:57]line [19:41:57]line [19:41:57]line [19:41:57]line [19:41:57]written 0, free lines is 3226 [19:41:57]MH_Cut [19:41:57]Write to MH i2c: D1 01 00 EE 88 01 48 [19:41:57]Write i2c OK [19:41:57]MH_I2C_Read... [19:41:57]Read from MH i2c: D1 [19:41:57]MH_I2C_Read... [19:41:57]Read from MH i2c: D1 01 00 [19:41:57]MH_I2C_Read... [19:41:57]Read from MH i2c: D1 01 00 EE 88 00 47 [19:41:57]Write to MH i2c: 01 00 00 EF 88 77 [19:41:57]Write i2c OK [19:41:57]MH_I2C_Read... [19:41:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 62 93 47 00 C2 71 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 FC DD 02 00 F4 03 04 00 78 58 16 67 B6 04 01 00 00 67 07 51 57 0B AA EF 8D [19:41:57]CommunicateWithHost err = 0 [19:41:57]CheckOFDResponse [19:41:57]1017 (14) - 77093643461234 [19:41:57]1041 (16) - 0000000000965340 [19:41:57]1040 (4) - 187900 [19:41:57]1012 (4) - 21.10.2024 13:34 [19:41:57]1206 (1) - 0 [19:41:57]OFD Sender: Remove packet 187900 [19:41:57]ProducePacketName [19:41:57]name=ofd_packets/00187900 [19:41:57]NVStorageDeleteData [19:41:58]OFD Sender: No OFD packet to send [19:41:58]*** Cut start [19:41:58]*** Partial cut [19:41:58]*** CUTSNS_PIN = 1 [19:41:58]*** CUTSNS_PIN = 0 [19:41:59]*** Brake cut motor [19:41:59]Read from MH i2c: 01 [19:41:59]MH_I2C_Read... [19:41:59]*** Stop cut motor [19:41:59]*** Cut end [19:41:59]Read from MH i2c: 01 07 00 [19:41:59]MH_I2C_Read... [19:41:59]Read from MH i2c: 01 07 00 EF 88 00 00 00 00 00 FF 0F 8C [19:41:59]process_action close_receipt done [19:41:59]requested_data is exist [19:41:59]produce_requested_data [19:41:59]requested_item fm.sn is exist - process it [19:41:59]wFMCommunicate request_size=4 [19:41:59]MH_SAM_APDU [19:41:59]CAPDU: 80 11 00 00 [19:41:59]Write to MH i2c: E2 08 00 F0 88 80 11 00 00 00 00 00 00 F2 [19:41:59]Write i2c OK [19:41:59]MH_I2C_Read... [19:41:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:41:59]Read from MH i2c: E2 [19:41:59]MH_I2C_Read... [19:41:59]Read from MH i2c: E2 17 00 [19:41:59]MH_I2C_Read... [19:41:59]Read from MH i2c: E2 17 00 F0 88 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 40 [19:41:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [19:41:59]wFMCommunicate OK [19:41:59]requested_item fd.num is exist - process it [19:41:59]SAM_PROTO_GetFieldsCounters [19:41:59]wFMCommunicate request_size=4 [19:41:59]MH_SAM_APDU [19:41:59]CAPDU: 80 13 00 00 [19:41:59]Write to MH i2c: E2 08 00 F1 88 80 13 00 00 00 00 00 00 F5 [19:41:59]Write i2c OK [19:41:59]MH_I2C_Read... [19:41:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:41:59]Read from MH i2c: E2 [19:41:59]MH_I2C_Read... [19:41:59]Read from MH i2c: E2 62 00 [19:41:59]MH_I2C_Read... [19:41:59]Read from MH i2c: E2 62 00 F1 88 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 FC DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 6C 01 00 00 5E 04 04 00 6C 01 00 00 57 04 04 00 6D 01 00 00 19 04 04 00 00 00 00 00 90 00 EB [19:41:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 FC DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 6C 01 00 00 5E 04 04 00 6C 01 00 00 57 04 04 00 6D 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:41:59]wFMCommunicate OK [19:41:59]SAM_PROTO_GetFieldsCounters done [19:41:59]requested_item shift.num is exist - process it [19:41:59]requested_item shift.opened is exist - process it [19:41:59]req_shift_opened [19:41:59]FM_GetShiftState [19:41:59]SAM_PROTO_GetShiftState [19:41:59]wFMCommunicate request_size=4 [19:41:59]MH_SAM_APDU [19:41:59]CAPDU: 80 13 01 00 [19:41:59]Write to MH i2c: E2 08 00 F2 88 80 13 01 00 00 00 00 00 F7 [19:41:59]Write i2c OK [19:41:59]MH_I2C_Read... [19:41:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:41:59]Read from MH i2c: E2 [19:41:59]MH_I2C_Read... [19:41:59]Read from MH i2c: E2 0E 00 [19:41:59]MH_I2C_Read... [19:41:59]Read from MH i2c: E2 0E 00 F2 88 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 56 [19:41:59]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [19:41:59]wFMCommunicate OK [19:41:59]SAM_PROTO_GetShiftState done [19:41:59]FM_GetShiftState done [19:41:59]req_shift_opened done [19:41:59]requested_item shift.open_date is exist - process it [19:41:59]req_shift_open_date [19:41:59]req_shift_open_date done [19:41:59]produce_requested_data done [19:41:59]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187900,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [19:41:59]process_action_free close_receipt [19:41:59]json_value_free [19:41:59]json_value_free done [19:41:59]process_json_proto returns [19:41:59]Send response to host [19:41:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187900,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [19:41:59]free response buf [19:41:59]execute_script done [19:41:59]execute_script returns [19:41:59]free content buf [19:41:59]Sock 9.Close socket [19:41:59]Sock 9.Thread stoped [19:42:03]OFD Sender: No OFD packet to send [19:42:08]OFD Sender: No OFD packet to send [19:42:13]OFD Sender: No OFD packet to send [19:42:18]OFD Sender: No OFD packet to send [19:42:23]OFD Sender: No OFD packet to send [19:42:28]OFD Sender: No OFD packet to send [19:42:33]OFD Sender: No OFD packet to send [19:42:38]OFD Sender: No OFD packet to send [19:42:43]OFD Sender: No OFD packet to send [19:42:48]OFD Sender: No OFD packet to send [19:42:53]OFD Sender: No OFD packet to send [19:42:58]OFD Sender: No OFD packet to send [19:43:03]OFD Sender: No OFD packet to send [19:43:08]OFD Sender: No OFD packet to send [19:43:13]OFD Sender: No OFD packet to send [19:43:18]OFD Sender: No OFD packet to send [19:43:23]OFD Sender: No OFD packet to send [19:43:28]OFD Sender: No OFD packet to send [19:43:33]OFD Sender: No OFD packet to send [19:43:38]OFD Sender: No OFD packet to send [19:43:43]OFD Sender: No OFD packet to send [19:43:48]OFD Sender: No OFD packet to send [19:43:54]OFD Sender: No OFD packet to send [19:43:59]OFD Sender: No OFD packet to send [19:44:04]OFD Sender: No OFD packet to send [19:44:09]OFD Sender: No OFD packet to send [19:44:14]OFD Sender: No OFD packet to send [19:44:19]OFD Sender: No OFD packet to send [19:44:24]OFD Sender: No OFD packet to send [19:44:29]OFD Sender: No OFD packet to send [19:44:34]OFD Sender: No OFD packet to send [19:44:39]OFD Sender: No OFD packet to send [19:44:44]OFD Sender: No OFD packet to send [19:44:49]OFD Sender: No OFD packet to send [19:44:54]OFD Sender: No OFD packet to send [19:44:59]OFD Sender: No OFD packet to send [19:45:04]OFD Sender: No OFD packet to send [19:45:09]OFD Sender: No OFD packet to send [19:45:14]OFD Sender: No OFD packet to send [19:45:19]OFD Sender: No OFD packet to send [19:45:24]OFD Sender: No OFD packet to send [19:45:27]accept exits with 8 [19:45:27]New connection [19:45:27]New thread 3067014500 created [19:45:27]Thread 3067157860 joined [19:45:27]Waiting for new connection... [19:45:27] Sock 8.Parse request [19:45:27]Sock 8.Check first char [19:45:27]Sock 8.First char is OK [19:45:27]request: POST /json_proto HTTP/1.0 [19:45:27]Method: POST [19:45:27]URL: /json_proto [19:45:27]Method is POST - this is cgi request [19:45:27]url: /json_proto [19:45:27]query_string will be loaded in cgi processing [19:45:27]execute_cgi json_proto POST (null) [19:45:27]execute_cgi path=json_proto method=POST [19:45:27]POST find Content-Length [19:45:27]Host: 172.17.42.131:8080 [19:45:27]Content-Length: 677 [19:45:27]Content-Type: application/json [19:45:27] [19:45:27]POST finish read [19:45:27]Found Content-Length = 677 [19:45:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209953", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "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:45:27]execute_script... [19:45: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)209953", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "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:45:27]POST & json_proto [19:45:27]process_json_proto [19:45:27]json parsed OK: [19:45:27]protocol is kg_v1.0 [19:45:27]action value=close_receipt [19:45:27]process_action close_receipt [19:45:27]cmd_close_receipt [19:45:27]MH_GetDate [19:45:27]Write to MH i2c: F0 00 00 F3 88 6A [19:45:27]Write i2c OK [19:45:27]MH_I2C_Read... [19:45:27]Read from MH i2c: F0 [19:45:27]MH_I2C_Read... [19:45:27]Read from MH i2c: F0 09 00 [19:45:27]MH_I2C_Read... [19:45:27]Read from MH i2c: F0 09 00 F3 88 00 5C AF 16 67 A0 18 CA 66 E3 [19:45:27]GetLastDocTimeStamp 1729539721 [19:45:27]current date 1729539932 [19:45:27]FM_GetShiftState [19:45:27]SAM_PROTO_GetShiftState [19:45:27]wFMCommunicate request_size=4 [19:45:27]MH_SAM_APDU [19:45:27]CAPDU: 80 13 01 00 [19:45:27]Write to MH i2c: E2 08 00 F4 88 80 13 01 00 00 00 00 00 F9 [19:45:27]Write i2c OK [19:45:27]MH_I2C_Read... [19:45:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:45:27]Read from MH i2c: E2 [19:45:27]MH_I2C_Read... [19:45:27]Read from MH i2c: E2 0E 00 [19:45:27]MH_I2C_Read... [19:45:27]Read from MH i2c: E2 0E 00 F4 88 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 58 [19:45:27]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [19:45:27]wFMCommunicate OK [19:45:27]SAM_PROTO_GetShiftState done [19:45:27]FM_GetShiftState done [19:45:27]opened in 1729469754 [19:45:27]opened+sec_in_day 1729556154 [19:45:27]quantity*price = 50041 [19:45:27]sum+1 = 50042 [19:45:27]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 365 21.10.2024 19:45 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 187901 ФПД: 145644529487169 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T194532&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187901&fm=145644529487169&tin=02508201610067®Number=0000000000100030&sum=50000 [19:45:28]StoreToDocumentArchive [19:45:28]shift 460 fd 187901 [19:45:28]save to /storage/0460/doc_00187901 [19:45:28]save last doc name /storage/0460/doc_00187901 to /storage/kkm_last_doc_name [19:45:28]save OK [19:45:28]Clear old archive folders... [19:45:28]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:45:28]tlvbuf is 012D0920 [19:45:28]SAM_PROTO_ClearQueue [19:45:28]wFMCommunicate request_size=4 [19:45:28]MH_SAM_APDU [19:45:28]CAPDU: 80 09 00 00 [19:45:28]Write to MH i2c: E2 08 00 01 89 80 09 00 00 00 00 00 00 FC [19:45:28]Write i2c OK [19:45:28]MH_I2C_Read... [19:45:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:45:28]Read from MH i2c: E2 [19:45:28]MH_I2C_Read... [19:45:28]Read from MH i2c: E2 03 00 [19:45:28]MH_I2C_Read... [19:45:28]Read from MH i2c: E2 03 00 01 89 00 90 00 FE [19:45:28]RAPDU: 90 00 [19:45:28]wFMCommunicate OK [19:45:28]SAM_PROTO_ClearQueue done [19:45:28]KKMCreateOFDPacket [19:45:28]OFDProtocolAddRootSTLVToBuf [19:45:28]FM_MakeSignedData [19:45:28]FM_MakeSignedData [19:45:28]SAM_PROTO_SignData [19:45:28]wFMCommunicate request_size=4 [19:45:28]MH_SAM_APDU [19:45:28]CAPDU: 80 0D 01 02 [19:45:28]Write to MH i2c: E2 08 00 02 89 80 0D 01 02 00 00 00 00 04 [19:45:28]Write i2c OK [19:45:28]MH_I2C_Read... [19:45:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:45:28]Read from MH i2c: E2 [19:45:28]MH_I2C_Read... [19:45:28]Read from MH i2c: E2 03 00 [19:45:28]MH_I2C_Read... [19:45:28]Read from MH i2c: E2 03 00 02 89 00 90 00 FF [19:45:28]RAPDU: 90 00 [19:45:28]wFMCommunicate OK [19:45:28]wFMCommunicate request_size=255 [19:45:28]MH_SAM_APDU [19:45: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 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 01 00 00 F4 03 04 00 5C AF 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 FD DD 02 00 35 04 06 00 84 [19:45:28]Write to MH i2c: E2 02 01 03 89 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 01 00 00 F4 03 04 00 5C AF 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 FD DD 02 00 35 04 06 00 84 00 00 9A [19:45:28]Write i2c OK [19:45:28]MH_I2C_Read... [19:45:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:45:28]Read from MH i2c: E2 [19:45:28]MH_I2C_Read... [19:45:28]Read from MH i2c: E2 03 00 [19:45:28]MH_I2C_Read... [19:45:28]Read from MH i2c: E2 03 00 03 89 00 90 00 00 [19:45:28]RAPDU: 90 00 [19:45:28]wFMCommunicate OK [19:45:28]wFMCommunicate request_size=10 [19:45:28]MH_SAM_APDU [19:45:28]CAPDU: 80 0D 02 02 05 76 82 71 8D 41 [19:45:28]Write to MH i2c: E2 0D 00 04 89 80 0D 02 02 05 00 76 82 71 8D 41 00 00 48 [19:45:28]Write i2c OK [19:45:28]MH_I2C_Read... [19:45:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:45:28]Read from MH i2c: E2 [19:45:28]MH_I2C_Read... [19:45:28]Read from MH i2c: E2 03 00 [19:45:28]MH_I2C_Read... [19:45:28]Read from MH i2c: E2 03 00 04 89 00 90 00 01 [19:45:28]RAPDU: 90 00 [19:45:28]wFMCommunicate OK [19:45:28]wFMCommunicate request_size=4 [19:45:28]MH_SAM_APDU [19:45:28]CAPDU: 80 0D 03 02 [19:45:28]Write to MH i2c: E2 08 00 05 89 80 0D 03 02 00 00 00 00 09 [19:45:28]Write i2c OK [19:45:28]MH_I2C_Read... [19:45:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:45:28]Read from MH i2c: E2 [19:45:28]MH_I2C_Read... [19:45:28]Read from MH i2c: E2 0B 00 [19:45:28]MH_I2C_Read... [19:45:28]Read from MH i2c: E2 0B 00 05 89 00 E2 AD 87 0E 6E 78 78 8F 90 00 1B [19:45:28]RAPDU: E2 AD 87 0E 6E 78 78 8F 90 00 [19:45:28]wFMCommunicate OK [19:45:28]SAM_PROTO_SignData done [19:45:28]FM_MakeSignedData done [19:45:28]CreateOFDProtocolMessage [19:45:28]wFMCommunicate request_size=4 [19:45:28]MH_SAM_APDU [19:45:28]CAPDU: 80 11 00 00 [19:45:28]Write to MH i2c: E2 08 00 06 89 80 11 00 00 00 00 00 00 09 [19:45:28]Write i2c OK [19:45:28]MH_I2C_Read... [19:45:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:45:28]Read from MH i2c: E2 [19:45:28]MH_I2C_Read... [19:45:28]Read from MH i2c: E2 17 00 [19:45:28]MH_I2C_Read... [19:45:28]Read from MH i2c: E2 17 00 06 89 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 57 [19:45:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [19:45:28]wFMCommunicate OK [19:45:28]CreateOFDProtocolMessage done [19:45:28]OFDSenderStorePacket 187901 [19:45:28]StoreOFDPacket docnum=187901 [19:45:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 43 93 07 01 68 0F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 01 00 00 F4 03 04 00 5C AF 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 FD DD 02 00 35 04 06 00 84 76 82 71 8D 41 E2 AD 87 0E 6E 78 78 8F [19:45:28]CheckFolder [19:45:28]dirname=/storage/ofd_packets [19:45:28]CheckFolder done [19:45:28]ProducePacketName [19:45:28]name=ofd_packets/00187901 [19:45:28]NVStorageSaveData ofd_packets/00187901 [19:45:28]File name is /storage/ofd_packets/00187901 [19:45:28]Write 301 bytes [19:45:28]NVStorageSaveData done [19:45:28]OFDSenderStorePacket done [19:45:28]KKMCreateOFDPacket done [19:45:28]NVStorageSaveData kkm_last_timestamp [19:45:28]File name is /storage/kkm_last_timestamp [19:45:28]Write 4 bytes [19:45:28]NVStorageSaveData done [19:45:28]ExternCall_PrintAddStr [19:45:28]wPrintStart [19:45:28]Write to MH i2c: 01 00 00 07 89 90 [19:45:28]Write i2c OK [19:45:28]MH_I2C_Read... [19:45:28]Read from MH i2c: 01 [19:45:28]MH_I2C_Read... [19:45:28]Read from MH i2c: 01 07 00 [19:45:28]MH_I2C_Read... [19:45:28]Read from MH i2c: 01 07 00 07 89 00 00 00 00 00 FF 0F A5 [19:45:28]RasterBufferAndPrint [19:45:28]line Счет N : (1)209953 [19:45:28]line ИНН: 02508201610067 [19:45:28]line Контрольно-Кассовый Чек [19:45:28]line ПРОДАЖА [19:45:28]line ТРК (МРК, ГНК) : 12 [19:45:28]line Товар: 2710124130 [19:45:28]line Аи-92-К-3 [19:45:28]line 7.480 * 66.90 [19:45:28]line = 500.41 [19:45:28]line НДС 12% НСП 1% [19:45:28]line > о реализуемом товаре [19:45:28]line ОКРУГЛЕНИЕ: -0.41 [19:45:28]line ИТОГО: 500.00 [19:45:28]line Внесено: 500.00 [19:45:28]line СДАЧА: 0.00 [19:45:28]line НСП 1% : 4.43 [19:45:28]line НДС 12% : 53.14 [19:45:28]line Наличными: 500.00 [19:45:28]line Безнал.: 0.00 [19:45:28]line Место: АЗС № 86 "Партнер Нефть" [19:45:28]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [19:45:28]line СНО: Общий режим [19:45:28]line Чек 365 21.10.2024 19:45 [19:45:28]line Смена: 460 ФФД: 1.0 [19:45:28]line ЗНМ: 0300000155 [19:45:28]line РНМ: 0000000000100030 [19:45:28]line Версия ККМ: 001 [19:45:28]line ФМ: 0000000000965340 [19:45:28]line ФД: 187901 [19:45:28]line ФПД: 145644529487169 [19:45:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T194532&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187901&fm=145644529487169&tin=02508201610067®Number=0000000000100030&sum=50000 [19:45:28]written 0, free lines is 4095 [19:45:28]OFD Sender: Processing packet 187901 [packets to send 1062, broken 1061] [19:45:28]ProducePacketName [19:45:28]name=ofd_packets/00187901 [19:45:28]OFD Sender: To server: pG, [19:45:28]CommunicateWithHost lk.salyk.kg:30040 [19:45:28]ConnectInit lk.salyk.kg [19:45:29]Connected sock=10 [19:45:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 43 93 07 01 68 0F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 01 00 00 F4 03 04 00 5C AF 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 FD DD 02 00 35 04 06 00 84 76 82 71 8D 41 E2 AD 87 0E 6E 78 78 8F [19:45:29]Write to MH i2c: 01 00 00 32 89 BB [19:45:29]Write i2c OK [19:45:29]MH_I2C_Read... [19:45:29]Read from MH i2c: 01 [19:45:29]MH_I2C_Read... [19:45:29]Read from MH i2c: 01 07 00 [19:45:29]MH_I2C_Read... [19:45:29]Read from MH i2c: 01 07 00 32 89 00 00 00 00 00 6A 0C 38 [19:45:29]RasterBufferAndPrint [19:45:29]line [19:45:29]line [19:45:29]line [19:45:29]line [19:45:29]line [19:45:29]written 0, free lines is 3181 [19:45:29]MH_Cut [19:45:29]Write to MH i2c: D1 01 00 39 89 01 94 [19:45:29]Write i2c OK [19:45:29]MH_I2C_Read... [19:45:29]Read from MH i2c: D1 [19:45:29]MH_I2C_Read... [19:45:29]Read from MH i2c: D1 01 00 [19:45:29]MH_I2C_Read... [19:45:29]Read from MH i2c: D1 01 00 39 89 00 93 [19:45:29]Write to MH i2c: 01 00 00 3A 89 C3 [19:45:29]Write i2c OK [19:45:29]MH_I2C_Read... [19:45:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 5F 89 47 00 DC EB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 FD DD 02 00 F4 03 04 00 4B 59 16 67 B6 04 01 00 00 80 E3 81 B4 E9 66 4A 96 [19:45:29]CommunicateWithHost err = 0 [19:45:29]CheckOFDResponse [19:45:29]1017 (14) - 77093643461234 [19:45:29]1041 (16) - 0000000000965340 [19:45:29]1040 (4) - 187901 [19:45:29]1012 (4) - 21.10.2024 13:38 [19:45:29]1206 (1) - 0 [19:45:29]OFD Sender: Remove packet 187901 [19:45:29]ProducePacketName [19:45:29]name=ofd_packets/00187901 [19:45:29]NVStorageDeleteData [19:45:30]OFD Sender: No OFD packet to send [19:45:30]*** Cut start [19:45:30]*** Partial cut [19:45:30]*** CUTSNS_PIN = 1 [19:45:30]*** CUTSNS_PIN = 0 [19:45:30]*** Brake cut motor [19:45:31]Read from MH i2c: 01 [19:45:31]MH_I2C_Read... [19:45:31]*** Stop cut motor [19:45:31]*** Cut end [19:45:31]Read from MH i2c: 01 07 00 [19:45:31]MH_I2C_Read... [19:45:31]Read from MH i2c: 01 07 00 3A 89 00 00 00 00 00 FF 0F D8 [19:45:31]process_action close_receipt done [19:45:31]requested_data is exist [19:45:31]produce_requested_data [19:45:31]requested_item fm.sn is exist - process it [19:45:31]wFMCommunicate request_size=4 [19:45:31]MH_SAM_APDU [19:45:31]CAPDU: 80 11 00 00 [19:45:31]Write to MH i2c: E2 08 00 3B 89 80 11 00 00 00 00 00 00 3E [19:45:31]Write i2c OK [19:45:31]MH_I2C_Read... [19:45:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:45:31]Read from MH i2c: E2 [19:45:31]MH_I2C_Read... [19:45:31]Read from MH i2c: E2 17 00 [19:45:31]MH_I2C_Read... [19:45:31]Read from MH i2c: E2 17 00 3B 89 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 8C [19:45:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [19:45:31]wFMCommunicate OK [19:45:31]requested_item fd.num is exist - process it [19:45:31]SAM_PROTO_GetFieldsCounters [19:45:31]wFMCommunicate request_size=4 [19:45:31]MH_SAM_APDU [19:45:31]CAPDU: 80 13 00 00 [19:45:31]Write to MH i2c: E2 08 00 3C 89 80 13 00 00 00 00 00 00 41 [19:45:31]Write i2c OK [19:45:31]MH_I2C_Read... [19:45:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:45:31]Read from MH i2c: E2 [19:45:31]MH_I2C_Read... [19:45:31]Read from MH i2c: E2 62 00 [19:45:31]MH_I2C_Read... [19:45:31]Read from MH i2c: E2 62 00 3C 89 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 FD DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 6D 01 00 00 5E 04 04 00 6D 01 00 00 57 04 04 00 6E 01 00 00 19 04 04 00 00 00 00 00 90 00 3B [19:45:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 FD DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 6D 01 00 00 5E 04 04 00 6D 01 00 00 57 04 04 00 6E 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:45:31]wFMCommunicate OK [19:45:31]SAM_PROTO_GetFieldsCounters done [19:45:31]requested_item shift.num is exist - process it [19:45:31]requested_item shift.opened is exist - process it [19:45:31]req_shift_opened [19:45:31]FM_GetShiftState [19:45:31]SAM_PROTO_GetShiftState [19:45:31]wFMCommunicate request_size=4 [19:45:31]MH_SAM_APDU [19:45:31]CAPDU: 80 13 01 00 [19:45:31]Write to MH i2c: E2 08 00 3D 89 80 13 01 00 00 00 00 00 43 [19:45:31]Write i2c OK [19:45:31]MH_I2C_Read... [19:45:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:45:31]Read from MH i2c: E2 [19:45:31]MH_I2C_Read... [19:45:31]Read from MH i2c: E2 0E 00 [19:45:31]MH_I2C_Read... [19:45:31]Read from MH i2c: E2 0E 00 3D 89 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 A2 [19:45:31]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [19:45:31]wFMCommunicate OK [19:45:31]SAM_PROTO_GetShiftState done [19:45:31]FM_GetShiftState done [19:45:31]req_shift_opened done [19:45:31]requested_item shift.open_date is exist - process it [19:45:31]req_shift_open_date [19:45:31]req_shift_open_date done [19:45:31]produce_requested_data done [19:45:31]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187901,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [19:45:31]process_action_free close_receipt [19:45:31]json_value_free [19:45:31]json_value_free done [19:45:31]process_json_proto returns [19:45:31]Send response to host [19:45:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187901,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [19:45:31]free response buf [19:45:31]execute_script done [19:45:31]execute_script returns [19:45:31]free content buf [19:45:31]Sock 8.Close socket [19:45:31]Sock 8.Thread stoped [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:26]OFD Sender: No OFD packet to send [19:48:31]OFD Sender: No OFD packet to send [19:48:36]OFD Sender: No OFD packet to send [19:48:41]OFD Sender: No OFD packet to send [19:48:46]OFD Sender: No OFD packet to send [19:48:51]OFD Sender: No OFD packet to send [19:48:56]OFD Sender: No OFD packet to send [19:49:01]OFD Sender: No OFD packet to send [19:49:06]OFD Sender: No OFD packet to send [19:49:11]OFD Sender: No OFD packet to send [19:49:16]OFD Sender: No OFD packet to send [19:49:21]OFD Sender: No OFD packet to send [19:49:26]OFD Sender: No OFD packet to send [19:49:31]OFD Sender: No OFD packet to send [19:49:36]OFD Sender: No OFD packet to send [19:49:41]OFD Sender: No OFD packet to send [19:49:46]OFD Sender: No OFD packet to send [19:49:51]OFD Sender: No OFD packet to send [19:49:56]OFD Sender: No OFD packet to send [19:50:01]OFD Sender: No OFD packet to send [19:50:06]OFD Sender: No OFD packet to send [19:50:11]OFD Sender: No OFD packet to send [19:50:16]OFD Sender: No OFD packet to send [19:50:21]OFD Sender: No OFD packet to send [19:50:26]OFD Sender: No OFD packet to send [19:50:31]OFD Sender: No OFD packet to send [19:50:36]OFD Sender: No OFD packet to send [19:50:41]OFD Sender: No OFD packet to send [19:50:46]OFD Sender: No OFD packet to send [19:50:51]OFD Sender: No OFD packet to send [19:50:56]OFD Sender: No OFD packet to send [19:51:01]OFD Sender: No OFD packet to send [19:51:06]OFD Sender: No OFD packet to send [19:51:11]OFD Sender: No OFD packet to send [19:51:16]OFD Sender: No OFD packet to send [19:51:21]OFD Sender: No OFD packet to send [19:51:26]OFD Sender: No OFD packet to send [19:51:31]OFD Sender: No OFD packet to send [19:51:36]OFD Sender: No OFD packet to send [19:51:41]OFD Sender: No OFD packet to send [19:51:46]OFD Sender: No OFD packet to send [19:51:51]OFD Sender: No OFD packet to send [19:51:56]OFD Sender: No OFD packet to send [19:52:01]OFD Sender: No OFD packet to send [19:52:06]OFD Sender: No OFD packet to send [19:52:12]OFD Sender: No OFD packet to send [19:52:17]OFD Sender: No OFD packet to send [19:52:22]OFD Sender: No OFD packet to send [19:52:27]OFD Sender: No OFD packet to send [19:52:32]OFD Sender: No OFD packet to send [19:52:37]OFD Sender: No OFD packet to send [19:52:42]OFD Sender: No OFD packet to send [19:52:47]OFD Sender: No OFD packet to send [19:52:52]OFD Sender: No OFD packet to send [19:52:57]OFD Sender: No OFD packet to send [19:53:02]OFD Sender: No OFD packet to send [19:53:07]OFD Sender: No OFD packet to send [19:53:12]OFD Sender: No OFD packet to send [19:53:17]OFD Sender: No OFD packet to send [19:53:22]OFD Sender: No OFD packet to send [19:53:27]OFD Sender: No OFD packet to send [19:53:32]OFD Sender: No OFD packet to send [19:53:37]OFD Sender: No OFD packet to send [19:53:42]OFD Sender: No OFD packet to send [19:53:47]OFD Sender: No OFD packet to send [19:53:52]OFD Sender: No OFD packet to send [19:53:57]OFD Sender: No OFD packet to send [19:54:02]OFD Sender: No OFD packet to send [19:54:07]OFD Sender: No OFD packet to send [19:54:12]OFD Sender: No OFD packet to send [19:54:17]OFD Sender: No OFD packet to send [19:54:22]OFD Sender: No OFD packet to send [19:54:27]OFD Sender: No OFD packet to send [19:54:32]OFD Sender: No OFD packet to send [19:54:37]OFD Sender: No OFD packet to send [19:54:42]OFD Sender: No OFD packet to send [19:54:47]OFD Sender: No OFD packet to send [19:54:51]accept exits with 9 [19:54:51]New connection [19:54:51]New thread 3067157860 created [19:54:51]Thread 3067014500 joined [19:54:51]Waiting for new connection... [19:54:51] Sock 9.Parse request [19:54:51]Sock 9.Check first char [19:54:51]Sock 9.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.42.131:8080 [19:54:51]Content-Length: 688 [19:54:51]Content-Type: application/json [19:54:51] [19:54:51]POST finish read [19:54:51]Found Content-Length = 688 [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)209954", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 25.910, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [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)209954", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 25.910, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [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 3E 89 B6 [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 3E 89 00 90 B1 16 67 A0 18 CA 66 65 [19:54:51]GetLastDocTimeStamp 1729539932 [19:54:51]current date 1729540496 [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 3F 89 80 13 01 00 00 00 00 00 45 [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 3F 89 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 A4 [19:54:51]RAPDU: 09 00 01 3A 9D 15 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 1729469754 [19:54:51]opened+sec_in_day 1729556154 [19:54:51]quantity*price = 200025 [19:54:51]sum+1 = 200026 [19:54:51]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 366 21.10.2024 19:54 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 187902 ФПД: 54424981453390 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T195457&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187902&fm=54424981453390&tin=02508201610067®Number=0000000000100030&sum=200000 [19:54:52]StoreToDocumentArchive [19:54:52]shift 460 fd 187902 [19:54:52]save to /storage/0460/doc_00187902 [19:54:52]save last doc name /storage/0460/doc_00187902 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=257 [19:54:52]tlvbuf is 010A2F90 [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 4C 89 80 09 00 00 00 00 00 00 47 [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 4C 89 00 90 00 49 [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 4D 89 80 0D 01 02 00 00 00 00 4F [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 4D 89 00 90 00 4A [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 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 36 65 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 01 00 00 F4 03 04 00 91 B1 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 FE DD 02 [19:54:52]Write to MH i2c: E2 02 01 4E 89 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 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 36 65 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 01 00 00 F4 03 04 00 91 B1 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 FE DD 02 00 00 C8 [19:54:52]Write i2c OK [19:54:52]MH_I2C_Read... [19:54:52]OFD Sender: No OFD packet to send [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 4E 89 00 90 00 4B [19:54:52]RAPDU: 90 00 [19:54:52]wFMCommunicate OK [19:54:52]wFMCommunicate request_size=16 [19:54:52]MH_SAM_APDU [19:54:52]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 31 7F CD AF BA 4E [19:54:52]Write to MH i2c: E2 13 00 4F 89 80 0D 02 02 0B 00 00 35 04 06 00 31 7F CD AF BA 4E 00 00 DB [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 4F 89 00 90 00 4C [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 50 89 80 0D 03 02 00 00 00 00 54 [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 50 89 00 3E 9C 1C 37 6A 99 95 99 90 00 B3 [19:54:53]RAPDU: 3E 9C 1C 37 6A 99 95 99 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 51 89 80 11 00 00 00 00 00 00 54 [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 51 89 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 A2 [19:54:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [19:54:53]wFMCommunicate OK [19:54:53]CreateOFDProtocolMessage done [19:54:53]OFDSenderStorePacket 187902 [19:54:53]StoreOFDPacket docnum=187902 [19:54:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 CA BD 0D 01 79 26 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 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 36 65 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 01 00 00 F4 03 04 00 91 B1 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 FE DD 02 00 35 04 06 00 31 7F CD AF BA 4E 3E 9C 1C 37 6A 99 95 99 [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/00187902 [19:54:53]NVStorageSaveData ofd_packets/00187902 [19:54:53]File name is /storage/ofd_packets/00187902 [19:54:53]Write 307 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 52 89 DB [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 52 89 00 00 00 00 00 FF 0F F0 [19:54:53]RasterBufferAndPrint [19:54:53]line Счет N : (1)209954 [19:54:53]line ИНН: 02508201610067 [19:54:53]line Контрольно-Кассовый Чек [19:54:53]line ПРОДАЖА [19:54:53]line ТРК (МРК, ГНК) : 41 [19:54:53]line Товар: 2710194210 [19:54:53]line D-ENERGY ДТ-К-5 [19:54:53]line 25.910 * 77.20 [19:54:53]line = 2000.25 [19:54:53]line НДС 12% НСП 1% [19:54:53]line > о реализуемом товаре [19:54:53]line ОКРУГЛЕНИЕ: -0.25 [19:54:53]line ИТОГО: 2000.00 [19:54:53]line Внесено: 2000.00 [19:54:53]line СДАЧА: 0.00 [19:54:53]line НСП 1% : 17.70 [19:54:53]line НДС 12% : 212.42 [19:54:53]line Наличными: 2000.00 [19:54:53]line Безнал.: 0.00 [19:54:53]line Место: АЗС № 86 "Партнер Нефть" [19:54:53]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [19:54:53]line СНО: Общий режим [19:54:53]line Чек 366 21.10.2024 19:54 [19:54:53]line Смена: 460 ФФД: 1.0 [19:54:53]line ЗНМ: 0300000155 [19:54:53]line РНМ: 0000000000100030 [19:54:53]line Версия ККМ: 001 [19:54:53]line ФМ: 0000000000965340 [19:54:53]line ФД: 187902 [19:54:53]line ФПД: 54424981453390 [19:54:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T195457&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187902&fm=54424981453390&tin=02508201610067®Number=0000000000100030&sum=200000 [19:54:53]OFD Sender: Processing packet 187902 [packets to send 1062, broken 1061] [19:54:53]ProducePacketName [19:54:53]name=ofd_packets/00187902 [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]written 0, free lines is 4095 [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 39 36 35 33 34 30 15 01 00 00 CA BD 0D 01 79 26 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 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 36 65 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 01 00 00 F4 03 04 00 91 B1 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 FE DD 02 00 35 04 06 00 31 7F CD AF BA 4E 3E 9C 1C 37 6A 99 95 99 [19:54:53]Write to MH i2c: 01 00 00 7D 89 06 [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 7D 89 00 00 00 00 00 67 0C 80 [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 3179 [19:54:53]MH_Cut [19:54:53]Write to MH i2c: D1 01 00 84 89 01 DF [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 84 89 00 DE [19:54:53]Write to MH i2c: 01 00 00 85 89 0E [19:54:53]Write i2c OK [19:54:53]MH_I2C_Read... [19:54:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 44 6B 47 00 CE EE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 FE DD 02 00 F4 03 04 00 80 5B 16 67 B6 04 01 00 00 71 71 AD 6F 2B 57 67 C4 [19:54:54]CommunicateWithHost err = 0 [19:54:54]CheckOFDResponse [19:54:54]1017 (14) - 77093643461234 [19:54:54]1041 (16) - 0000000000965340 [19:54:54]1040 (4) - 187902 [19:54:54]1012 (4) - 21.10.2024 13:47 [19:54:54]1206 (1) - 0 [19:54:54]OFD Sender: Remove packet 187902 [19:54:54]ProducePacketName [19:54:54]name=ofd_packets/00187902 [19:54:54]NVStorageDeleteData [19:54:54]OFD Sender: No OFD packet to send [19:54:55]*** Cut start [19:54:55]*** Partial cut [19:54:55]*** CUTSNS_PIN = 1 [19:54:55]*** CUTSNS_PIN = 0 [19:54:55]*** 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 85 89 00 00 00 00 00 FF 0F 23 [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 86 89 80 11 00 00 00 00 00 00 89 [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 86 89 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 D7 [19:54:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 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 87 89 80 13 00 00 00 00 00 00 8C [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 87 89 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 FE DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 6E 01 00 00 5E 04 04 00 6E 01 00 00 57 04 04 00 6F 01 00 00 19 04 04 00 00 00 00 00 90 00 8A [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 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 FE DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 6E 01 00 00 5E 04 04 00 6E 01 00 00 57 04 04 00 6F 01 00 00 19 04 04 00 00 00 00 00 90 00 [19: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 88 89 80 13 01 00 00 00 00 00 8E [19:54:55]Write i2c OK [19:54:55]MH_I2C_Read... [19:54:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:54:56]Read from MH i2c: E2 [19:54:56]MH_I2C_Read... [19:54:56]Read from MH i2c: E2 0E 00 [19:54:56]MH_I2C_Read... [19:54:56]Read from MH i2c: E2 0E 00 88 89 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 ED [19:54:56]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [19:54:56]wFMCommunicate OK [19:54:56]SAM_PROTO_GetShiftState done [19:54:56]FM_GetShiftState done [19:54:56]req_shift_opened done [19:54:56]requested_item shift.open_date is exist - process it [19:54:56]req_shift_open_date [19:54:56]req_shift_open_date done [19:54:56]produce_requested_data done [19:54:56]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187902,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [19:54:56]process_action_free close_receipt [19:54:56]json_value_free [19:54:56]json_value_free done [19:54:56]process_json_proto returns [19:54:56]Send response to host [19:54:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187902,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [19:54:56]free response buf [19:54:56]execute_script done [19:54:56]execute_script returns [19:54:56]free content buf [19:54:56]Sock 9.Close socket [19:54:56]Sock 9.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:30]accept exits with 8 [19:55:30]New connection [19:55:30]New thread 3067014500 created [19:55:30]Thread 3067157860 joined [19:55:30]Waiting for new connection... [19:55:30] Sock 8.Parse request [19:55:30]Sock 8.Check first char [19:55:30]Sock 8.First char is OK [19:55:30]request: POST /json_proto HTTP/1.0 [19:55:30]Method: POST [19:55:30]URL: /json_proto [19:55:30]Method is POST - this is cgi request [19:55:30]url: /json_proto [19:55:30]query_string will be loaded in cgi processing [19:55:30]execute_cgi json_proto POST (null) [19:55:30]execute_cgi path=json_proto method=POST [19:55:30]POST find Content-Length [19:55:30]Host: 172.17.42.131:8080 [19:55:30]Content-Length: 677 [19:55:30]Content-Type: application/json [19:55:30] [19:55:30]POST finish read [19:55:30]Found Content-Length = 677 [19:55:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209955", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "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" ] } } [19:55:30]execute_script... [19: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)209955", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "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" ] } } [19:55:30]POST & json_proto [19:55:30]process_json_proto [19:55:30]json parsed OK: [19:55:30]protocol is kg_v1.0 [19:55:30]action value=close_receipt [19:55:30]process_action close_receipt [19:55:30]cmd_close_receipt [19:55:30]MH_GetDate [19:55:30]Write to MH i2c: F0 00 00 89 89 01 [19:55:30]Write i2c OK [19:55:30]MH_I2C_Read... [19:55:30]Read from MH i2c: F0 [19:55:30]MH_I2C_Read... [19:55:30]Read from MH i2c: F0 09 00 [19:55:30]MH_I2C_Read... [19:55:30]Read from MH i2c: F0 09 00 89 89 00 B8 B1 16 67 A0 18 CA 66 D8 [19:55:30]GetLastDocTimeStamp 1729540497 [19:55:30]current date 1729540536 [19:55:30]FM_GetShiftState [19:55:30]SAM_PROTO_GetShiftState [19:55:30]wFMCommunicate request_size=4 [19:55:30]MH_SAM_APDU [19:55:30]CAPDU: 80 13 01 00 [19:55:30]Write to MH i2c: E2 08 00 8A 89 80 13 01 00 00 00 00 00 90 [19:55:30]Write i2c OK [19:55:30]MH_I2C_Read... [19:55:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:55:30]Read from MH i2c: E2 [19:55:30]MH_I2C_Read... [19:55:30]Read from MH i2c: E2 0E 00 [19:55:30]MH_I2C_Read... [19:55:30]Read from MH i2c: E2 0E 00 8A 89 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 EF [19:55:30]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [19:55:30]wFMCommunicate OK [19:55:30]SAM_PROTO_GetShiftState done [19:55:30]FM_GetShiftState done [19:55:30]opened in 1729469754 [19:55:30]opened+sec_in_day 1729556154 [19:55:30]quantity*price = 60009 [19:55:30]sum+1 = 60010 [19:55:30]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 367 21.10.2024 19:55 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 187903 ФПД: 233781148700968 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T195536&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187903&fm=233781148700968&tin=02508201610067®Number=0000000000100030&sum=60000 [19:55:32]StoreToDocumentArchive [19:55:32]shift 460 fd 187903 [19:55:32]save to /storage/0460/doc_00187903 [19:55:32]save last doc name /storage/0460/doc_00187903 to /storage/kkm_last_doc_name [19:55:32]save OK [19:55:32]Clear old archive folders... [19:55:32]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:55:32]tlvbuf is 0130A010 [19:55:32]SAM_PROTO_ClearQueue [19:55:32]wFMCommunicate request_size=4 [19:55:32]MH_SAM_APDU [19:55:32]CAPDU: 80 09 00 00 [19:55:32]Write to MH i2c: E2 08 00 97 89 80 09 00 00 00 00 00 00 92 [19:55:32]Write i2c OK [19:55:32]MH_I2C_Read... [19:55:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:55:32]Read from MH i2c: E2 [19:55:32]MH_I2C_Read... [19:55:32]Read from MH i2c: E2 03 00 [19:55:32]MH_I2C_Read... [19:55:32]Read from MH i2c: E2 03 00 97 89 00 90 00 94 [19:55:32]RAPDU: 90 00 [19:55:32]wFMCommunicate OK [19:55:32]SAM_PROTO_ClearQueue done [19:55:32]KKMCreateOFDPacket [19:55:32]OFDProtocolAddRootSTLVToBuf [19:55:32]FM_MakeSignedData [19:55:32]FM_MakeSignedData [19:55:32]SAM_PROTO_SignData [19:55:32]wFMCommunicate request_size=4 [19:55:32]MH_SAM_APDU [19:55:32]CAPDU: 80 0D 01 02 [19:55:32]Write to MH i2c: E2 08 00 98 89 80 0D 01 02 00 00 00 00 9A [19:55:32]Write i2c OK [19:55:32]MH_I2C_Read... [19:55:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:55:32]Read from MH i2c: E2 [19:55:32]MH_I2C_Read... [19:55:32]Read from MH i2c: E2 03 00 [19:55:32]MH_I2C_Read... [19:55:32]Read from MH i2c: E2 03 00 98 89 00 90 00 95 [19:55:32]RAPDU: 90 00 [19:55:32]wFMCommunicate OK [19:55:32]wFMCommunicate request_size=255 [19:55:32]MH_SAM_APDU [19:55: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 33 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 6F 01 00 00 F4 03 04 00 B8 B1 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 FF DD 02 00 35 04 06 00 D4 [19:55:32]Write to MH i2c: E2 02 01 99 89 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 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 6F 01 00 00 F4 03 04 00 B8 B1 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 FF DD 02 00 35 04 06 00 D4 00 00 BF [19:55:32]Write i2c OK [19:55:32]MH_I2C_Read... [19:55:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:55:32]Read from MH i2c: E2 [19:55:32]MH_I2C_Read... [19:55:32]Read from MH i2c: E2 03 00 [19:55:32]MH_I2C_Read... [19:55:32]Read from MH i2c: E2 03 00 99 89 00 90 00 96 [19:55:32]RAPDU: 90 00 [19:55:32]wFMCommunicate OK [19:55:32]wFMCommunicate request_size=10 [19:55:32]MH_SAM_APDU [19:55:32]CAPDU: 80 0D 02 02 05 9F 6A 52 D1 28 [19:55:32]Write to MH i2c: E2 0D 00 9A 89 80 0D 02 02 05 00 9F 6A 52 D1 28 00 00 FB [19:55:32]Write i2c OK [19:55:32]MH_I2C_Read... [19:55:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:55:32]Read from MH i2c: E2 [19:55:32]MH_I2C_Read... [19:55:32]Read from MH i2c: E2 03 00 [19:55:32]MH_I2C_Read... [19:55:32]Read from MH i2c: E2 03 00 9A 89 00 90 00 97 [19:55:32]RAPDU: 90 00 [19:55:32]wFMCommunicate OK [19:55:32]wFMCommunicate request_size=4 [19:55:32]MH_SAM_APDU [19:55:32]CAPDU: 80 0D 03 02 [19:55:32]Write to MH i2c: E2 08 00 9B 89 80 0D 03 02 00 00 00 00 9F [19:55:32]Write i2c OK [19:55:32]MH_I2C_Read... [19:55:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:55:32]Read from MH i2c: E2 [19:55:32]MH_I2C_Read... [19:55:32]Read from MH i2c: E2 0B 00 [19:55:32]MH_I2C_Read... [19:55:32]Read from MH i2c: E2 0B 00 9B 89 00 D5 84 4F 9B 9E DF 18 80 90 00 F8 [19:55:32]RAPDU: D5 84 4F 9B 9E DF 18 80 90 00 [19:55:32]wFMCommunicate OK [19:55:32]SAM_PROTO_SignData done [19:55:32]FM_MakeSignedData done [19:55:32]CreateOFDProtocolMessage [19:55:32]wFMCommunicate request_size=4 [19:55:32]MH_SAM_APDU [19:55:32]CAPDU: 80 11 00 00 [19:55:32]Write to MH i2c: E2 08 00 9C 89 80 11 00 00 00 00 00 00 9F [19:55:32]Write i2c OK [19:55:32]MH_I2C_Read... [19:55:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:55:32]Read from MH i2c: E2 [19:55:32]MH_I2C_Read... [19:55:32]Read from MH i2c: E2 17 00 [19:55:32]MH_I2C_Read... [19:55:32]Read from MH i2c: E2 17 00 9C 89 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 ED [19:55:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [19:55:32]wFMCommunicate OK [19:55:32]CreateOFDProtocolMessage done [19:55:32]OFDSenderStorePacket 187903 [19:55:32]StoreOFDPacket docnum=187903 [19:55:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 87 BA 07 01 5E 43 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 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 6F 01 00 00 F4 03 04 00 B8 B1 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 FF DD 02 00 35 04 06 00 D4 9F 6A 52 D1 28 D5 84 4F 9B 9E DF 18 80 [19:55:32]CheckFolder [19:55:32]dirname=/storage/ofd_packets [19:55:32]CheckFolder done [19:55:32]ProducePacketName [19:55:32]name=ofd_packets/00187903 [19:55:32]NVStorageSaveData ofd_packets/00187903 [19:55:32]File name is /storage/ofd_packets/00187903 [19:55:32]Write 301 bytes [19:55:32]NVStorageSaveData done [19:55:32]OFDSenderStorePacket done [19:55:32]KKMCreateOFDPacket done [19:55:32]NVStorageSaveData kkm_last_timestamp [19:55:32]File name is /storage/kkm_last_timestamp [19:55:32]Write 4 bytes [19:55:32]NVStorageSaveData done [19:55:32]ExternCall_PrintAddStr [19:55:32]wPrintStart [19:55:32]Write to MH i2c: 01 00 00 9D 89 26 [19:55:32]Write i2c OK [19:55:32]MH_I2C_Read... [19:55:32]Read from MH i2c: 01 [19:55:32]MH_I2C_Read... [19:55:32]Read from MH i2c: 01 07 00 [19:55:32]MH_I2C_Read... [19:55:32]Read from MH i2c: 01 07 00 9D 89 00 00 00 00 00 FF 0F 3B [19:55:32]RasterBufferAndPrint [19:55:32]line Счет N : (1)209955 [19:55:32]line ИНН: 02508201610067 [19:55:32]line Контрольно-Кассовый Чек [19:55:32]line ПРОДАЖА [19:55:32]line ТРК (МРК, ГНК) : 32 [19:55:32]line Товар: 2710124130 [19:55:32]line Аи-92-К-3 [19:55:32]line 8.970 * 66.90 [19:55:32]line = 600.09 [19:55:32]line НДС 12% НСП 1% [19:55:32]line > о реализуемом товаре [19:55:32]line ОКРУГЛЕНИЕ: -0.09 [19:55:32]line ИТОГО: 600.00 [19:55:32]line Внесено: 600.00 [19:55:32]line СДАЧА: 0.00 [19:55:32]line НСП 1% : 5.31 [19:55:32]line НДС 12% : 63.73 [19:55:32]line Наличными: 600.00 [19:55:32]line Безнал.: 0.00 [19:55:32]line Место: АЗС № 86 "Партнер Нефть" [19:55:32]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [19:55:32]line СНО: Общий режим [19:55:32]line Чек 367 21.10.2024 19:55 [19:55:32]line Смена: 460 ФФД: 1.0 [19:55:32]line ЗНМ: 0300000155 [19:55:32]line РНМ: 0000000000100030 [19:55:32]line Версия ККМ: 001 [19:55:32]line ФМ: 0000000000965340 [19:55:32]line ФД: 187903 [19:55:32]line ФПД: 233781148700968 [19:55:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T195536&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187903&fm=233781148700968&tin=02508201610067®Number=0000000000100030&sum=60000 [19:55:32]written 0, free lines is 4095 [19:55:32]OFD Sender: Processing packet 187903 [packets to send 1062, broken 1061] [19:55:32]ProducePacketName [19:55:32]name=ofd_packets/00187903 [19:55:32]OFD Sender: To server: pG, [19:55:32]CommunicateWithHost lk.salyk.kg:30040 [19:55:32]ConnectInit lk.salyk.kg [19:55:33]Write to MH i2c: 01 00 00 C8 89 51 [19:55:33]Write i2c OK [19:55:33]MH_I2C_Read... [19:55:33]Read from MH i2c: 01 [19:55:33]MH_I2C_Read... [19:55:33]Read from MH i2c: 01 07 00 [19:55:33]MH_I2C_Read... [19:55:33]Read from MH i2c: 01 07 00 C8 89 00 00 00 00 00 64 0C C8 [19:55:33]RasterBufferAndPrint [19:55:33]line [19:55:33]line [19:55:33]line [19:55:33]line [19:55:33]line [19:55:33]written 0, free lines is 3175 [19:55:33]MH_Cut [19:55:33]Write to MH i2c: D1 01 00 CF 89 01 2A [19:55:33]Write i2c OK [19:55:33]MH_I2C_Read... [19:55:33]Read from MH i2c: D1 [19:55:33]MH_I2C_Read... [19:55:33]Read from MH i2c: D1 01 00 [19:55:33]MH_I2C_Read... [19:55:33]Read from MH i2c: D1 01 00 CF 89 00 29 [19:55:33]Write to MH i2c: 01 00 00 D0 89 59 [19:55:33]Write i2c OK [19:55:33]MH_I2C_Read... [19:55:33]Connected sock=9 [19:55:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 87 BA 07 01 5E 43 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 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 6F 01 00 00 F4 03 04 00 B8 B1 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 FF DD 02 00 35 04 06 00 D4 9F 6A 52 D1 28 D5 84 4F 9B 9E DF 18 80 [19:55:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 3E DD 47 00 BF 9E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 FF DD 02 00 F4 03 04 00 A7 5B 16 67 B6 04 01 00 00 61 5B E3 CD B7 79 1C 33 [19:55:33]CommunicateWithHost err = 0 [19:55:33]CheckOFDResponse [19:55:33]1017 (14) - 77093643461234 [19:55:33]1041 (16) - 0000000000965340 [19:55:33]1040 (4) - 187903 [19:55:33]1012 (4) - 21.10.2024 13:48 [19:55:33]1206 (1) - 0 [19:55:33]OFD Sender: Remove packet 187903 [19:55:33]ProducePacketName [19:55:33]name=ofd_packets/00187903 [19:55:33]NVStorageDeleteData [19:55:34]OFD Sender: No OFD packet to send [19:55:34]*** Cut start [19:55:34]*** Partial cut [19:55:34]*** CUTSNS_PIN = 1 [19:55:34]*** CUTSNS_PIN = 0 [19:55:34]*** Brake cut motor [19:55:34]Read from MH i2c: 01 [19:55:34]MH_I2C_Read... [19:55:34]*** Stop cut motor [19:55:34]*** Cut end [19:55:34]Read from MH i2c: 01 07 00 [19:55:34]MH_I2C_Read... [19:55:34]Read from MH i2c: 01 07 00 D0 89 00 00 00 00 00 FF 0F 6E [19:55:34]process_action close_receipt done [19:55:34]requested_data is exist [19:55:34]produce_requested_data [19:55:34]requested_item fm.sn is exist - process it [19:55:34]wFMCommunicate request_size=4 [19:55:34]MH_SAM_APDU [19:55:34]CAPDU: 80 11 00 00 [19:55:34]Write to MH i2c: E2 08 00 D1 89 80 11 00 00 00 00 00 00 D4 [19:55:34]Write i2c OK [19:55:34]MH_I2C_Read... [19:55:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:55:35]Read from MH i2c: E2 [19:55:35]MH_I2C_Read... [19:55:35]Read from MH i2c: E2 17 00 [19:55:35]MH_I2C_Read... [19:55:35]Read from MH i2c: E2 17 00 D1 89 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 22 [19:55:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [19:55:35]wFMCommunicate OK [19:55:35]requested_item fd.num is exist - process it [19:55:35]SAM_PROTO_GetFieldsCounters [19:55:35]wFMCommunicate request_size=4 [19:55:35]MH_SAM_APDU [19:55:35]CAPDU: 80 13 00 00 [19:55:35]Write to MH i2c: E2 08 00 D2 89 80 13 00 00 00 00 00 00 D7 [19:55:35]Write i2c OK [19:55:35]MH_I2C_Read... [19:55:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:55:35]Read from MH i2c: E2 [19:55:35]MH_I2C_Read... [19:55:35]Read from MH i2c: E2 62 00 [19:55:35]MH_I2C_Read... [19:55:35]Read from MH i2c: E2 62 00 D2 89 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 FF DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 6F 01 00 00 5E 04 04 00 6F 01 00 00 57 04 04 00 70 01 00 00 19 04 04 00 00 00 00 00 90 00 D9 [19:55:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 FF DD 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 6F 01 00 00 5E 04 04 00 6F 01 00 00 57 04 04 00 70 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:55:35]wFMCommunicate OK [19:55:35]SAM_PROTO_GetFieldsCounters done [19:55:35]requested_item shift.num is exist - process it [19:55:35]requested_item shift.opened is exist - process it [19:55:35]req_shift_opened [19:55:35]FM_GetShiftState [19:55:35]SAM_PROTO_GetShiftState [19:55:35]wFMCommunicate request_size=4 [19:55:35]MH_SAM_APDU [19:55:35]CAPDU: 80 13 01 00 [19:55:35]Write to MH i2c: E2 08 00 D3 89 80 13 01 00 00 00 00 00 D9 [19:55:35]Write i2c OK [19:55:35]MH_I2C_Read... [19:55:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:55:35]Read from MH i2c: E2 [19:55:35]MH_I2C_Read... [19:55:35]Read from MH i2c: E2 0E 00 [19:55:35]MH_I2C_Read... [19:55:35]Read from MH i2c: E2 0E 00 D3 89 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 38 [19:55:35]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [19:55:35]wFMCommunicate OK [19:55:35]SAM_PROTO_GetShiftState done [19:55:35]FM_GetShiftState done [19:55:35]req_shift_opened done [19:55:35]requested_item shift.open_date is exist - process it [19:55:35]req_shift_open_date [19:55:35]req_shift_open_date done [19:55:35]produce_requested_data done [19:55:35]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187903,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [19:55:35]process_action_free close_receipt [19:55:35]json_value_free [19:55:35]json_value_free done [19:55:35]process_json_proto returns [19:55:35]Send response to host [19:55:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187903,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [19:55:35]free response buf [19:55:35]execute_script done [19:55:35]execute_script returns [19:55:35]free content buf [19:55:35]Sock 8.Close socket [19:55:35]Sock 8.Thread stoped [19:55:39]OFD Sender: No OFD packet to send [19:55:44]OFD Sender: No OFD packet to send [19:55:49]OFD Sender: No OFD packet to send [19:55:54]OFD Sender: No OFD packet to send [19:55:59]OFD Sender: No OFD packet to send [19:56:04]OFD Sender: No OFD packet to send [19:56:09]OFD Sender: No OFD packet to send [19:56:14]OFD Sender: No OFD packet to send [19:56:19]OFD Sender: No OFD packet to send [19:56:24]OFD Sender: No OFD packet to send [19:56:29]OFD Sender: No OFD packet to send [19:56:34]OFD Sender: No OFD packet to send [19:56:39]OFD Sender: No OFD packet to send [19:56:44]OFD Sender: No OFD packet to send [19:56:49]OFD Sender: No OFD packet to send [19:56:54]OFD Sender: No OFD packet to send [19:56:59]OFD Sender: No OFD packet to send [19:57:04]OFD Sender: No OFD packet to send [19:57:09]OFD Sender: No OFD packet to send [19:57:14]OFD Sender: No OFD packet to send [19:57:19]OFD Sender: No OFD packet to send [19:57:24]OFD Sender: No OFD packet to send [19:57:29]OFD Sender: No OFD packet to send [19:57:34]OFD Sender: No OFD packet to send [19:57:39]OFD Sender: No OFD packet to send [19:57:44]OFD Sender: No OFD packet to send [19:57:49]OFD Sender: No OFD packet to send [19:57:54]OFD Sender: No OFD packet to send [19:57:59]OFD Sender: No OFD packet to send [19:58:04]OFD Sender: No OFD packet to send [19:58:09]OFD Sender: No OFD packet to send [19:58:14]OFD Sender: No OFD packet to send [19:58:19]OFD Sender: No OFD packet to send [19:58:24]OFD Sender: No OFD packet to send [19:58:29]OFD Sender: No OFD packet to send [19:58:34]OFD Sender: No OFD packet to send [19:58:39]OFD Sender: No OFD packet to send [19:58:44]OFD Sender: No OFD packet to send [19:58:49]OFD Sender: No OFD packet to send [19:58:54]OFD Sender: No OFD packet to send [19:58:59]OFD Sender: No OFD packet to send [19:59:05]OFD Sender: No OFD packet to send [19:59:10]OFD Sender: No OFD packet to send [19:59:15]OFD Sender: No OFD packet to send [19:59:20]OFD Sender: No OFD packet to send [19:59:25]OFD Sender: No OFD packet to send [19:59:30]OFD Sender: No OFD packet to send [19:59:35]OFD Sender: No OFD packet to send [19:59:40]OFD Sender: No OFD packet to send [19:59:45]OFD Sender: No OFD packet to send [19:59:50]OFD Sender: No OFD packet to send [19:59:55]OFD Sender: No OFD packet to send [20:00:00]OFD Sender: No OFD packet to send [20:00:05]OFD Sender: No OFD packet to send [20:00:10]OFD Sender: No OFD packet to send [20:00:15]OFD Sender: No OFD packet to send [20:00:20]OFD Sender: No OFD packet to send [20:00:25]OFD Sender: No OFD packet to send [20:00:30]OFD Sender: No OFD packet to send [20:00:35]OFD Sender: No OFD packet to send [20:00:40]OFD Sender: No OFD packet to send [20:00:45]OFD Sender: No OFD packet to send [20:00:50]OFD Sender: No OFD packet to send [20:00:55]OFD Sender: No OFD packet to send [20:01:00]OFD Sender: No OFD packet to send [20:01:05]OFD Sender: No OFD packet to send [20:01:10]OFD Sender: No OFD packet to send [20:01:15]OFD Sender: No OFD packet to send [20:01:20]OFD Sender: No OFD packet to send [20:01:25]OFD Sender: No OFD packet to send [20:01:30]OFD Sender: No OFD packet to send [20:01:35]OFD Sender: No OFD packet to send [20:01:40]OFD Sender: No OFD packet to send [20:01:45]OFD Sender: No OFD packet to send [20:01:50]OFD Sender: No OFD packet to send [20:01:55]OFD Sender: No OFD packet to send [20:02:00]OFD Sender: No OFD packet to send [20:02:05]OFD Sender: No OFD packet to send [20:02:10]OFD Sender: No OFD packet to send [20:02:15]OFD Sender: No OFD packet to send [20:02:20]OFD Sender: No OFD packet to send [20:02:25]OFD Sender: No OFD packet to send [20:02:30]OFD Sender: No OFD packet to send [20:02:35]OFD Sender: No OFD packet to send [20:02:40]OFD Sender: No OFD packet to send [20:02:45]OFD Sender: No OFD packet to send [20:02:51]OFD Sender: No OFD packet to send [20:02:56]OFD Sender: No OFD packet to send [20:03:01]OFD Sender: No OFD packet to send [20:03:06]OFD Sender: No OFD packet to send [20:03:11]OFD Sender: No OFD packet to send [20:03:16]OFD Sender: No OFD packet to send [20:03:21]OFD Sender: No OFD packet to send [20:03:26]OFD Sender: No OFD packet to send [20:03:31]OFD Sender: No OFD packet to send [20:03:36]OFD Sender: No OFD packet to send [20:03:41]OFD Sender: No OFD packet to send [20:03:46]OFD Sender: No OFD packet to send [20:03:51]OFD Sender: No OFD packet to send [20:03:56]OFD Sender: No OFD packet to send [20:04:01]OFD Sender: No OFD packet to send [20:04:06]OFD Sender: No OFD packet to send [20:04:11]OFD Sender: No OFD packet to send [20:04:16]OFD Sender: No OFD packet to send [20:04:21]OFD Sender: No OFD packet to send [20:04:26]OFD Sender: No OFD packet to send [20:04:31]OFD Sender: No OFD packet to send [20:04:36]OFD Sender: No OFD packet to send [20:04:41]OFD Sender: No OFD packet to send [20:04:46]OFD Sender: No OFD packet to send [20:04:51]OFD Sender: No OFD packet to send [20:04:56]OFD Sender: No OFD packet to send [20:05:01]OFD Sender: No OFD packet to send [20:05:06]OFD Sender: No OFD packet to send [20:05:11]OFD Sender: No OFD packet to send [20:05:13]accept exits with 10 [20:05:13]New connection [20:05:13]New thread 3067157860 created [20:05:13]Thread 3067014500 joined [20:05:13]Waiting for new connection... [20:05:13] Sock 10.Parse request [20:05:13]Sock 10.Check first char [20:05:13]Sock 10.First char is OK [20:05:13]request: POST /json_proto HTTP/1.0 [20:05:13]Method: POST [20:05:13]URL: /json_proto [20:05:13]Method is POST - this is cgi request [20:05:13]url: /json_proto [20:05:13]query_string will be loaded in cgi processing [20:05:13]execute_cgi json_proto POST (null) [20:05:13]execute_cgi path=json_proto method=POST [20:05:13]POST find Content-Length [20:05:13]Host: 172.17.42.131:8080 [20:05:13]Content-Length: 767 [20:05:13]Content-Type: application/json [20:05:13] [20:05:13]POST finish read [20:05:13]Found Content-Length = 767 [20:05:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209956", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 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: Mbank", "payments": [ { "type": 1, "sum" : 9000.74 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:05:13]execute_script... [20:05: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)209956", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 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: Mbank", "payments": [ { "type": 1, "sum" : 9000.74 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:05:13]POST & json_proto [20:05:13]process_json_proto [20:05:13]json parsed OK: [20:05:13]protocol is kg_v1.0 [20:05:13]action value=close_receipt [20:05:13]process_action close_receipt [20:05:13]cmd_close_receipt [20:05:13]MH_GetDate [20:05:13]Write to MH i2c: F0 00 00 D4 89 4C [20:05:13]Write i2c OK [20:05:13]MH_I2C_Read... [20:05:13]Read from MH i2c: F0 [20:05:13]MH_I2C_Read... [20:05:13]Read from MH i2c: F0 09 00 [20:05:13]MH_I2C_Read... [20:05:13]Read from MH i2c: F0 09 00 D4 89 00 FE B3 16 67 A0 18 CA 66 6B [20:05:13]GetLastDocTimeStamp 1729540536 [20:05:13]current date 1729541118 [20:05:13]FM_GetShiftState [20:05:13]SAM_PROTO_GetShiftState [20:05:13]wFMCommunicate request_size=4 [20:05:13]MH_SAM_APDU [20:05:13]CAPDU: 80 13 01 00 [20:05:13]Write to MH i2c: E2 08 00 D5 89 80 13 01 00 00 00 00 00 DB [20:05:13]Write i2c OK [20:05:13]MH_I2C_Read... [20:05:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:05:13]Read from MH i2c: E2 [20:05:13]MH_I2C_Read... [20:05:13]Read from MH i2c: E2 0E 00 [20:05:13]MH_I2C_Read... [20:05:13]Read from MH i2c: E2 0E 00 D5 89 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 3A [20:05:13]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [20:05:13]wFMCommunicate OK [20:05:13]SAM_PROTO_GetShiftState done [20:05:13]FM_GetShiftState done [20:05:13]opened in 1729469754 [20:05:13]opened+sec_in_day 1729556154 [20:05:13]quantity*price = 900074 [20:05:13]sum+1 = 900075 [20:05:13]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 9000.74 НСП 1% : 79.65 НДС 12% : 955.83 Наличными: 0.00 Безнал.: 9000.74 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 368 21.10.2024 20:05 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000965340 ФД: 187904 ФПД: 141796825460100 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T200519&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187904&fm=141796825460100&tin=02508201610067®Number=0000000000100030&sum=900074 [20:05:14]StoreToDocumentArchive [20:05:14]shift 460 fd 187904 [20:05:14]save to /storage/0460/doc_00187904 [20:05:14]save last doc name /storage/0460/doc_00187904 to /storage/kkm_last_doc_name [20:05:14]save OK [20:05:14]Clear old archive folders... [20:05:14]ProcessDocumentItem done err = 0, tmpTLVsize=248 [20:05:14]tlvbuf is 010A3340 [20:05:14]SAM_PROTO_ClearQueue [20:05:14]wFMCommunicate request_size=4 [20:05:14]MH_SAM_APDU [20:05:14]CAPDU: 80 09 00 00 [20:05:14]Write to MH i2c: E2 08 00 E2 89 80 09 00 00 00 00 00 00 DD [20:05:14]Write i2c OK [20:05:14]MH_I2C_Read... [20:05:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:05:14]Read from MH i2c: E2 [20:05:14]MH_I2C_Read... [20:05:14]Read from MH i2c: E2 03 00 [20:05:14]MH_I2C_Read... [20:05:14]Read from MH i2c: E2 03 00 E2 89 00 90 00 DF [20:05:14]RAPDU: 90 00 [20:05:14]wFMCommunicate OK [20:05:14]SAM_PROTO_ClearQueue done [20:05:14]KKMCreateOFDPacket [20:05:14]OFDProtocolAddRootSTLVToBuf [20:05:14]FM_MakeSignedData [20:05:14]FM_MakeSignedData [20:05:14]SAM_PROTO_SignData [20:05:14]wFMCommunicate request_size=4 [20:05:14]MH_SAM_APDU [20:05:14]CAPDU: 80 0D 01 02 [20:05:14]Write to MH i2c: E2 08 00 E3 89 80 0D 01 02 00 00 00 00 E5 [20:05:14]Write i2c OK [20:05:14]MH_I2C_Read... [20:05:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:05:14]Read from MH i2c: E2 [20:05:14]MH_I2C_Read... [20:05:14]Read from MH i2c: E2 03 00 [20:05:14]MH_I2C_Read... [20:05:14]Read from MH i2c: E2 03 00 E3 89 00 90 00 E0 [20:05:14]RAPDU: 90 00 [20:05:14]wFMCommunicate OK [20:05:14]wFMCommunicate request_size=255 [20:05:14]MH_SAM_APDU [20:05:14]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 70 01 00 00 F4 03 04 00 FF B3 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 00 DE 02 00 35 04 06 00 80 F6 A5 69 [20:05:14]Write to MH i2c: E2 02 01 E4 89 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 70 01 00 00 F4 03 04 00 FF B3 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 00 DE 02 00 35 04 06 00 80 F6 A5 69 00 00 37 [20:05:14]Write i2c OK [20:05:14]MH_I2C_Read... [20:05:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:05:14]Read from MH i2c: E2 [20:05:14]MH_I2C_Read... [20:05:14]Read from MH i2c: E2 03 00 [20:05:14]MH_I2C_Read... [20:05:14]Read from MH i2c: E2 03 00 E4 89 00 90 00 E1 [20:05:14]RAPDU: 90 00 [20:05:14]wFMCommunicate OK [20:05:14]wFMCommunicate request_size=7 [20:05:14]MH_SAM_APDU [20:05:14]CAPDU: 80 0D 02 02 02 6D 84 [20:05:14]Write to MH i2c: E2 0A 00 E5 89 80 0D 02 02 02 00 6D 84 00 00 DD [20:05:14]Write i2c OK [20:05:14]MH_I2C_Read... [20:05:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:05:14]Read from MH i2c: E2 [20:05:14]MH_I2C_Read... [20:05:14]Read from MH i2c: E2 03 00 [20:05:14]MH_I2C_Read... [20:05:14]Read from MH i2c: E2 03 00 E5 89 00 90 00 E2 [20:05:14]RAPDU: 90 00 [20:05:14]wFMCommunicate OK [20:05:14]wFMCommunicate request_size=4 [20:05:14]MH_SAM_APDU [20:05:14]CAPDU: 80 0D 03 02 [20:05:14]Write to MH i2c: E2 08 00 E6 89 80 0D 03 02 00 00 00 00 EA [20:05:14]Write i2c OK [20:05:14]MH_I2C_Read... [20:05:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:05:15]Read from MH i2c: E2 [20:05:15]MH_I2C_Read... [20:05:15]Read from MH i2c: E2 0B 00 [20:05:15]MH_I2C_Read... [20:05:15]Read from MH i2c: E2 0B 00 E6 89 00 7C 97 7D AA 9F 9D 2F D2 90 00 62 [20:05:15]RAPDU: 7C 97 7D AA 9F 9D 2F D2 90 00 [20:05:15]wFMCommunicate OK [20:05:15]SAM_PROTO_SignData done [20:05:15]FM_MakeSignedData done [20:05:15]CreateOFDProtocolMessage [20:05:15]wFMCommunicate request_size=4 [20:05:15]MH_SAM_APDU [20:05:15]CAPDU: 80 11 00 00 [20:05:15]Write to MH i2c: E2 08 00 E7 89 80 11 00 00 00 00 00 00 EA [20:05:15]Write i2c OK [20:05:15]MH_I2C_Read... [20:05:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:05:15]Read from MH i2c: E2 [20:05:15]MH_I2C_Read... [20:05:15]Read from MH i2c: E2 17 00 [20:05:15]MH_I2C_Read... [20:05:15]Read from MH i2c: E2 17 00 E7 89 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 38 [20:05:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [20:05:15]wFMCommunicate OK [20:05:15]CreateOFDProtocolMessage done [20:05:15]OFDSenderStorePacket 187904 [20:05:15]StoreOFDPacket docnum=187904 [20:05:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 CE 87 04 01 97 49 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 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 70 01 00 00 F4 03 04 00 FF B3 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 00 DE 02 00 35 04 06 00 80 F6 A5 69 6D 84 7C 97 7D AA 9F 9D 2F D2 [20:05:15]CheckFolder [20:05:15]dirname=/storage/ofd_packets [20:05:15]CheckFolder done [20:05:15]ProducePacketName [20:05:15]name=ofd_packets/00187904 [20:05:15]NVStorageSaveData ofd_packets/00187904 [20:05:15]File name is /storage/ofd_packets/00187904 [20:05:15]Write 298 bytes [20:05:15]NVStorageSaveData done [20:05:15]OFDSenderStorePacket done [20:05:15]KKMCreateOFDPacket done [20:05:15]NVStorageSaveData kkm_last_timestamp [20:05:15]File name is /storage/kkm_last_timestamp [20:05:15]Write 4 bytes [20:05:15]NVStorageSaveData done [20:05:15]ExternCall_PrintAddStr [20:05:15]wPrintStart [20:05:15]Write to MH i2c: 01 00 00 E8 89 71 [20:05:15]Write i2c OK [20:05:15]MH_I2C_Read... [20:05:15]Read from MH i2c: 01 [20:05:15]MH_I2C_Read... [20:05:15]Read from MH i2c: 01 07 00 [20:05:15]MH_I2C_Read... [20:05:15]Read from MH i2c: 01 07 00 E8 89 00 00 00 00 00 FF 0F 86 [20:05:15]RasterBufferAndPrint [20:05:15]line Счет N : (1)209956 [20:05:15]line ИНН: 02508201610067 [20:05:15]line Контрольно-Кассовый Чек [20:05:15]line ПРОДАЖА [20:05:15]line ТРК (МРК, ГНК) : 51 [20:05:15]line Товар: 2710194210 [20:05:15]line ДТ-К-5 [20:05:15]line 118.120 * 76.20 [20:05:15]line = 9000.74 [20:05:15]line НДС 12% НСП 1% [20:05:15]line > о реализуемом товаре [20:05:15]line ИТОГО: 9000.74 [20:05:15]line НСП 1% : 79.65 [20:05:15]line НДС 12% : 955.83 [20:05:15]line Наличными: 0.00 [20:05:15]line Безнал.: 9000.74 [20:05:15]line Место: АЗС № 86 "Партнер Нефть" [20:05:15]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [20:05:15]line СНО: Общий режим [20:05:15]line Чек 368 21.10.2024 20:05 [20:05:15]line Смена: 460 ФФД: 1.0 [20:05:15]line ЗНМ: 0300000155 [20:05:15]line РНМ: 0000000000100030 [20:05:15]line Версия ККМ: 001 [20:05:15]line Платежная система: Mbank [20:05:15]line ФМ: 0000000000965340 [20:05:15]line ФД: 187904 [20:05:15]line ФПД: 141796825460100 [20:05:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T200519&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187904&fm=141796825460100&tin=02508201610067®Number=0000000000100030&sum=900074 [20:05:15]written 0, free lines is 4095 [20:05:15]OFD Sender: Processing packet 187904 [packets to send 1062, broken 1061] [20:05:15]ProducePacketName [20:05:15]name=ofd_packets/00187904 [20:05:15]OFD Sender: To server: pG, [20:05:15]CommunicateWithHost lk.salyk.kg:30040 [20:05:15]ConnectInit lk.salyk.kg [20:05:15]Connected sock=9 [20:05:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 CE 87 04 01 97 49 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 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 70 01 00 00 F4 03 04 00 FF B3 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 00 DE 02 00 35 04 06 00 80 F6 A5 69 6D 84 7C 97 7D AA 9F 9D 2F D2 [20:05:15]Write to MH i2c: 01 00 00 11 8A 9B [20:05:15]Write i2c OK [20:05:15]MH_I2C_Read... [20:05:15]Read from MH i2c: 01 [20:05:15]MH_I2C_Read... [20:05:15]Read from MH i2c: 01 07 00 [20:05:15]MH_I2C_Read... [20:05:15]Read from MH i2c: 01 07 00 11 8A 00 00 00 00 00 90 0C 3E [20:05:15]RasterBufferAndPrint [20:05:15]line [20:05:15]line [20:05:15]line [20:05:15]line [20:05:15]line [20:05:15]written 0, free lines is 3220 [20:05:15]MH_Cut [20:05:15]Write to MH i2c: D1 01 00 18 8A 01 74 [20:05:15]Write i2c OK [20:05:15]MH_I2C_Read... [20:05:15]Read from MH i2c: D1 [20:05:15]MH_I2C_Read... [20:05:15]Read from MH i2c: D1 01 00 [20:05:15]MH_I2C_Read... [20:05:15]Read from MH i2c: D1 01 00 18 8A 00 73 [20:05:15]Write to MH i2c: 01 00 00 19 8A A3 [20:05:15]Write i2c OK [20:05:15]MH_I2C_Read... [20:05:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 04 F0 47 00 7E 06 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 00 DE 02 00 F4 03 04 00 ED 5D 16 67 B6 04 01 00 00 E3 A1 51 45 96 53 DD D9 [20:05:15]CommunicateWithHost err = 0 [20:05:15]CheckOFDResponse [20:05:15]1017 (14) - 77093643461234 [20:05:15]1041 (16) - 0000000000965340 [20:05:15]1040 (4) - 187904 [20:05:15]1012 (4) - 21.10.2024 13:58 [20:05:15]1206 (1) - 0 [20:05:15]OFD Sender: Remove packet 187904 [20:05:15]ProducePacketName [20:05:15]name=ofd_packets/00187904 [20:05:15]NVStorageDeleteData [20:05:16]OFD Sender: No OFD packet to send [20:05:16]*** Cut start [20:05:16]*** Partial cut [20:05:16]*** CUTSNS_PIN = 1 [20:05:16]*** CUTSNS_PIN = 0 [20:05:17]*** Brake cut motor [20:05:17]Read from MH i2c: 01 [20:05:17]MH_I2C_Read... [20:05:17]*** Stop cut motor [20:05:17]*** Cut end [20:05:17]Read from MH i2c: 01 07 00 [20:05:17]MH_I2C_Read... [20:05:17]Read from MH i2c: 01 07 00 19 8A 00 00 00 00 00 FF 0F B8 [20:05:17]process_action close_receipt done [20:05:17]requested_data is exist [20:05:17]produce_requested_data [20:05:17]requested_item fm.sn is exist - process it [20:05:17]wFMCommunicate request_size=4 [20:05:17]MH_SAM_APDU [20:05:17]CAPDU: 80 11 00 00 [20:05:17]Write to MH i2c: E2 08 00 1A 8A 80 11 00 00 00 00 00 00 1E [20:05:17]Write i2c OK [20:05:17]MH_I2C_Read... [20:05:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:05:17]Read from MH i2c: E2 [20:05:17]MH_I2C_Read... [20:05:17]Read from MH i2c: E2 17 00 [20:05:17]MH_I2C_Read... [20:05:17]Read from MH i2c: E2 17 00 1A 8A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 6C [20:05:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [20:05:17]wFMCommunicate OK [20:05:17]requested_item fd.num is exist - process it [20:05:17]SAM_PROTO_GetFieldsCounters [20:05:17]wFMCommunicate request_size=4 [20:05:17]MH_SAM_APDU [20:05:17]CAPDU: 80 13 00 00 [20:05:17]Write to MH i2c: E2 08 00 1B 8A 80 13 00 00 00 00 00 00 21 [20:05:17]Write i2c OK [20:05:17]MH_I2C_Read... [20:05:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:05:17]Read from MH i2c: E2 [20:05:17]MH_I2C_Read... [20:05:17]Read from MH i2c: E2 62 00 [20:05:17]MH_I2C_Read... [20:05:17]Read from MH i2c: E2 62 00 1B 8A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 00 DE 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 70 01 00 00 5E 04 04 00 70 01 00 00 57 04 04 00 71 01 00 00 19 04 04 00 00 00 00 00 90 00 28 [20:05:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 00 DE 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 70 01 00 00 5E 04 04 00 70 01 00 00 57 04 04 00 71 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:05:17]wFMCommunicate OK [20:05:17]SAM_PROTO_GetFieldsCounters done [20:05:17]requested_item shift.num is exist - process it [20:05:17]requested_item shift.opened is exist - process it [20:05:17]req_shift_opened [20:05:17]FM_GetShiftState [20:05:17]SAM_PROTO_GetShiftState [20:05:17]wFMCommunicate request_size=4 [20:05:17]MH_SAM_APDU [20:05:17]CAPDU: 80 13 01 00 [20:05:17]Write to MH i2c: E2 08 00 1C 8A 80 13 01 00 00 00 00 00 23 [20:05:17]Write i2c OK [20:05:17]MH_I2C_Read... [20:05:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:05:17]Read from MH i2c: E2 [20:05:17]MH_I2C_Read... [20:05:17]Read from MH i2c: E2 0E 00 [20:05:17]MH_I2C_Read... [20:05:17]Read from MH i2c: E2 0E 00 1C 8A 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 82 [20:05:17]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [20:05:17]wFMCommunicate OK [20:05:17]SAM_PROTO_GetShiftState done [20:05:17]FM_GetShiftState done [20:05:17]req_shift_opened done [20:05:17]requested_item shift.open_date is exist - process it [20:05:17]req_shift_open_date [20:05:17]req_shift_open_date done [20:05:17]produce_requested_data done [20:05:17]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187904,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [20:05:17]process_action_free close_receipt [20:05:17]json_value_free [20:05:17]json_value_free done [20:05:17]process_json_proto returns [20:05:17]Send response to host [20:05:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187904,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [20:05:17]free response buf [20:05:17]execute_script done [20:05:17]execute_script returns [20:05:17]free content buf [20:05:17]Sock 10.Close socket [20:05:17]Sock 10.Thread stoped [20:05:21]OFD Sender: No OFD packet to send [20:05:26]OFD Sender: No OFD packet to send [20:05:31]OFD Sender: No OFD packet to send [20:05:36]OFD Sender: No OFD packet to send [20:05:41]OFD Sender: No OFD packet to send [20:05:46]OFD Sender: No OFD packet to send [20:05:51]OFD Sender: No OFD packet to send [20:05:56]OFD Sender: No OFD packet to send [20:06:01]OFD Sender: No OFD packet to send [20:06:06]OFD Sender: No OFD packet to send [20:06:11]OFD Sender: No OFD packet to send [20:06:16]OFD Sender: No OFD packet to send [20:06:21]OFD Sender: No OFD packet to send [20:06:26]OFD Sender: No OFD packet to send [20:06:31]OFD Sender: No OFD packet to send [20:06:36]OFD Sender: No OFD packet to send [20:06:38]accept exits with 8 [20:06:38]New connection [20:06:38]New thread 3067014500 created [20:06:38]Thread 3067157860 joined [20:06:38]Waiting for new connection... [20:06:38] Sock 8.Parse request [20:06:38]Sock 8.Check first char [20:06:38]Sock 8.First char is OK [20:06:38]request: POST /json_proto HTTP/1.0 [20:06:38]Method: POST [20:06:38]URL: /json_proto [20:06:38]Method is POST - this is cgi request [20:06:38]url: /json_proto [20:06:38]query_string will be loaded in cgi processing [20:06:38]execute_cgi json_proto POST (null) [20:06:38]execute_cgi path=json_proto method=POST [20:06:38]POST find Content-Length [20:06:38]Host: 172.17.42.131:8080 [20:06:38]Content-Length: 677 [20:06:38]Content-Type: application/json [20:06:38] [20:06:38]POST finish read [20:06:38]Found Content-Length = 677 [20:06:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209958", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "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" ] } } [20:06:38]execute_script... [20:06: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)209958", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "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" ] } } [20:06:38]POST & json_proto [20:06:38]process_json_proto [20:06:38]json parsed OK: [20:06:38]protocol is kg_v1.0 [20:06:38]action value=close_receipt [20:06:38]process_action close_receipt [20:06:38]cmd_close_receipt [20:06:38]MH_GetDate [20:06:38]Write to MH i2c: F0 00 00 1D 8A 96 [20:06:38]Write i2c OK [20:06:38]MH_I2C_Read... [20:06:38]Read from MH i2c: F0 [20:06:38]MH_I2C_Read... [20:06:38]Read from MH i2c: F0 09 00 [20:06:38]MH_I2C_Read... [20:06:38]Read from MH i2c: F0 09 00 1D 8A 00 54 B4 16 67 A0 18 CA 66 0C [20:06:38]GetLastDocTimeStamp 1729541119 [20:06:38]current date 1729541204 [20:06:38]FM_GetShiftState [20:06:38]SAM_PROTO_GetShiftState [20:06:38]wFMCommunicate request_size=4 [20:06:38]MH_SAM_APDU [20:06:38]CAPDU: 80 13 01 00 [20:06:38]Write to MH i2c: E2 08 00 1E 8A 80 13 01 00 00 00 00 00 25 [20:06:38]Write i2c OK [20:06:38]MH_I2C_Read... [20:06:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:06:38]Read from MH i2c: E2 [20:06:38]MH_I2C_Read... [20:06:38]Read from MH i2c: E2 0E 00 [20:06:38]MH_I2C_Read... [20:06:38]Read from MH i2c: E2 0E 00 1E 8A 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 84 [20:06:38]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [20:06:38]wFMCommunicate OK [20:06:38]SAM_PROTO_GetShiftState done [20:06:38]FM_GetShiftState done [20:06:38]opened in 1729469754 [20:06:38]opened+sec_in_day 1729556154 [20:06:38]quantity*price = 50041 [20:06:38]sum+1 = 50042 [20:06: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 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 369 21.10.2024 20:06 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 187905 ФПД: 194302324923437 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T200644&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187905&fm=194302324923437&tin=02508201610067®Number=0000000000100030&sum=50000 [20:06:39]StoreToDocumentArchive [20:06:39]shift 460 fd 187905 [20:06:39]save to /storage/0460/doc_00187905 [20:06:39]save last doc name /storage/0460/doc_00187905 to /storage/kkm_last_doc_name [20:06:39]save OK [20:06:39]Clear old archive folders... [20:06:39]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:06:39]tlvbuf is 01293170 [20:06:39]SAM_PROTO_ClearQueue [20:06:39]wFMCommunicate request_size=4 [20:06:39]MH_SAM_APDU [20:06:39]CAPDU: 80 09 00 00 [20:06:39]Write to MH i2c: E2 08 00 2B 8A 80 09 00 00 00 00 00 00 27 [20:06:39]Write i2c OK [20:06:39]MH_I2C_Read... [20:06:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:06:40]Read from MH i2c: E2 [20:06:40]MH_I2C_Read... [20:06:40]Read from MH i2c: E2 03 00 [20:06:40]MH_I2C_Read... [20:06:40]Read from MH i2c: E2 03 00 2B 8A 00 90 00 29 [20:06:40]RAPDU: 90 00 [20:06:40]wFMCommunicate OK [20:06:40]SAM_PROTO_ClearQueue done [20:06:40]KKMCreateOFDPacket [20:06:40]OFDProtocolAddRootSTLVToBuf [20:06:40]FM_MakeSignedData [20:06:40]FM_MakeSignedData [20:06:40]SAM_PROTO_SignData [20:06:40]wFMCommunicate request_size=4 [20:06:40]MH_SAM_APDU [20:06:40]CAPDU: 80 0D 01 02 [20:06:40]Write to MH i2c: E2 08 00 2C 8A 80 0D 01 02 00 00 00 00 2F [20:06:40]Write i2c OK [20:06:40]MH_I2C_Read... [20:06:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:06:40]Read from MH i2c: E2 [20:06:40]MH_I2C_Read... [20:06:40]Read from MH i2c: E2 03 00 [20:06:40]MH_I2C_Read... [20:06:40]Read from MH i2c: E2 03 00 2C 8A 00 90 00 2A [20:06:40]RAPDU: 90 00 [20:06:40]wFMCommunicate OK [20:06:40]wFMCommunicate request_size=255 [20:06:40]MH_SAM_APDU [20:06: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 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 01 00 00 F4 03 04 00 54 B4 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 01 DE 02 00 35 04 06 00 B0 [20:06:40]Write to MH i2c: E2 02 01 2D 8A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 01 00 00 F4 03 04 00 54 B4 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 01 DE 02 00 35 04 06 00 B0 00 00 F7 [20:06:40]Write i2c OK [20:06:40]MH_I2C_Read... [20:06:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:06:40]Read from MH i2c: E2 [20:06:40]MH_I2C_Read... [20:06:40]Read from MH i2c: E2 03 00 [20:06:40]MH_I2C_Read... [20:06:40]Read from MH i2c: E2 03 00 2D 8A 00 90 00 2B [20:06:40]RAPDU: 90 00 [20:06:40]wFMCommunicate OK [20:06:40]wFMCommunicate request_size=10 [20:06:40]MH_SAM_APDU [20:06:40]CAPDU: 80 0D 02 02 05 B7 89 0E 5C 2D [20:06:40]Write to MH i2c: E2 0D 00 2E 8A 80 0D 02 02 05 00 B7 89 0E 5C 2D 00 00 13 [20:06:40]Write i2c OK [20:06:40]MH_I2C_Read... [20:06:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:06:40]Read from MH i2c: E2 [20:06:40]MH_I2C_Read... [20:06:40]Read from MH i2c: E2 03 00 [20:06:40]MH_I2C_Read... [20:06:40]Read from MH i2c: E2 03 00 2E 8A 00 90 00 2C [20:06:40]RAPDU: 90 00 [20:06:40]wFMCommunicate OK [20:06:40]wFMCommunicate request_size=4 [20:06:40]MH_SAM_APDU [20:06:40]CAPDU: 80 0D 03 02 [20:06:40]Write to MH i2c: E2 08 00 2F 8A 80 0D 03 02 00 00 00 00 34 [20:06:40]Write i2c OK [20:06:40]MH_I2C_Read... [20:06:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:06:40]Read from MH i2c: E2 [20:06:40]MH_I2C_Read... [20:06:40]Read from MH i2c: E2 0B 00 [20:06:40]MH_I2C_Read... [20:06:40]Read from MH i2c: E2 0B 00 2F 8A 00 10 58 71 9F 90 4A 28 65 90 00 14 [20:06:40]RAPDU: 10 58 71 9F 90 4A 28 65 90 00 [20:06:40]wFMCommunicate OK [20:06:40]SAM_PROTO_SignData done [20:06:40]FM_MakeSignedData done [20:06:40]CreateOFDProtocolMessage [20:06:40]wFMCommunicate request_size=4 [20:06:40]MH_SAM_APDU [20:06:40]CAPDU: 80 11 00 00 [20:06:40]Write to MH i2c: E2 08 00 30 8A 80 11 00 00 00 00 00 00 34 [20:06:40]Write i2c OK [20:06:40]MH_I2C_Read... [20:06:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:06:40]Read from MH i2c: E2 [20:06:40]MH_I2C_Read... [20:06:40]Read from MH i2c: E2 17 00 [20:06:40]MH_I2C_Read... [20:06:40]Read from MH i2c: E2 17 00 30 8A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 82 [20:06:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [20:06:40]wFMCommunicate OK [20:06:40]CreateOFDProtocolMessage done [20:06:40]OFDSenderStorePacket 187905 [20:06:40]StoreOFDPacket docnum=187905 [20:06:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 9A C7 07 01 6A 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 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 01 00 00 F4 03 04 00 54 B4 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 01 DE 02 00 35 04 06 00 B0 B7 89 0E 5C 2D 10 58 71 9F 90 4A 28 65 [20:06:40]CheckFolder [20:06:40]dirname=/storage/ofd_packets [20:06:40]CheckFolder done [20:06:40]ProducePacketName [20:06:40]name=ofd_packets/00187905 [20:06:40]NVStorageSaveData ofd_packets/00187905 [20:06:40]File name is /storage/ofd_packets/00187905 [20:06:40]Write 301 bytes [20:06:40]NVStorageSaveData done [20:06:40]OFDSenderStorePacket done [20:06:40]KKMCreateOFDPacket done [20:06:40]NVStorageSaveData kkm_last_timestamp [20:06:40]File name is /storage/kkm_last_timestamp [20:06:40]Write 4 bytes [20:06:40]NVStorageSaveData done [20:06:40]ExternCall_PrintAddStr [20:06:40]wPrintStart [20:06:40]Write to MH i2c: 01 00 00 31 8A BB [20:06:40]Write i2c OK [20:06:40]MH_I2C_Read... [20:06:40]Read from MH i2c: 01 [20:06:40]MH_I2C_Read... [20:06:40]Read from MH i2c: 01 07 00 [20:06:40]MH_I2C_Read... [20:06:40]Read from MH i2c: 01 07 00 31 8A 00 00 00 00 00 FF 0F D0 [20:06:40]RasterBufferAndPrint [20:06:40]line Счет N : (1)209958 [20:06:40]line ИНН: 02508201610067 [20:06:40]line Контрольно-Кассовый Чек [20:06:40]line ПРОДАЖА [20:06:40]line ТРК (МРК, ГНК) : 42 [20:06:40]line Товар: 2710124130 [20:06:40]line Аи-92-К-3 [20:06:40]line 7.480 * 66.90 [20:06:40]line = 500.41 [20:06:40]line НДС 12% НСП 1% [20:06:40]line > о реализуемом товаре [20:06:40]line ОКРУГЛЕНИЕ: -0.41 [20:06:40]line ИТОГО: 500.00 [20:06:40]line Внесено: 500.00 [20:06:40]line СДАЧА: 0.00 [20:06:40]line НСП 1% : 4.43 [20:06:40]line НДС 12% : 53.14 [20:06:40]line Наличными: 500.00 [20:06:40]line Безнал.: 0.00 [20:06:40]line Место: АЗС № 86 "Партнер Нефть" [20:06:40]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [20:06:40]line СНО: Общий режим [20:06:40]line Чек 369 21.10.2024 20:06 [20:06:40]line Смена: 460 ФФД: 1.0 [20:06:40]line ЗНМ: 0300000155 [20:06:40]line РНМ: 0000000000100030 [20:06:40]line Версия ККМ: 001 [20:06:40]line ФМ: 0000000000965340 [20:06:40]line ФД: 187905 [20:06:40]line ФПД: 194302324923437 [20:06:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T200644&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187905&fm=194302324923437&tin=02508201610067®Number=0000000000100030&sum=50000 [20:06:40]written 0, free lines is 4095 [20:06:40]OFD Sender: Processing packet 187905 [packets to send 1062, broken 1061] [20:06:40]ProducePacketName [20:06:40]name=ofd_packets/00187905 [20:06:40]OFD Sender: To server: pG, [20:06:40]CommunicateWithHost lk.salyk.kg:30040 [20:06:40]ConnectInit lk.salyk.kg [20:06:40]Connected sock=10 [20:06:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 9A C7 07 01 6A 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 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 01 00 00 F4 03 04 00 54 B4 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 01 DE 02 00 35 04 06 00 B0 B7 89 0E 5C 2D 10 58 71 9F 90 4A 28 65 [20:06:41]Write to MH i2c: 01 00 00 5C 8A E6 [20:06:41]Write i2c OK [20:06:41]MH_I2C_Read... [20:06:41]Read from MH i2c: 01 [20:06:41]MH_I2C_Read... [20:06:41]Read from MH i2c: 01 07 00 [20:06:41]MH_I2C_Read... [20:06:41]Read from MH i2c: 01 07 00 5C 8A 00 00 00 00 00 66 0C 5F [20:06:41]RasterBufferAndPrint [20:06:41]line [20:06:41]line [20:06:41]line [20:06:41]line [20:06:41]line [20:06:41]written 0, free lines is 3178 [20:06:41]MH_Cut [20:06:41]Write to MH i2c: D1 01 00 63 8A 01 BF [20:06:41]Write i2c OK [20:06:41]MH_I2C_Read... [20:06:41]Read from MH i2c: D1 [20:06:41]MH_I2C_Read... [20:06:41]Read from MH i2c: D1 01 00 [20:06:41]MH_I2C_Read... [20:06:41]Read from MH i2c: D1 01 00 63 8A 00 BE [20:06:41]Write to MH i2c: 01 00 00 64 8A EE [20:06:41]Write i2c OK [20:06:41]MH_I2C_Read... [20:06:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 24 62 47 00 57 C5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 01 DE 02 00 F4 03 04 00 43 5E 16 67 B6 04 01 00 00 19 0C CA D7 9B F5 6F 7B [20:06:41]CommunicateWithHost err = 0 [20:06:41]CheckOFDResponse [20:06:41]1017 (14) - 77093643461234 [20:06:41]1041 (16) - 0000000000965340 [20:06:41]1040 (4) - 187905 [20:06:41]1012 (4) - 21.10.2024 13:59 [20:06:41]1206 (1) - 0 [20:06:41]OFD Sender: Remove packet 187905 [20:06:41]ProducePacketName [20:06:41]name=ofd_packets/00187905 [20:06:41]NVStorageDeleteData [20:06:41]OFD Sender: No OFD packet to send [20:06:42]*** Cut start [20:06:42]*** Partial cut [20:06:42]*** CUTSNS_PIN = 1 [20:06:42]*** CUTSNS_PIN = 0 [20:06:42]*** Brake cut motor [20:06:42]Read from MH i2c: 01 [20:06:42]MH_I2C_Read... [20:06:42]*** Stop cut motor [20:06:42]*** Cut end [20:06:42]Read from MH i2c: 01 07 00 [20:06:42]MH_I2C_Read... [20:06:42]Read from MH i2c: 01 07 00 64 8A 00 00 00 00 00 FF 0F 03 [20:06:42]process_action close_receipt done [20:06:42]requested_data is exist [20:06:42]produce_requested_data [20:06:42]requested_item fm.sn is exist - process it [20:06:42]wFMCommunicate request_size=4 [20:06:42]MH_SAM_APDU [20:06:42]CAPDU: 80 11 00 00 [20:06:42]Write to MH i2c: E2 08 00 65 8A 80 11 00 00 00 00 00 00 69 [20:06:42]Write i2c OK [20:06:42]MH_I2C_Read... [20:06:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:06:42]Read from MH i2c: E2 [20:06:42]MH_I2C_Read... [20:06:42]Read from MH i2c: E2 17 00 [20:06:42]MH_I2C_Read... [20:06:42]Read from MH i2c: E2 17 00 65 8A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 B7 [20:06:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [20:06:42]wFMCommunicate OK [20:06:42]requested_item fd.num is exist - process it [20:06:42]SAM_PROTO_GetFieldsCounters [20:06:42]wFMCommunicate request_size=4 [20:06:42]MH_SAM_APDU [20:06:42]CAPDU: 80 13 00 00 [20:06:42]Write to MH i2c: E2 08 00 66 8A 80 13 00 00 00 00 00 00 6C [20:06:42]Write i2c OK [20:06:42]MH_I2C_Read... [20:06:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:06:43]Read from MH i2c: E2 [20:06:43]MH_I2C_Read... [20:06:43]Read from MH i2c: E2 62 00 [20:06:43]MH_I2C_Read... [20:06:43]Read from MH i2c: E2 62 00 66 8A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 01 DE 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 71 01 00 00 5E 04 04 00 71 01 00 00 57 04 04 00 72 01 00 00 19 04 04 00 00 00 00 00 90 00 77 [20:06:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 01 DE 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 71 01 00 00 5E 04 04 00 71 01 00 00 57 04 04 00 72 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:06:43]wFMCommunicate OK [20:06:43]SAM_PROTO_GetFieldsCounters done [20:06:43]requested_item shift.num is exist - process it [20:06:43]requested_item shift.opened is exist - process it [20:06:43]req_shift_opened [20:06:43]FM_GetShiftState [20:06:43]SAM_PROTO_GetShiftState [20:06:43]wFMCommunicate request_size=4 [20:06:43]MH_SAM_APDU [20:06:43]CAPDU: 80 13 01 00 [20:06:43]Write to MH i2c: E2 08 00 67 8A 80 13 01 00 00 00 00 00 6E [20:06:43]Write i2c OK [20:06:43]MH_I2C_Read... [20:06:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:06:43]Read from MH i2c: E2 [20:06:43]MH_I2C_Read... [20:06:43]Read from MH i2c: E2 0E 00 [20:06:43]MH_I2C_Read... [20:06:43]Read from MH i2c: E2 0E 00 67 8A 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 CD [20:06:43]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [20:06:43]wFMCommunicate OK [20:06:43]SAM_PROTO_GetShiftState done [20:06:43]FM_GetShiftState done [20:06:43]req_shift_opened done [20:06:43]requested_item shift.open_date is exist - process it [20:06:43]req_shift_open_date [20:06:43]req_shift_open_date done [20:06:43]produce_requested_data done [20:06:43]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187905,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [20:06:43]process_action_free close_receipt [20:06:43]json_value_free [20:06:43]json_value_free done [20:06:43]process_json_proto returns [20:06:43]Send response to host [20:06:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187905,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [20:06:43]free response buf [20:06:43]execute_script done [20:06:43]execute_script returns [20:06:43]free content buf [20:06:43]Sock 8.Close socket [20:06:43]Sock 8.Thread stoped [20:06:46]OFD Sender: No OFD packet to send [20:06:51]OFD Sender: No OFD packet to send [20:06:56]OFD Sender: No OFD packet to send [20:07:01]OFD Sender: No OFD packet to send [20:07:03]accept exits with 9 [20:07:03]New connection [20:07:03]New thread 3067157860 created [20:07:03]Thread 3067014500 joined [20:07:03]Waiting for new connection... [20:07:03] Sock 9.Parse request [20:07:03]Sock 9.Check first char [20:07:03]Sock 9.First char is OK [20:07:03]request: POST /json_proto HTTP/1.0 [20:07:03]Method: POST [20:07:03]URL: /json_proto [20:07:03]Method is POST - this is cgi request [20:07:03]url: /json_proto [20:07:03]query_string will be loaded in cgi processing [20:07:03]execute_cgi json_proto POST (null) [20:07:03]execute_cgi path=json_proto method=POST [20:07:03]POST find Content-Length [20:07:03]Host: 172.17.42.131:8080 [20:07:03]Content-Length: 677 [20:07:03]Content-Type: application/json [20:07:03] [20:07:03]POST finish read [20:07:03]Found Content-Length = 677 [20:07:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209959", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "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" ] } } [20:07:03]execute_script... [20:07:03]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209959", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "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" ] } } [20:07:03]POST & json_proto [20:07:03]process_json_proto [20:07:03]json parsed OK: [20:07:03]protocol is kg_v1.0 [20:07:03]action value=close_receipt [20:07:03]process_action close_receipt [20:07:03]cmd_close_receipt [20:07:03]MH_GetDate [20:07:03]Write to MH i2c: F0 00 00 68 8A E1 [20:07:03]Write i2c OK [20:07:03]MH_I2C_Read... [20:07:03]Read from MH i2c: F0 [20:07:03]MH_I2C_Read... [20:07:03]Read from MH i2c: F0 09 00 [20:07:03]MH_I2C_Read... [20:07:03]Read from MH i2c: F0 09 00 68 8A 00 6D B4 16 67 A0 18 CA 66 70 [20:07:03]GetLastDocTimeStamp 1729541204 [20:07:03]current date 1729541229 [20:07:03]FM_GetShiftState [20:07:03]SAM_PROTO_GetShiftState [20:07:03]wFMCommunicate request_size=4 [20:07:03]MH_SAM_APDU [20:07:03]CAPDU: 80 13 01 00 [20:07:03]Write to MH i2c: E2 08 00 69 8A 80 13 01 00 00 00 00 00 70 [20:07:03]Write i2c OK [20:07:03]MH_I2C_Read... [20:07:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:07:03]Read from MH i2c: E2 [20:07:03]MH_I2C_Read... [20:07:03]Read from MH i2c: E2 0E 00 [20:07:03]MH_I2C_Read... [20:07:03]Read from MH i2c: E2 0E 00 69 8A 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 CF [20:07:03]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [20:07:03]wFMCommunicate OK [20:07:03]SAM_PROTO_GetShiftState done [20:07:03]FM_GetShiftState done [20:07:03]opened in 1729469754 [20:07:03]opened+sec_in_day 1729556154 [20:07:03]quantity*price = 50041 [20:07:03]sum+1 = 50042 [20:07: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 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 370 21.10.2024 20:07 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 187906 ФПД: 215376243744309 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T200709&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187906&fm=215376243744309&tin=02508201610067®Number=0000000000100030&sum=50000 [20:07:04]StoreToDocumentArchive [20:07:04]shift 460 fd 187906 [20:07:04]save to /storage/0460/doc_00187906 [20:07:04]save last doc name /storage/0460/doc_00187906 to /storage/kkm_last_doc_name [20:07:04]save OK [20:07:04]Clear old archive folders... [20:07:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:07:04]tlvbuf is 01345950 [20:07:04]SAM_PROTO_ClearQueue [20:07:04]wFMCommunicate request_size=4 [20:07:04]MH_SAM_APDU [20:07:04]CAPDU: 80 09 00 00 [20:07:04]Write to MH i2c: E2 08 00 76 8A 80 09 00 00 00 00 00 00 72 [20:07:04]Write i2c OK [20:07:04]MH_I2C_Read... [20:07:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:07:04]Read from MH i2c: E2 [20:07:04]MH_I2C_Read... [20:07:04]Read from MH i2c: E2 03 00 [20:07:04]MH_I2C_Read... [20:07:04]Read from MH i2c: E2 03 00 76 8A 00 90 00 74 [20:07:04]RAPDU: 90 00 [20:07:04]wFMCommunicate OK [20:07:04]SAM_PROTO_ClearQueue done [20:07:04]KKMCreateOFDPacket [20:07:04]OFDProtocolAddRootSTLVToBuf [20:07:04]FM_MakeSignedData [20:07:04]FM_MakeSignedData [20:07:04]SAM_PROTO_SignData [20:07:04]wFMCommunicate request_size=4 [20:07:04]MH_SAM_APDU [20:07:04]CAPDU: 80 0D 01 02 [20:07:04]Write to MH i2c: E2 08 00 77 8A 80 0D 01 02 00 00 00 00 7A [20:07:04]Write i2c OK [20:07:04]MH_I2C_Read... [20:07:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:07:04]Read from MH i2c: E2 [20:07:04]MH_I2C_Read... [20:07:04]Read from MH i2c: E2 03 00 [20:07:04]MH_I2C_Read... [20:07:04]Read from MH i2c: E2 03 00 77 8A 00 90 00 75 [20:07:04]RAPDU: 90 00 [20:07:04]wFMCommunicate OK [20:07:04]wFMCommunicate request_size=255 [20:07:04]MH_SAM_APDU [20:07: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 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 01 00 00 F4 03 04 00 6D B4 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 02 DE 02 00 35 04 06 00 C3 [20:07:04]Write to MH i2c: E2 02 01 78 8A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 01 00 00 F4 03 04 00 6D B4 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 02 DE 02 00 35 04 06 00 C3 00 00 70 [20:07:04]Write i2c OK [20:07:04]MH_I2C_Read... [20:07:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:07:04]Read from MH i2c: E2 [20:07:04]MH_I2C_Read... [20:07:04]Read from MH i2c: E2 03 00 [20:07:04]MH_I2C_Read... [20:07:04]Read from MH i2c: E2 03 00 78 8A 00 90 00 76 [20:07:04]RAPDU: 90 00 [20:07:04]wFMCommunicate OK [20:07:04]wFMCommunicate request_size=10 [20:07:04]MH_SAM_APDU [20:07:04]CAPDU: 80 0D 02 02 05 E2 30 80 5E 35 [20:07:04]Write to MH i2c: E2 0D 00 79 8A 80 0D 02 02 05 00 E2 30 80 5E 35 00 00 AC [20:07:04]Write i2c OK [20:07:04]MH_I2C_Read... [20:07:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:07:04]Read from MH i2c: E2 [20:07:04]MH_I2C_Read... [20:07:04]Read from MH i2c: E2 03 00 [20:07:04]MH_I2C_Read... [20:07:04]Read from MH i2c: E2 03 00 79 8A 00 90 00 77 [20:07:04]RAPDU: 90 00 [20:07:04]wFMCommunicate OK [20:07:04]wFMCommunicate request_size=4 [20:07:04]MH_SAM_APDU [20:07:04]CAPDU: 80 0D 03 02 [20:07:04]Write to MH i2c: E2 08 00 7A 8A 80 0D 03 02 00 00 00 00 7F [20:07:04]Write i2c OK [20:07:04]MH_I2C_Read... [20:07:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:07:05]Read from MH i2c: E2 [20:07:05]MH_I2C_Read... [20:07:05]Read from MH i2c: E2 0B 00 [20:07:05]MH_I2C_Read... [20:07:05]Read from MH i2c: E2 0B 00 7A 8A 00 80 33 39 49 CE 48 BD 5C 90 00 E4 [20:07:05]RAPDU: 80 33 39 49 CE 48 BD 5C 90 00 [20:07:05]wFMCommunicate OK [20:07:05]SAM_PROTO_SignData done [20:07:05]FM_MakeSignedData done [20:07:05]CreateOFDProtocolMessage [20:07:05]wFMCommunicate request_size=4 [20:07:05]MH_SAM_APDU [20:07:05]CAPDU: 80 11 00 00 [20:07:05]Write to MH i2c: E2 08 00 7B 8A 80 11 00 00 00 00 00 00 7F [20:07:05]Write i2c OK [20:07:05]MH_I2C_Read... [20:07:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:07:05]Read from MH i2c: E2 [20:07:05]MH_I2C_Read... [20:07:05]Read from MH i2c: E2 17 00 [20:07:05]MH_I2C_Read... [20:07:05]Read from MH i2c: E2 17 00 7B 8A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 CD [20:07:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [20:07:05]wFMCommunicate OK [20:07:05]CreateOFDProtocolMessage done [20:07:05]OFDSenderStorePacket 187906 [20:07:05]StoreOFDPacket docnum=187906 [20:07:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 21 38 07 01 15 4E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 01 00 00 F4 03 04 00 6D B4 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 02 DE 02 00 35 04 06 00 C3 E2 30 80 5E 35 80 33 39 49 CE 48 BD 5C [20:07:05]CheckFolder [20:07:05]dirname=/storage/ofd_packets [20:07:05]CheckFolder done [20:07:05]ProducePacketName [20:07:05]name=ofd_packets/00187906 [20:07:05]NVStorageSaveData ofd_packets/00187906 [20:07:05]File name is /storage/ofd_packets/00187906 [20:07:05]Write 301 bytes [20:07:05]NVStorageSaveData done [20:07:05]OFDSenderStorePacket done [20:07:05]KKMCreateOFDPacket done [20:07:05]NVStorageSaveData kkm_last_timestamp [20:07:05]File name is /storage/kkm_last_timestamp [20:07:05]Write 4 bytes [20:07:05]NVStorageSaveData done [20:07:05]ExternCall_PrintAddStr [20:07:05]wPrintStart [20:07:05]Write to MH i2c: 01 00 00 7C 8A 06 [20:07:05]Write i2c OK [20:07:05]MH_I2C_Read... [20:07:05]Read from MH i2c: 01 [20:07:05]MH_I2C_Read... [20:07:05]Read from MH i2c: 01 07 00 [20:07:05]MH_I2C_Read... [20:07:05]Read from MH i2c: 01 07 00 7C 8A 00 00 00 00 00 FF 0F 1B [20:07:05]RasterBufferAndPrint [20:07:05]line Счет N : (1)209959 [20:07:05]line ИНН: 02508201610067 [20:07:05]line Контрольно-Кассовый Чек [20:07:05]line ПРОДАЖА [20:07:05]line ТРК (МРК, ГНК) : 22 [20:07:05]line Товар: 2710124130 [20:07:05]line Аи-92-К-3 [20:07:05]line 7.480 * 66.90 [20:07:05]line = 500.41 [20:07:05]line НДС 12% НСП 1% [20:07:05]line > о реализуемом товаре [20:07:05]line ОКРУГЛЕНИЕ: -0.41 [20:07:05]line ИТОГО: 500.00 [20:07:05]line Внесено: 500.00 [20:07:05]line СДАЧА: 0.00 [20:07:05]line НСП 1% : 4.43 [20:07:05]line НДС 12% : 53.14 [20:07:05]line Наличными: 500.00 [20:07:05]line Безнал.: 0.00 [20:07:05]line Место: АЗС № 86 "Партнер Нефть" [20:07:05]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [20:07:05]line СНО: Общий режим [20:07:05]line Чек 370 21.10.2024 20:07 [20:07:05]line Смена: 460 ФФД: 1.0 [20:07:05]line ЗНМ: 0300000155 [20:07:05]line РНМ: 0000000000100030 [20:07:05]line Версия ККМ: 001 [20:07:05]line ФМ: 0000000000965340 [20:07:05]line ФД: 187906 [20:07:05]line ФПД: 215376243744309 [20:07:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T200709&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187906&fm=215376243744309&tin=02508201610067®Number=0000000000100030&sum=50000 [20:07:05]written 0, free lines is 4095 [20:07:05]OFD Sender: Processing packet 187906 [packets to send 1062, broken 1061] [20:07:05]ProducePacketName [20:07:05]name=ofd_packets/00187906 [20:07:05]OFD Sender: To server: pG, [20:07:05]CommunicateWithHost lk.salyk.kg:30040 [20:07:05]ConnectInit lk.salyk.kg [20:07:05]Connected sock=10 [20:07:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 21 38 07 01 15 4E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 01 00 00 F4 03 04 00 6D B4 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 02 DE 02 00 35 04 06 00 C3 E2 30 80 5E 35 80 33 39 49 CE 48 BD 5C [20:07:05]Write to MH i2c: 01 00 00 A7 8A 31 [20:07:05]Write i2c OK [20:07:05]MH_I2C_Read... [20:07:05]Read from MH i2c: 01 [20:07:05]MH_I2C_Read... [20:07:05]Read from MH i2c: 01 07 00 [20:07:05]MH_I2C_Read... [20:07:05]Read from MH i2c: 01 07 00 A7 8A 00 00 00 00 00 6A 0C AE [20:07:05]RasterBufferAndPrint [20:07:05]line [20:07:05]line [20:07:05]line [20:07:05]line [20:07:05]line [20:07:05]written 0, free lines is 3181 [20:07:05]MH_Cut [20:07:05]Write to MH i2c: D1 01 00 AE 8A 01 0A [20:07:05]Write i2c OK [20:07:05]MH_I2C_Read... [20:07:05]Read from MH i2c: D1 [20:07:05]MH_I2C_Read... [20:07:05]Read from MH i2c: D1 01 00 [20:07:05]MH_I2C_Read... [20:07:05]Read from MH i2c: D1 01 00 AE 8A 00 09 [20:07:05]Write to MH i2c: 01 00 00 AF 8A 39 [20:07:05]Write i2c OK [20:07:05]MH_I2C_Read... [20:07:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 00 80 47 00 2E 15 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 02 DE 02 00 F4 03 04 00 5B 5E 16 67 B6 04 01 00 00 52 AC 0C 28 D0 39 91 3E [20:07:05]CommunicateWithHost err = 0 [20:07:05]CheckOFDResponse [20:07:05]1017 (14) - 77093643461234 [20:07:05]1041 (16) - 0000000000965340 [20:07:05]1040 (4) - 187906 [20:07:05]1012 (4) - 21.10.2024 13:59 [20:07:05]1206 (1) - 0 [20:07:05]OFD Sender: Remove packet 187906 [20:07:05]ProducePacketName [20:07:05]name=ofd_packets/00187906 [20:07:05]NVStorageDeleteData [20:07:06]OFD Sender: No OFD packet to send [20:07:06]*** Cut start [20:07:06]*** Partial cut [20:07:06]*** CUTSNS_PIN = 1 [20:07:06]*** CUTSNS_PIN = 0 [20:07:07]*** Brake cut motor [20:07:07]Read from MH i2c: 01 [20:07:07]MH_I2C_Read... [20:07:07]*** Stop cut motor [20:07:07]*** Cut end [20:07:07]Read from MH i2c: 01 07 00 [20:07:07]MH_I2C_Read... [20:07:07]Read from MH i2c: 01 07 00 AF 8A 00 00 00 00 00 FF 0F 4E [20:07:07]process_action close_receipt done [20:07:07]requested_data is exist [20:07:07]produce_requested_data [20:07:07]requested_item fm.sn is exist - process it [20:07:07]wFMCommunicate request_size=4 [20:07:07]MH_SAM_APDU [20:07:07]CAPDU: 80 11 00 00 [20:07:07]Write to MH i2c: E2 08 00 B0 8A 80 11 00 00 00 00 00 00 B4 [20:07:07]Write i2c OK [20:07:07]MH_I2C_Read... [20:07:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:07:07]Read from MH i2c: E2 [20:07:07]MH_I2C_Read... [20:07:07]Read from MH i2c: E2 17 00 [20:07:07]MH_I2C_Read... [20:07:07]Read from MH i2c: E2 17 00 B0 8A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 02 [20:07:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [20:07:07]wFMCommunicate OK [20:07:07]requested_item fd.num is exist - process it [20:07:07]SAM_PROTO_GetFieldsCounters [20:07:07]wFMCommunicate request_size=4 [20:07:07]MH_SAM_APDU [20:07:07]CAPDU: 80 13 00 00 [20:07:07]Write to MH i2c: E2 08 00 B1 8A 80 13 00 00 00 00 00 00 B7 [20:07:07]Write i2c OK [20:07:07]MH_I2C_Read... [20:07:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:07:07]Read from MH i2c: E2 [20:07:07]MH_I2C_Read... [20:07:07]Read from MH i2c: E2 62 00 [20:07:07]MH_I2C_Read... [20:07:07]Read from MH i2c: E2 62 00 B1 8A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 02 DE 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 72 01 00 00 5E 04 04 00 72 01 00 00 57 04 04 00 73 01 00 00 19 04 04 00 00 00 00 00 90 00 C6 [20:07:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 02 DE 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 72 01 00 00 5E 04 04 00 72 01 00 00 57 04 04 00 73 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:07:07]wFMCommunicate OK [20:07:07]SAM_PROTO_GetFieldsCounters done [20:07:07]requested_item shift.num is exist - process it [20:07:07]requested_item shift.opened is exist - process it [20:07:07]req_shift_opened [20:07:07]FM_GetShiftState [20:07:07]SAM_PROTO_GetShiftState [20:07:07]wFMCommunicate request_size=4 [20:07:07]MH_SAM_APDU [20:07:07]CAPDU: 80 13 01 00 [20:07:07]Write to MH i2c: E2 08 00 B2 8A 80 13 01 00 00 00 00 00 B9 [20:07:07]Write i2c OK [20:07:07]MH_I2C_Read... [20:07:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:07:07]Read from MH i2c: E2 [20:07:07]MH_I2C_Read... [20:07:07]Read from MH i2c: E2 0E 00 [20:07:07]MH_I2C_Read... [20:07:07]Read from MH i2c: E2 0E 00 B2 8A 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 18 [20:07:07]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [20:07:07]wFMCommunicate OK [20:07:07]SAM_PROTO_GetShiftState done [20:07:07]FM_GetShiftState done [20:07:07]req_shift_opened done [20:07:07]requested_item shift.open_date is exist - process it [20:07:07]req_shift_open_date [20:07:07]req_shift_open_date done [20:07:07]produce_requested_data done [20:07:07]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187906,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [20:07:07]process_action_free close_receipt [20:07:07]json_value_free [20:07:07]json_value_free done [20:07:07]process_json_proto returns [20:07:07]Send response to host [20:07:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187906,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [20:07:07]free response buf [20:07:07]execute_script done [20:07:07]execute_script returns [20:07:07]free content buf [20:07:07]Sock 9.Close socket [20:07:07]Sock 9.Thread stoped [20:07:11]OFD Sender: No OFD packet to send [20:07:16]OFD Sender: No OFD packet to send [20:07:21]OFD Sender: No OFD packet to send [20:07:26]OFD Sender: No OFD packet to send [20:07:31]OFD Sender: No OFD packet to send [20:07:36]OFD Sender: No OFD packet to send [20:07:41]OFD Sender: No OFD packet to send [20:07:46]OFD Sender: No OFD packet to send [20:07:51]OFD Sender: No OFD packet to send [20:07:56]OFD Sender: No OFD packet to send [20:08:01]OFD Sender: No OFD packet to send [20:08:06]OFD Sender: No OFD packet to send [20:08:11]OFD Sender: No OFD packet to send [20:08:16]OFD Sender: No OFD packet to send [20:08:21]OFD Sender: No OFD packet to send [20:08:26]OFD Sender: No OFD packet to send [20:08:31]OFD Sender: No OFD packet to send [20:08:36]OFD Sender: No OFD packet to send [20:08:41]OFD Sender: No OFD packet to send [20:08:46]accept exits with 8 [20:08:46]New connection [20:08:46]New thread 3067014500 created [20:08:46]Thread 3067157860 joined [20:08:46]Waiting for new connection... [20:08:46] Sock 8.Parse request [20:08:46]Sock 8.Check first char [20:08:46]Sock 8.First char is OK [20:08:46]request: POST /json_proto HTTP/1.0 [20:08:46]Method: POST [20:08:46]URL: /json_proto [20:08:46]Method is POST - this is cgi request [20:08:46]url: /json_proto [20:08:46]query_string will be loaded in cgi processing [20:08:46]execute_cgi json_proto POST (null) [20:08:46]execute_cgi path=json_proto method=POST [20:08:46]POST find Content-Length [20:08:46]Host: 172.17.42.131:8080 [20:08:46]Content-Length: 767 [20:08:46]Content-Type: application/json [20:08:46] [20:08:46]POST finish read [20:08:46]Found Content-Length = 767 [20:08:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209957", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 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: Mbank", "payments": [ { "type": 1, "sum" : 9000.74 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:08:46]execute_script... [20:08: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)209957", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 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: Mbank", "payments": [ { "type": 1, "sum" : 9000.74 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:08:46]POST & json_proto [20:08:46]process_json_proto [20:08:46]json parsed OK: [20:08:46]protocol is kg_v1.0 [20:08:46]action value=close_receipt [20:08:46]process_action close_receipt [20:08:46]cmd_close_receipt [20:08:46]MH_GetDate [20:08:46]Write to MH i2c: F0 00 00 B3 8A 2C [20:08:46]Write i2c OK [20:08:46]MH_I2C_Read... [20:08:46]Read from MH i2c: F0 [20:08:46]MH_I2C_Read... [20:08:46]Read from MH i2c: F0 09 00 [20:08:46]MH_I2C_Read... [20:08:46]Read from MH i2c: F0 09 00 B3 8A 00 D3 B4 16 67 A0 18 CA 66 21 [20:08:46]GetLastDocTimeStamp 1729541229 [20:08:46]current date 1729541331 [20:08:46]FM_GetShiftState [20:08:46]SAM_PROTO_GetShiftState [20:08:46]wFMCommunicate request_size=4 [20:08:46]MH_SAM_APDU [20:08:46]CAPDU: 80 13 01 00 [20:08:46]Write to MH i2c: E2 08 00 B4 8A 80 13 01 00 00 00 00 00 BB [20:08:46]Write i2c OK [20:08:46]MH_I2C_Read... [20:08:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:08:46]Read from MH i2c: E2 [20:08:46]MH_I2C_Read... [20:08:46]Read from MH i2c: E2 0E 00 [20:08:46]MH_I2C_Read... [20:08:46]Read from MH i2c: E2 0E 00 B4 8A 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 1A [20:08:46]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [20:08:46]wFMCommunicate OK [20:08:46]SAM_PROTO_GetShiftState done [20:08:46]FM_GetShiftState done [20:08:46]opened in 1729469754 [20:08:46]opened+sec_in_day 1729556154 [20:08:46]quantity*price = 900074 [20:08:46]sum+1 = 900075 [20:08:46]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 9000.74 НСП 1% : 79.65 НДС 12% : 955.83 Наличными: 0.00 Безнал.: 9000.74 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 371 21.10.2024 20:08 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000965340 ФД: 187907 ФПД: 157263412591222 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T200851&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187907&fm=157263412591222&tin=02508201610067®Number=0000000000100030&sum=900074 [20:08:47]StoreToDocumentArchive [20:08:47]shift 460 fd 187907 [20:08:47]save to /storage/0460/doc_00187907 [20:08:47]save last doc name /storage/0460/doc_00187907 to /storage/kkm_last_doc_name [20:08:47]save OK [20:08:47]Clear old archive folders... [20:08:47]ProcessDocumentItem done err = 0, tmpTLVsize=248 [20:08:47]tlvbuf is 012930A0 [20:08:47]SAM_PROTO_ClearQueue [20:08:47]wFMCommunicate request_size=4 [20:08:47]MH_SAM_APDU [20:08:47]CAPDU: 80 09 00 00 [20:08:47]Write to MH i2c: E2 08 00 C1 8A 80 09 00 00 00 00 00 00 BD [20:08:47]Write i2c OK [20:08:47]MH_I2C_Read... [20:08:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:08:47]Read from MH i2c: E2 [20:08:47]MH_I2C_Read... [20:08:47]Read from MH i2c: E2 03 00 [20:08:47]MH_I2C_Read... [20:08:47]Read from MH i2c: E2 03 00 C1 8A 00 90 00 BF [20:08:47]RAPDU: 90 00 [20:08:47]wFMCommunicate OK [20:08:47]SAM_PROTO_ClearQueue done [20:08:47]KKMCreateOFDPacket [20:08:47]OFDProtocolAddRootSTLVToBuf [20:08:47]FM_MakeSignedData [20:08:47]FM_MakeSignedData [20:08:47]SAM_PROTO_SignData [20:08:47]wFMCommunicate request_size=4 [20:08:47]MH_SAM_APDU [20:08:47]CAPDU: 80 0D 01 02 [20:08:47]Write to MH i2c: E2 08 00 C2 8A 80 0D 01 02 00 00 00 00 C5 [20:08:47]Write i2c OK [20:08:47]MH_I2C_Read... [20:08:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:08:47]Read from MH i2c: E2 [20:08:47]MH_I2C_Read... [20:08:47]Read from MH i2c: E2 03 00 [20:08:47]MH_I2C_Read... [20:08:47]Read from MH i2c: E2 03 00 C2 8A 00 90 00 C0 [20:08:47]RAPDU: 90 00 [20:08:47]wFMCommunicate OK [20:08:47]wFMCommunicate request_size=255 [20:08:47]MH_SAM_APDU [20:08:47]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 73 01 00 00 F4 03 04 00 D3 B4 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 03 DE 02 00 35 04 06 00 8F 07 BD D7 [20:08:47]Write to MH i2c: E2 02 01 C3 8A 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 73 01 00 00 F4 03 04 00 D3 B4 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 03 DE 02 00 35 04 06 00 8F 07 BD D7 00 00 98 [20:08:47]Write i2c OK [20:08:47]MH_I2C_Read... [20:08:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:08:47]Read from MH i2c: E2 [20:08:47]MH_I2C_Read... [20:08:47]Read from MH i2c: E2 03 00 [20:08:47]MH_I2C_Read... [20:08:47]Read from MH i2c: E2 03 00 C3 8A 00 90 00 C1 [20:08:47]RAPDU: 90 00 [20:08:47]wFMCommunicate OK [20:08:47]wFMCommunicate request_size=7 [20:08:47]MH_SAM_APDU [20:08:47]CAPDU: 80 0D 02 02 02 FA 76 [20:08:47]Write to MH i2c: E2 0A 00 C4 8A 80 0D 02 02 02 00 FA 76 00 00 3C [20:08:47]Write i2c OK [20:08:47]MH_I2C_Read... [20:08:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:08:47]Read from MH i2c: E2 [20:08:47]MH_I2C_Read... [20:08:47]Read from MH i2c: E2 03 00 [20:08:47]MH_I2C_Read... [20:08:47]Read from MH i2c: E2 03 00 C4 8A 00 90 00 C2 [20:08:47]RAPDU: 90 00 [20:08:47]wFMCommunicate OK [20:08:47]wFMCommunicate request_size=4 [20:08:47]MH_SAM_APDU [20:08:47]CAPDU: 80 0D 03 02 [20:08:47]Write to MH i2c: E2 08 00 C5 8A 80 0D 03 02 00 00 00 00 CA [20:08:47]Write i2c OK [20:08:47]MH_I2C_Read... [20:08:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:08:47]Read from MH i2c: E2 [20:08:47]MH_I2C_Read... [20:08:47]Read from MH i2c: E2 0B 00 [20:08:47]MH_I2C_Read... [20:08:47]Read from MH i2c: E2 0B 00 C5 8A 00 9F CE 35 FA 63 15 3B FE 90 00 18 [20:08:47]RAPDU: 9F CE 35 FA 63 15 3B FE 90 00 [20:08:47]wFMCommunicate OK [20:08:47]SAM_PROTO_SignData done [20:08:47]FM_MakeSignedData done [20:08:47]CreateOFDProtocolMessage [20:08:47]wFMCommunicate request_size=4 [20:08:47]MH_SAM_APDU [20:08:47]CAPDU: 80 11 00 00 [20:08:47]Write to MH i2c: E2 08 00 C6 8A 80 11 00 00 00 00 00 00 CA [20:08:47]Write i2c OK [20:08:47]MH_I2C_Read... [20:08:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:08:47]Read from MH i2c: E2 [20:08:47]MH_I2C_Read... [20:08:47]Read from MH i2c: E2 17 00 [20:08:47]MH_I2C_Read... [20:08:47]Read from MH i2c: E2 17 00 C6 8A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 18 [20:08:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [20:08:47]wFMCommunicate OK [20:08:47]CreateOFDProtocolMessage done [20:08:47]OFDSenderStorePacket 187907 [20:08:47]StoreOFDPacket docnum=187907 [20:08:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 03 C2 04 01 0E 55 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 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 73 01 00 00 F4 03 04 00 D3 B4 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 03 DE 02 00 35 04 06 00 8F 07 BD D7 FA 76 9F CE 35 FA 63 15 3B FE [20:08:47]CheckFolder [20:08:47]dirname=/storage/ofd_packets [20:08:47]CheckFolder done [20:08:47]ProducePacketName [20:08:47]name=ofd_packets/00187907 [20:08:47]NVStorageSaveData ofd_packets/00187907 [20:08:47]File name is /storage/ofd_packets/00187907 [20:08:47]Write 298 bytes [20:08:47]NVStorageSaveData done [20:08:47]OFDSenderStorePacket done [20:08:47]KKMCreateOFDPacket done [20:08:47]NVStorageSaveData kkm_last_timestamp [20:08:47]File name is /storage/kkm_last_timestamp [20:08:47]Write 4 bytes [20:08:47]NVStorageSaveData done [20:08:47]ExternCall_PrintAddStr [20:08:47]wPrintStart [20:08:47]Write to MH i2c: 01 00 00 C7 8A 51 [20:08:47]Write i2c OK [20:08:47]MH_I2C_Read... [20:08:47]Read from MH i2c: 01 [20:08:47]MH_I2C_Read... [20:08:47]Read from MH i2c: 01 07 00 [20:08:47]MH_I2C_Read... [20:08:47]Read from MH i2c: 01 07 00 C7 8A 00 00 00 00 00 FF 0F 66 [20:08:47]RasterBufferAndPrint [20:08:47]line Счет N : (1)209957 [20:08:47]line ИНН: 02508201610067 [20:08:47]line Контрольно-Кассовый Чек [20:08:47]line ПРОДАЖА [20:08:47]line ТРК (МРК, ГНК) : 51 [20:08:47]line Товар: 2710194210 [20:08:47]line ДТ-К-5 [20:08:47]line 118.120 * 76.20 [20:08:47]line = 9000.74 [20:08:47]line НДС 12% НСП 1% [20:08:47]line > о реализуемом товаре [20:08:47]line ИТОГО: 9000.74 [20:08:47]line НСП 1% : 79.65 [20:08:47]line НДС 12% : 955.83 [20:08:47]line Наличными: 0.00 [20:08:47]line Безнал.: 9000.74 [20:08:47]line Место: АЗС № 86 "Партнер Нефть" [20:08:47]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [20:08:47]line СНО: Общий режим [20:08:47]line Чек 371 21.10.2024 20:08 [20:08:47]line Смена: 460 ФФД: 1.0 [20:08:47]line ЗНМ: 0300000155 [20:08:47]line РНМ: 0000000000100030 [20:08:47]line Версия ККМ: 001 [20:08:47]line Платежная система: Mbank [20:08:47]line ФМ: 0000000000965340 [20:08:47]line ФД: 187907 [20:08:47]line ФПД: 157263412591222 [20:08:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T200851&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187907&fm=157263412591222&tin=02508201610067®Number=0000000000100030&sum=900074 [20:08:47]written 0, free lines is 4095 [20:08:48]OFD Sender: Processing packet 187907 [packets to send 1062, broken 1061] [20:08:48]ProducePacketName [20:08:48]name=ofd_packets/00187907 [20:08:48]OFD Sender: To server: pG, [20:08:48]CommunicateWithHost lk.salyk.kg:30040 [20:08:48]ConnectInit lk.salyk.kg [20:08:48]Connected sock=10 [20:08:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 03 C2 04 01 0E 55 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 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 73 01 00 00 F4 03 04 00 D3 B4 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 03 DE 02 00 35 04 06 00 8F 07 BD D7 FA 76 9F CE 35 FA 63 15 3B FE [20:08:48]Write to MH i2c: 01 00 00 F0 8A 7A [20:08:48]Write i2c OK [20:08:48]MH_I2C_Read... [20:08:48]Read from MH i2c: 01 [20:08:48]MH_I2C_Read... [20:08:48]Read from MH i2c: 01 07 00 [20:08:48]MH_I2C_Read... [20:08:48]Read from MH i2c: 01 07 00 F0 8A 00 00 00 00 00 99 0C 26 [20:08:48]RasterBufferAndPrint [20:08:48]line [20:08:48]line [20:08:48]line [20:08:48]line [20:08:48]line [20:08:48]written 0, free lines is 3228 [20:08:48]MH_Cut [20:08:48]Write to MH i2c: D1 01 00 F7 8A 01 53 [20:08:48]Write i2c OK [20:08:48]MH_I2C_Read... [20:08:48]Read from MH i2c: D1 [20:08:48]MH_I2C_Read... [20:08:48]Read from MH i2c: D1 01 00 [20:08:48]MH_I2C_Read... [20:08:48]Read from MH i2c: D1 01 00 F7 8A 00 52 [20:08:48]Write to MH i2c: 01 00 00 F8 8A 82 [20:08:48]Write i2c OK [20:08:48]MH_I2C_Read... [20:08:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 67 74 47 00 08 11 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 03 DE 02 00 F4 03 04 00 C2 5E 16 67 B6 04 01 00 00 99 20 A4 BF 5E 5C 5A 92 [20:08:48]CommunicateWithHost err = 0 [20:08:48]CheckOFDResponse [20:08:48]1017 (14) - 77093643461234 [20:08:48]1041 (16) - 0000000000965340 [20:08:48]1040 (4) - 187907 [20:08:48]1012 (4) - 21.10.2024 14:01 [20:08:48]1206 (1) - 0 [20:08:48]OFD Sender: Remove packet 187907 [20:08:48]ProducePacketName [20:08:48]name=ofd_packets/00187907 [20:08:48]NVStorageDeleteData [20:08:49]OFD Sender: No OFD packet to send [20:08:49]*** Cut start [20:08:49]*** Partial cut [20:08:49]*** CUTSNS_PIN = 1 [20:08:49]*** CUTSNS_PIN = 0 [20:08:49]*** Brake cut motor [20:08:50]Read from MH i2c: 01 [20:08:50]MH_I2C_Read... [20:08:50]*** Stop cut motor [20:08:50]*** Cut end [20:08:50]Read from MH i2c: 01 07 00 [20:08:50]MH_I2C_Read... [20:08:50]Read from MH i2c: 01 07 00 F8 8A 00 00 00 00 00 FF 0F 97 [20:08:50]process_action close_receipt done [20:08:50]requested_data is exist [20:08:50]produce_requested_data [20:08:50]requested_item fm.sn is exist - process it [20:08:50]wFMCommunicate request_size=4 [20:08:50]MH_SAM_APDU [20:08:50]CAPDU: 80 11 00 00 [20:08:50]Write to MH i2c: E2 08 00 F9 8A 80 11 00 00 00 00 00 00 FD [20:08:50]Write i2c OK [20:08:50]MH_I2C_Read... [20:08:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:08:50]Read from MH i2c: E2 [20:08:50]MH_I2C_Read... [20:08:50]Read from MH i2c: E2 17 00 [20:08:50]MH_I2C_Read... [20:08:50]Read from MH i2c: E2 17 00 F9 8A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 4B [20:08:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [20:08:50]wFMCommunicate OK [20:08:50]requested_item fd.num is exist - process it [20:08:50]SAM_PROTO_GetFieldsCounters [20:08:50]wFMCommunicate request_size=4 [20:08:50]MH_SAM_APDU [20:08:50]CAPDU: 80 13 00 00 [20:08:50]Write to MH i2c: E2 08 00 FA 8A 80 13 00 00 00 00 00 00 00 [20:08:50]Write i2c OK [20:08:50]MH_I2C_Read... [20:08:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:08:50]Read from MH i2c: E2 [20:08:50]MH_I2C_Read... [20:08:50]Read from MH i2c: E2 62 00 [20:08:50]MH_I2C_Read... [20:08:50]Read from MH i2c: E2 62 00 FA 8A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 03 DE 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 73 01 00 00 5E 04 04 00 73 01 00 00 57 04 04 00 74 01 00 00 19 04 04 00 00 00 00 00 90 00 13 [20:08:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 03 DE 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 73 01 00 00 5E 04 04 00 73 01 00 00 57 04 04 00 74 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:08:50]wFMCommunicate OK [20:08:50]SAM_PROTO_GetFieldsCounters done [20:08:50]requested_item shift.num is exist - process it [20:08:50]requested_item shift.opened is exist - process it [20:08:50]req_shift_opened [20:08:50]FM_GetShiftState [20:08:50]SAM_PROTO_GetShiftState [20:08:50]wFMCommunicate request_size=4 [20:08:50]MH_SAM_APDU [20:08:50]CAPDU: 80 13 01 00 [20:08:50]Write to MH i2c: E2 08 00 FB 8A 80 13 01 00 00 00 00 00 02 [20:08:50]Write i2c OK [20:08:50]MH_I2C_Read... [20:08:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:08:50]Read from MH i2c: E2 [20:08:50]MH_I2C_Read... [20:08:50]Read from MH i2c: E2 0E 00 [20:08:50]MH_I2C_Read... [20:08:50]Read from MH i2c: E2 0E 00 FB 8A 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 61 [20:08:50]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [20:08:50]wFMCommunicate OK [20:08:50]SAM_PROTO_GetShiftState done [20:08:50]FM_GetShiftState done [20:08:50]req_shift_opened done [20:08:50]requested_item shift.open_date is exist - process it [20:08:50]req_shift_open_date [20:08:50]req_shift_open_date done [20:08:50]produce_requested_data done [20:08:50]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187907,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [20:08:50]process_action_free close_receipt [20:08:50]json_value_free [20:08:50]json_value_free done [20:08:50]process_json_proto returns [20:08:50]Send response to host [20:08:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187907,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [20:08:50]free response buf [20:08:50]execute_script done [20:08:50]execute_script returns [20:08:50]free content buf [20:08:50]Sock 8.Close socket [20:08:50]Sock 8.Thread stoped [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:12:00]OFD Sender: No OFD packet to send [20:12:05]OFD Sender: No OFD packet to send [20:12:10]OFD Sender: No OFD packet to send [20:12:15]OFD Sender: No OFD packet to send [20:12:20]OFD Sender: No OFD packet to send [20:12:25]OFD Sender: No OFD packet to send [20:12:30]OFD Sender: No OFD packet to send [20:12:35]OFD Sender: No OFD packet to send [20:12:40]OFD Sender: No OFD packet to send [20:12:45]OFD Sender: No OFD packet to send [20:12:50]OFD Sender: No OFD packet to send [20:12:55]OFD Sender: No OFD packet to send [20:13:00]OFD Sender: No OFD packet to send [20:13:04]accept exits with 9 [20:13:04]New connection [20:13:04]New thread 3067157860 created [20:13:04]Thread 3067014500 joined [20:13:04]Waiting for new connection... [20:13:04] Sock 9.Parse request [20:13:04]Sock 9.Check first char [20:13:04]Sock 9.First char is OK [20:13:04]request: POST /json_proto HTTP/1.0 [20:13:04]Method: POST [20:13:04]URL: /json_proto [20:13:04]Method is POST - this is cgi request [20:13:04]url: /json_proto [20:13:04]query_string will be loaded in cgi processing [20:13:04]execute_cgi json_proto POST (null) [20:13:04]execute_cgi path=json_proto method=POST [20:13:04]POST find Content-Length [20:13:04]Host: 172.17.42.131:8080 [20:13:04]Content-Length: 677 [20:13:04]Content-Type: application/json [20:13:04] [20:13:04]POST finish read [20:13:04]Found Content-Length = 677 [20:13:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209961", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "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" ] } } [20:13:04]execute_script... [20:13:04]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209961", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "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" ] } } [20:13:04]POST & json_proto [20:13:04]process_json_proto [20:13:04]json parsed OK: [20:13:04]protocol is kg_v1.0 [20:13:04]action value=close_receipt [20:13:04]process_action close_receipt [20:13:04]cmd_close_receipt [20:13:04]MH_GetDate [20:13:04]Write to MH i2c: F0 00 00 FC 8A 75 [20:13:04]Write i2c OK [20:13:04]MH_I2C_Read... [20:13:04]Read from MH i2c: F0 [20:13:04]MH_I2C_Read... [20:13:04]Read from MH i2c: F0 09 00 [20:13:04]MH_I2C_Read... [20:13:04]Read from MH i2c: F0 09 00 FC 8A 00 D6 B5 16 67 A0 18 CA 66 6E [20:13:04]GetLastDocTimeStamp 1729541331 [20:13:04]current date 1729541590 [20:13:04]FM_GetShiftState [20:13:04]SAM_PROTO_GetShiftState [20:13:04]wFMCommunicate request_size=4 [20:13:04]MH_SAM_APDU [20:13:04]CAPDU: 80 13 01 00 [20:13:04]Write to MH i2c: E2 08 00 FD 8A 80 13 01 00 00 00 00 00 04 [20:13:04]Write i2c OK [20:13:04]MH_I2C_Read... [20:13:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:13:04]Read from MH i2c: E2 [20:13:04]MH_I2C_Read... [20:13:04]Read from MH i2c: E2 0E 00 [20:13:04]MH_I2C_Read... [20:13:04]Read from MH i2c: E2 0E 00 FD 8A 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 63 [20:13:04]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [20:13:04]wFMCommunicate OK [20:13:04]SAM_PROTO_GetShiftState done [20:13:04]FM_GetShiftState done [20:13:04]opened in 1729469754 [20:13:04]opened+sec_in_day 1729556154 [20:13:04]quantity*price = 30038 [20:13:04]sum+1 = 30039 [20:13:04]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 372 21.10.2024 20:13 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 187908 ФПД: 241337487955015 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T201310&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187908&fm=241337487955015&tin=02508201610067®Number=0000000000100030&sum=30000 [20:13:05]StoreToDocumentArchive [20:13:05]shift 460 fd 187908 [20:13:05]save to /storage/0460/doc_00187908 [20:13:05]save last doc name /storage/0460/doc_00187908 to /storage/kkm_last_doc_name [20:13:05]save OK [20:13:05]Clear old archive folders... [20:13:05]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:13:05]tlvbuf is 013759D0 [20:13:05]SAM_PROTO_ClearQueue [20:13:05]wFMCommunicate request_size=4 [20:13:05]MH_SAM_APDU [20:13:05]CAPDU: 80 09 00 00 [20:13:05]Write to MH i2c: E2 08 00 0A 8B 80 09 00 00 00 00 00 00 07 [20:13:05]Write i2c OK [20:13:05]MH_I2C_Read... [20:13:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:13:05]Read from MH i2c: E2 [20:13:05]MH_I2C_Read... [20:13:05]Read from MH i2c: E2 03 00 [20:13:05]MH_I2C_Read... [20:13:05]Read from MH i2c: E2 03 00 0A 8B 00 90 00 09 [20:13:05]RAPDU: 90 00 [20:13:05]wFMCommunicate OK [20:13:05]SAM_PROTO_ClearQueue done [20:13:05]KKMCreateOFDPacket [20:13:05]OFDProtocolAddRootSTLVToBuf [20:13:05]FM_MakeSignedData [20:13:05]FM_MakeSignedData [20:13:05]SAM_PROTO_SignData [20:13:05]wFMCommunicate request_size=4 [20:13:05]MH_SAM_APDU [20:13:05]CAPDU: 80 0D 01 02 [20:13:05]Write to MH i2c: E2 08 00 0B 8B 80 0D 01 02 00 00 00 00 0F [20:13:05]Write i2c OK [20:13:05]MH_I2C_Read... [20:13:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:13:06]Read from MH i2c: E2 [20:13:06]MH_I2C_Read... [20:13:06]Read from MH i2c: E2 03 00 [20:13:06]MH_I2C_Read... [20:13:06]Read from MH i2c: E2 03 00 0B 8B 00 90 00 0A [20:13:06]RAPDU: 90 00 [20:13:06]wFMCommunicate OK [20:13:06]wFMCommunicate request_size=255 [20:13:06]MH_SAM_APDU [20:13: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 33 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 74 01 00 00 F4 03 04 00 D6 B5 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 04 DE 02 00 35 04 06 00 DB [20:13:06]Write to MH i2c: E2 02 01 0C 8B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 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 74 01 00 00 F4 03 04 00 D6 B5 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 04 DE 02 00 35 04 06 00 DB 00 00 7F [20:13:06]Write i2c OK [20:13:06]MH_I2C_Read... [20:13:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:13:06]Read from MH i2c: E2 [20:13:06]MH_I2C_Read... [20:13:06]Read from MH i2c: E2 03 00 [20:13:06]MH_I2C_Read... [20:13:06]Read from MH i2c: E2 03 00 0C 8B 00 90 00 0B [20:13:06]RAPDU: 90 00 [20:13:06]wFMCommunicate OK [20:13:06]wFMCommunicate request_size=10 [20:13:06]MH_SAM_APDU [20:13:06]CAPDU: 80 0D 02 02 05 7E C3 3D 94 47 [20:13:06]Write to MH i2c: E2 0D 00 0D 8B 80 0D 02 02 05 00 7E C3 3D 94 47 00 00 75 [20:13:06]Write i2c OK [20:13:06]MH_I2C_Read... [20:13:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:13:06]Read from MH i2c: E2 [20:13:06]MH_I2C_Read... [20:13:06]Read from MH i2c: E2 03 00 [20:13:06]MH_I2C_Read... [20:13:06]Read from MH i2c: E2 03 00 0D 8B 00 90 00 0C [20:13:06]RAPDU: 90 00 [20:13:06]wFMCommunicate OK [20:13:06]wFMCommunicate request_size=4 [20:13:06]MH_SAM_APDU [20:13:06]CAPDU: 80 0D 03 02 [20:13:06]Write to MH i2c: E2 08 00 0E 8B 80 0D 03 02 00 00 00 00 14 [20:13:06]Write i2c OK [20:13:06]MH_I2C_Read... [20:13:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:13:06]Read from MH i2c: E2 [20:13:06]MH_I2C_Read... [20:13:06]Read from MH i2c: E2 0B 00 [20:13:06]MH_I2C_Read... [20:13:06]Read from MH i2c: E2 0B 00 0E 8B 00 81 99 68 92 87 6D AC 12 90 00 DB [20:13:06]RAPDU: 81 99 68 92 87 6D AC 12 90 00 [20:13:06]wFMCommunicate OK [20:13:06]SAM_PROTO_SignData done [20:13:06]FM_MakeSignedData done [20:13:06]CreateOFDProtocolMessage [20:13:06]wFMCommunicate request_size=4 [20:13:06]MH_SAM_APDU [20:13:06]CAPDU: 80 11 00 00 [20:13:06]Write to MH i2c: E2 08 00 0F 8B 80 11 00 00 00 00 00 00 14 [20:13:06]Write i2c OK [20:13:06]MH_I2C_Read... [20:13:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:13:06]Read from MH i2c: E2 [20:13:06]MH_I2C_Read... [20:13:06]Read from MH i2c: E2 17 00 [20:13:06]MH_I2C_Read... [20:13:06]Read from MH i2c: E2 17 00 0F 8B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 62 [20:13:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [20:13:06]wFMCommunicate OK [20:13:06]CreateOFDProtocolMessage done [20:13:06]OFDSenderStorePacket 187908 [20:13:06]StoreOFDPacket docnum=187908 [20:13:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 86 78 07 01 C8 40 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 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 74 01 00 00 F4 03 04 00 D6 B5 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 04 DE 02 00 35 04 06 00 DB 7E C3 3D 94 47 81 99 68 92 87 6D AC 12 [20:13:06]CheckFolder [20:13:06]dirname=/storage/ofd_packets [20:13:06]CheckFolder done [20:13:06]ProducePacketName [20:13:06]name=ofd_packets/00187908 [20:13:06]NVStorageSaveData ofd_packets/00187908 [20:13:06]File name is /storage/ofd_packets/00187908 [20:13:06]Write 301 bytes [20:13:06]NVStorageSaveData done [20:13:06]OFDSenderStorePacket done [20:13:06]KKMCreateOFDPacket done [20:13:06]NVStorageSaveData kkm_last_timestamp [20:13:06]File name is /storage/kkm_last_timestamp [20:13:06]Write 4 bytes [20:13:06]NVStorageSaveData done [20:13:06]ExternCall_PrintAddStr [20:13:06]wPrintStart [20:13:06]Write to MH i2c: 01 00 00 10 8B 9B [20:13:06]Write i2c OK [20:13:06]MH_I2C_Read... [20:13:06]Read from MH i2c: 01 [20:13:06]MH_I2C_Read... [20:13:06]Read from MH i2c: 01 07 00 [20:13:06]MH_I2C_Read... [20:13:06]Read from MH i2c: 01 07 00 10 8B 00 00 00 00 00 FF 0F B0 [20:13:06]RasterBufferAndPrint [20:13:06]line Счет N : (1)209961 [20:13:06]line ИНН: 02508201610067 [20:13:06]line Контрольно-Кассовый Чек [20:13:06]line ПРОДАЖА [20:13:06]line ТРК (МРК, ГНК) : 32 [20:13:06]line Товар: 2710124130 [20:13:06]line Аи-92-К-3 [20:13:06]line 4.490 * 66.90 [20:13:06]line = 300.38 [20:13:06]line НДС 12% НСП 1% [20:13:06]line > о реализуемом товаре [20:13:06]line ОКРУГЛЕНИЕ: -0.38 [20:13:06]line ИТОГО: 300.00 [20:13:06]line Внесено: 300.00 [20:13:06]line СДАЧА: 0.00 [20:13:06]line НСП 1% : 2.66 [20:13:06]line НДС 12% : 31.90 [20:13:06]line Наличными: 300.00 [20:13:06]line Безнал.: 0.00 [20:13:06]line Место: АЗС № 86 "Партнер Нефть" [20:13:06]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [20:13:06]line СНО: Общий режим [20:13:06]line Чек 372 21.10.2024 20:13 [20:13:06]line Смена: 460 ФФД: 1.0 [20:13:06]line ЗНМ: 0300000155 [20:13:06]line РНМ: 0000000000100030 [20:13:06]line Версия ККМ: 001 [20:13:06]line ФМ: 0000000000965340 [20:13:06]line ФД: 187908 [20:13:06]line ФПД: 241337487955015 [20:13:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T201310&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187908&fm=241337487955015&tin=02508201610067®Number=0000000000100030&sum=30000 [20:13:06]written 0, free lines is 4095 [20:13:06]OFD Sender: Processing packet 187908 [packets to send 1062, broken 1061] [20:13:06]ProducePacketName [20:13:06]name=ofd_packets/00187908 [20:13:06]OFD Sender: To server: pG, [20:13:06]CommunicateWithHost lk.salyk.kg:30040 [20:13:06]ConnectInit lk.salyk.kg [20:13:06]Connected sock=10 [20:13:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 86 78 07 01 C8 40 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 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 74 01 00 00 F4 03 04 00 D6 B5 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 04 DE 02 00 35 04 06 00 DB 7E C3 3D 94 47 81 99 68 92 87 6D AC 12 [20:13:06]Write to MH i2c: 01 00 00 3B 8B C6 [20:13:06]Write i2c OK [20:13:06]MH_I2C_Read... [20:13:06]Read from MH i2c: 01 [20:13:06]MH_I2C_Read... [20:13:06]Read from MH i2c: 01 07 00 [20:13:06]MH_I2C_Read... [20:13:06]Read from MH i2c: 01 07 00 3B 8B 00 00 00 00 00 62 0C 3B [20:13:06]RasterBufferAndPrint [20:13:06]line [20:13:06]line [20:13:06]line [20:13:06]line [20:13:06]line [20:13:06]written 0, free lines is 3174 [20:13:06]MH_Cut [20:13:06]Write to MH i2c: D1 01 00 42 8B 01 9F [20:13:06]Write i2c OK [20:13:06]MH_I2C_Read... [20:13:06]Read from MH i2c: D1 [20:13:06]MH_I2C_Read... [20:13:06]Read from MH i2c: D1 01 00 [20:13:06]MH_I2C_Read... [20:13:06]Read from MH i2c: D1 01 00 42 8B 00 9E [20:13:06]Write to MH i2c: 01 00 00 43 8B CE [20:13:06]Write i2c OK [20:13:06]MH_I2C_Read... [20:13:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 CE D8 47 00 A5 CD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 04 DE 02 00 F4 03 04 00 C5 5F 16 67 B6 04 01 00 00 C4 21 95 D9 B7 11 01 EF [20:13:07]CommunicateWithHost err = 0 [20:13:07]CheckOFDResponse [20:13:07]1017 (14) - 77093643461234 [20:13:07]1041 (16) - 0000000000965340 [20:13:07]1040 (4) - 187908 [20:13:07]1012 (4) - 21.10.2024 14:05 [20:13:07]1206 (1) - 0 [20:13:07]OFD Sender: Remove packet 187908 [20:13:07]ProducePacketName [20:13:07]name=ofd_packets/00187908 [20:13:07]NVStorageDeleteData [20:13:07]OFD Sender: No OFD packet to send [20:13:08]*** Cut start [20:13:08]*** Partial cut [20:13:08]*** CUTSNS_PIN = 1 [20:13:08]*** CUTSNS_PIN = 0 [20:13:08]*** Brake cut motor [20:13:08]Read from MH i2c: 01 [20:13:08]MH_I2C_Read... [20:13:08]*** Stop cut motor [20:13:08]*** Cut end [20:13:08]Read from MH i2c: 01 07 00 [20:13:08]MH_I2C_Read... [20:13:08]Read from MH i2c: 01 07 00 43 8B 00 00 00 00 00 FF 0F E3 [20:13:08]process_action close_receipt done [20:13:08]requested_data is exist [20:13:08]produce_requested_data [20:13:08]requested_item fm.sn is exist - process it [20:13:08]wFMCommunicate request_size=4 [20:13:08]MH_SAM_APDU [20:13:08]CAPDU: 80 11 00 00 [20:13:08]Write to MH i2c: E2 08 00 44 8B 80 11 00 00 00 00 00 00 49 [20:13:08]Write i2c OK [20:13:08]MH_I2C_Read... [20:13:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:13:08]Read from MH i2c: E2 [20:13:08]MH_I2C_Read... [20:13:08]Read from MH i2c: E2 17 00 [20:13:08]MH_I2C_Read... [20:13:08]Read from MH i2c: E2 17 00 44 8B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 97 [20:13:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [20:13:08]wFMCommunicate OK [20:13:08]requested_item fd.num is exist - process it [20:13:08]SAM_PROTO_GetFieldsCounters [20:13:08]wFMCommunicate request_size=4 [20:13:08]MH_SAM_APDU [20:13:08]CAPDU: 80 13 00 00 [20:13:08]Write to MH i2c: E2 08 00 45 8B 80 13 00 00 00 00 00 00 4C [20:13:08]Write i2c OK [20:13:08]MH_I2C_Read... [20:13:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:13:09]Read from MH i2c: E2 [20:13:09]MH_I2C_Read... [20:13:09]Read from MH i2c: E2 62 00 [20:13:09]MH_I2C_Read... [20:13:09]Read from MH i2c: E2 62 00 45 8B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 04 DE 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 74 01 00 00 5E 04 04 00 74 01 00 00 57 04 04 00 75 01 00 00 19 04 04 00 00 00 00 00 90 00 63 [20:13:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 04 DE 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 74 01 00 00 5E 04 04 00 74 01 00 00 57 04 04 00 75 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:13:09]wFMCommunicate OK [20:13:09]SAM_PROTO_GetFieldsCounters done [20:13:09]requested_item shift.num is exist - process it [20:13:09]requested_item shift.opened is exist - process it [20:13:09]req_shift_opened [20:13:09]FM_GetShiftState [20:13:09]SAM_PROTO_GetShiftState [20:13:09]wFMCommunicate request_size=4 [20:13:09]MH_SAM_APDU [20:13:09]CAPDU: 80 13 01 00 [20:13:09]Write to MH i2c: E2 08 00 46 8B 80 13 01 00 00 00 00 00 4E [20:13:09]Write i2c OK [20:13:09]MH_I2C_Read... [20:13:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:13:09]Read from MH i2c: E2 [20:13:09]MH_I2C_Read... [20:13:09]Read from MH i2c: E2 0E 00 [20:13:09]MH_I2C_Read... [20:13:09]Read from MH i2c: E2 0E 00 46 8B 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 AD [20:13:09]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [20:13:09]wFMCommunicate OK [20:13:09]SAM_PROTO_GetShiftState done [20:13:09]FM_GetShiftState done [20:13:09]req_shift_opened done [20:13:09]requested_item shift.open_date is exist - process it [20:13:09]req_shift_open_date [20:13:09]req_shift_open_date done [20:13:09]produce_requested_data done [20:13:09]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187908,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [20:13:09]process_action_free close_receipt [20:13:09]json_value_free [20:13:09]json_value_free done [20:13:09]process_json_proto returns [20:13:09]Send response to host [20:13:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187908,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [20:13:09]free response buf [20:13:09]execute_script done [20:13:09]execute_script returns [20:13:09]free content buf [20:13:09]Sock 9.Close socket [20:13:09]Sock 9.Thread stoped [20:13:09]accept exits with 8 [20:13:09]New connection [20:13:09]New thread 3067014500 created [20:13:09]Thread 3067157860 joined [20:13:09]Waiting for new connection... [20:13:09] Sock 8.Parse request [20:13:09]Sock 8.Check first char [20:13:09]Sock 8.First char is OK [20:13:09]request: POST /json_proto HTTP/1.0 [20:13:09]Method: POST [20:13:09]URL: /json_proto [20:13:09]Method is POST - this is cgi request [20:13:09]url: /json_proto [20:13:09]query_string will be loaded in cgi processing [20:13:09]execute_cgi json_proto POST (null) [20:13:09]execute_cgi path=json_proto method=POST [20:13:09]POST find Content-Length [20:13:09]Host: 172.17.42.131:8080 [20:13:09]Content-Length: 767 [20:13:09]Content-Type: application/json [20:13:09] [20:13:09]POST finish read [20:13:09]Found Content-Length = 767 [20:13:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209960", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 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: Mbank", "payments": [ { "type": 1, "sum" : 9000.74 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:13:09]execute_script... [20:13: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)209960", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 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: Mbank", "payments": [ { "type": 1, "sum" : 9000.74 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:13:09]POST & json_proto [20:13:09]process_json_proto [20:13:09]json parsed OK: [20:13:09]protocol is kg_v1.0 [20:13:09]action value=close_receipt [20:13:09]process_action close_receipt [20:13:09]cmd_close_receipt [20:13:09]MH_GetDate [20:13:09]Write to MH i2c: F0 00 00 47 8B C1 [20:13:09]Write i2c OK [20:13:09]MH_I2C_Read... [20:13:09]Read from MH i2c: F0 [20:13:09]MH_I2C_Read... [20:13:09]Read from MH i2c: F0 09 00 [20:13:09]MH_I2C_Read... [20:13:09]Read from MH i2c: F0 09 00 47 8B 00 DB B5 16 67 A0 18 CA 66 BF [20:13:09]GetLastDocTimeStamp 1729541590 [20:13:09]current date 1729541595 [20:13:09]FM_GetShiftState [20:13:09]SAM_PROTO_GetShiftState [20:13:09]wFMCommunicate request_size=4 [20:13:09]MH_SAM_APDU [20:13:09]CAPDU: 80 13 01 00 [20:13:09]Write to MH i2c: E2 08 00 48 8B 80 13 01 00 00 00 00 00 50 [20:13:09]Write i2c OK [20:13:09]MH_I2C_Read... [20:13:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:13:09]Read from MH i2c: E2 [20:13:09]MH_I2C_Read... [20:13:09]Read from MH i2c: E2 0E 00 [20:13:09]MH_I2C_Read... [20:13:09]Read from MH i2c: E2 0E 00 48 8B 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 AF [20:13:09]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [20:13:09]wFMCommunicate OK [20:13:09]SAM_PROTO_GetShiftState done [20:13:09]FM_GetShiftState done [20:13:09]opened in 1729469754 [20:13:09]opened+sec_in_day 1729556154 [20:13:09]quantity*price = 900074 [20:13:09]sum+1 = 900075 [20:13:09]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 9000.74 НСП 1% : 79.65 НДС 12% : 955.83 Наличными: 0.00 Безнал.: 9000.74 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 373 21.10.2024 20:13 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000965340 ФД: 187909 ФПД: 201075729308704 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T201315&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187909&fm=201075729308704&tin=02508201610067®Number=0000000000100030&sum=900074 [20:13:10]StoreToDocumentArchive [20:13:10]shift 460 fd 187909 [20:13:10]save to /storage/0460/doc_00187909 [20:13:10]save last doc name /storage/0460/doc_00187909 to /storage/kkm_last_doc_name [20:13:10]save OK [20:13:10]Clear old archive folders... [20:13:10]ProcessDocumentItem done err = 0, tmpTLVsize=248 [20:13:10]tlvbuf is 01304D80 [20:13:10]SAM_PROTO_ClearQueue [20:13:10]wFMCommunicate request_size=4 [20:13:10]MH_SAM_APDU [20:13:10]CAPDU: 80 09 00 00 [20:13:10]Write to MH i2c: E2 08 00 55 8B 80 09 00 00 00 00 00 00 52 [20:13:10]Write i2c OK [20:13:10]MH_I2C_Read... [20:13:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:13:10]Read from MH i2c: E2 [20:13:10]MH_I2C_Read... [20:13:10]Read from MH i2c: E2 03 00 [20:13:10]MH_I2C_Read... [20:13:10]Read from MH i2c: E2 03 00 55 8B 00 90 00 54 [20:13:10]RAPDU: 90 00 [20:13:10]wFMCommunicate OK [20:13:10]SAM_PROTO_ClearQueue done [20:13:10]KKMCreateOFDPacket [20:13:10]OFDProtocolAddRootSTLVToBuf [20:13:10]FM_MakeSignedData [20:13:10]FM_MakeSignedData [20:13:10]SAM_PROTO_SignData [20:13:10]wFMCommunicate request_size=4 [20:13:10]MH_SAM_APDU [20:13:10]CAPDU: 80 0D 01 02 [20:13:10]Write to MH i2c: E2 08 00 56 8B 80 0D 01 02 00 00 00 00 5A [20:13:10]Write i2c OK [20:13:10]MH_I2C_Read... [20:13:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:13:10]Read from MH i2c: E2 [20:13:10]MH_I2C_Read... [20:13:10]Read from MH i2c: E2 03 00 [20:13:10]MH_I2C_Read... [20:13:10]Read from MH i2c: E2 03 00 56 8B 00 90 00 55 [20:13:10]RAPDU: 90 00 [20:13:10]wFMCommunicate OK [20:13:10]wFMCommunicate request_size=255 [20:13:10]MH_SAM_APDU [20:13:10]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 75 01 00 00 F4 03 04 00 DB B5 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 05 DE 02 00 35 04 06 00 B6 E0 97 6B [20:13:10]Write to MH i2c: E2 02 01 57 8B 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 75 01 00 00 F4 03 04 00 DB B5 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 05 DE 02 00 35 04 06 00 B6 E0 97 6B 00 00 A8 [20:13:10]Write i2c OK [20:13:10]MH_I2C_Read... [20:13:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:13:11]Read from MH i2c: E2 [20:13:11]MH_I2C_Read... [20:13:11]Read from MH i2c: E2 03 00 [20:13:11]MH_I2C_Read... [20:13:11]Read from MH i2c: E2 03 00 57 8B 00 90 00 56 [20:13:11]RAPDU: 90 00 [20:13:11]wFMCommunicate OK [20:13:11]wFMCommunicate request_size=7 [20:13:11]MH_SAM_APDU [20:13:11]CAPDU: 80 0D 02 02 02 1C 20 [20:13:11]Write to MH i2c: E2 0A 00 58 8B 80 0D 02 02 02 00 1C 20 00 00 9D [20:13:11]Write i2c OK [20:13:11]MH_I2C_Read... [20:13:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:13:11]Read from MH i2c: E2 [20:13:11]MH_I2C_Read... [20:13:11]Read from MH i2c: E2 03 00 [20:13:11]MH_I2C_Read... [20:13:11]Read from MH i2c: E2 03 00 58 8B 00 90 00 57 [20:13:11]RAPDU: 90 00 [20:13:11]wFMCommunicate OK [20:13:11]wFMCommunicate request_size=4 [20:13:11]MH_SAM_APDU [20:13:11]CAPDU: 80 0D 03 02 [20:13:11]Write to MH i2c: E2 08 00 59 8B 80 0D 03 02 00 00 00 00 5F [20:13:11]Write i2c OK [20:13:11]MH_I2C_Read... [20:13:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:13:11]Read from MH i2c: E2 [20:13:11]MH_I2C_Read... [20:13:11]Read from MH i2c: E2 0B 00 [20:13:11]MH_I2C_Read... [20:13:11]Read from MH i2c: E2 0B 00 59 8B 00 E6 9B C9 4E 97 BF 1B 11 90 00 7A [20:13:11]RAPDU: E6 9B C9 4E 97 BF 1B 11 90 00 [20:13:11]wFMCommunicate OK [20:13:11]SAM_PROTO_SignData done [20:13:11]FM_MakeSignedData done [20:13:11]CreateOFDProtocolMessage [20:13:11]wFMCommunicate request_size=4 [20:13:11]MH_SAM_APDU [20:13:11]CAPDU: 80 11 00 00 [20:13:11]Write to MH i2c: E2 08 00 5A 8B 80 11 00 00 00 00 00 00 5F [20:13:11]Write i2c OK [20:13:11]MH_I2C_Read... [20:13:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:13:11]Read from MH i2c: E2 [20:13:11]MH_I2C_Read... [20:13:11]Read from MH i2c: E2 17 00 [20:13:11]MH_I2C_Read... [20:13:11]Read from MH i2c: E2 17 00 5A 8B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 AD [20:13:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [20:13:11]wFMCommunicate OK [20:13:11]CreateOFDProtocolMessage done [20:13:11]OFDSenderStorePacket 187909 [20:13:11]StoreOFDPacket docnum=187909 [20:13:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 37 05 04 01 1A 52 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 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 75 01 00 00 F4 03 04 00 DB B5 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 05 DE 02 00 35 04 06 00 B6 E0 97 6B 1C 20 E6 9B C9 4E 97 BF 1B 11 [20:13:11]CheckFolder [20:13:11]dirname=/storage/ofd_packets [20:13:11]CheckFolder done [20:13:11]ProducePacketName [20:13:11]name=ofd_packets/00187909 [20:13:11]NVStorageSaveData ofd_packets/00187909 [20:13:11]File name is /storage/ofd_packets/00187909 [20:13:11]Write 298 bytes [20:13:11]NVStorageSaveData done [20:13:11]OFDSenderStorePacket done [20:13:11]KKMCreateOFDPacket done [20:13:11]NVStorageSaveData kkm_last_timestamp [20:13:11]File name is /storage/kkm_last_timestamp [20:13:11]Write 4 bytes [20:13:11]NVStorageSaveData done [20:13:11]ExternCall_PrintAddStr [20:13:11]wPrintStart [20:13:11]Write to MH i2c: 01 00 00 5B 8B E6 [20:13:11]Write i2c OK [20:13:11]MH_I2C_Read... [20:13:11]Read from MH i2c: 01 [20:13:11]MH_I2C_Read... [20:13:11]Read from MH i2c: 01 07 00 [20:13:11]MH_I2C_Read... [20:13:11]Read from MH i2c: 01 07 00 5B 8B 00 00 00 00 00 FF 0F FB [20:13:11]RasterBufferAndPrint [20:13:11]line Счет N : (1)209960 [20:13:11]line ИНН: 02508201610067 [20:13:11]line Контрольно-Кассовый Чек [20:13:11]line ПРОДАЖА [20:13:11]line ТРК (МРК, ГНК) : 51 [20:13:11]line Товар: 2710194210 [20:13:11]line ДТ-К-5 [20:13:11]line 118.120 * 76.20 [20:13:11]line = 9000.74 [20:13:11]line НДС 12% НСП 1% [20:13:11]line > о реализуемом товаре [20:13:11]line ИТОГО: 9000.74 [20:13:11]line НСП 1% : 79.65 [20:13:11]line НДС 12% : 955.83 [20:13:11]line Наличными: 0.00 [20:13:11]line Безнал.: 9000.74 [20:13:11]line Место: АЗС № 86 "Партнер Нефть" [20:13:11]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [20:13:11]line СНО: Общий режим [20:13:11]line Чек 373 21.10.2024 20:13 [20:13:11]line Смена: 460 ФФД: 1.0 [20:13:11]line ЗНМ: 0300000155 [20:13:11]line РНМ: 0000000000100030 [20:13:11]line Версия ККМ: 001 [20:13:11]line Платежная система: Mbank [20:13:11]OFD Sender: Processing packet 187909 [packets to send 1062, broken 1061] [20:13:11]line ФМ: 0000000000965340 [20:13:11]ProducePacketName [20:13:11]line ФД: 187909 [20:13:11]name=ofd_packets/00187909 [20:13:11]line ФПД: 201075729308704 [20:13:11]OFD Sender: To server: pG, [20:13:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T201315&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187909&fm=201075729308704&tin=02508201610067®Number=0000000000100030&sum=900074 [20:13:11]CommunicateWithHost lk.salyk.kg:30040 [20:13:11]ConnectInit lk.salyk.kg [20:13:11]written 0, free lines is 4095 [20:13:12]Connected sock=10 [20:13:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 37 05 04 01 1A 52 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 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 75 01 00 00 F4 03 04 00 DB B5 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 05 DE 02 00 35 04 06 00 B6 E0 97 6B 1C 20 E6 9B C9 4E 97 BF 1B 11 [20:13:12]Write to MH i2c: 01 00 00 84 8B 0F [20:13:12]Write i2c OK [20:13:12]MH_I2C_Read... [20:13:12]Read from MH i2c: 01 [20:13:12]MH_I2C_Read... [20:13:12]Read from MH i2c: 01 07 00 [20:13:12]MH_I2C_Read... [20:13:12]Read from MH i2c: 01 07 00 84 8B 00 00 00 00 00 9D 0C BF [20:13:12]RasterBufferAndPrint [20:13:12]line [20:13:12]line [20:13:12]line [20:13:12]line [20:13:12]line [20:13:12]written 0, free lines is 3238 [20:13:12]MH_Cut [20:13:12]Write to MH i2c: D1 01 00 8B 8B 01 E8 [20:13:12]Write i2c OK [20:13:12]MH_I2C_Read... [20:13:12]Read from MH i2c: D1 [20:13:12]MH_I2C_Read... [20:13:12]Read from MH i2c: D1 01 00 [20:13:12]MH_I2C_Read... [20:13:12]Read from MH i2c: D1 01 00 8B 8B 00 E7 [20:13:12]Write to MH i2c: 01 00 00 8C 8B 17 [20:13:12]Write i2c OK [20:13:12]MH_I2C_Read... [20:13:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 3C 5E 47 00 EA 9C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 05 DE 02 00 F4 03 04 00 CA 5F 16 67 B6 04 01 00 00 EE A4 93 D9 B2 E1 89 2B [20:13:12]CommunicateWithHost err = 0 [20:13:12]CheckOFDResponse [20:13:12]1017 (14) - 77093643461234 [20:13:12]1041 (16) - 0000000000965340 [20:13:12]1040 (4) - 187909 [20:13:12]1012 (4) - 21.10.2024 14:06 [20:13:12]1206 (1) - 0 [20:13:12]OFD Sender: Remove packet 187909 [20:13:12]ProducePacketName [20:13:12]name=ofd_packets/00187909 [20:13:12]NVStorageDeleteData [20:13:12]OFD Sender: No OFD packet to send [20:13:13]*** Cut start [20:13:13]*** Partial cut [20:13:13]*** CUTSNS_PIN = 1 [20:13:13]*** CUTSNS_PIN = 0 [20:13:13]*** Brake cut motor [20:13:14]Read from MH i2c: 01 [20:13:14]MH_I2C_Read... [20:13:14]*** Stop cut motor [20:13:14]*** Cut end [20:13:14]Read from MH i2c: 01 07 00 [20:13:14]MH_I2C_Read... [20:13:14]Read from MH i2c: 01 07 00 8C 8B 00 00 00 00 00 FF 0F 2C [20:13:14]process_action close_receipt done [20:13:14]requested_data is exist [20:13:14]produce_requested_data [20:13:14]requested_item fm.sn is exist - process it [20:13:14]wFMCommunicate request_size=4 [20:13:14]MH_SAM_APDU [20:13:14]CAPDU: 80 11 00 00 [20:13:14]Write to MH i2c: E2 08 00 8D 8B 80 11 00 00 00 00 00 00 92 [20:13:14]Write i2c OK [20:13:14]MH_I2C_Read... [20:13:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:13:14]Read from MH i2c: E2 [20:13:14]MH_I2C_Read... [20:13:14]Read from MH i2c: E2 17 00 [20:13:14]MH_I2C_Read... [20:13:14]Read from MH i2c: E2 17 00 8D 8B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 E0 [20:13:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [20:13:14]wFMCommunicate OK [20:13:14]requested_item fd.num is exist - process it [20:13:14]SAM_PROTO_GetFieldsCounters [20:13:14]wFMCommunicate request_size=4 [20:13:14]MH_SAM_APDU [20:13:14]CAPDU: 80 13 00 00 [20:13:14]Write to MH i2c: E2 08 00 8E 8B 80 13 00 00 00 00 00 00 95 [20:13:14]Write i2c OK [20:13:14]MH_I2C_Read... [20:13:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:13:14]Read from MH i2c: E2 [20:13:14]MH_I2C_Read... [20:13:14]Read from MH i2c: E2 62 00 [20:13:14]MH_I2C_Read... [20:13:14]Read from MH i2c: E2 62 00 8E 8B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 05 DE 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 75 01 00 00 5E 04 04 00 75 01 00 00 57 04 04 00 76 01 00 00 19 04 04 00 00 00 00 00 90 00 B0 [20:13:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 05 DE 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 75 01 00 00 5E 04 04 00 75 01 00 00 57 04 04 00 76 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:13:14]wFMCommunicate OK [20:13:14]SAM_PROTO_GetFieldsCounters done [20:13:14]requested_item shift.num is exist - process it [20:13:14]requested_item shift.opened is exist - process it [20:13:14]req_shift_opened [20:13:14]FM_GetShiftState [20:13:14]SAM_PROTO_GetShiftState [20:13:14]wFMCommunicate request_size=4 [20:13:14]MH_SAM_APDU [20:13:14]CAPDU: 80 13 01 00 [20:13:14]Write to MH i2c: E2 08 00 8F 8B 80 13 01 00 00 00 00 00 97 [20:13:14]Write i2c OK [20:13:14]MH_I2C_Read... [20:13:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:13:14]Read from MH i2c: E2 [20:13:14]MH_I2C_Read... [20:13:14]Read from MH i2c: E2 0E 00 [20:13:14]MH_I2C_Read... [20:13:14]Read from MH i2c: E2 0E 00 8F 8B 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 F6 [20:13:14]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [20:13:14]wFMCommunicate OK [20:13:14]SAM_PROTO_GetShiftState done [20:13:14]FM_GetShiftState done [20:13:14]req_shift_opened done [20:13:14]requested_item shift.open_date is exist - process it [20:13:14]req_shift_open_date [20:13:14]req_shift_open_date done [20:13:14]produce_requested_data done [20:13:14]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187909,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [20:13:14]process_action_free close_receipt [20:13:14]json_value_free [20:13:14]json_value_free done [20:13:14]process_json_proto returns [20:13:14]Send response to host [20:13:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187909,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [20:13:14]free response buf [20:13:14]execute_script done [20:13:14]execute_script returns [20:13:14]free content buf [20:13:14]Sock 8.Close socket [20:13:14]Sock 8.Thread stoped [20:13:17]OFD Sender: No OFD packet to send [20:13:22]OFD Sender: No OFD packet to send [20:13:28]OFD Sender: No OFD packet to send [20:13:33]OFD Sender: No OFD packet to send [20:13:38]OFD Sender: No OFD packet to send [20:13:43]OFD Sender: No OFD packet to send [20:13:48]OFD Sender: No OFD packet to send [20:13:53]OFD Sender: No OFD packet to send [20:13:58]OFD Sender: No OFD packet to send [20:14:03]OFD Sender: No OFD packet to send [20:14:08]OFD Sender: No OFD packet to send [20:14:13]OFD Sender: No OFD packet to send [20:14:18]OFD Sender: No OFD packet to send [20:14:23]OFD Sender: No OFD packet to send [20:14:28]OFD Sender: No OFD packet to send [20:14:33]OFD Sender: No OFD packet to send [20:14:38]OFD Sender: No OFD packet to send [20:14:43]OFD Sender: No OFD packet to send [20:14:48]OFD Sender: No OFD packet to send [20:14:53]OFD Sender: No OFD packet to send [20:14:58]OFD Sender: No OFD packet to send [20:15:03]OFD Sender: No OFD packet to send [20:15:08]OFD Sender: No OFD packet to send [20:15:13]OFD Sender: No OFD packet to send [20:15:18]OFD Sender: No OFD packet to send [20:15:23]OFD Sender: No OFD packet to send [20:15:28]OFD Sender: No OFD packet to send [20:15:33]OFD Sender: No OFD packet to send [20:15:38]OFD Sender: No OFD packet to send [20:15:43]OFD Sender: No OFD packet to send [20:15:48]OFD Sender: No OFD packet to send [20:15:53]OFD Sender: No OFD packet to send [20:15:58]OFD Sender: No OFD packet to send [20:16:03]OFD Sender: No OFD packet to send [20:16:08]OFD Sender: No OFD packet to send [20:16:13]OFD Sender: No OFD packet to send [20:16:18]OFD Sender: No OFD packet to send [20:16:23]OFD Sender: No OFD packet to send [20:16:28]OFD Sender: No OFD packet to send [20:16:33]OFD Sender: No OFD packet to send [20:16:38]OFD Sender: No OFD packet to send [20:16:39]accept exits with 9 [20:16:39]New connection [20:16:39]New thread 3067157860 created [20:16:39]Thread 3067014500 joined [20:16:39]Waiting for new connection... [20:16:39] Sock 9.Parse request [20:16:39]Sock 9.Check first char [20:16:39]Sock 9.First char is OK [20:16:39]request: POST /json_proto HTTP/1.0 [20:16:39]Method: POST [20:16:39]URL: /json_proto [20:16:39]Method is POST - this is cgi request [20:16:39]url: /json_proto [20:16:39]query_string will be loaded in cgi processing [20:16:39]execute_cgi json_proto POST (null) [20:16:39]execute_cgi path=json_proto method=POST [20:16:39]POST find Content-Length [20:16:39]Host: 172.17.42.131:8080 [20:16:39]Content-Length: 682 [20:16:39]Content-Type: application/json [20:16:39] [20:16:39]POST finish read [20:16:39]Found Content-Length = 682 [20:16:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209962", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:16:39]execute_script... [20:16: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)209962", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:16:39]POST & json_proto [20:16:39]process_json_proto [20:16:39]json parsed OK: [20:16:39]protocol is kg_v1.0 [20:16:39]action value=close_receipt [20:16:39]process_action close_receipt [20:16:39]cmd_close_receipt [20:16:39]MH_GetDate [20:16:39]Write to MH i2c: F0 00 00 90 8B 0A [20:16:39]Write i2c OK [20:16:39]MH_I2C_Read... [20:16:39]Read from MH i2c: F0 [20:16:39]MH_I2C_Read... [20:16:39]Read from MH i2c: F0 09 00 [20:16:39]MH_I2C_Read... [20:16:39]Read from MH i2c: F0 09 00 90 8B 00 AC B6 16 67 A0 18 CA 66 DA [20:16:39]GetLastDocTimeStamp 1729541595 [20:16:39]current date 1729541804 [20:16:39]FM_GetShiftState [20:16:39]SAM_PROTO_GetShiftState [20:16:39]wFMCommunicate request_size=4 [20:16:39]MH_SAM_APDU [20:16:39]CAPDU: 80 13 01 00 [20:16:39]Write to MH i2c: E2 08 00 91 8B 80 13 01 00 00 00 00 00 99 [20:16:39]Write i2c OK [20:16:39]MH_I2C_Read... [20:16:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:16:39]Read from MH i2c: E2 [20:16:39]MH_I2C_Read... [20:16:39]Read from MH i2c: E2 0E 00 [20:16:39]MH_I2C_Read... [20:16:39]Read from MH i2c: E2 0E 00 91 8B 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 F8 [20:16:39]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [20:16:39]wFMCommunicate OK [20:16:39]SAM_PROTO_GetShiftState done [20:16:39]FM_GetShiftState done [20:16:39]opened in 1729469754 [20:16:39]opened+sec_in_day 1729556154 [20:16:39]quantity*price = 100021 [20:16:39]sum+1 = 100023 [20:16:39]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 374 21.10.2024 20:16 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 187910 ФПД: 153610074332361 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T201644&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187910&fm=153610074332361&tin=02508201610067®Number=0000000000100030&sum=100000 [20:16:40]StoreToDocumentArchive [20:16:40]shift 460 fd 187910 [20:16:40]save to /storage/0460/doc_00187910 [20:16:40]save last doc name /storage/0460/doc_00187910 to /storage/kkm_last_doc_name [20:16:40]save OK [20:16:40]Clear old archive folders... [20:16:40]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:16:40]tlvbuf is 013562B0 [20:16:40]SAM_PROTO_ClearQueue [20:16:40]wFMCommunicate request_size=4 [20:16:40]MH_SAM_APDU [20:16:40]CAPDU: 80 09 00 00 [20:16:40]Write to MH i2c: E2 08 00 9E 8B 80 09 00 00 00 00 00 00 9B [20:16:40]Write i2c OK [20:16:40]MH_I2C_Read... [20:16:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:16:40]Read from MH i2c: E2 [20:16:40]MH_I2C_Read... [20:16:40]Read from MH i2c: E2 03 00 [20:16:40]MH_I2C_Read... [20:16:40]Read from MH i2c: E2 03 00 9E 8B 00 90 00 9D [20:16:40]RAPDU: 90 00 [20:16:40]wFMCommunicate OK [20:16:40]SAM_PROTO_ClearQueue done [20:16:40]KKMCreateOFDPacket [20:16:40]OFDProtocolAddRootSTLVToBuf [20:16:40]FM_MakeSignedData [20:16:40]FM_MakeSignedData [20:16:40]SAM_PROTO_SignData [20:16:40]wFMCommunicate request_size=4 [20:16:40]MH_SAM_APDU [20:16:40]CAPDU: 80 0D 01 02 [20:16:40]Write to MH i2c: E2 08 00 9F 8B 80 0D 01 02 00 00 00 00 A3 [20:16:40]Write i2c OK [20:16:40]MH_I2C_Read... [20:16:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:16:40]Read from MH i2c: E2 [20:16:40]MH_I2C_Read... [20:16:40]Read from MH i2c: E2 03 00 [20:16:40]MH_I2C_Read... [20:16:40]Read from MH i2c: E2 03 00 9F 8B 00 90 00 9E [20:16:40]RAPDU: 90 00 [20:16:40]wFMCommunicate OK [20:16:40]wFMCommunicate request_size=255 [20:16:40]MH_SAM_APDU [20:16:40]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 01 00 00 F4 03 04 00 AC B6 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 06 DE 02 00 35 04 06 00 8B [20:16:40]Write to MH i2c: E2 02 01 A0 8B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 01 00 00 F4 03 04 00 AC B6 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 06 DE 02 00 35 04 06 00 8B 00 00 C7 [20:16:40]Write i2c OK [20:16:40]MH_I2C_Read... [20:16:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:16:40]Read from MH i2c: E2 [20:16:40]MH_I2C_Read... [20:16:40]Read from MH i2c: E2 03 00 [20:16:40]MH_I2C_Read... [20:16:40]Read from MH i2c: E2 03 00 A0 8B 00 90 00 9F [20:16:40]RAPDU: 90 00 [20:16:40]wFMCommunicate OK [20:16:40]wFMCommunicate request_size=10 [20:16:40]MH_SAM_APDU [20:16:40]CAPDU: 80 0D 02 02 05 B5 21 EA 1C C9 [20:16:40]Write to MH i2c: E2 0D 00 A1 8B 80 0D 02 02 05 00 B5 21 EA 1C C9 00 00 55 [20:16:40]Write i2c OK [20:16:40]MH_I2C_Read... [20:16:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:16:40]Read from MH i2c: E2 [20:16:40]MH_I2C_Read... [20:16:40]Read from MH i2c: E2 03 00 [20:16:40]MH_I2C_Read... [20:16:40]Read from MH i2c: E2 03 00 A1 8B 00 90 00 A0 [20:16:40]RAPDU: 90 00 [20:16:40]wFMCommunicate OK [20:16:40]wFMCommunicate request_size=4 [20:16:40]MH_SAM_APDU [20:16:40]CAPDU: 80 0D 03 02 [20:16:40]Write to MH i2c: E2 08 00 A2 8B 80 0D 03 02 00 00 00 00 A8 [20:16:40]Write i2c OK [20:16:40]MH_I2C_Read... [20:16:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:16:40]Read from MH i2c: E2 [20:16:40]MH_I2C_Read... [20:16:40]Read from MH i2c: E2 0B 00 [20:16:40]MH_I2C_Read... [20:16:40]Read from MH i2c: E2 0B 00 A2 8B 00 01 AC E8 51 8C 68 E5 FD 90 00 65 [20:16:40]RAPDU: 01 AC E8 51 8C 68 E5 FD 90 00 [20:16:40]wFMCommunicate OK [20:16:40]SAM_PROTO_SignData done [20:16:40]FM_MakeSignedData done [20:16:40]CreateOFDProtocolMessage [20:16:40]wFMCommunicate request_size=4 [20:16:40]MH_SAM_APDU [20:16:40]CAPDU: 80 11 00 00 [20:16:40]Write to MH i2c: E2 08 00 A3 8B 80 11 00 00 00 00 00 00 A8 [20:16:40]Write i2c OK [20:16:40]MH_I2C_Read... [20:16:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:16:40]Read from MH i2c: E2 [20:16:40]MH_I2C_Read... [20:16:40]Read from MH i2c: E2 17 00 [20:16:40]MH_I2C_Read... [20:16:40]Read from MH i2c: E2 17 00 A3 8B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 F6 [20:16:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [20:16:40]wFMCommunicate OK [20:16:40]CreateOFDProtocolMessage done [20:16:40]OFDSenderStorePacket 187910 [20:16:40]StoreOFDPacket docnum=187910 [20:16:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 4E A1 07 01 C0 42 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 01 00 00 F4 03 04 00 AC B6 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 06 DE 02 00 35 04 06 00 8B B5 21 EA 1C C9 01 AC E8 51 8C 68 E5 FD [20:16:40]CheckFolder [20:16:40]dirname=/storage/ofd_packets [20:16:40]CheckFolder done [20:16:40]ProducePacketName [20:16:40]name=ofd_packets/00187910 [20:16:40]NVStorageSaveData ofd_packets/00187910 [20:16:40]File name is /storage/ofd_packets/00187910 [20:16:40]Write 301 bytes [20:16:40]NVStorageSaveData done [20:16:40]OFDSenderStorePacket done [20:16:40]KKMCreateOFDPacket done [20:16:40]NVStorageSaveData kkm_last_timestamp [20:16:40]File name is /storage/kkm_last_timestamp [20:16:40]Write 4 bytes [20:16:40]NVStorageSaveData done [20:16:40]ExternCall_PrintAddStr [20:16:40]wPrintStart [20:16:40]Write to MH i2c: 01 00 00 A4 8B 2F [20:16:40]Write i2c OK [20:16:40]MH_I2C_Read... [20:16:40]Read from MH i2c: 01 [20:16:40]MH_I2C_Read... [20:16:40]Read from MH i2c: 01 07 00 [20:16:40]MH_I2C_Read... [20:16:40]Read from MH i2c: 01 07 00 A4 8B 00 00 00 00 00 FF 0F 44 [20:16:40]RasterBufferAndPrint [20:16:40]line Счет N : (1)209962 [20:16:40]line ИНН: 02508201610067 [20:16:40]line Контрольно-Кассовый Чек [20:16:40]line ПРОДАЖА [20:16:40]line ТРК (МРК, ГНК) : 43 [20:16:40]line Товар: 2710124500 [20:16:40]line Аи-95-К-3 [20:16:40]line 13.480 * 74.20 [20:16:40]line = 1000.22 [20:16:40]line НДС 12% НСП 1% [20:16:40]line > о реализуемом товаре [20:16:40]line ОКРУГЛЕНИЕ: -0.22 [20:16:40]line ИТОГО: 1000.00 [20:16:40]line Внесено: 1000.00 [20:16:40]line СДАЧА: 0.00 [20:16:40]line НСП 1% : 8.85 [20:16:40]line НДС 12% : 106.22 [20:16:40]line Наличными: 1000.00 [20:16:40]line Безнал.: 0.00 [20:16:40]line Место: АЗС № 86 "Партнер Нефть" [20:16:40]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [20:16:40]line СНО: Общий режим [20:16:40]line Чек 374 21.10.2024 20:16 [20:16:40]line Смена: 460 ФФД: 1.0 [20:16:40]line ЗНМ: 0300000155 [20:16:40]line РНМ: 0000000000100030 [20:16:40]line Версия ККМ: 001 [20:16:40]line ФМ: 0000000000965340 [20:16:40]line ФД: 187910 [20:16:40]line ФПД: 153610074332361 [20:16:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T201644&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187910&fm=153610074332361&tin=02508201610067®Number=0000000000100030&sum=100000 [20:16:40]written 0, free lines is 4095 [20:16:40]OFD Sender: Processing packet 187910 [packets to send 1062, broken 1061] [20:16:40]ProducePacketName [20:16:40]name=ofd_packets/00187910 [20:16:40]OFD Sender: To server: pG, [20:16:40]CommunicateWithHost lk.salyk.kg:30040 [20:16:40]ConnectInit lk.salyk.kg [20:16:41]Connected sock=8 [20:16:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 4E A1 07 01 C0 42 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 01 00 00 F4 03 04 00 AC B6 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 06 DE 02 00 35 04 06 00 8B B5 21 EA 1C C9 01 AC E8 51 8C 68 E5 FD [20:16:41]Write to MH i2c: 01 00 00 CF 8B 5A [20:16:41]Write i2c OK [20:16:41]MH_I2C_Read... [20:16:41]Read from MH i2c: 01 [20:16:41]MH_I2C_Read... [20:16:41]Read from MH i2c: 01 07 00 [20:16:41]MH_I2C_Read... [20:16:41]Read from MH i2c: 01 07 00 CF 8B 00 00 00 00 00 62 0C CF [20:16:41]RasterBufferAndPrint [20:16:41]line [20:16:41]line [20:16:41]line [20:16:41]line [20:16:41]line [20:16:41]written 0, free lines is 3174 [20:16:41]MH_Cut [20:16:41]Write to MH i2c: D1 01 00 D6 8B 01 33 [20:16:41]Write i2c OK [20:16:41]MH_I2C_Read... [20:16:41]Read from MH i2c: D1 [20:16:41]MH_I2C_Read... [20:16:41]Read from MH i2c: D1 01 00 [20:16:41]MH_I2C_Read... [20:16:41]Read from MH i2c: D1 01 00 D6 8B 00 32 [20:16:41]Write to MH i2c: 01 00 00 D7 8B 62 [20:16:41]Write i2c OK [20:16:41]MH_I2C_Read... [20:16:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 CD 8B 47 00 41 16 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 06 DE 02 00 F4 03 04 00 9B 60 16 67 B6 04 01 00 00 40 5F FA 80 55 4E 7E 1B [20:16:41]CommunicateWithHost err = 0 [20:16:41]CheckOFDResponse [20:16:41]1017 (14) - 77093643461234 [20:16:41]1041 (16) - 0000000000965340 [20:16:41]1040 (4) - 187910 [20:16:41]1012 (4) - 21.10.2024 14:09 [20:16:41]1206 (1) - 0 [20:16:41]OFD Sender: Remove packet 187910 [20:16:41]ProducePacketName [20:16:41]name=ofd_packets/00187910 [20:16:41]NVStorageDeleteData [20:16:42]OFD Sender: No OFD packet to send [20:16:42]*** Cut start [20:16:42]*** Partial cut [20:16:42]*** CUTSNS_PIN = 1 [20:16:42]*** CUTSNS_PIN = 0 [20:16:42]*** Brake cut motor [20:16:43]Read from MH i2c: 01 [20:16:43]MH_I2C_Read... [20:16:43]*** Stop cut motor [20:16:43]*** Cut end [20:16:43]Read from MH i2c: 01 07 00 [20:16:43]MH_I2C_Read... [20:16:43]Read from MH i2c: 01 07 00 D7 8B 00 00 00 00 00 FF 0F 77 [20:16:43]process_action close_receipt done [20:16:43]requested_data is exist [20:16:43]produce_requested_data [20:16:43]requested_item fm.sn is exist - process it [20:16:43]wFMCommunicate request_size=4 [20:16:43]MH_SAM_APDU [20:16:43]CAPDU: 80 11 00 00 [20:16:43]Write to MH i2c: E2 08 00 D8 8B 80 11 00 00 00 00 00 00 DD [20:16:43]Write i2c OK [20:16:43]MH_I2C_Read... [20:16:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:16:43]Read from MH i2c: E2 [20:16:43]MH_I2C_Read... [20:16:43]Read from MH i2c: E2 17 00 [20:16:43]MH_I2C_Read... [20:16:43]Read from MH i2c: E2 17 00 D8 8B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 2B [20:16:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [20:16:43]wFMCommunicate OK [20:16:43]requested_item fd.num is exist - process it [20:16:43]SAM_PROTO_GetFieldsCounters [20:16:43]wFMCommunicate request_size=4 [20:16:43]MH_SAM_APDU [20:16:43]CAPDU: 80 13 00 00 [20:16:43]Write to MH i2c: E2 08 00 D9 8B 80 13 00 00 00 00 00 00 E0 [20:16:43]Write i2c OK [20:16:43]MH_I2C_Read... [20:16:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:16:43]Read from MH i2c: E2 [20:16:43]MH_I2C_Read... [20:16:43]Read from MH i2c: E2 62 00 [20:16:43]MH_I2C_Read... [20:16:43]Read from MH i2c: E2 62 00 D9 8B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 06 DE 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 76 01 00 00 5E 04 04 00 76 01 00 00 57 04 04 00 77 01 00 00 19 04 04 00 00 00 00 00 90 00 FF [20:16:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 06 DE 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 76 01 00 00 5E 04 04 00 76 01 00 00 57 04 04 00 77 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:16:43]wFMCommunicate OK [20:16:43]SAM_PROTO_GetFieldsCounters done [20:16:43]requested_item shift.num is exist - process it [20:16:43]requested_item shift.opened is exist - process it [20:16:43]req_shift_opened [20:16:43]FM_GetShiftState [20:16:43]SAM_PROTO_GetShiftState [20:16:43]wFMCommunicate request_size=4 [20:16:43]MH_SAM_APDU [20:16:43]CAPDU: 80 13 01 00 [20:16:43]Write to MH i2c: E2 08 00 DA 8B 80 13 01 00 00 00 00 00 E2 [20:16:43]Write i2c OK [20:16:43]MH_I2C_Read... [20:16:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:16:43]Read from MH i2c: E2 [20:16:43]MH_I2C_Read... [20:16:43]Read from MH i2c: E2 0E 00 [20:16:43]MH_I2C_Read... [20:16:43]Read from MH i2c: E2 0E 00 DA 8B 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 41 [20:16:43]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [20:16:43]wFMCommunicate OK [20:16:43]SAM_PROTO_GetShiftState done [20:16:43]FM_GetShiftState done [20:16:43]req_shift_opened done [20:16:43]requested_item shift.open_date is exist - process it [20:16:43]req_shift_open_date [20:16:43]req_shift_open_date done [20:16:43]produce_requested_data done [20:16:43]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187910,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [20:16:43]process_action_free close_receipt [20:16:43]json_value_free [20:16:43]json_value_free done [20:16:43]process_json_proto returns [20:16:43]Send response to host [20:16:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187910,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [20:16:43]free response buf [20:16:43]execute_script done [20:16:43]execute_script returns [20:16:43]free content buf [20:16:43]Sock 9.Close socket [20:16:43]Sock 9.Thread stoped [20:16:47]OFD Sender: No OFD packet to send [20:16:52]OFD Sender: No OFD packet to send [20:16:57]OFD Sender: No OFD packet to send [20:17:02]OFD Sender: No OFD packet to send [20:17:07]OFD Sender: No OFD packet to send [20:17:12]OFD Sender: No OFD packet to send [20:17:17]OFD Sender: No OFD packet to send [20:17:22]OFD Sender: No OFD packet to send [20:17:27]OFD Sender: No OFD packet to send [20:17:32]OFD Sender: No OFD packet to send [20:17:37]OFD Sender: No OFD packet to send [20:17:42]OFD Sender: No OFD packet to send [20:17:47]OFD Sender: No OFD packet to send [20:17:52]OFD Sender: No OFD packet to send [20:17:52]accept exits with 10 [20:17:52]New connection [20:17:52]New thread 3067014500 created [20:17:52]Thread 3067157860 joined [20:17:52]Waiting for new connection... [20:17:52] Sock 10.Parse request [20:17:52]Sock 10.Check first char [20:17:52]Sock 10.First char is OK [20:17:52]request: POST /json_proto HTTP/1.0 [20:17:52]Method: POST [20:17:52]URL: /json_proto [20:17:52]Method is POST - this is cgi request [20:17:52]url: /json_proto [20:17:52]query_string will be loaded in cgi processing [20:17:52]execute_cgi json_proto POST (null) [20:17:52]execute_cgi path=json_proto method=POST [20:17:52]POST find Content-Length [20:17:52]Host: 172.17.42.131:8080 [20:17:52]Content-Length: 677 [20:17:52]Content-Type: application/json [20:17:52] [20:17:52]POST finish read [20:17:52]Found Content-Length = 677 [20:17:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209963", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "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" ] } } [20:17:52]execute_script... [20:17: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)209963", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "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" ] } } [20:17:52]POST & json_proto [20:17:52]process_json_proto [20:17:52]json parsed OK: [20:17:52]protocol is kg_v1.0 [20:17:52]action value=close_receipt [20:17:52]process_action close_receipt [20:17:52]cmd_close_receipt [20:17:52]MH_GetDate [20:17:52]Write to MH i2c: F0 00 00 DB 8B 55 [20:17:52]Write i2c OK [20:17:52]MH_I2C_Read... [20:17:52]Read from MH i2c: F0 [20:17:52]MH_I2C_Read... [20:17:52]Read from MH i2c: F0 09 00 [20:17:52]MH_I2C_Read... [20:17:52]Read from MH i2c: F0 09 00 DB 8B 00 F6 B6 16 67 A0 18 CA 66 6F [20:17:52]GetLastDocTimeStamp 1729541804 [20:17:52]current date 1729541878 [20:17:52]FM_GetShiftState [20:17:52]SAM_PROTO_GetShiftState [20:17:52]wFMCommunicate request_size=4 [20:17:52]MH_SAM_APDU [20:17:52]CAPDU: 80 13 01 00 [20:17:52]Write to MH i2c: E2 08 00 DC 8B 80 13 01 00 00 00 00 00 E4 [20:17:52]Write i2c OK [20:17:52]MH_I2C_Read... [20:17:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:17:52]Read from MH i2c: E2 [20:17:52]MH_I2C_Read... [20:17:52]Read from MH i2c: E2 0E 00 [20:17:52]MH_I2C_Read... [20:17:52]Read from MH i2c: E2 0E 00 DC 8B 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 43 [20:17:52]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [20:17:52]wFMCommunicate OK [20:17:52]SAM_PROTO_GetShiftState done [20:17:52]FM_GetShiftState done [20:17:52]opened in 1729469754 [20:17:52]opened+sec_in_day 1729556154 [20:17:52]quantity*price = 50041 [20:17:52]sum+1 = 50042 [20:17: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 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 375 21.10.2024 20:17 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 187911 ФПД: 273721448031725 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T201758&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187911&fm=273721448031725&tin=02508201610067®Number=0000000000100030&sum=50000 [20:17:53]StoreToDocumentArchive [20:17:53]shift 460 fd 187911 [20:17:53]save to /storage/0460/doc_00187911 [20:17:53]save last doc name /storage/0460/doc_00187911 to /storage/kkm_last_doc_name [20:17:53]save OK [20:17:53]Clear old archive folders... [20:17:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:17:53]tlvbuf is 012D0B10 [20:17:53]SAM_PROTO_ClearQueue [20:17:53]wFMCommunicate request_size=4 [20:17:53]MH_SAM_APDU [20:17:53]CAPDU: 80 09 00 00 [20:17:53]Write to MH i2c: E2 08 00 E9 8B 80 09 00 00 00 00 00 00 E6 [20:17:53]Write i2c OK [20:17:53]MH_I2C_Read... [20:17:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:17:54]Read from MH i2c: E2 [20:17:54]MH_I2C_Read... [20:17:54]Read from MH i2c: E2 03 00 [20:17:54]MH_I2C_Read... [20:17:54]Read from MH i2c: E2 03 00 E9 8B 00 90 00 E8 [20:17:54]RAPDU: 90 00 [20:17:54]wFMCommunicate OK [20:17:54]SAM_PROTO_ClearQueue done [20:17:54]KKMCreateOFDPacket [20:17:54]OFDProtocolAddRootSTLVToBuf [20:17:54]FM_MakeSignedData [20:17:54]FM_MakeSignedData [20:17:54]SAM_PROTO_SignData [20:17:54]wFMCommunicate request_size=4 [20:17:54]MH_SAM_APDU [20:17:54]CAPDU: 80 0D 01 02 [20:17:54]Write to MH i2c: E2 08 00 EA 8B 80 0D 01 02 00 00 00 00 EE [20:17:54]Write i2c OK [20:17:54]MH_I2C_Read... [20:17:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:17:54]Read from MH i2c: E2 [20:17:54]MH_I2C_Read... [20:17:54]Read from MH i2c: E2 03 00 [20:17:54]MH_I2C_Read... [20:17:54]Read from MH i2c: E2 03 00 EA 8B 00 90 00 E9 [20:17:54]RAPDU: 90 00 [20:17:54]wFMCommunicate OK [20:17:54]wFMCommunicate request_size=255 [20:17:54]MH_SAM_APDU [20:17:54]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 01 00 00 F4 03 04 00 F6 B6 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 07 DE 02 00 35 04 06 00 F8 [20:17:54]Write to MH i2c: E2 02 01 EB 8B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 01 00 00 F4 03 04 00 F6 B6 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 07 DE 02 00 35 04 06 00 F8 00 00 AE [20:17:54]Write i2c OK [20:17:54]MH_I2C_Read... [20:17:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:17:54]Read from MH i2c: E2 [20:17:54]MH_I2C_Read... [20:17:54]Read from MH i2c: E2 03 00 [20:17:54]MH_I2C_Read... [20:17:54]Read from MH i2c: E2 03 00 EB 8B 00 90 00 EA [20:17:54]RAPDU: 90 00 [20:17:54]wFMCommunicate OK [20:17:54]wFMCommunicate request_size=10 [20:17:54]MH_SAM_APDU [20:17:54]CAPDU: 80 0D 02 02 05 F2 BD AD 65 ED [20:17:54]Write to MH i2c: E2 0D 00 EC 8B 80 0D 02 02 05 00 F2 BD AD 65 ED 00 00 A9 [20:17:54]Write i2c OK [20:17:54]MH_I2C_Read... [20:17:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:17:54]Read from MH i2c: E2 [20:17:54]MH_I2C_Read... [20:17:54]Read from MH i2c: E2 03 00 [20:17:54]MH_I2C_Read... [20:17:54]Read from MH i2c: E2 03 00 EC 8B 00 90 00 EB [20:17:54]RAPDU: 90 00 [20:17:54]wFMCommunicate OK [20:17:54]wFMCommunicate request_size=4 [20:17:54]MH_SAM_APDU [20:17:54]CAPDU: 80 0D 03 02 [20:17:54]Write to MH i2c: E2 08 00 ED 8B 80 0D 03 02 00 00 00 00 F3 [20:17:54]Write i2c OK [20:17:54]MH_I2C_Read... [20:17:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:17:54]Read from MH i2c: E2 [20:17:54]MH_I2C_Read... [20:17:54]Read from MH i2c: E2 0B 00 [20:17:54]MH_I2C_Read... [20:17:54]Read from MH i2c: E2 0B 00 ED 8B 00 9D FE 75 DE 79 D5 5F 2C 90 00 BB [20:17:54]RAPDU: 9D FE 75 DE 79 D5 5F 2C 90 00 [20:17:54]wFMCommunicate OK [20:17:54]SAM_PROTO_SignData done [20:17:54]FM_MakeSignedData done [20:17:54]CreateOFDProtocolMessage [20:17:54]wFMCommunicate request_size=4 [20:17:54]MH_SAM_APDU [20:17:54]CAPDU: 80 11 00 00 [20:17:54]Write to MH i2c: E2 08 00 EE 8B 80 11 00 00 00 00 00 00 F3 [20:17:54]Write i2c OK [20:17:54]MH_I2C_Read... [20:17:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:17:54]Read from MH i2c: E2 [20:17:54]MH_I2C_Read... [20:17:54]Read from MH i2c: E2 17 00 [20:17:54]MH_I2C_Read... [20:17:54]Read from MH i2c: E2 17 00 EE 8B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 41 [20:17:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [20:17:54]wFMCommunicate OK [20:17:54]CreateOFDProtocolMessage done [20:17:54]OFDSenderStorePacket 187911 [20:17:54]StoreOFDPacket docnum=187911 [20:17:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 FC 1F 07 01 A1 77 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 01 00 00 F4 03 04 00 F6 B6 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 07 DE 02 00 35 04 06 00 F8 F2 BD AD 65 ED 9D FE 75 DE 79 D5 5F 2C [20:17:54]CheckFolder [20:17:54]dirname=/storage/ofd_packets [20:17:54]CheckFolder done [20:17:54]ProducePacketName [20:17:54]name=ofd_packets/00187911 [20:17:54]NVStorageSaveData ofd_packets/00187911 [20:17:54]File name is /storage/ofd_packets/00187911 [20:17:54]Write 301 bytes [20:17:54]NVStorageSaveData done [20:17:54]OFDSenderStorePacket done [20:17:54]KKMCreateOFDPacket done [20:17:54]NVStorageSaveData kkm_last_timestamp [20:17:54]File name is /storage/kkm_last_timestamp [20:17:54]Write 4 bytes [20:17:54]NVStorageSaveData done [20:17:54]ExternCall_PrintAddStr [20:17:54]wPrintStart [20:17:54]Write to MH i2c: 01 00 00 EF 8B 7A [20:17:54]Write i2c OK [20:17:54]MH_I2C_Read... [20:17:54]Read from MH i2c: 01 [20:17:54]MH_I2C_Read... [20:17:54]Read from MH i2c: 01 07 00 [20:17:54]MH_I2C_Read... [20:17:54]Read from MH i2c: 01 07 00 EF 8B 00 00 00 00 00 FF 0F 8F [20:17:54]RasterBufferAndPrint [20:17:54]line Счет N : (1)209963 [20:17:54]line ИНН: 02508201610067 [20:17:54]line Контрольно-Кассовый Чек [20:17:54]line ПРОДАЖА [20:17:54]line ТРК (МРК, ГНК) : 32 [20:17:54]line Товар: 2710124130 [20:17:54]line Аи-92-К-3 [20:17:54]line 7.480 * 66.90 [20:17:54]line = 500.41 [20:17:54]line НДС 12% НСП 1% [20:17:54]line > о реализуемом товаре [20:17:54]line ОКРУГЛЕНИЕ: -0.41 [20:17:54]line ИТОГО: 500.00 [20:17:54]line Внесено: 500.00 [20:17:54]line СДАЧА: 0.00 [20:17:54]line НСП 1% : 4.43 [20:17:54]line НДС 12% : 53.14 [20:17:54]line Наличными: 500.00 [20:17:54]line Безнал.: 0.00 [20:17:54]line Место: АЗС № 86 "Партнер Нефть" [20:17:54]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [20:17:54]line СНО: Общий режим [20:17:54]line Чек 375 21.10.2024 20:17 [20:17:54]line Смена: 460 ФФД: 1.0 [20:17:54]line ЗНМ: 0300000155 [20:17:54]line РНМ: 0000000000100030 [20:17:54]line Версия ККМ: 001 [20:17:54]line ФМ: 0000000000965340 [20:17:54]line ФД: 187911 [20:17:54]line ФПД: 273721448031725 [20:17:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T201758&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187911&fm=273721448031725&tin=02508201610067®Number=0000000000100030&sum=50000 [20:17:54]written 0, free lines is 4095 [20:17:54]OFD Sender: Processing packet 187911 [packets to send 1062, broken 1061] [20:17:54]ProducePacketName [20:17:54]name=ofd_packets/00187911 [20:17:54]OFD Sender: To server: pG, [20:17:54]CommunicateWithHost lk.salyk.kg:30040 [20:17:54]ConnectInit lk.salyk.kg [20:17:54]Connected sock=9 [20:17:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 FC 1F 07 01 A1 77 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 01 00 00 F4 03 04 00 F6 B6 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 07 DE 02 00 35 04 06 00 F8 F2 BD AD 65 ED 9D FE 75 DE 79 D5 5F 2C [20:17:55]Write to MH i2c: 01 00 00 1A 8C A6 [20:17:55]Write i2c OK [20:17:55]MH_I2C_Read... [20:17:55]Read from MH i2c: 01 [20:17:55]MH_I2C_Read... [20:17:55]Read from MH i2c: 01 07 00 [20:17:55]MH_I2C_Read... [20:17:55]Read from MH i2c: 01 07 00 1A 8C 00 00 00 00 00 59 0C 12 [20:17:55]RasterBufferAndPrint [20:17:55]line [20:17:55]line [20:17:55]line [20:17:55]line [20:17:55]line [20:17:55]written 0, free lines is 3166 [20:17:55]MH_Cut [20:17:55]Write to MH i2c: D1 01 00 21 8C 01 7F [20:17:55]Write i2c OK [20:17:55]MH_I2C_Read... [20:17:55]Read from MH i2c: D1 [20:17:55]MH_I2C_Read... [20:17:55]Read from MH i2c: D1 01 00 [20:17:55]MH_I2C_Read... [20:17:55]Read from MH i2c: D1 01 00 21 8C 00 7E [20:17:55]Write to MH i2c: 01 00 00 22 8C AE [20:17:55]Write i2c OK [20:17:55]MH_I2C_Read... [20:17:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 20 5A 47 00 A6 4B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 07 DE 02 00 F4 03 04 00 E5 60 16 67 B6 04 01 00 00 55 F6 37 2E 88 DF 91 AE [20:17:55]CommunicateWithHost err = 0 [20:17:55]CheckOFDResponse [20:17:55]1017 (14) - 77093643461234 [20:17:55]1041 (16) - 0000000000965340 [20:17:55]1040 (4) - 187911 [20:17:55]1012 (4) - 21.10.2024 14:10 [20:17:55]1206 (1) - 0 [20:17:55]OFD Sender: Remove packet 187911 [20:17:55]ProducePacketName [20:17:55]name=ofd_packets/00187911 [20:17:55]NVStorageDeleteData [20:17:55]OFD Sender: No OFD packet to send [20:17:56]*** Cut start [20:17:56]*** Partial cut [20:17:56]*** CUTSNS_PIN = 1 [20:17:56]*** CUTSNS_PIN = 0 [20:17:56]*** Brake cut motor [20:17:56]Read from MH i2c: 01 [20:17:56]MH_I2C_Read... [20:17:56]*** Stop cut motor [20:17:56]*** Cut end [20:17:56]Read from MH i2c: 01 07 00 [20:17:56]MH_I2C_Read... [20:17:56]Read from MH i2c: 01 07 00 22 8C 00 00 00 00 00 FF 0F C3 [20:17:56]process_action close_receipt done [20:17:56]requested_data is exist [20:17:56]produce_requested_data [20:17:56]requested_item fm.sn is exist - process it [20:17:56]wFMCommunicate request_size=4 [20:17:56]MH_SAM_APDU [20:17:56]CAPDU: 80 11 00 00 [20:17:56]Write to MH i2c: E2 08 00 23 8C 80 11 00 00 00 00 00 00 29 [20:17:56]Write i2c OK [20:17:56]MH_I2C_Read... [20:17:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:17:56]Read from MH i2c: E2 [20:17:56]MH_I2C_Read... [20:17:56]Read from MH i2c: E2 17 00 [20:17:56]MH_I2C_Read... [20:17:56]Read from MH i2c: E2 17 00 23 8C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 77 [20:17:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [20:17:56]wFMCommunicate OK [20:17:56]requested_item fd.num is exist - process it [20:17:56]SAM_PROTO_GetFieldsCounters [20:17:56]wFMCommunicate request_size=4 [20:17:56]MH_SAM_APDU [20:17:56]CAPDU: 80 13 00 00 [20:17:56]Write to MH i2c: E2 08 00 24 8C 80 13 00 00 00 00 00 00 2C [20:17:56]Write i2c OK [20:17:56]MH_I2C_Read... [20:17:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:17:57]Read from MH i2c: E2 [20:17:57]MH_I2C_Read... [20:17:57]Read from MH i2c: E2 62 00 [20:17:57]MH_I2C_Read... [20:17:57]Read from MH i2c: E2 62 00 24 8C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 07 DE 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 77 01 00 00 5E 04 04 00 77 01 00 00 57 04 04 00 78 01 00 00 19 04 04 00 00 00 00 00 90 00 4F [20:17:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 07 DE 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 77 01 00 00 5E 04 04 00 77 01 00 00 57 04 04 00 78 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:17:57]wFMCommunicate OK [20:17:57]SAM_PROTO_GetFieldsCounters done [20:17:57]requested_item shift.num is exist - process it [20:17:57]requested_item shift.opened is exist - process it [20:17:57]req_shift_opened [20:17:57]FM_GetShiftState [20:17:57]SAM_PROTO_GetShiftState [20:17:57]wFMCommunicate request_size=4 [20:17:57]MH_SAM_APDU [20:17:57]CAPDU: 80 13 01 00 [20:17:57]Write to MH i2c: E2 08 00 25 8C 80 13 01 00 00 00 00 00 2E [20:17:57]Write i2c OK [20:17:57]MH_I2C_Read... [20:17:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:17:57]Read from MH i2c: E2 [20:17:57]MH_I2C_Read... [20:17:57]Read from MH i2c: E2 0E 00 [20:17:57]MH_I2C_Read... [20:17:57]Read from MH i2c: E2 0E 00 25 8C 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 8D [20:17:57]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [20:17:57]wFMCommunicate OK [20:17:57]SAM_PROTO_GetShiftState done [20:17:57]FM_GetShiftState done [20:17:57]req_shift_opened done [20:17:57]requested_item shift.open_date is exist - process it [20:17:57]req_shift_open_date [20:17:57]req_shift_open_date done [20:17:57]produce_requested_data done [20:17:57]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187911,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [20:17:57]process_action_free close_receipt [20:17:57]json_value_free [20:17:57]json_value_free done [20:17:57]process_json_proto returns [20:17:57]Send response to host [20:17:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187911,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [20:17:57]free response buf [20:17:57]execute_script done [20:17:57]execute_script returns [20:17:57]free content buf [20:17:57]Sock 10.Close socket [20:17:57]Sock 10.Thread stoped [20:18:00]OFD Sender: No OFD packet to send [20:18:05]OFD Sender: No OFD packet to send [20:18:10]OFD Sender: No OFD packet to send [20:18:15]OFD Sender: No OFD packet to send [20:18:20]OFD Sender: No OFD packet to send [20:18:25]OFD Sender: No OFD packet to send [20:18:30]OFD Sender: No OFD packet to send [20:18:35]OFD Sender: No OFD packet to send [20:18:40]OFD Sender: No OFD packet to send [20:18:45]OFD Sender: No OFD packet to send [20:18:50]OFD Sender: No OFD packet to send [20:18:55]OFD Sender: No OFD packet to send [20:19:00]OFD Sender: No OFD packet to send [20:19:06]OFD Sender: No OFD packet to send [20:19:11]OFD Sender: No OFD packet to send [20:19:16]OFD Sender: No OFD packet to send [20:19:21]OFD Sender: No OFD packet to send [20:19:26]OFD Sender: No OFD packet to send [20:19:31]OFD Sender: No OFD packet to send [20:19:36]OFD Sender: No OFD packet to send [20:19:41]OFD Sender: No OFD packet to send [20:19:46]OFD Sender: No OFD packet to send [20:19:51]OFD Sender: No OFD packet to send [20:19:56]OFD Sender: No OFD packet to send [20:20:01]OFD Sender: No OFD packet to send [20:20:06]OFD Sender: No OFD packet to send [20:20:11]OFD Sender: No OFD packet to send [20:20:16]OFD Sender: No OFD packet to send [20:20:21]OFD Sender: No OFD packet to send [20:20:26]OFD Sender: No OFD packet to send [20:20:31]OFD Sender: No OFD packet to send [20:20:36]OFD Sender: No OFD packet to send [20:20:41]OFD Sender: No OFD packet to send [20:20:46]OFD Sender: No OFD packet to send [20:20:51]OFD Sender: No OFD packet to send [20:20:56]OFD Sender: No OFD packet to send [20:21:01]OFD Sender: No OFD packet to send [20:21:05]accept exits with 8 [20:21:05]New connection [20:21:05]New thread 3067157860 created [20:21:05]Thread 3067014500 joined [20:21:05]Waiting for new connection... [20:21:05] Sock 8.Parse request [20:21:05]Sock 8.Check first char [20:21:05]Sock 8.First char is OK [20:21:05]request: POST /json_proto HTTP/1.0 [20:21:05]Method: POST [20:21:05]URL: /json_proto [20:21:05]Method is POST - this is cgi request [20:21:05]url: /json_proto [20:21:05]query_string will be loaded in cgi processing [20:21:05]execute_cgi json_proto POST (null) [20:21:05]execute_cgi path=json_proto method=POST [20:21:05]POST find Content-Length [20:21:05]Host: 172.17.42.131:8080 [20:21:05]Content-Length: 678 [20:21:05]Content-Type: application/json [20:21:05] [20:21:05]POST finish read [20:21:05]Found Content-Length = 678 [20:21:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209964", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 13.460, "sum" : 900.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 900.00, "total" : 900.00, "payments": [ { "type": 0, "sum" : 900.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:21:05]execute_script... [20:21: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)209964", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 13.460, "sum" : 900.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 900.00, "total" : 900.00, "payments": [ { "type": 0, "sum" : 900.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:21:05]POST & json_proto [20:21:05]process_json_proto [20:21:05]json parsed OK: [20:21:05]protocol is kg_v1.0 [20:21:05]action value=close_receipt [20:21:05]process_action close_receipt [20:21:05]cmd_close_receipt [20:21:05]MH_GetDate [20:21:05]Write to MH i2c: F0 00 00 26 8C A1 [20:21:05]Write i2c OK [20:21:05]MH_I2C_Read... [20:21:05]Read from MH i2c: F0 [20:21:05]MH_I2C_Read... [20:21:05]Read from MH i2c: F0 09 00 [20:21:05]MH_I2C_Read... [20:21:05]Read from MH i2c: F0 09 00 26 8C 00 B7 B7 16 67 A0 18 CA 66 7D [20:21:05]GetLastDocTimeStamp 1729541878 [20:21:05]current date 1729542071 [20:21:05]FM_GetShiftState [20:21:05]SAM_PROTO_GetShiftState [20:21:05]wFMCommunicate request_size=4 [20:21:05]MH_SAM_APDU [20:21:05]CAPDU: 80 13 01 00 [20:21:05]Write to MH i2c: E2 08 00 27 8C 80 13 01 00 00 00 00 00 30 [20:21:05]Write i2c OK [20:21:05]MH_I2C_Read... [20:21:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:21:05]Read from MH i2c: E2 [20:21:05]MH_I2C_Read... [20:21:05]Read from MH i2c: E2 0E 00 [20:21:05]MH_I2C_Read... [20:21:05]Read from MH i2c: E2 0E 00 27 8C 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 8F [20:21:05]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [20:21:05]wFMCommunicate OK [20:21:05]SAM_PROTO_GetShiftState done [20:21:05]FM_GetShiftState done [20:21:05]opened in 1729469754 [20:21:05]opened+sec_in_day 1729556154 [20:21:05]quantity*price = 90047 [20:21:05]sum+1 = 90048 [20:21:05]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.47 ИТОГО: 900.00 Внесено: 900.00 СДАЧА: 0.00 НСП 1% : 7.97 НДС 12% : 95.62 Наличными: 900.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 376 21.10.2024 20:21 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 187912 ФПД: 228728840366004 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T202111&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187912&fm=228728840366004&tin=02508201610067®Number=0000000000100030&sum=90000 [20:21:06]StoreToDocumentArchive [20:21:06]shift 460 fd 187912 [20:21:06]save to /storage/0460/doc_00187912 [20:21:06]save last doc name /storage/0460/doc_00187912 to /storage/kkm_last_doc_name [20:21:06]save OK [20:21:06]Clear old archive folders... [20:21:06]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:21:06]tlvbuf is 010F9CE0 [20:21:06]SAM_PROTO_ClearQueue [20:21:06]wFMCommunicate request_size=4 [20:21:06]MH_SAM_APDU [20:21:06]CAPDU: 80 09 00 00 [20:21:06]Write to MH i2c: E2 08 00 34 8C 80 09 00 00 00 00 00 00 32 [20:21:06]Write i2c OK [20:21:06]MH_I2C_Read... [20:21:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:21:07]Read from MH i2c: E2 [20:21:07]MH_I2C_Read... [20:21:07]Read from MH i2c: E2 03 00 [20:21:07]MH_I2C_Read... [20:21:07]Read from MH i2c: E2 03 00 34 8C 00 90 00 34 [20:21:07]RAPDU: 90 00 [20:21:07]wFMCommunicate OK [20:21:07]SAM_PROTO_ClearQueue done [20:21:07]KKMCreateOFDPacket [20:21:07]OFDProtocolAddRootSTLVToBuf [20:21:07]FM_MakeSignedData [20:21:07]FM_MakeSignedData [20:21:07]SAM_PROTO_SignData [20:21:07]wFMCommunicate request_size=4 [20:21:07]MH_SAM_APDU [20:21:07]CAPDU: 80 0D 01 02 [20:21:07]Write to MH i2c: E2 08 00 35 8C 80 0D 01 02 00 00 00 00 3A [20:21:07]Write i2c OK [20:21:07]MH_I2C_Read... [20:21:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:21:07]Read from MH i2c: E2 [20:21:07]MH_I2C_Read... [20:21:07]Read from MH i2c: E2 03 00 [20:21:07]MH_I2C_Read... [20:21:07]Read from MH i2c: E2 03 00 35 8C 00 90 00 35 [20:21:07]RAPDU: 90 00 [20:21:07]wFMCommunicate OK [20:21:07]wFMCommunicate request_size=255 [20:21:07]MH_SAM_APDU [20:21:07]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 94 34 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BF 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5A 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 78 01 00 00 F4 03 04 00 B7 B7 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 08 DE 02 00 35 04 06 00 D0 [20:21:07]Write to MH i2c: E2 02 01 36 8C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 94 34 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BF 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5A 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 78 01 00 00 F4 03 04 00 B7 B7 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 08 DE 02 00 35 04 06 00 D0 00 00 B3 [20:21:07]Write i2c OK [20:21:07]MH_I2C_Read... [20:21:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:21:07]Read from MH i2c: E2 [20:21:07]MH_I2C_Read... [20:21:07]Read from MH i2c: E2 03 00 [20:21:07]MH_I2C_Read... [20:21:07]Read from MH i2c: E2 03 00 36 8C 00 90 00 36 [20:21:07]RAPDU: 90 00 [20:21:07]wFMCommunicate OK [20:21:07]wFMCommunicate request_size=10 [20:21:07]MH_SAM_APDU [20:21:07]CAPDU: 80 0D 02 02 05 07 15 47 A7 B4 [20:21:07]Write to MH i2c: E2 0D 00 37 8C 80 0D 02 02 05 00 07 15 47 A7 B4 00 00 05 [20:21:07]Write i2c OK [20:21:07]MH_I2C_Read... [20:21:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:21:07]Read from MH i2c: E2 [20:21:07]MH_I2C_Read... [20:21:07]Read from MH i2c: E2 03 00 [20:21:07]MH_I2C_Read... [20:21:07]Read from MH i2c: E2 03 00 37 8C 00 90 00 37 [20:21:07]RAPDU: 90 00 [20:21:07]wFMCommunicate OK [20:21:07]wFMCommunicate request_size=4 [20:21:07]MH_SAM_APDU [20:21:07]CAPDU: 80 0D 03 02 [20:21:07]Write to MH i2c: E2 08 00 38 8C 80 0D 03 02 00 00 00 00 3F [20:21:07]Write i2c OK [20:21:07]MH_I2C_Read... [20:21:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:21:07]Read from MH i2c: E2 [20:21:07]MH_I2C_Read... [20:21:07]Read from MH i2c: E2 0B 00 [20:21:07]MH_I2C_Read... [20:21:07]Read from MH i2c: E2 0B 00 38 8C 00 75 E8 DC 23 B1 FB 7E 47 90 00 0D [20:21:07]RAPDU: 75 E8 DC 23 B1 FB 7E 47 90 00 [20:21:07]wFMCommunicate OK [20:21:07]SAM_PROTO_SignData done [20:21:07]FM_MakeSignedData done [20:21:07]CreateOFDProtocolMessage [20:21:07]wFMCommunicate request_size=4 [20:21:07]MH_SAM_APDU [20:21:07]CAPDU: 80 11 00 00 [20:21:07]Write to MH i2c: E2 08 00 39 8C 80 11 00 00 00 00 00 00 3F [20:21:07]Write i2c OK [20:21:07]MH_I2C_Read... [20:21:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:21:07]Read from MH i2c: E2 [20:21:07]MH_I2C_Read... [20:21:07]Read from MH i2c: E2 17 00 [20:21:07]MH_I2C_Read... [20:21:07]Read from MH i2c: E2 17 00 39 8C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 8D [20:21:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [20:21:07]wFMCommunicate OK [20:21:07]CreateOFDProtocolMessage done [20:21:07]OFDSenderStorePacket 187912 [20:21:07]StoreOFDPacket docnum=187912 [20:21:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 5F 3D 07 01 93 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 33 FF 03 08 00 03 94 34 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BF 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5A 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 78 01 00 00 F4 03 04 00 B7 B7 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 08 DE 02 00 35 04 06 00 D0 07 15 47 A7 B4 75 E8 DC 23 B1 FB 7E 47 [20:21:07]CheckFolder [20:21:07]dirname=/storage/ofd_packets [20:21:07]CheckFolder done [20:21:07]ProducePacketName [20:21:07]name=ofd_packets/00187912 [20:21:07]NVStorageSaveData ofd_packets/00187912 [20:21:07]File name is /storage/ofd_packets/00187912 [20:21:07]Write 301 bytes [20:21:07]NVStorageSaveData done [20:21:07]OFDSenderStorePacket done [20:21:07]KKMCreateOFDPacket done [20:21:07]NVStorageSaveData kkm_last_timestamp [20:21:07]File name is /storage/kkm_last_timestamp [20:21:07]Write 4 bytes [20:21:07]NVStorageSaveData done [20:21:07]ExternCall_PrintAddStr [20:21:07]wPrintStart [20:21:07]Write to MH i2c: 01 00 00 3A 8C C6 [20:21:07]Write i2c OK [20:21:07]MH_I2C_Read... [20:21:07]Read from MH i2c: 01 [20:21:07]MH_I2C_Read... [20:21:07]Read from MH i2c: 01 07 00 [20:21:07]MH_I2C_Read... [20:21:07]Read from MH i2c: 01 07 00 3A 8C 00 00 00 00 00 FF 0F DB [20:21:07]RasterBufferAndPrint [20:21:07]line Счет N : (1)209964 [20:21:07]line ИНН: 02508201610067 [20:21:07]line Контрольно-Кассовый Чек [20:21:07]line ПРОДАЖА [20:21:07]line ТРК (МРК, ГНК) : 32 [20:21:07]line Товар: 2710124130 [20:21:07]line Аи-92-К-3 [20:21:07]line 13.460 * 66.90 [20:21:07]line = 900.47 [20:21:07]line НДС 12% НСП 1% [20:21:07]line > о реализуемом товаре [20:21:07]line ОКРУГЛЕНИЕ: -0.47 [20:21:07]line ИТОГО: 900.00 [20:21:07]line Внесено: 900.00 [20:21:07]line СДАЧА: 0.00 [20:21:07]line НСП 1% : 7.97 [20:21:07]line НДС 12% : 95.62 [20:21:07]line Наличными: 900.00 [20:21:07]line Безнал.: 0.00 [20:21:07]line Место: АЗС № 86 "Партнер Нефть" [20:21:07]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [20:21:07]line СНО: Общий режим [20:21:07]line Чек 376 21.10.2024 20:21 [20:21:07]line Смена: 460 ФФД: 1.0 [20:21:07]line ЗНМ: 0300000155 [20:21:07]line РНМ: 0000000000100030 [20:21:07]line Версия ККМ: 001 [20:21:07]line ФМ: 0000000000965340 [20:21:07]line ФД: 187912 [20:21:07]line ФПД: 228728840366004 [20:21:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T202111&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187912&fm=228728840366004&tin=02508201610067®Number=0000000000100030&sum=90000 [20:21:07]OFD Sender: Processing packet 187912 [packets to send 1062, broken 1061] [20:21:07]ProducePacketName [20:21:07]name=ofd_packets/00187912 [20:21:07]OFD Sender: To server: pG, [20:21:07]CommunicateWithHost lk.salyk.kg:30040 [20:21:07]ConnectInit lk.salyk.kg [20:21:07]written 0, free lines is 4095 [20:21:07]Connected sock=11 [20:21:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 5F 3D 07 01 93 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 33 FF 03 08 00 03 94 34 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BF 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5A 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 78 01 00 00 F4 03 04 00 B7 B7 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 08 DE 02 00 35 04 06 00 D0 07 15 47 A7 B4 75 E8 DC 23 B1 FB 7E 47 [20:21:08]Write to MH i2c: 01 00 00 65 8C F1 [20:21:08]Write i2c OK [20:21:08]MH_I2C_Read... [20:21:08]Read from MH i2c: 01 [20:21:08]MH_I2C_Read... [20:21:08]Read from MH i2c: 01 07 00 [20:21:08]MH_I2C_Read... [20:21:08]Read from MH i2c: 01 07 00 65 8C 00 00 00 00 00 5D 0C 61 [20:21:08]RasterBufferAndPrint [20:21:08]line [20:21:08]line [20:21:08]line [20:21:08]line [20:21:08]line [20:21:08]written 0, free lines is 3168 [20:21:08]MH_Cut [20:21:08]Write to MH i2c: D1 01 00 6C 8C 01 CA [20:21:08]Write i2c OK [20:21:08]MH_I2C_Read... [20:21:08]Read from MH i2c: D1 [20:21:08]MH_I2C_Read... [20:21:08]Read from MH i2c: D1 01 00 [20:21:08]MH_I2C_Read... [20:21:08]Read from MH i2c: D1 01 00 6C 8C 00 C9 [20:21:08]Write to MH i2c: 01 00 00 6D 8C F9 [20:21:08]Write i2c OK [20:21:08]MH_I2C_Read... [20:21:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 2B 2C 47 00 2B D1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 08 DE 02 00 F4 03 04 00 A6 61 16 67 B6 04 01 00 00 62 17 73 A7 B6 4B 27 93 [20:21:08]CommunicateWithHost err = 0 [20:21:08]CheckOFDResponse [20:21:08]1017 (14) - 77093643461234 [20:21:08]1041 (16) - 0000000000965340 [20:21:08]1040 (4) - 187912 [20:21:08]1012 (4) - 21.10.2024 14:13 [20:21:08]1206 (1) - 0 [20:21:08]OFD Sender: Remove packet 187912 [20:21:08]ProducePacketName [20:21:08]name=ofd_packets/00187912 [20:21:08]NVStorageDeleteData [20:21:08]OFD Sender: No OFD packet to send [20:21:09]*** Cut start [20:21:09]*** Partial cut [20:21:09]*** CUTSNS_PIN = 1 [20:21:09]*** CUTSNS_PIN = 0 [20:21:09]*** Brake cut motor [20:21:09]Read from MH i2c: 01 [20:21:09]MH_I2C_Read... [20:21:09]*** Stop cut motor [20:21:09]*** Cut end [20:21:09]Read from MH i2c: 01 07 00 [20:21:09]MH_I2C_Read... [20:21:09]Read from MH i2c: 01 07 00 6D 8C 00 00 00 00 00 FF 0F 0E [20:21:09]process_action close_receipt done [20:21:09]requested_data is exist [20:21:09]produce_requested_data [20:21:09]requested_item fm.sn is exist - process it [20:21:09]wFMCommunicate request_size=4 [20:21:09]MH_SAM_APDU [20:21:09]CAPDU: 80 11 00 00 [20:21:09]Write to MH i2c: E2 08 00 6E 8C 80 11 00 00 00 00 00 00 74 [20:21:09]Write i2c OK [20:21:09]MH_I2C_Read... [20:21:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:21:09]Read from MH i2c: E2 [20:21:09]MH_I2C_Read... [20:21:09]Read from MH i2c: E2 17 00 [20:21:09]MH_I2C_Read... [20:21:09]Read from MH i2c: E2 17 00 6E 8C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 C2 [20:21:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [20:21:09]wFMCommunicate OK [20:21:09]requested_item fd.num is exist - process it [20:21:09]SAM_PROTO_GetFieldsCounters [20:21:09]wFMCommunicate request_size=4 [20:21:09]MH_SAM_APDU [20:21:09]CAPDU: 80 13 00 00 [20:21:09]Write to MH i2c: E2 08 00 6F 8C 80 13 00 00 00 00 00 00 77 [20:21:09]Write i2c OK [20:21:09]MH_I2C_Read... [20:21:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:21:10]Read from MH i2c: E2 [20:21:10]MH_I2C_Read... [20:21:10]Read from MH i2c: E2 62 00 [20:21:10]MH_I2C_Read... [20:21:10]Read from MH i2c: E2 62 00 6F 8C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 08 DE 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 78 01 00 00 5E 04 04 00 78 01 00 00 57 04 04 00 79 01 00 00 19 04 04 00 00 00 00 00 90 00 9E [20:21:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 08 DE 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 78 01 00 00 5E 04 04 00 78 01 00 00 57 04 04 00 79 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:21:10]wFMCommunicate OK [20:21:10]SAM_PROTO_GetFieldsCounters done [20:21:10]requested_item shift.num is exist - process it [20:21:10]requested_item shift.opened is exist - process it [20:21:10]req_shift_opened [20:21:10]FM_GetShiftState [20:21:10]SAM_PROTO_GetShiftState [20:21:10]wFMCommunicate request_size=4 [20:21:10]MH_SAM_APDU [20:21:10]CAPDU: 80 13 01 00 [20:21:10]Write to MH i2c: E2 08 00 70 8C 80 13 01 00 00 00 00 00 79 [20:21:10]Write i2c OK [20:21:10]MH_I2C_Read... [20:21:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:21:10]Read from MH i2c: E2 [20:21:10]MH_I2C_Read... [20:21:10]Read from MH i2c: E2 0E 00 [20:21:10]MH_I2C_Read... [20:21:10]Read from MH i2c: E2 0E 00 70 8C 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 D8 [20:21:10]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [20:21:10]wFMCommunicate OK [20:21:10]SAM_PROTO_GetShiftState done [20:21:10]FM_GetShiftState done [20:21:10]req_shift_opened done [20:21:10]requested_item shift.open_date is exist - process it [20:21:10]req_shift_open_date [20:21:10]req_shift_open_date done [20:21:10]produce_requested_data done [20:21:10]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187912,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [20:21:10]process_action_free close_receipt [20:21:10]json_value_free [20:21:10]json_value_free done [20:21:10]process_json_proto returns [20:21:10]Send response to host [20:21:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187912,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [20:21:10]free response buf [20:21:10]execute_script done [20:21:10]execute_script returns [20:21:10]free content buf [20:21:10]Sock 8.Close socket [20:21:10]Sock 8.Thread stoped [20:21:13]OFD Sender: No OFD packet to send [20:21:18]OFD Sender: No OFD packet to send [20:21:23]OFD Sender: No OFD packet to send [20:21:28]OFD Sender: No OFD packet to send [20:21:33]OFD Sender: No OFD packet to send [20:21:38]OFD Sender: No OFD packet to send [20:21:43]OFD Sender: No OFD packet to send [20:21:48]OFD Sender: No OFD packet to send [20:21:53]OFD Sender: No OFD packet to send [20:21:58]OFD Sender: No OFD packet to send [20:22:03]OFD Sender: No OFD packet to send [20:22: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:40]accept exits with 9 [20:23:40]New connection [20:23:40]New thread 3067014500 created [20:23:40]Thread 3067157860 joined [20:23:40]Waiting for new connection... [20:23:40] Sock 9.Parse request [20:23:40]Sock 9.Check first char [20:23:40]Sock 9.First char is OK [20:23:40]request: POST /json_proto HTTP/1.0 [20:23:40]Method: POST [20:23:40]URL: /json_proto [20:23:40]Method is POST - this is cgi request [20:23:40]url: /json_proto [20:23:40]query_string will be loaded in cgi processing [20:23:40]execute_cgi json_proto POST (null) [20:23:40]execute_cgi path=json_proto method=POST [20:23:40]POST find Content-Length [20:23:40]Host: 172.17.42.131:8080 [20:23:40]Content-Length: 769 [20:23:40]Content-Type: application/json [20:23:40] [20:23:40]POST finish read [20:23:40]Found Content-Length = 769 [20:23:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209965", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.22 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:23:40]execute_script... [20:23: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)209965", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.22 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:23:40]POST & json_proto [20:23:40]process_json_proto [20:23:40]json parsed OK: [20:23:40]protocol is kg_v1.0 [20:23:40]action value=close_receipt [20:23:40]process_action close_receipt [20:23:40]cmd_close_receipt [20:23:40]MH_GetDate [20:23:40]Write to MH i2c: F0 00 00 71 8C EC [20:23:40]Write i2c OK [20:23:40]MH_I2C_Read... [20:23:40]Read from MH i2c: F0 [20:23:40]MH_I2C_Read... [20:23:40]Read from MH i2c: F0 09 00 [20:23:40]MH_I2C_Read... [20:23:40]Read from MH i2c: F0 09 00 71 8C 00 51 B8 16 67 A0 18 CA 66 63 [20:23:40]GetLastDocTimeStamp 1729542071 [20:23:40]current date 1729542225 [20:23:40]FM_GetShiftState [20:23:40]SAM_PROTO_GetShiftState [20:23:40]wFMCommunicate request_size=4 [20:23:40]MH_SAM_APDU [20:23:40]CAPDU: 80 13 01 00 [20:23:40]Write to MH i2c: E2 08 00 72 8C 80 13 01 00 00 00 00 00 7B [20:23:40]Write i2c OK [20:23:40]MH_I2C_Read... [20:23:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:23:40]Read from MH i2c: E2 [20:23:40]MH_I2C_Read... [20:23:40]Read from MH i2c: E2 0E 00 [20:23:40]MH_I2C_Read... [20:23:40]Read from MH i2c: E2 0E 00 72 8C 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 DA [20:23:40]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [20:23:40]wFMCommunicate OK [20:23:40]SAM_PROTO_GetShiftState done [20:23:40]FM_GetShiftState done [20:23:40]opened in 1729469754 [20:23:40]opened+sec_in_day 1729556154 [20:23:40]quantity*price = 100021 [20:23:40]sum+1 = 100023 [20:23:40]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.22 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 0.00 Безнал.: 1000.22 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 377 21.10.2024 20:23 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000965340 ФД: 187913 ФПД: 110695492659685 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T202345&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187913&fm=110695492659685&tin=02508201610067®Number=0000000000100030&sum=100022 [20:23:41]StoreToDocumentArchive [20:23:41]shift 460 fd 187913 [20:23:41]save to /storage/0460/doc_00187913 [20:23:41]save last doc name /storage/0460/doc_00187913 to /storage/kkm_last_doc_name [20:23:41]save OK [20:23:41]Clear old archive folders... [20:23:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:23:41]tlvbuf is 012D0FF0 [20:23:41]SAM_PROTO_ClearQueue [20:23:41]wFMCommunicate request_size=4 [20:23:41]MH_SAM_APDU [20:23:41]CAPDU: 80 09 00 00 [20:23:41]Write to MH i2c: E2 08 00 7F 8C 80 09 00 00 00 00 00 00 7D [20:23:41]Write i2c OK [20:23:41]MH_I2C_Read... [20:23:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:23:41]Read from MH i2c: E2 [20:23:41]MH_I2C_Read... [20:23:41]Read from MH i2c: E2 03 00 [20:23:41]MH_I2C_Read... [20:23:41]Read from MH i2c: E2 03 00 7F 8C 00 90 00 7F [20:23:41]RAPDU: 90 00 [20:23:41]wFMCommunicate OK [20:23:41]SAM_PROTO_ClearQueue done [20:23:41]KKMCreateOFDPacket [20:23:41]OFDProtocolAddRootSTLVToBuf [20:23:41]FM_MakeSignedData [20:23:41]FM_MakeSignedData [20:23:41]SAM_PROTO_SignData [20:23:41]wFMCommunicate request_size=4 [20:23:41]MH_SAM_APDU [20:23:41]CAPDU: 80 0D 01 02 [20:23:41]Write to MH i2c: E2 08 00 80 8C 80 0D 01 02 00 00 00 00 85 [20:23:41]Write i2c OK [20:23:41]MH_I2C_Read... [20:23:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:23:41]Read from MH i2c: E2 [20:23:41]MH_I2C_Read... [20:23:41]Read from MH i2c: E2 03 00 [20:23:41]MH_I2C_Read... [20:23:41]Read from MH i2c: E2 03 00 80 8C 00 90 00 80 [20:23:41]RAPDU: 90 00 [20:23:41]wFMCommunicate OK [20:23:41]wFMCommunicate request_size=255 [20:23:41]MH_SAM_APDU [20:23:41]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B6 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 01 00 00 F4 03 04 00 51 B8 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 09 DE 02 00 35 04 06 00 64 [20:23:41]Write to MH i2c: E2 02 01 81 8C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B6 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 01 00 00 F4 03 04 00 51 B8 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 09 DE 02 00 35 04 06 00 64 00 00 5B [20:23:41]Write i2c OK [20:23:41]MH_I2C_Read... [20:23:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:23:41]Read from MH i2c: E2 [20:23:41]MH_I2C_Read... [20:23:41]Read from MH i2c: E2 03 00 [20:23:41]MH_I2C_Read... [20:23:41]Read from MH i2c: E2 03 00 81 8C 00 90 00 81 [20:23:41]RAPDU: 90 00 [20:23:41]wFMCommunicate OK [20:23:41]wFMCommunicate request_size=10 [20:23:41]MH_SAM_APDU [20:23:41]CAPDU: 80 0D 02 02 05 AD 4D 84 A9 E5 [20:23:41]Write to MH i2c: E2 0D 00 82 8C 80 0D 02 02 05 00 AD 4D 84 A9 E5 00 00 9E [20:23:41]Write i2c OK [20:23:41]MH_I2C_Read... [20:23:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:23:41]Read from MH i2c: E2 [20:23:41]MH_I2C_Read... [20:23:41]Read from MH i2c: E2 03 00 [20:23:41]MH_I2C_Read... [20:23:41]Read from MH i2c: E2 03 00 82 8C 00 90 00 82 [20:23:41]RAPDU: 90 00 [20:23:41]wFMCommunicate OK [20:23:41]wFMCommunicate request_size=4 [20:23:41]MH_SAM_APDU [20:23:41]CAPDU: 80 0D 03 02 [20:23:41]Write to MH i2c: E2 08 00 83 8C 80 0D 03 02 00 00 00 00 8A [20:23:41]Write i2c OK [20:23:41]MH_I2C_Read... [20:23:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:23:41]Read from MH i2c: E2 [20:23:41]MH_I2C_Read... [20:23:41]Read from MH i2c: E2 0B 00 [20:23:41]MH_I2C_Read... [20:23:41]Read from MH i2c: E2 0B 00 83 8C 00 5D C0 EA AE B9 00 1D BE 90 00 D4 [20:23:41]RAPDU: 5D C0 EA AE B9 00 1D BE 90 00 [20:23:41]wFMCommunicate OK [20:23:41]SAM_PROTO_SignData done [20:23:41]FM_MakeSignedData done [20:23:41]CreateOFDProtocolMessage [20:23:41]wFMCommunicate request_size=4 [20:23:41]MH_SAM_APDU [20:23:41]CAPDU: 80 11 00 00 [20:23:41]Write to MH i2c: E2 08 00 84 8C 80 11 00 00 00 00 00 00 8A [20:23:41]Write i2c OK [20:23:41]MH_I2C_Read... [20:23:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:23:41]Read from MH i2c: E2 [20:23:41]MH_I2C_Read... [20:23:41]Read from MH i2c: E2 17 00 [20:23:41]MH_I2C_Read... [20:23:41]Read from MH i2c: E2 17 00 84 8C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 D8 [20:23:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [20:23:41]wFMCommunicate OK [20:23:41]CreateOFDProtocolMessage done [20:23:41]OFDSenderStorePacket 187913 [20:23:41]StoreOFDPacket docnum=187913 [20:23:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 F0 40 07 01 28 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B6 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 01 00 00 F4 03 04 00 51 B8 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 09 DE 02 00 35 04 06 00 64 AD 4D 84 A9 E5 5D C0 EA AE B9 00 1D BE [20:23:41]CheckFolder [20:23:41]dirname=/storage/ofd_packets [20:23:41]CheckFolder done [20:23:41]ProducePacketName [20:23:41]name=ofd_packets/00187913 [20:23:41]NVStorageSaveData ofd_packets/00187913 [20:23:41]File name is /storage/ofd_packets/00187913 [20:23:41]Write 301 bytes [20:23:41]NVStorageSaveData done [20:23:41]OFDSenderStorePacket done [20:23:41]KKMCreateOFDPacket done [20:23:41]NVStorageSaveData kkm_last_timestamp [20:23:41]File name is /storage/kkm_last_timestamp [20:23:41]Write 4 bytes [20:23:41]NVStorageSaveData done [20:23:41]ExternCall_PrintAddStr [20:23:41]wPrintStart [20:23:41]Write to MH i2c: 01 00 00 85 8C 11 [20:23:41]Write i2c OK [20:23:41]MH_I2C_Read... [20:23:41]Read from MH i2c: 01 [20:23:41]MH_I2C_Read... [20:23:41]Read from MH i2c: 01 07 00 [20:23:41]MH_I2C_Read... [20:23:41]Read from MH i2c: 01 07 00 85 8C 00 00 00 00 00 FF 0F 26 [20:23:41]RasterBufferAndPrint [20:23:41]line Счет N : (1)209965 [20:23:41]line ИНН: 02508201610067 [20:23:41]line Контрольно-Кассовый Чек [20:23:41]line ПРОДАЖА [20:23:41]line ТРК (МРК, ГНК) : 13 [20:23:41]line Товар: 2710124500 [20:23:41]line Аи-95-К-3 [20:23:41]line 13.480 * 74.20 [20:23:41]line = 1000.22 [20:23:41]line НДС 12% НСП 1% [20:23:41]line > о реализуемом товаре [20:23:41]line ИТОГО: 1000.22 [20:23:41]line НСП 1% : 8.85 [20:23:41]line НДС 12% : 106.22 [20:23:41]line Наличными: 0.00 [20:23:41]line Безнал.: 1000.22 [20:23:41]line Место: АЗС № 86 "Партнер Нефть" [20:23:41]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [20:23:41]line СНО: Общий режим [20:23:41]line Чек 377 21.10.2024 20:23 [20:23:41]line Смена: 460 ФФД: 1.0 [20:23:41]line ЗНМ: 0300000155 [20:23:41]line РНМ: 0000000000100030 [20:23:41]line Версия ККМ: 001 [20:23:41]line Платежная система: Mbank [20:23:41]line ФМ: 0000000000965340 [20:23:41]line ФД: 187913 [20:23:41]line ФПД: 110695492659685 [20:23:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T202345&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187913&fm=110695492659685&tin=02508201610067®Number=0000000000100030&sum=100022 [20:23:41]written 0, free lines is 4095 [20:23:41]OFD Sender: Processing packet 187913 [packets to send 1062, broken 1061] [20:23:41]ProducePacketName [20:23:41]name=ofd_packets/00187913 [20:23:41]OFD Sender: To server: pG, [20:23:41]CommunicateWithHost lk.salyk.kg:30040 [20:23:41]ConnectInit lk.salyk.kg [20:23:42]Connected sock=10 [20:23:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 F0 40 07 01 28 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B6 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 01 00 00 F4 03 04 00 51 B8 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 09 DE 02 00 35 04 06 00 64 AD 4D 84 A9 E5 5D C0 EA AE B9 00 1D BE [20:23:42]Write to MH i2c: 01 00 00 AE 8C 3A [20:23:42]Write i2c OK [20:23:42]MH_I2C_Read... [20:23:42]Read from MH i2c: 01 [20:23:42]MH_I2C_Read... [20:23:42]Read from MH i2c: 01 07 00 [20:23:42]MH_I2C_Read... [20:23:42]Read from MH i2c: 01 07 00 AE 8C 00 00 00 00 00 87 0C D4 [20:23:42]RasterBufferAndPrint [20:23:42]line [20:23:42]line [20:23:42]line [20:23:42]line [20:23:42]line [20:23:42]written 0, free lines is 3212 [20:23:42]MH_Cut [20:23:42]Write to MH i2c: D1 01 00 B5 8C 01 13 [20:23:42]Write i2c OK [20:23:42]MH_I2C_Read... [20:23:42]Read from MH i2c: D1 [20:23:42]MH_I2C_Read... [20:23:42]Read from MH i2c: D1 01 00 [20:23:42]MH_I2C_Read... [20:23:42]Read from MH i2c: D1 01 00 B5 8C 00 12 [20:23:42]Write to MH i2c: 01 00 00 B6 8C 42 [20:23:42]Write i2c OK [20:23:42]MH_I2C_Read... [20:23:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 9F D5 47 00 08 E9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 09 DE 02 00 F4 03 04 00 40 62 16 67 B6 04 01 00 00 92 97 01 FF 65 5B 43 43 [20:23:42]CommunicateWithHost err = 0 [20:23:42]CheckOFDResponse [20:23:42]1017 (14) - 77093643461234 [20:23:42]1041 (16) - 0000000000965340 [20:23:42]1040 (4) - 187913 [20:23:42]1012 (4) - 21.10.2024 14:16 [20:23:42]1206 (1) - 0 [20:23:42]OFD Sender: Remove packet 187913 [20:23:42]ProducePacketName [20:23:42]name=ofd_packets/00187913 [20:23:42]NVStorageDeleteData [20:23:42]OFD Sender: No OFD packet to send [20:23:43]*** Cut start [20:23:43]*** Partial cut [20:23:43]*** CUTSNS_PIN = 1 [20:23:43]*** CUTSNS_PIN = 0 [20:23:43]*** Brake cut motor [20:23:44]Read from MH i2c: 01 [20:23:44]MH_I2C_Read... [20:23:44]*** Stop cut motor [20:23:44]*** Cut end [20:23:44]Read from MH i2c: 01 07 00 [20:23:44]MH_I2C_Read... [20:23:44]Read from MH i2c: 01 07 00 B6 8C 00 00 00 00 00 FF 0F 57 [20:23:44]process_action close_receipt done [20:23:44]requested_data is exist [20:23:44]produce_requested_data [20:23:44]requested_item fm.sn is exist - process it [20:23:44]wFMCommunicate request_size=4 [20:23:44]MH_SAM_APDU [20:23:44]CAPDU: 80 11 00 00 [20:23:44]Write to MH i2c: E2 08 00 B7 8C 80 11 00 00 00 00 00 00 BD [20:23:44]Write i2c OK [20:23:44]MH_I2C_Read... [20:23:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:23:44]Read from MH i2c: E2 [20:23:44]MH_I2C_Read... [20:23:44]Read from MH i2c: E2 17 00 [20:23:44]MH_I2C_Read... [20:23:44]Read from MH i2c: E2 17 00 B7 8C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 0B [20:23:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [20:23:44]wFMCommunicate OK [20:23:44]requested_item fd.num is exist - process it [20:23:44]SAM_PROTO_GetFieldsCounters [20:23:44]wFMCommunicate request_size=4 [20:23:44]MH_SAM_APDU [20:23:44]CAPDU: 80 13 00 00 [20:23:44]Write to MH i2c: E2 08 00 B8 8C 80 13 00 00 00 00 00 00 C0 [20:23:44]Write i2c OK [20:23:44]MH_I2C_Read... [20:23:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:23:44]Read from MH i2c: E2 [20:23:44]MH_I2C_Read... [20:23:44]Read from MH i2c: E2 62 00 [20:23:44]MH_I2C_Read... [20:23:44]Read from MH i2c: E2 62 00 B8 8C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 09 DE 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 79 01 00 00 5E 04 04 00 79 01 00 00 57 04 04 00 7A 01 00 00 19 04 04 00 00 00 00 00 90 00 EB [20:23:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 09 DE 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 79 01 00 00 5E 04 04 00 79 01 00 00 57 04 04 00 7A 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:23:44]wFMCommunicate OK [20:23:44]SAM_PROTO_GetFieldsCounters done [20:23:44]requested_item shift.num is exist - process it [20:23:44]requested_item shift.opened is exist - process it [20:23:44]req_shift_opened [20:23:44]FM_GetShiftState [20:23:44]SAM_PROTO_GetShiftState [20:23:44]wFMCommunicate request_size=4 [20:23:44]MH_SAM_APDU [20:23:44]CAPDU: 80 13 01 00 [20:23:44]Write to MH i2c: E2 08 00 B9 8C 80 13 01 00 00 00 00 00 C2 [20:23:44]Write i2c OK [20:23:44]MH_I2C_Read... [20:23:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:23:44]Read from MH i2c: E2 [20:23:44]MH_I2C_Read... [20:23:44]Read from MH i2c: E2 0E 00 [20:23:44]MH_I2C_Read... [20:23:44]Read from MH i2c: E2 0E 00 B9 8C 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 21 [20:23:44]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [20:23:44]wFMCommunicate OK [20:23:44]SAM_PROTO_GetShiftState done [20:23:44]FM_GetShiftState done [20:23:44]req_shift_opened done [20:23:44]requested_item shift.open_date is exist - process it [20:23:44]req_shift_open_date [20:23:44]req_shift_open_date done [20:23:44]produce_requested_data done [20:23:44]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187913,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [20:23:44]process_action_free close_receipt [20:23:44]json_value_free [20:23:44]json_value_free done [20:23:44]process_json_proto returns [20:23:44]Send response to host [20:23:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187913,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [20:23:44]free response buf [20:23:44]execute_script done [20:23:44]execute_script returns [20:23:44]free content buf [20:23:44]Sock 9.Close socket [20:23:44]Sock 9.Thread stoped [20:23:48]OFD Sender: No OFD packet to send [20:23:53]OFD Sender: No OFD packet to send [20:23:58]OFD Sender: No OFD packet to send [20:24:03]OFD Sender: No OFD packet to send [20:24:08]OFD Sender: No OFD packet to send [20:24:13]OFD Sender: No OFD packet to send [20:24:18]OFD Sender: No OFD packet to send [20:24:23]OFD Sender: No OFD packet to send [20:24:28]OFD Sender: No OFD packet to send [20:24:33]OFD Sender: No OFD packet to send [20:24:38]OFD Sender: No OFD packet to send [20:24:43]OFD Sender: No OFD packet to send [20:24:48]OFD Sender: No OFD packet to send [20:24:53]OFD Sender: No OFD packet to send [20:24:58]OFD Sender: No OFD packet to send [20:25:03]OFD Sender: No OFD packet to send [20:25:08]OFD Sender: No OFD packet to send [20:25:13]OFD Sender: No OFD packet to send [20:25:18]OFD Sender: No OFD packet to send [20:25:23]OFD Sender: No OFD packet to send [20:25:28]OFD Sender: No OFD packet to send [20:25:33]OFD Sender: No OFD packet to send [20:25:38]OFD Sender: No OFD packet to send [20:25:43]OFD Sender: No OFD packet to send [20:25:48]OFD Sender: No OFD packet to send [20:25:53]OFD Sender: No OFD packet to send [20:25:58]OFD Sender: No OFD packet to send [20:26:03]OFD Sender: No OFD packet to send [20:26:08]OFD Sender: No OFD packet to send [20:26:13]OFD Sender: No OFD packet to send [20:26:18]OFD Sender: No OFD packet to send [20:26:23]OFD Sender: No OFD packet to send [20:26:28]OFD Sender: No OFD packet to send [20:26:33]OFD Sender: No OFD packet to send [20:26:38]OFD Sender: No OFD packet to send [20:26:43]OFD Sender: No OFD packet to send [20:26:48]OFD Sender: No OFD packet to send [20:26:53]OFD Sender: No OFD packet to send [20:26:58]OFD Sender: No OFD packet to send [20:27:03]OFD Sender: No OFD packet to send [20:27:08]OFD Sender: No OFD packet to send [20:27:13]OFD Sender: No OFD packet to send [20:27:18]OFD Sender: No OFD packet to send [20:27:23]OFD Sender: No OFD packet to send [20:27:28]OFD Sender: No OFD packet to send [20:27:34]OFD Sender: No OFD packet to send [20:27:39]OFD Sender: No OFD packet to send [20:27:44]OFD Sender: No OFD packet to send [20:27:49]OFD Sender: No OFD packet to send [20:27:54]OFD Sender: No OFD packet to send [20:27:59]OFD Sender: No OFD packet to send [20:28:04]OFD Sender: No OFD packet to send [20:28:09]OFD Sender: No OFD packet to send [20:28:14]OFD Sender: No OFD packet to send [20:28:19]OFD Sender: No OFD packet to send [20:28:24]OFD Sender: No OFD packet to send [20:28:29]OFD Sender: No OFD packet to send [20:28:34]OFD Sender: No OFD packet to send [20:28:39]OFD Sender: No OFD packet to send [20:28:44]OFD Sender: No OFD packet to send [20:28:49]OFD Sender: No OFD packet to send [20:28:54]OFD Sender: No OFD packet to send [20:28:59]OFD Sender: No OFD packet to send [20:29:04]OFD Sender: No OFD packet to send [20:29:09]OFD Sender: No OFD packet to send [20:29:14]OFD Sender: No OFD packet to send [20:29:19]OFD Sender: No OFD packet to send [20:29:24]OFD Sender: No OFD packet to send [20:29:29]OFD Sender: No OFD packet to send [20:29:34]OFD Sender: No OFD packet to send [20:29:37]accept exits with 8 [20:29:37]New connection [20:29:37]New thread 3067157860 created [20:29:37]Thread 3067014500 joined [20:29:37]Waiting for new connection... [20:29:37] Sock 8.Parse request [20:29:37]Sock 8.Check first char [20:29:37]Sock 8.First char is OK [20:29:37]request: POST /json_proto HTTP/1.0 [20:29:37]Method: POST [20:29:37]URL: /json_proto [20:29:37]Method is POST - this is cgi request [20:29:37]url: /json_proto [20:29:37]query_string will be loaded in cgi processing [20:29:37]execute_cgi json_proto POST (null) [20:29:37]execute_cgi path=json_proto method=POST [20:29:37]POST find Content-Length [20:29:37]Host: 172.17.42.131:8080 [20:29:37]Content-Length: 775 [20:29:37]Content-Type: application/json [20:29:37] [20:29:37]POST finish read [20:29:37]Found Content-Length = 775 [20:29:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209966", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 58.300, "sum" : 4500.76, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 4500.76 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:29:37]execute_script... [20:29: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)209966", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 58.300, "sum" : 4500.76, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 4500.76 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:29:37]POST & json_proto [20:29:37]process_json_proto [20:29:37]json parsed OK: [20:29:37]protocol is kg_v1.0 [20:29:37]action value=close_receipt [20:29:37]process_action close_receipt [20:29:37]cmd_close_receipt [20:29:37]MH_GetDate [20:29:37]Write to MH i2c: F0 00 00 BA 8C 35 [20:29:37]Write i2c OK [20:29:37]MH_I2C_Read... [20:29:37]Read from MH i2c: F0 [20:29:37]MH_I2C_Read... [20:29:37]Read from MH i2c: F0 09 00 [20:29:37]MH_I2C_Read... [20:29:37]Read from MH i2c: F0 09 00 BA 8C 00 B6 B9 16 67 A0 18 CA 66 12 [20:29:37]GetLastDocTimeStamp 1729542225 [20:29:37]current date 1729542582 [20:29:37]FM_GetShiftState [20:29:37]SAM_PROTO_GetShiftState [20:29:37]wFMCommunicate request_size=4 [20:29:37]MH_SAM_APDU [20:29:37]CAPDU: 80 13 01 00 [20:29:37]Write to MH i2c: E2 08 00 BB 8C 80 13 01 00 00 00 00 00 C4 [20:29:37]Write i2c OK [20:29:37]MH_I2C_Read... [20:29:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:29:37]Read from MH i2c: E2 [20:29:37]MH_I2C_Read... [20:29:37]Read from MH i2c: E2 0E 00 [20:29:37]MH_I2C_Read... [20:29:37]Read from MH i2c: E2 0E 00 BB 8C 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 23 [20:29:37]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [20:29:37]wFMCommunicate OK [20:29:37]SAM_PROTO_GetShiftState done [20:29:37]FM_GetShiftState done [20:29:37]opened in 1729469754 [20:29:37]opened+sec_in_day 1729556154 [20:29:37]quantity*price = 450076 [20:29:37]sum+1 = 450077 [20:29:37]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 4500.76 НСП 1% : 39.83 НДС 12% : 477.96 Наличными: 0.00 Безнал.: 4500.76 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 378 21.10.2024 20:29 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000965340 ФД: 187914 ФПД: 78791680735226 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T202942&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187914&fm=78791680735226&tin=02508201610067®Number=0000000000100030&sum=450076 [20:29:38]StoreToDocumentArchive [20:29:38]shift 460 fd 187914 [20:29:38]save to /storage/0460/doc_00187914 [20:29:38]save last doc name /storage/0460/doc_00187914 to /storage/kkm_last_doc_name [20:29:38]save OK [20:29:38]Clear old archive folders... [20:29:38]ProcessDocumentItem done err = 0, tmpTLVsize=257 [20:29:38]tlvbuf is 01293370 [20:29:38]SAM_PROTO_ClearQueue [20:29:38]wFMCommunicate request_size=4 [20:29:38]MH_SAM_APDU [20:29:38]CAPDU: 80 09 00 00 [20:29:38]Write to MH i2c: E2 08 00 C8 8C 80 09 00 00 00 00 00 00 C6 [20:29:38]Write i2c OK [20:29:38]MH_I2C_Read... [20:29:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:29:38]Read from MH i2c: E2 [20:29:38]MH_I2C_Read... [20:29:38]Read from MH i2c: E2 03 00 [20:29:38]MH_I2C_Read... [20:29:38]Read from MH i2c: E2 03 00 C8 8C 00 90 00 C8 [20:29:38]RAPDU: 90 00 [20:29:38]wFMCommunicate OK [20:29:38]SAM_PROTO_ClearQueue done [20:29:38]KKMCreateOFDPacket [20:29:38]OFDProtocolAddRootSTLVToBuf [20:29:38]FM_MakeSignedData [20:29:38]FM_MakeSignedData [20:29:38]SAM_PROTO_SignData [20:29:38]wFMCommunicate request_size=4 [20:29:38]MH_SAM_APDU [20:29:38]CAPDU: 80 0D 01 02 [20:29:38]Write to MH i2c: E2 08 00 C9 8C 80 0D 01 02 00 00 00 00 CE [20:29:38]Write i2c OK [20:29:38]MH_I2C_Read... [20:29:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:29:38]Read from MH i2c: E2 [20:29:38]MH_I2C_Read... [20:29:38]Read from MH i2c: E2 03 00 [20:29:38]MH_I2C_Read... [20:29:38]Read from MH i2c: E2 03 00 C9 8C 00 90 00 C9 [20:29:38]RAPDU: 90 00 [20:29:38]wFMCommunicate OK [20:29:38]wFMCommunicate request_size=255 [20:29:38]MH_SAM_APDU [20:29:38]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 BC E3 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 1C DE 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C DE 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8F 0F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B4 BA 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 1C DE 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 01 00 00 F4 03 04 00 B6 B9 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 0A DE 02 [20:29:38]Write to MH i2c: E2 02 01 CA 8C 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 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 BC E3 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 1C DE 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C DE 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8F 0F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B4 BA 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 1C DE 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 01 00 00 F4 03 04 00 B6 B9 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 0A DE 02 00 00 58 [20:29:38]Write i2c OK [20:29:38]MH_I2C_Read... [20:29:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:29:38]Read from MH i2c: E2 [20:29:38]MH_I2C_Read... [20:29:38]Read from MH i2c: E2 03 00 [20:29:38]MH_I2C_Read... [20:29:38]Read from MH i2c: E2 03 00 CA 8C 00 90 00 CA [20:29:38]RAPDU: 90 00 [20:29:38]wFMCommunicate OK [20:29:38]wFMCommunicate request_size=16 [20:29:38]MH_SAM_APDU [20:29:38]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 47 A9 1E 24 37 FA [20:29:38]Write to MH i2c: E2 13 00 CB 8C 80 0D 02 02 0B 00 00 35 04 06 00 47 A9 1E 24 37 FA 00 00 89 [20:29:38]Write i2c OK [20:29:38]MH_I2C_Read... [20:29:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:29:38]Read from MH i2c: E2 [20:29:38]MH_I2C_Read... [20:29:38]Read from MH i2c: E2 03 00 [20:29:38]MH_I2C_Read... [20:29:38]Read from MH i2c: E2 03 00 CB 8C 00 90 00 CB [20:29:38]RAPDU: 90 00 [20:29:38]wFMCommunicate OK [20:29:38]wFMCommunicate request_size=4 [20:29:38]MH_SAM_APDU [20:29:38]CAPDU: 80 0D 03 02 [20:29:38]Write to MH i2c: E2 08 00 CC 8C 80 0D 03 02 00 00 00 00 D3 [20:29:38]Write i2c OK [20:29:38]MH_I2C_Read... [20:29:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:29:38]Read from MH i2c: E2 [20:29:38]MH_I2C_Read... [20:29:38]Read from MH i2c: E2 0B 00 [20:29:38]MH_I2C_Read... [20:29:38]Read from MH i2c: E2 0B 00 CC 8C 00 1C D9 92 A9 C2 99 B3 5C 90 00 6E [20:29:38]RAPDU: 1C D9 92 A9 C2 99 B3 5C 90 00 [20:29:38]wFMCommunicate OK [20:29:38]SAM_PROTO_SignData done [20:29:38]FM_MakeSignedData done [20:29:38]CreateOFDProtocolMessage [20:29:38]wFMCommunicate request_size=4 [20:29:38]MH_SAM_APDU [20:29:38]CAPDU: 80 11 00 00 [20:29:38]Write to MH i2c: E2 08 00 CD 8C 80 11 00 00 00 00 00 00 D3 [20:29:38]Write i2c OK [20:29:38]MH_I2C_Read... [20:29:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:29:38]Read from MH i2c: E2 [20:29:38]MH_I2C_Read... [20:29:38]Read from MH i2c: E2 17 00 [20:29:38]MH_I2C_Read... [20:29:38]Read from MH i2c: E2 17 00 CD 8C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 21 [20:29:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [20:29:38]wFMCommunicate OK [20:29:38]CreateOFDProtocolMessage done [20:29:38]OFDSenderStorePacket 187914 [20:29:38]StoreOFDPacket docnum=187914 [20:29:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 6C 9F 0D 01 62 4E 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 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 BC E3 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 1C DE 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C DE 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8F 0F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B4 BA 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 1C DE 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 01 00 00 F4 03 04 00 B6 B9 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 0A DE 02 00 35 04 06 00 47 A9 1E 24 37 FA 1C D9 92 A9 C2 99 B3 5C [20:29:38]CheckFolder [20:29:38]dirname=/storage/ofd_packets [20:29:38]CheckFolder done [20:29:38]ProducePacketName [20:29:38]name=ofd_packets/00187914 [20:29:38]NVStorageSaveData ofd_packets/00187914 [20:29:38]File name is /storage/ofd_packets/00187914 [20:29:38]Write 307 bytes [20:29:38]NVStorageSaveData done [20:29:38]OFDSenderStorePacket done [20:29:38]KKMCreateOFDPacket done [20:29:38]NVStorageSaveData kkm_last_timestamp [20:29:38]File name is /storage/kkm_last_timestamp [20:29:38]Write 4 bytes [20:29:38]NVStorageSaveData done [20:29:38]ExternCall_PrintAddStr [20:29:38]wPrintStart [20:29:38]Write to MH i2c: 01 00 00 CE 8C 5A [20:29:38]Write i2c OK [20:29:38]MH_I2C_Read... [20:29:38]Read from MH i2c: 01 [20:29:38]MH_I2C_Read... [20:29:38]Read from MH i2c: 01 07 00 [20:29:38]MH_I2C_Read... [20:29:38]Read from MH i2c: 01 07 00 CE 8C 00 00 00 00 00 FF 0F 6F [20:29:38]RasterBufferAndPrint [20:29:38]line Счет N : (1)209966 [20:29:38]line ИНН: 02508201610067 [20:29:38]line Контрольно-Кассовый Чек [20:29:38]line ПРОДАЖА [20:29:38]line ТРК (МРК, ГНК) : 31 [20:29:38]line Товар: 2710194210 [20:29:38]line D-ENERGY ДТ-К-5 [20:29:38]line 58.300 * 77.20 [20:29:38]line = 4500.76 [20:29:38]line НДС 12% НСП 1% [20:29:38]line > о реализуемом товаре [20:29:38]line ИТОГО: 4500.76 [20:29:38]line НСП 1% : 39.83 [20:29:38]line НДС 12% : 477.96 [20:29:38]line Наличными: 0.00 [20:29:38]line Безнал.: 4500.76 [20:29:38]line Место: АЗС № 86 "Партнер Нефть" [20:29:38]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [20:29:38]line СНО: Общий режим [20:29:38]line Чек 378 21.10.2024 20:29 [20:29:38]line Смена: 460 ФФД: 1.0 [20:29:38]line ЗНМ: 0300000155 [20:29:38]line РНМ: 0000000000100030 [20:29:38]line Версия ККМ: 001 [20:29:38]line Платежная система: Mbank [20:29:38]line ФМ: 0000000000965340 [20:29:38]line ФД: 187914 [20:29:38]line ФПД: 78791680735226 [20:29:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T202942&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187914&fm=78791680735226&tin=02508201610067®Number=0000000000100030&sum=450076 [20:29:38]written 0, free lines is 4095 [20:29:38]OFD Sender: Processing packet 187914 [packets to send 1062, broken 1061] [20:29:38]ProducePacketName [20:29:38]name=ofd_packets/00187914 [20:29:38]OFD Sender: To server: pG, [20:29:38]CommunicateWithHost lk.salyk.kg:30040 [20:29:38]ConnectInit lk.salyk.kg [20:29:39]Connected sock=10 [20:29:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 6C 9F 0D 01 62 4E 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 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 BC E3 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 1C DE 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C DE 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8F 0F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B4 BA 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 1C DE 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 01 00 00 F4 03 04 00 B6 B9 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 0A DE 02 00 35 04 06 00 47 A9 1E 24 37 FA 1C D9 92 A9 C2 99 B3 5C [20:29:39]Write to MH i2c: 01 00 00 F7 8C 83 [20:29:39]Write i2c OK [20:29:39]MH_I2C_Read... [20:29:39]Read from MH i2c: 01 [20:29:39]MH_I2C_Read... [20:29:39]Read from MH i2c: 01 07 00 [20:29:39]MH_I2C_Read... [20:29:39]Read from MH i2c: 01 07 00 F7 8C 00 00 00 00 00 95 0C 2B [20:29:39]RasterBufferAndPrint [20:29:39]line [20:29:39]line [20:29:39]line [20:29:39]line [20:29:39]line [20:29:39]written 0, free lines is 3226 [20:29:39]MH_Cut [20:29:39]Write to MH i2c: D1 01 00 FE 8C 01 5C [20:29:39]Write i2c OK [20:29:39]MH_I2C_Read... [20:29:39]Read from MH i2c: D1 [20:29:39]MH_I2C_Read... [20:29:39]Read from MH i2c: D1 01 00 [20:29:39]MH_I2C_Read... [20:29:39]Read from MH i2c: D1 01 00 FE 8C 00 5B [20:29:39]Write to MH i2c: 01 00 00 FF 8C 8B [20:29:39]Write i2c OK [20:29:39]MH_I2C_Read... [20:29:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 6C 6E 47 00 65 66 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 0A DE 02 00 F4 03 04 00 A5 63 16 67 B6 04 01 00 00 BE 10 A9 86 E3 5F 6C B6 [20:29:39]CommunicateWithHost err = 0 [20:29:39]CheckOFDResponse [20:29:39]1017 (14) - 77093643461234 [20:29:39]1041 (16) - 0000000000965340 [20:29:39]1040 (4) - 187914 [20:29:39]1012 (4) - 21.10.2024 14:22 [20:29:39]1206 (1) - 0 [20:29:39]OFD Sender: Remove packet 187914 [20:29:39]ProducePacketName [20:29:39]name=ofd_packets/00187914 [20:29:39]NVStorageDeleteData [20:29:39]OFD Sender: No OFD packet to send [20:29:40]*** Cut start [20:29:40]*** Partial cut [20:29:40]*** CUTSNS_PIN = 1 [20:29:40]*** CUTSNS_PIN = 0 [20:29:40]*** Brake cut motor [20:29:41]Read from MH i2c: 01 [20:29:41]MH_I2C_Read... [20:29:41]*** Stop cut motor [20:29:41]*** Cut end [20:29:41]Read from MH i2c: 01 07 00 [20:29:41]MH_I2C_Read... [20:29:41]Read from MH i2c: 01 07 00 FF 8C 00 00 00 00 00 FF 0F A0 [20:29:41]process_action close_receipt done [20:29:41]requested_data is exist [20:29:41]produce_requested_data [20:29:41]requested_item fm.sn is exist - process it [20:29:41]wFMCommunicate request_size=4 [20:29:41]MH_SAM_APDU [20:29:41]CAPDU: 80 11 00 00 [20:29:41]Write to MH i2c: E2 08 00 00 8D 80 11 00 00 00 00 00 00 07 [20:29:41]Write i2c OK [20:29:41]MH_I2C_Read... [20:29:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:29:41]Read from MH i2c: E2 [20:29:41]MH_I2C_Read... [20:29:41]Read from MH i2c: E2 17 00 [20:29:41]MH_I2C_Read... [20:29:41]Read from MH i2c: E2 17 00 00 8D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 55 [20:29:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [20:29:41]wFMCommunicate OK [20:29:41]requested_item fd.num is exist - process it [20:29:41]SAM_PROTO_GetFieldsCounters [20:29:41]wFMCommunicate request_size=4 [20:29:41]MH_SAM_APDU [20:29:41]CAPDU: 80 13 00 00 [20:29:41]Write to MH i2c: E2 08 00 01 8D 80 13 00 00 00 00 00 00 0A [20:29:41]Write i2c OK [20:29:41]MH_I2C_Read... [20:29:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:29:41]Read from MH i2c: E2 [20:29:41]MH_I2C_Read... [20:29:41]Read from MH i2c: E2 62 00 [20:29:41]MH_I2C_Read... [20:29:41]Read from MH i2c: E2 62 00 01 8D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 0A DE 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 7A 01 00 00 5E 04 04 00 7A 01 00 00 57 04 04 00 7B 01 00 00 19 04 04 00 00 00 00 00 90 00 39 [20:29:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 0A DE 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 7A 01 00 00 5E 04 04 00 7A 01 00 00 57 04 04 00 7B 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:29:41]wFMCommunicate OK [20:29:41]SAM_PROTO_GetFieldsCounters done [20:29:41]requested_item shift.num is exist - process it [20:29:41]requested_item shift.opened is exist - process it [20:29:41]req_shift_opened [20:29:41]FM_GetShiftState [20:29:41]SAM_PROTO_GetShiftState [20:29:41]wFMCommunicate request_size=4 [20:29:41]MH_SAM_APDU [20:29:41]CAPDU: 80 13 01 00 [20:29:41]Write to MH i2c: E2 08 00 02 8D 80 13 01 00 00 00 00 00 0C [20:29:41]Write i2c OK [20:29:41]MH_I2C_Read... [20:29:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:29:41]Read from MH i2c: E2 [20:29:41]MH_I2C_Read... [20:29:41]Read from MH i2c: E2 0E 00 [20:29:41]MH_I2C_Read... [20:29:41]Read from MH i2c: E2 0E 00 02 8D 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 6B [20:29:41]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [20:29:41]wFMCommunicate OK [20:29:41]SAM_PROTO_GetShiftState done [20:29:41]FM_GetShiftState done [20:29:41]req_shift_opened done [20:29:41]requested_item shift.open_date is exist - process it [20:29:41]req_shift_open_date [20:29:41]req_shift_open_date done [20:29:41]produce_requested_data done [20:29:41]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187914,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [20:29:41]process_action_free close_receipt [20:29:41]json_value_free [20:29:41]json_value_free done [20:29:41]process_json_proto returns [20:29:41]Send response to host [20:29:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187914,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [20:29:41]free response buf [20:29:41]execute_script done [20:29:41]execute_script returns [20:29:41]free content buf [20:29:41]Sock 8.Close socket [20:29:41]Sock 8.Thread stoped [20:29:44]OFD Sender: No OFD packet to send [20:29:49]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:49]accept exits with 9 [20:32:49]New connection [20:32:49]New thread 3067014500 created [20:32:49]Thread 3067157860 joined [20:32:49]Waiting for new connection... [20:32:49] Sock 9.Parse request [20:32:49]Sock 9.Check first char [20:32:49]Sock 9.First char is OK [20:32:49]request: POST /json_proto HTTP/1.0 [20:32:49]Method: POST [20:32:49]URL: /json_proto [20:32:49]Method is POST - this is cgi request [20:32:49]url: /json_proto [20:32:49]query_string will be loaded in cgi processing [20:32:49]execute_cgi json_proto POST (null) [20:32:49]execute_cgi path=json_proto method=POST [20:32:49]POST find Content-Length [20:32:49]Host: 172.17.42.131:8080 [20:32:49]Content-Length: 682 [20:32:49]Content-Type: application/json [20:32:49] [20:32:49]POST finish read [20:32:49]Found Content-Length = 682 [20:32:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209967", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 26.960, "sum" : 2000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:32:49]execute_script... [20:32: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)209967", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 26.960, "sum" : 2000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:32:49]POST & json_proto [20:32:49]process_json_proto [20:32:49]json parsed OK: [20:32:49]protocol is kg_v1.0 [20:32:49]action value=close_receipt [20:32:49]process_action close_receipt [20:32:49]cmd_close_receipt [20:32:49]MH_GetDate [20:32:49]Write to MH i2c: F0 00 00 03 8D 7F [20:32:49]Write i2c OK [20:32:49]MH_I2C_Read... [20:32:49]Read from MH i2c: F0 [20:32:49]MH_I2C_Read... [20:32:49]Read from MH i2c: F0 09 00 [20:32:49]MH_I2C_Read... [20:32:49]Read from MH i2c: F0 09 00 03 8D 00 77 BA 16 67 A0 18 CA 66 1E [20:32:49]GetLastDocTimeStamp 1729542582 [20:32:49]current date 1729542775 [20:32:49]FM_GetShiftState [20:32:49]SAM_PROTO_GetShiftState [20:32:49]wFMCommunicate request_size=4 [20:32:49]MH_SAM_APDU [20:32:49]CAPDU: 80 13 01 00 [20:32:49]Write to MH i2c: E2 08 00 04 8D 80 13 01 00 00 00 00 00 0E [20:32:49]Write i2c OK [20:32:49]MH_I2C_Read... [20:32:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:32:49]Read from MH i2c: E2 [20:32:49]MH_I2C_Read... [20:32:49]Read from MH i2c: E2 0E 00 [20:32:49]MH_I2C_Read... [20:32:49]Read from MH i2c: E2 0E 00 04 8D 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 6D [20:32:49]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [20:32:49]wFMCommunicate OK [20:32:49]SAM_PROTO_GetShiftState done [20:32:49]FM_GetShiftState done [20:32:49]opened in 1729469754 [20:32:49]opened+sec_in_day 1729556154 [20:32:49]quantity*price = 200043 [20:32:49]sum+1 = 200044 [20:32:49]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.43 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.43 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 379 21.10.2024 20:32 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 187915 ФПД: 170264054051790 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T203255&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187915&fm=170264054051790&tin=02508201610067®Number=0000000000100030&sum=200000 [20:32:50]StoreToDocumentArchive [20:32:50]shift 460 fd 187915 [20:32:50]save to /storage/0460/doc_00187915 [20:32:50]save last doc name /storage/0460/doc_00187915 to /storage/kkm_last_doc_name [20:32:50]save OK [20:32:50]Clear old archive folders... [20:32:50]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:32:50]tlvbuf is 010FC960 [20:32:50]SAM_PROTO_ClearQueue [20:32:50]wFMCommunicate request_size=4 [20:32:50]MH_SAM_APDU [20:32:50]CAPDU: 80 09 00 00 [20:32:50]Write to MH i2c: E2 08 00 11 8D 80 09 00 00 00 00 00 00 10 [20:32:50]Write i2c OK [20:32:50]MH_I2C_Read... [20:32:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:32:50]Read from MH i2c: E2 [20:32:50]MH_I2C_Read... [20:32:50]Read from MH i2c: E2 03 00 [20:32:50]MH_I2C_Read... [20:32:50]Read from MH i2c: E2 03 00 11 8D 00 90 00 12 [20:32:50]RAPDU: 90 00 [20:32:50]wFMCommunicate OK [20:32:50]SAM_PROTO_ClearQueue done [20:32:50]KKMCreateOFDPacket [20:32:50]OFDProtocolAddRootSTLVToBuf [20:32:50]FM_MakeSignedData [20:32:50]FM_MakeSignedData [20:32:50]SAM_PROTO_SignData [20:32:50]wFMCommunicate request_size=4 [20:32:50]MH_SAM_APDU [20:32:50]CAPDU: 80 0D 01 02 [20:32:50]Write to MH i2c: E2 08 00 12 8D 80 0D 01 02 00 00 00 00 18 [20:32:50]Write i2c OK [20:32:50]MH_I2C_Read... [20:32:50]OFD Sender: No OFD packet to send [20:32:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:32:50]Read from MH i2c: E2 [20:32:50]MH_I2C_Read... [20:32:50]Read from MH i2c: E2 03 00 [20:32:50]MH_I2C_Read... [20:32:50]Read from MH i2c: E2 03 00 12 8D 00 90 00 13 [20:32:50]RAPDU: 90 00 [20:32:50]wFMCommunicate OK [20:32:50]wFMCommunicate request_size=255 [20:32:50]MH_SAM_APDU [20:32:50]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7B 01 00 00 F4 03 04 00 77 BA 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 0B DE 02 00 35 04 06 00 9A [20:32:50]Write to MH i2c: E2 02 01 13 8D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7B 01 00 00 F4 03 04 00 77 BA 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 0B DE 02 00 35 04 06 00 9A 00 00 AF [20:32:50]Write i2c OK [20:32:50]MH_I2C_Read... [20:32:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:32:51]Read from MH i2c: E2 [20:32:51]MH_I2C_Read... [20:32:51]Read from MH i2c: E2 03 00 [20:32:51]MH_I2C_Read... [20:32:51]Read from MH i2c: E2 03 00 13 8D 00 90 00 14 [20:32:51]RAPDU: 90 00 [20:32:51]wFMCommunicate OK [20:32:51]wFMCommunicate request_size=10 [20:32:51]MH_SAM_APDU [20:32:51]CAPDU: 80 0D 02 02 05 DA B0 75 B3 CE [20:32:51]Write to MH i2c: E2 0D 00 14 8D 80 0D 02 02 05 00 DA B0 75 B3 CE 00 00 A5 [20:32:51]Write i2c OK [20:32:51]MH_I2C_Read... [20:32:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:32:51]Read from MH i2c: E2 [20:32:51]MH_I2C_Read... [20:32:51]Read from MH i2c: E2 03 00 [20:32:51]MH_I2C_Read... [20:32:51]Read from MH i2c: E2 03 00 14 8D 00 90 00 15 [20:32:51]RAPDU: 90 00 [20:32:51]wFMCommunicate OK [20:32:51]wFMCommunicate request_size=4 [20:32:51]MH_SAM_APDU [20:32:51]CAPDU: 80 0D 03 02 [20:32:51]Write to MH i2c: E2 08 00 15 8D 80 0D 03 02 00 00 00 00 1D [20:32:51]Write i2c OK [20:32:51]MH_I2C_Read... [20:32:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:32:51]Read from MH i2c: E2 [20:32:51]MH_I2C_Read... [20:32:51]Read from MH i2c: E2 0B 00 [20:32:51]MH_I2C_Read... [20:32:51]Read from MH i2c: E2 0B 00 15 8D 00 1D 56 8B 5E 66 A5 EC 8A 90 00 FB [20:32:51]RAPDU: 1D 56 8B 5E 66 A5 EC 8A 90 00 [20:32:51]wFMCommunicate OK [20:32:51]SAM_PROTO_SignData done [20:32:51]FM_MakeSignedData done [20:32:51]CreateOFDProtocolMessage [20:32:51]wFMCommunicate request_size=4 [20:32:51]MH_SAM_APDU [20:32:51]CAPDU: 80 11 00 00 [20:32:51]Write to MH i2c: E2 08 00 16 8D 80 11 00 00 00 00 00 00 1D [20:32:51]Write i2c OK [20:32:51]MH_I2C_Read... [20:32:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:32:51]Read from MH i2c: E2 [20:32:51]MH_I2C_Read... [20:32:51]Read from MH i2c: E2 17 00 [20:32:51]MH_I2C_Read... [20:32:51]Read from MH i2c: E2 17 00 16 8D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 6B [20:32:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [20:32:51]wFMCommunicate OK [20:32:51]CreateOFDProtocolMessage done [20:32:51]OFDSenderStorePacket 187915 [20:32:51]StoreOFDPacket docnum=187915 [20:32:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 E7 DC 07 01 83 33 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7B 01 00 00 F4 03 04 00 77 BA 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 0B DE 02 00 35 04 06 00 9A DA B0 75 B3 CE 1D 56 8B 5E 66 A5 EC 8A [20:32:51]CheckFolder [20:32:51]dirname=/storage/ofd_packets [20:32:51]CheckFolder done [20:32:51]ProducePacketName [20:32:51]name=ofd_packets/00187915 [20:32:51]NVStorageSaveData ofd_packets/00187915 [20:32:51]File name is /storage/ofd_packets/00187915 [20:32:51]Write 301 bytes [20:32:51]NVStorageSaveData done [20:32:51]OFDSenderStorePacket done [20:32:51]KKMCreateOFDPacket done [20:32:51]NVStorageSaveData kkm_last_timestamp [20:32:51]File name is /storage/kkm_last_timestamp [20:32:51]Write 4 bytes [20:32:51]NVStorageSaveData done [20:32:51]ExternCall_PrintAddStr [20:32:51]wPrintStart [20:32:51]Write to MH i2c: 01 00 00 17 8D A4 [20:32:51]Write i2c OK [20:32:51]MH_I2C_Read... [20:32:51]Read from MH i2c: 01 [20:32:51]MH_I2C_Read... [20:32:51]Read from MH i2c: 01 07 00 [20:32:51]MH_I2C_Read... [20:32:51]Read from MH i2c: 01 07 00 17 8D 00 00 00 00 00 FF 0F B9 [20:32:51]RasterBufferAndPrint [20:32:51]line Счет N : (1)209967 [20:32:51]line ИНН: 02508201610067 [20:32:51]line Контрольно-Кассовый Чек [20:32:51]line ПРОДАЖА [20:32:51]line ТРК (МРК, ГНК) : 33 [20:32:51]line Товар: 2710124500 [20:32:51]line Аи-95-К-3 [20:32:51]line 26.960 * 74.20 [20:32:51]line = 2000.43 [20:32:51]line НДС 12% НСП 1% [20:32:51]line > о реализуемом товаре [20:32:51]line ОКРУГЛЕНИЕ: -0.43 [20:32:51]line ИТОГО: 2000.00 [20:32:51]line Внесено: 2000.00 [20:32:51]line СДАЧА: 0.00 [20:32:51]line НСП 1% : 17.70 [20:32:51]line НДС 12% : 212.43 [20:32:51]line Наличными: 2000.00 [20:32:51]line Безнал.: 0.00 [20:32:51]line Место: АЗС № 86 "Партнер Нефть" [20:32:51]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [20:32:51]line СНО: Общий режим [20:32:51]line Чек 379 21.10.2024 20:32 [20:32:51]line Смена: 460 ФФД: 1.0 [20:32:51]line ЗНМ: 0300000155 [20:32:51]line РНМ: 0000000000100030 [20:32:51]line Версия ККМ: 001 [20:32:51]line ФМ: 0000000000965340 [20:32:51]line ФД: 187915 [20:32:51]line ФПД: 170264054051790 [20:32:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T203255&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187915&fm=170264054051790&tin=02508201610067®Number=0000000000100030&sum=200000 [20:32:51]written 0, free lines is 4095 [20:32:51]OFD Sender: Processing packet 187915 [packets to send 1062, broken 1061] [20:32:51]ProducePacketName [20:32:51]name=ofd_packets/00187915 [20:32:51]OFD Sender: To server: pG, [20:32:51]CommunicateWithHost lk.salyk.kg:30040 [20:32:51]ConnectInit lk.salyk.kg [20:32:51]Write to MH i2c: 01 00 00 42 8D CF [20:32:51]Write i2c OK [20:32:51]MH_I2C_Read... [20:32:51]Read from MH i2c: 01 [20:32:51]MH_I2C_Read... [20:32:51]Read from MH i2c: 01 07 00 [20:32:51]MH_I2C_Read... [20:32:51]Read from MH i2c: 01 07 00 42 8D 00 00 00 00 00 61 0C 43 [20:32:51]RasterBufferAndPrint [20:32:51]line [20:32:51]line [20:32:51]line [20:32:51]line [20:32:51]line [20:32:51]written 0, free lines is 3172 [20:32:51]MH_Cut [20:32:51]Write to MH i2c: D1 01 00 49 8D 01 A8 [20:32:51]Write i2c OK [20:32:51]MH_I2C_Read... [20:32:51]Read from MH i2c: D1 [20:32:51]MH_I2C_Read... [20:32:51]Read from MH i2c: D1 01 00 [20:32:51]MH_I2C_Read... [20:32:51]Read from MH i2c: D1 01 00 49 8D 00 A7 [20:32:51]Write to MH i2c: 01 00 00 4A 8D D7 [20:32:51]Write i2c OK [20:32:51]MH_I2C_Read... [20:32:53]*** Cut start [20:32:53]*** Partial cut [20:32:53]*** CUTSNS_PIN = 1 [20:32:53]*** CUTSNS_PIN = 0 [20:32:53]*** Brake cut motor [20:32:53]Read from MH i2c: 01 [20:32:53]MH_I2C_Read... [20:32:53]*** Stop cut motor [20:32:53]*** Cut end [20:32:53]Read from MH i2c: 01 07 00 [20:32:53]MH_I2C_Read... [20:32:53]Read from MH i2c: 01 07 00 4A 8D 00 00 00 00 00 FF 0F EC [20:32:53]process_action close_receipt done [20:32:53]requested_data is exist [20:32:53]produce_requested_data [20:32:53]requested_item fm.sn is exist - process it [20:32:53]wFMCommunicate request_size=4 [20:32:53]MH_SAM_APDU [20:32:53]CAPDU: 80 11 00 00 [20:32:53]Write to MH i2c: E2 08 00 4B 8D 80 11 00 00 00 00 00 00 52 [20:32:53]Write i2c OK [20:32:53]MH_I2C_Read... [20:32:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:32:53]Read from MH i2c: E2 [20:32:53]MH_I2C_Read... [20:32:53]Read from MH i2c: E2 17 00 [20:32:53]MH_I2C_Read... [20:32:53]Read from MH i2c: E2 17 00 4B 8D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 A0 [20:32:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [20:32:53]wFMCommunicate OK [20:32:53]requested_item fd.num is exist - process it [20:32:53]SAM_PROTO_GetFieldsCounters [20:32:53]wFMCommunicate request_size=4 [20:32:53]MH_SAM_APDU [20:32:53]CAPDU: 80 13 00 00 [20:32:53]Write to MH i2c: E2 08 00 4C 8D 80 13 00 00 00 00 00 00 55 [20:32:53]Write i2c OK [20:32:53]MH_I2C_Read... [20:32:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:32:53]Read from MH i2c: E2 [20:32:53]MH_I2C_Read... [20:32:53]Read from MH i2c: E2 62 00 [20:32:53]MH_I2C_Read... [20:32:53]Read from MH i2c: E2 62 00 4C 8D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 0B DE 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 7B 01 00 00 5E 04 04 00 7B 01 00 00 57 04 04 00 7C 01 00 00 19 04 04 00 00 00 00 00 90 00 88 [20:32:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 0B DE 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 7B 01 00 00 5E 04 04 00 7B 01 00 00 57 04 04 00 7C 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:32:53]wFMCommunicate OK [20:32:53]SAM_PROTO_GetFieldsCounters done [20:32:53]requested_item shift.num is exist - process it [20:32:53]requested_item shift.opened is exist - process it [20:32:53]req_shift_opened [20:32:53]FM_GetShiftState [20:32:53]SAM_PROTO_GetShiftState [20:32:53]wFMCommunicate request_size=4 [20:32:53]MH_SAM_APDU [20:32:53]CAPDU: 80 13 01 00 [20:32:53]Write to MH i2c: E2 08 00 4D 8D 80 13 01 00 00 00 00 00 57 [20:32:53]Write i2c OK [20:32:53]MH_I2C_Read... [20:32:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:32:53]Read from MH i2c: E2 [20:32:53]MH_I2C_Read... [20:32:53]Read from MH i2c: E2 0E 00 [20:32:53]MH_I2C_Read... [20:32:53]Read from MH i2c: E2 0E 00 4D 8D 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 B6 [20:32:53]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [20:32:53]wFMCommunicate OK [20:32:53]SAM_PROTO_GetShiftState done [20:32:53]FM_GetShiftState done [20:32:53]req_shift_opened done [20:32:53]requested_item shift.open_date is exist - process it [20:32:53]req_shift_open_date [20:32:53]req_shift_open_date done [20:32:53]produce_requested_data done [20:32:53]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187915,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [20:32:53]process_action_free close_receipt [20:32:53]json_value_free [20:32:53]json_value_free done [20:32:53]process_json_proto returns [20:32:53]Send response to host [20:32:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187915,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [20:32:53]free response buf [20:32:53]execute_script done [20:32:53]execute_script returns [20:32:53]free content buf [20:32:53]Sock 9.Close socket [20:32:53]Sock 9.Thread stoped [20:35:03]ConnectInit Can't connect to host [20:35:03]CommunicateWithHost connect error [20:35:03]CommunicateWithHost err = -1 [20:35:03]OFD Sender: Server communicate error [20:35:09]OFD Sender: Processing packet 187915 [packets to send 1062, broken 1061] [20:35:09]ProducePacketName [20:35:09]name=ofd_packets/00187915 [20:35:09]OFD Sender: To server: pG, [20:35:09]CommunicateWithHost lk.salyk.kg:30040 [20:35:09]ConnectInit lk.salyk.kg [20:35:09]Connected sock=9 [20:35:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 E7 DC 07 01 83 33 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7B 01 00 00 F4 03 04 00 77 BA 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 0B DE 02 00 35 04 06 00 9A DA B0 75 B3 CE 1D 56 8B 5E 66 A5 EC 8A [20:35:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 49 BE 47 00 F2 A5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 0B DE 02 00 F4 03 04 00 EF 64 16 67 B6 04 01 00 00 53 74 68 3C D3 D2 C9 B2 [20:35:09]CommunicateWithHost err = 0 [20:35:09]CheckOFDResponse [20:35:09]1017 (14) - 77093643461234 [20:35:09]1041 (16) - 0000000000965340 [20:35:09]1040 (4) - 187915 [20:35:09]1012 (4) - 21.10.2024 14:27 [20:35:09]1206 (1) - 0 [20:35:09]OFD Sender: Remove packet 187915 [20:35:09]ProducePacketName [20:35:09]name=ofd_packets/00187915 [20:35:09]NVStorageDeleteData [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:02]accept exits with 8 [20:38:02]New connection [20:38:02]New thread 3067157860 created [20:38:02]Thread 3067014500 joined [20:38:02]Waiting for new connection... [20:38:02] Sock 8.Parse request [20:38:02]Sock 8.Check first char [20:38:02]Sock 8.First char is OK [20:38:02]request: POST /json_proto HTTP/1.0 [20:38:02]Method: POST [20:38:02]URL: /json_proto [20:38:02]Method is POST - this is cgi request [20:38:02]url: /json_proto [20:38:02]query_string will be loaded in cgi processing [20:38:02]execute_cgi json_proto POST (null) [20:38:02]execute_cgi path=json_proto method=POST [20:38:02]POST find Content-Length [20:38:02]Host: 172.17.42.131:8080 [20:38:02]Content-Length: 679 [20:38:02]Content-Type: application/json [20:38:02] [20:38:02]POST finish read [20:38:02]Found Content-Length = 679 [20:38:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209968", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 34.130, "sum" : 2600.71, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2600.00, "total" : 2600.00, "payments": [ { "type": 0, "sum" : 2600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:38:02]execute_script... [20:38: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)209968", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 34.130, "sum" : 2600.71, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2600.00, "total" : 2600.00, "payments": [ { "type": 0, "sum" : 2600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:38:02]POST & json_proto [20:38:02]process_json_proto [20:38:02]json parsed OK: [20:38:02]protocol is kg_v1.0 [20:38:02]action value=close_receipt [20:38:02]process_action close_receipt [20:38:02]cmd_close_receipt [20:38:02]MH_GetDate [20:38:02]Write to MH i2c: F0 00 00 4E 8D CA [20:38:02]Write i2c OK [20:38:02]MH_I2C_Read... [20:38:02]Read from MH i2c: F0 [20:38:02]MH_I2C_Read... [20:38:02]Read from MH i2c: F0 09 00 [20:38:02]MH_I2C_Read... [20:38:02]Read from MH i2c: F0 09 00 4E 8D 00 AF BB 16 67 A0 18 CA 66 A2 [20:38:02]GetLastDocTimeStamp 1729542775 [20:38:02]current date 1729543087 [20:38:02]FM_GetShiftState [20:38:02]SAM_PROTO_GetShiftState [20:38:02]wFMCommunicate request_size=4 [20:38:02]MH_SAM_APDU [20:38:02]CAPDU: 80 13 01 00 [20:38:02]Write to MH i2c: E2 08 00 4F 8D 80 13 01 00 00 00 00 00 59 [20:38:02]Write i2c OK [20:38:02]MH_I2C_Read... [20:38:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:38:02]Read from MH i2c: E2 [20:38:02]MH_I2C_Read... [20:38:02]Read from MH i2c: E2 0E 00 [20:38:02]MH_I2C_Read... [20:38:02]Read from MH i2c: E2 0E 00 4F 8D 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 B8 [20:38:02]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [20:38:02]wFMCommunicate OK [20:38:02]SAM_PROTO_GetShiftState done [20:38:02]FM_GetShiftState done [20:38:02]opened in 1729469754 [20:38:02]opened+sec_in_day 1729556154 [20:38:02]quantity*price = 260070 [20:38:02]sum+1 = 260072 [20:38:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.71 ИТОГО: 2600.00 Внесено: 2600.00 СДАЧА: 0.00 НСП 1% : 23.01 НДС 12% : 276.18 Наличными: 2600.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 380 21.10.2024 20:38 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 187916 ФПД: 145676932915723 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T203807&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187916&fm=145676932915723&tin=02508201610067®Number=0000000000100030&sum=260000 [20:38:03]StoreToDocumentArchive [20:38:03]shift 460 fd 187916 [20:38:03]save to /storage/0460/doc_00187916 [20:38:03]save last doc name /storage/0460/doc_00187916 to /storage/kkm_last_doc_name [20:38:03]save OK [20:38:03]Clear old archive folders... [20:38:03]ProcessDocumentItem done err = 0, tmpTLVsize=248 [20:38:03]tlvbuf is 012D0920 [20:38:03]SAM_PROTO_ClearQueue [20:38:03]wFMCommunicate request_size=4 [20:38:03]MH_SAM_APDU [20:38:03]CAPDU: 80 09 00 00 [20:38:03]Write to MH i2c: E2 08 00 5C 8D 80 09 00 00 00 00 00 00 5B [20:38:03]Write i2c OK [20:38:03]MH_I2C_Read... [20:38:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:38:03]Read from MH i2c: E2 [20:38:03]MH_I2C_Read... [20:38:03]Read from MH i2c: E2 03 00 [20:38:03]MH_I2C_Read... [20:38:03]Read from MH i2c: E2 03 00 5C 8D 00 90 00 5D [20:38:03]RAPDU: 90 00 [20:38:03]wFMCommunicate OK [20:38:03]SAM_PROTO_ClearQueue done [20:38:03]KKMCreateOFDPacket [20:38:03]OFDProtocolAddRootSTLVToBuf [20:38:03]FM_MakeSignedData [20:38:03]FM_MakeSignedData [20:38:03]SAM_PROTO_SignData [20:38:03]wFMCommunicate request_size=4 [20:38:03]MH_SAM_APDU [20:38:03]CAPDU: 80 0D 01 02 [20:38:03]Write to MH i2c: E2 08 00 5D 8D 80 0D 01 02 00 00 00 00 63 [20:38:03]Write i2c OK [20:38:03]MH_I2C_Read... [20:38:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:38:03]Read from MH i2c: E2 [20:38:03]MH_I2C_Read... [20:38:03]Read from MH i2c: E2 03 00 [20:38:03]MH_I2C_Read... [20:38:03]Read from MH i2c: E2 03 00 5D 8D 00 90 00 5E [20:38:03]RAPDU: 90 00 [20:38:03]wFMCommunicate OK [20:38:03]wFMCommunicate request_size=255 [20:38:03]MH_SAM_APDU [20:38:03]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 52 85 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 E7 F7 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 F7 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FD 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E2 6B 00 00 00 00 07 04 06 00 A0 F7 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 01 00 00 F4 03 04 00 AF BB 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 0C DE 02 00 35 04 06 00 84 7E 0D D6 [20:38:03]Write to MH i2c: E2 02 01 5E 8D 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 52 85 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 E7 F7 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 F7 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FD 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E2 6B 00 00 00 00 07 04 06 00 A0 F7 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 01 00 00 F4 03 04 00 AF BB 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 0C DE 02 00 35 04 06 00 84 7E 0D D6 00 00 C7 [20:38:03]Write i2c OK [20:38:03]MH_I2C_Read... [20:38:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:38:03]Read from MH i2c: E2 [20:38:03]MH_I2C_Read... [20:38:03]Read from MH i2c: E2 03 00 [20:38:03]MH_I2C_Read... [20:38:03]Read from MH i2c: E2 03 00 5E 8D 00 90 00 5F [20:38:03]RAPDU: 90 00 [20:38:03]wFMCommunicate OK [20:38:03]wFMCommunicate request_size=7 [20:38:03]MH_SAM_APDU [20:38:03]CAPDU: 80 0D 02 02 02 A2 0B [20:38:03]Write to MH i2c: E2 0A 00 5F 8D 80 0D 02 02 02 00 A2 0B 00 00 17 [20:38:03]Write i2c OK [20:38:03]MH_I2C_Read... [20:38:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:38:03]Read from MH i2c: E2 [20:38:03]MH_I2C_Read... [20:38:03]Read from MH i2c: E2 03 00 [20:38:03]MH_I2C_Read... [20:38:03]Read from MH i2c: E2 03 00 5F 8D 00 90 00 60 [20:38:03]RAPDU: 90 00 [20:38:03]wFMCommunicate OK [20:38:03]wFMCommunicate request_size=4 [20:38:03]MH_SAM_APDU [20:38:03]CAPDU: 80 0D 03 02 [20:38:03]Write to MH i2c: E2 08 00 60 8D 80 0D 03 02 00 00 00 00 68 [20:38:03]Write i2c OK [20:38:03]MH_I2C_Read... [20:38:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:38:03]Read from MH i2c: E2 [20:38:03]MH_I2C_Read... [20:38:03]Read from MH i2c: E2 0B 00 [20:38:03]MH_I2C_Read... [20:38:03]Read from MH i2c: E2 0B 00 60 8D 00 E5 C7 7A 79 94 D8 AC 5F 90 00 7F [20:38:03]RAPDU: E5 C7 7A 79 94 D8 AC 5F 90 00 [20:38:03]wFMCommunicate OK [20:38:03]SAM_PROTO_SignData done [20:38:03]FM_MakeSignedData done [20:38:03]CreateOFDProtocolMessage [20:38:03]wFMCommunicate request_size=4 [20:38:03]MH_SAM_APDU [20:38:03]CAPDU: 80 11 00 00 [20:38:03]Write to MH i2c: E2 08 00 61 8D 80 11 00 00 00 00 00 00 68 [20:38:03]Write i2c OK [20:38:03]MH_I2C_Read... [20:38:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:38:03]Read from MH i2c: E2 [20:38:03]MH_I2C_Read... [20:38:03]Read from MH i2c: E2 17 00 [20:38:03]MH_I2C_Read... [20:38:03]Read from MH i2c: E2 17 00 61 8D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 B6 [20:38:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [20:38:03]wFMCommunicate OK [20:38:03]CreateOFDProtocolMessage done [20:38:03]OFDSenderStorePacket 187916 [20:38:03]StoreOFDPacket docnum=187916 [20:38:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 5F 13 04 01 F7 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 35 FF 03 08 00 03 52 85 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 E7 F7 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 F7 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FD 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E2 6B 00 00 00 00 07 04 06 00 A0 F7 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 01 00 00 F4 03 04 00 AF BB 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 0C DE 02 00 35 04 06 00 84 7E 0D D6 A2 0B E5 C7 7A 79 94 D8 AC 5F [20:38:03]CheckFolder [20:38:03]dirname=/storage/ofd_packets [20:38:03]CheckFolder done [20:38:03]ProducePacketName [20:38:03]name=ofd_packets/00187916 [20:38:03]NVStorageSaveData ofd_packets/00187916 [20:38:03]File name is /storage/ofd_packets/00187916 [20:38:03]Write 298 bytes [20:38:03]NVStorageSaveData done [20:38:03]OFDSenderStorePacket done [20:38:03]KKMCreateOFDPacket done [20:38:03]NVStorageSaveData kkm_last_timestamp [20:38:03]File name is /storage/kkm_last_timestamp [20:38:03]Write 4 bytes [20:38:03]NVStorageSaveData done [20:38:03]ExternCall_PrintAddStr [20:38:03]wPrintStart [20:38:03]Write to MH i2c: 01 00 00 62 8D EF [20:38:03]Write i2c OK [20:38:03]MH_I2C_Read... [20:38:03]Read from MH i2c: 01 [20:38:03]MH_I2C_Read... [20:38:03]Read from MH i2c: 01 07 00 [20:38:03]MH_I2C_Read... [20:38:03]Read from MH i2c: 01 07 00 62 8D 00 00 00 00 00 FF 0F 04 [20:38:03]RasterBufferAndPrint [20:38:03]line Счет N : (1)209968 [20:38:03]line ИНН: 02508201610067 [20:38:03]line Контрольно-Кассовый Чек [20:38:03]line ПРОДАЖА [20:38:03]line ТРК (МРК, ГНК) : 51 [20:38:03]line Товар: 2710194210 [20:38:03]line ДТ-К-5 [20:38:03]line 34.130 * 76.20 [20:38:03]line = 2600.71 [20:38:03]line НДС 12% НСП 1% [20:38:03]line > о реализуемом товаре [20:38:03]line ОКРУГЛЕНИЕ: -0.71 [20:38:03]line ИТОГО: 2600.00 [20:38:03]line Внесено: 2600.00 [20:38:03]line СДАЧА: 0.00 [20:38:03]line НСП 1% : 23.01 [20:38:03]line НДС 12% : 276.18 [20:38:03]line Наличными: 2600.00 [20:38:03]line Безнал.: 0.00 [20:38:03]line Место: АЗС № 86 "Партнер Нефть" [20:38:03]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [20:38:03]line СНО: Общий режим [20:38:03]line Чек 380 21.10.2024 20:38 [20:38:03]line Смена: 460 ФФД: 1.0 [20:38:03]line ЗНМ: 0300000155 [20:38:03]line РНМ: 0000000000100030 [20:38:03]line Версия ККМ: 001 [20:38:03]line ФМ: 0000000000965340 [20:38:03]line ФД: 187916 [20:38:03]line ФПД: 145676932915723 [20:38:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T203807&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187916&fm=145676932915723&tin=02508201610067®Number=0000000000100030&sum=260000 [20:38:04]OFD Sender: Processing packet 187916 [packets to send 1062, broken 1061] [20:38:04]ProducePacketName [20:38:04]name=ofd_packets/00187916 [20:38:04]OFD Sender: To server: pG, [20:38:04]CommunicateWithHost lk.salyk.kg:30040 [20:38:04]ConnectInit lk.salyk.kg [20:38:04]written 0, free lines is 4095 [20:38:04]Connected sock=9 [20:38:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 5F 13 04 01 F7 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 35 FF 03 08 00 03 52 85 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 E7 F7 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 F7 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FD 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E2 6B 00 00 00 00 07 04 06 00 A0 F7 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 01 00 00 F4 03 04 00 AF BB 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 0C DE 02 00 35 04 06 00 84 7E 0D D6 A2 0B E5 C7 7A 79 94 D8 AC 5F [20:38:04]Write to MH i2c: 01 00 00 8D 8D 1A [20:38:04]Write i2c OK [20:38:04]MH_I2C_Read... [20:38:04]Read from MH i2c: 01 [20:38:04]MH_I2C_Read... [20:38:04]Read from MH i2c: 01 07 00 [20:38:04]MH_I2C_Read... [20:38:04]Read from MH i2c: 01 07 00 8D 8D 00 00 00 00 00 5E 0C 8B [20:38:04]RasterBufferAndPrint [20:38:04]line [20:38:04]line [20:38:04]line [20:38:04]line [20:38:04]line [20:38:04]written 0, free lines is 3170 [20:38:04]MH_Cut [20:38:04]Write to MH i2c: D1 01 00 94 8D 01 F3 [20:38:04]Write i2c OK [20:38:04]MH_I2C_Read... [20:38:04]Read from MH i2c: D1 [20:38:04]MH_I2C_Read... [20:38:04]Read from MH i2c: D1 01 00 [20:38:04]MH_I2C_Read... [20:38:04]Read from MH i2c: D1 01 00 94 8D 00 F2 [20:38:04]Write to MH i2c: 01 00 00 95 8D 22 [20:38:04]Write i2c OK [20:38:04]MH_I2C_Read... [20:38:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 01 60 47 00 D0 F1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 0C DE 02 00 F4 03 04 00 9F 65 16 67 B6 04 01 00 00 03 D5 2A B7 D3 D6 E7 C5 [20:38:04]CommunicateWithHost err = 0 [20:38:04]CheckOFDResponse [20:38:04]1017 (14) - 77093643461234 [20:38:04]1041 (16) - 0000000000965340 [20:38:04]1040 (4) - 187916 [20:38:04]1012 (4) - 21.10.2024 14:30 [20:38:04]1206 (1) - 0 [20:38:04]OFD Sender: Remove packet 187916 [20:38:04]ProducePacketName [20:38:04]name=ofd_packets/00187916 [20:38:04]NVStorageDeleteData [20:38:05]OFD Sender: No OFD packet to send [20:38:05]*** Cut start [20:38:05]*** Partial cut [20:38:05]*** CUTSNS_PIN = 1 [20:38:05]*** CUTSNS_PIN = 0 [20:38:06]*** Brake cut motor [20:38:06]Read from MH i2c: 01 [20:38:06]MH_I2C_Read... [20:38:06]*** Stop cut motor [20:38:06]*** Cut end [20:38:06]Read from MH i2c: 01 07 00 [20:38:06]MH_I2C_Read... [20:38:06]Read from MH i2c: 01 07 00 95 8D 00 00 00 00 00 FF 0F 37 [20:38:06]process_action close_receipt done [20:38:06]requested_data is exist [20:38:06]produce_requested_data [20:38:06]requested_item fm.sn is exist - process it [20:38:06]wFMCommunicate request_size=4 [20:38:06]MH_SAM_APDU [20:38:06]CAPDU: 80 11 00 00 [20:38:06]Write to MH i2c: E2 08 00 96 8D 80 11 00 00 00 00 00 00 9D [20:38:06]Write i2c OK [20:38:06]MH_I2C_Read... [20:38:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:38:06]Read from MH i2c: E2 [20:38:06]MH_I2C_Read... [20:38:06]Read from MH i2c: E2 17 00 [20:38:06]MH_I2C_Read... [20:38:06]Read from MH i2c: E2 17 00 96 8D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 EB [20:38:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [20:38:06]wFMCommunicate OK [20:38:06]requested_item fd.num is exist - process it [20:38:06]SAM_PROTO_GetFieldsCounters [20:38:06]wFMCommunicate request_size=4 [20:38:06]MH_SAM_APDU [20:38:06]CAPDU: 80 13 00 00 [20:38:06]Write to MH i2c: E2 08 00 97 8D 80 13 00 00 00 00 00 00 A0 [20:38:06]Write i2c OK [20:38:06]MH_I2C_Read... [20:38:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:38:06]Read from MH i2c: E2 [20:38:06]MH_I2C_Read... [20:38:06]Read from MH i2c: E2 62 00 [20:38:06]MH_I2C_Read... [20:38:06]Read from MH i2c: E2 62 00 97 8D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 0C DE 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 7C 01 00 00 5E 04 04 00 7C 01 00 00 57 04 04 00 7D 01 00 00 19 04 04 00 00 00 00 00 90 00 D7 [20:38:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 0C DE 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 7C 01 00 00 5E 04 04 00 7C 01 00 00 57 04 04 00 7D 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:38:06]wFMCommunicate OK [20:38:06]SAM_PROTO_GetFieldsCounters done [20:38:06]requested_item shift.num is exist - process it [20:38:06]requested_item shift.opened is exist - process it [20:38:06]req_shift_opened [20:38:06]FM_GetShiftState [20:38:06]SAM_PROTO_GetShiftState [20:38:06]wFMCommunicate request_size=4 [20:38:06]MH_SAM_APDU [20:38:06]CAPDU: 80 13 01 00 [20:38:06]Write to MH i2c: E2 08 00 98 8D 80 13 01 00 00 00 00 00 A2 [20:38:06]Write i2c OK [20:38:06]MH_I2C_Read... [20:38:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:38:06]Read from MH i2c: E2 [20:38:06]MH_I2C_Read... [20:38:06]Read from MH i2c: E2 0E 00 [20:38:06]MH_I2C_Read... [20:38:06]Read from MH i2c: E2 0E 00 98 8D 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 01 [20:38:06]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [20:38:06]wFMCommunicate OK [20:38:06]SAM_PROTO_GetShiftState done [20:38:06]FM_GetShiftState done [20:38:06]req_shift_opened done [20:38:06]requested_item shift.open_date is exist - process it [20:38:06]req_shift_open_date [20:38:06]req_shift_open_date done [20:38:06]produce_requested_data done [20:38:06]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187916,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [20:38:06]process_action_free close_receipt [20:38:06]json_value_free [20:38:06]json_value_free done [20:38:06]process_json_proto returns [20:38:06]Send response to host [20:38:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187916,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [20:38:06]free response buf [20:38:06]execute_script done [20:38:06]execute_script returns [20:38:06]free content buf [20:38:06]Sock 8.Close socket [20:38:06]Sock 8.Thread stoped [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]OFD Sender: No OFD packet to send [20:38:55]OFD Sender: No OFD packet to send [20:38:59]accept exits with 10 [20:38:59]New connection [20:38:59]New thread 3067014500 created [20:38:59]Thread 3067157860 joined [20:38:59]Waiting for new connection... [20:38:59] Sock 10.Parse request [20:38:59]Sock 10.Check first char [20:38:59]Sock 10.First char is OK [20:38:59]request: POST /json_proto HTTP/1.0 [20:38:59]Method: POST [20:38:59]URL: /json_proto [20:38:59]Method is POST - this is cgi request [20:38:59]url: /json_proto [20:38:59]query_string will be loaded in cgi processing [20:38:59]execute_cgi json_proto POST (null) [20:38:59]execute_cgi path=json_proto method=POST [20:38:59]POST find Content-Length [20:38:59]Host: 172.17.42.131:8080 [20:38:59]Content-Length: 688 [20:38:59]Content-Type: application/json [20:38:59] [20:38:59]POST finish read [20:38:59]Found Content-Length = 688 [20:38:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209969", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "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:38:59]execute_script... [20:38: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)209969", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "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:38:59]POST & json_proto [20:38:59]process_json_proto [20:38:59]json parsed OK: [20:38:59]protocol is kg_v1.0 [20:38:59]action value=close_receipt [20:38:59]process_action close_receipt [20:38:59]cmd_close_receipt [20:38:59]MH_GetDate [20:38:59]Write to MH i2c: F0 00 00 99 8D 15 [20:38:59]Write i2c OK [20:38:59]MH_I2C_Read... [20:38:59]Read from MH i2c: F0 [20:38:59]MH_I2C_Read... [20:38:59]Read from MH i2c: F0 09 00 [20:38:59]MH_I2C_Read... [20:38:59]Read from MH i2c: F0 09 00 99 8D 00 E9 BB 16 67 A0 18 CA 66 27 [20:38:59]GetLastDocTimeStamp 1729543087 [20:38:59]current date 1729543145 [20:38:59]FM_GetShiftState [20:38:59]SAM_PROTO_GetShiftState [20:38:59]wFMCommunicate request_size=4 [20:38:59]MH_SAM_APDU [20:38:59]CAPDU: 80 13 01 00 [20:38:59]Write to MH i2c: E2 08 00 9A 8D 80 13 01 00 00 00 00 00 A4 [20:38:59]Write i2c OK [20:38:59]MH_I2C_Read... [20:38:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:38:59]Read from MH i2c: E2 [20:38:59]MH_I2C_Read... [20:38:59]Read from MH i2c: E2 0E 00 [20:38:59]MH_I2C_Read... [20:38:59]Read from MH i2c: E2 0E 00 9A 8D 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 03 [20:38:59]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [20:38:59]wFMCommunicate OK [20:38:59]SAM_PROTO_GetShiftState done [20:38:59]FM_GetShiftState done [20:38:59]opened in 1729469754 [20:38:59]opened+sec_in_day 1729556154 [20:38:59]quantity*price = 150076 [20:38:59]sum+1 = 150078 [20:38:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.77 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.37 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 381 21.10.2024 20:39 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 187917 ФПД: 181800165452391 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T203905&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187917&fm=181800165452391&tin=02508201610067®Number=0000000000100030&sum=150000 [20:39:00]StoreToDocumentArchive [20:39:00]shift 460 fd 187917 [20:39:00]save to /storage/0460/doc_00187917 [20:39:00]save last doc name /storage/0460/doc_00187917 to /storage/kkm_last_doc_name [20:39:00]save OK [20:39:00]Clear old archive folders... [20:39:00]ProcessDocumentItem done err = 0, tmpTLVsize=257 [20:39:00]tlvbuf is 010A3140 [20:39:00]SAM_PROTO_ClearQueue [20:39:00]wFMCommunicate request_size=4 [20:39:00]MH_SAM_APDU [20:39:00]CAPDU: 80 09 00 00 [20:39:00]Write to MH i2c: E2 08 00 A7 8D 80 09 00 00 00 00 00 00 A6 [20:39:00]OFD Sender: No OFD packet to send [20:39:00]Write i2c OK [20:39:00]MH_I2C_Read... [20:39:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:39:00]Read from MH i2c: E2 [20:39:00]MH_I2C_Read... [20:39:00]Read from MH i2c: E2 03 00 [20:39:00]MH_I2C_Read... [20:39:00]Read from MH i2c: E2 03 00 A7 8D 00 90 00 A8 [20:39:00]RAPDU: 90 00 [20:39:00]wFMCommunicate OK [20:39:00]SAM_PROTO_ClearQueue done [20:39:00]KKMCreateOFDPacket [20:39:00]OFDProtocolAddRootSTLVToBuf [20:39:00]FM_MakeSignedData [20:39:00]FM_MakeSignedData [20:39:00]SAM_PROTO_SignData [20:39:00]wFMCommunicate request_size=4 [20:39:00]MH_SAM_APDU [20:39:00]CAPDU: 80 0D 01 02 [20:39:00]Write to MH i2c: E2 08 00 A8 8D 80 0D 01 02 00 00 00 00 AE [20:39:00]Write i2c OK [20:39:00]MH_I2C_Read... [20:39:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:39:00]Read from MH i2c: E2 [20:39:00]MH_I2C_Read... [20:39:00]Read from MH i2c: E2 03 00 [20:39:00]MH_I2C_Read... [20:39:00]Read from MH i2c: E2 03 00 A8 8D 00 90 00 A9 [20:39:00]RAPDU: 90 00 [20:39:00]wFMCommunicate OK [20:39:00]wFMCommunicate request_size=255 [20:39:00]MH_SAM_APDU [20:39:00]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 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 7D 01 00 00 F4 03 04 00 E9 BB 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 0D DE 02 [20:39:00]Write to MH i2c: E2 02 01 A9 8D 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 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 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 7D 01 00 00 F4 03 04 00 E9 BB 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 0D DE 02 00 00 B6 [20:39:00]Write i2c OK [20:39:00]MH_I2C_Read... [20:39:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:39:01]Read from MH i2c: E2 [20:39:01]MH_I2C_Read... [20:39:01]Read from MH i2c: E2 03 00 [20:39:01]MH_I2C_Read... [20:39:01]Read from MH i2c: E2 03 00 A9 8D 00 90 00 AA [20:39:01]RAPDU: 90 00 [20:39:01]wFMCommunicate OK [20:39:01]wFMCommunicate request_size=16 [20:39:01]MH_SAM_APDU [20:39:01]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 A5 58 A6 48 2A 67 [20:39:01]Write to MH i2c: E2 13 00 AA 8D 80 0D 02 02 0B 00 00 35 04 06 00 A5 58 A6 48 2A 67 00 00 82 [20:39:01]Write i2c OK [20:39:01]MH_I2C_Read... [20:39:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:39:01]Read from MH i2c: E2 [20:39:01]MH_I2C_Read... [20:39:01]Read from MH i2c: E2 03 00 [20:39:01]MH_I2C_Read... [20:39:01]Read from MH i2c: E2 03 00 AA 8D 00 90 00 AB [20:39:01]RAPDU: 90 00 [20:39:01]wFMCommunicate OK [20:39:01]wFMCommunicate request_size=4 [20:39:01]MH_SAM_APDU [20:39:01]CAPDU: 80 0D 03 02 [20:39:01]Write to MH i2c: E2 08 00 AB 8D 80 0D 03 02 00 00 00 00 B3 [20:39:01]Write i2c OK [20:39:01]MH_I2C_Read... [20:39:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:39:01]Read from MH i2c: E2 [20:39:01]MH_I2C_Read... [20:39:01]Read from MH i2c: E2 0B 00 [20:39:01]MH_I2C_Read... [20:39:01]Read from MH i2c: E2 0B 00 AB 8D 00 95 2B 10 BC F7 85 64 85 90 00 A5 [20:39:01]RAPDU: 95 2B 10 BC F7 85 64 85 90 00 [20:39:01]wFMCommunicate OK [20:39:01]SAM_PROTO_SignData done [20:39:01]FM_MakeSignedData done [20:39:01]CreateOFDProtocolMessage [20:39:01]wFMCommunicate request_size=4 [20:39:01]MH_SAM_APDU [20:39:01]CAPDU: 80 11 00 00 [20:39:01]Write to MH i2c: E2 08 00 AC 8D 80 11 00 00 00 00 00 00 B3 [20:39:01]Write i2c OK [20:39:01]MH_I2C_Read... [20:39:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:39:01]Read from MH i2c: E2 [20:39:01]MH_I2C_Read... [20:39:01]Read from MH i2c: E2 17 00 [20:39:01]MH_I2C_Read... [20:39:01]Read from MH i2c: E2 17 00 AC 8D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 01 [20:39:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [20:39:01]wFMCommunicate OK [20:39:01]CreateOFDProtocolMessage done [20:39:01]OFDSenderStorePacket 187917 [20:39:01]StoreOFDPacket docnum=187917 [20:39:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 4D 9C 0D 01 9D 79 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 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 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 7D 01 00 00 F4 03 04 00 E9 BB 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 0D DE 02 00 35 04 06 00 A5 58 A6 48 2A 67 95 2B 10 BC F7 85 64 85 [20:39:01]CheckFolder [20:39:01]dirname=/storage/ofd_packets [20:39:01]CheckFolder done [20:39:01]ProducePacketName [20:39:01]name=ofd_packets/00187917 [20:39:01]NVStorageSaveData ofd_packets/00187917 [20:39:01]File name is /storage/ofd_packets/00187917 [20:39:01]Write 307 bytes [20:39:01]NVStorageSaveData done [20:39:01]OFDSenderStorePacket done [20:39:01]KKMCreateOFDPacket done [20:39:01]NVStorageSaveData kkm_last_timestamp [20:39:01]File name is /storage/kkm_last_timestamp [20:39:01]Write 4 bytes [20:39:01]NVStorageSaveData done [20:39:01]ExternCall_PrintAddStr [20:39:01]wPrintStart [20:39:01]Write to MH i2c: 01 00 00 AD 8D 3A [20:39:01]Write i2c OK [20:39:01]MH_I2C_Read... [20:39:01]Read from MH i2c: 01 [20:39:01]MH_I2C_Read... [20:39:01]Read from MH i2c: 01 07 00 [20:39:01]MH_I2C_Read... [20:39:01]Read from MH i2c: 01 07 00 AD 8D 00 00 00 00 00 FF 0F 4F [20:39:01]RasterBufferAndPrint [20:39:01]line Счет N : (1)209969 [20:39:01]line ИНН: 02508201610067 [20:39:01]line Контрольно-Кассовый Чек [20:39:01]line ПРОДАЖА [20:39:01]line ТРК (МРК, ГНК) : 21 [20:39:01]line Товар: 2710194210 [20:39:01]line D-ENERGY ДТ-К-5 [20:39:01]line 19.440 * 77.20 [20:39:01]line = 1500.77 [20:39:01]line НДС 12% НСП 1% [20:39:01]line > о реализуемом товаре [20:39:01]line ОКРУГЛЕНИЕ: -0.77 [20:39:01]line ИТОГО: 1500.00 [20:39:01]line Внесено: 1500.00 [20:39:01]line СДАЧА: 0.00 [20:39:01]line НСП 1% : 13.28 [20:39:01]line НДС 12% : 159.37 [20:39:01]line Наличными: 1500.00 [20:39:01]line Безнал.: 0.00 [20:39:01]line Место: АЗС № 86 "Партнер Нефть" [20:39:01]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [20:39:01]line СНО: Общий режим [20:39:01]line Чек 381 21.10.2024 20:39 [20:39:01]line Смена: 460 ФФД: 1.0 [20:39:01]line ЗНМ: 0300000155 [20:39:01]line РНМ: 0000000000100030 [20:39:01]line Версия ККМ: 001 [20:39:01]line ФМ: 0000000000965340 [20:39:01]line ФД: 187917 [20:39:01]line ФПД: 181800165452391 [20:39:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T203905&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187917&fm=181800165452391&tin=02508201610067®Number=0000000000100030&sum=150000 [20:39:01]written 0, free lines is 4095 [20:39:01]OFD Sender: Processing packet 187917 [packets to send 1062, broken 1061] [20:39:01]ProducePacketName [20:39:01]name=ofd_packets/00187917 [20:39:01]OFD Sender: To server: pG, [20:39:01]CommunicateWithHost lk.salyk.kg:30040 [20:39:01]ConnectInit lk.salyk.kg [20:39:01]Write to MH i2c: 01 00 00 D8 8D 65 [20:39:01]Write i2c OK [20:39:01]MH_I2C_Read... [20:39:01]Read from MH i2c: 01 [20:39:01]MH_I2C_Read... [20:39:01]Read from MH i2c: 01 07 00 [20:39:01]MH_I2C_Read... [20:39:01]Read from MH i2c: 01 07 00 D8 8D 00 00 00 00 00 5B 0C D3 [20:39:01]RasterBufferAndPrint [20:39:01]line [20:39:01]line [20:39:01]line [20:39:01]line [20:39:01]line [20:39:01]written 0, free lines is 3167 [20:39:01]MH_Cut [20:39:01]Write to MH i2c: D1 01 00 DF 8D 01 3E [20:39:01]Write i2c OK [20:39:01]MH_I2C_Read... [20:39:01]Read from MH i2c: D1 [20:39:01]MH_I2C_Read... [20:39:01]Read from MH i2c: D1 01 00 [20:39:01]MH_I2C_Read... [20:39:01]Read from MH i2c: D1 01 00 DF 8D 00 3D [20:39:01]Write to MH i2c: 01 00 00 E0 8D 6D [20:39:01]Write i2c OK [20:39:01]MH_I2C_Read... [20:39:01]Connected sock=9 [20:39:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 4D 9C 0D 01 9D 79 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 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 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 7D 01 00 00 F4 03 04 00 E9 BB 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 0D DE 02 00 35 04 06 00 A5 58 A6 48 2A 67 95 2B 10 BC F7 85 64 85 [20:39:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 B6 DE 47 00 7C D8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 0D DE 02 00 F4 03 04 00 D8 65 16 67 B6 04 01 00 00 49 55 85 F2 ED C3 D8 BA [20:39:02]CommunicateWithHost err = 0 [20:39:02]CheckOFDResponse [20:39:02]1017 (14) - 77093643461234 [20:39:02]1041 (16) - 0000000000965340 [20:39:02]1040 (4) - 187917 [20:39:02]1012 (4) - 21.10.2024 14:31 [20:39:02]1206 (1) - 0 [20:39:02]OFD Sender: Remove packet 187917 [20:39:02]ProducePacketName [20:39:02]name=ofd_packets/00187917 [20:39:02]NVStorageDeleteData [20:39:02]OFD Sender: No OFD packet to send [20:39:02]*** Cut start [20:39:02]*** Partial cut [20:39:02]*** CUTSNS_PIN = 1 [20:39:02]*** CUTSNS_PIN = 0 [20:39:03]*** Brake cut motor [20:39:03]Read from MH i2c: 01 [20:39:03]MH_I2C_Read... [20:39:03]*** Stop cut motor [20:39:03]*** Cut end [20:39:03]Read from MH i2c: 01 07 00 [20:39:03]MH_I2C_Read... [20:39:03]Read from MH i2c: 01 07 00 E0 8D 00 00 00 00 00 FF 0F 82 [20:39:03]process_action close_receipt done [20:39:03]requested_data is exist [20:39:03]produce_requested_data [20:39:03]requested_item fm.sn is exist - process it [20:39:03]wFMCommunicate request_size=4 [20:39:03]MH_SAM_APDU [20:39:03]CAPDU: 80 11 00 00 [20:39:03]Write to MH i2c: E2 08 00 E1 8D 80 11 00 00 00 00 00 00 E8 [20:39:03]Write i2c OK [20:39:03]MH_I2C_Read... [20:39:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:39:03]Read from MH i2c: E2 [20:39:03]MH_I2C_Read... [20:39:03]Read from MH i2c: E2 17 00 [20:39:03]MH_I2C_Read... [20:39:03]Read from MH i2c: E2 17 00 E1 8D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 36 [20:39:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [20:39:03]wFMCommunicate OK [20:39:03]requested_item fd.num is exist - process it [20:39:03]SAM_PROTO_GetFieldsCounters [20:39:03]wFMCommunicate request_size=4 [20:39:03]MH_SAM_APDU [20:39:03]CAPDU: 80 13 00 00 [20:39:03]Write to MH i2c: E2 08 00 E2 8D 80 13 00 00 00 00 00 00 EB [20:39:03]Write i2c OK [20:39:03]MH_I2C_Read... [20:39:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:39:03]Read from MH i2c: E2 [20:39:03]MH_I2C_Read... [20:39:03]Read from MH i2c: E2 62 00 [20:39:03]MH_I2C_Read... [20:39:03]Read from MH i2c: E2 62 00 E2 8D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 0D DE 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 7D 01 00 00 5E 04 04 00 7D 01 00 00 57 04 04 00 7E 01 00 00 19 04 04 00 00 00 00 00 90 00 26 [20:39:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 0D DE 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 7D 01 00 00 5E 04 04 00 7D 01 00 00 57 04 04 00 7E 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:39:03]wFMCommunicate OK [20:39:03]SAM_PROTO_GetFieldsCounters done [20:39:03]requested_item shift.num is exist - process it [20:39:03]requested_item shift.opened is exist - process it [20:39:03]req_shift_opened [20:39:03]FM_GetShiftState [20:39:03]SAM_PROTO_GetShiftState [20:39:03]wFMCommunicate request_size=4 [20:39:03]MH_SAM_APDU [20:39:03]CAPDU: 80 13 01 00 [20:39:03]Write to MH i2c: E2 08 00 E3 8D 80 13 01 00 00 00 00 00 ED [20:39:03]Write i2c OK [20:39:03]MH_I2C_Read... [20:39:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:39:03]Read from MH i2c: E2 [20:39:03]MH_I2C_Read... [20:39:03]Read from MH i2c: E2 0E 00 [20:39:03]MH_I2C_Read... [20:39:03]Read from MH i2c: E2 0E 00 E3 8D 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 4C [20:39:03]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [20:39:03]wFMCommunicate OK [20:39:03]SAM_PROTO_GetShiftState done [20:39:03]FM_GetShiftState done [20:39:03]req_shift_opened done [20:39:03]requested_item shift.open_date is exist - process it [20:39:03]req_shift_open_date [20:39:03]req_shift_open_date done [20:39:03]produce_requested_data done [20:39:03]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187917,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [20:39:03]process_action_free close_receipt [20:39:03]json_value_free [20:39:03]json_value_free done [20:39:03]process_json_proto returns [20:39:03]Send response to host [20:39:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187917,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [20:39:03]free response buf [20:39:03]execute_script done [20:39:03]execute_script returns [20:39:03]free content buf [20:39:03]Sock 10.Close socket [20:39:03]Sock 10.Thread stoped [20:39:07]OFD Sender: No OFD packet to send [20:39:12]OFD Sender: No OFD packet to send [20:39:17]OFD Sender: No OFD packet to send [20:39:22]OFD Sender: No OFD packet to send [20:39:27]OFD Sender: No OFD packet to send [20:39:32]OFD Sender: No OFD packet to send [20:39:37]OFD Sender: No OFD packet to send [20:39:42]OFD Sender: No OFD packet to send [20:39:47]OFD Sender: No OFD packet to send [20:39:52]OFD Sender: No OFD packet to send [20:39:57]OFD Sender: No OFD packet to send [20:40:00]accept exits with 8 [20:40:00]New connection [20:40:00]New thread 3067157860 created [20:40:00]Thread 3067014500 joined [20:40:00]Waiting for new connection... [20:40:00] Sock 8.Parse request [20:40:00]Sock 8.Check first char [20:40:00]Sock 8.First char is OK [20:40:00]request: POST /json_proto HTTP/1.0 [20:40:00]Method: POST [20:40:00]URL: /json_proto [20:40:00]Method is POST - this is cgi request [20:40:00]url: /json_proto [20:40:00]query_string will be loaded in cgi processing [20:40:00]execute_cgi json_proto POST (null) [20:40:00]execute_cgi path=json_proto method=POST [20:40:00]POST find Content-Length [20:40:00]Host: 172.17.42.131:8080 [20:40:00]Content-Length: 682 [20:40:00]Content-Type: application/json [20:40:00] [20:40:00]POST finish read [20:40:00]Found Content-Length = 682 [20:40:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209970", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:40:00]execute_script... [20:40: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)209970", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:40:00]POST & json_proto [20:40:00]process_json_proto [20:40:00]json parsed OK: [20:40:00]protocol is kg_v1.0 [20:40:00]action value=close_receipt [20:40:00]process_action close_receipt [20:40:00]cmd_close_receipt [20:40:00]MH_GetDate [20:40:00]Write to MH i2c: F0 00 00 E4 8D 60 [20:40:00]Write i2c OK [20:40:00]MH_I2C_Read... [20:40:00]Read from MH i2c: F0 [20:40:00]MH_I2C_Read... [20:40:00]Read from MH i2c: F0 09 00 [20:40:00]MH_I2C_Read... [20:40:00]Read from MH i2c: F0 09 00 E4 8D 00 25 BC 16 67 A0 18 CA 66 AF [20:40:00]GetLastDocTimeStamp 1729543145 [20:40:00]current date 1729543205 [20:40:00]FM_GetShiftState [20:40:00]SAM_PROTO_GetShiftState [20:40:00]wFMCommunicate request_size=4 [20:40:00]MH_SAM_APDU [20:40:00]CAPDU: 80 13 01 00 [20:40:00]Write to MH i2c: E2 08 00 E5 8D 80 13 01 00 00 00 00 00 EF [20:40:00]Write i2c OK [20:40:00]MH_I2C_Read... [20:40:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:40:00]Read from MH i2c: E2 [20:40:00]MH_I2C_Read... [20:40:00]Read from MH i2c: E2 0E 00 [20:40:00]MH_I2C_Read... [20:40:00]Read from MH i2c: E2 0E 00 E5 8D 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 4E [20:40:00]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [20:40:00]wFMCommunicate OK [20:40:00]SAM_PROTO_GetShiftState done [20:40:00]FM_GetShiftState done [20:40:00]opened in 1729469754 [20:40:00]opened+sec_in_day 1729556154 [20:40:00]quantity*price = 100015 [20:40:00]sum+1 = 100017 [20:40:00]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 382 21.10.2024 20:40 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 187918 ФПД: 161077719772654 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T204005&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187918&fm=161077719772654&tin=02508201610067®Number=0000000000100030&sum=100000 [20:40:01]StoreToDocumentArchive [20:40:01]shift 460 fd 187918 [20:40:01]save to /storage/0460/doc_00187918 [20:40:01]save last doc name /storage/0460/doc_00187918 to /storage/kkm_last_doc_name [20:40:01]save OK [20:40:01]Clear old archive folders... [20:40:01]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:40:01]tlvbuf is 013567F0 [20:40:01]SAM_PROTO_ClearQueue [20:40:01]wFMCommunicate request_size=4 [20:40:01]MH_SAM_APDU [20:40:01]CAPDU: 80 09 00 00 [20:40:01]Write to MH i2c: E2 08 00 F2 8D 80 09 00 00 00 00 00 00 F1 [20:40:01]Write i2c OK [20:40:01]MH_I2C_Read... [20:40:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:40:01]Read from MH i2c: E2 [20:40:01]MH_I2C_Read... [20:40:01]Read from MH i2c: E2 03 00 [20:40:01]MH_I2C_Read... [20:40:01]Read from MH i2c: E2 03 00 F2 8D 00 90 00 F3 [20:40:01]RAPDU: 90 00 [20:40:01]wFMCommunicate OK [20:40:01]SAM_PROTO_ClearQueue done [20:40:01]KKMCreateOFDPacket [20:40:01]OFDProtocolAddRootSTLVToBuf [20:40:01]FM_MakeSignedData [20:40:01]FM_MakeSignedData [20:40:01]SAM_PROTO_SignData [20:40:01]wFMCommunicate request_size=4 [20:40:01]MH_SAM_APDU [20:40:01]CAPDU: 80 0D 01 02 [20:40:01]Write to MH i2c: E2 08 00 F3 8D 80 0D 01 02 00 00 00 00 F9 [20:40:01]Write i2c OK [20:40:01]MH_I2C_Read... [20:40:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:40:01]Read from MH i2c: E2 [20:40:01]MH_I2C_Read... [20:40:01]Read from MH i2c: E2 03 00 [20:40:01]MH_I2C_Read... [20:40:01]Read from MH i2c: E2 03 00 F3 8D 00 90 00 F4 [20:40:01]RAPDU: 90 00 [20:40:01]wFMCommunicate OK [20:40:01]wFMCommunicate request_size=255 [20:40:01]MH_SAM_APDU [20:40: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 33 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 7E 01 00 00 F4 03 04 00 25 BC 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 0E DE 02 00 35 04 06 00 92 [20:40:01]Write to MH i2c: E2 02 01 F4 8D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 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 7E 01 00 00 F4 03 04 00 25 BC 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 0E DE 02 00 35 04 06 00 92 00 00 90 [20:40:01]Write i2c OK [20:40:01]MH_I2C_Read... [20:40:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:40:01]Read from MH i2c: E2 [20:40:01]MH_I2C_Read... [20:40:01]Read from MH i2c: E2 03 00 [20:40:01]MH_I2C_Read... [20:40:01]Read from MH i2c: E2 03 00 F4 8D 00 90 00 F5 [20:40:01]RAPDU: 90 00 [20:40:01]wFMCommunicate OK [20:40:01]wFMCommunicate request_size=10 [20:40:01]MH_SAM_APDU [20:40:01]CAPDU: 80 0D 02 02 05 7F D4 44 AD EE [20:40:01]Write to MH i2c: E2 0D 00 F5 8D 80 0D 02 02 05 00 7F D4 44 AD EE 00 00 38 [20:40:01]Write i2c OK [20:40:01]MH_I2C_Read... [20:40:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:40:01]Read from MH i2c: E2 [20:40:01]MH_I2C_Read... [20:40:01]Read from MH i2c: E2 03 00 [20:40:01]MH_I2C_Read... [20:40:01]Read from MH i2c: E2 03 00 F5 8D 00 90 00 F6 [20:40:01]RAPDU: 90 00 [20:40:01]wFMCommunicate OK [20:40:01]wFMCommunicate request_size=4 [20:40:01]MH_SAM_APDU [20:40:01]CAPDU: 80 0D 03 02 [20:40:01]Write to MH i2c: E2 08 00 F6 8D 80 0D 03 02 00 00 00 00 FE [20:40:01]Write i2c OK [20:40:01]MH_I2C_Read... [20:40:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:40:01]Read from MH i2c: E2 [20:40:01]MH_I2C_Read... [20:40:01]Read from MH i2c: E2 0B 00 [20:40:01]MH_I2C_Read... [20:40:01]Read from MH i2c: E2 0B 00 F6 8D 00 12 16 E8 3C 85 A9 9D 48 90 00 5E [20:40:01]RAPDU: 12 16 E8 3C 85 A9 9D 48 90 00 [20:40:01]wFMCommunicate OK [20:40:01]SAM_PROTO_SignData done [20:40:01]FM_MakeSignedData done [20:40:01]CreateOFDProtocolMessage [20:40:01]wFMCommunicate request_size=4 [20:40:01]MH_SAM_APDU [20:40:01]CAPDU: 80 11 00 00 [20:40:01]Write to MH i2c: E2 08 00 F7 8D 80 11 00 00 00 00 00 00 FE [20:40:01]Write i2c OK [20:40:01]MH_I2C_Read... [20:40:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:40:01]Read from MH i2c: E2 [20:40:01]MH_I2C_Read... [20:40:01]Read from MH i2c: E2 17 00 [20:40:01]MH_I2C_Read... [20:40:01]Read from MH i2c: E2 17 00 F7 8D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 4C [20:40:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [20:40:01]wFMCommunicate OK [20:40:01]CreateOFDProtocolMessage done [20:40:01]OFDSenderStorePacket 187918 [20:40:01]StoreOFDPacket docnum=187918 [20:40:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 FE 8B 07 01 4A 83 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 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 7E 01 00 00 F4 03 04 00 25 BC 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 0E DE 02 00 35 04 06 00 92 7F D4 44 AD EE 12 16 E8 3C 85 A9 9D 48 [20:40:01]CheckFolder [20:40:01]dirname=/storage/ofd_packets [20:40:01]CheckFolder done [20:40:01]ProducePacketName [20:40:01]name=ofd_packets/00187918 [20:40:01]NVStorageSaveData ofd_packets/00187918 [20:40:01]File name is /storage/ofd_packets/00187918 [20:40:01]Write 301 bytes [20:40:01]NVStorageSaveData done [20:40:01]OFDSenderStorePacket done [20:40:01]KKMCreateOFDPacket done [20:40:01]NVStorageSaveData kkm_last_timestamp [20:40:01]File name is /storage/kkm_last_timestamp [20:40:01]Write 4 bytes [20:40:01]NVStorageSaveData done [20:40:01]ExternCall_PrintAddStr [20:40:01]wPrintStart [20:40:01]Write to MH i2c: 01 00 00 F8 8D 85 [20:40:01]Write i2c OK [20:40:01]MH_I2C_Read... [20:40:01]Read from MH i2c: 01 [20:40:01]MH_I2C_Read... [20:40:01]Read from MH i2c: 01 07 00 [20:40:01]MH_I2C_Read... [20:40:01]Read from MH i2c: 01 07 00 F8 8D 00 00 00 00 00 FF 0F 9A [20:40:01]RasterBufferAndPrint [20:40:01]line Счет N : (1)209970 [20:40:01]line ИНН: 02508201610067 [20:40:01]line Контрольно-Кассовый Чек [20:40:01]line ПРОДАЖА [20:40:01]line ТРК (МРК, ГНК) : 12 [20:40:01]line Товар: 2710124130 [20:40:01]line Аи-92-К-3 [20:40:01]line 14.950 * 66.90 [20:40:01]line = 1000.16 [20:40:01]line НДС 12% НСП 1% [20:40:01]line > о реализуемом товаре [20:40:01]line ОКРУГЛЕНИЕ: -0.16 [20:40:01]line ИТОГО: 1000.00 [20:40:01]line Внесено: 1000.00 [20:40:01]line СДАЧА: 0.00 [20:40:01]line НСП 1% : 8.85 [20:40:01]line НДС 12% : 106.21 [20:40:01]line Наличными: 1000.00 [20:40:01]line Безнал.: 0.00 [20:40:01]line Место: АЗС № 86 "Партнер Нефть" [20:40:01]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [20:40:01]line СНО: Общий режим [20:40:01]line Чек 382 21.10.2024 20:40 [20:40:01]line Смена: 460 ФФД: 1.0 [20:40:01]line ЗНМ: 0300000155 [20:40:01]line РНМ: 0000000000100030 [20:40:01]line Версия ККМ: 001 [20:40:01]line ФМ: 0000000000965340 [20:40:01]line ФД: 187918 [20:40:01]line ФПД: 161077719772654 [20:40:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T204005&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187918&fm=161077719772654&tin=02508201610067®Number=0000000000100030&sum=100000 [20:40:01]written 0, free lines is 4095 [20:40:01]OFD Sender: Processing packet 187918 [packets to send 1062, broken 1061] [20:40:01]ProducePacketName [20:40:01]name=ofd_packets/00187918 [20:40:01]OFD Sender: To server: pG, [20:40:01]CommunicateWithHost lk.salyk.kg:30040 [20:40:01]ConnectInit lk.salyk.kg [20:40:02]Connected sock=9 [20:40:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 FE 8B 07 01 4A 83 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 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 7E 01 00 00 F4 03 04 00 25 BC 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 0E DE 02 00 35 04 06 00 92 7F D4 44 AD EE 12 16 E8 3C 85 A9 9D 48 [20:40:02]Write to MH i2c: 01 00 00 23 8E B1 [20:40:02]Write i2c OK [20:40:02]MH_I2C_Read... [20:40:02]Read from MH i2c: 01 [20:40:02]MH_I2C_Read... [20:40:02]Read from MH i2c: 01 07 00 [20:40:02]MH_I2C_Read... [20:40:02]Read from MH i2c: 01 07 00 23 8E 00 00 00 00 00 65 0C 29 [20:40:02]RasterBufferAndPrint [20:40:02]line [20:40:02]line [20:40:02]line [20:40:02]line [20:40:02]line [20:40:02]written 0, free lines is 3177 [20:40:02]MH_Cut [20:40:02]Write to MH i2c: D1 01 00 2A 8E 01 8A [20:40:02]Write i2c OK [20:40:02]MH_I2C_Read... [20:40:02]Read from MH i2c: D1 [20:40:02]MH_I2C_Read... [20:40:02]Read from MH i2c: D1 01 00 [20:40:02]MH_I2C_Read... [20:40:02]Read from MH i2c: D1 01 00 2A 8E 00 89 [20:40:02]Write to MH i2c: 01 00 00 2B 8E B9 [20:40:02]Write i2c OK [20:40:02]MH_I2C_Read... [20:40:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 9C 2F 47 00 E6 C5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 0E DE 02 00 F4 03 04 00 14 66 16 67 B6 04 01 00 00 79 FE 14 B0 3C 1A 0E E0 [20:40:02]CommunicateWithHost err = 0 [20:40:02]CheckOFDResponse [20:40:02]1017 (14) - 77093643461234 [20:40:02]1041 (16) - 0000000000965340 [20:40:02]1040 (4) - 187918 [20:40:02]1012 (4) - 21.10.2024 14:32 [20:40:02]1206 (1) - 0 [20:40:02]OFD Sender: Remove packet 187918 [20:40:02]ProducePacketName [20:40:02]name=ofd_packets/00187918 [20:40:02]NVStorageDeleteData [20:40:03]OFD Sender: No OFD packet to send [20:40:03]*** Cut start [20:40:03]*** Partial cut [20:40:03]*** CUTSNS_PIN = 1 [20:40:03]*** CUTSNS_PIN = 0 [20:40:03]*** Brake cut motor [20:40:04]Read from MH i2c: 01 [20:40:04]MH_I2C_Read... [20:40:04]*** Stop cut motor [20:40:04]*** Cut end [20:40:04]Read from MH i2c: 01 07 00 [20:40:04]MH_I2C_Read... [20:40:04]Read from MH i2c: 01 07 00 2B 8E 00 00 00 00 00 FF 0F CE [20:40:04]process_action close_receipt done [20:40:04]requested_data is exist [20:40:04]produce_requested_data [20:40:04]requested_item fm.sn is exist - process it [20:40:04]wFMCommunicate request_size=4 [20:40:04]MH_SAM_APDU [20:40:04]CAPDU: 80 11 00 00 [20:40:04]Write to MH i2c: E2 08 00 2C 8E 80 11 00 00 00 00 00 00 34 [20:40:04]Write i2c OK [20:40:04]MH_I2C_Read... [20:40:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:40:04]Read from MH i2c: E2 [20:40:04]MH_I2C_Read... [20:40:04]Read from MH i2c: E2 17 00 [20:40:04]MH_I2C_Read... [20:40:04]Read from MH i2c: E2 17 00 2C 8E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 82 [20:40:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [20:40:04]wFMCommunicate OK [20:40:04]requested_item fd.num is exist - process it [20:40:04]SAM_PROTO_GetFieldsCounters [20:40:04]wFMCommunicate request_size=4 [20:40:04]MH_SAM_APDU [20:40:04]CAPDU: 80 13 00 00 [20:40:04]Write to MH i2c: E2 08 00 2D 8E 80 13 00 00 00 00 00 00 37 [20:40:04]Write i2c OK [20:40:04]MH_I2C_Read... [20:40:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:40:04]Read from MH i2c: E2 [20:40:04]MH_I2C_Read... [20:40:04]Read from MH i2c: E2 62 00 [20:40:04]MH_I2C_Read... [20:40:04]Read from MH i2c: E2 62 00 2D 8E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 0E DE 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 7E 01 00 00 5E 04 04 00 7E 01 00 00 57 04 04 00 7F 01 00 00 19 04 04 00 00 00 00 00 90 00 76 [20:40:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 0E DE 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 7E 01 00 00 5E 04 04 00 7E 01 00 00 57 04 04 00 7F 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:40:04]wFMCommunicate OK [20:40:04]SAM_PROTO_GetFieldsCounters done [20:40:04]requested_item shift.num is exist - process it [20:40:04]requested_item shift.opened is exist - process it [20:40:04]req_shift_opened [20:40:04]FM_GetShiftState [20:40:04]SAM_PROTO_GetShiftState [20:40:04]wFMCommunicate request_size=4 [20:40:04]MH_SAM_APDU [20:40:04]CAPDU: 80 13 01 00 [20:40:04]Write to MH i2c: E2 08 00 2E 8E 80 13 01 00 00 00 00 00 39 [20:40:04]Write i2c OK [20:40:04]MH_I2C_Read... [20:40:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:40:04]Read from MH i2c: E2 [20:40:04]MH_I2C_Read... [20:40:04]Read from MH i2c: E2 0E 00 [20:40:04]MH_I2C_Read... [20:40:04]Read from MH i2c: E2 0E 00 2E 8E 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 98 [20:40:04]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [20:40:04]wFMCommunicate OK [20:40:04]SAM_PROTO_GetShiftState done [20:40:04]FM_GetShiftState done [20:40:04]req_shift_opened done [20:40:04]requested_item shift.open_date is exist - process it [20:40:04]req_shift_open_date [20:40:04]req_shift_open_date done [20:40:04]produce_requested_data done [20:40:04]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187918,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [20:40:04]process_action_free close_receipt [20:40:04]json_value_free [20:40:04]json_value_free done [20:40:04]process_json_proto returns [20:40:04]Send response to host [20:40:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187918,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [20:40:04]free response buf [20:40:04]execute_script done [20:40:04]execute_script returns [20:40:04]free content buf [20:40:04]Sock 8.Close socket [20:40:04]Sock 8.Thread stoped [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:44]OFD Sender: No OFD packet to send [20:43:49]OFD Sender: No OFD packet to send [20:43:54]OFD Sender: No OFD packet to send [20:43:59]OFD Sender: No OFD packet to send [20:44:04]OFD Sender: No OFD packet to send [20:44:09]OFD Sender: No OFD packet to send [20:44:14]OFD Sender: No OFD packet to send [20:44:19]OFD Sender: No OFD packet to send [20:44:24]OFD Sender: No OFD packet to send [20:44:29]OFD Sender: No OFD packet to send [20:44:34]OFD Sender: No OFD packet to send [20:44:39]OFD Sender: No OFD packet to send [20:44:44]OFD Sender: No OFD packet to send [20:44:49]OFD Sender: No OFD packet to send [20:44:54]OFD Sender: No OFD packet to send [20:44:59]OFD Sender: No OFD packet to send [20:45:04]OFD Sender: No OFD packet to send [20:45:14]OFD Sender: No OFD packet to send [20:45:19]OFD Sender: No OFD packet to send [20:45:24]OFD Sender: No OFD packet to send [20:45:29]OFD Sender: No OFD packet to send [20:45:34]OFD Sender: No OFD packet to send [20:45:39]OFD Sender: No OFD packet to send [20:45:44]OFD Sender: No OFD packet to send [20:45:49]OFD Sender: No OFD packet to send [20:45:54]OFD Sender: No OFD packet to send [20:45:59]OFD Sender: No OFD packet to send [20:46:04]OFD Sender: No OFD packet to send [20:46:09]OFD Sender: No OFD packet to send [20:46:14]OFD Sender: No OFD packet to send [20:46:19]OFD Sender: No OFD packet to send [20:46:24]OFD Sender: No OFD packet to send [20:46:29]OFD Sender: No OFD packet to send [20:46:30]accept exits with 10 [20:46:30]New connection [20:46:30]New thread 3067014500 created [20:46:30]Thread 3067157860 joined [20:46:30]Waiting for new connection... [20:46:30] Sock 10.Parse request [20:46:30]Sock 10.Check first char [20:46:30]Sock 10.First char is OK [20:46:30]request: POST /json_proto HTTP/1.0 [20:46:30]Method: POST [20:46:30]URL: /json_proto [20:46:30]Method is POST - this is cgi request [20:46:30]url: /json_proto [20:46:30]query_string will be loaded in cgi processing [20:46:30]execute_cgi json_proto POST (null) [20:46:30]execute_cgi path=json_proto method=POST [20:46:30]POST find Content-Length [20:46:30]Host: 172.17.42.131:8080 [20:46:30]Content-Length: 677 [20:46:30]Content-Type: application/json [20:46:30] [20:46:30]POST finish read [20:46:30]Found Content-Length = 677 [20:46:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209972", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "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" ] } } [20:46:30]execute_script... [20:46: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)209972", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "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" ] } } [20:46:30]POST & json_proto [20:46:30]process_json_proto [20:46:30]json parsed OK: [20:46:30]protocol is kg_v1.0 [20:46:30]action value=close_receipt [20:46:30]process_action close_receipt [20:46:30]cmd_close_receipt [20:46:30]MH_GetDate [20:46:30]Write to MH i2c: F0 00 00 2F 8E AC [20:46:30]Write i2c OK [20:46:30]MH_I2C_Read... [20:46:30]Read from MH i2c: F0 [20:46:30]MH_I2C_Read... [20:46:30]Read from MH i2c: F0 09 00 [20:46:30]MH_I2C_Read... [20:46:30]Read from MH i2c: F0 09 00 2F 8E 00 AC BD 16 67 A0 18 CA 66 83 [20:46:30]GetLastDocTimeStamp 1729543205 [20:46:30]current date 1729543596 [20:46:30]FM_GetShiftState [20:46:30]SAM_PROTO_GetShiftState [20:46:30]wFMCommunicate request_size=4 [20:46:30]MH_SAM_APDU [20:46:30]CAPDU: 80 13 01 00 [20:46:30]Write to MH i2c: E2 08 00 30 8E 80 13 01 00 00 00 00 00 3B [20:46:30]Write i2c OK [20:46:30]MH_I2C_Read... [20:46:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:46:30]Read from MH i2c: E2 [20:46:30]MH_I2C_Read... [20:46:30]Read from MH i2c: E2 0E 00 [20:46:30]MH_I2C_Read... [20:46:30]Read from MH i2c: E2 0E 00 30 8E 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 9A [20:46:30]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [20:46:30]wFMCommunicate OK [20:46:30]SAM_PROTO_GetShiftState done [20:46:30]FM_GetShiftState done [20:46:30]opened in 1729469754 [20:46:30]opened+sec_in_day 1729556154 [20:46:30]quantity*price = 50041 [20:46:30]sum+1 = 50042 [20:46: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 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 383 21.10.2024 20:46 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 187919 ФПД: 174537294879498 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T204636&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187919&fm=174537294879498&tin=02508201610067®Number=0000000000100030&sum=50000 [20:46:31]StoreToDocumentArchive [20:46:31]shift 460 fd 187919 [20:46:31]save to /storage/0460/doc_00187919 [20:46:31]save last doc name /storage/0460/doc_00187919 to /storage/kkm_last_doc_name [20:46:31]save OK [20:46:31]Clear old archive folders... [20:46:31]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:46:31]tlvbuf is 010A3610 [20:46:31]SAM_PROTO_ClearQueue [20:46:31]wFMCommunicate request_size=4 [20:46:31]MH_SAM_APDU [20:46:31]CAPDU: 80 09 00 00 [20:46:31]Write to MH i2c: E2 08 00 3D 8E 80 09 00 00 00 00 00 00 3D [20:46:31]Write i2c OK [20:46:31]MH_I2C_Read... [20:46:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:46:31]Read from MH i2c: E2 [20:46:31]MH_I2C_Read... [20:46:31]Read from MH i2c: E2 03 00 [20:46:31]MH_I2C_Read... [20:46:31]Read from MH i2c: E2 03 00 3D 8E 00 90 00 3F [20:46:31]RAPDU: 90 00 [20:46:31]wFMCommunicate OK [20:46:31]SAM_PROTO_ClearQueue done [20:46:31]KKMCreateOFDPacket [20:46:31]OFDProtocolAddRootSTLVToBuf [20:46:31]FM_MakeSignedData [20:46:31]FM_MakeSignedData [20:46:31]SAM_PROTO_SignData [20:46:31]wFMCommunicate request_size=4 [20:46:31]MH_SAM_APDU [20:46:31]CAPDU: 80 0D 01 02 [20:46:31]Write to MH i2c: E2 08 00 3E 8E 80 0D 01 02 00 00 00 00 45 [20:46:31]Write i2c OK [20:46:31]MH_I2C_Read... [20:46:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:46:31]Read from MH i2c: E2 [20:46:31]MH_I2C_Read... [20:46:31]Read from MH i2c: E2 03 00 [20:46:31]MH_I2C_Read... [20:46:31]Read from MH i2c: E2 03 00 3E 8E 00 90 00 40 [20:46:31]RAPDU: 90 00 [20:46:31]wFMCommunicate OK [20:46:31]wFMCommunicate request_size=255 [20:46:31]MH_SAM_APDU [20:46: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 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7F 01 00 00 F4 03 04 00 AC BD 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 0F DE 02 00 35 04 06 00 9E [20:46:31]Write to MH i2c: E2 02 01 3F 8E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7F 01 00 00 F4 03 04 00 AC BD 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 0F DE 02 00 35 04 06 00 9E 00 00 78 [20:46:31]Write i2c OK [20:46:31]MH_I2C_Read... [20:46:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:46:31]Read from MH i2c: E2 [20:46:31]MH_I2C_Read... [20:46:31]Read from MH i2c: E2 03 00 [20:46:31]MH_I2C_Read... [20:46:31]Read from MH i2c: E2 03 00 3F 8E 00 90 00 41 [20:46:31]RAPDU: 90 00 [20:46:31]wFMCommunicate OK [20:46:31]wFMCommunicate request_size=10 [20:46:31]MH_SAM_APDU [20:46:31]CAPDU: 80 0D 02 02 05 BD A1 76 1B 0A [20:46:31]Write to MH i2c: E2 0D 00 40 8E 80 0D 02 02 05 00 BD A1 76 1B 0A 00 00 4B [20:46:31]Write i2c OK [20:46:31]MH_I2C_Read... [20:46:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:46:31]Read from MH i2c: E2 [20:46:31]MH_I2C_Read... [20:46:31]Read from MH i2c: E2 03 00 [20:46:31]MH_I2C_Read... [20:46:31]Read from MH i2c: E2 03 00 40 8E 00 90 00 42 [20:46:31]RAPDU: 90 00 [20:46:31]wFMCommunicate OK [20:46:31]wFMCommunicate request_size=4 [20:46:31]MH_SAM_APDU [20:46:31]CAPDU: 80 0D 03 02 [20:46:31]Write to MH i2c: E2 08 00 41 8E 80 0D 03 02 00 00 00 00 4A [20:46:31]Write i2c OK [20:46:31]MH_I2C_Read... [20:46:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:46:31]Read from MH i2c: E2 [20:46:31]MH_I2C_Read... [20:46:31]Read from MH i2c: E2 0B 00 [20:46:31]MH_I2C_Read... [20:46:31]Read from MH i2c: E2 0B 00 41 8E 00 F5 50 93 D4 9A 0A 86 E7 90 00 08 [20:46:31]RAPDU: F5 50 93 D4 9A 0A 86 E7 90 00 [20:46:31]wFMCommunicate OK [20:46:31]SAM_PROTO_SignData done [20:46:31]FM_MakeSignedData done [20:46:31]CreateOFDProtocolMessage [20:46:31]wFMCommunicate request_size=4 [20:46:31]MH_SAM_APDU [20:46:31]CAPDU: 80 11 00 00 [20:46:31]Write to MH i2c: E2 08 00 42 8E 80 11 00 00 00 00 00 00 4A [20:46:31]Write i2c OK [20:46:31]MH_I2C_Read... [20:46:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:46:31]Read from MH i2c: E2 [20:46:31]MH_I2C_Read... [20:46:31]Read from MH i2c: E2 17 00 [20:46:31]MH_I2C_Read... [20:46:31]Read from MH i2c: E2 17 00 42 8E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 98 [20:46:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [20:46:31]wFMCommunicate OK [20:46:31]CreateOFDProtocolMessage done [20:46:31]OFDSenderStorePacket 187919 [20:46:31]StoreOFDPacket docnum=187919 [20:46:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 D3 0A 07 01 AB 71 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7F 01 00 00 F4 03 04 00 AC BD 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 0F DE 02 00 35 04 06 00 9E BD A1 76 1B 0A F5 50 93 D4 9A 0A 86 E7 [20:46:31]CheckFolder [20:46:31]dirname=/storage/ofd_packets [20:46:31]CheckFolder done [20:46:31]ProducePacketName [20:46:31]name=ofd_packets/00187919 [20:46:31]NVStorageSaveData ofd_packets/00187919 [20:46:31]File name is /storage/ofd_packets/00187919 [20:46:31]Write 301 bytes [20:46:31]NVStorageSaveData done [20:46:31]OFDSenderStorePacket done [20:46:31]KKMCreateOFDPacket done [20:46:31]NVStorageSaveData kkm_last_timestamp [20:46:31]File name is /storage/kkm_last_timestamp [20:46:31]Write 4 bytes [20:46:31]NVStorageSaveData done [20:46:31]ExternCall_PrintAddStr [20:46:31]wPrintStart [20:46:31]Write to MH i2c: 01 00 00 43 8E D1 [20:46:31]Write i2c OK [20:46:31]MH_I2C_Read... [20:46:31]Read from MH i2c: 01 [20:46:31]MH_I2C_Read... [20:46:31]Read from MH i2c: 01 07 00 [20:46:31]MH_I2C_Read... [20:46:31]Read from MH i2c: 01 07 00 43 8E 00 00 00 00 00 FF 0F E6 [20:46:32]RasterBufferAndPrint [20:46:32]line Счет N : (1)209972 [20:46:32]line ИНН: 02508201610067 [20:46:32]line Контрольно-Кассовый Чек [20:46:32]line ПРОДАЖА [20:46:32]line ТРК (МРК, ГНК) : 42 [20:46:32]line Товар: 2710124130 [20:46:32]line Аи-92-К-3 [20:46:32]line 7.480 * 66.90 [20:46:32]line = 500.41 [20:46:32]line НДС 12% НСП 1% [20:46:32]line > о реализуемом товаре [20:46:32]line ОКРУГЛЕНИЕ: -0.41 [20:46:32]line ИТОГО: 500.00 [20:46:32]line Внесено: 500.00 [20:46:32]line СДАЧА: 0.00 [20:46:32]line НСП 1% : 4.43 [20:46:32]line НДС 12% : 53.14 [20:46:32]line Наличными: 500.00 [20:46:32]line Безнал.: 0.00 [20:46:32]line Место: АЗС № 86 "Партнер Нефть" [20:46:32]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [20:46:32]line СНО: Общий режим [20:46:32]line Чек 383 21.10.2024 20:46 [20:46:32]line Смена: 460 ФФД: 1.0 [20:46:32]line ЗНМ: 0300000155 [20:46:32]line РНМ: 0000000000100030 [20:46:32]line Версия ККМ: 001 [20:46:32]line ФМ: 0000000000965340 [20:46:32]line ФД: 187919 [20:46:32]line ФПД: 174537294879498 [20:46:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T204636&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187919&fm=174537294879498&tin=02508201610067®Number=0000000000100030&sum=50000 [20:46:32]written 0, free lines is 4095 [20:46:32]OFD Sender: Processing packet 187919 [packets to send 1062, broken 1061] [20:46:32]ProducePacketName [20:46:32]name=ofd_packets/00187919 [20:46:32]OFD Sender: To server: pG, [20:46:32]CommunicateWithHost lk.salyk.kg:30040 [20:46:32]ConnectInit lk.salyk.kg [20:46:32]Connected sock=11 [20:46:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 D3 0A 07 01 AB 71 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7F 01 00 00 F4 03 04 00 AC BD 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 0F DE 02 00 35 04 06 00 9E BD A1 76 1B 0A F5 50 93 D4 9A 0A 86 E7 [20:46:32]Write to MH i2c: 01 00 00 6E 8E FC [20:46:32]Write i2c OK [20:46:32]MH_I2C_Read... [20:46:32]Read from MH i2c: 01 [20:46:32]MH_I2C_Read... [20:46:32]Read from MH i2c: 01 07 00 [20:46:32]MH_I2C_Read... [20:46:32]Read from MH i2c: 01 07 00 6E 8E 00 00 00 00 00 5A 0C 69 [20:46:32]RasterBufferAndPrint [20:46:32]line [20:46:32]line [20:46:32]line [20:46:32]line [20:46:32]line [20:46:32]written 0, free lines is 3166 [20:46:32]MH_Cut [20:46:32]Write to MH i2c: D1 01 00 75 8E 01 D5 [20:46:32]Write i2c OK [20:46:32]MH_I2C_Read... [20:46:32]Read from MH i2c: D1 [20:46:32]MH_I2C_Read... [20:46:32]Read from MH i2c: D1 01 00 [20:46:32]MH_I2C_Read... [20:46:32]Read from MH i2c: D1 01 00 75 8E 00 D4 [20:46:32]Write to MH i2c: 01 00 00 76 8E 04 [20:46:32]Write i2c OK [20:46:32]MH_I2C_Read... [20:46:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 28 FD 47 00 6B 3D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 0F DE 02 00 F4 03 04 00 9A 67 16 67 B6 04 01 00 00 46 D0 E9 D1 BD 2C 69 67 [20:46:32]CommunicateWithHost err = 0 [20:46:32]CheckOFDResponse [20:46:32]1017 (14) - 77093643461234 [20:46:32]1041 (16) - 0000000000965340 [20:46:32]1040 (4) - 187919 [20:46:32]1012 (4) - 21.10.2024 14:39 [20:46:32]1206 (1) - 0 [20:46:32]OFD Sender: Remove packet 187919 [20:46:32]ProducePacketName [20:46:32]name=ofd_packets/00187919 [20:46:32]NVStorageDeleteData [20:46:33]OFD Sender: No OFD packet to send [20:46:33]*** Cut start [20:46:33]*** Partial cut [20:46:33]*** CUTSNS_PIN = 1 [20:46:33]*** CUTSNS_PIN = 0 [20:46:33]*** Brake cut motor [20:46:34]Read from MH i2c: 01 [20:46:34]MH_I2C_Read... [20:46:34]*** Stop cut motor [20:46:34]*** Cut end [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 76 8E 00 00 00 00 00 FF 0F 19 [20:46:34]process_action close_receipt done [20:46:34]requested_data is exist [20:46:34]produce_requested_data [20:46:34]requested_item fm.sn is exist - process it [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 77 8E 80 11 00 00 00 00 00 00 7F [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 77 8E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 CD [20:46:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [20:46:34]wFMCommunicate OK [20:46:34]requested_item fd.num is exist - process it [20:46:34]SAM_PROTO_GetFieldsCounters [20:46:34]wFMCommunicate request_size=4 [20:46:34]MH_SAM_APDU [20:46:34]CAPDU: 80 13 00 00 [20:46:34]Write to MH i2c: E2 08 00 78 8E 80 13 00 00 00 00 00 00 82 [20:46:34]Write i2c OK [20:46:34]MH_I2C_Read... [20:46:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:46:34]Read from MH i2c: E2 [20:46:34]MH_I2C_Read... [20:46:34]Read from MH i2c: E2 62 00 [20:46:34]MH_I2C_Read... [20:46:34]Read from MH i2c: E2 62 00 78 8E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 0F DE 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 7F 01 00 00 5E 04 04 00 7F 01 00 00 57 04 04 00 80 01 00 00 19 04 04 00 00 00 00 00 90 00 C5 [20:46:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 0F DE 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 7F 01 00 00 5E 04 04 00 7F 01 00 00 57 04 04 00 80 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:46:34]wFMCommunicate OK [20:46:34]SAM_PROTO_GetFieldsCounters done [20:46:34]requested_item shift.num is exist - process it [20:46:34]requested_item shift.opened is exist - process it [20:46:34]req_shift_opened [20:46:34]FM_GetShiftState [20:46:34]SAM_PROTO_GetShiftState [20:46:34]wFMCommunicate request_size=4 [20:46:34]MH_SAM_APDU [20:46:34]CAPDU: 80 13 01 00 [20:46:34]Write to MH i2c: E2 08 00 79 8E 80 13 01 00 00 00 00 00 84 [20:46:34]Write i2c OK [20:46:34]MH_I2C_Read... [20:46:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:46:34]Read from MH i2c: E2 [20:46:34]MH_I2C_Read... [20:46:34]Read from MH i2c: E2 0E 00 [20:46:34]MH_I2C_Read... [20:46:34]Read from MH i2c: E2 0E 00 79 8E 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 E3 [20:46:34]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [20:46:34]wFMCommunicate OK [20:46:34]SAM_PROTO_GetShiftState done [20:46:34]FM_GetShiftState done [20:46:34]req_shift_opened done [20:46:34]requested_item shift.open_date is exist - process it [20:46:34]req_shift_open_date [20:46:34]req_shift_open_date done [20:46:34]produce_requested_data done [20:46:34]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187919,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [20:46:34]process_action_free close_receipt [20:46:34]json_value_free [20:46:34]json_value_free done [20:46:34]process_json_proto returns [20:46:34]Send response to host [20:46:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187919,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [20:46:34]free response buf [20:46:34]execute_script done [20:46:34]execute_script returns [20:46:34]free content buf [20:46:34]Sock 10.Close socket [20:46:34]Sock 10.Thread stoped [20:46:38]OFD Sender: No OFD packet to send [20:46:43]OFD Sender: No OFD packet to send [20:46:48]OFD Sender: No OFD packet to send [20:46:53]OFD Sender: No OFD packet to send [20:46:58]OFD Sender: No OFD packet to send [20:47:03]OFD Sender: No OFD packet to send [20:47:08]OFD Sender: No OFD packet to send [20:47:13]OFD Sender: No OFD packet to send [20:47:18]OFD Sender: No OFD packet to send [20:47:23]OFD Sender: No OFD packet to send [20:47:26]ConnectInit Can't connect to host [20:47:28]OFD Sender: No OFD packet to send [20:47:33]OFD Sender: No OFD packet to send [20:47:38]OFD Sender: No OFD packet to send [20:47:43]OFD Sender: No OFD packet to send [20:47:48]OFD Sender: No OFD packet to send [20:47:53]OFD Sender: No OFD packet to send [20:47:58]OFD Sender: No OFD packet to send [20:48:03]OFD Sender: No OFD packet to send [20:48:08]OFD Sender: No OFD packet to send [20:48:13]OFD Sender: No OFD packet to send [20:48:18]OFD Sender: No OFD packet to send [20:48:23]OFD Sender: No OFD packet to send [20:48:28]OFD Sender: No OFD packet to send [20:48:33]OFD Sender: No OFD packet to send [20:48:38]OFD Sender: No OFD packet to send [20:48:43]OFD Sender: No OFD packet to send [20:48:48]OFD Sender: No OFD packet to send [20:48:53]OFD Sender: No OFD packet to send [20:48:58]OFD Sender: No OFD packet to send [20:49:03]OFD Sender: No OFD packet to send [20:49:08]OFD Sender: No OFD packet to send [20:49:13]OFD Sender: No OFD packet to send [20:49:18]OFD Sender: No OFD packet to send [20:49:23]OFD Sender: No OFD packet to send [20:49:28]OFD Sender: No OFD packet to send [20:49:33]OFD Sender: No OFD packet to send [20:49:39]OFD Sender: No OFD packet to send [20:49:44]OFD Sender: No OFD packet to send [20:49:49]OFD Sender: No OFD packet to send [20:49:54]OFD Sender: No OFD packet to send [20:49:59]OFD Sender: No OFD packet to send [20:50:04]OFD Sender: No OFD packet to send [20:50:09]OFD Sender: No OFD packet to send [20:50:14]OFD Sender: No OFD packet to send [20:50:19]OFD Sender: No OFD packet to send [20:50:24]OFD Sender: No OFD packet to send [20:50:29]OFD Sender: No OFD packet to send [20:50:34]OFD Sender: No OFD packet to send [20:50:39]OFD Sender: No OFD packet to send [20:50:44]OFD Sender: No OFD packet to send [20:50:46]accept exits with 9 [20:50:46]New connection [20:50:46]New thread 3067157860 created [20:50:46]Thread 3067014500 joined [20:50:46]Waiting for new connection... [20:50:46] Sock 9.Parse request [20:50:46]Sock 9.Check first char [20:50:46]Sock 9.First char is OK [20:50:46]request: POST /json_proto HTTP/1.0 [20:50:46]Method: POST [20:50:46]URL: /json_proto [20:50:46]Method is POST - this is cgi request [20:50:46]url: /json_proto [20:50:46]query_string will be loaded in cgi processing [20:50:46]execute_cgi json_proto POST (null) [20:50:46]execute_cgi path=json_proto method=POST [20:50:46]POST find Content-Length [20:50:46]Host: 172.17.42.131:8080 [20:50:46]Content-Length: 801 [20:50:46]Content-Type: application/json [20:50:46] [20:50:46]POST finish read [20:50:46]Found Content-Length = 801 [20:50:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209971", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 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" ] } } [20:50:46]execute_script... [20:50: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)209971", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 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" ] } } [20:50:46]POST & json_proto [20:50:46]process_json_proto [20:50:46]json parsed OK: [20:50:46]protocol is kg_v1.0 [20:50:46]action value=close_receipt [20:50:46]process_action close_receipt [20:50:46]cmd_close_receipt [20:50:46]MH_GetDate [20:50:46]Write to MH i2c: F0 00 00 7A 8E F7 [20:50:46]Write i2c OK [20:50:46]MH_I2C_Read... [20:50:46]Read from MH i2c: F0 [20:50:46]MH_I2C_Read... [20:50:46]Read from MH i2c: F0 09 00 [20:50:46]MH_I2C_Read... [20:50:46]Read from MH i2c: F0 09 00 7A 8E 00 AB BE 16 67 A0 18 CA 66 CE [20:50:46]GetLastDocTimeStamp 1729543596 [20:50:46]current date 1729543851 [20:50:46]FM_GetShiftState [20:50:46]SAM_PROTO_GetShiftState [20:50:46]wFMCommunicate request_size=4 [20:50:46]MH_SAM_APDU [20:50:46]CAPDU: 80 13 01 00 [20:50:46]Write to MH i2c: E2 08 00 7B 8E 80 13 01 00 00 00 00 00 86 [20:50:46]Write i2c OK [20:50:46]MH_I2C_Read... [20:50:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:50:46]Read from MH i2c: E2 [20:50:46]MH_I2C_Read... [20:50:46]Read from MH i2c: E2 0E 00 [20:50:46]MH_I2C_Read... [20:50:46]Read from MH i2c: E2 0E 00 7B 8E 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 E5 [20:50:46]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [20:50:46]wFMCommunicate OK [20:50:46]SAM_PROTO_GetShiftState done [20:50:46]FM_GetShiftState done [20:50:46]opened in 1729469754 [20:50:46]opened+sec_in_day 1729556154 [20:50:46]quantity*price = 900074 [20:50:46]sum+1 = 900075 [20:50:46]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 9000.74 НСП 1% : 79.65 НДС 12% : 955.83 Наличными: 0.00 Безнал.: 9000.74 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 384 21.10.2024 20:50 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000965340 ФД: 187920 ФПД: 159940579897462 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T205052&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187920&fm=159940579897462&tin=02508201610067®Number=0000000000100030&sum=900074 [20:50:47]StoreToDocumentArchive [20:50:47]shift 460 fd 187920 [20:50:47]save to /storage/0460/doc_00187920 [20:50:47]save last doc name /storage/0460/doc_00187920 to /storage/kkm_last_doc_name [20:50:47]save OK [20:50:47]Clear old archive folders... [20:50:47]ProcessDocumentItem done err = 0, tmpTLVsize=248 [20:50:47]tlvbuf is 01115DA0 [20:50:47]SAM_PROTO_ClearQueue [20:50:47]wFMCommunicate request_size=4 [20:50:47]MH_SAM_APDU [20:50:47]CAPDU: 80 09 00 00 [20:50:47]Write to MH i2c: E2 08 00 88 8E 80 09 00 00 00 00 00 00 88 [20:50:47]Write i2c OK [20:50:47]MH_I2C_Read... [20:50:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:50:47]Read from MH i2c: E2 [20:50:47]MH_I2C_Read... [20:50:47]Read from MH i2c: E2 03 00 [20:50:47]MH_I2C_Read... [20:50:47]Read from MH i2c: E2 03 00 88 8E 00 90 00 8A [20:50:47]RAPDU: 90 00 [20:50:47]wFMCommunicate OK [20:50:47]SAM_PROTO_ClearQueue done [20:50:47]KKMCreateOFDPacket [20:50:47]OFDProtocolAddRootSTLVToBuf [20:50:47]FM_MakeSignedData [20:50:47]FM_MakeSignedData [20:50:47]SAM_PROTO_SignData [20:50:47]wFMCommunicate request_size=4 [20:50:47]MH_SAM_APDU [20:50:47]CAPDU: 80 0D 01 02 [20:50:47]Write to MH i2c: E2 08 00 89 8E 80 0D 01 02 00 00 00 00 90 [20:50:47]Write i2c OK [20:50:47]MH_I2C_Read... [20:50:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:50:47]Read from MH i2c: E2 [20:50:47]MH_I2C_Read... [20:50:47]Read from MH i2c: E2 03 00 [20:50:47]MH_I2C_Read... [20:50:47]Read from MH i2c: E2 03 00 89 8E 00 90 00 8B [20:50:47]RAPDU: 90 00 [20:50:47]wFMCommunicate OK [20:50:47]wFMCommunicate request_size=255 [20:50:47]MH_SAM_APDU [20:50:47]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 80 01 00 00 F4 03 04 00 AC BE 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 10 DE 02 00 35 04 06 00 91 77 11 73 [20:50:47]Write to MH i2c: E2 02 01 8A 8E 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 80 01 00 00 F4 03 04 00 AC BE 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 10 DE 02 00 35 04 06 00 91 77 11 73 00 00 C2 [20:50:47]Write i2c OK [20:50:47]MH_I2C_Read... [20:50:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:50:47]Read from MH i2c: E2 [20:50:47]MH_I2C_Read... [20:50:47]Read from MH i2c: E2 03 00 [20:50:47]MH_I2C_Read... [20:50:47]Read from MH i2c: E2 03 00 8A 8E 00 90 00 8C [20:50:47]RAPDU: 90 00 [20:50:47]wFMCommunicate OK [20:50:47]wFMCommunicate request_size=7 [20:50:47]MH_SAM_APDU [20:50:47]CAPDU: 80 0D 02 02 02 30 76 [20:50:47]Write to MH i2c: E2 0A 00 8B 8E 80 0D 02 02 02 00 30 76 00 00 3D [20:50:47]Write i2c OK [20:50:47]MH_I2C_Read... [20:50:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:50:47]Read from MH i2c: E2 [20:50:47]MH_I2C_Read... [20:50:47]Read from MH i2c: E2 03 00 [20:50:47]MH_I2C_Read... [20:50:47]Read from MH i2c: E2 03 00 8B 8E 00 90 00 8D [20:50:47]RAPDU: 90 00 [20:50:47]wFMCommunicate OK [20:50:47]wFMCommunicate request_size=4 [20:50:47]MH_SAM_APDU [20:50:47]CAPDU: 80 0D 03 02 [20:50:47]Write to MH i2c: E2 08 00 8C 8E 80 0D 03 02 00 00 00 00 95 [20:50:47]Write i2c OK [20:50:47]MH_I2C_Read... [20:50:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:50:47]Read from MH i2c: E2 [20:50:47]MH_I2C_Read... [20:50:47]Read from MH i2c: E2 0B 00 [20:50:47]MH_I2C_Read... [20:50:47]Read from MH i2c: E2 0B 00 8C 8E 00 73 51 7F 5E FE 52 FB 98 90 00 1A [20:50:47]RAPDU: 73 51 7F 5E FE 52 FB 98 90 00 [20:50:47]wFMCommunicate OK [20:50:47]SAM_PROTO_SignData done [20:50:47]FM_MakeSignedData done [20:50:47]CreateOFDProtocolMessage [20:50:47]wFMCommunicate request_size=4 [20:50:47]MH_SAM_APDU [20:50:47]CAPDU: 80 11 00 00 [20:50:47]Write to MH i2c: E2 08 00 8D 8E 80 11 00 00 00 00 00 00 95 [20:50:47]Write i2c OK [20:50:47]MH_I2C_Read... [20:50:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:50:47]Read from MH i2c: E2 [20:50:47]MH_I2C_Read... [20:50:47]Read from MH i2c: E2 17 00 [20:50:47]MH_I2C_Read... [20:50:47]Read from MH i2c: E2 17 00 8D 8E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 E3 [20:50:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [20:50:47]wFMCommunicate OK [20:50:47]CreateOFDProtocolMessage done [20:50:47]OFDSenderStorePacket 187920 [20:50:47]StoreOFDPacket docnum=187920 [20:50:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 6B D1 04 01 A4 3A 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 80 01 00 00 F4 03 04 00 AC BE 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 10 DE 02 00 35 04 06 00 91 77 11 73 30 76 73 51 7F 5E FE 52 FB 98 [20:50:47]CheckFolder [20:50:47]dirname=/storage/ofd_packets [20:50:47]CheckFolder done [20:50:47]ProducePacketName [20:50:47]name=ofd_packets/00187920 [20:50:47]NVStorageSaveData ofd_packets/00187920 [20:50:47]File name is /storage/ofd_packets/00187920 [20:50:47]Write 298 bytes [20:50:47]NVStorageSaveData done [20:50:47]OFDSenderStorePacket done [20:50:47]KKMCreateOFDPacket done [20:50:47]NVStorageSaveData kkm_last_timestamp [20:50:47]File name is /storage/kkm_last_timestamp [20:50:47]Write 4 bytes [20:50:47]NVStorageSaveData done [20:50:47]ExternCall_PrintAddStr [20:50:47]wPrintStart [20:50:47]Write to MH i2c: 01 00 00 8E 8E 1C [20:50:47]Write i2c OK [20:50:47]MH_I2C_Read... [20:50:47]Read from MH i2c: 01 [20:50:47]MH_I2C_Read... [20:50:47]Read from MH i2c: 01 07 00 [20:50:47]MH_I2C_Read... [20:50:47]Read from MH i2c: 01 07 00 8E 8E 00 00 00 00 00 FF 0F 31 [20:50:47]RasterBufferAndPrint [20:50:47]line Счет N : (1)209971 [20:50:47]line ИНН: 02508201610067 [20:50:47]line Контрольно-Кассовый Чек [20:50:47]line ПРОДАЖА [20:50:47]line ТРК (МРК, ГНК) : 51 [20:50:47]line Товар: 2710194210 [20:50:47]line ДТ-К-5 [20:50:47]line 118.120 * 76.20 [20:50:47]line = 9000.74 [20:50:47]line НДС 12% НСП 1% [20:50:47]line > о реализуемом товаре [20:50:47]line ИТОГО: 9000.74 [20:50:47]line НСП 1% : 79.65 [20:50:47]line НДС 12% : 955.83 [20:50:47]line Наличными: 0.00 [20:50:47]line Безнал.: 9000.74 [20:50:47]line Место: АЗС № 86 "Партнер Нефть" [20:50:47]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [20:50:47]line СНО: Общий режим [20:50:47]line Чек 384 21.10.2024 20:50 [20:50:47]line Смена: 460 ФФД: 1.0 [20:50:47]line ЗНМ: 0300000155 [20:50:47]line РНМ: 0000000000100030 [20:50:47]line Версия ККМ: 001 [20:50:47]line Платежная система: O! деньги [20:50:47]line ФМ: 0000000000965340 [20:50:47]line ФД: 187920 [20:50:47]line ФПД: 159940579897462 [20:50:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T205052&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187920&fm=159940579897462&tin=02508201610067®Number=0000000000100030&sum=900074 [20:50:48]OFD Sender: Processing packet 187920 [packets to send 1062, broken 1061] [20:50:48]ProducePacketName [20:50:48]name=ofd_packets/00187920 [20:50:48]OFD Sender: To server: pG, [20:50:48]CommunicateWithHost lk.salyk.kg:30040 [20:50:48]ConnectInit lk.salyk.kg [20:50:48]written 0, free lines is 4095 [20:50:48]Connected sock=10 [20:50:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 6B D1 04 01 A4 3A 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 80 01 00 00 F4 03 04 00 AC BE 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 10 DE 02 00 35 04 06 00 91 77 11 73 30 76 73 51 7F 5E FE 52 FB 98 [20:50:48]Write to MH i2c: 01 00 00 B8 8E 46 [20:50:48]Write i2c OK [20:50:48]MH_I2C_Read... [20:50:48]Read from MH i2c: 01 [20:50:48]MH_I2C_Read... [20:50:48]Read from MH i2c: 01 07 00 [20:50:48]MH_I2C_Read... [20:50:48]Read from MH i2c: 01 07 00 B8 8E 00 00 00 00 00 71 0C CA [20:50:48]RasterBufferAndPrint [20:50:48]line [20:50:48]line [20:50:48]line [20:50:48]line [20:50:48]line [20:50:48]written 0, free lines is 3189 [20:50:48]MH_Cut [20:50:48]Write to MH i2c: D1 01 00 BF 8E 01 1F [20:50:48]Write i2c OK [20:50:48]MH_I2C_Read... [20:50:48]Read from MH i2c: D1 [20:50:48]MH_I2C_Read... [20:50:48]Read from MH i2c: D1 01 00 [20:50:48]MH_I2C_Read... [20:50:48]Read from MH i2c: D1 01 00 BF 8E 00 1E [20:50:48]Write to MH i2c: 01 00 00 C0 8E 4E [20:50:48]Write i2c OK [20:50:48]MH_I2C_Read... [20:50:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 45 3A 47 00 4A 27 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 10 DE 02 00 F4 03 04 00 9B 68 16 67 B6 04 01 00 00 42 40 F8 AA 5E 66 D8 AD [20:50:48]CommunicateWithHost err = 0 [20:50:48]CheckOFDResponse [20:50:48]1017 (14) - 77093643461234 [20:50:48]1041 (16) - 0000000000965340 [20:50:48]1040 (4) - 187920 [20:50:48]1012 (4) - 21.10.2024 14:43 [20:50:48]1206 (1) - 0 [20:50:48]OFD Sender: Remove packet 187920 [20:50:48]ProducePacketName [20:50:48]name=ofd_packets/00187920 [20:50:48]NVStorageDeleteData [20:50:49]OFD Sender: No OFD packet to send [20:50:49]*** Cut start [20:50:49]*** Partial cut [20:50:49]*** CUTSNS_PIN = 1 [20:50:49]*** CUTSNS_PIN = 0 [20:50:50]*** Brake cut motor [20:50:50]Read from MH i2c: 01 [20:50:50]MH_I2C_Read... [20:50:50]*** Stop cut motor [20:50:50]*** Cut end [20:50:50]Read from MH i2c: 01 07 00 [20:50:50]MH_I2C_Read... [20:50:50]Read from MH i2c: 01 07 00 C0 8E 00 00 00 00 00 FF 0F 63 [20:50:50]process_action close_receipt done [20:50:50]requested_data is exist [20:50:50]produce_requested_data [20:50:50]requested_item fm.sn is exist - process it [20:50:50]wFMCommunicate request_size=4 [20:50:50]MH_SAM_APDU [20:50:50]CAPDU: 80 11 00 00 [20:50:50]Write to MH i2c: E2 08 00 C1 8E 80 11 00 00 00 00 00 00 C9 [20:50:50]Write i2c OK [20:50:50]MH_I2C_Read... [20:50:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:50:50]Read from MH i2c: E2 [20:50:50]MH_I2C_Read... [20:50:50]Read from MH i2c: E2 17 00 [20:50:50]MH_I2C_Read... [20:50:50]Read from MH i2c: E2 17 00 C1 8E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 17 [20:50:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [20:50:50]wFMCommunicate OK [20:50:50]requested_item fd.num is exist - process it [20:50:50]SAM_PROTO_GetFieldsCounters [20:50:50]wFMCommunicate request_size=4 [20:50:50]MH_SAM_APDU [20:50:50]CAPDU: 80 13 00 00 [20:50:50]Write to MH i2c: E2 08 00 C2 8E 80 13 00 00 00 00 00 00 CC [20:50:50]Write i2c OK [20:50:50]MH_I2C_Read... [20:50:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:50:50]Read from MH i2c: E2 [20:50:50]MH_I2C_Read... [20:50:50]Read from MH i2c: E2 62 00 [20:50:50]MH_I2C_Read... [20:50:50]Read from MH i2c: E2 62 00 C2 8E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 10 DE 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 80 01 00 00 5E 04 04 00 80 01 00 00 57 04 04 00 81 01 00 00 19 04 04 00 00 00 00 00 90 00 13 [20:50:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 10 DE 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 80 01 00 00 5E 04 04 00 80 01 00 00 57 04 04 00 81 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:50:50]wFMCommunicate OK [20:50:50]SAM_PROTO_GetFieldsCounters done [20:50:50]requested_item shift.num is exist - process it [20:50:50]requested_item shift.opened is exist - process it [20:50:50]req_shift_opened [20:50:50]FM_GetShiftState [20:50:50]SAM_PROTO_GetShiftState [20:50:50]wFMCommunicate request_size=4 [20:50:50]MH_SAM_APDU [20:50:50]CAPDU: 80 13 01 00 [20:50:50]Write to MH i2c: E2 08 00 C3 8E 80 13 01 00 00 00 00 00 CE [20:50:50]Write i2c OK [20:50:50]MH_I2C_Read... [20:50:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:50:50]Read from MH i2c: E2 [20:50:50]MH_I2C_Read... [20:50:50]Read from MH i2c: E2 0E 00 [20:50:50]MH_I2C_Read... [20:50:50]Read from MH i2c: E2 0E 00 C3 8E 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 2D [20:50:50]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [20:50:50]wFMCommunicate OK [20:50:50]SAM_PROTO_GetShiftState done [20:50:50]FM_GetShiftState done [20:50:50]req_shift_opened done [20:50:50]requested_item shift.open_date is exist - process it [20:50:50]req_shift_open_date [20:50:50]req_shift_open_date done [20:50:50]produce_requested_data done [20:50:50]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187920,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [20:50:50]process_action_free close_receipt [20:50:50]json_value_free [20:50:50]json_value_free done [20:50:50]process_json_proto returns [20:50:50]Send response to host [20:50:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187920,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [20:50:50]free response buf [20:50:50]execute_script done [20:50:50]execute_script returns [20:50:50]free content buf [20:50:50]Sock 9.Close socket [20:50:50]Sock 9.Thread stoped [20:50:54]OFD Sender: No OFD packet to send [20:50:59]OFD Sender: No OFD packet to send [20:51:04]OFD Sender: No OFD packet to send [20:51:09]OFD Sender: No OFD packet to send [20:51:14]OFD Sender: No OFD packet to send [20:51:19]OFD Sender: No OFD packet to send [20:51:24]OFD Sender: No OFD packet to send [20:51:29]OFD Sender: No OFD packet to send [20:51:34]OFD Sender: No OFD packet to send [20:51:39]OFD Sender: No OFD packet to send [20:51:44]OFD Sender: No OFD packet to send [20:51:49]OFD Sender: No OFD packet to send [20:51:54]OFD Sender: No OFD packet to send [20:51:59]OFD Sender: No OFD packet to send [20:52:04]OFD Sender: No OFD packet to send [20:52:09]OFD Sender: No OFD packet to send [20:52:14]OFD Sender: No OFD packet to send [20:52:19]OFD Sender: No OFD packet to send [20:52:24]OFD Sender: No OFD packet to send [20:52:29]OFD Sender: No OFD packet to send [20:52:34]OFD Sender: No OFD packet to send [20:52:39]OFD Sender: No OFD packet to send [20:52:44]OFD Sender: No OFD packet to send [20:52:49]OFD Sender: No OFD packet to send [20:52:54]OFD Sender: No OFD packet to send [20:52:59]OFD Sender: No OFD packet to send [20:53:04]OFD Sender: No OFD packet to send [20:53:09]OFD Sender: No OFD packet to send [20:53:14]OFD Sender: No OFD packet to send [20:53:16]accept exits with 8 [20:53:16]New connection [20:53:16]New thread 3067014500 created [20:53:16]Thread 3067157860 joined [20:53:16]Waiting for new connection... [20:53:16] Sock 8.Parse request [20:53:16]Sock 8.Check first char [20:53:16]Sock 8.First char is OK [20:53:16]request: POST /json_proto HTTP/1.0 [20:53:16]Method: POST [20:53:16]URL: /json_proto [20:53:16]Method is POST - this is cgi request [20:53:16]url: /json_proto [20:53:16]query_string will be loaded in cgi processing [20:53:16]execute_cgi json_proto POST (null) [20:53:16]execute_cgi path=json_proto method=POST [20:53:16]POST find Content-Length [20:53:16]Host: 172.17.42.131:8080 [20:53:16]Content-Length: 679 [20:53:16]Content-Type: application/json [20:53:16] [20:53:16]POST finish read [20:53:16]Found Content-Length = 679 [20:53:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209973", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 76.510, "sum" : 5830.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 5830.00, "total" : 5830.00, "payments": [ { "type": 0, "sum" : 5830.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:53:16]execute_script... [20: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)209973", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 76.510, "sum" : 5830.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 5830.00, "total" : 5830.00, "payments": [ { "type": 0, "sum" : 5830.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:53:16]POST & json_proto [20:53:16]process_json_proto [20:53:16]json parsed OK: [20:53:16]protocol is kg_v1.0 [20:53:16]action value=close_receipt [20:53:16]process_action close_receipt [20:53:16]cmd_close_receipt [20:53:16]MH_GetDate [20:53:16]Write to MH i2c: F0 00 00 C4 8E 41 [20:53:16]Write i2c OK [20:53:16]MH_I2C_Read... [20:53:16]Read from MH i2c: F0 [20:53:16]MH_I2C_Read... [20:53:16]Read from MH i2c: F0 09 00 [20:53:16]MH_I2C_Read... [20:53:16]Read from MH i2c: F0 09 00 C4 8E 00 41 BF 16 67 A0 18 CA 66 AF [20:53:16]GetLastDocTimeStamp 1729543852 [20:53:16]current date 1729544001 [20:53:16]FM_GetShiftState [20:53:16]SAM_PROTO_GetShiftState [20:53:16]wFMCommunicate request_size=4 [20:53:16]MH_SAM_APDU [20:53:16]CAPDU: 80 13 01 00 [20:53:16]Write to MH i2c: E2 08 00 C5 8E 80 13 01 00 00 00 00 00 D0 [20:53:16]Write i2c OK [20:53:16]MH_I2C_Read... [20:53:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:53:16]Read from MH i2c: E2 [20:53:16]MH_I2C_Read... [20:53:16]Read from MH i2c: E2 0E 00 [20:53:16]MH_I2C_Read... [20:53:16]Read from MH i2c: E2 0E 00 C5 8E 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 2F [20:53:16]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [20:53:16]wFMCommunicate OK [20:53:16]SAM_PROTO_GetShiftState done [20:53:16]FM_GetShiftState done [20:53:16]opened in 1729469754 [20:53:16]opened+sec_in_day 1729556154 [20:53:16]quantity*price = 583006 [20:53:16]sum+1 = 583007 [20:53:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 5830.00 Внесено: 5830.00 СДАЧА: 0.00 НСП 1% : 51.59 НДС 12% : 619.12 Наличными: 5830.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 385 21.10.2024 20:53 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 187921 ФПД: 113458133986779 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T205321&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187921&fm=113458133986779&tin=02508201610067®Number=0000000000100030&sum=583000 [20:53:17]StoreToDocumentArchive [20:53:17]shift 460 fd 187921 [20:53:17]save to /storage/0460/doc_00187921 [20:53:17]save last doc name /storage/0460/doc_00187921 to /storage/kkm_last_doc_name [20:53:17]save OK [20:53:17]Clear old archive folders... [20:53:17]ProcessDocumentItem done err = 0, tmpTLVsize=248 [20:53:17]tlvbuf is 01293390 [20:53:17]SAM_PROTO_ClearQueue [20:53:17]wFMCommunicate request_size=4 [20:53:17]MH_SAM_APDU [20:53:17]CAPDU: 80 09 00 00 [20:53:17]Write to MH i2c: E2 08 00 D2 8E 80 09 00 00 00 00 00 00 D2 [20:53:17]Write i2c OK [20:53:17]MH_I2C_Read... [20:53:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:53:17]Read from MH i2c: E2 [20:53:17]MH_I2C_Read... [20:53:17]Read from MH i2c: E2 03 00 [20:53:17]MH_I2C_Read... [20:53:17]Read from MH i2c: E2 03 00 D2 8E 00 90 00 D4 [20:53:17]RAPDU: 90 00 [20:53:17]wFMCommunicate OK [20:53:17]SAM_PROTO_ClearQueue done [20:53:17]KKMCreateOFDPacket [20:53:17]OFDProtocolAddRootSTLVToBuf [20:53:17]FM_MakeSignedData [20:53:17]FM_MakeSignedData [20:53:17]SAM_PROTO_SignData [20:53:17]wFMCommunicate request_size=4 [20:53:17]MH_SAM_APDU [20:53:17]CAPDU: 80 0D 01 02 [20:53:17]Write to MH i2c: E2 08 00 D3 8E 80 0D 01 02 00 00 00 00 DA [20:53:17]Write i2c OK [20:53:17]MH_I2C_Read... [20:53:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:53:17]Read from MH i2c: E2 [20:53:17]MH_I2C_Read... [20:53:17]Read from MH i2c: E2 03 00 [20:53:17]MH_I2C_Read... [20:53:17]Read from MH i2c: E2 03 00 D3 8E 00 90 00 D5 [20:53:17]RAPDU: 90 00 [20:53:17]wFMCommunicate OK [20:53:17]wFMCommunicate request_size=255 [20:53:17]MH_SAM_APDU [20:53:17]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 DE 2A 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 5E E5 08 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 E5 08 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 27 14 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D8 F1 00 00 00 00 07 04 06 00 58 E5 08 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 81 01 00 00 F4 03 04 00 41 BF 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 11 DE 02 00 35 04 06 00 67 30 87 C5 [20:53:17]Write to MH i2c: E2 02 01 D4 8E 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 DE 2A 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 5E E5 08 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 E5 08 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 27 14 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D8 F1 00 00 00 00 07 04 06 00 58 E5 08 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 81 01 00 00 F4 03 04 00 41 BF 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 11 DE 02 00 35 04 06 00 67 30 87 C5 00 00 80 [20:53:17]Write i2c OK [20:53:17]MH_I2C_Read... [20:53:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:53:17]Read from MH i2c: E2 [20:53:17]MH_I2C_Read... [20:53:17]Read from MH i2c: E2 03 00 [20:53:17]MH_I2C_Read... [20:53:17]Read from MH i2c: E2 03 00 D4 8E 00 90 00 D6 [20:53:17]RAPDU: 90 00 [20:53:17]wFMCommunicate OK [20:53:17]wFMCommunicate request_size=7 [20:53:17]MH_SAM_APDU [20:53:17]CAPDU: 80 0D 02 02 02 ED DB [20:53:17]Write to MH i2c: E2 0A 00 D5 8E 80 0D 02 02 02 00 ED DB 00 00 A9 [20:53:17]Write i2c OK [20:53:17]MH_I2C_Read... [20:53:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:53:17]Read from MH i2c: E2 [20:53:17]MH_I2C_Read... [20:53:17]Read from MH i2c: E2 03 00 [20:53:17]MH_I2C_Read... [20:53:17]Read from MH i2c: E2 03 00 D5 8E 00 90 00 D7 [20:53:17]RAPDU: 90 00 [20:53:17]wFMCommunicate OK [20:53:17]wFMCommunicate request_size=4 [20:53:17]MH_SAM_APDU [20:53:17]CAPDU: 80 0D 03 02 [20:53:17]Write to MH i2c: E2 08 00 D6 8E 80 0D 03 02 00 00 00 00 DF [20:53:17]Write i2c OK [20:53:17]MH_I2C_Read... [20:53:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:53:17]Read from MH i2c: E2 [20:53:17]MH_I2C_Read... [20:53:17]Read from MH i2c: E2 0B 00 [20:53:17]MH_I2C_Read... [20:53:17]Read from MH i2c: E2 0B 00 D6 8E 00 C8 76 4B 34 91 BE 47 4E 90 00 81 [20:53:17]RAPDU: C8 76 4B 34 91 BE 47 4E 90 00 [20:53:17]wFMCommunicate OK [20:53:17]SAM_PROTO_SignData done [20:53:17]FM_MakeSignedData done [20:53:17]CreateOFDProtocolMessage [20:53:17]wFMCommunicate request_size=4 [20:53:17]MH_SAM_APDU [20:53:17]CAPDU: 80 11 00 00 [20:53:17]Write to MH i2c: E2 08 00 D7 8E 80 11 00 00 00 00 00 00 DF [20:53:17]Write i2c OK [20:53:17]MH_I2C_Read... [20:53:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:53:17]Read from MH i2c: E2 [20:53:17]MH_I2C_Read... [20:53:17]Read from MH i2c: E2 17 00 [20:53:17]MH_I2C_Read... [20:53:17]Read from MH i2c: E2 17 00 D7 8E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 2D [20:53:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [20:53:17]wFMCommunicate OK [20:53:17]CreateOFDProtocolMessage done [20:53:17]OFDSenderStorePacket 187921 [20:53:17]StoreOFDPacket docnum=187921 [20:53:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 A6 13 04 01 A6 F5 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 DE 2A 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 5E E5 08 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 E5 08 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 27 14 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D8 F1 00 00 00 00 07 04 06 00 58 E5 08 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 81 01 00 00 F4 03 04 00 41 BF 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 11 DE 02 00 35 04 06 00 67 30 87 C5 ED DB C8 76 4B 34 91 BE 47 4E [20:53:17]CheckFolder [20:53:17]dirname=/storage/ofd_packets [20:53:17]CheckFolder done [20:53:17]ProducePacketName [20:53:17]name=ofd_packets/00187921 [20:53:17]NVStorageSaveData ofd_packets/00187921 [20:53:17]File name is /storage/ofd_packets/00187921 [20:53:17]Write 298 bytes [20:53:17]NVStorageSaveData done [20:53:17]OFDSenderStorePacket done [20:53:17]KKMCreateOFDPacket done [20:53:17]NVStorageSaveData kkm_last_timestamp [20:53:17]File name is /storage/kkm_last_timestamp [20:53:17]Write 4 bytes [20:53:17]NVStorageSaveData done [20:53:17]ExternCall_PrintAddStr [20:53:17]wPrintStart [20:53:17]Write to MH i2c: 01 00 00 D8 8E 66 [20:53:17]Write i2c OK [20:53:17]MH_I2C_Read... [20:53:17]Read from MH i2c: 01 [20:53:17]MH_I2C_Read... [20:53:17]Read from MH i2c: 01 07 00 [20:53:17]MH_I2C_Read... [20:53:17]Read from MH i2c: 01 07 00 D8 8E 00 00 00 00 00 FF 0F 7B [20:53:17]RasterBufferAndPrint [20:53:17]line Счет N : (1)209973 [20:53:17]line ИНН: 02508201610067 [20:53:17]line Контрольно-Кассовый Чек [20:53:17]line ПРОДАЖА [20:53:17]line ТРК (МРК, ГНК) : 51 [20:53:17]line Товар: 2710194210 [20:53:17]line ДТ-К-5 [20:53:17]line 76.510 * 76.20 [20:53:17]line = 5830.06 [20:53:17]line НДС 12% НСП 1% [20:53:17]line > о реализуемом товаре [20:53:17]line ОКРУГЛЕНИЕ: -0.06 [20:53:17]line ИТОГО: 5830.00 [20:53:17]line Внесено: 5830.00 [20:53:17]line СДАЧА: 0.00 [20:53:17]line НСП 1% : 51.59 [20:53:17]line НДС 12% : 619.12 [20:53:17]line Наличными: 5830.00 [20:53:17]line Безнал.: 0.00 [20:53:17]line Место: АЗС № 86 "Партнер Нефть" [20:53:17]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [20:53:17]line СНО: Общий режим [20:53:17]line Чек 385 21.10.2024 20:53 [20:53:17]line Смена: 460 ФФД: 1.0 [20:53:17]line ЗНМ: 0300000155 [20:53:17]line РНМ: 0000000000100030 [20:53:17]line Версия ККМ: 001 [20:53:17]line ФМ: 0000000000965340 [20:53:17]line ФД: 187921 [20:53:17]line ФПД: 113458133986779 [20:53:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T205321&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187921&fm=113458133986779&tin=02508201610067®Number=0000000000100030&sum=583000 [20:53:17]written 0, free lines is 4095 [20:53:17]OFD Sender: Processing packet 187921 [packets to send 1062, broken 1061] [20:53:17]ProducePacketName [20:53:17]name=ofd_packets/00187921 [20:53:17]OFD Sender: To server: pG, [20:53:17]CommunicateWithHost lk.salyk.kg:30040 [20:53:17]ConnectInit lk.salyk.kg [20:53:18]Connected sock=10 [20:53:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 A6 13 04 01 A6 F5 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 DE 2A 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 5E E5 08 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 E5 08 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 27 14 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D8 F1 00 00 00 00 07 04 06 00 58 E5 08 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 81 01 00 00 F4 03 04 00 41 BF 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 11 DE 02 00 35 04 06 00 67 30 87 C5 ED DB C8 76 4B 34 91 BE 47 4E [20:53:18]Write to MH i2c: 01 00 00 03 8F 92 [20:53:18]Write i2c OK [20:53:18]MH_I2C_Read... [20:53:18]Read from MH i2c: 01 [20:53:18]MH_I2C_Read... [20:53:18]Read from MH i2c: 01 07 00 [20:53:18]MH_I2C_Read... [20:53:18]Read from MH i2c: 01 07 00 03 8F 00 00 00 00 00 65 0C 0A [20:53:18]RasterBufferAndPrint [20:53:18]line [20:53:18]line [20:53:18]line [20:53:18]line [20:53:18]line [20:53:18]written 0, free lines is 3177 [20:53:18]MH_Cut [20:53:18]Write to MH i2c: D1 01 00 0A 8F 01 6B [20:53:18]Write i2c OK [20:53:18]MH_I2C_Read... [20:53:18]Read from MH i2c: D1 [20:53:18]MH_I2C_Read... [20:53:18]Read from MH i2c: D1 01 00 [20:53:18]MH_I2C_Read... [20:53:18]Read from MH i2c: D1 01 00 0A 8F 00 6A [20:53:18]Write to MH i2c: 01 00 00 0B 8F 9A [20:53:18]Write i2c OK [20:53:18]MH_I2C_Read... [20:53:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 E2 2F 47 00 BC 9B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 11 DE 02 00 F4 03 04 00 30 69 16 67 B6 04 01 00 00 02 77 A8 1D 26 35 BC 3F [20:53:18]CommunicateWithHost err = 0 [20:53:18]CheckOFDResponse [20:53:18]1017 (14) - 77093643461234 [20:53:18]1041 (16) - 0000000000965340 [20:53:18]1040 (4) - 187921 [20:53:18]1012 (4) - 21.10.2024 14:46 [20:53:18]1206 (1) - 0 [20:53:18]OFD Sender: Remove packet 187921 [20:53:18]ProducePacketName [20:53:18]name=ofd_packets/00187921 [20:53:18]NVStorageDeleteData [20:53:19]OFD Sender: No OFD packet to send [20:53:19]*** Cut start [20:53:19]*** Partial cut [20:53:19]*** CUTSNS_PIN = 1 [20:53:19]*** CUTSNS_PIN = 0 [20:53:19]*** Brake cut motor [20:53:20]Read from MH i2c: 01 [20:53:20]MH_I2C_Read... [20:53:20]*** Stop cut motor [20:53:20]*** Cut end [20:53:20]Read from MH i2c: 01 07 00 [20:53:20]MH_I2C_Read... [20:53:20]Read from MH i2c: 01 07 00 0B 8F 00 00 00 00 00 FF 0F AF [20:53:20]process_action close_receipt done [20:53:20]requested_data is exist [20:53:20]produce_requested_data [20:53:20]requested_item fm.sn is exist - process it [20:53:20]wFMCommunicate request_size=4 [20:53:20]MH_SAM_APDU [20:53:20]CAPDU: 80 11 00 00 [20:53:20]Write to MH i2c: E2 08 00 0C 8F 80 11 00 00 00 00 00 00 15 [20:53:20]Write i2c OK [20:53:20]MH_I2C_Read... [20:53:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:53:20]Read from MH i2c: E2 [20:53:20]MH_I2C_Read... [20:53:20]Read from MH i2c: E2 17 00 [20:53:20]MH_I2C_Read... [20:53:20]Read from MH i2c: E2 17 00 0C 8F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 63 [20:53:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [20:53:20]wFMCommunicate OK [20:53:20]requested_item fd.num is exist - process it [20:53:20]SAM_PROTO_GetFieldsCounters [20:53:20]wFMCommunicate request_size=4 [20:53:20]MH_SAM_APDU [20:53:20]CAPDU: 80 13 00 00 [20:53:20]Write to MH i2c: E2 08 00 0D 8F 80 13 00 00 00 00 00 00 18 [20:53:20]Write i2c OK [20:53:20]MH_I2C_Read... [20:53:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:53:20]Read from MH i2c: E2 [20:53:20]MH_I2C_Read... [20:53:20]Read from MH i2c: E2 62 00 [20:53:20]MH_I2C_Read... [20:53:20]Read from MH i2c: E2 62 00 0D 8F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 11 DE 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 81 01 00 00 5E 04 04 00 81 01 00 00 57 04 04 00 82 01 00 00 19 04 04 00 00 00 00 00 90 00 63 [20:53:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 11 DE 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 81 01 00 00 5E 04 04 00 81 01 00 00 57 04 04 00 82 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:53:20]wFMCommunicate OK [20:53:20]SAM_PROTO_GetFieldsCounters done [20:53:20]requested_item shift.num is exist - process it [20:53:20]requested_item shift.opened is exist - process it [20:53:20]req_shift_opened [20:53:20]FM_GetShiftState [20:53:20]SAM_PROTO_GetShiftState [20:53:20]wFMCommunicate request_size=4 [20:53:20]MH_SAM_APDU [20:53:20]CAPDU: 80 13 01 00 [20:53:20]Write to MH i2c: E2 08 00 0E 8F 80 13 01 00 00 00 00 00 1A [20:53:20]Write i2c OK [20:53:20]MH_I2C_Read... [20:53:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:53:20]Read from MH i2c: E2 [20:53:20]MH_I2C_Read... [20:53:20]Read from MH i2c: E2 0E 00 [20:53:20]MH_I2C_Read... [20:53:20]Read from MH i2c: E2 0E 00 0E 8F 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 79 [20:53:20]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [20:53:20]wFMCommunicate OK [20:53:20]SAM_PROTO_GetShiftState done [20:53:20]FM_GetShiftState done [20:53:20]req_shift_opened done [20:53:20]requested_item shift.open_date is exist - process it [20:53:20]req_shift_open_date [20:53:20]req_shift_open_date done [20:53:20]produce_requested_data done [20:53:20]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187921,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [20:53:20]process_action_free close_receipt [20:53:20]json_value_free [20:53:20]json_value_free done [20:53:20]process_json_proto returns [20:53:20]Send response to host [20:53:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187921,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [20:53:20]free response buf [20:53:20]execute_script done [20:53:20]execute_script returns [20:53:20]free content buf [20:53:20]Sock 8.Close socket [20:53:20]Sock 8.Thread stoped [20:53:24]OFD Sender: No OFD packet to send [20:53:29]OFD Sender: No OFD packet to send [20:53:34]OFD Sender: No OFD packet to send [20:53:39]OFD Sender: No OFD packet to send [20:53:44]OFD Sender: No OFD packet to send [20:53:49]OFD Sender: No OFD packet to send [20:53:54]OFD Sender: No OFD packet to send [20:53:59]OFD Sender: No OFD packet to send [20:54:04]OFD Sender: No OFD packet to send [20:54:09]OFD Sender: No OFD packet to send [20:54:14]OFD Sender: No OFD packet to send [20:54:19]OFD Sender: No OFD packet to send [20:54:24]OFD Sender: No OFD packet to send [20:54:29]OFD Sender: No OFD packet to send [20:54:29]accept exits with 9 [20:54:29]New connection [20:54:29]New thread 3067157860 created [20:54:29]Thread 3067014500 joined [20:54:29]Waiting for new connection... [20:54:29] Sock 9.Parse request [20:54:29]Sock 9.Check first char [20:54:29]Sock 9.First char is OK [20:54:29]request: POST /json_proto HTTP/1.0 [20:54:29]Method: POST [20:54:29]URL: /json_proto [20:54:29]Method is POST - this is cgi request [20:54:29]url: /json_proto [20:54:29]query_string will be loaded in cgi processing [20:54:29]execute_cgi json_proto POST (null) [20:54:29]execute_cgi path=json_proto method=POST [20:54:29]POST find Content-Length [20:54:29]Host: 172.17.42.131:8080 [20:54:29]Content-Length: 677 [20:54:29]Content-Type: application/json [20:54:29] [20:54:29]POST finish read [20:54:29]Found Content-Length = 677 [20:54:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209974", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 6.740, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:54:29]execute_script... [20:54:29]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209974", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 6.740, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:54:29]POST & json_proto [20:54:29]process_json_proto [20:54:29]json parsed OK: [20:54:29]protocol is kg_v1.0 [20:54:29]action value=close_receipt [20:54:29]process_action close_receipt [20:54:29]cmd_close_receipt [20:54:29]MH_GetDate [20:54:29]Write to MH i2c: F0 00 00 0F 8F 8D [20:54:29]Write i2c OK [20:54:29]MH_I2C_Read... [20:54:29]Read from MH i2c: F0 [20:54:29]MH_I2C_Read... [20:54:29]Read from MH i2c: F0 09 00 [20:54:29]MH_I2C_Read... [20:54:29]Read from MH i2c: F0 09 00 0F 8F 00 8B BF 16 67 A0 18 CA 66 45 [20:54:29]GetLastDocTimeStamp 1729544001 [20:54:29]current date 1729544075 [20:54:29]FM_GetShiftState [20:54:29]SAM_PROTO_GetShiftState [20:54:29]wFMCommunicate request_size=4 [20:54:29]MH_SAM_APDU [20:54:29]CAPDU: 80 13 01 00 [20:54:29]Write to MH i2c: E2 08 00 10 8F 80 13 01 00 00 00 00 00 1C [20:54:29]Write i2c OK [20:54:29]MH_I2C_Read... [20:54:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:54:29]Read from MH i2c: E2 [20:54:29]MH_I2C_Read... [20:54:29]Read from MH i2c: E2 0E 00 [20:54:29]MH_I2C_Read... [20:54:29]Read from MH i2c: E2 0E 00 10 8F 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 7B [20:54:29]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [20:54:29]wFMCommunicate OK [20:54:29]SAM_PROTO_GetShiftState done [20:54:29]FM_GetShiftState done [20:54:29]opened in 1729469754 [20:54:29]opened+sec_in_day 1729556154 [20:54:29]quantity*price = 50010 [20:54:29]sum+1 = 50012 [20:54:29]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 386 21.10.2024 20:54 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 187922 ФПД: 21000337670845 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T205435&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187922&fm=21000337670845&tin=02508201610067®Number=0000000000100030&sum=50000 [20:54:31]StoreToDocumentArchive [20:54:31]shift 460 fd 187922 [20:54:31]save to /storage/0460/doc_00187922 [20:54:31]save last doc name /storage/0460/doc_00187922 to /storage/kkm_last_doc_name [20:54:31]save OK [20:54:31]Clear old archive folders... [20:54:31]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:54:31]tlvbuf is 0130AA20 [20:54:31]SAM_PROTO_ClearQueue [20:54:31]wFMCommunicate request_size=4 [20:54:31]MH_SAM_APDU [20:54:31]CAPDU: 80 09 00 00 [20:54:31]Write to MH i2c: E2 08 00 1D 8F 80 09 00 00 00 00 00 00 1E [20:54:31]Write i2c OK [20:54:31]MH_I2C_Read... [20:54:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:54:31]Read from MH i2c: E2 [20:54:31]MH_I2C_Read... [20:54:31]Read from MH i2c: E2 03 00 [20:54:31]MH_I2C_Read... [20:54:31]Read from MH i2c: E2 03 00 1D 8F 00 90 00 20 [20:54:31]RAPDU: 90 00 [20:54:31]wFMCommunicate OK [20:54:31]SAM_PROTO_ClearQueue done [20:54:31]KKMCreateOFDPacket [20:54:31]OFDProtocolAddRootSTLVToBuf [20:54:31]FM_MakeSignedData [20:54:31]FM_MakeSignedData [20:54:31]SAM_PROTO_SignData [20:54:31]wFMCommunicate request_size=4 [20:54:31]MH_SAM_APDU [20:54:31]CAPDU: 80 0D 01 02 [20:54:31]Write to MH i2c: E2 08 00 1E 8F 80 0D 01 02 00 00 00 00 26 [20:54:31]Write i2c OK [20:54:31]MH_I2C_Read... [20:54:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:54:31]Read from MH i2c: E2 [20:54:31]MH_I2C_Read... [20:54:31]Read from MH i2c: E2 03 00 [20:54:31]MH_I2C_Read... [20:54:31]Read from MH i2c: E2 03 00 1E 8F 00 90 00 21 [20:54:31]RAPDU: 90 00 [20:54:31]wFMCommunicate OK [20:54:31]wFMCommunicate request_size=255 [20:54:31]MH_SAM_APDU [20:54:31]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 01 00 00 F4 03 04 00 8B BF 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 12 DE 02 00 35 04 06 00 13 [20:54:31]Write to MH i2c: E2 02 01 1F 8F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 01 00 00 F4 03 04 00 8B BF 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 12 DE 02 00 35 04 06 00 13 00 00 8D [20:54:31]Write i2c OK [20:54:31]MH_I2C_Read... [20:54:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:54:31]Read from MH i2c: E2 [20:54:31]MH_I2C_Read... [20:54:31]Read from MH i2c: E2 03 00 [20:54:31]MH_I2C_Read... [20:54:31]Read from MH i2c: E2 03 00 1F 8F 00 90 00 22 [20:54:31]RAPDU: 90 00 [20:54:31]wFMCommunicate OK [20:54:31]wFMCommunicate request_size=10 [20:54:31]MH_SAM_APDU [20:54:31]CAPDU: 80 0D 02 02 05 19 85 AA C2 BD [20:54:31]Write to MH i2c: E2 0D 00 20 8F 80 0D 02 02 05 00 19 85 AA C2 BD 00 00 FA [20:54:31]Write i2c OK [20:54:31]MH_I2C_Read... [20:54:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:54:31]Read from MH i2c: E2 [20:54:31]MH_I2C_Read... [20:54:31]Read from MH i2c: E2 03 00 [20:54:31]MH_I2C_Read... [20:54:31]Read from MH i2c: E2 03 00 20 8F 00 90 00 23 [20:54:31]RAPDU: 90 00 [20:54:31]wFMCommunicate OK [20:54:31]wFMCommunicate request_size=4 [20:54:31]MH_SAM_APDU [20:54:31]CAPDU: 80 0D 03 02 [20:54:31]Write to MH i2c: E2 08 00 21 8F 80 0D 03 02 00 00 00 00 2B [20:54:31]Write i2c OK [20:54:31]MH_I2C_Read... [20:54:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:54:31]Read from MH i2c: E2 [20:54:31]MH_I2C_Read... [20:54:31]Read from MH i2c: E2 0B 00 [20:54:31]MH_I2C_Read... [20:54:31]Read from MH i2c: E2 0B 00 21 8F 00 1F 45 58 54 1D D5 57 1C 90 00 A1 [20:54:31]RAPDU: 1F 45 58 54 1D D5 57 1C 90 00 [20:54:31]wFMCommunicate OK [20:54:31]SAM_PROTO_SignData done [20:54:31]FM_MakeSignedData done [20:54:31]CreateOFDProtocolMessage [20:54:31]wFMCommunicate request_size=4 [20:54:31]MH_SAM_APDU [20:54:31]CAPDU: 80 11 00 00 [20:54:31]Write to MH i2c: E2 08 00 22 8F 80 11 00 00 00 00 00 00 2B [20:54:31]Write i2c OK [20:54:31]MH_I2C_Read... [20:54:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:54:31]Read from MH i2c: E2 [20:54:31]MH_I2C_Read... [20:54:31]Read from MH i2c: E2 17 00 [20:54:31]MH_I2C_Read... [20:54:31]Read from MH i2c: E2 17 00 22 8F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 79 [20:54:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [20:54:31]wFMCommunicate OK [20:54:31]CreateOFDProtocolMessage done [20:54:31]OFDSenderStorePacket 187922 [20:54:31]StoreOFDPacket docnum=187922 [20:54:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 46 B2 07 01 40 CC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 01 00 00 F4 03 04 00 8B BF 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 12 DE 02 00 35 04 06 00 13 19 85 AA C2 BD 1F 45 58 54 1D D5 57 1C [20:54:31]CheckFolder [20:54:31]dirname=/storage/ofd_packets [20:54:31]CheckFolder done [20:54:31]ProducePacketName [20:54:31]name=ofd_packets/00187922 [20:54:31]NVStorageSaveData ofd_packets/00187922 [20:54:31]File name is /storage/ofd_packets/00187922 [20:54:31]Write 301 bytes [20:54:31]NVStorageSaveData done [20:54:31]OFDSenderStorePacket done [20:54:31]KKMCreateOFDPacket done [20:54:31]NVStorageSaveData kkm_last_timestamp [20:54:31]File name is /storage/kkm_last_timestamp [20:54:31]Write 4 bytes [20:54:31]NVStorageSaveData done [20:54:31]ExternCall_PrintAddStr [20:54:31]wPrintStart [20:54:31]Write to MH i2c: 01 00 00 23 8F B2 [20:54:31]Write i2c OK [20:54:31]MH_I2C_Read... [20:54:31]Read from MH i2c: 01 [20:54:31]MH_I2C_Read... [20:54:31]Read from MH i2c: 01 07 00 [20:54:31]MH_I2C_Read... [20:54:31]Read from MH i2c: 01 07 00 23 8F 00 00 00 00 00 FF 0F C7 [20:54:31]RasterBufferAndPrint [20:54:31]line Счет N : (1)209974 [20:54:31]line ИНН: 02508201610067 [20:54:31]line Контрольно-Кассовый Чек [20:54:31]line ПРОДАЖА [20:54:31]line ТРК (МРК, ГНК) : 33 [20:54:31]line Товар: 2710124500 [20:54:31]line Аи-95-К-3 [20:54:31]line 6.740 * 74.20 [20:54:31]line = 500.11 [20:54:31]line НДС 12% НСП 1% [20:54:31]line > о реализуемом товаре [20:54:31]line ОКРУГЛЕНИЕ: -0.11 [20:54:31]line ИТОГО: 500.00 [20:54:31]line Внесено: 500.00 [20:54:31]line СДАЧА: 0.00 [20:54:31]line НСП 1% : 4.43 [20:54:31]line НДС 12% : 53.11 [20:54:31]line Наличными: 500.00 [20:54:31]line Безнал.: 0.00 [20:54:31]line Место: АЗС № 86 "Партнер Нефть" [20:54:31]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [20:54:31]line СНО: Общий режим [20:54:31]line Чек 386 21.10.2024 20:54 [20:54:31]line Смена: 460 ФФД: 1.0 [20:54:31]line ЗНМ: 0300000155 [20:54:31]line РНМ: 0000000000100030 [20:54:31]line Версия ККМ: 001 [20:54:31]line ФМ: 0000000000965340 [20:54:31]line ФД: 187922 [20:54:31]line ФПД: 21000337670845 [20:54:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T205435&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187922&fm=21000337670845&tin=02508201610067®Number=0000000000100030&sum=50000 [20:54:31]written 0, free lines is 4095 [20:54:31]OFD Sender: Processing packet 187922 [packets to send 1062, broken 1061] [20:54:31]ProducePacketName [20:54:31]name=ofd_packets/00187922 [20:54:31]OFD Sender: To server: pG, [20:54:31]CommunicateWithHost lk.salyk.kg:30040 [20:54:31]ConnectInit lk.salyk.kg [20:54:31]Connected sock=10 [20:54:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 46 B2 07 01 40 CC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 01 00 00 F4 03 04 00 8B BF 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 12 DE 02 00 35 04 06 00 13 19 85 AA C2 BD 1F 45 58 54 1D D5 57 1C [20:54:32]Write to MH i2c: 01 00 00 4E 8F DD [20:54:32]Write i2c OK [20:54:32]MH_I2C_Read... [20:54:32]Read from MH i2c: 01 [20:54:32]MH_I2C_Read... [20:54:32]Read from MH i2c: 01 07 00 [20:54:32]MH_I2C_Read... [20:54:32]Read from MH i2c: 01 07 00 4E 8F 00 00 00 00 00 5D 0C 4D [20:54:32]RasterBufferAndPrint [20:54:32]line [20:54:32]line [20:54:32]line [20:54:32]line [20:54:32]line [20:54:32]written 0, free lines is 3168 [20:54:32]MH_Cut [20:54:32]Write to MH i2c: D1 01 00 55 8F 01 B6 [20:54:32]Write i2c OK [20:54:32]MH_I2C_Read... [20:54:32]Read from MH i2c: D1 [20:54:32]MH_I2C_Read... [20:54:32]Read from MH i2c: D1 01 00 [20:54:32]MH_I2C_Read... [20:54:32]Read from MH i2c: D1 01 00 55 8F 00 B5 [20:54:32]Write to MH i2c: 01 00 00 56 8F E5 [20:54:32]Write i2c OK [20:54:32]MH_I2C_Read... [20:54:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 76 8D 47 00 64 17 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 12 DE 02 00 F4 03 04 00 7A 69 16 67 B6 04 01 00 00 E1 79 A7 82 3F D8 34 F2 [20:54:32]CommunicateWithHost err = 0 [20:54:32]CheckOFDResponse [20:54:32]1017 (14) - 77093643461234 [20:54:32]1041 (16) - 0000000000965340 [20:54:32]1040 (4) - 187922 [20:54:32]1012 (4) - 21.10.2024 14:47 [20:54:32]1206 (1) - 0 [20:54:32]OFD Sender: Remove packet 187922 [20:54:32]ProducePacketName [20:54:32]name=ofd_packets/00187922 [20:54:32]NVStorageDeleteData [20:54:32]OFD Sender: No OFD packet to send [20:54:33]*** Cut start [20:54:33]*** Partial cut [20:54:33]*** CUTSNS_PIN = 1 [20:54:33]*** CUTSNS_PIN = 0 [20:54:33]*** Brake cut motor [20:54:33]Read from MH i2c: 01 [20:54:33]MH_I2C_Read... [20:54:33]*** Stop cut motor [20:54:33]*** Cut end [20:54:33]Read from MH i2c: 01 07 00 [20:54:33]MH_I2C_Read... [20:54:33]Read from MH i2c: 01 07 00 56 8F 00 00 00 00 00 FF 0F FA [20:54:33]process_action close_receipt done [20:54:33]requested_data is exist [20:54:33]produce_requested_data [20:54:33]requested_item fm.sn is exist - process it [20:54:33]wFMCommunicate request_size=4 [20:54:33]MH_SAM_APDU [20:54:33]CAPDU: 80 11 00 00 [20:54:33]Write to MH i2c: E2 08 00 57 8F 80 11 00 00 00 00 00 00 60 [20:54:33]Write i2c OK [20:54:33]MH_I2C_Read... [20:54:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:54:33]Read from MH i2c: E2 [20:54:33]MH_I2C_Read... [20:54:33]Read from MH i2c: E2 17 00 [20:54:33]MH_I2C_Read... [20:54:33]Read from MH i2c: E2 17 00 57 8F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 AE [20:54:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [20:54:33]wFMCommunicate OK [20:54:33]requested_item fd.num is exist - process it [20:54:33]SAM_PROTO_GetFieldsCounters [20:54:33]wFMCommunicate request_size=4 [20:54:33]MH_SAM_APDU [20:54:33]CAPDU: 80 13 00 00 [20:54:33]Write to MH i2c: E2 08 00 58 8F 80 13 00 00 00 00 00 00 63 [20:54:33]Write i2c OK [20:54:33]MH_I2C_Read... [20:54:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:54:34]Read from MH i2c: E2 [20:54:34]MH_I2C_Read... [20:54:34]Read from MH i2c: E2 62 00 [20:54:34]MH_I2C_Read... [20:54:34]Read from MH i2c: E2 62 00 58 8F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 12 DE 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 82 01 00 00 5E 04 04 00 82 01 00 00 57 04 04 00 83 01 00 00 19 04 04 00 00 00 00 00 90 00 B2 [20:54:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 12 DE 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 82 01 00 00 5E 04 04 00 82 01 00 00 57 04 04 00 83 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:54:34]wFMCommunicate OK [20:54:34]SAM_PROTO_GetFieldsCounters done [20:54:34]requested_item shift.num is exist - process it [20:54:34]requested_item shift.opened is exist - process it [20:54:34]req_shift_opened [20:54:34]FM_GetShiftState [20:54:34]SAM_PROTO_GetShiftState [20:54:34]wFMCommunicate request_size=4 [20:54:34]MH_SAM_APDU [20:54:34]CAPDU: 80 13 01 00 [20:54:34]Write to MH i2c: E2 08 00 59 8F 80 13 01 00 00 00 00 00 65 [20:54:34]Write i2c OK [20:54:34]MH_I2C_Read... [20:54:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:54:34]Read from MH i2c: E2 [20:54:34]MH_I2C_Read... [20:54:34]Read from MH i2c: E2 0E 00 [20:54:34]MH_I2C_Read... [20:54:34]Read from MH i2c: E2 0E 00 59 8F 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 C4 [20:54:34]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [20:54:34]wFMCommunicate OK [20:54:34]SAM_PROTO_GetShiftState done [20:54:34]FM_GetShiftState done [20:54:34]req_shift_opened done [20:54:34]requested_item shift.open_date is exist - process it [20:54:34]req_shift_open_date [20:54:34]req_shift_open_date done [20:54:34]produce_requested_data done [20:54:34]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187922,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [20:54:34]process_action_free close_receipt [20:54:34]json_value_free [20:54:34]json_value_free done [20:54:34]process_json_proto returns [20:54:34]Send response to host [20:54:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187922,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [20:54:34]free response buf [20:54:34]execute_script done [20:54:34]execute_script returns [20:54:34]free content buf [20:54:34]Sock 9.Close socket [20:54:34]Sock 9.Thread stoped [20:54:37]OFD Sender: No OFD packet to send [20:54:42]OFD Sender: No OFD packet to send [20:54:47]OFD Sender: No OFD packet to send [20:54:52]OFD Sender: No OFD packet to send [20:54:57]OFD Sender: No OFD packet to send [20:55:02]OFD Sender: No OFD packet to send [20:55:07]OFD Sender: No OFD packet to send [20:55:12]OFD Sender: No OFD packet to send [20:55:17]OFD Sender: No OFD packet to send [20:55:22]OFD Sender: No OFD packet to send [20:55:27]OFD Sender: No OFD packet to send [20:55:32]OFD Sender: No OFD packet to send [20:55:38]OFD Sender: No OFD packet to send [20:55:43]OFD Sender: No OFD packet to send [20:55:48]OFD Sender: No OFD packet to send [20:55:53]OFD Sender: No OFD packet to send [20:55:58]OFD Sender: No OFD packet to send [20:56:03]OFD Sender: No OFD packet to send [20:56:08]OFD Sender: No OFD packet to send [20:56:13]OFD Sender: No OFD packet to send [20:56:18]OFD Sender: No OFD packet to send [20:56:23]OFD Sender: No OFD packet to send [20:56:28]OFD Sender: No OFD packet to send [20:56:33]OFD Sender: No OFD packet to send [20:56:38]OFD Sender: No OFD packet to send [20:56:43]OFD Sender: No OFD packet to send [20:56:48]OFD Sender: No OFD packet to send [20:56:53]OFD Sender: No OFD packet to send [20:56:58]OFD Sender: No OFD packet to send [20:57:03]OFD Sender: No OFD packet to send [20:57:08]OFD Sender: No OFD packet to send [20:57:13]OFD Sender: No OFD packet to send [20:57:18]OFD Sender: No OFD packet to send [20:57:23]OFD Sender: No OFD packet to send [20:57:28]OFD Sender: No OFD packet to send [20:57:33]OFD Sender: No OFD packet to send [20:57:38]OFD Sender: No OFD packet to send [20:57:40]accept exits with 8 [20:57:40]New connection [20:57:40]New thread 3067014500 created [20:57:40]Thread 3067157860 joined [20:57:40]Waiting for new connection... [20:57:40] Sock 8.Parse request [20:57:40]Sock 8.Check first char [20:57:40]Sock 8.First char is OK [20:57:40]request: POST /json_proto HTTP/1.0 [20:57:40]Method: POST [20:57:40]URL: /json_proto [20:57:40]Method is POST - this is cgi request [20:57:40]url: /json_proto [20:57:40]query_string will be loaded in cgi processing [20:57:40]execute_cgi json_proto POST (null) [20:57:40]execute_cgi path=json_proto method=POST [20:57:40]POST find Content-Length [20:57:40]Host: 172.17.42.131:8080 [20:57:40]Content-Length: 679 [20:57:40]Content-Type: application/json [20:57:40] [20:57:40]POST finish read [20:57:40]Found Content-Length = 679 [20:57:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209975", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 59.060, "sum" : 4500.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 4500.00, "total" : 4500.00, "payments": [ { "type": 0, "sum" : 4500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:57:40]execute_script... [20:57: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)209975", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 59.060, "sum" : 4500.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 4500.00, "total" : 4500.00, "payments": [ { "type": 0, "sum" : 4500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:57:40]POST & json_proto [20:57:40]process_json_proto [20:57:40]json parsed OK: [20:57:40]protocol is kg_v1.0 [20:57:40]action value=close_receipt [20:57:40]process_action close_receipt [20:57:40]cmd_close_receipt [20:57:40]MH_GetDate [20:57:40]Write to MH i2c: F0 00 00 5A 8F D8 [20:57:40]Write i2c OK [20:57:40]MH_I2C_Read... [20:57:40]Read from MH i2c: F0 [20:57:40]MH_I2C_Read... [20:57:40]Read from MH i2c: F0 09 00 [20:57:40]MH_I2C_Read... [20:57:40]Read from MH i2c: F0 09 00 5A 8F 00 4A C0 16 67 A0 18 CA 66 50 [20:57:40]GetLastDocTimeStamp 1729544075 [20:57:40]current date 1729544266 [20:57:40]FM_GetShiftState [20:57:40]SAM_PROTO_GetShiftState [20:57:40]wFMCommunicate request_size=4 [20:57:40]MH_SAM_APDU [20:57:40]CAPDU: 80 13 01 00 [20:57:40]Write to MH i2c: E2 08 00 5B 8F 80 13 01 00 00 00 00 00 67 [20:57:40]Write i2c OK [20:57:40]MH_I2C_Read... [20:57:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:57:40]Read from MH i2c: E2 [20:57:40]MH_I2C_Read... [20:57:40]Read from MH i2c: E2 0E 00 [20:57:40]MH_I2C_Read... [20:57:40]Read from MH i2c: E2 0E 00 5B 8F 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 C6 [20:57:40]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [20:57:40]wFMCommunicate OK [20:57:40]SAM_PROTO_GetShiftState done [20:57:40]FM_GetShiftState done [20:57:40]opened in 1729469754 [20:57:40]opened+sec_in_day 1729556154 [20:57:40]quantity*price = 450037 [20:57:40]sum+1 = 450038 [20:57:40]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.37 ИТОГО: 4500.00 Внесено: 4500.00 СДАЧА: 0.00 НСП 1% : 39.83 НДС 12% : 477.91 Наличными: 4500.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 387 21.10.2024 20:57 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 187923 ФПД: 22627013714938 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T205746&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187923&fm=22627013714938&tin=02508201610067®Number=0000000000100030&sum=450000 [20:57:41]StoreToDocumentArchive [20:57:41]shift 460 fd 187923 [20:57:41]save to /storage/0460/doc_00187923 [20:57:41]save last doc name /storage/0460/doc_00187923 to /storage/kkm_last_doc_name [20:57:41]save OK [20:57:41]Clear old archive folders... [20:57:41]ProcessDocumentItem done err = 0, tmpTLVsize=248 [20:57:41]tlvbuf is 010A2ED0 [20:57:41]SAM_PROTO_ClearQueue [20:57:41]wFMCommunicate request_size=4 [20:57:41]MH_SAM_APDU [20:57:41]CAPDU: 80 09 00 00 [20:57:41]Write to MH i2c: E2 08 00 68 8F 80 09 00 00 00 00 00 00 69 [20:57:41]Write i2c OK [20:57:41]MH_I2C_Read... [20:57:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:57:41]Read from MH i2c: E2 [20:57:41]MH_I2C_Read... [20:57:41]Read from MH i2c: E2 03 00 [20:57:41]MH_I2C_Read... [20:57:41]Read from MH i2c: E2 03 00 68 8F 00 90 00 6B [20:57:41]RAPDU: 90 00 [20:57:41]wFMCommunicate OK [20:57:41]SAM_PROTO_ClearQueue done [20:57:41]KKMCreateOFDPacket [20:57:41]OFDProtocolAddRootSTLVToBuf [20:57:41]FM_MakeSignedData [20:57:41]FM_MakeSignedData [20:57:41]SAM_PROTO_SignData [20:57:41]wFMCommunicate request_size=4 [20:57:41]MH_SAM_APDU [20:57:41]CAPDU: 80 0D 01 02 [20:57:41]Write to MH i2c: E2 08 00 69 8F 80 0D 01 02 00 00 00 00 71 [20:57:41]Write i2c OK [20:57:41]MH_I2C_Read... [20:57:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:57:41]Read from MH i2c: E2 [20:57:41]MH_I2C_Read... [20:57:41]Read from MH i2c: E2 03 00 [20:57:41]MH_I2C_Read... [20:57:41]Read from MH i2c: E2 03 00 69 8F 00 90 00 6C [20:57:41]RAPDU: 90 00 [20:57:41]wFMCommunicate OK [20:57:41]wFMCommunicate request_size=255 [20:57:41]MH_SAM_APDU [20:57: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 35 FF 03 08 00 03 B4 E6 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 F5 DD 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 DD 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8F 0F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AF BA 00 00 00 00 07 04 06 00 D0 DD 06 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 83 01 00 00 F4 03 04 00 4A C0 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 13 DE 02 00 35 04 06 00 14 94 43 1D [20:57:41]Write to MH i2c: E2 02 01 6A 8F 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 B4 E6 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 F5 DD 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 DD 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8F 0F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AF BA 00 00 00 00 07 04 06 00 D0 DD 06 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 83 01 00 00 F4 03 04 00 4A C0 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 13 DE 02 00 35 04 06 00 14 94 43 1D 00 00 47 [20:57:41]Write i2c OK [20:57:41]MH_I2C_Read... [20:57:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:57:42]Read from MH i2c: E2 [20:57:42]MH_I2C_Read... [20:57:42]Read from MH i2c: E2 03 00 [20:57:42]MH_I2C_Read... [20:57:42]Read from MH i2c: E2 03 00 6A 8F 00 90 00 6D [20:57:42]RAPDU: 90 00 [20:57:42]wFMCommunicate OK [20:57:42]wFMCommunicate request_size=7 [20:57:42]MH_SAM_APDU [20:57:42]CAPDU: 80 0D 02 02 02 63 FA [20:57:42]Write to MH i2c: E2 0A 00 6B 8F 80 0D 02 02 02 00 63 FA 00 00 D5 [20:57:42]Write i2c OK [20:57:42]MH_I2C_Read... [20:57:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:57:42]Read from MH i2c: E2 [20:57:42]MH_I2C_Read... [20:57:42]Read from MH i2c: E2 03 00 [20:57:42]MH_I2C_Read... [20:57:42]Read from MH i2c: E2 03 00 6B 8F 00 90 00 6E [20:57:42]RAPDU: 90 00 [20:57:42]wFMCommunicate OK [20:57:42]wFMCommunicate request_size=4 [20:57:42]MH_SAM_APDU [20:57:42]CAPDU: 80 0D 03 02 [20:57:42]Write to MH i2c: E2 08 00 6C 8F 80 0D 03 02 00 00 00 00 76 [20:57:42]Write i2c OK [20:57:42]MH_I2C_Read... [20:57:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:57:42]Read from MH i2c: E2 [20:57:42]MH_I2C_Read... [20:57:42]Read from MH i2c: E2 0B 00 [20:57:42]MH_I2C_Read... [20:57:42]Read from MH i2c: E2 0B 00 6C 8F 00 7E 1C 2F 08 A4 F8 0B 71 90 00 60 [20:57:42]RAPDU: 7E 1C 2F 08 A4 F8 0B 71 90 00 [20:57:42]wFMCommunicate OK [20:57:42]SAM_PROTO_SignData done [20:57:42]FM_MakeSignedData done [20:57:42]CreateOFDProtocolMessage [20:57:42]wFMCommunicate request_size=4 [20:57:42]MH_SAM_APDU [20:57:42]CAPDU: 80 11 00 00 [20:57:42]Write to MH i2c: E2 08 00 6D 8F 80 11 00 00 00 00 00 00 76 [20:57:42]Write i2c OK [20:57:42]MH_I2C_Read... [20:57:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:57:42]Read from MH i2c: E2 [20:57:42]MH_I2C_Read... [20:57:42]Read from MH i2c: E2 17 00 [20:57:42]MH_I2C_Read... [20:57:42]Read from MH i2c: E2 17 00 6D 8F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 C4 [20:57:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [20:57:42]wFMCommunicate OK [20:57:42]CreateOFDProtocolMessage done [20:57:42]OFDSenderStorePacket 187923 [20:57:42]StoreOFDPacket docnum=187923 [20:57:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 56 DC 04 01 D4 3A 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 B4 E6 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 F5 DD 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 DD 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8F 0F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AF BA 00 00 00 00 07 04 06 00 D0 DD 06 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 83 01 00 00 F4 03 04 00 4A C0 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 13 DE 02 00 35 04 06 00 14 94 43 1D 63 FA 7E 1C 2F 08 A4 F8 0B 71 [20:57:42]CheckFolder [20:57:42]dirname=/storage/ofd_packets [20:57:42]CheckFolder done [20:57:42]ProducePacketName [20:57:42]name=ofd_packets/00187923 [20:57:42]NVStorageSaveData ofd_packets/00187923 [20:57:42]File name is /storage/ofd_packets/00187923 [20:57:42]Write 298 bytes [20:57:42]NVStorageSaveData done [20:57:42]OFDSenderStorePacket done [20:57:42]KKMCreateOFDPacket done [20:57:42]NVStorageSaveData kkm_last_timestamp [20:57:42]File name is /storage/kkm_last_timestamp [20:57:42]Write 4 bytes [20:57:42]NVStorageSaveData done [20:57:42]ExternCall_PrintAddStr [20:57:42]wPrintStart [20:57:42]Write to MH i2c: 01 00 00 6E 8F FD [20:57:42]Write i2c OK [20:57:42]MH_I2C_Read... [20:57:42]Read from MH i2c: 01 [20:57:42]MH_I2C_Read... [20:57:42]Read from MH i2c: 01 07 00 [20:57:42]MH_I2C_Read... [20:57:42]Read from MH i2c: 01 07 00 6E 8F 00 00 00 00 00 FF 0F 12 [20:57:42]RasterBufferAndPrint [20:57:42]line Счет N : (1)209975 [20:57:42]line ИНН: 02508201610067 [20:57:42]line Контрольно-Кассовый Чек [20:57:42]line ПРОДАЖА [20:57:42]line ТРК (МРК, ГНК) : 51 [20:57:42]line Товар: 2710194210 [20:57:42]line ДТ-К-5 [20:57:42]line 59.060 * 76.20 [20:57:42]line = 4500.37 [20:57:42]line НДС 12% НСП 1% [20:57:42]line > о реализуемом товаре [20:57:42]line ОКРУГЛЕНИЕ: -0.37 [20:57:42]line ИТОГО: 4500.00 [20:57:42]line Внесено: 4500.00 [20:57:42]line СДАЧА: 0.00 [20:57:42]line НСП 1% : 39.83 [20:57:42]line НДС 12% : 477.91 [20:57:42]line Наличными: 4500.00 [20:57:42]line Безнал.: 0.00 [20:57:42]line Место: АЗС № 86 "Партнер Нефть" [20:57:42]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [20:57:42]line СНО: Общий режим [20:57:42]line Чек 387 21.10.2024 20:57 [20:57:42]line Смена: 460 ФФД: 1.0 [20:57:42]line ЗНМ: 0300000155 [20:57:42]line РНМ: 0000000000100030 [20:57:42]line Версия ККМ: 001 [20:57:42]line ФМ: 0000000000965340 [20:57:42]line ФД: 187923 [20:57:42]line ФПД: 22627013714938 [20:57:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T205746&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187923&fm=22627013714938&tin=02508201610067®Number=0000000000100030&sum=450000 [20:57:42]written 0, free lines is 4095 [20:57:42]OFD Sender: Processing packet 187923 [packets to send 1062, broken 1061] [20:57:42]ProducePacketName [20:57:42]name=ofd_packets/00187923 [20:57:42]OFD Sender: To server: pG, [20:57:42]CommunicateWithHost lk.salyk.kg:30040 [20:57:42]ConnectInit lk.salyk.kg [20:57:42]Connected sock=10 [20:57:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 56 DC 04 01 D4 3A 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 B4 E6 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 F5 DD 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 DD 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8F 0F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AF BA 00 00 00 00 07 04 06 00 D0 DD 06 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 83 01 00 00 F4 03 04 00 4A C0 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 13 DE 02 00 35 04 06 00 14 94 43 1D 63 FA 7E 1C 2F 08 A4 F8 0B 71 [20:57:42]Write to MH i2c: 01 00 00 99 8F 28 [20:57:42]Write i2c OK [20:57:42]MH_I2C_Read... [20:57:42]Read from MH i2c: 01 [20:57:42]MH_I2C_Read... [20:57:42]Read from MH i2c: 01 07 00 [20:57:42]MH_I2C_Read... [20:57:42]Read from MH i2c: 01 07 00 99 8F 00 00 00 00 00 5D 0C 98 [20:57:42]RasterBufferAndPrint [20:57:42]line [20:57:42]line [20:57:42]line [20:57:42]line [20:57:42]line [20:57:42]written 0, free lines is 3169 [20:57:42]MH_Cut [20:57:42]Write to MH i2c: D1 01 00 A0 8F 01 01 [20:57:42]Write i2c OK [20:57:42]MH_I2C_Read... [20:57:42]Read from MH i2c: D1 [20:57:42]MH_I2C_Read... [20:57:42]Read from MH i2c: D1 01 00 [20:57:42]MH_I2C_Read... [20:57:42]Read from MH i2c: D1 01 00 A0 8F 00 00 [20:57:42]Write to MH i2c: 01 00 00 A1 8F 30 [20:57:42]Write i2c OK [20:57:42]MH_I2C_Read... [20:57:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 B1 2F 47 00 FB 9A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 13 DE 02 00 F4 03 04 00 39 6A 16 67 B6 04 01 00 00 C5 C1 C0 59 13 1D 6C 6A [20:57:42]CommunicateWithHost err = 0 [20:57:42]CheckOFDResponse [20:57:42]1017 (14) - 77093643461234 [20:57:42]1041 (16) - 0000000000965340 [20:57:42]1040 (4) - 187923 [20:57:42]1012 (4) - 21.10.2024 14:50 [20:57:42]1206 (1) - 0 [20:57:42]OFD Sender: Remove packet 187923 [20:57:42]ProducePacketName [20:57:42]name=ofd_packets/00187923 [20:57:42]NVStorageDeleteData [20:57:43]OFD Sender: No OFD packet to send [20:57:43]*** Cut start [20:57:43]*** Partial cut [20:57:43]*** CUTSNS_PIN = 1 [20:57:43]*** CUTSNS_PIN = 0 [20:57:44]*** Brake cut motor [20:57:44]Read from MH i2c: 01 [20:57:44]MH_I2C_Read... [20:57:44]*** Stop cut motor [20:57:44]*** Cut end [20:57:44]Read from MH i2c: 01 07 00 [20:57:44]MH_I2C_Read... [20:57:44]Read from MH i2c: 01 07 00 A1 8F 00 00 00 00 00 FF 0F 45 [20:57:44]process_action close_receipt done [20:57:44]requested_data is exist [20:57:44]produce_requested_data [20:57:44]requested_item fm.sn is exist - process it [20:57:44]wFMCommunicate request_size=4 [20:57:44]MH_SAM_APDU [20:57:44]CAPDU: 80 11 00 00 [20:57:44]Write to MH i2c: E2 08 00 A2 8F 80 11 00 00 00 00 00 00 AB [20:57:44]Write i2c OK [20:57:44]MH_I2C_Read... [20:57:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:57:44]Read from MH i2c: E2 [20:57:44]MH_I2C_Read... [20:57:44]Read from MH i2c: E2 17 00 [20:57:44]MH_I2C_Read... [20:57:44]Read from MH i2c: E2 17 00 A2 8F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 F9 [20:57:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [20:57:44]wFMCommunicate OK [20:57:44]requested_item fd.num is exist - process it [20:57:44]SAM_PROTO_GetFieldsCounters [20:57:44]wFMCommunicate request_size=4 [20:57:44]MH_SAM_APDU [20:57:44]CAPDU: 80 13 00 00 [20:57:44]Write to MH i2c: E2 08 00 A3 8F 80 13 00 00 00 00 00 00 AE [20:57:44]Write i2c OK [20:57:44]MH_I2C_Read... [20:57:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:57:44]Read from MH i2c: E2 [20:57:44]MH_I2C_Read... [20:57:44]Read from MH i2c: E2 62 00 [20:57:44]MH_I2C_Read... [20:57:44]Read from MH i2c: E2 62 00 A3 8F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 13 DE 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 83 01 00 00 5E 04 04 00 83 01 00 00 57 04 04 00 84 01 00 00 19 04 04 00 00 00 00 00 90 00 01 [20:57:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 13 DE 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 83 01 00 00 5E 04 04 00 83 01 00 00 57 04 04 00 84 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:57:44]wFMCommunicate OK [20:57:44]SAM_PROTO_GetFieldsCounters done [20:57:44]requested_item shift.num is exist - process it [20:57:44]requested_item shift.opened is exist - process it [20:57:44]req_shift_opened [20:57:44]FM_GetShiftState [20:57:44]SAM_PROTO_GetShiftState [20:57:44]wFMCommunicate request_size=4 [20:57:44]MH_SAM_APDU [20:57:44]CAPDU: 80 13 01 00 [20:57:44]Write to MH i2c: E2 08 00 A4 8F 80 13 01 00 00 00 00 00 B0 [20:57:44]Write i2c OK [20:57:44]MH_I2C_Read... [20:57:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:57:44]Read from MH i2c: E2 [20:57:44]MH_I2C_Read... [20:57:44]Read from MH i2c: E2 0E 00 [20:57:44]MH_I2C_Read... [20:57:44]Read from MH i2c: E2 0E 00 A4 8F 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 0F [20:57:44]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [20:57:44]wFMCommunicate OK [20:57:44]SAM_PROTO_GetShiftState done [20:57:44]FM_GetShiftState done [20:57:44]req_shift_opened done [20:57:44]requested_item shift.open_date is exist - process it [20:57:44]req_shift_open_date [20:57:44]req_shift_open_date done [20:57:44]produce_requested_data done [20:57:44]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187923,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [20:57:44]process_action_free close_receipt [20:57:44]json_value_free [20:57:44]json_value_free done [20:57:44]process_json_proto returns [20:57:44]Send response to host [20:57:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187923,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [20:57:44]free response buf [20:57:44]execute_script done [20:57:44]execute_script returns [20:57:44]free content buf [20:57:44]Sock 8.Close socket [20:57:44]Sock 8.Thread stoped [20:57:48]OFD Sender: No OFD packet to send [20:57:53]OFD Sender: No OFD packet to send [20:57:58]OFD Sender: No OFD packet to send [20:58:03]OFD Sender: No OFD packet to send [20:58:08]OFD Sender: No OFD packet to send [20:58:13]OFD Sender: No OFD packet to send [20:58:18]OFD Sender: No OFD packet to send [20:58:23]OFD Sender: No OFD packet to send [20:58:28]OFD Sender: No OFD packet to send [20:58:33]OFD Sender: No OFD packet to send [20:58:38]OFD Sender: No OFD packet to send [20:58:43]OFD Sender: No OFD packet to send [20:58:48]OFD Sender: No OFD packet to send [20:58:53]OFD Sender: No OFD packet to send [20:58:58]OFD Sender: No OFD packet to send [20:59:03]OFD Sender: No OFD packet to send [20:59:08]OFD Sender: No OFD packet to send [20:59:13]OFD Sender: No OFD packet to send [20:59:18]OFD Sender: No OFD packet to send [20:59:23]OFD Sender: No OFD packet to send [20:59:28]OFD Sender: No OFD packet to send [20:59:33]OFD Sender: No OFD packet to send [20:59:38]OFD Sender: No OFD packet to send [20:59:43]OFD Sender: No OFD packet to send [20:59:48]OFD Sender: No OFD packet to send [20:59:53]OFD Sender: No OFD packet to send [20:59:59]OFD Sender: No OFD packet to send [21:00:04]OFD Sender: No OFD packet to send [21:00:09]OFD Sender: No OFD packet to send [21:00:14]OFD Sender: No OFD packet to send [21:00:19]OFD Sender: No OFD packet to send [21:00:24]OFD Sender: No OFD packet to send [21:00:26]accept exits with 9 [21:00:26]New connection [21:00:26]New thread 3067157860 created [21:00:26]Thread 3067014500 joined [21:00:26]Waiting for new connection... [21:00:26] Sock 9.Parse request [21:00:26]Sock 9.Check first char [21:00:26]Sock 9.First char is OK [21:00:26]request: POST /json_proto HTTP/1.0 [21:00:26]Method: POST [21:00:26]URL: /json_proto [21:00:26]Method is POST - this is cgi request [21:00:26]url: /json_proto [21:00:26]query_string will be loaded in cgi processing [21:00:26]execute_cgi json_proto POST (null) [21:00:26]execute_cgi path=json_proto method=POST [21:00:26]POST find Content-Length [21:00:26]Host: 172.17.42.131:8080 [21:00:26]Content-Length: 800 [21:00:26]Content-Type: application/json [21:00:26] [21:00:26]POST finish read [21:00:26]Found Content-Length = 800 [21:00:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209976", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "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\u000A3946118", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:00:26]execute_script... [21:00: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)209976", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "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\u000A3946118", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:00:26]POST & json_proto [21:00:26]process_json_proto [21:00:26]json parsed OK: [21:00:26]protocol is kg_v1.0 [21:00:26]action value=close_receipt [21:00:26]process_action close_receipt [21:00:26]cmd_close_receipt [21:00:26]MH_GetDate [21:00:26]Write to MH i2c: F0 00 00 A5 8F 23 [21:00:26]Write i2c OK [21:00:26]MH_I2C_Read... [21:00:26]Read from MH i2c: F0 [21:00:26]MH_I2C_Read... [21:00:26]Read from MH i2c: F0 09 00 [21:00:26]MH_I2C_Read... [21:00:26]Read from MH i2c: F0 09 00 A5 8F 00 F0 C0 16 67 A0 18 CA 66 41 [21:00:26]GetLastDocTimeStamp 1729544266 [21:00:26]current date 1729544432 [21:00:26]FM_GetShiftState [21:00:26]SAM_PROTO_GetShiftState [21:00:26]wFMCommunicate request_size=4 [21:00:26]MH_SAM_APDU [21:00:26]CAPDU: 80 13 01 00 [21:00:26]Write to MH i2c: E2 08 00 A6 8F 80 13 01 00 00 00 00 00 B2 [21:00:26]Write i2c OK [21:00:26]MH_I2C_Read... [21:00:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:00:26]Read from MH i2c: E2 [21:00:26]MH_I2C_Read... [21:00:26]Read from MH i2c: E2 0E 00 [21:00:26]MH_I2C_Read... [21:00:26]Read from MH i2c: E2 0E 00 A6 8F 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 11 [21:00:26]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [21:00:26]wFMCommunicate OK [21:00:26]SAM_PROTO_GetShiftState done [21:00:26]FM_GetShiftState done [21:00:26]opened in 1729469754 [21:00:26]opened+sec_in_day 1729556154 [21:00:26]quantity*price = 0 [21:00:26]sum+1 = 1 [21:00:26]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 388 21.10.2024 21:00 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Талоны: Топливные Талоны 3946118 ФМ: 0000000000965340 ФД: 187924 ФПД: 72761142517610 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T210032&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187924&fm=72761142517610&tin=02508201610067®Number=0000000000100030&sum=0 [21:00:27]StoreToDocumentArchive [21:00:27]shift 460 fd 187924 [21:00:27]save to /storage/0460/doc_00187924 [21:00:27]save last doc name /storage/0460/doc_00187924 to /storage/kkm_last_doc_name [21:00:27]save OK [21:00:27]Clear old archive folders... [21:00:27]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:00:27]tlvbuf is 013567A0 [21:00:27]SAM_PROTO_ClearQueue [21:00:27]wFMCommunicate request_size=4 [21:00:27]MH_SAM_APDU [21:00:27]CAPDU: 80 09 00 00 [21:00:27]Write to MH i2c: E2 08 00 B3 8F 80 09 00 00 00 00 00 00 B4 [21:00:27]Write i2c OK [21:00:27]MH_I2C_Read... [21:00:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:00:27]Read from MH i2c: E2 [21:00:27]MH_I2C_Read... [21:00:27]Read from MH i2c: E2 03 00 [21:00:27]MH_I2C_Read... [21:00:27]Read from MH i2c: E2 03 00 B3 8F 00 90 00 B6 [21:00:27]RAPDU: 90 00 [21:00:27]wFMCommunicate OK [21:00:27]SAM_PROTO_ClearQueue done [21:00:27]KKMCreateOFDPacket [21:00:27]OFDProtocolAddRootSTLVToBuf [21:00:27]FM_MakeSignedData [21:00:27]FM_MakeSignedData [21:00:27]SAM_PROTO_SignData [21:00:27]wFMCommunicate request_size=4 [21:00:27]MH_SAM_APDU [21:00:27]CAPDU: 80 0D 01 02 [21:00:27]Write to MH i2c: E2 08 00 B4 8F 80 0D 01 02 00 00 00 00 BC [21:00:27]Write i2c OK [21:00:27]MH_I2C_Read... [21:00:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:00:27]Read from MH i2c: E2 [21:00:27]MH_I2C_Read... [21:00:27]Read from MH i2c: E2 03 00 [21:00:27]MH_I2C_Read... [21:00:27]Read from MH i2c: E2 03 00 B4 8F 00 90 00 B7 [21:00:27]RAPDU: 90 00 [21:00:27]wFMCommunicate OK [21:00:27]wFMCommunicate request_size=255 [21:00:27]MH_SAM_APDU [21:00: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 33 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 84 01 00 00 F4 03 04 00 F0 C0 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 14 DE 02 00 35 04 06 00 42 [21:00:27]Write to MH i2c: E2 02 01 B5 8F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 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 84 01 00 00 F4 03 04 00 F0 C0 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 14 DE 02 00 35 04 06 00 42 00 00 CD [21:00:27]Write i2c OK [21:00:27]MH_I2C_Read... [21:00:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:00:28]Read from MH i2c: E2 [21:00:28]MH_I2C_Read... [21:00:28]Read from MH i2c: E2 03 00 [21:00:28]MH_I2C_Read... [21:00:28]Read from MH i2c: E2 03 00 B5 8F 00 90 00 B8 [21:00:28]RAPDU: 90 00 [21:00:28]wFMCommunicate OK [21:00:28]wFMCommunicate request_size=10 [21:00:28]MH_SAM_APDU [21:00:28]CAPDU: 80 0D 02 02 05 2D 06 0D 9F 6A [21:00:28]Write to MH i2c: E2 0D 00 B6 8F 80 0D 02 02 05 00 2D 06 0D 9F 6A 00 00 12 [21:00:28]Write i2c OK [21:00:28]MH_I2C_Read... [21:00:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:00:28]Read from MH i2c: E2 [21:00:28]MH_I2C_Read... [21:00:28]Read from MH i2c: E2 03 00 [21:00:28]MH_I2C_Read... [21:00:28]Read from MH i2c: E2 03 00 B6 8F 00 90 00 B9 [21:00:28]RAPDU: 90 00 [21:00:28]wFMCommunicate OK [21:00:28]wFMCommunicate request_size=4 [21:00:28]MH_SAM_APDU [21:00:28]CAPDU: 80 0D 03 02 [21:00:28]Write to MH i2c: E2 08 00 B7 8F 80 0D 03 02 00 00 00 00 C1 [21:00:28]Write i2c OK [21:00:28]MH_I2C_Read... [21:00:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:00:28]Read from MH i2c: E2 [21:00:28]MH_I2C_Read... [21:00:28]Read from MH i2c: E2 0B 00 [21:00:28]MH_I2C_Read... [21:00:28]Read from MH i2c: E2 0B 00 B7 8F 00 6D 26 73 A5 B9 8E 24 BD 90 00 95 [21:00:28]RAPDU: 6D 26 73 A5 B9 8E 24 BD 90 00 [21:00:28]wFMCommunicate OK [21:00:28]SAM_PROTO_SignData done [21:00:28]FM_MakeSignedData done [21:00:28]CreateOFDProtocolMessage [21:00:28]wFMCommunicate request_size=4 [21:00:28]MH_SAM_APDU [21:00:28]CAPDU: 80 11 00 00 [21:00:28]Write to MH i2c: E2 08 00 B8 8F 80 11 00 00 00 00 00 00 C1 [21:00:28]Write i2c OK [21:00:28]MH_I2C_Read... [21:00:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:00:28]Read from MH i2c: E2 [21:00:28]MH_I2C_Read... [21:00:28]Read from MH i2c: E2 17 00 [21:00:28]MH_I2C_Read... [21:00:28]Read from MH i2c: E2 17 00 B8 8F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 0F [21:00:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [21:00:28]wFMCommunicate OK [21:00:28]CreateOFDProtocolMessage done [21:00:28]OFDSenderStorePacket 187924 [21:00:28]StoreOFDPacket docnum=187924 [21:00:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 FC AE 07 01 82 32 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 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 84 01 00 00 F4 03 04 00 F0 C0 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 14 DE 02 00 35 04 06 00 42 2D 06 0D 9F 6A 6D 26 73 A5 B9 8E 24 BD [21:00:28]CheckFolder [21:00:28]dirname=/storage/ofd_packets [21:00:28]CheckFolder done [21:00:28]ProducePacketName [21:00:28]name=ofd_packets/00187924 [21:00:28]NVStorageSaveData ofd_packets/00187924 [21:00:28]File name is /storage/ofd_packets/00187924 [21:00:28]Write 301 bytes [21:00:28]NVStorageSaveData done [21:00:28]OFDSenderStorePacket done [21:00:28]KKMCreateOFDPacket done [21:00:28]NVStorageSaveData kkm_last_timestamp [21:00:28]File name is /storage/kkm_last_timestamp [21:00:28]Write 4 bytes [21:00:28]NVStorageSaveData done [21:00:28]ExternCall_PrintAddStr [21:00:28]wPrintStart [21:00:28]Write to MH i2c: 01 00 00 B9 8F 48 [21:00:28]Write i2c OK [21:00:28]MH_I2C_Read... [21:00:28]Read from MH i2c: 01 [21:00:28]MH_I2C_Read... [21:00:28]Read from MH i2c: 01 07 00 [21:00:28]MH_I2C_Read... [21:00:28]Read from MH i2c: 01 07 00 B9 8F 00 00 00 00 00 FF 0F 5D [21:00:28]RasterBufferAndPrint [21:00:28]line Счет N : (1)209976 [21:00:28]line ИНН: 02508201610067 [21:00:28]line Контрольно-Кассовый Чек [21:00:28]line ПРОДАЖА [21:00:28]line ТРК (МРК, ГНК) : 32 [21:00:28]line Товар: 2710124130 [21:00:28]line Аи-92-К-3 [21:00:28]line 20.000 * 0.00 [21:00:28]line = 0.00 [21:00:28]line НДС 12% НСП 1% [21:00:28]line > о реализуемом товаре [21:00:28]line ИТОГО: 0.00 [21:00:28]line НСП 1% : 0.00 [21:00:28]line НДС 12% : 0.00 [21:00:28]line Наличными: 0.00 [21:00:28]line Безнал.: 0.00 [21:00:28]line Место: АЗС № 86 "Партнер Нефть" [21:00:28]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [21:00:28]line СНО: Общий режим [21:00:28]line Чек 388 21.10.2024 21:00 [21:00:28]line Смена: 460 ФФД: 1.0 [21:00:28]line ЗНМ: 0300000155 [21:00:28]line РНМ: 0000000000100030 [21:00:28]line Версия ККМ: 001 [21:00:28]line Талоны: Топливные Талоны [21:00:28]line 3946118 [21:00:28]line ФМ: 0000000000965340 [21:00:28]line ФД: 187924 [21:00:28]line ФПД: 72761142517610 [21:00:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T210032&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187924&fm=72761142517610&tin=02508201610067®Number=0000000000100030&sum=0 [21:00:28]written 0, free lines is 4095 [21:00:28]OFD Sender: Processing packet 187924 [packets to send 1062, broken 1061] [21:00:28]ProducePacketName [21:00:28]name=ofd_packets/00187924 [21:00:28]OFD Sender: To server: pG, [21:00:28]CommunicateWithHost lk.salyk.kg:30040 [21:00:28]ConnectInit lk.salyk.kg [21:00:28]Write to MH i2c: 01 00 00 E3 8F 72 [21:00:28]Write i2c OK [21:00:28]MH_I2C_Read... [21:00:28]Read from MH i2c: 01 [21:00:28]MH_I2C_Read... [21:00:28]Read from MH i2c: 01 07 00 [21:00:28]MH_I2C_Read... [21:00:28]Read from MH i2c: 01 07 00 E3 8F 00 00 00 00 00 71 0C F6 [21:00:28]RasterBufferAndPrint [21:00:28]line [21:00:28]line [21:00:28]line [21:00:28]line [21:00:28]line [21:00:28]written 0, free lines is 3191 [21:00:28]MH_Cut [21:00:28]Write to MH i2c: D1 01 00 EA 8F 01 4B [21:00:28]Write i2c OK [21:00:28]MH_I2C_Read... [21:00:28]Read from MH i2c: D1 [21:00:28]MH_I2C_Read... [21:00:28]Read from MH i2c: D1 01 00 [21:00:28]MH_I2C_Read... [21:00:28]Read from MH i2c: D1 01 00 EA 8F 00 4A [21:00:28]Write to MH i2c: 01 00 00 EB 8F 7A [21:00:28]Write i2c OK [21:00:28]MH_I2C_Read... [21:00:28]Connected sock=8 [21:00:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 FC AE 07 01 82 32 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 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 84 01 00 00 F4 03 04 00 F0 C0 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 14 DE 02 00 35 04 06 00 42 2D 06 0D 9F 6A 6D 26 73 A5 B9 8E 24 BD [21:00:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 D7 70 47 00 76 47 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 14 DE 02 00 F4 03 04 00 DF 6A 16 67 B6 04 01 00 00 23 29 68 ED C8 84 D3 8F [21:00:29]CommunicateWithHost err = 0 [21:00:29]CheckOFDResponse [21:00:29]1017 (14) - 77093643461234 [21:00:29]1041 (16) - 0000000000965340 [21:00:29]1040 (4) - 187924 [21:00:29]1012 (4) - 21.10.2024 14:53 [21:00:29]1206 (1) - 0 [21:00:29]OFD Sender: Remove packet 187924 [21:00:29]ProducePacketName [21:00:29]name=ofd_packets/00187924 [21:00:29]NVStorageDeleteData [21:00:29]OFD Sender: No OFD packet to send [21:00:29]*** Cut start [21:00:29]*** Partial cut [21:00:29]*** CUTSNS_PIN = 1 [21:00:30]*** CUTSNS_PIN = 0 [21:00:30]*** Brake cut motor [21:00:30]Read from MH i2c: 01 [21:00:30]MH_I2C_Read... [21:00:30]*** Stop cut motor [21:00:30]*** Cut end [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 EB 8F 00 00 00 00 00 FF 0F 8F [21:00:30]process_action close_receipt done [21:00:30]requested_data is exist [21:00:30]produce_requested_data [21:00:30]requested_item fm.sn is exist - process it [21:00:30]wFMCommunicate request_size=4 [21:00:30]MH_SAM_APDU [21:00:30]CAPDU: 80 11 00 00 [21:00:30]Write to MH i2c: E2 08 00 EC 8F 80 11 00 00 00 00 00 00 F5 [21:00:30]Write i2c OK [21:00:30]MH_I2C_Read... [21:00:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:00:30]Read from MH i2c: E2 [21:00:30]MH_I2C_Read... [21:00:30]Read from MH i2c: E2 17 00 [21:00:30]MH_I2C_Read... [21:00:30]Read from MH i2c: E2 17 00 EC 8F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 43 [21:00:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [21:00:30]wFMCommunicate OK [21:00:30]requested_item fd.num is exist - process it [21:00:30]SAM_PROTO_GetFieldsCounters [21:00:30]wFMCommunicate request_size=4 [21:00:30]MH_SAM_APDU [21:00:30]CAPDU: 80 13 00 00 [21:00:30]Write to MH i2c: E2 08 00 ED 8F 80 13 00 00 00 00 00 00 F8 [21:00:30]Write i2c OK [21:00:30]MH_I2C_Read... [21:00:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:00:30]Read from MH i2c: E2 [21:00:30]MH_I2C_Read... [21:00:30]Read from MH i2c: E2 62 00 [21:00:30]MH_I2C_Read... [21:00:30]Read from MH i2c: E2 62 00 ED 8F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 14 DE 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 84 01 00 00 5E 04 04 00 84 01 00 00 57 04 04 00 85 01 00 00 19 04 04 00 00 00 00 00 90 00 4F [21:00:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 14 DE 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 84 01 00 00 5E 04 04 00 84 01 00 00 57 04 04 00 85 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:00:30]wFMCommunicate OK [21:00:30]SAM_PROTO_GetFieldsCounters done [21:00:30]requested_item shift.num is exist - process it [21:00:30]requested_item shift.opened is exist - process it [21:00:30]req_shift_opened [21:00:30]FM_GetShiftState [21:00:30]SAM_PROTO_GetShiftState [21:00:30]wFMCommunicate request_size=4 [21:00:30]MH_SAM_APDU [21:00:30]CAPDU: 80 13 01 00 [21:00:30]Write to MH i2c: E2 08 00 EE 8F 80 13 01 00 00 00 00 00 FA [21:00:30]Write i2c OK [21:00:30]MH_I2C_Read... [21:00:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:00:30]Read from MH i2c: E2 [21:00:30]MH_I2C_Read... [21:00:30]Read from MH i2c: E2 0E 00 [21:00:30]MH_I2C_Read... [21:00:30]Read from MH i2c: E2 0E 00 EE 8F 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 59 [21:00:30]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [21:00:30]wFMCommunicate OK [21:00:30]SAM_PROTO_GetShiftState done [21:00:30]FM_GetShiftState done [21:00:30]req_shift_opened done [21:00:30]requested_item shift.open_date is exist - process it [21:00:30]req_shift_open_date [21:00:30]req_shift_open_date done [21:00:30]produce_requested_data done [21:00:30]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187924,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [21:00:30]process_action_free close_receipt [21:00:30]json_value_free [21:00:30]json_value_free done [21:00:30]process_json_proto returns [21:00:30]Send response to host [21:00:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187924,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [21:00:30]free response buf [21:00:30]execute_script done [21:00:30]execute_script returns [21:00:30]free content buf [21:00:30]Sock 9.Close socket [21:00:30]Sock 9.Thread stoped [21:00:34]OFD Sender: No OFD packet to send [21:00:39]OFD Sender: No OFD packet to send [21:00:44]OFD Sender: No OFD packet to send [21:00:49]OFD Sender: No OFD packet to send [21:00:54]OFD Sender: No OFD packet to send [21:00:59]OFD Sender: No OFD packet to send [21:01:04]OFD Sender: No OFD packet to send [21:01:09]OFD Sender: No OFD packet to send [21:01:14]OFD Sender: No OFD packet to send [21:01:19]OFD Sender: No OFD packet to send [21:01:24]OFD Sender: No OFD packet to send [21:01:29]OFD Sender: No OFD packet to send [21:01:34]OFD Sender: No OFD packet to send [21:01:39]OFD Sender: No OFD packet to send [21:01:44]OFD Sender: No OFD packet to send [21:01:50]OFD Sender: No OFD packet to send [21:01:55]OFD Sender: No OFD packet to send [21:02:00]OFD Sender: No OFD packet to send [21:02:05]OFD Sender: No OFD packet to send [21:02:10]OFD Sender: No OFD packet to send [21:02:15]OFD Sender: No OFD packet to send [21:02:20]OFD Sender: No OFD packet to send [21:02:25]OFD Sender: No OFD packet to send [21:02:30]OFD Sender: No OFD packet to send [21:02:35]OFD Sender: No OFD packet to send [21:02:40]OFD Sender: No OFD packet to send [21:02:45]OFD Sender: No OFD packet to send [21:02:50]OFD Sender: No OFD packet to send [21:02:55]OFD Sender: No OFD packet to send [21:03:00]OFD Sender: No OFD packet to send [21:03:05]OFD Sender: No OFD packet to send [21:03:10]OFD Sender: No OFD packet to send [21:03:15]OFD Sender: No OFD packet to send [21:03:20]OFD Sender: No OFD packet to send [21:03:25]OFD Sender: No OFD packet to send [21:03:30]OFD Sender: No OFD packet to send [21:03:35]OFD Sender: No OFD packet to send [21:03:40]OFD Sender: No OFD packet to send [21:03:45]OFD Sender: No OFD packet to send [21:03:50]OFD Sender: No OFD packet to send [21:03:55]OFD Sender: No OFD packet to send [21:04:00]OFD Sender: No OFD packet to send [21:04:05]OFD Sender: No OFD packet to send [21:04:10]OFD Sender: No OFD packet to send [21:04:15]OFD Sender: No OFD packet to send [21:04:20]OFD Sender: No OFD packet to send [21:04:25]OFD Sender: No OFD packet to send [21:04:30]OFD Sender: No OFD packet to send [21:04:35]OFD Sender: No OFD packet to send [21:04:40]OFD Sender: No OFD packet to send [21:04:45]OFD Sender: No OFD packet to send [21:04:50]OFD Sender: No OFD packet to send [21:04:55]OFD Sender: No OFD packet to send [21:05:00]OFD Sender: No OFD packet to send [21:05:05]OFD Sender: No OFD packet to send [21:05:10]OFD Sender: No OFD packet to send [21:05:15]OFD Sender: No OFD packet to send [21:05:20]OFD Sender: No OFD packet to send [21:05:25]OFD Sender: No OFD packet to send [21:05:30]OFD Sender: No OFD packet to send [21:05:36]OFD Sender: No OFD packet to send [21:05:41]OFD Sender: No OFD packet to send [21:05:46]OFD Sender: No OFD packet to send [21:05:51]OFD Sender: No OFD packet to send [21:05:56]OFD Sender: No OFD packet to send [21:06:01]OFD Sender: No OFD packet to send [21:06:06]OFD Sender: No OFD packet to send [21:06:11]OFD Sender: No OFD packet to send [21:06:16]OFD Sender: No OFD packet to send [21:06:21]OFD Sender: No OFD packet to send [21:06:26]OFD Sender: No OFD packet to send [21:06:31]OFD Sender: No OFD packet to send [21:06:36]OFD Sender: No OFD packet to send [21:06:41]OFD Sender: No OFD packet to send [21:06:46]OFD Sender: No OFD packet to send [21:06:47]accept exits with 10 [21:06:47]New connection [21:06:47]New thread 3067014500 created [21:06:47]Thread 3067157860 joined [21:06:47]Waiting for new connection... [21:06:47] Sock 10.Parse request [21:06:47]Sock 10.Check first char [21:06:47]Sock 10.First char is OK [21:06:47]request: POST /json_proto HTTP/1.0 [21:06:47]Method: POST [21:06:47]URL: /json_proto [21:06:47]Method is POST - this is cgi request [21:06:47]url: /json_proto [21:06:47]query_string will be loaded in cgi processing [21:06:47]execute_cgi json_proto POST (null) [21:06:47]execute_cgi path=json_proto method=POST [21:06:47]POST find Content-Length [21:06:47]Host: 172.17.42.131:8080 [21:06:47]Content-Length: 679 [21:06:47]Content-Type: application/json [21:06:47] [21:06:47]POST finish read [21:06:47]Found Content-Length = 679 [21:06:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209977", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 39.210, "sum" : 2987.80, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 2987.00, "payments": [ { "type": 0, "sum" : 2987.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:06:47]execute_script... [21:06:47]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209977", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 39.210, "sum" : 2987.80, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 2987.00, "payments": [ { "type": 0, "sum" : 2987.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:06:47]POST & json_proto [21:06:47]process_json_proto [21:06:47]json parsed OK: [21:06:47]protocol is kg_v1.0 [21:06:47]action value=close_receipt [21:06:47]process_action close_receipt [21:06:47]cmd_close_receipt [21:06:47]MH_GetDate [21:06:47]Write to MH i2c: F0 00 00 EF 8F 6D [21:06:47]Write i2c OK [21:06:47]MH_I2C_Read... [21:06:47]Read from MH i2c: F0 [21:06:47]MH_I2C_Read... [21:06:47]Read from MH i2c: F0 09 00 [21:06:47]MH_I2C_Read... [21:06:47]Read from MH i2c: F0 09 00 EF 8F 00 6D C2 16 67 A0 18 CA 66 0A [21:06:47]GetLastDocTimeStamp 1729544432 [21:06:47]current date 1729544813 [21:06:47]FM_GetShiftState [21:06:47]SAM_PROTO_GetShiftState [21:06:47]wFMCommunicate request_size=4 [21:06:47]MH_SAM_APDU [21:06:47]CAPDU: 80 13 01 00 [21:06:47]Write to MH i2c: E2 08 00 F0 8F 80 13 01 00 00 00 00 00 FC [21:06:47]Write i2c OK [21:06:47]MH_I2C_Read... [21:06:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:06:47]Read from MH i2c: E2 [21:06:47]MH_I2C_Read... [21:06:47]Read from MH i2c: E2 0E 00 [21:06:47]MH_I2C_Read... [21:06:47]Read from MH i2c: E2 0E 00 F0 8F 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 5B [21:06:47]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [21:06:47]wFMCommunicate OK [21:06:47]SAM_PROTO_GetShiftState done [21:06:47]FM_GetShiftState done [21:06:47]opened in 1729469754 [21:06:47]opened+sec_in_day 1729556154 [21:06:47]quantity*price = 298780 [21:06:47]sum+1 = 298781 [21:06:47]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.80 ИТОГО: 2987.00 Внесено: 3000.00 СДАЧА: 13.00 НСП 1% : 26.44 НДС 12% : 317.29 Наличными: 2987.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 389 21.10.2024 21:06 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 187925 ФПД: 93683149905709 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T210653&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187925&fm=93683149905709&tin=02508201610067®Number=0000000000100030&sum=298700 [21:06:49]StoreToDocumentArchive [21:06:49]shift 460 fd 187925 [21:06:49]save to /storage/0460/doc_00187925 [21:06:49]save last doc name /storage/0460/doc_00187925 to /storage/kkm_last_doc_name [21:06:49]save OK [21:06:49]Clear old archive folders... [21:06:49]ProcessDocumentItem done err = 0, tmpTLVsize=248 [21:06:49]tlvbuf is 010A3060 [21:06:49]SAM_PROTO_ClearQueue [21:06:49]wFMCommunicate request_size=4 [21:06:49]MH_SAM_APDU [21:06:49]CAPDU: 80 09 00 00 [21:06:49]Write to MH i2c: E2 08 00 FD 8F 80 09 00 00 00 00 00 00 FE [21:06:49]Write i2c OK [21:06:49]MH_I2C_Read... [21:06:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:06:49]Read from MH i2c: E2 [21:06:49]MH_I2C_Read... [21:06:49]Read from MH i2c: E2 03 00 [21:06:49]MH_I2C_Read... [21:06:49]Read from MH i2c: E2 03 00 FD 8F 00 90 00 00 [21:06:49]RAPDU: 90 00 [21:06:49]wFMCommunicate OK [21:06:49]SAM_PROTO_ClearQueue done [21:06:49]KKMCreateOFDPacket [21:06:49]OFDProtocolAddRootSTLVToBuf [21:06:49]FM_MakeSignedData [21:06:49]FM_MakeSignedData [21:06:49]SAM_PROTO_SignData [21:06:49]wFMCommunicate request_size=4 [21:06:49]MH_SAM_APDU [21:06:49]CAPDU: 80 0D 01 02 [21:06:49]Write to MH i2c: E2 08 00 FE 8F 80 0D 01 02 00 00 00 00 06 [21:06:49]Write i2c OK [21:06:49]MH_I2C_Read... [21:06:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:06:49]Read from MH i2c: E2 [21:06:49]MH_I2C_Read... [21:06:49]Read from MH i2c: E2 03 00 [21:06:49]MH_I2C_Read... [21:06:49]Read from MH i2c: E2 03 00 FE 8F 00 90 00 01 [21:06:49]RAPDU: 90 00 [21:06:49]wFMCommunicate OK [21:06:49]wFMCommunicate request_size=255 [21:06:49]MH_SAM_APDU [21:06:49]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 2A 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 1C 8F 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC 8E 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 7B 00 00 00 00 07 04 06 00 CC 8E 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 85 01 00 00 F4 03 04 00 6D C2 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 15 DE 02 00 35 04 06 00 55 34 4E DF [21:06:49]Write to MH i2c: E2 02 01 FF 8F 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 2A 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 1C 8F 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC 8E 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 7B 00 00 00 00 07 04 06 00 CC 8E 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 85 01 00 00 F4 03 04 00 6D C2 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 15 DE 02 00 35 04 06 00 55 34 4E DF 00 00 CC [21:06:49]Write i2c OK [21:06:49]MH_I2C_Read... [21:06:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:06:49]Read from MH i2c: E2 [21:06:49]MH_I2C_Read... [21:06:49]Read from MH i2c: E2 03 00 [21:06:49]MH_I2C_Read... [21:06:49]Read from MH i2c: E2 03 00 FF 8F 00 90 00 02 [21:06:49]RAPDU: 90 00 [21:06:49]wFMCommunicate OK [21:06:49]wFMCommunicate request_size=7 [21:06:49]MH_SAM_APDU [21:06:49]CAPDU: 80 0D 02 02 02 1F 2D [21:06:49]Write to MH i2c: E2 0A 00 00 90 80 0D 02 02 02 00 1F 2D 00 00 5A [21:06:49]Write i2c OK [21:06:49]MH_I2C_Read... [21:06:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:06:49]Read from MH i2c: E2 [21:06:49]MH_I2C_Read... [21:06:49]Read from MH i2c: E2 03 00 [21:06:49]MH_I2C_Read... [21:06:49]Read from MH i2c: E2 03 00 00 90 00 90 00 04 [21:06:49]RAPDU: 90 00 [21:06:49]wFMCommunicate OK [21:06:49]wFMCommunicate request_size=4 [21:06:49]MH_SAM_APDU [21:06:49]CAPDU: 80 0D 03 02 [21:06:49]Write to MH i2c: E2 08 00 01 90 80 0D 03 02 00 00 00 00 0C [21:06:49]Write i2c OK [21:06:49]MH_I2C_Read... [21:06:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:06:49]Read from MH i2c: E2 [21:06:49]MH_I2C_Read... [21:06:49]Read from MH i2c: E2 0B 00 [21:06:49]MH_I2C_Read... [21:06:49]Read from MH i2c: E2 0B 00 01 90 00 8F CF 0D AB 9D 37 47 B8 90 00 F6 [21:06:49]RAPDU: 8F CF 0D AB 9D 37 47 B8 90 00 [21:06:49]wFMCommunicate OK [21:06:49]SAM_PROTO_SignData done [21:06:49]FM_MakeSignedData done [21:06:49]CreateOFDProtocolMessage [21:06:49]wFMCommunicate request_size=4 [21:06:49]MH_SAM_APDU [21:06:49]CAPDU: 80 11 00 00 [21:06:49]Write to MH i2c: E2 08 00 02 90 80 11 00 00 00 00 00 00 0C [21:06:49]Write i2c OK [21:06:49]MH_I2C_Read... [21:06:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:06:49]Read from MH i2c: E2 [21:06:49]MH_I2C_Read... [21:06:49]Read from MH i2c: E2 17 00 [21:06:49]MH_I2C_Read... [21:06:49]Read from MH i2c: E2 17 00 02 90 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 5A [21:06:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [21:06:49]wFMCommunicate OK [21:06:49]CreateOFDProtocolMessage done [21:06:49]OFDSenderStorePacket 187925 [21:06:49]StoreOFDPacket docnum=187925 [21:06:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 F9 A2 04 01 E3 E6 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 2A 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 1C 8F 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC 8E 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 7B 00 00 00 00 07 04 06 00 CC 8E 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 85 01 00 00 F4 03 04 00 6D C2 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 15 DE 02 00 35 04 06 00 55 34 4E DF 1F 2D 8F CF 0D AB 9D 37 47 B8 [21:06:49]CheckFolder [21:06:49]dirname=/storage/ofd_packets [21:06:49]CheckFolder done [21:06:49]ProducePacketName [21:06:49]name=ofd_packets/00187925 [21:06:49]NVStorageSaveData ofd_packets/00187925 [21:06:49]File name is /storage/ofd_packets/00187925 [21:06:49]Write 298 bytes [21:06:49]NVStorageSaveData done [21:06:49]OFDSenderStorePacket done [21:06:49]KKMCreateOFDPacket done [21:06:49]NVStorageSaveData kkm_last_timestamp [21:06:49]File name is /storage/kkm_last_timestamp [21:06:49]Write 4 bytes [21:06:49]NVStorageSaveData done [21:06:49]ExternCall_PrintAddStr [21:06:49]wPrintStart [21:06:49]Write to MH i2c: 01 00 00 03 90 93 [21:06:49]Write i2c OK [21:06:49]MH_I2C_Read... [21:06:49]Read from MH i2c: 01 [21:06:49]MH_I2C_Read... [21:06:49]Read from MH i2c: 01 07 00 [21:06:49]MH_I2C_Read... [21:06:49]Read from MH i2c: 01 07 00 03 90 00 00 00 00 00 FF 0F A8 [21:06:49]RasterBufferAndPrint [21:06:49]line Счет N : (1)209977 [21:06:49]line ИНН: 02508201610067 [21:06:49]line Контрольно-Кассовый Чек [21:06:49]line ПРОДАЖА [21:06:49]line ТРК (МРК, ГНК) : 51 [21:06:49]line Товар: 2710194210 [21:06:49]line ДТ-К-5 [21:06:49]line 39.210 * 76.20 [21:06:49]line = 2987.80 [21:06:49]line НДС 12% НСП 1% [21:06:49]line > о реализуемом товаре [21:06:49]line ОКРУГЛЕНИЕ: -0.80 [21:06:49]line ИТОГО: 2987.00 [21:06:49]line Внесено: 3000.00 [21:06:49]line СДАЧА: 13.00 [21:06:49]line НСП 1% : 26.44 [21:06:49]line НДС 12% : 317.29 [21:06:49]line Наличными: 2987.00 [21:06:49]line Безнал.: 0.00 [21:06:49]line Место: АЗС № 86 "Партнер Нефть" [21:06:49]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [21:06:49]line СНО: Общий режим [21:06:49]line Чек 389 21.10.2024 21:06 [21:06:49]line Смена: 460 ФФД: 1.0 [21:06:49]line ЗНМ: 0300000155 [21:06:49]line РНМ: 0000000000100030 [21:06:49]line Версия ККМ: 001 [21:06:49]line ФМ: 0000000000965340 [21:06:49]line ФД: 187925 [21:06:49]line ФПД: 93683149905709 [21:06:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T210653&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187925&fm=93683149905709&tin=02508201610067®Number=0000000000100030&sum=298700 [21:06:49]written 0, free lines is 4095 [21:06:49]OFD Sender: Processing packet 187925 [packets to send 1062, broken 1061] [21:06:49]ProducePacketName [21:06:49]name=ofd_packets/00187925 [21:06:49]OFD Sender: To server: pG, [21:06:49]CommunicateWithHost lk.salyk.kg:30040 [21:06:49]ConnectInit lk.salyk.kg [21:06:50]Write to MH i2c: 01 00 00 2E 90 BE [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 2E 90 00 00 00 00 00 5F 0C 30 [21:06:50]RasterBufferAndPrint [21:06:50]line [21:06:50]line [21:06:50]line [21:06:50]line [21:06:50]line [21:06:50]written 0, free lines is 3171 [21:06:50]Connected sock=9 [21:06:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 F9 A2 04 01 E3 E6 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 2A 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 1C 8F 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC 8E 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 7B 00 00 00 00 07 04 06 00 CC 8E 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 85 01 00 00 F4 03 04 00 6D C2 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 15 DE 02 00 35 04 06 00 55 34 4E DF 1F 2D 8F CF 0D AB 9D 37 47 B8 [21:06:50]MH_Cut [21:06:50]Write to MH i2c: D1 01 00 35 90 01 97 [21:06:50]Write i2c OK [21:06:50]MH_I2C_Read... [21:06:50]Read from MH i2c: D1 [21:06:50]MH_I2C_Read... [21:06:50]Read from MH i2c: D1 01 00 [21:06:50]MH_I2C_Read... [21:06:50]Read from MH i2c: D1 01 00 35 90 00 96 [21:06:50]Write to MH i2c: 01 00 00 36 90 C6 [21:06:50]Write i2c OK [21:06:50]MH_I2C_Read... [21:06:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 0B 1B 47 00 13 F5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 15 DE 02 00 F4 03 04 00 5C 6C 16 67 B6 04 01 00 00 36 64 06 81 68 02 2B 8F [21:06:50]CommunicateWithHost err = 0 [21:06:50]CheckOFDResponse [21:06:50]1017 (14) - 77093643461234 [21:06:50]1041 (16) - 0000000000965340 [21:06:50]1040 (4) - 187925 [21:06:50]1012 (4) - 21.10.2024 14:59 [21:06:50]1206 (1) - 0 [21:06:50]OFD Sender: Remove packet 187925 [21:06:50]ProducePacketName [21:06:50]name=ofd_packets/00187925 [21:06:50]NVStorageDeleteData [21:06:50]OFD Sender: No OFD packet to send [21:06:51]*** Cut start [21:06:51]*** Partial cut [21:06:51]*** CUTSNS_PIN = 1 [21:06:51]*** CUTSNS_PIN = 0 [21:06:51]*** Brake cut motor [21:06:51]Read from MH i2c: 01 [21:06:51]MH_I2C_Read... [21:06:51]*** Stop cut motor [21:06:51]*** Cut end [21:06:51]Read from MH i2c: 01 07 00 [21:06:51]MH_I2C_Read... [21:06:51]Read from MH i2c: 01 07 00 36 90 00 00 00 00 00 FF 0F DB [21:06:51]process_action close_receipt done [21:06:51]requested_data is exist [21:06:51]produce_requested_data [21:06:51]requested_item fm.sn is exist - process it [21:06:51]wFMCommunicate request_size=4 [21:06:51]MH_SAM_APDU [21:06:51]CAPDU: 80 11 00 00 [21:06:51]Write to MH i2c: E2 08 00 37 90 80 11 00 00 00 00 00 00 41 [21:06:51]Write i2c OK [21:06:51]MH_I2C_Read... [21:06:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:06:51]Read from MH i2c: E2 [21:06:51]MH_I2C_Read... [21:06:51]Read from MH i2c: E2 17 00 [21:06:52]MH_I2C_Read... [21:06:52]Read from MH i2c: E2 17 00 37 90 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 8F [21:06:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [21:06:52]wFMCommunicate OK [21:06:52]requested_item fd.num is exist - process it [21:06:52]SAM_PROTO_GetFieldsCounters [21:06:52]wFMCommunicate request_size=4 [21:06:52]MH_SAM_APDU [21:06:52]CAPDU: 80 13 00 00 [21:06:52]Write to MH i2c: E2 08 00 38 90 80 13 00 00 00 00 00 00 44 [21:06:52]Write i2c OK [21:06:52]MH_I2C_Read... [21:06:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:06:52]Read from MH i2c: E2 [21:06:52]MH_I2C_Read... [21:06:52]Read from MH i2c: E2 62 00 [21:06:52]MH_I2C_Read... [21:06:52]Read from MH i2c: E2 62 00 38 90 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 15 DE 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 85 01 00 00 5E 04 04 00 85 01 00 00 57 04 04 00 86 01 00 00 19 04 04 00 00 00 00 00 90 00 9F [21:06:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 15 DE 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 85 01 00 00 5E 04 04 00 85 01 00 00 57 04 04 00 86 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:06:52]wFMCommunicate OK [21:06:52]SAM_PROTO_GetFieldsCounters done [21:06:52]requested_item shift.num is exist - process it [21:06:52]requested_item shift.opened is exist - process it [21:06:52]req_shift_opened [21:06:52]FM_GetShiftState [21:06:52]SAM_PROTO_GetShiftState [21:06:52]wFMCommunicate request_size=4 [21:06:52]MH_SAM_APDU [21:06:52]CAPDU: 80 13 01 00 [21:06:52]Write to MH i2c: E2 08 00 39 90 80 13 01 00 00 00 00 00 46 [21:06:52]Write i2c OK [21:06:52]MH_I2C_Read... [21:06:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:06:52]Read from MH i2c: E2 [21:06:52]MH_I2C_Read... [21:06:52]Read from MH i2c: E2 0E 00 [21:06:52]MH_I2C_Read... [21:06:52]Read from MH i2c: E2 0E 00 39 90 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 A5 [21:06:52]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [21:06:52]wFMCommunicate OK [21:06:52]SAM_PROTO_GetShiftState done [21:06:52]FM_GetShiftState done [21:06:52]req_shift_opened done [21:06:52]requested_item shift.open_date is exist - process it [21:06:52]req_shift_open_date [21:06:52]req_shift_open_date done [21:06:52]produce_requested_data done [21:06:52]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187925,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [21:06:52]process_action_free close_receipt [21:06:52]json_value_free [21:06:52]json_value_free done [21:06:52]process_json_proto returns [21:06:52]Send response to host [21:06:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187925,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [21:06:52]free response buf [21:06:52]execute_script done [21:06:52]execute_script returns [21:06:52]free content buf [21:06:52]Sock 10.Close socket [21:06:52]Sock 10.Thread stoped [21:06:55]OFD Sender: No OFD packet to send [21:07:00]OFD Sender: No OFD packet to send [21:07:01]accept exits with 8 [21:07:01]New connection [21:07:01]New thread 3067157860 created [21:07:01]Thread 3067014500 joined [21:07:01]Waiting for new connection... [21:07:01] Sock 8.Parse request [21:07:01]Sock 8.Check first char [21:07:01]Sock 8.First char is OK [21:07:01]request: POST /json_proto HTTP/1.0 [21:07:01]Method: POST [21:07:01]URL: /json_proto [21:07:01]Method is POST - this is cgi request [21:07:01]url: /json_proto [21:07:01]query_string will be loaded in cgi processing [21:07:01]execute_cgi json_proto POST (null) [21:07:01]execute_cgi path=json_proto method=POST [21:07:01]POST find Content-Length [21:07:01]Host: 172.17.42.131:8080 [21:07:01]Content-Length: 800 [21:07:01]Content-Type: application/json [21:07:01] [21:07:01]POST finish read [21:07:01]Found Content-Length = 800 [21:07:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209978", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "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\u000A4195307", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:07:01]execute_script... [21:07: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)209978", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "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\u000A4195307", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:07:01]POST & json_proto [21:07:01]process_json_proto [21:07:01]json parsed OK: [21:07:01]protocol is kg_v1.0 [21:07:01]action value=close_receipt [21:07:01]process_action close_receipt [21:07:01]cmd_close_receipt [21:07:01]MH_GetDate [21:07:01]Write to MH i2c: F0 00 00 3A 90 B9 [21:07:01]Write i2c OK [21:07:01]MH_I2C_Read... [21:07:01]Read from MH i2c: F0 [21:07:01]MH_I2C_Read... [21:07:01]Read from MH i2c: F0 09 00 [21:07:01]MH_I2C_Read... [21:07:01]Read from MH i2c: F0 09 00 3A 90 00 7B C2 16 67 A0 18 CA 66 64 [21:07:01]GetLastDocTimeStamp 1729544813 [21:07:01]current date 1729544827 [21:07:01]FM_GetShiftState [21:07:01]SAM_PROTO_GetShiftState [21:07:01]wFMCommunicate request_size=4 [21:07:01]MH_SAM_APDU [21:07:01]CAPDU: 80 13 01 00 [21:07:01]Write to MH i2c: E2 08 00 3B 90 80 13 01 00 00 00 00 00 48 [21:07:01]Write i2c OK [21:07:01]MH_I2C_Read... [21:07:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:07:01]Read from MH i2c: E2 [21:07:01]MH_I2C_Read... [21:07:01]Read from MH i2c: E2 0E 00 [21:07:01]MH_I2C_Read... [21:07:01]Read from MH i2c: E2 0E 00 3B 90 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 A7 [21:07:01]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [21:07:01]wFMCommunicate OK [21:07:01]SAM_PROTO_GetShiftState done [21:07:01]FM_GetShiftState done [21:07:01]opened in 1729469754 [21:07:01]opened+sec_in_day 1729556154 [21:07:01]quantity*price = 0 [21:07:01]sum+1 = 1 [21:07:01]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 390 21.10.2024 21:07 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Талоны: Топливные Талоны 4195307 ФМ: 0000000000965340 ФД: 187926 ФПД: 236158322941724 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T210707&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187926&fm=236158322941724&tin=02508201610067®Number=0000000000100030&sum=0 [21:07:02]StoreToDocumentArchive [21:07:02]shift 460 fd 187926 [21:07:02]save to /storage/0460/doc_00187926 [21:07:02]save last doc name /storage/0460/doc_00187926 to /storage/kkm_last_doc_name [21:07:02]save OK [21:07:02]Clear old archive folders... [21:07:02]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:07:02]tlvbuf is 01355E80 [21:07:02]SAM_PROTO_ClearQueue [21:07:02]wFMCommunicate request_size=4 [21:07:02]MH_SAM_APDU [21:07:02]CAPDU: 80 09 00 00 [21:07:02]Write to MH i2c: E2 08 00 48 90 80 09 00 00 00 00 00 00 4A [21:07:02]Write i2c OK [21:07:02]MH_I2C_Read... [21:07:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:07:02]Read from MH i2c: E2 [21:07:02]MH_I2C_Read... [21:07:02]Read from MH i2c: E2 03 00 [21:07:02]MH_I2C_Read... [21:07:02]Read from MH i2c: E2 03 00 48 90 00 90 00 4C [21:07:02]RAPDU: 90 00 [21:07:02]wFMCommunicate OK [21:07:02]SAM_PROTO_ClearQueue done [21:07:02]KKMCreateOFDPacket [21:07:02]OFDProtocolAddRootSTLVToBuf [21:07:02]FM_MakeSignedData [21:07:02]FM_MakeSignedData [21:07:02]SAM_PROTO_SignData [21:07:02]wFMCommunicate request_size=4 [21:07:02]MH_SAM_APDU [21:07:02]CAPDU: 80 0D 01 02 [21:07:02]Write to MH i2c: E2 08 00 49 90 80 0D 01 02 00 00 00 00 52 [21:07:02]Write i2c OK [21:07:02]MH_I2C_Read... [21:07:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:07:02]Read from MH i2c: E2 [21:07:02]MH_I2C_Read... [21:07:02]Read from MH i2c: E2 03 00 [21:07:02]MH_I2C_Read... [21:07:02]Read from MH i2c: E2 03 00 49 90 00 90 00 4D [21:07:02]RAPDU: 90 00 [21:07:02]wFMCommunicate OK [21:07:02]wFMCommunicate request_size=255 [21:07:02]MH_SAM_APDU [21:07: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 33 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 86 01 00 00 F4 03 04 00 7B C2 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 16 DE 02 00 35 04 06 00 D6 [21:07:02]Write to MH i2c: E2 02 01 4A 90 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 86 01 00 00 F4 03 04 00 7B C2 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 16 DE 02 00 35 04 06 00 D6 00 00 51 [21:07:02]Write i2c OK [21:07:02]MH_I2C_Read... [21:07:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:07:02]Read from MH i2c: E2 [21:07:02]MH_I2C_Read... [21:07:02]Read from MH i2c: E2 03 00 [21:07:02]MH_I2C_Read... [21:07:02]Read from MH i2c: E2 03 00 4A 90 00 90 00 4E [21:07:02]RAPDU: 90 00 [21:07:02]wFMCommunicate OK [21:07:02]wFMCommunicate request_size=10 [21:07:02]MH_SAM_APDU [21:07:02]CAPDU: 80 0D 02 02 05 C8 E4 F3 1F 1C [21:07:02]Write to MH i2c: E2 0D 00 4B 90 80 0D 02 02 05 00 C8 E4 F3 1F 1C 00 00 39 [21:07:02]Write i2c OK [21:07:02]MH_I2C_Read... [21:07:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:07:02]Read from MH i2c: E2 [21:07:02]MH_I2C_Read... [21:07:02]Read from MH i2c: E2 03 00 [21:07:02]MH_I2C_Read... [21:07:02]Read from MH i2c: E2 03 00 4B 90 00 90 00 4F [21:07:02]RAPDU: 90 00 [21:07:02]wFMCommunicate OK [21:07:02]wFMCommunicate request_size=4 [21:07:02]MH_SAM_APDU [21:07:02]CAPDU: 80 0D 03 02 [21:07:02]Write to MH i2c: E2 08 00 4C 90 80 0D 03 02 00 00 00 00 57 [21:07:02]Write i2c OK [21:07:02]MH_I2C_Read... [21:07:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:07:02]Read from MH i2c: E2 [21:07:02]MH_I2C_Read... [21:07:02]Read from MH i2c: E2 0B 00 [21:07:02]MH_I2C_Read... [21:07:02]Read from MH i2c: E2 0B 00 4C 90 00 1F 31 C0 8F EA C9 59 88 90 00 8B [21:07:02]RAPDU: 1F 31 C0 8F EA C9 59 88 90 00 [21:07:02]wFMCommunicate OK [21:07:02]SAM_PROTO_SignData done [21:07:02]FM_MakeSignedData done [21:07:02]CreateOFDProtocolMessage [21:07:02]wFMCommunicate request_size=4 [21:07:02]MH_SAM_APDU [21:07:02]CAPDU: 80 11 00 00 [21:07:02]Write to MH i2c: E2 08 00 4D 90 80 11 00 00 00 00 00 00 57 [21:07:02]Write i2c OK [21:07:02]MH_I2C_Read... [21:07:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:07:03]Read from MH i2c: E2 [21:07:03]MH_I2C_Read... [21:07:03]Read from MH i2c: E2 17 00 [21:07:03]MH_I2C_Read... [21:07:03]Read from MH i2c: E2 17 00 4D 90 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 A5 [21:07:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [21:07:03]wFMCommunicate OK [21:07:03]CreateOFDProtocolMessage done [21:07:03]OFDSenderStorePacket 187926 [21:07:03]StoreOFDPacket docnum=187926 [21:07:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 D7 26 07 01 6A 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 33 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 86 01 00 00 F4 03 04 00 7B C2 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 16 DE 02 00 35 04 06 00 D6 C8 E4 F3 1F 1C 1F 31 C0 8F EA C9 59 88 [21:07:03]CheckFolder [21:07:03]dirname=/storage/ofd_packets [21:07:03]CheckFolder done [21:07:03]ProducePacketName [21:07:03]name=ofd_packets/00187926 [21:07:03]NVStorageSaveData ofd_packets/00187926 [21:07:03]File name is /storage/ofd_packets/00187926 [21:07:03]Write 301 bytes [21:07:03]NVStorageSaveData done [21:07:03]OFDSenderStorePacket done [21:07:03]KKMCreateOFDPacket done [21:07:03]NVStorageSaveData kkm_last_timestamp [21:07:03]File name is /storage/kkm_last_timestamp [21:07:03]Write 4 bytes [21:07:03]NVStorageSaveData done [21:07:03]ExternCall_PrintAddStr [21:07:03]wPrintStart [21:07:03]Write to MH i2c: 01 00 00 4E 90 DE [21:07:03]Write i2c OK [21:07:03]MH_I2C_Read... [21:07:03]Read from MH i2c: 01 [21:07:03]MH_I2C_Read... [21:07:03]Read from MH i2c: 01 07 00 [21:07:03]MH_I2C_Read... [21:07:03]Read from MH i2c: 01 07 00 4E 90 00 00 00 00 00 FF 0F F3 [21:07:03]RasterBufferAndPrint [21:07:03]line Счет N : (1)209978 [21:07:03]line ИНН: 02508201610067 [21:07:03]line Контрольно-Кассовый Чек [21:07:03]line ПРОДАЖА [21:07:03]line ТРК (МРК, ГНК) : 42 [21:07:03]line Товар: 2710124130 [21:07:03]line Аи-92-К-3 [21:07:03]line 10.000 * 0.00 [21:07:03]line = 0.00 [21:07:03]line НДС 12% НСП 1% [21:07:03]line > о реализуемом товаре [21:07:03]line ИТОГО: 0.00 [21:07:03]line НСП 1% : 0.00 [21:07:03]line НДС 12% : 0.00 [21:07:03]line Наличными: 0.00 [21:07:03]line Безнал.: 0.00 [21:07:03]line Место: АЗС № 86 "Партнер Нефть" [21:07:03]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [21:07:03]line СНО: Общий режим [21:07:03]line Чек 390 21.10.2024 21:07 [21:07:03]line Смена: 460 ФФД: 1.0 [21:07:03]line ЗНМ: 0300000155 [21:07:03]line РНМ: 0000000000100030 [21:07:03]line Версия ККМ: 001 [21:07:03]line Талоны: Топливные Талоны [21:07:03]line 4195307 [21:07:03]line ФМ: 0000000000965340 [21:07:03]line ФД: 187926 [21:07:03]line ФПД: 236158322941724 [21:07:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T210707&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187926&fm=236158322941724&tin=02508201610067®Number=0000000000100030&sum=0 [21:07:03]written 0, free lines is 4095 [21:07:03]OFD Sender: Processing packet 187926 [packets to send 1062, broken 1061] [21:07:03]ProducePacketName [21:07:03]name=ofd_packets/00187926 [21:07:03]OFD Sender: To server: pG, [21:07:03]CommunicateWithHost lk.salyk.kg:30040 [21:07:03]ConnectInit lk.salyk.kg [21:07:03]Connected sock=10 [21:07:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 D7 26 07 01 6A 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 33 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 86 01 00 00 F4 03 04 00 7B C2 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 16 DE 02 00 35 04 06 00 D6 C8 E4 F3 1F 1C 1F 31 C0 8F EA C9 59 88 [21:07:03]Write to MH i2c: 01 00 00 78 90 08 [21:07:03]Write i2c OK [21:07:03]MH_I2C_Read... [21:07:03]Read from MH i2c: 01 [21:07:03]MH_I2C_Read... [21:07:03]Read from MH i2c: 01 07 00 [21:07:03]MH_I2C_Read... [21:07:03]Read from MH i2c: 01 07 00 78 90 00 00 00 00 00 77 0C 92 [21:07:03]RasterBufferAndPrint [21:07:03]line [21:07:03]line [21:07:03]line [21:07:03]line [21:07:03]line [21:07:03]written 0, free lines is 3198 [21:07:03]MH_Cut [21:07:03]Write to MH i2c: D1 01 00 7F 90 01 E1 [21:07:03]Write i2c OK [21:07:03]MH_I2C_Read... [21:07:03]Read from MH i2c: D1 [21:07:03]MH_I2C_Read... [21:07:03]Read from MH i2c: D1 01 00 [21:07:03]MH_I2C_Read... [21:07:03]Read from MH i2c: D1 01 00 7F 90 00 E0 [21:07:03]Write to MH i2c: 01 00 00 80 90 10 [21:07:03]Write i2c OK [21:07:03]MH_I2C_Read... [21:07:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 8E 64 47 00 C5 72 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 16 DE 02 00 F4 03 04 00 6A 6C 16 67 B6 04 01 00 00 19 0C 6D 80 55 0F F9 4B [21:07:03]CommunicateWithHost err = 0 [21:07:03]CheckOFDResponse [21:07:03]1017 (14) - 77093643461234 [21:07:03]1041 (16) - 0000000000965340 [21:07:03]1040 (4) - 187926 [21:07:03]1012 (4) - 21.10.2024 14:59 [21:07:03]1206 (1) - 0 [21:07:03]OFD Sender: Remove packet 187926 [21:07:03]ProducePacketName [21:07:03]name=ofd_packets/00187926 [21:07:03]NVStorageDeleteData [21:07:04]OFD Sender: No OFD packet to send [21:07:04]*** Cut start [21:07:04]*** Partial cut [21:07:04]*** CUTSNS_PIN = 1 [21:07:04]*** CUTSNS_PIN = 0 [21:07:05]*** Brake cut motor [21:07:05]Read from MH i2c: 01 [21:07:05]MH_I2C_Read... [21:07:05]*** Stop cut motor [21:07:05]*** Cut end [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 80 90 00 00 00 00 00 FF 0F 25 [21:07:05]process_action close_receipt done [21:07:05]requested_data is exist [21:07:05]produce_requested_data [21:07:05]requested_item fm.sn is exist - process it [21:07:05]wFMCommunicate request_size=4 [21:07:05]MH_SAM_APDU [21:07:05]CAPDU: 80 11 00 00 [21:07:05]Write to MH i2c: E2 08 00 81 90 80 11 00 00 00 00 00 00 8B [21:07:05]Write i2c OK [21:07:05]MH_I2C_Read... [21:07:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:07:05]Read from MH i2c: E2 [21:07:05]MH_I2C_Read... [21:07:05]Read from MH i2c: E2 17 00 [21:07:05]MH_I2C_Read... [21:07:05]Read from MH i2c: E2 17 00 81 90 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 D9 [21:07:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [21:07:05]wFMCommunicate OK [21:07:05]requested_item fd.num is exist - process it [21:07:05]SAM_PROTO_GetFieldsCounters [21:07:05]wFMCommunicate request_size=4 [21:07:05]MH_SAM_APDU [21:07:05]CAPDU: 80 13 00 00 [21:07:05]Write to MH i2c: E2 08 00 82 90 80 13 00 00 00 00 00 00 8E [21:07:05]Write i2c OK [21:07:05]MH_I2C_Read... [21:07:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:07:05]Read from MH i2c: E2 [21:07:05]MH_I2C_Read... [21:07:05]Read from MH i2c: E2 62 00 [21:07:05]MH_I2C_Read... [21:07:05]Read from MH i2c: E2 62 00 82 90 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 16 DE 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 86 01 00 00 5E 04 04 00 86 01 00 00 57 04 04 00 87 01 00 00 19 04 04 00 00 00 00 00 90 00 ED [21:07:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 16 DE 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 86 01 00 00 5E 04 04 00 86 01 00 00 57 04 04 00 87 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:07:05]wFMCommunicate OK [21:07:05]SAM_PROTO_GetFieldsCounters done [21:07:05]requested_item shift.num is exist - process it [21:07:05]requested_item shift.opened is exist - process it [21:07:05]req_shift_opened [21:07:05]FM_GetShiftState [21:07:05]SAM_PROTO_GetShiftState [21:07:05]wFMCommunicate request_size=4 [21:07:05]MH_SAM_APDU [21:07:05]CAPDU: 80 13 01 00 [21:07:05]Write to MH i2c: E2 08 00 83 90 80 13 01 00 00 00 00 00 90 [21:07:05]Write i2c OK [21:07:05]MH_I2C_Read... [21:07:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:07:05]Read from MH i2c: E2 [21:07:05]MH_I2C_Read... [21:07:05]Read from MH i2c: E2 0E 00 [21:07:05]MH_I2C_Read... [21:07:05]Read from MH i2c: E2 0E 00 83 90 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 EF [21:07:05]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [21:07:05]wFMCommunicate OK [21:07:05]SAM_PROTO_GetShiftState done [21:07:05]FM_GetShiftState done [21:07:05]req_shift_opened done [21:07:05]requested_item shift.open_date is exist - process it [21:07:05]req_shift_open_date [21:07:05]req_shift_open_date done [21:07:05]produce_requested_data done [21:07:05]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187926,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [21:07:05]process_action_free close_receipt [21:07:05]json_value_free [21:07:05]json_value_free done [21:07:05]process_json_proto returns [21:07:05]Send response to host [21:07:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187926,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [21:07:05]free response buf [21:07:05]execute_script done [21:07:05]execute_script returns [21:07:05]free content buf [21:07:05]Sock 8.Close socket [21:07:05]Sock 8.Thread stoped [21:07:09]OFD Sender: No OFD packet to send [21:07:14]OFD Sender: No OFD packet to send [21:07:19]OFD Sender: No OFD packet to send [21:07:24]OFD Sender: No OFD packet to send [21:07:29]OFD Sender: No OFD packet to send [21:07:34]OFD Sender: No OFD packet to send [21:07:39]OFD Sender: No OFD packet to send [21:07:44]OFD Sender: No OFD packet to send [21:07:49]OFD Sender: No OFD packet to send [21:07:54]OFD Sender: No OFD packet to send [21:07:59]OFD Sender: No OFD packet to send [21:08:04]OFD Sender: No OFD packet to send [21:08:09]OFD Sender: No OFD packet to send [21:08:14]OFD Sender: No OFD packet to send [21:08:19]OFD Sender: No OFD packet to send [21:08:24]OFD Sender: No OFD packet to send [21:08:29]OFD Sender: No OFD packet to send [21:08:34]OFD Sender: No OFD packet to send [21:08:39]OFD Sender: No OFD packet to send [21:08:44]OFD Sender: No OFD packet to send [21:08:49]OFD Sender: No OFD packet to send [21:08:54]OFD Sender: No OFD packet to send [21:08:59]OFD Sender: No OFD packet to send [21:09:04]OFD Sender: No OFD packet to send [21:09:09]OFD Sender: No OFD packet to send [21:09:14]OFD Sender: No OFD packet to send [21:09:19]OFD Sender: No OFD packet to send [21:09:24]OFD Sender: No OFD packet to send [21:09:29]OFD Sender: No OFD packet to send [21:09:34]OFD Sender: No OFD packet to send [21:09:39]OFD Sender: No OFD packet to send [21:09:45]OFD Sender: No OFD packet to send [21:09:50]OFD Sender: No OFD packet to send [21:09:55]OFD Sender: No OFD packet to send [21:10:00]OFD Sender: No OFD packet to send [21:10:05]OFD Sender: No OFD packet to send [21:10:10]OFD Sender: No OFD packet to send [21:10:15]OFD Sender: No OFD packet to send [21:10:20]OFD Sender: No OFD packet to send [21:10:25]OFD Sender: No OFD packet to send [21:10:30]OFD Sender: No OFD packet to send [21:10:35]OFD Sender: No OFD packet to send [21:10:40]OFD Sender: No OFD packet to send [21:10:45]OFD Sender: No OFD packet to send [21:10:50]OFD Sender: No OFD packet to send [21:10:55]OFD Sender: No OFD packet to send [21:11:00]OFD Sender: No OFD packet to send [21:11:05]OFD Sender: No OFD packet to send [21:11:10]OFD Sender: No OFD packet to send [21:11:15]OFD Sender: No OFD packet to send [21:11:20]OFD Sender: No OFD packet to send [21:11:25]OFD Sender: No OFD packet to send [21:11:30]OFD Sender: No OFD packet to send [21:11:35]OFD Sender: No OFD packet to send [21:11:40]OFD Sender: No OFD packet to send [21:11:45]OFD Sender: No OFD packet to send [21:11:50]OFD Sender: No OFD packet to send [21:11:55]OFD Sender: No OFD packet to send [21:12:00]OFD Sender: No OFD packet to send [21:12:05]OFD Sender: No OFD packet to send [21:12:10]OFD Sender: No OFD packet to send [21:12:15]OFD Sender: No OFD packet to send [21:12:20]OFD Sender: No OFD packet to send [21:12:25]OFD Sender: No OFD packet to send [21:12:30]OFD Sender: No OFD packet to send [21:12:35]OFD Sender: No OFD packet to send [21:12:40]OFD Sender: No OFD packet to send [21:12:45]OFD Sender: No OFD packet to send [21:12:50]OFD Sender: No OFD packet to send [21:12:55]OFD Sender: No OFD packet to send [21:13:00]OFD Sender: No OFD packet to send [21:13:05]OFD Sender: No OFD packet to send [21:13:10]OFD Sender: No OFD packet to send [21:13:15]OFD Sender: No OFD packet to send [21:13:20]OFD Sender: No OFD packet to send [21:13:25]OFD Sender: No OFD packet to send [21:13:30]OFD Sender: No OFD packet to send [21:13:36]OFD Sender: No OFD packet to send [21:13:41]OFD Sender: No OFD packet to send [21:13:42]accept exits with 9 [21:13:42]New connection [21:13:42]New thread 3067014500 created [21:13:42]Thread 3067157860 joined [21:13:42]Waiting for new connection... [21:13:42] Sock 9.Parse request [21:13:42]Sock 9.Check first char [21:13:42]Sock 9.First char is OK [21:13:42]request: POST /json_proto HTTP/1.0 [21:13:42]Method: POST [21:13:42]URL: /json_proto [21:13:42]Method is POST - this is cgi request [21:13:42]url: /json_proto [21:13:42]query_string will be loaded in cgi processing [21:13:42]execute_cgi json_proto POST (null) [21:13:42]execute_cgi path=json_proto method=POST [21:13:42]POST find Content-Length [21:13:42]Host: 172.17.42.131:8080 [21:13:42]Content-Length: 677 [21:13:42]Content-Type: application/json [21:13:42] [21:13:42]POST finish read [21:13:42]Found Content-Length = 677 [21:13:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209979", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "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" ] } } [21:13:42]execute_script... [21:13: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)209979", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "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" ] } } [21:13:42]POST & json_proto [21:13:42]process_json_proto [21:13:42]json parsed OK: [21:13:42]protocol is kg_v1.0 [21:13:42]action value=close_receipt [21:13:42]process_action close_receipt [21:13:42]cmd_close_receipt [21:13:42]MH_GetDate [21:13:42]Write to MH i2c: F0 00 00 84 90 03 [21:13:42]Write i2c OK [21:13:42]MH_I2C_Read... [21:13:42]Read from MH i2c: F0 [21:13:42]MH_I2C_Read... [21:13:42]Read from MH i2c: F0 09 00 [21:13:42]MH_I2C_Read... [21:13:42]Read from MH i2c: F0 09 00 84 90 00 0C C4 16 67 A0 18 CA 66 41 [21:13:42]GetLastDocTimeStamp 1729544827 [21:13:42]current date 1729545228 [21:13:42]FM_GetShiftState [21:13:42]SAM_PROTO_GetShiftState [21:13:42]wFMCommunicate request_size=4 [21:13:42]MH_SAM_APDU [21:13:42]CAPDU: 80 13 01 00 [21:13:42]Write to MH i2c: E2 08 00 85 90 80 13 01 00 00 00 00 00 92 [21:13:42]Write i2c OK [21:13:42]MH_I2C_Read... [21:13:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:13:42]Read from MH i2c: E2 [21:13:42]MH_I2C_Read... [21:13:42]Read from MH i2c: E2 0E 00 [21:13:42]MH_I2C_Read... [21:13:42]Read from MH i2c: E2 0E 00 85 90 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 F1 [21:13:42]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [21:13:42]wFMCommunicate OK [21:13:42]SAM_PROTO_GetShiftState done [21:13:42]FM_GetShiftState done [21:13:42]opened in 1729469754 [21:13:42]opened+sec_in_day 1729556154 [21:13:42]quantity*price = 40006 [21:13:42]sum+1 = 40007 [21:13:42]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 391 21.10.2024 21:13 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 187927 ФПД: 174086740616888 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T211348&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187927&fm=174086740616888&tin=02508201610067®Number=0000000000100030&sum=40000 [21:13:43]StoreToDocumentArchive [21:13:43]shift 460 fd 187927 [21:13:43]save to /storage/0460/doc_00187927 [21:13:43]save last doc name /storage/0460/doc_00187927 to /storage/kkm_last_doc_name [21:13:43]save OK [21:13:43]Clear old archive folders... [21:13:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:13:43]tlvbuf is 012934F0 [21:13:43]SAM_PROTO_ClearQueue [21:13:43]wFMCommunicate request_size=4 [21:13:43]MH_SAM_APDU [21:13:43]CAPDU: 80 09 00 00 [21:13:43]Write to MH i2c: E2 08 00 92 90 80 09 00 00 00 00 00 00 94 [21:13:43]Write i2c OK [21:13:43]MH_I2C_Read... [21:13:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:13:43]Read from MH i2c: E2 [21:13:43]MH_I2C_Read... [21:13:43]Read from MH i2c: E2 03 00 [21:13:43]MH_I2C_Read... [21:13:43]Read from MH i2c: E2 03 00 92 90 00 90 00 96 [21:13:43]RAPDU: 90 00 [21:13:43]wFMCommunicate OK [21:13:43]SAM_PROTO_ClearQueue done [21:13:43]KKMCreateOFDPacket [21:13:43]OFDProtocolAddRootSTLVToBuf [21:13:43]FM_MakeSignedData [21:13:43]FM_MakeSignedData [21:13:43]SAM_PROTO_SignData [21:13:43]wFMCommunicate request_size=4 [21:13:43]MH_SAM_APDU [21:13:43]CAPDU: 80 0D 01 02 [21:13:43]Write to MH i2c: E2 08 00 93 90 80 0D 01 02 00 00 00 00 9C [21:13:43]Write i2c OK [21:13:43]MH_I2C_Read... [21:13:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:13:44]Read from MH i2c: E2 [21:13:44]MH_I2C_Read... [21:13:44]Read from MH i2c: E2 03 00 [21:13:44]MH_I2C_Read... [21:13:44]Read from MH i2c: E2 03 00 93 90 00 90 00 97 [21:13:44]RAPDU: 90 00 [21:13:44]wFMCommunicate OK [21:13:44]wFMCommunicate request_size=255 [21:13:44]MH_SAM_APDU [21:13: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 33 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 01 00 00 F4 03 04 00 0C C4 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 17 DE 02 00 35 04 06 00 9E [21:13:44]Write to MH i2c: E2 02 01 94 90 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 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 01 00 00 F4 03 04 00 0C C4 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 17 DE 02 00 35 04 06 00 9E 00 00 15 [21:13:44]Write i2c OK [21:13:44]MH_I2C_Read... [21:13:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:13:44]Read from MH i2c: E2 [21:13:44]MH_I2C_Read... [21:13:44]Read from MH i2c: E2 03 00 [21:13:44]MH_I2C_Read... [21:13:44]Read from MH i2c: E2 03 00 94 90 00 90 00 98 [21:13:44]RAPDU: 90 00 [21:13:44]wFMCommunicate OK [21:13:44]wFMCommunicate request_size=10 [21:13:44]MH_SAM_APDU [21:13:44]CAPDU: 80 0D 02 02 05 54 BA 55 A6 B8 [21:13:44]Write to MH i2c: E2 0D 00 95 90 80 0D 02 02 05 00 54 BA 55 A6 B8 00 00 6A [21:13:44]Write i2c OK [21:13:44]MH_I2C_Read... [21:13:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:13:44]Read from MH i2c: E2 [21:13:44]MH_I2C_Read... [21:13:44]Read from MH i2c: E2 03 00 [21:13:44]MH_I2C_Read... [21:13:44]Read from MH i2c: E2 03 00 95 90 00 90 00 99 [21:13:44]RAPDU: 90 00 [21:13:44]wFMCommunicate OK [21:13:44]wFMCommunicate request_size=4 [21:13:44]MH_SAM_APDU [21:13:44]CAPDU: 80 0D 03 02 [21:13:44]Write to MH i2c: E2 08 00 96 90 80 0D 03 02 00 00 00 00 A1 [21:13:44]Write i2c OK [21:13:44]MH_I2C_Read... [21:13:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:13:44]Read from MH i2c: E2 [21:13:44]MH_I2C_Read... [21:13:44]Read from MH i2c: E2 0B 00 [21:13:44]MH_I2C_Read... [21:13:44]Read from MH i2c: E2 0B 00 96 90 00 B6 C6 A7 78 34 8C 87 4B 90 00 CF [21:13:44]RAPDU: B6 C6 A7 78 34 8C 87 4B 90 00 [21:13:44]wFMCommunicate OK [21:13:44]SAM_PROTO_SignData done [21:13:44]FM_MakeSignedData done [21:13:44]CreateOFDProtocolMessage [21:13:44]wFMCommunicate request_size=4 [21:13:44]MH_SAM_APDU [21:13:44]CAPDU: 80 11 00 00 [21:13:44]Write to MH i2c: E2 08 00 97 90 80 11 00 00 00 00 00 00 A1 [21:13:44]Write i2c OK [21:13:44]MH_I2C_Read... [21:13:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:13:44]Read from MH i2c: E2 [21:13:44]MH_I2C_Read... [21:13:44]Read from MH i2c: E2 17 00 [21:13:44]MH_I2C_Read... [21:13:44]Read from MH i2c: E2 17 00 97 90 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 EF [21:13:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [21:13:44]wFMCommunicate OK [21:13:44]CreateOFDProtocolMessage done [21:13:44]OFDSenderStorePacket 187927 [21:13:44]StoreOFDPacket docnum=187927 [21:13:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 FA 76 07 01 E7 31 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 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 01 00 00 F4 03 04 00 0C C4 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 17 DE 02 00 35 04 06 00 9E 54 BA 55 A6 B8 B6 C6 A7 78 34 8C 87 4B [21:13:44]CheckFolder [21:13:44]dirname=/storage/ofd_packets [21:13:44]CheckFolder done [21:13:44]ProducePacketName [21:13:44]name=ofd_packets/00187927 [21:13:44]NVStorageSaveData ofd_packets/00187927 [21:13:44]File name is /storage/ofd_packets/00187927 [21:13:44]Write 301 bytes [21:13:44]NVStorageSaveData done [21:13:44]OFDSenderStorePacket done [21:13:44]KKMCreateOFDPacket done [21:13:44]NVStorageSaveData kkm_last_timestamp [21:13:44]File name is /storage/kkm_last_timestamp [21:13:44]Write 4 bytes [21:13:44]NVStorageSaveData done [21:13:44]ExternCall_PrintAddStr [21:13:44]wPrintStart [21:13:44]Write to MH i2c: 01 00 00 98 90 28 [21:13:44]Write i2c OK [21:13:44]MH_I2C_Read... [21:13:44]Read from MH i2c: 01 [21:13:44]MH_I2C_Read... [21:13:44]Read from MH i2c: 01 07 00 [21:13:44]MH_I2C_Read... [21:13:44]Read from MH i2c: 01 07 00 98 90 00 00 00 00 00 FF 0F 3D [21:13:44]RasterBufferAndPrint [21:13:44]line Счет N : (1)209979 [21:13:44]line ИНН: 02508201610067 [21:13:44]line Контрольно-Кассовый Чек [21:13:44]line ПРОДАЖА [21:13:44]line ТРК (МРК, ГНК) : 32 [21:13:44]line Товар: 2710124130 [21:13:44]line Аи-92-К-3 [21:13:44]line 5.980 * 66.90 [21:13:44]line = 400.06 [21:13:44]line НДС 12% НСП 1% [21:13:44]line > о реализуемом товаре [21:13:44]line ОКРУГЛЕНИЕ: -0.06 [21:13:44]line ИТОГО: 400.00 [21:13:44]line Внесено: 400.00 [21:13:44]line СДАЧА: 0.00 [21:13:44]line НСП 1% : 3.54 [21:13:44]line НДС 12% : 42.48 [21:13:44]line Наличными: 400.00 [21:13:44]line Безнал.: 0.00 [21:13:44]line Место: АЗС № 86 "Партнер Нефть" [21:13:44]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [21:13:44]line СНО: Общий режим [21:13:44]line Чек 391 21.10.2024 21:13 [21:13:44]line Смена: 460 ФФД: 1.0 [21:13:44]line ЗНМ: 0300000155 [21:13:44]line РНМ: 0000000000100030 [21:13:44]line Версия ККМ: 001 [21:13:44]line ФМ: 0000000000965340 [21:13:44]line ФД: 187927 [21:13:44]line ФПД: 174086740616888 [21:13:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T211348&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187927&fm=174086740616888&tin=02508201610067®Number=0000000000100030&sum=40000 [21:13:44]written 0, free lines is 4095 [21:13:44]OFD Sender: Processing packet 187927 [packets to send 1062, broken 1061] [21:13:44]ProducePacketName [21:13:44]name=ofd_packets/00187927 [21:13:44]OFD Sender: To server: pG, [21:13:44]CommunicateWithHost lk.salyk.kg:30040 [21:13:44]ConnectInit lk.salyk.kg [21:13:44]Write to MH i2c: 01 00 00 C3 90 53 [21:13:44]Write i2c OK [21:13:44]MH_I2C_Read... [21:13:44]Read from MH i2c: 01 [21:13:44]MH_I2C_Read... [21:13:44]Read from MH i2c: 01 07 00 [21:13:44]MH_I2C_Read... [21:13:44]Read from MH i2c: 01 07 00 C3 90 00 00 00 00 00 5A 0C C0 [21:13:44]RasterBufferAndPrint [21:13:44]line [21:13:44]line [21:13:44]line [21:13:44]line [21:13:44]line [21:13:44]written 0, free lines is 3167 [21:13:44]MH_Cut [21:13:44]Write to MH i2c: D1 01 00 CA 90 01 2C [21:13:44]Write i2c OK [21:13:44]MH_I2C_Read... [21:13:44]Read from MH i2c: D1 [21:13:44]MH_I2C_Read... [21:13:44]Read from MH i2c: D1 01 00 [21:13:44]MH_I2C_Read... [21:13:44]Read from MH i2c: D1 01 00 CA 90 00 2B [21:13:44]Write to MH i2c: 01 00 00 CB 90 5B [21:13:44]Write i2c OK [21:13:44]MH_I2C_Read... [21:13:45]Connected sock=8 [21:13:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 FA 76 07 01 E7 31 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 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 01 00 00 F4 03 04 00 0C C4 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 17 DE 02 00 35 04 06 00 9E 54 BA 55 A6 B8 B6 C6 A7 78 34 8C 87 4B [21:13:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 57 CF 47 00 FC 0D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 17 DE 02 00 F4 03 04 00 FB 6D 16 67 B6 04 01 00 00 AB CD 0E 87 58 71 7E 0E [21:13:45]CommunicateWithHost err = 0 [21:13:45]CheckOFDResponse [21:13:45]1017 (14) - 77093643461234 [21:13:45]1041 (16) - 0000000000965340 [21:13:45]1040 (4) - 187927 [21:13:45]1012 (4) - 21.10.2024 15:06 [21:13:45]1206 (1) - 0 [21:13:45]OFD Sender: Remove packet 187927 [21:13:45]ProducePacketName [21:13:45]name=ofd_packets/00187927 [21:13:45]NVStorageDeleteData [21:13:45]OFD Sender: No OFD packet to send [21:13:46]*** Cut start [21:13:46]*** Partial cut [21:13:46]*** CUTSNS_PIN = 1 [21:13:46]*** CUTSNS_PIN = 0 [21:13:46]*** Brake cut motor [21:13:46]Read from MH i2c: 01 [21:13:46]MH_I2C_Read... [21:13:46]*** Stop cut motor [21:13:46]*** Cut end [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 CB 90 00 00 00 00 00 FF 0F 70 [21:13:46]process_action close_receipt done [21:13:46]requested_data is exist [21:13:46]produce_requested_data [21:13:46]requested_item fm.sn is exist - process it [21:13:46]wFMCommunicate request_size=4 [21:13:46]MH_SAM_APDU [21:13:46]CAPDU: 80 11 00 00 [21:13:46]Write to MH i2c: E2 08 00 CC 90 80 11 00 00 00 00 00 00 D6 [21:13:46]Write i2c OK [21:13:46]MH_I2C_Read... [21:13:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:13:46]Read from MH i2c: E2 [21:13:46]MH_I2C_Read... [21:13:46]Read from MH i2c: E2 17 00 [21:13:46]MH_I2C_Read... [21:13:46]Read from MH i2c: E2 17 00 CC 90 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 24 [21:13:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [21:13:46]wFMCommunicate OK [21:13:46]requested_item fd.num is exist - process it [21:13:46]SAM_PROTO_GetFieldsCounters [21:13:46]wFMCommunicate request_size=4 [21:13:46]MH_SAM_APDU [21:13:46]CAPDU: 80 13 00 00 [21:13:46]Write to MH i2c: E2 08 00 CD 90 80 13 00 00 00 00 00 00 D9 [21:13:46]Write i2c OK [21:13:46]MH_I2C_Read... [21:13:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:13:47]Read from MH i2c: E2 [21:13:47]MH_I2C_Read... [21:13:47]Read from MH i2c: E2 62 00 [21:13:47]MH_I2C_Read... [21:13:47]Read from MH i2c: E2 62 00 CD 90 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 17 DE 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 87 01 00 00 5E 04 04 00 87 01 00 00 57 04 04 00 88 01 00 00 19 04 04 00 00 00 00 00 90 00 3C [21:13:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 17 DE 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 87 01 00 00 5E 04 04 00 87 01 00 00 57 04 04 00 88 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:13:47]wFMCommunicate OK [21:13:47]SAM_PROTO_GetFieldsCounters done [21:13:47]requested_item shift.num is exist - process it [21:13:47]requested_item shift.opened is exist - process it [21:13:47]req_shift_opened [21:13:47]FM_GetShiftState [21:13:47]SAM_PROTO_GetShiftState [21:13:47]wFMCommunicate request_size=4 [21:13:47]MH_SAM_APDU [21:13:47]CAPDU: 80 13 01 00 [21:13:47]Write to MH i2c: E2 08 00 CE 90 80 13 01 00 00 00 00 00 DB [21:13:47]Write i2c OK [21:13:47]MH_I2C_Read... [21:13:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:13:47]Read from MH i2c: E2 [21:13:47]MH_I2C_Read... [21:13:47]Read from MH i2c: E2 0E 00 [21:13:47]MH_I2C_Read... [21:13:47]Read from MH i2c: E2 0E 00 CE 90 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 3A [21:13:47]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [21:13:47]wFMCommunicate OK [21:13:47]SAM_PROTO_GetShiftState done [21:13:47]FM_GetShiftState done [21:13:47]req_shift_opened done [21:13:47]requested_item shift.open_date is exist - process it [21:13:47]req_shift_open_date [21:13:47]req_shift_open_date done [21:13:47]produce_requested_data done [21:13:47]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187927,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [21:13:47]process_action_free close_receipt [21:13:47]json_value_free [21:13:47]json_value_free done [21:13:47]process_json_proto returns [21:13:47]Send response to host [21:13:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187927,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [21:13:47]free response buf [21:13:47]execute_script done [21:13:47]execute_script returns [21:13:47]free content buf [21:13:47]Sock 9.Close socket [21:13:47]Sock 9.Thread stoped [21:13:50]OFD Sender: No OFD packet to send [21:13:55]OFD Sender: No OFD packet to send [21:14:01]OFD Sender: No OFD packet to send [21:14:06]OFD Sender: No OFD packet to send [21:14:11]OFD Sender: No OFD packet to send [21:14:16]OFD Sender: No OFD packet to send [21:14:21]OFD Sender: No OFD packet to send [21:14:26]OFD Sender: No OFD packet to send [21:14:31]OFD Sender: No OFD packet to send [21:14:36]OFD Sender: No OFD packet to send [21:14:41]OFD Sender: No OFD packet to send [21:14:46]OFD Sender: No OFD packet to send [21:14:51]OFD Sender: No OFD packet to send [21:14:56]OFD Sender: No OFD packet to send [21:15:01]OFD Sender: No OFD packet to send [21:15:06]OFD Sender: No OFD packet to send [21:15:11]OFD Sender: No OFD packet to send [21:15:16]OFD Sender: No OFD packet to send [21:15:21]OFD Sender: No OFD packet to send [21:15:26]OFD Sender: No OFD packet to send [21:15:31]OFD Sender: No OFD packet to send [21:15:36]OFD Sender: No OFD packet to send [21:15:41]OFD Sender: No OFD packet to send [21:15:46]OFD Sender: No OFD packet to send [21:15:51]OFD Sender: No OFD packet to send [21:15:56]OFD Sender: No OFD packet to send [21:16:01]OFD Sender: No OFD packet to send [21:16:06]OFD Sender: No OFD packet to send [21:16:11]OFD Sender: No OFD packet to send [21:16:16]OFD Sender: No OFD packet to send [21:16:21]OFD Sender: No OFD packet to send [21:16:26]OFD Sender: No OFD packet to send [21:16:31]OFD Sender: No OFD packet to send [21:16:36]OFD Sender: No OFD packet to send [21:16:41]OFD Sender: No OFD packet to send [21:16:46]OFD Sender: No OFD packet to send [21:16:51]OFD Sender: No OFD packet to send [21:16:56]OFD Sender: No OFD packet to send [21:17:01]OFD Sender: No OFD packet to send [21:17:06]OFD Sender: No OFD packet to send [21:17:11]OFD Sender: No OFD packet to send [21:17:16]OFD Sender: No OFD packet to send [21:17:21]OFD Sender: No OFD packet to send [21:17:26]OFD Sender: No OFD packet to send [21:17:31]OFD Sender: No OFD packet to send [21:17:36]OFD Sender: No OFD packet to send [21:17:41]OFD Sender: No OFD packet to send [21:17:46]OFD Sender: No OFD packet to send [21:17:52]OFD Sender: No OFD packet to send [21:17:57]OFD Sender: No OFD packet to send [21:18:02]OFD Sender: No OFD packet to send [21:18:07]OFD Sender: No OFD packet to send [21:18:12]OFD Sender: No OFD packet to send [21:18:17]OFD Sender: No OFD packet to send [21:18:22]OFD Sender: No OFD packet to send [21:18:27]OFD Sender: No OFD packet to send [21:18:32]OFD Sender: No OFD packet to send [21:18:37]OFD Sender: No OFD packet to send [21:18:42]OFD Sender: No OFD packet to send [21:18:47]OFD Sender: No OFD packet to send [21:18:52]OFD Sender: No OFD packet to send [21:18:57]OFD Sender: No OFD packet to send [21:19:02]OFD Sender: No OFD packet to send [21:19:07]OFD Sender: No OFD packet to send [21:19:12]OFD Sender: No OFD packet to send [21:19:17]OFD Sender: No OFD packet to send [21:19:22]OFD Sender: No OFD packet to send [21:19:27]OFD Sender: No OFD packet to send [21:19:32]OFD Sender: No OFD packet to send [21:19:37]OFD Sender: No OFD packet to send [21:19:42]OFD Sender: No OFD packet to send [21:19:47]OFD Sender: No OFD packet to send [21:19:52]OFD Sender: No OFD packet to send [21:19:57]OFD Sender: No OFD packet to send [21:20:02]OFD Sender: No OFD packet to send [21:20:07]OFD Sender: No OFD packet to send [21:20:12]OFD Sender: No OFD packet to send [21:20:17]OFD Sender: No OFD packet to send [21:20:22]OFD Sender: No OFD packet to send [21:20:27]OFD Sender: No OFD packet to send [21:20:32]OFD Sender: No OFD packet to send [21:20:37]OFD Sender: No OFD packet to send [21:20:42]OFD Sender: No OFD packet to send [21:20:47]OFD Sender: No OFD packet to send [21:20:52]OFD Sender: No OFD packet to send [21:20:57]OFD Sender: No OFD packet to send [21:21:02]OFD Sender: No OFD packet to send [21:21:07]OFD Sender: No OFD packet to send [21:21:12]OFD Sender: No OFD packet to send [21:21:17]OFD Sender: No OFD packet to send [21:21:22]OFD Sender: No OFD packet to send [21:21:27]OFD Sender: No OFD packet to send [21:21:32]OFD Sender: No OFD packet to send [21:21:38]OFD Sender: No OFD packet to send [21:21:43]OFD Sender: No OFD packet to send [21:21:48]OFD Sender: No OFD packet to send [21:21:53]OFD Sender: No OFD packet to send [21:21:58]OFD Sender: No OFD packet to send [21:22:03]OFD Sender: No OFD packet to send [21:22:08]OFD Sender: No OFD packet to send [21:22:13]OFD Sender: No OFD packet to send [21:22:18]OFD Sender: No OFD packet to send [21:22:23]OFD Sender: No OFD packet to send [21:22:28]OFD Sender: No OFD packet to send [21:22:33]OFD Sender: No OFD packet to send [21:22:38]OFD Sender: No OFD packet to send [21:22:43]OFD Sender: No OFD packet to send [21:22:48]OFD Sender: No OFD packet to send [21:22:48]accept exits with 10 [21:22:48]New connection [21:22:48]New thread 3067157860 created [21:22:48]Thread 3067014500 joined [21:22:48]Waiting for new connection... [21:22:48] Sock 10.Parse request [21:22:48]Sock 10.Check first char [21:22:48]Sock 10.First char is OK [21:22:48]request: POST /json_proto HTTP/1.0 [21:22:48]Method: POST [21:22:48]URL: /json_proto [21:22:48]Method is POST - this is cgi request [21:22:48]url: /json_proto [21:22:48]query_string will be loaded in cgi processing [21:22:48]execute_cgi json_proto POST (null) [21:22:48]execute_cgi path=json_proto method=POST [21:22:48]POST find Content-Length [21:22:48]Host: 172.17.42.131:8080 [21:22:48]Content-Length: 688 [21:22:48]Content-Type: application/json [21:22:48] [21:22:48]POST finish read [21:22:48]Found Content-Length = 688 [21:22:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209980", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 25.910, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:22:48]execute_script... [21:22:48]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209980", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 25.910, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:22:48]POST & json_proto [21:22:48]process_json_proto [21:22:48]json parsed OK: [21:22:48]protocol is kg_v1.0 [21:22:48]action value=close_receipt [21:22:48]process_action close_receipt [21:22:48]cmd_close_receipt [21:22:48]MH_GetDate [21:22:48]Write to MH i2c: F0 00 00 CF 90 4E [21:22:48]Write i2c OK [21:22:48]MH_I2C_Read... [21:22:48]Read from MH i2c: F0 [21:22:48]MH_I2C_Read... [21:22:48]Read from MH i2c: F0 09 00 [21:22:48]MH_I2C_Read... [21:22:48]Read from MH i2c: F0 09 00 CF 90 00 2E C6 16 67 A0 18 CA 66 B0 [21:22:48]GetLastDocTimeStamp 1729545228 [21:22:48]current date 1729545774 [21:22:48]FM_GetShiftState [21:22:48]SAM_PROTO_GetShiftState [21:22:48]wFMCommunicate request_size=4 [21:22:48]MH_SAM_APDU [21:22:48]CAPDU: 80 13 01 00 [21:22:48]Write to MH i2c: E2 08 00 D0 90 80 13 01 00 00 00 00 00 DD [21:22:48]Write i2c OK [21:22:48]MH_I2C_Read... [21:22:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:22:48]Read from MH i2c: E2 [21:22:48]MH_I2C_Read... [21:22:48]Read from MH i2c: E2 0E 00 [21:22:48]MH_I2C_Read... [21:22:48]Read from MH i2c: E2 0E 00 D0 90 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 3C [21:22:48]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [21:22:48]wFMCommunicate OK [21:22:48]SAM_PROTO_GetShiftState done [21:22:48]FM_GetShiftState done [21:22:48]opened in 1729469754 [21:22:48]opened+sec_in_day 1729556154 [21:22:48]quantity*price = 200025 [21:22:48]sum+1 = 200026 [21:22:48]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 392 21.10.2024 21:22 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 187928 ФПД: 227910771229566 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T212254&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187928&fm=227910771229566&tin=02508201610067®Number=0000000000100030&sum=200000 [21:22:49]StoreToDocumentArchive [21:22:49]shift 460 fd 187928 [21:22:49]save to /storage/0460/doc_00187928 [21:22:49]save last doc name /storage/0460/doc_00187928 to /storage/kkm_last_doc_name [21:22:49]save OK [21:22:49]Clear old archive folders... [21:22:49]ProcessDocumentItem done err = 0, tmpTLVsize=257 [21:22:49]tlvbuf is 01356060 [21:22:49]SAM_PROTO_ClearQueue [21:22:49]wFMCommunicate request_size=4 [21:22:49]MH_SAM_APDU [21:22:49]CAPDU: 80 09 00 00 [21:22:49]Write to MH i2c: E2 08 00 DD 90 80 09 00 00 00 00 00 00 DF [21:22:49]Write i2c OK [21:22:49]MH_I2C_Read... [21:22:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:22:49]Read from MH i2c: E2 [21:22:49]MH_I2C_Read... [21:22:49]Read from MH i2c: E2 03 00 [21:22:49]MH_I2C_Read... [21:22:49]Read from MH i2c: E2 03 00 DD 90 00 90 00 E1 [21:22:49]RAPDU: 90 00 [21:22:49]wFMCommunicate OK [21:22:49]SAM_PROTO_ClearQueue done [21:22:49]KKMCreateOFDPacket [21:22:49]OFDProtocolAddRootSTLVToBuf [21:22:49]FM_MakeSignedData [21:22:49]FM_MakeSignedData [21:22:49]SAM_PROTO_SignData [21:22:49]wFMCommunicate request_size=4 [21:22:49]MH_SAM_APDU [21:22:49]CAPDU: 80 0D 01 02 [21:22:49]Write to MH i2c: E2 08 00 DE 90 80 0D 01 02 00 00 00 00 E7 [21:22:49]Write i2c OK [21:22:49]MH_I2C_Read... [21:22:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:22:49]Read from MH i2c: E2 [21:22:49]MH_I2C_Read... [21:22:49]Read from MH i2c: E2 03 00 [21:22:49]MH_I2C_Read... [21:22:49]Read from MH i2c: E2 03 00 DE 90 00 90 00 E2 [21:22:49]RAPDU: 90 00 [21:22:49]wFMCommunicate OK [21:22:49]wFMCommunicate request_size=255 [21:22:49]MH_SAM_APDU [21:22:49]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 36 65 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 88 01 00 00 F4 03 04 00 2E C6 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 18 DE 02 [21:22:49]Write to MH i2c: E2 02 01 DF 90 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 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 36 65 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 88 01 00 00 F4 03 04 00 2E C6 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 18 DE 02 00 00 47 [21:22:49]Write i2c OK [21:22:49]MH_I2C_Read... [21:22:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:22:50]Read from MH i2c: E2 [21:22:50]MH_I2C_Read... [21:22:50]Read from MH i2c: E2 03 00 [21:22:50]MH_I2C_Read... [21:22:50]Read from MH i2c: E2 03 00 DF 90 00 90 00 E3 [21:22:50]RAPDU: 90 00 [21:22:50]wFMCommunicate OK [21:22:50]wFMCommunicate request_size=16 [21:22:50]MH_SAM_APDU [21:22:50]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 CF 48 9C 8F 43 7E [21:22:50]Write to MH i2c: E2 13 00 E0 90 80 0D 02 02 0B 00 00 35 04 06 00 CF 48 9C 8F 43 7E 00 00 42 [21:22:50]Write i2c OK [21:22:50]MH_I2C_Read... [21:22:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:22:50]Read from MH i2c: E2 [21:22:50]MH_I2C_Read... [21:22:50]Read from MH i2c: E2 03 00 [21:22:50]MH_I2C_Read... [21:22:50]Read from MH i2c: E2 03 00 E0 90 00 90 00 E4 [21:22:50]RAPDU: 90 00 [21:22:50]wFMCommunicate OK [21:22:50]wFMCommunicate request_size=4 [21:22:50]MH_SAM_APDU [21:22:50]CAPDU: 80 0D 03 02 [21:22:50]Write to MH i2c: E2 08 00 E1 90 80 0D 03 02 00 00 00 00 EC [21:22:50]Write i2c OK [21:22:50]MH_I2C_Read... [21:22:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:22:50]Read from MH i2c: E2 [21:22:50]MH_I2C_Read... [21:22:50]Read from MH i2c: E2 0B 00 [21:22:50]MH_I2C_Read... [21:22:50]Read from MH i2c: E2 0B 00 E1 90 00 CA 6E 47 82 5D 0E 27 B2 90 00 32 [21:22:50]RAPDU: CA 6E 47 82 5D 0E 27 B2 90 00 [21:22:50]wFMCommunicate OK [21:22:50]SAM_PROTO_SignData done [21:22:50]FM_MakeSignedData done [21:22:50]CreateOFDProtocolMessage [21:22:50]wFMCommunicate request_size=4 [21:22:50]MH_SAM_APDU [21:22:50]CAPDU: 80 11 00 00 [21:22:50]Write to MH i2c: E2 08 00 E2 90 80 11 00 00 00 00 00 00 EC [21:22:50]Write i2c OK [21:22:50]MH_I2C_Read... [21:22:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:22:50]Read from MH i2c: E2 [21:22:50]MH_I2C_Read... [21:22:50]Read from MH i2c: E2 17 00 [21:22:50]MH_I2C_Read... [21:22:50]Read from MH i2c: E2 17 00 E2 90 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 3A [21:22:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [21:22:50]wFMCommunicate OK [21:22:50]CreateOFDProtocolMessage done [21:22:50]OFDSenderStorePacket 187928 [21:22:50]StoreOFDPacket docnum=187928 [21:22:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 58 85 0D 01 F1 30 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 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 36 65 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 88 01 00 00 F4 03 04 00 2E C6 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 18 DE 02 00 35 04 06 00 CF 48 9C 8F 43 7E CA 6E 47 82 5D 0E 27 B2 [21:22:50]CheckFolder [21:22:50]dirname=/storage/ofd_packets [21:22:50]CheckFolder done [21:22:50]ProducePacketName [21:22:50]name=ofd_packets/00187928 [21:22:50]NVStorageSaveData ofd_packets/00187928 [21:22:50]File name is /storage/ofd_packets/00187928 [21:22:50]Write 307 bytes [21:22:50]NVStorageSaveData done [21:22:50]OFDSenderStorePacket done [21:22:50]KKMCreateOFDPacket done [21:22:50]NVStorageSaveData kkm_last_timestamp [21:22:50]File name is /storage/kkm_last_timestamp [21:22:50]Write 4 bytes [21:22:50]NVStorageSaveData done [21:22:50]ExternCall_PrintAddStr [21:22:50]wPrintStart [21:22:50]Write to MH i2c: 01 00 00 E3 90 73 [21:22:50]Write i2c OK [21:22:50]MH_I2C_Read... [21:22:50]Read from MH i2c: 01 [21:22:50]MH_I2C_Read... [21:22:50]Read from MH i2c: 01 07 00 [21:22:50]MH_I2C_Read... [21:22:50]Read from MH i2c: 01 07 00 E3 90 00 00 00 00 00 FF 0F 88 [21:22:50]RasterBufferAndPrint [21:22:50]line Счет N : (1)209980 [21:22:50]line ИНН: 02508201610067 [21:22:50]line Контрольно-Кассовый Чек [21:22:50]line ПРОДАЖА [21:22:50]line ТРК (МРК, ГНК) : 11 [21:22:50]line Товар: 2710194210 [21:22:50]line D-ENERGY ДТ-К-5 [21:22:50]line 25.910 * 77.20 [21:22:50]line = 2000.25 [21:22:50]line НДС 12% НСП 1% [21:22:50]line > о реализуемом товаре [21:22:50]line ОКРУГЛЕНИЕ: -0.25 [21:22:50]line ИТОГО: 2000.00 [21:22:50]line Внесено: 2000.00 [21:22:50]line СДАЧА: 0.00 [21:22:50]line НСП 1% : 17.70 [21:22:50]line НДС 12% : 212.42 [21:22:50]line Наличными: 2000.00 [21:22:50]line Безнал.: 0.00 [21:22:50]line Место: АЗС № 86 "Партнер Нефть" [21:22:50]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [21:22:50]line СНО: Общий режим [21:22:50]line Чек 392 21.10.2024 21:22 [21:22:50]line Смена: 460 ФФД: 1.0 [21:22:50]line ЗНМ: 0300000155 [21:22:50]line РНМ: 0000000000100030 [21:22:50]line Версия ККМ: 001 [21:22:50]line ФМ: 0000000000965340 [21:22:50]line ФД: 187928 [21:22:50]line ФПД: 227910771229566 [21:22:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T212254&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187928&fm=227910771229566&tin=02508201610067®Number=0000000000100030&sum=200000 [21:22:50]written 0, free lines is 4095 [21:22:50]OFD Sender: Processing packet 187928 [packets to send 1062, broken 1061] [21:22:50]ProducePacketName [21:22:50]name=ofd_packets/00187928 [21:22:50]OFD Sender: To server: pG, [21:22:50]CommunicateWithHost lk.salyk.kg:30040 [21:22:50]ConnectInit lk.salyk.kg [21:22:50]Connected sock=9 [21:22:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 58 85 0D 01 F1 30 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 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 36 65 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 88 01 00 00 F4 03 04 00 2E C6 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 18 DE 02 00 35 04 06 00 CF 48 9C 8F 43 7E CA 6E 47 82 5D 0E 27 B2 [21:22:50]Write to MH i2c: 01 00 00 0E 91 9F [21:22:50]Write i2c OK [21:22:50]MH_I2C_Read... [21:22:50]Read from MH i2c: 01 [21:22:50]MH_I2C_Read... [21:22:50]Read from MH i2c: 01 07 00 [21:22:50]MH_I2C_Read... [21:22:50]Read from MH i2c: 01 07 00 0E 91 00 00 00 00 00 61 0C 13 [21:22:50]RasterBufferAndPrint [21:22:50]line [21:22:50]line [21:22:50]line [21:22:50]line [21:22:50]line [21:22:50]written 0, free lines is 3173 [21:22:50]MH_Cut [21:22:50]Write to MH i2c: D1 01 00 15 91 01 78 [21:22:50]Write i2c OK [21:22:50]MH_I2C_Read... [21:22:50]Read from MH i2c: D1 [21:22:50]MH_I2C_Read... [21:22:50]Read from MH i2c: D1 01 00 [21:22:50]MH_I2C_Read... [21:22:50]Read from MH i2c: D1 01 00 15 91 00 77 [21:22:50]Write to MH i2c: 01 00 00 16 91 A7 [21:22:50]Write i2c OK [21:22:50]MH_I2C_Read... [21:22:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 6F 15 47 00 BE 5A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 18 DE 02 00 F4 03 04 00 1D 70 16 67 B6 04 01 00 00 4C 50 AC 9A B3 C7 04 89 [21:22:51]CommunicateWithHost err = 0 [21:22:51]CheckOFDResponse [21:22:51]1017 (14) - 77093643461234 [21:22:51]1041 (16) - 0000000000965340 [21:22:51]1040 (4) - 187928 [21:22:51]1012 (4) - 21.10.2024 15:15 [21:22:51]1206 (1) - 0 [21:22:51]OFD Sender: Remove packet 187928 [21:22:51]ProducePacketName [21:22:51]name=ofd_packets/00187928 [21:22:51]NVStorageDeleteData [21:22:51]OFD Sender: No OFD packet to send [21:22:52]*** Cut start [21:22:52]*** Partial cut [21:22:52]*** CUTSNS_PIN = 1 [21:22:52]*** CUTSNS_PIN = 0 [21:22:52]*** Brake cut motor [21:22:52]Read from MH i2c: 01 [21:22:52]MH_I2C_Read... [21:22:52]*** Stop cut motor [21:22:52]*** Cut end [21:22:52]Read from MH i2c: 01 07 00 [21:22:52]MH_I2C_Read... [21:22:52]Read from MH i2c: 01 07 00 16 91 00 00 00 00 00 FF 0F BC [21:22:52]process_action close_receipt done [21:22:52]requested_data is exist [21:22:52]produce_requested_data [21:22:52]requested_item fm.sn is exist - process it [21:22:52]wFMCommunicate request_size=4 [21:22:52]MH_SAM_APDU [21:22:52]CAPDU: 80 11 00 00 [21:22:52]Write to MH i2c: E2 08 00 17 91 80 11 00 00 00 00 00 00 22 [21:22:52]Write i2c OK [21:22:52]MH_I2C_Read... [21:22:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:22:52]Read from MH i2c: E2 [21:22:52]MH_I2C_Read... [21:22:52]Read from MH i2c: E2 17 00 [21:22:52]MH_I2C_Read... [21:22:52]Read from MH i2c: E2 17 00 17 91 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 70 [21:22:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [21:22:52]wFMCommunicate OK [21:22:52]requested_item fd.num is exist - process it [21:22:52]SAM_PROTO_GetFieldsCounters [21:22:52]wFMCommunicate request_size=4 [21:22:52]MH_SAM_APDU [21:22:52]CAPDU: 80 13 00 00 [21:22:52]Write to MH i2c: E2 08 00 18 91 80 13 00 00 00 00 00 00 25 [21:22:52]Write i2c OK [21:22:52]MH_I2C_Read... [21:22:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:22:53]Read from MH i2c: E2 [21:22:53]MH_I2C_Read... [21:22:53]Read from MH i2c: E2 62 00 [21:22:53]MH_I2C_Read... [21:22:53]Read from MH i2c: E2 62 00 18 91 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 18 DE 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 88 01 00 00 5E 04 04 00 88 01 00 00 57 04 04 00 89 01 00 00 19 04 04 00 00 00 00 00 90 00 8C [21:22:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 18 DE 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 88 01 00 00 5E 04 04 00 88 01 00 00 57 04 04 00 89 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:22:53]wFMCommunicate OK [21:22:53]SAM_PROTO_GetFieldsCounters done [21:22:53]requested_item shift.num is exist - process it [21:22:53]requested_item shift.opened is exist - process it [21:22:53]req_shift_opened [21:22:53]FM_GetShiftState [21:22:53]SAM_PROTO_GetShiftState [21:22:53]wFMCommunicate request_size=4 [21:22:53]MH_SAM_APDU [21:22:53]CAPDU: 80 13 01 00 [21:22:53]Write to MH i2c: E2 08 00 19 91 80 13 01 00 00 00 00 00 27 [21:22:53]Write i2c OK [21:22:53]MH_I2C_Read... [21:22:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:22:53]Read from MH i2c: E2 [21:22:53]MH_I2C_Read... [21:22:53]Read from MH i2c: E2 0E 00 [21:22:53]MH_I2C_Read... [21:22:53]Read from MH i2c: E2 0E 00 19 91 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 86 [21:22:53]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [21:22:53]wFMCommunicate OK [21:22:53]SAM_PROTO_GetShiftState done [21:22:53]FM_GetShiftState done [21:22:53]req_shift_opened done [21:22:53]requested_item shift.open_date is exist - process it [21:22:53]req_shift_open_date [21:22:53]req_shift_open_date done [21:22:53]produce_requested_data done [21:22:53]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187928,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [21:22:53]process_action_free close_receipt [21:22:53]json_value_free [21:22:53]json_value_free done [21:22:53]process_json_proto returns [21:22:53]Send response to host [21:22:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187928,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [21:22:53]free response buf [21:22:53]execute_script done [21:22:53]execute_script returns [21:22:53]free content buf [21:22:53]Sock 10.Close socket [21:22:53]Sock 10.Thread stoped [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:11]OFD Sender: No OFD packet to send [21:24:17]OFD Sender: No OFD packet to send [21:24:22]OFD Sender: No OFD packet to send [21:24:27]OFD Sender: No OFD packet to send [21:24:32]OFD Sender: No OFD packet to send [21:24:37]OFD Sender: No OFD packet to send [21:24:42]OFD Sender: No OFD packet to send [21:24:47]OFD Sender: No OFD packet to send [21:24:52]OFD Sender: No OFD packet to send [21:24:57]OFD Sender: No OFD packet to send [21:25:02]OFD Sender: No OFD packet to send [21:25:02]accept exits with 8 [21:25:02]New connection [21:25:02]New thread 3067014500 created [21:25:02]Thread 3067157860 joined [21:25:02]Waiting for new connection... [21:25:02] Sock 8.Parse request [21:25:02]Sock 8.Check first char [21:25:02]Sock 8.First char is OK [21:25:02]request: POST /json_proto HTTP/1.0 [21:25:02]Method: POST [21:25:02]URL: /json_proto [21:25:02]Method is POST - this is cgi request [21:25:02]url: /json_proto [21:25:02]query_string will be loaded in cgi processing [21:25:02]execute_cgi json_proto POST (null) [21:25:02]execute_cgi path=json_proto method=POST [21:25:02]POST find Content-Length [21:25:02]Host: 172.17.42.131:8080 [21:25:02]Content-Length: 751 [21:25:02]Content-Type: application/json [21:25:02] [21:25:02]POST finish read [21:25:02]Found Content-Length = 751 [21:25:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209981", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 50.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30145330", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:25:02]execute_script... [21:25: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)209981", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 50.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30145330", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:25:02]POST & json_proto [21:25:02]process_json_proto [21:25:02]json parsed OK: [21:25:02]protocol is kg_v1.0 [21:25:02]action value=close_receipt [21:25:02]process_action close_receipt [21:25:02]cmd_close_receipt [21:25:02]MH_GetDate [21:25:02]Write to MH i2c: F0 00 00 1A 91 9A [21:25:02]Write i2c OK [21:25:02]MH_I2C_Read... [21:25:02]Read from MH i2c: F0 [21:25:02]MH_I2C_Read... [21:25:02]Read from MH i2c: F0 09 00 [21:25:02]MH_I2C_Read... [21:25:02]Read from MH i2c: F0 09 00 1A 91 00 B4 C6 16 67 A0 18 CA 66 82 [21:25:02]GetLastDocTimeStamp 1729545774 [21:25:02]current date 1729545908 [21:25:02]FM_GetShiftState [21:25:02]SAM_PROTO_GetShiftState [21:25:02]wFMCommunicate request_size=4 [21:25:02]MH_SAM_APDU [21:25:02]CAPDU: 80 13 01 00 [21:25:02]Write to MH i2c: E2 08 00 1B 91 80 13 01 00 00 00 00 00 29 [21:25:02]Write i2c OK [21:25:02]MH_I2C_Read... [21:25:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:25:02]Read from MH i2c: E2 [21:25:02]MH_I2C_Read... [21:25:02]Read from MH i2c: E2 0E 00 [21:25:02]MH_I2C_Read... [21:25:02]Read from MH i2c: E2 0E 00 1B 91 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 88 [21:25:02]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [21:25:02]wFMCommunicate OK [21:25:02]SAM_PROTO_GetShiftState done [21:25:02]FM_GetShiftState done [21:25:02]opened in 1729469754 [21:25:02]opened+sec_in_day 1729556154 [21:25:02]quantity*price = 0 [21:25:02]sum+1 = 1 [21:25:02]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 393 21.10.2024 21:25 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Талоны: ТК ГПНА Online 30145330 ФМ: 0000000000965340 ФД: 187929 ФПД: 78461982635863 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T212508&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187929&fm=78461982635863&tin=02508201610067®Number=0000000000100030&sum=0 [21:25:04]StoreToDocumentArchive [21:25:04]shift 460 fd 187929 [21:25:04]save to /storage/0460/doc_00187929 [21:25:04]save last doc name /storage/0460/doc_00187929 to /storage/kkm_last_doc_name [21:25:04]save OK [21:25:04]Clear old archive folders... [21:25:04]ProcessDocumentItem done err = 0, tmpTLVsize=248 [21:25:04]tlvbuf is 010A31A0 [21:25:04]SAM_PROTO_ClearQueue [21:25:04]wFMCommunicate request_size=4 [21:25:04]MH_SAM_APDU [21:25:04]CAPDU: 80 09 00 00 [21:25:04]Write to MH i2c: E2 08 00 28 91 80 09 00 00 00 00 00 00 2B [21:25:04]Write i2c OK [21:25:04]MH_I2C_Read... [21:25:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:25:04]Read from MH i2c: E2 [21:25:04]MH_I2C_Read... [21:25:04]Read from MH i2c: E2 03 00 [21:25:04]MH_I2C_Read... [21:25:04]Read from MH i2c: E2 03 00 28 91 00 90 00 2D [21:25:04]RAPDU: 90 00 [21:25:04]wFMCommunicate OK [21:25:04]SAM_PROTO_ClearQueue done [21:25:04]KKMCreateOFDPacket [21:25:04]OFDProtocolAddRootSTLVToBuf [21:25:04]FM_MakeSignedData [21:25:04]FM_MakeSignedData [21:25:04]SAM_PROTO_SignData [21:25:04]wFMCommunicate request_size=4 [21:25:04]MH_SAM_APDU [21:25:04]CAPDU: 80 0D 01 02 [21:25:04]Write to MH i2c: E2 08 00 29 91 80 0D 01 02 00 00 00 00 33 [21:25:04]Write i2c OK [21:25:04]MH_I2C_Read... [21:25:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:25:04]Read from MH i2c: E2 [21:25:04]MH_I2C_Read... [21:25:04]Read from MH i2c: E2 03 00 [21:25:04]MH_I2C_Read... [21:25:04]Read from MH i2c: E2 03 00 29 91 00 90 00 2E [21:25:04]RAPDU: 90 00 [21:25:04]wFMCommunicate OK [21:25:04]wFMCommunicate request_size=255 [21:25:04]MH_SAM_APDU [21:25:04]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 50 C3 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 89 01 00 00 F4 03 04 00 B4 C6 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 19 DE 02 00 35 04 06 00 47 5C 5A 9A [21:25:04]Write to MH i2c: E2 02 01 2A 91 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 50 C3 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 89 01 00 00 F4 03 04 00 B4 C6 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 19 DE 02 00 35 04 06 00 47 5C 5A 9A 00 00 67 [21:25:04]Write i2c OK [21:25:04]MH_I2C_Read... [21:25:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:25:04]Read from MH i2c: E2 [21:25:04]MH_I2C_Read... [21:25:04]Read from MH i2c: E2 03 00 [21:25:04]MH_I2C_Read... [21:25:04]Read from MH i2c: E2 03 00 2A 91 00 90 00 2F [21:25:04]RAPDU: 90 00 [21:25:04]wFMCommunicate OK [21:25:04]wFMCommunicate request_size=7 [21:25:04]MH_SAM_APDU [21:25:04]CAPDU: 80 0D 02 02 02 77 57 [21:25:04]Write to MH i2c: E2 0A 00 2B 91 80 0D 02 02 02 00 77 57 00 00 08 [21:25:04]Write i2c OK [21:25:04]MH_I2C_Read... [21:25:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:25:04]Read from MH i2c: E2 [21:25:04]MH_I2C_Read... [21:25:04]Read from MH i2c: E2 03 00 [21:25:04]MH_I2C_Read... [21:25:04]Read from MH i2c: E2 03 00 2B 91 00 90 00 30 [21:25:04]RAPDU: 90 00 [21:25:04]wFMCommunicate OK [21:25:04]wFMCommunicate request_size=4 [21:25:04]MH_SAM_APDU [21:25:04]CAPDU: 80 0D 03 02 [21:25:04]Write to MH i2c: E2 08 00 2C 91 80 0D 03 02 00 00 00 00 38 [21:25:04]Write i2c OK [21:25:04]MH_I2C_Read... [21:25:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:25:04]Read from MH i2c: E2 [21:25:04]MH_I2C_Read... [21:25:04]Read from MH i2c: E2 0B 00 [21:25:04]MH_I2C_Read... [21:25:04]Read from MH i2c: E2 0B 00 2C 91 00 C4 EC 8E 8E 10 A6 0C 70 90 00 37 [21:25:04]RAPDU: C4 EC 8E 8E 10 A6 0C 70 90 00 [21:25:04]wFMCommunicate OK [21:25:04]SAM_PROTO_SignData done [21:25:04]FM_MakeSignedData done [21:25:04]CreateOFDProtocolMessage [21:25:04]wFMCommunicate request_size=4 [21:25:04]MH_SAM_APDU [21:25:04]CAPDU: 80 11 00 00 [21:25:04]Write to MH i2c: E2 08 00 2D 91 80 11 00 00 00 00 00 00 38 [21:25:04]Write i2c OK [21:25:04]MH_I2C_Read... [21:25:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:25:04]Read from MH i2c: E2 [21:25:04]MH_I2C_Read... [21:25:04]Read from MH i2c: E2 17 00 [21:25:04]MH_I2C_Read... [21:25:04]Read from MH i2c: E2 17 00 2D 91 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 86 [21:25:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [21:25:04]wFMCommunicate OK [21:25:04]CreateOFDProtocolMessage done [21:25:04]OFDSenderStorePacket 187929 [21:25:04]StoreOFDPacket docnum=187929 [21:25:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 D2 85 04 01 B9 46 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 50 C3 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 89 01 00 00 F4 03 04 00 B4 C6 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 19 DE 02 00 35 04 06 00 47 5C 5A 9A 77 57 C4 EC 8E 8E 10 A6 0C 70 [21:25:04]CheckFolder [21:25:04]dirname=/storage/ofd_packets [21:25:04]CheckFolder done [21:25:04]ProducePacketName [21:25:04]name=ofd_packets/00187929 [21:25:04]NVStorageSaveData ofd_packets/00187929 [21:25:04]File name is /storage/ofd_packets/00187929 [21:25:04]Write 298 bytes [21:25:04]NVStorageSaveData done [21:25:04]OFDSenderStorePacket done [21:25:04]KKMCreateOFDPacket done [21:25:04]NVStorageSaveData kkm_last_timestamp [21:25:04]File name is /storage/kkm_last_timestamp [21:25:04]Write 4 bytes [21:25:04]NVStorageSaveData done [21:25:04]ExternCall_PrintAddStr [21:25:04]wPrintStart [21:25:04]Write to MH i2c: 01 00 00 2E 91 BF [21:25:04]Write i2c OK [21:25:04]MH_I2C_Read... [21:25:04]Read from MH i2c: 01 [21:25:04]MH_I2C_Read... [21:25:04]Read from MH i2c: 01 07 00 [21:25:04]MH_I2C_Read... [21:25:04]Read from MH i2c: 01 07 00 2E 91 00 00 00 00 00 FF 0F D4 [21:25:04]RasterBufferAndPrint [21:25:04]line Счет N : (1)209981 [21:25:04]line ИНН: 02508201610067 [21:25:04]line Контрольно-Кассовый Чек [21:25:04]line ПРОДАЖА [21:25:04]line ТРК (МРК, ГНК) : 51 [21:25:04]line Товар: 2710194210 [21:25:04]line ДТ-К-5 [21:25:04]line 50.000 * 0.00 [21:25:04]line = 0.00 [21:25:04]line НДС 12% НСП 1% [21:25:04]line > о реализуемом товаре [21:25:04]line ИТОГО: 0.00 [21:25:04]line НСП 1% : 0.00 [21:25:04]line НДС 12% : 0.00 [21:25:04]line Наличными: 0.00 [21:25:04]line Безнал.: 0.00 [21:25:04]line Место: АЗС № 86 "Партнер Нефть" [21:25:04]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [21:25:04]line СНО: Общий режим [21:25:04]line Чек 393 21.10.2024 21:25 [21:25:04]line Смена: 460 ФФД: 1.0 [21:25:04]line ЗНМ: 0300000155 [21:25:04]line РНМ: 0000000000100030 [21:25:04]line Версия ККМ: 001 [21:25:04]line Талоны: ТК ГПНА Online [21:25:04]line 30145330 [21:25:04]line ФМ: 0000000000965340 [21:25:04]line ФД: 187929 [21:25:04]line ФПД: 78461982635863 [21:25:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T212508&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187929&fm=78461982635863&tin=02508201610067®Number=0000000000100030&sum=0 [21:25:04]written 0, free lines is 4095 [21:25:04]OFD Sender: Processing packet 187929 [packets to send 1062, broken 1061] [21:25:04]ProducePacketName [21:25:04]name=ofd_packets/00187929 [21:25:04]OFD Sender: To server: pG, [21:25:04]CommunicateWithHost lk.salyk.kg:30040 [21:25:04]ConnectInit lk.salyk.kg [21:25:04]Connected sock=10 [21:25:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 D2 85 04 01 B9 46 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 50 C3 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 89 01 00 00 F4 03 04 00 B4 C6 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 19 DE 02 00 35 04 06 00 47 5C 5A 9A 77 57 C4 EC 8E 8E 10 A6 0C 70 [21:25:05]Write to MH i2c: 01 00 00 58 91 E9 [21:25:05]Write i2c OK [21:25:05]MH_I2C_Read... [21:25:05]Read from MH i2c: 01 [21:25:05]MH_I2C_Read... [21:25:05]Read from MH i2c: 01 07 00 [21:25:05]MH_I2C_Read... [21:25:05]Read from MH i2c: 01 07 00 58 91 00 00 00 00 00 72 0C 6E [21:25:05]RasterBufferAndPrint [21:25:05]line [21:25:05]line [21:25:05]line [21:25:05]line [21:25:05]line [21:25:05]written 0, free lines is 3192 [21:25:05]MH_Cut [21:25:05]Write to MH i2c: D1 01 00 5F 91 01 C2 [21:25:05]Write i2c OK [21:25:05]MH_I2C_Read... [21:25:05]Read from MH i2c: D1 [21:25:05]MH_I2C_Read... [21:25:05]Read from MH i2c: D1 01 00 [21:25:05]MH_I2C_Read... [21:25:05]Read from MH i2c: D1 01 00 5F 91 00 C1 [21:25:05]Write to MH i2c: 01 00 00 60 91 F1 [21:25:05]Write i2c OK [21:25:05]MH_I2C_Read... [21:25:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 5E 56 47 00 C4 78 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 19 DE 02 00 F4 03 04 00 A3 70 16 67 B6 04 01 00 00 C1 7F F5 91 3B 42 E2 C2 [21:25:05]CommunicateWithHost err = 0 [21:25:05]CheckOFDResponse [21:25:05]1017 (14) - 77093643461234 [21:25:05]1041 (16) - 0000000000965340 [21:25:05]1040 (4) - 187929 [21:25:05]1012 (4) - 21.10.2024 15:17 [21:25:05]1206 (1) - 0 [21:25:05]OFD Sender: Remove packet 187929 [21:25:05]ProducePacketName [21:25:05]name=ofd_packets/00187929 [21:25:05]NVStorageDeleteData [21:25:05]OFD Sender: No OFD packet to send [21:25:06]*** Cut start [21:25:06]*** Partial cut [21:25:06]*** CUTSNS_PIN = 1 [21:25:06]*** CUTSNS_PIN = 0 [21:25:06]*** Brake cut motor [21:25:06]Read from MH i2c: 01 [21:25:06]MH_I2C_Read... [21:25:06]*** Stop cut motor [21:25:06]*** Cut end [21:25:06]Read from MH i2c: 01 07 00 [21:25:06]MH_I2C_Read... [21:25:06]Read from MH i2c: 01 07 00 60 91 00 00 00 00 00 FF 0F 06 [21:25:06]process_action close_receipt done [21:25:06]requested_data is exist [21:25:06]produce_requested_data [21:25:06]requested_item fm.sn is exist - process it [21:25:06]wFMCommunicate request_size=4 [21:25:06]MH_SAM_APDU [21:25:06]CAPDU: 80 11 00 00 [21:25:06]Write to MH i2c: E2 08 00 61 91 80 11 00 00 00 00 00 00 6C [21:25:06]Write i2c OK [21:25:06]MH_I2C_Read... [21:25:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:25:06]Read from MH i2c: E2 [21:25:06]MH_I2C_Read... [21:25:06]Read from MH i2c: E2 17 00 [21:25:06]MH_I2C_Read... [21:25:06]Read from MH i2c: E2 17 00 61 91 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 BA [21:25:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [21:25:06]wFMCommunicate OK [21:25:06]requested_item fd.num is exist - process it [21:25:06]SAM_PROTO_GetFieldsCounters [21:25:06]wFMCommunicate request_size=4 [21:25:06]MH_SAM_APDU [21:25:06]CAPDU: 80 13 00 00 [21:25:06]Write to MH i2c: E2 08 00 62 91 80 13 00 00 00 00 00 00 6F [21:25:06]Write i2c OK [21:25:06]MH_I2C_Read... [21:25:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:25:07]Read from MH i2c: E2 [21:25:07]MH_I2C_Read... [21:25:07]Read from MH i2c: E2 62 00 [21:25:07]MH_I2C_Read... [21:25:07]Read from MH i2c: E2 62 00 62 91 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 19 DE 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 89 01 00 00 5E 04 04 00 89 01 00 00 57 04 04 00 8A 01 00 00 19 04 04 00 00 00 00 00 90 00 DA [21:25:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 19 DE 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 89 01 00 00 5E 04 04 00 89 01 00 00 57 04 04 00 8A 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:25:07]wFMCommunicate OK [21:25:07]SAM_PROTO_GetFieldsCounters done [21:25:07]requested_item shift.num is exist - process it [21:25:07]requested_item shift.opened is exist - process it [21:25:07]req_shift_opened [21:25:07]FM_GetShiftState [21:25:07]SAM_PROTO_GetShiftState [21:25:07]wFMCommunicate request_size=4 [21:25:07]MH_SAM_APDU [21:25:07]CAPDU: 80 13 01 00 [21:25:07]Write to MH i2c: E2 08 00 63 91 80 13 01 00 00 00 00 00 71 [21:25:07]Write i2c OK [21:25:07]MH_I2C_Read... [21:25:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:25:07]Read from MH i2c: E2 [21:25:07]MH_I2C_Read... [21:25:07]Read from MH i2c: E2 0E 00 [21:25:07]MH_I2C_Read... [21:25:07]Read from MH i2c: E2 0E 00 63 91 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 D0 [21:25:07]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [21:25:07]wFMCommunicate OK [21:25:07]SAM_PROTO_GetShiftState done [21:25:07]FM_GetShiftState done [21:25:07]req_shift_opened done [21:25:07]requested_item shift.open_date is exist - process it [21:25:07]req_shift_open_date [21:25:07]req_shift_open_date done [21:25:07]produce_requested_data done [21:25:07]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187929,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [21:25:07]process_action_free close_receipt [21:25:07]json_value_free [21:25:07]json_value_free done [21:25:07]process_json_proto returns [21:25:07]Send response to host [21:25:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187929,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [21:25:07]free response buf [21:25:07]execute_script done [21:25:07]execute_script returns [21:25:07]free content buf [21:25:07]Sock 8.Close socket [21:25:07]Sock 8.Thread stoped [21:25:10]OFD Sender: No OFD packet to send [21:25:15]OFD Sender: No OFD packet to send [21:25:20]OFD Sender: No OFD packet to send [21:25:25]OFD Sender: No OFD packet to send [21:25:30]OFD Sender: No OFD packet to send [21:25:35]OFD Sender: No OFD packet to send [21:25:40]OFD Sender: No OFD packet to send [21:25:45]OFD Sender: No OFD packet to send [21:25:50]OFD Sender: No OFD packet to send [21:25:55]OFD Sender: No OFD packet to send [21:26:00]OFD Sender: No OFD packet to send [21:26:05]OFD Sender: No OFD packet to send [21:26:10]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:11]accept exits with 9 [21:27:11]New connection [21:27:11]New thread 3067157860 created [21:27:11]Thread 3067014500 joined [21:27:11]Waiting for new connection... [21:27:11] Sock 9.Parse request [21:27:11]Sock 9.Check first char [21:27:11]Sock 9.First char is OK [21:27:11]request: POST /json_proto HTTP/1.0 [21:27:11]Method: POST [21:27:11]URL: /json_proto [21:27:11]Method is POST - this is cgi request [21:27:11]url: /json_proto [21:27:11]query_string will be loaded in cgi processing [21:27:11]execute_cgi json_proto POST (null) [21:27:11]execute_cgi path=json_proto method=POST [21:27:11]POST find Content-Length [21:27:11]Host: 172.17.42.131:8080 [21:27:11]Content-Length: 688 [21:27:11]Content-Type: application/json [21:27:11] [21:27:11]POST finish read [21:27:11]Found Content-Length = 688 [21:27:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209982", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 46.640, "sum" : 3600.61, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3600.00, "total" : 3600.00, "payments": [ { "type": 0, "sum" : 3600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:27:11]execute_script... [21:27: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)209982", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 46.640, "sum" : 3600.61, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3600.00, "total" : 3600.00, "payments": [ { "type": 0, "sum" : 3600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:27:11]POST & json_proto [21:27:11]process_json_proto [21:27:11]json parsed OK: [21:27:11]protocol is kg_v1.0 [21:27:11]action value=close_receipt [21:27:11]process_action close_receipt [21:27:11]cmd_close_receipt [21:27:11]MH_GetDate [21:27:11]Write to MH i2c: F0 00 00 64 91 E4 [21:27:11]Write i2c OK [21:27:11]MH_I2C_Read... [21:27:11]Read from MH i2c: F0 [21:27:11]MH_I2C_Read... [21:27:11]Read from MH i2c: F0 09 00 [21:27:11]MH_I2C_Read... [21:27:11]Read from MH i2c: F0 09 00 64 91 00 35 C7 16 67 A0 18 CA 66 4E [21:27:11]GetLastDocTimeStamp 1729545908 [21:27:11]current date 1729546037 [21:27:11]FM_GetShiftState [21:27:11]SAM_PROTO_GetShiftState [21:27:11]wFMCommunicate request_size=4 [21:27:11]MH_SAM_APDU [21:27:11]CAPDU: 80 13 01 00 [21:27:11]Write to MH i2c: E2 08 00 65 91 80 13 01 00 00 00 00 00 73 [21:27:11]Write i2c OK [21:27:11]MH_I2C_Read... [21:27:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:27:11]Read from MH i2c: E2 [21:27:11]MH_I2C_Read... [21:27:11]Read from MH i2c: E2 0E 00 [21:27:11]MH_I2C_Read... [21:27:11]Read from MH i2c: E2 0E 00 65 91 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 D2 [21:27:11]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [21:27:11]wFMCommunicate OK [21:27:11]SAM_PROTO_GetShiftState done [21:27:11]FM_GetShiftState done [21:27:11]opened in 1729469754 [21:27:11]opened+sec_in_day 1729556154 [21:27:11]quantity*price = 360060 [21:27:11]sum+1 = 360062 [21:27:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.61 ИТОГО: 3600.00 Внесено: 3600.00 СДАЧА: 0.00 НСП 1% : 31.86 НДС 12% : 382.37 Наличными: 3600.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 394 21.10.2024 21:27 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 187930 ФПД: 240331678168881 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T212717&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187930&fm=240331678168881&tin=02508201610067®Number=0000000000100030&sum=360000 [21:27:12]StoreToDocumentArchive [21:27:12]shift 460 fd 187930 [21:27:12]save to /storage/0460/doc_00187930 [21:27:12]save last doc name /storage/0460/doc_00187930 to /storage/kkm_last_doc_name [21:27:12]save OK [21:27:12]Clear old archive folders... [21:27:12]ProcessDocumentItem done err = 0, tmpTLVsize=257 [21:27:12]tlvbuf is 010F9B20 [21:27:12]SAM_PROTO_ClearQueue [21:27:12]wFMCommunicate request_size=4 [21:27:12]MH_SAM_APDU [21:27:12]CAPDU: 80 09 00 00 [21:27:12]Write to MH i2c: E2 08 00 72 91 80 09 00 00 00 00 00 00 75 [21:27:12]Write i2c OK [21:27:12]MH_I2C_Read... [21:27:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:27:12]Read from MH i2c: E2 [21:27:12]MH_I2C_Read... [21:27:12]Read from MH i2c: E2 03 00 [21:27:12]MH_I2C_Read... [21:27:12]Read from MH i2c: E2 03 00 72 91 00 90 00 77 [21:27:12]RAPDU: 90 00 [21:27:12]wFMCommunicate OK [21:27:12]SAM_PROTO_ClearQueue done [21:27:12]KKMCreateOFDPacket [21:27:12]OFDProtocolAddRootSTLVToBuf [21:27:12]FM_MakeSignedData [21:27:12]FM_MakeSignedData [21:27:12]SAM_PROTO_SignData [21:27:12]wFMCommunicate request_size=4 [21:27:12]MH_SAM_APDU [21:27:12]CAPDU: 80 0D 01 02 [21:27:12]Write to MH i2c: E2 08 00 73 91 80 0D 01 02 00 00 00 00 7D [21:27:12]Write i2c OK [21:27:12]MH_I2C_Read... [21:27:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:27:12]Read from MH i2c: E2 [21:27:12]MH_I2C_Read... [21:27:12]Read from MH i2c: E2 03 00 [21:27:12]MH_I2C_Read... [21:27:12]Read from MH i2c: E2 03 00 73 91 00 90 00 78 [21:27:12]RAPDU: 90 00 [21:27:12]wFMCommunicate OK [21:27:12]wFMCommunicate request_size=255 [21:27:12]MH_SAM_APDU [21:27:12]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 30 B6 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 7D 7E 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 7E 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 72 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5D 95 00 00 00 00 07 04 06 00 40 7E 05 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8A 01 00 00 F4 03 04 00 35 C7 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 1A DE 02 [21:27:12]Write to MH i2c: E2 02 01 74 91 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 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 30 B6 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 7D 7E 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 7E 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 72 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5D 95 00 00 00 00 07 04 06 00 40 7E 05 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8A 01 00 00 F4 03 04 00 35 C7 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 1A DE 02 00 00 E5 [21:27:12]Write i2c OK [21:27:12]MH_I2C_Read... [21:27:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:27:12]Read from MH i2c: E2 [21:27:12]MH_I2C_Read... [21:27:12]Read from MH i2c: E2 03 00 [21:27:12]MH_I2C_Read... [21:27:12]Read from MH i2c: E2 03 00 74 91 00 90 00 79 [21:27:12]RAPDU: 90 00 [21:27:12]wFMCommunicate OK [21:27:12]wFMCommunicate request_size=16 [21:27:12]MH_SAM_APDU [21:27:12]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 DA 94 94 4E 37 31 [21:27:12]Write to MH i2c: E2 13 00 75 91 80 0D 02 02 0B 00 00 35 04 06 00 DA 94 94 4E 37 31 00 00 8D [21:27:12]Write i2c OK [21:27:12]MH_I2C_Read... [21:27:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:27:12]Read from MH i2c: E2 [21:27:12]MH_I2C_Read... [21:27:12]Read from MH i2c: E2 03 00 [21:27:12]MH_I2C_Read... [21:27:12]Read from MH i2c: E2 03 00 75 91 00 90 00 7A [21:27:12]RAPDU: 90 00 [21:27:12]wFMCommunicate OK [21:27:12]wFMCommunicate request_size=4 [21:27:12]MH_SAM_APDU [21:27:12]CAPDU: 80 0D 03 02 [21:27:12]Write to MH i2c: E2 08 00 76 91 80 0D 03 02 00 00 00 00 82 [21:27:12]Write i2c OK [21:27:12]MH_I2C_Read... [21:27:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:27:13]Read from MH i2c: E2 [21:27:13]MH_I2C_Read... [21:27:13]Read from MH i2c: E2 0B 00 [21:27:13]MH_I2C_Read... [21:27:13]Read from MH i2c: E2 0B 00 76 91 00 F3 2D 48 94 0C A5 BA 90 90 00 7A [21:27:13]RAPDU: F3 2D 48 94 0C A5 BA 90 90 00 [21:27:13]wFMCommunicate OK [21:27:13]SAM_PROTO_SignData done [21:27:13]FM_MakeSignedData done [21:27:13]CreateOFDProtocolMessage [21:27:13]wFMCommunicate request_size=4 [21:27:13]MH_SAM_APDU [21:27:13]CAPDU: 80 11 00 00 [21:27:13]Write to MH i2c: E2 08 00 77 91 80 11 00 00 00 00 00 00 82 [21:27:13]Write i2c OK [21:27:13]MH_I2C_Read... [21:27:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:27:13]Read from MH i2c: E2 [21:27:13]MH_I2C_Read... [21:27:13]Read from MH i2c: E2 17 00 [21:27:13]MH_I2C_Read... [21:27:13]Read from MH i2c: E2 17 00 77 91 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 D0 [21:27:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [21:27:13]wFMCommunicate OK [21:27:13]CreateOFDProtocolMessage done [21:27:13]OFDSenderStorePacket 187930 [21:27:13]StoreOFDPacket docnum=187930 [21:27:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 DA 1C 0D 01 C6 A8 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 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 30 B6 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 7D 7E 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 7E 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 72 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5D 95 00 00 00 00 07 04 06 00 40 7E 05 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8A 01 00 00 F4 03 04 00 35 C7 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 1A DE 02 00 35 04 06 00 DA 94 94 4E 37 31 F3 2D 48 94 0C A5 BA 90 [21:27:13]CheckFolder [21:27:13]dirname=/storage/ofd_packets [21:27:13]CheckFolder done [21:27:13]ProducePacketName [21:27:13]name=ofd_packets/00187930 [21:27:13]NVStorageSaveData ofd_packets/00187930 [21:27:13]File name is /storage/ofd_packets/00187930 [21:27:13]Write 307 bytes [21:27:13]NVStorageSaveData done [21:27:13]OFDSenderStorePacket done [21:27:13]KKMCreateOFDPacket done [21:27:13]NVStorageSaveData kkm_last_timestamp [21:27:13]File name is /storage/kkm_last_timestamp [21:27:13]Write 4 bytes [21:27:13]NVStorageSaveData done [21:27:13]ExternCall_PrintAddStr [21:27:13]wPrintStart [21:27:13]Write to MH i2c: 01 00 00 78 91 09 [21:27:13]Write i2c OK [21:27:13]MH_I2C_Read... [21:27:13]Read from MH i2c: 01 [21:27:13]MH_I2C_Read... [21:27:13]Read from MH i2c: 01 07 00 [21:27:13]MH_I2C_Read... [21:27:13]Read from MH i2c: 01 07 00 78 91 00 00 00 00 00 FF 0F 1E [21:27:13]RasterBufferAndPrint [21:27:13]line Счет N : (1)209982 [21:27:13]line ИНН: 02508201610067 [21:27:13]line Контрольно-Кассовый Чек [21:27:13]line ПРОДАЖА [21:27:13]line ТРК (МРК, ГНК) : 41 [21:27:13]line Товар: 2710194210 [21:27:13]line D-ENERGY ДТ-К-5 [21:27:13]line 46.640 * 77.20 [21:27:13]line = 3600.61 [21:27:13]line НДС 12% НСП 1% [21:27:13]line > о реализуемом товаре [21:27:13]line ОКРУГЛЕНИЕ: -0.61 [21:27:13]line ИТОГО: 3600.00 [21:27:13]line Внесено: 3600.00 [21:27:13]line СДАЧА: 0.00 [21:27:13]line НСП 1% : 31.86 [21:27:13]line НДС 12% : 382.37 [21:27:13]line Наличными: 3600.00 [21:27:13]line Безнал.: 0.00 [21:27:13]line Место: АЗС № 86 "Партнер Нефть" [21:27:13]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [21:27:13]line СНО: Общий режим [21:27:13]line Чек 394 21.10.2024 21:27 [21:27:13]line Смена: 460 ФФД: 1.0 [21:27:13]line ЗНМ: 0300000155 [21:27:13]line РНМ: 0000000000100030 [21:27:13]line Версия ККМ: 001 [21:27:13]line ФМ: 0000000000965340 [21:27:13]line ФД: 187930 [21:27:13]line ФПД: 240331678168881 [21:27:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T212717&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187930&fm=240331678168881&tin=02508201610067®Number=0000000000100030&sum=360000 [21:27:13]written 0, free lines is 4095 [21:27:13]OFD Sender: Processing packet 187930 [packets to send 1062, broken 1061] [21:27:13]ProducePacketName [21:27:13]name=ofd_packets/00187930 [21:27:13]OFD Sender: To server: pG, [21:27:13]CommunicateWithHost lk.salyk.kg:30040 [21:27:13]ConnectInit lk.salyk.kg [21:27:13]Connected sock=10 [21:27:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 DA 1C 0D 01 C6 A8 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 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 30 B6 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 7D 7E 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 7E 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 72 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5D 95 00 00 00 00 07 04 06 00 40 7E 05 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8A 01 00 00 F4 03 04 00 35 C7 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 1A DE 02 00 35 04 06 00 DA 94 94 4E 37 31 F3 2D 48 94 0C A5 BA 90 [21:27:13]Write to MH i2c: 01 00 00 A3 91 34 [21:27:13]Write i2c OK [21:27:13]MH_I2C_Read... [21:27:13]Read from MH i2c: 01 [21:27:13]MH_I2C_Read... [21:27:13]Read from MH i2c: 01 07 00 [21:27:13]MH_I2C_Read... [21:27:13]Read from MH i2c: 01 07 00 A3 91 00 00 00 00 00 64 0C AB [21:27:13]RasterBufferAndPrint [21:27:13]line [21:27:13]line [21:27:13]line [21:27:13]line [21:27:13]line [21:27:13]written 0, free lines is 3176 [21:27:13]MH_Cut [21:27:13]Write to MH i2c: D1 01 00 AA 91 01 0D [21:27:13]Write i2c OK [21:27:13]MH_I2C_Read... [21:27:13]Read from MH i2c: D1 [21:27:13]MH_I2C_Read... [21:27:13]Read from MH i2c: D1 01 00 [21:27:13]MH_I2C_Read... [21:27:13]Read from MH i2c: D1 01 00 AA 91 00 0C [21:27:13]Write to MH i2c: 01 00 00 AB 91 3C [21:27:13]Write i2c OK [21:27:13]MH_I2C_Read... [21:27:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 80 A6 47 00 C2 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 39 36 35 33 34 30 10 04 04 00 1A DE 02 00 F4 03 04 00 24 71 16 67 B6 04 01 00 00 8F CF 2F 73 D8 4D 82 16 [21:27:13]CommunicateWithHost err = 0 [21:27:13]CheckOFDResponse [21:27:13]1017 (14) - 77093643461234 [21:27:13]1041 (16) - 0000000000965340 [21:27:13]1040 (4) - 187930 [21:27:13]1012 (4) - 21.10.2024 15:20 [21:27:13]1206 (1) - 0 [21:27:13]OFD Sender: Remove packet 187930 [21:27:13]ProducePacketName [21:27:13]name=ofd_packets/00187930 [21:27:13]NVStorageDeleteData [21:27:14]OFD Sender: No OFD packet to send [21:27:14]*** Cut start [21:27:14]*** Partial cut [21:27:14]*** CUTSNS_PIN = 1 [21:27:14]*** CUTSNS_PIN = 0 [21:27:15]*** Brake cut motor [21:27:15]Read from MH i2c: 01 [21:27:15]MH_I2C_Read... [21:27:15]*** Stop cut motor [21:27:15]*** Cut end [21:27:15]Read from MH i2c: 01 07 00 [21:27:15]MH_I2C_Read... [21:27:15]Read from MH i2c: 01 07 00 AB 91 00 00 00 00 00 FF 0F 51 [21:27:15]process_action close_receipt done [21:27:15]requested_data is exist [21:27:15]produce_requested_data [21:27:15]requested_item fm.sn is exist - process it [21:27:15]wFMCommunicate request_size=4 [21:27:15]MH_SAM_APDU [21:27:15]CAPDU: 80 11 00 00 [21:27:15]Write to MH i2c: E2 08 00 AC 91 80 11 00 00 00 00 00 00 B7 [21:27:15]Write i2c OK [21:27:15]MH_I2C_Read... [21:27:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:27:15]Read from MH i2c: E2 [21:27:15]MH_I2C_Read... [21:27:15]Read from MH i2c: E2 17 00 [21:27:15]MH_I2C_Read... [21:27:15]Read from MH i2c: E2 17 00 AC 91 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 05 [21:27:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [21:27:15]wFMCommunicate OK [21:27:15]requested_item fd.num is exist - process it [21:27:15]SAM_PROTO_GetFieldsCounters [21:27:15]wFMCommunicate request_size=4 [21:27:15]MH_SAM_APDU [21:27:15]CAPDU: 80 13 00 00 [21:27:15]Write to MH i2c: E2 08 00 AD 91 80 13 00 00 00 00 00 00 BA [21:27:15]Write i2c OK [21:27:15]MH_I2C_Read... [21:27:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:27:15]Read from MH i2c: E2 [21:27:15]MH_I2C_Read... [21:27:15]Read from MH i2c: E2 62 00 [21:27:15]MH_I2C_Read... [21:27:15]Read from MH i2c: E2 62 00 AD 91 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 1A DE 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 8A 01 00 00 5E 04 04 00 8A 01 00 00 57 04 04 00 8B 01 00 00 19 04 04 00 00 00 00 00 90 00 29 [21:27:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 1A DE 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 8A 01 00 00 5E 04 04 00 8A 01 00 00 57 04 04 00 8B 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:27:15]wFMCommunicate OK [21:27:15]SAM_PROTO_GetFieldsCounters done [21:27:15]requested_item shift.num is exist - process it [21:27:15]requested_item shift.opened is exist - process it [21:27:15]req_shift_opened [21:27:15]FM_GetShiftState [21:27:15]SAM_PROTO_GetShiftState [21:27:15]wFMCommunicate request_size=4 [21:27:15]MH_SAM_APDU [21:27:15]CAPDU: 80 13 01 00 [21:27:15]Write to MH i2c: E2 08 00 AE 91 80 13 01 00 00 00 00 00 BC [21:27:15]Write i2c OK [21:27:15]MH_I2C_Read... [21:27:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:27:15]Read from MH i2c: E2 [21:27:15]MH_I2C_Read... [21:27:15]Read from MH i2c: E2 0E 00 [21:27:15]MH_I2C_Read... [21:27:15]Read from MH i2c: E2 0E 00 AE 91 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 1B [21:27:15]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [21:27:15]wFMCommunicate OK [21:27:15]SAM_PROTO_GetShiftState done [21:27:15]FM_GetShiftState done [21:27:15]req_shift_opened done [21:27:15]requested_item shift.open_date is exist - process it [21:27:15]req_shift_open_date [21:27:15]req_shift_open_date done [21:27:15]produce_requested_data done [21:27:15]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187930,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [21:27:15]process_action_free close_receipt [21:27:15]json_value_free [21:27:15]json_value_free done [21:27:15]process_json_proto returns [21:27:15]Send response to host [21:27:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187930,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [21:27:15]free response buf [21:27:15]execute_script done [21:27:15]execute_script returns [21:27:15]free content buf [21:27:15]Sock 9.Close socket [21:27:15]Sock 9.Thread stoped [21:27:19]OFD Sender: No OFD packet to send [21:27:24]OFD Sender: No OFD packet to send [21:27:29]OFD Sender: No OFD packet to send [21:27:34]OFD Sender: No OFD packet to send [21:27:39]OFD Sender: No OFD packet to send [21:27:44]OFD Sender: No OFD packet to send [21:27:49]OFD Sender: No OFD packet to send [21:27:54]OFD Sender: No OFD packet to send [21:27:59]OFD Sender: No OFD packet to send [21:28:04]OFD Sender: No OFD packet to send [21:28:09]OFD Sender: No OFD packet to send [21:28:14]OFD Sender: No OFD packet to send [21:28:19]OFD Sender: No OFD packet to send [21:28:24]OFD Sender: No OFD packet to send [21:28:29]OFD Sender: No OFD packet to send [21:28:34]OFD Sender: No OFD packet to send [21:28:39]OFD Sender: No OFD packet to send [21:28:44]OFD Sender: No OFD packet to send [21:28:49]OFD Sender: No OFD packet to send [21:28:54]OFD Sender: No OFD packet to send [21:28:59]OFD Sender: No OFD packet to send [21:29:04]OFD Sender: No OFD packet to send [21:29:09]OFD Sender: No OFD packet to send [21:29:14]OFD Sender: No OFD packet to send [21:29:19]OFD Sender: No OFD packet to send [21:29:24]OFD Sender: No OFD packet to send [21:29:29]OFD Sender: No OFD packet to send [21:29:34]OFD Sender: No OFD packet to send [21:29:39]OFD Sender: No OFD packet to send [21:29:44]OFD Sender: No OFD packet to send [21:29:50]OFD Sender: No OFD packet to send [21:29:55]OFD Sender: No OFD packet to send [21:30:00]OFD Sender: No OFD packet to send [21:30:05]OFD Sender: No OFD packet to send [21:30:10]OFD Sender: No OFD packet to send [21:30:15]OFD Sender: No OFD packet to send [21:30:20]OFD Sender: No OFD packet to send [21:30:25]OFD Sender: No OFD packet to send [21:30:30]OFD Sender: No OFD packet to send [21:30:35]OFD Sender: No OFD packet to send [21:30:40]OFD Sender: No OFD packet to send [21:30:45]OFD Sender: No OFD packet to send [21:30:50]OFD Sender: No OFD packet to send [21:30:55]OFD Sender: No OFD packet to send [21:31:00]OFD Sender: No OFD packet to send [21:31:05]OFD Sender: No OFD packet to send [21:31:10]OFD Sender: No OFD packet to send [21:31:15]OFD Sender: No OFD packet to send [21:31:20]OFD Sender: No OFD packet to send [21:31:25]OFD Sender: No OFD packet to send [21:31:30]OFD Sender: No OFD packet to send [21:31:35]OFD Sender: No OFD packet to send [21:31:40]OFD Sender: No OFD packet to send [21:31:45]OFD Sender: No OFD packet to send [21:31:50]OFD Sender: No OFD packet to send [21:31:55]OFD Sender: No OFD packet to send [21:31:58]accept exits with 8 [21:31:58]New connection [21:31:58]New thread 3067014500 created [21:31:58]Thread 3067157860 joined [21:31:58]Waiting for new connection... [21:31:58] Sock 8.Parse request [21:31:58]Sock 8.Check first char [21:31:58]Sock 8.First char is OK [21:31:58]request: POST /json_proto HTTP/1.0 [21:31:58]Method: POST [21:31:58]URL: /json_proto [21:31:58]Method is POST - this is cgi request [21:31:58]url: /json_proto [21:31:58]query_string will be loaded in cgi processing [21:31:58]execute_cgi json_proto POST (null) [21:31:58]execute_cgi path=json_proto method=POST [21:31:58]POST find Content-Length [21:31:58]Host: 172.17.42.131:8080 [21:31:58]Content-Length: 677 [21:31:58]Content-Type: application/json [21:31:58] [21:31:58]POST finish read [21:31:58]Found Content-Length = 677 [21:31:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209983", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "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" ] } } [21:31:58]execute_script... [21:31: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)209983", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "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" ] } } [21:31:58]POST & json_proto [21:31:58]process_json_proto [21:31:58]json parsed OK: [21:31:58]protocol is kg_v1.0 [21:31:58]action value=close_receipt [21:31:58]process_action close_receipt [21:31:58]cmd_close_receipt [21:31:58]MH_GetDate [21:31:58]Write to MH i2c: F0 00 00 AF 91 2F [21:31:59]Write i2c OK [21:31:59]MH_I2C_Read... [21:31:59]Read from MH i2c: F0 [21:31:59]MH_I2C_Read... [21:31:59]Read from MH i2c: F0 09 00 [21:31:59]MH_I2C_Read... [21:31:59]Read from MH i2c: F0 09 00 AF 91 00 54 C8 16 67 A0 18 CA 66 B9 [21:31:59]GetLastDocTimeStamp 1729546037 [21:31:59]current date 1729546324 [21:31:59]FM_GetShiftState [21:31:59]SAM_PROTO_GetShiftState [21:31:59]wFMCommunicate request_size=4 [21:31:59]MH_SAM_APDU [21:31:59]CAPDU: 80 13 01 00 [21:31:59]Write to MH i2c: E2 08 00 B0 91 80 13 01 00 00 00 00 00 BE [21:31:59]Write i2c OK [21:31:59]MH_I2C_Read... [21:31:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:31:59]Read from MH i2c: E2 [21:31:59]MH_I2C_Read... [21:31:59]Read from MH i2c: E2 0E 00 [21:31:59]MH_I2C_Read... [21:31:59]Read from MH i2c: E2 0E 00 B0 91 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 1D [21:31:59]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [21:31:59]wFMCommunicate OK [21:31:59]SAM_PROTO_GetShiftState done [21:31:59]FM_GetShiftState done [21:31:59]opened in 1729469754 [21:31:59]opened+sec_in_day 1729556154 [21:31:59]quantity*price = 30038 [21:31:59]sum+1 = 30039 [21:31:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 395 21.10.2024 21:32 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 187931 ФПД: 134809653191303 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T213204&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187931&fm=134809653191303&tin=02508201610067®Number=0000000000100030&sum=30000 [21:32:00]StoreToDocumentArchive [21:32:00]shift 460 fd 187931 [21:32:00]save to /storage/0460/doc_00187931 [21:32:00]save last doc name /storage/0460/doc_00187931 to /storage/kkm_last_doc_name [21:32:00]save OK [21:32:00]Clear old archive folders... [21:32:00]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:32:00]tlvbuf is 0122E2F0 [21:32:00]SAM_PROTO_ClearQueue [21:32:00]wFMCommunicate request_size=4 [21:32:00]MH_SAM_APDU [21:32:00]CAPDU: 80 09 00 00 [21:32:00]Write to MH i2c: E2 08 00 BD 91 80 09 00 00 00 00 00 00 C0 [21:32:00]Write i2c OK [21:32:00]MH_I2C_Read... [21:32:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:32:00]Read from MH i2c: E2 [21:32:00]MH_I2C_Read... [21:32:00]Read from MH i2c: E2 03 00 [21:32:00]MH_I2C_Read... [21:32:00]Read from MH i2c: E2 03 00 BD 91 00 90 00 C2 [21:32:00]RAPDU: 90 00 [21:32:00]wFMCommunicate OK [21:32:00]SAM_PROTO_ClearQueue done [21:32:00]KKMCreateOFDPacket [21:32:00]OFDProtocolAddRootSTLVToBuf [21:32:00]FM_MakeSignedData [21:32:00]FM_MakeSignedData [21:32:00]SAM_PROTO_SignData [21:32:00]wFMCommunicate request_size=4 [21:32:00]MH_SAM_APDU [21:32:00]CAPDU: 80 0D 01 02 [21:32:00]Write to MH i2c: E2 08 00 BE 91 80 0D 01 02 00 00 00 00 C8 [21:32:00]Write i2c OK [21:32:00]MH_I2C_Read... [21:32:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:32:00]Read from MH i2c: E2 [21:32:00]MH_I2C_Read... [21:32:00]Read from MH i2c: E2 03 00 [21:32:00]MH_I2C_Read... [21:32:00]Read from MH i2c: E2 03 00 BE 91 00 90 00 C3 [21:32:00]RAPDU: 90 00 [21:32:00]wFMCommunicate OK [21:32:00]wFMCommunicate request_size=255 [21:32:00]MH_SAM_APDU [21:32:00]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 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 8B 01 00 00 F4 03 04 00 54 C8 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 1B DE 02 00 35 04 06 00 7A [21:32:00]Write to MH i2c: E2 02 01 BF 91 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 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 8B 01 00 00 F4 03 04 00 54 C8 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 1B DE 02 00 35 04 06 00 7A 00 00 96 [21:32:00]Write i2c OK [21:32:00]MH_I2C_Read... [21:32:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:32:00]Read from MH i2c: E2 [21:32:00]MH_I2C_Read... [21:32:00]Read from MH i2c: E2 03 00 [21:32:00]MH_I2C_Read... [21:32:00]Read from MH i2c: E2 03 00 BF 91 00 90 00 C4 [21:32:00]RAPDU: 90 00 [21:32:00]wFMCommunicate OK [21:32:00]wFMCommunicate request_size=10 [21:32:00]MH_SAM_APDU [21:32:00]CAPDU: 80 0D 02 02 05 9B D1 7D A2 87 [21:32:00]Write to MH i2c: E2 0D 00 C0 91 80 0D 02 02 05 00 9B D1 7D A2 87 00 00 E7 [21:32:00]Write i2c OK [21:32:00]MH_I2C_Read... [21:32:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:32:00]Read from MH i2c: E2 [21:32:00]MH_I2C_Read... [21:32:00]Read from MH i2c: E2 03 00 [21:32:00]MH_I2C_Read... [21:32:00]Read from MH i2c: E2 03 00 C0 91 00 90 00 C5 [21:32:00]RAPDU: 90 00 [21:32:00]wFMCommunicate OK [21:32:00]wFMCommunicate request_size=4 [21:32:00]MH_SAM_APDU [21:32:00]CAPDU: 80 0D 03 02 [21:32:00]Write to MH i2c: E2 08 00 C1 91 80 0D 03 02 00 00 00 00 CD [21:32:00]Write i2c OK [21:32:00]MH_I2C_Read... [21:32:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:32:00]OFD Sender: No OFD packet to send [21:32:00]Read from MH i2c: E2 [21:32:00]MH_I2C_Read... [21:32:00]Read from MH i2c: E2 0B 00 [21:32:00]MH_I2C_Read... [21:32:00]Read from MH i2c: E2 0B 00 C1 91 00 97 E8 36 C5 59 08 E2 3D 90 00 C8 [21:32:00]RAPDU: 97 E8 36 C5 59 08 E2 3D 90 00 [21:32:00]wFMCommunicate OK [21:32:00]SAM_PROTO_SignData done [21:32:00]FM_MakeSignedData done [21:32:00]CreateOFDProtocolMessage [21:32:00]wFMCommunicate request_size=4 [21:32:00]MH_SAM_APDU [21:32:00]CAPDU: 80 11 00 00 [21:32:00]Write to MH i2c: E2 08 00 C2 91 80 11 00 00 00 00 00 00 CD [21:32:00]Write i2c OK [21:32:00]MH_I2C_Read... [21:32:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:32:00]Read from MH i2c: E2 [21:32:00]MH_I2C_Read... [21:32:00]Read from MH i2c: E2 17 00 [21:32:00]MH_I2C_Read... [21:32:00]Read from MH i2c: E2 17 00 C2 91 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 1B [21:32:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [21:32:00]wFMCommunicate OK [21:32:00]CreateOFDProtocolMessage done [21:32:00]OFDSenderStorePacket 187931 [21:32:00]StoreOFDPacket docnum=187931 [21:32:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 49 99 07 01 06 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 33 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 8B 01 00 00 F4 03 04 00 54 C8 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 1B DE 02 00 35 04 06 00 7A 9B D1 7D A2 87 97 E8 36 C5 59 08 E2 3D [21:32:00]CheckFolder [21:32:00]dirname=/storage/ofd_packets [21:32:00]CheckFolder done [21:32:00]ProducePacketName [21:32:00]name=ofd_packets/00187931 [21:32:00]NVStorageSaveData ofd_packets/00187931 [21:32:00]File name is /storage/ofd_packets/00187931 [21:32:00]Write 301 bytes [21:32:00]NVStorageSaveData done [21:32:00]OFDSenderStorePacket done [21:32:00]KKMCreateOFDPacket done [21:32:00]NVStorageSaveData kkm_last_timestamp [21:32:00]File name is /storage/kkm_last_timestamp [21:32:00]Write 4 bytes [21:32:00]NVStorageSaveData done [21:32:00]ExternCall_PrintAddStr [21:32:00]wPrintStart [21:32:00]Write to MH i2c: 01 00 00 C3 91 54 [21:32:00]Write i2c OK [21:32:00]MH_I2C_Read... [21:32:00]Read from MH i2c: 01 [21:32:00]MH_I2C_Read... [21:32:00]Read from MH i2c: 01 07 00 [21:32:00]MH_I2C_Read... [21:32:00]Read from MH i2c: 01 07 00 C3 91 00 00 00 00 00 FF 0F 69 [21:32:00]RasterBufferAndPrint [21:32:00]line Счет N : (1)209983 [21:32:00]line ИНН: 02508201610067 [21:32:00]line Контрольно-Кассовый Чек [21:32:00]line ПРОДАЖА [21:32:00]line ТРК (МРК, ГНК) : 22 [21:32:00]line Товар: 2710124130 [21:32:00]line Аи-92-К-3 [21:32:00]line 4.490 * 66.90 [21:32:00]line = 300.38 [21:32:00]line НДС 12% НСП 1% [21:32:00]line > о реализуемом товаре [21:32:00]line ОКРУГЛЕНИЕ: -0.38 [21:32:00]line ИТОГО: 300.00 [21:32:00]line Внесено: 300.00 [21:32:00]line СДАЧА: 0.00 [21:32:00]line НСП 1% : 2.66 [21:32:00]line НДС 12% : 31.90 [21:32:00]line Наличными: 300.00 [21:32:00]line Безнал.: 0.00 [21:32:00]line Место: АЗС № 86 "Партнер Нефть" [21:32:00]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [21:32:00]line СНО: Общий режим [21:32:00]line Чек 395 21.10.2024 21:32 [21:32:00]line Смена: 460 ФФД: 1.0 [21:32:00]line ЗНМ: 0300000155 [21:32:00]line РНМ: 0000000000100030 [21:32:00]line Версия ККМ: 001 [21:32:00]line ФМ: 0000000000965340 [21:32:00]line ФД: 187931 [21:32:00]line ФПД: 134809653191303 [21:32:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T213204&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187931&fm=134809653191303&tin=02508201610067®Number=0000000000100030&sum=30000 [21:32:00]written 0, free lines is 4095 [21:32:00]OFD Sender: Processing packet 187931 [packets to send 1062, broken 1061] [21:32:00]ProducePacketName [21:32:00]name=ofd_packets/00187931 [21:32:00]OFD Sender: To server: pG, [21:32:00]CommunicateWithHost lk.salyk.kg:30040 [21:32:00]ConnectInit lk.salyk.kg [21:32:01]Connected sock=10 [21:32:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 49 99 07 01 06 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 33 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 8B 01 00 00 F4 03 04 00 54 C8 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 1B DE 02 00 35 04 06 00 7A 9B D1 7D A2 87 97 E8 36 C5 59 08 E2 3D [21:32:01]Write to MH i2c: 01 00 00 EE 91 7F [21:32:01]Write i2c OK [21:32:01]MH_I2C_Read... [21:32:01]Read from MH i2c: 01 [21:32:01]MH_I2C_Read... [21:32:01]Read from MH i2c: 01 07 00 [21:32:01]MH_I2C_Read... [21:32:01]Read from MH i2c: 01 07 00 EE 91 00 00 00 00 00 5F 0C F1 [21:32:01]RasterBufferAndPrint [21:32:01]line [21:32:01]line [21:32:01]line [21:32:01]line [21:32:01]line [21:32:01]written 0, free lines is 3170 [21:32:01]MH_Cut [21:32:01]Write to MH i2c: D1 01 00 F5 91 01 58 [21:32:01]Write i2c OK [21:32:01]MH_I2C_Read... [21:32:01]Read from MH i2c: D1 [21:32:01]MH_I2C_Read... [21:32:01]Read from MH i2c: D1 01 00 [21:32:01]MH_I2C_Read... [21:32:01]Read from MH i2c: D1 01 00 F5 91 00 57 [21:32:01]Write to MH i2c: 01 00 00 F6 91 87 [21:32:01]Write i2c OK [21:32:01]MH_I2C_Read... [21:32:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 F0 FE 47 00 2E 46 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 1B DE 02 00 F4 03 04 00 43 72 16 67 B6 04 01 00 00 52 C6 B2 55 E4 4C 7F 43 [21:32:01]CommunicateWithHost err = 0 [21:32:01]CheckOFDResponse [21:32:01]1017 (14) - 77093643461234 [21:32:01]1041 (16) - 0000000000965340 [21:32:01]1040 (4) - 187931 [21:32:01]1012 (4) - 21.10.2024 15:24 [21:32:01]1206 (1) - 0 [21:32:01]OFD Sender: Remove packet 187931 [21:32:01]ProducePacketName [21:32:01]name=ofd_packets/00187931 [21:32:01]NVStorageDeleteData [21:32:01]OFD Sender: No OFD packet to send [21:32:02]*** Cut start [21:32:02]*** Partial cut [21:32:02]*** CUTSNS_PIN = 1 [21:32:02]*** CUTSNS_PIN = 0 [21:32:02]*** Brake cut motor [21:32:03]Read from MH i2c: 01 [21:32:03]MH_I2C_Read... [21:32:03]*** Stop cut motor [21:32:03]*** Cut end [21:32:03]Read from MH i2c: 01 07 00 [21:32:03]MH_I2C_Read... [21:32:03]Read from MH i2c: 01 07 00 F6 91 00 00 00 00 00 FF 0F 9C [21:32:03]process_action close_receipt done [21:32:03]requested_data is exist [21:32:03]produce_requested_data [21:32:03]requested_item fm.sn is exist - process it [21:32:03]wFMCommunicate request_size=4 [21:32:03]MH_SAM_APDU [21:32:03]CAPDU: 80 11 00 00 [21:32:03]Write to MH i2c: E2 08 00 F7 91 80 11 00 00 00 00 00 00 02 [21:32:03]Write i2c OK [21:32:03]MH_I2C_Read... [21:32:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:32:03]Read from MH i2c: E2 [21:32:03]MH_I2C_Read... [21:32:03]Read from MH i2c: E2 17 00 [21:32:03]MH_I2C_Read... [21:32:03]Read from MH i2c: E2 17 00 F7 91 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 50 [21:32:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [21:32:03]wFMCommunicate OK [21:32:03]requested_item fd.num is exist - process it [21:32:03]SAM_PROTO_GetFieldsCounters [21:32:03]wFMCommunicate request_size=4 [21:32:03]MH_SAM_APDU [21:32:03]CAPDU: 80 13 00 00 [21:32:03]Write to MH i2c: E2 08 00 F8 91 80 13 00 00 00 00 00 00 05 [21:32:03]Write i2c OK [21:32:03]MH_I2C_Read... [21:32:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:32:03]Read from MH i2c: E2 [21:32:03]MH_I2C_Read... [21:32:03]Read from MH i2c: E2 62 00 [21:32:03]MH_I2C_Read... [21:32:03]Read from MH i2c: E2 62 00 F8 91 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 1B DE 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 8B 01 00 00 5E 04 04 00 8B 01 00 00 57 04 04 00 8C 01 00 00 19 04 04 00 00 00 00 00 90 00 78 [21:32:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 1B DE 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 8B 01 00 00 5E 04 04 00 8B 01 00 00 57 04 04 00 8C 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:32:03]wFMCommunicate OK [21:32:03]SAM_PROTO_GetFieldsCounters done [21:32:03]requested_item shift.num is exist - process it [21:32:03]requested_item shift.opened is exist - process it [21:32:03]req_shift_opened [21:32:03]FM_GetShiftState [21:32:03]SAM_PROTO_GetShiftState [21:32:03]wFMCommunicate request_size=4 [21:32:03]MH_SAM_APDU [21:32:03]CAPDU: 80 13 01 00 [21:32:03]Write to MH i2c: E2 08 00 F9 91 80 13 01 00 00 00 00 00 07 [21:32:03]Write i2c OK [21:32:03]MH_I2C_Read... [21:32:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:32:03]Read from MH i2c: E2 [21:32:03]MH_I2C_Read... [21:32:03]Read from MH i2c: E2 0E 00 [21:32:03]MH_I2C_Read... [21:32:03]Read from MH i2c: E2 0E 00 F9 91 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 66 [21:32:03]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [21:32:03]wFMCommunicate OK [21:32:03]SAM_PROTO_GetShiftState done [21:32:03]FM_GetShiftState done [21:32:03]req_shift_opened done [21:32:03]requested_item shift.open_date is exist - process it [21:32:03]req_shift_open_date [21:32:03]req_shift_open_date done [21:32:03]produce_requested_data done [21:32:03]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187931,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [21:32:03]process_action_free close_receipt [21:32:03]json_value_free [21:32:03]json_value_free done [21:32:03]process_json_proto returns [21:32:03]Send response to host [21:32:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187931,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [21:32:03]free response buf [21:32:03]execute_script done [21:32:03]execute_script returns [21:32:03]free content buf [21:32:03]Sock 8.Close socket [21:32:03]Sock 8.Thread stoped [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:47]OFD Sender: No OFD packet to send [21:35:53]OFD Sender: No OFD packet to send [21:35:58]OFD Sender: No OFD packet to send [21:36:03]OFD Sender: No OFD packet to send [21:36:08]OFD Sender: No OFD packet to send [21:36:13]OFD Sender: No OFD packet to send [21:36:18]OFD Sender: No OFD packet to send [21:36:23]OFD Sender: No OFD packet to send [21:36:28]OFD Sender: No OFD packet to send [21:36:33]OFD Sender: No OFD packet to send [21:36:38]OFD Sender: No OFD packet to send [21:36:43]OFD Sender: No OFD packet to send [21:36:48]OFD Sender: No OFD packet to send [21:36:53]OFD Sender: No OFD packet to send [21:36:58]OFD Sender: No OFD packet to send [21:37:03]OFD Sender: No OFD packet to send [21:37:08]OFD Sender: No OFD packet to send [21:37:13]OFD Sender: No OFD packet to send [21:37:18]OFD Sender: No OFD packet to send [21:37:23]OFD Sender: No OFD packet to send [21:37:28]OFD Sender: No OFD packet to send [21:37:33]OFD Sender: No OFD packet to send [21:37:38]OFD Sender: No OFD packet to send [21:37:43]OFD Sender: No OFD packet to send [21:37:48]OFD Sender: No OFD packet to send [21:37:53]OFD Sender: No OFD packet to send [21:37:58]OFD Sender: No OFD packet to send [21:38:03]OFD Sender: No OFD packet to send [21:38:08]OFD Sender: No OFD packet to send [21:38:13]OFD Sender: No OFD packet to send [21:38:18]OFD Sender: No OFD packet to send [21:38:23]OFD Sender: No OFD packet to send [21:38:28]OFD Sender: No OFD packet to send [21:38:33]OFD Sender: No OFD packet to send [21:38:38]OFD Sender: No OFD packet to send [21:38:43]OFD Sender: No OFD packet to send [21:38:48]OFD Sender: No OFD packet to send [21:38:53]OFD Sender: No OFD packet to send [21:38:58]OFD Sender: No OFD packet to send [21:39:00]accept exits with 9 [21:39:00]New connection [21:39:00]New thread 3067157860 created [21:39:00]Thread 3067014500 joined [21:39:00]Waiting for new connection... [21:39:00] Sock 9.Parse request [21:39:00]Sock 9.Check first char [21:39:00]Sock 9.First char is OK [21:39:00]request: POST /json_proto HTTP/1.0 [21:39:00]Method: POST [21:39:00]URL: /json_proto [21:39:00]Method is POST - this is cgi request [21:39:00]url: /json_proto [21:39:00]query_string will be loaded in cgi processing [21:39:00]execute_cgi json_proto POST (null) [21:39:00]execute_cgi path=json_proto method=POST [21:39:00]POST find Content-Length [21:39:00]Host: 172.17.42.131:8080 [21:39:00]Content-Length: 677 [21:39:00]Content-Type: application/json [21:39:00] [21:39:00]POST finish read [21:39:00]Found Content-Length = 677 [21:39:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209984", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:39:00]execute_script... [21:39: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)209984", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:39:00]POST & json_proto [21:39:00]process_json_proto [21:39:00]json parsed OK: [21:39:00]protocol is kg_v1.0 [21:39:00]action value=close_receipt [21:39:00]process_action close_receipt [21:39:00]cmd_close_receipt [21:39:00]MH_GetDate [21:39:00]Write to MH i2c: F0 00 00 FA 91 7A [21:39:00]Write i2c OK [21:39:00]MH_I2C_Read... [21:39:00]Read from MH i2c: F0 [21:39:00]MH_I2C_Read... [21:39:00]Read from MH i2c: F0 09 00 [21:39:00]MH_I2C_Read... [21:39:00]Read from MH i2c: F0 09 00 FA 91 00 FA C9 16 67 A0 18 CA 66 AB [21:39:00]GetLastDocTimeStamp 1729546324 [21:39:00]current date 1729546746 [21:39:00]FM_GetShiftState [21:39:00]SAM_PROTO_GetShiftState [21:39:00]wFMCommunicate request_size=4 [21:39:00]MH_SAM_APDU [21:39:00]CAPDU: 80 13 01 00 [21:39:00]Write to MH i2c: E2 08 00 FB 91 80 13 01 00 00 00 00 00 09 [21:39:00]Write i2c OK [21:39:00]MH_I2C_Read... [21:39:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:39:00]Read from MH i2c: E2 [21:39:00]MH_I2C_Read... [21:39:00]Read from MH i2c: E2 0E 00 [21:39:00]MH_I2C_Read... [21:39:00]Read from MH i2c: E2 0E 00 FB 91 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 68 [21:39:00]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [21:39:00]wFMCommunicate OK [21:39:00]SAM_PROTO_GetShiftState done [21:39:00]FM_GetShiftState done [21:39:00]opened in 1729469754 [21:39:00]opened+sec_in_day 1729556154 [21:39:00]quantity*price = 50041 [21:39:00]sum+1 = 50042 [21:39:00]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 396 21.10.2024 21:39 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 187932 ФПД: 23600661700836 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T213906&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187932&fm=23600661700836&tin=02508201610067®Number=0000000000100030&sum=50000 [21:39:02]StoreToDocumentArchive [21:39:02]shift 460 fd 187932 [21:39:02]save to /storage/0460/doc_00187932 [21:39:02]save last doc name /storage/0460/doc_00187932 to /storage/kkm_last_doc_name [21:39:02]save OK [21:39:02]Clear old archive folders... [21:39:02]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:39:02]tlvbuf is 013BA590 [21:39:02]SAM_PROTO_ClearQueue [21:39:02]wFMCommunicate request_size=4 [21:39:02]MH_SAM_APDU [21:39:02]CAPDU: 80 09 00 00 [21:39:02]Write to MH i2c: E2 08 00 08 92 80 09 00 00 00 00 00 00 0C [21:39:02]Write i2c OK [21:39:02]MH_I2C_Read... [21:39:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:39:02]Read from MH i2c: E2 [21:39:02]MH_I2C_Read... [21:39:02]Read from MH i2c: E2 03 00 [21:39:02]MH_I2C_Read... [21:39:02]Read from MH i2c: E2 03 00 08 92 00 90 00 0E [21:39:02]RAPDU: 90 00 [21:39:02]wFMCommunicate OK [21:39:02]SAM_PROTO_ClearQueue done [21:39:02]KKMCreateOFDPacket [21:39:02]OFDProtocolAddRootSTLVToBuf [21:39:02]FM_MakeSignedData [21:39:02]FM_MakeSignedData [21:39:02]SAM_PROTO_SignData [21:39:02]wFMCommunicate request_size=4 [21:39:02]MH_SAM_APDU [21:39:02]CAPDU: 80 0D 01 02 [21:39:02]Write to MH i2c: E2 08 00 09 92 80 0D 01 02 00 00 00 00 14 [21:39:02]Write i2c OK [21:39:02]MH_I2C_Read... [21:39:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:39:02]Read from MH i2c: E2 [21:39:02]MH_I2C_Read... [21:39:02]Read from MH i2c: E2 03 00 [21:39:02]MH_I2C_Read... [21:39:02]Read from MH i2c: E2 03 00 09 92 00 90 00 0F [21:39:02]RAPDU: 90 00 [21:39:02]wFMCommunicate OK [21:39:02]wFMCommunicate request_size=255 [21:39:02]MH_SAM_APDU [21:39: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 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 01 00 00 F4 03 04 00 FA C9 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 1C DE 02 00 35 04 06 00 15 [21:39:02]Write to MH i2c: E2 02 01 0A 92 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 01 00 00 F4 03 04 00 FA C9 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 1C DE 02 00 35 04 06 00 15 00 00 32 [21:39:02]Write i2c OK [21:39:02]MH_I2C_Read... [21:39:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:39:02]Read from MH i2c: E2 [21:39:02]MH_I2C_Read... [21:39:02]Read from MH i2c: E2 03 00 [21:39:02]MH_I2C_Read... [21:39:02]Read from MH i2c: E2 03 00 0A 92 00 90 00 10 [21:39:02]RAPDU: 90 00 [21:39:02]wFMCommunicate OK [21:39:02]wFMCommunicate request_size=10 [21:39:02]MH_SAM_APDU [21:39:02]CAPDU: 80 0D 02 02 05 76 F5 0E A0 E4 [21:39:02]Write to MH i2c: E2 0D 00 0B 92 80 0D 02 02 05 00 76 F5 0E A0 E4 00 00 1E [21:39:02]Write i2c OK [21:39:02]MH_I2C_Read... [21:39:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:39:02]Read from MH i2c: E2 [21:39:02]MH_I2C_Read... [21:39:02]Read from MH i2c: E2 03 00 [21:39:02]MH_I2C_Read... [21:39:02]Read from MH i2c: E2 03 00 0B 92 00 90 00 11 [21:39:02]RAPDU: 90 00 [21:39:02]wFMCommunicate OK [21:39:02]wFMCommunicate request_size=4 [21:39:02]MH_SAM_APDU [21:39:02]CAPDU: 80 0D 03 02 [21:39:02]Write to MH i2c: E2 08 00 0C 92 80 0D 03 02 00 00 00 00 19 [21:39:02]Write i2c OK [21:39:02]MH_I2C_Read... [21:39:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:39:02]Read from MH i2c: E2 [21:39:02]MH_I2C_Read... [21:39:02]Read from MH i2c: E2 0B 00 [21:39:02]MH_I2C_Read... [21:39:02]Read from MH i2c: E2 0B 00 0C 92 00 7D 49 54 89 A2 FA 24 50 90 00 CD [21:39:02]RAPDU: 7D 49 54 89 A2 FA 24 50 90 00 [21:39:02]wFMCommunicate OK [21:39:02]SAM_PROTO_SignData done [21:39:02]FM_MakeSignedData done [21:39:02]CreateOFDProtocolMessage [21:39:02]wFMCommunicate request_size=4 [21:39:02]MH_SAM_APDU [21:39:02]CAPDU: 80 11 00 00 [21:39:02]Write to MH i2c: E2 08 00 0D 92 80 11 00 00 00 00 00 00 19 [21:39:02]Write i2c OK [21:39:02]MH_I2C_Read... [21:39:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:39:02]Read from MH i2c: E2 [21:39:02]MH_I2C_Read... [21:39:02]Read from MH i2c: E2 17 00 [21:39:02]MH_I2C_Read... [21:39:02]Read from MH i2c: E2 17 00 0D 92 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 67 [21:39:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [21:39:02]wFMCommunicate OK [21:39:02]CreateOFDProtocolMessage done [21:39:02]OFDSenderStorePacket 187932 [21:39:02]StoreOFDPacket docnum=187932 [21:39:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 08 14 07 01 E3 48 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 01 00 00 F4 03 04 00 FA C9 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 1C DE 02 00 35 04 06 00 15 76 F5 0E A0 E4 7D 49 54 89 A2 FA 24 50 [21:39:02]CheckFolder [21:39:02]dirname=/storage/ofd_packets [21:39:02]CheckFolder done [21:39:02]ProducePacketName [21:39:02]name=ofd_packets/00187932 [21:39:02]NVStorageSaveData ofd_packets/00187932 [21:39:02]File name is /storage/ofd_packets/00187932 [21:39:02]Write 301 bytes [21:39:02]NVStorageSaveData done [21:39:02]OFDSenderStorePacket done [21:39:02]KKMCreateOFDPacket done [21:39:02]NVStorageSaveData kkm_last_timestamp [21:39:02]File name is /storage/kkm_last_timestamp [21:39:02]Write 4 bytes [21:39:02]NVStorageSaveData done [21:39:02]ExternCall_PrintAddStr [21:39:02]wPrintStart [21:39:02]Write to MH i2c: 01 00 00 0E 92 A0 [21:39:02]Write i2c OK [21:39:02]MH_I2C_Read... [21:39:02]Read from MH i2c: 01 [21:39:02]MH_I2C_Read... [21:39:02]Read from MH i2c: 01 07 00 [21:39:02]MH_I2C_Read... [21:39:02]Read from MH i2c: 01 07 00 0E 92 00 00 00 00 00 FF 0F B5 [21:39:02]RasterBufferAndPrint [21:39:02]line Счет N : (1)209984 [21:39:02]line ИНН: 02508201610067 [21:39:02]line Контрольно-Кассовый Чек [21:39:02]line ПРОДАЖА [21:39:02]line ТРК (МРК, ГНК) : 42 [21:39:02]line Товар: 2710124130 [21:39:02]line Аи-92-К-3 [21:39:02]line 7.480 * 66.90 [21:39:02]line = 500.41 [21:39:02]line НДС 12% НСП 1% [21:39:02]line > о реализуемом товаре [21:39:02]line ОКРУГЛЕНИЕ: -0.41 [21:39:02]line ИТОГО: 500.00 [21:39:02]line Внесено: 500.00 [21:39:02]line СДАЧА: 0.00 [21:39:02]line НСП 1% : 4.43 [21:39:02]line НДС 12% : 53.14 [21:39:02]line Наличными: 500.00 [21:39:02]line Безнал.: 0.00 [21:39:02]line Место: АЗС № 86 "Партнер Нефть" [21:39:02]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [21:39:02]line СНО: Общий режим [21:39:02]line Чек 396 21.10.2024 21:39 [21:39:02]line Смена: 460 ФФД: 1.0 [21:39:02]line ЗНМ: 0300000155 [21:39:02]line РНМ: 0000000000100030 [21:39:02]line Версия ККМ: 001 [21:39:02]line ФМ: 0000000000965340 [21:39:02]line ФД: 187932 [21:39:02]line ФПД: 23600661700836 [21:39:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T213906&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187932&fm=23600661700836&tin=02508201610067®Number=0000000000100030&sum=50000 [21:39:02]OFD Sender: Processing packet 187932 [packets to send 1062, broken 1061] [21:39:02]ProducePacketName [21:39:02]name=ofd_packets/00187932 [21:39:02]OFD Sender: To server: pG, [21:39:02]CommunicateWithHost lk.salyk.kg:30040 [21:39:02]ConnectInit lk.salyk.kg [21:39:02]written 0, free lines is 4095 [21:39:03]Write to MH i2c: 01 00 00 39 92 CB [21:39:03]Write i2c OK [21:39:03]MH_I2C_Read... [21:39:03]Read from MH i2c: 01 [21:39:03]MH_I2C_Read... [21:39:03]Read from MH i2c: 01 07 00 [21:39:03]MH_I2C_Read... [21:39:03]Read from MH i2c: 01 07 00 39 92 00 00 00 00 00 5A 0C 38 [21:39:03]RasterBufferAndPrint [21:39:03]line [21:39:03]line [21:39:03]line [21:39:03]line [21:39:03]line [21:39:03]written 0, free lines is 3166 [21:39:03]MH_Cut [21:39:03]Write to MH i2c: D1 01 00 40 92 01 A4 [21:39:03]Write i2c OK [21:39:03]MH_I2C_Read... [21:39:03]Read from MH i2c: D1 [21:39:03]MH_I2C_Read... [21:39:03]Read from MH i2c: D1 01 00 [21:39:03]MH_I2C_Read... [21:39:03]Read from MH i2c: D1 01 00 40 92 00 A3 [21:39:03]Write to MH i2c: 01 00 00 41 92 D3 [21:39:03]Write i2c OK [21:39:03]MH_I2C_Read... [21:39:03]Connected sock=10 [21:39:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 08 14 07 01 E3 48 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 01 00 00 F4 03 04 00 FA C9 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 1C DE 02 00 35 04 06 00 15 76 F5 0E A0 E4 7D 49 54 89 A2 FA 24 50 [21:39:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 2B F2 47 00 03 4B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 1C DE 02 00 F4 03 04 00 EA 73 16 67 B6 04 01 00 00 81 79 C9 21 3B 31 F4 D3 [21:39:04]CommunicateWithHost err = 0 [21:39:04]CheckOFDResponse [21:39:04]1017 (14) - 77093643461234 [21:39:04]1041 (16) - 0000000000965340 [21:39:04]1040 (4) - 187932 [21:39:04]1012 (4) - 21.10.2024 15:31 [21:39:04]1206 (1) - 0 [21:39:04]OFD Sender: Remove packet 187932 [21:39:04]ProducePacketName [21:39:04]name=ofd_packets/00187932 [21:39:04]NVStorageDeleteData [21:39:04]*** Cut start [21:39:04]*** Partial cut [21:39:04]*** CUTSNS_PIN = 1 [21:39:04]*** CUTSNS_PIN = 0 [21:39:04]OFD Sender: No OFD packet to send [21:39:04]*** Brake cut motor [21:39:05]Read from MH i2c: 01 [21:39:05]MH_I2C_Read... [21:39:05]*** Stop cut motor [21:39:05]*** Cut end [21:39:05]Read from MH i2c: 01 07 00 [21:39:05]MH_I2C_Read... [21:39:05]Read from MH i2c: 01 07 00 41 92 00 00 00 00 00 FF 0F E8 [21:39:05]process_action close_receipt done [21:39:05]requested_data is exist [21:39:05]produce_requested_data [21:39:05]requested_item fm.sn is exist - process it [21:39:05]wFMCommunicate request_size=4 [21:39:05]MH_SAM_APDU [21:39:05]CAPDU: 80 11 00 00 [21:39:05]Write to MH i2c: E2 08 00 42 92 80 11 00 00 00 00 00 00 4E [21:39:05]Write i2c OK [21:39:05]MH_I2C_Read... [21:39:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:39:05]Read from MH i2c: E2 [21:39:05]MH_I2C_Read... [21:39:05]Read from MH i2c: E2 17 00 [21:39:05]MH_I2C_Read... [21:39:05]Read from MH i2c: E2 17 00 42 92 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 9C [21:39:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [21:39:05]wFMCommunicate OK [21:39:05]requested_item fd.num is exist - process it [21:39:05]SAM_PROTO_GetFieldsCounters [21:39:05]wFMCommunicate request_size=4 [21:39:05]MH_SAM_APDU [21:39:05]CAPDU: 80 13 00 00 [21:39:05]Write to MH i2c: E2 08 00 43 92 80 13 00 00 00 00 00 00 51 [21:39:05]Write i2c OK [21:39:05]MH_I2C_Read... [21:39:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:39:05]Read from MH i2c: E2 [21:39:05]MH_I2C_Read... [21:39:05]Read from MH i2c: E2 62 00 [21:39:05]MH_I2C_Read... [21:39:05]Read from MH i2c: E2 62 00 43 92 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 1C DE 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 8C 01 00 00 5E 04 04 00 8C 01 00 00 57 04 04 00 8D 01 00 00 19 04 04 00 00 00 00 00 90 00 C8 [21:39:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 1C DE 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 8C 01 00 00 5E 04 04 00 8C 01 00 00 57 04 04 00 8D 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:39:05]wFMCommunicate OK [21:39:05]SAM_PROTO_GetFieldsCounters done [21:39:05]requested_item shift.num is exist - process it [21:39:05]requested_item shift.opened is exist - process it [21:39:05]req_shift_opened [21:39:05]FM_GetShiftState [21:39:05]SAM_PROTO_GetShiftState [21:39:05]wFMCommunicate request_size=4 [21:39:05]MH_SAM_APDU [21:39:05]CAPDU: 80 13 01 00 [21:39:05]Write to MH i2c: E2 08 00 44 92 80 13 01 00 00 00 00 00 53 [21:39:05]Write i2c OK [21:39:05]MH_I2C_Read... [21:39:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:39:05]Read from MH i2c: E2 [21:39:05]MH_I2C_Read... [21:39:05]Read from MH i2c: E2 0E 00 [21:39:05]MH_I2C_Read... [21:39:05]Read from MH i2c: E2 0E 00 44 92 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 B2 [21:39:05]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [21:39:05]wFMCommunicate OK [21:39:05]SAM_PROTO_GetShiftState done [21:39:05]FM_GetShiftState done [21:39:05]req_shift_opened done [21:39:05]requested_item shift.open_date is exist - process it [21:39:05]req_shift_open_date [21:39:05]req_shift_open_date done [21:39:05]produce_requested_data done [21:39:05]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187932,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [21:39:05]process_action_free close_receipt [21:39:05]json_value_free [21:39:05]json_value_free done [21:39:05]process_json_proto returns [21:39:05]Send response to host [21:39:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187932,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [21:39:05]free response buf [21:39:05]execute_script done [21:39:05]execute_script returns [21:39:05]free content buf [21:39:05]Sock 9.Close socket [21:39:05]Sock 9.Thread stoped [21:39:09]OFD Sender: No OFD packet to send [21:39:14]OFD Sender: No OFD packet to send [21:39:19]OFD Sender: No OFD packet to send [21:39:24]OFD Sender: No OFD packet to send [21:39:29]OFD Sender: No OFD packet to send [21:39:34]OFD Sender: No OFD packet to send [21:39:39]OFD Sender: No OFD packet to send [21:39:44]OFD Sender: No OFD packet to send [21:39:49]OFD Sender: No OFD packet to send [21:39:55]OFD Sender: No OFD packet to send [21:40:00]OFD Sender: No OFD packet to send [21:40:05]OFD Sender: No OFD packet to send [21:40:10]OFD Sender: No OFD packet to send [21:40:15]OFD Sender: No OFD packet to send [21:40:20]OFD Sender: No OFD packet to send [21:40:25]OFD Sender: No OFD packet to send [21:40:30]OFD Sender: No OFD packet to send [21:40:35]OFD Sender: No OFD packet to send [21:40:40]OFD Sender: No OFD packet to send [21:40:45]OFD Sender: No OFD packet to send [21:40:50]OFD Sender: No OFD packet to send [21:40:55]OFD Sender: No OFD packet to send [21:41:00]OFD Sender: No OFD packet to send [21:41:05]OFD Sender: No OFD packet to send [21:41:10]OFD Sender: No OFD packet to send [21:41:15]OFD Sender: No OFD packet to send [21:41:20]OFD Sender: No OFD packet to send [21:41:25]OFD Sender: No OFD packet to send [21:41:28]accept exits with 8 [21:41:28]New connection [21:41:28]New thread 3067014500 created [21:41:28]Thread 3067157860 joined [21:41:28]Waiting for new connection... [21:41:28] Sock 8.Parse request [21:41:28]Sock 8.Check first char [21:41:28]Sock 8.First char is OK [21:41:28]request: POST /json_proto HTTP/1.0 [21:41:28]Method: POST [21:41:28]URL: /json_proto [21:41:28]Method is POST - this is cgi request [21:41:28]url: /json_proto [21:41:28]query_string will be loaded in cgi processing [21:41:28]execute_cgi json_proto POST (null) [21:41:28]execute_cgi path=json_proto method=POST [21:41:28]POST find Content-Length [21:41:28]Host: 172.17.42.131:8080 [21:41:28]Content-Length: 792 [21:41:28]Content-Type: application/json [21:41:28] [21:41:28]POST finish read [21:41:28]Found Content-Length = 792 [21:41:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209985", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 0.00, "quantity" : 17.940, "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\u000A02633", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:41:28]execute_script... [21:41:28]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209985", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 0.00, "quantity" : 17.940, "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\u000A02633", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:41:28]POST & json_proto [21:41:28]process_json_proto [21:41:28]json parsed OK: [21:41:28]protocol is kg_v1.0 [21:41:28]action value=close_receipt [21:41:28]process_action close_receipt [21:41:28]cmd_close_receipt [21:41:28]MH_GetDate [21:41:28]Write to MH i2c: F0 00 00 45 92 C6 [21:41:28]Write i2c OK [21:41:28]MH_I2C_Read... [21:41:28]Read from MH i2c: F0 [21:41:28]MH_I2C_Read... [21:41:28]Read from MH i2c: F0 09 00 [21:41:28]MH_I2C_Read... [21:41:28]Read from MH i2c: F0 09 00 45 92 00 8E CA 16 67 A0 18 CA 66 8C [21:41:28]GetLastDocTimeStamp 1729546746 [21:41:28]current date 1729546894 [21:41:28]FM_GetShiftState [21:41:28]SAM_PROTO_GetShiftState [21:41:28]wFMCommunicate request_size=4 [21:41:28]MH_SAM_APDU [21:41:28]CAPDU: 80 13 01 00 [21:41:28]Write to MH i2c: E2 08 00 46 92 80 13 01 00 00 00 00 00 55 [21:41:28]Write i2c OK [21:41:28]MH_I2C_Read... [21:41:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:41:28]Read from MH i2c: E2 [21:41:28]MH_I2C_Read... [21:41:28]Read from MH i2c: E2 0E 00 [21:41:28]MH_I2C_Read... [21:41:28]Read from MH i2c: E2 0E 00 46 92 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 B4 [21:41:28]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [21:41:28]wFMCommunicate OK [21:41:28]SAM_PROTO_GetShiftState done [21:41:28]FM_GetShiftState done [21:41:28]opened in 1729469754 [21:41:28]opened+sec_in_day 1729556154 [21:41:28]quantity*price = 0 [21:41:28]sum+1 = 1 [21:41:28]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 397 21.10.2024 21:41 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Талоны: Топливная Карта 02633 ФМ: 0000000000965340 ФД: 187933 ФПД: 98596075149582 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T214134&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187933&fm=98596075149582&tin=02508201610067®Number=0000000000100030&sum=0 [21:41:29]StoreToDocumentArchive [21:41:29]shift 460 fd 187933 [21:41:29]save to /storage/0460/doc_00187933 [21:41:29]save last doc name /storage/0460/doc_00187933 to /storage/kkm_last_doc_name [21:41:29]save OK [21:41:29]Clear old archive folders... [21:41:29]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:41:29]tlvbuf is 011C2EA0 [21:41:29]SAM_PROTO_ClearQueue [21:41:29]wFMCommunicate request_size=4 [21:41:29]MH_SAM_APDU [21:41:29]CAPDU: 80 09 00 00 [21:41:29]Write to MH i2c: E2 08 00 53 92 80 09 00 00 00 00 00 00 57 [21:41:29]Write i2c OK [21:41:29]MH_I2C_Read... [21:41:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:41:29]Read from MH i2c: E2 [21:41:29]MH_I2C_Read... [21:41:29]Read from MH i2c: E2 03 00 [21:41:29]MH_I2C_Read... [21:41:29]Read from MH i2c: E2 03 00 53 92 00 90 00 59 [21:41:29]RAPDU: 90 00 [21:41:29]wFMCommunicate OK [21:41:29]SAM_PROTO_ClearQueue done [21:41:29]KKMCreateOFDPacket [21:41:29]OFDProtocolAddRootSTLVToBuf [21:41:29]FM_MakeSignedData [21:41:29]FM_MakeSignedData [21:41:29]SAM_PROTO_SignData [21:41:29]wFMCommunicate request_size=4 [21:41:29]MH_SAM_APDU [21:41:29]CAPDU: 80 0D 01 02 [21:41:29]Write to MH i2c: E2 08 00 54 92 80 0D 01 02 00 00 00 00 5F [21:41:29]Write i2c OK [21:41:29]MH_I2C_Read... [21:41:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:41:30]Read from MH i2c: E2 [21:41:30]MH_I2C_Read... [21:41:30]Read from MH i2c: E2 03 00 [21:41:30]MH_I2C_Read... [21:41:30]Read from MH i2c: E2 03 00 54 92 00 90 00 5A [21:41:30]RAPDU: 90 00 [21:41:30]wFMCommunicate OK [21:41:30]wFMCommunicate request_size=255 [21:41:30]MH_SAM_APDU [21: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 33 FF 03 08 00 03 14 46 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 8D 01 00 00 F4 03 04 00 8E CA 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 1D DE 02 00 35 04 06 00 59 [21:41:30]Write to MH i2c: E2 02 01 55 92 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 14 46 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 8D 01 00 00 F4 03 04 00 8E CA 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 1D DE 02 00 35 04 06 00 59 00 00 2D [21:41:30]Write i2c OK [21:41:30]MH_I2C_Read... [21:41:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:41:30]Read from MH i2c: E2 [21:41:30]MH_I2C_Read... [21:41:30]Read from MH i2c: E2 03 00 [21:41:30]MH_I2C_Read... [21:41:30]Read from MH i2c: E2 03 00 55 92 00 90 00 5B [21:41:30]RAPDU: 90 00 [21:41:30]wFMCommunicate OK [21:41:30]wFMCommunicate request_size=10 [21:41:30]MH_SAM_APDU [21:41:30]CAPDU: 80 0D 02 02 05 AC 30 09 19 0E [21:41:30]Write to MH i2c: E2 0D 00 56 92 80 0D 02 02 05 00 AC 30 09 19 0E 00 00 78 [21:41:30]Write i2c OK [21:41:30]MH_I2C_Read... [21:41:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:41:30]Read from MH i2c: E2 [21:41:30]MH_I2C_Read... [21:41:30]Read from MH i2c: E2 03 00 [21:41:30]MH_I2C_Read... [21:41:30]Read from MH i2c: E2 03 00 56 92 00 90 00 5C [21:41:30]RAPDU: 90 00 [21:41:30]wFMCommunicate OK [21:41:30]wFMCommunicate request_size=4 [21:41:30]MH_SAM_APDU [21:41:30]CAPDU: 80 0D 03 02 [21:41:30]Write to MH i2c: E2 08 00 57 92 80 0D 03 02 00 00 00 00 64 [21:41:30]Write i2c OK [21:41:30]MH_I2C_Read... [21:41:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:41:30]Read from MH i2c: E2 [21:41:30]MH_I2C_Read... [21:41:30]Read from MH i2c: E2 0B 00 [21:41:30]MH_I2C_Read... [21:41:30]Read from MH i2c: E2 0B 00 57 92 00 A7 F9 7D 06 8E 28 15 17 90 00 6A [21:41:30]RAPDU: A7 F9 7D 06 8E 28 15 17 90 00 [21:41:30]wFMCommunicate OK [21:41:30]SAM_PROTO_SignData done [21:41:30]FM_MakeSignedData done [21:41:30]CreateOFDProtocolMessage [21:41:30]wFMCommunicate request_size=4 [21:41:30]MH_SAM_APDU [21:41:30]CAPDU: 80 11 00 00 [21:41:30]Write to MH i2c: E2 08 00 58 92 80 11 00 00 00 00 00 00 64 [21:41:30]Write i2c OK [21:41:30]MH_I2C_Read... [21:41:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:41:30]OFD Sender: No OFD packet to send [21:41:30]Read from MH i2c: E2 [21:41:30]MH_I2C_Read... [21:41:30]Read from MH i2c: E2 17 00 [21:41:30]MH_I2C_Read... [21:41:30]Read from MH i2c: E2 17 00 58 92 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 B2 [21:41:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [21:41:30]wFMCommunicate OK [21:41:30]CreateOFDProtocolMessage done [21:41:30]OFDSenderStorePacket 187933 [21:41:30]StoreOFDPacket docnum=187933 [21:41:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 46 1D 07 01 70 FB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 14 46 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 8D 01 00 00 F4 03 04 00 8E CA 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 1D DE 02 00 35 04 06 00 59 AC 30 09 19 0E A7 F9 7D 06 8E 28 15 17 [21:41:30]CheckFolder [21:41:30]dirname=/storage/ofd_packets [21:41:30]CheckFolder done [21:41:30]ProducePacketName [21:41:30]name=ofd_packets/00187933 [21:41:30]NVStorageSaveData ofd_packets/00187933 [21:41:30]File name is /storage/ofd_packets/00187933 [21:41:30]Write 301 bytes [21:41:30]NVStorageSaveData done [21:41:30]OFDSenderStorePacket done [21:41:30]KKMCreateOFDPacket done [21:41:30]NVStorageSaveData kkm_last_timestamp [21:41:30]File name is /storage/kkm_last_timestamp [21:41:30]Write 4 bytes [21:41:30]NVStorageSaveData done [21:41:30]ExternCall_PrintAddStr [21:41:30]wPrintStart [21:41:30]Write to MH i2c: 01 00 00 59 92 EB [21:41:30]Write i2c OK [21:41:30]MH_I2C_Read... [21:41:30]Read from MH i2c: 01 [21:41:30]MH_I2C_Read... [21:41:30]Read from MH i2c: 01 07 00 [21:41:30]MH_I2C_Read... [21:41:30]Read from MH i2c: 01 07 00 59 92 00 00 00 00 00 FF 0F 00 [21:41:30]RasterBufferAndPrint [21:41:30]line Счет N : (1)209985 [21:41:30]line ИНН: 02508201610067 [21:41:30]line Контрольно-Кассовый Чек [21:41:30]line ПРОДАЖА [21:41:30]line ТРК (МРК, ГНК) : 42 [21:41:30]line Товар: 2710124130 [21:41:30]line Аи-92-К-3 [21:41:30]line 17.940 * 0.00 [21:41:30]line = 0.00 [21:41:30]line НДС 12% НСП 1% [21:41:30]line > о реализуемом товаре [21:41:30]line ИТОГО: 0.00 [21:41:30]line НСП 1% : 0.00 [21:41:30]line НДС 12% : 0.00 [21:41:30]line Наличными: 0.00 [21:41:30]line Безнал.: 0.00 [21:41:30]line Место: АЗС № 86 "Партнер Нефть" [21:41:30]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [21:41:30]line СНО: Общий режим [21:41:30]line Чек 397 21.10.2024 21:41 [21:41:30]line Смена: 460 ФФД: 1.0 [21:41:30]line ЗНМ: 0300000155 [21:41:30]line РНМ: 0000000000100030 [21:41:30]line Версия ККМ: 001 [21:41:30]line Талоны: Топливная Карта [21:41:30]line 02633 [21:41:30]line ФМ: 0000000000965340 [21:41:30]line ФД: 187933 [21:41:30]line ФПД: 98596075149582 [21:41:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T214134&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187933&fm=98596075149582&tin=02508201610067®Number=0000000000100030&sum=0 [21:41:30]written 0, free lines is 4095 [21:41:30]OFD Sender: Processing packet 187933 [packets to send 1062, broken 1061] [21:41:30]ProducePacketName [21:41:30]name=ofd_packets/00187933 [21:41:30]OFD Sender: To server: pG, [21:41:30]CommunicateWithHost lk.salyk.kg:30040 [21:41:30]ConnectInit lk.salyk.kg [21:41:30]Connected sock=10 [21:41:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 46 1D 07 01 70 FB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 14 46 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 8D 01 00 00 F4 03 04 00 8E CA 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 1D DE 02 00 35 04 06 00 59 AC 30 09 19 0E A7 F9 7D 06 8E 28 15 17 [21:41:30]Write to MH i2c: 01 00 00 83 92 15 [21:41:30]Write i2c OK [21:41:30]MH_I2C_Read... [21:41:30]Read from MH i2c: 01 [21:41:30]MH_I2C_Read... [21:41:30]Read from MH i2c: 01 07 00 [21:41:30]MH_I2C_Read... [21:41:30]Read from MH i2c: 01 07 00 83 92 00 00 00 00 00 79 0C A1 [21:41:30]RasterBufferAndPrint [21:41:30]line [21:41:30]line [21:41:30]line [21:41:30]line [21:41:30]line [21:41:30]written 0, free lines is 3198 [21:41:30]MH_Cut [21:41:30]Write to MH i2c: D1 01 00 8A 92 01 EE [21:41:30]Write i2c OK [21:41:30]MH_I2C_Read... [21:41:30]Read from MH i2c: D1 [21:41:30]MH_I2C_Read... [21:41:30]Read from MH i2c: D1 01 00 [21:41:30]MH_I2C_Read... [21:41:30]Read from MH i2c: D1 01 00 8A 92 00 ED [21:41:30]Write to MH i2c: 01 00 00 8B 92 1D [21:41:30]Write i2c OK [21:41:30]MH_I2C_Read... [21:41:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 D0 2B 47 00 49 A8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 1D DE 02 00 F4 03 04 00 7D 74 16 67 B6 04 01 00 00 BF 7E F3 F7 CB 90 6C 7C [21:41:31]CommunicateWithHost err = 0 [21:41:31]CheckOFDResponse [21:41:31]1017 (14) - 77093643461234 [21:41:31]1041 (16) - 0000000000965340 [21:41:31]1040 (4) - 187933 [21:41:31]1012 (4) - 21.10.2024 15:34 [21:41:31]1206 (1) - 0 [21:41:31]OFD Sender: Remove packet 187933 [21:41:31]ProducePacketName [21:41:31]name=ofd_packets/00187933 [21:41:31]NVStorageDeleteData [21:41:31]OFD Sender: No OFD packet to send [21:41:32]*** Cut start [21:41:32]*** Partial cut [21:41:32]*** CUTSNS_PIN = 1 [21:41:32]*** CUTSNS_PIN = 0 [21:41:32]*** Brake cut motor [21:41:32]Read from MH i2c: 01 [21:41:32]MH_I2C_Read... [21:41:32]*** Stop cut motor [21:41:32]*** Cut end [21:41:32]Read from MH i2c: 01 07 00 [21:41:32]MH_I2C_Read... [21:41:32]Read from MH i2c: 01 07 00 8B 92 00 00 00 00 00 FF 0F 32 [21:41:32]process_action close_receipt done [21:41:32]requested_data is exist [21:41:32]produce_requested_data [21:41:32]requested_item fm.sn is exist - process it [21:41:32]wFMCommunicate request_size=4 [21:41:32]MH_SAM_APDU [21:41:32]CAPDU: 80 11 00 00 [21:41:32]Write to MH i2c: E2 08 00 8C 92 80 11 00 00 00 00 00 00 98 [21:41:32]Write i2c OK [21:41:32]MH_I2C_Read... [21:41:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:41:32]Read from MH i2c: E2 [21:41:32]MH_I2C_Read... [21:41:32]Read from MH i2c: E2 17 00 [21:41:32]MH_I2C_Read... [21:41:32]Read from MH i2c: E2 17 00 8C 92 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 E6 [21:41:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [21:41:32]wFMCommunicate OK [21:41:32]requested_item fd.num is exist - process it [21:41:32]SAM_PROTO_GetFieldsCounters [21:41:32]wFMCommunicate request_size=4 [21:41:32]MH_SAM_APDU [21:41:32]CAPDU: 80 13 00 00 [21:41:32]Write to MH i2c: E2 08 00 8D 92 80 13 00 00 00 00 00 00 9B [21:41:32]Write i2c OK [21:41:32]MH_I2C_Read... [21:41:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:41:32]Read from MH i2c: E2 [21:41:32]MH_I2C_Read... [21:41:32]Read from MH i2c: E2 62 00 [21:41:32]MH_I2C_Read... [21:41:32]Read from MH i2c: E2 62 00 8D 92 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 1D DE 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 8D 01 00 00 5E 04 04 00 8D 01 00 00 57 04 04 00 8E 01 00 00 19 04 04 00 00 00 00 00 90 00 16 [21:41:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 1D DE 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 8D 01 00 00 5E 04 04 00 8D 01 00 00 57 04 04 00 8E 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:41:33]wFMCommunicate OK [21:41:33]SAM_PROTO_GetFieldsCounters done [21:41:33]requested_item shift.num is exist - process it [21:41:33]requested_item shift.opened is exist - process it [21:41:33]req_shift_opened [21:41:33]FM_GetShiftState [21:41:33]SAM_PROTO_GetShiftState [21:41:33]wFMCommunicate request_size=4 [21:41:33]MH_SAM_APDU [21:41:33]CAPDU: 80 13 01 00 [21:41:33]Write to MH i2c: E2 08 00 8E 92 80 13 01 00 00 00 00 00 9D [21:41:33]Write i2c OK [21:41:33]MH_I2C_Read... [21:41:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:41:33]Read from MH i2c: E2 [21:41:33]MH_I2C_Read... [21:41:33]Read from MH i2c: E2 0E 00 [21:41:33]MH_I2C_Read... [21:41:33]Read from MH i2c: E2 0E 00 8E 92 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 FC [21:41:33]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [21:41:33]wFMCommunicate OK [21:41:33]SAM_PROTO_GetShiftState done [21:41:33]FM_GetShiftState done [21:41:33]req_shift_opened done [21:41:33]requested_item shift.open_date is exist - process it [21:41:33]req_shift_open_date [21:41:33]req_shift_open_date done [21:41:33]produce_requested_data done [21:41:33]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187933,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [21:41:33]process_action_free close_receipt [21:41:33]json_value_free [21:41:33]json_value_free done [21:41:33]process_json_proto returns [21:41:33]Send response to host [21:41:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187933,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [21:41:33]free response buf [21:41:33]execute_script done [21:41:33]execute_script returns [21:41:33]free content buf [21:41:33]Sock 8.Close socket [21:41:33]Sock 8.Thread stoped [21:41:36]OFD Sender: No OFD packet to send [21:41:41]OFD Sender: No OFD packet to send [21:41:46]OFD Sender: No OFD packet to send [21:41:51]OFD Sender: No OFD packet to send [21:41:56]OFD Sender: No OFD packet to send [21:42:01]OFD Sender: No OFD packet to send [21:42:06]OFD Sender: No OFD packet to send [21:42:11]OFD Sender: No OFD packet to send [21:42:16]OFD Sender: No OFD packet to send [21:42:21]OFD Sender: No OFD packet to send [21:42:26]OFD Sender: No OFD packet to send [21:42:32]OFD Sender: No OFD packet to send [21:42:37]OFD Sender: No OFD packet to send [21:42:42]OFD Sender: No OFD packet to send [21:42:47]OFD Sender: No OFD packet to send [21:42:52]OFD Sender: No OFD packet to send [21:42:57]OFD Sender: No OFD packet to send [21:43:02]OFD Sender: No OFD packet to send [21:43:07]OFD Sender: No OFD packet to send [21:43:12]OFD Sender: No OFD packet to send [21:43:17]OFD Sender: No OFD packet to send [21:43:22]OFD Sender: No OFD packet to send [21:43:27]OFD Sender: No OFD packet to send [21:43:32]OFD Sender: No OFD packet to send [21:43:37]OFD Sender: No OFD packet to send [21:43:42]OFD Sender: No OFD packet to send [21:43:47]OFD Sender: No OFD packet to send [21:43:52]OFD Sender: No OFD packet to send [21:43:57]OFD Sender: No OFD packet to send [21:44:02]OFD Sender: No OFD packet to send [21:44:07]OFD Sender: No OFD packet to send [21:44:12]OFD Sender: No OFD packet to send [21:44:17]OFD Sender: No OFD packet to send [21:44:22]OFD Sender: No OFD packet to send [21:44:27]OFD Sender: No OFD packet to send [21:44:32]OFD Sender: No OFD packet to send [21:44:37]OFD Sender: No OFD packet to send [21:44:42]OFD Sender: No OFD packet to send [21:44:47]OFD Sender: No OFD packet to send [21:44:52]OFD Sender: No OFD packet to send [21:44:57]OFD Sender: No OFD packet to send [21:45:02]OFD Sender: No OFD packet to send [21:45:07]OFD Sender: No OFD packet to send [21:45:12]OFD Sender: No OFD packet to send [21:45:17]OFD Sender: No OFD packet to send [21:45:22]OFD Sender: No OFD packet to send [21:45:27]OFD Sender: No OFD packet to send [21:45:32]OFD Sender: No OFD packet to send [21:45:37]OFD Sender: No OFD packet to send [21:45:42]OFD Sender: No OFD packet to send [21:45:47]OFD Sender: No OFD packet to send [21:45:52]OFD Sender: No OFD packet to send [21:45:57]OFD Sender: No OFD packet to send [21:46:02]OFD Sender: No OFD packet to send [21:46:07]OFD Sender: No OFD packet to send [21:46:12]OFD Sender: No OFD packet to send [21:46:18]OFD Sender: No OFD packet to send [21:46:23]OFD Sender: No OFD packet to send [21:46:28]OFD Sender: No OFD packet to send [21:46:33]OFD Sender: No OFD packet to send [21:46:38]OFD Sender: No OFD packet to send [21:46:43]OFD Sender: No OFD packet to send [21:46:48]OFD Sender: No OFD packet to send [21:46:53]OFD Sender: No OFD packet to send [21:46:58]OFD Sender: No OFD packet to send [21:47:03]OFD Sender: No OFD packet to send [21:47:08]OFD Sender: No OFD packet to send [21:47:13]OFD Sender: No OFD packet to send [21:47:18]OFD Sender: No OFD packet to send [21:47:23]OFD Sender: No OFD packet to send [21:47:28]OFD Sender: No OFD packet to send [21:47:33]OFD Sender: No OFD packet to send [21:47:38]OFD Sender: No OFD packet to send [21:47:39]accept exits with 9 [21:47:39]New connection [21:47:39]New thread 3067157860 created [21:47:39]Thread 3067014500 joined [21:47:39]Waiting for new connection... [21:47:39] Sock 9.Parse request [21:47:39]Sock 9.Check first char [21:47:39]Sock 9.First char is OK [21:47:39]request: POST /json_proto HTTP/1.0 [21:47:39]Method: POST [21:47:39]URL: /json_proto [21:47:39]Method is POST - this is cgi request [21:47:39]url: /json_proto [21:47:39]query_string will be loaded in cgi processing [21:47:39]execute_cgi json_proto POST (null) [21:47:39]execute_cgi path=json_proto method=POST [21:47:39]POST find Content-Length [21:47:39]Host: 172.17.42.131:8080 [21:47:39]Content-Length: 675 [21:47:39]Content-Type: application/json [21:47:39] [21:47:39]POST finish read [21:47:39]Found Content-Length = 675 [21:47:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209986", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 10.500, "sum" : 800.10, "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" ] } } [21:47:39]execute_script... [21:47: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)209986", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 10.500, "sum" : 800.10, "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" ] } } [21:47:39]POST & json_proto [21:47:39]process_json_proto [21:47:39]json parsed OK: [21:47:39]protocol is kg_v1.0 [21:47:39]action value=close_receipt [21:47:39]process_action close_receipt [21:47:39]cmd_close_receipt [21:47:39]MH_GetDate [21:47:39]Write to MH i2c: F0 00 00 8F 92 10 [21:47:39]Write i2c OK [21:47:39]MH_I2C_Read... [21:47:39]Read from MH i2c: F0 [21:47:39]MH_I2C_Read... [21:47:39]Read from MH i2c: F0 09 00 [21:47:39]MH_I2C_Read... [21:47:39]Read from MH i2c: F0 09 00 8F 92 00 01 CC 16 67 A0 18 CA 66 4B [21:47:39]GetLastDocTimeStamp 1729546894 [21:47:39]current date 1729547265 [21:47:39]FM_GetShiftState [21:47:39]SAM_PROTO_GetShiftState [21:47:39]wFMCommunicate request_size=4 [21:47:39]MH_SAM_APDU [21:47:39]CAPDU: 80 13 01 00 [21:47:39]Write to MH i2c: E2 08 00 90 92 80 13 01 00 00 00 00 00 9F [21:47:39]Write i2c OK [21:47:39]MH_I2C_Read... [21:47:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:47:39]Read from MH i2c: E2 [21:47:39]MH_I2C_Read... [21:47:39]Read from MH i2c: E2 0E 00 [21:47:39]MH_I2C_Read... [21:47:39]Read from MH i2c: E2 0E 00 90 92 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 FE [21:47:39]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [21:47:39]wFMCommunicate OK [21:47:39]SAM_PROTO_GetShiftState done [21:47:39]FM_GetShiftState done [21:47:39]opened in 1729469754 [21:47:39]opened+sec_in_day 1729556154 [21:47:39]quantity*price = 80010 [21:47:39]sum+1 = 80011 [21:47:39]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.10 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.97 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 398 21.10.2024 21:47 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 187934 ФПД: 14702794055451 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T214745&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187934&fm=14702794055451&tin=02508201610067®Number=0000000000100030&sum=80000 [21:47:40]StoreToDocumentArchive [21:47:40]shift 460 fd 187934 [21:47:40]save to /storage/0460/doc_00187934 [21:47:40]save last doc name /storage/0460/doc_00187934 to /storage/kkm_last_doc_name [21:47:40]save OK [21:47:40]Clear old archive folders... [21:47:40]ProcessDocumentItem done err = 0, tmpTLVsize=248 [21:47:40]tlvbuf is 012D0740 [21:47:40]SAM_PROTO_ClearQueue [21:47:40]wFMCommunicate request_size=4 [21:47:40]MH_SAM_APDU [21:47:40]CAPDU: 80 09 00 00 [21:47:40]Write to MH i2c: E2 08 00 9D 92 80 09 00 00 00 00 00 00 A1 [21:47:40]Write i2c OK [21:47:40]MH_I2C_Read... [21:47:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:47:40]Read from MH i2c: E2 [21:47:40]MH_I2C_Read... [21:47:40]Read from MH i2c: E2 03 00 [21:47:40]MH_I2C_Read... [21:47:40]Read from MH i2c: E2 03 00 9D 92 00 90 00 A3 [21:47:40]RAPDU: 90 00 [21:47:40]wFMCommunicate OK [21:47:40]SAM_PROTO_ClearQueue done [21:47:40]KKMCreateOFDPacket [21:47:40]OFDProtocolAddRootSTLVToBuf [21:47:40]FM_MakeSignedData [21:47:40]FM_MakeSignedData [21:47:40]SAM_PROTO_SignData [21:47:40]wFMCommunicate request_size=4 [21:47:40]MH_SAM_APDU [21:47:40]CAPDU: 80 0D 01 02 [21:47:40]Write to MH i2c: E2 08 00 9E 92 80 0D 01 02 00 00 00 00 A9 [21:47:40]Write i2c OK [21:47:40]MH_I2C_Read... [21:47:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:47:40]Read from MH i2c: E2 [21:47:40]MH_I2C_Read... [21:47:40]Read from MH i2c: E2 03 00 [21:47:40]MH_I2C_Read... [21:47:40]Read from MH i2c: E2 03 00 9E 92 00 90 00 A4 [21:47:40]RAPDU: 90 00 [21:47:40]wFMCommunicate OK [21:47:40]wFMCommunicate request_size=255 [21:47:40]MH_SAM_APDU [21:47:40]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 04 29 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8A 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 8E 01 00 00 F4 03 04 00 01 CC 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 1E DE 02 00 35 04 06 00 0D 5F 42 D1 [21:47:40]Write to MH i2c: E2 02 01 9F 92 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 04 29 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8A 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 8E 01 00 00 F4 03 04 00 01 CC 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 1E DE 02 00 35 04 06 00 0D 5F 42 D1 00 00 6A [21:47:40]Write i2c OK [21:47:40]MH_I2C_Read... [21:47:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:47:40]Read from MH i2c: E2 [21:47:40]MH_I2C_Read... [21:47:40]Read from MH i2c: E2 03 00 [21:47:40]MH_I2C_Read... [21:47:40]Read from MH i2c: E2 03 00 9F 92 00 90 00 A5 [21:47:40]RAPDU: 90 00 [21:47:40]wFMCommunicate OK [21:47:40]wFMCommunicate request_size=7 [21:47:40]MH_SAM_APDU [21:47:40]CAPDU: 80 0D 02 02 02 1F 1B [21:47:40]Write to MH i2c: E2 0A 00 A0 92 80 0D 02 02 02 00 1F 1B 00 00 EA [21:47:40]Write i2c OK [21:47:40]MH_I2C_Read... [21:47:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:47:40]Read from MH i2c: E2 [21:47:40]MH_I2C_Read... [21:47:40]Read from MH i2c: E2 03 00 [21:47:40]MH_I2C_Read... [21:47:40]Read from MH i2c: E2 03 00 A0 92 00 90 00 A6 [21:47:40]RAPDU: 90 00 [21:47:40]wFMCommunicate OK [21:47:40]wFMCommunicate request_size=4 [21:47:40]MH_SAM_APDU [21:47:40]CAPDU: 80 0D 03 02 [21:47:40]Write to MH i2c: E2 08 00 A1 92 80 0D 03 02 00 00 00 00 AE [21:47:40]Write i2c OK [21:47:40]MH_I2C_Read... [21:47:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:47:40]Read from MH i2c: E2 [21:47:40]MH_I2C_Read... [21:47:40]Read from MH i2c: E2 0B 00 [21:47:40]MH_I2C_Read... [21:47:40]Read from MH i2c: E2 0B 00 A1 92 00 E2 83 93 DD 93 C0 80 F5 90 00 4C [21:47:40]RAPDU: E2 83 93 DD 93 C0 80 F5 90 00 [21:47:40]wFMCommunicate OK [21:47:40]SAM_PROTO_SignData done [21:47:40]FM_MakeSignedData done [21:47:40]CreateOFDProtocolMessage [21:47:40]wFMCommunicate request_size=4 [21:47:40]MH_SAM_APDU [21:47:40]CAPDU: 80 11 00 00 [21:47:40]Write to MH i2c: E2 08 00 A2 92 80 11 00 00 00 00 00 00 AE [21:47:40]Write i2c OK [21:47:40]MH_I2C_Read... [21:47:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:47:40]Read from MH i2c: E2 [21:47:40]MH_I2C_Read... [21:47:40]Read from MH i2c: E2 17 00 [21:47:40]MH_I2C_Read... [21:47:40]Read from MH i2c: E2 17 00 A2 92 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 FC [21:47:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [21:47:40]wFMCommunicate OK [21:47:40]CreateOFDProtocolMessage done [21:47:40]OFDSenderStorePacket 187934 [21:47:40]StoreOFDPacket docnum=187934 [21:47:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 9F 3D 04 01 30 B0 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 04 29 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8A 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 8E 01 00 00 F4 03 04 00 01 CC 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 1E DE 02 00 35 04 06 00 0D 5F 42 D1 1F 1B E2 83 93 DD 93 C0 80 F5 [21:47:40]CheckFolder [21:47:40]dirname=/storage/ofd_packets [21:47:40]CheckFolder done [21:47:40]ProducePacketName [21:47:40]name=ofd_packets/00187934 [21:47:40]NVStorageSaveData ofd_packets/00187934 [21:47:40]File name is /storage/ofd_packets/00187934 [21:47:40]Write 298 bytes [21:47:40]NVStorageSaveData done [21:47:40]OFDSenderStorePacket done [21:47:40]KKMCreateOFDPacket done [21:47:40]NVStorageSaveData kkm_last_timestamp [21:47:40]File name is /storage/kkm_last_timestamp [21:47:40]Write 4 bytes [21:47:40]NVStorageSaveData done [21:47:40]ExternCall_PrintAddStr [21:47:40]wPrintStart [21:47:40]Write to MH i2c: 01 00 00 A3 92 35 [21:47:40]Write i2c OK [21:47:40]MH_I2C_Read... [21:47:40]Read from MH i2c: 01 [21:47:40]MH_I2C_Read... [21:47:40]Read from MH i2c: 01 07 00 [21:47:40]MH_I2C_Read... [21:47:40]Read from MH i2c: 01 07 00 A3 92 00 00 00 00 00 FF 0F 4A [21:47:40]RasterBufferAndPrint [21:47:40]line Счет N : (1)209986 [21:47:40]line ИНН: 02508201610067 [21:47:40]line Контрольно-Кассовый Чек [21:47:40]line ПРОДАЖА [21:47:40]line ТРК (МРК, ГНК) : 51 [21:47:40]line Товар: 2710194210 [21:47:40]line ДТ-К-5 [21:47:40]line 10.500 * 76.20 [21:47:40]line = 800.10 [21:47:40]line НДС 12% НСП 1% [21:47:40]line > о реализуемом товаре [21:47:40]line ОКРУГЛЕНИЕ: -0.10 [21:47:40]line ИТОГО: 800.00 [21:47:40]line Внесено: 800.00 [21:47:40]line СДАЧА: 0.00 [21:47:40]line НСП 1% : 7.08 [21:47:40]line НДС 12% : 84.97 [21:47:40]line Наличными: 800.00 [21:47:40]line Безнал.: 0.00 [21:47:40]line Место: АЗС № 86 "Партнер Нефть" [21:47:40]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [21:47:40]line СНО: Общий режим [21:47:40]line Чек 398 21.10.2024 21:47 [21:47:40]line Смена: 460 ФФД: 1.0 [21:47:40]line ЗНМ: 0300000155 [21:47:40]line РНМ: 0000000000100030 [21:47:40]line Версия ККМ: 001 [21:47:40]line ФМ: 0000000000965340 [21:47:40]line ФД: 187934 [21:47:40]line ФПД: 14702794055451 [21:47:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T214745&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187934&fm=14702794055451&tin=02508201610067®Number=0000000000100030&sum=80000 [21:47:40]written 0, free lines is 4095 [21:47:40]OFD Sender: Processing packet 187934 [packets to send 1062, broken 1061] [21:47:40]ProducePacketName [21:47:40]name=ofd_packets/00187934 [21:47:40]OFD Sender: To server: pG, [21:47:40]CommunicateWithHost lk.salyk.kg:30040 [21:47:40]ConnectInit lk.salyk.kg [21:47:41]Connected sock=10 [21:47:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 9F 3D 04 01 30 B0 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 04 29 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8A 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 8E 01 00 00 F4 03 04 00 01 CC 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 1E DE 02 00 35 04 06 00 0D 5F 42 D1 1F 1B E2 83 93 DD 93 C0 80 F5 [21:47:41]Write to MH i2c: 01 00 00 CE 92 60 [21:47:41]Write i2c OK [21:47:41]MH_I2C_Read... [21:47:41]Read from MH i2c: 01 [21:47:41]MH_I2C_Read... [21:47:41]Read from MH i2c: 01 07 00 [21:47:41]MH_I2C_Read... [21:47:41]Read from MH i2c: 01 07 00 CE 92 00 00 00 00 00 55 0C C8 [21:47:41]RasterBufferAndPrint [21:47:41]line [21:47:41]line [21:47:41]line [21:47:41]line [21:47:41]line [21:47:41]written 0, free lines is 3161 [21:47:41]MH_Cut [21:47:41]Write to MH i2c: D1 01 00 D5 92 01 39 [21:47:41]Write i2c OK [21:47:41]MH_I2C_Read... [21:47:41]Read from MH i2c: D1 [21:47:41]MH_I2C_Read... [21:47:41]Read from MH i2c: D1 01 00 [21:47:41]MH_I2C_Read... [21:47:41]Read from MH i2c: D1 01 00 D5 92 00 38 [21:47:41]Write to MH i2c: 01 00 00 D6 92 68 [21:47:41]Write i2c OK [21:47:41]MH_I2C_Read... [21:47:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 8C F3 47 00 FB BA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 1E DE 02 00 F4 03 04 00 EF 75 16 67 B6 04 01 00 00 DE 09 DB 5C AC 2B 52 6E [21:47:41]CommunicateWithHost err = 0 [21:47:41]CheckOFDResponse [21:47:41]1017 (14) - 77093643461234 [21:47:41]1041 (16) - 0000000000965340 [21:47:41]1040 (4) - 187934 [21:47:41]1012 (4) - 21.10.2024 15:40 [21:47:41]1206 (1) - 0 [21:47:41]OFD Sender: Remove packet 187934 [21:47:41]ProducePacketName [21:47:41]name=ofd_packets/00187934 [21:47:41]NVStorageDeleteData [21:47:42]OFD Sender: No OFD packet to send [21:47:42]*** Cut start [21:47:42]*** Partial cut [21:47:42]*** CUTSNS_PIN = 1 [21:47:42]*** CUTSNS_PIN = 0 [21:47:42]*** Brake cut motor [21:47:43]Read from MH i2c: 01 [21:47:43]MH_I2C_Read... [21:47:43]*** Stop cut motor [21:47:43]*** Cut end [21:47:43]Read from MH i2c: 01 07 00 [21:47:43]MH_I2C_Read... [21:47:43]Read from MH i2c: 01 07 00 D6 92 00 00 00 00 00 FF 0F 7D [21:47:43]process_action close_receipt done [21:47:43]requested_data is exist [21:47:43]produce_requested_data [21:47:43]requested_item fm.sn is exist - process it [21:47:43]wFMCommunicate request_size=4 [21:47:43]MH_SAM_APDU [21:47:43]CAPDU: 80 11 00 00 [21:47:43]Write to MH i2c: E2 08 00 D7 92 80 11 00 00 00 00 00 00 E3 [21:47:43]Write i2c OK [21:47:43]MH_I2C_Read... [21:47:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:47:43]Read from MH i2c: E2 [21:47:43]MH_I2C_Read... [21:47:43]Read from MH i2c: E2 17 00 [21:47:43]MH_I2C_Read... [21:47:43]Read from MH i2c: E2 17 00 D7 92 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 31 [21:47:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [21:47:43]wFMCommunicate OK [21:47:43]requested_item fd.num is exist - process it [21:47:43]SAM_PROTO_GetFieldsCounters [21:47:43]wFMCommunicate request_size=4 [21:47:43]MH_SAM_APDU [21:47:43]CAPDU: 80 13 00 00 [21:47:43]Write to MH i2c: E2 08 00 D8 92 80 13 00 00 00 00 00 00 E6 [21:47:43]Write i2c OK [21:47:43]MH_I2C_Read... [21:47:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:47:43]Read from MH i2c: E2 [21:47:43]MH_I2C_Read... [21:47:43]Read from MH i2c: E2 62 00 [21:47:43]MH_I2C_Read... [21:47:43]Read from MH i2c: E2 62 00 D8 92 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 1E DE 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 8E 01 00 00 5E 04 04 00 8E 01 00 00 57 04 04 00 8F 01 00 00 19 04 04 00 00 00 00 00 90 00 65 [21:47:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 1E DE 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 8E 01 00 00 5E 04 04 00 8E 01 00 00 57 04 04 00 8F 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:47:43]wFMCommunicate OK [21:47:43]SAM_PROTO_GetFieldsCounters done [21:47:43]requested_item shift.num is exist - process it [21:47:43]requested_item shift.opened is exist - process it [21:47:43]req_shift_opened [21:47:43]FM_GetShiftState [21:47:43]SAM_PROTO_GetShiftState [21:47:43]wFMCommunicate request_size=4 [21:47:43]MH_SAM_APDU [21:47:43]CAPDU: 80 13 01 00 [21:47:43]Write to MH i2c: E2 08 00 D9 92 80 13 01 00 00 00 00 00 E8 [21:47:43]Write i2c OK [21:47:43]MH_I2C_Read... [21:47:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:47:43]Read from MH i2c: E2 [21:47:43]MH_I2C_Read... [21:47:43]Read from MH i2c: E2 0E 00 [21:47:43]MH_I2C_Read... [21:47:43]Read from MH i2c: E2 0E 00 D9 92 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 47 [21:47:43]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [21:47:43]wFMCommunicate OK [21:47:43]SAM_PROTO_GetShiftState done [21:47:43]FM_GetShiftState done [21:47:43]req_shift_opened done [21:47:43]requested_item shift.open_date is exist - process it [21:47:43]req_shift_open_date [21:47:43]req_shift_open_date done [21:47:43]produce_requested_data done [21:47:43]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187934,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [21:47:43]process_action_free close_receipt [21:47:43]json_value_free [21:47:43]json_value_free done [21:47:43]process_json_proto returns [21:47:43]Send response to host [21:47:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187934,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [21:47:43]free response buf [21:47:43]execute_script done [21:47:43]execute_script returns [21:47:43]free content buf [21:47:43]Sock 9.Close socket [21:47:43]Sock 9.Thread stoped [21:47:47]OFD Sender: No OFD packet to send [21:47:52]OFD Sender: No OFD packet to send [21:47:57]OFD Sender: No OFD packet to send [21:48:02]OFD Sender: No OFD packet to send [21:48:07]OFD Sender: No OFD packet to send [21:48:12]OFD Sender: No OFD packet to send [21:48:17]OFD Sender: No OFD packet to send [21:48:22]OFD Sender: No OFD packet to send [21:48:27]OFD Sender: No OFD packet to send [21:48:32]OFD Sender: No OFD packet to send [21:48:37]OFD Sender: No OFD packet to send [21:48:42]OFD Sender: No OFD packet to send [21:48:47]OFD Sender: No OFD packet to send [21:48:52]OFD Sender: No OFD packet to send [21:48:57]OFD Sender: No OFD packet to send [21:49:02]OFD Sender: No OFD packet to send [21:49:07]OFD Sender: No OFD packet to send [21:49:12]OFD Sender: No OFD packet to send [21:49:17]OFD Sender: No OFD packet to send [21:49:22]OFD Sender: No OFD packet to send [21:49:27]OFD Sender: No OFD packet to send [21:49:32]OFD Sender: No OFD packet to send [21:49:37]OFD Sender: No OFD packet to send [21:49:42]OFD Sender: No OFD packet to send [21:49:47]OFD Sender: No OFD packet to send [21:49:52]OFD Sender: No OFD packet to send [21:49:57]OFD Sender: No OFD packet to send [21:50:02]OFD Sender: No OFD packet to send [21:50:07]OFD Sender: No OFD packet to send [21:50:12]OFD Sender: No OFD packet to send [21:50:17]OFD Sender: No OFD packet to send [21:50:22]OFD Sender: No OFD packet to send [21:50:27]OFD Sender: No OFD packet to send [21:50:32]OFD Sender: No OFD packet to send [21:50:37]OFD Sender: No OFD packet to send [21:50:42]OFD Sender: No OFD packet to send [21:50:47]OFD Sender: No OFD packet to send [21:50:52]OFD Sender: No OFD packet to send [21:50:57]OFD Sender: No OFD packet to send [21:51:02]OFD Sender: No OFD packet to send [21:51:07]OFD Sender: No OFD packet to send [21:51:12]OFD Sender: No OFD packet to send [21:51:17]OFD Sender: No OFD packet to send [21:51:18]accept exits with 8 [21:51:18]New connection [21:51:18]New thread 3067014500 created [21:51:18]Thread 3067157860 joined [21:51:18]Waiting for new connection... [21:51:18] Sock 8.Parse request [21:51:18]Sock 8.Check first char [21:51:18]Sock 8.First char is OK [21:51:18]request: POST /json_proto HTTP/1.0 [21:51:18]Method: POST [21:51:18]URL: /json_proto [21:51:18]Method is POST - this is cgi request [21:51:18]url: /json_proto [21:51:18]query_string will be loaded in cgi processing [21:51:18]execute_cgi json_proto POST (null) [21:51:18]execute_cgi path=json_proto method=POST [21:51:18]POST find Content-Length [21:51:18]Host: 172.17.42.131:8080 [21:51:18]Content-Length: 792 [21:51:18]Content-Type: application/json [21:51:18] [21:51:18]POST finish read [21:51:18]Found Content-Length = 792 [21:51:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209987", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 0.00, "quantity" : 10.620, "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\u000A02633", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:51:18]execute_script... [21:51: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)209987", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 0.00, "quantity" : 10.620, "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\u000A02633", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:51:18]POST & json_proto [21:51:18]process_json_proto [21:51:18]json parsed OK: [21:51:18]protocol is kg_v1.0 [21:51:18]action value=close_receipt [21:51:18]process_action close_receipt [21:51:18]cmd_close_receipt [21:51:18]MH_GetDate [21:51:18]Write to MH i2c: F0 00 00 DA 92 5B [21:51:18]Write i2c OK [21:51:18]MH_I2C_Read... [21:51:18]Read from MH i2c: F0 [21:51:18]MH_I2C_Read... [21:51:18]Read from MH i2c: F0 09 00 [21:51:18]MH_I2C_Read... [21:51:18]Read from MH i2c: F0 09 00 DA 92 00 DC CC 16 67 A0 18 CA 66 71 [21:51:18]GetLastDocTimeStamp 1729547265 [21:51:18]current date 1729547484 [21:51:18]FM_GetShiftState [21:51:18]SAM_PROTO_GetShiftState [21:51:18]wFMCommunicate request_size=4 [21:51:18]MH_SAM_APDU [21:51:18]CAPDU: 80 13 01 00 [21:51:18]Write to MH i2c: E2 08 00 DB 92 80 13 01 00 00 00 00 00 EA [21:51:18]Write i2c OK [21:51:18]MH_I2C_Read... [21:51:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:51:18]Read from MH i2c: E2 [21:51:18]MH_I2C_Read... [21:51:18]Read from MH i2c: E2 0E 00 [21:51:18]MH_I2C_Read... [21:51:18]Read from MH i2c: E2 0E 00 DB 92 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 49 [21:51:18]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [21:51:18]wFMCommunicate OK [21:51:18]SAM_PROTO_GetShiftState done [21:51:18]FM_GetShiftState done [21:51:18]opened in 1729469754 [21:51:18]opened+sec_in_day 1729556154 [21:51:18]quantity*price = 0 [21:51:18]sum+1 = 1 [21:51:18]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 399 21.10.2024 21:51 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Талоны: Топливная Карта 02633 ФМ: 0000000000965340 ФД: 187935 ФПД: 21317785633029 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T215124&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187935&fm=21317785633029&tin=02508201610067®Number=0000000000100030&sum=0 [21:51:19]StoreToDocumentArchive [21:51:19]shift 460 fd 187935 [21:51:19]save to /storage/0460/doc_00187935 [21:51:19]save last doc name /storage/0460/doc_00187935 to /storage/kkm_last_doc_name [21:51:19]save OK [21:51:19]Clear old archive folders... [21:51:19]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:51:19]tlvbuf is 012931C0 [21:51:19]SAM_PROTO_ClearQueue [21:51:19]wFMCommunicate request_size=4 [21:51:19]MH_SAM_APDU [21:51:19]CAPDU: 80 09 00 00 [21:51:19]Write to MH i2c: E2 08 00 E8 92 80 09 00 00 00 00 00 00 EC [21:51:19]Write i2c OK [21:51:19]MH_I2C_Read... [21:51:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:51:19]Read from MH i2c: E2 [21:51:19]MH_I2C_Read... [21:51:19]Read from MH i2c: E2 03 00 [21:51:19]MH_I2C_Read... [21:51:19]Read from MH i2c: E2 03 00 E8 92 00 90 00 EE [21:51:19]RAPDU: 90 00 [21:51:19]wFMCommunicate OK [21:51:19]SAM_PROTO_ClearQueue done [21:51:19]KKMCreateOFDPacket [21:51:19]OFDProtocolAddRootSTLVToBuf [21:51:19]FM_MakeSignedData [21:51:19]FM_MakeSignedData [21:51:19]SAM_PROTO_SignData [21:51:19]wFMCommunicate request_size=4 [21:51:19]MH_SAM_APDU [21:51:19]CAPDU: 80 0D 01 02 [21:51:19]Write to MH i2c: E2 08 00 E9 92 80 0D 01 02 00 00 00 00 F4 [21:51:19]Write i2c OK [21:51:19]MH_I2C_Read... [21:51:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:51:19]Read from MH i2c: E2 [21:51:19]MH_I2C_Read... [21:51:19]Read from MH i2c: E2 03 00 [21:51:19]MH_I2C_Read... [21:51:19]Read from MH i2c: E2 03 00 E9 92 00 90 00 EF [21:51:19]RAPDU: 90 00 [21:51:19]wFMCommunicate OK [21:51:19]wFMCommunicate request_size=255 [21:51:19]MH_SAM_APDU [21:51: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 33 FF 03 08 00 03 7C 29 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 8F 01 00 00 F4 03 04 00 DC CC 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 1F DE 02 00 35 04 06 00 13 [21:51:19]Write to MH i2c: E2 02 01 EA 92 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 7C 29 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 8F 01 00 00 F4 03 04 00 DC CC 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 1F DE 02 00 35 04 06 00 13 00 00 1B [21:51:19]Write i2c OK [21:51:19]MH_I2C_Read... [21:51:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:51:19]Read from MH i2c: E2 [21:51:19]MH_I2C_Read... [21:51:19]Read from MH i2c: E2 03 00 [21:51:19]MH_I2C_Read... [21:51:19]Read from MH i2c: E2 03 00 EA 92 00 90 00 F0 [21:51:19]RAPDU: 90 00 [21:51:19]wFMCommunicate OK [21:51:19]wFMCommunicate request_size=10 [21:51:19]MH_SAM_APDU [21:51:19]CAPDU: 80 0D 02 02 05 63 6F 0A 41 05 [21:51:19]Write to MH i2c: E2 0D 00 EB 92 80 0D 02 02 05 00 63 6F 0A 41 05 00 00 23 [21:51:19]Write i2c OK [21:51:19]MH_I2C_Read... [21:51:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:51:19]Read from MH i2c: E2 [21:51:19]MH_I2C_Read... [21:51:19]Read from MH i2c: E2 03 00 [21:51:19]MH_I2C_Read... [21:51:19]Read from MH i2c: E2 03 00 EB 92 00 90 00 F1 [21:51:19]RAPDU: 90 00 [21:51:19]wFMCommunicate OK [21:51:19]wFMCommunicate request_size=4 [21:51:19]MH_SAM_APDU [21:51:19]CAPDU: 80 0D 03 02 [21:51:19]Write to MH i2c: E2 08 00 EC 92 80 0D 03 02 00 00 00 00 F9 [21:51:19]Write i2c OK [21:51:19]MH_I2C_Read... [21:51:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:51:19]Read from MH i2c: E2 [21:51:19]MH_I2C_Read... [21:51:19]Read from MH i2c: E2 0B 00 [21:51:19]MH_I2C_Read... [21:51:19]Read from MH i2c: E2 0B 00 EC 92 00 5D 84 86 AC 16 B7 24 A2 90 00 A0 [21:51:19]RAPDU: 5D 84 86 AC 16 B7 24 A2 90 00 [21:51:19]wFMCommunicate OK [21:51:19]SAM_PROTO_SignData done [21:51:19]FM_MakeSignedData done [21:51:19]CreateOFDProtocolMessage [21:51:19]wFMCommunicate request_size=4 [21:51:19]MH_SAM_APDU [21:51:19]CAPDU: 80 11 00 00 [21:51:19]Write to MH i2c: E2 08 00 ED 92 80 11 00 00 00 00 00 00 F9 [21:51:19]Write i2c OK [21:51:19]MH_I2C_Read... [21:51:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:51:19]Read from MH i2c: E2 [21:51:19]MH_I2C_Read... [21:51:19]Read from MH i2c: E2 17 00 [21:51:19]MH_I2C_Read... [21:51:19]Read from MH i2c: E2 17 00 ED 92 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 47 [21:51:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [21:51:19]wFMCommunicate OK [21:51:19]CreateOFDProtocolMessage done [21:51:19]OFDSenderStorePacket 187935 [21:51:19]StoreOFDPacket docnum=187935 [21:51:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 97 C5 07 01 B0 9F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 7C 29 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 8F 01 00 00 F4 03 04 00 DC CC 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 1F DE 02 00 35 04 06 00 13 63 6F 0A 41 05 5D 84 86 AC 16 B7 24 A2 [21:51:19]CheckFolder [21:51:19]dirname=/storage/ofd_packets [21:51:19]CheckFolder done [21:51:19]ProducePacketName [21:51:19]name=ofd_packets/00187935 [21:51:19]NVStorageSaveData ofd_packets/00187935 [21:51:19]File name is /storage/ofd_packets/00187935 [21:51:19]Write 301 bytes [21:51:19]NVStorageSaveData done [21:51:19]OFDSenderStorePacket done [21:51:19]KKMCreateOFDPacket done [21:51:19]NVStorageSaveData kkm_last_timestamp [21:51:19]File name is /storage/kkm_last_timestamp [21:51:19]Write 4 bytes [21:51:19]NVStorageSaveData done [21:51:19]ExternCall_PrintAddStr [21:51:19]wPrintStart [21:51:19]Write to MH i2c: 01 00 00 EE 92 80 [21:51:19]Write i2c OK [21:51:19]MH_I2C_Read... [21:51:19]Read from MH i2c: 01 [21:51:19]MH_I2C_Read... [21:51:19]Read from MH i2c: 01 07 00 [21:51:19]MH_I2C_Read... [21:51:19]Read from MH i2c: 01 07 00 EE 92 00 00 00 00 00 FF 0F 95 [21:51:19]RasterBufferAndPrint [21:51:19]line Счет N : (1)209987 [21:51:19]line ИНН: 02508201610067 [21:51:19]line Контрольно-Кассовый Чек [21:51:19]line ПРОДАЖА [21:51:19]line ТРК (МРК, ГНК) : 12 [21:51:19]line Товар: 2710124130 [21:51:19]line Аи-92-К-3 [21:51:19]line 10.620 * 0.00 [21:51:19]line = 0.00 [21:51:19]line НДС 12% НСП 1% [21:51:19]line > о реализуемом товаре [21:51:19]line ИТОГО: 0.00 [21:51:19]line НСП 1% : 0.00 [21:51:19]line НДС 12% : 0.00 [21:51:19]line Наличными: 0.00 [21:51:19]line Безнал.: 0.00 [21:51:19]line Место: АЗС № 86 "Партнер Нефть" [21:51:19]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [21:51:19]line СНО: Общий режим [21:51:19]line Чек 399 21.10.2024 21:51 [21:51:19]line Смена: 460 ФФД: 1.0 [21:51:19]line ЗНМ: 0300000155 [21:51:19]line РНМ: 0000000000100030 [21:51:19]line Версия ККМ: 001 [21:51:19]line Талоны: Топливная Карта [21:51:19]line 02633 [21:51:19]line ФМ: 0000000000965340 [21:51:19]line ФД: 187935 [21:51:19]line ФПД: 21317785633029 [21:51:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T215124&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187935&fm=21317785633029&tin=02508201610067®Number=0000000000100030&sum=0 [21:51:19]written 0, free lines is 4095 [21:51:19]OFD Sender: Processing packet 187935 [packets to send 1062, broken 1061] [21:51:19]ProducePacketName [21:51:19]name=ofd_packets/00187935 [21:51:19]OFD Sender: To server: pG, [21:51:19]CommunicateWithHost lk.salyk.kg:30040 [21:51:19]ConnectInit lk.salyk.kg [21:51:20]Connected sock=10 [21:51:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 97 C5 07 01 B0 9F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 7C 29 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 8F 01 00 00 F4 03 04 00 DC CC 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 1F DE 02 00 35 04 06 00 13 63 6F 0A 41 05 5D 84 86 AC 16 B7 24 A2 [21:51:20]Write to MH i2c: 01 00 00 18 93 AB [21:51:20]Write i2c OK [21:51:20]MH_I2C_Read... [21:51:20]Read from MH i2c: 01 [21:51:20]MH_I2C_Read... [21:51:20]Read from MH i2c: 01 07 00 [21:51:20]MH_I2C_Read... [21:51:20]Read from MH i2c: 01 07 00 18 93 00 00 00 00 00 7A 0C 38 [21:51:20]RasterBufferAndPrint [21:51:20]line [21:51:20]line [21:51:20]line [21:51:20]line [21:51:20]line [21:51:20]written 0, free lines is 3199 [21:51:20]MH_Cut [21:51:20]Write to MH i2c: D1 01 00 1F 93 01 84 [21:51:20]Write i2c OK [21:51:20]MH_I2C_Read... [21:51:20]Read from MH i2c: D1 [21:51:20]MH_I2C_Read... [21:51:20]Read from MH i2c: D1 01 00 [21:51:20]MH_I2C_Read... [21:51:20]Read from MH i2c: D1 01 00 1F 93 00 83 [21:51:20]Write to MH i2c: 01 00 00 20 93 B3 [21:51:20]Write i2c OK [21:51:20]MH_I2C_Read... [21:51:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 7B BA 47 00 24 EB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 1F DE 02 00 F4 03 04 00 CB 76 16 67 B6 04 01 00 00 8E 7A AB 1D F4 60 49 A1 [21:51:20]CommunicateWithHost err = 0 [21:51:20]CheckOFDResponse [21:51:20]1017 (14) - 77093643461234 [21:51:20]1041 (16) - 0000000000965340 [21:51:20]1040 (4) - 187935 [21:51:20]1012 (4) - 21.10.2024 15:44 [21:51:20]1206 (1) - 0 [21:51:20]OFD Sender: Remove packet 187935 [21:51:20]ProducePacketName [21:51:20]name=ofd_packets/00187935 [21:51:20]NVStorageDeleteData [21:51:21]OFD Sender: No OFD packet to send [21:51:21]*** Cut start [21:51:21]*** Partial cut [21:51:21]*** CUTSNS_PIN = 1 [21:51:21]*** CUTSNS_PIN = 0 [21:51:21]*** Brake cut motor [21:51:22]Read from MH i2c: 01 [21:51:22]MH_I2C_Read... [21:51:22]*** Stop cut motor [21:51:22]*** Cut end [21:51:22]Read from MH i2c: 01 07 00 [21:51:22]MH_I2C_Read... [21:51:22]Read from MH i2c: 01 07 00 20 93 00 00 00 00 00 FF 0F C8 [21:51:22]process_action close_receipt done [21:51:22]requested_data is exist [21:51:22]produce_requested_data [21:51:22]requested_item fm.sn is exist - process it [21:51:22]wFMCommunicate request_size=4 [21:51:22]MH_SAM_APDU [21:51:22]CAPDU: 80 11 00 00 [21:51:22]Write to MH i2c: E2 08 00 21 93 80 11 00 00 00 00 00 00 2E [21:51:22]Write i2c OK [21:51:22]MH_I2C_Read... [21:51:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:51:22]Read from MH i2c: E2 [21:51:22]MH_I2C_Read... [21:51:22]Read from MH i2c: E2 17 00 [21:51:22]MH_I2C_Read... [21:51:22]Read from MH i2c: E2 17 00 21 93 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 7C [21:51:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [21:51:22]wFMCommunicate OK [21:51:22]requested_item fd.num is exist - process it [21:51:22]SAM_PROTO_GetFieldsCounters [21:51:22]wFMCommunicate request_size=4 [21:51:22]MH_SAM_APDU [21:51:22]CAPDU: 80 13 00 00 [21:51:22]Write to MH i2c: E2 08 00 22 93 80 13 00 00 00 00 00 00 31 [21:51:22]Write i2c OK [21:51:22]MH_I2C_Read... [21:51:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:51:22]Read from MH i2c: E2 [21:51:22]MH_I2C_Read... [21:51:22]Read from MH i2c: E2 62 00 [21:51:22]MH_I2C_Read... [21:51:22]Read from MH i2c: E2 62 00 22 93 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 1F DE 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 8F 01 00 00 5E 04 04 00 8F 01 00 00 57 04 04 00 90 01 00 00 19 04 04 00 00 00 00 00 90 00 B4 [21:51:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 1F DE 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 8F 01 00 00 5E 04 04 00 8F 01 00 00 57 04 04 00 90 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:51:22]wFMCommunicate OK [21:51:22]SAM_PROTO_GetFieldsCounters done [21:51:22]requested_item shift.num is exist - process it [21:51:22]requested_item shift.opened is exist - process it [21:51:22]req_shift_opened [21:51:22]FM_GetShiftState [21:51:22]SAM_PROTO_GetShiftState [21:51:22]wFMCommunicate request_size=4 [21:51:22]MH_SAM_APDU [21:51:22]CAPDU: 80 13 01 00 [21:51:22]Write to MH i2c: E2 08 00 23 93 80 13 01 00 00 00 00 00 33 [21:51:22]Write i2c OK [21:51:22]MH_I2C_Read... [21:51:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:51:22]Read from MH i2c: E2 [21:51:22]MH_I2C_Read... [21:51:22]Read from MH i2c: E2 0E 00 [21:51:22]MH_I2C_Read... [21:51:22]Read from MH i2c: E2 0E 00 23 93 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 92 [21:51:22]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [21:51:22]wFMCommunicate OK [21:51:22]SAM_PROTO_GetShiftState done [21:51:22]FM_GetShiftState done [21:51:22]req_shift_opened done [21:51:22]requested_item shift.open_date is exist - process it [21:51:22]req_shift_open_date [21:51:22]req_shift_open_date done [21:51:22]produce_requested_data done [21:51:22]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187935,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [21:51:22]process_action_free close_receipt [21:51:22]json_value_free [21:51:22]json_value_free done [21:51:22]process_json_proto returns [21:51:22]Send response to host [21:51:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187935,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [21:51:22]free response buf [21:51:22]execute_script done [21:51:22]execute_script returns [21:51:22]free content buf [21:51:22]Sock 8.Close socket [21:51:22]Sock 8.Thread stoped [21:51:26]OFD Sender: No OFD packet to send [21:51:31]OFD Sender: No OFD packet to send [21:51:36]OFD Sender: No OFD packet to send [21:51:41]OFD Sender: No OFD packet to send [21:51:46]OFD Sender: No OFD packet to send [21:51:51]OFD Sender: No OFD packet to send [21:51:56]OFD Sender: No OFD packet to send [21:52:00]accept exits with 9 [21:52:00]New connection [21:52:00]New thread 3067157860 created [21:52:00]Thread 3067014500 joined [21:52:00]Waiting for new connection... [21:52:00] Sock 9.Parse request [21:52:00]Sock 9.Check first char [21:52:00]Sock 9.First char is OK [21:52:00]request: POST /json_proto HTTP/1.0 [21:52:00]Method: POST [21:52:00]URL: /json_proto [21:52:00]Method is POST - this is cgi request [21:52:00]url: /json_proto [21:52:00]query_string will be loaded in cgi processing [21:52:00]execute_cgi json_proto POST (null) [21:52:00]execute_cgi path=json_proto method=POST [21:52:00]POST find Content-Length [21:52:00]Host: 172.17.42.131:8080 [21:52:00]Content-Length: 677 [21:52:00]Content-Type: application/json [21:52:00] [21:52:00]POST finish read [21:52:00]Found Content-Length = 677 [21:52:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209988", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "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" ] } } [21:52:00]execute_script... [21:52:00]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209988", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "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" ] } } [21:52:00]POST & json_proto [21:52:00]process_json_proto [21:52:00]json parsed OK: [21:52:00]protocol is kg_v1.0 [21:52:00]action value=close_receipt [21:52:00]process_action close_receipt [21:52:00]cmd_close_receipt [21:52:00]MH_GetDate [21:52:00]Write to MH i2c: F0 00 00 24 93 A6 [21:52:00]Write i2c OK [21:52:00]MH_I2C_Read... [21:52:00]Read from MH i2c: F0 [21:52:00]MH_I2C_Read... [21:52:00]Read from MH i2c: F0 09 00 [21:52:00]MH_I2C_Read... [21:52:00]Read from MH i2c: F0 09 00 24 93 00 06 CD 16 67 A0 18 CA 66 E7 [21:52:00]GetLastDocTimeStamp 1729547484 [21:52:00]current date 1729547526 [21:52:00]FM_GetShiftState [21:52:00]SAM_PROTO_GetShiftState [21:52:00]wFMCommunicate request_size=4 [21:52:00]MH_SAM_APDU [21:52:00]CAPDU: 80 13 01 00 [21:52:00]Write to MH i2c: E2 08 00 25 93 80 13 01 00 00 00 00 00 35 [21:52:00]Write i2c OK [21:52:00]MH_I2C_Read... [21:52:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:52:00]Read from MH i2c: E2 [21:52:00]MH_I2C_Read... [21:52:00]Read from MH i2c: E2 0E 00 [21:52:00]MH_I2C_Read... [21:52:00]Read from MH i2c: E2 0E 00 25 93 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 94 [21:52:00]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [21:52:00]wFMCommunicate OK [21:52:00]SAM_PROTO_GetShiftState done [21:52:00]FM_GetShiftState done [21:52:00]opened in 1729469754 [21:52:00]opened+sec_in_day 1729556154 [21:52:00]quantity*price = 29034 [21:52:00]sum+1 = 29036 [21:52:00]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 290.00 Внесено: 290.00 СДАЧА: 0.00 НСП 1% : 2.57 НДС 12% : 30.83 Наличными: 290.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 400 21.10.2024 21:52 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 187936 ФПД: 77063794266200 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T215206&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187936&fm=77063794266200&tin=02508201610067®Number=0000000000100030&sum=29000 [21:52:01]StoreToDocumentArchive [21:52:01]shift 460 fd 187936 [21:52:01]save to /storage/0460/doc_00187936 [21:52:01]save last doc name /storage/0460/doc_00187936 to /storage/kkm_last_doc_name [21:52:01]save OK [21:52:01]Clear old archive folders... [21:52:01]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:52:01]tlvbuf is 010B8C40 [21:52:01]SAM_PROTO_ClearQueue [21:52:01]wFMCommunicate request_size=4 [21:52:01]MH_SAM_APDU [21:52:01]CAPDU: 80 09 00 00 [21:52:01]Write to MH i2c: E2 08 00 32 93 80 09 00 00 00 00 00 00 37 [21:52:01]Write i2c OK [21:52:01]MH_I2C_Read... [21:52:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:52:02]Read from MH i2c: E2 [21:52:02]MH_I2C_Read... [21:52:02]Read from MH i2c: E2 03 00 [21:52:02]MH_I2C_Read... [21:52:02]Read from MH i2c: E2 03 00 32 93 00 90 00 39 [21:52:02]RAPDU: 90 00 [21:52:02]wFMCommunicate OK [21:52:02]SAM_PROTO_ClearQueue done [21:52:02]KKMCreateOFDPacket [21:52:02]OFDProtocolAddRootSTLVToBuf [21:52:02]FM_MakeSignedData [21:52:02]FM_MakeSignedData [21:52:02]SAM_PROTO_SignData [21:52:02]wFMCommunicate request_size=4 [21:52:02]MH_SAM_APDU [21:52:02]CAPDU: 80 0D 01 02 [21:52:02]Write to MH i2c: E2 08 00 33 93 80 0D 01 02 00 00 00 00 3F [21:52:02]Write i2c OK [21:52:02]MH_I2C_Read... [21:52:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:52:02]Read from MH i2c: E2 [21:52:02]MH_I2C_Read... [21:52:02]Read from MH i2c: E2 03 00 [21:52:02]MH_I2C_Read... [21:52:02]Read from MH i2c: E2 03 00 33 93 00 90 00 3A [21:52:02]RAPDU: 90 00 [21:52:02]wFMCommunicate OK [21:52:02]wFMCommunicate request_size=255 [21:52:02]MH_SAM_APDU [21:52:02]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 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 90 01 00 00 F4 03 04 00 06 CD 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 20 DE 02 00 35 04 06 00 46 [21:52:02]Write to MH i2c: E2 02 01 34 93 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 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 90 01 00 00 F4 03 04 00 06 CD 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 20 DE 02 00 35 04 06 00 46 00 00 C8 [21:52:02]Write i2c OK [21:52:02]MH_I2C_Read... [21:52:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:52:02]Read from MH i2c: E2 [21:52:02]MH_I2C_Read... [21:52:02]Read from MH i2c: E2 03 00 [21:52:02]MH_I2C_Read... [21:52:02]Read from MH i2c: E2 03 00 34 93 00 90 00 3B [21:52:02]RAPDU: 90 00 [21:52:02]wFMCommunicate OK [21:52:02]wFMCommunicate request_size=10 [21:52:02]MH_SAM_APDU [21:52:02]CAPDU: 80 0D 02 02 05 16 D0 15 10 58 [21:52:02]Write to MH i2c: E2 0D 00 35 93 80 0D 02 02 05 00 16 D0 15 10 58 00 00 AF [21:52:02]Write i2c OK [21:52:02]MH_I2C_Read... [21:52:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:52:02]Read from MH i2c: E2 [21:52:02]MH_I2C_Read... [21:52:02]Read from MH i2c: E2 03 00 [21:52:02]MH_I2C_Read... [21:52:02]Read from MH i2c: E2 03 00 35 93 00 90 00 3C [21:52:02]RAPDU: 90 00 [21:52:02]wFMCommunicate OK [21:52:02]wFMCommunicate request_size=4 [21:52:02]MH_SAM_APDU [21:52:02]CAPDU: 80 0D 03 02 [21:52:02]Write to MH i2c: E2 08 00 36 93 80 0D 03 02 00 00 00 00 44 [21:52:02]Write i2c OK [21:52:02]MH_I2C_Read... [21:52:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:52:02]Read from MH i2c: E2 [21:52:02]MH_I2C_Read... [21:52:02]Read from MH i2c: E2 0B 00 [21:52:02]MH_I2C_Read... [21:52:02]Read from MH i2c: E2 0B 00 36 93 00 5E DA 83 54 51 77 9A 5A 90 00 10 [21:52:02]RAPDU: 5E DA 83 54 51 77 9A 5A 90 00 [21:52:02]wFMCommunicate OK [21:52:02]SAM_PROTO_SignData done [21:52:02]FM_MakeSignedData done [21:52:02]CreateOFDProtocolMessage [21:52:02]wFMCommunicate request_size=4 [21:52:02]MH_SAM_APDU [21:52:02]CAPDU: 80 11 00 00 [21:52:02]Write to MH i2c: E2 08 00 37 93 80 11 00 00 00 00 00 00 44 [21:52:02]Write i2c OK [21:52:02]MH_I2C_Read... [21:52:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:52:02]Read from MH i2c: E2 [21:52:02]MH_I2C_Read... [21:52:02]Read from MH i2c: E2 17 00 [21:52:02]MH_I2C_Read... [21:52:02]Read from MH i2c: E2 17 00 37 93 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 92 [21:52:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [21:52:02]wFMCommunicate OK [21:52:02]CreateOFDProtocolMessage done [21:52:02]OFDSenderStorePacket 187936 [21:52:02]StoreOFDPacket docnum=187936 [21:52:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 FA A7 07 01 0C A7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 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 90 01 00 00 F4 03 04 00 06 CD 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 20 DE 02 00 35 04 06 00 46 16 D0 15 10 58 5E DA 83 54 51 77 9A 5A [21:52:02]CheckFolder [21:52:02]dirname=/storage/ofd_packets [21:52:02]CheckFolder done [21:52:02]ProducePacketName [21:52:02]name=ofd_packets/00187936 [21:52:02]NVStorageSaveData ofd_packets/00187936 [21:52:02]File name is /storage/ofd_packets/00187936 [21:52:02]Write 301 bytes [21:52:02]NVStorageSaveData done [21:52:02]OFDSenderStorePacket done [21:52:02]KKMCreateOFDPacket done [21:52:02]NVStorageSaveData kkm_last_timestamp [21:52:02]File name is /storage/kkm_last_timestamp [21:52:02]Write 4 bytes [21:52:02]NVStorageSaveData done [21:52:02]ExternCall_PrintAddStr [21:52:02]wPrintStart [21:52:02]Write to MH i2c: 01 00 00 38 93 CB [21:52:02]Write i2c OK [21:52:02]MH_I2C_Read... [21:52:02]Read from MH i2c: 01 [21:52:02]MH_I2C_Read... [21:52:02]Read from MH i2c: 01 07 00 [21:52:02]MH_I2C_Read... [21:52:02]Read from MH i2c: 01 07 00 38 93 00 00 00 00 00 FF 0F E0 [21:52:02]RasterBufferAndPrint [21:52:02]line Счет N : (1)209988 [21:52:02]line ИНН: 02508201610067 [21:52:02]line Контрольно-Кассовый Чек [21:52:02]line ПРОДАЖА [21:52:02]line ТРК (МРК, ГНК) : 12 [21:52:02]line Товар: 2710124130 [21:52:02]line Аи-92-К-3 [21:52:02]line 4.340 * 66.90 [21:52:02]line = 290.35 [21:52:02]line НДС 12% НСП 1% [21:52:02]line > о реализуемом товаре [21:52:02]line ОКРУГЛЕНИЕ: -0.35 [21:52:02]line ИТОГО: 290.00 [21:52:02]line Внесено: 290.00 [21:52:02]line СДАЧА: 0.00 [21:52:02]line НСП 1% : 2.57 [21:52:02]line НДС 12% : 30.83 [21:52:02]line Наличными: 290.00 [21:52:02]line Безнал.: 0.00 [21:52:02]line Место: АЗС № 86 "Партнер Нефть" [21:52:02]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [21:52:02]line СНО: Общий режим [21:52:02]line Чек 400 21.10.2024 21:52 [21:52:02]line Смена: 460 ФФД: 1.0 [21:52:02]line ЗНМ: 0300000155 [21:52:02]line РНМ: 0000000000100030 [21:52:02]line Версия ККМ: 001 [21:52:02]line ФМ: 0000000000965340 [21:52:02]line ФД: 187936 [21:52:02]line ФПД: 77063794266200 [21:52:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T215206&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187936&fm=77063794266200&tin=02508201610067®Number=0000000000100030&sum=29000 [21:52:02]written 0, free lines is 4095 [21:52:02]OFD Sender: Processing packet 187936 [packets to send 1062, broken 1061] [21:52:02]ProducePacketName [21:52:02]name=ofd_packets/00187936 [21:52:02]OFD Sender: To server: pG, [21:52:02]CommunicateWithHost lk.salyk.kg:30040 [21:52:02]ConnectInit lk.salyk.kg [21:52:02]Connected sock=10 [21:52:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 FA A7 07 01 0C A7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 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 90 01 00 00 F4 03 04 00 06 CD 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 20 DE 02 00 35 04 06 00 46 16 D0 15 10 58 5E DA 83 54 51 77 9A 5A [21:52:02]Write to MH i2c: 01 00 00 63 93 F6 [21:52:02]Write i2c OK [21:52:02]MH_I2C_Read... [21:52:02]Read from MH i2c: 01 [21:52:02]MH_I2C_Read... [21:52:02]Read from MH i2c: 01 07 00 [21:52:02]MH_I2C_Read... [21:52:02]Read from MH i2c: 01 07 00 63 93 00 00 00 00 00 5D 0C 66 [21:52:02]RasterBufferAndPrint [21:52:02]line [21:52:02]line [21:52:02]line [21:52:02]line [21:52:02]line [21:52:02]written 0, free lines is 3168 [21:52:02]MH_Cut [21:52:02]Write to MH i2c: D1 01 00 6A 93 01 CF [21:52:02]Write i2c OK [21:52:02]MH_I2C_Read... [21:52:02]Read from MH i2c: D1 [21:52:02]MH_I2C_Read... [21:52:02]Read from MH i2c: D1 01 00 [21:52:02]MH_I2C_Read... [21:52:02]Read from MH i2c: D1 01 00 6A 93 00 CE [21:52:02]Write to MH i2c: 01 00 00 6B 93 FE [21:52:02]Write i2c OK [21:52:02]MH_I2C_Read... [21:52:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 9B 6F 47 00 38 D7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 20 DE 02 00 F4 03 04 00 F5 76 16 67 B6 04 01 00 00 9E 83 0E F3 BC 32 99 BB [21:52:03]CommunicateWithHost err = 0 [21:52:03]CheckOFDResponse [21:52:03]1017 (14) - 77093643461234 [21:52:03]1041 (16) - 0000000000965340 [21:52:03]1040 (4) - 187936 [21:52:03]1012 (4) - 21.10.2024 15:44 [21:52:03]1206 (1) - 0 [21:52:03]OFD Sender: Remove packet 187936 [21:52:03]ProducePacketName [21:52:03]name=ofd_packets/00187936 [21:52:03]NVStorageDeleteData [21:52:03]OFD Sender: No OFD packet to send [21:52:04]*** Cut start [21:52:04]*** Partial cut [21:52:04]*** CUTSNS_PIN = 1 [21:52:04]*** CUTSNS_PIN = 0 [21:52:04]*** Brake cut motor [21:52:04]Read from MH i2c: 01 [21:52:04]MH_I2C_Read... [21:52:04]*** Stop cut motor [21:52:04]*** Cut end [21:52:04]Read from MH i2c: 01 07 00 [21:52:04]MH_I2C_Read... [21:52:04]Read from MH i2c: 01 07 00 6B 93 00 00 00 00 00 FF 0F 13 [21:52:04]process_action close_receipt done [21:52:04]requested_data is exist [21:52:04]produce_requested_data [21:52:04]requested_item fm.sn is exist - process it [21:52:04]wFMCommunicate request_size=4 [21:52:04]MH_SAM_APDU [21:52:04]CAPDU: 80 11 00 00 [21:52:04]Write to MH i2c: E2 08 00 6C 93 80 11 00 00 00 00 00 00 79 [21:52:04]Write i2c OK [21:52:04]MH_I2C_Read... [21:52:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:52:04]Read from MH i2c: E2 [21:52:04]MH_I2C_Read... [21:52:04]Read from MH i2c: E2 17 00 [21:52:04]MH_I2C_Read... [21:52:04]Read from MH i2c: E2 17 00 6C 93 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 C7 [21:52:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [21:52:04]wFMCommunicate OK [21:52:04]requested_item fd.num is exist - process it [21:52:04]SAM_PROTO_GetFieldsCounters [21:52:04]wFMCommunicate request_size=4 [21:52:04]MH_SAM_APDU [21:52:04]CAPDU: 80 13 00 00 [21:52:04]Write to MH i2c: E2 08 00 6D 93 80 13 00 00 00 00 00 00 7C [21:52:04]Write i2c OK [21:52:04]MH_I2C_Read... [21:52:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:52:05]Read from MH i2c: E2 [21:52:05]MH_I2C_Read... [21:52:05]Read from MH i2c: E2 62 00 [21:52:05]MH_I2C_Read... [21:52:05]Read from MH i2c: E2 62 00 6D 93 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 20 DE 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 90 01 00 00 5E 04 04 00 90 01 00 00 57 04 04 00 91 01 00 00 19 04 04 00 00 00 00 00 90 00 03 [21:52:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 20 DE 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 90 01 00 00 5E 04 04 00 90 01 00 00 57 04 04 00 91 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:52:05]wFMCommunicate OK [21:52:05]SAM_PROTO_GetFieldsCounters done [21:52:05]requested_item shift.num is exist - process it [21:52:05]requested_item shift.opened is exist - process it [21:52:05]req_shift_opened [21:52:05]FM_GetShiftState [21:52:05]SAM_PROTO_GetShiftState [21:52:05]wFMCommunicate request_size=4 [21:52:05]MH_SAM_APDU [21:52:05]CAPDU: 80 13 01 00 [21:52:05]Write to MH i2c: E2 08 00 6E 93 80 13 01 00 00 00 00 00 7E [21:52:05]Write i2c OK [21:52:05]MH_I2C_Read... [21:52:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:52:05]Read from MH i2c: E2 [21:52:05]MH_I2C_Read... [21:52:05]Read from MH i2c: E2 0E 00 [21:52:05]MH_I2C_Read... [21:52:05]Read from MH i2c: E2 0E 00 6E 93 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 DD [21:52:05]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [21:52:05]wFMCommunicate OK [21:52:05]SAM_PROTO_GetShiftState done [21:52:05]FM_GetShiftState done [21:52:05]req_shift_opened done [21:52:05]requested_item shift.open_date is exist - process it [21:52:05]req_shift_open_date [21:52:05]req_shift_open_date done [21:52:05]produce_requested_data done [21:52:05]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187936,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [21:52:05]process_action_free close_receipt [21:52:05]json_value_free [21:52:05]json_value_free done [21:52:05]process_json_proto returns [21:52:05]Send response to host [21:52:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187936,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [21:52:05]free response buf [21:52:05]execute_script done [21:52:05]execute_script returns [21:52:05]free content buf [21:52:05]Sock 9.Close socket [21:52:05]Sock 9.Thread stoped [21:52:08]OFD Sender: No OFD packet to send [21:52:13]OFD Sender: No OFD packet to send [21:52:18]OFD Sender: No OFD packet to send [21:52:23]OFD Sender: No OFD packet to send [21:52:28]OFD Sender: No OFD packet to send [21:52:33]OFD Sender: No OFD packet to send [21:52:38]OFD Sender: No OFD packet to send [21:52:43]OFD Sender: No OFD packet to send [21:52:48]OFD Sender: No OFD packet to send [21:52:53]OFD Sender: No OFD packet to send [21:52:58]OFD Sender: No OFD packet to send [21:53:03]OFD Sender: No OFD packet to send [21:53:09]OFD Sender: No OFD packet to send [21:53:14]OFD Sender: No OFD packet to send [21:53:19]OFD Sender: No OFD packet to send [21:53:24]OFD Sender: No OFD packet to send [21:53:29]OFD Sender: No OFD packet to send [21:53:34]OFD Sender: No OFD packet to send [21:53:39]OFD Sender: No OFD packet to send [21:53:44]OFD Sender: No OFD packet to send [21:53:49]OFD Sender: No OFD packet to send [21:53:54]OFD Sender: No OFD packet to send [21:53:59]OFD Sender: No OFD packet to send [21:54:04]OFD Sender: No OFD packet to send [21:54:09]OFD Sender: No OFD packet to send [21:54:14]OFD Sender: No OFD packet to send [21:54:19]OFD Sender: No OFD packet to send [21:54:24]OFD Sender: No OFD packet to send [21:54:29]OFD Sender: No OFD packet to send [21:54:34]OFD Sender: No OFD packet to send [21:54:39]OFD Sender: No OFD packet to send [21:54:44]OFD Sender: No OFD packet to send [21:54:49]OFD Sender: No OFD packet to send [21:54:54]OFD Sender: No OFD packet to send [21:54:59]OFD Sender: No OFD packet to send [21:55:04]OFD Sender: No OFD packet to send [21:55:09]OFD Sender: No OFD packet to send [21:55:14]OFD Sender: No OFD packet to send [21:55:19]OFD Sender: No OFD packet to send [21:55:24]OFD Sender: No OFD packet to send [21:55:29]OFD Sender: No OFD packet to send [21:55:34]OFD Sender: No OFD packet to send [21:55:39]OFD Sender: No OFD packet to send [21:55:44]OFD Sender: No OFD packet to send [21:55:49]OFD Sender: No OFD packet to send [21:55:54]OFD Sender: No OFD packet to send [21:55:59]OFD Sender: No OFD packet to send [21:56:04]OFD Sender: No OFD packet to send [21:56:09]OFD Sender: No OFD packet to send [21:56:14]OFD Sender: No OFD packet to send [21:56:19]OFD Sender: No OFD packet to send [21:56:24]OFD Sender: No OFD packet to send [21:56:29]OFD Sender: No OFD packet to send [21:56:34]OFD Sender: No OFD packet to send [21:56:39]OFD Sender: No OFD packet to send [21:56:44]OFD Sender: No OFD packet to send [21:56:49]OFD Sender: No OFD packet to send [21:56: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:06]accept exits with 8 [21:57:06]New connection [21:57:06]New thread 3067014500 created [21:57:06]Thread 3067157860 joined [21:57:06]Waiting for new connection... [21:57:06] Sock 8.Parse request [21:57:06]Sock 8.Check first char [21:57:06]Sock 8.First char is OK [21:57:06]request: POST /json_proto HTTP/1.0 [21:57:06]Method: POST [21:57:06]URL: /json_proto [21:57:06]Method is POST - this is cgi request [21:57:06]url: /json_proto [21:57:06]query_string will be loaded in cgi processing [21:57:06]execute_cgi json_proto POST (null) [21:57:06]execute_cgi path=json_proto method=POST [21:57:06]POST find Content-Length [21:57:06]Host: 172.17.42.131:8080 [21:57:06]Content-Length: 682 [21:57:06]Content-Type: application/json [21:57:06] [21:57:06]POST finish read [21:57:06]Found Content-Length = 682 [21:57:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209989", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "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" ] } } [21:57:06]execute_script... [21:57: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)209989", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "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" ] } } [21:57:06]POST & json_proto [21:57:06]process_json_proto [21:57:06]json parsed OK: [21:57:06]protocol is kg_v1.0 [21:57:06]action value=close_receipt [21:57:06]process_action close_receipt [21:57:06]cmd_close_receipt [21:57:06]MH_GetDate [21:57:06]Write to MH i2c: F0 00 00 6F 93 F1 [21:57:06]Write i2c OK [21:57:06]MH_I2C_Read... [21:57:06]Read from MH i2c: F0 [21:57:06]MH_I2C_Read... [21:57:06]Read from MH i2c: F0 09 00 [21:57:06]MH_I2C_Read... [21:57:06]Read from MH i2c: F0 09 00 6F 93 00 38 CE 16 67 A0 18 CA 66 65 [21:57:06]GetLastDocTimeStamp 1729547526 [21:57:06]current date 1729547832 [21:57:06]FM_GetShiftState [21:57:06]SAM_PROTO_GetShiftState [21:57:06]wFMCommunicate request_size=4 [21:57:06]MH_SAM_APDU [21:57:06]CAPDU: 80 13 01 00 [21:57:06]Write to MH i2c: E2 08 00 70 93 80 13 01 00 00 00 00 00 80 [21:57:06]Write i2c OK [21:57:06]MH_I2C_Read... [21:57:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:57:06]Read from MH i2c: E2 [21:57:06]MH_I2C_Read... [21:57:06]Read from MH i2c: E2 0E 00 [21:57:06]MH_I2C_Read... [21:57:06]Read from MH i2c: E2 0E 00 70 93 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 DF [21:57:06]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [21:57:06]wFMCommunicate OK [21:57:06]SAM_PROTO_GetShiftState done [21:57:06]FM_GetShiftState done [21:57:06]opened in 1729469754 [21:57:06]opened+sec_in_day 1729556154 [21:57:06]quantity*price = 150056 [21:57:06]sum+1 = 150058 [21:57:06]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.57 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.35 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 401 21.10.2024 21:57 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 187937 ФПД: 31386802445886 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T215712&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187937&fm=31386802445886&tin=02508201610067®Number=0000000000100030&sum=150000 [21:57:07]StoreToDocumentArchive [21:57:07]shift 460 fd 187937 [21:57:07]save to /storage/0460/doc_00187937 [21:57:07]save last doc name /storage/0460/doc_00187937 to /storage/kkm_last_doc_name [21:57:07]save OK [21:57:07]Clear old archive folders... [21:57:07]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:57:07]tlvbuf is 010B8770 [21:57:07]SAM_PROTO_ClearQueue [21:57:07]wFMCommunicate request_size=4 [21:57:07]MH_SAM_APDU [21:57:07]CAPDU: 80 09 00 00 [21:57:07]Write to MH i2c: E2 08 00 7D 93 80 09 00 00 00 00 00 00 82 [21:57:07]Write i2c OK [21:57:07]MH_I2C_Read... [21:57:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:57:07]Read from MH i2c: E2 [21:57:07]MH_I2C_Read... [21:57:07]Read from MH i2c: E2 03 00 [21:57:07]MH_I2C_Read... [21:57:07]Read from MH i2c: E2 03 00 7D 93 00 90 00 84 [21:57:07]RAPDU: 90 00 [21:57:07]wFMCommunicate OK [21:57:07]SAM_PROTO_ClearQueue done [21:57:07]KKMCreateOFDPacket [21:57:07]OFDProtocolAddRootSTLVToBuf [21:57:07]FM_MakeSignedData [21:57:07]FM_MakeSignedData [21:57:07]SAM_PROTO_SignData [21:57:07]wFMCommunicate request_size=4 [21:57:07]MH_SAM_APDU [21:57:07]CAPDU: 80 0D 01 02 [21:57:07]Write to MH i2c: E2 08 00 7E 93 80 0D 01 02 00 00 00 00 8A [21:57:07]Write i2c OK [21:57:07]MH_I2C_Read... [21:57:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:57:07]Read from MH i2c: E2 [21:57:07]MH_I2C_Read... [21:57:07]Read from MH i2c: E2 03 00 [21:57:07]MH_I2C_Read... [21:57:07]Read from MH i2c: E2 03 00 7E 93 00 90 00 85 [21:57:07]RAPDU: 90 00 [21:57:07]wFMCommunicate OK [21:57:07]wFMCommunicate request_size=255 [21:57:07]MH_SAM_APDU [21:57:07]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 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 91 01 00 00 F4 03 04 00 38 CE 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 21 DE 02 00 35 04 06 00 1C [21:57:07]Write to MH i2c: E2 02 01 7F 93 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 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 91 01 00 00 F4 03 04 00 38 CE 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 21 DE 02 00 35 04 06 00 1C 00 00 45 [21:57:07]Write i2c OK [21:57:07]MH_I2C_Read... [21:57:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:57:07]Read from MH i2c: E2 [21:57:07]MH_I2C_Read... [21:57:07]Read from MH i2c: E2 03 00 [21:57:07]MH_I2C_Read... [21:57:07]Read from MH i2c: E2 03 00 7F 93 00 90 00 86 [21:57:07]RAPDU: 90 00 [21:57:07]wFMCommunicate OK [21:57:07]wFMCommunicate request_size=10 [21:57:07]MH_SAM_APDU [21:57:07]CAPDU: 80 0D 02 02 05 8B CF 35 DE 3E [21:57:07]Write to MH i2c: E2 0D 00 80 93 80 0D 02 02 05 00 8B CF 35 DE 3E 00 00 42 [21:57:07]Write i2c OK [21:57:07]MH_I2C_Read... [21:57:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:57:07]Read from MH i2c: E2 [21:57:07]MH_I2C_Read... [21:57:07]Read from MH i2c: E2 03 00 [21:57:07]MH_I2C_Read... [21:57:07]Read from MH i2c: E2 03 00 80 93 00 90 00 87 [21:57:07]RAPDU: 90 00 [21:57:07]wFMCommunicate OK [21:57:07]wFMCommunicate request_size=4 [21:57:07]MH_SAM_APDU [21:57:07]CAPDU: 80 0D 03 02 [21:57:07]Write to MH i2c: E2 08 00 81 93 80 0D 03 02 00 00 00 00 8F [21:57:07]Write i2c OK [21:57:07]MH_I2C_Read... [21:57:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:57:07]Read from MH i2c: E2 [21:57:07]MH_I2C_Read... [21:57:07]Read from MH i2c: E2 0B 00 [21:57:07]MH_I2C_Read... [21:57:07]Read from MH i2c: E2 0B 00 81 93 00 0F 88 38 B1 CC 44 F4 85 90 00 99 [21:57:07]RAPDU: 0F 88 38 B1 CC 44 F4 85 90 00 [21:57:07]wFMCommunicate OK [21:57:07]SAM_PROTO_SignData done [21:57:07]FM_MakeSignedData done [21:57:07]CreateOFDProtocolMessage [21:57:07]wFMCommunicate request_size=4 [21:57:07]MH_SAM_APDU [21:57:07]CAPDU: 80 11 00 00 [21:57:07]Write to MH i2c: E2 08 00 82 93 80 11 00 00 00 00 00 00 8F [21:57:07]Write i2c OK [21:57:07]MH_I2C_Read... [21:57:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:57:07]Read from MH i2c: E2 [21:57:07]MH_I2C_Read... [21:57:07]Read from MH i2c: E2 17 00 [21:57:07]MH_I2C_Read... [21:57:07]Read from MH i2c: E2 17 00 82 93 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 DD [21:57:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [21:57:07]wFMCommunicate OK [21:57:07]CreateOFDProtocolMessage done [21:57:07]OFDSenderStorePacket 187937 [21:57:07]StoreOFDPacket docnum=187937 [21:57:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 21 10 07 01 CF 39 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 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 91 01 00 00 F4 03 04 00 38 CE 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 21 DE 02 00 35 04 06 00 1C 8B CF 35 DE 3E 0F 88 38 B1 CC 44 F4 85 [21:57:07]CheckFolder [21:57:07]dirname=/storage/ofd_packets [21:57:07]CheckFolder done [21:57:07]ProducePacketName [21:57:07]name=ofd_packets/00187937 [21:57:07]NVStorageSaveData ofd_packets/00187937 [21:57:07]File name is /storage/ofd_packets/00187937 [21:57:07]Write 301 bytes [21:57:07]NVStorageSaveData done [21:57:07]OFDSenderStorePacket done [21:57:07]KKMCreateOFDPacket done [21:57:07]NVStorageSaveData kkm_last_timestamp [21:57:07]File name is /storage/kkm_last_timestamp [21:57:07]Write 4 bytes [21:57:07]NVStorageSaveData done [21:57:07]ExternCall_PrintAddStr [21:57:07]wPrintStart [21:57:07]Write to MH i2c: 01 00 00 83 93 16 [21:57:07]Write i2c OK [21:57:07]MH_I2C_Read... [21:57:07]Read from MH i2c: 01 [21:57:07]MH_I2C_Read... [21:57:07]Read from MH i2c: 01 07 00 [21:57:07]MH_I2C_Read... [21:57:07]Read from MH i2c: 01 07 00 83 93 00 00 00 00 00 FF 0F 2B [21:57:07]RasterBufferAndPrint [21:57:07]line Счет N : (1)209989 [21:57:07]line ИНН: 02508201610067 [21:57:07]line Контрольно-Кассовый Чек [21:57:07]line ПРОДАЖА [21:57:07]line ТРК (МРК, ГНК) : 42 [21:57:07]line Товар: 2710124130 [21:57:07]line Аи-92-К-3 [21:57:07]line 22.430 * 66.90 [21:57:07]line = 1500.57 [21:57:07]line НДС 12% НСП 1% [21:57:07]line > о реализуемом товаре [21:57:07]line ОКРУГЛЕНИЕ: -0.57 [21:57:07]line ИТОГО: 1500.00 [21:57:07]line Внесено: 1500.00 [21:57:07]line СДАЧА: 0.00 [21:57:07]line НСП 1% : 13.28 [21:57:07]line НДС 12% : 159.35 [21:57:07]line Наличными: 1500.00 [21:57:07]line Безнал.: 0.00 [21:57:07]line Место: АЗС № 86 "Партнер Нефть" [21:57:07]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [21:57:07]line СНО: Общий режим [21:57:07]line Чек 401 21.10.2024 21:57 [21:57:07]line Смена: 460 ФФД: 1.0 [21:57:07]line ЗНМ: 0300000155 [21:57:07]line РНМ: 0000000000100030 [21:57:07]line Версия ККМ: 001 [21:57:07]line ФМ: 0000000000965340 [21:57:07]line ФД: 187937 [21:57:07]line ФПД: 31386802445886 [21:57:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T215712&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187937&fm=31386802445886&tin=02508201610067®Number=0000000000100030&sum=150000 [21:57:07]written 0, free lines is 4095 [21:57:07]OFD Sender: Processing packet 187937 [packets to send 1062, broken 1061] [21:57:07]ProducePacketName [21:57:07]name=ofd_packets/00187937 [21:57:07]OFD Sender: To server: pG, [21:57:07]CommunicateWithHost lk.salyk.kg:30040 [21:57:07]ConnectInit lk.salyk.kg [21:57:08]Connected sock=10 [21:57:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 21 10 07 01 CF 39 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 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 91 01 00 00 F4 03 04 00 38 CE 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 21 DE 02 00 35 04 06 00 1C 8B CF 35 DE 3E 0F 88 38 B1 CC 44 F4 85 [21:57:08]Write to MH i2c: 01 00 00 AE 93 41 [21:57:08]Write i2c OK [21:57:08]MH_I2C_Read... [21:57:08]Read from MH i2c: 01 [21:57:08]MH_I2C_Read... [21:57:08]Read from MH i2c: 01 07 00 [21:57:08]MH_I2C_Read... [21:57:08]Read from MH i2c: 01 07 00 AE 93 00 00 00 00 00 5D 0C B1 [21:57:08]RasterBufferAndPrint [21:57:08]line [21:57:08]line [21:57:08]line [21:57:08]line [21:57:08]line [21:57:08]written 0, free lines is 3169 [21:57:08]MH_Cut [21:57:08]Write to MH i2c: D1 01 00 B5 93 01 1A [21:57:08]Write i2c OK [21:57:08]MH_I2C_Read... [21:57:08]Read from MH i2c: D1 [21:57:08]MH_I2C_Read... [21:57:08]Read from MH i2c: D1 01 00 [21:57:08]MH_I2C_Read... [21:57:08]Read from MH i2c: D1 01 00 B5 93 00 19 [21:57:08]Write to MH i2c: 01 00 00 B6 93 49 [21:57:08]Write i2c OK [21:57:08]MH_I2C_Read... [21:57:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 44 FE 47 00 D6 CE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 21 DE 02 00 F4 03 04 00 26 78 16 67 B6 04 01 00 00 2D F4 C1 86 A1 FD F2 CB [21:57:08]CommunicateWithHost err = 0 [21:57:08]CheckOFDResponse [21:57:08]1017 (14) - 77093643461234 [21:57:08]1041 (16) - 0000000000965340 [21:57:08]1040 (4) - 187937 [21:57:08]1012 (4) - 21.10.2024 15:49 [21:57:08]1206 (1) - 0 [21:57:08]OFD Sender: Remove packet 187937 [21:57:08]ProducePacketName [21:57:08]name=ofd_packets/00187937 [21:57:08]NVStorageDeleteData [21:57:09]OFD Sender: No OFD packet to send [21:57:09]*** Cut start [21:57:09]*** Partial cut [21:57:09]*** CUTSNS_PIN = 1 [21:57:09]*** CUTSNS_PIN = 0 [21:57:09]*** Brake cut motor [21:57:10]Read from MH i2c: 01 [21:57:10]MH_I2C_Read... [21:57:10]*** Stop cut motor [21:57:10]*** Cut end [21:57:10]Read from MH i2c: 01 07 00 [21:57:10]MH_I2C_Read... [21:57:10]Read from MH i2c: 01 07 00 B6 93 00 00 00 00 00 FF 0F 5E [21:57:10]process_action close_receipt done [21:57:10]requested_data is exist [21:57:10]produce_requested_data [21:57:10]requested_item fm.sn is exist - process it [21:57:10]wFMCommunicate request_size=4 [21:57:10]MH_SAM_APDU [21:57:10]CAPDU: 80 11 00 00 [21:57:10]Write to MH i2c: E2 08 00 B7 93 80 11 00 00 00 00 00 00 C4 [21:57:10]Write i2c OK [21:57:10]MH_I2C_Read... [21:57:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:57:10]Read from MH i2c: E2 [21:57:10]MH_I2C_Read... [21:57:10]Read from MH i2c: E2 17 00 [21:57:10]MH_I2C_Read... [21:57:10]Read from MH i2c: E2 17 00 B7 93 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 12 [21:57:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [21:57:10]wFMCommunicate OK [21:57:10]requested_item fd.num is exist - process it [21:57:10]SAM_PROTO_GetFieldsCounters [21:57:10]wFMCommunicate request_size=4 [21:57:10]MH_SAM_APDU [21:57:10]CAPDU: 80 13 00 00 [21:57:10]Write to MH i2c: E2 08 00 B8 93 80 13 00 00 00 00 00 00 C7 [21:57:10]Write i2c OK [21:57:10]MH_I2C_Read... [21:57:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:57:10]Read from MH i2c: E2 [21:57:10]MH_I2C_Read... [21:57:10]Read from MH i2c: E2 62 00 [21:57:10]MH_I2C_Read... [21:57:10]Read from MH i2c: E2 62 00 B8 93 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 21 DE 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 91 01 00 00 5E 04 04 00 91 01 00 00 57 04 04 00 92 01 00 00 19 04 04 00 00 00 00 00 90 00 52 [21:57:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 21 DE 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 91 01 00 00 5E 04 04 00 91 01 00 00 57 04 04 00 92 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:57:10]wFMCommunicate OK [21:57:10]SAM_PROTO_GetFieldsCounters done [21:57:10]requested_item shift.num is exist - process it [21:57:10]requested_item shift.opened is exist - process it [21:57:10]req_shift_opened [21:57:10]FM_GetShiftState [21:57:10]SAM_PROTO_GetShiftState [21:57:10]wFMCommunicate request_size=4 [21:57:10]MH_SAM_APDU [21:57:10]CAPDU: 80 13 01 00 [21:57:10]Write to MH i2c: E2 08 00 B9 93 80 13 01 00 00 00 00 00 C9 [21:57:10]Write i2c OK [21:57:10]MH_I2C_Read... [21:57:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:57:10]Read from MH i2c: E2 [21:57:10]MH_I2C_Read... [21:57:10]Read from MH i2c: E2 0E 00 [21:57:10]MH_I2C_Read... [21:57:10]Read from MH i2c: E2 0E 00 B9 93 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 28 [21:57:10]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [21:57:10]wFMCommunicate OK [21:57:10]SAM_PROTO_GetShiftState done [21:57:10]FM_GetShiftState done [21:57:10]req_shift_opened done [21:57:10]requested_item shift.open_date is exist - process it [21:57:10]req_shift_open_date [21:57:10]req_shift_open_date done [21:57:10]produce_requested_data done [21:57:10]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187937,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [21:57:10]process_action_free close_receipt [21:57:10]json_value_free [21:57:10]json_value_free done [21:57:10]process_json_proto returns [21:57:10]Send response to host [21:57:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187937,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [21:57:10]free response buf [21:57:10]execute_script done [21:57:10]execute_script returns [21:57:10]free content buf [21:57:10]Sock 8.Close socket [21:57:10]Sock 8.Thread stoped [21:57:14]OFD Sender: No OFD packet to send [21:57:19]OFD Sender: No OFD packet to send [21:57:24]OFD Sender: No OFD packet to send [21:57:29]OFD Sender: No OFD packet to send [21:57:34]OFD Sender: No OFD packet to send [21:57:39]OFD Sender: No OFD packet to send [21:57:44]OFD Sender: No OFD packet to send [21:57:49]OFD Sender: No OFD packet to send [21:57:54]OFD Sender: No OFD packet to send [21:57:59]OFD Sender: No OFD packet to send [21:58:04]OFD Sender: No OFD packet to send [21:58:09]OFD Sender: No OFD packet to send [21:58:14]OFD Sender: No OFD packet to send [21:58:19]OFD Sender: No OFD packet to send [21:58:24]OFD Sender: No OFD packet to send [21:58:29]OFD Sender: No OFD packet to send [21:58:34]OFD Sender: No OFD packet to send [21:58:39]OFD Sender: No OFD packet to send [21:58:44]OFD Sender: No OFD packet to send [21:58:49]OFD Sender: No OFD packet to send [21:58:54]OFD Sender: No OFD packet to send [21:58:59]OFD Sender: No OFD packet to send [21:59:04]OFD Sender: No OFD packet to send [21:59:09]OFD Sender: No OFD packet to send [21:59:14]OFD Sender: No OFD packet to send [21:59:19]OFD Sender: No OFD packet to send [21:59:24]OFD Sender: No OFD packet to send [21:59:29]OFD Sender: No OFD packet to send [21:59:34]OFD Sender: No OFD packet to send [21:59:39]OFD Sender: No OFD packet to send [21:59:44]OFD Sender: No OFD packet to send [21:59:49]OFD Sender: No OFD packet to send [21:59:54]OFD Sender: No OFD packet to send [21:59:59]OFD Sender: No OFD packet to send [22:00:04]OFD Sender: No OFD packet to send [22:00:09]OFD Sender: No OFD packet to send [22:00:14]OFD Sender: No OFD packet to send [22:00:19]OFD Sender: No OFD packet to send [22:00:24]OFD Sender: No OFD packet to send [22:00:29]OFD Sender: No OFD packet to send [22:00:34]OFD Sender: No OFD packet to send [22:00: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:52]accept exits with 9 [22:02:52]New connection [22:02:52]New thread 3067157860 created [22:02:52]Thread 3067014500 joined [22:02:52]Waiting for new connection... [22:02:52] Sock 9.Parse request [22:02:52]Sock 9.Check first char [22:02:52]Sock 9.First char is OK [22:02:52]request: POST /json_proto HTTP/1.0 [22:02:52]Method: POST [22:02:52]URL: /json_proto [22:02:52]Method is POST - this is cgi request [22:02:52]url: /json_proto [22:02:52]query_string will be loaded in cgi processing [22:02:52]execute_cgi json_proto POST (null) [22:02:52]execute_cgi path=json_proto method=POST [22:02:52]POST find Content-Length [22:02:52]Host: 172.17.42.131:8080 [22:02:52]Content-Length: 800 [22:02:52]Content-Type: application/json [22:02:52] [22:02:52]POST finish read [22:02:52]Found Content-Length = 800 [22:02:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209990", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "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\u000A4219109", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:02:52]execute_script... [22: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)209990", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "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\u000A4219109", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:02:52]POST & json_proto [22:02:52]process_json_proto [22:02:52]json parsed OK: [22:02:52]protocol is kg_v1.0 [22:02:52]action value=close_receipt [22:02:52]process_action close_receipt [22:02:52]cmd_close_receipt [22:02:52]MH_GetDate [22:02:52]Write to MH i2c: F0 00 00 BA 93 3C [22:02:52]Write i2c OK [22:02:52]MH_I2C_Read... [22:02:52]Read from MH i2c: F0 [22:02:52]MH_I2C_Read... [22:02:52]Read from MH i2c: F0 09 00 [22:02:52]MH_I2C_Read... [22:02:52]Read from MH i2c: F0 09 00 BA 93 00 92 CF 16 67 A0 18 CA 66 0B [22:02:52]GetLastDocTimeStamp 1729547832 [22:02:52]current date 1729548178 [22:02:52]FM_GetShiftState [22:02:52]SAM_PROTO_GetShiftState [22:02:52]wFMCommunicate request_size=4 [22:02:52]MH_SAM_APDU [22:02:52]CAPDU: 80 13 01 00 [22:02:52]Write to MH i2c: E2 08 00 BB 93 80 13 01 00 00 00 00 00 CB [22:02:52]Write i2c OK [22:02:52]MH_I2C_Read... [22:02:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:02:52]Read from MH i2c: E2 [22:02:52]MH_I2C_Read... [22:02:52]Read from MH i2c: E2 0E 00 [22:02:52]MH_I2C_Read... [22:02:52]Read from MH i2c: E2 0E 00 BB 93 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 2A [22:02:52]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [22:02:52]wFMCommunicate OK [22:02:52]SAM_PROTO_GetShiftState done [22:02:52]FM_GetShiftState done [22:02:52]opened in 1729469754 [22:02:52]opened+sec_in_day 1729556154 [22:02:52]quantity*price = 0 [22:02:52]sum+1 = 1 [22:02:52]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 402 21.10.2024 22:02 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Талоны: Топливные Талоны 4219109 ФМ: 0000000000965340 ФД: 187938 ФПД: 197011552518902 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T220258&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187938&fm=197011552518902&tin=02508201610067®Number=0000000000100030&sum=0 [22:02:53]StoreToDocumentArchive [22:02:53]shift 460 fd 187938 [22:02:53]save to /storage/0460/doc_00187938 [22:02:53]save last doc name /storage/0460/doc_00187938 to /storage/kkm_last_doc_name [22:02:53]save OK [22:02:53]Clear old archive folders... [22:02:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:02:53]tlvbuf is 010FC040 [22:02:53]SAM_PROTO_ClearQueue [22:02:53]wFMCommunicate request_size=4 [22:02:53]MH_SAM_APDU [22:02:53]CAPDU: 80 09 00 00 [22:02:53]Write to MH i2c: E2 08 00 C8 93 80 09 00 00 00 00 00 00 CD [22:02:53]Write i2c OK [22:02:53]MH_I2C_Read... [22:02:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:02:53]Read from MH i2c: E2 [22:02:53]MH_I2C_Read... [22:02:53]Read from MH i2c: E2 03 00 [22:02:53]MH_I2C_Read... [22:02:53]Read from MH i2c: E2 03 00 C8 93 00 90 00 CF [22:02:53]RAPDU: 90 00 [22:02:53]wFMCommunicate OK [22:02:53]SAM_PROTO_ClearQueue done [22:02:53]KKMCreateOFDPacket [22:02:53]OFDProtocolAddRootSTLVToBuf [22:02:53]FM_MakeSignedData [22:02:53]FM_MakeSignedData [22:02:53]SAM_PROTO_SignData [22:02:53]wFMCommunicate request_size=4 [22:02:53]MH_SAM_APDU [22:02:53]CAPDU: 80 0D 01 02 [22:02:53]Write to MH i2c: E2 08 00 C9 93 80 0D 01 02 00 00 00 00 D5 [22:02:53]Write i2c OK [22:02:53]MH_I2C_Read... [22:02:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:02:53]Read from MH i2c: E2 [22:02:53]MH_I2C_Read... [22:02:53]Read from MH i2c: E2 03 00 [22:02:53]MH_I2C_Read... [22:02:53]Read from MH i2c: E2 03 00 C9 93 00 90 00 D0 [22:02:53]RAPDU: 90 00 [22:02:53]wFMCommunicate OK [22:02:53]wFMCommunicate request_size=255 [22:02:53]MH_SAM_APDU [22:02: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 33 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 92 01 00 00 F4 03 04 00 92 CF 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 22 DE 02 00 35 04 06 00 B3 [22:02:53]Write to MH i2c: E2 02 01 CA 93 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 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 92 01 00 00 F4 03 04 00 92 CF 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 22 DE 02 00 35 04 06 00 B3 00 00 ED [22:02:53]Write i2c OK [22:02:53]MH_I2C_Read... [22:02:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:02:53]Read from MH i2c: E2 [22:02:53]MH_I2C_Read... [22:02:53]Read from MH i2c: E2 03 00 [22:02:53]MH_I2C_Read... [22:02:53]Read from MH i2c: E2 03 00 CA 93 00 90 00 D1 [22:02:53]RAPDU: 90 00 [22:02:53]wFMCommunicate OK [22:02:53]wFMCommunicate request_size=10 [22:02:53]MH_SAM_APDU [22:02:53]CAPDU: 80 0D 02 02 05 2E 53 9A C2 F6 [22:02:53]Write to MH i2c: E2 0D 00 CB 93 80 0D 02 02 05 00 2E 53 9A C2 F6 00 00 B5 [22:02:53]Write i2c OK [22:02:53]MH_I2C_Read... [22:02:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:02:53]Read from MH i2c: E2 [22:02:53]MH_I2C_Read... [22:02:53]Read from MH i2c: E2 03 00 [22:02:53]MH_I2C_Read... [22:02:53]Read from MH i2c: E2 03 00 CB 93 00 90 00 D2 [22:02:53]RAPDU: 90 00 [22:02:53]wFMCommunicate OK [22:02:53]wFMCommunicate request_size=4 [22:02:53]MH_SAM_APDU [22:02:53]CAPDU: 80 0D 03 02 [22:02:53]Write to MH i2c: E2 08 00 CC 93 80 0D 03 02 00 00 00 00 DA [22:02:53]Write i2c OK [22:02:53]MH_I2C_Read... [22:02:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:02:53]Read from MH i2c: E2 [22:02:53]MH_I2C_Read... [22:02:53]Read from MH i2c: E2 0B 00 [22:02:53]MH_I2C_Read... [22:02:53]Read from MH i2c: E2 0B 00 CC 93 00 D6 40 EC E3 62 62 46 2D 90 00 F7 [22:02:53]RAPDU: D6 40 EC E3 62 62 46 2D 90 00 [22:02:53]wFMCommunicate OK [22:02:53]SAM_PROTO_SignData done [22:02:53]FM_MakeSignedData done [22:02:53]CreateOFDProtocolMessage [22:02:53]wFMCommunicate request_size=4 [22:02:53]MH_SAM_APDU [22:02:53]CAPDU: 80 11 00 00 [22:02:53]Write to MH i2c: E2 08 00 CD 93 80 11 00 00 00 00 00 00 DA [22:02:53]Write i2c OK [22:02:53]MH_I2C_Read... [22:02:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:02:54]Read from MH i2c: E2 [22:02:54]MH_I2C_Read... [22:02:54]Read from MH i2c: E2 17 00 [22:02:54]MH_I2C_Read... [22:02:54]Read from MH i2c: E2 17 00 CD 93 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 28 [22:02:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [22:02:54]wFMCommunicate OK [22:02:54]CreateOFDProtocolMessage done [22:02:54]OFDSenderStorePacket 187938 [22:02:54]StoreOFDPacket docnum=187938 [22:02:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 86 9A 07 01 4F 21 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 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 92 01 00 00 F4 03 04 00 92 CF 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 22 DE 02 00 35 04 06 00 B3 2E 53 9A C2 F6 D6 40 EC E3 62 62 46 2D [22:02:54]CheckFolder [22:02:54]dirname=/storage/ofd_packets [22:02:54]CheckFolder done [22:02:54]ProducePacketName [22:02:54]name=ofd_packets/00187938 [22:02:54]NVStorageSaveData ofd_packets/00187938 [22:02:54]File name is /storage/ofd_packets/00187938 [22:02:54]Write 301 bytes [22:02:54]NVStorageSaveData done [22:02:54]OFDSenderStorePacket done [22:02:54]KKMCreateOFDPacket done [22:02:54]NVStorageSaveData kkm_last_timestamp [22:02:54]File name is /storage/kkm_last_timestamp [22:02:54]Write 4 bytes [22:02:54]NVStorageSaveData done [22:02:54]ExternCall_PrintAddStr [22:02:54]wPrintStart [22:02:54]Write to MH i2c: 01 00 00 CE 93 61 [22:02:54]Write i2c OK [22:02:54]MH_I2C_Read... [22:02:54]Read from MH i2c: 01 [22:02:54]MH_I2C_Read... [22:02:54]Read from MH i2c: 01 07 00 [22:02:54]MH_I2C_Read... [22:02:54]Read from MH i2c: 01 07 00 CE 93 00 00 00 00 00 FF 0F 76 [22:02:54]RasterBufferAndPrint [22:02:54]line Счет N : (1)209990 [22:02:54]line ИНН: 02508201610067 [22:02:54]line Контрольно-Кассовый Чек [22:02:54]line ПРОДАЖА [22:02:54]line ТРК (МРК, ГНК) : 12 [22:02:54]line Товар: 2710124130 [22:02:54]line Аи-92-К-3 [22:02:54]line 10.000 * 0.00 [22:02:54]line = 0.00 [22:02:54]line НДС 12% НСП 1% [22:02:54]line > о реализуемом товаре [22:02:54]line ИТОГО: 0.00 [22:02:54]line НСП 1% : 0.00 [22:02:54]line НДС 12% : 0.00 [22:02:54]line Наличными: 0.00 [22:02:54]line Безнал.: 0.00 [22:02:54]line Место: АЗС № 86 "Партнер Нефть" [22:02:54]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [22:02:54]line СНО: Общий режим [22:02:54]line Чек 402 21.10.2024 22:02 [22:02:54]line Смена: 460 ФФД: 1.0 [22:02:54]line ЗНМ: 0300000155 [22:02:54]line РНМ: 0000000000100030 [22:02:54]line Версия ККМ: 001 [22:02:54]line Талоны: Топливные Талоны [22:02:54]line 4219109 [22:02:54]line ФМ: 0000000000965340 [22:02:54]line ФД: 187938 [22:02:54]line ФПД: 197011552518902 [22:02:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T220258&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187938&fm=197011552518902&tin=02508201610067®Number=0000000000100030&sum=0 [22:02:54]written 0, free lines is 4095 [22:02:54]OFD Sender: Processing packet 187938 [packets to send 1062, broken 1061] [22:02:54]ProducePacketName [22:02:54]name=ofd_packets/00187938 [22:02:54]OFD Sender: To server: pG, [22:02:54]CommunicateWithHost lk.salyk.kg:30040 [22:02:54]ConnectInit lk.salyk.kg [22:02:54]Connected sock=10 [22:02:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 86 9A 07 01 4F 21 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 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 92 01 00 00 F4 03 04 00 92 CF 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 22 DE 02 00 35 04 06 00 B3 2E 53 9A C2 F6 D6 40 EC E3 62 62 46 2D [22:02:54]Write to MH i2c: 01 00 00 F8 93 8B [22:02:54]Write i2c OK [22:02:54]MH_I2C_Read... [22:02:54]Read from MH i2c: 01 [22:02:54]MH_I2C_Read... [22:02:54]Read from MH i2c: 01 07 00 [22:02:54]MH_I2C_Read... [22:02:54]Read from MH i2c: 01 07 00 F8 93 00 00 00 00 00 74 0C 12 [22:02:54]RasterBufferAndPrint [22:02:54]line [22:02:54]line [22:02:54]line [22:02:54]line [22:02:54]line [22:02:54]written 0, free lines is 3193 [22:02:54]MH_Cut [22:02:54]Write to MH i2c: D1 01 00 FF 93 01 64 [22:02:54]Write i2c OK [22:02:54]MH_I2C_Read... [22:02:54]Read from MH i2c: D1 [22:02:54]MH_I2C_Read... [22:02:54]Read from MH i2c: D1 01 00 [22:02:54]MH_I2C_Read... [22:02:54]Read from MH i2c: D1 01 00 FF 93 00 63 [22:02:54]Write to MH i2c: 01 00 00 00 94 94 [22:02:54]Write i2c OK [22:02:54]MH_I2C_Read... [22:02:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 D0 74 47 00 77 5F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 22 DE 02 00 F4 03 04 00 81 79 16 67 B6 04 01 00 00 4E F8 BD 50 0E 9C 9C CE [22:02:55]CommunicateWithHost err = 0 [22:02:55]CheckOFDResponse [22:02:55]1017 (14) - 77093643461234 [22:02:55]1041 (16) - 0000000000965340 [22:02:55]1040 (4) - 187938 [22:02:55]1012 (4) - 21.10.2024 15:55 [22:02:55]1206 (1) - 0 [22:02:55]OFD Sender: Remove packet 187938 [22:02:55]ProducePacketName [22:02:55]name=ofd_packets/00187938 [22:02:55]NVStorageDeleteData [22:02:55]OFD Sender: No OFD packet to send [22:02:55]*** Cut start [22:02:55]*** Partial cut [22:02:55]*** CUTSNS_PIN = 1 [22:02:55]*** CUTSNS_PIN = 0 [22:02:56]*** Brake cut motor [22:02:56]Read from MH i2c: 01 [22:02:56]MH_I2C_Read... [22:02:56]*** Stop cut motor [22:02:56]*** Cut end [22:02:56]Read from MH i2c: 01 07 00 [22:02:56]MH_I2C_Read... [22:02:56]Read from MH i2c: 01 07 00 00 94 00 00 00 00 00 FF 0F A9 [22:02:56]process_action close_receipt done [22:02:56]requested_data is exist [22:02:56]produce_requested_data [22:02:56]requested_item fm.sn is exist - process it [22:02:56]wFMCommunicate request_size=4 [22:02:56]MH_SAM_APDU [22:02:56]CAPDU: 80 11 00 00 [22:02:56]Write to MH i2c: E2 08 00 01 94 80 11 00 00 00 00 00 00 0F [22:02:56]Write i2c OK [22:02:56]MH_I2C_Read... [22:02:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:02:56]Read from MH i2c: E2 [22:02:56]MH_I2C_Read... [22:02:56]Read from MH i2c: E2 17 00 [22:02:56]MH_I2C_Read... [22:02:56]Read from MH i2c: E2 17 00 01 94 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 5D [22:02:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [22:02:56]wFMCommunicate OK [22:02:56]requested_item fd.num is exist - process it [22:02:56]SAM_PROTO_GetFieldsCounters [22:02:56]wFMCommunicate request_size=4 [22:02:56]MH_SAM_APDU [22:02:56]CAPDU: 80 13 00 00 [22:02:56]Write to MH i2c: E2 08 00 02 94 80 13 00 00 00 00 00 00 12 [22:02:56]Write i2c OK [22:02:56]MH_I2C_Read... [22:02:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:02:56]Read from MH i2c: E2 [22:02:56]MH_I2C_Read... [22:02:56]Read from MH i2c: E2 62 00 [22:02:56]MH_I2C_Read... [22:02:56]Read from MH i2c: E2 62 00 02 94 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 22 DE 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 92 01 00 00 5E 04 04 00 92 01 00 00 57 04 04 00 93 01 00 00 19 04 04 00 00 00 00 00 90 00 A1 [22:02:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 22 DE 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 92 01 00 00 5E 04 04 00 92 01 00 00 57 04 04 00 93 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:02:56]wFMCommunicate OK [22:02:56]SAM_PROTO_GetFieldsCounters done [22:02:56]requested_item shift.num is exist - process it [22:02:56]requested_item shift.opened is exist - process it [22:02:56]req_shift_opened [22:02:56]FM_GetShiftState [22:02:56]SAM_PROTO_GetShiftState [22:02:56]wFMCommunicate request_size=4 [22:02:56]MH_SAM_APDU [22:02:56]CAPDU: 80 13 01 00 [22:02:56]Write to MH i2c: E2 08 00 03 94 80 13 01 00 00 00 00 00 14 [22:02:56]Write i2c OK [22:02:56]MH_I2C_Read... [22:02:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:02:56]Read from MH i2c: E2 [22:02:56]MH_I2C_Read... [22:02:56]Read from MH i2c: E2 0E 00 [22:02:56]MH_I2C_Read... [22:02:56]Read from MH i2c: E2 0E 00 03 94 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 73 [22:02:56]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [22:02:56]wFMCommunicate OK [22:02:56]SAM_PROTO_GetShiftState done [22:02:56]FM_GetShiftState done [22:02:56]req_shift_opened done [22:02:56]requested_item shift.open_date is exist - process it [22:02:56]req_shift_open_date [22:02:56]req_shift_open_date done [22:02:56]produce_requested_data done [22:02:56]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187938,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [22:02:56]process_action_free close_receipt [22:02:56]json_value_free [22:02:56]json_value_free done [22:02:56]process_json_proto returns [22:02:56]Send response to host [22:02:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187938,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [22:02:56]free response buf [22:02:56]execute_script done [22:02:56]execute_script returns [22:02:56]free content buf [22:02:56]Sock 9.Close socket [22:02:56]Sock 9.Thread stoped [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:47]accept exits with 8 [22:03:47]New connection [22:03:47]New thread 3067014500 created [22:03:47]Thread 3067157860 joined [22:03:47]Waiting for new connection... [22:03:47] Sock 8.Parse request [22:03:47]Sock 8.Check first char [22:03:47]Sock 8.First char is OK [22:03:47]request: POST /json_proto HTTP/1.0 [22:03:47]Method: POST [22:03:47]URL: /json_proto [22:03:47]Method is POST - this is cgi request [22:03:47]url: /json_proto [22:03:47]query_string will be loaded in cgi processing [22:03:47]execute_cgi json_proto POST (null) [22:03:47]execute_cgi path=json_proto method=POST [22:03:47]POST find Content-Length [22:03:47]Host: 172.17.42.131:8080 [22:03:47]Content-Length: 800 [22:03:47]Content-Type: application/json [22:03:47] [22:03:47]POST finish read [22:03:47]Found Content-Length = 800 [22:03:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209991", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "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\u000A4219112", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:03:47]execute_script... [22:03: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)209991", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "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\u000A4219112", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:03:47]POST & json_proto [22:03:47]process_json_proto [22:03:47]json parsed OK: [22:03:47]protocol is kg_v1.0 [22:03:47]action value=close_receipt [22:03:47]process_action close_receipt [22:03:47]cmd_close_receipt [22:03:47]MH_GetDate [22:03:47]Write to MH i2c: F0 00 00 04 94 87 [22:03:47]Write i2c OK [22:03:47]MH_I2C_Read... [22:03:47]Read from MH i2c: F0 [22:03:47]MH_I2C_Read... [22:03:47]Read from MH i2c: F0 09 00 [22:03:47]MH_I2C_Read... [22:03:47]Read from MH i2c: F0 09 00 04 94 00 C9 CF 16 67 A0 18 CA 66 8D [22:03:47]GetLastDocTimeStamp 1729548178 [22:03:47]current date 1729548233 [22:03:47]FM_GetShiftState [22:03:47]SAM_PROTO_GetShiftState [22:03:47]wFMCommunicate request_size=4 [22:03:47]MH_SAM_APDU [22:03:47]CAPDU: 80 13 01 00 [22:03:47]Write to MH i2c: E2 08 00 05 94 80 13 01 00 00 00 00 00 16 [22:03:47]Write i2c OK [22:03:47]MH_I2C_Read... [22:03:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:03:47]Read from MH i2c: E2 [22:03:47]MH_I2C_Read... [22:03:47]Read from MH i2c: E2 0E 00 [22:03:47]MH_I2C_Read... [22:03:47]Read from MH i2c: E2 0E 00 05 94 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 75 [22:03:47]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [22:03:47]wFMCommunicate OK [22:03:47]SAM_PROTO_GetShiftState done [22:03:47]FM_GetShiftState done [22:03:47]opened in 1729469754 [22:03:47]opened+sec_in_day 1729556154 [22:03:47]quantity*price = 0 [22:03:47]sum+1 = 1 [22:03:47]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 403 21.10.2024 22:03 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Талоны: Топливные Талоны 4219112 ФМ: 0000000000965340 ФД: 187939 ФПД: 252668077140141 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T220353&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187939&fm=252668077140141&tin=02508201610067®Number=0000000000100030&sum=0 [22:03:48]StoreToDocumentArchive [22:03:48]shift 460 fd 187939 [22:03:48]save to /storage/0460/doc_00187939 [22:03:48]save last doc name /storage/0460/doc_00187939 to /storage/kkm_last_doc_name [22:03:48]save OK [22:03:48]Clear old archive folders... [22:03:48]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:03:48]tlvbuf is 010F9AC0 [22:03:48]SAM_PROTO_ClearQueue [22:03:48]wFMCommunicate request_size=4 [22:03:48]MH_SAM_APDU [22:03:48]CAPDU: 80 09 00 00 [22:03:48]Write to MH i2c: E2 08 00 12 94 80 09 00 00 00 00 00 00 18 [22:03:48]Write i2c OK [22:03:48]MH_I2C_Read... [22:03:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:03:48]Read from MH i2c: E2 [22:03:48]MH_I2C_Read... [22:03:48]Read from MH i2c: E2 03 00 [22:03:48]MH_I2C_Read... [22:03:48]Read from MH i2c: E2 03 00 12 94 00 90 00 1A [22:03:48]RAPDU: 90 00 [22:03:48]wFMCommunicate OK [22:03:48]SAM_PROTO_ClearQueue done [22:03:48]KKMCreateOFDPacket [22:03:48]OFDProtocolAddRootSTLVToBuf [22:03:48]FM_MakeSignedData [22:03:48]FM_MakeSignedData [22:03:48]SAM_PROTO_SignData [22:03:48]wFMCommunicate request_size=4 [22:03:48]MH_SAM_APDU [22:03:48]CAPDU: 80 0D 01 02 [22:03:48]Write to MH i2c: E2 08 00 13 94 80 0D 01 02 00 00 00 00 20 [22:03:48]Write i2c OK [22:03:48]MH_I2C_Read... [22:03:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:03:48]Read from MH i2c: E2 [22:03:48]MH_I2C_Read... [22:03:48]Read from MH i2c: E2 03 00 [22:03:48]MH_I2C_Read... [22:03:48]Read from MH i2c: E2 03 00 13 94 00 90 00 1B [22:03:48]RAPDU: 90 00 [22:03:48]wFMCommunicate OK [22:03:48]wFMCommunicate request_size=255 [22:03:48]MH_SAM_APDU [22:03: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 33 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 93 01 00 00 F4 03 04 00 C9 CF 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 23 DE 02 00 35 04 06 00 E5 [22:03:48]Write to MH i2c: E2 02 01 14 94 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 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 93 01 00 00 F4 03 04 00 C9 CF 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 23 DE 02 00 35 04 06 00 E5 00 00 A3 [22:03:48]Write i2c OK [22:03:48]MH_I2C_Read... [22:03:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:03:49]Read from MH i2c: E2 [22:03:49]MH_I2C_Read... [22:03:49]Read from MH i2c: E2 03 00 [22:03:49]MH_I2C_Read... [22:03:49]Read from MH i2c: E2 03 00 14 94 00 90 00 1C [22:03:49]RAPDU: 90 00 [22:03:49]wFMCommunicate OK [22:03:49]wFMCommunicate request_size=10 [22:03:49]MH_SAM_APDU [22:03:49]CAPDU: 80 0D 02 02 05 CC DE FB E8 AD [22:03:49]Write to MH i2c: E2 0D 00 15 94 80 0D 02 02 05 00 CC DE FB E8 AD 00 00 67 [22:03:49]Write i2c OK [22:03:49]MH_I2C_Read... [22:03:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:03:49]Read from MH i2c: E2 [22:03:49]MH_I2C_Read... [22:03:49]Read from MH i2c: E2 03 00 [22:03:49]MH_I2C_Read... [22:03:49]Read from MH i2c: E2 03 00 15 94 00 90 00 1D [22:03:49]RAPDU: 90 00 [22:03:49]wFMCommunicate OK [22:03:49]wFMCommunicate request_size=4 [22:03:49]MH_SAM_APDU [22:03:49]CAPDU: 80 0D 03 02 [22:03:49]Write to MH i2c: E2 08 00 16 94 80 0D 03 02 00 00 00 00 25 [22:03:49]Write i2c OK [22:03:49]MH_I2C_Read... [22:03:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:03:49]Read from MH i2c: E2 [22:03:49]MH_I2C_Read... [22:03:49]Read from MH i2c: E2 0B 00 [22:03:49]MH_I2C_Read... [22:03:49]Read from MH i2c: E2 0B 00 16 94 00 85 64 F4 6E 9D 74 55 B4 90 00 8B [22:03:49]RAPDU: 85 64 F4 6E 9D 74 55 B4 90 00 [22:03:49]wFMCommunicate OK [22:03:49]SAM_PROTO_SignData done [22:03:49]FM_MakeSignedData done [22:03:49]CreateOFDProtocolMessage [22:03:49]wFMCommunicate request_size=4 [22:03:49]MH_SAM_APDU [22:03:49]CAPDU: 80 11 00 00 [22:03:49]Write to MH i2c: E2 08 00 17 94 80 11 00 00 00 00 00 00 25 [22:03:49]Write i2c OK [22:03:49]MH_I2C_Read... [22:03:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:03:49]Read from MH i2c: E2 [22:03:49]MH_I2C_Read... [22:03:49]Read from MH i2c: E2 17 00 [22:03:49]MH_I2C_Read... [22:03:49]Read from MH i2c: E2 17 00 17 94 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 73 [22:03:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [22:03:49]wFMCommunicate OK [22:03:49]CreateOFDProtocolMessage done [22:03:49]OFDSenderStorePacket 187939 [22:03:49]StoreOFDPacket docnum=187939 [22:03:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 28 F7 07 01 10 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 33 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 93 01 00 00 F4 03 04 00 C9 CF 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 23 DE 02 00 35 04 06 00 E5 CC DE FB E8 AD 85 64 F4 6E 9D 74 55 B4 [22:03:49]CheckFolder [22:03:49]dirname=/storage/ofd_packets [22:03:49]CheckFolder done [22:03:49]ProducePacketName [22:03:49]name=ofd_packets/00187939 [22:03:49]NVStorageSaveData ofd_packets/00187939 [22:03:49]File name is /storage/ofd_packets/00187939 [22:03:49]Write 301 bytes [22:03:49]NVStorageSaveData done [22:03:49]OFDSenderStorePacket done [22:03:49]KKMCreateOFDPacket done [22:03:49]NVStorageSaveData kkm_last_timestamp [22:03:49]File name is /storage/kkm_last_timestamp [22:03:49]Write 4 bytes [22:03:49]NVStorageSaveData done [22:03:49]ExternCall_PrintAddStr [22:03:49]wPrintStart [22:03:49]Write to MH i2c: 01 00 00 18 94 AC [22:03:49]Write i2c OK [22:03:49]MH_I2C_Read... [22:03:49]Read from MH i2c: 01 [22:03:49]MH_I2C_Read... [22:03:49]Read from MH i2c: 01 07 00 [22:03:49]MH_I2C_Read... [22:03:49]Read from MH i2c: 01 07 00 18 94 00 00 00 00 00 FF 0F C1 [22:03:49]RasterBufferAndPrint [22:03:49]line Счет N : (1)209991 [22:03:49]line ИНН: 02508201610067 [22:03:49]line Контрольно-Кассовый Чек [22:03:49]line ПРОДАЖА [22:03:49]line ТРК (МРК, ГНК) : 12 [22:03:49]line Товар: 2710124130 [22:03:49]line Аи-92-К-3 [22:03:49]line 10.000 * 0.00 [22:03:49]line = 0.00 [22:03:49]line НДС 12% НСП 1% [22:03:49]line > о реализуемом товаре [22:03:49]line ИТОГО: 0.00 [22:03:49]line НСП 1% : 0.00 [22:03:49]line НДС 12% : 0.00 [22:03:49]line Наличными: 0.00 [22:03:49]line Безнал.: 0.00 [22:03:49]line Место: АЗС № 86 "Партнер Нефть" [22:03:49]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [22:03:49]line СНО: Общий режим [22:03:49]line Чек 403 21.10.2024 22:03 [22:03:49]line Смена: 460 ФФД: 1.0 [22:03:49]line ЗНМ: 0300000155 [22:03:49]line РНМ: 0000000000100030 [22:03:49]line Версия ККМ: 001 [22:03:49]line Талоны: Топливные Талоны [22:03:49]line 4219112 [22:03:49]line ФМ: 0000000000965340 [22:03:49]line ФД: 187939 [22:03:49]line ФПД: 252668077140141 [22:03:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T220353&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187939&fm=252668077140141&tin=02508201610067®Number=0000000000100030&sum=0 [22:03:49]written 0, free lines is 4095 [22:03:49]OFD Sender: Processing packet 187939 [packets to send 1062, broken 1061] [22:03:49]ProducePacketName [22:03:49]name=ofd_packets/00187939 [22:03:49]OFD Sender: To server: pG, [22:03:49]CommunicateWithHost lk.salyk.kg:30040 [22:03:49]ConnectInit lk.salyk.kg [22:03:49]Connected sock=9 [22:03:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 28 F7 07 01 10 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 33 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 93 01 00 00 F4 03 04 00 C9 CF 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 23 DE 02 00 35 04 06 00 E5 CC DE FB E8 AD 85 64 F4 6E 9D 74 55 B4 [22:03:49]Write to MH i2c: 01 00 00 42 94 D6 [22:03:49]Write i2c OK [22:03:49]MH_I2C_Read... [22:03:49]Read from MH i2c: 01 [22:03:49]MH_I2C_Read... [22:03:49]Read from MH i2c: 01 07 00 [22:03:49]MH_I2C_Read... [22:03:49]Read from MH i2c: 01 07 00 42 94 00 00 00 00 00 72 0C 5B [22:03:49]RasterBufferAndPrint [22:03:49]line [22:03:49]line [22:03:49]line [22:03:49]line [22:03:49]line [22:03:49]written 0, free lines is 3192 [22:03:49]MH_Cut [22:03:49]Write to MH i2c: D1 01 00 49 94 01 AF [22:03:49]Write i2c OK [22:03:49]MH_I2C_Read... [22:03:49]Read from MH i2c: D1 [22:03:49]MH_I2C_Read... [22:03:49]Read from MH i2c: D1 01 00 [22:03:49]MH_I2C_Read... [22:03:49]Read from MH i2c: D1 01 00 49 94 00 AE [22:03:49]Write to MH i2c: 01 00 00 4A 94 DE [22:03:49]Write i2c OK [22:03:49]MH_I2C_Read... [22:03:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 CB 18 47 00 DA 7D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 23 DE 02 00 F4 03 04 00 B8 79 16 67 B6 04 01 00 00 DB E0 5A C3 43 B5 88 6A [22:03:49]CommunicateWithHost err = 0 [22:03:49]CheckOFDResponse [22:03:49]1017 (14) - 77093643461234 [22:03:49]1041 (16) - 0000000000965340 [22:03:49]1040 (4) - 187939 [22:03:49]1012 (4) - 21.10.2024 15:56 [22:03:49]1206 (1) - 0 [22:03:49]OFD Sender: Remove packet 187939 [22:03:49]ProducePacketName [22:03:49]name=ofd_packets/00187939 [22:03:49]NVStorageDeleteData [22:03:50]OFD Sender: No OFD packet to send [22:03:50]*** Cut start [22:03:50]*** Partial cut [22:03:50]*** CUTSNS_PIN = 1 [22:03:51]*** CUTSNS_PIN = 0 [22:03:51]*** Brake cut motor [22:03:51]Read from MH i2c: 01 [22:03:51]MH_I2C_Read... [22:03:51]*** Stop cut motor [22:03:51]*** Cut end [22:03:51]Read from MH i2c: 01 07 00 [22:03:51]MH_I2C_Read... [22:03:51]Read from MH i2c: 01 07 00 4A 94 00 00 00 00 00 FF 0F F3 [22:03:51]process_action close_receipt done [22:03:51]requested_data is exist [22:03:51]produce_requested_data [22:03:51]requested_item fm.sn is exist - process it [22:03:51]wFMCommunicate request_size=4 [22:03:51]MH_SAM_APDU [22:03:51]CAPDU: 80 11 00 00 [22:03:51]Write to MH i2c: E2 08 00 4B 94 80 11 00 00 00 00 00 00 59 [22:03:51]Write i2c OK [22:03:51]MH_I2C_Read... [22:03:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:03:51]Read from MH i2c: E2 [22:03:51]MH_I2C_Read... [22:03:51]Read from MH i2c: E2 17 00 [22:03:51]MH_I2C_Read... [22:03:51]Read from MH i2c: E2 17 00 4B 94 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 A7 [22:03:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [22:03:51]wFMCommunicate OK [22:03:51]requested_item fd.num is exist - process it [22:03:51]SAM_PROTO_GetFieldsCounters [22:03:51]wFMCommunicate request_size=4 [22:03:51]MH_SAM_APDU [22:03:51]CAPDU: 80 13 00 00 [22:03:51]Write to MH i2c: E2 08 00 4C 94 80 13 00 00 00 00 00 00 5C [22:03:51]Write i2c OK [22:03:51]MH_I2C_Read... [22:03:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:03:51]Read from MH i2c: E2 [22:03:51]MH_I2C_Read... [22:03:51]Read from MH i2c: E2 62 00 [22:03:51]MH_I2C_Read... [22:03:51]Read from MH i2c: E2 62 00 4C 94 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 23 DE 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 93 01 00 00 5E 04 04 00 93 01 00 00 57 04 04 00 94 01 00 00 19 04 04 00 00 00 00 00 90 00 EF [22:03:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 23 DE 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 93 01 00 00 5E 04 04 00 93 01 00 00 57 04 04 00 94 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:03:51]wFMCommunicate OK [22:03:51]SAM_PROTO_GetFieldsCounters done [22:03:51]requested_item shift.num is exist - process it [22:03:51]requested_item shift.opened is exist - process it [22:03:51]req_shift_opened [22:03:51]FM_GetShiftState [22:03:51]SAM_PROTO_GetShiftState [22:03:51]wFMCommunicate request_size=4 [22:03:51]MH_SAM_APDU [22:03:51]CAPDU: 80 13 01 00 [22:03:51]Write to MH i2c: E2 08 00 4D 94 80 13 01 00 00 00 00 00 5E [22:03:51]Write i2c OK [22:03:51]MH_I2C_Read... [22:03:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:03:51]Read from MH i2c: E2 [22:03:51]MH_I2C_Read... [22:03:51]Read from MH i2c: E2 0E 00 [22:03:51]MH_I2C_Read... [22:03:51]Read from MH i2c: E2 0E 00 4D 94 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 BD [22:03:51]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [22:03:51]wFMCommunicate OK [22:03:51]SAM_PROTO_GetShiftState done [22:03:51]FM_GetShiftState done [22:03:51]req_shift_opened done [22:03:51]requested_item shift.open_date is exist - process it [22:03:51]req_shift_open_date [22:03:51]req_shift_open_date done [22:03:51]produce_requested_data done [22:03:51]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187939,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [22:03:51]process_action_free close_receipt [22:03:51]json_value_free [22:03:51]json_value_free done [22:03:51]process_json_proto returns [22:03:51]Send response to host [22:03:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187939,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [22:03:51]free response buf [22:03:51]execute_script done [22:03:51]execute_script returns [22:03:51]free content buf [22:03:51]Sock 8.Close socket [22:03:51]Sock 8.Thread stoped [22:03:55]OFD Sender: No OFD packet to send [22:04:00]OFD Sender: No OFD packet to send [22:04:05]OFD Sender: No OFD packet to send [22:04:10]OFD Sender: No OFD packet to send [22:04:15]OFD Sender: No OFD packet to send [22:04:20]OFD Sender: No OFD packet to send [22:04:25]OFD Sender: No OFD packet to send [22:04:30]OFD Sender: No OFD packet to send [22:04:35]OFD Sender: No OFD packet to send [22:04:40]OFD Sender: No OFD packet to send [22:04:45]OFD Sender: No OFD packet to send [22:04:50]OFD Sender: No OFD packet to send [22:04:55]OFD Sender: No OFD packet to send [22:05:00]OFD Sender: No OFD packet to send [22:05:05]OFD Sender: No OFD packet to send [22:05:10]OFD Sender: No OFD packet to send [22:05:15]OFD Sender: No OFD packet to send [22:05:20]OFD Sender: No OFD packet to send [22:05:25]OFD Sender: No OFD packet to send [22:05:30]OFD Sender: No OFD packet to send [22:05:35]OFD Sender: No OFD packet to send [22:05:40]OFD Sender: No OFD packet to send [22:05:46]OFD Sender: No OFD packet to send [22:05:51]OFD Sender: No OFD packet to send [22:05:56]OFD Sender: No OFD packet to send [22:06:01]OFD Sender: No OFD packet to send [22:06:06]OFD Sender: No OFD packet to send [22:06:11]OFD Sender: No OFD packet to send [22:06:16]OFD Sender: No OFD packet to send [22:06:21]OFD Sender: No OFD packet to send [22:06:26]OFD Sender: No OFD packet to send [22:06:31]OFD Sender: No OFD packet to send [22:06:36]OFD Sender: No OFD packet to send [22:06:41]OFD Sender: No OFD packet to send [22:06:46]OFD Sender: No OFD packet to send [22:06:51]OFD Sender: No OFD packet to send [22:06:56]OFD Sender: No OFD packet to send [22:07:01]OFD Sender: No OFD packet to send [22:07:06]OFD Sender: No OFD packet to send [22:07:11]OFD Sender: No OFD packet to send [22:07:16]OFD Sender: No OFD packet to send [22:07:21]OFD Sender: No OFD packet to send [22:07:26]OFD Sender: No OFD packet to send [22:07:31]OFD Sender: No OFD packet to send [22:07:36]OFD Sender: No OFD packet to send [22:07:38]accept exits with 10 [22:07:38]New connection [22:07:38]New thread 3067157860 created [22:07:38]Thread 3067014500 joined [22:07:38]Waiting for new connection... [22:07:38] Sock 10.Parse request [22:07:38]Sock 10.Check first char [22:07:38]Sock 10.First char is OK [22:07:38]request: POST /json_proto HTTP/1.0 [22:07:38]Method: POST [22:07:38]URL: /json_proto [22:07:38]Method is POST - this is cgi request [22:07:38]url: /json_proto [22:07:38]query_string will be loaded in cgi processing [22:07:38]execute_cgi json_proto POST (null) [22:07:38]execute_cgi path=json_proto method=POST [22:07:38]POST find Content-Length [22:07:38]Host: 172.17.42.131:8080 [22:07:38]Content-Length: 769 [22:07:38]Content-Type: application/json [22:07:38] [22:07:38]POST finish read [22:07:38]Found Content-Length = 769 [22:07:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209992", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.22 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:07:38]execute_script... [22:07: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)209992", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.22 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:07:38]POST & json_proto [22:07:38]process_json_proto [22:07:38]json parsed OK: [22:07:38]protocol is kg_v1.0 [22:07:38]action value=close_receipt [22:07:38]process_action close_receipt [22:07:38]cmd_close_receipt [22:07:38]MH_GetDate [22:07:38]Write to MH i2c: F0 00 00 4E 94 D1 [22:07:38]Write i2c OK [22:07:38]MH_I2C_Read... [22:07:38]Read from MH i2c: F0 [22:07:38]MH_I2C_Read... [22:07:38]Read from MH i2c: F0 09 00 [22:07:38]MH_I2C_Read... [22:07:38]Read from MH i2c: F0 09 00 4E 94 00 B0 D0 16 67 A0 18 CA 66 BF [22:07:38]GetLastDocTimeStamp 1729548233 [22:07:38]current date 1729548464 [22:07:38]FM_GetShiftState [22:07:38]SAM_PROTO_GetShiftState [22:07:38]wFMCommunicate request_size=4 [22:07:38]MH_SAM_APDU [22:07:38]CAPDU: 80 13 01 00 [22:07:38]Write to MH i2c: E2 08 00 4F 94 80 13 01 00 00 00 00 00 60 [22:07:38]Write i2c OK [22:07:38]MH_I2C_Read... [22:07:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:07:38]Read from MH i2c: E2 [22:07:38]MH_I2C_Read... [22:07:38]Read from MH i2c: E2 0E 00 [22:07:38]MH_I2C_Read... [22:07:38]Read from MH i2c: E2 0E 00 4F 94 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 BF [22:07:38]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [22:07:38]wFMCommunicate OK [22:07:38]SAM_PROTO_GetShiftState done [22:07:38]FM_GetShiftState done [22:07:38]opened in 1729469754 [22:07:38]opened+sec_in_day 1729556154 [22:07:38]quantity*price = 100021 [22:07:38]sum+1 = 100023 [22:07:38]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.22 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 0.00 Безнал.: 1000.22 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 404 21.10.2024 22:07 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000965340 ФД: 187940 ФПД: 247019287820385 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T220744&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187940&fm=247019287820385&tin=02508201610067®Number=0000000000100030&sum=100022 [22:07:39]StoreToDocumentArchive [22:07:39]shift 460 fd 187940 [22:07:39]save to /storage/0460/doc_00187940 [22:07:39]save last doc name /storage/0460/doc_00187940 to /storage/kkm_last_doc_name [22:07:39]save OK [22:07:39]Clear old archive folders... [22:07:39]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:07:39]tlvbuf is 013759A0 [22:07:39]SAM_PROTO_ClearQueue [22:07:39]wFMCommunicate request_size=4 [22:07:39]MH_SAM_APDU [22:07:39]CAPDU: 80 09 00 00 [22:07:39]Write to MH i2c: E2 08 00 5C 94 80 09 00 00 00 00 00 00 62 [22:07:39]Write i2c OK [22:07:39]MH_I2C_Read... [22:07:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:07:39]Read from MH i2c: E2 [22:07:39]MH_I2C_Read... [22:07:39]Read from MH i2c: E2 03 00 [22:07:39]MH_I2C_Read... [22:07:39]Read from MH i2c: E2 03 00 5C 94 00 90 00 64 [22:07:39]RAPDU: 90 00 [22:07:39]wFMCommunicate OK [22:07:39]SAM_PROTO_ClearQueue done [22:07:39]KKMCreateOFDPacket [22:07:39]OFDProtocolAddRootSTLVToBuf [22:07:39]FM_MakeSignedData [22:07:39]FM_MakeSignedData [22:07:39]SAM_PROTO_SignData [22:07:39]wFMCommunicate request_size=4 [22:07:39]MH_SAM_APDU [22:07:39]CAPDU: 80 0D 01 02 [22:07:39]Write to MH i2c: E2 08 00 5D 94 80 0D 01 02 00 00 00 00 6A [22:07:39]Write i2c OK [22:07:39]MH_I2C_Read... [22:07:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:07:39]Read from MH i2c: E2 [22:07:39]MH_I2C_Read... [22:07:39]Read from MH i2c: E2 03 00 [22:07:39]MH_I2C_Read... [22:07:39]Read from MH i2c: E2 03 00 5D 94 00 90 00 65 [22:07:39]RAPDU: 90 00 [22:07:39]wFMCommunicate OK [22:07:39]wFMCommunicate request_size=255 [22:07:39]MH_SAM_APDU [22:07: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B6 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 94 01 00 00 F4 03 04 00 B0 D0 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 24 DE 02 00 35 04 06 00 E0 [22:07:39]Write to MH i2c: E2 02 01 5E 94 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B6 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 94 01 00 00 F4 03 04 00 B0 D0 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 24 DE 02 00 35 04 06 00 E0 00 00 69 [22:07:39]Write i2c OK [22:07:39]MH_I2C_Read... [22:07:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:07:40]Read from MH i2c: E2 [22:07:40]MH_I2C_Read... [22:07:40]Read from MH i2c: E2 03 00 [22:07:40]MH_I2C_Read... [22:07:40]Read from MH i2c: E2 03 00 5E 94 00 90 00 66 [22:07:40]RAPDU: 90 00 [22:07:40]wFMCommunicate OK [22:07:40]wFMCommunicate request_size=10 [22:07:40]MH_SAM_APDU [22:07:40]CAPDU: 80 0D 02 02 05 A9 A8 E7 38 61 [22:07:40]Write to MH i2c: E2 0D 00 5F 94 80 0D 02 02 05 00 A9 A8 E7 38 61 00 00 48 [22:07:40]Write i2c OK [22:07:40]MH_I2C_Read... [22:07:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:07:40]Read from MH i2c: E2 [22:07:40]MH_I2C_Read... [22:07:40]Read from MH i2c: E2 03 00 [22:07:40]MH_I2C_Read... [22:07:40]Read from MH i2c: E2 03 00 5F 94 00 90 00 67 [22:07:40]RAPDU: 90 00 [22:07:40]wFMCommunicate OK [22:07:40]wFMCommunicate request_size=4 [22:07:40]MH_SAM_APDU [22:07:40]CAPDU: 80 0D 03 02 [22:07:40]Write to MH i2c: E2 08 00 60 94 80 0D 03 02 00 00 00 00 6F [22:07:40]Write i2c OK [22:07:40]MH_I2C_Read... [22:07:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:07:40]Read from MH i2c: E2 [22:07:40]MH_I2C_Read... [22:07:40]Read from MH i2c: E2 0B 00 [22:07:40]MH_I2C_Read... [22:07:40]Read from MH i2c: E2 0B 00 60 94 00 0C 89 47 24 6D 04 75 46 90 00 9C [22:07:40]RAPDU: 0C 89 47 24 6D 04 75 46 90 00 [22:07:40]wFMCommunicate OK [22:07:40]SAM_PROTO_SignData done [22:07:40]FM_MakeSignedData done [22:07:40]CreateOFDProtocolMessage [22:07:40]wFMCommunicate request_size=4 [22:07:40]MH_SAM_APDU [22:07:40]CAPDU: 80 11 00 00 [22:07:40]Write to MH i2c: E2 08 00 61 94 80 11 00 00 00 00 00 00 6F [22:07:40]Write i2c OK [22:07:40]MH_I2C_Read... [22:07:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:07:40]Read from MH i2c: E2 [22:07:40]MH_I2C_Read... [22:07:40]Read from MH i2c: E2 17 00 [22:07:40]MH_I2C_Read... [22:07:40]Read from MH i2c: E2 17 00 61 94 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 BD [22:07:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [22:07:40]wFMCommunicate OK [22:07:40]CreateOFDProtocolMessage done [22:07:40]OFDSenderStorePacket 187940 [22:07:40]StoreOFDPacket docnum=187940 [22:07:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 38 14 07 01 25 F9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B6 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 94 01 00 00 F4 03 04 00 B0 D0 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 24 DE 02 00 35 04 06 00 E0 A9 A8 E7 38 61 0C 89 47 24 6D 04 75 46 [22:07:40]CheckFolder [22:07:40]dirname=/storage/ofd_packets [22:07:40]CheckFolder done [22:07:40]ProducePacketName [22:07:40]name=ofd_packets/00187940 [22:07:40]NVStorageSaveData ofd_packets/00187940 [22:07:40]File name is /storage/ofd_packets/00187940 [22:07:40]Write 301 bytes [22:07:40]NVStorageSaveData done [22:07:40]OFDSenderStorePacket done [22:07:40]KKMCreateOFDPacket done [22:07:40]NVStorageSaveData kkm_last_timestamp [22:07:40]File name is /storage/kkm_last_timestamp [22:07:40]Write 4 bytes [22:07:40]NVStorageSaveData done [22:07:40]ExternCall_PrintAddStr [22:07:40]wPrintStart [22:07:40]Write to MH i2c: 01 00 00 62 94 F6 [22:07:40]Write i2c OK [22:07:40]MH_I2C_Read... [22:07:40]Read from MH i2c: 01 [22:07:40]MH_I2C_Read... [22:07:40]Read from MH i2c: 01 07 00 [22:07:40]MH_I2C_Read... [22:07:40]Read from MH i2c: 01 07 00 62 94 00 00 00 00 00 FF 0F 0B [22:07:40]RasterBufferAndPrint [22:07:40]line Счет N : (1)209992 [22:07:40]line ИНН: 02508201610067 [22:07:40]line Контрольно-Кассовый Чек [22:07:40]line ПРОДАЖА [22:07:40]line ТРК (МРК, ГНК) : 43 [22:07:40]line Товар: 2710124500 [22:07:40]line Аи-95-К-3 [22:07:40]line 13.480 * 74.20 [22:07:40]line = 1000.22 [22:07:40]line НДС 12% НСП 1% [22:07:40]line > о реализуемом товаре [22:07:40]line ИТОГО: 1000.22 [22:07:40]line НСП 1% : 8.85 [22:07:40]line НДС 12% : 106.22 [22:07:40]line Наличными: 0.00 [22:07:40]line Безнал.: 1000.22 [22:07:40]line Место: АЗС № 86 "Партнер Нефть" [22:07:40]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [22:07:40]line СНО: Общий режим [22:07:40]line Чек 404 21.10.2024 22:07 [22:07:40]line Смена: 460 ФФД: 1.0 [22:07:40]line ЗНМ: 0300000155 [22:07:40]line РНМ: 0000000000100030 [22:07:40]line Версия ККМ: 001 [22:07:40]line Платежная система: Mbank [22:07:40]line ФМ: 0000000000965340 [22:07:40]line ФД: 187940 [22:07:40]line ФПД: 247019287820385 [22:07:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T220744&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187940&fm=247019287820385&tin=02508201610067®Number=0000000000100030&sum=100022 [22:07:40]written 0, free lines is 4095 [22:07:40]OFD Sender: Processing packet 187940 [packets to send 1062, broken 1061] [22:07:40]ProducePacketName [22:07:40]name=ofd_packets/00187940 [22:07:40]OFD Sender: To server: pG, [22:07:40]CommunicateWithHost lk.salyk.kg:30040 [22:07:40]ConnectInit lk.salyk.kg [22:07:40]Connected sock=9 [22:07:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 38 14 07 01 25 F9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B6 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 94 01 00 00 F4 03 04 00 B0 D0 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 24 DE 02 00 35 04 06 00 E0 A9 A8 E7 38 61 0C 89 47 24 6D 04 75 46 [22:07:40]Write to MH i2c: 01 00 00 8B 94 1F [22:07:40]Write i2c OK [22:07:40]MH_I2C_Read... [22:07:40]Read from MH i2c: 01 [22:07:40]MH_I2C_Read... [22:07:40]Read from MH i2c: 01 07 00 [22:07:40]MH_I2C_Read... [22:07:40]Read from MH i2c: 01 07 00 8B 94 00 00 00 00 00 9C 0C CE [22:07:40]RasterBufferAndPrint [22:07:40]line [22:07:40]line [22:07:40]line [22:07:40]line [22:07:40]line [22:07:40]written 0, free lines is 3232 [22:07:40]MH_Cut [22:07:40]Write to MH i2c: D1 01 00 92 94 01 F8 [22:07:40]Write i2c OK [22:07:40]MH_I2C_Read... [22:07:40]Read from MH i2c: D1 [22:07:40]MH_I2C_Read... [22:07:40]Read from MH i2c: D1 01 00 [22:07:40]MH_I2C_Read... [22:07:40]Read from MH i2c: D1 01 00 92 94 00 F7 [22:07:40]Write to MH i2c: 01 00 00 93 94 27 [22:07:40]Write i2c OK [22:07:40]MH_I2C_Read... [22:07:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 39 70 47 00 97 0C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 24 DE 02 00 F4 03 04 00 9F 7A 16 67 B6 04 01 00 00 9A 97 B3 3B 8D 92 FD 2C [22:07:40]CommunicateWithHost err = 0 [22:07:40]CheckOFDResponse [22:07:40]1017 (14) - 77093643461234 [22:07:40]1041 (16) - 0000000000965340 [22:07:40]1040 (4) - 187940 [22:07:40]1012 (4) - 21.10.2024 16:00 [22:07:40]1206 (1) - 0 [22:07:40]OFD Sender: Remove packet 187940 [22:07:40]ProducePacketName [22:07:40]name=ofd_packets/00187940 [22:07:40]NVStorageDeleteData [22:07:41]OFD Sender: No OFD packet to send [22:07:42]*** Cut start [22:07:42]*** Partial cut [22:07:42]*** CUTSNS_PIN = 1 [22:07:42]*** CUTSNS_PIN = 0 [22:07:42]*** Brake cut motor [22:07:42]Read from MH i2c: 01 [22:07:42]MH_I2C_Read... [22:07:42]*** Stop cut motor [22:07:42]*** Cut end [22:07:42]Read from MH i2c: 01 07 00 [22:07:42]MH_I2C_Read... [22:07:42]Read from MH i2c: 01 07 00 93 94 00 00 00 00 00 FF 0F 3C [22:07:42]process_action close_receipt done [22:07:42]requested_data is exist [22:07:42]produce_requested_data [22:07:42]requested_item fm.sn is exist - process it [22:07:42]wFMCommunicate request_size=4 [22:07:42]MH_SAM_APDU [22:07:42]CAPDU: 80 11 00 00 [22:07:42]Write to MH i2c: E2 08 00 94 94 80 11 00 00 00 00 00 00 A2 [22:07:42]Write i2c OK [22:07:42]MH_I2C_Read... [22:07:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:07:42]Read from MH i2c: E2 [22:07:42]MH_I2C_Read... [22:07:42]Read from MH i2c: E2 17 00 [22:07:42]MH_I2C_Read... [22:07:42]Read from MH i2c: E2 17 00 94 94 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 F0 [22:07:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [22:07:42]wFMCommunicate OK [22:07:42]requested_item fd.num is exist - process it [22:07:42]SAM_PROTO_GetFieldsCounters [22:07:42]wFMCommunicate request_size=4 [22:07:42]MH_SAM_APDU [22:07:42]CAPDU: 80 13 00 00 [22:07:42]Write to MH i2c: E2 08 00 95 94 80 13 00 00 00 00 00 00 A5 [22:07:42]Write i2c OK [22:07:42]MH_I2C_Read... [22:07:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:07:42]Read from MH i2c: E2 [22:07:42]MH_I2C_Read... [22:07:42]Read from MH i2c: E2 62 00 [22:07:42]MH_I2C_Read... [22:07:42]Read from MH i2c: E2 62 00 95 94 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 24 DE 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 94 01 00 00 5E 04 04 00 94 01 00 00 57 04 04 00 95 01 00 00 19 04 04 00 00 00 00 00 90 00 3C [22:07:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 24 DE 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 94 01 00 00 5E 04 04 00 94 01 00 00 57 04 04 00 95 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:07:42]wFMCommunicate OK [22:07:42]SAM_PROTO_GetFieldsCounters done [22:07:42]requested_item shift.num is exist - process it [22:07:42]requested_item shift.opened is exist - process it [22:07:42]req_shift_opened [22:07:42]FM_GetShiftState [22:07:42]SAM_PROTO_GetShiftState [22:07:42]wFMCommunicate request_size=4 [22:07:42]MH_SAM_APDU [22:07:42]CAPDU: 80 13 01 00 [22:07:42]Write to MH i2c: E2 08 00 96 94 80 13 01 00 00 00 00 00 A7 [22:07:42]Write i2c OK [22:07:42]MH_I2C_Read... [22:07:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:07:42]Read from MH i2c: E2 [22:07:42]MH_I2C_Read... [22:07:42]Read from MH i2c: E2 0E 00 [22:07:42]MH_I2C_Read... [22:07:42]Read from MH i2c: E2 0E 00 96 94 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 06 [22:07:42]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [22:07:42]wFMCommunicate OK [22:07:42]SAM_PROTO_GetShiftState done [22:07:42]FM_GetShiftState done [22:07:42]req_shift_opened done [22:07:42]requested_item shift.open_date is exist - process it [22:07:42]req_shift_open_date [22:07:42]req_shift_open_date done [22:07:42]produce_requested_data done [22:07:42]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187940,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [22:07:42]process_action_free close_receipt [22:07:42]json_value_free [22:07:42]json_value_free done [22:07:42]process_json_proto returns [22:07:42]Send response to host [22:07:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187940,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [22:07:42]free response buf [22:07:42]execute_script done [22:07:42]execute_script returns [22:07:42]free content buf [22:07:42]Sock 10.Close socket [22:07:42]Sock 10.Thread stoped [22:07:46]OFD Sender: No OFD packet to send [22:07:51]OFD Sender: No OFD packet to send [22:07:56]OFD Sender: No OFD packet to send [22:08:01]OFD Sender: No OFD packet to send [22:08:06]OFD Sender: No OFD packet to send [22:08:11]OFD Sender: No OFD packet to send [22:08:16]OFD Sender: No OFD packet to send [22:08:21]OFD Sender: No OFD packet to send [22:08:26]OFD Sender: No OFD packet to send [22:08:31]OFD Sender: No OFD packet to send [22:08:36]OFD Sender: No OFD packet to send [22:08:41]OFD Sender: No OFD packet to send [22:08:44]accept exits with 8 [22:08:44]New connection [22:08:44]New thread 3067014500 created [22:08:44]Thread 3067157860 joined [22:08:44]Waiting for new connection... [22:08:44] Sock 8.Parse request [22:08:44]Sock 8.Check first char [22:08:44]Sock 8.First char is OK [22:08:44]request: POST /json_proto HTTP/1.0 [22:08:44]Method: POST [22:08:44]URL: /json_proto [22:08:44]Method is POST - this is cgi request [22:08:44]url: /json_proto [22:08:44]query_string will be loaded in cgi processing [22:08:44]execute_cgi json_proto POST (null) [22:08:44]execute_cgi path=json_proto method=POST [22:08:44]POST find Content-Length [22:08:44]Host: 172.17.42.131:8080 [22:08:44]Content-Length: 677 [22:08:44]Content-Type: application/json [22:08:44] [22:08:44]POST finish read [22:08:44]Found Content-Length = 677 [22:08:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209994", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "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:08:44]execute_script... [22:08: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)209994", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "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:08:44]POST & json_proto [22:08:44]process_json_proto [22:08:44]json parsed OK: [22:08:44]protocol is kg_v1.0 [22:08:44]action value=close_receipt [22:08:44]process_action close_receipt [22:08:44]cmd_close_receipt [22:08:44]MH_GetDate [22:08:44]Write to MH i2c: F0 00 00 97 94 1A [22:08:44]Write i2c OK [22:08:44]MH_I2C_Read... [22:08:44]Read from MH i2c: F0 [22:08:44]MH_I2C_Read... [22:08:44]Read from MH i2c: F0 09 00 [22:08:44]MH_I2C_Read... [22:08:44]Read from MH i2c: F0 09 00 97 94 00 F2 D0 16 67 A0 18 CA 66 4A [22:08:44]GetLastDocTimeStamp 1729548464 [22:08:44]current date 1729548530 [22:08:44]FM_GetShiftState [22:08:44]SAM_PROTO_GetShiftState [22:08:44]wFMCommunicate request_size=4 [22:08:44]MH_SAM_APDU [22:08:44]CAPDU: 80 13 01 00 [22:08:44]Write to MH i2c: E2 08 00 98 94 80 13 01 00 00 00 00 00 A9 [22:08:44]Write i2c OK [22:08:44]MH_I2C_Read... [22:08:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:08:44]Read from MH i2c: E2 [22:08:44]MH_I2C_Read... [22:08:44]Read from MH i2c: E2 0E 00 [22:08:44]MH_I2C_Read... [22:08:44]Read from MH i2c: E2 0E 00 98 94 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 08 [22:08:44]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [22:08:44]wFMCommunicate OK [22:08:44]SAM_PROTO_GetShiftState done [22:08:44]FM_GetShiftState done [22:08:44]opened in 1729469754 [22:08:44]opened+sec_in_day 1729556154 [22:08:44]quantity*price = 50041 [22:08:44]sum+1 = 50042 [22:08:44]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 405 21.10.2024 22:08 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 187941 ФПД: 215511998453882 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T220850&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187941&fm=215511998453882&tin=02508201610067®Number=0000000000100030&sum=50000 [22:08:45]StoreToDocumentArchive [22:08:45]shift 460 fd 187941 [22:08:45]save to /storage/0460/doc_00187941 [22:08:45]save last doc name /storage/0460/doc_00187941 to /storage/kkm_last_doc_name [22:08:45]save OK [22:08:45]Clear old archive folders... [22:08:45]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:08:45]tlvbuf is 01375450 [22:08:45]SAM_PROTO_ClearQueue [22:08:45]wFMCommunicate request_size=4 [22:08:45]MH_SAM_APDU [22:08:45]CAPDU: 80 09 00 00 [22:08:45]Write to MH i2c: E2 08 00 A5 94 80 09 00 00 00 00 00 00 AB [22:08:45]Write i2c OK [22:08:45]MH_I2C_Read... [22:08:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:08:45]Read from MH i2c: E2 [22:08:45]MH_I2C_Read... [22:08:45]Read from MH i2c: E2 03 00 [22:08:45]MH_I2C_Read... [22:08:45]Read from MH i2c: E2 03 00 A5 94 00 90 00 AD [22:08:45]RAPDU: 90 00 [22:08:45]wFMCommunicate OK [22:08:45]SAM_PROTO_ClearQueue done [22:08:45]KKMCreateOFDPacket [22:08:45]OFDProtocolAddRootSTLVToBuf [22:08:45]FM_MakeSignedData [22:08:45]FM_MakeSignedData [22:08:45]SAM_PROTO_SignData [22:08:45]wFMCommunicate request_size=4 [22:08:45]MH_SAM_APDU [22:08:45]CAPDU: 80 0D 01 02 [22:08:45]Write to MH i2c: E2 08 00 A6 94 80 0D 01 02 00 00 00 00 B3 [22:08:45]Write i2c OK [22:08:45]MH_I2C_Read... [22:08:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:08:45]Read from MH i2c: E2 [22:08:45]MH_I2C_Read... [22:08:45]Read from MH i2c: E2 03 00 [22:08:45]MH_I2C_Read... [22:08:45]Read from MH i2c: E2 03 00 A6 94 00 90 00 AE [22:08:45]RAPDU: 90 00 [22:08:45]wFMCommunicate OK [22:08:45]wFMCommunicate request_size=255 [22:08:45]MH_SAM_APDU [22:08:45]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 01 00 00 F4 03 04 00 F2 D0 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 25 DE 02 00 35 04 06 00 C4 [22:08:45]Write to MH i2c: E2 02 01 A7 94 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 01 00 00 F4 03 04 00 F2 D0 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 25 DE 02 00 35 04 06 00 C4 00 00 91 [22:08:45]Write i2c OK [22:08:45]MH_I2C_Read... [22:08:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:08:45]Read from MH i2c: E2 [22:08:45]MH_I2C_Read... [22:08:45]Read from MH i2c: E2 03 00 [22:08:45]MH_I2C_Read... [22:08:45]Read from MH i2c: E2 03 00 A7 94 00 90 00 AF [22:08:45]RAPDU: 90 00 [22:08:45]wFMCommunicate OK [22:08:45]wFMCommunicate request_size=10 [22:08:45]MH_SAM_APDU [22:08:45]CAPDU: 80 0D 02 02 05 01 CC 1C D8 7A [22:08:45]Write to MH i2c: E2 0D 00 A8 94 80 0D 02 02 05 00 01 CC 1C D8 7A 00 00 FB [22:08:45]Write i2c OK [22:08:45]MH_I2C_Read... [22:08:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:08:45]Read from MH i2c: E2 [22:08:45]MH_I2C_Read... [22:08:45]Read from MH i2c: E2 03 00 [22:08:45]MH_I2C_Read... [22:08:45]Read from MH i2c: E2 03 00 A8 94 00 90 00 B0 [22:08:45]RAPDU: 90 00 [22:08:45]wFMCommunicate OK [22:08:45]wFMCommunicate request_size=4 [22:08:45]MH_SAM_APDU [22:08:45]CAPDU: 80 0D 03 02 [22:08:45]Write to MH i2c: E2 08 00 A9 94 80 0D 03 02 00 00 00 00 B8 [22:08:45]Write i2c OK [22:08:45]MH_I2C_Read... [22:08:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:08:45]Read from MH i2c: E2 [22:08:45]MH_I2C_Read... [22:08:45]Read from MH i2c: E2 0B 00 [22:08:45]MH_I2C_Read... [22:08:45]Read from MH i2c: E2 0B 00 A9 94 00 E4 02 2D 1D C4 AF 2B 62 90 00 E9 [22:08:45]RAPDU: E4 02 2D 1D C4 AF 2B 62 90 00 [22:08:45]wFMCommunicate OK [22:08:45]SAM_PROTO_SignData done [22:08:45]FM_MakeSignedData done [22:08:45]CreateOFDProtocolMessage [22:08:45]wFMCommunicate request_size=4 [22:08:45]MH_SAM_APDU [22:08:45]CAPDU: 80 11 00 00 [22:08:45]Write to MH i2c: E2 08 00 AA 94 80 11 00 00 00 00 00 00 B8 [22:08:45]Write i2c OK [22:08:45]MH_I2C_Read... [22:08:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:08:46]Read from MH i2c: E2 [22:08:46]MH_I2C_Read... [22:08:46]Read from MH i2c: E2 17 00 [22:08:46]MH_I2C_Read... [22:08:46]Read from MH i2c: E2 17 00 AA 94 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 06 [22:08:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [22:08:46]wFMCommunicate OK [22:08:46]CreateOFDProtocolMessage done [22:08:46]OFDSenderStorePacket 187941 [22:08:46]StoreOFDPacket docnum=187941 [22:08:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 92 FF 07 01 A9 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 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 01 00 00 F4 03 04 00 F2 D0 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 25 DE 02 00 35 04 06 00 C4 01 CC 1C D8 7A E4 02 2D 1D C4 AF 2B 62 [22:08:46]CheckFolder [22:08:46]dirname=/storage/ofd_packets [22:08:46]CheckFolder done [22:08:46]ProducePacketName [22:08:46]name=ofd_packets/00187941 [22:08:46]NVStorageSaveData ofd_packets/00187941 [22:08:46]File name is /storage/ofd_packets/00187941 [22:08:46]Write 301 bytes [22:08:46]NVStorageSaveData done [22:08:46]OFDSenderStorePacket done [22:08:46]KKMCreateOFDPacket done [22:08:46]NVStorageSaveData kkm_last_timestamp [22:08:46]File name is /storage/kkm_last_timestamp [22:08:46]Write 4 bytes [22:08:46]NVStorageSaveData done [22:08:46]ExternCall_PrintAddStr [22:08:46]wPrintStart [22:08:46]Write to MH i2c: 01 00 00 AB 94 3F [22:08:46]Write i2c OK [22:08:46]MH_I2C_Read... [22:08:46]Read from MH i2c: 01 [22:08:46]MH_I2C_Read... [22:08:46]Read from MH i2c: 01 07 00 [22:08:46]MH_I2C_Read... [22:08:46]Read from MH i2c: 01 07 00 AB 94 00 00 00 00 00 FF 0F 54 [22:08:46]RasterBufferAndPrint [22:08:46]line Счет N : (1)209994 [22:08:46]line ИНН: 02508201610067 [22:08:46]line Контрольно-Кассовый Чек [22:08:46]line ПРОДАЖА [22:08:46]line ТРК (МРК, ГНК) : 22 [22:08:46]line Товар: 2710124130 [22:08:46]line Аи-92-К-3 [22:08:46]line 7.480 * 66.90 [22:08:46]line = 500.41 [22:08:46]line НДС 12% НСП 1% [22:08:46]line > о реализуемом товаре [22:08:46]line ОКРУГЛЕНИЕ: -0.41 [22:08:46]line ИТОГО: 500.00 [22:08:46]line Внесено: 500.00 [22:08:46]line СДАЧА: 0.00 [22:08:46]line НСП 1% : 4.43 [22:08:46]line НДС 12% : 53.14 [22:08:46]line Наличными: 500.00 [22:08:46]line Безнал.: 0.00 [22:08:46]line Место: АЗС № 86 "Партнер Нефть" [22:08:46]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [22:08:46]line СНО: Общий режим [22:08:46]line Чек 405 21.10.2024 22:08 [22:08:46]line Смена: 460 ФФД: 1.0 [22:08:46]line ЗНМ: 0300000155 [22:08:46]line РНМ: 0000000000100030 [22:08:46]line Версия ККМ: 001 [22:08:46]line ФМ: 0000000000965340 [22:08:46]line ФД: 187941 [22:08:46]line ФПД: 215511998453882 [22:08:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T220850&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187941&fm=215511998453882&tin=02508201610067®Number=0000000000100030&sum=50000 [22:08:46]written 0, free lines is 4095 [22:08:46]OFD Sender: Processing packet 187941 [packets to send 1062, broken 1061] [22:08:46]ProducePacketName [22:08:46]name=ofd_packets/00187941 [22:08:46]OFD Sender: To server: pG, [22:08:46]CommunicateWithHost lk.salyk.kg:30040 [22:08:46]ConnectInit lk.salyk.kg [22:08:46]Connected sock=10 [22:08:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 92 FF 07 01 A9 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 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 01 00 00 F4 03 04 00 F2 D0 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 25 DE 02 00 35 04 06 00 C4 01 CC 1C D8 7A E4 02 2D 1D C4 AF 2B 62 [22:08:46]Write to MH i2c: 01 00 00 D6 94 6A [22:08:46]Write i2c OK [22:08:46]MH_I2C_Read... [22:08:46]Read from MH i2c: 01 [22:08:46]MH_I2C_Read... [22:08:46]Read from MH i2c: 01 07 00 [22:08:46]MH_I2C_Read... [22:08:46]Read from MH i2c: 01 07 00 D6 94 00 00 00 00 00 60 0C DD [22:08:46]RasterBufferAndPrint [22:08:46]line [22:08:46]line [22:08:46]line [22:08:46]line [22:08:46]line [22:08:46]written 0, free lines is 3173 [22:08:46]MH_Cut [22:08:46]Write to MH i2c: D1 01 00 DD 94 01 43 [22:08:46]Write i2c OK [22:08:46]MH_I2C_Read... [22:08:46]Read from MH i2c: D1 [22:08:46]MH_I2C_Read... [22:08:46]Read from MH i2c: D1 01 00 [22:08:46]MH_I2C_Read... [22:08:46]Read from MH i2c: D1 01 00 DD 94 00 42 [22:08:46]Write to MH i2c: 01 00 00 DE 94 72 [22:08:46]Write i2c OK [22:08:46]MH_I2C_Read... [22:08:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 2D 80 47 00 10 37 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 25 DE 02 00 F4 03 04 00 E1 7A 16 67 B6 04 01 00 00 C4 D4 34 B0 95 9C 1E BC [22:08:46]CommunicateWithHost err = 0 [22:08:46]CheckOFDResponse [22:08:46]1017 (14) - 77093643461234 [22:08:46]1041 (16) - 0000000000965340 [22:08:46]1040 (4) - 187941 [22:08:46]1012 (4) - 21.10.2024 16:01 [22:08:46]1206 (1) - 0 [22:08:46]OFD Sender: Remove packet 187941 [22:08:46]ProducePacketName [22:08:46]name=ofd_packets/00187941 [22:08:46]NVStorageDeleteData [22:08:47]OFD Sender: No OFD packet to send [22:08:47]*** Cut start [22:08:47]*** Partial cut [22:08:47]*** CUTSNS_PIN = 1 [22:08:47]*** CUTSNS_PIN = 0 [22:08:48]*** Brake cut motor [22:08:48]Read from MH i2c: 01 [22:08:48]MH_I2C_Read... [22:08:48]*** Stop cut motor [22:08:48]*** Cut end [22:08:48]Read from MH i2c: 01 07 00 [22:08:48]MH_I2C_Read... [22:08:48]Read from MH i2c: 01 07 00 DE 94 00 00 00 00 00 FF 0F 87 [22:08:48]process_action close_receipt done [22:08:48]requested_data is exist [22:08:48]produce_requested_data [22:08:48]requested_item fm.sn is exist - process it [22:08:48]wFMCommunicate request_size=4 [22:08:48]MH_SAM_APDU [22:08:48]CAPDU: 80 11 00 00 [22:08:48]Write to MH i2c: E2 08 00 DF 94 80 11 00 00 00 00 00 00 ED [22:08:48]Write i2c OK [22:08:48]MH_I2C_Read... [22:08:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:08:48]Read from MH i2c: E2 [22:08:48]MH_I2C_Read... [22:08:48]Read from MH i2c: E2 17 00 [22:08:48]MH_I2C_Read... [22:08:48]Read from MH i2c: E2 17 00 DF 94 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 3B [22:08:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [22:08:48]wFMCommunicate OK [22:08:48]requested_item fd.num is exist - process it [22:08:48]SAM_PROTO_GetFieldsCounters [22:08:48]wFMCommunicate request_size=4 [22:08:48]MH_SAM_APDU [22:08:48]CAPDU: 80 13 00 00 [22:08:48]Write to MH i2c: E2 08 00 E0 94 80 13 00 00 00 00 00 00 F0 [22:08:48]Write i2c OK [22:08:48]MH_I2C_Read... [22:08:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:08:48]Read from MH i2c: E2 [22:08:48]MH_I2C_Read... [22:08:48]Read from MH i2c: E2 62 00 [22:08:48]MH_I2C_Read... [22:08:48]Read from MH i2c: E2 62 00 E0 94 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 25 DE 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 95 01 00 00 5E 04 04 00 95 01 00 00 57 04 04 00 96 01 00 00 19 04 04 00 00 00 00 00 90 00 8B [22:08:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 25 DE 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 95 01 00 00 5E 04 04 00 95 01 00 00 57 04 04 00 96 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:08:48]wFMCommunicate OK [22:08:48]SAM_PROTO_GetFieldsCounters done [22:08:48]requested_item shift.num is exist - process it [22:08:48]requested_item shift.opened is exist - process it [22:08:48]req_shift_opened [22:08:48]FM_GetShiftState [22:08:48]SAM_PROTO_GetShiftState [22:08:48]wFMCommunicate request_size=4 [22:08:48]MH_SAM_APDU [22:08:48]CAPDU: 80 13 01 00 [22:08:48]Write to MH i2c: E2 08 00 E1 94 80 13 01 00 00 00 00 00 F2 [22:08:48]Write i2c OK [22:08:48]MH_I2C_Read... [22:08:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:08:48]Read from MH i2c: E2 [22:08:48]MH_I2C_Read... [22:08:48]Read from MH i2c: E2 0E 00 [22:08:48]MH_I2C_Read... [22:08:48]Read from MH i2c: E2 0E 00 E1 94 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 51 [22:08:48]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [22:08:48]wFMCommunicate OK [22:08:48]SAM_PROTO_GetShiftState done [22:08:48]FM_GetShiftState done [22:08:48]req_shift_opened done [22:08:48]requested_item shift.open_date is exist - process it [22:08:48]req_shift_open_date [22:08:48]req_shift_open_date done [22:08:48]produce_requested_data done [22:08:48]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187941,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [22:08:48]process_action_free close_receipt [22:08:48]json_value_free [22:08:48]json_value_free done [22:08:48]process_json_proto returns [22:08:48]Send response to host [22:08:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187941,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [22:08:48]free response buf [22:08:48]execute_script done [22:08:48]execute_script returns [22:08:48]free content buf [22:08:48]Sock 8.Close socket [22:08:48]Sock 8.Thread stoped [22:08:52]OFD Sender: No OFD packet to send [22:08:57]OFD Sender: No OFD packet to send [22:09:02]OFD Sender: No OFD packet to send [22:09:07]OFD Sender: No OFD packet to send [22:09:12]OFD Sender: No OFD packet to send [22:09:17]OFD Sender: No OFD packet to send [22:09:22]OFD Sender: No OFD packet to send [22:09:22]accept exits with 9 [22:09:22]New connection [22:09:22]New thread 3067157860 created [22:09:22]Thread 3067014500 joined [22:09:22]Waiting for new connection... [22:09:22] Sock 9.Parse request [22:09:22]Sock 9.Check first char [22:09:22]Sock 9.First char is OK [22:09:22]request: POST /json_proto HTTP/1.0 [22:09:22]Method: POST [22:09:22]URL: /json_proto [22:09:22]Method is POST - this is cgi request [22:09:22]url: /json_proto [22:09:22]query_string will be loaded in cgi processing [22:09:22]execute_cgi json_proto POST (null) [22:09:22]execute_cgi path=json_proto method=POST [22:09:22]POST find Content-Length [22:09:22]Host: 172.17.42.131:8080 [22:09:22]Content-Length: 688 [22:09:22]Content-Type: application/json [22:09:22] [22:09:22]POST finish read [22:09:22]Found Content-Length = 688 [22:09:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209993", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "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" ] } } [22:09:22]execute_script... [22:09: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)209993", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "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" ] } } [22:09:22]POST & json_proto [22:09:22]process_json_proto [22:09:22]json parsed OK: [22:09:22]protocol is kg_v1.0 [22:09:22]action value=close_receipt [22:09:22]process_action close_receipt [22:09:22]cmd_close_receipt [22:09:22]MH_GetDate [22:09:22]Write to MH i2c: F0 00 00 E2 94 65 [22:09:22]Write i2c OK [22:09:22]MH_I2C_Read... [22:09:22]Read from MH i2c: F0 [22:09:22]MH_I2C_Read... [22:09:22]Read from MH i2c: F0 09 00 [22:09:22]MH_I2C_Read... [22:09:22]Read from MH i2c: F0 09 00 E2 94 00 18 D1 16 67 A0 18 CA 66 BC [22:09:22]GetLastDocTimeStamp 1729548530 [22:09:22]current date 1729548568 [22:09:22]FM_GetShiftState [22:09:22]SAM_PROTO_GetShiftState [22:09:22]wFMCommunicate request_size=4 [22:09:22]MH_SAM_APDU [22:09:22]CAPDU: 80 13 01 00 [22:09:22]Write to MH i2c: E2 08 00 E3 94 80 13 01 00 00 00 00 00 F4 [22:09:22]Write i2c OK [22:09:22]MH_I2C_Read... [22:09:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:09:22]Read from MH i2c: E2 [22:09:22]MH_I2C_Read... [22:09:22]Read from MH i2c: E2 0E 00 [22:09:22]MH_I2C_Read... [22:09:22]Read from MH i2c: E2 0E 00 E3 94 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 53 [22:09:22]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [22:09:22]wFMCommunicate OK [22:09:22]SAM_PROTO_GetShiftState done [22:09:22]FM_GetShiftState done [22:09:22]opened in 1729469754 [22:09:22]opened+sec_in_day 1729556154 [22:09:22]quantity*price = 150076 [22:09:22]sum+1 = 150078 [22:09:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.77 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.37 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 406 21.10.2024 22:09 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 187942 ФПД: 15486003773998 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T220928&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187942&fm=15486003773998&tin=02508201610067®Number=0000000000100030&sum=150000 [22:09:23]StoreToDocumentArchive [22:09:23]shift 460 fd 187942 [22:09:23]save to /storage/0460/doc_00187942 [22:09:23]save last doc name /storage/0460/doc_00187942 to /storage/kkm_last_doc_name [22:09:23]save OK [22:09:23]Clear old archive folders... [22:09:23]ProcessDocumentItem done err = 0, tmpTLVsize=257 [22:09:23]tlvbuf is 01356320 [22:09:23]SAM_PROTO_ClearQueue [22:09:23]wFMCommunicate request_size=4 [22:09:23]MH_SAM_APDU [22:09:23]CAPDU: 80 09 00 00 [22:09:23]Write to MH i2c: E2 08 00 F0 94 80 09 00 00 00 00 00 00 F6 [22:09:23]Write i2c OK [22:09:23]MH_I2C_Read... [22:09:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:09:23]Read from MH i2c: E2 [22:09:23]MH_I2C_Read... [22:09:23]Read from MH i2c: E2 03 00 [22:09:23]MH_I2C_Read... [22:09:23]Read from MH i2c: E2 03 00 F0 94 00 90 00 F8 [22:09:23]RAPDU: 90 00 [22:09:23]wFMCommunicate OK [22:09:23]SAM_PROTO_ClearQueue done [22:09:23]KKMCreateOFDPacket [22:09:23]OFDProtocolAddRootSTLVToBuf [22:09:23]FM_MakeSignedData [22:09:23]FM_MakeSignedData [22:09:23]SAM_PROTO_SignData [22:09:23]wFMCommunicate request_size=4 [22:09:23]MH_SAM_APDU [22:09:23]CAPDU: 80 0D 01 02 [22:09:23]Write to MH i2c: E2 08 00 F1 94 80 0D 01 02 00 00 00 00 FE [22:09:23]Write i2c OK [22:09:23]MH_I2C_Read... [22:09:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:09:24]Read from MH i2c: E2 [22:09:24]MH_I2C_Read... [22:09:24]Read from MH i2c: E2 03 00 [22:09:24]MH_I2C_Read... [22:09:24]Read from MH i2c: E2 03 00 F1 94 00 90 00 F9 [22:09:24]RAPDU: 90 00 [22:09:24]wFMCommunicate OK [22:09:24]wFMCommunicate request_size=255 [22:09:24]MH_SAM_APDU [22:09:24]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 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 96 01 00 00 F4 03 04 00 18 D1 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 26 DE 02 [22:09:24]Write to MH i2c: E2 02 01 F2 94 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 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 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 96 01 00 00 F4 03 04 00 18 D1 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 26 DE 02 00 00 7D [22:09:24]Write i2c OK [22:09:24]MH_I2C_Read... [22:09:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:09:24]Read from MH i2c: E2 [22:09:24]MH_I2C_Read... [22:09:24]Read from MH i2c: E2 03 00 [22:09:24]MH_I2C_Read... [22:09:24]Read from MH i2c: E2 03 00 F2 94 00 90 00 FA [22:09:24]RAPDU: 90 00 [22:09:24]wFMCommunicate OK [22:09:24]wFMCommunicate request_size=16 [22:09:24]MH_SAM_APDU [22:09:24]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 0E 15 9D C1 02 2E [22:09:24]Write to MH i2c: E2 13 00 F3 94 80 0D 02 02 0B 00 00 35 04 06 00 0E 15 9D C1 02 2E 00 00 07 [22:09:24]Write i2c OK [22:09:24]MH_I2C_Read... [22:09:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:09:24]Read from MH i2c: E2 [22:09:24]MH_I2C_Read... [22:09:24]Read from MH i2c: E2 03 00 [22:09:24]MH_I2C_Read... [22:09:24]Read from MH i2c: E2 03 00 F3 94 00 90 00 FB [22:09:24]RAPDU: 90 00 [22:09:24]wFMCommunicate OK [22:09:24]wFMCommunicate request_size=4 [22:09:24]MH_SAM_APDU [22:09:24]CAPDU: 80 0D 03 02 [22:09:24]Write to MH i2c: E2 08 00 F4 94 80 0D 03 02 00 00 00 00 03 [22:09:24]Write i2c OK [22:09:24]MH_I2C_Read... [22:09:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:09:24]Read from MH i2c: E2 [22:09:24]MH_I2C_Read... [22:09:24]Read from MH i2c: E2 0B 00 [22:09:24]MH_I2C_Read... [22:09:24]Read from MH i2c: E2 0B 00 F4 94 00 E2 F9 B2 66 A6 0A 1C B9 90 00 7C [22:09:24]RAPDU: E2 F9 B2 66 A6 0A 1C B9 90 00 [22:09:24]wFMCommunicate OK [22:09:24]SAM_PROTO_SignData done [22:09:24]FM_MakeSignedData done [22:09:24]CreateOFDProtocolMessage [22:09:24]wFMCommunicate request_size=4 [22:09:24]MH_SAM_APDU [22:09:24]CAPDU: 80 11 00 00 [22:09:24]Write to MH i2c: E2 08 00 F5 94 80 11 00 00 00 00 00 00 03 [22:09:24]Write i2c OK [22:09:24]MH_I2C_Read... [22:09:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:09:24]Read from MH i2c: E2 [22:09:24]MH_I2C_Read... [22:09:24]Read from MH i2c: E2 17 00 [22:09:24]MH_I2C_Read... [22:09:24]Read from MH i2c: E2 17 00 F5 94 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 51 [22:09:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [22:09:24]wFMCommunicate OK [22:09:24]CreateOFDProtocolMessage done [22:09:24]OFDSenderStorePacket 187942 [22:09:24]StoreOFDPacket docnum=187942 [22:09:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 F9 3C 0D 01 76 D8 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 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 96 01 00 00 F4 03 04 00 18 D1 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 26 DE 02 00 35 04 06 00 0E 15 9D C1 02 2E E2 F9 B2 66 A6 0A 1C B9 [22:09:24]CheckFolder [22:09:24]dirname=/storage/ofd_packets [22:09:24]CheckFolder done [22:09:24]ProducePacketName [22:09:24]name=ofd_packets/00187942 [22:09:24]NVStorageSaveData ofd_packets/00187942 [22:09:24]File name is /storage/ofd_packets/00187942 [22:09:24]Write 307 bytes [22:09:24]NVStorageSaveData done [22:09:24]OFDSenderStorePacket done [22:09:24]KKMCreateOFDPacket done [22:09:24]NVStorageSaveData kkm_last_timestamp [22:09:24]File name is /storage/kkm_last_timestamp [22:09:24]Write 4 bytes [22:09:24]NVStorageSaveData done [22:09:24]ExternCall_PrintAddStr [22:09:24]wPrintStart [22:09:24]Write to MH i2c: 01 00 00 F6 94 8A [22:09:24]Write i2c OK [22:09:24]MH_I2C_Read... [22:09:24]Read from MH i2c: 01 [22:09:24]MH_I2C_Read... [22:09:24]Read from MH i2c: 01 07 00 [22:09:24]MH_I2C_Read... [22:09:24]Read from MH i2c: 01 07 00 F6 94 00 00 00 00 00 FF 0F 9F [22:09:24]RasterBufferAndPrint [22:09:24]line Счет N : (1)209993 [22:09:24]line ИНН: 02508201610067 [22:09:24]line Контрольно-Кассовый Чек [22:09:24]line ПРОДАЖА [22:09:24]line ТРК (МРК, ГНК) : 31 [22:09:24]line Товар: 2710194210 [22:09:24]line D-ENERGY ДТ-К-5 [22:09:24]line 19.440 * 77.20 [22:09:24]line = 1500.77 [22:09:24]line НДС 12% НСП 1% [22:09:24]line > о реализуемом товаре [22:09:24]line ОКРУГЛЕНИЕ: -0.77 [22:09:24]line ИТОГО: 1500.00 [22:09:24]line Внесено: 1500.00 [22:09:24]line СДАЧА: 0.00 [22:09:24]line НСП 1% : 13.28 [22:09:24]line НДС 12% : 159.37 [22:09:24]line Наличными: 1500.00 [22:09:24]line Безнал.: 0.00 [22:09:24]line Место: АЗС № 86 "Партнер Нефть" [22:09:24]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [22:09:24]line СНО: Общий режим [22:09:24]line Чек 406 21.10.2024 22:09 [22:09:24]line Смена: 460 ФФД: 1.0 [22:09:24]line ЗНМ: 0300000155 [22:09:24]line РНМ: 0000000000100030 [22:09:24]line Версия ККМ: 001 [22:09:24]line ФМ: 0000000000965340 [22:09:24]line ФД: 187942 [22:09:24]line ФПД: 15486003773998 [22:09:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T220928&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187942&fm=15486003773998&tin=02508201610067®Number=0000000000100030&sum=150000 [22:09:24]written 0, free lines is 4095 [22:09:24]OFD Sender: Processing packet 187942 [packets to send 1062, broken 1061] [22:09:24]ProducePacketName [22:09:24]name=ofd_packets/00187942 [22:09:24]OFD Sender: To server: pG, [22:09:24]CommunicateWithHost lk.salyk.kg:30040 [22:09:24]ConnectInit lk.salyk.kg [22:09:24]Connected sock=10 [22:09:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 F9 3C 0D 01 76 D8 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 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 96 01 00 00 F4 03 04 00 18 D1 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 26 DE 02 00 35 04 06 00 0E 15 9D C1 02 2E E2 F9 B2 66 A6 0A 1C B9 [22:09:24]Write to MH i2c: 01 00 00 21 95 B6 [22:09:24]Write i2c OK [22:09:24]MH_I2C_Read... [22:09:24]Read from MH i2c: 01 [22:09:24]MH_I2C_Read... [22:09:24]Read from MH i2c: 01 07 00 [22:09:24]MH_I2C_Read... [22:09:24]Read from MH i2c: 01 07 00 21 95 00 00 00 00 00 6A 0C 33 [22:09:24]RasterBufferAndPrint [22:09:24]line [22:09:24]line [22:09:24]line [22:09:24]line [22:09:24]line [22:09:24]written 0, free lines is 3181 [22:09:24]MH_Cut [22:09:24]Write to MH i2c: D1 01 00 28 95 01 8F [22:09:24]Write i2c OK [22:09:24]MH_I2C_Read... [22:09:24]Read from MH i2c: D1 [22:09:24]MH_I2C_Read... [22:09:24]Read from MH i2c: D1 01 00 [22:09:24]MH_I2C_Read... [22:09:24]Read from MH i2c: D1 01 00 28 95 00 8E [22:09:24]Write to MH i2c: 01 00 00 29 95 BE [22:09:24]Write i2c OK [22:09:24]MH_I2C_Read... [22:09:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 68 8B 47 00 6B AF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 26 DE 02 00 F4 03 04 00 07 7B 16 67 B6 04 01 00 00 04 2A C2 F0 27 FA 2F BF [22:09:25]CommunicateWithHost err = 0 [22:09:25]CheckOFDResponse [22:09:25]1017 (14) - 77093643461234 [22:09:25]1041 (16) - 0000000000965340 [22:09:25]1040 (4) - 187942 [22:09:25]1012 (4) - 21.10.2024 16:02 [22:09:25]1206 (1) - 0 [22:09:25]OFD Sender: Remove packet 187942 [22:09:25]ProducePacketName [22:09:25]name=ofd_packets/00187942 [22:09:25]NVStorageDeleteData [22:09:25]OFD Sender: No OFD packet to send [22:09:26]*** Cut start [22:09:26]*** Partial cut [22:09:26]*** CUTSNS_PIN = 1 [22:09:26]*** CUTSNS_PIN = 0 [22:09:26]*** Brake cut motor [22:09:26]Read from MH i2c: 01 [22:09:26]MH_I2C_Read... [22:09:26]*** Stop cut motor [22:09:26]*** Cut end [22:09:26]Read from MH i2c: 01 07 00 [22:09:26]MH_I2C_Read... [22:09:26]Read from MH i2c: 01 07 00 29 95 00 00 00 00 00 FF 0F D3 [22:09:26]process_action close_receipt done [22:09:26]requested_data is exist [22:09:26]produce_requested_data [22:09:26]requested_item fm.sn is exist - process it [22:09:26]wFMCommunicate request_size=4 [22:09:26]MH_SAM_APDU [22:09:26]CAPDU: 80 11 00 00 [22:09:26]Write to MH i2c: E2 08 00 2A 95 80 11 00 00 00 00 00 00 39 [22:09:26]Write i2c OK [22:09:26]MH_I2C_Read... [22:09:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:09:26]Read from MH i2c: E2 [22:09:26]MH_I2C_Read... [22:09:26]Read from MH i2c: E2 17 00 [22:09:26]MH_I2C_Read... [22:09:26]Read from MH i2c: E2 17 00 2A 95 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 87 [22:09:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [22:09:26]wFMCommunicate OK [22:09:26]requested_item fd.num is exist - process it [22:09:26]SAM_PROTO_GetFieldsCounters [22:09:26]wFMCommunicate request_size=4 [22:09:26]MH_SAM_APDU [22:09:26]CAPDU: 80 13 00 00 [22:09:26]Write to MH i2c: E2 08 00 2B 95 80 13 00 00 00 00 00 00 3C [22:09:26]Write i2c OK [22:09:26]MH_I2C_Read... [22:09:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:09:27]Read from MH i2c: E2 [22:09:27]MH_I2C_Read... [22:09:27]Read from MH i2c: E2 62 00 [22:09:27]MH_I2C_Read... [22:09:27]Read from MH i2c: E2 62 00 2B 95 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 26 DE 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 96 01 00 00 5E 04 04 00 96 01 00 00 57 04 04 00 97 01 00 00 19 04 04 00 00 00 00 00 90 00 DB [22:09:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 26 DE 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 96 01 00 00 5E 04 04 00 96 01 00 00 57 04 04 00 97 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:09:27]wFMCommunicate OK [22:09:27]SAM_PROTO_GetFieldsCounters done [22:09:27]requested_item shift.num is exist - process it [22:09:27]requested_item shift.opened is exist - process it [22:09:27]req_shift_opened [22:09:27]FM_GetShiftState [22:09:27]SAM_PROTO_GetShiftState [22:09:27]wFMCommunicate request_size=4 [22:09:27]MH_SAM_APDU [22:09:27]CAPDU: 80 13 01 00 [22:09:27]Write to MH i2c: E2 08 00 2C 95 80 13 01 00 00 00 00 00 3E [22:09:27]Write i2c OK [22:09:27]MH_I2C_Read... [22:09:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:09:27]Read from MH i2c: E2 [22:09:27]MH_I2C_Read... [22:09:27]Read from MH i2c: E2 0E 00 [22:09:27]MH_I2C_Read... [22:09:27]Read from MH i2c: E2 0E 00 2C 95 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 9D [22:09:27]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [22:09:27]wFMCommunicate OK [22:09:27]SAM_PROTO_GetShiftState done [22:09:27]FM_GetShiftState done [22:09:27]req_shift_opened done [22:09:27]requested_item shift.open_date is exist - process it [22:09:27]req_shift_open_date [22:09:27]req_shift_open_date done [22:09:27]produce_requested_data done [22:09:27]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187942,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [22:09:27]process_action_free close_receipt [22:09:27]json_value_free [22:09:27]json_value_free done [22:09:27]process_json_proto returns [22:09:27]Send response to host [22:09:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187942,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [22:09:27]free response buf [22:09:27]execute_script done [22:09:27]execute_script returns [22:09:27]free content buf [22:09:27]Sock 9.Close socket [22:09:27]Sock 9.Thread stoped [22:09:30]OFD Sender: No OFD packet to send [22:09:35]OFD Sender: No OFD packet to send [22:09:40]OFD Sender: No OFD packet to send [22:09:45]OFD Sender: No OFD packet to send [22:09:50]OFD Sender: No OFD packet to send [22:09:55]OFD Sender: No OFD packet to send [22:10:00]OFD Sender: No OFD packet to send [22:10:05]OFD Sender: No OFD packet to send [22:10:10]OFD Sender: No OFD packet to send [22:10:15]OFD Sender: No OFD packet to send [22:10:20]OFD Sender: No OFD packet to send [22:10:25]OFD Sender: No OFD packet to send [22:10:30]OFD Sender: No OFD packet to send [22:10:35]OFD Sender: No OFD packet to send [22:10:40]OFD Sender: No OFD packet to send [22:10:45]OFD Sender: No OFD packet to send [22:10:50]OFD Sender: No OFD packet to send [22:10:56]OFD Sender: No OFD packet to send [22:11:01]accept exits with 8 [22:11:01]New connection [22:11:01]New thread 3067014500 created [22:11:01]Thread 3067157860 joined [22:11:01]Waiting for new connection... [22:11:01] Sock 8.Parse request [22:11:01]Sock 8.Check first char [22:11:01]Sock 8.First char is OK [22:11:01]request: POST /json_proto HTTP/1.0 [22:11:01]Method: POST [22:11:01]URL: /json_proto [22:11:01]Method is POST - this is cgi request [22:11:01]url: /json_proto [22:11:01]query_string will be loaded in cgi processing [22:11:01]execute_cgi json_proto POST (null) [22:11:01]execute_cgi path=json_proto method=POST [22:11:01]POST find Content-Length [22:11:01]Host: 172.17.42.131:8080 [22:11:01]Content-Length: 688 [22:11:01]Content-Type: application/json [22:11:01] [22:11:01]POST finish read [22:11:01]Found Content-Length = 688 [22:11:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209995", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 12.960, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:11:01]execute_script... [22:11: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)209995", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 12.960, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:11:01]POST & json_proto [22:11:01]process_json_proto [22:11:01]json parsed OK: [22:11:01]protocol is kg_v1.0 [22:11:01]action value=close_receipt [22:11:01]process_action close_receipt [22:11:01]cmd_close_receipt [22:11:01]MH_GetDate [22:11:01]Write to MH i2c: F0 00 00 2D 95 B1 [22:11:01]Write i2c OK [22:11:01]MH_I2C_Read... [22:11:01]Read from MH i2c: F0 [22:11:01]MH_I2C_Read... [22:11:01]Read from MH i2c: F0 09 00 [22:11:01]MH_I2C_Read... [22:11:01]Read from MH i2c: F0 09 00 2D 95 00 7B D1 16 67 A0 18 CA 66 6B [22:11:01]GetLastDocTimeStamp 1729548568 [22:11:01]current date 1729548667 [22:11:01]FM_GetShiftState [22:11:01]SAM_PROTO_GetShiftState [22:11:01]wFMCommunicate request_size=4 [22:11:01]MH_SAM_APDU [22:11:01]CAPDU: 80 13 01 00 [22:11:01]Write to MH i2c: E2 08 00 2E 95 80 13 01 00 00 00 00 00 40 [22:11:01]Write i2c OK [22:11:01]MH_I2C_Read... [22:11:01]OFD Sender: No OFD packet to send [22:11:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:11:01]Read from MH i2c: E2 [22:11:01]MH_I2C_Read... [22:11:01]Read from MH i2c: E2 0E 00 [22:11:01]MH_I2C_Read... [22:11:01]Read from MH i2c: E2 0E 00 2E 95 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 9F [22:11:01]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [22:11:01]wFMCommunicate OK [22:11:01]SAM_PROTO_GetShiftState done [22:11:01]FM_GetShiftState done [22:11:01]opened in 1729469754 [22:11:01]opened+sec_in_day 1729556154 [22:11:01]quantity*price = 100051 [22:11:01]sum+1 = 100052 [22:11:01]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 407 21.10.2024 22:11 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 187943 ФПД: 25317821570476 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T221107&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187943&fm=25317821570476&tin=02508201610067®Number=0000000000100030&sum=100000 [22:11:02]StoreToDocumentArchive [22:11:02]shift 460 fd 187943 [22:11:02]save to /storage/0460/doc_00187943 [22:11:02]save last doc name /storage/0460/doc_00187943 to /storage/kkm_last_doc_name [22:11:02]save OK [22:11:02]Clear old archive folders... [22:11:02]ProcessDocumentItem done err = 0, tmpTLVsize=257 [22:11:02]tlvbuf is 010B8790 [22:11:02]SAM_PROTO_ClearQueue [22:11:02]wFMCommunicate request_size=4 [22:11:02]MH_SAM_APDU [22:11:02]CAPDU: 80 09 00 00 [22:11:02]Write to MH i2c: E2 08 00 3B 95 80 09 00 00 00 00 00 00 42 [22:11:02]Write i2c OK [22:11:02]MH_I2C_Read... [22:11:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:11:02]Read from MH i2c: E2 [22:11:02]MH_I2C_Read... [22:11:02]Read from MH i2c: E2 03 00 [22:11:02]MH_I2C_Read... [22:11:02]Read from MH i2c: E2 03 00 3B 95 00 90 00 44 [22:11:02]RAPDU: 90 00 [22:11:02]wFMCommunicate OK [22:11:02]SAM_PROTO_ClearQueue done [22:11:02]KKMCreateOFDPacket [22:11:02]OFDProtocolAddRootSTLVToBuf [22:11:02]FM_MakeSignedData [22:11:02]FM_MakeSignedData [22:11:02]SAM_PROTO_SignData [22:11:02]wFMCommunicate request_size=4 [22:11:02]MH_SAM_APDU [22:11:02]CAPDU: 80 0D 01 02 [22:11:02]Write to MH i2c: E2 08 00 3C 95 80 0D 01 02 00 00 00 00 4A [22:11:02]Write i2c OK [22:11:02]MH_I2C_Read... [22:11:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:11:02]Read from MH i2c: E2 [22:11:02]MH_I2C_Read... [22:11:02]Read from MH i2c: E2 03 00 [22:11:02]MH_I2C_Read... [22:11:02]Read from MH i2c: E2 03 00 3C 95 00 90 00 45 [22:11:02]RAPDU: 90 00 [22:11:02]wFMCommunicate OK [22:11:02]wFMCommunicate request_size=255 [22:11:02]MH_SAM_APDU [22:11:02]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 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 97 01 00 00 F4 03 04 00 7B D1 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 27 DE 02 [22:11:02]Write to MH i2c: E2 02 01 3D 95 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 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 97 01 00 00 F4 03 04 00 7B D1 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 27 DE 02 00 00 DC [22:11:02]Write i2c OK [22:11:02]MH_I2C_Read... [22:11:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:11:02]Read from MH i2c: E2 [22:11:02]MH_I2C_Read... [22:11:02]Read from MH i2c: E2 03 00 [22:11:02]MH_I2C_Read... [22:11:02]Read from MH i2c: E2 03 00 3D 95 00 90 00 46 [22:11:02]RAPDU: 90 00 [22:11:02]wFMCommunicate OK [22:11:02]wFMCommunicate request_size=16 [22:11:02]MH_SAM_APDU [22:11:02]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 17 06 C3 C2 DD AC [22:11:02]Write to MH i2c: E2 13 00 3E 95 80 0D 02 02 0B 00 00 35 04 06 00 17 06 C3 C2 DD AC 00 00 CD [22:11:02]Write i2c OK [22:11:02]MH_I2C_Read... [22:11:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:11:02]Read from MH i2c: E2 [22:11:02]MH_I2C_Read... [22:11:02]Read from MH i2c: E2 03 00 [22:11:02]MH_I2C_Read... [22:11:02]Read from MH i2c: E2 03 00 3E 95 00 90 00 47 [22:11:02]RAPDU: 90 00 [22:11:02]wFMCommunicate OK [22:11:02]wFMCommunicate request_size=4 [22:11:02]MH_SAM_APDU [22:11:02]CAPDU: 80 0D 03 02 [22:11:02]Write to MH i2c: E2 08 00 3F 95 80 0D 03 02 00 00 00 00 4F [22:11:02]Write i2c OK [22:11:02]MH_I2C_Read... [22:11:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:11:02]Read from MH i2c: E2 [22:11:02]MH_I2C_Read... [22:11:02]Read from MH i2c: E2 0B 00 [22:11:02]MH_I2C_Read... [22:11:02]Read from MH i2c: E2 0B 00 3F 95 00 63 B3 FE 40 58 1B 4A 24 90 00 85 [22:11:02]RAPDU: 63 B3 FE 40 58 1B 4A 24 90 00 [22:11:02]wFMCommunicate OK [22:11:02]SAM_PROTO_SignData done [22:11:02]FM_MakeSignedData done [22:11:02]CreateOFDProtocolMessage [22:11:02]wFMCommunicate request_size=4 [22:11:02]MH_SAM_APDU [22:11:02]CAPDU: 80 11 00 00 [22:11:02]Write to MH i2c: E2 08 00 40 95 80 11 00 00 00 00 00 00 4F [22:11:02]Write i2c OK [22:11:02]MH_I2C_Read... [22:11:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:11:02]Read from MH i2c: E2 [22:11:02]MH_I2C_Read... [22:11:02]Read from MH i2c: E2 17 00 [22:11:02]MH_I2C_Read... [22:11:02]Read from MH i2c: E2 17 00 40 95 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 9D [22:11:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [22:11:02]wFMCommunicate OK [22:11:02]CreateOFDProtocolMessage done [22:11:02]OFDSenderStorePacket 187943 [22:11:02]StoreOFDPacket docnum=187943 [22:11:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 A8 A8 0D 01 08 20 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 97 01 00 00 F4 03 04 00 7B D1 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 27 DE 02 00 35 04 06 00 17 06 C3 C2 DD AC 63 B3 FE 40 58 1B 4A 24 [22:11:02]CheckFolder [22:11:02]dirname=/storage/ofd_packets [22:11:02]CheckFolder done [22:11:02]ProducePacketName [22:11:02]name=ofd_packets/00187943 [22:11:02]NVStorageSaveData ofd_packets/00187943 [22:11:02]File name is /storage/ofd_packets/00187943 [22:11:02]Write 307 bytes [22:11:02]NVStorageSaveData done [22:11:02]OFDSenderStorePacket done [22:11:02]KKMCreateOFDPacket done [22:11:02]NVStorageSaveData kkm_last_timestamp [22:11:02]File name is /storage/kkm_last_timestamp [22:11:02]Write 4 bytes [22:11:02]NVStorageSaveData done [22:11:02]ExternCall_PrintAddStr [22:11:02]wPrintStart [22:11:02]Write to MH i2c: 01 00 00 41 95 D6 [22:11:02]Write i2c OK [22:11:02]MH_I2C_Read... [22:11:02]Read from MH i2c: 01 [22:11:02]MH_I2C_Read... [22:11:02]Read from MH i2c: 01 07 00 [22:11:02]MH_I2C_Read... [22:11:02]Read from MH i2c: 01 07 00 41 95 00 00 00 00 00 FF 0F EB [22:11:02]RasterBufferAndPrint [22:11:02]line Счет N : (1)209995 [22:11:02]line ИНН: 02508201610067 [22:11:02]line Контрольно-Кассовый Чек [22:11:02]line ПРОДАЖА [22:11:02]line ТРК (МРК, ГНК) : 11 [22:11:02]line Товар: 2710194210 [22:11:02]line D-ENERGY ДТ-К-5 [22:11:02]line 12.960 * 77.20 [22:11:02]line = 1000.51 [22:11:02]line НДС 12% НСП 1% [22:11:02]line > о реализуемом товаре [22:11:02]line ОКРУГЛЕНИЕ: -0.51 [22:11:02]line ИТОГО: 1000.00 [22:11:02]line Внесено: 1000.00 [22:11:02]line СДАЧА: 0.00 [22:11:02]line НСП 1% : 8.85 [22:11:02]line НДС 12% : 106.25 [22:11:02]line Наличными: 1000.00 [22:11:02]line Безнал.: 0.00 [22:11:02]line Место: АЗС № 86 "Партнер Нефть" [22:11:02]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [22:11:02]line СНО: Общий режим [22:11:02]line Чек 407 21.10.2024 22:11 [22:11:02]line Смена: 460 ФФД: 1.0 [22:11:02]line ЗНМ: 0300000155 [22:11:02]line РНМ: 0000000000100030 [22:11:02]line Версия ККМ: 001 [22:11:02]line ФМ: 0000000000965340 [22:11:02]line ФД: 187943 [22:11:02]line ФПД: 25317821570476 [22:11:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T221107&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187943&fm=25317821570476&tin=02508201610067®Number=0000000000100030&sum=100000 [22:11:02]written 0, free lines is 4095 [22:11:02]OFD Sender: Processing packet 187943 [packets to send 1062, broken 1061] [22:11:02]ProducePacketName [22:11:02]name=ofd_packets/00187943 [22:11:02]OFD Sender: To server: pG, [22:11:02]CommunicateWithHost lk.salyk.kg:30040 [22:11:02]ConnectInit lk.salyk.kg [22:11:03]Connected sock=10 [22:11:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 A8 A8 0D 01 08 20 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 97 01 00 00 F4 03 04 00 7B D1 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 27 DE 02 00 35 04 06 00 17 06 C3 C2 DD AC 63 B3 FE 40 58 1B 4A 24 [22:11:03]Write to MH i2c: 01 00 00 6C 95 01 [22:11:03]Write i2c OK [22:11:03]MH_I2C_Read... [22:11:03]Read from MH i2c: 01 [22:11:03]MH_I2C_Read... [22:11:03]Read from MH i2c: 01 07 00 [22:11:03]MH_I2C_Read... [22:11:03]Read from MH i2c: 01 07 00 6C 95 00 00 00 00 00 58 0C 6C [22:11:03]RasterBufferAndPrint [22:11:03]line [22:11:03]line [22:11:03]line [22:11:03]line [22:11:03]line [22:11:03]written 0, free lines is 3165 [22:11:03]MH_Cut [22:11:03]Write to MH i2c: D1 01 00 73 95 01 DA [22:11:03]Write i2c OK [22:11:03]MH_I2C_Read... [22:11:03]Read from MH i2c: D1 [22:11:03]MH_I2C_Read... [22:11:03]Read from MH i2c: D1 01 00 [22:11:03]MH_I2C_Read... [22:11:03]Read from MH i2c: D1 01 00 73 95 00 D9 [22:11:03]Write to MH i2c: 01 00 00 74 95 09 [22:11:03]Write i2c OK [22:11:03]MH_I2C_Read... [22:11:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 46 1D 47 00 78 31 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 27 DE 02 00 F4 03 04 00 69 7B 16 67 B6 04 01 00 00 4C 87 5E D7 F4 22 4A 51 [22:11:03]CommunicateWithHost err = 0 [22:11:03]CheckOFDResponse [22:11:03]1017 (14) - 77093643461234 [22:11:03]1041 (16) - 0000000000965340 [22:11:03]1040 (4) - 187943 [22:11:03]1012 (4) - 21.10.2024 16:03 [22:11:03]1206 (1) - 0 [22:11:03]OFD Sender: Remove packet 187943 [22:11:03]ProducePacketName [22:11:03]name=ofd_packets/00187943 [22:11:03]NVStorageDeleteData [22:11:03]OFD Sender: No OFD packet to send [22:11:04]*** Cut start [22:11:04]*** Partial cut [22:11:04]*** CUTSNS_PIN = 1 [22:11:04]*** CUTSNS_PIN = 0 [22:11:04]*** Brake cut motor [22:11:05]Read from MH i2c: 01 [22:11:05]MH_I2C_Read... [22:11:05]*** Stop cut motor [22:11:05]*** Cut end [22:11:05]Read from MH i2c: 01 07 00 [22:11:05]MH_I2C_Read... [22:11:05]Read from MH i2c: 01 07 00 74 95 00 00 00 00 00 FF 0F 1E [22:11:05]process_action close_receipt done [22:11:05]requested_data is exist [22:11:05]produce_requested_data [22:11:05]requested_item fm.sn is exist - process it [22:11:05]wFMCommunicate request_size=4 [22:11:05]MH_SAM_APDU [22:11:05]CAPDU: 80 11 00 00 [22:11:05]Write to MH i2c: E2 08 00 75 95 80 11 00 00 00 00 00 00 84 [22:11:05]Write i2c OK [22:11:05]MH_I2C_Read... [22:11:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:11:05]Read from MH i2c: E2 [22:11:05]MH_I2C_Read... [22:11:05]Read from MH i2c: E2 17 00 [22:11:05]MH_I2C_Read... [22:11:05]Read from MH i2c: E2 17 00 75 95 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 D2 [22:11:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [22:11:05]wFMCommunicate OK [22:11:05]requested_item fd.num is exist - process it [22:11:05]SAM_PROTO_GetFieldsCounters [22:11:05]wFMCommunicate request_size=4 [22:11:05]MH_SAM_APDU [22:11:05]CAPDU: 80 13 00 00 [22:11:05]Write to MH i2c: E2 08 00 76 95 80 13 00 00 00 00 00 00 87 [22:11:05]Write i2c OK [22:11:05]MH_I2C_Read... [22:11:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:11:05]Read from MH i2c: E2 [22:11:05]MH_I2C_Read... [22:11:05]Read from MH i2c: E2 62 00 [22:11:05]MH_I2C_Read... [22:11:05]Read from MH i2c: E2 62 00 76 95 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 27 DE 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 97 01 00 00 5E 04 04 00 97 01 00 00 57 04 04 00 98 01 00 00 19 04 04 00 00 00 00 00 90 00 2A [22:11:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 27 DE 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 97 01 00 00 5E 04 04 00 97 01 00 00 57 04 04 00 98 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:11:05]wFMCommunicate OK [22:11:05]SAM_PROTO_GetFieldsCounters done [22:11:05]requested_item shift.num is exist - process it [22:11:05]requested_item shift.opened is exist - process it [22:11:05]req_shift_opened [22:11:05]FM_GetShiftState [22:11:05]SAM_PROTO_GetShiftState [22:11:05]wFMCommunicate request_size=4 [22:11:05]MH_SAM_APDU [22:11:05]CAPDU: 80 13 01 00 [22:11:05]Write to MH i2c: E2 08 00 77 95 80 13 01 00 00 00 00 00 89 [22:11:05]Write i2c OK [22:11:05]MH_I2C_Read... [22:11:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:11:05]Read from MH i2c: E2 [22:11:05]MH_I2C_Read... [22:11:05]Read from MH i2c: E2 0E 00 [22:11:05]MH_I2C_Read... [22:11:05]Read from MH i2c: E2 0E 00 77 95 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 E8 [22:11:05]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [22:11:05]wFMCommunicate OK [22:11:05]SAM_PROTO_GetShiftState done [22:11:05]FM_GetShiftState done [22:11:05]req_shift_opened done [22:11:05]requested_item shift.open_date is exist - process it [22:11:05]req_shift_open_date [22:11:05]req_shift_open_date done [22:11:05]produce_requested_data done [22:11:05]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187943,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [22:11:05]process_action_free close_receipt [22:11:05]json_value_free [22:11:05]json_value_free done [22:11:05]process_json_proto returns [22:11:05]Send response to host [22:11:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187943,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [22:11:05]free response buf [22:11:05]execute_script done [22:11:05]execute_script returns [22:11:05]free content buf [22:11:05]Sock 8.Close socket [22:11:05]Sock 8.Thread stoped [22:11:08]OFD Sender: No OFD packet to send [22:11:13]OFD Sender: No OFD packet to send [22:11:18]OFD Sender: No OFD packet to send [22:11: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:03]accept exits with 9 [22:13:03]New connection [22:13:03]New thread 3067157860 created [22:13:03]Thread 3067014500 joined [22:13:03]Waiting for new connection... [22:13:03] Sock 9.Parse request [22:13:03]Sock 9.Check first char [22:13:03]Sock 9.First char is OK [22:13:03]request: POST /json_proto HTTP/1.0 [22:13:03]Method: POST [22:13:03]URL: /json_proto [22:13:03]Method is POST - this is cgi request [22:13:03]url: /json_proto [22:13:03]query_string will be loaded in cgi processing [22:13:03]execute_cgi json_proto POST (null) [22:13:03]execute_cgi path=json_proto method=POST [22:13:03]POST find Content-Length [22:13:03]Host: 172.17.42.131:8080 [22:13:03]Content-Length: 677 [22:13:03]Content-Type: application/json [22:13:03] [22:13:03]POST finish read [22:13:03]Found Content-Length = 677 [22:13:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209996", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "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:03]execute_script... [22:13: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)209996", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "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:03]POST & json_proto [22:13:03]process_json_proto [22:13:03]json parsed OK: [22:13:03]protocol is kg_v1.0 [22:13:03]action value=close_receipt [22:13:03]process_action close_receipt [22:13:03]cmd_close_receipt [22:13:03]MH_GetDate [22:13:03]Write to MH i2c: F0 00 00 78 95 FC [22:13:03]Write i2c OK [22:13:03]MH_I2C_Read... [22:13:03]Read from MH i2c: F0 [22:13:03]MH_I2C_Read... [22:13:03]Read from MH i2c: F0 09 00 [22:13:03]MH_I2C_Read... [22:13:03]Read from MH i2c: F0 09 00 78 95 00 F5 D1 16 67 A0 18 CA 66 30 [22:13:03]GetLastDocTimeStamp 1729548667 [22:13:03]current date 1729548789 [22:13:03]FM_GetShiftState [22:13:03]SAM_PROTO_GetShiftState [22:13:03]wFMCommunicate request_size=4 [22:13:03]MH_SAM_APDU [22:13:03]CAPDU: 80 13 01 00 [22:13:03]Write to MH i2c: E2 08 00 79 95 80 13 01 00 00 00 00 00 8B [22:13:03]Write i2c OK [22:13:03]MH_I2C_Read... [22:13:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:13:03]Read from MH i2c: E2 [22:13:03]MH_I2C_Read... [22:13:03]Read from MH i2c: E2 0E 00 [22:13:03]MH_I2C_Read... [22:13:03]Read from MH i2c: E2 0E 00 79 95 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 EA [22:13:03]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [22:13:03]wFMCommunicate OK [22:13:03]SAM_PROTO_GetShiftState done [22:13:03]FM_GetShiftState done [22:13:03]opened in 1729469754 [22:13:03]opened+sec_in_day 1729556154 [22:13:03]quantity*price = 50041 [22:13:03]sum+1 = 50042 [22:13: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 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 408 21.10.2024 22:13 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 187944 ФПД: 99570050648886 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T221309&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187944&fm=99570050648886&tin=02508201610067®Number=0000000000100030&sum=50000 [22:13:04]StoreToDocumentArchive [22:13:04]shift 460 fd 187944 [22:13:04]save to /storage/0460/doc_00187944 [22:13:04]save last doc name /storage/0460/doc_00187944 to /storage/kkm_last_doc_name [22:13:04]save OK [22:13:04]Clear old archive folders... [22:13:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:13:04]tlvbuf is 010F9AB0 [22:13:04]SAM_PROTO_ClearQueue [22:13:04]wFMCommunicate request_size=4 [22:13:04]MH_SAM_APDU [22:13:04]CAPDU: 80 09 00 00 [22:13:04]Write to MH i2c: E2 08 00 86 95 80 09 00 00 00 00 00 00 8D [22:13:04]Write i2c OK [22:13:04]MH_I2C_Read... [22:13:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:13:04]Read from MH i2c: E2 [22:13:04]MH_I2C_Read... [22:13:04]Read from MH i2c: E2 03 00 [22:13:04]MH_I2C_Read... [22:13:04]Read from MH i2c: E2 03 00 86 95 00 90 00 8F [22:13:04]RAPDU: 90 00 [22:13:04]wFMCommunicate OK [22:13:04]SAM_PROTO_ClearQueue done [22:13:04]KKMCreateOFDPacket [22:13:04]OFDProtocolAddRootSTLVToBuf [22:13:04]FM_MakeSignedData [22:13:04]FM_MakeSignedData [22:13:04]SAM_PROTO_SignData [22:13:04]wFMCommunicate request_size=4 [22:13:04]MH_SAM_APDU [22:13:04]CAPDU: 80 0D 01 02 [22:13:04]Write to MH i2c: E2 08 00 87 95 80 0D 01 02 00 00 00 00 95 [22:13:04]Write i2c OK [22:13:04]MH_I2C_Read... [22:13:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:13:04]Read from MH i2c: E2 [22:13:04]MH_I2C_Read... [22:13:04]Read from MH i2c: E2 03 00 [22:13:04]MH_I2C_Read... [22:13:04]Read from MH i2c: E2 03 00 87 95 00 90 00 90 [22:13:04]RAPDU: 90 00 [22:13:04]wFMCommunicate OK [22:13:04]wFMCommunicate request_size=255 [22:13:04]MH_SAM_APDU [22:13: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 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 98 01 00 00 F4 03 04 00 F5 D1 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 28 DE 02 00 35 04 06 00 5A [22:13:04]Write to MH i2c: E2 02 01 88 95 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 98 01 00 00 F4 03 04 00 F5 D1 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 28 DE 02 00 35 04 06 00 5A 00 00 13 [22:13:04]Write i2c OK [22:13:04]MH_I2C_Read... [22:13:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:13:05]Read from MH i2c: E2 [22:13:05]MH_I2C_Read... [22:13:05]Read from MH i2c: E2 03 00 [22:13:05]MH_I2C_Read... [22:13:05]Read from MH i2c: E2 03 00 88 95 00 90 00 91 [22:13:05]RAPDU: 90 00 [22:13:05]wFMCommunicate OK [22:13:05]wFMCommunicate request_size=10 [22:13:05]MH_SAM_APDU [22:13:05]CAPDU: 80 0D 02 02 05 8E F5 7F CB 36 [22:13:05]Write to MH i2c: E2 0D 00 89 95 80 0D 02 02 05 00 8E F5 7F CB 36 00 00 A5 [22:13:05]Write i2c OK [22:13:05]MH_I2C_Read... [22:13:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:13:05]Read from MH i2c: E2 [22:13:05]MH_I2C_Read... [22:13:05]Read from MH i2c: E2 03 00 [22:13:05]MH_I2C_Read... [22:13:05]Read from MH i2c: E2 03 00 89 95 00 90 00 92 [22:13:05]RAPDU: 90 00 [22:13:05]wFMCommunicate OK [22:13:05]wFMCommunicate request_size=4 [22:13:05]MH_SAM_APDU [22:13:05]CAPDU: 80 0D 03 02 [22:13:05]Write to MH i2c: E2 08 00 8A 95 80 0D 03 02 00 00 00 00 9A [22:13:05]Write i2c OK [22:13:05]MH_I2C_Read... [22:13:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:13:05]Read from MH i2c: E2 [22:13:05]MH_I2C_Read... [22:13:05]Read from MH i2c: E2 0B 00 [22:13:05]MH_I2C_Read... [22:13:05]Read from MH i2c: E2 0B 00 8A 95 00 2D 64 85 D8 47 B1 E5 EF 90 00 55 [22:13:05]RAPDU: 2D 64 85 D8 47 B1 E5 EF 90 00 [22:13:05]wFMCommunicate OK [22:13:05]SAM_PROTO_SignData done [22:13:05]FM_MakeSignedData done [22:13:05]CreateOFDProtocolMessage [22:13:05]wFMCommunicate request_size=4 [22:13:05]MH_SAM_APDU [22:13:05]CAPDU: 80 11 00 00 [22:13:05]Write to MH i2c: E2 08 00 8B 95 80 11 00 00 00 00 00 00 9A [22:13:05]Write i2c OK [22:13:05]MH_I2C_Read... [22:13:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:13:05]Read from MH i2c: E2 [22:13:05]MH_I2C_Read... [22:13:05]Read from MH i2c: E2 17 00 [22:13:05]MH_I2C_Read... [22:13:05]Read from MH i2c: E2 17 00 8B 95 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 E8 [22:13:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [22:13:05]wFMCommunicate OK [22:13:05]CreateOFDProtocolMessage done [22:13:05]OFDSenderStorePacket 187944 [22:13:05]StoreOFDPacket docnum=187944 [22:13:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 5A 01 07 01 31 EE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 98 01 00 00 F4 03 04 00 F5 D1 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 28 DE 02 00 35 04 06 00 5A 8E F5 7F CB 36 2D 64 85 D8 47 B1 E5 EF [22:13:05]CheckFolder [22:13:05]dirname=/storage/ofd_packets [22:13:05]CheckFolder done [22:13:05]ProducePacketName [22:13:05]name=ofd_packets/00187944 [22:13:05]NVStorageSaveData ofd_packets/00187944 [22:13:05]File name is /storage/ofd_packets/00187944 [22:13:05]Write 301 bytes [22:13:05]NVStorageSaveData done [22:13:05]OFDSenderStorePacket done [22:13:05]KKMCreateOFDPacket done [22:13:05]NVStorageSaveData kkm_last_timestamp [22:13:05]File name is /storage/kkm_last_timestamp [22:13:05]Write 4 bytes [22:13:05]NVStorageSaveData done [22:13:05]ExternCall_PrintAddStr [22:13:05]wPrintStart [22:13:05]Write to MH i2c: 01 00 00 8C 95 21 [22:13:05]Write i2c OK [22:13:05]MH_I2C_Read... [22:13:05]Read from MH i2c: 01 [22:13:05]MH_I2C_Read... [22:13:05]Read from MH i2c: 01 07 00 [22:13:05]MH_I2C_Read... [22:13:05]Read from MH i2c: 01 07 00 8C 95 00 00 00 00 00 FF 0F 36 [22:13:05]RasterBufferAndPrint [22:13:05]line Счет N : (1)209996 [22:13:05]line ИНН: 02508201610067 [22:13:05]line Контрольно-Кассовый Чек [22:13:05]line ПРОДАЖА [22:13:05]line ТРК (МРК, ГНК) : 12 [22:13:05]line Товар: 2710124130 [22:13:05]line Аи-92-К-3 [22:13:05]line 7.480 * 66.90 [22:13:05]line = 500.41 [22:13:05]line НДС 12% НСП 1% [22:13:05]line > о реализуемом товаре [22:13:05]line ОКРУГЛЕНИЕ: -0.41 [22:13:05]line ИТОГО: 500.00 [22:13:05]line Внесено: 500.00 [22:13:05]line СДАЧА: 0.00 [22:13:05]line НСП 1% : 4.43 [22:13:05]line НДС 12% : 53.14 [22:13:05]line Наличными: 500.00 [22:13:05]line Безнал.: 0.00 [22:13:05]line Место: АЗС № 86 "Партнер Нефть" [22:13:05]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [22:13:05]line СНО: Общий режим [22:13:05]line Чек 408 21.10.2024 22:13 [22:13:05]line Смена: 460 ФФД: 1.0 [22:13:05]line ЗНМ: 0300000155 [22:13:05]line РНМ: 0000000000100030 [22:13:05]line Версия ККМ: 001 [22:13:05]line ФМ: 0000000000965340 [22:13:05]line ФД: 187944 [22:13:05]line ФПД: 99570050648886 [22:13:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T221309&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187944&fm=99570050648886&tin=02508201610067®Number=0000000000100030&sum=50000 [22:13:05]written 0, free lines is 4095 [22:13:05]OFD Sender: Processing packet 187944 [packets to send 1062, broken 1061] [22:13:05]ProducePacketName [22:13:05]name=ofd_packets/00187944 [22:13:05]OFD Sender: To server: pG, [22:13:05]CommunicateWithHost lk.salyk.kg:30040 [22:13:05]ConnectInit lk.salyk.kg [22:13:05]Connected sock=10 [22:13:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 5A 01 07 01 31 EE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 98 01 00 00 F4 03 04 00 F5 D1 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 28 DE 02 00 35 04 06 00 5A 8E F5 7F CB 36 2D 64 85 D8 47 B1 E5 EF [22:13:05]Write to MH i2c: 01 00 00 B7 95 4C [22:13:05]Write i2c OK [22:13:05]MH_I2C_Read... [22:13:05]Read from MH i2c: 01 [22:13:05]MH_I2C_Read... [22:13:05]Read from MH i2c: 01 07 00 [22:13:05]MH_I2C_Read... [22:13:05]Read from MH i2c: 01 07 00 B7 95 00 00 00 00 00 5A 0C B9 [22:13:05]RasterBufferAndPrint [22:13:05]line [22:13:05]line [22:13:05]line [22:13:05]line [22:13:05]line [22:13:05]written 0, free lines is 3167 [22:13:05]MH_Cut [22:13:05]Write to MH i2c: D1 01 00 BE 95 01 25 [22:13:05]Write i2c OK [22:13:05]MH_I2C_Read... [22:13:05]Read from MH i2c: D1 [22:13:05]MH_I2C_Read... [22:13:05]Read from MH i2c: D1 01 00 [22:13:05]MH_I2C_Read... [22:13:05]Read from MH i2c: D1 01 00 BE 95 00 24 [22:13:05]Write to MH i2c: 01 00 00 BF 95 54 [22:13:05]Write i2c OK [22:13:05]MH_I2C_Read... [22:13:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 4D 70 47 00 52 AC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 28 DE 02 00 F4 03 04 00 E4 7B 16 67 B6 04 01 00 00 A0 B0 B6 78 34 E2 B8 74 [22:13:06]CommunicateWithHost err = 0 [22:13:06]CheckOFDResponse [22:13:06]1017 (14) - 77093643461234 [22:13:06]1041 (16) - 0000000000965340 [22:13:06]1040 (4) - 187944 [22:13:06]1012 (4) - 21.10.2024 16:05 [22:13:06]1206 (1) - 0 [22:13:06]OFD Sender: Remove packet 187944 [22:13:06]ProducePacketName [22:13:06]name=ofd_packets/00187944 [22:13:06]NVStorageDeleteData [22:13:06]OFD Sender: No OFD packet to send [22:13:07]*** Cut start [22:13:07]*** Partial cut [22:13:07]*** CUTSNS_PIN = 1 [22:13:07]*** CUTSNS_PIN = 0 [22:13:07]*** Brake cut motor [22:13:07]Read from MH i2c: 01 [22:13:07]MH_I2C_Read... [22:13:07]*** Stop cut motor [22:13:07]*** Cut end [22:13:07]Read from MH i2c: 01 07 00 [22:13:07]MH_I2C_Read... [22:13:07]Read from MH i2c: 01 07 00 BF 95 00 00 00 00 00 FF 0F 69 [22:13:07]process_action close_receipt done [22:13:07]requested_data is exist [22:13:07]produce_requested_data [22:13:07]requested_item fm.sn is exist - process it [22:13:07]wFMCommunicate request_size=4 [22:13:07]MH_SAM_APDU [22:13:07]CAPDU: 80 11 00 00 [22:13:07]Write to MH i2c: E2 08 00 C0 95 80 11 00 00 00 00 00 00 CF [22:13:07]Write i2c OK [22:13:07]MH_I2C_Read... [22:13:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:13:07]Read from MH i2c: E2 [22:13:07]MH_I2C_Read... [22:13:07]Read from MH i2c: E2 17 00 [22:13:07]MH_I2C_Read... [22:13:07]Read from MH i2c: E2 17 00 C0 95 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 1D [22:13:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [22:13:07]wFMCommunicate OK [22:13:07]requested_item fd.num is exist - process it [22:13:07]SAM_PROTO_GetFieldsCounters [22:13:07]wFMCommunicate request_size=4 [22:13:07]MH_SAM_APDU [22:13:07]CAPDU: 80 13 00 00 [22:13:07]Write to MH i2c: E2 08 00 C1 95 80 13 00 00 00 00 00 00 D2 [22:13:07]Write i2c OK [22:13:07]MH_I2C_Read... [22:13:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:13:07]Read from MH i2c: E2 [22:13:07]MH_I2C_Read... [22:13:07]Read from MH i2c: E2 62 00 [22:13:07]MH_I2C_Read... [22:13:07]Read from MH i2c: E2 62 00 C1 95 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 28 DE 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 98 01 00 00 5E 04 04 00 98 01 00 00 57 04 04 00 99 01 00 00 19 04 04 00 00 00 00 00 90 00 79 [22:13:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 28 DE 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 98 01 00 00 5E 04 04 00 98 01 00 00 57 04 04 00 99 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:13:07]wFMCommunicate OK [22:13:07]SAM_PROTO_GetFieldsCounters done [22:13:07]requested_item shift.num is exist - process it [22:13:07]requested_item shift.opened is exist - process it [22:13:07]req_shift_opened [22:13:07]FM_GetShiftState [22:13:07]SAM_PROTO_GetShiftState [22:13:07]wFMCommunicate request_size=4 [22:13:07]MH_SAM_APDU [22:13:07]CAPDU: 80 13 01 00 [22:13:07]Write to MH i2c: E2 08 00 C2 95 80 13 01 00 00 00 00 00 D4 [22:13:07]Write i2c OK [22:13:07]MH_I2C_Read... [22:13:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:13:07]Read from MH i2c: E2 [22:13:07]MH_I2C_Read... [22:13:07]Read from MH i2c: E2 0E 00 [22:13:07]MH_I2C_Read... [22:13:07]Read from MH i2c: E2 0E 00 C2 95 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 33 [22:13:07]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [22:13:07]wFMCommunicate OK [22:13:07]SAM_PROTO_GetShiftState done [22:13:07]FM_GetShiftState done [22:13:07]req_shift_opened done [22:13:07]requested_item shift.open_date is exist - process it [22:13:07]req_shift_open_date [22:13:07]req_shift_open_date done [22:13:07]produce_requested_data done [22:13:07]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187944,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [22:13:07]process_action_free close_receipt [22:13:07]json_value_free [22:13:07]json_value_free done [22:13:07]process_json_proto returns [22:13:07]Send response to host [22:13:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187944,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [22:13:07]free response buf [22:13:07]execute_script done [22:13:07]execute_script returns [22:13:07]free content buf [22:13:07]Sock 9.Close socket [22:13:07]Sock 9.Thread stoped [22:13:11]OFD Sender: No OFD packet to send [22:13:16]OFD Sender: No OFD packet to send [22:13:21]OFD Sender: No OFD packet to send [22:13:26]OFD Sender: No OFD packet to send [22:13:31]OFD Sender: No OFD packet to send [22:13:36]OFD Sender: No OFD packet to send [22:13:41]OFD Sender: No OFD packet to send [22:13:46]OFD Sender: No OFD packet to send [22:13:51]accept exits with 8 [22:13:51]New connection [22:13:51]New thread 3067014500 created [22:13:51]Thread 3067157860 joined [22:13:51]Waiting for new connection... [22:13:51] Sock 8.Parse request [22:13:51]Sock 8.Check first char [22:13:51]Sock 8.First char is OK [22:13:51]request: POST /json_proto HTTP/1.0 [22:13:51]Method: POST [22:13:51]URL: /json_proto [22:13:51]Method is POST - this is cgi request [22:13:51]url: /json_proto [22:13:51]query_string will be loaded in cgi processing [22:13:51]execute_cgi json_proto POST (null) [22:13:51]execute_cgi path=json_proto method=POST [22:13:51]POST find Content-Length [22:13:51]Host: 172.17.42.131:8080 [22:13:51]Content-Length: 682 [22:13:51]Content-Type: application/json [22:13:51] [22:13:51]POST finish read [22:13:51]Found Content-Length = 682 [22:13:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209997", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:13:51]execute_script... [22:13: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)209997", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:13:51]POST & json_proto [22:13:51]process_json_proto [22:13:51]json parsed OK: [22:13:51]protocol is kg_v1.0 [22:13:51]action value=close_receipt [22:13:51]process_action close_receipt [22:13:51]cmd_close_receipt [22:13:51]MH_GetDate [22:13:51]Write to MH i2c: F0 00 00 C3 95 47 [22:13:51]Write i2c OK [22:13:51]MH_I2C_Read... [22:13:51]Read from MH i2c: F0 [22:13:51]MH_I2C_Read... [22:13:51]Read from MH i2c: F0 09 00 [22:13:51]MH_I2C_Read... [22:13:51]Read from MH i2c: F0 09 00 C3 95 00 25 D2 16 67 A0 18 CA 66 AC [22:13:51]GetLastDocTimeStamp 1729548789 [22:13:51]current date 1729548837 [22:13:51]FM_GetShiftState [22:13:51]SAM_PROTO_GetShiftState [22:13:51]wFMCommunicate request_size=4 [22:13:51]MH_SAM_APDU [22:13:51]CAPDU: 80 13 01 00 [22:13:51]Write to MH i2c: E2 08 00 C4 95 80 13 01 00 00 00 00 00 D6 [22:13:51]Write i2c OK [22:13:51]MH_I2C_Read... [22:13:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:13:51]Read from MH i2c: E2 [22:13:51]MH_I2C_Read... [22:13:51]Read from MH i2c: E2 0E 00 [22:13:51]MH_I2C_Read... [22:13:51]Read from MH i2c: E2 0E 00 C4 95 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 35 [22:13:51]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [22:13:51]wFMCommunicate OK [22:13:51]SAM_PROTO_GetShiftState done [22:13:51]FM_GetShiftState done [22:13:51]opened in 1729469754 [22:13:51]opened+sec_in_day 1729556154 [22:13:51]quantity*price = 100021 [22:13:51]sum+1 = 100023 [22:13:51]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 409 21.10.2024 22:13 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 187945 ФПД: 205367895696499 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T221357&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187945&fm=205367895696499&tin=02508201610067®Number=0000000000100030&sum=100000 [22:13:52]StoreToDocumentArchive [22:13:52]shift 460 fd 187945 [22:13:52]save to /storage/0460/doc_00187945 [22:13:52]save last doc name /storage/0460/doc_00187945 to /storage/kkm_last_doc_name [22:13:52]save OK [22:13:52]Clear old archive folders... [22:13:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:13:52]tlvbuf is 01115CB0 [22:13:52]SAM_PROTO_ClearQueue [22:13:52]wFMCommunicate request_size=4 [22:13:52]MH_SAM_APDU [22:13:52]CAPDU: 80 09 00 00 [22:13:52]Write to MH i2c: E2 08 00 D1 95 80 09 00 00 00 00 00 00 D8 [22:13:52]Write i2c OK [22:13:52]MH_I2C_Read... [22:13:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:13:52]Read from MH i2c: E2 [22:13:52]MH_I2C_Read... [22:13:52]Read from MH i2c: E2 03 00 [22:13:52]MH_I2C_Read... [22:13:52]Read from MH i2c: E2 03 00 D1 95 00 90 00 DA [22:13:52]RAPDU: 90 00 [22:13:52]wFMCommunicate OK [22:13:52]SAM_PROTO_ClearQueue done [22:13:52]KKMCreateOFDPacket [22:13:52]OFDProtocolAddRootSTLVToBuf [22:13:52]FM_MakeSignedData [22:13:52]FM_MakeSignedData [22:13:52]SAM_PROTO_SignData [22:13:52]wFMCommunicate request_size=4 [22:13:52]MH_SAM_APDU [22:13:52]CAPDU: 80 0D 01 02 [22:13:52]Write to MH i2c: E2 08 00 D2 95 80 0D 01 02 00 00 00 00 E0 [22:13:52]Write i2c OK [22:13:52]MH_I2C_Read... [22:13:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:13:52]Read from MH i2c: E2 [22:13:52]MH_I2C_Read... [22:13:52]Read from MH i2c: E2 03 00 [22:13:52]MH_I2C_Read... [22:13:52]Read from MH i2c: E2 03 00 D2 95 00 90 00 DB [22:13:52]RAPDU: 90 00 [22:13:52]wFMCommunicate OK [22:13:52]wFMCommunicate request_size=255 [22:13:52]MH_SAM_APDU [22:13:52]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 99 01 00 00 F4 03 04 00 25 D2 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 29 DE 02 00 35 04 06 00 BA [22:13:52]Write to MH i2c: E2 02 01 D3 95 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 99 01 00 00 F4 03 04 00 25 D2 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 29 DE 02 00 35 04 06 00 BA 00 00 0E [22:13:52]Write i2c OK [22:13:52]MH_I2C_Read... [22:13:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:13:52]Read from MH i2c: E2 [22:13:52]MH_I2C_Read... [22:13:52]Read from MH i2c: E2 03 00 [22:13:52]MH_I2C_Read... [22:13:52]Read from MH i2c: E2 03 00 D3 95 00 90 00 DC [22:13:52]RAPDU: 90 00 [22:13:52]wFMCommunicate OK [22:13:52]wFMCommunicate request_size=10 [22:13:52]MH_SAM_APDU [22:13:52]CAPDU: 80 0D 02 02 05 C7 F0 78 A4 73 [22:13:52]Write to MH i2c: E2 0D 00 D4 95 80 0D 02 02 05 00 C7 F0 78 A4 73 00 00 33 [22:13:52]Write i2c OK [22:13:52]MH_I2C_Read... [22:13:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:13:52]Read from MH i2c: E2 [22:13:52]MH_I2C_Read... [22:13:52]Read from MH i2c: E2 03 00 [22:13:52]MH_I2C_Read... [22:13:52]Read from MH i2c: E2 03 00 D4 95 00 90 00 DD [22:13:52]RAPDU: 90 00 [22:13:52]wFMCommunicate OK [22:13:52]wFMCommunicate request_size=4 [22:13:52]MH_SAM_APDU [22:13:52]CAPDU: 80 0D 03 02 [22:13:52]Write to MH i2c: E2 08 00 D5 95 80 0D 03 02 00 00 00 00 E5 [22:13:52]Write i2c OK [22:13:52]MH_I2C_Read... [22:13:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:13:52]Read from MH i2c: E2 [22:13:52]MH_I2C_Read... [22:13:52]Read from MH i2c: E2 0B 00 [22:13:52]MH_I2C_Read... [22:13:52]Read from MH i2c: E2 0B 00 D5 95 00 05 68 D0 BD 08 1D C2 B8 90 00 7F [22:13:52]RAPDU: 05 68 D0 BD 08 1D C2 B8 90 00 [22:13:52]wFMCommunicate OK [22:13:52]SAM_PROTO_SignData done [22:13:52]FM_MakeSignedData done [22:13:52]CreateOFDProtocolMessage [22:13:52]wFMCommunicate request_size=4 [22:13:52]MH_SAM_APDU [22:13:52]CAPDU: 80 11 00 00 [22:13:52]Write to MH i2c: E2 08 00 D6 95 80 11 00 00 00 00 00 00 E5 [22:13:52]Write i2c OK [22:13:52]MH_I2C_Read... [22:13:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:13:52]Read from MH i2c: E2 [22:13:52]MH_I2C_Read... [22:13:52]Read from MH i2c: E2 17 00 [22:13:52]MH_I2C_Read... [22:13:52]Read from MH i2c: E2 17 00 D6 95 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 33 [22:13:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [22:13:52]wFMCommunicate OK [22:13:52]CreateOFDProtocolMessage done [22:13:52]OFDSenderStorePacket 187945 [22:13:52]StoreOFDPacket docnum=187945 [22:13:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 84 6B 07 01 C9 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 99 01 00 00 F4 03 04 00 25 D2 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 29 DE 02 00 35 04 06 00 BA C7 F0 78 A4 73 05 68 D0 BD 08 1D C2 B8 [22:13:52]CheckFolder [22:13:52]dirname=/storage/ofd_packets [22:13:52]CheckFolder done [22:13:52]ProducePacketName [22:13:52]name=ofd_packets/00187945 [22:13:52]NVStorageSaveData ofd_packets/00187945 [22:13:52]File name is /storage/ofd_packets/00187945 [22:13:52]Write 301 bytes [22:13:52]NVStorageSaveData done [22:13:52]OFDSenderStorePacket done [22:13:52]KKMCreateOFDPacket done [22:13:52]NVStorageSaveData kkm_last_timestamp [22:13:52]File name is /storage/kkm_last_timestamp [22:13:52]Write 4 bytes [22:13:52]NVStorageSaveData done [22:13:52]ExternCall_PrintAddStr [22:13:52]wPrintStart [22:13:52]Write to MH i2c: 01 00 00 D7 95 6C [22:13:52]Write i2c OK [22:13:52]MH_I2C_Read... [22:13:52]OFD Sender: Processing packet 187945 [packets to send 1062, broken 1061] [22:13:52]ProducePacketName [22:13:52]name=ofd_packets/00187945 [22:13:52]OFD Sender: To server: pG, [22:13:52]CommunicateWithHost lk.salyk.kg:30040 [22:13:52]ConnectInit lk.salyk.kg [22:13:52]Read from MH i2c: 01 [22:13:52]MH_I2C_Read... [22:13:52]Read from MH i2c: 01 07 00 [22:13:52]MH_I2C_Read... [22:13:52]Read from MH i2c: 01 07 00 D7 95 00 00 00 00 00 FF 0F 81 [22:13:52]RasterBufferAndPrint [22:13:52]line Счет N : (1)209997 [22:13:52]line ИНН: 02508201610067 [22:13:52]line Контрольно-Кассовый Чек [22:13:52]line ПРОДАЖА [22:13:52]line ТРК (МРК, ГНК) : 33 [22:13:52]line Товар: 2710124500 [22:13:52]line Аи-95-К-3 [22:13:52]line 13.480 * 74.20 [22:13:52]line = 1000.22 [22:13:52]line НДС 12% НСП 1% [22:13:52]line > о реализуемом товаре [22:13:52]line ОКРУГЛЕНИЕ: -0.22 [22:13:52]line ИТОГО: 1000.00 [22:13:52]line Внесено: 1000.00 [22:13:52]line СДАЧА: 0.00 [22:13:52]line НСП 1% : 8.85 [22:13:52]line НДС 12% : 106.22 [22:13:52]line Наличными: 1000.00 [22:13:52]line Безнал.: 0.00 [22:13:52]line Место: АЗС № 86 "Партнер Нефть" [22:13:52]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [22:13:52]line СНО: Общий режим [22:13:52]line Чек 409 21.10.2024 22:13 [22:13:52]line Смена: 460 ФФД: 1.0 [22:13:52]line ЗНМ: 0300000155 [22:13:52]line РНМ: 0000000000100030 [22:13:52]line Версия ККМ: 001 [22:13:52]line ФМ: 0000000000965340 [22:13:52]line ФД: 187945 [22:13:52]line ФПД: 205367895696499 [22:13:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T221357&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187945&fm=205367895696499&tin=02508201610067®Number=0000000000100030&sum=100000 [22:13:52]written 0, free lines is 4095 [22:13:53]Connected sock=10 [22:13:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 84 6B 07 01 C9 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 99 01 00 00 F4 03 04 00 25 D2 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 29 DE 02 00 35 04 06 00 BA C7 F0 78 A4 73 05 68 D0 BD 08 1D C2 B8 [22:13:53]Write to MH i2c: 01 00 00 02 96 98 [22:13:53]Write i2c OK [22:13:53]MH_I2C_Read... [22:13:53]Read from MH i2c: 01 [22:13:53]MH_I2C_Read... [22:13:53]Read from MH i2c: 01 07 00 [22:13:53]MH_I2C_Read... [22:13:53]Read from MH i2c: 01 07 00 02 96 00 00 00 00 00 65 0C 10 [22:13:53]RasterBufferAndPrint [22:13:53]line [22:13:53]line [22:13:53]line [22:13:53]line [22:13:53]line [22:13:53]written 0, free lines is 3177 [22:13:53]MH_Cut [22:13:53]Write to MH i2c: D1 01 00 09 96 01 71 [22:13:53]Write i2c OK [22:13:53]MH_I2C_Read... [22:13:53]Read from MH i2c: D1 [22:13:53]MH_I2C_Read... [22:13:53]Read from MH i2c: D1 01 00 [22:13:53]MH_I2C_Read... [22:13:53]Read from MH i2c: D1 01 00 09 96 00 70 [22:13:53]Write to MH i2c: 01 00 00 0A 96 A0 [22:13:53]Write i2c OK [22:13:53]MH_I2C_Read... [22:13:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 E2 54 47 00 A6 9B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 29 DE 02 00 F4 03 04 00 14 7C 16 67 B6 04 01 00 00 75 28 D4 D3 A6 A0 70 DE [22:13:53]CommunicateWithHost err = 0 [22:13:53]CheckOFDResponse [22:13:53]1017 (14) - 77093643461234 [22:13:53]1041 (16) - 0000000000965340 [22:13:53]1040 (4) - 187945 [22:13:53]1012 (4) - 21.10.2024 16:06 [22:13:53]1206 (1) - 0 [22:13:53]OFD Sender: Remove packet 187945 [22:13:53]ProducePacketName [22:13:53]name=ofd_packets/00187945 [22:13:53]NVStorageDeleteData [22:13:54]OFD Sender: No OFD packet to send [22:13:54]*** Cut start [22:13:54]*** Partial cut [22:13:54]*** CUTSNS_PIN = 1 [22:13:54]*** CUTSNS_PIN = 0 [22:13:54]*** Brake cut motor [22:13:55]Read from MH i2c: 01 [22:13:55]MH_I2C_Read... [22:13:55]*** Stop cut motor [22:13:55]*** Cut end [22:13:55]Read from MH i2c: 01 07 00 [22:13:55]MH_I2C_Read... [22:13:55]Read from MH i2c: 01 07 00 0A 96 00 00 00 00 00 FF 0F B5 [22:13:55]process_action close_receipt done [22:13:55]requested_data is exist [22:13:55]produce_requested_data [22:13:55]requested_item fm.sn is exist - process it [22:13:55]wFMCommunicate request_size=4 [22:13:55]MH_SAM_APDU [22:13:55]CAPDU: 80 11 00 00 [22:13:55]Write to MH i2c: E2 08 00 0B 96 80 11 00 00 00 00 00 00 1B [22:13:55]Write i2c OK [22:13:55]MH_I2C_Read... [22:13:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:13:55]Read from MH i2c: E2 [22:13:55]MH_I2C_Read... [22:13:55]Read from MH i2c: E2 17 00 [22:13:55]MH_I2C_Read... [22:13:55]Read from MH i2c: E2 17 00 0B 96 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 69 [22:13:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [22:13:55]wFMCommunicate OK [22:13:55]requested_item fd.num is exist - process it [22:13:55]SAM_PROTO_GetFieldsCounters [22:13:55]wFMCommunicate request_size=4 [22:13:55]MH_SAM_APDU [22:13:55]CAPDU: 80 13 00 00 [22:13:55]Write to MH i2c: E2 08 00 0C 96 80 13 00 00 00 00 00 00 1E [22:13:55]Write i2c OK [22:13:55]MH_I2C_Read... [22:13:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:13:55]Read from MH i2c: E2 [22:13:55]MH_I2C_Read... [22:13:55]Read from MH i2c: E2 62 00 [22:13:55]MH_I2C_Read... [22:13:55]Read from MH i2c: E2 62 00 0C 96 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 29 DE 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 99 01 00 00 5E 04 04 00 99 01 00 00 57 04 04 00 9A 01 00 00 19 04 04 00 00 00 00 00 90 00 C9 [22:13:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 29 DE 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 99 01 00 00 5E 04 04 00 99 01 00 00 57 04 04 00 9A 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:13:55]wFMCommunicate OK [22:13:55]SAM_PROTO_GetFieldsCounters done [22:13:55]requested_item shift.num is exist - process it [22:13:55]requested_item shift.opened is exist - process it [22:13:55]req_shift_opened [22:13:55]FM_GetShiftState [22:13:55]SAM_PROTO_GetShiftState [22:13:55]wFMCommunicate request_size=4 [22:13:55]MH_SAM_APDU [22:13:55]CAPDU: 80 13 01 00 [22:13:55]Write to MH i2c: E2 08 00 0D 96 80 13 01 00 00 00 00 00 20 [22:13:55]Write i2c OK [22:13:55]MH_I2C_Read... [22:13:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:13:55]Read from MH i2c: E2 [22:13:55]MH_I2C_Read... [22:13:55]Read from MH i2c: E2 0E 00 [22:13:55]MH_I2C_Read... [22:13:55]Read from MH i2c: E2 0E 00 0D 96 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 7F [22:13:55]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [22:13:55]wFMCommunicate OK [22:13:55]SAM_PROTO_GetShiftState done [22:13:55]FM_GetShiftState done [22:13:55]req_shift_opened done [22:13:55]requested_item shift.open_date is exist - process it [22:13:55]req_shift_open_date [22:13:55]req_shift_open_date done [22:13:55]produce_requested_data done [22:13:55]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187945,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [22:13:55]process_action_free close_receipt [22:13:55]json_value_free [22:13:55]json_value_free done [22:13:55]process_json_proto returns [22:13:55]Send response to host [22:13:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187945,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [22:13:55]free response buf [22:13:55]execute_script done [22:13:55]execute_script returns [22:13:55]free content buf [22:13:55]Sock 8.Close socket [22:13:55]Sock 8.Thread stoped [22:13:59]OFD Sender: No OFD packet to send [22:14:04]OFD Sender: No OFD packet to send [22:14:09]OFD Sender: No OFD packet to send [22:14:14]OFD Sender: No OFD packet to send [22:14:19]OFD Sender: No OFD packet to send [22:14:24]OFD Sender: No OFD packet to send [22:14:29]OFD Sender: No OFD packet to send [22:14:34]OFD Sender: No OFD packet to send [22:14:39]OFD Sender: No OFD packet to send [22:14:44]OFD Sender: No OFD packet to send [22:14:49]OFD Sender: No OFD packet to send [22:14:54]OFD Sender: No OFD packet to send [22:14:59]OFD Sender: No OFD packet to send [22:15:04]OFD Sender: No OFD packet to send [22:15:09]OFD Sender: No OFD packet to send [22:15:14]OFD Sender: No OFD packet to send [22:15:19]OFD Sender: No OFD packet to send [22:15:24]OFD Sender: No OFD packet to send [22:15:29]OFD Sender: No OFD packet to send [22:15:34]OFD Sender: No OFD packet to send [22:15:39]OFD Sender: No OFD packet to send [22:15:44]OFD Sender: No OFD packet to send [22:15:49]OFD Sender: No OFD packet to send [22:15:54]OFD Sender: No OFD packet to send [22:15:59]OFD Sender: No OFD packet to send [22:16:04]OFD Sender: No OFD packet to send [22:16:09]OFD Sender: No OFD packet to send [22:16:14]OFD Sender: No OFD packet to send [22:16:19]OFD Sender: No OFD packet to send [22:16:24]OFD Sender: No OFD packet to send [22:16:29]OFD Sender: No OFD packet to send [22:16:34]OFD Sender: No OFD packet to send [22:16:39]OFD Sender: No OFD packet to send [22:16:44]OFD Sender: No OFD packet to send [22:16:49]OFD Sender: No OFD packet to send [22:16:54]OFD Sender: No OFD packet to send [22:16:59]OFD Sender: No OFD packet to send [22:17:04]OFD Sender: No OFD packet to send [22:17:09]OFD Sender: No OFD packet to send [22:17:14]accept exits with 9 [22:17:14]New connection [22:17:14]New thread 3067157860 created [22:17:14]Thread 3067014500 joined [22:17:14]Waiting for new connection... [22:17:14] Sock 9.Parse request [22:17:14]Sock 9.Check first char [22:17:14]Sock 9.First char is OK [22:17:14]request: POST /json_proto HTTP/1.0 [22:17:14]Method: POST [22:17:14]URL: /json_proto [22:17:14]Method is POST - this is cgi request [22:17:14]url: /json_proto [22:17:14]query_string will be loaded in cgi processing [22:17:14]execute_cgi json_proto POST (null) [22:17:14]execute_cgi path=json_proto method=POST [22:17:14]POST find Content-Length [22:17:14]Host: 172.17.42.131:8080 [22:17:14]Content-Length: 775 [22:17:14]Content-Type: application/json [22:17:14] [22:17:14]POST finish read [22:17:14]Found Content-Length = 775 [22:17:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209998", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 12.960, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.51 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:17:14]execute_script... [22:17:14]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209998", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 12.960, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.51 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:17:14]POST & json_proto [22:17:14]process_json_proto [22:17:14]json parsed OK: [22:17:14]protocol is kg_v1.0 [22:17:14]action value=close_receipt [22:17:14]process_action close_receipt [22:17:14]cmd_close_receipt [22:17:14]MH_GetDate [22:17:14]Write to MH i2c: F0 00 00 0E 96 93 [22:17:14]Write i2c OK [22:17:14]MH_I2C_Read... [22:17:14]Read from MH i2c: F0 [22:17:14]MH_I2C_Read... [22:17:14]Read from MH i2c: F0 09 00 [22:17:14]MH_I2C_Read... [22:17:14]Read from MH i2c: F0 09 00 0E 96 00 F0 D2 16 67 A0 18 CA 66 C3 [22:17:14]GetLastDocTimeStamp 1729548837 [22:17:14]current date 1729549040 [22:17:14]FM_GetShiftState [22:17:14]SAM_PROTO_GetShiftState [22:17:14]wFMCommunicate request_size=4 [22:17:14]MH_SAM_APDU [22:17:14]CAPDU: 80 13 01 00 [22:17:14]Write to MH i2c: E2 08 00 0F 96 80 13 01 00 00 00 00 00 22 [22:17:14]Write i2c OK [22:17:14]MH_I2C_Read... [22:17:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:17:14]Read from MH i2c: E2 [22:17:14]MH_I2C_Read... [22:17:14]Read from MH i2c: E2 0E 00 [22:17:14]MH_I2C_Read... [22:17:14]Read from MH i2c: E2 0E 00 0F 96 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 81 [22:17:14]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [22:17:14]wFMCommunicate OK [22:17:14]SAM_PROTO_GetShiftState done [22:17:14]FM_GetShiftState done [22:17:14]opened in 1729469754 [22:17:14]opened+sec_in_day 1729556154 [22:17:14]quantity*price = 100051 [22:17:14]sum+1 = 100052 [22:17:14]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.51 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 0.00 Безнал.: 1000.51 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 410 21.10.2024 22:17 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000965340 ФД: 187946 ФПД: 251402711209815 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T221720&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187946&fm=251402711209815&tin=02508201610067®Number=0000000000100030&sum=100051 [22:17:15]StoreToDocumentArchive [22:17:15]shift 460 fd 187946 [22:17:15]save to /storage/0460/doc_00187946 [22:17:15]save last doc name /storage/0460/doc_00187946 to /storage/kkm_last_doc_name [22:17:15]save OK [22:17:15]Clear old archive folders... [22:17:15]ProcessDocumentItem done err = 0, tmpTLVsize=257 [22:17:15]tlvbuf is 0122E530 [22:17:15]SAM_PROTO_ClearQueue [22:17:15]wFMCommunicate request_size=4 [22:17:15]MH_SAM_APDU [22:17:15]CAPDU: 80 09 00 00 [22:17:15]Write to MH i2c: E2 08 00 1C 96 80 09 00 00 00 00 00 00 24 [22:17:15]Write i2c OK [22:17:15]MH_I2C_Read... [22:17:15]Read from MH i2c: E2 [22:17:15]MH_I2C_Read... [22:17:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:17:15]Read from MH i2c: E2 03 00 [22:17:15]MH_I2C_Read... [22:17:15]Read from MH i2c: E2 03 00 1C 96 00 90 00 26 [22:17:15]RAPDU: 90 00 [22:17:15]wFMCommunicate OK [22:17:15]SAM_PROTO_ClearQueue done [22:17:15]KKMCreateOFDPacket [22:17:15]OFDProtocolAddRootSTLVToBuf [22:17:15]FM_MakeSignedData [22:17:15]FM_MakeSignedData [22:17:15]SAM_PROTO_SignData [22:17:15]wFMCommunicate request_size=4 [22:17:15]MH_SAM_APDU [22:17:15]CAPDU: 80 0D 01 02 [22:17:15]Write to MH i2c: E2 08 00 1D 96 80 0D 01 02 00 00 00 00 2C [22:17:15]Write i2c OK [22:17:15]MH_I2C_Read... [22:17:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:17:15]Read from MH i2c: E2 [22:17:15]MH_I2C_Read... [22:17:15]Read from MH i2c: E2 03 00 [22:17:15]MH_I2C_Read... [22:17:15]Read from MH i2c: E2 03 00 1D 96 00 90 00 27 [22:17:15]RAPDU: 90 00 [22:17:15]wFMCommunicate OK [22:17:15]wFMCommunicate request_size=255 [22:17:15]MH_SAM_APDU [22:17:15]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 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 9A 01 00 00 F4 03 04 00 F0 D2 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 2A DE 02 [22:17:15]Write to MH i2c: E2 02 01 1E 96 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 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 9A 01 00 00 F4 03 04 00 F0 D2 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 2A DE 02 00 00 A0 [22:17:15]Write i2c OK [22:17:15]MH_I2C_Read... [22:17:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:17:15]Read from MH i2c: E2 [22:17:15]MH_I2C_Read... [22:17:15]Read from MH i2c: E2 03 00 [22:17:15]MH_I2C_Read... [22:17:15]Read from MH i2c: E2 03 00 1E 96 00 90 00 28 [22:17:15]RAPDU: 90 00 [22:17:15]wFMCommunicate OK [22:17:15]wFMCommunicate request_size=16 [22:17:15]MH_SAM_APDU [22:17:15]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 E4 A6 41 4C 17 57 [22:17:15]Write to MH i2c: E2 13 00 1F 96 80 0D 02 02 0B 00 00 35 04 06 00 E4 A6 41 4C 17 57 00 00 09 [22:17:15]Write i2c OK [22:17:15]MH_I2C_Read... [22:17:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:17:15]Read from MH i2c: E2 [22:17:15]MH_I2C_Read... [22:17:15]Read from MH i2c: E2 03 00 [22:17:15]MH_I2C_Read... [22:17:15]Read from MH i2c: E2 03 00 1F 96 00 90 00 29 [22:17:15]RAPDU: 90 00 [22:17:15]wFMCommunicate OK [22:17:15]wFMCommunicate request_size=4 [22:17:15]MH_SAM_APDU [22:17:15]CAPDU: 80 0D 03 02 [22:17:15]Write to MH i2c: E2 08 00 20 96 80 0D 03 02 00 00 00 00 31 [22:17:15]Write i2c OK [22:17:15]MH_I2C_Read... [22:17:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:17:15]Read from MH i2c: E2 [22:17:15]MH_I2C_Read... [22:17:15]Read from MH i2c: E2 0B 00 [22:17:15]MH_I2C_Read... [22:17:15]Read from MH i2c: E2 0B 00 20 96 00 8D 53 9E 0E 0C 18 29 33 90 00 3E [22:17:15]RAPDU: 8D 53 9E 0E 0C 18 29 33 90 00 [22:17:15]wFMCommunicate OK [22:17:15]SAM_PROTO_SignData done [22:17:15]FM_MakeSignedData done [22:17:15]CreateOFDProtocolMessage [22:17:15]wFMCommunicate request_size=4 [22:17:15]MH_SAM_APDU [22:17:15]CAPDU: 80 11 00 00 [22:17:15]Write to MH i2c: E2 08 00 21 96 80 11 00 00 00 00 00 00 31 [22:17:15]Write i2c OK [22:17:15]MH_I2C_Read... [22:17:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:17:15]Read from MH i2c: E2 [22:17:15]MH_I2C_Read... [22:17:15]Read from MH i2c: E2 17 00 [22:17:15]MH_I2C_Read... [22:17:15]Read from MH i2c: E2 17 00 21 96 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 7F [22:17:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [22:17:15]wFMCommunicate OK [22:17:15]CreateOFDProtocolMessage done [22:17:15]OFDSenderStorePacket 187946 [22:17:15]StoreOFDPacket docnum=187946 [22:17:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 F9 28 0D 01 79 72 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 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 9A 01 00 00 F4 03 04 00 F0 D2 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 2A DE 02 00 35 04 06 00 E4 A6 41 4C 17 57 8D 53 9E 0E 0C 18 29 33 [22:17:15]CheckFolder [22:17:15]dirname=/storage/ofd_packets [22:17:15]CheckFolder done [22:17:15]ProducePacketName [22:17:15]name=ofd_packets/00187946 [22:17:15]NVStorageSaveData ofd_packets/00187946 [22:17:15]File name is /storage/ofd_packets/00187946 [22:17:15]Write 307 bytes [22:17:15]NVStorageSaveData done [22:17:15]OFDSenderStorePacket done [22:17:15]KKMCreateOFDPacket done [22:17:15]NVStorageSaveData kkm_last_timestamp [22:17:15]File name is /storage/kkm_last_timestamp [22:17:15]Write 4 bytes [22:17:15]NVStorageSaveData done [22:17:15]ExternCall_PrintAddStr [22:17:15]wPrintStart [22:17:15]Write to MH i2c: 01 00 00 22 96 B8 [22:17:15]Write i2c OK [22:17:15]MH_I2C_Read... [22:17:15]Read from MH i2c: 01 [22:17:15]MH_I2C_Read... [22:17:15]Read from MH i2c: 01 07 00 [22:17:15]MH_I2C_Read... [22:17:15]Read from MH i2c: 01 07 00 22 96 00 00 00 00 00 FF 0F CD [22:17:15]RasterBufferAndPrint [22:17:15]line Счет N : (1)209998 [22:17:15]line ИНН: 02508201610067 [22:17:15]line Контрольно-Кассовый Чек [22:17:15]line ПРОДАЖА [22:17:15]line ТРК (МРК, ГНК) : 41 [22:17:15]line Товар: 2710194210 [22:17:15]line D-ENERGY ДТ-К-5 [22:17:15]line 12.960 * 77.20 [22:17:15]line = 1000.51 [22:17:15]line НДС 12% НСП 1% [22:17:15]line > о реализуемом товаре [22:17:15]line ИТОГО: 1000.51 [22:17:15]line НСП 1% : 8.85 [22:17:15]line НДС 12% : 106.25 [22:17:15]line Наличными: 0.00 [22:17:15]line Безнал.: 1000.51 [22:17:15]line Место: АЗС № 86 "Партнер Нефть" [22:17:15]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [22:17:15]line СНО: Общий режим [22:17:15]line Чек 410 21.10.2024 22:17 [22:17:15]line Смена: 460 ФФД: 1.0 [22:17:15]line ЗНМ: 0300000155 [22:17:15]line РНМ: 0000000000100030 [22:17:15]line Версия ККМ: 001 [22:17:15]line Платежная система: Mbank [22:17:15]line ФМ: 0000000000965340 [22:17:15]line ФД: 187946 [22:17:15]line ФПД: 251402711209815 [22:17:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T221720&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187946&fm=251402711209815&tin=02508201610067®Number=0000000000100030&sum=100051 [22:17:16]OFD Sender: Processing packet 187946 [packets to send 1062, broken 1061] [22:17:16]ProducePacketName [22:17:16]name=ofd_packets/00187946 [22:17:16]OFD Sender: To server: pG, [22:17:16]CommunicateWithHost lk.salyk.kg:30040 [22:17:16]ConnectInit lk.salyk.kg [22:17:16]written 0, free lines is 4095 [22:17:16]Connected sock=10 [22:17:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 F9 28 0D 01 79 72 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 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 9A 01 00 00 F4 03 04 00 F0 D2 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 2A DE 02 00 35 04 06 00 E4 A6 41 4C 17 57 8D 53 9E 0E 0C 18 29 33 [22:17:16]Write to MH i2c: 01 00 00 4B 96 E1 [22:17:16]Write i2c OK [22:17:16]MH_I2C_Read... [22:17:16]Read from MH i2c: 01 [22:17:16]MH_I2C_Read... [22:17:16]Read from MH i2c: 01 07 00 [22:17:16]MH_I2C_Read... [22:17:16]Read from MH i2c: 01 07 00 4B 96 00 00 00 00 00 94 0C 88 [22:17:16]RasterBufferAndPrint [22:17:16]line [22:17:16]line [22:17:16]line [22:17:16]line [22:17:16]line [22:17:16]written 0, free lines is 3224 [22:17:16]MH_Cut [22:17:16]Write to MH i2c: D1 01 00 52 96 01 BA [22:17:16]Write i2c OK [22:17:16]MH_I2C_Read... [22:17:16]Read from MH i2c: D1 [22:17:16]MH_I2C_Read... [22:17:16]Read from MH i2c: D1 01 00 [22:17:16]MH_I2C_Read... [22:17:16]Read from MH i2c: D1 01 00 52 96 00 B9 [22:17:16]Write to MH i2c: 01 00 00 53 96 E9 [22:17:16]Write i2c OK [22:17:16]MH_I2C_Read... [22:17:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 5D 39 47 00 74 8E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 2A DE 02 00 F4 03 04 00 DF 7C 16 67 B6 04 01 00 00 15 33 C2 79 86 2C 09 77 [22:17:16]CommunicateWithHost err = 0 [22:17:16]CheckOFDResponse [22:17:16]1017 (14) - 77093643461234 [22:17:16]1041 (16) - 0000000000965340 [22:17:16]1040 (4) - 187946 [22:17:16]1012 (4) - 21.10.2024 16:10 [22:17:16]1206 (1) - 0 [22:17:16]OFD Sender: Remove packet 187946 [22:17:16]ProducePacketName [22:17:16]name=ofd_packets/00187946 [22:17:16]NVStorageDeleteData [22:17:17]OFD Sender: No OFD packet to send [22:17:17]*** Cut start [22:17:17]*** Partial cut [22:17:17]*** CUTSNS_PIN = 1 [22:17:17]*** CUTSNS_PIN = 0 [22:17:18]*** Brake cut motor [22:17:18]Read from MH i2c: 01 [22:17:18]MH_I2C_Read... [22:17:18]*** Stop cut motor [22:17:18]*** Cut end [22:17:18]Read from MH i2c: 01 07 00 [22:17:18]MH_I2C_Read... [22:17:18]Read from MH i2c: 01 07 00 53 96 00 00 00 00 00 FF 0F FE [22:17:18]process_action close_receipt done [22:17:18]requested_data is exist [22:17:18]produce_requested_data [22:17:18]requested_item fm.sn is exist - process it [22:17:18]wFMCommunicate request_size=4 [22:17:18]MH_SAM_APDU [22:17:18]CAPDU: 80 11 00 00 [22:17:18]Write to MH i2c: E2 08 00 54 96 80 11 00 00 00 00 00 00 64 [22:17:18]Write i2c OK [22:17:18]MH_I2C_Read... [22:17:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:17:18]Read from MH i2c: E2 [22:17:18]MH_I2C_Read... [22:17:18]Read from MH i2c: E2 17 00 [22:17:18]MH_I2C_Read... [22:17:18]Read from MH i2c: E2 17 00 54 96 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 B2 [22:17:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [22:17:18]wFMCommunicate OK [22:17:18]requested_item fd.num is exist - process it [22:17:18]SAM_PROTO_GetFieldsCounters [22:17:18]wFMCommunicate request_size=4 [22:17:18]MH_SAM_APDU [22:17:18]CAPDU: 80 13 00 00 [22:17:18]Write to MH i2c: E2 08 00 55 96 80 13 00 00 00 00 00 00 67 [22:17:18]Write i2c OK [22:17:18]MH_I2C_Read... [22:17:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:17:18]Read from MH i2c: E2 [22:17:18]MH_I2C_Read... [22:17:18]Read from MH i2c: E2 62 00 [22:17:18]MH_I2C_Read... [22:17:18]Read from MH i2c: E2 62 00 55 96 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 2A DE 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 9A 01 00 00 5E 04 04 00 9A 01 00 00 57 04 04 00 9B 01 00 00 19 04 04 00 00 00 00 00 90 00 16 [22:17:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 2A DE 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 9A 01 00 00 5E 04 04 00 9A 01 00 00 57 04 04 00 9B 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:17:18]wFMCommunicate OK [22:17:18]SAM_PROTO_GetFieldsCounters done [22:17:18]requested_item shift.num is exist - process it [22:17:18]requested_item shift.opened is exist - process it [22:17:18]req_shift_opened [22:17:18]FM_GetShiftState [22:17:18]SAM_PROTO_GetShiftState [22:17:18]wFMCommunicate request_size=4 [22:17:18]MH_SAM_APDU [22:17:18]CAPDU: 80 13 01 00 [22:17:18]Write to MH i2c: E2 08 00 56 96 80 13 01 00 00 00 00 00 69 [22:17:18]Write i2c OK [22:17:18]MH_I2C_Read... [22:17:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:17:18]Read from MH i2c: E2 [22:17:18]MH_I2C_Read... [22:17:18]Read from MH i2c: E2 0E 00 [22:17:18]MH_I2C_Read... [22:17:18]Read from MH i2c: E2 0E 00 56 96 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 C8 [22:17:18]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [22:17:18]wFMCommunicate OK [22:17:18]SAM_PROTO_GetShiftState done [22:17:18]FM_GetShiftState done [22:17:18]req_shift_opened done [22:17:18]requested_item shift.open_date is exist - process it [22:17:18]req_shift_open_date [22:17:18]req_shift_open_date done [22:17:18]produce_requested_data done [22:17:18]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187946,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [22:17:18]process_action_free close_receipt [22:17:18]json_value_free [22:17:18]json_value_free done [22:17:18]process_json_proto returns [22:17:18]Send response to host [22:17:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187946,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [22:17:18]free response buf [22:17:18]execute_script done [22:17:18]execute_script returns [22:17:18]free content buf [22:17:18]Sock 9.Close socket [22:17:18]Sock 9.Thread stoped [22:17:22]OFD Sender: No OFD packet to send [22:17:27]OFD Sender: No OFD packet to send [22:17:32]OFD Sender: No OFD packet to send [22:17:37]OFD Sender: No OFD packet to send [22:17:42]OFD Sender: No OFD packet to send [22:17:47]OFD Sender: No OFD packet to send [22:17:52]OFD Sender: No OFD packet to send [22:17:57]OFD Sender: No OFD packet to send [22:18:02]OFD Sender: No OFD packet to send [22:18:07]OFD Sender: No OFD packet to send [22:18:12]OFD Sender: No OFD packet to send [22:18:17]OFD Sender: No OFD packet to send [22:18:22]OFD Sender: No OFD packet to send [22:18:27]OFD Sender: No OFD packet to send [22:18:32]OFD Sender: No OFD packet to send [22:18:37]OFD Sender: No OFD packet to send [22:18:42]OFD Sender: No OFD packet to send [22:18:47]OFD Sender: No OFD packet to send [22:18:52]OFD Sender: No OFD packet to send [22:18:57]OFD Sender: No OFD packet to send [22:19:02]OFD Sender: No OFD packet to send [22:19:07]OFD Sender: No OFD packet to send [22:19:12]OFD Sender: No OFD packet to send [22:19:17]OFD Sender: No OFD packet to send [22:19:22]OFD Sender: No OFD packet to send [22:19:27]OFD Sender: No OFD packet to send [22:19:32]OFD Sender: No OFD packet to send [22:19:37]OFD Sender: No OFD packet to send [22:19:42]OFD Sender: No OFD packet to send [22:19:47]OFD Sender: No OFD packet to send [22:19:52]OFD Sender: No OFD packet to send [22:19:57]OFD Sender: No OFD packet to send [22:20:02]OFD Sender: No OFD packet to send [22:20: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:54]OFD Sender: No OFD packet to send [22:23:59]OFD Sender: No OFD packet to send [22:24:03]accept exits with 8 [22:24:03]New connection [22:24:03]New thread 3067014500 created [22:24:03]Thread 3067157860 joined [22:24:03]Waiting for new connection... [22:24:03] Sock 8.Parse request [22:24:03]Sock 8.Check first char [22:24:03]Sock 8.First char is OK [22:24:03]request: POST /json_proto HTTP/1.0 [22:24:03]Method: POST [22:24:03]URL: /json_proto [22:24:03]Method is POST - this is cgi request [22:24:03]url: /json_proto [22:24:03]query_string will be loaded in cgi processing [22:24:03]execute_cgi json_proto POST (null) [22:24:03]execute_cgi path=json_proto method=POST [22:24:03]POST find Content-Length [22:24:03]Host: 172.17.42.131:8080 [22:24:03]Content-Length: 688 [22:24:03]Content-Type: application/json [22:24:03] [22:24:03]POST finish read [22:24:03]Found Content-Length = 688 [22:24:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)209999", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 12.960, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:24:03]execute_script... [22:24: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)209999", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 12.960, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:24:03]POST & json_proto [22:24:03]process_json_proto [22:24:04]json parsed OK: [22:24:04]protocol is kg_v1.0 [22:24:04]action value=close_receipt [22:24:04]process_action close_receipt [22:24:04]cmd_close_receipt [22:24:04]MH_GetDate [22:24:04]Write to MH i2c: F0 00 00 57 96 DC [22:24:04]Write i2c OK [22:24:04]MH_I2C_Read... [22:24:04]Read from MH i2c: F0 [22:24:04]MH_I2C_Read... [22:24:04]Read from MH i2c: F0 09 00 [22:24:04]MH_I2C_Read... [22:24:04]Read from MH i2c: F0 09 00 57 96 00 8A D4 16 67 A0 18 CA 66 A8 [22:24:04]GetLastDocTimeStamp 1729549040 [22:24:04]current date 1729549450 [22:24:04]FM_GetShiftState [22:24:04]SAM_PROTO_GetShiftState [22:24:04]wFMCommunicate request_size=4 [22:24:04]MH_SAM_APDU [22:24:04]CAPDU: 80 13 01 00 [22:24:04]Write to MH i2c: E2 08 00 58 96 80 13 01 00 00 00 00 00 6B [22:24:04]Write i2c OK [22:24:04]MH_I2C_Read... [22:24:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:24:04]Read from MH i2c: E2 [22:24:04]MH_I2C_Read... [22:24:04]Read from MH i2c: E2 0E 00 [22:24:04]MH_I2C_Read... [22:24:04]Read from MH i2c: E2 0E 00 58 96 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 CA [22:24:04]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [22:24:04]wFMCommunicate OK [22:24:04]SAM_PROTO_GetShiftState done [22:24:04]FM_GetShiftState done [22:24:04]opened in 1729469754 [22:24:04]opened+sec_in_day 1729556154 [22:24:04]quantity*price = 100051 [22:24:04]sum+1 = 100052 [22:24:04]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 411 21.10.2024 22:24 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 187947 ФПД: 281301740491631 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T222410&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187947&fm=281301740491631&tin=02508201610067®Number=0000000000100030&sum=100000 [22:24:05]StoreToDocumentArchive [22:24:05]shift 460 fd 187947 [22:24:05]save to /storage/0460/doc_00187947 [22:24:05]save last doc name /storage/0460/doc_00187947 to /storage/kkm_last_doc_name [22:24:05]save OK [22:24:05]Clear old archive folders... [22:24:05]ProcessDocumentItem done err = 0, tmpTLVsize=257 [22:24:05]tlvbuf is 01099FF0 [22:24:05]SAM_PROTO_ClearQueue [22:24:05]wFMCommunicate request_size=4 [22:24:05]MH_SAM_APDU [22:24:05]CAPDU: 80 09 00 00 [22:24:05]Write to MH i2c: E2 08 00 65 96 80 09 00 00 00 00 00 00 6D [22:24:05]Write i2c OK [22:24:05]MH_I2C_Read... [22:24:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:24:05]Read from MH i2c: E2 [22:24:05]MH_I2C_Read... [22:24:05]Read from MH i2c: E2 03 00 [22:24:05]MH_I2C_Read... [22:24:05]Read from MH i2c: E2 03 00 65 96 00 90 00 6F [22:24:05]RAPDU: 90 00 [22:24:05]wFMCommunicate OK [22:24:05]SAM_PROTO_ClearQueue done [22:24:05]KKMCreateOFDPacket [22:24:05]OFDProtocolAddRootSTLVToBuf [22:24:05]FM_MakeSignedData [22:24:05]FM_MakeSignedData [22:24:05]SAM_PROTO_SignData [22:24:05]wFMCommunicate request_size=4 [22:24:05]MH_SAM_APDU [22:24:05]CAPDU: 80 0D 01 02 [22:24:05]Write to MH i2c: E2 08 00 66 96 80 0D 01 02 00 00 00 00 75 [22:24:05]Write i2c OK [22:24:05]MH_I2C_Read... [22:24:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:24:05]Read from MH i2c: E2 [22:24:05]MH_I2C_Read... [22:24:05]Read from MH i2c: E2 03 00 [22:24:05]MH_I2C_Read... [22:24:05]Read from MH i2c: E2 03 00 66 96 00 90 00 70 [22:24:05]RAPDU: 90 00 [22:24:05]wFMCommunicate OK [22:24:05]wFMCommunicate request_size=255 [22:24:05]MH_SAM_APDU [22:24:05]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 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9B 01 00 00 F4 03 04 00 8A D4 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 2B DE 02 [22:24:05]Write to MH i2c: E2 02 01 67 96 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 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9B 01 00 00 F4 03 04 00 8A D4 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 2B DE 02 00 00 21 [22:24:05]Write i2c OK [22:24:05]MH_I2C_Read... [22:24:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:24:05]Read from MH i2c: E2 [22:24:05]MH_I2C_Read... [22:24:05]Read from MH i2c: E2 03 00 [22:24:05]MH_I2C_Read... [22:24:05]Read from MH i2c: E2 03 00 67 96 00 90 00 71 [22:24:05]RAPDU: 90 00 [22:24:05]wFMCommunicate OK [22:24:05]wFMCommunicate request_size=16 [22:24:05]MH_SAM_APDU [22:24:05]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 FF D7 AA 51 13 6F [22:24:05]Write to MH i2c: E2 13 00 68 96 80 0D 02 02 0B 00 00 35 04 06 00 FF D7 AA 51 13 6F 00 00 20 [22:24:05]Write i2c OK [22:24:05]MH_I2C_Read... [22:24:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:24:05]Read from MH i2c: E2 [22:24:05]MH_I2C_Read... [22:24:05]Read from MH i2c: E2 03 00 [22:24:05]MH_I2C_Read... [22:24:05]Read from MH i2c: E2 03 00 68 96 00 90 00 72 [22:24:05]RAPDU: 90 00 [22:24:05]wFMCommunicate OK [22:24:05]wFMCommunicate request_size=4 [22:24:05]MH_SAM_APDU [22:24:05]CAPDU: 80 0D 03 02 [22:24:05]Write to MH i2c: E2 08 00 69 96 80 0D 03 02 00 00 00 00 7A [22:24:05]Write i2c OK [22:24:05]MH_I2C_Read... [22:24:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:24:05]Read from MH i2c: E2 [22:24:05]MH_I2C_Read... [22:24:05]Read from MH i2c: E2 0B 00 [22:24:05]MH_I2C_Read... [22:24:05]Read from MH i2c: E2 0B 00 69 96 00 A2 B1 2B 29 BF 69 D5 8D 90 00 AC [22:24:05]RAPDU: A2 B1 2B 29 BF 69 D5 8D 90 00 [22:24:05]wFMCommunicate OK [22:24:05]SAM_PROTO_SignData done [22:24:05]FM_MakeSignedData done [22:24:05]CreateOFDProtocolMessage [22:24:05]wFMCommunicate request_size=4 [22:24:05]MH_SAM_APDU [22:24:05]CAPDU: 80 11 00 00 [22:24:05]Write to MH i2c: E2 08 00 6A 96 80 11 00 00 00 00 00 00 7A [22:24:05]Write i2c OK [22:24:05]MH_I2C_Read... [22:24:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:24:05]Read from MH i2c: E2 [22:24:05]MH_I2C_Read... [22:24:05]Read from MH i2c: E2 17 00 [22:24:05]MH_I2C_Read... [22:24:05]Read from MH i2c: E2 17 00 6A 96 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 C8 [22:24:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [22:24:05]wFMCommunicate OK [22:24:05]CreateOFDProtocolMessage done [22:24:05]OFDSenderStorePacket 187947 [22:24:05]StoreOFDPacket docnum=187947 [22:24:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 70 73 0D 01 CE 48 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 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9B 01 00 00 F4 03 04 00 8A D4 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 2B DE 02 00 35 04 06 00 FF D7 AA 51 13 6F A2 B1 2B 29 BF 69 D5 8D [22:24:05]CheckFolder [22:24:05]dirname=/storage/ofd_packets [22:24:05]CheckFolder done [22:24:05]ProducePacketName [22:24:05]name=ofd_packets/00187947 [22:24:05]NVStorageSaveData ofd_packets/00187947 [22:24:05]File name is /storage/ofd_packets/00187947 [22:24:05]Write 307 bytes [22:24:05]NVStorageSaveData done [22:24:05]OFDSenderStorePacket done [22:24:05]KKMCreateOFDPacket done [22:24:05]NVStorageSaveData kkm_last_timestamp [22:24:05]File name is /storage/kkm_last_timestamp [22:24:05]Write 4 bytes [22:24:05]NVStorageSaveData done [22:24:05]ExternCall_PrintAddStr [22:24:05]wPrintStart [22:24:05]Write to MH i2c: 01 00 00 6B 96 01 [22:24:05]Write i2c OK [22:24:05]MH_I2C_Read... [22:24:05]Read from MH i2c: 01 [22:24:05]MH_I2C_Read... [22:24:05]Read from MH i2c: 01 07 00 [22:24:05]MH_I2C_Read... [22:24:05]Read from MH i2c: 01 07 00 6B 96 00 00 00 00 00 FF 0F 16 [22:24:05]RasterBufferAndPrint [22:24:05]line Счет N : (1)209999 [22:24:05]line ИНН: 02508201610067 [22:24:05]line Контрольно-Кассовый Чек [22:24:05]line ПРОДАЖА [22:24:05]line ТРК (МРК, ГНК) : 21 [22:24:05]line Товар: 2710194210 [22:24:05]line D-ENERGY ДТ-К-5 [22:24:05]line 12.960 * 77.20 [22:24:05]line = 1000.51 [22:24:05]line НДС 12% НСП 1% [22:24:05]line > о реализуемом товаре [22:24:05]line ОКРУГЛЕНИЕ: -0.51 [22:24:05]line ИТОГО: 1000.00 [22:24:05]line Внесено: 1000.00 [22:24:05]line СДАЧА: 0.00 [22:24:05]line НСП 1% : 8.85 [22:24:05]line НДС 12% : 106.25 [22:24:05]line Наличными: 1000.00 [22:24:05]line Безнал.: 0.00 [22:24:05]line Место: АЗС № 86 "Партнер Нефть" [22:24:05]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [22:24:05]line СНО: Общий режим [22:24:05]line Чек 411 21.10.2024 22:24 [22:24:05]line Смена: 460 ФФД: 1.0 [22:24:05]line ЗНМ: 0300000155 [22:24:05]line РНМ: 0000000000100030 [22:24:05]line Версия ККМ: 001 [22:24:05]line ФМ: 0000000000965340 [22:24:05]line ФД: 187947 [22:24:05]line ФПД: 281301740491631 [22:24:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T222410&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187947&fm=281301740491631&tin=02508201610067®Number=0000000000100030&sum=100000 [22:24:05]written 0, free lines is 4095 [22:24:05]OFD Sender: Processing packet 187947 [packets to send 1062, broken 1061] [22:24:05]ProducePacketName [22:24:05]name=ofd_packets/00187947 [22:24:05]OFD Sender: To server: pG, [22:24:05]CommunicateWithHost lk.salyk.kg:30040 [22:24:05]ConnectInit lk.salyk.kg [22:24:06]Connected sock=10 [22:24:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 70 73 0D 01 CE 48 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 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9B 01 00 00 F4 03 04 00 8A D4 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 2B DE 02 00 35 04 06 00 FF D7 AA 51 13 6F A2 B1 2B 29 BF 69 D5 8D [22:24:06]Write to MH i2c: 01 00 00 96 96 2C [22:24:06]Write i2c OK [22:24:06]MH_I2C_Read... [22:24:06]Read from MH i2c: 01 [22:24:06]MH_I2C_Read... [22:24:06]Read from MH i2c: 01 07 00 [22:24:06]MH_I2C_Read... [22:24:06]Read from MH i2c: 01 07 00 96 96 00 00 00 00 00 59 0C 98 [22:24:06]RasterBufferAndPrint [22:24:06]line [22:24:06]line [22:24:06]line [22:24:06]line [22:24:06]line [22:24:06]written 0, free lines is 3166 [22:24:06]MH_Cut [22:24:06]Write to MH i2c: D1 01 00 9D 96 01 05 [22:24:06]Write i2c OK [22:24:06]MH_I2C_Read... [22:24:06]Read from MH i2c: D1 [22:24:06]MH_I2C_Read... [22:24:06]Read from MH i2c: D1 01 00 [22:24:06]MH_I2C_Read... [22:24:06]Read from MH i2c: D1 01 00 9D 96 00 04 [22:24:06]Write to MH i2c: 01 00 00 9E 96 34 [22:24:06]Write i2c OK [22:24:06]MH_I2C_Read... [22:24:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 21 67 47 00 A7 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 39 36 35 33 34 30 10 04 04 00 2B DE 02 00 F4 03 04 00 78 7E 16 67 B6 04 01 00 00 6F 69 7B CC 33 3B 6B 1A [22:24:06]CommunicateWithHost err = 0 [22:24:06]CheckOFDResponse [22:24:06]1017 (14) - 77093643461234 [22:24:06]1041 (16) - 0000000000965340 [22:24:06]1040 (4) - 187947 [22:24:06]1012 (4) - 21.10.2024 16:16 [22:24:06]1206 (1) - 0 [22:24:06]OFD Sender: Remove packet 187947 [22:24:06]ProducePacketName [22:24:06]name=ofd_packets/00187947 [22:24:06]NVStorageDeleteData [22:24:06]OFD Sender: No OFD packet to send [22:24:07]*** Cut start [22:24:07]*** Partial cut [22:24:07]*** CUTSNS_PIN = 1 [22:24:07]*** CUTSNS_PIN = 0 [22:24:07]*** Brake cut motor [22:24:08]Read from MH i2c: 01 [22:24:08]MH_I2C_Read... [22:24:08]*** Stop cut motor [22:24:08]*** Cut end [22:24:08]Read from MH i2c: 01 07 00 [22:24:08]MH_I2C_Read... [22:24:08]Read from MH i2c: 01 07 00 9E 96 00 00 00 00 00 FF 0F 49 [22:24:08]process_action close_receipt done [22:24:08]requested_data is exist [22:24:08]produce_requested_data [22:24:08]requested_item fm.sn is exist - process it [22:24:08]wFMCommunicate request_size=4 [22:24:08]MH_SAM_APDU [22:24:08]CAPDU: 80 11 00 00 [22:24:08]Write to MH i2c: E2 08 00 9F 96 80 11 00 00 00 00 00 00 AF [22:24:08]Write i2c OK [22:24:08]MH_I2C_Read... [22:24:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:24:08]Read from MH i2c: E2 [22:24:08]MH_I2C_Read... [22:24:08]Read from MH i2c: E2 17 00 [22:24:08]MH_I2C_Read... [22:24:08]Read from MH i2c: E2 17 00 9F 96 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 FD [22:24:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [22:24:08]wFMCommunicate OK [22:24:08]requested_item fd.num is exist - process it [22:24:08]SAM_PROTO_GetFieldsCounters [22:24:08]wFMCommunicate request_size=4 [22:24:08]MH_SAM_APDU [22:24:08]CAPDU: 80 13 00 00 [22:24:08]Write to MH i2c: E2 08 00 A0 96 80 13 00 00 00 00 00 00 B2 [22:24:08]Write i2c OK [22:24:08]MH_I2C_Read... [22:24:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:24:08]Read from MH i2c: E2 [22:24:08]MH_I2C_Read... [22:24:08]Read from MH i2c: E2 62 00 [22:24:08]MH_I2C_Read... [22:24:08]Read from MH i2c: E2 62 00 A0 96 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 2B DE 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 9B 01 00 00 5E 04 04 00 9B 01 00 00 57 04 04 00 9C 01 00 00 19 04 04 00 00 00 00 00 90 00 65 [22:24:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 2B DE 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 9B 01 00 00 5E 04 04 00 9B 01 00 00 57 04 04 00 9C 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:24:08]wFMCommunicate OK [22:24:08]SAM_PROTO_GetFieldsCounters done [22:24:08]requested_item shift.num is exist - process it [22:24:08]requested_item shift.opened is exist - process it [22:24:08]req_shift_opened [22:24:08]FM_GetShiftState [22:24:08]SAM_PROTO_GetShiftState [22:24:08]wFMCommunicate request_size=4 [22:24:08]MH_SAM_APDU [22:24:08]CAPDU: 80 13 01 00 [22:24:08]Write to MH i2c: E2 08 00 A1 96 80 13 01 00 00 00 00 00 B4 [22:24:08]Write i2c OK [22:24:08]MH_I2C_Read... [22:24:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:24:08]Read from MH i2c: E2 [22:24:08]MH_I2C_Read... [22:24:08]Read from MH i2c: E2 0E 00 [22:24:08]MH_I2C_Read... [22:24:08]Read from MH i2c: E2 0E 00 A1 96 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 13 [22:24:08]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [22:24:08]wFMCommunicate OK [22:24:08]SAM_PROTO_GetShiftState done [22:24:08]FM_GetShiftState done [22:24:08]req_shift_opened done [22:24:08]requested_item shift.open_date is exist - process it [22:24:08]req_shift_open_date [22:24:08]req_shift_open_date done [22:24:08]produce_requested_data done [22:24:08]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187947,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [22:24:08]process_action_free close_receipt [22:24:08]json_value_free [22:24:08]json_value_free done [22:24:08]process_json_proto returns [22:24:08]Send response to host [22:24:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187947,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [22:24:08]free response buf [22:24:08]execute_script done [22:24:08]execute_script returns [22:24:08]free content buf [22:24:08]Sock 8.Close socket [22:24:08]Sock 8.Thread stoped [22:24:11]OFD Sender: No OFD packet to send [22:24:16]OFD Sender: No OFD packet to send [22:24:21]OFD Sender: No OFD packet to send [22:24:26]OFD Sender: No OFD packet to send [22:24:31]OFD Sender: No OFD packet to send [22:24:36]OFD Sender: No OFD packet to send [22:24:42]OFD Sender: No OFD packet to send [22:24:47]OFD Sender: No OFD packet to send [22:24:52]OFD Sender: No OFD packet to send [22:24:57]OFD Sender: No OFD packet to send [22:25:02]OFD Sender: No OFD packet to send [22:25:07]OFD Sender: No OFD packet to send [22:25:12]OFD Sender: No OFD packet to send [22:25:17]OFD Sender: No OFD packet to send [22:25:22]OFD Sender: No OFD packet to send [22:25:27]OFD Sender: No OFD packet to send [22:25:32]OFD Sender: No OFD packet to send [22:25:37]OFD Sender: No OFD packet to send [22:25:42]OFD Sender: No OFD packet to send [22:25:47]OFD Sender: No OFD packet to send [22:25:52]OFD Sender: No OFD packet to send [22:25:57]OFD Sender: No OFD packet to send [22:26:02]OFD Sender: No OFD packet to send [22:26:07]OFD Sender: No OFD packet to send [22:26:12]OFD Sender: No OFD packet to send [22:26:17]OFD Sender: No OFD packet to send [22:26:22]OFD Sender: No OFD packet to send [22:26:27]OFD Sender: No OFD packet to send [22:26:32]OFD Sender: No OFD packet to send [22:26:37]OFD Sender: No OFD packet to send [22:26:42]OFD Sender: No OFD packet to send [22:26:47]OFD Sender: No OFD packet to send [22:26:52]OFD Sender: No OFD packet to send [22:26:57]OFD Sender: No OFD packet to send [22:27:02]OFD Sender: No OFD packet to send [22:27:07]OFD Sender: No OFD packet to send [22:27:12]OFD Sender: No OFD packet to send [22:27:17]OFD Sender: No OFD packet to send [22:27:22]OFD Sender: No OFD packet to send [22:27:27]OFD Sender: No OFD packet to send [22:27:32]OFD Sender: No OFD packet to send [22:27:37]OFD Sender: No OFD packet to send [22:27:42]OFD Sender: No OFD packet to send [22:27:47]OFD Sender: No OFD packet to send [22:27:52]OFD Sender: No OFD packet to send [22:27:57]OFD Sender: No OFD packet to send [22:28:02]OFD Sender: No OFD packet to send [22:28:07]OFD Sender: No OFD packet to send [22:28:12]OFD Sender: No OFD packet to send [22:28:17]OFD Sender: No OFD packet to send [22:28:23]OFD Sender: No OFD packet to send [22:28:28]OFD Sender: No OFD packet to send [22:28:33]OFD Sender: No OFD packet to send [22:28:38]OFD Sender: No OFD packet to send [22:28:43]OFD Sender: No OFD packet to send [22:28:48]OFD Sender: No OFD packet to send [22:28:53]OFD Sender: No OFD packet to send [22:28:58]OFD Sender: No OFD packet to send [22:29:03]OFD Sender: No OFD packet to send [22:29:08]OFD Sender: No OFD packet to send [22:29:13]OFD Sender: No OFD packet to send [22:29:18]OFD Sender: No OFD packet to send [22:29:23]OFD Sender: No OFD packet to send [22:29:28]OFD Sender: No OFD packet to send [22:29:33]OFD Sender: No OFD packet to send [22:29:38]OFD Sender: No OFD packet to send [22:29:43]OFD Sender: No OFD packet to send [22:29:48]OFD Sender: No OFD packet to send [22:29:53]OFD Sender: No OFD packet to send [22:29:58]OFD Sender: No OFD packet to send [22:30:03]OFD Sender: No OFD packet to send [22:30:08]OFD Sender: No OFD packet to send [22:30:13]OFD Sender: No OFD packet to send [22:30:18]OFD Sender: No OFD packet to send [22:30:23]OFD Sender: No OFD packet to send [22:30:28]OFD Sender: No OFD packet to send [22:30:33]OFD Sender: No OFD packet to send [22:30:38]OFD Sender: No OFD packet to send [22:30:43]OFD Sender: No OFD packet to send [22:30:48]OFD Sender: No OFD packet to send [22:30:53]OFD Sender: No OFD packet to send [22:30:58]OFD Sender: No OFD packet to send [22:31:03]OFD Sender: No OFD packet to send [22:31:08]OFD Sender: No OFD packet to send [22:31:13]OFD Sender: No OFD packet to send [22:31:18]OFD Sender: No OFD packet to send [22:31:23]OFD Sender: No OFD packet to send [22:31:28]OFD Sender: No OFD packet to send [22:31:33]OFD Sender: No OFD packet to send [22:31:38]OFD Sender: No OFD packet to send [22:31:43]OFD Sender: No OFD packet to send [22:31:48]OFD Sender: No OFD packet to send [22:31:53]OFD Sender: No OFD packet to send [22:31:58]OFD Sender: No OFD packet to send [22:32:03]OFD Sender: No OFD packet to send [22:32:08]OFD Sender: No OFD packet to send [22:32:09]accept exits with 9 [22:32:09]New connection [22:32:09]New thread 3067157860 created [22:32:09]Thread 3067014500 joined [22:32:09]Waiting for new connection... [22:32:09] Sock 9.Parse request [22:32:09]Sock 9.Check first char [22:32:09]Sock 9.First char is OK [22:32:09]request: POST /json_proto HTTP/1.0 [22:32:09]Method: POST [22:32:09]URL: /json_proto [22:32:09]Method is POST - this is cgi request [22:32:09]url: /json_proto [22:32:09]query_string will be loaded in cgi processing [22:32:09]execute_cgi json_proto POST (null) [22:32:09]execute_cgi path=json_proto method=POST [22:32:09]POST find Content-Length [22:32:09]Host: 172.17.42.131:8080 [22:32:09]Content-Length: 677 [22:32:09]Content-Type: application/json [22:32:09] [22:32:09]POST finish read [22:32:09]Found Content-Length = 677 [22:32:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210000", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "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:32:09]execute_script... [22:32: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)210000", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "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:32:09]POST & json_proto [22:32:09]process_json_proto [22:32:09]json parsed OK: [22:32:09]protocol is kg_v1.0 [22:32:09]action value=close_receipt [22:32:09]process_action close_receipt [22:32:09]cmd_close_receipt [22:32:09]MH_GetDate [22:32:09]Write to MH i2c: F0 00 00 A2 96 27 [22:32:09]Write i2c OK [22:32:09]MH_I2C_Read... [22:32:09]Read from MH i2c: F0 [22:32:09]MH_I2C_Read... [22:32:09]Read from MH i2c: F0 09 00 [22:32:09]MH_I2C_Read... [22:32:09]Read from MH i2c: F0 09 00 A2 96 00 6F D6 16 67 A0 18 CA 66 DA [22:32:09]GetLastDocTimeStamp 1729549450 [22:32:09]current date 1729549935 [22:32:09]FM_GetShiftState [22:32:09]SAM_PROTO_GetShiftState [22:32:09]wFMCommunicate request_size=4 [22:32:09]MH_SAM_APDU [22:32:09]CAPDU: 80 13 01 00 [22:32:09]Write to MH i2c: E2 08 00 A3 96 80 13 01 00 00 00 00 00 B6 [22:32:09]Write i2c OK [22:32:09]MH_I2C_Read... [22:32:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:32:09]Read from MH i2c: E2 [22:32:09]MH_I2C_Read... [22:32:09]Read from MH i2c: E2 0E 00 [22:32:09]MH_I2C_Read... [22:32:09]Read from MH i2c: E2 0E 00 A3 96 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 15 [22:32:09]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [22:32:09]wFMCommunicate OK [22:32:09]SAM_PROTO_GetShiftState done [22:32:09]FM_GetShiftState done [22:32:09]opened in 1729469754 [22:32:09]opened+sec_in_day 1729556154 [22:32:09]quantity*price = 50041 [22:32:09]sum+1 = 50042 [22:32:09]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 412 21.10.2024 22:32 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 187948 ФПД: 237508083529636 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T223215&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187948&fm=237508083529636&tin=02508201610067®Number=0000000000100030&sum=50000 [22:32:10]StoreToDocumentArchive [22:32:10]shift 460 fd 187948 [22:32:10]save to /storage/0460/doc_00187948 [22:32:10]save last doc name /storage/0460/doc_00187948 to /storage/kkm_last_doc_name [22:32:10]save OK [22:32:10]Clear old archive folders... [22:32:10]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:32:10]tlvbuf is 010A3560 [22:32:10]SAM_PROTO_ClearQueue [22:32:10]wFMCommunicate request_size=4 [22:32:10]MH_SAM_APDU [22:32:10]CAPDU: 80 09 00 00 [22:32:10]Write to MH i2c: E2 08 00 B0 96 80 09 00 00 00 00 00 00 B8 [22:32:10]Write i2c OK [22:32:10]MH_I2C_Read... [22:32:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:32:10]Read from MH i2c: E2 [22:32:10]MH_I2C_Read... [22:32:10]Read from MH i2c: E2 03 00 [22:32:10]MH_I2C_Read... [22:32:10]Read from MH i2c: E2 03 00 B0 96 00 90 00 BA [22:32:10]RAPDU: 90 00 [22:32:10]wFMCommunicate OK [22:32:10]SAM_PROTO_ClearQueue done [22:32:10]KKMCreateOFDPacket [22:32:10]OFDProtocolAddRootSTLVToBuf [22:32:10]FM_MakeSignedData [22:32:10]FM_MakeSignedData [22:32:10]SAM_PROTO_SignData [22:32:10]wFMCommunicate request_size=4 [22:32:10]MH_SAM_APDU [22:32:10]CAPDU: 80 0D 01 02 [22:32:10]Write to MH i2c: E2 08 00 B1 96 80 0D 01 02 00 00 00 00 C0 [22:32:10]Write i2c OK [22:32:10]MH_I2C_Read... [22:32:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:32:10]Read from MH i2c: E2 [22:32:10]MH_I2C_Read... [22:32:10]Read from MH i2c: E2 03 00 [22:32:10]MH_I2C_Read... [22:32:10]Read from MH i2c: E2 03 00 B1 96 00 90 00 BB [22:32:10]RAPDU: 90 00 [22:32:10]wFMCommunicate OK [22:32:10]wFMCommunicate request_size=255 [22:32:10]MH_SAM_APDU [22:32: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 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 01 00 00 F4 03 04 00 6F D6 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 2C DE 02 00 35 04 06 00 D8 [22:32:10]Write to MH i2c: E2 02 01 B2 96 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 01 00 00 F4 03 04 00 6F D6 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 2C DE 02 00 35 04 06 00 D8 00 00 43 [22:32:10]Write i2c OK [22:32:10]MH_I2C_Read... [22:32:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:32:10]Read from MH i2c: E2 [22:32:10]MH_I2C_Read... [22:32:10]Read from MH i2c: E2 03 00 [22:32:10]MH_I2C_Read... [22:32:10]Read from MH i2c: E2 03 00 B2 96 00 90 00 BC [22:32:10]RAPDU: 90 00 [22:32:10]wFMCommunicate OK [22:32:10]wFMCommunicate request_size=10 [22:32:10]MH_SAM_APDU [22:32:10]CAPDU: 80 0D 02 02 05 03 28 F3 37 A4 [22:32:10]Write to MH i2c: E2 0D 00 B3 96 80 0D 02 02 05 00 03 28 F3 37 A4 00 00 C6 [22:32:10]Write i2c OK [22:32:10]MH_I2C_Read... [22:32:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:32:10]Read from MH i2c: E2 [22:32:10]MH_I2C_Read... [22:32:10]Read from MH i2c: E2 03 00 [22:32:10]MH_I2C_Read... [22:32:10]Read from MH i2c: E2 03 00 B3 96 00 90 00 BD [22:32:10]RAPDU: 90 00 [22:32:10]wFMCommunicate OK [22:32:10]wFMCommunicate request_size=4 [22:32:10]MH_SAM_APDU [22:32:10]CAPDU: 80 0D 03 02 [22:32:10]Write to MH i2c: E2 08 00 B4 96 80 0D 03 02 00 00 00 00 C5 [22:32:10]Write i2c OK [22:32:10]MH_I2C_Read... [22:32:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:32:10]Read from MH i2c: E2 [22:32:10]MH_I2C_Read... [22:32:10]Read from MH i2c: E2 0B 00 [22:32:10]MH_I2C_Read... [22:32:10]Read from MH i2c: E2 0B 00 B4 96 00 3C 4C 3B CD 8A C0 AC 12 90 00 5E [22:32:10]RAPDU: 3C 4C 3B CD 8A C0 AC 12 90 00 [22:32:10]wFMCommunicate OK [22:32:10]SAM_PROTO_SignData done [22:32:10]FM_MakeSignedData done [22:32:10]CreateOFDProtocolMessage [22:32:10]wFMCommunicate request_size=4 [22:32:10]MH_SAM_APDU [22:32:10]CAPDU: 80 11 00 00 [22:32:10]Write to MH i2c: E2 08 00 B5 96 80 11 00 00 00 00 00 00 C5 [22:32:10]Write i2c OK [22:32:10]MH_I2C_Read... [22:32:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:32:10]Read from MH i2c: E2 [22:32:10]MH_I2C_Read... [22:32:10]Read from MH i2c: E2 17 00 [22:32:10]MH_I2C_Read... [22:32:10]Read from MH i2c: E2 17 00 B5 96 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 13 [22:32:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [22:32:10]wFMCommunicate OK [22:32:10]CreateOFDProtocolMessage done [22:32:10]OFDSenderStorePacket 187948 [22:32:10]StoreOFDPacket docnum=187948 [22:32:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 DC DD 07 01 79 7A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 01 00 00 F4 03 04 00 6F D6 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 2C DE 02 00 35 04 06 00 D8 03 28 F3 37 A4 3C 4C 3B CD 8A C0 AC 12 [22:32:10]CheckFolder [22:32:10]dirname=/storage/ofd_packets [22:32:10]CheckFolder done [22:32:10]ProducePacketName [22:32:10]name=ofd_packets/00187948 [22:32:10]NVStorageSaveData ofd_packets/00187948 [22:32:10]File name is /storage/ofd_packets/00187948 [22:32:10]Write 301 bytes [22:32:10]NVStorageSaveData done [22:32:10]OFDSenderStorePacket done [22:32:10]KKMCreateOFDPacket done [22:32:10]NVStorageSaveData kkm_last_timestamp [22:32:10]File name is /storage/kkm_last_timestamp [22:32:10]Write 4 bytes [22:32:10]NVStorageSaveData done [22:32:10]ExternCall_PrintAddStr [22:32:10]wPrintStart [22:32:10]Write to MH i2c: 01 00 00 B6 96 4C [22:32:10]Write i2c OK [22:32:10]MH_I2C_Read... [22:32:10]Read from MH i2c: 01 [22:32:10]MH_I2C_Read... [22:32:10]Read from MH i2c: 01 07 00 [22:32:10]MH_I2C_Read... [22:32:10]Read from MH i2c: 01 07 00 B6 96 00 00 00 00 00 FF 0F 61 [22:32:10]RasterBufferAndPrint [22:32:10]line Счет N : (1)210000 [22:32:10]line ИНН: 02508201610067 [22:32:10]line Контрольно-Кассовый Чек [22:32:10]line ПРОДАЖА [22:32:10]line ТРК (МРК, ГНК) : 32 [22:32:10]line Товар: 2710124130 [22:32:10]line Аи-92-К-3 [22:32:10]line 7.480 * 66.90 [22:32:10]line = 500.41 [22:32:10]line НДС 12% НСП 1% [22:32:10]line > о реализуемом товаре [22:32:10]line ОКРУГЛЕНИЕ: -0.41 [22:32:10]line ИТОГО: 500.00 [22:32:10]line Внесено: 500.00 [22:32:10]line СДАЧА: 0.00 [22:32:10]line НСП 1% : 4.43 [22:32:10]line НДС 12% : 53.14 [22:32:10]line Наличными: 500.00 [22:32:10]line Безнал.: 0.00 [22:32:10]line Место: АЗС № 86 "Партнер Нефть" [22:32:10]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [22:32:10]line СНО: Общий режим [22:32:10]line Чек 412 21.10.2024 22:32 [22:32:10]line Смена: 460 ФФД: 1.0 [22:32:10]line ЗНМ: 0300000155 [22:32:10]line РНМ: 0000000000100030 [22:32:10]line Версия ККМ: 001 [22:32:10]line ФМ: 0000000000965340 [22:32:10]line ФД: 187948 [22:32:10]line ФПД: 237508083529636 [22:32:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T223215&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187948&fm=237508083529636&tin=02508201610067®Number=0000000000100030&sum=50000 [22:32:10]written 0, free lines is 4095 [22:32:10]OFD Sender: Processing packet 187948 [packets to send 1062, broken 1061] [22:32:10]ProducePacketName [22:32:10]name=ofd_packets/00187948 [22:32:10]OFD Sender: To server: pG, [22:32:10]CommunicateWithHost lk.salyk.kg:30040 [22:32:10]ConnectInit lk.salyk.kg [22:32:11]Connected sock=10 [22:32:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 DC DD 07 01 79 7A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 01 00 00 F4 03 04 00 6F D6 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 2C DE 02 00 35 04 06 00 D8 03 28 F3 37 A4 3C 4C 3B CD 8A C0 AC 12 [22:32:11]Write to MH i2c: 01 00 00 E1 96 77 [22:32:11]Write i2c OK [22:32:11]MH_I2C_Read... [22:32:11]Read from MH i2c: 01 [22:32:11]MH_I2C_Read... [22:32:11]Read from MH i2c: 01 07 00 [22:32:11]MH_I2C_Read... [22:32:11]Read from MH i2c: 01 07 00 E1 96 00 00 00 00 00 52 0C DC [22:32:11]RasterBufferAndPrint [22:32:11]line [22:32:11]line [22:32:11]line [22:32:11]line [22:32:11]line [22:32:11]written 0, free lines is 3159 [22:32:11]MH_Cut [22:32:11]Write to MH i2c: D1 01 00 E8 96 01 50 [22:32:11]Write i2c OK [22:32:11]MH_I2C_Read... [22:32:11]Read from MH i2c: D1 [22:32:11]MH_I2C_Read... [22:32:11]Read from MH i2c: D1 01 00 [22:32:11]MH_I2C_Read... [22:32:11]Read from MH i2c: D1 01 00 E8 96 00 4F [22:32:11]Write to MH i2c: 01 00 00 E9 96 7F [22:32:11]Write i2c OK [22:32:11]MH_I2C_Read... [22:32:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 95 1C 47 00 03 9A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 2C DE 02 00 F4 03 04 00 5D 80 16 67 B6 04 01 00 00 7C EF F9 06 0A 00 04 9F [22:32:11]CommunicateWithHost err = 0 [22:32:11]CheckOFDResponse [22:32:11]1017 (14) - 77093643461234 [22:32:11]1041 (16) - 0000000000965340 [22:32:11]1040 (4) - 187948 [22:32:11]1012 (4) - 21.10.2024 16:25 [22:32:11]1206 (1) - 0 [22:32:11]OFD Sender: Remove packet 187948 [22:32:11]ProducePacketName [22:32:11]name=ofd_packets/00187948 [22:32:11]NVStorageDeleteData [22:32:12]OFD Sender: No OFD packet to send [22:32:12]*** Cut start [22:32:12]*** Partial cut [22:32:12]*** CUTSNS_PIN = 1 [22:32:12]*** CUTSNS_PIN = 0 [22:32:12]*** Brake cut motor [22:32:13]Read from MH i2c: 01 [22:32:13]MH_I2C_Read... [22:32:13]*** Stop cut motor [22:32:13]*** Cut end [22:32:13]Read from MH i2c: 01 07 00 [22:32:13]MH_I2C_Read... [22:32:13]Read from MH i2c: 01 07 00 E9 96 00 00 00 00 00 FF 0F 94 [22:32:13]process_action close_receipt done [22:32:13]requested_data is exist [22:32:13]produce_requested_data [22:32:13]requested_item fm.sn is exist - process it [22:32:13]wFMCommunicate request_size=4 [22:32:13]MH_SAM_APDU [22:32:13]CAPDU: 80 11 00 00 [22:32:13]Write to MH i2c: E2 08 00 EA 96 80 11 00 00 00 00 00 00 FA [22:32:13]Write i2c OK [22:32:13]MH_I2C_Read... [22:32:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:32:13]Read from MH i2c: E2 [22:32:13]MH_I2C_Read... [22:32:13]Read from MH i2c: E2 17 00 [22:32:13]MH_I2C_Read... [22:32:13]Read from MH i2c: E2 17 00 EA 96 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 48 [22:32:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [22:32:13]wFMCommunicate OK [22:32:13]requested_item fd.num is exist - process it [22:32:13]SAM_PROTO_GetFieldsCounters [22:32:13]wFMCommunicate request_size=4 [22:32:13]MH_SAM_APDU [22:32:13]CAPDU: 80 13 00 00 [22:32:13]Write to MH i2c: E2 08 00 EB 96 80 13 00 00 00 00 00 00 FD [22:32:13]Write i2c OK [22:32:13]MH_I2C_Read... [22:32:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:32:13]Read from MH i2c: E2 [22:32:13]MH_I2C_Read... [22:32:13]Read from MH i2c: E2 62 00 [22:32:13]MH_I2C_Read... [22:32:13]Read from MH i2c: E2 62 00 EB 96 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 2C DE 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 9C 01 00 00 5E 04 04 00 9C 01 00 00 57 04 04 00 9D 01 00 00 19 04 04 00 00 00 00 00 90 00 B4 [22:32:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 2C DE 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 9C 01 00 00 5E 04 04 00 9C 01 00 00 57 04 04 00 9D 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:32:13]wFMCommunicate OK [22:32:13]SAM_PROTO_GetFieldsCounters done [22:32:13]requested_item shift.num is exist - process it [22:32:13]requested_item shift.opened is exist - process it [22:32:13]req_shift_opened [22:32:13]FM_GetShiftState [22:32:13]SAM_PROTO_GetShiftState [22:32:13]wFMCommunicate request_size=4 [22:32:13]MH_SAM_APDU [22:32:13]CAPDU: 80 13 01 00 [22:32:13]Write to MH i2c: E2 08 00 EC 96 80 13 01 00 00 00 00 00 FF [22:32:13]Write i2c OK [22:32:13]MH_I2C_Read... [22:32:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:32:13]Read from MH i2c: E2 [22:32:13]MH_I2C_Read... [22:32:13]Read from MH i2c: E2 0E 00 [22:32:13]MH_I2C_Read... [22:32:13]Read from MH i2c: E2 0E 00 EC 96 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 5E [22:32:13]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [22:32:13]wFMCommunicate OK [22:32:13]SAM_PROTO_GetShiftState done [22:32:13]FM_GetShiftState done [22:32:13]req_shift_opened done [22:32:13]requested_item shift.open_date is exist - process it [22:32:13]req_shift_open_date [22:32:13]req_shift_open_date done [22:32:13]produce_requested_data done [22:32:13]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187948,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [22:32:13]process_action_free close_receipt [22:32:13]json_value_free [22:32:13]json_value_free done [22:32:13]process_json_proto returns [22:32:13]Send response to host [22:32:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187948,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [22:32:13]free response buf [22:32:13]execute_script done [22:32:13]execute_script returns [22:32:13]free content buf [22:32:13]Sock 9.Close socket [22:32:13]Sock 9.Thread stoped [22:32:17]OFD Sender: No OFD packet to send [22:32:22]OFD Sender: No OFD packet to send [22:32:27]OFD Sender: No OFD packet to send [22:32:32]OFD Sender: No OFD packet to send [22:32:37]OFD Sender: No OFD packet to send [22:32:42]OFD Sender: No OFD packet to send [22:32:47]OFD Sender: No OFD packet to send [22:32:52]OFD Sender: No OFD packet to send [22:32:57]OFD Sender: No OFD packet to send [22:33:02]OFD Sender: No OFD packet to send [22:33:07]OFD Sender: No OFD packet to send [22:33:12]OFD Sender: No OFD packet to send [22:33:17]OFD Sender: No OFD packet to send [22:33:22]OFD Sender: No OFD packet to send [22:33:27]OFD Sender: No OFD packet to send [22:33:32]OFD Sender: No OFD packet to send [22:33:37]OFD Sender: No OFD packet to send [22:33:42]OFD Sender: No OFD packet to send [22:33:47]OFD Sender: No OFD packet to send [22:33:52]OFD Sender: No OFD packet to send [22:33:57]OFD Sender: No OFD packet to send [22:34:02]OFD Sender: No OFD packet to send [22:34:07]OFD Sender: No OFD packet to send [22:34:12]OFD Sender: No OFD packet to send [22:34:17]OFD Sender: No OFD packet to send [22:34:22]OFD Sender: No OFD packet to send [22:34:27]OFD Sender: No OFD packet to send [22:34:32]OFD Sender: No OFD packet to send [22:34:37]OFD Sender: No OFD packet to send [22:34:42]OFD Sender: No OFD packet to send [22:34:47]OFD Sender: No OFD packet to send [22:34:52]OFD Sender: No OFD packet to send [22:34:57]OFD Sender: No OFD packet to send [22:35:02]OFD Sender: No OFD packet to send [22:35:07]OFD Sender: No OFD packet to send [22:35:12]OFD Sender: No OFD packet to send [22:35:17]OFD Sender: No OFD packet to send [22:35:22]OFD Sender: No OFD packet to send [22:35:27]OFD Sender: No OFD packet to send [22:35:32]OFD Sender: No OFD packet to send [22:35:37]OFD Sender: No OFD packet to send [22:35:42]OFD Sender: No OFD packet to send [22:35:47]OFD Sender: No OFD packet to send [22:35:53]OFD Sender: No OFD packet to send [22:35:58]OFD Sender: No OFD packet to send [22:36:03]OFD Sender: No OFD packet to send [22:36:08]OFD Sender: No OFD packet to send [22:36:13]OFD Sender: No OFD packet to send [22:36:18]OFD Sender: No OFD packet to send [22:36:23]OFD Sender: No OFD packet to send [22:36:28]OFD Sender: No OFD packet to send [22:36:33]OFD Sender: No OFD packet to send [22:36:38]OFD Sender: No OFD packet to send [22:36:43]OFD Sender: No OFD packet to send [22:36:48]OFD Sender: No OFD packet to send [22:36:53]OFD Sender: No OFD packet to send [22:36:58]OFD Sender: No OFD packet to send [22:37:03]OFD Sender: No OFD packet to send [22:37:08]OFD Sender: No OFD packet to send [22:37:13]OFD Sender: No OFD packet to send [22:37:18]OFD Sender: No OFD packet to send [22:37:23]OFD Sender: No OFD packet to send [22:37:28]OFD Sender: No OFD packet to send [22:37:33]OFD Sender: No OFD packet to send [22:37:38]OFD Sender: No OFD packet to send [22:37:43]OFD Sender: No OFD packet to send [22:37:48]OFD Sender: No OFD packet to send [22:37:53]OFD Sender: No OFD packet to send [22:37:58]OFD Sender: No OFD packet to send [22:38:03]OFD Sender: No OFD packet to send [22:38:08]OFD Sender: No OFD packet to send [22:38:12]accept exits with 8 [22:38:12]New connection [22:38:12]New thread 3067014500 created [22:38:12]Thread 3067157860 joined [22:38:12]Waiting for new connection... [22:38:12] Sock 8.Parse request [22:38:12]Sock 8.Check first char [22:38:12]Sock 8.First char is OK [22:38:12]request: POST /json_proto HTTP/1.0 [22:38:12]Method: POST [22:38:12]URL: /json_proto [22:38:12]Method is POST - this is cgi request [22:38:12]url: /json_proto [22:38:12]query_string will be loaded in cgi processing [22:38:12]execute_cgi json_proto POST (null) [22:38:12]execute_cgi path=json_proto method=POST [22:38:12]POST find Content-Length [22:38:12]Host: 172.17.42.131:8080 [22:38:12]Content-Length: 983 [22:38:12]Content-Type: application/json [22:38:12] [22:38:12]POST finish read [22:38:12]Found Content-Length = 983 [22:38:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210001", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 65.90, "quantity" : 30.350, "sum" : 2000.07, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0410\u0418-92\u000A\u043D\u043E\u043C\u0435\u0440 86\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 30.35 \u0441\u043E\u043C", "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" ] } } [22:38:12]execute_script... [22:38:12]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210001", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 65.90, "quantity" : 30.350, "sum" : 2000.07, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0410\u0418-92\u000A\u043D\u043E\u043C\u0435\u0440 86\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 30.35 \u0441\u043E\u043C", "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" ] } } [22:38:12]POST & json_proto [22:38:12]process_json_proto [22:38:12]json parsed OK: [22:38:12]protocol is kg_v1.0 [22:38:12]action value=close_receipt [22:38:12]process_action close_receipt [22:38:12]cmd_close_receipt [22:38:12]MH_GetDate [22:38:12]Write to MH i2c: F0 00 00 ED 96 72 [22:38:12]Write i2c OK [22:38:12]MH_I2C_Read... [22:38:12]Read from MH i2c: F0 [22:38:12]MH_I2C_Read... [22:38:12]Read from MH i2c: F0 09 00 [22:38:12]MH_I2C_Read... [22:38:12]Read from MH i2c: F0 09 00 ED 96 00 DA D7 16 67 A0 18 CA 66 91 [22:38:12]GetLastDocTimeStamp 1729549935 [22:38:12]current date 1729550298 [22:38:12]FM_GetShiftState [22:38:12]SAM_PROTO_GetShiftState [22:38:12]wFMCommunicate request_size=4 [22:38:12]MH_SAM_APDU [22:38:12]CAPDU: 80 13 01 00 [22:38:12]Write to MH i2c: E2 08 00 EE 96 80 13 01 00 00 00 00 00 01 [22:38:12]Write i2c OK [22:38:12]MH_I2C_Read... [22:38:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:38:12]Read from MH i2c: E2 [22:38:12]MH_I2C_Read... [22:38:12]Read from MH i2c: E2 0E 00 [22:38:12]MH_I2C_Read... [22:38:12]Read from MH i2c: E2 0E 00 EE 96 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 60 [22:38:12]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [22:38:12]wFMCommunicate OK [22:38:12]SAM_PROTO_GetShiftState done [22:38:12]FM_GetShiftState done [22:38:12]opened in 1729469754 [22:38:12]opened+sec_in_day 1729556154 [22:38:12]quantity*price = 200006 [22:38:12]sum+1 = 200008 [22:38:12]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.07 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.40 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 413 21.10.2024 22:38 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Дисконтная программа АИ-92 номер 86 сэкономлено 30.35 сом ФМ: 0000000000965340 ФД: 187949 ФПД: 199445127484835 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T223818&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187949&fm=199445127484835&tin=02508201610067®Number=0000000000100030&sum=200000 [22:38:13]StoreToDocumentArchive [22:38:13]shift 460 fd 187949 [22:38:13]save to /storage/0460/doc_00187949 [22:38:13]save last doc name /storage/0460/doc_00187949 to /storage/kkm_last_doc_name [22:38:13]save OK [22:38:13]Clear old archive folders... [22:38:13]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:38:13]tlvbuf is 01293500 [22:38:13]SAM_PROTO_ClearQueue [22:38:13]wFMCommunicate request_size=4 [22:38:13]MH_SAM_APDU [22:38:13]CAPDU: 80 09 00 00 [22:38:13]Write to MH i2c: E2 08 00 FB 96 80 09 00 00 00 00 00 00 03 [22:38:13]Write i2c OK [22:38:13]MH_I2C_Read... [22:38:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:38:13]Read from MH i2c: E2 [22:38:13]MH_I2C_Read... [22:38:13]Read from MH i2c: E2 03 00 [22:38:13]MH_I2C_Read... [22:38:13]Read from MH i2c: E2 03 00 FB 96 00 90 00 05 [22:38:13]RAPDU: 90 00 [22:38:13]wFMCommunicate OK [22:38:13]SAM_PROTO_ClearQueue done [22:38:13]KKMCreateOFDPacket [22:38:13]OFDProtocolAddRootSTLVToBuf [22:38:13]FM_MakeSignedData [22:38:13]FM_MakeSignedData [22:38:13]SAM_PROTO_SignData [22:38:13]wFMCommunicate request_size=4 [22:38:13]MH_SAM_APDU [22:38:13]CAPDU: 80 0D 01 02 [22:38:13]Write to MH i2c: E2 08 00 FC 96 80 0D 01 02 00 00 00 00 0B [22:38:13]Write i2c OK [22:38:13]MH_I2C_Read... [22:38:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:38:13]Read from MH i2c: E2 [22:38:13]MH_I2C_Read... [22:38:13]Read from MH i2c: E2 03 00 [22:38:13]MH_I2C_Read... [22:38:13]Read from MH i2c: E2 03 00 FC 96 00 90 00 06 [22:38:13]RAPDU: 90 00 [22:38:13]wFMCommunicate OK [22:38:13]wFMCommunicate request_size=255 [22:38:13]MH_SAM_APDU [22:38: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 33 FF 03 08 00 03 8E 76 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 47 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 F8 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 9D 01 00 00 F4 03 04 00 DA D7 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 2D DE 02 00 35 04 06 00 B5 [22:38:13]Write to MH i2c: E2 02 01 FD 96 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 8E 76 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 47 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 F8 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 9D 01 00 00 F4 03 04 00 DA D7 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 2D DE 02 00 35 04 06 00 B5 00 00 60 [22:38:13]Write i2c OK [22:38:13]MH_I2C_Read... [22:38:13]OFD Sender: No OFD packet to send [22:38:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:38:13]Read from MH i2c: E2 [22:38:13]MH_I2C_Read... [22:38:13]Read from MH i2c: E2 03 00 [22:38:13]MH_I2C_Read... [22:38:13]Read from MH i2c: E2 03 00 FD 96 00 90 00 07 [22:38:13]RAPDU: 90 00 [22:38:13]wFMCommunicate OK [22:38:13]wFMCommunicate request_size=10 [22:38:13]MH_SAM_APDU [22:38:13]CAPDU: 80 0D 02 02 05 64 EF F9 D5 A3 [22:38:13]Write to MH i2c: E2 0D 00 FE 96 80 0D 02 02 05 00 64 EF F9 D5 A3 00 00 DC [22:38:13]Write i2c OK [22:38:13]MH_I2C_Read... [22:38:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:38:13]Read from MH i2c: E2 [22:38:13]MH_I2C_Read... [22:38:13]Read from MH i2c: E2 03 00 [22:38:13]MH_I2C_Read... [22:38:13]Read from MH i2c: E2 03 00 FE 96 00 90 00 08 [22:38:13]RAPDU: 90 00 [22:38:13]wFMCommunicate OK [22:38:13]wFMCommunicate request_size=4 [22:38:13]MH_SAM_APDU [22:38:13]CAPDU: 80 0D 03 02 [22:38:13]Write to MH i2c: E2 08 00 FF 96 80 0D 03 02 00 00 00 00 10 [22:38:13]Write i2c OK [22:38:13]MH_I2C_Read... [22:38:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:38:13]Read from MH i2c: E2 [22:38:13]MH_I2C_Read... [22:38:13]Read from MH i2c: E2 0B 00 [22:38:13]MH_I2C_Read... [22:38:13]Read from MH i2c: E2 0B 00 FF 96 00 FF 86 8D 5D F6 DA 54 08 90 00 AC [22:38:13]RAPDU: FF 86 8D 5D F6 DA 54 08 90 00 [22:38:13]wFMCommunicate OK [22:38:13]SAM_PROTO_SignData done [22:38:13]FM_MakeSignedData done [22:38:13]CreateOFDProtocolMessage [22:38:13]wFMCommunicate request_size=4 [22:38:13]MH_SAM_APDU [22:38:13]CAPDU: 80 11 00 00 [22:38:13]Write to MH i2c: E2 08 00 00 97 80 11 00 00 00 00 00 00 11 [22:38:13]Write i2c OK [22:38:13]MH_I2C_Read... [22:38:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:38:13]Read from MH i2c: E2 [22:38:13]MH_I2C_Read... [22:38:13]Read from MH i2c: E2 17 00 [22:38:13]MH_I2C_Read... [22:38:13]Read from MH i2c: E2 17 00 00 97 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 5F [22:38:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [22:38:13]wFMCommunicate OK [22:38:13]CreateOFDProtocolMessage done [22:38:13]OFDSenderStorePacket 187949 [22:38:13]StoreOFDPacket docnum=187949 [22:38:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 E8 7C 07 01 FC 4E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 8E 76 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 47 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 F8 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 9D 01 00 00 F4 03 04 00 DA D7 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 2D DE 02 00 35 04 06 00 B5 64 EF F9 D5 A3 FF 86 8D 5D F6 DA 54 08 [22:38:13]CheckFolder [22:38:13]dirname=/storage/ofd_packets [22:38:13]CheckFolder done [22:38:13]ProducePacketName [22:38:13]name=ofd_packets/00187949 [22:38:13]NVStorageSaveData ofd_packets/00187949 [22:38:13]File name is /storage/ofd_packets/00187949 [22:38:13]Write 301 bytes [22:38:13]NVStorageSaveData done [22:38:13]OFDSenderStorePacket done [22:38:13]KKMCreateOFDPacket done [22:38:13]NVStorageSaveData kkm_last_timestamp [22:38:13]File name is /storage/kkm_last_timestamp [22:38:13]Write 4 bytes [22:38:13]NVStorageSaveData done [22:38:14]ExternCall_PrintAddStr [22:38:14]wPrintStart [22:38:14]Write to MH i2c: 01 00 00 01 97 98 [22:38:14]Write i2c OK [22:38:14]MH_I2C_Read... [22:38:14]Read from MH i2c: 01 [22:38:14]MH_I2C_Read... [22:38:14]Read from MH i2c: 01 07 00 [22:38:14]MH_I2C_Read... [22:38:14]Read from MH i2c: 01 07 00 01 97 00 00 00 00 00 FF 0F AD [22:38:14]RasterBufferAndPrint [22:38:14]line Счет N : (1)210001 [22:38:14]line ИНН: 02508201610067 [22:38:14]line Контрольно-Кассовый Чек [22:38:14]line ПРОДАЖА [22:38:14]line ТРК (МРК, ГНК) : 32 [22:38:14]line Товар: 2710124130 [22:38:14]line Аи-92-К-3 [22:38:14]line 30.350 * 65.90 [22:38:14]line = 2000.07 [22:38:14]line НДС 12% НСП 1% [22:38:14]line > о реализуемом товаре [22:38:14]line ОКРУГЛЕНИЕ: -0.07 [22:38:14]line ИТОГО: 2000.00 [22:38:14]line Внесено: 2000.00 [22:38:14]line СДАЧА: 0.00 [22:38:14]line НСП 1% : 17.70 [22:38:14]line НДС 12% : 212.40 [22:38:14]line Наличными: 2000.00 [22:38:14]line Безнал.: 0.00 [22:38:14]line Место: АЗС № 86 "Партнер Нефть" [22:38:14]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [22:38:14]line СНО: Общий режим [22:38:14]line Чек 413 21.10.2024 22:38 [22:38:14]line Смена: 460 ФФД: 1.0 [22:38:14]line ЗНМ: 0300000155 [22:38:14]line РНМ: 0000000000100030 [22:38:14]line Версия ККМ: 001 [22:38:14]line [22:38:14]line Дисконтная программа [22:38:14]line АИ-92 [22:38:14]line номер 86 [22:38:14]line сэкономлено 30.35 сом [22:38:14]line ФМ: 0000000000965340 [22:38:14]line ФД: 187949 [22:38:14]line ФПД: 199445127484835 [22:38:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T223818&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187949&fm=199445127484835&tin=02508201610067®Number=0000000000100030&sum=200000 [22:38:14]OFD Sender: Processing packet 187949 [packets to send 1062, broken 1061] [22:38:14]ProducePacketName [22:38:14]name=ofd_packets/00187949 [22:38:14]OFD Sender: To server: pG, [22:38:14]CommunicateWithHost lk.salyk.kg:30040 [22:38:14]ConnectInit lk.salyk.kg [22:38:14]written 0, free lines is 4095 [22:38:14]Connected sock=10 [22:38:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 E8 7C 07 01 FC 4E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 8E 76 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 47 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 F8 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 9D 01 00 00 F4 03 04 00 DA D7 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 2D DE 02 00 35 04 06 00 B5 64 EF F9 D5 A3 FF 86 8D 5D F6 DA 54 08 [22:38:14]Write to MH i2c: 01 00 00 31 97 C8 [22:38:14]Write i2c OK [22:38:14]MH_I2C_Read... [22:38:14]Read from MH i2c: 01 [22:38:14]MH_I2C_Read... [22:38:14]Read from MH i2c: 01 07 00 [22:38:14]MH_I2C_Read... [22:38:14]Read from MH i2c: 01 07 00 31 97 00 00 00 00 00 E3 0B BD [22:38:14]RasterBufferAndPrint [22:38:14]line [22:38:14]line [22:38:14]line [22:38:14]line [22:38:14]line [22:38:14]written 0, free lines is 3046 [22:38:14]MH_Cut [22:38:14]Write to MH i2c: D1 01 00 38 97 01 A1 [22:38:14]Write i2c OK [22:38:14]MH_I2C_Read... [22:38:14]Read from MH i2c: D1 [22:38:14]MH_I2C_Read... [22:38:14]Read from MH i2c: D1 01 00 [22:38:14]MH_I2C_Read... [22:38:14]Read from MH i2c: D1 01 00 38 97 00 A0 [22:38:14]Write to MH i2c: 01 00 00 39 97 D0 [22:38:14]Write i2c OK [22:38:14]MH_I2C_Read... [22:38:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 76 18 47 00 5F 4A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 2D DE 02 00 F4 03 04 00 C9 81 16 67 B6 04 01 00 00 FE 48 78 94 DD A6 00 2A [22:38:14]CommunicateWithHost err = 0 [22:38:14]CheckOFDResponse [22:38:14]1017 (14) - 77093643461234 [22:38:14]1041 (16) - 0000000000965340 [22:38:14]1040 (4) - 187949 [22:38:14]1012 (4) - 21.10.2024 16:31 [22:38:14]1206 (1) - 0 [22:38:14]OFD Sender: Remove packet 187949 [22:38:14]ProducePacketName [22:38:14]name=ofd_packets/00187949 [22:38:14]NVStorageDeleteData [22:38:15]OFD Sender: No OFD packet to send [22:38:15]*** Cut start [22:38:15]*** Partial cut [22:38:15]*** CUTSNS_PIN = 1 [22:38:15]*** CUTSNS_PIN = 0 [22:38:16]*** Brake cut motor [22:38:16]Read from MH i2c: 01 [22:38:16]MH_I2C_Read... [22:38:16]*** Stop cut motor [22:38:16]*** Cut end [22:38:16]Read from MH i2c: 01 07 00 [22:38:16]MH_I2C_Read... [22:38:16]Read from MH i2c: 01 07 00 39 97 00 00 00 00 00 FF 0F E5 [22:38:16]process_action close_receipt done [22:38:16]requested_data is exist [22:38:16]produce_requested_data [22:38:16]requested_item fm.sn is exist - process it [22:38:16]wFMCommunicate request_size=4 [22:38:16]MH_SAM_APDU [22:38:16]CAPDU: 80 11 00 00 [22:38:16]Write to MH i2c: E2 08 00 3A 97 80 11 00 00 00 00 00 00 4B [22:38:16]Write i2c OK [22:38:16]MH_I2C_Read... [22:38:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:38:16]Read from MH i2c: E2 [22:38:16]MH_I2C_Read... [22:38:16]Read from MH i2c: E2 17 00 [22:38:16]MH_I2C_Read... [22:38:16]Read from MH i2c: E2 17 00 3A 97 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 99 [22:38:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [22:38:16]wFMCommunicate OK [22:38:16]requested_item fd.num is exist - process it [22:38:16]SAM_PROTO_GetFieldsCounters [22:38:16]wFMCommunicate request_size=4 [22:38:16]MH_SAM_APDU [22:38:16]CAPDU: 80 13 00 00 [22:38:16]Write to MH i2c: E2 08 00 3B 97 80 13 00 00 00 00 00 00 4E [22:38:16]Write i2c OK [22:38:16]MH_I2C_Read... [22:38:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:38:16]Read from MH i2c: E2 [22:38:16]MH_I2C_Read... [22:38:16]Read from MH i2c: E2 62 00 [22:38:16]MH_I2C_Read... [22:38:16]Read from MH i2c: E2 62 00 3B 97 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 2D DE 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 9D 01 00 00 5E 04 04 00 9D 01 00 00 57 04 04 00 9E 01 00 00 19 04 04 00 00 00 00 00 90 00 09 [22:38:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 2D DE 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 9D 01 00 00 5E 04 04 00 9D 01 00 00 57 04 04 00 9E 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:38:16]wFMCommunicate OK [22:38:16]SAM_PROTO_GetFieldsCounters done [22:38:16]requested_item shift.num is exist - process it [22:38:16]requested_item shift.opened is exist - process it [22:38:16]req_shift_opened [22:38:16]FM_GetShiftState [22:38:16]SAM_PROTO_GetShiftState [22:38:16]wFMCommunicate request_size=4 [22:38:16]MH_SAM_APDU [22:38:16]CAPDU: 80 13 01 00 [22:38:16]Write to MH i2c: E2 08 00 3C 97 80 13 01 00 00 00 00 00 50 [22:38:16]Write i2c OK [22:38:16]MH_I2C_Read... [22:38:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:38:16]Read from MH i2c: E2 [22:38:16]MH_I2C_Read... [22:38:16]Read from MH i2c: E2 0E 00 [22:38:16]MH_I2C_Read... [22:38:16]Read from MH i2c: E2 0E 00 3C 97 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 AF [22:38:16]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [22:38:16]wFMCommunicate OK [22:38:16]SAM_PROTO_GetShiftState done [22:38:16]FM_GetShiftState done [22:38:16]req_shift_opened done [22:38:16]requested_item shift.open_date is exist - process it [22:38:16]req_shift_open_date [22:38:16]req_shift_open_date done [22:38:16]produce_requested_data done [22:38:16]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187949,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [22:38:16]process_action_free close_receipt [22:38:16]json_value_free [22:38:16]json_value_free done [22:38:16]process_json_proto returns [22:38:16]Send response to host [22:38:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187949,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [22:38:16]free response buf [22:38:16]execute_script done [22:38:16]execute_script returns [22:38:16]free content buf [22:38:16]Sock 8.Close socket [22:38:16]Sock 8.Thread stoped [22:38:20]OFD Sender: No OFD packet to send [22:38:25]OFD Sender: No OFD packet to send [22:38:30]OFD Sender: No OFD packet to send [22:38:35]OFD Sender: No OFD packet to send [22:38:40]OFD Sender: No OFD packet to send [22:38:45]OFD Sender: No OFD packet to send [22:38:50]OFD Sender: No OFD packet to send [22:38:55]OFD Sender: No OFD packet to send [22:39:00]OFD Sender: No OFD packet to send [22:39:05]OFD Sender: No OFD packet to send [22:39:10]OFD Sender: No OFD packet to send [22:39:15]OFD Sender: No OFD packet to send [22:39:20]OFD Sender: No OFD packet to send [22:39:25]OFD Sender: No OFD packet to send [22:39:30]OFD Sender: No OFD packet to send [22:39:35]OFD Sender: No OFD packet to send [22:39:40]OFD Sender: No OFD packet to send [22:39:45]OFD Sender: No OFD packet to send [22:39:50]OFD Sender: No OFD packet to send [22:39:55]OFD Sender: No OFD packet to send [22:40:00]OFD Sender: No OFD packet to send [22:40:05]OFD Sender: No OFD packet to send [22:40:10]OFD Sender: No OFD packet to send [22:40:15]OFD Sender: No OFD packet to send [22:40:20]OFD Sender: No OFD packet to send [22:40:25]OFD Sender: No OFD packet to send [22:40:30]OFD Sender: No OFD packet to send [22:40:35]OFD Sender: No OFD packet to send [22:40:40]OFD Sender: No OFD packet to send [22:40:45]OFD Sender: No OFD packet to send [22:40:50]OFD Sender: No OFD packet to send [22:40:55]OFD Sender: No OFD packet to send [22:41:00]OFD Sender: No OFD packet to send [22:41:05]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:31]OFD Sender: No OFD packet to send [22:41:36]OFD Sender: No OFD packet to send [22:41:41]OFD Sender: No OFD packet to send [22:41:46]OFD Sender: No OFD packet to send [22:41:51]OFD Sender: No OFD packet to send [22:41:56]OFD Sender: No OFD packet to send [22:42:01]OFD Sender: No OFD packet to send [22:42:06]OFD Sender: No OFD packet to send [22:42:11]OFD Sender: No OFD packet to send [22:42:16]OFD Sender: No OFD packet to send [22:42:21]OFD Sender: No OFD packet to send [22:42:26]OFD Sender: No OFD packet to send [22:42:31]OFD Sender: No OFD packet to send [22:42:36]OFD Sender: No OFD packet to send [22:42:41]OFD Sender: No OFD packet to send [22:42:46]OFD Sender: No OFD packet to send [22:42:51]OFD Sender: No OFD packet to send [22:42:56]OFD Sender: No OFD packet to send [22:43:01]OFD Sender: No OFD packet to send [22:43:06]OFD Sender: No OFD packet to send [22:43:11]OFD Sender: No OFD packet to send [22:43:16]OFD Sender: No OFD packet to send [22:43:21]OFD Sender: No OFD packet to send [22:43:26]OFD Sender: No OFD packet to send [22:43:31]OFD Sender: No OFD packet to send [22:43:36]OFD Sender: No OFD packet to send [22:43:41]OFD Sender: No OFD packet to send [22:43:46]OFD Sender: No OFD packet to send [22:43:51]OFD Sender: No OFD packet to send [22:43:56]OFD Sender: No OFD packet to send [22:44:01]OFD Sender: No OFD packet to send [22:44:06]OFD Sender: No OFD packet to send [22:44:11]OFD Sender: No OFD packet to send [22:44:16]OFD Sender: No OFD packet to send [22:44:21]OFD Sender: No OFD packet to send [22:44:26]OFD Sender: No OFD packet to send [22:44:31]OFD Sender: No OFD packet to send [22:44:36]OFD Sender: No OFD packet to send [22:44:41]OFD Sender: No OFD packet to send [22:44:46]OFD Sender: No OFD packet to send [22:44:51]OFD Sender: No OFD packet to send [22:44:56]OFD Sender: No OFD packet to send [22:45:02]OFD Sender: No OFD packet to send [22:45:07]OFD Sender: No OFD packet to send [22:45:12]OFD Sender: No OFD packet to send [22:45:17]OFD Sender: No OFD packet to send [22:45:22]OFD Sender: No OFD packet to send [22:45:27]OFD Sender: No OFD packet to send [22:45:32]OFD Sender: No OFD packet to send [22:45:37]OFD Sender: No OFD packet to send [22:45:42]OFD Sender: No OFD packet to send [22:45:47]OFD Sender: No OFD packet to send [22:45:52]OFD Sender: No OFD packet to send [22:45:57]OFD Sender: No OFD packet to send [22:46:02]OFD Sender: No OFD packet to send [22:46:07]OFD Sender: No OFD packet to send [22:46:12]OFD Sender: No OFD packet to send [22:46:17]OFD Sender: No OFD packet to send [22:46:22]OFD Sender: No OFD packet to send [22:46:27]OFD Sender: No OFD packet to send [22:46:32]OFD Sender: No OFD packet to send [22:46:37]OFD Sender: No OFD packet to send [22:46:42]OFD Sender: No OFD packet to send [22:46:47]OFD Sender: No OFD packet to send [22:46:52]OFD Sender: No OFD packet to send [22:46:57]OFD Sender: No OFD packet to send [22:47:02]OFD Sender: No OFD packet to send [22:47:07]OFD Sender: No OFD packet to send [22:47:12]OFD Sender: No OFD packet to send [22:47:17]OFD Sender: No OFD packet to send [22:47:22]OFD Sender: No OFD packet to send [22:47:27]OFD Sender: No OFD packet to send [22:47:32]OFD Sender: No OFD packet to send [22:47:37]OFD Sender: No OFD packet to send [22:47:42]OFD Sender: No OFD packet to send [22:47:47]OFD Sender: No OFD packet to send [22:47:52]OFD Sender: No OFD packet to send [22:47:57]OFD Sender: No OFD packet to send [22:48:02]OFD Sender: No OFD packet to send [22:48:07]OFD Sender: No OFD packet to send [22:48:12]OFD Sender: No OFD packet to send [22:48:17]OFD Sender: No OFD packet to send [22:48:22]OFD Sender: No OFD packet to send [22:48:27]OFD Sender: No OFD packet to send [22:48:32]OFD Sender: No OFD packet to send [22:48:37]OFD Sender: No OFD packet to send [22:48:42]OFD Sender: No OFD packet to send [22:48:48]OFD Sender: No OFD packet to send [22:48:53]OFD Sender: No OFD packet to send [22:48:58]OFD Sender: No OFD packet to send [22:49:03]OFD Sender: No OFD packet to send [22:49:08]OFD Sender: No OFD packet to send [22:49:13]OFD Sender: No OFD packet to send [22:49:18]OFD Sender: No OFD packet to send [22:49:23]OFD Sender: No OFD packet to send [22:49:28]OFD Sender: No OFD packet to send [22:49:33]OFD Sender: No OFD packet to send [22:49:38]OFD Sender: No OFD packet to send [22:49:43]OFD Sender: No OFD packet to send [22:49:48]OFD Sender: No OFD packet to send [22:49:53]OFD Sender: No OFD packet to send [22:49:58]OFD Sender: No OFD packet to send [22:50:03]OFD Sender: No OFD packet to send [22:50:08]OFD Sender: No OFD packet to send [22:50:13]OFD Sender: No OFD packet to send [22:50:18]OFD Sender: No OFD packet to send [22:50:23]OFD Sender: No OFD packet to send [22:50:28]OFD Sender: No OFD packet to send [22:50:33]OFD Sender: No OFD packet to send [22:50:38]OFD Sender: No OFD packet to send [22:50:43]OFD Sender: No OFD packet to send [22:50:48]OFD Sender: No OFD packet to send [22:50:53]OFD Sender: No OFD packet to send [22:50:58]OFD Sender: No OFD packet to send [22:51:03]OFD Sender: No OFD packet to send [22:51:08]OFD Sender: No OFD packet to send [22:51:13]OFD Sender: No OFD packet to send [22:51:18]OFD Sender: No OFD packet to send [22:51:23]OFD Sender: No OFD packet to send [22:51:28]OFD Sender: No OFD packet to send [22:51:33]OFD Sender: No OFD packet to send [22:51:38]OFD Sender: No OFD packet to send [22:51:43]OFD Sender: No OFD packet to send [22:51:48]OFD Sender: No OFD packet to send [22:51:53]OFD Sender: No OFD packet to send [22:51:58]OFD Sender: No OFD packet to send [22:52:03]accept exits with 9 [22:52:03]New connection [22:52:03]New thread 3067157860 created [22:52:03]Thread 3067014500 joined [22:52:03]Waiting for new connection... [22:52:03] Sock 9.Parse request [22:52:03]Sock 9.Check first char [22:52:03]Sock 9.First char is OK [22:52:03]request: POST /json_proto HTTP/1.0 [22:52:03]Method: POST [22:52:03]URL: /json_proto [22:52:03]Method is POST - this is cgi request [22:52:03]url: /json_proto [22:52:03]query_string will be loaded in cgi processing [22:52:03]execute_cgi json_proto POST (null) [22:52:03]execute_cgi path=json_proto method=POST [22:52:03]POST find Content-Length [22:52:03]Host: 172.17.42.131:8080 [22:52:03]Content-Length: 682 [22:52:03]Content-Type: application/json [22:52:03] [22:52:03]POST finish read [22:52:03]Found Content-Length = 682 [22:52:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210003", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:52:03]execute_script... [22:52: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)210003", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:52:03]POST & json_proto [22:52:03]process_json_proto [22:52:03]json parsed OK: [22:52:03]protocol is kg_v1.0 [22:52:03]action value=close_receipt [22:52:03]process_action close_receipt [22:52:03]cmd_close_receipt [22:52:03]MH_GetDate [22:52:03]Write to MH i2c: F0 00 00 3D 97 C3 [22:52:03]Write i2c OK [22:52:03]MH_I2C_Read... [22:52:03]Read from MH i2c: F0 [22:52:03]MH_I2C_Read... [22:52:03]Read from MH i2c: F0 09 00 [22:52:03]MH_I2C_Read... [22:52:03]Read from MH i2c: F0 09 00 3D 97 00 19 DB 16 67 A0 18 CA 66 25 [22:52:03]GetLastDocTimeStamp 1729550298 [22:52:03]current date 1729551129 [22:52:03]FM_GetShiftState [22:52:03]SAM_PROTO_GetShiftState [22:52:03]wFMCommunicate request_size=4 [22:52:03]MH_SAM_APDU [22:52:03]CAPDU: 80 13 01 00 [22:52:03]Write to MH i2c: E2 08 00 3E 97 80 13 01 00 00 00 00 00 52 [22:52:03]Write i2c OK [22:52:03]MH_I2C_Read... [22:52:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:52:03]Read from MH i2c: E2 [22:52:03]MH_I2C_Read... [22:52:03]Read from MH i2c: E2 0E 00 [22:52:03]MH_I2C_Read... [22:52:03]Read from MH i2c: E2 0E 00 3E 97 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 B1 [22:52:03]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [22:52:03]wFMCommunicate OK [22:52:03]SAM_PROTO_GetShiftState done [22:52:03]FM_GetShiftState done [22:52:03]opened in 1729469754 [22:52:03]opened+sec_in_day 1729556154 [22:52:03]quantity*price = 100021 [22:52:03]sum+1 = 100023 [22:52:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 414 21.10.2024 22:52 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 187950 ФПД: 211199325205107 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T225209&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187950&fm=211199325205107&tin=02508201610067®Number=0000000000100030&sum=100000 [22:52:04]StoreToDocumentArchive [22:52:04]shift 460 fd 187950 [22:52:04]save to /storage/0460/doc_00187950 [22:52:04]save last doc name /storage/0460/doc_00187950 to /storage/kkm_last_doc_name [22:52:04]save OK [22:52:04]Clear old archive folders... [22:52:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:52:04]tlvbuf is 01375440 [22:52:04]SAM_PROTO_ClearQueue [22:52:04]wFMCommunicate request_size=4 [22:52:04]MH_SAM_APDU [22:52:04]CAPDU: 80 09 00 00 [22:52:04]Write to MH i2c: E2 08 00 4B 97 80 09 00 00 00 00 00 00 54 [22:52:04]Write i2c OK [22:52:04]MH_I2C_Read... [22:52:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:52:04]Read from MH i2c: E2 [22:52:04]MH_I2C_Read... [22:52:04]Read from MH i2c: E2 03 00 [22:52:04]MH_I2C_Read... [22:52:04]Read from MH i2c: E2 03 00 4B 97 00 90 00 56 [22:52:04]RAPDU: 90 00 [22:52:04]wFMCommunicate OK [22:52:04]SAM_PROTO_ClearQueue done [22:52:04]KKMCreateOFDPacket [22:52:04]OFDProtocolAddRootSTLVToBuf [22:52:04]FM_MakeSignedData [22:52:04]FM_MakeSignedData [22:52:04]SAM_PROTO_SignData [22:52:04]wFMCommunicate request_size=4 [22:52:04]MH_SAM_APDU [22:52:04]CAPDU: 80 0D 01 02 [22:52:04]Write to MH i2c: E2 08 00 4C 97 80 0D 01 02 00 00 00 00 5C [22:52:04]Write i2c OK [22:52:04]MH_I2C_Read... [22:52:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:52:04]Read from MH i2c: E2 [22:52:04]MH_I2C_Read... [22:52:04]Read from MH i2c: E2 03 00 [22:52:04]MH_I2C_Read... [22:52:04]Read from MH i2c: E2 03 00 4C 97 00 90 00 57 [22:52:04]RAPDU: 90 00 [22:52:04]wFMCommunicate OK [22:52:04]wFMCommunicate request_size=255 [22:52:04]MH_SAM_APDU [22:52:04]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9E 01 00 00 F4 03 04 00 19 DB 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 2E DE 02 00 35 04 06 00 C0 [22:52:04]Write to MH i2c: E2 02 01 4D 97 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9E 01 00 00 F4 03 04 00 19 DB 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 2E DE 02 00 35 04 06 00 C0 00 00 97 [22:52:04]Write i2c OK [22:52:04]MH_I2C_Read... [22:52:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:52:04]Read from MH i2c: E2 [22:52:04]MH_I2C_Read... [22:52:04]Read from MH i2c: E2 03 00 [22:52:04]MH_I2C_Read... [22:52:04]Read from MH i2c: E2 03 00 4D 97 00 90 00 58 [22:52:04]RAPDU: 90 00 [22:52:04]wFMCommunicate OK [22:52:04]wFMCommunicate request_size=10 [22:52:04]MH_SAM_APDU [22:52:04]CAPDU: 80 0D 02 02 05 15 AC C1 72 73 [22:52:04]Write to MH i2c: E2 0D 00 4E 97 80 0D 02 02 05 00 15 AC C1 72 73 00 00 D0 [22:52:04]Write i2c OK [22:52:04]MH_I2C_Read... [22:52:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:52:04]Read from MH i2c: E2 [22:52:04]MH_I2C_Read... [22:52:04]Read from MH i2c: E2 03 00 [22:52:04]MH_I2C_Read... [22:52:04]Read from MH i2c: E2 03 00 4E 97 00 90 00 59 [22:52:04]RAPDU: 90 00 [22:52:04]wFMCommunicate OK [22:52:04]wFMCommunicate request_size=4 [22:52:04]MH_SAM_APDU [22:52:04]CAPDU: 80 0D 03 02 [22:52:04]Write to MH i2c: E2 08 00 4F 97 80 0D 03 02 00 00 00 00 61 [22:52:04]Write i2c OK [22:52:04]MH_I2C_Read... [22:52:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:52:04]Read from MH i2c: E2 [22:52:04]MH_I2C_Read... [22:52:04]Read from MH i2c: E2 0B 00 [22:52:04]MH_I2C_Read... [22:52:04]Read from MH i2c: E2 0B 00 4F 97 00 9F 70 BB 95 F8 95 E2 19 90 00 49 [22:52:04]RAPDU: 9F 70 BB 95 F8 95 E2 19 90 00 [22:52:04]wFMCommunicate OK [22:52:05]SAM_PROTO_SignData done [22:52:05]FM_MakeSignedData done [22:52:05]CreateOFDProtocolMessage [22:52:05]wFMCommunicate request_size=4 [22:52:05]MH_SAM_APDU [22:52:05]CAPDU: 80 11 00 00 [22:52:05]Write to MH i2c: E2 08 00 50 97 80 11 00 00 00 00 00 00 61 [22:52:05]Write i2c OK [22:52:05]MH_I2C_Read... [22:52:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:52:05]Read from MH i2c: E2 [22:52:05]MH_I2C_Read... [22:52:05]Read from MH i2c: E2 17 00 [22:52:05]MH_I2C_Read... [22:52:05]Read from MH i2c: E2 17 00 50 97 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 AF [22:52:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [22:52:05]wFMCommunicate OK [22:52:05]CreateOFDProtocolMessage done [22:52:05]OFDSenderStorePacket 187950 [22:52:05]StoreOFDPacket docnum=187950 [22:52:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 85 50 07 01 E9 42 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9E 01 00 00 F4 03 04 00 19 DB 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 2E DE 02 00 35 04 06 00 C0 15 AC C1 72 73 9F 70 BB 95 F8 95 E2 19 [22:52:05]CheckFolder [22:52:05]dirname=/storage/ofd_packets [22:52:05]CheckFolder done [22:52:05]ProducePacketName [22:52:05]name=ofd_packets/00187950 [22:52:05]NVStorageSaveData ofd_packets/00187950 [22:52:05]File name is /storage/ofd_packets/00187950 [22:52:05]Write 301 bytes [22:52:05]NVStorageSaveData done [22:52:05]OFDSenderStorePacket done [22:52:05]KKMCreateOFDPacket done [22:52:05]NVStorageSaveData kkm_last_timestamp [22:52:05]File name is /storage/kkm_last_timestamp [22:52:05]Write 4 bytes [22:52:05]NVStorageSaveData done [22:52:05]ExternCall_PrintAddStr [22:52:05]wPrintStart [22:52:05]Write to MH i2c: 01 00 00 51 97 E8 [22:52:05]Write i2c OK [22:52:05]MH_I2C_Read... [22:52:05]Read from MH i2c: 01 [22:52:05]MH_I2C_Read... [22:52:05]Read from MH i2c: 01 07 00 [22:52:05]MH_I2C_Read... [22:52:05]Read from MH i2c: 01 07 00 51 97 00 00 00 00 00 FF 0F FD [22:52:05]RasterBufferAndPrint [22:52:05]line Счет N : (1)210003 [22:52:05]line ИНН: 02508201610067 [22:52:05]line Контрольно-Кассовый Чек [22:52:05]line ПРОДАЖА [22:52:05]line ТРК (МРК, ГНК) : 33 [22:52:05]line Товар: 2710124500 [22:52:05]line Аи-95-К-3 [22:52:05]line 13.480 * 74.20 [22:52:05]line = 1000.22 [22:52:05]line НДС 12% НСП 1% [22:52:05]line > о реализуемом товаре [22:52:05]line ОКРУГЛЕНИЕ: -0.22 [22:52:05]line ИТОГО: 1000.00 [22:52:05]line Внесено: 1000.00 [22:52:05]line СДАЧА: 0.00 [22:52:05]line НСП 1% : 8.85 [22:52:05]line НДС 12% : 106.22 [22:52:05]line Наличными: 1000.00 [22:52:05]line Безнал.: 0.00 [22:52:05]line Место: АЗС № 86 "Партнер Нефть" [22:52:05]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [22:52:05]line СНО: Общий режим [22:52:05]line Чек 414 21.10.2024 22:52 [22:52:05]line Смена: 460 ФФД: 1.0 [22:52:05]line ЗНМ: 0300000155 [22:52:05]line РНМ: 0000000000100030 [22:52:05]line Версия ККМ: 001 [22:52:05]line ФМ: 0000000000965340 [22:52:05]line ФД: 187950 [22:52:05]line ФПД: 211199325205107 [22:52:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T225209&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187950&fm=211199325205107&tin=02508201610067®Number=0000000000100030&sum=100000 [22:52:05]written 0, free lines is 4095 [22:52:05]OFD Sender: Processing packet 187950 [packets to send 1062, broken 1061] [22:52:05]ProducePacketName [22:52:05]name=ofd_packets/00187950 [22:52:05]OFD Sender: To server: pG, [22:52:05]CommunicateWithHost lk.salyk.kg:30040 [22:52:05]ConnectInit lk.salyk.kg [22:52:05]Write to MH i2c: 01 00 00 7C 97 13 [22:52:05]Write i2c OK [22:52:05]MH_I2C_Read... [22:52:05]Read from MH i2c: 01 [22:52:05]MH_I2C_Read... [22:52:05]Read from MH i2c: 01 07 00 [22:52:05]MH_I2C_Read... [22:52:05]Read from MH i2c: 01 07 00 7C 97 00 00 00 00 00 52 0C 78 [22:52:05]RasterBufferAndPrint [22:52:05]line [22:52:05]line [22:52:05]line [22:52:05]line [22:52:05]line [22:52:05]written 0, free lines is 3157 [22:52:05]MH_Cut [22:52:05]Write to MH i2c: D1 01 00 83 97 01 EC [22:52:05]Write i2c OK [22:52:05]MH_I2C_Read... [22:52:05]Read from MH i2c: D1 [22:52:05]MH_I2C_Read... [22:52:05]Read from MH i2c: D1 01 00 [22:52:05]MH_I2C_Read... [22:52:05]Read from MH i2c: D1 01 00 83 97 00 EB [22:52:05]Write to MH i2c: 01 00 00 84 97 1B [22:52:05]Write i2c OK [22:52:05]MH_I2C_Read... [22:52:06]*** Cut start [22:52:06]*** Partial cut [22:52:06]*** CUTSNS_PIN = 1 [22:52:06]*** CUTSNS_PIN = 0 [22:52:07]*** Brake cut motor [22:52:07]Read from MH i2c: 01 [22:52:07]MH_I2C_Read... [22:52:07]*** Stop cut motor [22:52:07]*** Cut end [22:52:07]Read from MH i2c: 01 07 00 [22:52:07]MH_I2C_Read... [22:52:07]Read from MH i2c: 01 07 00 84 97 00 00 00 00 00 FF 0F 30 [22:52:07]process_action close_receipt done [22:52:07]requested_data is exist [22:52:07]produce_requested_data [22:52:07]requested_item fm.sn is exist - process it [22:52:07]wFMCommunicate request_size=4 [22:52:07]MH_SAM_APDU [22:52:07]CAPDU: 80 11 00 00 [22:52:07]Write to MH i2c: E2 08 00 85 97 80 11 00 00 00 00 00 00 96 [22:52:07]Write i2c OK [22:52:07]MH_I2C_Read... [22:52:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:52:07]Read from MH i2c: E2 [22:52:07]MH_I2C_Read... [22:52:07]Read from MH i2c: E2 17 00 [22:52:07]MH_I2C_Read... [22:52:07]Read from MH i2c: E2 17 00 85 97 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 E4 [22:52:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [22:52:07]wFMCommunicate OK [22:52:07]requested_item fd.num is exist - process it [22:52:07]SAM_PROTO_GetFieldsCounters [22:52:07]wFMCommunicate request_size=4 [22:52:07]MH_SAM_APDU [22:52:07]CAPDU: 80 13 00 00 [22:52:07]Write to MH i2c: E2 08 00 86 97 80 13 00 00 00 00 00 00 99 [22:52:07]Write i2c OK [22:52:07]MH_I2C_Read... [22:52:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:52:07]Read from MH i2c: E2 [22:52:07]MH_I2C_Read... [22:52:07]Read from MH i2c: E2 62 00 [22:52:07]MH_I2C_Read... [22:52:07]Read from MH i2c: E2 62 00 86 97 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 2E DE 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 9E 01 00 00 5E 04 04 00 9E 01 00 00 57 04 04 00 9F 01 00 00 19 04 04 00 00 00 00 00 90 00 58 [22:52:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 2E DE 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 9E 01 00 00 5E 04 04 00 9E 01 00 00 57 04 04 00 9F 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:52:07]wFMCommunicate OK [22:52:07]SAM_PROTO_GetFieldsCounters done [22:52:07]requested_item shift.num is exist - process it [22:52:07]requested_item shift.opened is exist - process it [22:52:07]req_shift_opened [22:52:07]FM_GetShiftState [22:52:07]SAM_PROTO_GetShiftState [22:52:07]wFMCommunicate request_size=4 [22:52:07]MH_SAM_APDU [22:52:07]CAPDU: 80 13 01 00 [22:52:07]Write to MH i2c: E2 08 00 87 97 80 13 01 00 00 00 00 00 9B [22:52:07]Write i2c OK [22:52:07]MH_I2C_Read... [22:52:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:52:07]Read from MH i2c: E2 [22:52:07]MH_I2C_Read... [22:52:07]Read from MH i2c: E2 0E 00 [22:52:07]MH_I2C_Read... [22:52:07]Read from MH i2c: E2 0E 00 87 97 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 FA [22:52:07]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [22:52:07]wFMCommunicate OK [22:52:07]SAM_PROTO_GetShiftState done [22:52:07]FM_GetShiftState done [22:52:07]req_shift_opened done [22:52:07]requested_item shift.open_date is exist - process it [22:52:07]req_shift_open_date [22:52:07]req_shift_open_date done [22:52:07]produce_requested_data done [22:52:07]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187950,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [22:52:07]process_action_free close_receipt [22:52:07]json_value_free [22:52:07]json_value_free done [22:52:07]process_json_proto returns [22:52:07]Send response to host [22:52:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187950,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [22:52:07]free response buf [22:52:07]execute_script done [22:52:07]execute_script returns [22:52:07]free content buf [22:52:07]Sock 9.Close socket [22:52:07]Sock 9.Thread stoped [22:54:14]ConnectInit Can't connect to host [22:54:14]CommunicateWithHost connect error [22:54:14]CommunicateWithHost err = -1 [22:54:14]OFD Sender: Server communicate error [22:54:19]OFD Sender: Processing packet 187950 [packets to send 1062, broken 1061] [22:54:19]ProducePacketName [22:54:19]name=ofd_packets/00187950 [22:54:19]OFD Sender: To server: pG, [22:54:19]CommunicateWithHost lk.salyk.kg:30040 [22:54:19]ConnectInit lk.salyk.kg [22:54:20]Connected sock=9 [22:54:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 85 50 07 01 E9 42 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9E 01 00 00 F4 03 04 00 19 DB 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 2E DE 02 00 35 04 06 00 C0 15 AC C1 72 73 9F 70 BB 95 F8 95 E2 19 [22:54:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 65 D3 47 00 3F 1E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 2E DE 02 00 F4 03 04 00 8F 85 16 67 B6 04 01 00 00 75 52 71 AA DB 2C 11 DC [22:54:21]CommunicateWithHost err = 0 [22:54:21]CheckOFDResponse [22:54:21]1017 (14) - 77093643461234 [22:54:21]1041 (16) - 0000000000965340 [22:54:21]1040 (4) - 187950 [22:54:21]1012 (4) - 21.10.2024 16:47 [22:54:21]1206 (1) - 0 [22:54:21]OFD Sender: Remove packet 187950 [22:54:21]ProducePacketName [22:54:21]name=ofd_packets/00187950 [22:54:21]NVStorageDeleteData [22:54:21]OFD Sender: No OFD packet to send [22:54:26]OFD Sender: No OFD packet to send [22:54:31]OFD Sender: No OFD packet to send [22:54:36]OFD Sender: No OFD packet to send [22:54:41]OFD Sender: No OFD packet to send [22:54:46]OFD Sender: No OFD packet to send [22:54:51]OFD Sender: No OFD packet to send [22:54:56]OFD Sender: No OFD packet to send [22:55:01]OFD Sender: No OFD packet to send [22:55:06]OFD Sender: No OFD packet to send [22:55:11]OFD Sender: No OFD packet to send [22:55:16]OFD Sender: No OFD packet to send [22:55:21]OFD Sender: No OFD packet to send [22:55:26]OFD Sender: No OFD packet to send [22:55:31]OFD Sender: No OFD packet to send [22:55:36]OFD Sender: No OFD packet to send [22:55:41]OFD Sender: No OFD packet to send [22:55:46]OFD Sender: No OFD packet to send [22:55: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: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:03]accept exits with 8 [22:58:03]New connection [22:58:03]New thread 3067014500 created [22:58:03]Thread 3067157860 joined [22:58:03]Waiting for new connection... [22:58:03] Sock 8.Parse request [22:58:03]Sock 8.Check first char [22:58:03]Sock 8.First char is OK [22:58:03]request: POST /json_proto HTTP/1.0 [22:58:03]Method: POST [22:58:03]URL: /json_proto [22:58:03]Method is POST - this is cgi request [22:58:03]url: /json_proto [22:58:03]query_string will be loaded in cgi processing [22:58:03]execute_cgi json_proto POST (null) [22:58:03]execute_cgi path=json_proto method=POST [22:58:03]POST find Content-Length [22:58:03]Host: 172.17.42.131:8080 [22:58:03]Content-Length: 766 [22:58:03]Content-Type: application/json [22:58:03] [22:58:03]POST finish read [22:58:03]Found Content-Length = 766 [22:58:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210004", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 2.700, "sum" : 200.34, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 200.34 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:58:03]execute_script... [22:58: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)210004", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 2.700, "sum" : 200.34, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 200.34 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:58:03]POST & json_proto [22:58:03]process_json_proto [22:58:03]json parsed OK: [22:58:03]protocol is kg_v1.0 [22:58:03]action value=close_receipt [22:58:03]process_action close_receipt [22:58:03]cmd_close_receipt [22:58:03]MH_GetDate [22:58:03]Write to MH i2c: F0 00 00 88 97 0E [22:58:03]Write i2c OK [22:58:03]MH_I2C_Read... [22:58:03]Read from MH i2c: F0 [22:58:03]MH_I2C_Read... [22:58:03]Read from MH i2c: F0 09 00 [22:58:03]MH_I2C_Read... [22:58:03]Read from MH i2c: F0 09 00 88 97 00 81 DC 16 67 A0 18 CA 66 D9 [22:58:03]GetLastDocTimeStamp 1729551129 [22:58:03]current date 1729551489 [22:58:03]FM_GetShiftState [22:58:03]SAM_PROTO_GetShiftState [22:58:03]wFMCommunicate request_size=4 [22:58:03]MH_SAM_APDU [22:58:03]CAPDU: 80 13 01 00 [22:58:03]Write to MH i2c: E2 08 00 89 97 80 13 01 00 00 00 00 00 9D [22:58:03]Write i2c OK [22:58:03]MH_I2C_Read... [22:58:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:58:03]Read from MH i2c: E2 [22:58:03]MH_I2C_Read... [22:58:03]Read from MH i2c: E2 0E 00 [22:58:03]MH_I2C_Read... [22:58:03]Read from MH i2c: E2 0E 00 89 97 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 FC [22:58:03]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [22:58:03]wFMCommunicate OK [22:58:03]SAM_PROTO_GetShiftState done [22:58:03]FM_GetShiftState done [22:58:03]opened in 1729469754 [22:58:03]opened+sec_in_day 1729556154 [22:58:03]quantity*price = 20034 [22:58:03]sum+1 = 20035 [22:58:03]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 200.34 НСП 1% : 1.77 НДС 12% : 21.27 Наличными: 0.00 Безнал.: 200.34 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 415 21.10.2024 22:58 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000965340 ФД: 187951 ФПД: 252954047067832 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T225809&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187951&fm=252954047067832&tin=02508201610067®Number=0000000000100030&sum=20034 [22:58:04]StoreToDocumentArchive [22:58:04]shift 460 fd 187951 [22:58:04]save to /storage/0460/doc_00187951 [22:58:04]save last doc name /storage/0460/doc_00187951 to /storage/kkm_last_doc_name [22:58:04]save OK [22:58:04]Clear old archive folders... [22:58:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:58:04]tlvbuf is 010F9A30 [22:58:04]SAM_PROTO_ClearQueue [22:58:04]wFMCommunicate request_size=4 [22:58:04]MH_SAM_APDU [22:58:04]CAPDU: 80 09 00 00 [22:58:04]Write to MH i2c: E2 08 00 96 97 80 09 00 00 00 00 00 00 9F [22:58:04]Write i2c OK [22:58:04]MH_I2C_Read... [22:58:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:58:04]Read from MH i2c: E2 [22:58:04]MH_I2C_Read... [22:58:04]Read from MH i2c: E2 03 00 [22:58:04]MH_I2C_Read... [22:58:04]Read from MH i2c: E2 03 00 96 97 00 90 00 A1 [22:58:04]RAPDU: 90 00 [22:58:04]wFMCommunicate OK [22:58:04]SAM_PROTO_ClearQueue done [22:58:04]KKMCreateOFDPacket [22:58:04]OFDProtocolAddRootSTLVToBuf [22:58:04]FM_MakeSignedData [22:58:04]FM_MakeSignedData [22:58:04]SAM_PROTO_SignData [22:58:04]wFMCommunicate request_size=4 [22:58:04]MH_SAM_APDU [22:58:04]CAPDU: 80 0D 01 02 [22:58:04]Write to MH i2c: E2 08 00 97 97 80 0D 01 02 00 00 00 00 A7 [22:58:04]Write i2c OK [22:58:04]MH_I2C_Read... [22:58:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:58:04]Read from MH i2c: E2 [22:58:04]MH_I2C_Read... [22:58:04]Read from MH i2c: E2 03 00 [22:58:04]MH_I2C_Read... [22:58:04]Read from MH i2c: E2 03 00 97 97 00 90 00 A2 [22:58:04]RAPDU: 90 00 [22:58:04]wFMCommunicate OK [22:58:04]wFMCommunicate request_size=255 [22:58:04]MH_SAM_APDU [22:58:04]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 8C 0A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 42 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 42 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4F 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 42 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9F 01 00 00 F4 03 04 00 81 DC 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 2F DE 02 00 35 04 06 00 E6 [22:58:04]Write to MH i2c: E2 02 01 98 97 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 8C 0A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 42 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 42 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4F 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 42 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9F 01 00 00 F4 03 04 00 81 DC 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 2F DE 02 00 35 04 06 00 E6 00 00 3B [22:58:04]Write i2c OK [22:58:04]MH_I2C_Read... [22:58:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:58:05]Read from MH i2c: E2 [22:58:05]MH_I2C_Read... [22:58:05]Read from MH i2c: E2 03 00 [22:58:05]MH_I2C_Read... [22:58:05]Read from MH i2c: E2 03 00 98 97 00 90 00 A3 [22:58:05]RAPDU: 90 00 [22:58:05]wFMCommunicate OK [22:58:05]wFMCommunicate request_size=10 [22:58:05]MH_SAM_APDU [22:58:05]CAPDU: 80 0D 02 02 05 0F 74 1E B6 B8 [22:58:05]Write to MH i2c: E2 0D 00 99 97 80 0D 02 02 05 00 0F 74 1E B6 B8 00 00 C3 [22:58:05]Write i2c OK [22:58:05]MH_I2C_Read... [22:58:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:58:05]Read from MH i2c: E2 [22:58:05]MH_I2C_Read... [22:58:05]Read from MH i2c: E2 03 00 [22:58:05]MH_I2C_Read... [22:58:05]Read from MH i2c: E2 03 00 99 97 00 90 00 A4 [22:58:05]RAPDU: 90 00 [22:58:05]wFMCommunicate OK [22:58:05]wFMCommunicate request_size=4 [22:58:05]MH_SAM_APDU [22:58:05]CAPDU: 80 0D 03 02 [22:58:05]Write to MH i2c: E2 08 00 9A 97 80 0D 03 02 00 00 00 00 AC [22:58:05]Write i2c OK [22:58:05]MH_I2C_Read... [22:58:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:58:05]Read from MH i2c: E2 [22:58:05]MH_I2C_Read... [22:58:05]Read from MH i2c: E2 0B 00 [22:58:05]MH_I2C_Read... [22:58:05]Read from MH i2c: E2 0B 00 9A 97 00 81 63 F4 D5 91 22 66 DD 90 00 50 [22:58:05]RAPDU: 81 63 F4 D5 91 22 66 DD 90 00 [22:58:05]wFMCommunicate OK [22:58:05]SAM_PROTO_SignData done [22:58:05]FM_MakeSignedData done [22:58:05]CreateOFDProtocolMessage [22:58:05]wFMCommunicate request_size=4 [22:58:05]MH_SAM_APDU [22:58:05]CAPDU: 80 11 00 00 [22:58:05]Write to MH i2c: E2 08 00 9B 97 80 11 00 00 00 00 00 00 AC [22:58:05]Write i2c OK [22:58:05]MH_I2C_Read... [22:58:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:58:05]Read from MH i2c: E2 [22:58:05]MH_I2C_Read... [22:58:05]Read from MH i2c: E2 17 00 [22:58:05]MH_I2C_Read... [22:58:05]Read from MH i2c: E2 17 00 9B 97 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 FA [22:58:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [22:58:05]wFMCommunicate OK [22:58:05]CreateOFDProtocolMessage done [22:58:05]OFDSenderStorePacket 187951 [22:58:05]StoreOFDPacket docnum=187951 [22:58:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 34 69 07 01 99 42 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 8C 0A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 42 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 42 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4F 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 42 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9F 01 00 00 F4 03 04 00 81 DC 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 2F DE 02 00 35 04 06 00 E6 0F 74 1E B6 B8 81 63 F4 D5 91 22 66 DD [22:58:05]CheckFolder [22:58:05]dirname=/storage/ofd_packets [22:58:05]CheckFolder done [22:58:05]ProducePacketName [22:58:05]name=ofd_packets/00187951 [22:58:05]NVStorageSaveData ofd_packets/00187951 [22:58:05]File name is /storage/ofd_packets/00187951 [22:58:05]Write 301 bytes [22:58:05]NVStorageSaveData done [22:58:05]OFDSenderStorePacket done [22:58:05]KKMCreateOFDPacket done [22:58:05]NVStorageSaveData kkm_last_timestamp [22:58:05]File name is /storage/kkm_last_timestamp [22:58:05]Write 4 bytes [22:58:05]NVStorageSaveData done [22:58:05]ExternCall_PrintAddStr [22:58:05]wPrintStart [22:58:05]Write to MH i2c: 01 00 00 9C 97 33 [22:58:05]Write i2c OK [22:58:05]MH_I2C_Read... [22:58:05]Read from MH i2c: 01 [22:58:05]MH_I2C_Read... [22:58:05]Read from MH i2c: 01 07 00 [22:58:05]MH_I2C_Read... [22:58:05]Read from MH i2c: 01 07 00 9C 97 00 00 00 00 00 FF 0F 48 [22:58:05]RasterBufferAndPrint [22:58:05]line Счет N : (1)210004 [22:58:05]line ИНН: 02508201610067 [22:58:05]line Контрольно-Кассовый Чек [22:58:05]line ПРОДАЖА [22:58:05]line ТРК (МРК, ГНК) : 43 [22:58:05]line Товар: 2710124500 [22:58:05]line Аи-95-К-3 [22:58:05]line 2.700 * 74.20 [22:58:05]line = 200.34 [22:58:05]line НДС 12% НСП 1% [22:58:05]line > о реализуемом товаре [22:58:05]line ИТОГО: 200.34 [22:58:05]line НСП 1% : 1.77 [22:58:05]line НДС 12% : 21.27 [22:58:05]line Наличными: 0.00 [22:58:05]line Безнал.: 200.34 [22:58:05]line Место: АЗС № 86 "Партнер Нефть" [22:58:05]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [22:58:05]line СНО: Общий режим [22:58:05]line Чек 415 21.10.2024 22:58 [22:58:05]line Смена: 460 ФФД: 1.0 [22:58:05]line ЗНМ: 0300000155 [22:58:05]line РНМ: 0000000000100030 [22:58:05]line Версия ККМ: 001 [22:58:05]line Платежная система: Mbank [22:58:05]line ФМ: 0000000000965340 [22:58:05]line ФД: 187951 [22:58:05]line ФПД: 252954047067832 [22:58:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T225809&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187951&fm=252954047067832&tin=02508201610067®Number=0000000000100030&sum=20034 [22:58:05]written 0, free lines is 4095 [22:58:05]OFD Sender: Processing packet 187951 [packets to send 1062, broken 1061] [22:58:05]ProducePacketName [22:58:05]name=ofd_packets/00187951 [22:58:05]OFD Sender: To server: pG, [22:58:05]CommunicateWithHost lk.salyk.kg:30040 [22:58:05]ConnectInit lk.salyk.kg [22:58:05]Connected sock=10 [22:58:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 34 69 07 01 99 42 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 8C 0A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 42 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 42 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4F 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 42 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9F 01 00 00 F4 03 04 00 81 DC 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 2F DE 02 00 35 04 06 00 E6 0F 74 1E B6 B8 81 63 F4 D5 91 22 66 DD [22:58:05]Write to MH i2c: 01 00 00 C5 97 5C [22:58:05]Write i2c OK [22:58:05]MH_I2C_Read... [22:58:05]Read from MH i2c: 01 [22:58:05]MH_I2C_Read... [22:58:05]Read from MH i2c: 01 07 00 [22:58:05]MH_I2C_Read... [22:58:05]Read from MH i2c: 01 07 00 C5 97 00 00 00 00 00 8F 0C FE [22:58:05]RasterBufferAndPrint [22:58:05]line [22:58:05]line [22:58:05]line [22:58:05]line [22:58:05]line [22:58:05]written 0, free lines is 3220 [22:58:05]MH_Cut [22:58:05]Write to MH i2c: D1 01 00 CC 97 01 35 [22:58:05]Write i2c OK [22:58:05]MH_I2C_Read... [22:58:05]Read from MH i2c: D1 [22:58:05]MH_I2C_Read... [22:58:05]Read from MH i2c: D1 01 00 [22:58:05]MH_I2C_Read... [22:58:05]Read from MH i2c: D1 01 00 CC 97 00 34 [22:58:05]Write to MH i2c: 01 00 00 CD 97 64 [22:58:05]Write i2c OK [22:58:05]MH_I2C_Read... [22:58:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 8F 42 47 00 63 D6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 2F DE 02 00 F4 03 04 00 70 86 16 67 B6 04 01 00 00 82 54 56 9E 31 DD 94 F5 [22:58:05]CommunicateWithHost err = 0 [22:58:05]CheckOFDResponse [22:58:05]1017 (14) - 77093643461234 [22:58:05]1041 (16) - 0000000000965340 [22:58:05]1040 (4) - 187951 [22:58:05]1012 (4) - 21.10.2024 16:50 [22:58:05]1206 (1) - 0 [22:58:05]OFD Sender: Remove packet 187951 [22:58:05]ProducePacketName [22:58:05]name=ofd_packets/00187951 [22:58:05]NVStorageDeleteData [22:58:06]OFD Sender: No OFD packet to send [22:58:06]*** Cut start [22:58:06]*** Partial cut [22:58:06]*** CUTSNS_PIN = 1 [22:58:06]*** CUTSNS_PIN = 0 [22:58:07]*** Brake cut motor [22:58:07]Read from MH i2c: 01 [22:58:07]MH_I2C_Read... [22:58:07]*** Stop cut motor [22:58:07]*** Cut end [22:58:07]Read from MH i2c: 01 07 00 [22:58:07]MH_I2C_Read... [22:58:07]Read from MH i2c: 01 07 00 CD 97 00 00 00 00 00 FF 0F 79 [22:58:07]process_action close_receipt done [22:58:07]requested_data is exist [22:58:07]produce_requested_data [22:58:07]requested_item fm.sn is exist - process it [22:58:07]wFMCommunicate request_size=4 [22:58:07]MH_SAM_APDU [22:58:07]CAPDU: 80 11 00 00 [22:58:07]Write to MH i2c: E2 08 00 CE 97 80 11 00 00 00 00 00 00 DF [22:58:07]Write i2c OK [22:58:07]MH_I2C_Read... [22:58:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:58:07]Read from MH i2c: E2 [22:58:07]MH_I2C_Read... [22:58:07]Read from MH i2c: E2 17 00 [22:58:07]MH_I2C_Read... [22:58:07]Read from MH i2c: E2 17 00 CE 97 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 2D [22:58:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [22:58:07]wFMCommunicate OK [22:58:07]requested_item fd.num is exist - process it [22:58:07]SAM_PROTO_GetFieldsCounters [22:58:07]wFMCommunicate request_size=4 [22:58:07]MH_SAM_APDU [22:58:07]CAPDU: 80 13 00 00 [22:58:07]Write to MH i2c: E2 08 00 CF 97 80 13 00 00 00 00 00 00 E2 [22:58:07]Write i2c OK [22:58:07]MH_I2C_Read... [22:58:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:58:07]Read from MH i2c: E2 [22:58:07]MH_I2C_Read... [22:58:07]Read from MH i2c: E2 62 00 [22:58:07]MH_I2C_Read... [22:58:07]Read from MH i2c: E2 62 00 CF 97 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 2F DE 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 9F 01 00 00 5E 04 04 00 9F 01 00 00 57 04 04 00 A0 01 00 00 19 04 04 00 00 00 00 00 90 00 A5 [22:58:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 2F DE 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 9F 01 00 00 5E 04 04 00 9F 01 00 00 57 04 04 00 A0 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:58:07]wFMCommunicate OK [22:58:07]SAM_PROTO_GetFieldsCounters done [22:58:07]requested_item shift.num is exist - process it [22:58:07]requested_item shift.opened is exist - process it [22:58:07]req_shift_opened [22:58:07]FM_GetShiftState [22:58:07]SAM_PROTO_GetShiftState [22:58:07]wFMCommunicate request_size=4 [22:58:07]MH_SAM_APDU [22:58:07]CAPDU: 80 13 01 00 [22:58:07]Write to MH i2c: E2 08 00 D0 97 80 13 01 00 00 00 00 00 E4 [22:58:07]Write i2c OK [22:58:07]MH_I2C_Read... [22:58:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:58:07]Read from MH i2c: E2 [22:58:07]MH_I2C_Read... [22:58:07]Read from MH i2c: E2 0E 00 [22:58:07]MH_I2C_Read... [22:58:07]Read from MH i2c: E2 0E 00 D0 97 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 43 [22:58:07]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [22:58:07]wFMCommunicate OK [22:58:07]SAM_PROTO_GetShiftState done [22:58:07]FM_GetShiftState done [22:58:07]req_shift_opened done [22:58:07]requested_item shift.open_date is exist - process it [22:58:07]req_shift_open_date [22:58:07]req_shift_open_date done [22:58:07]produce_requested_data done [22:58:07]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187951,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [22:58:07]process_action_free close_receipt [22:58:07]json_value_free [22:58:07]json_value_free done [22:58:07]process_json_proto returns [22:58:07]Send response to host [22:58:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187951,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [22:58:07]free response buf [22:58:07]execute_script done [22:58:07]execute_script returns [22:58:07]free content buf [22:58:07]Sock 8.Close socket [22:58:07]Sock 8.Thread stoped [22:58:11]OFD Sender: No OFD packet to send [22:58:16]OFD Sender: No OFD packet to send [22:58:21]OFD Sender: No OFD packet to send [22:58:26]OFD Sender: No OFD packet to send [22:58:31]OFD Sender: No OFD packet to send [22:58:36]OFD Sender: No OFD packet to send [22:58:41]OFD Sender: No OFD packet to send [22:58:46]OFD Sender: No OFD packet to send [22:58:51]OFD Sender: No OFD packet to send [22:58:56]OFD Sender: No OFD packet to send [22:59:01]OFD Sender: No OFD packet to send [22:59:06]OFD Sender: No OFD packet to send [22:59:11]OFD Sender: No OFD packet to send [22:59:16]OFD Sender: No OFD packet to send [22:59:21]OFD Sender: No OFD packet to send [22:59:26]OFD Sender: No OFD packet to send [22:59:31]OFD Sender: No OFD packet to send [22:59:36]OFD Sender: No OFD packet to send [22:59:41]OFD Sender: No OFD packet to send [22:59:46]OFD Sender: No OFD packet to send [22:59:51]OFD Sender: No OFD packet to send [22:59:56]OFD Sender: No OFD packet to send [23:00:01]OFD Sender: No OFD packet to send [23:00:06]OFD Sender: No OFD packet to send [23:00:11]OFD Sender: No OFD packet to send [23:00:16]OFD Sender: No OFD packet to send [23:00:21]OFD Sender: No OFD packet to send [23:00:26]OFD Sender: No OFD packet to send [23:00:31]OFD Sender: No OFD packet to send [23:00:36]OFD Sender: No OFD packet to send [23:00:41]OFD Sender: No OFD packet to send [23:00:47]OFD Sender: No OFD packet to send [23:00:52]OFD Sender: No OFD packet to send [23:00:57]OFD Sender: No OFD packet to send [23:01:02]OFD Sender: No OFD packet to send [23:01:07]OFD Sender: No OFD packet to send [23:01:12]OFD Sender: No OFD packet to send [23:01:17]OFD Sender: No OFD packet to send [23:01:22]OFD Sender: No OFD packet to send [23:01:27]OFD Sender: No OFD packet to send [23:01:32]OFD Sender: No OFD packet to send [23:01:37]OFD Sender: No OFD packet to send [23:01:42]OFD Sender: No OFD packet to send [23:01:47]OFD Sender: No OFD packet to send [23:01:52]OFD Sender: No OFD packet to send [23:01:57]OFD Sender: No OFD packet to send [23:02:02]OFD Sender: No OFD packet to send [23:02:07]OFD Sender: No OFD packet to send [23:02:12]OFD Sender: No OFD packet to send [23:02:17]OFD Sender: No OFD packet to send [23:02:22]OFD Sender: No OFD packet to send [23:02:27]OFD Sender: No OFD packet to send [23:02:32]OFD Sender: No OFD packet to send [23:02:37]OFD Sender: No OFD packet to send [23:02:42]OFD Sender: No OFD packet to send [23:02:47]OFD Sender: No OFD packet to send [23:02:52]OFD Sender: No OFD packet to send [23:02:57]OFD Sender: No OFD packet to send [23:03:02]OFD Sender: No OFD packet to send [23:03:07]OFD Sender: No OFD packet to send [23:03:12]OFD Sender: No OFD packet to send [23:03:17]OFD Sender: No OFD packet to send [23:03:22]OFD Sender: No OFD packet to send [23:03:27]OFD Sender: No OFD packet to send [23:03:32]OFD Sender: No OFD packet to send [23:03:37]OFD Sender: No OFD packet to send [23:03:42]OFD Sender: No OFD packet to send [23:03:47]OFD Sender: No OFD packet to send [23:03:52]OFD Sender: No OFD packet to send [23:03:57]OFD Sender: No OFD packet to send [23:04:02]OFD Sender: No OFD packet to send [23:04:07]OFD Sender: No OFD packet to send [23:04:12]OFD Sender: No OFD packet to send [23:04:17]OFD Sender: No OFD packet to send [23:04:22]OFD Sender: No OFD packet to send [23:04:27]OFD Sender: No OFD packet to send [23:04:29]accept exits with 9 [23:04:29]New connection [23:04:29]New thread 3067157860 created [23:04:29]Thread 3067014500 joined [23:04:29]Waiting for new connection... [23:04:29] Sock 9.Parse request [23:04:29]Sock 9.Check first char [23:04:29]Sock 9.First char is OK [23:04:29]request: POST /json_proto HTTP/1.0 [23:04:29]Method: POST [23:04:29]URL: /json_proto [23:04:29]Method is POST - this is cgi request [23:04:29]url: /json_proto [23:04:29]query_string will be loaded in cgi processing [23:04:29]execute_cgi json_proto POST (null) [23:04:29]execute_cgi path=json_proto method=POST [23:04:29]POST find Content-Length [23:04:29]Host: 172.17.42.131:8080 [23:04:29]Content-Length: 819 [23:04:29]Content-Type: application/json [23:04:29] [23:04:29]POST finish read [23:04:29]Found Content-Length = 819 [23:04:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210005", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 26.960, "sum" : 2000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 2000.43 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:04:29]execute_script... [23:04: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)210005", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 26.960, "sum" : 2000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 2000.43 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:04:29]POST & json_proto [23:04:29]process_json_proto [23:04:29]json parsed OK: [23:04:29]protocol is kg_v1.0 [23:04:29]action value=close_receipt [23:04:29]process_action close_receipt [23:04:29]cmd_close_receipt [23:04:29]MH_GetDate [23:04:29]Write to MH i2c: F0 00 00 D1 97 57 [23:04:29]Write i2c OK [23:04:29]MH_I2C_Read... [23:04:29]Read from MH i2c: F0 [23:04:29]MH_I2C_Read... [23:04:29]Read from MH i2c: F0 09 00 [23:04:29]MH_I2C_Read... [23:04:29]Read from MH i2c: F0 09 00 D1 97 00 04 DE 16 67 A0 18 CA 66 A7 [23:04:29]GetLastDocTimeStamp 1729551489 [23:04:29]current date 1729551876 [23:04:29]FM_GetShiftState [23:04:29]SAM_PROTO_GetShiftState [23:04:29]wFMCommunicate request_size=4 [23:04:29]MH_SAM_APDU [23:04:29]CAPDU: 80 13 01 00 [23:04:29]Write to MH i2c: E2 08 00 D2 97 80 13 01 00 00 00 00 00 E6 [23:04:29]Write i2c OK [23:04:29]MH_I2C_Read... [23:04:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:04:30]Read from MH i2c: E2 [23:04:30]MH_I2C_Read... [23:04:30]Read from MH i2c: E2 0E 00 [23:04:30]MH_I2C_Read... [23:04:30]Read from MH i2c: E2 0E 00 D2 97 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 45 [23:04:30]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [23:04:30]wFMCommunicate OK [23:04:30]SAM_PROTO_GetShiftState done [23:04:30]FM_GetShiftState done [23:04:30]opened in 1729469754 [23:04:30]opened+sec_in_day 1729556154 [23:04:30]quantity*price = 200043 [23:04:30]sum+1 = 200044 [23:04:30]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2000.43 НСП 1% : 17.70 НДС 12% : 212.43 Наличными: 0.00 Безнал.: 2000.43 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 416 21.10.2024 23:04 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000965340 ФД: 187952 ФПД: 125957057137970 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T230436&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187952&fm=125957057137970&tin=02508201610067®Number=0000000000100030&sum=200043 [23:04:31]StoreToDocumentArchive [23:04:31]shift 460 fd 187952 [23:04:31]save to /storage/0460/doc_00187952 [23:04:31]save last doc name /storage/0460/doc_00187952 to /storage/kkm_last_doc_name [23:04:31]save OK [23:04:31]Clear old archive folders... [23:04:31]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:04:31]tlvbuf is 0110D440 [23:04:31]SAM_PROTO_ClearQueue [23:04:31]wFMCommunicate request_size=4 [23:04:31]MH_SAM_APDU [23:04:31]CAPDU: 80 09 00 00 [23:04:31]Write to MH i2c: E2 08 00 DF 97 80 09 00 00 00 00 00 00 E8 [23:04:31]Write i2c OK [23:04:31]MH_I2C_Read... [23:04:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:04:31]Read from MH i2c: E2 [23:04:31]MH_I2C_Read... [23:04:31]Read from MH i2c: E2 03 00 [23:04:31]MH_I2C_Read... [23:04:31]Read from MH i2c: E2 03 00 DF 97 00 90 00 EA [23:04:31]RAPDU: 90 00 [23:04:31]wFMCommunicate OK [23:04:31]SAM_PROTO_ClearQueue done [23:04:31]KKMCreateOFDPacket [23:04:31]OFDProtocolAddRootSTLVToBuf [23:04:31]FM_MakeSignedData [23:04:31]FM_MakeSignedData [23:04:31]SAM_PROTO_SignData [23:04:31]wFMCommunicate request_size=4 [23:04:31]MH_SAM_APDU [23:04:31]CAPDU: 80 0D 01 02 [23:04:31]Write to MH i2c: E2 08 00 E0 97 80 0D 01 02 00 00 00 00 F0 [23:04:31]Write i2c OK [23:04:31]MH_I2C_Read... [23:04:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:04:31]Read from MH i2c: E2 [23:04:31]MH_I2C_Read... [23:04:31]Read from MH i2c: E2 03 00 [23:04:31]MH_I2C_Read... [23:04:31]Read from MH i2c: E2 03 00 E0 97 00 90 00 EB [23:04:31]RAPDU: 90 00 [23:04:31]wFMCommunicate OK [23:04:31]wFMCommunicate request_size=255 [23:04:31]MH_SAM_APDU [23:04:31]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6B 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6B 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 A0 01 00 00 F4 03 04 00 04 DE 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 30 DE 02 00 35 04 06 00 72 [23:04:31]Write to MH i2c: E2 02 01 E1 97 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6B 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6B 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 A0 01 00 00 F4 03 04 00 04 DE 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 30 DE 02 00 35 04 06 00 72 00 00 B0 [23:04:31]Write i2c OK [23:04:31]MH_I2C_Read... [23:04:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:04:31]Read from MH i2c: E2 [23:04:31]MH_I2C_Read... [23:04:31]Read from MH i2c: E2 03 00 [23:04:31]MH_I2C_Read... [23:04:31]Read from MH i2c: E2 03 00 E1 97 00 90 00 EC [23:04:31]RAPDU: 90 00 [23:04:31]wFMCommunicate OK [23:04:31]wFMCommunicate request_size=10 [23:04:31]MH_SAM_APDU [23:04:31]CAPDU: 80 0D 02 02 05 8E A9 A5 CD 32 [23:04:31]Write to MH i2c: E2 0D 00 E2 97 80 0D 02 02 05 00 8E A9 A5 CD 32 00 00 D8 [23:04:31]Write i2c OK [23:04:31]MH_I2C_Read... [23:04:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:04:31]Read from MH i2c: E2 [23:04:31]MH_I2C_Read... [23:04:31]Read from MH i2c: E2 03 00 [23:04:31]MH_I2C_Read... [23:04:31]Read from MH i2c: E2 03 00 E2 97 00 90 00 ED [23:04:31]RAPDU: 90 00 [23:04:31]wFMCommunicate OK [23:04:31]wFMCommunicate request_size=4 [23:04:31]MH_SAM_APDU [23:04:31]CAPDU: 80 0D 03 02 [23:04:31]Write to MH i2c: E2 08 00 E3 97 80 0D 03 02 00 00 00 00 F5 [23:04:31]Write i2c OK [23:04:31]MH_I2C_Read... [23:04:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:04:31]Read from MH i2c: E2 [23:04:31]MH_I2C_Read... [23:04:31]Read from MH i2c: E2 0B 00 [23:04:31]MH_I2C_Read... [23:04:31]Read from MH i2c: E2 0B 00 E3 97 00 7C 56 B3 01 B4 8E 38 A4 90 00 9A [23:04:31]RAPDU: 7C 56 B3 01 B4 8E 38 A4 90 00 [23:04:31]wFMCommunicate OK [23:04:31]SAM_PROTO_SignData done [23:04:31]FM_MakeSignedData done [23:04:31]CreateOFDProtocolMessage [23:04:31]wFMCommunicate request_size=4 [23:04:31]MH_SAM_APDU [23:04:31]CAPDU: 80 11 00 00 [23:04:31]Write to MH i2c: E2 08 00 E4 97 80 11 00 00 00 00 00 00 F5 [23:04:31]Write i2c OK [23:04:31]MH_I2C_Read... [23:04:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:04:31]Read from MH i2c: E2 [23:04:31]MH_I2C_Read... [23:04:31]Read from MH i2c: E2 17 00 [23:04:31]MH_I2C_Read... [23:04:31]Read from MH i2c: E2 17 00 E4 97 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 43 [23:04:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [23:04:31]wFMCommunicate OK [23:04:31]CreateOFDProtocolMessage done [23:04:31]OFDSenderStorePacket 187952 [23:04:31]StoreOFDPacket docnum=187952 [23:04:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 E0 33 07 01 15 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6B 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6B 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 A0 01 00 00 F4 03 04 00 04 DE 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 30 DE 02 00 35 04 06 00 72 8E A9 A5 CD 32 7C 56 B3 01 B4 8E 38 A4 [23:04:31]CheckFolder [23:04:31]dirname=/storage/ofd_packets [23:04:31]CheckFolder done [23:04:31]ProducePacketName [23:04:31]name=ofd_packets/00187952 [23:04:31]NVStorageSaveData ofd_packets/00187952 [23:04:31]File name is /storage/ofd_packets/00187952 [23:04:31]Write 301 bytes [23:04:31]NVStorageSaveData done [23:04:31]OFDSenderStorePacket done [23:04:31]KKMCreateOFDPacket done [23:04:31]NVStorageSaveData kkm_last_timestamp [23:04:31]File name is /storage/kkm_last_timestamp [23:04:31]Write 4 bytes [23:04:31]NVStorageSaveData done [23:04:31]ExternCall_PrintAddStr [23:04:31]wPrintStart [23:04:31]Write to MH i2c: 01 00 00 E5 97 7C [23:04:31]Write i2c OK [23:04:31]MH_I2C_Read... [23:04:31]Read from MH i2c: 01 [23:04:31]MH_I2C_Read... [23:04:31]Read from MH i2c: 01 07 00 [23:04:31]MH_I2C_Read... [23:04:31]Read from MH i2c: 01 07 00 E5 97 00 00 00 00 00 FF 0F 91 [23:04:31]RasterBufferAndPrint [23:04:31]line Счет N : (1)210005 [23:04:31]line ИНН: 02508201610067 [23:04:31]line Контрольно-Кассовый Чек [23:04:31]line ПРОДАЖА [23:04:31]line ТРК (МРК, ГНК) : 23 [23:04:31]line Товар: 2710124500 [23:04:31]line Аи-95-К-3 [23:04:31]line 26.960 * 74.20 [23:04:31]line = 2000.43 [23:04:31]line НДС 12% НСП 1% [23:04:31]line > о реализуемом товаре [23:04:31]line ИТОГО: 2000.43 [23:04:31]line НСП 1% : 17.70 [23:04:31]line НДС 12% : 212.43 [23:04:31]line Наличными: 0.00 [23:04:31]line Безнал.: 2000.43 [23:04:31]line Место: АЗС № 86 "Партнер Нефть" [23:04:31]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [23:04:31]line СНО: Общий режим [23:04:31]line Чек 416 21.10.2024 23:04 [23:04:31]line Смена: 460 ФФД: 1.0 [23:04:31]line ЗНМ: 0300000155 [23:04:31]line РНМ: 0000000000100030 [23:04:31]line Версия ККМ: 001 [23:04:31]line Платежная система: Бакай Банк [23:04:31]line ФМ: 0000000000965340 [23:04:31]line ФД: 187952 [23:04:31]line ФПД: 125957057137970 [23:04:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T230436&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187952&fm=125957057137970&tin=02508201610067®Number=0000000000100030&sum=200043 [23:04:31]written 0, free lines is 4095 [23:04:31]OFD Sender: Processing packet 187952 [packets to send 1062, broken 1061] [23:04:31]ProducePacketName [23:04:31]name=ofd_packets/00187952 [23:04:31]OFD Sender: To server: pG, [23:04:31]CommunicateWithHost lk.salyk.kg:30040 [23:04:31]ConnectInit lk.salyk.kg [23:04:31]Connected sock=10 [23:04:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 E0 33 07 01 15 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6B 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6B 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 A0 01 00 00 F4 03 04 00 04 DE 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 30 DE 02 00 35 04 06 00 72 8E A9 A5 CD 32 7C 56 B3 01 B4 8E 38 A4 [23:04:32]Write to MH i2c: 01 00 00 0F 98 A7 [23:04:32]Write i2c OK [23:04:32]MH_I2C_Read... [23:04:32]Read from MH i2c: 01 [23:04:32]MH_I2C_Read... [23:04:32]Read from MH i2c: 01 07 00 [23:04:32]MH_I2C_Read... [23:04:32]Read from MH i2c: 01 07 00 0F 98 00 00 00 00 00 7B 0C 35 [23:04:32]RasterBufferAndPrint [23:04:32]line [23:04:32]line [23:04:32]line [23:04:32]line [23:04:32]line [23:04:32]written 0, free lines is 3198 [23:04:32]MH_Cut [23:04:32]Write to MH i2c: D1 01 00 16 98 01 80 [23:04:32]Write i2c OK [23:04:32]MH_I2C_Read... [23:04:32]Read from MH i2c: D1 [23:04:32]MH_I2C_Read... [23:04:32]Read from MH i2c: D1 01 00 [23:04:32]MH_I2C_Read... [23:04:32]Read from MH i2c: D1 01 00 16 98 00 7F [23:04:32]Write to MH i2c: 01 00 00 17 98 AF [23:04:32]Write i2c OK [23:04:32]MH_I2C_Read... [23:04:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 A9 23 47 00 6C 79 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 30 DE 02 00 F4 03 04 00 F2 87 16 67 B6 04 01 00 00 69 69 01 A2 33 03 4A CE [23:04:32]CommunicateWithHost err = 0 [23:04:32]CheckOFDResponse [23:04:32]1017 (14) - 77093643461234 [23:04:32]1041 (16) - 0000000000965340 [23:04:32]1040 (4) - 187952 [23:04:32]1012 (4) - 21.10.2024 16:57 [23:04:32]1206 (1) - 0 [23:04:32]OFD Sender: Remove packet 187952 [23:04:32]ProducePacketName [23:04:32]name=ofd_packets/00187952 [23:04:32]NVStorageDeleteData [23:04:32]OFD Sender: No OFD packet to send [23:04:33]*** Cut start [23:04:33]*** Partial cut [23:04:33]*** CUTSNS_PIN = 1 [23:04:33]*** CUTSNS_PIN = 0 [23:04:33]*** Brake cut motor [23:04:34]Read from MH i2c: 01 [23:04:34]MH_I2C_Read... [23:04:34]*** Stop cut motor [23:04:34]*** Cut end [23:04:34]Read from MH i2c: 01 07 00 [23:04:34]MH_I2C_Read... [23:04:34]Read from MH i2c: 01 07 00 17 98 00 00 00 00 00 FF 0F C4 [23:04:34]process_action close_receipt done [23:04:34]requested_data is exist [23:04:34]produce_requested_data [23:04:34]requested_item fm.sn is exist - process it [23:04:34]wFMCommunicate request_size=4 [23:04:34]MH_SAM_APDU [23:04:34]CAPDU: 80 11 00 00 [23:04:34]Write to MH i2c: E2 08 00 18 98 80 11 00 00 00 00 00 00 2A [23:04:34]Write i2c OK [23:04:34]MH_I2C_Read... [23:04:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:04:34]Read from MH i2c: E2 [23:04:34]MH_I2C_Read... [23:04:34]Read from MH i2c: E2 17 00 [23:04:34]MH_I2C_Read... [23:04:34]Read from MH i2c: E2 17 00 18 98 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 78 [23:04:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [23:04:34]wFMCommunicate OK [23:04:34]requested_item fd.num is exist - process it [23:04:34]SAM_PROTO_GetFieldsCounters [23:04:34]wFMCommunicate request_size=4 [23:04:34]MH_SAM_APDU [23:04:34]CAPDU: 80 13 00 00 [23:04:34]Write to MH i2c: E2 08 00 19 98 80 13 00 00 00 00 00 00 2D [23:04:34]Write i2c OK [23:04:34]MH_I2C_Read... [23:04:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:04:34]Read from MH i2c: E2 [23:04:34]MH_I2C_Read... [23:04:34]Read from MH i2c: E2 62 00 [23:04:34]MH_I2C_Read... [23:04:34]Read from MH i2c: E2 62 00 19 98 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 30 DE 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 A0 01 00 00 5E 04 04 00 A0 01 00 00 57 04 04 00 A1 01 00 00 19 04 04 00 00 00 00 00 90 00 F4 [23:04:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 30 DE 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 A0 01 00 00 5E 04 04 00 A0 01 00 00 57 04 04 00 A1 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:04:34]wFMCommunicate OK [23:04:34]SAM_PROTO_GetFieldsCounters done [23:04:34]requested_item shift.num is exist - process it [23:04:34]requested_item shift.opened is exist - process it [23:04:34]req_shift_opened [23:04:34]FM_GetShiftState [23:04:34]SAM_PROTO_GetShiftState [23:04:34]wFMCommunicate request_size=4 [23:04:34]MH_SAM_APDU [23:04:34]CAPDU: 80 13 01 00 [23:04:34]Write to MH i2c: E2 08 00 1A 98 80 13 01 00 00 00 00 00 2F [23:04:34]Write i2c OK [23:04:34]MH_I2C_Read... [23:04:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:04:34]Read from MH i2c: E2 [23:04:34]MH_I2C_Read... [23:04:34]Read from MH i2c: E2 0E 00 [23:04:34]MH_I2C_Read... [23:04:34]Read from MH i2c: E2 0E 00 1A 98 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 8E [23:04:34]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [23:04:34]wFMCommunicate OK [23:04:34]SAM_PROTO_GetShiftState done [23:04:34]FM_GetShiftState done [23:04:34]req_shift_opened done [23:04:34]requested_item shift.open_date is exist - process it [23:04:34]req_shift_open_date [23:04:34]req_shift_open_date done [23:04:34]produce_requested_data done [23:04:34]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187952,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [23:04:34]process_action_free close_receipt [23:04:34]json_value_free [23:04:34]json_value_free done [23:04:34]process_json_proto returns [23:04:34]Send response to host [23:04:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187952,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [23:04:34]free response buf [23:04:34]execute_script done [23:04:34]execute_script returns [23:04:34]free content buf [23:04:34]Sock 9.Close socket [23:04:34]Sock 9.Thread stoped [23:04:37]OFD Sender: No OFD packet to send [23:04:42]OFD Sender: No OFD packet to send [23:04:47]OFD Sender: No OFD packet to send [23:04:52]OFD Sender: No OFD packet to send [23:04:57]OFD Sender: No OFD packet to send [23:05:02]OFD Sender: No OFD packet to send [23:05:07]OFD Sender: No OFD packet to send [23:05:12]OFD Sender: No OFD packet to send [23:05:17]OFD Sender: No OFD packet to send [23:05:23]OFD Sender: No OFD packet to send [23:05:28]OFD Sender: No OFD packet to send [23:05:33]OFD Sender: No OFD packet to send [23:05:38]OFD Sender: No OFD packet to send [23:05:43]OFD Sender: No OFD packet to send [23:05:48]OFD Sender: No OFD packet to send [23:05:53]OFD Sender: No OFD packet to send [23:05:58]OFD Sender: No OFD packet to send [23:06:03]OFD Sender: No OFD packet to send [23:06:08]OFD Sender: No OFD packet to send [23:06:13]accept exits with 8 [23:06:13]New connection [23:06:13]New thread 3067014500 created [23:06:13]Thread 3067157860 joined [23:06:13]Waiting for new connection... [23:06:13] Sock 8.Parse request [23:06:13]Sock 8.Check first char [23:06:13]Sock 8.First char is OK [23:06:13]request: POST /json_proto HTTP/1.0 [23:06:13]Method: POST [23:06:13]URL: /json_proto [23:06:13]Method is POST - this is cgi request [23:06:13]url: /json_proto [23:06:13]query_string will be loaded in cgi processing [23:06:13]execute_cgi json_proto POST (null) [23:06:13]execute_cgi path=json_proto method=POST [23:06:13]POST find Content-Length [23:06:13]Host: 172.17.42.131:8080 [23:06:13]Content-Length: 677 [23:06:13]Content-Type: application/json [23:06:13] [23:06:13]POST finish read [23:06:13]Found Content-Length = 677 [23:06:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210006", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:06:13]execute_script... [23:06: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)210006", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:06:13]POST & json_proto [23:06:13]process_json_proto [23:06:13]json parsed OK: [23:06:13]protocol is kg_v1.0 [23:06:13]action value=close_receipt [23:06:13]process_action close_receipt [23:06:13]cmd_close_receipt [23:06:13]MH_GetDate [23:06:13]Write to MH i2c: F0 00 00 1B 98 A2 [23:06:13]Write i2c OK [23:06:13]MH_I2C_Read... [23:06:13]Read from MH i2c: F0 [23:06:13]MH_I2C_Read... [23:06:13]Read from MH i2c: F0 09 00 [23:06:13]MH_I2C_Read... [23:06:13]Read from MH i2c: F0 09 00 1B 98 00 6B DE 16 67 A0 18 CA 66 59 [23:06:13]GetLastDocTimeStamp 1729551876 [23:06:13]current date 1729551979 [23:06:13]FM_GetShiftState [23:06:13]SAM_PROTO_GetShiftState [23:06:13]wFMCommunicate request_size=4 [23:06:13]MH_SAM_APDU [23:06:13]CAPDU: 80 13 01 00 [23:06:13]Write to MH i2c: E2 08 00 1C 98 80 13 01 00 00 00 00 00 31 [23:06:13]Write i2c OK [23:06:13]MH_I2C_Read... [23:06:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:06:13]Read from MH i2c: E2 [23:06:13]MH_I2C_Read... [23:06:13]Read from MH i2c: E2 0E 00 [23:06:13]MH_I2C_Read... [23:06:13]Read from MH i2c: E2 0E 00 1C 98 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 90 [23:06:13]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [23:06:13]wFMCommunicate OK [23:06:13]SAM_PROTO_GetShiftState done [23:06:13]FM_GetShiftState done [23:06:13]opened in 1729469754 [23:06:13]opened+sec_in_day 1729556154 [23:06:13]quantity*price = 40006 [23:06:13]sum+1 = 40007 [23:06:13]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 417 21.10.2024 23:06 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 187953 ФПД: 150566782646051 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T230619&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187953&fm=150566782646051&tin=02508201610067®Number=0000000000100030&sum=40000 [23:06:14]StoreToDocumentArchive [23:06:14]shift 460 fd 187953 [23:06:14]save to /storage/0460/doc_00187953 [23:06:14]save last doc name /storage/0460/doc_00187953 to /storage/kkm_last_doc_name [23:06:14]save OK [23:06:14]Clear old archive folders... [23:06:14]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:06:14]tlvbuf is 0130A070 [23:06:14]SAM_PROTO_ClearQueue [23:06:14]wFMCommunicate request_size=4 [23:06:14]MH_SAM_APDU [23:06:14]CAPDU: 80 09 00 00 [23:06:14]Write to MH i2c: E2 08 00 29 98 80 09 00 00 00 00 00 00 33 [23:06:14]Write i2c OK [23:06:14]MH_I2C_Read... [23:06:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:06:14]Read from MH i2c: E2 [23:06:14]MH_I2C_Read... [23:06:14]Read from MH i2c: E2 03 00 [23:06:14]MH_I2C_Read... [23:06:14]Read from MH i2c: E2 03 00 29 98 00 90 00 35 [23:06:14]RAPDU: 90 00 [23:06:14]wFMCommunicate OK [23:06:14]SAM_PROTO_ClearQueue done [23:06:14]KKMCreateOFDPacket [23:06:14]OFDProtocolAddRootSTLVToBuf [23:06:14]FM_MakeSignedData [23:06:14]FM_MakeSignedData [23:06:14]SAM_PROTO_SignData [23:06:14]wFMCommunicate request_size=4 [23:06:14]MH_SAM_APDU [23:06:14]CAPDU: 80 0D 01 02 [23:06:14]Write to MH i2c: E2 08 00 2A 98 80 0D 01 02 00 00 00 00 3B [23:06:14]Write i2c OK [23:06:14]MH_I2C_Read... [23:06:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:06:14]Read from MH i2c: E2 [23:06:14]MH_I2C_Read... [23:06:14]Read from MH i2c: E2 03 00 [23:06:14]MH_I2C_Read... [23:06:14]Read from MH i2c: E2 03 00 2A 98 00 90 00 36 [23:06:14]RAPDU: 90 00 [23:06:14]wFMCommunicate OK [23:06:14]wFMCommunicate request_size=255 [23:06:14]MH_SAM_APDU [23:06: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 33 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 A1 01 00 00 F4 03 04 00 6B DE 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 31 DE 02 00 35 04 06 00 88 [23:06:14]Write to MH i2c: E2 02 01 2B 98 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 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 A1 01 00 00 F4 03 04 00 6B DE 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 31 DE 02 00 35 04 06 00 88 00 00 4B [23:06:14]Write i2c OK [23:06:14]MH_I2C_Read... [23:06:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:06:14]Read from MH i2c: E2 [23:06:14]MH_I2C_Read... [23:06:14]Read from MH i2c: E2 03 00 [23:06:14]MH_I2C_Read... [23:06:14]Read from MH i2c: E2 03 00 2B 98 00 90 00 37 [23:06:14]RAPDU: 90 00 [23:06:14]wFMCommunicate OK [23:06:14]wFMCommunicate request_size=10 [23:06:14]MH_SAM_APDU [23:06:14]CAPDU: 80 0D 02 02 05 F0 8F 98 37 23 [23:06:14]Write to MH i2c: E2 0D 00 2C 98 80 0D 02 02 05 00 F0 8F 98 37 23 00 00 B9 [23:06:14]Write i2c OK [23:06:14]MH_I2C_Read... [23:06:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:06:14]Read from MH i2c: E2 [23:06:14]MH_I2C_Read... [23:06:14]Read from MH i2c: E2 03 00 [23:06:14]MH_I2C_Read... [23:06:14]Read from MH i2c: E2 03 00 2C 98 00 90 00 38 [23:06:14]RAPDU: 90 00 [23:06:14]wFMCommunicate OK [23:06:14]wFMCommunicate request_size=4 [23:06:14]MH_SAM_APDU [23:06:14]CAPDU: 80 0D 03 02 [23:06:14]Write to MH i2c: E2 08 00 2D 98 80 0D 03 02 00 00 00 00 40 [23:06:14]Write i2c OK [23:06:14]MH_I2C_Read... [23:06:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:06:14]Read from MH i2c: E2 [23:06:14]MH_I2C_Read... [23:06:14]Read from MH i2c: E2 0B 00 [23:06:14]MH_I2C_Read... [23:06:14]Read from MH i2c: E2 0B 00 2D 98 00 DE 8B 1C F2 11 D6 E2 46 90 00 C7 [23:06:14]RAPDU: DE 8B 1C F2 11 D6 E2 46 90 00 [23:06:14]wFMCommunicate OK [23:06:14]SAM_PROTO_SignData done [23:06:14]FM_MakeSignedData done [23:06:14]CreateOFDProtocolMessage [23:06:14]wFMCommunicate request_size=4 [23:06:14]MH_SAM_APDU [23:06:14]CAPDU: 80 11 00 00 [23:06:14]Write to MH i2c: E2 08 00 2E 98 80 11 00 00 00 00 00 00 40 [23:06:14]Write i2c OK [23:06:14]MH_I2C_Read... [23:06:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:06:14]Read from MH i2c: E2 [23:06:14]MH_I2C_Read... [23:06:14]Read from MH i2c: E2 17 00 [23:06:14]MH_I2C_Read... [23:06:14]Read from MH i2c: E2 17 00 2E 98 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 8E [23:06:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [23:06:14]wFMCommunicate OK [23:06:14]CreateOFDProtocolMessage done [23:06:14]OFDSenderStorePacket 187953 [23:06:14]StoreOFDPacket docnum=187953 [23:06:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 92 FA 07 01 8B 2E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 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 A1 01 00 00 F4 03 04 00 6B DE 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 31 DE 02 00 35 04 06 00 88 F0 8F 98 37 23 DE 8B 1C F2 11 D6 E2 46 [23:06:14]CheckFolder [23:06:14]dirname=/storage/ofd_packets [23:06:14]CheckFolder done [23:06:14]ProducePacketName [23:06:14]name=ofd_packets/00187953 [23:06:14]NVStorageSaveData ofd_packets/00187953 [23:06:14]File name is /storage/ofd_packets/00187953 [23:06:14]Write 301 bytes [23:06:14]NVStorageSaveData done [23:06:14]OFDSenderStorePacket done [23:06:14]KKMCreateOFDPacket done [23:06:14]NVStorageSaveData kkm_last_timestamp [23:06:14]File name is /storage/kkm_last_timestamp [23:06:14]Write 4 bytes [23:06:14]NVStorageSaveData done [23:06:14]ExternCall_PrintAddStr [23:06:14]wPrintStart [23:06:14]Write to MH i2c: 01 00 00 2F 98 C7 [23:06:14]Write i2c OK [23:06:14]MH_I2C_Read... [23:06:14]Read from MH i2c: 01 [23:06:14]MH_I2C_Read... [23:06:14]Read from MH i2c: 01 07 00 [23:06:14]MH_I2C_Read... [23:06:14]Read from MH i2c: 01 07 00 2F 98 00 00 00 00 00 FF 0F DC [23:06:14]RasterBufferAndPrint [23:06:14]line Счет N : (1)210006 [23:06:14]line ИНН: 02508201610067 [23:06:14]line Контрольно-Кассовый Чек [23:06:14]line ПРОДАЖА [23:06:14]line ТРК (МРК, ГНК) : 12 [23:06:14]line Товар: 2710124130 [23:06:14]line Аи-92-К-3 [23:06:14]line 5.980 * 66.90 [23:06:14]line = 400.06 [23:06:14]line НДС 12% НСП 1% [23:06:14]line > о реализуемом товаре [23:06:14]line ОКРУГЛЕНИЕ: -0.06 [23:06:14]line ИТОГО: 400.00 [23:06:14]line Внесено: 400.00 [23:06:14]line СДАЧА: 0.00 [23:06:14]line НСП 1% : 3.54 [23:06:14]line НДС 12% : 42.48 [23:06:14]line Наличными: 400.00 [23:06:14]line Безнал.: 0.00 [23:06:14]line Место: АЗС № 86 "Партнер Нефть" [23:06:14]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [23:06:14]line СНО: Общий режим [23:06:14]line Чек 417 21.10.2024 23:06 [23:06:14]line Смена: 460 ФФД: 1.0 [23:06:14]line ЗНМ: 0300000155 [23:06:14]line РНМ: 0000000000100030 [23:06:14]line Версия ККМ: 001 [23:06:14]line ФМ: 0000000000965340 [23:06:14]line ФД: 187953 [23:06:14]line ФПД: 150566782646051 [23:06:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T230619&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187953&fm=150566782646051&tin=02508201610067®Number=0000000000100030&sum=40000 [23:06:14]written 0, free lines is 4095 [23:06:14]OFD Sender: Processing packet 187953 [packets to send 1062, broken 1061] [23:06:14]ProducePacketName [23:06:14]name=ofd_packets/00187953 [23:06:14]OFD Sender: To server: pG, [23:06:14]CommunicateWithHost lk.salyk.kg:30040 [23:06:14]ConnectInit lk.salyk.kg [23:06:15]Connected sock=10 [23:06:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 92 FA 07 01 8B 2E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 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 A1 01 00 00 F4 03 04 00 6B DE 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 31 DE 02 00 35 04 06 00 88 F0 8F 98 37 23 DE 8B 1C F2 11 D6 E2 46 [23:06:15]Write to MH i2c: 01 00 00 5A 98 F2 [23:06:15]Write i2c OK [23:06:15]MH_I2C_Read... [23:06:15]Read from MH i2c: 01 [23:06:15]MH_I2C_Read... [23:06:15]Read from MH i2c: 01 07 00 [23:06:15]MH_I2C_Read... [23:06:15]Read from MH i2c: 01 07 00 5A 98 00 00 00 00 00 5E 0C 63 [23:06:15]RasterBufferAndPrint [23:06:15]line [23:06:15]line [23:06:15]line [23:06:15]line [23:06:15]line [23:06:15]written 0, free lines is 3169 [23:06:15]MH_Cut [23:06:15]Write to MH i2c: D1 01 00 61 98 01 CB [23:06:15]Write i2c OK [23:06:15]MH_I2C_Read... [23:06:15]Read from MH i2c: D1 [23:06:15]MH_I2C_Read... [23:06:15]Read from MH i2c: D1 01 00 [23:06:15]MH_I2C_Read... [23:06:15]Read from MH i2c: D1 01 00 61 98 00 CA [23:06:15]Write to MH i2c: 01 00 00 62 98 FA [23:06:15]Write i2c OK [23:06:15]MH_I2C_Read... [23:06:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 09 46 47 00 6E 6D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 31 DE 02 00 F4 03 04 00 5A 88 16 67 B6 04 01 00 00 ED A5 30 19 5E A4 6B 40 [23:06:15]CommunicateWithHost err = 0 [23:06:15]CheckOFDResponse [23:06:15]1017 (14) - 77093643461234 [23:06:15]1041 (16) - 0000000000965340 [23:06:15]1040 (4) - 187953 [23:06:15]1012 (4) - 21.10.2024 16:59 [23:06:15]1206 (1) - 0 [23:06:15]OFD Sender: Remove packet 187953 [23:06:15]ProducePacketName [23:06:15]name=ofd_packets/00187953 [23:06:15]NVStorageDeleteData [23:06:16]OFD Sender: No OFD packet to send [23:06:16]*** Cut start [23:06:16]*** Partial cut [23:06:16]*** CUTSNS_PIN = 1 [23:06:16]*** CUTSNS_PIN = 0 [23:06:16]*** Brake cut motor [23:06:17]Read from MH i2c: 01 [23:06:17]MH_I2C_Read... [23:06:17]*** Stop cut motor [23:06:17]*** Cut end [23:06:17]Read from MH i2c: 01 07 00 [23:06:17]MH_I2C_Read... [23:06:17]Read from MH i2c: 01 07 00 62 98 00 00 00 00 00 FF 0F 0F [23:06:17]process_action close_receipt done [23:06:17]requested_data is exist [23:06:17]produce_requested_data [23:06:17]requested_item fm.sn is exist - process it [23:06:17]wFMCommunicate request_size=4 [23:06:17]MH_SAM_APDU [23:06:17]CAPDU: 80 11 00 00 [23:06:17]Write to MH i2c: E2 08 00 63 98 80 11 00 00 00 00 00 00 75 [23:06:17]Write i2c OK [23:06:17]MH_I2C_Read... [23:06:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:06:17]Read from MH i2c: E2 [23:06:17]MH_I2C_Read... [23:06:17]Read from MH i2c: E2 17 00 [23:06:17]MH_I2C_Read... [23:06:17]Read from MH i2c: E2 17 00 63 98 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 C3 [23:06:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [23:06:17]wFMCommunicate OK [23:06:17]requested_item fd.num is exist - process it [23:06:17]SAM_PROTO_GetFieldsCounters [23:06:17]wFMCommunicate request_size=4 [23:06:17]MH_SAM_APDU [23:06:17]CAPDU: 80 13 00 00 [23:06:17]Write to MH i2c: E2 08 00 64 98 80 13 00 00 00 00 00 00 78 [23:06:17]Write i2c OK [23:06:17]MH_I2C_Read... [23:06:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:06:17]Read from MH i2c: E2 [23:06:17]MH_I2C_Read... [23:06:17]Read from MH i2c: E2 62 00 [23:06:17]MH_I2C_Read... [23:06:17]Read from MH i2c: E2 62 00 64 98 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 31 DE 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 A1 01 00 00 5E 04 04 00 A1 01 00 00 57 04 04 00 A2 01 00 00 19 04 04 00 00 00 00 00 90 00 43 [23:06:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 31 DE 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 A1 01 00 00 5E 04 04 00 A1 01 00 00 57 04 04 00 A2 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:06:17]wFMCommunicate OK [23:06:17]SAM_PROTO_GetFieldsCounters done [23:06:17]requested_item shift.num is exist - process it [23:06:17]requested_item shift.opened is exist - process it [23:06:17]req_shift_opened [23:06:17]FM_GetShiftState [23:06:17]SAM_PROTO_GetShiftState [23:06:17]wFMCommunicate request_size=4 [23:06:17]MH_SAM_APDU [23:06:17]CAPDU: 80 13 01 00 [23:06:17]Write to MH i2c: E2 08 00 65 98 80 13 01 00 00 00 00 00 7A [23:06:17]Write i2c OK [23:06:17]MH_I2C_Read... [23:06:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:06:17]Read from MH i2c: E2 [23:06:17]MH_I2C_Read... [23:06:17]Read from MH i2c: E2 0E 00 [23:06:17]MH_I2C_Read... [23:06:17]Read from MH i2c: E2 0E 00 65 98 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 D9 [23:06:17]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [23:06:17]wFMCommunicate OK [23:06:17]SAM_PROTO_GetShiftState done [23:06:17]FM_GetShiftState done [23:06:17]req_shift_opened done [23:06:17]requested_item shift.open_date is exist - process it [23:06:17]req_shift_open_date [23:06:17]req_shift_open_date done [23:06:17]produce_requested_data done [23:06:17]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187953,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [23:06:17]process_action_free close_receipt [23:06:17]json_value_free [23:06:17]json_value_free done [23:06:17]process_json_proto returns [23:06:17]Send response to host [23:06:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187953,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [23:06:17]free response buf [23:06:17]execute_script done [23:06:17]execute_script returns [23:06:17]free content buf [23:06:17]Sock 8.Close socket [23:06:17]Sock 8.Thread stoped [23:06:21]OFD Sender: No OFD packet to send [23:06:26]OFD Sender: No OFD packet to send [23:06:31]OFD Sender: No OFD packet to send [23:06:36]OFD Sender: No OFD packet to send [23:06:41]OFD Sender: No OFD packet to send [23:06:46]OFD Sender: No OFD packet to send [23:06:51]OFD Sender: No OFD packet to send [23:06:56]OFD Sender: No OFD packet to send [23:07:01]OFD Sender: No OFD packet to send [23:07:06]OFD Sender: No OFD packet to send [23:07:11]OFD Sender: No OFD packet to send [23:07:16]OFD Sender: No OFD packet to send [23:07:21]OFD Sender: No OFD packet to send [23:07:26]OFD Sender: No OFD packet to send [23:07:31]OFD Sender: No OFD packet to send [23:07:36]OFD Sender: No OFD packet to send [23:07:41]OFD Sender: No OFD packet to send [23:07:46]OFD Sender: No OFD packet to send [23:07:51]OFD Sender: No OFD packet to send [23:07:56]OFD Sender: No OFD packet to send [23:08:01]OFD Sender: No OFD packet to send [23:08:06]OFD Sender: No OFD packet to send [23:08:11]OFD Sender: No OFD packet to send [23:08:16]OFD Sender: No OFD packet to send [23:08:21]OFD Sender: No OFD packet to send [23:08:26]OFD Sender: No OFD packet to send [23:08:31]OFD Sender: No OFD packet to send [23:08:36]OFD Sender: No OFD packet to send [23:08:41]OFD Sender: No OFD packet to send [23:08:46]OFD Sender: No OFD packet to send [23:08:51]OFD Sender: No OFD packet to send [23:08:56]OFD Sender: No OFD packet to send [23:09:01]OFD Sender: No OFD packet to send [23:09:06]OFD Sender: No OFD packet to send [23:09:11]OFD Sender: No OFD packet to send [23:09:16]OFD Sender: No OFD packet to send [23:09:21]OFD Sender: No OFD packet to send [23:09:26]OFD Sender: No OFD packet to send [23:09:31]OFD Sender: No OFD packet to send [23:09:36]OFD Sender: No OFD packet to send [23:09:41]OFD Sender: No OFD packet to send [23:09:46]OFD Sender: No OFD packet to send [23:09:51]OFD Sender: No OFD packet to send [23:09:56]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:48]OFD Sender: No OFD packet to send [23:13:53]OFD Sender: No OFD packet to send [23:13:58]OFD Sender: No OFD packet to send [23:14:03]OFD Sender: No OFD packet to send [23:14:08]OFD Sender: No OFD packet to send [23:14:13]OFD Sender: No OFD packet to send [23:14:18]OFD Sender: No OFD packet to send [23:14:23]OFD Sender: No OFD packet to send [23:14:28]OFD Sender: No OFD packet to send [23:14:33]OFD Sender: No OFD packet to send [23:14:38]OFD Sender: No OFD packet to send [23:14:43]OFD Sender: No OFD packet to send [23:14:48]OFD Sender: No OFD packet to send [23:14:53]OFD Sender: No OFD packet to send [23:14:58]OFD Sender: No OFD packet to send [23:15:03]OFD Sender: No OFD packet to send [23:15:08]OFD Sender: No OFD packet to send [23:15:13]OFD Sender: No OFD packet to send [23:15:18]OFD Sender: No OFD packet to send [23:15:23]OFD Sender: No OFD packet to send [23:15:28]OFD Sender: No OFD packet to send [23:15:33]OFD Sender: No OFD packet to send [23:15:38]OFD Sender: No OFD packet to send [23:15:43]OFD Sender: No OFD packet to send [23:15:48]OFD Sender: No OFD packet to send [23:15:53]OFD Sender: No OFD packet to send [23:15:58]OFD Sender: No OFD packet to send [23:16:03]OFD Sender: No OFD packet to send [23:16:08]OFD Sender: No OFD packet to send [23:16:13]OFD Sender: No OFD packet to send [23:16:18]OFD Sender: No OFD packet to send [23:16:23]OFD Sender: No OFD packet to send [23:16:28]OFD Sender: No OFD packet to send [23:16:33]OFD Sender: No OFD packet to send [23:16:38]OFD Sender: No OFD packet to send [23:16:43]OFD Sender: No OFD packet to send [23:16:48]OFD Sender: No OFD packet to send [23:16:53]OFD Sender: No OFD packet to send [23:16:58]OFD Sender: No OFD packet to send [23:17:03]OFD Sender: No OFD packet to send [23:17:08]OFD Sender: No OFD packet to send [23:17:13]OFD Sender: No OFD packet to send [23:17:18]OFD Sender: No OFD packet to send [23:17:23]OFD Sender: No OFD packet to send [23:17:28]OFD Sender: No OFD packet to send [23:17:33]OFD Sender: No OFD packet to send [23:17:39]OFD Sender: No OFD packet to send [23:17:44]OFD Sender: No OFD packet to send [23:17:49]OFD Sender: No OFD packet to send [23:17:54]OFD Sender: No OFD packet to send [23:17:59]OFD Sender: No OFD packet to send [23:18:04]OFD Sender: No OFD packet to send [23:18:09]OFD Sender: No OFD packet to send [23:18:14]OFD Sender: No OFD packet to send [23:18:19]OFD Sender: No OFD packet to send [23:18:24]OFD Sender: No OFD packet to send [23:18:29]OFD Sender: No OFD packet to send [23:18:34]OFD Sender: No OFD packet to send [23:18:39]OFD Sender: No OFD packet to send [23:18:44]OFD Sender: No OFD packet to send [23:18:49]OFD Sender: No OFD packet to send [23:18:54]OFD Sender: No OFD packet to send [23:18:59]OFD Sender: No OFD packet to send [23:19:04]OFD Sender: No OFD packet to send [23:19:09]OFD Sender: No OFD packet to send [23:19:14]OFD Sender: No OFD packet to send [23:19:19]OFD Sender: No OFD packet to send [23:19:24]OFD Sender: No OFD packet to send [23:19:29]OFD Sender: No OFD packet to send [23:19:34]OFD Sender: No OFD packet to send [23:19:39]OFD Sender: No OFD packet to send [23:19:44]OFD Sender: No OFD packet to send [23:19:49]OFD Sender: No OFD packet to send [23:19:54]OFD Sender: No OFD packet to send [23:19:59]OFD Sender: No OFD packet to send [23:20:04]OFD Sender: No OFD packet to send [23:20:09]OFD Sender: No OFD packet to send [23:20:14]OFD Sender: No OFD packet to send [23:20:19]OFD Sender: No OFD packet to send [23:20:24]OFD Sender: No OFD packet to send [23:20:29]OFD Sender: No OFD packet to send [23:20:34]OFD Sender: No OFD packet to send [23:20:39]OFD Sender: No OFD packet to send [23:20:44]OFD Sender: No OFD packet to send [23:20:49]OFD Sender: No OFD packet to send [23:20:54]OFD Sender: No OFD packet to send [23:20:59]OFD Sender: No OFD packet to send [23:21:04]OFD Sender: No OFD packet to send [23:21:09]OFD Sender: No OFD packet to send [23:21:14]OFD Sender: No OFD packet to send [23:21:19]OFD Sender: No OFD packet to send [23:21:25]OFD Sender: No OFD packet to send [23:21:30]OFD Sender: No OFD packet to send [23:21:35]OFD Sender: No OFD packet to send [23:21:40]OFD Sender: No OFD packet to send [23:21:45]OFD Sender: No OFD packet to send [23:21:50]OFD Sender: No OFD packet to send [23:21:55]OFD Sender: No OFD packet to send [23:22:00]OFD Sender: No OFD packet to send [23:22:05]OFD Sender: No OFD packet to send [23:22:07]accept exits with 9 [23:22:07]New connection [23:22:07]New thread 3067157860 created [23:22:07]Thread 3067014500 joined [23:22:07]Waiting for new connection... [23:22:07] Sock 9.Parse request [23:22:07]Sock 9.Check first char [23:22:07]Sock 9.First char is OK [23:22:07]request: POST /json_proto HTTP/1.0 [23:22:07]Method: POST [23:22:07]URL: /json_proto [23:22:07]Method is POST - this is cgi request [23:22:07]url: /json_proto [23:22:07]query_string will be loaded in cgi processing [23:22:07]execute_cgi json_proto POST (null) [23:22:07]execute_cgi path=json_proto method=POST [23:22:07]POST find Content-Length [23:22:07]Host: 172.17.42.131:8080 [23:22:07]Content-Length: 688 [23:22:07]Content-Type: application/json [23:22:07] [23:22:07]POST finish read [23:22:07]Found Content-Length = 688 [23:22:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210007", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "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" ] } } [23:22:07]execute_script... [23:22: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)210007", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "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" ] } } [23:22:07]POST & json_proto [23:22:07]process_json_proto [23:22:07]json parsed OK: [23:22:07]protocol is kg_v1.0 [23:22:07]action value=close_receipt [23:22:07]process_action close_receipt [23:22:07]cmd_close_receipt [23:22:07]MH_GetDate [23:22:07]Write to MH i2c: F0 00 00 66 98 ED [23:22:07]Write i2c OK [23:22:07]MH_I2C_Read... [23:22:07]Read from MH i2c: F0 [23:22:07]MH_I2C_Read... [23:22:07]Read from MH i2c: F0 09 00 [23:22:07]MH_I2C_Read... [23:22:07]Read from MH i2c: F0 09 00 66 98 00 25 E2 16 67 A0 18 CA 66 62 [23:22:07]GetLastDocTimeStamp 1729551979 [23:22:07]current date 1729552933 [23:22:07]FM_GetShiftState [23:22:07]SAM_PROTO_GetShiftState [23:22:07]wFMCommunicate request_size=4 [23:22:07]MH_SAM_APDU [23:22:07]CAPDU: 80 13 01 00 [23:22:07]Write to MH i2c: E2 08 00 67 98 80 13 01 00 00 00 00 00 7C [23:22:07]Write i2c OK [23:22:07]MH_I2C_Read... [23:22:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:22:07]Read from MH i2c: E2 [23:22:07]MH_I2C_Read... [23:22:07]Read from MH i2c: E2 0E 00 [23:22:07]MH_I2C_Read... [23:22:07]Read from MH i2c: E2 0E 00 67 98 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 DB [23:22:07]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [23:22:07]wFMCommunicate OK [23:22:07]SAM_PROTO_GetShiftState done [23:22:07]FM_GetShiftState done [23:22:07]opened in 1729469754 [23:22:07]opened+sec_in_day 1729556154 [23:22:07]quantity*price = 150076 [23:22:07]sum+1 = 150078 [23:22:07]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.77 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.37 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 418 21.10.2024 23:22 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 187954 ФПД: 243800561717345 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T232213&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187954&fm=243800561717345&tin=02508201610067®Number=0000000000100030&sum=150000 [23:22:08]StoreToDocumentArchive [23:22:08]shift 460 fd 187954 [23:22:08]save to /storage/0460/doc_00187954 [23:22:08]save last doc name /storage/0460/doc_00187954 to /storage/kkm_last_doc_name [23:22:08]save OK [23:22:08]Clear old archive folders... [23:22:08]ProcessDocumentItem done err = 0, tmpTLVsize=257 [23:22:08]tlvbuf is 010CD110 [23:22:08]SAM_PROTO_ClearQueue [23:22:08]wFMCommunicate request_size=4 [23:22:08]MH_SAM_APDU [23:22:08]CAPDU: 80 09 00 00 [23:22:08]Write to MH i2c: E2 08 00 74 98 80 09 00 00 00 00 00 00 7E [23:22:08]Write i2c OK [23:22:08]MH_I2C_Read... [23:22:08]Read from MH i2c: E2 [23:22:08]MH_I2C_Read... [23:22:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:22:08]Read from MH i2c: E2 03 00 [23:22:08]MH_I2C_Read... [23:22:08]Read from MH i2c: E2 03 00 74 98 00 90 00 80 [23:22:08]RAPDU: 90 00 [23:22:08]wFMCommunicate OK [23:22:08]SAM_PROTO_ClearQueue done [23:22:08]KKMCreateOFDPacket [23:22:08]OFDProtocolAddRootSTLVToBuf [23:22:08]FM_MakeSignedData [23:22:08]FM_MakeSignedData [23:22:08]SAM_PROTO_SignData [23:22:08]wFMCommunicate request_size=4 [23:22:08]MH_SAM_APDU [23:22:08]CAPDU: 80 0D 01 02 [23:22:08]Write to MH i2c: E2 08 00 75 98 80 0D 01 02 00 00 00 00 86 [23:22:08]Write i2c OK [23:22:08]MH_I2C_Read... [23:22:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:22:08]Read from MH i2c: E2 [23:22:08]MH_I2C_Read... [23:22:08]Read from MH i2c: E2 03 00 [23:22:08]MH_I2C_Read... [23:22:08]Read from MH i2c: E2 03 00 75 98 00 90 00 81 [23:22:08]RAPDU: 90 00 [23:22:08]wFMCommunicate OK [23:22:08]wFMCommunicate request_size=255 [23:22:08]MH_SAM_APDU [23:22:08]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 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 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 A2 01 00 00 F4 03 04 00 25 E2 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 32 DE 02 [23:22:08]Write to MH i2c: E2 02 01 76 98 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 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 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 A2 01 00 00 F4 03 04 00 25 E2 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 32 DE 02 00 00 3B [23:22:08]Write i2c OK [23:22:08]MH_I2C_Read... [23:22:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:22:09]Read from MH i2c: E2 [23:22:09]MH_I2C_Read... [23:22:09]Read from MH i2c: E2 03 00 [23:22:09]MH_I2C_Read... [23:22:09]Read from MH i2c: E2 03 00 76 98 00 90 00 82 [23:22:09]RAPDU: 90 00 [23:22:09]wFMCommunicate OK [23:22:09]wFMCommunicate request_size=16 [23:22:09]MH_SAM_APDU [23:22:09]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 DD BC 3D E0 90 61 [23:22:09]Write to MH i2c: E2 13 00 77 98 80 0D 02 02 0B 00 00 35 04 06 00 DD BC 3D E0 90 61 00 00 85 [23:22:09]Write i2c OK [23:22:09]MH_I2C_Read... [23:22:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:22:09]Read from MH i2c: E2 [23:22:09]MH_I2C_Read... [23:22:09]Read from MH i2c: E2 03 00 [23:22:09]MH_I2C_Read... [23:22:09]Read from MH i2c: E2 03 00 77 98 00 90 00 83 [23:22:09]RAPDU: 90 00 [23:22:09]wFMCommunicate OK [23:22:09]wFMCommunicate request_size=4 [23:22:09]MH_SAM_APDU [23:22:09]CAPDU: 80 0D 03 02 [23:22:09]Write to MH i2c: E2 08 00 78 98 80 0D 03 02 00 00 00 00 8B [23:22:09]Write i2c OK [23:22:09]MH_I2C_Read... [23:22:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:22:09]Read from MH i2c: E2 [23:22:09]MH_I2C_Read... [23:22:09]Read from MH i2c: E2 0B 00 [23:22:09]MH_I2C_Read... [23:22:09]Read from MH i2c: E2 0B 00 78 98 00 70 9B 40 64 18 EB 0A 0C 90 00 54 [23:22:09]RAPDU: 70 9B 40 64 18 EB 0A 0C 90 00 [23:22:09]wFMCommunicate OK [23:22:09]SAM_PROTO_SignData done [23:22:09]FM_MakeSignedData done [23:22:09]CreateOFDProtocolMessage [23:22:09]wFMCommunicate request_size=4 [23:22:09]MH_SAM_APDU [23:22:09]CAPDU: 80 11 00 00 [23:22:09]Write to MH i2c: E2 08 00 79 98 80 11 00 00 00 00 00 00 8B [23:22:09]Write i2c OK [23:22:09]MH_I2C_Read... [23:22:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:22:09]Read from MH i2c: E2 [23:22:09]MH_I2C_Read... [23:22:09]Read from MH i2c: E2 17 00 [23:22:09]MH_I2C_Read... [23:22:09]Read from MH i2c: E2 17 00 79 98 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 D9 [23:22:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [23:22:09]wFMCommunicate OK [23:22:09]CreateOFDProtocolMessage done [23:22:09]OFDSenderStorePacket 187954 [23:22:09]StoreOFDPacket docnum=187954 [23:22:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 54 9D 0D 01 7F 4A 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 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 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 A2 01 00 00 F4 03 04 00 25 E2 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 32 DE 02 00 35 04 06 00 DD BC 3D E0 90 61 70 9B 40 64 18 EB 0A 0C [23:22:09]CheckFolder [23:22:09]dirname=/storage/ofd_packets [23:22:09]CheckFolder done [23:22:09]ProducePacketName [23:22:09]name=ofd_packets/00187954 [23:22:09]NVStorageSaveData ofd_packets/00187954 [23:22:09]File name is /storage/ofd_packets/00187954 [23:22:09]Write 307 bytes [23:22:09]NVStorageSaveData done [23:22:09]OFDSenderStorePacket done [23:22:09]KKMCreateOFDPacket done [23:22:09]NVStorageSaveData kkm_last_timestamp [23:22:09]File name is /storage/kkm_last_timestamp [23:22:09]Write 4 bytes [23:22:09]NVStorageSaveData done [23:22:09]ExternCall_PrintAddStr [23:22:09]wPrintStart [23:22:09]Write to MH i2c: 01 00 00 7A 98 12 [23:22:09]Write i2c OK [23:22:09]MH_I2C_Read... [23:22:09]Read from MH i2c: 01 [23:22:09]MH_I2C_Read... [23:22:09]Read from MH i2c: 01 07 00 [23:22:09]MH_I2C_Read... [23:22:09]Read from MH i2c: 01 07 00 7A 98 00 00 00 00 00 FF 0F 27 [23:22:09]RasterBufferAndPrint [23:22:09]line Счет N : (1)210007 [23:22:09]line ИНН: 02508201610067 [23:22:09]line Контрольно-Кассовый Чек [23:22:09]line ПРОДАЖА [23:22:09]line ТРК (МРК, ГНК) : 31 [23:22:09]line Товар: 2710194210 [23:22:09]line D-ENERGY ДТ-К-5 [23:22:09]line 19.440 * 77.20 [23:22:09]line = 1500.77 [23:22:09]line НДС 12% НСП 1% [23:22:09]line > о реализуемом товаре [23:22:09]line ОКРУГЛЕНИЕ: -0.77 [23:22:09]line ИТОГО: 1500.00 [23:22:09]line Внесено: 1500.00 [23:22:09]line СДАЧА: 0.00 [23:22:09]line НСП 1% : 13.28 [23:22:09]line НДС 12% : 159.37 [23:22:09]line Наличными: 1500.00 [23:22:09]line Безнал.: 0.00 [23:22:09]line Место: АЗС № 86 "Партнер Нефть" [23:22:09]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [23:22:09]line СНО: Общий режим [23:22:09]line Чек 418 21.10.2024 23:22 [23:22:09]line Смена: 460 ФФД: 1.0 [23:22:09]line ЗНМ: 0300000155 [23:22:09]line РНМ: 0000000000100030 [23:22:09]line Версия ККМ: 001 [23:22:09]line ФМ: 0000000000965340 [23:22:09]line ФД: 187954 [23:22:09]line ФПД: 243800561717345 [23:22:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T232213&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187954&fm=243800561717345&tin=02508201610067®Number=0000000000100030&sum=150000 [23:22:09]written 0, free lines is 4095 [23:22:09]OFD Sender: Processing packet 187954 [packets to send 1062, broken 1061] [23:22:09]ProducePacketName [23:22:09]name=ofd_packets/00187954 [23:22:09]OFD Sender: To server: pG, [23:22:09]CommunicateWithHost lk.salyk.kg:30040 [23:22:09]ConnectInit lk.salyk.kg [23:22:09]Connected sock=10 [23:22:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 54 9D 0D 01 7F 4A 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 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 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 A2 01 00 00 F4 03 04 00 25 E2 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 32 DE 02 00 35 04 06 00 DD BC 3D E0 90 61 70 9B 40 64 18 EB 0A 0C [23:22:09]Write to MH i2c: 01 00 00 A5 98 3D [23:22:09]Write i2c OK [23:22:09]MH_I2C_Read... [23:22:09]Read from MH i2c: 01 [23:22:09]MH_I2C_Read... [23:22:09]Read from MH i2c: 01 07 00 [23:22:09]MH_I2C_Read... [23:22:09]Read from MH i2c: 01 07 00 A5 98 00 00 00 00 00 50 0C A0 [23:22:09]RasterBufferAndPrint [23:22:09]line [23:22:09]line [23:22:09]line [23:22:09]line [23:22:09]line [23:22:09]written 0, free lines is 3156 [23:22:09]MH_Cut [23:22:09]Write to MH i2c: D1 01 00 AC 98 01 16 [23:22:09]Write i2c OK [23:22:09]MH_I2C_Read... [23:22:09]Read from MH i2c: D1 [23:22:09]MH_I2C_Read... [23:22:09]Read from MH i2c: D1 01 00 [23:22:09]MH_I2C_Read... [23:22:09]Read from MH i2c: D1 01 00 AC 98 00 15 [23:22:09]Write to MH i2c: 01 00 00 AD 98 45 [23:22:09]Write i2c OK [23:22:09]MH_I2C_Read... [23:22:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 CD 2D 47 00 E2 AB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 32 DE 02 00 F4 03 04 00 14 8C 16 67 B6 04 01 00 00 C5 71 65 D8 4E 44 AB F5 [23:22:09]CommunicateWithHost err = 0 [23:22:09]CheckOFDResponse [23:22:09]1017 (14) - 77093643461234 [23:22:09]1041 (16) - 0000000000965340 [23:22:09]1040 (4) - 187954 [23:22:09]1012 (4) - 21.10.2024 17:15 [23:22:09]1206 (1) - 0 [23:22:09]OFD Sender: Remove packet 187954 [23:22:09]ProducePacketName [23:22:09]name=ofd_packets/00187954 [23:22:09]NVStorageDeleteData [23:22:10]OFD Sender: No OFD packet to send [23:22:11]*** Cut start [23:22:11]*** Partial cut [23:22:11]*** CUTSNS_PIN = 1 [23:22:11]*** CUTSNS_PIN = 0 [23:22:11]*** Brake cut motor [23:22:11]Read from MH i2c: 01 [23:22:11]MH_I2C_Read... [23:22:11]*** Stop cut motor [23:22:11]*** Cut end [23:22:11]Read from MH i2c: 01 07 00 [23:22:11]MH_I2C_Read... [23:22:11]Read from MH i2c: 01 07 00 AD 98 00 00 00 00 00 FF 0F 5A [23:22:11]process_action close_receipt done [23:22:11]requested_data is exist [23:22:11]produce_requested_data [23:22:11]requested_item fm.sn is exist - process it [23:22:11]wFMCommunicate request_size=4 [23:22:11]MH_SAM_APDU [23:22:11]CAPDU: 80 11 00 00 [23:22:11]Write to MH i2c: E2 08 00 AE 98 80 11 00 00 00 00 00 00 C0 [23:22:11]Write i2c OK [23:22:11]MH_I2C_Read... [23:22:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:22:11]Read from MH i2c: E2 [23:22:11]MH_I2C_Read... [23:22:11]Read from MH i2c: E2 17 00 [23:22:11]MH_I2C_Read... [23:22:11]Read from MH i2c: E2 17 00 AE 98 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 0E [23:22:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [23:22:11]wFMCommunicate OK [23:22:11]requested_item fd.num is exist - process it [23:22:11]SAM_PROTO_GetFieldsCounters [23:22:11]wFMCommunicate request_size=4 [23:22:11]MH_SAM_APDU [23:22:11]CAPDU: 80 13 00 00 [23:22:11]Write to MH i2c: E2 08 00 AF 98 80 13 00 00 00 00 00 00 C3 [23:22:11]Write i2c OK [23:22:11]MH_I2C_Read... [23:22:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:22:11]Read from MH i2c: E2 [23:22:11]MH_I2C_Read... [23:22:11]Read from MH i2c: E2 62 00 [23:22:11]MH_I2C_Read... [23:22:11]Read from MH i2c: E2 62 00 AF 98 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 32 DE 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 A2 01 00 00 5E 04 04 00 A2 01 00 00 57 04 04 00 A3 01 00 00 19 04 04 00 00 00 00 00 90 00 92 [23:22:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 32 DE 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 A2 01 00 00 5E 04 04 00 A2 01 00 00 57 04 04 00 A3 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:22:11]wFMCommunicate OK [23:22:11]SAM_PROTO_GetFieldsCounters done [23:22:11]requested_item shift.num is exist - process it [23:22:11]requested_item shift.opened is exist - process it [23:22:11]req_shift_opened [23:22:11]FM_GetShiftState [23:22:11]SAM_PROTO_GetShiftState [23:22:11]wFMCommunicate request_size=4 [23:22:11]MH_SAM_APDU [23:22:11]CAPDU: 80 13 01 00 [23:22:11]Write to MH i2c: E2 08 00 B0 98 80 13 01 00 00 00 00 00 C5 [23:22:11]Write i2c OK [23:22:11]MH_I2C_Read... [23:22:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:22:11]Read from MH i2c: E2 [23:22:11]MH_I2C_Read... [23:22:11]Read from MH i2c: E2 0E 00 [23:22:11]MH_I2C_Read... [23:22:11]Read from MH i2c: E2 0E 00 B0 98 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 24 [23:22:11]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [23:22:11]wFMCommunicate OK [23:22:11]SAM_PROTO_GetShiftState done [23:22:11]FM_GetShiftState done [23:22:11]req_shift_opened done [23:22:11]requested_item shift.open_date is exist - process it [23:22:11]req_shift_open_date [23:22:11]req_shift_open_date done [23:22:11]produce_requested_data done [23:22:11]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187954,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [23:22:11]process_action_free close_receipt [23:22:11]json_value_free [23:22:11]json_value_free done [23:22:11]process_json_proto returns [23:22:11]Send response to host [23:22:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187954,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [23:22:11]free response buf [23:22:11]execute_script done [23:22:11]execute_script returns [23:22:11]free content buf [23:22:11]Sock 9.Close socket [23:22:11]Sock 9.Thread stoped [23:22:15]OFD Sender: No OFD packet to send [23:22:20]OFD Sender: No OFD packet to send [23:22:25]OFD Sender: No OFD packet to send [23:22:30]OFD Sender: No OFD packet to send [23:22:35]OFD Sender: No OFD packet to send [23:22:40]OFD Sender: No OFD packet to send [23:22:45]OFD Sender: No OFD packet to send [23:22:50]OFD Sender: No OFD packet to send [23:22:55]OFD Sender: No OFD packet to send [23:23:00]OFD Sender: No OFD packet to send [23:23:05]OFD Sender: No OFD packet to send [23:23:10]OFD Sender: No OFD packet to send [23:23:15]OFD Sender: No OFD packet to send [23:23:20]OFD Sender: No OFD packet to send [23:23:25]OFD Sender: No OFD packet to send [23:23:30]OFD Sender: No OFD packet to send [23:23:35]OFD Sender: No OFD packet to send [23:23:40]OFD Sender: No OFD packet to send [23:23:45]OFD Sender: No OFD packet to send [23:23:50]OFD Sender: No OFD packet to send [23:23:55]OFD Sender: No OFD packet to send [23:23:59]accept exits with 8 [23:23:59]New connection [23:23:59]New thread 3067014500 created [23:23:59]Thread 3067157860 joined [23:23:59]Waiting for new connection... [23:23:59] Sock 8.Parse request [23:23:59]Sock 8.Check first char [23:23:59]Sock 8.First char is OK [23:23:59]request: POST /json_proto HTTP/1.0 [23:23:59]Method: POST [23:23:59]URL: /json_proto [23:23:59]Method is POST - this is cgi request [23:23:59]url: /json_proto [23:23:59]query_string will be loaded in cgi processing [23:23:59]execute_cgi json_proto POST (null) [23:23:59]execute_cgi path=json_proto method=POST [23:23:59]POST find Content-Length [23:23:59]Host: 172.17.42.131:8080 [23:23:59]Content-Length: 682 [23:23:59]Content-Type: application/json [23:23:59] [23:23:59]POST finish read [23:23:59]Found Content-Length = 682 [23:23:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210008", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:23:59]execute_script... [23:23: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)210008", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:23:59]POST & json_proto [23:23:59]process_json_proto [23:23:59]json parsed OK: [23:23:59]protocol is kg_v1.0 [23:23:59]action value=close_receipt [23:23:59]process_action close_receipt [23:23:59]cmd_close_receipt [23:23:59]MH_GetDate [23:23:59]Write to MH i2c: F0 00 00 B1 98 38 [23:23:59]Write i2c OK [23:23:59]MH_I2C_Read... [23:23:59]Read from MH i2c: F0 [23:23:59]MH_I2C_Read... [23:23:59]Read from MH i2c: F0 09 00 [23:23:59]MH_I2C_Read... [23:23:59]Read from MH i2c: F0 09 00 B1 98 00 96 E2 16 67 A0 18 CA 66 1E [23:23:59]GetLastDocTimeStamp 1729552933 [23:23:59]current date 1729553046 [23:23:59]FM_GetShiftState [23:23:59]SAM_PROTO_GetShiftState [23:23:59]wFMCommunicate request_size=4 [23:23:59]MH_SAM_APDU [23:23:59]CAPDU: 80 13 01 00 [23:23:59]Write to MH i2c: E2 08 00 B2 98 80 13 01 00 00 00 00 00 C7 [23:23:59]Write i2c OK [23:23:59]MH_I2C_Read... [23:23:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:23:59]Read from MH i2c: E2 [23:23:59]MH_I2C_Read... [23:23:59]Read from MH i2c: E2 0E 00 [23:23:59]MH_I2C_Read... [23:23:59]Read from MH i2c: E2 0E 00 B2 98 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 26 [23:23:59]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [23:23:59]wFMCommunicate OK [23:23:59]SAM_PROTO_GetShiftState done [23:23:59]FM_GetShiftState done [23:23:59]opened in 1729469754 [23:23:59]opened+sec_in_day 1729556154 [23:23:59]quantity*price = 100015 [23:23:59]sum+1 = 100017 [23:23:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 419 21.10.2024 23:24 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 187955 ФПД: 72343174550395 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T232406&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187955&fm=72343174550395&tin=02508201610067®Number=0000000000100030&sum=100000 [23:24:00]StoreToDocumentArchive [23:24:00]shift 460 fd 187955 [23:24:00]save to /storage/0460/doc_00187955 [23:24:00]save last doc name /storage/0460/doc_00187955 to /storage/kkm_last_doc_name [23:24:00]save OK [23:24:00]Clear old archive folders... [23:24:00]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:24:00]tlvbuf is 011C2DF0 [23:24:00]SAM_PROTO_ClearQueue [23:24:00]wFMCommunicate request_size=4 [23:24:00]MH_SAM_APDU [23:24:00]CAPDU: 80 09 00 00 [23:24:00]Write to MH i2c: E2 08 00 BF 98 80 09 00 00 00 00 00 00 C9 [23:24:00]Write i2c OK [23:24:00]MH_I2C_Read... [23:24:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:24:00]Read from MH i2c: E2 [23:24:00]MH_I2C_Read... [23:24:00]Read from MH i2c: E2 03 00 [23:24:00]MH_I2C_Read... [23:24:00]Read from MH i2c: E2 03 00 BF 98 00 90 00 CB [23:24:00]RAPDU: 90 00 [23:24:00]wFMCommunicate OK [23:24:00]SAM_PROTO_ClearQueue done [23:24:00]KKMCreateOFDPacket [23:24:00]OFDProtocolAddRootSTLVToBuf [23:24:00]FM_MakeSignedData [23:24:00]FM_MakeSignedData [23:24:00]SAM_PROTO_SignData [23:24:00]wFMCommunicate request_size=4 [23:24:00]MH_SAM_APDU [23:24:00]CAPDU: 80 0D 01 02 [23:24:00]Write to MH i2c: E2 08 00 C0 98 80 0D 01 02 00 00 00 00 D1 [23:24:00]Write i2c OK [23:24:00]MH_I2C_Read... [23:24:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:24:00]Read from MH i2c: E2 [23:24:00]MH_I2C_Read... [23:24:00]Read from MH i2c: E2 03 00 [23:24:00]MH_I2C_Read... [23:24:00]Read from MH i2c: E2 03 00 C0 98 00 90 00 CC [23:24:00]RAPDU: 90 00 [23:24:00]wFMCommunicate OK [23:24:00]wFMCommunicate request_size=255 [23:24:00]MH_SAM_APDU [23:24:00]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 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 A3 01 00 00 F4 03 04 00 96 E2 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 33 DE 02 00 35 04 06 00 41 [23:24:01]Write to MH i2c: E2 02 01 C1 98 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 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 A3 01 00 00 F4 03 04 00 96 E2 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 33 DE 02 00 35 04 06 00 41 00 00 F8 [23:24:01]Write i2c OK [23:24:01]MH_I2C_Read... [23:24:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:24:01]Read from MH i2c: E2 [23:24:01]MH_I2C_Read... [23:24:01]Read from MH i2c: E2 03 00 [23:24:01]MH_I2C_Read... [23:24:01]Read from MH i2c: E2 03 00 C1 98 00 90 00 CD [23:24:01]RAPDU: 90 00 [23:24:01]wFMCommunicate OK [23:24:01]wFMCommunicate request_size=10 [23:24:01]MH_SAM_APDU [23:24:01]CAPDU: 80 0D 02 02 05 CB B5 38 93 7B [23:24:01]Write to MH i2c: E2 0D 00 C2 98 80 0D 02 02 05 00 CB B5 38 93 7B 00 00 A4 [23:24:01]Write i2c OK [23:24:01]MH_I2C_Read... [23:24:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:24:01]Read from MH i2c: E2 [23:24:01]MH_I2C_Read... [23:24:01]Read from MH i2c: E2 03 00 [23:24:01]MH_I2C_Read... [23:24:01]Read from MH i2c: E2 03 00 C2 98 00 90 00 CE [23:24:01]RAPDU: 90 00 [23:24:01]wFMCommunicate OK [23:24:01]wFMCommunicate request_size=4 [23:24:01]MH_SAM_APDU [23:24:01]CAPDU: 80 0D 03 02 [23:24:01]Write to MH i2c: E2 08 00 C3 98 80 0D 03 02 00 00 00 00 D6 [23:24:01]Write i2c OK [23:24:01]MH_I2C_Read... [23:24:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:24:01]Read from MH i2c: E2 [23:24:01]MH_I2C_Read... [23:24:01]Read from MH i2c: E2 0B 00 [23:24:01]MH_I2C_Read... [23:24:01]Read from MH i2c: E2 0B 00 C3 98 00 49 BC 7F 35 A6 3C A2 0F 90 00 23 [23:24:01]RAPDU: 49 BC 7F 35 A6 3C A2 0F 90 00 [23:24:01]wFMCommunicate OK [23:24:01]SAM_PROTO_SignData done [23:24:01]FM_MakeSignedData done [23:24:01]CreateOFDProtocolMessage [23:24:01]wFMCommunicate request_size=4 [23:24:01]MH_SAM_APDU [23:24:01]CAPDU: 80 11 00 00 [23:24:01]Write to MH i2c: E2 08 00 C4 98 80 11 00 00 00 00 00 00 D6 [23:24:01]Write i2c OK [23:24:01]MH_I2C_Read... [23:24:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:24:01]Read from MH i2c: E2 [23:24:01]MH_I2C_Read... [23:24:01]Read from MH i2c: E2 17 00 [23:24:01]MH_I2C_Read... [23:24:01]Read from MH i2c: E2 17 00 C4 98 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 24 [23:24:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [23:24:01]wFMCommunicate OK [23:24:01]CreateOFDProtocolMessage done [23:24:01]OFDSenderStorePacket 187955 [23:24:01]StoreOFDPacket docnum=187955 [23:24:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 07 2D 07 01 E2 53 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 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 A3 01 00 00 F4 03 04 00 96 E2 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 33 DE 02 00 35 04 06 00 41 CB B5 38 93 7B 49 BC 7F 35 A6 3C A2 0F [23:24:01]CheckFolder [23:24:01]dirname=/storage/ofd_packets [23:24:01]CheckFolder done [23:24:01]ProducePacketName [23:24:01]name=ofd_packets/00187955 [23:24:01]NVStorageSaveData ofd_packets/00187955 [23:24:01]File name is /storage/ofd_packets/00187955 [23:24:01]Write 301 bytes [23:24:01]NVStorageSaveData done [23:24:01]OFDSenderStorePacket done [23:24:01]KKMCreateOFDPacket done [23:24:01]NVStorageSaveData kkm_last_timestamp [23:24:01]File name is /storage/kkm_last_timestamp [23:24:01]Write 4 bytes [23:24:01]NVStorageSaveData done [23:24:01]ExternCall_PrintAddStr [23:24:01]wPrintStart [23:24:01]Write to MH i2c: 01 00 00 C5 98 5D [23:24:01]Write i2c OK [23:24:01]MH_I2C_Read... [23:24:01]Read from MH i2c: 01 [23:24:01]MH_I2C_Read... [23:24:01]Read from MH i2c: 01 07 00 [23:24:01]MH_I2C_Read... [23:24:01]Read from MH i2c: 01 07 00 C5 98 00 00 00 00 00 FF 0F 72 [23:24:01]RasterBufferAndPrint [23:24:01]line Счет N : (1)210008 [23:24:01]line ИНН: 02508201610067 [23:24:01]line Контрольно-Кассовый Чек [23:24:01]line ПРОДАЖА [23:24:01]line ТРК (МРК, ГНК) : 12 [23:24:01]line Товар: 2710124130 [23:24:01]line Аи-92-К-3 [23:24:01]line 14.950 * 66.90 [23:24:01]line = 1000.16 [23:24:01]line НДС 12% НСП 1% [23:24:01]line > о реализуемом товаре [23:24:01]line ОКРУГЛЕНИЕ: -0.16 [23:24:01]line ИТОГО: 1000.00 [23:24:01]line Внесено: 1000.00 [23:24:01]line СДАЧА: 0.00 [23:24:01]line НСП 1% : 8.85 [23:24:01]line НДС 12% : 106.21 [23:24:01]line Наличными: 1000.00 [23:24:01]line Безнал.: 0.00 [23:24:01]line Место: АЗС № 86 "Партнер Нефть" [23:24:01]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [23:24:01]line СНО: Общий режим [23:24:01]line Чек 419 21.10.2024 23:24 [23:24:01]line Смена: 460 ФФД: 1.0 [23:24:01]line ЗНМ: 0300000155 [23:24:01]line РНМ: 0000000000100030 [23:24:01]line Версия ККМ: 001 [23:24:01]line ФМ: 0000000000965340 [23:24:01]line ФД: 187955 [23:24:01]line ФПД: 72343174550395 [23:24:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T232406&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187955&fm=72343174550395&tin=02508201610067®Number=0000000000100030&sum=100000 [23:24:01]written 0, free lines is 4095 [23:24:01]OFD Sender: Processing packet 187955 [packets to send 1062, broken 1061] [23:24:01]ProducePacketName [23:24:01]name=ofd_packets/00187955 [23:24:01]OFD Sender: To server: pG, [23:24:01]CommunicateWithHost lk.salyk.kg:30040 [23:24:01]ConnectInit lk.salyk.kg [23:24:01]Connected sock=9 [23:24:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 07 2D 07 01 E2 53 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 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 A3 01 00 00 F4 03 04 00 96 E2 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 33 DE 02 00 35 04 06 00 41 CB B5 38 93 7B 49 BC 7F 35 A6 3C A2 0F [23:24:01]Write to MH i2c: 01 00 00 F0 98 88 [23:24:01]Write i2c OK [23:24:01]MH_I2C_Read... [23:24:01]Read from MH i2c: 01 [23:24:01]MH_I2C_Read... [23:24:01]Read from MH i2c: 01 07 00 [23:24:01]MH_I2C_Read... [23:24:01]Read from MH i2c: 01 07 00 F0 98 00 00 00 00 00 52 0C ED [23:24:01]RasterBufferAndPrint [23:24:01]line [23:24:01]line [23:24:01]line [23:24:01]line [23:24:01]line [23:24:01]written 0, free lines is 3159 [23:24:01]MH_Cut [23:24:01]Write to MH i2c: D1 01 00 F7 98 01 61 [23:24:01]Write i2c OK [23:24:01]MH_I2C_Read... [23:24:01]Read from MH i2c: D1 [23:24:01]MH_I2C_Read... [23:24:01]Read from MH i2c: D1 01 00 [23:24:01]MH_I2C_Read... [23:24:01]Read from MH i2c: D1 01 00 F7 98 00 60 [23:24:01]Write to MH i2c: 01 00 00 F8 98 90 [23:24:01]Write i2c OK [23:24:01]MH_I2C_Read... [23:24:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 0B 2B 47 00 1A 32 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 33 DE 02 00 F4 03 04 00 84 8C 16 67 B6 04 01 00 00 C9 7F C9 05 BE B2 C4 3B [23:24:02]CommunicateWithHost err = 0 [23:24:02]CheckOFDResponse [23:24:02]1017 (14) - 77093643461234 [23:24:02]1041 (16) - 0000000000965340 [23:24:02]1040 (4) - 187955 [23:24:02]1012 (4) - 21.10.2024 17:16 [23:24:02]1206 (1) - 0 [23:24:02]OFD Sender: Remove packet 187955 [23:24:02]ProducePacketName [23:24:02]name=ofd_packets/00187955 [23:24:02]NVStorageDeleteData [23:24:02]OFD Sender: No OFD packet to send [23:24:03]*** Cut start [23:24:03]*** Partial cut [23:24:03]*** CUTSNS_PIN = 1 [23:24:03]*** CUTSNS_PIN = 0 [23:24:03]*** Brake cut motor [23:24:03]Read from MH i2c: 01 [23:24:03]MH_I2C_Read... [23:24:03]*** Stop cut motor [23:24:03]*** Cut end [23:24:03]Read from MH i2c: 01 07 00 [23:24:03]MH_I2C_Read... [23:24:03]Read from MH i2c: 01 07 00 F8 98 00 00 00 00 00 FF 0F A5 [23:24:03]process_action close_receipt done [23:24:03]requested_data is exist [23:24:03]produce_requested_data [23:24:03]requested_item fm.sn is exist - process it [23:24:03]wFMCommunicate request_size=4 [23:24:03]MH_SAM_APDU [23:24:03]CAPDU: 80 11 00 00 [23:24:03]Write to MH i2c: E2 08 00 F9 98 80 11 00 00 00 00 00 00 0B [23:24:03]Write i2c OK [23:24:03]MH_I2C_Read... [23:24:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:24:03]Read from MH i2c: E2 [23:24:03]MH_I2C_Read... [23:24:03]Read from MH i2c: E2 17 00 [23:24:03]MH_I2C_Read... [23:24:03]Read from MH i2c: E2 17 00 F9 98 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 59 [23:24:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [23:24:03]wFMCommunicate OK [23:24:03]requested_item fd.num is exist - process it [23:24:03]SAM_PROTO_GetFieldsCounters [23:24:03]wFMCommunicate request_size=4 [23:24:03]MH_SAM_APDU [23:24:03]CAPDU: 80 13 00 00 [23:24:03]Write to MH i2c: E2 08 00 FA 98 80 13 00 00 00 00 00 00 0E [23:24:03]Write i2c OK [23:24:03]MH_I2C_Read... [23:24:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:24:04]Read from MH i2c: E2 [23:24:04]MH_I2C_Read... [23:24:04]Read from MH i2c: E2 62 00 [23:24:04]MH_I2C_Read... [23:24:04]Read from MH i2c: E2 62 00 FA 98 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 33 DE 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 A3 01 00 00 5E 04 04 00 A3 01 00 00 57 04 04 00 A4 01 00 00 19 04 04 00 00 00 00 00 90 00 E1 [23:24:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 33 DE 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 A3 01 00 00 5E 04 04 00 A3 01 00 00 57 04 04 00 A4 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:24:04]wFMCommunicate OK [23:24:04]SAM_PROTO_GetFieldsCounters done [23:24:04]requested_item shift.num is exist - process it [23:24:04]requested_item shift.opened is exist - process it [23:24:04]req_shift_opened [23:24:04]FM_GetShiftState [23:24:04]SAM_PROTO_GetShiftState [23:24:04]wFMCommunicate request_size=4 [23:24:04]MH_SAM_APDU [23:24:04]CAPDU: 80 13 01 00 [23:24:04]Write to MH i2c: E2 08 00 FB 98 80 13 01 00 00 00 00 00 10 [23:24:04]Write i2c OK [23:24:04]MH_I2C_Read... [23:24:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:24:04]Read from MH i2c: E2 [23:24:04]MH_I2C_Read... [23:24:04]Read from MH i2c: E2 0E 00 [23:24:04]MH_I2C_Read... [23:24:04]Read from MH i2c: E2 0E 00 FB 98 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 6F [23:24:04]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [23:24:04]wFMCommunicate OK [23:24:04]SAM_PROTO_GetShiftState done [23:24:04]FM_GetShiftState done [23:24:04]req_shift_opened done [23:24:04]requested_item shift.open_date is exist - process it [23:24:04]req_shift_open_date [23:24:04]req_shift_open_date done [23:24:04]produce_requested_data done [23:24:04]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187955,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [23:24:04]process_action_free close_receipt [23:24:04]json_value_free [23:24:04]json_value_free done [23:24:04]process_json_proto returns [23:24:04]Send response to host [23:24:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187955,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [23:24:04]free response buf [23:24:04]execute_script done [23:24:04]execute_script returns [23:24:04]free content buf [23:24:04]Sock 8.Close socket [23:24:04]Sock 8.Thread stoped [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:24:59]accept exits with 10 [23:24:59]New connection [23:24:59]New thread 3067157860 created [23:24:59]Thread 3067014500 joined [23:24:59]Waiting for new connection... [23:24:59] Sock 10.Parse request [23:24:59]Sock 10.Check first char [23:24:59]Sock 10.First char is OK [23:24:59]request: POST /json_proto HTTP/1.0 [23:24:59]Method: POST [23:24:59]URL: /json_proto [23:24:59]Method is POST - this is cgi request [23:24:59]url: /json_proto [23:24:59]query_string will be loaded in cgi processing [23:24:59]execute_cgi json_proto POST (null) [23:24:59]execute_cgi path=json_proto method=POST [23:24:59]POST find Content-Length [23:24:59]Host: 172.17.42.131:8080 [23:24:59]Content-Length: 682 [23:24:59]Content-Type: application/json [23:24:59] [23:24:59]POST finish read [23:24:59]Found Content-Length = 682 [23:24:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210009", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:24:59]execute_script... [23:24: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)210009", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:24:59]POST & json_proto [23:24:59]process_json_proto [23:24:59]json parsed OK: [23:24:59]protocol is kg_v1.0 [23:24:59]action value=close_receipt [23:24:59]process_action close_receipt [23:24:59]cmd_close_receipt [23:24:59]MH_GetDate [23:24:59]Write to MH i2c: F0 00 00 FC 98 83 [23:24:59]Write i2c OK [23:24:59]MH_I2C_Read... [23:24:59]Read from MH i2c: F0 [23:24:59]MH_I2C_Read... [23:24:59]Read from MH i2c: F0 09 00 [23:24:59]MH_I2C_Read... [23:24:59]Read from MH i2c: F0 09 00 FC 98 00 D1 E2 16 67 A0 18 CA 66 A4 [23:24:59]GetLastDocTimeStamp 1729553046 [23:24:59]current date 1729553105 [23:24:59]FM_GetShiftState [23:24:59]SAM_PROTO_GetShiftState [23:24:59]wFMCommunicate request_size=4 [23:24:59]MH_SAM_APDU [23:24:59]CAPDU: 80 13 01 00 [23:24:59]Write to MH i2c: E2 08 00 FD 98 80 13 01 00 00 00 00 00 12 [23:24:59]Write i2c OK [23:24:59]MH_I2C_Read... [23:24:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:24:59]Read from MH i2c: E2 [23:24:59]MH_I2C_Read... [23:24:59]Read from MH i2c: E2 0E 00 [23:24:59]MH_I2C_Read... [23:24:59]Read from MH i2c: E2 0E 00 FD 98 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 71 [23:24:59]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [23:24:59]wFMCommunicate OK [23:24:59]SAM_PROTO_GetShiftState done [23:24:59]FM_GetShiftState done [23:24:59]opened in 1729469754 [23:24:59]opened+sec_in_day 1729556154 [23:24:59]quantity*price = 100015 [23:24:59]sum+1 = 100017 [23:24:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 420 21.10.2024 23:25 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 187956 ФПД: 175122761032779 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T232505&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187956&fm=175122761032779&tin=02508201610067®Number=0000000000100030&sum=100000 [23:25:00]StoreToDocumentArchive [23:25:00]shift 460 fd 187956 [23:25:00]save to /storage/0460/doc_00187956 [23:25:00]save last doc name /storage/0460/doc_00187956 to /storage/kkm_last_doc_name [23:25:00]save OK [23:25:00]Clear old archive folders... [23:25:00]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:25:00]tlvbuf is 013757E0 [23:25:00]SAM_PROTO_ClearQueue [23:25:00]wFMCommunicate request_size=4 [23:25:00]MH_SAM_APDU [23:25:00]CAPDU: 80 09 00 00 [23:25:00]Write to MH i2c: E2 08 00 0A 99 80 09 00 00 00 00 00 00 15 [23:25:00]Write i2c OK [23:25:00]MH_I2C_Read... [23:25:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:25:00]Read from MH i2c: E2 [23:25:00]MH_I2C_Read... [23:25:00]Read from MH i2c: E2 03 00 [23:25:00]MH_I2C_Read... [23:25:00]Read from MH i2c: E2 03 00 0A 99 00 90 00 17 [23:25:00]RAPDU: 90 00 [23:25:00]wFMCommunicate OK [23:25:00]SAM_PROTO_ClearQueue done [23:25:00]KKMCreateOFDPacket [23:25:00]OFDProtocolAddRootSTLVToBuf [23:25:00]FM_MakeSignedData [23:25:00]FM_MakeSignedData [23:25:00]SAM_PROTO_SignData [23:25:00]wFMCommunicate request_size=4 [23:25:00]MH_SAM_APDU [23:25:00]CAPDU: 80 0D 01 02 [23:25:00]Write to MH i2c: E2 08 00 0B 99 80 0D 01 02 00 00 00 00 1D [23:25:00]Write i2c OK [23:25:00]MH_I2C_Read... [23:25:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:25:00]Read from MH i2c: E2 [23:25:00]MH_I2C_Read... [23:25:00]Read from MH i2c: E2 03 00 [23:25:00]MH_I2C_Read... [23:25:00]Read from MH i2c: E2 03 00 0B 99 00 90 00 18 [23:25:00]RAPDU: 90 00 [23:25:00]wFMCommunicate OK [23:25:00]wFMCommunicate request_size=255 [23:25:00]MH_SAM_APDU [23:25:00]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 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 A4 01 00 00 F4 03 04 00 D1 E2 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 34 DE 02 00 35 04 06 00 9F [23:25:00]Write to MH i2c: E2 02 01 0C 99 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 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 A4 01 00 00 F4 03 04 00 D1 E2 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 34 DE 02 00 35 04 06 00 9F 00 00 DF [23:25:00]Write i2c OK [23:25:00]MH_I2C_Read... [23:25:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:25:00]Read from MH i2c: E2 [23:25:00]MH_I2C_Read... [23:25:00]Read from MH i2c: E2 03 00 [23:25:00]MH_I2C_Read... [23:25:00]Read from MH i2c: E2 03 00 0C 99 00 90 00 19 [23:25:00]RAPDU: 90 00 [23:25:00]wFMCommunicate OK [23:25:00]wFMCommunicate request_size=10 [23:25:00]MH_SAM_APDU [23:25:00]CAPDU: 80 0D 02 02 05 45 F1 F6 A4 4B [23:25:00]Write to MH i2c: E2 0D 00 0D 99 80 0D 02 02 05 00 45 F1 F6 A4 4B 00 00 45 [23:25:00]Write i2c OK [23:25:00]MH_I2C_Read... [23:25:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:25:00]Read from MH i2c: E2 [23:25:00]MH_I2C_Read... [23:25:00]Read from MH i2c: E2 03 00 [23:25:00]MH_I2C_Read... [23:25:00]Read from MH i2c: E2 03 00 0D 99 00 90 00 1A [23:25:00]RAPDU: 90 00 [23:25:00]wFMCommunicate OK [23:25:00]wFMCommunicate request_size=4 [23:25:00]MH_SAM_APDU [23:25:00]CAPDU: 80 0D 03 02 [23:25:00]Write to MH i2c: E2 08 00 0E 99 80 0D 03 02 00 00 00 00 22 [23:25:00]Write i2c OK [23:25:00]MH_I2C_Read... [23:25:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:25:00]Read from MH i2c: E2 [23:25:00]MH_I2C_Read... [23:25:00]Read from MH i2c: E2 0B 00 [23:25:00]MH_I2C_Read... [23:25:00]Read from MH i2c: E2 0B 00 0E 99 00 2A B9 20 FB 75 D3 78 78 90 00 59 [23:25:00]RAPDU: 2A B9 20 FB 75 D3 78 78 90 00 [23:25:00]wFMCommunicate OK [23:25:00]SAM_PROTO_SignData done [23:25:00]FM_MakeSignedData done [23:25:00]CreateOFDProtocolMessage [23:25:00]wFMCommunicate request_size=4 [23:25:00]MH_SAM_APDU [23:25:00]CAPDU: 80 11 00 00 [23:25:00]Write to MH i2c: E2 08 00 0F 99 80 11 00 00 00 00 00 00 22 [23:25:00]Write i2c OK [23:25:00]MH_I2C_Read... [23:25:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:25:00]Read from MH i2c: E2 [23:25:00]MH_I2C_Read... [23:25:00]Read from MH i2c: E2 17 00 [23:25:00]MH_I2C_Read... [23:25:00]Read from MH i2c: E2 17 00 0F 99 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 70 [23:25:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [23:25:00]wFMCommunicate OK [23:25:00]CreateOFDProtocolMessage done [23:25:00]OFDSenderStorePacket 187956 [23:25:00]StoreOFDPacket docnum=187956 [23:25:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 EE AB 07 01 D3 5E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 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 A4 01 00 00 F4 03 04 00 D1 E2 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 34 DE 02 00 35 04 06 00 9F 45 F1 F6 A4 4B 2A B9 20 FB 75 D3 78 78 [23:25:00]CheckFolder [23:25:00]dirname=/storage/ofd_packets [23:25:00]CheckFolder done [23:25:00]ProducePacketName [23:25:00]name=ofd_packets/00187956 [23:25:00]NVStorageSaveData ofd_packets/00187956 [23:25:00]File name is /storage/ofd_packets/00187956 [23:25:00]Write 301 bytes [23:25:00]NVStorageSaveData done [23:25:00]OFDSenderStorePacket done [23:25:00]KKMCreateOFDPacket done [23:25:00]NVStorageSaveData kkm_last_timestamp [23:25:00]File name is /storage/kkm_last_timestamp [23:25:00]Write 4 bytes [23:25:00]NVStorageSaveData done [23:25:00]ExternCall_PrintAddStr [23:25:00]wPrintStart [23:25:00]Write to MH i2c: 01 00 00 10 99 A9 [23:25:00]Write i2c OK [23:25:00]MH_I2C_Read... [23:25:00]Read from MH i2c: 01 [23:25:00]MH_I2C_Read... [23:25:00]Read from MH i2c: 01 07 00 [23:25:00]MH_I2C_Read... [23:25:00]Read from MH i2c: 01 07 00 10 99 00 00 00 00 00 FF 0F BE [23:25:00]RasterBufferAndPrint [23:25:00]line Счет N : (1)210009 [23:25:00]line ИНН: 02508201610067 [23:25:00]line Контрольно-Кассовый Чек [23:25:00]line ПРОДАЖА [23:25:00]line ТРК (МРК, ГНК) : 22 [23:25:00]line Товар: 2710124130 [23:25:00]line Аи-92-К-3 [23:25:00]line 14.950 * 66.90 [23:25:00]line = 1000.16 [23:25:00]line НДС 12% НСП 1% [23:25:00]line > о реализуемом товаре [23:25:00]line ОКРУГЛЕНИЕ: -0.16 [23:25:00]line ИТОГО: 1000.00 [23:25:00]line Внесено: 1000.00 [23:25:00]line СДАЧА: 0.00 [23:25:00]line НСП 1% : 8.85 [23:25:00]line НДС 12% : 106.21 [23:25:00]line Наличными: 1000.00 [23:25:00]line Безнал.: 0.00 [23:25:00]line Место: АЗС № 86 "Партнер Нефть" [23:25:00]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [23:25:00]line СНО: Общий режим [23:25:00]line Чек 420 21.10.2024 23:25 [23:25:00]line Смена: 460 ФФД: 1.0 [23:25:00]line ЗНМ: 0300000155 [23:25:00]line РНМ: 0000000000100030 [23:25:00]line Версия ККМ: 001 [23:25:00]line ФМ: 0000000000965340 [23:25:00]line ФД: 187956 [23:25:00]line ФПД: 175122761032779 [23:25:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T232505&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187956&fm=175122761032779&tin=02508201610067®Number=0000000000100030&sum=100000 [23:25:00]written 0, free lines is 4095 [23:25:00]OFD Sender: Processing packet 187956 [packets to send 1062, broken 1061] [23:25:00]ProducePacketName [23:25:00]name=ofd_packets/00187956 [23:25:00]OFD Sender: To server: pG, [23:25:00]CommunicateWithHost lk.salyk.kg:30040 [23:25:00]ConnectInit lk.salyk.kg [23:25:01]Connected sock=9 [23:25:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 EE AB 07 01 D3 5E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 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 A4 01 00 00 F4 03 04 00 D1 E2 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 34 DE 02 00 35 04 06 00 9F 45 F1 F6 A4 4B 2A B9 20 FB 75 D3 78 78 [23:25:01]Write to MH i2c: 01 00 00 3B 99 D4 [23:25:01]Write i2c OK [23:25:01]MH_I2C_Read... [23:25:01]Read from MH i2c: 01 [23:25:01]MH_I2C_Read... [23:25:01]Read from MH i2c: 01 07 00 [23:25:01]MH_I2C_Read... [23:25:01]Read from MH i2c: 01 07 00 3B 99 00 00 00 00 00 58 0C 3F [23:25:01]RasterBufferAndPrint [23:25:01]line [23:25:01]line [23:25:01]line [23:25:01]line [23:25:01]line [23:25:01]written 0, free lines is 3164 [23:25:01]MH_Cut [23:25:01]Write to MH i2c: D1 01 00 42 99 01 AD [23:25:01]Write i2c OK [23:25:01]MH_I2C_Read... [23:25:01]Read from MH i2c: D1 [23:25:01]MH_I2C_Read... [23:25:01]Read from MH i2c: D1 01 00 [23:25:01]MH_I2C_Read... [23:25:01]Read from MH i2c: D1 01 00 42 99 00 AC [23:25:01]Write to MH i2c: 01 00 00 43 99 DC [23:25:01]Write i2c OK [23:25:01]MH_I2C_Read... [23:25:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 18 5D 47 00 7E DC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 34 DE 02 00 F4 03 04 00 C0 8C 16 67 B6 04 01 00 00 78 B8 EC 17 EE 43 1E AD [23:25:01]CommunicateWithHost err = 0 [23:25:01]CheckOFDResponse [23:25:01]1017 (14) - 77093643461234 [23:25:01]1041 (16) - 0000000000965340 [23:25:01]1040 (4) - 187956 [23:25:01]1012 (4) - 21.10.2024 17:17 [23:25:01]1206 (1) - 0 [23:25:01]OFD Sender: Remove packet 187956 [23:25:01]ProducePacketName [23:25:01]name=ofd_packets/00187956 [23:25:01]NVStorageDeleteData [23:25:01]OFD Sender: No OFD packet to send [23:25:02]*** Cut start [23:25:02]*** Partial cut [23:25:02]*** CUTSNS_PIN = 1 [23:25:02]*** CUTSNS_PIN = 0 [23:25:02]*** Brake cut motor [23:25:03]Read from MH i2c: 01 [23:25:03]MH_I2C_Read... [23:25:03]*** Stop cut motor [23:25:03]Read from MH i2c: 01 07 00 [23:25:03]MH_I2C_Read... [23:25:03]*** Cut end [23:25:03]Read from MH i2c: 01 07 00 43 99 00 00 00 00 00 FF 0F F1 [23:25:03]process_action close_receipt done [23:25:03]requested_data is exist [23:25:03]produce_requested_data [23:25:03]requested_item fm.sn is exist - process it [23:25:03]wFMCommunicate request_size=4 [23:25:03]MH_SAM_APDU [23:25:03]CAPDU: 80 11 00 00 [23:25:03]Write to MH i2c: E2 08 00 44 99 80 11 00 00 00 00 00 00 57 [23:25:03]Write i2c OK [23:25:03]MH_I2C_Read... [23:25:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:25:03]Read from MH i2c: E2 [23:25:03]MH_I2C_Read... [23:25:03]Read from MH i2c: E2 17 00 [23:25:03]MH_I2C_Read... [23:25:03]Read from MH i2c: E2 17 00 44 99 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 A5 [23:25:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [23:25:03]wFMCommunicate OK [23:25:03]requested_item fd.num is exist - process it [23:25:03]SAM_PROTO_GetFieldsCounters [23:25:03]wFMCommunicate request_size=4 [23:25:03]MH_SAM_APDU [23:25:03]CAPDU: 80 13 00 00 [23:25:03]Write to MH i2c: E2 08 00 45 99 80 13 00 00 00 00 00 00 5A [23:25:03]Write i2c OK [23:25:03]MH_I2C_Read... [23:25:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:25:03]Read from MH i2c: E2 [23:25:03]MH_I2C_Read... [23:25:03]Read from MH i2c: E2 62 00 [23:25:03]MH_I2C_Read... [23:25:03]Read from MH i2c: E2 62 00 45 99 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 34 DE 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 A4 01 00 00 5E 04 04 00 A4 01 00 00 57 04 04 00 A5 01 00 00 19 04 04 00 00 00 00 00 90 00 31 [23:25:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 34 DE 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 A4 01 00 00 5E 04 04 00 A4 01 00 00 57 04 04 00 A5 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:25:03]wFMCommunicate OK [23:25:03]SAM_PROTO_GetFieldsCounters done [23:25:03]requested_item shift.num is exist - process it [23:25:03]requested_item shift.opened is exist - process it [23:25:03]req_shift_opened [23:25:03]FM_GetShiftState [23:25:03]SAM_PROTO_GetShiftState [23:25:03]wFMCommunicate request_size=4 [23:25:03]MH_SAM_APDU [23:25:03]CAPDU: 80 13 01 00 [23:25:03]Write to MH i2c: E2 08 00 46 99 80 13 01 00 00 00 00 00 5C [23:25:03]Write i2c OK [23:25:03]MH_I2C_Read... [23:25:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:25:03]Read from MH i2c: E2 [23:25:03]MH_I2C_Read... [23:25:03]Read from MH i2c: E2 0E 00 [23:25:03]MH_I2C_Read... [23:25:03]Read from MH i2c: E2 0E 00 46 99 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 BB [23:25:03]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [23:25:03]wFMCommunicate OK [23:25:03]SAM_PROTO_GetShiftState done [23:25:03]FM_GetShiftState done [23:25:03]req_shift_opened done [23:25:03]requested_item shift.open_date is exist - process it [23:25:03]req_shift_open_date [23:25:03]req_shift_open_date done [23:25:03]produce_requested_data done [23:25:03]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187956,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [23:25:03]process_action_free close_receipt [23:25:03]json_value_free [23:25:03]json_value_free done [23:25:03]process_json_proto returns [23:25:03]Send response to host [23:25:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187956,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [23:25:03]free response buf [23:25:03]execute_script done [23:25:03]execute_script returns [23:25:03]free content buf [23:25:03]Sock 10.Close socket [23:25:03]Sock 10.Thread stoped [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:58]OFD Sender: No OFD packet to send [23:29:03]OFD Sender: No OFD packet to send [23:29:08]OFD Sender: No OFD packet to send [23:29:13]OFD Sender: No OFD packet to send [23:29:18]OFD Sender: No OFD packet to send [23:29:23]OFD Sender: No OFD packet to send [23:29:28]OFD Sender: No OFD packet to send [23:29:33]OFD Sender: No OFD packet to send [23:29:38]OFD Sender: No OFD packet to send [23:29:43]OFD Sender: No OFD packet to send [23:29:48]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:16]accept exits with 8 [23:30:16]New connection [23:30:16]New thread 3067014500 created [23:30:16]Thread 3067157860 joined [23:30:16]Waiting for new connection... [23:30:16] Sock 8.Parse request [23:30:16]Sock 8.Check first char [23:30:16]Sock 8.First char is OK [23:30:16]request: POST /json_proto HTTP/1.0 [23:30:16]Method: POST [23:30:16]URL: /json_proto [23:30:16]Method is POST - this is cgi request [23:30:16]url: /json_proto [23:30:16]query_string will be loaded in cgi processing [23:30:16]execute_cgi json_proto POST (null) [23:30:16]execute_cgi path=json_proto method=POST [23:30:16]POST find Content-Length [23:30:16]Host: 172.17.42.131:8080 [23:30:16]Content-Length: 678 [23:30:16]Content-Type: application/json [23:30:16] [23:30:16]POST finish read [23:30:16]Found Content-Length = 678 [23:30:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210011", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 10.150, "sum" : 679.04, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 679.00, "payments": [ { "type": 0, "sum" : 679.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:30:16]execute_script... [23:30: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)210011", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 10.150, "sum" : 679.04, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 679.00, "payments": [ { "type": 0, "sum" : 679.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:30:16]POST & json_proto [23:30:16]process_json_proto [23:30:16]json parsed OK: [23:30:16]protocol is kg_v1.0 [23:30:16]action value=close_receipt [23:30:16]process_action close_receipt [23:30:16]cmd_close_receipt [23:30:16]MH_GetDate [23:30:16]Write to MH i2c: F0 00 00 47 99 CF [23:30:16]Write i2c OK [23:30:16]MH_I2C_Read... [23:30:16]Read from MH i2c: F0 [23:30:16]MH_I2C_Read... [23:30:16]Read from MH i2c: F0 09 00 [23:30:16]MH_I2C_Read... [23:30:16]Read from MH i2c: F0 09 00 47 99 00 0E E4 16 67 A0 18 CA 66 2F [23:30:16]GetLastDocTimeStamp 1729553105 [23:30:16]current date 1729553422 [23:30:16]FM_GetShiftState [23:30:16]SAM_PROTO_GetShiftState [23:30:16]wFMCommunicate request_size=4 [23:30:16]MH_SAM_APDU [23:30:16]CAPDU: 80 13 01 00 [23:30:16]Write to MH i2c: E2 08 00 48 99 80 13 01 00 00 00 00 00 5E [23:30:16]Write i2c OK [23:30:16]MH_I2C_Read... [23:30:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:30:16]Read from MH i2c: E2 [23:30:16]MH_I2C_Read... [23:30:16]Read from MH i2c: E2 0E 00 [23:30:16]MH_I2C_Read... [23:30:16]Read from MH i2c: E2 0E 00 48 99 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 BD [23:30:16]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [23:30:16]wFMCommunicate OK [23:30:16]SAM_PROTO_GetShiftState done [23:30:16]FM_GetShiftState done [23:30:16]opened in 1729469754 [23:30:16]opened+sec_in_day 1729556154 [23:30:16]quantity*price = 67903 [23:30:16]sum+1 = 67905 [23:30:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.04 ИТОГО: 679.00 Внесено: 700.00 СДАЧА: 21.00 НСП 1% : 6.01 НДС 12% : 72.11 Наличными: 679.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 421 21.10.2024 23:30 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 187957 ФПД: 115964002548247 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T233022&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187957&fm=115964002548247&tin=02508201610067®Number=0000000000100030&sum=67900 [23:30:17]StoreToDocumentArchive [23:30:17]shift 460 fd 187957 [23:30:17]save to /storage/0460/doc_00187957 [23:30:17]save last doc name /storage/0460/doc_00187957 to /storage/kkm_last_doc_name [23:30:17]save OK [23:30:17]Clear old archive folders... [23:30:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:30:17]tlvbuf is 013BA7E0 [23:30:17]SAM_PROTO_ClearQueue [23:30:17]wFMCommunicate request_size=4 [23:30:17]MH_SAM_APDU [23:30:17]CAPDU: 80 09 00 00 [23:30:17]Write to MH i2c: E2 08 00 55 99 80 09 00 00 00 00 00 00 60 [23:30:17]Write i2c OK [23:30:17]MH_I2C_Read... [23:30:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:30:17]Read from MH i2c: E2 [23:30:17]MH_I2C_Read... [23:30:17]Read from MH i2c: E2 03 00 [23:30:17]MH_I2C_Read... [23:30:17]Read from MH i2c: E2 03 00 55 99 00 90 00 62 [23:30:17]RAPDU: 90 00 [23:30:17]wFMCommunicate OK [23:30:17]SAM_PROTO_ClearQueue done [23:30:17]KKMCreateOFDPacket [23:30:17]OFDProtocolAddRootSTLVToBuf [23:30:17]FM_MakeSignedData [23:30:17]FM_MakeSignedData [23:30:17]SAM_PROTO_SignData [23:30:17]wFMCommunicate request_size=4 [23:30:17]MH_SAM_APDU [23:30:17]CAPDU: 80 0D 01 02 [23:30:17]Write to MH i2c: E2 08 00 56 99 80 0D 01 02 00 00 00 00 68 [23:30:17]Write i2c OK [23:30:17]MH_I2C_Read... [23:30:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:30:17]Read from MH i2c: E2 [23:30:17]MH_I2C_Read... [23:30:17]Read from MH i2c: E2 03 00 [23:30:17]MH_I2C_Read... [23:30:17]Read from MH i2c: E2 03 00 56 99 00 90 00 63 [23:30:17]RAPDU: 90 00 [23:30:17]wFMCommunicate OK [23:30:17]wFMCommunicate request_size=255 [23:30:17]MH_SAM_APDU [23:30: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 33 FF 03 08 00 03 A6 27 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 40 09 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C 09 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2B 1C 00 00 00 00 07 04 06 00 3C 09 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A5 01 00 00 F4 03 04 00 0E E4 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 35 DE 02 00 35 04 06 00 69 [23:30:17]Write to MH i2c: E2 02 01 57 99 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 A6 27 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 40 09 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C 09 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2B 1C 00 00 00 00 07 04 06 00 3C 09 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A5 01 00 00 F4 03 04 00 0E E4 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 35 DE 02 00 35 04 06 00 69 00 00 37 [23:30:17]Write i2c OK [23:30:17]MH_I2C_Read... [23:30:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:30:17]Read from MH i2c: E2 [23:30:17]MH_I2C_Read... [23:30:17]Read from MH i2c: E2 03 00 [23:30:17]MH_I2C_Read... [23:30:17]Read from MH i2c: E2 03 00 57 99 00 90 00 64 [23:30:17]RAPDU: 90 00 [23:30:17]wFMCommunicate OK [23:30:17]wFMCommunicate request_size=10 [23:30:17]MH_SAM_APDU [23:30:17]CAPDU: 80 0D 02 02 05 77 F9 2D BA 17 [23:30:17]Write to MH i2c: E2 0D 00 58 99 80 0D 02 02 05 00 77 F9 2D BA 17 00 00 E3 [23:30:17]Write i2c OK [23:30:17]MH_I2C_Read... [23:30:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:30:18]Read from MH i2c: E2 [23:30:18]MH_I2C_Read... [23:30:18]Read from MH i2c: E2 03 00 [23:30:18]MH_I2C_Read... [23:30:18]Read from MH i2c: E2 03 00 58 99 00 90 00 65 [23:30:18]RAPDU: 90 00 [23:30:18]wFMCommunicate OK [23:30:18]wFMCommunicate request_size=4 [23:30:18]MH_SAM_APDU [23:30:18]CAPDU: 80 0D 03 02 [23:30:18]Write to MH i2c: E2 08 00 59 99 80 0D 03 02 00 00 00 00 6D [23:30:18]Write i2c OK [23:30:18]MH_I2C_Read... [23:30:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:30:18]Read from MH i2c: E2 [23:30:18]MH_I2C_Read... [23:30:18]Read from MH i2c: E2 0B 00 [23:30:18]MH_I2C_Read... [23:30:18]Read from MH i2c: E2 0B 00 59 99 00 7F 5F CB EF 4A 6E 13 1C 90 00 ED [23:30:18]RAPDU: 7F 5F CB EF 4A 6E 13 1C 90 00 [23:30:18]wFMCommunicate OK [23:30:18]SAM_PROTO_SignData done [23:30:18]FM_MakeSignedData done [23:30:18]CreateOFDProtocolMessage [23:30:18]wFMCommunicate request_size=4 [23:30:18]MH_SAM_APDU [23:30:18]CAPDU: 80 11 00 00 [23:30:18]Write to MH i2c: E2 08 00 5A 99 80 11 00 00 00 00 00 00 6D [23:30:18]Write i2c OK [23:30:18]MH_I2C_Read... [23:30:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:30:18]Read from MH i2c: E2 [23:30:18]MH_I2C_Read... [23:30:18]Read from MH i2c: E2 17 00 [23:30:18]MH_I2C_Read... [23:30:18]Read from MH i2c: E2 17 00 5A 99 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 BB [23:30:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [23:30:18]wFMCommunicate OK [23:30:18]CreateOFDProtocolMessage done [23:30:18]OFDSenderStorePacket 187957 [23:30:18]StoreOFDPacket docnum=187957 [23:30:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 64 3A 07 01 D2 B0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 A6 27 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 40 09 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C 09 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2B 1C 00 00 00 00 07 04 06 00 3C 09 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A5 01 00 00 F4 03 04 00 0E E4 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 35 DE 02 00 35 04 06 00 69 77 F9 2D BA 17 7F 5F CB EF 4A 6E 13 1C [23:30:18]CheckFolder [23:30:18]dirname=/storage/ofd_packets [23:30:18]CheckFolder done [23:30:18]ProducePacketName [23:30:18]name=ofd_packets/00187957 [23:30:18]NVStorageSaveData ofd_packets/00187957 [23:30:18]File name is /storage/ofd_packets/00187957 [23:30:18]Write 301 bytes [23:30:18]NVStorageSaveData done [23:30:18]OFDSenderStorePacket done [23:30:18]KKMCreateOFDPacket done [23:30:18]NVStorageSaveData kkm_last_timestamp [23:30:18]File name is /storage/kkm_last_timestamp [23:30:18]Write 4 bytes [23:30:18]NVStorageSaveData done [23:30:18]ExternCall_PrintAddStr [23:30:18]wPrintStart [23:30:18]Write to MH i2c: 01 00 00 5B 99 F4 [23:30:18]Write i2c OK [23:30:18]MH_I2C_Read... [23:30:18]Read from MH i2c: 01 [23:30:18]MH_I2C_Read... [23:30:18]Read from MH i2c: 01 07 00 [23:30:18]MH_I2C_Read... [23:30:18]Read from MH i2c: 01 07 00 5B 99 00 00 00 00 00 FF 0F 09 [23:30:18]RasterBufferAndPrint [23:30:18]line Счет N : (1)210011 [23:30:18]line ИНН: 02508201610067 [23:30:18]line Контрольно-Кассовый Чек [23:30:18]line ПРОДАЖА [23:30:18]line ТРК (МРК, ГНК) : 12 [23:30:18]line Товар: 2710124130 [23:30:18]line Аи-92-К-3 [23:30:18]line 10.150 * 66.90 [23:30:18]line = 679.04 [23:30:18]line НДС 12% НСП 1% [23:30:18]line > о реализуемом товаре [23:30:18]line ОКРУГЛЕНИЕ: -0.04 [23:30:18]line ИТОГО: 679.00 [23:30:18]line Внесено: 700.00 [23:30:18]line СДАЧА: 21.00 [23:30:18]line НСП 1% : 6.01 [23:30:18]line НДС 12% : 72.11 [23:30:18]line Наличными: 679.00 [23:30:18]line Безнал.: 0.00 [23:30:18]line Место: АЗС № 86 "Партнер Нефть" [23:30:18]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [23:30:18]line СНО: Общий режим [23:30:18]line Чек 421 21.10.2024 23:30 [23:30:18]line Смена: 460 ФФД: 1.0 [23:30:18]line ЗНМ: 0300000155 [23:30:18]line РНМ: 0000000000100030 [23:30:18]line Версия ККМ: 001 [23:30:18]line ФМ: 0000000000965340 [23:30:18]line ФД: 187957 [23:30:18]line ФПД: 115964002548247 [23:30:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T233022&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187957&fm=115964002548247&tin=02508201610067®Number=0000000000100030&sum=67900 [23:30:18]OFD Sender: Processing packet 187957 [packets to send 1062, broken 1061] [23:30:18]ProducePacketName [23:30:18]name=ofd_packets/00187957 [23:30:18]OFD Sender: To server: pG, [23:30:18]CommunicateWithHost lk.salyk.kg:30040 [23:30:18]ConnectInit lk.salyk.kg [23:30:18]written 0, free lines is 4095 [23:30:18]Connected sock=10 [23:30:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 64 3A 07 01 D2 B0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 A6 27 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 40 09 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C 09 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2B 1C 00 00 00 00 07 04 06 00 3C 09 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A5 01 00 00 F4 03 04 00 0E E4 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 35 DE 02 00 35 04 06 00 69 77 F9 2D BA 17 7F 5F CB EF 4A 6E 13 1C [23:30:18]Write to MH i2c: 01 00 00 86 99 1F [23:30:18]Write i2c OK [23:30:18]MH_I2C_Read... [23:30:18]Read from MH i2c: 01 [23:30:18]MH_I2C_Read... [23:30:18]Read from MH i2c: 01 07 00 [23:30:18]MH_I2C_Read... [23:30:18]Read from MH i2c: 01 07 00 86 99 00 00 00 00 00 59 0C 8B [23:30:18]RasterBufferAndPrint [23:30:18]line [23:30:18]line [23:30:18]line [23:30:18]line [23:30:18]line [23:30:18]written 0, free lines is 3164 [23:30:18]MH_Cut [23:30:18]Write to MH i2c: D1 01 00 8D 99 01 F8 [23:30:18]Write i2c OK [23:30:18]MH_I2C_Read... [23:30:18]Read from MH i2c: D1 [23:30:18]MH_I2C_Read... [23:30:18]Read from MH i2c: D1 01 00 [23:30:18]MH_I2C_Read... [23:30:18]Read from MH i2c: D1 01 00 8D 99 00 F7 [23:30:18]Write to MH i2c: 01 00 00 8E 99 27 [23:30:18]Write i2c OK [23:30:18]MH_I2C_Read... [23:30:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 45 87 47 00 6D E0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 35 DE 02 00 F4 03 04 00 FD 8D 16 67 B6 04 01 00 00 EE C3 B8 A8 47 6F 1A 3E [23:30:18]CommunicateWithHost err = 0 [23:30:18]CheckOFDResponse [23:30:18]1017 (14) - 77093643461234 [23:30:18]1041 (16) - 0000000000965340 [23:30:18]1040 (4) - 187957 [23:30:18]1012 (4) - 21.10.2024 17:23 [23:30:18]1206 (1) - 0 [23:30:18]OFD Sender: Remove packet 187957 [23:30:18]ProducePacketName [23:30:18]name=ofd_packets/00187957 [23:30:18]NVStorageDeleteData [23:30:19]OFD Sender: No OFD packet to send [23:30:20]*** Cut start [23:30:20]*** Partial cut [23:30:20]*** CUTSNS_PIN = 1 [23:30:20]*** CUTSNS_PIN = 0 [23:30:20]*** Brake cut motor [23:30:20]Read from MH i2c: 01 [23:30:20]MH_I2C_Read... [23:30:20]*** Stop cut motor [23:30:20]*** Cut end [23:30:20]Read from MH i2c: 01 07 00 [23:30:20]MH_I2C_Read... [23:30:20]Read from MH i2c: 01 07 00 8E 99 00 00 00 00 00 FF 0F 3C [23:30:20]process_action close_receipt done [23:30:20]requested_data is exist [23:30:20]produce_requested_data [23:30:20]requested_item fm.sn is exist - process it [23:30:20]wFMCommunicate request_size=4 [23:30:20]MH_SAM_APDU [23:30:20]CAPDU: 80 11 00 00 [23:30:20]Write to MH i2c: E2 08 00 8F 99 80 11 00 00 00 00 00 00 A2 [23:30:20]Write i2c OK [23:30:20]MH_I2C_Read... [23:30:20]Read from MH i2c: E2 [23:30:20]MH_I2C_Read... [23:30:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:30:20]Read from MH i2c: E2 17 00 [23:30:20]MH_I2C_Read... [23:30:20]Read from MH i2c: E2 17 00 8F 99 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 F0 [23:30:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [23:30:20]wFMCommunicate OK [23:30:20]requested_item fd.num is exist - process it [23:30:20]SAM_PROTO_GetFieldsCounters [23:30:20]wFMCommunicate request_size=4 [23:30:20]MH_SAM_APDU [23:30:20]CAPDU: 80 13 00 00 [23:30:20]Write to MH i2c: E2 08 00 90 99 80 13 00 00 00 00 00 00 A5 [23:30:20]Write i2c OK [23:30:20]MH_I2C_Read... [23:30:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:30:21]Read from MH i2c: E2 [23:30:21]MH_I2C_Read... [23:30:21]Read from MH i2c: E2 62 00 [23:30:21]MH_I2C_Read... [23:30:21]Read from MH i2c: E2 62 00 90 99 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 35 DE 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 A5 01 00 00 5E 04 04 00 A5 01 00 00 57 04 04 00 A6 01 00 00 19 04 04 00 00 00 00 00 90 00 80 [23:30:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 35 DE 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 A5 01 00 00 5E 04 04 00 A5 01 00 00 57 04 04 00 A6 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:30:21]wFMCommunicate OK [23:30:21]SAM_PROTO_GetFieldsCounters done [23:30:21]requested_item shift.num is exist - process it [23:30:21]requested_item shift.opened is exist - process it [23:30:21]req_shift_opened [23:30:21]FM_GetShiftState [23:30:21]SAM_PROTO_GetShiftState [23:30:21]wFMCommunicate request_size=4 [23:30:21]MH_SAM_APDU [23:30:21]CAPDU: 80 13 01 00 [23:30:21]Write to MH i2c: E2 08 00 91 99 80 13 01 00 00 00 00 00 A7 [23:30:21]Write i2c OK [23:30:21]MH_I2C_Read... [23:30:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:30:21]Read from MH i2c: E2 [23:30:21]MH_I2C_Read... [23:30:21]Read from MH i2c: E2 0E 00 [23:30:21]MH_I2C_Read... [23:30:21]Read from MH i2c: E2 0E 00 91 99 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 06 [23:30:21]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [23:30:21]wFMCommunicate OK [23:30:21]SAM_PROTO_GetShiftState done [23:30:21]FM_GetShiftState done [23:30:21]req_shift_opened done [23:30:21]requested_item shift.open_date is exist - process it [23:30:21]req_shift_open_date [23:30:21]req_shift_open_date done [23:30:21]produce_requested_data done [23:30:21]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187957,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [23:30:21]process_action_free close_receipt [23:30:21]json_value_free [23:30:21]json_value_free done [23:30:21]process_json_proto returns [23:30:21]Send response to host [00:00:11] *** EcrCore started. Build 196 *** [00:00:11]/dev/ttyS4 opened [00:00:11]MH_InterfaceInit /dev/i2c-1 [00:00:11]Malloc ok [00:00:11]MH_GetMetrics [00:00:11]Write to MH i2c: 00 00 00 01 00 00 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 29 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 29 00 01 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 DF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 01 03 00 84 [00:00:11]Are we in boot? [00:00:11]We are in boot - try to switch [00:00:11]Write to MH i2c: A0 00 00 02 00 A1 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: A0 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: A0 01 00 [00:00:11]MH_I2C_Read... [00:00:11]*** Check firmware version 30620, crc_r 49A1A6DB, crc_c: 49A1A6DB, size: 53248 [00:00:11]*** [00:00:11]Read from MH i2c: A0 01 00 02 00 00 A2 [00:00:11]*** Starting fw at address 01020100 (2007E328 010249C5) [00:00:11]*** Waiting for read because exit forced [00:00:11]*** 10 ms more... [00:00:11]*** MH1903S init start (LINUX_LIGHT) [00:00:11]*** Compilation Date Jun 20 2023 Time 12:36:20 [00:00:11]*** Serial: 3139303353513838 54000000005725DF (1903SQ88T) [00:00:11]*** User serial: FFFFFFFFFFFFFFFF FFFFFFFFFFFFFFFF () [00:00:11]*** step 0: 5000 (2650, 2350 REF) [00:00:11]*** step 1: 4835 (2500, 2335 REF) [00:00:11]*** step 2: 4676 (2440, 2236 REF) [00:00:11]*** step 3: 4523 (2280, 2243 REF) [00:00:11]*** step 4: 4376 (2160, 2216 REF) [00:00:11]*** step 5: 4235 (2050, 2185 REF) [00:00:11]*** step 6: 4098 (1950, 2148 REF) [00:00:11]*** step 7: 3967 (1870, 2097 REF) [00:00:11]*** step 8: 3840 (1828, 2012 REF) [00:00:11]*** step 9: 3719 (1728, 1991 REF) [00:00:11]*** step 10: 3601 (1675, 1926 REF) [00:00:11]*** step 11: 3488 (1635, 1853 REF) [00:00:11]*** step 12: 3379 (1595, 1784 REF) [00:00:11]*** step 13: 3275 (1565, 1710 REF) [00:00:11]*** step 14: 3174 (1543, 1631 REF) [00:00:11]*** step 15: 3077 (1523, 1554 REF) [00:00:11]*** step 16: 2983 (1503, 1480 REF) [00:00:11]*** step 17: 2893 (1486, 1407 REF) [00:00:11]*** step 18: 2806 (1466, 1340 REF) [00:00:11]*** step 19: 2723 (1426, 1297 REF) [00:00:11]*** step 20: 2642 (1406, 1236 REF) [00:00:11]*** step 21: 2565 (1384, 1181 REF) [00:00:11]*** step 22: 2490 (1364, 1126 REF) [00:00:11]*** step 23: 2418 (1344, 1074 REF) [00:00:11]*** step 24: 2349 (1322, 1027 REF) [00:00:11]*** step 25: 2283 (1302, 981 REF) [00:00:11]*** step 26: 2218 (1282, 936 REF) [00:00:11]*** step 27: 2157 (1262, 895 REF) [00:00:11]*** step 28: 2097 (1242, 855 REF) [00:00:11]*** step 29: 2040 (1222, 818 REF) [00:00:11]*** step 30: 1985 (1202, 783 REF) [00:00:11]*** step 31: 1932 (1191, 741 REF) [00:00:11]*** step 32: 1880 (1181, 699 REF) [00:00:11]*** step 33: 1831 (1171, 660 REF) [00:00:11]*** step 34: 1784 (1161, 623 REF) [00:00:11]*** step 35: 1738 (1151, 587 REF) [00:00:11]*** step 36: 1694 (1141, 553 REF) [00:00:11]*** step 37: 1652 (1131, 521 REF) [00:00:11]*** step 38: 1611 (1121, 490 REF) [00:00:11]*** step 39: 1572 (1111, 461 REF) [00:00:11]*** step 40: 1534 (1103, 431 REF) [00:00:11]*** step 41: 1497 (1093, 404 REF) [00:00:11]*** step 42: 1462 (1083, 379 REF) [00:00:11]*** step 43: 1428 (1073, 355 REF) [00:00:11]*** step 44: 1396 (1063, 333 REF) [00:00:11]*** step 45: 1365 (1053, 312 REF) [00:00:11]*** step 46: 1334 (1043, 291 REF) [00:00:11]*** step 47: 1305 (1033, 272 REF) [00:00:11]*** step 48: 1277 (1023, 254 REF) [00:00:11]*** step 49: 1250 (1013, 237 REF) [00:00:11]*** step 50: 1224 (990, 234 REF) [00:00:11]*** step 51: 1199 (980, 219 REF) [00:00:11]*** step 52: 1175 (970, 205 REF) [00:00:11]*** step 53: 1152 (960, 192 REF) [00:00:11]*** step 54: 1130 (950, 180 REF) [00:00:11]*** step 55: 1108 (940, 168 REF) [00:00:11]*** step 56: 1088 (930, 158 REF) [00:00:11]*** step 57: 1068 (920, 148 REF) [00:00:11]*** step 58: 1049 (910, 139 REF) [00:00:11]*** step 59: 1030 (900, 130 REF) [00:00:11]*** step 60: 1012 (890, 122 REF) [00:00:11]*** step 61: 995 (880, 115 REF) [00:00:11]*** step 62: 979 (870, 109 REF) [00:00:11]*** step 63: 963 (860, 103 REF) [00:00:11]*** step 64: 948 (850, 98 REF) [00:00:11]*** step 65: 933 (840, 93 REF) [00:00:11]*** step 66: 919 (830, 89 REF) [00:00:11]*** step 67: 905 (820, 85 REF) [00:00:11]*** step 68: 892 (810, 82 REF) [00:00:11]*** step 69: 879 (800, 79 REF) [00:00:11]*** step 70: 867 (790, 77 REF) [00:00:11]*** step 71: 855 (780, 75 REF) [00:00:11]*** step 72: 844 (770, 74 REF) [00:00:11]*** step 73: 833 (760, 73 REF) [00:00:11]*** step 74: 822 (750, 72 REF) [00:00:11]*** step 75: 812 (740, 72 REF) [00:00:11]*** step 76: 803 (730, 73 REF) [00:00:11]*** step 77: 793 (720, 73 REF) [00:00:11]*** step 78: 784 (710, 74 REF) [00:00:11]*** step 79: 776 (700, 76 REF) [00:00:11]*** step 80: 767 (690, 77 REF) [00:00:11]*** step 81: 759 (680, 79 REF) [00:00:11]*** step 82: 751 (670, 81 REF) [00:00:11]*** step 83: 744 (660, 84 REF) [00:00:11]*** step 84: 737 (650, 87 REF) [00:00:11]*** step 85: 730 (640, 90 REF) [00:00:11]*** step 86: 723 (630, 93 REF) [00:00:11]*** step 87: 717 (620, 97 REF) [00:00:11]*** step 88: 710 (610, 100 REF) [00:00:11]*** step 89: 705 (600, 105 REF) [00:00:11]*** step 90: 699 [00:00:11]*** step 91: 693 [00:00:11]*** step 92: 688 [00:00:11]*** step 93: 683 [00:00:11]*** step 94: 678 [00:00:11]*** step 95: 673 [00:00:11]*** step 96: 669 [00:00:11]*** step 97: 664 [00:00:11]*** step 98: 660 [00:00:11]*** step 99: 656 [00:00:11]*** step 100: 652 [00:00:11]*** step 101: 648 [00:00:11]*** step 102: 644 [00:00:11]*** step 103: 641 [00:00:11]*** step 104: 638 [00:00:11]*** step 105: 634 [00:00:11]*** step 106: 631 [00:00:11]*** step 107: 628 [00:00:11]*** step 108: 625 [00:00:11]*** step 109: 622 [00:00:11]*** step 110: 620 [00:00:11]*** step 111: 617 [00:00:11]*** step 112: 615 [00:00:11]*** step 113: 612 [00:00:11]*** step 114: 610 [00:00:11]*** step 115: 608 [00:00:11]*** step 116: 605 [00:00:11]*** step 117: 603 [00:00:11]*** step 118: 601 [00:00:11]*** step 119: 599 [00:00:11]*** printer: Printer HW initialized [00:00:11]*** initSamCard finished [00:00:11]*** RTC: 5032893+1724520608=1729553501 [00:00:11]*** BPK Status Register BPK_RDY = 0x0 [00:00:11]*** SEN State Register SEN_STATE = 0x200ff [00:00:11]*** 32K Frequency Sensor Enable SEN_XTAL32_EN = 0x80000055 [00:00:11]*** Analog Control Register 0 SEN_ANA0 = 0x33550624 [00:00:11]*** Is cutter blocked? [00:00:12]MH_GetMetrics [00:00:12]Write to MH i2c: 00 00 00 03 00 02 [00:00:12]Write i2c OK [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: 00 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: 00 29 00 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: 00 29 00 03 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 DF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 00 03 00 85 [00:00:12]Are we in boot? [00:00:12]We are not in boot now [00:00:12]Write to MH i2c: 01 00 00 04 00 04 [00:00:12]Write i2c OK [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: 01 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: 01 07 00 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: 01 07 00 04 00 00 00 00 00 00 FF 0F 19 [00:00:12]Model is 3 [00:00:12]MH firmware is 30620 [00:00:12]MH boot firmware is 3 [00:00:12]MH_SetPrinterDots 448 [00:00:12]HeadWidthInBytes 56 [00:00:12]maxmasksize 7 [00:00:12]Write to MH i2c: D6 06 00 05 00 6E 00 38 00 FF FF 84 [00:00:12]Write i2c OK [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: D6 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: D6 01 00 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: D6 01 00 05 00 00 DB [00:00:12]Write to MH i2c: D5 00 00 06 00 DA [00:00:12]Write i2c OK [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: D5 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: D5 01 00 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: D5 01 00 06 00 00 DB [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]ExternCall_SetCallbacks [00:00:12]NVStorageInit [00:00:12]MH_GetDate [00:00:12]Write to MH i2c: F0 00 00 07 00 F6 [00:00:12]Write i2c OK [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: F0 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: F0 09 00 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: F0 09 00 07 00 00 5D E4 16 67 A0 18 CA 66 A5 [23:31:41]Current date/time: 21.10.2024 23:31 [23:31:41]FM_Init [23:31:41]wFMConnect [23:31:41]MH_SAM_On [23:31:41]Write to MH i2c: E0 00 00 08 00 E7 [23:31:41]Write i2c OK [23:31:41]MH_I2C_Read... [23:31:41]*** iso7816_init finished! [23:31:41]*** atr: [23:31:41]*** 0F 3B D5 18 FF 81 91 FE [23:31:41]*** 1F C3 80 73 C8 21 10 0A [23:31:41]*** 00 00 00 00 00 00 00 00 [23:31:41]*** 00 00 00 00 00 00 00 00 [23:31:41]*** 00 00 00 00 00 00 00 00 [23:31:41]*** 00 00 00 00 00 00 00 00 [23:31:41]*** 00 00 00 00 00 00 00 00 [23:31:41]*** 00 00 00 00 00 00 00 00 [23:31:41]Read from MH i2c: E0 [23:31:41]MH_I2C_Read... [23:31:41]Read from MH i2c: E0 10 00 [23:31:41]MH_I2C_Read... [23:31:41]Read from MH i2c: E0 10 00 08 00 00 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A 06 [23:31:41]ATR: 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A [23:31:41]wFMCommunicate request_size=10 [23:31:41]MH_SAM_APDU [23:31:41]CAPDU: 00 A4 04 00 05 01 02 03 04 05 [23:31:41]Write to MH i2c: E2 0D 00 09 00 00 A4 04 00 05 00 01 02 03 04 05 00 00 B3 [23:31:41]Write i2c OK [23:31:41]MH_I2C_Read... [23:31:41]Read from MH i2c: E2 [23:31:41]MH_I2C_Read... [23:31:41]*** iso7816_exchange 00 A4 04 00... Resp OK rsp.len_out = 0! [23:31:41]Read from MH i2c: E2 03 00 [23:31:41]MH_I2C_Read... [23:31:41]Read from MH i2c: E2 03 00 09 00 00 90 00 7D [23:31:41]RAPDU: 90 00 [23:31:41]wFMCommunicate OK [23:31:41]wFMCommunicate request_size=4 [23:31:41]MH_SAM_APDU [23:31:41]CAPDU: 80 11 00 00 [23:31:41]Write to MH i2c: E2 08 00 0A 00 80 11 00 00 00 00 00 00 84 [23:31:41]Write i2c OK [23:31:41]MH_I2C_Read... [23:31:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:31:41]Read from MH i2c: E2 [23:31:41]MH_I2C_Read... [23:31:41]Read from MH i2c: E2 17 00 [23:31:41]MH_I2C_Read... [23:31:41]Read from MH i2c: E2 17 00 0A 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 D2 [23:31:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [23:31:41]wFMCommunicate OK [23:31:41]Detected FM SN is 0000000000965340 [23:31:41]Stored FM SN is 0000000000965340 [23:31:41]wFMCommunicate request_size=9 [23:31:41]MH_SAM_APDU [23:31:41]CAPDU: 80 16 00 00 04 28 0B 00 00 [23:31:41]Write to MH i2c: E2 0C 00 0B 00 80 16 00 00 04 00 28 0B 00 00 00 00 C5 [23:31:41]Write i2c OK [23:31:41]MH_I2C_Read... [23:31:41]*** iso7816_exchange 80 16 00 00... Resp OK rsp.len_out = 0! [23:31:41]Read from MH i2c: E2 [23:31:41]MH_I2C_Read... [23:31:41]Read from MH i2c: E2 03 00 [23:31:41]MH_I2C_Read... [23:31:41]Read from MH i2c: E2 03 00 0B 00 00 90 00 7F [23:31:41]RAPDU: 90 00 [23:31:41]wFMCommunicate OK [23:31:41]FM PIN OK [23:31:41]wFMCommunicate request_size=8 [23:31:41]MH_SAM_APDU [23:31:41]CAPDU: 80 14 04 00 03 02 00 01 [23:31:41]Write to MH i2c: E2 0B 00 0C 00 80 14 04 00 03 00 02 00 01 00 00 96 [23:31:41]Write i2c OK [23:31:41]MH_I2C_Read... [23:31:41]*** iso7816_exchange 80 14 04 00... Resp OK rsp.len_out = 0! [23:31:41]Read from MH i2c: E2 [23:31:41]MH_I2C_Read... [23:31:41]Read from MH i2c: E2 03 00 [23:31:41]MH_I2C_Read... [23:31:41]Read from MH i2c: E2 03 00 0C 00 00 90 00 80 [23:31:41]RAPDU: 90 00 [23:31:41]wFMCommunicate OK [23:31:41]wFMCommunicate request_size=13 [23:31:41]MH_SAM_APDU [23:31:41]CAPDU: 80 14 04 01 08 07 00 01 02 03 04 05 06 [23:31:41]Write to MH i2c: E2 10 00 0D 00 80 14 04 01 08 00 07 00 01 02 03 04 05 06 00 00 BB [23:31:41]Write i2c OK [23:31:41]MH_I2C_Read... [23:31:41]*** iso7816_exchange 80 14 04 01... Resp OK rsp.len_out = 0! [23:31:41]Read from MH i2c: E2 [23:31:41]MH_I2C_Read... [23:31:41]Read from MH i2c: E2 03 00 [23:31:41]MH_I2C_Read... [23:31:41]Read from MH i2c: E2 03 00 0D 00 00 90 00 81 [23:31:41]RAPDU: 90 00 [23:31:41]wFMCommunicate OK [23:31:41]wFMCommunicate request_size=4 [23:31:41]MH_SAM_APDU [23:31:41]CAPDU: 80 11 00 00 [23:31:41]Write to MH i2c: E2 08 00 0E 00 80 11 00 00 00 00 00 00 88 [23:31:41]Write i2c OK [23:31:41]MH_I2C_Read... [23:31:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:31:41]Read from MH i2c: E2 [23:31:41]MH_I2C_Read... [23:31:41]Read from MH i2c: E2 17 00 [23:31:41]MH_I2C_Read... [23:31:41]Read from MH i2c: E2 17 00 0E 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 D6 [23:31:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [23:31:41]wFMCommunicate OK [23:31:41]DocumentArchiveInit [23:31:41]Start Httpd... [23:31:41]Httpd thread 3067485540 created [23:31:41]Write to MH i2c: 01 00 00 0F 00 0F [23:31:41]Write i2c OK [23:31:41]MH_I2C_Read... [23:31:41]Read from MH i2c: 01 [23:31:41]MH_I2C_Read... [23:31:41]Read from MH i2c: 01 07 00 [23:31:41]MH_I2C_Read... [23:31:41]Read from MH i2c: 01 07 00 0F 00 00 00 00 00 00 FF 0F 24 [23:31:41]MH Int Process started [23:31:41]Allocated Socket 7 [23:31:41]Bind OK [23:31:41]Listen OK [23:31:41]httpd running on port 8080 [23:31:41]Waiting for new connection... [23:31:42]accept exits with 8 [23:31:42]New connection [23:31:42]New thread 3067198820 created [23:31:42]Waiting for new connection... [23:31:42] Sock 8.Parse request [23:31:42]Sock 8.Check first char [23:31:42]Sock 8.First char is OK [23:31:42]request: POST /json_proto HTTP/1.0 [23:31:42]Method: POST [23:31:42]URL: /json_proto [23:31:42]Method is POST - this is cgi request [23:31:42]url: /json_proto [23:31:42]query_string will be loaded in cgi processing [23:31:42]execute_cgi json_proto POST (null) [23:31:42]execute_cgi path=json_proto method=POST [23:31:42]POST find Content-Length [23:31:42]Host: 172.17.42.131:8080 [23:31:42]Content-Length: 215 [23:31:42]Content-Type: application/json [23:31:42] [23:31:42]POST finish read [23:31:42]Found Content-Length = 215 [23:31:42]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" ] } } [23:31:42]execute_script... [23:31:42]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" ] } } [23:31:42]POST & json_proto [23:31:42]process_json_proto [23:31:42]json parsed OK: [23:31:42]protocol is kg_v1.0 [23:31:42]action value=get_value [23:31:42]process_action get_value [23:31:42]cmd_get_value [23:31:42]process_action get_value done [23:31:42]requested_data is exist [23:31:42]produce_requested_data [23:31:42]requested_item kkm.sn is exist - process it [23:31:42]requested_item kkm.ver is exist - process it [23:31:42]requested_item fm.sn is exist - process it [23:31:42]wFMCommunicate request_size=4 [23:31:42]MH_SAM_APDU [23:31:42]CAPDU: 80 11 00 00 [23:31:42]Write to MH i2c: E2 08 00 10 00 80 11 00 00 00 00 00 00 8A [23:31:42]Write i2c OK [23:31:42]MH_I2C_Read... [23:31:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:31:42]Read from MH i2c: E2 [23:31:42]MH_I2C_Read... [23:31:42]Read from MH i2c: E2 17 00 [23:31:42]MH_I2C_Read... [23:31:42]Read from MH i2c: E2 17 00 10 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 D8 [23:31:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [23:31:42]wFMCommunicate OK [23:31:42]requested_item fd.num is exist - process it [23:31:42]SAM_PROTO_GetFieldsCounters [23:31:42]wFMCommunicate request_size=4 [23:31:42]MH_SAM_APDU [23:31:42]CAPDU: 80 13 00 00 [23:31:42]Write to MH i2c: E2 08 00 11 00 80 13 00 00 00 00 00 00 8D [23:31:42]Write i2c OK [23:31:42]MH_I2C_Read... [23:31:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:31:42]Read from MH i2c: E2 [23:31:42]MH_I2C_Read... [23:31:42]Read from MH i2c: E2 62 00 [23:31:42]MH_I2C_Read... [23:31:42]Read from MH i2c: E2 62 00 11 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 36 DE 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 A6 01 00 00 5E 04 04 00 A6 01 00 00 57 04 04 00 A7 01 00 00 19 04 04 00 00 00 00 00 90 00 6C [23:31:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 36 DE 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 A6 01 00 00 5E 04 04 00 A6 01 00 00 57 04 04 00 A7 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:31:42]wFMCommunicate OK [23:31:42]SAM_PROTO_GetFieldsCounters done [23:31:42]requested_item shift.num is exist - process it [23:31:42]requested_item shift.opened is exist - process it [23:31:42]req_shift_opened [23:31:42]FM_GetShiftState [23:31:42]SAM_PROTO_GetShiftState [23:31:42]wFMCommunicate request_size=4 [23:31:42]MH_SAM_APDU [23:31:42]CAPDU: 80 13 01 00 [23:31:42]Write to MH i2c: E2 08 00 12 00 80 13 01 00 00 00 00 00 8F [23:31:42]Write i2c OK [23:31:42]MH_I2C_Read... [23:31:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:31:42]Read from MH i2c: E2 [23:31:42]MH_I2C_Read... [23:31:42]Read from MH i2c: E2 0E 00 [23:31:42]MH_I2C_Read... [23:31:42]Read from MH i2c: E2 0E 00 12 00 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 EE [23:31:42]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [23:31:42]wFMCommunicate OK [23:31:42]SAM_PROTO_GetShiftState done [23:31:42]FM_GetShiftState done [23:31:42]req_shift_opened done [23:31:42]requested_item shift.open_date is exist - process it [23:31:42]req_shift_open_date [23:31:42]req_shift_open_date done [23:31:42]produce_requested_data done [23:31:42]produce_requested_data return {"kkm.sn":"0300000155","kkm.ver":"001","fm.sn":"0000000000965340","fd.num":187958,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [23:31:42]process_action_free get_value [23:31:42]json_value_free [23:31:42]json_value_free done [23:31:42]process_json_proto returns [23:31:42]Send response to host [23:31:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000155","kkm.ver":"001","fm.sn":"0000000000965340","fd.num":187958,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [23:31:42]free response buf [23:31:42]execute_script done [23:31:42]execute_script returns [23:31:42]free content buf [23:31:42]Sock 8.Close socket [23:31:42]Sock 8.Thread stoped [23:31:42]accept exits with 10 [23:31:42]New connection [23:31:42]New thread 3067055460 created [23:31:42]Thread 3067198820 joined [23:31:42]Waiting for new connection... [23:31:42] Sock 10.Parse request [23:31:42]Sock 10.Check first char [23:31:42]Sock 10.First char is OK [23:31:42]request: POST /json_proto HTTP/1.0 [23:31:42]Method: POST [23:31:42]URL: /json_proto [23:31:42]Method is POST - this is cgi request [23:31:42]url: /json_proto [23:31:42]query_string will be loaded in cgi processing [23:31:42]execute_cgi json_proto POST (null) [23:31:42]execute_cgi path=json_proto method=POST [23:31:42]POST find Content-Length [23:31:42]Host: 172.17.42.131:8080 [23:31:42]Content-Length: 331 [23:31:42]Content-Type: application/json [23:31:42] [23:31:42]POST finish read [23:31:42]Found Content-Length = 331 [23:31:42]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" ] } } [23:31:42]execute_script... [23:31:42]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" ] } } [23:31:42]POST & json_proto [23:31:42]process_json_proto [23:31:42]json parsed OK: [23:31:42]protocol is kg_v1.0 [23:31:42]action value=get_value [23:31:42]process_action get_value [23:31:42]cmd_get_value [23:31:42]process_action get_value done [23:31:42]requested_data is exist [23:31:42]produce_requested_data [23:31:42]requested_item fm.sale.total is exist - process it [23:31:42]SAM_PROTO_GetFMData [23:31:42]wFMCommunicate request_size=4 [23:31:42]MH_SAM_APDU [23:31:42]CAPDU: 80 13 03 00 [23:31:42]Write to MH i2c: E2 08 00 13 00 80 13 03 00 00 00 00 00 92 [23:31:42]Write i2c OK [23:31:42]MH_I2C_Read... [23:31:42]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [23:31:42]Read from MH i2c: E2 [23:31:42]MH_I2C_Read... [23:31:42]Read from MH i2c: E2 FD 00 [23:31:42]MH_I2C_Read... [23:31:42]Read from MH i2c: E2 FD 00 13 00 00 CB 04 85 04 C7 04 6E 04 04 00 9E DA 02 00 69 04 A4 00 6F 04 04 00 0F DA 02 00 B1 04 05 00 72 8E F0 B7 06 70 04 05 00 7C 4B 12 9F 04 72 04 05 00 F6 42 DE 18 02 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 CD DF AE B6 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 A3 03 39 0F EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 A1 00 6F 04 04 00 8F 00 00 00 B1 04 05 00 18 60 DC 31 01 70 04 05 00 C8 19 DC 31 01 72 04 02 00 50 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 36 17 90 00 76 [23:31:42]RAPDU: CB 04 85 04 C7 04 6E 04 04 00 9E DA 02 00 69 04 A4 00 6F 04 04 00 0F DA 02 00 B1 04 05 00 72 8E F0 B7 06 70 04 05 00 7C 4B 12 9F 04 72 04 05 00 F6 42 DE 18 02 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 CD DF AE B6 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 A3 03 39 0F EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 A1 00 6F 04 04 00 8F 00 00 00 B1 04 05 00 18 60 DC 31 01 70 04 05 00 C8 19 DC 31 01 72 04 02 00 50 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 36 17 90 00 [23:31:42]wFMCommunicate OK [23:31:42]wFMCommunicate request_size=4 [23:31:42]MH_SAM_APDU [23:31:42]CAPDU: 80 17 00 00 [23:31:42]Write to MH i2c: E2 08 00 14 00 80 17 00 00 00 00 00 00 94 [23:31:42]Write i2c OK [23:31:42]MH_I2C_Read... [23:31:43]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:31:43]Read from MH i2c: E2 [23:31:43]MH_I2C_Read... [23:31:43]Read from MH i2c: E2 FD 00 [23:31:43]MH_I2C_Read... [23:31:43]Read from MH i2c: E2 FD 00 14 00 00 7B 20 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 92 EC B4 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 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 90 00 61 [23:31:43]RAPDU: 7B 20 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 92 EC B4 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 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 90 00 [23:31:43]wFMCommunicate OK [23:31:43]wFMCommunicate request_size=4 [23:31:43]MH_SAM_APDU [23:31:43]CAPDU: 80 17 00 00 [23:31:43]Write to MH i2c: E2 08 00 15 00 80 17 00 00 00 00 00 00 95 [23:31:43]Write i2c OK [23:31:43]MH_I2C_Read... [23:31:43]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:31:43]Read from MH i2c: E2 [23:31:43]MH_I2C_Read... [23:31:43]Read from MH i2c: E2 FD 00 [23:31:43]MH_I2C_Read... [23:31:43]Read from MH i2c: E2 FD 00 15 00 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 70 [23:31:43]RAPDU: 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:31:43]wFMCommunicate OK [23:31:43]wFMCommunicate request_size=4 [23:31:43]MH_SAM_APDU [23:31:43]CAPDU: 80 17 00 00 [23:31:43]Write to MH i2c: E2 08 00 16 00 80 17 00 00 00 00 00 00 96 [23:31:43]OFD Sender: Processing packet 187958 [packets to send 1062, broken 1061] [23:31:43]ProducePacketName [23:31:43]name=ofd_packets/00187958 [23:31:43]OFD Sender: To server: pG, [23:31:43]CommunicateWithHost lk.salyk.kg:30040 [23:31:43]ConnectInit lk.salyk.kg [23:31:43]Write i2c OK [23:31:43]MH_I2C_Read... [23:31:43]Connected sock=6 [23:31:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 9A 73 07 01 6B A4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 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 A6 01 00 00 F4 03 04 00 18 E4 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 36 DE 02 00 35 04 06 00 FB A2 13 59 A1 0C 13 42 65 B2 B7 03 BE 08 [23:31:43]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:31:43]Read from MH i2c: E2 [23:31:43]MH_I2C_Read... [23:31:43]Read from MH i2c: E2 FD 00 [23:31:43]MH_I2C_Read... [23:31:43]Read from MH i2c: E2 FD 00 16 00 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 14 [23:31:43]RAPDU: 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:31:43]wFMCommunicate OK [23:31:43]wFMCommunicate request_size=4 [23:31:43]MH_SAM_APDU [23:31:43]CAPDU: 80 17 00 00 [23:31:43]Write to MH i2c: E2 08 00 17 00 80 17 00 00 00 00 00 00 97 [23:31:43]Write i2c OK [23:31:43]MH_I2C_Read... [23:31:44]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 229! [23:31:44]Read from MH i2c: E2 [23:31:44]MH_I2C_Read... [23:31:44]Read from MH i2c: E2 E8 00 [23:31:44]MH_I2C_Read... [23:31:44]Read from MH i2c: E2 E8 00 17 00 00 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 75 [23:31:44]RAPDU: 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [23:31:44]wFMCommunicate OK [23:31:44]SAM_PROTO_GetFMData done [23:31:44]requested_item fm.sale_refund.total is exist - process it [23:31:44]requested_item fm.buy.total is exist - process it [23:31:44]requested_item shift.sale.total is exist - process it [23:31:44]SAM_PROTO_GetShiftData [23:31:44]wFMCommunicate request_size=4 [23:31:44]MH_SAM_APDU [23:31:44]CAPDU: 80 13 02 00 [23:31:44]Write to MH i2c: E2 08 00 18 00 80 13 02 00 00 00 00 00 96 [23:31:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 8D 64 47 00 27 33 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 36 DE 02 00 F4 03 04 00 4D 8E 16 67 B6 04 01 00 00 9C C6 1C BB 54 64 BE 54 [23:31:44]CommunicateWithHost err = 0 [23:31:44]CheckOFDResponse [23:31:44]1017 (14) - 77093643461234 [23:31:44]1041 (16) - 0000000000965340 [23:31:44]1040 (4) - 187958 [23:31:44]1012 (4) - 21.10.2024 17:24 [23:31:44]1206 (1) - 0 [23:31:44]OFD Sender: Remove packet 187958 [23:31:44]ProducePacketName [23:31:44]name=ofd_packets/00187958 [23:31:44]NVStorageDeleteData [23:31:44]Write i2c OK [23:31:44]MH_I2C_Read... [23:31:44]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [23:31:44]Read from MH i2c: E2 [23:31:44]MH_I2C_Read... [23:31:44]Read from MH i2c: E2 FD 00 [23:31:44]MH_I2C_Read... [23:31:44]Read from MH i2c: E2 FD 00 18 00 00 B2 04 AA 04 AE 04 6E 04 04 00 A6 01 00 00 69 04 9F 00 6F 04 04 00 A6 01 00 00 B1 04 04 00 61 A4 AB 03 70 04 04 00 3C 16 8D 02 72 04 04 00 25 8E 1E 01 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 7E CD 63 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 07 51 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 32 [23:31:44]RAPDU: B2 04 AA 04 AE 04 6E 04 04 00 A6 01 00 00 69 04 9F 00 6F 04 04 00 A6 01 00 00 B1 04 04 00 61 A4 AB 03 70 04 04 00 3C 16 8D 02 72 04 04 00 25 8E 1E 01 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 7E CD 63 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 07 51 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:31:44]wFMCommunicate OK [23:31:44]wFMCommunicate request_size=4 [23:31:44]MH_SAM_APDU [23:31:44]CAPDU: 80 17 00 00 [23:31:44]Write to MH i2c: E2 08 00 19 00 80 17 00 00 00 00 00 00 99 [23:31:44]Write i2c OK [23:31:44]MH_I2C_Read... [23:31:44]OFD Sender: No OFD packet to send [23:31:44]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:31:44]Read from MH i2c: E2 [23:31:44]MH_I2C_Read... [23:31:44]Read from MH i2c: E2 FD 00 [23:31:44]MH_I2C_Read... [23:31:44]Read from MH i2c: E2 FD 00 19 00 00 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 B0 [23:31:44]RAPDU: 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:31:44]wFMCommunicate OK [23:31:44]wFMCommunicate request_size=4 [23:31:44]MH_SAM_APDU [23:31:44]CAPDU: 80 17 00 00 [23:31:44]Write to MH i2c: E2 08 00 1A 00 80 17 00 00 00 00 00 00 9A [23:31:44]Write i2c OK [23:31:44]MH_I2C_Read... [23:31:45]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:31:45]Read from MH i2c: E2 [23:31:45]MH_I2C_Read... [23:31:45]Read from MH i2c: E2 FD 00 [23:31:45]MH_I2C_Read... [23:31:45]Read from MH i2c: E2 FD 00 1A 00 00 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 56 [23:31:45]RAPDU: 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:31:45]wFMCommunicate OK [23:31:45]wFMCommunicate request_size=4 [23:31:45]MH_SAM_APDU [23:31:45]CAPDU: 80 17 00 00 [23:31:45]Write to MH i2c: E2 08 00 1B 00 80 17 00 00 00 00 00 00 9B [23:31:45]Write i2c OK [23:31:45]MH_I2C_Read... [23:31:45]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:31:45]Read from MH i2c: E2 [23:31:45]MH_I2C_Read... [23:31:45]Read from MH i2c: E2 FD 00 [23:31:45]MH_I2C_Read... [23:31:45]Read from MH i2c: E2 FD 00 1B 00 00 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 90 00 12 [23:31:45]RAPDU: 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 90 00 [23:31:45]wFMCommunicate OK [23:31:45]wFMCommunicate request_size=4 [23:31:45]MH_SAM_APDU [23:31:45]CAPDU: 80 17 00 00 [23:31:45]Write to MH i2c: E2 08 00 1C 00 80 17 00 00 00 00 00 00 9C [23:31:45]Write i2c OK [23:31:45]MH_I2C_Read... [23:31:45]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 204! [23:31:45]Read from MH i2c: E2 [23:31:45]MH_I2C_Read... [23:31:45]Read from MH i2c: E2 CF 00 [23:31:45]MH_I2C_Read... [23:31:45]Read from MH i2c: E2 CF 00 1C 00 00 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 83 [23:31:45]RAPDU: 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [23:31:45]wFMCommunicate OK [23:31:45]SAM_PROTO_GetShiftData done [23:31:45]requested_item shift.sale.total_cash is exist - process it [23:31:45]requested_item shift.sale_refund.total is exist - process it [23:31:45]requested_item shift.sale_refund.total_cash is exist - process it [23:31:45]requested_item shift.buy.total is exist - process it [23:31:45]requested_item shift.buy.total_cash is exist - process it [23:31:45]produce_requested_data done [23:31:45]produce_requested_data return {"fm.sale.total":288557994.10,"fm.sale_refund.total":51314934.00,"fm.buy.total":0.00,"shift.sale.total":615803.85,"shift.sale.total_cash":428007.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} [23:31:45]process_action_free get_value [23:31:45]json_value_free [23:31:45]json_value_free done [23:31:45]process_json_proto returns [23:31:45]Send response to host [23:31:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":288557994.10,"fm.sale_refund.total":51314934.00,"fm.buy.total":0.00,"shift.sale.total":615803.85,"shift.sale.total_cash":428007.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}}} [23:31:45]free response buf [23:31:45]execute_script done [23:31:45]execute_script returns [23:31:45]free content buf [23:31:45]Sock 10.Close socket [23:31:45]Sock 10.Thread stoped [23:31:46]accept exits with 8 [23:31:46]New connection [23:31:46]New thread 3067198820 created [23:31:46]Thread 3067055460 joined [23:31:46]Waiting for new connection... [23:31:46] Sock 8.Parse request [23:31:46]Sock 8.Check first char [23:31:46]Sock 8.First char is OK [23:31:46]request: POST /json_proto HTTP/1.0 [23:31:46]Method: POST [23:31:46]URL: /json_proto [23:31:46]Method is POST - this is cgi request [23:31:46]url: /json_proto [23:31:46]query_string will be loaded in cgi processing [23:31:46]execute_cgi json_proto POST (null) [23:31:46]execute_cgi path=json_proto method=POST [23:31:46]POST find Content-Length [23:31:46]Host: 172.17.42.131:8080 [23:31:46]Content-Length: 144 [23:31:46]Content-Type: application/json [23:31:46] [23:31:46]POST finish read [23:31:46]Found Content-Length = 144 [23:31:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_doc", "params" : { "type" : "last" } , "requested_data" : [ ] } } [23:31:46]execute_script... [23:31:46]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_doc", "params" : { "type" : "last" } , "requested_data" : [ ] } } [23:31:46]POST & json_proto [23:31:46]process_json_proto [23:31:46]json parsed OK: [23:31:46]protocol is kg_v1.0 [23:31:46]action value=print_doc [23:31:46]process_action print_doc [23:31:46]ExternCall_PrintAddStr [23:31:46]wPrintStart [23:31:46]Write to MH i2c: 01 00 00 1D 00 1D [23:31:46]Write i2c OK [23:31:46]MH_I2C_Read... [23:31:46]Read from MH i2c: 01 [23:31:46]MH_I2C_Read... [23:31:46]Read from MH i2c: 01 07 00 [23:31:46]MH_I2C_Read... [23:31:46]Read from MH i2c: 01 07 00 1D 00 00 00 00 00 00 FF 0F 32 [23:31:46]RasterBufferAndPrint [23:31:46]line Счет N : (1)210010 [23:31:46]line ИНН: 02508201610067 [23:31:46]line Контрольно-Кассовый Чек [23:31:46]line ПРОДАЖА [23:31:46]line ТРК (МРК, ГНК) : 32 [23:31:46]line Товар: 2710124130 [23:31:46]line Аи-92-К-3 [23:31:46]line 22.430 * 66.90 [23:31:46]line = 1500.57 [23:31:46]line НДС 12% НСП 1% [23:31:46]line > о реализуемом товаре [23:31:46]line ИТОГО: 1500.57 [23:31:46]line НСП 1% : 13.28 [23:31:46]line НДС 12% : 159.35 [23:31:46]line Наличными: 0.00 [23:31:46]line Безнал.: 1500.57 [23:31:46]line Место: АЗС № 86 "Партнер Нефть" [23:31:46]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [23:31:46]line СНО: Общий режим [23:31:46]line Чек 422 21.10.2024 23:30 [23:31:46]line Смена: 460 ФФД: 1.0 [23:31:46]line ЗНМ: 0300000155 [23:31:46]line РНМ: 0000000000100030 [23:31:46]line Версия ККМ: 001 [23:31:46]line Платежная система: Бакай Банк [23:31:46]line ФМ: 0000000000965340 [23:31:46]line ФД: 187958 [23:31:46]line ФПД: 276673527914764 [23:31:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T233032&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187958&fm=276673527914764&tin=02508201610067®Number=0000000000100030&sum=150057 [23:31:46]written 0, free lines is 4095 [23:31:46]Write to MH i2c: 01 00 00 47 00 47 [23:31:46]Write i2c OK [23:31:46]MH_I2C_Read... [23:31:46]Read from MH i2c: 01 [23:31:46]MH_I2C_Read... [23:31:46]Read from MH i2c: 01 07 00 [23:31:46]MH_I2C_Read... [23:31:46]Read from MH i2c: 01 07 00 47 00 00 00 00 00 00 7A 0C D4 [23:31:46]RasterBufferAndPrint [23:31:46]line [23:31:46]line [23:31:46]line [23:31:46]line [23:31:46]line [23:31:46]written 0, free lines is 3204 [23:31:46]MH_Cut [23:31:46]Write to MH i2c: D1 01 00 4E 00 01 20 [23:31:46]Write i2c OK [23:31:46]MH_I2C_Read... [23:31:46]Read from MH i2c: D1 [23:31:46]MH_I2C_Read... [23:31:46]Read from MH i2c: D1 01 00 [23:31:46]MH_I2C_Read... [23:31:46]Read from MH i2c: D1 01 00 4E 00 00 1F [23:31:46]Write to MH i2c: 01 00 00 4F 00 4F [23:31:46]Write i2c OK [23:31:46]MH_I2C_Read... [23:31:47]*** Cut start [23:31:47]*** Partial cut [23:31:47]*** CUTSNS_PIN = 1 [23:31:47]*** CUTSNS_PIN = 0 [23:31:48]*** Brake cut motor [23:31:48]Read from MH i2c: 01 *** Stop cut motor [23:31:48] [23:31:48]*** Cut end [23:31:48]MH_I2C_Read... [23:31:48]Read from MH i2c: 01 07 00 [23:31:48]MH_I2C_Read... [23:31:48]Read from MH i2c: 01 07 00 4F 00 00 00 00 00 00 FF 0F 64 [23:31:48]process_action print_doc done [23:31:48]requested_data is exist [23:31:48]produce_requested_data [23:31:48]produce_requested_data return (null) [23:31:48]process_action_free print_doc [23:31:48]json_value_free [23:31:48]json_value_free done [23:31:48]process_json_proto returns [23:31:48]Send response to host [23:31:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK"}} [23:31:48]free response buf [23:31:48]execute_script done [23:31:48]execute_script returns [23:31:48]free content buf [23:31:48]Sock 8.Close socket [23:31:48]Sock 8.Thread stoped [23:31:49]OFD Sender: No OFD packet to send [23:31:54]OFD Sender: No OFD packet to send [23:31:59]OFD Sender: No OFD packet to send [23:32:04]OFD Sender: No OFD packet to send [23:32:09]OFD Sender: No OFD packet to send [23:32:14]OFD Sender: No OFD packet to send [23:32:19]OFD Sender: No OFD packet to send [23:32:24]OFD Sender: No OFD packet to send [23:32:29]OFD Sender: No OFD packet to send [23:32:34]OFD Sender: No OFD packet to send [23:32:39]OFD Sender: No OFD packet to send [23:32:44]OFD Sender: No OFD packet to send [23:32:48]accept exits with 6 [23:32:48]New connection [23:32:48]New thread 3067055460 created [23:32:48]Thread 3067198820 joined [23:32:48]Waiting for new connection... [23:32:48] Sock 6.Parse request [23:32:48]Sock 6.Check first char [23:32:48]Sock 6.First char is OK [23:32:48]request: POST /json_proto HTTP/1.0 [23:32:48]Method: POST [23:32:48]URL: /json_proto [23:32:48]Method is POST - this is cgi request [23:32:48]url: /json_proto [23:32:48]query_string will be loaded in cgi processing [23:32:48]execute_cgi json_proto POST (null) [23:32:48]execute_cgi path=json_proto method=POST [23:32:48]POST find Content-Length [23:32:48]Host: 172.17.42.131:8080 [23:32:48]Content-Length: 800 [23:32:48]Content-Type: application/json [23:32:48] [23:32:48]POST finish read [23:32:48]Found Content-Length = 800 [23:32:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210012", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "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\u000A3955718", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:32:48]execute_script... [23:32: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)210012", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "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\u000A3955718", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:32:48]POST & json_proto [23:32:48]process_json_proto [23:32:48]json parsed OK: [23:32:48]protocol is kg_v1.0 [23:32:48]action value=close_receipt [23:32:48]process_action close_receipt [23:32:48]cmd_close_receipt [23:32:48]MH_GetDate [23:32:48]Write to MH i2c: F0 00 00 50 00 3F [23:32:48]Write i2c OK [23:32:48]MH_I2C_Read... [23:32:48]Read from MH i2c: F0 [23:32:48]MH_I2C_Read... [23:32:48]Read from MH i2c: F0 09 00 [23:32:48]MH_I2C_Read... [23:32:48]Read from MH i2c: F0 09 00 50 00 00 A1 E4 16 67 A0 18 CA 66 32 [23:32:48]GetLastDocTimeStamp 1729553432 [23:32:48]current date 1729553569 [23:32:48]FM_GetShiftState [23:32:48]SAM_PROTO_GetShiftState [23:32:48]wFMCommunicate request_size=4 [23:32:48]MH_SAM_APDU [23:32:48]CAPDU: 80 13 01 00 [23:32:48]Write to MH i2c: E2 08 00 51 00 80 13 01 00 00 00 00 00 CE [23:32:48]Write i2c OK [23:32:48]MH_I2C_Read... [23:32:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:32:48]Read from MH i2c: E2 [23:32:48]MH_I2C_Read... [23:32:48]Read from MH i2c: E2 0E 00 [23:32:48]MH_I2C_Read... [23:32:48]Read from MH i2c: E2 0E 00 51 00 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 2D [23:32:48]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [23:32:48]wFMCommunicate OK [23:32:48]SAM_PROTO_GetShiftState done [23:32:48]FM_GetShiftState done [23:32:48]opened in 1729469754 [23:32:48]opened+sec_in_day 1729556154 [23:32:48]quantity*price = 0 [23:32:48]sum+1 = 1 [23:32:48]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 423 21.10.2024 23:32 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Талоны: Топливные Талоны 3955718 ФМ: 0000000000965340 ФД: 187959 ФПД: 63634216441832 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T233249&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187959&fm=63634216441832&tin=02508201610067®Number=0000000000100030&sum=0 [23:32:49]StoreToDocumentArchive [23:32:49]shift 460 fd 187959 [23:32:49]save to /storage/0460/doc_00187959 [23:32:49]save last doc name /storage/0460/doc_00187959 to /storage/kkm_last_doc_name [23:32:49]save OK [23:32:49]Clear old archive folders... [23:32:49]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:32:49]tlvbuf is 01B93260 [23:32:49]SAM_PROTO_ClearQueue [23:32:49]wFMCommunicate request_size=4 [23:32:49]MH_SAM_APDU [23:32:49]CAPDU: 80 09 00 00 [23:32:49]Write to MH i2c: E2 08 00 5E 00 80 09 00 00 00 00 00 00 D0 [23:32:49]Write i2c OK [23:32:49]MH_I2C_Read... [23:32:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:32:49]Read from MH i2c: E2 [23:32:49]MH_I2C_Read... [23:32:49]Read from MH i2c: E2 03 00 [23:32:49]MH_I2C_Read... [23:32:49]Read from MH i2c: E2 03 00 5E 00 00 90 00 D2 [23:32:49]RAPDU: 90 00 [23:32:49]wFMCommunicate OK [23:32:49]SAM_PROTO_ClearQueue done [23:32:49]KKMCreateOFDPacket [23:32:49]OFDProtocolAddRootSTLVToBuf [23:32:49]FM_MakeSignedData [23:32:49]FM_MakeSignedData [23:32:49]SAM_PROTO_SignData [23:32:49]wFMCommunicate request_size=4 [23:32:49]MH_SAM_APDU [23:32:49]CAPDU: 80 0D 01 02 [23:32:49]Write to MH i2c: E2 08 00 5F 00 80 0D 01 02 00 00 00 00 D8 [23:32:49]Write i2c OK [23:32:49]MH_I2C_Read... [23:32:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:32:49]Read from MH i2c: E2 [23:32:49]MH_I2C_Read... [23:32:49]Read from MH i2c: E2 03 00 [23:32:49]MH_I2C_Read... [23:32:49]Read from MH i2c: E2 03 00 5F 00 00 90 00 D3 [23:32:49]RAPDU: 90 00 [23:32:49]wFMCommunicate OK [23:32:49]wFMCommunicate request_size=255 [23:32:49]MH_SAM_APDU [23:32: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 33 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 A7 01 00 00 F4 03 04 00 A1 E4 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 37 DE 02 00 35 04 06 00 39 [23:32:49]Write to MH i2c: E2 02 01 60 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 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 A7 01 00 00 F4 03 04 00 A1 E4 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 37 DE 02 00 35 04 06 00 39 00 00 FB [23:32:49]Write i2c OK [23:32:49]MH_I2C_Read... [23:32:50]OFD Sender: No OFD packet to send [23:32:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:32:50]Read from MH i2c: E2 [23:32:50]MH_I2C_Read... [23:32:50]Read from MH i2c: E2 03 00 [23:32:50]MH_I2C_Read... [23:32:50]Read from MH i2c: E2 03 00 60 00 00 90 00 D4 [23:32:50]RAPDU: 90 00 [23:32:50]wFMCommunicate OK [23:32:50]wFMCommunicate request_size=10 [23:32:50]MH_SAM_APDU [23:32:50]CAPDU: 80 0D 02 02 05 DF FE DD D7 E8 [23:32:50]Write to MH i2c: E2 0D 00 61 00 80 0D 02 02 05 00 DF FE DD D7 E8 00 00 5E [23:32:50]Write i2c OK [23:32:50]MH_I2C_Read... [23:32:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:32:50]Read from MH i2c: E2 [23:32:50]MH_I2C_Read... [23:32:50]Read from MH i2c: E2 03 00 [23:32:50]MH_I2C_Read... [23:32:50]Read from MH i2c: E2 03 00 61 00 00 90 00 D5 [23:32:50]RAPDU: 90 00 [23:32:50]wFMCommunicate OK [23:32:50]wFMCommunicate request_size=4 [23:32:50]MH_SAM_APDU [23:32:50]CAPDU: 80 0D 03 02 [23:32:50]Write to MH i2c: E2 08 00 62 00 80 0D 03 02 00 00 00 00 DD [23:32:50]Write i2c OK [23:32:50]MH_I2C_Read... [23:32:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:32:50]Read from MH i2c: E2 [23:32:50]MH_I2C_Read... [23:32:50]Read from MH i2c: E2 0B 00 [23:32:50]MH_I2C_Read... [23:32:50]Read from MH i2c: E2 0B 00 62 00 00 DD 4C F1 93 82 19 A8 D8 90 00 A6 [23:32:50]RAPDU: DD 4C F1 93 82 19 A8 D8 90 00 [23:32:50]wFMCommunicate OK [23:32:50]SAM_PROTO_SignData done [23:32:50]FM_MakeSignedData done [23:32:50]CreateOFDProtocolMessage [23:32:50]wFMCommunicate request_size=4 [23:32:50]MH_SAM_APDU [23:32:50]CAPDU: 80 11 00 00 [23:32:50]Write to MH i2c: E2 08 00 63 00 80 11 00 00 00 00 00 00 DD [23:32:50]Write i2c OK [23:32:50]MH_I2C_Read... [23:32:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:32:50]Read from MH i2c: E2 [23:32:50]MH_I2C_Read... [23:32:50]Read from MH i2c: E2 17 00 [23:32:50]MH_I2C_Read... [23:32:50]Read from MH i2c: E2 17 00 63 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 2B [23:32:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [23:32:50]wFMCommunicate OK [23:32:50]CreateOFDProtocolMessage done [23:32:50]OFDSenderStorePacket 187959 [23:32:50]StoreOFDPacket docnum=187959 [23:32:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 1C C3 07 01 38 C6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 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 A7 01 00 00 F4 03 04 00 A1 E4 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 37 DE 02 00 35 04 06 00 39 DF FE DD D7 E8 DD 4C F1 93 82 19 A8 D8 [23:32:50]CheckFolder [23:32:50]dirname=/storage/ofd_packets [23:32:50]CheckFolder done [23:32:50]ProducePacketName [23:32:50]name=ofd_packets/00187959 [23:32:50]NVStorageSaveData ofd_packets/00187959 [23:32:50]File name is /storage/ofd_packets/00187959 [23:32:50]Write 301 bytes [23:32:50]NVStorageSaveData done [23:32:50]OFDSenderStorePacket done [23:32:50]KKMCreateOFDPacket done [23:32:50]NVStorageSaveData kkm_last_timestamp [23:32:50]File name is /storage/kkm_last_timestamp [23:32:50]Write 4 bytes [23:32:50]NVStorageSaveData done [23:32:50]ExternCall_PrintAddStr [23:32:50]wPrintStart [23:32:50]Write to MH i2c: 01 00 00 64 00 64 [23:32:50]Write i2c OK [23:32:50]MH_I2C_Read... [23:32:50]Read from MH i2c: 01 [23:32:50]MH_I2C_Read... [23:32:50]Read from MH i2c: 01 07 00 [23:32:50]MH_I2C_Read... [23:32:50]Read from MH i2c: 01 07 00 64 00 00 00 00 00 00 FF 0F 79 [23:32:50]RasterBufferAndPrint [23:32:50]line Счет N : (1)210012 [23:32:50]line ИНН: 02508201610067 [23:32:50]line Контрольно-Кассовый Чек [23:32:50]line ПРОДАЖА [23:32:50]line ТРК (МРК, ГНК) : 22 [23:32:50]line Товар: 2710124130 [23:32:50]line Аи-92-К-3 [23:32:50]line 20.000 * 0.00 [23:32:50]line = 0.00 [23:32:50]line НДС 12% НСП 1% [23:32:50]line > о реализуемом товаре [23:32:50]line ИТОГО: 0.00 [23:32:50]line НСП 1% : 0.00 [23:32:50]line НДС 12% : 0.00 [23:32:50]line Наличными: 0.00 [23:32:50]line Безнал.: 0.00 [23:32:50]line Место: АЗС № 86 "Партнер Нефть" [23:32:50]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [23:32:50]line СНО: Общий режим [23:32:50]line Чек 423 21.10.2024 23:32 [23:32:50]line Смена: 460 ФФД: 1.0 [23:32:50]line ЗНМ: 0300000155 [23:32:50]line РНМ: 0000000000100030 [23:32:50]line Версия ККМ: 001 [23:32:50]line Талоны: Топливные Талоны [23:32:50]line 3955718 [23:32:50]line ФМ: 0000000000965340 [23:32:50]line ФД: 187959 [23:32:50]line ФПД: 63634216441832 [23:32:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T233249&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187959&fm=63634216441832&tin=02508201610067®Number=0000000000100030&sum=0 [23:32:50]written 0, free lines is 4095 [23:32:50]OFD Sender: Processing packet 187959 [packets to send 1062, broken 1061] [23:32:50]ProducePacketName [23:32:50]name=ofd_packets/00187959 [23:32:50]OFD Sender: To server: pG, [23:32:50]CommunicateWithHost lk.salyk.kg:30040 [23:32:50]ConnectInit lk.salyk.kg [23:32:50]Write to MH i2c: 01 00 00 8E 00 8E [23:32:50]Write i2c OK [23:32:50]MH_I2C_Read... [23:32:50]Read from MH i2c: 01 [23:32:50]MH_I2C_Read... [23:32:50]Read from MH i2c: 01 07 00 [23:32:50]MH_I2C_Read... [23:32:50]Read from MH i2c: 01 07 00 8E 00 00 00 00 00 00 83 0C 24 [23:32:50]RasterBufferAndPrint [23:32:50]line [23:32:50]line [23:32:50]line [23:32:50]line [23:32:50]line [23:32:50]written 0, free lines is 3206 [23:32:50]MH_Cut [23:32:50]Write to MH i2c: D1 01 00 95 00 01 67 [23:32:50]Write i2c OK [23:32:50]MH_I2C_Read... [23:32:50]Read from MH i2c: D1 [23:32:50]MH_I2C_Read... [23:32:50]Read from MH i2c: D1 01 00 [23:32:50]MH_I2C_Read... [23:32:50]Read from MH i2c: D1 01 00 95 00 00 66 [23:32:50]Write to MH i2c: 01 00 00 96 00 96 [23:32:50]Write i2c OK [23:32:50]MH_I2C_Read... [23:32:51]*** Cut start [23:32:51]*** Partial cut [23:32:51]*** CUTSNS_PIN = 1 [23:32:51]*** CUTSNS_PIN = 0 [23:32:52]*** Brake cut motor [23:32:52]Read from MH i2c: 01 [23:32:52]MH_I2C_Read... [23:32:52]*** Stop cut motor [23:32:52]*** Cut end [23:32:52]Read from MH i2c: 01 07 00 [23:32:52]MH_I2C_Read... [23:32:52]Read from MH i2c: 01 07 00 96 00 00 00 00 00 00 FF 0F AB [23:32:52]process_action close_receipt done [23:32:52]requested_data is exist [23:32:52]produce_requested_data [23:32:52]requested_item fm.sn is exist - process it [23:32:52]wFMCommunicate request_size=4 [23:32:52]MH_SAM_APDU [23:32:52]CAPDU: 80 11 00 00 [23:32:52]Write to MH i2c: E2 08 00 97 00 80 11 00 00 00 00 00 00 11 [23:32:52]Write i2c OK [23:32:52]MH_I2C_Read... [23:32:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:32:52]Read from MH i2c: E2 [23:32:52]MH_I2C_Read... [23:32:52]Read from MH i2c: E2 17 00 [23:32:52]MH_I2C_Read... [23:32:52]Read from MH i2c: E2 17 00 97 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 5F [23:32:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [23:32:52]wFMCommunicate OK [23:32:52]requested_item fd.num is exist - process it [23:32:52]SAM_PROTO_GetFieldsCounters [23:32:52]wFMCommunicate request_size=4 [23:32:52]MH_SAM_APDU [23:32:52]CAPDU: 80 13 00 00 [23:32:52]Write to MH i2c: E2 08 00 98 00 80 13 00 00 00 00 00 00 14 [23:32:52]Write i2c OK [23:32:52]MH_I2C_Read... [23:32:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:32:52]Read from MH i2c: E2 [23:32:52]MH_I2C_Read... [23:32:52]Read from MH i2c: E2 62 00 [23:32:52]MH_I2C_Read... [23:32:52]Read from MH i2c: E2 62 00 98 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 37 DE 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 A7 01 00 00 5E 04 04 00 A7 01 00 00 57 04 04 00 A8 01 00 00 19 04 04 00 00 00 00 00 90 00 F7 [23:32:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 37 DE 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 A7 01 00 00 5E 04 04 00 A7 01 00 00 57 04 04 00 A8 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:32:52]wFMCommunicate OK [23:32:52]SAM_PROTO_GetFieldsCounters done [23:32:52]requested_item shift.num is exist - process it [23:32:52]requested_item shift.opened is exist - process it [23:32:52]req_shift_opened [23:32:52]FM_GetShiftState [23:32:52]SAM_PROTO_GetShiftState [23:32:52]wFMCommunicate request_size=4 [23:32:52]MH_SAM_APDU [23:32:52]CAPDU: 80 13 01 00 [23:32:52]Write to MH i2c: E2 08 00 99 00 80 13 01 00 00 00 00 00 16 [23:32:52]Write i2c OK [23:32:52]MH_I2C_Read... [23:32:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:32:52]Read from MH i2c: E2 [23:32:52]MH_I2C_Read... [23:32:52]Read from MH i2c: E2 0E 00 [23:32:52]MH_I2C_Read... [23:32:52]Read from MH i2c: E2 0E 00 99 00 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 75 [23:32:52]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [23:32:52]wFMCommunicate OK [23:32:52]SAM_PROTO_GetShiftState done [23:32:52]FM_GetShiftState done [23:32:52]req_shift_opened done [23:32:52]requested_item shift.open_date is exist - process it [23:32:52]req_shift_open_date [23:32:52]req_shift_open_date done [23:32:52]produce_requested_data done [23:32:52]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187959,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [23:32:52]process_action_free close_receipt [23:32:52]json_value_free [23:32:52]json_value_free done [23:32:52]process_json_proto returns [23:32:52]Send response to host [23:32:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187959,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [23:32:52]free response buf [23:32:52]execute_script done [23:32:52]execute_script returns [23:32:52]free content buf [23:32:52]Sock 6.Close socket [23:32:52]Sock 6.Thread stoped [23:33:24]accept exits with 9 [23:33:24]New connection [23:33:24]New thread 3067198820 created [23:33:24]Thread 3067055460 joined [23:33:24]Waiting for new connection... [23:33:24] Sock 9.Parse request [23:33:24]Sock 9.Check first char [23:33:24]Sock 9.First char is OK [23:33:24]request: POST /json_proto HTTP/1.0 [23:33:24]Method: POST [23:33:24]URL: /json_proto [23:33:24]Method is POST - this is cgi request [23:33:24]url: /json_proto [23:33:24]query_string will be loaded in cgi processing [23:33:24]execute_cgi json_proto POST (null) [23:33:24]execute_cgi path=json_proto method=POST [23:33:24]POST find Content-Length [23:33:24]Host: 172.17.42.131:8080 [23:33:24]Content-Length: 677 [23:33:24]Content-Type: application/json [23:33:24] [23:33:24]POST finish read [23:33:24]Found Content-Length = 677 [23:33:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210013", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 6.740, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:33:24]execute_script... [23:33: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)210013", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 6.740, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:33:24]POST & json_proto [23:33:24]process_json_proto [23:33:24]json parsed OK: [23:33:24]protocol is kg_v1.0 [23:33:24]action value=close_receipt [23:33:24]process_action close_receipt [23:33:24]cmd_close_receipt [23:33:24]MH_GetDate [23:33:24]Write to MH i2c: F0 00 00 9A 00 89 [23:33:24]Write i2c OK [23:33:24]MH_I2C_Read... [23:33:24]Read from MH i2c: F0 [23:33:24]MH_I2C_Read... [23:33:24]Read from MH i2c: F0 09 00 [23:33:24]MH_I2C_Read... [23:33:24]Read from MH i2c: F0 09 00 9A 00 00 C4 E4 16 67 A0 18 CA 66 9F [23:33:24]GetLastDocTimeStamp 1729553569 [23:33:24]current date 1729553604 [23:33:24]FM_GetShiftState [23:33:24]SAM_PROTO_GetShiftState [23:33:24]wFMCommunicate request_size=4 [23:33:24]MH_SAM_APDU [23:33:24]CAPDU: 80 13 01 00 [23:33:24]Write to MH i2c: E2 08 00 9B 00 80 13 01 00 00 00 00 00 18 [23:33:24]Write i2c OK [23:33:24]MH_I2C_Read... [23:33:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:33:24]Read from MH i2c: E2 [23:33:24]MH_I2C_Read... [23:33:24]Read from MH i2c: E2 0E 00 [23:33:24]MH_I2C_Read... [23:33:24]Read from MH i2c: E2 0E 00 9B 00 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 77 [23:33:24]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [23:33:24]wFMCommunicate OK [23:33:24]SAM_PROTO_GetShiftState done [23:33:24]FM_GetShiftState done [23:33:24]opened in 1729469754 [23:33:24]opened+sec_in_day 1729556154 [23:33:24]quantity*price = 50010 [23:33:24]sum+1 = 50012 [23:33:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 424 21.10.2024 23:33 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 187960 ФПД: 149104252401934 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T233324&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187960&fm=149104252401934&tin=02508201610067®Number=0000000000100030&sum=50000 [23:33:25]StoreToDocumentArchive [23:33:25]shift 460 fd 187960 [23:33:25]save to /storage/0460/doc_00187960 [23:33:25]save last doc name /storage/0460/doc_00187960 to /storage/kkm_last_doc_name [23:33:25]save OK [23:33:25]Clear old archive folders... [23:33:25]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:33:25]tlvbuf is 01B8ACB0 [23:33:25]SAM_PROTO_ClearQueue [23:33:25]wFMCommunicate request_size=4 [23:33:25]MH_SAM_APDU [23:33:25]CAPDU: 80 09 00 00 [23:33:25]Write to MH i2c: E2 08 00 A8 00 80 09 00 00 00 00 00 00 1A [23:33:25]Write i2c OK [23:33:25]MH_I2C_Read... [23:33:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:33:25]Read from MH i2c: E2 [23:33:25]MH_I2C_Read... [23:33:25]Read from MH i2c: E2 03 00 [23:33:25]MH_I2C_Read... [23:33:25]Read from MH i2c: E2 03 00 A8 00 00 90 00 1C [23:33:25]RAPDU: 90 00 [23:33:25]wFMCommunicate OK [23:33:25]SAM_PROTO_ClearQueue done [23:33:25]KKMCreateOFDPacket [23:33:25]OFDProtocolAddRootSTLVToBuf [23:33:25]FM_MakeSignedData [23:33:25]FM_MakeSignedData [23:33:25]SAM_PROTO_SignData [23:33:25]wFMCommunicate request_size=4 [23:33:25]MH_SAM_APDU [23:33:25]CAPDU: 80 0D 01 02 [23:33:25]Write to MH i2c: E2 08 00 A9 00 80 0D 01 02 00 00 00 00 22 [23:33:25]Write i2c OK [23:33:25]MH_I2C_Read... [23:33:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:33:25]Read from MH i2c: E2 [23:33:25]MH_I2C_Read... [23:33:25]Read from MH i2c: E2 03 00 [23:33:25]MH_I2C_Read... [23:33:25]Read from MH i2c: E2 03 00 A9 00 00 90 00 1D [23:33:25]RAPDU: 90 00 [23:33:25]wFMCommunicate OK [23:33:25]wFMCommunicate request_size=255 [23:33:25]MH_SAM_APDU [23:33:25]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A8 01 00 00 F4 03 04 00 C4 E4 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 38 DE 02 00 35 04 06 00 87 [23:33:25]Write to MH i2c: E2 02 01 AA 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A8 01 00 00 F4 03 04 00 C4 E4 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 38 DE 02 00 35 04 06 00 87 00 00 A7 [23:33:25]Write i2c OK [23:33:25]MH_I2C_Read... [23:33:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:33:25]Read from MH i2c: E2 [23:33:25]MH_I2C_Read... [23:33:25]Read from MH i2c: E2 03 00 [23:33:25]MH_I2C_Read... [23:33:25]Read from MH i2c: E2 03 00 AA 00 00 90 00 1E [23:33:25]RAPDU: 90 00 [23:33:25]wFMCommunicate OK [23:33:25]wFMCommunicate request_size=10 [23:33:25]MH_SAM_APDU [23:33:25]CAPDU: 80 0D 02 02 05 9C 09 FF B9 0E [23:33:25]Write to MH i2c: E2 0D 00 AB 00 80 0D 02 02 05 00 9C 09 FF B9 0E 00 00 9A [23:33:25]Write i2c OK [23:33:25]MH_I2C_Read... [23:33:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:33:25]Read from MH i2c: E2 [23:33:25]MH_I2C_Read... [23:33:25]Read from MH i2c: E2 03 00 [23:33:25]MH_I2C_Read... [23:33:25]Read from MH i2c: E2 03 00 AB 00 00 90 00 1F [23:33:25]RAPDU: 90 00 [23:33:25]wFMCommunicate OK [23:33:25]wFMCommunicate request_size=4 [23:33:25]MH_SAM_APDU [23:33:25]CAPDU: 80 0D 03 02 [23:33:25]Write to MH i2c: E2 08 00 AC 00 80 0D 03 02 00 00 00 00 27 [23:33:25]Write i2c OK [23:33:25]MH_I2C_Read... [23:33:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:33:25]Read from MH i2c: E2 [23:33:25]MH_I2C_Read... [23:33:25]Read from MH i2c: E2 0B 00 [23:33:25]MH_I2C_Read... [23:33:25]Read from MH i2c: E2 0B 00 AC 00 00 35 A4 EA 0F 3C 66 16 B8 90 00 6A [23:33:25]RAPDU: 35 A4 EA 0F 3C 66 16 B8 90 00 [23:33:25]wFMCommunicate OK [23:33:25]SAM_PROTO_SignData done [23:33:25]FM_MakeSignedData done [23:33:25]CreateOFDProtocolMessage [23:33:25]wFMCommunicate request_size=4 [23:33:25]MH_SAM_APDU [23:33:25]CAPDU: 80 11 00 00 [23:33:25]Write to MH i2c: E2 08 00 AD 00 80 11 00 00 00 00 00 00 27 [23:33:25]Write i2c OK [23:33:25]MH_I2C_Read... [23:33:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:33:25]Read from MH i2c: E2 [23:33:25]MH_I2C_Read... [23:33:25]Read from MH i2c: E2 17 00 [23:33:25]MH_I2C_Read... [23:33:25]Read from MH i2c: E2 17 00 AD 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 75 [23:33:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [23:33:25]wFMCommunicate OK [23:33:25]CreateOFDProtocolMessage done [23:33:25]OFDSenderStorePacket 187960 [23:33:25]StoreOFDPacket docnum=187960 [23:33:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 D8 AD 07 01 56 3D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A8 01 00 00 F4 03 04 00 C4 E4 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 38 DE 02 00 35 04 06 00 87 9C 09 FF B9 0E 35 A4 EA 0F 3C 66 16 B8 [23:33:25]CheckFolder [23:33:25]dirname=/storage/ofd_packets [23:33:25]CheckFolder done [23:33:25]ProducePacketName [23:33:25]name=ofd_packets/00187960 [23:33:25]NVStorageSaveData ofd_packets/00187960 [23:33:25]File name is /storage/ofd_packets/00187960 [23:33:25]Write 301 bytes [23:33:25]NVStorageSaveData done [23:33:25]OFDSenderStorePacket done [23:33:25]KKMCreateOFDPacket done [23:33:25]NVStorageSaveData kkm_last_timestamp [23:33:25]File name is /storage/kkm_last_timestamp [23:33:25]Write 4 bytes [23:33:25]NVStorageSaveData done [23:33:25]ExternCall_PrintAddStr [23:33:25]wPrintStart [23:33:25]Write to MH i2c: 01 00 00 AE 00 AE [23:33:25]Write i2c OK [23:33:25]MH_I2C_Read... [23:33:25]Read from MH i2c: 01 [23:33:25]MH_I2C_Read... [23:33:25]Read from MH i2c: 01 07 00 [23:33:25]MH_I2C_Read... [23:33:25]Read from MH i2c: 01 07 00 AE 00 00 00 00 00 00 FF 0F C3 [23:33:25]RasterBufferAndPrint [23:33:25]line Счет N : (1)210013 [23:33:25]line ИНН: 02508201610067 [23:33:25]line Контрольно-Кассовый Чек [23:33:25]line ПРОДАЖА [23:33:25]line ТРК (МРК, ГНК) : 23 [23:33:25]line Товар: 2710124500 [23:33:25]line Аи-95-К-3 [23:33:25]line 6.740 * 74.20 [23:33:25]line = 500.11 [23:33:25]line НДС 12% НСП 1% [23:33:25]line > о реализуемом товаре [23:33:25]line ОКРУГЛЕНИЕ: -0.11 [23:33:25]line ИТОГО: 500.00 [23:33:25]line Внесено: 500.00 [23:33:25]line СДАЧА: 0.00 [23:33:25]line НСП 1% : 4.43 [23:33:25]line НДС 12% : 53.11 [23:33:25]line Наличными: 500.00 [23:33:25]line Безнал.: 0.00 [23:33:25]line Место: АЗС № 86 "Партнер Нефть" [23:33:25]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [23:33:25]line СНО: Общий режим [23:33:25]line Чек 424 21.10.2024 23:33 [23:33:25]line Смена: 460 ФФД: 1.0 [23:33:25]line ЗНМ: 0300000155 [23:33:25]line РНМ: 0000000000100030 [23:33:25]line Версия ККМ: 001 [23:33:25]line ФМ: 0000000000965340 [23:33:25]line ФД: 187960 [23:33:25]line ФПД: 149104252401934 [23:33:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T233324&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187960&fm=149104252401934&tin=02508201610067®Number=0000000000100030&sum=50000 [23:33:25]written 0, free lines is 4095 [23:33:26]Write to MH i2c: 01 00 00 D9 00 D9 [23:33:26]Write i2c OK [23:33:26]MH_I2C_Read... [23:33:26]Read from MH i2c: 01 [23:33:26]MH_I2C_Read... [23:33:26]Read from MH i2c: 01 07 00 [23:33:26]MH_I2C_Read... [23:33:26]Read from MH i2c: 01 07 00 D9 00 00 00 00 00 00 5F 0C 4B [23:33:26]RasterBufferAndPrint [23:33:26]line [23:33:26]line [23:33:26]line [23:33:26]line [23:33:26]line [23:33:26]written 0, free lines is 3170 [23:33:26]MH_Cut [23:33:26]Write to MH i2c: D1 01 00 E0 00 01 B2 [23:33:26]Write i2c OK [23:33:26]MH_I2C_Read... [23:33:26]Read from MH i2c: D1 [23:33:26]MH_I2C_Read... [23:33:26]Read from MH i2c: D1 01 00 [23:33:26]MH_I2C_Read... [23:33:26]Read from MH i2c: D1 01 00 E0 00 00 B1 [23:33:26]Write to MH i2c: 01 00 00 E1 00 E1 [23:33:26]Write i2c OK [23:33:26]MH_I2C_Read... [23:33:27]*** Cut start [23:33:27]*** Partial cut [23:33:27]*** CUTSNS_PIN = 1 [23:33:27]*** CUTSNS_PIN = 0 [23:33:27]*** Brake cut motor [23:33:28]Read from MH i2c: 01 [23:33:28]MH_I2C_Read... [23:33:28]*** Stop cut motor [23:33:28]*** Cut end [23:33:28]Read from MH i2c: 01 07 00 [23:33:28]MH_I2C_Read... [23:33:28]Read from MH i2c: 01 07 00 E1 00 00 00 00 00 00 FF 0F F6 [23:33:28]process_action close_receipt done [23:33:28]requested_data is exist [23:33:28]produce_requested_data [23:33:28]requested_item fm.sn is exist - process it [23:33:28]wFMCommunicate request_size=4 [23:33:28]MH_SAM_APDU [23:33:28]CAPDU: 80 11 00 00 [23:33:28]Write to MH i2c: E2 08 00 E2 00 80 11 00 00 00 00 00 00 5C [23:33:28]Write i2c OK [23:33:28]MH_I2C_Read... [23:33:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:33:28]Read from MH i2c: E2 [23:33:28]MH_I2C_Read... [23:33:28]Read from MH i2c: E2 17 00 [23:33:28]MH_I2C_Read... [23:33:28]Read from MH i2c: E2 17 00 E2 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 AA [23:33:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [23:33:28]wFMCommunicate OK [23:33:28]requested_item fd.num is exist - process it [23:33:28]SAM_PROTO_GetFieldsCounters [23:33:28]wFMCommunicate request_size=4 [23:33:28]MH_SAM_APDU [23:33:28]CAPDU: 80 13 00 00 [23:33:28]Write to MH i2c: E2 08 00 E3 00 80 13 00 00 00 00 00 00 5F [23:33:28]Write i2c OK [23:33:28]MH_I2C_Read... [23:33:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:33:28]Read from MH i2c: E2 [23:33:28]MH_I2C_Read... [23:33:28]Read from MH i2c: E2 62 00 [23:33:28]MH_I2C_Read... [23:33:28]Read from MH i2c: E2 62 00 E3 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 38 DE 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 A8 01 00 00 5E 04 04 00 A8 01 00 00 57 04 04 00 A9 01 00 00 19 04 04 00 00 00 00 00 90 00 46 [23:33:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 38 DE 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 A8 01 00 00 5E 04 04 00 A8 01 00 00 57 04 04 00 A9 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:33:28]wFMCommunicate OK [23:33:28]SAM_PROTO_GetFieldsCounters done [23:33:28]requested_item shift.num is exist - process it [23:33:28]requested_item shift.opened is exist - process it [23:33:28]req_shift_opened [23:33:28]FM_GetShiftState [23:33:28]SAM_PROTO_GetShiftState [23:33:28]wFMCommunicate request_size=4 [23:33:28]MH_SAM_APDU [23:33:28]CAPDU: 80 13 01 00 [23:33:28]Write to MH i2c: E2 08 00 E4 00 80 13 01 00 00 00 00 00 61 [23:33:28]Write i2c OK [23:33:28]MH_I2C_Read... [23:33:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:33:28]Read from MH i2c: E2 [23:33:28]MH_I2C_Read... [23:33:28]Read from MH i2c: E2 0E 00 [23:33:28]MH_I2C_Read... [23:33:28]Read from MH i2c: E2 0E 00 E4 00 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 C0 [23:33:28]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [23:33:28]wFMCommunicate OK [23:33:28]SAM_PROTO_GetShiftState done [23:33:28]FM_GetShiftState done [23:33:28]req_shift_opened done [23:33:28]requested_item shift.open_date is exist - process it [23:33:28]req_shift_open_date [23:33:28]req_shift_open_date done [23:33:28]produce_requested_data done [23:33:28]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187960,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [23:33:28]process_action_free close_receipt [23:33:28]json_value_free [23:33:28]json_value_free done [23:33:28]process_json_proto returns [23:33:28]Send response to host [23:33:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187960,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [23:33:28]free response buf [23:33:28]execute_script done [23:33:28]execute_script returns [23:33:28]free content buf [23:33:28]Sock 9.Close socket [23:33:28]Sock 9.Thread stoped [23:34:01]int [23:34:01]Write to MH i2c: 01 00 00 E5 00 E5 [23:34:01]*** FLAG_PRN_PAP2 set [23:34:01]Write i2c OK [23:34:01]MH_I2C_Read... [23:34:01]Read from MH i2c: 01 [23:34:01]MH_I2C_Read... [23:34:01]Read from MH i2c: 01 07 00 [23:34:01]MH_I2C_Read... [23:34:01]Read from MH i2c: 01 07 00 E5 00 00 02 00 00 00 FF 0F FC [23:34:01]state=0 [23:34:01]Cover opened [23:34:02]int [23:34:02]Write to MH i2c: 01 00 00 E6 00 E6 [23:34:02]*** FLAG_PRN_PAP1 set [23:34:02]Write i2c OK [23:34:02]MH_I2C_Read... [23:34:02]Read from MH i2c: 01 [23:34:02]MH_I2C_Read... [23:34:02]Read from MH i2c: 01 07 00 [23:34:02]MH_I2C_Read... [23:34:02]Read from MH i2c: 01 07 00 E6 00 00 03 00 00 00 FF 0F FE [23:34:02]state=3 [23:34:02]No paper [23:34:02]Cover opened [23:34:07]Write to MH i2c: 01 00 00 E7 00 E7 [23:34:07]Write i2c OK [23:34:07]MH_I2C_Read... [23:34:07]Read from MH i2c: 01 [23:34:07]MH_I2C_Read... [23:34:07]Read from MH i2c: 01 07 00 [23:34:07]MH_I2C_Read... [23:34:07]Read from MH i2c: 01 07 00 E7 00 00 03 00 00 00 FF 0F FF [23:34:07]state=3 [23:34:07]No paper [23:34:07]Cover opened [23:34:12]Write to MH i2c: 01 00 00 E8 00 E8 [23:34:12]Write i2c OK [23:34:12]MH_I2C_Read... [23:34:12]Read from MH i2c: 01 [23:34:12]MH_I2C_Read... [23:34:12]Read from MH i2c: 01 07 00 [23:34:12]MH_I2C_Read... [23:34:12]Read from MH i2c: 01 07 00 E8 00 00 03 00 00 00 FF 0F 00 [23:34:12]state=3 [23:34:12]No paper [23:34:12]Cover opened [23:34:17]Write to MH i2c: 01 00 00 E9 00 E9 [23:34:17]Write i2c OK [23:34:17]MH_I2C_Read... [23:34:17]Read from MH i2c: 01 [23:34:17]MH_I2C_Read... [23:34:17]Read from MH i2c: 01 07 00 [23:34:17]MH_I2C_Read... [23:34:17]Read from MH i2c: 01 07 00 E9 00 00 03 00 00 00 FF 0F 01 [23:34:17]state=3 [23:34:17]No paper [23:34:17]Cover opened [23:34:19]int [23:34:19]Write to MH i2c: 01 00 00 EA 00 EA [23:34:19]*** FLAG_PRN_PAP2 reset [23:34:19]Write i2c OK [23:34:19]MH_I2C_Read... [23:34:19]Read from MH i2c: 01 [23:34:19]MH_I2C_Read... [23:34:19]Read from MH i2c: 01 07 00 [23:34:19]MH_I2C_Read... [23:34:19]Read from MH i2c: 01 07 00 EA 00 00 01 00 00 00 FF 0F 00 [23:34:19]state=3 [23:34:19]No paper [23:34:19]Cover closed [23:34:19]int line is 0 - check status [23:34:19]Write to MH i2c: 01 00 00 EB 00 EB [23:34:19]*** FLAG_PRN_PAP1 reset [23:34:19]Write i2c OK [23:34:19]MH_I2C_Read... [23:34:19]Read from MH i2c: 01 [23:34:19]MH_I2C_Read... [23:34:19]Read from MH i2c: 01 07 00 [23:34:19]MH_I2C_Read... [23:34:19]Read from MH i2c: 01 07 00 EB 00 00 00 00 00 00 FF 0F 00 [23:34:19]state=0 [23:34:19]int [23:34:19]Write to MH i2c: 01 00 00 EC 00 EC [23:34:19]Write i2c OK [23:34:19]MH_I2C_Read... [23:34:19]Read from MH i2c: 01 [23:34:19]MH_I2C_Read... [23:34:19]Read from MH i2c: 01 07 00 [23:34:19]MH_I2C_Read... [23:34:19]Read from MH i2c: 01 07 00 EC 00 00 00 00 00 00 FF 0F 01 [23:34:19]state=0 [23:35:00]ConnectInit Can't connect to host [23:35:00]CommunicateWithHost connect error [23:35:00]CommunicateWithHost err = -1 [23:35:00]OFD Sender: Server communicate error [23:35:00]OFD Sender: Processing packet 187959 [packets to send 1063, broken 1061] [23:35:00]ProducePacketName [23:35:00]name=ofd_packets/00187959 [23:35:00]OFD Sender: To server: pG, [23:35:00]CommunicateWithHost lk.salyk.kg:30040 [23:35:00]ConnectInit lk.salyk.kg [23:35:00]Connected sock=9 [23:35:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 1C C3 07 01 38 C6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 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 A7 01 00 00 F4 03 04 00 A1 E4 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 37 DE 02 00 35 04 06 00 39 DF FE DD D7 E8 DD 4C F1 93 82 19 A8 D8 [23:35:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 28 0B 47 00 3A BA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 37 DE 02 00 F4 03 04 00 11 8F 16 67 B6 04 01 00 00 C5 A8 93 D1 02 95 1E 54 [23:35:00]CommunicateWithHost err = 0 [23:35:00]CheckOFDResponse [23:35:00]1017 (14) - 77093643461234 [23:35:00]1041 (16) - 0000000000965340 [23:35:00]1040 (4) - 187959 [23:35:00]1012 (4) - 21.10.2024 17:27 [23:35:00]1206 (1) - 0 [23:35:00]OFD Sender: Remove packet 187959 [23:35:00]ProducePacketName [23:35:00]name=ofd_packets/00187959 [23:35:00]NVStorageDeleteData [23:35:01]OFD Sender: Processing packet 187960 [packets to send 1062, broken 1061] [23:35:01]ProducePacketName [23:35:01]name=ofd_packets/00187960 [23:35:01]OFD Sender: To server: pG, [23:35:01]CommunicateWithHost lk.salyk.kg:30040 [23:35:01]ConnectInit lk.salyk.kg [23:35:01]Connected sock=9 [23:35:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 D8 AD 07 01 56 3D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A8 01 00 00 F4 03 04 00 C4 E4 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 38 DE 02 00 35 04 06 00 87 9C 09 FF B9 0E 35 A4 EA 0F 3C 66 16 B8 [23:35:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 EF 78 47 00 41 60 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 38 DE 02 00 F4 03 04 00 12 8F 16 67 B6 04 01 00 00 84 14 74 FF A8 58 BB 28 [23:35:01]CommunicateWithHost err = 0 [23:35:01]CheckOFDResponse [23:35:01]1017 (14) - 77093643461234 [23:35:01]1041 (16) - 0000000000965340 [23:35:01]1040 (4) - 187960 [23:35:01]1012 (4) - 21.10.2024 17:27 [23:35:01]1206 (1) - 0 [23:35:01]OFD Sender: Remove packet 187960 [23:35:01]ProducePacketName [23:35:01]name=ofd_packets/00187960 [23:35:01]NVStorageDeleteData [23:35:02]OFD Sender: No OFD packet to send [23:35:07]OFD Sender: No OFD packet to send [23:35:12]OFD Sender: No OFD packet to send [23:35:17]OFD Sender: No OFD packet to send [23:35:22]OFD Sender: No OFD packet to send [23:35:27]OFD Sender: No OFD packet to send [23:35:32]OFD Sender: No OFD packet to send [23:35:37]OFD Sender: No OFD packet to send [23:35:42]OFD Sender: No OFD packet to send [23:35:47]OFD Sender: No OFD packet to send [23:35:52]OFD Sender: No OFD packet to send [23:35:57]OFD Sender: No OFD packet to send [23:36:02]OFD Sender: No OFD packet to send [23:36:07]OFD Sender: No OFD packet to send [23:36:12]OFD Sender: No OFD packet to send [23:36:17]OFD Sender: No OFD packet to send [23:36:22]OFD Sender: No OFD packet to send [23:36:27]OFD Sender: No OFD packet to send [23:36:32]OFD Sender: No OFD packet to send [23:36:37]OFD Sender: No OFD packet to send [23:36:41]accept exits with 8 [23:36:41]New connection [23:36:41]New thread 3067055460 created [23:36:41]Thread 3067198820 joined [23:36:41]Waiting for new connection... [23:36:41] Sock 8.Parse request [23:36:41]Sock 8.Check first char [23:36:41]Sock 8.First char is OK [23:36:41]request: POST /json_proto HTTP/1.0 [23:36:41]Method: POST [23:36:41]URL: /json_proto [23:36:41]Method is POST - this is cgi request [23:36:41]url: /json_proto [23:36:41]query_string will be loaded in cgi processing [23:36:41]execute_cgi json_proto POST (null) [23:36:41]execute_cgi path=json_proto method=POST [23:36:41]POST find Content-Length [23:36:41]Host: 172.17.42.131:8080 [23:36:41]Content-Length: 688 [23:36:41]Content-Type: application/json [23:36:41] [23:36:41]POST finish read [23:36:41]Found Content-Length = 688 [23:36:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210014", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 12.960, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:36:41]execute_script... [23:36:41]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210014", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 12.960, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:36:41]POST & json_proto [23:36:41]process_json_proto [23:36:41]json parsed OK: [23:36:41]protocol is kg_v1.0 [23:36:41]action value=close_receipt [23:36:41]process_action close_receipt [23:36:41]cmd_close_receipt [23:36:41]MH_GetDate [23:36:41]Write to MH i2c: F0 00 00 ED 00 DC [23:36:41]Write i2c OK [23:36:41]MH_I2C_Read... [23:36:41]Read from MH i2c: F0 [23:36:41]MH_I2C_Read... [23:36:41]Read from MH i2c: F0 09 00 [23:36:41]MH_I2C_Read... [23:36:41]Read from MH i2c: F0 09 00 ED 00 00 8A E5 16 67 A0 18 CA 66 B9 [23:36:41]GetLastDocTimeStamp 1729553604 [23:36:41]current date 1729553802 [23:36:41]FM_GetShiftState [23:36:41]SAM_PROTO_GetShiftState [23:36:41]wFMCommunicate request_size=4 [23:36:41]MH_SAM_APDU [23:36:41]CAPDU: 80 13 01 00 [23:36:41]Write to MH i2c: E2 08 00 EE 00 80 13 01 00 00 00 00 00 6B [23:36:41]Write i2c OK [23:36:41]MH_I2C_Read... [23:36:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:36:41]Read from MH i2c: E2 [23:36:41]MH_I2C_Read... [23:36:41]Read from MH i2c: E2 0E 00 [23:36:41]MH_I2C_Read... [23:36:41]Read from MH i2c: E2 0E 00 EE 00 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 CA [23:36:41]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [23:36:41]wFMCommunicate OK [23:36:41]SAM_PROTO_GetShiftState done [23:36:41]FM_GetShiftState done [23:36:41]opened in 1729469754 [23:36:41]opened+sec_in_day 1729556154 [23:36:41]quantity*price = 100051 [23:36:41]sum+1 = 100052 [23:36:41]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 425 21.10.2024 23:36 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 187961 ФПД: 195352730373114 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T233642&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187961&fm=195352730373114&tin=02508201610067®Number=0000000000100030&sum=100000 [23:36:43]StoreToDocumentArchive [23:36:43]shift 460 fd 187961 [23:36:43]save to /storage/0460/doc_00187961 [23:36:43]save last doc name /storage/0460/doc_00187961 to /storage/kkm_last_doc_name [23:36:43]save OK [23:36:43]Clear old archive folders... [23:36:43]ProcessDocumentItem done err = 0, tmpTLVsize=257 [23:36:43]tlvbuf is 01B8BF20 [23:36:43]SAM_PROTO_ClearQueue [23:36:43]wFMCommunicate request_size=4 [23:36:43]MH_SAM_APDU [23:36:43]CAPDU: 80 09 00 00 [23:36:43]Write to MH i2c: E2 08 00 FB 00 80 09 00 00 00 00 00 00 6D [23:36:43]Write i2c OK [23:36:43]MH_I2C_Read... [23:36:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:36:43]Read from MH i2c: E2 [23:36:43]MH_I2C_Read... [23:36:43]Read from MH i2c: E2 03 00 [23:36:43]MH_I2C_Read... [23:36:43]Read from MH i2c: E2 03 00 FB 00 00 90 00 6F [23:36:43]RAPDU: 90 00 [23:36:43]wFMCommunicate OK [23:36:43]SAM_PROTO_ClearQueue done [23:36:43]KKMCreateOFDPacket [23:36:43]OFDProtocolAddRootSTLVToBuf [23:36:43]FM_MakeSignedData [23:36:43]FM_MakeSignedData [23:36:43]SAM_PROTO_SignData [23:36:43]wFMCommunicate request_size=4 [23:36:43]MH_SAM_APDU [23:36:43]CAPDU: 80 0D 01 02 [23:36:43]Write to MH i2c: E2 08 00 FC 00 80 0D 01 02 00 00 00 00 75 [23:36:43]Write i2c OK [23:36:43]MH_I2C_Read... [23:36:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:36:43]Read from MH i2c: E2 [23:36:43]MH_I2C_Read... [23:36:43]Read from MH i2c: E2 03 00 [23:36:43]MH_I2C_Read... [23:36:43]Read from MH i2c: E2 03 00 FC 00 00 90 00 70 [23:36:43]RAPDU: 90 00 [23:36:43]wFMCommunicate OK [23:36:43]wFMCommunicate request_size=255 [23:36:43]MH_SAM_APDU [23:36:43]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 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A9 01 00 00 F4 03 04 00 8A E5 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 39 DE 02 [23:36:43]Write to MH i2c: E2 02 01 FD 00 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 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A9 01 00 00 F4 03 04 00 8A E5 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 39 DE 02 00 00 4E [23:36:43]Write i2c OK [23:36:43]MH_I2C_Read... [23:36:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:36:43]Read from MH i2c: E2 [23:36:43]MH_I2C_Read... [23:36:43]Read from MH i2c: E2 03 00 [23:36:43]MH_I2C_Read... [23:36:43]Read from MH i2c: E2 03 00 FD 00 00 90 00 71 [23:36:43]RAPDU: 90 00 [23:36:43]wFMCommunicate OK [23:36:43]wFMCommunicate request_size=16 [23:36:43]MH_SAM_APDU [23:36:43]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 B1 AC 1A 19 8B FA [23:36:43]Write to MH i2c: E2 13 00 FE 00 80 0D 02 02 0B 00 00 35 04 06 00 B1 AC 1A 19 8B FA 00 00 E2 [23:36:43]Write i2c OK [23:36:43]MH_I2C_Read... [23:36:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:36:43]Read from MH i2c: E2 [23:36:43]MH_I2C_Read... [23:36:43]Read from MH i2c: E2 03 00 [23:36:43]MH_I2C_Read... [23:36:43]Read from MH i2c: E2 03 00 FE 00 00 90 00 72 [23:36:43]RAPDU: 90 00 [23:36:43]wFMCommunicate OK [23:36:43]wFMCommunicate request_size=4 [23:36:43]MH_SAM_APDU [23:36:43]CAPDU: 80 0D 03 02 [23:36:43]Write to MH i2c: E2 08 00 FF 00 80 0D 03 02 00 00 00 00 7A [23:36:43]Write i2c OK [23:36:43]MH_I2C_Read... [23:36:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:36:43]Read from MH i2c: E2 [23:36:43]MH_I2C_Read... [23:36:43]Read from MH i2c: E2 0B 00 [23:36:43]MH_I2C_Read... [23:36:43]Read from MH i2c: E2 0B 00 FF 00 00 BA BA E5 89 3C 00 67 1C 90 00 1C [23:36:43]RAPDU: BA BA E5 89 3C 00 67 1C 90 00 [23:36:43]wFMCommunicate OK [23:36:43]SAM_PROTO_SignData done [23:36:43]FM_MakeSignedData done [23:36:43]CreateOFDProtocolMessage [23:36:43]wFMCommunicate request_size=4 [23:36:43]MH_SAM_APDU [23:36:43]CAPDU: 80 11 00 00 [23:36:43]Write to MH i2c: E2 08 00 00 01 80 11 00 00 00 00 00 00 7B [23:36:43]Write i2c OK [23:36:43]MH_I2C_Read... [23:36:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:36:43]Read from MH i2c: E2 [23:36:43]MH_I2C_Read... [23:36:43]Read from MH i2c: E2 17 00 [23:36:43]MH_I2C_Read... [23:36:43]Read from MH i2c: E2 17 00 00 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 C9 [23:36:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [23:36:43]wFMCommunicate OK [23:36:43]CreateOFDProtocolMessage done [23:36:43]OFDSenderStorePacket 187961 [23:36:43]StoreOFDPacket docnum=187961 [23:36:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 C3 55 0D 01 3C F7 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 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A9 01 00 00 F4 03 04 00 8A E5 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 39 DE 02 00 35 04 06 00 B1 AC 1A 19 8B FA BA BA E5 89 3C 00 67 1C [23:36:43]CheckFolder [23:36:43]dirname=/storage/ofd_packets [23:36:43]CheckFolder done [23:36:43]ProducePacketName [23:36:43]name=ofd_packets/00187961 [23:36:43]NVStorageSaveData ofd_packets/00187961 [23:36:43]File name is /storage/ofd_packets/00187961 [23:36:43]Write 307 bytes [23:36:43]NVStorageSaveData done [23:36:43]OFDSenderStorePacket done [23:36:43]KKMCreateOFDPacket done [23:36:43]NVStorageSaveData kkm_last_timestamp [23:36:43]File name is /storage/kkm_last_timestamp [23:36:43]Write 4 bytes [23:36:43]NVStorageSaveData done [23:36:43]ExternCall_PrintAddStr [23:36:43]wPrintStart [23:36:43]Write to MH i2c: 01 00 00 01 01 02 [23:36:43]Write i2c OK [23:36:43]MH_I2C_Read... [23:36:43]Read from MH i2c: 01 [23:36:43]MH_I2C_Read... [23:36:43]Read from MH i2c: 01 07 00 [23:36:43]MH_I2C_Read... [23:36:43]Read from MH i2c: 01 07 00 01 01 00 00 00 00 00 FF 0F 17 [23:36:43]RasterBufferAndPrint [23:36:43]line Счет N : (1)210014 [23:36:43]line ИНН: 02508201610067 [23:36:43]line Контрольно-Кассовый Чек [23:36:43]line ПРОДАЖА [23:36:43]line ТРК (МРК, ГНК) : 31 [23:36:43]line Товар: 2710194210 [23:36:43]line D-ENERGY ДТ-К-5 [23:36:43]line 12.960 * 77.20 [23:36:43]line = 1000.51 [23:36:43]line НДС 12% НСП 1% [23:36:43]line > о реализуемом товаре [23:36:43]line ОКРУГЛЕНИЕ: -0.51 [23:36:43]line ИТОГО: 1000.00 [23:36:43]line Внесено: 1000.00 [23:36:43]line СДАЧА: 0.00 [23:36:43]line НСП 1% : 8.85 [23:36:43]line НДС 12% : 106.25 [23:36:43]line Наличными: 1000.00 [23:36:43]line Безнал.: 0.00 [23:36:43]line Место: АЗС № 86 "Партнер Нефть" [23:36:43]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [23:36:43]line СНО: Общий режим [23:36:43]line Чек 425 21.10.2024 23:36 [23:36:43]line Смена: 460 ФФД: 1.0 [23:36:43]line ЗНМ: 0300000155 [23:36:43]line РНМ: 0000000000100030 [23:36:43]line Версия ККМ: 001 [23:36:43]line ФМ: 0000000000965340 [23:36:43]line ФД: 187961 [23:36:43]line ФПД: 195352730373114 [23:36:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T233642&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187961&fm=195352730373114&tin=02508201610067®Number=0000000000100030&sum=100000 [23:36:43]OFD Sender: Processing packet 187961 [packets to send 1062, broken 1061] [23:36:43]ProducePacketName [23:36:43]name=ofd_packets/00187961 [23:36:43]OFD Sender: To server: pG, [23:36:43]CommunicateWithHost lk.salyk.kg:30040 [23:36:43]ConnectInit lk.salyk.kg [23:36:43]written 0, free lines is 4095 [23:36:43]Connected sock=10 [23:36:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 C3 55 0D 01 3C F7 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 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A9 01 00 00 F4 03 04 00 8A E5 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 39 DE 02 00 35 04 06 00 B1 AC 1A 19 8B FA BA BA E5 89 3C 00 67 1C [23:36:44]Write to MH i2c: 01 00 00 2C 01 2D [23:36:44]Write i2c OK [23:36:44]MH_I2C_Read... [23:36:44]Read from MH i2c: 01 [23:36:44]MH_I2C_Read... [23:36:44]Read from MH i2c: 01 07 00 [23:36:44]MH_I2C_Read... [23:36:44]Read from MH i2c: 01 07 00 2C 01 00 00 00 00 00 59 0C 99 [23:36:44]RasterBufferAndPrint [23:36:44]line [23:36:44]line [23:36:44]line [23:36:44]line [23:36:44]line [23:36:44]written 0, free lines is 3166 [23:36:44]MH_Cut [23:36:44]Write to MH i2c: D1 01 00 33 01 01 06 [23:36:44]Write i2c OK [23:36:44]MH_I2C_Read... [23:36:44]Read from MH i2c: D1 [23:36:44]MH_I2C_Read... [23:36:44]Read from MH i2c: D1 01 00 [23:36:44]MH_I2C_Read... [23:36:44]Read from MH i2c: D1 01 00 33 01 00 05 [23:36:44]Write to MH i2c: 01 00 00 34 01 35 [23:36:44]Write i2c OK [23:36:44]MH_I2C_Read... [23:36:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 ED 75 47 00 ED BF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 39 DE 02 00 F4 03 04 00 79 8F 16 67 B6 04 01 00 00 C7 B7 A3 1F 1E 89 A4 75 [23:36:44]CommunicateWithHost err = 0 [23:36:44]CheckOFDResponse [23:36:44]1017 (14) - 77093643461234 [23:36:44]1041 (16) - 0000000000965340 [23:36:44]1040 (4) - 187961 [23:36:44]1012 (4) - 21.10.2024 17:29 [23:36:44]1206 (1) - 0 [23:36:44]OFD Sender: Remove packet 187961 [23:36:44]ProducePacketName [23:36:44]name=ofd_packets/00187961 [23:36:44]NVStorageDeleteData [23:36:44]OFD Sender: No OFD packet to send [23:36:45]*** Cut start [23:36:45]*** Partial cut [23:36:45]*** CUTSNS_PIN = 1 [23:36:45]*** CUTSNS_PIN = 0 [23:36:45]*** Brake cut motor [23:36:45]Read from MH i2c: 01 [23:36:45]MH_I2C_Read... [23:36:45]*** Stop cut motor [23:36:45]*** Cut end [23:36:45]Read from MH i2c: 01 07 00 [23:36:45]MH_I2C_Read... [23:36:45]Read from MH i2c: 01 07 00 34 01 00 00 00 00 00 FF 0F 4A [23:36:45]process_action close_receipt done [23:36:45]requested_data is exist [23:36:45]produce_requested_data [23:36:45]requested_item fm.sn is exist - process it [23:36:45]wFMCommunicate request_size=4 [23:36:45]MH_SAM_APDU [23:36:45]CAPDU: 80 11 00 00 [23:36:45]Write to MH i2c: E2 08 00 35 01 80 11 00 00 00 00 00 00 B0 [23:36:45]Write i2c OK [23:36:45]MH_I2C_Read... [23:36:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:36:46]Read from MH i2c: E2 [23:36:46]MH_I2C_Read... [23:36:46]Read from MH i2c: E2 17 00 [23:36:46]MH_I2C_Read... [23:36:46]Read from MH i2c: E2 17 00 35 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 FE [23:36:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [23:36:46]wFMCommunicate OK [23:36:46]requested_item fd.num is exist - process it [23:36:46]SAM_PROTO_GetFieldsCounters [23:36:46]wFMCommunicate request_size=4 [23:36:46]MH_SAM_APDU [23:36:46]CAPDU: 80 13 00 00 [23:36:46]Write to MH i2c: E2 08 00 36 01 80 13 00 00 00 00 00 00 B3 [23:36:46]Write i2c OK [23:36:46]MH_I2C_Read... [23:36:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:36:46]Read from MH i2c: E2 [23:36:46]MH_I2C_Read... [23:36:46]Read from MH i2c: E2 62 00 [23:36:46]MH_I2C_Read... [23:36:46]Read from MH i2c: E2 62 00 36 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 39 DE 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 A9 01 00 00 5E 04 04 00 A9 01 00 00 57 04 04 00 AA 01 00 00 19 04 04 00 00 00 00 00 90 00 9E [23:36:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 39 DE 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 A9 01 00 00 5E 04 04 00 A9 01 00 00 57 04 04 00 AA 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:36:46]wFMCommunicate OK [23:36:46]SAM_PROTO_GetFieldsCounters done [23:36:46]requested_item shift.num is exist - process it [23:36:46]requested_item shift.opened is exist - process it [23:36:46]req_shift_opened [23:36:46]FM_GetShiftState [23:36:46]SAM_PROTO_GetShiftState [23:36:46]wFMCommunicate request_size=4 [23:36:46]MH_SAM_APDU [23:36:46]CAPDU: 80 13 01 00 [23:36:46]Write to MH i2c: E2 08 00 37 01 80 13 01 00 00 00 00 00 B5 [23:36:46]Write i2c OK [23:36:46]MH_I2C_Read... [23:36:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:36:46]Read from MH i2c: E2 [23:36:46]MH_I2C_Read... [23:36:46]Read from MH i2c: E2 0E 00 [23:36:46]MH_I2C_Read... [23:36:46]Read from MH i2c: E2 0E 00 37 01 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 14 [23:36:46]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [23:36:46]wFMCommunicate OK [23:36:46]SAM_PROTO_GetShiftState done [23:36:46]FM_GetShiftState done [23:36:46]req_shift_opened done [23:36:46]requested_item shift.open_date is exist - process it [23:36:46]req_shift_open_date [23:36:46]req_shift_open_date done [23:36:46]produce_requested_data done [23:36:46]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187961,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [23:36:46]process_action_free close_receipt [23:36:46]json_value_free [23:36:46]json_value_free done [23:36:46]process_json_proto returns [23:36:46]Send response to host [23:36:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187961,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [23:36:46]free response buf [23:36:46]execute_script done [23:36:46]execute_script returns [23:36:46]free content buf [23:36:46]Sock 8.Close socket [23:36:46]Sock 8.Thread stoped [23:36:49]OFD Sender: No OFD packet to send [23:36:54]OFD Sender: No OFD packet to send [23:36:59]OFD Sender: No OFD packet to send [23:37:04]OFD Sender: No OFD packet to send [23:37:09]OFD Sender: No OFD packet to send [23:37:14]OFD Sender: No OFD packet to send [23:37:19]OFD Sender: No OFD packet to send [23:37:24]OFD Sender: No OFD packet to send [23:37:29]OFD Sender: No OFD packet to send [23:37:34]OFD Sender: No OFD packet to send [23:37:39]OFD Sender: No OFD packet to send [23:37:44]OFD Sender: No OFD packet to send [23:37:49]OFD Sender: No OFD packet to send [23:37:54]OFD Sender: No OFD packet to send [23:38:00]OFD Sender: No OFD packet to send [23:38:05]OFD Sender: No OFD packet to send [23:38:10]OFD Sender: No OFD packet to send [23:38:15]OFD Sender: No OFD packet to send [23:38:20]OFD Sender: No OFD packet to send [23:38:25]OFD Sender: No OFD packet to send [23:38:30]OFD Sender: No OFD packet to send [23:38:35]OFD Sender: No OFD packet to send [23:38:40]OFD Sender: No OFD packet to send [23:38:45]OFD Sender: No OFD packet to send [23:38:50]OFD Sender: No OFD packet to send [23:38:55]OFD Sender: No OFD packet to send [23:39:00]OFD Sender: No OFD packet to send [23:39:05]OFD Sender: No OFD packet to send [23:39:10]OFD Sender: No OFD packet to send [23:39:15]OFD Sender: No OFD packet to send [23:39:20]OFD Sender: No OFD packet to send [23:39:25]OFD Sender: No OFD packet to send [23:39:30]OFD Sender: No OFD packet to send [23:39:35]OFD Sender: No OFD packet to send [23:39:40]OFD Sender: No OFD packet to send [23:39:45]OFD Sender: No OFD packet to send [23:39:50]OFD Sender: No OFD packet to send [23:39:55]OFD Sender: No OFD packet to send [23:40:00]OFD Sender: No OFD packet to send [23:40:05]OFD Sender: No OFD packet to send [23:40:10]OFD Sender: No OFD packet to send [23:40:15]OFD Sender: No OFD packet to send [23:40:20]OFD Sender: No OFD packet to send [23:40:25]OFD Sender: No OFD packet to send [23:40:30]OFD Sender: No OFD packet to send [23:40:35]OFD Sender: No OFD packet to send [23:40:40]OFD Sender: No OFD packet to send [23:40:45]OFD Sender: No OFD packet to send [23:40:50]OFD Sender: No OFD packet to send [23:40:55]OFD Sender: No OFD packet to send [23:41:00]OFD Sender: No OFD packet to send [23:41:05]OFD Sender: No OFD packet to send [23:41:10]OFD Sender: No OFD packet to send [23:41:15]OFD Sender: No OFD packet to send [23:41:20]OFD Sender: No OFD packet to send [23:41:25]OFD Sender: No OFD packet to send [23:41:30]OFD Sender: No OFD packet to send [23:41:35]OFD Sender: No OFD packet to send [23:41:40]OFD Sender: No OFD packet to send [23:41:46]OFD Sender: No OFD packet to send [23:41:51]OFD Sender: No OFD packet to send [23:41:56]OFD Sender: No OFD packet to send [23:42:01]OFD Sender: No OFD packet to send [23:42:02]accept exits with 9 [23:42:02]New connection [23:42:02]New thread 3067198820 created [23:42:02]Thread 3067055460 joined [23:42:02]Waiting for new connection... [23:42:02] Sock 9.Parse request [23:42:02]Sock 9.Check first char [23:42:02]Sock 9.First char is OK [23:42:02]request: POST /json_proto HTTP/1.0 [23:42:02]Method: POST [23:42:02]URL: /json_proto [23:42:02]Method is POST - this is cgi request [23:42:02]url: /json_proto [23:42:02]query_string will be loaded in cgi processing [23:42:02]execute_cgi json_proto POST (null) [23:42:02]execute_cgi path=json_proto method=POST [23:42:02]POST find Content-Length [23:42:02]Host: 172.17.42.131:8080 [23:42:02]Content-Length: 677 [23:42:02]Content-Type: application/json [23:42:02] [23:42:02]POST finish read [23:42:02]Found Content-Length = 677 [23:42:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210015", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:42:02]execute_script... [23:42:02]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210015", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:42:02]POST & json_proto [23:42:02]process_json_proto [23:42:02]json parsed OK: [23:42:02]protocol is kg_v1.0 [23:42:02]action value=close_receipt [23:42:02]process_action close_receipt [23:42:02]cmd_close_receipt [23:42:02]MH_GetDate [23:42:02]Write to MH i2c: F0 00 00 38 01 28 [23:42:02]Write i2c OK [23:42:02]MH_I2C_Read... [23:42:02]Read from MH i2c: F0 [23:42:02]MH_I2C_Read... [23:42:02]Read from MH i2c: F0 09 00 [23:42:02]MH_I2C_Read... [23:42:02]Read from MH i2c: F0 09 00 38 01 00 CB E6 16 67 A0 18 CA 66 47 [23:42:02]GetLastDocTimeStamp 1729553802 [23:42:02]current date 1729554123 [23:42:02]FM_GetShiftState [23:42:02]SAM_PROTO_GetShiftState [23:42:02]wFMCommunicate request_size=4 [23:42:02]MH_SAM_APDU [23:42:02]CAPDU: 80 13 01 00 [23:42:02]Write to MH i2c: E2 08 00 39 01 80 13 01 00 00 00 00 00 B7 [23:42:02]Write i2c OK [23:42:02]MH_I2C_Read... [23:42:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:42:02]Read from MH i2c: E2 [23:42:02]MH_I2C_Read... [23:42:02]Read from MH i2c: E2 0E 00 [23:42:02]MH_I2C_Read... [23:42:02]Read from MH i2c: E2 0E 00 39 01 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 16 [23:42:02]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [23:42:02]wFMCommunicate OK [23:42:02]SAM_PROTO_GetShiftState done [23:42:02]FM_GetShiftState done [23:42:02]opened in 1729469754 [23:42:02]opened+sec_in_day 1729556154 [23:42:02]quantity*price = 40006 [23:42:02]sum+1 = 40007 [23:42:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 426 21.10.2024 23:42 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 187962 ФПД: 169156441457773 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T234203&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187962&fm=169156441457773&tin=02508201610067®Number=0000000000100030&sum=40000 [23:42:03]StoreToDocumentArchive [23:42:03]shift 460 fd 187962 [23:42:03]save to /storage/0460/doc_00187962 [23:42:03]save last doc name /storage/0460/doc_00187962 to /storage/kkm_last_doc_name [23:42:03]save OK [23:42:03]Clear old archive folders... [23:42:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:42:03]tlvbuf is 01BF6080 [23:42:03]SAM_PROTO_ClearQueue [23:42:03]wFMCommunicate request_size=4 [23:42:03]MH_SAM_APDU [23:42:03]CAPDU: 80 09 00 00 [23:42:03]Write to MH i2c: E2 08 00 46 01 80 09 00 00 00 00 00 00 B9 [23:42:03]Write i2c OK [23:42:03]MH_I2C_Read... [23:42:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:42:03]Read from MH i2c: E2 [23:42:03]MH_I2C_Read... [23:42:03]Read from MH i2c: E2 03 00 [23:42:03]MH_I2C_Read... [23:42:03]Read from MH i2c: E2 03 00 46 01 00 90 00 BB [23:42:03]RAPDU: 90 00 [23:42:03]wFMCommunicate OK [23:42:03]SAM_PROTO_ClearQueue done [23:42:03]KKMCreateOFDPacket [23:42:03]OFDProtocolAddRootSTLVToBuf [23:42:03]FM_MakeSignedData [23:42:03]FM_MakeSignedData [23:42:03]SAM_PROTO_SignData [23:42:03]wFMCommunicate request_size=4 [23:42:03]MH_SAM_APDU [23:42:03]CAPDU: 80 0D 01 02 [23:42:03]Write to MH i2c: E2 08 00 47 01 80 0D 01 02 00 00 00 00 C1 [23:42:03]Write i2c OK [23:42:03]MH_I2C_Read... [23:42:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:42:03]Read from MH i2c: E2 [23:42:03]MH_I2C_Read... [23:42:03]Read from MH i2c: E2 03 00 [23:42:03]MH_I2C_Read... [23:42:03]Read from MH i2c: E2 03 00 47 01 00 90 00 BC [23:42:03]RAPDU: 90 00 [23:42:03]wFMCommunicate OK [23:42:03]wFMCommunicate request_size=255 [23:42:03]MH_SAM_APDU [23:42: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 33 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 AA 01 00 00 F4 03 04 00 CB E6 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 3A DE 02 00 35 04 06 00 99 [23:42:03]Write to MH i2c: E2 02 01 48 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 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 AA 01 00 00 F4 03 04 00 CB E6 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 3A DE 02 00 35 04 06 00 99 00 00 5C [23:42:03]Write i2c OK [23:42:03]MH_I2C_Read... [23:42:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:42:04]Read from MH i2c: E2 [23:42:04]MH_I2C_Read... [23:42:04]Read from MH i2c: E2 03 00 [23:42:04]MH_I2C_Read... [23:42:04]Read from MH i2c: E2 03 00 48 01 00 90 00 BD [23:42:04]RAPDU: 90 00 [23:42:04]wFMCommunicate OK [23:42:04]wFMCommunicate request_size=10 [23:42:04]MH_SAM_APDU [23:42:04]CAPDU: 80 0D 02 02 05 D8 CD 9A C4 6D [23:42:04]Write to MH i2c: E2 0D 00 49 01 80 0D 02 02 05 00 D8 CD 9A C4 6D 00 00 3E [23:42:04]Write i2c OK [23:42:04]MH_I2C_Read... [23:42:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:42:04]Read from MH i2c: E2 [23:42:04]MH_I2C_Read... [23:42:04]Read from MH i2c: E2 03 00 [23:42:04]MH_I2C_Read... [23:42:04]Read from MH i2c: E2 03 00 49 01 00 90 00 BE [23:42:04]RAPDU: 90 00 [23:42:04]wFMCommunicate OK [23:42:04]wFMCommunicate request_size=4 [23:42:04]MH_SAM_APDU [23:42:04]CAPDU: 80 0D 03 02 [23:42:04]Write to MH i2c: E2 08 00 4A 01 80 0D 03 02 00 00 00 00 C6 [23:42:04]Write i2c OK [23:42:04]MH_I2C_Read... [23:42:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:42:04]Read from MH i2c: E2 [23:42:04]MH_I2C_Read... [23:42:04]Read from MH i2c: E2 0B 00 [23:42:04]MH_I2C_Read... [23:42:04]Read from MH i2c: E2 0B 00 4A 01 00 75 BB 98 B1 DC 27 22 AC 90 00 11 [23:42:04]RAPDU: 75 BB 98 B1 DC 27 22 AC 90 00 [23:42:04]wFMCommunicate OK [23:42:04]SAM_PROTO_SignData done [23:42:04]FM_MakeSignedData done [23:42:04]CreateOFDProtocolMessage [23:42:04]wFMCommunicate request_size=4 [23:42:04]MH_SAM_APDU [23:42:04]CAPDU: 80 11 00 00 [23:42:04]Write to MH i2c: E2 08 00 4B 01 80 11 00 00 00 00 00 00 C6 [23:42:04]Write i2c OK [23:42:04]MH_I2C_Read... [23:42:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:42:04]Read from MH i2c: E2 [23:42:04]MH_I2C_Read... [23:42:04]Read from MH i2c: E2 17 00 [23:42:04]MH_I2C_Read... [23:42:04]Read from MH i2c: E2 17 00 4B 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 14 [23:42:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [23:42:04]wFMCommunicate OK [23:42:04]CreateOFDProtocolMessage done [23:42:04]OFDSenderStorePacket 187962 [23:42:04]StoreOFDPacket docnum=187962 [23:42:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 20 05 07 01 8E 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 33 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 AA 01 00 00 F4 03 04 00 CB E6 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 3A DE 02 00 35 04 06 00 99 D8 CD 9A C4 6D 75 BB 98 B1 DC 27 22 AC [23:42:04]CheckFolder [23:42:04]dirname=/storage/ofd_packets [23:42:04]CheckFolder done [23:42:04]ProducePacketName [23:42:04]name=ofd_packets/00187962 [23:42:04]NVStorageSaveData ofd_packets/00187962 [23:42:04]File name is /storage/ofd_packets/00187962 [23:42:04]Write 301 bytes [23:42:04]NVStorageSaveData done [23:42:04]OFDSenderStorePacket done [23:42:04]KKMCreateOFDPacket done [23:42:04]NVStorageSaveData kkm_last_timestamp [23:42:04]File name is /storage/kkm_last_timestamp [23:42:04]Write 4 bytes [23:42:04]NVStorageSaveData done [23:42:04]ExternCall_PrintAddStr [23:42:04]wPrintStart [23:42:04]Write to MH i2c: 01 00 00 4C 01 4D [23:42:04]Write i2c OK [23:42:04]MH_I2C_Read... [23:42:04]Read from MH i2c: 01 [23:42:04]MH_I2C_Read... [23:42:04]Read from MH i2c: 01 07 00 [23:42:04]MH_I2C_Read... [23:42:04]Read from MH i2c: 01 07 00 4C 01 00 00 00 00 00 FF 0F 62 [23:42:04]RasterBufferAndPrint [23:42:04]line Счет N : (1)210015 [23:42:04]line ИНН: 02508201610067 [23:42:04]line Контрольно-Кассовый Чек [23:42:04]line ПРОДАЖА [23:42:04]line ТРК (МРК, ГНК) : 32 [23:42:04]line Товар: 2710124130 [23:42:04]line Аи-92-К-3 [23:42:04]line 5.980 * 66.90 [23:42:04]line = 400.06 [23:42:04]line НДС 12% НСП 1% [23:42:04]line > о реализуемом товаре [23:42:04]line ОКРУГЛЕНИЕ: -0.06 [23:42:04]line ИТОГО: 400.00 [23:42:04]line Внесено: 400.00 [23:42:04]line СДАЧА: 0.00 [23:42:04]line НСП 1% : 3.54 [23:42:04]line НДС 12% : 42.48 [23:42:04]line Наличными: 400.00 [23:42:04]line Безнал.: 0.00 [23:42:04]line Место: АЗС № 86 "Партнер Нефть" [23:42:04]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [23:42:04]line СНО: Общий режим [23:42:04]line Чек 426 21.10.2024 23:42 [23:42:04]line Смена: 460 ФФД: 1.0 [23:42:04]line ЗНМ: 0300000155 [23:42:04]line РНМ: 0000000000100030 [23:42:04]line Версия ККМ: 001 [23:42:04]line ФМ: 0000000000965340 [23:42:04]line ФД: 187962 [23:42:04]line ФПД: 169156441457773 [23:42:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T234203&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187962&fm=169156441457773&tin=02508201610067®Number=0000000000100030&sum=40000 [23:42:04]written 0, free lines is 4095 [23:42:04]OFD Sender: Processing packet 187962 [packets to send 1062, broken 1061] [23:42:04]ProducePacketName [23:42:04]name=ofd_packets/00187962 [23:42:04]OFD Sender: To server: pG, [23:42:04]CommunicateWithHost lk.salyk.kg:30040 [23:42:04]ConnectInit lk.salyk.kg [23:42:04]Connected sock=8 [23:42:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 20 05 07 01 8E 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 33 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 AA 01 00 00 F4 03 04 00 CB E6 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 3A DE 02 00 35 04 06 00 99 D8 CD 9A C4 6D 75 BB 98 B1 DC 27 22 AC [23:42:04]Write to MH i2c: 01 00 00 77 01 78 [23:42:04]Write i2c OK [23:42:04]MH_I2C_Read... [23:42:04]Read from MH i2c: 01 [23:42:04]MH_I2C_Read... [23:42:04]Read from MH i2c: 01 07 00 [23:42:04]MH_I2C_Read... [23:42:04]Read from MH i2c: 01 07 00 77 01 00 00 00 00 00 5F 0C EA [23:42:04]RasterBufferAndPrint [23:42:04]line [23:42:04]line [23:42:04]line [23:42:04]line [23:42:04]line [23:42:04]written 0, free lines is 3170 [23:42:04]MH_Cut [23:42:04]Write to MH i2c: D1 01 00 7E 01 01 51 [23:42:04]Write i2c OK [23:42:04]MH_I2C_Read... [23:42:04]Read from MH i2c: D1 [23:42:04]MH_I2C_Read... [23:42:04]Read from MH i2c: D1 01 00 [23:42:04]MH_I2C_Read... [23:42:04]Read from MH i2c: D1 01 00 7E 01 00 50 [23:42:04]Write to MH i2c: 01 00 00 7F 01 80 [23:42:04]Write i2c OK [23:42:04]MH_I2C_Read... [23:42:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 BC 0C 47 00 B5 2B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 3A DE 02 00 F4 03 04 00 B9 90 16 67 B6 04 01 00 00 0B FD 8E 3F 50 9B AE F0 [23:42:04]CommunicateWithHost err = 0 [23:42:04]CheckOFDResponse [23:42:04]1017 (14) - 77093643461234 [23:42:04]1041 (16) - 0000000000965340 [23:42:04]1040 (4) - 187962 [23:42:04]1012 (4) - 21.10.2024 17:34 [23:42:04]1206 (1) - 0 [23:42:04]OFD Sender: Remove packet 187962 [23:42:04]ProducePacketName [23:42:04]name=ofd_packets/00187962 [23:42:04]NVStorageDeleteData [23:42:05]OFD Sender: No OFD packet to send [23:42:06]*** Cut start [23:42:06]*** Partial cut [23:42:06]*** CUTSNS_PIN = 1 [23:42:06]*** CUTSNS_PIN = 0 [23:42:06]*** Brake cut motor [23:42:06]Read from MH i2c: 01 [23:42:06]MH_I2C_Read... [23:42:06]*** Stop cut motor [23:42:06]*** Cut end [23:42:06]Read from MH i2c: 01 07 00 [23:42:06]MH_I2C_Read... [23:42:06]Read from MH i2c: 01 07 00 7F 01 00 00 00 00 00 FF 0F 95 [23:42:06]process_action close_receipt done [23:42:06]requested_data is exist [23:42:06]produce_requested_data [23:42:06]requested_item fm.sn is exist - process it [23:42:06]wFMCommunicate request_size=4 [23:42:06]MH_SAM_APDU [23:42:06]CAPDU: 80 11 00 00 [23:42:06]Write to MH i2c: E2 08 00 80 01 80 11 00 00 00 00 00 00 FB [23:42:06]Write i2c OK [23:42:06]MH_I2C_Read... [23:42:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:42:06]Read from MH i2c: E2 [23:42:06]MH_I2C_Read... [23:42:06]Read from MH i2c: E2 17 00 [23:42:06]MH_I2C_Read... [23:42:06]Read from MH i2c: E2 17 00 80 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 49 [23:42:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [23:42:06]wFMCommunicate OK [23:42:06]requested_item fd.num is exist - process it [23:42:06]SAM_PROTO_GetFieldsCounters [23:42:06]wFMCommunicate request_size=4 [23:42:06]MH_SAM_APDU [23:42:06]CAPDU: 80 13 00 00 [23:42:06]Write to MH i2c: E2 08 00 81 01 80 13 00 00 00 00 00 00 FE [23:42:06]Write i2c OK [23:42:06]MH_I2C_Read... [23:42:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:42:06]Read from MH i2c: E2 [23:42:06]MH_I2C_Read... [23:42:06]Read from MH i2c: E2 62 00 [23:42:06]MH_I2C_Read... [23:42:06]Read from MH i2c: E2 62 00 81 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 3A DE 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 AA 01 00 00 5E 04 04 00 AA 01 00 00 57 04 04 00 AB 01 00 00 19 04 04 00 00 00 00 00 90 00 ED [23:42:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 3A DE 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 AA 01 00 00 5E 04 04 00 AA 01 00 00 57 04 04 00 AB 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:42:06]wFMCommunicate OK [23:42:06]SAM_PROTO_GetFieldsCounters done [23:42:06]requested_item shift.num is exist - process it [23:42:06]requested_item shift.opened is exist - process it [23:42:06]req_shift_opened [23:42:06]FM_GetShiftState [23:42:06]SAM_PROTO_GetShiftState [23:42:06]wFMCommunicate request_size=4 [23:42:06]MH_SAM_APDU [23:42:06]CAPDU: 80 13 01 00 [23:42:06]Write to MH i2c: E2 08 00 82 01 80 13 01 00 00 00 00 00 00 [23:42:06]Write i2c OK [23:42:06]MH_I2C_Read... [23:42:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:42:07]Read from MH i2c: E2 [23:42:07]MH_I2C_Read... [23:42:07]Read from MH i2c: E2 0E 00 [23:42:07]MH_I2C_Read... [23:42:07]Read from MH i2c: E2 0E 00 82 01 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 5F [23:42:07]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [23:42:07]wFMCommunicate OK [23:42:07]SAM_PROTO_GetShiftState done [23:42:07]FM_GetShiftState done [23:42:07]req_shift_opened done [23:42:07]requested_item shift.open_date is exist - process it [23:42:07]req_shift_open_date [23:42:07]req_shift_open_date done [23:42:07]produce_requested_data done [23:42:07]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187962,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [23:42:07]process_action_free close_receipt [23:42:07]json_value_free [23:42:07]json_value_free done [23:42:07]process_json_proto returns [23:42:07]Send response to host [23:42:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187962,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [23:42:07]free response buf [23:42:07]execute_script done [23:42:07]execute_script returns [23:42:07]free content buf [23:42:07]Sock 9.Close socket [23:42:07]Sock 9.Thread stoped [23:42:10]OFD Sender: No OFD packet to send [23:42:15]OFD Sender: No OFD packet to send [23:42:20]OFD Sender: No OFD packet to send [23:42:25]OFD Sender: No OFD packet to send [23:42:30]OFD Sender: No OFD packet to send [23:42:35]OFD Sender: No OFD packet to send [23:42:40]OFD Sender: No OFD packet to send [23:42:45]OFD Sender: No OFD packet to send [23:42:50]OFD Sender: No OFD packet to send [23:42:55]OFD Sender: No OFD packet to send [23:43:00]OFD Sender: No OFD packet to send [23:43:05]OFD Sender: No OFD packet to send [23:43:10]OFD Sender: No OFD packet to send [23:43:15]OFD Sender: No OFD packet to send [23:43:20]OFD Sender: No OFD packet to send [23:43:25]OFD Sender: No OFD packet to send [23:43:30]OFD Sender: No OFD packet to send [23:43:31]accept exits with 10 [23:43:31]New connection [23:43:31]New thread 3067055460 created [23:43:31]Thread 3067198820 joined [23:43:31]Waiting for new connection... [23:43:31] Sock 10.Parse request [23:43:31]Sock 10.Check first char [23:43:31]Sock 10.First char is OK [23:43:31]request: POST /json_proto HTTP/1.0 [23:43:31]Method: POST [23:43:31]URL: /json_proto [23:43:31]Method is POST - this is cgi request [23:43:31]url: /json_proto [23:43:31]query_string will be loaded in cgi processing [23:43:31]execute_cgi json_proto POST (null) [23:43:31]execute_cgi path=json_proto method=POST [23:43:31]POST find Content-Length [23:43:31]Host: 172.17.42.131:8080 [23:43:31]Content-Length: 766 [23:43:31]Content-Type: application/json [23:43:31] [23:43:31]POST finish read [23:43:31]Found Content-Length = 766 [23:43:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210016", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 2000.25 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:43:31]execute_script... [23:43: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)210016", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 2000.25 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:43:31]POST & json_proto [23:43:31]process_json_proto [23:43:31]json parsed OK: [23:43:31]protocol is kg_v1.0 [23:43:31]action value=close_receipt [23:43:31]process_action close_receipt [23:43:31]cmd_close_receipt [23:43:31]MH_GetDate [23:43:31]Write to MH i2c: F0 00 00 83 01 73 [23:43:31]Write i2c OK [23:43:31]MH_I2C_Read... [23:43:31]Read from MH i2c: F0 [23:43:31]MH_I2C_Read... [23:43:31]Read from MH i2c: F0 09 00 [23:43:31]MH_I2C_Read... [23:43:31]Read from MH i2c: F0 09 00 83 01 00 24 E7 16 67 A0 18 CA 66 EC [23:43:31]GetLastDocTimeStamp 1729554123 [23:43:31]current date 1729554212 [23:43:31]FM_GetShiftState [23:43:31]SAM_PROTO_GetShiftState [23:43:31]wFMCommunicate request_size=4 [23:43:31]MH_SAM_APDU [23:43:31]CAPDU: 80 13 01 00 [23:43:31]Write to MH i2c: E2 08 00 84 01 80 13 01 00 00 00 00 00 02 [23:43:31]Write i2c OK [23:43:31]MH_I2C_Read... [23:43:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:43:31]Read from MH i2c: E2 [23:43:31]MH_I2C_Read... [23:43:31]Read from MH i2c: E2 0E 00 [23:43:31]MH_I2C_Read... [23:43:31]Read from MH i2c: E2 0E 00 84 01 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 61 [23:43:31]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [23:43:31]wFMCommunicate OK [23:43:31]SAM_PROTO_GetShiftState done [23:43:31]FM_GetShiftState done [23:43:31]opened in 1729469754 [23:43:31]opened+sec_in_day 1729556154 [23:43:31]quantity*price = 200025 [23:43:31]sum+1 = 200026 [23:43:31]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2000.25 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 0.00 Безнал.: 2000.25 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 427 21.10.2024 23:43 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000965340 ФД: 187963 ФПД: 107835240878896 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T234332&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187963&fm=107835240878896&tin=02508201610067®Number=0000000000100030&sum=200025 [23:43:33]StoreToDocumentArchive [23:43:33]shift 460 fd 187963 [23:43:33]save to /storage/0460/doc_00187963 [23:43:33]save last doc name /storage/0460/doc_00187963 to /storage/kkm_last_doc_name [23:43:33]save OK [23:43:33]Clear old archive folders... [23:43:33]ProcessDocumentItem done err = 0, tmpTLVsize=248 [23:43:33]tlvbuf is 01BFDDA0 [23:43:33]SAM_PROTO_ClearQueue [23:43:33]wFMCommunicate request_size=4 [23:43:33]MH_SAM_APDU [23:43:33]CAPDU: 80 09 00 00 [23:43:33]Write to MH i2c: E2 08 00 91 01 80 09 00 00 00 00 00 00 04 [23:43:33]Write i2c OK [23:43:33]MH_I2C_Read... [23:43:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:43:33]Read from MH i2c: E2 [23:43:33]MH_I2C_Read... [23:43:33]Read from MH i2c: E2 03 00 [23:43:33]MH_I2C_Read... [23:43:33]Read from MH i2c: E2 03 00 91 01 00 90 00 06 [23:43:33]RAPDU: 90 00 [23:43:33]wFMCommunicate OK [23:43:33]SAM_PROTO_ClearQueue done [23:43:33]KKMCreateOFDPacket [23:43:33]OFDProtocolAddRootSTLVToBuf [23:43:33]FM_MakeSignedData [23:43:33]FM_MakeSignedData [23:43:33]SAM_PROTO_SignData [23:43:33]wFMCommunicate request_size=4 [23:43:33]MH_SAM_APDU [23:43:33]CAPDU: 80 0D 01 02 [23:43:33]Write to MH i2c: E2 08 00 92 01 80 0D 01 02 00 00 00 00 0C [23:43:33]Write i2c OK [23:43:33]MH_I2C_Read... [23:43:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:43:33]Read from MH i2c: E2 [23:43:33]MH_I2C_Read... [23:43:33]Read from MH i2c: E2 03 00 [23:43:33]MH_I2C_Read... [23:43:33]Read from MH i2c: E2 03 00 92 01 00 90 00 07 [23:43:33]RAPDU: 90 00 [23:43:33]wFMCommunicate OK [23:43:33]wFMCommunicate request_size=255 [23:43:33]MH_SAM_APDU [23:43:33]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 59 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 59 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 AB 01 00 00 F4 03 04 00 24 E7 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 3B DE 02 00 35 04 06 00 62 13 59 3A [23:43:33]Write to MH i2c: E2 02 01 93 01 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 59 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 59 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 AB 01 00 00 F4 03 04 00 24 E7 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 3B DE 02 00 35 04 06 00 62 13 59 3A 00 00 BB [23:43:33]Write i2c OK [23:43:33]MH_I2C_Read... [23:43:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:43:33]Read from MH i2c: E2 [23:43:33]MH_I2C_Read... [23:43:33]Read from MH i2c: E2 03 00 [23:43:33]MH_I2C_Read... [23:43:33]Read from MH i2c: E2 03 00 93 01 00 90 00 08 [23:43:33]RAPDU: 90 00 [23:43:33]wFMCommunicate OK [23:43:33]wFMCommunicate request_size=7 [23:43:33]MH_SAM_APDU [23:43:33]CAPDU: 80 0D 02 02 02 13 30 [23:43:33]Write to MH i2c: E2 0A 00 94 01 80 0D 02 02 02 00 13 30 00 00 56 [23:43:33]Write i2c OK [23:43:33]MH_I2C_Read... [23:43:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:43:33]Read from MH i2c: E2 [23:43:33]MH_I2C_Read... [23:43:33]Read from MH i2c: E2 03 00 [23:43:33]MH_I2C_Read... [23:43:33]Read from MH i2c: E2 03 00 94 01 00 90 00 09 [23:43:33]RAPDU: 90 00 [23:43:33]wFMCommunicate OK [23:43:33]wFMCommunicate request_size=4 [23:43:33]MH_SAM_APDU [23:43:33]CAPDU: 80 0D 03 02 [23:43:33]Write to MH i2c: E2 08 00 95 01 80 0D 03 02 00 00 00 00 11 [23:43:33]Write i2c OK [23:43:33]MH_I2C_Read... [23:43:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:43:33]Read from MH i2c: E2 [23:43:33]MH_I2C_Read... [23:43:33]Read from MH i2c: E2 0B 00 [23:43:33]MH_I2C_Read... [23:43:33]Read from MH i2c: E2 0B 00 95 01 00 CD 7F 5B 27 53 3E 40 CF 90 00 80 [23:43:33]RAPDU: CD 7F 5B 27 53 3E 40 CF 90 00 [23:43:33]wFMCommunicate OK [23:43:33]SAM_PROTO_SignData done [23:43:33]FM_MakeSignedData done [23:43:33]CreateOFDProtocolMessage [23:43:33]wFMCommunicate request_size=4 [23:43:33]MH_SAM_APDU [23:43:33]CAPDU: 80 11 00 00 [23:43:33]Write to MH i2c: E2 08 00 96 01 80 11 00 00 00 00 00 00 11 [23:43:33]Write i2c OK [23:43:33]MH_I2C_Read... [23:43:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:43:33]Read from MH i2c: E2 [23:43:33]MH_I2C_Read... [23:43:33]Read from MH i2c: E2 17 00 [23:43:33]MH_I2C_Read... [23:43:33]Read from MH i2c: E2 17 00 96 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 5F [23:43:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [23:43:33]wFMCommunicate OK [23:43:33]CreateOFDProtocolMessage done [23:43:33]OFDSenderStorePacket 187963 [23:43:33]StoreOFDPacket docnum=187963 [23:43:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 24 20 04 01 E0 B0 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 59 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 59 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 AB 01 00 00 F4 03 04 00 24 E7 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 3B DE 02 00 35 04 06 00 62 13 59 3A 13 30 CD 7F 5B 27 53 3E 40 CF [23:43:33]CheckFolder [23:43:33]dirname=/storage/ofd_packets [23:43:33]CheckFolder done [23:43:33]ProducePacketName [23:43:33]name=ofd_packets/00187963 [23:43:33]NVStorageSaveData ofd_packets/00187963 [23:43:33]File name is /storage/ofd_packets/00187963 [23:43:33]Write 298 bytes [23:43:33]NVStorageSaveData done [23:43:33]OFDSenderStorePacket done [23:43:33]KKMCreateOFDPacket done [23:43:33]NVStorageSaveData kkm_last_timestamp [23:43:33]File name is /storage/kkm_last_timestamp [23:43:33]Write 4 bytes [23:43:33]NVStorageSaveData done [23:43:33]ExternCall_PrintAddStr [23:43:33]wPrintStart [23:43:33]Write to MH i2c: 01 00 00 97 01 98 [23:43:33]Write i2c OK [23:43:33]MH_I2C_Read... [23:43:33]Read from MH i2c: 01 [23:43:33]MH_I2C_Read... [23:43:33]Read from MH i2c: 01 07 00 [23:43:33]MH_I2C_Read... [23:43:33]Read from MH i2c: 01 07 00 97 01 00 00 00 00 00 FF 0F AD [23:43:33]RasterBufferAndPrint [23:43:33]line Счет N : (1)210016 [23:43:33]line ИНН: 02508201610067 [23:43:33]line Контрольно-Кассовый Чек [23:43:33]line ПРОДАЖА [23:43:33]line ТРК (МРК, ГНК) : 51 [23:43:33]line Товар: 2710194210 [23:43:33]line ДТ-К-5 [23:43:33]line 26.250 * 76.20 [23:43:33]line = 2000.25 [23:43:33]line НДС 12% НСП 1% [23:43:33]line > о реализуемом товаре [23:43:33]line ИТОГО: 2000.25 [23:43:33]line НСП 1% : 17.70 [23:43:33]line НДС 12% : 212.42 [23:43:33]line Наличными: 0.00 [23:43:33]line Безнал.: 2000.25 [23:43:33]line Место: АЗС № 86 "Партнер Нефть" [23:43:33]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [23:43:33]line СНО: Общий режим [23:43:33]line Чек 427 21.10.2024 23:43 [23:43:33]line Смена: 460 ФФД: 1.0 [23:43:33]line ЗНМ: 0300000155 [23:43:33]line РНМ: 0000000000100030 [23:43:33]line Версия ККМ: 001 [23:43:33]line Платежная система: Mbank [23:43:33]line ФМ: 0000000000965340 [23:43:33]line ФД: 187963 [23:43:33]line ФПД: 107835240878896 [23:43:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T234332&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187963&fm=107835240878896&tin=02508201610067®Number=0000000000100030&sum=200025 [23:43:33]written 0, free lines is 4095 [23:43:33]OFD Sender: Processing packet 187963 [packets to send 1062, broken 1061] [23:43:33]ProducePacketName [23:43:33]name=ofd_packets/00187963 [23:43:33]OFD Sender: To server: pG, [23:43:33]CommunicateWithHost lk.salyk.kg:30040 [23:43:33]ConnectInit lk.salyk.kg [23:43:33]Connected sock=9 [23:43:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 24 20 04 01 E0 B0 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 59 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 59 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 AB 01 00 00 F4 03 04 00 24 E7 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 3B DE 02 00 35 04 06 00 62 13 59 3A 13 30 CD 7F 5B 27 53 3E 40 CF [23:43:34]Write to MH i2c: 01 00 00 C0 01 C1 [23:43:34]Write i2c OK [23:43:34]MH_I2C_Read... [23:43:34]Read from MH i2c: 01 [23:43:34]MH_I2C_Read... [23:43:34]Read from MH i2c: 01 07 00 [23:43:34]MH_I2C_Read... [23:43:34]Read from MH i2c: 01 07 00 C0 01 00 00 00 00 00 8F 0C 63 [23:43:34]RasterBufferAndPrint [23:43:34]line [23:43:34]line [23:43:34]line [23:43:34]line [23:43:34]line [23:43:34]written 0, free lines is 3220 [23:43:34]MH_Cut [23:43:34]Write to MH i2c: D1 01 00 C7 01 01 9A [23:43:34]Write i2c OK [23:43:34]MH_I2C_Read... [23:43:34]Read from MH i2c: D1 [23:43:34]MH_I2C_Read... [23:43:34]Read from MH i2c: D1 01 00 [23:43:34]MH_I2C_Read... [23:43:34]Read from MH i2c: D1 01 00 C7 01 00 99 [23:43:34]Write to MH i2c: 01 00 00 C8 01 C9 [23:43:34]Write i2c OK [23:43:34]MH_I2C_Read... [23:43:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 D0 F5 47 00 04 B5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 3B DE 02 00 F4 03 04 00 13 91 16 67 B6 04 01 00 00 82 54 66 38 5C 8B C3 64 [23:43:34]CommunicateWithHost err = 0 [23:43:34]CheckOFDResponse [23:43:34]1017 (14) - 77093643461234 [23:43:34]1041 (16) - 0000000000965340 [23:43:34]1040 (4) - 187963 [23:43:34]1012 (4) - 21.10.2024 17:36 [23:43:34]1206 (1) - 0 [23:43:34]OFD Sender: Remove packet 187963 [23:43:34]ProducePacketName [23:43:34]name=ofd_packets/00187963 [23:43:34]NVStorageDeleteData [23:43:34]OFD Sender: No OFD packet to send [23:43:35]*** Cut start [23:43:35]*** Partial cut [23:43:35]*** CUTSNS_PIN = 1 [23:43:35]*** CUTSNS_PIN = 0 [23:43:35]*** Brake cut motor [23:43:35]Read from MH i2c: 01 [23:43:35]MH_I2C_Read... [23:43:35]*** Stop cut motor [23:43:35]*** Cut end [23:43:35]Read from MH i2c: 01 07 00 [23:43:35]MH_I2C_Read... [23:43:35]Read from MH i2c: 01 07 00 C8 01 00 00 00 00 00 FF 0F DE [23:43:35]process_action close_receipt done [23:43:35]requested_data is exist [23:43:35]produce_requested_data [23:43:35]requested_item fm.sn is exist - process it [23:43:35]wFMCommunicate request_size=4 [23:43:35]MH_SAM_APDU [23:43:35]CAPDU: 80 11 00 00 [23:43:35]Write to MH i2c: E2 08 00 C9 01 80 11 00 00 00 00 00 00 44 [23:43:35]Write i2c OK [23:43:35]MH_I2C_Read... [23:43:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:43:36]Read from MH i2c: E2 [23:43:36]MH_I2C_Read... [23:43:36]Read from MH i2c: E2 17 00 [23:43:36]MH_I2C_Read... [23:43:36]Read from MH i2c: E2 17 00 C9 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 92 [23:43:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [23:43:36]wFMCommunicate OK [23:43:36]requested_item fd.num is exist - process it [23:43:36]SAM_PROTO_GetFieldsCounters [23:43:36]wFMCommunicate request_size=4 [23:43:36]MH_SAM_APDU [23:43:36]CAPDU: 80 13 00 00 [23:43:36]Write to MH i2c: E2 08 00 CA 01 80 13 00 00 00 00 00 00 47 [23:43:36]Write i2c OK [23:43:36]MH_I2C_Read... [23:43:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:43:36]Read from MH i2c: E2 [23:43:36]MH_I2C_Read... [23:43:36]Read from MH i2c: E2 62 00 [23:43:36]MH_I2C_Read... [23:43:36]Read from MH i2c: E2 62 00 CA 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 3B DE 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 AB 01 00 00 5E 04 04 00 AB 01 00 00 57 04 04 00 AC 01 00 00 19 04 04 00 00 00 00 00 90 00 3A [23:43:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 3B DE 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 AB 01 00 00 5E 04 04 00 AB 01 00 00 57 04 04 00 AC 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:43:36]wFMCommunicate OK [23:43:36]SAM_PROTO_GetFieldsCounters done [23:43:36]requested_item shift.num is exist - process it [23:43:36]requested_item shift.opened is exist - process it [23:43:36]req_shift_opened [23:43:36]FM_GetShiftState [23:43:36]SAM_PROTO_GetShiftState [23:43:36]wFMCommunicate request_size=4 [23:43:36]MH_SAM_APDU [23:43:36]CAPDU: 80 13 01 00 [23:43:36]Write to MH i2c: E2 08 00 CB 01 80 13 01 00 00 00 00 00 49 [23:43:36]Write i2c OK [23:43:36]MH_I2C_Read... [23:43:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:43:36]Read from MH i2c: E2 [23:43:36]MH_I2C_Read... [23:43:36]Read from MH i2c: E2 0E 00 [23:43:36]MH_I2C_Read... [23:43:36]Read from MH i2c: E2 0E 00 CB 01 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 A8 [23:43:36]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [23:43:36]wFMCommunicate OK [23:43:36]SAM_PROTO_GetShiftState done [23:43:36]FM_GetShiftState done [23:43:36]req_shift_opened done [23:43:36]requested_item shift.open_date is exist - process it [23:43:36]req_shift_open_date [23:43:36]req_shift_open_date done [23:43:36]produce_requested_data done [23:43:36]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187963,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [23:43:36]process_action_free close_receipt [23:43:36]json_value_free [23:43:36]json_value_free done [23:43:36]process_json_proto returns [23:43:36]Send response to host [23:43:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187963,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [23:43:36]free response buf [23:43:36]execute_script done [23:43:36]execute_script returns [23:43:36]free content buf [23:43:36]Sock 10.Close socket [23:43:36]Sock 10.Thread stoped [23:43:39]OFD Sender: No OFD packet to send [23:43:44]OFD Sender: No OFD packet to send [23:43:49]OFD Sender: No OFD packet to send [23:43:54]OFD Sender: No OFD packet to send [23:43:59]OFD Sender: No OFD packet to send [23:44:04]OFD Sender: No OFD packet to send [23:44:09]OFD Sender: No OFD packet to send [23:44:14]OFD Sender: No OFD packet to send [23:44:19]OFD Sender: No OFD packet to send [23:44:24]OFD Sender: No OFD packet to send [23:44:29]OFD Sender: No OFD packet to send [23:44:35]OFD Sender: No OFD packet to send [23:44:40]OFD Sender: No OFD packet to send [23:44:45]OFD Sender: No OFD packet to send [23:44:50]OFD Sender: No OFD packet to send [23:44:55]OFD Sender: No OFD packet to send [23:45:00]OFD Sender: No OFD packet to send [23:45:05]OFD Sender: No OFD packet to send [23:45:10]OFD Sender: No OFD packet to send [23:45:15]OFD Sender: No OFD packet to send [23:45:20]OFD Sender: No OFD packet to send [23:45:25]OFD Sender: No OFD packet to send [23:45:30]OFD Sender: No OFD packet to send [23:45:35]OFD Sender: No OFD packet to send [23:45:40]OFD Sender: No OFD packet to send [23:45:45]OFD Sender: No OFD packet to send [23:45:47]accept exits with 8 [23:45:47]New connection [23:45:47]New thread 3067198820 created [23:45:47]Thread 3067055460 joined [23:45:47]Waiting for new connection... [23:45:47] Sock 8.Parse request [23:45:47]Sock 8.Check first char [23:45:47]Sock 8.First char is OK [23:45:47]request: POST /json_proto HTTP/1.0 [23:45:47]Method: POST [23:45:47]URL: /json_proto [23:45:47]Method is POST - this is cgi request [23:45:47]url: /json_proto [23:45:47]query_string will be loaded in cgi processing [23:45:47]execute_cgi json_proto POST (null) [23:45:47]execute_cgi path=json_proto method=POST [23:45:47]POST find Content-Length [23:45:47]Host: 172.17.42.131:8080 [23:45:47]Content-Length: 772 [23:45:47]Content-Type: application/json [23:45:47] [23:45:47]POST finish read [23:45:47]Found Content-Length = 772 [23:45:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210017", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 9.070, "sum" : 700.20, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 700.20 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:45:47]execute_script... [23:45: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)210017", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 9.070, "sum" : 700.20, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 700.20 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:45:47]POST & json_proto [23:45:47]process_json_proto [23:45:47]json parsed OK: [23:45:47]protocol is kg_v1.0 [23:45:47]action value=close_receipt [23:45:47]process_action close_receipt [23:45:47]cmd_close_receipt [23:45:47]MH_GetDate [23:45:47]Write to MH i2c: F0 00 00 CC 01 BC [23:45:47]Write i2c OK [23:45:47]MH_I2C_Read... [23:45:47]Read from MH i2c: F0 [23:45:47]MH_I2C_Read... [23:45:47]Read from MH i2c: F0 09 00 [23:45:47]MH_I2C_Read... [23:45:47]Read from MH i2c: F0 09 00 CC 01 00 AC E7 16 67 A0 18 CA 66 BD [23:45:47]GetLastDocTimeStamp 1729554212 [23:45:47]current date 1729554348 [23:45:47]FM_GetShiftState [23:45:47]SAM_PROTO_GetShiftState [23:45:47]wFMCommunicate request_size=4 [23:45:47]MH_SAM_APDU [23:45:47]CAPDU: 80 13 01 00 [23:45:47]Write to MH i2c: E2 08 00 CD 01 80 13 01 00 00 00 00 00 4B [23:45:47]Write i2c OK [23:45:47]MH_I2C_Read... [23:45:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:45:47]Read from MH i2c: E2 [23:45:47]MH_I2C_Read... [23:45:47]Read from MH i2c: E2 0E 00 [23:45:47]MH_I2C_Read... [23:45:47]Read from MH i2c: E2 0E 00 CD 01 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 AA [23:45:47]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [23:45:47]wFMCommunicate OK [23:45:47]SAM_PROTO_GetShiftState done [23:45:47]FM_GetShiftState done [23:45:47]opened in 1729469754 [23:45:47]opened+sec_in_day 1729556154 [23:45:47]quantity*price = 70020 [23:45:47]sum+1 = 70021 [23:45:47]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 700.20 НСП 1% : 6.20 НДС 12% : 74.36 Наличными: 0.00 Безнал.: 700.20 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 428 21.10.2024 23:45 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000965340 ФД: 187964 ФПД: 68407845739280 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T234548&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187964&fm=68407845739280&tin=02508201610067®Number=0000000000100030&sum=70020 [23:45:48]StoreToDocumentArchive [23:45:48]shift 460 fd 187964 [23:45:48]save to /storage/0460/doc_00187964 [23:45:48]save last doc name /storage/0460/doc_00187964 to /storage/kkm_last_doc_name [23:45:48]save OK [23:45:48]Clear old archive folders... [23:45:48]ProcessDocumentItem done err = 0, tmpTLVsize=257 [23:45:48]tlvbuf is 01B88A20 [23:45:48]SAM_PROTO_ClearQueue [23:45:48]wFMCommunicate request_size=4 [23:45:48]MH_SAM_APDU [23:45:48]CAPDU: 80 09 00 00 [23:45:48]Write to MH i2c: E2 08 00 DA 01 80 09 00 00 00 00 00 00 4D [23:45:48]Write i2c OK [23:45:48]MH_I2C_Read... [23:45:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:45:48]Read from MH i2c: E2 [23:45:48]MH_I2C_Read... [23:45:48]Read from MH i2c: E2 03 00 [23:45:48]MH_I2C_Read... [23:45:48]Read from MH i2c: E2 03 00 DA 01 00 90 00 4F [23:45:48]RAPDU: 90 00 [23:45:48]wFMCommunicate OK [23:45:48]SAM_PROTO_ClearQueue done [23:45:48]KKMCreateOFDPacket [23:45:48]OFDProtocolAddRootSTLVToBuf [23:45:48]FM_MakeSignedData [23:45:48]FM_MakeSignedData [23:45:48]SAM_PROTO_SignData [23:45:48]wFMCommunicate request_size=4 [23:45:48]MH_SAM_APDU [23:45:48]CAPDU: 80 0D 01 02 [23:45:48]Write to MH i2c: E2 08 00 DB 01 80 0D 01 02 00 00 00 00 55 [23:45:48]Write i2c OK [23:45:48]MH_I2C_Read... [23:45:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:45:48]Read from MH i2c: E2 [23:45:48]MH_I2C_Read... [23:45:48]Read from MH i2c: E2 03 00 [23:45:48]MH_I2C_Read... [23:45:48]Read from MH i2c: E2 03 00 DB 01 00 90 00 50 [23:45:48]RAPDU: 90 00 [23:45:48]wFMCommunicate OK [23:45:48]wFMCommunicate request_size=255 [23:45:48]MH_SAM_APDU [23:45:48]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 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 6E 23 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 84 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 84 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0C 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 84 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 AC 01 00 00 F4 03 04 00 AC E7 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 3C DE 02 [23:45:48]Write to MH i2c: E2 02 01 DC 01 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 6E 23 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 84 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 84 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0C 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 84 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 AC 01 00 00 F4 03 04 00 AC E7 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 3C DE 02 00 00 A6 [23:45:48]Write i2c OK [23:45:48]MH_I2C_Read... [23:45:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:45:48]Read from MH i2c: E2 [23:45:48]MH_I2C_Read... [23:45:48]Read from MH i2c: E2 03 00 [23:45:48]MH_I2C_Read... [23:45:48]Read from MH i2c: E2 03 00 DC 01 00 90 00 51 [23:45:48]RAPDU: 90 00 [23:45:48]wFMCommunicate OK [23:45:48]wFMCommunicate request_size=16 [23:45:48]MH_SAM_APDU [23:45:48]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 3E 37 71 58 5B 10 [23:45:48]Write to MH i2c: E2 13 00 DD 01 80 0D 02 02 0B 00 00 35 04 06 00 3E 37 71 58 5B 10 00 00 56 [23:45:48]Write i2c OK [23:45:48]MH_I2C_Read... [23:45:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:45:48]Read from MH i2c: E2 [23:45:48]MH_I2C_Read... [23:45:48]Read from MH i2c: E2 03 00 [23:45:48]MH_I2C_Read... [23:45:48]Read from MH i2c: E2 03 00 DD 01 00 90 00 52 [23:45:48]RAPDU: 90 00 [23:45:48]wFMCommunicate OK [23:45:48]wFMCommunicate request_size=4 [23:45:48]MH_SAM_APDU [23:45:48]CAPDU: 80 0D 03 02 [23:45:48]Write to MH i2c: E2 08 00 DE 01 80 0D 03 02 00 00 00 00 5A [23:45:48]Write i2c OK [23:45:48]MH_I2C_Read... [23:45:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:45:48]Read from MH i2c: E2 [23:45:48]MH_I2C_Read... [23:45:48]Read from MH i2c: E2 0B 00 [23:45:48]MH_I2C_Read... [23:45:48]Read from MH i2c: E2 0B 00 DE 01 00 1A 1A 2F 6E 18 42 D6 FD 90 00 59 [23:45:48]RAPDU: 1A 1A 2F 6E 18 42 D6 FD 90 00 [23:45:48]wFMCommunicate OK [23:45:48]SAM_PROTO_SignData done [23:45:48]FM_MakeSignedData done [23:45:48]CreateOFDProtocolMessage [23:45:48]wFMCommunicate request_size=4 [23:45:48]MH_SAM_APDU [23:45:48]CAPDU: 80 11 00 00 [23:45:48]Write to MH i2c: E2 08 00 DF 01 80 11 00 00 00 00 00 00 5A [23:45:48]Write i2c OK [23:45:48]MH_I2C_Read... [23:45:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:45:49]Read from MH i2c: E2 [23:45:49]MH_I2C_Read... [23:45:49]Read from MH i2c: E2 17 00 [23:45:49]MH_I2C_Read... [23:45:49]Read from MH i2c: E2 17 00 DF 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 A8 [23:45:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [23:45:49]wFMCommunicate OK [23:45:49]CreateOFDProtocolMessage done [23:45:49]OFDSenderStorePacket 187964 [23:45:49]StoreOFDPacket docnum=187964 [23:45:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 2A EA 0D 01 91 EF 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 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 6E 23 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 84 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 84 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0C 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 84 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 AC 01 00 00 F4 03 04 00 AC E7 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 3C DE 02 00 35 04 06 00 3E 37 71 58 5B 10 1A 1A 2F 6E 18 42 D6 FD [23:45:49]CheckFolder [23:45:49]dirname=/storage/ofd_packets [23:45:49]CheckFolder done [23:45:49]ProducePacketName [23:45:49]name=ofd_packets/00187964 [23:45:49]NVStorageSaveData ofd_packets/00187964 [23:45:49]File name is /storage/ofd_packets/00187964 [23:45:49]Write 307 bytes [23:45:49]NVStorageSaveData done [23:45:49]OFDSenderStorePacket done [23:45:49]KKMCreateOFDPacket done [23:45:49]NVStorageSaveData kkm_last_timestamp [23:45:49]File name is /storage/kkm_last_timestamp [23:45:49]Write 4 bytes [23:45:49]NVStorageSaveData done [23:45:49]ExternCall_PrintAddStr [23:45:49]wPrintStart [23:45:49]Write to MH i2c: 01 00 00 E0 01 E1 [23:45:49]Write i2c OK [23:45:49]MH_I2C_Read... [23:45:49]Read from MH i2c: 01 [23:45:49]MH_I2C_Read... [23:45:49]Read from MH i2c: 01 07 00 [23:45:49]MH_I2C_Read... [23:45:49]Read from MH i2c: 01 07 00 E0 01 00 00 00 00 00 FF 0F F6 [23:45:49]RasterBufferAndPrint [23:45:49]line Счет N : (1)210017 [23:45:49]line ИНН: 02508201610067 [23:45:49]line Контрольно-Кассовый Чек [23:45:49]line ПРОДАЖА [23:45:49]line ТРК (МРК, ГНК) : 11 [23:45:49]line Товар: 2710194210 [23:45:49]line D-ENERGY ДТ-К-5 [23:45:49]line 9.070 * 77.20 [23:45:49]line = 700.20 [23:45:49]line НДС 12% НСП 1% [23:45:49]line > о реализуемом товаре [23:45:49]line ИТОГО: 700.20 [23:45:49]line НСП 1% : 6.20 [23:45:49]line НДС 12% : 74.36 [23:45:49]line Наличными: 0.00 [23:45:49]line Безнал.: 700.20 [23:45:49]line Место: АЗС № 86 "Партнер Нефть" [23:45:49]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [23:45:49]line СНО: Общий режим [23:45:49]line Чек 428 21.10.2024 23:45 [23:45:49]line Смена: 460 ФФД: 1.0 [23:45:49]line ЗНМ: 0300000155 [23:45:49]line РНМ: 0000000000100030 [23:45:49]line Версия ККМ: 001 [23:45:49]line Платежная система: Mbank [23:45:49]line ФМ: 0000000000965340 [23:45:49]line ФД: 187964 [23:45:49]line ФПД: 68407845739280 [23:45:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T234548&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187964&fm=68407845739280&tin=02508201610067®Number=0000000000100030&sum=70020 [23:45:49]written 0, free lines is 4095 [23:45:49]OFD Sender: Processing packet 187964 [packets to send 1062, broken 1061] [23:45:49]ProducePacketName [23:45:49]name=ofd_packets/00187964 [23:45:49]OFD Sender: To server: pG, [23:45:49]CommunicateWithHost lk.salyk.kg:30040 [23:45:49]ConnectInit lk.salyk.kg [23:45:49]Connected sock=10 [23:45:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 2A EA 0D 01 91 EF 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 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 6E 23 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 84 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 84 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0C 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 84 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 AC 01 00 00 F4 03 04 00 AC E7 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 3C DE 02 00 35 04 06 00 3E 37 71 58 5B 10 1A 1A 2F 6E 18 42 D6 FD [23:45:49]Write to MH i2c: 01 00 00 09 02 0B [23:45:49]Write i2c OK [23:45:49]MH_I2C_Read... [23:45:49]Read from MH i2c: 01 [23:45:49]MH_I2C_Read... [23:45:49]Read from MH i2c: 01 07 00 [23:45:49]MH_I2C_Read... [23:45:49]Read from MH i2c: 01 07 00 09 02 00 00 00 00 00 8A 0C A8 [23:45:49]RasterBufferAndPrint [23:45:49]line [23:45:49]line [23:45:49]line [23:45:49]line [23:45:49]line [23:45:49]written 0, free lines is 3213 [23:45:49]MH_Cut [23:45:49]Write to MH i2c: D1 01 00 10 02 01 E4 [23:45:49]Write i2c OK [23:45:49]MH_I2C_Read... [23:45:49]Read from MH i2c: D1 [23:45:49]MH_I2C_Read... [23:45:49]Read from MH i2c: D1 01 00 [23:45:49]MH_I2C_Read... [23:45:49]Read from MH i2c: D1 01 00 10 02 00 E3 [23:45:49]Write to MH i2c: 01 00 00 11 02 13 [23:45:49]Write i2c OK [23:45:49]MH_I2C_Read... [23:45:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 4D 7C 47 00 2C 3B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 3C DE 02 00 F4 03 04 00 9A 91 16 67 B6 04 01 00 00 2B 1A 6F 0B 97 77 A4 FD [23:45:49]CommunicateWithHost err = 0 [23:45:49]CheckOFDResponse [23:45:49]1017 (14) - 77093643461234 [23:45:49]1041 (16) - 0000000000965340 [23:45:49]1040 (4) - 187964 [23:45:49]1012 (4) - 21.10.2024 17:38 [23:45:49]1206 (1) - 0 [23:45:49]OFD Sender: Remove packet 187964 [23:45:49]ProducePacketName [23:45:49]name=ofd_packets/00187964 [23:45:49]NVStorageDeleteData [23:45:50]OFD Sender: No OFD packet to send [23:45:50]*** Cut start [23:45:50]*** Partial cut [23:45:50]*** CUTSNS_PIN = 1 [23:45:50]*** CUTSNS_PIN = 0 [23:45:51]*** Brake cut motor [23:45:51]Read from MH i2c: 01 [23:45:51]MH_I2C_Read... [23:45:51]*** Stop cut motor [23:45:51]*** Cut end [23:45:51]Read from MH i2c: 01 07 00 [23:45:51]MH_I2C_Read... [23:45:51]Read from MH i2c: 01 07 00 11 02 00 00 00 00 00 FF 0F 28 [23:45:51]process_action close_receipt done [23:45:51]requested_data is exist [23:45:51]produce_requested_data [23:45:51]requested_item fm.sn is exist - process it [23:45:51]wFMCommunicate request_size=4 [23:45:51]MH_SAM_APDU [23:45:51]CAPDU: 80 11 00 00 [23:45:51]Write to MH i2c: E2 08 00 12 02 80 11 00 00 00 00 00 00 8E [23:45:51]Write i2c OK [23:45:51]MH_I2C_Read... [23:45:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:45:51]Read from MH i2c: E2 [23:45:51]MH_I2C_Read... [23:45:51]Read from MH i2c: E2 17 00 [23:45:51]MH_I2C_Read... [23:45:51]Read from MH i2c: E2 17 00 12 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 DC [23:45:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [23:45:51]wFMCommunicate OK [23:45:51]requested_item fd.num is exist - process it [23:45:51]SAM_PROTO_GetFieldsCounters [23:45:51]wFMCommunicate request_size=4 [23:45:51]MH_SAM_APDU [23:45:51]CAPDU: 80 13 00 00 [23:45:51]Write to MH i2c: E2 08 00 13 02 80 13 00 00 00 00 00 00 91 [23:45:51]Write i2c OK [23:45:51]MH_I2C_Read... [23:45:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:45:51]Read from MH i2c: E2 [23:45:51]MH_I2C_Read... [23:45:51]Read from MH i2c: E2 62 00 [23:45:51]MH_I2C_Read... [23:45:51]Read from MH i2c: E2 62 00 13 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 3C DE 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 AC 01 00 00 5E 04 04 00 AC 01 00 00 57 04 04 00 AD 01 00 00 19 04 04 00 00 00 00 00 90 00 88 [23:45:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 3C DE 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 AC 01 00 00 5E 04 04 00 AC 01 00 00 57 04 04 00 AD 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:45:51]wFMCommunicate OK [23:45:51]SAM_PROTO_GetFieldsCounters done [23:45:51]requested_item shift.num is exist - process it [23:45:51]requested_item shift.opened is exist - process it [23:45:51]req_shift_opened [23:45:51]FM_GetShiftState [23:45:51]SAM_PROTO_GetShiftState [23:45:51]wFMCommunicate request_size=4 [23:45:51]MH_SAM_APDU [23:45:51]CAPDU: 80 13 01 00 [23:45:51]Write to MH i2c: E2 08 00 14 02 80 13 01 00 00 00 00 00 93 [23:45:51]Write i2c OK [23:45:51]MH_I2C_Read... [23:45:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:45:51]Read from MH i2c: E2 [23:45:51]MH_I2C_Read... [23:45:51]Read from MH i2c: E2 0E 00 [23:45:51]MH_I2C_Read... [23:45:51]Read from MH i2c: E2 0E 00 14 02 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 F2 [23:45:51]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [23:45:51]wFMCommunicate OK [23:45:51]SAM_PROTO_GetShiftState done [23:45:51]FM_GetShiftState done [23:45:51]req_shift_opened done [23:45:51]requested_item shift.open_date is exist - process it [23:45:51]req_shift_open_date [23:45:51]req_shift_open_date done [23:45:51]produce_requested_data done [23:45:51]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187964,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [23:45:51]process_action_free close_receipt [23:45:51]json_value_free [23:45:51]json_value_free done [23:45:51]process_json_proto returns [23:45:51]Send response to host [23:45:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187964,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [23:45:51]free response buf [23:45:51]execute_script done [23:45:51]execute_script returns [23:45:51]free content buf [23:45:51]Sock 8.Close socket [23:45:51]Sock 8.Thread stoped [23:45:55]OFD Sender: No OFD packet to send [23:46:00]OFD Sender: No OFD packet to send [23:46:05]OFD Sender: No OFD packet to send [23:46:10]OFD Sender: No OFD packet to send [23:46:15]OFD Sender: No OFD packet to send [23:46:20]OFD Sender: No OFD packet to send [23:46:25]OFD Sender: No OFD packet to send [23:46:30]OFD Sender: No OFD packet to send [23:46:35]OFD Sender: No OFD packet to send [23:46:40]OFD Sender: No OFD packet to send [23:46:45]OFD Sender: No OFD packet to send [23:46:50]OFD Sender: No OFD packet to send [23:46:55]OFD Sender: No OFD packet to send [23:47:00]OFD Sender: No OFD packet to send [23:47:05]OFD Sender: No OFD packet to send [23:47:10]OFD Sender: No OFD packet to send [23:47:15]OFD Sender: No OFD packet to send [23:47:20]OFD Sender: No OFD packet to send [23:47:25]OFD Sender: No OFD packet to send [23:47:30]OFD Sender: No OFD packet to send [23:47:35]OFD Sender: No OFD packet to send [23:47:40]OFD Sender: No OFD packet to send [23:47:45]OFD Sender: No OFD packet to send [23:47:50]OFD Sender: No OFD packet to send [23:47:55]OFD Sender: No OFD packet to send [23:48:00]OFD Sender: No OFD packet to send [23:48:05]OFD Sender: No OFD packet to send [23:48:10]OFD Sender: No OFD packet to send [23:48:15]OFD Sender: No OFD packet to send [23:48:20]OFD Sender: No OFD packet to send [23:48:25]OFD Sender: No OFD packet to send [23:48:30]OFD Sender: No OFD packet to send [23:48:35]OFD Sender: No OFD packet to send [23:48:40]OFD Sender: No OFD packet to send [23:48:45]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:03]accept exits with 9 [23:49:03]New connection [23:49:03]New thread 3067055460 created [23:49:03]Thread 3067198820 joined [23:49:03]Waiting for new connection... [23:49:03] Sock 9.Parse request [23:49:03]Sock 9.Check first char [23:49:03]Sock 9.First char is OK [23:49:03]request: POST /json_proto HTTP/1.0 [23:49:03]Method: POST [23:49:03]URL: /json_proto [23:49:03]Method is POST - this is cgi request [23:49:03]url: /json_proto [23:49:03]query_string will be loaded in cgi processing [23:49:03]execute_cgi json_proto POST (null) [23:49:03]execute_cgi path=json_proto method=POST [23:49:03]POST find Content-Length [23:49:03]Host: 172.17.42.131:8080 [23:49:03]Content-Length: 677 [23:49:03]Content-Type: application/json [23:49:03] [23:49:03]POST finish read [23:49:03]Found Content-Length = 677 [23:49:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210018", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:49:03]execute_script... [23:49: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)210018", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:49:03]POST & json_proto [23:49:03]process_json_proto [23:49:03]json parsed OK: [23:49:03]protocol is kg_v1.0 [23:49:03]action value=close_receipt [23:49:03]process_action close_receipt [23:49:03]cmd_close_receipt [23:49:03]MH_GetDate [23:49:03]Write to MH i2c: F0 00 00 15 02 06 [23:49:03]Write i2c OK [23:49:03]MH_I2C_Read... [23:49:03]Read from MH i2c: F0 [23:49:03]MH_I2C_Read... [23:49:03]Read from MH i2c: F0 09 00 [23:49:03]MH_I2C_Read... [23:49:03]Read from MH i2c: F0 09 00 15 02 00 70 E8 16 67 A0 18 CA 66 CC [23:49:03]GetLastDocTimeStamp 1729554348 [23:49:03]current date 1729554544 [23:49:03]FM_GetShiftState [23:49:03]SAM_PROTO_GetShiftState [23:49:03]wFMCommunicate request_size=4 [23:49:03]MH_SAM_APDU [23:49:03]CAPDU: 80 13 01 00 [23:49:03]Write to MH i2c: E2 08 00 16 02 80 13 01 00 00 00 00 00 95 [23:49:03]Write i2c OK [23:49:03]MH_I2C_Read... [23:49:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:49:03]Read from MH i2c: E2 [23:49:03]MH_I2C_Read... [23:49:03]Read from MH i2c: E2 0E 00 [23:49:03]MH_I2C_Read... [23:49:03]Read from MH i2c: E2 0E 00 16 02 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 F4 [23:49:03]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [23:49:03]wFMCommunicate OK [23:49:03]SAM_PROTO_GetShiftState done [23:49:03]FM_GetShiftState done [23:49:03]opened in 1729469754 [23:49:03]opened+sec_in_day 1729556154 [23:49:03]quantity*price = 60009 [23:49:03]sum+1 = 60010 [23:49:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 429 21.10.2024 23:49 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 187965 ФПД: 207598045525110 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T234904&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187965&fm=207598045525110&tin=02508201610067®Number=0000000000100030&sum=60000 [23:49:04]StoreToDocumentArchive [23:49:04]shift 460 fd 187965 [23:49:04]save to /storage/0460/doc_00187965 [23:49:04]save last doc name /storage/0460/doc_00187965 to /storage/kkm_last_doc_name [23:49:04]save OK [23:49:04]Clear old archive folders... [23:49:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:49:04]tlvbuf is 01BF53D0 [23:49:04]SAM_PROTO_ClearQueue [23:49:04]wFMCommunicate request_size=4 [23:49:04]MH_SAM_APDU [23:49:04]CAPDU: 80 09 00 00 [23:49:04]Write to MH i2c: E2 08 00 23 02 80 09 00 00 00 00 00 00 97 [23:49:04]Write i2c OK [23:49:04]MH_I2C_Read... [23:49:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:49:04]Read from MH i2c: E2 [23:49:04]MH_I2C_Read... [23:49:04]Read from MH i2c: E2 03 00 [23:49:04]MH_I2C_Read... [23:49:04]Read from MH i2c: E2 03 00 23 02 00 90 00 99 [23:49:04]RAPDU: 90 00 [23:49:04]wFMCommunicate OK [23:49:04]SAM_PROTO_ClearQueue done [23:49:04]KKMCreateOFDPacket [23:49:04]OFDProtocolAddRootSTLVToBuf [23:49:04]FM_MakeSignedData [23:49:04]FM_MakeSignedData [23:49:04]SAM_PROTO_SignData [23:49:04]wFMCommunicate request_size=4 [23:49:04]MH_SAM_APDU [23:49:04]CAPDU: 80 0D 01 02 [23:49:04]Write to MH i2c: E2 08 00 24 02 80 0D 01 02 00 00 00 00 9F [23:49:04]Write i2c OK [23:49:04]MH_I2C_Read... [23:49:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:49:04]Read from MH i2c: E2 [23:49:04]MH_I2C_Read... [23:49:04]Read from MH i2c: E2 03 00 [23:49:04]MH_I2C_Read... [23:49:04]Read from MH i2c: E2 03 00 24 02 00 90 00 9A [23:49:04]RAPDU: 90 00 [23:49:04]wFMCommunicate OK [23:49:04]wFMCommunicate request_size=255 [23:49:04]MH_SAM_APDU [23:49: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 33 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 AD 01 00 00 F4 03 04 00 70 E8 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 3D DE 02 00 35 04 06 00 BC [23:49:04]Write to MH i2c: E2 02 01 25 02 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 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 AD 01 00 00 F4 03 04 00 70 E8 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 3D DE 02 00 35 04 06 00 BC 00 00 18 [23:49:04]Write i2c OK [23:49:04]MH_I2C_Read... [23:49:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:49:04]Read from MH i2c: E2 [23:49:04]MH_I2C_Read... [23:49:04]Read from MH i2c: E2 03 00 [23:49:04]MH_I2C_Read... [23:49:04]Read from MH i2c: E2 03 00 25 02 00 90 00 9B [23:49:04]RAPDU: 90 00 [23:49:04]wFMCommunicate OK [23:49:04]wFMCommunicate request_size=10 [23:49:04]MH_SAM_APDU [23:49:04]CAPDU: 80 0D 02 02 05 CF 2F C2 74 76 [23:49:04]Write to MH i2c: E2 0D 00 26 02 80 0D 02 02 05 00 CF 2F C2 74 76 00 00 56 [23:49:04]Write i2c OK [23:49:04]MH_I2C_Read... [23:49:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:49:04]Read from MH i2c: E2 [23:49:04]MH_I2C_Read... [23:49:04]Read from MH i2c: E2 03 00 [23:49:04]MH_I2C_Read... [23:49:04]Read from MH i2c: E2 03 00 26 02 00 90 00 9C [23:49:04]RAPDU: 90 00 [23:49:04]wFMCommunicate OK [23:49:04]wFMCommunicate request_size=4 [23:49:04]MH_SAM_APDU [23:49:04]CAPDU: 80 0D 03 02 [23:49:04]Write to MH i2c: E2 08 00 27 02 80 0D 03 02 00 00 00 00 A4 [23:49:04]Write i2c OK [23:49:04]MH_I2C_Read... [23:49:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:49:04]Read from MH i2c: E2 [23:49:04]MH_I2C_Read... [23:49:04]Read from MH i2c: E2 0B 00 [23:49:04]MH_I2C_Read... [23:49:04]Read from MH i2c: E2 0B 00 27 02 00 EB 25 10 9C CD E3 8E 70 90 00 0F [23:49:04]RAPDU: EB 25 10 9C CD E3 8E 70 90 00 [23:49:04]wFMCommunicate OK [23:49:04]SAM_PROTO_SignData done [23:49:04]FM_MakeSignedData done [23:49:04]CreateOFDProtocolMessage [23:49:04]wFMCommunicate request_size=4 [23:49:04]MH_SAM_APDU [23:49:04]CAPDU: 80 11 00 00 [23:49:04]Write to MH i2c: E2 08 00 28 02 80 11 00 00 00 00 00 00 A4 [23:49:04]Write i2c OK [23:49:04]MH_I2C_Read... [23:49:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:49:04]Read from MH i2c: E2 [23:49:04]MH_I2C_Read... [23:49:04]Read from MH i2c: E2 17 00 [23:49:04]MH_I2C_Read... [23:49:04]Read from MH i2c: E2 17 00 28 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 F2 [23:49:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [23:49:04]wFMCommunicate OK [23:49:04]CreateOFDProtocolMessage done [23:49:04]OFDSenderStorePacket 187965 [23:49:04]StoreOFDPacket docnum=187965 [23:49:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 A0 91 07 01 AB 4E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 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 AD 01 00 00 F4 03 04 00 70 E8 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 3D DE 02 00 35 04 06 00 BC CF 2F C2 74 76 EB 25 10 9C CD E3 8E 70 [23:49:04]CheckFolder [23:49:04]dirname=/storage/ofd_packets [23:49:04]CheckFolder done [23:49:04]ProducePacketName [23:49:04]name=ofd_packets/00187965 [23:49:04]NVStorageSaveData ofd_packets/00187965 [23:49:04]File name is /storage/ofd_packets/00187965 [23:49:04]Write 301 bytes [23:49:04]NVStorageSaveData done [23:49:04]OFDSenderStorePacket done [23:49:04]KKMCreateOFDPacket done [23:49:04]NVStorageSaveData kkm_last_timestamp [23:49:04]File name is /storage/kkm_last_timestamp [23:49:04]Write 4 bytes [23:49:04]NVStorageSaveData done [23:49:04]ExternCall_PrintAddStr [23:49:04]wPrintStart [23:49:04]Write to MH i2c: 01 00 00 29 02 2B [23:49:04]Write i2c OK [23:49:04]MH_I2C_Read... [23:49:04]Read from MH i2c: 01 [23:49:04]MH_I2C_Read... [23:49:04]Read from MH i2c: 01 07 00 [23:49:04]MH_I2C_Read... [23:49:04]Read from MH i2c: 01 07 00 29 02 00 00 00 00 00 FF 0F 40 [23:49:04]RasterBufferAndPrint [23:49:04]line Счет N : (1)210018 [23:49:04]line ИНН: 02508201610067 [23:49:04]line Контрольно-Кассовый Чек [23:49:04]line ПРОДАЖА [23:49:04]line ТРК (МРК, ГНК) : 32 [23:49:04]line Товар: 2710124130 [23:49:04]line Аи-92-К-3 [23:49:04]line 8.970 * 66.90 [23:49:04]line = 600.09 [23:49:04]line НДС 12% НСП 1% [23:49:04]line > о реализуемом товаре [23:49:04]line ОКРУГЛЕНИЕ: -0.09 [23:49:04]line ИТОГО: 600.00 [23:49:04]line Внесено: 600.00 [23:49:04]line СДАЧА: 0.00 [23:49:04]line НСП 1% : 5.31 [23:49:04]line НДС 12% : 63.73 [23:49:04]line Наличными: 600.00 [23:49:04]line Безнал.: 0.00 [23:49:04]line Место: АЗС № 86 "Партнер Нефть" [23:49:04]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [23:49:04]line СНО: Общий режим [23:49:04]line Чек 429 21.10.2024 23:49 [23:49:04]line Смена: 460 ФФД: 1.0 [23:49:04]line ЗНМ: 0300000155 [23:49:04]line РНМ: 0000000000100030 [23:49:04]line Версия ККМ: 001 [23:49:04]line ФМ: 0000000000965340 [23:49:04]line ФД: 187965 [23:49:04]line ФПД: 207598045525110 [23:49:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T234904&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187965&fm=207598045525110&tin=02508201610067®Number=0000000000100030&sum=60000 [23:49:05]OFD Sender: Processing packet 187965 [packets to send 1062, broken 1061] [23:49:05]ProducePacketName [23:49:05]name=ofd_packets/00187965 [23:49:05]OFD Sender: To server: pG, [23:49:05]CommunicateWithHost lk.salyk.kg:30040 [23:49:05]ConnectInit lk.salyk.kg [23:49:05]written 0, free lines is 4095 [23:49:05]Connected sock=10 [23:49:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 A0 91 07 01 AB 4E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 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 AD 01 00 00 F4 03 04 00 70 E8 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 3D DE 02 00 35 04 06 00 BC CF 2F C2 74 76 EB 25 10 9C CD E3 8E 70 [23:49:05]Write to MH i2c: 01 00 00 54 02 56 [23:49:05]Write i2c OK [23:49:05]MH_I2C_Read... [23:49:05]Read from MH i2c: 01 [23:49:05]MH_I2C_Read... [23:49:05]Read from MH i2c: 01 07 00 [23:49:05]MH_I2C_Read... [23:49:05]Read from MH i2c: 01 07 00 54 02 00 00 00 00 00 5D 0C C6 [23:49:05]RasterBufferAndPrint [23:49:05]line [23:49:05]line [23:49:05]line [23:49:05]line [23:49:05]line [23:49:05]written 0, free lines is 3168 [23:49:05]MH_Cut [23:49:05]Write to MH i2c: D1 01 00 5B 02 01 2F [23:49:05]Write i2c OK [23:49:05]MH_I2C_Read... [23:49:05]Read from MH i2c: D1 [23:49:05]MH_I2C_Read... [23:49:05]Read from MH i2c: D1 01 00 [23:49:05]MH_I2C_Read... [23:49:05]Read from MH i2c: D1 01 00 5B 02 00 2E [23:49:05]Write to MH i2c: 01 00 00 5C 02 5E [23:49:05]Write i2c OK [23:49:05]MH_I2C_Read... [23:49:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 54 DB 47 00 75 86 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 3D DE 02 00 F4 03 04 00 5E 92 16 67 B6 04 01 00 00 C5 BF 35 D1 E9 B0 F2 3E [23:49:05]CommunicateWithHost err = 0 [23:49:05]CheckOFDResponse [23:49:05]1017 (14) - 77093643461234 [23:49:05]1041 (16) - 0000000000965340 [23:49:05]1040 (4) - 187965 [23:49:05]1012 (4) - 21.10.2024 17:41 [23:49:05]1206 (1) - 0 [23:49:05]OFD Sender: Remove packet 187965 [23:49:05]ProducePacketName [23:49:05]name=ofd_packets/00187965 [23:49:05]NVStorageDeleteData [23:49:06]OFD Sender: No OFD packet to send [23:49:06]*** Cut start [23:49:06]*** Partial cut [23:49:06]*** CUTSNS_PIN = 1 [23:49:07]*** CUTSNS_PIN = 0 [23:49:07]*** Brake cut motor [23:49:07]Read from MH i2c: 01 [23:49:07]MH_I2C_Read... [23:49:07]*** Stop cut motor [23:49:07]*** Cut end [23:49:07]Read from MH i2c: 01 07 00 [23:49:07]MH_I2C_Read... [23:49:07]Read from MH i2c: 01 07 00 5C 02 00 00 00 00 00 FF 0F 73 [23:49:07]process_action close_receipt done [23:49:07]requested_data is exist [23:49:07]produce_requested_data [23:49:07]requested_item fm.sn is exist - process it [23:49:07]wFMCommunicate request_size=4 [23:49:07]MH_SAM_APDU [23:49:07]CAPDU: 80 11 00 00 [23:49:07]Write to MH i2c: E2 08 00 5D 02 80 11 00 00 00 00 00 00 D9 [23:49:07]Write i2c OK [23:49:07]MH_I2C_Read... [23:49:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:49:07]Read from MH i2c: E2 [23:49:07]MH_I2C_Read... [23:49:07]Read from MH i2c: E2 17 00 [23:49:07]MH_I2C_Read... [23:49:07]Read from MH i2c: E2 17 00 5D 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 27 [23:49:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [23:49:07]wFMCommunicate OK [23:49:07]requested_item fd.num is exist - process it [23:49:07]SAM_PROTO_GetFieldsCounters [23:49:07]wFMCommunicate request_size=4 [23:49:07]MH_SAM_APDU [23:49:07]CAPDU: 80 13 00 00 [23:49:07]Write to MH i2c: E2 08 00 5E 02 80 13 00 00 00 00 00 00 DC [23:49:07]Write i2c OK [23:49:07]MH_I2C_Read... [23:49:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:49:07]Read from MH i2c: E2 [23:49:07]MH_I2C_Read... [23:49:07]Read from MH i2c: E2 62 00 [23:49:07]MH_I2C_Read... [23:49:07]Read from MH i2c: E2 62 00 5E 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 3D DE 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 AD 01 00 00 5E 04 04 00 AD 01 00 00 57 04 04 00 AE 01 00 00 19 04 04 00 00 00 00 00 90 00 D7 [23:49:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 3D DE 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 AD 01 00 00 5E 04 04 00 AD 01 00 00 57 04 04 00 AE 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:49:07]wFMCommunicate OK [23:49:07]SAM_PROTO_GetFieldsCounters done [23:49:07]requested_item shift.num is exist - process it [23:49:07]requested_item shift.opened is exist - process it [23:49:07]req_shift_opened [23:49:07]FM_GetShiftState [23:49:07]SAM_PROTO_GetShiftState [23:49:07]wFMCommunicate request_size=4 [23:49:07]MH_SAM_APDU [23:49:07]CAPDU: 80 13 01 00 [23:49:07]Write to MH i2c: E2 08 00 5F 02 80 13 01 00 00 00 00 00 DE [23:49:07]Write i2c OK [23:49:07]MH_I2C_Read... [23:49:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:49:07]Read from MH i2c: E2 [23:49:07]MH_I2C_Read... [23:49:07]Read from MH i2c: E2 0E 00 [23:49:07]MH_I2C_Read... [23:49:07]Read from MH i2c: E2 0E 00 5F 02 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 3D [23:49:07]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [23:49:07]wFMCommunicate OK [23:49:07]SAM_PROTO_GetShiftState done [23:49:07]FM_GetShiftState done [23:49:07]req_shift_opened done [23:49:07]requested_item shift.open_date is exist - process it [23:49:07]req_shift_open_date [23:49:07]req_shift_open_date done [23:49:07]produce_requested_data done [23:49:07]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187965,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [23:49:07]process_action_free close_receipt [23:49:07]json_value_free [23:49:07]json_value_free done [23:49:07]process_json_proto returns [23:49:07]Send response to host [23:49:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187965,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [23:49:07]free response buf [23:49:07]execute_script done [23:49:07]execute_script returns [23:49:07]free content buf [23:49:07]Sock 9.Close socket [23:49:07]Sock 9.Thread stoped [23:49:11]OFD Sender: No OFD packet to send [23:49:15]accept exits with 8 [23:49:15]New connection [23:49:15]New thread 3067198820 created [23:49:15]Thread 3067055460 joined [23:49:15]Waiting for new connection... [23:49:15] Sock 8.Parse request [23:49:15]Sock 8.Check first char [23:49:15]Sock 8.First char is OK [23:49:15]request: POST /json_proto HTTP/1.0 [23:49:15]Method: POST [23:49:15]URL: /json_proto [23:49:15]Method is POST - this is cgi request [23:49:15]url: /json_proto [23:49:15]query_string will be loaded in cgi processing [23:49:15]execute_cgi json_proto POST (null) [23:49:15]execute_cgi path=json_proto method=POST [23:49:15]POST find Content-Length [23:49:15]Host: 172.17.42.131:8080 [23:49:15]Content-Length: 678 [23:49:15]Content-Type: application/json [23:49:15] [23:49:15]POST finish read [23:49:15]Found Content-Length = 678 [23:49:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210019", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 14.210, "sum" : 950.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 950.00, "total" : 950.00, "payments": [ { "type": 0, "sum" : 950.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:49:15]execute_script... [23:49: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)210019", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 14.210, "sum" : 950.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 950.00, "total" : 950.00, "payments": [ { "type": 0, "sum" : 950.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:49:15]POST & json_proto [23:49:15]process_json_proto [23:49:15]json parsed OK: [23:49:15]protocol is kg_v1.0 [23:49:15]action value=close_receipt [23:49:15]process_action close_receipt [23:49:15]cmd_close_receipt [23:49:15]MH_GetDate [23:49:15]Write to MH i2c: F0 00 00 60 02 51 [23:49:15]Write i2c OK [23:49:15]MH_I2C_Read... [23:49:15]Read from MH i2c: F0 [23:49:15]MH_I2C_Read... [23:49:15]Read from MH i2c: F0 09 00 [23:49:15]MH_I2C_Read... [23:49:15]Read from MH i2c: F0 09 00 60 02 00 7C E8 16 67 A0 18 CA 66 23 [23:49:15]GetLastDocTimeStamp 1729554544 [23:49:15]current date 1729554556 [23:49:15]FM_GetShiftState [23:49:15]SAM_PROTO_GetShiftState [23:49:15]wFMCommunicate request_size=4 [23:49:15]MH_SAM_APDU [23:49:15]CAPDU: 80 13 01 00 [23:49:15]Write to MH i2c: E2 08 00 61 02 80 13 01 00 00 00 00 00 E0 [23:49:15]Write i2c OK [23:49:15]MH_I2C_Read... [23:49:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:49:15]Read from MH i2c: E2 [23:49:15]MH_I2C_Read... [23:49:15]Read from MH i2c: E2 0E 00 [23:49:15]MH_I2C_Read... [23:49:15]Read from MH i2c: E2 0E 00 61 02 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 3F [23:49:15]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [23:49:15]wFMCommunicate OK [23:49:15]SAM_PROTO_GetShiftState done [23:49:15]FM_GetShiftState done [23:49:15]opened in 1729469754 [23:49:15]opened+sec_in_day 1729556154 [23:49:15]quantity*price = 95064 [23:49:15]sum+1 = 95066 [23:49:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.65 ИТОГО: 950.00 Внесено: 950.00 СДАЧА: 0.00 НСП 1% : 8.41 НДС 12% : 100.95 Наличными: 950.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 430 21.10.2024 23:49 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 187966 ФПД: 116567603836304 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T234916&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187966&fm=116567603836304&tin=02508201610067®Number=0000000000100030&sum=95000 [23:49:16]StoreToDocumentArchive [23:49:16]shift 460 fd 187966 [23:49:16]save to /storage/0460/doc_00187966 [23:49:16]save last doc name /storage/0460/doc_00187966 to /storage/kkm_last_doc_name [23:49:16]save OK [23:49:16]Clear old archive folders... [23:49:16]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:49:16]tlvbuf is 01B87CB0 [23:49:16]SAM_PROTO_ClearQueue [23:49:16]wFMCommunicate request_size=4 [23:49:16]MH_SAM_APDU [23:49:16]CAPDU: 80 09 00 00 [23:49:16]Write to MH i2c: E2 08 00 6E 02 80 09 00 00 00 00 00 00 E2 [23:49:16]Write i2c OK [23:49:16]MH_I2C_Read... [23:49:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:49:17]Read from MH i2c: E2 [23:49:17]MH_I2C_Read... [23:49:17]Read from MH i2c: E2 03 00 [23:49:17]MH_I2C_Read... [23:49:17]Read from MH i2c: E2 03 00 6E 02 00 90 00 E4 [23:49:17]RAPDU: 90 00 [23:49:17]wFMCommunicate OK [23:49:17]SAM_PROTO_ClearQueue done [23:49:17]KKMCreateOFDPacket [23:49:17]OFDProtocolAddRootSTLVToBuf [23:49:17]FM_MakeSignedData [23:49:17]FM_MakeSignedData [23:49:17]SAM_PROTO_SignData [23:49:17]wFMCommunicate request_size=4 [23:49:17]MH_SAM_APDU [23:49:17]CAPDU: 80 0D 01 02 [23:49:17]Write to MH i2c: E2 08 00 6F 02 80 0D 01 02 00 00 00 00 EA [23:49:17]Write i2c OK [23:49:17]MH_I2C_Read... [23:49:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:49:17]Read from MH i2c: E2 [23:49:17]MH_I2C_Read... [23:49:17]Read from MH i2c: E2 03 00 [23:49:17]MH_I2C_Read... [23:49:17]Read from MH i2c: E2 03 00 6F 02 00 90 00 E5 [23:49:17]RAPDU: 90 00 [23:49:17]wFMCommunicate OK [23:49:17]wFMCommunicate request_size=255 [23:49:17]MH_SAM_APDU [23:49: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 33 FF 03 08 00 03 82 37 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 59 73 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 73 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6F 27 00 00 00 00 07 04 06 00 18 73 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AE 01 00 00 F4 03 04 00 7C E8 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 3E DE 02 00 35 04 06 00 6A [23:49:17]Write to MH i2c: E2 02 01 70 02 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 82 37 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 59 73 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 73 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6F 27 00 00 00 00 07 04 06 00 18 73 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AE 01 00 00 F4 03 04 00 7C E8 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 3E DE 02 00 35 04 06 00 6A 00 00 79 [23:49:17]Write i2c OK [23:49:17]MH_I2C_Read... [23:49:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:49:17]Read from MH i2c: E2 [23:49:17]MH_I2C_Read... [23:49:17]Read from MH i2c: E2 03 00 [23:49:17]MH_I2C_Read... [23:49:17]Read from MH i2c: E2 03 00 70 02 00 90 00 E6 [23:49:17]RAPDU: 90 00 [23:49:17]wFMCommunicate OK [23:49:17]wFMCommunicate request_size=10 [23:49:17]MH_SAM_APDU [23:49:17]CAPDU: 80 0D 02 02 05 04 82 9E 75 90 [23:49:17]Write to MH i2c: E2 0D 00 71 02 80 0D 02 02 05 00 04 82 9E 75 90 00 00 20 [23:49:17]Write i2c OK [23:49:17]MH_I2C_Read... [23:49:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:49:17]Read from MH i2c: E2 [23:49:17]MH_I2C_Read... [23:49:17]Read from MH i2c: E2 03 00 [23:49:17]MH_I2C_Read... [23:49:17]Read from MH i2c: E2 03 00 71 02 00 90 00 E7 [23:49:17]RAPDU: 90 00 [23:49:17]wFMCommunicate OK [23:49:17]wFMCommunicate request_size=4 [23:49:17]MH_SAM_APDU [23:49:17]CAPDU: 80 0D 03 02 [23:49:17]Write to MH i2c: E2 08 00 72 02 80 0D 03 02 00 00 00 00 EF [23:49:17]Write i2c OK [23:49:17]MH_I2C_Read... [23:49:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:49:17]Read from MH i2c: E2 [23:49:17]MH_I2C_Read... [23:49:17]Read from MH i2c: E2 0B 00 [23:49:17]MH_I2C_Read... [23:49:17]Read from MH i2c: E2 0B 00 72 02 00 AC B5 6A B7 2A 4C 82 FE 90 00 68 [23:49:17]RAPDU: AC B5 6A B7 2A 4C 82 FE 90 00 [23:49:17]wFMCommunicate OK [23:49:17]SAM_PROTO_SignData done [23:49:17]FM_MakeSignedData done [23:49:17]CreateOFDProtocolMessage [23:49:17]wFMCommunicate request_size=4 [23:49:17]MH_SAM_APDU [23:49:17]CAPDU: 80 11 00 00 [23:49:17]Write to MH i2c: E2 08 00 73 02 80 11 00 00 00 00 00 00 EF [23:49:17]Write i2c OK [23:49:17]MH_I2C_Read... [23:49:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:49:17]Read from MH i2c: E2 [23:49:17]MH_I2C_Read... [23:49:17]Read from MH i2c: E2 17 00 [23:49:17]MH_I2C_Read... [23:49:17]Read from MH i2c: E2 17 00 73 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 3D [23:49:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [23:49:17]wFMCommunicate OK [23:49:17]CreateOFDProtocolMessage done [23:49:17]OFDSenderStorePacket 187966 [23:49:17]StoreOFDPacket docnum=187966 [23:49:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 E5 5C 07 01 94 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 33 FF 03 08 00 03 82 37 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 59 73 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 73 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6F 27 00 00 00 00 07 04 06 00 18 73 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AE 01 00 00 F4 03 04 00 7C E8 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 3E DE 02 00 35 04 06 00 6A 04 82 9E 75 90 AC B5 6A B7 2A 4C 82 FE [23:49:17]CheckFolder [23:49:17]dirname=/storage/ofd_packets [23:49:17]CheckFolder done [23:49:17]ProducePacketName [23:49:17]name=ofd_packets/00187966 [23:49:17]NVStorageSaveData ofd_packets/00187966 [23:49:17]File name is /storage/ofd_packets/00187966 [23:49:17]Write 301 bytes [23:49:17]NVStorageSaveData done [23:49:17]OFDSenderStorePacket done [23:49:17]KKMCreateOFDPacket done [23:49:17]NVStorageSaveData kkm_last_timestamp [23:49:17]File name is /storage/kkm_last_timestamp [23:49:17]Write 4 bytes [23:49:17]NVStorageSaveData done [23:49:17]ExternCall_PrintAddStr [23:49:17]wPrintStart [23:49:17]Write to MH i2c: 01 00 00 74 02 76 [23:49:17]Write i2c OK [23:49:17]MH_I2C_Read... [23:49:17]Read from MH i2c: 01 [23:49:17]MH_I2C_Read... [23:49:17]Read from MH i2c: 01 07 00 [23:49:17]MH_I2C_Read... [23:49:17]Read from MH i2c: 01 07 00 74 02 00 00 00 00 00 FF 0F 8B [23:49:17]RasterBufferAndPrint [23:49:17]line Счет N : (1)210019 [23:49:17]line ИНН: 02508201610067 [23:49:17]line Контрольно-Кассовый Чек [23:49:17]line ПРОДАЖА [23:49:17]line ТРК (МРК, ГНК) : 42 [23:49:17]line Товар: 2710124130 [23:49:17]line Аи-92-К-3 [23:49:17]line 14.210 * 66.90 [23:49:17]line = 950.65 [23:49:17]line НДС 12% НСП 1% [23:49:17]line > о реализуемом товаре [23:49:17]line ОКРУГЛЕНИЕ: -0.65 [23:49:17]line ИТОГО: 950.00 [23:49:17]line Внесено: 950.00 [23:49:17]line СДАЧА: 0.00 [23:49:17]line НСП 1% : 8.41 [23:49:17]line НДС 12% : 100.95 [23:49:17]line Наличными: 950.00 [23:49:17]line Безнал.: 0.00 [23:49:17]line Место: АЗС № 86 "Партнер Нефть" [23:49:17]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [23:49:17]line СНО: Общий режим [23:49:17]line Чек 430 21.10.2024 23:49 [23:49:17]line Смена: 460 ФФД: 1.0 [23:49:17]line ЗНМ: 0300000155 [23:49:17]line РНМ: 0000000000100030 [23:49:17]line Версия ККМ: 001 [23:49:17]line ФМ: 0000000000965340 [23:49:17]line ФД: 187966 [23:49:17]line ФПД: 116567603836304 [23:49:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T234916&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187966&fm=116567603836304&tin=02508201610067®Number=0000000000100030&sum=95000 [23:49:17]OFD Sender: Processing packet 187966 [packets to send 1062, broken 1061] [23:49:17]ProducePacketName [23:49:17]name=ofd_packets/00187966 [23:49:17]OFD Sender: To server: pG, [23:49:17]CommunicateWithHost lk.salyk.kg:30040 [23:49:17]ConnectInit lk.salyk.kg [23:49:17]written 0, free lines is 4095 [23:49:17]Connected sock=9 [23:49:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 E5 5C 07 01 94 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 33 FF 03 08 00 03 82 37 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 59 73 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 73 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6F 27 00 00 00 00 07 04 06 00 18 73 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AE 01 00 00 F4 03 04 00 7C E8 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 3E DE 02 00 35 04 06 00 6A 04 82 9E 75 90 AC B5 6A B7 2A 4C 82 FE [23:49:18]Write to MH i2c: 01 00 00 9F 02 A1 [23:49:18]Write i2c OK [23:49:18]MH_I2C_Read... [23:49:18]Read from MH i2c: 01 [23:49:18]MH_I2C_Read... [23:49:18]Read from MH i2c: 01 07 00 [23:49:18]MH_I2C_Read... [23:49:18]Read from MH i2c: 01 07 00 9F 02 00 00 00 00 00 67 0C 1B [23:49:18]RasterBufferAndPrint [23:49:18]line [23:49:18]line [23:49:18]line [23:49:18]line [23:49:18]line [23:49:18]written 0, free lines is 3178 [23:49:18]MH_Cut [23:49:18]Write to MH i2c: D1 01 00 A6 02 01 7A [23:49:18]Write i2c OK [23:49:18]MH_I2C_Read... [23:49:18]Read from MH i2c: D1 [23:49:18]MH_I2C_Read... [23:49:18]Read from MH i2c: D1 01 00 [23:49:18]MH_I2C_Read... [23:49:18]Read from MH i2c: D1 01 00 A6 02 00 79 [23:49:18]Write to MH i2c: 01 00 00 A7 02 A9 [23:49:18]Write i2c OK [23:49:18]MH_I2C_Read... [23:49:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 1E 4C 47 00 41 80 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 3E DE 02 00 F4 03 04 00 6B 92 16 67 B6 04 01 00 00 87 89 86 DC 32 AD EC 60 [23:49:18]CommunicateWithHost err = 0 [23:49:18]CheckOFDResponse [23:49:18]1017 (14) - 77093643461234 [23:49:18]1041 (16) - 0000000000965340 [23:49:18]1040 (4) - 187966 [23:49:18]1012 (4) - 21.10.2024 17:42 [23:49:18]1206 (1) - 0 [23:49:18]OFD Sender: Remove packet 187966 [23:49:18]ProducePacketName [23:49:18]name=ofd_packets/00187966 [23:49:18]NVStorageDeleteData [23:49:18]OFD Sender: No OFD packet to send [23:49:19]*** Cut start [23:49:19]*** Partial cut [23:49:19]*** CUTSNS_PIN = 1 [23:49:19]*** CUTSNS_PIN = 0 [23:49:19]*** Brake cut motor [23:49:19]Read from MH i2c: 01 [23:49:19]MH_I2C_Read... [23:49:19]*** Stop cut motor [23:49:19]*** Cut end [23:49:19]Read from MH i2c: 01 07 00 [23:49:19]MH_I2C_Read... [23:49:19]Read from MH i2c: 01 07 00 A7 02 00 00 00 00 00 FF 0F BE [23:49:19]process_action close_receipt done [23:49:19]requested_data is exist [23:49:19]produce_requested_data [23:49:19]requested_item fm.sn is exist - process it [23:49:19]wFMCommunicate request_size=4 [23:49:19]MH_SAM_APDU [23:49:19]CAPDU: 80 11 00 00 [23:49:19]Write to MH i2c: E2 08 00 A8 02 80 11 00 00 00 00 00 00 24 [23:49:19]Write i2c OK [23:49:19]MH_I2C_Read... [23:49:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:49:19]Read from MH i2c: E2 [23:49:19]MH_I2C_Read... [23:49:19]Read from MH i2c: E2 17 00 [23:49:19]MH_I2C_Read... [23:49:19]Read from MH i2c: E2 17 00 A8 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 72 [23:49:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [23:49:20]wFMCommunicate OK [23:49:20]requested_item fd.num is exist - process it [23:49:20]SAM_PROTO_GetFieldsCounters [23:49:20]wFMCommunicate request_size=4 [23:49:20]MH_SAM_APDU [23:49:20]CAPDU: 80 13 00 00 [23:49:20]Write to MH i2c: E2 08 00 A9 02 80 13 00 00 00 00 00 00 27 [23:49:20]Write i2c OK [23:49:20]MH_I2C_Read... [23:49:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:49:20]Read from MH i2c: E2 [23:49:20]MH_I2C_Read... [23:49:20]Read from MH i2c: E2 62 00 [23:49:20]MH_I2C_Read... [23:49:20]Read from MH i2c: E2 62 00 A9 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 3E DE 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 AE 01 00 00 5E 04 04 00 AE 01 00 00 57 04 04 00 AF 01 00 00 19 04 04 00 00 00 00 00 90 00 26 [23:49:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 3E DE 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 AE 01 00 00 5E 04 04 00 AE 01 00 00 57 04 04 00 AF 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:49:20]wFMCommunicate OK [23:49:20]SAM_PROTO_GetFieldsCounters done [23:49:20]requested_item shift.num is exist - process it [23:49:20]requested_item shift.opened is exist - process it [23:49:20]req_shift_opened [23:49:20]FM_GetShiftState [23:49:20]SAM_PROTO_GetShiftState [23:49:20]wFMCommunicate request_size=4 [23:49:20]MH_SAM_APDU [23:49:20]CAPDU: 80 13 01 00 [23:49:20]Write to MH i2c: E2 08 00 AA 02 80 13 01 00 00 00 00 00 29 [23:49:20]Write i2c OK [23:49:20]MH_I2C_Read... [23:49:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:49:20]Read from MH i2c: E2 [23:49:20]MH_I2C_Read... [23:49:20]Read from MH i2c: E2 0E 00 [23:49:20]MH_I2C_Read... [23:49:20]Read from MH i2c: E2 0E 00 AA 02 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 88 [23:49:20]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [23:49:20]wFMCommunicate OK [23:49:20]SAM_PROTO_GetShiftState done [23:49:20]FM_GetShiftState done [23:49:20]req_shift_opened done [23:49:20]requested_item shift.open_date is exist - process it [23:49:20]req_shift_open_date [23:49:20]req_shift_open_date done [23:49:20]produce_requested_data done [23:49:20]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187966,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [23:49:20]process_action_free close_receipt [23:49:20]json_value_free [23:49:20]json_value_free done [23:49:20]process_json_proto returns [23:49:20]Send response to host [23:49:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187966,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [23:49:20]free response buf [23:49:20]execute_script done [23:49:20]execute_script returns [23:49:20]free content buf [23:49:20]Sock 8.Close socket [23:49:20]Sock 8.Thread stoped [23:49:23]OFD Sender: No OFD packet to send [23:49:28]OFD Sender: No OFD packet to send [23:49:33]OFD Sender: No OFD packet to send [23:49:38]OFD Sender: No OFD packet to send [23:49:43]OFD Sender: No OFD packet to send [23:49:48]OFD Sender: No OFD packet to send [23:49:50]accept exits with 10 [23:49:50]New connection [23:49:50]New thread 3067055460 created [23:49:50]Thread 3067198820 joined [23:49:50]Waiting for new connection... [23:49:50] Sock 10.Parse request [23:49:50]Sock 10.Check first char [23:49:50]Sock 10.First char is OK [23:49:50]request: POST /json_proto HTTP/1.0 [23:49:50]Method: POST [23:49:50]URL: /json_proto [23:49:50]Method is POST - this is cgi request [23:49:50]url: /json_proto [23:49:50]query_string will be loaded in cgi processing [23:49:50]execute_cgi json_proto POST (null) [23:49:50]execute_cgi path=json_proto method=POST [23:49:50]POST find Content-Length [23:49:50]Host: 172.17.42.131:8080 [23:49:50]Content-Length: 800 [23:49:50]Content-Type: application/json [23:49:50] [23:49:50]POST finish read [23:49:50]Found Content-Length = 800 [23:49:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210020", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "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\u000A3913843", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:49:50]execute_script... [23:49: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)210020", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "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\u000A3913843", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:49:50]POST & json_proto [23:49:50]process_json_proto [23:49:50]json parsed OK: [23:49:50]protocol is kg_v1.0 [23:49:50]action value=close_receipt [23:49:50]process_action close_receipt [23:49:50]cmd_close_receipt [23:49:50]MH_GetDate [23:49:50]Write to MH i2c: F0 00 00 AB 02 9C [23:49:50]Write i2c OK [23:49:50]MH_I2C_Read... [23:49:50]Read from MH i2c: F0 [23:49:50]MH_I2C_Read... [23:49:50]Read from MH i2c: F0 09 00 [23:49:50]MH_I2C_Read... [23:49:50]Read from MH i2c: F0 09 00 AB 02 00 9F E8 16 67 A0 18 CA 66 91 [23:49:50]GetLastDocTimeStamp 1729554556 [23:49:50]current date 1729554591 [23:49:50]FM_GetShiftState [23:49:50]SAM_PROTO_GetShiftState [23:49:50]wFMCommunicate request_size=4 [23:49:50]MH_SAM_APDU [23:49:50]CAPDU: 80 13 01 00 [23:49:50]Write to MH i2c: E2 08 00 AC 02 80 13 01 00 00 00 00 00 2B [23:49:50]Write i2c OK [23:49:50]MH_I2C_Read... [23:49:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:49:50]Read from MH i2c: E2 [23:49:50]MH_I2C_Read... [23:49:50]Read from MH i2c: E2 0E 00 [23:49:50]MH_I2C_Read... [23:49:50]Read from MH i2c: E2 0E 00 AC 02 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 8A [23:49:50]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [23:49:50]wFMCommunicate OK [23:49:50]SAM_PROTO_GetShiftState done [23:49:50]FM_GetShiftState done [23:49:50]opened in 1729469754 [23:49:50]opened+sec_in_day 1729556154 [23:49:50]quantity*price = 0 [23:49:50]sum+1 = 1 [23:49:50]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 431 21.10.2024 23:49 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Талоны: Топливные Талоны 3913843 ФМ: 0000000000965340 ФД: 187967 ФПД: 97991918083563 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T234951&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187967&fm=97991918083563&tin=02508201610067®Number=0000000000100030&sum=0 [23:49:51]StoreToDocumentArchive [23:49:51]shift 460 fd 187967 [23:49:51]save to /storage/0460/doc_00187967 [23:49:51]save last doc name /storage/0460/doc_00187967 to /storage/kkm_last_doc_name [23:49:51]save OK [23:49:51]Clear old archive folders... [23:49:51]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:49:51]tlvbuf is 01C04210 [23:49:51]SAM_PROTO_ClearQueue [23:49:51]wFMCommunicate request_size=4 [23:49:51]MH_SAM_APDU [23:49:51]CAPDU: 80 09 00 00 [23:49:51]Write to MH i2c: E2 08 00 B9 02 80 09 00 00 00 00 00 00 2D [23:49:51]Write i2c OK [23:49:51]MH_I2C_Read... [23:49:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:49:51]Read from MH i2c: E2 [23:49:51]MH_I2C_Read... [23:49:51]Read from MH i2c: E2 03 00 [23:49:51]MH_I2C_Read... [23:49:51]Read from MH i2c: E2 03 00 B9 02 00 90 00 2F [23:49:51]RAPDU: 90 00 [23:49:51]wFMCommunicate OK [23:49:51]SAM_PROTO_ClearQueue done [23:49:51]KKMCreateOFDPacket [23:49:51]OFDProtocolAddRootSTLVToBuf [23:49:51]FM_MakeSignedData [23:49:51]FM_MakeSignedData [23:49:51]SAM_PROTO_SignData [23:49:51]wFMCommunicate request_size=4 [23:49:51]MH_SAM_APDU [23:49:51]CAPDU: 80 0D 01 02 [23:49:51]Write to MH i2c: E2 08 00 BA 02 80 0D 01 02 00 00 00 00 35 [23:49:51]Write i2c OK [23:49:51]MH_I2C_Read... [23:49:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:49:51]Read from MH i2c: E2 [23:49:51]MH_I2C_Read... [23:49:51]Read from MH i2c: E2 03 00 [23:49:51]MH_I2C_Read... [23:49:51]Read from MH i2c: E2 03 00 BA 02 00 90 00 30 [23:49:51]RAPDU: 90 00 [23:49:51]wFMCommunicate OK [23:49:51]wFMCommunicate request_size=255 [23:49:51]MH_SAM_APDU [23:49: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 33 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 AF 01 00 00 F4 03 04 00 9F E8 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 3F DE 02 00 35 04 06 00 59 [23:49:51]Write to MH i2c: E2 02 01 BB 02 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 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 AF 01 00 00 F4 03 04 00 9F E8 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 3F DE 02 00 35 04 06 00 59 00 00 53 [23:49:51]Write i2c OK [23:49:51]MH_I2C_Read... [23:49:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:49:52]Read from MH i2c: E2 [23:49:52]MH_I2C_Read... [23:49:52]Read from MH i2c: E2 03 00 [23:49:52]MH_I2C_Read... [23:49:52]Read from MH i2c: E2 03 00 BB 02 00 90 00 31 [23:49:52]RAPDU: 90 00 [23:49:52]wFMCommunicate OK [23:49:52]wFMCommunicate request_size=10 [23:49:52]MH_SAM_APDU [23:49:52]CAPDU: 80 0D 02 02 05 1F 85 77 DD EB [23:49:52]Write to MH i2c: E2 0D 00 BC 02 80 0D 02 02 05 00 1F 85 77 DD EB 00 00 25 [23:49:52]Write i2c OK [23:49:52]MH_I2C_Read... [23:49:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:49:52]Read from MH i2c: E2 [23:49:52]MH_I2C_Read... [23:49:52]Read from MH i2c: E2 03 00 [23:49:52]MH_I2C_Read... [23:49:52]Read from MH i2c: E2 03 00 BC 02 00 90 00 32 [23:49:52]RAPDU: 90 00 [23:49:52]wFMCommunicate OK [23:49:52]wFMCommunicate request_size=4 [23:49:52]MH_SAM_APDU [23:49:52]CAPDU: 80 0D 03 02 [23:49:52]Write to MH i2c: E2 08 00 BD 02 80 0D 03 02 00 00 00 00 3A [23:49:52]Write i2c OK [23:49:52]MH_I2C_Read... [23:49:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:49:52]Read from MH i2c: E2 [23:49:52]MH_I2C_Read... [23:49:52]Read from MH i2c: E2 0B 00 [23:49:52]MH_I2C_Read... [23:49:52]Read from MH i2c: E2 0B 00 BD 02 00 D5 8F 31 31 CC D2 5C 08 90 00 03 [23:49:52]RAPDU: D5 8F 31 31 CC D2 5C 08 90 00 [23:49:52]wFMCommunicate OK [23:49:52]SAM_PROTO_SignData done [23:49:52]FM_MakeSignedData done [23:49:52]CreateOFDProtocolMessage [23:49:52]wFMCommunicate request_size=4 [23:49:52]MH_SAM_APDU [23:49:52]CAPDU: 80 11 00 00 [23:49:52]Write to MH i2c: E2 08 00 BE 02 80 11 00 00 00 00 00 00 3A [23:49:52]Write i2c OK [23:49:52]MH_I2C_Read... [23:49:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:49:52]Read from MH i2c: E2 [23:49:52]MH_I2C_Read... [23:49:52]Read from MH i2c: E2 17 00 [23:49:52]MH_I2C_Read... [23:49:52]Read from MH i2c: E2 17 00 BE 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 88 [23:49:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [23:49:52]wFMCommunicate OK [23:49:52]CreateOFDProtocolMessage done [23:49:52]OFDSenderStorePacket 187967 [23:49:52]StoreOFDPacket docnum=187967 [23:49:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 25 5F 07 01 D8 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 33 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 AF 01 00 00 F4 03 04 00 9F E8 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 3F DE 02 00 35 04 06 00 59 1F 85 77 DD EB D5 8F 31 31 CC D2 5C 08 [23:49:52]CheckFolder [23:49:52]dirname=/storage/ofd_packets [23:49:52]CheckFolder done [23:49:52]ProducePacketName [23:49:52]name=ofd_packets/00187967 [23:49:52]NVStorageSaveData ofd_packets/00187967 [23:49:52]File name is /storage/ofd_packets/00187967 [23:49:52]Write 301 bytes [23:49:52]NVStorageSaveData done [23:49:52]OFDSenderStorePacket done [23:49:52]KKMCreateOFDPacket done [23:49:52]NVStorageSaveData kkm_last_timestamp [23:49:52]File name is /storage/kkm_last_timestamp [23:49:52]Write 4 bytes [23:49:52]NVStorageSaveData done [23:49:52]ExternCall_PrintAddStr [23:49:52]wPrintStart [23:49:52]Write to MH i2c: 01 00 00 BF 02 C1 [23:49:52]Write i2c OK [23:49:52]MH_I2C_Read... [23:49:52]Read from MH i2c: 01 [23:49:52]MH_I2C_Read... [23:49:52]Read from MH i2c: 01 07 00 [23:49:52]MH_I2C_Read... [23:49:52]Read from MH i2c: 01 07 00 BF 02 00 00 00 00 00 FF 0F D6 [23:49:52]RasterBufferAndPrint [23:49:52]line Счет N : (1)210020 [23:49:52]line ИНН: 02508201610067 [23:49:52]line Контрольно-Кассовый Чек [23:49:52]line ПРОДАЖА [23:49:52]line ТРК (МРК, ГНК) : 12 [23:49:52]line Товар: 2710124130 [23:49:52]line Аи-92-К-3 [23:49:52]line 10.000 * 0.00 [23:49:52]line = 0.00 [23:49:52]line НДС 12% НСП 1% [23:49:52]line > о реализуемом товаре [23:49:52]line ИТОГО: 0.00 [23:49:52]line НСП 1% : 0.00 [23:49:52]line НДС 12% : 0.00 [23:49:52]line Наличными: 0.00 [23:49:52]line Безнал.: 0.00 [23:49:52]line Место: АЗС № 86 "Партнер Нефть" [23:49:52]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [23:49:52]line СНО: Общий режим [23:49:52]line Чек 431 21.10.2024 23:49 [23:49:52]line Смена: 460 ФФД: 1.0 [23:49:52]line ЗНМ: 0300000155 [23:49:52]line РНМ: 0000000000100030 [23:49:52]line Версия ККМ: 001 [23:49:52]line Талоны: Топливные Талоны [23:49:52]line 3913843 [23:49:52]line ФМ: 0000000000965340 [23:49:52]line ФД: 187967 [23:49:52]line ФПД: 97991918083563 [23:49:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T234951&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187967&fm=97991918083563&tin=02508201610067®Number=0000000000100030&sum=0 [23:49:52]written 0, free lines is 4095 [23:49:52]OFD Sender: Processing packet 187967 [packets to send 1062, broken 1061] [23:49:52]ProducePacketName [23:49:52]name=ofd_packets/00187967 [23:49:52]OFD Sender: To server: pG, [23:49:52]CommunicateWithHost lk.salyk.kg:30040 [23:49:52]ConnectInit lk.salyk.kg [23:49:52]Connected sock=9 [23:49:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 25 5F 07 01 D8 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 33 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 AF 01 00 00 F4 03 04 00 9F E8 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 3F DE 02 00 35 04 06 00 59 1F 85 77 DD EB D5 8F 31 31 CC D2 5C 08 [23:49:52]Write to MH i2c: 01 00 00 E9 02 EB [23:49:52]Write i2c OK [23:49:52]MH_I2C_Read... [23:49:52]Read from MH i2c: 01 [23:49:52]MH_I2C_Read... [23:49:52]Read from MH i2c: 01 07 00 [23:49:52]MH_I2C_Read... [23:49:52]Read from MH i2c: 01 07 00 E9 02 00 00 00 00 00 76 0C 74 [23:49:52]RasterBufferAndPrint [23:49:52]line [23:49:52]line [23:49:52]line [23:49:52]line [23:49:52]line [23:49:52]written 0, free lines is 3195 [23:49:52]MH_Cut [23:49:52]Write to MH i2c: D1 01 00 F0 02 01 C4 [23:49:52]Write i2c OK [23:49:52]MH_I2C_Read... [23:49:52]Read from MH i2c: D1 [23:49:52]MH_I2C_Read... [23:49:52]Read from MH i2c: D1 01 00 [23:49:52]MH_I2C_Read... [23:49:52]Read from MH i2c: D1 01 00 F0 02 00 C3 [23:49:52]Write to MH i2c: 01 00 00 F1 02 F3 [23:49:52]Write i2c OK [23:49:52]MH_I2C_Read... [23:49:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 D3 60 47 00 FE D4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 3F DE 02 00 F4 03 04 00 8D 92 16 67 B6 04 01 00 00 18 53 DB 28 12 87 7D A6 [23:49:52]CommunicateWithHost err = 0 [23:49:52]CheckOFDResponse [23:49:52]1017 (14) - 77093643461234 [23:49:52]1041 (16) - 0000000000965340 [23:49:52]1040 (4) - 187967 [23:49:52]1012 (4) - 21.10.2024 17:42 [23:49:52]1206 (1) - 0 [23:49:52]OFD Sender: Remove packet 187967 [23:49:52]ProducePacketName [23:49:52]name=ofd_packets/00187967 [23:49:52]NVStorageDeleteData [23:49:53]OFD Sender: No OFD packet to send [23:49:53]*** Cut start [23:49:53]*** Partial cut [23:49:53]*** CUTSNS_PIN = 1 [23:49:53]*** CUTSNS_PIN = 0 [23:49:54]*** Brake cut motor [23:49:54]Read from MH i2c: 01 [23:49:54]MH_I2C_Read... [23:49:54]*** Stop cut motor [23:49:54]*** Cut end [23:49:54]Read from MH i2c: 01 07 00 [23:49:54]MH_I2C_Read... [23:49:54]Read from MH i2c: 01 07 00 F1 02 00 00 00 00 00 FF 0F 08 [23:49:54]process_action close_receipt done [23:49:54]requested_data is exist [23:49:54]produce_requested_data [23:49:54]requested_item fm.sn is exist - process it [23:49:54]wFMCommunicate request_size=4 [23:49:54]MH_SAM_APDU [23:49:54]CAPDU: 80 11 00 00 [23:49:54]Write to MH i2c: E2 08 00 F2 02 80 11 00 00 00 00 00 00 6E [23:49:54]Write i2c OK [23:49:54]MH_I2C_Read... [23:49:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:49:54]Read from MH i2c: E2 [23:49:54]MH_I2C_Read... [23:49:54]Read from MH i2c: E2 17 00 [23:49:54]MH_I2C_Read... [23:49:54]Read from MH i2c: E2 17 00 F2 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 BC [23:49:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [23:49:54]wFMCommunicate OK [23:49:54]requested_item fd.num is exist - process it [23:49:54]SAM_PROTO_GetFieldsCounters [23:49:54]wFMCommunicate request_size=4 [23:49:54]MH_SAM_APDU [23:49:54]CAPDU: 80 13 00 00 [23:49:54]Write to MH i2c: E2 08 00 F3 02 80 13 00 00 00 00 00 00 71 [23:49:54]Write i2c OK [23:49:54]MH_I2C_Read... [23:49:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:49:54]Read from MH i2c: E2 [23:49:54]MH_I2C_Read... [23:49:54]Read from MH i2c: E2 62 00 [23:49:54]MH_I2C_Read... [23:49:54]Read from MH i2c: E2 62 00 F3 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 3F DE 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 AF 01 00 00 5E 04 04 00 AF 01 00 00 57 04 04 00 B0 01 00 00 19 04 04 00 00 00 00 00 90 00 74 [23:49:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 3F DE 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 AF 01 00 00 5E 04 04 00 AF 01 00 00 57 04 04 00 B0 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:49:54]wFMCommunicate OK [23:49:54]SAM_PROTO_GetFieldsCounters done [23:49:54]requested_item shift.num is exist - process it [23:49:54]requested_item shift.opened is exist - process it [23:49:54]req_shift_opened [23:49:54]FM_GetShiftState [23:49:54]SAM_PROTO_GetShiftState [23:49:54]wFMCommunicate request_size=4 [23:49:54]MH_SAM_APDU [23:49:54]CAPDU: 80 13 01 00 [23:49:54]Write to MH i2c: E2 08 00 F4 02 80 13 01 00 00 00 00 00 73 [23:49:54]Write i2c OK [23:49:54]MH_I2C_Read... [23:49:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:49:54]Read from MH i2c: E2 [23:49:54]MH_I2C_Read... [23:49:54]Read from MH i2c: E2 0E 00 [23:49:54]MH_I2C_Read... [23:49:54]Read from MH i2c: E2 0E 00 F4 02 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 D2 [23:49:54]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [23:49:54]wFMCommunicate OK [23:49:54]SAM_PROTO_GetShiftState done [23:49:54]FM_GetShiftState done [23:49:54]req_shift_opened done [23:49:54]requested_item shift.open_date is exist - process it [23:49:54]req_shift_open_date [23:49:54]req_shift_open_date done [23:49:54]produce_requested_data done [23:49:54]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187967,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [23:49:54]process_action_free close_receipt [23:49:54]json_value_free [23:49:54]json_value_free done [23:49:54]process_json_proto returns [23:49:54]Send response to host [23:49:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187967,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [23:49:54]free response buf [23:49:54]execute_script done [23:49:54]execute_script returns [23:49:54]free content buf [23:49:54]Sock 10.Close socket [23:49:54]Sock 10.Thread stoped [23:49:58]OFD Sender: No OFD packet to send [23:50:03]OFD Sender: No OFD packet to send [23:50:08]OFD Sender: No OFD packet to send [23:50:13]OFD Sender: No OFD packet to send [23:50:18]OFD Sender: No OFD packet to send [23:50:23]OFD Sender: No OFD packet to send [23:50:28]OFD Sender: No OFD packet to send [23:50:33]OFD Sender: No OFD packet to send [23:50:38]OFD Sender: No OFD packet to send [23:50:43]OFD Sender: No OFD packet to send [23:50:48]OFD Sender: No OFD packet to send [23:50:53]OFD Sender: No OFD packet to send [23:50:58]OFD Sender: No OFD packet to send [23:51:03]OFD Sender: No OFD packet to send [23:51:08]OFD Sender: No OFD packet to send [23:51:13]OFD Sender: No OFD packet to send [23:51:18]OFD Sender: No OFD packet to send [23:51:23]OFD Sender: No OFD packet to send [23:51:28]OFD Sender: No OFD packet to send [23:51:33]OFD Sender: No OFD packet to send [23:51:38]OFD Sender: No OFD packet to send [23:51:43]OFD Sender: No OFD packet to send [23:51:48]OFD Sender: No OFD packet to send [23:51:53]OFD Sender: No OFD packet to send [23:51:58]OFD Sender: No OFD packet to send [23:52:03]OFD Sender: No OFD packet to send [23:52:08]OFD Sender: No OFD packet to send [23:52:13]OFD Sender: No OFD packet to send [23:52:19]OFD Sender: No OFD packet to send [23:52:24]OFD Sender: No OFD packet to send [23:52:28]accept exits with 8 [23:52:28]New connection [23:52:28]New thread 3067198820 created [23:52:28]Thread 3067055460 joined [23:52:28]Waiting for new connection... [23:52:28] Sock 8.Parse request [23:52:28]Sock 8.Check first char [23:52:28]Sock 8.First char is OK [23:52:28]request: POST /json_proto HTTP/1.0 [23:52:28]Method: POST [23:52:28]URL: /json_proto [23:52:28]Method is POST - this is cgi request [23:52:28]url: /json_proto [23:52:28]query_string will be loaded in cgi processing [23:52:28]execute_cgi json_proto POST (null) [23:52:28]execute_cgi path=json_proto method=POST [23:52:28]POST find Content-Length [23:52:28]Host: 172.17.42.131:8080 [23:52:28]Content-Length: 688 [23:52:28]Content-Type: application/json [23:52:28] [23:52:28]POST finish read [23:52:28]Found Content-Length = 688 [23:52:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210021", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 12.960, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:52:28]execute_script... [23:52: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)210021", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 12.960, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:52:28]POST & json_proto [23:52:28]process_json_proto [23:52:28]json parsed OK: [23:52:28]protocol is kg_v1.0 [23:52:28]action value=close_receipt [23:52:28]process_action close_receipt [23:52:28]cmd_close_receipt [23:52:28]MH_GetDate [23:52:28]Write to MH i2c: F0 00 00 F5 02 E6 [23:52:28]Write i2c OK [23:52:28]MH_I2C_Read... [23:52:28]Read from MH i2c: F0 [23:52:28]MH_I2C_Read... [23:52:28]Read from MH i2c: F0 09 00 [23:52:28]MH_I2C_Read... [23:52:28]Read from MH i2c: F0 09 00 F5 02 00 3D E9 16 67 A0 18 CA 66 7A [23:52:28]GetLastDocTimeStamp 1729554591 [23:52:28]current date 1729554749 [23:52:28]FM_GetShiftState [23:52:28]SAM_PROTO_GetShiftState [23:52:28]wFMCommunicate request_size=4 [23:52:28]MH_SAM_APDU [23:52:28]CAPDU: 80 13 01 00 [23:52:28]Write to MH i2c: E2 08 00 F6 02 80 13 01 00 00 00 00 00 75 [23:52:28]Write i2c OK [23:52:28]MH_I2C_Read... [23:52:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:52:28]Read from MH i2c: E2 [23:52:28]MH_I2C_Read... [23:52:28]Read from MH i2c: E2 0E 00 [23:52:28]MH_I2C_Read... [23:52:28]Read from MH i2c: E2 0E 00 F6 02 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 D4 [23:52:28]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [23:52:28]wFMCommunicate OK [23:52:28]SAM_PROTO_GetShiftState done [23:52:28]FM_GetShiftState done [23:52:28]opened in 1729469754 [23:52:28]opened+sec_in_day 1729556154 [23:52:28]quantity*price = 100051 [23:52:28]sum+1 = 100052 [23:52:28]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 432 21.10.2024 23:52 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 187968 ФПД: 137518863584530 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T235229&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187968&fm=137518863584530&tin=02508201610067®Number=0000000000100030&sum=100000 [23:52:29]StoreToDocumentArchive [23:52:29]shift 460 fd 187968 [23:52:29]save to /storage/0460/doc_00187968 [23:52:29]save last doc name /storage/0460/doc_00187968 to /storage/kkm_last_doc_name [23:52:29]save OK [23:52:29]Clear old archive folders... [23:52:29]ProcessDocumentItem done err = 0, tmpTLVsize=257 [23:52:29]tlvbuf is 01B889E0 [23:52:29]SAM_PROTO_ClearQueue [23:52:29]wFMCommunicate request_size=4 [23:52:29]MH_SAM_APDU [23:52:29]CAPDU: 80 09 00 00 [23:52:29]Write to MH i2c: E2 08 00 03 03 80 09 00 00 00 00 00 00 78 [23:52:29]Write i2c OK [23:52:29]MH_I2C_Read... [23:52:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:52:30]Read from MH i2c: E2 [23:52:30]MH_I2C_Read... [23:52:30]Read from MH i2c: E2 03 00 [23:52:30]MH_I2C_Read... [23:52:30]Read from MH i2c: E2 03 00 03 03 00 90 00 7A [23:52:30]RAPDU: 90 00 [23:52:30]wFMCommunicate OK [23:52:30]SAM_PROTO_ClearQueue done [23:52:30]KKMCreateOFDPacket [23:52:30]OFDProtocolAddRootSTLVToBuf [23:52:30]FM_MakeSignedData [23:52:30]FM_MakeSignedData [23:52:30]SAM_PROTO_SignData [23:52:30]wFMCommunicate request_size=4 [23:52:30]MH_SAM_APDU [23:52:30]CAPDU: 80 0D 01 02 [23:52:30]Write to MH i2c: E2 08 00 04 03 80 0D 01 02 00 00 00 00 80 [23:52:30]Write i2c OK [23:52:30]MH_I2C_Read... [23:52:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:52:30]Read from MH i2c: E2 [23:52:30]MH_I2C_Read... [23:52:30]Read from MH i2c: E2 03 00 [23:52:30]MH_I2C_Read... [23:52:30]Read from MH i2c: E2 03 00 04 03 00 90 00 7B [23:52:30]RAPDU: 90 00 [23:52:30]wFMCommunicate OK [23:52:30]wFMCommunicate request_size=255 [23:52:30]MH_SAM_APDU [23:52:30]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B0 01 00 00 F4 03 04 00 3D E9 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 40 DE 02 [23:52:30]Write to MH i2c: E2 02 01 05 03 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 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B0 01 00 00 F4 03 04 00 3D E9 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 40 DE 02 00 00 1E [23:52:30]Write i2c OK [23:52:30]MH_I2C_Read... [23:52:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:52:30]Read from MH i2c: E2 [23:52:30]MH_I2C_Read... [23:52:30]Read from MH i2c: E2 03 00 [23:52:30]MH_I2C_Read... [23:52:30]Read from MH i2c: E2 03 00 05 03 00 90 00 7C [23:52:30]RAPDU: 90 00 [23:52:30]wFMCommunicate OK [23:52:30]wFMCommunicate request_size=16 [23:52:30]MH_SAM_APDU [23:52:30]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 7D 12 9B 03 8D 12 [23:52:30]Write to MH i2c: E2 13 00 06 03 80 0D 02 02 0B 00 00 35 04 06 00 7D 12 9B 03 8D 12 00 00 A4 [23:52:30]Write i2c OK [23:52:30]MH_I2C_Read... [23:52:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:52:30]Read from MH i2c: E2 [23:52:30]MH_I2C_Read... [23:52:30]Read from MH i2c: E2 03 00 [23:52:30]MH_I2C_Read... [23:52:30]Read from MH i2c: E2 03 00 06 03 00 90 00 7D [23:52:30]RAPDU: 90 00 [23:52:30]wFMCommunicate OK [23:52:30]wFMCommunicate request_size=4 [23:52:30]MH_SAM_APDU [23:52:30]CAPDU: 80 0D 03 02 [23:52:30]Write to MH i2c: E2 08 00 07 03 80 0D 03 02 00 00 00 00 85 [23:52:30]Write i2c OK [23:52:30]MH_I2C_Read... [23:52:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:52:30]Read from MH i2c: E2 [23:52:30]MH_I2C_Read... [23:52:30]Read from MH i2c: E2 0B 00 [23:52:30]MH_I2C_Read... [23:52:30]Read from MH i2c: E2 0B 00 07 03 00 70 10 4B 41 D0 4A 2B 62 90 00 39 [23:52:30]RAPDU: 70 10 4B 41 D0 4A 2B 62 90 00 [23:52:30]wFMCommunicate OK [23:52:30]SAM_PROTO_SignData done [23:52:30]FM_MakeSignedData done [23:52:30]CreateOFDProtocolMessage [23:52:30]wFMCommunicate request_size=4 [23:52:30]MH_SAM_APDU [23:52:30]CAPDU: 80 11 00 00 [23:52:30]Write to MH i2c: E2 08 00 08 03 80 11 00 00 00 00 00 00 85 [23:52:30]Write i2c OK [23:52:30]MH_I2C_Read... [23:52:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:52:30]Read from MH i2c: E2 [23:52:30]MH_I2C_Read... [23:52:30]Read from MH i2c: E2 17 00 [23:52:30]MH_I2C_Read... [23:52:30]Read from MH i2c: E2 17 00 08 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 D3 [23:52:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [23:52:30]wFMCommunicate OK [23:52:30]CreateOFDProtocolMessage done [23:52:30]OFDSenderStorePacket 187968 [23:52:30]StoreOFDPacket docnum=187968 [23:52:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 F1 C4 0D 01 5C D9 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 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B0 01 00 00 F4 03 04 00 3D E9 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 40 DE 02 00 35 04 06 00 7D 12 9B 03 8D 12 70 10 4B 41 D0 4A 2B 62 [23:52:30]CheckFolder [23:52:30]dirname=/storage/ofd_packets [23:52:30]CheckFolder done [23:52:30]ProducePacketName [23:52:30]name=ofd_packets/00187968 [23:52:30]NVStorageSaveData ofd_packets/00187968 [23:52:30]File name is /storage/ofd_packets/00187968 [23:52:30]Write 307 bytes [23:52:30]NVStorageSaveData done [23:52:30]OFDSenderStorePacket done [23:52:30]KKMCreateOFDPacket done [23:52:30]NVStorageSaveData kkm_last_timestamp [23:52:30]File name is /storage/kkm_last_timestamp [23:52:30]Write 4 bytes [23:52:30]NVStorageSaveData done [23:52:30]ExternCall_PrintAddStr [23:52:30]wPrintStart [23:52:30]Write to MH i2c: 01 00 00 09 03 0C [23:52:30]Write i2c OK [23:52:30]MH_I2C_Read... [23:52:30]Read from MH i2c: 01 [23:52:30]MH_I2C_Read... [23:52:30]Read from MH i2c: 01 07 00 [23:52:30]MH_I2C_Read... [23:52:30]Read from MH i2c: 01 07 00 09 03 00 00 00 00 00 FF 0F 21 [23:52:30]RasterBufferAndPrint [23:52:30]line Счет N : (1)210021 [23:52:30]line ИНН: 02508201610067 [23:52:30]line Контрольно-Кассовый Чек [23:52:30]line ПРОДАЖА [23:52:30]line ТРК (МРК, ГНК) : 31 [23:52:30]line Товар: 2710194210 [23:52:30]line D-ENERGY ДТ-К-5 [23:52:30]line 12.960 * 77.20 [23:52:30]line = 1000.51 [23:52:30]line НДС 12% НСП 1% [23:52:30]line > о реализуемом товаре [23:52:30]line ОКРУГЛЕНИЕ: -0.51 [23:52:30]line ИТОГО: 1000.00 [23:52:30]line Внесено: 1000.00 [23:52:30]line СДАЧА: 0.00 [23:52:30]line НСП 1% : 8.85 [23:52:30]line НДС 12% : 106.25 [23:52:30]line Наличными: 1000.00 [23:52:30]line Безнал.: 0.00 [23:52:30]line Место: АЗС № 86 "Партнер Нефть" [23:52:30]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [23:52:30]line СНО: Общий режим [23:52:30]line Чек 432 21.10.2024 23:52 [23:52:30]line Смена: 460 ФФД: 1.0 [23:52:30]line ЗНМ: 0300000155 [23:52:30]line РНМ: 0000000000100030 [23:52:30]line Версия ККМ: 001 [23:52:30]line ФМ: 0000000000965340 [23:52:30]line ФД: 187968 [23:52:30]line ФПД: 137518863584530 [23:52:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T235229&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187968&fm=137518863584530&tin=02508201610067®Number=0000000000100030&sum=100000 [23:52:30]written 0, free lines is 4095 [23:52:30]OFD Sender: Processing packet 187968 [packets to send 1062, broken 1061] [23:52:30]ProducePacketName [23:52:30]name=ofd_packets/00187968 [23:52:30]OFD Sender: To server: pG, [23:52:30]CommunicateWithHost lk.salyk.kg:30040 [23:52:30]ConnectInit lk.salyk.kg [23:52:30]Connected sock=10 [23:52:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 F1 C4 0D 01 5C D9 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 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B0 01 00 00 F4 03 04 00 3D E9 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 40 DE 02 00 35 04 06 00 7D 12 9B 03 8D 12 70 10 4B 41 D0 4A 2B 62 [23:52:30]Write to MH i2c: 01 00 00 34 03 37 [23:52:30]Write i2c OK [23:52:30]MH_I2C_Read... [23:52:30]Read from MH i2c: 01 [23:52:30]MH_I2C_Read... [23:52:30]Read from MH i2c: 01 07 00 [23:52:30]MH_I2C_Read... [23:52:31]Read from MH i2c: 01 07 00 34 03 00 00 00 00 00 61 0C AB [23:52:31]RasterBufferAndPrint [23:52:31]line [23:52:31]line [23:52:31]line [23:52:31]line [23:52:31]line [23:52:31]written 0, free lines is 3173 [23:52:31]MH_Cut [23:52:31]Write to MH i2c: D1 01 00 3B 03 01 10 [23:52:31]Write i2c OK [23:52:31]MH_I2C_Read... [23:52:31]Read from MH i2c: D1 [23:52:31]MH_I2C_Read... [23:52:31]Read from MH i2c: D1 01 00 [23:52:31]MH_I2C_Read... [23:52:31]Read from MH i2c: D1 01 00 3B 03 00 0F [23:52:31]Write to MH i2c: 01 00 00 3C 03 3F [23:52:31]Write i2c OK [23:52:31]MH_I2C_Read... [23:52:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 3F BC 47 00 74 6A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 40 DE 02 00 F4 03 04 00 2C 93 16 67 B6 04 01 00 00 61 62 1F 10 6D 8A 5D A4 [23:52:31]CommunicateWithHost err = 0 [23:52:31]CheckOFDResponse [23:52:31]1017 (14) - 77093643461234 [23:52:31]1041 (16) - 0000000000965340 [23:52:31]1040 (4) - 187968 [23:52:31]1012 (4) - 21.10.2024 17:45 [23:52:31]1206 (1) - 0 [23:52:31]OFD Sender: Remove packet 187968 [23:52:31]ProducePacketName [23:52:31]name=ofd_packets/00187968 [23:52:31]NVStorageDeleteData [23:52:31]OFD Sender: No OFD packet to send [23:52:32]*** Cut start [23:52:32]*** Partial cut [23:52:32]*** CUTSNS_PIN = 1 [23:52:32]*** CUTSNS_PIN = 0 [23:52:32]*** Brake cut motor [23:52:32]Read from MH i2c: 01 [23:52:32]MH_I2C_Read... [23:52:32]*** Stop cut motor [23:52:32]*** Cut end [23:52:32]Read from MH i2c: 01 07 00 [23:52:32]MH_I2C_Read... [23:52:32]Read from MH i2c: 01 07 00 3C 03 00 00 00 00 00 FF 0F 54 [23:52:32]process_action close_receipt done [23:52:32]requested_data is exist [23:52:32]produce_requested_data [23:52:32]requested_item fm.sn is exist - process it [23:52:32]wFMCommunicate request_size=4 [23:52:32]MH_SAM_APDU [23:52:32]CAPDU: 80 11 00 00 [23:52:32]Write to MH i2c: E2 08 00 3D 03 80 11 00 00 00 00 00 00 BA [23:52:32]Write i2c OK [23:52:32]MH_I2C_Read... [23:52:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:52:32]Read from MH i2c: E2 [23:52:32]MH_I2C_Read... [23:52:32]Read from MH i2c: E2 17 00 [23:52:32]MH_I2C_Read... [23:52:32]Read from MH i2c: E2 17 00 3D 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 08 [23:52:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [23:52:32]wFMCommunicate OK [23:52:32]requested_item fd.num is exist - process it [23:52:32]SAM_PROTO_GetFieldsCounters [23:52:32]wFMCommunicate request_size=4 [23:52:32]MH_SAM_APDU [23:52:32]CAPDU: 80 13 00 00 [23:52:32]Write to MH i2c: E2 08 00 3E 03 80 13 00 00 00 00 00 00 BD [23:52:32]Write i2c OK [23:52:32]MH_I2C_Read... [23:52:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:52:33]Read from MH i2c: E2 [23:52:33]MH_I2C_Read... [23:52:33]Read from MH i2c: E2 62 00 [23:52:33]MH_I2C_Read... [23:52:33]Read from MH i2c: E2 62 00 3E 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 40 DE 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 B0 01 00 00 5E 04 04 00 B0 01 00 00 57 04 04 00 B1 01 00 00 19 04 04 00 00 00 00 00 90 00 C4 [23:52:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 40 DE 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 B0 01 00 00 5E 04 04 00 B0 01 00 00 57 04 04 00 B1 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:52:33]wFMCommunicate OK [23:52:33]SAM_PROTO_GetFieldsCounters done [23:52:33]requested_item shift.num is exist - process it [23:52:33]requested_item shift.opened is exist - process it [23:52:33]req_shift_opened [23:52:33]FM_GetShiftState [23:52:33]SAM_PROTO_GetShiftState [23:52:33]wFMCommunicate request_size=4 [23:52:33]MH_SAM_APDU [23:52:33]CAPDU: 80 13 01 00 [23:52:33]Write to MH i2c: E2 08 00 3F 03 80 13 01 00 00 00 00 00 BF [23:52:33]Write i2c OK [23:52:33]MH_I2C_Read... [23:52:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:52:33]Read from MH i2c: E2 [23:52:33]MH_I2C_Read... [23:52:33]Read from MH i2c: E2 0E 00 [23:52:33]MH_I2C_Read... [23:52:33]Read from MH i2c: E2 0E 00 3F 03 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 1E [23:52:33]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [23:52:33]wFMCommunicate OK [23:52:33]SAM_PROTO_GetShiftState done [23:52:33]FM_GetShiftState done [23:52:33]req_shift_opened done [23:52:33]requested_item shift.open_date is exist - process it [23:52:33]req_shift_open_date [23:52:33]req_shift_open_date done [23:52:33]produce_requested_data done [23:52:33]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187968,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [23:52:33]process_action_free close_receipt [23:52:33]json_value_free [23:52:33]json_value_free done [23:52:33]process_json_proto returns [23:52:33]Send response to host [23:52:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187968,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [23:52:33]free response buf [23:52:33]execute_script done [23:52:33]execute_script returns [23:52:33]free content buf [23:52:33]Sock 8.Close socket [23:52:33]Sock 8.Thread stoped [23:52:36]OFD Sender: No OFD packet to send [23:52:41]OFD Sender: No OFD packet to send [23:52:46]OFD Sender: No OFD packet to send [23:52:51]OFD Sender: No OFD packet to send [23:52:56]OFD Sender: No OFD packet to send [23:53:01]OFD Sender: No OFD packet to send [23:53:06]OFD Sender: No OFD packet to send [23:53:11]OFD Sender: No OFD packet to send [23:53:16]OFD Sender: No OFD packet to send [23:53:21]OFD Sender: No OFD packet to send [23:53:26]OFD Sender: No OFD packet to send [23:53:31]OFD Sender: No OFD packet to send [23:53:36]OFD Sender: No OFD packet to send [23:53:41]OFD Sender: No OFD packet to send [23:53:46]OFD Sender: No OFD packet to send [23:53:51]OFD Sender: No OFD packet to send [23:53:56]OFD Sender: No OFD packet to send [23:54:01]OFD Sender: No OFD packet to send [23:54: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:53]OFD Sender: No OFD packet to send [23:57:58]OFD Sender: No OFD packet to send [23:58:03]OFD Sender: No OFD packet to send [23:58:08]OFD Sender: No OFD packet to send [23:58:13]OFD Sender: No OFD packet to send [23:58:18]OFD Sender: No OFD packet to send [23:58:23]OFD Sender: No OFD packet to send [23:58:28]OFD Sender: No OFD packet to send [23:58:33]OFD Sender: No OFD packet to send [23:58:38]OFD Sender: No OFD packet to send [23:58:43]OFD Sender: No OFD packet to send [23:58:48]OFD Sender: No OFD packet to send [23:58:53]OFD Sender: No OFD packet to send [23:58:58]OFD Sender: No OFD packet to send [23:59:03]OFD Sender: No OFD packet to send [23:59:08]OFD Sender: No OFD packet to send [23:59:13]OFD Sender: No OFD packet to send [23:59:18]OFD Sender: No OFD packet to send [23:59:23]OFD Sender: No OFD packet to send [23:59:28]OFD Sender: No OFD packet to send [23:59:33]OFD Sender: No OFD packet to send [23:59:38]OFD Sender: No OFD packet to send [23:59:43]OFD Sender: No OFD packet to send [23:59:48]OFD Sender: No OFD packet to send [23:59:53]OFD Sender: No OFD packet to send [23:59:58]OFD Sender: No OFD packet to send [00:00:03]OFD Sender: No OFD packet to send [00:00:08]OFD Sender: No OFD packet to send [00:00:13]OFD Sender: No OFD packet to send [00:00:18]OFD Sender: No OFD packet to send [00:00:23]OFD Sender: No OFD packet to send [00:00:28]OFD Sender: No OFD packet to send [00:00:33]OFD Sender: No OFD packet to send [00:00:38]OFD Sender: No OFD packet to send [00:00:43]OFD Sender: No OFD packet to send [00:00:48]OFD Sender: No OFD packet to send [00:00:53]OFD Sender: No OFD packet to send [00:00:58]OFD Sender: No OFD packet to send [00:01:03]OFD Sender: No OFD packet to send [00:01:08]OFD Sender: No OFD packet to send [00:01:13]OFD Sender: No OFD packet to send [00:01:18]OFD Sender: No OFD packet to send [00:01:23]OFD Sender: No OFD packet to send [00:01:28]OFD Sender: No OFD packet to send [00:01:33]OFD Sender: No OFD packet to send [00:01:39]OFD Sender: No OFD packet to send [00:01:41]accept exits with 9 [00:01:41]New connection [00:01:41]New thread 3067055460 created [00:01:41]Thread 3067198820 joined [00:01:41]Waiting for new connection... [00:01:41] Sock 9.Parse request [00:01:41]Sock 9.Check first char [00:01:41]Sock 9.First char is OK [00:01:41]request: POST /json_proto HTTP/1.0 [00:01:41]Method: POST [00:01:41]URL: /json_proto [00:01:41]Method is POST - this is cgi request [00:01:41]url: /json_proto [00:01:41]query_string will be loaded in cgi processing [00:01:41]execute_cgi json_proto POST (null) [00:01:41]execute_cgi path=json_proto method=POST [00:01:41]POST find Content-Length [00:01:41]Host: 172.17.42.131:8080 [00:01:41]Content-Length: 688 [00:01:41]Content-Type: application/json [00:01:41] [00:01:41]POST finish read [00:01:41]Found Content-Length = 688 [00:01:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210022", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 31.740, "sum" : 2450.33, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 2450.00, "payments": [ { "type": 0, "sum" : 2450.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:01:41]execute_script... [00:01: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)210022", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 31.740, "sum" : 2450.33, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 2450.00, "payments": [ { "type": 0, "sum" : 2450.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:01:41]POST & json_proto [00:01:41]process_json_proto [00:01:41]json parsed OK: [00:01:41]protocol is kg_v1.0 [00:01:41]action value=close_receipt [00:01:41]process_action close_receipt [00:01:41]cmd_close_receipt [00:01:41]MH_GetDate [00:01:41]Write to MH i2c: F0 00 00 40 03 32 [00:01:41]Write i2c OK [00:01:41]MH_I2C_Read... [00:01:41]Read from MH i2c: F0 [00:01:41]MH_I2C_Read... [00:01:41]Read from MH i2c: F0 09 00 [00:01:41]MH_I2C_Read... [00:01:41]Read from MH i2c: F0 09 00 40 03 00 66 EB 16 67 A0 18 CA 66 F1 [00:01:41]GetLastDocTimeStamp 1729554749 [00:01:41]current date 1729555302 [00:01:41]FM_GetShiftState [00:01:41]SAM_PROTO_GetShiftState [00:01:41]wFMCommunicate request_size=4 [00:01:41]MH_SAM_APDU [00:01:41]CAPDU: 80 13 01 00 [00:01:41]Write to MH i2c: E2 08 00 41 03 80 13 01 00 00 00 00 00 C1 [00:01:41]Write i2c OK [00:01:41]MH_I2C_Read... [00:01:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:01:41]Read from MH i2c: E2 [00:01:41]MH_I2C_Read... [00:01:41]Read from MH i2c: E2 0E 00 [00:01:41]MH_I2C_Read... [00:01:41]Read from MH i2c: E2 0E 00 41 03 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 20 [00:01:41]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [00:01:41]wFMCommunicate OK [00:01:41]SAM_PROTO_GetShiftState done [00:01:41]FM_GetShiftState done [00:01:41]opened in 1729469754 [00:01:41]opened+sec_in_day 1729556154 [00:01:41]quantity*price = 245032 [00:01:41]sum+1 = 245034 [00:01:41]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.33 ИТОГО: 2450.00 Внесено: 3000.00 СДАЧА: 550.00 НСП 1% : 21.68 НДС 12% : 260.21 Наличными: 2450.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 433 22.10.2024 00:01 Смена: 460 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 187969 ФПД: 122090023096478 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T000142&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187969&fm=122090023096478&tin=02508201610067®Number=0000000000100030&sum=245000 [00:01:43]StoreToDocumentArchive [00:01:43]shift 460 fd 187969 [00:01:43]save to /storage/0460/doc_00187969 [00:01:43]save last doc name /storage/0460/doc_00187969 to /storage/kkm_last_doc_name [00:01:43]save OK [00:01:43]Clear old archive folders... [00:01:43]ProcessDocumentItem done err = 0, tmpTLVsize=257 [00:01:43]tlvbuf is 01B991F0 [00:01:43]SAM_PROTO_ClearQueue [00:01:43]wFMCommunicate request_size=4 [00:01:43]MH_SAM_APDU [00:01:43]CAPDU: 80 09 00 00 [00:01:43]Write to MH i2c: E2 08 00 4E 03 80 09 00 00 00 00 00 00 C3 [00:01:43]Write i2c OK [00:01:43]MH_I2C_Read... [00:01:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:01:43]Read from MH i2c: E2 [00:01:43]MH_I2C_Read... [00:01:43]Read from MH i2c: E2 03 00 [00:01:43]MH_I2C_Read... [00:01:43]Read from MH i2c: E2 03 00 4E 03 00 90 00 C5 [00:01:43]RAPDU: 90 00 [00:01:43]wFMCommunicate OK [00:01:43]SAM_PROTO_ClearQueue done [00:01:43]KKMCreateOFDPacket [00:01:43]OFDProtocolAddRootSTLVToBuf [00:01:43]FM_MakeSignedData [00:01:43]FM_MakeSignedData [00:01:43]SAM_PROTO_SignData [00:01:43]wFMCommunicate request_size=4 [00:01:43]MH_SAM_APDU [00:01:43]CAPDU: 80 0D 01 02 [00:01:43]Write to MH i2c: E2 08 00 4F 03 80 0D 01 02 00 00 00 00 CB [00:01:43]Write i2c OK [00:01:43]MH_I2C_Read... [00:01:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:01:43]Read from MH i2c: E2 [00:01:43]MH_I2C_Read... [00:01:43]Read from MH i2c: E2 03 00 [00:01:43]MH_I2C_Read... [00:01:43]Read from MH i2c: E2 03 00 4F 03 00 90 00 C6 [00:01:43]RAPDU: 90 00 [00:01:43]wFMCommunicate OK [00:01:43]wFMCommunicate request_size=255 [00:01:43]MH_SAM_APDU [00:01:43]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 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 FC 7B 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 29 BD 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 BD 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 78 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A5 65 00 00 00 00 07 04 06 00 08 BD 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B1 01 00 00 F4 03 04 00 66 EB 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 41 DE 02 [00:01:43]Write to MH i2c: E2 02 01 50 03 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 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 FC 7B 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 29 BD 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 BD 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 78 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A5 65 00 00 00 00 07 04 06 00 08 BD 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B1 01 00 00 F4 03 04 00 66 EB 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 41 DE 02 00 00 74 [00:01:43]Write i2c OK [00:01:43]MH_I2C_Read... [00:01:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:01:43]Read from MH i2c: E2 [00:01:43]MH_I2C_Read... [00:01:43]Read from MH i2c: E2 03 00 [00:01:43]MH_I2C_Read... [00:01:43]Read from MH i2c: E2 03 00 50 03 00 90 00 C7 [00:01:43]RAPDU: 90 00 [00:01:43]wFMCommunicate OK [00:01:43]wFMCommunicate request_size=16 [00:01:43]MH_SAM_APDU [00:01:43]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 6F 0A 4C 75 10 9E [00:01:43]Write to MH i2c: E2 13 00 51 03 80 0D 02 02 0B 00 00 35 04 06 00 6F 0A 4C 75 10 9E 00 00 0B [00:01:43]Write i2c OK [00:01:43]MH_I2C_Read... [00:01:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:01:43]Read from MH i2c: E2 [00:01:43]MH_I2C_Read... [00:01:43]Read from MH i2c: E2 03 00 [00:01:43]MH_I2C_Read... [00:01:43]Read from MH i2c: E2 03 00 51 03 00 90 00 C8 [00:01:43]RAPDU: 90 00 [00:01:43]wFMCommunicate OK [00:01:43]wFMCommunicate request_size=4 [00:01:43]MH_SAM_APDU [00:01:43]CAPDU: 80 0D 03 02 [00:01:43]Write to MH i2c: E2 08 00 52 03 80 0D 03 02 00 00 00 00 D0 [00:01:43]Write i2c OK [00:01:43]MH_I2C_Read... [00:01:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:01:43]Read from MH i2c: E2 [00:01:43]MH_I2C_Read... [00:01:43]Read from MH i2c: E2 0B 00 [00:01:43]MH_I2C_Read... [00:01:43]Read from MH i2c: E2 0B 00 52 03 00 50 9E 57 6F 99 9D 9E 5B 90 00 B4 [00:01:43]RAPDU: 50 9E 57 6F 99 9D 9E 5B 90 00 [00:01:43]wFMCommunicate OK [00:01:43]SAM_PROTO_SignData done [00:01:43]FM_MakeSignedData done [00:01:43]CreateOFDProtocolMessage [00:01:43]wFMCommunicate request_size=4 [00:01:43]MH_SAM_APDU [00:01:43]CAPDU: 80 11 00 00 [00:01:43]Write to MH i2c: E2 08 00 53 03 80 11 00 00 00 00 00 00 D0 [00:01:43]Write i2c OK [00:01:43]MH_I2C_Read... [00:01:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:01:43]Read from MH i2c: E2 [00:01:43]MH_I2C_Read... [00:01:43]Read from MH i2c: E2 17 00 [00:01:43]MH_I2C_Read... [00:01:43]Read from MH i2c: E2 17 00 53 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 1E [00:01:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [00:01:43]wFMCommunicate OK [00:01:43]CreateOFDProtocolMessage done [00:01:43]OFDSenderStorePacket 187969 [00:01:43]StoreOFDPacket docnum=187969 [00:01:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 AA 30 0D 01 F5 F0 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 FC 7B 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 29 BD 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 BD 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 78 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A5 65 00 00 00 00 07 04 06 00 08 BD 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B1 01 00 00 F4 03 04 00 66 EB 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 41 DE 02 00 35 04 06 00 6F 0A 4C 75 10 9E 50 9E 57 6F 99 9D 9E 5B [00:01:43]CheckFolder [00:01:43]dirname=/storage/ofd_packets [00:01:43]CheckFolder done [00:01:43]ProducePacketName [00:01:43]name=ofd_packets/00187969 [00:01:43]NVStorageSaveData ofd_packets/00187969 [00:01:43]File name is /storage/ofd_packets/00187969 [00:01:43]Write 307 bytes [00:01:43]NVStorageSaveData done [00:01:43]OFDSenderStorePacket done [00:01:43]KKMCreateOFDPacket done [00:01:43]NVStorageSaveData kkm_last_timestamp [00:01:43]File name is /storage/kkm_last_timestamp [00:01:43]Write 4 bytes [00:01:43]NVStorageSaveData done [00:01:43]ExternCall_PrintAddStr [00:01:43]wPrintStart [00:01:43]Write to MH i2c: 01 00 00 54 03 57 [00:01:43]Write i2c OK [00:01:43]MH_I2C_Read... [00:01:43]Read from MH i2c: 01 [00:01:43]MH_I2C_Read... [00:01:43]Read from MH i2c: 01 07 00 [00:01:43]MH_I2C_Read... [00:01:43]Read from MH i2c: 01 07 00 54 03 00 00 00 00 00 FF 0F 6C [00:01:43]RasterBufferAndPrint [00:01:43]line Счет N : (1)210022 [00:01:43]line ИНН: 02508201610067 [00:01:43]line Контрольно-Кассовый Чек [00:01:43]line ПРОДАЖА [00:01:43]line ТРК (МРК, ГНК) : 11 [00:01:43]line Товар: 2710194210 [00:01:43]line D-ENERGY ДТ-К-5 [00:01:43]line 31.740 * 77.20 [00:01:43]line = 2450.33 [00:01:43]line НДС 12% НСП 1% [00:01:43]line > о реализуемом товаре [00:01:43]line ОКРУГЛЕНИЕ: -0.33 [00:01:43]line ИТОГО: 2450.00 [00:01:43]line Внесено: 3000.00 [00:01:43]line СДАЧА: 550.00 [00:01:43]line НСП 1% : 21.68 [00:01:43]line НДС 12% : 260.21 [00:01:43]line Наличными: 2450.00 [00:01:43]line Безнал.: 0.00 [00:01:43]line Место: АЗС № 86 "Партнер Нефть" [00:01:43]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [00:01:43]line СНО: Общий режим [00:01:43]line Чек 433 22.10.2024 00:01 [00:01:43]line Смена: 460 ФФД: 1.0 [00:01:43]line ЗНМ: 0300000155 [00:01:43]line РНМ: 0000000000100030 [00:01:43]line Версия ККМ: 001 [00:01:43]line ФМ: 0000000000965340 [00:01:43]line ФД: 187969 [00:01:43]line ФПД: 122090023096478 [00:01:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T000142&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187969&fm=122090023096478&tin=02508201610067®Number=0000000000100030&sum=245000 [00:01:43]written 0, free lines is 4095 [00:01:43]OFD Sender: Processing packet 187969 [packets to send 1062, broken 1061] [00:01:43]ProducePacketName [00:01:43]name=ofd_packets/00187969 [00:01:43]OFD Sender: To server: pG, [00:01:43]CommunicateWithHost lk.salyk.kg:30040 [00:01:43]ConnectInit lk.salyk.kg [00:01:43]Connected sock=10 [00:01:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 AA 30 0D 01 F5 F0 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 FC 7B 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 29 BD 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 BD 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 78 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A5 65 00 00 00 00 07 04 06 00 08 BD 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B1 01 00 00 F4 03 04 00 66 EB 16 67 0E 04 04 00 CC 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 41 DE 02 00 35 04 06 00 6F 0A 4C 75 10 9E 50 9E 57 6F 99 9D 9E 5B [00:01:44]Write to MH i2c: 01 00 00 7F 03 82 [00:01:44]Write i2c OK [00:01:44]MH_I2C_Read... [00:01:44]Read from MH i2c: 01 [00:01:44]MH_I2C_Read... [00:01:44]Read from MH i2c: 01 07 00 [00:01:44]MH_I2C_Read... [00:01:44]Read from MH i2c: 01 07 00 7F 03 00 00 00 00 00 64 0C F9 [00:01:44]RasterBufferAndPrint [00:01:44]line [00:01:44]line [00:01:44]line [00:01:44]line [00:01:44]line [00:01:44]written 0, free lines is 3176 [00:01:44]MH_Cut [00:01:44]Write to MH i2c: D1 01 00 86 03 01 5B [00:01:44]Write i2c OK [00:01:44]MH_I2C_Read... [00:01:44]Read from MH i2c: D1 [00:01:44]MH_I2C_Read... [00:01:44]Read from MH i2c: D1 01 00 [00:01:44]MH_I2C_Read... [00:01:44]Read from MH i2c: D1 01 00 86 03 00 5A [00:01:44]Write to MH i2c: 01 00 00 87 03 8A [00:01:44]Write i2c OK [00:01:44]MH_I2C_Read... [00:01:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 13 BE 47 00 C8 1B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 41 DE 02 00 F4 03 04 00 55 95 16 67 B6 04 01 00 00 16 43 9D 04 2E 91 49 B9 [00:01:44]CommunicateWithHost err = 0 [00:01:44]CheckOFDResponse [00:01:44]1017 (14) - 77093643461234 [00:01:44]1041 (16) - 0000000000965340 [00:01:44]1040 (4) - 187969 [00:01:44]1012 (4) - 21.10.2024 17:54 [00:01:44]1206 (1) - 0 [00:01:44]OFD Sender: Remove packet 187969 [00:01:44]ProducePacketName [00:01:44]name=ofd_packets/00187969 [00:01:44]NVStorageDeleteData [00:01:44]OFD Sender: No OFD packet to send [00:01:45]*** Cut start [00:01:45]*** Partial cut [00:01:45]*** CUTSNS_PIN = 1 [00:01:45]*** CUTSNS_PIN = 0 [00:01:45]*** Brake cut motor [00:01:45]Read from MH i2c: 01 [00:01:45]MH_I2C_Read... [00:01:45]*** Stop cut motor [00:01:45]*** Cut end [00:01:45]Read from MH i2c: 01 07 00 [00:01:45]MH_I2C_Read... [00:01:45]Read from MH i2c: 01 07 00 87 03 00 00 00 00 00 FF 0F 9F [00:01:45]process_action close_receipt done [00:01:45]requested_data is exist [00:01:45]produce_requested_data [00:01:45]requested_item fm.sn is exist - process it [00:01:45]wFMCommunicate request_size=4 [00:01:45]MH_SAM_APDU [00:01:45]CAPDU: 80 11 00 00 [00:01:45]Write to MH i2c: E2 08 00 88 03 80 11 00 00 00 00 00 00 05 [00:01:45]Write i2c OK [00:01:45]MH_I2C_Read... [00:01:46]Read from MH i2c: E2 [00:01:46]MH_I2C_Read... [00:01:46]Read from MH i2c: E2 17 00 [00:01:46]MH_I2C_Read... [00:01:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:01:46]Read from MH i2c: E2 17 00 88 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 53 [00:01:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [00:01:46]wFMCommunicate OK [00:01:46]requested_item fd.num is exist - process it [00:01:46]SAM_PROTO_GetFieldsCounters [00:01:46]wFMCommunicate request_size=4 [00:01:46]MH_SAM_APDU [00:01:46]CAPDU: 80 13 00 00 [00:01:46]Write to MH i2c: E2 08 00 89 03 80 13 00 00 00 00 00 00 08 [00:01:46]Write i2c OK [00:01:46]MH_I2C_Read... [00:01:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:01:46]Read from MH i2c: E2 [00:01:46]MH_I2C_Read... [00:01:46]Read from MH i2c: E2 62 00 [00:01:46]MH_I2C_Read... [00:01:46]Read from MH i2c: E2 62 00 89 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 41 DE 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 B1 01 00 00 5E 04 04 00 B1 01 00 00 57 04 04 00 B2 01 00 00 19 04 04 00 00 00 00 00 90 00 13 [00:01:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 41 DE 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 B1 01 00 00 5E 04 04 00 B1 01 00 00 57 04 04 00 B2 01 00 00 19 04 04 00 00 00 00 00 90 00 [00:01:46]wFMCommunicate OK [00:01:46]SAM_PROTO_GetFieldsCounters done [00:01:46]requested_item shift.num is exist - process it [00:01:46]requested_item shift.opened is exist - process it [00:01:46]req_shift_opened [00:01:46]FM_GetShiftState [00:01:46]SAM_PROTO_GetShiftState [00:01:46]wFMCommunicate request_size=4 [00:01:46]MH_SAM_APDU [00:01:46]CAPDU: 80 13 01 00 [00:01:46]Write to MH i2c: E2 08 00 8A 03 80 13 01 00 00 00 00 00 0A [00:01:46]Write i2c OK [00:01:46]MH_I2C_Read... [00:01:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:01:46]Read from MH i2c: E2 [00:01:46]MH_I2C_Read... [00:01:46]Read from MH i2c: E2 0E 00 [00:01:46]MH_I2C_Read... [00:01:46]Read from MH i2c: E2 0E 00 8A 03 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 69 [00:01:46]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [00:01:46]wFMCommunicate OK [00:01:46]SAM_PROTO_GetShiftState done [00:01:46]FM_GetShiftState done [00:01:46]req_shift_opened done [00:01:46]requested_item shift.open_date is exist - process it [00:01:46]req_shift_open_date [00:01:46]req_shift_open_date done [00:01:46]produce_requested_data done [00:01:46]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187969,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [00:01:46]process_action_free close_receipt [00:01:46]json_value_free [00:01:46]json_value_free done [00:01:46]process_json_proto returns [00:01:46]Send response to host [00:01:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187969,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [00:01:46]free response buf [00:01:46]execute_script done [00:01:46]execute_script returns [00:01:46]free content buf [00:01:46]Sock 9.Close socket [00:01:46]Sock 9.Thread stoped [00:01:49]OFD Sender: No OFD packet to send [00:01:54]OFD Sender: No OFD packet to send [00:01:59]OFD Sender: No OFD packet to send [00:02:04]OFD Sender: No OFD packet to send [00:02:09]OFD Sender: No OFD packet to send [00:02:14]OFD Sender: No OFD packet to send [00:02:19]OFD Sender: No OFD packet to send [00:02:24]OFD Sender: No OFD packet to send [00:02:29]OFD Sender: No OFD packet to send [00:02:34]OFD Sender: No OFD packet to send [00:02:39]OFD Sender: No OFD packet to send [00:02:45]OFD Sender: No OFD packet to send [00:02:50]OFD Sender: No OFD packet to send [00:02:55]OFD Sender: No OFD packet to send [00:03:00]OFD Sender: No OFD packet to send [00:03:05]OFD Sender: No OFD packet to send [00:03:10]OFD Sender: No OFD packet to send [00:03:15]OFD Sender: No OFD packet to send [00:03:20]OFD Sender: No OFD packet to send [00:03:25]OFD Sender: No OFD packet to send [00:03:30]OFD Sender: No OFD packet to send [00:03:35]OFD Sender: No OFD packet to send [00:03:40]OFD Sender: No OFD packet to send [00:03:45]OFD Sender: No OFD packet to send [00:03:50]OFD Sender: No OFD packet to send [00:03:55]OFD Sender: No OFD packet to send [00:04:00]OFD Sender: No OFD packet to send [00:04:05]OFD Sender: No OFD packet to send [00:04:10]OFD Sender: No OFD packet to send [00:04:15]OFD Sender: No OFD packet to send [00:04:20]OFD Sender: No OFD packet to send [00:04:25]OFD Sender: No OFD packet to send [00:04:30]OFD Sender: No OFD packet to send [00:04:35]OFD Sender: No OFD packet to send [00:04:40]OFD Sender: No OFD packet to send [00:04:45]OFD Sender: No OFD packet to send [00:04:50]OFD Sender: No OFD packet to send [00:04:55]OFD Sender: No OFD packet to send [00:05:00]OFD Sender: No OFD packet to send [00:05:05]OFD Sender: No OFD packet to send [00:05:10]OFD Sender: No OFD packet to send [00:05:15]OFD Sender: No OFD packet to send [00:05:20]OFD Sender: No OFD packet to send [00:05:25]OFD Sender: No OFD packet to send [00:05:30]OFD Sender: No OFD packet to send [00:05:35]OFD Sender: No OFD packet to send [00:05:40]OFD Sender: No OFD packet to send [00:05:45]OFD Sender: No OFD packet to send [00:05:50]OFD Sender: No OFD packet to send [00:05:55]OFD Sender: No OFD packet to send [00:06:00]OFD Sender: No OFD packet to send [00:06:00]accept exits with 8 [00:06:00]New connection [00:06:00]New thread 3067198820 created [00:06:00]Thread 3067055460 joined [00:06:00]Waiting for new connection... [00:06:00] Sock 8.Parse request [00:06:00]Sock 8.Check first char [00:06:00]Sock 8.First char is OK [00:06:00]request: POST /json_proto HTTP/1.0 [00:06:00]Method: POST [00:06:00]URL: /json_proto [00:06:00]Method is POST - this is cgi request [00:06:00]url: /json_proto [00:06:00]query_string will be loaded in cgi processing [00:06:00]execute_cgi json_proto POST (null) [00:06:00]execute_cgi path=json_proto method=POST [00:06:00]POST find Content-Length [00:06:00]Host: 172.17.42.131:8080 [00:06:00]Content-Length: 215 [00:06:00]Content-Type: application/json [00:06:00] [00:06:00]POST finish read [00:06:00]Found Content-Length = 215 [00:06:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:06:00]execute_script... [00:06:00]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:06:00]POST & json_proto [00:06:00]process_json_proto [00:06:00]json parsed OK: [00:06:00]protocol is kg_v1.0 [00:06:00]action value=get_value [00:06:00]process_action get_value [00:06:00]cmd_get_value [00:06:00]process_action get_value done [00:06:00]requested_data is exist [00:06:00]produce_requested_data [00:06:00]requested_item kkm.sn is exist - process it [00:06:00]requested_item kkm.ver is exist - process it [00:06:00]requested_item fm.sn is exist - process it [00:06:00]wFMCommunicate request_size=4 [00:06:00]MH_SAM_APDU [00:06:00]CAPDU: 80 11 00 00 [00:06:00]Write to MH i2c: E2 08 00 8B 03 80 11 00 00 00 00 00 00 08 [00:06:00]Write i2c OK [00:06:00]MH_I2C_Read... [00:06:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:06:00]Read from MH i2c: E2 [00:06:00]MH_I2C_Read... [00:06:00]Read from MH i2c: E2 17 00 [00:06:00]MH_I2C_Read... [00:06:00]Read from MH i2c: E2 17 00 8B 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 56 [00:06:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [00:06:00]wFMCommunicate OK [00:06:00]requested_item fd.num is exist - process it [00:06:00]SAM_PROTO_GetFieldsCounters [00:06:00]wFMCommunicate request_size=4 [00:06:00]MH_SAM_APDU [00:06:00]CAPDU: 80 13 00 00 [00:06:00]Write to MH i2c: E2 08 00 8C 03 80 13 00 00 00 00 00 00 0B [00:06:00]Write i2c OK [00:06:00]MH_I2C_Read... [00:06:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:06:01]Read from MH i2c: E2 [00:06:01]MH_I2C_Read... [00:06:01]Read from MH i2c: E2 62 00 [00:06:01]MH_I2C_Read... [00:06:01]Read from MH i2c: E2 62 00 8C 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 41 DE 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 B1 01 00 00 5E 04 04 00 B1 01 00 00 57 04 04 00 B2 01 00 00 19 04 04 00 00 00 00 00 90 00 16 [00:06:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 41 DE 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 B1 01 00 00 5E 04 04 00 B1 01 00 00 57 04 04 00 B2 01 00 00 19 04 04 00 00 00 00 00 90 00 [00:06:01]wFMCommunicate OK [00:06:01]SAM_PROTO_GetFieldsCounters done [00:06:01]requested_item shift.num is exist - process it [00:06:01]requested_item shift.opened is exist - process it [00:06:01]req_shift_opened [00:06:01]FM_GetShiftState [00:06:01]SAM_PROTO_GetShiftState [00:06:01]wFMCommunicate request_size=4 [00:06:01]MH_SAM_APDU [00:06:01]CAPDU: 80 13 01 00 [00:06:01]Write to MH i2c: E2 08 00 8D 03 80 13 01 00 00 00 00 00 0D [00:06:01]Write i2c OK [00:06:01]MH_I2C_Read... [00:06:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:06:01]Read from MH i2c: E2 [00:06:01]MH_I2C_Read... [00:06:01]Read from MH i2c: E2 0E 00 [00:06:01]MH_I2C_Read... [00:06:01]Read from MH i2c: E2 0E 00 8D 03 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 6C [00:06:01]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [00:06:01]wFMCommunicate OK [00:06:01]SAM_PROTO_GetShiftState done [00:06:01]FM_GetShiftState done [00:06:01]req_shift_opened done [00:06:01]requested_item shift.open_date is exist - process it [00:06:01]req_shift_open_date [00:06:01]req_shift_open_date done [00:06:01]produce_requested_data done [00:06:01]produce_requested_data return {"kkm.sn":"0300000155","kkm.ver":"001","fm.sn":"0000000000965340","fd.num":187969,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [00:06:01]process_action_free get_value [00:06:01]json_value_free [00:06:01]json_value_free done [00:06:01]process_json_proto returns [00:06:01]Send response to host [00:06:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000155","kkm.ver":"001","fm.sn":"0000000000965340","fd.num":187969,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [00:06:01]free response buf [00:06:01]execute_script done [00:06:01]execute_script returns [00:06:01]free content buf [00:06:01]Sock 8.Close socket [00:06:01]Sock 8.Thread stoped [00:06:01]accept exits with 9 [00:06:01]New connection [00:06:01]New thread 3067055460 created [00:06:01]Thread 3067198820 joined [00:06:01]Waiting for new connection... [00:06:01] Sock 9.Parse request [00:06:01]Sock 9.Check first char [00:06:01]Sock 9.First char is OK [00:06:01]request: POST /json_proto HTTP/1.0 [00:06:01]Method: POST [00:06:01]URL: /json_proto [00:06:01]Method is POST - this is cgi request [00:06:01]url: /json_proto [00:06:01]query_string will be loaded in cgi processing [00:06:01]execute_cgi json_proto POST (null) [00:06:01]execute_cgi path=json_proto method=POST [00:06:01]POST find Content-Length [00:06:01]Host: 172.17.42.131:8080 [00:06:01]Content-Length: 331 [00:06:01]Content-Type: application/json [00:06:01] [00:06:01]POST finish read [00:06:01]Found Content-Length = 331 [00:06:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:06:01]execute_script... [00:06:01]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:06:01]POST & json_proto [00:06:01]process_json_proto [00:06:01]json parsed OK: [00:06:01]protocol is kg_v1.0 [00:06:01]action value=get_value [00:06:01]process_action get_value [00:06:01]cmd_get_value [00:06:01]process_action get_value done [00:06:01]requested_data is exist [00:06:01]produce_requested_data [00:06:01]requested_item fm.sale.total is exist - process it [00:06:01]SAM_PROTO_GetFMData [00:06:01]wFMCommunicate request_size=4 [00:06:01]MH_SAM_APDU [00:06:01]CAPDU: 80 13 03 00 [00:06:01]Write to MH i2c: E2 08 00 8E 03 80 13 03 00 00 00 00 00 10 [00:06:01]Write i2c OK [00:06:01]MH_I2C_Read... [00:06:01]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:06:01]Read from MH i2c: E2 [00:06:01]MH_I2C_Read... [00:06:01]Read from MH i2c: E2 FD 00 [00:06:01]MH_I2C_Read... [00:06:01]Read from MH i2c: E2 FD 00 8E 03 00 CB 04 85 04 C7 04 6E 04 04 00 A9 DA 02 00 69 04 A4 00 6F 04 04 00 1A DA 02 00 B1 04 05 00 9F 34 FF B7 06 70 04 05 00 CC D2 1C 9F 04 72 04 05 00 D3 61 E2 18 02 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 25 6E B0 B6 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 D4 24 39 0F EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 A1 00 6F 04 04 00 8F 00 00 00 B1 04 05 00 18 60 DC 31 01 70 04 05 00 C8 19 DC 31 01 72 04 02 00 50 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 36 17 90 00 08 [00:06:01]RAPDU: CB 04 85 04 C7 04 6E 04 04 00 A9 DA 02 00 69 04 A4 00 6F 04 04 00 1A DA 02 00 B1 04 05 00 9F 34 FF B7 06 70 04 05 00 CC D2 1C 9F 04 72 04 05 00 D3 61 E2 18 02 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 25 6E B0 B6 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 D4 24 39 0F EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 A1 00 6F 04 04 00 8F 00 00 00 B1 04 05 00 18 60 DC 31 01 70 04 05 00 C8 19 DC 31 01 72 04 02 00 50 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 36 17 90 00 [00:06:01]wFMCommunicate OK [00:06:01]wFMCommunicate request_size=4 [00:06:01]MH_SAM_APDU [00:06:01]CAPDU: 80 17 00 00 [00:06:01]Write to MH i2c: E2 08 00 8F 03 80 17 00 00 00 00 00 00 12 [00:06:01]Write i2c OK [00:06:01]MH_I2C_Read... [00:06:02]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:06:02]Read from MH i2c: E2 [00:06:02]MH_I2C_Read... [00:06:02]Read from MH i2c: E2 FD 00 [00:06:02]MH_I2C_Read... [00:06:02]Read from MH i2c: E2 FD 00 8F 03 00 7B 20 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 92 EC B4 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 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 90 00 DF [00:06:02]RAPDU: 7B 20 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 92 EC B4 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 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 90 00 [00:06:02]wFMCommunicate OK [00:06:02]wFMCommunicate request_size=4 [00:06:02]MH_SAM_APDU [00:06:02]CAPDU: 80 17 00 00 [00:06:02]Write to MH i2c: E2 08 00 90 03 80 17 00 00 00 00 00 00 13 [00:06:02]Write i2c OK [00:06:02]MH_I2C_Read... [00:06:02]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:06:02]Read from MH i2c: E2 [00:06:02]MH_I2C_Read... [00:06:02]Read from MH i2c: E2 FD 00 [00:06:02]MH_I2C_Read... [00:06:02]Read from MH i2c: E2 FD 00 90 03 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 EE [00:06:02]RAPDU: 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:06:02]wFMCommunicate OK [00:06:02]wFMCommunicate request_size=4 [00:06:02]MH_SAM_APDU [00:06:02]CAPDU: 80 17 00 00 [00:06:02]Write to MH i2c: E2 08 00 91 03 80 17 00 00 00 00 00 00 14 [00:06:02]Write i2c OK [00:06:02]MH_I2C_Read... [00:06:02]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:06:02]Read from MH i2c: E2 [00:06:02]MH_I2C_Read... [00:06:02]Read from MH i2c: E2 FD 00 [00:06:02]MH_I2C_Read... [00:06:02]Read from MH i2c: E2 FD 00 91 03 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 92 [00:06:02]RAPDU: 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:06:02]wFMCommunicate OK [00:06:02]wFMCommunicate request_size=4 [00:06:02]MH_SAM_APDU [00:06:02]CAPDU: 80 17 00 00 [00:06:02]Write to MH i2c: E2 08 00 92 03 80 17 00 00 00 00 00 00 15 [00:06:02]Write i2c OK [00:06:02]MH_I2C_Read... [00:06:02]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 229! [00:06:02]Read from MH i2c: E2 [00:06:02]MH_I2C_Read... [00:06:02]Read from MH i2c: E2 E8 00 [00:06:02]MH_I2C_Read... [00:06:02]Read from MH i2c: E2 E8 00 92 03 00 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 F3 [00:06:02]RAPDU: 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:06:02]wFMCommunicate OK [00:06:02]SAM_PROTO_GetFMData done [00:06:02]requested_item fm.sale_refund.total is exist - process it [00:06:02]requested_item fm.buy.total is exist - process it [00:06:02]requested_item shift.sale.total is exist - process it [00:06:02]SAM_PROTO_GetShiftData [00:06:02]wFMCommunicate request_size=4 [00:06:02]MH_SAM_APDU [00:06:02]CAPDU: 80 13 02 00 [00:06:02]Write to MH i2c: E2 08 00 93 03 80 13 02 00 00 00 00 00 14 [00:06:02]Write i2c OK [00:06:02]MH_I2C_Read... [00:06:03]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:06:03]Read from MH i2c: E2 [00:06:03]MH_I2C_Read... [00:06:03]Read from MH i2c: E2 FD 00 [00:06:03]MH_I2C_Read... [00:06:03]Read from MH i2c: E2 FD 00 93 03 00 B2 04 AA 04 AE 04 6E 04 04 00 B1 01 00 00 69 04 9F 00 6F 04 04 00 B1 01 00 00 B1 04 04 00 8E 4A BA 03 70 04 04 00 8C 9D 97 02 72 04 04 00 02 AD 22 01 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 D6 5B 65 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 38 72 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 C3 [00:06:03]RAPDU: B2 04 AA 04 AE 04 6E 04 04 00 B1 01 00 00 69 04 9F 00 6F 04 04 00 B1 01 00 00 B1 04 04 00 8E 4A BA 03 70 04 04 00 8C 9D 97 02 72 04 04 00 02 AD 22 01 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 D6 5B 65 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 38 72 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:06:03]wFMCommunicate OK [00:06:03]wFMCommunicate request_size=4 [00:06:03]MH_SAM_APDU [00:06:03]CAPDU: 80 17 00 00 [00:06:03]Write to MH i2c: E2 08 00 94 03 80 17 00 00 00 00 00 00 17 [00:06:03]Write i2c OK [00:06:03]MH_I2C_Read... [00:06:03]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:06:03]Read from MH i2c: E2 [00:06:03]MH_I2C_Read... [00:06:03]Read from MH i2c: E2 FD 00 [00:06:03]MH_I2C_Read... [00:06:03]Read from MH i2c: E2 FD 00 94 03 00 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 2E [00:06:03]RAPDU: 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:06:03]wFMCommunicate OK [00:06:03]wFMCommunicate request_size=4 [00:06:03]MH_SAM_APDU [00:06:03]CAPDU: 80 17 00 00 [00:06:03]Write to MH i2c: E2 08 00 95 03 80 17 00 00 00 00 00 00 18 [00:06:03]Write i2c OK [00:06:03]MH_I2C_Read... [00:06:03]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:06:03]Read from MH i2c: E2 [00:06:03]MH_I2C_Read... [00:06:03]Read from MH i2c: E2 FD 00 [00:06:03]MH_I2C_Read... [00:06:03]Read from MH i2c: E2 FD 00 95 03 00 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 D4 [00:06:03]RAPDU: 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:06:03]wFMCommunicate OK [00:06:03]wFMCommunicate request_size=4 [00:06:03]MH_SAM_APDU [00:06:03]CAPDU: 80 17 00 00 [00:06:03]Write to MH i2c: E2 08 00 96 03 80 17 00 00 00 00 00 00 19 [00:06:03]Write i2c OK [00:06:03]MH_I2C_Read... [00:06:04]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:06:04]Read from MH i2c: E2 [00:06:04]MH_I2C_Read... [00:06:04]Read from MH i2c: E2 FD 00 [00:06:04]MH_I2C_Read... [00:06:04]Read from MH i2c: E2 FD 00 96 03 00 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 90 00 90 [00:06:04]RAPDU: 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 90 00 [00:06:04]wFMCommunicate OK [00:06:04]wFMCommunicate request_size=4 [00:06:04]MH_SAM_APDU [00:06:04]CAPDU: 80 17 00 00 [00:06:04]Write to MH i2c: E2 08 00 97 03 80 17 00 00 00 00 00 00 1A [00:06:04]Write i2c OK [00:06:04]MH_I2C_Read... [00:06:04]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 204! [00:06:04]Read from MH i2c: E2 [00:06:04]MH_I2C_Read... [00:06:04]Read from MH i2c: E2 CF 00 [00:06:04]MH_I2C_Read... [00:06:04]Read from MH i2c: E2 CF 00 97 03 00 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 01 [00:06:04]RAPDU: 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:06:04]wFMCommunicate OK [00:06:04]SAM_PROTO_GetShiftData done [00:06:04]requested_item shift.sale.total_cash is exist - process it [00:06:04]requested_item shift.sale_refund.total is exist - process it [00:06:04]requested_item shift.sale_refund.total_cash is exist - process it [00:06:04]requested_item shift.buy.total is exist - process it [00:06:04]requested_item shift.buy.total_cash is exist - process it [00:06:04]produce_requested_data done [00:06:04]produce_requested_data return {"fm.sale.total":288567594.55,"fm.sale_refund.total":51314934.00,"fm.buy.total":0.00,"shift.sale.total":625404.30,"shift.sale.total_cash":434907.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:06:04]process_action_free get_value [00:06:04]json_value_free [00:06:04]json_value_free done [00:06:04]process_json_proto returns [00:06:04]Send response to host [00:06:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":288567594.55,"fm.sale_refund.total":51314934.00,"fm.buy.total":0.00,"shift.sale.total":625404.30,"shift.sale.total_cash":434907.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:06:04]free response buf [00:06:04]execute_script done [00:06:04]execute_script returns [00:06:04]free content buf [00:06:04]Sock 9.Close socket [00:06:04]Sock 9.Thread stoped [00:06:04]accept exits with 8 [00:06:04]New connection [00:06:04]New thread 3067198820 created [00:06:04]Thread 3067055460 joined [00:06:04]Waiting for new connection... [00:06:04] Sock 8.Parse request [00:06:04]Sock 8.Check first char [00:06:04]Sock 8.First char is OK [00:06:04]request: POST /json_proto HTTP/1.0 [00:06:04]Method: POST [00:06:04]URL: /json_proto [00:06:04]Method is POST - this is cgi request [00:06:04]url: /json_proto [00:06:04]query_string will be loaded in cgi processing [00:06:04]execute_cgi json_proto POST (null) [00:06:04]execute_cgi path=json_proto method=POST [00:06:04]POST find Content-Length [00:06:04]Host: 172.17.42.131:8080 [00:06:04]Content-Length: 331 [00:06:04]Content-Type: application/json [00:06:04] [00:06:04]POST finish read [00:06:04]Found Content-Length = 331 [00:06:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:06:04]execute_script... [00:06:04]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:06:04]POST & json_proto [00:06:04]process_json_proto [00:06:04]json parsed OK: [00:06:04]protocol is kg_v1.0 [00:06:04]action value=get_value [00:06:04]process_action get_value [00:06:04]cmd_get_value [00:06:04]process_action get_value done [00:06:04]requested_data is exist [00:06:04]produce_requested_data [00:06:04]requested_item fm.sale.total is exist - process it [00:06:04]SAM_PROTO_GetFMData [00:06:04]wFMCommunicate request_size=4 [00:06:04]MH_SAM_APDU [00:06:04]CAPDU: 80 13 03 00 [00:06:04]Write to MH i2c: E2 08 00 98 03 80 13 03 00 00 00 00 00 1A [00:06:04]Write i2c OK [00:06:04]MH_I2C_Read... [00:06:05]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:06:05]Read from MH i2c: E2 [00:06:05]MH_I2C_Read... [00:06:05]Read from MH i2c: E2 FD 00 [00:06:05]MH_I2C_Read... [00:06:05]Read from MH i2c: E2 FD 00 98 03 00 CB 04 85 04 C7 04 6E 04 04 00 A9 DA 02 00 69 04 A4 00 6F 04 04 00 1A DA 02 00 B1 04 05 00 9F 34 FF B7 06 70 04 05 00 CC D2 1C 9F 04 72 04 05 00 D3 61 E2 18 02 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 25 6E B0 B6 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 D4 24 39 0F EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 A1 00 6F 04 04 00 8F 00 00 00 B1 04 05 00 18 60 DC 31 01 70 04 05 00 C8 19 DC 31 01 72 04 02 00 50 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 36 17 90 00 12 [00:06:05]RAPDU: CB 04 85 04 C7 04 6E 04 04 00 A9 DA 02 00 69 04 A4 00 6F 04 04 00 1A DA 02 00 B1 04 05 00 9F 34 FF B7 06 70 04 05 00 CC D2 1C 9F 04 72 04 05 00 D3 61 E2 18 02 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 25 6E B0 B6 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 D4 24 39 0F EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 A1 00 6F 04 04 00 8F 00 00 00 B1 04 05 00 18 60 DC 31 01 70 04 05 00 C8 19 DC 31 01 72 04 02 00 50 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 36 17 90 00 [00:06:05]wFMCommunicate OK [00:06:05]wFMCommunicate request_size=4 [00:06:05]MH_SAM_APDU [00:06:05]CAPDU: 80 17 00 00 [00:06:05]Write to MH i2c: E2 08 00 99 03 80 17 00 00 00 00 00 00 1C [00:06:05]Write i2c OK [00:06:05]MH_I2C_Read... [00:06:05]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:06:05]Read from MH i2c: E2 [00:06:05]MH_I2C_Read... [00:06:05]Read from MH i2c: E2 FD 00 [00:06:05]MH_I2C_Read... [00:06:05]Read from MH i2c: E2 FD 00 99 03 00 7B 20 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 92 EC B4 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 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 90 00 E9 [00:06:05]RAPDU: 7B 20 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 92 EC B4 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 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 90 00 [00:06:05]wFMCommunicate OK [00:06:05]wFMCommunicate request_size=4 [00:06:05]MH_SAM_APDU [00:06:05]CAPDU: 80 17 00 00 [00:06:05]Write to MH i2c: E2 08 00 9A 03 80 17 00 00 00 00 00 00 1D [00:06:05]Write i2c OK [00:06:05]MH_I2C_Read... [00:06:05]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:06:05]Read from MH i2c: E2 [00:06:05]MH_I2C_Read... [00:06:05]Read from MH i2c: E2 FD 00 [00:06:05]MH_I2C_Read... [00:06:05]Read from MH i2c: E2 FD 00 9A 03 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 F8 [00:06:05]RAPDU: 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:06:05]wFMCommunicate OK [00:06:05]wFMCommunicate request_size=4 [00:06:05]MH_SAM_APDU [00:06:05]CAPDU: 80 17 00 00 [00:06:05]Write to MH i2c: E2 08 00 9B 03 80 17 00 00 00 00 00 00 1E [00:06:05]Write i2c OK [00:06:05]MH_I2C_Read... [00:06:06]OFD Sender: No OFD packet to send [00:06:06]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:06:06]Read from MH i2c: E2 [00:06:06]MH_I2C_Read... [00:06:06]Read from MH i2c: E2 FD 00 [00:06:06]MH_I2C_Read... [00:06:06]Read from MH i2c: E2 FD 00 9B 03 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 9C [00:06:06]RAPDU: 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:06:06]wFMCommunicate OK [00:06:06]wFMCommunicate request_size=4 [00:06:06]MH_SAM_APDU [00:06:06]CAPDU: 80 17 00 00 [00:06:06]Write to MH i2c: E2 08 00 9C 03 80 17 00 00 00 00 00 00 1F [00:06:06]Write i2c OK [00:06:06]MH_I2C_Read... [00:06:06]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 229! [00:06:06]Read from MH i2c: E2 [00:06:06]MH_I2C_Read... [00:06:06]Read from MH i2c: E2 E8 00 [00:06:06]MH_I2C_Read... [00:06:06]Read from MH i2c: E2 E8 00 9C 03 00 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 FD [00:06:06]RAPDU: 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:06:06]wFMCommunicate OK [00:06:06]SAM_PROTO_GetFMData done [00:06:06]requested_item fm.sale_refund.total is exist - process it [00:06:06]requested_item fm.buy.total is exist - process it [00:06:06]requested_item shift.sale.total is exist - process it [00:06:06]SAM_PROTO_GetShiftData [00:06:06]wFMCommunicate request_size=4 [00:06:06]MH_SAM_APDU [00:06:06]CAPDU: 80 13 02 00 [00:06:06]Write to MH i2c: E2 08 00 9D 03 80 13 02 00 00 00 00 00 1E [00:06:06]Write i2c OK [00:06:06]MH_I2C_Read... [00:06:06]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:06:06]Read from MH i2c: E2 [00:06:06]MH_I2C_Read... [00:06:06]Read from MH i2c: E2 FD 00 [00:06:06]MH_I2C_Read... [00:06:06]Read from MH i2c: E2 FD 00 9D 03 00 B2 04 AA 04 AE 04 6E 04 04 00 B1 01 00 00 69 04 9F 00 6F 04 04 00 B1 01 00 00 B1 04 04 00 8E 4A BA 03 70 04 04 00 8C 9D 97 02 72 04 04 00 02 AD 22 01 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 D6 5B 65 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 38 72 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 CD [00:06:06]RAPDU: B2 04 AA 04 AE 04 6E 04 04 00 B1 01 00 00 69 04 9F 00 6F 04 04 00 B1 01 00 00 B1 04 04 00 8E 4A BA 03 70 04 04 00 8C 9D 97 02 72 04 04 00 02 AD 22 01 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 D6 5B 65 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 38 72 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:06:07]wFMCommunicate OK [00:06:07]wFMCommunicate request_size=4 [00:06:07]MH_SAM_APDU [00:06:07]CAPDU: 80 17 00 00 [00:06:07]Write to MH i2c: E2 08 00 9E 03 80 17 00 00 00 00 00 00 21 [00:06:07]Write i2c OK [00:06:07]MH_I2C_Read... [00:06:07]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:06:07]Read from MH i2c: E2 [00:06:07]MH_I2C_Read... [00:06:07]Read from MH i2c: E2 FD 00 [00:06:07]MH_I2C_Read... [00:06:07]Read from MH i2c: E2 FD 00 9E 03 00 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 38 [00:06:07]RAPDU: 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:06:07]wFMCommunicate OK [00:06:07]wFMCommunicate request_size=4 [00:06:07]MH_SAM_APDU [00:06:07]CAPDU: 80 17 00 00 [00:06:07]Write to MH i2c: E2 08 00 9F 03 80 17 00 00 00 00 00 00 22 [00:06:07]Write i2c OK [00:06:07]MH_I2C_Read... [00:06:07]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:06:07]Read from MH i2c: E2 [00:06:07]MH_I2C_Read... [00:06:07]Read from MH i2c: E2 FD 00 [00:06:07]MH_I2C_Read... [00:06:07]Read from MH i2c: E2 FD 00 9F 03 00 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 DE [00:06:07]RAPDU: 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:06:07]wFMCommunicate OK [00:06:07]wFMCommunicate request_size=4 [00:06:07]MH_SAM_APDU [00:06:07]CAPDU: 80 17 00 00 [00:06:07]Write to MH i2c: E2 08 00 A0 03 80 17 00 00 00 00 00 00 23 [00:06:07]Write i2c OK [00:06:07]MH_I2C_Read... [00:06:08]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:06:08]Read from MH i2c: E2 [00:06:08]MH_I2C_Read... [00:06:08]Read from MH i2c: E2 FD 00 [00:06:08]MH_I2C_Read... [00:06:08]Read from MH i2c: E2 FD 00 A0 03 00 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 90 00 9A [00:06:08]RAPDU: 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 90 00 [00:06:08]wFMCommunicate OK [00:06:08]wFMCommunicate request_size=4 [00:06:08]MH_SAM_APDU [00:06:08]CAPDU: 80 17 00 00 [00:06:08]Write to MH i2c: E2 08 00 A1 03 80 17 00 00 00 00 00 00 24 [00:06:08]Write i2c OK [00:06:08]MH_I2C_Read... [00:06:08]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 204! [00:06:08]Read from MH i2c: E2 [00:06:08]MH_I2C_Read... [00:06:08]Read from MH i2c: E2 CF 00 [00:06:08]MH_I2C_Read... [00:06:08]Read from MH i2c: E2 CF 00 A1 03 00 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 0B [00:06:08]RAPDU: 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:06:08]wFMCommunicate OK [00:06:08]SAM_PROTO_GetShiftData done [00:06:08]requested_item shift.sale.total_cash is exist - process it [00:06:08]requested_item shift.sale_refund.total is exist - process it [00:06:08]requested_item shift.sale_refund.total_cash is exist - process it [00:06:08]requested_item shift.buy.total is exist - process it [00:06:08]requested_item shift.buy.total_cash is exist - process it [00:06:08]produce_requested_data done [00:06:08]produce_requested_data return {"fm.sale.total":288567594.55,"fm.sale_refund.total":51314934.00,"fm.buy.total":0.00,"shift.sale.total":625404.30,"shift.sale.total_cash":434907.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:06:08]process_action_free get_value [00:06:08]json_value_free [00:06:08]json_value_free done [00:06:08]process_json_proto returns [00:06:08]Send response to host [00:06:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":288567594.55,"fm.sale_refund.total":51314934.00,"fm.buy.total":0.00,"shift.sale.total":625404.30,"shift.sale.total_cash":434907.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:06:08]free response buf [00:06:08]execute_script done [00:06:08]execute_script returns [00:06:08]free content buf [00:06:08]Sock 8.Close socket [00:06:08]Sock 8.Thread stoped [00:06:08]accept exits with 9 [00:06:08]New connection [00:06:08]New thread 3067055460 created [00:06:08]Thread 3067198820 joined [00:06:08]Waiting for new connection... [00:06:08] Sock 9.Parse request [00:06:08]Sock 9.Check first char [00:06:08]Sock 9.First char is OK [00:06:08]request: POST /json_proto HTTP/1.0 [00:06:08]Method: POST [00:06:08]URL: /json_proto [00:06:08]Method is POST - this is cgi request [00:06:08]url: /json_proto [00:06:08]query_string will be loaded in cgi processing [00:06:08]execute_cgi json_proto POST (null) [00:06:08]execute_cgi path=json_proto method=POST [00:06:08]POST find Content-Length [00:06:08]Host: 172.17.42.131:8080 [00:06:08]Content-Length: 257 [00:06:08]Content-Type: application/json [00:06:08] [00:06:08]POST finish read [00:06:08]Found Content-Length = 257 [00:06:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "x_report", "params" : { "operator" : "\u0410\u0440\u044B\u043A\u0431\u0430\u0435\u0432 \u041D. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:06:08]execute_script... [00:06:08]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "x_report", "params" : { "operator" : "\u0410\u0440\u044B\u043A\u0431\u0430\u0435\u0432 \u041D. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:06:08]POST & json_proto [00:06:08]process_json_proto [00:06:08]json parsed OK: [00:06:08]protocol is kg_v1.0 [00:06:08]action value=x_report [00:06:08]process_action x_report [00:06:08]cmd_x_report [00:06:08]MH_GetDate [00:06:08]Write to MH i2c: F0 00 00 A2 03 94 [00:06:08]Write i2c OK [00:06:08]MH_I2C_Read... [00:06:08]Read from MH i2c: F0 [00:06:08]MH_I2C_Read... [00:06:08]Read from MH i2c: F0 09 00 [00:06:08]MH_I2C_Read... [00:06:08]Read from MH i2c: F0 09 00 A2 03 00 71 EC 16 67 A0 18 CA 66 5F [00:06:08]GetLastDocTimeStamp 1729555302 [00:06:08]current date 1729555569 [00:06:08]FM_GetShiftState [00:06:08]SAM_PROTO_GetShiftState [00:06:08]wFMCommunicate request_size=4 [00:06:08]MH_SAM_APDU [00:06:08]CAPDU: 80 13 01 00 [00:06:08]Write to MH i2c: E2 08 00 A3 03 80 13 01 00 00 00 00 00 23 [00:06:08]Write i2c OK [00:06:08]MH_I2C_Read... [00:06:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:06:08]Read from MH i2c: E2 [00:06:08]MH_I2C_Read... [00:06:08]Read from MH i2c: E2 0E 00 [00:06:08]MH_I2C_Read... [00:06:08]Read from MH i2c: E2 0E 00 A3 03 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 82 [00:06:08]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [00:06:08]wFMCommunicate OK [00:06:08]SAM_PROTO_GetShiftState done [00:06:08]FM_GetShiftState done [00:06:08]KKMCreateXReportDocument [00:06:08]Load OK [00:06:08]Malloc new data [00:06:08]MH_GetDate [00:06:08]Write to MH i2c: F0 00 00 A4 03 96 [00:06:08]Write i2c OK [00:06:08]MH_I2C_Read... [00:06:08]Read from MH i2c: F0 [00:06:08]MH_I2C_Read... [00:06:08]Read from MH i2c: F0 09 00 [00:06:08]MH_I2C_Read... [00:06:08]Read from MH i2c: F0 09 00 A4 03 00 71 EC 16 67 A0 18 CA 66 61 [00:06:08]Malloc new data [00:06:08]Malloc new data [00:06:08]wFMCommunicate request_size=4 [00:06:08]MH_SAM_APDU [00:06:08]CAPDU: 80 11 00 00 [00:06:08]Write to MH i2c: E2 08 00 A5 03 80 11 00 00 00 00 00 00 22 [00:06:08]Write i2c OK [00:06:08]MH_I2C_Read... [00:06:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:06:08]Read from MH i2c: E2 [00:06:08]MH_I2C_Read... [00:06:08]Read from MH i2c: E2 17 00 [00:06:08]MH_I2C_Read... [00:06:08]Read from MH i2c: E2 17 00 A5 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 70 [00:06:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [00:06:08]wFMCommunicate OK [00:06:08]SAM_PROTO_GetFieldsCounters [00:06:08]wFMCommunicate request_size=4 [00:06:08]MH_SAM_APDU [00:06:08]CAPDU: 80 13 00 00 [00:06:08]Write to MH i2c: E2 08 00 A6 03 80 13 00 00 00 00 00 00 25 [00:06:08]Write i2c OK [00:06:08]MH_I2C_Read... [00:06:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:06:09]Read from MH i2c: E2 [00:06:09]MH_I2C_Read... [00:06:09]Read from MH i2c: E2 62 00 [00:06:09]MH_I2C_Read... [00:06:09]Read from MH i2c: E2 62 00 A6 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 41 DE 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 B1 01 00 00 5E 04 04 00 B1 01 00 00 57 04 04 00 B2 01 00 00 19 04 04 00 00 00 00 00 90 00 30 [00:06:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 41 DE 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 B1 01 00 00 5E 04 04 00 B1 01 00 00 57 04 04 00 B2 01 00 00 19 04 04 00 00 00 00 00 90 00 [00:06:09]wFMCommunicate OK [00:06:09]SAM_PROTO_GetFieldsCounters done [00:06:09]Malloc new data [00:06:09]Malloc new data [00:06:09]Malloc new data [00:06:09]KKMCreateXReportDocument OK [00:06:09]KKMSetXReportData OK [00:06:09]KKMPrepareXReportFMData [00:06:09]SAM_PROTO_GetShiftData [00:06:09]wFMCommunicate request_size=4 [00:06:09]MH_SAM_APDU [00:06:09]CAPDU: 80 13 02 00 [00:06:09]Write to MH i2c: E2 08 00 A7 03 80 13 02 00 00 00 00 00 28 [00:06:09]Write i2c OK [00:06:09]MH_I2C_Read... [00:06:09]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:06:09]Read from MH i2c: E2 [00:06:09]MH_I2C_Read... [00:06:09]Read from MH i2c: E2 FD 00 [00:06:09]MH_I2C_Read... [00:06:09]Read from MH i2c: E2 FD 00 A7 03 00 B2 04 AA 04 AE 04 6E 04 04 00 B1 01 00 00 69 04 9F 00 6F 04 04 00 B1 01 00 00 B1 04 04 00 8E 4A BA 03 70 04 04 00 8C 9D 97 02 72 04 04 00 02 AD 22 01 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 D6 5B 65 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 38 72 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 D7 [00:06:09]RAPDU: B2 04 AA 04 AE 04 6E 04 04 00 B1 01 00 00 69 04 9F 00 6F 04 04 00 B1 01 00 00 B1 04 04 00 8E 4A BA 03 70 04 04 00 8C 9D 97 02 72 04 04 00 02 AD 22 01 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 D6 5B 65 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 38 72 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:06:09]wFMCommunicate OK [00:06:09]wFMCommunicate request_size=4 [00:06:09]MH_SAM_APDU [00:06:09]CAPDU: 80 17 00 00 [00:06:09]Write to MH i2c: E2 08 00 A8 03 80 17 00 00 00 00 00 00 2B [00:06:09]Write i2c OK [00:06:09]MH_I2C_Read... [00:06:09]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:06:09]Read from MH i2c: E2 [00:06:09]MH_I2C_Read... [00:06:09]Read from MH i2c: E2 FD 00 [00:06:09]MH_I2C_Read... [00:06:09]Read from MH i2c: E2 FD 00 A8 03 00 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 42 [00:06:10]RAPDU: 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:06:10]wFMCommunicate OK [00:06:10]wFMCommunicate request_size=4 [00:06:10]MH_SAM_APDU [00:06:10]CAPDU: 80 17 00 00 [00:06:10]Write to MH i2c: E2 08 00 A9 03 80 17 00 00 00 00 00 00 2C [00:06:10]Write i2c OK [00:06:10]MH_I2C_Read... [00:06:10]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:06:10]Read from MH i2c: E2 [00:06:10]MH_I2C_Read... [00:06:10]Read from MH i2c: E2 FD 00 [00:06:10]MH_I2C_Read... [00:06:10]Read from MH i2c: E2 FD 00 A9 03 00 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 E8 [00:06:10]RAPDU: 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:06:10]wFMCommunicate OK [00:06:10]wFMCommunicate request_size=4 [00:06:10]MH_SAM_APDU [00:06:10]CAPDU: 80 17 00 00 [00:06:10]Write to MH i2c: E2 08 00 AA 03 80 17 00 00 00 00 00 00 2D [00:06:10]Write i2c OK [00:06:10]MH_I2C_Read... [00:06:10]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:06:10]Read from MH i2c: E2 [00:06:10]MH_I2C_Read... [00:06:10]Read from MH i2c: E2 FD 00 [00:06:10]MH_I2C_Read... [00:06:10]Read from MH i2c: E2 FD 00 AA 03 00 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 90 00 A4 [00:06:10]RAPDU: 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 90 00 [00:06:11]wFMCommunicate OK [00:06:11]wFMCommunicate request_size=4 [00:06:11]MH_SAM_APDU [00:06:11]CAPDU: 80 17 00 00 [00:06:11]Write to MH i2c: E2 08 00 AB 03 80 17 00 00 00 00 00 00 2E [00:06:11]Write i2c OK [00:06:11]MH_I2C_Read... [00:06:11]OFD Sender: No OFD packet to send [00:06:11]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 204! [00:06:11]Read from MH i2c: E2 [00:06:11]MH_I2C_Read... [00:06:11]Read from MH i2c: E2 CF 00 [00:06:11]MH_I2C_Read... [00:06:11]Read from MH i2c: E2 CF 00 AB 03 00 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 15 [00:06:11]RAPDU: 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:06:11]wFMCommunicate OK [00:06:11]SAM_PROTO_GetShiftData done [00:06:11]1194 (1198) - счетчики итогов смены [00:06:11] 1134 (4) - 433 - количество чеков со всеми признаками расчетов [00:06:11] 1129 (159) - счетчики операций «приход» [00:06:11] 1135 (4) - 433 - количество чеков по признаку расчетов [00:06:11] 1201 (4) - 625404.30 - общая итоговая сумма в чеках [00:06:11] 1136 (4) - 434907.00 - итоговая сумма в чеках наличными [00:06:11] 1138 (4) - 190497.30 - итоговая сумма в чеках безналичными [00:06:11] 1024 (123) - суммы налогов [00:06:11] 1006 (9) - суммы НДС [00:06:11] 1010 (1) - 0% - код ставки НДС [00:06:11] 1011 (0) - 0.00 - сумма НДС по ставке [00:06:11] 1006 (12) - суммы НДС [00:06:11] 1010 (1) - 12% - код ставки НДС [00:06:11] 1011 (3) - 66426.46 - сумма НДС по ставке [00:06:11] 1007 (9) - суммы НСП [00:06:11] 1014 (1) - 0% - код ставки НСП [00:06:11] 1015 (0) - 0.00 - сумма НСП по ставке [00:06:11] 1007 (12) - суммы НСП [00:06:11] 1014 (1) - 1% - код ставки НСП [00:06:11] 1015 (3) - 5535.28 - сумма НСП по ставке [00:06:11] 1007 (9) - суммы НСП [00:06:11] 1014 (1) - 2% - код ставки НСП [00:06:11] 1015 (0) - 0.00 - сумма НСП по ставке [00:06:11] 1007 (9) - суммы НСП [00:06:11] 1014 (1) - 3% - код ставки НСП [00:06:11] 1015 (0) - 0.00 - сумма НСП по ставке [00:06:11] 1007 (9) - суммы НСП [00:06:11] 1014 (1) - 5% - код ставки НСП [00:06:11] 1015 (0) - 0.00 - сумма НСП по ставке [00:06:11] 1007 (9) - суммы НСП [00:06:11] 1014 (1) - 0,50% - код ставки НСП [00:06:11] 1015 (0) - 0.00 - сумма НСП по ставке [00:06:11] 1007 (9) - суммы НСП [00:06:11] 1014 (1) - 1,50% - код ставки НСП [00:06:11] 1015 (0) - 0.00 - сумма НСП по ставке [00:06:11] 1130 (141) - счетчики операций «возврат прихода» [00:06:11] 1135 (4) - 0 - количество чеков по признаку расчетов [00:06:11] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:06:11] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:06:11] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:06:11] 1024 (117) - суммы налогов [00:06:11] 1006 (9) - суммы НДС [00:06:11] 1010 (1) - 0% - код ставки НДС [00:06:11] 1011 (0) - 0.00 - сумма НДС по ставке [00:06:11] 1006 (9) - суммы НДС [00:06:11] 1010 (1) - 12% - код ставки НДС [00:06:11] 1011 (0) - 0.00 - сумма НДС по ставке [00:06:11] 1007 (9) - суммы НСП [00:06:11] 1014 (1) - 0% - код ставки НСП [00:06:11] 1015 (0) - 0.00 - сумма НСП по ставке [00:06:11] 1007 (9) - суммы НСП [00:06:11] 1014 (1) - 1% - код ставки НСП [00:06:11] 1015 (0) - 0.00 - сумма НСП по ставке [00:06:11] 1007 (9) - суммы НСП [00:06:11] 1014 (1) - 2% - код ставки НСП [00:06:11] 1015 (0) - 0.00 - сумма НСП по ставке [00:06:11] 1007 (9) - суммы НСП [00:06:11] 1014 (1) - 3% - код ставки НСП [00:06:11] 1015 (0) - 0.00 - сумма НСП по ставке [00:06:11] 1007 (9) - суммы НСП [00:06:11] 1014 (1) - 5% - код ставки НСП [00:06:11] 1015 (0) - 0.00 - сумма НСП по ставке [00:06:11] 1007 (9) - суммы НСП [00:06:11] 1014 (1) - 0,50% - код ставки НСП [00:06:11] 1015 (0) - 0.00 - сумма НСП по ставке [00:06:11] 1007 (9) - суммы НСП [00:06:11] 1014 (1) - 1,50% - код ставки НСП [00:06:11] 1015 (0) - 0.00 - сумма НСП по ставке [00:06:11] 1131 (141) - счетчики операций «расход» [00:06:11] 1135 (4) - 0 - количество чеков по признаку расчетов [00:06:11] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:06:11] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:06:11] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:06:11] 1024 (117) - суммы налогов [00:06:11] 1006 (9) - суммы НДС [00:06:11] 1010 (1) - 0% - код ставки НДС [00:06:11] 1011 (0) - 0.00 - сумма НДС по ставке [00:06:11] 1006 (9) - суммы НДС [00:06:11] 1010 (1) - 12% - код ставки НДС [00:06:11] 1011 (0) - 0.00 - сумма НДС по ставке [00:06:11] 1007 (9) - суммы НСП [00:06:11] 1014 (1) - 0% - код ставки НСП [00:06:11] 1015 (0) - 0.00 - сумма НСП по ставке [00:06:11] 1007 (9) - суммы НСП [00:06:11] 1014 (1) - 1% - код ставки НСП [00:06:11] 1015 (0) - 0.00 - сумма НСП по ставке [00:06:11] 1007 (9) - суммы НСП [00:06:11] 1014 (1) - 2% - код ставки НСП [00:06:11] 1015 (0) - 0.00 - сумма НСП по ставке [00:06:11] 1007 (9) - суммы НСП [00:06:11] 1014 (1) - 3% - код ставки НСП [00:06:11] 1015 (0) - 0.00 - сумма НСП по ставке [00:06:11] 1007 (9) - суммы НСП [00:06:11] 1014 (1) - 5% - код ставки НСП [00:06:11] 1015 (0) - 0.00 - сумма НСП по ставке [00:06:11] 1007 (9) - суммы НСП [00:06:11] 1014 (1) - 0,50% - код ставки НСП [00:06:11] 1015 (0) - 0.00 - сумма НСП по ставке [00:06:11] 1007 (9) - суммы НСП [00:06:11] 1014 (1) - 1,50% - код ставки НСП [00:06:11] 1015 (0) - 0.00 - сумма НСП по ставке [00:06:11] 1132 (141) - счетчики операций «возврат расхода» [00:06:11] 1135 (4) - 0 - количество чеков по признаку расчетов [00:06:11] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:06:11] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:06:11] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:06:11] 1024 (117) - суммы налогов [00:06:11] 1006 (9) - суммы НДС [00:06:11] 1010 (1) - 0% - код ставки НДС [00:06:11] 1011 (0) - 0.00 - сумма НДС по ставке [00:06:11] 1006 (9) - суммы НДС [00:06:11] 1010 (1) - 12% - код ставки НДС [00:06:11] 1011 (0) - 0.00 - сумма НДС по ставке [00:06:11] 1007 (9) - суммы НСП [00:06:11] 1014 (1) - 0% - код ставки НСП [00:06:11] 1015 (0) - 0.00 - сумма НСП по ставке [00:06:11] 1007 (9) - суммы НСП [00:06:11] 1014 (1) - 1% - код ставки НСП [00:06:11] 1015 (0) - 0.00 - сумма НСП по ставке [00:06:11] 1007 (9) - суммы НСП [00:06:11] 1014 (1) - 2% - код ставки НСП [00:06:11] 1015 (0) - 0.00 - сумма НСП по ставке [00:06:11] 1007 (9) - суммы НСП [00:06:11] 1014 (1) - 3% - код ставки НСП [00:06:11] 1015 (0) - 0.00 - сумма НСП по ставке [00:06:11] 1007 (9) - суммы НСП [00:06:11] 1014 (1) - 5% - код ставки НСП [00:06:11] 1015 (0) - 0.00 - сумма НСП по ставке [00:06:11] 1007 (9) - суммы НСП [00:06:11] 1014 (1) - 0,50% - код ставки НСП [00:06:11] 1015 (0) - 0.00 - сумма НСП по ставке [00:06:11] 1007 (9) - суммы НСП [00:06:11] 1014 (1) - 1,50% - код ставки НСП [00:06:11] 1015 (0) - 0.00 - сумма НСП по ставке [00:06:11] 1133 (588) - - счетчики коррекции - не используются [00:06:11]SetTLVBufToDocument [00:06:11]Processing tag 1194 (04AA) [00:06:11]Load OK [00:06:11]SetTLVBufToDocument [00:06:12]Processing tag 1134 (046E) [00:06:12]Malloc new data [00:06:12]Processing tag 1129 (0469) [00:06:12]Load OK [00:06:12]SetTLVBufToDocument [00:06:12]Processing tag 1135 (046F) [00:06:12]Malloc new data [00:06:12]Processing tag 1201 (04B1) [00:06:12]Malloc new data [00:06:12]Processing tag 1136 (0470) [00:06:12]Malloc new data [00:06:12]Processing tag 1138 (0472) [00:06:12]Malloc new data [00:06:12]Processing tag 1024 (0400) [00:06:12]Load OK [00:06:12]SetTLVBufToDocument [00:06:12]Processing tag 1006 (03EE) [00:06:12]Load OK [00:06:12]SetTLVBufToDocument [00:06:12]Processing tag 1010 (03F2) [00:06:12]Malloc new data [00:06:12]Processing tag 1011 (03F3) [00:06:12]Malloc new data [00:06:12]SetTLVBufToDocument err=0 [00:06:12]Processing tag 1006 (03EE) [00:06:12]Load OK [00:06:12]SetTLVBufToDocument [00:06:12]Processing tag 1010 (03F2) [00:06:12]Malloc new data [00:06:12]Processing tag 1011 (03F3) [00:06:12]Malloc new data [00:06:12]SetTLVBufToDocument err=0 [00:06:12]Processing tag 1007 (03EF) [00:06:12]Load OK [00:06:12]SetTLVBufToDocument [00:06:12]Processing tag 1014 (03F6) [00:06:12]Malloc new data [00:06:12]Processing tag 1015 (03F7) [00:06:12]Malloc new data [00:06:12]SetTLVBufToDocument err=0 [00:06:12]Processing tag 1007 (03EF) [00:06:12]Load OK [00:06:12]SetTLVBufToDocument [00:06:12]Processing tag 1014 (03F6) [00:06:12]Malloc new data [00:06:12]Processing tag 1015 (03F7) [00:06:12]Malloc new data [00:06:12]SetTLVBufToDocument err=0 [00:06:12]Processing tag 1007 (03EF) [00:06:12]Load OK [00:06:12]SetTLVBufToDocument [00:06:12]Processing tag 1014 (03F6) [00:06:12]Malloc new data [00:06:12]Processing tag 1015 (03F7) [00:06:12]Malloc new data [00:06:12]SetTLVBufToDocument err=0 [00:06:12]Processing tag 1007 (03EF) [00:06:12]Load OK [00:06:12]SetTLVBufToDocument [00:06:12]Processing tag 1014 (03F6) [00:06:12]Malloc new data [00:06:12]Processing tag 1015 (03F7) [00:06:12]Malloc new data [00:06:12]SetTLVBufToDocument err=0 [00:06:12]Processing tag 1007 (03EF) [00:06:12]Load OK [00:06:12]SetTLVBufToDocument [00:06:12]Processing tag 1014 (03F6) [00:06:12]Malloc new data [00:06:12]Processing tag 1015 (03F7) [00:06:12]Malloc new data [00:06:12]SetTLVBufToDocument err=0 [00:06:12]Processing tag 1007 (03EF) [00:06:12]Load OK [00:06:12]SetTLVBufToDocument [00:06:12]Processing tag 1014 (03F6) [00:06:12]Malloc new data [00:06:12]Processing tag 1015 (03F7) [00:06:12]Malloc new data [00:06:12]SetTLVBufToDocument err=0 [00:06:12]Processing tag 1007 (03EF) [00:06:12]Load OK [00:06:12]SetTLVBufToDocument [00:06:12]Processing tag 1014 (03F6) [00:06:12]Malloc new data [00:06:12]Processing tag 1015 (03F7) [00:06:12]Malloc new data [00:06:12]SetTLVBufToDocument err=0 [00:06:12]SetTLVBufToDocument err=0 [00:06:12]SetTLVBufToDocument err=0 [00:06:12]Processing tag 1130 (046A) [00:06:12]Load OK [00:06:12]SetTLVBufToDocument [00:06:12]Processing tag 1135 (046F) [00:06:12]Malloc new data [00:06:12]Processing tag 1201 (04B1) [00:06:12]Malloc new data [00:06:12]Processing tag 1136 (0470) [00:06:12]Malloc new data [00:06:12]Processing tag 1138 (0472) [00:06:12]Malloc new data [00:06:12]Processing tag 1024 (0400) [00:06:12]Load OK [00:06:12]SetTLVBufToDocument [00:06:12]Processing tag 1006 (03EE) [00:06:12]Load OK [00:06:12]SetTLVBufToDocument [00:06:12]Processing tag 1010 (03F2) [00:06:12]Malloc new data [00:06:12]Processing tag 1011 (03F3) [00:06:12]Malloc new data [00:06:12]SetTLVBufToDocument err=0 [00:06:12]Processing tag 1006 (03EE) [00:06:12]Load OK [00:06:12]SetTLVBufToDocument [00:06:12]Processing tag 1010 (03F2) [00:06:12]Malloc new data [00:06:12]Processing tag 1011 (03F3) [00:06:12]Malloc new data [00:06:12]SetTLVBufToDocument err=0 [00:06:12]Processing tag 1007 (03EF) [00:06:12]Load OK [00:06:12]SetTLVBufToDocument [00:06:12]Processing tag 1014 (03F6) [00:06:12]Malloc new data [00:06:12]Processing tag 1015 (03F7) [00:06:12]Malloc new data [00:06:12]SetTLVBufToDocument err=0 [00:06:12]Processing tag 1007 (03EF) [00:06:12]Load OK [00:06:12]SetTLVBufToDocument [00:06:12]Processing tag 1014 (03F6) [00:06:12]Malloc new data [00:06:12]Processing tag 1015 (03F7) [00:06:12]Malloc new data [00:06:12]SetTLVBufToDocument err=0 [00:06:12]Processing tag 1007 (03EF) [00:06:12]Load OK [00:06:12]SetTLVBufToDocument [00:06:12]Processing tag 1014 (03F6) [00:06:12]Malloc new data [00:06:12]Processing tag 1015 (03F7) [00:06:12]Malloc new data [00:06:12]SetTLVBufToDocument err=0 [00:06:12]Processing tag 1007 (03EF) [00:06:12]Load OK [00:06:12]SetTLVBufToDocument [00:06:12]Processing tag 1014 (03F6) [00:06:12]Malloc new data [00:06:12]Processing tag 1015 (03F7) [00:06:12]Malloc new data [00:06:12]SetTLVBufToDocument err=0 [00:06:12]Processing tag 1007 (03EF) [00:06:12]Load OK [00:06:12]SetTLVBufToDocument [00:06:12]Processing tag 1014 (03F6) [00:06:12]Malloc new data [00:06:12]Processing tag 1015 (03F7) [00:06:12]Malloc new data [00:06:12]SetTLVBufToDocument err=0 [00:06:12]Processing tag 1007 (03EF) [00:06:12]Load OK [00:06:12]SetTLVBufToDocument [00:06:12]Processing tag 1014 (03F6) [00:06:12]Malloc new data [00:06:12]Processing tag 1015 (03F7) [00:06:12]Malloc new data [00:06:12]SetTLVBufToDocument err=0 [00:06:12]Processing tag 1007 (03EF) [00:06:12]Load OK [00:06:12]SetTLVBufToDocument [00:06:12]Processing tag 1014 (03F6) [00:06:12]Malloc new data [00:06:12]Processing tag 1015 (03F7) [00:06:12]Malloc new data [00:06:12]SetTLVBufToDocument err=0 [00:06:12]SetTLVBufToDocument err=0 [00:06:12]SetTLVBufToDocument err=0 [00:06:12]Processing tag 1131 (046B) [00:06:12]Load OK [00:06:12]SetTLVBufToDocument [00:06:12]Processing tag 1135 (046F) [00:06:12]Malloc new data [00:06:12]Processing tag 1201 (04B1) [00:06:12]Malloc new data [00:06:12]Processing tag 1136 (0470) [00:06:12]Malloc new data [00:06:12]Processing tag 1138 (0472) [00:06:12]Malloc new data [00:06:12]Processing tag 1024 (0400) [00:06:12]Load OK [00:06:12]SetTLVBufToDocument [00:06:12]Processing tag 1006 (03EE) [00:06:12]Load OK [00:06:12]SetTLVBufToDocument [00:06:12]Processing tag 1010 (03F2) [00:06:12]Malloc new data [00:06:12]Processing tag 1011 (03F3) [00:06:12]Malloc new data [00:06:12]SetTLVBufToDocument err=0 [00:06:12]Processing tag 1006 (03EE) [00:06:12]Load OK [00:06:12]SetTLVBufToDocument [00:06:12]Processing tag 1010 (03F2) [00:06:12]Malloc new data [00:06:12]Processing tag 1011 (03F3) [00:06:12]Malloc new data [00:06:12]SetTLVBufToDocument err=0 [00:06:12]Processing tag 1007 (03EF) [00:06:12]Load OK [00:06:12]SetTLVBufToDocument [00:06:12]Processing tag 1014 (03F6) [00:06:12]Malloc new data [00:06:12]Processing tag 1015 (03F7) [00:06:12]Malloc new data [00:06:12]SetTLVBufToDocument err=0 [00:06:12]Processing tag 1007 (03EF) [00:06:12]Load OK [00:06:12]SetTLVBufToDocument [00:06:12]Processing tag 1014 (03F6) [00:06:12]Malloc new data [00:06:12]Processing tag 1015 (03F7) [00:06:12]Malloc new data [00:06:12]SetTLVBufToDocument err=0 [00:06:12]Processing tag 1007 (03EF) [00:06:12]Load OK [00:06:12]SetTLVBufToDocument [00:06:12]Processing tag 1014 (03F6) [00:06:12]Malloc new data [00:06:12]Processing tag 1015 (03F7) [00:06:12]Malloc new data [00:06:12]SetTLVBufToDocument err=0 [00:06:12]Processing tag 1007 (03EF) [00:06:12]Load OK [00:06:12]SetTLVBufToDocument [00:06:12]Processing tag 1014 (03F6) [00:06:12]Malloc new data [00:06:12]Processing tag 1015 (03F7) [00:06:12]Malloc new data [00:06:12]SetTLVBufToDocument err=0 [00:06:12]Processing tag 1007 (03EF) [00:06:12]Load OK [00:06:12]SetTLVBufToDocument [00:06:12]Processing tag 1014 (03F6) [00:06:12]Malloc new data [00:06:12]Processing tag 1015 (03F7) [00:06:12]Malloc new data [00:06:12]SetTLVBufToDocument err=0 [00:06:12]Processing tag 1007 (03EF) [00:06:12]Load OK [00:06:12]SetTLVBufToDocument [00:06:12]Processing tag 1014 (03F6) [00:06:12]Malloc new data [00:06:12]Processing tag 1015 (03F7) [00:06:12]Malloc new data [00:06:12]SetTLVBufToDocument err=0 [00:06:12]Processing tag 1007 (03EF) [00:06:12]Load OK [00:06:12]SetTLVBufToDocument [00:06:12]Processing tag 1014 (03F6) [00:06:12]Malloc new data [00:06:12]Processing tag 1015 (03F7) [00:06:12]Malloc new data [00:06:12]SetTLVBufToDocument err=0 [00:06:12]SetTLVBufToDocument err=0 [00:06:12]SetTLVBufToDocument err=0 [00:06:12]Processing tag 1132 (046C) [00:06:12]Load OK [00:06:12]SetTLVBufToDocument [00:06:12]Processing tag 1135 (046F) [00:06:12]Malloc new data [00:06:12]Processing tag 1201 (04B1) [00:06:12]Malloc new data [00:06:12]Processing tag 1136 (0470) [00:06:12]Malloc new data [00:06:12]Processing tag 1138 (0472) [00:06:12]Malloc new data [00:06:12]Processing tag 1024 (0400) [00:06:12]Load OK [00:06:12]SetTLVBufToDocument [00:06:12]Processing tag 1006 (03EE) [00:06:12]Load OK [00:06:12]SetTLVBufToDocument [00:06:12]Processing tag 1010 (03F2) [00:06:12]Malloc new data [00:06:12]Processing tag 1011 (03F3) [00:06:12]Malloc new data [00:06:12]SetTLVBufToDocument err=0 [00:06:12]Processing tag 1006 (03EE) [00:06:12]Load OK [00:06:12]SetTLVBufToDocument [00:06:12]Processing tag 1010 (03F2) [00:06:12]Malloc new data [00:06:12]Processing tag 1011 (03F3) [00:06:12]Malloc new data [00:06:12]SetTLVBufToDocument err=0 [00:06:12]Processing tag 1007 (03EF) [00:06:12]Load OK [00:06:12]SetTLVBufToDocument [00:06:12]Processing tag 1014 (03F6) [00:06:12]Malloc new data [00:06:12]Processing tag 1015 (03F7) [00:06:12]Malloc new data [00:06:12]SetTLVBufToDocument err=0 [00:06:12]Processing tag 1007 (03EF) [00:06:12]Load OK [00:06:12]SetTLVBufToDocument [00:06:12]Processing tag 1014 (03F6) [00:06:12]Malloc new data [00:06:12]Processing tag 1015 (03F7) [00:06:12]Malloc new data [00:06:12]SetTLVBufToDocument err=0 [00:06:12]Processing tag 1007 (03EF) [00:06:12]Load OK [00:06:12]SetTLVBufToDocument [00:06:12]Processing tag 1014 (03F6) [00:06:12]Malloc new data [00:06:12]Processing tag 1015 (03F7) [00:06:12]Malloc new data [00:06:12]SetTLVBufToDocument err=0 [00:06:12]Processing tag 1007 (03EF) [00:06:12]Load OK [00:06:12]SetTLVBufToDocument [00:06:12]Processing tag 1014 (03F6) [00:06:12]Malloc new data [00:06:12]Processing tag 1015 (03F7) [00:06:12]Malloc new data [00:06:12]SetTLVBufToDocument err=0 [00:06:12]Processing tag 1007 (03EF) [00:06:12]Load OK [00:06:12]SetTLVBufToDocument [00:06:12]Processing tag 1014 (03F6) [00:06:12]Malloc new data [00:06:12]Processing tag 1015 (03F7) [00:06:12]Malloc new data [00:06:12]SetTLVBufToDocument err=0 [00:06:12]Processing tag 1007 (03EF) [00:06:12]Load OK [00:06:12]SetTLVBufToDocument [00:06:12]Processing tag 1014 (03F6) [00:06:12]Malloc new data [00:06:12]Processing tag 1015 (03F7) [00:06:12]Malloc new data [00:06:12]SetTLVBufToDocument err=0 [00:06:12]Processing tag 1007 (03EF) [00:06:12]Load OK [00:06:12]SetTLVBufToDocument [00:06:12]Processing tag 1014 (03F6) [00:06:12]Malloc new data [00:06:12]Processing tag 1015 (03F7) [00:06:12]Malloc new data [00:06:12]SetTLVBufToDocument err=0 [00:06:12]SetTLVBufToDocument err=0 [00:06:12]SetTLVBufToDocument err=0 [00:06:12]Processing tag 1133 (046D) [00:06:12]Malloc new data [00:06:12]SetTLVBufToDocument err=0 [00:06:12]SetTLVBufToDocument err=0 [00:06:12]Malloc new data [00:06:12]SAM_PROTO_GetFMData [00:06:12]wFMCommunicate request_size=4 [00:06:12]MH_SAM_APDU [00:06:12]CAPDU: 80 13 03 00 [00:06:12]Write to MH i2c: E2 08 00 AC 03 80 13 03 00 00 00 00 00 2E [00:06:12]Write i2c OK [00:06:12]MH_I2C_Read... [00:06:12]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:06:12]Read from MH i2c: E2 [00:06:12]MH_I2C_Read... [00:06:12]Read from MH i2c: E2 FD 00 [00:06:12]MH_I2C_Read... [00:06:12]Read from MH i2c: E2 FD 00 AC 03 00 CB 04 85 04 C7 04 6E 04 04 00 A9 DA 02 00 69 04 A4 00 6F 04 04 00 1A DA 02 00 B1 04 05 00 9F 34 FF B7 06 70 04 05 00 CC D2 1C 9F 04 72 04 05 00 D3 61 E2 18 02 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 25 6E B0 B6 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 D4 24 39 0F EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 A1 00 6F 04 04 00 8F 00 00 00 B1 04 05 00 18 60 DC 31 01 70 04 05 00 C8 19 DC 31 01 72 04 02 00 50 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 36 17 90 00 26 [00:06:13]RAPDU: CB 04 85 04 C7 04 6E 04 04 00 A9 DA 02 00 69 04 A4 00 6F 04 04 00 1A DA 02 00 B1 04 05 00 9F 34 FF B7 06 70 04 05 00 CC D2 1C 9F 04 72 04 05 00 D3 61 E2 18 02 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 25 6E B0 B6 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 D4 24 39 0F EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 A1 00 6F 04 04 00 8F 00 00 00 B1 04 05 00 18 60 DC 31 01 70 04 05 00 C8 19 DC 31 01 72 04 02 00 50 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 36 17 90 00 [00:06:13]wFMCommunicate OK [00:06:13]wFMCommunicate request_size=4 [00:06:13]MH_SAM_APDU [00:06:13]CAPDU: 80 17 00 00 [00:06:13]Write to MH i2c: E2 08 00 AD 03 80 17 00 00 00 00 00 00 30 [00:06:13]Write i2c OK [00:06:13]MH_I2C_Read... [00:06:13]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:06:13]Read from MH i2c: E2 [00:06:13]MH_I2C_Read... [00:06:13]Read from MH i2c: E2 FD 00 [00:06:13]MH_I2C_Read... [00:06:13]Read from MH i2c: E2 FD 00 AD 03 00 7B 20 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 92 EC B4 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 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 90 00 FD [00:06:13]RAPDU: 7B 20 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 92 EC B4 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 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 90 00 [00:06:13]wFMCommunicate OK [00:06:13]wFMCommunicate request_size=4 [00:06:13]MH_SAM_APDU [00:06:13]CAPDU: 80 17 00 00 [00:06:13]Write to MH i2c: E2 08 00 AE 03 80 17 00 00 00 00 00 00 31 [00:06:13]Write i2c OK [00:06:13]MH_I2C_Read... [00:06:13]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:06:13]Read from MH i2c: E2 [00:06:13]MH_I2C_Read... [00:06:13]Read from MH i2c: E2 FD 00 [00:06:13]MH_I2C_Read... [00:06:14]Read from MH i2c: E2 FD 00 AE 03 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 0C [00:06:14]RAPDU: 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:06:14]wFMCommunicate OK [00:06:14]wFMCommunicate request_size=4 [00:06:14]MH_SAM_APDU [00:06:14]CAPDU: 80 17 00 00 [00:06:14]Write to MH i2c: E2 08 00 AF 03 80 17 00 00 00 00 00 00 32 [00:06:14]Write i2c OK [00:06:14]MH_I2C_Read... [00:06:14]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:06:14]Read from MH i2c: E2 [00:06:14]MH_I2C_Read... [00:06:14]Read from MH i2c: E2 FD 00 [00:06:14]MH_I2C_Read... [00:06:14]Read from MH i2c: E2 FD 00 AF 03 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 B0 [00:06:14]RAPDU: 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:06:14]wFMCommunicate OK [00:06:14]wFMCommunicate request_size=4 [00:06:14]MH_SAM_APDU [00:06:14]CAPDU: 80 17 00 00 [00:06:14]Write to MH i2c: E2 08 00 B0 03 80 17 00 00 00 00 00 00 33 [00:06:14]Write i2c OK [00:06:14]MH_I2C_Read... [00:06:14]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 229! [00:06:15]Read from MH i2c: E2 [00:06:15]MH_I2C_Read... [00:06:15]Read from MH i2c: E2 E8 00 [00:06:15]MH_I2C_Read... [00:06:15]Read from MH i2c: E2 E8 00 B0 03 00 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 11 [00:06:15]RAPDU: 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:06:15]wFMCommunicate OK [00:06:15]SAM_PROTO_GetFMData done [00:06:15]FM_GetFMData:85 04 C7 04 6E 04 04 00 A9 DA 02 00 69 04 A4 00 6F 04 04 00 1A DA 02 00 B1 04 05 00 9F 34 FF B7 06 70 04 05 00 CC D2 1C 9F 04 72 04 05 00 D3 61 E2 18 02 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 25 6E B0 B6 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 D4 24 39 0F EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 A1 00 6F 04 04 00 8F 00 00 00 B1 04 05 00 18 60 DC 31 01 70 04 05 00 C8 19 DC 31 01 72 04 02 00 50 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 36 17 7B 20 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 92 EC B4 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 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:06:15]oper:6F 04 04 00 1A DA 02 00 B1 04 05 00 9F 34 FF B7 06 70 04 05 00 CC D2 1C 9F 04 72 04 05 00 D3 61 E2 18 02 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 25 6E B0 B6 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 D4 24 39 0F EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:06:15]total:9F 34 FF B7 06 [00:06:15]Malloc new data [00:06:15]oper:6F 04 04 00 8F 00 00 00 B1 04 05 00 18 60 DC 31 01 70 04 05 00 C8 19 DC 31 01 72 04 02 00 50 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 36 17 7B 20 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 92 EC B4 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [00:06:16]total:18 60 DC 31 01 [00:06:16]Malloc new data [00:06:16]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:06:16]total: [00:06:16]Malloc new data [00:06:16]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 OFD Sender: No OFD packet to send [00:06:16]F7 03 00 00 EF 03 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:06:16]total: [00:06:16]Malloc new data [00:06:16]KKMPrepareXReportFMData err=0 [00:06:16]Х отчет ИНН: 02508201610067 Кассир: Арыкбаев Н. 22.10.2024 00:06 Смена: 266 РНМ: 0000000000100030 ЗНМ: 0300000155 СНО: Общий режим Всего чеков: 433 ИТОГИ ПРИХОД Чеков: 433 Общий итог: 625404.30 Итого наличными: 434907.00 Итого безнал.: 190497.30 НДС 0% : 0.00 НДС 12% : 66426.46 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 5535.28 ИТОГИ ВОЗВРАТ ПРИХОДА Чеков: 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 Нал. в кассе: 434907.00 НС Приход: 288567594.55 НС Возвр.Прихода: 51314934.00 НС Расход: 0.00 НС Возвр.Расхода: 0.00 ФМ: 0000000000965340 [00:06:16]StoreToDocumentArchive [00:06:16]MH_GetDate [00:06:16]Write to MH i2c: F0 00 00 B1 03 A3 [00:06:16]Write i2c OK [00:06:16]MH_I2C_Read... [00:06:16]Read from MH i2c: F0 [00:06:16]MH_I2C_Read... [00:06:16]Read from MH i2c: F0 09 00 [00:06:16]MH_I2C_Read... [00:06:16]Read from MH i2c: F0 09 00 B1 03 00 79 EC 16 67 A0 18 CA 66 76 [00:06:16]shift 266 fd 1729555577 [00:06:16]Create dir for shift 0266 [00:06:16]save to /storage/0266/doc_1729555577 [00:06:16]save last doc name /storage/0266/doc_1729555577 to /storage/kkm_last_doc_name [00:06:16]save OK [00:06:16]Clear old archive folders... [00:06:16]NVStorageSaveData kkm_last_timestamp [00:06:16]File name is /storage/kkm_last_timestamp [00:06:16]Write 4 bytes [00:06:16]NVStorageSaveData done [00:06:16]ExternCall_PrintAddStr [00:06:16]wPrintStart [00:06:16]Write to MH i2c: 01 00 00 B2 03 B5 [00:06:16]Write i2c OK [00:06:16]MH_I2C_Read... [00:06:16]Read from MH i2c: 01 [00:06:16]MH_I2C_Read... [00:06:16]Read from MH i2c: 01 07 00 [00:06:16]MH_I2C_Read... [00:06:16]Read from MH i2c: 01 07 00 B2 03 00 00 00 00 00 FF 0F CA [00:06:16]RasterBufferAndPrint [00:06:16]line Х отчет [00:06:16]line ИНН: 02508201610067 [00:06:16]line Кассир: Арыкбаев Н. [00:06:16]line 22.10.2024 00:06 [00:06:16]line Смена: 266 [00:06:16]line РНМ: 0000000000100030 [00:06:16]line ЗНМ: 0300000155 [00:06:16]line СНО: Общий режим [00:06:16]line Всего чеков: 433 [00:06:16]line ИТОГИ ПРИХОД [00:06:16]line Чеков: 433 [00:06:16]line Общий итог: 625404.30 [00:06:16]line Итого наличными: 434907.00 [00:06:16]line Итого безнал.: 190497.30 [00:06:16]line НДС 0% : 0.00 [00:06:16]line НДС 12% : 66426.46 [00:06:16]line НСП 0% : 0.00 [00:06:16]line НСП 1,50% : 0.00 [00:06:16]line НСП 0,50% : 0.00 [00:06:16]line НСП 5% : 0.00 [00:06:16]line НСП 3% : 0.00 [00:06:16]line НСП 2% : 0.00 [00:06:16]line НСП 1% : 5535.28 [00:06:16]line ИТОГИ ВОЗВРАТ ПРИХОДА [00:06:16]line Чеков: 0 [00:06:16]line Общий итог: 0.00 [00:06:16]line Итого наличными: 0.00 [00:06:16]line Итого безнал.: 0.00 [00:06:16]line НДС 0% : 0.00 [00:06:16]line НДС 12% : 0.00 [00:06:16]line НСП 0% : 0.00 [00:06:16]line НСП 1,50% : 0.00 [00:06:16]line НСП 0,50% : 0.00 [00:06:16]line НСП 5% : 0.00 [00:06:16]line НСП 3% : 0.00 [00:06:16]line НСП 2% : 0.00 [00:06:16]line НСП 1% : 0.00 [00:06:16]line ИТОГИ РАСХОД [00:06:16]line Чеков: 0 [00:06:16]line Общий итог: 0.00 [00:06:16]line Итого наличными: 0.00 [00:06:16]line Итого безнал.: 0.00 [00:06:16]line НДС 0% : 0.00 [00:06:16]line НДС 12% : 0.00 [00:06:16]line НСП 0% : 0.00 [00:06:16]line НСП 1,50% : 0.00 [00:06:16]line НСП 0,50% : 0.00 [00:06:16]line НСП 5% : 0.00 [00:06:16]line НСП 3% : 0.00 [00:06:16]line НСП 2% : 0.00 [00:06:16]line НСП 1% : 0.00 [00:06:16]line ИТОГИ ВОЗВРАТ РАСХОДА [00:06:16]line Чеков: 0 [00:06:16]line Общий итог: 0.00 [00:06:16]line Итого наличными: 0.00 [00:06:16]line Итого безнал.: 0.00 [00:06:16]line НДС 0% : 0.00 [00:06:16]line НДС 12% : 0.00 [00:06:16]line НСП 0% : 0.00 [00:06:16]line НСП 1,50% : 0.00 [00:06:16]line НСП 0,50% : 0.00 [00:06:16]line НСП 5% : 0.00 [00:06:16]line НСП 3% : 0.00 [00:06:16]line НСП 2% : 0.00 [00:06:16]line НСП 1% : 0.00 [00:06:16]line Сумма внесений: 0.00 [00:06:16]line Сумма выплат: 0.00 [00:06:16]line Нал. в кассе: 434907.00 [00:06:16]line НС Приход: 288567594.55 [00:06:16]line НС Возвр.Прихода: 51314934.00 [00:06:16]line НС Расход: 0.00 [00:06:16]line НС Возвр.Расхода: 0.00 [00:06:16]line ФМ: 0000000000965340 [00:06:16]written 0, free lines is 4095 [00:06:17]Write to MH i2c: 01 00 00 FE 03 01 [00:06:17]Write i2c OK [00:06:17]MH_I2C_Read... [00:06:17]Read from MH i2c: 01 [00:06:17]MH_I2C_Read... [00:06:17]Read from MH i2c: 01 07 00 [00:06:17]MH_I2C_Read... [00:06:17]Read from MH i2c: 01 07 00 FE 03 00 00 00 00 00 99 09 AA [00:06:17]RasterBufferAndPrint [00:06:17]line [00:06:17]line [00:06:17]line [00:06:17]line [00:06:17]line [00:06:17]written 0, free lines is 2485 [00:06:17]MH_Cut [00:06:17]Write to MH i2c: D1 01 00 05 04 01 DB [00:06:17]Write i2c OK [00:06:17]MH_I2C_Read... [00:06:17]Read from MH i2c: D1 [00:06:17]MH_I2C_Read... [00:06:17]Read from MH i2c: D1 01 00 [00:06:17]MH_I2C_Read... [00:06:17]Read from MH i2c: D1 01 00 05 04 00 DA [00:06:17]Write to MH i2c: 01 00 00 06 04 0A [00:06:17]Write i2c OK [00:06:17]MH_I2C_Read... [00:06:18]*** Cut start [00:06:18]*** Partial cut [00:06:18]*** CUTSNS_PIN = 1 [00:06:18]*** CUTSNS_PIN = 0 [00:06:19]*** Brake cut motor [00:06:19]Read from MH i2c: 01 [00:06:19]MH_I2C_Read... [00:06:19]*** Stop cut motor [00:06:19]*** Cut end [00:06:19]Read from MH i2c: 01 07 00 [00:06:19]MH_I2C_Read... [00:06:19]Read from MH i2c: 01 07 00 06 04 00 00 00 00 00 FF 0F 1F [00:06:19]process_action x_report done [00:06:19]requested_data is exist [00:06:19]produce_requested_data [00:06:19]requested_item fd.num is exist - process it [00:06:19]SAM_PROTO_GetFieldsCounters [00:06:19]wFMCommunicate request_size=4 [00:06:19]MH_SAM_APDU [00:06:19]CAPDU: 80 13 00 00 [00:06:19]Write to MH i2c: E2 08 00 07 04 80 13 00 00 00 00 00 00 87 [00:06:19]Write i2c OK [00:06:19]MH_I2C_Read... [00:06:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:06:19]Read from MH i2c: E2 [00:06:19]MH_I2C_Read... [00:06:19]Read from MH i2c: E2 62 00 [00:06:19]MH_I2C_Read... [00:06:19]Read from MH i2c: E2 62 00 07 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 41 DE 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 B1 01 00 00 5E 04 04 00 B1 01 00 00 57 04 04 00 B2 01 00 00 19 04 04 00 00 00 00 00 90 00 92 [00:06:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 41 DE 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 B1 01 00 00 5E 04 04 00 B1 01 00 00 57 04 04 00 B2 01 00 00 19 04 04 00 00 00 00 00 90 00 [00:06:19]wFMCommunicate OK [00:06:19]SAM_PROTO_GetFieldsCounters done [00:06:19]requested_item shift.num is exist - process it [00:06:19]requested_item shift.opened is exist - process it [00:06:19]req_shift_opened [00:06:19]FM_GetShiftState [00:06:19]SAM_PROTO_GetShiftState [00:06:19]wFMCommunicate request_size=4 [00:06:19]MH_SAM_APDU [00:06:19]CAPDU: 80 13 01 00 [00:06:19]Write to MH i2c: E2 08 00 08 04 80 13 01 00 00 00 00 00 89 [00:06:19]Write i2c OK [00:06:19]MH_I2C_Read... [00:06:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:06:19]Read from MH i2c: E2 [00:06:19]MH_I2C_Read... [00:06:19]Read from MH i2c: E2 0E 00 [00:06:19]MH_I2C_Read... [00:06:19]Read from MH i2c: E2 0E 00 08 04 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 E8 [00:06:19]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [00:06:19]wFMCommunicate OK [00:06:19]SAM_PROTO_GetShiftState done [00:06:19]FM_GetShiftState done [00:06:19]req_shift_opened done [00:06:19]requested_item shift.open_date is exist - process it [00:06:19]req_shift_open_date [00:06:19]req_shift_open_date done [00:06:19]produce_requested_data done [00:06:19]produce_requested_data return {"fd.num":187969,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [00:06:19]process_action_free x_report [00:06:19]json_value_free [00:06:19]json_value_free done [00:06:19]process_json_proto returns [00:06:19]Send response to host [00:06:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":187969,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [00:06:19]free response buf [00:06:19]execute_script done [00:06:19]execute_script returns [00:06:19]free content buf [00:06:19]Sock 9.Close socket [00:06:19]Sock 9.Thread stoped [00:06:21]OFD Sender: No OFD packet to send [00:06:26]OFD Sender: No OFD packet to send [00:06:31]OFD Sender: No OFD packet to send [00:06:36]OFD Sender: No OFD packet to send [00:06:41]OFD Sender: No OFD packet to send [00:06:44]accept exits with 8 [00:06:44]New connection [00:06:44]New thread 3067198820 created [00:06:44]Thread 3067055460 joined [00:06:44]Waiting for new connection... [00:06:44] Sock 8.Parse request [00:06:44]Sock 8.Check first char [00:06:44]Sock 8.First char is OK [00:06:44]request: POST /json_proto HTTP/1.0 [00:06:44]Method: POST [00:06:44]URL: /json_proto [00:06:44]Method is POST - this is cgi request [00:06:44]url: /json_proto [00:06:44]query_string will be loaded in cgi processing [00:06:44]execute_cgi json_proto POST (null) [00:06:44]execute_cgi path=json_proto method=POST [00:06:44]POST find Content-Length [00:06:44]Host: 172.17.42.131:8080 [00:06:44]Content-Length: 215 [00:06:44]Content-Type: application/json [00:06:44] [00:06:44]POST finish read [00:06:44]Found Content-Length = 215 [00:06: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" ] } } [00:06:44]execute_script... [00:06: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" ] } } [00:06:44]POST & json_proto [00:06:44]process_json_proto [00:06:44]json parsed OK: [00:06:44]protocol is kg_v1.0 [00:06:44]action value=get_value [00:06:44]process_action get_value [00:06:44]cmd_get_value [00:06:44]process_action get_value done [00:06:44]requested_data is exist [00:06:44]produce_requested_data [00:06:44]requested_item kkm.sn is exist - process it [00:06:44]requested_item kkm.ver is exist - process it [00:06:44]requested_item fm.sn is exist - process it [00:06:44]wFMCommunicate request_size=4 [00:06:44]MH_SAM_APDU [00:06:44]CAPDU: 80 11 00 00 [00:06:44]Write to MH i2c: E2 08 00 09 04 80 11 00 00 00 00 00 00 87 [00:06:44]Write i2c OK [00:06:44]MH_I2C_Read... [00:06:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:06:44]Read from MH i2c: E2 [00:06:44]MH_I2C_Read... [00:06:44]Read from MH i2c: E2 17 00 [00:06:44]MH_I2C_Read... [00:06:44]Read from MH i2c: E2 17 00 09 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 D5 [00:06:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [00:06:44]wFMCommunicate OK [00:06:44]requested_item fd.num is exist - process it [00:06:44]SAM_PROTO_GetFieldsCounters [00:06:44]wFMCommunicate request_size=4 [00:06:44]MH_SAM_APDU [00:06:44]CAPDU: 80 13 00 00 [00:06:44]Write to MH i2c: E2 08 00 0A 04 80 13 00 00 00 00 00 00 8A [00:06:44]Write i2c OK [00:06:44]MH_I2C_Read... [00:06:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:06:44]Read from MH i2c: E2 [00:06:44]MH_I2C_Read... [00:06:44]Read from MH i2c: E2 62 00 [00:06:44]MH_I2C_Read... [00:06:44]Read from MH i2c: E2 62 00 0A 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 41 DE 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 B1 01 00 00 5E 04 04 00 B1 01 00 00 57 04 04 00 B2 01 00 00 19 04 04 00 00 00 00 00 90 00 95 [00:06:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 41 DE 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 B1 01 00 00 5E 04 04 00 B1 01 00 00 57 04 04 00 B2 01 00 00 19 04 04 00 00 00 00 00 90 00 [00:06:44]wFMCommunicate OK [00:06:44]SAM_PROTO_GetFieldsCounters done [00:06:44]requested_item shift.num is exist - process it [00:06:44]requested_item shift.opened is exist - process it [00:06:44]req_shift_opened [00:06:44]FM_GetShiftState [00:06:44]SAM_PROTO_GetShiftState [00:06:44]wFMCommunicate request_size=4 [00:06:44]MH_SAM_APDU [00:06:44]CAPDU: 80 13 01 00 [00:06:44]Write to MH i2c: E2 08 00 0B 04 80 13 01 00 00 00 00 00 8C [00:06:44]Write i2c OK [00:06:44]MH_I2C_Read... [00:06:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:06:44]Read from MH i2c: E2 [00:06:44]MH_I2C_Read... [00:06:44]Read from MH i2c: E2 0E 00 [00:06:44]MH_I2C_Read... [00:06:44]Read from MH i2c: E2 0E 00 0B 04 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 EB [00:06:44]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [00:06:44]wFMCommunicate OK [00:06:44]SAM_PROTO_GetShiftState done [00:06:44]FM_GetShiftState done [00:06:44]req_shift_opened done [00:06:44]requested_item shift.open_date is exist - process it [00:06:44]req_shift_open_date [00:06:44]req_shift_open_date done [00:06:44]produce_requested_data done [00:06:44]produce_requested_data return {"kkm.sn":"0300000155","kkm.ver":"001","fm.sn":"0000000000965340","fd.num":187969,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754} [00:06:44]process_action_free get_value [00:06:44]json_value_free [00:06:44]json_value_free done [00:06:44]process_json_proto returns [00:06:44]Send response to host [00:06:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000155","kkm.ver":"001","fm.sn":"0000000000965340","fd.num":187969,"shift.num":460,"shift.opened":1,"shift.open_date":1729469754}}} [00:06:44]free response buf [00:06:44]execute_script done [00:06:44]execute_script returns [00:06:44]free content buf [00:06:44]Sock 8.Close socket [00:06:44]Sock 8.Thread stoped [00:06:44]accept exits with 9 [00:06:44]New connection [00:06:44]New thread 3067055460 created [00:06:44]Thread 3067198820 joined [00:06:44]Waiting for new connection... [00:06:44] Sock 9.Parse request [00:06:44]Sock 9.Check first char [00:06:44]Sock 9.First char is OK [00:06:44]request: POST /json_proto HTTP/1.0 [00:06:44]Method: POST [00:06:44]URL: /json_proto [00:06:44]Method is POST - this is cgi request [00:06:44]url: /json_proto [00:06:44]query_string will be loaded in cgi processing [00:06:44]execute_cgi json_proto POST (null) [00:06:44]execute_cgi path=json_proto method=POST [00:06:44]POST find Content-Length [00:06:44]Host: 172.17.42.131:8080 [00:06:44]Content-Length: 331 [00:06:44]Content-Type: application/json [00:06:44] [00:06:44]POST finish read [00:06:44]Found Content-Length = 331 [00:06: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" ] } } [00:06:44]execute_script... [00:06: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" ] } } [00:06:44]POST & json_proto [00:06:44]process_json_proto [00:06:44]json parsed OK: [00:06:44]protocol is kg_v1.0 [00:06:44]action value=get_value [00:06:44]process_action get_value [00:06:44]cmd_get_value [00:06:44]process_action get_value done [00:06:44]requested_data is exist [00:06:44]produce_requested_data [00:06:44]requested_item fm.sale.total is exist - process it [00:06:44]SAM_PROTO_GetFMData [00:06:44]wFMCommunicate request_size=4 [00:06:44]MH_SAM_APDU [00:06:44]CAPDU: 80 13 03 00 [00:06:44]Write to MH i2c: E2 08 00 0C 04 80 13 03 00 00 00 00 00 8F [00:06:44]Write i2c OK [00:06:44]MH_I2C_Read... [00:06:44]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:06:44]Read from MH i2c: E2 [00:06:44]MH_I2C_Read... [00:06:44]Read from MH i2c: E2 FD 00 [00:06:44]MH_I2C_Read... [00:06:44]Read from MH i2c: E2 FD 00 0C 04 00 CB 04 85 04 C7 04 6E 04 04 00 A9 DA 02 00 69 04 A4 00 6F 04 04 00 1A DA 02 00 B1 04 05 00 9F 34 FF B7 06 70 04 05 00 CC D2 1C 9F 04 72 04 05 00 D3 61 E2 18 02 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 25 6E B0 B6 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 D4 24 39 0F EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 A1 00 6F 04 04 00 8F 00 00 00 B1 04 05 00 18 60 DC 31 01 70 04 05 00 C8 19 DC 31 01 72 04 02 00 50 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 36 17 90 00 87 [00:06:44]RAPDU: CB 04 85 04 C7 04 6E 04 04 00 A9 DA 02 00 69 04 A4 00 6F 04 04 00 1A DA 02 00 B1 04 05 00 9F 34 FF B7 06 70 04 05 00 CC D2 1C 9F 04 72 04 05 00 D3 61 E2 18 02 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 25 6E B0 B6 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 D4 24 39 0F EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 A1 00 6F 04 04 00 8F 00 00 00 B1 04 05 00 18 60 DC 31 01 70 04 05 00 C8 19 DC 31 01 72 04 02 00 50 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 36 17 90 00 [00:06:44]wFMCommunicate OK [00:06:44]wFMCommunicate request_size=4 [00:06:44]MH_SAM_APDU [00:06:44]CAPDU: 80 17 00 00 [00:06:44]Write to MH i2c: E2 08 00 0D 04 80 17 00 00 00 00 00 00 91 [00:06:44]Write i2c OK [00:06:44]MH_I2C_Read... [00:06:45]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:06:45]Read from MH i2c: E2 [00:06:45]MH_I2C_Read... [00:06:45]Read from MH i2c: E2 FD 00 [00:06:45]MH_I2C_Read... [00:06:45]Read from MH i2c: E2 FD 00 0D 04 00 7B 20 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 92 EC B4 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 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 90 00 5E [00:06:45]RAPDU: 7B 20 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 92 EC B4 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 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 90 00 [00:06:45]wFMCommunicate OK [00:06:45]wFMCommunicate request_size=4 [00:06:45]MH_SAM_APDU [00:06:45]CAPDU: 80 17 00 00 [00:06:45]Write to MH i2c: E2 08 00 0E 04 80 17 00 00 00 00 00 00 92 [00:06:45]Write i2c OK [00:06:45]MH_I2C_Read... [00:06:45]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:06:45]Read from MH i2c: E2 [00:06:45]MH_I2C_Read... [00:06:45]Read from MH i2c: E2 FD 00 [00:06:45]MH_I2C_Read... [00:06:45]Read from MH i2c: E2 FD 00 0E 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 6D [00:06:45]RAPDU: 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:06:45]wFMCommunicate OK [00:06:45]wFMCommunicate request_size=4 [00:06:45]MH_SAM_APDU [00:06:45]CAPDU: 80 17 00 00 [00:06:45]Write to MH i2c: E2 08 00 0F 04 80 17 00 00 00 00 00 00 93 [00:06:45]Write i2c OK [00:06:45]MH_I2C_Read... [00:06:45]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:06:45]Read from MH i2c: E2 [00:06:45]MH_I2C_Read... [00:06:45]Read from MH i2c: E2 FD 00 [00:06:45]MH_I2C_Read... [00:06:45]Read from MH i2c: E2 FD 00 0F 04 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 11 [00:06:46]RAPDU: 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:06:46]wFMCommunicate OK [00:06:46]wFMCommunicate request_size=4 [00:06:46]MH_SAM_APDU [00:06:46]CAPDU: 80 17 00 00 [00:06:46]Write to MH i2c: E2 08 00 10 04 80 17 00 00 00 00 00 00 94 [00:06:46]Write i2c OK [00:06:46]MH_I2C_Read... [00:06:46]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 229! [00:06:46]Read from MH i2c: E2 [00:06:46]MH_I2C_Read... [00:06:46]Read from MH i2c: E2 E8 00 [00:06:46]MH_I2C_Read... [00:06:46]Read from MH i2c: E2 E8 00 10 04 00 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 72 [00:06:46]RAPDU: 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 OFD Sender: No OFD packet to send [00:06:46]F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:06:46]wFMCommunicate OK [00:06:46]SAM_PROTO_GetFMData done [00:06:46]requested_item fm.sale_refund.total is exist - process it [00:06:46]requested_item fm.buy.total is exist - process it [00:06:46]requested_item shift.sale.total is exist - process it [00:06:46]SAM_PROTO_GetShiftData [00:06:46]wFMCommunicate request_size=4 [00:06:46]MH_SAM_APDU [00:06:46]CAPDU: 80 13 02 00 [00:06:46]Write to MH i2c: E2 08 00 11 04 80 13 02 00 00 00 00 00 93 [00:06:46]Write i2c OK [00:06:46]MH_I2C_Read... [00:06:47]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:06:47]Read from MH i2c: E2 [00:06:47]MH_I2C_Read... [00:06:47]Read from MH i2c: E2 FD 00 [00:06:47]MH_I2C_Read... [00:06:47]Read from MH i2c: E2 FD 00 11 04 00 B2 04 AA 04 AE 04 6E 04 04 00 B1 01 00 00 69 04 9F 00 6F 04 04 00 B1 01 00 00 B1 04 04 00 8E 4A BA 03 70 04 04 00 8C 9D 97 02 72 04 04 00 02 AD 22 01 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 D6 5B 65 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 38 72 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 42 [00:06:47]RAPDU: B2 04 AA 04 AE 04 6E 04 04 00 B1 01 00 00 69 04 9F 00 6F 04 04 00 B1 01 00 00 B1 04 04 00 8E 4A BA 03 70 04 04 00 8C 9D 97 02 72 04 04 00 02 AD 22 01 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 D6 5B 65 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 38 72 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:06:47]wFMCommunicate OK [00:06:47]wFMCommunicate request_size=4 [00:06:47]MH_SAM_APDU [00:06:47]CAPDU: 80 17 00 00 [00:06:47]Write to MH i2c: E2 08 00 12 04 80 17 00 00 00 00 00 00 96 [00:06:47]Write i2c OK [00:06:47]MH_I2C_Read... [00:06:47]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:06:47]Read from MH i2c: E2 [00:06:47]MH_I2C_Read... [00:06:47]Read from MH i2c: E2 FD 00 [00:06:47]MH_I2C_Read... [00:06:47]Read from MH i2c: E2 FD 00 12 04 00 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 AD [00:06:47]RAPDU: 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:06:47]wFMCommunicate OK [00:06:47]wFMCommunicate request_size=4 [00:06:47]MH_SAM_APDU [00:06:47]CAPDU: 80 17 00 00 [00:06:47]Write to MH i2c: E2 08 00 13 04 80 17 00 00 00 00 00 00 97 [00:06:47]Write i2c OK [00:06:47]MH_I2C_Read... [00:06:48]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:06:48]Read from MH i2c: E2 [00:06:48]MH_I2C_Read... [00:06:48]Read from MH i2c: E2 FD 00 [00:06:48]MH_I2C_Read... [00:06:48]Read from MH i2c: E2 FD 00 13 04 00 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 53 [00:06:48]RAPDU: 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:06:48]wFMCommunicate OK [00:06:48]wFMCommunicate request_size=4 [00:06:48]MH_SAM_APDU [00:06:48]CAPDU: 80 17 00 00 [00:06:48]Write to MH i2c: E2 08 00 14 04 80 17 00 00 00 00 00 00 98 [00:06:48]Write i2c OK [00:06:48]MH_I2C_Read... [00:06:48]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:06:48]Read from MH i2c: E2 [00:06:48]MH_I2C_Read... [00:06:48]Read from MH i2c: E2 FD 00 [00:06:48]MH_I2C_Read... [00:06:48]Read from MH i2c: E2 FD 00 14 04 00 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 90 00 0F [00:06:48]RAPDU: 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 90 00 [00:06:48]wFMCommunicate OK [00:06:48]wFMCommunicate request_size=4 [00:06:48]MH_SAM_APDU [00:06:48]CAPDU: 80 17 00 00 [00:06:48]Write to MH i2c: E2 08 00 15 04 80 17 00 00 00 00 00 00 99 [00:06:48]Write i2c OK [00:06:48]MH_I2C_Read... [00:06:48]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 204! [00:06:48]Read from MH i2c: E2 [00:06:48]MH_I2C_Read... [00:06:48]Read from MH i2c: E2 CF 00 [00:06:48]MH_I2C_Read... [00:06:48]Read from MH i2c: E2 CF 00 15 04 00 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 80 [00:06:49]RAPDU: 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:06:49]wFMCommunicate OK [00:06:49]SAM_PROTO_GetShiftData done [00:06:49]requested_item shift.sale.total_cash is exist - process it [00:06:49]requested_item shift.sale_refund.total is exist - process it [00:06:49]requested_item shift.sale_refund.total_cash is exist - process it [00:06:49]requested_item shift.buy.total is exist - process it [00:06:49]requested_item shift.buy.total_cash is exist - process it [00:06:49]produce_requested_data done [00:06:49]produce_requested_data return {"fm.sale.total":288567594.55,"fm.sale_refund.total":51314934.00,"fm.buy.total":0.00,"shift.sale.total":625404.30,"shift.sale.total_cash":434907.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:06:49]process_action_free get_value [00:06:49]json_value_free [00:06:49]json_value_free done [00:06:49]process_json_proto returns [00:06:49]Send response to host [00:06:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":288567594.55,"fm.sale_refund.total":51314934.00,"fm.buy.total":0.00,"shift.sale.total":625404.30,"shift.sale.total_cash":434907.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:06:49]free response buf [00:06:49]execute_script done [00:06:49]execute_script returns [00:06:49]free content buf [00:06:49]Sock 9.Close socket [00:06:49]Sock 9.Thread stoped [00:06:49]accept exits with 8 [00:06:49]New connection [00:06:49]New thread 3067198820 created [00:06:49]Thread 3067055460 joined [00:06:49]Waiting for new connection... [00:06:49] Sock 8.Parse request [00:06:49]Sock 8.Check first char [00:06:49]Sock 8.First char is OK [00:06:49]request: POST /json_proto HTTP/1.0 [00:06:49]Method: POST [00:06:49]URL: /json_proto [00:06:49]Method is POST - this is cgi request [00:06:49]url: /json_proto [00:06:49]query_string will be loaded in cgi processing [00:06:49]execute_cgi json_proto POST (null) [00:06:49]execute_cgi path=json_proto method=POST [00:06:49]POST find Content-Length [00:06:49]Host: 172.17.42.131:8080 [00:06:49]Content-Length: 331 [00:06:49]Content-Type: application/json [00:06:49] [00:06:49]POST finish read [00:06:49]Found Content-Length = 331 [00:06:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:06:49]execute_script... [00:06:49]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:06:49]POST & json_proto [00:06:49]process_json_proto [00:06:49]json parsed OK: [00:06:49]protocol is kg_v1.0 [00:06:49]action value=get_value [00:06:49]process_action get_value [00:06:49]cmd_get_value [00:06:49]process_action get_value done [00:06:49]requested_data is exist [00:06:49]produce_requested_data [00:06:49]requested_item fm.sale.total is exist - process it [00:06:49]SAM_PROTO_GetFMData [00:06:49]wFMCommunicate request_size=4 [00:06:49]MH_SAM_APDU [00:06:49]CAPDU: 80 13 03 00 [00:06:49]Write to MH i2c: E2 08 00 16 04 80 13 03 00 00 00 00 00 99 [00:06:49]Write i2c OK [00:06:49]MH_I2C_Read... [00:06:49]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:06:49]Read from MH i2c: E2 [00:06:49]MH_I2C_Read... [00:06:49]Read from MH i2c: E2 FD 00 [00:06:49]MH_I2C_Read... [00:06:49]Read from MH i2c: E2 FD 00 16 04 00 CB 04 85 04 C7 04 6E 04 04 00 A9 DA 02 00 69 04 A4 00 6F 04 04 00 1A DA 02 00 B1 04 05 00 9F 34 FF B7 06 70 04 05 00 CC D2 1C 9F 04 72 04 05 00 D3 61 E2 18 02 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 25 6E B0 B6 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 D4 24 39 0F EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 A1 00 6F 04 04 00 8F 00 00 00 B1 04 05 00 18 60 DC 31 01 70 04 05 00 C8 19 DC 31 01 72 04 02 00 50 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 36 17 90 00 91 [00:06:49]RAPDU: CB 04 85 04 C7 04 6E 04 04 00 A9 DA 02 00 69 04 A4 00 6F 04 04 00 1A DA 02 00 B1 04 05 00 9F 34 FF B7 06 70 04 05 00 CC D2 1C 9F 04 72 04 05 00 D3 61 E2 18 02 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 25 6E B0 B6 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 D4 24 39 0F EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 A1 00 6F 04 04 00 8F 00 00 00 B1 04 05 00 18 60 DC 31 01 70 04 05 00 C8 19 DC 31 01 72 04 02 00 50 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 36 17 90 00 [00:06:49]wFMCommunicate OK [00:06:49]wFMCommunicate request_size=4 [00:06:49]MH_SAM_APDU [00:06:49]CAPDU: 80 17 00 00 [00:06:49]Write to MH i2c: E2 08 00 17 04 80 17 00 00 00 00 00 00 9B [00:06:49]Write i2c OK [00:06:49]MH_I2C_Read... [00:06:50]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:06:50]Read from MH i2c: E2 [00:06:50]MH_I2C_Read... [00:06:50]Read from MH i2c: E2 FD 00 [00:06:50]MH_I2C_Read... [00:06:50]Read from MH i2c: E2 FD 00 17 04 00 7B 20 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 92 EC B4 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 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 90 00 68 [00:06:50]RAPDU: 7B 20 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 92 EC B4 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 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 90 00 [00:06:50]wFMCommunicate OK [00:06:50]wFMCommunicate request_size=4 [00:06:50]MH_SAM_APDU [00:06:50]CAPDU: 80 17 00 00 [00:06:50]Write to MH i2c: E2 08 00 18 04 80 17 00 00 00 00 00 00 9C [00:06:50]Write i2c OK [00:06:50]MH_I2C_Read... [00:06:50]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:06:50]Read from MH i2c: E2 [00:06:50]MH_I2C_Read... [00:06:50]Read from MH i2c: E2 FD 00 [00:06:50]MH_I2C_Read... [00:06:50]Read from MH i2c: E2 FD 00 18 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 77 [00:06:50]RAPDU: 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:06:50]wFMCommunicate OK [00:06:50]wFMCommunicate request_size=4 [00:06:50]MH_SAM_APDU [00:06:50]CAPDU: 80 17 00 00 [00:06:50]Write to MH i2c: E2 08 00 19 04 80 17 00 00 00 00 00 00 9D [00:06:50]Write i2c OK [00:06:50]MH_I2C_Read... [00:06:51]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:06:51]Read from MH i2c: E2 [00:06:51]MH_I2C_Read... [00:06:51]Read from MH i2c: E2 FD 00 [00:06:51]MH_I2C_Read... [00:06:51]Read from MH i2c: E2 FD 00 19 04 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 1B [00:06:51]RAPDU: 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:06:51]wFMCommunicate OK [00:06:51]wFMCommunicate request_size=4 [00:06:51]MH_SAM_APDU [00:06:51]CAPDU: 80 17 00 00 [00:06:51]Write to MH i2c: E2 08 00 1A 04 80 17 00 00 00 00 00 00 9E [00:06:51]Write i2c OK [00:06:51]MH_I2C_Read... [00:06:51]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 229! [00:06:51]OFD Sender: No OFD packet to send [00:06:51]Read from MH i2c: E2 [00:06:51]MH_I2C_Read... [00:06:51]Read from MH i2c: E2 E8 00 [00:06:51]MH_I2C_Read... [00:06:51]Read from MH i2c: E2 E8 00 1A 04 00 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 7C [00:06:51]RAPDU: 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:06:51]wFMCommunicate OK [00:06:51]SAM_PROTO_GetFMData done [00:06:51]requested_item fm.sale_refund.total is exist - process it [00:06:51]requested_item fm.buy.total is exist - process it [00:06:51]requested_item shift.sale.total is exist - process it [00:06:51]SAM_PROTO_GetShiftData [00:06:51]wFMCommunicate request_size=4 [00:06:51]MH_SAM_APDU [00:06:51]CAPDU: 80 13 02 00 [00:06:52]Write to MH i2c: E2 08 00 1B 04 80 13 02 00 00 00 00 00 9D [00:06:52]Write i2c OK [00:06:52]MH_I2C_Read... [00:06:52]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:06:52]Read from MH i2c: E2 [00:06:52]MH_I2C_Read... [00:06:52]Read from MH i2c: E2 FD 00 [00:06:52]MH_I2C_Read... [00:06:52]Read from MH i2c: E2 FD 00 1B 04 00 B2 04 AA 04 AE 04 6E 04 04 00 B1 01 00 00 69 04 9F 00 6F 04 04 00 B1 01 00 00 B1 04 04 00 8E 4A BA 03 70 04 04 00 8C 9D 97 02 72 04 04 00 02 AD 22 01 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 D6 5B 65 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 38 72 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 4C [00:06:52]RAPDU: B2 04 AA 04 AE 04 6E 04 04 00 B1 01 00 00 69 04 9F 00 6F 04 04 00 B1 01 00 00 B1 04 04 00 8E 4A BA 03 70 04 04 00 8C 9D 97 02 72 04 04 00 02 AD 22 01 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 D6 5B 65 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 38 72 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:06:52]wFMCommunicate OK [00:06:52]wFMCommunicate request_size=4 [00:06:52]MH_SAM_APDU [00:06:52]CAPDU: 80 17 00 00 [00:06:52]Write to MH i2c: E2 08 00 1C 04 80 17 00 00 00 00 00 00 A0 [00:06:52]Write i2c OK [00:06:52]MH_I2C_Read... [00:06:52]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:06:52]Read from MH i2c: E2 [00:06:52]MH_I2C_Read... [00:06:52]Read from MH i2c: E2 FD 00 [00:06:53]MH_I2C_Read... [00:06:53]Read from MH i2c: E2 FD 00 1C 04 00 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 B7 [00:06:53]RAPDU: 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:06:53]wFMCommunicate OK [00:06:53]wFMCommunicate request_size=4 [00:06:53]MH_SAM_APDU [00:06:53]CAPDU: 80 17 00 00 [00:06:53]Write to MH i2c: E2 08 00 1D 04 80 17 00 00 00 00 00 00 A1 [00:06:53]Write i2c OK [00:06:53]MH_I2C_Read... [00:06:53]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:06:53]Read from MH i2c: E2 [00:06:53]MH_I2C_Read... [00:06:53]Read from MH i2c: E2 FD 00 [00:06:53]MH_I2C_Read... [00:06:53]Read from MH i2c: E2 FD 00 1D 04 00 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 5D [00:06:53]RAPDU: 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:06:53]wFMCommunicate OK [00:06:53]wFMCommunicate request_size=4 [00:06:53]MH_SAM_APDU [00:06:53]CAPDU: 80 17 00 00 [00:06:53]Write to MH i2c: E2 08 00 1E 04 80 17 00 00 00 00 00 00 A2 [00:06:53]Write i2c OK [00:06:53]MH_I2C_Read... [00:06:54]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:06:54]Read from MH i2c: E2 [00:06:54]MH_I2C_Read... [00:06:54]Read from MH i2c: E2 FD 00 [00:06:54]MH_I2C_Read... [00:06:54]Read from MH i2c: E2 FD 00 1E 04 00 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 90 00 19 [00:06:54]RAPDU: 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 90 00 [00:06:54]wFMCommunicate OK [00:06:54]wFMCommunicate request_size=4 [00:06:54]MH_SAM_APDU [00:06:54]CAPDU: 80 17 00 00 [00:06:54]Write to MH i2c: E2 08 00 1F 04 80 17 00 00 00 00 00 00 A3 [00:06:54]Write i2c OK [00:06:54]MH_I2C_Read... [00:06:54]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 204! [00:06:54]Read from MH i2c: E2 [00:06:54]MH_I2C_Read... [00:06:54]Read from MH i2c: E2 CF 00 [00:06:54]MH_I2C_Read... [00:06:54]Read from MH i2c: E2 CF 00 1F 04 00 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 8A [00:06:54]RAPDU: 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:06:54]wFMCommunicate OK [00:06:54]SAM_PROTO_GetShiftData done [00:06:54]requested_item shift.sale.total_cash is exist - process it [00:06:54]requested_item shift.sale_refund.total is exist - process it [00:06:54]requested_item shift.sale_refund.total_cash is exist - process it [00:06:54]requested_item shift.buy.total is exist - process it [00:06:54]requested_item shift.buy.total_cash is exist - process it [00:06:54]produce_requested_data done [00:06:54]produce_requested_data return {"fm.sale.total":288567594.55,"fm.sale_refund.total":51314934.00,"fm.buy.total":0.00,"shift.sale.total":625404.30,"shift.sale.total_cash":434907.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:06:54]process_action_free get_value [00:06:54]json_value_free [00:06:54]json_value_free done [00:06:54]process_json_proto returns [00:06:54]Send response to host [00:06:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":288567594.55,"fm.sale_refund.total":51314934.00,"fm.buy.total":0.00,"shift.sale.total":625404.30,"shift.sale.total_cash":434907.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:06:54]free response buf [00:06:54]execute_script done [00:06:54]execute_script returns [00:06:54]free content buf [00:06:54]Sock 8.Close socket [00:06:54]Sock 8.Thread stoped [00:06:54]accept exits with 9 [00:06:54]New connection [00:06:54]New thread 3067055460 created [00:06:54]Thread 3067198820 joined [00:06:54]Waiting for new connection... [00:06:54] Sock 9.Parse request [00:06:54]Sock 9.Check first char [00:06:54]Sock 9.First char is OK [00:06:54]request: POST /json_proto HTTP/1.0 [00:06:54]Method: POST [00:06:54]URL: /json_proto [00:06:54]Method is POST - this is cgi request [00:06:54]url: /json_proto [00:06:54]query_string will be loaded in cgi processing [00:06:54]execute_cgi json_proto POST (null) [00:06:54]execute_cgi path=json_proto method=POST [00:06:54]POST find Content-Length [00:06:54]Host: 172.17.42.131:8080 [00:06:54]Content-Length: 260 [00:06:54]Content-Type: application/json [00:06:54] [00:06:54]POST finish read [00:06:54]Found Content-Length = 260 [00:06:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_shift", "params" : { "operator" : "\u0410\u0440\u044B\u043A\u0431\u0430\u0435\u0432 \u041D. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:06:54]execute_script... [00:06:54]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_shift", "params" : { "operator" : "\u0410\u0440\u044B\u043A\u0431\u0430\u0435\u0432 \u041D. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:06:54]POST & json_proto [00:06:54]process_json_proto [00:06:54]json parsed OK: [00:06:54]protocol is kg_v1.0 [00:06:54]action value=close_shift [00:06:54]process_action close_shift [00:06:54]cmd_close_shift [00:06:54]MH_GetDate [00:06:54]Write to MH i2c: F0 00 00 20 04 13 [00:06:54]Write i2c OK [00:06:54]MH_I2C_Read... [00:06:54]Read from MH i2c: F0 [00:06:54]MH_I2C_Read... [00:06:54]Read from MH i2c: F0 09 00 [00:06:54]MH_I2C_Read... [00:06:54]Read from MH i2c: F0 09 00 20 04 00 9F EC 16 67 A0 18 CA 66 0C [00:06:54]GetLastDocTimeStamp 1729555569 [00:06:54]current date 1729555615 [00:06:54]FM_GetShiftState [00:06:54]SAM_PROTO_GetShiftState [00:06:54]wFMCommunicate request_size=4 [00:06:54]MH_SAM_APDU [00:06:54]CAPDU: 80 13 01 00 [00:06:54]Write to MH i2c: E2 08 00 21 04 80 13 01 00 00 00 00 00 A2 [00:06:54]Write i2c OK [00:06:54]MH_I2C_Read... [00:06:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:06:54]Read from MH i2c: E2 [00:06:54]MH_I2C_Read... [00:06:54]Read from MH i2c: E2 0E 00 [00:06:54]MH_I2C_Read... [00:06:54]Read from MH i2c: E2 0E 00 21 04 00 09 00 01 3A 9D 15 67 00 00 00 00 90 00 01 [00:06:54]RAPDU: 09 00 01 3A 9D 15 67 00 00 00 00 90 00 [00:06:54]wFMCommunicate OK [00:06:54]SAM_PROTO_GetShiftState done [00:06:54]FM_GetShiftState done [00:06:54]KKMCreateCloseShiftDocument [00:06:54]Load OK [00:06:54]Malloc new data [00:06:54]MH_GetDate [00:06:54]Write to MH i2c: F0 00 00 22 04 15 [00:06:54]Write i2c OK [00:06:54]MH_I2C_Read... [00:06:54]Read from MH i2c: F0 [00:06:54]MH_I2C_Read... [00:06:54]Read from MH i2c: F0 09 00 [00:06:54]MH_I2C_Read... [00:06:54]Read from MH i2c: F0 09 00 22 04 00 9F EC 16 67 A0 18 CA 66 0E [00:06:54]Malloc new data [00:06:54]Malloc new data [00:06:54]Malloc new data [00:06:54]Malloc new data [00:06:54]KKMCreateCloseShiftDocument OK [00:06:54]KKMSetCloseShiftData OK [00:06:54]ProcessDocumentItem done err = 0, tmpTLVsize=71 [00:06:54]tlvbuf is 01B6D4F0 [00:06:54]KKMLoadAndSignCloseShiftData [00:06:54]SAM_PROTO_ProcessDocument [00:06:54]wFMCommunicate request_size=9 [00:06:54]MH_SAM_APDU [00:06:54]CAPDU: 80 15 01 00 04 05 00 47 00 [00:06:54]Write to MH i2c: E2 0C 00 23 04 80 15 01 00 04 00 05 00 47 00 00 00 FA [00:06:55]Write i2c OK [00:06:55]MH_I2C_Read... [00:06:55]*** iso7816_exchange 80 15 01 00... Resp OK rsp.len_out = 0! [00:06:55]Read from MH i2c: E2 [00:06:55]MH_I2C_Read... [00:06:55]Read from MH i2c: E2 03 00 [00:06:55]MH_I2C_Read... [00:06:55]Read from MH i2c: E2 03 00 23 04 00 90 00 9B [00:06:55]RAPDU: 90 00 [00:06:55]wFMCommunicate OK [00:06:55]wFMCommunicate request_size=23 [00:06:55]MH_SAM_APDU [00:06:55]CAPDU: 80 15 02 00 12 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 [00:06:55]Write to MH i2c: E2 1A 00 24 04 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 9D [00:06:55]Write i2c OK [00:06:55]MH_I2C_Read... [00:06:55]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:06:55]Read from MH i2c: E2 [00:06:55]MH_I2C_Read... [00:06:55]Read from MH i2c: E2 03 00 [00:06:55]MH_I2C_Read... [00:06:55]Read from MH i2c: E2 03 00 24 04 00 90 00 9C [00:06:55]RAPDU: 90 00 [00:06:55]wFMCommunicate OK [00:06:55]wFMCommunicate request_size=30 [00:06:55]MH_SAM_APDU [00:06:55]CAPDU: 80 15 02 00 19 FD 03 15 00 D0 90 D1 80 D1 8B D0 BA D0 B1 D0 B0 D0 B5 D0 B2 20 D0 9D 2E 20 [00:06:55]Write to MH i2c: E2 21 00 25 04 80 15 02 00 19 00 FD 03 15 00 D0 90 D1 80 D1 8B D0 BA D0 B1 D0 B0 D0 B5 D0 B2 20 D0 9D 2E 20 00 00 6A [00:06:55]Write i2c OK [00:06:55]MH_I2C_Read... [00:06:55]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:06:55]Read from MH i2c: E2 [00:06:55]MH_I2C_Read... [00:06:55]Read from MH i2c: E2 03 00 [00:06:55]MH_I2C_Read... [00:06:55]Read from MH i2c: E2 03 00 25 04 00 90 00 9D [00:06:55]RAPDU: 90 00 [00:06:55]wFMCommunicate OK [00:06:55]wFMCommunicate request_size=13 [00:06:55]MH_SAM_APDU [00:06:55]CAPDU: 80 15 02 00 08 F4 03 04 00 9F EC 16 67 [00:06:55]Write to MH i2c: E2 10 00 26 04 80 15 02 00 08 00 F4 03 04 00 9F EC 16 67 00 00 BD [00:06:55]Write i2c OK [00:06:55]MH_I2C_Read... [00:06:55]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:06:55]Read from MH i2c: E2 [00:06:55]MH_I2C_Read... [00:06:55]Read from MH i2c: E2 03 00 [00:06:55]MH_I2C_Read... [00:06:55]Read from MH i2c: E2 03 00 26 04 00 90 00 9E [00:06:55]RAPDU: 90 00 [00:06:55]wFMCommunicate OK [00:06:55]wFMCommunicate request_size=25 [00:06:55]MH_SAM_APDU [00:06:55]CAPDU: 80 15 02 00 14 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 [00:06:55]Write to MH i2c: E2 1C 00 27 04 80 15 02 00 14 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 00 00 F8 [00:06:55]Write i2c OK [00:06:55]MH_I2C_Read... [00:06:55]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:06:55]Read from MH i2c: E2 [00:06:55]MH_I2C_Read... [00:06:55]Read from MH i2c: E2 03 00 [00:06:55]MH_I2C_Read... [00:06:55]Read from MH i2c: E2 03 00 27 04 00 90 00 9F [00:06:55]RAPDU: 90 00 [00:06:55]wFMCommunicate OK [00:06:55]wFMCommunicate request_size=4 [00:06:55]MH_SAM_APDU [00:06:55]CAPDU: 80 15 03 00 [00:06:55]Write to MH i2c: E2 08 00 28 04 80 15 03 00 00 00 00 00 AD [00:06:55]Write i2c OK [00:06:55]MH_I2C_Read... [00:06:56]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 250! [00:06:56]Read from MH i2c: E2 [00:06:56]MH_I2C_Read... [00:06:56]Read from MH i2c: E2 FD 00 [00:06:56]MH_I2C_Read... [00:06:56]Read from MH i2c: E2 FD 00 28 04 00 F5 04 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 42 DE 02 00 0E 04 04 00 CC 01 00 00 5E 04 04 00 B1 01 00 00 57 04 04 00 B3 01 00 00 AA 04 AE 04 6E 04 04 00 B1 01 00 00 69 04 9F 00 6F 04 04 00 B1 01 00 00 B1 04 04 00 8E 4A BA 03 70 04 04 00 8C 9D 97 02 72 04 04 00 02 AD 22 01 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 D6 5B 65 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 38 72 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 D0 [00:06:56]RAPDU: F5 04 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 42 DE 02 00 0E 04 04 00 CC 01 00 00 5E 04 04 00 B1 01 00 00 57 04 04 00 B3 01 00 00 AA 04 AE 04 6E 04 04 00 B1 01 00 00 69 04 9F 00 6F 04 04 00 B1 01 00 00 B1 04 04 00 8E 4A BA 03 70 04 04 00 8C 9D 97 02 72 04 04 00 02 AD 22 01 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 D6 5B 65 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 38 72 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:06:56]wFMCommunicate OK [00:06:56]SAM_PROTO_ProcessDocument answer len = 1269 [00:06:56]SAM_PROTO_ProcessDocument remain to read = 1021 [00:06:56]wFMCommunicate request_size=4 [00:06:56]MH_SAM_APDU [00:06:56]CAPDU: 80 17 00 00 [00:06:56]Write to MH i2c: E2 08 00 29 04 80 17 00 00 00 00 00 00 AD [00:06:56]Write i2c OK [00:06:56]MH_I2C_Read... [00:06:56]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:06:56]Read from MH i2c: E2 [00:06:56]MH_I2C_Read... [00:06:56]Read from MH i2c: E2 FD 00 [00:06:56]MH_I2C_Read... [00:06:56]Read from MH i2c: E2 FD 00 29 04 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 68 [00:06:56]RAPDU: 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 OFD Sender: No OFD packet to send [00:06:56]03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 90 00 [00:06:56]wFMCommunicate OK [00:06:56]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [00:06:56]SAM_PROTO_ProcessDocument remain to read = 771 [00:06:56]wFMCommunicate request_size=4 [00:06:56]MH_SAM_APDU [00:06:56]CAPDU: 80 17 00 00 [00:06:56]Write to MH i2c: E2 08 00 2A 04 80 17 00 00 00 00 00 00 AE [00:06:56]Write i2c OK [00:06:56]MH_I2C_Read... [00:06:57]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:06:57]Read from MH i2c: E2 [00:06:57]MH_I2C_Read... [00:06:57]Read from MH i2c: E2 FD 00 [00:06:57]MH_I2C_Read... [00:06:57]Read from MH i2c: E2 FD 00 2A 04 00 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 90 00 10 [00:06:57]RAPDU: 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 90 00 [00:06:57]wFMCommunicate OK [00:06:57]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [00:06:57]SAM_PROTO_ProcessDocument remain to read = 521 [00:06:57]wFMCommunicate request_size=4 [00:06:57]MH_SAM_APDU [00:06:57]CAPDU: 80 17 00 00 [00:06:57]Write to MH i2c: E2 08 00 2B 04 80 17 00 00 00 00 00 00 AF [00:06:57]Write i2c OK [00:06:57]MH_I2C_Read... [00:06:57]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:06:57]Read from MH i2c: E2 [00:06:57]MH_I2C_Read... [00:06:57]Read from MH i2c: E2 FD 00 [00:06:57]MH_I2C_Read... [00:06:57]Read from MH i2c: E2 FD 00 2B 04 00 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 3D [00:06:57]RAPDU: 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:06:58]wFMCommunicate OK [00:06:58]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [00:06:58]SAM_PROTO_ProcessDocument remain to read = 271 [00:06:58]wFMCommunicate request_size=4 [00:06:58]MH_SAM_APDU [00:06:58]CAPDU: 80 17 00 00 [00:06:58]Write to MH i2c: E2 08 00 2C 04 80 17 00 00 00 00 00 00 B0 [00:06:58]Write i2c OK [00:06:58]MH_I2C_Read... [00:06:58]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:06:58]Read from MH i2c: E2 [00:06:58]MH_I2C_Read... [00:06:58]Read from MH i2c: E2 FD 00 [00:06:58]MH_I2C_Read... [00:06:58]Read from MH i2c: E2 FD 00 2C 04 00 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 74 [00:06:58]RAPDU: 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:06:58]wFMCommunicate OK [00:06:58]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [00:06:58]SAM_PROTO_ProcessDocument remain to read = 21 [00:06:58]wFMCommunicate request_size=4 [00:06:58]MH_SAM_APDU [00:06:58]CAPDU: 80 17 00 00 [00:06:58]Write to MH i2c: E2 08 00 2D 04 80 17 00 00 00 00 00 00 B1 [00:06:58]Write i2c OK [00:06:58]MH_I2C_Read... [00:06:58]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 21! [00:06:58]Read from MH i2c: E2 [00:06:58]MH_I2C_Read... [00:06:58]Read from MH i2c: E2 18 00 [00:06:58]MH_I2C_Read... [00:06:58]Read from MH i2c: E2 18 00 2D 04 00 09 00 F6 03 01 00 06 F7 03 00 00 35 04 06 00 A7 39 A0 4F 85 E0 90 00 30 [00:06:58]RAPDU: 09 00 F6 03 01 00 06 F7 03 00 00 35 04 06 00 A7 39 A0 4F 85 E0 90 00 [00:06:58]wFMCommunicate OK [00:06:58]SAM_PROTO_ProcessDocument received (without SW) 21 bytes [00:06:58]SAM_PROTO_ProcessDocument done [00:06:58]1209 (1) - 1.0 - номер версии ФФД [00:06:58]1041 (16) - 0000000000965340 - номер ФМ [00:06:58]1040 (4) - 187970 - номер ФД [00:06:58]1038 (4) - 460 - номер смены [00:06:58]1118 (4) - 433 - количество кассовых чеков за смену [00:06:58]1111 (4) - 435 - общее количество ФД за смену [00:06:58]1194 (1198) - счетчики итогов смены [00:06:58] 1134 (4) - 433 - количество чеков со всеми признаками расчетов [00:06:58] 1129 (159) - счетчики операций «приход» [00:06:58] 1135 (4) - 433 - количество чеков по признаку расчетов [00:06:58] 1201 (4) - 625404.30 - общая итоговая сумма в чеках [00:06:58] 1136 (4) - 434907.00 - итоговая сумма в чеках наличными [00:06:58] 1138 (4) - 190497.30 - итоговая сумма в чеках безналичными [00:06:58] 1024 (123) - суммы налогов [00:06:58] 1006 (9) - суммы НДС [00:06:58] 1010 (1) - 0% - код ставки НДС [00:06:58] 1011 (0) - 0.00 - сумма НДС по ставке [00:06:58] 1006 (12) - суммы НДС [00:06:58] 1010 (1) - 12% - код ставки НДС [00:06:58] 1011 (3) - 66426.46 - сумма НДС по ставке [00:06:58] 1007 (9) - суммы НСП [00:06:58] 1014 (1) - 0% - код ставки НСП [00:06:58] 1015 (0) - 0.00 - сумма НСП по ставке [00:06:58] 1007 (12) - суммы НСП [00:06:58] 1014 (1) - 1% - код ставки НСП [00:06:58] 1015 (3) - 5535.28 - сумма НСП по ставке [00:06:58] 1007 (9) - суммы НСП [00:06:58] 1014 (1) - 2% - код ставки НСП [00:06:58] 1015 (0) - 0.00 - сумма НСП по ставке [00:06:58] 1007 (9) - суммы НСП [00:06:58] 1014 (1) - 3% - код ставки НСП [00:06:58] 1015 (0) - 0.00 - сумма НСП по ставке [00:06:59] 1007 (9) - суммы НСП [00:06:59] 1014 (1) - 5% - код ставки НСП [00:06:59] 1015 (0) - 0.00 - сумма НСП по ставке [00:06:59] 1007 (9) - суммы НСП [00:06:59] 1014 (1) - 0,50% - код ставки НСП [00:06:59] 1015 (0) - 0.00 - сумма НСП по ставке [00:06:59] 1007 (9) - суммы НСП [00:06:59] 1014 (1) - 1,50% - код ставки НСП [00:06:59] 1015 (0) - 0.00 - сумма НСП по ставке [00:06:59] 1130 (141) - счетчики операций «возврат прихода» [00:06:59] 1135 (4) - 0 - количество чеков по признаку расчетов [00:06:59] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:06:59] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:06:59] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:06:59] 1024 (117) - суммы налогов [00:06:59] 1006 (9) - суммы НДС [00:06:59] 1010 (1) - 0% - код ставки НДС [00:06:59] 1011 (0) - 0.00 - сумма НДС по ставке [00:06:59] 1006 (9) - суммы НДС [00:06:59] 1010 (1) - 12% - код ставки НДС [00:06:59] 1011 (0) - 0.00 - сумма НДС по ставке [00:06:59] 1007 (9) - суммы НСП [00:06:59] 1014 (1) - 0% - код ставки НСП [00:06:59] 1015 (0) - 0.00 - сумма НСП по ставке [00:06:59] 1007 (9) - суммы НСП [00:06:59] 1014 (1) - 1% - код ставки НСП [00:06:59] 1015 (0) - 0.00 - сумма НСП по ставке [00:06:59] 1007 (9) - суммы НСП [00:06:59] 1014 (1) - 2% - код ставки НСП [00:06:59] 1015 (0) - 0.00 - сумма НСП по ставке [00:06:59] 1007 (9) - суммы НСП [00:06:59] 1014 (1) - 3% - код ставки НСП [00:06:59] 1015 (0) - 0.00 - сумма НСП по ставке [00:06:59] 1007 (9) - суммы НСП [00:06:59] 1014 (1) - 5% - код ставки НСП [00:06:59] 1015 (0) - 0.00 - сумма НСП по ставке [00:06:59] 1007 (9) - суммы НСП [00:06:59] 1014 (1) - 0,50% - код ставки НСП [00:06:59] 1015 (0) - 0.00 - сумма НСП по ставке [00:06:59] 1007 (9) - суммы НСП [00:06:59] 1014 (1) - 1,50% - код ставки НСП [00:06:59] 1015 (0) - 0.00 - сумма НСП по ставке [00:06:59] 1131 (141) - счетчики операций «расход» [00:06:59] 1135 (4) - 0 - количество чеков по признаку расчетов [00:06:59] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:06:59] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:06:59] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:06:59] 1024 (117) - суммы налогов [00:06:59] 1006 (9) - суммы НДС [00:06:59] 1010 (1) - 0% - код ставки НДС [00:06:59] 1011 (0) - 0.00 - сумма НДС по ставке [00:06:59] 1006 (9) - суммы НДС [00:06:59] 1010 (1) - 12% - код ставки НДС [00:06:59] 1011 (0) - 0.00 - сумма НДС по ставке [00:06:59] 1007 (9) - суммы НСП [00:06:59] 1014 (1) - 0% - код ставки НСП [00:06:59] 1015 (0) - 0.00 - сумма НСП по ставке [00:06:59] 1007 (9) - суммы НСП [00:06:59] 1014 (1) - 1% - код ставки НСП [00:06:59] 1015 (0) - 0.00 - сумма НСП по ставке [00:06:59] 1007 (9) - суммы НСП [00:06:59] 1014 (1) - 2% - код ставки НСП [00:06:59] 1015 (0) - 0.00 - сумма НСП по ставке [00:06:59] 1007 (9) - суммы НСП [00:06:59] 1014 (1) - 3% - код ставки НСП [00:06:59] 1015 (0) - 0.00 - сумма НСП по ставке [00:06:59] 1007 (9) - суммы НСП [00:06:59] 1014 (1) - 5% - код ставки НСП [00:06:59] 1015 (0) - 0.00 - сумма НСП по ставке [00:06:59] 1007 (9) - суммы НСП [00:06:59] 1014 (1) - 0,50% - код ставки НСП [00:06:59] 1015 (0) - 0.00 - сумма НСП по ставке [00:06:59] 1007 (9) - суммы НСП [00:06:59] 1014 (1) - 1,50% - код ставки НСП [00:06:59] 1015 (0) - 0.00 - сумма НСП по ставке [00:06:59] 1132 (141) - счетчики операций «возврат расхода» [00:06:59] 1135 (4) - 0 - количество чеков по признаку расчетов [00:06:59] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:06:59] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:06:59] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:06:59] 1024 (117) - суммы налогов [00:06:59] 1006 (9) - суммы НДС [00:06:59] 1010 (1) - 0% - код ставки НДС [00:06:59] 1011 (0) - 0.00 - сумма НДС по ставке [00:06:59] 1006 (9) - суммы НДС [00:06:59] 1010 (1) - 12% - код ставки НДС [00:06:59] 1011 (0) - 0.00 - сумма НДС по ставке [00:06:59] 1007 (9) - суммы НСП [00:06:59] 1014 (1) - 0% - код ставки НСП [00:06:59] 1015 (0) - 0.00 - сумма НСП по ставке [00:06:59] 1007 (9) - суммы НСП [00:06:59] 1014 (1) - 1% - код ставки НСП [00:06:59] 1015 (0) - 0.00 - сумма НСП по ставке [00:06:59] 1007 (9) - суммы НСП [00:06:59] 1014 (1) - 2% - код ставки НСП [00:06:59] 1015 (0) - 0.00 - сумма НСП по ставке [00:06:59] 1007 (9) - суммы НСП [00:06:59] 1014 (1) - 3% - код ставки НСП [00:06:59] 1015 (0) - 0.00 - сумма НСП по ставке [00:06:59] 1007 (9) - суммы НСП [00:06:59] 1014 (1) - 5% - код ставки НСП [00:06:59] 1015 (0) - 0.00 - сумма НСП по ставке [00:06:59] 1007 (9) - суммы НСП [00:06:59] 1014 (1) - 0,50% - код ставки НСП [00:06:59] 1015 (0) - 0.00 - сумма НСП по ставке [00:06:59] 1007 (9) - суммы НСП [00:06:59] 1014 (1) - 1,50% - код ставки НСП [00:06:59] 1015 (0) - 0.00 - сумма НСП по ставке [00:06:59] 1133 (588) - - счетчики коррекции - не используются [00:06:59]1077 (6) - 183865944540640 - ФПД [00:06:59]SetTLVBufToDocument [00:06:59]Processing tag 1209 (04B9) [00:06:59]Malloc new data [00:06:59]Processing tag 1041 (0411) [00:06:59]Processing tag 1040 (0410) [00:06:59]Malloc new data [00:06:59]Processing tag 1038 (040E) [00:06:59]Malloc new data [00:06:59]Processing tag 1118 (045E) [00:06:59]Malloc new data [00:06:59]Processing tag 1111 (0457) [00:06:59]Malloc new data [00:06:59]Processing tag 1194 (04AA) [00:06:59]Load OK [00:06:59]SetTLVBufToDocument [00:06:59]Processing tag 1134 (046E) [00:06:59]Malloc new data [00:06:59]Processing tag 1129 (0469) [00:06:59]Load OK [00:06:59]SetTLVBufToDocument [00:06:59]Processing tag 1135 (046F) [00:06:59]Malloc new data [00:06:59]Processing tag 1201 (04B1) [00:06:59]Malloc new data [00:06:59]Processing tag 1136 (0470) [00:06:59]Malloc new data [00:06:59]Processing tag 1138 (0472) [00:06:59]Malloc new data [00:06:59]Processing tag 1024 (0400) [00:06:59]Load OK [00:06:59]SetTLVBufToDocument [00:06:59]Processing tag 1006 (03EE) [00:06:59]Load OK [00:06:59]SetTLVBufToDocument [00:06:59]Processing tag 1010 (03F2) [00:06:59]Malloc new data [00:06:59]Processing tag 1011 (03F3) [00:06:59]Malloc new data [00:06:59]SetTLVBufToDocument err=0 [00:06:59]Processing tag 1006 (03EE) [00:06:59]Load OK [00:06:59]SetTLVBufToDocument [00:06:59]Processing tag 1010 (03F2) [00:06:59]Malloc new data [00:06:59]Processing tag 1011 (03F3) [00:06:59]Malloc new data [00:06:59]SetTLVBufToDocument err=0 [00:06:59]Processing tag 1007 (03EF) [00:06:59]Load OK [00:06:59]SetTLVBufToDocument [00:06:59]Processing tag 1014 (03F6) [00:06:59]Malloc new data [00:06:59]Processing tag 1015 (03F7) [00:06:59]Malloc new data [00:06:59]SetTLVBufToDocument err=0 [00:06:59]Processing tag 1007 (03EF) [00:06:59]Load OK [00:06:59]SetTLVBufToDocument [00:06:59]Processing tag 1014 (03F6) [00:06:59]Malloc new data [00:06:59]Processing tag 1015 (03F7) [00:06:59]Malloc new data [00:06:59]SetTLVBufToDocument err=0 [00:06:59]Processing tag 1007 (03EF) [00:06:59]Load OK [00:06:59]SetTLVBufToDocument [00:06:59]Processing tag 1014 (03F6) [00:06:59]Malloc new data [00:06:59]Processing tag 1015 (03F7) [00:06:59]Malloc new data [00:06:59]SetTLVBufToDocument err=0 [00:06:59]Processing tag 1007 (03EF) [00:06:59]Load OK [00:06:59]SetTLVBufToDocument [00:06:59]Processing tag 1014 (03F6) [00:06:59]Malloc new data [00:06:59]Processing tag 1015 (03F7) [00:06:59]Malloc new data [00:06:59]SetTLVBufToDocument err=0 [00:06:59]Processing tag 1007 (03EF) [00:06:59]Load OK [00:06:59]SetTLVBufToDocument [00:06:59]Processing tag 1014 (03F6) [00:06:59]Malloc new data [00:06:59]Processing tag 1015 (03F7) [00:06:59]Malloc new data [00:06:59]SetTLVBufToDocument err=0 [00:06:59]Processing tag 1007 (03EF) [00:06:59]Load OK [00:06:59]SetTLVBufToDocument [00:06:59]Processing tag 1014 (03F6) [00:06:59]Malloc new data [00:06:59]Processing tag 1015 (03F7) [00:06:59]Malloc new data [00:06:59]SetTLVBufToDocument err=0 [00:06:59]Processing tag 1007 (03EF) [00:06:59]Load OK [00:06:59]SetTLVBufToDocument [00:06:59]Processing tag 1014 (03F6) [00:06:59]Malloc new data [00:06:59]Processing tag 1015 (03F7) [00:06:59]Malloc new data [00:06:59]SetTLVBufToDocument err=0 [00:06:59]SetTLVBufToDocument err=0 [00:06:59]SetTLVBufToDocument err=0 [00:06:59]Processing tag 1130 (046A) [00:06:59]Load OK [00:06:59]SetTLVBufToDocument [00:06:59]Processing tag 1135 (046F) [00:06:59]Malloc new data [00:06:59]Processing tag 1201 (04B1) [00:06:59]Malloc new data [00:06:59]Processing tag 1136 (0470) [00:06:59]Malloc new data [00:06:59]Processing tag 1138 (0472) [00:06:59]Malloc new data [00:06:59]Processing tag 1024 (0400) [00:06:59]Load OK [00:06:59]SetTLVBufToDocument [00:06:59]Processing tag 1006 (03EE) [00:06:59]Load OK [00:06:59]SetTLVBufToDocument [00:06:59]Processing tag 1010 (03F2) [00:06:59]Malloc new data [00:06:59]Processing tag 1011 (03F3) [00:06:59]Malloc new data [00:06:59]SetTLVBufToDocument err=0 [00:06:59]Processing tag 1006 (03EE) [00:06:59]Load OK [00:06:59]SetTLVBufToDocument [00:06:59]Processing tag 1010 (03F2) [00:06:59]Malloc new data [00:06:59]Processing tag 1011 (03F3) [00:06:59]Malloc new data [00:06:59]SetTLVBufToDocument err=0 [00:06:59]Processing tag 1007 (03EF) [00:06:59]Load OK [00:06:59]SetTLVBufToDocument [00:06:59]Processing tag 1014 (03F6) [00:06:59]Malloc new data [00:06:59]Processing tag 1015 (03F7) [00:06:59]Malloc new data [00:06:59]SetTLVBufToDocument err=0 [00:06:59]Processing tag 1007 (03EF) [00:06:59]Load OK [00:06:59]SetTLVBufToDocument [00:06:59]Processing tag 1014 (03F6) [00:06:59]Malloc new data [00:06:59]Processing tag 1015 (03F7) [00:06:59]Malloc new data [00:06:59]SetTLVBufToDocument err=0 [00:06:59]Processing tag 1007 (03EF) [00:06:59]Load OK [00:06:59]SetTLVBufToDocument [00:06:59]Processing tag 1014 (03F6) [00:06:59]Malloc new data [00:06:59]Processing tag 1015 (03F7) [00:06:59]Malloc new data [00:06:59]SetTLVBufToDocument err=0 [00:06:59]Processing tag 1007 (03EF) [00:06:59]Load OK [00:06:59]SetTLVBufToDocument [00:06:59]Processing tag 1014 (03F6) [00:06:59]Malloc new data [00:06:59]Processing tag 1015 (03F7) [00:06:59]Malloc new data [00:06:59]SetTLVBufToDocument err=0 [00:06:59]Processing tag 1007 (03EF) [00:06:59]Load OK [00:06:59]SetTLVBufToDocument [00:06:59]Processing tag 1014 (03F6) [00:06:59]Malloc new data [00:06:59]Processing tag 1015 (03F7) [00:06:59]Malloc new data [00:06:59]SetTLVBufToDocument err=0 [00:06:59]Processing tag 1007 (03EF) [00:06:59]Load OK [00:06:59]SetTLVBufToDocument [00:06:59]Processing tag 1014 (03F6) [00:06:59]Malloc new data [00:06:59]Processing tag 1015 (03F7) [00:06:59]Malloc new data [00:06:59]SetTLVBufToDocument err=0 [00:06:59]Processing tag 1007 (03EF) [00:06:59]Load OK [00:06:59]SetTLVBufToDocument [00:06:59]Processing tag 1014 (03F6) [00:06:59]Malloc new data [00:06:59]Processing tag 1015 (03F7) [00:06:59]Malloc new data [00:06:59]SetTLVBufToDocument err=0 [00:06:59]SetTLVBufToDocument err=0 [00:06:59]SetTLVBufToDocument err=0 [00:06:59]Processing tag 1131 (046B) [00:06:59]Load OK [00:06:59]SetTLVBufToDocument [00:06:59]Processing tag 1135 (046F) [00:06:59]Malloc new data [00:06:59]Processing tag 1201 (04B1) [00:06:59]Malloc new data [00:06:59]Processing tag 1136 (0470) [00:06:59]Malloc new data [00:06:59]Processing tag 1138 (0472) [00:06:59]Malloc new data [00:06:59]Processing tag 1024 (0400) [00:06:59]Load OK [00:06:59]SetTLVBufToDocument [00:06:59]Processing tag 1006 (03EE) [00:06:59]Load OK [00:06:59]SetTLVBufToDocument [00:06:59]Processing tag 1010 (03F2) [00:06:59]Malloc new data [00:06:59]Processing tag 1011 (03F3) [00:06:59]Malloc new data [00:06:59]SetTLVBufToDocument err=0 [00:06:59]Processing tag 1006 (03EE) [00:06:59]Load OK [00:06:59]SetTLVBufToDocument [00:06:59]Processing tag 1010 (03F2) [00:06:59]Malloc new data [00:06:59]Processing tag 1011 (03F3) [00:06:59]Malloc new data [00:06:59]SetTLVBufToDocument err=0 [00:06:59]Processing tag 1007 (03EF) [00:06:59]Load OK [00:06:59]SetTLVBufToDocument [00:06:59]Processing tag 1014 (03F6) [00:06:59]Malloc new data [00:06:59]Processing tag 1015 (03F7) [00:06:59]Malloc new data [00:06:59]SetTLVBufToDocument err=0 [00:06:59]Processing tag 1007 (03EF) [00:06:59]Load OK [00:06:59]SetTLVBufToDocument [00:06:59]Processing tag 1014 (03F6) [00:06:59]Malloc new data [00:06:59]Processing tag 1015 (03F7) [00:06:59]Malloc new data [00:06:59]SetTLVBufToDocument err=0 [00:06:59]Processing tag 1007 (03EF) [00:06:59]Load OK [00:06:59]SetTLVBufToDocument [00:06:59]Processing tag 1014 (03F6) [00:06:59]Malloc new data [00:06:59]Processing tag 1015 (03F7) [00:06:59]Malloc new data [00:06:59]SetTLVBufToDocument err=0 [00:06:59]Processing tag 1007 (03EF) [00:06:59]Load OK [00:06:59]SetTLVBufToDocument [00:06:59]Processing tag 1014 (03F6) [00:06:59]Malloc new data [00:06:59]Processing tag 1015 (03F7) [00:06:59]Malloc new data [00:06:59]SetTLVBufToDocument err=0 [00:06:59]Processing tag 1007 (03EF) [00:06:59]Load OK [00:06:59]SetTLVBufToDocument [00:06:59]Processing tag 1014 (03F6) [00:06:59]Malloc new data [00:06:59]Processing tag 1015 (03F7) [00:06:59]Malloc new data [00:06:59]SetTLVBufToDocument err=0 [00:06:59]Processing tag 1007 (03EF) [00:06:59]Load OK [00:06:59]SetTLVBufToDocument [00:06:59]Processing tag 1014 (03F6) [00:06:59]Malloc new data [00:06:59]Processing tag 1015 (03F7) [00:06:59]Malloc new data [00:06:59]SetTLVBufToDocument err=0 [00:06:59]Processing tag 1007 (03EF) [00:06:59]Load OK [00:06:59]SetTLVBufToDocument [00:06:59]Processing tag 1014 (03F6) [00:06:59]Malloc new data [00:06:59]Processing tag 1015 (03F7) [00:06:59]Malloc new data [00:06:59]SetTLVBufToDocument err=0 [00:06:59]SetTLVBufToDocument err=0 [00:06:59]SetTLVBufToDocument err=0 [00:06:59]Processing tag 1132 (046C) [00:06:59]Load OK [00:06:59]SetTLVBufToDocument [00:06:59]Processing tag 1135 (046F) [00:06:59]Malloc new data [00:06:59]Processing tag 1201 (04B1) [00:06:59]Malloc new data [00:06:59]Processing tag 1136 (0470) [00:06:59]Malloc new data [00:06:59]Processing tag 1138 (0472) [00:06:59]Malloc new data [00:06:59]Processing tag 1024 (0400) [00:06:59]Load OK [00:06:59]SetTLVBufToDocument [00:06:59]Processing tag 1006 (03EE) [00:06:59]Load OK [00:06:59]SetTLVBufToDocument [00:06:59]Processing tag 1010 (03F2) [00:06:59]Malloc new data [00:06:59]Processing tag 1011 (03F3) [00:06:59]Malloc new data [00:06:59]SetTLVBufToDocument err=0 [00:06:59]Processing tag 1006 (03EE) [00:06:59]Load OK [00:06:59]SetTLVBufToDocument [00:06:59]Processing tag 1010 (03F2) [00:06:59]Malloc new data [00:06:59]Processing tag 1011 (03F3) [00:06:59]Malloc new data [00:06:59]SetTLVBufToDocument err=0 [00:06:59]Processing tag 1007 (03EF) [00:06:59]Load OK [00:06:59]SetTLVBufToDocument [00:06:59]Processing tag 1014 (03F6) [00:06:59]Malloc new data [00:06:59]Processing tag 1015 (03F7) [00:06:59]Malloc new data [00:06:59]SetTLVBufToDocument err=0 [00:06:59]Processing tag 1007 (03EF) [00:06:59]Load OK [00:06:59]SetTLVBufToDocument [00:06:59]Processing tag 1014 (03F6) [00:06:59]Malloc new data [00:06:59]Processing tag 1015 (03F7) [00:06:59]Malloc new data [00:06:59]SetTLVBufToDocument err=0 [00:06:59]Processing tag 1007 (03EF) [00:06:59]Load OK [00:06:59]SetTLVBufToDocument [00:06:59]Processing tag 1014 (03F6) [00:06:59]Malloc new data [00:06:59]Processing tag 1015 (03F7) [00:06:59]Malloc new data [00:06:59]SetTLVBufToDocument err=0 [00:06:59]Processing tag 1007 (03EF) [00:06:59]Load OK [00:06:59]SetTLVBufToDocument [00:06:59]Processing tag 1014 (03F6) [00:06:59]Malloc new data [00:06:59]Processing tag 1015 (03F7) [00:06:59]Malloc new data [00:06:59]SetTLVBufToDocument err=0 [00:06:59]Processing tag 1007 (03EF) [00:06:59]Load OK [00:06:59]SetTLVBufToDocument [00:06:59]Processing tag 1014 (03F6) [00:06:59]Malloc new data [00:06:59]Processing tag 1015 (03F7) [00:06:59]Malloc new data [00:06:59]SetTLVBufToDocument err=0 [00:06:59]Processing tag 1007 (03EF) [00:06:59]Load OK [00:06:59]SetTLVBufToDocument [00:06:59]Processing tag 1014 (03F6) [00:06:59]Malloc new data [00:06:59]Processing tag 1015 (03F7) [00:06:59]Malloc new data [00:06:59]SetTLVBufToDocument err=0 [00:06:59]Processing tag 1007 (03EF) [00:06:59]Load OK [00:06:59]SetTLVBufToDocument [00:06:59]Processing tag 1014 (03F6) [00:06:59]Malloc new data [00:06:59]Processing tag 1015 (03F7) [00:06:59]Malloc new data [00:06:59]SetTLVBufToDocument err=0 [00:06:59]SetTLVBufToDocument err=0 [00:06:59]SetTLVBufToDocument err=0 [00:06:59]Processing tag 1133 (046D) [00:06:59]Malloc new data [00:06:59]SetTLVBufToDocument err=0 [00:06:59]Processing tag 1077 (0435) [00:06:59]Malloc new data [00:06:59]SetTLVBufToDocument err=0 [00:06:59]Malloc new data [00:06:59]SAM_PROTO_GetFMData [00:06:59]wFMCommunicate request_size=4 [00:06:59]MH_SAM_APDU [00:06:59]CAPDU: 80 13 03 00 [00:06:59]Write to MH i2c: E2 08 00 2E 04 80 13 03 00 00 00 00 00 B1 [00:06:59]Write i2c OK [00:06:59]MH_I2C_Read... [00:07:00]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:07:00]Read from MH i2c: E2 [00:07:00]MH_I2C_Read... [00:07:00]Read from MH i2c: E2 FD 00 [00:07:00]MH_I2C_Read... [00:07:00]Read from MH i2c: E2 FD 00 2E 04 00 CB 04 85 04 C7 04 6E 04 04 00 A9 DA 02 00 69 04 A4 00 6F 04 04 00 1A DA 02 00 B1 04 05 00 9F 34 FF B7 06 70 04 05 00 CC D2 1C 9F 04 72 04 05 00 D3 61 E2 18 02 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 25 6E B0 B6 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 D4 24 39 0F EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 A1 00 6F 04 04 00 8F 00 00 00 B1 04 05 00 18 60 DC 31 01 70 04 05 00 C8 19 DC 31 01 72 04 02 00 50 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 36 17 90 00 A9 [00:07:00]RAPDU: CB 04 85 04 C7 04 6E 04 04 00 A9 DA 02 00 69 04 A4 00 6F 04 04 00 1A DA 02 00 B1 04 05 00 9F 34 FF B7 06 70 04 05 00 CC D2 1C 9F 04 72 04 05 00 D3 61 E2 18 02 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 25 6E B0 B6 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 D4 24 39 0F EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 A1 00 6F 04 04 00 8F 00 00 00 B1 04 05 00 18 60 DC 31 01 70 04 05 00 C8 19 DC 31 01 72 04 02 00 50 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 36 17 90 00 [00:07:00]wFMCommunicate OK [00:07:00]wFMCommunicate request_size=4 [00:07:00]MH_SAM_APDU [00:07:00]CAPDU: 80 17 00 00 [00:07:00]Write to MH i2c: E2 08 00 2F 04 80 17 00 00 00 00 00 00 B3 [00:07:00]Write i2c OK [00:07:00]MH_I2C_Read... [00:07:01]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:07:01]Read from MH i2c: E2 [00:07:01]MH_I2C_Read... [00:07:01]Read from MH i2c: E2 FD 00 [00:07:01]MH_I2C_Read... [00:07:01]Read from MH i2c: E2 FD 00 2F 04 00 7B 20 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 92 EC B4 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 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 90 00 80 [00:07:01]RAPDU: 7B 20 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 92 EC B4 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 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 90 00 [00:07:01]wFMCommunicate OK [00:07:01]wFMCommunicate request_size=4 [00:07:01]MH_SAM_APDU [00:07:01]CAPDU: 80 17 00 00 [00:07:01]Write to MH i2c: E2 08 00 30 04 80 17 00 00 00 00 00 00 B4 [00:07:01]Write i2c OK [00:07:01]MH_I2C_Read... [00:07:01]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:07:01]Read from MH i2c: E2 [00:07:01]MH_I2C_Read... [00:07:01]Read from MH i2c: E2 FD 00 [00:07:01]MH_I2C_Read... [00:07:01]Read from MH i2c: E2 FD 00 30 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 8F [00:07:01]RAPDU: 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 OFD Sender: No OFD packet to send [00:07:02]00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 [00:07:02]wFMCommunicate OK [00:07:02]wFMCommunicate request_size=4 [00:07:02]MH_SAM_APDU [00:07:02]CAPDU: 80 17 00 00 [00:07:02]Write to MH i2c: E2 08 00 31 04 80 17 00 00 00 00 00 00 B5 [00:07:02]Write i2c OK [00:07:02]MH_I2C_Read... [00:07:02]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:07:02]Read from MH i2c: E2 [00:07:02]MH_I2C_Read... [00:07:02]Read from MH i2c: E2 FD 00 [00:07:02]MH_I2C_Read... [00:07:02]Read from MH i2c: E2 FD 00 31 04 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 33 [00:07:02]RAPDU: 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:07:02]wFMCommunicate OK [00:07:02]wFMCommunicate request_size=4 [00:07:02]MH_SAM_APDU [00:07:02]CAPDU: 80 17 00 00 [00:07:02]Write to MH i2c: E2 08 00 32 04 80 17 00 00 00 00 00 00 B6 [00:07:02]Write i2c OK [00:07:02]MH_I2C_Read... [00:07:03]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 229! [00:07:03]Read from MH i2c: E2 [00:07:03]MH_I2C_Read... [00:07:03]Read from MH i2c: E2 E8 00 [00:07:03]MH_I2C_Read... [00:07:03]Read from MH i2c: E2 E8 00 32 04 00 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 94 [00:07:03]RAPDU: 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:07:03]wFMCommunicate OK [00:07:03]SAM_PROTO_GetFMData done [00:07:03]Malloc new data [00:07:03]Malloc new data [00:07:03]Malloc new data [00:07:03]Malloc new data [00:07:03]KKMLoadAndSignCloseShiftData err=0 [00:07:03]Отчет о закрытии смены ФФД: 1.0 ИНН: 02508201610067 Кассир: Арыкбаев Н. 22.10.2024 00:06 Смена: 460 РНМ: 0000000000100030 ЗНМ: 0300000155 СНО: Общий режим Чеков за смену: 433 ФД за смену: 435 Всего чеков: 433 ИТОГИ ПРИХОД Чеков: 433 Общий итог: 625404.30 Итого наличными: 434907.00 Итого безнал.: 190497.30 НДС 0% : 0.00 НДС 12% : 66426.46 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 5535.28 ИТОГИ ВОЗВРАТ ПРИХОДА Чеков: 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 Нал. в кассе: 434907.00 НС Приход: 288567594.55 НС Возвр.Прихода: 51314934.00 НС Расход: 0.00 НС Возвр.Расхода: 0.00 ФД: 187970 ФМ: 0000000000965340 ФПД: 183865944540640 [00:07:03]StoreToDocumentArchive [00:07:03]shift 460 fd 187970 [00:07:03]save to /storage/0460/doc_00187970 [00:07:03]save last doc name /storage/0460/doc_00187970 to /storage/kkm_last_doc_name [00:07:03]save OK [00:07:03]Clear old archive folders... [00:07:03]Remove dir /storage/0266 [00:07:03]opendir ok [00:07:03]file . [00:07:03]file .. [00:07:03]file doc_1729555577 [00:07:03]remove file /storage/0266/doc_1729555577 [00:07:03]remove dir /storage/0266 [00:07:03]NVStorageSaveData kkm_registers [00:07:03]File name is /storage/kkm_registers [00:07:03]Write 24 bytes [00:07:03]NVStorageSaveData done [00:07:03]NVStorageSaveData kkm_registers [00:07:03]File name is /storage/kkm_registers [00:07:03]Write 24 bytes [00:07:03]NVStorageSaveData done [00:07:03]ProcessDocumentItem done err = 0, tmpTLVsize=1383 [00:07:03]tlvbuf is 01BF0A10 [00:07:03]SAM_PROTO_ClearQueue [00:07:03]wFMCommunicate request_size=4 [00:07:03]MH_SAM_APDU [00:07:03]CAPDU: 80 09 00 00 [00:07:03]Write to MH i2c: E2 08 00 33 04 80 09 00 00 00 00 00 00 A9 [00:07:03]Write i2c OK [00:07:03]MH_I2C_Read... [00:07:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:07:03]Read from MH i2c: E2 [00:07:03]MH_I2C_Read... [00:07:03]Read from MH i2c: E2 03 00 [00:07:03]MH_I2C_Read... [00:07:03]Read from MH i2c: E2 03 00 33 04 00 90 00 AB [00:07:03]RAPDU: 90 00 [00:07:03]wFMCommunicate OK [00:07:03]SAM_PROTO_ClearQueue done [00:07:03]KKMCreateOFDPacket [00:07:03]OFDProtocolAddRootSTLVToBuf [00:07:03]FM_MakeSignedData [00:07:03]FM_MakeSignedData [00:07:03]SAM_PROTO_SignData [00:07:03]wFMCommunicate request_size=4 [00:07:03]MH_SAM_APDU [00:07:03]CAPDU: 80 0D 01 02 [00:07:03]Write to MH i2c: E2 08 00 34 04 80 0D 01 02 00 00 00 00 B1 [00:07:03]Write i2c OK [00:07:03]MH_I2C_Read... [00:07:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:07:03]Read from MH i2c: E2 [00:07:03]MH_I2C_Read... [00:07:03]Read from MH i2c: E2 03 00 [00:07:03]MH_I2C_Read... [00:07:03]Read from MH i2c: E2 03 00 34 04 00 90 00 AC [00:07:03]RAPDU: 90 00 [00:07:03]wFMCommunicate OK [00:07:03]wFMCommunicate request_size=255 [00:07:03]MH_SAM_APDU [00:07:03]CAPDU: 80 0D 02 02 FA 05 00 67 05 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 15 00 D0 90 D1 80 D1 8B D0 BA D0 B1 D0 B0 D0 B5 D0 B2 20 D0 9D 2E 20 F4 03 04 00 9F EC 16 67 0E 04 04 00 CC 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 5E 04 04 00 B1 01 00 00 57 04 04 00 B3 01 00 00 AA 04 D9 04 6E 04 04 00 B1 01 00 00 69 04 A6 00 6F 04 04 00 B1 01 00 00 B1 04 04 00 8E 4A BA 03 70 04 04 00 8C 9D 97 02 72 04 04 00 02 AD 22 01 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 D6 5B 65 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 [00:07:03]Write to MH i2c: E2 02 01 35 04 80 0D 02 02 FA 00 05 00 67 05 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 15 00 D0 90 D1 80 D1 8B D0 BA D0 B1 D0 B0 D0 B5 D0 B2 20 D0 9D 2E 20 F4 03 04 00 9F EC 16 67 0E 04 04 00 CC 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 5E 04 04 00 B1 01 00 00 57 04 04 00 B3 01 00 00 AA 04 D9 04 6E 04 04 00 B1 01 00 00 69 04 A6 00 6F 04 04 00 B1 01 00 00 B1 04 04 00 8E 4A BA 03 70 04 04 00 8C 9D 97 02 72 04 04 00 02 AD 22 01 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 D6 5B 65 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 00 00 EB [00:07:04]Write i2c OK [00:07:04]MH_I2C_Read... [00:07:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:07:04]Read from MH i2c: E2 [00:07:04]MH_I2C_Read... [00:07:04]Read from MH i2c: E2 03 00 [00:07:04]MH_I2C_Read... [00:07:04]Read from MH i2c: E2 03 00 35 04 00 90 00 AD [00:07:04]RAPDU: 90 00 [00:07:04]wFMCommunicate OK [00:07:04]wFMCommunicate request_size=255 [00:07:04]MH_SAM_APDU [00:07:04]CAPDU: 80 0D 02 02 FA 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 38 72 08 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:07:04]Write to MH i2c: E2 02 01 36 04 80 0D 02 02 FA 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 38 72 08 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 D5 [00:07:04]Write i2c OK [00:07:04]MH_I2C_Read... [00:07:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:07:05]Read from MH i2c: E2 [00:07:05]MH_I2C_Read... [00:07:05]Read from MH i2c: E2 03 00 [00:07:05]MH_I2C_Read... [00:07:05]Read from MH i2c: E2 03 00 36 04 00 90 00 AE [00:07:05]RAPDU: 90 00 [00:07:05]wFMCommunicate OK [00:07:05]wFMCommunicate request_size=255 [00:07:05]MH_SAM_APDU [00:07:05]CAPDU: 80 0D 02 02 FA 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:07:05]Write to MH i2c: E2 02 01 37 04 80 0D 02 02 FA 00 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 00 7B [00:07:05]Write i2c OK [00:07:05]MH_I2C_Read... [00:07:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:07:05]Read from MH i2c: E2 [00:07:05]MH_I2C_Read... [00:07:05]Read from MH i2c: E2 03 00 [00:07:05]MH_I2C_Read... [00:07:05]Read from MH i2c: E2 03 00 37 04 00 90 00 AF [00:07:05]RAPDU: 90 00 [00:07:05]wFMCommunicate OK [00:07:05]wFMCommunicate request_size=255 [00:07:05]MH_SAM_APDU [00:07:05]CAPDU: 80 0D 02 02 FA 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 [00:07:05]Write to MH i2c: E2 02 01 38 04 80 0D 02 02 FA 00 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 00 00 7A [00:07:06]Write i2c OK [00:07:06]MH_I2C_Read... [00:07:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:07:06]Read from MH i2c: E2 [00:07:06]MH_I2C_Read... [00:07:06]Read from MH i2c: E2 03 00 [00:07:06]MH_I2C_Read... [00:07:06]Read from MH i2c: E2 03 00 38 04 00 90 00 B0 [00:07:06]RAPDU: 90 00 [00:07:06]wFMCommunicate OK [00:07:06]wFMCommunicate request_size=255 [00:07:06]MH_SAM_APDU [00:07:06]CAPDU: 80 0D 02 02 FA 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [00:07:06]Write to MH i2c: E2 02 01 39 04 80 0D 02 02 FA 00 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 00 00 3F [00:07:06]Write i2c OK [00:07:06]MH_I2C_Read... [00:07:07]OFD Sender: No OFD packet to send [00:07:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:07:07]Read from MH i2c: E2 [00:07:07]MH_I2C_Read... [00:07:07]Read from MH i2c: E2 03 00 [00:07:07]MH_I2C_Read... [00:07:07]Read from MH i2c: E2 03 00 39 04 00 90 00 B1 [00:07:07]RAPDU: 90 00 [00:07:07]wFMCommunicate OK [00:07:07]wFMCommunicate request_size=142 [00:07:07]MH_SAM_APDU [00:07:07]CAPDU: 80 0D 02 02 89 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 42 DE 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 35 04 06 00 A7 39 A0 4F 85 E0 [00:07:07]Write to MH i2c: E2 91 00 3A 04 80 0D 02 02 89 00 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 42 DE 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 35 04 06 00 A7 39 A0 4F 85 E0 00 00 50 [00:07:07]Write i2c OK [00:07:07]MH_I2C_Read... [00:07:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:07:07]Read from MH i2c: E2 [00:07:07]MH_I2C_Read... [00:07:07]Read from MH i2c: E2 03 00 [00:07:07]MH_I2C_Read... [00:07:07]Read from MH i2c: E2 03 00 3A 04 00 90 00 B2 [00:07:07]RAPDU: 90 00 [00:07:07]wFMCommunicate OK [00:07:07]wFMCommunicate request_size=4 [00:07:07]MH_SAM_APDU [00:07:07]CAPDU: 80 0D 03 02 [00:07:07]Write to MH i2c: E2 08 00 3B 04 80 0D 03 02 00 00 00 00 BA [00:07:07]Write i2c OK [00:07:07]MH_I2C_Read... [00:07:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:07:07]Read from MH i2c: E2 [00:07:07]MH_I2C_Read... [00:07:07]Read from MH i2c: E2 0B 00 [00:07:07]MH_I2C_Read... [00:07:07]Read from MH i2c: E2 0B 00 3B 04 00 3A 85 61 C3 69 3A 52 0F 90 00 A2 [00:07:07]RAPDU: 3A 85 61 C3 69 3A 52 0F 90 00 [00:07:07]wFMCommunicate OK [00:07:07]SAM_PROTO_SignData done [00:07:07]FM_MakeSignedData done [00:07:07]CreateOFDProtocolMessage [00:07:07]wFMCommunicate request_size=4 [00:07:07]MH_SAM_APDU [00:07:07]CAPDU: 80 11 00 00 [00:07:07]Write to MH i2c: E2 08 00 3C 04 80 11 00 00 00 00 00 00 BA [00:07:07]Write i2c OK [00:07:07]MH_I2C_Read... [00:07:07]Read from MH i2c: E2 [00:07:07]MH_I2C_Read... [00:07:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:07:07]Read from MH i2c: E2 17 00 [00:07:07]MH_I2C_Read... [00:07:07]Read from MH i2c: E2 17 00 3C 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 08 [00:07:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [00:07:07]wFMCommunicate OK [00:07:07]CreateOFDProtocolMessage done [00:07:07]OFDSenderStorePacket 187970 [00:07:07]StoreOFDPacket docnum=187970 [00:07:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 7B 05 00 00 3B 4C 73 05 A1 57 5A 05 01 00 05 00 67 05 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 15 00 D0 90 D1 80 D1 8B D0 BA D0 B1 D0 B0 D0 B5 D0 B2 20 D0 9D 2E 20 F4 03 04 00 9F EC 16 67 0E 04 04 00 CC 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 5E 04 04 00 B1 01 00 00 57 04 04 00 B3 01 00 00 AA 04 D9 04 6E 04 04 00 B1 01 00 00 69 04 A6 00 6F 04 04 00 B1 01 00 00 B1 04 04 00 8E 4A BA 03 70 04 04 00 8C 9D 97 02 72 04 04 00 02 AD 22 01 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 D6 5B 65 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 38 72 08 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 42 DE 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 35 04 06 00 A7 39 A0 4F 85 E0 3A 85 61 C3 69 3A 52 0F [00:07:08]CheckFolder [00:07:08]dirname=/storage/ofd_packets [00:07:08]CheckFolder done [00:07:08]ProducePacketName [00:07:08]name=ofd_packets/00187970 [00:07:08]NVStorageSaveData ofd_packets/00187970 [00:07:08]File name is /storage/ofd_packets/00187970 [00:07:08]Write 1433 bytes [00:07:08]NVStorageSaveData done [00:07:08]OFDSenderStorePacket done [00:07:08]KKMCreateOFDPacket done [00:07:08]NVStorageSaveData kkm_last_timestamp [00:07:08]File name is /storage/kkm_last_timestamp [00:07:08]Write 4 bytes [00:07:08]NVStorageSaveData done [00:07:08]ExternCall_PrintAddStr [00:07:08]wPrintStart [00:07:08]Write to MH i2c: 01 00 00 3D 04 41 [00:07:08]Write i2c OK [00:07:08]MH_I2C_Read... [00:07:08]Read from MH i2c: 01 [00:07:08]MH_I2C_Read... [00:07:08]Read from MH i2c: 01 07 00 [00:07:08]MH_I2C_Read... [00:07:08]Read from MH i2c: 01 07 00 3D 04 00 00 00 00 00 FF 0F 56 [00:07:08]RasterBufferAndPrint [00:07:08]line Отчет о закрытии смены [00:07:08]line ФФД: 1.0 [00:07:08]line ИНН: 02508201610067 [00:07:08]line Кассир: Арыкбаев Н. [00:07:08]line 22.10.2024 00:06 [00:07:08]line Смена: 460 [00:07:08]line РНМ: 0000000000100030 [00:07:08]line ЗНМ: 0300000155 [00:07:08]line СНО: Общий режим [00:07:08]line Чеков за смену: 433 [00:07:08]line ФД за смену: 435 [00:07:08]line Всего чеков: 433 [00:07:08]line ИТОГИ ПРИХОД [00:07:08]line Чеков: 433 [00:07:08]line Общий итог: 625404.30 [00:07:08]line Итого наличными: 434907.00 [00:07:08]line Итого безнал.: 190497.30 [00:07:08]line НДС 0% : 0.00 [00:07:08]line НДС 12% : 66426.46 [00:07:08]line НСП 0% : 0.00 [00:07:08]line НСП 1,50% : 0.00 [00:07:08]line НСП 0,50% : 0.00 [00:07:08]line НСП 5% : 0.00 [00:07:08]line НСП 3% : 0.00 [00:07:08]line НСП 2% : 0.00 [00:07:08]line НСП 1% : 5535.28 [00:07:08]line ИТОГИ ВОЗВРАТ ПРИХОДА [00:07:08]line Чеков: 0 [00:07:08]line Общий итог: 0.00 [00:07:08]line Итого наличными: 0.00 [00:07:08]line Итого безнал.: 0.00 [00:07:08]line НДС 0% : 0.00 [00:07:08]line НДС 12% : 0.00 [00:07:08]line НСП 0% : 0.00 [00:07:08]line НСП 1,50% : 0.00 [00:07:08]line НСП 0,50% : 0.00 [00:07:08]line НСП 5% : 0.00 [00:07:08]line НСП 3% : 0.00 [00:07:08]line НСП 2% : 0.00 [00:07:08]line НСП 1% : 0.00 [00:07:08]line ИТОГИ РАСХОД [00:07:08]line Чеков: 0 [00:07:08]line Общий итог: 0.00 [00:07:08]line Итого наличными: 0.00 [00:07:08]line Итого безнал.: 0.00 [00:07:08]line НДС 0% : 0.00 [00:07:08]line НДС 12% : 0.00 [00:07:08]line НСП 0% : 0.00 [00:07:08]line НСП 1,50% : 0.00 [00:07:08]line НСП 0,50% : 0.00 [00:07:08]line НСП 5% : 0.00 [00:07:08]line НСП 3% : 0.00 [00:07:08]line НСП 2% : 0.00 [00:07:08]line НСП 1% : 0.00 [00:07:08]line ИТОГИ ВОЗВРАТ РАСХОДА [00:07:08]line Чеков: 0 [00:07:08]line Общий итог: 0.00 [00:07:08]line Итого наличными: 0.00 [00:07:08]line Итого безнал.: 0.00 [00:07:08]line НДС 0% : 0.00 [00:07:08]line НДС 12% : 0.00 [00:07:08]line НСП 0% : 0.00 [00:07:08]line НСП 1,50% : 0.00 [00:07:08]line НСП 0,50% : 0.00 [00:07:08]line НСП 5% : 0.00 [00:07:08]line НСП 3% : 0.00 [00:07:08]line НСП 2% : 0.00 [00:07:08]line НСП 1% : 0.00 [00:07:08]line Сумма внесений: 0.00 [00:07:08]line Сумма выплат: 0.00 [00:07:08]line Нал. в кассе: 434907.00 [00:07:08]line НС Приход: 288567594.55 [00:07:08]line НС Возвр.Прихода: 51314934.00 [00:07:08]line НС Расход: 0.00 [00:07:08]line НС Возвр.Расхода: 0.00 [00:07:08]line ФД: 187970 [00:07:08]line ФМ: 0000000000965340 [00:07:08]line ФПД: 183865944540640 [00:07:08]OFD Sender: Processing packet 187970 [packets to send 1062, broken 1061] [00:07:08]ProducePacketName [00:07:08]name=ofd_packets/00187970 [00:07:08]OFD Sender: To server: pG, [00:07:08]CommunicateWithHost lk.salyk.kg:30040 [00:07:08]ConnectInit lk.salyk.kg [00:07:08]written 0, free lines is 4095 [00:07:08]Connected sock=10 [00:07:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 7B 05 00 00 3B 4C 73 05 A1 57 5A 05 01 00 05 00 67 05 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 15 00 D0 90 D1 80 D1 8B D0 BA D0 B1 D0 B0 D0 B5 D0 B2 20 D0 9D 2E 20 F4 03 04 00 9F EC 16 67 0E 04 04 00 CC 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 5E 04 04 00 B1 01 00 00 57 04 04 00 B3 01 00 00 AA 04 D9 04 6E 04 04 00 B1 01 00 00 69 04 A6 00 6F 04 04 00 B1 01 00 00 B1 04 04 00 8E 4A BA 03 70 04 04 00 8C 9D 97 02 72 04 04 00 02 AD 22 01 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 D6 5B 65 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 38 72 08 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 Write to MH i2c: 00 01 01 00 F3 00 03 8E 01 04 00 92 00 [00:07:09]EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 Write i2c OK [00:07:09]00 MH_I2C_Read... [00:07:09]EF 03 0A 00 F6 03 01 00 Read from MH i2c: 06 01 F7 [00:07:09]03 MH_I2C_Read... [00:07:09]01 00 00 EF Read from MH i2c: 03 01 0A 07 00 00 F6 [00:07:09]03 MH_I2C_Read... [00:07:09]01 00 05 F7 03 01 00 00 EF 03 0A Read from MH i2c: 00 01 F6 07 03 00 01 8E 00 04 04 00 F7 00 03 00 01 00 00 00 00 59 EF 09 03 FB 0A [00:07:09]00 RasterBufferAndPrint [00:07:09]F6 line [00:07:09]03 01 00 03 F7 03 01 00 00 EF 03 0A 00 line [00:07:09]F6 line [00:07:09]03 line [00:07:09]01 line [00:07:09]00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 written 0, free lines is 2521 [00:07:09]F7 03 01 00 00 6C 04 99 00 6F 04 04 00 00 00 MH_Cut [00:07:09]00 Write to MH i2c: 00 D1 B1 01 04 00 01 95 00 04 00 01 70 6B 04 [00:07:09]01 00 00 72 04 01 00 00 00 04 Write i2c OK [00:07:09]7E MH_I2C_Read... [00:07:09]00 EE 03 0A 00 F2 03 Read from MH i2c: 01 D1 00 [00:07:09]00 MH_I2C_Read... [00:07:09]F3 03 01 00 Read from MH i2c: 00 D1 EE 01 03 00 0A [00:07:09]MH_I2C_Read... [00:07:09]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 Read from MH i2c: 01 D1 00 01 05 00 95 04 00 F7 6A 03 [00:07:09]01 Write to MH i2c: 00 01 00 00 96 04 9A 00 [00:07:09]EF 03 0A 00 F6 03 01 00 04 Write i2c OK [00:07:09]F7 MH_I2C_Read... [00:07:09]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 42 DE 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 35 04 06 00 A7 39 A0 4F 85 E0 3A 85 61 C3 69 3A 52 0F [00:07:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 F3 57 47 00 E5 8D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 42 DE 02 00 F4 03 04 00 9B 96 16 67 B6 04 01 00 00 02 38 C8 11 CF ED 48 F8 [00:07:10]CommunicateWithHost err = 0 [00:07:10]CheckOFDResponse [00:07:10]1017 (14) - 77093643461234 [00:07:10]1041 (16) - 0000000000965340 [00:07:10]1040 (4) - 187970 [00:07:10]1012 (4) - 21.10.2024 17:59 [00:07:10]1206 (1) - 0 [00:07:10]OFD Sender: Remove packet 187970 [00:07:10]ProducePacketName [00:07:10]name=ofd_packets/00187970 [00:07:10]NVStorageDeleteData [00:07:11]*** Cut start [00:07:11]*** Partial cut [00:07:11]*** CUTSNS_PIN = 1 [00:07:11]*** CUTSNS_PIN = 0 [00:07:11]*** Brake cut motor [00:07:11]OFD Sender: No OFD packet to send [00:07:11]Read from MH i2c: 01 [00:07:11]MH_I2C_Read... [00:07:11]*** Stop cut motor [00:07:11]*** Cut end [00:07:11]Read from MH i2c: 01 07 00 [00:07:11]MH_I2C_Read... [00:07:11]Read from MH i2c: 01 07 00 96 04 00 00 00 00 00 FF 0F AF [00:07:11]process_action close_shift done [00:07:11]requested_data is exist [00:07:11]produce_requested_data [00:07:11]requested_item fd.num is exist - process it [00:07:11]SAM_PROTO_GetFieldsCounters [00:07:11]wFMCommunicate request_size=4 [00:07:11]MH_SAM_APDU [00:07:11]CAPDU: 80 13 00 00 [00:07:11]Write to MH i2c: E2 08 00 97 04 80 13 00 00 00 00 00 00 17 [00:07:11]Write i2c OK [00:07:11]MH_I2C_Read... [00:07:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:07:11]Read from MH i2c: E2 [00:07:11]MH_I2C_Read... [00:07:11]Read from MH i2c: E2 62 00 [00:07:11]MH_I2C_Read... [00:07:11]Read from MH i2c: E2 62 00 97 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 42 DE 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 B1 01 00 00 5E 04 04 00 B1 01 00 00 57 04 04 00 B3 01 00 00 19 04 04 00 00 00 00 00 90 00 24 [00:07:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 42 DE 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 B1 01 00 00 5E 04 04 00 B1 01 00 00 57 04 04 00 B3 01 00 00 19 04 04 00 00 00 00 00 90 00 [00:07:12]wFMCommunicate OK [00:07:12]SAM_PROTO_GetFieldsCounters done [00:07:12]requested_item shift.num is exist - process it [00:07:12]requested_item shift.opened is exist - process it [00:07:12]req_shift_opened [00:07:12]FM_GetShiftState [00:07:12]SAM_PROTO_GetShiftState [00:07:12]wFMCommunicate request_size=4 [00:07:12]MH_SAM_APDU [00:07:12]CAPDU: 80 13 01 00 [00:07:12]Write to MH i2c: E2 08 00 98 04 80 13 01 00 00 00 00 00 19 [00:07:12]Write i2c OK [00:07:12]MH_I2C_Read... [00:07:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:07:12]Read from MH i2c: E2 [00:07:12]MH_I2C_Read... [00:07:12]Read from MH i2c: E2 0E 00 [00:07:12]MH_I2C_Read... [00:07:12]Read from MH i2c: E2 0E 00 98 04 00 09 00 00 00 00 00 00 00 00 00 00 90 00 24 [00:07:12]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:07:12]wFMCommunicate OK [00:07:12]SAM_PROTO_GetShiftState done [00:07:12]FM_GetShiftState done [00:07:12]req_shift_opened done [00:07:12]requested_item shift.open_date is exist - process it [00:07:12]req_shift_open_date [00:07:12]FM_GetShiftState [00:07:12]SAM_PROTO_GetShiftState [00:07:12]wFMCommunicate request_size=4 [00:07:12]MH_SAM_APDU [00:07:12]CAPDU: 80 13 01 00 [00:07:12]Write to MH i2c: E2 08 00 99 04 80 13 01 00 00 00 00 00 1A [00:07:12]Write i2c OK [00:07:12]MH_I2C_Read... [00:07:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:07:12]Read from MH i2c: E2 [00:07:12]MH_I2C_Read... [00:07:12]Read from MH i2c: E2 0E 00 [00:07:12]MH_I2C_Read... [00:07:12]Read from MH i2c: E2 0E 00 99 04 00 09 00 00 00 00 00 00 00 00 00 00 90 00 25 [00:07:12]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:07:12]wFMCommunicate OK [00:07:12]SAM_PROTO_GetShiftState done [00:07:12]FM_GetShiftState done [00:07:12]req_shift_open_date done [00:07:12]produce_requested_data done [00:07:12]produce_requested_data return {"fd.num":187970,"shift.num":460,"shift.opened":0,"shift.open_date":0} [00:07:12]process_action_free close_shift [00:07:12]json_value_free [00:07:12]json_value_free done [00:07:12]process_json_proto returns [00:07:12]Send response to host [00:07:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":187970,"shift.num":460,"shift.opened":0,"shift.open_date":0}}} [00:07:12]free response buf [00:07:12]execute_script done [00:07:12]execute_script returns [00:07:12]free content buf [00:07:12]Sock 9.Close socket [00:07:12]Sock 9.Thread stoped [00:07:16]OFD Sender: No OFD packet to send [00:07:21]OFD Sender: No OFD packet to send [00:07:26]OFD Sender: No OFD packet to send [00:07:31]OFD Sender: No OFD packet to send [00:07:36]OFD Sender: No OFD packet to send [00:07:41]OFD Sender: No OFD packet to send [00:07:46]OFD Sender: No OFD packet to send [00:07:51]OFD Sender: No OFD packet to send [00:07:56]OFD Sender: No OFD packet to send [00:08:01]OFD Sender: No OFD packet to send [00:08:06]OFD Sender: No OFD packet to send [00:08:11]OFD Sender: No OFD packet to send [00:08:16]OFD Sender: No OFD packet to send [00:08:21]OFD Sender: No OFD packet to send [00:08:26]OFD Sender: No OFD packet to send [00:08:31]OFD Sender: No OFD packet to send [00:08:36]OFD Sender: No OFD packet to send [00:08:41]OFD Sender: No OFD packet to send [00:08:46]OFD Sender: No OFD packet to send [00:08:51]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:17]OFD Sender: No OFD packet to send [00:12:22]OFD Sender: No OFD packet to send [00:12:27]OFD Sender: No OFD packet to send [00:12:32]OFD Sender: No OFD packet to send [00:12:37]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: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:49]accept exits with 8 [00:14:49]New connection [00:14:49]New thread 3067198820 created [00:14:49]Thread 3067055460 joined [00:14:49]Waiting for new connection... [00:14:49] Sock 8.Parse request [00:14:49]Sock 8.Check first char [00:14:49]Sock 8.First char is OK [00:14:49]request: POST /json_proto HTTP/1.0 [00:14:49]Method: POST [00:14:49]URL: /json_proto [00:14:49]Method is POST - this is cgi request [00:14:49]url: /json_proto [00:14:49]query_string will be loaded in cgi processing [00:14:49]execute_cgi json_proto POST (null) [00:14:49]execute_cgi path=json_proto method=POST [00:14:49]POST find Content-Length [00:14:49]Host: 172.17.42.131:8080 [00:14:49]Content-Length: 215 [00:14:49]Content-Type: application/json [00:14:49] [00:14:49]POST finish read [00:14:49]Found Content-Length = 215 [00:14:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:14:49]execute_script... [00:14:49]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:14:49]POST & json_proto [00:14:49]process_json_proto [00:14:49]json parsed OK: [00:14:49]protocol is kg_v1.0 [00:14:49]action value=get_value [00:14:49]process_action get_value [00:14:49]cmd_get_value [00:14:49]process_action get_value done [00:14:49]requested_data is exist [00:14:49]produce_requested_data [00:14:49]requested_item kkm.sn is exist - process it [00:14:49]requested_item kkm.ver is exist - process it [00:14:49]requested_item fm.sn is exist - process it [00:14:49]wFMCommunicate request_size=4 [00:14:49]MH_SAM_APDU [00:14:49]CAPDU: 80 11 00 00 [00:14:49]Write to MH i2c: E2 08 00 9A 04 80 11 00 00 00 00 00 00 18 [00:14:49]Write i2c OK [00:14:49]MH_I2C_Read... [00:14:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:14:49]Read from MH i2c: E2 [00:14:49]MH_I2C_Read... [00:14:49]Read from MH i2c: E2 17 00 [00:14:49]MH_I2C_Read... [00:14:49]Read from MH i2c: E2 17 00 9A 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 66 [00:14:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [00:14:49]wFMCommunicate OK [00:14:49]requested_item fd.num is exist - process it [00:14:49]SAM_PROTO_GetFieldsCounters [00:14:49]wFMCommunicate request_size=4 [00:14:49]MH_SAM_APDU [00:14:49]CAPDU: 80 13 00 00 [00:14:49]Write to MH i2c: E2 08 00 9B 04 80 13 00 00 00 00 00 00 1B [00:14:49]Write i2c OK [00:14:49]MH_I2C_Read... [00:14:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:14:49]Read from MH i2c: E2 [00:14:49]MH_I2C_Read... [00:14:49]Read from MH i2c: E2 62 00 [00:14:49]MH_I2C_Read... [00:14:49]Read from MH i2c: E2 62 00 9B 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 42 DE 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 B1 01 00 00 5E 04 04 00 B1 01 00 00 57 04 04 00 B3 01 00 00 19 04 04 00 00 00 00 00 90 00 28 [00:14:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 42 DE 02 00 0E 04 04 00 CC 01 00 00 12 04 04 00 B1 01 00 00 5E 04 04 00 B1 01 00 00 57 04 04 00 B3 01 00 00 19 04 04 00 00 00 00 00 90 00 [00:14:49]wFMCommunicate OK [00:14:49]SAM_PROTO_GetFieldsCounters done [00:14:49]requested_item shift.num is exist - process it [00:14:49]requested_item shift.opened is exist - process it [00:14:49]req_shift_opened [00:14:49]FM_GetShiftState [00:14:49]SAM_PROTO_GetShiftState [00:14:49]wFMCommunicate request_size=4 [00:14:49]MH_SAM_APDU [00:14:49]CAPDU: 80 13 01 00 [00:14:49]Write to MH i2c: E2 08 00 9C 04 80 13 01 00 00 00 00 00 1D [00:14:49]Write i2c OK [00:14:49]MH_I2C_Read... [00:14:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:14:50]Read from MH i2c: E2 [00:14:50]MH_I2C_Read... [00:14:50]Read from MH i2c: E2 0E 00 [00:14:50]MH_I2C_Read... [00:14:50]Read from MH i2c: E2 0E 00 9C 04 00 09 00 00 00 00 00 00 00 00 00 00 90 00 28 [00:14:50]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:14:50]wFMCommunicate OK [00:14:50]SAM_PROTO_GetShiftState done [00:14:50]FM_GetShiftState done [00:14:50]req_shift_opened done [00:14:50]requested_item shift.open_date is exist - process it [00:14:50]req_shift_open_date [00:14:50]FM_GetShiftState [00:14:50]SAM_PROTO_GetShiftState [00:14:50]wFMCommunicate request_size=4 [00:14:50]MH_SAM_APDU [00:14:50]CAPDU: 80 13 01 00 [00:14:50]Write to MH i2c: E2 08 00 9D 04 80 13 01 00 00 00 00 00 1E [00:14:50]Write i2c OK [00:14:50]MH_I2C_Read... [00:14:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:14:50]Read from MH i2c: E2 [00:14:50]MH_I2C_Read... [00:14:50]Read from MH i2c: E2 0E 00 [00:14:50]MH_I2C_Read... [00:14:50]Read from MH i2c: E2 0E 00 9D 04 00 09 00 00 00 00 00 00 00 00 00 00 90 00 29 [00:14:50]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:14:50]wFMCommunicate OK [00:14:50]SAM_PROTO_GetShiftState done [00:14:50]FM_GetShiftState done [00:14:50]req_shift_open_date done [00:14:50]produce_requested_data done [00:14:50]produce_requested_data return {"kkm.sn":"0300000155","kkm.ver":"001","fm.sn":"0000000000965340","fd.num":187970,"shift.num":460,"shift.opened":0,"shift.open_date":0} [00:14:50]process_action_free get_value [00:14:50]json_value_free [00:14:50]json_value_free done [00:14:50]process_json_proto returns [00:14:50]Send response to host [00:14:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000155","kkm.ver":"001","fm.sn":"0000000000965340","fd.num":187970,"shift.num":460,"shift.opened":0,"shift.open_date":0}}} [00:14:50]free response buf [00:14:50]execute_script done [00:14:50]execute_script returns [00:14:50]free content buf [00:14:50]Sock 8.Close socket [00:14:50]Sock 8.Thread stoped [00:14:50]accept exits with 9 [00:14:50]New connection [00:14:50]New thread 3067055460 created [00:14:50]Thread 3067198820 joined [00:14:50]Waiting for new connection... [00:14:50] Sock 9.Parse request [00:14:50]Sock 9.Check first char [00:14:50]Sock 9.First char is OK [00:14:50]request: POST /json_proto HTTP/1.0 [00:14:50]Method: POST [00:14:50]URL: /json_proto [00:14:50]Method is POST - this is cgi request [00:14:50]url: /json_proto [00:14:50]query_string will be loaded in cgi processing [00:14:50]execute_cgi json_proto POST (null) [00:14:50]execute_cgi path=json_proto method=POST [00:14:50]POST find Content-Length [00:14:50]Host: 172.17.42.131:8080 [00:14:50]Content-Length: 331 [00:14:50]Content-Type: application/json [00:14:50] [00:14:50]POST finish read [00:14:50]Found Content-Length = 331 [00:14:50]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:14:50]execute_script... [00:14:50]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:14:50]POST & json_proto [00:14:50]process_json_proto [00:14:50]json parsed OK: [00:14:50]protocol is kg_v1.0 [00:14:50]action value=get_value [00:14:50]process_action get_value [00:14:50]cmd_get_value [00:14:50]process_action get_value done [00:14:50]requested_data is exist [00:14:50]produce_requested_data [00:14:50]requested_item fm.sale.total is exist - process it [00:14:50]SAM_PROTO_GetFMData [00:14:50]wFMCommunicate request_size=4 [00:14:50]MH_SAM_APDU [00:14:50]CAPDU: 80 13 03 00 [00:14:50]Write to MH i2c: E2 08 00 9E 04 80 13 03 00 00 00 00 00 21 [00:14:50]Write i2c OK [00:14:50]MH_I2C_Read... [00:14:50]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:14:50]Read from MH i2c: E2 [00:14:50]MH_I2C_Read... [00:14:50]Read from MH i2c: E2 FD 00 [00:14:50]MH_I2C_Read... [00:14:50]Read from MH i2c: E2 FD 00 9E 04 00 CB 04 85 04 C7 04 6E 04 04 00 A9 DA 02 00 69 04 A4 00 6F 04 04 00 1A DA 02 00 B1 04 05 00 9F 34 FF B7 06 70 04 05 00 CC D2 1C 9F 04 72 04 05 00 D3 61 E2 18 02 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 25 6E B0 B6 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 D4 24 39 0F EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 A1 00 6F 04 04 00 8F 00 00 00 B1 04 05 00 18 60 DC 31 01 70 04 05 00 C8 19 DC 31 01 72 04 02 00 50 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 36 17 90 00 19 [00:14:50]RAPDU: CB 04 85 04 C7 04 6E 04 04 00 A9 DA 02 00 69 04 A4 00 6F 04 04 00 1A DA 02 00 B1 04 05 00 9F 34 FF B7 06 70 04 05 00 CC D2 1C 9F 04 72 04 05 00 D3 61 E2 18 02 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 25 6E B0 B6 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 D4 24 39 0F EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 A1 00 6F 04 04 00 8F 00 00 00 B1 04 05 00 18 60 DC 31 01 70 04 05 00 C8 19 DC 31 01 72 04 02 00 50 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 36 17 90 00 [00:14:50]wFMCommunicate OK [00:14:50]wFMCommunicate request_size=4 [00:14:50]MH_SAM_APDU [00:14:50]CAPDU: 80 17 00 00 [00:14:50]Write to MH i2c: E2 08 00 9F 04 80 17 00 00 00 00 00 00 23 [00:14:50]Write i2c OK [00:14:50]MH_I2C_Read... [00:14:51]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:14:51]Read from MH i2c: E2 [00:14:51]MH_I2C_Read... [00:14:51]Read from MH i2c: E2 FD 00 [00:14:51]MH_I2C_Read... [00:14:51]Read from MH i2c: E2 FD 00 9F 04 00 7B 20 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 92 EC B4 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 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 90 00 F0 [00:14:51]RAPDU: 7B 20 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 92 EC B4 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 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 90 00 [00:14:51]wFMCommunicate OK [00:14:51]wFMCommunicate request_size=4 [00:14:51]MH_SAM_APDU [00:14:51]CAPDU: 80 17 00 00 [00:14:51]Write to MH i2c: E2 08 00 A0 04 80 17 00 00 00 00 00 00 24 [00:14:51]Write i2c OK [00:14:51]MH_I2C_Read... [00:14:51]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:14:51]Read from MH i2c: E2 [00:14:51]MH_I2C_Read... [00:14:51]Read from MH i2c: E2 FD 00 [00:14:51]MH_I2C_Read... [00:14:51]Read from MH i2c: E2 FD 00 A0 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 FF [00:14:51]RAPDU: 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:14:51]wFMCommunicate OK [00:14:51]wFMCommunicate request_size=4 [00:14:51]MH_SAM_APDU [00:14:51]CAPDU: 80 17 00 00 [00:14:51]Write to MH i2c: E2 08 00 A1 04 80 17 00 00 00 00 00 00 25 [00:14:51]Write i2c OK [00:14:51]MH_I2C_Read... [00:14:51]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:14:51]Read from MH i2c: E2 [00:14:51]MH_I2C_Read... [00:14:51]Read from MH i2c: E2 FD 00 [00:14:51]MH_I2C_Read... [00:14:51]Read from MH i2c: E2 FD 00 A1 04 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 A3 [00:14:51]RAPDU: 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:14:51]wFMCommunicate OK [00:14:51]wFMCommunicate request_size=4 [00:14:51]MH_SAM_APDU [00:14:51]CAPDU: 80 17 00 00 [00:14:51]Write to MH i2c: E2 08 00 A2 04 80 17 00 00 00 00 00 00 26 [00:14:51]Write i2c OK [00:14:51]MH_I2C_Read... [00:14:51]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 229! [00:14:51]Read from MH i2c: E2 [00:14:51]MH_I2C_Read... [00:14:51]Read from MH i2c: E2 E8 00 [00:14:51]MH_I2C_Read... [00:14:51]Read from MH i2c: E2 E8 00 A2 04 00 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 04 [00:14:51]RAPDU: 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:14:51]wFMCommunicate OK [00:14:51]SAM_PROTO_GetFMData done [00:14:51]requested_item fm.sale_refund.total is exist - process it [00:14:51]requested_item fm.buy.total is exist - process it [00:14:51]requested_item shift.sale.total is exist - process it [00:14:51]SAM_PROTO_GetShiftData [00:14:51]wFMCommunicate request_size=4 [00:14:51]MH_SAM_APDU [00:14:51]CAPDU: 80 13 02 00 [00:14:51]Write to MH i2c: E2 08 00 A3 04 80 13 02 00 00 00 00 00 25 [00:14:51]Write i2c OK [00:14:51]MH_I2C_Read... [00:14:52]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:14:52]Read from MH i2c: E2 [00:14:52]MH_I2C_Read... [00:14:52]Read from MH i2c: E2 FD 00 [00:14:52]MH_I2C_Read... [00:14:52]Read from MH i2c: E2 FD 00 A3 04 00 B2 04 AA 04 AE 04 6E 04 04 00 B1 01 00 00 69 04 9F 00 6F 04 04 00 B1 01 00 00 B1 04 04 00 8E 4A BA 03 70 04 04 00 8C 9D 97 02 72 04 04 00 02 AD 22 01 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 D6 5B 65 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 38 72 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 D4 [00:14:52]RAPDU: B2 04 AA 04 AE 04 6E 04 04 00 B1 01 00 00 69 04 9F 00 6F 04 04 00 B1 01 00 00 B1 04 04 00 8E 4A BA 03 70 04 04 00 8C 9D 97 02 72 04 04 00 02 AD 22 01 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 D6 5B 65 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 38 72 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:14:52]wFMCommunicate OK [00:14:52]wFMCommunicate request_size=4 [00:14:52]MH_SAM_APDU [00:14:52]CAPDU: 80 17 00 00 [00:14:52]Write to MH i2c: E2 08 00 A4 04 80 17 00 00 00 00 00 00 28 [00:14:52]Write i2c OK [00:14:52]MH_I2C_Read... [00:14:52]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:14:52]Read from MH i2c: E2 [00:14:52]MH_I2C_Read... [00:14:52]Read from MH i2c: E2 FD 00 [00:14:52]MH_I2C_Read... [00:14:52]Read from MH i2c: E2 FD 00 A4 04 00 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 3F [00:14:52]RAPDU: 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:14:52]wFMCommunicate OK [00:14:52]wFMCommunicate request_size=4 [00:14:52]MH_SAM_APDU [00:14:52]CAPDU: 80 17 00 00 [00:14:52]Write to MH i2c: E2 08 00 A5 04 80 17 00 00 00 00 00 00 29 [00:14:52]Write i2c OK [00:14:52]MH_I2C_Read... [00:14:52]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:14:52]Read from MH i2c: E2 [00:14:52]MH_I2C_Read... [00:14:52]Read from MH i2c: E2 FD 00 [00:14:52]MH_I2C_Read... [00:14:52]Read from MH i2c: E2 FD 00 A5 04 00 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 E5 [00:14:52]RAPDU: 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:14:52]wFMCommunicate OK [00:14:52]wFMCommunicate request_size=4 [00:14:52]MH_SAM_APDU [00:14:52]CAPDU: 80 17 00 00 [00:14:52]Write to MH i2c: E2 08 00 A6 04 80 17 00 00 00 00 00 00 2A [00:14:52]Write i2c OK [00:14:52]MH_I2C_Read... [00:14:53]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:14:53]Read from MH i2c: E2 [00:14:53]MH_I2C_Read... [00:14:53]Read from MH i2c: E2 FD 00 [00:14:53]MH_I2C_Read... [00:14:53]Read from MH i2c: E2 FD 00 A6 04 00 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 90 00 A1 [00:14:53]RAPDU: 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 90 00 [00:14:53]wFMCommunicate OK [00:14:53]wFMCommunicate request_size=4 [00:14:53]MH_SAM_APDU [00:14:53]CAPDU: 80 17 00 00 [00:14:53]Write to MH i2c: E2 08 00 A7 04 80 17 00 00 00 00 00 00 2B [00:14:53]Write i2c OK [00:14:53]MH_I2C_Read... [00:14:53]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 204! [00:14:53]Read from MH i2c: E2 [00:14:53]MH_I2C_Read... [00:14:53]Read from MH i2c: E2 CF 00 [00:14:53]MH_I2C_Read... [00:14:53]Read from MH i2c: E2 CF 00 A7 04 00 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 12 [00:14:53]RAPDU: 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:14:53]wFMCommunicate OK [00:14:53]SAM_PROTO_GetShiftData done [00:14:53]requested_item shift.sale.total_cash is exist - process it [00:14:53]requested_item shift.sale_refund.total is exist - process it [00:14:53]requested_item shift.sale_refund.total_cash is exist - process it [00:14:53]requested_item shift.buy.total is exist - process it [00:14:53]requested_item shift.buy.total_cash is exist - process it [00:14:53]produce_requested_data done [00:14:53]produce_requested_data return {"fm.sale.total":288567594.55,"fm.sale_refund.total":51314934.00,"fm.buy.total":0.00,"shift.sale.total":625404.30,"shift.sale.total_cash":434907.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:14:53]process_action_free get_value [00:14:53]json_value_free [00:14:53]json_value_free done [00:14:53]process_json_proto returns [00:14:53]Send response to host [00:14:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":288567594.55,"fm.sale_refund.total":51314934.00,"fm.buy.total":0.00,"shift.sale.total":625404.30,"shift.sale.total_cash":434907.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:14:53]free response buf [00:14:53]execute_script done [00:14:53]execute_script returns [00:14:53]free content buf [00:14:53]Sock 9.Close socket [00:14:53]Sock 9.Thread stoped [00:14:53]OFD Sender: No OFD packet to send [00:14:53]accept exits with 8 [00:14:53]New connection [00:14:53]New thread 3067198820 created [00:14:53]Thread 3067055460 joined [00:14:53]Waiting for new connection... [00:14:53] Sock 8.Parse request [00:14:53]Sock 8.Check first char [00:14:53]Sock 8.First char is OK [00:14:53]request: POST /json_proto HTTP/1.0 [00:14:53]Method: POST [00:14:53]URL: /json_proto [00:14:53]Method is POST - this is cgi request [00:14:53]url: /json_proto [00:14:53]query_string will be loaded in cgi processing [00:14:53]execute_cgi json_proto POST (null) [00:14:53]execute_cgi path=json_proto method=POST [00:14:53]POST find Content-Length [00:14:53]Host: 172.17.42.131:8080 [00:14:53]Content-Length: 284 [00:14:53]Content-Type: application/json [00:14:53] [00:14:53]POST finish read [00:14:53]Found Content-Length = 284 [00:14:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "open_shift", "params" : { "operator" : "\u0421\u0443\u0439\u0443\u043D\u0431\u0430\u0439 \u0443\u0443\u043B\u0443 \u0418. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:14:53]execute_script... [00:14:53]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "open_shift", "params" : { "operator" : "\u0421\u0443\u0439\u0443\u043D\u0431\u0430\u0439 \u0443\u0443\u043B\u0443 \u0418. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:14:53]POST & json_proto [00:14:53]process_json_proto [00:14:53]json parsed OK: [00:14:53]protocol is kg_v1.0 [00:14:53]action value=open_shift [00:14:53]process_action open_shift [00:14:53]cmd_open_shift [00:14:53]MH_GetDate [00:14:53]Write to MH i2c: F0 00 00 A8 04 9B [00:14:53]Write i2c OK [00:14:53]MH_I2C_Read... [00:14:53]Read from MH i2c: F0 [00:14:53]MH_I2C_Read... [00:14:53]Read from MH i2c: F0 09 00 [00:14:53]MH_I2C_Read... [00:14:53]Read from MH i2c: F0 09 00 A8 04 00 7E EE 16 67 A0 18 CA 66 75 [00:14:53]GetLastDocTimeStamp 1729555615 [00:14:53]current date 1729556094 [00:14:53]FM_GetShiftState [00:14:53]SAM_PROTO_GetShiftState [00:14:53]wFMCommunicate request_size=4 [00:14:53]MH_SAM_APDU [00:14:53]CAPDU: 80 13 01 00 [00:14:53]Write to MH i2c: E2 08 00 A9 04 80 13 01 00 00 00 00 00 2A [00:14:53]Write i2c OK [00:14:53]MH_I2C_Read... [00:14:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:14:53]Read from MH i2c: E2 [00:14:53]MH_I2C_Read... [00:14:53]Read from MH i2c: E2 0E 00 [00:14:53]MH_I2C_Read... [00:14:53]Read from MH i2c: E2 0E 00 A9 04 00 09 00 00 00 00 00 00 00 00 00 00 90 00 35 [00:14:53]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:14:53]wFMCommunicate OK [00:14:53]SAM_PROTO_GetShiftState done [00:14:53]FM_GetShiftState done [00:14:53]KKMCreateOpenShiftDocument [00:14:53]Load OK [00:14:53]Malloc new data [00:14:53]MH_GetDate [00:14:53]Write to MH i2c: F0 00 00 AA 04 9D [00:14:53]Write i2c OK [00:14:53]MH_I2C_Read... [00:14:53]Read from MH i2c: F0 [00:14:53]MH_I2C_Read... [00:14:53]Read from MH i2c: F0 09 00 [00:14:53]MH_I2C_Read... [00:14:53]Read from MH i2c: F0 09 00 AA 04 00 7E EE 16 67 A0 18 CA 66 77 [00:14:53]Malloc new data [00:14:53]KKMCreateOpenShiftDocument OK [00:14:53]KKMSetOpenShiftData OK [00:14:53]ProcessDocumentItem done err = 0, tmpTLVsize=212 [00:14:53]tlvbuf is 01C0A580 [00:14:53]KKMLoadAndSignOpenShiftData [00:14:53]SAM_PROTO_ProcessDocument [00:14:53]wFMCommunicate request_size=9 [00:14:53]MH_SAM_APDU [00:14:53]CAPDU: 80 15 01 00 04 02 00 D4 00 [00:14:53]Write to MH i2c: E2 0C 00 AB 04 80 15 01 00 04 00 02 00 D4 00 00 00 0C [00:14:53]Write i2c OK [00:14:53]MH_I2C_Read... [00:14:53]*** iso7816_exchange 80 15 01 00... Resp OK rsp.len_out = 0! [00:14:53]Read from MH i2c: E2 [00:14:53]MH_I2C_Read... [00:14:53]Read from MH i2c: E2 03 00 [00:14:53]MH_I2C_Read... [00:14:53]Read from MH i2c: E2 03 00 AB 04 00 90 00 23 [00:14:53]RAPDU: 90 00 [00:14:53]wFMCommunicate OK [00:14:53]wFMCommunicate request_size=23 [00:14:53]MH_SAM_APDU [00:14:53]CAPDU: 80 15 02 00 12 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 [00:14:53]Write to MH i2c: E2 1A 00 AC 04 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 25 [00:14:53]Write i2c OK [00:14:53]MH_I2C_Read... [00:14:53]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:14:53]Read from MH i2c: E2 [00:14:53]MH_I2C_Read... [00:14:53]Read from MH i2c: E2 03 00 [00:14:53]MH_I2C_Read... [00:14:53]Read from MH i2c: E2 03 00 AC 04 00 90 00 24 [00:14:53]RAPDU: 90 00 [00:14:53]wFMCommunicate OK [00:14:53]wFMCommunicate request_size=39 [00:14:53]MH_SAM_APDU [00:14:53]CAPDU: 80 15 02 00 22 FD 03 1E 00 D0 A1 D1 83 D0 B9 D1 83 D0 BD D0 B1 D0 B0 D0 B9 20 D1 83 D1 83 D0 BB D1 83 20 D0 98 2E 20 [00:14:53]Write to MH i2c: E2 2A 00 AD 04 80 15 02 00 22 00 FD 03 1E 00 D0 A1 D1 83 D0 B9 D1 83 D0 BD D0 B1 D0 B0 D0 B9 20 D1 83 D1 83 D0 BB D1 83 20 D0 98 2E 20 00 00 C9 [00:14:53]Write i2c OK [00:14:53]MH_I2C_Read... [00:14:54]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:14:54]Read from MH i2c: E2 [00:14:54]MH_I2C_Read... [00:14:54]Read from MH i2c: E2 03 00 [00:14:54]MH_I2C_Read... [00:14:54]Read from MH i2c: E2 03 00 AD 04 00 90 00 25 [00:14:54]RAPDU: 90 00 [00:14:54]wFMCommunicate OK [00:14:54]wFMCommunicate request_size=92 [00:14:54]MH_SAM_APDU [00:14:54]CAPDU: 80 15 02 00 57 F1 03 53 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 A8 D0 B0 D0 BC D0 B0 D0 BB D0 B4 D1 8B 20 D0 A1 D0 B0 D0 B9 2C 20 D1 83 D0 BB 2E 20 D0 A0 D1 8B D1 81 D0 BA D1 83 D0 BB D0 BE D0 B2 D0 B0 20 31 2C 20 34 31 2E 31 38 31 33 31 38 2C 20 37 32 2E 31 38 38 30 31 35 [00:14:54]Write to MH i2c: E2 5F 00 AE 04 80 15 02 00 57 00 F1 03 53 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 A8 D0 B0 D0 BC D0 B0 D0 BB D0 B4 D1 8B 20 D0 A1 D0 B0 D0 B9 2C 20 D1 83 D0 BB 2E 20 D0 A0 D1 8B D1 81 D0 BA D1 83 D0 BB D0 BE D0 B2 D0 B0 20 31 2C 20 34 31 2E 31 38 31 33 31 38 2C 20 37 32 2E 31 38 38 30 31 35 00 00 56 [00:14:54]Write i2c OK [00:14:54]MH_I2C_Read... [00:14:54]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:14:54]Read from MH i2c: E2 [00:14:54]MH_I2C_Read... [00:14:54]Read from MH i2c: E2 03 00 [00:14:54]MH_I2C_Read... [00:14:54]Read from MH i2c: E2 03 00 AE 04 00 90 00 26 [00:14:54]RAPDU: 90 00 [00:14:54]wFMCommunicate OK [00:14:54]wFMCommunicate request_size=50 [00:14:54]MH_SAM_APDU [00:14:54]CAPDU: 80 15 02 00 2D A3 04 29 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 38 36 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:14:54]Write to MH i2c: E2 35 00 AF 04 80 15 02 00 2D 00 A3 04 29 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 38 36 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 B0 [00:14:54]Write i2c OK [00:14:54]MH_I2C_Read... [00:14:54]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:14:54]Read from MH i2c: E2 [00:14:54]MH_I2C_Read... [00:14:54]Read from MH i2c: E2 03 00 [00:14:54]MH_I2C_Read... [00:14:54]Read from MH i2c: E2 03 00 AF 04 00 90 00 27 [00:14:54]RAPDU: 90 00 [00:14:54]wFMCommunicate OK [00:14:54]wFMCommunicate request_size=13 [00:14:54]MH_SAM_APDU [00:14:54]CAPDU: 80 15 02 00 08 F4 03 04 00 7E EE 16 67 [00:14:54]Write to MH i2c: E2 10 00 B0 04 80 15 02 00 08 00 F4 03 04 00 7E EE 16 67 00 00 28 [00:14:54]Write i2c OK [00:14:54]MH_I2C_Read... [00:14:54]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:14:54]Read from MH i2c: E2 [00:14:54]MH_I2C_Read... [00:14:54]Read from MH i2c: E2 03 00 [00:14:54]MH_I2C_Read... [00:14:54]Read from MH i2c: E2 03 00 B0 04 00 90 00 28 [00:14:54]RAPDU: 90 00 [00:14:54]wFMCommunicate OK [00:14:54]wFMCommunicate request_size=25 [00:14:54]MH_SAM_APDU [00:14:54]CAPDU: 80 15 02 00 14 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 [00:14:54]Write to MH i2c: E2 1C 00 B1 04 80 15 02 00 14 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 00 00 82 [00:14:54]Write i2c OK [00:14:54]MH_I2C_Read... [00:14:54]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:14:54]Read from MH i2c: E2 [00:14:54]MH_I2C_Read... [00:14:54]Read from MH i2c: E2 03 00 [00:14:54]MH_I2C_Read... [00:14:54]Read from MH i2c: E2 03 00 B1 04 00 90 00 29 [00:14:54]RAPDU: 90 00 [00:14:54]wFMCommunicate OK [00:14:54]wFMCommunicate request_size=4 [00:14:54]MH_SAM_APDU [00:14:54]CAPDU: 80 15 03 00 [00:14:54]Write to MH i2c: E2 08 00 B2 04 80 15 03 00 00 00 00 00 37 [00:14:54]Write i2c OK [00:14:54]MH_I2C_Read... [00:14:54]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 53! [00:14:54]Read from MH i2c: E2 [00:14:54]MH_I2C_Read... [00:14:54]Read from MH i2c: E2 38 00 [00:14:54]MH_I2C_Read... [00:14:54]Read from MH i2c: E2 38 00 B2 04 00 33 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 43 DE 02 00 0E 04 04 00 CD 01 00 00 35 04 06 00 4E D9 BA D3 1C 8B 90 00 4A [00:14:54]RAPDU: 33 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 43 DE 02 00 0E 04 04 00 CD 01 00 00 35 04 06 00 4E D9 BA D3 1C 8B 90 00 [00:14:54]wFMCommunicate OK [00:14:54]SAM_PROTO_ProcessDocument answer len = 51 [00:14:54]SAM_PROTO_ProcessDocument done [00:14:54]SetTLVBufToDocument [00:14:54]Processing tag 1209 (04B9) [00:14:54]Malloc new data [00:14:54]Processing tag 1041 (0411) [00:14:54]Processing tag 1040 (0410) [00:14:54]Malloc new data [00:14:54]Processing tag 1038 (040E) [00:14:54]Malloc new data [00:14:54]Processing tag 1077 (0435) [00:14:54]Malloc new data [00:14:54]SetTLVBufToDocument err=0 [00:14:54]KKMLoadAndSignOpenShiftData store KKM data [00:14:54]KKMLoadAndSignOpenShiftData err=0 [00:14:54]Отчет об открытии смены ФФД: 1.0 ИНН: 02508201610067 Кассир: Суйунбай уулу И. Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 Место: АЗС № 86 "Партнер Нефть" 22.10.2024 00:14 Смена: 461 РНМ: 0000000000100030 ЗНМ: 0300000155 ФД: 187971 ФМ: 0000000000965340 ФПД: 86697049267339 [00:14:54]StoreToDocumentArchive [00:14:54]shift 461 fd 187971 [00:14:54]Create dir for shift 0461 [00:14:54]save to /storage/0461/doc_00187971 [00:14:54]save last doc name /storage/0461/doc_00187971 to /storage/kkm_last_doc_name [00:14:54]save OK [00:14:54]Clear old archive folders... [00:14:54]Remove dir /storage/0460 [00:14:54]opendir ok [00:14:54]file . [00:14:54]file .. [00:14:54]file doc_00187536 [00:14:54]remove file /storage/0460/doc_00187536 [00:14:54]file doc_00187537 [00:14:54]remove file /storage/0460/doc_00187537 [00:14:54]file doc_00187538 [00:14:54]remove file /storage/0460/doc_00187538 [00:14:54]file doc_00187539 [00:14:54]remove file /storage/0460/doc_00187539 [00:14:54]file doc_00187540 [00:14:54]remove file /storage/0460/doc_00187540 [00:14:54]file doc_00187541 [00:14:54]remove file /storage/0460/doc_00187541 [00:14:54]file doc_00187542 [00:14:54]remove file /storage/0460/doc_00187542 [00:14:54]file doc_00187543 [00:14:54]remove file /storage/0460/doc_00187543 [00:14:54]file doc_00187544 [00:14:54]remove file /storage/0460/doc_00187544 [00:14:54]file doc_00187545 [00:14:54]remove file /storage/0460/doc_00187545 [00:14:54]file doc_00187546 [00:14:54]remove file /storage/0460/doc_00187546 [00:14:54]file doc_00187547 [00:14:54]remove file /storage/0460/doc_00187547 [00:14:54]file doc_00187548 [00:14:54]remove file /storage/0460/doc_00187548 [00:14:54]file doc_00187549 [00:14:54]remove file /storage/0460/doc_00187549 [00:14:54]file doc_00187550 [00:14:54]remove file /storage/0460/doc_00187550 [00:14:54]file doc_00187551 [00:14:54]remove file /storage/0460/doc_00187551 [00:14:54]file doc_00187552 [00:14:54]remove file /storage/0460/doc_00187552 [00:14:54]file doc_00187553 [00:14:54]remove file /storage/0460/doc_00187553 [00:14:54]file doc_00187554 [00:14:54]remove file /storage/0460/doc_00187554 [00:14:54]file doc_00187555 [00:14:54]remove file /storage/0460/doc_00187555 [00:14:54]file doc_00187556 [00:14:54]remove file /storage/0460/doc_00187556 [00:14:54]file doc_00187557 [00:14:54]remove file /storage/0460/doc_00187557 [00:14:54]file doc_00187558 [00:14:54]remove file /storage/0460/doc_00187558 [00:14:54]file doc_00187559 [00:14:54]remove file /storage/0460/doc_00187559 [00:14:54]file doc_00187560 [00:14:54]remove file /storage/0460/doc_00187560 [00:14:54]file doc_00187561 [00:14:54]remove file /storage/0460/doc_00187561 [00:14:54]file doc_00187562 [00:14:54]remove file /storage/0460/doc_00187562 [00:14:54]file doc_00187563 [00:14:54]remove file /storage/0460/doc_00187563 [00:14:54]file doc_00187564 [00:14:54]remove file /storage/0460/doc_00187564 [00:14:54]file doc_00187565 [00:14:54]remove file /storage/0460/doc_00187565 [00:14:54]file doc_00187566 [00:14:54]remove file /storage/0460/doc_00187566 [00:14:54]file doc_00187567 [00:14:54]remove file /storage/0460/doc_00187567 [00:14:54]file doc_00187568 [00:14:54]remove file /storage/0460/doc_00187568 [00:14:54]file doc_00187569 [00:14:54]remove file /storage/0460/doc_00187569 [00:14:54]file doc_00187570 [00:14:54]remove file /storage/0460/doc_00187570 [00:14:54]file doc_00187571 [00:14:54]remove file /storage/0460/doc_00187571 [00:14:54]file doc_00187572 [00:14:54]remove file /storage/0460/doc_00187572 [00:14:54]file doc_00187573 [00:14:54]remove file /storage/0460/doc_00187573 [00:14:54]file doc_00187574 [00:14:54]remove file /storage/0460/doc_00187574 [00:14:54]file doc_00187575 [00:14:54]remove file /storage/0460/doc_00187575 [00:14:54]file doc_00187576 [00:14:54]remove file /storage/0460/doc_00187576 [00:14:54]file doc_00187577 [00:14:54]remove file /storage/0460/doc_00187577 [00:14:54]file doc_00187578 [00:14:55]remove file /storage/0460/doc_00187578 [00:14:55]file doc_00187579 [00:14:55]remove file /storage/0460/doc_00187579 [00:14:55]file doc_00187580 [00:14:55]remove file /storage/0460/doc_00187580 [00:14:55]file doc_00187581 [00:14:55]remove file /storage/0460/doc_00187581 [00:14:55]file doc_00187582 [00:14:55]remove file /storage/0460/doc_00187582 [00:14:55]file doc_00187583 [00:14:55]remove file /storage/0460/doc_00187583 [00:14:55]file doc_00187584 [00:14:55]remove file /storage/0460/doc_00187584 [00:14:55]file doc_00187585 [00:14:55]remove file /storage/0460/doc_00187585 [00:14:55]file doc_00187586 [00:14:55]remove file /storage/0460/doc_00187586 [00:14:55]file doc_00187587 [00:14:55]remove file /storage/0460/doc_00187587 [00:14:55]file doc_00187588 [00:14:55]remove file /storage/0460/doc_00187588 [00:14:55]file doc_00187589 [00:14:55]remove file /storage/0460/doc_00187589 [00:14:55]file doc_00187590 [00:14:55]remove file /storage/0460/doc_00187590 [00:14:55]file doc_00187591 [00:14:55]remove file /storage/0460/doc_00187591 [00:14:55]file doc_00187592 [00:14:55]remove file /storage/0460/doc_00187592 [00:14:55]file doc_00187593 [00:14:55]remove file /storage/0460/doc_00187593 [00:14:55]file doc_00187594 [00:14:55]remove file /storage/0460/doc_00187594 [00:14:55]file doc_00187595 [00:14:55]remove file /storage/0460/doc_00187595 [00:14:55]file doc_00187596 [00:14:55]remove file /storage/0460/doc_00187596 [00:14:55]file doc_00187597 [00:14:55]remove file /storage/0460/doc_00187597 [00:14:55]file doc_00187598 [00:14:55]remove file /storage/0460/doc_00187598 [00:14:55]file doc_00187599 [00:14:55]remove file /storage/0460/doc_00187599 [00:14:55]file doc_00187600 [00:14:55]remove file /storage/0460/doc_00187600 [00:14:55]file doc_00187601 [00:14:55]remove file /storage/0460/doc_00187601 [00:14:55]file doc_00187602 [00:14:55]remove file /storage/0460/doc_00187602 [00:14:55]file doc_00187603 [00:14:55]remove file /storage/0460/doc_00187603 [00:14:55]file doc_00187604 [00:14:55]remove file /storage/0460/doc_00187604 [00:14:55]file doc_00187605 [00:14:55]remove file /storage/0460/doc_00187605 [00:14:55]file doc_00187606 [00:14:55]remove file /storage/0460/doc_00187606 [00:14:55]file doc_00187607 [00:14:55]remove file /storage/0460/doc_00187607 [00:14:55]file doc_00187608 [00:14:55]remove file /storage/0460/doc_00187608 [00:14:55]file doc_00187609 [00:14:55]remove file /storage/0460/doc_00187609 [00:14:55]file doc_00187610 [00:14:55]remove file /storage/0460/doc_00187610 [00:14:55]file doc_00187611 [00:14:55]remove file /storage/0460/doc_00187611 [00:14:55]file doc_00187612 [00:14:55]remove file /storage/0460/doc_00187612 [00:14:55]file doc_00187613 [00:14:55]remove file /storage/0460/doc_00187613 [00:14:55]file doc_00187614 [00:14:55]remove file /storage/0460/doc_00187614 [00:14:55]file doc_00187615 [00:14:55]remove file /storage/0460/doc_00187615 [00:14:55]file doc_00187616 [00:14:55]remove file /storage/0460/doc_00187616 [00:14:55]file doc_00187617 [00:14:55]remove file /storage/0460/doc_00187617 [00:14:55]file doc_00187618 [00:14:55]remove file /storage/0460/doc_00187618 [00:14:55]file doc_00187619 [00:14:55]remove file /storage/0460/doc_00187619 [00:14:55]file doc_00187620 [00:14:55]remove file /storage/0460/doc_00187620 [00:14:55]file doc_00187621 [00:14:55]remove file /storage/0460/doc_00187621 [00:14:55]file doc_00187622 [00:14:55]remove file /storage/0460/doc_00187622 [00:14:55]file doc_00187623 [00:14:55]remove file /storage/0460/doc_00187623 [00:14:55]file doc_00187624 [00:14:55]remove file /storage/0460/doc_00187624 [00:14:55]file doc_00187625 [00:14:55]remove file /storage/0460/doc_00187625 [00:14:55]file doc_00187626 [00:14:55]remove file /storage/0460/doc_00187626 [00:14:55]file doc_00187627 [00:14:55]remove file /storage/0460/doc_00187627 [00:14:55]file doc_00187628 [00:14:55]remove file /storage/0460/doc_00187628 [00:14:55]file doc_00187629 [00:14:55]remove file /storage/0460/doc_00187629 [00:14:55]file doc_00187630 [00:14:55]remove file /storage/0460/doc_00187630 [00:14:55]file doc_00187631 [00:14:55]remove file /storage/0460/doc_00187631 [00:14:55]file doc_00187632 [00:14:55]remove file /storage/0460/doc_00187632 [00:14:55]file doc_00187633 [00:14:55]remove file /storage/0460/doc_00187633 [00:14:55]file doc_00187634 [00:14:55]remove file /storage/0460/doc_00187634 [00:14:55]file doc_00187635 [00:14:55]remove file /storage/0460/doc_00187635 [00:14:55]file doc_00187636 [00:14:55]remove file /storage/0460/doc_00187636 [00:14:55]file doc_00187637 [00:14:55]remove file /storage/0460/doc_00187637 [00:14:55]file doc_00187638 [00:14:55]remove file /storage/0460/doc_00187638 [00:14:55]file doc_00187639 [00:14:55]remove file /storage/0460/doc_00187639 [00:14:55]file doc_00187640 [00:14:55]remove file /storage/0460/doc_00187640 [00:14:55]file doc_00187641 [00:14:55]remove file /storage/0460/doc_00187641 [00:14:55]file doc_00187642 [00:14:55]remove file /storage/0460/doc_00187642 [00:14:55]file doc_00187643 [00:14:55]remove file /storage/0460/doc_00187643 [00:14:55]file doc_00187644 [00:14:55]remove file /storage/0460/doc_00187644 [00:14:55]file doc_00187645 [00:14:55]remove file /storage/0460/doc_00187645 [00:14:55]file doc_00187646 [00:14:55]remove file /storage/0460/doc_00187646 [00:14:55]file doc_00187647 [00:14:55]remove file /storage/0460/doc_00187647 [00:14:55]file doc_00187648 [00:14:55]remove file /storage/0460/doc_00187648 [00:14:55]file doc_00187649 [00:14:55]remove file /storage/0460/doc_00187649 [00:14:55]file doc_00187650 [00:14:55]remove file /storage/0460/doc_00187650 [00:14:55]file doc_00187651 [00:14:55]remove file /storage/0460/doc_00187651 [00:14:55]file doc_00187652 [00:14:55]remove file /storage/0460/doc_00187652 [00:14:55]file doc_00187653 [00:14:55]remove file /storage/0460/doc_00187653 [00:14:55]file doc_00187654 [00:14:55]remove file /storage/0460/doc_00187654 [00:14:55]file doc_00187655 [00:14:55]remove file /storage/0460/doc_00187655 [00:14:55]file doc_00187656 [00:14:55]remove file /storage/0460/doc_00187656 [00:14:55]file doc_00187657 [00:14:55]remove file /storage/0460/doc_00187657 [00:14:55]file doc_00187658 [00:14:55]remove file /storage/0460/doc_00187658 [00:14:55]file doc_00187659 [00:14:55]remove file /storage/0460/doc_00187659 [00:14:55]file doc_00187660 [00:14:55]remove file /storage/0460/doc_00187660 [00:14:55]file doc_00187661 [00:14:55]remove file /storage/0460/doc_00187661 [00:14:55]file doc_00187662 [00:14:55]remove file /storage/0460/doc_00187662 [00:14:55]file doc_00187663 [00:14:55]remove file /storage/0460/doc_00187663 [00:14:55]file doc_00187664 [00:14:55]remove file /storage/0460/doc_00187664 [00:14:55]file doc_00187665 [00:14:55]remove file /storage/0460/doc_00187665 [00:14:55]file doc_00187666 [00:14:55]remove file /storage/0460/doc_00187666 [00:14:55]file doc_00187667 [00:14:55]remove file /storage/0460/doc_00187667 [00:14:55]file doc_00187668 [00:14:55]remove file /storage/0460/doc_00187668 [00:14:55]file doc_00187669 [00:14:55]remove file /storage/0460/doc_00187669 [00:14:55]file doc_00187670 [00:14:55]remove file /storage/0460/doc_00187670 [00:14:55]file doc_00187671 [00:14:55]remove file /storage/0460/doc_00187671 [00:14:55]file doc_00187672 [00:14:55]remove file /storage/0460/doc_00187672 [00:14:55]file doc_00187673 [00:14:55]remove file /storage/0460/doc_00187673 [00:14:55]file doc_00187674 [00:14:55]remove file /storage/0460/doc_00187674 [00:14:55]file doc_00187675 [00:14:55]remove file /storage/0460/doc_00187675 [00:14:55]file doc_00187676 [00:14:55]remove file /storage/0460/doc_00187676 [00:14:55]file doc_00187677 [00:14:55]remove file /storage/0460/doc_00187677 [00:14:55]file doc_00187678 [00:14:55]remove file /storage/0460/doc_00187678 [00:14:55]file doc_00187679 [00:14:55]remove file /storage/0460/doc_00187679 [00:14:55]file doc_00187680 [00:14:55]remove file /storage/0460/doc_00187680 [00:14:55]file doc_00187681 [00:14:55]remove file /storage/0460/doc_00187681 [00:14:55]file doc_00187682 [00:14:55]remove file /storage/0460/doc_00187682 [00:14:55]file doc_00187683 [00:14:55]remove file /storage/0460/doc_00187683 [00:14:55]file doc_00187684 [00:14:55]remove file /storage/0460/doc_00187684 [00:14:55]file doc_00187685 [00:14:55]remove file /storage/0460/doc_00187685 [00:14:55]file doc_00187686 [00:14:55]remove file /storage/0460/doc_00187686 [00:14:55]file doc_00187687 [00:14:55]remove file /storage/0460/doc_00187687 [00:14:55]file doc_00187688 [00:14:55]remove file /storage/0460/doc_00187688 [00:14:55]file doc_00187689 [00:14:55]remove file /storage/0460/doc_00187689 [00:14:55]file doc_00187690 [00:14:55]remove file /storage/0460/doc_00187690 [00:14:55]file doc_00187691 [00:14:55]remove file /storage/0460/doc_00187691 [00:14:55]file doc_00187692 [00:14:55]remove file /storage/0460/doc_00187692 [00:14:55]file doc_00187693 [00:14:55]remove file /storage/0460/doc_00187693 [00:14:55]file doc_00187694 [00:14:55]remove file /storage/0460/doc_00187694 [00:14:55]file doc_00187695 [00:14:55]remove file /storage/0460/doc_00187695 [00:14:55]file doc_00187696 [00:14:55]remove file /storage/0460/doc_00187696 [00:14:55]file doc_00187697 [00:14:55]remove file /storage/0460/doc_00187697 [00:14:55]file doc_00187698 [00:14:55]remove file /storage/0460/doc_00187698 [00:14:55]file doc_00187699 [00:14:55]remove file /storage/0460/doc_00187699 [00:14:55]file doc_00187700 [00:14:55]remove file /storage/0460/doc_00187700 [00:14:55]file doc_00187701 [00:14:55]remove file /storage/0460/doc_00187701 [00:14:55]file doc_00187702 [00:14:55]remove file /storage/0460/doc_00187702 [00:14:55]file doc_00187703 [00:14:55]remove file /storage/0460/doc_00187703 [00:14:55]file doc_00187704 [00:14:55]remove file /storage/0460/doc_00187704 [00:14:55]file doc_00187705 [00:14:55]remove file /storage/0460/doc_00187705 [00:14:55]file doc_00187706 [00:14:55]remove file /storage/0460/doc_00187706 [00:14:55]file doc_00187707 [00:14:55]remove file /storage/0460/doc_00187707 [00:14:55]file doc_00187708 [00:14:55]remove file /storage/0460/doc_00187708 [00:14:55]file doc_00187709 [00:14:55]remove file /storage/0460/doc_00187709 [00:14:55]file doc_00187710 [00:14:55]remove file /storage/0460/doc_00187710 [00:14:55]file doc_00187711 [00:14:55]remove file /storage/0460/doc_00187711 [00:14:55]file doc_00187712 [00:14:55]remove file /storage/0460/doc_00187712 [00:14:55]file doc_00187713 [00:14:55]remove file /storage/0460/doc_00187713 [00:14:55]file doc_00187714 [00:14:55]remove file /storage/0460/doc_00187714 [00:14:55]file doc_00187715 [00:14:55]remove file /storage/0460/doc_00187715 [00:14:55]file doc_00187716 [00:14:55]remove file /storage/0460/doc_00187716 [00:14:55]file doc_00187717 [00:14:55]remove file /storage/0460/doc_00187717 [00:14:55]file doc_00187718 [00:14:55]remove file /storage/0460/doc_00187718 [00:14:55]file doc_00187719 [00:14:55]remove file /storage/0460/doc_00187719 [00:14:55]file doc_00187720 [00:14:55]remove file /storage/0460/doc_00187720 [00:14:55]file doc_00187721 [00:14:55]remove file /storage/0460/doc_00187721 [00:14:55]file doc_00187722 [00:14:55]remove file /storage/0460/doc_00187722 [00:14:55]file doc_00187723 [00:14:55]remove file /storage/0460/doc_00187723 [00:14:55]file doc_00187724 [00:14:55]remove file /storage/0460/doc_00187724 [00:14:55]file doc_00187725 [00:14:55]remove file /storage/0460/doc_00187725 [00:14:55]file doc_00187726 [00:14:55]remove file /storage/0460/doc_00187726 [00:14:55]file doc_00187727 [00:14:55]remove file /storage/0460/doc_00187727 [00:14:55]file doc_00187728 [00:14:55]remove file /storage/0460/doc_00187728 [00:14:55]file doc_00187729 [00:14:55]remove file /storage/0460/doc_00187729 [00:14:55]file doc_00187730 [00:14:55]remove file /storage/0460/doc_00187730 [00:14:55]file doc_00187731 [00:14:55]remove file /storage/0460/doc_00187731 [00:14:55]file doc_00187732 [00:14:55]remove file /storage/0460/doc_00187732 [00:14:55]file doc_00187733 [00:14:55]remove file /storage/0460/doc_00187733 [00:14:55]file doc_00187734 [00:14:55]remove file /storage/0460/doc_00187734 [00:14:55]file doc_00187735 [00:14:55]remove file /storage/0460/doc_00187735 [00:14:55]file doc_00187736 [00:14:55]remove file /storage/0460/doc_00187736 [00:14:55]file doc_00187737 [00:14:55]remove file /storage/0460/doc_00187737 [00:14:55]file doc_00187738 [00:14:55]remove file /storage/0460/doc_00187738 [00:14:55]file doc_00187739 [00:14:55]remove file /storage/0460/doc_00187739 [00:14:55]file doc_00187740 [00:14:55]remove file /storage/0460/doc_00187740 [00:14:55]file doc_00187741 [00:14:55]remove file /storage/0460/doc_00187741 [00:14:55]file doc_00187742 [00:14:55]remove file /storage/0460/doc_00187742 [00:14:55]file doc_00187743 [00:14:55]remove file /storage/0460/doc_00187743 [00:14:55]file doc_00187744 [00:14:55]remove file /storage/0460/doc_00187744 [00:14:55]file doc_00187745 [00:14:55]remove file /storage/0460/doc_00187745 [00:14:55]file doc_00187746 [00:14:55]remove file /storage/0460/doc_00187746 [00:14:55]file doc_00187747 [00:14:55]remove file /storage/0460/doc_00187747 [00:14:55]file doc_00187748 [00:14:55]remove file /storage/0460/doc_00187748 [00:14:55]file doc_00187749 [00:14:55]remove file /storage/0460/doc_00187749 [00:14:55]file doc_00187750 [00:14:55]remove file /storage/0460/doc_00187750 [00:14:55]file doc_00187751 [00:14:55]remove file /storage/0460/doc_00187751 [00:14:55]file doc_00187752 [00:14:55]remove file /storage/0460/doc_00187752 [00:14:55]file doc_00187753 [00:14:55]remove file /storage/0460/doc_00187753 [00:14:55]file doc_00187754 [00:14:55]remove file /storage/0460/doc_00187754 [00:14:55]file doc_00187755 [00:14:55]remove file /storage/0460/doc_00187755 [00:14:55]file doc_00187756 [00:14:55]remove file /storage/0460/doc_00187756 [00:14:55]file doc_00187757 [00:14:55]remove file /storage/0460/doc_00187757 [00:14:55]file doc_00187758 [00:14:55]remove file /storage/0460/doc_00187758 [00:14:55]file doc_00187759 [00:14:55]remove file /storage/0460/doc_00187759 [00:14:55]file doc_00187760 [00:14:55]remove file /storage/0460/doc_00187760 [00:14:55]file doc_00187761 [00:14:55]remove file /storage/0460/doc_00187761 [00:14:55]file doc_00187762 [00:14:55]remove file /storage/0460/doc_00187762 [00:14:55]file doc_00187763 [00:14:55]remove file /storage/0460/doc_00187763 [00:14:55]file doc_00187764 [00:14:55]remove file /storage/0460/doc_00187764 [00:14:55]file doc_00187765 [00:14:55]remove file /storage/0460/doc_00187765 [00:14:55]file doc_00187766 [00:14:55]remove file /storage/0460/doc_00187766 [00:14:55]file doc_00187767 [00:14:55]remove file /storage/0460/doc_00187767 [00:14:55]file doc_00187768 [00:14:55]remove file /storage/0460/doc_00187768 [00:14:55]file doc_00187769 [00:14:55]remove file /storage/0460/doc_00187769 [00:14:55]file doc_00187770 [00:14:55]remove file /storage/0460/doc_00187770 [00:14:55]file doc_00187771 [00:14:55]remove file /storage/0460/doc_00187771 [00:14:55]file doc_00187772 [00:14:55]remove file /storage/0460/doc_00187772 [00:14:55]file doc_00187773 [00:14:55]remove file /storage/0460/doc_00187773 [00:14:55]file doc_00187774 [00:14:55]remove file /storage/0460/doc_00187774 [00:14:55]file doc_00187775 [00:14:55]remove file /storage/0460/doc_00187775 [00:14:55]file doc_00187776 [00:14:55]remove file /storage/0460/doc_00187776 [00:14:55]file doc_00187777 [00:14:55]remove file /storage/0460/doc_00187777 [00:14:55]file doc_00187778 [00:14:55]remove file /storage/0460/doc_00187778 [00:14:55]file doc_00187779 [00:14:55]remove file /storage/0460/doc_00187779 [00:14:55]file doc_00187780 [00:14:55]remove file /storage/0460/doc_00187780 [00:14:55]file doc_00187781 [00:14:55]remove file /storage/0460/doc_00187781 [00:14:55]file doc_00187782 [00:14:55]remove file /storage/0460/doc_00187782 [00:14:55]file doc_00187783 [00:14:55]remove file /storage/0460/doc_00187783 [00:14:55]file doc_00187784 [00:14:55]remove file /storage/0460/doc_00187784 [00:14:55]file doc_00187785 [00:14:55]remove file /storage/0460/doc_00187785 [00:14:55]file doc_00187786 [00:14:55]remove file /storage/0460/doc_00187786 [00:14:55]file doc_00187787 [00:14:55]remove file /storage/0460/doc_00187787 [00:14:55]file doc_00187788 [00:14:55]remove file /storage/0460/doc_00187788 [00:14:55]file doc_00187789 [00:14:55]remove file /storage/0460/doc_00187789 [00:14:55]file doc_00187790 [00:14:55]remove file /storage/0460/doc_00187790 [00:14:55]file doc_00187791 [00:14:55]remove file /storage/0460/doc_00187791 [00:14:55]file doc_00187792 [00:14:55]remove file /storage/0460/doc_00187792 [00:14:55]file doc_00187793 [00:14:55]remove file /storage/0460/doc_00187793 [00:14:55]file doc_00187794 [00:14:56]remove file /storage/0460/doc_00187794 [00:14:56]file doc_00187795 [00:14:56]remove file /storage/0460/doc_00187795 [00:14:56]file doc_00187796 [00:14:56]remove file /storage/0460/doc_00187796 [00:14:56]file doc_00187797 [00:14:56]remove file /storage/0460/doc_00187797 [00:14:56]file doc_00187798 [00:14:56]remove file /storage/0460/doc_00187798 [00:14:56]file doc_00187799 [00:14:56]remove file /storage/0460/doc_00187799 [00:14:56]file doc_00187800 [00:14:56]remove file /storage/0460/doc_00187800 [00:14:56]file doc_00187801 [00:14:56]remove file /storage/0460/doc_00187801 [00:14:56]file doc_00187802 [00:14:56]remove file /storage/0460/doc_00187802 [00:14:56]file doc_00187803 [00:14:56]remove file /storage/0460/doc_00187803 [00:14:56]file doc_00187804 [00:14:56]remove file /storage/0460/doc_00187804 [00:14:56]file doc_00187805 [00:14:56]remove file /storage/0460/doc_00187805 [00:14:56]file doc_00187806 [00:14:56]remove file /storage/0460/doc_00187806 [00:14:56]file doc_00187807 [00:14:56]remove file /storage/0460/doc_00187807 [00:14:56]file doc_00187808 [00:14:56]remove file /storage/0460/doc_00187808 [00:14:56]file doc_00187809 [00:14:56]remove file /storage/0460/doc_00187809 [00:14:56]file doc_00187810 [00:14:56]remove file /storage/0460/doc_00187810 [00:14:56]file doc_00187811 [00:14:56]remove file /storage/0460/doc_00187811 [00:14:56]file doc_00187812 [00:14:56]remove file /storage/0460/doc_00187812 [00:14:56]file doc_00187813 [00:14:56]remove file /storage/0460/doc_00187813 [00:14:56]file doc_00187814 [00:14:56]remove file /storage/0460/doc_00187814 [00:14:56]file doc_00187815 [00:14:56]remove file /storage/0460/doc_00187815 [00:14:56]file doc_00187816 [00:14:56]remove file /storage/0460/doc_00187816 [00:14:56]file doc_00187817 [00:14:56]remove file /storage/0460/doc_00187817 [00:14:56]file doc_00187818 [00:14:56]remove file /storage/0460/doc_00187818 [00:14:56]file doc_00187819 [00:14:56]remove file /storage/0460/doc_00187819 [00:14:56]file doc_00187820 [00:14:56]remove file /storage/0460/doc_00187820 [00:14:56]file doc_00187821 [00:14:56]remove file /storage/0460/doc_00187821 [00:14:56]file doc_00187822 [00:14:56]remove file /storage/0460/doc_00187822 [00:14:56]file doc_00187823 [00:14:56]remove file /storage/0460/doc_00187823 [00:14:56]file doc_00187824 [00:14:56]remove file /storage/0460/doc_00187824 [00:14:56]file doc_00187825 [00:14:56]remove file /storage/0460/doc_00187825 [00:14:56]file doc_00187826 [00:14:56]remove file /storage/0460/doc_00187826 [00:14:56]file doc_00187827 [00:14:56]remove file /storage/0460/doc_00187827 [00:14:56]file doc_00187828 [00:14:56]remove file /storage/0460/doc_00187828 [00:14:56]file doc_00187829 [00:14:56]remove file /storage/0460/doc_00187829 [00:14:56]file doc_00187830 [00:14:56]remove file /storage/0460/doc_00187830 [00:14:56]file doc_00187831 [00:14:56]remove file /storage/0460/doc_00187831 [00:14:56]file doc_00187832 [00:14:56]remove file /storage/0460/doc_00187832 [00:14:56]file doc_00187833 [00:14:56]remove file /storage/0460/doc_00187833 [00:14:56]file doc_00187834 [00:14:56]remove file /storage/0460/doc_00187834 [00:14:56]file doc_00187835 [00:14:56]remove file /storage/0460/doc_00187835 [00:14:56]file doc_00187836 [00:14:56]remove file /storage/0460/doc_00187836 [00:14:56]file doc_00187837 [00:14:56]remove file /storage/0460/doc_00187837 [00:14:56]file doc_00187838 [00:14:56]remove file /storage/0460/doc_00187838 [00:14:56]file doc_00187839 [00:14:56]remove file /storage/0460/doc_00187839 [00:14:56]file doc_00187840 [00:14:56]remove file /storage/0460/doc_00187840 [00:14:56]file doc_00187841 [00:14:56]remove file /storage/0460/doc_00187841 [00:14:56]file doc_00187842 [00:14:56]remove file /storage/0460/doc_00187842 [00:14:56]file doc_00187843 [00:14:56]remove file /storage/0460/doc_00187843 [00:14:56]file doc_00187844 [00:14:56]remove file /storage/0460/doc_00187844 [00:14:56]file doc_00187845 [00:14:56]remove file /storage/0460/doc_00187845 [00:14:56]file doc_00187846 [00:14:56]remove file /storage/0460/doc_00187846 [00:14:56]file doc_00187847 [00:14:56]remove file /storage/0460/doc_00187847 [00:14:56]file doc_00187848 [00:14:56]remove file /storage/0460/doc_00187848 [00:14:56]file doc_00187849 [00:14:56]remove file /storage/0460/doc_00187849 [00:14:56]file doc_00187850 [00:14:56]remove file /storage/0460/doc_00187850 [00:14:56]file doc_00187851 [00:14:56]remove file /storage/0460/doc_00187851 [00:14:56]file doc_00187852 [00:14:56]remove file /storage/0460/doc_00187852 [00:14:56]file doc_00187853 [00:14:56]remove file /storage/0460/doc_00187853 [00:14:56]file doc_00187854 [00:14:56]remove file /storage/0460/doc_00187854 [00:14:56]file doc_00187855 [00:14:56]remove file /storage/0460/doc_00187855 [00:14:56]file doc_00187856 [00:14:56]remove file /storage/0460/doc_00187856 [00:14:56]file doc_00187857 [00:14:56]remove file /storage/0460/doc_00187857 [00:14:56]file doc_00187858 [00:14:56]remove file /storage/0460/doc_00187858 [00:14:56]file doc_00187859 [00:14:56]remove file /storage/0460/doc_00187859 [00:14:56]file doc_00187860 [00:14:56]remove file /storage/0460/doc_00187860 [00:14:56]file doc_00187861 [00:14:56]remove file /storage/0460/doc_00187861 [00:14:56]file doc_00187862 [00:14:56]remove file /storage/0460/doc_00187862 [00:14:56]file doc_00187863 [00:14:56]remove file /storage/0460/doc_00187863 [00:14:56]file doc_00187864 [00:14:56]remove file /storage/0460/doc_00187864 [00:14:56]file doc_00187865 [00:14:56]remove file /storage/0460/doc_00187865 [00:14:56]file doc_00187866 [00:14:56]remove file /storage/0460/doc_00187866 [00:14:56]file doc_00187867 [00:14:56]remove file /storage/0460/doc_00187867 [00:14:56]file doc_00187868 [00:14:56]remove file /storage/0460/doc_00187868 [00:14:56]file doc_00187869 [00:14:56]remove file /storage/0460/doc_00187869 [00:14:56]file doc_00187870 [00:14:56]remove file /storage/0460/doc_00187870 [00:14:56]file doc_00187871 [00:14:56]remove file /storage/0460/doc_00187871 [00:14:56]file doc_00187872 [00:14:56]remove file /storage/0460/doc_00187872 [00:14:56]file doc_00187873 [00:14:56]remove file /storage/0460/doc_00187873 [00:14:56]file doc_00187874 [00:14:56]remove file /storage/0460/doc_00187874 [00:14:56]file doc_00187875 [00:14:56]remove file /storage/0460/doc_00187875 [00:14:56]file doc_00187876 [00:14:56]remove file /storage/0460/doc_00187876 [00:14:56]file doc_00187877 [00:14:56]remove file /storage/0460/doc_00187877 [00:14:56]file doc_00187878 [00:14:56]remove file /storage/0460/doc_00187878 [00:14:56]file doc_00187879 [00:14:56]remove file /storage/0460/doc_00187879 [00:14:56]file doc_00187880 [00:14:56]remove file /storage/0460/doc_00187880 [00:14:56]file doc_00187881 [00:14:56]remove file /storage/0460/doc_00187881 [00:14:56]file doc_00187882 [00:14:56]remove file /storage/0460/doc_00187882 [00:14:56]file doc_00187883 [00:14:56]remove file /storage/0460/doc_00187883 [00:14:56]file doc_00187884 [00:14:56]remove file /storage/0460/doc_00187884 [00:14:56]file doc_00187885 [00:14:56]remove file /storage/0460/doc_00187885 [00:14:56]file doc_00187886 [00:14:56]remove file /storage/0460/doc_00187886 [00:14:56]file doc_00187887 [00:14:56]remove file /storage/0460/doc_00187887 [00:14:56]file doc_00187888 [00:14:56]remove file /storage/0460/doc_00187888 [00:14:56]file doc_00187889 [00:14:56]remove file /storage/0460/doc_00187889 [00:14:56]file doc_00187890 [00:14:56]remove file /storage/0460/doc_00187890 [00:14:56]file doc_00187891 [00:14:56]remove file /storage/0460/doc_00187891 [00:14:56]file doc_00187892 [00:14:56]remove file /storage/0460/doc_00187892 [00:14:56]file doc_00187893 [00:14:56]remove file /storage/0460/doc_00187893 [00:14:56]file doc_00187894 [00:14:56]remove file /storage/0460/doc_00187894 [00:14:56]file doc_00187895 [00:14:56]remove file /storage/0460/doc_00187895 [00:14:56]file doc_00187896 [00:14:56]remove file /storage/0460/doc_00187896 [00:14:56]file doc_00187897 [00:14:56]remove file /storage/0460/doc_00187897 [00:14:56]file doc_00187898 [00:14:56]remove file /storage/0460/doc_00187898 [00:14:56]file doc_00187899 [00:14:56]remove file /storage/0460/doc_00187899 [00:14:56]file doc_00187900 [00:14:56]remove file /storage/0460/doc_00187900 [00:14:56]file doc_00187901 [00:14:56]remove file /storage/0460/doc_00187901 [00:14:56]file doc_00187902 [00:14:56]remove file /storage/0460/doc_00187902 [00:14:56]file doc_00187903 [00:14:56]remove file /storage/0460/doc_00187903 [00:14:56]file doc_00187904 [00:14:56]remove file /storage/0460/doc_00187904 [00:14:56]file doc_00187905 [00:14:56]remove file /storage/0460/doc_00187905 [00:14:56]file doc_00187906 [00:14:56]remove file /storage/0460/doc_00187906 [00:14:56]file doc_00187907 [00:14:56]remove file /storage/0460/doc_00187907 [00:14:56]file doc_00187908 [00:14:56]remove file /storage/0460/doc_00187908 [00:14:56]file doc_00187909 [00:14:56]remove file /storage/0460/doc_00187909 [00:14:56]file doc_00187910 [00:14:56]remove file /storage/0460/doc_00187910 [00:14:56]file doc_00187911 [00:14:56]remove file /storage/0460/doc_00187911 [00:14:56]file doc_00187912 [00:14:56]remove file /storage/0460/doc_00187912 [00:14:56]file doc_00187913 [00:14:56]remove file /storage/0460/doc_00187913 [00:14:56]file doc_00187914 [00:14:56]remove file /storage/0460/doc_00187914 [00:14:56]file doc_00187915 [00:14:56]remove file /storage/0460/doc_00187915 [00:14:56]file doc_00187916 [00:14:56]remove file /storage/0460/doc_00187916 [00:14:56]file doc_00187917 [00:14:56]remove file /storage/0460/doc_00187917 [00:14:56]file doc_00187918 [00:14:56]remove file /storage/0460/doc_00187918 [00:14:56]file doc_00187919 [00:14:56]remove file /storage/0460/doc_00187919 [00:14:56]file doc_00187920 [00:14:56]remove file /storage/0460/doc_00187920 [00:14:56]file doc_00187921 [00:14:56]remove file /storage/0460/doc_00187921 [00:14:56]file doc_00187922 [00:14:56]remove file /storage/0460/doc_00187922 [00:14:56]file doc_00187923 [00:14:56]remove file /storage/0460/doc_00187923 [00:14:56]file doc_00187924 [00:14:56]remove file /storage/0460/doc_00187924 [00:14:56]file doc_00187925 [00:14:56]remove file /storage/0460/doc_00187925 [00:14:56]file doc_00187926 [00:14:56]remove file /storage/0460/doc_00187926 [00:14:56]file doc_00187927 [00:14:56]remove file /storage/0460/doc_00187927 [00:14:56]file doc_00187928 [00:14:56]remove file /storage/0460/doc_00187928 [00:14:56]file doc_00187929 [00:14:56]remove file /storage/0460/doc_00187929 [00:14:56]file doc_00187930 [00:14:56]remove file /storage/0460/doc_00187930 [00:14:56]file doc_00187931 [00:14:56]remove file /storage/0460/doc_00187931 [00:14:56]file doc_00187932 [00:14:56]remove file /storage/0460/doc_00187932 [00:14:56]file doc_00187933 [00:14:56]remove file /storage/0460/doc_00187933 [00:14:56]file doc_00187934 [00:14:56]remove file /storage/0460/doc_00187934 [00:14:56]file doc_00187935 [00:14:56]remove file /storage/0460/doc_00187935 [00:14:56]file doc_00187936 [00:14:56]remove file /storage/0460/doc_00187936 [00:14:56]file doc_00187937 [00:14:56]remove file /storage/0460/doc_00187937 [00:14:56]file doc_00187938 [00:14:56]remove file /storage/0460/doc_00187938 [00:14:56]file doc_00187939 [00:14:56]remove file /storage/0460/doc_00187939 [00:14:56]file doc_00187940 [00:14:56]remove file /storage/0460/doc_00187940 [00:14:56]file doc_00187941 [00:14:56]remove file /storage/0460/doc_00187941 [00:14:56]file doc_00187942 [00:14:56]remove file /storage/0460/doc_00187942 [00:14:56]file doc_00187943 [00:14:56]remove file /storage/0460/doc_00187943 [00:14:56]file doc_00187944 [00:14:56]remove file /storage/0460/doc_00187944 [00:14:56]file doc_00187945 [00:14:56]remove file /storage/0460/doc_00187945 [00:14:56]file doc_00187946 [00:14:56]remove file /storage/0460/doc_00187946 [00:14:56]file doc_00187947 [00:14:56]remove file /storage/0460/doc_00187947 [00:14:56]file doc_00187948 [00:14:56]remove file /storage/0460/doc_00187948 [00:14:56]file doc_00187949 [00:14:56]remove file /storage/0460/doc_00187949 [00:14:56]file doc_00187950 [00:14:56]remove file /storage/0460/doc_00187950 [00:14:56]file doc_00187951 [00:14:56]remove file /storage/0460/doc_00187951 [00:14:56]file doc_00187952 [00:14:56]remove file /storage/0460/doc_00187952 [00:14:56]file doc_00187953 [00:14:56]remove file /storage/0460/doc_00187953 [00:14:56]file doc_00187954 [00:14:56]remove file /storage/0460/doc_00187954 [00:14:56]file doc_00187955 [00:14:56]remove file /storage/0460/doc_00187955 [00:14:56]file doc_00187956 [00:14:56]remove file /storage/0460/doc_00187956 [00:14:56]file doc_00187957 [00:14:56]remove file /storage/0460/doc_00187957 [00:14:56]file doc_00187958 [00:14:56]remove file /storage/0460/doc_00187958 [00:14:56]file doc_00187959 [00:14:56]remove file /storage/0460/doc_00187959 [00:14:56]file doc_00187960 [00:14:56]remove file /storage/0460/doc_00187960 [00:14:56]file doc_00187961 [00:14:56]remove file /storage/0460/doc_00187961 [00:14:56]file doc_00187962 [00:14:56]remove file /storage/0460/doc_00187962 [00:14:56]file doc_00187963 [00:14:56]remove file /storage/0460/doc_00187963 [00:14:56]file doc_00187964 [00:14:56]remove file /storage/0460/doc_00187964 [00:14:56]file doc_00187965 [00:14:56]remove file /storage/0460/doc_00187965 [00:14:56]file doc_00187966 [00:14:56]remove file /storage/0460/doc_00187966 [00:14:56]file doc_00187967 [00:14:56]remove file /storage/0460/doc_00187967 [00:14:56]file doc_00187968 [00:14:56]remove file /storage/0460/doc_00187968 [00:14:56]file doc_00187969 [00:14:56]remove file /storage/0460/doc_00187969 [00:14:56]file doc_00187970 [00:14:56]remove file /storage/0460/doc_00187970 [00:14:56]remove dir /storage/0460 [00:14:56]ProcessDocumentItem done err = 0, tmpTLVsize=263 [00:14:56]tlvbuf is 01B99750 [00:14:56]SAM_PROTO_ClearQueue [00:14:56]wFMCommunicate request_size=4 [00:14:56]MH_SAM_APDU [00:14:56]CAPDU: 80 09 00 00 [00:14:57]Write to MH i2c: E2 08 00 B3 04 80 09 00 00 00 00 00 00 29 [00:14:57]Write i2c OK [00:14:57]MH_I2C_Read... [00:14:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:14:57]Read from MH i2c: E2 [00:14:57]MH_I2C_Read... [00:14:57]Read from MH i2c: E2 03 00 [00:14:57]MH_I2C_Read... [00:14:57]Read from MH i2c: E2 03 00 B3 04 00 90 00 2B [00:14:57]RAPDU: 90 00 [00:14:57]wFMCommunicate OK [00:14:57]SAM_PROTO_ClearQueue done [00:14:57]KKMCreateOFDPacket [00:14:57]OFDProtocolAddRootSTLVToBuf [00:14:57]FM_MakeSignedData [00:14:57]FM_MakeSignedData [00:14:57]SAM_PROTO_SignData [00:14:57]wFMCommunicate request_size=4 [00:14:57]MH_SAM_APDU [00:14:57]CAPDU: 80 0D 01 02 [00:14:57]Write to MH i2c: E2 08 00 B4 04 80 0D 01 02 00 00 00 00 31 [00:14:57]Write i2c OK [00:14:57]MH_I2C_Read... [00:14:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:14:57]Read from MH i2c: E2 [00:14:57]MH_I2C_Read... [00:14:57]Read from MH i2c: E2 03 00 [00:14:57]MH_I2C_Read... [00:14:57]Read from MH i2c: E2 03 00 B4 04 00 90 00 2C [00:14:57]RAPDU: 90 00 [00:14:57]wFMCommunicate OK [00:14:57]wFMCommunicate request_size=255 [00:14:57]MH_SAM_APDU [00:14:57]CAPDU: 80 0D 02 02 FA 02 00 07 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 1E 00 D0 A1 D1 83 D0 B9 D1 83 D0 BD D0 B1 D0 B0 D0 B9 20 D1 83 D1 83 D0 BB D1 83 20 D0 98 2E 20 F1 03 53 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 A8 D0 B0 D0 BC D0 B0 D0 BB D0 B4 D1 8B 20 D0 A1 D0 B0 D0 B9 2C 20 D1 83 D0 BB 2E 20 D0 A0 D1 8B D1 81 D0 BA D1 83 D0 BB D0 BE D0 B2 D0 B0 20 31 2C 20 34 31 2E 31 38 31 33 31 38 2C 20 37 32 2E 31 38 38 30 31 35 A3 04 29 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 38 36 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 7E EE 16 67 0E 04 04 00 CD 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 43 DE 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 [00:14:57]Write to MH i2c: E2 02 01 B5 04 80 0D 02 02 FA 00 02 00 07 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 1E 00 D0 A1 D1 83 D0 B9 D1 83 D0 BD D0 B1 D0 B0 D0 B9 20 D1 83 D1 83 D0 BB D1 83 20 D0 98 2E 20 F1 03 53 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 A8 D0 B0 D0 BC D0 B0 D0 BB D0 B4 D1 8B 20 D0 A1 D0 B0 D0 B9 2C 20 D1 83 D0 BB 2E 20 D0 A0 D1 8B D1 81 D0 BA D1 83 D0 BB D0 BE D0 B2 D0 B0 20 31 2C 20 34 31 2E 31 38 31 33 31 38 2C 20 37 32 2E 31 38 38 30 31 35 A3 04 29 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 38 36 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 7E EE 16 67 0E 04 04 00 CD 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 43 DE 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 00 00 AC [00:14:57]Write i2c OK [00:14:57]MH_I2C_Read... [00:14:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:14:57]Read from MH i2c: E2 [00:14:57]MH_I2C_Read... [00:14:57]Read from MH i2c: E2 03 00 [00:14:57]MH_I2C_Read... [00:14:57]Read from MH i2c: E2 03 00 B5 04 00 90 00 2D [00:14:57]RAPDU: 90 00 [00:14:57]wFMCommunicate OK [00:14:57]wFMCommunicate request_size=22 [00:14:57]MH_SAM_APDU [00:14:57]CAPDU: 80 0D 02 02 11 30 39 36 35 33 34 30 35 04 06 00 4E D9 BA D3 1C 8B [00:14:57]Write to MH i2c: E2 19 00 B6 04 80 0D 02 02 11 00 30 39 36 35 33 34 30 35 04 06 00 4E D9 BA D3 1C 8B 00 00 5B [00:14:57]Write i2c OK [00:14:57]MH_I2C_Read... [00:14:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:14:57]Read from MH i2c: E2 [00:14:57]MH_I2C_Read... [00:14:57]Read from MH i2c: E2 03 00 [00:14:57]MH_I2C_Read... [00:14:57]Read from MH i2c: E2 03 00 B6 04 00 90 00 2E [00:14:57]RAPDU: 90 00 [00:14:57]wFMCommunicate OK [00:14:57]wFMCommunicate request_size=4 [00:14:57]MH_SAM_APDU [00:14:57]CAPDU: 80 0D 03 02 [00:14:57]Write to MH i2c: E2 08 00 B7 04 80 0D 03 02 00 00 00 00 36 [00:14:57]Write i2c OK [00:14:57]MH_I2C_Read... [00:14:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:14:57]Read from MH i2c: E2 [00:14:57]MH_I2C_Read... [00:14:57]Read from MH i2c: E2 0B 00 [00:14:57]MH_I2C_Read... [00:14:57]Read from MH i2c: E2 0B 00 B7 04 00 0E C3 F5 A5 0E 6C 57 23 90 00 96 [00:14:57]RAPDU: 0E C3 F5 A5 0E 6C 57 23 90 00 [00:14:57]wFMCommunicate OK [00:14:57]SAM_PROTO_SignData done [00:14:57]FM_MakeSignedData done [00:14:57]CreateOFDProtocolMessage [00:14:57]wFMCommunicate request_size=4 [00:14:57]MH_SAM_APDU [00:14:57]CAPDU: 80 11 00 00 [00:14:57]Write to MH i2c: E2 08 00 B8 04 80 11 00 00 00 00 00 00 36 [00:14:57]Write i2c OK [00:14:57]MH_I2C_Read... [00:14:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:14:57]Read from MH i2c: E2 [00:14:57]MH_I2C_Read... [00:14:57]Read from MH i2c: E2 17 00 [00:14:57]MH_I2C_Read... [00:14:57]Read from MH i2c: E2 17 00 B8 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 84 [00:14:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [00:14:57]wFMCommunicate OK [00:14:57]CreateOFDProtocolMessage done [00:14:57]OFDSenderStorePacket 187971 [00:14:57]StoreOFDPacket docnum=187971 [00:14:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 1B 01 00 00 00 B3 13 01 95 06 5A 02 01 00 02 00 07 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 1E 00 D0 A1 D1 83 D0 B9 D1 83 D0 BD D0 B1 D0 B0 D0 B9 20 D1 83 D1 83 D0 BB D1 83 20 D0 98 2E 20 F1 03 53 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 A8 D0 B0 D0 BC D0 B0 D0 BB D0 B4 D1 8B 20 D0 A1 D0 B0 D0 B9 2C 20 D1 83 D0 BB 2E 20 D0 A0 D1 8B D1 81 D0 BA D1 83 D0 BB D0 BE D0 B2 D0 B0 20 31 2C 20 34 31 2E 31 38 31 33 31 38 2C 20 37 32 2E 31 38 38 30 31 35 A3 04 29 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 38 36 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 7E EE 16 67 0E 04 04 00 CD 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 43 DE 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 35 04 06 00 4E D9 BA D3 1C 8B 0E C3 F5 A5 0E 6C 57 23 [00:14:57]CheckFolder [00:14:57]dirname=/storage/ofd_packets [00:14:57]CheckFolder done [00:14:57]ProducePacketName [00:14:57]name=ofd_packets/00187971 [00:14:57]NVStorageSaveData ofd_packets/00187971 [00:14:57]File name is /storage/ofd_packets/00187971 [00:14:57]Write 313 bytes [00:14:57]NVStorageSaveData done [00:14:57]OFDSenderStorePacket done [00:14:57]KKMCreateOFDPacket done [00:14:57]NVStorageSaveData kkm_last_timestamp [00:14:57]File name is /storage/kkm_last_timestamp [00:14:57]Write 4 bytes [00:14:57]NVStorageSaveData done [00:14:57]ExternCall_PrintAddStr [00:14:57]wPrintStart [00:14:57]Write to MH i2c: 01 00 00 B9 04 BD [00:14:57]Write i2c OK [00:14:57]MH_I2C_Read... [00:14:57]Read from MH i2c: 01 [00:14:57]MH_I2C_Read... [00:14:57]Read from MH i2c: 01 07 00 [00:14:57]MH_I2C_Read... [00:14:57]Read from MH i2c: 01 07 00 B9 04 00 00 00 00 00 FF 0F D2 [00:14:57]RasterBufferAndPrint [00:14:57]line Отчет об открытии смены [00:14:57]line ФФД: 1.0 [00:14:57]line ИНН: 02508201610067 [00:14:57]line Кассир: Суйунбай уулу И. [00:14:57]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [00:14:57]line Место: АЗС № 86 "Партнер Нефть" [00:14:57]line 22.10.2024 00:14 [00:14:57]line Смена: 461 [00:14:57]line РНМ: 0000000000100030 [00:14:57]line ЗНМ: 0300000155 [00:14:57]line ФД: 187971 [00:14:57]line ФМ: 0000000000965340 [00:14:57]line ФПД: 86697049267339 [00:14:57]written 0, free lines is 4095 [00:14:57]OFD Sender: Processing packet 187971 [packets to send 1062, broken 1061] [00:14:57]ProducePacketName [00:14:57]name=ofd_packets/00187971 [00:14:57]OFD Sender: To server: pG, [00:14:57]CommunicateWithHost lk.salyk.kg:30040 [00:14:57]ConnectInit lk.salyk.kg [00:14:57]Write to MH i2c: 01 00 00 CB 04 CF [00:14:57]Write i2c OK [00:14:57]MH_I2C_Read... [00:14:57]Read from MH i2c: 01 [00:14:57]MH_I2C_Read... [00:14:57]Read from MH i2c: 01 07 00 [00:14:57]MH_I2C_Read... [00:14:57]Read from MH i2c: 01 07 00 CB 04 00 00 00 00 00 54 0E 38 [00:14:57]RasterBufferAndPrint [00:14:57]line [00:14:57]line [00:14:57]line [00:14:57]line [00:14:57]line [00:14:57]written 0, free lines is 3680 [00:14:57]MH_Cut [00:14:57]Write to MH i2c: D1 01 00 D2 04 01 A8 [00:14:57]Write i2c OK [00:14:57]MH_I2C_Read... [00:14:57]Read from MH i2c: D1 [00:14:57]MH_I2C_Read... [00:14:57]Read from MH i2c: D1 01 00 [00:14:57]MH_I2C_Read... [00:14:57]Read from MH i2c: D1 01 00 D2 04 00 A7 [00:14:57]Write to MH i2c: 01 00 00 D3 04 D7 [00:14:57]Write i2c OK [00:14:57]MH_I2C_Read... [00:14:58]Connected sock=10 [00:14:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 1B 01 00 00 00 B3 13 01 95 06 5A 02 01 00 02 00 07 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 1E 00 D0 A1 D1 83 D0 B9 D1 83 D0 BD D0 B1 D0 B0 D0 B9 20 D1 83 D1 83 D0 BB D1 83 20 D0 98 2E 20 F1 03 53 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 A8 D0 B0 D0 BC D0 B0 D0 BB D0 B4 D1 8B 20 D0 A1 D0 B0 D0 B9 2C 20 D1 83 D0 BB 2E 20 D0 A0 D1 8B D1 81 D0 BA D1 83 D0 BB D0 BE D0 B2 D0 B0 20 31 2C 20 34 31 2E 31 38 31 33 31 38 2C 20 37 32 2E 31 38 38 30 31 35 A3 04 29 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 38 36 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 7E EE 16 67 0E 04 04 00 CD 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 43 DE 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 35 04 06 00 4E D9 BA D3 1C 8B 0E C3 F5 A5 0E 6C 57 23 [00:14:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 36 F7 47 00 1A 12 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 43 DE 02 00 F4 03 04 00 6F 98 16 67 B6 04 01 00 00 04 1B A7 96 BE E0 AB BF [00:14:58]CommunicateWithHost err = 0 [00:14:58]CheckOFDResponse [00:14:58]1017 (14) - 77093643461234 [00:14:58]1041 (16) - 0000000000965340 [00:14:58]1040 (4) - 187971 [00:14:58]1012 (4) - 21.10.2024 18:07 [00:14:58]1206 (1) - 0 [00:14:58]OFD Sender: Remove packet 187971 [00:14:58]ProducePacketName [00:14:58]name=ofd_packets/00187971 [00:14:58]NVStorageDeleteData [00:14:58]*** Cut start [00:14:58]*** Partial cut [00:14:58]*** CUTSNS_PIN = 1 [00:14:58]*** CUTSNS_PIN = 0 [00:14:58]*** Brake cut motor [00:14:59]OFD Sender: No OFD packet to send [00:14:59]Read from MH i2c: 01 [00:14:59]MH_I2C_Read... [00:14:59]*** Stop cut motor [00:14:59]*** Cut end [00:14:59]Read from MH i2c: 01 07 00 [00:14:59]MH_I2C_Read... [00:14:59]Read from MH i2c: 01 07 00 D3 04 00 00 00 00 00 FF 0F EC [00:14:59]process_action open_shift done [00:14:59]requested_data is exist [00:14:59]produce_requested_data [00:14:59]requested_item fd.num is exist - process it [00:14:59]SAM_PROTO_GetFieldsCounters [00:14:59]wFMCommunicate request_size=4 [00:14:59]MH_SAM_APDU [00:14:59]CAPDU: 80 13 00 00 [00:14:59]Write to MH i2c: E2 08 00 D4 04 80 13 00 00 00 00 00 00 54 [00:14:59]Write i2c OK [00:14:59]MH_I2C_Read... [00:14:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:14:59]Read from MH i2c: E2 [00:14:59]MH_I2C_Read... [00:14:59]Read from MH i2c: E2 62 00 [00:14:59]MH_I2C_Read... [00:14:59]Read from MH i2c: E2 62 00 D4 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 43 DE 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 00 00 00 00 5E 04 04 00 00 00 00 00 57 04 04 00 01 00 00 00 19 04 04 00 00 00 00 00 90 00 4C [00:14:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 43 DE 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 00 00 00 00 5E 04 04 00 00 00 00 00 57 04 04 00 01 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:14:59]wFMCommunicate OK [00:14:59]SAM_PROTO_GetFieldsCounters done [00:14:59]requested_item shift.num is exist - process it [00:14:59]requested_item shift.opened is exist - process it [00:14:59]req_shift_opened [00:14:59]FM_GetShiftState [00:14:59]SAM_PROTO_GetShiftState [00:14:59]wFMCommunicate request_size=4 [00:14:59]MH_SAM_APDU [00:14:59]CAPDU: 80 13 01 00 [00:14:59]Write to MH i2c: E2 08 00 D5 04 80 13 01 00 00 00 00 00 56 [00:14:59]Write i2c OK [00:14:59]MH_I2C_Read... [00:14:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:14:59]Read from MH i2c: E2 [00:14:59]MH_I2C_Read... [00:14:59]Read from MH i2c: E2 0E 00 [00:14:59]MH_I2C_Read... [00:14:59]Read from MH i2c: E2 0E 00 D5 04 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 4B [00:14:59]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [00:14:59]wFMCommunicate OK [00:14:59]SAM_PROTO_GetShiftState done [00:14:59]FM_GetShiftState done [00:14:59]req_shift_opened done [00:14:59]requested_item shift.open_date is exist - process it [00:14:59]req_shift_open_date [00:14:59]req_shift_open_date done [00:14:59]produce_requested_data done [00:14:59]produce_requested_data return {"fd.num":187971,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [00:14:59]process_action_free open_shift [00:14:59]json_value_free [00:14:59]json_value_free done [00:14:59]process_json_proto returns [00:14:59]Send response to host [00:14:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":187971,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [00:14:59]free response buf [00:14:59]execute_script done [00:14:59]execute_script returns [00:14:59]free content buf [00:14:59]Sock 8.Close socket [00:14:59]Sock 8.Thread stoped [00:14:59]accept exits with 9 [00:14:59]New connection [00:14:59]New thread 3067055460 created [00:14:59]Thread 3067198820 joined [00:14:59]Waiting for new connection... [00:14:59] Sock 9.Parse request [00:14:59]Sock 9.Check first char [00:14:59]Sock 9.First char is OK [00:14:59]request: POST /json_proto HTTP/1.0 [00:14:59]Method: POST [00:14:59]URL: /json_proto [00:14:59]Method is POST - this is cgi request [00:14:59]url: /json_proto [00:14:59]query_string will be loaded in cgi processing [00:14:59]execute_cgi json_proto POST (null) [00:14:59]execute_cgi path=json_proto method=POST [00:14:59]POST find Content-Length [00:14:59]Host: 172.17.42.131:8080 [00:14:59]Content-Length: 331 [00:14:59]Content-Type: application/json [00:14:59] [00:14:59]POST finish read [00:14:59]Found Content-Length = 331 [00:14:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:14:59]execute_script... [00:14:59]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:14:59]POST & json_proto [00:14:59]process_json_proto [00:14:59]json parsed OK: [00:14:59]protocol is kg_v1.0 [00:14:59]action value=get_value [00:14:59]process_action get_value [00:14:59]cmd_get_value [00:14:59]process_action get_value done [00:14:59]requested_data is exist [00:14:59]produce_requested_data [00:14:59]requested_item fm.sale.total is exist - process it [00:14:59]SAM_PROTO_GetFMData [00:14:59]wFMCommunicate request_size=4 [00:14:59]MH_SAM_APDU [00:14:59]CAPDU: 80 13 03 00 [00:14:59]Write to MH i2c: E2 08 00 D6 04 80 13 03 00 00 00 00 00 59 [00:14:59]Write i2c OK [00:14:59]MH_I2C_Read... [00:15:00]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:15:00]Read from MH i2c: E2 [00:15:00]MH_I2C_Read... [00:15:00]Read from MH i2c: E2 FD 00 [00:15:00]MH_I2C_Read... [00:15:00]Read from MH i2c: E2 FD 00 D6 04 00 CB 04 85 04 C7 04 6E 04 04 00 A9 DA 02 00 69 04 A4 00 6F 04 04 00 1A DA 02 00 B1 04 05 00 9F 34 FF B7 06 70 04 05 00 CC D2 1C 9F 04 72 04 05 00 D3 61 E2 18 02 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 25 6E B0 B6 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 D4 24 39 0F EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 A1 00 6F 04 04 00 8F 00 00 00 B1 04 05 00 18 60 DC 31 01 70 04 05 00 C8 19 DC 31 01 72 04 02 00 50 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 36 17 90 00 51 [00:15:00]RAPDU: CB 04 85 04 C7 04 6E 04 04 00 A9 DA 02 00 69 04 A4 00 6F 04 04 00 1A DA 02 00 B1 04 05 00 9F 34 FF B7 06 70 04 05 00 CC D2 1C 9F 04 72 04 05 00 D3 61 E2 18 02 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 25 6E B0 B6 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 D4 24 39 0F EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 A1 00 6F 04 04 00 8F 00 00 00 B1 04 05 00 18 60 DC 31 01 70 04 05 00 C8 19 DC 31 01 72 04 02 00 50 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 36 17 90 00 [00:15:00]wFMCommunicate OK [00:15:00]wFMCommunicate request_size=4 [00:15:00]MH_SAM_APDU [00:15:00]CAPDU: 80 17 00 00 [00:15:00]Write to MH i2c: E2 08 00 D7 04 80 17 00 00 00 00 00 00 5B [00:15:00]Write i2c OK [00:15:00]MH_I2C_Read... [00:15:00]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:15:00]Read from MH i2c: E2 [00:15:00]MH_I2C_Read... [00:15:00]Read from MH i2c: E2 FD 00 [00:15:00]MH_I2C_Read... [00:15:00]Read from MH i2c: E2 FD 00 D7 04 00 7B 20 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 92 EC B4 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 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 90 00 28 [00:15:00]RAPDU: 7B 20 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 92 EC B4 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 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 90 00 [00:15:00]wFMCommunicate OK [00:15:00]wFMCommunicate request_size=4 [00:15:00]MH_SAM_APDU [00:15:00]CAPDU: 80 17 00 00 [00:15:00]Write to MH i2c: E2 08 00 D8 04 80 17 00 00 00 00 00 00 5C [00:15:00]Write i2c OK [00:15:00]MH_I2C_Read... [00:15:00]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:15:00]Read from MH i2c: E2 [00:15:00]MH_I2C_Read... [00:15:00]Read from MH i2c: E2 FD 00 [00:15:00]MH_I2C_Read... [00:15:00]Read from MH i2c: E2 FD 00 D8 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 37 [00:15:01]RAPDU: 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:15:01]wFMCommunicate OK [00:15:01]wFMCommunicate request_size=4 [00:15:01]MH_SAM_APDU [00:15:01]CAPDU: 80 17 00 00 [00:15:01]Write to MH i2c: E2 08 00 D9 04 80 17 00 00 00 00 00 00 5D [00:15:01]Write i2c OK [00:15:01]MH_I2C_Read... [00:15:01]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:15:01]Read from MH i2c: E2 [00:15:01]MH_I2C_Read... [00:15:01]Read from MH i2c: E2 FD 00 [00:15:01]MH_I2C_Read... [00:15:01]Read from MH i2c: E2 FD 00 D9 04 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 DB [00:15:01]RAPDU: 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:15:01]wFMCommunicate OK [00:15:01]wFMCommunicate request_size=4 [00:15:01]MH_SAM_APDU [00:15:01]CAPDU: 80 17 00 00 [00:15:01]Write to MH i2c: E2 08 00 DA 04 80 17 00 00 00 00 00 00 5E [00:15:01]Write i2c OK [00:15:01]MH_I2C_Read... [00:15:01]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 229! [00:15:01]Read from MH i2c: E2 [00:15:01]MH_I2C_Read... [00:15:01]Read from MH i2c: E2 E8 00 [00:15:01]MH_I2C_Read... [00:15:01]Read from MH i2c: E2 E8 00 DA 04 00 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 3C [00:15:01]RAPDU: 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:01]wFMCommunicate OK [00:15:01]SAM_PROTO_GetFMData done [00:15:01]requested_item fm.sale_refund.total is exist - process it [00:15:01]requested_item fm.buy.total is exist - process it [00:15:01]requested_item shift.sale.total is exist - process it [00:15:01]SAM_PROTO_GetShiftData [00:15:01]wFMCommunicate request_size=4 [00:15:01]MH_SAM_APDU [00:15:01]CAPDU: 80 13 02 00 [00:15:01]Write to MH i2c: E2 08 00 DB 04 80 13 02 00 00 00 00 00 5D [00:15:01]Write i2c OK [00:15:01]MH_I2C_Read... [00:15:02]*** iso7816_exchange 80 13 02 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 DB 04 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 D0 [00:15:02]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:15:02]wFMCommunicate OK [00:15:02]wFMCommunicate request_size=4 [00:15:02]MH_SAM_APDU [00:15:02]CAPDU: 80 17 00 00 [00:15:02]Write to MH i2c: E2 08 00 DC 04 80 17 00 00 00 00 00 00 60 [00:15:02]Write i2c OK [00:15:02]MH_I2C_Read... [00:15:02]*** iso7816_exchange 80 17 00 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 DC 04 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 68 [00:15:02]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 90 00 [00:15:02]wFMCommunicate OK [00:15:02]wFMCommunicate request_size=4 [00:15:02]MH_SAM_APDU [00:15:02]CAPDU: 80 17 00 00 [00:15:02]Write to MH i2c: E2 08 00 DD 04 80 17 00 00 00 00 00 00 61 [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 DD 04 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 33 [00:15:03]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: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 DE 04 80 17 00 00 00 00 00 00 62 [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 DE 04 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 D4 [00:15:03]RAPDU: 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 90 00 [00: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 DF 04 80 17 00 00 00 00 00 00 63 [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 = 186! [00:15:04]Read from MH i2c: E2 [00:15:04]MH_I2C_Read... [00:15:04]Read from MH i2c: E2 BD 00 [00:15:04]MH_I2C_Read... [00:15:04]Read from MH i2c: E2 BD 00 DF 04 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 OFD Sender: No OFD packet to send [00:15:04]09 00 F6 03 01 00 06 F7 03 00 00 90 00 49 [00:15:04]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:15:04]wFMCommunicate OK [00:15:04]SAM_PROTO_GetShiftData done [00:15:04]requested_item shift.sale.total_cash is exist - process it [00:15:04]requested_item shift.sale_refund.total is exist - process it [00:15:04]requested_item shift.sale_refund.total_cash is exist - process it [00:15:04]requested_item shift.buy.total is exist - process it [00:15:04]requested_item shift.buy.total_cash is exist - process it [00:15:04]produce_requested_data done [00:15:04]produce_requested_data return {"fm.sale.total":288567594.55,"fm.sale_refund.total":51314934.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:15:04]process_action_free get_value [00:15:04]json_value_free [00:15:04]json_value_free done [00:15:04]process_json_proto returns [00:15:04]Send response to host [00:15:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":288567594.55,"fm.sale_refund.total":51314934.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:15:04]free response buf [00:15:04]execute_script done [00:15:04]execute_script returns [00:15:04]free content buf [00:15:04]Sock 9.Close socket [00:15:04]Sock 9.Thread stoped [00:15:09]OFD Sender: No OFD packet to send [00:15:14]OFD Sender: No OFD packet to send [00:15:19]OFD Sender: No OFD packet to send [00:15:24]OFD Sender: No OFD packet to send [00:15:29]OFD Sender: No OFD packet to send [00:15:34]OFD Sender: No OFD packet to send [00:15:39]OFD Sender: No OFD packet to send [00:15:44]OFD Sender: No OFD packet to send [00:15:49]OFD Sender: No OFD packet to send [00:15:54]OFD Sender: No OFD packet to send [00:15:59]OFD Sender: No OFD packet to send [00:16:04]OFD Sender: No OFD packet to send [00:16:09]OFD Sender: No OFD packet to send [00:16:14]OFD Sender: No OFD packet to send [00:16:19]OFD Sender: No OFD packet to send [00:16:24]OFD Sender: No OFD packet to send [00:16:29]OFD Sender: No OFD packet to send [00:16:34]OFD Sender: No OFD packet to send [00:16:39]OFD Sender: No OFD packet to send [00:16:44]OFD Sender: No OFD packet to send [00:16:49]OFD Sender: No OFD packet to send [00:16:54]OFD Sender: No OFD packet to send [00:16:59]OFD Sender: No OFD packet to send [00:17:04]OFD Sender: No OFD packet to send [00:17:09]OFD Sender: No OFD packet to send [00:17:14]OFD Sender: No OFD packet to send [00:17:19]OFD Sender: No OFD packet to send [00:17:24]OFD Sender: No OFD packet to send [00:17:29]OFD Sender: No OFD packet to send [00:17:34]OFD Sender: No OFD packet to send [00:17:39]OFD Sender: No OFD packet to send [00:17:44]OFD Sender: No OFD packet to send [00:17:49]OFD Sender: No OFD packet to send [00:17:55]OFD Sender: No OFD packet to send [00:18:00]OFD Sender: No OFD packet to send [00:18:05]OFD Sender: No OFD packet to send [00:18:10]OFD Sender: No OFD packet to send [00:18:15]OFD Sender: No OFD packet to send [00:18:20]OFD Sender: No OFD packet to send [00:18:25]OFD Sender: No OFD packet to send [00:18:30]OFD Sender: No OFD packet to send [00:18:35]OFD Sender: No OFD packet to send [00:18:40]OFD Sender: No OFD packet to send [00:18:42]accept exits with 8 [00:18:42]New connection [00:18:42]New thread 3067198820 created [00:18:42]Thread 3067055460 joined [00:18:42]Waiting for new connection... [00:18:42] Sock 8.Parse request [00:18:42]Sock 8.Check first char [00:18:42]Sock 8.First char is OK [00:18:42]request: POST /json_proto HTTP/1.0 [00:18:42]Method: POST [00:18:42]URL: /json_proto [00:18:42]Method is POST - this is cgi request [00:18:42]url: /json_proto [00:18:42]query_string will be loaded in cgi processing [00:18:42]execute_cgi json_proto POST (null) [00:18:42]execute_cgi path=json_proto method=POST [00:18:42]POST find Content-Length [00:18:42]Host: 172.17.42.131:8080 [00:18:42]Content-Length: 819 [00:18:42]Content-Type: application/json [00:18:42] [00:18:42]POST finish read [00:18:42]Found Content-Length = 819 [00:18:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210023", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "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: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:18:42]execute_script... [00:18: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)210023", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "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: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:18:42]POST & json_proto [00:18:42]process_json_proto [00:18:42]json parsed OK: [00:18:42]protocol is kg_v1.0 [00:18:42]action value=close_receipt [00:18:42]process_action close_receipt [00:18:42]cmd_close_receipt [00:18:42]MH_GetDate [00:18:42]Write to MH i2c: F0 00 00 E0 04 D3 [00:18:42]Write i2c OK [00:18:42]MH_I2C_Read... [00:18:42]Read from MH i2c: F0 [00:18:42]MH_I2C_Read... [00:18:42]Read from MH i2c: F0 09 00 [00:18:42]MH_I2C_Read... [00:18:42]Read from MH i2c: F0 09 00 E0 04 00 63 EF 16 67 A0 18 CA 66 93 [00:18:42]GetLastDocTimeStamp 1729556094 [00:18:42]current date 1729556323 [00:18:42]FM_GetShiftState [00:18:42]SAM_PROTO_GetShiftState [00:18:42]wFMCommunicate request_size=4 [00:18:42]MH_SAM_APDU [00:18:42]CAPDU: 80 13 01 00 [00:18:42]Write to MH i2c: E2 08 00 E1 04 80 13 01 00 00 00 00 00 62 [00:18:42]Write i2c OK [00:18:42]MH_I2C_Read... [00:18:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:18:42]Read from MH i2c: E2 [00:18:42]MH_I2C_Read... [00:18:42]Read from MH i2c: E2 0E 00 [00:18:42]MH_I2C_Read... [00:18:42]Read from MH i2c: E2 0E 00 E1 04 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 57 [00:18:42]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [00:18:42]wFMCommunicate OK [00:18:42]SAM_PROTO_GetShiftState done [00:18:42]FM_GetShiftState done [00:18:42]opened in 1729556094 [00:18:42]opened+sec_in_day 1729642494 [00:18:42]quantity*price = 100015 [00:18:42]sum+1 = 100017 [00:18:42]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.16 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 0.00 Безнал.: 1000.16 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 1 22.10.2024 00:18 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000965340 ФД: 187972 ФПД: 265438421605526 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T001843&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187972&fm=265438421605526&tin=02508201610067®Number=0000000000100030&sum=100016 [00:18:43]StoreToDocumentArchive [00:18:43]shift 461 fd 187972 [00:18:43]save to /storage/0461/doc_00187972 [00:18:43]save last doc name /storage/0461/doc_00187972 to /storage/kkm_last_doc_name [00:18:43]save OK [00:18:43]Clear old archive folders... [00:18:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:18:43]tlvbuf is 01B9CBE0 [00:18:43]SAM_PROTO_ClearQueue [00:18:43]wFMCommunicate request_size=4 [00:18:43]MH_SAM_APDU [00:18:43]CAPDU: 80 09 00 00 [00:18:43]Write to MH i2c: E2 08 00 EE 04 80 09 00 00 00 00 00 00 64 [00:18:43]Write i2c OK [00:18:43]MH_I2C_Read... [00:18:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:18:43]Read from MH i2c: E2 [00:18:43]MH_I2C_Read... [00:18:43]Read from MH i2c: E2 03 00 [00:18:43]MH_I2C_Read... [00:18:43]Read from MH i2c: E2 03 00 EE 04 00 90 00 66 [00:18:43]RAPDU: 90 00 [00:18:43]wFMCommunicate OK [00:18:43]SAM_PROTO_ClearQueue done [00:18:43]KKMCreateOFDPacket [00:18:43]OFDProtocolAddRootSTLVToBuf [00:18:43]FM_MakeSignedData [00:18:43]FM_MakeSignedData [00:18:43]SAM_PROTO_SignData [00:18:43]wFMCommunicate request_size=4 [00:18:43]MH_SAM_APDU [00:18:43]CAPDU: 80 0D 01 02 [00:18:43]Write to MH i2c: E2 08 00 EF 04 80 0D 01 02 00 00 00 00 6C [00:18:43]Write i2c OK [00:18:43]MH_I2C_Read... [00:18:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:18:43]Read from MH i2c: E2 [00:18:43]MH_I2C_Read... [00:18:43]Read from MH i2c: E2 03 00 [00:18:43]MH_I2C_Read... [00:18:43]Read from MH i2c: E2 03 00 EF 04 00 90 00 67 [00:18:43]RAPDU: 90 00 [00:18:43]wFMCommunicate OK [00:18:43]wFMCommunicate request_size=255 [00:18:43]MH_SAM_APDU [00:18: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 33 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 01 00 00 00 F4 03 04 00 63 EF 16 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 44 DE 02 00 35 04 06 00 F1 [00:18:43]Write to MH i2c: E2 02 01 F0 04 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 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 01 00 00 00 F4 03 04 00 63 EF 16 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 44 DE 02 00 35 04 06 00 F1 00 00 AC [00:18:43]Write i2c OK [00:18:43]MH_I2C_Read... [00:18:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:18:43]Read from MH i2c: E2 [00:18:43]MH_I2C_Read... [00:18:43]Read from MH i2c: E2 03 00 [00:18:43]MH_I2C_Read... [00:18:43]Read from MH i2c: E2 03 00 F0 04 00 90 00 68 [00:18:43]RAPDU: 90 00 [00:18:43]wFMCommunicate OK [00:18:43]wFMCommunicate request_size=10 [00:18:43]MH_SAM_APDU [00:18:43]CAPDU: 80 0D 02 02 05 6A 32 D4 5C 96 [00:18:43]Write to MH i2c: E2 0D 00 F1 04 80 0D 02 02 05 00 6A 32 D4 5C 96 00 00 DB [00:18:43]Write i2c OK [00:18:43]MH_I2C_Read... [00:18:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:18:43]Read from MH i2c: E2 [00:18:43]MH_I2C_Read... [00:18:43]Read from MH i2c: E2 03 00 [00:18:43]MH_I2C_Read... [00:18:43]Read from MH i2c: E2 03 00 F1 04 00 90 00 69 [00:18:43]RAPDU: 90 00 [00:18:43]wFMCommunicate OK [00:18:43]wFMCommunicate request_size=4 [00:18:43]MH_SAM_APDU [00:18:43]CAPDU: 80 0D 03 02 [00:18:43]Write to MH i2c: E2 08 00 F2 04 80 0D 03 02 00 00 00 00 71 [00:18:43]Write i2c OK [00:18:43]MH_I2C_Read... [00:18:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:18:43]Read from MH i2c: E2 [00:18:43]MH_I2C_Read... [00:18:43]Read from MH i2c: E2 0B 00 [00:18:43]MH_I2C_Read... [00:18:43]Read from MH i2c: E2 0B 00 F2 04 00 E5 29 E1 2D 45 67 4A FE 90 00 82 [00:18:43]RAPDU: E5 29 E1 2D 45 67 4A FE 90 00 [00:18:43]wFMCommunicate OK [00:18:43]SAM_PROTO_SignData done [00:18:43]FM_MakeSignedData done [00:18:43]CreateOFDProtocolMessage [00:18:43]wFMCommunicate request_size=4 [00:18:43]MH_SAM_APDU [00:18:43]CAPDU: 80 11 00 00 [00:18:43]Write to MH i2c: E2 08 00 F3 04 80 11 00 00 00 00 00 00 71 [00:18:43]Write i2c OK [00:18:43]MH_I2C_Read... [00:18:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:18:43]Read from MH i2c: E2 [00:18:43]MH_I2C_Read... [00:18:43]Read from MH i2c: E2 17 00 [00:18:43]MH_I2C_Read... [00:18:43]Read from MH i2c: E2 17 00 F3 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 BF [00:18:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [00:18:43]wFMCommunicate OK [00:18:43]CreateOFDProtocolMessage done [00:18:43]OFDSenderStorePacket 187972 [00:18:43]StoreOFDPacket docnum=187972 [00:18:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 12 BF 07 01 C2 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 33 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 01 00 00 00 F4 03 04 00 63 EF 16 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 44 DE 02 00 35 04 06 00 F1 6A 32 D4 5C 96 E5 29 E1 2D 45 67 4A FE [00:18:43]CheckFolder [00:18:43]dirname=/storage/ofd_packets [00:18:43]CheckFolder done [00:18:43]ProducePacketName [00:18:43]name=ofd_packets/00187972 [00:18:43]NVStorageSaveData ofd_packets/00187972 [00:18:43]File name is /storage/ofd_packets/00187972 [00:18:43]Write 301 bytes [00:18:43]NVStorageSaveData done [00:18:43]OFDSenderStorePacket done [00:18:43]KKMCreateOFDPacket done [00:18:43]NVStorageSaveData kkm_last_timestamp [00:18:43]File name is /storage/kkm_last_timestamp [00:18:43]Write 4 bytes [00:18:43]NVStorageSaveData done [00:18:43]ExternCall_PrintAddStr [00:18:43]wPrintStart [00:18:43]Write to MH i2c: 01 00 00 F4 04 F8 [00:18:43]Write i2c OK [00:18:43]MH_I2C_Read... [00:18:43]Read from MH i2c: 01 [00:18:43]MH_I2C_Read... [00:18:43]Read from MH i2c: 01 07 00 [00:18:43]MH_I2C_Read... [00:18:43]Read from MH i2c: 01 07 00 F4 04 00 00 00 00 00 FF 0F 0D [00:18:43]RasterBufferAndPrint [00:18:43]line Счет N : (1)210023 [00:18:43]line ИНН: 02508201610067 [00:18:43]line Контрольно-Кассовый Чек [00:18:43]line ПРОДАЖА [00:18:43]line ТРК (МРК, ГНК) : 22 [00:18:43]line Товар: 2710124130 [00:18:43]line Аи-92-К-3 [00:18:43]line 14.950 * 66.90 [00:18:43]line = 1000.16 [00:18:43]line НДС 12% НСП 1% [00:18:43]line > о реализуемом товаре [00:18:43]line ИТОГО: 1000.16 [00:18:43]line НСП 1% : 8.85 [00:18:43]line НДС 12% : 106.21 [00:18:43]line Наличными: 0.00 [00:18:43]line Безнал.: 1000.16 [00:18:43]line Место: АЗС № 86 "Партнер Нефть" [00:18:43]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [00:18:43]line СНО: Общий режим [00:18:43]line Чек 1 22.10.2024 00:18 [00:18:43]line Смена: 461 ФФД: 1.0 [00:18:43]line ЗНМ: 0300000155 [00:18:43]line РНМ: 0000000000100030 [00:18:43]line Версия ККМ: 001 [00:18:43]line Платежная система: Бакай Банк [00:18:43]line ФМ: 0000000000965340 [00:18:43]line ФД: 187972 [00:18:43]line ФПД: 265438421605526 [00:18:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T001843&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187972&fm=265438421605526&tin=02508201610067®Number=0000000000100030&sum=100016 [00:18:43]written 0, free lines is 4095 [00:18:43]OFD Sender: Processing packet 187972 [packets to send 1062, broken 1061] [00:18:43]ProducePacketName [00:18:43]name=ofd_packets/00187972 [00:18:43]OFD Sender: To server: pG, [00:18:43]CommunicateWithHost lk.salyk.kg:30040 [00:18:43]ConnectInit lk.salyk.kg [00:18:44]Connected sock=10 [00:18:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 12 BF 07 01 C2 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 33 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 01 00 00 00 F4 03 04 00 63 EF 16 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 44 DE 02 00 35 04 06 00 F1 6A 32 D4 5C 96 E5 29 E1 2D 45 67 4A FE [00:18:44]Write to MH i2c: 01 00 00 1E 05 23 [00:18:44]Write i2c OK [00:18:44]MH_I2C_Read... [00:18:44]Read from MH i2c: 01 [00:18:44]MH_I2C_Read... [00:18:44]Read from MH i2c: 01 07 00 [00:18:44]MH_I2C_Read... [00:18:44]Read from MH i2c: 01 07 00 1E 05 00 00 00 00 00 77 0C AD [00:18:44]RasterBufferAndPrint [00:18:44]line [00:18:44]line [00:18:44]line [00:18:44]line [00:18:44]line [00:18:44]written 0, free lines is 3195 [00:18:44]MH_Cut [00:18:44]Write to MH i2c: D1 01 00 25 05 01 FC [00:18:44]Write i2c OK [00:18:44]MH_I2C_Read... [00:18:44]Read from MH i2c: D1 [00:18:44]MH_I2C_Read... [00:18:44]Read from MH i2c: D1 01 00 [00:18:44]MH_I2C_Read... [00:18:44]Read from MH i2c: D1 01 00 25 05 00 FB [00:18:44]Write to MH i2c: 01 00 00 26 05 2B [00:18:44]Write i2c OK [00:18:44]MH_I2C_Read... [00:18:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 E0 D4 47 00 24 44 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 44 DE 02 00 F4 03 04 00 51 99 16 67 B6 04 01 00 00 E0 FE C6 E6 0E 72 87 54 [00:18:44]CommunicateWithHost err = 0 [00:18:44]CheckOFDResponse [00:18:44]1017 (14) - 77093643461234 [00:18:44]1041 (16) - 0000000000965340 [00:18:44]1040 (4) - 187972 [00:18:44]1012 (4) - 21.10.2024 18:11 [00:18:44]1206 (1) - 0 [00:18:44]OFD Sender: Remove packet 187972 [00:18:44]ProducePacketName [00:18:44]name=ofd_packets/00187972 [00:18:44]NVStorageDeleteData [00:18:44]OFD Sender: No OFD packet to send [00:18:45]*** Cut start [00:18:45]*** Partial cut [00:18:45]*** CUTSNS_PIN = 1 [00:18:45]*** CUTSNS_PIN = 0 [00:18:45]*** Brake cut motor [00:18:46]Read from MH i2c: 01 [00:18:46]MH_I2C_Read... [00:18:46]*** Stop cut motor [00:18:46]*** Cut end [00:18:46]Read from MH i2c: 01 07 00 [00:18:46]MH_I2C_Read... [00:18:46]Read from MH i2c: 01 07 00 26 05 00 00 00 00 00 FF 0F 40 [00:18:46]process_action close_receipt done [00:18:46]requested_data is exist [00:18:46]produce_requested_data [00:18:46]requested_item fm.sn is exist - process it [00:18:46]wFMCommunicate request_size=4 [00:18:46]MH_SAM_APDU [00:18:46]CAPDU: 80 11 00 00 [00:18:46]Write to MH i2c: E2 08 00 27 05 80 11 00 00 00 00 00 00 A6 [00:18:46]Write i2c OK [00:18:46]MH_I2C_Read... [00:18:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:18:46]Read from MH i2c: E2 [00:18:46]MH_I2C_Read... [00:18:46]Read from MH i2c: E2 17 00 [00:18:46]MH_I2C_Read... [00:18:46]Read from MH i2c: E2 17 00 27 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 F4 [00:18:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [00:18:46]wFMCommunicate OK [00:18:46]requested_item fd.num is exist - process it [00:18:46]SAM_PROTO_GetFieldsCounters [00:18:46]wFMCommunicate request_size=4 [00:18:46]MH_SAM_APDU [00:18:46]CAPDU: 80 13 00 00 [00:18:46]Write to MH i2c: E2 08 00 28 05 80 13 00 00 00 00 00 00 A9 [00:18:46]Write i2c OK [00:18:46]MH_I2C_Read... [00:18:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:18:46]Read from MH i2c: E2 [00:18:46]MH_I2C_Read... [00:18:46]Read from MH i2c: E2 62 00 [00:18:46]MH_I2C_Read... [00:18:46]Read from MH i2c: E2 62 00 28 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 44 DE 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 01 00 00 00 5E 04 04 00 01 00 00 00 57 04 04 00 02 00 00 00 19 04 04 00 00 00 00 00 90 00 A5 [00:18:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 44 DE 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 01 00 00 00 5E 04 04 00 01 00 00 00 57 04 04 00 02 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:18:46]wFMCommunicate OK [00:18:46]SAM_PROTO_GetFieldsCounters done [00:18:46]requested_item shift.num is exist - process it [00:18:46]requested_item shift.opened is exist - process it [00:18:46]req_shift_opened [00:18:46]FM_GetShiftState [00:18:46]SAM_PROTO_GetShiftState [00:18:46]wFMCommunicate request_size=4 [00:18:46]MH_SAM_APDU [00:18:46]CAPDU: 80 13 01 00 [00:18:46]Write to MH i2c: E2 08 00 29 05 80 13 01 00 00 00 00 00 AB [00:18:46]Write i2c OK [00:18:46]MH_I2C_Read... [00:18:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:18:46]Read from MH i2c: E2 [00:18:46]MH_I2C_Read... [00:18:46]Read from MH i2c: E2 0E 00 [00:18:46]MH_I2C_Read... [00:18:46]Read from MH i2c: E2 0E 00 29 05 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 A0 [00:18:46]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [00:18:46]wFMCommunicate OK [00:18:46]SAM_PROTO_GetShiftState done [00:18:46]FM_GetShiftState done [00:18:46]req_shift_opened done [00:18:46]requested_item shift.open_date is exist - process it [00:18:46]req_shift_open_date [00:18:46]req_shift_open_date done [00:18:46]produce_requested_data done [00:18:46]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187972,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [00:18:46]process_action_free close_receipt [00:18:46]json_value_free [00:18:46]json_value_free done [00:18:46]process_json_proto returns [00:18:46]Send response to host [00:18:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187972,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [00:18:46]free response buf [00:18:46]execute_script done [00:18:46]execute_script returns [00:18:46]free content buf [00:18:46]Sock 8.Close socket [00:18:46]Sock 8.Thread stoped [00:18:49]OFD Sender: No OFD packet to send [00:18:55]OFD Sender: No OFD packet to send [00:19:00]OFD Sender: No OFD packet to send [00:19:05]OFD Sender: No OFD packet to send [00:19:10]OFD Sender: No OFD packet to send [00:19:15]OFD Sender: No OFD packet to send [00:19:20]OFD Sender: No OFD packet to send [00:19:25]OFD Sender: No OFD packet to send [00:19:30]OFD Sender: No OFD packet to send [00:19:35]OFD Sender: No OFD packet to send [00:19:40]OFD Sender: No OFD packet to send [00:19:43]accept exits with 9 [00:19:43]New connection [00:19:43]New thread 3067055460 created [00:19:43]Thread 3067198820 joined [00:19:43]Waiting for new connection... [00:19:43] Sock 9.Parse request [00:19:43]Sock 9.Check first char [00:19:43]Sock 9.First char is OK [00:19:43]request: POST /json_proto HTTP/1.0 [00:19:43]Method: POST [00:19:43]URL: /json_proto [00:19:43]Method is POST - this is cgi request [00:19:43]url: /json_proto [00:19:43]query_string will be loaded in cgi processing [00:19:43]execute_cgi json_proto POST (null) [00:19:43]execute_cgi path=json_proto method=POST [00:19:43]POST find Content-Length [00:19:43]Host: 172.17.42.131:8080 [00:19:43]Content-Length: 769 [00:19:43]Content-Type: application/json [00:19:43] [00:19:43]POST finish read [00:19:43]Found Content-Length = 769 [00:19:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210024", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 28.410, "sum" : 1900.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" : 1900.63 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:19:43]execute_script... [00:19: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)210024", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 28.410, "sum" : 1900.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" : 1900.63 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:19:43]POST & json_proto [00:19:43]process_json_proto [00:19:43]json parsed OK: [00:19:43]protocol is kg_v1.0 [00:19:43]action value=close_receipt [00:19:43]process_action close_receipt [00:19:43]cmd_close_receipt [00:19:43]MH_GetDate [00:19:43]Write to MH i2c: F0 00 00 2A 05 1E [00:19:43]Write i2c OK [00:19:43]MH_I2C_Read... [00:19:43]Read from MH i2c: F0 [00:19:43]MH_I2C_Read... [00:19:43]Read from MH i2c: F0 09 00 [00:19:43]MH_I2C_Read... [00:19:43]Read from MH i2c: F0 09 00 2A 05 00 9F EF 16 67 A0 18 CA 66 1A [00:19:43]GetLastDocTimeStamp 1729556323 [00:19:43]current date 1729556383 [00:19:43]FM_GetShiftState [00:19:43]SAM_PROTO_GetShiftState [00:19:43]wFMCommunicate request_size=4 [00:19:43]MH_SAM_APDU [00:19:43]CAPDU: 80 13 01 00 [00:19:43]Write to MH i2c: E2 08 00 2B 05 80 13 01 00 00 00 00 00 AD [00:19:43]Write i2c OK [00:19:43]MH_I2C_Read... [00:19:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:19:43]Read from MH i2c: E2 [00:19:43]MH_I2C_Read... [00:19:43]Read from MH i2c: E2 0E 00 [00:19:43]MH_I2C_Read... [00:19:43]Read from MH i2c: E2 0E 00 2B 05 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 A2 [00:19:43]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [00:19:43]wFMCommunicate OK [00:19:43]SAM_PROTO_GetShiftState done [00:19:43]FM_GetShiftState done [00:19:43]opened in 1729556094 [00:19:43]opened+sec_in_day 1729642494 [00:19:43]quantity*price = 190062 [00:19:43]sum+1 = 190064 [00:19:43]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1900.63 НСП 1% : 16.82 НДС 12% : 201.84 Наличными: 0.00 Безнал.: 1900.63 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 2 22.10.2024 00:19 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000965340 ФД: 187973 ФПД: 154397042397234 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T001943&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187973&fm=154397042397234&tin=02508201610067®Number=0000000000100030&sum=190063 [00:19:44]StoreToDocumentArchive [00:19:44]shift 461 fd 187973 [00:19:44]save to /storage/0461/doc_00187973 [00:19:44]save last doc name /storage/0461/doc_00187973 to /storage/kkm_last_doc_name [00:19:44]save OK [00:19:44]Clear old archive folders... [00:19:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:19:44]tlvbuf is 01B9C140 [00:19:44]SAM_PROTO_ClearQueue [00:19:44]wFMCommunicate request_size=4 [00:19:44]MH_SAM_APDU [00:19:44]CAPDU: 80 09 00 00 [00:19:44]Write to MH i2c: E2 08 00 38 05 80 09 00 00 00 00 00 00 AF [00:19:44]Write i2c OK [00:19:44]MH_I2C_Read... [00:19:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:19:44]Read from MH i2c: E2 [00:19:44]MH_I2C_Read... [00:19:44]Read from MH i2c: E2 03 00 [00:19:44]MH_I2C_Read... [00:19:44]Read from MH i2c: E2 03 00 38 05 00 90 00 B1 [00:19:44]RAPDU: 90 00 [00:19:44]wFMCommunicate OK [00:19:44]SAM_PROTO_ClearQueue done [00:19:44]KKMCreateOFDPacket [00:19:44]OFDProtocolAddRootSTLVToBuf [00:19:44]FM_MakeSignedData [00:19:44]FM_MakeSignedData [00:19:44]SAM_PROTO_SignData [00:19:44]wFMCommunicate request_size=4 [00:19:44]MH_SAM_APDU [00:19:44]CAPDU: 80 0D 01 02 [00:19:44]Write to MH i2c: E2 08 00 39 05 80 0D 01 02 00 00 00 00 B7 [00:19:44]Write i2c OK [00:19:44]MH_I2C_Read... [00:19:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:19:44]Read from MH i2c: E2 [00:19:44]MH_I2C_Read... [00:19:44]Read from MH i2c: E2 03 00 [00:19:44]MH_I2C_Read... [00:19:44]Read from MH i2c: E2 03 00 39 05 00 90 00 B2 [00:19:44]RAPDU: 90 00 [00:19:44]wFMCommunicate OK [00:19:44]wFMCommunicate request_size=255 [00:19:44]MH_SAM_APDU [00:19: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 33 FF 03 08 00 03 FA 6E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 6F E6 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6F E6 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 92 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D8 4E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6F E6 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 00 00 00 F4 03 04 00 9F EF 16 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 45 DE 02 00 35 04 06 00 8C [00:19:44]Write to MH i2c: E2 02 01 3A 05 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 FA 6E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 6F E6 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6F E6 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 92 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D8 4E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6F E6 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 00 00 00 F4 03 04 00 9F EF 16 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 45 DE 02 00 35 04 06 00 8C 00 00 98 [00:19:44]Write i2c OK [00:19:44]MH_I2C_Read... [00:19:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:19:44]Read from MH i2c: E2 [00:19:44]MH_I2C_Read... [00:19:44]Read from MH i2c: E2 03 00 [00:19:44]MH_I2C_Read... [00:19:44]Read from MH i2c: E2 03 00 3A 05 00 90 00 B3 [00:19:44]RAPDU: 90 00 [00:19:44]wFMCommunicate OK [00:19:44]wFMCommunicate request_size=10 [00:19:44]MH_SAM_APDU [00:19:44]CAPDU: 80 0D 02 02 05 6C 5C DD D0 32 [00:19:44]Write to MH i2c: E2 0D 00 3B 05 80 0D 02 02 05 00 6C 5C DD D0 32 00 00 6B [00:19:44]Write i2c OK [00:19:44]MH_I2C_Read... [00:19:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:19:44]Read from MH i2c: E2 [00:19:44]MH_I2C_Read... [00:19:44]Read from MH i2c: E2 03 00 [00:19:44]MH_I2C_Read... [00:19:44]Read from MH i2c: E2 03 00 3B 05 00 90 00 B4 [00:19:44]RAPDU: 90 00 [00:19:44]wFMCommunicate OK [00:19:44]wFMCommunicate request_size=4 [00:19:44]MH_SAM_APDU [00:19:44]CAPDU: 80 0D 03 02 [00:19:44]Write to MH i2c: E2 08 00 3C 05 80 0D 03 02 00 00 00 00 BC [00:19:44]Write i2c OK [00:19:44]MH_I2C_Read... [00:19:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:19:44]Read from MH i2c: E2 [00:19:44]MH_I2C_Read... [00:19:44]Read from MH i2c: E2 0B 00 [00:19:44]MH_I2C_Read... [00:19:44]Read from MH i2c: E2 0B 00 3C 05 00 DD 03 8F 40 63 75 A2 9C 90 00 82 [00:19:44]RAPDU: DD 03 8F 40 63 75 A2 9C 90 00 [00:19:44]wFMCommunicate OK [00:19:44]SAM_PROTO_SignData done [00:19:44]FM_MakeSignedData done [00:19:44]CreateOFDProtocolMessage [00:19:44]wFMCommunicate request_size=4 [00:19:44]MH_SAM_APDU [00:19:44]CAPDU: 80 11 00 00 [00:19:44]Write to MH i2c: E2 08 00 3D 05 80 11 00 00 00 00 00 00 BC [00:19:44]Write i2c OK [00:19:44]MH_I2C_Read... [00:19:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:19:44]Read from MH i2c: E2 [00:19:44]MH_I2C_Read... [00:19:44]Read from MH i2c: E2 17 00 [00:19:44]MH_I2C_Read... [00:19:44]Read from MH i2c: E2 17 00 3D 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 0A [00:19:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [00:19:44]wFMCommunicate OK [00:19:44]CreateOFDProtocolMessage done [00:19:44]OFDSenderStorePacket 187973 [00:19:44]StoreOFDPacket docnum=187973 [00:19:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 5F 45 07 01 74 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 33 FF 03 08 00 03 FA 6E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 6F E6 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6F E6 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 92 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D8 4E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6F E6 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 00 00 00 F4 03 04 00 9F EF 16 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 45 DE 02 00 35 04 06 00 8C 6C 5C DD D0 32 DD 03 8F 40 63 75 A2 9C [00:19:44]CheckFolder [00:19:44]dirname=/storage/ofd_packets [00:19:44]CheckFolder done [00:19:44]ProducePacketName [00:19:44]name=ofd_packets/00187973 [00:19:44]NVStorageSaveData ofd_packets/00187973 [00:19:44]File name is /storage/ofd_packets/00187973 [00:19:44]Write 301 bytes [00:19:44]NVStorageSaveData done [00:19:44]OFDSenderStorePacket done [00:19:44]KKMCreateOFDPacket done [00:19:44]NVStorageSaveData kkm_last_timestamp [00:19:44]File name is /storage/kkm_last_timestamp [00:19:44]Write 4 bytes [00:19:44]NVStorageSaveData done [00:19:44]ExternCall_PrintAddStr [00:19:44]wPrintStart [00:19:44]Write to MH i2c: 01 00 00 3E 05 43 [00:19:44]Write i2c OK [00:19:44]MH_I2C_Read... [00:19:44]Read from MH i2c: 01 [00:19:44]MH_I2C_Read... [00:19:44]Read from MH i2c: 01 07 00 [00:19:44]MH_I2C_Read... [00:19:44]Read from MH i2c: 01 07 00 3E 05 00 00 00 00 00 FF 0F 58 [00:19:44]RasterBufferAndPrint [00:19:44]line Счет N : (1)210024 [00:19:44]line ИНН: 02508201610067 [00:19:44]line Контрольно-Кассовый Чек [00:19:44]line ПРОДАЖА [00:19:44]line ТРК (МРК, ГНК) : 32 [00:19:44]line Товар: 2710124130 [00:19:44]line Аи-92-К-3 [00:19:44]line 28.410 * 66.90 [00:19:44]line = 1900.63 [00:19:44]line НДС 12% НСП 1% [00:19:44]line > о реализуемом товаре [00:19:44]line ИТОГО: 1900.63 [00:19:44]line НСП 1% : 16.82 [00:19:44]line НДС 12% : 201.84 [00:19:44]line Наличными: 0.00 [00:19:44]line Безнал.: 1900.63 [00:19:44]line Место: АЗС № 86 "Партнер Нефть" [00:19:44]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [00:19:44]line СНО: Общий режим [00:19:44]line Чек 2 22.10.2024 00:19 [00:19:44]line Смена: 461 ФФД: 1.0 [00:19:44]line ЗНМ: 0300000155 [00:19:44]line РНМ: 0000000000100030 [00:19:44]line Версия ККМ: 001 [00:19:44]line Платежная система: Mbank [00:19:44]line ФМ: 0000000000965340 [00:19:44]line ФД: 187973 [00:19:44]line ФПД: 154397042397234 [00:19:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T001943&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187973&fm=154397042397234&tin=02508201610067®Number=0000000000100030&sum=190063 [00:19:44]written 0, free lines is 4095 [00:19:44]OFD Sender: Processing packet 187973 [packets to send 1062, broken 1061] [00:19:44]ProducePacketName [00:19:44]name=ofd_packets/00187973 [00:19:44]OFD Sender: To server: pG, [00:19:44]CommunicateWithHost lk.salyk.kg:30040 [00:19:44]ConnectInit lk.salyk.kg [00:19:45]Connected sock=10 [00:19:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 5F 45 07 01 74 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 33 FF 03 08 00 03 FA 6E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 6F E6 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6F E6 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 92 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D8 4E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6F E6 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 00 00 00 F4 03 04 00 9F EF 16 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 45 DE 02 00 35 04 06 00 8C 6C 5C DD D0 32 DD 03 8F 40 63 75 A2 9C [00:19:45]Write to MH i2c: 01 00 00 67 05 6C [00:19:45]Write i2c OK [00:19:45]MH_I2C_Read... [00:19:45]Read from MH i2c: 01 [00:19:45]MH_I2C_Read... [00:19:45]Read from MH i2c: 01 07 00 [00:19:45]MH_I2C_Read... [00:19:45]Read from MH i2c: 01 07 00 67 05 00 00 00 00 00 8B 0C 0A [00:19:45]RasterBufferAndPrint [00:19:45]line [00:19:45]line [00:19:45]line [00:19:45]line [00:19:45]line [00:19:45]written 0, free lines is 3215 [00:19:45]MH_Cut [00:19:45]Write to MH i2c: D1 01 00 6E 05 01 45 [00:19:45]Write i2c OK [00:19:45]MH_I2C_Read... [00:19:45]Read from MH i2c: D1 [00:19:45]MH_I2C_Read... [00:19:45]Read from MH i2c: D1 01 00 [00:19:45]MH_I2C_Read... [00:19:45]Read from MH i2c: D1 01 00 6E 05 00 44 [00:19:45]Write to MH i2c: 01 00 00 6F 05 74 [00:19:45]Write i2c OK [00:19:45]MH_I2C_Read... [00:19:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 EB 85 47 00 3F 73 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 45 DE 02 00 F4 03 04 00 8E 99 16 67 B6 04 01 00 00 06 58 4F E5 29 D6 F1 C9 [00:19:45]CommunicateWithHost err = 0 [00:19:45]CheckOFDResponse [00:19:45]1017 (14) - 77093643461234 [00:19:45]1041 (16) - 0000000000965340 [00:19:45]1040 (4) - 187973 [00:19:45]1012 (4) - 21.10.2024 18:12 [00:19:45]1206 (1) - 0 [00:19:45]OFD Sender: Remove packet 187973 [00:19:45]ProducePacketName [00:19:45]name=ofd_packets/00187973 [00:19:45]NVStorageDeleteData [00:19:45]OFD Sender: No OFD packet to send [00:19:46]*** Cut start [00:19:46]*** Partial cut [00:19:46]*** CUTSNS_PIN = 1 [00:19:46]*** CUTSNS_PIN = 0 [00:19:46]*** Brake cut motor [00:19:47]Read from MH i2c: 01 [00:19:47]MH_I2C_Read... [00:19:47]*** Stop cut motor [00:19:47]*** Cut end [00:19:47]Read from MH i2c: 01 07 00 [00:19:47]MH_I2C_Read... [00:19:47]Read from MH i2c: 01 07 00 6F 05 00 00 00 00 00 FF 0F 89 [00:19:47]process_action close_receipt done [00:19:47]requested_data is exist [00:19:47]produce_requested_data [00:19:47]requested_item fm.sn is exist - process it [00:19:47]wFMCommunicate request_size=4 [00:19:47]MH_SAM_APDU [00:19:47]CAPDU: 80 11 00 00 [00:19:47]Write to MH i2c: E2 08 00 70 05 80 11 00 00 00 00 00 00 EF [00:19:47]Write i2c OK [00:19:47]MH_I2C_Read... [00:19:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:19:47]Read from MH i2c: E2 [00:19:47]MH_I2C_Read... [00:19:47]Read from MH i2c: E2 17 00 [00:19:47]MH_I2C_Read... [00:19:47]Read from MH i2c: E2 17 00 70 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 3D [00:19:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [00:19:47]wFMCommunicate OK [00:19:47]requested_item fd.num is exist - process it [00:19:47]SAM_PROTO_GetFieldsCounters [00:19:47]wFMCommunicate request_size=4 [00:19:47]MH_SAM_APDU [00:19:47]CAPDU: 80 13 00 00 [00:19:47]Write to MH i2c: E2 08 00 71 05 80 13 00 00 00 00 00 00 F2 [00:19:47]Write i2c OK [00:19:47]MH_I2C_Read... [00:19:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:19:47]Read from MH i2c: E2 [00:19:47]MH_I2C_Read... [00:19:47]Read from MH i2c: E2 62 00 [00:19:47]MH_I2C_Read... [00:19:47]Read from MH i2c: E2 62 00 71 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 45 DE 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 02 00 00 00 5E 04 04 00 02 00 00 00 57 04 04 00 03 00 00 00 19 04 04 00 00 00 00 00 90 00 F2 [00:19:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 45 DE 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 02 00 00 00 5E 04 04 00 02 00 00 00 57 04 04 00 03 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:19:47]wFMCommunicate OK [00:19:47]SAM_PROTO_GetFieldsCounters done [00:19:47]requested_item shift.num is exist - process it [00:19:47]requested_item shift.opened is exist - process it [00:19:47]req_shift_opened [00:19:47]FM_GetShiftState [00:19:47]SAM_PROTO_GetShiftState [00:19:47]wFMCommunicate request_size=4 [00:19:47]MH_SAM_APDU [00:19:47]CAPDU: 80 13 01 00 [00:19:47]Write to MH i2c: E2 08 00 72 05 80 13 01 00 00 00 00 00 F4 [00:19:47]Write i2c OK [00:19:47]MH_I2C_Read... [00:19:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:19:47]Read from MH i2c: E2 [00:19:47]MH_I2C_Read... [00:19:47]Read from MH i2c: E2 0E 00 [00:19:47]MH_I2C_Read... [00:19:47]Read from MH i2c: E2 0E 00 72 05 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 E9 [00:19:47]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [00:19:47]wFMCommunicate OK [00:19:47]SAM_PROTO_GetShiftState done [00:19:47]FM_GetShiftState done [00:19:47]req_shift_opened done [00:19:47]requested_item shift.open_date is exist - process it [00:19:47]req_shift_open_date [00:19:47]req_shift_open_date done [00:19:47]produce_requested_data done [00:19:47]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187973,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [00:19:47]process_action_free close_receipt [00:19:47]json_value_free [00:19:47]json_value_free done [00:19:47]process_json_proto returns [00:19:47]Send response to host [00:19:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187973,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [00:19:47]free response buf [00:19:47]execute_script done [00:19:47]execute_script returns [00:19:47]free content buf [00:19:47]Sock 9.Close socket [00:19:47]Sock 9.Thread stoped [00:19:49]accept exits with 8 [00:19:49]New connection [00:19:49]New thread 3067198820 created [00:19:49] Sock 8.Parse request [00:19:49]Thread 3067055460 joined [00:19:49]Sock 8.Check first char [00:19:49]Waiting for new connection... [00:19:49]Sock 8.First char is OK [00:19:49]request: POST /json_proto HTTP/1.0 [00:19:49]Method: POST [00:19:49]URL: /json_proto [00:19:49]Method is POST - this is cgi request [00:19:49]url: /json_proto [00:19:49]query_string will be loaded in cgi processing [00:19:49]execute_cgi json_proto POST (null) [00:19:49]execute_cgi path=json_proto method=POST [00:19:49]POST find Content-Length [00:19:49]Host: 172.17.42.131:8080 [00:19:49]Content-Length: 679 [00:19:49]Content-Type: application/json [00:19:49] [00:19:49]POST finish read [00:19:49]Found Content-Length = 679 [00:19:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210025", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 32.810, "sum" : 2500.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2500.00, "total" : 2500.00, "payments": [ { "type": 0, "sum" : 2500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:19:49]execute_script... [00:19: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)210025", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 32.810, "sum" : 2500.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2500.00, "total" : 2500.00, "payments": [ { "type": 0, "sum" : 2500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:19:49]POST & json_proto [00:19:49]process_json_proto [00:19:49]json parsed OK: [00:19:49]protocol is kg_v1.0 [00:19:49]action value=close_receipt [00:19:49]process_action close_receipt [00:19:49]cmd_close_receipt [00:19:49]MH_GetDate [00:19:49]Write to MH i2c: F0 00 00 73 05 67 [00:19:49]Write i2c OK [00:19:49]MH_I2C_Read... [00:19:49]Read from MH i2c: F0 [00:19:49]MH_I2C_Read... [00:19:49]Read from MH i2c: F0 09 00 [00:19:49]MH_I2C_Read... [00:19:49]Read from MH i2c: F0 09 00 73 05 00 A6 EF 16 67 A0 18 CA 66 6A [00:19:49]GetLastDocTimeStamp 1729556383 [00:19:49]current date 1729556390 [00:19:49]FM_GetShiftState [00:19:49]SAM_PROTO_GetShiftState [00:19:49]wFMCommunicate request_size=4 [00:19:49]MH_SAM_APDU [00:19:49]CAPDU: 80 13 01 00 [00:19:49]Write to MH i2c: E2 08 00 74 05 80 13 01 00 00 00 00 00 F6 [00:19:49]Write i2c OK [00:19:49]MH_I2C_Read... [00:19:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:19:49]Read from MH i2c: E2 [00:19:49]MH_I2C_Read... [00:19:49]Read from MH i2c: E2 0E 00 [00:19:49]MH_I2C_Read... [00:19:49]Read from MH i2c: E2 0E 00 74 05 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 EB [00:19:49]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [00:19:49]wFMCommunicate OK [00:19:49]SAM_PROTO_GetShiftState done [00:19:49]FM_GetShiftState done [00:19:49]opened in 1729556094 [00:19:49]opened+sec_in_day 1729642494 [00:19:49]quantity*price = 250012 [00:19:49]sum+1 = 250013 [00:19:49]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 2500.00 Внесено: 2500.00 СДАЧА: 0.00 НСП 1% : 22.12 НДС 12% : 265.50 Наличными: 2500.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 3 22.10.2024 00:19 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 187974 ФПД: 208932146097952 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T001950&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187974&fm=208932146097952&tin=02508201610067®Number=0000000000100030&sum=250000 [00:19:50]StoreToDocumentArchive [00:19:50]shift 461 fd 187974 [00:19:50]save to /storage/0461/doc_00187974 [00:19:50]save last doc name /storage/0461/doc_00187974 to /storage/kkm_last_doc_name [00:19:50]save OK [00:19:50]Clear old archive folders... [00:19:50]ProcessDocumentItem done err = 0, tmpTLVsize=248 [00:19:50]tlvbuf is 01B9C010 [00:19:50]SAM_PROTO_ClearQueue [00:19:50]wFMCommunicate request_size=4 [00:19:50]MH_SAM_APDU [00:19:50]CAPDU: 80 09 00 00 [00:19:50]Write to MH i2c: E2 08 00 81 05 80 09 00 00 00 00 00 00 F8 [00:19:50]Write i2c OK [00:19:50]MH_I2C_Read... [00:19:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:19:50]Read from MH i2c: E2 [00:19:50]MH_I2C_Read... [00:19:50]Read from MH i2c: E2 03 00 [00:19:50]MH_I2C_Read... [00:19:50]Read from MH i2c: E2 03 00 81 05 00 90 00 FA [00:19:50]RAPDU: 90 00 [00:19:50]wFMCommunicate OK [00:19:50]SAM_PROTO_ClearQueue done [00:19:50]KKMCreateOFDPacket [00:19:50]OFDProtocolAddRootSTLVToBuf [00:19:50]FM_MakeSignedData [00:19:50]FM_MakeSignedData [00:19:50]SAM_PROTO_SignData [00:19:50]wFMCommunicate request_size=4 [00:19:50]MH_SAM_APDU [00:19:50]CAPDU: 80 0D 01 02 [00:19:50]Write to MH i2c: E2 08 00 82 05 80 0D 01 02 00 00 00 00 00 [00:19:50]Write i2c OK [00:19:50]MH_I2C_Read... [00:19:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:19:50]Read from MH i2c: E2 [00:19:50]MH_I2C_Read... [00:19:50]Read from MH i2c: E2 03 00 [00:19:50]MH_I2C_Read... [00:19:50]Read from MH i2c: E2 03 00 82 05 00 90 00 FB [00:19:50]RAPDU: 90 00 [00:19:50]wFMCommunicate OK [00:19:50]wFMCommunicate request_size=255 [00:19:50]MH_SAM_APDU [00:19:50]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 03 00 00 00 F4 03 04 00 A6 EF 16 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 46 DE 02 00 35 04 06 00 BE 05 CE 59 [00:19:50]Write to MH i2c: E2 02 01 83 05 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 03 00 00 00 F4 03 04 00 A6 EF 16 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 46 DE 02 00 35 04 06 00 BE 05 CE 59 00 00 BF [00:19:50]Write i2c OK [00:19:50]MH_I2C_Read... [00:19:50]OFD Sender: No OFD packet to send [00:19:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:19:50]Read from MH i2c: E2 [00:19:50]MH_I2C_Read... [00:19:50]Read from MH i2c: E2 03 00 [00:19:50]MH_I2C_Read... [00:19:50]Read from MH i2c: E2 03 00 83 05 00 90 00 FC [00:19:50]RAPDU: 90 00 [00:19:50]wFMCommunicate OK [00:19:50]wFMCommunicate request_size=7 [00:19:50]MH_SAM_APDU [00:19:50]CAPDU: 80 0D 02 02 02 AF 20 [00:19:50]Write to MH i2c: E2 0A 00 84 05 80 0D 02 02 02 00 AF 20 00 00 D6 [00:19:50]Write i2c OK [00:19:50]MH_I2C_Read... [00:19:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:19:51]Read from MH i2c: E2 [00:19:51]MH_I2C_Read... [00:19:51]Read from MH i2c: E2 03 00 [00:19:51]MH_I2C_Read... [00:19:51]Read from MH i2c: E2 03 00 84 05 00 90 00 FD [00:19:51]RAPDU: 90 00 [00:19:51]wFMCommunicate OK [00:19:51]wFMCommunicate request_size=4 [00:19:51]MH_SAM_APDU [00:19:51]CAPDU: 80 0D 03 02 [00:19:51]Write to MH i2c: E2 08 00 85 05 80 0D 03 02 00 00 00 00 05 [00:19:51]Write i2c OK [00:19:51]MH_I2C_Read... [00:19:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:19:51]Read from MH i2c: E2 [00:19:51]MH_I2C_Read... [00:19:51]Read from MH i2c: E2 0B 00 [00:19:51]MH_I2C_Read... [00:19:51]Read from MH i2c: E2 0B 00 85 05 00 EE 4A A8 CC C3 80 69 F4 90 00 52 [00:19:51]RAPDU: EE 4A A8 CC C3 80 69 F4 90 00 [00:19:51]wFMCommunicate OK [00:19:51]SAM_PROTO_SignData done [00:19:51]FM_MakeSignedData done [00:19:51]CreateOFDProtocolMessage [00:19:51]wFMCommunicate request_size=4 [00:19:51]MH_SAM_APDU [00:19:51]CAPDU: 80 11 00 00 [00:19:51]Write to MH i2c: E2 08 00 86 05 80 11 00 00 00 00 00 00 05 [00:19:51]Write i2c OK [00:19:51]MH_I2C_Read... [00:19:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:19:51]Read from MH i2c: E2 [00:19:51]MH_I2C_Read... [00:19:51]Read from MH i2c: E2 17 00 [00:19:51]MH_I2C_Read... [00:19:51]Read from MH i2c: E2 17 00 86 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 53 [00:19:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [00:19:51]wFMCommunicate OK [00:19:51]CreateOFDProtocolMessage done [00:19:51]OFDSenderStorePacket 187974 [00:19:51]StoreOFDPacket docnum=187974 [00:19:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 7A 7E 04 01 A7 77 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 03 00 00 00 F4 03 04 00 A6 EF 16 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 46 DE 02 00 35 04 06 00 BE 05 CE 59 AF 20 EE 4A A8 CC C3 80 69 F4 [00:19:51]CheckFolder [00:19:51]dirname=/storage/ofd_packets [00:19:51]CheckFolder done [00:19:51]ProducePacketName [00:19:51]name=ofd_packets/00187974 [00:19:51]NVStorageSaveData ofd_packets/00187974 [00:19:51]File name is /storage/ofd_packets/00187974 [00:19:51]Write 298 bytes [00:19:51]NVStorageSaveData done [00:19:51]OFDSenderStorePacket done [00:19:51]KKMCreateOFDPacket done [00:19:51]NVStorageSaveData kkm_last_timestamp [00:19:51]File name is /storage/kkm_last_timestamp [00:19:51]Write 4 bytes [00:19:51]NVStorageSaveData done [00:19:51]ExternCall_PrintAddStr [00:19:51]wPrintStart [00:19:51]Write to MH i2c: 01 00 00 87 05 8C [00:19:51]Write i2c OK [00:19:51]MH_I2C_Read... [00:19:51]Read from MH i2c: 01 [00:19:51]MH_I2C_Read... [00:19:51]Read from MH i2c: 01 07 00 [00:19:51]MH_I2C_Read... [00:19:51]Read from MH i2c: 01 07 00 87 05 00 00 00 00 00 FF 0F A1 [00:19:51]RasterBufferAndPrint [00:19:51]line Счет N : (1)210025 [00:19:51]line ИНН: 02508201610067 [00:19:51]line Контрольно-Кассовый Чек [00:19:51]line ПРОДАЖА [00:19:51]line ТРК (МРК, ГНК) : 51 [00:19:51]line Товар: 2710194210 [00:19:51]line ДТ-К-5 [00:19:51]line 32.810 * 76.20 [00:19:51]line = 2500.12 [00:19:51]line НДС 12% НСП 1% [00:19:51]line > о реализуемом товаре [00:19:51]line ОКРУГЛЕНИЕ: -0.12 [00:19:51]line ИТОГО: 2500.00 [00:19:51]line Внесено: 2500.00 [00:19:51]line СДАЧА: 0.00 [00:19:51]line НСП 1% : 22.12 [00:19:51]line НДС 12% : 265.50 [00:19:51]line Наличными: 2500.00 [00:19:51]line Безнал.: 0.00 [00:19:51]line Место: АЗС № 86 "Партнер Нефть" [00:19:51]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [00:19:51]line СНО: Общий режим [00:19:51]line Чек 3 22.10.2024 00:19 [00:19:51]line Смена: 461 ФФД: 1.0 [00:19:51]line ЗНМ: 0300000155 [00:19:51]line РНМ: 0000000000100030 [00:19:51]line Версия ККМ: 001 [00:19:51]line ФМ: 0000000000965340 [00:19:51]line ФД: 187974 [00:19:51]line ФПД: 208932146097952 [00:19:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T001950&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187974&fm=208932146097952&tin=02508201610067®Number=0000000000100030&sum=250000 [00:19:51]written 0, free lines is 4095 [00:19:51]OFD Sender: Processing packet 187974 [packets to send 1062, broken 1061] [00:19:51]ProducePacketName [00:19:51]name=ofd_packets/00187974 [00:19:51]OFD Sender: To server: pG, [00:19:51]CommunicateWithHost lk.salyk.kg:30040 [00:19:51]ConnectInit lk.salyk.kg [00:19:51]Connected sock=10 [00:19:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 7A 7E 04 01 A7 77 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 03 00 00 00 F4 03 04 00 A6 EF 16 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 46 DE 02 00 35 04 06 00 BE 05 CE 59 AF 20 EE 4A A8 CC C3 80 69 F4 [00:19:51]Write to MH i2c: 01 00 00 B2 05 B7 [00:19:51]Write i2c OK [00:19:51]MH_I2C_Read... [00:19:51]Read from MH i2c: 01 [00:19:51]MH_I2C_Read... [00:19:51]Read from MH i2c: 01 07 00 [00:19:51]MH_I2C_Read... [00:19:51]Read from MH i2c: 01 07 00 B2 05 00 00 00 00 00 64 0C 2E [00:19:51]RasterBufferAndPrint [00:19:51]line [00:19:51]line [00:19:51]line [00:19:51]line [00:19:51]line [00:19:51]written 0, free lines is 3176 [00:19:51]MH_Cut [00:19:51]Write to MH i2c: D1 01 00 B9 05 01 90 [00:19:51]Write i2c OK [00:19:51]MH_I2C_Read... [00:19:51]Read from MH i2c: D1 [00:19:51]MH_I2C_Read... [00:19:51]Read from MH i2c: D1 01 00 [00:19:51]MH_I2C_Read... [00:19:51]Read from MH i2c: D1 01 00 B9 05 00 8F [00:19:51]Write to MH i2c: 01 00 00 BA 05 BF [00:19:51]Write i2c OK [00:19:51]MH_I2C_Read... [00:19:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 60 AD 47 00 F6 4E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 46 DE 02 00 F4 03 04 00 94 99 16 67 B6 04 01 00 00 7C A3 AD 3B CD F5 0E 64 [00:19:51]CommunicateWithHost err = 0 [00:19:51]CheckOFDResponse [00:19:51]1017 (14) - 77093643461234 [00:19:51]1041 (16) - 0000000000965340 [00:19:51]1040 (4) - 187974 [00:19:51]1012 (4) - 21.10.2024 18:12 [00:19:51]1206 (1) - 0 [00:19:51]OFD Sender: Remove packet 187974 [00:19:51]ProducePacketName [00:19:51]name=ofd_packets/00187974 [00:19:51]NVStorageDeleteData [00:19:52]OFD Sender: No OFD packet to send [00:19:52]*** Cut start [00:19:52]*** Partial cut [00:19:52]*** CUTSNS_PIN = 1 [00:19:52]*** CUTSNS_PIN = 0 [00:19:53]*** Brake cut motor [00:19:53]Read from MH i2c: 01 [00:19:53]MH_I2C_Read... [00:19:53]*** Stop cut motor [00:19:53]*** Cut end [00:19:53]Read from MH i2c: 01 07 00 [00:19:53]MH_I2C_Read... [00:19:53]Read from MH i2c: 01 07 00 BA 05 00 00 00 00 00 FF 0F D4 [00:19:53]process_action close_receipt done [00:19:53]requested_data is exist [00:19:53]produce_requested_data [00:19:53]requested_item fm.sn is exist - process it [00:19:53]wFMCommunicate request_size=4 [00:19:53]MH_SAM_APDU [00:19:53]CAPDU: 80 11 00 00 [00:19:53]Write to MH i2c: E2 08 00 BB 05 80 11 00 00 00 00 00 00 3A [00:19:53]Write i2c OK [00:19:53]MH_I2C_Read... [00:19:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:19:53]Read from MH i2c: E2 [00:19:53]MH_I2C_Read... [00:19:53]Read from MH i2c: E2 17 00 [00:19:53]MH_I2C_Read... [00:19:53]Read from MH i2c: E2 17 00 BB 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 88 [00:19:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [00:19:53]wFMCommunicate OK [00:19:53]requested_item fd.num is exist - process it [00:19:53]SAM_PROTO_GetFieldsCounters [00:19:53]wFMCommunicate request_size=4 [00:19:53]MH_SAM_APDU [00:19:53]CAPDU: 80 13 00 00 [00:19:53]Write to MH i2c: E2 08 00 BC 05 80 13 00 00 00 00 00 00 3D [00:19:53]Write i2c OK [00:19:53]MH_I2C_Read... [00:19:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:19:53]Read from MH i2c: E2 [00:19:53]MH_I2C_Read... [00:19:53]Read from MH i2c: E2 62 00 [00:19:53]MH_I2C_Read... [00:19:53]Read from MH i2c: E2 62 00 BC 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 46 DE 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 03 00 00 00 5E 04 04 00 03 00 00 00 57 04 04 00 04 00 00 00 19 04 04 00 00 00 00 00 90 00 41 [00:19:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 46 DE 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 03 00 00 00 5E 04 04 00 03 00 00 00 57 04 04 00 04 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:19:53]wFMCommunicate OK [00:19:53]SAM_PROTO_GetFieldsCounters done [00:19:53]requested_item shift.num is exist - process it [00:19:53]requested_item shift.opened is exist - process it [00:19:53]req_shift_opened [00:19:53]FM_GetShiftState [00:19:53]SAM_PROTO_GetShiftState [00:19:53]wFMCommunicate request_size=4 [00:19:53]MH_SAM_APDU [00:19:53]CAPDU: 80 13 01 00 [00:19:53]Write to MH i2c: E2 08 00 BD 05 80 13 01 00 00 00 00 00 3F [00:19:53]Write i2c OK [00:19:53]MH_I2C_Read... [00:19:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:19:53]Read from MH i2c: E2 [00:19:53]MH_I2C_Read... [00:19:53]Read from MH i2c: E2 0E 00 [00:19:53]MH_I2C_Read... [00:19:53]Read from MH i2c: E2 0E 00 BD 05 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 34 [00:19:53]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [00:19:53]wFMCommunicate OK [00:19:53]SAM_PROTO_GetShiftState done [00:19:53]FM_GetShiftState done [00:19:53]req_shift_opened done [00:19:53]requested_item shift.open_date is exist - process it [00:19:53]req_shift_open_date [00:19:53]req_shift_open_date done [00:19:53]produce_requested_data done [00:19:53]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187974,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [00:19:53]process_action_free close_receipt [00:19:53]json_value_free [00:19:53]json_value_free done [00:19:53]process_json_proto returns [00:19:53]Send response to host [00:19:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187974,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [00:19:53]free response buf [00:19:53]execute_script done [00:19:53]execute_script returns [00:19:53]free content buf [00:19:53]Sock 8.Close socket [00:19:53]Sock 8.Thread stoped [00:19:57]OFD Sender: No OFD packet to send [00:20:02]OFD Sender: No OFD packet to send [00:20:07]OFD Sender: No OFD packet to send [00:20:12]OFD Sender: No OFD packet to send [00:20:17]OFD Sender: No OFD packet to send [00:20:22]OFD Sender: No OFD packet to send [00:20:27]OFD Sender: No OFD packet to send [00:20:32]OFD Sender: No OFD packet to send [00:20:37]OFD Sender: No OFD packet to send [00:20:42]OFD Sender: No OFD packet to send [00:20:47]OFD Sender: No OFD packet to send [00:20:52]OFD Sender: No OFD packet to send [00:20:57]OFD Sender: No OFD packet to send [00:21:02]OFD Sender: No OFD packet to send [00:21:07]OFD Sender: No OFD packet to send [00:21:12]OFD Sender: No OFD packet to send [00:21:17]OFD Sender: No OFD packet to send [00:21:22]OFD Sender: No OFD packet to send [00:21:27]OFD Sender: No OFD packet to send [00:21:32]OFD Sender: No OFD packet to send [00:21:37]OFD Sender: No OFD packet to send [00:21:42]OFD Sender: No OFD packet to send [00:21:47]OFD Sender: No OFD packet to send [00:21:52]OFD Sender: No OFD packet to send [00:21:57]OFD Sender: No OFD packet to send [00:22:02]OFD Sender: No OFD packet to send [00:22:07]OFD Sender: No OFD packet to send [00:22:12]OFD Sender: No OFD packet to send [00:22:17]OFD Sender: No OFD packet to send [00:22:22]OFD Sender: No OFD packet to send [00:22:28]OFD Sender: No OFD packet to send [00:22:33]OFD Sender: No OFD packet to send [00:22:38]OFD Sender: No OFD packet to send [00:22:43]OFD Sender: No OFD packet to send [00:22:48]OFD Sender: No OFD packet to send [00:22:53]OFD Sender: No OFD packet to send [00:22:58]OFD Sender: No OFD packet to send [00:23:03]OFD Sender: No OFD packet to send [00:23:08]OFD Sender: No OFD packet to send [00:23:08]accept exits with 9 [00:23:08]New connection [00:23:08]New thread 3067055460 created [00:23:08]Thread 3067198820 joined [00:23:08]Waiting for new connection... [00:23:08] Sock 9.Parse request [00:23:08]Sock 9.Check first char [00:23:08]Sock 9.First char is OK [00:23:08]request: POST /json_proto HTTP/1.0 [00:23:08]Method: POST [00:23:08]URL: /json_proto [00:23:08]Method is POST - this is cgi request [00:23:08]url: /json_proto [00:23:08]query_string will be loaded in cgi processing [00:23:08]execute_cgi json_proto POST (null) [00:23:08]execute_cgi path=json_proto method=POST [00:23:08]POST find Content-Length [00:23:08]Host: 172.17.42.131:8080 [00:23:08]Content-Length: 677 [00:23:08]Content-Type: application/json [00:23:08] [00:23:08]POST finish read [00:23:08]Found Content-Length = 677 [00:23:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210026", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 3.590, "sum" : 240.17, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 240.00, "total" : 240.00, "payments": [ { "type": 0, "sum" : 240.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:23:08]execute_script... [00:23:08]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210026", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 3.590, "sum" : 240.17, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 240.00, "total" : 240.00, "payments": [ { "type": 0, "sum" : 240.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:23:08]POST & json_proto [00:23:08]process_json_proto [00:23:08]json parsed OK: [00:23:08]protocol is kg_v1.0 [00:23:08]action value=close_receipt [00:23:08]process_action close_receipt [00:23:08]cmd_close_receipt [00:23:08]MH_GetDate [00:23:08]Write to MH i2c: F0 00 00 BE 05 B2 [00:23:08]Write i2c OK [00:23:08]MH_I2C_Read... [00:23:08]Read from MH i2c: F0 [00:23:08]MH_I2C_Read... [00:23:08]Read from MH i2c: F0 09 00 [00:23:08]MH_I2C_Read... [00:23:08]Read from MH i2c: F0 09 00 BE 05 00 6D F0 16 67 A0 18 CA 66 7D [00:23:08]GetLastDocTimeStamp 1729556390 [00:23:08]current date 1729556589 [00:23:08]FM_GetShiftState [00:23:08]SAM_PROTO_GetShiftState [00:23:08]wFMCommunicate request_size=4 [00:23:08]MH_SAM_APDU [00:23:08]CAPDU: 80 13 01 00 [00:23:08]Write to MH i2c: E2 08 00 BF 05 80 13 01 00 00 00 00 00 41 [00:23:08]Write i2c OK [00:23:08]MH_I2C_Read... [00:23:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:23:09]Read from MH i2c: E2 [00:23:09]MH_I2C_Read... [00:23:09]Read from MH i2c: E2 0E 00 [00:23:09]MH_I2C_Read... [00:23:09]Read from MH i2c: E2 0E 00 BF 05 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 36 [00:23:09]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [00:23:09]wFMCommunicate OK [00:23:09]SAM_PROTO_GetShiftState done [00:23:09]FM_GetShiftState done [00:23:09]opened in 1729556094 [00:23:09]opened+sec_in_day 1729642494 [00:23:09]quantity*price = 24017 [00:23:09]sum+1 = 24018 [00:23:09]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.17 ИТОГО: 240.00 Внесено: 240.00 СДАЧА: 0.00 НСП 1% : 2.12 НДС 12% : 25.50 Наличными: 240.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 4 22.10.2024 00:23 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 187975 ФПД: 30272535527200 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T002309&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187975&fm=30272535527200&tin=02508201610067®Number=0000000000100030&sum=24000 [00:23:10]StoreToDocumentArchive [00:23:10]shift 461 fd 187975 [00:23:10]save to /storage/0461/doc_00187975 [00:23:10]save last doc name /storage/0461/doc_00187975 to /storage/kkm_last_doc_name [00:23:10]save OK [00:23:10]Clear old archive folders... [00:23:10]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:23:10]tlvbuf is 01B97AA0 [00:23:10]SAM_PROTO_ClearQueue [00:23:10]wFMCommunicate request_size=4 [00:23:10]MH_SAM_APDU [00:23:10]CAPDU: 80 09 00 00 [00:23:10]Write to MH i2c: E2 08 00 CC 05 80 09 00 00 00 00 00 00 43 [00:23:10]Write i2c OK [00:23:10]MH_I2C_Read... [00:23:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:23:10]Read from MH i2c: E2 [00:23:10]MH_I2C_Read... [00:23:10]Read from MH i2c: E2 03 00 [00:23:10]MH_I2C_Read... [00:23:10]Read from MH i2c: E2 03 00 CC 05 00 90 00 45 [00:23:10]RAPDU: 90 00 [00:23:10]wFMCommunicate OK [00:23:10]SAM_PROTO_ClearQueue done [00:23:10]KKMCreateOFDPacket [00:23:10]OFDProtocolAddRootSTLVToBuf [00:23:10]FM_MakeSignedData [00:23:10]FM_MakeSignedData [00:23:10]SAM_PROTO_SignData [00:23:10]wFMCommunicate request_size=4 [00:23:10]MH_SAM_APDU [00:23:10]CAPDU: 80 0D 01 02 [00:23:10]Write to MH i2c: E2 08 00 CD 05 80 0D 01 02 00 00 00 00 4B [00:23:10]Write i2c OK [00:23:10]MH_I2C_Read... [00:23:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:23:10]Read from MH i2c: E2 [00:23:10]MH_I2C_Read... [00:23:10]Read from MH i2c: E2 03 00 [00:23:10]MH_I2C_Read... [00:23:10]Read from MH i2c: E2 03 00 CD 05 00 90 00 46 [00:23:10]RAPDU: 90 00 [00:23:10]wFMCommunicate OK [00:23:10]wFMCommunicate request_size=255 [00:23:10]MH_SAM_APDU [00:23: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 33 FF 03 08 00 03 06 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 D1 5D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 5D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F6 09 00 00 00 00 07 04 06 00 C0 5D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 00 00 00 F4 03 04 00 6D F0 16 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 47 DE 02 00 35 04 06 00 1B [00:23:10]Write to MH i2c: E2 02 01 CE 05 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 06 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 D1 5D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 5D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F6 09 00 00 00 00 07 04 06 00 C0 5D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 00 00 00 F4 03 04 00 6D F0 16 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 47 DE 02 00 35 04 06 00 1B 00 00 B2 [00:23:10]Write i2c OK [00:23:10]MH_I2C_Read... [00:23:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:23:10]Read from MH i2c: E2 [00:23:10]MH_I2C_Read... [00:23:10]Read from MH i2c: E2 03 00 [00:23:10]MH_I2C_Read... [00:23:10]Read from MH i2c: E2 03 00 CE 05 00 90 00 47 [00:23:10]RAPDU: 90 00 [00:23:10]wFMCommunicate OK [00:23:10]wFMCommunicate request_size=10 [00:23:10]MH_SAM_APDU [00:23:10]CAPDU: 80 0D 02 02 05 88 5F B9 FF 20 [00:23:10]Write to MH i2c: E2 0D 00 CF 05 80 0D 02 02 05 00 88 5F B9 FF 20 00 00 17 [00:23:10]Write i2c OK [00:23:10]MH_I2C_Read... [00:23:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:23:10]Read from MH i2c: E2 [00:23:10]MH_I2C_Read... [00:23:10]Read from MH i2c: E2 03 00 [00:23:10]MH_I2C_Read... [00:23:10]Read from MH i2c: E2 03 00 CF 05 00 90 00 48 [00:23:10]RAPDU: 90 00 [00:23:10]wFMCommunicate OK [00:23:10]wFMCommunicate request_size=4 [00:23:10]MH_SAM_APDU [00:23:10]CAPDU: 80 0D 03 02 [00:23:10]Write to MH i2c: E2 08 00 D0 05 80 0D 03 02 00 00 00 00 50 [00:23:10]Write i2c OK [00:23:10]MH_I2C_Read... [00:23:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:23:10]Read from MH i2c: E2 [00:23:10]MH_I2C_Read... [00:23:10]Read from MH i2c: E2 0B 00 [00:23:10]MH_I2C_Read... [00:23:10]Read from MH i2c: E2 0B 00 D0 05 00 08 40 E4 51 61 2E C3 DA 90 00 FA [00:23:10]RAPDU: 08 40 E4 51 61 2E C3 DA 90 00 [00:23:10]wFMCommunicate OK [00:23:10]SAM_PROTO_SignData done [00:23:10]FM_MakeSignedData done [00:23:10]CreateOFDProtocolMessage [00:23:10]wFMCommunicate request_size=4 [00:23:10]MH_SAM_APDU [00:23:10]CAPDU: 80 11 00 00 [00:23:10]Write to MH i2c: E2 08 00 D1 05 80 11 00 00 00 00 00 00 50 [00:23:10]Write i2c OK [00:23:10]MH_I2C_Read... [00:23:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:23:10]Read from MH i2c: E2 [00:23:10]MH_I2C_Read... [00:23:10]Read from MH i2c: E2 17 00 [00:23:10]MH_I2C_Read... [00:23:10]Read from MH i2c: E2 17 00 D1 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 9E [00:23:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [00:23:10]wFMCommunicate OK [00:23:10]CreateOFDProtocolMessage done [00:23:10]OFDSenderStorePacket 187975 [00:23:10]StoreOFDPacket docnum=187975 [00:23:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 DC 00 07 01 C6 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 33 FF 03 08 00 03 06 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 D1 5D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 5D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F6 09 00 00 00 00 07 04 06 00 C0 5D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 00 00 00 F4 03 04 00 6D F0 16 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 47 DE 02 00 35 04 06 00 1B 88 5F B9 FF 20 08 40 E4 51 61 2E C3 DA [00:23:10]CheckFolder [00:23:10]dirname=/storage/ofd_packets [00:23:10]CheckFolder done [00:23:10]ProducePacketName [00:23:10]name=ofd_packets/00187975 [00:23:10]NVStorageSaveData ofd_packets/00187975 [00:23:10]File name is /storage/ofd_packets/00187975 [00:23:10]Write 301 bytes [00:23:10]NVStorageSaveData done [00:23:10]OFDSenderStorePacket done [00:23:10]KKMCreateOFDPacket done [00:23:10]NVStorageSaveData kkm_last_timestamp [00:23:10]File name is /storage/kkm_last_timestamp [00:23:10]Write 4 bytes [00:23:10]NVStorageSaveData done [00:23:10]ExternCall_PrintAddStr [00:23:10]wPrintStart [00:23:10]Write to MH i2c: 01 00 00 D2 05 D7 [00:23:10]Write i2c OK [00:23:10]MH_I2C_Read... [00:23:10]Read from MH i2c: 01 [00:23:10]MH_I2C_Read... [00:23:10]Read from MH i2c: 01 07 00 [00:23:10]MH_I2C_Read... [00:23:10]Read from MH i2c: 01 07 00 D2 05 00 00 00 00 00 FF 0F EC [00:23:10]RasterBufferAndPrint [00:23:10]line Счет N : (1)210026 [00:23:10]line ИНН: 02508201610067 [00:23:10]line Контрольно-Кассовый Чек [00:23:10]line ПРОДАЖА [00:23:10]line ТРК (МРК, ГНК) : 42 [00:23:10]line Товар: 2710124130 [00:23:10]line Аи-92-К-3 [00:23:10]line 3.590 * 66.90 [00:23:10]line = 240.17 [00:23:10]line НДС 12% НСП 1% [00:23:10]line > о реализуемом товаре [00:23:10]line ОКРУГЛЕНИЕ: -0.17 [00:23:10]line ИТОГО: 240.00 [00:23:10]line Внесено: 240.00 [00:23:10]line СДАЧА: 0.00 [00:23:10]line НСП 1% : 2.12 [00:23:10]line НДС 12% : 25.50 [00:23:10]line Наличными: 240.00 [00:23:10]line Безнал.: 0.00 [00:23:10]line Место: АЗС № 86 "Партнер Нефть" [00:23:10]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [00:23:10]line СНО: Общий режим [00:23:10]line Чек 4 22.10.2024 00:23 [00:23:10]line Смена: 461 ФФД: 1.0 [00:23:10]line ЗНМ: 0300000155 [00:23:10]line РНМ: 0000000000100030 [00:23:10]line Версия ККМ: 001 [00:23:10]line ФМ: 0000000000965340 [00:23:10]line ФД: 187975 [00:23:10]line ФПД: 30272535527200 [00:23:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T002309&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187975&fm=30272535527200&tin=02508201610067®Number=0000000000100030&sum=24000 [00:23:10]written 0, free lines is 4095 [00:23:10]OFD Sender: Processing packet 187975 [packets to send 1062, broken 1061] [00:23:10]ProducePacketName [00:23:10]name=ofd_packets/00187975 [00:23:10]OFD Sender: To server: pG, [00:23:10]CommunicateWithHost lk.salyk.kg:30040 [00:23:10]ConnectInit lk.salyk.kg [00:23:10]Connected sock=8 [00:23:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 DC 00 07 01 C6 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 33 FF 03 08 00 03 06 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 D1 5D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 5D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F6 09 00 00 00 00 07 04 06 00 C0 5D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 00 00 00 F4 03 04 00 6D F0 16 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 47 DE 02 00 35 04 06 00 1B 88 5F B9 FF 20 08 40 E4 51 61 2E C3 DA [00:23:11]Write to MH i2c: 01 00 00 FD 05 02 [00:23:11]Write i2c OK [00:23:11]MH_I2C_Read... [00:23:11]Read from MH i2c: 01 [00:23:11]MH_I2C_Read... [00:23:11]Read from MH i2c: 01 07 00 [00:23:11]MH_I2C_Read... [00:23:11]Read from MH i2c: 01 07 00 FD 05 00 00 00 00 00 5E 0C 73 [00:23:11]RasterBufferAndPrint [00:23:11]line [00:23:11]line [00:23:11]line [00:23:11]line [00:23:11]line [00:23:11]written 0, free lines is 3169 [00:23:11]MH_Cut [00:23:11]Write to MH i2c: D1 01 00 04 06 01 DC [00:23:11]Write i2c OK [00:23:11]MH_I2C_Read... [00:23:11]Read from MH i2c: D1 [00:23:11]MH_I2C_Read... [00:23:11]Read from MH i2c: D1 01 00 [00:23:11]MH_I2C_Read... [00:23:11]Read from MH i2c: D1 01 00 04 06 00 DB [00:23:11]Write to MH i2c: 01 00 00 05 06 0B [00:23:11]Write i2c OK [00:23:11]MH_I2C_Read... [00:23:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 9E E7 47 00 A0 00 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 47 DE 02 00 F4 03 04 00 5C 9A 16 67 B6 04 01 00 00 B9 04 A6 CA 21 84 49 4F [00:23:11]CommunicateWithHost err = 0 [00:23:11]CheckOFDResponse [00:23:11]1017 (14) - 77093643461234 [00:23:11]1041 (16) - 0000000000965340 [00:23:11]1040 (4) - 187975 [00:23:11]1012 (4) - 21.10.2024 18:15 [00:23:11]1206 (1) - 0 [00:23:11]OFD Sender: Remove packet 187975 [00:23:11]ProducePacketName [00:23:11]name=ofd_packets/00187975 [00:23:11]NVStorageDeleteData [00:23:11]OFD Sender: No OFD packet to send [00:23:12]*** Cut start [00:23:12]*** Partial cut [00:23:12]*** CUTSNS_PIN = 1 [00:23:12]*** CUTSNS_PIN = 0 [00:23:12]*** Brake cut motor [00:23:13]Read from MH i2c: 01 [00:23:13]MH_I2C_Read... [00:23:13]*** Stop cut motor [00:23:13]*** Cut end [00:23:13]Read from MH i2c: 01 07 00 [00:23:13]MH_I2C_Read... [00:23:13]Read from MH i2c: 01 07 00 05 06 00 00 00 00 00 FF 0F 20 [00:23:13]process_action close_receipt done [00:23:13]requested_data is exist [00:23:13]produce_requested_data [00:23:13]requested_item fm.sn is exist - process it [00:23:13]wFMCommunicate request_size=4 [00:23:13]MH_SAM_APDU [00:23:13]CAPDU: 80 11 00 00 [00:23:13]Write to MH i2c: E2 08 00 06 06 80 11 00 00 00 00 00 00 86 [00:23:13]Write i2c OK [00:23:13]MH_I2C_Read... [00:23:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:23:13]Read from MH i2c: E2 [00:23:13]MH_I2C_Read... [00:23:13]Read from MH i2c: E2 17 00 [00:23:13]MH_I2C_Read... [00:23:13]Read from MH i2c: E2 17 00 06 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 D4 [00:23:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [00:23:13]wFMCommunicate OK [00:23:13]requested_item fd.num is exist - process it [00:23:13]SAM_PROTO_GetFieldsCounters [00:23:13]wFMCommunicate request_size=4 [00:23:13]MH_SAM_APDU [00:23:13]CAPDU: 80 13 00 00 [00:23:13]Write to MH i2c: E2 08 00 07 06 80 13 00 00 00 00 00 00 89 [00:23:13]Write i2c OK [00:23:13]MH_I2C_Read... [00:23:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:23:13]Read from MH i2c: E2 [00:23:13]MH_I2C_Read... [00:23:13]Read from MH i2c: E2 62 00 [00:23:13]MH_I2C_Read... [00:23:13]Read from MH i2c: E2 62 00 07 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 47 DE 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 04 00 00 00 5E 04 04 00 04 00 00 00 57 04 04 00 05 00 00 00 19 04 04 00 00 00 00 00 90 00 91 [00:23:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 47 DE 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 04 00 00 00 5E 04 04 00 04 00 00 00 57 04 04 00 05 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:23:13]wFMCommunicate OK [00:23:13]SAM_PROTO_GetFieldsCounters done [00:23:13]requested_item shift.num is exist - process it [00:23:13]requested_item shift.opened is exist - process it [00:23:13]req_shift_opened [00:23:13]FM_GetShiftState [00:23:13]SAM_PROTO_GetShiftState [00:23:13]wFMCommunicate request_size=4 [00:23:13]MH_SAM_APDU [00:23:13]CAPDU: 80 13 01 00 [00:23:13]Write to MH i2c: E2 08 00 08 06 80 13 01 00 00 00 00 00 8B [00:23:13]Write i2c OK [00:23:13]MH_I2C_Read... [00:23:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:23:13]Read from MH i2c: E2 [00:23:13]MH_I2C_Read... [00:23:13]Read from MH i2c: E2 0E 00 [00:23:13]MH_I2C_Read... [00:23:13]Read from MH i2c: E2 0E 00 08 06 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 80 [00:23:13]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [00:23:13]wFMCommunicate OK [00:23:13]SAM_PROTO_GetShiftState done [00:23:13]FM_GetShiftState done [00:23:13]req_shift_opened done [00:23:13]requested_item shift.open_date is exist - process it [00:23:13]req_shift_open_date [00:23:13]req_shift_open_date done [00:23:13]produce_requested_data done [00:23:13]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187975,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [00:23:13]process_action_free close_receipt [00:23:13]json_value_free [00:23:13]json_value_free done [00:23:13]process_json_proto returns [00:23:13]Send response to host [00:23:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187975,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [00:23:13]free response buf [00:23:13]execute_script done [00:23:13]execute_script returns [00:23:13]free content buf [00:23:13]Sock 9.Close socket [00:23:13]Sock 9.Thread stoped [00:23:16]OFD Sender: No OFD packet to send [00:23:21]OFD Sender: No OFD packet to send [00:23:26]OFD Sender: No OFD packet to send [00:23:31]OFD Sender: No OFD packet to send [00:23:36]OFD Sender: No OFD packet to send [00:23:41]OFD Sender: No OFD packet to send [00:23:46]OFD Sender: No OFD packet to send [00:23:51]OFD Sender: No OFD packet to send [00:23:56]OFD Sender: No OFD packet to send [00:24:02]OFD Sender: No OFD packet to send [00:24:07]OFD Sender: No OFD packet to send [00:24:12]OFD Sender: No OFD packet to send [00:24:17]OFD Sender: No OFD packet to send [00:24:22]OFD Sender: No OFD packet to send [00:24:27]OFD Sender: No OFD packet to send [00:24:32]OFD Sender: No OFD packet to send [00:24:37]OFD Sender: No OFD packet to send [00:24:42]OFD Sender: No OFD packet to send [00:24:47]OFD Sender: No OFD packet to send [00:24:52]OFD Sender: No OFD packet to send [00:24:57]OFD Sender: No OFD packet to send [00:25:02]OFD Sender: No OFD packet to send [00:25:07]OFD Sender: No OFD packet to send [00:25:12]OFD Sender: No OFD packet to send [00:25:17]OFD Sender: No OFD packet to send [00:25:22]OFD Sender: No OFD packet to send [00:25:27]OFD Sender: No OFD packet to send [00:25:32]OFD Sender: No OFD packet to send [00:25:37]OFD Sender: No OFD packet to send [00:25:42]OFD Sender: No OFD packet to send [00:25:47]OFD Sender: No OFD packet to send [00:25:52]OFD Sender: No OFD packet to send [00:25:57]OFD Sender: No OFD packet to send [00:26:02]OFD Sender: No OFD packet to send [00:26:07]OFD Sender: No OFD packet to send [00:26:12]OFD Sender: No OFD packet to send [00:26:17]OFD Sender: No OFD packet to send [00:26:22]OFD Sender: No OFD packet to send [00:26:27]OFD Sender: No OFD packet to send [00:26:32]OFD Sender: No OFD packet to send [00:26:37]OFD Sender: No OFD packet to send [00:26:42]OFD Sender: No OFD packet to send [00:26:47]OFD Sender: No OFD packet to send [00:26:52]OFD Sender: No OFD packet to send [00:26:57]OFD Sender: No OFD packet to send [00:27:02]OFD Sender: No OFD packet to send [00:27:07]OFD Sender: No OFD packet to send [00:27:12]OFD Sender: No OFD packet to send [00:27:17]OFD Sender: No OFD packet to send [00:27:22]OFD Sender: No OFD packet to send [00:27:27]OFD Sender: No OFD packet to send [00:27:32]OFD Sender: No OFD packet to send [00:27:37]OFD Sender: No OFD packet to send [00:27:42]OFD Sender: No OFD packet to send [00:27:48]OFD Sender: No OFD packet to send [00:27:53]OFD Sender: No OFD packet to send [00:27:58]OFD Sender: No OFD packet to send [00:28:03]OFD Sender: No OFD packet to send [00:28:08]OFD Sender: No OFD packet to send [00:28:13]OFD Sender: No OFD packet to send [00:28:18]OFD Sender: No OFD packet to send [00:28:23]OFD Sender: No OFD packet to send [00:28:28]OFD Sender: No OFD packet to send [00:28:33]OFD Sender: No OFD packet to send [00:28:38]OFD Sender: No OFD packet to send [00:28:43]OFD Sender: No OFD packet to send [00:28:48]OFD Sender: No OFD packet to send [00:28:53]OFD Sender: No OFD packet to send [00:28:58]OFD Sender: No OFD packet to send [00:29:03]OFD Sender: No OFD packet to send [00:29:08]OFD Sender: No OFD packet to send [00:29:13]OFD Sender: No OFD packet to send [00:29:18]OFD Sender: No OFD packet to send [00:29:23]OFD Sender: No OFD packet to send [00:29:28]OFD Sender: No OFD packet to send [00:29:33]OFD Sender: No OFD packet to send [00:29:38]OFD Sender: No OFD packet to send [00:29:43]OFD Sender: No OFD packet to send [00:29:48]OFD Sender: No OFD packet to send [00:29:53]OFD Sender: No OFD packet to send [00:29:58]OFD Sender: No OFD packet to send [00:30:03]OFD Sender: No OFD packet to send [00:30:08]OFD Sender: No OFD packet to send [00:30:13]OFD Sender: No OFD packet to send [00:30:18]OFD Sender: No OFD packet to send [00:30:23]OFD Sender: No OFD packet to send [00:30:28]OFD Sender: No OFD packet to send [00:30:33]OFD Sender: No OFD packet to send [00:30:38]OFD Sender: No OFD packet to send [00:30:43]OFD Sender: No OFD packet to send [00:30:48]OFD Sender: No OFD packet to send [00:30:53]OFD Sender: No OFD packet to send [00:30:58]OFD Sender: No OFD packet to send [00:31:03]OFD Sender: No OFD packet to send [00:31:08]accept exits with 10 [00:31:08]New connection [00:31:08]New thread 3067198820 created [00:31:08]Thread 3067055460 joined [00:31:08]Waiting for new connection... [00:31:08] Sock 10.Parse request [00:31:08]Sock 10.Check first char [00:31:08]Sock 10.First char is OK [00:31:08]request: POST /json_proto HTTP/1.0 [00:31:08]Method: POST [00:31:08]URL: /json_proto [00:31:08]Method is POST - this is cgi request [00:31:08]url: /json_proto [00:31:08]query_string will be loaded in cgi processing [00:31:08]execute_cgi json_proto POST (null) [00:31:08]execute_cgi path=json_proto method=POST [00:31:08]POST find Content-Length [00:31:08]Host: 172.17.42.131:8080 [00:31:08]Content-Length: 979 [00:31:08]Content-Type: application/json [00:31:08] [00:31:08]POST finish read [00:31:08]Found Content-Length = 979 [00:31:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210027", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 75.20, "quantity" : 131.650, "sum" : 9900.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 86\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 131.65 \u0441\u043E\u043C", "deposit" : 9900.00, "total" : 9900.00, "payments": [ { "type": 0, "sum" : 9900.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:31:08]execute_script... [00:31: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)210027", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 75.20, "quantity" : 131.650, "sum" : 9900.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 86\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 131.65 \u0441\u043E\u043C", "deposit" : 9900.00, "total" : 9900.00, "payments": [ { "type": 0, "sum" : 9900.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:31:08]POST & json_proto [00:31:08]process_json_proto [00:31:08]json parsed OK: [00:31:08]protocol is kg_v1.0 [00:31:08]action value=close_receipt [00:31:08]process_action close_receipt [00:31:08]cmd_close_receipt [00:31:08]MH_GetDate [00:31:08]Write to MH i2c: F0 00 00 09 06 FE [00:31:08]Write i2c OK [00:31:08]MH_I2C_Read... [00:31:08]Read from MH i2c: F0 [00:31:08]MH_I2C_Read... [00:31:08]Read from MH i2c: F0 09 00 [00:31:08]MH_I2C_Read... [00:31:08]Read from MH i2c: F0 09 00 09 06 00 4D F2 16 67 A0 18 CA 66 AB [00:31:08]GetLastDocTimeStamp 1729556589 [00:31:08]current date 1729557069 [00:31:08]FM_GetShiftState [00:31:08]SAM_PROTO_GetShiftState [00:31:08]wFMCommunicate request_size=4 [00:31:08]MH_SAM_APDU [00:31:08]CAPDU: 80 13 01 00 [00:31:08]Write to MH i2c: E2 08 00 0A 06 80 13 01 00 00 00 00 00 8D [00:31:08]Write i2c OK [00:31:08]MH_I2C_Read... [00:31:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:31:08]Read from MH i2c: E2 [00:31:08]MH_I2C_Read... [00:31:08]Read from MH i2c: E2 0E 00 [00:31:08]MH_I2C_Read... [00:31:08]Read from MH i2c: E2 0E 00 0A 06 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 82 [00:31:08]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [00:31:08]wFMCommunicate OK [00:31:08]SAM_PROTO_GetShiftState done [00:31:08]FM_GetShiftState done [00:31:08]opened in 1729556094 [00:31:08]opened+sec_in_day 1729642494 [00:31:08]quantity*price = 990008 [00:31:08]sum+1 = 990009 [00:31:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.08 ИТОГО: 9900.00 Внесено: 9900.00 СДАЧА: 0.00 НСП 1% : 87.61 НДС 12% : 1051.34 Наличными: 9900.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 5 22.10.2024 00:31 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Дисконтная программа ДТ номер 86 сэкономлено 131.65 сом ФМ: 0000000000965340 ФД: 187976 ФПД: 272148043244977 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T003109&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187976&fm=272148043244977&tin=02508201610067®Number=0000000000100030&sum=990000 [00:31:09]StoreToDocumentArchive [00:31:09]shift 461 fd 187976 [00:31:09]save to /storage/0461/doc_00187976 [00:31:09]save last doc name /storage/0461/doc_00187976 to /storage/kkm_last_doc_name [00:31:09]save OK [00:31:09]Clear old archive folders... [00:31:09]ProcessDocumentItem done err = 0, tmpTLVsize=248 [00:31:09]tlvbuf is 01B99540 [00:31:09]SAM_PROTO_ClearQueue [00:31:09]wFMCommunicate request_size=4 [00:31:09]MH_SAM_APDU [00:31:09]CAPDU: 80 09 00 00 [00:31:09]Write to MH i2c: E2 08 00 17 06 80 09 00 00 00 00 00 00 8F [00:31:09]Write i2c OK [00:31:09]MH_I2C_Read... [00:31:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:31:09]Read from MH i2c: E2 [00:31:09]MH_I2C_Read... [00:31:09]Read from MH i2c: E2 03 00 [00:31:09]MH_I2C_Read... [00:31:09]Read from MH i2c: E2 03 00 17 06 00 90 00 91 [00:31:09]RAPDU: 90 00 [00:31:09]wFMCommunicate OK [00:31:09]SAM_PROTO_ClearQueue done [00:31:09]KKMCreateOFDPacket [00:31:09]OFDProtocolAddRootSTLVToBuf [00:31:09]FM_MakeSignedData [00:31:09]FM_MakeSignedData [00:31:09]SAM_PROTO_SignData [00:31:09]wFMCommunicate request_size=4 [00:31:09]MH_SAM_APDU [00:31:09]CAPDU: 80 0D 01 02 [00:31:09]Write to MH i2c: E2 08 00 18 06 80 0D 01 02 00 00 00 00 97 [00:31:09]Write i2c OK [00:31:09]MH_I2C_Read... [00:31:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:31:10]Read from MH i2c: E2 [00:31:10]MH_I2C_Read... [00:31:10]Read from MH i2c: E2 03 00 [00:31:10]MH_I2C_Read... [00:31:10]Read from MH i2c: E2 03 00 18 06 00 90 00 92 [00:31:10]RAPDU: 90 00 [00:31:10]wFMCommunicate OK [00:31:10]wFMCommunicate request_size=255 [00:31:10]MH_SAM_APDU [00:31:10]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 42 02 02 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 38 1B 0F 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 1B 0F 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 22 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AE 9A 01 00 00 00 07 04 06 00 30 1B 0F 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 4D F2 16 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 48 DE 02 00 35 04 06 00 F7 84 67 71 [00:31:10]Write to MH i2c: E2 02 01 19 06 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 42 02 02 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 38 1B 0F 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 1B 0F 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 22 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AE 9A 01 00 00 00 07 04 06 00 30 1B 0F 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 4D F2 16 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 48 DE 02 00 35 04 06 00 F7 84 67 71 00 00 61 [00:31:10]Write i2c OK [00:31:10]MH_I2C_Read... [00:31:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:31:10]Read from MH i2c: E2 [00:31:10]MH_I2C_Read... [00:31:10]Read from MH i2c: E2 03 00 [00:31:10]MH_I2C_Read... [00:31:10]Read from MH i2c: E2 03 00 19 06 00 90 00 93 [00:31:10]RAPDU: 90 00 [00:31:10]wFMCommunicate OK [00:31:10]wFMCommunicate request_size=7 [00:31:10]MH_SAM_APDU [00:31:10]CAPDU: 80 0D 02 02 02 A5 B1 [00:31:10]Write to MH i2c: E2 0A 00 1A 06 80 0D 02 02 02 00 A5 B1 00 00 F4 [00:31:10]Write i2c OK [00:31:10]MH_I2C_Read... [00:31:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:31:10]Read from MH i2c: E2 [00:31:10]MH_I2C_Read... [00:31:10]Read from MH i2c: E2 03 00 [00:31:10]MH_I2C_Read... [00:31:10]Read from MH i2c: E2 03 00 1A 06 00 90 00 94 [00:31:10]RAPDU: 90 00 [00:31:10]wFMCommunicate OK [00:31:10]wFMCommunicate request_size=4 [00:31:10]MH_SAM_APDU [00:31:10]CAPDU: 80 0D 03 02 [00:31:10]Write to MH i2c: E2 08 00 1B 06 80 0D 03 02 00 00 00 00 9C [00:31:10]Write i2c OK [00:31:10]MH_I2C_Read... [00:31:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:31:10]Read from MH i2c: E2 [00:31:10]MH_I2C_Read... [00:31:10]Read from MH i2c: E2 0B 00 [00:31:10]MH_I2C_Read... [00:31:10]Read from MH i2c: E2 0B 00 1B 06 00 97 E2 BD 24 16 6D 2D 28 90 00 CF [00:31:10]RAPDU: 97 E2 BD 24 16 6D 2D 28 90 00 [00:31:10]wFMCommunicate OK [00:31:10]SAM_PROTO_SignData done [00:31:10]FM_MakeSignedData done [00:31:10]CreateOFDProtocolMessage [00:31:10]wFMCommunicate request_size=4 [00:31:10]MH_SAM_APDU [00:31:10]CAPDU: 80 11 00 00 [00:31:10]Write to MH i2c: E2 08 00 1C 06 80 11 00 00 00 00 00 00 9C [00:31:10]Write i2c OK [00:31:10]MH_I2C_Read... [00:31:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:31:10]Read from MH i2c: E2 [00:31:10]MH_I2C_Read... [00:31:10]Read from MH i2c: E2 17 00 [00:31:10]MH_I2C_Read... [00:31:10]Read from MH i2c: E2 17 00 1C 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 EA [00:31:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [00:31:10]wFMCommunicate OK [00:31:10]CreateOFDProtocolMessage done [00:31:10]OFDSenderStorePacket 187976 [00:31:10]StoreOFDPacket docnum=187976 [00:31:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 F1 93 04 01 63 FA 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 42 02 02 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 38 1B 0F 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 1B 0F 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 22 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AE 9A 01 00 00 00 07 04 06 00 30 1B 0F 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 4D F2 16 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 48 DE 02 00 35 04 06 00 F7 84 67 71 A5 B1 97 E2 BD 24 16 6D 2D 28 [00:31:10]CheckFolder [00:31:10]dirname=/storage/ofd_packets [00:31:10]CheckFolder done [00:31:10]ProducePacketName [00:31:10]name=ofd_packets/00187976 [00:31:10]NVStorageSaveData ofd_packets/00187976 [00:31:10]File name is /storage/ofd_packets/00187976 [00:31:10]Write 298 bytes [00:31:10]NVStorageSaveData done [00:31:10]OFDSenderStorePacket done [00:31:10]KKMCreateOFDPacket done [00:31:10]NVStorageSaveData kkm_last_timestamp [00:31:10]File name is /storage/kkm_last_timestamp [00:31:10]Write 4 bytes [00:31:10]NVStorageSaveData done [00:31:10]ExternCall_PrintAddStr [00:31:10]wPrintStart [00:31:10]Write to MH i2c: 01 00 00 1D 06 23 [00:31:10]Write i2c OK [00:31:10]MH_I2C_Read... [00:31:10]Read from MH i2c: 01 [00:31:10]MH_I2C_Read... [00:31:10]Read from MH i2c: 01 07 00 [00:31:10]MH_I2C_Read... [00:31:10]Read from MH i2c: 01 07 00 1D 06 00 00 00 00 00 FF 0F 38 [00:31:10]RasterBufferAndPrint [00:31:10]line Счет N : (1)210027 [00:31:10]line ИНН: 02508201610067 [00:31:10]line Контрольно-Кассовый Чек [00:31:10]line ПРОДАЖА [00:31:10]line ТРК (МРК, ГНК) : 51 [00:31:10]line Товар: 2710194210 [00:31:10]line ДТ-К-5 [00:31:10]line 131.650 * 75.20 [00:31:10]line = 9900.08 [00:31:10]line НДС 12% НСП 1% [00:31:10]line > о реализуемом товаре [00:31:10]line ОКРУГЛЕНИЕ: -0.08 [00:31:10]line ИТОГО: 9900.00 [00:31:10]line Внесено: 9900.00 [00:31:10]line СДАЧА: 0.00 [00:31:10]line НСП 1% : 87.61 [00:31:10]line НДС 12% : 1051.34 [00:31:10]line Наличными: 9900.00 [00:31:10]line Безнал.: 0.00 [00:31:10]line Место: АЗС № 86 "Партнер Нефть" [00:31:10]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [00:31:10]line СНО: Общий режим [00:31:10]line Чек 5 22.10.2024 00:31 [00:31:10]line Смена: 461 ФФД: 1.0 [00:31:10]line ЗНМ: 0300000155 [00:31:10]line РНМ: 0000000000100030 [00:31:10]line Версия ККМ: 001 [00:31:10]line [00:31:10]line Дисконтная программа [00:31:10]line ДТ [00:31:10]line номер 86 [00:31:10]line сэкономлено 131.65 сом [00:31:10]line ФМ: 0000000000965340 [00:31:10]line ФД: 187976 [00:31:10]line ФПД: 272148043244977 [00:31:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T003109&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187976&fm=272148043244977&tin=02508201610067®Number=0000000000100030&sum=990000 [00:31:10]written 0, free lines is 4095 [00:31:10]OFD Sender: Processing packet 187976 [packets to send 1062, broken 1061] [00:31:10]ProducePacketName [00:31:10]name=ofd_packets/00187976 [00:31:10]OFD Sender: To server: pG, [00:31:10]CommunicateWithHost lk.salyk.kg:30040 [00:31:10]ConnectInit lk.salyk.kg [00:31:10]Connected sock=9 [00:31:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 F1 93 04 01 63 FA 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 42 02 02 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 38 1B 0F 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 1B 0F 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 22 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AE 9A 01 00 00 00 07 04 06 00 30 1B 0F 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 4D F2 16 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 48 DE 02 00 35 04 06 00 F7 84 67 71 A5 B1 97 E2 BD 24 16 6D 2D 28 [00:31:10]Write to MH i2c: 01 00 00 4D 06 53 [00:31:10]Write i2c OK [00:31:10]MH_I2C_Read... [00:31:10]Read from MH i2c: 01 [00:31:10]MH_I2C_Read... [00:31:10]Read from MH i2c: 01 07 00 [00:31:10]MH_I2C_Read... [00:31:10]Read from MH i2c: 01 07 00 4D 06 00 00 00 00 00 E3 0B 48 [00:31:10]RasterBufferAndPrint [00:31:10]line [00:31:10]line [00:31:10]line [00:31:10]line [00:31:10]line [00:31:10]written 0, free lines is 3045 [00:31:11]MH_Cut [00:31:11]Write to MH i2c: D1 01 00 54 06 01 2C [00:31:11]Write i2c OK [00:31:11]MH_I2C_Read... [00:31:11]Read from MH i2c: D1 [00:31:11]MH_I2C_Read... [00:31:11]Read from MH i2c: D1 01 00 [00:31:11]MH_I2C_Read... [00:31:11]Read from MH i2c: D1 01 00 54 06 00 2B [00:31:11]Write to MH i2c: 01 00 00 55 06 5B [00:31:11]Write i2c OK [00:31:11]MH_I2C_Read... [00:31:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 A0 C2 47 00 BA AC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 48 DE 02 00 F4 03 04 00 3C 9C 16 67 B6 04 01 00 00 F6 93 8D 6C FA CC E7 1C [00:31:11]CommunicateWithHost err = 0 [00:31:11]CheckOFDResponse [00:31:11]1017 (14) - 77093643461234 [00:31:11]1041 (16) - 0000000000965340 [00:31:11]1040 (4) - 187976 [00:31:11]1012 (4) - 21.10.2024 18:23 [00:31:11]1206 (1) - 0 [00:31:11]OFD Sender: Remove packet 187976 [00:31:11]ProducePacketName [00:31:11]name=ofd_packets/00187976 [00:31:11]NVStorageDeleteData [00:31:11]OFD Sender: No OFD packet to send [00:31:12]*** Cut start [00:31:12]*** Partial cut [00:31:12]*** CUTSNS_PIN = 1 [00:31:12]*** CUTSNS_PIN = 0 [00:31:12]*** Brake cut motor [00:31:12]Read from MH i2c: 01 [00:31:13]MH_I2C_Read... [00:31:13]*** Stop cut motor [00:31:13]*** Cut end [00:31:13]Read from MH i2c: 01 07 00 [00:31:13]MH_I2C_Read... [00:31:13]Read from MH i2c: 01 07 00 55 06 00 00 00 00 00 FF 0F 70 [00:31:13]process_action close_receipt done [00:31:13]requested_data is exist [00:31:13]produce_requested_data [00:31:13]requested_item fm.sn is exist - process it [00:31:13]wFMCommunicate request_size=4 [00:31:13]MH_SAM_APDU [00:31:13]CAPDU: 80 11 00 00 [00:31:13]Write to MH i2c: E2 08 00 56 06 80 11 00 00 00 00 00 00 D6 [00:31:13]Write i2c OK [00:31:13]MH_I2C_Read... [00:31:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:31:13]Read from MH i2c: E2 [00:31:13]MH_I2C_Read... [00:31:13]Read from MH i2c: E2 17 00 [00:31:13]MH_I2C_Read... [00:31:13]Read from MH i2c: E2 17 00 56 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 24 [00:31:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [00:31:13]wFMCommunicate OK [00:31:13]requested_item fd.num is exist - process it [00:31:13]SAM_PROTO_GetFieldsCounters [00:31:13]wFMCommunicate request_size=4 [00:31:13]MH_SAM_APDU [00:31:13]CAPDU: 80 13 00 00 [00:31:13]Write to MH i2c: E2 08 00 57 06 80 13 00 00 00 00 00 00 D9 [00:31:13]Write i2c OK [00:31:13]MH_I2C_Read... [00:31:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:31:13]Read from MH i2c: E2 [00:31:13]MH_I2C_Read... [00:31:13]Read from MH i2c: E2 62 00 [00:31:13]MH_I2C_Read... [00:31:13]Read from MH i2c: E2 62 00 57 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 48 DE 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 05 00 00 00 5E 04 04 00 05 00 00 00 57 04 04 00 06 00 00 00 19 04 04 00 00 00 00 00 90 00 E5 [00:31:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 48 DE 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 05 00 00 00 5E 04 04 00 05 00 00 00 57 04 04 00 06 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:31:13]wFMCommunicate OK [00:31:13]SAM_PROTO_GetFieldsCounters done [00:31:13]requested_item shift.num is exist - process it [00:31:13]requested_item shift.opened is exist - process it [00:31:13]req_shift_opened [00:31:13]FM_GetShiftState [00:31:13]SAM_PROTO_GetShiftState [00:31:13]wFMCommunicate request_size=4 [00:31:13]MH_SAM_APDU [00:31:13]CAPDU: 80 13 01 00 [00:31:13]Write to MH i2c: E2 08 00 58 06 80 13 01 00 00 00 00 00 DB [00:31:13]Write i2c OK [00:31:13]MH_I2C_Read... [00:31:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:31:13]Read from MH i2c: E2 [00:31:13]MH_I2C_Read... [00:31:13]Read from MH i2c: E2 0E 00 [00:31:13]MH_I2C_Read... [00:31:13]Read from MH i2c: E2 0E 00 58 06 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 D0 [00:31:13]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [00:31:13]wFMCommunicate OK [00:31:13]SAM_PROTO_GetShiftState done [00:31:13]FM_GetShiftState done [00:31:13]req_shift_opened done [00:31:13]requested_item shift.open_date is exist - process it [00:31:13]req_shift_open_date [00:31:13]req_shift_open_date done [00:31:13]produce_requested_data done [00:31:13]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187976,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [00:31:13]process_action_free close_receipt [00:31:13]json_value_free [00:31:13]json_value_free done [00:31:13]process_json_proto returns [00:31:13]Send response to host [00:31:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187976,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [00:31:13]free response buf [00:31:13]execute_script done [00:31:13]execute_script returns [00:31:13]free content buf [00:31:13]Sock 10.Close socket [00:31:13]Sock 10.Thread stoped [00:31:16]OFD Sender: No OFD packet to send [00:31:21]OFD Sender: No OFD packet to send [00:31:26]OFD Sender: No OFD packet to send [00:31:31]OFD Sender: No OFD packet to send [00:31:36]OFD Sender: No OFD packet to send [00:31:41]OFD Sender: No OFD packet to send [00:31:46]OFD Sender: No OFD packet to send [00:31:51]OFD Sender: No OFD packet to send [00:31:56]OFD Sender: No OFD packet to send [00:32:01]OFD Sender: No OFD packet to send [00:32:06]OFD Sender: No OFD packet to send [00:32:11]OFD Sender: No OFD packet to send [00:32:16]OFD Sender: No OFD packet to send [00:32:21]OFD Sender: No OFD packet to send [00:32:26]OFD Sender: No OFD packet to send [00:32:31]OFD Sender: No OFD packet to send [00:32:36]OFD Sender: No OFD packet to send [00:32:41]OFD Sender: No OFD packet to send [00:32:47]OFD Sender: No OFD packet to send [00:32:52]OFD Sender: No OFD packet to send [00:32:57]OFD Sender: No OFD packet to send [00:33:02]OFD Sender: No OFD packet to send [00:33:07]OFD Sender: No OFD packet to send [00:33:12]OFD Sender: No OFD packet to send [00:33:17]OFD Sender: No OFD packet to send [00:33:22]OFD Sender: No OFD packet to send [00:33:27]OFD Sender: No OFD packet to send [00:33:32]OFD Sender: No OFD packet to send [00:33:37]OFD Sender: No OFD packet to send [00:33:42]OFD Sender: No OFD packet to send [00:33:47]OFD Sender: No OFD packet to send [00:33:52]OFD Sender: No OFD packet to send [00:33:57]OFD Sender: No OFD packet to send [00:34:02]OFD Sender: No OFD packet to send [00:34:07]OFD Sender: No OFD packet to send [00:34:12]OFD Sender: No OFD packet to send [00:34:17]OFD Sender: No OFD packet to send [00:34:22]OFD Sender: No OFD packet to send [00:34:27]OFD Sender: No OFD packet to send [00:34:32]OFD Sender: No OFD packet to send [00:34:37]OFD Sender: No OFD packet to send [00:34:42]OFD Sender: No OFD packet to send [00:34:47]OFD Sender: No OFD packet to send [00:34:52]OFD Sender: No OFD packet to send [00:34:57]OFD Sender: No OFD packet to send [00:35:02]OFD Sender: No OFD packet to send [00:35:07]OFD Sender: No OFD packet to send [00:35:12]OFD Sender: No OFD packet to send [00:35:17]OFD Sender: No OFD packet to send [00:35:22]OFD Sender: No OFD packet to send [00:35:27]OFD Sender: No OFD packet to send [00:35:32]OFD Sender: No OFD packet to send [00:35:37]OFD Sender: No OFD packet to send [00:35:42]OFD Sender: No OFD packet to send [00:35:47]OFD Sender: No OFD packet to send [00:35:52]OFD Sender: No OFD packet to send [00:35:57]OFD Sender: No OFD packet to send [00:36:02]OFD Sender: No OFD packet to send [00:36:07]OFD Sender: No OFD packet to send [00:36:12]OFD Sender: No OFD packet to send [00:36:17]OFD Sender: No OFD packet to send [00:36:22]OFD Sender: No OFD packet to send [00:36:27]OFD Sender: No OFD packet to send [00:36:33]OFD Sender: No OFD packet to send [00:36:38]OFD Sender: No OFD packet to send [00:36:43]OFD Sender: No OFD packet to send [00:36:48]OFD Sender: No OFD packet to send [00:36:53]OFD Sender: No OFD packet to send [00:36:58]OFD Sender: No OFD packet to send [00:37:03]OFD Sender: No OFD packet to send [00:37:08]OFD Sender: No OFD packet to send [00:37:13]OFD Sender: No OFD packet to send [00:37:18]OFD Sender: No OFD packet to send [00:37:23]OFD Sender: No OFD packet to send [00:37:26]accept exits with 8 [00:37:26]New connection [00:37:26]New thread 3067055460 created [00:37:26]Thread 3067198820 joined [00:37:26]Waiting for new connection... [00:37:26] Sock 8.Parse request [00:37:26]Sock 8.Check first char [00:37:26]Sock 8.First char is OK [00:37:26]request: POST /json_proto HTTP/1.0 [00:37:26]Method: POST [00:37:26]URL: /json_proto [00:37:26]Method is POST - this is cgi request [00:37:26]url: /json_proto [00:37:26]query_string will be loaded in cgi processing [00:37:26]execute_cgi json_proto POST (null) [00:37:26]execute_cgi path=json_proto method=POST [00:37:26]POST find Content-Length [00:37:26]Host: 172.17.42.131:8080 [00:37:26]Content-Length: 979 [00:37:26]Content-Type: application/json [00:37:26] [00:37:26]POST finish read [00:37:26]Found Content-Length = 979 [00:37:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210028", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 75.20, "quantity" : 131.650, "sum" : 9900.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 86\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 131.65 \u0441\u043E\u043C", "deposit" : 9900.00, "total" : 9900.00, "payments": [ { "type": 0, "sum" : 9900.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:37:26]execute_script... [00:37: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)210028", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 75.20, "quantity" : 131.650, "sum" : 9900.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 86\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 131.65 \u0441\u043E\u043C", "deposit" : 9900.00, "total" : 9900.00, "payments": [ { "type": 0, "sum" : 9900.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:37:26]POST & json_proto [00:37:26]process_json_proto [00:37:26]json parsed OK: [00:37:26]protocol is kg_v1.0 [00:37:26]action value=close_receipt [00:37:26]process_action close_receipt [00:37:26]cmd_close_receipt [00:37:26]MH_GetDate [00:37:26]Write to MH i2c: F0 00 00 59 06 4E [00:37:26]Write i2c OK [00:37:26]MH_I2C_Read... [00:37:26]Read from MH i2c: F0 [00:37:26]MH_I2C_Read... [00:37:26]Read from MH i2c: F0 09 00 [00:37:26]MH_I2C_Read... [00:37:26]Read from MH i2c: F0 09 00 59 06 00 C7 F3 16 67 A0 18 CA 66 76 [00:37:26]GetLastDocTimeStamp 1729557069 [00:37:26]current date 1729557447 [00:37:26]FM_GetShiftState [00:37:26]SAM_PROTO_GetShiftState [00:37:26]wFMCommunicate request_size=4 [00:37:26]MH_SAM_APDU [00:37:26]CAPDU: 80 13 01 00 [00:37:26]Write to MH i2c: E2 08 00 5A 06 80 13 01 00 00 00 00 00 DD [00:37:26]Write i2c OK [00:37:26]MH_I2C_Read... [00:37:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:37:26]Read from MH i2c: E2 [00:37:26]MH_I2C_Read... [00:37:26]Read from MH i2c: E2 0E 00 [00:37:26]MH_I2C_Read... [00:37:26]Read from MH i2c: E2 0E 00 5A 06 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 D2 [00:37:26]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [00:37:26]wFMCommunicate OK [00:37:26]SAM_PROTO_GetShiftState done [00:37:26]FM_GetShiftState done [00:37:26]opened in 1729556094 [00:37:26]opened+sec_in_day 1729642494 [00:37:26]quantity*price = 990008 [00:37:26]sum+1 = 990009 [00:37:26]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.08 ИТОГО: 9900.00 Внесено: 9900.00 СДАЧА: 0.00 НСП 1% : 87.61 НДС 12% : 1051.34 Наличными: 9900.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 6 22.10.2024 00:37 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Дисконтная программа ДТ номер 86 сэкономлено 131.65 сом ФМ: 0000000000965340 ФД: 187977 ФПД: 278227042119143 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T003727&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187977&fm=278227042119143&tin=02508201610067®Number=0000000000100030&sum=990000 [00:37:28]StoreToDocumentArchive [00:37:28]shift 461 fd 187977 [00:37:28]save to /storage/0461/doc_00187977 [00:37:28]save last doc name /storage/0461/doc_00187977 to /storage/kkm_last_doc_name [00:37:28]save OK [00:37:28]Clear old archive folders... [00:37:28]ProcessDocumentItem done err = 0, tmpTLVsize=248 [00:37:28]tlvbuf is 01C03550 [00:37:28]SAM_PROTO_ClearQueue [00:37:28]wFMCommunicate request_size=4 [00:37:28]MH_SAM_APDU [00:37:28]CAPDU: 80 09 00 00 [00:37:28]Write to MH i2c: E2 08 00 67 06 80 09 00 00 00 00 00 00 DF [00:37:28]Write i2c OK [00:37:28]MH_I2C_Read... [00:37:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:37:28]Read from MH i2c: E2 [00:37:28]MH_I2C_Read... [00:37:28]Read from MH i2c: E2 03 00 [00:37:28]MH_I2C_Read... [00:37:28]Read from MH i2c: E2 03 00 67 06 00 90 00 E1 [00:37:28]RAPDU: 90 00 [00:37:28]wFMCommunicate OK [00:37:28]SAM_PROTO_ClearQueue done [00:37:28]KKMCreateOFDPacket [00:37:28]OFDProtocolAddRootSTLVToBuf [00:37:28]FM_MakeSignedData [00:37:28]FM_MakeSignedData [00:37:28]SAM_PROTO_SignData [00:37:28]wFMCommunicate request_size=4 [00:37:28]MH_SAM_APDU [00:37:28]CAPDU: 80 0D 01 02 [00:37:28]Write to MH i2c: E2 08 00 68 06 80 0D 01 02 00 00 00 00 E7 [00:37:28]Write i2c OK [00:37:28]MH_I2C_Read... [00:37:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:37:28]Read from MH i2c: E2 [00:37:28]MH_I2C_Read... [00:37:28]Read from MH i2c: E2 03 00 [00:37:28]MH_I2C_Read... [00:37:28]Read from MH i2c: E2 03 00 68 06 00 90 00 E2 [00:37:28]RAPDU: 90 00 [00:37:28]wFMCommunicate OK [00:37:28]wFMCommunicate request_size=255 [00:37:28]MH_SAM_APDU [00:37:28]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 42 02 02 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 38 1B 0F 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 1B 0F 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 22 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AE 9A 01 00 00 00 07 04 06 00 30 1B 0F 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 00 00 00 F4 03 04 00 C7 F3 16 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 49 DE 02 00 35 04 06 00 FD 0B C8 03 [00:37:28]Write to MH i2c: E2 02 01 69 06 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 42 02 02 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 38 1B 0F 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 1B 0F 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 22 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AE 9A 01 00 00 00 07 04 06 00 30 1B 0F 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 00 00 00 F4 03 04 00 C7 F3 16 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 49 DE 02 00 35 04 06 00 FD 0B C8 03 00 00 AE [00:37:28]Write i2c OK [00:37:28]MH_I2C_Read... [00:37:28]OFD Sender: No OFD packet to send [00:37:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:37:28]Read from MH i2c: E2 [00:37:28]MH_I2C_Read... [00:37:28]Read from MH i2c: E2 03 00 [00:37:28]MH_I2C_Read... [00:37:28]Read from MH i2c: E2 03 00 69 06 00 90 00 E3 [00:37:28]RAPDU: 90 00 [00:37:28]wFMCommunicate OK [00:37:28]wFMCommunicate request_size=7 [00:37:28]MH_SAM_APDU [00:37:28]CAPDU: 80 0D 02 02 02 2D E7 [00:37:28]Write to MH i2c: E2 0A 00 6A 06 80 0D 02 02 02 00 2D E7 00 00 02 [00:37:28]Write i2c OK [00:37:28]MH_I2C_Read... [00:37:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:37:28]Read from MH i2c: E2 [00:37:28]MH_I2C_Read... [00:37:28]Read from MH i2c: E2 03 00 [00:37:28]MH_I2C_Read... [00:37:28]Read from MH i2c: E2 03 00 6A 06 00 90 00 E4 [00:37:28]RAPDU: 90 00 [00:37:28]wFMCommunicate OK [00:37:28]wFMCommunicate request_size=4 [00:37:28]MH_SAM_APDU [00:37:28]CAPDU: 80 0D 03 02 [00:37:28]Write to MH i2c: E2 08 00 6B 06 80 0D 03 02 00 00 00 00 EC [00:37:28]Write i2c OK [00:37:28]MH_I2C_Read... [00:37:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:37:28]Read from MH i2c: E2 [00:37:28]MH_I2C_Read... [00:37:28]Read from MH i2c: E2 0B 00 [00:37:28]MH_I2C_Read... [00:37:28]Read from MH i2c: E2 0B 00 6B 06 00 16 8F 52 96 DD B5 92 DE 90 00 7C [00:37:28]RAPDU: 16 8F 52 96 DD B5 92 DE 90 00 [00:37:28]wFMCommunicate OK [00:37:28]SAM_PROTO_SignData done [00:37:28]FM_MakeSignedData done [00:37:28]CreateOFDProtocolMessage [00:37:28]wFMCommunicate request_size=4 [00:37:28]MH_SAM_APDU [00:37:28]CAPDU: 80 11 00 00 [00:37:28]Write to MH i2c: E2 08 00 6C 06 80 11 00 00 00 00 00 00 EC [00:37:28]Write i2c OK [00:37:28]MH_I2C_Read... [00:37:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:37:28]Read from MH i2c: E2 [00:37:28]MH_I2C_Read... [00:37:28]Read from MH i2c: E2 17 00 [00:37:28]MH_I2C_Read... [00:37:28]Read from MH i2c: E2 17 00 6C 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 3A [00:37:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [00:37:28]wFMCommunicate OK [00:37:28]CreateOFDProtocolMessage done [00:37:28]OFDSenderStorePacket 187977 [00:37:28]StoreOFDPacket docnum=187977 [00:37:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 D3 39 04 01 8C 73 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 42 02 02 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 38 1B 0F 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 1B 0F 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 22 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AE 9A 01 00 00 00 07 04 06 00 30 1B 0F 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 00 00 00 F4 03 04 00 C7 F3 16 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 49 DE 02 00 35 04 06 00 FD 0B C8 03 2D E7 16 8F 52 96 DD B5 92 DE [00:37:28]CheckFolder [00:37:28]dirname=/storage/ofd_packets [00:37:28]CheckFolder done [00:37:28]ProducePacketName [00:37:28]name=ofd_packets/00187977 [00:37:28]NVStorageSaveData ofd_packets/00187977 [00:37:28]File name is /storage/ofd_packets/00187977 [00:37:28]Write 298 bytes [00:37:28]NVStorageSaveData done [00:37:28]OFDSenderStorePacket done [00:37:28]KKMCreateOFDPacket done [00:37:28]NVStorageSaveData kkm_last_timestamp [00:37:28]File name is /storage/kkm_last_timestamp [00:37:28]Write 4 bytes [00:37:28]NVStorageSaveData done [00:37:28]ExternCall_PrintAddStr [00:37:28]wPrintStart [00:37:28]Write to MH i2c: 01 00 00 6D 06 73 [00:37:28]Write i2c OK [00:37:28]MH_I2C_Read... [00:37:28]Read from MH i2c: 01 [00:37:28]MH_I2C_Read... [00:37:28]Read from MH i2c: 01 07 00 [00:37:28]MH_I2C_Read... [00:37:28]Read from MH i2c: 01 07 00 6D 06 00 00 00 00 00 FF 0F 88 [00:37:28]RasterBufferAndPrint [00:37:28]line Счет N : (1)210028 [00:37:28]line ИНН: 02508201610067 [00:37:28]line Контрольно-Кассовый Чек [00:37:28]line ПРОДАЖА [00:37:28]line ТРК (МРК, ГНК) : 51 [00:37:28]line Товар: 2710194210 [00:37:28]line ДТ-К-5 [00:37:28]line 131.650 * 75.20 [00:37:28]line = 9900.08 [00:37:28]line НДС 12% НСП 1% [00:37:28]line > о реализуемом товаре [00:37:28]line ОКРУГЛЕНИЕ: -0.08 [00:37:28]line ИТОГО: 9900.00 [00:37:28]line Внесено: 9900.00 [00:37:28]line СДАЧА: 0.00 [00:37:28]line НСП 1% : 87.61 [00:37:28]line НДС 12% : 1051.34 [00:37:28]line Наличными: 9900.00 [00:37:28]line Безнал.: 0.00 [00:37:28]line Место: АЗС № 86 "Партнер Нефть" [00:37:28]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [00:37:28]line СНО: Общий режим [00:37:28]line Чек 6 22.10.2024 00:37 [00:37:28]line Смена: 461 ФФД: 1.0 [00:37:28]line ЗНМ: 0300000155 [00:37:28]line РНМ: 0000000000100030 [00:37:28]line Версия ККМ: 001 [00:37:28]line [00:37:28]line Дисконтная программа [00:37:28]line ДТ [00:37:28]line номер 86 [00:37:28]line сэкономлено 131.65 сом [00:37:28]line ФМ: 0000000000965340 [00:37:28]line ФД: 187977 [00:37:28]line ФПД: 278227042119143 [00:37:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T003727&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187977&fm=278227042119143&tin=02508201610067®Number=0000000000100030&sum=990000 [00:37:28]written 0, free lines is 4095 [00:37:28]OFD Sender: Processing packet 187977 [packets to send 1062, broken 1061] [00:37:28]ProducePacketName [00:37:28]name=ofd_packets/00187977 [00:37:28]OFD Sender: To server: pG, [00:37:28]CommunicateWithHost lk.salyk.kg:30040 [00:37:28]ConnectInit lk.salyk.kg [00:37:28]Connected sock=10 [00:37:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 D3 39 04 01 8C 73 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 42 02 02 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 38 1B 0F 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 1B 0F 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 22 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AE 9A 01 00 00 00 07 04 06 00 30 1B 0F 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 00 00 00 F4 03 04 00 C7 F3 16 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 49 DE 02 00 35 04 06 00 FD 0B C8 03 2D E7 16 8F 52 96 DD B5 92 DE [00:37:29]Write to MH i2c: 01 00 00 9D 06 A3 [00:37:29]Write i2c OK [00:37:29]MH_I2C_Read... [00:37:29]Read from MH i2c: 01 [00:37:29]MH_I2C_Read... [00:37:29]Read from MH i2c: 01 07 00 [00:37:29]MH_I2C_Read... [00:37:29]Read from MH i2c: 01 07 00 9D 06 00 00 00 00 00 E4 0B 99 [00:37:29]RasterBufferAndPrint [00:37:29]line [00:37:29]line [00:37:29]line [00:37:29]line [00:37:29]line [00:37:29]written 0, free lines is 3047 [00:37:29]MH_Cut [00:37:29]Write to MH i2c: D1 01 00 A4 06 01 7C [00:37:29]Write i2c OK [00:37:29]MH_I2C_Read... [00:37:29]Read from MH i2c: D1 [00:37:29]MH_I2C_Read... [00:37:29]Read from MH i2c: D1 01 00 [00:37:29]MH_I2C_Read... [00:37:29]Read from MH i2c: D1 01 00 A4 06 00 7B [00:37:29]Write to MH i2c: 01 00 00 A5 06 AB [00:37:29]Write i2c OK [00:37:29]MH_I2C_Read... [00:37:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 38 C3 47 00 29 88 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 49 DE 02 00 F4 03 04 00 B6 9D 16 67 B6 04 01 00 00 79 F7 BD 01 EC 04 0C 16 [00:37:29]CommunicateWithHost err = 0 [00:37:29]CheckOFDResponse [00:37:29]1017 (14) - 77093643461234 [00:37:29]1041 (16) - 0000000000965340 [00:37:29]1040 (4) - 187977 [00:37:29]1012 (4) - 21.10.2024 18:30 [00:37:29]1206 (1) - 0 [00:37:29]OFD Sender: Remove packet 187977 [00:37:29]ProducePacketName [00:37:29]name=ofd_packets/00187977 [00:37:29]NVStorageDeleteData [00:37:29]OFD Sender: No OFD packet to send [00:37:30]*** Cut start [00:37:30]*** Partial cut [00:37:30]*** CUTSNS_PIN = 1 [00:37:30]*** CUTSNS_PIN = 0 [00:37:30]*** Brake cut motor [00:37:31]Read from MH i2c: 01 [00:37:31]MH_I2C_Read... [00:37:31]*** Stop cut motor [00:37:31]*** Cut end [00:37:31]Read from MH i2c: 01 07 00 [00:37:31]MH_I2C_Read... [00:37:31]Read from MH i2c: 01 07 00 A5 06 00 00 00 00 00 FF 0F C0 [00:37:31]process_action close_receipt done [00:37:31]requested_data is exist [00:37:31]produce_requested_data [00:37:31]requested_item fm.sn is exist - process it [00:37:31]wFMCommunicate request_size=4 [00:37:31]MH_SAM_APDU [00:37:31]CAPDU: 80 11 00 00 [00:37:31]Write to MH i2c: E2 08 00 A6 06 80 11 00 00 00 00 00 00 26 [00:37:31]Write i2c OK [00:37:31]MH_I2C_Read... [00:37:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:37:31]Read from MH i2c: E2 [00:37:31]MH_I2C_Read... [00:37:31]Read from MH i2c: E2 17 00 [00:37:31]MH_I2C_Read... [00:37:31]Read from MH i2c: E2 17 00 A6 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 74 [00:37:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [00:37:31]wFMCommunicate OK [00:37:31]requested_item fd.num is exist - process it [00:37:31]SAM_PROTO_GetFieldsCounters [00:37:31]wFMCommunicate request_size=4 [00:37:31]MH_SAM_APDU [00:37:31]CAPDU: 80 13 00 00 [00:37:31]Write to MH i2c: E2 08 00 A7 06 80 13 00 00 00 00 00 00 29 [00:37:31]Write i2c OK [00:37:31]MH_I2C_Read... [00:37:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:37:31]Read from MH i2c: E2 [00:37:31]MH_I2C_Read... [00:37:31]Read from MH i2c: E2 62 00 [00:37:31]MH_I2C_Read... [00:37:31]Read from MH i2c: E2 62 00 A7 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 49 DE 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 06 00 00 00 5E 04 04 00 06 00 00 00 57 04 04 00 07 00 00 00 19 04 04 00 00 00 00 00 90 00 39 [00:37:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 49 DE 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 06 00 00 00 5E 04 04 00 06 00 00 00 57 04 04 00 07 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:37:31]wFMCommunicate OK [00:37:31]SAM_PROTO_GetFieldsCounters done [00:37:31]requested_item shift.num is exist - process it [00:37:31]requested_item shift.opened is exist - process it [00:37:31]req_shift_opened [00:37:31]FM_GetShiftState [00:37:31]SAM_PROTO_GetShiftState [00:37:31]wFMCommunicate request_size=4 [00:37:31]MH_SAM_APDU [00:37:31]CAPDU: 80 13 01 00 [00:37:31]Write to MH i2c: E2 08 00 A8 06 80 13 01 00 00 00 00 00 2B [00:37:31]Write i2c OK [00:37:31]MH_I2C_Read... [00:37:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:37:31]Read from MH i2c: E2 [00:37:31]MH_I2C_Read... [00:37:31]Read from MH i2c: E2 0E 00 [00:37:31]MH_I2C_Read... [00:37:31]Read from MH i2c: E2 0E 00 A8 06 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 20 [00:37:31]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [00:37:31]wFMCommunicate OK [00:37:31]SAM_PROTO_GetShiftState done [00:37:31]FM_GetShiftState done [00:37:31]req_shift_opened done [00:37:31]requested_item shift.open_date is exist - process it [00:37:31]req_shift_open_date [00:37:31]req_shift_open_date done [00:37:31]produce_requested_data done [00:37:31]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187977,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [00:37:31]process_action_free close_receipt [00:37:31]json_value_free [00:37:31]json_value_free done [00:37:31]process_json_proto returns [00:37:31]Send response to host [00:37:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187977,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [00:37:31]free response buf [00:37:31]execute_script done [00:37:31]execute_script returns [00:37:31]free content buf [00:37:31]Sock 8.Close socket [00:37:31]Sock 8.Thread stoped [00:37:34]OFD Sender: No OFD packet to send [00:37:39]OFD Sender: No OFD packet to send [00:37:44]OFD Sender: No OFD packet to send [00:37:49]OFD Sender: No OFD packet to send [00:37:54]OFD Sender: No OFD packet to send [00:37:59]OFD Sender: No OFD packet to send [00:38:04]OFD Sender: No OFD packet to send [00:38:09]OFD Sender: No OFD packet to send [00:38:14]OFD Sender: No OFD packet to send [00:38:19]OFD Sender: No OFD packet to send [00:38:24]OFD Sender: No OFD packet to send [00:38:29]OFD Sender: No OFD packet to send [00:38:35]OFD Sender: No OFD packet to send [00:38:40]OFD Sender: No OFD packet to send [00:38:45]OFD Sender: No OFD packet to send [00:38:50]OFD Sender: No OFD packet to send [00:38:55]OFD Sender: No OFD packet to send [00:39:00]OFD Sender: No OFD packet to send [00:39:05]OFD Sender: No OFD packet to send [00:39:10]OFD Sender: No OFD packet to send [00:39:15]OFD Sender: No OFD packet to send [00:39:20]OFD Sender: No OFD packet to send [00:39:25]OFD Sender: No OFD packet to send [00:39:30]OFD Sender: No OFD packet to send [00:39:35]OFD Sender: No OFD packet to send [00:39:40]OFD Sender: No OFD packet to send [00:39:45]OFD Sender: No OFD packet to send [00:39:50]OFD Sender: No OFD packet to send [00:39:55]OFD Sender: No OFD packet to send [00:40:00]OFD Sender: No OFD packet to send [00:40:05]OFD Sender: No OFD packet to send [00:40:10]OFD Sender: No OFD packet to send [00:40:15]OFD Sender: No OFD packet to send [00:40:20]OFD Sender: No OFD packet to send [00:40:25]OFD Sender: No OFD packet to send [00:40:30]OFD Sender: No OFD packet to send [00:40:35]OFD Sender: No OFD packet to send [00:40:40]OFD Sender: No OFD packet to send [00:40:45]OFD Sender: No OFD packet to send [00:40:50]OFD Sender: No OFD packet to send [00:40:55]OFD Sender: No OFD packet to send [00:41:00]OFD Sender: No OFD packet to send [00:41:05]OFD Sender: No OFD packet to send [00:41:10]OFD Sender: No OFD packet to send [00:41:15]OFD Sender: No OFD packet to send [00:41:20]OFD Sender: No OFD packet to send [00:41:24]accept exits with 9 [00:41:24]New connection [00:41:24]New thread 3067198820 created [00:41:24]Thread 3067055460 joined [00:41:24]Waiting for new connection... [00:41:24] Sock 9.Parse request [00:41:24]Sock 9.Check first char [00:41:24]Sock 9.First char is OK [00:41:24]request: POST /json_proto HTTP/1.0 [00:41:24]Method: POST [00:41:24]URL: /json_proto [00:41:24]Method is POST - this is cgi request [00:41:24]url: /json_proto [00:41:24]query_string will be loaded in cgi processing [00:41:24]execute_cgi json_proto POST (null) [00:41:24]execute_cgi path=json_proto method=POST [00:41:24]POST find Content-Length [00:41:24]Host: 172.17.42.131:8080 [00:41:24]Content-Length: 979 [00:41:24]Content-Type: application/json [00:41:24] [00:41:24]POST finish read [00:41:24]Found Content-Length = 979 [00:41:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210029", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 75.20, "quantity" : 131.650, "sum" : 9900.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 86\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 131.65 \u0441\u043E\u043C", "deposit" : 9900.00, "total" : 9900.00, "payments": [ { "type": 0, "sum" : 9900.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:41:24]execute_script... [00:41: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)210029", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 75.20, "quantity" : 131.650, "sum" : 9900.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 86\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 131.65 \u0441\u043E\u043C", "deposit" : 9900.00, "total" : 9900.00, "payments": [ { "type": 0, "sum" : 9900.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:41:24]POST & json_proto [00:41:24]process_json_proto [00:41:24]json parsed OK: [00:41:24]protocol is kg_v1.0 [00:41:24]action value=close_receipt [00:41:24]process_action close_receipt [00:41:24]cmd_close_receipt [00:41:24]MH_GetDate [00:41:24]Write to MH i2c: F0 00 00 A9 06 9E [00:41:24]Write i2c OK [00:41:24]MH_I2C_Read... [00:41:24]Read from MH i2c: F0 [00:41:24]MH_I2C_Read... [00:41:24]Read from MH i2c: F0 09 00 [00:41:24]MH_I2C_Read... [00:41:24]Read from MH i2c: F0 09 00 A9 06 00 B5 F4 16 67 A0 18 CA 66 B5 [00:41:24]GetLastDocTimeStamp 1729557447 [00:41:24]current date 1729557685 [00:41:24]FM_GetShiftState [00:41:24]SAM_PROTO_GetShiftState [00:41:24]wFMCommunicate request_size=4 [00:41:24]MH_SAM_APDU [00:41:24]CAPDU: 80 13 01 00 [00:41:24]Write to MH i2c: E2 08 00 AA 06 80 13 01 00 00 00 00 00 2D [00:41:24]Write i2c OK [00:41:24]MH_I2C_Read... [00:41:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:41:24]Read from MH i2c: E2 [00:41:24]MH_I2C_Read... [00:41:24]Read from MH i2c: E2 0E 00 [00:41:24]MH_I2C_Read... [00:41:24]Read from MH i2c: E2 0E 00 AA 06 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 22 [00:41:24]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [00:41:24]wFMCommunicate OK [00:41:24]SAM_PROTO_GetShiftState done [00:41:24]FM_GetShiftState done [00:41:24]opened in 1729556094 [00:41:24]opened+sec_in_day 1729642494 [00:41:24]quantity*price = 990008 [00:41:24]sum+1 = 990009 [00:41:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.08 ИТОГО: 9900.00 Внесено: 9900.00 СДАЧА: 0.00 НСП 1% : 87.61 НДС 12% : 1051.34 Наличными: 9900.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 7 22.10.2024 00:41 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Дисконтная программа ДТ номер 86 сэкономлено 131.65 сом ФМ: 0000000000965340 ФД: 187978 ФПД: 245416978711850 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T004125&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187978&fm=245416978711850&tin=02508201610067®Number=0000000000100030&sum=990000 [00:41:25]StoreToDocumentArchive [00:41:25]shift 461 fd 187978 [00:41:25]save to /storage/0461/doc_00187978 [00:41:25]save last doc name /storage/0461/doc_00187978 to /storage/kkm_last_doc_name [00:41:25]save OK [00:41:25]Clear old archive folders... [00:41:25]ProcessDocumentItem done err = 0, tmpTLVsize=248 [00:41:25]tlvbuf is 01BA03A0 [00:41:25]SAM_PROTO_ClearQueue [00:41:25]wFMCommunicate request_size=4 [00:41:25]MH_SAM_APDU [00:41:25]CAPDU: 80 09 00 00 [00:41:25]Write to MH i2c: E2 08 00 B7 06 80 09 00 00 00 00 00 00 2F [00:41:25]Write i2c OK [00:41:25]MH_I2C_Read... [00:41:25]Read from MH i2c: E2 [00:41:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:41:25]MH_I2C_Read... [00:41:25]Read from MH i2c: E2 03 00 [00:41:25]MH_I2C_Read... [00:41:25]Read from MH i2c: E2 03 00 B7 06 00 90 00 31 [00:41:25]RAPDU: 90 00 [00:41:25]wFMCommunicate OK [00:41:25]SAM_PROTO_ClearQueue done [00:41:25]KKMCreateOFDPacket [00:41:25]OFDProtocolAddRootSTLVToBuf [00:41:25]FM_MakeSignedData [00:41:25]FM_MakeSignedData [00:41:25]SAM_PROTO_SignData [00:41:25]wFMCommunicate request_size=4 [00:41:25]MH_SAM_APDU [00:41:25]CAPDU: 80 0D 01 02 [00:41:25]Write to MH i2c: E2 08 00 B8 06 80 0D 01 02 00 00 00 00 37 [00:41:25]Write i2c OK [00:41:25]MH_I2C_Read... [00:41:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:41:25]Read from MH i2c: E2 [00:41:25]MH_I2C_Read... [00:41:25]Read from MH i2c: E2 03 00 [00:41:25]MH_I2C_Read... [00:41:25]Read from MH i2c: E2 03 00 B8 06 00 90 00 32 [00:41:25]RAPDU: 90 00 [00:41:25]wFMCommunicate OK [00:41:25]wFMCommunicate request_size=255 [00:41:25]MH_SAM_APDU [00:41: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 35 FF 03 08 00 03 42 02 02 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 38 1B 0F 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 1B 0F 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 22 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AE 9A 01 00 00 00 07 04 06 00 30 1B 0F 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 B5 F4 16 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 4A DE 02 00 35 04 06 00 DF 34 97 D6 [00:41:25]Write to MH i2c: E2 02 01 B9 06 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 42 02 02 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 38 1B 0F 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 1B 0F 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 22 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AE 9A 01 00 00 00 07 04 06 00 30 1B 0F 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 B5 F4 16 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 4A DE 02 00 35 04 06 00 DF 34 97 D6 00 00 9C [00:41:25]Write i2c OK [00:41:25]MH_I2C_Read... [00:41:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:41:25]Read from MH i2c: E2 [00:41:25]MH_I2C_Read... [00:41:25]Read from MH i2c: E2 03 00 [00:41:25]MH_I2C_Read... [00:41:25]Read from MH i2c: E2 03 00 B9 06 00 90 00 33 [00:41:25]RAPDU: 90 00 [00:41:25]wFMCommunicate OK [00:41:25]wFMCommunicate request_size=7 [00:41:25]MH_SAM_APDU [00:41:25]CAPDU: 80 0D 02 02 02 85 2A [00:41:25]Write to MH i2c: E2 0A 00 BA 06 80 0D 02 02 02 00 85 2A 00 00 ED [00:41:25]Write i2c OK [00:41:25]MH_I2C_Read... [00:41:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:41:25]Read from MH i2c: E2 [00:41:25]MH_I2C_Read... [00:41:25]Read from MH i2c: E2 03 00 [00:41:25]MH_I2C_Read... [00:41:25]Read from MH i2c: E2 03 00 BA 06 00 90 00 34 [00:41:25]RAPDU: 90 00 [00:41:25]wFMCommunicate OK [00:41:25]wFMCommunicate request_size=4 [00:41:25]MH_SAM_APDU [00:41:25]CAPDU: 80 0D 03 02 [00:41:25]Write to MH i2c: E2 08 00 BB 06 80 0D 03 02 00 00 00 00 3C [00:41:25]Write i2c OK [00:41:25]MH_I2C_Read... [00:41:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:41:25]Read from MH i2c: E2 [00:41:25]MH_I2C_Read... [00:41:25]Read from MH i2c: E2 0B 00 [00:41:25]MH_I2C_Read... [00:41:25]Read from MH i2c: E2 0B 00 BB 06 00 C6 98 AF 0B D8 7E B0 CE 90 00 29 [00:41:25]RAPDU: C6 98 AF 0B D8 7E B0 CE 90 00 [00:41:25]wFMCommunicate OK [00:41:25]SAM_PROTO_SignData done [00:41:25]FM_MakeSignedData done [00:41:25]CreateOFDProtocolMessage [00:41:25]wFMCommunicate request_size=4 [00:41:25]MH_SAM_APDU [00:41:25]CAPDU: 80 11 00 00 [00:41:25]Write to MH i2c: E2 08 00 BC 06 80 11 00 00 00 00 00 00 3C [00:41:25]Write i2c OK [00:41:25]MH_I2C_Read... [00:41:25]OFD Sender: No OFD packet to send [00:41:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:41:25]Read from MH i2c: E2 [00:41:25]MH_I2C_Read... [00:41:25]Read from MH i2c: E2 17 00 [00:41:25]MH_I2C_Read... [00:41:25]Read from MH i2c: E2 17 00 BC 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 8A [00:41:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [00:41:25]wFMCommunicate OK [00:41:25]CreateOFDProtocolMessage done [00:41:25]OFDSenderStorePacket 187978 [00:41:25]StoreOFDPacket docnum=187978 [00:41:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 8A 63 04 01 40 19 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 42 02 02 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 38 1B 0F 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 1B 0F 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 22 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AE 9A 01 00 00 00 07 04 06 00 30 1B 0F 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 B5 F4 16 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 4A DE 02 00 35 04 06 00 DF 34 97 D6 85 2A C6 98 AF 0B D8 7E B0 CE [00:41:25]CheckFolder [00:41:25]dirname=/storage/ofd_packets [00:41:25]CheckFolder done [00:41:25]ProducePacketName [00:41:25]name=ofd_packets/00187978 [00:41:25]NVStorageSaveData ofd_packets/00187978 [00:41:25]File name is /storage/ofd_packets/00187978 [00:41:25]Write 298 bytes [00:41:25]NVStorageSaveData done [00:41:25]OFDSenderStorePacket done [00:41:25]KKMCreateOFDPacket done [00:41:25]NVStorageSaveData kkm_last_timestamp [00:41:25]File name is /storage/kkm_last_timestamp [00:41:25]Write 4 bytes [00:41:25]NVStorageSaveData done [00:41:25]ExternCall_PrintAddStr [00:41:25]wPrintStart [00:41:25]Write to MH i2c: 01 00 00 BD 06 C3 [00:41:25]Write i2c OK [00:41:25]MH_I2C_Read... [00:41:25]Read from MH i2c: 01 [00:41:25]MH_I2C_Read... [00:41:25]Read from MH i2c: 01 07 00 [00:41:25]MH_I2C_Read... [00:41:25]Read from MH i2c: 01 07 00 BD 06 00 00 00 00 00 FF 0F D8 [00:41:25]RasterBufferAndPrint [00:41:25]line Счет N : (1)210029 [00:41:25]line ИНН: 02508201610067 [00:41:25]line Контрольно-Кассовый Чек [00:41:25]line ПРОДАЖА [00:41:25]line ТРК (МРК, ГНК) : 51 [00:41:25]line Товар: 2710194210 [00:41:25]line ДТ-К-5 [00:41:25]line 131.650 * 75.20 [00:41:25]line = 9900.08 [00:41:25]line НДС 12% НСП 1% [00:41:25]line > о реализуемом товаре [00:41:25]line ОКРУГЛЕНИЕ: -0.08 [00:41:25]line ИТОГО: 9900.00 [00:41:25]line Внесено: 9900.00 [00:41:25]line СДАЧА: 0.00 [00:41:25]line НСП 1% : 87.61 [00:41:25]line НДС 12% : 1051.34 [00:41:25]line Наличными: 9900.00 [00:41:25]line Безнал.: 0.00 [00:41:25]line Место: АЗС № 86 "Партнер Нефть" [00:41:25]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [00:41:25]line СНО: Общий режим [00:41:25]line Чек 7 22.10.2024 00:41 [00:41:25]line Смена: 461 ФФД: 1.0 [00:41:25]line ЗНМ: 0300000155 [00:41:25]line РНМ: 0000000000100030 [00:41:25]line Версия ККМ: 001 [00:41:25]line [00:41:25]line Дисконтная программа [00:41:25]line ДТ [00:41:25]line номер 86 [00:41:25]line сэкономлено 131.65 сом [00:41:25]line ФМ: 0000000000965340 [00:41:25]line ФД: 187978 [00:41:25]line ФПД: 245416978711850 [00:41:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T004125&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187978&fm=245416978711850&tin=02508201610067®Number=0000000000100030&sum=990000 [00:41:26]OFD Sender: Processing packet 187978 [packets to send 1062, broken 1061] [00:41:26]ProducePacketName [00:41:26]name=ofd_packets/00187978 [00:41:26]OFD Sender: To server: pG, [00:41:26]CommunicateWithHost lk.salyk.kg:30040 [00:41:26]ConnectInit lk.salyk.kg [00:41:26]written 0, free lines is 4095 [00:41:26]Connected sock=10 [00:41:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 8A 63 04 01 40 19 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 42 02 02 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 38 1B 0F 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 1B 0F 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 22 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AE 9A 01 00 00 00 07 04 06 00 30 1B 0F 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 B5 F4 16 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 4A DE 02 00 35 04 06 00 DF 34 97 D6 85 2A C6 98 AF 0B D8 7E B0 CE [00:41:26]Write to MH i2c: 01 00 00 ED 06 F3 [00:41:26]Write i2c OK [00:41:26]MH_I2C_Read... [00:41:26]Read from MH i2c: 01 [00:41:26]MH_I2C_Read... [00:41:26]Read from MH i2c: 01 07 00 [00:41:26]MH_I2C_Read... [00:41:26]Read from MH i2c: 01 07 00 ED 06 00 00 00 00 00 E2 0B E7 [00:41:26]RasterBufferAndPrint [00:41:26]line [00:41:26]line [00:41:26]line [00:41:26]line [00:41:26]line [00:41:26]written 0, free lines is 3045 [00:41:26]MH_Cut [00:41:26]Write to MH i2c: D1 01 00 F4 06 01 CC [00:41:26]Write i2c OK [00:41:26]MH_I2C_Read... [00:41:26]Read from MH i2c: D1 [00:41:26]MH_I2C_Read... [00:41:26]Read from MH i2c: D1 01 00 [00:41:26]MH_I2C_Read... [00:41:26]Read from MH i2c: D1 01 00 F4 06 00 CB [00:41:26]Write to MH i2c: 01 00 00 F5 06 FB [00:41:26]Write i2c OK [00:41:26]MH_I2C_Read... [00:41:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 0B 3F 47 00 71 F8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 4A DE 02 00 F4 03 04 00 A3 9E 16 67 B6 04 01 00 00 0E F8 9E 87 2D E1 82 30 [00:41:26]CommunicateWithHost err = 0 [00:41:26]CheckOFDResponse [00:41:26]1017 (14) - 77093643461234 [00:41:26]1041 (16) - 0000000000965340 [00:41:26]1040 (4) - 187978 [00:41:26]1012 (4) - 21.10.2024 18:34 [00:41:26]1206 (1) - 0 [00:41:26]OFD Sender: Remove packet 187978 [00:41:26]ProducePacketName [00:41:26]name=ofd_packets/00187978 [00:41:26]NVStorageDeleteData [00:41:27]OFD Sender: No OFD packet to send [00:41:28]*** Cut start [00:41:28]*** Partial cut [00:41:28]*** CUTSNS_PIN = 1 [00:41:28]*** CUTSNS_PIN = 0 [00:41:28]*** Brake cut motor [00:41:28]Read from MH i2c: 01 [00:41:28]MH_I2C_Read... [00:41:28]*** Stop cut motor [00:41:28]*** Cut end [00:41:28]Read from MH i2c: 01 07 00 [00:41:28]MH_I2C_Read... [00:41:28]Read from MH i2c: 01 07 00 F5 06 00 00 00 00 00 FF 0F 10 [00:41:28]process_action close_receipt done [00:41:28]requested_data is exist [00:41:28]produce_requested_data [00:41:28]requested_item fm.sn is exist - process it [00:41:28]wFMCommunicate request_size=4 [00:41:28]MH_SAM_APDU [00:41:28]CAPDU: 80 11 00 00 [00:41:28]Write to MH i2c: E2 08 00 F6 06 80 11 00 00 00 00 00 00 76 [00:41:28]Write i2c OK [00:41:28]MH_I2C_Read... [00:41:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:41:28]Read from MH i2c: E2 [00:41:28]MH_I2C_Read... [00:41:28]Read from MH i2c: E2 17 00 [00:41:28]MH_I2C_Read... [00:41:28]Read from MH i2c: E2 17 00 F6 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 C4 [00:41:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [00:41:28]wFMCommunicate OK [00:41:28]requested_item fd.num is exist - process it [00:41:28]SAM_PROTO_GetFieldsCounters [00:41:28]wFMCommunicate request_size=4 [00:41:28]MH_SAM_APDU [00:41:28]CAPDU: 80 13 00 00 [00:41:28]Write to MH i2c: E2 08 00 F7 06 80 13 00 00 00 00 00 00 79 [00:41:28]Write i2c OK [00:41:28]MH_I2C_Read... [00:41:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:41:28]Read from MH i2c: E2 [00:41:28]MH_I2C_Read... [00:41:28]Read from MH i2c: E2 62 00 [00:41:28]MH_I2C_Read... [00:41:28]Read from MH i2c: E2 62 00 F7 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 4A DE 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 07 00 00 00 5E 04 04 00 07 00 00 00 57 04 04 00 08 00 00 00 19 04 04 00 00 00 00 00 90 00 8D [00:41:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 4A DE 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 07 00 00 00 5E 04 04 00 07 00 00 00 57 04 04 00 08 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:41:28]wFMCommunicate OK [00:41:28]SAM_PROTO_GetFieldsCounters done [00:41:28]requested_item shift.num is exist - process it [00:41:28]requested_item shift.opened is exist - process it [00:41:28]req_shift_opened [00:41:28]FM_GetShiftState [00:41:28]SAM_PROTO_GetShiftState [00:41:28]wFMCommunicate request_size=4 [00:41:28]MH_SAM_APDU [00:41:28]CAPDU: 80 13 01 00 [00:41:28]Write to MH i2c: E2 08 00 F8 06 80 13 01 00 00 00 00 00 7B [00:41:28]Write i2c OK [00:41:28]MH_I2C_Read... [00:41:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:41:28]Read from MH i2c: E2 [00:41:28]MH_I2C_Read... [00:41:28]Read from MH i2c: E2 0E 00 [00:41:28]MH_I2C_Read... [00:41:28]Read from MH i2c: E2 0E 00 F8 06 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 70 [00:41:28]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [00:41:28]wFMCommunicate OK [00:41:28]SAM_PROTO_GetShiftState done [00:41:28]FM_GetShiftState done [00:41:28]req_shift_opened done [00:41:28]requested_item shift.open_date is exist - process it [00:41:28]req_shift_open_date [00:41:28]req_shift_open_date done [00:41:28]produce_requested_data done [00:41:28]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187978,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [00:41:28]process_action_free close_receipt [00:41:28]json_value_free [00:41:28]json_value_free done [00:41:28]process_json_proto returns [00:41:28]Send response to host [00:41:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187978,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [00:41:28]free response buf [00:41:28]execute_script done [00:41:28]execute_script returns [00:41:28]free content buf [00:41:28]Sock 9.Close socket [00:41:28]Sock 9.Thread stoped [00:41:32]OFD Sender: No OFD packet to send [00:41:37]OFD Sender: No OFD packet to send [00:41:42]OFD Sender: No OFD packet to send [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:12]OFD Sender: No OFD packet to send [00:42:17]OFD Sender: No OFD packet to send [00:42:22]OFD Sender: No OFD packet to send [00:42:27]OFD Sender: No OFD packet to send [00:42:32]OFD Sender: No OFD packet to send [00:42:37]OFD Sender: No OFD packet to send [00:42:42]OFD Sender: No OFD packet to send [00:42:47]OFD Sender: No OFD packet to send [00:42:52]OFD Sender: No OFD packet to send [00:42:57]OFD Sender: No OFD packet to send [00:43:02]OFD Sender: No OFD packet to send [00:43:07]OFD Sender: No OFD packet to send [00:43:12]OFD Sender: No OFD packet to send [00:43:17]OFD Sender: No OFD packet to send [00:43:22]OFD Sender: No OFD packet to send [00:43:27]OFD Sender: No OFD packet to send [00:43:32]OFD Sender: No OFD packet to send [00:43:37]OFD Sender: No OFD packet to send [00:43:42]OFD Sender: No OFD packet to send [00:43:47]OFD Sender: No OFD packet to send [00:43:52]OFD Sender: No OFD packet to send [00:43:57]OFD Sender: No OFD packet to send [00:44:02]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:37]accept exits with 8 [00:47:37]New connection [00:47:37]New thread 3067055460 created [00:47:37]Thread 3067198820 joined [00:47:37]Waiting for new connection... [00:47:37] Sock 8.Parse request [00:47:37]Sock 8.Check first char [00:47:37]Sock 8.First char is OK [00:47:37]request: POST /json_proto HTTP/1.0 [00:47:37]Method: POST [00:47:37]URL: /json_proto [00:47:37]Method is POST - this is cgi request [00:47:37]url: /json_proto [00:47:37]query_string will be loaded in cgi processing [00:47:37]execute_cgi json_proto POST (null) [00:47:37]execute_cgi path=json_proto method=POST [00:47:37]POST find Content-Length [00:47:37]Host: 172.17.42.131:8080 [00:47:37]Content-Length: 677 [00:47:37]Content-Type: application/json [00:47:37] [00:47:37]POST finish read [00:47:37]Found Content-Length = 677 [00:47:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210030", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "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" ] } } [00:47:37]execute_script... [00:47: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)210030", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "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" ] } } [00:47:37]POST & json_proto [00:47:37]process_json_proto [00:47:37]json parsed OK: [00:47:37]protocol is kg_v1.0 [00:47:37]action value=close_receipt [00:47:37]process_action close_receipt [00:47:37]cmd_close_receipt [00:47:37]MH_GetDate [00:47:37]Write to MH i2c: F0 00 00 F9 06 EE [00:47:37]Write i2c OK [00:47:37]MH_I2C_Read... [00:47:37]Read from MH i2c: F0 [00:47:37]MH_I2C_Read... [00:47:37]Read from MH i2c: F0 09 00 [00:47:37]MH_I2C_Read... [00:47:37]Read from MH i2c: F0 09 00 F9 06 00 2A F6 16 67 A0 18 CA 66 7C [00:47:37]GetLastDocTimeStamp 1729557685 [00:47:37]current date 1729558058 [00:47:37]FM_GetShiftState [00:47:37]SAM_PROTO_GetShiftState [00:47:37]wFMCommunicate request_size=4 [00:47:37]MH_SAM_APDU [00:47:37]CAPDU: 80 13 01 00 [00:47:37]Write to MH i2c: E2 08 00 FA 06 80 13 01 00 00 00 00 00 7D [00:47:37]Write i2c OK [00:47:37]MH_I2C_Read... [00:47:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:47:37]Read from MH i2c: E2 [00:47:37]MH_I2C_Read... [00:47:37]Read from MH i2c: E2 0E 00 [00:47:37]MH_I2C_Read... [00:47:37]Read from MH i2c: E2 0E 00 FA 06 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 72 [00:47:37]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [00:47:37]wFMCommunicate OK [00:47:37]SAM_PROTO_GetShiftState done [00:47:37]FM_GetShiftState done [00:47:37]opened in 1729556094 [00:47:37]opened+sec_in_day 1729642494 [00:47:37]quantity*price = 50041 [00:47:37]sum+1 = 50042 [00:47: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 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 8 22.10.2024 00:47 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 187979 ФПД: 279179966205910 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T004738&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187979&fm=279179966205910&tin=02508201610067®Number=0000000000100030&sum=50000 [00:47:38]StoreToDocumentArchive [00:47:38]shift 461 fd 187979 [00:47:38]save to /storage/0461/doc_00187979 [00:47:38]save last doc name /storage/0461/doc_00187979 to /storage/kkm_last_doc_name [00:47:38]save OK [00:47:38]Clear old archive folders... [00:47:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:47:38]tlvbuf is 01C04020 [00:47:38]SAM_PROTO_ClearQueue [00:47:38]wFMCommunicate request_size=4 [00:47:38]MH_SAM_APDU [00:47:38]CAPDU: 80 09 00 00 [00:47:38]Write to MH i2c: E2 08 00 07 07 80 09 00 00 00 00 00 00 80 [00:47:38]Write i2c OK [00:47:38]MH_I2C_Read... [00:47:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:47:38]Read from MH i2c: E2 [00:47:38]MH_I2C_Read... [00:47:38]Read from MH i2c: E2 03 00 [00:47:38]MH_I2C_Read... [00:47:38]Read from MH i2c: E2 03 00 07 07 00 90 00 82 [00:47:38]RAPDU: 90 00 [00:47:38]wFMCommunicate OK [00:47:38]SAM_PROTO_ClearQueue done [00:47:38]KKMCreateOFDPacket [00:47:38]OFDProtocolAddRootSTLVToBuf [00:47:38]FM_MakeSignedData [00:47:38]FM_MakeSignedData [00:47:38]SAM_PROTO_SignData [00:47:38]wFMCommunicate request_size=4 [00:47:38]MH_SAM_APDU [00:47:38]CAPDU: 80 0D 01 02 [00:47:38]Write to MH i2c: E2 08 00 08 07 80 0D 01 02 00 00 00 00 88 [00:47:38]Write i2c OK [00:47:38]MH_I2C_Read... [00:47:38]OFD Sender: No OFD packet to send [00:47:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:47:38]Read from MH i2c: E2 [00:47:38]MH_I2C_Read... [00:47:38]Read from MH i2c: E2 03 00 [00:47:38]MH_I2C_Read... [00:47:38]Read from MH i2c: E2 03 00 08 07 00 90 00 83 [00:47:38]RAPDU: 90 00 [00:47:38]wFMCommunicate OK [00:47:38]wFMCommunicate request_size=255 [00:47:38]MH_SAM_APDU [00:47: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 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 2A F6 16 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 4B DE 02 00 35 04 06 00 FD [00:47:39]Write to MH i2c: E2 02 01 09 07 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 2A F6 16 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 4B DE 02 00 35 04 06 00 FD 00 00 96 [00:47:39]Write i2c OK [00:47:39]MH_I2C_Read... [00:47:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:47:39]Read from MH i2c: E2 [00:47:39]MH_I2C_Read... [00:47:39]Read from MH i2c: E2 03 00 [00:47:39]MH_I2C_Read... [00:47:39]Read from MH i2c: E2 03 00 09 07 00 90 00 84 [00:47:39]RAPDU: 90 00 [00:47:39]wFMCommunicate OK [00:47:39]wFMCommunicate request_size=10 [00:47:39]MH_SAM_APDU [00:47:39]CAPDU: 80 0D 02 02 05 E9 A6 B6 CF D6 [00:47:39]Write to MH i2c: E2 0D 00 0A 07 80 0D 02 02 05 00 E9 A6 B6 CF D6 00 00 7F [00:47:39]Write i2c OK [00:47:39]MH_I2C_Read... [00:47:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:47:39]Read from MH i2c: E2 [00:47:39]MH_I2C_Read... [00:47:39]Read from MH i2c: E2 03 00 [00:47:39]MH_I2C_Read... [00:47:39]Read from MH i2c: E2 03 00 0A 07 00 90 00 85 [00:47:39]RAPDU: 90 00 [00:47:39]wFMCommunicate OK [00:47:39]wFMCommunicate request_size=4 [00:47:39]MH_SAM_APDU [00:47:39]CAPDU: 80 0D 03 02 [00:47:39]Write to MH i2c: E2 08 00 0B 07 80 0D 03 02 00 00 00 00 8D [00:47:39]Write i2c OK [00:47:39]MH_I2C_Read... [00:47:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:47:39]Read from MH i2c: E2 [00:47:39]MH_I2C_Read... [00:47:39]Read from MH i2c: E2 0B 00 [00:47:39]MH_I2C_Read... [00:47:39]Read from MH i2c: E2 0B 00 0B 07 00 24 3A 84 57 62 E1 7C AA 90 00 30 [00:47:39]RAPDU: 24 3A 84 57 62 E1 7C AA 90 00 [00:47:39]wFMCommunicate OK [00:47:39]SAM_PROTO_SignData done [00:47:39]FM_MakeSignedData done [00:47:39]CreateOFDProtocolMessage [00:47:39]wFMCommunicate request_size=4 [00:47:39]MH_SAM_APDU [00:47:39]CAPDU: 80 11 00 00 [00:47:39]Write to MH i2c: E2 08 00 0C 07 80 11 00 00 00 00 00 00 8D [00:47:39]Write i2c OK [00:47:39]MH_I2C_Read... [00:47:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:47:39]Read from MH i2c: E2 [00:47:39]MH_I2C_Read... [00:47:39]Read from MH i2c: E2 17 00 [00:47:39]MH_I2C_Read... [00:47:39]Read from MH i2c: E2 17 00 0C 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 DB [00:47:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [00:47:39]wFMCommunicate OK [00:47:39]CreateOFDProtocolMessage done [00:47:39]OFDSenderStorePacket 187979 [00:47:39]StoreOFDPacket docnum=187979 [00:47:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 97 A6 07 01 E1 7A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 2A F6 16 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 4B DE 02 00 35 04 06 00 FD E9 A6 B6 CF D6 24 3A 84 57 62 E1 7C AA [00:47:39]CheckFolder [00:47:39]dirname=/storage/ofd_packets [00:47:39]CheckFolder done [00:47:39]ProducePacketName [00:47:39]name=ofd_packets/00187979 [00:47:39]NVStorageSaveData ofd_packets/00187979 [00:47:39]File name is /storage/ofd_packets/00187979 [00:47:39]Write 301 bytes [00:47:39]NVStorageSaveData done [00:47:39]OFDSenderStorePacket done [00:47:39]KKMCreateOFDPacket done [00:47:39]NVStorageSaveData kkm_last_timestamp [00:47:39]File name is /storage/kkm_last_timestamp [00:47:39]Write 4 bytes [00:47:39]NVStorageSaveData done [00:47:39]ExternCall_PrintAddStr [00:47:39]wPrintStart [00:47:39]Write to MH i2c: 01 00 00 0D 07 14 [00:47:39]Write i2c OK [00:47:39]MH_I2C_Read... [00:47:39]Read from MH i2c: 01 [00:47:39]MH_I2C_Read... [00:47:39]Read from MH i2c: 01 07 00 [00:47:39]MH_I2C_Read... [00:47:39]Read from MH i2c: 01 07 00 0D 07 00 00 00 00 00 FF 0F 29 [00:47:39]RasterBufferAndPrint [00:47:39]line Счет N : (1)210030 [00:47:39]line ИНН: 02508201610067 [00:47:39]line Контрольно-Кассовый Чек [00:47:39]line ПРОДАЖА [00:47:39]line ТРК (МРК, ГНК) : 42 [00:47:39]line Товар: 2710124130 [00:47:39]line Аи-92-К-3 [00:47:39]line 7.480 * 66.90 [00:47:39]line = 500.41 [00:47:39]line НДС 12% НСП 1% [00:47:39]line > о реализуемом товаре [00:47:39]line ОКРУГЛЕНИЕ: -0.41 [00:47:39]line ИТОГО: 500.00 [00:47:39]line Внесено: 500.00 [00:47:39]line СДАЧА: 0.00 [00:47:39]line НСП 1% : 4.43 [00:47:39]line НДС 12% : 53.14 [00:47:39]line Наличными: 500.00 [00:47:39]line Безнал.: 0.00 [00:47:39]line Место: АЗС № 86 "Партнер Нефть" [00:47:39]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [00:47:39]line СНО: Общий режим [00:47:39]line Чек 8 22.10.2024 00:47 [00:47:39]line Смена: 461 ФФД: 1.0 [00:47:39]line ЗНМ: 0300000155 [00:47:39]line РНМ: 0000000000100030 [00:47:39]line Версия ККМ: 001 [00:47:39]line ФМ: 0000000000965340 [00:47:39]line ФД: 187979 [00:47:39]line ФПД: 279179966205910 [00:47:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T004738&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187979&fm=279179966205910&tin=02508201610067®Number=0000000000100030&sum=50000 [00:47:39]written 0, free lines is 4095 [00:47:39]OFD Sender: Processing packet 187979 [packets to send 1062, broken 1061] [00:47:39]ProducePacketName [00:47:39]name=ofd_packets/00187979 [00:47:39]OFD Sender: To server: pG, [00:47:39]CommunicateWithHost lk.salyk.kg:30040 [00:47:39]ConnectInit lk.salyk.kg [00:47:39]Connected sock=9 [00:47:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 97 A6 07 01 E1 7A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 2A F6 16 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 4B DE 02 00 35 04 06 00 FD E9 A6 B6 CF D6 24 3A 84 57 62 E1 7C AA [00:47:39]Write to MH i2c: 01 00 00 38 07 3F [00:47:39]Write i2c OK [00:47:39]MH_I2C_Read... [00:47:39]Read from MH i2c: 01 [00:47:39]MH_I2C_Read... [00:47:39]Read from MH i2c: 01 07 00 [00:47:39]MH_I2C_Read... [00:47:39]Read from MH i2c: 01 07 00 38 07 00 00 00 00 00 59 0C AB [00:47:39]RasterBufferAndPrint [00:47:39]line [00:47:39]line [00:47:39]line [00:47:39]line [00:47:39]line [00:47:39]written 0, free lines is 3165 [00:47:39]MH_Cut [00:47:39]Write to MH i2c: D1 01 00 3F 07 01 18 [00:47:39]Write i2c OK [00:47:39]MH_I2C_Read... [00:47:39]Read from MH i2c: D1 [00:47:39]MH_I2C_Read... [00:47:39]Read from MH i2c: D1 01 00 [00:47:39]MH_I2C_Read... [00:47:39]Read from MH i2c: D1 01 00 3F 07 00 17 [00:47:39]Write to MH i2c: 01 00 00 40 07 47 [00:47:39]Write i2c OK [00:47:39]MH_I2C_Read... [00:47:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 E4 15 47 00 6B FD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 4B DE 02 00 F4 03 04 00 19 A0 16 67 B6 04 01 00 00 BA FE E7 E8 CA CD 83 B6 [00:47:40]CommunicateWithHost err = 0 [00:47:40]CheckOFDResponse [00:47:40]1017 (14) - 77093643461234 [00:47:40]1041 (16) - 0000000000965340 [00:47:40]1040 (4) - 187979 [00:47:40]1012 (4) - 21.10.2024 18:40 [00:47:40]1206 (1) - 0 [00:47:40]OFD Sender: Remove packet 187979 [00:47:40]ProducePacketName [00:47:40]name=ofd_packets/00187979 [00:47:40]NVStorageDeleteData [00:47:40]OFD Sender: No OFD packet to send [00:47:41]*** Cut start [00:47:41]*** Partial cut [00:47:41]*** CUTSNS_PIN = 1 [00:47:41]*** CUTSNS_PIN = 0 [00:47:41]*** Brake cut motor [00:47:41]Read from MH i2c: 01 [00:47:41]MH_I2C_Read... [00:47:41]*** Stop cut motor [00:47:41]*** Cut end [00:47:41]Read from MH i2c: 01 07 00 [00:47:41]MH_I2C_Read... [00:47:41]Read from MH i2c: 01 07 00 40 07 00 00 00 00 00 FF 0F 5C [00:47:41]process_action close_receipt done [00:47:41]requested_data is exist [00:47:41]produce_requested_data [00:47:41]requested_item fm.sn is exist - process it [00:47:41]wFMCommunicate request_size=4 [00:47:41]MH_SAM_APDU [00:47:41]CAPDU: 80 11 00 00 [00:47:41]Write to MH i2c: E2 08 00 41 07 80 11 00 00 00 00 00 00 C2 [00:47:41]Write i2c OK [00:47:41]MH_I2C_Read... [00:47:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:47:41]Read from MH i2c: E2 [00:47:41]MH_I2C_Read... [00:47:41]Read from MH i2c: E2 17 00 [00:47:41]MH_I2C_Read... [00:47:41]Read from MH i2c: E2 17 00 41 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 10 [00:47:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [00:47:41]wFMCommunicate OK [00:47:41]requested_item fd.num is exist - process it [00:47:41]SAM_PROTO_GetFieldsCounters [00:47:41]wFMCommunicate request_size=4 [00:47:41]MH_SAM_APDU [00:47:41]CAPDU: 80 13 00 00 [00:47:41]Write to MH i2c: E2 08 00 42 07 80 13 00 00 00 00 00 00 C5 [00:47:41]Write i2c OK [00:47:41]MH_I2C_Read... [00:47:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:47:41]Read from MH i2c: E2 [00:47:41]MH_I2C_Read... [00:47:41]Read from MH i2c: E2 62 00 [00:47:41]MH_I2C_Read... [00:47:41]Read from MH i2c: E2 62 00 42 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 4B DE 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 08 00 00 00 5E 04 04 00 08 00 00 00 57 04 04 00 09 00 00 00 19 04 04 00 00 00 00 00 90 00 DD [00:47:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 4B DE 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 08 00 00 00 5E 04 04 00 08 00 00 00 57 04 04 00 09 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:47:42]wFMCommunicate OK [00:47:42]SAM_PROTO_GetFieldsCounters done [00:47:42]requested_item shift.num is exist - process it [00:47:42]requested_item shift.opened is exist - process it [00:47:42]req_shift_opened [00:47:42]FM_GetShiftState [00:47:42]SAM_PROTO_GetShiftState [00:47:42]wFMCommunicate request_size=4 [00:47:42]MH_SAM_APDU [00:47:42]CAPDU: 80 13 01 00 [00:47:42]Write to MH i2c: E2 08 00 43 07 80 13 01 00 00 00 00 00 C7 [00:47:42]Write i2c OK [00:47:42]MH_I2C_Read... [00:47:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:47:42]Read from MH i2c: E2 [00:47:42]MH_I2C_Read... [00:47:42]Read from MH i2c: E2 0E 00 [00:47:42]MH_I2C_Read... [00:47:42]Read from MH i2c: E2 0E 00 43 07 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 BC [00:47:42]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [00:47:42]wFMCommunicate OK [00:47:42]SAM_PROTO_GetShiftState done [00:47:42]FM_GetShiftState done [00:47:42]req_shift_opened done [00:47:42]requested_item shift.open_date is exist - process it [00:47:42]req_shift_open_date [00:47:42]req_shift_open_date done [00:47:42]produce_requested_data done [00:47:42]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187979,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [00:47:42]process_action_free close_receipt [00:47:42]json_value_free [00:47:42]json_value_free done [00:47:42]process_json_proto returns [00:47:42]Send response to host [00:47:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187979,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [00:47:42]free response buf [00:47:42]execute_script done [00:47:42]execute_script returns [00:47:42]free content buf [00:47:42]Sock 8.Close socket [00:47:42]Sock 8.Thread stoped [00:47:45]OFD Sender: No OFD packet to send [00:47:50]OFD Sender: No OFD packet to send [00:47:55]OFD Sender: No OFD packet to send [00:48:00]OFD Sender: No OFD packet to send [00:48:05]OFD Sender: No OFD packet to send [00:48:10]OFD Sender: No OFD packet to send [00:48:15]OFD Sender: No OFD packet to send [00:48:20]OFD Sender: No OFD packet to send [00:48:25]OFD Sender: No OFD packet to send [00:48:30]OFD Sender: No OFD packet to send [00:48:35]OFD Sender: No OFD packet to send [00:48:40]OFD Sender: No OFD packet to send [00:48:45]OFD Sender: No OFD packet to send [00:48:50]OFD Sender: No OFD packet to send [00:48:55]OFD Sender: No OFD packet to send [00:49:00]OFD Sender: No OFD packet to send [00:49:05]OFD Sender: No OFD packet to send [00:49:10]OFD Sender: No OFD packet to send [00:49:16]OFD Sender: No OFD packet to send [00:49:21]OFD Sender: No OFD packet to send [00:49:26]OFD Sender: No OFD packet to send [00:49:31]OFD Sender: No OFD packet to send [00:49:36]OFD Sender: No OFD packet to send [00:49:41]OFD Sender: No OFD packet to send [00:49:46]OFD Sender: No OFD packet to send [00:49:51]OFD Sender: No OFD packet to send [00:49:56]OFD Sender: No OFD packet to send [00:50:01]OFD Sender: No OFD packet to send [00:50:06]OFD Sender: No OFD packet to send [00:50:11]OFD Sender: No OFD packet to send [00:50:16]OFD Sender: No OFD packet to send [00:50:21]OFD Sender: No OFD packet to send [00:50:26]OFD Sender: No OFD packet to send [00:50:31]OFD Sender: No OFD packet to send [00:50:36]OFD Sender: No OFD packet to send [00:50:41]OFD Sender: No OFD packet to send [00:50:46]OFD Sender: No OFD packet to send [00:50:51]OFD Sender: No OFD packet to send [00:50:56]OFD Sender: No OFD packet to send [00:51:01]OFD Sender: No OFD packet to send [00:51:06]OFD Sender: No OFD packet to send [00:51:11]OFD Sender: No OFD packet to send [00:51:15]accept exits with 10 [00:51:15]New connection [00:51:15]New thread 3067198820 created [00:51:15]Thread 3067055460 joined [00:51:15]Waiting for new connection... [00:51:15] Sock 10.Parse request [00:51:15]Sock 10.Check first char [00:51:15]Sock 10.First char is OK [00:51:15]request: POST /json_proto HTTP/1.0 [00:51:15]Method: POST [00:51:15]URL: /json_proto [00:51:15]Method is POST - this is cgi request [00:51:15]url: /json_proto [00:51:15]query_string will be loaded in cgi processing [00:51:15]execute_cgi json_proto POST (null) [00:51:15]execute_cgi path=json_proto method=POST [00:51:15]POST find Content-Length [00:51:15]Host: 172.17.42.131:8080 [00:51:15]Content-Length: 679 [00:51:15]Content-Type: application/json [00:51:15] [00:51:15]POST finish read [00:51:15]Found Content-Length = 679 [00:51:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210031", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:51:15]execute_script... [00:51: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)210031", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:51:15]POST & json_proto [00:51:15]process_json_proto [00:51:15]json parsed OK: [00:51:15]protocol is kg_v1.0 [00:51:15]action value=close_receipt [00:51:15]process_action close_receipt [00:51:15]cmd_close_receipt [00:51:15]MH_GetDate [00:51:15]Write to MH i2c: F0 00 00 44 07 3A [00:51:15]Write i2c OK [00:51:15]MH_I2C_Read... [00:51:15]Read from MH i2c: F0 [00:51:15]MH_I2C_Read... [00:51:15]Read from MH i2c: F0 09 00 [00:51:15]MH_I2C_Read... [00:51:15]Read from MH i2c: F0 09 00 44 07 00 04 F7 16 67 A0 18 CA 66 A3 [00:51:15]GetLastDocTimeStamp 1729558058 [00:51:15]current date 1729558276 [00:51:15]FM_GetShiftState [00:51:15]SAM_PROTO_GetShiftState [00:51:15]wFMCommunicate request_size=4 [00:51:15]MH_SAM_APDU [00:51:15]CAPDU: 80 13 01 00 [00:51:15]Write to MH i2c: E2 08 00 45 07 80 13 01 00 00 00 00 00 C9 [00:51:15]Write i2c OK [00:51:15]MH_I2C_Read... [00:51:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:51:15]Read from MH i2c: E2 [00:51:15]MH_I2C_Read... [00:51:15]Read from MH i2c: E2 0E 00 [00:51:15]MH_I2C_Read... [00:51:15]Read from MH i2c: E2 0E 00 45 07 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 BE [00:51:15]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [00:51:15]wFMCommunicate OK [00:51:15]SAM_PROTO_GetShiftState done [00:51:15]FM_GetShiftState done [00:51:15]opened in 1729556094 [00:51:15]opened+sec_in_day 1729642494 [00:51:15]quantity*price = 100050 [00:51:15]sum+1 = 100052 [00:51:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 9 22.10.2024 00:51 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 187980 ФПД: 173887581432221 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T005116&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187980&fm=173887581432221&tin=02508201610067®Number=0000000000100030&sum=100000 [00:51:16]StoreToDocumentArchive [00:51:16]shift 461 fd 187980 [00:51:16]save to /storage/0461/doc_00187980 [00:51:16]save last doc name /storage/0461/doc_00187980 to /storage/kkm_last_doc_name [00:51:16]save OK [00:51:16]Clear old archive folders... [00:51:16]ProcessDocumentItem done err = 0, tmpTLVsize=248 [00:51:16]tlvbuf is 01BA0BE0 [00:51:16]SAM_PROTO_ClearQueue [00:51:16]wFMCommunicate request_size=4 [00:51:16]MH_SAM_APDU [00:51:16]CAPDU: 80 09 00 00 [00:51:16]Write to MH i2c: E2 08 00 52 07 80 09 00 00 00 00 00 00 CB [00:51:16]Write i2c OK [00:51:16]MH_I2C_Read... [00:51:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:51:16]Read from MH i2c: E2 [00:51:16]MH_I2C_Read... [00:51:16]Read from MH i2c: E2 03 00 [00:51:16]MH_I2C_Read... [00:51:16]Read from MH i2c: E2 03 00 52 07 00 90 00 CD [00:51:16]RAPDU: 90 00 [00:51:16]wFMCommunicate OK [00:51:16]SAM_PROTO_ClearQueue done [00:51:16]KKMCreateOFDPacket [00:51:16]OFDProtocolAddRootSTLVToBuf [00:51:16]FM_MakeSignedData [00:51:16]FM_MakeSignedData [00:51:16]SAM_PROTO_SignData [00:51:16]wFMCommunicate request_size=4 [00:51:16]MH_SAM_APDU [00:51:16]CAPDU: 80 0D 01 02 [00:51:16]Write to MH i2c: E2 08 00 53 07 80 0D 01 02 00 00 00 00 D3 [00:51:16]Write i2c OK [00:51:16]MH_I2C_Read... [00:51:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:51:16]Read from MH i2c: E2 [00:51:16]MH_I2C_Read... [00:51:16]Read from MH i2c: E2 03 00 [00:51:16]MH_I2C_Read... [00:51:16]Read from MH i2c: E2 03 00 53 07 00 90 00 CE [00:51:16]RAPDU: 90 00 [00:51:16]wFMCommunicate OK [00:51:16]wFMCommunicate request_size=255 [00:51:16]MH_SAM_APDU [00:51:16]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 09 00 00 00 F4 03 04 00 04 F7 16 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 4C DE 02 00 35 04 06 00 9E 26 5B 85 [00:51:16]Write to MH i2c: E2 02 01 54 07 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 09 00 00 00 F4 03 04 00 04 F7 16 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 4C DE 02 00 35 04 06 00 9E 26 5B 85 00 00 5D [00:51:16]Write i2c OK [00:51:16]MH_I2C_Read... [00:51:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:51:16]Read from MH i2c: E2 [00:51:16]MH_I2C_Read... [00:51:16]Read from MH i2c: E2 03 00 [00:51:16]MH_I2C_Read... [00:51:16]Read from MH i2c: E2 03 00 54 07 00 90 00 CF [00:51:16]RAPDU: 90 00 [00:51:16]wFMCommunicate OK [00:51:16]wFMCommunicate request_size=7 [00:51:16]MH_SAM_APDU [00:51:16]CAPDU: 80 0D 02 02 02 A9 9D [00:51:16]Write to MH i2c: E2 0A 00 55 07 80 0D 02 02 02 00 A9 9D 00 00 20 [00:51:16]Write i2c OK [00:51:16]MH_I2C_Read... [00:51:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:51:16]OFD Sender: No OFD packet to send [00:51:16]Read from MH i2c: E2 [00:51:16]MH_I2C_Read... [00:51:16]Read from MH i2c: E2 03 00 [00:51:16]MH_I2C_Read... [00:51:16]Read from MH i2c: E2 03 00 55 07 00 90 00 D0 [00:51:16]RAPDU: 90 00 [00:51:16]wFMCommunicate OK [00:51:16]wFMCommunicate request_size=4 [00:51:16]MH_SAM_APDU [00:51:16]CAPDU: 80 0D 03 02 [00:51:16]Write to MH i2c: E2 08 00 56 07 80 0D 03 02 00 00 00 00 D8 [00:51:16]Write i2c OK [00:51:16]MH_I2C_Read... [00:51:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:51:16]Read from MH i2c: E2 [00:51:16]MH_I2C_Read... [00:51:16]Read from MH i2c: E2 0B 00 [00:51:16]MH_I2C_Read... [00:51:16]Read from MH i2c: E2 0B 00 56 07 00 D4 38 CA 20 98 B9 CD 57 90 00 44 [00:51:16]RAPDU: D4 38 CA 20 98 B9 CD 57 90 00 [00:51:16]wFMCommunicate OK [00:51:16]SAM_PROTO_SignData done [00:51:16]FM_MakeSignedData done [00:51:16]CreateOFDProtocolMessage [00:51:16]wFMCommunicate request_size=4 [00:51:16]MH_SAM_APDU [00:51:16]CAPDU: 80 11 00 00 [00:51:16]Write to MH i2c: E2 08 00 57 07 80 11 00 00 00 00 00 00 D8 [00:51:16]Write i2c OK [00:51:16]MH_I2C_Read... [00:51:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:51:16]Read from MH i2c: E2 [00:51:16]MH_I2C_Read... [00:51:16]Read from MH i2c: E2 17 00 [00:51:16]MH_I2C_Read... [00:51:16]Read from MH i2c: E2 17 00 57 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 26 [00:51:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [00:51:16]wFMCommunicate OK [00:51:16]CreateOFDProtocolMessage done [00:51:16]OFDSenderStorePacket 187980 [00:51:16]StoreOFDPacket docnum=187980 [00:51:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 E0 FA 04 01 50 9C 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 09 00 00 00 F4 03 04 00 04 F7 16 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 4C DE 02 00 35 04 06 00 9E 26 5B 85 A9 9D D4 38 CA 20 98 B9 CD 57 [00:51:16]CheckFolder [00:51:16]dirname=/storage/ofd_packets [00:51:16]CheckFolder done [00:51:16]ProducePacketName [00:51:16]name=ofd_packets/00187980 [00:51:16]NVStorageSaveData ofd_packets/00187980 [00:51:16]File name is /storage/ofd_packets/00187980 [00:51:16]Write 298 bytes [00:51:16]NVStorageSaveData done [00:51:16]OFDSenderStorePacket done [00:51:16]KKMCreateOFDPacket done [00:51:16]NVStorageSaveData kkm_last_timestamp [00:51:16]File name is /storage/kkm_last_timestamp [00:51:16]Write 4 bytes [00:51:16]NVStorageSaveData done [00:51:16]ExternCall_PrintAddStr [00:51:16]wPrintStart [00:51:16]Write to MH i2c: 01 00 00 58 07 5F [00:51:16]Write i2c OK [00:51:16]MH_I2C_Read... [00:51:16]Read from MH i2c: 01 [00:51:16]MH_I2C_Read... [00:51:16]Read from MH i2c: 01 07 00 [00:51:16]MH_I2C_Read... [00:51:16]Read from MH i2c: 01 07 00 58 07 00 00 00 00 00 FF 0F 74 [00:51:16]RasterBufferAndPrint [00:51:16]line Счет N : (1)210031 [00:51:16]line ИНН: 02508201610067 [00:51:16]line Контрольно-Кассовый Чек [00:51:16]line ПРОДАЖА [00:51:16]line ТРК (МРК, ГНК) : 51 [00:51:16]line Товар: 2710194210 [00:51:16]line ДТ-К-5 [00:51:16]line 13.130 * 76.20 [00:51:16]line = 1000.51 [00:51:16]line НДС 12% НСП 1% [00:51:16]line > о реализуемом товаре [00:51:16]line ОКРУГЛЕНИЕ: -0.51 [00:51:16]line ИТОГО: 1000.00 [00:51:16]line Внесено: 1000.00 [00:51:16]line СДАЧА: 0.00 [00:51:16]line НСП 1% : 8.85 [00:51:16]line НДС 12% : 106.25 [00:51:16]line Наличными: 1000.00 [00:51:16]line Безнал.: 0.00 [00:51:16]line Место: АЗС № 86 "Партнер Нефть" [00:51:16]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [00:51:16]line СНО: Общий режим [00:51:16]line Чек 9 22.10.2024 00:51 [00:51:16]line Смена: 461 ФФД: 1.0 [00:51:16]line ЗНМ: 0300000155 [00:51:16]line РНМ: 0000000000100030 [00:51:16]line Версия ККМ: 001 [00:51:16]line ФМ: 0000000000965340 [00:51:16]line ФД: 187980 [00:51:16]line ФПД: 173887581432221 [00:51:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T005116&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187980&fm=173887581432221&tin=02508201610067®Number=0000000000100030&sum=100000 [00:51:17]OFD Sender: Processing packet 187980 [packets to send 1062, broken 1061] [00:51:17]ProducePacketName [00:51:17]name=ofd_packets/00187980 [00:51:17]OFD Sender: To server: pG, [00:51:17]CommunicateWithHost lk.salyk.kg:30040 [00:51:17]ConnectInit lk.salyk.kg [00:51:17]written 0, free lines is 4095 [00:51:17]Connected sock=9 [00:51:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 E0 FA 04 01 50 9C 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 09 00 00 00 F4 03 04 00 04 F7 16 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 4C DE 02 00 35 04 06 00 9E 26 5B 85 A9 9D D4 38 CA 20 98 B9 CD 57 [00:51:17]Write to MH i2c: 01 00 00 83 07 8A [00:51:17]Write i2c OK [00:51:17]MH_I2C_Read... [00:51:17]Read from MH i2c: 01 [00:51:17]MH_I2C_Read... [00:51:17]Read from MH i2c: 01 07 00 [00:51:17]MH_I2C_Read... [00:51:17]Read from MH i2c: 01 07 00 83 07 00 00 00 00 00 58 0C F5 [00:51:17]RasterBufferAndPrint [00:51:17]line [00:51:17]line [00:51:17]line [00:51:17]line [00:51:17]line [00:51:17]written 0, free lines is 3164 [00:51:17]MH_Cut [00:51:17]Write to MH i2c: D1 01 00 8A 07 01 63 [00:51:17]Write i2c OK [00:51:17]MH_I2C_Read... [00:51:17]Read from MH i2c: D1 [00:51:17]MH_I2C_Read... [00:51:17]Read from MH i2c: D1 01 00 [00:51:17]MH_I2C_Read... [00:51:17]Read from MH i2c: D1 01 00 8A 07 00 62 [00:51:17]Write to MH i2c: 01 00 00 8B 07 92 [00:51:17]Write i2c OK [00:51:17]MH_I2C_Read... [00:51:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 B5 5F 47 00 ED 73 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 4C DE 02 00 F4 03 04 00 F2 A0 16 67 B6 04 01 00 00 19 58 1A E0 C8 CC 1A EF [00:51:17]CommunicateWithHost err = 0 [00:51:17]CheckOFDResponse [00:51:17]1017 (14) - 77093643461234 [00:51:17]1041 (16) - 0000000000965340 [00:51:17]1040 (4) - 187980 [00:51:17]1012 (4) - 21.10.2024 18:44 [00:51:17]1206 (1) - 0 [00:51:17]OFD Sender: Remove packet 187980 [00:51:17]ProducePacketName [00:51:17]name=ofd_packets/00187980 [00:51:17]NVStorageDeleteData [00:51:18]OFD Sender: No OFD packet to send [00:51:18]*** Cut start [00:51:18]*** Partial cut [00:51:18]*** CUTSNS_PIN = 1 [00:51:18]*** CUTSNS_PIN = 0 [00:51:19]*** Brake cut motor [00:51:19]Read from MH i2c: 01 [00:51:19]MH_I2C_Read... [00:51:19]*** Stop cut motor [00:51:19]*** Cut end [00:51:19]Read from MH i2c: 01 07 00 [00:51:19]MH_I2C_Read... [00:51:19]Read from MH i2c: 01 07 00 8B 07 00 00 00 00 00 FF 0F A7 [00:51:19]process_action close_receipt done [00:51:19]requested_data is exist [00:51:19]produce_requested_data [00:51:19]requested_item fm.sn is exist - process it [00:51:19]wFMCommunicate request_size=4 [00:51:19]MH_SAM_APDU [00:51:19]CAPDU: 80 11 00 00 [00:51:19]Write to MH i2c: E2 08 00 8C 07 80 11 00 00 00 00 00 00 0D [00:51:19]Write i2c OK [00:51:19]MH_I2C_Read... [00:51:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:51:19]Read from MH i2c: E2 [00:51:19]MH_I2C_Read... [00:51:19]Read from MH i2c: E2 17 00 [00:51:19]MH_I2C_Read... [00:51:19]Read from MH i2c: E2 17 00 8C 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 5B [00:51:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [00:51:19]wFMCommunicate OK [00:51:19]requested_item fd.num is exist - process it [00:51:19]SAM_PROTO_GetFieldsCounters [00:51:19]wFMCommunicate request_size=4 [00:51:19]MH_SAM_APDU [00:51:19]CAPDU: 80 13 00 00 [00:51:19]Write to MH i2c: E2 08 00 8D 07 80 13 00 00 00 00 00 00 10 [00:51:19]Write i2c OK [00:51:19]MH_I2C_Read... [00:51:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:51:19]Read from MH i2c: E2 [00:51:19]MH_I2C_Read... [00:51:19]Read from MH i2c: E2 62 00 [00:51:19]MH_I2C_Read... [00:51:19]Read from MH i2c: E2 62 00 8D 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 4C DE 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 09 00 00 00 5E 04 04 00 09 00 00 00 57 04 04 00 0A 00 00 00 19 04 04 00 00 00 00 00 90 00 2C [00:51:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 4C DE 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 09 00 00 00 5E 04 04 00 09 00 00 00 57 04 04 00 0A 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:51:19]wFMCommunicate OK [00:51:19]SAM_PROTO_GetFieldsCounters done [00:51:19]requested_item shift.num is exist - process it [00:51:19]requested_item shift.opened is exist - process it [00:51:19]req_shift_opened [00:51:19]FM_GetShiftState [00:51:19]SAM_PROTO_GetShiftState [00:51:19]wFMCommunicate request_size=4 [00:51:19]MH_SAM_APDU [00:51:19]CAPDU: 80 13 01 00 [00:51:19]Write to MH i2c: E2 08 00 8E 07 80 13 01 00 00 00 00 00 12 [00:51:19]Write i2c OK [00:51:19]MH_I2C_Read... [00:51:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:51:19]Read from MH i2c: E2 [00:51:19]MH_I2C_Read... [00:51:19]Read from MH i2c: E2 0E 00 [00:51:19]MH_I2C_Read... [00:51:19]Read from MH i2c: E2 0E 00 8E 07 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 07 [00:51:19]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [00:51:19]wFMCommunicate OK [00:51:19]SAM_PROTO_GetShiftState done [00:51:19]FM_GetShiftState done [00:51:19]req_shift_opened done [00:51:19]requested_item shift.open_date is exist - process it [00:51:19]req_shift_open_date [00:51:19]req_shift_open_date done [00:51:19]produce_requested_data done [00:51:19]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187980,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [00:51:19]process_action_free close_receipt [00:51:19]json_value_free [00:51:19]json_value_free done [00:51:19]process_json_proto returns [00:51:19]Send response to host [00:51:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187980,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [00:51:19]free response buf [00:51:19]execute_script done [00:51:19]execute_script returns [00:51:19]free content buf [00:51:19]Sock 10.Close socket [00:51:19]Sock 10.Thread stoped [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:44]OFD Sender: No OFD packet to send [00:54:49]OFD Sender: No OFD packet to send [00:54:54]OFD Sender: No OFD packet to send [00:54:59]OFD Sender: No OFD packet to send [00:55:04]OFD Sender: No OFD packet to send [00:55:09]OFD Sender: No OFD packet to send [00:55:14]OFD Sender: No OFD packet to send [00:55:19]OFD Sender: No OFD packet to send [00:55:24]OFD Sender: No OFD packet to send [00:55:29]OFD Sender: No OFD packet to send [00:55:34]OFD Sender: No OFD packet to send [00:55:39]OFD Sender: No OFD packet to send [00:55:44]OFD Sender: No OFD packet to send [00:55:49]OFD Sender: No OFD packet to send [00:55:54]OFD Sender: No OFD packet to send [00:55:59]OFD Sender: No OFD packet to send [00:56:04]OFD Sender: No OFD packet to send [00:56:09]OFD Sender: No OFD packet to send [00:56:14]OFD Sender: No OFD packet to send [00:56:19]OFD Sender: No OFD packet to send [00:56:24]OFD Sender: No OFD packet to send [00:56:29]OFD Sender: No OFD packet to send [00:56:32]accept exits with 8 [00:56:32]New connection [00:56:32]New thread 3067055460 created [00:56:32]Thread 3067198820 joined [00:56:32]Waiting for new connection... [00:56:32] Sock 8.Parse request [00:56:32]Sock 8.Check first char [00:56:32]Sock 8.First char is OK [00:56:32]request: POST /json_proto HTTP/1.0 [00:56:32]Method: POST [00:56:32]URL: /json_proto [00:56:32]Method is POST - this is cgi request [00:56:32]url: /json_proto [00:56:32]query_string will be loaded in cgi processing [00:56:32]execute_cgi json_proto POST (null) [00:56:32]execute_cgi path=json_proto method=POST [00:56:32]POST find Content-Length [00:56:32]Host: 172.17.42.131:8080 [00:56:32]Content-Length: 674 [00:56:32]Content-Type: application/json [00:56:32] [00:56:32]POST finish read [00:56:32]Found Content-Length = 674 [00:56:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210033", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:56:32]execute_script... [00:56: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)210033", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:56:32]POST & json_proto [00:56:32]process_json_proto [00:56:32]json parsed OK: [00:56:32]protocol is kg_v1.0 [00:56:32]action value=close_receipt [00:56:32]process_action close_receipt [00:56:32]cmd_close_receipt [00:56:32]MH_GetDate [00:56:32]Write to MH i2c: F0 00 00 8F 07 85 [00:56:32]Write i2c OK [00:56:32]MH_I2C_Read... [00:56:32]Read from MH i2c: F0 [00:56:32]MH_I2C_Read... [00:56:32]Read from MH i2c: F0 09 00 [00:56:32]MH_I2C_Read... [00:56:32]Read from MH i2c: F0 09 00 8F 07 00 41 F8 16 67 A0 18 CA 66 2C [00:56:32]GetLastDocTimeStamp 1729558276 [00:56:32]current date 1729558593 [00:56:32]FM_GetShiftState [00:56:32]SAM_PROTO_GetShiftState [00:56:32]wFMCommunicate request_size=4 [00:56:32]MH_SAM_APDU [00:56:32]CAPDU: 80 13 01 00 [00:56:32]Write to MH i2c: E2 08 00 90 07 80 13 01 00 00 00 00 00 14 [00:56:32]Write i2c OK [00:56:32]MH_I2C_Read... [00:56:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:56:32]Read from MH i2c: E2 [00:56:32]MH_I2C_Read... [00:56:32]Read from MH i2c: E2 0E 00 [00:56:32]MH_I2C_Read... [00:56:32]Read from MH i2c: E2 0E 00 90 07 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 09 [00:56:32]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [00:56:32]wFMCommunicate OK [00:56:32]SAM_PROTO_GetShiftState done [00:56:32]FM_GetShiftState done [00:56:32]opened in 1729556094 [00:56:32]opened+sec_in_day 1729642494 [00:56:32]quantity*price = 50063 [00:56:32]sum+1 = 50064 [00:56:32]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 10 22.10.2024 00:56 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 187981 ФПД: 118259807753756 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T005633&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187981&fm=118259807753756&tin=02508201610067®Number=0000000000100030&sum=50000 [00:56:33]StoreToDocumentArchive [00:56:33]shift 461 fd 187981 [00:56:33]save to /storage/0461/doc_00187981 [00:56:33]save last doc name /storage/0461/doc_00187981 to /storage/kkm_last_doc_name [00:56:33]save OK [00:56:33]Clear old archive folders... [00:56:33]ProcessDocumentItem done err = 0, tmpTLVsize=248 [00:56:33]tlvbuf is 01C02480 [00:56:33]SAM_PROTO_ClearQueue [00:56:33]wFMCommunicate request_size=4 [00:56:33]MH_SAM_APDU [00:56:33]CAPDU: 80 09 00 00 [00:56:33]Write to MH i2c: E2 08 00 9D 07 80 09 00 00 00 00 00 00 16 [00:56:33]Write i2c OK [00:56:33]MH_I2C_Read... [00:56:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:56:33]Read from MH i2c: E2 [00:56:33]MH_I2C_Read... [00:56:33]Read from MH i2c: E2 03 00 [00:56:33]MH_I2C_Read... [00:56:33]Read from MH i2c: E2 03 00 9D 07 00 90 00 18 [00:56:33]RAPDU: 90 00 [00:56:33]wFMCommunicate OK [00:56:33]SAM_PROTO_ClearQueue done [00:56:33]KKMCreateOFDPacket [00:56:33]OFDProtocolAddRootSTLVToBuf [00:56:33]FM_MakeSignedData [00:56:33]FM_MakeSignedData [00:56:33]SAM_PROTO_SignData [00:56:33]wFMCommunicate request_size=4 [00:56:33]MH_SAM_APDU [00:56:33]CAPDU: 80 0D 01 02 [00:56:33]Write to MH i2c: E2 08 00 9E 07 80 0D 01 02 00 00 00 00 1E [00:56:33]Write i2c OK [00:56:33]MH_I2C_Read... [00:56:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:56:33]Read from MH i2c: E2 [00:56:33]MH_I2C_Read... [00:56:33]Read from MH i2c: E2 03 00 [00:56:33]MH_I2C_Read... [00:56:33]Read from MH i2c: E2 03 00 9E 07 00 90 00 19 [00:56:33]RAPDU: 90 00 [00:56:33]wFMCommunicate OK [00:56:33]wFMCommunicate request_size=255 [00:56:33]MH_SAM_APDU [00:56:33]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 41 F8 16 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 4D DE 02 00 35 04 06 00 6B 8E 81 D5 [00:56:33]Write to MH i2c: E2 02 01 9F 07 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 0A 00 00 00 F4 03 04 00 41 F8 16 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 4D DE 02 00 35 04 06 00 6B 8E 81 D5 00 00 1B [00:56:33]Write i2c OK [00:56:33]MH_I2C_Read... [00:56:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:56:34]Read from MH i2c: E2 [00:56:34]MH_I2C_Read... [00:56:34]Read from MH i2c: E2 03 00 [00:56:34]MH_I2C_Read... [00:56:34]Read from MH i2c: E2 03 00 9F 07 00 90 00 1A [00:56:34]RAPDU: 90 00 [00:56:34]wFMCommunicate OK [00:56:34]wFMCommunicate request_size=7 [00:56:34]MH_SAM_APDU [00:56:34]CAPDU: 80 0D 02 02 02 16 1C [00:56:34]Write to MH i2c: E2 0A 00 A0 07 80 0D 02 02 02 00 16 1C 00 00 57 [00:56:34]Write i2c OK [00:56:34]MH_I2C_Read... [00:56:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:56:34]Read from MH i2c: E2 [00:56:34]MH_I2C_Read... [00:56:34]Read from MH i2c: E2 03 00 [00:56:34]MH_I2C_Read... [00:56:34]Read from MH i2c: E2 03 00 A0 07 00 90 00 1B [00:56:34]RAPDU: 90 00 [00:56:34]wFMCommunicate OK [00:56:34]wFMCommunicate request_size=4 [00:56:34]MH_SAM_APDU [00:56:34]CAPDU: 80 0D 03 02 [00:56:34]Write to MH i2c: E2 08 00 A1 07 80 0D 03 02 00 00 00 00 23 [00:56:34]Write i2c OK [00:56:34]MH_I2C_Read... [00:56:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:56:34]Read from MH i2c: E2 [00:56:34]MH_I2C_Read... [00:56:34]Read from MH i2c: E2 0B 00 [00:56:34]MH_I2C_Read... [00:56:34]Read from MH i2c: E2 0B 00 A1 07 00 55 DA 73 62 98 D3 22 07 90 00 BC [00:56:34]RAPDU: 55 DA 73 62 98 D3 22 07 90 00 [00:56:34]wFMCommunicate OK [00:56:34]SAM_PROTO_SignData done [00:56:34]FM_MakeSignedData done [00:56:34]CreateOFDProtocolMessage [00:56:34]wFMCommunicate request_size=4 [00:56:34]MH_SAM_APDU [00:56:34]CAPDU: 80 11 00 00 [00:56:34]Write to MH i2c: E2 08 00 A2 07 80 11 00 00 00 00 00 00 23 [00:56:34]Write i2c OK [00:56:34]MH_I2C_Read... [00:56:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:56:34]Read from MH i2c: E2 [00:56:34]MH_I2C_Read... [00:56:34]Read from MH i2c: E2 17 00 [00:56:34]MH_I2C_Read... [00:56:34]Read from MH i2c: E2 17 00 A2 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 71 [00:56:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [00:56:34]wFMCommunicate OK [00:56:34]CreateOFDProtocolMessage done [00:56:34]OFDSenderStorePacket 187981 [00:56:34]StoreOFDPacket docnum=187981 [00:56:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 65 70 04 01 9F FB 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 41 F8 16 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 4D DE 02 00 35 04 06 00 6B 8E 81 D5 16 1C 55 DA 73 62 98 D3 22 07 [00:56:34]CheckFolder [00:56:34]dirname=/storage/ofd_packets [00:56:34]CheckFolder done [00:56:34]ProducePacketName [00:56:34]name=ofd_packets/00187981 [00:56:34]NVStorageSaveData ofd_packets/00187981 [00:56:34]File name is /storage/ofd_packets/00187981 [00:56:34]Write 298 bytes [00:56:34]NVStorageSaveData done [00:56:34]OFDSenderStorePacket done [00:56:34]KKMCreateOFDPacket done [00:56:34]NVStorageSaveData kkm_last_timestamp [00:56:34]File name is /storage/kkm_last_timestamp [00:56:34]Write 4 bytes [00:56:34]NVStorageSaveData done [00:56:34]ExternCall_PrintAddStr [00:56:34]wPrintStart [00:56:34]Write to MH i2c: 01 00 00 A3 07 AA [00:56:34]Write i2c OK [00:56:34]MH_I2C_Read... [00:56:34]Read from MH i2c: 01 [00:56:34]MH_I2C_Read... [00:56:34]Read from MH i2c: 01 07 00 [00:56:34]MH_I2C_Read... [00:56:34]Read from MH i2c: 01 07 00 A3 07 00 00 00 00 00 FF 0F BF [00:56:34]RasterBufferAndPrint [00:56:34]line Счет N : (1)210033 [00:56:34]line ИНН: 02508201610067 [00:56:34]line Контрольно-Кассовый Чек [00:56:34]line ПРОДАЖА [00:56:34]line ТРК (МРК, ГНК) : 51 [00:56:34]line Товар: 2710194210 [00:56:34]line ДТ-К-5 [00:56:34]line 6.570 * 76.20 [00:56:34]line = 500.63 [00:56:34]line НДС 12% НСП 1% [00:56:34]line > о реализуемом товаре [00:56:34]line ОКРУГЛЕНИЕ: -0.63 [00:56:34]line ИТОГО: 500.00 [00:56:34]line Внесено: 500.00 [00:56:34]line СДАЧА: 0.00 [00:56:34]line НСП 1% : 4.43 [00:56:34]line НДС 12% : 53.16 [00:56:34]line Наличными: 500.00 [00:56:34]line Безнал.: 0.00 [00:56:34]line Место: АЗС № 86 "Партнер Нефть" [00:56:34]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [00:56:34]line СНО: Общий режим [00:56:34]line Чек 10 22.10.2024 00:56 [00:56:34]line Смена: 461 ФФД: 1.0 [00:56:34]line ЗНМ: 0300000155 [00:56:34]line РНМ: 0000000000100030 [00:56:34]line Версия ККМ: 001 [00:56:34]line ФМ: 0000000000965340 [00:56:34]line ФД: 187981 [00:56:34]line ФПД: 118259807753756 [00:56:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T005633&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187981&fm=118259807753756&tin=02508201610067®Number=0000000000100030&sum=50000 [00:56:34]written 0, free lines is 4095 [00:56:34]OFD Sender: Processing packet 187981 [packets to send 1062, broken 1061] [00:56:34]ProducePacketName [00:56:34]name=ofd_packets/00187981 [00:56:34]OFD Sender: To server: pG, [00:56:34]CommunicateWithHost lk.salyk.kg:30040 [00:56:34]ConnectInit lk.salyk.kg [00:56:34]Connected sock=10 [00:56:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 65 70 04 01 9F FB 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 41 F8 16 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 4D DE 02 00 35 04 06 00 6B 8E 81 D5 16 1C 55 DA 73 62 98 D3 22 07 [00:56:34]Write to MH i2c: 01 00 00 CE 07 D5 [00:56:34]Write i2c OK [00:56:34]MH_I2C_Read... [00:56:34]Read from MH i2c: 01 [00:56:34]MH_I2C_Read... [00:56:34]Read from MH i2c: 01 07 00 [00:56:34]MH_I2C_Read... [00:56:34]Read from MH i2c: 01 07 00 CE 07 00 00 00 00 00 56 0C 3E [00:56:34]RasterBufferAndPrint [00:56:34]line [00:56:34]line [00:56:34]line [00:56:34]line [00:56:34]line [00:56:34]written 0, free lines is 3161 [00:56:34]MH_Cut [00:56:34]Write to MH i2c: D1 01 00 D5 07 01 AE [00:56:34]Write i2c OK [00:56:34]MH_I2C_Read... [00:56:34]Read from MH i2c: D1 [00:56:34]MH_I2C_Read... [00:56:34]Read from MH i2c: D1 01 00 [00:56:34]MH_I2C_Read... [00:56:34]Read from MH i2c: D1 01 00 D5 07 00 AD [00:56:34]Write to MH i2c: 01 00 00 D6 07 DD [00:56:34]Write i2c OK [00:56:34]MH_I2C_Read... [00:56:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 00 80 47 00 0D 68 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 4D DE 02 00 F4 03 04 00 2F A2 16 67 B6 04 01 00 00 68 0F D9 F8 2A 57 B6 5C [00:56:34]CommunicateWithHost err = 0 [00:56:34]CheckOFDResponse [00:56:34]1017 (14) - 77093643461234 [00:56:34]1041 (16) - 0000000000965340 [00:56:34]1040 (4) - 187981 [00:56:34]1012 (4) - 21.10.2024 18:49 [00:56:34]1206 (1) - 0 [00:56:34]OFD Sender: Remove packet 187981 [00:56:34]ProducePacketName [00:56:34]name=ofd_packets/00187981 [00:56:34]NVStorageDeleteData [00:56:35]OFD Sender: No OFD packet to send [00:56:35]*** Cut start [00:56:35]*** Partial cut [00:56:35]*** CUTSNS_PIN = 1 [00:56:36]*** CUTSNS_PIN = 0 [00:56:36]*** Brake cut motor [00:56:36]Read from MH i2c: 01 [00:56:36]MH_I2C_Read... [00:56:36]*** Stop cut motor [00:56:36]*** Cut end [00:56:36]Read from MH i2c: 01 07 00 [00:56:36]MH_I2C_Read... [00:56:36]Read from MH i2c: 01 07 00 D6 07 00 00 00 00 00 FF 0F F2 [00:56:36]process_action close_receipt done [00:56:36]requested_data is exist [00:56:36]produce_requested_data [00:56:36]requested_item fm.sn is exist - process it [00:56:36]wFMCommunicate request_size=4 [00:56:36]MH_SAM_APDU [00:56:36]CAPDU: 80 11 00 00 [00:56:36]Write to MH i2c: E2 08 00 D7 07 80 11 00 00 00 00 00 00 58 [00:56:36]Write i2c OK [00:56:36]MH_I2C_Read... [00:56:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:56:36]Read from MH i2c: E2 [00:56:36]MH_I2C_Read... [00:56:36]Read from MH i2c: E2 17 00 [00:56:36]MH_I2C_Read... [00:56:36]Read from MH i2c: E2 17 00 D7 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 A6 [00:56:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [00:56:36]wFMCommunicate OK [00:56:36]requested_item fd.num is exist - process it [00:56:36]SAM_PROTO_GetFieldsCounters [00:56:36]wFMCommunicate request_size=4 [00:56:36]MH_SAM_APDU [00:56:36]CAPDU: 80 13 00 00 [00:56:36]Write to MH i2c: E2 08 00 D8 07 80 13 00 00 00 00 00 00 5B [00:56:36]Write i2c OK [00:56:36]MH_I2C_Read... [00:56:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:56:36]Read from MH i2c: E2 [00:56:36]MH_I2C_Read... [00:56:36]Read from MH i2c: E2 62 00 [00:56:36]MH_I2C_Read... [00:56:36]Read from MH i2c: E2 62 00 D8 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 4D DE 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 0A 00 00 00 5E 04 04 00 0A 00 00 00 57 04 04 00 0B 00 00 00 19 04 04 00 00 00 00 00 90 00 7B [00:56:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 4D DE 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 0A 00 00 00 5E 04 04 00 0A 00 00 00 57 04 04 00 0B 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:56:36]wFMCommunicate OK [00:56:36]SAM_PROTO_GetFieldsCounters done [00:56:36]requested_item shift.num is exist - process it [00:56:36]requested_item shift.opened is exist - process it [00:56:36]req_shift_opened [00:56:36]FM_GetShiftState [00:56:36]SAM_PROTO_GetShiftState [00:56:36]wFMCommunicate request_size=4 [00:56:36]MH_SAM_APDU [00:56:36]CAPDU: 80 13 01 00 [00:56:36]Write to MH i2c: E2 08 00 D9 07 80 13 01 00 00 00 00 00 5D [00:56:36]Write i2c OK [00:56:36]MH_I2C_Read... [00:56:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:56:36]Read from MH i2c: E2 [00:56:36]MH_I2C_Read... [00:56:36]Read from MH i2c: E2 0E 00 [00:56:36]MH_I2C_Read... [00:56:36]Read from MH i2c: E2 0E 00 D9 07 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 52 [00:56:36]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [00:56:36]wFMCommunicate OK [00:56:36]SAM_PROTO_GetShiftState done [00:56:36]FM_GetShiftState done [00:56:36]req_shift_opened done [00:56:36]requested_item shift.open_date is exist - process it [00:56:36]req_shift_open_date [00:56:36]req_shift_open_date done [00:56:36]produce_requested_data done [00:56:36]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187981,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [00:56:36]process_action_free close_receipt [00:56:36]json_value_free [00:56:36]json_value_free done [00:56:36]process_json_proto returns [00:56:36]Send response to host [00:56:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187981,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [00:56:36]free response buf [00:56:36]execute_script done [00:56:36]execute_script returns [00:56:36]free content buf [00:56:36]Sock 8.Close socket [00:56:36]Sock 8.Thread stoped [00:56:40]OFD Sender: No OFD packet to send [00:56:45]OFD Sender: No OFD packet to send [00:56:50]OFD Sender: No OFD packet to send [00:56:55]OFD Sender: No OFD packet to send [00:56:58]accept exits with 6 [00:56:58]New connection [00:56:58]New thread 3067198820 created [00:56:58]Thread 3067055460 joined [00:56:58]Waiting for new connection... [00:56:58] Sock 6.Parse request [00:56:58]Sock 6.Check first char [00:56:58]Sock 6.First char is OK [00:56:58]request: POST /json_proto HTTP/1.0 [00:56:58]Method: POST [00:56:58]URL: /json_proto [00:56:58]Method is POST - this is cgi request [00:56:58]url: /json_proto [00:56:58]query_string will be loaded in cgi processing [00:56:58]execute_cgi json_proto POST (null) [00:56:58]execute_cgi path=json_proto method=POST [00:56:58]POST find Content-Length [00:56:58]Host: 172.17.42.131:8080 [00:56:58]Content-Length: 688 [00:56:58]Content-Type: application/json [00:56:58] [00:56:58]POST finish read [00:56:58]Found Content-Length = 688 [00:56:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210032", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 12.960, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:56:58]execute_script... [00:56: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)210032", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 12.960, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:56:58]POST & json_proto [00:56:58]process_json_proto [00:56:58]json parsed OK: [00:56:58]protocol is kg_v1.0 [00:56:58]action value=close_receipt [00:56:58]process_action close_receipt [00:56:58]cmd_close_receipt [00:56:58]MH_GetDate [00:56:58]Write to MH i2c: F0 00 00 DA 07 D0 [00:56:58]Write i2c OK [00:56:58]MH_I2C_Read... [00:56:58]Read from MH i2c: F0 [00:56:58]MH_I2C_Read... [00:56:58]Read from MH i2c: F0 09 00 [00:56:58]MH_I2C_Read... [00:56:58]Read from MH i2c: F0 09 00 DA 07 00 5B F8 16 67 A0 18 CA 66 91 [00:56:58]GetLastDocTimeStamp 1729558593 [00:56:58]current date 1729558619 [00:56:58]FM_GetShiftState [00:56:58]SAM_PROTO_GetShiftState [00:56:58]wFMCommunicate request_size=4 [00:56:58]MH_SAM_APDU [00:56:58]CAPDU: 80 13 01 00 [00:56:58]Write to MH i2c: E2 08 00 DB 07 80 13 01 00 00 00 00 00 5F [00:56:58]Write i2c OK [00:56:58]MH_I2C_Read... [00:56:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:56:58]Read from MH i2c: E2 [00:56:58]MH_I2C_Read... [00:56:58]Read from MH i2c: E2 0E 00 [00:56:58]MH_I2C_Read... [00:56:58]Read from MH i2c: E2 0E 00 DB 07 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 54 [00:56:58]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [00:56:58]wFMCommunicate OK [00:56:58]SAM_PROTO_GetShiftState done [00:56:58]FM_GetShiftState done [00:56:58]opened in 1729556094 [00:56:58]opened+sec_in_day 1729642494 [00:56:58]quantity*price = 100051 [00:56:58]sum+1 = 100052 [00:56:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 11 22.10.2024 00:56 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 187982 ФПД: 53614945414800 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T005659&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187982&fm=53614945414800&tin=02508201610067®Number=0000000000100030&sum=100000 [00:56:59]StoreToDocumentArchive [00:56:59]shift 461 fd 187982 [00:56:59]save to /storage/0461/doc_00187982 [00:56:59]save last doc name /storage/0461/doc_00187982 to /storage/kkm_last_doc_name [00:56:59]save OK [00:56:59]Clear old archive folders... [00:56:59]ProcessDocumentItem done err = 0, tmpTLVsize=257 [00:56:59]tlvbuf is 01C03A00 [00:56:59]SAM_PROTO_ClearQueue [00:56:59]wFMCommunicate request_size=4 [00:56:59]MH_SAM_APDU [00:56:59]CAPDU: 80 09 00 00 [00:56:59]Write to MH i2c: E2 08 00 E8 07 80 09 00 00 00 00 00 00 61 [00:56:59]Write i2c OK [00:56:59]MH_I2C_Read... [00:56:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:56:59]Read from MH i2c: E2 [00:56:59]MH_I2C_Read... [00:56:59]Read from MH i2c: E2 03 00 [00:56:59]MH_I2C_Read... [00:56:59]Read from MH i2c: E2 03 00 E8 07 00 90 00 63 [00:56:59]RAPDU: 90 00 [00:56:59]wFMCommunicate OK [00:56:59]SAM_PROTO_ClearQueue done [00:56:59]KKMCreateOFDPacket [00:56:59]OFDProtocolAddRootSTLVToBuf [00:56:59]FM_MakeSignedData [00:56:59]FM_MakeSignedData [00:56:59]SAM_PROTO_SignData [00:56:59]wFMCommunicate request_size=4 [00:56:59]MH_SAM_APDU [00:56:59]CAPDU: 80 0D 01 02 [00:56:59]Write to MH i2c: E2 08 00 E9 07 80 0D 01 02 00 00 00 00 69 [00:56:59]Write i2c OK [00:56:59]MH_I2C_Read... [00:57:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:57:00]Read from MH i2c: E2 [00:57:00]MH_I2C_Read... [00:57:00]Read from MH i2c: E2 03 00 [00:57:00]MH_I2C_Read... [00:57:00]Read from MH i2c: E2 03 00 E9 07 00 90 00 64 [00:57:00]RAPDU: 90 00 [00:57:00]wFMCommunicate OK [00:57:00]wFMCommunicate request_size=255 [00:57:00]MH_SAM_APDU [00:57:00]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 5B F8 16 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 4E DE 02 [00:57:00]Write to MH i2c: E2 02 01 EA 07 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 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 5B F8 16 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 4E DE 02 00 00 9D [00:57:00]Write i2c OK [00:57:00]MH_I2C_Read... [00:57:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:57:00]Read from MH i2c: E2 [00:57:00]MH_I2C_Read... [00:57:00]Read from MH i2c: E2 03 00 [00:57:00]MH_I2C_Read... [00:57:00]Read from MH i2c: E2 03 00 EA 07 00 90 00 65 [00:57:00]RAPDU: 90 00 [00:57:00]wFMCommunicate OK [00:57:00]wFMCommunicate request_size=16 [00:57:00]MH_SAM_APDU [00:57:00]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 30 C3 33 C6 AE 90 [00:57:00]Write to MH i2c: E2 13 00 EB 07 80 0D 02 02 0B 00 00 35 04 06 00 30 C3 33 C6 AE 90 00 00 EB [00:57:00]Write i2c OK [00:57:00]MH_I2C_Read... [00:57:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:57:00]Read from MH i2c: E2 [00:57:00]MH_I2C_Read... [00:57:00]Read from MH i2c: E2 03 00 [00:57:00]MH_I2C_Read... [00:57:00]Read from MH i2c: E2 03 00 EB 07 00 90 00 66 [00:57:00]RAPDU: 90 00 [00:57:00]wFMCommunicate OK [00:57:00]wFMCommunicate request_size=4 [00:57:00]MH_SAM_APDU [00:57:00]CAPDU: 80 0D 03 02 [00:57:00]Write to MH i2c: E2 08 00 EC 07 80 0D 03 02 00 00 00 00 6E [00:57:00]Write i2c OK [00:57:00]MH_I2C_Read... [00:57:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:57:00]Read from MH i2c: E2 [00:57:00]MH_I2C_Read... [00:57:00]Read from MH i2c: E2 0B 00 [00:57:00]MH_I2C_Read... [00:57:00]Read from MH i2c: E2 0B 00 EC 07 00 2D C5 D6 4D 44 F4 80 58 90 00 94 [00:57:00]RAPDU: 2D C5 D6 4D 44 F4 80 58 90 00 [00:57:00]wFMCommunicate OK [00:57:00]SAM_PROTO_SignData done [00:57:00]FM_MakeSignedData done [00:57:00]CreateOFDProtocolMessage [00:57:00]wFMCommunicate request_size=4 [00:57:00]MH_SAM_APDU [00:57:00]CAPDU: 80 11 00 00 [00:57:00]Write to MH i2c: E2 08 00 ED 07 80 11 00 00 00 00 00 00 6E [00:57:00]Write i2c OK [00:57:00]MH_I2C_Read... [00:57:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:57:00]Read from MH i2c: E2 [00:57:00]MH_I2C_Read... [00:57:00]Read from MH i2c: E2 17 00 [00:57:00]MH_I2C_Read... [00:57:00]Read from MH i2c: E2 17 00 ED 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 BC [00:57:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [00:57:00]wFMCommunicate OK [00:57:00]CreateOFDProtocolMessage done [00:57:00]OFDSenderStorePacket 187982 [00:57:00]StoreOFDPacket docnum=187982 [00:57:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 DC A4 0D 01 B0 87 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 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 5B F8 16 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 4E DE 02 00 35 04 06 00 30 C3 33 C6 AE 90 2D C5 D6 4D 44 F4 80 58 [00:57:00]CheckFolder [00:57:00]dirname=/storage/ofd_packets [00:57:00]CheckFolder done [00:57:00]ProducePacketName [00:57:00]name=ofd_packets/00187982 [00:57:00]NVStorageSaveData ofd_packets/00187982 [00:57:00]File name is /storage/ofd_packets/00187982 [00:57:00]Write 307 bytes [00:57:00]NVStorageSaveData done [00:57:00]OFDSenderStorePacket done [00:57:00]KKMCreateOFDPacket done [00:57:00]NVStorageSaveData kkm_last_timestamp [00:57:00]File name is /storage/kkm_last_timestamp [00:57:00]Write 4 bytes [00:57:00]NVStorageSaveData done [00:57:00]ExternCall_PrintAddStr [00:57:00]wPrintStart [00:57:00]Write to MH i2c: 01 00 00 EE 07 F5 [00:57:00]Write i2c OK [00:57:00]MH_I2C_Read... [00:57:00]Read from MH i2c: 01 [00:57:00]MH_I2C_Read... [00:57:00]Read from MH i2c: 01 07 00 [00:57:00]MH_I2C_Read... [00:57:00]Read from MH i2c: 01 07 00 EE 07 00 00 00 00 00 FF 0F 0A [00:57:00]RasterBufferAndPrint [00:57:00]line Счет N : (1)210032 [00:57:00]line ИНН: 02508201610067 [00:57:00]line Контрольно-Кассовый Чек [00:57:00]line ПРОДАЖА [00:57:00]line ТРК (МРК, ГНК) : 11 [00:57:00]line Товар: 2710194210 [00:57:00]line D-ENERGY ДТ-К-5 [00:57:00]line 12.960 * 77.20 [00:57:00]line = 1000.51 [00:57:00]line НДС 12% НСП 1% [00:57:00]line > о реализуемом товаре [00:57:00]line ОКРУГЛЕНИЕ: -0.51 [00:57:00]line ИТОГО: 1000.00 [00:57:00]line Внесено: 1000.00 [00:57:00]line СДАЧА: 0.00 [00:57:00]line НСП 1% : 8.85 [00:57:00]line НДС 12% : 106.25 [00:57:00]line Наличными: 1000.00 [00:57:00]line Безнал.: 0.00 [00:57:00]line Место: АЗС № 86 "Партнер Нефть" [00:57:00]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [00:57:00]line СНО: Общий режим [00:57:00]line Чек 11 22.10.2024 00:56 [00:57:00]line Смена: 461 ФФД: 1.0 [00:57:00]line ЗНМ: 0300000155 [00:57:00]line РНМ: 0000000000100030 [00:57:00]line Версия ККМ: 001 [00:57:00]line ФМ: 0000000000965340 [00:57:00]line ФД: 187982 [00:57:00]line ФПД: 53614945414800 [00:57:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T005659&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187982&fm=53614945414800&tin=02508201610067®Number=0000000000100030&sum=100000 [00:57:00]OFD Sender: Processing packet 187982 [packets to send 1062, broken 1061] [00:57:00]ProducePacketName [00:57:00]name=ofd_packets/00187982 [00:57:00]OFD Sender: To server: pG, [00:57:00]CommunicateWithHost lk.salyk.kg:30040 [00:57:00]ConnectInit lk.salyk.kg [00:57:00]written 0, free lines is 4095 [00:57:00]Connected sock=10 [00:57:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 DC A4 0D 01 B0 87 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 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 5B F8 16 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 4E DE 02 00 35 04 06 00 30 C3 33 C6 AE 90 2D C5 D6 4D 44 F4 80 58 [00:57:00]Write to MH i2c: 01 00 00 19 08 21 [00:57:00]Write i2c OK [00:57:00]MH_I2C_Read... [00:57:00]Read from MH i2c: 01 [00:57:00]MH_I2C_Read... [00:57:00]Read from MH i2c: 01 07 00 [00:57:00]MH_I2C_Read... [00:57:00]Read from MH i2c: 01 07 00 19 08 00 00 00 00 00 5E 0C 92 [00:57:00]RasterBufferAndPrint [00:57:00]line [00:57:00]line [00:57:00]line [00:57:00]line [00:57:00]line [00:57:00]written 0, free lines is 3169 [00:57:00]MH_Cut [00:57:00]Write to MH i2c: D1 01 00 20 08 01 FA [00:57:00]Write i2c OK [00:57:00]MH_I2C_Read... [00:57:00]Read from MH i2c: D1 [00:57:00]MH_I2C_Read... [00:57:00]Read from MH i2c: D1 01 00 [00:57:00]MH_I2C_Read... [00:57:01]Read from MH i2c: D1 01 00 20 08 00 F9 [00:57:01]Write to MH i2c: 01 00 00 21 08 29 [00:57:01]Write i2c OK [00:57:01]MH_I2C_Read... [00:57:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 4D 9E 47 00 35 0B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 4E DE 02 00 F4 03 04 00 4A A2 16 67 B6 04 01 00 00 2F 70 BC EF 5A DB 58 72 [00:57:01]CommunicateWithHost err = 0 [00:57:01]CheckOFDResponse [00:57:01]1017 (14) - 77093643461234 [00:57:01]1041 (16) - 0000000000965340 [00:57:01]1040 (4) - 187982 [00:57:01]1012 (4) - 21.10.2024 18:49 [00:57:01]1206 (1) - 0 [00:57:01]OFD Sender: Remove packet 187982 [00:57:01]ProducePacketName [00:57:01]name=ofd_packets/00187982 [00:57:01]NVStorageDeleteData [00:57:01]OFD Sender: No OFD packet to send [00:57:02]*** Cut start [00:57:02]*** Partial cut [00:57:02]*** CUTSNS_PIN = 1 [00:57:02]*** CUTSNS_PIN = 0 [00:57:02]*** Brake cut motor [00:57:02]Read from MH i2c: 01 [00:57:02]MH_I2C_Read... [00:57:02]*** Stop cut motor [00:57:02]*** Cut end [00:57:02]Read from MH i2c: 01 07 00 [00:57:02]MH_I2C_Read... [00:57:02]Read from MH i2c: 01 07 00 21 08 00 00 00 00 00 FF 0F 3E [00:57:02]process_action close_receipt done [00:57:02]requested_data is exist [00:57:02]produce_requested_data [00:57:02]requested_item fm.sn is exist - process it [00:57:02]wFMCommunicate request_size=4 [00:57:02]MH_SAM_APDU [00:57:02]CAPDU: 80 11 00 00 [00:57:02]Write to MH i2c: E2 08 00 22 08 80 11 00 00 00 00 00 00 A4 [00:57:02]Write i2c OK [00:57:02]MH_I2C_Read... [00:57:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:57:02]Read from MH i2c: E2 [00:57:02]MH_I2C_Read... [00:57:02]Read from MH i2c: E2 17 00 [00:57:02]MH_I2C_Read... [00:57:02]Read from MH i2c: E2 17 00 22 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 F2 [00:57:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [00:57:02]wFMCommunicate OK [00:57:02]requested_item fd.num is exist - process it [00:57:02]SAM_PROTO_GetFieldsCounters [00:57:02]wFMCommunicate request_size=4 [00:57:02]MH_SAM_APDU [00:57:02]CAPDU: 80 13 00 00 [00:57:02]Write to MH i2c: E2 08 00 23 08 80 13 00 00 00 00 00 00 A7 [00:57:02]Write i2c OK [00:57:02]MH_I2C_Read... [00:57:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:57:03]Read from MH i2c: E2 [00:57:03]MH_I2C_Read... [00:57:03]Read from MH i2c: E2 62 00 [00:57:03]MH_I2C_Read... [00:57:03]Read from MH i2c: E2 62 00 23 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 4E DE 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 0B 00 00 00 5E 04 04 00 0B 00 00 00 57 04 04 00 0C 00 00 00 19 04 04 00 00 00 00 00 90 00 CB [00:57:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 4E DE 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 0B 00 00 00 5E 04 04 00 0B 00 00 00 57 04 04 00 0C 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:57:03]wFMCommunicate OK [00:57:03]SAM_PROTO_GetFieldsCounters done [00:57:03]requested_item shift.num is exist - process it [00:57:03]requested_item shift.opened is exist - process it [00:57:03]req_shift_opened [00:57:03]FM_GetShiftState [00:57:03]SAM_PROTO_GetShiftState [00:57:03]wFMCommunicate request_size=4 [00:57:03]MH_SAM_APDU [00:57:03]CAPDU: 80 13 01 00 [00:57:03]Write to MH i2c: E2 08 00 24 08 80 13 01 00 00 00 00 00 A9 [00:57:03]Write i2c OK [00:57:03]MH_I2C_Read... [00:57:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:57:03]Read from MH i2c: E2 [00:57:03]MH_I2C_Read... [00:57:03]Read from MH i2c: E2 0E 00 [00:57:03]MH_I2C_Read... [00:57:03]Read from MH i2c: E2 0E 00 24 08 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 9E [00:57:03]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [00:57:03]wFMCommunicate OK [00:57:03]SAM_PROTO_GetShiftState done [00:57:03]FM_GetShiftState done [00:57:03]req_shift_opened done [00:57:03]requested_item shift.open_date is exist - process it [00:57:03]req_shift_open_date [00:57:03]req_shift_open_date done [00:57:03]produce_requested_data done [00:57:03]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187982,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [00:57:03]process_action_free close_receipt [00:57:03]json_value_free [00:57:03]json_value_free done [00:57:03]process_json_proto returns [00:57:03]Send response to host [00:57:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187982,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [00:57:03]free response buf [00:57:03]execute_script done [00:57:03]execute_script returns [00:57:03]free content buf [00:57:03]Sock 6.Close socket [00:57:03]Sock 6.Thread stoped [00:57:06]OFD Sender: No OFD packet to send [00:57:11]OFD Sender: No OFD packet to send [00:57:16]OFD Sender: No OFD packet to send [00:57:21]OFD Sender: No OFD packet to send [00:57:26]OFD Sender: No OFD packet to send [00:57:31]OFD Sender: No OFD packet to send [00:57:36]OFD Sender: No OFD packet to send [00:57:41]OFD Sender: No OFD packet to send [00:57:46]OFD Sender: No OFD packet to send [00:57:51]OFD Sender: No OFD packet to send [00:57:56]OFD Sender: No OFD packet to send [00:58:01]OFD Sender: No OFD packet to send [00:58:06]OFD Sender: No OFD packet to send [00:58:11]OFD Sender: No OFD packet to send [00:58:16]OFD Sender: No OFD packet to send [00:58:21]OFD Sender: No OFD packet to send [00:58:26]OFD Sender: No OFD packet to send [00:58:31]OFD Sender: No OFD packet to send [00:58:36]OFD Sender: No OFD packet to send [00:58:42]OFD Sender: No OFD packet to send [00:58:47]OFD Sender: No OFD packet to send [00:58:52]OFD Sender: No OFD packet to send [00:58:57]OFD Sender: No OFD packet to send [00:59:02]OFD Sender: No OFD packet to send [00:59:07]OFD Sender: No OFD packet to send [00:59:12]OFD Sender: No OFD packet to send [00:59:17]OFD Sender: No OFD packet to send [00:59:22]OFD Sender: No OFD packet to send [00:59:27]OFD Sender: No OFD packet to send [00:59:32]OFD Sender: No OFD packet to send [00:59:37]OFD Sender: No OFD packet to send [00:59:42]OFD Sender: No OFD packet to send [00:59:47]OFD Sender: No OFD packet to send [00:59:52]OFD Sender: No OFD packet to send [00:59:57]OFD Sender: No OFD packet to send [01:00:02]OFD Sender: No OFD packet to send [01:00:07]OFD Sender: No OFD packet to send [01:00:12]OFD Sender: No OFD packet to send [01:00:17]OFD Sender: No OFD packet to send [01:00:22]OFD Sender: No OFD packet to send [01:00:27]OFD Sender: No OFD packet to send [01:00:32]OFD Sender: No OFD packet to send [01:00:37]OFD Sender: No OFD packet to send [01:00:42]OFD Sender: No OFD packet to send [01:00:47]OFD Sender: No OFD packet to send [01:00:52]OFD Sender: No OFD packet to send [01:00:57]OFD Sender: No OFD packet to send [01:01:02]OFD Sender: No OFD packet to send [01:01:07]OFD Sender: No OFD packet to send [01:01:12]OFD Sender: No OFD packet to send [01:01:17]OFD Sender: No OFD packet to send [01:01:22]OFD Sender: No OFD packet to send [01:01:27]OFD Sender: No OFD packet to send [01:01:32]OFD Sender: No OFD packet to send [01:01:37]OFD Sender: No OFD packet to send [01:01:42]OFD Sender: No OFD packet to send [01:01:47]OFD Sender: No OFD packet to send [01:01:52]OFD Sender: No OFD packet to send [01:01:57]OFD Sender: No OFD packet to send [01:02:02]OFD Sender: No OFD packet to send [01:02:07]OFD Sender: No OFD packet to send [01:02:12]OFD Sender: No OFD packet to send [01:02:17]OFD Sender: No OFD packet to send [01:02:23]OFD Sender: No OFD packet to send [01:02:28]OFD Sender: No OFD packet to send [01:02:33]OFD Sender: No OFD packet to send [01:02:38]OFD Sender: No OFD packet to send [01:02:43]OFD Sender: No OFD packet to send [01:02:48]OFD Sender: No OFD packet to send [01:02:53]OFD Sender: No OFD packet to send [01:02:58]OFD Sender: No OFD packet to send [01:03:03]OFD Sender: No OFD packet to send [01:03:08]OFD Sender: No OFD packet to send [01:03:13]OFD Sender: No OFD packet to send [01:03:18]OFD Sender: No OFD packet to send [01:03:23]OFD Sender: No OFD packet to send [01:03:28]OFD Sender: No OFD packet to send [01:03:33]OFD Sender: No OFD packet to send [01:03:38]OFD Sender: No OFD packet to send [01:03:43]OFD Sender: No OFD packet to send [01:03:48]OFD Sender: No OFD packet to send [01:03:53]OFD Sender: No OFD packet to send [01:03:58]OFD Sender: No OFD packet to send [01:04:03]OFD Sender: No OFD packet to send [01:04:08]OFD Sender: No OFD packet to send [01:04:13]OFD Sender: No OFD packet to send [01:04:18]OFD Sender: No OFD packet to send [01:04:23]OFD Sender: No OFD packet to send [01:04:28]OFD Sender: No OFD packet to send [01:04:33]OFD Sender: No OFD packet to send [01:04:38]OFD Sender: No OFD packet to send [01:04:43]OFD Sender: No OFD packet to send [01:04:48]OFD Sender: No OFD packet to send [01:04:53]OFD Sender: No OFD packet to send [01:04:58]OFD Sender: No OFD packet to send [01:05:03]OFD Sender: No OFD packet to send [01:05:08]OFD Sender: No OFD packet to send [01:05:13]OFD Sender: No OFD packet to send [01:05:18]OFD Sender: No OFD packet to send [01:05:23]OFD Sender: No OFD packet to send [01:05:28]OFD Sender: No OFD packet to send [01:05:33]OFD Sender: No OFD packet to send [01:05:38]OFD Sender: No OFD packet to send [01:05:43]OFD Sender: No OFD packet to send [01:05:48]OFD Sender: No OFD packet to send [01:05:53]OFD Sender: No OFD packet to send [01:05:59]OFD Sender: No OFD packet to send [01:06:04]OFD Sender: No OFD packet to send [01:06:09]OFD Sender: No OFD packet to send [01:06:14]OFD Sender: No OFD packet to send [01:06:19]OFD Sender: No OFD packet to send [01:06:24]OFD Sender: No OFD packet to send [01:06:29]OFD Sender: No OFD packet to send [01:06:34]OFD Sender: No OFD packet to send [01:06:39]OFD Sender: No OFD packet to send [01:06:44]OFD Sender: No OFD packet to send [01:06:49]OFD Sender: No OFD packet to send [01:06:54]OFD Sender: No OFD packet to send [01:06:59]OFD Sender: No OFD packet to send [01:07:04]OFD Sender: No OFD packet to send [01:07:09]OFD Sender: No OFD packet to send [01:07:14]OFD Sender: No OFD packet to send [01:07:19]OFD Sender: No OFD packet to send [01:07:24]OFD Sender: No OFD packet to send [01:07:29]OFD Sender: No OFD packet to send [01:07:34]OFD Sender: No OFD packet to send [01:07:39]OFD Sender: No OFD packet to send [01:07:44]OFD Sender: No OFD packet to send [01:07:49]OFD Sender: No OFD packet to send [01:07:54]OFD Sender: No OFD packet to send [01:07:59]OFD Sender: No OFD packet to send [01:08:04]OFD Sender: No OFD packet to send [01:08:09]OFD Sender: No OFD packet to send [01:08:14]OFD Sender: No OFD packet to send [01:08:19]OFD Sender: No OFD packet to send [01:08:24]OFD Sender: No OFD packet to send [01:08:29]OFD Sender: No OFD packet to send [01:08:34]OFD Sender: No OFD packet to send [01:08:39]OFD Sender: No OFD packet to send [01:08:44]OFD Sender: No OFD packet to send [01:08:49]OFD Sender: No OFD packet to send [01:08:54]OFD Sender: No OFD packet to send [01:08:59]OFD Sender: No OFD packet to send [01:09:04]OFD Sender: No OFD packet to send [01:09:09]OFD Sender: No OFD packet to send [01:09:14]OFD Sender: No OFD packet to send [01:09:19]OFD Sender: No OFD packet to send [01:09:24]OFD Sender: No OFD packet to send [01:09:29]OFD Sender: No OFD packet to send [01:09:35]OFD Sender: No OFD packet to send [01:09:40]OFD Sender: No OFD packet to send [01:09:45]OFD Sender: No OFD packet to send [01:09:50]OFD Sender: No OFD packet to send [01:09:55]OFD Sender: No OFD packet to send [01:10:00]OFD Sender: No OFD packet to send [01:10:05]OFD Sender: No OFD packet to send [01:10:10]OFD Sender: No OFD packet to send [01:10:15]OFD Sender: No OFD packet to send [01:10:20]OFD Sender: No OFD packet to send [01:10:25]OFD Sender: No OFD packet to send [01:10:30]OFD Sender: No OFD packet to send [01:10:35]OFD Sender: No OFD packet to send [01:10:40]OFD Sender: No OFD packet to send [01:10:45]OFD Sender: No OFD packet to send [01:10:50]OFD Sender: No OFD packet to send [01:10:55]OFD Sender: No OFD packet to send [01:11:00]OFD Sender: No OFD packet to send [01:11:05]OFD Sender: No OFD packet to send [01:11:10]OFD Sender: No OFD packet to send [01:11:15]OFD Sender: No OFD packet to send [01:11:20]OFD Sender: No OFD packet to send [01:11:25]OFD Sender: No OFD packet to send [01:11:30]OFD Sender: No OFD packet to send [01:11:35]OFD Sender: No OFD packet to send [01:11:40]OFD Sender: No OFD packet to send [01:11:45]OFD Sender: No OFD packet to send [01:11:50]OFD Sender: No OFD packet to send [01:11:55]OFD Sender: No OFD packet to send [01:12:00]OFD Sender: No OFD packet to send [01:12:05]OFD Sender: No OFD packet to send [01:12:10]OFD Sender: No OFD packet to send [01:12:15]OFD Sender: No OFD packet to send [01:12:20]OFD Sender: No OFD packet to send [01:12:25]OFD Sender: No OFD packet to send [01:12:30]OFD Sender: No OFD packet to send [01:12:35]OFD Sender: No OFD packet to send [01:12:40]OFD Sender: No OFD packet to send [01:12:45]OFD Sender: No OFD packet to send [01:12:50]OFD Sender: No OFD packet to send [01:12:55]OFD Sender: No OFD packet to send [01:13:00]OFD Sender: No OFD packet to send [01:13:05]OFD Sender: No OFD packet to send [01:13:10]OFD Sender: No OFD packet to send [01:13:15]OFD Sender: No OFD packet to send [01:13:21]OFD Sender: No OFD packet to send [01:13:26]OFD Sender: No OFD packet to send [01:13:31]OFD Sender: No OFD packet to send [01:13:36]OFD Sender: No OFD packet to send [01:13:41]OFD Sender: No OFD packet to send [01:13:46]OFD Sender: No OFD packet to send [01:13:51]OFD Sender: No OFD packet to send [01:13:56]OFD Sender: No OFD packet to send [01:14:01]OFD Sender: No OFD packet to send [01:14:06]OFD Sender: No OFD packet to send [01:14:11]OFD Sender: No OFD packet to send [01:14:16]OFD Sender: No OFD packet to send [01:14:21]OFD Sender: No OFD packet to send [01:14:26]OFD Sender: No OFD packet to send [01:14:31]OFD Sender: No OFD packet to send [01:14:36]OFD Sender: No OFD packet to send [01:14:41]OFD Sender: No OFD packet to send [01:14:46]OFD Sender: No OFD packet to send [01:14:51]OFD Sender: No OFD packet to send [01:14:56]OFD Sender: No OFD packet to send [01:15:01]OFD Sender: No OFD packet to send [01:15:06]OFD Sender: No OFD packet to send [01:15:11]OFD Sender: No OFD packet to send [01:15:16]OFD Sender: No OFD packet to send [01:15:21]OFD Sender: No OFD packet to send [01:15:26]OFD Sender: No OFD packet to send [01:15:31]OFD Sender: No OFD packet to send [01:15:36]OFD Sender: No OFD packet to send [01:15:41]OFD Sender: No OFD packet to send [01:15:46]OFD Sender: No OFD packet to send [01:15:51]OFD Sender: No OFD packet to send [01:15:56]OFD Sender: No OFD packet to send [01:16:01]OFD Sender: No OFD packet to send [01:16:06]OFD Sender: No OFD packet to send [01:16:11]OFD Sender: No OFD packet to send [01:16:16]OFD Sender: No OFD packet to send [01:16:21]OFD Sender: No OFD packet to send [01:16:26]OFD Sender: No OFD packet to send [01:16:31]OFD Sender: No OFD packet to send [01:16:36]OFD Sender: No OFD packet to send [01:16:41]OFD Sender: No OFD packet to send [01:16:46]OFD Sender: No OFD packet to send [01:16:51]OFD Sender: No OFD packet to send [01:16:56]OFD Sender: No OFD packet to send [01:17:01]OFD Sender: No OFD packet to send [01:17: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:58]OFD Sender: No OFD packet to send [01:21:03]OFD Sender: No OFD packet to send [01:21:08]OFD Sender: No OFD packet to send [01:21:13]OFD Sender: No OFD packet to send [01:21:18]OFD Sender: No OFD packet to send [01:21:23]OFD Sender: No OFD packet to send [01:21:28]OFD Sender: No OFD packet to send [01:21:33]OFD Sender: No OFD packet to send [01:21:38]OFD Sender: No OFD packet to send [01:21:43]OFD Sender: No OFD packet to send [01:21:48]OFD Sender: No OFD packet to send [01:21:53]OFD Sender: No OFD packet to send [01:21:58]OFD Sender: No OFD packet to send [01:22:03]OFD Sender: No OFD packet to send [01:22:08]OFD Sender: No OFD packet to send [01:22:13]OFD Sender: No OFD packet to send [01:22:18]OFD Sender: No OFD packet to send [01:22:23]OFD Sender: No OFD packet to send [01:22:28]OFD Sender: No OFD packet to send [01:22:33]OFD Sender: No OFD packet to send [01:22:38]OFD Sender: No OFD packet to send [01:22:43]OFD Sender: No OFD packet to send [01:22:48]OFD Sender: No OFD packet to send [01:22:53]OFD Sender: No OFD packet to send [01:22:58]OFD Sender: No OFD packet to send [01:23:03]OFD Sender: No OFD packet to send [01:23:07]ConnectInit Can't connect to host [01:23:08]OFD Sender: No OFD packet to send [01:23:13]OFD Sender: No OFD packet to send [01:23:18]OFD Sender: No OFD packet to send [01:23:23]OFD Sender: No OFD packet to send [01:23:28]OFD Sender: No OFD packet to send [01:23:33]OFD Sender: No OFD packet to send [01:23:38]OFD Sender: No OFD packet to send [01:23:43]OFD Sender: No OFD packet to send [01:23:48]OFD Sender: No OFD packet to send [01:23:53]OFD Sender: No OFD packet to send [01:23:58]OFD Sender: No OFD packet to send [01:24:03]OFD Sender: No OFD packet to send [01:24:08]OFD Sender: No OFD packet to send [01:24:13]OFD Sender: No OFD packet to send [01:24:18]OFD Sender: No OFD packet to send [01:24:23]OFD Sender: No OFD packet to send [01:24:28]OFD Sender: No OFD packet to send [01:24:33]OFD Sender: No OFD packet to send [01:24:39]OFD Sender: No OFD packet to send [01:24:44]OFD Sender: No OFD packet to send [01:24:49]OFD Sender: No OFD packet to send [01:24:54]OFD Sender: No OFD packet to send [01:24:59]OFD Sender: No OFD packet to send [01:25:04]OFD Sender: No OFD packet to send [01:25:09]OFD Sender: No OFD packet to send [01:25:14]OFD Sender: No OFD packet to send [01:25:19]OFD Sender: No OFD packet to send [01:25:24]OFD Sender: No OFD packet to send [01:25:29]OFD Sender: No OFD packet to send [01:25:34]OFD Sender: No OFD packet to send [01:25:39]OFD Sender: No OFD packet to send [01:25:44]OFD Sender: No OFD packet to send [01:25:49]OFD Sender: No OFD packet to send [01:25:54]OFD Sender: No OFD packet to send [01:25:59]OFD Sender: No OFD packet to send [01:26:04]OFD Sender: No OFD packet to send [01:26:09]OFD Sender: No OFD packet to send [01:26:14]OFD Sender: No OFD packet to send [01:26:19]OFD Sender: No OFD packet to send [01:26:24]OFD Sender: No OFD packet to send [01:26:29]OFD Sender: No OFD packet to send [01:26:34]OFD Sender: No OFD packet to send [01:26:39]OFD Sender: No OFD packet to send [01:26:44]OFD Sender: No OFD packet to send [01:26:49]OFD Sender: No OFD packet to send [01:26:54]OFD Sender: No OFD packet to send [01:26:59]OFD Sender: No OFD packet to send [01:27:00]accept exits with 9 [01:27:00]New connection [01:27:00]New thread 3067055460 created [01:27:00]Thread 3067198820 joined [01:27:00]Waiting for new connection... [01:27:00] Sock 9.Parse request [01:27:00]Sock 9.Check first char [01:27:00]Sock 9.First char is OK [01:27:00]request: POST /json_proto HTTP/1.0 [01:27:00]Method: POST [01:27:00]URL: /json_proto [01:27:00]Method is POST - this is cgi request [01:27:00]url: /json_proto [01:27:00]query_string will be loaded in cgi processing [01:27:00]execute_cgi json_proto POST (null) [01:27:00]execute_cgi path=json_proto method=POST [01:27:00]POST find Content-Length [01:27:00]Host: 172.17.42.131:8080 [01:27:00]Content-Length: 688 [01:27:00]Content-Type: application/json [01:27:00] [01:27:00]POST finish read [01:27:00]Found Content-Length = 688 [01:27:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210034", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 49.230, "sum" : 3800.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3800.00, "total" : 3800.00, "payments": [ { "type": 0, "sum" : 3800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:27:00]execute_script... [01:27: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)210034", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 49.230, "sum" : 3800.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3800.00, "total" : 3800.00, "payments": [ { "type": 0, "sum" : 3800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:27:00]POST & json_proto [01:27:00]process_json_proto [01:27:00]json parsed OK: [01:27:00]protocol is kg_v1.0 [01:27:00]action value=close_receipt [01:27:00]process_action close_receipt [01:27:00]cmd_close_receipt [01:27:00]MH_GetDate [01:27:00]Write to MH i2c: F0 00 00 25 08 1C [01:27:00]Write i2c OK [01:27:00]MH_I2C_Read... [01:27:00]Read from MH i2c: F0 [01:27:00]MH_I2C_Read... [01:27:00]Read from MH i2c: F0 09 00 [01:27:00]MH_I2C_Read... [01:27:00]Read from MH i2c: F0 09 00 25 08 00 65 FF 16 67 A0 18 CA 66 EE [01:27:00]GetLastDocTimeStamp 1729558619 [01:27:00]current date 1729560421 [01:27:00]FM_GetShiftState [01:27:00]SAM_PROTO_GetShiftState [01:27:00]wFMCommunicate request_size=4 [01:27:00]MH_SAM_APDU [01:27:00]CAPDU: 80 13 01 00 [01:27:00]Write to MH i2c: E2 08 00 26 08 80 13 01 00 00 00 00 00 AB [01:27:00]Write i2c OK [01:27:00]MH_I2C_Read... [01:27:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:27:00]Read from MH i2c: E2 [01:27:00]MH_I2C_Read... [01:27:00]Read from MH i2c: E2 0E 00 [01:27:00]MH_I2C_Read... [01:27:00]Read from MH i2c: E2 0E 00 26 08 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 A0 [01:27:00]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [01:27:00]wFMCommunicate OK [01:27:00]SAM_PROTO_GetShiftState done [01:27:00]FM_GetShiftState done [01:27:00]opened in 1729556094 [01:27:00]opened+sec_in_day 1729642494 [01:27:00]quantity*price = 380055 [01:27:00]sum+1 = 380057 [01:27:00]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.56 ИТОГО: 3800.00 Внесено: 3800.00 СДАЧА: 0.00 НСП 1% : 33.63 НДС 12% : 403.60 Наличными: 3800.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 12 22.10.2024 01:27 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 187983 ФПД: 135222756429021 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T012701&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187983&fm=135222756429021&tin=02508201610067®Number=0000000000100030&sum=380000 [01:27:01]StoreToDocumentArchive [01:27:01]shift 461 fd 187983 [01:27:01]save to /storage/0461/doc_00187983 [01:27:01]save last doc name /storage/0461/doc_00187983 to /storage/kkm_last_doc_name [01:27:01]save OK [01:27:01]Clear old archive folders... [01:27:01]ProcessDocumentItem done err = 0, tmpTLVsize=257 [01:27:01]tlvbuf is 01B954E0 [01:27:01]SAM_PROTO_ClearQueue [01:27:01]wFMCommunicate request_size=4 [01:27:01]MH_SAM_APDU [01:27:01]CAPDU: 80 09 00 00 [01:27:01]Write to MH i2c: E2 08 00 33 08 80 09 00 00 00 00 00 00 AD [01:27:01]Write i2c OK [01:27:01]MH_I2C_Read... [01:27:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:27:01]Read from MH i2c: E2 [01:27:01]MH_I2C_Read... [01:27:01]Read from MH i2c: E2 03 00 [01:27:01]MH_I2C_Read... [01:27:01]Read from MH i2c: E2 03 00 33 08 00 90 00 AF [01:27:01]RAPDU: 90 00 [01:27:01]wFMCommunicate OK [01:27:01]SAM_PROTO_ClearQueue done [01:27:01]KKMCreateOFDPacket [01:27:01]OFDProtocolAddRootSTLVToBuf [01:27:01]FM_MakeSignedData [01:27:01]FM_MakeSignedData [01:27:01]SAM_PROTO_SignData [01:27:01]wFMCommunicate request_size=4 [01:27:01]MH_SAM_APDU [01:27:01]CAPDU: 80 0D 01 02 [01:27:01]Write to MH i2c: E2 08 00 34 08 80 0D 01 02 00 00 00 00 B5 [01:27:01]Write i2c OK [01:27:01]MH_I2C_Read... [01:27:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:27:01]Read from MH i2c: E2 [01:27:01]MH_I2C_Read... [01:27:01]Read from MH i2c: E2 03 00 [01:27:01]MH_I2C_Read... [01:27:01]Read from MH i2c: E2 03 00 34 08 00 90 00 B0 [01:27:01]RAPDU: 90 00 [01:27:01]wFMCommunicate OK [01:27:01]wFMCommunicate request_size=255 [01:27:01]MH_SAM_APDU [01:27:01]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4E C0 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 98 CC 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 CC 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A8 9D 00 00 00 00 07 04 06 00 60 CC 05 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 65 FF 16 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 4F DE 02 [01:27:01]Write to MH i2c: E2 02 01 35 08 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4E C0 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 98 CC 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 CC 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A8 9D 00 00 00 00 07 04 06 00 60 CC 05 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 65 FF 16 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 4F DE 02 00 00 AE [01:27:01]Write i2c OK [01:27:01]MH_I2C_Read... [01:27:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:27:02]Read from MH i2c: E2 [01:27:02]MH_I2C_Read... [01:27:02]Read from MH i2c: E2 03 00 [01:27:02]MH_I2C_Read... [01:27:02]Read from MH i2c: E2 03 00 35 08 00 90 00 B1 [01:27:02]RAPDU: 90 00 [01:27:02]wFMCommunicate OK [01:27:02]wFMCommunicate request_size=16 [01:27:02]MH_SAM_APDU [01:27:02]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 7A FC 00 5C CC DD [01:27:02]Write to MH i2c: E2 13 00 36 08 80 0D 02 02 0B 00 00 35 04 06 00 7A FC 00 5C CC DD 00 00 88 [01:27:02]Write i2c OK [01:27:02]MH_I2C_Read... [01:27:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:27:02]Read from MH i2c: E2 [01:27:02]MH_I2C_Read... [01:27:02]Read from MH i2c: E2 03 00 [01:27:02]MH_I2C_Read... [01:27:02]Read from MH i2c: E2 03 00 36 08 00 90 00 B2 [01:27:02]RAPDU: 90 00 [01:27:02]wFMCommunicate OK [01:27:02]wFMCommunicate request_size=4 [01:27:02]MH_SAM_APDU [01:27:02]CAPDU: 80 0D 03 02 [01:27:02]Write to MH i2c: E2 08 00 37 08 80 0D 03 02 00 00 00 00 BA [01:27:02]Write i2c OK [01:27:02]MH_I2C_Read... [01:27:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:27:02]Read from MH i2c: E2 [01:27:02]MH_I2C_Read... [01:27:02]Read from MH i2c: E2 0B 00 [01:27:02]MH_I2C_Read... [01:27:02]Read from MH i2c: E2 0B 00 37 08 00 85 B7 63 B3 D2 27 91 A5 90 00 3C [01:27:02]RAPDU: 85 B7 63 B3 D2 27 91 A5 90 00 [01:27:02]wFMCommunicate OK [01:27:02]SAM_PROTO_SignData done [01:27:02]FM_MakeSignedData done [01:27:02]CreateOFDProtocolMessage [01:27:02]wFMCommunicate request_size=4 [01:27:02]MH_SAM_APDU [01:27:02]CAPDU: 80 11 00 00 [01:27:02]Write to MH i2c: E2 08 00 38 08 80 11 00 00 00 00 00 00 BA [01:27:02]Write i2c OK [01:27:02]MH_I2C_Read... [01:27:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:27:02]Read from MH i2c: E2 [01:27:02]MH_I2C_Read... [01:27:02]Read from MH i2c: E2 17 00 [01:27:02]MH_I2C_Read... [01:27:02]Read from MH i2c: E2 17 00 38 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 08 [01:27:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [01:27:02]wFMCommunicate OK [01:27:02]CreateOFDProtocolMessage done [01:27:02]OFDSenderStorePacket 187983 [01:27:02]StoreOFDPacket docnum=187983 [01:27:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 4F FE 0D 01 40 66 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 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4E C0 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 98 CC 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 CC 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A8 9D 00 00 00 00 07 04 06 00 60 CC 05 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 65 FF 16 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 4F DE 02 00 35 04 06 00 7A FC 00 5C CC DD 85 B7 63 B3 D2 27 91 A5 [01:27:02]CheckFolder [01:27:02]dirname=/storage/ofd_packets [01:27:02]CheckFolder done [01:27:02]ProducePacketName [01:27:02]name=ofd_packets/00187983 [01:27:02]NVStorageSaveData ofd_packets/00187983 [01:27:02]File name is /storage/ofd_packets/00187983 [01:27:02]Write 307 bytes [01:27:02]NVStorageSaveData done [01:27:02]OFDSenderStorePacket done [01:27:02]KKMCreateOFDPacket done [01:27:02]NVStorageSaveData kkm_last_timestamp [01:27:02]File name is /storage/kkm_last_timestamp [01:27:02]Write 4 bytes [01:27:02]NVStorageSaveData done [01:27:02]ExternCall_PrintAddStr [01:27:02]wPrintStart [01:27:02]Write to MH i2c: 01 00 00 39 08 41 [01:27:02]Write i2c OK [01:27:02]MH_I2C_Read... [01:27:02]Read from MH i2c: 01 [01:27:02]MH_I2C_Read... [01:27:02]Read from MH i2c: 01 07 00 [01:27:02]MH_I2C_Read... [01:27:02]Read from MH i2c: 01 07 00 39 08 00 00 00 00 00 FF 0F 56 [01:27:02]RasterBufferAndPrint [01:27:02]line Счет N : (1)210034 [01:27:02]line ИНН: 02508201610067 [01:27:02]line Контрольно-Кассовый Чек [01:27:02]line ПРОДАЖА [01:27:02]line ТРК (МРК, ГНК) : 41 [01:27:02]line Товар: 2710194210 [01:27:02]line D-ENERGY ДТ-К-5 [01:27:02]line 49.230 * 77.20 [01:27:02]line = 3800.56 [01:27:02]line НДС 12% НСП 1% [01:27:02]line > о реализуемом товаре [01:27:02]line ОКРУГЛЕНИЕ: -0.56 [01:27:02]line ИТОГО: 3800.00 [01:27:02]line Внесено: 3800.00 [01:27:02]line СДАЧА: 0.00 [01:27:02]line НСП 1% : 33.63 [01:27:02]line НДС 12% : 403.60 [01:27:02]line Наличными: 3800.00 [01:27:02]line Безнал.: 0.00 [01:27:02]line Место: АЗС № 86 "Партнер Нефть" [01:27:02]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [01:27:02]line СНО: Общий режим [01:27:02]line Чек 12 22.10.2024 01:27 [01:27:02]line Смена: 461 ФФД: 1.0 [01:27:02]line ЗНМ: 0300000155 [01:27:02]line РНМ: 0000000000100030 [01:27:02]line Версия ККМ: 001 [01:27:02]line ФМ: 0000000000965340 [01:27:02]line ФД: 187983 [01:27:02]line ФПД: 135222756429021 [01:27:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T012701&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187983&fm=135222756429021&tin=02508201610067®Number=0000000000100030&sum=380000 [01:27:02]OFD Sender: Processing packet 187983 [packets to send 1062, broken 1061] [01:27:02]ProducePacketName [01:27:02]name=ofd_packets/00187983 [01:27:02]OFD Sender: To server: pG, [01:27:02]CommunicateWithHost lk.salyk.kg:30040 [01:27:02]ConnectInit lk.salyk.kg [01:27:02]written 0, free lines is 4095 [01:27:02]Connected sock=8 [01:27:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 4F FE 0D 01 40 66 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 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4E C0 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 98 CC 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 CC 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A8 9D 00 00 00 00 07 04 06 00 60 CC 05 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 65 FF 16 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 4F DE 02 00 35 04 06 00 7A FC 00 5C CC DD 85 B7 63 B3 D2 27 91 A5 [01:27:02]Write to MH i2c: 01 00 00 64 08 6C [01:27:02]Write i2c OK [01:27:02]MH_I2C_Read... [01:27:02]Read from MH i2c: 01 [01:27:02]MH_I2C_Read... [01:27:02]Read from MH i2c: 01 07 00 [01:27:02]MH_I2C_Read... [01:27:02]Read from MH i2c: 01 07 00 64 08 00 00 00 00 00 61 0C E0 [01:27:02]RasterBufferAndPrint [01:27:02]line [01:27:02]line [01:27:02]line [01:27:02]line [01:27:02]line [01:27:02]written 0, free lines is 3172 [01:27:02]MH_Cut [01:27:02]Write to MH i2c: D1 01 00 6B 08 01 45 [01:27:02]Write i2c OK [01:27:02]MH_I2C_Read... [01:27:02]Read from MH i2c: D1 [01:27:02]MH_I2C_Read... [01:27:02]Read from MH i2c: D1 01 00 [01:27:02]MH_I2C_Read... [01:27:02]Read from MH i2c: D1 01 00 6B 08 00 44 [01:27:02]Write to MH i2c: 01 00 00 6C 08 74 [01:27:02]Write i2c OK [01:27:02]MH_I2C_Read... [01:27:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 89 ED 47 00 C9 17 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 4F DE 02 00 F4 03 04 00 54 A9 16 67 B6 04 01 00 00 CF 28 D7 04 79 00 FE C1 [01:27:03]CommunicateWithHost err = 0 [01:27:03]CheckOFDResponse [01:27:03]1017 (14) - 77093643461234 [01:27:03]1041 (16) - 0000000000965340 [01:27:03]1040 (4) - 187983 [01:27:03]1012 (4) - 21.10.2024 19:19 [01:27:03]1206 (1) - 0 [01:27:03]OFD Sender: Remove packet 187983 [01:27:03]ProducePacketName [01:27:03]name=ofd_packets/00187983 [01:27:03]NVStorageDeleteData [01:27:03]OFD Sender: No OFD packet to send [01:27:04]*** Cut start [01:27:04]*** Partial cut [01:27:04]*** CUTSNS_PIN = 1 [01:27:04]*** CUTSNS_PIN = 0 [01:27:04]*** Brake cut motor [01:27:04]Read from MH i2c: 01 [01:27:04]MH_I2C_Read... [01:27:04]*** Stop cut motor [01:27:04]*** Cut end [01:27:04]Read from MH i2c: 01 07 00 [01:27:04]MH_I2C_Read... [01:27:04]Read from MH i2c: 01 07 00 6C 08 00 00 00 00 00 FF 0F 89 [01:27:04]process_action close_receipt done [01:27:04]requested_data is exist [01:27:04]produce_requested_data [01:27:04]requested_item fm.sn is exist - process it [01:27:04]wFMCommunicate request_size=4 [01:27:04]MH_SAM_APDU [01:27:04]CAPDU: 80 11 00 00 [01:27:04]Write to MH i2c: E2 08 00 6D 08 80 11 00 00 00 00 00 00 EF [01:27:04]Write i2c OK [01:27:04]MH_I2C_Read... [01:27:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:27:04]Read from MH i2c: E2 [01:27:04]MH_I2C_Read... [01:27:04]Read from MH i2c: E2 17 00 [01:27:04]MH_I2C_Read... [01:27:04]Read from MH i2c: E2 17 00 6D 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 3D [01:27:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [01:27:04]wFMCommunicate OK [01:27:04]requested_item fd.num is exist - process it [01:27:04]SAM_PROTO_GetFieldsCounters [01:27:04]wFMCommunicate request_size=4 [01:27:04]MH_SAM_APDU [01:27:04]CAPDU: 80 13 00 00 [01:27:04]Write to MH i2c: E2 08 00 6E 08 80 13 00 00 00 00 00 00 F2 [01:27:04]Write i2c OK [01:27:04]MH_I2C_Read... [01:27:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:27:04]Read from MH i2c: E2 [01:27:04]MH_I2C_Read... [01:27:04]Read from MH i2c: E2 62 00 [01:27:04]MH_I2C_Read... [01:27:04]Read from MH i2c: E2 62 00 6E 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 4F DE 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 0C 00 00 00 5E 04 04 00 0C 00 00 00 57 04 04 00 0D 00 00 00 19 04 04 00 00 00 00 00 90 00 1A [01:27:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 4F DE 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 0C 00 00 00 5E 04 04 00 0C 00 00 00 57 04 04 00 0D 00 00 00 19 04 04 00 00 00 00 00 90 00 [01:27:05]wFMCommunicate OK [01:27:05]SAM_PROTO_GetFieldsCounters done [01:27:05]requested_item shift.num is exist - process it [01:27:05]requested_item shift.opened is exist - process it [01:27:05]req_shift_opened [01:27:05]FM_GetShiftState [01:27:05]SAM_PROTO_GetShiftState [01:27:05]wFMCommunicate request_size=4 [01:27:05]MH_SAM_APDU [01:27:05]CAPDU: 80 13 01 00 [01:27:05]Write to MH i2c: E2 08 00 6F 08 80 13 01 00 00 00 00 00 F4 [01:27:05]Write i2c OK [01:27:05]MH_I2C_Read... [01:27:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:27:05]Read from MH i2c: E2 [01:27:05]MH_I2C_Read... [01:27:05]Read from MH i2c: E2 0E 00 [01:27:05]MH_I2C_Read... [01:27:05]Read from MH i2c: E2 0E 00 6F 08 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 E9 [01:27:05]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [01:27:05]wFMCommunicate OK [01:27:05]SAM_PROTO_GetShiftState done [01:27:05]FM_GetShiftState done [01:27:05]req_shift_opened done [01:27:05]requested_item shift.open_date is exist - process it [01:27:05]req_shift_open_date [01:27:05]req_shift_open_date done [01:27:05]produce_requested_data done [01:27:05]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187983,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [01:27:05]process_action_free close_receipt [01:27:05]json_value_free [01:27:05]json_value_free done [01:27:05]process_json_proto returns [01:27:05]Send response to host [01:27:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187983,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [01:27:05]free response buf [01:27:05]execute_script done [01:27:05]execute_script returns [01:27:05]free content buf [01:27:05]Sock 9.Close socket [01:27:05]Sock 9.Thread stoped [01:27:08]OFD Sender: No OFD packet to send [01:27:13]OFD Sender: No OFD packet to send [01:27:18]OFD Sender: No OFD packet to send [01:27:23]OFD Sender: No OFD packet to send [01:27:28]OFD Sender: No OFD packet to send [01:27:33]OFD Sender: No OFD packet to send [01:27:38]OFD Sender: No OFD packet to send [01:27:43]OFD Sender: No OFD packet to send [01:27:48]OFD Sender: No OFD packet to send [01:27:53]OFD Sender: No OFD packet to send [01:27:58]OFD Sender: No OFD packet to send [01:28:03]OFD Sender: No OFD packet to send [01:28:08]OFD Sender: No OFD packet to send [01:28:13]OFD Sender: No OFD packet to send [01:28:18]OFD Sender: No OFD packet to send [01:28:23]OFD Sender: No OFD packet to send [01:28:28]OFD Sender: No OFD packet to send [01:28:33]OFD Sender: No OFD packet to send [01:28:38]OFD Sender: No OFD packet to send [01:28:43]OFD Sender: No OFD packet to send [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:35]OFD Sender: No OFD packet to send [01:32:40]OFD Sender: No OFD packet to send [01:32:45]OFD Sender: No OFD packet to send [01:32:50]OFD Sender: No OFD packet to send [01:32:55]OFD Sender: No OFD packet to send [01:33:00]OFD Sender: No OFD packet to send [01:33:05]OFD Sender: No OFD packet to send [01:33:10]OFD Sender: No OFD packet to send [01:33:15]OFD Sender: No OFD packet to send [01:33:20]OFD Sender: No OFD packet to send [01:33:25]OFD Sender: No OFD packet to send [01:33:30]OFD Sender: No OFD packet to send [01:33:35]OFD Sender: No OFD packet to send [01:33:40]OFD Sender: No OFD packet to send [01:33:45]OFD Sender: No OFD packet to send [01:33:50]OFD Sender: No OFD packet to send [01:33:55]OFD Sender: No OFD packet to send [01:34:00]OFD Sender: No OFD packet to send [01:34:05]OFD Sender: No OFD packet to send [01:34:10]OFD Sender: No OFD packet to send [01:34:15]OFD Sender: No OFD packet to send [01:34:20]OFD Sender: No OFD packet to send [01:34:25]OFD Sender: No OFD packet to send [01:34:30]OFD Sender: No OFD packet to send [01:34:35]OFD Sender: No OFD packet to send [01:34:40]OFD Sender: No OFD packet to send [01:34:45]OFD Sender: No OFD packet to send [01:34:49]accept exits with 10 [01:34:49]New connection [01:34:49]New thread 3067198820 created [01:34:49]Thread 3067055460 joined [01:34:49]Waiting for new connection... [01:34:49] Sock 10.Parse request [01:34:49]Sock 10.Check first char [01:34:49]Sock 10.First char is OK [01:34:49]request: POST /json_proto HTTP/1.0 [01:34:49]Method: POST [01:34:49]URL: /json_proto [01:34:49]Method is POST - this is cgi request [01:34:49]url: /json_proto [01:34:49]query_string will be loaded in cgi processing [01:34:49]execute_cgi json_proto POST (null) [01:34:49]execute_cgi path=json_proto method=POST [01:34:49]POST find Content-Length [01:34:49]Host: 172.17.42.131:8080 [01:34:49]Content-Length: 678 [01:34:49]Content-Type: application/json [01:34:49] [01:34:49]POST finish read [01:34:49]Found Content-Length = 678 [01:34:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210035", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "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:34:49]execute_script... [01:34: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)210035", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "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:34:49]POST & json_proto [01:34:49]process_json_proto [01:34:49]json parsed OK: [01:34:49]protocol is kg_v1.0 [01:34:49]action value=close_receipt [01:34:49]process_action close_receipt [01:34:49]cmd_close_receipt [01:34:49]MH_GetDate [01:34:49]Write to MH i2c: F0 00 00 70 08 67 [01:34:49]Write i2c OK [01:34:49]MH_I2C_Read... [01:34:49]Read from MH i2c: F0 [01:34:49]MH_I2C_Read... [01:34:49]Read from MH i2c: F0 09 00 [01:34:49]MH_I2C_Read... [01:34:49]Read from MH i2c: F0 09 00 70 08 00 3A 01 17 67 A0 18 CA 66 11 [01:34:49]GetLastDocTimeStamp 1729560421 [01:34:49]current date 1729560890 [01:34:49]FM_GetShiftState [01:34:49]SAM_PROTO_GetShiftState [01:34:49]wFMCommunicate request_size=4 [01:34:49]MH_SAM_APDU [01:34:49]CAPDU: 80 13 01 00 [01:34:49]Write to MH i2c: E2 08 00 71 08 80 13 01 00 00 00 00 00 F6 [01:34:49]Write i2c OK [01:34:49]MH_I2C_Read... [01:34:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:34:49]Read from MH i2c: E2 [01:34:49]MH_I2C_Read... [01:34:49]Read from MH i2c: E2 0E 00 [01:34:49]MH_I2C_Read... [01:34:49]Read from MH i2c: E2 0E 00 71 08 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 EB [01:34:49]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [01:34:49]wFMCommunicate OK [01:34:49]SAM_PROTO_GetShiftState done [01:34:49]FM_GetShiftState done [01:34:49]opened in 1729556094 [01:34:49]opened+sec_in_day 1729642494 [01:34:49]quantity*price = 70044 [01:34:49]sum+1 = 70045 [01:34:49]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 13 22.10.2024 01:34 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 187984 ФПД: 59610251304976 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T013450&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187984&fm=59610251304976&tin=02508201610067®Number=0000000000100030&sum=70000 [01:34:50]StoreToDocumentArchive [01:34:50]shift 461 fd 187984 [01:34:50]save to /storage/0461/doc_00187984 [01:34:50]save last doc name /storage/0461/doc_00187984 to /storage/kkm_last_doc_name [01:34:50]save OK [01:34:50]Clear old archive folders... [01:34:50]ProcessDocumentItem done err = 0, tmpTLVsize=251 [01:34:50]tlvbuf is 01B89240 [01:34:50]SAM_PROTO_ClearQueue [01:34:50]wFMCommunicate request_size=4 [01:34:50]MH_SAM_APDU [01:34:50]CAPDU: 80 09 00 00 [01:34:50]Write to MH i2c: E2 08 00 7E 08 80 09 00 00 00 00 00 00 F8 [01:34:50]Write i2c OK [01:34:50]MH_I2C_Read... [01:34:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:34:50]Read from MH i2c: E2 [01:34:50]MH_I2C_Read... [01:34:50]Read from MH i2c: E2 03 00 [01:34:50]MH_I2C_Read... [01:34:50]Read from MH i2c: E2 03 00 7E 08 00 90 00 FA [01:34:50]RAPDU: 90 00 [01:34:50]wFMCommunicate OK [01:34:50]SAM_PROTO_ClearQueue done [01:34:50]KKMCreateOFDPacket [01:34:50]OFDProtocolAddRootSTLVToBuf [01:34:50]FM_MakeSignedData [01:34:50]FM_MakeSignedData [01:34:50]SAM_PROTO_SignData [01:34:50]wFMCommunicate request_size=4 [01:34:50]MH_SAM_APDU [01:34:50]CAPDU: 80 0D 01 02 [01:34:50]Write to MH i2c: E2 08 00 7F 08 80 0D 01 02 00 00 00 00 00 [01:34:50]Write i2c OK [01:34:50]MH_I2C_Read... [01:34:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:34:50]Read from MH i2c: E2 [01:34:50]MH_I2C_Read... [01:34:50]Read from MH i2c: E2 03 00 [01:34:50]MH_I2C_Read... [01:34:50]Read from MH i2c: E2 03 00 7F 08 00 90 00 FB [01:34:50]RAPDU: 90 00 [01:34:50]wFMCommunicate OK [01:34:50]wFMCommunicate request_size=255 [01:34:50]MH_SAM_APDU [01:34: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 33 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 0D 00 00 00 F4 03 04 00 3A 01 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 50 DE 02 00 35 04 06 00 36 [01:34:50]Write to MH i2c: E2 02 01 80 08 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 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 0D 00 00 00 F4 03 04 00 3A 01 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 50 DE 02 00 35 04 06 00 36 00 00 7D [01:34:50]Write i2c OK [01:34:50]MH_I2C_Read... [01:34:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:34:51]Read from MH i2c: E2 [01:34:51]MH_I2C_Read... [01:34:51]Read from MH i2c: E2 03 00 [01:34:51]MH_I2C_Read... [01:34:51]Read from MH i2c: E2 03 00 80 08 00 90 00 FC [01:34:51]RAPDU: 90 00 [01:34:51]wFMCommunicate OK [01:34:51]wFMCommunicate request_size=10 [01:34:51]MH_SAM_APDU [01:34:51]CAPDU: 80 0D 02 02 05 37 17 DA A0 10 [01:34:51]Write to MH i2c: E2 0D 00 81 08 80 0D 02 02 05 00 37 17 DA A0 10 00 00 E5 [01:34:51]Write i2c OK [01:34:51]MH_I2C_Read... [01:34:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:34:51]Read from MH i2c: E2 [01:34:51]MH_I2C_Read... [01:34:51]Read from MH i2c: E2 03 00 [01:34:51]MH_I2C_Read... [01:34:51]Read from MH i2c: E2 03 00 81 08 00 90 00 FD [01:34:51]RAPDU: 90 00 [01:34:51]wFMCommunicate OK [01:34:51]wFMCommunicate request_size=4 [01:34:51]MH_SAM_APDU [01:34:51]CAPDU: 80 0D 03 02 [01:34:51]Write to MH i2c: E2 08 00 82 08 80 0D 03 02 00 00 00 00 05 [01:34:51]Write i2c OK [01:34:51]MH_I2C_Read... [01:34:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:34:51]Read from MH i2c: E2 [01:34:51]MH_I2C_Read... [01:34:51]Read from MH i2c: E2 0B 00 [01:34:51]MH_I2C_Read... [01:34:51]Read from MH i2c: E2 0B 00 82 08 00 AD 62 D7 8A 05 04 69 A6 90 00 8E [01:34:51]RAPDU: AD 62 D7 8A 05 04 69 A6 90 00 [01:34:51]wFMCommunicate OK [01:34:51]SAM_PROTO_SignData done [01:34:51]FM_MakeSignedData done [01:34:51]CreateOFDProtocolMessage [01:34:51]wFMCommunicate request_size=4 [01:34:51]MH_SAM_APDU [01:34:51]CAPDU: 80 11 00 00 [01:34:51]Write to MH i2c: E2 08 00 83 08 80 11 00 00 00 00 00 00 05 [01:34:51]Write i2c OK [01:34:51]MH_I2C_Read... [01:34:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:34:51]Read from MH i2c: E2 [01:34:51]MH_I2C_Read... [01:34:51]Read from MH i2c: E2 17 00 [01:34:51]MH_I2C_Read... [01:34:51]Read from MH i2c: E2 17 00 83 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 53 [01:34:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [01:34:51]wFMCommunicate OK [01:34:51]CreateOFDProtocolMessage done [01:34:51]OFDSenderStorePacket 187984 [01:34:51]StoreOFDPacket docnum=187984 [01:34:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 39 58 07 01 2F 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 33 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 0D 00 00 00 F4 03 04 00 3A 01 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 50 DE 02 00 35 04 06 00 36 37 17 DA A0 10 AD 62 D7 8A 05 04 69 A6 [01:34:51]CheckFolder [01:34:51]dirname=/storage/ofd_packets [01:34:51]CheckFolder done [01:34:51]ProducePacketName [01:34:51]name=ofd_packets/00187984 [01:34:51]NVStorageSaveData ofd_packets/00187984 [01:34:51]File name is /storage/ofd_packets/00187984 [01:34:51]Write 301 bytes [01:34:51]NVStorageSaveData done [01:34:51]OFDSenderStorePacket done [01:34:51]KKMCreateOFDPacket done [01:34:51]NVStorageSaveData kkm_last_timestamp [01:34:51]File name is /storage/kkm_last_timestamp [01:34:51]Write 4 bytes [01:34:51]NVStorageSaveData done [01:34:51]ExternCall_PrintAddStr [01:34:51]wPrintStart [01:34:51]Write to MH i2c: 01 00 00 84 08 8C [01:34:51]Write i2c OK [01:34:51]MH_I2C_Read... [01:34:51]Read from MH i2c: 01 [01:34:51]MH_I2C_Read... [01:34:51]Read from MH i2c: 01 07 00 [01:34:51]MH_I2C_Read... [01:34:51]Read from MH i2c: 01 07 00 84 08 00 00 00 00 00 FF 0F A1 [01:34:51]RasterBufferAndPrint [01:34:51]line Счет N : (1)210035 [01:34:51]line ИНН: 02508201610067 [01:34:51]line Контрольно-Кассовый Чек [01:34:51]line ПРОДАЖА [01:34:51]line ТРК (МРК, ГНК) : 42 [01:34:51]line Товар: 2710124130 [01:34:51]line Аи-92-К-3 [01:34:51]line 10.470 * 66.90 [01:34:51]line = 700.44 [01:34:51]line НДС 12% НСП 1% [01:34:51]line > о реализуемом товаре [01:34:51]line ОКРУГЛЕНИЕ: -0.44 [01:34:51]line ИТОГО: 700.00 [01:34:51]line Внесено: 700.00 [01:34:51]line СДАЧА: 0.00 [01:34:51]line НСП 1% : 6.20 [01:34:51]line НДС 12% : 74.38 [01:34:51]line Наличными: 700.00 [01:34:51]line Безнал.: 0.00 [01:34:51]line Место: АЗС № 86 "Партнер Нефть" [01:34:51]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [01:34:51]line СНО: Общий режим [01:34:51]line Чек 13 22.10.2024 01:34 [01:34:51]line Смена: 461 ФФД: 1.0 [01:34:51]line ЗНМ: 0300000155 [01:34:51]line РНМ: 0000000000100030 [01:34:51]line Версия ККМ: 001 [01:34:51]line ФМ: 0000000000965340 [01:34:51]line ФД: 187984 [01:34:51]line ФПД: 59610251304976 [01:34:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T013450&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187984&fm=59610251304976&tin=02508201610067®Number=0000000000100030&sum=70000 [01:34:51]written 0, free lines is 4095 [01:34:51]OFD Sender: Processing packet 187984 [packets to send 1062, broken 1061] [01:34:51]ProducePacketName [01:34:51]name=ofd_packets/00187984 [01:34:51]OFD Sender: To server: pG, [01:34:51]CommunicateWithHost lk.salyk.kg:30040 [01:34:51]ConnectInit lk.salyk.kg [01:34:51]Connected sock=9 [01:34:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 39 58 07 01 2F 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 33 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 0D 00 00 00 F4 03 04 00 3A 01 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 50 DE 02 00 35 04 06 00 36 37 17 DA A0 10 AD 62 D7 8A 05 04 69 A6 [01:34:51]Write to MH i2c: 01 00 00 AF 08 B7 [01:34:51]Write i2c OK [01:34:51]MH_I2C_Read... [01:34:51]Read from MH i2c: 01 [01:34:51]MH_I2C_Read... [01:34:51]Read from MH i2c: 01 07 00 [01:34:51]MH_I2C_Read... [01:34:51]Read from MH i2c: 01 07 00 AF 08 00 00 00 00 00 55 0C 1F [01:34:51]RasterBufferAndPrint [01:34:51]line [01:34:51]line [01:34:51]line [01:34:51]line [01:34:51]line [01:34:51]written 0, free lines is 3161 [01:34:51]MH_Cut [01:34:51]Write to MH i2c: D1 01 00 B6 08 01 90 [01:34:51]Write i2c OK [01:34:51]MH_I2C_Read... [01:34:51]Read from MH i2c: D1 [01:34:51]MH_I2C_Read... [01:34:51]Read from MH i2c: D1 01 00 [01:34:51]MH_I2C_Read... [01:34:51]Read from MH i2c: D1 01 00 B6 08 00 8F [01:34:51]Write to MH i2c: 01 00 00 B7 08 BF [01:34:51]Write i2c OK [01:34:51]MH_I2C_Read... [01:34:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 02 0F 47 00 43 7A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 50 DE 02 00 F4 03 04 00 29 AB 16 67 B6 04 01 00 00 08 AC 30 A7 71 0D 05 E6 [01:34:51]CommunicateWithHost err = 0 [01:34:51]CheckOFDResponse [01:34:51]1017 (14) - 77093643461234 [01:34:51]1041 (16) - 0000000000965340 [01:34:51]1040 (4) - 187984 [01:34:51]1012 (4) - 21.10.2024 19:27 [01:34:51]1206 (1) - 0 [01:34:51]OFD Sender: Remove packet 187984 [01:34:51]ProducePacketName [01:34:51]name=ofd_packets/00187984 [01:34:51]NVStorageDeleteData [01:34:52]OFD Sender: No OFD packet to send [01:34:52]*** Cut start [01:34:52]*** Partial cut [01:34:52]*** CUTSNS_PIN = 1 [01:34:53]*** CUTSNS_PIN = 0 [01:34:53]*** Brake cut motor [01:34:53]Read from MH i2c: 01 [01:34:53]MH_I2C_Read... [01:34:53]*** Stop cut motor [01:34:53]*** Cut end [01:34:53]Read from MH i2c: 01 07 00 [01:34:53]MH_I2C_Read... [01:34:53]Read from MH i2c: 01 07 00 B7 08 00 00 00 00 00 FF 0F D4 [01:34:53]process_action close_receipt done [01:34:53]requested_data is exist [01:34:53]produce_requested_data [01:34:53]requested_item fm.sn is exist - process it [01:34:53]wFMCommunicate request_size=4 [01:34:53]MH_SAM_APDU [01:34:53]CAPDU: 80 11 00 00 [01:34:53]Write to MH i2c: E2 08 00 B8 08 80 11 00 00 00 00 00 00 3A [01:34:53]Write i2c OK [01:34:53]MH_I2C_Read... [01:34:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:34:53]Read from MH i2c: E2 [01:34:53]MH_I2C_Read... [01:34:53]Read from MH i2c: E2 17 00 [01:34:53]MH_I2C_Read... [01:34:53]Read from MH i2c: E2 17 00 B8 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 88 [01:34:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [01:34:53]wFMCommunicate OK [01:34:53]requested_item fd.num is exist - process it [01:34:53]SAM_PROTO_GetFieldsCounters [01:34:53]wFMCommunicate request_size=4 [01:34:53]MH_SAM_APDU [01:34:53]CAPDU: 80 13 00 00 [01:34:53]Write to MH i2c: E2 08 00 B9 08 80 13 00 00 00 00 00 00 3D [01:34:53]Write i2c OK [01:34:53]MH_I2C_Read... [01:34:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:34:53]Read from MH i2c: E2 [01:34:53]MH_I2C_Read... [01:34:53]Read from MH i2c: E2 62 00 [01:34:53]MH_I2C_Read... [01:34:53]Read from MH i2c: E2 62 00 B9 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 50 DE 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 0D 00 00 00 5E 04 04 00 0D 00 00 00 57 04 04 00 0E 00 00 00 19 04 04 00 00 00 00 00 90 00 69 [01:34:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 50 DE 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 0D 00 00 00 5E 04 04 00 0D 00 00 00 57 04 04 00 0E 00 00 00 19 04 04 00 00 00 00 00 90 00 [01:34:53]wFMCommunicate OK [01:34:53]SAM_PROTO_GetFieldsCounters done [01:34:53]requested_item shift.num is exist - process it [01:34:53]requested_item shift.opened is exist - process it [01:34:53]req_shift_opened [01:34:53]FM_GetShiftState [01:34:53]SAM_PROTO_GetShiftState [01:34:53]wFMCommunicate request_size=4 [01:34:53]MH_SAM_APDU [01:34:53]CAPDU: 80 13 01 00 [01:34:53]Write to MH i2c: E2 08 00 BA 08 80 13 01 00 00 00 00 00 3F [01:34:53]Write i2c OK [01:34:53]MH_I2C_Read... [01:34:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:34:53]Read from MH i2c: E2 [01:34:53]MH_I2C_Read... [01:34:53]Read from MH i2c: E2 0E 00 [01:34:53]MH_I2C_Read... [01:34:53]Read from MH i2c: E2 0E 00 BA 08 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 34 [01:34:53]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [01:34:53]wFMCommunicate OK [01:34:53]SAM_PROTO_GetShiftState done [01:34:53]FM_GetShiftState done [01:34:53]req_shift_opened done [01:34:53]requested_item shift.open_date is exist - process it [01:34:53]req_shift_open_date [01:34:53]req_shift_open_date done [01:34:53]produce_requested_data done [01:34:53]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187984,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [01:34:53]process_action_free close_receipt [01:34:53]json_value_free [01:34:53]json_value_free done [01:34:53]process_json_proto returns [01:34:53]Send response to host [01:34:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187984,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [01:34:53]free response buf [01:34:53]execute_script done [01:34:53]execute_script returns [01:34:53]free content buf [01:34:53]Sock 10.Close socket [01:34:53]Sock 10.Thread stoped [01:34:57]OFD Sender: No OFD packet to send [01:35:02]OFD Sender: No OFD packet to send [01:35:07]OFD Sender: No OFD packet to send [01:35:12]OFD Sender: No OFD packet to send [01:35:17]OFD Sender: No OFD packet to send [01:35:18]accept exits with 8 [01:35:18]New connection [01:35:18]New thread 3067055460 created [01:35:18]Thread 3067198820 joined [01:35:18]Waiting for new connection... [01:35:18] Sock 8.Parse request [01:35:18]Sock 8.Check first char [01:35:18]Sock 8.First char is OK [01:35:18]request: POST /json_proto HTTP/1.0 [01:35:18]Method: POST [01:35:18]URL: /json_proto [01:35:18]Method is POST - this is cgi request [01:35:18]url: /json_proto [01:35:18]query_string will be loaded in cgi processing [01:35:18]execute_cgi json_proto POST (null) [01:35:18]execute_cgi path=json_proto method=POST [01:35:18]POST find Content-Length [01:35:18]Host: 172.17.42.131:8080 [01:35:18]Content-Length: 688 [01:35:18]Content-Type: application/json [01:35:18] [01:35:18]POST finish read [01:35:18]Found Content-Length = 688 [01:35:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210036", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 12.960, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:35:18]execute_script... [01:35: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)210036", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 12.960, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:35:18]POST & json_proto [01:35:18]process_json_proto [01:35:18]json parsed OK: [01:35:18]protocol is kg_v1.0 [01:35:18]action value=close_receipt [01:35:18]process_action close_receipt [01:35:18]cmd_close_receipt [01:35:18]MH_GetDate [01:35:18]Write to MH i2c: F0 00 00 BB 08 B2 [01:35:18]Write i2c OK [01:35:18]MH_I2C_Read... [01:35:18]Read from MH i2c: F0 [01:35:18]MH_I2C_Read... [01:35:18]Read from MH i2c: F0 09 00 [01:35:18]MH_I2C_Read... [01:35:18]Read from MH i2c: F0 09 00 BB 08 00 57 01 17 67 A0 18 CA 66 79 [01:35:18]GetLastDocTimeStamp 1729560890 [01:35:18]current date 1729560919 [01:35:18]FM_GetShiftState [01:35:18]SAM_PROTO_GetShiftState [01:35:18]wFMCommunicate request_size=4 [01:35:18]MH_SAM_APDU [01:35:18]CAPDU: 80 13 01 00 [01:35:18]Write to MH i2c: E2 08 00 BC 08 80 13 01 00 00 00 00 00 41 [01:35:18]Write i2c OK [01:35:18]MH_I2C_Read... [01:35:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:35:18]Read from MH i2c: E2 [01:35:18]MH_I2C_Read... [01:35:18]Read from MH i2c: E2 0E 00 [01:35:18]MH_I2C_Read... [01:35:18]Read from MH i2c: E2 0E 00 BC 08 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 36 [01:35:18]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [01:35:18]wFMCommunicate OK [01:35:18]SAM_PROTO_GetShiftState done [01:35:18]FM_GetShiftState done [01:35:18]opened in 1729556094 [01:35:18]opened+sec_in_day 1729642494 [01:35:18]quantity*price = 100051 [01:35:18]sum+1 = 100052 [01:35:18]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 14 22.10.2024 01:35 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 187985 ФПД: 190711747134656 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T013519&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187985&fm=190711747134656&tin=02508201610067®Number=0000000000100030&sum=100000 [01:35:19]StoreToDocumentArchive [01:35:19]shift 461 fd 187985 [01:35:19]save to /storage/0461/doc_00187985 [01:35:19]save last doc name /storage/0461/doc_00187985 to /storage/kkm_last_doc_name [01:35:19]save OK [01:35:19]Clear old archive folders... [01:35:19]ProcessDocumentItem done err = 0, tmpTLVsize=257 [01:35:19]tlvbuf is 01BBF750 [01:35:19]SAM_PROTO_ClearQueue [01:35:19]wFMCommunicate request_size=4 [01:35:19]MH_SAM_APDU [01:35:19]CAPDU: 80 09 00 00 [01:35:19]Write to MH i2c: E2 08 00 C9 08 80 09 00 00 00 00 00 00 43 [01:35:19]Write i2c OK [01:35:19]MH_I2C_Read... [01:35:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:35:19]Read from MH i2c: E2 [01:35:19]MH_I2C_Read... [01:35:19]Read from MH i2c: E2 03 00 [01:35:19]MH_I2C_Read... [01:35:19]Read from MH i2c: E2 03 00 C9 08 00 90 00 45 [01:35:19]RAPDU: 90 00 [01:35:19]wFMCommunicate OK [01:35:19]SAM_PROTO_ClearQueue done [01:35:19]KKMCreateOFDPacket [01:35:19]OFDProtocolAddRootSTLVToBuf [01:35:19]FM_MakeSignedData [01:35:19]FM_MakeSignedData [01:35:19]SAM_PROTO_SignData [01:35:19]wFMCommunicate request_size=4 [01:35:19]MH_SAM_APDU [01:35:19]CAPDU: 80 0D 01 02 [01:35:19]Write to MH i2c: E2 08 00 CA 08 80 0D 01 02 00 00 00 00 4B [01:35:19]Write i2c OK [01:35:19]MH_I2C_Read... [01:35:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:35:19]Read from MH i2c: E2 [01:35:19]MH_I2C_Read... [01:35:19]Read from MH i2c: E2 03 00 [01:35:19]MH_I2C_Read... [01:35:19]Read from MH i2c: E2 03 00 CA 08 00 90 00 46 [01:35:19]RAPDU: 90 00 [01:35:19]wFMCommunicate OK [01:35:19]wFMCommunicate request_size=255 [01:35:19]MH_SAM_APDU [01:35:19]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 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 57 01 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 51 DE 02 [01:35:19]Write to MH i2c: E2 02 01 CB 08 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 57 01 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 51 DE 02 00 00 8B [01:35:19]Write i2c OK [01:35:19]MH_I2C_Read... [01:35:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:35:19]Read from MH i2c: E2 [01:35:19]MH_I2C_Read... [01:35:19]Read from MH i2c: E2 03 00 [01:35:19]MH_I2C_Read... [01:35:19]Read from MH i2c: E2 03 00 CB 08 00 90 00 47 [01:35:19]RAPDU: 90 00 [01:35:19]wFMCommunicate OK [01:35:19]wFMCommunicate request_size=16 [01:35:19]MH_SAM_APDU [01:35:19]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 AD 73 89 F1 44 C0 [01:35:19]Write to MH i2c: E2 13 00 CC 08 80 0D 02 02 0B 00 00 35 04 06 00 AD 73 89 F1 44 C0 00 00 41 [01:35:19]Write i2c OK [01:35:19]MH_I2C_Read... [01:35:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:35:19]Read from MH i2c: E2 [01:35:19]MH_I2C_Read... [01:35:19]Read from MH i2c: E2 03 00 [01:35:19]MH_I2C_Read... [01:35:19]Read from MH i2c: E2 03 00 CC 08 00 90 00 48 [01:35:19]RAPDU: 90 00 [01:35:19]wFMCommunicate OK [01:35:19]wFMCommunicate request_size=4 [01:35:19]MH_SAM_APDU [01:35:19]CAPDU: 80 0D 03 02 [01:35:19]Write to MH i2c: E2 08 00 CD 08 80 0D 03 02 00 00 00 00 50 [01:35:19]Write i2c OK [01:35:19]MH_I2C_Read... [01:35:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:35:19]Read from MH i2c: E2 [01:35:19]MH_I2C_Read... [01:35:19]Read from MH i2c: E2 0B 00 [01:35:19]MH_I2C_Read... [01:35:19]Read from MH i2c: E2 0B 00 CD 08 00 6F BF EC 25 5B 45 03 96 90 00 C9 [01:35:19]RAPDU: 6F BF EC 25 5B 45 03 96 90 00 [01:35:19]wFMCommunicate OK [01:35:19]SAM_PROTO_SignData done [01:35:19]FM_MakeSignedData done [01:35:19]CreateOFDProtocolMessage [01:35:19]wFMCommunicate request_size=4 [01:35:19]MH_SAM_APDU [01:35:19]CAPDU: 80 11 00 00 [01:35:19]Write to MH i2c: E2 08 00 CE 08 80 11 00 00 00 00 00 00 50 [01:35:19]Write i2c OK [01:35:19]MH_I2C_Read... [01:35:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:35:19]Read from MH i2c: E2 [01:35:19]MH_I2C_Read... [01:35:19]Read from MH i2c: E2 17 00 [01:35:19]MH_I2C_Read... [01:35:19]Read from MH i2c: E2 17 00 CE 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 9E [01:35:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [01:35:19]wFMCommunicate OK [01:35:19]CreateOFDProtocolMessage done [01:35:19]OFDSenderStorePacket 187985 [01:35:19]StoreOFDPacket docnum=187985 [01:35:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 8F 1A 0D 01 0B 0C 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 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 57 01 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 51 DE 02 00 35 04 06 00 AD 73 89 F1 44 C0 6F BF EC 25 5B 45 03 96 [01:35:19]CheckFolder [01:35:19]dirname=/storage/ofd_packets [01:35:19]CheckFolder done [01:35:19]ProducePacketName [01:35:19]name=ofd_packets/00187985 [01:35:19]NVStorageSaveData ofd_packets/00187985 [01:35:19]File name is /storage/ofd_packets/00187985 [01:35:19]Write 307 bytes [01:35:19]NVStorageSaveData done [01:35:19]OFDSenderStorePacket done [01:35:19]KKMCreateOFDPacket done [01:35:19]NVStorageSaveData kkm_last_timestamp [01:35:19]File name is /storage/kkm_last_timestamp [01:35:19]Write 4 bytes [01:35:19]NVStorageSaveData done [01:35:20]ExternCall_PrintAddStr [01:35:20]wPrintStart [01:35:20]Write to MH i2c: 01 00 00 CF 08 D7 [01:35:20]Write i2c OK [01:35:20]MH_I2C_Read... [01:35:20]Read from MH i2c: 01 [01:35:20]MH_I2C_Read... [01:35:20]Read from MH i2c: 01 07 00 [01:35:20]MH_I2C_Read... [01:35:20]Read from MH i2c: 01 07 00 CF 08 00 00 00 00 00 FF 0F EC [01:35:20]RasterBufferAndPrint [01:35:20]line Счет N : (1)210036 [01:35:20]line ИНН: 02508201610067 [01:35:20]line Контрольно-Кассовый Чек [01:35:20]line ПРОДАЖА [01:35:20]line ТРК (МРК, ГНК) : 31 [01:35:20]line Товар: 2710194210 [01:35:20]line D-ENERGY ДТ-К-5 [01:35:20]line 12.960 * 77.20 [01:35:20]line = 1000.51 [01:35:20]line НДС 12% НСП 1% [01:35:20]line > о реализуемом товаре [01:35:20]line ОКРУГЛЕНИЕ: -0.51 [01:35:20]line ИТОГО: 1000.00 [01:35:20]line Внесено: 1000.00 [01:35:20]line СДАЧА: 0.00 [01:35:20]line НСП 1% : 8.85 [01:35:20]line НДС 12% : 106.25 [01:35:20]line Наличными: 1000.00 [01:35:20]line Безнал.: 0.00 [01:35:20]line Место: АЗС № 86 "Партнер Нефть" [01:35:20]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [01:35:20]line СНО: Общий режим [01:35:20]line Чек 14 22.10.2024 01:35 [01:35:20]line Смена: 461 ФФД: 1.0 [01:35:20]line ЗНМ: 0300000155 [01:35:20]line РНМ: 0000000000100030 [01:35:20]line Версия ККМ: 001 [01:35:20]line ФМ: 0000000000965340 [01:35:20]line ФД: 187985 [01:35:20]line ФПД: 190711747134656 [01:35:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T013519&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187985&fm=190711747134656&tin=02508201610067®Number=0000000000100030&sum=100000 [01:35:20]written 0, free lines is 4095 [01:35:20]OFD Sender: Processing packet 187985 [packets to send 1062, broken 1061] [01:35:20]ProducePacketName [01:35:20]name=ofd_packets/00187985 [01:35:20]OFD Sender: To server: pG, [01:35:20]CommunicateWithHost lk.salyk.kg:30040 [01:35:20]ConnectInit lk.salyk.kg [01:35:20]Connected sock=10 [01:35:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 8F 1A 0D 01 0B 0C 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 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 57 01 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 51 DE 02 00 35 04 06 00 AD 73 89 F1 44 C0 6F BF EC 25 5B 45 03 96 [01:35:20]Write to MH i2c: 01 00 00 FA 08 02 [01:35:20]Write i2c OK [01:35:20]MH_I2C_Read... [01:35:20]Read from MH i2c: 01 [01:35:20]MH_I2C_Read... [01:35:20]Read from MH i2c: 01 07 00 [01:35:20]MH_I2C_Read... [01:35:20]Read from MH i2c: 01 07 00 FA 08 00 00 00 00 00 59 0C 6E [01:35:20]RasterBufferAndPrint [01:35:20]line [01:35:20]line [01:35:20]line [01:35:20]line [01:35:20]line [01:35:20]written 0, free lines is 3165 [01:35:20]MH_Cut [01:35:20]Write to MH i2c: D1 01 00 01 09 01 DC [01:35:20]Write i2c OK [01:35:20]MH_I2C_Read... [01:35:20]Read from MH i2c: D1 [01:35:20]MH_I2C_Read... [01:35:20]Read from MH i2c: D1 01 00 [01:35:20]MH_I2C_Read... [01:35:20]Read from MH i2c: D1 01 00 01 09 00 DB [01:35:20]Write to MH i2c: 01 00 00 02 09 0B [01:35:20]Write i2c OK [01:35:20]MH_I2C_Read... [01:35:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 7B D5 47 00 76 5C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 51 DE 02 00 F4 03 04 00 45 AB 16 67 B6 04 01 00 00 0A BE A1 12 70 A5 E8 A9 [01:35:20]CommunicateWithHost err = 0 [01:35:20]CheckOFDResponse [01:35:20]1017 (14) - 77093643461234 [01:35:20]1041 (16) - 0000000000965340 [01:35:20]1040 (4) - 187985 [01:35:20]1012 (4) - 21.10.2024 19:28 [01:35:20]1206 (1) - 0 [01:35:20]OFD Sender: Remove packet 187985 [01:35:20]ProducePacketName [01:35:20]name=ofd_packets/00187985 [01:35:20]NVStorageDeleteData [01:35:21]OFD Sender: No OFD packet to send [01:35:21]*** Cut start [01:35:21]*** Partial cut [01:35:21]*** CUTSNS_PIN = 1 [01:35:21]*** CUTSNS_PIN = 0 [01:35:22]*** Brake cut motor [01:35:22]Read from MH i2c: 01 [01:35:22]MH_I2C_Read... [01:35:22]*** Stop cut motor [01:35:22]*** Cut end [01:35:22]Read from MH i2c: 01 07 00 [01:35:22]MH_I2C_Read... [01:35:22]Read from MH i2c: 01 07 00 02 09 00 00 00 00 00 FF 0F 20 [01:35:22]process_action close_receipt done [01:35:22]requested_data is exist [01:35:22]produce_requested_data [01:35:22]requested_item fm.sn is exist - process it [01:35:22]wFMCommunicate request_size=4 [01:35:22]MH_SAM_APDU [01:35:22]CAPDU: 80 11 00 00 [01:35:22]Write to MH i2c: E2 08 00 03 09 80 11 00 00 00 00 00 00 86 [01:35:22]Write i2c OK [01:35:22]MH_I2C_Read... [01:35:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:35:22]Read from MH i2c: E2 [01:35:22]MH_I2C_Read... [01:35:22]Read from MH i2c: E2 17 00 [01:35:22]MH_I2C_Read... [01:35:22]Read from MH i2c: E2 17 00 03 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 D4 [01:35:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [01:35:22]wFMCommunicate OK [01:35:22]requested_item fd.num is exist - process it [01:35:22]SAM_PROTO_GetFieldsCounters [01:35:22]wFMCommunicate request_size=4 [01:35:22]MH_SAM_APDU [01:35:22]CAPDU: 80 13 00 00 [01:35:22]Write to MH i2c: E2 08 00 04 09 80 13 00 00 00 00 00 00 89 [01:35:22]Write i2c OK [01:35:22]MH_I2C_Read... [01:35:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:35:22]Read from MH i2c: E2 [01:35:22]MH_I2C_Read... [01:35:22]Read from MH i2c: E2 62 00 [01:35:22]MH_I2C_Read... [01:35:22]Read from MH i2c: E2 62 00 04 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 51 DE 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 0E 00 00 00 5E 04 04 00 0E 00 00 00 57 04 04 00 0F 00 00 00 19 04 04 00 00 00 00 00 90 00 B9 [01:35:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 51 DE 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 0E 00 00 00 5E 04 04 00 0E 00 00 00 57 04 04 00 0F 00 00 00 19 04 04 00 00 00 00 00 90 00 [01:35:22]wFMCommunicate OK [01:35:22]SAM_PROTO_GetFieldsCounters done [01:35:22]requested_item shift.num is exist - process it [01:35:22]requested_item shift.opened is exist - process it [01:35:22]req_shift_opened [01:35:22]FM_GetShiftState [01:35:22]SAM_PROTO_GetShiftState [01:35:22]wFMCommunicate request_size=4 [01:35:22]MH_SAM_APDU [01:35:22]CAPDU: 80 13 01 00 [01:35:22]Write to MH i2c: E2 08 00 05 09 80 13 01 00 00 00 00 00 8B [01:35:22]Write i2c OK [01:35:22]MH_I2C_Read... [01:35:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:35:22]Read from MH i2c: E2 [01:35:22]MH_I2C_Read... [01:35:22]Read from MH i2c: E2 0E 00 [01:35:22]MH_I2C_Read... [01:35:22]Read from MH i2c: E2 0E 00 05 09 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 80 [01:35:22]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [01:35:22]wFMCommunicate OK [01:35:22]SAM_PROTO_GetShiftState done [01:35:22]FM_GetShiftState done [01:35:22]req_shift_opened done [01:35:22]requested_item shift.open_date is exist - process it [01:35:22]req_shift_open_date [01:35:22]req_shift_open_date done [01:35:22]produce_requested_data done [01:35:22]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187985,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [01:35:22]process_action_free close_receipt [01:35:22]json_value_free [01:35:22]json_value_free done [01:35:22]process_json_proto returns [01:35:22]Send response to host [01:35:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187985,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [01:35:22]free response buf [01:35:22]execute_script done [01:35:22]execute_script returns [01:35:22]free content buf [01:35:22]Sock 8.Close socket [01:35:22]Sock 8.Thread stoped [01:35:26]OFD Sender: No OFD packet to send [01:35:31]OFD Sender: No OFD packet to send [01:35:36]OFD Sender: No OFD packet to send [01:35:41]OFD Sender: No OFD packet to send [01:35:46]OFD Sender: No OFD packet to send [01:35:51]OFD Sender: No OFD packet to send [01:35:56]OFD Sender: No OFD packet to send [01:36:01]OFD Sender: No OFD packet to send [01:36:06]OFD Sender: No OFD packet to send [01:36:11]OFD Sender: No OFD packet to send [01:36:16]OFD Sender: No OFD packet to send [01:36:21]OFD Sender: No OFD packet to send [01:36:26]OFD Sender: No OFD packet to send [01:36:31]OFD Sender: No OFD packet to send [01:36:36]OFD Sender: No OFD packet to send [01:36:41]OFD Sender: No OFD packet to send [01:36:46]OFD Sender: No OFD packet to send [01:36:51]OFD Sender: No OFD packet to send [01:36:56]OFD Sender: No OFD packet to send [01:37:01]OFD Sender: No OFD packet to send [01:37:06]OFD Sender: No OFD packet to send [01:37:11]OFD Sender: No OFD packet to send [01:37:16]OFD Sender: No OFD packet to send [01:37:21]OFD Sender: No OFD packet to send [01:37:26]OFD Sender: No OFD packet to send [01:37:31]OFD Sender: No OFD packet to send [01:37:36]OFD Sender: No OFD packet to send [01:37:41]OFD Sender: No OFD packet to send [01:37:46]OFD Sender: No OFD packet to send [01:37:51]OFD Sender: No OFD packet to send [01:37:56]OFD Sender: No OFD packet to send [01:38:01]OFD Sender: No OFD packet to send [01:38:06]OFD Sender: No OFD packet to send [01:38:11]OFD Sender: No OFD packet to send [01:38:16]OFD Sender: No OFD packet to send [01:38:21]OFD Sender: No OFD packet to send [01:38:26]OFD Sender: No OFD packet to send [01:38:31]OFD Sender: No OFD packet to send [01:38:36]OFD Sender: No OFD packet to send [01:38:42]OFD Sender: No OFD packet to send [01:38:47]OFD Sender: No OFD packet to send [01:38:52]OFD Sender: No OFD packet to send [01:38:57]OFD Sender: No OFD packet to send [01:39:02]OFD Sender: No OFD packet to send [01:39:07]OFD Sender: No OFD packet to send [01:39:12]OFD Sender: No OFD packet to send [01:39:17]OFD Sender: No OFD packet to send [01:39:22]OFD Sender: No OFD packet to send [01:39:27]OFD Sender: No OFD packet to send [01:39:32]OFD Sender: No OFD packet to send [01:39:37]OFD Sender: No OFD packet to send [01:39:42]OFD Sender: No OFD packet to send [01:39:47]OFD Sender: No OFD packet to send [01:39:52]OFD Sender: No OFD packet to send [01:39:57]OFD Sender: No OFD packet to send [01:40:02]OFD Sender: No OFD packet to send [01:40:07]OFD Sender: No OFD packet to send [01:40:12]OFD Sender: No OFD packet to send [01:40:17]OFD Sender: No OFD packet to send [01:40:22]OFD Sender: No OFD packet to send [01:40:27]OFD Sender: No OFD packet to send [01:40:32]OFD Sender: No OFD packet to send [01:40:37]OFD Sender: No OFD packet to send [01:40:42]OFD Sender: No OFD packet to send [01:40:47]OFD Sender: No OFD packet to send [01:40:52]OFD Sender: No OFD packet to send [01:40:57]OFD Sender: No OFD packet to send [01:41:02]OFD Sender: No OFD packet to send [01:41:07]OFD Sender: No OFD packet to send [01:41:12]OFD Sender: No OFD packet to send [01:41:17]OFD Sender: No OFD packet to send [01:41:22]OFD Sender: No OFD packet to send [01:41:27]OFD Sender: No OFD packet to send [01:41:32]OFD Sender: No OFD packet to send [01:41:37]OFD Sender: No OFD packet to send [01:41:42]OFD Sender: No OFD packet to send [01:41:47]OFD Sender: No OFD packet to send [01:41:52]OFD Sender: No OFD packet to send [01:41:57]OFD Sender: No OFD packet to send [01:42:02]OFD Sender: No OFD packet to send [01:42:07]OFD Sender: No OFD packet to send [01:42:12]OFD Sender: No OFD packet to send [01:42:17]OFD Sender: No OFD packet to send [01:42:22]OFD Sender: No OFD packet to send [01:42:28]OFD Sender: No OFD packet to send [01:42:33]OFD Sender: No OFD packet to send [01:42:38]OFD Sender: No OFD packet to send [01:42:43]OFD Sender: No OFD packet to send [01:42:48]OFD Sender: No OFD packet to send [01:42:53]OFD Sender: No OFD packet to send [01:42:58]OFD Sender: No OFD packet to send [01:43:03]OFD Sender: No OFD packet to send [01:43:08]OFD Sender: No OFD packet to send [01:43:13]OFD Sender: No OFD packet to send [01:43:18]OFD Sender: No OFD packet to send [01:43:23]OFD Sender: No OFD packet to send [01:43:28]OFD Sender: No OFD packet to send [01:43:33]OFD Sender: No OFD packet to send [01:43:38]OFD Sender: No OFD packet to send [01:43:43]OFD Sender: No OFD packet to send [01:43:48]OFD Sender: No OFD packet to send [01:43:53]OFD Sender: No OFD packet to send [01:43:58]OFD Sender: No OFD packet to send [01:44:03]OFD Sender: No OFD packet to send [01:44:08]OFD Sender: No OFD packet to send [01:44:13]OFD Sender: No OFD packet to send [01:44:18]OFD Sender: No OFD packet to send [01:44:23]OFD Sender: No OFD packet to send [01:44:28]OFD Sender: No OFD packet to send [01:44:33]OFD Sender: No OFD packet to send [01:44:38]OFD Sender: No OFD packet to send [01:44:43]OFD Sender: No OFD packet to send [01:44:48]OFD Sender: No OFD packet to send [01:44:53]OFD Sender: No OFD packet to send [01:44:58]OFD Sender: No OFD packet to send [01:45:03]OFD Sender: No OFD packet to send [01:45:08]OFD Sender: No OFD packet to send [01:45:13]OFD Sender: No OFD packet to send [01:45:18]OFD Sender: No OFD packet to send [01:45:23]OFD Sender: No OFD packet to send [01:45:28]OFD Sender: No OFD packet to send [01:45:33]OFD Sender: No OFD packet to send [01:45:38]OFD Sender: No OFD packet to send [01:45:43]OFD Sender: No OFD packet to send [01:45:48]OFD Sender: No OFD packet to send [01:45:53]OFD Sender: No OFD packet to send [01:45:58]OFD Sender: No OFD packet to send [01:46:03]OFD Sender: No OFD packet to send [01:46:08]OFD Sender: No OFD packet to send [01:46:14]OFD Sender: No OFD packet to send [01:46:19]OFD Sender: No OFD packet to send [01:46:24]OFD Sender: No OFD packet to send [01:46:29]OFD Sender: No OFD packet to send [01:46:34]OFD Sender: No OFD packet to send [01:46:39]OFD Sender: No OFD packet to send [01:46:44]OFD Sender: No OFD packet to send [01:46:49]OFD Sender: No OFD packet to send [01:46:54]OFD Sender: No OFD packet to send [01:46:59]OFD Sender: No OFD packet to send [01:47:04]OFD Sender: No OFD packet to send [01:47:09]OFD Sender: No OFD packet to send [01:47:14]OFD Sender: No OFD packet to send [01:47:19]OFD Sender: No OFD packet to send [01:47:24]OFD Sender: No OFD packet to send [01:47:28]accept exits with 9 [01:47:28]New connection [01:47:28]New thread 3067198820 created [01:47:28]Thread 3067055460 joined [01:47:28]Waiting for new connection... [01:47:28] Sock 9.Parse request [01:47:28]Sock 9.Check first char [01:47:28]Sock 9.First char is OK [01:47:28]request: POST /json_proto HTTP/1.0 [01:47:28]Method: POST [01:47:28]URL: /json_proto [01:47:28]Method is POST - this is cgi request [01:47:28]url: /json_proto [01:47:28]query_string will be loaded in cgi processing [01:47:28]execute_cgi json_proto POST (null) [01:47:28]execute_cgi path=json_proto method=POST [01:47:28]POST find Content-Length [01:47:28]Host: 172.17.42.131:8080 [01:47:28]Content-Length: 679 [01:47:28]Content-Type: application/json [01:47:28] [01:47:28]POST finish read [01:47:28]Found Content-Length = 679 [01:47:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210037", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:47:28]execute_script... [01:47: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)210037", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:47:28]POST & json_proto [01:47:28]process_json_proto [01:47:28]json parsed OK: [01:47:28]protocol is kg_v1.0 [01:47:28]action value=close_receipt [01:47:28]process_action close_receipt [01:47:28]cmd_close_receipt [01:47:28]MH_GetDate [01:47:28]Write to MH i2c: F0 00 00 06 09 FE [01:47:28]Write i2c OK [01:47:28]MH_I2C_Read... [01:47:28]Read from MH i2c: F0 [01:47:28]MH_I2C_Read... [01:47:28]Read from MH i2c: F0 09 00 [01:47:28]MH_I2C_Read... [01:47:28]Read from MH i2c: F0 09 00 06 09 00 31 04 17 67 A0 18 CA 66 A2 [01:47:28]GetLastDocTimeStamp 1729560919 [01:47:28]current date 1729561649 [01:47:28]FM_GetShiftState [01:47:28]SAM_PROTO_GetShiftState [01:47:28]wFMCommunicate request_size=4 [01:47:28]MH_SAM_APDU [01:47:28]CAPDU: 80 13 01 00 [01:47:28]Write to MH i2c: E2 08 00 07 09 80 13 01 00 00 00 00 00 8D [01:47:28]Write i2c OK [01:47:28]MH_I2C_Read... [01:47:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:47:28]Read from MH i2c: E2 [01:47:28]MH_I2C_Read... [01:47:28]Read from MH i2c: E2 0E 00 [01:47:28]MH_I2C_Read... [01:47:28]Read from MH i2c: E2 0E 00 07 09 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 82 [01:47:28]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [01:47:28]wFMCommunicate OK [01:47:28]SAM_PROTO_GetShiftState done [01:47:28]FM_GetShiftState done [01:47:28]opened in 1729556094 [01:47:28]opened+sec_in_day 1729642494 [01:47:28]quantity*price = 100050 [01:47:28]sum+1 = 100052 [01:47:28]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 15 22.10.2024 01:47 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 187986 ФПД: 278024834811167 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T014730&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187986&fm=278024834811167&tin=02508201610067®Number=0000000000100030&sum=100000 [01:47:29]StoreToDocumentArchive [01:47:29]shift 461 fd 187986 [01:47:29]save to /storage/0461/doc_00187986 [01:47:29]save last doc name /storage/0461/doc_00187986 to /storage/kkm_last_doc_name [01:47:29]save OK [01:47:29]Clear old archive folders... [01:47:29]ProcessDocumentItem done err = 0, tmpTLVsize=248 [01:47:29]tlvbuf is 01B6DF70 [01:47:29]SAM_PROTO_ClearQueue [01:47:29]wFMCommunicate request_size=4 [01:47:29]MH_SAM_APDU [01:47:29]CAPDU: 80 09 00 00 [01:47:29]Write to MH i2c: E2 08 00 14 09 80 09 00 00 00 00 00 00 8F [01:47:29]Write i2c OK [01:47:29]MH_I2C_Read... [01:47:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:47:29]Read from MH i2c: E2 [01:47:29]MH_I2C_Read... [01:47:29]Read from MH i2c: E2 03 00 [01:47:29]MH_I2C_Read... [01:47:29]Read from MH i2c: E2 03 00 14 09 00 90 00 91 [01:47:29]RAPDU: 90 00 [01:47:29]wFMCommunicate OK [01:47:29]SAM_PROTO_ClearQueue done [01:47:29]KKMCreateOFDPacket [01:47:29]OFDProtocolAddRootSTLVToBuf [01:47:29]FM_MakeSignedData [01:47:29]FM_MakeSignedData [01:47:29]SAM_PROTO_SignData [01:47:29]wFMCommunicate request_size=4 [01:47:29]MH_SAM_APDU [01:47:29]CAPDU: 80 0D 01 02 [01:47:29]Write to MH i2c: E2 08 00 15 09 80 0D 01 02 00 00 00 00 97 [01:47:29]Write i2c OK [01:47:29]MH_I2C_Read... [01:47:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:47:30]Read from MH i2c: E2 [01:47:30]MH_I2C_Read... [01:47:30]Read from MH i2c: E2 03 00 [01:47:30]MH_I2C_Read... [01:47:30]Read from MH i2c: E2 03 00 15 09 00 90 00 92 [01:47:30]RAPDU: 90 00 [01:47:30]wFMCommunicate OK [01:47:30]wFMCommunicate request_size=255 [01:47:30]MH_SAM_APDU [01:47:30]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 32 04 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 52 DE 02 00 35 04 06 00 FC DC B3 84 [01:47:30]Write to MH i2c: E2 02 01 16 09 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 0F 00 00 00 F4 03 04 00 32 04 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 52 DE 02 00 35 04 06 00 FC DC B3 84 00 00 D4 [01:47:30]Write i2c OK [01:47:30]MH_I2C_Read... [01:47:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:47:30]Read from MH i2c: E2 [01:47:30]MH_I2C_Read... [01:47:30]Read from MH i2c: E2 03 00 [01:47:30]MH_I2C_Read... [01:47:30]Read from MH i2c: E2 03 00 16 09 00 90 00 93 [01:47:30]RAPDU: 90 00 [01:47:30]wFMCommunicate OK [01:47:30]wFMCommunicate request_size=7 [01:47:30]MH_SAM_APDU [01:47:30]CAPDU: 80 0D 02 02 02 85 1F [01:47:30]Write to MH i2c: E2 0A 00 17 09 80 0D 02 02 02 00 85 1F 00 00 42 [01:47:30]Write i2c OK [01:47:30]MH_I2C_Read... [01:47:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:47:30]Read from MH i2c: E2 [01:47:30]MH_I2C_Read... [01:47:30]Read from MH i2c: E2 03 00 [01:47:30]MH_I2C_Read... [01:47:30]Read from MH i2c: E2 03 00 17 09 00 90 00 94 [01:47:30]RAPDU: 90 00 [01:47:30]wFMCommunicate OK [01:47:30]wFMCommunicate request_size=4 [01:47:30]MH_SAM_APDU [01:47:30]CAPDU: 80 0D 03 02 [01:47:30]Write to MH i2c: E2 08 00 18 09 80 0D 03 02 00 00 00 00 9C [01:47:30]Write i2c OK [01:47:30]MH_I2C_Read... [01:47:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:47:30]Read from MH i2c: E2 [01:47:30]MH_I2C_Read... [01:47:30]Read from MH i2c: E2 0B 00 [01:47:30]MH_I2C_Read... [01:47:30]Read from MH i2c: E2 0B 00 18 09 00 F3 76 4F 8A 32 F8 97 27 90 00 C7 [01:47:30]RAPDU: F3 76 4F 8A 32 F8 97 27 90 00 [01:47:30]wFMCommunicate OK [01:47:30]SAM_PROTO_SignData done [01:47:30]FM_MakeSignedData done [01:47:30]CreateOFDProtocolMessage [01:47:30]wFMCommunicate request_size=4 [01:47:30]MH_SAM_APDU [01:47:30]CAPDU: 80 11 00 00 [01:47:30]Write to MH i2c: E2 08 00 19 09 80 11 00 00 00 00 00 00 9C [01:47:30]Write i2c OK [01:47:30]MH_I2C_Read... [01:47:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:47:30]Read from MH i2c: E2 [01:47:30]MH_I2C_Read... [01:47:30]Read from MH i2c: E2 17 00 [01:47:30]MH_I2C_Read... [01:47:30]Read from MH i2c: E2 17 00 19 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 EA [01:47:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [01:47:30]wFMCommunicate OK [01:47:30]CreateOFDProtocolMessage done [01:47:30]OFDSenderStorePacket 187986 [01:47:30]StoreOFDPacket docnum=187986 [01:47:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 26 E8 04 01 CC C9 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 0F 00 00 00 F4 03 04 00 32 04 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 52 DE 02 00 35 04 06 00 FC DC B3 84 85 1F F3 76 4F 8A 32 F8 97 27 [01:47:30]CheckFolder [01:47:30]dirname=/storage/ofd_packets [01:47:30]CheckFolder done [01:47:30]ProducePacketName [01:47:30]name=ofd_packets/00187986 [01:47:30]NVStorageSaveData ofd_packets/00187986 [01:47:30]File name is /storage/ofd_packets/00187986 [01:47:30]Write 298 bytes [01:47:30]NVStorageSaveData done [01:47:30]OFDSenderStorePacket done [01:47:30]KKMCreateOFDPacket done [01:47:30]NVStorageSaveData kkm_last_timestamp [01:47:30]File name is /storage/kkm_last_timestamp [01:47:30]Write 4 bytes [01:47:30]NVStorageSaveData done [01:47:30]ExternCall_PrintAddStr [01:47:30]wPrintStart [01:47:30]Write to MH i2c: 01 00 00 1A 09 23 [01:47:30]Write i2c OK [01:47:30]MH_I2C_Read... [01:47:30]Read from MH i2c: 01 [01:47:30]MH_I2C_Read... [01:47:30]Read from MH i2c: 01 07 00 [01:47:30]MH_I2C_Read... [01:47:30]Read from MH i2c: 01 07 00 1A 09 00 00 00 00 00 FF 0F 38 [01:47:30]RasterBufferAndPrint [01:47:30]line Счет N : (1)210037 [01:47:30]line ИНН: 02508201610067 [01:47:30]line Контрольно-Кассовый Чек [01:47:30]line ПРОДАЖА [01:47:30]line ТРК (МРК, ГНК) : 51 [01:47:30]line Товар: 2710194210 [01:47:30]line ДТ-К-5 [01:47:30]line 13.130 * 76.20 [01:47:30]line = 1000.51 [01:47:30]line НДС 12% НСП 1% [01:47:30]line > о реализуемом товаре [01:47:30]line ОКРУГЛЕНИЕ: -0.51 [01:47:30]line ИТОГО: 1000.00 [01:47:30]line Внесено: 1000.00 [01:47:30]line СДАЧА: 0.00 [01:47:30]line НСП 1% : 8.85 [01:47:30]line НДС 12% : 106.25 [01:47:30]line Наличными: 1000.00 [01:47:30]line Безнал.: 0.00 [01:47:30]line Место: АЗС № 86 "Партнер Нефть" [01:47:30]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [01:47:30]line СНО: Общий режим [01:47:30]line Чек 15 22.10.2024 01:47 [01:47:30]line Смена: 461 ФФД: 1.0 [01:47:30]line ЗНМ: 0300000155 [01:47:30]line РНМ: 0000000000100030 [01:47:30]line Версия ККМ: 001 [01:47:30]line ФМ: 0000000000965340 [01:47:30]line ФД: 187986 [01:47:30]line ФПД: 278024834811167 [01:47:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T014730&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187986&fm=278024834811167&tin=02508201610067®Number=0000000000100030&sum=100000 [01:47:30]OFD Sender: Processing packet 187986 [packets to send 1062, broken 1061] [01:47:30]ProducePacketName [01:47:30]name=ofd_packets/00187986 [01:47:30]OFD Sender: To server: pG, [01:47:30]CommunicateWithHost lk.salyk.kg:30040 [01:47:30]ConnectInit lk.salyk.kg [01:47:30]written 0, free lines is 4095 [01:47:31]Connected sock=10 [01:47:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 26 E8 04 01 CC C9 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 0F 00 00 00 F4 03 04 00 32 04 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 52 DE 02 00 35 04 06 00 FC DC B3 84 85 1F F3 76 4F 8A 32 F8 97 27 [01:47:31]Write to MH i2c: 01 00 00 45 09 4E [01:47:31]Write i2c OK [01:47:31]MH_I2C_Read... [01:47:31]Read from MH i2c: 01 [01:47:31]MH_I2C_Read... [01:47:31]Read from MH i2c: 01 07 00 [01:47:31]MH_I2C_Read... [01:47:31]Read from MH i2c: 01 07 00 45 09 00 00 00 00 00 53 0C B4 [01:47:31]RasterBufferAndPrint [01:47:31]line [01:47:31]line [01:47:31]line [01:47:31]line [01:47:31]line [01:47:31]written 0, free lines is 3159 [01:47:31]MH_Cut [01:47:31]Write to MH i2c: D1 01 00 4C 09 01 27 [01:47:31]Write i2c OK [01:47:31]MH_I2C_Read... [01:47:31]Read from MH i2c: D1 [01:47:31]MH_I2C_Read... [01:47:31]Read from MH i2c: D1 01 00 [01:47:31]MH_I2C_Read... [01:47:31]Read from MH i2c: D1 01 00 4C 09 00 26 [01:47:31]Write to MH i2c: 01 00 00 4D 09 56 [01:47:31]Write i2c OK [01:47:31]MH_I2C_Read... [01:47:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 99 29 47 00 E2 48 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 52 DE 02 00 F4 03 04 00 20 AE 16 67 B6 04 01 00 00 5C 4B 43 19 6F DF 68 D3 [01:47:31]CommunicateWithHost err = 0 [01:47:31]CheckOFDResponse [01:47:31]1017 (14) - 77093643461234 [01:47:31]1041 (16) - 0000000000965340 [01:47:31]1040 (4) - 187986 [01:47:31]1012 (4) - 21.10.2024 19:40 [01:47:31]1206 (1) - 0 [01:47:31]OFD Sender: Remove packet 187986 [01:47:31]ProducePacketName [01:47:31]name=ofd_packets/00187986 [01:47:31]NVStorageDeleteData [01:47:31]OFD Sender: No OFD packet to send [01:47:32]*** Cut start [01:47:32]*** Partial cut [01:47:32]*** CUTSNS_PIN = 1 [01:47:32]*** CUTSNS_PIN = 0 [01:47:32]*** Brake cut motor [01:47:33]Read from MH i2c: 01 [01:47:33]MH_I2C_Read... [01:47:33]*** Stop cut motor [01:47:33]*** Cut end [01:47:33]Read from MH i2c: 01 07 00 [01:47:33]MH_I2C_Read... [01:47:33]Read from MH i2c: 01 07 00 4D 09 00 00 00 00 00 FF 0F 6B [01:47:33]process_action close_receipt done [01:47:33]requested_data is exist [01:47:33]produce_requested_data [01:47:33]requested_item fm.sn is exist - process it [01:47:33]wFMCommunicate request_size=4 [01:47:33]MH_SAM_APDU [01:47:33]CAPDU: 80 11 00 00 [01:47:33]Write to MH i2c: E2 08 00 4E 09 80 11 00 00 00 00 00 00 D1 [01:47:33]Write i2c OK [01:47:33]MH_I2C_Read... [01:47:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:47:33]Read from MH i2c: E2 [01:47:33]MH_I2C_Read... [01:47:33]Read from MH i2c: E2 17 00 [01:47:33]MH_I2C_Read... [01:47:33]Read from MH i2c: E2 17 00 4E 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 1F [01:47:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [01:47:33]wFMCommunicate OK [01:47:33]requested_item fd.num is exist - process it [01:47:33]SAM_PROTO_GetFieldsCounters [01:47:33]wFMCommunicate request_size=4 [01:47:33]MH_SAM_APDU [01:47:33]CAPDU: 80 13 00 00 [01:47:33]Write to MH i2c: E2 08 00 4F 09 80 13 00 00 00 00 00 00 D4 [01:47:33]Write i2c OK [01:47:33]MH_I2C_Read... [01:47:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:47:33]Read from MH i2c: E2 [01:47:33]MH_I2C_Read... [01:47:33]Read from MH i2c: E2 62 00 [01:47:33]MH_I2C_Read... [01:47:33]Read from MH i2c: E2 62 00 4F 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 52 DE 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 0F 00 00 00 5E 04 04 00 0F 00 00 00 57 04 04 00 10 00 00 00 19 04 04 00 00 00 00 00 90 00 08 [01:47:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 52 DE 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 0F 00 00 00 5E 04 04 00 0F 00 00 00 57 04 04 00 10 00 00 00 19 04 04 00 00 00 00 00 90 00 [01:47:33]wFMCommunicate OK [01:47:33]SAM_PROTO_GetFieldsCounters done [01:47:33]requested_item shift.num is exist - process it [01:47:33]requested_item shift.opened is exist - process it [01:47:33]req_shift_opened [01:47:33]FM_GetShiftState [01:47:33]SAM_PROTO_GetShiftState [01:47:33]wFMCommunicate request_size=4 [01:47:33]MH_SAM_APDU [01:47:33]CAPDU: 80 13 01 00 [01:47:33]Write to MH i2c: E2 08 00 50 09 80 13 01 00 00 00 00 00 D6 [01:47:33]Write i2c OK [01:47:33]MH_I2C_Read... [01:47:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:47:33]Read from MH i2c: E2 [01:47:33]MH_I2C_Read... [01:47:33]Read from MH i2c: E2 0E 00 [01:47:33]MH_I2C_Read... [01:47:33]Read from MH i2c: E2 0E 00 50 09 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 CB [01:47:33]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [01:47:33]wFMCommunicate OK [01:47:33]SAM_PROTO_GetShiftState done [01:47:33]FM_GetShiftState done [01:47:33]req_shift_opened done [01:47:33]requested_item shift.open_date is exist - process it [01:47:33]req_shift_open_date [01:47:33]req_shift_open_date done [01:47:33]produce_requested_data done [01:47:33]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187986,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [01:47:33]process_action_free close_receipt [01:47:33]json_value_free [01:47:33]json_value_free done [01:47:33]process_json_proto returns [01:47:33]Send response to host [01:47:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187986,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [01:47:33]free response buf [01:47:33]execute_script done [01:47:33]execute_script returns [01:47:33]free content buf [01:47:33]Sock 9.Close socket [01:47:33]Sock 9.Thread stoped [01:47:37]OFD Sender: No OFD packet to send [01:47:42]OFD Sender: No OFD packet to send [01:47:47]OFD Sender: No OFD packet to send [01:47:52]OFD Sender: No OFD packet to send [01:47:57]OFD Sender: No OFD packet to send [01:48:02]OFD Sender: No OFD packet to send [01:48:07]OFD Sender: No OFD packet to send [01:48:12]OFD Sender: No OFD packet to send [01:48:17]OFD Sender: No OFD packet to send [01:48:22]OFD Sender: No OFD packet to send [01:48:27]OFD Sender: No OFD packet to send [01:48:32]OFD Sender: No OFD packet to send [01:48:37]OFD Sender: No OFD packet to send [01:48:42]OFD Sender: No OFD packet to send [01:48:47]OFD Sender: No OFD packet to send [01:48:52]OFD Sender: No OFD packet to send [01:48:57]OFD Sender: No OFD packet to send [01:49:02]OFD Sender: No OFD packet to send [01:49:07]OFD Sender: No OFD packet to send [01:49:12]OFD Sender: No OFD packet to send [01:49:17]OFD Sender: No OFD packet to send [01:49:22]OFD Sender: No OFD packet to send [01:49:27]OFD Sender: No OFD packet to send [01:49:32]OFD Sender: No OFD packet to send [01:49:37]OFD Sender: No OFD packet to send [01:49:42]OFD Sender: No OFD packet to send [01:49:47]OFD Sender: No OFD packet to send [01:49:52]OFD Sender: No OFD packet to send [01:49:57]OFD Sender: No OFD packet to send [01:50:02]OFD Sender: No OFD packet to send [01:50:07]OFD Sender: No OFD packet to send [01:50:12]OFD Sender: No OFD packet to send [01:50:17]OFD Sender: No OFD packet to send [01:50:22]OFD Sender: No OFD packet to send [01:50:27]OFD Sender: No OFD packet to send [01:50:32]OFD Sender: No OFD packet to send [01:50:37]OFD Sender: No OFD packet to send [01:50:42]OFD Sender: No OFD packet to send [01:50:47]OFD Sender: No OFD packet to send [01:50:52]OFD Sender: No OFD packet to send [01:50:57]OFD Sender: No OFD packet to send [01:51: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:23]OFD Sender: No OFD packet to send [01:51:28]OFD Sender: No OFD packet to send [01:51:33]OFD Sender: No OFD packet to send [01:51:38]OFD Sender: No OFD packet to send [01:51:43]OFD Sender: No OFD packet to send [01:51:48]OFD Sender: No OFD packet to send [01:51:53]OFD Sender: No OFD packet to send [01:51:58]OFD Sender: No OFD packet to send [01:52:03]OFD Sender: No OFD packet to send [01:52:08]OFD Sender: No OFD packet to send [01:52:13]OFD Sender: No OFD packet to send [01:52:18]OFD Sender: No OFD packet to send [01:52:23]OFD Sender: No OFD packet to send [01:52:28]OFD Sender: No OFD packet to send [01:52:33]OFD Sender: No OFD packet to send [01:52:38]OFD Sender: No OFD packet to send [01:52:43]OFD Sender: No OFD packet to send [01:52:48]OFD Sender: No OFD packet to send [01:52:53]OFD Sender: No OFD packet to send [01:52:58]OFD Sender: No OFD packet to send [01:53:03]OFD Sender: No OFD packet to send [01:53:08]OFD Sender: No OFD packet to send [01:53:13]OFD Sender: No OFD packet to send [01:53:18]OFD Sender: No OFD packet to send [01:53:23]OFD Sender: No OFD packet to send [01:53:28]OFD Sender: No OFD packet to send [01:53:33]OFD Sender: No OFD packet to send [01:53:38]OFD Sender: No OFD packet to send [01:53:43]OFD Sender: No OFD packet to send [01:53:48]OFD Sender: No OFD packet to send [01:53:53]OFD Sender: No OFD packet to send [01:53:58]OFD Sender: No OFD packet to send [01:54:03]OFD Sender: No OFD packet to send [01:54:08]OFD Sender: No OFD packet to send [01:54:13]OFD Sender: No OFD packet to send [01:54:18]OFD Sender: No OFD packet to send [01:54:23]OFD Sender: No OFD packet to send [01:54:28]OFD Sender: No OFD packet to send [01:54:33]OFD Sender: No OFD packet to send [01:54:38]OFD Sender: No OFD packet to send [01:54:43]OFD Sender: No OFD packet to send [01:54:48]OFD Sender: No OFD packet to send [01:54:53]OFD Sender: No OFD packet to send [01:54:58]OFD Sender: No OFD packet to send [01:55:03]OFD Sender: No OFD packet to send [01:55:09]OFD Sender: No OFD packet to send [01:55:14]OFD Sender: No OFD packet to send [01:55:19]OFD Sender: No OFD packet to send [01:55:20]accept exits with 8 [01:55:20]New connection [01:55:20]New thread 3067055460 created [01:55:20]Thread 3067198820 joined [01:55:20]Waiting for new connection... [01:55:20] Sock 8.Parse request [01:55:20]Sock 8.Check first char [01:55:20]Sock 8.First char is OK [01:55:20]request: POST /json_proto HTTP/1.0 [01:55:20]Method: POST [01:55:20]URL: /json_proto [01:55:20]Method is POST - this is cgi request [01:55:20]url: /json_proto [01:55:20]query_string will be loaded in cgi processing [01:55:20]execute_cgi json_proto POST (null) [01:55:20]execute_cgi path=json_proto method=POST [01:55:20]POST find Content-Length [01:55:20]Host: 172.17.42.131:8080 [01:55:20]Content-Length: 682 [01:55:20]Content-Type: application/json [01:55:20] [01:55:20]POST finish read [01:55:20]Found Content-Length = 682 [01:55:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210038", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:55:20]execute_script... [01:55: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)210038", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:55:20]POST & json_proto [01:55:20]process_json_proto [01:55:20]json parsed OK: [01:55:20]protocol is kg_v1.0 [01:55:20]action value=close_receipt [01:55:20]process_action close_receipt [01:55:20]cmd_close_receipt [01:55:20]MH_GetDate [01:55:20]Write to MH i2c: F0 00 00 51 09 49 [01:55:20]Write i2c OK [01:55:20]MH_I2C_Read... [01:55:20]Read from MH i2c: F0 [01:55:20]MH_I2C_Read... [01:55:20]Read from MH i2c: F0 09 00 [01:55:20]MH_I2C_Read... [01:55:20]Read from MH i2c: F0 09 00 51 09 00 09 06 17 67 A0 18 CA 66 C7 [01:55:20]GetLastDocTimeStamp 1729561650 [01:55:20]current date 1729562121 [01:55:20]FM_GetShiftState [01:55:20]SAM_PROTO_GetShiftState [01:55:20]wFMCommunicate request_size=4 [01:55:20]MH_SAM_APDU [01:55:20]CAPDU: 80 13 01 00 [01:55:20]Write to MH i2c: E2 08 00 52 09 80 13 01 00 00 00 00 00 D8 [01:55:20]Write i2c OK [01:55:20]MH_I2C_Read... [01:55:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:55:20]Read from MH i2c: E2 [01:55:20]MH_I2C_Read... [01:55:20]Read from MH i2c: E2 0E 00 [01:55:20]MH_I2C_Read... [01:55:20]Read from MH i2c: E2 0E 00 52 09 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 CD [01:55:20]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [01:55:20]wFMCommunicate OK [01:55:20]SAM_PROTO_GetShiftState done [01:55:20]FM_GetShiftState done [01:55:20]opened in 1729556094 [01:55:20]opened+sec_in_day 1729642494 [01:55:20]quantity*price = 100021 [01:55:20]sum+1 = 100023 [01:55:20]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 16 22.10.2024 01:55 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 187987 ФПД: 124776167806180 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T015522&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187987&fm=124776167806180&tin=02508201610067®Number=0000000000100030&sum=100000 [01:55:21]StoreToDocumentArchive [01:55:21]shift 461 fd 187987 [01:55:21]save to /storage/0461/doc_00187987 [01:55:21]save last doc name /storage/0461/doc_00187987 to /storage/kkm_last_doc_name [01:55:21]save OK [01:55:21]Clear old archive folders... [01:55:21]ProcessDocumentItem done err = 0, tmpTLVsize=251 [01:55:21]tlvbuf is 01B8A170 [01:55:21]SAM_PROTO_ClearQueue [01:55:21]wFMCommunicate request_size=4 [01:55:21]MH_SAM_APDU [01:55:21]CAPDU: 80 09 00 00 [01:55:21]Write to MH i2c: E2 08 00 5F 09 80 09 00 00 00 00 00 00 DA [01:55:21]Write i2c OK [01:55:21]MH_I2C_Read... [01:55:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:55:21]Read from MH i2c: E2 [01:55:21]MH_I2C_Read... [01:55:21]Read from MH i2c: E2 03 00 [01:55:21]MH_I2C_Read... [01:55:21]Read from MH i2c: E2 03 00 5F 09 00 90 00 DC [01:55:21]RAPDU: 90 00 [01:55:21]wFMCommunicate OK [01:55:21]SAM_PROTO_ClearQueue done [01:55:21]KKMCreateOFDPacket [01:55:21]OFDProtocolAddRootSTLVToBuf [01:55:21]FM_MakeSignedData [01:55:21]FM_MakeSignedData [01:55:21]SAM_PROTO_SignData [01:55:21]wFMCommunicate request_size=4 [01:55:21]MH_SAM_APDU [01:55:21]CAPDU: 80 0D 01 02 [01:55:21]Write to MH i2c: E2 08 00 60 09 80 0D 01 02 00 00 00 00 E2 [01:55:21]Write i2c OK [01:55:21]MH_I2C_Read... [01:55:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:55:22]Read from MH i2c: E2 [01:55:22]MH_I2C_Read... [01:55:22]Read from MH i2c: E2 03 00 [01:55:22]MH_I2C_Read... [01:55:22]Read from MH i2c: E2 03 00 60 09 00 90 00 DD [01:55:22]RAPDU: 90 00 [01:55:22]wFMCommunicate OK [01:55:22]wFMCommunicate request_size=255 [01:55:22]MH_SAM_APDU [01:55:22]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 0A 06 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 53 DE 02 00 35 04 06 00 71 [01:55:22]Write to MH i2c: E2 02 01 61 09 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 0A 06 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 53 DE 02 00 35 04 06 00 71 00 00 82 [01:55:22]Write i2c OK [01:55:22]MH_I2C_Read... [01:55:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:55:22]Read from MH i2c: E2 [01:55:22]MH_I2C_Read... [01:55:22]Read from MH i2c: E2 03 00 [01:55:22]MH_I2C_Read... [01:55:22]Read from MH i2c: E2 03 00 61 09 00 90 00 DE [01:55:22]RAPDU: 90 00 [01:55:22]wFMCommunicate OK [01:55:22]wFMCommunicate request_size=10 [01:55:22]MH_SAM_APDU [01:55:22]CAPDU: 80 0D 02 02 05 7B B7 28 94 E4 [01:55:22]Write to MH i2c: E2 0D 00 62 09 80 0D 02 02 05 00 7B B7 28 94 E4 00 00 C1 [01:55:22]Write i2c OK [01:55:22]MH_I2C_Read... [01:55:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:55:22]Read from MH i2c: E2 [01:55:22]MH_I2C_Read... [01:55:22]Read from MH i2c: E2 03 00 [01:55:22]MH_I2C_Read... [01:55:22]Read from MH i2c: E2 03 00 62 09 00 90 00 DF [01:55:22]RAPDU: 90 00 [01:55:22]wFMCommunicate OK [01:55:22]wFMCommunicate request_size=4 [01:55:22]MH_SAM_APDU [01:55:22]CAPDU: 80 0D 03 02 [01:55:22]Write to MH i2c: E2 08 00 63 09 80 0D 03 02 00 00 00 00 E7 [01:55:22]Write i2c OK [01:55:22]MH_I2C_Read... [01:55:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:55:22]Read from MH i2c: E2 [01:55:22]MH_I2C_Read... [01:55:22]Read from MH i2c: E2 0B 00 [01:55:22]MH_I2C_Read... [01:55:22]Read from MH i2c: E2 0B 00 63 09 00 7E D0 C4 2A 0D 61 48 6A 90 00 44 [01:55:22]RAPDU: 7E D0 C4 2A 0D 61 48 6A 90 00 [01:55:22]wFMCommunicate OK [01:55:22]SAM_PROTO_SignData done [01:55:22]FM_MakeSignedData done [01:55:22]CreateOFDProtocolMessage [01:55:22]wFMCommunicate request_size=4 [01:55:22]MH_SAM_APDU [01:55:22]CAPDU: 80 11 00 00 [01:55:22]Write to MH i2c: E2 08 00 64 09 80 11 00 00 00 00 00 00 E7 [01:55:22]Write i2c OK [01:55:22]MH_I2C_Read... [01:55:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:55:22]Read from MH i2c: E2 [01:55:22]MH_I2C_Read... [01:55:22]Read from MH i2c: E2 17 00 [01:55:22]MH_I2C_Read... [01:55:22]Read from MH i2c: E2 17 00 64 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 35 [01:55:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [01:55:22]wFMCommunicate OK [01:55:22]CreateOFDProtocolMessage done [01:55:22]OFDSenderStorePacket 187987 [01:55:22]StoreOFDPacket docnum=187987 [01:55:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 93 D9 07 01 03 7A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 0A 06 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 53 DE 02 00 35 04 06 00 71 7B B7 28 94 E4 7E D0 C4 2A 0D 61 48 6A [01:55:22]CheckFolder [01:55:22]dirname=/storage/ofd_packets [01:55:22]CheckFolder done [01:55:22]ProducePacketName [01:55:22]name=ofd_packets/00187987 [01:55:22]NVStorageSaveData ofd_packets/00187987 [01:55:22]File name is /storage/ofd_packets/00187987 [01:55:22]Write 301 bytes [01:55:22]NVStorageSaveData done [01:55:22]OFDSenderStorePacket done [01:55:22]KKMCreateOFDPacket done [01:55:22]NVStorageSaveData kkm_last_timestamp [01:55:22]File name is /storage/kkm_last_timestamp [01:55:22]Write 4 bytes [01:55:22]NVStorageSaveData done [01:55:22]ExternCall_PrintAddStr [01:55:22]wPrintStart [01:55:22]Write to MH i2c: 01 00 00 65 09 6E [01:55:22]Write i2c OK [01:55:22]MH_I2C_Read... [01:55:22]Read from MH i2c: 01 [01:55:22]MH_I2C_Read... [01:55:22]Read from MH i2c: 01 07 00 [01:55:22]MH_I2C_Read... [01:55:22]Read from MH i2c: 01 07 00 65 09 00 00 00 00 00 FF 0F 83 [01:55:22]RasterBufferAndPrint [01:55:22]line Счет N : (1)210038 [01:55:22]line ИНН: 02508201610067 [01:55:22]line Контрольно-Кассовый Чек [01:55:22]line ПРОДАЖА [01:55:22]line ТРК (МРК, ГНК) : 33 [01:55:22]line Товар: 2710124500 [01:55:22]line Аи-95-К-3 [01:55:22]line 13.480 * 74.20 [01:55:22]line = 1000.22 [01:55:22]line НДС 12% НСП 1% [01:55:22]line > о реализуемом товаре [01:55:22]line ОКРУГЛЕНИЕ: -0.22 [01:55:22]line ИТОГО: 1000.00 [01:55:22]line Внесено: 1000.00 [01:55:22]line СДАЧА: 0.00 [01:55:22]line НСП 1% : 8.85 [01:55:22]line НДС 12% : 106.22 [01:55:22]line Наличными: 1000.00 [01:55:22]line Безнал.: 0.00 [01:55:22]line Место: АЗС № 86 "Партнер Нефть" [01:55:22]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [01:55:22]line СНО: Общий режим [01:55:22]line Чек 16 22.10.2024 01:55 [01:55:22]line Смена: 461 ФФД: 1.0 [01:55:22]line ЗНМ: 0300000155 [01:55:22]line РНМ: 0000000000100030 [01:55:22]line Версия ККМ: 001 [01:55:22]line ФМ: 0000000000965340 [01:55:22]line ФД: 187987 [01:55:22]line ФПД: 124776167806180 [01:55:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T015522&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187987&fm=124776167806180&tin=02508201610067®Number=0000000000100030&sum=100000 [01:55:22]written 0, free lines is 4095 [01:55:22]OFD Sender: Processing packet 187987 [packets to send 1062, broken 1061] [01:55:22]ProducePacketName [01:55:22]name=ofd_packets/00187987 [01:55:22]OFD Sender: To server: pG, [01:55:22]CommunicateWithHost lk.salyk.kg:30040 [01:55:22]ConnectInit lk.salyk.kg [01:55:22]Connected sock=6 [01:55:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 93 D9 07 01 03 7A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 0A 06 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 53 DE 02 00 35 04 06 00 71 7B B7 28 94 E4 7E D0 C4 2A 0D 61 48 6A [01:55:22]Write to MH i2c: 01 00 00 90 09 99 [01:55:22]Write i2c OK [01:55:22]MH_I2C_Read... [01:55:22]Read from MH i2c: 01 [01:55:22]MH_I2C_Read... [01:55:22]Read from MH i2c: 01 07 00 [01:55:22]MH_I2C_Read... [01:55:22]Read from MH i2c: 01 07 00 90 09 00 00 00 00 00 56 0C 02 [01:55:22]RasterBufferAndPrint [01:55:22]line [01:55:22]line [01:55:22]line [01:55:22]line [01:55:22]line [01:55:22]written 0, free lines is 3162 [01:55:22]MH_Cut [01:55:22]Write to MH i2c: D1 01 00 97 09 01 72 [01:55:22]Write i2c OK [01:55:22]MH_I2C_Read... [01:55:22]Read from MH i2c: D1 [01:55:22]MH_I2C_Read... [01:55:22]Read from MH i2c: D1 01 00 [01:55:23]MH_I2C_Read... [01:55:23]Read from MH i2c: D1 01 00 97 09 00 71 [01:55:23]Write to MH i2c: 01 00 00 98 09 A1 [01:55:23]Write i2c OK [01:55:23]MH_I2C_Read... [01:55:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 0F AD 47 00 38 DB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 53 DE 02 00 F4 03 04 00 F8 AF 16 67 B6 04 01 00 00 16 BD 7C CB F9 A3 A3 9E [01:55:23]CommunicateWithHost err = 0 [01:55:23]CheckOFDResponse [01:55:23]1017 (14) - 77093643461234 [01:55:23]1041 (16) - 0000000000965340 [01:55:23]1040 (4) - 187987 [01:55:23]1012 (4) - 21.10.2024 19:48 [01:55:23]1206 (1) - 0 [01:55:23]OFD Sender: Remove packet 187987 [01:55:23]ProducePacketName [01:55:23]name=ofd_packets/00187987 [01:55:23]NVStorageDeleteData [01:55:23]OFD Sender: No OFD packet to send [01:55:24]*** Cut start [01:55:24]*** Partial cut [01:55:24]*** CUTSNS_PIN = 1 [01:55:24]*** CUTSNS_PIN = 0 [01:55:24]*** Brake cut motor [01:55:24]Read from MH i2c: 01 [01:55:24]MH_I2C_Read... [01:55:24]*** Stop cut motor [01:55:24]*** Cut end [01:55:24]Read from MH i2c: 01 07 00 [01:55:24]MH_I2C_Read... [01:55:24]Read from MH i2c: 01 07 00 98 09 00 00 00 00 00 FF 0F B6 [01:55:24]process_action close_receipt done [01:55:24]requested_data is exist [01:55:24]produce_requested_data [01:55:24]requested_item fm.sn is exist - process it [01:55:24]wFMCommunicate request_size=4 [01:55:24]MH_SAM_APDU [01:55:24]CAPDU: 80 11 00 00 [01:55:24]Write to MH i2c: E2 08 00 99 09 80 11 00 00 00 00 00 00 1C [01:55:24]Write i2c OK [01:55:24]MH_I2C_Read... [01:55:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:55:24]Read from MH i2c: E2 [01:55:24]MH_I2C_Read... [01:55:24]Read from MH i2c: E2 17 00 [01:55:24]MH_I2C_Read... [01:55:24]Read from MH i2c: E2 17 00 99 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 6A [01:55:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [01:55:24]wFMCommunicate OK [01:55:24]requested_item fd.num is exist - process it [01:55:24]SAM_PROTO_GetFieldsCounters [01:55:24]wFMCommunicate request_size=4 [01:55:24]MH_SAM_APDU [01:55:24]CAPDU: 80 13 00 00 [01:55:24]Write to MH i2c: E2 08 00 9A 09 80 13 00 00 00 00 00 00 1F [01:55:24]Write i2c OK [01:55:24]MH_I2C_Read... [01:55:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:55:25]Read from MH i2c: E2 [01:55:25]MH_I2C_Read... [01:55:25]Read from MH i2c: E2 62 00 [01:55:25]MH_I2C_Read... [01:55:25]Read from MH i2c: E2 62 00 9A 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 53 DE 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 10 00 00 00 5E 04 04 00 10 00 00 00 57 04 04 00 11 00 00 00 19 04 04 00 00 00 00 00 90 00 57 [01:55:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 53 DE 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 10 00 00 00 5E 04 04 00 10 00 00 00 57 04 04 00 11 00 00 00 19 04 04 00 00 00 00 00 90 00 [01:55:25]wFMCommunicate OK [01:55:25]SAM_PROTO_GetFieldsCounters done [01:55:25]requested_item shift.num is exist - process it [01:55:25]requested_item shift.opened is exist - process it [01:55:25]req_shift_opened [01:55:25]FM_GetShiftState [01:55:25]SAM_PROTO_GetShiftState [01:55:25]wFMCommunicate request_size=4 [01:55:25]MH_SAM_APDU [01:55:25]CAPDU: 80 13 01 00 [01:55:25]Write to MH i2c: E2 08 00 9B 09 80 13 01 00 00 00 00 00 21 [01:55:25]Write i2c OK [01:55:25]MH_I2C_Read... [01:55:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:55:25]Read from MH i2c: E2 [01:55:25]MH_I2C_Read... [01:55:25]Read from MH i2c: E2 0E 00 [01:55:25]MH_I2C_Read... [01:55:25]Read from MH i2c: E2 0E 00 9B 09 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 16 [01:55:25]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [01:55:25]wFMCommunicate OK [01:55:25]SAM_PROTO_GetShiftState done [01:55:25]FM_GetShiftState done [01:55:25]req_shift_opened done [01:55:25]requested_item shift.open_date is exist - process it [01:55:25]req_shift_open_date [01:55:25]req_shift_open_date done [01:55:25]produce_requested_data done [01:55:25]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187987,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [01:55:25]process_action_free close_receipt [01:55:25]json_value_free [01:55:25]json_value_free done [01:55:25]process_json_proto returns [01:55:25]Send response to host [01:55:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187987,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [01:55:25]free response buf [01:55:25]execute_script done [01:55:25]execute_script returns [01:55:25]free content buf [01:55:25]Sock 8.Close socket [01:55:25]Sock 8.Thread stoped [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:59]OFD Sender: No OFD packet to send [01:57:04]OFD Sender: No OFD packet to send [01:57:09]OFD Sender: No OFD packet to send [01:57:14]OFD Sender: No OFD packet to send [01:57:19]OFD Sender: No OFD packet to send [01:57:24]OFD Sender: No OFD packet to send [01:57:29]OFD Sender: No OFD packet to send [01:57:34]OFD Sender: No OFD packet to send [01:57:39]OFD Sender: No OFD packet to send [01:57:44]OFD Sender: No OFD packet to send [01:57:49]OFD Sender: No OFD packet to send [01:57:54]OFD Sender: No OFD packet to send [01:57:59]OFD Sender: No OFD packet to send [01:58:04]OFD Sender: No OFD packet to send [01:58:09]OFD Sender: No OFD packet to send [01:58:14]OFD Sender: No OFD packet to send [01:58:19]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:40]OFD Sender: No OFD packet to send [02:00:45]OFD Sender: No OFD packet to send [02:00:50]OFD Sender: No OFD packet to send [02:00:55]OFD Sender: No OFD packet to send [02:01:00]OFD Sender: No OFD packet to send [02:01:05]OFD Sender: No OFD packet to send [02:01:10]OFD Sender: No OFD packet to send [02:01:15]OFD Sender: No OFD packet to send [02:01:20]OFD Sender: No OFD packet to send [02:01:25]OFD Sender: No OFD packet to send [02:01:30]OFD Sender: No OFD packet to send [02:01:35]OFD Sender: No OFD packet to send [02:01:40]OFD Sender: No OFD packet to send [02:01:45]OFD Sender: No OFD packet to send [02:01:50]OFD Sender: No OFD packet to send [02:01:55]OFD Sender: No OFD packet to send [02:02:00]OFD Sender: No OFD packet to send [02:02:05]OFD Sender: No OFD packet to send [02:02:10]OFD Sender: No OFD packet to send [02:02:15]OFD Sender: No OFD packet to send [02:02:20]OFD Sender: No OFD packet to send [02:02:25]OFD Sender: No OFD packet to send [02:02:30]OFD Sender: No OFD packet to send [02:02:35]OFD Sender: No OFD packet to send [02:02:40]OFD Sender: No OFD packet to send [02:02:45]OFD Sender: No OFD packet to send [02:02:50]OFD Sender: No OFD packet to send [02:02:55]OFD Sender: No OFD packet to send [02:03:00]OFD Sender: No OFD packet to send [02:03:05]OFD Sender: No OFD packet to send [02:03:10]OFD Sender: No OFD packet to send [02:03:15]OFD Sender: No OFD packet to send [02:03:20]OFD Sender: No OFD packet to send [02:03:25]OFD Sender: No OFD packet to send [02:03:30]OFD Sender: No OFD packet to send [02:03:35]OFD Sender: No OFD packet to send [02:03:40]accept exits with 9 [02:03:40]New connection [02:03:40]New thread 3067198820 created [02:03:40]Thread 3067055460 joined [02:03:40]Waiting for new connection... [02:03:40] Sock 9.Parse request [02:03:40]Sock 9.Check first char [02:03:40]Sock 9.First char is OK [02:03:40]request: POST /json_proto HTTP/1.0 [02:03:40]Method: POST [02:03:40]URL: /json_proto [02:03:40]Method is POST - this is cgi request [02:03:40]url: /json_proto [02:03:40]query_string will be loaded in cgi processing [02:03:40]execute_cgi json_proto POST (null) [02:03:40]execute_cgi path=json_proto method=POST [02:03:40]POST find Content-Length [02:03:40]Host: 172.17.42.131:8080 [02:03:40]Content-Length: 688 [02:03:40]Content-Type: application/json [02:03:40] [02:03:40]POST finish read [02:03:40]Found Content-Length = 688 [02:03:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210039", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 25.910, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:03:40]execute_script... [02:03: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)210039", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 25.910, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:03:40]POST & json_proto [02:03:40]process_json_proto [02:03:40]json parsed OK: [02:03:40]protocol is kg_v1.0 [02:03:40]action value=close_receipt [02:03:40]process_action close_receipt [02:03:40]cmd_close_receipt [02:03:40]MH_GetDate [02:03:40]Write to MH i2c: F0 00 00 9C 09 94 [02:03:40]Write i2c OK [02:03:40]MH_I2C_Read... [02:03:40]Read from MH i2c: F0 [02:03:40]MH_I2C_Read... [02:03:40]Read from MH i2c: F0 09 00 [02:03:40]MH_I2C_Read... [02:03:40]Read from MH i2c: F0 09 00 9C 09 00 FD 07 17 67 A0 18 CA 66 07 [02:03:40]GetLastDocTimeStamp 1729562122 [02:03:40]current date 1729562621 [02:03:40]FM_GetShiftState [02:03:40]SAM_PROTO_GetShiftState [02:03:40]wFMCommunicate request_size=4 [02:03:40]MH_SAM_APDU [02:03:40]CAPDU: 80 13 01 00 [02:03:40]Write to MH i2c: E2 08 00 9D 09 80 13 01 00 00 00 00 00 23 [02:03:40]Write i2c OK [02:03:40]MH_I2C_Read... [02:03:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:03:40]Read from MH i2c: E2 [02:03:40]MH_I2C_Read... [02:03:40]Read from MH i2c: E2 0E 00 [02:03:40]MH_I2C_Read... [02:03:40]Read from MH i2c: E2 0E 00 9D 09 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 18 [02:03:40]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [02:03:40]wFMCommunicate OK [02:03:40]SAM_PROTO_GetShiftState done [02:03:40]FM_GetShiftState done [02:03:40]opened in 1729556094 [02:03:40]opened+sec_in_day 1729642494 [02:03:40]quantity*price = 200025 [02:03:40]sum+1 = 200026 [02:03:40]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 17 22.10.2024 02:03 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 187988 ФПД: 208855715335667 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T020341&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187988&fm=208855715335667&tin=02508201610067®Number=0000000000100030&sum=200000 [02:03:41]StoreToDocumentArchive [02:03:41]shift 461 fd 187988 [02:03:41]save to /storage/0461/doc_00187988 [02:03:41]save last doc name /storage/0461/doc_00187988 to /storage/kkm_last_doc_name [02:03:41]save OK [02:03:41]Clear old archive folders... [02:03:41]ProcessDocumentItem done err = 0, tmpTLVsize=257 [02:03:41]tlvbuf is 01BFF440 [02:03:41]SAM_PROTO_ClearQueue [02:03:41]wFMCommunicate request_size=4 [02:03:41]MH_SAM_APDU [02:03:41]CAPDU: 80 09 00 00 [02:03:41]Write to MH i2c: E2 08 00 AA 09 80 09 00 00 00 00 00 00 25 [02:03:41]Write i2c OK [02:03:41]MH_I2C_Read... [02:03:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [02:03:41]Read from MH i2c: E2 [02:03:41]MH_I2C_Read... [02:03:41]Read from MH i2c: E2 03 00 [02:03:41]MH_I2C_Read... [02:03:41]Read from MH i2c: E2 03 00 AA 09 00 90 00 27 [02:03:41]RAPDU: 90 00 [02:03:41]wFMCommunicate OK [02:03:41]SAM_PROTO_ClearQueue done [02:03:41]KKMCreateOFDPacket [02:03:41]OFDProtocolAddRootSTLVToBuf [02:03:41]FM_MakeSignedData [02:03:41]FM_MakeSignedData [02:03:41]SAM_PROTO_SignData [02:03:41]wFMCommunicate request_size=4 [02:03:41]MH_SAM_APDU [02:03:41]CAPDU: 80 0D 01 02 [02:03:41]Write to MH i2c: E2 08 00 AB 09 80 0D 01 02 00 00 00 00 2D [02:03:41]Write i2c OK [02:03:41]MH_I2C_Read... [02:03:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [02:03:41]Read from MH i2c: E2 [02:03:41]MH_I2C_Read... [02:03:41]Read from MH i2c: E2 03 00 [02:03:41]MH_I2C_Read... [02:03:41]Read from MH i2c: E2 03 00 AB 09 00 90 00 28 [02:03:41]RAPDU: 90 00 [02:03:41]wFMCommunicate OK [02:03:41]wFMCommunicate request_size=255 [02:03:41]MH_SAM_APDU [02:03:41]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 36 65 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 FD 07 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 54 DE 02 [02:03:41]Write to MH i2c: E2 02 01 AC 09 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 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 36 65 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 FD 07 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 54 DE 02 00 00 63 [02:03:41]Write i2c OK [02:03:41]MH_I2C_Read... [02:03:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:03:41]Read from MH i2c: E2 [02:03:41]MH_I2C_Read... [02:03:41]Read from MH i2c: E2 03 00 [02:03:41]MH_I2C_Read... [02:03:41]Read from MH i2c: E2 03 00 AC 09 00 90 00 29 [02:03:41]RAPDU: 90 00 [02:03:41]wFMCommunicate OK [02:03:41]wFMCommunicate request_size=16 [02:03:41]MH_SAM_APDU [02:03:41]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 BD F4 02 B8 CD F3 [02:03:41]Write to MH i2c: E2 13 00 AD 09 80 0D 02 02 0B 00 00 35 04 06 00 BD F4 02 B8 CD F3 00 00 B0 [02:03:41]Write i2c OK [02:03:41]MH_I2C_Read... [02:03:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:03:41]Read from MH i2c: E2 [02:03:41]MH_I2C_Read... [02:03:41]Read from MH i2c: E2 03 00 [02:03:41]MH_I2C_Read... [02:03:41]Read from MH i2c: E2 03 00 AD 09 00 90 00 2A [02:03:41]RAPDU: 90 00 [02:03:41]wFMCommunicate OK [02:03:41]wFMCommunicate request_size=4 [02:03:41]MH_SAM_APDU [02:03:41]CAPDU: 80 0D 03 02 [02:03:41]Write to MH i2c: E2 08 00 AE 09 80 0D 03 02 00 00 00 00 32 [02:03:41]Write i2c OK [02:03:41]MH_I2C_Read... [02:03:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [02:03:41]Read from MH i2c: E2 [02:03:41]MH_I2C_Read... [02:03:41]Read from MH i2c: E2 0B 00 [02:03:41]MH_I2C_Read... [02:03:41]Read from MH i2c: E2 0B 00 AE 09 00 59 27 02 CB 37 FF D6 B8 90 00 44 [02:03:41]RAPDU: 59 27 02 CB 37 FF D6 B8 90 00 [02:03:41]wFMCommunicate OK [02:03:41]SAM_PROTO_SignData done [02:03:41]FM_MakeSignedData done [02:03:41]CreateOFDProtocolMessage [02:03:41]wFMCommunicate request_size=4 [02:03:41]MH_SAM_APDU [02:03:41]CAPDU: 80 11 00 00 [02:03:41]Write to MH i2c: E2 08 00 AF 09 80 11 00 00 00 00 00 00 32 [02:03:41]Write i2c OK [02:03:41]MH_I2C_Read... [02:03:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:03:41]Read from MH i2c: E2 [02:03:41]MH_I2C_Read... [02:03:41]Read from MH i2c: E2 17 00 [02:03:41]MH_I2C_Read... [02:03:41]Read from MH i2c: E2 17 00 AF 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 80 [02:03:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [02:03:41]wFMCommunicate OK [02:03:41]CreateOFDProtocolMessage done [02:03:41]OFDSenderStorePacket 187988 [02:03:41]StoreOFDPacket docnum=187988 [02:03:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 BE 9A 0D 01 4E 32 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 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 36 65 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 FD 07 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 54 DE 02 00 35 04 06 00 BD F4 02 B8 CD F3 59 27 02 CB 37 FF D6 B8 [02:03:42]CheckFolder [02:03:42]dirname=/storage/ofd_packets [02:03:42]CheckFolder done [02:03:42]ProducePacketName [02:03:42]name=ofd_packets/00187988 [02:03:42]NVStorageSaveData ofd_packets/00187988 [02:03:42]File name is /storage/ofd_packets/00187988 [02:03:42]Write 307 bytes [02:03:42]NVStorageSaveData done [02:03:42]OFDSenderStorePacket done [02:03:42]KKMCreateOFDPacket done [02:03:42]NVStorageSaveData kkm_last_timestamp [02:03:42]File name is /storage/kkm_last_timestamp [02:03:42]Write 4 bytes [02:03:42]NVStorageSaveData done [02:03:42]ExternCall_PrintAddStr [02:03:42]wPrintStart [02:03:42]Write to MH i2c: 01 00 00 B0 09 B9 [02:03:42]Write i2c OK [02:03:42]MH_I2C_Read... [02:03:42]Read from MH i2c: 01 [02:03:42]MH_I2C_Read... [02:03:42]Read from MH i2c: 01 07 00 [02:03:42]MH_I2C_Read... [02:03:42]Read from MH i2c: 01 07 00 B0 09 00 00 00 00 00 FF 0F CE [02:03:42]RasterBufferAndPrint [02:03:42]line Счет N : (1)210039 [02:03:42]line ИНН: 02508201610067 [02:03:42]line Контрольно-Кассовый Чек [02:03:42]line ПРОДАЖА [02:03:42]line ТРК (МРК, ГНК) : 41 [02:03:42]line Товар: 2710194210 [02:03:42]line D-ENERGY ДТ-К-5 [02:03:42]line 25.910 * 77.20 [02:03:42]line = 2000.25 [02:03:42]line НДС 12% НСП 1% [02:03:42]line > о реализуемом товаре [02:03:42]line ОКРУГЛЕНИЕ: -0.25 [02:03:42]line ИТОГО: 2000.00 [02:03:42]line Внесено: 2000.00 [02:03:42]line СДАЧА: 0.00 [02:03:42]line НСП 1% : 17.70 [02:03:42]line НДС 12% : 212.42 [02:03:42]line Наличными: 2000.00 [02:03:42]line Безнал.: 0.00 [02:03:42]line Место: АЗС № 86 "Партнер Нефть" [02:03:42]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [02:03:42]line СНО: Общий режим [02:03:42]line Чек 17 22.10.2024 02:03 [02:03:42]line Смена: 461 ФФД: 1.0 [02:03:42]line ЗНМ: 0300000155 [02:03:42]line РНМ: 0000000000100030 [02:03:42]line Версия ККМ: 001 [02:03:42]line ФМ: 0000000000965340 [02:03:42]line ФД: 187988 [02:03:42]line ФПД: 208855715335667 [02:03:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T020341&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187988&fm=208855715335667&tin=02508201610067®Number=0000000000100030&sum=200000 [02:03:42]written 0, free lines is 4095 [02:03:42]OFD Sender: Processing packet 187988 [packets to send 1062, broken 1061] [02:03:42]ProducePacketName [02:03:42]name=ofd_packets/00187988 [02:03:42]OFD Sender: To server: pG, [02:03:42]CommunicateWithHost lk.salyk.kg:30040 [02:03:42]ConnectInit lk.salyk.kg [02:03:42]Connected sock=11 [02:03:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 BE 9A 0D 01 4E 32 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 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 36 65 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 FD 07 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 54 DE 02 00 35 04 06 00 BD F4 02 B8 CD F3 59 27 02 CB 37 FF D6 B8 [02:03:42]Write to MH i2c: 01 00 00 DB 09 E4 [02:03:42]Write i2c OK [02:03:42]MH_I2C_Read... [02:03:42]Read from MH i2c: 01 [02:03:42]MH_I2C_Read... [02:03:42]Read from MH i2c: 01 07 00 [02:03:42]MH_I2C_Read... [02:03:42]Read from MH i2c: 01 07 00 DB 09 00 00 00 00 00 5E 0C 55 [02:03:42]RasterBufferAndPrint [02:03:42]line [02:03:42]line [02:03:42]line [02:03:42]line [02:03:42]line [02:03:42]written 0, free lines is 3169 [02:03:42]MH_Cut [02:03:42]Write to MH i2c: D1 01 00 E2 09 01 BD [02:03:42]Write i2c OK [02:03:42]MH_I2C_Read... [02:03:42]Read from MH i2c: D1 [02:03:42]MH_I2C_Read... [02:03:42]Read from MH i2c: D1 01 00 [02:03:42]MH_I2C_Read... [02:03:42]Read from MH i2c: D1 01 00 E2 09 00 BC [02:03:42]Write to MH i2c: 01 00 00 E3 09 EC [02:03:42]Write i2c OK [02:03:42]MH_I2C_Read... [02:03:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 D1 E0 47 00 19 8C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 54 DE 02 00 F4 03 04 00 EB B1 16 67 B6 04 01 00 00 B5 D1 78 67 88 77 A1 1D [02:03:42]CommunicateWithHost err = 0 [02:03:42]CheckOFDResponse [02:03:42]1017 (14) - 77093643461234 [02:03:42]1041 (16) - 0000000000965340 [02:03:42]1040 (4) - 187988 [02:03:42]1012 (4) - 21.10.2024 19:56 [02:03:42]1206 (1) - 0 [02:03:42]OFD Sender: Remove packet 187988 [02:03:42]ProducePacketName [02:03:42]name=ofd_packets/00187988 [02:03:42]NVStorageDeleteData [02:03:43]OFD Sender: No OFD packet to send [02:03:43]*** Cut start [02:03:43]*** Partial cut [02:03:43]*** CUTSNS_PIN = 1 [02:03:43]*** CUTSNS_PIN = 0 [02:03:44]*** Brake cut motor [02:03:44]Read from MH i2c: 01 [02:03:44]MH_I2C_Read... [02:03:44]*** Stop cut motor [02:03:44]*** Cut end [02:03:44]Read from MH i2c: 01 07 00 [02:03:44]MH_I2C_Read... [02:03:44]Read from MH i2c: 01 07 00 E3 09 00 00 00 00 00 FF 0F 01 [02:03:44]process_action close_receipt done [02:03:44]requested_data is exist [02:03:44]produce_requested_data [02:03:44]requested_item fm.sn is exist - process it [02:03:44]wFMCommunicate request_size=4 [02:03:44]MH_SAM_APDU [02:03:44]CAPDU: 80 11 00 00 [02:03:44]Write to MH i2c: E2 08 00 E4 09 80 11 00 00 00 00 00 00 67 [02:03:44]Write i2c OK [02:03:44]MH_I2C_Read... [02:03:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:03:44]Read from MH i2c: E2 [02:03:44]MH_I2C_Read... [02:03:44]Read from MH i2c: E2 17 00 [02:03:44]MH_I2C_Read... [02:03:44]Read from MH i2c: E2 17 00 E4 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 B5 [02:03:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [02:03:44]wFMCommunicate OK [02:03:44]requested_item fd.num is exist - process it [02:03:44]SAM_PROTO_GetFieldsCounters [02:03:44]wFMCommunicate request_size=4 [02:03:44]MH_SAM_APDU [02:03:44]CAPDU: 80 13 00 00 [02:03:44]Write to MH i2c: E2 08 00 E5 09 80 13 00 00 00 00 00 00 6A [02:03:44]Write i2c OK [02:03:44]MH_I2C_Read... [02:03:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [02:03:44]Read from MH i2c: E2 [02:03:44]MH_I2C_Read... [02:03:44]Read from MH i2c: E2 62 00 [02:03:44]MH_I2C_Read... [02:03:44]Read from MH i2c: E2 62 00 E5 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 54 DE 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 11 00 00 00 5E 04 04 00 11 00 00 00 57 04 04 00 12 00 00 00 19 04 04 00 00 00 00 00 90 00 A6 [02:03:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 54 DE 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 11 00 00 00 5E 04 04 00 11 00 00 00 57 04 04 00 12 00 00 00 19 04 04 00 00 00 00 00 90 00 [02:03:44]wFMCommunicate OK [02:03:44]SAM_PROTO_GetFieldsCounters done [02:03:44]requested_item shift.num is exist - process it [02:03:44]requested_item shift.opened is exist - process it [02:03:44]req_shift_opened [02:03:44]FM_GetShiftState [02:03:44]SAM_PROTO_GetShiftState [02:03:44]wFMCommunicate request_size=4 [02:03:44]MH_SAM_APDU [02:03:44]CAPDU: 80 13 01 00 [02:03:44]Write to MH i2c: E2 08 00 E6 09 80 13 01 00 00 00 00 00 6C [02:03:44]Write i2c OK [02:03:44]MH_I2C_Read... [02:03:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:03:44]Read from MH i2c: E2 [02:03:44]MH_I2C_Read... [02:03:44]Read from MH i2c: E2 0E 00 [02:03:44]MH_I2C_Read... [02:03:44]Read from MH i2c: E2 0E 00 E6 09 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 61 [02:03:44]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [02:03:44]wFMCommunicate OK [02:03:44]SAM_PROTO_GetShiftState done [02:03:44]FM_GetShiftState done [02:03:44]req_shift_opened done [02:03:44]requested_item shift.open_date is exist - process it [02:03:44]req_shift_open_date [02:03:44]req_shift_open_date done [02:03:44]produce_requested_data done [02:03:44]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187988,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [02:03:44]process_action_free close_receipt [02:03:44]json_value_free [02:03:44]json_value_free done [02:03:44]process_json_proto returns [02:03:44]Send response to host [02:03:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187988,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [02:03:44]free response buf [02:03:44]execute_script done [02:03:44]execute_script returns [02:03:44]free content buf [02:03:44]Sock 9.Close socket [02:03:44]Sock 9.Thread stoped [02:03:48]OFD Sender: No OFD packet to send [02:03:53]OFD Sender: No OFD packet to send [02:03:58]OFD Sender: No OFD packet to send [02:04:03]OFD Sender: No OFD packet to send [02:04:08]OFD Sender: No OFD packet to send [02:04:13]OFD Sender: No OFD packet to send [02:04:18]OFD Sender: No OFD packet to send [02:04:23]OFD Sender: No OFD packet to send [02:04:28]OFD Sender: No OFD packet to send [02:04:33]OFD Sender: No OFD packet to send [02:04:38]OFD Sender: No OFD packet to send [02:04:41]accept exits with 8 [02:04:41]New connection [02:04:41]New thread 3067055460 created [02:04:41]Thread 3067198820 joined [02:04:41]Waiting for new connection... [02:04:41] Sock 8.Parse request [02:04:41]Sock 8.Check first char [02:04:41]Sock 8.First char is OK [02:04:41]request: POST /json_proto HTTP/1.0 [02:04:41]Method: POST [02:04:41]URL: /json_proto [02:04:41]Method is POST - this is cgi request [02:04:41]url: /json_proto [02:04:41]query_string will be loaded in cgi processing [02:04:41]execute_cgi json_proto POST (null) [02:04:41]execute_cgi path=json_proto method=POST [02:04:41]POST find Content-Length [02:04:41]Host: 172.17.42.131:8080 [02:04:41]Content-Length: 800 [02:04:41]Content-Type: application/json [02:04:41] [02:04:41]POST finish read [02:04:41]Found Content-Length = 800 [02:04:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210041", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 52.500, "sum" : 4000.50, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: 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" ] } } [02:04:41]execute_script... [02:04: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)210041", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 52.500, "sum" : 4000.50, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: 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" ] } } [02:04:41]POST & json_proto [02:04:41]process_json_proto [02:04:41]json parsed OK: [02:04:41]protocol is kg_v1.0 [02:04:41]action value=close_receipt [02:04:41]process_action close_receipt [02:04:41]cmd_close_receipt [02:04:41]MH_GetDate [02:04:41]Write to MH i2c: F0 00 00 E7 09 DF [02:04:41]Write i2c OK [02:04:41]MH_I2C_Read... [02:04:41]Read from MH i2c: F0 [02:04:41]MH_I2C_Read... [02:04:41]Read from MH i2c: F0 09 00 [02:04:41]MH_I2C_Read... [02:04:41]Read from MH i2c: F0 09 00 E7 09 00 3A 08 17 67 A0 18 CA 66 90 [02:04:41]GetLastDocTimeStamp 1729562621 [02:04:41]current date 1729562682 [02:04:41]FM_GetShiftState [02:04:41]SAM_PROTO_GetShiftState [02:04:41]wFMCommunicate request_size=4 [02:04:41]MH_SAM_APDU [02:04:41]CAPDU: 80 13 01 00 [02:04:41]Write to MH i2c: E2 08 00 E8 09 80 13 01 00 00 00 00 00 6E [02:04:41]Write i2c OK [02:04:41]MH_I2C_Read... [02:04:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:04:41]Read from MH i2c: E2 [02:04:41]MH_I2C_Read... [02:04:41]Read from MH i2c: E2 0E 00 [02:04:41]MH_I2C_Read... [02:04:41]Read from MH i2c: E2 0E 00 E8 09 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 63 [02:04:41]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [02:04:41]wFMCommunicate OK [02:04:41]SAM_PROTO_GetShiftState done [02:04:41]FM_GetShiftState done [02:04:41]opened in 1729556094 [02:04:41]opened+sec_in_day 1729642494 [02:04:41]quantity*price = 400050 [02:04:41]sum+1 = 400051 [02:04:41]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 4000.50 НСП 1% : 35.40 НДС 12% : 424.83 Наличными: 0.00 Безнал.: 4000.50 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 18 22.10.2024 02:04 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000965340 ФД: 187989 ФПД: 179834984756656 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T020442&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187989&fm=179834984756656&tin=02508201610067®Number=0000000000100030&sum=400050 [02:04:42]StoreToDocumentArchive [02:04:42]shift 461 fd 187989 [02:04:42]save to /storage/0461/doc_00187989 [02:04:42]save last doc name /storage/0461/doc_00187989 to /storage/kkm_last_doc_name [02:04:42]save OK [02:04:42]Clear old archive folders... [02:04:42]ProcessDocumentItem done err = 0, tmpTLVsize=248 [02:04:42]tlvbuf is 01BF9570 [02:04:42]SAM_PROTO_ClearQueue [02:04:42]wFMCommunicate request_size=4 [02:04:42]MH_SAM_APDU [02:04:42]CAPDU: 80 09 00 00 [02:04:42]Write to MH i2c: E2 08 00 F5 09 80 09 00 00 00 00 00 00 70 [02:04:42]Write i2c OK [02:04:42]MH_I2C_Read... [02:04:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [02:04:42]Read from MH i2c: E2 [02:04:42]MH_I2C_Read... [02:04:42]Read from MH i2c: E2 03 00 [02:04:42]MH_I2C_Read... [02:04:42]Read from MH i2c: E2 03 00 F5 09 00 90 00 72 [02:04:42]RAPDU: 90 00 [02:04:42]wFMCommunicate OK [02:04:42]SAM_PROTO_ClearQueue done [02:04:42]KKMCreateOFDPacket [02:04:42]OFDProtocolAddRootSTLVToBuf [02:04:42]FM_MakeSignedData [02:04:42]FM_MakeSignedData [02:04:42]SAM_PROTO_SignData [02:04:42]wFMCommunicate request_size=4 [02:04:42]MH_SAM_APDU [02:04:42]CAPDU: 80 0D 01 02 [02:04:42]Write to MH i2c: E2 08 00 F6 09 80 0D 01 02 00 00 00 00 78 [02:04:42]Write i2c OK [02:04:42]MH_I2C_Read... [02:04:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [02:04:42]Read from MH i2c: E2 [02:04:42]MH_I2C_Read... [02:04:42]Read from MH i2c: E2 03 00 [02:04:42]MH_I2C_Read... [02:04:42]Read from MH i2c: E2 03 00 F6 09 00 90 00 73 [02:04:42]RAPDU: 90 00 [02:04:42]wFMCommunicate OK [02:04:42]wFMCommunicate request_size=255 [02:04:42]MH_SAM_APDU [02:04:42]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 12 00 00 00 F4 03 04 00 3A 08 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 55 DE 02 00 35 04 06 00 A3 8F 18 62 [02:04:42]Write to MH i2c: E2 02 01 F7 09 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 12 00 00 00 F4 03 04 00 3A 08 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 55 DE 02 00 35 04 06 00 A3 8F 18 62 00 00 ED [02:04:42]Write i2c OK [02:04:42]MH_I2C_Read... [02:04:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:04:43]Read from MH i2c: E2 [02:04:43]MH_I2C_Read... [02:04:43]Read from MH i2c: E2 03 00 [02:04:43]MH_I2C_Read... [02:04:43]Read from MH i2c: E2 03 00 F7 09 00 90 00 74 [02:04:43]RAPDU: 90 00 [02:04:43]wFMCommunicate OK [02:04:43]wFMCommunicate request_size=7 [02:04:43]MH_SAM_APDU [02:04:43]CAPDU: 80 0D 02 02 02 75 B0 [02:04:43]Write to MH i2c: E2 0A 00 F8 09 80 0D 02 02 02 00 75 B0 00 00 A4 [02:04:43]Write i2c OK [02:04:43]MH_I2C_Read... [02:04:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:04:43]Read from MH i2c: E2 [02:04:43]MH_I2C_Read... [02:04:43]Read from MH i2c: E2 03 00 [02:04:43]MH_I2C_Read... [02:04:43]Read from MH i2c: E2 03 00 F8 09 00 90 00 75 [02:04:43]RAPDU: 90 00 [02:04:43]wFMCommunicate OK [02:04:43]wFMCommunicate request_size=4 [02:04:43]MH_SAM_APDU [02:04:43]CAPDU: 80 0D 03 02 [02:04:43]Write to MH i2c: E2 08 00 F9 09 80 0D 03 02 00 00 00 00 7D [02:04:43]Write i2c OK [02:04:43]MH_I2C_Read... [02:04:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [02:04:43]Read from MH i2c: E2 [02:04:43]MH_I2C_Read... [02:04:43]Read from MH i2c: E2 0B 00 [02:04:43]MH_I2C_Read... [02:04:43]Read from MH i2c: E2 0B 00 F9 09 00 4F 3B E2 65 92 A6 3C 72 90 00 35 [02:04:43]RAPDU: 4F 3B E2 65 92 A6 3C 72 90 00 [02:04:43]wFMCommunicate OK [02:04:43]SAM_PROTO_SignData done [02:04:43]FM_MakeSignedData done [02:04:43]CreateOFDProtocolMessage [02:04:43]wFMCommunicate request_size=4 [02:04:43]MH_SAM_APDU [02:04:43]CAPDU: 80 11 00 00 [02:04:43]Write to MH i2c: E2 08 00 FA 09 80 11 00 00 00 00 00 00 7D [02:04:43]Write i2c OK [02:04:43]MH_I2C_Read... [02:04:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:04:43]Read from MH i2c: E2 [02:04:43]MH_I2C_Read... [02:04:43]Read from MH i2c: E2 17 00 [02:04:43]MH_I2C_Read... [02:04:43]Read from MH i2c: E2 17 00 FA 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 CB [02:04:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [02:04:43]wFMCommunicate OK [02:04:43]CreateOFDProtocolMessage done [02:04:43]OFDSenderStorePacket 187989 [02:04:43]StoreOFDPacket docnum=187989 [02:04:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 CA A1 04 01 75 F4 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 12 00 00 00 F4 03 04 00 3A 08 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 55 DE 02 00 35 04 06 00 A3 8F 18 62 75 B0 4F 3B E2 65 92 A6 3C 72 [02:04:43]CheckFolder [02:04:43]dirname=/storage/ofd_packets [02:04:43]CheckFolder done [02:04:43]ProducePacketName [02:04:43]name=ofd_packets/00187989 [02:04:43]NVStorageSaveData ofd_packets/00187989 [02:04:43]File name is /storage/ofd_packets/00187989 [02:04:43]Write 298 bytes [02:04:43]NVStorageSaveData done [02:04:43]OFDSenderStorePacket done [02:04:43]KKMCreateOFDPacket done [02:04:43]NVStorageSaveData kkm_last_timestamp [02:04:43]File name is /storage/kkm_last_timestamp [02:04:43]Write 4 bytes [02:04:43]NVStorageSaveData done [02:04:43]ExternCall_PrintAddStr [02:04:43]wPrintStart [02:04:43]Write to MH i2c: 01 00 00 FB 09 04 [02:04:43]Write i2c OK [02:04:43]MH_I2C_Read... [02:04:43]Read from MH i2c: 01 [02:04:43]MH_I2C_Read... [02:04:43]Read from MH i2c: 01 07 00 [02:04:43]MH_I2C_Read... [02:04:43]Read from MH i2c: 01 07 00 FB 09 00 00 00 00 00 FF 0F 19 [02:04:43]RasterBufferAndPrint [02:04:43]line Счет N : (1)210041 [02:04:43]line ИНН: 02508201610067 [02:04:43]line Контрольно-Кассовый Чек [02:04:43]line ПРОДАЖА [02:04:43]line ТРК (МРК, ГНК) : 51 [02:04:43]line Товар: 2710194210 [02:04:43]line ДТ-К-5 [02:04:43]line 52.500 * 76.20 [02:04:43]line = 4000.50 [02:04:43]line НДС 12% НСП 1% [02:04:43]line > о реализуемом товаре [02:04:43]line ИТОГО: 4000.50 [02:04:43]line НСП 1% : 35.40 [02:04:43]line НДС 12% : 424.83 [02:04:43]line Наличными: 0.00 [02:04:43]line Безнал.: 4000.50 [02:04:43]line Место: АЗС № 86 "Партнер Нефть" [02:04:43]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [02:04:43]line СНО: Общий режим [02:04:43]line Чек 18 22.10.2024 02:04 [02:04:43]line Смена: 461 ФФД: 1.0 [02:04:43]line ЗНМ: 0300000155 [02:04:43]line РНМ: 0000000000100030 [02:04:43]line Версия ККМ: 001 [02:04:43]line Платежная система: O! деньги [02:04:43]line ФМ: 0000000000965340 [02:04:43]line ФД: 187989 [02:04:43]line ФПД: 179834984756656 [02:04:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T020442&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187989&fm=179834984756656&tin=02508201610067®Number=0000000000100030&sum=400050 [02:04:43]written 0, free lines is 4095 [02:04:43]OFD Sender: Processing packet 187989 [packets to send 1062, broken 1061] [02:04:43]ProducePacketName [02:04:43]name=ofd_packets/00187989 [02:04:43]OFD Sender: To server: pG, [02:04:43]CommunicateWithHost lk.salyk.kg:30040 [02:04:43]ConnectInit lk.salyk.kg [02:04:43]Connected sock=10 [02:04:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 CA A1 04 01 75 F4 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 12 00 00 00 F4 03 04 00 3A 08 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 55 DE 02 00 35 04 06 00 A3 8F 18 62 75 B0 4F 3B E2 65 92 A6 3C 72 [02:04:43]Write to MH i2c: 01 00 00 25 0A 2F [02:04:43]Write i2c OK [02:04:43]MH_I2C_Read... [02:04:43]Read from MH i2c: 01 [02:04:43]MH_I2C_Read... [02:04:43]Read from MH i2c: 01 07 00 [02:04:43]MH_I2C_Read... [02:04:43]Read from MH i2c: 01 07 00 25 0A 00 00 00 00 00 78 0C BA [02:04:43]RasterBufferAndPrint [02:04:43]line [02:04:43]line [02:04:43]line [02:04:43]line [02:04:43]line [02:04:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 56 34 47 00 86 93 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 55 DE 02 00 F4 03 04 00 29 B2 16 67 B6 04 01 00 00 A6 FB 58 9A 7E AC 5B 51 [02:04:43]CommunicateWithHost err = 0 [02:04:43]CheckOFDResponse [02:04:43]1017 (14) - 77093643461234 [02:04:43]1041 (16) - 0000000000965340 [02:04:43]1040 (4) - 187989 [02:04:43]1012 (4) - 21.10.2024 19:57 [02:04:43]1206 (1) - 0 [02:04:43]OFD Sender: Remove packet 187989 [02:04:43]ProducePacketName [02:04:43]name=ofd_packets/00187989 [02:04:43]NVStorageDeleteData [02:04:43]written 0, free lines is 3203 [02:04:43]MH_Cut [02:04:43]Write to MH i2c: D1 01 00 2C 0A 01 08 [02:04:43]Write i2c OK [02:04:43]MH_I2C_Read... [02:04:43]Read from MH i2c: D1 [02:04:43]MH_I2C_Read... [02:04:43]Read from MH i2c: D1 01 00 [02:04:43]MH_I2C_Read... [02:04:43]Read from MH i2c: D1 01 00 2C 0A 00 07 [02:04:43]Write to MH i2c: 01 00 00 2D 0A 37 [02:04:43]Write i2c OK [02:04:43]MH_I2C_Read... [02:04:44]OFD Sender: No OFD packet to send [02:04:45]*** Cut start [02:04:45]*** Partial cut [02:04:45]*** CUTSNS_PIN = 1 [02:04:45]*** CUTSNS_PIN = 0 [02:04:45]*** Brake cut motor [02:04:45]Read from MH i2c: 01 [02:04:45]MH_I2C_Read... [02:04:45]*** Stop cut motor [02:04:45]*** Cut end [02:04:45]Read from MH i2c: 01 07 00 [02:04:45]MH_I2C_Read... [02:04:45]Read from MH i2c: 01 07 00 2D 0A 00 00 00 00 00 FF 0F 4C [02:04:45]process_action close_receipt done [02:04:45]requested_data is exist [02:04:45]produce_requested_data [02:04:45]requested_item fm.sn is exist - process it [02:04:45]wFMCommunicate request_size=4 [02:04:45]MH_SAM_APDU [02:04:45]CAPDU: 80 11 00 00 [02:04:45]Write to MH i2c: E2 08 00 2E 0A 80 11 00 00 00 00 00 00 B2 [02:04:45]Write i2c OK [02:04:45]MH_I2C_Read... [02:04:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:04:45]Read from MH i2c: E2 [02:04:45]MH_I2C_Read... [02:04:45]Read from MH i2c: E2 17 00 [02:04:45]MH_I2C_Read... [02:04:45]Read from MH i2c: E2 17 00 2E 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 00 [02:04:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [02:04:45]wFMCommunicate OK [02:04:45]requested_item fd.num is exist - process it [02:04:45]SAM_PROTO_GetFieldsCounters [02:04:45]wFMCommunicate request_size=4 [02:04:45]MH_SAM_APDU [02:04:45]CAPDU: 80 13 00 00 [02:04:45]Write to MH i2c: E2 08 00 2F 0A 80 13 00 00 00 00 00 00 B5 [02:04:45]Write i2c OK [02:04:45]MH_I2C_Read... [02:04:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [02:04:45]Read from MH i2c: E2 [02:04:45]MH_I2C_Read... [02:04:45]Read from MH i2c: E2 62 00 [02:04:45]MH_I2C_Read... [02:04:45]Read from MH i2c: E2 62 00 2F 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 55 DE 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 12 00 00 00 5E 04 04 00 12 00 00 00 57 04 04 00 13 00 00 00 19 04 04 00 00 00 00 00 90 00 F5 [02:04:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 55 DE 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 12 00 00 00 5E 04 04 00 12 00 00 00 57 04 04 00 13 00 00 00 19 04 04 00 00 00 00 00 90 00 [02:04:45]wFMCommunicate OK [02:04:45]SAM_PROTO_GetFieldsCounters done [02:04:45]requested_item shift.num is exist - process it [02:04:45]requested_item shift.opened is exist - process it [02:04:45]req_shift_opened [02:04:45]FM_GetShiftState [02:04:45]SAM_PROTO_GetShiftState [02:04:45]wFMCommunicate request_size=4 [02:04:45]MH_SAM_APDU [02:04:45]CAPDU: 80 13 01 00 [02:04:45]Write to MH i2c: E2 08 00 30 0A 80 13 01 00 00 00 00 00 B7 [02:04:45]Write i2c OK [02:04:45]MH_I2C_Read... [02:04:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:04:45]Read from MH i2c: E2 [02:04:45]MH_I2C_Read... [02:04:45]Read from MH i2c: E2 0E 00 [02:04:45]MH_I2C_Read... [02:04:45]Read from MH i2c: E2 0E 00 30 0A 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 AC [02:04:45]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [02:04:45]wFMCommunicate OK [02:04:45]SAM_PROTO_GetShiftState done [02:04:45]FM_GetShiftState done [02:04:45]req_shift_opened done [02:04:45]requested_item shift.open_date is exist - process it [02:04:45]req_shift_open_date [02:04:45]req_shift_open_date done [02:04:45]produce_requested_data done [02:04:45]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187989,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [02:04:45]process_action_free close_receipt [02:04:45]json_value_free [02:04:45]json_value_free done [02:04:45]process_json_proto returns [02:04:45]Send response to host [02:04:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187989,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [02:04:45]free response buf [02:04:45]execute_script done [02:04:45]execute_script returns [02:04:45]free content buf [02:04:45]Sock 8.Close socket [02:04:45]Sock 8.Thread stoped [02:04:49]OFD Sender: No OFD packet to send [02:04:51]accept exits with 9 [02:04:51]New connection [02:04:51]New thread 3067198820 created [02:04:51]Thread 3067055460 joined [02:04:51]Waiting for new connection... [02:04:51] Sock 9.Parse request [02:04:51]Sock 9.Check first char [02:04:51]Sock 9.First char is OK [02:04:51]request: POST /json_proto HTTP/1.0 [02:04:51]Method: POST [02:04:51]URL: /json_proto [02:04:51]Method is POST - this is cgi request [02:04:51]url: /json_proto [02:04:51]query_string will be loaded in cgi processing [02:04:51]execute_cgi json_proto POST (null) [02:04:51]execute_cgi path=json_proto method=POST [02:04:51]POST find Content-Length [02:04:51]Host: 172.17.42.131:8080 [02:04:51]Content-Length: 688 [02:04:51]Content-Type: application/json [02:04:51] [02:04:51]POST finish read [02:04:51]Found Content-Length = 688 [02:04:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210040", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 38.870, "sum" : 3000.76, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:04:51]execute_script... [02:04: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)210040", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 38.870, "sum" : 3000.76, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:04:51]POST & json_proto [02:04:51]process_json_proto [02:04:51]json parsed OK: [02:04:51]protocol is kg_v1.0 [02:04:51]action value=close_receipt [02:04:51]process_action close_receipt [02:04:51]cmd_close_receipt [02:04:51]MH_GetDate [02:04:51]Write to MH i2c: F0 00 00 31 0A 2A [02:04:51]Write i2c OK [02:04:51]MH_I2C_Read... [02:04:51]Read from MH i2c: F0 [02:04:51]MH_I2C_Read... [02:04:51]Read from MH i2c: F0 09 00 [02:04:51]MH_I2C_Read... [02:04:51]Read from MH i2c: F0 09 00 31 0A 00 44 08 17 67 A0 18 CA 66 E5 [02:04:51]GetLastDocTimeStamp 1729562682 [02:04:51]current date 1729562692 [02:04:51]FM_GetShiftState [02:04:51]SAM_PROTO_GetShiftState [02:04:51]wFMCommunicate request_size=4 [02:04:51]MH_SAM_APDU [02:04:51]CAPDU: 80 13 01 00 [02:04:51]Write to MH i2c: E2 08 00 32 0A 80 13 01 00 00 00 00 00 B9 [02:04:51]Write i2c OK [02:04:51]MH_I2C_Read... [02:04:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:04:51]Read from MH i2c: E2 [02:04:51]MH_I2C_Read... [02:04:51]Read from MH i2c: E2 0E 00 [02:04:51]MH_I2C_Read... [02:04:51]Read from MH i2c: E2 0E 00 32 0A 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 AE [02:04:51]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [02:04:51]wFMCommunicate OK [02:04:51]SAM_PROTO_GetShiftState done [02:04:51]FM_GetShiftState done [02:04:51]opened in 1729556094 [02:04:51]opened+sec_in_day 1729642494 [02:04:51]quantity*price = 300076 [02:04:51]sum+1 = 300077 [02:04:51]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.76 ИТОГО: 3000.00 Внесено: 3000.00 СДАЧА: 0.00 НСП 1% : 26.55 НДС 12% : 318.66 Наличными: 3000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 19 22.10.2024 02:04 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 187990 ФПД: 248564443862013 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T020452&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187990&fm=248564443862013&tin=02508201610067®Number=0000000000100030&sum=300000 [02:04:52]StoreToDocumentArchive [02:04:52]shift 461 fd 187990 [02:04:52]save to /storage/0461/doc_00187990 [02:04:52]save last doc name /storage/0461/doc_00187990 to /storage/kkm_last_doc_name [02:04:52]save OK [02:04:52]Clear old archive folders... [02:04:52]ProcessDocumentItem done err = 0, tmpTLVsize=257 [02:04:52]tlvbuf is 01B9E090 [02:04:52]SAM_PROTO_ClearQueue [02:04:52]wFMCommunicate request_size=4 [02:04:52]MH_SAM_APDU [02:04:52]CAPDU: 80 09 00 00 [02:04:52]Write to MH i2c: E2 08 00 3F 0A 80 09 00 00 00 00 00 00 BB [02:04:52]Write i2c OK [02:04:52]MH_I2C_Read... [02:04:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [02:04:52]Read from MH i2c: E2 [02:04:52]MH_I2C_Read... [02:04:52]Read from MH i2c: E2 03 00 [02:04:52]MH_I2C_Read... [02:04:52]Read from MH i2c: E2 03 00 3F 0A 00 90 00 BD [02:04:52]RAPDU: 90 00 [02:04:52]wFMCommunicate OK [02:04:52]SAM_PROTO_ClearQueue done [02:04:52]KKMCreateOFDPacket [02:04:52]OFDProtocolAddRootSTLVToBuf [02:04:52]FM_MakeSignedData [02:04:52]FM_MakeSignedData [02:04:52]SAM_PROTO_SignData [02:04:52]wFMCommunicate request_size=4 [02:04:52]MH_SAM_APDU [02:04:52]CAPDU: 80 0D 01 02 [02:04:52]Write to MH i2c: E2 08 00 40 0A 80 0D 01 02 00 00 00 00 C3 [02:04:52]Write i2c OK [02:04:52]MH_I2C_Read... [02:04:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [02:04:52]Read from MH i2c: E2 [02:04:52]MH_I2C_Read... [02:04:52]Read from MH i2c: E2 03 00 [02:04:52]MH_I2C_Read... [02:04:52]Read from MH i2c: E2 03 00 40 0A 00 90 00 BE [02:04:52]RAPDU: 90 00 [02:04:52]wFMCommunicate OK [02:04:52]wFMCommunicate request_size=255 [02:04:52]MH_SAM_APDU [02:04:52]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 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D6 97 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 44 08 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 56 DE 02 [02:04:52]Write to MH i2c: E2 02 01 41 0A 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D6 97 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 44 08 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 56 DE 02 00 00 E3 [02:04:52]Write i2c OK [02:04:52]MH_I2C_Read... [02:04:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:04:53]Read from MH i2c: E2 [02:04:53]MH_I2C_Read... [02:04:53]Read from MH i2c: E2 03 00 [02:04:53]MH_I2C_Read... [02:04:53]Read from MH i2c: E2 03 00 41 0A 00 90 00 BF [02:04:53]RAPDU: 90 00 [02:04:53]wFMCommunicate OK [02:04:53]wFMCommunicate request_size=16 [02:04:53]MH_SAM_APDU [02:04:53]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 E2 11 6B 61 53 FD [02:04:53]Write to MH i2c: E2 13 00 42 0A 80 0D 02 02 0B 00 00 35 04 06 00 E2 11 6B 61 53 FD 00 00 2A [02:04:53]Write i2c OK [02:04:53]MH_I2C_Read... [02:04:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:04:53]Read from MH i2c: E2 [02:04:53]MH_I2C_Read... [02:04:53]Read from MH i2c: E2 03 00 [02:04:53]MH_I2C_Read... [02:04:53]Read from MH i2c: E2 03 00 42 0A 00 90 00 C0 [02:04:53]RAPDU: 90 00 [02:04:53]wFMCommunicate OK [02:04:53]wFMCommunicate request_size=4 [02:04:53]MH_SAM_APDU [02:04:53]CAPDU: 80 0D 03 02 [02:04:53]Write to MH i2c: E2 08 00 43 0A 80 0D 03 02 00 00 00 00 C8 [02:04:53]Write i2c OK [02:04:53]MH_I2C_Read... [02:04:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [02:04:53]Read from MH i2c: E2 [02:04:53]MH_I2C_Read... [02:04:53]Read from MH i2c: E2 0B 00 [02:04:53]MH_I2C_Read... [02:04:53]Read from MH i2c: E2 0B 00 43 0A 00 9D 60 21 83 E4 72 0F 5A 90 00 29 [02:04:53]RAPDU: 9D 60 21 83 E4 72 0F 5A 90 00 [02:04:53]wFMCommunicate OK [02:04:53]SAM_PROTO_SignData done [02:04:53]FM_MakeSignedData done [02:04:53]CreateOFDProtocolMessage [02:04:53]wFMCommunicate request_size=4 [02:04:53]MH_SAM_APDU [02:04:53]CAPDU: 80 11 00 00 [02:04:53]Write to MH i2c: E2 08 00 44 0A 80 11 00 00 00 00 00 00 C8 [02:04:53]Write i2c OK [02:04:53]MH_I2C_Read... [02:04:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:04:53]Read from MH i2c: E2 [02:04:53]MH_I2C_Read... [02:04:53]Read from MH i2c: E2 17 00 [02:04:53]MH_I2C_Read... [02:04:53]Read from MH i2c: E2 17 00 44 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 16 [02:04:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [02:04:53]wFMCommunicate OK [02:04:53]CreateOFDProtocolMessage done [02:04:53]OFDSenderStorePacket 187990 [02:04:53]StoreOFDPacket docnum=187990 [02:04:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 5B BA 0D 01 D9 3D 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 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D6 97 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 44 08 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 56 DE 02 00 35 04 06 00 E2 11 6B 61 53 FD 9D 60 21 83 E4 72 0F 5A [02:04:53]CheckFolder [02:04:53]dirname=/storage/ofd_packets [02:04:53]CheckFolder done [02:04:53]ProducePacketName [02:04:53]name=ofd_packets/00187990 [02:04:53]NVStorageSaveData ofd_packets/00187990 [02:04:53]File name is /storage/ofd_packets/00187990 [02:04:53]Write 307 bytes [02:04:53]NVStorageSaveData done [02:04:53]OFDSenderStorePacket done [02:04:53]KKMCreateOFDPacket done [02:04:53]NVStorageSaveData kkm_last_timestamp [02:04:53]File name is /storage/kkm_last_timestamp [02:04:53]Write 4 bytes [02:04:53]NVStorageSaveData done [02:04:53]ExternCall_PrintAddStr [02:04:53]wPrintStart [02:04:53]Write to MH i2c: 01 00 00 45 0A 4F [02:04:53]Write i2c OK [02:04:53]MH_I2C_Read... [02:04:53]Read from MH i2c: 01 [02:04:53]MH_I2C_Read... [02:04:53]Read from MH i2c: 01 07 00 [02:04:53]MH_I2C_Read... [02:04:53]Read from MH i2c: 01 07 00 45 0A 00 00 00 00 00 FF 0F 64 [02:04:53]RasterBufferAndPrint [02:04:53]line Счет N : (1)210040 [02:04:53]line ИНН: 02508201610067 [02:04:53]line Контрольно-Кассовый Чек [02:04:53]line ПРОДАЖА [02:04:53]line ТРК (МРК, ГНК) : 31 [02:04:53]line Товар: 2710194210 [02:04:53]line D-ENERGY ДТ-К-5 [02:04:53]line 38.870 * 77.20 [02:04:53]line = 3000.76 [02:04:53]line НДС 12% НСП 1% [02:04:53]line > о реализуемом товаре [02:04:53]line ОКРУГЛЕНИЕ: -0.76 [02:04:53]line ИТОГО: 3000.00 [02:04:53]line Внесено: 3000.00 [02:04:53]line СДАЧА: 0.00 [02:04:53]line НСП 1% : 26.55 [02:04:53]line НДС 12% : 318.66 [02:04:53]line Наличными: 3000.00 [02:04:53]line Безнал.: 0.00 [02:04:53]line Место: АЗС № 86 "Партнер Нефть" [02:04:53]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [02:04:53]line СНО: Общий режим [02:04:53]line Чек 19 22.10.2024 02:04 [02:04:53]line Смена: 461 ФФД: 1.0 [02:04:53]line ЗНМ: 0300000155 [02:04:53]line РНМ: 0000000000100030 [02:04:53]line Версия ККМ: 001 [02:04:53]line ФМ: 0000000000965340 [02:04:53]line ФД: 187990 [02:04:53]line ФПД: 248564443862013 [02:04:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T020452&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187990&fm=248564443862013&tin=02508201610067®Number=0000000000100030&sum=300000 [02:04:53]written 0, free lines is 4095 [02:04:53]OFD Sender: Processing packet 187990 [packets to send 1062, broken 1061] [02:04:53]ProducePacketName [02:04:53]name=ofd_packets/00187990 [02:04:53]OFD Sender: To server: pG, [02:04:53]CommunicateWithHost lk.salyk.kg:30040 [02:04:53]ConnectInit lk.salyk.kg [02:04:53]Connected sock=11 [02:04:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 5B BA 0D 01 D9 3D 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 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D6 97 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 44 08 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 56 DE 02 00 35 04 06 00 E2 11 6B 61 53 FD 9D 60 21 83 E4 72 0F 5A [02:04:53]Write to MH i2c: 01 00 00 70 0A 7A [02:04:53]Write i2c OK [02:04:53]MH_I2C_Read... [02:04:53]Read from MH i2c: 01 [02:04:53]MH_I2C_Read... [02:04:53]Read from MH i2c: 01 07 00 [02:04:53]MH_I2C_Read... [02:04:53]Read from MH i2c: 01 07 00 70 0A 00 00 00 00 00 64 0C F1 [02:04:53]RasterBufferAndPrint [02:04:53]line [02:04:53]line [02:04:53]line [02:04:53]line [02:04:53]line [02:04:53]written 0, free lines is 3177 [02:04:53]MH_Cut [02:04:53]Write to MH i2c: D1 01 00 77 0A 01 53 [02:04:53]Write i2c OK [02:04:53]MH_I2C_Read... [02:04:53]Read from MH i2c: D1 [02:04:53]MH_I2C_Read... [02:04:53]Read from MH i2c: D1 01 00 [02:04:53]MH_I2C_Read... [02:04:53]Read from MH i2c: D1 01 00 77 0A 00 52 [02:04:53]Write to MH i2c: 01 00 00 78 0A 82 [02:04:53]Write i2c OK [02:04:53]MH_I2C_Read... [02:04:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 C8 03 47 00 FA BC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 56 DE 02 00 F4 03 04 00 33 B2 16 67 B6 04 01 00 00 D9 D9 53 32 0F 5D 2D 6B [02:04:53]CommunicateWithHost err = 0 [02:04:53]CheckOFDResponse [02:04:53]1017 (14) - 77093643461234 [02:04:53]1041 (16) - 0000000000965340 [02:04:53]1040 (4) - 187990 [02:04:53]1012 (4) - 21.10.2024 19:57 [02:04:53]1206 (1) - 0 [02:04:53]OFD Sender: Remove packet 187990 [02:04:53]ProducePacketName [02:04:53]name=ofd_packets/00187990 [02:04:53]NVStorageDeleteData [02:04:54]OFD Sender: No OFD packet to send [02:04:54]*** Cut start [02:04:54]*** Partial cut [02:04:54]*** CUTSNS_PIN = 1 [02:04:54]*** CUTSNS_PIN = 0 [02:04:55]*** Brake cut motor [02:04:55]Read from MH i2c: 01 [02:04:55]MH_I2C_Read... [02:04:55]*** Stop cut motor [02:04:55]*** Cut end [02:04:55]Read from MH i2c: 01 07 00 [02:04:55]MH_I2C_Read... [02:04:55]Read from MH i2c: 01 07 00 78 0A 00 00 00 00 00 FF 0F 97 [02:04:55]process_action close_receipt done [02:04:55]requested_data is exist [02:04:55]produce_requested_data [02:04:55]requested_item fm.sn is exist - process it [02:04:55]wFMCommunicate request_size=4 [02:04:55]MH_SAM_APDU [02:04:55]CAPDU: 80 11 00 00 [02:04:55]Write to MH i2c: E2 08 00 79 0A 80 11 00 00 00 00 00 00 FD [02:04:55]Write i2c OK [02:04:55]MH_I2C_Read... [02:04:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:04:55]Read from MH i2c: E2 [02:04:55]MH_I2C_Read... [02:04:55]Read from MH i2c: E2 17 00 [02:04:55]MH_I2C_Read... [02:04:55]Read from MH i2c: E2 17 00 79 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 4B [02:04:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [02:04:55]wFMCommunicate OK [02:04:55]requested_item fd.num is exist - process it [02:04:55]SAM_PROTO_GetFieldsCounters [02:04:55]wFMCommunicate request_size=4 [02:04:55]MH_SAM_APDU [02:04:55]CAPDU: 80 13 00 00 [02:04:55]Write to MH i2c: E2 08 00 7A 0A 80 13 00 00 00 00 00 00 00 [02:04:55]Write i2c OK [02:04:55]MH_I2C_Read... [02:04:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [02:04:55]Read from MH i2c: E2 [02:04:55]MH_I2C_Read... [02:04:55]Read from MH i2c: E2 62 00 [02:04:55]MH_I2C_Read... [02:04:55]Read from MH i2c: E2 62 00 7A 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 56 DE 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 13 00 00 00 5E 04 04 00 13 00 00 00 57 04 04 00 14 00 00 00 19 04 04 00 00 00 00 00 90 00 44 [02:04:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 56 DE 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 13 00 00 00 5E 04 04 00 13 00 00 00 57 04 04 00 14 00 00 00 19 04 04 00 00 00 00 00 90 00 [02:04:55]wFMCommunicate OK [02:04:55]SAM_PROTO_GetFieldsCounters done [02:04:55]requested_item shift.num is exist - process it [02:04:55]requested_item shift.opened is exist - process it [02:04:55]req_shift_opened [02:04:55]FM_GetShiftState [02:04:55]SAM_PROTO_GetShiftState [02:04:55]wFMCommunicate request_size=4 [02:04:55]MH_SAM_APDU [02:04:55]CAPDU: 80 13 01 00 [02:04:55]Write to MH i2c: E2 08 00 7B 0A 80 13 01 00 00 00 00 00 02 [02:04:55]Write i2c OK [02:04:55]MH_I2C_Read... [02:04:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:04:55]Read from MH i2c: E2 [02:04:55]MH_I2C_Read... [02:04:55]Read from MH i2c: E2 0E 00 [02:04:55]MH_I2C_Read... [02:04:55]Read from MH i2c: E2 0E 00 7B 0A 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 F7 [02:04:55]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [02:04:55]wFMCommunicate OK [02:04:55]SAM_PROTO_GetShiftState done [02:04:55]FM_GetShiftState done [02:04:55]req_shift_opened done [02:04:55]requested_item shift.open_date is exist - process it [02:04:55]req_shift_open_date [02:04:55]req_shift_open_date done [02:04:55]produce_requested_data done [02:04:55]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187990,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [02:04:55]process_action_free close_receipt [02:04:55]json_value_free [02:04:55]json_value_free done [02:04:55]process_json_proto returns [02:04:55]Send response to host [02:04:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187990,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [02:04:55]free response buf [02:04:55]execute_script done [02:04:55]execute_script returns [02:04:55]free content buf [02:04:55]Sock 9.Close socket [02:04:55]Sock 9.Thread stoped [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:15]OFD Sender: No OFD packet to send [02:07:20]OFD Sender: No OFD packet to send [02:07:25]OFD Sender: No OFD packet to send [02:07:30]OFD Sender: No OFD packet to send [02:07:35]OFD Sender: No OFD packet to send [02:07:40]OFD Sender: No OFD packet to send [02:07:45]OFD Sender: No OFD packet to send [02:07:50]OFD Sender: No OFD packet to send [02:07:55]OFD Sender: No OFD packet to send [02:08:00]OFD Sender: No OFD packet to send [02:08:05]OFD Sender: No OFD packet to send [02:08:10]OFD Sender: No OFD packet to send [02:08:15]OFD Sender: No OFD packet to send [02:08:20]OFD Sender: No OFD packet to send [02:08:25]OFD Sender: No OFD packet to send [02:08:30]OFD Sender: No OFD packet to send [02:08:35]OFD Sender: No OFD packet to send [02:08:40]OFD Sender: No OFD packet to send [02:08:45]OFD Sender: No OFD packet to send [02:08:50]OFD Sender: No OFD packet to send [02:08:55]OFD Sender: No OFD packet to send [02:09:00]OFD Sender: No OFD packet to send [02:09:05]OFD Sender: No OFD packet to send [02:09:10]OFD Sender: No OFD packet to send [02:09:15]OFD Sender: No OFD packet to send [02:09:20]OFD Sender: No OFD packet to send [02:09:25]OFD Sender: No OFD packet to send [02:09:30]OFD Sender: No OFD packet to send [02:09:35]OFD Sender: No OFD packet to send [02:09:40]OFD Sender: No OFD packet to send [02:09:45]OFD Sender: No OFD packet to send [02:09:50]OFD Sender: No OFD packet to send [02:09:55]OFD Sender: No OFD packet to send [02:10:00]OFD Sender: No OFD packet to send [02:10:05]OFD Sender: No OFD packet to send [02:10:10]OFD Sender: No OFD packet to send [02:10:15]OFD Sender: No OFD packet to send [02:10:20]OFD Sender: No OFD packet to send [02:10:25]OFD Sender: No OFD packet to send [02:10:30]OFD Sender: No OFD packet to send [02:10:35]OFD Sender: No OFD packet to send [02:10:40]OFD Sender: No OFD packet to send [02:10:45]OFD Sender: No OFD packet to send [02:10:50]OFD Sender: No OFD packet to send [02:10:55]OFD Sender: No OFD packet to send [02:11:01]OFD Sender: No OFD packet to send [02:11:06]OFD Sender: No OFD packet to send [02:11:11]OFD Sender: No OFD packet to send [02:11:16]OFD Sender: No OFD packet to send [02:11:21]OFD Sender: No OFD packet to send [02:11:26]OFD Sender: No OFD packet to send [02:11:31]OFD Sender: No OFD packet to send [02:11:36]OFD Sender: No OFD packet to send [02:11:41]OFD Sender: No OFD packet to send [02:11:46]OFD Sender: No OFD packet to send [02:11:51]OFD Sender: No OFD packet to send [02:11:56]OFD Sender: No OFD packet to send [02:12:01]OFD Sender: No OFD packet to send [02:12:06]OFD Sender: No OFD packet to send [02:12:11]OFD Sender: No OFD packet to send [02:12:16]OFD Sender: No OFD packet to send [02:12:21]OFD Sender: No OFD packet to send [02:12:26]OFD Sender: No OFD packet to send [02:12:31]OFD Sender: No OFD packet to send [02:12:36]OFD Sender: No OFD packet to send [02:12:41]OFD Sender: No OFD packet to send [02:12:46]OFD Sender: No OFD packet to send [02:12:51]OFD Sender: No OFD packet to send [02:12:56]OFD Sender: No OFD packet to send [02:13:01]OFD Sender: No OFD packet to send [02:13:06]OFD Sender: No OFD packet to send [02:13:11]OFD Sender: No OFD packet to send [02:13:16]OFD Sender: No OFD packet to send [02:13:21]OFD Sender: No OFD packet to send [02:13:26]OFD Sender: No OFD packet to send [02:13:31]OFD Sender: No OFD packet to send [02:13:36]OFD Sender: No OFD packet to send [02:13:41]OFD Sender: No OFD packet to send [02:13:46]OFD Sender: No OFD packet to send [02:13:51]OFD Sender: No OFD packet to send [02:13:56]OFD Sender: No OFD packet to send [02:14:01]OFD Sender: No OFD packet to send [02:14:06]OFD Sender: No OFD packet to send [02:14:11]OFD Sender: No OFD packet to send [02:14:16]OFD Sender: No OFD packet to send [02:14:21]OFD Sender: No OFD packet to send [02:14:26]OFD Sender: No OFD packet to send [02:14:31]OFD Sender: No OFD packet to send [02:14:36]OFD Sender: No OFD packet to send [02:14:41]OFD Sender: No OFD packet to send [02:14:47]OFD Sender: No OFD packet to send [02:14:52]OFD Sender: No OFD packet to send [02:14:57]OFD Sender: No OFD packet to send [02:15:02]OFD Sender: No OFD packet to send [02:15:07]OFD Sender: No OFD packet to send [02:15:12]OFD Sender: No OFD packet to send [02:15:17]OFD Sender: No OFD packet to send [02:15:22]OFD Sender: No OFD packet to send [02:15:27]OFD Sender: No OFD packet to send [02:15:32]OFD Sender: No OFD packet to send [02:15:37]OFD Sender: No OFD packet to send [02:15:42]OFD Sender: No OFD packet to send [02:15:47]OFD Sender: No OFD packet to send [02:15:52]OFD Sender: No OFD packet to send [02:15:57]OFD Sender: No OFD packet to send [02:16:02]OFD Sender: No OFD packet to send [02:16:07]OFD Sender: No OFD packet to send [02:16:12]OFD Sender: No OFD packet to send [02:16:17]OFD Sender: No OFD packet to send [02:16:22]OFD Sender: No OFD packet to send [02:16:27]OFD Sender: No OFD packet to send [02:16:32]OFD Sender: No OFD packet to send [02:16:37]OFD Sender: No OFD packet to send [02:16:42]OFD Sender: No OFD packet to send [02:16:47]OFD Sender: No OFD packet to send [02:16:52]OFD Sender: No OFD packet to send [02:16:57]OFD Sender: No OFD packet to send [02:17:02]OFD Sender: No OFD packet to send [02:17:07]OFD Sender: No OFD packet to send [02:17:12]OFD Sender: No OFD packet to send [02:17:17]OFD Sender: No OFD packet to send [02:17:22]OFD Sender: No OFD packet to send [02:17:27]OFD Sender: No OFD packet to send [02:17:32]OFD Sender: No OFD packet to send [02:17:37]OFD Sender: No OFD packet to send [02:17:42]OFD Sender: No OFD packet to send [02:17:47]OFD Sender: No OFD packet to send [02:17:52]OFD Sender: No OFD packet to send [02:17:57]OFD Sender: No OFD packet to send [02:18:02]OFD Sender: No OFD packet to send [02:18:07]OFD Sender: No OFD packet to send [02:18:12]OFD Sender: No OFD packet to send [02:18:17]OFD Sender: No OFD packet to send [02:18:22]OFD Sender: No OFD packet to send [02:18:28]OFD Sender: No OFD packet to send [02:18:33]OFD Sender: No OFD packet to send [02:18:38]OFD Sender: No OFD packet to send [02:18:43]OFD Sender: No OFD packet to send [02:18:48]OFD Sender: No OFD packet to send [02:18:53]OFD Sender: No OFD packet to send [02:18:58]OFD Sender: No OFD packet to send [02:19:03]OFD Sender: No OFD packet to send [02:19:08]OFD Sender: No OFD packet to send [02:19:13]OFD Sender: No OFD packet to send [02:19:18]OFD Sender: No OFD packet to send [02:19:23]OFD Sender: No OFD packet to send [02:19:28]OFD Sender: No OFD packet to send [02:19:33]OFD Sender: No OFD packet to send [02:19:38]OFD Sender: No OFD packet to send [02:19:43]OFD Sender: No OFD packet to send [02:19:48]OFD Sender: No OFD packet to send [02:19:53]OFD Sender: No OFD packet to send [02:19:58]OFD Sender: No OFD packet to send [02:20:03]OFD Sender: No OFD packet to send [02:20:08]OFD Sender: No OFD packet to send [02:20:13]OFD Sender: No OFD packet to send [02:20:18]OFD Sender: No OFD packet to send [02:20:23]OFD Sender: No OFD packet to send [02:20:28]OFD Sender: No OFD packet to send [02:20:33]OFD Sender: No OFD packet to send [02:20:38]OFD Sender: No OFD packet to send [02:20:43]OFD Sender: No OFD packet to send [02:20:48]OFD Sender: No OFD packet to send [02:20:53]OFD Sender: No OFD packet to send [02:20:58]OFD Sender: No OFD packet to send [02:21:03]OFD Sender: No OFD packet to send [02:21:08]OFD Sender: No OFD packet to send [02:21:13]OFD Sender: No OFD packet to send [02:21:18]OFD Sender: No OFD packet to send [02:21:23]OFD Sender: No OFD packet to send [02:21:28]OFD Sender: No OFD packet to send [02:21:33]OFD Sender: No OFD packet to send [02:21:38]OFD Sender: No OFD packet to send [02:21:43]OFD Sender: No OFD packet to send [02:21:48]OFD Sender: No OFD packet to send [02:21:53]OFD Sender: No OFD packet to send [02:21:58]OFD Sender: No OFD packet to send [02:22:03]OFD Sender: No OFD packet to send [02:22:09]OFD Sender: No OFD packet to send [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:50]OFD Sender: No OFD packet to send [02:25:55]OFD Sender: No OFD packet to send [02:26:00]OFD Sender: No OFD packet to send [02:26:05]OFD Sender: No OFD packet to send [02:26:10]OFD Sender: No OFD packet to send [02:26:15]OFD Sender: No OFD packet to send [02:26:20]OFD Sender: No OFD packet to send [02:26:25]OFD Sender: No OFD packet to send [02:26:30]OFD Sender: No OFD packet to send [02:26:35]OFD Sender: No OFD packet to send [02:26:40]OFD Sender: No OFD packet to send [02:26:45]OFD Sender: No OFD packet to send [02:26:47]accept exits with 8 [02:26:47]New connection [02:26:47]New thread 3067055460 created [02:26:47]Thread 3067198820 joined [02:26:47]Waiting for new connection... [02:26:47] Sock 8.Parse request [02:26:47]Sock 8.Check first char [02:26:47]Sock 8.First char is OK [02:26:47]request: POST /json_proto HTTP/1.0 [02:26:47]Method: POST [02:26:47]URL: /json_proto [02:26:47]Method is POST - this is cgi request [02:26:47]url: /json_proto [02:26:47]query_string will be loaded in cgi processing [02:26:47]execute_cgi json_proto POST (null) [02:26:47]execute_cgi path=json_proto method=POST [02:26:47]POST find Content-Length [02:26:47]Host: 172.17.42.131:8080 [02:26:47]Content-Length: 645 [02:26:47]Content-Type: application/json [02:26:47] [02:26:47]POST finish read [02:26:47]Found Content-Length = 645 [02:26:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210042", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 5.570, "sum" : 430.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 430.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:26:47]execute_script... [02:26:47]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210042", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 5.570, "sum" : 430.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 430.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:26:47]POST & json_proto [02:26:47]process_json_proto [02:26:47]json parsed OK: [02:26:47]protocol is kg_v1.0 [02:26:47]action value=close_receipt [02:26:47]process_action close_receipt [02:26:47]cmd_close_receipt [02:26:47]MH_GetDate [02:26:47]Write to MH i2c: F0 00 00 7C 0A 75 [02:26:47]Write i2c OK [02:26:47]MH_I2C_Read... [02:26:47]Read from MH i2c: F0 [02:26:47]MH_I2C_Read... [02:26:47]Read from MH i2c: F0 09 00 [02:26:47]MH_I2C_Read... [02:26:47]Read from MH i2c: F0 09 00 7C 0A 00 68 0D 17 67 A0 18 CA 66 59 [02:26:47]GetLastDocTimeStamp 1729562692 [02:26:47]current date 1729564008 [02:26:47]FM_GetShiftState [02:26:47]SAM_PROTO_GetShiftState [02:26:47]wFMCommunicate request_size=4 [02:26:47]MH_SAM_APDU [02:26:47]CAPDU: 80 13 01 00 [02:26:47]Write to MH i2c: E2 08 00 7D 0A 80 13 01 00 00 00 00 00 04 [02:26:47]Write i2c OK [02:26:47]MH_I2C_Read... [02:26:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:26:47]Read from MH i2c: E2 [02:26:47]MH_I2C_Read... [02:26:47]Read from MH i2c: E2 0E 00 [02:26:47]MH_I2C_Read... [02:26:47]Read from MH i2c: E2 0E 00 7D 0A 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 F9 [02:26:47]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [02:26:47]wFMCommunicate OK [02:26:47]SAM_PROTO_GetShiftState done [02:26:47]FM_GetShiftState done [02:26:47]opened in 1729556094 [02:26:47]opened+sec_in_day 1729642494 [02:26:47]quantity*price = 43000 [02:26:47]sum+1 = 43001 [02:26:47]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 430.00 НСП 1% : 3.80 НДС 12% : 45.66 Наличными: 430.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 20 22.10.2024 02:26 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 187991 ФПД: 142498845059445 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T022648&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187991&fm=142498845059445&tin=02508201610067®Number=0000000000100030&sum=43000 [02:26:48]StoreToDocumentArchive [02:26:48]shift 461 fd 187991 [02:26:48]save to /storage/0461/doc_00187991 [02:26:48]save last doc name /storage/0461/doc_00187991 to /storage/kkm_last_doc_name [02:26:48]save OK [02:26:48]Clear old archive folders... [02:26:48]ProcessDocumentItem done err = 0, tmpTLVsize=257 [02:26:48]tlvbuf is 01B9DCC0 [02:26:48]SAM_PROTO_ClearQueue [02:26:48]wFMCommunicate request_size=4 [02:26:48]MH_SAM_APDU [02:26:48]CAPDU: 80 09 00 00 [02:26:48]Write to MH i2c: E2 08 00 8A 0A 80 09 00 00 00 00 00 00 06 [02:26:48]Write i2c OK [02:26:48]MH_I2C_Read... [02:26:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [02:26:48]Read from MH i2c: E2 [02:26:48]MH_I2C_Read... [02:26:48]Read from MH i2c: E2 03 00 [02:26:48]MH_I2C_Read... [02:26:48]Read from MH i2c: E2 03 00 8A 0A 00 90 00 08 [02:26:48]RAPDU: 90 00 [02:26:48]wFMCommunicate OK [02:26:48]SAM_PROTO_ClearQueue done [02:26:48]KKMCreateOFDPacket [02:26:48]OFDProtocolAddRootSTLVToBuf [02:26:48]FM_MakeSignedData [02:26:48]FM_MakeSignedData [02:26:48]SAM_PROTO_SignData [02:26:48]wFMCommunicate request_size=4 [02:26:48]MH_SAM_APDU [02:26:48]CAPDU: 80 0D 01 02 [02:26:48]Write to MH i2c: E2 08 00 8B 0A 80 0D 01 02 00 00 00 00 0E [02:26:48]Write i2c OK [02:26:48]MH_I2C_Read... [02:26:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [02:26:48]Read from MH i2c: E2 [02:26:48]MH_I2C_Read... [02:26:48]Read from MH i2c: E2 03 00 [02:26:48]MH_I2C_Read... [02:26:48]Read from MH i2c: E2 03 00 8B 0A 00 90 00 09 [02:26:48]RAPDU: 90 00 [02:26:48]wFMCommunicate OK [02:26:48]wFMCommunicate request_size=255 [02:26:48]MH_SAM_APDU [02:26:48]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 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 C2 15 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 F8 A7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 A7 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D6 11 00 00 00 00 07 04 06 00 F8 A7 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 68 0D 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 57 DE 02 [02:26:48]Write to MH i2c: E2 02 01 8C 0A 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 C2 15 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 F8 A7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 A7 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D6 11 00 00 00 00 07 04 06 00 F8 A7 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 68 0D 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 57 DE 02 00 00 F3 [02:26:48]Write i2c OK [02:26:48]MH_I2C_Read... [02:26:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:26:48]Read from MH i2c: E2 [02:26:48]MH_I2C_Read... [02:26:48]Read from MH i2c: E2 03 00 [02:26:48]MH_I2C_Read... [02:26:48]Read from MH i2c: E2 03 00 8C 0A 00 90 00 0A [02:26:48]RAPDU: 90 00 [02:26:48]wFMCommunicate OK [02:26:48]wFMCommunicate request_size=16 [02:26:48]MH_SAM_APDU [02:26:48]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 81 9A 19 0A 69 75 [02:26:48]Write to MH i2c: E2 13 00 8D 0A 80 0D 02 02 0B 00 00 35 04 06 00 81 9A 19 0A 69 75 00 00 82 [02:26:48]Write i2c OK [02:26:48]MH_I2C_Read... [02:26:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:26:48]Read from MH i2c: E2 [02:26:48]MH_I2C_Read... [02:26:48]Read from MH i2c: E2 03 00 [02:26:48]MH_I2C_Read... [02:26:48]Read from MH i2c: E2 03 00 8D 0A 00 90 00 0B [02:26:48]RAPDU: 90 00 [02:26:48]wFMCommunicate OK [02:26:48]wFMCommunicate request_size=4 [02:26:48]MH_SAM_APDU [02:26:48]CAPDU: 80 0D 03 02 [02:26:48]Write to MH i2c: E2 08 00 8E 0A 80 0D 03 02 00 00 00 00 13 [02:26:48]Write i2c OK [02:26:48]MH_I2C_Read... [02:26:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [02:26:48]Read from MH i2c: E2 [02:26:48]MH_I2C_Read... [02:26:48]Read from MH i2c: E2 0B 00 [02:26:48]MH_I2C_Read... [02:26:48]Read from MH i2c: E2 0B 00 8E 0A 00 E0 20 3F 48 50 D4 4F 65 90 00 73 [02:26:48]RAPDU: E0 20 3F 48 50 D4 4F 65 90 00 [02:26:48]wFMCommunicate OK [02:26:48]SAM_PROTO_SignData done [02:26:48]FM_MakeSignedData done [02:26:48]CreateOFDProtocolMessage [02:26:48]wFMCommunicate request_size=4 [02:26:48]MH_SAM_APDU [02:26:48]CAPDU: 80 11 00 00 [02:26:48]Write to MH i2c: E2 08 00 8F 0A 80 11 00 00 00 00 00 00 13 [02:26:48]Write i2c OK [02:26:48]MH_I2C_Read... [02:26:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:26:48]Read from MH i2c: E2 [02:26:48]MH_I2C_Read... [02:26:48]Read from MH i2c: E2 17 00 [02:26:48]MH_I2C_Read... [02:26:48]Read from MH i2c: E2 17 00 8F 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 61 [02:26:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [02:26:48]wFMCommunicate OK [02:26:48]CreateOFDProtocolMessage done [02:26:48]OFDSenderStorePacket 187991 [02:26:48]StoreOFDPacket docnum=187991 [02:26:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 36 2E 0D 01 39 45 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 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 C2 15 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 F8 A7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 A7 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D6 11 00 00 00 00 07 04 06 00 F8 A7 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 68 0D 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 57 DE 02 00 35 04 06 00 81 9A 19 0A 69 75 E0 20 3F 48 50 D4 4F 65 [02:26:48]CheckFolder [02:26:48]dirname=/storage/ofd_packets [02:26:48]CheckFolder done [02:26:48]ProducePacketName [02:26:48]name=ofd_packets/00187991 [02:26:48]NVStorageSaveData ofd_packets/00187991 [02:26:48]File name is /storage/ofd_packets/00187991 [02:26:48]Write 307 bytes [02:26:48]NVStorageSaveData done [02:26:48]OFDSenderStorePacket done [02:26:48]KKMCreateOFDPacket done [02:26:48]NVStorageSaveData kkm_last_timestamp [02:26:48]File name is /storage/kkm_last_timestamp [02:26:48]Write 4 bytes [02:26:48]NVStorageSaveData done [02:26:48]ExternCall_PrintAddStr [02:26:48]wPrintStart [02:26:48]Write to MH i2c: 01 00 00 90 0A 9A [02:26:48]Write i2c OK [02:26:48]MH_I2C_Read... [02:26:48]Read from MH i2c: 01 [02:26:48]MH_I2C_Read... [02:26:48]Read from MH i2c: 01 07 00 [02:26:48]MH_I2C_Read... [02:26:48]Read from MH i2c: 01 07 00 90 0A 00 00 00 00 00 FF 0F AF [02:26:48]RasterBufferAndPrint [02:26:48]line Счет N : (1)210042 [02:26:48]line ИНН: 02508201610067 [02:26:48]line Контрольно-Кассовый Чек [02:26:48]line ПРОДАЖА [02:26:48]line ТРК (МРК, ГНК) : 31 [02:26:48]line Товар: 2710194210 [02:26:48]line D-ENERGY ДТ-К-5 [02:26:48]line 5.570 * 77.20 [02:26:48]line = 430.00 [02:26:48]line НДС 12% НСП 1% [02:26:48]line > о реализуемом товаре [02:26:48]line ИТОГО: 430.00 [02:26:48]line НСП 1% : 3.80 [02:26:48]line НДС 12% : 45.66 [02:26:48]line Наличными: 430.00 [02:26:48]line Безнал.: 0.00 [02:26:48]line Место: АЗС № 86 "Партнер Нефть" [02:26:48]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [02:26:48]line СНО: Общий режим [02:26:48]line Чек 20 22.10.2024 02:26 [02:26:48]line Смена: 461 ФФД: 1.0 [02:26:48]line ЗНМ: 0300000155 [02:26:48]line РНМ: 0000000000100030 [02:26:48]line Версия ККМ: 001 [02:26:48]line ФМ: 0000000000965340 [02:26:48]line ФД: 187991 [02:26:48]line ФПД: 142498845059445 [02:26:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T022648&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187991&fm=142498845059445&tin=02508201610067®Number=0000000000100030&sum=43000 [02:26:48]written 0, free lines is 4095 [02:26:48]OFD Sender: Processing packet 187991 [packets to send 1062, broken 1061] [02:26:48]ProducePacketName [02:26:48]name=ofd_packets/00187991 [02:26:48]OFD Sender: To server: pG, [02:26:48]CommunicateWithHost lk.salyk.kg:30040 [02:26:48]ConnectInit lk.salyk.kg [02:26:49]Connected sock=10 [02:26:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 36 2E 0D 01 39 45 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 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 C2 15 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 F8 A7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 A7 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D6 11 00 00 00 00 07 04 06 00 F8 A7 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 68 0D 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 57 DE 02 00 35 04 06 00 81 9A 19 0A 69 75 E0 20 3F 48 50 D4 4F 65 [02:26:49]Write to MH i2c: 01 00 00 B8 0A C2 [02:26:49]Write i2c OK [02:26:49]MH_I2C_Read... [02:26:49]Read from MH i2c: 01 [02:26:49]MH_I2C_Read... [02:26:49]Read from MH i2c: 01 07 00 [02:26:49]MH_I2C_Read... [02:26:49]Read from MH i2c: 01 07 00 B8 0A 00 00 00 00 00 8E 0C 63 [02:26:49]RasterBufferAndPrint [02:26:49]line [02:26:49]line [02:26:49]line [02:26:49]line [02:26:49]line [02:26:49]written 0, free lines is 3219 [02:26:49]MH_Cut [02:26:49]Write to MH i2c: D1 01 00 BF 0A 01 9B [02:26:49]Write i2c OK [02:26:49]MH_I2C_Read... [02:26:49]Read from MH i2c: D1 [02:26:49]MH_I2C_Read... [02:26:49]Read from MH i2c: D1 01 00 [02:26:49]MH_I2C_Read... [02:26:49]Read from MH i2c: D1 01 00 BF 0A 00 9A [02:26:49]Write to MH i2c: 01 00 00 C0 0A CA [02:26:49]Write i2c OK [02:26:49]MH_I2C_Read... [02:26:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 34 99 47 00 DC 17 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 57 DE 02 00 F4 03 04 00 56 B7 16 67 B6 04 01 00 00 84 59 51 F2 F6 F3 52 8C [02:26:49]CommunicateWithHost err = 0 [02:26:49]CheckOFDResponse [02:26:49]1017 (14) - 77093643461234 [02:26:49]1041 (16) - 0000000000965340 [02:26:49]1040 (4) - 187991 [02:26:49]1012 (4) - 21.10.2024 20:19 [02:26:49]1206 (1) - 0 [02:26:49]OFD Sender: Remove packet 187991 [02:26:49]ProducePacketName [02:26:49]name=ofd_packets/00187991 [02:26:49]NVStorageDeleteData [02:26:49]OFD Sender: No OFD packet to send [02:26:50]*** Cut start [02:26:50]*** Partial cut [02:26:50]*** CUTSNS_PIN = 1 [02:26:50]*** CUTSNS_PIN = 0 [02:26:50]*** Brake cut motor [02:26:51]Read from MH i2c: 01 [02:26:51]MH_I2C_Read... [02:26:51]*** Stop cut motor [02:26:51]*** Cut end [02:26:51]Read from MH i2c: 01 07 00 [02:26:51]MH_I2C_Read... [02:26:51]Read from MH i2c: 01 07 00 C0 0A 00 00 00 00 00 FF 0F DF [02:26:51]process_action close_receipt done [02:26:51]requested_data is exist [02:26:51]produce_requested_data [02:26:51]requested_item fm.sn is exist - process it [02:26:51]wFMCommunicate request_size=4 [02:26:51]MH_SAM_APDU [02:26:51]CAPDU: 80 11 00 00 [02:26:51]Write to MH i2c: E2 08 00 C1 0A 80 11 00 00 00 00 00 00 45 [02:26:51]Write i2c OK [02:26:51]MH_I2C_Read... [02:26:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:26:51]Read from MH i2c: E2 [02:26:51]MH_I2C_Read... [02:26:51]Read from MH i2c: E2 17 00 [02:26:51]MH_I2C_Read... [02:26:51]Read from MH i2c: E2 17 00 C1 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 93 [02:26:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [02:26:51]wFMCommunicate OK [02:26:51]requested_item fd.num is exist - process it [02:26:51]SAM_PROTO_GetFieldsCounters [02:26:51]wFMCommunicate request_size=4 [02:26:51]MH_SAM_APDU [02:26:51]CAPDU: 80 13 00 00 [02:26:51]Write to MH i2c: E2 08 00 C2 0A 80 13 00 00 00 00 00 00 48 [02:26:51]Write i2c OK [02:26:51]MH_I2C_Read... [02:26:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [02:26:51]Read from MH i2c: E2 [02:26:51]MH_I2C_Read... [02:26:51]Read from MH i2c: E2 62 00 [02:26:51]MH_I2C_Read... [02:26:51]Read from MH i2c: E2 62 00 C2 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 57 DE 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 14 00 00 00 5E 04 04 00 14 00 00 00 57 04 04 00 15 00 00 00 19 04 04 00 00 00 00 00 90 00 90 [02:26:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 57 DE 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 14 00 00 00 5E 04 04 00 14 00 00 00 57 04 04 00 15 00 00 00 19 04 04 00 00 00 00 00 90 00 [02:26:51]wFMCommunicate OK [02:26:51]SAM_PROTO_GetFieldsCounters done [02:26:51]requested_item shift.num is exist - process it [02:26:51]requested_item shift.opened is exist - process it [02:26:51]req_shift_opened [02:26:51]FM_GetShiftState [02:26:51]SAM_PROTO_GetShiftState [02:26:51]wFMCommunicate request_size=4 [02:26:51]MH_SAM_APDU [02:26:51]CAPDU: 80 13 01 00 [02:26:51]Write to MH i2c: E2 08 00 C3 0A 80 13 01 00 00 00 00 00 4A [02:26:51]Write i2c OK [02:26:51]MH_I2C_Read... [02:26:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:26:51]Read from MH i2c: E2 [02:26:51]MH_I2C_Read... [02:26:51]Read from MH i2c: E2 0E 00 [02:26:51]MH_I2C_Read... [02:26:51]Read from MH i2c: E2 0E 00 C3 0A 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 3F [02:26:51]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [02:26:51]wFMCommunicate OK [02:26:51]SAM_PROTO_GetShiftState done [02:26:51]FM_GetShiftState done [02:26:51]req_shift_opened done [02:26:51]requested_item shift.open_date is exist - process it [02:26:51]req_shift_open_date [02:26:51]req_shift_open_date done [02:26:51]produce_requested_data done [02:26:51]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187991,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [02:26:51]process_action_free close_receipt [02:26:51]json_value_free [02:26:51]json_value_free done [02:26:51]process_json_proto returns [02:26:51]Send response to host [02:26:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187991,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [02:26:51]free response buf [02:26:51]execute_script done [02:26:51]execute_script returns [02:26:51]free content buf [02:26:51]Sock 8.Close socket [02:26:51]Sock 8.Thread stoped [02:26:54]OFD Sender: No OFD packet to send [02:26:59]OFD Sender: No OFD packet to send [02:27:04]OFD Sender: No OFD packet to send [02:27:09]OFD Sender: No OFD packet to send [02:27:15]OFD Sender: No OFD packet to send [02:27:20]OFD Sender: No OFD packet to send [02:27:25]OFD Sender: No OFD packet to send [02:27:30]OFD Sender: No OFD packet to send [02:27:35]OFD Sender: No OFD packet to send [02:27:40]OFD Sender: No OFD packet to send [02:27:45]OFD Sender: No OFD packet to send [02:27:50]OFD Sender: No OFD packet to send [02:27:55]OFD Sender: No OFD packet to send [02:28:00]OFD Sender: No OFD packet to send [02:28:05]OFD Sender: No OFD packet to send [02:28:10]OFD Sender: No OFD packet to send [02:28:15]OFD Sender: No OFD packet to send [02:28:20]OFD Sender: No OFD packet to send [02:28:25]OFD Sender: No OFD packet to send [02:28:30]OFD Sender: No OFD packet to send [02:28:35]OFD Sender: No OFD packet to send [02:28:40]OFD Sender: No OFD packet to send [02:28:45]OFD Sender: No OFD packet to send [02:28:50]OFD Sender: No OFD packet to send [02:28:55]OFD Sender: No OFD packet to send [02:29:00]OFD Sender: No OFD packet to send [02:29:05]OFD Sender: No OFD packet to send [02:29:10]OFD Sender: No OFD packet to send [02:29:15]OFD Sender: No OFD packet to send [02:29:20]OFD Sender: No OFD packet to send [02:29:25]OFD Sender: No OFD packet to send [02:29:30]OFD Sender: No OFD packet to send [02:29:35]OFD Sender: No OFD packet to send [02:29:40]OFD Sender: No OFD packet to send [02:29:45]OFD Sender: No OFD packet to send [02:29:50]OFD Sender: No OFD packet to send [02:29:55]OFD Sender: No OFD packet to send [02:29:56]accept exits with 9 [02:29:56]New connection [02:29:56]New thread 3067198820 created [02:29:56]Thread 3067055460 joined [02:29:56]Waiting for new connection... [02:29:56] Sock 9.Parse request [02:29:56]Sock 9.Check first char [02:29:56]Sock 9.First char is OK [02:29:56]request: POST /json_proto HTTP/1.0 [02:29:56]Method: POST [02:29:56]URL: /json_proto [02:29:56]Method is POST - this is cgi request [02:29:56]url: /json_proto [02:29:56]query_string will be loaded in cgi processing [02:29:56]execute_cgi json_proto POST (null) [02:29:56]execute_cgi path=json_proto method=POST [02:29:56]POST find Content-Length [02:29:56]Host: 172.17.42.131:8080 [02:29:56]Content-Length: 682 [02:29:56]Content-Type: application/json [02:29:56] [02:29:56]POST finish read [02:29:56]Found Content-Length = 682 [02:29:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210043", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:29:56]execute_script... [02:29: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)210043", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:29:56]POST & json_proto [02:29:56]process_json_proto [02:29:56]json parsed OK: [02:29:56]protocol is kg_v1.0 [02:29:56]action value=close_receipt [02:29:56]process_action close_receipt [02:29:56]cmd_close_receipt [02:29:56]MH_GetDate [02:29:56]Write to MH i2c: F0 00 00 C4 0A BD [02:29:56]Write i2c OK [02:29:56]MH_I2C_Read... [02:29:56]Read from MH i2c: F0 [02:29:56]MH_I2C_Read... [02:29:56]Read from MH i2c: F0 09 00 [02:29:56]MH_I2C_Read... [02:29:56]Read from MH i2c: F0 09 00 C4 0A 00 25 0E 17 67 A0 18 CA 66 5F [02:29:56]GetLastDocTimeStamp 1729564008 [02:29:56]current date 1729564197 [02:29:56]FM_GetShiftState [02:29:56]SAM_PROTO_GetShiftState [02:29:56]wFMCommunicate request_size=4 [02:29:56]MH_SAM_APDU [02:29:56]CAPDU: 80 13 01 00 [02:29:56]Write to MH i2c: E2 08 00 C5 0A 80 13 01 00 00 00 00 00 4C [02:29:56]Write i2c OK [02:29:56]MH_I2C_Read... [02:29:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:29:56]Read from MH i2c: E2 [02:29:56]MH_I2C_Read... [02:29:56]Read from MH i2c: E2 0E 00 [02:29:56]MH_I2C_Read... [02:29:56]Read from MH i2c: E2 0E 00 C5 0A 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 41 [02:29:56]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [02:29:56]wFMCommunicate OK [02:29:56]SAM_PROTO_GetShiftState done [02:29:56]FM_GetShiftState done [02:29:56]opened in 1729556094 [02:29:56]opened+sec_in_day 1729642494 [02:29:56]quantity*price = 100015 [02:29:56]sum+1 = 100017 [02:29:56]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 21 22.10.2024 02:29 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 187992 ФПД: 270684837127299 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T022957&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187992&fm=270684837127299&tin=02508201610067®Number=0000000000100030&sum=100000 [02:29:57]StoreToDocumentArchive [02:29:57]shift 461 fd 187992 [02:29:57]save to /storage/0461/doc_00187992 [02:29:57]save last doc name /storage/0461/doc_00187992 to /storage/kkm_last_doc_name [02:29:57]save OK [02:29:57]Clear old archive folders... [02:29:57]ProcessDocumentItem done err = 0, tmpTLVsize=251 [02:29:57]tlvbuf is 01C005E0 [02:29:57]SAM_PROTO_ClearQueue [02:29:57]wFMCommunicate request_size=4 [02:29:57]MH_SAM_APDU [02:29:57]CAPDU: 80 09 00 00 [02:29:57]Write to MH i2c: E2 08 00 D2 0A 80 09 00 00 00 00 00 00 4E [02:29:57]Write i2c OK [02:29:57]MH_I2C_Read... [02:29:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [02:29:57]Read from MH i2c: E2 [02:29:57]MH_I2C_Read... [02:29:57]Read from MH i2c: E2 03 00 [02:29:57]MH_I2C_Read... [02:29:57]Read from MH i2c: E2 03 00 D2 0A 00 90 00 50 [02:29:57]RAPDU: 90 00 [02:29:57]wFMCommunicate OK [02:29:57]SAM_PROTO_ClearQueue done [02:29:57]KKMCreateOFDPacket [02:29:57]OFDProtocolAddRootSTLVToBuf [02:29:57]FM_MakeSignedData [02:29:57]FM_MakeSignedData [02:29:57]SAM_PROTO_SignData [02:29:57]wFMCommunicate request_size=4 [02:29:57]MH_SAM_APDU [02:29:57]CAPDU: 80 0D 01 02 [02:29:57]Write to MH i2c: E2 08 00 D3 0A 80 0D 01 02 00 00 00 00 56 [02:29:57]Write i2c OK [02:29:57]MH_I2C_Read... [02:29:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [02:29:57]Read from MH i2c: E2 [02:29:57]MH_I2C_Read... [02:29:57]Read from MH i2c: E2 03 00 [02:29:57]MH_I2C_Read... [02:29:57]Read from MH i2c: E2 03 00 D3 0A 00 90 00 51 [02:29:57]RAPDU: 90 00 [02:29:57]wFMCommunicate OK [02:29:57]wFMCommunicate request_size=255 [02:29:57]MH_SAM_APDU [02:29: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 33 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 15 00 00 00 F4 03 04 00 25 0E 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 58 DE 02 00 35 04 06 00 F6 [02:29:57]Write to MH i2c: E2 02 01 D4 0A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 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 15 00 00 00 F4 03 04 00 25 0E 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 58 DE 02 00 35 04 06 00 F6 00 00 85 [02:29:57]Write i2c OK [02:29:57]MH_I2C_Read... [02:29:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:29:57]Read from MH i2c: E2 [02:29:57]MH_I2C_Read... [02:29:57]Read from MH i2c: E2 03 00 [02:29:57]MH_I2C_Read... [02:29:57]Read from MH i2c: E2 03 00 D4 0A 00 90 00 52 [02:29:57]RAPDU: 90 00 [02:29:57]wFMCommunicate OK [02:29:57]wFMCommunicate request_size=10 [02:29:57]MH_SAM_APDU [02:29:57]CAPDU: 80 0D 02 02 05 2F B9 90 24 83 [02:29:57]Write to MH i2c: E2 0D 00 D5 0A 80 0D 02 02 05 00 2F B9 90 24 83 00 00 82 [02:29:57]Write i2c OK [02:29:57]MH_I2C_Read... [02:29:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:29:57]Read from MH i2c: E2 [02:29:57]MH_I2C_Read... [02:29:57]Read from MH i2c: E2 03 00 [02:29:57]MH_I2C_Read... [02:29:57]Read from MH i2c: E2 03 00 D5 0A 00 90 00 53 [02:29:57]RAPDU: 90 00 [02:29:57]wFMCommunicate OK [02:29:57]wFMCommunicate request_size=4 [02:29:57]MH_SAM_APDU [02:29:57]CAPDU: 80 0D 03 02 [02:29:57]Write to MH i2c: E2 08 00 D6 0A 80 0D 03 02 00 00 00 00 5B [02:29:57]Write i2c OK [02:29:57]MH_I2C_Read... [02:29:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [02:29:57]Read from MH i2c: E2 [02:29:57]MH_I2C_Read... [02:29:57]Read from MH i2c: E2 0B 00 [02:29:57]MH_I2C_Read... [02:29:57]Read from MH i2c: E2 0B 00 D6 0A 00 D5 A3 54 64 23 CD 09 E9 90 00 6E [02:29:57]RAPDU: D5 A3 54 64 23 CD 09 E9 90 00 [02:29:57]wFMCommunicate OK [02:29:57]SAM_PROTO_SignData done [02:29:57]FM_MakeSignedData done [02:29:57]CreateOFDProtocolMessage [02:29:57]wFMCommunicate request_size=4 [02:29:57]MH_SAM_APDU [02:29:57]CAPDU: 80 11 00 00 [02:29:57]Write to MH i2c: E2 08 00 D7 0A 80 11 00 00 00 00 00 00 5B [02:29:57]Write i2c OK [02:29:57]MH_I2C_Read... [02:29:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:29:57]Read from MH i2c: E2 [02:29:57]MH_I2C_Read... [02:29:57]Read from MH i2c: E2 17 00 [02:29:57]MH_I2C_Read... [02:29:57]Read from MH i2c: E2 17 00 D7 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 A9 [02:29:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [02:29:57]wFMCommunicate OK [02:29:57]CreateOFDProtocolMessage done [02:29:57]OFDSenderStorePacket 187992 [02:29:57]StoreOFDPacket docnum=187992 [02:29:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 DF 8E 07 01 26 2B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 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 15 00 00 00 F4 03 04 00 25 0E 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 58 DE 02 00 35 04 06 00 F6 2F B9 90 24 83 D5 A3 54 64 23 CD 09 E9 [02:29:57]CheckFolder [02:29:57]dirname=/storage/ofd_packets [02:29:57]CheckFolder done [02:29:57]ProducePacketName [02:29:57]name=ofd_packets/00187992 [02:29:57]NVStorageSaveData ofd_packets/00187992 [02:29:57]File name is /storage/ofd_packets/00187992 [02:29:57]Write 301 bytes [02:29:57]NVStorageSaveData done [02:29:57]OFDSenderStorePacket done [02:29:57]KKMCreateOFDPacket done [02:29:57]NVStorageSaveData kkm_last_timestamp [02:29:57]File name is /storage/kkm_last_timestamp [02:29:57]Write 4 bytes [02:29:57]NVStorageSaveData done [02:29:57]ExternCall_PrintAddStr [02:29:57]wPrintStart [02:29:57]Write to MH i2c: 01 00 00 D8 0A E2 [02:29:57]Write i2c OK [02:29:57]MH_I2C_Read... [02:29:57]Read from MH i2c: 01 [02:29:57]MH_I2C_Read... [02:29:57]Read from MH i2c: 01 07 00 [02:29:57]MH_I2C_Read... [02:29:57]Read from MH i2c: 01 07 00 D8 0A 00 00 00 00 00 FF 0F F7 [02:29:57]RasterBufferAndPrint [02:29:57]line Счет N : (1)210043 [02:29:57]line ИНН: 02508201610067 [02:29:57]line Контрольно-Кассовый Чек [02:29:57]line ПРОДАЖА [02:29:57]line ТРК (МРК, ГНК) : 42 [02:29:57]line Товар: 2710124130 [02:29:57]line Аи-92-К-3 [02:29:57]line 14.950 * 66.90 [02:29:57]line = 1000.16 [02:29:57]line НДС 12% НСП 1% [02:29:57]line > о реализуемом товаре [02:29:57]line ОКРУГЛЕНИЕ: -0.16 [02:29:57]line ИТОГО: 1000.00 [02:29:57]line Внесено: 1000.00 [02:29:57]line СДАЧА: 0.00 [02:29:57]line НСП 1% : 8.85 [02:29:57]line НДС 12% : 106.21 [02:29:57]line Наличными: 1000.00 [02:29:57]line Безнал.: 0.00 [02:29:57]line Место: АЗС № 86 "Партнер Нефть" [02:29:57]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [02:29:57]line СНО: Общий режим [02:29:57]line Чек 21 22.10.2024 02:29 [02:29:57]line Смена: 461 ФФД: 1.0 [02:29:57]line ЗНМ: 0300000155 [02:29:57]line РНМ: 0000000000100030 [02:29:57]line Версия ККМ: 001 [02:29:57]line ФМ: 0000000000965340 [02:29:57]line ФД: 187992 [02:29:57]line ФПД: 270684837127299 [02:29:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T022957&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187992&fm=270684837127299&tin=02508201610067®Number=0000000000100030&sum=100000 [02:29:57]written 0, free lines is 4095 [02:29:58]OFD Sender: Processing packet 187992 [packets to send 1062, broken 1061] [02:29:58]ProducePacketName [02:29:58]name=ofd_packets/00187992 [02:29:58]OFD Sender: To server: pG, [02:29:58]CommunicateWithHost lk.salyk.kg:30040 [02:29:58]ConnectInit lk.salyk.kg [02:29:58]Connected sock=10 [02:29:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 DF 8E 07 01 26 2B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 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 15 00 00 00 F4 03 04 00 25 0E 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 58 DE 02 00 35 04 06 00 F6 2F B9 90 24 83 D5 A3 54 64 23 CD 09 E9 [02:29:58]Write to MH i2c: 01 00 00 03 0B 0E [02:29:58]Write i2c OK [02:29:58]MH_I2C_Read... [02:29:58]Read from MH i2c: 01 [02:29:58]MH_I2C_Read... [02:29:58]Read from MH i2c: 01 07 00 [02:29:58]MH_I2C_Read... [02:29:58]Read from MH i2c: 01 07 00 03 0B 00 00 00 00 00 5C 0C 7D [02:29:58]RasterBufferAndPrint [02:29:58]line [02:29:58]line [02:29:58]line [02:29:58]line [02:29:58]line [02:29:58]written 0, free lines is 3167 [02:29:58]MH_Cut [02:29:58]Write to MH i2c: D1 01 00 0A 0B 01 E7 [02:29:58]Write i2c OK [02:29:58]MH_I2C_Read... [02:29:58]Read from MH i2c: D1 [02:29:58]MH_I2C_Read... [02:29:58]Read from MH i2c: D1 01 00 [02:29:58]MH_I2C_Read... [02:29:58]Read from MH i2c: D1 01 00 0A 0B 00 E6 [02:29:58]Write to MH i2c: 01 00 00 0B 0B 16 [02:29:58]Write i2c OK [02:29:58]MH_I2C_Read... [02:29:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 DB 29 47 00 31 82 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 58 DE 02 00 F4 03 04 00 13 B8 16 67 B6 04 01 00 00 F3 CC 40 27 15 F9 AA C1 [02:29:58]CommunicateWithHost err = 0 [02:29:58]CheckOFDResponse [02:29:58]1017 (14) - 77093643461234 [02:29:58]1041 (16) - 0000000000965340 [02:29:58]1040 (4) - 187992 [02:29:58]1012 (4) - 21.10.2024 20:22 [02:29:58]1206 (1) - 0 [02:29:58]OFD Sender: Remove packet 187992 [02:29:58]ProducePacketName [02:29:58]name=ofd_packets/00187992 [02:29:58]NVStorageDeleteData [02:29:58]OFD Sender: No OFD packet to send [02:29:59]*** Cut start [02:29:59]*** Partial cut [02:29:59]*** CUTSNS_PIN = 1 [02:29:59]*** CUTSNS_PIN = 0 [02:29:59]*** Brake cut motor [02:30:00]Read from MH i2c: 01 [02:30:00]MH_I2C_Read... [02:30:00]*** Stop cut motor [02:30:00]*** Cut end [02:30:00]Read from MH i2c: 01 07 00 [02:30:00]MH_I2C_Read... [02:30:00]Read from MH i2c: 01 07 00 0B 0B 00 00 00 00 00 FF 0F 2B [02:30:00]process_action close_receipt done [02:30:00]requested_data is exist [02:30:00]produce_requested_data [02:30:00]requested_item fm.sn is exist - process it [02:30:00]wFMCommunicate request_size=4 [02:30:00]MH_SAM_APDU [02:30:00]CAPDU: 80 11 00 00 [02:30:00]Write to MH i2c: E2 08 00 0C 0B 80 11 00 00 00 00 00 00 91 [02:30:00]Write i2c OK [02:30:00]MH_I2C_Read... [02:30:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:30:00]Read from MH i2c: E2 [02:30:00]MH_I2C_Read... [02:30:00]Read from MH i2c: E2 17 00 [02:30:00]MH_I2C_Read... [02:30:00]Read from MH i2c: E2 17 00 0C 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 DF [02:30:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [02:30:00]wFMCommunicate OK [02:30:00]requested_item fd.num is exist - process it [02:30:00]SAM_PROTO_GetFieldsCounters [02:30:00]wFMCommunicate request_size=4 [02:30:00]MH_SAM_APDU [02:30:00]CAPDU: 80 13 00 00 [02:30:00]Write to MH i2c: E2 08 00 0D 0B 80 13 00 00 00 00 00 00 94 [02:30:00]Write i2c OK [02:30:00]MH_I2C_Read... [02:30:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [02:30:00]Read from MH i2c: E2 [02:30:00]MH_I2C_Read... [02:30:00]Read from MH i2c: E2 62 00 [02:30:00]MH_I2C_Read... [02:30:00]Read from MH i2c: E2 62 00 0D 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 58 DE 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 15 00 00 00 5E 04 04 00 15 00 00 00 57 04 04 00 16 00 00 00 19 04 04 00 00 00 00 00 90 00 E0 [02:30:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 58 DE 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 15 00 00 00 5E 04 04 00 15 00 00 00 57 04 04 00 16 00 00 00 19 04 04 00 00 00 00 00 90 00 [02:30:00]wFMCommunicate OK [02:30:00]SAM_PROTO_GetFieldsCounters done [02:30:00]requested_item shift.num is exist - process it [02:30:00]requested_item shift.opened is exist - process it [02:30:00]req_shift_opened [02:30:00]FM_GetShiftState [02:30:00]SAM_PROTO_GetShiftState [02:30:00]wFMCommunicate request_size=4 [02:30:00]MH_SAM_APDU [02:30:00]CAPDU: 80 13 01 00 [02:30:00]Write to MH i2c: E2 08 00 0E 0B 80 13 01 00 00 00 00 00 96 [02:30:00]Write i2c OK [02:30:00]MH_I2C_Read... [02:30:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:30:00]Read from MH i2c: E2 [02:30:00]MH_I2C_Read... [02:30:00]Read from MH i2c: E2 0E 00 [02:30:00]MH_I2C_Read... [02:30:00]Read from MH i2c: E2 0E 00 0E 0B 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 8B [02:30:00]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [02:30:00]wFMCommunicate OK [02:30:00]SAM_PROTO_GetShiftState done [02:30:00]FM_GetShiftState done [02:30:00]req_shift_opened done [02:30:00]requested_item shift.open_date is exist - process it [02:30:00]req_shift_open_date [02:30:00]req_shift_open_date done [02:30:00]produce_requested_data done [02:30:00]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187992,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [02:30:00]process_action_free close_receipt [02:30:00]json_value_free [02:30:00]json_value_free done [02:30:00]process_json_proto returns [02:30:00]Send response to host [02:30:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187992,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [02:30:00]free response buf [02:30:00]execute_script done [02:30:00]execute_script returns [02:30:00]free content buf [02:30:00]Sock 9.Close socket [02:30:00]Sock 9.Thread stoped [02:30:03]OFD Sender: No OFD packet to send [02:30:09]OFD Sender: No OFD packet to send [02:30:14]OFD Sender: No OFD packet to send [02:30:19]OFD Sender: No OFD packet to send [02:30:24]OFD Sender: No OFD packet to send [02:30:29]OFD Sender: No OFD packet to send [02:30:34]OFD Sender: No OFD packet to send [02:30:39]OFD Sender: No OFD packet to send [02:30:44]OFD Sender: No OFD packet to send [02:30:49]OFD Sender: No OFD packet to send [02:30:54]OFD Sender: No OFD packet to send [02:30:59]OFD Sender: No OFD packet to send [02:31:04]OFD Sender: No OFD packet to send [02:31:09]OFD Sender: No OFD packet to send [02:31:14]OFD Sender: No OFD packet to send [02:31:19]OFD Sender: No OFD packet to send [02:31:24]OFD Sender: No OFD packet to send [02:31:29]OFD Sender: No OFD packet to send [02:31:34]OFD Sender: No OFD packet to send [02:31:39]OFD Sender: No OFD packet to send [02:31:44]OFD Sender: No OFD packet to send [02:31:49]OFD Sender: No OFD packet to send [02:31:54]OFD Sender: No OFD packet to send [02:31:59]OFD Sender: No OFD packet to send [02:32:04]OFD Sender: No OFD packet to send [02:32:09]OFD Sender: No OFD packet to send [02:32:14]OFD Sender: No OFD packet to send [02:32:19]OFD Sender: No OFD packet to send [02:32:24]OFD Sender: No OFD packet to send [02:32:29]OFD Sender: No OFD packet to send [02:32:34]OFD Sender: No OFD packet to send [02:32:35]accept exits with 8 [02:32:35]New connection [02:32:35]New thread 3067055460 created [02:32:35]Thread 3067198820 joined [02:32:35]Waiting for new connection... [02:32:35] Sock 8.Parse request [02:32:35]Sock 8.Check first char [02:32:35]Sock 8.First char is OK [02:32:35]request: POST /json_proto HTTP/1.0 [02:32:35]Method: POST [02:32:35]URL: /json_proto [02:32:35]Method is POST - this is cgi request [02:32:35]url: /json_proto [02:32:35]query_string will be loaded in cgi processing [02:32:35]execute_cgi json_proto POST (null) [02:32:35]execute_cgi path=json_proto method=POST [02:32:35]POST find Content-Length [02:32:35]Host: 172.17.42.131:8080 [02:32:35]Content-Length: 679 [02:32:35]Content-Type: application/json [02:32:35] [02:32:35]POST finish read [02:32:35]Found Content-Length = 679 [02:32:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210044", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:32:35]execute_script... [02:32:35]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210044", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:32:35]POST & json_proto [02:32:35]process_json_proto [02:32:35]json parsed OK: [02:32:35]protocol is kg_v1.0 [02:32:35]action value=close_receipt [02:32:35]process_action close_receipt [02:32:35]cmd_close_receipt [02:32:35]MH_GetDate [02:32:35]Write to MH i2c: F0 00 00 0F 0B 09 [02:32:35]Write i2c OK [02:32:35]MH_I2C_Read... [02:32:35]Read from MH i2c: F0 [02:32:35]MH_I2C_Read... [02:32:35]Read from MH i2c: F0 09 00 [02:32:35]MH_I2C_Read... [02:32:35]Read from MH i2c: F0 09 00 0F 0B 00 C4 0E 17 67 A0 18 CA 66 4A [02:32:35]GetLastDocTimeStamp 1729564197 [02:32:35]current date 1729564356 [02:32:35]FM_GetShiftState [02:32:35]SAM_PROTO_GetShiftState [02:32:35]wFMCommunicate request_size=4 [02:32:35]MH_SAM_APDU [02:32:35]CAPDU: 80 13 01 00 [02:32:35]Write to MH i2c: E2 08 00 10 0B 80 13 01 00 00 00 00 00 98 [02:32:35]Write i2c OK [02:32:35]MH_I2C_Read... [02:32:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:32:35]Read from MH i2c: E2 [02:32:35]MH_I2C_Read... [02:32:35]Read from MH i2c: E2 0E 00 [02:32:35]MH_I2C_Read... [02:32:35]Read from MH i2c: E2 0E 00 10 0B 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 8D [02:32:35]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [02:32:35]wFMCommunicate OK [02:32:35]SAM_PROTO_GetShiftState done [02:32:35]FM_GetShiftState done [02:32:35]opened in 1729556094 [02:32:35]opened+sec_in_day 1729642494 [02:32:35]quantity*price = 100050 [02:32:35]sum+1 = 100052 [02:32:35]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 22 22.10.2024 02:32 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 187993 ФПД: 54835879470880 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T023236&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187993&fm=54835879470880&tin=02508201610067®Number=0000000000100030&sum=100000 [02:32:36]StoreToDocumentArchive [02:32:36]shift 461 fd 187993 [02:32:36]save to /storage/0461/doc_00187993 [02:32:36]save last doc name /storage/0461/doc_00187993 to /storage/kkm_last_doc_name [02:32:36]save OK [02:32:36]Clear old archive folders... [02:32:36]ProcessDocumentItem done err = 0, tmpTLVsize=248 [02:32:36]tlvbuf is 01B865E0 [02:32:36]SAM_PROTO_ClearQueue [02:32:36]wFMCommunicate request_size=4 [02:32:36]MH_SAM_APDU [02:32:36]CAPDU: 80 09 00 00 [02:32:36]Write to MH i2c: E2 08 00 1D 0B 80 09 00 00 00 00 00 00 9A [02:32:36]Write i2c OK [02:32:36]MH_I2C_Read... [02:32:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [02:32:36]Read from MH i2c: E2 [02:32:36]MH_I2C_Read... [02:32:36]Read from MH i2c: E2 03 00 [02:32:36]MH_I2C_Read... [02:32:36]Read from MH i2c: E2 03 00 1D 0B 00 90 00 9C [02:32:36]RAPDU: 90 00 [02:32:36]wFMCommunicate OK [02:32:36]SAM_PROTO_ClearQueue done [02:32:36]KKMCreateOFDPacket [02:32:36]OFDProtocolAddRootSTLVToBuf [02:32:36]FM_MakeSignedData [02:32:36]FM_MakeSignedData [02:32:36]SAM_PROTO_SignData [02:32:36]wFMCommunicate request_size=4 [02:32:36]MH_SAM_APDU [02:32:36]CAPDU: 80 0D 01 02 [02:32:36]Write to MH i2c: E2 08 00 1E 0B 80 0D 01 02 00 00 00 00 A2 [02:32:36]Write i2c OK [02:32:36]MH_I2C_Read... [02:32:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [02:32:36]Read from MH i2c: E2 [02:32:36]MH_I2C_Read... [02:32:36]Read from MH i2c: E2 03 00 [02:32:36]MH_I2C_Read... [02:32:36]Read from MH i2c: E2 03 00 1E 0B 00 90 00 9D [02:32:36]RAPDU: 90 00 [02:32:36]wFMCommunicate OK [02:32:36]wFMCommunicate request_size=255 [02:32:36]MH_SAM_APDU [02:32:36]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 16 00 00 00 F4 03 04 00 C4 0E 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 59 DE 02 00 35 04 06 00 31 DF 79 1D [02:32:36]Write to MH i2c: E2 02 01 1F 0B 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 16 00 00 00 F4 03 04 00 C4 0E 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 59 DE 02 00 35 04 06 00 31 DF 79 1D 00 00 20 [02:32:36]Write i2c OK [02:32:36]MH_I2C_Read... [02:32:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:32:37]Read from MH i2c: E2 [02:32:37]MH_I2C_Read... [02:32:37]Read from MH i2c: E2 03 00 [02:32:37]MH_I2C_Read... [02:32:37]Read from MH i2c: E2 03 00 1F 0B 00 90 00 9E [02:32:37]RAPDU: 90 00 [02:32:37]wFMCommunicate OK [02:32:37]wFMCommunicate request_size=7 [02:32:37]MH_SAM_APDU [02:32:37]CAPDU: 80 0D 02 02 02 E7 20 [02:32:37]Write to MH i2c: E2 0A 00 20 0B 80 0D 02 02 02 00 E7 20 00 00 B0 [02:32:37]Write i2c OK [02:32:37]MH_I2C_Read... [02:32:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:32:37]Read from MH i2c: E2 [02:32:37]MH_I2C_Read... [02:32:37]Read from MH i2c: E2 03 00 [02:32:37]MH_I2C_Read... [02:32:37]Read from MH i2c: E2 03 00 20 0B 00 90 00 9F [02:32:37]RAPDU: 90 00 [02:32:37]wFMCommunicate OK [02:32:37]wFMCommunicate request_size=4 [02:32:37]MH_SAM_APDU [02:32:37]CAPDU: 80 0D 03 02 [02:32:37]Write to MH i2c: E2 08 00 21 0B 80 0D 03 02 00 00 00 00 A7 [02:32:37]Write i2c OK [02:32:37]MH_I2C_Read... [02:32:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [02:32:37]Read from MH i2c: E2 [02:32:37]MH_I2C_Read... [02:32:37]Read from MH i2c: E2 0B 00 [02:32:37]MH_I2C_Read... [02:32:37]Read from MH i2c: E2 0B 00 21 0B 00 80 6F 20 34 19 03 63 A1 90 00 0B [02:32:37]RAPDU: 80 6F 20 34 19 03 63 A1 90 00 [02:32:37]wFMCommunicate OK [02:32:37]SAM_PROTO_SignData done [02:32:37]FM_MakeSignedData done [02:32:37]CreateOFDProtocolMessage [02:32:37]wFMCommunicate request_size=4 [02:32:37]MH_SAM_APDU [02:32:37]CAPDU: 80 11 00 00 [02:32:37]Write to MH i2c: E2 08 00 22 0B 80 11 00 00 00 00 00 00 A7 [02:32:37]Write i2c OK [02:32:37]MH_I2C_Read... [02:32:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:32:37]Read from MH i2c: E2 [02:32:37]MH_I2C_Read... [02:32:37]Read from MH i2c: E2 17 00 [02:32:37]MH_I2C_Read... [02:32:37]Read from MH i2c: E2 17 00 22 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 F5 [02:32:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [02:32:37]wFMCommunicate OK [02:32:37]CreateOFDProtocolMessage done [02:32:37]OFDSenderStorePacket 187993 [02:32:37]StoreOFDPacket docnum=187993 [02:32:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 91 E4 04 01 C1 71 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 C4 0E 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 59 DE 02 00 35 04 06 00 31 DF 79 1D E7 20 80 6F 20 34 19 03 63 A1 [02:32:37]CheckFolder [02:32:37]dirname=/storage/ofd_packets [02:32:37]CheckFolder done [02:32:37]ProducePacketName [02:32:37]name=ofd_packets/00187993 [02:32:37]NVStorageSaveData ofd_packets/00187993 [02:32:37]File name is /storage/ofd_packets/00187993 [02:32:37]Write 298 bytes [02:32:37]NVStorageSaveData done [02:32:37]OFDSenderStorePacket done [02:32:37]KKMCreateOFDPacket done [02:32:37]NVStorageSaveData kkm_last_timestamp [02:32:37]File name is /storage/kkm_last_timestamp [02:32:37]Write 4 bytes [02:32:37]NVStorageSaveData done [02:32:37]ExternCall_PrintAddStr [02:32:37]wPrintStart [02:32:37]Write to MH i2c: 01 00 00 23 0B 2E [02:32:37]Write i2c OK [02:32:37]MH_I2C_Read... [02:32:37]Read from MH i2c: 01 [02:32:37]MH_I2C_Read... [02:32:37]Read from MH i2c: 01 07 00 [02:32:37]MH_I2C_Read... [02:32:37]Read from MH i2c: 01 07 00 23 0B 00 00 00 00 00 FF 0F 43 [02:32:37]RasterBufferAndPrint [02:32:37]line Счет N : (1)210044 [02:32:37]line ИНН: 02508201610067 [02:32:37]line Контрольно-Кассовый Чек [02:32:37]line ПРОДАЖА [02:32:37]line ТРК (МРК, ГНК) : 51 [02:32:37]line Товар: 2710194210 [02:32:37]line ДТ-К-5 [02:32:37]line 13.130 * 76.20 [02:32:37]line = 1000.51 [02:32:37]line НДС 12% НСП 1% [02:32:37]line > о реализуемом товаре [02:32:37]line ОКРУГЛЕНИЕ: -0.51 [02:32:37]line ИТОГО: 1000.00 [02:32:37]line Внесено: 1000.00 [02:32:37]line СДАЧА: 0.00 [02:32:37]line НСП 1% : 8.85 [02:32:37]line НДС 12% : 106.25 [02:32:37]line Наличными: 1000.00 [02:32:37]line Безнал.: 0.00 [02:32:37]line Место: АЗС № 86 "Партнер Нефть" [02:32:37]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [02:32:37]line СНО: Общий режим [02:32:37]line Чек 22 22.10.2024 02:32 [02:32:37]line Смена: 461 ФФД: 1.0 [02:32:37]line ЗНМ: 0300000155 [02:32:37]line РНМ: 0000000000100030 [02:32:37]line Версия ККМ: 001 [02:32:37]line ФМ: 0000000000965340 [02:32:37]line ФД: 187993 [02:32:37]line ФПД: 54835879470880 [02:32:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T023236&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187993&fm=54835879470880&tin=02508201610067®Number=0000000000100030&sum=100000 [02:32:37]written 0, free lines is 4095 [02:32:37]OFD Sender: Processing packet 187993 [packets to send 1062, broken 1061] [02:32:37]ProducePacketName [02:32:37]name=ofd_packets/00187993 [02:32:37]OFD Sender: To server: pG, [02:32:37]CommunicateWithHost lk.salyk.kg:30040 [02:32:37]ConnectInit lk.salyk.kg [02:32:37]Connected sock=10 [02:32:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 91 E4 04 01 C1 71 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 C4 0E 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 59 DE 02 00 35 04 06 00 31 DF 79 1D E7 20 80 6F 20 34 19 03 63 A1 [02:32:37]Write to MH i2c: 01 00 00 4E 0B 59 [02:32:37]Write i2c OK [02:32:37]MH_I2C_Read... [02:32:37]Read from MH i2c: 01 [02:32:37]MH_I2C_Read... [02:32:37]Read from MH i2c: 01 07 00 [02:32:37]MH_I2C_Read... [02:32:37]Read from MH i2c: 01 07 00 4E 0B 00 00 00 00 00 5E 0C CA [02:32:37]RasterBufferAndPrint [02:32:37]line [02:32:37]line [02:32:37]line [02:32:37]line [02:32:37]line [02:32:37]written 0, free lines is 3169 [02:32:37]MH_Cut [02:32:37]Write to MH i2c: D1 01 00 55 0B 01 32 [02:32:37]Write i2c OK [02:32:37]MH_I2C_Read... [02:32:37]Read from MH i2c: D1 [02:32:37]MH_I2C_Read... [02:32:37]Read from MH i2c: D1 01 00 [02:32:37]MH_I2C_Read... [02:32:37]Read from MH i2c: D1 01 00 55 0B 00 31 [02:32:37]Write to MH i2c: 01 00 00 56 0B 61 [02:32:37]Write i2c OK [02:32:37]MH_I2C_Read... [02:32:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 D9 0F 47 00 56 1A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 59 DE 02 00 F4 03 04 00 B3 B8 16 67 B6 04 01 00 00 B7 9F 73 98 2A 2B FD E2 [02:32:37]CommunicateWithHost err = 0 [02:32:37]CheckOFDResponse [02:32:37]1017 (14) - 77093643461234 [02:32:37]1041 (16) - 0000000000965340 [02:32:37]1040 (4) - 187993 [02:32:37]1012 (4) - 21.10.2024 20:25 [02:32:37]1206 (1) - 0 [02:32:37]OFD Sender: Remove packet 187993 [02:32:37]ProducePacketName [02:32:37]name=ofd_packets/00187993 [02:32:37]NVStorageDeleteData [02:32:38]OFD Sender: No OFD packet to send [02:32:39]*** Cut start [02:32:39]*** Partial cut [02:32:39]*** CUTSNS_PIN = 1 [02:32:39]*** CUTSNS_PIN = 0 [02:32:39]*** Brake cut motor [02:32:39]Read from MH i2c: 01 [02:32:39]MH_I2C_Read... [02:32:39]*** Stop cut motor [02:32:39]*** Cut end [02:32:39]Read from MH i2c: 01 07 00 [02:32:39]MH_I2C_Read... [02:32:39]Read from MH i2c: 01 07 00 56 0B 00 00 00 00 00 FF 0F 76 [02:32:39]process_action close_receipt done [02:32:39]requested_data is exist [02:32:39]produce_requested_data [02:32:39]requested_item fm.sn is exist - process it [02:32:39]wFMCommunicate request_size=4 [02:32:39]MH_SAM_APDU [02:32:39]CAPDU: 80 11 00 00 [02:32:39]Write to MH i2c: E2 08 00 57 0B 80 11 00 00 00 00 00 00 DC [02:32:39]Write i2c OK [02:32:39]MH_I2C_Read... [02:32:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:32:39]Read from MH i2c: E2 [02:32:39]MH_I2C_Read... [02:32:39]Read from MH i2c: E2 17 00 [02:32:39]MH_I2C_Read... [02:32:39]Read from MH i2c: E2 17 00 57 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 2A [02:32:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [02:32:39]wFMCommunicate OK [02:32:39]requested_item fd.num is exist - process it [02:32:39]SAM_PROTO_GetFieldsCounters [02:32:39]wFMCommunicate request_size=4 [02:32:39]MH_SAM_APDU [02:32:39]CAPDU: 80 13 00 00 [02:32:39]Write to MH i2c: E2 08 00 58 0B 80 13 00 00 00 00 00 00 DF [02:32:39]Write i2c OK [02:32:39]MH_I2C_Read... [02:32:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [02:32:39]Read from MH i2c: E2 [02:32:39]MH_I2C_Read... [02:32:39]Read from MH i2c: E2 62 00 [02:32:39]MH_I2C_Read... [02:32:39]Read from MH i2c: E2 62 00 58 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 59 DE 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 16 00 00 00 5E 04 04 00 16 00 00 00 57 04 04 00 17 00 00 00 19 04 04 00 00 00 00 00 90 00 2F [02:32:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 59 DE 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 16 00 00 00 5E 04 04 00 16 00 00 00 57 04 04 00 17 00 00 00 19 04 04 00 00 00 00 00 90 00 [02:32:39]wFMCommunicate OK [02:32:39]SAM_PROTO_GetFieldsCounters done [02:32:39]requested_item shift.num is exist - process it [02:32:39]requested_item shift.opened is exist - process it [02:32:39]req_shift_opened [02:32:39]FM_GetShiftState [02:32:39]SAM_PROTO_GetShiftState [02:32:39]wFMCommunicate request_size=4 [02:32:39]MH_SAM_APDU [02:32:39]CAPDU: 80 13 01 00 [02:32:39]Write to MH i2c: E2 08 00 59 0B 80 13 01 00 00 00 00 00 E1 [02:32:39]Write i2c OK [02:32:39]MH_I2C_Read... [02:32:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:32:39]Read from MH i2c: E2 [02:32:39]MH_I2C_Read... [02:32:39]Read from MH i2c: E2 0E 00 [02:32:39]MH_I2C_Read... [02:32:39]Read from MH i2c: E2 0E 00 59 0B 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 D6 [02:32:39]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [02:32:39]wFMCommunicate OK [02:32:39]SAM_PROTO_GetShiftState done [02:32:39]FM_GetShiftState done [02:32:39]req_shift_opened done [02:32:39]requested_item shift.open_date is exist - process it [02:32:39]req_shift_open_date [02:32:39]req_shift_open_date done [02:32:39]produce_requested_data done [02:32:39]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187993,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [02:32:39]process_action_free close_receipt [02:32:39]json_value_free [02:32:39]json_value_free done [02:32:39]process_json_proto returns [02:32:39]Send response to host [02:32:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187993,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [02:32:39]free response buf [02:32:39]execute_script done [02:32:39]execute_script returns [02:32:39]free content buf [02:32:39]Sock 8.Close socket [02:32:39]Sock 8.Thread stoped [02:32:43]OFD Sender: No OFD packet to send [02:32:48]OFD Sender: No OFD packet to send [02:32:53]OFD Sender: No OFD packet to send [02:32:58]OFD Sender: No OFD packet to send [02:33:03]OFD Sender: No OFD packet to send [02:33:08]OFD Sender: No OFD packet to send [02:33:13]OFD Sender: No OFD packet to send [02:33:18]OFD Sender: No OFD packet to send [02:33:23]OFD Sender: No OFD packet to send [02:33:28]OFD Sender: No OFD packet to send [02:33:33]OFD Sender: No OFD packet to send [02:33:38]OFD Sender: No OFD packet to send [02:33:43]OFD Sender: No OFD packet to send [02:33:48]OFD Sender: No OFD packet to send [02:33:53]OFD Sender: No OFD packet to send [02:33:58]OFD Sender: No OFD packet to send [02:34:03]OFD Sender: No OFD packet to send [02:34:08]OFD Sender: No OFD packet to send [02:34:13]OFD Sender: No OFD packet to send [02:34:18]OFD Sender: No OFD packet to send [02:34:23]OFD Sender: No OFD packet to send [02:34:28]OFD Sender: No OFD packet to send [02:34:33]OFD Sender: No OFD packet to send [02:34:38]OFD Sender: No OFD packet to send [02:34:43]OFD Sender: No OFD packet to send [02:34:48]OFD Sender: No OFD packet to send [02:34:54]OFD Sender: No OFD packet to send [02:34:59]OFD Sender: No OFD packet to send [02:35:04]OFD Sender: No OFD packet to send [02:35:09]OFD Sender: No OFD packet to send [02:35:14]OFD Sender: No OFD packet to send [02:35:19]OFD Sender: No OFD packet to send [02:35:24]OFD Sender: No OFD packet to send [02:35:29]OFD Sender: No OFD packet to send [02:35:34]OFD Sender: No OFD packet to send [02:35:39]OFD Sender: No OFD packet to send [02:35:44]OFD Sender: No OFD packet to send [02:35:49]OFD Sender: No OFD packet to send [02:35:54]OFD Sender: No OFD packet to send [02:35:59]OFD Sender: No OFD packet to send [02:36:04]OFD Sender: No OFD packet to send [02:36:09]OFD Sender: No OFD packet to send [02:36:14]OFD Sender: No OFD packet to send [02:36:19]OFD Sender: No OFD packet to send [02:36:24]OFD Sender: No OFD packet to send [02:36:29]OFD Sender: No OFD packet to send [02:36:34]OFD Sender: No OFD packet to send [02:36:39]OFD Sender: No OFD packet to send [02:36:44]OFD Sender: No OFD packet to send [02:36:49]OFD Sender: No OFD packet to send [02:36:54]OFD Sender: No OFD packet to send [02:36:59]OFD Sender: No OFD packet to send [02:37:04]OFD Sender: No OFD packet to send [02:37:09]OFD Sender: No OFD packet to send [02:37:14]OFD Sender: No OFD packet to send [02:37:19]OFD Sender: No OFD packet to send [02:37:24]OFD Sender: No OFD packet to send [02:37:29]OFD Sender: No OFD packet to send [02:37:34]OFD Sender: No OFD packet to send [02:37:39]OFD Sender: No OFD packet to send [02:37:44]OFD Sender: No OFD packet to send [02:37:49]OFD Sender: No OFD packet to send [02:37:54]OFD Sender: No OFD packet to send [02:37:59]OFD Sender: No OFD packet to send [02:38:04]OFD Sender: No OFD packet to send [02:38:09]OFD Sender: No OFD packet to send [02:38:14]OFD Sender: No OFD packet to send [02:38:19]OFD Sender: No OFD packet to send [02:38:24]OFD Sender: No OFD packet to send [02:38:29]OFD Sender: No OFD packet to send [02:38:34]OFD Sender: No OFD packet to send [02:38:40]OFD Sender: No OFD packet to send [02:38:45]OFD Sender: No OFD packet to send [02:38:50]OFD Sender: No OFD packet to send [02:38:55]OFD Sender: No OFD packet to send [02:39:00]OFD Sender: No OFD packet to send [02:39:05]OFD Sender: No OFD packet to send [02:39:10]OFD Sender: No OFD packet to send [02:39:15]OFD Sender: No OFD packet to send [02:39:20]OFD Sender: No OFD packet to send [02:39:25]OFD Sender: No OFD packet to send [02:39:30]OFD Sender: No OFD packet to send [02:39:35]OFD Sender: No OFD packet to send [02:39:40]OFD Sender: No OFD packet to send [02:39:45]OFD Sender: No OFD packet to send [02:39:50]OFD Sender: No OFD packet to send [02:39:55]OFD Sender: No OFD packet to send [02:40:00]OFD Sender: No OFD packet to send [02:40:05]OFD Sender: No OFD packet to send [02:40:10]OFD Sender: No OFD packet to send [02:40:15]OFD Sender: No OFD packet to send [02:40:20]OFD Sender: No OFD packet to send [02:40:25]OFD Sender: No OFD packet to send [02:40:30]OFD Sender: No OFD packet to send [02:40:35]OFD Sender: No OFD packet to send [02:40:40]OFD Sender: No OFD packet to send [02:40:45]OFD Sender: No OFD packet to send [02:40:50]OFD Sender: No OFD packet to send [02:40:55]OFD Sender: No OFD packet to send [02:41:00]OFD Sender: No OFD packet to send [02:41:05]OFD Sender: No OFD packet to send [02:41:10]OFD Sender: No OFD packet to send [02:41:15]OFD Sender: No OFD packet to send [02:41:20]OFD Sender: No OFD packet to send [02:41:25]OFD Sender: No OFD packet to send [02:41:30]OFD Sender: No OFD packet to send [02:41:35]OFD Sender: No OFD packet to send [02:41:40]OFD Sender: No OFD packet to send [02:41:45]OFD Sender: No OFD packet to send [02:41:50]OFD Sender: No OFD packet to send [02:41:55]OFD Sender: No OFD packet to send [02:42:00]OFD Sender: No OFD packet to send [02:42:05]OFD Sender: No OFD packet to send [02:42:10]OFD Sender: No OFD packet to send [02:42:15]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:11]OFD Sender: No OFD packet to send [02:44:16]OFD Sender: No OFD packet to send [02:44:21]OFD Sender: No OFD packet to send [02:44:26]OFD Sender: No OFD packet to send [02:44:31]OFD Sender: No OFD packet to send [02:44:36]OFD Sender: No OFD packet to send [02:44:41]OFD Sender: No OFD packet to send [02:44:46]OFD Sender: No OFD packet to send [02:44:51]OFD Sender: No OFD packet to send [02:44:56]OFD Sender: No OFD packet to send [02:45:01]OFD Sender: No OFD packet to send [02:45:06]OFD Sender: No OFD packet to send [02:45:11]OFD Sender: No OFD packet to send [02:45:16]OFD Sender: No OFD packet to send [02:45:21]OFD Sender: No OFD packet to send [02:45:26]OFD Sender: No OFD packet to send [02:45:31]OFD Sender: No OFD packet to send [02:45:36]OFD Sender: No OFD packet to send [02:45:41]OFD Sender: No OFD packet to send [02:45:46]OFD Sender: No OFD packet to send [02:45:51]OFD Sender: No OFD packet to send [02:45:56]OFD Sender: No OFD packet to send [02:46:01]OFD Sender: No OFD packet to send [02:46:07]OFD Sender: No OFD packet to send [02:46:12]OFD Sender: No OFD packet to send [02:46:17]OFD Sender: No OFD packet to send [02:46:22]OFD Sender: No OFD packet to send [02:46:27]OFD Sender: No OFD packet to send [02:46:32]OFD Sender: No OFD packet to send [02:46:37]OFD Sender: No OFD packet to send [02:46:42]OFD Sender: No OFD packet to send [02:46:47]OFD Sender: No OFD packet to send [02:46:52]OFD Sender: No OFD packet to send [02:46:57]OFD Sender: No OFD packet to send [02:47:02]OFD Sender: No OFD packet to send [02:47:07]OFD Sender: No OFD packet to send [02:47:12]OFD Sender: No OFD packet to send [02:47:17]OFD Sender: No OFD packet to send [02:47:22]OFD Sender: No OFD packet to send [02:47:27]OFD Sender: No OFD packet to send [02:47:32]OFD Sender: No OFD packet to send [02:47:37]OFD Sender: No OFD packet to send [02:47:42]OFD Sender: No OFD packet to send [02:47:47]OFD Sender: No OFD packet to send [02:47:52]OFD Sender: No OFD packet to send [02:47:57]OFD Sender: No OFD packet to send [02:48:02]OFD Sender: No OFD packet to send [02:48:07]OFD Sender: No OFD packet to send [02:48:12]OFD Sender: No OFD packet to send [02:48:17]OFD Sender: No OFD packet to send [02:48:22]OFD Sender: No OFD packet to send [02:48:27]OFD Sender: No OFD packet to send [02:48:32]OFD Sender: No OFD packet to send [02:48:37]OFD Sender: No OFD packet to send [02:48:42]OFD Sender: No OFD packet to send [02:48:47]OFD Sender: No OFD packet to send [02:48:52]OFD Sender: No OFD packet to send [02:48:57]OFD Sender: No OFD packet to send [02:49:02]OFD Sender: No OFD packet to send [02:49:07]OFD Sender: No OFD packet to send [02:49:12]OFD Sender: No OFD packet to send [02:49:17]OFD Sender: No OFD packet to send [02:49:22]OFD Sender: No OFD packet to send [02:49:27]OFD Sender: No OFD packet to send [02:49:32]OFD Sender: No OFD packet to send [02:49:37]OFD Sender: No OFD packet to send [02:49:42]OFD Sender: No OFD packet to send [02:49:47]OFD Sender: No OFD packet to send [02:49:51]accept exits with 9 [02:49:51]New connection [02:49:51]New thread 3067198820 created [02:49:51]Thread 3067055460 joined [02:49:51]Waiting for new connection... [02:49:51] Sock 9.Parse request [02:49:51]Sock 9.Check first char [02:49:51]Sock 9.First char is OK [02:49:51]request: POST /json_proto HTTP/1.0 [02:49:51]Method: POST [02:49:51]URL: /json_proto [02:49:51]Method is POST - this is cgi request [02:49:51]url: /json_proto [02:49:51]query_string will be loaded in cgi processing [02:49:51]execute_cgi json_proto POST (null) [02:49:51]execute_cgi path=json_proto method=POST [02:49:51]POST find Content-Length [02:49:51]Host: 172.17.42.131:8080 [02:49:51]Content-Length: 677 [02:49:51]Content-Type: application/json [02:49:51] [02:49:51]POST finish read [02:49:51]Found Content-Length = 677 [02:49:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210045", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "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" ] } } [02:49:51]execute_script... [02:49: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)210045", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "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" ] } } [02:49:51]POST & json_proto [02:49:51]process_json_proto [02:49:51]json parsed OK: [02:49:51]protocol is kg_v1.0 [02:49:51]action value=close_receipt [02:49:51]process_action close_receipt [02:49:51]cmd_close_receipt [02:49:51]MH_GetDate [02:49:51]Write to MH i2c: F0 00 00 5A 0B 54 [02:49:51]Write i2c OK [02:49:51]MH_I2C_Read... [02:49:51]Read from MH i2c: F0 [02:49:51]MH_I2C_Read... [02:49:51]Read from MH i2c: F0 09 00 [02:49:51]MH_I2C_Read... [02:49:51]Read from MH i2c: F0 09 00 5A 0B 00 D0 12 17 67 A0 18 CA 66 A5 [02:49:51]GetLastDocTimeStamp 1729564356 [02:49:51]current date 1729565392 [02:49:51]FM_GetShiftState [02:49:51]SAM_PROTO_GetShiftState [02:49:51]wFMCommunicate request_size=4 [02:49:51]MH_SAM_APDU [02:49:51]CAPDU: 80 13 01 00 [02:49:51]Write to MH i2c: E2 08 00 5B 0B 80 13 01 00 00 00 00 00 E3 [02:49:51]Write i2c OK [02:49:51]MH_I2C_Read... [02:49:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:49:51]Read from MH i2c: E2 [02:49:51]MH_I2C_Read... [02:49:51]Read from MH i2c: E2 0E 00 [02:49:51]MH_I2C_Read... [02:49:51]Read from MH i2c: E2 0E 00 5B 0B 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 D8 [02:49:51]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [02:49:51]wFMCommunicate OK [02:49:51]SAM_PROTO_GetShiftState done [02:49:51]FM_GetShiftState done [02:49:51]opened in 1729556094 [02:49:51]opened+sec_in_day 1729642494 [02:49:51]quantity*price = 60009 [02:49:51]sum+1 = 60010 [02:49:51]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 23 22.10.2024 02:49 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 187994 ФПД: 230422506327920 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T024952&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187994&fm=230422506327920&tin=02508201610067®Number=0000000000100030&sum=60000 [02:49:52]StoreToDocumentArchive [02:49:52]shift 461 fd 187994 [02:49:52]save to /storage/0461/doc_00187994 [02:49:52]save last doc name /storage/0461/doc_00187994 to /storage/kkm_last_doc_name [02:49:52]save OK [02:49:52]Clear old archive folders... [02:49:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [02:49:52]tlvbuf is 01BBEC40 [02:49:52]SAM_PROTO_ClearQueue [02:49:52]wFMCommunicate request_size=4 [02:49:52]MH_SAM_APDU [02:49:52]CAPDU: 80 09 00 00 [02:49:52]Write to MH i2c: E2 08 00 68 0B 80 09 00 00 00 00 00 00 E5 [02:49:52]Write i2c OK [02:49:52]MH_I2C_Read... [02:49:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [02:49:52]Read from MH i2c: E2 [02:49:52]MH_I2C_Read... [02:49:52]Read from MH i2c: E2 03 00 [02:49:52]MH_I2C_Read... [02:49:52]Read from MH i2c: E2 03 00 68 0B 00 90 00 E7 [02:49:52]RAPDU: 90 00 [02:49:52]wFMCommunicate OK [02:49:52]SAM_PROTO_ClearQueue done [02:49:52]KKMCreateOFDPacket [02:49:52]OFDProtocolAddRootSTLVToBuf [02:49:52]FM_MakeSignedData [02:49:52]FM_MakeSignedData [02:49:52]SAM_PROTO_SignData [02:49:52]wFMCommunicate request_size=4 [02:49:52]MH_SAM_APDU [02:49:52]CAPDU: 80 0D 01 02 [02:49:52]Write to MH i2c: E2 08 00 69 0B 80 0D 01 02 00 00 00 00 ED [02:49:52]Write i2c OK [02:49:52]MH_I2C_Read... [02:49:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [02:49:52]Read from MH i2c: E2 [02:49:52]MH_I2C_Read... [02:49:52]Read from MH i2c: E2 03 00 [02:49:52]MH_I2C_Read... [02:49:52]Read from MH i2c: E2 03 00 69 0B 00 90 00 E8 [02:49:52]RAPDU: 90 00 [02:49:52]wFMCommunicate OK [02:49:52]wFMCommunicate request_size=255 [02:49:52]MH_SAM_APDU [02:49: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 33 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 17 00 00 00 F4 03 04 00 D0 12 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 5A DE 02 00 35 04 06 00 D1 [02:49:52]Write to MH i2c: E2 02 01 6A 0B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 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 17 00 00 00 F4 03 04 00 D0 12 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 5A DE 02 00 35 04 06 00 D1 00 00 8D [02:49:52]Write i2c OK [02:49:52]MH_I2C_Read... [02:49:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:49:52]Read from MH i2c: E2 [02:49:52]MH_I2C_Read... [02:49:52]Read from MH i2c: E2 03 00 [02:49:52]MH_I2C_Read... [02:49:52]Read from MH i2c: E2 03 00 6A 0B 00 90 00 E9 [02:49:52]RAPDU: 90 00 [02:49:52]wFMCommunicate OK [02:49:52]wFMCommunicate request_size=10 [02:49:52]MH_SAM_APDU [02:49:52]CAPDU: 80 0D 02 02 05 91 6B A3 4F 70 [02:49:52]Write to MH i2c: E2 0D 00 6B 0B 80 0D 02 02 05 00 91 6B A3 4F 70 00 00 58 [02:49:52]Write i2c OK [02:49:52]MH_I2C_Read... [02:49:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:49:52]Read from MH i2c: E2 [02:49:52]MH_I2C_Read... [02:49:52]Read from MH i2c: E2 03 00 [02:49:52]MH_I2C_Read... [02:49:52]Read from MH i2c: E2 03 00 6B 0B 00 90 00 EA [02:49:52]RAPDU: 90 00 [02:49:52]wFMCommunicate OK [02:49:52]wFMCommunicate request_size=4 [02:49:52]MH_SAM_APDU [02:49:52]CAPDU: 80 0D 03 02 [02:49:52]Write to MH i2c: E2 08 00 6C 0B 80 0D 03 02 00 00 00 00 F2 [02:49:52]Write i2c OK [02:49:52]MH_I2C_Read... [02:49:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [02:49:52]Read from MH i2c: E2 [02:49:52]MH_I2C_Read... [02:49:52]Read from MH i2c: E2 0B 00 [02:49:52]MH_I2C_Read... [02:49:52]Read from MH i2c: E2 0B 00 6C 0B 00 7B D6 F1 DE 51 19 8A 4A 90 00 51 [02:49:52]RAPDU: 7B D6 F1 DE 51 19 8A 4A 90 00 [02:49:52]wFMCommunicate OK [02:49:52]SAM_PROTO_SignData done [02:49:52]FM_MakeSignedData done [02:49:52]CreateOFDProtocolMessage [02:49:52]wFMCommunicate request_size=4 [02:49:52]MH_SAM_APDU [02:49:52]CAPDU: 80 11 00 00 [02:49:52]Write to MH i2c: E2 08 00 6D 0B 80 11 00 00 00 00 00 00 F2 [02:49:52]Write i2c OK [02:49:52]MH_I2C_Read... [02:49:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:49:52]Read from MH i2c: E2 [02:49:52]MH_I2C_Read... [02:49:52]Read from MH i2c: E2 17 00 [02:49:52]MH_I2C_Read... [02:49:52]Read from MH i2c: E2 17 00 6D 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 40 [02:49:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [02:49:52]wFMCommunicate OK [02:49:52]CreateOFDProtocolMessage done [02:49:52]OFDSenderStorePacket 187994 [02:49:52]StoreOFDPacket docnum=187994 [02:49:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 39 58 07 01 A8 39 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 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 17 00 00 00 F4 03 04 00 D0 12 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 5A DE 02 00 35 04 06 00 D1 91 6B A3 4F 70 7B D6 F1 DE 51 19 8A 4A [02:49:52]CheckFolder [02:49:52]dirname=/storage/ofd_packets [02:49:52]CheckFolder done [02:49:52]ProducePacketName [02:49:52]name=ofd_packets/00187994 [02:49:52]NVStorageSaveData ofd_packets/00187994 [02:49:52]File name is /storage/ofd_packets/00187994 [02:49:52]Write 301 bytes [02:49:52]NVStorageSaveData done [02:49:52]OFDSenderStorePacket done [02:49:52]KKMCreateOFDPacket done [02:49:52]NVStorageSaveData kkm_last_timestamp [02:49:52]File name is /storage/kkm_last_timestamp [02:49:52]Write 4 bytes [02:49:52]NVStorageSaveData done [02:49:52]ExternCall_PrintAddStr [02:49:52]wPrintStart [02:49:52]Write to MH i2c: 01 00 00 6E 0B 79 [02:49:52]Write i2c OK [02:49:52]MH_I2C_Read... [02:49:52]Read from MH i2c: 01 [02:49:52]MH_I2C_Read... [02:49:52]Read from MH i2c: 01 07 00 [02:49:52]MH_I2C_Read... [02:49:52]Read from MH i2c: 01 07 00 6E 0B 00 00 00 00 00 FF 0F 8E [02:49:52]RasterBufferAndPrint [02:49:52]line Счет N : (1)210045 [02:49:52]line ИНН: 02508201610067 [02:49:52]line Контрольно-Кассовый Чек [02:49:52]line ПРОДАЖА [02:49:52]line ТРК (МРК, ГНК) : 42 [02:49:52]line Товар: 2710124130 [02:49:52]line Аи-92-К-3 [02:49:52]line 8.970 * 66.90 [02:49:52]line = 600.09 [02:49:52]line НДС 12% НСП 1% [02:49:52]line > о реализуемом товаре [02:49:52]line ОКРУГЛЕНИЕ: -0.09 [02:49:52]line ИТОГО: 600.00 [02:49:52]line Внесено: 600.00 [02:49:52]line СДАЧА: 0.00 [02:49:52]line НСП 1% : 5.31 [02:49:52]line НДС 12% : 63.73 [02:49:52]line Наличными: 600.00 [02:49:52]line Безнал.: 0.00 [02:49:52]line Место: АЗС № 86 "Партнер Нефть" [02:49:52]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [02:49:52]line СНО: Общий режим [02:49:52]line Чек 23 22.10.2024 02:49 [02:49:52]line Смена: 461 ФФД: 1.0 [02:49:52]line ЗНМ: 0300000155 [02:49:52]line РНМ: 0000000000100030 [02:49:52]line Версия ККМ: 001 [02:49:52]line ФМ: 0000000000965340 [02:49:52]line ФД: 187994 [02:49:52]line ФПД: 230422506327920 [02:49:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T024952&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187994&fm=230422506327920&tin=02508201610067®Number=0000000000100030&sum=60000 [02:49:52]written 0, free lines is 4095 [02:49:52]OFD Sender: Processing packet 187994 [packets to send 1062, broken 1061] [02:49:52]ProducePacketName [02:49:52]name=ofd_packets/00187994 [02:49:52]OFD Sender: To server: pG, [02:49:52]CommunicateWithHost lk.salyk.kg:30040 [02:49:52]ConnectInit lk.salyk.kg [02:49:53]Connected sock=11 [02:49:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 39 58 07 01 A8 39 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 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 17 00 00 00 F4 03 04 00 D0 12 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 5A DE 02 00 35 04 06 00 D1 91 6B A3 4F 70 7B D6 F1 DE 51 19 8A 4A [02:49:53]Write to MH i2c: 01 00 00 99 0B A4 [02:49:53]Write i2c OK [02:49:53]MH_I2C_Read... [02:49:53]Read from MH i2c: 01 [02:49:53]MH_I2C_Read... [02:49:53]Read from MH i2c: 01 07 00 [02:49:53]MH_I2C_Read... [02:49:53]Read from MH i2c: 01 07 00 99 0B 00 00 00 00 00 58 0C 0F [02:49:53]RasterBufferAndPrint [02:49:53]line [02:49:53]line [02:49:53]line [02:49:53]line [02:49:53]line [02:49:53]written 0, free lines is 3163 [02:49:53]MH_Cut [02:49:53]Write to MH i2c: D1 01 00 A0 0B 01 7D [02:49:53]Write i2c OK [02:49:53]MH_I2C_Read... [02:49:53]Read from MH i2c: D1 [02:49:53]MH_I2C_Read... [02:49:53]Read from MH i2c: D1 01 00 [02:49:53]MH_I2C_Read... [02:49:53]Read from MH i2c: D1 01 00 A0 0B 00 7C [02:49:53]Write to MH i2c: 01 00 00 A1 0B AC [02:49:53]Write i2c OK [02:49:53]MH_I2C_Read... [02:49:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 51 D1 47 00 0F 9C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 5A DE 02 00 F4 03 04 00 BE BC 16 67 B6 04 01 00 00 B3 6E 9F BC 87 81 FA 42 [02:49:53]CommunicateWithHost err = 0 [02:49:53]CheckOFDResponse [02:49:53]1017 (14) - 77093643461234 [02:49:53]1041 (16) - 0000000000965340 [02:49:53]1040 (4) - 187994 [02:49:53]1012 (4) - 21.10.2024 20:42 [02:49:53]1206 (1) - 0 [02:49:53]OFD Sender: Remove packet 187994 [02:49:53]ProducePacketName [02:49:53]name=ofd_packets/00187994 [02:49:53]NVStorageDeleteData [02:49:54]OFD Sender: No OFD packet to send [02:49:54]*** Cut start [02:49:54]*** Partial cut [02:49:54]*** CUTSNS_PIN = 1 [02:49:54]*** CUTSNS_PIN = 0 [02:49:54]*** Brake cut motor [02:49:55]Read from MH i2c: 01 [02:49:55]MH_I2C_Read... [02:49:55]*** Stop cut motor [02:49:55]*** Cut end [02:49:55]Read from MH i2c: 01 07 00 [02:49:55]MH_I2C_Read... [02:49:55]Read from MH i2c: 01 07 00 A1 0B 00 00 00 00 00 FF 0F C1 [02:49:55]process_action close_receipt done [02:49:55]requested_data is exist [02:49:55]produce_requested_data [02:49:55]requested_item fm.sn is exist - process it [02:49:55]wFMCommunicate request_size=4 [02:49:55]MH_SAM_APDU [02:49:55]CAPDU: 80 11 00 00 [02:49:55]Write to MH i2c: E2 08 00 A2 0B 80 11 00 00 00 00 00 00 27 [02:49:55]Write i2c OK [02:49:55]MH_I2C_Read... [02:49:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:49:55]Read from MH i2c: E2 [02:49:55]MH_I2C_Read... [02:49:55]Read from MH i2c: E2 17 00 [02:49:55]MH_I2C_Read... [02:49:55]Read from MH i2c: E2 17 00 A2 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 75 [02:49:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [02:49:55]wFMCommunicate OK [02:49:55]requested_item fd.num is exist - process it [02:49:55]SAM_PROTO_GetFieldsCounters [02:49:55]wFMCommunicate request_size=4 [02:49:55]MH_SAM_APDU [02:49:55]CAPDU: 80 13 00 00 [02:49:55]Write to MH i2c: E2 08 00 A3 0B 80 13 00 00 00 00 00 00 2A [02:49:55]Write i2c OK [02:49:55]MH_I2C_Read... [02:49:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [02:49:55]Read from MH i2c: E2 [02:49:55]MH_I2C_Read... [02:49:55]Read from MH i2c: E2 62 00 [02:49:55]MH_I2C_Read... [02:49:55]Read from MH i2c: E2 62 00 A3 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 5A DE 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 17 00 00 00 5E 04 04 00 17 00 00 00 57 04 04 00 18 00 00 00 19 04 04 00 00 00 00 00 90 00 7E [02:49:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 5A DE 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 17 00 00 00 5E 04 04 00 17 00 00 00 57 04 04 00 18 00 00 00 19 04 04 00 00 00 00 00 90 00 [02:49:55]wFMCommunicate OK [02:49:55]SAM_PROTO_GetFieldsCounters done [02:49:55]requested_item shift.num is exist - process it [02:49:55]requested_item shift.opened is exist - process it [02:49:55]req_shift_opened [02:49:55]FM_GetShiftState [02:49:55]SAM_PROTO_GetShiftState [02:49:55]wFMCommunicate request_size=4 [02:49:55]MH_SAM_APDU [02:49:55]CAPDU: 80 13 01 00 [02:49:55]Write to MH i2c: E2 08 00 A4 0B 80 13 01 00 00 00 00 00 2C [02:49:55]Write i2c OK [02:49:55]MH_I2C_Read... [02:49:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:49:55]Read from MH i2c: E2 [02:49:55]MH_I2C_Read... [02:49:55]Read from MH i2c: E2 0E 00 [02:49:55]MH_I2C_Read... [02:49:55]Read from MH i2c: E2 0E 00 A4 0B 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 21 [02:49:55]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [02:49:55]wFMCommunicate OK [02:49:55]SAM_PROTO_GetShiftState done [02:49:55]FM_GetShiftState done [02:49:55]req_shift_opened done [02:49:55]requested_item shift.open_date is exist - process it [02:49:55]req_shift_open_date [02:49:55]req_shift_open_date done [02:49:55]produce_requested_data done [02:49:55]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187994,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [02:49:55]process_action_free close_receipt [02:49:55]json_value_free [02:49:55]json_value_free done [02:49:55]process_json_proto returns [02:49:55]Send response to host [02:49:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187994,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [02:49:55]free response buf [02:49:55]execute_script done [02:49:55]execute_script returns [02:49:55]free content buf [02:49:55]Sock 9.Close socket [02:49:55]Sock 9.Thread stoped [02:49:59]OFD Sender: No OFD packet to send [02:50:04]OFD Sender: No OFD packet to send [02:50:09]OFD Sender: No OFD packet to send [02:50:14]OFD Sender: No OFD packet to send [02:50:19]OFD Sender: No OFD packet to send [02:50:24]OFD Sender: No OFD packet to send [02:50:29]OFD Sender: No OFD packet to send [02:50:34]OFD Sender: No OFD packet to send [02:50:39]OFD Sender: No OFD packet to send [02:50:44]OFD Sender: No OFD packet to send [02:50:49]OFD Sender: No OFD packet to send [02:50:54]OFD Sender: No OFD packet to send [02:50:59]OFD Sender: No OFD packet to send [02:51:04]OFD Sender: No OFD packet to send [02:51:09]OFD Sender: No OFD packet to send [02:51:14]OFD Sender: No OFD packet to send [02:51:19]OFD Sender: No OFD packet to send [02:51:24]OFD Sender: No OFD packet to send [02:51:29]OFD Sender: No OFD packet to send [02:51:34]OFD Sender: No OFD packet to send [02:51:39]OFD Sender: No OFD packet to send [02:51:44]OFD Sender: No OFD packet to send [02:51:49]OFD Sender: No OFD packet to send [02:51:54]OFD Sender: No OFD packet to send [02:51:59]OFD Sender: No OFD packet to send [02:52:04]OFD Sender: No OFD packet to send [02:52:09]OFD Sender: No OFD packet to send [02:52:14]OFD Sender: No OFD packet to send [02:52:19]OFD Sender: No OFD packet to send [02:52:24]OFD Sender: No OFD packet to send [02:52:29]OFD Sender: No OFD packet to send [02:52:34]OFD Sender: No OFD packet to send [02:52:39]OFD Sender: No OFD packet to send [02:52:44]OFD Sender: No OFD packet to send [02:52:49]OFD Sender: No OFD packet to send [02:52:54]OFD Sender: No OFD packet to send [02:52:59]OFD Sender: No OFD packet to send [02:53:04]OFD Sender: No OFD packet to send [02:53:09]OFD Sender: No OFD packet to send [02:53:14]OFD Sender: No OFD packet to send [02:53:19]OFD Sender: No OFD packet to send [02:53:24]OFD Sender: No OFD packet to send [02:53:30]OFD Sender: No OFD packet to send [02:53:35]OFD Sender: No OFD packet to send [02:53:40]OFD Sender: No OFD packet to send [02:53:45]OFD Sender: No OFD packet to send [02:53:48]accept exits with 8 [02:53:48]New connection [02:53:48]New thread 3067055460 created [02:53:48]Thread 3067198820 joined [02:53:48]Waiting for new connection... [02:53:48] Sock 8.Parse request [02:53:48]Sock 8.Check first char [02:53:48]Sock 8.First char is OK [02:53:48]request: POST /json_proto HTTP/1.0 [02:53:48]Method: POST [02:53:48]URL: /json_proto [02:53:48]Method is POST - this is cgi request [02:53:48]url: /json_proto [02:53:48]query_string will be loaded in cgi processing [02:53:48]execute_cgi json_proto POST (null) [02:53:48]execute_cgi path=json_proto method=POST [02:53:48]POST find Content-Length [02:53:48]Host: 172.17.42.131:8080 [02:53:48]Content-Length: 679 [02:53:48]Content-Type: application/json [02:53:48] [02:53:48]POST finish read [02:53:48]Found Content-Length = 679 [02:53:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210046", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 65.620, "sum" : 5000.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 5000.00, "total" : 5000.00, "payments": [ { "type": 0, "sum" : 5000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:53:48]execute_script... [02:53: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)210046", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 65.620, "sum" : 5000.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 5000.00, "total" : 5000.00, "payments": [ { "type": 0, "sum" : 5000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:53:48]POST & json_proto [02:53:48]process_json_proto [02:53:48]json parsed OK: [02:53:48]protocol is kg_v1.0 [02:53:48]action value=close_receipt [02:53:48]process_action close_receipt [02:53:48]cmd_close_receipt [02:53:48]MH_GetDate [02:53:48]Write to MH i2c: F0 00 00 A5 0B 9F [02:53:48]Write i2c OK [02:53:48]MH_I2C_Read... [02:53:48]Read from MH i2c: F0 [02:53:48]MH_I2C_Read... [02:53:48]Read from MH i2c: F0 09 00 [02:53:48]MH_I2C_Read... [02:53:48]Read from MH i2c: F0 09 00 A5 0B 00 BE 13 17 67 A0 18 CA 66 DF [02:53:48]GetLastDocTimeStamp 1729565392 [02:53:48]current date 1729565630 [02:53:48]FM_GetShiftState [02:53:48]SAM_PROTO_GetShiftState [02:53:48]wFMCommunicate request_size=4 [02:53:48]MH_SAM_APDU [02:53:48]CAPDU: 80 13 01 00 [02:53:48]Write to MH i2c: E2 08 00 A6 0B 80 13 01 00 00 00 00 00 2E [02:53:48]Write i2c OK [02:53:48]MH_I2C_Read... [02:53:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:53:48]Read from MH i2c: E2 [02:53:48]MH_I2C_Read... [02:53:48]Read from MH i2c: E2 0E 00 [02:53:48]MH_I2C_Read... [02:53:48]Read from MH i2c: E2 0E 00 A6 0B 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 23 [02:53:48]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [02:53:48]wFMCommunicate OK [02:53:48]SAM_PROTO_GetShiftState done [02:53:48]FM_GetShiftState done [02:53:48]opened in 1729556094 [02:53:48]opened+sec_in_day 1729642494 [02:53:48]quantity*price = 500024 [02:53:48]sum+1 = 500025 [02:53:48]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.24 ИТОГО: 5000.00 Внесено: 5000.00 СДАЧА: 0.00 НСП 1% : 44.25 НДС 12% : 531.00 Наличными: 5000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 24 22.10.2024 02:53 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 187995 ФПД: 83323322626266 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T025350&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187995&fm=83323322626266&tin=02508201610067®Number=0000000000100030&sum=500000 [02:53:50]StoreToDocumentArchive [02:53:50]shift 461 fd 187995 [02:53:50]save to /storage/0461/doc_00187995 [02:53:50]save last doc name /storage/0461/doc_00187995 to /storage/kkm_last_doc_name [02:53:50]save OK [02:53:50]Clear old archive folders... [02:53:50]ProcessDocumentItem done err = 0, tmpTLVsize=248 [02:53:50]tlvbuf is 01BFEFF0 [02:53:50]SAM_PROTO_ClearQueue [02:53:50]wFMCommunicate request_size=4 [02:53:50]MH_SAM_APDU [02:53:50]CAPDU: 80 09 00 00 [02:53:50]Write to MH i2c: E2 08 00 B3 0B 80 09 00 00 00 00 00 00 30 [02:53:50]Write i2c OK [02:53:50]MH_I2C_Read... [02:53:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [02:53:50]Read from MH i2c: E2 [02:53:50]MH_I2C_Read... [02:53:50]Read from MH i2c: E2 03 00 [02:53:50]MH_I2C_Read... [02:53:50]Read from MH i2c: E2 03 00 B3 0B 00 90 00 32 [02:53:50]RAPDU: 90 00 [02:53:50]wFMCommunicate OK [02:53:50]SAM_PROTO_ClearQueue done [02:53:50]KKMCreateOFDPacket [02:53:50]OFDProtocolAddRootSTLVToBuf [02:53:50]FM_MakeSignedData [02:53:50]FM_MakeSignedData [02:53:50]SAM_PROTO_SignData [02:53:50]wFMCommunicate request_size=4 [02:53:50]MH_SAM_APDU [02:53:50]CAPDU: 80 0D 01 02 [02:53:50]Write to MH i2c: E2 08 00 B4 0B 80 0D 01 02 00 00 00 00 38 [02:53:50]Write i2c OK [02:53:50]MH_I2C_Read... [02:53:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [02:53:50]Read from MH i2c: E2 [02:53:50]MH_I2C_Read... [02:53:50]Read from MH i2c: E2 03 00 [02:53:50]MH_I2C_Read... [02:53:50]Read from MH i2c: E2 03 00 B4 0B 00 90 00 33 [02:53:50]RAPDU: 90 00 [02:53:50]wFMCommunicate OK [02:53:50]wFMCommunicate request_size=255 [02:53:50]MH_SAM_APDU [02:53:50]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 54 00 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 38 A1 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 A1 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 11 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6C CF 00 00 00 00 07 04 06 00 20 A1 07 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 BE 13 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 5B DE 02 00 35 04 06 00 4B C8 39 0B [02:53:50]Write to MH i2c: E2 02 01 B5 0B 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 54 00 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 38 A1 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 A1 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 11 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6C CF 00 00 00 00 07 04 06 00 20 A1 07 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 BE 13 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 5B DE 02 00 35 04 06 00 4B C8 39 0B 00 00 7D [02:53:50]OFD Sender: No OFD packet to send [02:53:50]Write i2c OK [02:53:50]MH_I2C_Read... [02:53:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:53:50]Read from MH i2c: E2 [02:53:50]MH_I2C_Read... [02:53:50]Read from MH i2c: E2 03 00 [02:53:50]MH_I2C_Read... [02:53:50]Read from MH i2c: E2 03 00 B5 0B 00 90 00 34 [02:53:50]RAPDU: 90 00 [02:53:50]wFMCommunicate OK [02:53:50]wFMCommunicate request_size=7 [02:53:50]MH_SAM_APDU [02:53:50]CAPDU: 80 0D 02 02 02 F0 DA [02:53:50]Write to MH i2c: E2 0A 00 B6 0B 80 0D 02 02 02 00 F0 DA 00 00 09 [02:53:50]Write i2c OK [02:53:50]MH_I2C_Read... [02:53:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:53:50]Read from MH i2c: E2 [02:53:50]MH_I2C_Read... [02:53:50]Read from MH i2c: E2 03 00 [02:53:50]MH_I2C_Read... [02:53:50]Read from MH i2c: E2 03 00 B6 0B 00 90 00 35 [02:53:50]RAPDU: 90 00 [02:53:50]wFMCommunicate OK [02:53:50]wFMCommunicate request_size=4 [02:53:50]MH_SAM_APDU [02:53:50]CAPDU: 80 0D 03 02 [02:53:50]Write to MH i2c: E2 08 00 B7 0B 80 0D 03 02 00 00 00 00 3D [02:53:50]Write i2c OK [02:53:50]MH_I2C_Read... [02:53:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [02:53:50]Read from MH i2c: E2 [02:53:50]MH_I2C_Read... [02:53:50]Read from MH i2c: E2 0B 00 [02:53:50]MH_I2C_Read... [02:53:50]Read from MH i2c: E2 0B 00 B7 0B 00 30 85 9D 06 72 31 07 A4 90 00 E4 [02:53:50]RAPDU: 30 85 9D 06 72 31 07 A4 90 00 [02:53:50]wFMCommunicate OK [02:53:50]SAM_PROTO_SignData done [02:53:50]FM_MakeSignedData done [02:53:50]CreateOFDProtocolMessage [02:53:50]wFMCommunicate request_size=4 [02:53:50]MH_SAM_APDU [02:53:50]CAPDU: 80 11 00 00 [02:53:50]Write to MH i2c: E2 08 00 B8 0B 80 11 00 00 00 00 00 00 3D [02:53:50]Write i2c OK [02:53:50]MH_I2C_Read... [02:53:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:53:50]Read from MH i2c: E2 [02:53:50]MH_I2C_Read... [02:53:50]Read from MH i2c: E2 17 00 [02:53:50]MH_I2C_Read... [02:53:50]Read from MH i2c: E2 17 00 B8 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 8B [02:53:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [02:53:50]wFMCommunicate OK [02:53:50]CreateOFDProtocolMessage done [02:53:50]OFDSenderStorePacket 187995 [02:53:50]StoreOFDPacket docnum=187995 [02:53:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 D2 AB 04 01 C6 D5 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 54 00 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 38 A1 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 A1 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 11 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6C CF 00 00 00 00 07 04 06 00 20 A1 07 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 BE 13 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 5B DE 02 00 35 04 06 00 4B C8 39 0B F0 DA 30 85 9D 06 72 31 07 A4 [02:53:50]CheckFolder [02:53:50]dirname=/storage/ofd_packets [02:53:50]CheckFolder done [02:53:50]ProducePacketName [02:53:50]name=ofd_packets/00187995 [02:53:50]NVStorageSaveData ofd_packets/00187995 [02:53:50]File name is /storage/ofd_packets/00187995 [02:53:50]Write 298 bytes [02:53:50]NVStorageSaveData done [02:53:50]OFDSenderStorePacket done [02:53:50]KKMCreateOFDPacket done [02:53:50]NVStorageSaveData kkm_last_timestamp [02:53:50]File name is /storage/kkm_last_timestamp [02:53:50]Write 4 bytes [02:53:50]NVStorageSaveData done [02:53:50]ExternCall_PrintAddStr [02:53:50]wPrintStart [02:53:50]Write to MH i2c: 01 00 00 B9 0B C4 [02:53:50]Write i2c OK [02:53:50]MH_I2C_Read... [02:53:50]Read from MH i2c: 01 [02:53:50]MH_I2C_Read... [02:53:50]Read from MH i2c: 01 07 00 [02:53:50]MH_I2C_Read... [02:53:50]Read from MH i2c: 01 07 00 B9 0B 00 00 00 00 00 FF 0F D9 [02:53:50]RasterBufferAndPrint [02:53:50]line Счет N : (1)210046 [02:53:50]line ИНН: 02508201610067 [02:53:50]line Контрольно-Кассовый Чек [02:53:50]line ПРОДАЖА [02:53:50]line ТРК (МРК, ГНК) : 51 [02:53:50]line Товар: 2710194210 [02:53:50]line ДТ-К-5 [02:53:50]line 65.620 * 76.20 [02:53:50]line = 5000.24 [02:53:50]line НДС 12% НСП 1% [02:53:50]line > о реализуемом товаре [02:53:50]line ОКРУГЛЕНИЕ: -0.24 [02:53:50]line ИТОГО: 5000.00 [02:53:50]line Внесено: 5000.00 [02:53:50]line СДАЧА: 0.00 [02:53:50]line НСП 1% : 44.25 [02:53:50]line НДС 12% : 531.00 [02:53:50]line Наличными: 5000.00 [02:53:50]line Безнал.: 0.00 [02:53:50]line Место: АЗС № 86 "Партнер Нефть" [02:53:50]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [02:53:50]line СНО: Общий режим [02:53:50]line Чек 24 22.10.2024 02:53 [02:53:50]line Смена: 461 ФФД: 1.0 [02:53:50]line ЗНМ: 0300000155 [02:53:50]line РНМ: 0000000000100030 [02:53:50]line Версия ККМ: 001 [02:53:50]line ФМ: 0000000000965340 [02:53:50]line ФД: 187995 [02:53:50]line ФПД: 83323322626266 [02:53:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T025350&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187995&fm=83323322626266&tin=02508201610067®Number=0000000000100030&sum=500000 [02:53:50]written 0, free lines is 4095 [02:53:50]OFD Sender: Processing packet 187995 [packets to send 1062, broken 1061] [02:53:50]ProducePacketName [02:53:50]name=ofd_packets/00187995 [02:53:50]OFD Sender: To server: pG, [02:53:50]CommunicateWithHost lk.salyk.kg:30040 [02:53:50]ConnectInit lk.salyk.kg [02:53:50]Connected sock=9 [02:53:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 D2 AB 04 01 C6 D5 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 54 00 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 38 A1 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 A1 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 11 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6C CF 00 00 00 00 07 04 06 00 20 A1 07 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 BE 13 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 5B DE 02 00 35 04 06 00 4B C8 39 0B F0 DA 30 85 9D 06 72 31 07 A4 [02:53:51]Write to MH i2c: 01 00 00 E4 0B EF [02:53:51]Write i2c OK [02:53:51]MH_I2C_Read... [02:53:51]Read from MH i2c: 01 [02:53:51]MH_I2C_Read... [02:53:51]Read from MH i2c: 01 07 00 [02:53:51]MH_I2C_Read... [02:53:51]Read from MH i2c: 01 07 00 E4 0B 00 00 00 00 00 58 0C 5A [02:53:51]RasterBufferAndPrint [02:53:51]line [02:53:51]line [02:53:51]line [02:53:51]line [02:53:51]line [02:53:51]written 0, free lines is 3164 [02:53:51]MH_Cut [02:53:51]Write to MH i2c: D1 01 00 EB 0B 01 C8 [02:53:51]Write i2c OK [02:53:51]MH_I2C_Read... [02:53:51]Read from MH i2c: D1 [02:53:51]MH_I2C_Read... [02:53:51]Read from MH i2c: D1 01 00 [02:53:51]MH_I2C_Read... [02:53:51]Read from MH i2c: D1 01 00 EB 0B 00 C7 [02:53:51]Write to MH i2c: 01 00 00 EC 0B F7 [02:53:51]Write i2c OK [02:53:51]MH_I2C_Read... [02:53:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 1C 1D 47 00 27 08 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 5B DE 02 00 F4 03 04 00 AC BD 16 67 B6 04 01 00 00 59 E4 0B E2 18 8A 4C 1C [02:53:51]CommunicateWithHost err = 0 [02:53:51]CheckOFDResponse [02:53:51]1017 (14) - 77093643461234 [02:53:51]1041 (16) - 0000000000965340 [02:53:51]1040 (4) - 187995 [02:53:51]1012 (4) - 21.10.2024 20:46 [02:53:51]1206 (1) - 0 [02:53:51]OFD Sender: Remove packet 187995 [02:53:51]ProducePacketName [02:53:51]name=ofd_packets/00187995 [02:53:51]NVStorageDeleteData [02:53:51]OFD Sender: No OFD packet to send [02:53:52]*** Cut start [02:53:52]*** Partial cut [02:53:52]*** CUTSNS_PIN = 1 [02:53:52]*** CUTSNS_PIN = 0 [02:53:52]*** Brake cut motor [02:53:52]Read from MH i2c: 01 [02:53:53]MH_I2C_Read... [02:53:53]*** Stop cut motor [02:53:53]*** Cut end [02:53:53]Read from MH i2c: 01 07 00 [02:53:53]MH_I2C_Read... [02:53:53]Read from MH i2c: 01 07 00 EC 0B 00 00 00 00 00 FF 0F 0C [02:53:53]process_action close_receipt done [02:53:53]requested_data is exist [02:53:53]produce_requested_data [02:53:53]requested_item fm.sn is exist - process it [02:53:53]wFMCommunicate request_size=4 [02:53:53]MH_SAM_APDU [02:53:53]CAPDU: 80 11 00 00 [02:53:53]Write to MH i2c: E2 08 00 ED 0B 80 11 00 00 00 00 00 00 72 [02:53:53]Write i2c OK [02:53:53]MH_I2C_Read... [02:53:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:53:53]Read from MH i2c: E2 [02:53:53]MH_I2C_Read... [02:53:53]Read from MH i2c: E2 17 00 [02:53:53]MH_I2C_Read... [02:53:53]Read from MH i2c: E2 17 00 ED 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 C0 [02:53:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [02:53:53]wFMCommunicate OK [02:53:53]requested_item fd.num is exist - process it [02:53:53]SAM_PROTO_GetFieldsCounters [02:53:53]wFMCommunicate request_size=4 [02:53:53]MH_SAM_APDU [02:53:53]CAPDU: 80 13 00 00 [02:53:53]Write to MH i2c: E2 08 00 EE 0B 80 13 00 00 00 00 00 00 75 [02:53:53]Write i2c OK [02:53:53]MH_I2C_Read... [02:53:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [02:53:53]Read from MH i2c: E2 [02:53:53]MH_I2C_Read... [02:53:53]Read from MH i2c: E2 62 00 [02:53:53]MH_I2C_Read... [02:53:53]Read from MH i2c: E2 62 00 EE 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 5B DE 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 18 00 00 00 5E 04 04 00 18 00 00 00 57 04 04 00 19 00 00 00 19 04 04 00 00 00 00 00 90 00 CD [02:53:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 5B DE 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 18 00 00 00 5E 04 04 00 18 00 00 00 57 04 04 00 19 00 00 00 19 04 04 00 00 00 00 00 90 00 [02:53:53]wFMCommunicate OK [02:53:53]SAM_PROTO_GetFieldsCounters done [02:53:53]requested_item shift.num is exist - process it [02:53:53]requested_item shift.opened is exist - process it [02:53:53]req_shift_opened [02:53:53]FM_GetShiftState [02:53:53]SAM_PROTO_GetShiftState [02:53:53]wFMCommunicate request_size=4 [02:53:53]MH_SAM_APDU [02:53:53]CAPDU: 80 13 01 00 [02:53:53]Write to MH i2c: E2 08 00 EF 0B 80 13 01 00 00 00 00 00 77 [02:53:53]Write i2c OK [02:53:53]MH_I2C_Read... [02:53:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:53:53]Read from MH i2c: E2 [02:53:53]MH_I2C_Read... [02:53:53]Read from MH i2c: E2 0E 00 [02:53:53]MH_I2C_Read... [02:53:53]Read from MH i2c: E2 0E 00 EF 0B 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 6C [02:53:53]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [02:53:53]wFMCommunicate OK [02:53:53]SAM_PROTO_GetShiftState done [02:53:53]FM_GetShiftState done [02:53:53]req_shift_opened done [02:53:53]requested_item shift.open_date is exist - process it [02:53:53]req_shift_open_date [02:53:53]req_shift_open_date done [02:53:53]produce_requested_data done [02:53:53]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187995,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [02:53:53]process_action_free close_receipt [02:53:53]json_value_free [02:53:53]json_value_free done [02:53:53]process_json_proto returns [02:53:53]Send response to host [02:53:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187995,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [02:53:53]free response buf [02:53:53]execute_script done [02:53:53]execute_script returns [02:53:53]free content buf [02:53:53]Sock 8.Close socket [02:53:53]Sock 8.Thread stoped [02:53:56]OFD Sender: No OFD packet to send [02:54:01]OFD Sender: No OFD packet to send [02:54:06]OFD Sender: No OFD packet to send [02:54:11]OFD Sender: No OFD packet to send [02:54:16]OFD Sender: No OFD packet to send [02:54:21]OFD Sender: No OFD packet to send [02:54:26]OFD Sender: No OFD packet to send [02:54:31]OFD Sender: No OFD packet to send [02:54:36]OFD Sender: No OFD packet to send [02:54:41]OFD Sender: No OFD packet to send [02:54:46]OFD Sender: No OFD packet to send [02:54:51]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:12]accept exits with 10 [02:55:12]New connection [02:55:12]New thread 3067198820 created [02:55:12]Thread 3067055460 joined [02:55:12]Waiting for new connection... [02:55:12] Sock 10.Parse request [02:55:12]Sock 10.Check first char [02:55:12]Sock 10.First char is OK [02:55:12]request: POST /json_proto HTTP/1.0 [02:55:12]Method: POST [02:55:12]URL: /json_proto [02:55:12]Method is POST - this is cgi request [02:55:12]url: /json_proto [02:55:12]query_string will be loaded in cgi processing [02:55:12]execute_cgi json_proto POST (null) [02:55:12]execute_cgi path=json_proto method=POST [02:55:12]POST find Content-Length [02:55:12]Host: 172.17.42.131:8080 [02:55:12]Content-Length: 772 [02:55:12]Content-Type: application/json [02:55:12] [02:55:12]POST finish read [02:55:12]Found Content-Length = 772 [02:55:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210047", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 9.070, "sum" : 700.20, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 700.20 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:55:12]execute_script... [02:55: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)210047", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 9.070, "sum" : 700.20, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 700.20 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:55:12]POST & json_proto [02:55:12]process_json_proto [02:55:12]json parsed OK: [02:55:12]protocol is kg_v1.0 [02:55:12]action value=close_receipt [02:55:12]process_action close_receipt [02:55:12]cmd_close_receipt [02:55:12]MH_GetDate [02:55:12]Write to MH i2c: F0 00 00 F0 0B EA [02:55:12]Write i2c OK [02:55:12]MH_I2C_Read... [02:55:12]Read from MH i2c: F0 [02:55:12]MH_I2C_Read... [02:55:12]Read from MH i2c: F0 09 00 [02:55:12]MH_I2C_Read... [02:55:12]Read from MH i2c: F0 09 00 F0 0B 00 11 14 17 67 A0 18 CA 66 7E [02:55:12]GetLastDocTimeStamp 1729565630 [02:55:12]current date 1729565713 [02:55:12]FM_GetShiftState [02:55:12]SAM_PROTO_GetShiftState [02:55:12]wFMCommunicate request_size=4 [02:55:12]MH_SAM_APDU [02:55:12]CAPDU: 80 13 01 00 [02:55:12]Write to MH i2c: E2 08 00 F1 0B 80 13 01 00 00 00 00 00 79 [02:55:12]Write i2c OK [02:55:12]MH_I2C_Read... [02:55:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:55:12]Read from MH i2c: E2 [02:55:12]MH_I2C_Read... [02:55:12]Read from MH i2c: E2 0E 00 [02:55:12]MH_I2C_Read... [02:55:12]Read from MH i2c: E2 0E 00 F1 0B 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 6E [02:55:12]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [02:55:12]wFMCommunicate OK [02:55:12]SAM_PROTO_GetShiftState done [02:55:12]FM_GetShiftState done [02:55:12]opened in 1729556094 [02:55:12]opened+sec_in_day 1729642494 [02:55:12]quantity*price = 70020 [02:55:12]sum+1 = 70021 [02:55:12]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 700.20 НСП 1% : 6.20 НДС 12% : 74.36 Наличными: 0.00 Безнал.: 700.20 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 25 22.10.2024 02:55 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000965340 ФД: 187996 ФПД: 163433393142848 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T025513&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187996&fm=163433393142848&tin=02508201610067®Number=0000000000100030&sum=70020 [02:55:13]StoreToDocumentArchive [02:55:13]shift 461 fd 187996 [02:55:13]save to /storage/0461/doc_00187996 [02:55:13]save last doc name /storage/0461/doc_00187996 to /storage/kkm_last_doc_name [02:55:13]save OK [02:55:13]Clear old archive folders... [02:55:13]ProcessDocumentItem done err = 0, tmpTLVsize=257 [02:55:13]tlvbuf is 01B94150 [02:55:13]SAM_PROTO_ClearQueue [02:55:13]wFMCommunicate request_size=4 [02:55:13]MH_SAM_APDU [02:55:13]CAPDU: 80 09 00 00 [02:55:13]Write to MH i2c: E2 08 00 FE 0B 80 09 00 00 00 00 00 00 7B [02:55:13]Write i2c OK [02:55:13]MH_I2C_Read... [02:55:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [02:55:13]Read from MH i2c: E2 [02:55:13]MH_I2C_Read... [02:55:13]Read from MH i2c: E2 03 00 [02:55:13]MH_I2C_Read... [02:55:13]Read from MH i2c: E2 03 00 FE 0B 00 90 00 7D [02:55:13]RAPDU: 90 00 [02:55:13]wFMCommunicate OK [02:55:13]SAM_PROTO_ClearQueue done [02:55:13]KKMCreateOFDPacket [02:55:13]OFDProtocolAddRootSTLVToBuf [02:55:13]FM_MakeSignedData [02:55:13]FM_MakeSignedData [02:55:13]SAM_PROTO_SignData [02:55:13]wFMCommunicate request_size=4 [02:55:13]MH_SAM_APDU [02:55:13]CAPDU: 80 0D 01 02 [02:55:13]Write to MH i2c: E2 08 00 FF 0B 80 0D 01 02 00 00 00 00 83 [02:55:13]Write i2c OK [02:55:13]MH_I2C_Read... [02:55:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [02:55:13]Read from MH i2c: E2 [02:55:13]MH_I2C_Read... [02:55:13]Read from MH i2c: E2 03 00 [02:55:13]MH_I2C_Read... [02:55:13]Read from MH i2c: E2 03 00 FF 0B 00 90 00 7E [02:55:13]RAPDU: 90 00 [02:55:13]wFMCommunicate OK [02:55:13]wFMCommunicate request_size=255 [02:55:13]MH_SAM_APDU [02:55:13]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 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 6E 23 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 84 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 84 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0C 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 84 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 11 14 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 5C DE 02 [02:55:13]Write to MH i2c: E2 02 01 00 0C 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 6E 23 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 84 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 84 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0C 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 84 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 11 14 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 5C DE 02 00 00 F5 [02:55:13]Write i2c OK [02:55:13]MH_I2C_Read... [02:55:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:55:13]Read from MH i2c: E2 [02:55:13]MH_I2C_Read... [02:55:13]Read from MH i2c: E2 03 00 [02:55:13]MH_I2C_Read... [02:55:13]Read from MH i2c: E2 03 00 00 0C 00 90 00 80 [02:55:13]RAPDU: 90 00 [02:55:13]wFMCommunicate OK [02:55:13]wFMCommunicate request_size=16 [02:55:13]MH_SAM_APDU [02:55:13]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 94 A4 4D 57 BC 40 [02:55:13]Write to MH i2c: E2 13 00 01 0C 80 0D 02 02 0B 00 00 35 04 06 00 94 A4 4D 57 BC 40 00 00 B4 [02:55:13]Write i2c OK [02:55:13]MH_I2C_Read... [02:55:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:55:13]Read from MH i2c: E2 [02:55:13]MH_I2C_Read... [02:55:13]Read from MH i2c: E2 03 00 [02:55:13]MH_I2C_Read... [02:55:13]Read from MH i2c: E2 03 00 01 0C 00 90 00 81 [02:55:13]RAPDU: 90 00 [02:55:13]wFMCommunicate OK [02:55:13]wFMCommunicate request_size=4 [02:55:13]MH_SAM_APDU [02:55:13]CAPDU: 80 0D 03 02 [02:55:13]Write to MH i2c: E2 08 00 02 0C 80 0D 03 02 00 00 00 00 89 [02:55:13]Write i2c OK [02:55:13]MH_I2C_Read... [02:55:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [02:55:13]Read from MH i2c: E2 [02:55:13]MH_I2C_Read... [02:55:13]Read from MH i2c: E2 0B 00 [02:55:13]MH_I2C_Read... [02:55:13]Read from MH i2c: E2 0B 00 02 0C 00 25 97 3C F8 6A 26 BC F9 90 00 BF [02:55:13]RAPDU: 25 97 3C F8 6A 26 BC F9 90 00 [02:55:13]wFMCommunicate OK [02:55:13]SAM_PROTO_SignData done [02:55:13]FM_MakeSignedData done [02:55:13]CreateOFDProtocolMessage [02:55:13]wFMCommunicate request_size=4 [02:55:13]MH_SAM_APDU [02:55:13]CAPDU: 80 11 00 00 [02:55:13]Write to MH i2c: E2 08 00 03 0C 80 11 00 00 00 00 00 00 89 [02:55:13]Write i2c OK [02:55:13]MH_I2C_Read... [02:55:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:55:13]Read from MH i2c: E2 [02:55:13]MH_I2C_Read... [02:55:13]Read from MH i2c: E2 17 00 [02:55:13]MH_I2C_Read... [02:55:13]Read from MH i2c: E2 17 00 03 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 D7 [02:55:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [02:55:13]wFMCommunicate OK [02:55:13]CreateOFDProtocolMessage done [02:55:13]OFDSenderStorePacket 187996 [02:55:13]StoreOFDPacket docnum=187996 [02:55:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 B4 4E 0D 01 A5 0D 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 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 6E 23 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 84 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 84 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0C 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 84 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 11 14 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 5C DE 02 00 35 04 06 00 94 A4 4D 57 BC 40 25 97 3C F8 6A 26 BC F9 [02:55:13]CheckFolder [02:55:13]dirname=/storage/ofd_packets [02:55:13]CheckFolder done [02:55:13]ProducePacketName [02:55:13]name=ofd_packets/00187996 [02:55:13]NVStorageSaveData ofd_packets/00187996 [02:55:13]File name is /storage/ofd_packets/00187996 [02:55:13]Write 307 bytes [02:55:13]NVStorageSaveData done [02:55:13]OFDSenderStorePacket done [02:55:13]KKMCreateOFDPacket done [02:55:13]NVStorageSaveData kkm_last_timestamp [02:55:13]File name is /storage/kkm_last_timestamp [02:55:13]Write 4 bytes [02:55:13]NVStorageSaveData done [02:55:13]ExternCall_PrintAddStr [02:55:14]wPrintStart [02:55:14]Write to MH i2c: 01 00 00 04 0C 10 [02:55:14]Write i2c OK [02:55:14]MH_I2C_Read... [02:55:14]Read from MH i2c: 01 [02:55:14]MH_I2C_Read... [02:55:14]Read from MH i2c: 01 07 00 [02:55:14]MH_I2C_Read... [02:55:14]Read from MH i2c: 01 07 00 04 0C 00 00 00 00 00 FF 0F 25 [02:55:14]RasterBufferAndPrint [02:55:14]line Счет N : (1)210047 [02:55:14]line ИНН: 02508201610067 [02:55:14]line Контрольно-Кассовый Чек [02:55:14]line ПРОДАЖА [02:55:14]line ТРК (МРК, ГНК) : 21 [02:55:14]line Товар: 2710194210 [02:55:14]line D-ENERGY ДТ-К-5 [02:55:14]line 9.070 * 77.20 [02:55:14]line = 700.20 [02:55:14]line НДС 12% НСП 1% [02:55:14]line > о реализуемом товаре [02:55:14]line ИТОГО: 700.20 [02:55:14]line НСП 1% : 6.20 [02:55:14]line НДС 12% : 74.36 [02:55:14]line Наличными: 0.00 [02:55:14]line Безнал.: 700.20 [02:55:14]line Место: АЗС № 86 "Партнер Нефть" [02:55:14]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [02:55:14]line СНО: Общий режим [02:55:14]line Чек 25 22.10.2024 02:55 [02:55:14]line Смена: 461 ФФД: 1.0 [02:55:14]line ЗНМ: 0300000155 [02:55:14]line РНМ: 0000000000100030 [02:55:14]line Версия ККМ: 001 [02:55:14]line Платежная система: Mbank [02:55:14]line ФМ: 0000000000965340 [02:55:14]line ФД: 187996 [02:55:14]line ФПД: 163433393142848 [02:55:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T025513&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187996&fm=163433393142848&tin=02508201610067®Number=0000000000100030&sum=70020 [02:55:14]written 0, free lines is 4095 [02:55:14]OFD Sender: Processing packet 187996 [packets to send 1062, broken 1061] [02:55:14]ProducePacketName [02:55:14]name=ofd_packets/00187996 [02:55:14]OFD Sender: To server: pG, [02:55:14]CommunicateWithHost lk.salyk.kg:30040 [02:55:14]ConnectInit lk.salyk.kg [02:55:14]Connected sock=9 [02:55:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 B4 4E 0D 01 A5 0D 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 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 6E 23 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 84 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 84 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0C 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 84 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 11 14 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 5C DE 02 00 35 04 06 00 94 A4 4D 57 BC 40 25 97 3C F8 6A 26 BC F9 [02:55:14]Write to MH i2c: 01 00 00 2D 0C 39 [02:55:14]Write i2c OK [02:55:14]MH_I2C_Read... [02:55:14]Read from MH i2c: 01 [02:55:14]MH_I2C_Read... [02:55:14]Read from MH i2c: 01 07 00 [02:55:14]MH_I2C_Read... [02:55:14]Read from MH i2c: 01 07 00 2D 0C 00 00 00 00 00 8A 0C D6 [02:55:14]RasterBufferAndPrint [02:55:14]line [02:55:14]line [02:55:14]line [02:55:14]line [02:55:14]line [02:55:14]written 0, free lines is 3214 [02:55:14]MH_Cut [02:55:14]Write to MH i2c: D1 01 00 34 0C 01 12 [02:55:14]Write i2c OK [02:55:14]MH_I2C_Read... [02:55:14]Read from MH i2c: D1 [02:55:14]MH_I2C_Read... [02:55:14]Read from MH i2c: D1 01 00 [02:55:14]MH_I2C_Read... [02:55:14]Read from MH i2c: D1 01 00 34 0C 00 11 [02:55:14]Write to MH i2c: 01 00 00 35 0C 41 [02:55:14]Write i2c OK [02:55:14]MH_I2C_Read... [02:55:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 B4 0E 47 00 69 BA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 5C DE 02 00 F4 03 04 00 FF BD 16 67 B6 04 01 00 00 69 D6 72 9A F0 45 D7 EA [02:55:14]CommunicateWithHost err = 0 [02:55:14]CheckOFDResponse [02:55:14]1017 (14) - 77093643461234 [02:55:14]1041 (16) - 0000000000965340 [02:55:14]1040 (4) - 187996 [02:55:14]1012 (4) - 21.10.2024 20:47 [02:55:14]1206 (1) - 0 [02:55:14]OFD Sender: Remove packet 187996 [02:55:14]ProducePacketName [02:55:14]name=ofd_packets/00187996 [02:55:14]NVStorageDeleteData [02:55:15]OFD Sender: No OFD packet to send [02:55:15]*** Cut start [02:55:15]*** Partial cut [02:55:15]*** CUTSNS_PIN = 1 [02:55:15]*** CUTSNS_PIN = 0 [02:55:16]*** Brake cut motor [02:55:16]Read from MH i2c: 01 [02:55:16]MH_I2C_Read... [02:55:16]*** Stop cut motor [02:55:16]*** Cut end [02:55:16]Read from MH i2c: 01 07 00 [02:55:16]MH_I2C_Read... [02:55:16]Read from MH i2c: 01 07 00 35 0C 00 00 00 00 00 FF 0F 56 [02:55:16]process_action close_receipt done [02:55:16]requested_data is exist [02:55:16]produce_requested_data [02:55:16]requested_item fm.sn is exist - process it [02:55:16]wFMCommunicate request_size=4 [02:55:16]MH_SAM_APDU [02:55:16]CAPDU: 80 11 00 00 [02:55:16]Write to MH i2c: E2 08 00 36 0C 80 11 00 00 00 00 00 00 BC [02:55:16]Write i2c OK [02:55:16]MH_I2C_Read... [02:55:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:55:16]Read from MH i2c: E2 [02:55:16]MH_I2C_Read... [02:55:16]Read from MH i2c: E2 17 00 [02:55:16]MH_I2C_Read... [02:55:16]Read from MH i2c: E2 17 00 36 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 0A [02:55:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [02:55:16]wFMCommunicate OK [02:55:16]requested_item fd.num is exist - process it [02:55:16]SAM_PROTO_GetFieldsCounters [02:55:16]wFMCommunicate request_size=4 [02:55:16]MH_SAM_APDU [02:55:16]CAPDU: 80 13 00 00 [02:55:16]Write to MH i2c: E2 08 00 37 0C 80 13 00 00 00 00 00 00 BF [02:55:16]Write i2c OK [02:55:16]MH_I2C_Read... [02:55:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [02:55:16]Read from MH i2c: E2 [02:55:16]MH_I2C_Read... [02:55:16]Read from MH i2c: E2 62 00 [02:55:16]MH_I2C_Read... [02:55:16]Read from MH i2c: E2 62 00 37 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 5C DE 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 19 00 00 00 5E 04 04 00 19 00 00 00 57 04 04 00 1A 00 00 00 19 04 04 00 00 00 00 00 90 00 1B [02:55:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 5C DE 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 19 00 00 00 5E 04 04 00 19 00 00 00 57 04 04 00 1A 00 00 00 19 04 04 00 00 00 00 00 90 00 [02:55:16]wFMCommunicate OK [02:55:16]SAM_PROTO_GetFieldsCounters done [02:55:16]requested_item shift.num is exist - process it [02:55:16]requested_item shift.opened is exist - process it [02:55:16]req_shift_opened [02:55:16]FM_GetShiftState [02:55:16]SAM_PROTO_GetShiftState [02:55:16]wFMCommunicate request_size=4 [02:55:16]MH_SAM_APDU [02:55:16]CAPDU: 80 13 01 00 [02:55:16]Write to MH i2c: E2 08 00 38 0C 80 13 01 00 00 00 00 00 C1 [02:55:16]Write i2c OK [02:55:16]MH_I2C_Read... [02:55:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:55:16]Read from MH i2c: E2 [02:55:16]MH_I2C_Read... [02:55:16]Read from MH i2c: E2 0E 00 [02:55:16]MH_I2C_Read... [02:55:16]Read from MH i2c: E2 0E 00 38 0C 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 B6 [02:55:16]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [02:55:16]wFMCommunicate OK [02:55:16]SAM_PROTO_GetShiftState done [02:55:16]FM_GetShiftState done [02:55:16]req_shift_opened done [02:55:16]requested_item shift.open_date is exist - process it [02:55:16]req_shift_open_date [02:55:16]req_shift_open_date done [02:55:16]produce_requested_data done [02:55:16]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187996,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [02:55:16]process_action_free close_receipt [02:55:16]json_value_free [02:55:16]json_value_free done [02:55:16]process_json_proto returns [02:55:16]Send response to host [02:55:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187996,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [02:55:16]free response buf [02:55:16]execute_script done [02:55:16]execute_script returns [02:55:16]free content buf [02:55:16]Sock 10.Close socket [02:55:16]Sock 10.Thread stoped [02:55:20]OFD Sender: No OFD packet to send [02:55:25]OFD Sender: No OFD packet to send [02:55:30]OFD Sender: No OFD packet to send [02:55:35]OFD Sender: No OFD packet to send [02:55:40]OFD Sender: No OFD packet to send [02:55:45]OFD Sender: No OFD packet to send [02:55:50]OFD Sender: No OFD packet to send [02:55:55]OFD Sender: No OFD packet to send [02:56:00]OFD Sender: No OFD packet to send [02:56:05]OFD Sender: No OFD packet to send [02:56:10]OFD Sender: No OFD packet to send [02:56:15]OFD Sender: No OFD packet to send [02:56:20]OFD Sender: No OFD packet to send [02:56:25]OFD Sender: No OFD packet to send [02:56:25]accept exits with 8 [02:56:25]New connection [02:56:25]New thread 3067055460 created [02:56:25]Thread 3067198820 joined [02:56:25]Waiting for new connection... [02:56:25] Sock 8.Parse request [02:56:25]Sock 8.Check first char [02:56:25]Sock 8.First char is OK [02:56:25]request: POST /json_proto HTTP/1.0 [02:56:25]Method: POST [02:56:25]URL: /json_proto [02:56:25]Method is POST - this is cgi request [02:56:25]url: /json_proto [02:56:25]query_string will be loaded in cgi processing [02:56:25]execute_cgi json_proto POST (null) [02:56:25]execute_cgi path=json_proto method=POST [02:56:25]POST find Content-Length [02:56:25]Host: 172.17.42.131:8080 [02:56:25]Content-Length: 679 [02:56:25]Content-Type: application/json [02:56:25] [02:56:25]POST finish read [02:56:25]Found Content-Length = 679 [02:56:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210048", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 52.500, "sum" : 4000.50, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 4000.00, "total" : 4000.00, "payments": [ { "type": 0, "sum" : 4000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:56:25]execute_script... [02:56:25]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210048", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 52.500, "sum" : 4000.50, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 4000.00, "total" : 4000.00, "payments": [ { "type": 0, "sum" : 4000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:56:25]POST & json_proto [02:56:25]process_json_proto [02:56:25]json parsed OK: [02:56:25]protocol is kg_v1.0 [02:56:25]action value=close_receipt [02:56:25]process_action close_receipt [02:56:25]cmd_close_receipt [02:56:25]MH_GetDate [02:56:25]Write to MH i2c: F0 00 00 39 0C 34 [02:56:25]Write i2c OK [02:56:25]MH_I2C_Read... [02:56:25]Read from MH i2c: F0 [02:56:25]MH_I2C_Read... [02:56:25]Read from MH i2c: F0 09 00 [02:56:25]MH_I2C_Read... [02:56:25]Read from MH i2c: F0 09 00 39 0C 00 5B 14 17 67 A0 18 CA 66 12 [02:56:25]GetLastDocTimeStamp 1729565713 [02:56:25]current date 1729565787 [02:56:25]FM_GetShiftState [02:56:25]SAM_PROTO_GetShiftState [02:56:25]wFMCommunicate request_size=4 [02:56:25]MH_SAM_APDU [02:56:25]CAPDU: 80 13 01 00 [02:56:25]Write to MH i2c: E2 08 00 3A 0C 80 13 01 00 00 00 00 00 C3 [02:56:25]Write i2c OK [02:56:25]MH_I2C_Read... [02:56:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:56:26]Read from MH i2c: E2 [02:56:26]MH_I2C_Read... [02:56:26]Read from MH i2c: E2 0E 00 [02:56:26]MH_I2C_Read... [02:56:26]Read from MH i2c: E2 0E 00 3A 0C 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 B8 [02:56:26]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [02:56:26]wFMCommunicate OK [02:56:26]SAM_PROTO_GetShiftState done [02:56:26]FM_GetShiftState done [02:56:26]opened in 1729556094 [02:56:26]opened+sec_in_day 1729642494 [02:56:26]quantity*price = 400050 [02:56:26]sum+1 = 400051 [02:56:26]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.50 ИТОГО: 4000.00 Внесено: 4000.00 СДАЧА: 0.00 НСП 1% : 35.40 НДС 12% : 424.83 Наличными: 4000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 26 22.10.2024 02:56 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 187997 ФПД: 243131615917427 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T025627&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187997&fm=243131615917427&tin=02508201610067®Number=0000000000100030&sum=400000 [02:56:27]StoreToDocumentArchive [02:56:27]shift 461 fd 187997 [02:56:27]save to /storage/0461/doc_00187997 [02:56:27]save last doc name /storage/0461/doc_00187997 to /storage/kkm_last_doc_name [02:56:27]save OK [02:56:27]Clear old archive folders... [02:56:27]ProcessDocumentItem done err = 0, tmpTLVsize=248 [02:56:27]tlvbuf is 01B85AF0 [02:56:27]SAM_PROTO_ClearQueue [02:56:27]wFMCommunicate request_size=4 [02:56:27]MH_SAM_APDU [02:56:27]CAPDU: 80 09 00 00 [02:56:27]Write to MH i2c: E2 08 00 47 0C 80 09 00 00 00 00 00 00 C5 [02:56:27]Write i2c OK [02:56:27]MH_I2C_Read... [02:56:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [02:56:27]Read from MH i2c: E2 [02:56:27]MH_I2C_Read... [02:56:27]Read from MH i2c: E2 03 00 [02:56:27]MH_I2C_Read... [02:56:27]Read from MH i2c: E2 03 00 47 0C 00 90 00 C7 [02:56:27]RAPDU: 90 00 [02:56:27]wFMCommunicate OK [02:56:27]SAM_PROTO_ClearQueue done [02:56:27]KKMCreateOFDPacket [02:56:27]OFDProtocolAddRootSTLVToBuf [02:56:27]FM_MakeSignedData [02:56:27]FM_MakeSignedData [02:56:27]SAM_PROTO_SignData [02:56:27]wFMCommunicate request_size=4 [02:56:27]MH_SAM_APDU [02:56:27]CAPDU: 80 0D 01 02 [02:56:27]Write to MH i2c: E2 08 00 48 0C 80 0D 01 02 00 00 00 00 CD [02:56:27]Write i2c OK [02:56:27]MH_I2C_Read... [02:56:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [02:56:27]Read from MH i2c: E2 [02:56:27]MH_I2C_Read... [02:56:27]Read from MH i2c: E2 03 00 [02:56:27]MH_I2C_Read... [02:56:27]Read from MH i2c: E2 03 00 48 0C 00 90 00 C8 [02:56:27]RAPDU: 90 00 [02:56:27]wFMCommunicate OK [02:56:27]wFMCommunicate request_size=255 [02:56:27]MH_SAM_APDU [02:56:27]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 80 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 A5 00 00 00 00 07 04 06 00 80 1A 06 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 5B 14 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 5D DE 02 00 35 04 06 00 DD 20 7D 99 [02:56:27]Write to MH i2c: E2 02 01 49 0C 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 14 CD 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 B2 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 A5 00 00 00 00 07 04 06 00 80 1A 06 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 5B 14 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 5D DE 02 00 35 04 06 00 DD 20 7D 99 00 00 82 [02:56:27]Write i2c OK [02:56:27]MH_I2C_Read... [02:56:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:56:27]Read from MH i2c: E2 [02:56:27]MH_I2C_Read... [02:56:27]Read from MH i2c: E2 03 00 [02:56:27]MH_I2C_Read... [02:56:27]Read from MH i2c: E2 03 00 49 0C 00 90 00 C9 [02:56:27]RAPDU: 90 00 [02:56:27]wFMCommunicate OK [02:56:27]wFMCommunicate request_size=7 [02:56:27]MH_SAM_APDU [02:56:27]CAPDU: 80 0D 02 02 02 B5 73 [02:56:27]Write to MH i2c: E2 0A 00 4A 0C 80 0D 02 02 02 00 B5 73 00 00 FC [02:56:27]Write i2c OK [02:56:27]MH_I2C_Read... [02:56:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:56:27]Read from MH i2c: E2 [02:56:27]MH_I2C_Read... [02:56:27]Read from MH i2c: E2 03 00 [02:56:27]MH_I2C_Read... [02:56:27]Read from MH i2c: E2 03 00 4A 0C 00 90 00 CA [02:56:27]RAPDU: 90 00 [02:56:27]wFMCommunicate OK [02:56:27]wFMCommunicate request_size=4 [02:56:27]MH_SAM_APDU [02:56:27]CAPDU: 80 0D 03 02 [02:56:27]Write to MH i2c: E2 08 00 4B 0C 80 0D 03 02 00 00 00 00 D2 [02:56:27]Write i2c OK [02:56:27]MH_I2C_Read... [02:56:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [02:56:27]Read from MH i2c: E2 [02:56:27]MH_I2C_Read... [02:56:27]Read from MH i2c: E2 0B 00 [02:56:27]MH_I2C_Read... [02:56:27]Read from MH i2c: E2 0B 00 4B 0C 00 02 15 65 40 C6 E7 49 B6 90 00 3B [02:56:27]RAPDU: 02 15 65 40 C6 E7 49 B6 90 00 [02:56:27]wFMCommunicate OK [02:56:27]SAM_PROTO_SignData done [02:56:27]FM_MakeSignedData done [02:56:27]CreateOFDProtocolMessage [02:56:27]wFMCommunicate request_size=4 [02:56:27]MH_SAM_APDU [02:56:27]CAPDU: 80 11 00 00 [02:56:27]Write to MH i2c: E2 08 00 4C 0C 80 11 00 00 00 00 00 00 D2 [02:56:27]Write i2c OK [02:56:27]MH_I2C_Read... [02:56:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:56:27]Read from MH i2c: E2 [02:56:27]MH_I2C_Read... [02:56:27]Read from MH i2c: E2 17 00 [02:56:27]MH_I2C_Read... [02:56:27]Read from MH i2c: E2 17 00 4C 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 20 [02:56:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [02:56:27]wFMCommunicate OK [02:56:27]CreateOFDProtocolMessage done [02:56:27]OFDSenderStorePacket 187997 [02:56:27]StoreOFDPacket docnum=187997 [02:56:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 47 1C 04 01 40 59 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 14 CD 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 B2 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 A5 00 00 00 00 07 04 06 00 80 1A 06 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 5B 14 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 5D DE 02 00 35 04 06 00 DD 20 7D 99 B5 73 02 15 65 40 C6 E7 49 B6 [02:56:27]CheckFolder [02:56:27]dirname=/storage/ofd_packets [02:56:27]CheckFolder done [02:56:27]ProducePacketName [02:56:27]name=ofd_packets/00187997 [02:56:27]NVStorageSaveData ofd_packets/00187997 [02:56:27]File name is /storage/ofd_packets/00187997 [02:56:27]Write 298 bytes [02:56:27]NVStorageSaveData done [02:56:27]OFDSenderStorePacket done [02:56:27]KKMCreateOFDPacket done [02:56:27]NVStorageSaveData kkm_last_timestamp [02:56:27]File name is /storage/kkm_last_timestamp [02:56:27]Write 4 bytes [02:56:27]NVStorageSaveData done [02:56:27]ExternCall_PrintAddStr [02:56:27]wPrintStart [02:56:27]Write to MH i2c: 01 00 00 4D 0C 59 [02:56:27]Write i2c OK [02:56:27]MH_I2C_Read... [02:56:27]Read from MH i2c: 01 [02:56:27]MH_I2C_Read... [02:56:27]Read from MH i2c: 01 07 00 [02:56:27]MH_I2C_Read... [02:56:27]Read from MH i2c: 01 07 00 4D 0C 00 00 00 00 00 FF 0F 6E [02:56:27]RasterBufferAndPrint [02:56:27]line Счет N : (1)210048 [02:56:27]line ИНН: 02508201610067 [02:56:27]line Контрольно-Кассовый Чек [02:56:27]line ПРОДАЖА [02:56:27]line ТРК (МРК, ГНК) : 51 [02:56:27]line Товар: 2710194210 [02:56:27]line ДТ-К-5 [02:56:27]line 52.500 * 76.20 [02:56:27]line = 4000.50 [02:56:27]line НДС 12% НСП 1% [02:56:27]line > о реализуемом товаре [02:56:27]line ОКРУГЛЕНИЕ: -0.50 [02:56:27]line ИТОГО: 4000.00 [02:56:27]line Внесено: 4000.00 [02:56:27]line СДАЧА: 0.00 [02:56:27]line НСП 1% : 35.40 [02:56:27]line НДС 12% : 424.83 [02:56:27]line Наличными: 4000.00 [02:56:27]line Безнал.: 0.00 [02:56:27]line Место: АЗС № 86 "Партнер Нефть" [02:56:27]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [02:56:27]line СНО: Общий режим [02:56:27]line Чек 26 22.10.2024 02:56 [02:56:27]line Смена: 461 ФФД: 1.0 [02:56:27]line ЗНМ: 0300000155 [02:56:27]line РНМ: 0000000000100030 [02:56:27]line Версия ККМ: 001 [02:56:27]line ФМ: 0000000000965340 [02:56:27]line ФД: 187997 [02:56:27]line ФПД: 243131615917427 [02:56:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T025627&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187997&fm=243131615917427&tin=02508201610067®Number=0000000000100030&sum=400000 [02:56:27]written 0, free lines is 4095 [02:56:27]OFD Sender: Processing packet 187997 [packets to send 1062, broken 1061] [02:56:27]ProducePacketName [02:56:27]name=ofd_packets/00187997 [02:56:27]OFD Sender: To server: pG, [02:56:27]CommunicateWithHost lk.salyk.kg:30040 [02:56:27]ConnectInit lk.salyk.kg [02:56:27]Connected sock=10 [02:56:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 47 1C 04 01 40 59 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 14 CD 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 B2 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 A5 00 00 00 00 07 04 06 00 80 1A 06 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 5B 14 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 5D DE 02 00 35 04 06 00 DD 20 7D 99 B5 73 02 15 65 40 C6 E7 49 B6 [02:56:28]Write to MH i2c: 01 00 00 78 0C 84 [02:56:28]Write i2c OK [02:56:28]MH_I2C_Read... [02:56:28]Read from MH i2c: 01 [02:56:28]MH_I2C_Read... [02:56:28]Read from MH i2c: 01 07 00 [02:56:28]MH_I2C_Read... [02:56:28]Read from MH i2c: 01 07 00 78 0C 00 00 00 00 00 5A 0C F1 [02:56:28]RasterBufferAndPrint [02:56:28]line [02:56:28]line [02:56:28]line [02:56:28]line [02:56:28]line [02:56:28]written 0, free lines is 3166 [02:56:28]MH_Cut [02:56:28]Write to MH i2c: D1 01 00 7F 0C 01 5D [02:56:28]Write i2c OK [02:56:28]MH_I2C_Read... [02:56:28]Read from MH i2c: D1 [02:56:28]MH_I2C_Read... [02:56:28]Read from MH i2c: D1 01 00 [02:56:28]MH_I2C_Read... [02:56:28]Read from MH i2c: D1 01 00 7F 0C 00 5C [02:56:28]Write to MH i2c: 01 00 00 80 0C 8C [02:56:28]Write i2c OK [02:56:28]MH_I2C_Read... [02:56:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 90 0E 47 00 09 5A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 5D DE 02 00 F4 03 04 00 49 BE 16 67 B6 04 01 00 00 05 E5 60 30 BB 72 A9 D9 [02:56:28]CommunicateWithHost err = 0 [02:56:28]CheckOFDResponse [02:56:28]1017 (14) - 77093643461234 [02:56:28]1041 (16) - 0000000000965340 [02:56:28]1040 (4) - 187997 [02:56:28]1012 (4) - 21.10.2024 20:49 [02:56:28]1206 (1) - 0 [02:56:28]OFD Sender: Remove packet 187997 [02:56:28]ProducePacketName [02:56:28]name=ofd_packets/00187997 [02:56:28]NVStorageDeleteData [02:56:28]OFD Sender: No OFD packet to send [02:56:29]*** Cut start [02:56:29]*** Partial cut [02:56:29]*** CUTSNS_PIN = 1 [02:56:29]*** CUTSNS_PIN = 0 [02:56:29]*** Brake cut motor [02:56:30]Read from MH i2c: 01 [02:56:30]MH_I2C_Read... [02:56:30]*** Stop cut motor [02:56:30]*** Cut end [02:56:30]Read from MH i2c: 01 07 00 [02:56:30]MH_I2C_Read... [02:56:30]Read from MH i2c: 01 07 00 80 0C 00 00 00 00 00 FF 0F A1 [02:56:30]process_action close_receipt done [02:56:30]requested_data is exist [02:56:30]produce_requested_data [02:56:30]requested_item fm.sn is exist - process it [02:56:30]wFMCommunicate request_size=4 [02:56:30]MH_SAM_APDU [02:56:30]CAPDU: 80 11 00 00 [02:56:30]Write to MH i2c: E2 08 00 81 0C 80 11 00 00 00 00 00 00 07 [02:56:30]Write i2c OK [02:56:30]MH_I2C_Read... [02:56:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:56:30]Read from MH i2c: E2 [02:56:30]MH_I2C_Read... [02:56:30]Read from MH i2c: E2 17 00 [02:56:30]MH_I2C_Read... [02:56:30]Read from MH i2c: E2 17 00 81 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 55 [02:56:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [02:56:30]wFMCommunicate OK [02:56:30]requested_item fd.num is exist - process it [02:56:30]SAM_PROTO_GetFieldsCounters [02:56:30]wFMCommunicate request_size=4 [02:56:30]MH_SAM_APDU [02:56:30]CAPDU: 80 13 00 00 [02:56:30]Write to MH i2c: E2 08 00 82 0C 80 13 00 00 00 00 00 00 0A [02:56:30]Write i2c OK [02:56:30]MH_I2C_Read... [02:56:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [02:56:30]Read from MH i2c: E2 [02:56:30]MH_I2C_Read... [02:56:30]Read from MH i2c: E2 62 00 [02:56:30]MH_I2C_Read... [02:56:30]Read from MH i2c: E2 62 00 82 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 5D DE 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 1A 00 00 00 5E 04 04 00 1A 00 00 00 57 04 04 00 1B 00 00 00 19 04 04 00 00 00 00 00 90 00 6A [02:56:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 5D DE 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 1A 00 00 00 5E 04 04 00 1A 00 00 00 57 04 04 00 1B 00 00 00 19 04 04 00 00 00 00 00 90 00 [02:56:30]wFMCommunicate OK [02:56:30]SAM_PROTO_GetFieldsCounters done [02:56:30]requested_item shift.num is exist - process it [02:56:30]requested_item shift.opened is exist - process it [02:56:30]req_shift_opened [02:56:30]FM_GetShiftState [02:56:30]SAM_PROTO_GetShiftState [02:56:30]wFMCommunicate request_size=4 [02:56:30]MH_SAM_APDU [02:56:30]CAPDU: 80 13 01 00 [02:56:30]Write to MH i2c: E2 08 00 83 0C 80 13 01 00 00 00 00 00 0C [02:56:30]Write i2c OK [02:56:30]MH_I2C_Read... [02:56:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:56:30]Read from MH i2c: E2 [02:56:30]MH_I2C_Read... [02:56:30]Read from MH i2c: E2 0E 00 [02:56:30]MH_I2C_Read... [02:56:30]Read from MH i2c: E2 0E 00 83 0C 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 01 [02:56:30]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [02:56:30]wFMCommunicate OK [02:56:30]SAM_PROTO_GetShiftState done [02:56:30]FM_GetShiftState done [02:56:30]req_shift_opened done [02:56:30]requested_item shift.open_date is exist - process it [02:56:30]req_shift_open_date [02:56:30]req_shift_open_date done [02:56:30]produce_requested_data done [02:56:30]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187997,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [02:56:30]process_action_free close_receipt [02:56:30]json_value_free [02:56:30]json_value_free done [02:56:30]process_json_proto returns [02:56:30]Send response to host [02:56:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187997,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [02:56:30]free response buf [02:56:30]execute_script done [02:56:30]execute_script returns [02:56:30]free content buf [02:56:30]Sock 8.Close socket [02:56:30]Sock 8.Thread stoped [02:56:33]OFD Sender: No OFD packet to send [02:56:38]OFD Sender: No OFD packet to send [02:56:43]OFD Sender: No OFD packet to send [02:56:48]OFD Sender: No OFD packet to send [02:56:53]OFD Sender: No OFD packet to send [02:56:58]OFD Sender: No OFD packet to send [02:57:04]OFD Sender: No OFD packet to send [02:57:09]OFD Sender: No OFD packet to send [02:57:14]OFD Sender: No OFD packet to send [02:57:19]OFD Sender: No OFD packet to send [02:57:24]OFD Sender: No OFD packet to send [02:57:29]OFD Sender: No OFD packet to send [02:57:34]OFD Sender: No OFD packet to send [02:57:39]OFD Sender: No OFD packet to send [02:57:44]OFD Sender: No OFD packet to send [02:57:49]OFD Sender: No OFD packet to send [02:57:54]OFD Sender: No OFD packet to send [02:57:59]OFD Sender: No OFD packet to send [02:58:04]OFD Sender: No OFD packet to send [02:58:09]OFD Sender: No OFD packet to send [02:58:14]OFD Sender: No OFD packet to send [02:58:19]OFD Sender: No OFD packet to send [02:58:24]OFD Sender: No OFD packet to send [02:58:29]OFD Sender: No OFD packet to send [02:58:34]OFD Sender: No OFD packet to send [02:58:39]OFD Sender: No OFD packet to send [02:58:44]OFD Sender: No OFD packet to send [02:58:49]OFD Sender: No OFD packet to send [02:58:54]OFD Sender: No OFD packet to send [02:58:59]OFD Sender: No OFD packet to send [02:59:04]OFD Sender: No OFD packet to send [02:59:09]OFD Sender: No OFD packet to send [02:59:14]OFD Sender: No OFD packet to send [02:59:19]OFD Sender: No OFD packet to send [02:59:24]OFD Sender: No OFD packet to send [02:59:29]OFD Sender: No OFD packet to send [02:59:31]accept exits with 9 [02:59:31]New connection [02:59:31]New thread 3067198820 created [02:59:31]Thread 3067055460 joined [02:59:31]Waiting for new connection... [02:59:31] Sock 9.Parse request [02:59:31]Sock 9.Check first char [02:59:31]Sock 9.First char is OK [02:59:31]request: POST /json_proto HTTP/1.0 [02:59:31]Method: POST [02:59:31]URL: /json_proto [02:59:31]Method is POST - this is cgi request [02:59:31]url: /json_proto [02:59:31]query_string will be loaded in cgi processing [02:59:31]execute_cgi json_proto POST (null) [02:59:31]execute_cgi path=json_proto method=POST [02:59:31]POST find Content-Length [02:59:31]Host: 172.17.42.131:8080 [02:59:31]Content-Length: 688 [02:59:31]Content-Type: application/json [02:59:31] [02:59:31]POST finish read [02:59:31]Found Content-Length = 688 [02:59:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210049", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 12.960, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:59:31]execute_script... [02:59:31]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210049", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 12.960, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:59:31]POST & json_proto [02:59:31]process_json_proto [02:59:31]json parsed OK: [02:59:31]protocol is kg_v1.0 [02:59:31]action value=close_receipt [02:59:31]process_action close_receipt [02:59:31]cmd_close_receipt [02:59:31]MH_GetDate [02:59:31]Write to MH i2c: F0 00 00 84 0C 7F [02:59:31]Write i2c OK [02:59:31]MH_I2C_Read... [02:59:31]Read from MH i2c: F0 [02:59:31]MH_I2C_Read... [02:59:31]Read from MH i2c: F0 09 00 [02:59:31]MH_I2C_Read... [02:59:31]Read from MH i2c: F0 09 00 84 0C 00 14 15 17 67 A0 18 CA 66 17 [02:59:31]GetLastDocTimeStamp 1729565787 [02:59:31]current date 1729565972 [02:59:31]FM_GetShiftState [02:59:31]SAM_PROTO_GetShiftState [02:59:31]wFMCommunicate request_size=4 [02:59:31]MH_SAM_APDU [02:59:31]CAPDU: 80 13 01 00 [02:59:31]Write to MH i2c: E2 08 00 85 0C 80 13 01 00 00 00 00 00 0E [02:59:31]Write i2c OK [02:59:31]MH_I2C_Read... [02:59:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:59:31]Read from MH i2c: E2 [02:59:31]MH_I2C_Read... [02:59:31]Read from MH i2c: E2 0E 00 [02:59:31]MH_I2C_Read... [02:59:31]Read from MH i2c: E2 0E 00 85 0C 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 03 [02:59:31]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [02:59:31]wFMCommunicate OK [02:59:31]SAM_PROTO_GetShiftState done [02:59:31]FM_GetShiftState done [02:59:31]opened in 1729556094 [02:59:31]opened+sec_in_day 1729642494 [02:59:31]quantity*price = 100051 [02:59:31]sum+1 = 100052 [02:59:31]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 27 22.10.2024 02:59 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 187998 ФПД: 124374844288465 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T025932&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187998&fm=124374844288465&tin=02508201610067®Number=0000000000100030&sum=100000 [02:59:32]StoreToDocumentArchive [02:59:32]shift 461 fd 187998 [02:59:32]save to /storage/0461/doc_00187998 [02:59:32]save last doc name /storage/0461/doc_00187998 to /storage/kkm_last_doc_name [02:59:32]save OK [02:59:32]Clear old archive folders... [02:59:32]ProcessDocumentItem done err = 0, tmpTLVsize=257 [02:59:32]tlvbuf is 01B946A0 [02:59:32]SAM_PROTO_ClearQueue [02:59:32]wFMCommunicate request_size=4 [02:59:32]MH_SAM_APDU [02:59:32]CAPDU: 80 09 00 00 [02:59:32]Write to MH i2c: E2 08 00 92 0C 80 09 00 00 00 00 00 00 10 [02:59:32]Write i2c OK [02:59:32]MH_I2C_Read... [02:59:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [02:59:32]Read from MH i2c: E2 [02:59:32]MH_I2C_Read... [02:59:32]Read from MH i2c: E2 03 00 [02:59:32]MH_I2C_Read... [02:59:32]Read from MH i2c: E2 03 00 92 0C 00 90 00 12 [02:59:32]RAPDU: 90 00 [02:59:32]wFMCommunicate OK [02:59:32]SAM_PROTO_ClearQueue done [02:59:32]KKMCreateOFDPacket [02:59:32]OFDProtocolAddRootSTLVToBuf [02:59:32]FM_MakeSignedData [02:59:32]FM_MakeSignedData [02:59:32]SAM_PROTO_SignData [02:59:32]wFMCommunicate request_size=4 [02:59:32]MH_SAM_APDU [02:59:32]CAPDU: 80 0D 01 02 [02:59:32]Write to MH i2c: E2 08 00 93 0C 80 0D 01 02 00 00 00 00 18 [02:59:32]Write i2c OK [02:59:32]MH_I2C_Read... [02:59:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [02:59:32]Read from MH i2c: E2 [02:59:32]MH_I2C_Read... [02:59:32]Read from MH i2c: E2 03 00 [02:59:32]MH_I2C_Read... [02:59:32]Read from MH i2c: E2 03 00 93 0C 00 90 00 13 [02:59:32]RAPDU: 90 00 [02:59:32]wFMCommunicate OK [02:59:32]wFMCommunicate request_size=255 [02:59:32]MH_SAM_APDU [02:59:32]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 14 15 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 5E DE 02 [02:59:32]Write to MH i2c: E2 02 01 94 0C 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 14 15 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 5E DE 02 00 00 43 [02:59:32]Write i2c OK [02:59:32]MH_I2C_Read... [02:59:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:59:32]Read from MH i2c: E2 [02:59:32]MH_I2C_Read... [02:59:32]Read from MH i2c: E2 03 00 [02:59:32]MH_I2C_Read... [02:59:32]Read from MH i2c: E2 03 00 94 0C 00 90 00 14 [02:59:32]RAPDU: 90 00 [02:59:32]wFMCommunicate OK [02:59:32]wFMCommunicate request_size=16 [02:59:32]MH_SAM_APDU [02:59:32]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 71 1E 46 69 AD D1 [02:59:32]Write to MH i2c: E2 13 00 95 0C 80 0D 02 02 0B 00 00 35 04 06 00 71 1E 46 69 AD D1 00 00 2C [02:59:32]Write i2c OK [02:59:32]MH_I2C_Read... [02:59:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:59:32]Read from MH i2c: E2 [02:59:32]MH_I2C_Read... [02:59:32]Read from MH i2c: E2 03 00 [02:59:32]MH_I2C_Read... [02:59:32]Read from MH i2c: E2 03 00 95 0C 00 90 00 15 [02:59:32]RAPDU: 90 00 [02:59:32]wFMCommunicate OK [02:59:32]wFMCommunicate request_size=4 [02:59:32]MH_SAM_APDU [02:59:32]CAPDU: 80 0D 03 02 [02:59:32]Write to MH i2c: E2 08 00 96 0C 80 0D 03 02 00 00 00 00 1D [02:59:32]Write i2c OK [02:59:32]MH_I2C_Read... [02:59:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [02:59:32]Read from MH i2c: E2 [02:59:32]MH_I2C_Read... [02:59:32]Read from MH i2c: E2 0B 00 [02:59:32]MH_I2C_Read... [02:59:32]Read from MH i2c: E2 0B 00 96 0C 00 90 E8 92 FE 0B 0E 00 32 90 00 71 [02:59:32]RAPDU: 90 E8 92 FE 0B 0E 00 32 90 00 [02:59:32]wFMCommunicate OK [02:59:32]SAM_PROTO_SignData done [02:59:32]FM_MakeSignedData done [02:59:32]CreateOFDProtocolMessage [02:59:32]wFMCommunicate request_size=4 [02:59:32]MH_SAM_APDU [02:59:32]CAPDU: 80 11 00 00 [02:59:32]Write to MH i2c: E2 08 00 97 0C 80 11 00 00 00 00 00 00 1D [02:59:32]Write i2c OK [02:59:32]MH_I2C_Read... [02:59:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:59:32]Read from MH i2c: E2 [02:59:32]MH_I2C_Read... [02:59:32]Read from MH i2c: E2 17 00 [02:59:32]MH_I2C_Read... [02:59:32]Read from MH i2c: E2 17 00 97 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 6B [02:59:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [02:59:32]wFMCommunicate OK [02:59:32]CreateOFDProtocolMessage done [02:59:32]OFDSenderStorePacket 187998 [02:59:32]StoreOFDPacket docnum=187998 [02:59:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 21 CF 0D 01 B4 1C 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 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 14 15 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 5E DE 02 00 35 04 06 00 71 1E 46 69 AD D1 90 E8 92 FE 0B 0E 00 32 [02:59:32]CheckFolder [02:59:32]dirname=/storage/ofd_packets [02:59:32]CheckFolder done [02:59:32]ProducePacketName [02:59:32]name=ofd_packets/00187998 [02:59:32]NVStorageSaveData ofd_packets/00187998 [02:59:32]File name is /storage/ofd_packets/00187998 [02:59:32]Write 307 bytes [02:59:32]NVStorageSaveData done [02:59:32]OFDSenderStorePacket done [02:59:32]KKMCreateOFDPacket done [02:59:32]NVStorageSaveData kkm_last_timestamp [02:59:32]File name is /storage/kkm_last_timestamp [02:59:32]Write 4 bytes [02:59:32]NVStorageSaveData done [02:59:32]ExternCall_PrintAddStr [02:59:32]wPrintStart [02:59:32]Write to MH i2c: 01 00 00 98 0C A4 [02:59:32]Write i2c OK [02:59:32]MH_I2C_Read... [02:59:32]Read from MH i2c: 01 [02:59:32]MH_I2C_Read... [02:59:32]Read from MH i2c: 01 07 00 [02:59:32]MH_I2C_Read... [02:59:32]Read from MH i2c: 01 07 00 98 0C 00 00 00 00 00 FF 0F B9 [02:59:32]RasterBufferAndPrint [02:59:32]line Счет N : (1)210049 [02:59:32]line ИНН: 02508201610067 [02:59:32]line Контрольно-Кассовый Чек [02:59:32]line ПРОДАЖА [02:59:32]line ТРК (МРК, ГНК) : 31 [02:59:32]line Товар: 2710194210 [02:59:32]line D-ENERGY ДТ-К-5 [02:59:32]line 12.960 * 77.20 [02:59:32]line = 1000.51 [02:59:32]line НДС 12% НСП 1% [02:59:32]line > о реализуемом товаре [02:59:32]line ОКРУГЛЕНИЕ: -0.51 [02:59:32]line ИТОГО: 1000.00 [02:59:32]line Внесено: 1000.00 [02:59:32]line СДАЧА: 0.00 [02:59:32]line НСП 1% : 8.85 [02:59:32]line НДС 12% : 106.25 [02:59:32]line Наличными: 1000.00 [02:59:32]line Безнал.: 0.00 [02:59:32]line Место: АЗС № 86 "Партнер Нефть" [02:59:32]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [02:59:32]line СНО: Общий режим [02:59:32]line Чек 27 22.10.2024 02:59 [02:59:32]line Смена: 461 ФФД: 1.0 [02:59:32]line ЗНМ: 0300000155 [02:59:32]line РНМ: 0000000000100030 [02:59:32]line Версия ККМ: 001 [02:59:32]line ФМ: 0000000000965340 [02:59:32]line ФД: 187998 [02:59:32]line ФПД: 124374844288465 [02:59:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T025932&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187998&fm=124374844288465&tin=02508201610067®Number=0000000000100030&sum=100000 [02:59:32]written 0, free lines is 4095 [02:59:32]OFD Sender: Processing packet 187998 [packets to send 1062, broken 1061] [02:59:32]ProducePacketName [02:59:32]name=ofd_packets/00187998 [02:59:32]OFD Sender: To server: pG, [02:59:32]CommunicateWithHost lk.salyk.kg:30040 [02:59:32]ConnectInit lk.salyk.kg [02:59:33]Connected sock=10 [02:59:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 21 CF 0D 01 B4 1C 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 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 14 15 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 5E DE 02 00 35 04 06 00 71 1E 46 69 AD D1 90 E8 92 FE 0B 0E 00 32 [02:59:33]Write to MH i2c: 01 00 00 C3 0C CF [02:59:33]Write i2c OK [02:59:33]MH_I2C_Read... [02:59:33]Read from MH i2c: 01 [02:59:33]MH_I2C_Read... [02:59:33]Read from MH i2c: 01 07 00 [02:59:33]MH_I2C_Read... [02:59:33]Read from MH i2c: 01 07 00 C3 0C 00 00 00 00 00 52 0C 34 [02:59:33]RasterBufferAndPrint [02:59:33]line [02:59:33]line [02:59:33]line [02:59:33]line [02:59:33]line [02:59:33]written 0, free lines is 3159 [02:59:33]MH_Cut [02:59:33]Write to MH i2c: D1 01 00 CA 0C 01 A8 [02:59:33]Write i2c OK [02:59:33]MH_I2C_Read... [02:59:33]Read from MH i2c: D1 [02:59:33]MH_I2C_Read... [02:59:33]Read from MH i2c: D1 01 00 [02:59:33]MH_I2C_Read... [02:59:33]Read from MH i2c: D1 01 00 CA 0C 00 A7 [02:59:33]Write to MH i2c: 01 00 00 CB 0C D7 [02:59:33]Write i2c OK [02:59:33]MH_I2C_Read... [02:59:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 7E F8 47 00 DC 11 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 5E DE 02 00 F4 03 04 00 02 BF 16 67 B6 04 01 00 00 C7 A6 92 95 0F 6F D2 2E [02:59:33]CommunicateWithHost err = 0 [02:59:33]CheckOFDResponse [02:59:33]1017 (14) - 77093643461234 [02:59:33]1041 (16) - 0000000000965340 [02:59:33]1040 (4) - 187998 [02:59:33]1012 (4) - 21.10.2024 20:52 [02:59:33]1206 (1) - 0 [02:59:33]OFD Sender: Remove packet 187998 [02:59:33]ProducePacketName [02:59:33]name=ofd_packets/00187998 [02:59:33]NVStorageDeleteData [02:59:34]OFD Sender: No OFD packet to send [02:59:34]*** Cut start [02:59:34]*** Partial cut [02:59:34]*** CUTSNS_PIN = 1 [02:59:34]*** CUTSNS_PIN = 0 [02:59:34]*** Brake cut motor [02:59:35]Read from MH i2c: 01 [02:59:35]MH_I2C_Read... [02:59:35]*** Stop cut motor [02:59:35]*** Cut end [02:59:35]Read from MH i2c: 01 07 00 [02:59:35]MH_I2C_Read... [02:59:35]Read from MH i2c: 01 07 00 CB 0C 00 00 00 00 00 FF 0F EC [02:59:35]process_action close_receipt done [02:59:35]requested_data is exist [02:59:35]produce_requested_data [02:59:35]requested_item fm.sn is exist - process it [02:59:35]wFMCommunicate request_size=4 [02:59:35]MH_SAM_APDU [02:59:35]CAPDU: 80 11 00 00 [02:59:35]Write to MH i2c: E2 08 00 CC 0C 80 11 00 00 00 00 00 00 52 [02:59:35]Write i2c OK [02:59:35]MH_I2C_Read... [02:59:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:59:35]Read from MH i2c: E2 [02:59:35]MH_I2C_Read... [02:59:35]Read from MH i2c: E2 17 00 [02:59:35]MH_I2C_Read... [02:59:35]Read from MH i2c: E2 17 00 CC 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 A0 [02:59:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [02:59:35]wFMCommunicate OK [02:59:35]requested_item fd.num is exist - process it [02:59:35]SAM_PROTO_GetFieldsCounters [02:59:35]wFMCommunicate request_size=4 [02:59:35]MH_SAM_APDU [02:59:35]CAPDU: 80 13 00 00 [02:59:35]Write to MH i2c: E2 08 00 CD 0C 80 13 00 00 00 00 00 00 55 [02:59:35]Write i2c OK [02:59:35]MH_I2C_Read... [02:59:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [02:59:35]Read from MH i2c: E2 [02:59:35]MH_I2C_Read... [02:59:35]Read from MH i2c: E2 62 00 [02:59:35]MH_I2C_Read... [02:59:35]Read from MH i2c: E2 62 00 CD 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 5E DE 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 1B 00 00 00 5E 04 04 00 1B 00 00 00 57 04 04 00 1C 00 00 00 19 04 04 00 00 00 00 00 90 00 B9 [02:59:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 5E DE 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 1B 00 00 00 5E 04 04 00 1B 00 00 00 57 04 04 00 1C 00 00 00 19 04 04 00 00 00 00 00 90 00 [02:59:35]wFMCommunicate OK [02:59:35]SAM_PROTO_GetFieldsCounters done [02:59:35]requested_item shift.num is exist - process it [02:59:35]requested_item shift.opened is exist - process it [02:59:35]req_shift_opened [02:59:35]FM_GetShiftState [02:59:35]SAM_PROTO_GetShiftState [02:59:35]wFMCommunicate request_size=4 [02:59:35]MH_SAM_APDU [02:59:35]CAPDU: 80 13 01 00 [02:59:35]Write to MH i2c: E2 08 00 CE 0C 80 13 01 00 00 00 00 00 57 [02:59:35]Write i2c OK [02:59:35]MH_I2C_Read... [02:59:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:59:35]Read from MH i2c: E2 [02:59:35]MH_I2C_Read... [02:59:35]Read from MH i2c: E2 0E 00 [02:59:35]MH_I2C_Read... [02:59:35]Read from MH i2c: E2 0E 00 CE 0C 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 4C [02:59:35]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [02:59:35]wFMCommunicate OK [02:59:35]SAM_PROTO_GetShiftState done [02:59:35]FM_GetShiftState done [02:59:35]req_shift_opened done [02:59:35]requested_item shift.open_date is exist - process it [02:59:35]req_shift_open_date [02:59:35]req_shift_open_date done [02:59:35]produce_requested_data done [02:59:35]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187998,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [02:59:35]process_action_free close_receipt [02:59:35]json_value_free [02:59:35]json_value_free done [02:59:35]process_json_proto returns [02:59:35]Send response to host [02:59:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187998,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [02:59:35]free response buf [02:59:35]execute_script done [02:59:35]execute_script returns [02:59:35]free content buf [02:59:35]Sock 9.Close socket [02:59:35]Sock 9.Thread stoped [02:59:39]OFD Sender: No OFD packet to send [02:59:44]OFD Sender: No OFD packet to send [02:59:49]OFD Sender: No OFD packet to send [02:59:54]OFD Sender: No OFD packet to send [02:59:59]OFD Sender: No OFD packet to send [03:00:04]OFD Sender: No OFD packet to send [03:00:09]OFD Sender: No OFD packet to send [03:00:14]OFD Sender: No OFD packet to send [03:00:19]OFD Sender: No OFD packet to send [03:00:24]OFD Sender: No OFD packet to send [03:00:29]OFD Sender: No OFD packet to send [03:00:34]OFD Sender: No OFD packet to send [03:00:39]OFD Sender: No OFD packet to send [03:00:44]OFD Sender: No OFD packet to send [03:00:49]OFD Sender: No OFD packet to send [03:00:54]OFD Sender: No OFD packet to send [03:00:59]OFD Sender: No OFD packet to send [03:01:04]OFD Sender: No OFD packet to send [03:01:09]OFD Sender: No OFD packet to send [03:01:14]OFD Sender: No OFD packet to send [03:01:19]OFD Sender: No OFD packet to send [03:01:24]OFD Sender: No OFD packet to send [03:01:29]OFD Sender: No OFD packet to send [03:01:34]OFD Sender: No OFD packet to send [03:01:39]OFD Sender: No OFD packet to send [03:01:44]OFD Sender: No OFD packet to send [03:01:49]OFD Sender: No OFD packet to send [03:01:54]OFD Sender: No OFD packet to send [03:01:59]OFD Sender: No OFD packet to send [03:02:04]OFD Sender: No OFD packet to send [03:02:09]OFD Sender: No OFD packet to send [03:02:14]OFD Sender: No OFD packet to send [03:02:19]OFD Sender: No OFD packet to send [03:02:24]OFD Sender: No OFD packet to send [03:02:29]OFD Sender: No OFD packet to send [03:02:34]OFD Sender: No OFD packet to send [03:02:39]OFD Sender: No OFD packet to send [03:02:44]OFD Sender: No OFD packet to send [03:02:49]OFD Sender: No OFD packet to send [03:02:54]OFD Sender: No OFD packet to send [03:02:59]OFD Sender: No OFD packet to send [03:03:04]OFD Sender: No OFD packet to send [03:03:09]OFD Sender: No OFD packet to send [03:03:15]OFD Sender: No OFD packet to send [03:03:20]OFD Sender: No OFD packet to send [03:03:25]OFD Sender: No OFD packet to send [03:03:30]OFD Sender: No OFD packet to send [03:03:35]OFD Sender: No OFD packet to send [03:03:40]OFD Sender: No OFD packet to send [03:03:45]OFD Sender: No OFD packet to send [03:03:50]OFD Sender: No OFD packet to send [03:03:55]OFD Sender: No OFD packet to send [03:04:00]OFD Sender: No OFD packet to send [03:04:05]OFD Sender: No OFD packet to send [03:04:10]OFD Sender: No OFD packet to send [03:04:15]OFD Sender: No OFD packet to send [03:04:19]accept exits with 8 [03:04:19]New connection [03:04:19]New thread 3067055460 created [03:04:19]Thread 3067198820 joined [03:04:19]Waiting for new connection... [03:04:19] Sock 8.Parse request [03:04:19]Sock 8.Check first char [03:04:19]Sock 8.First char is OK [03:04:19]request: POST /json_proto HTTP/1.0 [03:04:19]Method: POST [03:04:19]URL: /json_proto [03:04:19]Method is POST - this is cgi request [03:04:19]url: /json_proto [03:04:19]query_string will be loaded in cgi processing [03:04:19]execute_cgi json_proto POST (null) [03:04:19]execute_cgi path=json_proto method=POST [03:04:19]POST find Content-Length [03:04:19]Host: 172.17.42.131:8080 [03:04:19]Content-Length: 688 [03:04:19]Content-Type: application/json [03:04:19] [03:04:19]POST finish read [03:04:19]Found Content-Length = 688 [03:04:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210050", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 12.960, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:04:19]execute_script... [03:04: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)210050", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 12.960, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:04:19]POST & json_proto [03:04:19]process_json_proto [03:04:19]json parsed OK: [03:04:19]protocol is kg_v1.0 [03:04:19]action value=close_receipt [03:04:19]process_action close_receipt [03:04:19]cmd_close_receipt [03:04:19]MH_GetDate [03:04:19]Write to MH i2c: F0 00 00 CF 0C CA [03:04:19]Write i2c OK [03:04:19]MH_I2C_Read... [03:04:19]Read from MH i2c: F0 [03:04:19]MH_I2C_Read... [03:04:19]Read from MH i2c: F0 09 00 [03:04:19]MH_I2C_Read... [03:04:19]Read from MH i2c: F0 09 00 CF 0C 00 35 16 17 67 A0 18 CA 66 84 [03:04:19]GetLastDocTimeStamp 1729565972 [03:04:19]current date 1729566261 [03:04:19]FM_GetShiftState [03:04:19]SAM_PROTO_GetShiftState [03:04:19]wFMCommunicate request_size=4 [03:04:19]MH_SAM_APDU [03:04:19]CAPDU: 80 13 01 00 [03:04:19]Write to MH i2c: E2 08 00 D0 0C 80 13 01 00 00 00 00 00 59 [03:04:19]Write i2c OK [03:04:19]MH_I2C_Read... [03:04:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:04:19]Read from MH i2c: E2 [03:04:19]MH_I2C_Read... [03:04:19]Read from MH i2c: E2 0E 00 [03:04:19]MH_I2C_Read... [03:04:19]Read from MH i2c: E2 0E 00 D0 0C 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 4E [03:04:19]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [03:04:19]wFMCommunicate OK [03:04:19]SAM_PROTO_GetShiftState done [03:04:19]FM_GetShiftState done [03:04:19]opened in 1729556094 [03:04:19]opened+sec_in_day 1729642494 [03:04:19]quantity*price = 100051 [03:04:19]sum+1 = 100052 [03:04:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 28 22.10.2024 03:04 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 187999 ФПД: 185714655761606 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T030421&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187999&fm=185714655761606&tin=02508201610067®Number=0000000000100030&sum=100000 [03:04:21]StoreToDocumentArchive [03:04:21]shift 461 fd 187999 [03:04:21]save to /storage/0461/doc_00187999 [03:04:21]save last doc name /storage/0461/doc_00187999 to /storage/kkm_last_doc_name [03:04:21]save OK [03:04:21]Clear old archive folders... [03:04:21]ProcessDocumentItem done err = 0, tmpTLVsize=257 [03:04:21]tlvbuf is 01BC9290 [03:04:21]SAM_PROTO_ClearQueue [03:04:21]wFMCommunicate request_size=4 [03:04:21]MH_SAM_APDU [03:04:21]CAPDU: 80 09 00 00 [03:04:21]Write to MH i2c: E2 08 00 DD 0C 80 09 00 00 00 00 00 00 5B [03:04:21]Write i2c OK [03:04:21]MH_I2C_Read... [03:04:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [03:04:21]Read from MH i2c: E2 [03:04:21]MH_I2C_Read... [03:04:21]Read from MH i2c: E2 03 00 [03:04:21]MH_I2C_Read... [03:04:21]Read from MH i2c: E2 03 00 DD 0C 00 90 00 5D [03:04:21]RAPDU: 90 00 [03:04:21]wFMCommunicate OK [03:04:21]SAM_PROTO_ClearQueue done [03:04:21]KKMCreateOFDPacket [03:04:21]OFDProtocolAddRootSTLVToBuf [03:04:21]FM_MakeSignedData [03:04:21]FM_MakeSignedData [03:04:21]SAM_PROTO_SignData [03:04:21]wFMCommunicate request_size=4 [03:04:21]MH_SAM_APDU [03:04:21]CAPDU: 80 0D 01 02 [03:04:21]Write to MH i2c: E2 08 00 DE 0C 80 0D 01 02 00 00 00 00 63 [03:04:21]Write i2c OK [03:04:21]MH_I2C_Read... [03:04:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [03:04:21]Read from MH i2c: E2 [03:04:21]MH_I2C_Read... [03:04:21]Read from MH i2c: E2 03 00 [03:04:21]MH_I2C_Read... [03:04:21]Read from MH i2c: E2 03 00 DE 0C 00 90 00 5E [03:04:21]RAPDU: 90 00 [03:04:21]wFMCommunicate OK [03:04:21]wFMCommunicate request_size=255 [03:04:21]MH_SAM_APDU [03:04:21]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 35 16 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 5F DE 02 [03:04:21]Write to MH i2c: E2 02 01 DF 0C 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 35 16 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 5F DE 02 00 00 B2 [03:04:21]Write i2c OK [03:04:21]MH_I2C_Read... [03:04:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:04:21]Read from MH i2c: E2 [03:04:21]MH_I2C_Read... [03:04:21]Read from MH i2c: E2 03 00 [03:04:21]MH_I2C_Read... [03:04:21]Read from MH i2c: E2 03 00 DF 0C 00 90 00 5F [03:04:21]RAPDU: 90 00 [03:04:21]wFMCommunicate OK [03:04:21]wFMCommunicate request_size=16 [03:04:21]MH_SAM_APDU [03:04:21]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 A8 E8 10 16 14 C6 [03:04:21]Write to MH i2c: E2 13 00 E0 0C 80 0D 02 02 0B 00 00 35 04 06 00 A8 E8 10 16 14 C6 00 00 4B [03:04:21]Write i2c OK [03:04:21]MH_I2C_Read... [03:04:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:04:21]Read from MH i2c: E2 [03:04:21]MH_I2C_Read... [03:04:21]Read from MH i2c: E2 03 00 [03:04:21]MH_I2C_Read... [03:04:21]Read from MH i2c: E2 03 00 E0 0C 00 90 00 60 [03:04:21]RAPDU: 90 00 [03:04:21]wFMCommunicate OK [03:04:21]wFMCommunicate request_size=4 [03:04:21]MH_SAM_APDU [03:04:21]CAPDU: 80 0D 03 02 [03:04:21]Write to MH i2c: E2 08 00 E1 0C 80 0D 03 02 00 00 00 00 68 [03:04:21]Write i2c OK [03:04:21]MH_I2C_Read... [03:04:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [03:04:21]Read from MH i2c: E2 [03:04:21]MH_I2C_Read... [03:04:21]Read from MH i2c: E2 0B 00 [03:04:21]MH_I2C_Read... [03:04:21]Read from MH i2c: E2 0B 00 E1 0C 00 69 68 F0 66 E6 CD 75 44 90 00 FC [03:04:21]RAPDU: 69 68 F0 66 E6 CD 75 44 90 00 [03:04:21]wFMCommunicate OK [03:04:21]SAM_PROTO_SignData done [03:04:21]FM_MakeSignedData done [03:04:21]CreateOFDProtocolMessage [03:04:21]wFMCommunicate request_size=4 [03:04:21]MH_SAM_APDU [03:04:21]CAPDU: 80 11 00 00 [03:04:21]Write to MH i2c: E2 08 00 E2 0C 80 11 00 00 00 00 00 00 68 [03:04:21]Write i2c OK [03:04:21]MH_I2C_Read... [03:04:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:04:21]Read from MH i2c: E2 [03:04:21]MH_I2C_Read... [03:04:21]Read from MH i2c: E2 17 00 [03:04:21]MH_I2C_Read... [03:04:21]Read from MH i2c: E2 17 00 E2 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 B6 [03:04:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [03:04:21]wFMCommunicate OK [03:04:21]CreateOFDProtocolMessage done [03:04:21]OFDSenderStorePacket 187999 [03:04:21]StoreOFDPacket docnum=187999 [03:04:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 20 5D 0D 01 E0 F3 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 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 35 16 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 5F DE 02 00 35 04 06 00 A8 E8 10 16 14 C6 69 68 F0 66 E6 CD 75 44 [03:04:21]CheckFolder [03:04:21]dirname=/storage/ofd_packets [03:04:21]CheckFolder done [03:04:21]ProducePacketName [03:04:21]name=ofd_packets/00187999 [03:04:21]NVStorageSaveData ofd_packets/00187999 [03:04:21]File name is /storage/ofd_packets/00187999 [03:04:21]Write 307 bytes [03:04:21]NVStorageSaveData done [03:04:21]OFDSenderStorePacket done [03:04:21]KKMCreateOFDPacket done [03:04:21]NVStorageSaveData kkm_last_timestamp [03:04:21]File name is /storage/kkm_last_timestamp [03:04:21]Write 4 bytes [03:04:21]NVStorageSaveData done [03:04:21]ExternCall_PrintAddStr [03:04:21]wPrintStart [03:04:21]Write to MH i2c: 01 00 00 E3 0C EF [03:04:21]Write i2c OK [03:04:21]MH_I2C_Read... [03:04:21]Read from MH i2c: 01 [03:04:21]MH_I2C_Read... [03:04:21]Read from MH i2c: 01 07 00 [03:04:21]MH_I2C_Read... [03:04:21]Read from MH i2c: 01 07 00 E3 0C 00 00 00 00 00 FF 0F 04 [03:04:21]RasterBufferAndPrint [03:04:21]line Счет N : (1)210050 [03:04:21]line ИНН: 02508201610067 [03:04:21]line Контрольно-Кассовый Чек [03:04:21]line ПРОДАЖА [03:04:21]line ТРК (МРК, ГНК) : 41 [03:04:21]line Товар: 2710194210 [03:04:21]line D-ENERGY ДТ-К-5 [03:04:21]line 12.960 * 77.20 [03:04:21]line = 1000.51 [03:04:21]line НДС 12% НСП 1% [03:04:21]line > о реализуемом товаре [03:04:21]line ОКРУГЛЕНИЕ: -0.51 [03:04:21]line ИТОГО: 1000.00 [03:04:21]line Внесено: 1000.00 [03:04:21]line СДАЧА: 0.00 [03:04:21]line НСП 1% : 8.85 [03:04:21]line НДС 12% : 106.25 [03:04:21]line Наличными: 1000.00 [03:04:21]line Безнал.: 0.00 [03:04:21]line Место: АЗС № 86 "Партнер Нефть" [03:04:21]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [03:04:21]line СНО: Общий режим [03:04:21]line Чек 28 22.10.2024 03:04 [03:04:21]line Смена: 461 ФФД: 1.0 [03:04:21]line ЗНМ: 0300000155 [03:04:21]line РНМ: 0000000000100030 [03:04:21]line Версия ККМ: 001 [03:04:21]line ФМ: 0000000000965340 [03:04:21]line ФД: 187999 [03:04:21]line ФПД: 185714655761606 [03:04:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T030421&type=1&operation_type=1&fn_number=0000000000965340&fd_number=187999&fm=185714655761606&tin=02508201610067®Number=0000000000100030&sum=100000 [03:04:21]OFD Sender: Processing packet 187999 [packets to send 1062, broken 1061] [03:04:21]ProducePacketName [03:04:21]name=ofd_packets/00187999 [03:04:21]OFD Sender: To server: pG, [03:04:21]CommunicateWithHost lk.salyk.kg:30040 [03:04:21]ConnectInit lk.salyk.kg [03:04:21]written 0, free lines is 4095 [03:04:22]Connected sock=10 [03:04:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 20 5D 0D 01 E0 F3 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 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 35 16 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 5F DE 02 00 35 04 06 00 A8 E8 10 16 14 C6 69 68 F0 66 E6 CD 75 44 [03:04:22]Write to MH i2c: 01 00 00 0E 0D 1B [03:04:22]Write i2c OK [03:04:22]MH_I2C_Read... [03:04:22]Read from MH i2c: 01 [03:04:22]MH_I2C_Read... [03:04:22]Read from MH i2c: 01 07 00 [03:04:22]MH_I2C_Read... [03:04:22]Read from MH i2c: 01 07 00 0E 0D 00 00 00 00 00 57 0C 85 [03:04:22]RasterBufferAndPrint [03:04:22]line [03:04:22]line [03:04:22]line [03:04:22]line [03:04:22]line [03:04:22]written 0, free lines is 3161 [03:04:22]MH_Cut [03:04:22]Write to MH i2c: D1 01 00 15 0D 01 F4 [03:04:22]Write i2c OK [03:04:22]MH_I2C_Read... [03:04:22]Read from MH i2c: D1 [03:04:22]MH_I2C_Read... [03:04:22]Read from MH i2c: D1 01 00 [03:04:22]MH_I2C_Read... [03:04:22]Read from MH i2c: D1 01 00 15 0D 00 F3 [03:04:22]Write to MH i2c: 01 00 00 16 0D 23 [03:04:22]Write i2c OK [03:04:22]MH_I2C_Read... [03:04:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 19 3F 47 00 41 88 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 5F DE 02 00 F4 03 04 00 23 C0 16 67 B6 04 01 00 00 98 0A 8A B8 15 E9 BA 35 [03:04:22]CommunicateWithHost err = 0 [03:04:22]CheckOFDResponse [03:04:22]1017 (14) - 77093643461234 [03:04:22]1041 (16) - 0000000000965340 [03:04:22]1040 (4) - 187999 [03:04:22]1012 (4) - 21.10.2024 20:57 [03:04:22]1206 (1) - 0 [03:04:22]OFD Sender: Remove packet 187999 [03:04:22]ProducePacketName [03:04:22]name=ofd_packets/00187999 [03:04:22]NVStorageDeleteData [03:04:23]OFD Sender: No OFD packet to send [03:04:23]*** Cut start [03:04:23]*** Partial cut [03:04:23]*** CUTSNS_PIN = 1 [03:04:23]*** CUTSNS_PIN = 0 [03:04:23]*** Brake cut motor [03:04:24]Read from MH i2c: 01 [03:04:24]MH_I2C_Read... [03:04:24]*** Stop cut motor [03:04:24]*** Cut end [03:04:24]Read from MH i2c: 01 07 00 [03:04:24]MH_I2C_Read... [03:04:24]Read from MH i2c: 01 07 00 16 0D 00 00 00 00 00 FF 0F 38 [03:04:24]process_action close_receipt done [03:04:24]requested_data is exist [03:04:24]produce_requested_data [03:04:24]requested_item fm.sn is exist - process it [03:04:24]wFMCommunicate request_size=4 [03:04:24]MH_SAM_APDU [03:04:24]CAPDU: 80 11 00 00 [03:04:24]Write to MH i2c: E2 08 00 17 0D 80 11 00 00 00 00 00 00 9E [03:04:24]Write i2c OK [03:04:24]MH_I2C_Read... [03:04:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:04:24]Read from MH i2c: E2 [03:04:24]MH_I2C_Read... [03:04:24]Read from MH i2c: E2 17 00 [03:04:24]MH_I2C_Read... [03:04:24]Read from MH i2c: E2 17 00 17 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 EC [03:04:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [03:04:24]wFMCommunicate OK [03:04:24]requested_item fd.num is exist - process it [03:04:24]SAM_PROTO_GetFieldsCounters [03:04:24]wFMCommunicate request_size=4 [03:04:24]MH_SAM_APDU [03:04:24]CAPDU: 80 13 00 00 [03:04:24]Write to MH i2c: E2 08 00 18 0D 80 13 00 00 00 00 00 00 A1 [03:04:24]Write i2c OK [03:04:24]MH_I2C_Read... [03:04:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [03:04:24]Read from MH i2c: E2 [03:04:24]MH_I2C_Read... [03:04:24]Read from MH i2c: E2 62 00 [03:04:24]MH_I2C_Read... [03:04:24]Read from MH i2c: E2 62 00 18 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 5F DE 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 1C 00 00 00 5E 04 04 00 1C 00 00 00 57 04 04 00 1D 00 00 00 19 04 04 00 00 00 00 00 90 00 09 [03:04:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 5F DE 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 1C 00 00 00 5E 04 04 00 1C 00 00 00 57 04 04 00 1D 00 00 00 19 04 04 00 00 00 00 00 90 00 [03:04:24]wFMCommunicate OK [03:04:24]SAM_PROTO_GetFieldsCounters done [03:04:24]requested_item shift.num is exist - process it [03:04:24]requested_item shift.opened is exist - process it [03:04:24]req_shift_opened [03:04:24]FM_GetShiftState [03:04:24]SAM_PROTO_GetShiftState [03:04:24]wFMCommunicate request_size=4 [03:04:24]MH_SAM_APDU [03:04:24]CAPDU: 80 13 01 00 [03:04:24]Write to MH i2c: E2 08 00 19 0D 80 13 01 00 00 00 00 00 A3 [03:04:24]Write i2c OK [03:04:24]MH_I2C_Read... [03:04:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:04:24]Read from MH i2c: E2 [03:04:24]MH_I2C_Read... [03:04:24]Read from MH i2c: E2 0E 00 [03:04:24]MH_I2C_Read... [03:04:24]Read from MH i2c: E2 0E 00 19 0D 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 98 [03:04:24]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [03:04:24]wFMCommunicate OK [03:04:24]SAM_PROTO_GetShiftState done [03:04:24]FM_GetShiftState done [03:04:24]req_shift_opened done [03:04:24]requested_item shift.open_date is exist - process it [03:04:24]req_shift_open_date [03:04:24]req_shift_open_date done [03:04:24]produce_requested_data done [03:04:24]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":187999,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [03:04:24]process_action_free close_receipt [03:04:24]json_value_free [03:04:24]json_value_free done [03:04:24]process_json_proto returns [03:04:24]Send response to host [03:04:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":187999,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [03:04:24]free response buf [03:04:24]execute_script done [03:04:24]execute_script returns [03:04:24]free content buf [03:04:24]Sock 8.Close socket [03:04:24]Sock 8.Thread stoped [03:04:28]OFD Sender: No OFD packet to send [03:04:33]OFD Sender: No OFD packet to send [03:04:38]OFD Sender: No OFD packet to send [03:04:43]OFD Sender: No OFD packet to send [03:04:48]OFD Sender: No OFD packet to send [03:04:53]OFD Sender: No OFD packet to send [03:04:58]OFD Sender: No OFD packet to send [03:05:03]OFD Sender: No OFD packet to send [03:05:08]OFD Sender: No OFD packet to send [03:05:13]OFD Sender: No OFD packet to send [03:05:18]OFD Sender: No OFD packet to send [03:05:23]OFD Sender: No OFD packet to send [03:05:28]OFD Sender: No OFD packet to send [03:05:33]OFD Sender: No OFD packet to send [03:05:38]OFD Sender: No OFD packet to send [03:05:43]OFD Sender: No OFD packet to send [03:05:48]OFD Sender: No OFD packet to send [03:05:52]accept exits with 9 [03:05:52]New connection [03:05:52]New thread 3067198820 created [03:05:52]Thread 3067055460 joined [03:05:52]Waiting for new connection... [03:05:52] Sock 9.Parse request [03:05:52]Sock 9.Check first char [03:05:52]Sock 9.First char is OK [03:05:52]request: POST /json_proto HTTP/1.0 [03:05:52]Method: POST [03:05:52]URL: /json_proto [03:05:52]Method is POST - this is cgi request [03:05:52]url: /json_proto [03:05:52]query_string will be loaded in cgi processing [03:05:52]execute_cgi json_proto POST (null) [03:05:52]execute_cgi path=json_proto method=POST [03:05:52]POST find Content-Length [03:05:52]Host: 172.17.42.131:8080 [03:05:52]Content-Length: 688 [03:05:52]Content-Type: application/json [03:05:52] [03:05:52]POST finish read [03:05:52]Found Content-Length = 688 [03:05:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210051", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 25.910, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:05:52]execute_script... [03:05: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)210051", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 25.910, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:05:52]POST & json_proto [03:05:52]process_json_proto [03:05:52]json parsed OK: [03:05:52]protocol is kg_v1.0 [03:05:52]action value=close_receipt [03:05:52]process_action close_receipt [03:05:52]cmd_close_receipt [03:05:52]MH_GetDate [03:05:52]Write to MH i2c: F0 00 00 1A 0D 16 [03:05:52]Write i2c OK [03:05:52]MH_I2C_Read... [03:05:52]Read from MH i2c: F0 [03:05:52]MH_I2C_Read... [03:05:52]Read from MH i2c: F0 09 00 [03:05:52]MH_I2C_Read... [03:05:52]Read from MH i2c: F0 09 00 1A 0D 00 91 16 17 67 A0 18 CA 66 2C [03:05:52]GetLastDocTimeStamp 1729566261 [03:05:52]current date 1729566353 [03:05:52]FM_GetShiftState [03:05:52]SAM_PROTO_GetShiftState [03:05:52]wFMCommunicate request_size=4 [03:05:52]MH_SAM_APDU [03:05:52]CAPDU: 80 13 01 00 [03:05:52]Write to MH i2c: E2 08 00 1B 0D 80 13 01 00 00 00 00 00 A5 [03:05:52]Write i2c OK [03:05:52]MH_I2C_Read... [03:05:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:05:52]Read from MH i2c: E2 [03:05:52]MH_I2C_Read... [03:05:52]Read from MH i2c: E2 0E 00 [03:05:52]MH_I2C_Read... [03:05:52]Read from MH i2c: E2 0E 00 1B 0D 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 9A [03:05:52]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [03:05:52]wFMCommunicate OK [03:05:52]SAM_PROTO_GetShiftState done [03:05:52]FM_GetShiftState done [03:05:52]opened in 1729556094 [03:05:52]opened+sec_in_day 1729642494 [03:05:52]quantity*price = 200025 [03:05:52]sum+1 = 200026 [03:05:52]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 29 22.10.2024 03:05 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188000 ФПД: 33768808365 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T030553&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188000&fm=33768808365&tin=02508201610067®Number=0000000000100030&sum=200000 [03:05:53]StoreToDocumentArchive [03:05:53]shift 461 fd 188000 [03:05:53]save to /storage/0461/doc_00188000 [03:05:53]save last doc name /storage/0461/doc_00188000 to /storage/kkm_last_doc_name [03:05:53]save OK [03:05:53]Clear old archive folders... [03:05:53]ProcessDocumentItem done err = 0, tmpTLVsize=257 [03:05:53]tlvbuf is 01B85AA0 [03:05:53]SAM_PROTO_ClearQueue [03:05:53]wFMCommunicate request_size=4 [03:05:53]MH_SAM_APDU [03:05:53]CAPDU: 80 09 00 00 [03:05:53]Write to MH i2c: E2 08 00 28 0D 80 09 00 00 00 00 00 00 A7 [03:05:53]Write i2c OK [03:05:53]MH_I2C_Read... [03:05:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [03:05:53]Read from MH i2c: E2 [03:05:53]MH_I2C_Read... [03:05:53]Read from MH i2c: E2 03 00 [03:05:53]MH_I2C_Read... [03:05:53]Read from MH i2c: E2 03 00 28 0D 00 90 00 A9 [03:05:53]RAPDU: 90 00 [03:05:53]wFMCommunicate OK [03:05:53]SAM_PROTO_ClearQueue done [03:05:53]KKMCreateOFDPacket [03:05:53]OFDProtocolAddRootSTLVToBuf [03:05:53]FM_MakeSignedData [03:05:53]FM_MakeSignedData [03:05:53]SAM_PROTO_SignData [03:05:53]wFMCommunicate request_size=4 [03:05:53]MH_SAM_APDU [03:05:53]CAPDU: 80 0D 01 02 [03:05:53]Write to MH i2c: E2 08 00 29 0D 80 0D 01 02 00 00 00 00 AF [03:05:53]Write i2c OK [03:05:53]MH_I2C_Read... [03:05:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [03:05:53]Read from MH i2c: E2 [03:05:53]MH_I2C_Read... [03:05:53]Read from MH i2c: E2 03 00 [03:05:53]MH_I2C_Read... [03:05:53]Read from MH i2c: E2 03 00 29 0D 00 90 00 AA [03:05:53]RAPDU: 90 00 [03:05:53]wFMCommunicate OK [03:05:53]wFMCommunicate request_size=255 [03:05:53]MH_SAM_APDU [03:05:53]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 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 36 65 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 91 16 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 60 DE 02 [03:05:53]Write to MH i2c: E2 02 01 2A 0D 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 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 36 65 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 91 16 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 60 DE 02 00 00 A0 [03:05:53]Write i2c OK [03:05:53]MH_I2C_Read... [03:05:53]OFD Sender: No OFD packet to send [03:05:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:05:53]Read from MH i2c: E2 [03:05:53]MH_I2C_Read... [03:05:53]Read from MH i2c: E2 03 00 [03:05:53]MH_I2C_Read... [03:05:53]Read from MH i2c: E2 03 00 2A 0D 00 90 00 AB [03:05:53]RAPDU: 90 00 [03:05:53]wFMCommunicate OK [03:05:53]wFMCommunicate request_size=16 [03:05:53]MH_SAM_APDU [03:05:53]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 00 07 DC C7 1F AD [03:05:53]Write to MH i2c: E2 13 00 2B 0D 80 0D 02 02 0B 00 00 35 04 06 00 00 07 DC C7 1F AD 00 00 7D [03:05:53]Write i2c OK [03:05:53]MH_I2C_Read... [03:05:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:05:53]Read from MH i2c: E2 [03:05:53]MH_I2C_Read... [03:05:53]Read from MH i2c: E2 03 00 [03:05:53]MH_I2C_Read... [03:05:53]Read from MH i2c: E2 03 00 2B 0D 00 90 00 AC [03:05:53]RAPDU: 90 00 [03:05:53]wFMCommunicate OK [03:05:53]wFMCommunicate request_size=4 [03:05:53]MH_SAM_APDU [03:05:53]CAPDU: 80 0D 03 02 [03:05:53]Write to MH i2c: E2 08 00 2C 0D 80 0D 03 02 00 00 00 00 B4 [03:05:53]Write i2c OK [03:05:53]MH_I2C_Read... [03:05:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [03:05:53]Read from MH i2c: E2 [03:05:53]MH_I2C_Read... [03:05:53]Read from MH i2c: E2 0B 00 [03:05:53]MH_I2C_Read... [03:05:53]Read from MH i2c: E2 0B 00 2C 0D 00 3D AC 8A 42 B2 16 95 9D 90 00 64 [03:05:53]RAPDU: 3D AC 8A 42 B2 16 95 9D 90 00 [03:05:53]wFMCommunicate OK [03:05:53]SAM_PROTO_SignData done [03:05:53]FM_MakeSignedData done [03:05:53]CreateOFDProtocolMessage [03:05:53]wFMCommunicate request_size=4 [03:05:53]MH_SAM_APDU [03:05:53]CAPDU: 80 11 00 00 [03:05:53]Write to MH i2c: E2 08 00 2D 0D 80 11 00 00 00 00 00 00 B4 [03:05:53]Write i2c OK [03:05:53]MH_I2C_Read... [03:05:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:05:53]Read from MH i2c: E2 [03:05:53]MH_I2C_Read... [03:05:53]Read from MH i2c: E2 17 00 [03:05:53]MH_I2C_Read... [03:05:53]Read from MH i2c: E2 17 00 2D 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 02 [03:05:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [03:05:53]wFMCommunicate OK [03:05:53]CreateOFDProtocolMessage done [03:05:53]OFDSenderStorePacket 188000 [03:05:53]StoreOFDPacket docnum=188000 [03:05:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 88 27 0D 01 AD 79 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 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 36 65 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 91 16 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 60 DE 02 00 35 04 06 00 00 07 DC C7 1F AD 3D AC 8A 42 B2 16 95 9D [03:05:53]CheckFolder [03:05:53]dirname=/storage/ofd_packets [03:05:53]CheckFolder done [03:05:53]ProducePacketName [03:05:53]name=ofd_packets/00188000 [03:05:53]NVStorageSaveData ofd_packets/00188000 [03:05:53]File name is /storage/ofd_packets/00188000 [03:05:53]Write 307 bytes [03:05:53]NVStorageSaveData done [03:05:53]OFDSenderStorePacket done [03:05:53]KKMCreateOFDPacket done [03:05:53]NVStorageSaveData kkm_last_timestamp [03:05:53]File name is /storage/kkm_last_timestamp [03:05:53]Write 4 bytes [03:05:53]NVStorageSaveData done [03:05:53]ExternCall_PrintAddStr [03:05:53]wPrintStart [03:05:53]Write to MH i2c: 01 00 00 2E 0D 3B [03:05:53]Write i2c OK [03:05:53]MH_I2C_Read... [03:05:53]Read from MH i2c: 01 [03:05:53]MH_I2C_Read... [03:05:53]Read from MH i2c: 01 07 00 [03:05:53]MH_I2C_Read... [03:05:53]Read from MH i2c: 01 07 00 2E 0D 00 00 00 00 00 FF 0F 50 [03:05:53]RasterBufferAndPrint [03:05:53]line Счет N : (1)210051 [03:05:53]line ИНН: 02508201610067 [03:05:53]line Контрольно-Кассовый Чек [03:05:53]line ПРОДАЖА [03:05:53]line ТРК (МРК, ГНК) : 11 [03:05:53]line Товар: 2710194210 [03:05:53]line D-ENERGY ДТ-К-5 [03:05:53]line 25.910 * 77.20 [03:05:53]line = 2000.25 [03:05:53]line НДС 12% НСП 1% [03:05:53]line > о реализуемом товаре [03:05:53]line ОКРУГЛЕНИЕ: -0.25 [03:05:53]line ИТОГО: 2000.00 [03:05:53]line Внесено: 2000.00 [03:05:53]line СДАЧА: 0.00 [03:05:53]line НСП 1% : 17.70 [03:05:53]line НДС 12% : 212.42 [03:05:53]line Наличными: 2000.00 [03:05:53]line Безнал.: 0.00 [03:05:53]line Место: АЗС № 86 "Партнер Нефть" [03:05:53]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [03:05:53]line СНО: Общий режим [03:05:53]line Чек 29 22.10.2024 03:05 [03:05:53]line Смена: 461 ФФД: 1.0 [03:05:53]line ЗНМ: 0300000155 [03:05:53]line РНМ: 0000000000100030 [03:05:53]line Версия ККМ: 001 [03:05:53]line ФМ: 0000000000965340 [03:05:53]line ФД: 188000 [03:05:53]line ФПД: 33768808365 [03:05:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T030553&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188000&fm=33768808365&tin=02508201610067®Number=0000000000100030&sum=200000 [03:05:53]written 0, free lines is 4095 [03:05:53]OFD Sender: Processing packet 188000 [packets to send 1062, broken 1061] [03:05:53]ProducePacketName [03:05:53]name=ofd_packets/00188000 [03:05:53]OFD Sender: To server: pG, [03:05:53]CommunicateWithHost lk.salyk.kg:30040 [03:05:53]ConnectInit lk.salyk.kg [03:05:54]Connected sock=10 [03:05:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 88 27 0D 01 AD 79 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 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 36 65 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 91 16 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 60 DE 02 00 35 04 06 00 00 07 DC C7 1F AD 3D AC 8A 42 B2 16 95 9D [03:05:54]Write to MH i2c: 01 00 00 59 0D 66 [03:05:54]Write i2c OK [03:05:54]MH_I2C_Read... [03:05:54]Read from MH i2c: 01 [03:05:54]MH_I2C_Read... [03:05:54]Read from MH i2c: 01 07 00 [03:05:54]MH_I2C_Read... [03:05:54]Read from MH i2c: 01 07 00 59 0D 00 00 00 00 00 57 0C D0 [03:05:54]RasterBufferAndPrint [03:05:54]line [03:05:54]line [03:05:54]line [03:05:54]line [03:05:54]line [03:05:54]written 0, free lines is 3172 [03:05:54]MH_Cut [03:05:54]Write to MH i2c: D1 01 00 60 0D 01 3F [03:05:54]Write i2c OK [03:05:54]MH_I2C_Read... [03:05:54]Read from MH i2c: D1 [03:05:54]MH_I2C_Read... [03:05:54]Read from MH i2c: D1 01 00 [03:05:54]MH_I2C_Read... [03:05:54]Read from MH i2c: D1 01 00 60 0D 00 3E [03:05:54]Write to MH i2c: 01 00 00 61 0D 6E [03:05:54]Write i2c OK [03:05:54]MH_I2C_Read... [03:05:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 03 0D 47 00 87 D3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 60 DE 02 00 F4 03 04 00 7F C0 16 67 B6 04 01 00 00 75 88 4D F5 B6 F9 1B 0C [03:05:54]CommunicateWithHost err = 0 [03:05:54]CheckOFDResponse [03:05:54]1017 (14) - 77093643461234 [03:05:54]1041 (16) - 0000000000965340 [03:05:54]1040 (4) - 188000 [03:05:54]1012 (4) - 21.10.2024 20:58 [03:05:54]1206 (1) - 0 [03:05:54]OFD Sender: Remove packet 188000 [03:05:54]ProducePacketName [03:05:54]name=ofd_packets/00188000 [03:05:54]NVStorageDeleteData [03:05:54]OFD Sender: No OFD packet to send [03:05:55]*** Cut start [03:05:55]*** Partial cut [03:05:55]*** CUTSNS_PIN = 1 [03:05:55]*** CUTSNS_PIN = 0 [03:05:55]*** Brake cut motor [03:05:56]Read from MH i2c: 01 [03:05:56]MH_I2C_Read... [03:05:56]*** Stop cut motor [03:05:56]*** Cut end [03:05:56]Read from MH i2c: 01 07 00 [03:05:56]MH_I2C_Read... [03:05:56]Read from MH i2c: 01 07 00 61 0D 00 00 00 00 00 FF 0F 83 [03:05:56]process_action close_receipt done [03:05:56]requested_data is exist [03:05:56]produce_requested_data [03:05:56]requested_item fm.sn is exist - process it [03:05:56]wFMCommunicate request_size=4 [03:05:56]MH_SAM_APDU [03:05:56]CAPDU: 80 11 00 00 [03:05:56]Write to MH i2c: E2 08 00 62 0D 80 11 00 00 00 00 00 00 E9 [03:05:56]Write i2c OK [03:05:56]MH_I2C_Read... [03:05:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:05:56]Read from MH i2c: E2 [03:05:56]MH_I2C_Read... [03:05:56]Read from MH i2c: E2 17 00 [03:05:56]MH_I2C_Read... [03:05:56]Read from MH i2c: E2 17 00 62 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 37 [03:05:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [03:05:56]wFMCommunicate OK [03:05:56]requested_item fd.num is exist - process it [03:05:56]SAM_PROTO_GetFieldsCounters [03:05:56]wFMCommunicate request_size=4 [03:05:56]MH_SAM_APDU [03:05:56]CAPDU: 80 13 00 00 [03:05:56]Write to MH i2c: E2 08 00 63 0D 80 13 00 00 00 00 00 00 EC [03:05:56]Write i2c OK [03:05:56]MH_I2C_Read... [03:05:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [03:05:56]Read from MH i2c: E2 [03:05:56]MH_I2C_Read... [03:05:56]Read from MH i2c: E2 62 00 [03:05:56]MH_I2C_Read... [03:05:56]Read from MH i2c: E2 62 00 63 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 60 DE 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 1D 00 00 00 5E 04 04 00 1D 00 00 00 57 04 04 00 1E 00 00 00 19 04 04 00 00 00 00 00 90 00 58 [03:05:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 60 DE 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 1D 00 00 00 5E 04 04 00 1D 00 00 00 57 04 04 00 1E 00 00 00 19 04 04 00 00 00 00 00 90 00 [03:05:56]wFMCommunicate OK [03:05:56]SAM_PROTO_GetFieldsCounters done [03:05:56]requested_item shift.num is exist - process it [03:05:56]requested_item shift.opened is exist - process it [03:05:56]req_shift_opened [03:05:56]FM_GetShiftState [03:05:56]SAM_PROTO_GetShiftState [03:05:56]wFMCommunicate request_size=4 [03:05:56]MH_SAM_APDU [03:05:56]CAPDU: 80 13 01 00 [03:05:56]Write to MH i2c: E2 08 00 64 0D 80 13 01 00 00 00 00 00 EE [03:05:56]Write i2c OK [03:05:56]MH_I2C_Read... [03:05:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:05:56]Read from MH i2c: E2 [03:05:56]MH_I2C_Read... [03:05:56]Read from MH i2c: E2 0E 00 [03:05:56]MH_I2C_Read... [03:05:56]Read from MH i2c: E2 0E 00 64 0D 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 E3 [03:05:56]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [03:05:56]wFMCommunicate OK [03:05:56]SAM_PROTO_GetShiftState done [03:05:56]FM_GetShiftState done [03:05:56]req_shift_opened done [03:05:56]requested_item shift.open_date is exist - process it [03:05:56]req_shift_open_date [03:05:56]req_shift_open_date done [03:05:56]produce_requested_data done [03:05:56]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188000,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [03:05:56]process_action_free close_receipt [03:05:56]json_value_free [03:05:56]json_value_free done [03:05:56]process_json_proto returns [03:05:56]Send response to host [03:05:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188000,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [03:05:56]free response buf [03:05:56]execute_script done [03:05:56]execute_script returns [03:05:56]free content buf [03:05:56]Sock 9.Close socket [03:05:56]Sock 9.Thread stoped [03:05:59]OFD Sender: No OFD packet to send [03:06:04]OFD Sender: No OFD packet to send [03:06:09]OFD Sender: No OFD packet to send [03:06:14]OFD Sender: No OFD packet to send [03:06:19]OFD Sender: No OFD packet to send [03:06:25]OFD Sender: No OFD packet to send [03:06:30]OFD Sender: No OFD packet to send [03:06:35]OFD Sender: No OFD packet to send [03:06:40]OFD Sender: No OFD packet to send [03:06:45]OFD Sender: No OFD packet to send [03:06:50]OFD Sender: No OFD packet to send [03:06:55]OFD Sender: No OFD packet to send [03:07:00]OFD Sender: No OFD packet to send [03:07:05]OFD Sender: No OFD packet to send [03:07:10]OFD Sender: No OFD packet to send